diff --git a/FatePaths/Questionable.FatePaths/AssemblyFateDefinitionLoader.cs b/FatePaths/Questionable.FatePaths/AssemblyFateDefinitionLoader.cs index 3e2bfcb..f1ac276 100644 --- a/FatePaths/Questionable.FatePaths/AssemblyFateDefinitionLoader.cs +++ b/FatePaths/Questionable.FatePaths/AssemblyFateDefinitionLoader.cs @@ -48,22 +48,26 @@ public static class AssemblyFateDefinitionLoader List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - span[0] = new FateActionTarget + int num2 = 0; + span[num2] = new FateActionTarget { DataId = 18862u, Action = EAction.CheerRhythmYellow }; - span[1] = new FateActionTarget + num2++; + span[num2] = new FateActionTarget { DataId = 18860u, Action = EAction.CheerRhythmBlue }; - span[2] = new FateActionTarget + num2++; + span[num2] = new FateActionTarget { DataId = 18861u, Action = EAction.CheerRhythmGreen }; - span[3] = new FateActionTarget + num2++; + span[num2] = new FateActionTarget { DataId = 18859u, Action = EAction.CheerRhythmRed @@ -72,34 +76,34 @@ public static class AssemblyFateDefinitionLoader obj.RequiredStatusId = EStatus.FaceInTheCrowd; obj.TransformNpcDataId = 1055771u; obj.TransformNpcPosition = new Vector3(-37.369385f, 5.0000005f, -130.14423f); - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); + num2 = 3; + List list2 = new List(num2); + CollectionsMarshal.SetCount(list2, num2); Span span2 = CollectionsMarshal.AsSpan(list2); - span2[0] = new DialogueChoice + num = 0; + span2[num] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/009/FesPdy2026FateDisguise_00951", Prompt = new ExcelRef("TEXT_FESPDY2026FATEDISGUISE_00951_Q1_000_000"), Answer = new ExcelRef("TEXT_FESPDY2026FATEDISGUISE_00951_A1_000_001") }; - span2[1] = new DialogueChoice + num++; + span2[num] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/009/FesPdy2026FateDisguise_00951", Prompt = new ExcelRef("TEXT_FESPDY2026FATEDISGUISE_00951_Q2_000_000"), Answer = new ExcelRef("TEXT_FESPDY2026FATEDISGUISE_00951_A2_100_004") }; - span2[2] = new DialogueChoice + num++; + span2[num] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "custom/009/FesPdy2026FateDisguise_00951", Prompt = new ExcelRef("TEXT_FESPDY2026FATEDISGUISE_00951_CONFIRM_100_004") }; obj.TransformDialogueChoices = list2; - obj.RequiredQuestId = (ushort)5444; - obj.StopAction = EAction.CurtainCall; - obj.EventExpiry = new DateTime(2026, 3, 12, 14, 59, 0, DateTimeKind.Utc); AddDefinition(1, obj); } } diff --git a/GatheringPaths/Questionable.GatheringPaths/AssemblyGatheringLocationLoader.cs b/GatheringPaths/Questionable.GatheringPaths/AssemblyGatheringLocationLoader.cs index 53d688c..cc5cc46 100644 --- a/GatheringPaths/Questionable.GatheringPaths/AssemblyGatheringLocationLoader.cs +++ b/GatheringPaths/Questionable.GatheringPaths/AssemblyGatheringLocationLoader.cs @@ -53,12 +53,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 154) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -73,13 +77,16 @@ public static class AssemblyGatheringLocationLoader num = 4; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 1; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref GatheringNode reference2 = ref CollectionsMarshal.AsSpan(list4)[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index2 = 0; + ref GatheringNode reference2 = ref span4[index2]; GatheringNode obj = new GatheringNode { DataId = 30016u @@ -87,20 +94,23 @@ public static class AssemblyGatheringLocationLoader int num3 = 3; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new GatheringLocation + Span span5 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(395.0683f, -4.213107f, 235.0844f), MinimumAngle = -200, MaximumAngle = 15 }; - span2[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(404.3488f, -2.116929f, 216.968f), MinimumAngle = -125, MaximumAngle = 10 }; - span2[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(388.5088f, -1.260179f, 222.3745f), MinimumAngle = -145, @@ -110,33 +120,39 @@ public static class AssemblyGatheringLocationLoader reference2 = obj; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference3 = ref span[1]; + index++; + ref GatheringNodeGroup reference3 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref GatheringNode reference4 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref GatheringNode reference4 = ref span6[num2]; GatheringNode obj2 = new GatheringNode { DataId = 30018u }; - num3 = 3; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = new GatheringLocation + num4 = 3; + List list7 = new List(num4); + CollectionsMarshal.SetCount(list7, num4); + Span span7 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span7[num3] = new GatheringLocation { Position = new Vector3(361.0402f, -6.135924f, 266.7503f), MinimumAngle = -155, MaximumAngle = 10 }; - span3[1] = new GatheringLocation + num3++; + span7[num3] = new GatheringLocation { Position = new Vector3(368.0511f, -6.085522f, 262.3561f), MinimumAngle = -135, MaximumAngle = 10 }; - span3[2] = new GatheringLocation + num3++; + span7[num3] = new GatheringLocation { Position = new Vector3(352.1197f, -2.546567f, 262.7847f), MinimumAngle = 250, @@ -146,12 +162,15 @@ public static class AssemblyGatheringLocationLoader reference4 = obj2; gatheringNodeGroup2.Nodes = list6; reference3 = gatheringNodeGroup2; - ref GatheringNodeGroup reference5 = ref span[2]; + index++; + ref GatheringNodeGroup reference5 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref GatheringNode reference6 = ref CollectionsMarshal.AsSpan(list8)[0]; + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref GatheringNode reference6 = ref span8[index2]; GatheringNode obj3 = new GatheringNode { DataId = 30081u @@ -159,20 +178,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span4 = CollectionsMarshal.AsSpan(list9); - span4[0] = new GatheringLocation + Span span9 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span9[num4] = new GatheringLocation { Position = new Vector3(404.6927f, -3.737513f, 283.6237f), MinimumAngle = 55, MaximumAngle = 255 }; - span4[1] = new GatheringLocation + num4++; + span9[num4] = new GatheringLocation { Position = new Vector3(406.1155f, -4.338434f, 271.2292f), MinimumAngle = 0, MaximumAngle = 190 }; - span4[2] = new GatheringLocation + num4++; + span9[num4] = new GatheringLocation { Position = new Vector3(394.464f, -3.775356f, 286.3456f), MinimumAngle = 105, @@ -182,33 +204,39 @@ public static class AssemblyGatheringLocationLoader reference6 = obj3; gatheringNodeGroup3.Nodes = list8; reference5 = gatheringNodeGroup3; - ref GatheringNodeGroup reference7 = ref span[3]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - ref GatheringNode reference8 = ref CollectionsMarshal.AsSpan(list10)[0]; + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + ref GatheringNode reference8 = ref span10[num2]; GatheringNode obj4 = new GatheringNode { DataId = 30017u }; - num3 = 3; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span5 = CollectionsMarshal.AsSpan(list11); - span5[0] = new GatheringLocation + num4 = 3; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + Span span11 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span11[num3] = new GatheringLocation { Position = new Vector3(443.0036f, -1.818904f, 251.6805f), MinimumAngle = 0, MaximumAngle = 145 }; - span5[1] = new GatheringLocation + num3++; + span11[num3] = new GatheringLocation { Position = new Vector3(459.7153f, -1.026285f, 263.6502f), MinimumAngle = 50, MaximumAngle = 235 }; - span5[2] = new GatheringLocation + num3++; + span11[num3] = new GatheringLocation { Position = new Vector3(468.4217f, -1.290563f, 262.4874f), MinimumAngle = 15, @@ -221,15 +249,19 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(12, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "liza"; + index = 1; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + Span span12 = CollectionsMarshal.AsSpan(list12); + num = 0; + span12[num] = "liza"; gatheringRoot2.Author = list12; num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.None, null, null, 154) + Span span13 = CollectionsMarshal.AsSpan(list13); + index = 0; + span13[index] = new QuestStep(EInteractionType.None, null, null, 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -241,16 +273,19 @@ public static class AssemblyGatheringLocationLoader } }; gatheringRoot2.Steps = list13; - num = 4; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span6 = CollectionsMarshal.AsSpan(list14); - ref GatheringNodeGroup reference9 = ref span6[0]; + index = 4; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref GatheringNodeGroup reference9 = ref span14[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref GatheringNode reference10 = ref CollectionsMarshal.AsSpan(list15)[0]; + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref GatheringNode reference10 = ref span15[index2]; GatheringNode obj5 = new GatheringNode { DataId = 30020u @@ -258,20 +293,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span7 = CollectionsMarshal.AsSpan(list16); - span7[0] = new GatheringLocation + Span span16 = CollectionsMarshal.AsSpan(list16); + num4 = 0; + span16[num4] = new GatheringLocation { Position = new Vector3(279.9662f, -9.225774f, 318.6275f), MinimumAngle = 50, MaximumAngle = 240 }; - span7[1] = new GatheringLocation + num4++; + span16[num4] = new GatheringLocation { Position = new Vector3(295.7656f, -8.987611f, 311.5129f), MinimumAngle = 0, MaximumAngle = 190 }; - span7[2] = new GatheringLocation + num4++; + span16[num4] = new GatheringLocation { Position = new Vector3(283.9807f, -11.68445f, 310.4038f), MinimumAngle = 0, @@ -281,33 +319,39 @@ public static class AssemblyGatheringLocationLoader reference10 = obj5; gatheringNodeGroup5.Nodes = list15; reference9 = gatheringNodeGroup5; - ref GatheringNodeGroup reference11 = ref span6[1]; + num++; + ref GatheringNodeGroup reference11 = ref span14[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + ref GatheringNode reference12 = ref span17[num2]; GatheringNode obj6 = new GatheringNode { DataId = 30019u }; - num3 = 3; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - Span span8 = CollectionsMarshal.AsSpan(list18); - span8[0] = new GatheringLocation + num4 = 3; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + Span span18 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span18[num3] = new GatheringLocation { Position = new Vector3(238.5998f, -22.81126f, 254.0548f), MinimumAngle = -85, MaximumAngle = 55 }; - span8[1] = new GatheringLocation + num3++; + span18[num3] = new GatheringLocation { Position = new Vector3(234.2172f, -22.83841f, 265.2955f), MinimumAngle = -160, MaximumAngle = 0 }; - span8[2] = new GatheringLocation + num3++; + span18[num3] = new GatheringLocation { Position = new Vector3(257.4443f, -20.59358f, 246.4006f), MinimumAngle = -115, @@ -317,12 +361,15 @@ public static class AssemblyGatheringLocationLoader reference12 = obj6; gatheringNodeGroup6.Nodes = list17; reference11 = gatheringNodeGroup6; - ref GatheringNodeGroup reference13 = ref span6[2]; + num++; + ref GatheringNodeGroup reference13 = ref span14[num]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref GatheringNode reference14 = ref span19[index2]; GatheringNode obj7 = new GatheringNode { DataId = 30082u @@ -330,20 +377,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span9 = CollectionsMarshal.AsSpan(list20); - span9[0] = new GatheringLocation + Span span20 = CollectionsMarshal.AsSpan(list20); + num4 = 0; + span20[num4] = new GatheringLocation { Position = new Vector3(221.3946f, -27.69197f, 317.5874f), MinimumAngle = 0, MaximumAngle = 125 }; - span9[1] = new GatheringLocation + num4++; + span20[num4] = new GatheringLocation { Position = new Vector3(209.7868f, -29.03308f, 317.4061f), MinimumAngle = 130, MaximumAngle = 295 }; - span9[2] = new GatheringLocation + num4++; + span20[num4] = new GatheringLocation { Position = new Vector3(216.8077f, -28.68546f, 320.5408f), MinimumAngle = 45, @@ -353,27 +403,32 @@ public static class AssemblyGatheringLocationLoader reference14 = obj7; gatheringNodeGroup7.Nodes = list19; reference13 = gatheringNodeGroup7; - ref GatheringNodeGroup reference15 = ref span6[3]; + num++; + ref GatheringNodeGroup reference15 = ref span14[num]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list21)[0]; + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + ref GatheringNode reference16 = ref span21[num2]; GatheringNode obj8 = new GatheringNode { DataId = 30021u }; - num3 = 3; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span10 = CollectionsMarshal.AsSpan(list22); - span10[0] = new GatheringLocation + num4 = 3; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = new GatheringLocation { Position = new Vector3(250.3709f, -20.9966f, 296.2364f), MinimumAngle = 105, MaximumAngle = 265 }; - span10[1] = new GatheringLocation + num3++; + span22[num3] = new GatheringLocation { Position = new Vector3(247.4017f, -21.53168f, 284.9166f), MinimumAngle = -40, @@ -381,7 +436,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.3f, MaximumDistance = 3f }; - span10[2] = new GatheringLocation + num3++; + span22[num3] = new GatheringLocation { Position = new Vector3(255.3057f, -17.90455f, 302.6251f), MinimumAngle = 145, @@ -397,12 +453,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "liza"; + Span span23 = CollectionsMarshal.AsSpan(list23); + index = 0; + span23[index] = "liza"; gatheringRoot3.Author = list23; - num = 1; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.None, null, null, 148) + index = 1; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + Span span24 = CollectionsMarshal.AsSpan(list24); + num = 0; + span24[num] = new QuestStep(EInteractionType.None, null, null, 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, SkipConditions = new SkipConditions @@ -417,13 +477,16 @@ public static class AssemblyGatheringLocationLoader num = 4; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span11 = CollectionsMarshal.AsSpan(list25); - ref GatheringNodeGroup reference17 = ref span11[0]; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + ref GatheringNodeGroup reference17 = ref span25[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - ref GatheringNode reference18 = ref CollectionsMarshal.AsSpan(list26)[0]; + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + ref GatheringNode reference18 = ref span26[index2]; GatheringNode obj9 = new GatheringNode { DataId = 30028u @@ -431,20 +494,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span12 = CollectionsMarshal.AsSpan(list27); - span12[0] = new GatheringLocation + Span span27 = CollectionsMarshal.AsSpan(list27); + num4 = 0; + span27[num4] = new GatheringLocation { Position = new Vector3(225.8048f, -5.26357f, -71.51706f), MinimumAngle = -60, MaximumAngle = 105 }; - span12[1] = new GatheringLocation + num4++; + span27[num4] = new GatheringLocation { Position = new Vector3(229.0866f, -7.037199f, -62.40871f), MinimumAngle = 0, MaximumAngle = 175 }; - span12[2] = new GatheringLocation + num4++; + span27[num4] = new GatheringLocation { Position = new Vector3(210.4522f, -5.798344f, -69.99769f), MinimumAngle = 180, @@ -454,33 +520,39 @@ public static class AssemblyGatheringLocationLoader reference18 = obj9; gatheringNodeGroup9.Nodes = list26; reference17 = gatheringNodeGroup9; - ref GatheringNodeGroup reference19 = ref span11[1]; + index++; + ref GatheringNodeGroup reference19 = ref span25[index]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - ref GatheringNode reference20 = ref CollectionsMarshal.AsSpan(list28)[0]; + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + ref GatheringNode reference20 = ref span28[num2]; GatheringNode obj10 = new GatheringNode { DataId = 30030u }; - num3 = 3; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span13 = CollectionsMarshal.AsSpan(list29); - span13[0] = new GatheringLocation + num4 = 3; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span29[num3] = new GatheringLocation { Position = new Vector3(205.3417f, -7.402449f, -46.44062f), MinimumAngle = 70, MaximumAngle = 320 }; - span13[1] = new GatheringLocation + num3++; + span29[num3] = new GatheringLocation { Position = new Vector3(204.9178f, -8.416177f, -24.97287f), MinimumAngle = 50, MaximumAngle = 260 }; - span13[2] = new GatheringLocation + num3++; + span29[num3] = new GatheringLocation { Position = new Vector3(196.8121f, -7.515049f, -31.74415f), MinimumAngle = 115, @@ -490,12 +562,15 @@ public static class AssemblyGatheringLocationLoader reference20 = obj10; gatheringNodeGroup10.Nodes = list28; reference19 = gatheringNodeGroup10; - ref GatheringNodeGroup reference21 = ref span11[2]; + index++; + ref GatheringNodeGroup reference21 = ref span25[index]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - ref GatheringNode reference22 = ref CollectionsMarshal.AsSpan(list30)[0]; + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + ref GatheringNode reference22 = ref span30[index2]; GatheringNode obj11 = new GatheringNode { DataId = 30027u @@ -503,14 +578,16 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span14 = CollectionsMarshal.AsSpan(list31); - span14[0] = new GatheringLocation + Span span31 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + span31[num4] = new GatheringLocation { Position = new Vector3(263.5084f, -7.83625f, -28.76189f), MinimumAngle = 220, MaximumAngle = 360 }; - span14[1] = new GatheringLocation + num4++; + span31[num4] = new GatheringLocation { Position = new Vector3(275.0262f, -6.339698f, -42.46669f), MinimumAngle = 30, @@ -518,7 +595,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.9f, MaximumDistance = 3f }; - span14[2] = new GatheringLocation + num4++; + span31[num4] = new GatheringLocation { Position = new Vector3(248.5661f, -8.912354f, -5.168106f), MinimumAngle = 0, @@ -528,21 +606,25 @@ public static class AssemblyGatheringLocationLoader reference22 = obj11; gatheringNodeGroup11.Nodes = list30; reference21 = gatheringNodeGroup11; - ref GatheringNodeGroup reference23 = ref span11[3]; + index++; + ref GatheringNodeGroup reference23 = ref span25[index]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - ref GatheringNode reference24 = ref CollectionsMarshal.AsSpan(list32)[0]; + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + ref GatheringNode reference24 = ref span32[num2]; GatheringNode obj12 = new GatheringNode { DataId = 30029u }; - num3 = 3; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span15 = CollectionsMarshal.AsSpan(list33); - span15[0] = new GatheringLocation + num4 = 3; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = new GatheringLocation { Position = new Vector3(278.9887f, -6.181031f, -100.3401f), MinimumAngle = 0, @@ -550,13 +632,15 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.8f, MaximumDistance = 3f }; - span15[1] = new GatheringLocation + num3++; + span33[num3] = new GatheringLocation { Position = new Vector3(281.2963f, -6.572734f, -72.80408f), MinimumAngle = -5, MaximumAngle = 165 }; - span15[2] = new GatheringLocation + num3++; + span33[num3] = new GatheringLocation { Position = new Vector3(282.8807f, -5.350755f, -91.96065f), MinimumAngle = -30, @@ -571,15 +655,19 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list25; AddLocation(16, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; + index = 1; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + Span span34 = CollectionsMarshal.AsSpan(list34); + num = 0; + span34[num] = "liza"; gatheringRoot4.Author = list34; num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.None, null, null, 148) + Span span35 = CollectionsMarshal.AsSpan(list35); + index = 0; + span35[index] = new QuestStep(EInteractionType.None, null, null, 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, SkipConditions = new SkipConditions @@ -591,16 +679,19 @@ public static class AssemblyGatheringLocationLoader } }; gatheringRoot4.Steps = list35; - num = 4; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span16 = CollectionsMarshal.AsSpan(list36); - ref GatheringNodeGroup reference25 = ref span16[0]; + index = 4; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + Span span36 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref GatheringNodeGroup reference25 = ref span36[num]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list37)[0]; + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + ref GatheringNode reference26 = ref span37[index2]; GatheringNode obj13 = new GatheringNode { DataId = 30034u @@ -608,20 +699,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list38 = new List(num3); CollectionsMarshal.SetCount(list38, num3); - Span span17 = CollectionsMarshal.AsSpan(list38); - span17[0] = new GatheringLocation + Span span38 = CollectionsMarshal.AsSpan(list38); + num4 = 0; + span38[num4] = new GatheringLocation { Position = new Vector3(-105.3941f, 2.85339f, -121.8738f), MinimumAngle = -20, MaximumAngle = 165 }; - span17[1] = new GatheringLocation + num4++; + span38[num4] = new GatheringLocation { Position = new Vector3(-97.9409f, 3.064394f, -126.5676f), MinimumAngle = 115, MaximumAngle = 340 }; - span17[2] = new GatheringLocation + num4++; + span38[num4] = new GatheringLocation { Position = new Vector3(-125.5794f, 5.63143f, -133.3981f) }; @@ -629,31 +723,37 @@ public static class AssemblyGatheringLocationLoader reference26 = obj13; gatheringNodeGroup13.Nodes = list37; reference25 = gatheringNodeGroup13; - ref GatheringNodeGroup reference27 = ref span16[1]; + num++; + ref GatheringNodeGroup reference27 = ref span36[num]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - ref GatheringNode reference28 = ref CollectionsMarshal.AsSpan(list39)[0]; + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + ref GatheringNode reference28 = ref span39[num2]; GatheringNode obj14 = new GatheringNode { DataId = 30035u }; - num3 = 3; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span18 = CollectionsMarshal.AsSpan(list40); - span18[0] = new GatheringLocation + num4 = 3; + List list40 = new List(num4); + CollectionsMarshal.SetCount(list40, num4); + Span span40 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span40[num3] = new GatheringLocation { Position = new Vector3(-154.1009f, 4.5624f, -131.7312f), MinimumAngle = -270, MaximumAngle = 40 }; - span18[1] = new GatheringLocation + num3++; + span40[num3] = new GatheringLocation { Position = new Vector3(-128.832f, 9.71995f, -145.739f) }; - span18[2] = new GatheringLocation + num3++; + span40[num3] = new GatheringLocation { Position = new Vector3(-117.9702f, 9.59642f, -173.7937f), MinimumAngle = -155, @@ -663,12 +763,15 @@ public static class AssemblyGatheringLocationLoader reference28 = obj14; gatheringNodeGroup14.Nodes = list39; reference27 = gatheringNodeGroup14; - ref GatheringNodeGroup reference29 = ref span16[2]; + num++; + ref GatheringNodeGroup reference29 = ref span36[num]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - ref GatheringNode reference30 = ref CollectionsMarshal.AsSpan(list41)[0]; + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + ref GatheringNode reference30 = ref span41[index2]; GatheringNode obj15 = new GatheringNode { DataId = 30036u @@ -676,20 +779,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span19 = CollectionsMarshal.AsSpan(list42); - span19[0] = new GatheringLocation + Span span42 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span42[num4] = new GatheringLocation { Position = new Vector3(-182.3201f, 3.129771f, -91.56992f), MinimumAngle = -190, MaximumAngle = 65 }; - span19[1] = new GatheringLocation + num4++; + span42[num4] = new GatheringLocation { Position = new Vector3(-177.8435f, 2.23569f, -67.93159f), MinimumAngle = -160, MaximumAngle = 30 }; - span19[2] = new GatheringLocation + num4++; + span42[num4] = new GatheringLocation { Position = new Vector3(-163.9663f, 1.91069f, -52.19678f), MinimumAngle = 135, @@ -699,31 +805,37 @@ public static class AssemblyGatheringLocationLoader reference30 = obj15; gatheringNodeGroup15.Nodes = list41; reference29 = gatheringNodeGroup15; - ref GatheringNodeGroup reference31 = ref span16[3]; + num++; + ref GatheringNodeGroup reference31 = ref span36[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - ref GatheringNode reference32 = ref CollectionsMarshal.AsSpan(list43)[0]; + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + ref GatheringNode reference32 = ref span43[num2]; GatheringNode obj16 = new GatheringNode { DataId = 30320u }; - num3 = 3; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span20 = CollectionsMarshal.AsSpan(list44); - span20[0] = new GatheringLocation + num4 = 3; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + Span span44 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span44[num3] = new GatheringLocation { Position = new Vector3(-131.0494f, 0.2034574f, -82.93172f), MinimumAngle = -155, MaximumAngle = 45 }; - span20[1] = new GatheringLocation + num3++; + span44[num3] = new GatheringLocation { Position = new Vector3(-121.5437f, -1.821766f, -74.98891f) }; - span20[2] = new GatheringLocation + num3++; + span44[num3] = new GatheringLocation { Position = new Vector3(-114.8504f, -1.186134f, -88.04849f), MinimumAngle = -210, @@ -739,12 +851,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; + Span span45 = CollectionsMarshal.AsSpan(list45); + index = 0; + span45[index] = "liza"; gatheringRoot5.Author = list45; - num = 1; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.None, null, null, 138) + index = 1; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + Span span46 = CollectionsMarshal.AsSpan(list46); + num = 0; + span46[num] = new QuestStep(EInteractionType.None, null, null, 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -759,13 +875,16 @@ public static class AssemblyGatheringLocationLoader num = 4; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - Span span21 = CollectionsMarshal.AsSpan(list47); - ref GatheringNodeGroup reference33 = ref span21[0]; + Span span47 = CollectionsMarshal.AsSpan(list47); + index = 0; + ref GatheringNodeGroup reference33 = ref span47[index]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - ref GatheringNode reference34 = ref CollectionsMarshal.AsSpan(list48)[0]; + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + ref GatheringNode reference34 = ref span48[index2]; GatheringNode obj17 = new GatheringNode { DataId = 30098u @@ -773,20 +892,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list49 = new List(num3); CollectionsMarshal.SetCount(list49, num3); - Span span22 = CollectionsMarshal.AsSpan(list49); - span22[0] = new GatheringLocation + Span span49 = CollectionsMarshal.AsSpan(list49); + num4 = 0; + span49[num4] = new GatheringLocation { Position = new Vector3(300.7484f, -15.4861f, 153.9048f), MinimumAngle = 175, MaximumAngle = 360 }; - span22[1] = new GatheringLocation + num4++; + span49[num4] = new GatheringLocation { Position = new Vector3(297.8418f, -20.09089f, 166.8599f), MinimumAngle = 95, MaximumAngle = 265 }; - span22[2] = new GatheringLocation + num4++; + span49[num4] = new GatheringLocation { Position = new Vector3(312.9494f, -14.81517f, 145.3793f), MinimumAngle = 110, @@ -796,33 +918,39 @@ public static class AssemblyGatheringLocationLoader reference34 = obj17; gatheringNodeGroup17.Nodes = list48; reference33 = gatheringNodeGroup17; - ref GatheringNodeGroup reference35 = ref span21[1]; + index++; + ref GatheringNodeGroup reference35 = ref span47[index]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - ref GatheringNode reference36 = ref CollectionsMarshal.AsSpan(list50)[0]; + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + ref GatheringNode reference36 = ref span50[num2]; GatheringNode obj18 = new GatheringNode { DataId = 30099u }; - num3 = 3; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - Span span23 = CollectionsMarshal.AsSpan(list51); - span23[0] = new GatheringLocation + num4 = 3; + List list51 = new List(num4); + CollectionsMarshal.SetCount(list51, num4); + Span span51 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span51[num3] = new GatheringLocation { Position = new Vector3(317.6309f, 0.3300658f, 98.40825f), MinimumAngle = 15, MaximumAngle = 190 }; - span23[1] = new GatheringLocation + num3++; + span51[num3] = new GatheringLocation { Position = new Vector3(300.7116f, -9.200176f, 128.1148f), MinimumAngle = 20, MaximumAngle = 205 }; - span23[2] = new GatheringLocation + num3++; + span51[num3] = new GatheringLocation { Position = new Vector3(313.6669f, -5.031699f, 119.2471f), MinimumAngle = 0, @@ -832,12 +960,15 @@ public static class AssemblyGatheringLocationLoader reference36 = obj18; gatheringNodeGroup18.Nodes = list50; reference35 = gatheringNodeGroup18; - ref GatheringNodeGroup reference37 = ref span21[2]; + index++; + ref GatheringNodeGroup reference37 = ref span47[index]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - ref GatheringNode reference38 = ref CollectionsMarshal.AsSpan(list52)[0]; + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + ref GatheringNode reference38 = ref span52[index2]; GatheringNode obj19 = new GatheringNode { DataId = 30100u @@ -845,20 +976,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span24 = CollectionsMarshal.AsSpan(list53); - span24[0] = new GatheringLocation + Span span53 = CollectionsMarshal.AsSpan(list53); + num4 = 0; + span53[num4] = new GatheringLocation { Position = new Vector3(222.8638f, -1.971927f, 82.03091f), MinimumAngle = -115, MaximumAngle = 25 }; - span24[1] = new GatheringLocation + num4++; + span53[num4] = new GatheringLocation { Position = new Vector3(274.0746f, 6.008316f, 65.73824f), MinimumAngle = -115, MaximumAngle = 75 }; - span24[2] = new GatheringLocation + num4++; + span53[num4] = new GatheringLocation { Position = new Vector3(252.9545f, 5.45654f, 50.69089f), MinimumAngle = 225, @@ -868,33 +1002,39 @@ public static class AssemblyGatheringLocationLoader reference38 = obj19; gatheringNodeGroup19.Nodes = list52; reference37 = gatheringNodeGroup19; - ref GatheringNodeGroup reference39 = ref span21[3]; + index++; + ref GatheringNodeGroup reference39 = ref span47[index]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - ref GatheringNode reference40 = ref CollectionsMarshal.AsSpan(list54)[0]; + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + ref GatheringNode reference40 = ref span54[num2]; GatheringNode obj20 = new GatheringNode { DataId = 30101u }; - num3 = 3; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - Span span25 = CollectionsMarshal.AsSpan(list55); - span25[0] = new GatheringLocation + num4 = 3; + List list55 = new List(num4); + CollectionsMarshal.SetCount(list55, num4); + Span span55 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span55[num3] = new GatheringLocation { Position = new Vector3(254.374f, -17.77545f, 174.2901f), MinimumAngle = 115, MaximumAngle = 265 }; - span25[1] = new GatheringLocation + num3++; + span55[num3] = new GatheringLocation { Position = new Vector3(240.5732f, -17.28173f, 176.6604f), MinimumAngle = 80, MaximumAngle = 255 }; - span25[2] = new GatheringLocation + num3++; + span55[num3] = new GatheringLocation { Position = new Vector3(256.3937f, -16.40165f, 164.8165f), MinimumAngle = 90, @@ -914,12 +1054,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 140) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; @@ -927,13 +1071,16 @@ public static class AssemblyGatheringLocationLoader num = 4; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 1; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref GatheringNode reference2 = ref CollectionsMarshal.AsSpan(list4)[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index2 = 0; + ref GatheringNode reference2 = ref span4[index2]; GatheringNode obj = new GatheringNode { DataId = 30414u @@ -941,20 +1088,23 @@ public static class AssemblyGatheringLocationLoader int num3 = 3; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new GatheringLocation + Span span5 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span5[num4] = new GatheringLocation { Position = new Vector3(249.8601f, 55.12077f, 178.5377f), MinimumAngle = 125, MaximumAngle = 270 }; - span2[1] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(253.9519f, 55.95691f, 181.4238f), MinimumAngle = 180, MaximumAngle = 285 }; - span2[2] = new GatheringLocation + num4++; + span5[num4] = new GatheringLocation { Position = new Vector3(244.4912f, 53.49751f, 169.9265f), MinimumAngle = 150, @@ -964,33 +1114,39 @@ public static class AssemblyGatheringLocationLoader reference2 = obj; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference3 = ref span[1]; + index++; + ref GatheringNodeGroup reference3 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref GatheringNode reference4 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref GatheringNode reference4 = ref span6[num2]; GatheringNode obj2 = new GatheringNode { DataId = 30413u }; - num3 = 3; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = new GatheringLocation + num4 = 3; + List list7 = new List(num4); + CollectionsMarshal.SetCount(list7, num4); + Span span7 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span7[num3] = new GatheringLocation { Position = new Vector3(292.9385f, 59.79165f, 187.855f), MinimumAngle = 45, MaximumAngle = 165 }; - span3[1] = new GatheringLocation + num3++; + span7[num3] = new GatheringLocation { Position = new Vector3(300.3293f, 63.1124f, 175.0616f), MinimumAngle = 65, MaximumAngle = 155 }; - span3[2] = new GatheringLocation + num3++; + span7[num3] = new GatheringLocation { Position = new Vector3(296.3942f, 61.46834f, 182.3181f), MinimumAngle = 70, @@ -1000,12 +1156,15 @@ public static class AssemblyGatheringLocationLoader reference4 = obj2; gatheringNodeGroup2.Nodes = list6; reference3 = gatheringNodeGroup2; - ref GatheringNodeGroup reference5 = ref span[2]; + index++; + ref GatheringNodeGroup reference5 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref GatheringNode reference6 = ref CollectionsMarshal.AsSpan(list8)[0]; + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref GatheringNode reference6 = ref span8[index2]; GatheringNode obj3 = new GatheringNode { DataId = 30415u @@ -1013,20 +1172,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span4 = CollectionsMarshal.AsSpan(list9); - span4[0] = new GatheringLocation + Span span9 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span9[num4] = new GatheringLocation { Position = new Vector3(262.1395f, 58.70948f, 239.3097f), MinimumAngle = 105, MaximumAngle = 210 }; - span4[1] = new GatheringLocation + num4++; + span9[num4] = new GatheringLocation { Position = new Vector3(284.4424f, 59.78878f, 222.5899f), MinimumAngle = 65, MaximumAngle = 240 }; - span4[2] = new GatheringLocation + num4++; + span9[num4] = new GatheringLocation { Position = new Vector3(278.6144f, 59.63044f, 231.8303f), MinimumAngle = 95, @@ -1036,33 +1198,39 @@ public static class AssemblyGatheringLocationLoader reference6 = obj3; gatheringNodeGroup3.Nodes = list8; reference5 = gatheringNodeGroup3; - ref GatheringNodeGroup reference7 = ref span[3]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - ref GatheringNode reference8 = ref CollectionsMarshal.AsSpan(list10)[0]; + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + ref GatheringNode reference8 = ref span10[num2]; GatheringNode obj4 = new GatheringNode { DataId = 30416u }; - num3 = 3; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span5 = CollectionsMarshal.AsSpan(list11); - span5[0] = new GatheringLocation + num4 = 3; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + Span span11 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span11[num3] = new GatheringLocation { Position = new Vector3(222.244f, 58.86799f, 244.9212f), MinimumAngle = 135, MaximumAngle = 275 }; - span5[1] = new GatheringLocation + num3++; + span11[num3] = new GatheringLocation { Position = new Vector3(212.3073f, 58.06055f, 245.9091f), MinimumAngle = 80, MaximumAngle = 220 }; - span5[2] = new GatheringLocation + num3++; + span11[num3] = new GatheringLocation { Position = new Vector3(235.9484f, 58.30469f, 249.0489f), MinimumAngle = 80, @@ -1075,29 +1243,36 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(154, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "liza"; + index = 1; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + Span span12 = CollectionsMarshal.AsSpan(list12); + num = 0; + span12[num] = "liza"; gatheringRoot2.Author = list12; num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.None, null, null, 141) + Span span13 = CollectionsMarshal.AsSpan(list13); + index = 0; + span13[index] = new QuestStep(EInteractionType.None, null, null, 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; gatheringRoot2.Steps = list13; - num = 4; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span6 = CollectionsMarshal.AsSpan(list14); - ref GatheringNodeGroup reference9 = ref span6[0]; + index = 4; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref GatheringNodeGroup reference9 = ref span14[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref GatheringNode reference10 = ref CollectionsMarshal.AsSpan(list15)[0]; + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref GatheringNode reference10 = ref span15[index2]; GatheringNode obj5 = new GatheringNode { DataId = 30425u @@ -1105,20 +1280,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span7 = CollectionsMarshal.AsSpan(list16); - span7[0] = new GatheringLocation + Span span16 = CollectionsMarshal.AsSpan(list16); + num4 = 0; + span16[num4] = new GatheringLocation { Position = new Vector3(118.6389f, 7.583679f, 262.4399f), MinimumAngle = 60, MaximumAngle = 170 }; - span7[1] = new GatheringLocation + num4++; + span16[num4] = new GatheringLocation { Position = new Vector3(113.4342f, 4.562373f, 271.4816f), MinimumAngle = 80, MaximumAngle = 190 }; - span7[2] = new GatheringLocation + num4++; + span16[num4] = new GatheringLocation { Position = new Vector3(116.9106f, 2.964557f, 285.8209f), MinimumAngle = 0, @@ -1128,33 +1306,39 @@ public static class AssemblyGatheringLocationLoader reference10 = obj5; gatheringNodeGroup5.Nodes = list15; reference9 = gatheringNodeGroup5; - ref GatheringNodeGroup reference11 = ref span6[1]; + num++; + ref GatheringNodeGroup reference11 = ref span14[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + ref GatheringNode reference12 = ref span17[num2]; GatheringNode obj6 = new GatheringNode { DataId = 30427u }; - num3 = 3; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - Span span8 = CollectionsMarshal.AsSpan(list18); - span8[0] = new GatheringLocation + num4 = 3; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + Span span18 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span18[num3] = new GatheringLocation { Position = new Vector3(127.2449f, 15.54889f, 240.1923f), MinimumAngle = 15, MaximumAngle = 115 }; - span8[1] = new GatheringLocation + num3++; + span18[num3] = new GatheringLocation { Position = new Vector3(122.0915f, 14.071f, 225.1131f), MinimumAngle = 0, MaximumAngle = 110 }; - span8[2] = new GatheringLocation + num3++; + span18[num3] = new GatheringLocation { Position = new Vector3(120.8954f, 15.9651f, 213.8515f), MinimumAngle = 30, @@ -1164,12 +1348,15 @@ public static class AssemblyGatheringLocationLoader reference12 = obj6; gatheringNodeGroup6.Nodes = list17; reference11 = gatheringNodeGroup6; - ref GatheringNodeGroup reference13 = ref span6[2]; + num++; + ref GatheringNodeGroup reference13 = ref span14[num]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref GatheringNode reference14 = ref span19[index2]; GatheringNode obj7 = new GatheringNode { DataId = 30426u @@ -1177,20 +1364,23 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span9 = CollectionsMarshal.AsSpan(list20); - span9[0] = new GatheringLocation + Span span20 = CollectionsMarshal.AsSpan(list20); + num4 = 0; + span20[num4] = new GatheringLocation { Position = new Vector3(148.7842f, 16.44447f, 292.8037f), MinimumAngle = 30, MaximumAngle = 135 }; - span9[1] = new GatheringLocation + num4++; + span20[num4] = new GatheringLocation { Position = new Vector3(144.9166f, 18.86193f, 264.833f), MinimumAngle = 15, MaximumAngle = 95 }; - span9[2] = new GatheringLocation + num4++; + span20[num4] = new GatheringLocation { Position = new Vector3(152.6806f, 16.58945f, 300.3315f), MinimumAngle = 0, @@ -1200,33 +1390,39 @@ public static class AssemblyGatheringLocationLoader reference14 = obj7; gatheringNodeGroup7.Nodes = list19; reference13 = gatheringNodeGroup7; - ref GatheringNodeGroup reference15 = ref span6[3]; + num++; + ref GatheringNodeGroup reference15 = ref span14[num]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list21)[0]; + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + ref GatheringNode reference16 = ref span21[num2]; GatheringNode obj8 = new GatheringNode { DataId = 30428u }; - num3 = 3; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span10 = CollectionsMarshal.AsSpan(list22); - span10[0] = new GatheringLocation + num4 = 3; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = new GatheringLocation { Position = new Vector3(137.6659f, 6.65416f, 311.1226f), MinimumAngle = 15, MaximumAngle = 135 }; - span10[1] = new GatheringLocation + num3++; + span22[num3] = new GatheringLocation { Position = new Vector3(141.0331f, 5.844177f, 325.063f), MinimumAngle = 0, MaximumAngle = 150 }; - span10[2] = new GatheringLocation + num3++; + span22[num3] = new GatheringLocation { Position = new Vector3(130.6749f, 5.736229f, 300.4703f), MinimumAngle = -5, @@ -1242,12 +1438,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "Censored"; + Span span23 = CollectionsMarshal.AsSpan(list23); + index = 0; + span23[index] = "Censored"; gatheringRoot3.Author = list23; - num = 1; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.None, null, null, 155) + index = 1; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + Span span24 = CollectionsMarshal.AsSpan(list24); + num = 0; + span24[num] = new QuestStep(EInteractionType.None, null, null, 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; @@ -1255,20 +1455,25 @@ public static class AssemblyGatheringLocationLoader num = 2; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span11 = CollectionsMarshal.AsSpan(list25); - span11[0] = 2001424u; - span11[1] = 2001425u; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = 2001424u; + index++; + span25[index] = 2001425u; gatheringRoot3.ExtraQuestItems = list25; - num = 4; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span12 = CollectionsMarshal.AsSpan(list26); - ref GatheringNodeGroup reference17 = ref span12[0]; + index = 4; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref GatheringNodeGroup reference17 = ref span26[num]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - ref GatheringNode reference18 = ref CollectionsMarshal.AsSpan(list27)[0]; + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + ref GatheringNode reference18 = ref span27[index2]; GatheringNode obj9 = new GatheringNode { DataId = 31046u @@ -1276,12 +1481,14 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - Span span13 = CollectionsMarshal.AsSpan(list28); - span13[0] = new GatheringLocation + Span span28 = CollectionsMarshal.AsSpan(list28); + num4 = 0; + span28[num4] = new GatheringLocation { Position = new Vector3(268.635f, 299.8158f, -114.4274f) }; - span13[1] = new GatheringLocation + num4++; + span28[num4] = new GatheringLocation { Position = new Vector3(284.4186f, 309.0771f, -128.535f) }; @@ -1289,25 +1496,30 @@ public static class AssemblyGatheringLocationLoader reference18 = obj9; gatheringNodeGroup9.Nodes = list27; reference17 = gatheringNodeGroup9; - ref GatheringNodeGroup reference19 = ref span12[1]; + num++; + ref GatheringNodeGroup reference19 = ref span26[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - ref GatheringNode reference20 = ref CollectionsMarshal.AsSpan(list29)[0]; + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + ref GatheringNode reference20 = ref span29[num2]; GatheringNode obj10 = new GatheringNode { DataId = 31045u }; - num3 = 2; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span14 = CollectionsMarshal.AsSpan(list30); - span14[0] = new GatheringLocation + num4 = 2; + List list30 = new List(num4); + CollectionsMarshal.SetCount(list30, num4); + Span span30 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span30[num3] = new GatheringLocation { Position = new Vector3(198.4182f, 288.6254f, -93.58918f) }; - span14[1] = new GatheringLocation + num3++; + span30[num3] = new GatheringLocation { Position = new Vector3(206.082f, 279.446f, -57.03315f) }; @@ -1315,12 +1527,15 @@ public static class AssemblyGatheringLocationLoader reference20 = obj10; gatheringNodeGroup10.Nodes = list29; reference19 = gatheringNodeGroup10; - ref GatheringNodeGroup reference21 = ref span12[2]; + num++; + ref GatheringNodeGroup reference21 = ref span26[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - ref GatheringNode reference22 = ref CollectionsMarshal.AsSpan(list31)[0]; + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + ref GatheringNode reference22 = ref span31[index2]; GatheringNode obj11 = new GatheringNode { DataId = 31047u @@ -1328,12 +1543,14 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span15 = CollectionsMarshal.AsSpan(list32); - span15[0] = new GatheringLocation + Span span32 = CollectionsMarshal.AsSpan(list32); + num4 = 0; + span32[num4] = new GatheringLocation { Position = new Vector3(270.5842f, 291.5777f, -57.16897f) }; - span15[1] = new GatheringLocation + num4++; + span32[num4] = new GatheringLocation { Position = new Vector3(242.9548f, 283.3405f, -56.95627f) }; @@ -1341,25 +1558,30 @@ public static class AssemblyGatheringLocationLoader reference22 = obj11; gatheringNodeGroup11.Nodes = list31; reference21 = gatheringNodeGroup11; - ref GatheringNodeGroup reference23 = ref span12[3]; + num++; + ref GatheringNodeGroup reference23 = ref span26[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - ref GatheringNode reference24 = ref CollectionsMarshal.AsSpan(list33)[0]; + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + ref GatheringNode reference24 = ref span33[num2]; GatheringNode obj12 = new GatheringNode { DataId = 31048u }; - num3 = 2; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span16 = CollectionsMarshal.AsSpan(list34); - span16[0] = new GatheringLocation + num4 = 2; + List list34 = new List(num4); + CollectionsMarshal.SetCount(list34, num4); + Span span34 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span34[num3] = new GatheringLocation { Position = new Vector3(297.2305f, 305.3402f, -78.08051f) }; - span16[1] = new GatheringLocation + num3++; + span34[num3] = new GatheringLocation { Position = new Vector3(310.8341f, 307.6252f, -72.68935f) }; @@ -1373,12 +1595,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "Censored"; + Span span35 = CollectionsMarshal.AsSpan(list35); + index = 0; + span35[index] = "Censored"; gatheringRoot4.Author = list35; - num = 1; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.None, null, null, 154) + index = 1; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + Span span36 = CollectionsMarshal.AsSpan(list36); + num = 0; + span36[num] = new QuestStep(EInteractionType.None, null, null, 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; @@ -1386,20 +1612,25 @@ public static class AssemblyGatheringLocationLoader num = 2; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - Span span17 = CollectionsMarshal.AsSpan(list37); - span17[0] = 2001391u; - span17[1] = 2001392u; + Span span37 = CollectionsMarshal.AsSpan(list37); + index = 0; + span37[index] = 2001391u; + index++; + span37[index] = 2001392u; gatheringRoot4.ExtraQuestItems = list37; - num = 4; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - Span span18 = CollectionsMarshal.AsSpan(list38); - ref GatheringNodeGroup reference25 = ref span18[0]; + index = 4; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + Span span38 = CollectionsMarshal.AsSpan(list38); + num = 0; + ref GatheringNodeGroup reference25 = ref span38[num]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list39)[0]; + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + ref GatheringNode reference26 = ref span39[index2]; GatheringNode obj13 = new GatheringNode { DataId = 31049u @@ -1407,14 +1638,16 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - Span span19 = CollectionsMarshal.AsSpan(list40); - span19[0] = new GatheringLocation + Span span40 = CollectionsMarshal.AsSpan(list40); + num4 = 0; + span40[num4] = new GatheringLocation { Position = new Vector3(232.6686f, -2.063462f, -13.87066f), MinimumAngle = -75, MaximumAngle = 85 }; - span19[1] = new GatheringLocation + num4++; + span40[num4] = new GatheringLocation { Position = new Vector3(208.5002f, -1.21151f, -8.481951f), MinimumAngle = -105, @@ -1424,27 +1657,32 @@ public static class AssemblyGatheringLocationLoader reference26 = obj13; gatheringNodeGroup13.Nodes = list39; reference25 = gatheringNodeGroup13; - ref GatheringNodeGroup reference27 = ref span18[1]; + num++; + ref GatheringNodeGroup reference27 = ref span38[num]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - ref GatheringNode reference28 = ref CollectionsMarshal.AsSpan(list41)[0]; + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + ref GatheringNode reference28 = ref span41[num2]; GatheringNode obj14 = new GatheringNode { DataId = 31051u }; - num3 = 2; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span20 = CollectionsMarshal.AsSpan(list42); - span20[0] = new GatheringLocation + num4 = 2; + List list42 = new List(num4); + CollectionsMarshal.SetCount(list42, num4); + Span span42 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span42[num3] = new GatheringLocation { Position = new Vector3(174.384f, -0.4081409f, 40.32799f), MinimumAngle = -155, MaximumAngle = 50 }; - span20[1] = new GatheringLocation + num3++; + span42[num3] = new GatheringLocation { Position = new Vector3(180.6999f, 0.5284532f, 43.46334f), MinimumAngle = -350, @@ -1454,12 +1692,15 @@ public static class AssemblyGatheringLocationLoader reference28 = obj14; gatheringNodeGroup14.Nodes = list41; reference27 = gatheringNodeGroup14; - ref GatheringNodeGroup reference29 = ref span18[2]; + num++; + ref GatheringNodeGroup reference29 = ref span38[num]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - ref GatheringNode reference30 = ref CollectionsMarshal.AsSpan(list43)[0]; + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + ref GatheringNode reference30 = ref span43[index2]; GatheringNode obj15 = new GatheringNode { DataId = 31052u @@ -1467,14 +1708,16 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span21 = CollectionsMarshal.AsSpan(list44); - span21[0] = new GatheringLocation + Span span44 = CollectionsMarshal.AsSpan(list44); + num4 = 0; + span44[num4] = new GatheringLocation { Position = new Vector3(239.2585f, -10.81729f, 85.37144f), MinimumAngle = -260, MaximumAngle = -70 }; - span21[1] = new GatheringLocation + num4++; + span44[num4] = new GatheringLocation { Position = new Vector3(219.6392f, -8.915615f, 78.84674f), MinimumAngle = -255, @@ -1484,27 +1727,32 @@ public static class AssemblyGatheringLocationLoader reference30 = obj15; gatheringNodeGroup15.Nodes = list43; reference29 = gatheringNodeGroup15; - ref GatheringNodeGroup reference31 = ref span18[3]; + num++; + ref GatheringNodeGroup reference31 = ref span38[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - ref GatheringNode reference32 = ref CollectionsMarshal.AsSpan(list45)[0]; + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + ref GatheringNode reference32 = ref span45[num2]; GatheringNode obj16 = new GatheringNode { DataId = 31050u }; - num3 = 2; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - Span span22 = CollectionsMarshal.AsSpan(list46); - span22[0] = new GatheringLocation + num4 = 2; + List list46 = new List(num4); + CollectionsMarshal.SetCount(list46, num4); + Span span46 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span46[num3] = new GatheringLocation { Position = new Vector3(172.7773f, -0.5520306f, -24.73335f), MinimumAngle = -65, MaximumAngle = 145 }; - span22[1] = new GatheringLocation + num3++; + span46[num3] = new GatheringLocation { Position = new Vector3(158.3542f, 0.1226652f, -17.62734f), MinimumAngle = -180, @@ -1524,12 +1772,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Censored"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Censored"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 156) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -1544,20 +1796,25 @@ public static class AssemblyGatheringLocationLoader num = 2; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - span[0] = 2001415u; - span[1] = 2001416u; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + span3[index] = 2001415u; + index++; + span3[index] = 2001416u; gatheringRoot.ExtraQuestItems = list3; - num = 4; - List list4 = new List(num); - CollectionsMarshal.SetCount(list4, num); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref GatheringNodeGroup reference = ref span2[0]; + index = 4; + List list4 = new List(index); + CollectionsMarshal.SetCount(list4, index); + Span span4 = CollectionsMarshal.AsSpan(list4); + num = 0; + ref GatheringNodeGroup reference = ref span4[num]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - ref GatheringNode reference2 = ref CollectionsMarshal.AsSpan(list5)[0]; + Span span5 = CollectionsMarshal.AsSpan(list5); + int index2 = 0; + ref GatheringNode reference2 = ref span5[index2]; GatheringNode obj = new GatheringNode { DataId = 30452u @@ -1565,14 +1822,16 @@ public static class AssemblyGatheringLocationLoader int num3 = 2; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = new GatheringLocation + Span span6 = CollectionsMarshal.AsSpan(list6); + int num4 = 0; + span6[num4] = new GatheringLocation { Position = new Vector3(-333.5713f, -15.49291f, -326.9827f), MinimumAngle = -250, MaximumAngle = -115 }; - span3[1] = new GatheringLocation + num4++; + span6[num4] = new GatheringLocation { Position = new Vector3(-353.6776f, -15.7935f, -321.7334f), MinimumAngle = -190, @@ -1582,21 +1841,25 @@ public static class AssemblyGatheringLocationLoader reference2 = obj; gatheringNodeGroup.Nodes = list5; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference3 = ref span2[1]; + num++; + ref GatheringNodeGroup reference3 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - ref GatheringNode reference4 = ref CollectionsMarshal.AsSpan(list7)[0]; + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref GatheringNode reference4 = ref span7[num2]; GatheringNode obj2 = new GatheringNode { DataId = 30449u }; - num3 = 2; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span4 = CollectionsMarshal.AsSpan(list8); - span4[0] = new GatheringLocation + num4 = 2; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + Span span8 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + span8[num3] = new GatheringLocation { Position = new Vector3(-308.8034f, -13.83647f, -329.9288f), MinimumAngle = -55, @@ -1604,7 +1867,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.4f, MaximumDistance = 3f }; - span4[1] = new GatheringLocation + num3++; + span8[num3] = new GatheringLocation { Position = new Vector3(-290.5811f, -11.39756f, -323.1493f), MinimumAngle = -65, @@ -1614,12 +1878,15 @@ public static class AssemblyGatheringLocationLoader reference4 = obj2; gatheringNodeGroup2.Nodes = list7; reference3 = gatheringNodeGroup2; - ref GatheringNodeGroup reference5 = ref span2[2]; + num++; + ref GatheringNodeGroup reference5 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - ref GatheringNode reference6 = ref CollectionsMarshal.AsSpan(list9)[0]; + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + ref GatheringNode reference6 = ref span9[index2]; GatheringNode obj3 = new GatheringNode { DataId = 30450u @@ -1627,14 +1894,16 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - Span span5 = CollectionsMarshal.AsSpan(list10); - span5[0] = new GatheringLocation + Span span10 = CollectionsMarshal.AsSpan(list10); + num4 = 0; + span10[num4] = new GatheringLocation { Position = new Vector3(-281.3932f, -8.5558f, -326.8167f), MinimumAngle = -135, MaximumAngle = 5 }; - span5[1] = new GatheringLocation + num4++; + span10[num4] = new GatheringLocation { Position = new Vector3(-266.9396f, -6.345774f, -325.4775f), MinimumAngle = 135, @@ -1646,27 +1915,32 @@ public static class AssemblyGatheringLocationLoader reference6 = obj3; gatheringNodeGroup3.Nodes = list9; reference5 = gatheringNodeGroup3; - ref GatheringNodeGroup reference7 = ref span2[3]; + num++; + ref GatheringNodeGroup reference7 = ref span4[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - ref GatheringNode reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref GatheringNode reference8 = ref span11[num2]; GatheringNode obj4 = new GatheringNode { DataId = 30451u }; - num3 = 2; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - Span span6 = CollectionsMarshal.AsSpan(list12); - span6[0] = new GatheringLocation + num4 = 2; + List list12 = new List(num4); + CollectionsMarshal.SetCount(list12, num4); + Span span12 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span12[num3] = new GatheringLocation { Position = new Vector3(-254.5719f, -5.395673f, -317.087f), MinimumAngle = 180, MaximumAngle = 275 }; - span6[1] = new GatheringLocation + num3++; + span12[num3] = new GatheringLocation { Position = new Vector3(-249.4642f, -5.140871f, -324.9326f), MinimumAngle = -10, @@ -1684,12 +1958,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "Censored"; + Span span13 = CollectionsMarshal.AsSpan(list13); + index = 0; + span13[index] = "Censored"; gatheringRoot2.Author = list13; - num = 1; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 155) + index = 1; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + num = 0; + span14[num] = new QuestStep(EInteractionType.None, null, null, 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -1704,20 +1982,25 @@ public static class AssemblyGatheringLocationLoader num = 2; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span7 = CollectionsMarshal.AsSpan(list15); - span7[0] = 2001426u; - span7[1] = 2001427u; + Span span15 = CollectionsMarshal.AsSpan(list15); + index = 0; + span15[index] = 2001426u; + index++; + span15[index] = 2001427u; gatheringRoot2.ExtraQuestItems = list15; - num = 4; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span8 = CollectionsMarshal.AsSpan(list16); - ref GatheringNodeGroup reference9 = ref span8[0]; + index = 4; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + Span span16 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref GatheringNodeGroup reference9 = ref span16[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - ref GatheringNode reference10 = ref CollectionsMarshal.AsSpan(list17)[0]; + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + ref GatheringNode reference10 = ref span17[index2]; GatheringNode obj5 = new GatheringNode { DataId = 30510u @@ -1725,12 +2008,14 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span9 = CollectionsMarshal.AsSpan(list18); - span9[0] = new GatheringLocation + Span span18 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span18[num4] = new GatheringLocation { Position = new Vector3(334.4322f, 307.1861f, -252.2396f) }; - span9[1] = new GatheringLocation + num4++; + span18[num4] = new GatheringLocation { Position = new Vector3(318.1049f, 305.9586f, -236.1029f), MinimumAngle = -270, @@ -1742,27 +2027,32 @@ public static class AssemblyGatheringLocationLoader reference10 = obj5; gatheringNodeGroup5.Nodes = list17; reference9 = gatheringNodeGroup5; - ref GatheringNodeGroup reference11 = ref span8[1]; + num++; + ref GatheringNodeGroup reference11 = ref span16[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list19)[0]; + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + ref GatheringNode reference12 = ref span19[num2]; GatheringNode obj6 = new GatheringNode { DataId = 30511u }; - num3 = 2; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span10 = CollectionsMarshal.AsSpan(list20); - span10[0] = new GatheringLocation + num4 = 2; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + Span span20 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + span20[num3] = new GatheringLocation { Position = new Vector3(347.1616f, 316.7778f, -231.3722f), MinimumAngle = -45, MaximumAngle = 190 }; - span10[1] = new GatheringLocation + num3++; + span20[num3] = new GatheringLocation { Position = new Vector3(355.554f, 321.804f, -231.1056f), MinimumAngle = -285, @@ -1772,12 +2062,15 @@ public static class AssemblyGatheringLocationLoader reference12 = obj6; gatheringNodeGroup6.Nodes = list19; reference11 = gatheringNodeGroup6; - ref GatheringNodeGroup reference13 = ref span8[2]; + num++; + ref GatheringNodeGroup reference13 = ref span16[num]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list21)[0]; + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + ref GatheringNode reference14 = ref span21[index2]; GatheringNode obj7 = new GatheringNode { DataId = 30508u @@ -1785,14 +2078,16 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - Span span11 = CollectionsMarshal.AsSpan(list22); - span11[0] = new GatheringLocation + Span span22 = CollectionsMarshal.AsSpan(list22); + num4 = 0; + span22[num4] = new GatheringLocation { Position = new Vector3(298.5091f, 309.1797f, -201.3309f), MinimumAngle = 105, MaximumAngle = 220 }; - span11[1] = new GatheringLocation + num4++; + span22[num4] = new GatheringLocation { Position = new Vector3(291.6585f, 305.774f, -206.6072f), MinimumAngle = -220, @@ -1802,27 +2097,32 @@ public static class AssemblyGatheringLocationLoader reference14 = obj7; gatheringNodeGroup7.Nodes = list21; reference13 = gatheringNodeGroup7; - ref GatheringNodeGroup reference15 = ref span8[3]; + num++; + ref GatheringNodeGroup reference15 = ref span16[num]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list23)[0]; + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + ref GatheringNode reference16 = ref span23[num2]; GatheringNode obj8 = new GatheringNode { DataId = 30509u }; - num3 = 2; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - Span span12 = CollectionsMarshal.AsSpan(list24); - span12[0] = new GatheringLocation + num4 = 2; + List list24 = new List(num4); + CollectionsMarshal.SetCount(list24, num4); + Span span24 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span24[num3] = new GatheringLocation { Position = new Vector3(325.9026f, 306.1053f, -278.1509f), MinimumAngle = -350, MaximumAngle = -55 }; - span12[1] = new GatheringLocation + num3++; + span24[num3] = new GatheringLocation { Position = new Vector3(289.1882f, 302.4524f, -261.3322f), MinimumAngle = -240, @@ -1838,12 +2138,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "Censored"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "Censored"; gatheringRoot3.Author = list25; - num = 1; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 154) + index = 1; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + span26[num] = new QuestStep(EInteractionType.None, null, null, 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; @@ -1851,20 +2155,25 @@ public static class AssemblyGatheringLocationLoader num = 2; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span13 = CollectionsMarshal.AsSpan(list27); - span13[0] = 2001388u; - span13[1] = 2001389u; + Span span27 = CollectionsMarshal.AsSpan(list27); + index = 0; + span27[index] = 2001388u; + index++; + span27[index] = 2001389u; gatheringRoot3.ExtraQuestItems = list27; - num = 4; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span14 = CollectionsMarshal.AsSpan(list28); - ref GatheringNodeGroup reference17 = ref span14[0]; + index = 4; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + Span span28 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref GatheringNodeGroup reference17 = ref span28[num]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - ref GatheringNode reference18 = ref CollectionsMarshal.AsSpan(list29)[0]; + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + ref GatheringNode reference18 = ref span29[index2]; GatheringNode obj9 = new GatheringNode { DataId = 31037u @@ -1872,12 +2181,14 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span15 = CollectionsMarshal.AsSpan(list30); - span15[0] = new GatheringLocation + Span span30 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span30[num4] = new GatheringLocation { Position = new Vector3(37.26512f, -5.35672f, -17.14218f) }; - span15[1] = new GatheringLocation + num4++; + span30[num4] = new GatheringLocation { Position = new Vector3(38.57137f, -5.615489f, -22.79385f), MinimumAngle = -175, @@ -1887,27 +2198,32 @@ public static class AssemblyGatheringLocationLoader reference18 = obj9; gatheringNodeGroup9.Nodes = list29; reference17 = gatheringNodeGroup9; - ref GatheringNodeGroup reference19 = ref span14[1]; + num++; + ref GatheringNodeGroup reference19 = ref span28[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - ref GatheringNode reference20 = ref CollectionsMarshal.AsSpan(list31)[0]; + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref GatheringNode reference20 = ref span31[num2]; GatheringNode obj10 = new GatheringNode { DataId = 31040u }; - num3 = 2; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span16 = CollectionsMarshal.AsSpan(list32); - span16[0] = new GatheringLocation + num4 = 2; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + Span span32 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span32[num3] = new GatheringLocation { Position = new Vector3(31.95057f, -6.724361f, -2.002786f), MinimumAngle = -140, MaximumAngle = 140 }; - span16[1] = new GatheringLocation + num3++; + span32[num3] = new GatheringLocation { Position = new Vector3(29.91186f, -7.849501f, -8.288407f), MinimumAngle = -310, @@ -1917,12 +2233,15 @@ public static class AssemblyGatheringLocationLoader reference20 = obj10; gatheringNodeGroup10.Nodes = list31; reference19 = gatheringNodeGroup10; - ref GatheringNodeGroup reference21 = ref span14[2]; + num++; + ref GatheringNodeGroup reference21 = ref span28[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - ref GatheringNode reference22 = ref CollectionsMarshal.AsSpan(list33)[0]; + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + ref GatheringNode reference22 = ref span33[index2]; GatheringNode obj11 = new GatheringNode { DataId = 31038u @@ -1930,14 +2249,16 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span17 = CollectionsMarshal.AsSpan(list34); - span17[0] = new GatheringLocation + Span span34 = CollectionsMarshal.AsSpan(list34); + num4 = 0; + span34[num4] = new GatheringLocation { Position = new Vector3(78.76174f, -11.8893f, 3.8787f), MinimumAngle = 45, MaximumAngle = 220 }; - span17[1] = new GatheringLocation + num4++; + span34[num4] = new GatheringLocation { Position = new Vector3(81.825f, -12.01711f, -3.642704f), MinimumAngle = 0, @@ -1947,27 +2268,32 @@ public static class AssemblyGatheringLocationLoader reference22 = obj11; gatheringNodeGroup11.Nodes = list33; reference21 = gatheringNodeGroup11; - ref GatheringNodeGroup reference23 = ref span14[3]; + num++; + ref GatheringNodeGroup reference23 = ref span28[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - ref GatheringNode reference24 = ref CollectionsMarshal.AsSpan(list35)[0]; + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + ref GatheringNode reference24 = ref span35[num2]; GatheringNode obj12 = new GatheringNode { DataId = 31039u }; - num3 = 2; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span18 = CollectionsMarshal.AsSpan(list36); - span18[0] = new GatheringLocation + num4 = 2; + List list36 = new List(num4); + CollectionsMarshal.SetCount(list36, num4); + Span span36 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span36[num3] = new GatheringLocation { Position = new Vector3(61.52108f, -11.51824f, -20.57552f), MinimumAngle = -145, MaximumAngle = 85 }; - span18[1] = new GatheringLocation + num3++; + span36[num3] = new GatheringLocation { Position = new Vector3(53.08001f, -11.09225f, -27.17002f), MinimumAngle = -50, @@ -1983,12 +2309,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "Censored"; + Span span37 = CollectionsMarshal.AsSpan(list37); + index = 0; + span37[index] = "Censored"; gatheringRoot4.Author = list37; - num = 1; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 156) + index = 1; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + Span span38 = CollectionsMarshal.AsSpan(list38); + num = 0; + span38[num] = new QuestStep(EInteractionType.None, null, null, 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -2003,20 +2333,25 @@ public static class AssemblyGatheringLocationLoader num = 2; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span19 = CollectionsMarshal.AsSpan(list39); - span19[0] = 2001412u; - span19[1] = 2001413u; + Span span39 = CollectionsMarshal.AsSpan(list39); + index = 0; + span39[index] = 2001412u; + index++; + span39[index] = 2001413u; gatheringRoot4.ExtraQuestItems = list39; - num = 3; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span20 = CollectionsMarshal.AsSpan(list40); - ref GatheringNodeGroup reference25 = ref span20[0]; + index = 3; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + Span span40 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref GatheringNodeGroup reference25 = ref span40[num]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list41)[0]; + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + ref GatheringNode reference26 = ref span41[index2]; GatheringNode obj13 = new GatheringNode { DataId = 31043u @@ -2024,14 +2359,16 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span21 = CollectionsMarshal.AsSpan(list42); - span21[0] = new GatheringLocation + Span span42 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span42[num4] = new GatheringLocation { Position = new Vector3(-371.8556f, -15.86567f, -363.9182f), MinimumAngle = -145, MaximumAngle = -35 }; - span21[1] = new GatheringLocation + num4++; + span42[num4] = new GatheringLocation { Position = new Vector3(-372.1209f, -16.00947f, -351.6216f), MinimumAngle = -125, @@ -2041,28 +2378,32 @@ public static class AssemblyGatheringLocationLoader reference26 = obj13; gatheringNodeGroup13.Nodes = list41; reference25 = gatheringNodeGroup13; - ref GatheringNodeGroup reference27 = ref span20[1]; + num++; + ref GatheringNodeGroup reference27 = ref span40[num]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 2; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span22 = CollectionsMarshal.AsSpan(list43); - ref GatheringNode reference28 = ref span22[0]; + index2 = 2; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + ref GatheringNode reference28 = ref span43[num2]; GatheringNode obj14 = new GatheringNode { DataId = 31044u }; - num3 = 2; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span23 = CollectionsMarshal.AsSpan(list44); - span23[0] = new GatheringLocation + num4 = 2; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + Span span44 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span44[num3] = new GatheringLocation { Position = new Vector3(-344.8759f, -16.46771f, -338.7833f), MinimumAngle = -90, MaximumAngle = 75 }; - span23[1] = new GatheringLocation + num3++; + span44[num3] = new GatheringLocation { Position = new Vector3(-332.5748f, -16.07329f, -337.0371f), MinimumAngle = -65, @@ -2070,7 +2411,8 @@ public static class AssemblyGatheringLocationLoader }; obj14.Locations = list44; reference28 = obj14; - ref GatheringNode reference29 = ref span22[1]; + num2++; + ref GatheringNode reference29 = ref span43[num2]; GatheringNode obj15 = new GatheringNode { DataId = 31042u @@ -2078,7 +2420,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation + Span span45 = CollectionsMarshal.AsSpan(list45); + num4 = 0; + span45[num4] = new GatheringLocation { Position = new Vector3(-317.5309f, -16.18071f, -338.7262f), MinimumAngle = -35, @@ -2088,27 +2432,32 @@ public static class AssemblyGatheringLocationLoader reference29 = obj15; gatheringNodeGroup14.Nodes = list43; reference27 = gatheringNodeGroup14; - ref GatheringNodeGroup reference30 = ref span20[2]; + num++; + ref GatheringNodeGroup reference30 = ref span40[num]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - ref GatheringNode reference31 = ref CollectionsMarshal.AsSpan(list46)[0]; + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + ref GatheringNode reference31 = ref span46[index2]; GatheringNode obj16 = new GatheringNode { DataId = 31041u }; - num3 = 2; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - Span span24 = CollectionsMarshal.AsSpan(list47); - span24[0] = new GatheringLocation + num4 = 2; + List list47 = new List(num4); + CollectionsMarshal.SetCount(list47, num4); + Span span47 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + span47[num3] = new GatheringLocation { Position = new Vector3(-347.2882f, -15.12936f, -346.8752f), MinimumAngle = -195, MaximumAngle = -110 }; - span24[1] = new GatheringLocation + num3++; + span47[num3] = new GatheringLocation { Position = new Vector3(-348.3911f, -16.14678f, -363.7992f), MinimumAngle = -20, @@ -2128,12 +2477,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 397) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; @@ -2141,47 +2494,55 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref GatheringNode reference2 = ref span2[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int num3 = 0; + ref GatheringNode reference2 = ref span4[num3]; GatheringNode obj = new GatheringNode { DataId = 31406u }; - int num3 = 1; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation + int num4 = 1; + List list5 = new List(num4); + CollectionsMarshal.SetCount(list5, num4); + Span span5 = CollectionsMarshal.AsSpan(list5); + int index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-501.2244f, 118.0477f, -443.4114f) }; obj.Locations = list5; reference2 = obj; - ref GatheringNode reference3 = ref span2[1]; + num3++; + ref GatheringNode reference3 = ref span4[num3]; GatheringNode obj2 = new GatheringNode { DataId = 31407u }; - num3 = 3; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = new GatheringLocation + index2 = 3; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num4 = 0; + span6[num4] = new GatheringLocation { Position = new Vector3(-468.6656f, 120.7944f, -420.1442f) }; - span3[1] = new GatheringLocation + num4++; + span6[num4] = new GatheringLocation { Position = new Vector3(-523.499f, 117.4618f, -449.0883f), MinimumAngle = -160, MaximumAngle = 65 }; - span3[2] = new GatheringLocation + num4++; + span6[num4] = new GatheringLocation { Position = new Vector3(-482.4585f, 120.3927f, -442.2994f) }; @@ -2189,46 +2550,54 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference4 = ref span[1]; + index++; + ref GatheringNodeGroup reference4 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span4 = CollectionsMarshal.AsSpan(list7); - ref GatheringNode reference5 = ref span4[0]; + num3 = 2; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref GatheringNode reference5 = ref span7[num2]; GatheringNode obj3 = new GatheringNode { DataId = 31408u }; - num3 = 1; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = new GatheringLocation + num4 = 1; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new GatheringLocation { Position = new Vector3(-685.595f, 122.3003f, -379.202f) }; obj3.Locations = list8; reference5 = obj3; - ref GatheringNode reference6 = ref span4[1]; + num2++; + ref GatheringNode reference6 = ref span7[num2]; GatheringNode obj4 = new GatheringNode { DataId = 31409u }; - num3 = 3; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = new GatheringLocation + index2 = 3; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span9[num4] = new GatheringLocation { Position = new Vector3(-691.5064f, 123.4536f, -354.5497f), MinimumAngle = 95, MaximumAngle = 325 }; - span5[1] = new GatheringLocation + num4++; + span9[num4] = new GatheringLocation { Position = new Vector3(-673.4897f, 122.1564f, -378.4789f) }; - span5[2] = new GatheringLocation + num4++; + span9[num4] = new GatheringLocation { Position = new Vector3(-664.5702f, 121.697f, -394.0817f), MinimumAngle = 0, @@ -2238,48 +2607,56 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - ref GatheringNodeGroup reference7 = ref span[2]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref GatheringNode reference8 = ref span6[0]; + Span span10 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + ref GatheringNode reference8 = ref span10[num3]; GatheringNode obj5 = new GatheringNode { DataId = 31410u }; - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = new GatheringLocation + num4 = 1; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new GatheringLocation { Position = new Vector3(-496.1503f, 121.0539f, -272.0342f) }; obj5.Locations = list11; reference8 = obj5; - ref GatheringNode reference9 = ref span6[1]; + num3++; + ref GatheringNode reference9 = ref span10[num3]; GatheringNode obj6 = new GatheringNode { DataId = 31411u }; - num3 = 3; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - Span span7 = CollectionsMarshal.AsSpan(list12); - span7[0] = new GatheringLocation + index2 = 3; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span12[num4] = new GatheringLocation { Position = new Vector3(-459.1924f, 121.1919f, -280.8376f), MinimumAngle = -105, MaximumAngle = 55 }; - span7[1] = new GatheringLocation + num4++; + span12[num4] = new GatheringLocation { Position = new Vector3(-472.298f, 121.4754f, -306.8053f), MinimumAngle = 30, MaximumAngle = 235 }; - span7[2] = new GatheringLocation + num4++; + span12[num4] = new GatheringLocation { Position = new Vector3(-486.2957f, 120.9394f, -257.3133f) }; @@ -2290,50 +2667,61 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(300, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + span13[num] = "liza"; gatheringRoot2.Author = list13; num = 2; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span8 = CollectionsMarshal.AsSpan(list14); - ref QuestStep reference10 = ref span8[0]; + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + ref QuestStep reference10 = ref span14[index]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = 1073; + num3 = 1; + List list15 = new List(num3); + CollectionsMarshal.SetCount(list15, num3); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = 1073; skipStepConditions.InTerritory = list15; skipConditions.StepIf = skipStepConditions; obj7.SkipConditions = skipConditions; reference10 = obj7; - span8[1] = new QuestStep(EInteractionType.None, null, null, 1073); + index++; + span14[index] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot2.Steps = list14; - num = 3; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span9 = CollectionsMarshal.AsSpan(list16); - ref GatheringNodeGroup reference11 = ref span9[0]; + index = 3; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + Span span16 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref GatheringNodeGroup reference11 = ref span16[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; + Span span17 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + ref GatheringNode reference12 = ref span17[num3]; GatheringNode obj8 = new GatheringNode { DataId = 31819u }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation + num4 = 1; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new GatheringLocation { Position = new Vector3(-5.492728f, 499.6548f, 37.58726f), MinimumAngle = 145, @@ -2343,20 +2731,25 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list17; reference11 = gatheringNodeGroup4; - ref GatheringNodeGroup reference13 = ref span9[1]; + num++; + ref GatheringNodeGroup reference13 = ref span16[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + num3 = 1; + List list19 = new List(num3); + CollectionsMarshal.SetCount(list19, num3); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + ref GatheringNode reference14 = ref span19[num2]; GatheringNode obj9 = new GatheringNode { DataId = 31700u }; - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = new GatheringLocation + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num4 = 0; + span20[num4] = new GatheringLocation { Position = new Vector3(27.22863f, 499.8322f, 2.94655f), MinimumAngle = -15, @@ -2366,20 +2759,25 @@ public static class AssemblyGatheringLocationLoader reference14 = obj9; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - ref GatheringNodeGroup reference15 = ref span9[2]; + num++; + ref GatheringNodeGroup reference15 = ref span16[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list21)[0]; + Span span21 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + ref GatheringNode reference16 = ref span21[num3]; GatheringNode obj10 = new GatheringNode { DataId = 31489u }; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = new GatheringLocation + num4 = 1; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new GatheringLocation { Position = new Vector3(28.38036f, 500.019f, -0.7058061f), MinimumAngle = 0, @@ -2395,47 +2793,58 @@ public static class AssemblyGatheringLocationLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "liza"; + Span span23 = CollectionsMarshal.AsSpan(list23); + index = 0; + span23[index] = "liza"; gatheringRoot3.Author = list23; - num = 2; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span10 = CollectionsMarshal.AsSpan(list24); - ref QuestStep reference17 = ref span10[0]; + index = 2; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + Span span24 = CollectionsMarshal.AsSpan(list24); + num = 0; + ref QuestStep reference17 = ref span24[num]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = 1073; + num3 = 1; + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = 1073; skipStepConditions2.InTerritory = list25; skipConditions2.StepIf = skipStepConditions2; obj11.SkipConditions = skipConditions2; reference17 = obj11; - span10[1] = new QuestStep(EInteractionType.None, null, null, 1073); + num++; + span24[num] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot3.Steps = list24; num = 3; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - Span span11 = CollectionsMarshal.AsSpan(list26); - ref GatheringNodeGroup reference18 = ref span11[0]; + Span span26 = CollectionsMarshal.AsSpan(list26); + index = 0; + ref GatheringNodeGroup reference18 = ref span26[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - ref GatheringNode reference19 = ref CollectionsMarshal.AsSpan(list27)[0]; + Span span27 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + ref GatheringNode reference19 = ref span27[num3]; GatheringNode obj12 = new GatheringNode { DataId = 31822u }; - num3 = 1; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = new GatheringLocation + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num4 = 0; + span28[num4] = new GatheringLocation { Position = new Vector3(-4.054798f, 494.3483f, -54.37905f) }; @@ -2443,20 +2852,25 @@ public static class AssemblyGatheringLocationLoader reference19 = obj12; gatheringNodeGroup7.Nodes = list27; reference18 = gatheringNodeGroup7; - ref GatheringNodeGroup reference20 = ref span11[1]; + index++; + ref GatheringNodeGroup reference20 = ref span26[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - ref GatheringNode reference21 = ref CollectionsMarshal.AsSpan(list29)[0]; + num3 = 1; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + ref GatheringNode reference21 = ref span29[num2]; GatheringNode obj13 = new GatheringNode { DataId = 31821u }; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation + num4 = 1; + List list30 = new List(num4); + CollectionsMarshal.SetCount(list30, num4); + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new GatheringLocation { Position = new Vector3(-5.287843f, 494.2204f, -66.80152f) }; @@ -2464,20 +2878,25 @@ public static class AssemblyGatheringLocationLoader reference21 = obj13; gatheringNodeGroup8.Nodes = list29; reference20 = gatheringNodeGroup8; - ref GatheringNodeGroup reference22 = ref span11[2]; + index++; + ref GatheringNodeGroup reference22 = ref span26[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - ref GatheringNode reference23 = ref CollectionsMarshal.AsSpan(list31)[0]; + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + ref GatheringNode reference23 = ref span31[num3]; GatheringNode obj14 = new GatheringNode { DataId = 31820u }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num4 = 0; + span32[num4] = new GatheringLocation { Position = new Vector3(-9.143447f, 494.1166f, -82.62958f), MinimumAngle = -75, @@ -2490,50 +2909,61 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list26; AddLocation(317, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; + index = 1; + List list33 = new List(index); + CollectionsMarshal.SetCount(list33, index); + Span span33 = CollectionsMarshal.AsSpan(list33); + num = 0; + span33[num] = "liza"; gatheringRoot4.Author = list33; num = 2; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span12 = CollectionsMarshal.AsSpan(list34); - ref QuestStep reference24 = ref span12[0]; + Span span34 = CollectionsMarshal.AsSpan(list34); + index = 0; + ref QuestStep reference24 = ref span34[index]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = 1073; + num3 = 1; + List list35 = new List(num3); + CollectionsMarshal.SetCount(list35, num3); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = 1073; skipStepConditions3.InTerritory = list35; skipConditions3.StepIf = skipStepConditions3; obj15.SkipConditions = skipConditions3; reference24 = obj15; - span12[1] = new QuestStep(EInteractionType.None, null, null, 1073); + index++; + span34[index] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot4.Steps = list34; - num = 3; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span13 = CollectionsMarshal.AsSpan(list36); - ref GatheringNodeGroup reference25 = ref span13[0]; + index = 3; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + Span span36 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref GatheringNodeGroup reference25 = ref span36[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list37)[0]; + Span span37 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + ref GatheringNode reference26 = ref span37[num3]; GatheringNode obj16 = new GatheringNode { DataId = 33840u }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new GatheringLocation + num4 = 1; + List list38 = new List(num4); + CollectionsMarshal.SetCount(list38, num4); + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new GatheringLocation { Position = new Vector3(10.28351f, 486.144f, -136.9586f) }; @@ -2541,20 +2971,25 @@ public static class AssemblyGatheringLocationLoader reference26 = obj16; gatheringNodeGroup10.Nodes = list37; reference25 = gatheringNodeGroup10; - ref GatheringNodeGroup reference27 = ref span13[1]; + num++; + ref GatheringNodeGroup reference27 = ref span36[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - ref GatheringNode reference28 = ref CollectionsMarshal.AsSpan(list39)[0]; + num3 = 1; + List list39 = new List(num3); + CollectionsMarshal.SetCount(list39, num3); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + ref GatheringNode reference28 = ref span39[num2]; GatheringNode obj17 = new GatheringNode { DataId = 33841u }; - num3 = 1; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = new GatheringLocation + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num4 = 0; + span40[num4] = new GatheringLocation { Position = new Vector3(19.46428f, 485.9226f, -136.738f) }; @@ -2562,20 +2997,25 @@ public static class AssemblyGatheringLocationLoader reference28 = obj17; gatheringNodeGroup11.Nodes = list39; reference27 = gatheringNodeGroup11; - ref GatheringNodeGroup reference29 = ref span13[2]; + num++; + ref GatheringNodeGroup reference29 = ref span36[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - ref GatheringNode reference30 = ref CollectionsMarshal.AsSpan(list41)[0]; + Span span41 = CollectionsMarshal.AsSpan(list41); + num3 = 0; + ref GatheringNode reference30 = ref span41[num3]; GatheringNode obj18 = new GatheringNode { DataId = 33643u }; - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation + num4 = 1; + List list42 = new List(num4); + CollectionsMarshal.SetCount(list42, num4); + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new GatheringLocation { Position = new Vector3(14.21117f, 486.0551f, -143.435f) }; @@ -2589,47 +3029,58 @@ public static class AssemblyGatheringLocationLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "liza"; + Span span43 = CollectionsMarshal.AsSpan(list43); + index = 0; + span43[index] = "liza"; gatheringRoot5.Author = list43; - num = 2; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span14 = CollectionsMarshal.AsSpan(list44); - ref QuestStep reference31 = ref span14[0]; + index = 2; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + Span span44 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestStep reference31 = ref span44[num]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = 1073; + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span45[num2] = 1073; skipStepConditions4.InTerritory = list45; skipConditions4.StepIf = skipStepConditions4; obj19.SkipConditions = skipConditions4; reference31 = obj19; - span14[1] = new QuestStep(EInteractionType.None, null, null, 1073); + num++; + span44[num] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot5.Steps = list44; num = 3; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - Span span15 = CollectionsMarshal.AsSpan(list46); - ref GatheringNodeGroup reference32 = ref span15[0]; + Span span46 = CollectionsMarshal.AsSpan(list46); + index = 0; + ref GatheringNodeGroup reference32 = ref span46[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - ref GatheringNode reference33 = ref CollectionsMarshal.AsSpan(list47)[0]; + Span span47 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + ref GatheringNode reference33 = ref span47[num3]; GatheringNode obj20 = new GatheringNode { DataId = 33842u }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span48[num4] = new GatheringLocation { Position = new Vector3(-71.72573f, 495.8044f, -23.42241f), MinimumAngle = -15, @@ -2639,20 +3090,25 @@ public static class AssemblyGatheringLocationLoader reference33 = obj20; gatheringNodeGroup13.Nodes = list47; reference32 = gatheringNodeGroup13; - ref GatheringNodeGroup reference34 = ref span15[1]; + index++; + ref GatheringNodeGroup reference34 = ref span46[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - ref GatheringNode reference35 = ref CollectionsMarshal.AsSpan(list49)[0]; + num3 = 1; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref GatheringNode reference35 = ref span49[num2]; GatheringNode obj21 = new GatheringNode { DataId = 33846u }; - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = new GatheringLocation + num4 = 1; + List list50 = new List(num4); + CollectionsMarshal.SetCount(list50, num4); + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new GatheringLocation { Position = new Vector3(-85.765f, 493.9822f, -11.33734f), MinimumAngle = -185, @@ -2662,20 +3118,25 @@ public static class AssemblyGatheringLocationLoader reference35 = obj21; gatheringNodeGroup14.Nodes = list49; reference34 = gatheringNodeGroup14; - ref GatheringNodeGroup reference36 = ref span15[2]; + index++; + ref GatheringNodeGroup reference36 = ref span46[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - ref GatheringNode reference37 = ref CollectionsMarshal.AsSpan(list51)[0]; + Span span51 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + ref GatheringNode reference37 = ref span51[num3]; GatheringNode obj22 = new GatheringNode { DataId = 33847u }; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new GatheringLocation + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num4 = 0; + span52[num4] = new GatheringLocation { Position = new Vector3(-100.52f, 493.6702f, -9.731167f), MinimumAngle = -185, @@ -2688,50 +3149,61 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list46; AddLocation(322, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "liza"; + index = 1; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + Span span53 = CollectionsMarshal.AsSpan(list53); + num = 0; + span53[num] = "liza"; gatheringRoot6.Author = list53; num = 2; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - Span span16 = CollectionsMarshal.AsSpan(list54); - ref QuestStep reference38 = ref span16[0]; + Span span54 = CollectionsMarshal.AsSpan(list54); + index = 0; + ref QuestStep reference38 = ref span54[index]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = 1073; + num3 = 1; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = 1073; skipStepConditions5.InTerritory = list55; skipConditions5.StepIf = skipStepConditions5; obj23.SkipConditions = skipConditions5; reference38 = obj23; - span16[1] = new QuestStep(EInteractionType.None, null, null, 1073); + index++; + span54[index] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot6.Steps = list54; - num = 3; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span17 = CollectionsMarshal.AsSpan(list56); - ref GatheringNodeGroup reference39 = ref span17[0]; + index = 3; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + Span span56 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref GatheringNodeGroup reference39 = ref span56[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - ref GatheringNode reference40 = ref CollectionsMarshal.AsSpan(list57)[0]; + Span span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + ref GatheringNode reference40 = ref span57[num3]; GatheringNode obj24 = new GatheringNode { DataId = 33848u }; - num3 = 1; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - CollectionsMarshal.AsSpan(list58)[0] = new GatheringLocation + num4 = 1; + List list58 = new List(num4); + CollectionsMarshal.SetCount(list58, num4); + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new GatheringLocation { Position = new Vector3(-109.0629f, 491.0458f, 34.78553f), MinimumAngle = -110, @@ -2741,20 +3213,25 @@ public static class AssemblyGatheringLocationLoader reference40 = obj24; gatheringNodeGroup16.Nodes = list57; reference39 = gatheringNodeGroup16; - ref GatheringNodeGroup reference41 = ref span17[1]; + num++; + ref GatheringNodeGroup reference41 = ref span56[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - ref GatheringNode reference42 = ref CollectionsMarshal.AsSpan(list59)[0]; + num3 = 1; + List list59 = new List(num3); + CollectionsMarshal.SetCount(list59, num3); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + ref GatheringNode reference42 = ref span59[num2]; GatheringNode obj25 = new GatheringNode { DataId = 33849u }; - num3 = 1; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = new GatheringLocation + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span60[num4] = new GatheringLocation { Position = new Vector3(-110.2371f, 491.0116f, 54.68977f), MinimumAngle = -170, @@ -2764,20 +3241,25 @@ public static class AssemblyGatheringLocationLoader reference42 = obj25; gatheringNodeGroup17.Nodes = list59; reference41 = gatheringNodeGroup17; - ref GatheringNodeGroup reference43 = ref span17[2]; + num++; + ref GatheringNodeGroup reference43 = ref span56[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - ref GatheringNode reference44 = ref CollectionsMarshal.AsSpan(list61)[0]; + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + ref GatheringNode reference44 = ref span61[num3]; GatheringNode obj26 = new GatheringNode { DataId = 33850u }; - num3 = 1; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - CollectionsMarshal.AsSpan(list62)[0] = new GatheringLocation + num4 = 1; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new GatheringLocation { Position = new Vector3(-101.4737f, 490.7073f, 54.9267f), MinimumAngle = 90, @@ -2793,12 +3275,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = "liza"; + Span span63 = CollectionsMarshal.AsSpan(list63); + index = 0; + span63[index] = "liza"; gatheringRoot7.Author = list63; - num = 1; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.None, null, null, 397) + index = 1; + List list64 = new List(index); + CollectionsMarshal.SetCount(list64, index); + Span span64 = CollectionsMarshal.AsSpan(list64); + num = 0; + span64[num] = new QuestStep(EInteractionType.None, null, null, 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; @@ -2806,22 +3292,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span18 = CollectionsMarshal.AsSpan(list65); - ref GatheringNodeGroup reference45 = ref span18[0]; + Span span65 = CollectionsMarshal.AsSpan(list65); + index = 0; + ref GatheringNodeGroup reference45 = ref span65[index]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); - num2 = 2; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - Span span19 = CollectionsMarshal.AsSpan(list66); - ref GatheringNode reference46 = ref span19[0]; + num3 = 2; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + ref GatheringNode reference46 = ref span66[num2]; GatheringNode obj27 = new GatheringNode { DataId = 31344u }; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new GatheringLocation + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num4 = 0; + span67[num4] = new GatheringLocation { Position = new Vector3(40.36132f, 217.3049f, 405.1829f), MinimumAngle = 100, @@ -2831,17 +3321,19 @@ public static class AssemblyGatheringLocationLoader }; obj27.Locations = list67; reference46 = obj27; - ref GatheringNode reference47 = ref span19[1]; + num2++; + ref GatheringNode reference47 = ref span66[num2]; GatheringNode obj28 = new GatheringNode { DataId = 31345u, Fly = false }; - num3 = 3; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - Span span20 = CollectionsMarshal.AsSpan(list68); - span20[0] = new GatheringLocation + num4 = 3; + List list68 = new List(num4); + CollectionsMarshal.SetCount(list68, num4); + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new GatheringLocation { Position = new Vector3(20.19547f, 216.5585f, 412.4353f), MinimumAngle = 75, @@ -2849,7 +3341,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.5f, MaximumDistance = 3f }; - span20[1] = new GatheringLocation + index2++; + span68[index2] = new GatheringLocation { Position = new Vector3(17.58205f, 216.0664f, 421.5481f), MinimumAngle = 0, @@ -2857,7 +3350,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.5f, MaximumDistance = 3f }; - span20[2] = new GatheringLocation + index2++; + span68[index2] = new GatheringLocation { Position = new Vector3(51.50931f, 217.6516f, 408.2164f), MinimumAngle = 155, @@ -2869,21 +3363,25 @@ public static class AssemblyGatheringLocationLoader reference47 = obj28; gatheringNodeGroup19.Nodes = list66; reference45 = gatheringNodeGroup19; - ref GatheringNodeGroup reference48 = ref span18[1]; + index++; + ref GatheringNodeGroup reference48 = ref span65[index]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); num2 = 3; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span21 = CollectionsMarshal.AsSpan(list69); - ref GatheringNode reference49 = ref span21[0]; + Span span69 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + ref GatheringNode reference49 = ref span69[num3]; GatheringNode obj29 = new GatheringNode { DataId = 31340u }; - num3 = 1; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = new GatheringLocation + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num4 = 0; + span70[num4] = new GatheringLocation { Position = new Vector3(56.06712f, 216.6702f, 225.849f), MinimumAngle = -20, @@ -2891,28 +3389,32 @@ public static class AssemblyGatheringLocationLoader }; obj29.Locations = list70; reference49 = obj29; - ref GatheringNode reference50 = ref span21[1]; + num3++; + ref GatheringNode reference50 = ref span69[num3]; GatheringNode obj30 = new GatheringNode { DataId = 31341u }; - num3 = 3; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - Span span22 = CollectionsMarshal.AsSpan(list71); - span22[0] = new GatheringLocation + num4 = 3; + List list71 = new List(num4); + CollectionsMarshal.SetCount(list71, num4); + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new GatheringLocation { Position = new Vector3(85.05425f, 218.7078f, 220.0463f), MinimumAngle = -110, MaximumAngle = 25 }; - span22[1] = new GatheringLocation + index2++; + span71[index2] = new GatheringLocation { Position = new Vector3(78.99079f, 215.9441f, 228.9527f), MinimumAngle = -110, MaximumAngle = 40 }; - span22[2] = new GatheringLocation + index2++; + span71[index2] = new GatheringLocation { Position = new Vector3(67.29195f, 216.4685f, 228.7955f), MinimumAngle = -35, @@ -2920,15 +3422,18 @@ public static class AssemblyGatheringLocationLoader }; obj30.Locations = list71; reference50 = obj30; - ref GatheringNode reference51 = ref span21[2]; + num3++; + ref GatheringNode reference51 = ref span69[num3]; GatheringNode obj31 = new GatheringNode { DataId = 31342u }; - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = new GatheringLocation + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num4 = 0; + span72[num4] = new GatheringLocation { Position = new Vector3(-124.1629f, 221.9654f, 197.8645f), MinimumAngle = -15, @@ -2938,33 +3443,39 @@ public static class AssemblyGatheringLocationLoader reference51 = obj31; gatheringNodeGroup20.Nodes = list69; reference48 = gatheringNodeGroup20; - ref GatheringNodeGroup reference52 = ref span18[2]; + index++; + ref GatheringNodeGroup reference52 = ref span65[index]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - ref GatheringNode reference53 = ref CollectionsMarshal.AsSpan(list73)[0]; + num3 = 1; + List list73 = new List(num3); + CollectionsMarshal.SetCount(list73, num3); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + ref GatheringNode reference53 = ref span73[num2]; GatheringNode obj32 = new GatheringNode { DataId = 31343u }; - num3 = 3; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - Span span23 = CollectionsMarshal.AsSpan(list74); - span23[0] = new GatheringLocation + num4 = 3; + List list74 = new List(num4); + CollectionsMarshal.SetCount(list74, num4); + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new GatheringLocation { Position = new Vector3(-138.4112f, 220.679f, 204.6822f), MinimumAngle = -20, MaximumAngle = 20 }; - span23[1] = new GatheringLocation + index2++; + span74[index2] = new GatheringLocation { Position = new Vector3(-90.40117f, 223.687f, 202.5069f), MinimumAngle = -90, MaximumAngle = 45 }; - span23[2] = new GatheringLocation + index2++; + span74[index2] = new GatheringLocation { Position = new Vector3(-50.76083f, 222.9418f, 217.8322f), MinimumAngle = 50, @@ -2977,38 +3488,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list65; AddLocation(351, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - num = 1; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "liza"; + index = 1; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + Span span75 = CollectionsMarshal.AsSpan(list75); + num = 0; + span75[num] = "liza"; gatheringRoot8.Author = list75; num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.None, null, null, 398) + Span span76 = CollectionsMarshal.AsSpan(list76); + index = 0; + span76[index] = new QuestStep(EInteractionType.None, null, null, 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; gatheringRoot8.Steps = list76; - num = 3; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span24 = CollectionsMarshal.AsSpan(list77); - ref GatheringNodeGroup reference54 = ref span24[0]; + index = 3; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + Span span77 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref GatheringNodeGroup reference54 = ref span77[num]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); num2 = 2; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span25 = CollectionsMarshal.AsSpan(list78); - ref GatheringNode reference55 = ref span25[0]; + Span span78 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + ref GatheringNode reference55 = ref span78[num3]; GatheringNode obj33 = new GatheringNode { DataId = 31350u }; - num3 = 1; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new GatheringLocation + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num4 = 0; + span79[num4] = new GatheringLocation { Position = new Vector3(-115.4501f, -44.90735f, 211.8084f), MinimumAngle = -5, @@ -3016,28 +3535,32 @@ public static class AssemblyGatheringLocationLoader }; obj33.Locations = list79; reference55 = obj33; - ref GatheringNode reference56 = ref span25[1]; + num3++; + ref GatheringNode reference56 = ref span78[num3]; GatheringNode obj34 = new GatheringNode { DataId = 31351u }; - num3 = 3; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span26 = CollectionsMarshal.AsSpan(list80); - span26[0] = new GatheringLocation + num4 = 3; + List list80 = new List(num4); + CollectionsMarshal.SetCount(list80, num4); + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new GatheringLocation { Position = new Vector3(-94.4983f, -46.65615f, 219.4642f), MinimumAngle = -90, MaximumAngle = 65 }; - span26[1] = new GatheringLocation + index2++; + span80[index2] = new GatheringLocation { Position = new Vector3(-133.4304f, -45.47835f, 211.6268f), MinimumAngle = -50, MaximumAngle = 80 }; - span26[2] = new GatheringLocation + index2++; + span80[index2] = new GatheringLocation { Position = new Vector3(-81.5194f, -52.42267f, 241.2021f), MinimumAngle = -35, @@ -3047,21 +3570,25 @@ public static class AssemblyGatheringLocationLoader reference56 = obj34; gatheringNodeGroup22.Nodes = list78; reference54 = gatheringNodeGroup22; - ref GatheringNodeGroup reference57 = ref span24[1]; + num++; + ref GatheringNodeGroup reference57 = ref span77[num]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); - num2 = 2; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - Span span27 = CollectionsMarshal.AsSpan(list81); - ref GatheringNode reference58 = ref span27[0]; + num3 = 2; + List list81 = new List(num3); + CollectionsMarshal.SetCount(list81, num3); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + ref GatheringNode reference58 = ref span81[num2]; GatheringNode obj35 = new GatheringNode { DataId = 31346u }; - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = new GatheringLocation + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num4 = 0; + span82[num4] = new GatheringLocation { Position = new Vector3(-154.299f, -70.63795f, 399.4617f), MinimumAngle = 110, @@ -3069,28 +3596,32 @@ public static class AssemblyGatheringLocationLoader }; obj35.Locations = list82; reference58 = obj35; - ref GatheringNode reference59 = ref span27[1]; + num2++; + ref GatheringNode reference59 = ref span81[num2]; GatheringNode obj36 = new GatheringNode { DataId = 31347u }; - num3 = 3; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - Span span28 = CollectionsMarshal.AsSpan(list83); - span28[0] = new GatheringLocation + num4 = 3; + List list83 = new List(num4); + CollectionsMarshal.SetCount(list83, num4); + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new GatheringLocation { Position = new Vector3(-167.7846f, -70.11265f, 418.7766f), MinimumAngle = 90, MaximumAngle = 235 }; - span28[1] = new GatheringLocation + index2++; + span83[index2] = new GatheringLocation { Position = new Vector3(-152.9678f, -68.49996f, 365.0086f), MinimumAngle = -30, MaximumAngle = 70 }; - span28[2] = new GatheringLocation + index2++; + span83[index2] = new GatheringLocation { Position = new Vector3(-189.6693f, -68.18973f, 377.6652f), MinimumAngle = 205, @@ -3100,34 +3631,39 @@ public static class AssemblyGatheringLocationLoader reference59 = obj36; gatheringNodeGroup23.Nodes = list81; reference57 = gatheringNodeGroup23; - ref GatheringNodeGroup reference60 = ref span24[2]; + num++; + ref GatheringNodeGroup reference60 = ref span77[num]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); num2 = 2; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span29 = CollectionsMarshal.AsSpan(list84); - ref GatheringNode reference61 = ref span29[0]; + Span span84 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + ref GatheringNode reference61 = ref span84[num3]; GatheringNode obj37 = new GatheringNode { DataId = 31349u }; - num3 = 3; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - Span span30 = CollectionsMarshal.AsSpan(list85); - span30[0] = new GatheringLocation + index2 = 3; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span85[num4] = new GatheringLocation { Position = new Vector3(-312.3143f, -54.81182f, 331.0543f), MinimumAngle = -145, MaximumAngle = 5 }; - span30[1] = new GatheringLocation + num4++; + span85[num4] = new GatheringLocation { Position = new Vector3(-296.8107f, -51.96982f, 310.6086f), MinimumAngle = 235, MaximumAngle = 330 }; - span30[2] = new GatheringLocation + num4++; + span85[num4] = new GatheringLocation { Position = new Vector3(-299.3094f, -46.30565f, 293.9169f), MinimumAngle = 165, @@ -3135,15 +3671,18 @@ public static class AssemblyGatheringLocationLoader }; obj37.Locations = list85; reference61 = obj37; - ref GatheringNode reference62 = ref span29[1]; + num3++; + ref GatheringNode reference62 = ref span84[num3]; GatheringNode obj38 = new GatheringNode { DataId = 31348u }; - num3 = 1; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = new GatheringLocation + num4 = 1; + List list86 = new List(num4); + CollectionsMarshal.SetCount(list86, num4); + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new GatheringLocation { Position = new Vector3(-311.9997f, -53.59439f, 326.8317f), MinimumAngle = -75, @@ -3159,12 +3698,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - CollectionsMarshal.AsSpan(list87)[0] = "liza"; + Span span87 = CollectionsMarshal.AsSpan(list87); + index = 0; + span87[index] = "liza"; gatheringRoot9.Author = list87; - num = 1; - List list88 = new List(num); - CollectionsMarshal.SetCount(list88, num); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list88)[0]; + index = 1; + List list88 = new List(index); + CollectionsMarshal.SetCount(list88, index); + Span span88 = CollectionsMarshal.AsSpan(list88); + num = 0; + ref QuestStep reference63 = ref span88[num]; QuestStep obj39 = new QuestStep(EInteractionType.None, null, null, 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -3176,10 +3719,12 @@ public static class AssemblyGatheringLocationLoader }; SkipConditions skipConditions6 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = 399; + num3 = 1; + List list89 = new List(num3); + CollectionsMarshal.SetCount(list89, num3); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = 399; skipAetheryteCondition.InTerritory = list89; skipConditions6.AetheryteShortcutIf = skipAetheryteCondition; obj39.SkipConditions = skipConditions6; @@ -3188,22 +3733,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span31 = CollectionsMarshal.AsSpan(list90); - ref GatheringNodeGroup reference64 = ref span31[0]; + Span span90 = CollectionsMarshal.AsSpan(list90); + index = 0; + ref GatheringNodeGroup reference64 = ref span90[index]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span32 = CollectionsMarshal.AsSpan(list91); - ref GatheringNode reference65 = ref span32[0]; + Span span91 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + ref GatheringNode reference65 = ref span91[num3]; GatheringNode obj40 = new GatheringNode { DataId = 31356u }; - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = new GatheringLocation + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num4 = 0; + span92[num4] = new GatheringLocation { Position = new Vector3(120.1556f, 70.42133f, 30.73328f), MinimumAngle = -95, @@ -3211,28 +3760,32 @@ public static class AssemblyGatheringLocationLoader }; obj40.Locations = list92; reference65 = obj40; - ref GatheringNode reference66 = ref span32[1]; + num3++; + ref GatheringNode reference66 = ref span91[num3]; GatheringNode obj41 = new GatheringNode { DataId = 31357u }; - num3 = 3; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - Span span33 = CollectionsMarshal.AsSpan(list93); - span33[0] = new GatheringLocation + num4 = 3; + List list93 = new List(num4); + CollectionsMarshal.SetCount(list93, num4); + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new GatheringLocation { Position = new Vector3(137.7684f, 70.04282f, 64.77115f), MinimumAngle = 30, MaximumAngle = 130 }; - span33[1] = new GatheringLocation + index2++; + span93[index2] = new GatheringLocation { Position = new Vector3(132.1863f, 70.08203f, 57.67828f), MinimumAngle = -10, MaximumAngle = 105 }; - span33[2] = new GatheringLocation + index2++; + span93[index2] = new GatheringLocation { Position = new Vector3(145.684f, 70.47159f, 45.05047f), MinimumAngle = 80, @@ -3242,34 +3795,39 @@ public static class AssemblyGatheringLocationLoader reference66 = obj41; gatheringNodeGroup25.Nodes = list91; reference64 = gatheringNodeGroup25; - ref GatheringNodeGroup reference67 = ref span31[1]; + index++; + ref GatheringNodeGroup reference67 = ref span90[index]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span34 = CollectionsMarshal.AsSpan(list94); - ref GatheringNode reference68 = ref span34[0]; + num3 = 2; + List list94 = new List(num3); + CollectionsMarshal.SetCount(list94, num3); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref GatheringNode reference68 = ref span94[num2]; GatheringNode obj42 = new GatheringNode { DataId = 31355u }; - num3 = 3; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - Span span35 = CollectionsMarshal.AsSpan(list95); - span35[0] = new GatheringLocation + index2 = 3; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num4 = 0; + span95[num4] = new GatheringLocation { Position = new Vector3(59.4164f, 54.40149f, 160.6752f), MinimumAngle = 155, MaximumAngle = 285 }; - span35[1] = new GatheringLocation + num4++; + span95[num4] = new GatheringLocation { Position = new Vector3(66.6783f, 53.80389f, 177.1926f), MinimumAngle = -90, MaximumAngle = 0 }; - span35[2] = new GatheringLocation + num4++; + span95[num4] = new GatheringLocation { Position = new Vector3(47.04347f, 53.91698f, 164.1816f), MinimumAngle = 0, @@ -3277,15 +3835,18 @@ public static class AssemblyGatheringLocationLoader }; obj42.Locations = list95; reference68 = obj42; - ref GatheringNode reference69 = ref span34[1]; + num2++; + ref GatheringNode reference69 = ref span94[num2]; GatheringNode obj43 = new GatheringNode { DataId = 31354u }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = new GatheringLocation + num4 = 1; + List list96 = new List(num4); + CollectionsMarshal.SetCount(list96, num4); + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new GatheringLocation { Position = new Vector3(31.89844f, 54.71996f, 173.864f), MinimumAngle = 105, @@ -3295,21 +3856,25 @@ public static class AssemblyGatheringLocationLoader reference69 = obj43; gatheringNodeGroup26.Nodes = list94; reference67 = gatheringNodeGroup26; - ref GatheringNodeGroup reference70 = ref span31[2]; + index++; + ref GatheringNodeGroup reference70 = ref span90[index]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 2; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span36 = CollectionsMarshal.AsSpan(list97); - ref GatheringNode reference71 = ref span36[0]; + Span span97 = CollectionsMarshal.AsSpan(list97); + num3 = 0; + ref GatheringNode reference71 = ref span97[num3]; GatheringNode obj44 = new GatheringNode { DataId = 31352u }; - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = new GatheringLocation + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num4 = 0; + span98[num4] = new GatheringLocation { Position = new Vector3(231.3517f, 74.23511f, 112.9807f), MinimumAngle = 130, @@ -3317,28 +3882,32 @@ public static class AssemblyGatheringLocationLoader }; obj44.Locations = list98; reference71 = obj44; - ref GatheringNode reference72 = ref span36[1]; + num3++; + ref GatheringNode reference72 = ref span97[num3]; GatheringNode obj45 = new GatheringNode { DataId = 31353u }; - num3 = 3; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span37 = CollectionsMarshal.AsSpan(list99); - span37[0] = new GatheringLocation + num4 = 3; + List list99 = new List(num4); + CollectionsMarshal.SetCount(list99, num4); + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new GatheringLocation { Position = new Vector3(239.051f, 80.42557f, 192.2325f), MinimumAngle = 140, MaximumAngle = 235 }; - span37[1] = new GatheringLocation + index2++; + span99[index2] = new GatheringLocation { Position = new Vector3(237.4622f, 74.67197f, 150.8143f), MinimumAngle = 60, MaximumAngle = 225 }; - span37[2] = new GatheringLocation + index2++; + span99[index2] = new GatheringLocation { Position = new Vector3(211.4673f, 75.37302f, 169.3396f), MinimumAngle = 145, @@ -3351,38 +3920,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list90; AddLocation(353, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - num = 1; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "liza"; + index = 1; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + Span span100 = CollectionsMarshal.AsSpan(list100); + num = 0; + span100[num] = "liza"; gatheringRoot10.Author = list100; num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.None, null, null, 401) + Span span101 = CollectionsMarshal.AsSpan(list101); + index = 0; + span101[index] = new QuestStep(EInteractionType.None, null, null, 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; gatheringRoot10.Steps = list101; - num = 3; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span38 = CollectionsMarshal.AsSpan(list102); - ref GatheringNodeGroup reference73 = ref span38[0]; + index = 3; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + Span span102 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref GatheringNodeGroup reference73 = ref span102[num]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); - num2 = 2; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - Span span39 = CollectionsMarshal.AsSpan(list103); - ref GatheringNode reference74 = ref span39[0]; + num3 = 2; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + ref GatheringNode reference74 = ref span103[num2]; GatheringNode obj46 = new GatheringNode { DataId = 31366u }; - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new GatheringLocation + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num4 = 0; + span104[num4] = new GatheringLocation { Position = new Vector3(529.0662f, -110.3256f, 434.3149f), MinimumAngle = 15, @@ -3390,28 +3967,32 @@ public static class AssemblyGatheringLocationLoader }; obj46.Locations = list104; reference74 = obj46; - ref GatheringNode reference75 = ref span39[1]; + num2++; + ref GatheringNode reference75 = ref span103[num2]; GatheringNode obj47 = new GatheringNode { DataId = 31367u }; - num3 = 3; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span40 = CollectionsMarshal.AsSpan(list105); - span40[0] = new GatheringLocation + num4 = 3; + List list105 = new List(num4); + CollectionsMarshal.SetCount(list105, num4); + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new GatheringLocation { Position = new Vector3(541.8505f, -111.128f, 452.5471f), MinimumAngle = -45, MaximumAngle = 40 }; - span40[1] = new GatheringLocation + index2++; + span105[index2] = new GatheringLocation { Position = new Vector3(517.9747f, -109.2984f, 417.9554f), MinimumAngle = -45, MaximumAngle = 55 }; - span40[2] = new GatheringLocation + index2++; + span105[index2] = new GatheringLocation { Position = new Vector3(499.3676f, -108.7323f, 410.8949f), MinimumAngle = -5, @@ -3421,34 +4002,39 @@ public static class AssemblyGatheringLocationLoader reference75 = obj47; gatheringNodeGroup28.Nodes = list103; reference73 = gatheringNodeGroup28; - ref GatheringNodeGroup reference76 = ref span38[1]; + num++; + ref GatheringNodeGroup reference76 = ref span102[num]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span41 = CollectionsMarshal.AsSpan(list106); - ref GatheringNode reference77 = ref span41[0]; + Span span106 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + ref GatheringNode reference77 = ref span106[num3]; GatheringNode obj48 = new GatheringNode { DataId = 31365u }; - num3 = 3; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - Span span42 = CollectionsMarshal.AsSpan(list107); - span42[0] = new GatheringLocation + index2 = 3; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num4 = 0; + span107[num4] = new GatheringLocation { Position = new Vector3(625.9688f, -115.6856f, 344.535f), MinimumAngle = 125, MaximumAngle = 185 }; - span42[1] = new GatheringLocation + num4++; + span107[num4] = new GatheringLocation { Position = new Vector3(678.5617f, -122.8687f, 356.7407f), MinimumAngle = 190, MaximumAngle = 290 }; - span42[2] = new GatheringLocation + num4++; + span107[num4] = new GatheringLocation { Position = new Vector3(644.1035f, -122.3688f, 334.0371f), MinimumAngle = 105, @@ -3456,15 +4042,18 @@ public static class AssemblyGatheringLocationLoader }; obj48.Locations = list107; reference77 = obj48; - ref GatheringNode reference78 = ref span41[1]; + num3++; + ref GatheringNode reference78 = ref span106[num3]; GatheringNode obj49 = new GatheringNode { DataId = 31364u }; - num3 = 1; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new GatheringLocation + num4 = 1; + List list108 = new List(num4); + CollectionsMarshal.SetCount(list108, num4); + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new GatheringLocation { Position = new Vector3(661.9959f, -122.6855f, 333.0707f), MinimumAngle = 140, @@ -3474,21 +4063,25 @@ public static class AssemblyGatheringLocationLoader reference78 = obj49; gatheringNodeGroup29.Nodes = list106; reference76 = gatheringNodeGroup29; - ref GatheringNodeGroup reference79 = ref span38[2]; + num++; + ref GatheringNodeGroup reference79 = ref span102[num]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); - num2 = 2; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span43 = CollectionsMarshal.AsSpan(list109); - ref GatheringNode reference80 = ref span43[0]; + num3 = 2; + List list109 = new List(num3); + CollectionsMarshal.SetCount(list109, num3); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + ref GatheringNode reference80 = ref span109[num2]; GatheringNode obj50 = new GatheringNode { DataId = 31369u }; - num3 = 1; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = new GatheringLocation + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num4 = 0; + span110[num4] = new GatheringLocation { Position = new Vector3(730.9626f, -96.64706f, 449.485f), MinimumAngle = 45, @@ -3496,15 +4089,18 @@ public static class AssemblyGatheringLocationLoader }; obj50.Locations = list110; reference80 = obj50; - ref GatheringNode reference81 = ref span43[1]; + num2++; + ref GatheringNode reference81 = ref span109[num2]; GatheringNode obj51 = new GatheringNode { DataId = 31368u }; - num3 = 1; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = new GatheringLocation + num4 = 1; + List list111 = new List(num4); + CollectionsMarshal.SetCount(list111, num4); + Span span111 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span111[index2] = new GatheringLocation { Position = new Vector3(727.2908f, -95.47571f, 460.3798f), MinimumAngle = 25, @@ -3520,12 +4116,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - CollectionsMarshal.AsSpan(list112)[0] = "liza"; + Span span112 = CollectionsMarshal.AsSpan(list112); + index = 0; + span112[index] = "liza"; gatheringRoot11.Author = list112; - num = 1; - List list113 = new List(num); - CollectionsMarshal.SetCount(list113, num); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.None, null, null, 400) + index = 1; + List list113 = new List(index); + CollectionsMarshal.SetCount(list113, index); + Span span113 = CollectionsMarshal.AsSpan(list113); + num = 0; + span113[num] = new QuestStep(EInteractionType.None, null, null, 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; @@ -3533,35 +4133,40 @@ public static class AssemblyGatheringLocationLoader num = 2; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - Span span44 = CollectionsMarshal.AsSpan(list114); - ref GatheringNodeGroup reference82 = ref span44[0]; + Span span114 = CollectionsMarshal.AsSpan(list114); + index = 0; + ref GatheringNodeGroup reference82 = ref span114[index]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span45 = CollectionsMarshal.AsSpan(list115); - ref GatheringNode reference83 = ref span45[0]; + Span span115 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + ref GatheringNode reference83 = ref span115[num3]; GatheringNode obj52 = new GatheringNode { DataId = 31363u }; - num3 = 3; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - Span span46 = CollectionsMarshal.AsSpan(list116); - span46[0] = new GatheringLocation + index2 = 3; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num4 = 0; + span116[num4] = new GatheringLocation { Position = new Vector3(338.6716f, -29.70343f, -89.65448f), MinimumAngle = 145, MaximumAngle = 275 }; - span46[1] = new GatheringLocation + num4++; + span116[num4] = new GatheringLocation { Position = new Vector3(285.6898f, -32.99854f, -100.1466f), MinimumAngle = 115, MaximumAngle = 275 }; - span46[2] = new GatheringLocation + num4++; + span116[num4] = new GatheringLocation { Position = new Vector3(326.7051f, -27.26759f, -89.31528f), MinimumAngle = 110, @@ -3569,15 +4174,18 @@ public static class AssemblyGatheringLocationLoader }; obj52.Locations = list116; reference83 = obj52; - ref GatheringNode reference84 = ref span45[1]; + num3++; + ref GatheringNode reference84 = ref span115[num3]; GatheringNode obj53 = new GatheringNode { DataId = 31362u }; - num3 = 1; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = new GatheringLocation + num4 = 1; + List list117 = new List(num4); + CollectionsMarshal.SetCount(list117, num4); + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new GatheringLocation { Position = new Vector3(299.2141f, -33.21008f, -103.5859f), MinimumAngle = 75, @@ -3587,21 +4195,25 @@ public static class AssemblyGatheringLocationLoader reference84 = obj53; gatheringNodeGroup31.Nodes = list115; reference82 = gatheringNodeGroup31; - ref GatheringNodeGroup reference85 = ref span44[1]; + index++; + ref GatheringNodeGroup reference85 = ref span114[index]; GatheringNodeGroup gatheringNodeGroup32 = new GatheringNodeGroup(); - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span47 = CollectionsMarshal.AsSpan(list118); - ref GatheringNode reference86 = ref span47[0]; + num3 = 2; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + ref GatheringNode reference86 = ref span118[num2]; GatheringNode obj54 = new GatheringNode { DataId = 31358u }; - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = new GatheringLocation + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num4 = 0; + span119[num4] = new GatheringLocation { Position = new Vector3(316.6238f, -30.77305f, -230.0326f), MinimumAngle = -35, @@ -3609,28 +4221,32 @@ public static class AssemblyGatheringLocationLoader }; obj54.Locations = list119; reference86 = obj54; - ref GatheringNode reference87 = ref span47[1]; + num2++; + ref GatheringNode reference87 = ref span118[num2]; GatheringNode obj55 = new GatheringNode { DataId = 31359u }; - num3 = 3; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span48 = CollectionsMarshal.AsSpan(list120); - span48[0] = new GatheringLocation + num4 = 3; + List list120 = new List(num4); + CollectionsMarshal.SetCount(list120, num4); + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new GatheringLocation { Position = new Vector3(297.7187f, -32.66696f, -234.9031f), MinimumAngle = 15, MaximumAngle = 135 }; - span48[1] = new GatheringLocation + index2++; + span120[index2] = new GatheringLocation { Position = new Vector3(288.7547f, -33.61605f, -239.764f), MinimumAngle = -30, MaximumAngle = 65 }; - span48[2] = new GatheringLocation + index2++; + span120[index2] = new GatheringLocation { Position = new Vector3(324.8526f, -28.45777f, -209.4378f), MinimumAngle = -5, @@ -3643,61 +4259,73 @@ public static class AssemblyGatheringLocationLoader gatheringRoot11.Groups = list114; AddLocation(355, gatheringRoot11); GatheringRoot gatheringRoot12 = new GatheringRoot(); - num = 1; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "liza"; + index = 1; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + Span span121 = CollectionsMarshal.AsSpan(list121); + num = 0; + span121[num] = "liza"; gatheringRoot12.Author = list121; num = 1; List list122 = new List(num); CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.None, null, null, 398) + Span span122 = CollectionsMarshal.AsSpan(list122); + index = 0; + span122[index] = new QuestStep(EInteractionType.None, null, null, 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; gatheringRoot12.Steps = list122; - num = 3; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - Span span49 = CollectionsMarshal.AsSpan(list123); - ref GatheringNodeGroup reference88 = ref span49[0]; + index = 3; + List list123 = new List(index); + CollectionsMarshal.SetCount(list123, index); + Span span123 = CollectionsMarshal.AsSpan(list123); + num = 0; + ref GatheringNodeGroup reference88 = ref span123[num]; GatheringNodeGroup gatheringNodeGroup33 = new GatheringNodeGroup(); num2 = 2; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span50 = CollectionsMarshal.AsSpan(list124); - ref GatheringNode reference89 = ref span50[0]; + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + ref GatheringNode reference89 = ref span124[num3]; GatheringNode obj56 = new GatheringNode { DataId = 31413u }; - num3 = 3; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span51 = CollectionsMarshal.AsSpan(list125); - span51[0] = new GatheringLocation + index2 = 3; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num4 = 0; + span125[num4] = new GatheringLocation { Position = new Vector3(-513.1596f, -85.63485f, 434.7382f) }; - span51[1] = new GatheringLocation + num4++; + span125[num4] = new GatheringLocation { Position = new Vector3(-562.0517f, -89.33559f, 445.0961f) }; - span51[2] = new GatheringLocation + num4++; + span125[num4] = new GatheringLocation { Position = new Vector3(-523.4441f, -81.67991f, 408.9826f) }; obj56.Locations = list125; reference89 = obj56; - ref GatheringNode reference90 = ref span50[1]; + num3++; + ref GatheringNode reference90 = ref span124[num3]; GatheringNode obj57 = new GatheringNode { DataId = 31412u }; - num3 = 1; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = new GatheringLocation + num4 = 1; + List list126 = new List(num4); + CollectionsMarshal.SetCount(list126, num4); + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span126[index2] = new GatheringLocation { Position = new Vector3(-553.9171f, -84.75874f, 419.2539f) }; @@ -3705,44 +4333,52 @@ public static class AssemblyGatheringLocationLoader reference90 = obj57; gatheringNodeGroup33.Nodes = list124; reference88 = gatheringNodeGroup33; - ref GatheringNodeGroup reference91 = ref span49[1]; + num++; + ref GatheringNodeGroup reference91 = ref span123[num]; GatheringNodeGroup gatheringNodeGroup34 = new GatheringNodeGroup(); - num2 = 2; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - Span span52 = CollectionsMarshal.AsSpan(list127); - ref GatheringNode reference92 = ref span52[0]; + num3 = 2; + List list127 = new List(num3); + CollectionsMarshal.SetCount(list127, num3); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + ref GatheringNode reference92 = ref span127[num2]; GatheringNode obj58 = new GatheringNode { DataId = 31416u }; - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = new GatheringLocation + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num4 = 0; + span128[num4] = new GatheringLocation { Position = new Vector3(-569.6527f, -96.50298f, 547.1465f) }; obj58.Locations = list128; reference92 = obj58; - ref GatheringNode reference93 = ref span52[1]; + num2++; + ref GatheringNode reference93 = ref span127[num2]; GatheringNode obj59 = new GatheringNode { DataId = 31417u }; - num3 = 3; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - Span span53 = CollectionsMarshal.AsSpan(list129); - span53[0] = new GatheringLocation + num4 = 3; + List list129 = new List(num4); + CollectionsMarshal.SetCount(list129, num4); + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new GatheringLocation { Position = new Vector3(-623.1743f, -101.8206f, 574.6146f) }; - span53[1] = new GatheringLocation + index2++; + span129[index2] = new GatheringLocation { Position = new Vector3(-562.2545f, -95.6534f, 545.6004f) }; - span53[2] = new GatheringLocation + index2++; + span129[index2] = new GatheringLocation { Position = new Vector3(-601.669f, -100.0121f, 559.5313f) }; @@ -3750,44 +4386,52 @@ public static class AssemblyGatheringLocationLoader reference93 = obj59; gatheringNodeGroup34.Nodes = list127; reference91 = gatheringNodeGroup34; - ref GatheringNodeGroup reference94 = ref span49[2]; + num++; + ref GatheringNodeGroup reference94 = ref span123[num]; GatheringNodeGroup gatheringNodeGroup35 = new GatheringNodeGroup(); num2 = 2; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span54 = CollectionsMarshal.AsSpan(list130); - ref GatheringNode reference95 = ref span54[0]; + Span span130 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + ref GatheringNode reference95 = ref span130[num3]; GatheringNode obj60 = new GatheringNode { DataId = 31415u }; - num3 = 3; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span55 = CollectionsMarshal.AsSpan(list131); - span55[0] = new GatheringLocation + index2 = 3; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num4 = 0; + span131[num4] = new GatheringLocation { Position = new Vector3(-680.4672f, -103.4997f, 624.0101f) }; - span55[1] = new GatheringLocation + num4++; + span131[num4] = new GatheringLocation { Position = new Vector3(-700.5361f, -107.5581f, 597.0253f) }; - span55[2] = new GatheringLocation + num4++; + span131[num4] = new GatheringLocation { Position = new Vector3(-715.8123f, -105.2011f, 622.3116f) }; obj60.Locations = list131; reference95 = obj60; - ref GatheringNode reference96 = ref span54[1]; + num3++; + ref GatheringNode reference96 = ref span130[num3]; GatheringNode obj61 = new GatheringNode { DataId = 31414u }; - num3 = 1; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = new GatheringLocation + num4 = 1; + List list132 = new List(num4); + CollectionsMarshal.SetCount(list132, num4); + Span span132 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span132[index2] = new GatheringLocation { Position = new Vector3(-714.2946f, -113.8825f, 557.3662f) }; @@ -3801,12 +4445,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - CollectionsMarshal.AsSpan(list133)[0] = "liza"; + Span span133 = CollectionsMarshal.AsSpan(list133); + index = 0; + span133[index] = "liza"; gatheringRoot13.Author = list133; - num = 1; - List list134 = new List(num); - CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.None, null, null, 400) + index = 1; + List list134 = new List(index); + CollectionsMarshal.SetCount(list134, index); + Span span134 = CollectionsMarshal.AsSpan(list134); + num = 0; + span134[num] = new QuestStep(EInteractionType.None, null, null, 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; @@ -3814,47 +4462,55 @@ public static class AssemblyGatheringLocationLoader num = 3; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - Span span56 = CollectionsMarshal.AsSpan(list135); - ref GatheringNodeGroup reference97 = ref span56[0]; + Span span135 = CollectionsMarshal.AsSpan(list135); + index = 0; + ref GatheringNodeGroup reference97 = ref span135[index]; GatheringNodeGroup gatheringNodeGroup36 = new GatheringNodeGroup(); - num2 = 2; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span57 = CollectionsMarshal.AsSpan(list136); - ref GatheringNode reference98 = ref span57[0]; + num3 = 2; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + ref GatheringNode reference98 = ref span136[num2]; GatheringNode obj62 = new GatheringNode { DataId = 31419u }; - num3 = 3; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - Span span58 = CollectionsMarshal.AsSpan(list137); - span58[0] = new GatheringLocation + index2 = 3; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num4 = 0; + span137[num4] = new GatheringLocation { Position = new Vector3(-204.7827f, -18.18443f, 272.0514f) }; - span58[1] = new GatheringLocation + num4++; + span137[num4] = new GatheringLocation { Position = new Vector3(-187.8667f, -18.16559f, 260.4704f), MinimumAngle = -85, MaximumAngle = 105 }; - span58[2] = new GatheringLocation + num4++; + span137[num4] = new GatheringLocation { Position = new Vector3(-219.7478f, -18.66556f, 279.3036f) }; obj62.Locations = list137; reference98 = obj62; - ref GatheringNode reference99 = ref span57[1]; + num2++; + ref GatheringNode reference99 = ref span136[num2]; GatheringNode obj63 = new GatheringNode { DataId = 31418u }; - num3 = 1; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - CollectionsMarshal.AsSpan(list138)[0] = new GatheringLocation + num4 = 1; + List list138 = new List(num4); + CollectionsMarshal.SetCount(list138, num4); + Span span138 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span138[index2] = new GatheringLocation { Position = new Vector3(-216.0198f, -14.66686f, 263.2452f) }; @@ -3862,34 +4518,39 @@ public static class AssemblyGatheringLocationLoader reference99 = obj63; gatheringNodeGroup36.Nodes = list136; reference97 = gatheringNodeGroup36; - ref GatheringNodeGroup reference100 = ref span56[1]; + index++; + ref GatheringNodeGroup reference100 = ref span135[index]; GatheringNodeGroup gatheringNodeGroup37 = new GatheringNodeGroup(); num2 = 2; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span59 = CollectionsMarshal.AsSpan(list139); - ref GatheringNode reference101 = ref span59[0]; + Span span139 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + ref GatheringNode reference101 = ref span139[num3]; GatheringNode obj64 = new GatheringNode { DataId = 31423u }; - num3 = 3; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - Span span60 = CollectionsMarshal.AsSpan(list140); - span60[0] = new GatheringLocation + index2 = 3; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num4 = 0; + span140[num4] = new GatheringLocation { Position = new Vector3(-125.676f, -13.40994f, 434.1913f), MinimumAngle = 25, MaximumAngle = 260 }; - span60[1] = new GatheringLocation + num4++; + span140[num4] = new GatheringLocation { Position = new Vector3(-99.86462f, -11.67334f, 437.7415f), MinimumAngle = 85, MaximumAngle = 300 }; - span60[2] = new GatheringLocation + num4++; + span140[num4] = new GatheringLocation { Position = new Vector3(-71.04668f, -8.40571f, 445.0867f), MinimumAngle = -40, @@ -3897,15 +4558,18 @@ public static class AssemblyGatheringLocationLoader }; obj64.Locations = list140; reference101 = obj64; - ref GatheringNode reference102 = ref span59[1]; + num3++; + ref GatheringNode reference102 = ref span139[num3]; GatheringNode obj65 = new GatheringNode { DataId = 31422u }; - num3 = 1; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = new GatheringLocation + num4 = 1; + List list141 = new List(num4); + CollectionsMarshal.SetCount(list141, num4); + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new GatheringLocation { Position = new Vector3(-88.15926f, -8.882813f, 447.7102f), MinimumAngle = 155, @@ -3915,44 +4579,52 @@ public static class AssemblyGatheringLocationLoader reference102 = obj65; gatheringNodeGroup37.Nodes = list139; reference100 = gatheringNodeGroup37; - ref GatheringNodeGroup reference103 = ref span56[2]; + index++; + ref GatheringNodeGroup reference103 = ref span135[index]; GatheringNodeGroup gatheringNodeGroup38 = new GatheringNodeGroup(); - num2 = 2; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span61 = CollectionsMarshal.AsSpan(list142); - ref GatheringNode reference104 = ref span61[0]; + num3 = 2; + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + ref GatheringNode reference104 = ref span142[num2]; GatheringNode obj66 = new GatheringNode { DataId = 31420u }; - num3 = 1; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = new GatheringLocation + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + Span span143 = CollectionsMarshal.AsSpan(list143); + num4 = 0; + span143[num4] = new GatheringLocation { Position = new Vector3(12.52414f, -14.81244f, 375.4579f) }; obj66.Locations = list143; reference104 = obj66; - ref GatheringNode reference105 = ref span61[1]; + num2++; + ref GatheringNode reference105 = ref span142[num2]; GatheringNode obj67 = new GatheringNode { DataId = 31421u }; - num3 = 3; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - Span span62 = CollectionsMarshal.AsSpan(list144); - span62[0] = new GatheringLocation + num4 = 3; + List list144 = new List(num4); + CollectionsMarshal.SetCount(list144, num4); + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span144[index2] = new GatheringLocation { Position = new Vector3(-11.31142f, -19.80939f, 383.9503f) }; - span62[1] = new GatheringLocation + index2++; + span144[index2] = new GatheringLocation { Position = new Vector3(4.771156f, -17.64155f, 386.0074f) }; - span62[2] = new GatheringLocation + index2++; + span144[index2] = new GatheringLocation { Position = new Vector3(9.879506f, -13.13191f, 358.7252f) }; @@ -3963,43 +4635,51 @@ public static class AssemblyGatheringLocationLoader gatheringRoot13.Groups = list135; AddLocation(359, gatheringRoot13); GatheringRoot gatheringRoot14 = new GatheringRoot(); - num = 1; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "liza"; + index = 1; + List list145 = new List(index); + CollectionsMarshal.SetCount(list145, index); + Span span145 = CollectionsMarshal.AsSpan(list145); + num = 0; + span145[num] = "liza"; gatheringRoot14.Author = list145; num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.None, null, null, 401) + Span span146 = CollectionsMarshal.AsSpan(list146); + index = 0; + span146[index] = new QuestStep(EInteractionType.None, null, null, 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; gatheringRoot14.Steps = list146; - num = 3; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span63 = CollectionsMarshal.AsSpan(list147); - ref GatheringNodeGroup reference106 = ref span63[0]; + index = 3; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + Span span147 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref GatheringNodeGroup reference106 = ref span147[num]; GatheringNodeGroup gatheringNodeGroup39 = new GatheringNodeGroup(); num2 = 2; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span64 = CollectionsMarshal.AsSpan(list148); - ref GatheringNode reference107 = ref span64[0]; + Span span148 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + ref GatheringNode reference107 = ref span148[num3]; GatheringNode obj68 = new GatheringNode { DataId = 31425u }; - num3 = 2; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - Span span65 = CollectionsMarshal.AsSpan(list149); - span65[0] = new GatheringLocation + index2 = 2; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num4 = 0; + span149[num4] = new GatheringLocation { Position = new Vector3(-63.97195f, 13.48263f, -559.9897f) }; - span65[1] = new GatheringLocation + num4++; + span149[num4] = new GatheringLocation { Position = new Vector3(-47.75371f, 13.66347f, -571.2774f), MinimumAngle = -80, @@ -4007,15 +4687,18 @@ public static class AssemblyGatheringLocationLoader }; obj68.Locations = list149; reference107 = obj68; - ref GatheringNode reference108 = ref span64[1]; + num3++; + ref GatheringNode reference108 = ref span148[num3]; GatheringNode obj69 = new GatheringNode { DataId = 31424u }; - num3 = 1; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = new GatheringLocation + num4 = 1; + List list150 = new List(num4); + CollectionsMarshal.SetCount(list150, num4); + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new GatheringLocation { Position = new Vector3(-26.91866f, 12.14502f, -554.869f) }; @@ -4023,40 +4706,47 @@ public static class AssemblyGatheringLocationLoader reference108 = obj69; gatheringNodeGroup39.Nodes = list148; reference106 = gatheringNodeGroup39; - ref GatheringNodeGroup reference109 = ref span63[1]; + num++; + ref GatheringNodeGroup reference109 = ref span147[num]; GatheringNodeGroup gatheringNodeGroup40 = new GatheringNodeGroup(); - num2 = 2; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - Span span66 = CollectionsMarshal.AsSpan(list151); - ref GatheringNode reference110 = ref span66[0]; + num3 = 2; + List list151 = new List(num3); + CollectionsMarshal.SetCount(list151, num3); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + ref GatheringNode reference110 = ref span151[num2]; GatheringNode obj70 = new GatheringNode { DataId = 31426u }; - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = new GatheringLocation + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num4 = 0; + span152[num4] = new GatheringLocation { Position = new Vector3(-26.56338f, 12.41532f, -442.6965f) }; obj70.Locations = list152; reference110 = obj70; - ref GatheringNode reference111 = ref span66[1]; + num2++; + ref GatheringNode reference111 = ref span151[num2]; GatheringNode obj71 = new GatheringNode { DataId = 31427u }; - num3 = 2; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - Span span67 = CollectionsMarshal.AsSpan(list153); - span67[0] = new GatheringLocation + num4 = 2; + List list153 = new List(num4); + CollectionsMarshal.SetCount(list153, num4); + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new GatheringLocation { Position = new Vector3(2.215849f, 12.32494f, -434.0038f) }; - span67[1] = new GatheringLocation + index2++; + span153[index2] = new GatheringLocation { Position = new Vector3(-18.38633f, 12.4451f, -427.6107f) }; @@ -4064,42 +4754,49 @@ public static class AssemblyGatheringLocationLoader reference111 = obj71; gatheringNodeGroup40.Nodes = list151; reference109 = gatheringNodeGroup40; - ref GatheringNodeGroup reference112 = ref span63[2]; + num++; + ref GatheringNodeGroup reference112 = ref span147[num]; GatheringNodeGroup gatheringNodeGroup41 = new GatheringNodeGroup(); num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span68 = CollectionsMarshal.AsSpan(list154); - ref GatheringNode reference113 = ref span68[0]; + Span span154 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + ref GatheringNode reference113 = ref span154[num3]; GatheringNode obj72 = new GatheringNode { DataId = 31429u }; - num3 = 2; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span69 = CollectionsMarshal.AsSpan(list155); - span69[0] = new GatheringLocation + index2 = 2; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num4 = 0; + span155[num4] = new GatheringLocation { Position = new Vector3(70.59737f, 13.45543f, -599.2373f), MinimumAngle = -60, MaximumAngle = 125 }; - span69[1] = new GatheringLocation + num4++; + span155[num4] = new GatheringLocation { Position = new Vector3(50.8525f, 13.158f, -646.834f) }; obj72.Locations = list155; reference113 = obj72; - ref GatheringNode reference114 = ref span68[1]; + num3++; + ref GatheringNode reference114 = ref span154[num3]; GatheringNode obj73 = new GatheringNode { DataId = 31428u }; - num3 = 1; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = new GatheringLocation + num4 = 1; + List list156 = new List(num4); + CollectionsMarshal.SetCount(list156, num4); + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new GatheringLocation { Position = new Vector3(85.6145f, 12.69149f, -629.3397f) }; @@ -4113,12 +4810,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "liza"; + Span span157 = CollectionsMarshal.AsSpan(list157); + index = 0; + span157[index] = "liza"; gatheringRoot15.Author = list157; - num = 1; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - ref QuestStep reference115 = ref CollectionsMarshal.AsSpan(list158)[0]; + index = 1; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + Span span158 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestStep reference115 = ref span158[num]; QuestStep obj74 = new QuestStep(EInteractionType.None, null, null, 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -4130,10 +4831,12 @@ public static class AssemblyGatheringLocationLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = 399; + num3 = 1; + List list159 = new List(num3); + CollectionsMarshal.SetCount(list159, num3); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = 399; skipAetheryteCondition2.InTerritory = list159; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition2; obj74.SkipConditions = skipConditions7; @@ -4142,35 +4845,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span70 = CollectionsMarshal.AsSpan(list160); - ref GatheringNodeGroup reference116 = ref span70[0]; + Span span160 = CollectionsMarshal.AsSpan(list160); + index = 0; + ref GatheringNodeGroup reference116 = ref span160[index]; GatheringNodeGroup gatheringNodeGroup42 = new GatheringNodeGroup(); num2 = 2; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span71 = CollectionsMarshal.AsSpan(list161); - ref GatheringNode reference117 = ref span71[0]; + Span span161 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + ref GatheringNode reference117 = ref span161[num3]; GatheringNode obj75 = new GatheringNode { DataId = 31431u }; - num3 = 3; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - Span span72 = CollectionsMarshal.AsSpan(list162); - span72[0] = new GatheringLocation + index2 = 3; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num4 = 0; + span162[num4] = new GatheringLocation { Position = new Vector3(-494.1652f, 142.7381f, -287.4084f), MinimumAngle = 0, MaximumAngle = 270 }; - span72[1] = new GatheringLocation + num4++; + span162[num4] = new GatheringLocation { Position = new Vector3(-485.4606f, 142.9737f, -290.856f), MinimumAngle = 65, MaximumAngle = 310 }; - span72[2] = new GatheringLocation + num4++; + span162[num4] = new GatheringLocation { Position = new Vector3(-533.1213f, 142.5874f, -262.2948f), MinimumAngle = -255, @@ -4178,15 +4886,18 @@ public static class AssemblyGatheringLocationLoader }; obj75.Locations = list162; reference117 = obj75; - ref GatheringNode reference118 = ref span71[1]; + num3++; + ref GatheringNode reference118 = ref span161[num3]; GatheringNode obj76 = new GatheringNode { DataId = 31430u }; - num3 = 1; - List list163 = new List(num3); - CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = new GatheringLocation + num4 = 1; + List list163 = new List(num4); + CollectionsMarshal.SetCount(list163, num4); + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span163[index2] = new GatheringLocation { Position = new Vector3(-510.6404f, 141.9014f, -280.1611f) }; @@ -4194,44 +4905,52 @@ public static class AssemblyGatheringLocationLoader reference118 = obj76; gatheringNodeGroup42.Nodes = list161; reference116 = gatheringNodeGroup42; - ref GatheringNodeGroup reference119 = ref span70[1]; + index++; + ref GatheringNodeGroup reference119 = ref span160[index]; GatheringNodeGroup gatheringNodeGroup43 = new GatheringNodeGroup(); - num2 = 2; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - Span span73 = CollectionsMarshal.AsSpan(list164); - ref GatheringNode reference120 = ref span73[0]; + num3 = 2; + List list164 = new List(num3); + CollectionsMarshal.SetCount(list164, num3); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + ref GatheringNode reference120 = ref span164[num2]; GatheringNode obj77 = new GatheringNode { DataId = 31434u }; - num3 = 1; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - CollectionsMarshal.AsSpan(list165)[0] = new GatheringLocation + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num4 = 0; + span165[num4] = new GatheringLocation { Position = new Vector3(-562.8221f, 148.9451f, -104.9014f) }; obj77.Locations = list165; reference120 = obj77; - ref GatheringNode reference121 = ref span73[1]; + num2++; + ref GatheringNode reference121 = ref span164[num2]; GatheringNode obj78 = new GatheringNode { DataId = 31435u }; - num3 = 3; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - Span span74 = CollectionsMarshal.AsSpan(list166); - span74[0] = new GatheringLocation + num4 = 3; + List list166 = new List(num4); + CollectionsMarshal.SetCount(list166, num4); + Span span166 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span166[index2] = new GatheringLocation { Position = new Vector3(-520.0394f, 148.7521f, -97.8f) }; - span74[1] = new GatheringLocation + index2++; + span166[index2] = new GatheringLocation { Position = new Vector3(-570.4307f, 148.103f, -130.9921f) }; - span74[2] = new GatheringLocation + index2++; + span166[index2] = new GatheringLocation { Position = new Vector3(-573.738f, 148.4877f, -158.4798f), MinimumAngle = 130, @@ -4241,46 +4960,54 @@ public static class AssemblyGatheringLocationLoader reference121 = obj78; gatheringNodeGroup43.Nodes = list164; reference119 = gatheringNodeGroup43; - ref GatheringNodeGroup reference122 = ref span70[2]; + index++; + ref GatheringNodeGroup reference122 = ref span160[index]; GatheringNodeGroup gatheringNodeGroup44 = new GatheringNodeGroup(); num2 = 2; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span75 = CollectionsMarshal.AsSpan(list167); - ref GatheringNode reference123 = ref span75[0]; + Span span167 = CollectionsMarshal.AsSpan(list167); + num3 = 0; + ref GatheringNode reference123 = ref span167[num3]; GatheringNode obj79 = new GatheringNode { DataId = 31432u }; - num3 = 1; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = new GatheringLocation + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num4 = 0; + span168[num4] = new GatheringLocation { Position = new Vector3(-388.4753f, 147.345f, -177.1972f) }; obj79.Locations = list168; reference123 = obj79; - ref GatheringNode reference124 = ref span75[1]; + num3++; + ref GatheringNode reference124 = ref span167[num3]; GatheringNode obj80 = new GatheringNode { DataId = 31433u }; - num3 = 3; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - Span span76 = CollectionsMarshal.AsSpan(list169); - span76[0] = new GatheringLocation + num4 = 3; + List list169 = new List(num4); + CollectionsMarshal.SetCount(list169, num4); + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new GatheringLocation { Position = new Vector3(-349.5501f, 144.6325f, -185.3442f) }; - span76[1] = new GatheringLocation + index2++; + span169[index2] = new GatheringLocation { Position = new Vector3(-398.145f, 145.7528f, -198.2334f), MinimumAngle = 155, MaximumAngle = 360 }; - span76[2] = new GatheringLocation + index2++; + span169[index2] = new GatheringLocation { Position = new Vector3(-374.5566f, 145.3827f, -194.8224f) }; @@ -4291,50 +5018,61 @@ public static class AssemblyGatheringLocationLoader gatheringRoot15.Groups = list160; AddLocation(361, gatheringRoot15); GatheringRoot gatheringRoot16 = new GatheringRoot(); - num = 1; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "liza"; + index = 1; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + Span span170 = CollectionsMarshal.AsSpan(list170); + num = 0; + span170[num] = "liza"; gatheringRoot16.Author = list170; num = 2; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span77 = CollectionsMarshal.AsSpan(list171); - ref QuestStep reference125 = ref span77[0]; + Span span171 = CollectionsMarshal.AsSpan(list171); + index = 0; + ref QuestStep reference125 = ref span171[index]; QuestStep obj81 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = 1073; + num3 = 1; + List list172 = new List(num3); + CollectionsMarshal.SetCount(list172, num3); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span172[num2] = 1073; skipStepConditions6.InTerritory = list172; skipConditions8.StepIf = skipStepConditions6; obj81.SkipConditions = skipConditions8; reference125 = obj81; - span77[1] = new QuestStep(EInteractionType.None, null, null, 1073); + index++; + span171[index] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot16.Steps = list171; - num = 3; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - Span span78 = CollectionsMarshal.AsSpan(list173); - ref GatheringNodeGroup reference126 = ref span78[0]; + index = 3; + List list173 = new List(index); + CollectionsMarshal.SetCount(list173, index); + Span span173 = CollectionsMarshal.AsSpan(list173); + num = 0; + ref GatheringNodeGroup reference126 = ref span173[num]; GatheringNodeGroup gatheringNodeGroup45 = new GatheringNodeGroup(); num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - ref GatheringNode reference127 = ref CollectionsMarshal.AsSpan(list174)[0]; + Span span174 = CollectionsMarshal.AsSpan(list174); + num3 = 0; + ref GatheringNode reference127 = ref span174[num3]; GatheringNode obj82 = new GatheringNode { DataId = 33851u }; - num3 = 1; - List list175 = new List(num3); - CollectionsMarshal.SetCount(list175, num3); - CollectionsMarshal.AsSpan(list175)[0] = new GatheringLocation + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num4 = 0; + span175[num4] = new GatheringLocation { Position = new Vector3(-10.66682f, 499.3763f, 34.01145f) }; @@ -4342,20 +5080,25 @@ public static class AssemblyGatheringLocationLoader reference127 = obj82; gatheringNodeGroup45.Nodes = list174; reference126 = gatheringNodeGroup45; - ref GatheringNodeGroup reference128 = ref span78[1]; + num++; + ref GatheringNodeGroup reference128 = ref span173[num]; GatheringNodeGroup gatheringNodeGroup46 = new GatheringNodeGroup(); - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - ref GatheringNode reference129 = ref CollectionsMarshal.AsSpan(list176)[0]; + num3 = 1; + List list176 = new List(num3); + CollectionsMarshal.SetCount(list176, num3); + Span span176 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + ref GatheringNode reference129 = ref span176[num2]; GatheringNode obj83 = new GatheringNode { DataId = 32269u }; - num3 = 1; - List list177 = new List(num3); - CollectionsMarshal.SetCount(list177, num3); - CollectionsMarshal.AsSpan(list177)[0] = new GatheringLocation + num4 = 1; + List list177 = new List(num4); + CollectionsMarshal.SetCount(list177, num4); + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span177[index2] = new GatheringLocation { Position = new Vector3(-16.14751f, 499.7353f, 22.38433f) }; @@ -4363,20 +5106,25 @@ public static class AssemblyGatheringLocationLoader reference129 = obj83; gatheringNodeGroup46.Nodes = list176; reference128 = gatheringNodeGroup46; - ref GatheringNodeGroup reference130 = ref span78[2]; + num++; + ref GatheringNodeGroup reference130 = ref span173[num]; GatheringNodeGroup gatheringNodeGroup47 = new GatheringNodeGroup(); num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - ref GatheringNode reference131 = ref CollectionsMarshal.AsSpan(list178)[0]; + Span span178 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + ref GatheringNode reference131 = ref span178[num3]; GatheringNode obj84 = new GatheringNode { DataId = 32766u }; - num3 = 1; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = new GatheringLocation + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num4 = 0; + span179[num4] = new GatheringLocation { Position = new Vector3(-28.72828f, 499.5391f, 33.41306f), MinimumAngle = 125, @@ -4392,47 +5140,58 @@ public static class AssemblyGatheringLocationLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "liza"; + Span span180 = CollectionsMarshal.AsSpan(list180); + index = 0; + span180[index] = "liza"; gatheringRoot17.Author = list180; - num = 2; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - Span span79 = CollectionsMarshal.AsSpan(list181); - ref QuestStep reference132 = ref span79[0]; + index = 2; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + Span span181 = CollectionsMarshal.AsSpan(list181); + num = 0; + ref QuestStep reference132 = ref span181[num]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = 1073; + num3 = 1; + List list182 = new List(num3); + CollectionsMarshal.SetCount(list182, num3); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = 1073; skipStepConditions7.InTerritory = list182; skipConditions9.StepIf = skipStepConditions7; obj85.SkipConditions = skipConditions9; reference132 = obj85; - span79[1] = new QuestStep(EInteractionType.None, null, null, 1073); + num++; + span181[num] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot17.Steps = list181; num = 3; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span80 = CollectionsMarshal.AsSpan(list183); - ref GatheringNodeGroup reference133 = ref span80[0]; + Span span183 = CollectionsMarshal.AsSpan(list183); + index = 0; + ref GatheringNodeGroup reference133 = ref span183[index]; GatheringNodeGroup gatheringNodeGroup48 = new GatheringNodeGroup(); num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - ref GatheringNode reference134 = ref CollectionsMarshal.AsSpan(list184)[0]; + Span span184 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + ref GatheringNode reference134 = ref span184[num3]; GatheringNode obj86 = new GatheringNode { DataId = 34347u }; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new GatheringLocation + num4 = 1; + List list185 = new List(num4); + CollectionsMarshal.SetCount(list185, num4); + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new GatheringLocation { Position = new Vector3(-13.64273f, 493.9979f, -58.21632f), MinimumAngle = -5, @@ -4442,20 +5201,25 @@ public static class AssemblyGatheringLocationLoader reference134 = obj86; gatheringNodeGroup48.Nodes = list184; reference133 = gatheringNodeGroup48; - ref GatheringNodeGroup reference135 = ref span80[1]; + index++; + ref GatheringNodeGroup reference135 = ref span183[index]; GatheringNodeGroup gatheringNodeGroup49 = new GatheringNodeGroup(); - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - ref GatheringNode reference136 = ref CollectionsMarshal.AsSpan(list186)[0]; + num3 = 1; + List list186 = new List(num3); + CollectionsMarshal.SetCount(list186, num3); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + ref GatheringNode reference136 = ref span186[num2]; GatheringNode obj87 = new GatheringNode { DataId = 34348u }; - num3 = 1; - List list187 = new List(num3); - CollectionsMarshal.SetCount(list187, num3); - CollectionsMarshal.AsSpan(list187)[0] = new GatheringLocation + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num4 = 0; + span187[num4] = new GatheringLocation { Position = new Vector3(-22.23647f, 494.0945f, -59.94842f), MinimumAngle = 125, @@ -4465,20 +5229,25 @@ public static class AssemblyGatheringLocationLoader reference136 = obj87; gatheringNodeGroup49.Nodes = list186; reference135 = gatheringNodeGroup49; - ref GatheringNodeGroup reference137 = ref span80[2]; + index++; + ref GatheringNodeGroup reference137 = ref span183[index]; GatheringNodeGroup gatheringNodeGroup50 = new GatheringNodeGroup(); num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - ref GatheringNode reference138 = ref CollectionsMarshal.AsSpan(list188)[0]; + Span span188 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + ref GatheringNode reference138 = ref span188[num3]; GatheringNode obj88 = new GatheringNode { DataId = 34334u }; - num3 = 1; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = new GatheringLocation + num4 = 1; + List list189 = new List(num4); + CollectionsMarshal.SetCount(list189, num4); + Span span189 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span189[index2] = new GatheringLocation { Position = new Vector3(-20.58942f, 494.25f, -77.68658f), MinimumAngle = -45, @@ -4491,50 +5260,61 @@ public static class AssemblyGatheringLocationLoader gatheringRoot17.Groups = list183; AddLocation(394, gatheringRoot17); GatheringRoot gatheringRoot18 = new GatheringRoot(); - num = 1; - List list190 = new List(num); - CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "liza"; + index = 1; + List list190 = new List(index); + CollectionsMarshal.SetCount(list190, index); + Span span190 = CollectionsMarshal.AsSpan(list190); + num = 0; + span190[num] = "liza"; gatheringRoot18.Author = list190; num = 2; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - Span span81 = CollectionsMarshal.AsSpan(list191); - ref QuestStep reference139 = ref span81[0]; + Span span191 = CollectionsMarshal.AsSpan(list191); + index = 0; + ref QuestStep reference139 = ref span191[index]; QuestStep obj89 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = 1073; + num3 = 1; + List list192 = new List(num3); + CollectionsMarshal.SetCount(list192, num3); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span192[num2] = 1073; skipStepConditions8.InTerritory = list192; skipConditions10.StepIf = skipStepConditions8; obj89.SkipConditions = skipConditions10; reference139 = obj89; - span81[1] = new QuestStep(EInteractionType.None, null, null, 1073); + index++; + span191[index] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot18.Steps = list191; - num = 3; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - Span span82 = CollectionsMarshal.AsSpan(list193); - ref GatheringNodeGroup reference140 = ref span82[0]; + index = 3; + List list193 = new List(index); + CollectionsMarshal.SetCount(list193, index); + Span span193 = CollectionsMarshal.AsSpan(list193); + num = 0; + ref GatheringNodeGroup reference140 = ref span193[num]; GatheringNodeGroup gatheringNodeGroup51 = new GatheringNodeGroup(); num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - ref GatheringNode reference141 = ref CollectionsMarshal.AsSpan(list194)[0]; + Span span194 = CollectionsMarshal.AsSpan(list194); + num3 = 0; + ref GatheringNode reference141 = ref span194[num3]; GatheringNode obj90 = new GatheringNode { DataId = 34350u }; - num3 = 1; - List list195 = new List(num3); - CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = new GatheringLocation + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num4 = 0; + span195[num4] = new GatheringLocation { Position = new Vector3(18.9518f, 485.9131f, -133.3762f) }; @@ -4542,20 +5322,25 @@ public static class AssemblyGatheringLocationLoader reference141 = obj90; gatheringNodeGroup51.Nodes = list194; reference140 = gatheringNodeGroup51; - ref GatheringNodeGroup reference142 = ref span82[1]; + num++; + ref GatheringNodeGroup reference142 = ref span193[num]; GatheringNodeGroup gatheringNodeGroup52 = new GatheringNodeGroup(); - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - ref GatheringNode reference143 = ref CollectionsMarshal.AsSpan(list196)[0]; + num3 = 1; + List list196 = new List(num3); + CollectionsMarshal.SetCount(list196, num3); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + ref GatheringNode reference143 = ref span196[num2]; GatheringNode obj91 = new GatheringNode { DataId = 34351u }; - num3 = 1; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new GatheringLocation + num4 = 1; + List list197 = new List(num4); + CollectionsMarshal.SetCount(list197, num4); + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new GatheringLocation { Position = new Vector3(15.71416f, 486.0302f, -136.2497f) }; @@ -4563,20 +5348,25 @@ public static class AssemblyGatheringLocationLoader reference143 = obj91; gatheringNodeGroup52.Nodes = list196; reference142 = gatheringNodeGroup52; - ref GatheringNodeGroup reference144 = ref span82[2]; + num++; + ref GatheringNodeGroup reference144 = ref span193[num]; GatheringNodeGroup gatheringNodeGroup53 = new GatheringNodeGroup(); num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - ref GatheringNode reference145 = ref CollectionsMarshal.AsSpan(list198)[0]; + Span span198 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + ref GatheringNode reference145 = ref span198[num3]; GatheringNode obj92 = new GatheringNode { DataId = 34349u }; - num3 = 1; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - CollectionsMarshal.AsSpan(list199)[0] = new GatheringLocation + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + Span span199 = CollectionsMarshal.AsSpan(list199); + num4 = 0; + span199[num4] = new GatheringLocation { Position = new Vector3(9.524881f, 486.2234f, -142.2316f) }; @@ -4590,47 +5380,58 @@ public static class AssemblyGatheringLocationLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - CollectionsMarshal.AsSpan(list200)[0] = "liza"; + Span span200 = CollectionsMarshal.AsSpan(list200); + index = 0; + span200[index] = "liza"; gatheringRoot19.Author = list200; - num = 2; - List list201 = new List(num); - CollectionsMarshal.SetCount(list201, num); - Span span83 = CollectionsMarshal.AsSpan(list201); - ref QuestStep reference146 = ref span83[0]; + index = 2; + List list201 = new List(index); + CollectionsMarshal.SetCount(list201, index); + Span span201 = CollectionsMarshal.AsSpan(list201); + num = 0; + ref QuestStep reference146 = ref span201[num]; QuestStep obj93 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = 1073; + num3 = 1; + List list202 = new List(num3); + CollectionsMarshal.SetCount(list202, num3); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = 1073; skipStepConditions9.InTerritory = list202; skipConditions11.StepIf = skipStepConditions9; obj93.SkipConditions = skipConditions11; reference146 = obj93; - span83[1] = new QuestStep(EInteractionType.None, null, null, 1073); + num++; + span201[num] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot19.Steps = list201; num = 3; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - Span span84 = CollectionsMarshal.AsSpan(list203); - ref GatheringNodeGroup reference147 = ref span84[0]; + Span span203 = CollectionsMarshal.AsSpan(list203); + index = 0; + ref GatheringNodeGroup reference147 = ref span203[index]; GatheringNodeGroup gatheringNodeGroup54 = new GatheringNodeGroup(); num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - ref GatheringNode reference148 = ref CollectionsMarshal.AsSpan(list204)[0]; + Span span204 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + ref GatheringNode reference148 = ref span204[num3]; GatheringNode obj94 = new GatheringNode { DataId = 34353u }; - num3 = 1; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = new GatheringLocation + num4 = 1; + List list205 = new List(num4); + CollectionsMarshal.SetCount(list205, num4); + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new GatheringLocation { Position = new Vector3(-59.17508f, 494.132f, -1.865536f), MinimumAngle = -35, @@ -4640,20 +5441,25 @@ public static class AssemblyGatheringLocationLoader reference148 = obj94; gatheringNodeGroup54.Nodes = list204; reference147 = gatheringNodeGroup54; - ref GatheringNodeGroup reference149 = ref span84[1]; + index++; + ref GatheringNodeGroup reference149 = ref span203[index]; GatheringNodeGroup gatheringNodeGroup55 = new GatheringNodeGroup(); - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - ref GatheringNode reference150 = ref CollectionsMarshal.AsSpan(list206)[0]; + num3 = 1; + List list206 = new List(num3); + CollectionsMarshal.SetCount(list206, num3); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + ref GatheringNode reference150 = ref span206[num2]; GatheringNode obj95 = new GatheringNode { DataId = 34352u }; - num3 = 1; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - CollectionsMarshal.AsSpan(list207)[0] = new GatheringLocation + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + Span span207 = CollectionsMarshal.AsSpan(list207); + num4 = 0; + span207[num4] = new GatheringLocation { Position = new Vector3(-61.05396f, 495.2124f, -22.16576f), MinimumAngle = -30, @@ -4663,20 +5469,25 @@ public static class AssemblyGatheringLocationLoader reference150 = obj95; gatheringNodeGroup55.Nodes = list206; reference149 = gatheringNodeGroup55; - ref GatheringNodeGroup reference151 = ref span84[2]; + index++; + ref GatheringNodeGroup reference151 = ref span203[index]; GatheringNodeGroup gatheringNodeGroup56 = new GatheringNodeGroup(); num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - ref GatheringNode reference152 = ref CollectionsMarshal.AsSpan(list208)[0]; + Span span208 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + ref GatheringNode reference152 = ref span208[num3]; GatheringNode obj96 = new GatheringNode { DataId = 34354u }; - num3 = 1; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = new GatheringLocation + num4 = 1; + List list209 = new List(num4); + CollectionsMarshal.SetCount(list209, num4); + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new GatheringLocation { Position = new Vector3(-90.96052f, 493.2197f, -20.74431f), MinimumAngle = -70, @@ -4689,50 +5500,61 @@ public static class AssemblyGatheringLocationLoader gatheringRoot19.Groups = list203; AddLocation(398, gatheringRoot19); GatheringRoot gatheringRoot20 = new GatheringRoot(); - num = 1; - List list210 = new List(num); - CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "liza"; + index = 1; + List list210 = new List(index); + CollectionsMarshal.SetCount(list210, index); + Span span210 = CollectionsMarshal.AsSpan(list210); + num = 0; + span210[num] = "liza"; gatheringRoot20.Author = list210; num = 2; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - Span span85 = CollectionsMarshal.AsSpan(list211); - ref QuestStep reference153 = ref span85[0]; + Span span211 = CollectionsMarshal.AsSpan(list211); + index = 0; + ref QuestStep reference153 = ref span211[index]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = 1073; + num3 = 1; + List list212 = new List(num3); + CollectionsMarshal.SetCount(list212, num3); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span212[num2] = 1073; skipStepConditions10.InTerritory = list212; skipConditions12.StepIf = skipStepConditions10; obj97.SkipConditions = skipConditions12; reference153 = obj97; - span85[1] = new QuestStep(EInteractionType.None, null, null, 1073); + index++; + span211[index] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot20.Steps = list211; - num = 3; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - Span span86 = CollectionsMarshal.AsSpan(list213); - ref GatheringNodeGroup reference154 = ref span86[0]; + index = 3; + List list213 = new List(index); + CollectionsMarshal.SetCount(list213, index); + Span span213 = CollectionsMarshal.AsSpan(list213); + num = 0; + ref GatheringNodeGroup reference154 = ref span213[num]; GatheringNodeGroup gatheringNodeGroup57 = new GatheringNodeGroup(); num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - ref GatheringNode reference155 = ref CollectionsMarshal.AsSpan(list214)[0]; + Span span214 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + ref GatheringNode reference155 = ref span214[num3]; GatheringNode obj98 = new GatheringNode { DataId = 34357u }; - num3 = 1; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = new GatheringLocation + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num4 = 0; + span215[num4] = new GatheringLocation { Position = new Vector3(-91.21072f, 490.3782f, 41.27306f), MinimumAngle = 140, @@ -4742,20 +5564,25 @@ public static class AssemblyGatheringLocationLoader reference155 = obj98; gatheringNodeGroup57.Nodes = list214; reference154 = gatheringNodeGroup57; - ref GatheringNodeGroup reference156 = ref span86[1]; + num++; + ref GatheringNodeGroup reference156 = ref span213[num]; GatheringNodeGroup gatheringNodeGroup58 = new GatheringNodeGroup(); - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - ref GatheringNode reference157 = ref CollectionsMarshal.AsSpan(list216)[0]; + num3 = 1; + List list216 = new List(num3); + CollectionsMarshal.SetCount(list216, num3); + Span span216 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + ref GatheringNode reference157 = ref span216[num2]; GatheringNode obj99 = new GatheringNode { DataId = 34355u }; - num3 = 1; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = new GatheringLocation + num4 = 1; + List list217 = new List(num4); + CollectionsMarshal.SetCount(list217, num4); + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new GatheringLocation { Position = new Vector3(-118.7086f, 490.4538f, 34.37638f), MinimumAngle = 40, @@ -4765,20 +5592,25 @@ public static class AssemblyGatheringLocationLoader reference157 = obj99; gatheringNodeGroup58.Nodes = list216; reference156 = gatheringNodeGroup58; - ref GatheringNodeGroup reference158 = ref span86[2]; + num++; + ref GatheringNodeGroup reference158 = ref span213[num]; GatheringNodeGroup gatheringNodeGroup59 = new GatheringNodeGroup(); num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - ref GatheringNode reference159 = ref CollectionsMarshal.AsSpan(list218)[0]; + Span span218 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + ref GatheringNode reference159 = ref span218[num3]; GatheringNode obj100 = new GatheringNode { DataId = 34356u }; - num3 = 1; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = new GatheringLocation + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + Span span219 = CollectionsMarshal.AsSpan(list219); + num4 = 0; + span219[num4] = new GatheringLocation { Position = new Vector3(-105.7026f, 490.5684f, 58.49864f), MinimumAngle = 0, @@ -4798,12 +5630,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 612) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; @@ -4811,22 +5647,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref GatheringNode reference2 = ref span2[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int num3 = 0; + ref GatheringNode reference2 = ref span4[num3]; GatheringNode obj = new GatheringNode { DataId = 32125u }; - int num3 = 1; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation + int num4 = 1; + List list5 = new List(num4); + CollectionsMarshal.SetCount(list5, num4); + Span span5 = CollectionsMarshal.AsSpan(list5); + int index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-317.5445f, 80.03535f, -449.2276f), MinimumAngle = -80, @@ -4834,28 +5674,32 @@ public static class AssemblyGatheringLocationLoader }; obj.Locations = list5; reference2 = obj; - ref GatheringNode reference3 = ref span2[1]; + num3++; + ref GatheringNode reference3 = ref span4[num3]; GatheringNode obj2 = new GatheringNode { DataId = 32126u }; - num3 = 3; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = new GatheringLocation + index2 = 3; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num4 = 0; + span6[num4] = new GatheringLocation { Position = new Vector3(-301.3254f, 69.71587f, -485.7171f), MinimumAngle = -125, MaximumAngle = 30 }; - span3[1] = new GatheringLocation + num4++; + span6[num4] = new GatheringLocation { Position = new Vector3(-311.9155f, 76.91404f, -467.1509f), MinimumAngle = 160, MaximumAngle = 290 }; - span3[2] = new GatheringLocation + num4++; + span6[num4] = new GatheringLocation { Position = new Vector3(-311.1216f, 77.83449f, -454.2029f), MinimumAngle = -110, @@ -4865,34 +5709,39 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference4 = ref span[1]; + index++; + ref GatheringNodeGroup reference4 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span4 = CollectionsMarshal.AsSpan(list7); - ref GatheringNode reference5 = ref span4[0]; + num3 = 2; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref GatheringNode reference5 = ref span7[num2]; GatheringNode obj3 = new GatheringNode { DataId = 32124u }; - num3 = 3; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span5 = CollectionsMarshal.AsSpan(list8); - span5[0] = new GatheringLocation + num4 = 3; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new GatheringLocation { Position = new Vector3(-262.2596f, 62.06842f, -550.8122f), MinimumAngle = 185, MaximumAngle = 335 }; - span5[1] = new GatheringLocation + index2++; + span8[index2] = new GatheringLocation { Position = new Vector3(-266.0078f, 62.03654f, -564.1611f), MinimumAngle = 180, MaximumAngle = 340 }; - span5[2] = new GatheringLocation + index2++; + span8[index2] = new GatheringLocation { Position = new Vector3(-255.8366f, 62.63577f, -588.0093f), MinimumAngle = 245, @@ -4900,15 +5749,18 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - ref GatheringNode reference6 = ref span4[1]; + num2++; + ref GatheringNode reference6 = ref span7[num2]; GatheringNode obj4 = new GatheringNode { DataId = 32123u }; - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span9[num4] = new GatheringLocation { Position = new Vector3(-264.8189f, 62.61843f, -558.4091f), MinimumAngle = 175, @@ -4918,35 +5770,42 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - ref GatheringNodeGroup reference7 = ref span[2]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref GatheringNode reference8 = ref span6[0]; + Span span10 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + ref GatheringNode reference8 = ref span10[num3]; GatheringNode obj5 = new GatheringNode { DataId = 32127u }; - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = new GatheringLocation + num4 = 1; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new GatheringLocation { Position = new Vector3(-108.2628f, 64.1357f, -485.6675f) }; obj5.Locations = list11; reference8 = obj5; - ref GatheringNode reference9 = ref span6[1]; + num3++; + ref GatheringNode reference9 = ref span10[num3]; GatheringNode obj6 = new GatheringNode { DataId = 32128u }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span12[num4] = new GatheringLocation { Position = new Vector3(-103.2401f, 59.26093f, -463.1485f) }; @@ -4957,51 +5816,60 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(485, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + span13[num] = "liza"; gatheringRoot2.Author = list13; num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 612) + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; gatheringRoot2.Steps = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span7 = CollectionsMarshal.AsSpan(list15); - ref GatheringNodeGroup reference10 = ref span7[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref GatheringNodeGroup reference10 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 2; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span8 = CollectionsMarshal.AsSpan(list16); - ref GatheringNode reference11 = ref span8[0]; + num3 = 2; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + ref GatheringNode reference11 = ref span16[num2]; GatheringNode obj7 = new GatheringNode { DataId = 32132u }; - num3 = 3; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - Span span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = new GatheringLocation + num4 = 3; + List list17 = new List(num4); + CollectionsMarshal.SetCount(list17, num4); + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new GatheringLocation { Position = new Vector3(101.0199f, 50.70325f, -410.8297f), MinimumAngle = -55, MaximumAngle = 25 }; - span9[1] = new GatheringLocation + index2++; + span17[index2] = new GatheringLocation { Position = new Vector3(78.0303f, 48.68632f, -401.5028f), MinimumAngle = -50, MaximumAngle = 5 }; - span9[2] = new GatheringLocation + index2++; + span17[index2] = new GatheringLocation { Position = new Vector3(115.4548f, 51.50989f, -415.8416f), MinimumAngle = -115, @@ -5009,15 +5877,18 @@ public static class AssemblyGatheringLocationLoader }; obj7.Locations = list17; reference11 = obj7; - ref GatheringNode reference12 = ref span8[1]; + num2++; + ref GatheringNode reference12 = ref span16[num2]; GatheringNode obj8 = new GatheringNode { DataId = 32131u }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span18[num4] = new GatheringLocation { Position = new Vector3(90.52106f, 49.82163f, -409.1239f), MinimumAngle = -35, @@ -5027,34 +5898,39 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - ref GatheringNodeGroup reference13 = ref span7[1]; + num++; + ref GatheringNodeGroup reference13 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span10 = CollectionsMarshal.AsSpan(list19); - ref GatheringNode reference14 = ref span10[0]; + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + ref GatheringNode reference14 = ref span19[num3]; GatheringNode obj9 = new GatheringNode { DataId = 32134u }; - num3 = 3; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span11 = CollectionsMarshal.AsSpan(list20); - span11[0] = new GatheringLocation + num4 = 3; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new GatheringLocation { Position = new Vector3(84.90259f, 44.58842f, -324.1541f), MinimumAngle = -10, MaximumAngle = 105 }; - span11[1] = new GatheringLocation + index2++; + span20[index2] = new GatheringLocation { Position = new Vector3(82.56047f, 44.08657f, -269.3104f), MinimumAngle = -5, MaximumAngle = 80 }; - span11[2] = new GatheringLocation + index2++; + span20[index2] = new GatheringLocation { Position = new Vector3(98.20293f, 43.59855f, -299.3164f), MinimumAngle = 95, @@ -5062,15 +5938,18 @@ public static class AssemblyGatheringLocationLoader }; obj9.Locations = list20; reference14 = obj9; - ref GatheringNode reference15 = ref span10[1]; + num3++; + ref GatheringNode reference15 = ref span19[num3]; GatheringNode obj10 = new GatheringNode { DataId = 32133u }; - num3 = 1; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new GatheringLocation + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span21[num4] = new GatheringLocation { Position = new Vector3(82.94646f, 42.55737f, -292.9016f), MinimumAngle = 105, @@ -5080,21 +5959,25 @@ public static class AssemblyGatheringLocationLoader reference15 = obj10; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - ref GatheringNodeGroup reference16 = ref span7[2]; + num++; + ref GatheringNodeGroup reference16 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 2; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span12 = CollectionsMarshal.AsSpan(list22); - ref GatheringNode reference17 = ref span12[0]; + num3 = 2; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref GatheringNode reference17 = ref span22[num2]; GatheringNode obj11 = new GatheringNode { DataId = 32129u }; - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation + num4 = 1; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new GatheringLocation { Position = new Vector3(240.5221f, 43.60987f, -301.7685f), MinimumAngle = 155, @@ -5102,28 +5985,32 @@ public static class AssemblyGatheringLocationLoader }; obj11.Locations = list23; reference17 = obj11; - ref GatheringNode reference18 = ref span12[1]; + num2++; + ref GatheringNode reference18 = ref span22[num2]; GatheringNode obj12 = new GatheringNode { DataId = 32130u }; - num3 = 3; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - Span span13 = CollectionsMarshal.AsSpan(list24); - span13[0] = new GatheringLocation + index2 = 3; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span24[num4] = new GatheringLocation { Position = new Vector3(265.4354f, 43.19557f, -283.7873f), MinimumAngle = -155, MaximumAngle = -15 }; - span13[1] = new GatheringLocation + num4++; + span24[num4] = new GatheringLocation { Position = new Vector3(246.9251f, 43.54385f, -296.2532f), MinimumAngle = 170, MaximumAngle = 225 }; - span13[2] = new GatheringLocation + num4++; + span24[num4] = new GatheringLocation { Position = new Vector3(213.1443f, 43.26488f, -308.4924f), MinimumAngle = 110, @@ -5139,12 +6026,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "liza"; gatheringRoot3.Author = list25; - num = 1; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 613) + index = 1; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + span26[num] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -5157,35 +6048,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span14 = CollectionsMarshal.AsSpan(list27); - ref GatheringNodeGroup reference19 = ref span14[0]; + Span span27 = CollectionsMarshal.AsSpan(list27); + index = 0; + ref GatheringNodeGroup reference19 = ref span27[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span15 = CollectionsMarshal.AsSpan(list28); - ref GatheringNode reference20 = ref span15[0]; + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + ref GatheringNode reference20 = ref span28[num3]; GatheringNode obj13 = new GatheringNode { DataId = 32140u }; - num3 = 3; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span16 = CollectionsMarshal.AsSpan(list29); - span16[0] = new GatheringLocation + num4 = 3; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new GatheringLocation { Position = new Vector3(210.5032f, 28.51213f, 718.0732f), MinimumAngle = 210, MaximumAngle = 325 }; - span16[1] = new GatheringLocation + index2++; + span29[index2] = new GatheringLocation { Position = new Vector3(202.0474f, 30.18633f, 700.0951f), MinimumAngle = 160, MaximumAngle = 295 }; - span16[2] = new GatheringLocation + index2++; + span29[index2] = new GatheringLocation { Position = new Vector3(195.6331f, 33.43727f, 695.2228f), MinimumAngle = 150, @@ -5193,15 +6089,18 @@ public static class AssemblyGatheringLocationLoader }; obj13.Locations = list29; reference20 = obj13; - ref GatheringNode reference21 = ref span15[1]; + num3++; + ref GatheringNode reference21 = ref span28[num3]; GatheringNode obj14 = new GatheringNode { DataId = 32139u }; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span30[num4] = new GatheringLocation { Position = new Vector3(208.3533f, 28.65312f, 706.8864f), MinimumAngle = 180, @@ -5211,21 +6110,25 @@ public static class AssemblyGatheringLocationLoader reference21 = obj14; gatheringNodeGroup7.Nodes = list28; reference19 = gatheringNodeGroup7; - ref GatheringNodeGroup reference22 = ref span14[1]; + index++; + ref GatheringNodeGroup reference22 = ref span27[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span17 = CollectionsMarshal.AsSpan(list31); - ref GatheringNode reference23 = ref span17[0]; + num3 = 2; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref GatheringNode reference23 = ref span31[num2]; GatheringNode obj15 = new GatheringNode { DataId = 32135u }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation + num4 = 1; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new GatheringLocation { Position = new Vector3(67.65472f, 25.89518f, 652.348f), MinimumAngle = -105, @@ -5233,28 +6136,32 @@ public static class AssemblyGatheringLocationLoader }; obj15.Locations = list32; reference23 = obj15; - ref GatheringNode reference24 = ref span17[1]; + num2++; + ref GatheringNode reference24 = ref span31[num2]; GatheringNode obj16 = new GatheringNode { DataId = 32136u }; - num3 = 3; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span18 = CollectionsMarshal.AsSpan(list33); - span18[0] = new GatheringLocation + index2 = 3; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span33[num4] = new GatheringLocation { Position = new Vector3(41.55281f, 27.65364f, 654.9735f), MinimumAngle = -115, MaximumAngle = 35 }; - span18[1] = new GatheringLocation + num4++; + span33[num4] = new GatheringLocation { Position = new Vector3(52.98101f, 27.03981f, 652.5334f), MinimumAngle = -45, MaximumAngle = 55 }; - span18[2] = new GatheringLocation + num4++; + span33[num4] = new GatheringLocation { Position = new Vector3(71.80375f, 26.55341f, 644.8627f), MinimumAngle = 205, @@ -5264,21 +6171,25 @@ public static class AssemblyGatheringLocationLoader reference24 = obj16; gatheringNodeGroup8.Nodes = list31; reference22 = gatheringNodeGroup8; - ref GatheringNodeGroup reference25 = ref span14[2]; + index++; + ref GatheringNodeGroup reference25 = ref span27[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span19 = CollectionsMarshal.AsSpan(list34); - ref GatheringNode reference26 = ref span19[0]; + Span span34 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + ref GatheringNode reference26 = ref span34[num3]; GatheringNode obj17 = new GatheringNode { DataId = 32137u }; - num3 = 1; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = new GatheringLocation + num4 = 1; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new GatheringLocation { Position = new Vector3(136.1673f, 35.7457f, 802.5483f), MinimumAngle = 175, @@ -5286,28 +6197,32 @@ public static class AssemblyGatheringLocationLoader }; obj17.Locations = list35; reference26 = obj17; - ref GatheringNode reference27 = ref span19[1]; + num3++; + ref GatheringNode reference27 = ref span34[num3]; GatheringNode obj18 = new GatheringNode { DataId = 32138u }; - num3 = 3; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span20 = CollectionsMarshal.AsSpan(list36); - span20[0] = new GatheringLocation + index2 = 3; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span36[num4] = new GatheringLocation { Position = new Vector3(120.3011f, 33.62519f, 797.1313f), MinimumAngle = 100, MaximumAngle = 215 }; - span20[1] = new GatheringLocation + num4++; + span36[num4] = new GatheringLocation { Position = new Vector3(137.5746f, 35.89635f, 805.4796f), MinimumAngle = 195, MaximumAngle = 325 }; - span20[2] = new GatheringLocation + num4++; + span36[num4] = new GatheringLocation { Position = new Vector3(136.7552f, 38.41375f, 817.2667f), MinimumAngle = 215, @@ -5320,51 +6235,60 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list27; AddLocation(487, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + index = 1; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + span37[num] = "liza"; gatheringRoot4.Author = list37; num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 614) + Span span38 = CollectionsMarshal.AsSpan(list38); + index = 0; + span38[index] = new QuestStep(EInteractionType.None, null, null, 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; gatheringRoot4.Steps = list38; - num = 3; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span21 = CollectionsMarshal.AsSpan(list39); - ref GatheringNodeGroup reference28 = ref span21[0]; + index = 3; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + Span span39 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref GatheringNodeGroup reference28 = ref span39[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span22 = CollectionsMarshal.AsSpan(list40); - ref GatheringNode reference29 = ref span22[0]; + num3 = 2; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref GatheringNode reference29 = ref span40[num2]; GatheringNode obj19 = new GatheringNode { DataId = 32144u }; - num3 = 3; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - Span span23 = CollectionsMarshal.AsSpan(list41); - span23[0] = new GatheringLocation + num4 = 3; + List list41 = new List(num4); + CollectionsMarshal.SetCount(list41, num4); + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new GatheringLocation { Position = new Vector3(407.4102f, 68.66914f, 19.0117f), MinimumAngle = 105, MaximumAngle = 255 }; - span23[1] = new GatheringLocation + index2++; + span41[index2] = new GatheringLocation { Position = new Vector3(376.4243f, 61.81466f, 5.657309f), MinimumAngle = 170, MaximumAngle = 275 }; - span23[2] = new GatheringLocation + index2++; + span41[index2] = new GatheringLocation { Position = new Vector3(441.2355f, 75.06916f, 17.49573f), MinimumAngle = 110, @@ -5372,15 +6296,18 @@ public static class AssemblyGatheringLocationLoader }; obj19.Locations = list41; reference29 = obj19; - ref GatheringNode reference30 = ref span22[1]; + num2++; + ref GatheringNode reference30 = ref span40[num2]; GatheringNode obj20 = new GatheringNode { DataId = 32143u }; - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span42[num4] = new GatheringLocation { Position = new Vector3(417.9466f, 70.24178f, 19.50875f), MinimumAngle = 140, @@ -5392,32 +6319,37 @@ public static class AssemblyGatheringLocationLoader reference30 = obj20; gatheringNodeGroup10.Nodes = list40; reference28 = gatheringNodeGroup10; - ref GatheringNodeGroup reference31 = ref span21[1]; + num++; + ref GatheringNodeGroup reference31 = ref span39[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span24 = CollectionsMarshal.AsSpan(list43); - ref GatheringNode reference32 = ref span24[0]; + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + ref GatheringNode reference32 = ref span43[num3]; GatheringNode obj21 = new GatheringNode { DataId = 32142u }; - num3 = 3; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span25 = CollectionsMarshal.AsSpan(list44); - span25[0] = new GatheringLocation + num4 = 3; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new GatheringLocation { Position = new Vector3(606.259f, 93.63981f, 85.09741f), MinimumAngle = 65, MaximumAngle = 185 }; - span25[1] = new GatheringLocation + index2++; + span44[index2] = new GatheringLocation { Position = new Vector3(594.0188f, 87.54358f, 51.05505f) }; - span25[2] = new GatheringLocation + index2++; + span44[index2] = new GatheringLocation { Position = new Vector3(576.0488f, 91.74075f, 114.4922f), MinimumAngle = 75, @@ -5425,15 +6357,18 @@ public static class AssemblyGatheringLocationLoader }; obj21.Locations = list44; reference32 = obj21; - ref GatheringNode reference33 = ref span24[1]; + num3++; + ref GatheringNode reference33 = ref span43[num3]; GatheringNode obj22 = new GatheringNode { DataId = 32141u }; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num4 = 0; + span45[num4] = new GatheringLocation { Position = new Vector3(608.4475f, 94.5528f, 80.633f), MinimumAngle = 45, @@ -5443,34 +6378,39 @@ public static class AssemblyGatheringLocationLoader reference33 = obj22; gatheringNodeGroup11.Nodes = list43; reference31 = gatheringNodeGroup11; - ref GatheringNodeGroup reference34 = ref span21[2]; + num++; + ref GatheringNodeGroup reference34 = ref span39[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 2; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - Span span26 = CollectionsMarshal.AsSpan(list46); - ref GatheringNode reference35 = ref span26[0]; + num3 = 2; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + ref GatheringNode reference35 = ref span46[num2]; GatheringNode obj23 = new GatheringNode { DataId = 32146u }; - num3 = 3; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - Span span27 = CollectionsMarshal.AsSpan(list47); - span27[0] = new GatheringLocation + num4 = 3; + List list47 = new List(num4); + CollectionsMarshal.SetCount(list47, num4); + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new GatheringLocation { Position = new Vector3(519.749f, 46.5653f, -59.9632f), MinimumAngle = 25, MaximumAngle = 125 }; - span27[1] = new GatheringLocation + index2++; + span47[index2] = new GatheringLocation { Position = new Vector3(532.2807f, 41.75984f, -85.99076f), MinimumAngle = 55, MaximumAngle = 190 }; - span27[2] = new GatheringLocation + index2++; + span47[index2] = new GatheringLocation { Position = new Vector3(519.0377f, 44.42293f, -67.19048f), MinimumAngle = 30, @@ -5478,15 +6418,18 @@ public static class AssemblyGatheringLocationLoader }; obj23.Locations = list47; reference35 = obj23; - ref GatheringNode reference36 = ref span26[1]; + num2++; + ref GatheringNode reference36 = ref span46[num2]; GatheringNode obj24 = new GatheringNode { DataId = 32145u }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span48[num4] = new GatheringLocation { Position = new Vector3(520.0951f, 43.35083f, -70.45672f), MinimumAngle = 40, @@ -5502,12 +6445,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "liza"; gatheringRoot5.Author = list49; - num = 1; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.None, null, null, 620) + index = 1; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + span50[num] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -5515,22 +6462,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span28 = CollectionsMarshal.AsSpan(list51); - ref GatheringNodeGroup reference37 = ref span28[0]; + Span span51 = CollectionsMarshal.AsSpan(list51); + index = 0; + ref GatheringNodeGroup reference37 = ref span51[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span29 = CollectionsMarshal.AsSpan(list52); - ref GatheringNode reference38 = ref span29[0]; + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + ref GatheringNode reference38 = ref span52[num3]; GatheringNode obj25 = new GatheringNode { DataId = 32147u }; - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new GatheringLocation + num4 = 1; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new GatheringLocation { Position = new Vector3(112.743f, 115.1324f, -511.142f), MinimumAngle = -165, @@ -5538,28 +6489,32 @@ public static class AssemblyGatheringLocationLoader }; obj25.Locations = list53; reference38 = obj25; - ref GatheringNode reference39 = ref span29[1]; + num3++; + ref GatheringNode reference39 = ref span52[num3]; GatheringNode obj26 = new GatheringNode { DataId = 32148u }; - num3 = 3; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span30 = CollectionsMarshal.AsSpan(list54); - span30[0] = new GatheringLocation + index2 = 3; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span54[num4] = new GatheringLocation { Position = new Vector3(101.6789f, 114.9711f, -506.4506f), MinimumAngle = 20, MaximumAngle = 225 }; - span30[1] = new GatheringLocation + num4++; + span54[num4] = new GatheringLocation { Position = new Vector3(122.53f, 116.4095f, -533.6536f), MinimumAngle = -80, MaximumAngle = 75 }; - span30[2] = new GatheringLocation + num4++; + span54[num4] = new GatheringLocation { Position = new Vector3(108.0162f, 115.2875f, -509.5858f), MinimumAngle = -20, @@ -5569,34 +6524,39 @@ public static class AssemblyGatheringLocationLoader reference39 = obj26; gatheringNodeGroup13.Nodes = list52; reference37 = gatheringNodeGroup13; - ref GatheringNodeGroup reference40 = ref span28[1]; + index++; + ref GatheringNodeGroup reference40 = ref span51[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span31 = CollectionsMarshal.AsSpan(list55); - ref GatheringNode reference41 = ref span31[0]; + num3 = 2; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + ref GatheringNode reference41 = ref span55[num2]; GatheringNode obj27 = new GatheringNode { DataId = 32152u }; - num3 = 3; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - Span span32 = CollectionsMarshal.AsSpan(list56); - span32[0] = new GatheringLocation + num4 = 3; + List list56 = new List(num4); + CollectionsMarshal.SetCount(list56, num4); + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new GatheringLocation { Position = new Vector3(-6.542124f, 113.9997f, -406.9197f), MinimumAngle = 80, MaximumAngle = 150 }; - span32[1] = new GatheringLocation + index2++; + span56[index2] = new GatheringLocation { Position = new Vector3(-4.06374f, 113.4698f, -413.3034f), MinimumAngle = 80, MaximumAngle = 200 }; - span32[2] = new GatheringLocation + index2++; + span56[index2] = new GatheringLocation { Position = new Vector3(-13.96204f, 113.9696f, -383.4135f), MinimumAngle = 45, @@ -5604,15 +6564,18 @@ public static class AssemblyGatheringLocationLoader }; obj27.Locations = list56; reference41 = obj27; - ref GatheringNode reference42 = ref span31[1]; + num2++; + ref GatheringNode reference42 = ref span55[num2]; GatheringNode obj28 = new GatheringNode { DataId = 32151u }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = new GatheringLocation + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span57[num4] = new GatheringLocation { Position = new Vector3(-11.21539f, 114.1222f, -392.7825f), MinimumAngle = 70, @@ -5622,21 +6585,25 @@ public static class AssemblyGatheringLocationLoader reference42 = obj28; gatheringNodeGroup14.Nodes = list55; reference40 = gatheringNodeGroup14; - ref GatheringNodeGroup reference43 = ref span28[2]; + index++; + ref GatheringNodeGroup reference43 = ref span51[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 2; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span33 = CollectionsMarshal.AsSpan(list58); - ref GatheringNode reference44 = ref span33[0]; + Span span58 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + ref GatheringNode reference44 = ref span58[num3]; GatheringNode obj29 = new GatheringNode { DataId = 32149u }; - num3 = 1; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = new GatheringLocation + num4 = 1; + List list59 = new List(num4); + CollectionsMarshal.SetCount(list59, num4); + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new GatheringLocation { Position = new Vector3(167.207f, 137.3464f, -336.0433f), MinimumAngle = 85, @@ -5644,28 +6611,32 @@ public static class AssemblyGatheringLocationLoader }; obj29.Locations = list59; reference44 = obj29; - ref GatheringNode reference45 = ref span33[1]; + num3++; + ref GatheringNode reference45 = ref span58[num3]; GatheringNode obj30 = new GatheringNode { DataId = 32150u }; - num3 = 3; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span34 = CollectionsMarshal.AsSpan(list60); - span34[0] = new GatheringLocation + index2 = 3; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span60[num4] = new GatheringLocation { Position = new Vector3(176.9339f, 138.3656f, -335.729f), MinimumAngle = 115, MaximumAngle = 220 }; - span34[1] = new GatheringLocation + num4++; + span60[num4] = new GatheringLocation { Position = new Vector3(182.5719f, 138.795f, -333.3691f), MinimumAngle = 195, MaximumAngle = 290 }; - span34[2] = new GatheringLocation + num4++; + span60[num4] = new GatheringLocation { Position = new Vector3(198.0379f, 136.6125f, -337.0126f), MinimumAngle = 60, @@ -5678,64 +6649,76 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list51; AddLocation(489, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + index = 1; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num = 0; + span61[num] = "liza"; gatheringRoot6.Author = list61; num = 2; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span35 = CollectionsMarshal.AsSpan(list62); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + Span span62 = CollectionsMarshal.AsSpan(list62); + index = 0; + span62[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span35[1] = new QuestStep(EInteractionType.None, null, null, 613); + index++; + span62[index] = new QuestStep(EInteractionType.None, null, null, 613); gatheringRoot6.Steps = list62; - num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span36 = CollectionsMarshal.AsSpan(list63); - ref GatheringNodeGroup reference46 = ref span36[0]; + index = 3; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + Span span63 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref GatheringNodeGroup reference46 = ref span63[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 2; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span37 = CollectionsMarshal.AsSpan(list64); - ref GatheringNode reference47 = ref span37[0]; + num3 = 2; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + ref GatheringNode reference47 = ref span64[num2]; GatheringNode obj31 = new GatheringNode { DataId = 32153u }; - num3 = 1; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = new GatheringLocation + num4 = 1; + List list65 = new List(num4); + CollectionsMarshal.SetCount(list65, num4); + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new GatheringLocation { Position = new Vector3(-373.2205f, -136.6522f, -274.8914f) }; obj31.Locations = list65; reference47 = obj31; - ref GatheringNode reference48 = ref span37[1]; + num2++; + ref GatheringNode reference48 = ref span64[num2]; GatheringNode obj32 = new GatheringNode { DataId = 32154u }; - num3 = 3; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span38 = CollectionsMarshal.AsSpan(list66); - span38[0] = new GatheringLocation + index2 = 3; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num4 = 0; + span66[num4] = new GatheringLocation { Position = new Vector3(-448.4877f, -116.7225f, -302.5894f) }; - span38[1] = new GatheringLocation + num4++; + span66[num4] = new GatheringLocation { Position = new Vector3(-367.8707f, -141.2844f, -234.9824f) }; - span38[2] = new GatheringLocation + num4++; + span66[num4] = new GatheringLocation { Position = new Vector3(-410.8549f, -118.3526f, -327.6413f) }; @@ -5743,44 +6726,52 @@ public static class AssemblyGatheringLocationLoader reference48 = obj32; gatheringNodeGroup16.Nodes = list64; reference46 = gatheringNodeGroup16; - ref GatheringNodeGroup reference49 = ref span36[1]; + num++; + ref GatheringNodeGroup reference49 = ref span63[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 2; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span39 = CollectionsMarshal.AsSpan(list67); - ref GatheringNode reference50 = ref span39[0]; + Span span67 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + ref GatheringNode reference50 = ref span67[num3]; GatheringNode obj33 = new GatheringNode { DataId = 32158u }; - num3 = 3; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - Span span40 = CollectionsMarshal.AsSpan(list68); - span40[0] = new GatheringLocation + num4 = 3; + List list68 = new List(num4); + CollectionsMarshal.SetCount(list68, num4); + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new GatheringLocation { Position = new Vector3(-541.3218f, -110.9725f, -162.0661f) }; - span40[1] = new GatheringLocation + index2++; + span68[index2] = new GatheringLocation { Position = new Vector3(-541.0571f, -101.0088f, -238.4313f) }; - span40[2] = new GatheringLocation + index2++; + span68[index2] = new GatheringLocation { Position = new Vector3(-557.3869f, -91.38704f, -232.6365f) }; obj33.Locations = list68; reference50 = obj33; - ref GatheringNode reference51 = ref span39[1]; + num3++; + ref GatheringNode reference51 = ref span67[num3]; GatheringNode obj34 = new GatheringNode { DataId = 32157u }; - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = new GatheringLocation + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num4 = 0; + span69[num4] = new GatheringLocation { Position = new Vector3(-527.4707f, -125.4386f, -165.366f) }; @@ -5788,44 +6779,52 @@ public static class AssemblyGatheringLocationLoader reference51 = obj34; gatheringNodeGroup17.Nodes = list67; reference49 = gatheringNodeGroup17; - ref GatheringNodeGroup reference52 = ref span36[2]; + num++; + ref GatheringNodeGroup reference52 = ref span63[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num2 = 2; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span41 = CollectionsMarshal.AsSpan(list70); - ref GatheringNode reference53 = ref span41[0]; + num3 = 2; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref GatheringNode reference53 = ref span70[num2]; GatheringNode obj35 = new GatheringNode { DataId = 32155u }; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new GatheringLocation + num4 = 1; + List list71 = new List(num4); + CollectionsMarshal.SetCount(list71, num4); + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new GatheringLocation { Position = new Vector3(-460.3799f, -154.5827f, -110.9484f) }; obj35.Locations = list71; reference53 = obj35; - ref GatheringNode reference54 = ref span41[1]; + num2++; + ref GatheringNode reference54 = ref span70[num2]; GatheringNode obj36 = new GatheringNode { DataId = 32156u }; - num3 = 3; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span42 = CollectionsMarshal.AsSpan(list72); - span42[0] = new GatheringLocation + index2 = 3; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num4 = 0; + span72[num4] = new GatheringLocation { Position = new Vector3(-399.089f, -145.1425f, -6.001478f) }; - span42[1] = new GatheringLocation + num4++; + span72[num4] = new GatheringLocation { Position = new Vector3(-474.2804f, -142.6447f, -92.2213f) }; - span42[2] = new GatheringLocation + num4++; + span72[num4] = new GatheringLocation { Position = new Vector3(-474.9154f, -132.8651f, -73.47042f) }; @@ -5839,12 +6838,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "liza"; + Span span73 = CollectionsMarshal.AsSpan(list73); + index = 0; + span73[index] = "liza"; gatheringRoot7.Author = list73; - num = 1; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.None, null, null, 614) + index = 1; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + Span span74 = CollectionsMarshal.AsSpan(list74); + num = 0; + span74[num] = new QuestStep(EInteractionType.None, null, null, 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; @@ -5852,35 +6855,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span43 = CollectionsMarshal.AsSpan(list75); - ref GatheringNodeGroup reference55 = ref span43[0]; + Span span75 = CollectionsMarshal.AsSpan(list75); + index = 0; + ref GatheringNodeGroup reference55 = ref span75[index]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span44 = CollectionsMarshal.AsSpan(list76); - ref GatheringNode reference56 = ref span44[0]; + Span span76 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + ref GatheringNode reference56 = ref span76[num3]; GatheringNode obj37 = new GatheringNode { DataId = 32160u }; - num3 = 3; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - Span span45 = CollectionsMarshal.AsSpan(list77); - span45[0] = new GatheringLocation + num4 = 3; + List list77 = new List(num4); + CollectionsMarshal.SetCount(list77, num4); + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new GatheringLocation { Position = new Vector3(708.6117f, 111.2374f, -117.7716f), MinimumAngle = -65, MaximumAngle = 45 }; - span45[1] = new GatheringLocation + index2++; + span77[index2] = new GatheringLocation { Position = new Vector3(719.1514f, 103.8884f, -115.8518f), MinimumAngle = 170, MaximumAngle = 240 }; - span45[2] = new GatheringLocation + index2++; + span77[index2] = new GatheringLocation { Position = new Vector3(719.6881f, 103.6927f, -122.8691f), MinimumAngle = -85, @@ -5888,15 +6896,18 @@ public static class AssemblyGatheringLocationLoader }; obj37.Locations = list77; reference56 = obj37; - ref GatheringNode reference57 = ref span44[1]; + num3++; + ref GatheringNode reference57 = ref span76[num3]; GatheringNode obj38 = new GatheringNode { DataId = 32159u }; - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new GatheringLocation + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span78[num4] = new GatheringLocation { Position = new Vector3(728.5063f, 104.6812f, -115.4031f), MinimumAngle = 160, @@ -5906,34 +6917,39 @@ public static class AssemblyGatheringLocationLoader reference57 = obj38; gatheringNodeGroup19.Nodes = list76; reference55 = gatheringNodeGroup19; - ref GatheringNodeGroup reference58 = ref span43[1]; + index++; + ref GatheringNodeGroup reference58 = ref span75[index]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - num2 = 2; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span46 = CollectionsMarshal.AsSpan(list79); - ref GatheringNode reference59 = ref span46[0]; + num3 = 2; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + ref GatheringNode reference59 = ref span79[num2]; GatheringNode obj39 = new GatheringNode { DataId = 32162u }; - num3 = 3; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span47 = CollectionsMarshal.AsSpan(list80); - span47[0] = new GatheringLocation + num4 = 3; + List list80 = new List(num4); + CollectionsMarshal.SetCount(list80, num4); + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new GatheringLocation { Position = new Vector3(786.5566f, 127.8859f, 12.83276f), MinimumAngle = 200, MaximumAngle = 280 }; - span47[1] = new GatheringLocation + index2++; + span80[index2] = new GatheringLocation { Position = new Vector3(843.5591f, 136.583f, 25.3552f), MinimumAngle = 150, MaximumAngle = 205 }; - span47[2] = new GatheringLocation + index2++; + span80[index2] = new GatheringLocation { Position = new Vector3(822.8708f, 132.8188f, 15.71949f), MinimumAngle = 120, @@ -5941,15 +6957,18 @@ public static class AssemblyGatheringLocationLoader }; obj39.Locations = list80; reference59 = obj39; - ref GatheringNode reference60 = ref span46[1]; + num2++; + ref GatheringNode reference60 = ref span79[num2]; GatheringNode obj40 = new GatheringNode { DataId = 32161u }; - num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new GatheringLocation + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num4 = 0; + span81[num4] = new GatheringLocation { Position = new Vector3(814.1754f, 132.0118f, 22.69431f), MinimumAngle = 70, @@ -5959,21 +6978,25 @@ public static class AssemblyGatheringLocationLoader reference60 = obj40; gatheringNodeGroup20.Nodes = list79; reference58 = gatheringNodeGroup20; - ref GatheringNodeGroup reference61 = ref span43[2]; + index++; + ref GatheringNodeGroup reference61 = ref span75[index]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span48 = CollectionsMarshal.AsSpan(list82); - ref GatheringNode reference62 = ref span48[0]; + Span span82 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + ref GatheringNode reference62 = ref span82[num3]; GatheringNode obj41 = new GatheringNode { DataId = 32163u }; - num3 = 1; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = new GatheringLocation + num4 = 1; + List list83 = new List(num4); + CollectionsMarshal.SetCount(list83, num4); + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new GatheringLocation { Position = new Vector3(893.1265f, 141.6431f, -143.2574f), MinimumAngle = 25, @@ -5981,28 +7004,32 @@ public static class AssemblyGatheringLocationLoader }; obj41.Locations = list83; reference62 = obj41; - ref GatheringNode reference63 = ref span48[1]; + num3++; + ref GatheringNode reference63 = ref span82[num3]; GatheringNode obj42 = new GatheringNode { DataId = 32164u }; - num3 = 3; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - Span span49 = CollectionsMarshal.AsSpan(list84); - span49[0] = new GatheringLocation + index2 = 3; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num4 = 0; + span84[num4] = new GatheringLocation { Position = new Vector3(885.5841f, 139.7701f, -160.253f), MinimumAngle = 35, MaximumAngle = 110 }; - span49[1] = new GatheringLocation + num4++; + span84[num4] = new GatheringLocation { Position = new Vector3(894.9779f, 147.4415f, -128.2257f), MinimumAngle = 20, MaximumAngle = 190 }; - span49[2] = new GatheringLocation + num4++; + span84[num4] = new GatheringLocation { Position = new Vector3(893.0733f, 142.1001f, -140.2642f), MinimumAngle = 30, @@ -6015,51 +7042,60 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list75; AddLocation(491, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - num = 1; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "liza"; + index = 1; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + span85[num] = "liza"; gatheringRoot8.Author = list85; num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.None, null, null, 621) + Span span86 = CollectionsMarshal.AsSpan(list86); + index = 0; + span86[index] = new QuestStep(EInteractionType.None, null, null, 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; gatheringRoot8.Steps = list86; - num = 3; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span50 = CollectionsMarshal.AsSpan(list87); - ref GatheringNodeGroup reference64 = ref span50[0]; + index = 3; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + Span span87 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref GatheringNodeGroup reference64 = ref span87[num]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); - num2 = 2; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span51 = CollectionsMarshal.AsSpan(list88); - ref GatheringNode reference65 = ref span51[0]; + num3 = 2; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + ref GatheringNode reference65 = ref span88[num2]; GatheringNode obj43 = new GatheringNode { DataId = 32167u }; - num3 = 3; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - Span span52 = CollectionsMarshal.AsSpan(list89); - span52[0] = new GatheringLocation + num4 = 3; + List list89 = new List(num4); + CollectionsMarshal.SetCount(list89, num4); + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new GatheringLocation { Position = new Vector3(-569.6677f, 17.29578f, -148.952f), MinimumAngle = 175, MaximumAngle = 300 }; - span52[1] = new GatheringLocation + index2++; + span89[index2] = new GatheringLocation { Position = new Vector3(-575.41f, 18.57019f, -160.1905f), MinimumAngle = -90, MaximumAngle = 15 }; - span52[2] = new GatheringLocation + index2++; + span89[index2] = new GatheringLocation { Position = new Vector3(-569.3643f, 15.97435f, -170.2152f), MinimumAngle = 225, @@ -6067,15 +7103,18 @@ public static class AssemblyGatheringLocationLoader }; obj43.Locations = list89; reference65 = obj43; - ref GatheringNode reference66 = ref span51[1]; + num2++; + ref GatheringNode reference66 = ref span88[num2]; GatheringNode obj44 = new GatheringNode { DataId = 32166u }; - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = new GatheringLocation + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num4 = 0; + span90[num4] = new GatheringLocation { Position = new Vector3(-578.1491f, 20.07928f, -153.1853f), MinimumAngle = 205, @@ -6085,21 +7124,25 @@ public static class AssemblyGatheringLocationLoader reference66 = obj44; gatheringNodeGroup22.Nodes = list88; reference64 = gatheringNodeGroup22; - ref GatheringNodeGroup reference67 = ref span50[1]; + num++; + ref GatheringNodeGroup reference67 = ref span87[num]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span53 = CollectionsMarshal.AsSpan(list91); - ref GatheringNode reference68 = ref span53[0]; + Span span91 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + ref GatheringNode reference68 = ref span91[num3]; GatheringNode obj45 = new GatheringNode { DataId = 32170u }; - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = new GatheringLocation + num4 = 1; + List list92 = new List(num4); + CollectionsMarshal.SetCount(list92, num4); + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new GatheringLocation { Position = new Vector3(-542.444f, 15.60992f, -299.645f), MinimumAngle = 245, @@ -6107,28 +7150,32 @@ public static class AssemblyGatheringLocationLoader }; obj45.Locations = list92; reference68 = obj45; - ref GatheringNode reference69 = ref span53[1]; + num3++; + ref GatheringNode reference69 = ref span91[num3]; GatheringNode obj46 = new GatheringNode { DataId = 32171u }; - num3 = 3; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - Span span54 = CollectionsMarshal.AsSpan(list93); - span54[0] = new GatheringLocation + index2 = 3; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num4 = 0; + span93[num4] = new GatheringLocation { Position = new Vector3(-540.2715f, 16.96567f, -304.0383f), MinimumAngle = 220, MaximumAngle = 350 }; - span54[1] = new GatheringLocation + num4++; + span93[num4] = new GatheringLocation { Position = new Vector3(-516.496f, 21.84032f, -346.177f), MinimumAngle = -55, MaximumAngle = 75 }; - span54[2] = new GatheringLocation + num4++; + span93[num4] = new GatheringLocation { Position = new Vector3(-507.6519f, 9.185992f, -287.0281f), MinimumAngle = 30, @@ -6138,21 +7185,25 @@ public static class AssemblyGatheringLocationLoader reference69 = obj46; gatheringNodeGroup23.Nodes = list91; reference67 = gatheringNodeGroup23; - ref GatheringNodeGroup reference70 = ref span50[2]; + num++; + ref GatheringNodeGroup reference70 = ref span87[num]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span55 = CollectionsMarshal.AsSpan(list94); - ref GatheringNode reference71 = ref span55[0]; + num3 = 2; + List list94 = new List(num3); + CollectionsMarshal.SetCount(list94, num3); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref GatheringNode reference71 = ref span94[num2]; GatheringNode obj47 = new GatheringNode { DataId = 32168u }; - num3 = 1; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new GatheringLocation + num4 = 1; + List list95 = new List(num4); + CollectionsMarshal.SetCount(list95, num4); + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new GatheringLocation { Position = new Vector3(-404.0753f, 14.02301f, -270.8308f), MinimumAngle = 195, @@ -6160,28 +7211,32 @@ public static class AssemblyGatheringLocationLoader }; obj47.Locations = list95; reference71 = obj47; - ref GatheringNode reference72 = ref span55[1]; + num2++; + ref GatheringNode reference72 = ref span94[num2]; GatheringNode obj48 = new GatheringNode { DataId = 32169u }; - num3 = 3; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - Span span56 = CollectionsMarshal.AsSpan(list96); - span56[0] = new GatheringLocation + index2 = 3; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num4 = 0; + span96[num4] = new GatheringLocation { Position = new Vector3(-393.6106f, 13.93396f, -262.3799f), MinimumAngle = 15, MaximumAngle = 130 }; - span56[1] = new GatheringLocation + num4++; + span96[num4] = new GatheringLocation { Position = new Vector3(-406.0579f, 12.16138f, -255.3292f), MinimumAngle = -145, MaximumAngle = 20 }; - span56[2] = new GatheringLocation + num4++; + span96[num4] = new GatheringLocation { Position = new Vector3(-394.2554f, 13.38954f, -275.8168f), MinimumAngle = 60, @@ -6197,12 +7252,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + Span span97 = CollectionsMarshal.AsSpan(list97); + index = 0; + span97[index] = "liza"; gatheringRoot9.Author = list97; - num = 1; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.None, null, null, 622) + index = 1; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num = 0; + span98[num] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; @@ -6210,35 +7269,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span57 = CollectionsMarshal.AsSpan(list99); - ref GatheringNodeGroup reference73 = ref span57[0]; + Span span99 = CollectionsMarshal.AsSpan(list99); + index = 0; + ref GatheringNodeGroup reference73 = ref span99[index]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span58 = CollectionsMarshal.AsSpan(list100); - ref GatheringNode reference74 = ref span58[0]; + Span span100 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + ref GatheringNode reference74 = ref span100[num3]; GatheringNode obj49 = new GatheringNode { DataId = 32176u }; - num3 = 3; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span59 = CollectionsMarshal.AsSpan(list101); - span59[0] = new GatheringLocation + num4 = 3; + List list101 = new List(num4); + CollectionsMarshal.SetCount(list101, num4); + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new GatheringLocation { Position = new Vector3(411.0592f, 2.207043f, -174.1382f), MinimumAngle = -45, MaximumAngle = 130 }; - span59[1] = new GatheringLocation + index2++; + span101[index2] = new GatheringLocation { Position = new Vector3(382.993f, 13.25345f, -207.7346f), MinimumAngle = 130, MaximumAngle = 295 }; - span59[2] = new GatheringLocation + index2++; + span101[index2] = new GatheringLocation { Position = new Vector3(361.387f, 14.51455f, -203.9765f), MinimumAngle = 90, @@ -6246,15 +7310,18 @@ public static class AssemblyGatheringLocationLoader }; obj49.Locations = list101; reference74 = obj49; - ref GatheringNode reference75 = ref span58[1]; + num3++; + ref GatheringNode reference75 = ref span100[num3]; GatheringNode obj50 = new GatheringNode { DataId = 32175u }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = new GatheringLocation + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num4 = 0; + span102[num4] = new GatheringLocation { Position = new Vector3(364.0281f, 14.81319f, -208.0434f), MinimumAngle = 65, @@ -6264,21 +7331,25 @@ public static class AssemblyGatheringLocationLoader reference75 = obj50; gatheringNodeGroup25.Nodes = list100; reference73 = gatheringNodeGroup25; - ref GatheringNodeGroup reference76 = ref span57[1]; + index++; + ref GatheringNodeGroup reference76 = ref span99[index]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num2 = 2; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - Span span60 = CollectionsMarshal.AsSpan(list103); - ref GatheringNode reference77 = ref span60[0]; + num3 = 2; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + ref GatheringNode reference77 = ref span103[num2]; GatheringNode obj51 = new GatheringNode { DataId = 32177u }; - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new GatheringLocation + num4 = 1; + List list104 = new List(num4); + CollectionsMarshal.SetCount(list104, num4); + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new GatheringLocation { Position = new Vector3(326.783f, 27.22089f, -328.1715f), MinimumAngle = -130, @@ -6286,28 +7357,32 @@ public static class AssemblyGatheringLocationLoader }; obj51.Locations = list104; reference77 = obj51; - ref GatheringNode reference78 = ref span60[1]; + num2++; + ref GatheringNode reference78 = ref span103[num2]; GatheringNode obj52 = new GatheringNode { DataId = 32178u }; - num3 = 3; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span61 = CollectionsMarshal.AsSpan(list105); - span61[0] = new GatheringLocation + index2 = 3; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num4 = 0; + span105[num4] = new GatheringLocation { Position = new Vector3(352.0781f, 33.91527f, -369.394f), MinimumAngle = -55, MaximumAngle = 110 }; - span61[1] = new GatheringLocation + num4++; + span105[num4] = new GatheringLocation { Position = new Vector3(319.4689f, 30.05529f, -341.346f), MinimumAngle = 50, MaximumAngle = 215 }; - span61[2] = new GatheringLocation + num4++; + span105[num4] = new GatheringLocation { Position = new Vector3(340.3498f, 34.56527f, -374.391f), MinimumAngle = -90, @@ -6317,21 +7392,25 @@ public static class AssemblyGatheringLocationLoader reference78 = obj52; gatheringNodeGroup26.Nodes = list103; reference76 = gatheringNodeGroup26; - ref GatheringNodeGroup reference79 = ref span57[2]; + index++; + ref GatheringNodeGroup reference79 = ref span99[index]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span62 = CollectionsMarshal.AsSpan(list106); - ref GatheringNode reference80 = ref span62[0]; + Span span106 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + ref GatheringNode reference80 = ref span106[num3]; GatheringNode obj53 = new GatheringNode { DataId = 32173u }; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new GatheringLocation + num4 = 1; + List list107 = new List(num4); + CollectionsMarshal.SetCount(list107, num4); + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new GatheringLocation { Position = new Vector3(460.0648f, 32.44811f, -382.8145f), MinimumAngle = 30, @@ -6339,28 +7418,32 @@ public static class AssemblyGatheringLocationLoader }; obj53.Locations = list107; reference80 = obj53; - ref GatheringNode reference81 = ref span62[1]; + num3++; + ref GatheringNode reference81 = ref span106[num3]; GatheringNode obj54 = new GatheringNode { DataId = 32174u }; - num3 = 3; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - Span span63 = CollectionsMarshal.AsSpan(list108); - span63[0] = new GatheringLocation + index2 = 3; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num4 = 0; + span108[num4] = new GatheringLocation { Position = new Vector3(488.255f, 26.08804f, -365.4641f), MinimumAngle = 0, MaximumAngle = 195 }; - span63[1] = new GatheringLocation + num4++; + span108[num4] = new GatheringLocation { Position = new Vector3(460.4979f, 30.90669f, -376.0688f), MinimumAngle = 55, MaximumAngle = 180 }; - span63[2] = new GatheringLocation + num4++; + span108[num4] = new GatheringLocation { Position = new Vector3(438.8477f, 38.51477f, -413.352f), MinimumAngle = -70, @@ -6380,12 +7463,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 612) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; @@ -6393,33 +7480,38 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref GatheringNode reference2 = ref span2[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int num3 = 0; + ref GatheringNode reference2 = ref span4[num3]; GatheringNode obj = new GatheringNode { DataId = 32193u }; - int num3 = 3; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new GatheringLocation + int num4 = 3; + List list5 = new List(num4); + CollectionsMarshal.SetCount(list5, num4); + Span span5 = CollectionsMarshal.AsSpan(list5); + int num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(-249.9619f, 61.05618f, -604.3008f) }; - span3[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-238.5267f, 60.51727f, -560.746f), MinimumAngle = -25, MaximumAngle = 120 }; - span3[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(-263.4823f, 61.9943f, -566.3988f), MinimumAngle = 115, @@ -6427,15 +7519,18 @@ public static class AssemblyGatheringLocationLoader }; obj.Locations = list5; reference2 = obj; - ref GatheringNode reference3 = ref span2[1]; + num3++; + ref GatheringNode reference3 = ref span4[num3]; GatheringNode obj2 = new GatheringNode { DataId = 32192u }; - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation + num5 = 1; + List list6 = new List(num5); + CollectionsMarshal.SetCount(list6, num5); + Span span6 = CollectionsMarshal.AsSpan(list6); + num4 = 0; + span6[num4] = new GatheringLocation { Position = new Vector3(-261.7163f, 61.86325f, -574.8586f), MinimumAngle = -140, @@ -6445,34 +7540,39 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference4 = ref span[1]; + index++; + ref GatheringNodeGroup reference4 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span4 = CollectionsMarshal.AsSpan(list7); - ref GatheringNode reference5 = ref span4[0]; + num3 = 2; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref GatheringNode reference5 = ref span7[num2]; GatheringNode obj3 = new GatheringNode { DataId = 32189u }; - num3 = 3; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span5 = CollectionsMarshal.AsSpan(list8); - span5[0] = new GatheringLocation + num4 = 3; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + Span span8 = CollectionsMarshal.AsSpan(list8); + num5 = 0; + span8[num5] = new GatheringLocation { Position = new Vector3(-260.6172f, 70.60548f, -685.7728f), MinimumAngle = 55, MaximumAngle = 265 }; - span5[1] = new GatheringLocation + num5++; + span8[num5] = new GatheringLocation { Position = new Vector3(-293.3862f, 75.88585f, -675.9405f), MinimumAngle = -235, MaximumAngle = 10 }; - span5[2] = new GatheringLocation + num5++; + span8[num5] = new GatheringLocation { Position = new Vector3(-289.601f, 73.41101f, -659.3271f), MinimumAngle = 135, @@ -6480,15 +7580,18 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - ref GatheringNode reference6 = ref span4[1]; + num2++; + ref GatheringNode reference6 = ref span7[num2]; GatheringNode obj4 = new GatheringNode { DataId = 32188u }; - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation + num5 = 1; + List list9 = new List(num5); + CollectionsMarshal.SetCount(list9, num5); + Span span9 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span9[num4] = new GatheringLocation { Position = new Vector3(-267.9963f, 75.16626f, -708.2614f), MinimumAngle = 150, @@ -6498,46 +7601,54 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - ref GatheringNodeGroup reference7 = ref span[2]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref GatheringNode reference8 = ref span6[0]; + Span span10 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + ref GatheringNode reference8 = ref span10[num3]; GatheringNode obj5 = new GatheringNode { DataId = 32191u }; - num3 = 3; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span7 = CollectionsMarshal.AsSpan(list11); - span7[0] = new GatheringLocation + num4 = 3; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + Span span11 = CollectionsMarshal.AsSpan(list11); + num5 = 0; + span11[num5] = new GatheringLocation { Position = new Vector3(-97.48006f, 61.31205f, -668.7775f), MinimumAngle = -50, MaximumAngle = 30 }; - span7[1] = new GatheringLocation + num5++; + span11[num5] = new GatheringLocation { Position = new Vector3(-36.55207f, 61.9393f, -606.5457f) }; - span7[2] = new GatheringLocation + num5++; + span11[num5] = new GatheringLocation { Position = new Vector3(-79.96028f, 61.16011f, -625.305f) }; obj5.Locations = list11; reference8 = obj5; - ref GatheringNode reference9 = ref span6[1]; + num3++; + ref GatheringNode reference9 = ref span10[num3]; GatheringNode obj6 = new GatheringNode { DataId = 32190u }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation + num5 = 1; + List list12 = new List(num5); + CollectionsMarshal.SetCount(list12, num5); + Span span12 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span12[num4] = new GatheringLocation { Position = new Vector3(-88.68313f, 61.06887f, -653.9121f) }; @@ -6548,38 +7659,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(505, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + span13[num] = "liza"; gatheringRoot2.Author = list13; num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 613) + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; gatheringRoot2.Steps = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span8 = CollectionsMarshal.AsSpan(list15); - ref GatheringNodeGroup reference10 = ref span8[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref GatheringNodeGroup reference10 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 2; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span9 = CollectionsMarshal.AsSpan(list16); - ref GatheringNode reference11 = ref span9[0]; + num3 = 2; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + ref GatheringNode reference11 = ref span16[num2]; GatheringNode obj7 = new GatheringNode { DataId = 32205u }; - num3 = 1; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = new GatheringLocation + num4 = 1; + List list17 = new List(num4); + CollectionsMarshal.SetCount(list17, num4); + Span span17 = CollectionsMarshal.AsSpan(list17); + num5 = 0; + span17[num5] = new GatheringLocation { Position = new Vector3(58.18178f, 2.700867f, -778.6965f), MinimumAngle = 45, @@ -6587,15 +7706,18 @@ public static class AssemblyGatheringLocationLoader }; obj7.Locations = list17; reference11 = obj7; - ref GatheringNode reference12 = ref span9[1]; + num2++; + ref GatheringNode reference12 = ref span16[num2]; GatheringNode obj8 = new GatheringNode { DataId = 32204u }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation + num5 = 1; + List list18 = new List(num5); + CollectionsMarshal.SetCount(list18, num5); + Span span18 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span18[num4] = new GatheringLocation { Position = new Vector3(72.41409f, 3.151178f, -776.8186f), MinimumAngle = 80, @@ -6605,21 +7727,25 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - ref GatheringNodeGroup reference13 = ref span8[1]; + num++; + ref GatheringNodeGroup reference13 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span10 = CollectionsMarshal.AsSpan(list19); - ref GatheringNode reference14 = ref span10[0]; + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + ref GatheringNode reference14 = ref span19[num3]; GatheringNode obj9 = new GatheringNode { DataId = 32200u }; - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = new GatheringLocation + num4 = 1; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + Span span20 = CollectionsMarshal.AsSpan(list20); + num5 = 0; + span20[num5] = new GatheringLocation { Position = new Vector3(-69.36879f, 3.296089f, -821.5594f), MinimumAngle = -120, @@ -6627,28 +7753,32 @@ public static class AssemblyGatheringLocationLoader }; obj9.Locations = list20; reference14 = obj9; - ref GatheringNode reference15 = ref span10[1]; + num3++; + ref GatheringNode reference15 = ref span19[num3]; GatheringNode obj10 = new GatheringNode { DataId = 32201u }; - num3 = 3; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - Span span11 = CollectionsMarshal.AsSpan(list21); - span11[0] = new GatheringLocation + num5 = 3; + List list21 = new List(num5); + CollectionsMarshal.SetCount(list21, num5); + Span span21 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span21[num4] = new GatheringLocation { Position = new Vector3(-69.29061f, 3.013922f, -803.5723f), MinimumAngle = 30, MaximumAngle = 185 }; - span11[1] = new GatheringLocation + num4++; + span21[num4] = new GatheringLocation { Position = new Vector3(-58.63464f, 2.637568f, -819.6691f), MinimumAngle = 0, MaximumAngle = 195 }; - span11[2] = new GatheringLocation + num4++; + span21[num4] = new GatheringLocation { Position = new Vector3(-58.09113f, 3.463745f, -787.4418f) }; @@ -6656,21 +7786,25 @@ public static class AssemblyGatheringLocationLoader reference15 = obj10; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - ref GatheringNodeGroup reference16 = ref span8[2]; + num++; + ref GatheringNodeGroup reference16 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 2; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span12 = CollectionsMarshal.AsSpan(list22); - ref GatheringNode reference17 = ref span12[0]; + num3 = 2; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref GatheringNode reference17 = ref span22[num2]; GatheringNode obj11 = new GatheringNode { DataId = 32202u }; - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation + num4 = 1; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + Span span23 = CollectionsMarshal.AsSpan(list23); + num5 = 0; + span23[num5] = new GatheringLocation { Position = new Vector3(-73.56532f, 2.819433f, -633.0066f), MinimumAngle = 195, @@ -6678,28 +7812,32 @@ public static class AssemblyGatheringLocationLoader }; obj11.Locations = list23; reference17 = obj11; - ref GatheringNode reference18 = ref span12[1]; + num2++; + ref GatheringNode reference18 = ref span22[num2]; GatheringNode obj12 = new GatheringNode { DataId = 32203u }; - num3 = 3; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - Span span13 = CollectionsMarshal.AsSpan(list24); - span13[0] = new GatheringLocation + num5 = 3; + List list24 = new List(num5); + CollectionsMarshal.SetCount(list24, num5); + Span span24 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span24[num4] = new GatheringLocation { Position = new Vector3(-22.5884f, 3.535999f, -617.6862f), MinimumAngle = 35, MaximumAngle = 225 }; - span13[1] = new GatheringLocation + num4++; + span24[num4] = new GatheringLocation { Position = new Vector3(-84.8622f, 3.222104f, -642.1901f), MinimumAngle = 75, MaximumAngle = 305 }; - span13[2] = new GatheringLocation + num4++; + span24[num4] = new GatheringLocation { Position = new Vector3(-74.18819f, 2.731044f, -645.1037f), MinimumAngle = 20, @@ -6715,12 +7853,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "liza"; gatheringRoot3.Author = list25; - num = 1; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 614) + index = 1; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + span26[num] = new QuestStep(EInteractionType.None, null, null, 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; @@ -6728,33 +7870,38 @@ public static class AssemblyGatheringLocationLoader num = 3; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span14 = CollectionsMarshal.AsSpan(list27); - ref GatheringNodeGroup reference19 = ref span14[0]; + Span span27 = CollectionsMarshal.AsSpan(list27); + index = 0; + ref GatheringNodeGroup reference19 = ref span27[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span15 = CollectionsMarshal.AsSpan(list28); - ref GatheringNode reference20 = ref span15[0]; + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + ref GatheringNode reference20 = ref span28[num3]; GatheringNode obj13 = new GatheringNode { DataId = 32209u }; - num3 = 3; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span16 = CollectionsMarshal.AsSpan(list29); - span16[0] = new GatheringLocation + num4 = 3; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + Span span29 = CollectionsMarshal.AsSpan(list29); + num5 = 0; + span29[num5] = new GatheringLocation { Position = new Vector3(631.2573f, 127.0901f, -332.0291f), MinimumAngle = 155, MaximumAngle = 300 }; - span16[1] = new GatheringLocation + num5++; + span29[num5] = new GatheringLocation { Position = new Vector3(622.622f, 131.7365f, -383.0027f) }; - span16[2] = new GatheringLocation + num5++; + span29[num5] = new GatheringLocation { Position = new Vector3(652.4154f, 136.6543f, -419.1716f), MinimumAngle = -25, @@ -6762,15 +7909,18 @@ public static class AssemblyGatheringLocationLoader }; obj13.Locations = list29; reference20 = obj13; - ref GatheringNode reference21 = ref span15[1]; + num3++; + ref GatheringNode reference21 = ref span28[num3]; GatheringNode obj14 = new GatheringNode { DataId = 32208u }; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation + num5 = 1; + List list30 = new List(num5); + CollectionsMarshal.SetCount(list30, num5); + Span span30 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span30[num4] = new GatheringLocation { Position = new Vector3(629.0482f, 138.9971f, -423.2108f), MinimumAngle = 240, @@ -6780,28 +7930,32 @@ public static class AssemblyGatheringLocationLoader reference21 = obj14; gatheringNodeGroup7.Nodes = list28; reference19 = gatheringNodeGroup7; - ref GatheringNodeGroup reference22 = ref span14[1]; + index++; + ref GatheringNodeGroup reference22 = ref span27[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span17 = CollectionsMarshal.AsSpan(list31); - ref GatheringNode reference23 = ref span17[0]; + num3 = 2; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref GatheringNode reference23 = ref span31[num2]; GatheringNode obj15 = new GatheringNode { DataId = 32207u }; - num3 = 2; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span18 = CollectionsMarshal.AsSpan(list32); - span18[0] = new GatheringLocation + num4 = 2; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + Span span32 = CollectionsMarshal.AsSpan(list32); + num5 = 0; + span32[num5] = new GatheringLocation { Position = new Vector3(708.5831f, 127.3671f, -351.2474f), MinimumAngle = 0, MaximumAngle = 100 }; - span18[1] = new GatheringLocation + num5++; + span32[num5] = new GatheringLocation { Position = new Vector3(684.129f, 126.6719f, -335.2414f), MinimumAngle = 80, @@ -6809,15 +7963,18 @@ public static class AssemblyGatheringLocationLoader }; obj15.Locations = list32; reference23 = obj15; - ref GatheringNode reference24 = ref span17[1]; + num2++; + ref GatheringNode reference24 = ref span31[num2]; GatheringNode obj16 = new GatheringNode { DataId = 32206u }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new GatheringLocation + num5 = 1; + List list33 = new List(num5); + CollectionsMarshal.SetCount(list33, num5); + Span span33 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span33[num4] = new GatheringLocation { Position = new Vector3(705.5267f, 125.35f, -370.0978f), MinimumAngle = -35, @@ -6827,21 +7984,25 @@ public static class AssemblyGatheringLocationLoader reference24 = obj16; gatheringNodeGroup8.Nodes = list31; reference22 = gatheringNodeGroup8; - ref GatheringNodeGroup reference25 = ref span14[2]; + index++; + ref GatheringNodeGroup reference25 = ref span27[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span19 = CollectionsMarshal.AsSpan(list34); - ref GatheringNode reference26 = ref span19[0]; + Span span34 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + ref GatheringNode reference26 = ref span34[num3]; GatheringNode obj17 = new GatheringNode { DataId = 32210u }; - num3 = 1; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = new GatheringLocation + num4 = 1; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + Span span35 = CollectionsMarshal.AsSpan(list35); + num5 = 0; + span35[num5] = new GatheringLocation { Position = new Vector3(791.947f, 101.7719f, -288.1637f), MinimumAngle = 0, @@ -6849,28 +8010,32 @@ public static class AssemblyGatheringLocationLoader }; obj17.Locations = list35; reference26 = obj17; - ref GatheringNode reference27 = ref span19[1]; + num3++; + ref GatheringNode reference27 = ref span34[num3]; GatheringNode obj18 = new GatheringNode { DataId = 32211u }; - num3 = 3; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span20 = CollectionsMarshal.AsSpan(list36); - span20[0] = new GatheringLocation + num5 = 3; + List list36 = new List(num5); + CollectionsMarshal.SetCount(list36, num5); + Span span36 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span36[num4] = new GatheringLocation { Position = new Vector3(788.803f, 103.5642f, -240.686f), MinimumAngle = 75, MaximumAngle = 270 }; - span20[1] = new GatheringLocation + num4++; + span36[num4] = new GatheringLocation { Position = new Vector3(809.0134f, 110.9159f, -306.1294f), MinimumAngle = 120, MaximumAngle = 255 }; - span20[2] = new GatheringLocation + num4++; + span36[num4] = new GatheringLocation { Position = new Vector3(760.2955f, 98.77714f, -209.9551f), MinimumAngle = 0, @@ -6883,63 +8048,75 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list27; AddLocation(508, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + index = 1; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + span37[num] = "liza"; gatheringRoot4.Author = list37; num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 612) + Span span38 = CollectionsMarshal.AsSpan(list38); + index = 0; + span38[index] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; gatheringRoot4.Steps = list38; - num = 3; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span21 = CollectionsMarshal.AsSpan(list39); - ref GatheringNodeGroup reference28 = ref span21[0]; + index = 3; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + Span span39 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref GatheringNodeGroup reference28 = ref span39[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span22 = CollectionsMarshal.AsSpan(list40); - ref GatheringNode reference29 = ref span22[0]; + num3 = 2; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref GatheringNode reference29 = ref span40[num2]; GatheringNode obj19 = new GatheringNode { DataId = 32217u }; - num3 = 3; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - Span span23 = CollectionsMarshal.AsSpan(list41); - span23[0] = new GatheringLocation + num4 = 3; + List list41 = new List(num4); + CollectionsMarshal.SetCount(list41, num4); + Span span41 = CollectionsMarshal.AsSpan(list41); + num5 = 0; + span41[num5] = new GatheringLocation { Position = new Vector3(-492.6537f, 52.48105f, 114.5392f) }; - span23[1] = new GatheringLocation + num5++; + span41[num5] = new GatheringLocation { Position = new Vector3(-523.8553f, 58.91578f, 174.0902f), MinimumAngle = -185, MaximumAngle = 115 }; - span23[2] = new GatheringLocation + num5++; + span41[num5] = new GatheringLocation { Position = new Vector3(-499.2416f, 54.9705f, 144.132f) }; obj19.Locations = list41; reference29 = obj19; - ref GatheringNode reference30 = ref span22[1]; + num2++; + ref GatheringNode reference30 = ref span40[num2]; GatheringNode obj20 = new GatheringNode { DataId = 32216u }; - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation + num5 = 1; + List list42 = new List(num5); + CollectionsMarshal.SetCount(list42, num5); + Span span42 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span42[num4] = new GatheringLocation { Position = new Vector3(-510.2239f, 55.62017f, 137.6676f) }; @@ -6947,46 +8124,54 @@ public static class AssemblyGatheringLocationLoader reference30 = obj20; gatheringNodeGroup10.Nodes = list40; reference28 = gatheringNodeGroup10; - ref GatheringNodeGroup reference31 = ref span21[1]; + num++; + ref GatheringNodeGroup reference31 = ref span39[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span24 = CollectionsMarshal.AsSpan(list43); - ref GatheringNode reference32 = ref span24[0]; + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + ref GatheringNode reference32 = ref span43[num3]; GatheringNode obj21 = new GatheringNode { DataId = 32215u }; - num3 = 3; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span25 = CollectionsMarshal.AsSpan(list44); - span25[0] = new GatheringLocation + num4 = 3; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + Span span44 = CollectionsMarshal.AsSpan(list44); + num5 = 0; + span44[num5] = new GatheringLocation { Position = new Vector3(-498.1188f, 57.86262f, 230.4597f) }; - span25[1] = new GatheringLocation + num5++; + span44[num5] = new GatheringLocation { Position = new Vector3(-513.0305f, 56.18323f, 239.2122f), MinimumAngle = -35, MaximumAngle = 235 }; - span25[2] = new GatheringLocation + num5++; + span44[num5] = new GatheringLocation { Position = new Vector3(-506.6473f, 56.30998f, 258.2175f) }; obj21.Locations = list44; reference32 = obj21; - ref GatheringNode reference33 = ref span24[1]; + num3++; + ref GatheringNode reference33 = ref span43[num3]; GatheringNode obj22 = new GatheringNode { DataId = 32214u }; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation + num5 = 1; + List list45 = new List(num5); + CollectionsMarshal.SetCount(list45, num5); + Span span45 = CollectionsMarshal.AsSpan(list45); + num4 = 0; + span45[num4] = new GatheringLocation { Position = new Vector3(-509.9459f, 56.21313f, 252.2773f) }; @@ -6994,40 +8179,47 @@ public static class AssemblyGatheringLocationLoader reference33 = obj22; gatheringNodeGroup11.Nodes = list43; reference31 = gatheringNodeGroup11; - ref GatheringNodeGroup reference34 = ref span21[2]; + num++; + ref GatheringNodeGroup reference34 = ref span39[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 2; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - Span span26 = CollectionsMarshal.AsSpan(list46); - ref GatheringNode reference35 = ref span26[0]; + num3 = 2; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + ref GatheringNode reference35 = ref span46[num2]; GatheringNode obj23 = new GatheringNode { DataId = 32213u }; - num3 = 2; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - Span span27 = CollectionsMarshal.AsSpan(list47); - span27[0] = new GatheringLocation + num4 = 2; + List list47 = new List(num4); + CollectionsMarshal.SetCount(list47, num4); + Span span47 = CollectionsMarshal.AsSpan(list47); + num5 = 0; + span47[num5] = new GatheringLocation { Position = new Vector3(-391.9599f, 50.21202f, 184.0853f) }; - span27[1] = new GatheringLocation + num5++; + span47[num5] = new GatheringLocation { Position = new Vector3(-419.9665f, 48.34329f, 125.2942f) }; obj23.Locations = list47; reference35 = obj23; - ref GatheringNode reference36 = ref span26[1]; + num2++; + ref GatheringNode reference36 = ref span46[num2]; GatheringNode obj24 = new GatheringNode { DataId = 32212u }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation + num5 = 1; + List list48 = new List(num5); + CollectionsMarshal.SetCount(list48, num5); + Span span48 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span48[num4] = new GatheringLocation { Position = new Vector3(-391.2807f, 47.10617f, 153.422f) }; @@ -7041,12 +8233,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "liza"; gatheringRoot5.Author = list49; - num = 1; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.None, null, null, 613) + index = 1; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + span50[num] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -7054,41 +8250,48 @@ public static class AssemblyGatheringLocationLoader num = 3; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span28 = CollectionsMarshal.AsSpan(list51); - ref GatheringNodeGroup reference37 = ref span28[0]; + Span span51 = CollectionsMarshal.AsSpan(list51); + index = 0; + ref GatheringNodeGroup reference37 = ref span51[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span29 = CollectionsMarshal.AsSpan(list52); - ref GatheringNode reference38 = ref span29[0]; + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + ref GatheringNode reference38 = ref span52[num3]; GatheringNode obj25 = new GatheringNode { DataId = 32223u }; - num3 = 2; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - Span span30 = CollectionsMarshal.AsSpan(list53); - span30[0] = new GatheringLocation + num4 = 2; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + Span span53 = CollectionsMarshal.AsSpan(list53); + num5 = 0; + span53[num5] = new GatheringLocation { Position = new Vector3(-741.6174f, 6.276045f, -639.2435f) }; - span30[1] = new GatheringLocation + num5++; + span53[num5] = new GatheringLocation { Position = new Vector3(-724.2017f, 2.514658f, -647.5651f) }; obj25.Locations = list53; reference38 = obj25; - ref GatheringNode reference39 = ref span29[1]; + num3++; + ref GatheringNode reference39 = ref span52[num3]; GatheringNode obj26 = new GatheringNode { DataId = 32222u }; - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation + num5 = 1; + List list54 = new List(num5); + CollectionsMarshal.SetCount(list54, num5); + Span span54 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span54[num4] = new GatheringLocation { Position = new Vector3(-719.345f, 2.520793f, -645.692f) }; @@ -7096,21 +8299,25 @@ public static class AssemblyGatheringLocationLoader reference39 = obj26; gatheringNodeGroup13.Nodes = list52; reference37 = gatheringNodeGroup13; - ref GatheringNodeGroup reference40 = ref span28[1]; + index++; + ref GatheringNodeGroup reference40 = ref span51[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span31 = CollectionsMarshal.AsSpan(list55); - ref GatheringNode reference41 = ref span31[0]; + num3 = 2; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + ref GatheringNode reference41 = ref span55[num2]; GatheringNode obj27 = new GatheringNode { DataId = 32218u }; - num3 = 1; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = new GatheringLocation + num4 = 1; + List list56 = new List(num4); + CollectionsMarshal.SetCount(list56, num4); + Span span56 = CollectionsMarshal.AsSpan(list56); + num5 = 0; + span56[num5] = new GatheringLocation { Position = new Vector3(-664.7355f, 15.23751f, -801.2688f), MinimumAngle = -60, @@ -7118,24 +8325,28 @@ public static class AssemblyGatheringLocationLoader }; obj27.Locations = list56; reference41 = obj27; - ref GatheringNode reference42 = ref span31[1]; + num2++; + ref GatheringNode reference42 = ref span55[num2]; GatheringNode obj28 = new GatheringNode { DataId = 32219u }; - num3 = 3; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - Span span32 = CollectionsMarshal.AsSpan(list57); - span32[0] = new GatheringLocation + num5 = 3; + List list57 = new List(num5); + CollectionsMarshal.SetCount(list57, num5); + Span span57 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span57[num4] = new GatheringLocation { Position = new Vector3(-673.4941f, 16.74037f, -818.1156f) }; - span32[1] = new GatheringLocation + num4++; + span57[num4] = new GatheringLocation { Position = new Vector3(-677.8458f, 15.77772f, -809.6718f) }; - span32[2] = new GatheringLocation + num4++; + span57[num4] = new GatheringLocation { Position = new Vector3(-663.3188f, 14.57053f, -797.132f) }; @@ -7143,30 +8354,35 @@ public static class AssemblyGatheringLocationLoader reference42 = obj28; gatheringNodeGroup14.Nodes = list55; reference40 = gatheringNodeGroup14; - ref GatheringNodeGroup reference43 = ref span28[2]; + index++; + ref GatheringNodeGroup reference43 = ref span51[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 2; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span33 = CollectionsMarshal.AsSpan(list58); - ref GatheringNode reference44 = ref span33[0]; + Span span58 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + ref GatheringNode reference44 = ref span58[num3]; GatheringNode obj29 = new GatheringNode { DataId = 32221u }; - num3 = 3; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - Span span34 = CollectionsMarshal.AsSpan(list59); - span34[0] = new GatheringLocation + num4 = 3; + List list59 = new List(num4); + CollectionsMarshal.SetCount(list59, num4); + Span span59 = CollectionsMarshal.AsSpan(list59); + num5 = 0; + span59[num5] = new GatheringLocation { Position = new Vector3(-502.177f, 36.7399f, -724.8087f) }; - span34[1] = new GatheringLocation + num5++; + span59[num5] = new GatheringLocation { Position = new Vector3(-508.0492f, 33.89026f, -703.5477f) }; - span34[2] = new GatheringLocation + num5++; + span59[num5] = new GatheringLocation { Position = new Vector3(-490.3923f, 36.73062f, -685.7646f), MinimumAngle = -40, @@ -7174,15 +8390,18 @@ public static class AssemblyGatheringLocationLoader }; obj29.Locations = list59; reference44 = obj29; - ref GatheringNode reference45 = ref span33[1]; + num3++; + ref GatheringNode reference45 = ref span58[num3]; GatheringNode obj30 = new GatheringNode { DataId = 32220u }; - num3 = 1; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = new GatheringLocation + num5 = 1; + List list60 = new List(num5); + CollectionsMarshal.SetCount(list60, num5); + Span span60 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span60[num4] = new GatheringLocation { Position = new Vector3(-493.5531f, 36.08752f, -687.7089f), MinimumAngle = -70, @@ -7195,64 +8414,76 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list51; AddLocation(510, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + index = 1; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num = 0; + span61[num] = "liza"; gatheringRoot6.Author = list61; num = 2; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span35 = CollectionsMarshal.AsSpan(list62); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + Span span62 = CollectionsMarshal.AsSpan(list62); + index = 0; + span62[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span35[1] = new QuestStep(EInteractionType.None, null, null, 613); + index++; + span62[index] = new QuestStep(EInteractionType.None, null, null, 613); gatheringRoot6.Steps = list62; - num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span36 = CollectionsMarshal.AsSpan(list63); - ref GatheringNodeGroup reference46 = ref span36[0]; + index = 3; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + Span span63 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref GatheringNodeGroup reference46 = ref span63[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 2; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span37 = CollectionsMarshal.AsSpan(list64); - ref GatheringNode reference47 = ref span37[0]; + num3 = 2; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + ref GatheringNode reference47 = ref span64[num2]; GatheringNode obj31 = new GatheringNode { DataId = 32225u }; - num3 = 3; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span38 = CollectionsMarshal.AsSpan(list65); - span38[0] = new GatheringLocation + num4 = 3; + List list65 = new List(num4); + CollectionsMarshal.SetCount(list65, num4); + Span span65 = CollectionsMarshal.AsSpan(list65); + num5 = 0; + span65[num5] = new GatheringLocation { Position = new Vector3(283.2321f, -105.8964f, -89.553f) }; - span38[1] = new GatheringLocation + num5++; + span65[num5] = new GatheringLocation { Position = new Vector3(251.241f, -112.7794f, -103.9756f) }; - span38[2] = new GatheringLocation + num5++; + span65[num5] = new GatheringLocation { Position = new Vector3(338.0264f, -86.76475f, -30.31015f) }; obj31.Locations = list65; reference47 = obj31; - ref GatheringNode reference48 = ref span37[1]; + num2++; + ref GatheringNode reference48 = ref span64[num2]; GatheringNode obj32 = new GatheringNode { DataId = 32224u }; - num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = new GatheringLocation + num5 = 1; + List list66 = new List(num5); + CollectionsMarshal.SetCount(list66, num5); + Span span66 = CollectionsMarshal.AsSpan(list66); + num4 = 0; + span66[num4] = new GatheringLocation { Position = new Vector3(304.9474f, -98.91968f, -59.39315f) }; @@ -7260,44 +8491,52 @@ public static class AssemblyGatheringLocationLoader reference48 = obj32; gatheringNodeGroup16.Nodes = list64; reference46 = gatheringNodeGroup16; - ref GatheringNodeGroup reference49 = ref span36[1]; + num++; + ref GatheringNodeGroup reference49 = ref span63[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 2; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span39 = CollectionsMarshal.AsSpan(list67); - ref GatheringNode reference50 = ref span39[0]; + Span span67 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + ref GatheringNode reference50 = ref span67[num3]; GatheringNode obj33 = new GatheringNode { DataId = 32228u }; - num3 = 1; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = new GatheringLocation + num4 = 1; + List list68 = new List(num4); + CollectionsMarshal.SetCount(list68, num4); + Span span68 = CollectionsMarshal.AsSpan(list68); + num5 = 0; + span68[num5] = new GatheringLocation { Position = new Vector3(260.0728f, -124.0964f, 68.48814f) }; obj33.Locations = list68; reference50 = obj33; - ref GatheringNode reference51 = ref span39[1]; + num3++; + ref GatheringNode reference51 = ref span67[num3]; GatheringNode obj34 = new GatheringNode { DataId = 32229u }; - num3 = 3; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - Span span40 = CollectionsMarshal.AsSpan(list69); - span40[0] = new GatheringLocation + num5 = 3; + List list69 = new List(num5); + CollectionsMarshal.SetCount(list69, num5); + Span span69 = CollectionsMarshal.AsSpan(list69); + num4 = 0; + span69[num4] = new GatheringLocation { Position = new Vector3(265.4464f, -128.0422f, 88.30737f) }; - span40[1] = new GatheringLocation + num4++; + span69[num4] = new GatheringLocation { Position = new Vector3(256.5239f, -113.9164f, -3.19258f) }; - span40[2] = new GatheringLocation + num4++; + span69[num4] = new GatheringLocation { Position = new Vector3(237.8169f, -122.1193f, -35.11102f) }; @@ -7305,44 +8544,52 @@ public static class AssemblyGatheringLocationLoader reference51 = obj34; gatheringNodeGroup17.Nodes = list67; reference49 = gatheringNodeGroup17; - ref GatheringNodeGroup reference52 = ref span36[2]; + num++; + ref GatheringNodeGroup reference52 = ref span63[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num2 = 2; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span41 = CollectionsMarshal.AsSpan(list70); - ref GatheringNode reference53 = ref span41[0]; + num3 = 2; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref GatheringNode reference53 = ref span70[num2]; GatheringNode obj35 = new GatheringNode { DataId = 32226u }; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new GatheringLocation + num4 = 1; + List list71 = new List(num4); + CollectionsMarshal.SetCount(list71, num4); + Span span71 = CollectionsMarshal.AsSpan(list71); + num5 = 0; + span71[num5] = new GatheringLocation { Position = new Vector3(318.7197f, -88.4566f, 91.66042f) }; obj35.Locations = list71; reference53 = obj35; - ref GatheringNode reference54 = ref span41[1]; + num2++; + ref GatheringNode reference54 = ref span70[num2]; GatheringNode obj36 = new GatheringNode { DataId = 32227u }; - num3 = 3; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span42 = CollectionsMarshal.AsSpan(list72); - span42[0] = new GatheringLocation + num5 = 3; + List list72 = new List(num5); + CollectionsMarshal.SetCount(list72, num5); + Span span72 = CollectionsMarshal.AsSpan(list72); + num4 = 0; + span72[num4] = new GatheringLocation { Position = new Vector3(281.2504f, -113.1205f, 176.6557f) }; - span42[1] = new GatheringLocation + num4++; + span72[num4] = new GatheringLocation { Position = new Vector3(309.1248f, -88.04077f, 109.5688f) }; - span42[2] = new GatheringLocation + num4++; + span72[num4] = new GatheringLocation { Position = new Vector3(312.3843f, -95.51873f, 79.94166f) }; @@ -7356,12 +8603,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "liza"; + Span span73 = CollectionsMarshal.AsSpan(list73); + index = 0; + span73[index] = "liza"; gatheringRoot7.Author = list73; - num = 1; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.None, null, null, 620) + index = 1; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + Span span74 = CollectionsMarshal.AsSpan(list74); + num = 0; + span74[num] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -7369,45 +8620,53 @@ public static class AssemblyGatheringLocationLoader num = 3; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span43 = CollectionsMarshal.AsSpan(list75); - ref GatheringNodeGroup reference55 = ref span43[0]; + Span span75 = CollectionsMarshal.AsSpan(list75); + index = 0; + ref GatheringNodeGroup reference55 = ref span75[index]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span44 = CollectionsMarshal.AsSpan(list76); - ref GatheringNode reference56 = ref span44[0]; + Span span76 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + ref GatheringNode reference56 = ref span76[num3]; GatheringNode obj37 = new GatheringNode { DataId = 32234u }; - num3 = 1; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = new GatheringLocation + num4 = 1; + List list77 = new List(num4); + CollectionsMarshal.SetCount(list77, num4); + Span span77 = CollectionsMarshal.AsSpan(list77); + num5 = 0; + span77[num5] = new GatheringLocation { Position = new Vector3(-381.2856f, 66.03626f, -548.9689f) }; obj37.Locations = list77; reference56 = obj37; - ref GatheringNode reference57 = ref span44[1]; + num3++; + ref GatheringNode reference57 = ref span76[num3]; GatheringNode obj38 = new GatheringNode { DataId = 32235u }; - num3 = 3; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span45 = CollectionsMarshal.AsSpan(list78); - span45[0] = new GatheringLocation + num5 = 3; + List list78 = new List(num5); + CollectionsMarshal.SetCount(list78, num5); + Span span78 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span78[num4] = new GatheringLocation { Position = new Vector3(-421.8894f, 69.34563f, -520.4478f) }; - span45[1] = new GatheringLocation + num4++; + span78[num4] = new GatheringLocation { Position = new Vector3(-376.2228f, 66.67438f, -545.8188f) }; - span45[2] = new GatheringLocation + num4++; + span78[num4] = new GatheringLocation { Position = new Vector3(-355.3144f, 66.57961f, -545.7592f) }; @@ -7415,46 +8674,54 @@ public static class AssemblyGatheringLocationLoader reference57 = obj38; gatheringNodeGroup19.Nodes = list76; reference55 = gatheringNodeGroup19; - ref GatheringNodeGroup reference58 = ref span43[1]; + index++; + ref GatheringNodeGroup reference58 = ref span75[index]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - num2 = 2; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span46 = CollectionsMarshal.AsSpan(list79); - ref GatheringNode reference59 = ref span46[0]; + num3 = 2; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + ref GatheringNode reference59 = ref span79[num2]; GatheringNode obj39 = new GatheringNode { DataId = 32232u }; - num3 = 1; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new GatheringLocation + num4 = 1; + List list80 = new List(num4); + CollectionsMarshal.SetCount(list80, num4); + Span span80 = CollectionsMarshal.AsSpan(list80); + num5 = 0; + span80[num5] = new GatheringLocation { Position = new Vector3(-517.0562f, 63.73144f, -477.6884f) }; obj39.Locations = list80; reference59 = obj39; - ref GatheringNode reference60 = ref span46[1]; + num2++; + ref GatheringNode reference60 = ref span79[num2]; GatheringNode obj40 = new GatheringNode { DataId = 32233u }; - num3 = 3; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - Span span47 = CollectionsMarshal.AsSpan(list81); - span47[0] = new GatheringLocation + num5 = 3; + List list81 = new List(num5); + CollectionsMarshal.SetCount(list81, num5); + Span span81 = CollectionsMarshal.AsSpan(list81); + num4 = 0; + span81[num4] = new GatheringLocation { Position = new Vector3(-550.7997f, 69.32131f, -449.5795f), MinimumAngle = 0, MaximumAngle = 230 }; - span47[1] = new GatheringLocation + num4++; + span81[num4] = new GatheringLocation { Position = new Vector3(-507.8166f, 66.39982f, -470.319f) }; - span47[2] = new GatheringLocation + num4++; + span81[num4] = new GatheringLocation { Position = new Vector3(-494.5092f, 63.5919f, -497.5369f) }; @@ -7462,21 +8729,25 @@ public static class AssemblyGatheringLocationLoader reference60 = obj40; gatheringNodeGroup20.Nodes = list79; reference58 = gatheringNodeGroup20; - ref GatheringNodeGroup reference61 = ref span43[2]; + index++; + ref GatheringNodeGroup reference61 = ref span75[index]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span48 = CollectionsMarshal.AsSpan(list82); - ref GatheringNode reference62 = ref span48[0]; + Span span82 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + ref GatheringNode reference62 = ref span82[num3]; GatheringNode obj41 = new GatheringNode { DataId = 32230u }; - num3 = 1; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = new GatheringLocation + num4 = 1; + List list83 = new List(num4); + CollectionsMarshal.SetCount(list83, num4); + Span span83 = CollectionsMarshal.AsSpan(list83); + num5 = 0; + span83[num5] = new GatheringLocation { Position = new Vector3(-402.3759f, 95.33111f, -371.9796f), MinimumAngle = -15, @@ -7484,26 +8755,30 @@ public static class AssemblyGatheringLocationLoader }; obj41.Locations = list83; reference62 = obj41; - ref GatheringNode reference63 = ref span48[1]; + num3++; + ref GatheringNode reference63 = ref span82[num3]; GatheringNode obj42 = new GatheringNode { DataId = 32231u }; - num3 = 3; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - Span span49 = CollectionsMarshal.AsSpan(list84); - span49[0] = new GatheringLocation + num5 = 3; + List list84 = new List(num5); + CollectionsMarshal.SetCount(list84, num5); + Span span84 = CollectionsMarshal.AsSpan(list84); + num4 = 0; + span84[num4] = new GatheringLocation { Position = new Vector3(-398.7086f, 95.14203f, -377.1731f), MinimumAngle = 30, MaximumAngle = 230 }; - span49[1] = new GatheringLocation + num4++; + span84[num4] = new GatheringLocation { Position = new Vector3(-427.5446f, 90.42126f, -391.9806f) }; - span49[2] = new GatheringLocation + num4++; + span84[num4] = new GatheringLocation { Position = new Vector3(-398.5008f, 98.82507f, -351.0829f) }; @@ -7514,38 +8789,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list75; AddLocation(512, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - num = 1; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "liza"; + index = 1; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + span85[num] = "liza"; gatheringRoot8.Author = list85; num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.None, null, null, 612) + Span span86 = CollectionsMarshal.AsSpan(list86); + index = 0; + span86[index] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; gatheringRoot8.Steps = list86; - num = 3; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span50 = CollectionsMarshal.AsSpan(list87); - ref GatheringNodeGroup reference64 = ref span50[0]; + index = 3; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + Span span87 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref GatheringNodeGroup reference64 = ref span87[num]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); - num2 = 2; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span51 = CollectionsMarshal.AsSpan(list88); - ref GatheringNode reference65 = ref span51[0]; + num3 = 2; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + ref GatheringNode reference65 = ref span88[num2]; GatheringNode obj43 = new GatheringNode { DataId = 32236u }; - num3 = 1; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - CollectionsMarshal.AsSpan(list89)[0] = new GatheringLocation + num4 = 1; + List list89 = new List(num4); + CollectionsMarshal.SetCount(list89, num4); + Span span89 = CollectionsMarshal.AsSpan(list89); + num5 = 0; + span89[num5] = new GatheringLocation { Position = new Vector3(-590.3985f, 37.74836f, 392.8004f), MinimumAngle = 60, @@ -7553,22 +8836,25 @@ public static class AssemblyGatheringLocationLoader }; obj43.Locations = list89; reference65 = obj43; - ref GatheringNode reference66 = ref span51[1]; + num2++; + ref GatheringNode reference66 = ref span88[num2]; GatheringNode obj44 = new GatheringNode { DataId = 32237u }; - num3 = 2; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - Span span52 = CollectionsMarshal.AsSpan(list90); - span52[0] = new GatheringLocation + num5 = 2; + List list90 = new List(num5); + CollectionsMarshal.SetCount(list90, num5); + Span span90 = CollectionsMarshal.AsSpan(list90); + num4 = 0; + span90[num4] = new GatheringLocation { Position = new Vector3(-713.7814f, 51.18425f, 365.8188f), MinimumAngle = 145, MaximumAngle = 275 }; - span52[1] = new GatheringLocation + num4++; + span90[num4] = new GatheringLocation { Position = new Vector3(-674.6958f, 44.06395f, 347.5866f), MinimumAngle = -70, @@ -7578,28 +8864,32 @@ public static class AssemblyGatheringLocationLoader reference66 = obj44; gatheringNodeGroup22.Nodes = list88; reference64 = gatheringNodeGroup22; - ref GatheringNodeGroup reference67 = ref span50[1]; + num++; + ref GatheringNodeGroup reference67 = ref span87[num]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span53 = CollectionsMarshal.AsSpan(list91); - ref GatheringNode reference68 = ref span53[0]; + Span span91 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + ref GatheringNode reference68 = ref span91[num3]; GatheringNode obj45 = new GatheringNode { DataId = 32239u }; - num3 = 2; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span54 = CollectionsMarshal.AsSpan(list92); - span54[0] = new GatheringLocation + num4 = 2; + List list92 = new List(num4); + CollectionsMarshal.SetCount(list92, num4); + Span span92 = CollectionsMarshal.AsSpan(list92); + num5 = 0; + span92[num5] = new GatheringLocation { Position = new Vector3(-625.3124f, 36.73846f, 442.5669f), MinimumAngle = 140, MaximumAngle = 235 }; - span54[1] = new GatheringLocation + num5++; + span92[num5] = new GatheringLocation { Position = new Vector3(-655.4194f, 40.51354f, 402.2708f), MinimumAngle = -95, @@ -7607,15 +8897,18 @@ public static class AssemblyGatheringLocationLoader }; obj45.Locations = list92; reference68 = obj45; - ref GatheringNode reference69 = ref span53[1]; + num3++; + ref GatheringNode reference69 = ref span91[num3]; GatheringNode obj46 = new GatheringNode { DataId = 32238u }; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new GatheringLocation + num5 = 1; + List list93 = new List(num5); + CollectionsMarshal.SetCount(list93, num5); + Span span93 = CollectionsMarshal.AsSpan(list93); + num4 = 0; + span93[num4] = new GatheringLocation { Position = new Vector3(-628.1135f, 36.66908f, 480.3016f), MinimumAngle = 85, @@ -7625,21 +8918,25 @@ public static class AssemblyGatheringLocationLoader reference69 = obj46; gatheringNodeGroup23.Nodes = list91; reference67 = gatheringNodeGroup23; - ref GatheringNodeGroup reference70 = ref span50[2]; + num++; + ref GatheringNodeGroup reference70 = ref span87[num]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span55 = CollectionsMarshal.AsSpan(list94); - ref GatheringNode reference71 = ref span55[0]; + num3 = 2; + List list94 = new List(num3); + CollectionsMarshal.SetCount(list94, num3); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref GatheringNode reference71 = ref span94[num2]; GatheringNode obj47 = new GatheringNode { DataId = 32240u }; - num3 = 1; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new GatheringLocation + num4 = 1; + List list95 = new List(num4); + CollectionsMarshal.SetCount(list95, num4); + Span span95 = CollectionsMarshal.AsSpan(list95); + num5 = 0; + span95[num5] = new GatheringLocation { Position = new Vector3(-575.3094f, 36.61243f, 500.9136f), MinimumAngle = 15, @@ -7647,22 +8944,25 @@ public static class AssemblyGatheringLocationLoader }; obj47.Locations = list95; reference71 = obj47; - ref GatheringNode reference72 = ref span55[1]; + num2++; + ref GatheringNode reference72 = ref span94[num2]; GatheringNode obj48 = new GatheringNode { DataId = 32241u }; - num3 = 2; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - Span span56 = CollectionsMarshal.AsSpan(list96); - span56[0] = new GatheringLocation + num5 = 2; + List list96 = new List(num5); + CollectionsMarshal.SetCount(list96, num5); + Span span96 = CollectionsMarshal.AsSpan(list96); + num4 = 0; + span96[num4] = new GatheringLocation { Position = new Vector3(-560.735f, 37.00333f, 439.5417f), MinimumAngle = -15, MaximumAngle = 95 }; - span56[1] = new GatheringLocation + num4++; + span96[num4] = new GatheringLocation { Position = new Vector3(-586.5652f, 37.77999f, 459.6001f), MinimumAngle = 40, @@ -7678,12 +8978,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + Span span97 = CollectionsMarshal.AsSpan(list97); + index = 0; + span97[index] = "liza"; gatheringRoot9.Author = list97; - num = 1; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.None, null, null, 621) + index = 1; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num = 0; + span98[num] = new QuestStep(EInteractionType.None, null, null, 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; @@ -7691,35 +8995,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span57 = CollectionsMarshal.AsSpan(list99); - ref GatheringNodeGroup reference73 = ref span57[0]; + Span span99 = CollectionsMarshal.AsSpan(list99); + index = 0; + ref GatheringNodeGroup reference73 = ref span99[index]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span58 = CollectionsMarshal.AsSpan(list100); - ref GatheringNode reference74 = ref span58[0]; + Span span100 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + ref GatheringNode reference74 = ref span100[num3]; GatheringNode obj49 = new GatheringNode { DataId = 32245u }; - num3 = 3; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span59 = CollectionsMarshal.AsSpan(list101); - span59[0] = new GatheringLocation + num4 = 3; + List list101 = new List(num4); + CollectionsMarshal.SetCount(list101, num4); + Span span101 = CollectionsMarshal.AsSpan(list101); + num5 = 0; + span101[num5] = new GatheringLocation { Position = new Vector3(333.1211f, 20.88004f, -522.5363f), MinimumAngle = 160, MaximumAngle = 335 }; - span59[1] = new GatheringLocation + num5++; + span101[num5] = new GatheringLocation { Position = new Vector3(338.3687f, 21.54188f, -512.1134f), MinimumAngle = 120, MaximumAngle = 275 }; - span59[2] = new GatheringLocation + num5++; + span101[num5] = new GatheringLocation { Position = new Vector3(374.9138f, 25.00688f, -515.2723f), MinimumAngle = -85, @@ -7727,15 +9036,18 @@ public static class AssemblyGatheringLocationLoader }; obj49.Locations = list101; reference74 = obj49; - ref GatheringNode reference75 = ref span58[1]; + num3++; + ref GatheringNode reference75 = ref span100[num3]; GatheringNode obj50 = new GatheringNode { DataId = 32244u }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = new GatheringLocation + num5 = 1; + List list102 = new List(num5); + CollectionsMarshal.SetCount(list102, num5); + Span span102 = CollectionsMarshal.AsSpan(list102); + num4 = 0; + span102[num4] = new GatheringLocation { Position = new Vector3(368.5785f, 24.38493f, -507.3824f), MinimumAngle = 65, @@ -7745,34 +9057,39 @@ public static class AssemblyGatheringLocationLoader reference75 = obj50; gatheringNodeGroup25.Nodes = list100; reference73 = gatheringNodeGroup25; - ref GatheringNodeGroup reference76 = ref span57[1]; + index++; + ref GatheringNodeGroup reference76 = ref span99[index]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num2 = 2; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - Span span60 = CollectionsMarshal.AsSpan(list103); - ref GatheringNode reference77 = ref span60[0]; + num3 = 2; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + ref GatheringNode reference77 = ref span103[num2]; GatheringNode obj51 = new GatheringNode { DataId = 32243u }; - num3 = 3; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - Span span61 = CollectionsMarshal.AsSpan(list104); - span61[0] = new GatheringLocation + num4 = 3; + List list104 = new List(num4); + CollectionsMarshal.SetCount(list104, num4); + Span span104 = CollectionsMarshal.AsSpan(list104); + num5 = 0; + span104[num5] = new GatheringLocation { Position = new Vector3(426.1108f, 25.12664f, -607.2003f), MinimumAngle = -20, MaximumAngle = 145 }; - span61[1] = new GatheringLocation + num5++; + span104[num5] = new GatheringLocation { Position = new Vector3(400.1029f, 25.21572f, -648.0899f), MinimumAngle = 190, MaximumAngle = 325 }; - span61[2] = new GatheringLocation + num5++; + span104[num5] = new GatheringLocation { Position = new Vector3(463.1597f, 24.9486f, -602.0026f), MinimumAngle = 0, @@ -7780,15 +9097,18 @@ public static class AssemblyGatheringLocationLoader }; obj51.Locations = list104; reference77 = obj51; - ref GatheringNode reference78 = ref span60[1]; + num2++; + ref GatheringNode reference78 = ref span103[num2]; GatheringNode obj52 = new GatheringNode { DataId = 32242u }; - num3 = 1; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = new GatheringLocation + num5 = 1; + List list105 = new List(num5); + CollectionsMarshal.SetCount(list105, num5); + Span span105 = CollectionsMarshal.AsSpan(list105); + num4 = 0; + span105[num4] = new GatheringLocation { Position = new Vector3(396.3124f, 25.41136f, -663.1417f), MinimumAngle = 20, @@ -7798,34 +9118,39 @@ public static class AssemblyGatheringLocationLoader reference78 = obj52; gatheringNodeGroup26.Nodes = list103; reference76 = gatheringNodeGroup26; - ref GatheringNodeGroup reference79 = ref span57[2]; + index++; + ref GatheringNodeGroup reference79 = ref span99[index]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span62 = CollectionsMarshal.AsSpan(list106); - ref GatheringNode reference80 = ref span62[0]; + Span span106 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + ref GatheringNode reference80 = ref span106[num3]; GatheringNode obj53 = new GatheringNode { DataId = 32247u }; - num3 = 3; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - Span span63 = CollectionsMarshal.AsSpan(list107); - span63[0] = new GatheringLocation + num4 = 3; + List list107 = new List(num4); + CollectionsMarshal.SetCount(list107, num4); + Span span107 = CollectionsMarshal.AsSpan(list107); + num5 = 0; + span107[num5] = new GatheringLocation { Position = new Vector3(274.2476f, 18.49642f, -627.4052f), MinimumAngle = -95, MaximumAngle = 100 }; - span63[1] = new GatheringLocation + num5++; + span107[num5] = new GatheringLocation { Position = new Vector3(248.6237f, 10.63078f, -592.5243f), MinimumAngle = -145, MaximumAngle = 35 }; - span63[2] = new GatheringLocation + num5++; + span107[num5] = new GatheringLocation { Position = new Vector3(259.3484f, 11.24844f, -586.5854f), MinimumAngle = -120, @@ -7833,15 +9158,18 @@ public static class AssemblyGatheringLocationLoader }; obj53.Locations = list107; reference80 = obj53; - ref GatheringNode reference81 = ref span62[1]; + num3++; + ref GatheringNode reference81 = ref span106[num3]; GatheringNode obj54 = new GatheringNode { DataId = 32246u }; - num3 = 1; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new GatheringLocation + num5 = 1; + List list108 = new List(num5); + CollectionsMarshal.SetCount(list108, num5); + Span span108 = CollectionsMarshal.AsSpan(list108); + num4 = 0; + span108[num4] = new GatheringLocation { Position = new Vector3(266.4147f, 18.26739f, -620.2316f), MinimumAngle = 135, @@ -7854,38 +9182,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list99; AddLocation(514, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - num = 1; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + index = 1; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + Span span109 = CollectionsMarshal.AsSpan(list109); + num = 0; + span109[num] = "liza"; gatheringRoot10.Author = list109; num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.None, null, null, 622) + Span span110 = CollectionsMarshal.AsSpan(list110); + index = 0; + span110[index] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; gatheringRoot10.Steps = list110; - num = 3; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span64 = CollectionsMarshal.AsSpan(list111); - ref GatheringNodeGroup reference82 = ref span64[0]; + index = 3; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + Span span111 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref GatheringNodeGroup reference82 = ref span111[num]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); - num2 = 2; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span65 = CollectionsMarshal.AsSpan(list112); - ref GatheringNode reference83 = ref span65[0]; + num3 = 2; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + ref GatheringNode reference83 = ref span112[num2]; GatheringNode obj55 = new GatheringNode { DataId = 32264u }; - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = new GatheringLocation + num4 = 1; + List list113 = new List(num4); + CollectionsMarshal.SetCount(list113, num4); + Span span113 = CollectionsMarshal.AsSpan(list113); + num5 = 0; + span113[num5] = new GatheringLocation { Position = new Vector3(-166.6597f, 3.616752f, 361.2099f), MinimumAngle = -95, @@ -7893,26 +9229,30 @@ public static class AssemblyGatheringLocationLoader }; obj55.Locations = list113; reference83 = obj55; - ref GatheringNode reference84 = ref span65[1]; + num2++; + ref GatheringNode reference84 = ref span112[num2]; GatheringNode obj56 = new GatheringNode { DataId = 32265u }; - num3 = 3; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span66 = CollectionsMarshal.AsSpan(list114); - span66[0] = new GatheringLocation + num5 = 3; + List list114 = new List(num5); + CollectionsMarshal.SetCount(list114, num5); + Span span114 = CollectionsMarshal.AsSpan(list114); + num4 = 0; + span114[num4] = new GatheringLocation { Position = new Vector3(-191.0201f, 4.361521f, 354.6401f) }; - span66[1] = new GatheringLocation + num4++; + span114[num4] = new GatheringLocation { Position = new Vector3(-162.6655f, 3.441799f, 363.0803f), MinimumAngle = -95, MaximumAngle = 150 }; - span66[2] = new GatheringLocation + num4++; + span114[num4] = new GatheringLocation { Position = new Vector3(-167.5898f, 2.5177f, 377.1267f) }; @@ -7920,44 +9260,52 @@ public static class AssemblyGatheringLocationLoader reference84 = obj56; gatheringNodeGroup28.Nodes = list112; reference82 = gatheringNodeGroup28; - ref GatheringNodeGroup reference85 = ref span64[1]; + num++; + ref GatheringNodeGroup reference85 = ref span111[num]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span67 = CollectionsMarshal.AsSpan(list115); - ref GatheringNode reference86 = ref span67[0]; + Span span115 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + ref GatheringNode reference86 = ref span115[num3]; GatheringNode obj57 = new GatheringNode { DataId = 32267u }; - num3 = 3; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - Span span68 = CollectionsMarshal.AsSpan(list116); - span68[0] = new GatheringLocation + num4 = 3; + List list116 = new List(num4); + CollectionsMarshal.SetCount(list116, num4); + Span span116 = CollectionsMarshal.AsSpan(list116); + num5 = 0; + span116[num5] = new GatheringLocation { Position = new Vector3(-271.2292f, 3.341675f, 401.9989f) }; - span68[1] = new GatheringLocation + num5++; + span116[num5] = new GatheringLocation { Position = new Vector3(-349.3433f, 11.88452f, 378.1435f) }; - span68[2] = new GatheringLocation + num5++; + span116[num5] = new GatheringLocation { Position = new Vector3(-298.7296f, 5.809261f, 414.3437f) }; obj57.Locations = list116; reference86 = obj57; - ref GatheringNode reference87 = ref span67[1]; + num3++; + ref GatheringNode reference87 = ref span115[num3]; GatheringNode obj58 = new GatheringNode { DataId = 32266u }; - num3 = 1; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = new GatheringLocation + num5 = 1; + List list117 = new List(num5); + CollectionsMarshal.SetCount(list117, num5); + Span span117 = CollectionsMarshal.AsSpan(list117); + num4 = 0; + span117[num4] = new GatheringLocation { Position = new Vector3(-317.19f, 7.863516f, 397.5005f) }; @@ -7965,44 +9313,52 @@ public static class AssemblyGatheringLocationLoader reference87 = obj58; gatheringNodeGroup29.Nodes = list115; reference85 = gatheringNodeGroup29; - ref GatheringNodeGroup reference88 = ref span64[2]; + num++; + ref GatheringNodeGroup reference88 = ref span111[num]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span69 = CollectionsMarshal.AsSpan(list118); - ref GatheringNode reference89 = ref span69[0]; + num3 = 2; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + ref GatheringNode reference89 = ref span118[num2]; GatheringNode obj59 = new GatheringNode { DataId = 32262u }; - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = new GatheringLocation + num4 = 1; + List list119 = new List(num4); + CollectionsMarshal.SetCount(list119, num4); + Span span119 = CollectionsMarshal.AsSpan(list119); + num5 = 0; + span119[num5] = new GatheringLocation { Position = new Vector3(-350.0407f, 22.68479f, 230.4606f) }; obj59.Locations = list119; reference89 = obj59; - ref GatheringNode reference90 = ref span69[1]; + num2++; + ref GatheringNode reference90 = ref span118[num2]; GatheringNode obj60 = new GatheringNode { DataId = 32263u }; - num3 = 3; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span70 = CollectionsMarshal.AsSpan(list120); - span70[0] = new GatheringLocation + num5 = 3; + List list120 = new List(num5); + CollectionsMarshal.SetCount(list120, num5); + Span span120 = CollectionsMarshal.AsSpan(list120); + num4 = 0; + span120[num4] = new GatheringLocation { Position = new Vector3(-352.7808f, 23.99817f, 203.1617f) }; - span70[1] = new GatheringLocation + num4++; + span120[num4] = new GatheringLocation { Position = new Vector3(-345.5888f, 22.30608f, 229.8253f) }; - span70[2] = new GatheringLocation + num4++; + span120[num4] = new GatheringLocation { Position = new Vector3(-377.2188f, 22.65303f, 221.3997f) }; @@ -8016,12 +9372,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "liza"; + Span span121 = CollectionsMarshal.AsSpan(list121); + index = 0; + span121[index] = "liza"; gatheringRoot11.Author = list121; - num = 1; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.None, null, null, 621) + index = 1; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + Span span122 = CollectionsMarshal.AsSpan(list122); + num = 0; + span122[num] = new QuestStep(EInteractionType.None, null, null, 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; @@ -8029,29 +9389,36 @@ public static class AssemblyGatheringLocationLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - ref GatheringNodeGroup reference91 = ref CollectionsMarshal.AsSpan(list123)[0]; + Span span123 = CollectionsMarshal.AsSpan(list123); + index = 0; + ref GatheringNodeGroup reference91 = ref span123[index]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - ref GatheringNode reference92 = ref CollectionsMarshal.AsSpan(list124)[0]; + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + ref GatheringNode reference92 = ref span124[num3]; GatheringNode obj61 = new GatheringNode { DataId = 32274u }; - num3 = 3; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span71 = CollectionsMarshal.AsSpan(list125); - span71[0] = new GatheringLocation + num4 = 3; + List list125 = new List(num4); + CollectionsMarshal.SetCount(list125, num4); + Span span125 = CollectionsMarshal.AsSpan(list125); + num5 = 0; + span125[num5] = new GatheringLocation { Position = new Vector3(-737.3265f, 76.50858f, -591.2296f) }; - span71[1] = new GatheringLocation + num5++; + span125[num5] = new GatheringLocation { Position = new Vector3(-787.0406f, 78.22382f, -640.0532f) }; - span71[2] = new GatheringLocation + num5++; + span125[num5] = new GatheringLocation { Position = new Vector3(-670.0129f, 70.42876f, -645.2087f) }; @@ -8062,60 +9429,71 @@ public static class AssemblyGatheringLocationLoader gatheringRoot11.Groups = list123; AddLocation(526, gatheringRoot11); GatheringRoot gatheringRoot12 = new GatheringRoot(); - num = 1; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "liza"; + index = 1; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + Span span126 = CollectionsMarshal.AsSpan(list126); + num = 0; + span126[num] = "liza"; gatheringRoot12.Author = list126; num = 2; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - Span span72 = CollectionsMarshal.AsSpan(list127); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + Span span127 = CollectionsMarshal.AsSpan(list127); + index = 0; + span127[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span72[1] = new QuestStep(EInteractionType.None, null, null, 613); + index++; + span127[index] = new QuestStep(EInteractionType.None, null, null, 613); gatheringRoot12.Steps = list127; - num = 3; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - Span span73 = CollectionsMarshal.AsSpan(list128); - ref GatheringNodeGroup reference93 = ref span73[0]; + index = 3; + List list128 = new List(index); + CollectionsMarshal.SetCount(list128, index); + Span span128 = CollectionsMarshal.AsSpan(list128); + num = 0; + ref GatheringNodeGroup reference93 = ref span128[num]; GatheringNodeGroup gatheringNodeGroup32 = new GatheringNodeGroup(); - num2 = 2; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - Span span74 = CollectionsMarshal.AsSpan(list129); - ref GatheringNode reference94 = ref span74[0]; + num3 = 2; + List list129 = new List(num3); + CollectionsMarshal.SetCount(list129, num3); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + ref GatheringNode reference94 = ref span129[num2]; GatheringNode obj62 = new GatheringNode { DataId = 32282u }; - num3 = 2; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - Span span75 = CollectionsMarshal.AsSpan(list130); - span75[0] = new GatheringLocation + num5 = 2; + List list130 = new List(num5); + CollectionsMarshal.SetCount(list130, num5); + Span span130 = CollectionsMarshal.AsSpan(list130); + num4 = 0; + span130[num4] = new GatheringLocation { Position = new Vector3(-332.5556f, -139.5151f, -276.7727f) }; - span75[1] = new GatheringLocation + num4++; + span130[num4] = new GatheringLocation { Position = new Vector3(-398.5437f, -137.4753f, -264.6068f) }; obj62.Locations = list130; reference94 = obj62; - ref GatheringNode reference95 = ref span74[1]; + num2++; + ref GatheringNode reference95 = ref span129[num2]; GatheringNode obj63 = new GatheringNode { DataId = 32281u }; - num3 = 1; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - CollectionsMarshal.AsSpan(list131)[0] = new GatheringLocation + num4 = 1; + List list131 = new List(num4); + CollectionsMarshal.SetCount(list131, num4); + Span span131 = CollectionsMarshal.AsSpan(list131); + num5 = 0; + span131[num5] = new GatheringLocation { Position = new Vector3(-377.4165f, -151.0521f, -211.4394f) }; @@ -8123,44 +9501,52 @@ public static class AssemblyGatheringLocationLoader reference95 = obj63; gatheringNodeGroup32.Nodes = list129; reference93 = gatheringNodeGroup32; - ref GatheringNodeGroup reference96 = ref span73[1]; + num++; + ref GatheringNodeGroup reference96 = ref span128[num]; GatheringNodeGroup gatheringNodeGroup33 = new GatheringNodeGroup(); num2 = 2; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span76 = CollectionsMarshal.AsSpan(list132); - ref GatheringNode reference97 = ref span76[0]; + Span span132 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + ref GatheringNode reference97 = ref span132[num3]; GatheringNode obj64 = new GatheringNode { DataId = 32277u }; - num3 = 1; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = new GatheringLocation + num5 = 1; + List list133 = new List(num5); + CollectionsMarshal.SetCount(list133, num5); + Span span133 = CollectionsMarshal.AsSpan(list133); + num4 = 0; + span133[num4] = new GatheringLocation { Position = new Vector3(-509.283f, -107.1854f, -389.3152f) }; obj64.Locations = list133; reference97 = obj64; - ref GatheringNode reference98 = ref span76[1]; + num3++; + ref GatheringNode reference98 = ref span132[num3]; GatheringNode obj65 = new GatheringNode { DataId = 32278u }; - num3 = 3; - List list134 = new List(num3); - CollectionsMarshal.SetCount(list134, num3); - Span span77 = CollectionsMarshal.AsSpan(list134); - span77[0] = new GatheringLocation + num4 = 3; + List list134 = new List(num4); + CollectionsMarshal.SetCount(list134, num4); + Span span134 = CollectionsMarshal.AsSpan(list134); + num5 = 0; + span134[num5] = new GatheringLocation { Position = new Vector3(-470.5726f, -93.28533f, -430.0346f) }; - span77[1] = new GatheringLocation + num5++; + span134[num5] = new GatheringLocation { Position = new Vector3(-549.3453f, -103.2194f, -352.9945f) }; - span77[2] = new GatheringLocation + num5++; + span134[num5] = new GatheringLocation { Position = new Vector3(-548.5269f, -99.45416f, -459.6198f) }; @@ -8168,21 +9554,25 @@ public static class AssemblyGatheringLocationLoader reference98 = obj65; gatheringNodeGroup33.Nodes = list132; reference96 = gatheringNodeGroup33; - ref GatheringNodeGroup reference99 = ref span73[2]; + num++; + ref GatheringNodeGroup reference99 = ref span128[num]; GatheringNodeGroup gatheringNodeGroup34 = new GatheringNodeGroup(); - num2 = 2; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - Span span78 = CollectionsMarshal.AsSpan(list135); - ref GatheringNode reference100 = ref span78[0]; + num3 = 2; + List list135 = new List(num3); + CollectionsMarshal.SetCount(list135, num3); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref GatheringNode reference100 = ref span135[num2]; GatheringNode obj66 = new GatheringNode { DataId = 32279u }; - num3 = 1; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - CollectionsMarshal.AsSpan(list136)[0] = new GatheringLocation + num5 = 1; + List list136 = new List(num5); + CollectionsMarshal.SetCount(list136, num5); + Span span136 = CollectionsMarshal.AsSpan(list136); + num4 = 0; + span136[num4] = new GatheringLocation { Position = new Vector3(-347.0872f, -72.09894f, -420.7435f), MinimumAngle = -80, @@ -8190,24 +9580,28 @@ public static class AssemblyGatheringLocationLoader }; obj66.Locations = list136; reference100 = obj66; - ref GatheringNode reference101 = ref span78[1]; + num2++; + ref GatheringNode reference101 = ref span135[num2]; GatheringNode obj67 = new GatheringNode { DataId = 32280u }; - num3 = 3; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - Span span79 = CollectionsMarshal.AsSpan(list137); - span79[0] = new GatheringLocation + num4 = 3; + List list137 = new List(num4); + CollectionsMarshal.SetCount(list137, num4); + Span span137 = CollectionsMarshal.AsSpan(list137); + num5 = 0; + span137[num5] = new GatheringLocation { Position = new Vector3(-410.6145f, -86.76735f, -432.2196f) }; - span79[1] = new GatheringLocation + num5++; + span137[num5] = new GatheringLocation { Position = new Vector3(-407.9324f, -108.0931f, -384.4449f) }; - span79[2] = new GatheringLocation + num5++; + span137[num5] = new GatheringLocation { Position = new Vector3(-341.0429f, -89.68655f, -396.5815f), MinimumAngle = -45, @@ -8223,12 +9617,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "liza"; + Span span138 = CollectionsMarshal.AsSpan(list138); + index = 0; + span138[index] = "liza"; gatheringRoot13.Author = list138; - num = 1; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.None, null, null, 620) + index = 1; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + Span span139 = CollectionsMarshal.AsSpan(list139); + num = 0; + span139[num] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -8236,22 +9634,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - Span span80 = CollectionsMarshal.AsSpan(list140); - ref GatheringNodeGroup reference102 = ref span80[0]; + Span span140 = CollectionsMarshal.AsSpan(list140); + index = 0; + ref GatheringNodeGroup reference102 = ref span140[index]; GatheringNodeGroup gatheringNodeGroup35 = new GatheringNodeGroup(); num2 = 2; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span81 = CollectionsMarshal.AsSpan(list141); - ref GatheringNode reference103 = ref span81[0]; + Span span141 = CollectionsMarshal.AsSpan(list141); + num3 = 0; + ref GatheringNode reference103 = ref span141[num3]; GatheringNode obj68 = new GatheringNode { DataId = 32286u }; - num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = new GatheringLocation + num5 = 1; + List list142 = new List(num5); + CollectionsMarshal.SetCount(list142, num5); + Span span142 = CollectionsMarshal.AsSpan(list142); + num4 = 0; + span142[num4] = new GatheringLocation { Position = new Vector3(720.7598f, 247.8707f, -571.472f), MinimumAngle = 115, @@ -8259,22 +9661,25 @@ public static class AssemblyGatheringLocationLoader }; obj68.Locations = list142; reference103 = obj68; - ref GatheringNode reference104 = ref span81[1]; + num3++; + ref GatheringNode reference104 = ref span141[num3]; GatheringNode obj69 = new GatheringNode { DataId = 32287u }; - num3 = 2; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - Span span82 = CollectionsMarshal.AsSpan(list143); - span82[0] = new GatheringLocation + num4 = 2; + List list143 = new List(num4); + CollectionsMarshal.SetCount(list143, num4); + Span span143 = CollectionsMarshal.AsSpan(list143); + num5 = 0; + span143[num5] = new GatheringLocation { Position = new Vector3(749.6198f, 250.0555f, -569.6151f), MinimumAngle = 160, MaximumAngle = 280 }; - span82[1] = new GatheringLocation + num5++; + span143[num5] = new GatheringLocation { Position = new Vector3(700.801f, 248.3289f, -569.3172f), MinimumAngle = 185, @@ -8284,28 +9689,32 @@ public static class AssemblyGatheringLocationLoader reference104 = obj69; gatheringNodeGroup35.Nodes = list141; reference102 = gatheringNodeGroup35; - ref GatheringNodeGroup reference105 = ref span80[1]; + index++; + ref GatheringNodeGroup reference105 = ref span140[index]; GatheringNodeGroup gatheringNodeGroup36 = new GatheringNodeGroup(); - num2 = 2; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - Span span83 = CollectionsMarshal.AsSpan(list144); - ref GatheringNode reference106 = ref span83[0]; + num3 = 2; + List list144 = new List(num3); + CollectionsMarshal.SetCount(list144, num3); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + ref GatheringNode reference106 = ref span144[num2]; GatheringNode obj70 = new GatheringNode { DataId = 32285u }; - num3 = 2; - List list145 = new List(num3); - CollectionsMarshal.SetCount(list145, num3); - Span span84 = CollectionsMarshal.AsSpan(list145); - span84[0] = new GatheringLocation + num5 = 2; + List list145 = new List(num5); + CollectionsMarshal.SetCount(list145, num5); + Span span145 = CollectionsMarshal.AsSpan(list145); + num4 = 0; + span145[num4] = new GatheringLocation { Position = new Vector3(792.5579f, 257.8186f, -661.4872f), MinimumAngle = 80, MaximumAngle = 155 }; - span84[1] = new GatheringLocation + num4++; + span145[num4] = new GatheringLocation { Position = new Vector3(773.1775f, 253.9753f, -671.3119f), MinimumAngle = -80, @@ -8313,15 +9722,18 @@ public static class AssemblyGatheringLocationLoader }; obj70.Locations = list145; reference106 = obj70; - ref GatheringNode reference107 = ref span83[1]; + num2++; + ref GatheringNode reference107 = ref span144[num2]; GatheringNode obj71 = new GatheringNode { DataId = 32284u }; - num3 = 1; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new GatheringLocation + num4 = 1; + List list146 = new List(num4); + CollectionsMarshal.SetCount(list146, num4); + Span span146 = CollectionsMarshal.AsSpan(list146); + num5 = 0; + span146[num5] = new GatheringLocation { Position = new Vector3(788.1879f, 257.4255f, -669.3115f), MinimumAngle = -50, @@ -8333,28 +9745,32 @@ public static class AssemblyGatheringLocationLoader reference107 = obj71; gatheringNodeGroup36.Nodes = list144; reference105 = gatheringNodeGroup36; - ref GatheringNodeGroup reference108 = ref span80[2]; + index++; + ref GatheringNodeGroup reference108 = ref span140[index]; GatheringNodeGroup gatheringNodeGroup37 = new GatheringNodeGroup(); num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span85 = CollectionsMarshal.AsSpan(list147); - ref GatheringNode reference109 = ref span85[0]; + Span span147 = CollectionsMarshal.AsSpan(list147); + num3 = 0; + ref GatheringNode reference109 = ref span147[num3]; GatheringNode obj72 = new GatheringNode { DataId = 32289u }; - num3 = 2; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - Span span86 = CollectionsMarshal.AsSpan(list148); - span86[0] = new GatheringLocation + num5 = 2; + List list148 = new List(num5); + CollectionsMarshal.SetCount(list148, num5); + Span span148 = CollectionsMarshal.AsSpan(list148); + num4 = 0; + span148[num4] = new GatheringLocation { Position = new Vector3(846.4332f, 262.9354f, -500.6171f), MinimumAngle = 40, MaximumAngle = 155 }; - span86[1] = new GatheringLocation + num4++; + span148[num4] = new GatheringLocation { Position = new Vector3(838.9346f, 262.0732f, -527.0631f), MinimumAngle = 60, @@ -8362,15 +9778,18 @@ public static class AssemblyGatheringLocationLoader }; obj72.Locations = list148; reference109 = obj72; - ref GatheringNode reference110 = ref span85[1]; + num3++; + ref GatheringNode reference110 = ref span147[num3]; GatheringNode obj73 = new GatheringNode { DataId = 32288u }; - num3 = 1; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = new GatheringLocation + num4 = 1; + List list149 = new List(num4); + CollectionsMarshal.SetCount(list149, num4); + Span span149 = CollectionsMarshal.AsSpan(list149); + num5 = 0; + span149[num5] = new GatheringLocation { Position = new Vector3(845.8228f, 263.8849f, -511.0472f), MinimumAngle = -30, @@ -8383,57 +9802,68 @@ public static class AssemblyGatheringLocationLoader gatheringRoot13.Groups = list140; AddLocation(531, gatheringRoot13); GatheringRoot gatheringRoot14 = new GatheringRoot(); - num = 1; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "liza"; + index = 1; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + Span span150 = CollectionsMarshal.AsSpan(list150); + num = 0; + span150[num] = "liza"; gatheringRoot14.Author = list150; num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.None, null, null, 620) + Span span151 = CollectionsMarshal.AsSpan(list151); + index = 0; + span151[index] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; gatheringRoot14.Steps = list151; - num = 3; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span87 = CollectionsMarshal.AsSpan(list152); - ref GatheringNodeGroup reference111 = ref span87[0]; + index = 3; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + Span span152 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref GatheringNodeGroup reference111 = ref span152[num]; GatheringNodeGroup gatheringNodeGroup38 = new GatheringNodeGroup(); - num2 = 2; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - Span span88 = CollectionsMarshal.AsSpan(list153); - ref GatheringNode reference112 = ref span88[0]; + num3 = 2; + List list153 = new List(num3); + CollectionsMarshal.SetCount(list153, num3); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + ref GatheringNode reference112 = ref span153[num2]; GatheringNode obj74 = new GatheringNode { DataId = 32292u }; - num3 = 1; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = new GatheringLocation + num5 = 1; + List list154 = new List(num5); + CollectionsMarshal.SetCount(list154, num5); + Span span154 = CollectionsMarshal.AsSpan(list154); + num4 = 0; + span154[num4] = new GatheringLocation { Position = new Vector3(-276.0765f, 74.99889f, -751.7645f) }; obj74.Locations = list154; reference112 = obj74; - ref GatheringNode reference113 = ref span88[1]; + num2++; + ref GatheringNode reference113 = ref span153[num2]; GatheringNode obj75 = new GatheringNode { DataId = 32293u }; - num3 = 2; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span89 = CollectionsMarshal.AsSpan(list155); - span89[0] = new GatheringLocation + num4 = 2; + List list155 = new List(num4); + CollectionsMarshal.SetCount(list155, num4); + Span span155 = CollectionsMarshal.AsSpan(list155); + num5 = 0; + span155[num5] = new GatheringLocation { Position = new Vector3(-291.6779f, 75.03039f, -740.0215f) }; - span89[1] = new GatheringLocation + num5++; + span155[num5] = new GatheringLocation { Position = new Vector3(-309.4909f, 74.66329f, -746.8633f) }; @@ -8441,40 +9871,47 @@ public static class AssemblyGatheringLocationLoader reference113 = obj75; gatheringNodeGroup38.Nodes = list153; reference111 = gatheringNodeGroup38; - ref GatheringNodeGroup reference114 = ref span87[1]; + num++; + ref GatheringNodeGroup reference114 = ref span152[num]; GatheringNodeGroup gatheringNodeGroup39 = new GatheringNodeGroup(); num2 = 2; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span90 = CollectionsMarshal.AsSpan(list156); - ref GatheringNode reference115 = ref span90[0]; + Span span156 = CollectionsMarshal.AsSpan(list156); + num3 = 0; + ref GatheringNode reference115 = ref span156[num3]; GatheringNode obj76 = new GatheringNode { DataId = 32290u }; - num3 = 1; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = new GatheringLocation + num5 = 1; + List list157 = new List(num5); + CollectionsMarshal.SetCount(list157, num5); + Span span157 = CollectionsMarshal.AsSpan(list157); + num4 = 0; + span157[num4] = new GatheringLocation { Position = new Vector3(-377.3709f, 59.22021f, -721.5839f) }; obj76.Locations = list157; reference115 = obj76; - ref GatheringNode reference116 = ref span90[1]; + num3++; + ref GatheringNode reference116 = ref span156[num3]; GatheringNode obj77 = new GatheringNode { DataId = 32291u }; - num3 = 2; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - Span span91 = CollectionsMarshal.AsSpan(list158); - span91[0] = new GatheringLocation + num4 = 2; + List list158 = new List(num4); + CollectionsMarshal.SetCount(list158, num4); + Span span158 = CollectionsMarshal.AsSpan(list158); + num5 = 0; + span158[num5] = new GatheringLocation { Position = new Vector3(-385.6718f, 59.15918f, -741.5427f) }; - span91[1] = new GatheringLocation + num5++; + span158[num5] = new GatheringLocation { Position = new Vector3(-409.1402f, 56.75652f, -746.273f) }; @@ -8482,40 +9919,47 @@ public static class AssemblyGatheringLocationLoader reference116 = obj77; gatheringNodeGroup39.Nodes = list156; reference114 = gatheringNodeGroup39; - ref GatheringNodeGroup reference117 = ref span87[2]; + num++; + ref GatheringNodeGroup reference117 = ref span152[num]; GatheringNodeGroup gatheringNodeGroup40 = new GatheringNodeGroup(); - num2 = 2; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span92 = CollectionsMarshal.AsSpan(list159); - ref GatheringNode reference118 = ref span92[0]; + num3 = 2; + List list159 = new List(num3); + CollectionsMarshal.SetCount(list159, num3); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + ref GatheringNode reference118 = ref span159[num2]; GatheringNode obj78 = new GatheringNode { DataId = 32295u }; - num3 = 2; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - Span span93 = CollectionsMarshal.AsSpan(list160); - span93[0] = new GatheringLocation + num5 = 2; + List list160 = new List(num5); + CollectionsMarshal.SetCount(list160, num5); + Span span160 = CollectionsMarshal.AsSpan(list160); + num4 = 0; + span160[num4] = new GatheringLocation { Position = new Vector3(-456.0745f, 57.47042f, -804.0213f) }; - span93[1] = new GatheringLocation + num4++; + span160[num4] = new GatheringLocation { Position = new Vector3(-455.9548f, 57.93848f, -785.8549f) }; obj78.Locations = list160; reference118 = obj78; - ref GatheringNode reference119 = ref span92[1]; + num2++; + ref GatheringNode reference119 = ref span159[num2]; GatheringNode obj79 = new GatheringNode { DataId = 32294u }; - num3 = 1; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - CollectionsMarshal.AsSpan(list161)[0] = new GatheringLocation + num4 = 1; + List list161 = new List(num4); + CollectionsMarshal.SetCount(list161, num4); + Span span161 = CollectionsMarshal.AsSpan(list161); + num5 = 0; + span161[num5] = new GatheringLocation { Position = new Vector3(-472.6482f, 57.45007f, -798.8556f) }; @@ -8529,12 +9973,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "liza"; + Span span162 = CollectionsMarshal.AsSpan(list162); + index = 0; + span162[index] = "liza"; gatheringRoot15.Author = list162; - num = 1; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.None, null, null, 613) + index = 1; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + Span span163 = CollectionsMarshal.AsSpan(list163); + num = 0; + span163[num] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -8548,22 +9996,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list164 = new List(num); CollectionsMarshal.SetCount(list164, num); - Span span94 = CollectionsMarshal.AsSpan(list164); - ref GatheringNodeGroup reference120 = ref span94[0]; + Span span164 = CollectionsMarshal.AsSpan(list164); + index = 0; + ref GatheringNodeGroup reference120 = ref span164[index]; GatheringNodeGroup gatheringNodeGroup41 = new GatheringNodeGroup(); num2 = 2; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span95 = CollectionsMarshal.AsSpan(list165); - ref GatheringNode reference121 = ref span95[0]; + Span span165 = CollectionsMarshal.AsSpan(list165); + num3 = 0; + ref GatheringNode reference121 = ref span165[num3]; GatheringNode obj80 = new GatheringNode { DataId = 32296u }; - num3 = 1; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - CollectionsMarshal.AsSpan(list166)[0] = new GatheringLocation + num5 = 1; + List list166 = new List(num5); + CollectionsMarshal.SetCount(list166, num5); + Span span166 = CollectionsMarshal.AsSpan(list166); + num4 = 0; + span166[num4] = new GatheringLocation { Position = new Vector3(-216.1387f, 0.6300181f, 616.7697f), MinimumAngle = 180, @@ -8571,16 +10023,18 @@ public static class AssemblyGatheringLocationLoader }; obj80.Locations = list166; reference121 = obj80; - ref GatheringNode reference122 = ref span95[1]; + num3++; + ref GatheringNode reference122 = ref span165[num3]; GatheringNode obj81 = new GatheringNode { DataId = 32297u }; - num3 = 2; - List list167 = new List(num3); - CollectionsMarshal.SetCount(list167, num3); - Span span96 = CollectionsMarshal.AsSpan(list167); - span96[0] = new GatheringLocation + num4 = 2; + List list167 = new List(num4); + CollectionsMarshal.SetCount(list167, num4); + Span span167 = CollectionsMarshal.AsSpan(list167); + num5 = 0; + span167[num5] = new GatheringLocation { Position = new Vector3(-236.5302f, 0.503479f, 634.821f), MinimumAngle = 45, @@ -8588,7 +10042,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.6f, MaximumDistance = 3f }; - span96[1] = new GatheringLocation + num5++; + span167[num5] = new GatheringLocation { Position = new Vector3(-242.0282f, 1.464991f, 649.7866f), MinimumAngle = -20, @@ -8598,21 +10053,25 @@ public static class AssemblyGatheringLocationLoader reference122 = obj81; gatheringNodeGroup41.Nodes = list165; reference120 = gatheringNodeGroup41; - ref GatheringNodeGroup reference123 = ref span94[1]; + index++; + ref GatheringNodeGroup reference123 = ref span164[index]; GatheringNodeGroup gatheringNodeGroup42 = new GatheringNodeGroup(); - num2 = 2; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - Span span97 = CollectionsMarshal.AsSpan(list168); - ref GatheringNode reference124 = ref span97[0]; + num3 = 2; + List list168 = new List(num3); + CollectionsMarshal.SetCount(list168, num3); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + ref GatheringNode reference124 = ref span168[num2]; GatheringNode obj82 = new GatheringNode { DataId = 32298u }; - num3 = 1; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - CollectionsMarshal.AsSpan(list169)[0] = new GatheringLocation + num5 = 1; + List list169 = new List(num5); + CollectionsMarshal.SetCount(list169, num5); + Span span169 = CollectionsMarshal.AsSpan(list169); + num4 = 0; + span169[num4] = new GatheringLocation { Position = new Vector3(-267.9128f, 0.6036554f, 722.319f), MinimumAngle = 230, @@ -8620,22 +10079,25 @@ public static class AssemblyGatheringLocationLoader }; obj82.Locations = list169; reference124 = obj82; - ref GatheringNode reference125 = ref span97[1]; + num2++; + ref GatheringNode reference125 = ref span168[num2]; GatheringNode obj83 = new GatheringNode { DataId = 32299u }; - num3 = 2; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - Span span98 = CollectionsMarshal.AsSpan(list170); - span98[0] = new GatheringLocation + num4 = 2; + List list170 = new List(num4); + CollectionsMarshal.SetCount(list170, num4); + Span span170 = CollectionsMarshal.AsSpan(list170); + num5 = 0; + span170[num5] = new GatheringLocation { Position = new Vector3(-275.2201f, 1.438162f, 727.0667f), MinimumAngle = 0, MaximumAngle = 105 }; - span98[1] = new GatheringLocation + num5++; + span170[num5] = new GatheringLocation { Position = new Vector3(-277.8375f, 2.060616f, 721.6605f), MinimumAngle = 20, @@ -8645,21 +10107,25 @@ public static class AssemblyGatheringLocationLoader reference125 = obj83; gatheringNodeGroup42.Nodes = list168; reference123 = gatheringNodeGroup42; - ref GatheringNodeGroup reference126 = ref span94[2]; + index++; + ref GatheringNodeGroup reference126 = ref span164[index]; GatheringNodeGroup gatheringNodeGroup43 = new GatheringNodeGroup(); num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span99 = CollectionsMarshal.AsSpan(list171); - ref GatheringNode reference127 = ref span99[0]; + Span span171 = CollectionsMarshal.AsSpan(list171); + num3 = 0; + ref GatheringNode reference127 = ref span171[num3]; GatheringNode obj84 = new GatheringNode { DataId = 32300u }; - num3 = 1; - List list172 = new List(num3); - CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = new GatheringLocation + num5 = 1; + List list172 = new List(num5); + CollectionsMarshal.SetCount(list172, num5); + Span span172 = CollectionsMarshal.AsSpan(list172); + num4 = 0; + span172[num4] = new GatheringLocation { Position = new Vector3(-148.4246f, 11.42871f, 776.8299f), MinimumAngle = 105, @@ -8667,22 +10133,25 @@ public static class AssemblyGatheringLocationLoader }; obj84.Locations = list172; reference127 = obj84; - ref GatheringNode reference128 = ref span99[1]; + num3++; + ref GatheringNode reference128 = ref span171[num3]; GatheringNode obj85 = new GatheringNode { DataId = 32301u }; - num3 = 2; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - Span span100 = CollectionsMarshal.AsSpan(list173); - span100[0] = new GatheringLocation + num4 = 2; + List list173 = new List(num4); + CollectionsMarshal.SetCount(list173, num4); + Span span173 = CollectionsMarshal.AsSpan(list173); + num5 = 0; + span173[num5] = new GatheringLocation { Position = new Vector3(-135.4789f, 11.61927f, 765.4382f), MinimumAngle = 45, MaximumAngle = 155 }; - span100[1] = new GatheringLocation + num5++; + span173[num5] = new GatheringLocation { Position = new Vector3(-169.3294f, 11.36792f, 784.0237f), MinimumAngle = 85, @@ -8695,57 +10164,68 @@ public static class AssemblyGatheringLocationLoader gatheringRoot15.Groups = list164; AddLocation(533, gatheringRoot15); GatheringRoot gatheringRoot16 = new GatheringRoot(); - num = 1; - List list174 = new List(num); - CollectionsMarshal.SetCount(list174, num); - CollectionsMarshal.AsSpan(list174)[0] = "liza"; + index = 1; + List list174 = new List(index); + CollectionsMarshal.SetCount(list174, index); + Span span174 = CollectionsMarshal.AsSpan(list174); + num = 0; + span174[num] = "liza"; gatheringRoot16.Author = list174; num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.None, null, null, 613) + Span span175 = CollectionsMarshal.AsSpan(list175); + index = 0; + span175[index] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; gatheringRoot16.Steps = list175; - num = 3; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span101 = CollectionsMarshal.AsSpan(list176); - ref GatheringNodeGroup reference129 = ref span101[0]; + index = 3; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + Span span176 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref GatheringNodeGroup reference129 = ref span176[num]; GatheringNodeGroup gatheringNodeGroup44 = new GatheringNodeGroup(); - num2 = 2; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - Span span102 = CollectionsMarshal.AsSpan(list177); - ref GatheringNode reference130 = ref span102[0]; + num3 = 2; + List list177 = new List(num3); + CollectionsMarshal.SetCount(list177, num3); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + ref GatheringNode reference130 = ref span177[num2]; GatheringNode obj86 = new GatheringNode { DataId = 32302u }; - num3 = 1; - List list178 = new List(num3); - CollectionsMarshal.SetCount(list178, num3); - CollectionsMarshal.AsSpan(list178)[0] = new GatheringLocation + num5 = 1; + List list178 = new List(num5); + CollectionsMarshal.SetCount(list178, num5); + Span span178 = CollectionsMarshal.AsSpan(list178); + num4 = 0; + span178[num4] = new GatheringLocation { Position = new Vector3(831.4452f, 48.62377f, -131.4108f) }; obj86.Locations = list178; reference130 = obj86; - ref GatheringNode reference131 = ref span102[1]; + num2++; + ref GatheringNode reference131 = ref span177[num2]; GatheringNode obj87 = new GatheringNode { DataId = 32303u }; - num3 = 2; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - Span span103 = CollectionsMarshal.AsSpan(list179); - span103[0] = new GatheringLocation + num4 = 2; + List list179 = new List(num4); + CollectionsMarshal.SetCount(list179, num4); + Span span179 = CollectionsMarshal.AsSpan(list179); + num5 = 0; + span179[num5] = new GatheringLocation { Position = new Vector3(865.9036f, 46.76892f, -129.9611f) }; - span103[1] = new GatheringLocation + num5++; + span179[num5] = new GatheringLocation { Position = new Vector3(822.6691f, 48.57434f, -130.6889f) }; @@ -8753,40 +10233,47 @@ public static class AssemblyGatheringLocationLoader reference131 = obj87; gatheringNodeGroup44.Nodes = list177; reference129 = gatheringNodeGroup44; - ref GatheringNodeGroup reference132 = ref span101[1]; + num++; + ref GatheringNodeGroup reference132 = ref span176[num]; GatheringNodeGroup gatheringNodeGroup45 = new GatheringNodeGroup(); num2 = 2; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span104 = CollectionsMarshal.AsSpan(list180); - ref GatheringNode reference133 = ref span104[0]; + Span span180 = CollectionsMarshal.AsSpan(list180); + num3 = 0; + ref GatheringNode reference133 = ref span180[num3]; GatheringNode obj88 = new GatheringNode { DataId = 32305u }; - num3 = 2; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span105 = CollectionsMarshal.AsSpan(list181); - span105[0] = new GatheringLocation + num5 = 2; + List list181 = new List(num5); + CollectionsMarshal.SetCount(list181, num5); + Span span181 = CollectionsMarshal.AsSpan(list181); + num4 = 0; + span181[num4] = new GatheringLocation { Position = new Vector3(780.787f, 51.3394f, -265.6496f) }; - span105[1] = new GatheringLocation + num4++; + span181[num4] = new GatheringLocation { Position = new Vector3(824.1245f, 40.93994f, -250.4464f) }; obj88.Locations = list181; reference133 = obj88; - ref GatheringNode reference134 = ref span104[1]; + num3++; + ref GatheringNode reference134 = ref span180[num3]; GatheringNode obj89 = new GatheringNode { DataId = 32304u }; - num3 = 1; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - CollectionsMarshal.AsSpan(list182)[0] = new GatheringLocation + num4 = 1; + List list182 = new List(num4); + CollectionsMarshal.SetCount(list182, num4); + Span span182 = CollectionsMarshal.AsSpan(list182); + num5 = 0; + span182[num5] = new GatheringLocation { Position = new Vector3(816.6475f, 41.2146f, -263.6606f) }; @@ -8794,21 +10281,25 @@ public static class AssemblyGatheringLocationLoader reference134 = obj89; gatheringNodeGroup45.Nodes = list180; reference132 = gatheringNodeGroup45; - ref GatheringNodeGroup reference135 = ref span101[2]; + num++; + ref GatheringNodeGroup reference135 = ref span176[num]; GatheringNodeGroup gatheringNodeGroup46 = new GatheringNodeGroup(); - num2 = 2; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - Span span106 = CollectionsMarshal.AsSpan(list183); - ref GatheringNode reference136 = ref span106[0]; + num3 = 2; + List list183 = new List(num3); + CollectionsMarshal.SetCount(list183, num3); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + ref GatheringNode reference136 = ref span183[num2]; GatheringNode obj90 = new GatheringNode { DataId = 32306u }; - num3 = 1; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - CollectionsMarshal.AsSpan(list184)[0] = new GatheringLocation + num5 = 1; + List list184 = new List(num5); + CollectionsMarshal.SetCount(list184, num5); + Span span184 = CollectionsMarshal.AsSpan(list184); + num4 = 0; + span184[num4] = new GatheringLocation { Position = new Vector3(648.2073f, 75.29906f, -226.7926f), MinimumAngle = 25, @@ -8816,20 +10307,23 @@ public static class AssemblyGatheringLocationLoader }; obj90.Locations = list184; reference136 = obj90; - ref GatheringNode reference137 = ref span106[1]; + num2++; + ref GatheringNode reference137 = ref span183[num2]; GatheringNode obj91 = new GatheringNode { DataId = 32307u }; - num3 = 2; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - Span span107 = CollectionsMarshal.AsSpan(list185); - span107[0] = new GatheringLocation + num4 = 2; + List list185 = new List(num4); + CollectionsMarshal.SetCount(list185, num4); + Span span185 = CollectionsMarshal.AsSpan(list185); + num5 = 0; + span185[num5] = new GatheringLocation { Position = new Vector3(652.0435f, 71.82505f, -241.2778f) }; - span107[1] = new GatheringLocation + num5++; + span185[num5] = new GatheringLocation { Position = new Vector3(645.0362f, 69.79202f, -255.1373f) }; @@ -8843,12 +10337,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "liza"; + Span span186 = CollectionsMarshal.AsSpan(list186); + index = 0; + span186[index] = "liza"; gatheringRoot17.Author = list186; - num = 1; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.None, null, null, 613) + index = 1; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + Span span187 = CollectionsMarshal.AsSpan(list187); + num = 0; + span187[num] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -8856,33 +10354,40 @@ public static class AssemblyGatheringLocationLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - ref GatheringNodeGroup reference138 = ref CollectionsMarshal.AsSpan(list188)[0]; + Span span188 = CollectionsMarshal.AsSpan(list188); + index = 0; + ref GatheringNodeGroup reference138 = ref span188[index]; GatheringNodeGroup gatheringNodeGroup47 = new GatheringNodeGroup(); num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - ref GatheringNode reference139 = ref CollectionsMarshal.AsSpan(list189)[0]; + Span span189 = CollectionsMarshal.AsSpan(list189); + num3 = 0; + ref GatheringNode reference139 = ref span189[num3]; GatheringNode obj92 = new GatheringNode { DataId = 32308u }; - num3 = 3; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - Span span108 = CollectionsMarshal.AsSpan(list190); - span108[0] = new GatheringLocation + num5 = 3; + List list190 = new List(num5); + CollectionsMarshal.SetCount(list190, num5); + Span span190 = CollectionsMarshal.AsSpan(list190); + num4 = 0; + span190[num4] = new GatheringLocation { Position = new Vector3(-531.8166f, 16.39526f, 34.16671f), MinimumAngle = 245, MaximumAngle = 325 }; - span108[1] = new GatheringLocation + num4++; + span190[num4] = new GatheringLocation { Position = new Vector3(-532.9277f, 15.60621f, 50.29741f), MinimumAngle = 190, MaximumAngle = 330 }; - span108[2] = new GatheringLocation + num4++; + span190[num4] = new GatheringLocation { Position = new Vector3(-520.6714f, 14.15115f, 73.84262f), MinimumAngle = 105, @@ -8895,34 +10400,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot17.Groups = list188; AddLocation(535, gatheringRoot17); GatheringRoot gatheringRoot18 = new GatheringRoot(); - num = 1; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "Theo"; + index = 1; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + Span span191 = CollectionsMarshal.AsSpan(list191); + num = 0; + span191[num] = "Theo"; gatheringRoot18.Author = list191; num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.None, null, null, 622); + Span span192 = CollectionsMarshal.AsSpan(list192); + index = 0; + span192[index] = new QuestStep(EInteractionType.None, null, null, 622); gatheringRoot18.Steps = list192; - num = 1; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - ref GatheringNodeGroup reference140 = ref CollectionsMarshal.AsSpan(list193)[0]; + index = 1; + List list193 = new List(index); + CollectionsMarshal.SetCount(list193, index); + Span span193 = CollectionsMarshal.AsSpan(list193); + num = 0; + ref GatheringNodeGroup reference140 = ref span193[num]; GatheringNodeGroup gatheringNodeGroup48 = new GatheringNodeGroup(); - num2 = 3; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span109 = CollectionsMarshal.AsSpan(list194); - ref GatheringNode reference141 = ref span109[0]; + num3 = 3; + List list194 = new List(num3); + CollectionsMarshal.SetCount(list194, num3); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + ref GatheringNode reference141 = ref span194[num2]; GatheringNode obj93 = new GatheringNode { DataId = 32314u }; - num3 = 1; - List list195 = new List(num3); - CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = new GatheringLocation + num4 = 1; + List list195 = new List(num4); + CollectionsMarshal.SetCount(list195, num4); + Span span195 = CollectionsMarshal.AsSpan(list195); + num5 = 0; + span195[num5] = new GatheringLocation { Position = new Vector3(-506.7959f, 67.50204f, -406.9001f), MinimumAngle = 5, @@ -8932,15 +10446,18 @@ public static class AssemblyGatheringLocationLoader }; obj93.Locations = list195; reference141 = obj93; - ref GatheringNode reference142 = ref span109[1]; + num2++; + ref GatheringNode reference142 = ref span194[num2]; GatheringNode obj94 = new GatheringNode { DataId = 32315u }; - num3 = 1; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = new GatheringLocation + num5 = 1; + List list196 = new List(num5); + CollectionsMarshal.SetCount(list196, num5); + Span span196 = CollectionsMarshal.AsSpan(list196); + num4 = 0; + span196[num4] = new GatheringLocation { Position = new Vector3(-505.4885f, 67.502f, -397.644f), MinimumAngle = -20, @@ -8950,15 +10467,18 @@ public static class AssemblyGatheringLocationLoader }; obj94.Locations = list196; reference142 = obj94; - ref GatheringNode reference143 = ref span109[2]; + num2++; + ref GatheringNode reference143 = ref span194[num2]; GatheringNode obj95 = new GatheringNode { DataId = 32316u }; - num3 = 1; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new GatheringLocation + num4 = 1; + List list197 = new List(num4); + CollectionsMarshal.SetCount(list197, num4); + Span span197 = CollectionsMarshal.AsSpan(list197); + num5 = 0; + span197[num5] = new GatheringLocation { Position = new Vector3(-501.4457f, 67.48835f, -391.6048f), MinimumAngle = -50, @@ -8976,31 +10496,40 @@ public static class AssemblyGatheringLocationLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "Theo"; + Span span198 = CollectionsMarshal.AsSpan(list198); + index = 0; + span198[index] = "Theo"; gatheringRoot19.Author = list198; - num = 1; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.None, null, null, 622); + index = 1; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + Span span199 = CollectionsMarshal.AsSpan(list199); + num = 0; + span199[num] = new QuestStep(EInteractionType.None, null, null, 622); gatheringRoot19.Steps = list199; num = 3; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - Span span110 = CollectionsMarshal.AsSpan(list200); - ref GatheringNodeGroup reference144 = ref span110[0]; + Span span200 = CollectionsMarshal.AsSpan(list200); + index = 0; + ref GatheringNodeGroup reference144 = ref span200[index]; GatheringNodeGroup gatheringNodeGroup49 = new GatheringNodeGroup(); num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - ref GatheringNode reference145 = ref CollectionsMarshal.AsSpan(list201)[0]; + Span span201 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + ref GatheringNode reference145 = ref span201[num3]; GatheringNode obj96 = new GatheringNode { DataId = 32320u }; - num3 = 1; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = new GatheringLocation + num5 = 1; + List list202 = new List(num5); + CollectionsMarshal.SetCount(list202, num5); + Span span202 = CollectionsMarshal.AsSpan(list202); + num4 = 0; + span202[num4] = new GatheringLocation { Position = new Vector3(609.3118f, -21.51083f, 558.524f), MinimumAngle = 90, @@ -9011,20 +10540,25 @@ public static class AssemblyGatheringLocationLoader reference145 = obj96; gatheringNodeGroup49.Nodes = list201; reference144 = gatheringNodeGroup49; - ref GatheringNodeGroup reference146 = ref span110[1]; + index++; + ref GatheringNodeGroup reference146 = ref span200[index]; GatheringNodeGroup gatheringNodeGroup50 = new GatheringNodeGroup(); - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - ref GatheringNode reference147 = ref CollectionsMarshal.AsSpan(list203)[0]; + num3 = 1; + List list203 = new List(num3); + CollectionsMarshal.SetCount(list203, num3); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + ref GatheringNode reference147 = ref span203[num2]; GatheringNode obj97 = new GatheringNode { DataId = 32321u }; - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = new GatheringLocation + num4 = 1; + List list204 = new List(num4); + CollectionsMarshal.SetCount(list204, num4); + Span span204 = CollectionsMarshal.AsSpan(list204); + num5 = 0; + span204[num5] = new GatheringLocation { Position = new Vector3(609.9794f, -21.53052f, 579.6443f), MinimumAngle = 90, @@ -9035,20 +10569,25 @@ public static class AssemblyGatheringLocationLoader reference147 = obj97; gatheringNodeGroup50.Nodes = list203; reference146 = gatheringNodeGroup50; - ref GatheringNodeGroup reference148 = ref span110[2]; + index++; + ref GatheringNodeGroup reference148 = ref span200[index]; GatheringNodeGroup gatheringNodeGroup51 = new GatheringNodeGroup(); num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - ref GatheringNode reference149 = ref CollectionsMarshal.AsSpan(list205)[0]; + Span span205 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + ref GatheringNode reference149 = ref span205[num3]; GatheringNode obj98 = new GatheringNode { DataId = 32322u }; - num3 = 1; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = new GatheringLocation + num5 = 1; + List list206 = new List(num5); + CollectionsMarshal.SetCount(list206, num5); + Span span206 = CollectionsMarshal.AsSpan(list206); + num4 = 0; + span206[num4] = new GatheringLocation { Position = new Vector3(588.3865f, -20.42655f, 561.5663f), MinimumAngle = 45, @@ -9062,37 +10601,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot19.Groups = list200; AddLocation(543, gatheringRoot19); GatheringRoot gatheringRoot20 = new GatheringRoot(); - num = 1; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "plogon_enjoyer"; + index = 1; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + Span span207 = CollectionsMarshal.AsSpan(list207); + num = 0; + span207[num] = "plogon_enjoyer"; gatheringRoot20.Author = list207; num = 1; List list208 = new List(num); CollectionsMarshal.SetCount(list208, num); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.None, null, null, 622) + Span span208 = CollectionsMarshal.AsSpan(list208); + index = 0; + span208[index] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; gatheringRoot20.Steps = list208; - num = 3; - List list209 = new List(num); - CollectionsMarshal.SetCount(list209, num); - Span span111 = CollectionsMarshal.AsSpan(list209); - ref GatheringNodeGroup reference150 = ref span111[0]; + index = 3; + List list209 = new List(index); + CollectionsMarshal.SetCount(list209, index); + Span span209 = CollectionsMarshal.AsSpan(list209); + num = 0; + ref GatheringNodeGroup reference150 = ref span209[num]; GatheringNodeGroup gatheringNodeGroup52 = new GatheringNodeGroup(); - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - ref GatheringNode reference151 = ref CollectionsMarshal.AsSpan(list210)[0]; + num3 = 1; + List list210 = new List(num3); + CollectionsMarshal.SetCount(list210, num3); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + ref GatheringNode reference151 = ref span210[num2]; GatheringNode obj99 = new GatheringNode { DataId = 32323u }; - num3 = 1; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new GatheringLocation + num4 = 1; + List list211 = new List(num4); + CollectionsMarshal.SetCount(list211, num4); + Span span211 = CollectionsMarshal.AsSpan(list211); + num5 = 0; + span211[num5] = new GatheringLocation { Position = new Vector3(-54.36381f, 55.83623f, -357.2043f) }; @@ -9100,20 +10648,25 @@ public static class AssemblyGatheringLocationLoader reference151 = obj99; gatheringNodeGroup52.Nodes = list210; reference150 = gatheringNodeGroup52; - ref GatheringNodeGroup reference152 = ref span111[1]; + num++; + ref GatheringNodeGroup reference152 = ref span209[num]; GatheringNodeGroup gatheringNodeGroup53 = new GatheringNodeGroup(); num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - ref GatheringNode reference153 = ref CollectionsMarshal.AsSpan(list212)[0]; + Span span212 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + ref GatheringNode reference153 = ref span212[num3]; GatheringNode obj100 = new GatheringNode { DataId = 32325u }; - num3 = 1; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = new GatheringLocation + num5 = 1; + List list213 = new List(num5); + CollectionsMarshal.SetCount(list213, num5); + Span span213 = CollectionsMarshal.AsSpan(list213); + num4 = 0; + span213[num4] = new GatheringLocation { Position = new Vector3(-56.99122f, 59.4855f, -368.9053f) }; @@ -9121,20 +10674,25 @@ public static class AssemblyGatheringLocationLoader reference153 = obj100; gatheringNodeGroup53.Nodes = list212; reference152 = gatheringNodeGroup53; - ref GatheringNodeGroup reference154 = ref span111[2]; + num++; + ref GatheringNodeGroup reference154 = ref span209[num]; GatheringNodeGroup gatheringNodeGroup54 = new GatheringNodeGroup(); - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - ref GatheringNode reference155 = ref CollectionsMarshal.AsSpan(list214)[0]; + num3 = 1; + List list214 = new List(num3); + CollectionsMarshal.SetCount(list214, num3); + Span span214 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + ref GatheringNode reference155 = ref span214[num2]; GatheringNode obj101 = new GatheringNode { DataId = 32324u }; - num3 = 1; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = new GatheringLocation + num4 = 1; + List list215 = new List(num4); + CollectionsMarshal.SetCount(list215, num4); + Span span215 = CollectionsMarshal.AsSpan(list215); + num5 = 0; + span215[num5] = new GatheringLocation { Position = new Vector3(-83.84797f, 60.70433f, -366.7615f) }; @@ -9148,12 +10706,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list216 = new List(num); CollectionsMarshal.SetCount(list216, num); - CollectionsMarshal.AsSpan(list216)[0] = "plogon_enjoyer"; + Span span216 = CollectionsMarshal.AsSpan(list216); + index = 0; + span216[index] = "plogon_enjoyer"; gatheringRoot21.Author = list216; - num = 1; - List list217 = new List(num); - CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.None, null, null, 622) + index = 1; + List list217 = new List(index); + CollectionsMarshal.SetCount(list217, index); + Span span217 = CollectionsMarshal.AsSpan(list217); + num = 0; + span217[num] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; @@ -9161,21 +10723,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - Span span112 = CollectionsMarshal.AsSpan(list218); - ref GatheringNodeGroup reference156 = ref span112[0]; + Span span218 = CollectionsMarshal.AsSpan(list218); + index = 0; + ref GatheringNodeGroup reference156 = ref span218[index]; GatheringNodeGroup gatheringNodeGroup55 = new GatheringNodeGroup(); num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - ref GatheringNode reference157 = ref CollectionsMarshal.AsSpan(list219)[0]; + Span span219 = CollectionsMarshal.AsSpan(list219); + num3 = 0; + ref GatheringNode reference157 = ref span219[num3]; GatheringNode obj102 = new GatheringNode { DataId = 32335u }; - num3 = 1; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - CollectionsMarshal.AsSpan(list220)[0] = new GatheringLocation + num5 = 1; + List list220 = new List(num5); + CollectionsMarshal.SetCount(list220, num5); + Span span220 = CollectionsMarshal.AsSpan(list220); + num4 = 0; + span220[num4] = new GatheringLocation { Position = new Vector3(-80.14488f, 58.18221f, -358.3333f) }; @@ -9183,20 +10750,25 @@ public static class AssemblyGatheringLocationLoader reference157 = obj102; gatheringNodeGroup55.Nodes = list219; reference156 = gatheringNodeGroup55; - ref GatheringNodeGroup reference158 = ref span112[1]; + index++; + ref GatheringNodeGroup reference158 = ref span218[index]; GatheringNodeGroup gatheringNodeGroup56 = new GatheringNodeGroup(); - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - ref GatheringNode reference159 = ref CollectionsMarshal.AsSpan(list221)[0]; + num3 = 1; + List list221 = new List(num3); + CollectionsMarshal.SetCount(list221, num3); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + ref GatheringNode reference159 = ref span221[num2]; GatheringNode obj103 = new GatheringNode { DataId = 32336u }; - num3 = 1; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = new GatheringLocation + num4 = 1; + List list222 = new List(num4); + CollectionsMarshal.SetCount(list222, num4); + Span span222 = CollectionsMarshal.AsSpan(list222); + num5 = 0; + span222[num5] = new GatheringLocation { Position = new Vector3(-58.9046f, 52.59887f, -350.7942f) }; @@ -9204,20 +10776,25 @@ public static class AssemblyGatheringLocationLoader reference159 = obj103; gatheringNodeGroup56.Nodes = list221; reference158 = gatheringNodeGroup56; - ref GatheringNodeGroup reference160 = ref span112[2]; + index++; + ref GatheringNodeGroup reference160 = ref span218[index]; GatheringNodeGroup gatheringNodeGroup57 = new GatheringNodeGroup(); num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - ref GatheringNode reference161 = ref CollectionsMarshal.AsSpan(list223)[0]; + Span span223 = CollectionsMarshal.AsSpan(list223); + num3 = 0; + ref GatheringNode reference161 = ref span223[num3]; GatheringNode obj104 = new GatheringNode { DataId = 32337u }; - num3 = 1; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = new GatheringLocation + num5 = 1; + List list224 = new List(num5); + CollectionsMarshal.SetCount(list224, num5); + Span span224 = CollectionsMarshal.AsSpan(list224); + num4 = 0; + span224[num4] = new GatheringLocation { Position = new Vector3(-81.5958f, 51.05495f, -334.9854f) }; @@ -9228,45 +10805,53 @@ public static class AssemblyGatheringLocationLoader gatheringRoot21.Groups = list218; AddLocation(548, gatheringRoot21); GatheringRoot gatheringRoot22 = new GatheringRoot(); - num = 1; - List list225 = new List(num); - CollectionsMarshal.SetCount(list225, num); - CollectionsMarshal.AsSpan(list225)[0] = "liza"; + index = 1; + List list225 = new List(index); + CollectionsMarshal.SetCount(list225, index); + Span span225 = CollectionsMarshal.AsSpan(list225); + num = 0; + span225[num] = "liza"; gatheringRoot22.Author = list225; num = 1; List list226 = new List(num); CollectionsMarshal.SetCount(list226, num); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.None, null, null, 397) + Span span226 = CollectionsMarshal.AsSpan(list226); + index = 0; + span226[index] = new QuestStep(EInteractionType.None, null, null, 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; gatheringRoot22.Steps = list226; - num = 3; - List list227 = new List(num); - CollectionsMarshal.SetCount(list227, num); - Span span113 = CollectionsMarshal.AsSpan(list227); - ref GatheringNodeGroup reference162 = ref span113[0]; + index = 3; + List list227 = new List(index); + CollectionsMarshal.SetCount(list227, index); + Span span227 = CollectionsMarshal.AsSpan(list227); + num = 0; + ref GatheringNodeGroup reference162 = ref span227[num]; GatheringNodeGroup gatheringNodeGroup58 = new GatheringNodeGroup(); - num2 = 2; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span114 = CollectionsMarshal.AsSpan(list228); - ref GatheringNode reference163 = ref span114[0]; + num3 = 2; + List list228 = new List(num3); + CollectionsMarshal.SetCount(list228, num3); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + ref GatheringNode reference163 = ref span228[num2]; GatheringNode obj105 = new GatheringNode { DataId = 32349u }; - num3 = 2; - List list229 = new List(num3); - CollectionsMarshal.SetCount(list229, num3); - Span span115 = CollectionsMarshal.AsSpan(list229); - span115[0] = new GatheringLocation + num4 = 2; + List list229 = new List(num4); + CollectionsMarshal.SetCount(list229, num4); + Span span229 = CollectionsMarshal.AsSpan(list229); + num5 = 0; + span229[num5] = new GatheringLocation { Position = new Vector3(63.68f, 227.89f, 570.31f), MinimumAngle = 140, MaximumAngle = 275 }; - span115[1] = new GatheringLocation + num5++; + span229[num5] = new GatheringLocation { Position = new Vector3(100.3585f, 236.1064f, 551.248f), MinimumAngle = 110, @@ -9274,15 +10859,18 @@ public static class AssemblyGatheringLocationLoader }; obj105.Locations = list229; reference163 = obj105; - ref GatheringNode reference164 = ref span114[1]; + num2++; + ref GatheringNode reference164 = ref span228[num2]; GatheringNode obj106 = new GatheringNode { DataId = 32348u }; - num3 = 1; - List list230 = new List(num3); - CollectionsMarshal.SetCount(list230, num3); - CollectionsMarshal.AsSpan(list230)[0] = new GatheringLocation + num5 = 1; + List list230 = new List(num5); + CollectionsMarshal.SetCount(list230, num5); + Span span230 = CollectionsMarshal.AsSpan(list230); + num4 = 0; + span230[num4] = new GatheringLocation { Position = new Vector3(68.42817f, 226.018f, 558.3953f), MinimumAngle = -15, @@ -9292,21 +10880,25 @@ public static class AssemblyGatheringLocationLoader reference164 = obj106; gatheringNodeGroup58.Nodes = list228; reference162 = gatheringNodeGroup58; - ref GatheringNodeGroup reference165 = ref span113[1]; + num++; + ref GatheringNodeGroup reference165 = ref span227[num]; GatheringNodeGroup gatheringNodeGroup59 = new GatheringNodeGroup(); num2 = 2; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span116 = CollectionsMarshal.AsSpan(list231); - ref GatheringNode reference166 = ref span116[0]; + Span span231 = CollectionsMarshal.AsSpan(list231); + num3 = 0; + ref GatheringNode reference166 = ref span231[num3]; GatheringNode obj107 = new GatheringNode { DataId = 32346u }; - num3 = 1; - List list232 = new List(num3); - CollectionsMarshal.SetCount(list232, num3); - CollectionsMarshal.AsSpan(list232)[0] = new GatheringLocation + num4 = 1; + List list232 = new List(num4); + CollectionsMarshal.SetCount(list232, num4); + Span span232 = CollectionsMarshal.AsSpan(list232); + num5 = 0; + span232[num5] = new GatheringLocation { Position = new Vector3(-19.27065f, 219.13f, 618.5656f), MinimumAngle = 70, @@ -9314,22 +10906,25 @@ public static class AssemblyGatheringLocationLoader }; obj107.Locations = list232; reference166 = obj107; - ref GatheringNode reference167 = ref span116[1]; + num3++; + ref GatheringNode reference167 = ref span231[num3]; GatheringNode obj108 = new GatheringNode { DataId = 32347u }; - num3 = 2; - List list233 = new List(num3); - CollectionsMarshal.SetCount(list233, num3); - Span span117 = CollectionsMarshal.AsSpan(list233); - span117[0] = new GatheringLocation + num5 = 2; + List list233 = new List(num5); + CollectionsMarshal.SetCount(list233, num5); + Span span233 = CollectionsMarshal.AsSpan(list233); + num4 = 0; + span233[num4] = new GatheringLocation { Position = new Vector3(-11.97839f, 222.4612f, 613.5499f), MinimumAngle = 80, MaximumAngle = 235 }; - span117[1] = new GatheringLocation + num4++; + span233[num4] = new GatheringLocation { Position = new Vector3(-9.830506f, 220.8649f, 596.9268f), MinimumAngle = 70, @@ -9339,21 +10934,25 @@ public static class AssemblyGatheringLocationLoader reference167 = obj108; gatheringNodeGroup59.Nodes = list231; reference165 = gatheringNodeGroup59; - ref GatheringNodeGroup reference168 = ref span113[2]; + num++; + ref GatheringNodeGroup reference168 = ref span227[num]; GatheringNodeGroup gatheringNodeGroup60 = new GatheringNodeGroup(); - num2 = 2; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - Span span118 = CollectionsMarshal.AsSpan(list234); - ref GatheringNode reference169 = ref span118[0]; + num3 = 2; + List list234 = new List(num3); + CollectionsMarshal.SetCount(list234, num3); + Span span234 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + ref GatheringNode reference169 = ref span234[num2]; GatheringNode obj109 = new GatheringNode { DataId = 32344u }; - num3 = 1; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - CollectionsMarshal.AsSpan(list235)[0] = new GatheringLocation + num4 = 1; + List list235 = new List(num4); + CollectionsMarshal.SetCount(list235, num4); + Span span235 = CollectionsMarshal.AsSpan(list235); + num5 = 0; + span235[num5] = new GatheringLocation { Position = new Vector3(-60.89f, 241.99f, 692.56f), MinimumAngle = 60, @@ -9361,22 +10960,25 @@ public static class AssemblyGatheringLocationLoader }; obj109.Locations = list235; reference169 = obj109; - ref GatheringNode reference170 = ref span118[1]; + num2++; + ref GatheringNode reference170 = ref span234[num2]; GatheringNode obj110 = new GatheringNode { DataId = 32345u }; - num3 = 2; - List list236 = new List(num3); - CollectionsMarshal.SetCount(list236, num3); - Span span119 = CollectionsMarshal.AsSpan(list236); - span119[0] = new GatheringLocation + num5 = 2; + List list236 = new List(num5); + CollectionsMarshal.SetCount(list236, num5); + Span span236 = CollectionsMarshal.AsSpan(list236); + num4 = 0; + span236[num4] = new GatheringLocation { Position = new Vector3(-70.72009f, 242.5652f, 704.0363f), MinimumAngle = 70, MaximumAngle = 225 }; - span119[1] = new GatheringLocation + num4++; + span236[num4] = new GatheringLocation { Position = new Vector3(-49.4545f, 241.67f, 686.183f), MinimumAngle = 100, @@ -9392,12 +10994,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list237 = new List(num); CollectionsMarshal.SetCount(list237, num); - CollectionsMarshal.AsSpan(list237)[0] = "liza"; + Span span237 = CollectionsMarshal.AsSpan(list237); + index = 0; + span237[index] = "liza"; gatheringRoot23.Author = list237; - num = 1; - List list238 = new List(num); - CollectionsMarshal.SetCount(list238, num); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.None, null, null, 397) + index = 1; + List list238 = new List(index); + CollectionsMarshal.SetCount(list238, index); + Span span238 = CollectionsMarshal.AsSpan(list238); + num = 0; + span238[num] = new QuestStep(EInteractionType.None, null, null, 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; @@ -9405,27 +11011,31 @@ public static class AssemblyGatheringLocationLoader num = 3; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - Span span120 = CollectionsMarshal.AsSpan(list239); - ref GatheringNodeGroup reference171 = ref span120[0]; + Span span239 = CollectionsMarshal.AsSpan(list239); + index = 0; + ref GatheringNodeGroup reference171 = ref span239[index]; GatheringNodeGroup gatheringNodeGroup61 = new GatheringNodeGroup(); num2 = 2; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span121 = CollectionsMarshal.AsSpan(list240); - ref GatheringNode reference172 = ref span121[0]; + Span span240 = CollectionsMarshal.AsSpan(list240); + num3 = 0; + ref GatheringNode reference172 = ref span240[num3]; GatheringNode obj111 = new GatheringNode { DataId = 32355u }; - num3 = 2; - List list241 = new List(num3); - CollectionsMarshal.SetCount(list241, num3); - Span span122 = CollectionsMarshal.AsSpan(list241); - span122[0] = new GatheringLocation + num4 = 2; + List list241 = new List(num4); + CollectionsMarshal.SetCount(list241, num4); + Span span241 = CollectionsMarshal.AsSpan(list241); + num5 = 0; + span241[num5] = new GatheringLocation { Position = new Vector3(484.6112f, 160.7014f, -339.9558f) }; - span122[1] = new GatheringLocation + num5++; + span241[num5] = new GatheringLocation { Position = new Vector3(479.6101f, 160.8177f, -328.4199f), MinimumAngle = 160, @@ -9433,15 +11043,18 @@ public static class AssemblyGatheringLocationLoader }; obj111.Locations = list241; reference172 = obj111; - ref GatheringNode reference173 = ref span121[1]; + num3++; + ref GatheringNode reference173 = ref span240[num3]; GatheringNode obj112 = new GatheringNode { DataId = 32354u }; - num3 = 1; - List list242 = new List(num3); - CollectionsMarshal.SetCount(list242, num3); - CollectionsMarshal.AsSpan(list242)[0] = new GatheringLocation + num5 = 1; + List list242 = new List(num5); + CollectionsMarshal.SetCount(list242, num5); + Span span242 = CollectionsMarshal.AsSpan(list242); + num4 = 0; + span242[num4] = new GatheringLocation { Position = new Vector3(481.3153f, 160.57f, -339.8337f), MinimumAngle = -150, @@ -9451,40 +11064,47 @@ public static class AssemblyGatheringLocationLoader reference173 = obj112; gatheringNodeGroup61.Nodes = list240; reference171 = gatheringNodeGroup61; - ref GatheringNodeGroup reference174 = ref span120[1]; + index++; + ref GatheringNodeGroup reference174 = ref span239[index]; GatheringNodeGroup gatheringNodeGroup62 = new GatheringNodeGroup(); - num2 = 2; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - Span span123 = CollectionsMarshal.AsSpan(list243); - ref GatheringNode reference175 = ref span123[0]; + num3 = 2; + List list243 = new List(num3); + CollectionsMarshal.SetCount(list243, num3); + Span span243 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + ref GatheringNode reference175 = ref span243[num2]; GatheringNode obj113 = new GatheringNode { DataId = 32351u }; - num3 = 2; - List list244 = new List(num3); - CollectionsMarshal.SetCount(list244, num3); - Span span124 = CollectionsMarshal.AsSpan(list244); - span124[0] = new GatheringLocation + num4 = 2; + List list244 = new List(num4); + CollectionsMarshal.SetCount(list244, num4); + Span span244 = CollectionsMarshal.AsSpan(list244); + num5 = 0; + span244[num5] = new GatheringLocation { Position = new Vector3(602.9045f, 172.9519f, -376.0714f) }; - span124[1] = new GatheringLocation + num5++; + span244[num5] = new GatheringLocation { Position = new Vector3(610.5079f, 174.6463f, -380.3387f) }; obj113.Locations = list244; reference175 = obj113; - ref GatheringNode reference176 = ref span123[1]; + num2++; + ref GatheringNode reference176 = ref span243[num2]; GatheringNode obj114 = new GatheringNode { DataId = 32350u }; - num3 = 1; - List list245 = new List(num3); - CollectionsMarshal.SetCount(list245, num3); - CollectionsMarshal.AsSpan(list245)[0] = new GatheringLocation + num5 = 1; + List list245 = new List(num5); + CollectionsMarshal.SetCount(list245, num5); + Span span245 = CollectionsMarshal.AsSpan(list245); + num4 = 0; + span245[num4] = new GatheringLocation { Position = new Vector3(609.4385f, 174.6537f, -376.958f) }; @@ -9492,40 +11112,47 @@ public static class AssemblyGatheringLocationLoader reference176 = obj114; gatheringNodeGroup62.Nodes = list243; reference174 = gatheringNodeGroup62; - ref GatheringNodeGroup reference177 = ref span120[2]; + index++; + ref GatheringNodeGroup reference177 = ref span239[index]; GatheringNodeGroup gatheringNodeGroup63 = new GatheringNodeGroup(); num2 = 2; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span125 = CollectionsMarshal.AsSpan(list246); - ref GatheringNode reference178 = ref span125[0]; + Span span246 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + ref GatheringNode reference178 = ref span246[num3]; GatheringNode obj115 = new GatheringNode { DataId = 32353u }; - num3 = 2; - List list247 = new List(num3); - CollectionsMarshal.SetCount(list247, num3); - Span span126 = CollectionsMarshal.AsSpan(list247); - span126[0] = new GatheringLocation + num4 = 2; + List list247 = new List(num4); + CollectionsMarshal.SetCount(list247, num4); + Span span247 = CollectionsMarshal.AsSpan(list247); + num5 = 0; + span247[num5] = new GatheringLocation { Position = new Vector3(457.2875f, 160.5861f, -451.3749f) }; - span126[1] = new GatheringLocation + num5++; + span247[num5] = new GatheringLocation { Position = new Vector3(471.3904f, 159.7412f, -441.1613f) }; obj115.Locations = list247; reference178 = obj115; - ref GatheringNode reference179 = ref span125[1]; + num3++; + ref GatheringNode reference179 = ref span246[num3]; GatheringNode obj116 = new GatheringNode { DataId = 32352u }; - num3 = 1; - List list248 = new List(num3); - CollectionsMarshal.SetCount(list248, num3); - CollectionsMarshal.AsSpan(list248)[0] = new GatheringLocation + num5 = 1; + List list248 = new List(num5); + CollectionsMarshal.SetCount(list248, num5); + Span span248 = CollectionsMarshal.AsSpan(list248); + num4 = 0; + span248[num4] = new GatheringLocation { Position = new Vector3(478.0674f, 161.2902f, -449.485f), MinimumAngle = 0, @@ -9538,45 +11165,53 @@ public static class AssemblyGatheringLocationLoader gatheringRoot23.Groups = list239; AddLocation(552, gatheringRoot23); GatheringRoot gatheringRoot24 = new GatheringRoot(); - num = 1; - List list249 = new List(num); - CollectionsMarshal.SetCount(list249, num); - CollectionsMarshal.AsSpan(list249)[0] = "liza"; + index = 1; + List list249 = new List(index); + CollectionsMarshal.SetCount(list249, index); + Span span249 = CollectionsMarshal.AsSpan(list249); + num = 0; + span249[num] = "liza"; gatheringRoot24.Author = list249; num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.None, null, null, 400) + Span span250 = CollectionsMarshal.AsSpan(list250); + index = 0; + span250[index] = new QuestStep(EInteractionType.None, null, null, 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; gatheringRoot24.Steps = list250; - num = 3; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span127 = CollectionsMarshal.AsSpan(list251); - ref GatheringNodeGroup reference180 = ref span127[0]; + index = 3; + List list251 = new List(index); + CollectionsMarshal.SetCount(list251, index); + Span span251 = CollectionsMarshal.AsSpan(list251); + num = 0; + ref GatheringNodeGroup reference180 = ref span251[num]; GatheringNodeGroup gatheringNodeGroup64 = new GatheringNodeGroup(); - num2 = 2; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span128 = CollectionsMarshal.AsSpan(list252); - ref GatheringNode reference181 = ref span128[0]; + num3 = 2; + List list252 = new List(num3); + CollectionsMarshal.SetCount(list252, num3); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + ref GatheringNode reference181 = ref span252[num2]; GatheringNode obj117 = new GatheringNode { DataId = 32357u }; - num3 = 2; - List list253 = new List(num3); - CollectionsMarshal.SetCount(list253, num3); - Span span129 = CollectionsMarshal.AsSpan(list253); - span129[0] = new GatheringLocation + num4 = 2; + List list253 = new List(num4); + CollectionsMarshal.SetCount(list253, num4); + Span span253 = CollectionsMarshal.AsSpan(list253); + num5 = 0; + span253[num5] = new GatheringLocation { Position = new Vector3(557.625f, 5.119438f, 180.6541f), MinimumAngle = -70, MaximumAngle = 55 }; - span129[1] = new GatheringLocation + num5++; + span253[num5] = new GatheringLocation { Position = new Vector3(570.8357f, 11.89507f, 164.9729f), MinimumAngle = 55, @@ -9584,15 +11219,18 @@ public static class AssemblyGatheringLocationLoader }; obj117.Locations = list253; reference181 = obj117; - ref GatheringNode reference182 = ref span128[1]; + num2++; + ref GatheringNode reference182 = ref span252[num2]; GatheringNode obj118 = new GatheringNode { DataId = 32356u }; - num3 = 1; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = new GatheringLocation + num5 = 1; + List list254 = new List(num5); + CollectionsMarshal.SetCount(list254, num5); + Span span254 = CollectionsMarshal.AsSpan(list254); + num4 = 0; + span254[num4] = new GatheringLocation { Position = new Vector3(572.8384f, 11.68007f, 155.6572f), MinimumAngle = 70, @@ -9602,21 +11240,25 @@ public static class AssemblyGatheringLocationLoader reference182 = obj118; gatheringNodeGroup64.Nodes = list252; reference180 = gatheringNodeGroup64; - ref GatheringNodeGroup reference183 = ref span127[1]; + num++; + ref GatheringNodeGroup reference183 = ref span251[num]; GatheringNodeGroup gatheringNodeGroup65 = new GatheringNodeGroup(); num2 = 2; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span130 = CollectionsMarshal.AsSpan(list255); - ref GatheringNode reference184 = ref span130[0]; + Span span255 = CollectionsMarshal.AsSpan(list255); + num3 = 0; + ref GatheringNode reference184 = ref span255[num3]; GatheringNode obj119 = new GatheringNode { DataId = 32358u }; - num3 = 1; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - CollectionsMarshal.AsSpan(list256)[0] = new GatheringLocation + num4 = 1; + List list256 = new List(num4); + CollectionsMarshal.SetCount(list256, num4); + Span span256 = CollectionsMarshal.AsSpan(list256); + num5 = 0; + span256[num5] = new GatheringLocation { Position = new Vector3(665.114f, 43.93011f, 151.3629f), MinimumAngle = -80, @@ -9624,22 +11266,25 @@ public static class AssemblyGatheringLocationLoader }; obj119.Locations = list256; reference184 = obj119; - ref GatheringNode reference185 = ref span130[1]; + num3++; + ref GatheringNode reference185 = ref span255[num3]; GatheringNode obj120 = new GatheringNode { DataId = 32359u }; - num3 = 2; - List list257 = new List(num3); - CollectionsMarshal.SetCount(list257, num3); - Span span131 = CollectionsMarshal.AsSpan(list257); - span131[0] = new GatheringLocation + num5 = 2; + List list257 = new List(num5); + CollectionsMarshal.SetCount(list257, num5); + Span span257 = CollectionsMarshal.AsSpan(list257); + num4 = 0; + span257[num4] = new GatheringLocation { Position = new Vector3(697.7376f, 41.87314f, 124.1553f), MinimumAngle = -125, MaximumAngle = 30 }; - span131[1] = new GatheringLocation + num4++; + span257[num4] = new GatheringLocation { Position = new Vector3(681.178f, 41.71732f, 147.9972f), MinimumAngle = -15, @@ -9649,21 +11294,25 @@ public static class AssemblyGatheringLocationLoader reference185 = obj120; gatheringNodeGroup65.Nodes = list255; reference183 = gatheringNodeGroup65; - ref GatheringNodeGroup reference186 = ref span127[2]; + num++; + ref GatheringNodeGroup reference186 = ref span251[num]; GatheringNodeGroup gatheringNodeGroup66 = new GatheringNodeGroup(); - num2 = 2; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - Span span132 = CollectionsMarshal.AsSpan(list258); - ref GatheringNode reference187 = ref span132[0]; + num3 = 2; + List list258 = new List(num3); + CollectionsMarshal.SetCount(list258, num3); + Span span258 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + ref GatheringNode reference187 = ref span258[num2]; GatheringNode obj121 = new GatheringNode { DataId = 32360u }; - num3 = 1; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - CollectionsMarshal.AsSpan(list259)[0] = new GatheringLocation + num4 = 1; + List list259 = new List(num4); + CollectionsMarshal.SetCount(list259, num4); + Span span259 = CollectionsMarshal.AsSpan(list259); + num5 = 0; + span259[num5] = new GatheringLocation { Position = new Vector3(755.3978f, 20.37826f, 201.3921f), MinimumAngle = -30, @@ -9671,22 +11320,25 @@ public static class AssemblyGatheringLocationLoader }; obj121.Locations = list259; reference187 = obj121; - ref GatheringNode reference188 = ref span132[1]; + num2++; + ref GatheringNode reference188 = ref span258[num2]; GatheringNode obj122 = new GatheringNode { DataId = 32361u }; - num3 = 2; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - Span span133 = CollectionsMarshal.AsSpan(list260); - span133[0] = new GatheringLocation + num5 = 2; + List list260 = new List(num5); + CollectionsMarshal.SetCount(list260, num5); + Span span260 = CollectionsMarshal.AsSpan(list260); + num4 = 0; + span260[num4] = new GatheringLocation { Position = new Vector3(771.5975f, 20.41353f, 204.8761f), MinimumAngle = -45, MaximumAngle = 65 }; - span133[1] = new GatheringLocation + num4++; + span260[num4] = new GatheringLocation { Position = new Vector3(739.1428f, 23.87582f, 196.4766f), MinimumAngle = -40, @@ -9702,12 +11354,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - CollectionsMarshal.AsSpan(list261)[0] = "liza"; + Span span261 = CollectionsMarshal.AsSpan(list261); + index = 0; + span261[index] = "liza"; gatheringRoot25.Author = list261; - num = 1; - List list262 = new List(num); - CollectionsMarshal.SetCount(list262, num); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.None, null, null, 400) + index = 1; + List list262 = new List(index); + CollectionsMarshal.SetCount(list262, index); + Span span262 = CollectionsMarshal.AsSpan(list262); + num = 0; + span262[num] = new QuestStep(EInteractionType.None, null, null, 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; @@ -9715,41 +11371,48 @@ public static class AssemblyGatheringLocationLoader num = 3; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - Span span134 = CollectionsMarshal.AsSpan(list263); - ref GatheringNodeGroup reference189 = ref span134[0]; + Span span263 = CollectionsMarshal.AsSpan(list263); + index = 0; + ref GatheringNodeGroup reference189 = ref span263[index]; GatheringNodeGroup gatheringNodeGroup67 = new GatheringNodeGroup(); num2 = 2; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span135 = CollectionsMarshal.AsSpan(list264); - ref GatheringNode reference190 = ref span135[0]; + Span span264 = CollectionsMarshal.AsSpan(list264); + num3 = 0; + ref GatheringNode reference190 = ref span264[num3]; GatheringNode obj123 = new GatheringNode { DataId = 32366u }; - num3 = 1; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - CollectionsMarshal.AsSpan(list265)[0] = new GatheringLocation + num4 = 1; + List list265 = new List(num4); + CollectionsMarshal.SetCount(list265, num4); + Span span265 = CollectionsMarshal.AsSpan(list265); + num5 = 0; + span265[num5] = new GatheringLocation { Position = new Vector3(-699.5319f, 91.18189f, -362.7602f) }; obj123.Locations = list265; reference190 = obj123; - ref GatheringNode reference191 = ref span135[1]; + num3++; + ref GatheringNode reference191 = ref span264[num3]; GatheringNode obj124 = new GatheringNode { DataId = 32367u }; - num3 = 2; - List list266 = new List(num3); - CollectionsMarshal.SetCount(list266, num3); - Span span136 = CollectionsMarshal.AsSpan(list266); - span136[0] = new GatheringLocation + num5 = 2; + List list266 = new List(num5); + CollectionsMarshal.SetCount(list266, num5); + Span span266 = CollectionsMarshal.AsSpan(list266); + num4 = 0; + span266[num4] = new GatheringLocation { Position = new Vector3(-681.9284f, 91.30399f, -363.0468f) }; - span136[1] = new GatheringLocation + num4++; + span266[num4] = new GatheringLocation { Position = new Vector3(-709.8129f, 91.42828f, -361.5186f), MinimumAngle = 85, @@ -9759,21 +11422,25 @@ public static class AssemblyGatheringLocationLoader reference191 = obj124; gatheringNodeGroup67.Nodes = list264; reference189 = gatheringNodeGroup67; - ref GatheringNodeGroup reference192 = ref span134[1]; + index++; + ref GatheringNodeGroup reference192 = ref span263[index]; GatheringNodeGroup gatheringNodeGroup68 = new GatheringNodeGroup(); - num2 = 2; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span137 = CollectionsMarshal.AsSpan(list267); - ref GatheringNode reference193 = ref span137[0]; + num3 = 2; + List list267 = new List(num3); + CollectionsMarshal.SetCount(list267, num3); + Span span267 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + ref GatheringNode reference193 = ref span267[num2]; GatheringNode obj125 = new GatheringNode { DataId = 32364u }; - num3 = 1; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = new GatheringLocation + num4 = 1; + List list268 = new List(num4); + CollectionsMarshal.SetCount(list268, num4); + Span span268 = CollectionsMarshal.AsSpan(list268); + num5 = 0; + span268[num5] = new GatheringLocation { Position = new Vector3(-680.1304f, 91.30952f, -479.2773f), MinimumAngle = 50, @@ -9781,22 +11448,25 @@ public static class AssemblyGatheringLocationLoader }; obj125.Locations = list268; reference193 = obj125; - ref GatheringNode reference194 = ref span137[1]; + num2++; + ref GatheringNode reference194 = ref span267[num2]; GatheringNode obj126 = new GatheringNode { DataId = 32365u }; - num3 = 2; - List list269 = new List(num3); - CollectionsMarshal.SetCount(list269, num3); - Span span138 = CollectionsMarshal.AsSpan(list269); - span138[0] = new GatheringLocation + num5 = 2; + List list269 = new List(num5); + CollectionsMarshal.SetCount(list269, num5); + Span span269 = CollectionsMarshal.AsSpan(list269); + num4 = 0; + span269[num4] = new GatheringLocation { Position = new Vector3(-691.5847f, 91.2657f, -491.8746f), MinimumAngle = -115, MaximumAngle = 90 }; - span138[1] = new GatheringLocation + num4++; + span269[num4] = new GatheringLocation { Position = new Vector3(-685.3473f, 91.26568f, -474.3657f), MinimumAngle = 0, @@ -9806,21 +11476,25 @@ public static class AssemblyGatheringLocationLoader reference194 = obj126; gatheringNodeGroup68.Nodes = list267; reference192 = gatheringNodeGroup68; - ref GatheringNodeGroup reference195 = ref span134[2]; + index++; + ref GatheringNodeGroup reference195 = ref span263[index]; GatheringNodeGroup gatheringNodeGroup69 = new GatheringNodeGroup(); num2 = 2; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span139 = CollectionsMarshal.AsSpan(list270); - ref GatheringNode reference196 = ref span139[0]; + Span span270 = CollectionsMarshal.AsSpan(list270); + num3 = 0; + ref GatheringNode reference196 = ref span270[num3]; GatheringNode obj127 = new GatheringNode { DataId = 32362u }; - num3 = 1; - List list271 = new List(num3); - CollectionsMarshal.SetCount(list271, num3); - CollectionsMarshal.AsSpan(list271)[0] = new GatheringLocation + num4 = 1; + List list271 = new List(num4); + CollectionsMarshal.SetCount(list271, num4); + Span span271 = CollectionsMarshal.AsSpan(list271); + num5 = 0; + span271[num5] = new GatheringLocation { Position = new Vector3(-764.3091f, 91.5154f, -554.3649f), MinimumAngle = -125, @@ -9828,22 +11502,25 @@ public static class AssemblyGatheringLocationLoader }; obj127.Locations = list271; reference196 = obj127; - ref GatheringNode reference197 = ref span139[1]; + num3++; + ref GatheringNode reference197 = ref span270[num3]; GatheringNode obj128 = new GatheringNode { DataId = 32363u }; - num3 = 2; - List list272 = new List(num3); - CollectionsMarshal.SetCount(list272, num3); - Span span140 = CollectionsMarshal.AsSpan(list272); - span140[0] = new GatheringLocation + num5 = 2; + List list272 = new List(num5); + CollectionsMarshal.SetCount(list272, num5); + Span span272 = CollectionsMarshal.AsSpan(list272); + num4 = 0; + span272[num4] = new GatheringLocation { Position = new Vector3(-763.1495f, 91.37257f, -542.7809f), MinimumAngle = 70, MaximumAngle = 305 }; - span140[1] = new GatheringLocation + num4++; + span272[num4] = new GatheringLocation { Position = new Vector3(-776.5944f, 91.16921f, -566.8766f), MinimumAngle = -95, @@ -9856,34 +11533,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot25.Groups = list263; AddLocation(554, gatheringRoot25); GatheringRoot gatheringRoot26 = new GatheringRoot(); - num = 1; - List list273 = new List(num); - CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "liza"; + index = 1; + List list273 = new List(index); + CollectionsMarshal.SetCount(list273, index); + Span span273 = CollectionsMarshal.AsSpan(list273); + num = 0; + span273[num] = "liza"; gatheringRoot26.Author = list273; num = 1; List list274 = new List(num); CollectionsMarshal.SetCount(list274, num); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.None, null, null, 814); + Span span274 = CollectionsMarshal.AsSpan(list274); + index = 0; + span274[index] = new QuestStep(EInteractionType.None, null, null, 814); gatheringRoot26.Steps = list274; - num = 6; - List list275 = new List(num); - CollectionsMarshal.SetCount(list275, num); - Span span141 = CollectionsMarshal.AsSpan(list275); - ref GatheringNodeGroup reference198 = ref span141[0]; + index = 6; + List list275 = new List(index); + CollectionsMarshal.SetCount(list275, index); + Span span275 = CollectionsMarshal.AsSpan(list275); + num = 0; + ref GatheringNodeGroup reference198 = ref span275[num]; GatheringNodeGroup gatheringNodeGroup70 = new GatheringNodeGroup(); - num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - ref GatheringNode reference199 = ref CollectionsMarshal.AsSpan(list276)[0]; + num3 = 1; + List list276 = new List(num3); + CollectionsMarshal.SetCount(list276, num3); + Span span276 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + ref GatheringNode reference199 = ref span276[num2]; GatheringNode obj129 = new GatheringNode { DataId = 32512u }; - num3 = 1; - List list277 = new List(num3); - CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = new GatheringLocation + num4 = 1; + List list277 = new List(num4); + CollectionsMarshal.SetCount(list277, num4); + Span span277 = CollectionsMarshal.AsSpan(list277); + num5 = 0; + span277[num5] = new GatheringLocation { Position = new Vector3(-221.5365f, 88.75751f, 36.51096f), MinimumAngle = -100, @@ -9893,20 +11579,25 @@ public static class AssemblyGatheringLocationLoader reference199 = obj129; gatheringNodeGroup70.Nodes = list276; reference198 = gatheringNodeGroup70; - ref GatheringNodeGroup reference200 = ref span141[1]; + num++; + ref GatheringNodeGroup reference200 = ref span275[num]; GatheringNodeGroup gatheringNodeGroup71 = new GatheringNodeGroup(); num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - ref GatheringNode reference201 = ref CollectionsMarshal.AsSpan(list278)[0]; + Span span278 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + ref GatheringNode reference201 = ref span278[num3]; GatheringNode obj130 = new GatheringNode { DataId = 32513u }; - num3 = 1; - List list279 = new List(num3); - CollectionsMarshal.SetCount(list279, num3); - CollectionsMarshal.AsSpan(list279)[0] = new GatheringLocation + num5 = 1; + List list279 = new List(num5); + CollectionsMarshal.SetCount(list279, num5); + Span span279 = CollectionsMarshal.AsSpan(list279); + num4 = 0; + span279[num4] = new GatheringLocation { Position = new Vector3(-227.0897f, 89.90434f, 37.42806f), MinimumAngle = -20, @@ -9916,20 +11607,25 @@ public static class AssemblyGatheringLocationLoader reference201 = obj130; gatheringNodeGroup71.Nodes = list278; reference200 = gatheringNodeGroup71; - ref GatheringNodeGroup reference202 = ref span141[2]; + num++; + ref GatheringNodeGroup reference202 = ref span275[num]; GatheringNodeGroup gatheringNodeGroup72 = new GatheringNodeGroup(); - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - ref GatheringNode reference203 = ref CollectionsMarshal.AsSpan(list280)[0]; + num3 = 1; + List list280 = new List(num3); + CollectionsMarshal.SetCount(list280, num3); + Span span280 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + ref GatheringNode reference203 = ref span280[num2]; GatheringNode obj131 = new GatheringNode { DataId = 32514u }; - num3 = 1; - List list281 = new List(num3); - CollectionsMarshal.SetCount(list281, num3); - CollectionsMarshal.AsSpan(list281)[0] = new GatheringLocation + num4 = 1; + List list281 = new List(num4); + CollectionsMarshal.SetCount(list281, num4); + Span span281 = CollectionsMarshal.AsSpan(list281); + num5 = 0; + span281[num5] = new GatheringLocation { Position = new Vector3(-233.9371f, 89.18435f, 42.91663f), MinimumAngle = -110, @@ -9939,20 +11635,25 @@ public static class AssemblyGatheringLocationLoader reference203 = obj131; gatheringNodeGroup72.Nodes = list280; reference202 = gatheringNodeGroup72; - ref GatheringNodeGroup reference204 = ref span141[3]; + num++; + ref GatheringNodeGroup reference204 = ref span275[num]; GatheringNodeGroup gatheringNodeGroup73 = new GatheringNodeGroup(); num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - ref GatheringNode reference205 = ref CollectionsMarshal.AsSpan(list282)[0]; + Span span282 = CollectionsMarshal.AsSpan(list282); + num3 = 0; + ref GatheringNode reference205 = ref span282[num3]; GatheringNode obj132 = new GatheringNode { DataId = 32515u }; - num3 = 1; - List list283 = new List(num3); - CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = new GatheringLocation + num5 = 1; + List list283 = new List(num5); + CollectionsMarshal.SetCount(list283, num5); + Span span283 = CollectionsMarshal.AsSpan(list283); + num4 = 0; + span283[num4] = new GatheringLocation { Position = new Vector3(-243.0384f, 88.70179f, 48.95438f), MinimumAngle = -70, @@ -9962,20 +11663,25 @@ public static class AssemblyGatheringLocationLoader reference205 = obj132; gatheringNodeGroup73.Nodes = list282; reference204 = gatheringNodeGroup73; - ref GatheringNodeGroup reference206 = ref span141[4]; + num++; + ref GatheringNodeGroup reference206 = ref span275[num]; GatheringNodeGroup gatheringNodeGroup74 = new GatheringNodeGroup(); - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - ref GatheringNode reference207 = ref CollectionsMarshal.AsSpan(list284)[0]; + num3 = 1; + List list284 = new List(num3); + CollectionsMarshal.SetCount(list284, num3); + Span span284 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + ref GatheringNode reference207 = ref span284[num2]; GatheringNode obj133 = new GatheringNode { DataId = 32516u }; - num3 = 1; - List list285 = new List(num3); - CollectionsMarshal.SetCount(list285, num3); - CollectionsMarshal.AsSpan(list285)[0] = new GatheringLocation + num4 = 1; + List list285 = new List(num4); + CollectionsMarshal.SetCount(list285, num4); + Span span285 = CollectionsMarshal.AsSpan(list285); + num5 = 0; + span285[num5] = new GatheringLocation { Position = new Vector3(-256.5147f, 90.32328f, 51.07351f), MinimumAngle = -75, @@ -9985,20 +11691,25 @@ public static class AssemblyGatheringLocationLoader reference207 = obj133; gatheringNodeGroup74.Nodes = list284; reference206 = gatheringNodeGroup74; - ref GatheringNodeGroup reference208 = ref span141[5]; + num++; + ref GatheringNodeGroup reference208 = ref span275[num]; GatheringNodeGroup gatheringNodeGroup75 = new GatheringNodeGroup(); num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - ref GatheringNode reference209 = ref CollectionsMarshal.AsSpan(list286)[0]; + Span span286 = CollectionsMarshal.AsSpan(list286); + num3 = 0; + ref GatheringNode reference209 = ref span286[num3]; GatheringNode obj134 = new GatheringNode { DataId = 32517u }; - num3 = 1; - List list287 = new List(num3); - CollectionsMarshal.SetCount(list287, num3); - CollectionsMarshal.AsSpan(list287)[0] = new GatheringLocation + num5 = 1; + List list287 = new List(num5); + CollectionsMarshal.SetCount(list287, num5); + Span span287 = CollectionsMarshal.AsSpan(list287); + num4 = 0; + span287[num4] = new GatheringLocation { Position = new Vector3(-265.2769f, 90.43383f, 45.49376f), MinimumAngle = -40, @@ -10014,12 +11725,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list288 = new List(num); CollectionsMarshal.SetCount(list288, num); - CollectionsMarshal.AsSpan(list288)[0] = "liza"; + Span span288 = CollectionsMarshal.AsSpan(list288); + index = 0; + span288[index] = "liza"; gatheringRoot27.Author = list288; - num = 1; - List list289 = new List(num); - CollectionsMarshal.SetCount(list289, num); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.None, null, null, 815) + index = 1; + List list289 = new List(index); + CollectionsMarshal.SetCount(list289, index); + Span span289 = CollectionsMarshal.AsSpan(list289); + num = 0; + span289[num] = new QuestStep(EInteractionType.None, null, null, 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; @@ -10027,29 +11742,33 @@ public static class AssemblyGatheringLocationLoader num = 3; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - Span span142 = CollectionsMarshal.AsSpan(list290); - ref GatheringNodeGroup reference210 = ref span142[0]; + Span span290 = CollectionsMarshal.AsSpan(list290); + index = 0; + ref GatheringNodeGroup reference210 = ref span290[index]; GatheringNodeGroup gatheringNodeGroup76 = new GatheringNodeGroup(); - num2 = 2; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - Span span143 = CollectionsMarshal.AsSpan(list291); - ref GatheringNode reference211 = ref span143[0]; + num3 = 2; + List list291 = new List(num3); + CollectionsMarshal.SetCount(list291, num3); + Span span291 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + ref GatheringNode reference211 = ref span291[num2]; GatheringNode obj135 = new GatheringNode { DataId = 32625u }; - num3 = 2; - List list292 = new List(num3); - CollectionsMarshal.SetCount(list292, num3); - Span span144 = CollectionsMarshal.AsSpan(list292); - span144[0] = new GatheringLocation + num4 = 2; + List list292 = new List(num4); + CollectionsMarshal.SetCount(list292, num4); + Span span292 = CollectionsMarshal.AsSpan(list292); + num5 = 0; + span292[num5] = new GatheringLocation { Position = new Vector3(451.1189f, -40.18039f, 184.7025f), MinimumAngle = 95, MaximumAngle = 245 }; - span144[1] = new GatheringLocation + num5++; + span292[num5] = new GatheringLocation { Position = new Vector3(471.4881f, -41.63216f, 185.0577f), MinimumAngle = 160, @@ -10057,15 +11776,18 @@ public static class AssemblyGatheringLocationLoader }; obj135.Locations = list292; reference211 = obj135; - ref GatheringNode reference212 = ref span143[1]; + num2++; + ref GatheringNode reference212 = ref span291[num2]; GatheringNode obj136 = new GatheringNode { DataId = 32624u }; - num3 = 1; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - CollectionsMarshal.AsSpan(list293)[0] = new GatheringLocation + num5 = 1; + List list293 = new List(num5); + CollectionsMarshal.SetCount(list293, num5); + Span span293 = CollectionsMarshal.AsSpan(list293); + num4 = 0; + span293[num4] = new GatheringLocation { Position = new Vector3(463.4016f, -41.51461f, 181.6076f), MinimumAngle = 90, @@ -10075,21 +11797,25 @@ public static class AssemblyGatheringLocationLoader reference212 = obj136; gatheringNodeGroup76.Nodes = list291; reference210 = gatheringNodeGroup76; - ref GatheringNodeGroup reference213 = ref span142[1]; + index++; + ref GatheringNodeGroup reference213 = ref span290[index]; GatheringNodeGroup gatheringNodeGroup77 = new GatheringNodeGroup(); num2 = 2; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - Span span145 = CollectionsMarshal.AsSpan(list294); - ref GatheringNode reference214 = ref span145[0]; + Span span294 = CollectionsMarshal.AsSpan(list294); + num3 = 0; + ref GatheringNode reference214 = ref span294[num3]; GatheringNode obj137 = new GatheringNode { DataId = 32622u }; - num3 = 1; - List list295 = new List(num3); - CollectionsMarshal.SetCount(list295, num3); - CollectionsMarshal.AsSpan(list295)[0] = new GatheringLocation + num4 = 1; + List list295 = new List(num4); + CollectionsMarshal.SetCount(list295, num4); + Span span295 = CollectionsMarshal.AsSpan(list295); + num5 = 0; + span295[num5] = new GatheringLocation { Position = new Vector3(507.8041f, -33.50595f, 26.54234f), MinimumAngle = 60, @@ -10099,22 +11825,25 @@ public static class AssemblyGatheringLocationLoader }; obj137.Locations = list295; reference214 = obj137; - ref GatheringNode reference215 = ref span145[1]; + num3++; + ref GatheringNode reference215 = ref span294[num3]; GatheringNode obj138 = new GatheringNode { DataId = 32623u }; - num3 = 2; - List list296 = new List(num3); - CollectionsMarshal.SetCount(list296, num3); - Span span146 = CollectionsMarshal.AsSpan(list296); - span146[0] = new GatheringLocation + num5 = 2; + List list296 = new List(num5); + CollectionsMarshal.SetCount(list296, num5); + Span span296 = CollectionsMarshal.AsSpan(list296); + num4 = 0; + span296[num4] = new GatheringLocation { Position = new Vector3(509.3797f, -30.43971f, -2.22134f), MinimumAngle = -55, MaximumAngle = 30 }; - span146[1] = new GatheringLocation + num4++; + span296[num4] = new GatheringLocation { Position = new Vector3(490.9295f, -30.41992f, -0.7659363f), MinimumAngle = -70, @@ -10124,28 +11853,32 @@ public static class AssemblyGatheringLocationLoader reference215 = obj138; gatheringNodeGroup77.Nodes = list294; reference213 = gatheringNodeGroup77; - ref GatheringNodeGroup reference216 = ref span142[2]; + index++; + ref GatheringNodeGroup reference216 = ref span290[index]; GatheringNodeGroup gatheringNodeGroup78 = new GatheringNodeGroup(); - num2 = 2; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - Span span147 = CollectionsMarshal.AsSpan(list297); - ref GatheringNode reference217 = ref span147[0]; + num3 = 2; + List list297 = new List(num3); + CollectionsMarshal.SetCount(list297, num3); + Span span297 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + ref GatheringNode reference217 = ref span297[num2]; GatheringNode obj139 = new GatheringNode { DataId = 32621u }; - num3 = 2; - List list298 = new List(num3); - CollectionsMarshal.SetCount(list298, num3); - Span span148 = CollectionsMarshal.AsSpan(list298); - span148[0] = new GatheringLocation + num4 = 2; + List list298 = new List(num4); + CollectionsMarshal.SetCount(list298, num4); + Span span298 = CollectionsMarshal.AsSpan(list298); + num5 = 0; + span298[num5] = new GatheringLocation { Position = new Vector3(378.5f, -29.83888f, 25.41485f), MinimumAngle = -65, MaximumAngle = 30 }; - span148[1] = new GatheringLocation + num5++; + span298[num5] = new GatheringLocation { Position = new Vector3(358.2361f, -30f, 26.45336f), MinimumAngle = -40, @@ -10153,15 +11886,18 @@ public static class AssemblyGatheringLocationLoader }; obj139.Locations = list298; reference217 = obj139; - ref GatheringNode reference218 = ref span147[1]; + num2++; + ref GatheringNode reference218 = ref span297[num2]; GatheringNode obj140 = new GatheringNode { DataId = 32620u }; - num3 = 1; - List list299 = new List(num3); - CollectionsMarshal.SetCount(list299, num3); - CollectionsMarshal.AsSpan(list299)[0] = new GatheringLocation + num5 = 1; + List list299 = new List(num5); + CollectionsMarshal.SetCount(list299, num5); + Span span299 = CollectionsMarshal.AsSpan(list299); + num4 = 0; + span299[num4] = new GatheringLocation { Position = new Vector3(365.5395f, -34.4827f, 42.98462f), MinimumAngle = 190, @@ -10181,12 +11917,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 815) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; @@ -10194,43 +11934,50 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref GatheringNode reference2 = ref span2[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int num3 = 0; + ref GatheringNode reference2 = ref span4[num3]; GatheringNode obj = new GatheringNode { DataId = 32686u }; - int num3 = 2; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new GatheringLocation + int num4 = 2; + List list5 = new List(num4); + CollectionsMarshal.SetCount(list5, num4); + Span span5 = CollectionsMarshal.AsSpan(list5); + int num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(486.6385f, -28.30028f, -161.7677f), MinimumAngle = 155, MaximumAngle = 335 }; - span3[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(494.8945f, -21.52249f, -137.1469f) }; obj.Locations = list5; reference2 = obj; - ref GatheringNode reference3 = ref span2[1]; + num3++; + ref GatheringNode reference3 = ref span4[num3]; GatheringNode obj2 = new GatheringNode { DataId = 32685u }; - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation + num5 = 1; + List list6 = new List(num5); + CollectionsMarshal.SetCount(list6, num5); + Span span6 = CollectionsMarshal.AsSpan(list6); + num4 = 0; + span6[num4] = new GatheringLocation { Position = new Vector3(503.6436f, -23.70927f, -142.2979f) }; @@ -10238,21 +11985,25 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference4 = ref span[1]; + index++; + ref GatheringNodeGroup reference4 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span4 = CollectionsMarshal.AsSpan(list7); - ref GatheringNode reference5 = ref span4[0]; + num3 = 2; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref GatheringNode reference5 = ref span7[num2]; GatheringNode obj3 = new GatheringNode { DataId = 32689u }; - num3 = 1; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = new GatheringLocation + num4 = 1; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + Span span8 = CollectionsMarshal.AsSpan(list8); + num5 = 0; + span8[num5] = new GatheringLocation { Position = new Vector3(657.1875f, -26.81644f, -235.4547f), MinimumAngle = 65, @@ -10260,22 +12011,25 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - ref GatheringNode reference6 = ref span4[1]; + num2++; + ref GatheringNode reference6 = ref span7[num2]; GatheringNode obj4 = new GatheringNode { DataId = 32690u }; - num3 = 2; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = new GatheringLocation + num5 = 2; + List list9 = new List(num5); + CollectionsMarshal.SetCount(list9, num5); + Span span9 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span9[num4] = new GatheringLocation { Position = new Vector3(655.8629f, -27.85928f, -256.156f), MinimumAngle = 65, MaximumAngle = 235 }; - span5[1] = new GatheringLocation + num4++; + span9[num4] = new GatheringLocation { Position = new Vector3(656.6887f, -26.66475f, -230.172f), MinimumAngle = -75, @@ -10285,28 +12039,32 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - ref GatheringNodeGroup reference7 = ref span[2]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref GatheringNode reference8 = ref span6[0]; + Span span10 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + ref GatheringNode reference8 = ref span10[num3]; GatheringNode obj5 = new GatheringNode { DataId = 32688u }; - num3 = 2; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span7 = CollectionsMarshal.AsSpan(list11); - span7[0] = new GatheringLocation + num4 = 2; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + Span span11 = CollectionsMarshal.AsSpan(list11); + num5 = 0; + span11[num5] = new GatheringLocation { Position = new Vector3(487.4965f, -33.01668f, -304.6423f), MinimumAngle = 150, MaximumAngle = 330 }; - span7[1] = new GatheringLocation + num5++; + span11[num5] = new GatheringLocation { Position = new Vector3(477.8194f, -31.87613f, -320.6989f), MinimumAngle = 180, @@ -10314,15 +12072,18 @@ public static class AssemblyGatheringLocationLoader }; obj5.Locations = list11; reference8 = obj5; - ref GatheringNode reference9 = ref span6[1]; + num3++; + ref GatheringNode reference9 = ref span10[num3]; GatheringNode obj6 = new GatheringNode { DataId = 32687u }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation + num5 = 1; + List list12 = new List(num5); + CollectionsMarshal.SetCount(list12, num5); + Span span12 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span12[num4] = new GatheringLocation { Position = new Vector3(481.1932f, -32.4591f, -313.7588f), MinimumAngle = 170, @@ -10335,43 +12096,51 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(611, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + span13[num] = "liza"; gatheringRoot2.Author = list13; num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 814) + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = new QuestStep(EInteractionType.None, null, null, 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; gatheringRoot2.Steps = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span8 = CollectionsMarshal.AsSpan(list15); - ref GatheringNodeGroup reference10 = ref span8[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref GatheringNodeGroup reference10 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 2; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span9 = CollectionsMarshal.AsSpan(list16); - ref GatheringNode reference11 = ref span9[0]; + num3 = 2; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + ref GatheringNode reference11 = ref span16[num2]; GatheringNode obj7 = new GatheringNode { DataId = 32816u }; - num3 = 2; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - Span span10 = CollectionsMarshal.AsSpan(list17); - span10[0] = new GatheringLocation + num4 = 2; + List list17 = new List(num4); + CollectionsMarshal.SetCount(list17, num4); + Span span17 = CollectionsMarshal.AsSpan(list17); + num5 = 0; + span17[num5] = new GatheringLocation { Position = new Vector3(-210.0211f, 27.87489f, 244.1517f) }; - span10[1] = new GatheringLocation + num5++; + span17[num5] = new GatheringLocation { Position = new Vector3(-184.2966f, 33.53575f, 220.416f), MinimumAngle = -70, @@ -10379,15 +12148,18 @@ public static class AssemblyGatheringLocationLoader }; obj7.Locations = list17; reference11 = obj7; - ref GatheringNode reference12 = ref span9[1]; + num2++; + ref GatheringNode reference12 = ref span16[num2]; GatheringNode obj8 = new GatheringNode { DataId = 32815u }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation + num5 = 1; + List list18 = new List(num5); + CollectionsMarshal.SetCount(list18, num5); + Span span18 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span18[num4] = new GatheringLocation { Position = new Vector3(-194.756f, 30.00866f, 235.5003f), MinimumAngle = 85, @@ -10397,21 +12169,25 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - ref GatheringNodeGroup reference13 = ref span8[1]; + num++; + ref GatheringNodeGroup reference13 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span11 = CollectionsMarshal.AsSpan(list19); - ref GatheringNode reference14 = ref span11[0]; + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + ref GatheringNode reference14 = ref span19[num3]; GatheringNode obj9 = new GatheringNode { DataId = 32819u }; - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = new GatheringLocation + num4 = 1; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + Span span20 = CollectionsMarshal.AsSpan(list20); + num5 = 0; + span20[num5] = new GatheringLocation { Position = new Vector3(-184.1455f, 44.3671f, 162.0892f), MinimumAngle = -90, @@ -10419,22 +12195,25 @@ public static class AssemblyGatheringLocationLoader }; obj9.Locations = list20; reference14 = obj9; - ref GatheringNode reference15 = ref span11[1]; + num3++; + ref GatheringNode reference15 = ref span19[num3]; GatheringNode obj10 = new GatheringNode { DataId = 32820u }; - num3 = 2; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - Span span12 = CollectionsMarshal.AsSpan(list21); - span12[0] = new GatheringLocation + num5 = 2; + List list21 = new List(num5); + CollectionsMarshal.SetCount(list21, num5); + Span span21 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span21[num4] = new GatheringLocation { Position = new Vector3(-164.9459f, 43.40527f, 153.1118f), MinimumAngle = -100, MaximumAngle = 75 }; - span12[1] = new GatheringLocation + num4++; + span21[num4] = new GatheringLocation { Position = new Vector3(-167.3752f, 47.25292f, 136.0359f), MinimumAngle = -105, @@ -10444,28 +12223,32 @@ public static class AssemblyGatheringLocationLoader reference15 = obj10; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - ref GatheringNodeGroup reference16 = ref span8[2]; + num++; + ref GatheringNodeGroup reference16 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 2; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span13 = CollectionsMarshal.AsSpan(list22); - ref GatheringNode reference17 = ref span13[0]; + num3 = 2; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref GatheringNode reference17 = ref span22[num2]; GatheringNode obj11 = new GatheringNode { DataId = 32818u }; - num3 = 2; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span14 = CollectionsMarshal.AsSpan(list23); - span14[0] = new GatheringLocation + num4 = 2; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + Span span23 = CollectionsMarshal.AsSpan(list23); + num5 = 0; + span23[num5] = new GatheringLocation { Position = new Vector3(-246.385f, 72.55199f, 90.56253f), MinimumAngle = -85, MaximumAngle = 80 }; - span14[1] = new GatheringLocation + num5++; + span23[num5] = new GatheringLocation { Position = new Vector3(-208.7709f, 77.46264f, 68.17573f), MinimumAngle = -105, @@ -10473,15 +12256,18 @@ public static class AssemblyGatheringLocationLoader }; obj11.Locations = list23; reference17 = obj11; - ref GatheringNode reference18 = ref span13[1]; + num2++; + ref GatheringNode reference18 = ref span22[num2]; GatheringNode obj12 = new GatheringNode { DataId = 32817u }; - num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = new GatheringLocation + num5 = 1; + List list24 = new List(num5); + CollectionsMarshal.SetCount(list24, num5); + Span span24 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span24[num4] = new GatheringLocation { Position = new Vector3(-243.0861f, 79.1743f, 75.10091f), MinimumAngle = -120, @@ -10497,12 +12283,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "liza"; gatheringRoot3.Author = list25; - num = 1; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 814) + index = 1; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + span26[num] = new QuestStep(EInteractionType.None, null, null, 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; @@ -10510,22 +12300,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span15 = CollectionsMarshal.AsSpan(list27); - ref GatheringNodeGroup reference19 = ref span15[0]; + Span span27 = CollectionsMarshal.AsSpan(list27); + index = 0; + ref GatheringNodeGroup reference19 = ref span27[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span16 = CollectionsMarshal.AsSpan(list28); - ref GatheringNode reference20 = ref span16[0]; + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + ref GatheringNode reference20 = ref span28[num3]; GatheringNode obj13 = new GatheringNode { DataId = 32825u }; - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = new GatheringLocation + num4 = 1; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + Span span29 = CollectionsMarshal.AsSpan(list29); + num5 = 0; + span29[num5] = new GatheringLocation { Position = new Vector3(-482.4797f, 39.54587f, 243.9857f), MinimumAngle = -95, @@ -10533,22 +12327,25 @@ public static class AssemblyGatheringLocationLoader }; obj13.Locations = list29; reference20 = obj13; - ref GatheringNode reference21 = ref span16[1]; + num3++; + ref GatheringNode reference21 = ref span28[num3]; GatheringNode obj14 = new GatheringNode { DataId = 32826u }; - num3 = 2; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span17 = CollectionsMarshal.AsSpan(list30); - span17[0] = new GatheringLocation + num5 = 2; + List list30 = new List(num5); + CollectionsMarshal.SetCount(list30, num5); + Span span30 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span30[num4] = new GatheringLocation { Position = new Vector3(-479.1443f, 39.79183f, 240.7795f), MinimumAngle = -75, MaximumAngle = 15 }; - span17[1] = new GatheringLocation + num4++; + span30[num4] = new GatheringLocation { Position = new Vector3(-486.3334f, 39.4147f, 246.6178f), MinimumAngle = -105, @@ -10558,28 +12355,32 @@ public static class AssemblyGatheringLocationLoader reference21 = obj14; gatheringNodeGroup7.Nodes = list28; reference19 = gatheringNodeGroup7; - ref GatheringNodeGroup reference22 = ref span15[1]; + index++; + ref GatheringNodeGroup reference22 = ref span27[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span18 = CollectionsMarshal.AsSpan(list31); - ref GatheringNode reference23 = ref span18[0]; + num3 = 2; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref GatheringNode reference23 = ref span31[num2]; GatheringNode obj15 = new GatheringNode { DataId = 32824u }; - num3 = 2; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span19 = CollectionsMarshal.AsSpan(list32); - span19[0] = new GatheringLocation + num4 = 2; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + Span span32 = CollectionsMarshal.AsSpan(list32); + num5 = 0; + span32[num5] = new GatheringLocation { Position = new Vector3(-591.8113f, 26.1771f, 413.057f), MinimumAngle = 165, MaximumAngle = 265 }; - span19[1] = new GatheringLocation + num5++; + span32[num5] = new GatheringLocation { Position = new Vector3(-583.5104f, 26.20471f, 419.7504f), MinimumAngle = 180, @@ -10587,15 +12388,18 @@ public static class AssemblyGatheringLocationLoader }; obj15.Locations = list32; reference23 = obj15; - ref GatheringNode reference24 = ref span18[1]; + num2++; + ref GatheringNode reference24 = ref span31[num2]; GatheringNode obj16 = new GatheringNode { DataId = 32823u }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new GatheringLocation + num5 = 1; + List list33 = new List(num5); + CollectionsMarshal.SetCount(list33, num5); + Span span33 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span33[num4] = new GatheringLocation { Position = new Vector3(-587.8331f, 26.20816f, 416.5177f), MinimumAngle = 155, @@ -10605,21 +12409,25 @@ public static class AssemblyGatheringLocationLoader reference24 = obj16; gatheringNodeGroup8.Nodes = list31; reference22 = gatheringNodeGroup8; - ref GatheringNodeGroup reference25 = ref span15[2]; + index++; + ref GatheringNodeGroup reference25 = ref span27[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span20 = CollectionsMarshal.AsSpan(list34); - ref GatheringNode reference26 = ref span20[0]; + Span span34 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + ref GatheringNode reference26 = ref span34[num3]; GatheringNode obj17 = new GatheringNode { DataId = 32821u }; - num3 = 1; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = new GatheringLocation + num4 = 1; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + Span span35 = CollectionsMarshal.AsSpan(list35); + num5 = 0; + span35[num5] = new GatheringLocation { Position = new Vector3(-667.9664f, 24.58142f, 365.2537f), MinimumAngle = 165, @@ -10627,22 +12435,25 @@ public static class AssemblyGatheringLocationLoader }; obj17.Locations = list35; reference26 = obj17; - ref GatheringNode reference27 = ref span20[1]; + num3++; + ref GatheringNode reference27 = ref span34[num3]; GatheringNode obj18 = new GatheringNode { DataId = 32822u }; - num3 = 2; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span21 = CollectionsMarshal.AsSpan(list36); - span21[0] = new GatheringLocation + num5 = 2; + List list36 = new List(num5); + CollectionsMarshal.SetCount(list36, num5); + Span span36 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span36[num4] = new GatheringLocation { Position = new Vector3(-672.0605f, 24.69111f, 363.4729f), MinimumAngle = 115, MaximumAngle = 215 }; - span21[1] = new GatheringLocation + num4++; + span36[num4] = new GatheringLocation { Position = new Vector3(-663.9247f, 24.84755f, 366.6812f), MinimumAngle = 170, @@ -10655,16 +12466,19 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list27; AddLocation(650, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + index = 1; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + span37[num] = "liza"; gatheringRoot4.Author = list37; num = 2; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span22 = CollectionsMarshal.AsSpan(list38); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(329.38184f, 9.586891f, 749.2314f), 816) + Span span38 = CollectionsMarshal.AsSpan(list38); + index = 0; + span38[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(329.38184f, 9.586891f, 749.2314f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran, @@ -10676,54 +12490,63 @@ public static class AssemblyGatheringLocationLoader } } }; - span22[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(351.29465f, -38.275272f, 763.0457f), 816) + index++; + span38[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(351.29465f, -38.275272f, 763.0457f), 816) { DisableNavmesh = true, Fly = true }; gatheringRoot4.Steps = list38; - num = 3; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span23 = CollectionsMarshal.AsSpan(list39); - ref GatheringNodeGroup reference28 = ref span23[0]; + index = 3; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + Span span39 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref GatheringNodeGroup reference28 = ref span39[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span24 = CollectionsMarshal.AsSpan(list40); - ref GatheringNode reference29 = ref span24[0]; + num3 = 2; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref GatheringNode reference29 = ref span40[num2]; GatheringNode obj19 = new GatheringNode { DataId = 32832u }; - num3 = 3; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - Span span25 = CollectionsMarshal.AsSpan(list41); - span25[0] = new GatheringLocation + num4 = 3; + List list41 = new List(num4); + CollectionsMarshal.SetCount(list41, num4); + Span span41 = CollectionsMarshal.AsSpan(list41); + num5 = 0; + span41[num5] = new GatheringLocation { Position = new Vector3(382.7488f, -72.47251f, 794.3513f) }; - span25[1] = new GatheringLocation + num5++; + span41[num5] = new GatheringLocation { Position = new Vector3(388.7861f, -74.19925f, 801.0947f) }; - span25[2] = new GatheringLocation + num5++; + span41[num5] = new GatheringLocation { Position = new Vector3(386.1797f, -73.5009f, 787.0967f) }; obj19.Locations = list41; reference29 = obj19; - ref GatheringNode reference30 = ref span24[1]; + num2++; + ref GatheringNode reference30 = ref span40[num2]; GatheringNode obj20 = new GatheringNode { DataId = 32831u }; - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation + num5 = 1; + List list42 = new List(num5); + CollectionsMarshal.SetCount(list42, num5); + Span span42 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span42[num4] = new GatheringLocation { Position = new Vector3(396.5799f, -76.29187f, 790.9022f) }; @@ -10731,40 +12554,47 @@ public static class AssemblyGatheringLocationLoader reference30 = obj20; gatheringNodeGroup10.Nodes = list40; reference28 = gatheringNodeGroup10; - ref GatheringNodeGroup reference31 = ref span23[1]; + num++; + ref GatheringNodeGroup reference31 = ref span39[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span26 = CollectionsMarshal.AsSpan(list43); - ref GatheringNode reference32 = ref span26[0]; + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + ref GatheringNode reference32 = ref span43[num3]; GatheringNode obj21 = new GatheringNode { DataId = 32830u }; - num3 = 2; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span27 = CollectionsMarshal.AsSpan(list44); - span27[0] = new GatheringLocation + num4 = 2; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + Span span44 = CollectionsMarshal.AsSpan(list44); + num5 = 0; + span44[num5] = new GatheringLocation { Position = new Vector3(492.6384f, -82.73045f, 804.714f) }; - span27[1] = new GatheringLocation + num5++; + span44[num5] = new GatheringLocation { Position = new Vector3(482.808f, -82.61642f, 802.591f) }; obj21.Locations = list44; reference32 = obj21; - ref GatheringNode reference33 = ref span26[1]; + num3++; + ref GatheringNode reference33 = ref span43[num3]; GatheringNode obj22 = new GatheringNode { DataId = 32829u }; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation + num5 = 1; + List list45 = new List(num5); + CollectionsMarshal.SetCount(list45, num5); + Span span45 = CollectionsMarshal.AsSpan(list45); + num4 = 0; + span45[num4] = new GatheringLocation { Position = new Vector3(493.5814f, -82.43644f, 790.831f) }; @@ -10772,35 +12602,42 @@ public static class AssemblyGatheringLocationLoader reference33 = obj22; gatheringNodeGroup11.Nodes = list43; reference31 = gatheringNodeGroup11; - ref GatheringNodeGroup reference34 = ref span23[2]; + num++; + ref GatheringNodeGroup reference34 = ref span39[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 2; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - Span span28 = CollectionsMarshal.AsSpan(list46); - ref GatheringNode reference35 = ref span28[0]; + num3 = 2; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + ref GatheringNode reference35 = ref span46[num2]; GatheringNode obj23 = new GatheringNode { DataId = 32827u }; - num3 = 1; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new GatheringLocation + num4 = 1; + List list47 = new List(num4); + CollectionsMarshal.SetCount(list47, num4); + Span span47 = CollectionsMarshal.AsSpan(list47); + num5 = 0; + span47[num5] = new GatheringLocation { Position = new Vector3(490.9451f, -97.88062f, 636.6115f) }; obj23.Locations = list47; reference35 = obj23; - ref GatheringNode reference36 = ref span28[1]; + num2++; + ref GatheringNode reference36 = ref span46[num2]; GatheringNode obj24 = new GatheringNode { DataId = 32828u }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation + num5 = 1; + List list48 = new List(num5); + CollectionsMarshal.SetCount(list48, num5); + Span span48 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span48[num4] = new GatheringLocation { Position = new Vector3(491.5274f, -100.762f, 626.6958f) }; @@ -10814,13 +12651,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "liza"; gatheringRoot5.Author = list49; - num = 2; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span29 = CollectionsMarshal.AsSpan(list50); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(491.82068f, 3.9304812f, 487.9401f), 816) + index = 2; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + span50[num] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(491.82068f, 3.9304812f, 487.9401f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran, @@ -10832,7 +12672,8 @@ public static class AssemblyGatheringLocationLoader } } }; - span29[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(506.00256f, -37.76961f, 485.49347f), 816) + num++; + span50[num] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(506.00256f, -37.76961f, 485.49347f), 816) { DisableNavmesh = true, Fly = true @@ -10841,35 +12682,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span30 = CollectionsMarshal.AsSpan(list51); - ref GatheringNodeGroup reference37 = ref span30[0]; + Span span51 = CollectionsMarshal.AsSpan(list51); + index = 0; + ref GatheringNodeGroup reference37 = ref span51[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span31 = CollectionsMarshal.AsSpan(list52); - ref GatheringNode reference38 = ref span31[0]; + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + ref GatheringNode reference38 = ref span52[num3]; GatheringNode obj25 = new GatheringNode { DataId = 32836u }; - num3 = 3; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - Span span32 = CollectionsMarshal.AsSpan(list53); - span32[0] = new GatheringLocation + num4 = 3; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + Span span53 = CollectionsMarshal.AsSpan(list53); + num5 = 0; + span53[num5] = new GatheringLocation { Position = new Vector3(539.5437f, -81.62054f, 520.1647f), MinimumAngle = -30, MaximumAngle = 165 }; - span32[1] = new GatheringLocation + num5++; + span53[num5] = new GatheringLocation { Position = new Vector3(555.8599f, -73.65717f, 494.6164f), MinimumAngle = 35, MaximumAngle = 240 }; - span32[2] = new GatheringLocation + num5++; + span53[num5] = new GatheringLocation { Position = new Vector3(576.4164f, -69.75835f, 512.9263f), MinimumAngle = -75, @@ -10877,15 +12723,18 @@ public static class AssemblyGatheringLocationLoader }; obj25.Locations = list53; reference38 = obj25; - ref GatheringNode reference39 = ref span31[1]; + num3++; + ref GatheringNode reference39 = ref span52[num3]; GatheringNode obj26 = new GatheringNode { DataId = 32835u }; - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation + num5 = 1; + List list54 = new List(num5); + CollectionsMarshal.SetCount(list54, num5); + Span span54 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span54[num4] = new GatheringLocation { Position = new Vector3(552.5504f, -78.23183f, 512.429f), MinimumAngle = -30, @@ -10895,28 +12744,32 @@ public static class AssemblyGatheringLocationLoader reference39 = obj26; gatheringNodeGroup13.Nodes = list52; reference37 = gatheringNodeGroup13; - ref GatheringNodeGroup reference40 = ref span30[1]; + index++; + ref GatheringNodeGroup reference40 = ref span51[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span33 = CollectionsMarshal.AsSpan(list55); - ref GatheringNode reference41 = ref span33[0]; + num3 = 2; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + ref GatheringNode reference41 = ref span55[num2]; GatheringNode obj27 = new GatheringNode { DataId = 32838u }; - num3 = 2; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - Span span34 = CollectionsMarshal.AsSpan(list56); - span34[0] = new GatheringLocation + num4 = 2; + List list56 = new List(num4); + CollectionsMarshal.SetCount(list56, num4); + Span span56 = CollectionsMarshal.AsSpan(list56); + num5 = 0; + span56[num5] = new GatheringLocation { Position = new Vector3(652.7063f, -46.64378f, 488.4543f), MinimumAngle = 0, MaximumAngle = 120 }; - span34[1] = new GatheringLocation + num5++; + span56[num5] = new GatheringLocation { Position = new Vector3(669.2959f, -47.14824f, 513.9606f), MinimumAngle = -20, @@ -10924,15 +12777,18 @@ public static class AssemblyGatheringLocationLoader }; obj27.Locations = list56; reference41 = obj27; - ref GatheringNode reference42 = ref span33[1]; + num2++; + ref GatheringNode reference42 = ref span55[num2]; GatheringNode obj28 = new GatheringNode { DataId = 32837u }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = new GatheringLocation + num5 = 1; + List list57 = new List(num5); + CollectionsMarshal.SetCount(list57, num5); + Span span57 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span57[num4] = new GatheringLocation { Position = new Vector3(659.1685f, -46.65159f, 499.8015f), MinimumAngle = 0, @@ -10942,21 +12798,25 @@ public static class AssemblyGatheringLocationLoader reference42 = obj28; gatheringNodeGroup14.Nodes = list55; reference40 = gatheringNodeGroup14; - ref GatheringNodeGroup reference43 = ref span30[2]; + index++; + ref GatheringNodeGroup reference43 = ref span51[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 2; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span35 = CollectionsMarshal.AsSpan(list58); - ref GatheringNode reference44 = ref span35[0]; + Span span58 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + ref GatheringNode reference44 = ref span58[num3]; GatheringNode obj29 = new GatheringNode { DataId = 32834u }; - num3 = 1; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = new GatheringLocation + num4 = 1; + List list59 = new List(num4); + CollectionsMarshal.SetCount(list59, num4); + Span span59 = CollectionsMarshal.AsSpan(list59); + num5 = 0; + span59[num5] = new GatheringLocation { Position = new Vector3(576.1583f, -46.68682f, 375.5306f), MinimumAngle = -40, @@ -10964,15 +12824,18 @@ public static class AssemblyGatheringLocationLoader }; obj29.Locations = list59; reference44 = obj29; - ref GatheringNode reference45 = ref span35[1]; + num3++; + ref GatheringNode reference45 = ref span58[num3]; GatheringNode obj30 = new GatheringNode { DataId = 32833u }; - num3 = 1; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = new GatheringLocation + num5 = 1; + List list60 = new List(num5); + CollectionsMarshal.SetCount(list60, num5); + Span span60 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span60[num4] = new GatheringLocation { Position = new Vector3(571.1834f, -46.41214f, 360.5112f), MinimumAngle = 0, @@ -10985,37 +12848,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list51; AddLocation(652, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + index = 1; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num = 0; + span61[num] = "liza"; gatheringRoot6.Author = list61; num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.None, null, null, 817) + Span span62 = CollectionsMarshal.AsSpan(list62); + index = 0; + span62[index] = new QuestStep(EInteractionType.None, null, null, 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; gatheringRoot6.Steps = list62; - num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span36 = CollectionsMarshal.AsSpan(list63); - ref GatheringNodeGroup reference46 = ref span36[0]; + index = 3; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + Span span63 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref GatheringNodeGroup reference46 = ref span63[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - ref GatheringNode reference47 = ref CollectionsMarshal.AsSpan(list64)[0]; + num3 = 1; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + ref GatheringNode reference47 = ref span64[num2]; GatheringNode obj31 = new GatheringNode { DataId = 32993u }; - num3 = 1; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = new GatheringLocation + num4 = 1; + List list65 = new List(num4); + CollectionsMarshal.SetCount(list65, num4); + Span span65 = CollectionsMarshal.AsSpan(list65); + num5 = 0; + span65[num5] = new GatheringLocation { Position = new Vector3(-704.8221f, 2.162976f, 563.2257f), MinimumAngle = 35, @@ -11027,20 +12899,25 @@ public static class AssemblyGatheringLocationLoader reference47 = obj31; gatheringNodeGroup16.Nodes = list64; reference46 = gatheringNodeGroup16; - ref GatheringNodeGroup reference48 = ref span36[1]; + num++; + ref GatheringNodeGroup reference48 = ref span63[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - ref GatheringNode reference49 = ref CollectionsMarshal.AsSpan(list66)[0]; + Span span66 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + ref GatheringNode reference49 = ref span66[num3]; GatheringNode obj32 = new GatheringNode { DataId = 32991u }; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new GatheringLocation + num5 = 1; + List list67 = new List(num5); + CollectionsMarshal.SetCount(list67, num5); + Span span67 = CollectionsMarshal.AsSpan(list67); + num4 = 0; + span67[num4] = new GatheringLocation { Position = new Vector3(-702.9366f, 3.147394f, 580.9824f), MinimumAngle = 20, @@ -11050,20 +12927,25 @@ public static class AssemblyGatheringLocationLoader reference49 = obj32; gatheringNodeGroup17.Nodes = list66; reference48 = gatheringNodeGroup17; - ref GatheringNodeGroup reference50 = ref span36[2]; + num++; + ref GatheringNodeGroup reference50 = ref span63[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - ref GatheringNode reference51 = ref CollectionsMarshal.AsSpan(list68)[0]; + num3 = 1; + List list68 = new List(num3); + CollectionsMarshal.SetCount(list68, num3); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + ref GatheringNode reference51 = ref span68[num2]; GatheringNode obj33 = new GatheringNode { DataId = 32992u }; - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = new GatheringLocation + num4 = 1; + List list69 = new List(num4); + CollectionsMarshal.SetCount(list69, num4); + Span span69 = CollectionsMarshal.AsSpan(list69); + num5 = 0; + span69[num5] = new GatheringLocation { Position = new Vector3(-731.9697f, 2.883299f, 562.4577f), MinimumAngle = 100, @@ -11079,42 +12961,52 @@ public static class AssemblyGatheringLocationLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - CollectionsMarshal.AsSpan(list70)[0] = "liza"; + Span span70 = CollectionsMarshal.AsSpan(list70); + index = 0; + span70[index] = "liza"; gatheringRoot7.Author = list70; - num = 3; - List list71 = new List(num); - CollectionsMarshal.SetCount(list71, num); - Span span37 = CollectionsMarshal.AsSpan(list71); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-790.09827f, 5.6f, 239.26955f), 817) + index = 3; + List list71 = new List(index); + CollectionsMarshal.SetCount(list71, index); + Span span71 = CollectionsMarshal.AsSpan(list71); + num = 0; + span71[num] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-790.09827f, 5.6f, 239.26955f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; - span37[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-789.0584f, -26.2001f, 239.5829f), 817) + num++; + span71[num] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-789.0584f, -26.2001f, 239.5829f), 817) { DisableNavmesh = true, Fly = true }; - span37[2] = new QuestStep(EInteractionType.None, null, null, 817); + num++; + span71[num] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot7.Steps = list71; num = 3; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span38 = CollectionsMarshal.AsSpan(list72); - ref GatheringNodeGroup reference52 = ref span38[0]; + Span span72 = CollectionsMarshal.AsSpan(list72); + index = 0; + ref GatheringNodeGroup reference52 = ref span72[index]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - ref GatheringNode reference53 = ref CollectionsMarshal.AsSpan(list73)[0]; + Span span73 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + ref GatheringNode reference53 = ref span73[num3]; GatheringNode obj34 = new GatheringNode { DataId = 32996u }; - num3 = 1; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - CollectionsMarshal.AsSpan(list74)[0] = new GatheringLocation + num5 = 1; + List list74 = new List(num5); + CollectionsMarshal.SetCount(list74, num5); + Span span74 = CollectionsMarshal.AsSpan(list74); + num4 = 0; + span74[num4] = new GatheringLocation { Position = new Vector3(-831.8083f, -41.57311f, 115.2932f), MinimumAngle = 40, @@ -11126,20 +13018,25 @@ public static class AssemblyGatheringLocationLoader reference53 = obj34; gatheringNodeGroup19.Nodes = list73; reference52 = gatheringNodeGroup19; - ref GatheringNodeGroup reference54 = ref span38[1]; + index++; + ref GatheringNodeGroup reference54 = ref span72[index]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - ref GatheringNode reference55 = ref CollectionsMarshal.AsSpan(list75)[0]; + num3 = 1; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + ref GatheringNode reference55 = ref span75[num2]; GatheringNode obj35 = new GatheringNode { DataId = 32994u }; - num3 = 1; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = new GatheringLocation + num4 = 1; + List list76 = new List(num4); + CollectionsMarshal.SetCount(list76, num4); + Span span76 = CollectionsMarshal.AsSpan(list76); + num5 = 0; + span76[num5] = new GatheringLocation { Position = new Vector3(-874.5662f, -38.51086f, 112.2362f), MinimumAngle = -75, @@ -11149,20 +13046,25 @@ public static class AssemblyGatheringLocationLoader reference55 = obj35; gatheringNodeGroup20.Nodes = list75; reference54 = gatheringNodeGroup20; - ref GatheringNodeGroup reference56 = ref span38[2]; + index++; + ref GatheringNodeGroup reference56 = ref span72[index]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - ref GatheringNode reference57 = ref CollectionsMarshal.AsSpan(list77)[0]; + Span span77 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + ref GatheringNode reference57 = ref span77[num3]; GatheringNode obj36 = new GatheringNode { DataId = 32995u }; - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new GatheringLocation + num5 = 1; + List list78 = new List(num5); + CollectionsMarshal.SetCount(list78, num5); + Span span78 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span78[num4] = new GatheringLocation { Position = new Vector3(-885.0585f, -37.47266f, 140.9555f), MinimumAngle = 225, @@ -11175,34 +13077,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list72; AddLocation(686, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - num = 1; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + index = 1; + List list79 = new List(index); + CollectionsMarshal.SetCount(list79, index); + Span span79 = CollectionsMarshal.AsSpan(list79); + num = 0; + span79[num] = "liza"; gatheringRoot8.Author = list79; num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.None, null, null, 817); + Span span80 = CollectionsMarshal.AsSpan(list80); + index = 0; + span80[index] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot8.Steps = list80; - num = 3; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span39 = CollectionsMarshal.AsSpan(list81); - ref GatheringNodeGroup reference58 = ref span39[0]; + index = 3; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + Span span81 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref GatheringNodeGroup reference58 = ref span81[num]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - ref GatheringNode reference59 = ref CollectionsMarshal.AsSpan(list82)[0]; + num3 = 1; + List list82 = new List(num3); + CollectionsMarshal.SetCount(list82, num3); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + ref GatheringNode reference59 = ref span82[num2]; GatheringNode obj37 = new GatheringNode { DataId = 32997u }; - num3 = 1; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = new GatheringLocation + num4 = 1; + List list83 = new List(num4); + CollectionsMarshal.SetCount(list83, num4); + Span span83 = CollectionsMarshal.AsSpan(list83); + num5 = 0; + span83[num5] = new GatheringLocation { Position = new Vector3(476.9907f, -2.17159f, -464.3045f), MinimumAngle = -10, @@ -11212,20 +13123,25 @@ public static class AssemblyGatheringLocationLoader reference59 = obj37; gatheringNodeGroup22.Nodes = list82; reference58 = gatheringNodeGroup22; - ref GatheringNodeGroup reference60 = ref span39[1]; + num++; + ref GatheringNodeGroup reference60 = ref span81[num]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - ref GatheringNode reference61 = ref CollectionsMarshal.AsSpan(list84)[0]; + Span span84 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + ref GatheringNode reference61 = ref span84[num3]; GatheringNode obj38 = new GatheringNode { DataId = 32999u }; - num3 = 1; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = new GatheringLocation + num5 = 1; + List list85 = new List(num5); + CollectionsMarshal.SetCount(list85, num5); + Span span85 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span85[num4] = new GatheringLocation { Position = new Vector3(447.1716f, -0.6280748f, -467.6738f), MinimumAngle = -120, @@ -11235,20 +13151,25 @@ public static class AssemblyGatheringLocationLoader reference61 = obj38; gatheringNodeGroup23.Nodes = list84; reference60 = gatheringNodeGroup23; - ref GatheringNodeGroup reference62 = ref span39[2]; + num++; + ref GatheringNodeGroup reference62 = ref span81[num]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - ref GatheringNode reference63 = ref CollectionsMarshal.AsSpan(list86)[0]; + num3 = 1; + List list86 = new List(num3); + CollectionsMarshal.SetCount(list86, num3); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + ref GatheringNode reference63 = ref span86[num2]; GatheringNode obj39 = new GatheringNode { DataId = 32998u }; - num3 = 1; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = new GatheringLocation + num4 = 1; + List list87 = new List(num4); + CollectionsMarshal.SetCount(list87, num4); + Span span87 = CollectionsMarshal.AsSpan(list87); + num5 = 0; + span87[num5] = new GatheringLocation { Position = new Vector3(438.931f, -1.880641f, -455.9972f), MinimumAngle = -80, @@ -11264,31 +13185,40 @@ public static class AssemblyGatheringLocationLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "liza"; + Span span88 = CollectionsMarshal.AsSpan(list88); + index = 0; + span88[index] = "liza"; gatheringRoot9.Author = list88; - num = 1; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.None, null, null, 817); + index = 1; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + Span span89 = CollectionsMarshal.AsSpan(list89); + num = 0; + span89[num] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot9.Steps = list89; num = 3; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span40 = CollectionsMarshal.AsSpan(list90); - ref GatheringNodeGroup reference64 = ref span40[0]; + Span span90 = CollectionsMarshal.AsSpan(list90); + index = 0; + ref GatheringNodeGroup reference64 = ref span90[index]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - ref GatheringNode reference65 = ref CollectionsMarshal.AsSpan(list91)[0]; + Span span91 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + ref GatheringNode reference65 = ref span91[num3]; GatheringNode obj40 = new GatheringNode { DataId = 33002u }; - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = new GatheringLocation + num5 = 1; + List list92 = new List(num5); + CollectionsMarshal.SetCount(list92, num5); + Span span92 = CollectionsMarshal.AsSpan(list92); + num4 = 0; + span92[num4] = new GatheringLocation { Position = new Vector3(164.1997f, 24.4362f, 58.99305f), MinimumAngle = 85, @@ -11298,20 +13228,25 @@ public static class AssemblyGatheringLocationLoader reference65 = obj40; gatheringNodeGroup25.Nodes = list91; reference64 = gatheringNodeGroup25; - ref GatheringNodeGroup reference66 = ref span40[1]; + index++; + ref GatheringNodeGroup reference66 = ref span90[index]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - ref GatheringNode reference67 = ref CollectionsMarshal.AsSpan(list93)[0]; + num3 = 1; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + ref GatheringNode reference67 = ref span93[num2]; GatheringNode obj41 = new GatheringNode { DataId = 33001u }; - num3 = 1; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = new GatheringLocation + num4 = 1; + List list94 = new List(num4); + CollectionsMarshal.SetCount(list94, num4); + Span span94 = CollectionsMarshal.AsSpan(list94); + num5 = 0; + span94[num5] = new GatheringLocation { Position = new Vector3(131.2174f, 27.21391f, 45.33313f), MinimumAngle = 160, @@ -11321,20 +13256,25 @@ public static class AssemblyGatheringLocationLoader reference67 = obj41; gatheringNodeGroup26.Nodes = list93; reference66 = gatheringNodeGroup26; - ref GatheringNodeGroup reference68 = ref span40[2]; + index++; + ref GatheringNodeGroup reference68 = ref span90[index]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - ref GatheringNode reference69 = ref CollectionsMarshal.AsSpan(list95)[0]; + Span span95 = CollectionsMarshal.AsSpan(list95); + num3 = 0; + ref GatheringNode reference69 = ref span95[num3]; GatheringNode obj42 = new GatheringNode { DataId = 33000u }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = new GatheringLocation + num5 = 1; + List list96 = new List(num5); + CollectionsMarshal.SetCount(list96, num5); + Span span96 = CollectionsMarshal.AsSpan(list96); + num4 = 0; + span96[num4] = new GatheringLocation { Position = new Vector3(65.9342f, 22.4589f, 45.68196f), MinimumAngle = 180, @@ -11347,37 +13287,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list90; AddLocation(688, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - num = 1; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + index = 1; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + Span span97 = CollectionsMarshal.AsSpan(list97); + num = 0; + span97[num] = "liza"; gatheringRoot10.Author = list97; num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.None, null, null, 817) + Span span98 = CollectionsMarshal.AsSpan(list98); + index = 0; + span98[index] = new QuestStep(EInteractionType.None, null, null, 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; gatheringRoot10.Steps = list98; - num = 3; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span41 = CollectionsMarshal.AsSpan(list99); - ref GatheringNodeGroup reference70 = ref span41[0]; + index = 3; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + Span span99 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref GatheringNodeGroup reference70 = ref span99[num]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - ref GatheringNode reference71 = ref CollectionsMarshal.AsSpan(list100)[0]; + num3 = 1; + List list100 = new List(num3); + CollectionsMarshal.SetCount(list100, num3); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref GatheringNode reference71 = ref span100[num2]; GatheringNode obj43 = new GatheringNode { DataId = 33005u }; - num3 = 1; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = new GatheringLocation + num4 = 1; + List list101 = new List(num4); + CollectionsMarshal.SetCount(list101, num4); + Span span101 = CollectionsMarshal.AsSpan(list101); + num5 = 0; + span101[num5] = new GatheringLocation { Position = new Vector3(214.7744f, -19.57758f, 623.6767f), MinimumAngle = -15, @@ -11387,20 +13336,25 @@ public static class AssemblyGatheringLocationLoader reference71 = obj43; gatheringNodeGroup28.Nodes = list100; reference70 = gatheringNodeGroup28; - ref GatheringNodeGroup reference72 = ref span41[1]; + num++; + ref GatheringNodeGroup reference72 = ref span99[num]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - ref GatheringNode reference73 = ref CollectionsMarshal.AsSpan(list102)[0]; + Span span102 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + ref GatheringNode reference73 = ref span102[num3]; GatheringNode obj44 = new GatheringNode { DataId = 33004u }; - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = new GatheringLocation + num5 = 1; + List list103 = new List(num5); + CollectionsMarshal.SetCount(list103, num5); + Span span103 = CollectionsMarshal.AsSpan(list103); + num4 = 0; + span103[num4] = new GatheringLocation { Position = new Vector3(235.4031f, -17.474f, 645.2612f), MinimumAngle = -75, @@ -11410,20 +13364,25 @@ public static class AssemblyGatheringLocationLoader reference73 = obj44; gatheringNodeGroup29.Nodes = list102; reference72 = gatheringNodeGroup29; - ref GatheringNodeGroup reference74 = ref span41[2]; + num++; + ref GatheringNodeGroup reference74 = ref span99[num]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - ref GatheringNode reference75 = ref CollectionsMarshal.AsSpan(list104)[0]; + num3 = 1; + List list104 = new List(num3); + CollectionsMarshal.SetCount(list104, num3); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + ref GatheringNode reference75 = ref span104[num2]; GatheringNode obj45 = new GatheringNode { DataId = 33003u }; - num3 = 1; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = new GatheringLocation + num4 = 1; + List list105 = new List(num4); + CollectionsMarshal.SetCount(list105, num4); + Span span105 = CollectionsMarshal.AsSpan(list105); + num5 = 0; + span105[num5] = new GatheringLocation { Position = new Vector3(263.691f, -15.7453f, 659.6932f), MinimumAngle = 5, @@ -11439,12 +13398,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "liza"; + Span span106 = CollectionsMarshal.AsSpan(list106); + index = 0; + span106[index] = "liza"; gatheringRoot11.Author = list106; - num = 1; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.None, null, null, 817) + index = 1; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + Span span107 = CollectionsMarshal.AsSpan(list107); + num = 0; + span107[num] = new QuestStep(EInteractionType.None, null, null, 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; @@ -11452,21 +13415,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - Span span42 = CollectionsMarshal.AsSpan(list108); - ref GatheringNodeGroup reference76 = ref span42[0]; + Span span108 = CollectionsMarshal.AsSpan(list108); + index = 0; + ref GatheringNodeGroup reference76 = ref span108[index]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - ref GatheringNode reference77 = ref CollectionsMarshal.AsSpan(list109)[0]; + Span span109 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + ref GatheringNode reference77 = ref span109[num3]; GatheringNode obj46 = new GatheringNode { DataId = 33007u }; - num3 = 1; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = new GatheringLocation + num5 = 1; + List list110 = new List(num5); + CollectionsMarshal.SetCount(list110, num5); + Span span110 = CollectionsMarshal.AsSpan(list110); + num4 = 0; + span110[num4] = new GatheringLocation { Position = new Vector3(-643.0819f, 1.715566f, 600.3007f) }; @@ -11474,20 +13442,25 @@ public static class AssemblyGatheringLocationLoader reference77 = obj46; gatheringNodeGroup31.Nodes = list109; reference76 = gatheringNodeGroup31; - ref GatheringNodeGroup reference78 = ref span42[1]; + index++; + ref GatheringNodeGroup reference78 = ref span108[index]; GatheringNodeGroup gatheringNodeGroup32 = new GatheringNodeGroup(); - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - ref GatheringNode reference79 = ref CollectionsMarshal.AsSpan(list111)[0]; + num3 = 1; + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + ref GatheringNode reference79 = ref span111[num2]; GatheringNode obj47 = new GatheringNode { DataId = 33006u }; - num3 = 1; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - CollectionsMarshal.AsSpan(list112)[0] = new GatheringLocation + num4 = 1; + List list112 = new List(num4); + CollectionsMarshal.SetCount(list112, num4); + Span span112 = CollectionsMarshal.AsSpan(list112); + num5 = 0; + span112[num5] = new GatheringLocation { Position = new Vector3(-664.0663f, 4.130917f, 608.2639f), MinimumAngle = 100, @@ -11497,20 +13470,25 @@ public static class AssemblyGatheringLocationLoader reference79 = obj47; gatheringNodeGroup32.Nodes = list111; reference78 = gatheringNodeGroup32; - ref GatheringNodeGroup reference80 = ref span42[2]; + index++; + ref GatheringNodeGroup reference80 = ref span108[index]; GatheringNodeGroup gatheringNodeGroup33 = new GatheringNodeGroup(); num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - ref GatheringNode reference81 = ref CollectionsMarshal.AsSpan(list113)[0]; + Span span113 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + ref GatheringNode reference81 = ref span113[num3]; GatheringNode obj48 = new GatheringNode { DataId = 33008u }; - num3 = 1; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = new GatheringLocation + num5 = 1; + List list114 = new List(num5); + CollectionsMarshal.SetCount(list114, num5); + Span span114 = CollectionsMarshal.AsSpan(list114); + num4 = 0; + span114[num4] = new GatheringLocation { Position = new Vector3(-689.2495f, 4.592032f, 603.05f), MinimumAngle = -95, @@ -11523,45 +13501,55 @@ public static class AssemblyGatheringLocationLoader gatheringRoot11.Groups = list108; AddLocation(690, gatheringRoot11); GatheringRoot gatheringRoot12 = new GatheringRoot(); - num = 1; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "liza"; + index = 1; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + Span span115 = CollectionsMarshal.AsSpan(list115); + num = 0; + span115[num] = "liza"; gatheringRoot12.Author = list115; num = 3; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - Span span43 = CollectionsMarshal.AsSpan(list116); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-790.09827f, 5.6f, 239.26955f), 817) + Span span116 = CollectionsMarshal.AsSpan(list116); + index = 0; + span116[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-790.09827f, 5.6f, 239.26955f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; - span43[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-789.0584f, -26.2001f, 239.5829f), 817) + index++; + span116[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-789.0584f, -26.2001f, 239.5829f), 817) { DisableNavmesh = true, Fly = true }; - span43[2] = new QuestStep(EInteractionType.None, null, null, 817); + index++; + span116[index] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot12.Steps = list116; - num = 3; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span44 = CollectionsMarshal.AsSpan(list117); - ref GatheringNodeGroup reference82 = ref span44[0]; + index = 3; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + Span span117 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref GatheringNodeGroup reference82 = ref span117[num]; GatheringNodeGroup gatheringNodeGroup34 = new GatheringNodeGroup(); - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - ref GatheringNode reference83 = ref CollectionsMarshal.AsSpan(list118)[0]; + num3 = 1; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + ref GatheringNode reference83 = ref span118[num2]; GatheringNode obj49 = new GatheringNode { DataId = 33011u }; - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = new GatheringLocation + num4 = 1; + List list119 = new List(num4); + CollectionsMarshal.SetCount(list119, num4); + Span span119 = CollectionsMarshal.AsSpan(list119); + num5 = 0; + span119[num5] = new GatheringLocation { Position = new Vector3(-833.2918f, -44.18139f, 229.6708f) }; @@ -11569,20 +13557,25 @@ public static class AssemblyGatheringLocationLoader reference83 = obj49; gatheringNodeGroup34.Nodes = list118; reference82 = gatheringNodeGroup34; - ref GatheringNodeGroup reference84 = ref span44[1]; + num++; + ref GatheringNodeGroup reference84 = ref span117[num]; GatheringNodeGroup gatheringNodeGroup35 = new GatheringNodeGroup(); num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - ref GatheringNode reference85 = ref CollectionsMarshal.AsSpan(list120)[0]; + Span span120 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + ref GatheringNode reference85 = ref span120[num3]; GatheringNode obj50 = new GatheringNode { DataId = 33010u }; - num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = new GatheringLocation + num5 = 1; + List list121 = new List(num5); + CollectionsMarshal.SetCount(list121, num5); + Span span121 = CollectionsMarshal.AsSpan(list121); + num4 = 0; + span121[num4] = new GatheringLocation { Position = new Vector3(-869.9858f, -41.20595f, 221.9869f) }; @@ -11590,20 +13583,25 @@ public static class AssemblyGatheringLocationLoader reference85 = obj50; gatheringNodeGroup35.Nodes = list120; reference84 = gatheringNodeGroup35; - ref GatheringNodeGroup reference86 = ref span44[2]; + num++; + ref GatheringNodeGroup reference86 = ref span117[num]; GatheringNodeGroup gatheringNodeGroup36 = new GatheringNodeGroup(); - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - ref GatheringNode reference87 = ref CollectionsMarshal.AsSpan(list122)[0]; + num3 = 1; + List list122 = new List(num3); + CollectionsMarshal.SetCount(list122, num3); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + ref GatheringNode reference87 = ref span122[num2]; GatheringNode obj51 = new GatheringNode { DataId = 33009u }; - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = new GatheringLocation + num4 = 1; + List list123 = new List(num4); + CollectionsMarshal.SetCount(list123, num4); + Span span123 = CollectionsMarshal.AsSpan(list123); + num5 = 0; + span123[num5] = new GatheringLocation { Position = new Vector3(-847.5519f, -41.43839f, 195.9766f) }; @@ -11617,31 +13615,40 @@ public static class AssemblyGatheringLocationLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "liza"; + Span span124 = CollectionsMarshal.AsSpan(list124); + index = 0; + span124[index] = "liza"; gatheringRoot13.Author = list124; - num = 1; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.None, null, null, 817); + index = 1; + List list125 = new List(index); + CollectionsMarshal.SetCount(list125, index); + Span span125 = CollectionsMarshal.AsSpan(list125); + num = 0; + span125[num] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot13.Steps = list125; num = 3; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - Span span45 = CollectionsMarshal.AsSpan(list126); - ref GatheringNodeGroup reference88 = ref span45[0]; + Span span126 = CollectionsMarshal.AsSpan(list126); + index = 0; + ref GatheringNodeGroup reference88 = ref span126[index]; GatheringNodeGroup gatheringNodeGroup37 = new GatheringNodeGroup(); num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - ref GatheringNode reference89 = ref CollectionsMarshal.AsSpan(list127)[0]; + Span span127 = CollectionsMarshal.AsSpan(list127); + num3 = 0; + ref GatheringNode reference89 = ref span127[num3]; GatheringNode obj52 = new GatheringNode { DataId = 33013u }; - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = new GatheringLocation + num5 = 1; + List list128 = new List(num5); + CollectionsMarshal.SetCount(list128, num5); + Span span128 = CollectionsMarshal.AsSpan(list128); + num4 = 0; + span128[num4] = new GatheringLocation { Position = new Vector3(471.6041f, 0.1209641f, -476.659f), MinimumAngle = 0, @@ -11651,20 +13658,25 @@ public static class AssemblyGatheringLocationLoader reference89 = obj52; gatheringNodeGroup37.Nodes = list127; reference88 = gatheringNodeGroup37; - ref GatheringNodeGroup reference90 = ref span45[1]; + index++; + ref GatheringNodeGroup reference90 = ref span126[index]; GatheringNodeGroup gatheringNodeGroup38 = new GatheringNodeGroup(); - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - ref GatheringNode reference91 = ref CollectionsMarshal.AsSpan(list129)[0]; + num3 = 1; + List list129 = new List(num3); + CollectionsMarshal.SetCount(list129, num3); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + ref GatheringNode reference91 = ref span129[num2]; GatheringNode obj53 = new GatheringNode { DataId = 33012u }; - num3 = 1; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = new GatheringLocation + num4 = 1; + List list130 = new List(num4); + CollectionsMarshal.SetCount(list130, num4); + Span span130 = CollectionsMarshal.AsSpan(list130); + num5 = 0; + span130[num5] = new GatheringLocation { Position = new Vector3(448.4756f, 2.033593f, -482.1674f), MinimumAngle = 155, @@ -11674,20 +13686,25 @@ public static class AssemblyGatheringLocationLoader reference91 = obj53; gatheringNodeGroup38.Nodes = list129; reference90 = gatheringNodeGroup38; - ref GatheringNodeGroup reference92 = ref span45[2]; + index++; + ref GatheringNodeGroup reference92 = ref span126[index]; GatheringNodeGroup gatheringNodeGroup39 = new GatheringNodeGroup(); num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - ref GatheringNode reference93 = ref CollectionsMarshal.AsSpan(list131)[0]; + Span span131 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + ref GatheringNode reference93 = ref span131[num3]; GatheringNode obj54 = new GatheringNode { DataId = 33014u }; - num3 = 1; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = new GatheringLocation + num5 = 1; + List list132 = new List(num5); + CollectionsMarshal.SetCount(list132, num5); + Span span132 = CollectionsMarshal.AsSpan(list132); + num4 = 0; + span132[num4] = new GatheringLocation { Position = new Vector3(433.1882f, 10.99631f, -517.6039f) }; @@ -11698,34 +13715,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot13.Groups = list126; AddLocation(692, gatheringRoot13); GatheringRoot gatheringRoot14 = new GatheringRoot(); - num = 1; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - CollectionsMarshal.AsSpan(list133)[0] = "liza"; + index = 1; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + Span span133 = CollectionsMarshal.AsSpan(list133); + num = 0; + span133[num] = "liza"; gatheringRoot14.Author = list133; num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.None, null, null, 817); + Span span134 = CollectionsMarshal.AsSpan(list134); + index = 0; + span134[index] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot14.Steps = list134; - num = 3; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span46 = CollectionsMarshal.AsSpan(list135); - ref GatheringNodeGroup reference94 = ref span46[0]; + index = 3; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + Span span135 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref GatheringNodeGroup reference94 = ref span135[num]; GatheringNodeGroup gatheringNodeGroup40 = new GatheringNodeGroup(); - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - ref GatheringNode reference95 = ref CollectionsMarshal.AsSpan(list136)[0]; + num3 = 1; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + ref GatheringNode reference95 = ref span136[num2]; GatheringNode obj55 = new GatheringNode { DataId = 33015u }; - num3 = 1; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - CollectionsMarshal.AsSpan(list137)[0] = new GatheringLocation + num4 = 1; + List list137 = new List(num4); + CollectionsMarshal.SetCount(list137, num4); + Span span137 = CollectionsMarshal.AsSpan(list137); + num5 = 0; + span137[num5] = new GatheringLocation { Position = new Vector3(301.3512f, 8.535884f, 8.796566f), MinimumAngle = 55, @@ -11735,20 +13761,25 @@ public static class AssemblyGatheringLocationLoader reference95 = obj55; gatheringNodeGroup40.Nodes = list136; reference94 = gatheringNodeGroup40; - ref GatheringNodeGroup reference96 = ref span46[1]; + num++; + ref GatheringNodeGroup reference96 = ref span135[num]; GatheringNodeGroup gatheringNodeGroup41 = new GatheringNodeGroup(); num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - ref GatheringNode reference97 = ref CollectionsMarshal.AsSpan(list138)[0]; + Span span138 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + ref GatheringNode reference97 = ref span138[num3]; GatheringNode obj56 = new GatheringNode { DataId = 33016u }; - num3 = 1; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - CollectionsMarshal.AsSpan(list139)[0] = new GatheringLocation + num5 = 1; + List list139 = new List(num5); + CollectionsMarshal.SetCount(list139, num5); + Span span139 = CollectionsMarshal.AsSpan(list139); + num4 = 0; + span139[num4] = new GatheringLocation { Position = new Vector3(273.905f, 10.59709f, 19.72124f), MinimumAngle = 135, @@ -11758,20 +13789,25 @@ public static class AssemblyGatheringLocationLoader reference97 = obj56; gatheringNodeGroup41.Nodes = list138; reference96 = gatheringNodeGroup41; - ref GatheringNodeGroup reference98 = ref span46[2]; + num++; + ref GatheringNodeGroup reference98 = ref span135[num]; GatheringNodeGroup gatheringNodeGroup42 = new GatheringNodeGroup(); - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - ref GatheringNode reference99 = ref CollectionsMarshal.AsSpan(list140)[0]; + num3 = 1; + List list140 = new List(num3); + CollectionsMarshal.SetCount(list140, num3); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + ref GatheringNode reference99 = ref span140[num2]; GatheringNode obj57 = new GatheringNode { DataId = 33017u }; - num3 = 1; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = new GatheringLocation + num4 = 1; + List list141 = new List(num4); + CollectionsMarshal.SetCount(list141, num4); + Span span141 = CollectionsMarshal.AsSpan(list141); + num5 = 0; + span141[num5] = new GatheringLocation { Position = new Vector3(271.7985f, 7.424402f, -29.68495f), MinimumAngle = -165, @@ -11787,12 +13823,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - CollectionsMarshal.AsSpan(list142)[0] = "liza"; + Span span142 = CollectionsMarshal.AsSpan(list142); + index = 0; + span142[index] = "liza"; gatheringRoot15.Author = list142; - num = 1; - List list143 = new List(num); - CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.None, null, null, 817) + index = 1; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + Span span143 = CollectionsMarshal.AsSpan(list143); + num = 0; + span143[num] = new QuestStep(EInteractionType.None, null, null, 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; @@ -11800,21 +13840,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - Span span47 = CollectionsMarshal.AsSpan(list144); - ref GatheringNodeGroup reference100 = ref span47[0]; + Span span144 = CollectionsMarshal.AsSpan(list144); + index = 0; + ref GatheringNodeGroup reference100 = ref span144[index]; GatheringNodeGroup gatheringNodeGroup43 = new GatheringNodeGroup(); num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - ref GatheringNode reference101 = ref CollectionsMarshal.AsSpan(list145)[0]; + Span span145 = CollectionsMarshal.AsSpan(list145); + num3 = 0; + ref GatheringNode reference101 = ref span145[num3]; GatheringNode obj58 = new GatheringNode { DataId = 33020u }; - num3 = 1; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new GatheringLocation + num5 = 1; + List list146 = new List(num5); + CollectionsMarshal.SetCount(list146, num5); + Span span146 = CollectionsMarshal.AsSpan(list146); + num4 = 0; + span146[num4] = new GatheringLocation { Position = new Vector3(226.1767f, -20.10281f, 643.5543f), MinimumAngle = -50, @@ -11824,20 +13869,25 @@ public static class AssemblyGatheringLocationLoader reference101 = obj58; gatheringNodeGroup43.Nodes = list145; reference100 = gatheringNodeGroup43; - ref GatheringNodeGroup reference102 = ref span47[1]; + index++; + ref GatheringNodeGroup reference102 = ref span144[index]; GatheringNodeGroup gatheringNodeGroup44 = new GatheringNodeGroup(); - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - ref GatheringNode reference103 = ref CollectionsMarshal.AsSpan(list147)[0]; + num3 = 1; + List list147 = new List(num3); + CollectionsMarshal.SetCount(list147, num3); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + ref GatheringNode reference103 = ref span147[num2]; GatheringNode obj59 = new GatheringNode { DataId = 33018u }; - num3 = 1; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - CollectionsMarshal.AsSpan(list148)[0] = new GatheringLocation + num4 = 1; + List list148 = new List(num4); + CollectionsMarshal.SetCount(list148, num4); + Span span148 = CollectionsMarshal.AsSpan(list148); + num5 = 0; + span148[num5] = new GatheringLocation { Position = new Vector3(248.9525f, -17.98949f, 657.4498f), MinimumAngle = -55, @@ -11849,20 +13899,25 @@ public static class AssemblyGatheringLocationLoader reference103 = obj59; gatheringNodeGroup44.Nodes = list147; reference102 = gatheringNodeGroup44; - ref GatheringNodeGroup reference104 = ref span47[2]; + index++; + ref GatheringNodeGroup reference104 = ref span144[index]; GatheringNodeGroup gatheringNodeGroup45 = new GatheringNodeGroup(); num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - ref GatheringNode reference105 = ref CollectionsMarshal.AsSpan(list149)[0]; + Span span149 = CollectionsMarshal.AsSpan(list149); + num3 = 0; + ref GatheringNode reference105 = ref span149[num3]; GatheringNode obj60 = new GatheringNode { DataId = 33019u }; - num3 = 1; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = new GatheringLocation + num5 = 1; + List list150 = new List(num5); + CollectionsMarshal.SetCount(list150, num5); + Span span150 = CollectionsMarshal.AsSpan(list150); + num4 = 0; + span150[num4] = new GatheringLocation { Position = new Vector3(209.0277f, -25.56828f, 701.8604f) }; @@ -11880,12 +13935,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - ref QuestStep reference = ref CollectionsMarshal.AsSpan(list2)[0]; + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestStep reference = ref span2[num]; QuestStep obj = new QuestStep(EInteractionType.None, null, null, 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -11900,7 +13959,9 @@ public static class AssemblyGatheringLocationLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = 399; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = 399; skipAetheryteCondition.InTerritory = list3; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj.SkipConditions = skipConditions; @@ -11909,14 +13970,16 @@ public static class AssemblyGatheringLocationLoader num = 3; List list4 = new List(num); CollectionsMarshal.SetCount(list4, num); - Span span = CollectionsMarshal.AsSpan(list4); - ref GatheringNodeGroup reference2 = ref span[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + index = 0; + ref GatheringNodeGroup reference2 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); - num2 = 2; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - ref GatheringNode reference3 = ref span2[0]; + index2 = 2; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + ref GatheringNode reference3 = ref span5[num2]; GatheringNode obj2 = new GatheringNode { DataId = 33285u @@ -11924,26 +13987,31 @@ public static class AssemblyGatheringLocationLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation + Span span6 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span6[index3] = new GatheringLocation { Position = new Vector3(-426.4134f, 137.5601f, 514.3357f) }; obj2.Locations = list6; reference3 = obj2; - ref GatheringNode reference4 = ref span2[1]; + num2++; + ref GatheringNode reference4 = ref span5[num2]; GatheringNode obj3 = new GatheringNode { DataId = 33286u }; - num3 = 2; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = new GatheringLocation + index3 = 2; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span7[num3] = new GatheringLocation { Position = new Vector3(-448.7838f, 137.5986f, 514.3243f) }; - span3[1] = new GatheringLocation + num3++; + span7[num3] = new GatheringLocation { Position = new Vector3(-433.5015f, 137.6451f, 487.8173f) }; @@ -11951,13 +14019,15 @@ public static class AssemblyGatheringLocationLoader reference4 = obj3; gatheringNodeGroup.Nodes = list5; reference2 = gatheringNodeGroup; - ref GatheringNodeGroup reference5 = ref span[1]; + index++; + ref GatheringNodeGroup reference5 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); num2 = 2; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span4 = CollectionsMarshal.AsSpan(list8); - ref GatheringNode reference6 = ref span4[0]; + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref GatheringNode reference6 = ref span8[index2]; GatheringNode obj4 = new GatheringNode { DataId = 33288u @@ -11965,21 +14035,26 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation + Span span9 = CollectionsMarshal.AsSpan(list9); + index3 = 0; + span9[index3] = new GatheringLocation { Position = new Vector3(-354.5423f, 137.5715f, 638.9959f) }; obj4.Locations = list9; reference6 = obj4; - ref GatheringNode reference7 = ref span4[1]; + index2++; + ref GatheringNode reference7 = ref span8[index2]; GatheringNode obj5 = new GatheringNode { DataId = 33287u }; - num3 = 1; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = new GatheringLocation + index3 = 1; + List list10 = new List(index3); + CollectionsMarshal.SetCount(list10, index3); + Span span10 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span10[num3] = new GatheringLocation { Position = new Vector3(-352.4377f, 137.5906f, 604.364f) }; @@ -11987,13 +14062,15 @@ public static class AssemblyGatheringLocationLoader reference7 = obj5; gatheringNodeGroup2.Nodes = list8; reference5 = gatheringNodeGroup2; - ref GatheringNodeGroup reference8 = ref span[2]; + index++; + ref GatheringNodeGroup reference8 = ref span4[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); - num2 = 2; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - Span span5 = CollectionsMarshal.AsSpan(list11); - ref GatheringNode reference9 = ref span5[0]; + index2 = 2; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref GatheringNode reference9 = ref span11[num2]; GatheringNode obj6 = new GatheringNode { DataId = 33284u @@ -12001,7 +14078,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation + Span span12 = CollectionsMarshal.AsSpan(list12); + index3 = 0; + span12[index3] = new GatheringLocation { Position = new Vector3(-254.4776f, 137.97f, 591.0092f), MinimumAngle = -20, @@ -12009,15 +14088,18 @@ public static class AssemblyGatheringLocationLoader }; obj6.Locations = list12; reference9 = obj6; - ref GatheringNode reference10 = ref span5[1]; + num2++; + ref GatheringNode reference10 = ref span11[num2]; GatheringNode obj7 = new GatheringNode { DataId = 33283u }; - num3 = 1; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = new GatheringLocation + index3 = 1; + List list13 = new List(index3); + CollectionsMarshal.SetCount(list13, index3); + Span span13 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span13[num3] = new GatheringLocation { Position = new Vector3(-263.1079f, 137.4419f, 569.8724f), MinimumAngle = -10, @@ -12030,30 +14112,36 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list4; AddLocation(723, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "liza"; + index = 1; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + num = 0; + span14[num] = "liza"; gatheringRoot2.Author = list14; num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.None, null, null, 397) + Span span15 = CollectionsMarshal.AsSpan(list15); + index = 0; + span15[index] = new QuestStep(EInteractionType.None, null, null, 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; gatheringRoot2.Steps = list15; - num = 3; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span6 = CollectionsMarshal.AsSpan(list16); - ref GatheringNodeGroup reference11 = ref span6[0]; + index = 3; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + Span span16 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref GatheringNodeGroup reference11 = ref span16[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); num2 = 2; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span7 = CollectionsMarshal.AsSpan(list17); - ref GatheringNode reference12 = ref span7[0]; + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + ref GatheringNode reference12 = ref span17[index2]; GatheringNode obj8 = new GatheringNode { DataId = 33290u @@ -12061,14 +14149,16 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span8 = CollectionsMarshal.AsSpan(list18); - span8[0] = new GatheringLocation + Span span18 = CollectionsMarshal.AsSpan(list18); + index3 = 0; + span18[index3] = new GatheringLocation { Position = new Vector3(-409.5019f, 171.5775f, 49.79576f), MinimumAngle = -40, MaximumAngle = 115 }; - span8[1] = new GatheringLocation + index3++; + span18[index3] = new GatheringLocation { Position = new Vector3(-418.5088f, 168.7132f, 33.29783f), MinimumAngle = 10, @@ -12076,15 +14166,18 @@ public static class AssemblyGatheringLocationLoader }; obj8.Locations = list18; reference12 = obj8; - ref GatheringNode reference13 = ref span7[1]; + index2++; + ref GatheringNode reference13 = ref span17[index2]; GatheringNode obj9 = new GatheringNode { DataId = 33289u }; - num3 = 1; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - CollectionsMarshal.AsSpan(list19)[0] = new GatheringLocation + index3 = 1; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span19[num3] = new GatheringLocation { Position = new Vector3(-413.911f, 170.7656f, 43.01591f), MinimumAngle = 0, @@ -12094,13 +14187,15 @@ public static class AssemblyGatheringLocationLoader reference13 = obj9; gatheringNodeGroup4.Nodes = list17; reference11 = gatheringNodeGroup4; - ref GatheringNodeGroup reference14 = ref span6[1]; + num++; + ref GatheringNodeGroup reference14 = ref span16[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); - num2 = 2; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span9 = CollectionsMarshal.AsSpan(list20); - ref GatheringNode reference15 = ref span9[0]; + index2 = 2; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref GatheringNode reference15 = ref span20[num2]; GatheringNode obj10 = new GatheringNode { DataId = 33292u @@ -12108,7 +14203,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new GatheringLocation + Span span21 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span21[index3] = new GatheringLocation { Position = new Vector3(-510.636f, 169.9518f, 119.9934f), MinimumAngle = 150, @@ -12116,15 +14213,18 @@ public static class AssemblyGatheringLocationLoader }; obj10.Locations = list21; reference15 = obj10; - ref GatheringNode reference16 = ref span9[1]; + num2++; + ref GatheringNode reference16 = ref span20[num2]; GatheringNode obj11 = new GatheringNode { DataId = 33291u }; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = new GatheringLocation + index3 = 1; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = new GatheringLocation { Position = new Vector3(-519.3103f, 169.0242f, 111.3145f), MinimumAngle = 125, @@ -12134,13 +14234,15 @@ public static class AssemblyGatheringLocationLoader reference16 = obj11; gatheringNodeGroup5.Nodes = list20; reference14 = gatheringNodeGroup5; - ref GatheringNodeGroup reference17 = ref span6[2]; + num++; + ref GatheringNodeGroup reference17 = ref span16[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); num2 = 2; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span10 = CollectionsMarshal.AsSpan(list23); - ref GatheringNode reference18 = ref span10[0]; + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + ref GatheringNode reference18 = ref span23[index2]; GatheringNode obj12 = new GatheringNode { DataId = 33293u @@ -12148,7 +14250,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = new GatheringLocation + Span span24 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + span24[index3] = new GatheringLocation { Position = new Vector3(-563.8201f, 159.5121f, -11.58269f), MinimumAngle = -100, @@ -12156,15 +14260,18 @@ public static class AssemblyGatheringLocationLoader }; obj12.Locations = list24; reference18 = obj12; - ref GatheringNode reference19 = ref span10[1]; + index2++; + ref GatheringNode reference19 = ref span23[index2]; GatheringNode obj13 = new GatheringNode { DataId = 33294u }; - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = new GatheringLocation + index3 = 1; + List list25 = new List(index3); + CollectionsMarshal.SetCount(list25, index3); + Span span25 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span25[num3] = new GatheringLocation { Position = new Vector3(-555.6268f, 159.594f, -17.77679f), MinimumAngle = -145, @@ -12180,12 +14287,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "liza"; + Span span26 = CollectionsMarshal.AsSpan(list26); + index = 0; + span26[index] = "liza"; gatheringRoot3.Author = list26; - num = 1; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.None, null, null, 398) + index = 1; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + Span span27 = CollectionsMarshal.AsSpan(list27); + num = 0; + span27[num] = new QuestStep(EInteractionType.None, null, null, 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; @@ -12193,14 +14304,16 @@ public static class AssemblyGatheringLocationLoader num = 3; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - Span span11 = CollectionsMarshal.AsSpan(list28); - ref GatheringNodeGroup reference20 = ref span11[0]; + Span span28 = CollectionsMarshal.AsSpan(list28); + index = 0; + ref GatheringNodeGroup reference20 = ref span28[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); - num2 = 2; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - Span span12 = CollectionsMarshal.AsSpan(list29); - ref GatheringNode reference21 = ref span12[0]; + index2 = 2; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + ref GatheringNode reference21 = ref span29[num2]; GatheringNode obj14 = new GatheringNode { DataId = 33300u @@ -12208,14 +14321,16 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span13 = CollectionsMarshal.AsSpan(list30); - span13[0] = new GatheringLocation + Span span30 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span30[index3] = new GatheringLocation { Position = new Vector3(560.8948f, -19.68621f, -534.3345f), MinimumAngle = -75, MaximumAngle = 30 }; - span13[1] = new GatheringLocation + index3++; + span30[index3] = new GatheringLocation { Position = new Vector3(557.1625f, -19.65358f, -547.1852f), MinimumAngle = 60, @@ -12223,15 +14338,18 @@ public static class AssemblyGatheringLocationLoader }; obj14.Locations = list30; reference21 = obj14; - ref GatheringNode reference22 = ref span12[1]; + num2++; + ref GatheringNode reference22 = ref span29[num2]; GatheringNode obj15 = new GatheringNode { DataId = 33299u }; - num3 = 1; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = new GatheringLocation + index3 = 1; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = new GatheringLocation { Position = new Vector3(571.0399f, -19.2677f, -544.8133f), MinimumAngle = 200, @@ -12241,13 +14359,15 @@ public static class AssemblyGatheringLocationLoader reference22 = obj15; gatheringNodeGroup7.Nodes = list29; reference20 = gatheringNodeGroup7; - ref GatheringNodeGroup reference23 = ref span11[1]; + index++; + ref GatheringNodeGroup reference23 = ref span28[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); num2 = 2; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span14 = CollectionsMarshal.AsSpan(list32); - ref GatheringNode reference24 = ref span14[0]; + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref GatheringNode reference24 = ref span32[index2]; GatheringNode obj16 = new GatheringNode { DataId = 33297u @@ -12255,7 +14375,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new GatheringLocation + Span span33 = CollectionsMarshal.AsSpan(list33); + index3 = 0; + span33[index3] = new GatheringLocation { Position = new Vector3(630.7735f, -18.70739f, -566.2144f), MinimumAngle = 85, @@ -12263,22 +14385,25 @@ public static class AssemblyGatheringLocationLoader }; obj16.Locations = list33; reference24 = obj16; - ref GatheringNode reference25 = ref span14[1]; + index2++; + ref GatheringNode reference25 = ref span32[index2]; GatheringNode obj17 = new GatheringNode { DataId = 33298u }; - num3 = 2; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span15 = CollectionsMarshal.AsSpan(list34); - span15[0] = new GatheringLocation + index3 = 2; + List list34 = new List(index3); + CollectionsMarshal.SetCount(list34, index3); + Span span34 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span34[num3] = new GatheringLocation { Position = new Vector3(639.3101f, -18.78794f, -559.5169f), MinimumAngle = -175, MaximumAngle = 0 }; - span15[1] = new GatheringLocation + num3++; + span34[num3] = new GatheringLocation { Position = new Vector3(618.4453f, -18.9477f, -559.1786f), MinimumAngle = 60, @@ -12288,13 +14413,15 @@ public static class AssemblyGatheringLocationLoader reference25 = obj17; gatheringNodeGroup8.Nodes = list32; reference23 = gatheringNodeGroup8; - ref GatheringNodeGroup reference26 = ref span11[2]; + index++; + ref GatheringNodeGroup reference26 = ref span28[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); - num2 = 2; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span16 = CollectionsMarshal.AsSpan(list35); - ref GatheringNode reference27 = ref span16[0]; + index2 = 2; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + ref GatheringNode reference27 = ref span35[num2]; GatheringNode obj18 = new GatheringNode { DataId = 33295u @@ -12302,7 +14429,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list36 = new List(num3); CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = new GatheringLocation + Span span36 = CollectionsMarshal.AsSpan(list36); + index3 = 0; + span36[index3] = new GatheringLocation { Position = new Vector3(731.6483f, -20.17027f, -614.199f), MinimumAngle = -35, @@ -12310,22 +14439,25 @@ public static class AssemblyGatheringLocationLoader }; obj18.Locations = list36; reference27 = obj18; - ref GatheringNode reference28 = ref span16[1]; + num2++; + ref GatheringNode reference28 = ref span35[num2]; GatheringNode obj19 = new GatheringNode { DataId = 33296u }; - num3 = 2; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - Span span17 = CollectionsMarshal.AsSpan(list37); - span17[0] = new GatheringLocation + index3 = 2; + List list37 = new List(index3); + CollectionsMarshal.SetCount(list37, index3); + Span span37 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span37[num3] = new GatheringLocation { Position = new Vector3(743.4034f, -19.02f, -621.8422f), MinimumAngle = 195, MaximumAngle = 325 }; - span17[1] = new GatheringLocation + num3++; + span37[num3] = new GatheringLocation { Position = new Vector3(727.6966f, -20.47985f, -627.8105f), MinimumAngle = 60, @@ -12338,30 +14470,36 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list28; AddLocation(725, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "liza"; + index = 1; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + Span span38 = CollectionsMarshal.AsSpan(list38); + num = 0; + span38[num] = "liza"; gatheringRoot4.Author = list38; num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.None, null, null, 400) + Span span39 = CollectionsMarshal.AsSpan(list39); + index = 0; + span39[index] = new QuestStep(EInteractionType.None, null, null, 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; gatheringRoot4.Steps = list39; - num = 3; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span18 = CollectionsMarshal.AsSpan(list40); - ref GatheringNodeGroup reference29 = ref span18[0]; + index = 3; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + Span span40 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref GatheringNodeGroup reference29 = ref span40[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); num2 = 2; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span19 = CollectionsMarshal.AsSpan(list41); - ref GatheringNode reference30 = ref span19[0]; + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + ref GatheringNode reference30 = ref span41[index2]; GatheringNode obj20 = new GatheringNode { DataId = 33305u @@ -12369,7 +14507,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation + Span span42 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span42[index3] = new GatheringLocation { Position = new Vector3(-560.7639f, 266.9573f, -744.8922f), MinimumAngle = -45, @@ -12377,15 +14517,18 @@ public static class AssemblyGatheringLocationLoader }; obj20.Locations = list42; reference30 = obj20; - ref GatheringNode reference31 = ref span19[1]; + index2++; + ref GatheringNode reference31 = ref span41[index2]; GatheringNode obj21 = new GatheringNode { DataId = 33306u }; - num3 = 1; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new GatheringLocation + index3 = 1; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span43[num3] = new GatheringLocation { Position = new Vector3(-547.9997f, 268.3711f, -737.2209f), MinimumAngle = 0, @@ -12395,13 +14538,15 @@ public static class AssemblyGatheringLocationLoader reference31 = obj21; gatheringNodeGroup10.Nodes = list41; reference29 = gatheringNodeGroup10; - ref GatheringNodeGroup reference32 = ref span18[1]; + num++; + ref GatheringNodeGroup reference32 = ref span40[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); - num2 = 2; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - Span span20 = CollectionsMarshal.AsSpan(list44); - ref GatheringNode reference33 = ref span20[0]; + index2 = 2; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + ref GatheringNode reference33 = ref span44[num2]; GatheringNode obj22 = new GatheringNode { DataId = 33304u @@ -12409,7 +14554,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation + Span span45 = CollectionsMarshal.AsSpan(list45); + index3 = 0; + span45[index3] = new GatheringLocation { Position = new Vector3(-682.6185f, 261.1417f, -778.2869f), MinimumAngle = -50, @@ -12419,15 +14566,18 @@ public static class AssemblyGatheringLocationLoader }; obj22.Locations = list45; reference33 = obj22; - ref GatheringNode reference34 = ref span20[1]; + num2++; + ref GatheringNode reference34 = ref span44[num2]; GatheringNode obj23 = new GatheringNode { DataId = 33303u }; - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new GatheringLocation + index3 = 1; + List list46 = new List(index3); + CollectionsMarshal.SetCount(list46, index3); + Span span46 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span46[num3] = new GatheringLocation { Position = new Vector3(-696.5138f, 261.6092f, -759.7711f), MinimumAngle = 215, @@ -12437,13 +14587,15 @@ public static class AssemblyGatheringLocationLoader reference34 = obj23; gatheringNodeGroup11.Nodes = list44; reference32 = gatheringNodeGroup11; - ref GatheringNodeGroup reference35 = ref span18[2]; + num++; + ref GatheringNodeGroup reference35 = ref span40[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); num2 = 2; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span21 = CollectionsMarshal.AsSpan(list47); - ref GatheringNode reference36 = ref span21[0]; + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + ref GatheringNode reference36 = ref span47[index2]; GatheringNode obj24 = new GatheringNode { DataId = 33301u @@ -12451,7 +14603,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation + Span span48 = CollectionsMarshal.AsSpan(list48); + index3 = 0; + span48[index3] = new GatheringLocation { Position = new Vector3(-792.3468f, 271.3054f, -737.431f), MinimumAngle = 280, @@ -12461,15 +14615,18 @@ public static class AssemblyGatheringLocationLoader }; obj24.Locations = list48; reference36 = obj24; - ref GatheringNode reference37 = ref span21[1]; + index2++; + ref GatheringNode reference37 = ref span47[index2]; GatheringNode obj25 = new GatheringNode { DataId = 33302u }; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = new GatheringLocation + index3 = 1; + List list49 = new List(index3); + CollectionsMarshal.SetCount(list49, index3); + Span span49 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span49[num3] = new GatheringLocation { Position = new Vector3(-800.0043f, 269.2748f, -729.5305f), MinimumAngle = 230, @@ -12485,12 +14642,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = "liza"; + Span span50 = CollectionsMarshal.AsSpan(list50); + index = 0; + span50[index] = "liza"; gatheringRoot5.Author = list50; - num = 1; - List list51 = new List(num); - CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.None, null, null, 401) + index = 1; + List list51 = new List(index); + CollectionsMarshal.SetCount(list51, index); + Span span51 = CollectionsMarshal.AsSpan(list51); + num = 0; + span51[num] = new QuestStep(EInteractionType.None, null, null, 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; @@ -12498,14 +14659,16 @@ public static class AssemblyGatheringLocationLoader num = 3; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span22 = CollectionsMarshal.AsSpan(list52); - ref GatheringNodeGroup reference38 = ref span22[0]; + Span span52 = CollectionsMarshal.AsSpan(list52); + index = 0; + ref GatheringNodeGroup reference38 = ref span52[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); - num2 = 2; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span23 = CollectionsMarshal.AsSpan(list53); - ref GatheringNode reference39 = ref span23[0]; + index2 = 2; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref GatheringNode reference39 = ref span53[num2]; GatheringNode obj26 = new GatheringNode { DataId = 33308u @@ -12513,7 +14676,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation + Span span54 = CollectionsMarshal.AsSpan(list54); + index3 = 0; + span54[index3] = new GatheringLocation { Position = new Vector3(612.0084f, -154.126f, 721.6054f), MinimumAngle = -220, @@ -12521,15 +14686,18 @@ public static class AssemblyGatheringLocationLoader }; obj26.Locations = list54; reference39 = obj26; - ref GatheringNode reference40 = ref span23[1]; + num2++; + ref GatheringNode reference40 = ref span53[num2]; GatheringNode obj27 = new GatheringNode { DataId = 33307u }; - num3 = 1; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = new GatheringLocation + index3 = 1; + List list55 = new List(index3); + CollectionsMarshal.SetCount(list55, index3); + Span span55 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span55[num3] = new GatheringLocation { Position = new Vector3(601.7455f, -154.7067f, 734.4706f), MinimumAngle = -120, @@ -12539,13 +14707,15 @@ public static class AssemblyGatheringLocationLoader reference40 = obj27; gatheringNodeGroup13.Nodes = list53; reference38 = gatheringNodeGroup13; - ref GatheringNodeGroup reference41 = ref span22[1]; + index++; + ref GatheringNodeGroup reference41 = ref span52[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); num2 = 2; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span24 = CollectionsMarshal.AsSpan(list56); - ref GatheringNode reference42 = ref span24[0]; + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + ref GatheringNode reference42 = ref span56[index2]; GatheringNode obj28 = new GatheringNode { DataId = 33311u @@ -12553,21 +14723,26 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = new GatheringLocation + Span span57 = CollectionsMarshal.AsSpan(list57); + index3 = 0; + span57[index3] = new GatheringLocation { Position = new Vector3(654.2362f, -159.8305f, 820.9418f) }; obj28.Locations = list57; reference42 = obj28; - ref GatheringNode reference43 = ref span24[1]; + index2++; + ref GatheringNode reference43 = ref span56[index2]; GatheringNode obj29 = new GatheringNode { DataId = 33312u }; - num3 = 1; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - CollectionsMarshal.AsSpan(list58)[0] = new GatheringLocation + index3 = 1; + List list58 = new List(index3); + CollectionsMarshal.SetCount(list58, index3); + Span span58 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + span58[num3] = new GatheringLocation { Position = new Vector3(656.2291f, -160.4766f, 826.9885f), MinimumAngle = 100, @@ -12577,13 +14752,15 @@ public static class AssemblyGatheringLocationLoader reference43 = obj29; gatheringNodeGroup14.Nodes = list56; reference41 = gatheringNodeGroup14; - ref GatheringNodeGroup reference44 = ref span22[2]; + index++; + ref GatheringNodeGroup reference44 = ref span52[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); - num2 = 2; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - Span span25 = CollectionsMarshal.AsSpan(list59); - ref GatheringNode reference45 = ref span25[0]; + index2 = 2; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + ref GatheringNode reference45 = ref span59[num2]; GatheringNode obj30 = new GatheringNode { DataId = 33309u @@ -12591,7 +14768,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = new GatheringLocation + Span span60 = CollectionsMarshal.AsSpan(list60); + index3 = 0; + span60[index3] = new GatheringLocation { Position = new Vector3(739.0756f, -158.0396f, 642.5712f), MinimumAngle = 110, @@ -12601,15 +14780,18 @@ public static class AssemblyGatheringLocationLoader }; obj30.Locations = list60; reference45 = obj30; - ref GatheringNode reference46 = ref span25[1]; + num2++; + ref GatheringNode reference46 = ref span59[num2]; GatheringNode obj31 = new GatheringNode { DataId = 33310u }; - num3 = 1; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - CollectionsMarshal.AsSpan(list61)[0] = new GatheringLocation + index3 = 1; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = new GatheringLocation { Position = new Vector3(723.027f, -157.7834f, 626.666f), MinimumAngle = -170, @@ -12622,30 +14804,36 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list52; AddLocation(727, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "liza"; + index = 1; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + Span span62 = CollectionsMarshal.AsSpan(list62); + num = 0; + span62[num] = "liza"; gatheringRoot6.Author = list62; num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.None, null, null, 401) + Span span63 = CollectionsMarshal.AsSpan(list63); + index = 0; + span63[index] = new QuestStep(EInteractionType.None, null, null, 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; gatheringRoot6.Steps = list63; - num = 3; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - Span span26 = CollectionsMarshal.AsSpan(list64); - ref GatheringNodeGroup reference47 = ref span26[0]; + index = 3; + List list64 = new List(index); + CollectionsMarshal.SetCount(list64, index); + Span span64 = CollectionsMarshal.AsSpan(list64); + num = 0; + ref GatheringNodeGroup reference47 = ref span64[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); num2 = 2; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span27 = CollectionsMarshal.AsSpan(list65); - ref GatheringNode reference48 = ref span27[0]; + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + ref GatheringNode reference48 = ref span65[index2]; GatheringNode obj32 = new GatheringNode { DataId = 33313u @@ -12653,7 +14841,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = new GatheringLocation + Span span66 = CollectionsMarshal.AsSpan(list66); + index3 = 0; + span66[index3] = new GatheringLocation { Position = new Vector3(284.0225f, -40.41348f, -766.5984f), MinimumAngle = 160, @@ -12663,15 +14853,18 @@ public static class AssemblyGatheringLocationLoader }; obj32.Locations = list66; reference48 = obj32; - ref GatheringNode reference49 = ref span27[1]; + index2++; + ref GatheringNode reference49 = ref span65[index2]; GatheringNode obj33 = new GatheringNode { DataId = 33314u }; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new GatheringLocation + index3 = 1; + List list67 = new List(index3); + CollectionsMarshal.SetCount(list67, index3); + Span span67 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span67[num3] = new GatheringLocation { Position = new Vector3(291.4046f, -40.37925f, -758.5402f), MinimumAngle = 210, @@ -12681,13 +14874,15 @@ public static class AssemblyGatheringLocationLoader reference49 = obj33; gatheringNodeGroup16.Nodes = list65; reference47 = gatheringNodeGroup16; - ref GatheringNodeGroup reference50 = ref span26[1]; + num++; + ref GatheringNodeGroup reference50 = ref span64[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); - num2 = 2; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span28 = CollectionsMarshal.AsSpan(list68); - ref GatheringNode reference51 = ref span28[0]; + index2 = 2; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + ref GatheringNode reference51 = ref span68[num2]; GatheringNode obj34 = new GatheringNode { DataId = 33315u @@ -12695,7 +14890,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = new GatheringLocation + Span span69 = CollectionsMarshal.AsSpan(list69); + index3 = 0; + span69[index3] = new GatheringLocation { Position = new Vector3(358.8156f, -41.42974f, -734.5118f), MinimumAngle = 115, @@ -12703,15 +14900,18 @@ public static class AssemblyGatheringLocationLoader }; obj34.Locations = list69; reference51 = obj34; - ref GatheringNode reference52 = ref span28[1]; + num2++; + ref GatheringNode reference52 = ref span68[num2]; GatheringNode obj35 = new GatheringNode { DataId = 33316u }; - num3 = 1; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = new GatheringLocation + index3 = 1; + List list70 = new List(index3); + CollectionsMarshal.SetCount(list70, index3); + Span span70 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span70[num3] = new GatheringLocation { Position = new Vector3(367.6869f, -41.54303f, -735.3597f), MinimumAngle = 70, @@ -12721,13 +14921,15 @@ public static class AssemblyGatheringLocationLoader reference52 = obj35; gatheringNodeGroup17.Nodes = list68; reference50 = gatheringNodeGroup17; - ref GatheringNodeGroup reference53 = ref span26[2]; + num++; + ref GatheringNodeGroup reference53 = ref span64[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); num2 = 2; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span29 = CollectionsMarshal.AsSpan(list71); - ref GatheringNode reference54 = ref span29[0]; + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + ref GatheringNode reference54 = ref span71[index2]; GatheringNode obj36 = new GatheringNode { DataId = 33317u @@ -12735,7 +14937,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = new GatheringLocation + Span span72 = CollectionsMarshal.AsSpan(list72); + index3 = 0; + span72[index3] = new GatheringLocation { Position = new Vector3(452.3558f, -47.13874f, -752.6805f), MinimumAngle = 150, @@ -12743,15 +14947,18 @@ public static class AssemblyGatheringLocationLoader }; obj36.Locations = list72; reference54 = obj36; - ref GatheringNode reference55 = ref span29[1]; + index2++; + ref GatheringNode reference55 = ref span71[index2]; GatheringNode obj37 = new GatheringNode { DataId = 33318u }; - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = new GatheringLocation + index3 = 1; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + Span span73 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span73[num3] = new GatheringLocation { Position = new Vector3(465.9165f, -47.82627f, -756.4039f), MinimumAngle = 35, @@ -12769,12 +14976,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "liza"; + Span span74 = CollectionsMarshal.AsSpan(list74); + index = 0; + span74[index] = "liza"; gatheringRoot7.Author = list74; - num = 1; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.None, null, null, 620) + index = 1; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + Span span75 = CollectionsMarshal.AsSpan(list75); + num = 0; + span75[num] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -12782,14 +14993,16 @@ public static class AssemblyGatheringLocationLoader num = 3; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - Span span30 = CollectionsMarshal.AsSpan(list76); - ref GatheringNodeGroup reference56 = ref span30[0]; + Span span76 = CollectionsMarshal.AsSpan(list76); + index = 0; + ref GatheringNodeGroup reference56 = ref span76[index]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); - num2 = 2; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - Span span31 = CollectionsMarshal.AsSpan(list77); - ref GatheringNode reference57 = ref span31[0]; + index2 = 2; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + ref GatheringNode reference57 = ref span77[num2]; GatheringNode obj38 = new GatheringNode { DataId = 33321u @@ -12797,7 +15010,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new GatheringLocation + Span span78 = CollectionsMarshal.AsSpan(list78); + index3 = 0; + span78[index3] = new GatheringLocation { Position = new Vector3(518.1079f, 218.4718f, -593.7597f), MinimumAngle = -140, @@ -12805,22 +15020,25 @@ public static class AssemblyGatheringLocationLoader }; obj38.Locations = list78; reference57 = obj38; - ref GatheringNode reference58 = ref span31[1]; + num2++; + ref GatheringNode reference58 = ref span77[num2]; GatheringNode obj39 = new GatheringNode { DataId = 33322u }; - num3 = 2; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - Span span32 = CollectionsMarshal.AsSpan(list79); - span32[0] = new GatheringLocation + index3 = 2; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + Span span79 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span79[num3] = new GatheringLocation { Position = new Vector3(543.8551f, 223.6571f, -583.9418f), MinimumAngle = 175, MaximumAngle = 290 }; - span32[1] = new GatheringLocation + num3++; + span79[num3] = new GatheringLocation { Position = new Vector3(513.8116f, 218.4708f, -580.1434f), MinimumAngle = 0, @@ -12830,13 +15048,15 @@ public static class AssemblyGatheringLocationLoader reference58 = obj39; gatheringNodeGroup19.Nodes = list77; reference56 = gatheringNodeGroup19; - ref GatheringNodeGroup reference59 = ref span30[1]; + index++; + ref GatheringNodeGroup reference59 = ref span76[index]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); num2 = 2; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span33 = CollectionsMarshal.AsSpan(list80); - ref GatheringNode reference60 = ref span33[0]; + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + ref GatheringNode reference60 = ref span80[index2]; GatheringNode obj40 = new GatheringNode { DataId = 33323u @@ -12844,7 +15064,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list81 = new List(num3); CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new GatheringLocation + Span span81 = CollectionsMarshal.AsSpan(list81); + index3 = 0; + span81[index3] = new GatheringLocation { Position = new Vector3(648.0388f, 230.7679f, -678.8027f), MinimumAngle = 225, @@ -12852,15 +15074,18 @@ public static class AssemblyGatheringLocationLoader }; obj40.Locations = list81; reference60 = obj40; - ref GatheringNode reference61 = ref span33[1]; + index2++; + ref GatheringNode reference61 = ref span80[index2]; GatheringNode obj41 = new GatheringNode { DataId = 33324u }; - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = new GatheringLocation + index3 = 1; + List list82 = new List(index3); + CollectionsMarshal.SetCount(list82, index3); + Span span82 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span82[num3] = new GatheringLocation { Position = new Vector3(675.1682f, 234.6712f, -675.749f), MinimumAngle = -55, @@ -12870,13 +15095,15 @@ public static class AssemblyGatheringLocationLoader reference61 = obj41; gatheringNodeGroup20.Nodes = list80; reference59 = gatheringNodeGroup20; - ref GatheringNodeGroup reference62 = ref span30[2]; + index++; + ref GatheringNodeGroup reference62 = ref span76[index]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); - num2 = 2; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - Span span34 = CollectionsMarshal.AsSpan(list83); - ref GatheringNode reference63 = ref span34[0]; + index2 = 2; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + ref GatheringNode reference63 = ref span83[num2]; GatheringNode obj42 = new GatheringNode { DataId = 33320u @@ -12884,7 +15111,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = new GatheringLocation + Span span84 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span84[index3] = new GatheringLocation { Position = new Vector3(722.4699f, 242.8886f, -598.9974f), MinimumAngle = 65, @@ -12892,15 +15121,18 @@ public static class AssemblyGatheringLocationLoader }; obj42.Locations = list84; reference63 = obj42; - ref GatheringNode reference64 = ref span34[1]; + num2++; + ref GatheringNode reference64 = ref span83[num2]; GatheringNode obj43 = new GatheringNode { DataId = 33319u }; - num3 = 1; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = new GatheringLocation + index3 = 1; + List list85 = new List(index3); + CollectionsMarshal.SetCount(list85, index3); + Span span85 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span85[num3] = new GatheringLocation { Position = new Vector3(718.4479f, 244.6019f, -583.6996f), MinimumAngle = 45, @@ -12913,33 +15145,39 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list76; AddLocation(729, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - num = 1; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; + index = 1; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + Span span86 = CollectionsMarshal.AsSpan(list86); + num = 0; + span86[num] = "liza"; gatheringRoot8.Author = list86; num = 2; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - Span span35 = CollectionsMarshal.AsSpan(list87); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + Span span87 = CollectionsMarshal.AsSpan(list87); + index = 0; + span87[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span35[1] = new QuestStep(EInteractionType.None, null, null, 613); + index++; + span87[index] = new QuestStep(EInteractionType.None, null, null, 613); gatheringRoot8.Steps = list87; - num = 3; - List list88 = new List(num); - CollectionsMarshal.SetCount(list88, num); - Span span36 = CollectionsMarshal.AsSpan(list88); - ref GatheringNodeGroup reference65 = ref span36[0]; + index = 3; + List list88 = new List(index); + CollectionsMarshal.SetCount(list88, index); + Span span88 = CollectionsMarshal.AsSpan(list88); + num = 0; + ref GatheringNodeGroup reference65 = ref span88[num]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); num2 = 2; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span37 = CollectionsMarshal.AsSpan(list89); - ref GatheringNode reference66 = ref span37[0]; + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + ref GatheringNode reference66 = ref span89[index2]; GatheringNode obj44 = new GatheringNode { DataId = 33325u @@ -12947,7 +15185,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = new GatheringLocation + Span span90 = CollectionsMarshal.AsSpan(list90); + index3 = 0; + span90[index3] = new GatheringLocation { Position = new Vector3(953.1041f, -127.1716f, -816.3145f), MinimumAngle = -25, @@ -12955,22 +15195,25 @@ public static class AssemblyGatheringLocationLoader }; obj44.Locations = list90; reference66 = obj44; - ref GatheringNode reference67 = ref span37[1]; + index2++; + ref GatheringNode reference67 = ref span89[index2]; GatheringNode obj45 = new GatheringNode { DataId = 33326u }; - num3 = 2; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - Span span38 = CollectionsMarshal.AsSpan(list91); - span38[0] = new GatheringLocation + index3 = 2; + List list91 = new List(index3); + CollectionsMarshal.SetCount(list91, index3); + Span span91 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + span91[num3] = new GatheringLocation { Position = new Vector3(956.8734f, -129.366f, -843.1625f), MinimumAngle = 75, MaximumAngle = 210 }; - span38[1] = new GatheringLocation + num3++; + span91[num3] = new GatheringLocation { Position = new Vector3(976.0558f, -131.5356f, -813.2305f), MinimumAngle = -65, @@ -12982,13 +15225,15 @@ public static class AssemblyGatheringLocationLoader reference67 = obj45; gatheringNodeGroup22.Nodes = list89; reference65 = gatheringNodeGroup22; - ref GatheringNodeGroup reference68 = ref span36[1]; + num++; + ref GatheringNodeGroup reference68 = ref span88[num]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); - num2 = 2; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - Span span39 = CollectionsMarshal.AsSpan(list92); - ref GatheringNode reference69 = ref span39[0]; + index2 = 2; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + ref GatheringNode reference69 = ref span92[num2]; GatheringNode obj46 = new GatheringNode { DataId = 33327u @@ -12996,7 +15241,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new GatheringLocation + Span span93 = CollectionsMarshal.AsSpan(list93); + index3 = 0; + span93[index3] = new GatheringLocation { Position = new Vector3(887.1607f, -141.6279f, -863.3355f), MinimumAngle = 185, @@ -13004,22 +15251,25 @@ public static class AssemblyGatheringLocationLoader }; obj46.Locations = list93; reference69 = obj46; - ref GatheringNode reference70 = ref span39[1]; + num2++; + ref GatheringNode reference70 = ref span92[num2]; GatheringNode obj47 = new GatheringNode { DataId = 33328u }; - num3 = 2; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span40 = CollectionsMarshal.AsSpan(list94); - span40[0] = new GatheringLocation + index3 = 2; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + Span span94 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span94[num3] = new GatheringLocation { Position = new Vector3(874.0369f, -135.9791f, -848.3512f), MinimumAngle = -80, MaximumAngle = 60 }; - span40[1] = new GatheringLocation + num3++; + span94[num3] = new GatheringLocation { Position = new Vector3(895.865f, -144.0468f, -890.5269f), MinimumAngle = 195, @@ -13029,13 +15279,15 @@ public static class AssemblyGatheringLocationLoader reference70 = obj47; gatheringNodeGroup23.Nodes = list92; reference68 = gatheringNodeGroup23; - ref GatheringNodeGroup reference71 = ref span36[2]; + num++; + ref GatheringNodeGroup reference71 = ref span88[num]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); num2 = 2; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span41 = CollectionsMarshal.AsSpan(list95); - ref GatheringNode reference72 = ref span41[0]; + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + ref GatheringNode reference72 = ref span95[index2]; GatheringNode obj48 = new GatheringNode { DataId = 33329u @@ -13043,7 +15295,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list96 = new List(num3); CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = new GatheringLocation + Span span96 = CollectionsMarshal.AsSpan(list96); + index3 = 0; + span96[index3] = new GatheringLocation { Position = new Vector3(836.5433f, -140.1729f, -948.7974f), MinimumAngle = 130, @@ -13051,16 +15305,18 @@ public static class AssemblyGatheringLocationLoader }; obj48.Locations = list96; reference72 = obj48; - ref GatheringNode reference73 = ref span41[1]; + index2++; + ref GatheringNode reference73 = ref span95[index2]; GatheringNode obj49 = new GatheringNode { DataId = 33330u }; - num3 = 2; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - Span span42 = CollectionsMarshal.AsSpan(list97); - span42[0] = new GatheringLocation + index3 = 2; + List list97 = new List(index3); + CollectionsMarshal.SetCount(list97, index3); + Span span97 = CollectionsMarshal.AsSpan(list97); + num3 = 0; + span97[num3] = new GatheringLocation { Position = new Vector3(843.2012f, -139.2853f, -961.9124f), MinimumAngle = -95, @@ -13068,7 +15324,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.3f, MaximumDistance = 3f }; - span42[1] = new GatheringLocation + num3++; + span97[num3] = new GatheringLocation { Position = new Vector3(856.3994f, -142.4276f, -941.0324f), MinimumAngle = 115, @@ -13084,12 +15341,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "liza"; + Span span98 = CollectionsMarshal.AsSpan(list98); + index = 0; + span98[index] = "liza"; gatheringRoot9.Author = list98; - num = 1; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.None, null, null, 614) + index = 1; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + Span span99 = CollectionsMarshal.AsSpan(list99); + num = 0; + span99[num] = new QuestStep(EInteractionType.None, null, null, 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; @@ -13097,14 +15358,16 @@ public static class AssemblyGatheringLocationLoader num = 3; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - Span span43 = CollectionsMarshal.AsSpan(list100); - ref GatheringNodeGroup reference74 = ref span43[0]; + Span span100 = CollectionsMarshal.AsSpan(list100); + index = 0; + ref GatheringNodeGroup reference74 = ref span100[index]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); - num2 = 2; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - Span span44 = CollectionsMarshal.AsSpan(list101); - ref GatheringNode reference75 = ref span44[0]; + index2 = 2; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + ref GatheringNode reference75 = ref span101[num2]; GatheringNode obj50 = new GatheringNode { DataId = 33334u @@ -13112,26 +15375,31 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span45 = CollectionsMarshal.AsSpan(list102); - span45[0] = new GatheringLocation + Span span102 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + span102[index3] = new GatheringLocation { Position = new Vector3(-222.386f, 23.28162f, 425.76f) }; - span45[1] = new GatheringLocation + index3++; + span102[index3] = new GatheringLocation { Position = new Vector3(-209.1725f, 22.35068f, 425.5524f) }; obj50.Locations = list102; reference75 = obj50; - ref GatheringNode reference76 = ref span44[1]; + num2++; + ref GatheringNode reference76 = ref span101[num2]; GatheringNode obj51 = new GatheringNode { DataId = 33333u }; - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = new GatheringLocation + index3 = 1; + List list103 = new List(index3); + CollectionsMarshal.SetCount(list103, index3); + Span span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span103[num3] = new GatheringLocation { Position = new Vector3(-219.9592f, 22.78741f, 431.5036f) }; @@ -13139,13 +15407,15 @@ public static class AssemblyGatheringLocationLoader reference76 = obj51; gatheringNodeGroup25.Nodes = list101; reference74 = gatheringNodeGroup25; - ref GatheringNodeGroup reference77 = ref span43[1]; + index++; + ref GatheringNodeGroup reference77 = ref span100[index]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); num2 = 2; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span46 = CollectionsMarshal.AsSpan(list104); - ref GatheringNode reference78 = ref span46[0]; + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + ref GatheringNode reference78 = ref span104[index2]; GatheringNode obj52 = new GatheringNode { DataId = 33335u @@ -13153,7 +15423,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = new GatheringLocation + Span span105 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span105[index3] = new GatheringLocation { Position = new Vector3(-349.8553f, 33.90925f, 452.5893f), MinimumAngle = -90, @@ -13161,20 +15433,23 @@ public static class AssemblyGatheringLocationLoader }; obj52.Locations = list105; reference78 = obj52; - ref GatheringNode reference79 = ref span46[1]; + index2++; + ref GatheringNode reference79 = ref span104[index2]; GatheringNode obj53 = new GatheringNode { DataId = 33336u }; - num3 = 2; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span47 = CollectionsMarshal.AsSpan(list106); - span47[0] = new GatheringLocation + index3 = 2; + List list106 = new List(index3); + CollectionsMarshal.SetCount(list106, index3); + Span span106 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span106[num3] = new GatheringLocation { Position = new Vector3(-361.5062f, 33.49068f, 453.4639f) }; - span47[1] = new GatheringLocation + num3++; + span106[num3] = new GatheringLocation { Position = new Vector3(-359.826f, 35.47207f, 442.164f) }; @@ -13182,13 +15457,15 @@ public static class AssemblyGatheringLocationLoader reference79 = obj53; gatheringNodeGroup26.Nodes = list104; reference77 = gatheringNodeGroup26; - ref GatheringNodeGroup reference80 = ref span43[2]; + index++; + ref GatheringNodeGroup reference80 = ref span100[index]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); - num2 = 2; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - Span span48 = CollectionsMarshal.AsSpan(list107); - ref GatheringNode reference81 = ref span48[0]; + index2 = 2; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + ref GatheringNode reference81 = ref span107[num2]; GatheringNode obj54 = new GatheringNode { DataId = 33331u @@ -13196,26 +15473,31 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new GatheringLocation + Span span108 = CollectionsMarshal.AsSpan(list108); + index3 = 0; + span108[index3] = new GatheringLocation { Position = new Vector3(-231.3864f, 17.74118f, 511.0694f) }; obj54.Locations = list108; reference81 = obj54; - ref GatheringNode reference82 = ref span48[1]; + num2++; + ref GatheringNode reference82 = ref span107[num2]; GatheringNode obj55 = new GatheringNode { DataId = 33332u }; - num3 = 2; - List list109 = new List(num3); - CollectionsMarshal.SetCount(list109, num3); - Span span49 = CollectionsMarshal.AsSpan(list109); - span49[0] = new GatheringLocation + index3 = 2; + List list109 = new List(index3); + CollectionsMarshal.SetCount(list109, index3); + Span span109 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + span109[num3] = new GatheringLocation { Position = new Vector3(-219.0789f, 18.05494f, 525.418f) }; - span49[1] = new GatheringLocation + num3++; + span109[num3] = new GatheringLocation { Position = new Vector3(-220.9139f, 17.97838f, 514.0063f) }; @@ -13226,30 +15508,36 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list100; AddLocation(731, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - num = 1; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "liza"; + index = 1; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + Span span110 = CollectionsMarshal.AsSpan(list110); + num = 0; + span110[num] = "liza"; gatheringRoot10.Author = list110; num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.None, null, null, 621) + Span span111 = CollectionsMarshal.AsSpan(list111); + index = 0; + span111[index] = new QuestStep(EInteractionType.None, null, null, 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; gatheringRoot10.Steps = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span50 = CollectionsMarshal.AsSpan(list112); - ref GatheringNodeGroup reference83 = ref span50[0]; + index = 3; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + Span span112 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref GatheringNodeGroup reference83 = ref span112[num]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); num2 = 2; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span51 = CollectionsMarshal.AsSpan(list113); - ref GatheringNode reference84 = ref span51[0]; + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + ref GatheringNode reference84 = ref span113[index2]; GatheringNode obj56 = new GatheringNode { DataId = 33339u @@ -13257,7 +15545,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = new GatheringLocation + Span span114 = CollectionsMarshal.AsSpan(list114); + index3 = 0; + span114[index3] = new GatheringLocation { Position = new Vector3(440.6299f, 74.86803f, -205.3779f), MinimumAngle = 85, @@ -13265,16 +15555,18 @@ public static class AssemblyGatheringLocationLoader }; obj56.Locations = list114; reference84 = obj56; - ref GatheringNode reference85 = ref span51[1]; + index2++; + ref GatheringNode reference85 = ref span113[index2]; GatheringNode obj57 = new GatheringNode { DataId = 33340u }; - num3 = 2; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - Span span52 = CollectionsMarshal.AsSpan(list115); - span52[0] = new GatheringLocation + index3 = 2; + List list115 = new List(index3); + CollectionsMarshal.SetCount(list115, index3); + Span span115 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span115[num3] = new GatheringLocation { Position = new Vector3(426.4497f, 70.57706f, -198.046f), MinimumAngle = 95, @@ -13282,7 +15574,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.3f, MaximumDistance = 3f }; - span52[1] = new GatheringLocation + num3++; + span115[num3] = new GatheringLocation { Position = new Vector3(453.1248f, 77.29013f, -211.6347f), MinimumAngle = 85, @@ -13292,13 +15585,15 @@ public static class AssemblyGatheringLocationLoader reference85 = obj57; gatheringNodeGroup28.Nodes = list113; reference83 = gatheringNodeGroup28; - ref GatheringNodeGroup reference86 = ref span50[1]; + num++; + ref GatheringNodeGroup reference86 = ref span112[num]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); - num2 = 2; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - Span span53 = CollectionsMarshal.AsSpan(list116); - ref GatheringNode reference87 = ref span53[0]; + index2 = 2; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + ref GatheringNode reference87 = ref span116[num2]; GatheringNode obj58 = new GatheringNode { DataId = 33337u @@ -13306,7 +15601,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = new GatheringLocation + Span span117 = CollectionsMarshal.AsSpan(list117); + index3 = 0; + span117[index3] = new GatheringLocation { Position = new Vector3(561.2196f, 94.65154f, -315.6258f), MinimumAngle = 50, @@ -13314,15 +15611,18 @@ public static class AssemblyGatheringLocationLoader }; obj58.Locations = list117; reference87 = obj58; - ref GatheringNode reference88 = ref span53[1]; + num2++; + ref GatheringNode reference88 = ref span116[num2]; GatheringNode obj59 = new GatheringNode { DataId = 33338u }; - num3 = 1; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = new GatheringLocation + index3 = 1; + List list118 = new List(index3); + CollectionsMarshal.SetCount(list118, index3); + Span span118 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span118[num3] = new GatheringLocation { Position = new Vector3(563.1749f, 93.41929f, -335.4834f), MinimumAngle = -25, @@ -13332,13 +15632,15 @@ public static class AssemblyGatheringLocationLoader reference88 = obj59; gatheringNodeGroup29.Nodes = list116; reference86 = gatheringNodeGroup29; - ref GatheringNodeGroup reference89 = ref span50[2]; + num++; + ref GatheringNodeGroup reference89 = ref span112[num]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span54 = CollectionsMarshal.AsSpan(list119); - ref GatheringNode reference90 = ref span54[0]; + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + ref GatheringNode reference90 = ref span119[index2]; GatheringNode obj60 = new GatheringNode { DataId = 33341u @@ -13346,7 +15648,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - CollectionsMarshal.AsSpan(list120)[0] = new GatheringLocation + Span span120 = CollectionsMarshal.AsSpan(list120); + index3 = 0; + span120[index3] = new GatheringLocation { Position = new Vector3(388.9345f, 54.85489f, -350.8919f), MinimumAngle = 55, @@ -13354,15 +15658,18 @@ public static class AssemblyGatheringLocationLoader }; obj60.Locations = list120; reference90 = obj60; - ref GatheringNode reference91 = ref span54[1]; + index2++; + ref GatheringNode reference91 = ref span119[index2]; GatheringNode obj61 = new GatheringNode { DataId = 33342u }; - num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = new GatheringLocation + index3 = 1; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + Span span121 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span121[num3] = new GatheringLocation { Position = new Vector3(394.7824f, 51.66671f, -369.6645f), MinimumAngle = 70, @@ -13378,12 +15685,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list122 = new List(num); CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = "liza"; + Span span122 = CollectionsMarshal.AsSpan(list122); + index = 0; + span122[index] = "liza"; gatheringRoot11.Author = list122; - num = 1; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.None, null, null, 620) + index = 1; + List list123 = new List(index); + CollectionsMarshal.SetCount(list123, index); + Span span123 = CollectionsMarshal.AsSpan(list123); + num = 0; + span123[num] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -13391,12 +15702,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - ref GatheringNodeGroup reference92 = ref CollectionsMarshal.AsSpan(list124)[0]; + Span span124 = CollectionsMarshal.AsSpan(list124); + index = 0; + ref GatheringNodeGroup reference92 = ref span124[index]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - ref GatheringNode reference93 = ref CollectionsMarshal.AsSpan(list125)[0]; + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + ref GatheringNode reference93 = ref span125[num2]; GatheringNode obj62 = new GatheringNode { DataId = 33028u @@ -13404,7 +15719,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = new GatheringLocation + Span span126 = CollectionsMarshal.AsSpan(list126); + index3 = 0; + span126[index3] = new GatheringLocation { Position = new Vector3(454.6367f, 227.1414f, -731.7471f), MinimumAngle = -120, @@ -13424,12 +15741,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 399) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -13442,22 +15763,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref GatheringNode reference2 = ref span2[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int num3 = 0; + ref GatheringNode reference2 = ref span4[num3]; GatheringNode obj = new GatheringNode { DataId = 33856u }; - int num3 = 1; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation + int num4 = 1; + List list5 = new List(num4); + CollectionsMarshal.SetCount(list5, num4); + Span span5 = CollectionsMarshal.AsSpan(list5); + int index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(-395.4635f, 144.1793f, -249.5864f), MinimumAngle = -190, @@ -13465,15 +15790,18 @@ public static class AssemblyGatheringLocationLoader }; obj.Locations = list5; reference2 = obj; - ref GatheringNode reference3 = ref span2[1]; + num3++; + ref GatheringNode reference3 = ref span4[num3]; GatheringNode obj2 = new GatheringNode { DataId = 33855u }; - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num4 = 0; + span6[num4] = new GatheringLocation { Position = new Vector3(-398.5591f, 144.6183f, -241.8769f), MinimumAngle = -140, @@ -13483,21 +15811,25 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference4 = ref span[1]; + index++; + ref GatheringNodeGroup reference4 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span3 = CollectionsMarshal.AsSpan(list7); - ref GatheringNode reference5 = ref span3[0]; + num3 = 2; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref GatheringNode reference5 = ref span7[num2]; GatheringNode obj3 = new GatheringNode { DataId = 33857u }; - num3 = 1; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = new GatheringLocation + num4 = 1; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new GatheringLocation { Position = new Vector3(-407.5786f, 149.6453f, -93.85593f), MinimumAngle = 185, @@ -13507,15 +15839,18 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - ref GatheringNode reference6 = ref span3[1]; + num2++; + ref GatheringNode reference6 = ref span7[num2]; GatheringNode obj4 = new GatheringNode { DataId = 33858u }; - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span9[num4] = new GatheringLocation { Position = new Vector3(-413.9488f, 148.9834f, -71.42188f), MinimumAngle = 165, @@ -13525,21 +15860,25 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - ref GatheringNodeGroup reference7 = ref span[2]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span4 = CollectionsMarshal.AsSpan(list10); - ref GatheringNode reference8 = ref span4[0]; + Span span10 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + ref GatheringNode reference8 = ref span10[num3]; GatheringNode obj5 = new GatheringNode { DataId = 33860u }; - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = new GatheringLocation + num4 = 1; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new GatheringLocation { Position = new Vector3(-254.579f, 147.4603f, -91.96173f), MinimumAngle = 30, @@ -13547,15 +15886,18 @@ public static class AssemblyGatheringLocationLoader }; obj5.Locations = list11; reference8 = obj5; - ref GatheringNode reference9 = ref span4[1]; + num3++; + ref GatheringNode reference9 = ref span10[num3]; GatheringNode obj6 = new GatheringNode { DataId = 33859u }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span12[num4] = new GatheringLocation { Position = new Vector3(-254.9425f, 146.4598f, -105.2472f), MinimumAngle = 35, @@ -13568,15 +15910,19 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(808, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + span13[num] = "liza"; gatheringRoot2.Author = list13; num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 399) + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = new QuestStep(EInteractionType.None, null, null, 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -13586,25 +15932,29 @@ public static class AssemblyGatheringLocationLoader } }; gatheringRoot2.Steps = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref GatheringNodeGroup reference10 = ref span5[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref GatheringNodeGroup reference10 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 2; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span6 = CollectionsMarshal.AsSpan(list16); - ref GatheringNode reference11 = ref span6[0]; + num3 = 2; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + ref GatheringNode reference11 = ref span16[num2]; GatheringNode obj7 = new GatheringNode { DataId = 33866u }; - num3 = 1; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = new GatheringLocation + num4 = 1; + List list17 = new List(num4); + CollectionsMarshal.SetCount(list17, num4); + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new GatheringLocation { Position = new Vector3(679.6339f, 116.0614f, 134.6795f), MinimumAngle = 200, @@ -13612,15 +15962,18 @@ public static class AssemblyGatheringLocationLoader }; obj7.Locations = list17; reference11 = obj7; - ref GatheringNode reference12 = ref span6[1]; + num2++; + ref GatheringNode reference12 = ref span16[num2]; GatheringNode obj8 = new GatheringNode { DataId = 33865u }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span18[num4] = new GatheringLocation { Position = new Vector3(697.5129f, 122.1484f, 146.8725f), MinimumAngle = -205, @@ -13630,21 +15983,25 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - ref GatheringNodeGroup reference13 = ref span5[1]; + num++; + ref GatheringNodeGroup reference13 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span7 = CollectionsMarshal.AsSpan(list19); - ref GatheringNode reference14 = ref span7[0]; + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + ref GatheringNode reference14 = ref span19[num3]; GatheringNode obj9 = new GatheringNode { DataId = 33862u }; - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = new GatheringLocation + num4 = 1; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new GatheringLocation { Position = new Vector3(809.8756f, 152.7643f, 205.2242f), MinimumAngle = -95, @@ -13652,15 +16009,18 @@ public static class AssemblyGatheringLocationLoader }; obj9.Locations = list20; reference14 = obj9; - ref GatheringNode reference15 = ref span7[1]; + num3++; + ref GatheringNode reference15 = ref span19[num3]; GatheringNode obj10 = new GatheringNode { DataId = 33861u }; - num3 = 1; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new GatheringLocation + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span21[num4] = new GatheringLocation { Position = new Vector3(834.4771f, 154.8756f, 206.0541f), MinimumAngle = 35, @@ -13670,21 +16030,25 @@ public static class AssemblyGatheringLocationLoader reference15 = obj10; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - ref GatheringNodeGroup reference16 = ref span5[2]; + num++; + ref GatheringNodeGroup reference16 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 2; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span8 = CollectionsMarshal.AsSpan(list22); - ref GatheringNode reference17 = ref span8[0]; + num3 = 2; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref GatheringNode reference17 = ref span22[num2]; GatheringNode obj11 = new GatheringNode { DataId = 33863u }; - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation + num4 = 1; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new GatheringLocation { Position = new Vector3(781.7728f, 134.6856f, -22.00103f), MinimumAngle = 0, @@ -13692,15 +16056,18 @@ public static class AssemblyGatheringLocationLoader }; obj11.Locations = list23; reference17 = obj11; - ref GatheringNode reference18 = ref span8[1]; + num2++; + ref GatheringNode reference18 = ref span22[num2]; GatheringNode obj12 = new GatheringNode { DataId = 33864u }; - num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = new GatheringLocation + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span24[num4] = new GatheringLocation { Position = new Vector3(774.9854f, 134.3857f, -27.45042f), MinimumAngle = -25, @@ -13716,12 +16083,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "liza"; gatheringRoot3.Author = list25; - num = 1; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 612) + index = 1; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + span26[num] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; @@ -13729,22 +16100,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span9 = CollectionsMarshal.AsSpan(list27); - ref GatheringNodeGroup reference19 = ref span9[0]; + Span span27 = CollectionsMarshal.AsSpan(list27); + index = 0; + ref GatheringNodeGroup reference19 = ref span27[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span10 = CollectionsMarshal.AsSpan(list28); - ref GatheringNode reference20 = ref span10[0]; + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + ref GatheringNode reference20 = ref span28[num3]; GatheringNode obj13 = new GatheringNode { DataId = 33871u }; - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = new GatheringLocation + num4 = 1; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new GatheringLocation { Position = new Vector3(556.8531f, 73.44064f, 99.57761f), MinimumAngle = 35, @@ -13752,15 +16127,18 @@ public static class AssemblyGatheringLocationLoader }; obj13.Locations = list29; reference20 = obj13; - ref GatheringNode reference21 = ref span10[1]; + num3++; + ref GatheringNode reference21 = ref span28[num3]; GatheringNode obj14 = new GatheringNode { DataId = 33872u }; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span30[num4] = new GatheringLocation { Position = new Vector3(561.7782f, 73.45153f, 72.6368f), MinimumAngle = 15, @@ -13772,21 +16150,25 @@ public static class AssemblyGatheringLocationLoader reference21 = obj14; gatheringNodeGroup7.Nodes = list28; reference19 = gatheringNodeGroup7; - ref GatheringNodeGroup reference22 = ref span9[1]; + index++; + ref GatheringNodeGroup reference22 = ref span27[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span11 = CollectionsMarshal.AsSpan(list31); - ref GatheringNode reference23 = ref span11[0]; + num3 = 2; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref GatheringNode reference23 = ref span31[num2]; GatheringNode obj15 = new GatheringNode { DataId = 33867u }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation + num4 = 1; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new GatheringLocation { Position = new Vector3(498.26f, 76.74628f, -46.34168f), MinimumAngle = -65, @@ -13794,15 +16176,18 @@ public static class AssemblyGatheringLocationLoader }; obj15.Locations = list32; reference23 = obj15; - ref GatheringNode reference24 = ref span11[1]; + num2++; + ref GatheringNode reference24 = ref span31[num2]; GatheringNode obj16 = new GatheringNode { DataId = 33868u }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new GatheringLocation + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span33[num4] = new GatheringLocation { Position = new Vector3(473.011f, 76.55681f, -47.70556f), MinimumAngle = -45, @@ -13814,21 +16199,25 @@ public static class AssemblyGatheringLocationLoader reference24 = obj16; gatheringNodeGroup8.Nodes = list31; reference22 = gatheringNodeGroup8; - ref GatheringNodeGroup reference25 = ref span9[2]; + index++; + ref GatheringNodeGroup reference25 = ref span27[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span12 = CollectionsMarshal.AsSpan(list34); - ref GatheringNode reference26 = ref span12[0]; + Span span34 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + ref GatheringNode reference26 = ref span34[num3]; GatheringNode obj17 = new GatheringNode { DataId = 33870u }; - num3 = 1; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = new GatheringLocation + num4 = 1; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new GatheringLocation { Position = new Vector3(361.4784f, 70.79905f, 146.1887f), MinimumAngle = -55, @@ -13838,15 +16227,18 @@ public static class AssemblyGatheringLocationLoader }; obj17.Locations = list35; reference26 = obj17; - ref GatheringNode reference27 = ref span12[1]; + num3++; + ref GatheringNode reference27 = ref span34[num3]; GatheringNode obj18 = new GatheringNode { DataId = 33869u }; - num3 = 1; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = new GatheringLocation + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span36[num4] = new GatheringLocation { Position = new Vector3(364.7684f, 70.90228f, 167.3831f), MinimumAngle = 105, @@ -13859,38 +16251,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list27; AddLocation(810, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + index = 1; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + span37[num] = "liza"; gatheringRoot4.Author = list37; num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 612) + Span span38 = CollectionsMarshal.AsSpan(list38); + index = 0; + span38[index] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; gatheringRoot4.Steps = list38; - num = 3; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span13 = CollectionsMarshal.AsSpan(list39); - ref GatheringNodeGroup reference28 = ref span13[0]; + index = 3; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + Span span39 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref GatheringNodeGroup reference28 = ref span39[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span14 = CollectionsMarshal.AsSpan(list40); - ref GatheringNode reference29 = ref span14[0]; + num3 = 2; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref GatheringNode reference29 = ref span40[num2]; GatheringNode obj19 = new GatheringNode { DataId = 33875u }; - num3 = 1; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = new GatheringLocation + num4 = 1; + List list41 = new List(num4); + CollectionsMarshal.SetCount(list41, num4); + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new GatheringLocation { Position = new Vector3(567.9412f, 50.43103f, 373.1152f), MinimumAngle = 200, @@ -13898,15 +16298,18 @@ public static class AssemblyGatheringLocationLoader }; obj19.Locations = list41; reference29 = obj19; - ref GatheringNode reference30 = ref span14[1]; + num2++; + ref GatheringNode reference30 = ref span40[num2]; GatheringNode obj20 = new GatheringNode { DataId = 33876u }; - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span42[num4] = new GatheringLocation { Position = new Vector3(578.4171f, 48.36443f, 365.4806f), MinimumAngle = -45, @@ -13916,21 +16319,25 @@ public static class AssemblyGatheringLocationLoader reference30 = obj20; gatheringNodeGroup10.Nodes = list40; reference28 = gatheringNodeGroup10; - ref GatheringNodeGroup reference31 = ref span13[1]; + num++; + ref GatheringNodeGroup reference31 = ref span39[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span15 = CollectionsMarshal.AsSpan(list43); - ref GatheringNode reference32 = ref span15[0]; + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + ref GatheringNode reference32 = ref span43[num3]; GatheringNode obj21 = new GatheringNode { DataId = 33873u }; - num3 = 1; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = new GatheringLocation + num4 = 1; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new GatheringLocation { Position = new Vector3(599.5352f, 75.60928f, 244.3069f), MinimumAngle = -80, @@ -13938,15 +16345,18 @@ public static class AssemblyGatheringLocationLoader }; obj21.Locations = list44; reference32 = obj21; - ref GatheringNode reference33 = ref span15[1]; + num3++; + ref GatheringNode reference33 = ref span43[num3]; GatheringNode obj22 = new GatheringNode { DataId = 33874u }; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num4 = 0; + span45[num4] = new GatheringLocation { Position = new Vector3(592.9609f, 75.62624f, 268.9515f), MinimumAngle = 110, @@ -13956,21 +16366,25 @@ public static class AssemblyGatheringLocationLoader reference33 = obj22; gatheringNodeGroup11.Nodes = list43; reference31 = gatheringNodeGroup11; - ref GatheringNodeGroup reference34 = ref span13[2]; + num++; + ref GatheringNodeGroup reference34 = ref span39[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 2; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - Span span16 = CollectionsMarshal.AsSpan(list46); - ref GatheringNode reference35 = ref span16[0]; + num3 = 2; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + ref GatheringNode reference35 = ref span46[num2]; GatheringNode obj23 = new GatheringNode { DataId = 33878u }; - num3 = 1; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new GatheringLocation + num4 = 1; + List list47 = new List(num4); + CollectionsMarshal.SetCount(list47, num4); + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new GatheringLocation { Position = new Vector3(753.3094f, 72.73058f, 364.073f), MinimumAngle = 95, @@ -13978,15 +16392,18 @@ public static class AssemblyGatheringLocationLoader }; obj23.Locations = list47; reference35 = obj23; - ref GatheringNode reference36 = ref span16[1]; + num2++; + ref GatheringNode reference36 = ref span46[num2]; GatheringNode obj24 = new GatheringNode { DataId = 33877u }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span48[num4] = new GatheringLocation { Position = new Vector3(764.3023f, 74.18732f, 337.2563f), MinimumAngle = -70, @@ -14002,12 +16419,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "liza"; gatheringRoot5.Author = list49; - num = 1; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.None, null, null, 622) + index = 1; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + span50[num] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; @@ -14015,22 +16436,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span17 = CollectionsMarshal.AsSpan(list51); - ref GatheringNodeGroup reference37 = ref span17[0]; + Span span51 = CollectionsMarshal.AsSpan(list51); + index = 0; + ref GatheringNodeGroup reference37 = ref span51[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span18 = CollectionsMarshal.AsSpan(list52); - ref GatheringNode reference38 = ref span18[0]; + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + ref GatheringNode reference38 = ref span52[num3]; GatheringNode obj25 = new GatheringNode { DataId = 33883u }; - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new GatheringLocation + num4 = 1; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new GatheringLocation { Position = new Vector3(128.0255f, -1.00095f, 322.0047f), MinimumAngle = -120, @@ -14038,15 +16463,18 @@ public static class AssemblyGatheringLocationLoader }; obj25.Locations = list53; reference38 = obj25; - ref GatheringNode reference39 = ref span18[1]; + num3++; + ref GatheringNode reference39 = ref span52[num3]; GatheringNode obj26 = new GatheringNode { DataId = 33884u }; - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span54[num4] = new GatheringLocation { Position = new Vector3(116.5815f, -1.584854f, 321.8561f), MinimumAngle = -65, @@ -14056,21 +16484,25 @@ public static class AssemblyGatheringLocationLoader reference39 = obj26; gatheringNodeGroup13.Nodes = list52; reference37 = gatheringNodeGroup13; - ref GatheringNodeGroup reference40 = ref span17[1]; + index++; + ref GatheringNodeGroup reference40 = ref span51[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span19 = CollectionsMarshal.AsSpan(list55); - ref GatheringNode reference41 = ref span19[0]; + num3 = 2; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + ref GatheringNode reference41 = ref span55[num2]; GatheringNode obj27 = new GatheringNode { DataId = 33882u }; - num3 = 1; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = new GatheringLocation + num4 = 1; + List list56 = new List(num4); + CollectionsMarshal.SetCount(list56, num4); + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new GatheringLocation { Position = new Vector3(-31.5303f, -2.218102f, 328.7178f), MinimumAngle = 110, @@ -14078,15 +16510,18 @@ public static class AssemblyGatheringLocationLoader }; obj27.Locations = list56; reference41 = obj27; - ref GatheringNode reference42 = ref span19[1]; + num2++; + ref GatheringNode reference42 = ref span55[num2]; GatheringNode obj28 = new GatheringNode { DataId = 33881u }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = new GatheringLocation + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span57[num4] = new GatheringLocation { Position = new Vector3(-44.53269f, -1.966054f, 332.6949f), MinimumAngle = 120, @@ -14096,21 +16531,25 @@ public static class AssemblyGatheringLocationLoader reference42 = obj28; gatheringNodeGroup14.Nodes = list55; reference40 = gatheringNodeGroup14; - ref GatheringNodeGroup reference43 = ref span17[2]; + index++; + ref GatheringNodeGroup reference43 = ref span51[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 2; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span20 = CollectionsMarshal.AsSpan(list58); - ref GatheringNode reference44 = ref span20[0]; + Span span58 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + ref GatheringNode reference44 = ref span58[num3]; GatheringNode obj29 = new GatheringNode { DataId = 33880u }; - num3 = 1; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = new GatheringLocation + num4 = 1; + List list59 = new List(num4); + CollectionsMarshal.SetCount(list59, num4); + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new GatheringLocation { Position = new Vector3(37.46276f, -4.431953f, 425.0844f), MinimumAngle = 140, @@ -14118,15 +16557,18 @@ public static class AssemblyGatheringLocationLoader }; obj29.Locations = list59; reference44 = obj29; - ref GatheringNode reference45 = ref span20[1]; + num3++; + ref GatheringNode reference45 = ref span58[num3]; GatheringNode obj30 = new GatheringNode { DataId = 33879u }; - num3 = 1; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = new GatheringLocation + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span60[num4] = new GatheringLocation { Position = new Vector3(46.12198f, -5.283945f, 426.5148f), MinimumAngle = 115, @@ -14141,52 +16583,63 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list51; AddLocation(812, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + index = 1; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num = 0; + span61[num] = "liza"; gatheringRoot6.Author = list61; num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.None, null, null, 622) + Span span62 = CollectionsMarshal.AsSpan(list62); + index = 0; + span62[index] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; gatheringRoot6.Steps = list62; - num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span21 = CollectionsMarshal.AsSpan(list63); - ref GatheringNodeGroup reference46 = ref span21[0]; + index = 3; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + Span span63 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref GatheringNodeGroup reference46 = ref span63[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 2; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span22 = CollectionsMarshal.AsSpan(list64); - ref GatheringNode reference47 = ref span22[0]; + num3 = 2; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + ref GatheringNode reference47 = ref span64[num2]; GatheringNode obj31 = new GatheringNode { DataId = 33885u }; - num3 = 1; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = new GatheringLocation + num4 = 1; + List list65 = new List(num4); + CollectionsMarshal.SetCount(list65, num4); + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new GatheringLocation { Position = new Vector3(288.2408f, 23.61323f, -234.9867f) }; obj31.Locations = list65; reference47 = obj31; - ref GatheringNode reference48 = ref span22[1]; + num2++; + ref GatheringNode reference48 = ref span64[num2]; GatheringNode obj32 = new GatheringNode { DataId = 33886u }; - num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = new GatheringLocation + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num4 = 0; + span66[num4] = new GatheringLocation { Position = new Vector3(281.9221f, 23.03055f, -231.9227f) }; @@ -14194,21 +16647,25 @@ public static class AssemblyGatheringLocationLoader reference48 = obj32; gatheringNodeGroup16.Nodes = list64; reference46 = gatheringNodeGroup16; - ref GatheringNodeGroup reference49 = ref span21[1]; + num++; + ref GatheringNodeGroup reference49 = ref span63[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 2; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span23 = CollectionsMarshal.AsSpan(list67); - ref GatheringNode reference50 = ref span23[0]; + Span span67 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + ref GatheringNode reference50 = ref span67[num3]; GatheringNode obj33 = new GatheringNode { DataId = 33887u }; - num3 = 1; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = new GatheringLocation + num4 = 1; + List list68 = new List(num4); + CollectionsMarshal.SetCount(list68, num4); + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new GatheringLocation { Position = new Vector3(407.1815f, 26.86968f, -325.3348f), MinimumAngle = -60, @@ -14216,15 +16673,18 @@ public static class AssemblyGatheringLocationLoader }; obj33.Locations = list68; reference50 = obj33; - ref GatheringNode reference51 = ref span23[1]; + num3++; + ref GatheringNode reference51 = ref span67[num3]; GatheringNode obj34 = new GatheringNode { DataId = 33888u }; - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = new GatheringLocation + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num4 = 0; + span69[num4] = new GatheringLocation { Position = new Vector3(413.6349f, 25.90826f, -320.5389f) }; @@ -14232,35 +16692,42 @@ public static class AssemblyGatheringLocationLoader reference51 = obj34; gatheringNodeGroup17.Nodes = list67; reference49 = gatheringNodeGroup17; - ref GatheringNodeGroup reference52 = ref span21[2]; + num++; + ref GatheringNodeGroup reference52 = ref span63[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num2 = 2; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span24 = CollectionsMarshal.AsSpan(list70); - ref GatheringNode reference53 = ref span24[0]; + num3 = 2; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref GatheringNode reference53 = ref span70[num2]; GatheringNode obj35 = new GatheringNode { DataId = 33889u }; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new GatheringLocation + num4 = 1; + List list71 = new List(num4); + CollectionsMarshal.SetCount(list71, num4); + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new GatheringLocation { Position = new Vector3(451.9882f, 8.707673f, -136.5769f) }; obj35.Locations = list71; reference53 = obj35; - ref GatheringNode reference54 = ref span24[1]; + num2++; + ref GatheringNode reference54 = ref span70[num2]; GatheringNode obj36 = new GatheringNode { DataId = 33890u }; - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = new GatheringLocation + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num4 = 0; + span72[num4] = new GatheringLocation { Position = new Vector3(458.5264f, 8.823095f, -132.5937f) }; @@ -14274,12 +16741,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "liza"; + Span span73 = CollectionsMarshal.AsSpan(list73); + index = 0; + span73[index] = "liza"; gatheringRoot7.Author = list73; - num = 1; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.None, null, null, 956) + index = 1; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + Span span74 = CollectionsMarshal.AsSpan(list74); + num = 0; + span74[num] = new QuestStep(EInteractionType.None, null, null, 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; @@ -14287,22 +16758,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span25 = CollectionsMarshal.AsSpan(list75); - ref GatheringNodeGroup reference55 = ref span25[0]; + Span span75 = CollectionsMarshal.AsSpan(list75); + index = 0; + ref GatheringNodeGroup reference55 = ref span75[index]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span26 = CollectionsMarshal.AsSpan(list76); - ref GatheringNode reference56 = ref span26[0]; + Span span76 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + ref GatheringNode reference56 = ref span76[num3]; GatheringNode obj37 = new GatheringNode { DataId = 33894u }; - num3 = 1; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = new GatheringLocation + num4 = 1; + List list77 = new List(num4); + CollectionsMarshal.SetCount(list77, num4); + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new GatheringLocation { Position = new Vector3(458.9456f, 161.3972f, -602.1197f), MinimumAngle = 140, @@ -14310,28 +16785,32 @@ public static class AssemblyGatheringLocationLoader }; obj37.Locations = list77; reference56 = obj37; - ref GatheringNode reference57 = ref span26[1]; + num3++; + ref GatheringNode reference57 = ref span76[num3]; GatheringNode obj38 = new GatheringNode { DataId = 33895u }; - num3 = 3; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span27 = CollectionsMarshal.AsSpan(list78); - span27[0] = new GatheringLocation + index2 = 3; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span78[num4] = new GatheringLocation { Position = new Vector3(443.0363f, 161.2974f, -616.2661f), MinimumAngle = 205, MaximumAngle = 345 }; - span27[1] = new GatheringLocation + num4++; + span78[num4] = new GatheringLocation { Position = new Vector3(444.8557f, 161.3728f, -600.3932f), MinimumAngle = 145, MaximumAngle = 275 }; - span27[2] = new GatheringLocation + num4++; + span78[num4] = new GatheringLocation { Position = new Vector3(454.163f, 161.1728f, -629.1985f), MinimumAngle = -125, @@ -14341,34 +16820,39 @@ public static class AssemblyGatheringLocationLoader reference57 = obj38; gatheringNodeGroup19.Nodes = list76; reference55 = gatheringNodeGroup19; - ref GatheringNodeGroup reference58 = ref span25[1]; + index++; + ref GatheringNodeGroup reference58 = ref span75[index]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - num2 = 2; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span28 = CollectionsMarshal.AsSpan(list79); - ref GatheringNode reference59 = ref span28[0]; + num3 = 2; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + ref GatheringNode reference59 = ref span79[num2]; GatheringNode obj39 = new GatheringNode { DataId = 33899u }; - num3 = 3; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span29 = CollectionsMarshal.AsSpan(list80); - span29[0] = new GatheringLocation + num4 = 3; + List list80 = new List(num4); + CollectionsMarshal.SetCount(list80, num4); + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new GatheringLocation { Position = new Vector3(570.556f, 161.4453f, -670.7103f), MinimumAngle = -30, MaximumAngle = 95 }; - span29[1] = new GatheringLocation + index2++; + span80[index2] = new GatheringLocation { Position = new Vector3(581.0989f, 161.3507f, -660.939f), MinimumAngle = 0, MaximumAngle = 110 }; - span29[2] = new GatheringLocation + index2++; + span80[index2] = new GatheringLocation { Position = new Vector3(594.2559f, 163.7275f, -639.3449f), MinimumAngle = 0, @@ -14376,15 +16860,18 @@ public static class AssemblyGatheringLocationLoader }; obj39.Locations = list80; reference59 = obj39; - ref GatheringNode reference60 = ref span28[1]; + num2++; + ref GatheringNode reference60 = ref span79[num2]; GatheringNode obj40 = new GatheringNode { DataId = 33898u }; - num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new GatheringLocation + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num4 = 0; + span81[num4] = new GatheringLocation { Position = new Vector3(584.6903f, 161.4933f, -649.8119f), MinimumAngle = 70, @@ -14394,34 +16881,39 @@ public static class AssemblyGatheringLocationLoader reference60 = obj40; gatheringNodeGroup20.Nodes = list79; reference58 = gatheringNodeGroup20; - ref GatheringNodeGroup reference61 = ref span25[2]; + index++; + ref GatheringNodeGroup reference61 = ref span75[index]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span30 = CollectionsMarshal.AsSpan(list82); - ref GatheringNode reference62 = ref span30[0]; + Span span82 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + ref GatheringNode reference62 = ref span82[num3]; GatheringNode obj41 = new GatheringNode { DataId = 33897u }; - num3 = 3; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - Span span31 = CollectionsMarshal.AsSpan(list83); - span31[0] = new GatheringLocation + num4 = 3; + List list83 = new List(num4); + CollectionsMarshal.SetCount(list83, num4); + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new GatheringLocation { Position = new Vector3(607.6349f, 161.3022f, -502.1884f), MinimumAngle = 0, MaximumAngle = 130 }; - span31[1] = new GatheringLocation + index2++; + span83[index2] = new GatheringLocation { Position = new Vector3(604.954f, 161.3468f, -508.9037f), MinimumAngle = 0, MaximumAngle = 125 }; - span31[2] = new GatheringLocation + index2++; + span83[index2] = new GatheringLocation { Position = new Vector3(589.7828f, 161.4424f, -519.1625f), MinimumAngle = 175, @@ -14429,15 +16921,18 @@ public static class AssemblyGatheringLocationLoader }; obj41.Locations = list83; reference62 = obj41; - ref GatheringNode reference63 = ref span30[1]; + num3++; + ref GatheringNode reference63 = ref span82[num3]; GatheringNode obj42 = new GatheringNode { DataId = 33896u }; - num3 = 1; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = new GatheringLocation + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num4 = 0; + span84[num4] = new GatheringLocation { Position = new Vector3(603.6301f, 161.3214f, -520.9421f), MinimumAngle = 20, @@ -14450,38 +16945,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list75; AddLocation(815, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - num = 1; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "liza"; + index = 1; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + span85[num] = "liza"; gatheringRoot8.Author = list85; num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.None, null, null, 956) + Span span86 = CollectionsMarshal.AsSpan(list86); + index = 0; + span86[index] = new QuestStep(EInteractionType.None, null, null, 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; gatheringRoot8.Steps = list86; - num = 3; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span32 = CollectionsMarshal.AsSpan(list87); - ref GatheringNodeGroup reference64 = ref span32[0]; + index = 3; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + Span span87 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref GatheringNodeGroup reference64 = ref span87[num]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); - num2 = 2; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span33 = CollectionsMarshal.AsSpan(list88); - ref GatheringNode reference65 = ref span33[0]; + num3 = 2; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + ref GatheringNode reference65 = ref span88[num2]; GatheringNode obj43 = new GatheringNode { DataId = 33902u }; - num3 = 1; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - CollectionsMarshal.AsSpan(list89)[0] = new GatheringLocation + num4 = 1; + List list89 = new List(num4); + CollectionsMarshal.SetCount(list89, num4); + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new GatheringLocation { Position = new Vector3(88.60914f, 73.62239f, -402.4773f), MinimumAngle = 80, @@ -14489,28 +16992,32 @@ public static class AssemblyGatheringLocationLoader }; obj43.Locations = list89; reference65 = obj43; - ref GatheringNode reference66 = ref span33[1]; + num2++; + ref GatheringNode reference66 = ref span88[num2]; GatheringNode obj44 = new GatheringNode { DataId = 33903u }; - num3 = 3; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - Span span34 = CollectionsMarshal.AsSpan(list90); - span34[0] = new GatheringLocation + index2 = 3; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num4 = 0; + span90[num4] = new GatheringLocation { Position = new Vector3(85.61829f, 73.2991f, -400.5821f), MinimumAngle = 35, MaximumAngle = 225 }; - span34[1] = new GatheringLocation + num4++; + span90[num4] = new GatheringLocation { Position = new Vector3(93.23958f, 73.67628f, -393.219f), MinimumAngle = -80, MaximumAngle = 80 }; - span34[2] = new GatheringLocation + num4++; + span90[num4] = new GatheringLocation { Position = new Vector3(98.62136f, 74.0167f, -394.248f), MinimumAngle = -140, @@ -14520,34 +17027,39 @@ public static class AssemblyGatheringLocationLoader reference66 = obj44; gatheringNodeGroup22.Nodes = list88; reference64 = gatheringNodeGroup22; - ref GatheringNodeGroup reference67 = ref span32[1]; + num++; + ref GatheringNodeGroup reference67 = ref span87[num]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span35 = CollectionsMarshal.AsSpan(list91); - ref GatheringNode reference68 = ref span35[0]; + Span span91 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + ref GatheringNode reference68 = ref span91[num3]; GatheringNode obj45 = new GatheringNode { DataId = 33905u }; - num3 = 3; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span36 = CollectionsMarshal.AsSpan(list92); - span36[0] = new GatheringLocation + num4 = 3; + List list92 = new List(num4); + CollectionsMarshal.SetCount(list92, num4); + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new GatheringLocation { Position = new Vector3(120.6405f, 84.99234f, -556.7947f), MinimumAngle = -10, MaximumAngle = 155 }; - span36[1] = new GatheringLocation + index2++; + span92[index2] = new GatheringLocation { Position = new Vector3(90.8064f, 80.4303f, -549.3706f), MinimumAngle = -45, MaximumAngle = 90 }; - span36[2] = new GatheringLocation + index2++; + span92[index2] = new GatheringLocation { Position = new Vector3(108.5405f, 82.52325f, -552.4589f), MinimumAngle = -115, @@ -14555,15 +17067,18 @@ public static class AssemblyGatheringLocationLoader }; obj45.Locations = list92; reference68 = obj45; - ref GatheringNode reference69 = ref span35[1]; + num3++; + ref GatheringNode reference69 = ref span91[num3]; GatheringNode obj46 = new GatheringNode { DataId = 33904u }; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new GatheringLocation + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num4 = 0; + span93[num4] = new GatheringLocation { Position = new Vector3(102.0981f, 81.4679f, -550.4082f), MinimumAngle = -90, @@ -14573,34 +17088,39 @@ public static class AssemblyGatheringLocationLoader reference69 = obj46; gatheringNodeGroup23.Nodes = list91; reference67 = gatheringNodeGroup23; - ref GatheringNodeGroup reference70 = ref span32[2]; + num++; + ref GatheringNodeGroup reference70 = ref span87[num]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span37 = CollectionsMarshal.AsSpan(list94); - ref GatheringNode reference71 = ref span37[0]; + num3 = 2; + List list94 = new List(num3); + CollectionsMarshal.SetCount(list94, num3); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref GatheringNode reference71 = ref span94[num2]; GatheringNode obj47 = new GatheringNode { DataId = 33901u }; - num3 = 3; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - Span span38 = CollectionsMarshal.AsSpan(list95); - span38[0] = new GatheringLocation + num4 = 3; + List list95 = new List(num4); + CollectionsMarshal.SetCount(list95, num4); + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new GatheringLocation { Position = new Vector3(2.243042f, 70.71661f, -453.1277f), MinimumAngle = 85, MaximumAngle = 215 }; - span38[1] = new GatheringLocation + index2++; + span95[index2] = new GatheringLocation { Position = new Vector3(-18.2041f, 69.83583f, -464.331f), MinimumAngle = -120, MaximumAngle = 50 }; - span38[2] = new GatheringLocation + index2++; + span95[index2] = new GatheringLocation { Position = new Vector3(1.110765f, 71.56169f, -477.9129f), MinimumAngle = -135, @@ -14608,15 +17128,18 @@ public static class AssemblyGatheringLocationLoader }; obj47.Locations = list95; reference71 = obj47; - ref GatheringNode reference72 = ref span37[1]; + num2++; + ref GatheringNode reference72 = ref span94[num2]; GatheringNode obj48 = new GatheringNode { DataId = 33900u }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = new GatheringLocation + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num4 = 0; + span96[num4] = new GatheringLocation { Position = new Vector3(-8.431995f, 70.52238f, -470.8453f), MinimumAngle = -125, @@ -14632,12 +17155,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + Span span97 = CollectionsMarshal.AsSpan(list97); + index = 0; + span97[index] = "liza"; gatheringRoot9.Author = list97; - num = 1; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.None, null, null, 957) + index = 1; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num = 0; + span98[num] = new QuestStep(EInteractionType.None, null, null, 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; @@ -14645,35 +17172,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span39 = CollectionsMarshal.AsSpan(list99); - ref GatheringNodeGroup reference73 = ref span39[0]; + Span span99 = CollectionsMarshal.AsSpan(list99); + index = 0; + ref GatheringNodeGroup reference73 = ref span99[index]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span40 = CollectionsMarshal.AsSpan(list100); - ref GatheringNode reference74 = ref span40[0]; + Span span100 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + ref GatheringNode reference74 = ref span100[num3]; GatheringNode obj49 = new GatheringNode { DataId = 33914u }; - num3 = 3; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span41 = CollectionsMarshal.AsSpan(list101); - span41[0] = new GatheringLocation + num4 = 3; + List list101 = new List(num4); + CollectionsMarshal.SetCount(list101, num4); + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new GatheringLocation { Position = new Vector3(-12.16765f, 20.89473f, 506.2973f), MinimumAngle = -35, MaximumAngle = 60 }; - span41[1] = new GatheringLocation + index2++; + span101[index2] = new GatheringLocation { Position = new Vector3(38.53326f, 21.61461f, 494.6865f), MinimumAngle = -100, MaximumAngle = 35 }; - span41[2] = new GatheringLocation + index2++; + span101[index2] = new GatheringLocation { Position = new Vector3(11.01325f, 20.33474f, 505.0459f), MinimumAngle = -80, @@ -14681,15 +17213,18 @@ public static class AssemblyGatheringLocationLoader }; obj49.Locations = list101; reference74 = obj49; - ref GatheringNode reference75 = ref span40[1]; + num3++; + ref GatheringNode reference75 = ref span100[num3]; GatheringNode obj50 = new GatheringNode { DataId = 33913u }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = new GatheringLocation + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num4 = 0; + span102[num4] = new GatheringLocation { Position = new Vector3(21.21178f, 20.57622f, 500.2734f), MinimumAngle = -75, @@ -14699,21 +17234,25 @@ public static class AssemblyGatheringLocationLoader reference75 = obj50; gatheringNodeGroup25.Nodes = list100; reference73 = gatheringNodeGroup25; - ref GatheringNodeGroup reference76 = ref span39[1]; + index++; + ref GatheringNodeGroup reference76 = ref span99[index]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num2 = 2; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - Span span42 = CollectionsMarshal.AsSpan(list103); - ref GatheringNode reference77 = ref span42[0]; + num3 = 2; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + ref GatheringNode reference77 = ref span103[num2]; GatheringNode obj51 = new GatheringNode { DataId = 33909u }; - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new GatheringLocation + num4 = 1; + List list104 = new List(num4); + CollectionsMarshal.SetCount(list104, num4); + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new GatheringLocation { Position = new Vector3(-138.8536f, 28.9297f, 406.4425f), MinimumAngle = -25, @@ -14721,28 +17260,32 @@ public static class AssemblyGatheringLocationLoader }; obj51.Locations = list104; reference77 = obj51; - ref GatheringNode reference78 = ref span42[1]; + num2++; + ref GatheringNode reference78 = ref span103[num2]; GatheringNode obj52 = new GatheringNode { DataId = 33910u }; - num3 = 3; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span43 = CollectionsMarshal.AsSpan(list105); - span43[0] = new GatheringLocation + index2 = 3; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num4 = 0; + span105[num4] = new GatheringLocation { Position = new Vector3(-151.642f, 28.40338f, 389.8896f), MinimumAngle = 0, MaximumAngle = 120 }; - span43[1] = new GatheringLocation + num4++; + span105[num4] = new GatheringLocation { Position = new Vector3(-153.7647f, 28.03966f, 372.3844f), MinimumAngle = 40, MaximumAngle = 165 }; - span43[2] = new GatheringLocation + num4++; + span105[num4] = new GatheringLocation { Position = new Vector3(-122.402f, 28.91794f, 415.5278f), MinimumAngle = -25, @@ -14752,21 +17295,25 @@ public static class AssemblyGatheringLocationLoader reference78 = obj52; gatheringNodeGroup26.Nodes = list103; reference76 = gatheringNodeGroup26; - ref GatheringNodeGroup reference79 = ref span39[2]; + index++; + ref GatheringNodeGroup reference79 = ref span99[index]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span44 = CollectionsMarshal.AsSpan(list106); - ref GatheringNode reference80 = ref span44[0]; + Span span106 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + ref GatheringNode reference80 = ref span106[num3]; GatheringNode obj53 = new GatheringNode { DataId = 33911u }; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new GatheringLocation + num4 = 1; + List list107 = new List(num4); + CollectionsMarshal.SetCount(list107, num4); + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new GatheringLocation { Position = new Vector3(-178.974f, 22.0284f, 509.5606f), MinimumAngle = -145, @@ -14774,28 +17321,32 @@ public static class AssemblyGatheringLocationLoader }; obj53.Locations = list107; reference80 = obj53; - ref GatheringNode reference81 = ref span44[1]; + num3++; + ref GatheringNode reference81 = ref span106[num3]; GatheringNode obj54 = new GatheringNode { DataId = 33912u }; - num3 = 3; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - Span span45 = CollectionsMarshal.AsSpan(list108); - span45[0] = new GatheringLocation + index2 = 3; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num4 = 0; + span108[num4] = new GatheringLocation { Position = new Vector3(-180.526f, 25.92117f, 532.3414f), MinimumAngle = 175, MaximumAngle = 295 }; - span45[1] = new GatheringLocation + num4++; + span108[num4] = new GatheringLocation { Position = new Vector3(-162.8302f, 16.1582f, 523.17f), MinimumAngle = -115, MaximumAngle = -10 }; - span45[2] = new GatheringLocation + num4++; + span108[num4] = new GatheringLocation { Position = new Vector3(-180.8041f, 27.12615f, 522.0873f), MinimumAngle = -155, @@ -14808,38 +17359,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list99; AddLocation(818, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - num = 1; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + index = 1; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + Span span109 = CollectionsMarshal.AsSpan(list109); + num = 0; + span109[num] = "liza"; gatheringRoot10.Author = list109; num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.None, null, null, 957) + Span span110 = CollectionsMarshal.AsSpan(list110); + index = 0; + span110[index] = new QuestStep(EInteractionType.None, null, null, 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; gatheringRoot10.Steps = list110; - num = 3; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span46 = CollectionsMarshal.AsSpan(list111); - ref GatheringNodeGroup reference82 = ref span46[0]; + index = 3; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + Span span111 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref GatheringNodeGroup reference82 = ref span111[num]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); - num2 = 2; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span47 = CollectionsMarshal.AsSpan(list112); - ref GatheringNode reference83 = ref span47[0]; + num3 = 2; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + ref GatheringNode reference83 = ref span112[num2]; GatheringNode obj55 = new GatheringNode { DataId = 33918u }; - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = new GatheringLocation + num4 = 1; + List list113 = new List(num4); + CollectionsMarshal.SetCount(list113, num4); + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new GatheringLocation { Position = new Vector3(-582.5132f, 40.54578f, -426.0171f), MinimumAngle = -50, @@ -14847,28 +17406,32 @@ public static class AssemblyGatheringLocationLoader }; obj55.Locations = list113; reference83 = obj55; - ref GatheringNode reference84 = ref span47[1]; + num2++; + ref GatheringNode reference84 = ref span112[num2]; GatheringNode obj56 = new GatheringNode { DataId = 33919u }; - num3 = 3; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span48 = CollectionsMarshal.AsSpan(list114); - span48[0] = new GatheringLocation + index2 = 3; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num4 = 0; + span114[num4] = new GatheringLocation { Position = new Vector3(-578.2101f, 41.27147f, -447.6376f), MinimumAngle = 130, MaximumAngle = 220 }; - span48[1] = new GatheringLocation + num4++; + span114[num4] = new GatheringLocation { Position = new Vector3(-546.2882f, 44.52267f, -435.8184f), MinimumAngle = 200, MaximumAngle = 360 }; - span48[2] = new GatheringLocation + num4++; + span114[num4] = new GatheringLocation { Position = new Vector3(-606.7445f, 38.37634f, -425.5284f), MinimumAngle = -80, @@ -14878,21 +17441,25 @@ public static class AssemblyGatheringLocationLoader reference84 = obj56; gatheringNodeGroup28.Nodes = list112; reference82 = gatheringNodeGroup28; - ref GatheringNodeGroup reference85 = ref span46[1]; + num++; + ref GatheringNodeGroup reference85 = ref span111[num]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span49 = CollectionsMarshal.AsSpan(list115); - ref GatheringNode reference86 = ref span49[0]; + Span span115 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + ref GatheringNode reference86 = ref span115[num3]; GatheringNode obj57 = new GatheringNode { DataId = 33920u }; - num3 = 1; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = new GatheringLocation + num4 = 1; + List list116 = new List(num4); + CollectionsMarshal.SetCount(list116, num4); + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new GatheringLocation { Position = new Vector3(-488.2276f, 34.71221f, -359.6945f), MinimumAngle = 20, @@ -14901,28 +17468,32 @@ public static class AssemblyGatheringLocationLoader }; obj57.Locations = list116; reference86 = obj57; - ref GatheringNode reference87 = ref span49[1]; + num3++; + ref GatheringNode reference87 = ref span115[num3]; GatheringNode obj58 = new GatheringNode { DataId = 33921u }; - num3 = 3; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - Span span50 = CollectionsMarshal.AsSpan(list117); - span50[0] = new GatheringLocation + index2 = 3; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num4 = 0; + span117[num4] = new GatheringLocation { Position = new Vector3(-498.8687f, 31.08014f, -351.9397f), MinimumAngle = 40, MaximumAngle = 190 }; - span50[1] = new GatheringLocation + num4++; + span117[num4] = new GatheringLocation { Position = new Vector3(-490.7759f, 28.70215f, -344.4114f), MinimumAngle = -110, MaximumAngle = 60 }; - span50[2] = new GatheringLocation + num4++; + span117[num4] = new GatheringLocation { Position = new Vector3(-494.1286f, 32.89971f, -355.0208f), MinimumAngle = 80, @@ -14932,21 +17503,25 @@ public static class AssemblyGatheringLocationLoader reference87 = obj58; gatheringNodeGroup29.Nodes = list115; reference85 = gatheringNodeGroup29; - ref GatheringNodeGroup reference88 = ref span46[2]; + num++; + ref GatheringNodeGroup reference88 = ref span111[num]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span51 = CollectionsMarshal.AsSpan(list118); - ref GatheringNode reference89 = ref span51[0]; + num3 = 2; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + ref GatheringNode reference89 = ref span118[num2]; GatheringNode obj59 = new GatheringNode { DataId = 33922u }; - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = new GatheringLocation + num4 = 1; + List list119 = new List(num4); + CollectionsMarshal.SetCount(list119, num4); + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new GatheringLocation { Position = new Vector3(-304.0609f, 68.76999f, -479.1875f), MinimumAngle = -110, @@ -14954,28 +17529,32 @@ public static class AssemblyGatheringLocationLoader }; obj59.Locations = list119; reference89 = obj59; - ref GatheringNode reference90 = ref span51[1]; + num2++; + ref GatheringNode reference90 = ref span118[num2]; GatheringNode obj60 = new GatheringNode { DataId = 33923u }; - num3 = 3; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span52 = CollectionsMarshal.AsSpan(list120); - span52[0] = new GatheringLocation + index2 = 3; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num4 = 0; + span120[num4] = new GatheringLocation { Position = new Vector3(-293.6989f, 68.77935f, -484.2256f), MinimumAngle = -30, MaximumAngle = 110 }; - span52[1] = new GatheringLocation + num4++; + span120[num4] = new GatheringLocation { Position = new Vector3(-295.0806f, 69.12621f, -498.1898f), MinimumAngle = 10, MaximumAngle = 200 }; - span52[2] = new GatheringLocation + num4++; + span120[num4] = new GatheringLocation { Position = new Vector3(-281.4858f, 67.64153f, -477.6673f), MinimumAngle = -105, @@ -14991,12 +17570,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "liza"; + Span span121 = CollectionsMarshal.AsSpan(list121); + index = 0; + span121[index] = "liza"; gatheringRoot11.Author = list121; - num = 1; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.None, null, null, 959) + index = 1; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + Span span122 = CollectionsMarshal.AsSpan(list122); + num = 0; + span122[num] = new QuestStep(EInteractionType.None, null, null, 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; @@ -15004,35 +17587,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span53 = CollectionsMarshal.AsSpan(list123); - ref GatheringNodeGroup reference91 = ref span53[0]; + Span span123 = CollectionsMarshal.AsSpan(list123); + index = 0; + ref GatheringNodeGroup reference91 = ref span123[index]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); num2 = 2; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span54 = CollectionsMarshal.AsSpan(list124); - ref GatheringNode reference92 = ref span54[0]; + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + ref GatheringNode reference92 = ref span124[num3]; GatheringNode obj61 = new GatheringNode { DataId = 33929u }; - num3 = 3; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span55 = CollectionsMarshal.AsSpan(list125); - span55[0] = new GatheringLocation + num4 = 3; + List list125 = new List(num4); + CollectionsMarshal.SetCount(list125, num4); + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new GatheringLocation { Position = new Vector3(304.4121f, 118.8077f, 673.4494f), MinimumAngle = 50, MaximumAngle = 230 }; - span55[1] = new GatheringLocation + index2++; + span125[index2] = new GatheringLocation { Position = new Vector3(297.7666f, 119.4976f, 679.5604f), MinimumAngle = 50, MaximumAngle = 220 }; - span55[2] = new GatheringLocation + index2++; + span125[index2] = new GatheringLocation { Position = new Vector3(322.163f, 119.0883f, 657.4384f), MinimumAngle = 55, @@ -15040,15 +17628,18 @@ public static class AssemblyGatheringLocationLoader }; obj61.Locations = list125; reference92 = obj61; - ref GatheringNode reference93 = ref span54[1]; + num3++; + ref GatheringNode reference93 = ref span124[num3]; GatheringNode obj62 = new GatheringNode { DataId = 33928u }; - num3 = 1; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = new GatheringLocation + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num4 = 0; + span126[num4] = new GatheringLocation { Position = new Vector3(313.72f, 118.3442f, 664.8668f), MinimumAngle = 60, @@ -15058,34 +17649,39 @@ public static class AssemblyGatheringLocationLoader reference93 = obj62; gatheringNodeGroup31.Nodes = list124; reference91 = gatheringNodeGroup31; - ref GatheringNodeGroup reference94 = ref span53[1]; + index++; + ref GatheringNodeGroup reference94 = ref span123[index]; GatheringNodeGroup gatheringNodeGroup32 = new GatheringNodeGroup(); - num2 = 2; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - Span span56 = CollectionsMarshal.AsSpan(list127); - ref GatheringNode reference95 = ref span56[0]; + num3 = 2; + List list127 = new List(num3); + CollectionsMarshal.SetCount(list127, num3); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + ref GatheringNode reference95 = ref span127[num2]; GatheringNode obj63 = new GatheringNode { DataId = 33927u }; - num3 = 3; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - Span span57 = CollectionsMarshal.AsSpan(list128); - span57[0] = new GatheringLocation + num4 = 3; + List list128 = new List(num4); + CollectionsMarshal.SetCount(list128, num4); + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span128[index2] = new GatheringLocation { Position = new Vector3(394.3838f, 144.7951f, 820.7851f), MinimumAngle = 75, MaximumAngle = 250 }; - span57[1] = new GatheringLocation + index2++; + span128[index2] = new GatheringLocation { Position = new Vector3(421.0549f, 143.6111f, 805.9457f), MinimumAngle = 60, MaximumAngle = 225 }; - span57[2] = new GatheringLocation + index2++; + span128[index2] = new GatheringLocation { Position = new Vector3(414.2961f, 143.2405f, 811.3884f), MinimumAngle = 65, @@ -15093,15 +17689,18 @@ public static class AssemblyGatheringLocationLoader }; obj63.Locations = list128; reference95 = obj63; - ref GatheringNode reference96 = ref span56[1]; + num2++; + ref GatheringNode reference96 = ref span127[num2]; GatheringNode obj64 = new GatheringNode { DataId = 33926u }; - num3 = 1; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = new GatheringLocation + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + Span span129 = CollectionsMarshal.AsSpan(list129); + num4 = 0; + span129[num4] = new GatheringLocation { Position = new Vector3(405.2481f, 143.6621f, 816.6496f), MinimumAngle = 75, @@ -15111,34 +17710,39 @@ public static class AssemblyGatheringLocationLoader reference96 = obj64; gatheringNodeGroup32.Nodes = list127; reference94 = gatheringNodeGroup32; - ref GatheringNodeGroup reference97 = ref span53[2]; + index++; + ref GatheringNodeGroup reference97 = ref span123[index]; GatheringNodeGroup gatheringNodeGroup33 = new GatheringNodeGroup(); num2 = 2; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span58 = CollectionsMarshal.AsSpan(list130); - ref GatheringNode reference98 = ref span58[0]; + Span span130 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + ref GatheringNode reference98 = ref span130[num3]; GatheringNode obj65 = new GatheringNode { DataId = 33925u }; - num3 = 3; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span59 = CollectionsMarshal.AsSpan(list131); - span59[0] = new GatheringLocation + num4 = 3; + List list131 = new List(num4); + CollectionsMarshal.SetCount(list131, num4); + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new GatheringLocation { Position = new Vector3(474.679f, 143.4776f, 698.5961f), MinimumAngle = 20, MaximumAngle = 170 }; - span59[1] = new GatheringLocation + index2++; + span131[index2] = new GatheringLocation { Position = new Vector3(474.8585f, 144.2588f, 685.7468f), MinimumAngle = 0, MaximumAngle = 155 }; - span59[2] = new GatheringLocation + index2++; + span131[index2] = new GatheringLocation { Position = new Vector3(467.506f, 144.9235f, 654.2f), MinimumAngle = 0, @@ -15146,15 +17750,18 @@ public static class AssemblyGatheringLocationLoader }; obj65.Locations = list131; reference98 = obj65; - ref GatheringNode reference99 = ref span58[1]; + num3++; + ref GatheringNode reference99 = ref span130[num3]; GatheringNode obj66 = new GatheringNode { DataId = 33924u }; - num3 = 1; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = new GatheringLocation + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num4 = 0; + span132[num4] = new GatheringLocation { Position = new Vector3(470.7754f, 144.8793f, 672.114f), MinimumAngle = -5, @@ -15167,38 +17774,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot11.Groups = list123; AddLocation(821, gatheringRoot11); GatheringRoot gatheringRoot12 = new GatheringRoot(); - num = 1; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - CollectionsMarshal.AsSpan(list133)[0] = "liza"; + index = 1; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + Span span133 = CollectionsMarshal.AsSpan(list133); + num = 0; + span133[num] = "liza"; gatheringRoot12.Author = list133; num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.None, null, null, 958) + Span span134 = CollectionsMarshal.AsSpan(list134); + index = 0; + span134[index] = new QuestStep(EInteractionType.None, null, null, 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; gatheringRoot12.Steps = list134; - num = 3; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span60 = CollectionsMarshal.AsSpan(list135); - ref GatheringNodeGroup reference100 = ref span60[0]; + index = 3; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + Span span135 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref GatheringNodeGroup reference100 = ref span135[num]; GatheringNodeGroup gatheringNodeGroup34 = new GatheringNodeGroup(); - num2 = 2; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span61 = CollectionsMarshal.AsSpan(list136); - ref GatheringNode reference101 = ref span61[0]; + num3 = 2; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + ref GatheringNode reference101 = ref span136[num2]; GatheringNode obj67 = new GatheringNode { DataId = 33932u }; - num3 = 1; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - CollectionsMarshal.AsSpan(list137)[0] = new GatheringLocation + num4 = 1; + List list137 = new List(num4); + CollectionsMarshal.SetCount(list137, num4); + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new GatheringLocation { Position = new Vector3(-80.95969f, -9.810837f, 462.2579f), MinimumAngle = 130, @@ -15206,28 +17821,32 @@ public static class AssemblyGatheringLocationLoader }; obj67.Locations = list137; reference101 = obj67; - ref GatheringNode reference102 = ref span61[1]; + num2++; + ref GatheringNode reference102 = ref span136[num2]; GatheringNode obj68 = new GatheringNode { DataId = 33933u }; - num3 = 3; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span62 = CollectionsMarshal.AsSpan(list138); - span62[0] = new GatheringLocation + index2 = 3; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num4 = 0; + span138[num4] = new GatheringLocation { Position = new Vector3(-72.11935f, -10.90324f, 471.2258f), MinimumAngle = 105, MaximumAngle = 250 }; - span62[1] = new GatheringLocation + num4++; + span138[num4] = new GatheringLocation { Position = new Vector3(-98.97565f, -5.664787f, 463.9966f), MinimumAngle = 60, MaximumAngle = 230 }; - span62[2] = new GatheringLocation + num4++; + span138[num4] = new GatheringLocation { Position = new Vector3(-63.49503f, -11.21235f, 469.3839f), MinimumAngle = 80, @@ -15237,34 +17856,39 @@ public static class AssemblyGatheringLocationLoader reference102 = obj68; gatheringNodeGroup34.Nodes = list136; reference100 = gatheringNodeGroup34; - ref GatheringNodeGroup reference103 = ref span60[1]; + num++; + ref GatheringNodeGroup reference103 = ref span135[num]; GatheringNodeGroup gatheringNodeGroup35 = new GatheringNodeGroup(); num2 = 2; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span63 = CollectionsMarshal.AsSpan(list139); - ref GatheringNode reference104 = ref span63[0]; + Span span139 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + ref GatheringNode reference104 = ref span139[num3]; GatheringNode obj69 = new GatheringNode { DataId = 33931u }; - num3 = 3; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - Span span64 = CollectionsMarshal.AsSpan(list140); - span64[0] = new GatheringLocation + num4 = 3; + List list140 = new List(num4); + CollectionsMarshal.SetCount(list140, num4); + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new GatheringLocation { Position = new Vector3(-61.34306f, 6.11244f, 318.3409f), MinimumAngle = -120, MaximumAngle = 70 }; - span64[1] = new GatheringLocation + index2++; + span140[index2] = new GatheringLocation { Position = new Vector3(-61.47854f, 6.076105f, 281.4938f), MinimumAngle = 65, MaximumAngle = 240 }; - span64[2] = new GatheringLocation + index2++; + span140[index2] = new GatheringLocation { Position = new Vector3(-73.25829f, 6.108262f, 302.9926f), MinimumAngle = 50, @@ -15272,15 +17896,18 @@ public static class AssemblyGatheringLocationLoader }; obj69.Locations = list140; reference104 = obj69; - ref GatheringNode reference105 = ref span63[1]; + num3++; + ref GatheringNode reference105 = ref span139[num3]; GatheringNode obj70 = new GatheringNode { DataId = 33930u }; - num3 = 1; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = new GatheringLocation + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num4 = 0; + span141[num4] = new GatheringLocation { Position = new Vector3(-51.28564f, 6.088318f, 318.0529f), MinimumAngle = -65, @@ -15290,34 +17917,39 @@ public static class AssemblyGatheringLocationLoader reference105 = obj70; gatheringNodeGroup35.Nodes = list139; reference103 = gatheringNodeGroup35; - ref GatheringNodeGroup reference106 = ref span60[2]; + num++; + ref GatheringNodeGroup reference106 = ref span135[num]; GatheringNodeGroup gatheringNodeGroup36 = new GatheringNodeGroup(); - num2 = 2; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span65 = CollectionsMarshal.AsSpan(list142); - ref GatheringNode reference107 = ref span65[0]; + num3 = 2; + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + ref GatheringNode reference107 = ref span142[num2]; GatheringNode obj71 = new GatheringNode { DataId = 33935u }; - num3 = 3; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - Span span66 = CollectionsMarshal.AsSpan(list143); - span66[0] = new GatheringLocation + num4 = 3; + List list143 = new List(num4); + CollectionsMarshal.SetCount(list143, num4); + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new GatheringLocation { Position = new Vector3(72.58704f, -11.59895f, 354.757f), MinimumAngle = 75, MaximumAngle = 235 }; - span66[1] = new GatheringLocation + index2++; + span143[index2] = new GatheringLocation { Position = new Vector3(65.33016f, -11.61111f, 358.7321f), MinimumAngle = 65, MaximumAngle = 235 }; - span66[2] = new GatheringLocation + index2++; + span143[index2] = new GatheringLocation { Position = new Vector3(68.21196f, -11.81954f, 366.5172f), MinimumAngle = 5, @@ -15325,15 +17957,18 @@ public static class AssemblyGatheringLocationLoader }; obj71.Locations = list143; reference107 = obj71; - ref GatheringNode reference108 = ref span65[1]; + num2++; + ref GatheringNode reference108 = ref span142[num2]; GatheringNode obj72 = new GatheringNode { DataId = 33934u }; - num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new GatheringLocation + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num4 = 0; + span144[num4] = new GatheringLocation { Position = new Vector3(81.30492f, -11.53227f, 347.9922f), MinimumAngle = 50, @@ -15349,12 +17984,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "liza"; + Span span145 = CollectionsMarshal.AsSpan(list145); + index = 0; + span145[index] = "liza"; gatheringRoot13.Author = list145; - num = 1; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.None, null, null, 961) + index = 1; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + Span span146 = CollectionsMarshal.AsSpan(list146); + num = 0; + span146[num] = new QuestStep(EInteractionType.None, null, null, 961) { AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; @@ -15362,22 +18001,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list147 = new List(num); CollectionsMarshal.SetCount(list147, num); - Span span67 = CollectionsMarshal.AsSpan(list147); - ref GatheringNodeGroup reference109 = ref span67[0]; + Span span147 = CollectionsMarshal.AsSpan(list147); + index = 0; + ref GatheringNodeGroup reference109 = ref span147[index]; GatheringNodeGroup gatheringNodeGroup37 = new GatheringNodeGroup(); num2 = 2; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span68 = CollectionsMarshal.AsSpan(list148); - ref GatheringNode reference110 = ref span68[0]; + Span span148 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + ref GatheringNode reference110 = ref span148[num3]; GatheringNode obj73 = new GatheringNode { DataId = 33938u }; - num3 = 1; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = new GatheringLocation + num4 = 1; + List list149 = new List(num4); + CollectionsMarshal.SetCount(list149, num4); + Span span149 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span149[index2] = new GatheringLocation { Position = new Vector3(44.65063f, 100.2818f, -531.6971f), MinimumAngle = 150, @@ -15385,28 +18028,32 @@ public static class AssemblyGatheringLocationLoader }; obj73.Locations = list149; reference110 = obj73; - ref GatheringNode reference111 = ref span68[1]; + num3++; + ref GatheringNode reference111 = ref span148[num3]; GatheringNode obj74 = new GatheringNode { DataId = 33939u }; - num3 = 3; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - Span span69 = CollectionsMarshal.AsSpan(list150); - span69[0] = new GatheringLocation + index2 = 3; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num4 = 0; + span150[num4] = new GatheringLocation { Position = new Vector3(33.19277f, 104.5029f, -555.932f), MinimumAngle = 190, MaximumAngle = 350 }; - span69[1] = new GatheringLocation + num4++; + span150[num4] = new GatheringLocation { Position = new Vector3(65.9342f, 97.38677f, -524.9155f), MinimumAngle = 125, MaximumAngle = 295 }; - span69[2] = new GatheringLocation + num4++; + span150[num4] = new GatheringLocation { Position = new Vector3(74.52164f, 98.45871f, -489.864f), MinimumAngle = 165, @@ -15416,34 +18063,39 @@ public static class AssemblyGatheringLocationLoader reference111 = obj74; gatheringNodeGroup37.Nodes = list148; reference109 = gatheringNodeGroup37; - ref GatheringNodeGroup reference112 = ref span67[1]; + index++; + ref GatheringNodeGroup reference112 = ref span147[index]; GatheringNodeGroup gatheringNodeGroup38 = new GatheringNodeGroup(); - num2 = 2; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - Span span70 = CollectionsMarshal.AsSpan(list151); - ref GatheringNode reference113 = ref span70[0]; + num3 = 2; + List list151 = new List(num3); + CollectionsMarshal.SetCount(list151, num3); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + ref GatheringNode reference113 = ref span151[num2]; GatheringNode obj75 = new GatheringNode { DataId = 33941u }; - num3 = 3; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - Span span71 = CollectionsMarshal.AsSpan(list152); - span71[0] = new GatheringLocation + num4 = 3; + List list152 = new List(num4); + CollectionsMarshal.SetCount(list152, num4); + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span152[index2] = new GatheringLocation { Position = new Vector3(279.4078f, 101.9103f, -511.9555f), MinimumAngle = 80, MaximumAngle = 215 }; - span71[1] = new GatheringLocation + index2++; + span152[index2] = new GatheringLocation { Position = new Vector3(265.2476f, 100.4918f, -491.8746f), MinimumAngle = 110, MaximumAngle = 180 }; - span71[2] = new GatheringLocation + index2++; + span152[index2] = new GatheringLocation { Position = new Vector3(290.6152f, 102.41f, -549.2336f), MinimumAngle = 40, @@ -15451,15 +18103,18 @@ public static class AssemblyGatheringLocationLoader }; obj75.Locations = list152; reference113 = obj75; - ref GatheringNode reference114 = ref span70[1]; + num2++; + ref GatheringNode reference114 = ref span151[num2]; GatheringNode obj76 = new GatheringNode { DataId = 33940u }; - num3 = 1; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = new GatheringLocation + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span153 = CollectionsMarshal.AsSpan(list153); + num4 = 0; + span153[num4] = new GatheringLocation { Position = new Vector3(288.9601f, 101.2474f, -520.9278f), MinimumAngle = 35, @@ -15469,34 +18124,39 @@ public static class AssemblyGatheringLocationLoader reference114 = obj76; gatheringNodeGroup38.Nodes = list151; reference112 = gatheringNodeGroup38; - ref GatheringNodeGroup reference115 = ref span67[2]; + index++; + ref GatheringNodeGroup reference115 = ref span147[index]; GatheringNodeGroup gatheringNodeGroup39 = new GatheringNodeGroup(); num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span72 = CollectionsMarshal.AsSpan(list154); - ref GatheringNode reference116 = ref span72[0]; + Span span154 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + ref GatheringNode reference116 = ref span154[num3]; GatheringNode obj77 = new GatheringNode { DataId = 33937u }; - num3 = 3; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span73 = CollectionsMarshal.AsSpan(list155); - span73[0] = new GatheringLocation + num4 = 3; + List list155 = new List(num4); + CollectionsMarshal.SetCount(list155, num4); + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new GatheringLocation { Position = new Vector3(124.7882f, 105.6518f, -712.3575f), MinimumAngle = -45, MaximumAngle = 70 }; - span73[1] = new GatheringLocation + index2++; + span155[index2] = new GatheringLocation { Position = new Vector3(94.71277f, 105.52f, -696.7798f), MinimumAngle = -60, MaximumAngle = 80 }; - span73[2] = new GatheringLocation + index2++; + span155[index2] = new GatheringLocation { Position = new Vector3(172.8746f, 102.9022f, -700.0879f), MinimumAngle = -50, @@ -15504,15 +18164,18 @@ public static class AssemblyGatheringLocationLoader }; obj77.Locations = list155; reference116 = obj77; - ref GatheringNode reference117 = ref span72[1]; + num3++; + ref GatheringNode reference117 = ref span154[num3]; GatheringNode obj78 = new GatheringNode { DataId = 33936u }; - num3 = 1; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = new GatheringLocation + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num4 = 0; + span156[num4] = new GatheringLocation { Position = new Vector3(156.3894f, 103.6386f, -707.1092f), MinimumAngle = -85, @@ -15525,45 +18188,53 @@ public static class AssemblyGatheringLocationLoader gatheringRoot13.Groups = list147; AddLocation(823, gatheringRoot13); GatheringRoot gatheringRoot14 = new GatheringRoot(); - num = 1; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "liza"; + index = 1; + List list157 = new List(index); + CollectionsMarshal.SetCount(list157, index); + Span span157 = CollectionsMarshal.AsSpan(list157); + num = 0; + span157[num] = "liza"; gatheringRoot14.Author = list157; num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.None, null, null, 961) + Span span158 = CollectionsMarshal.AsSpan(list158); + index = 0; + span158[index] = new QuestStep(EInteractionType.None, null, null, 961) { AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; gatheringRoot14.Steps = list158; - num = 3; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - Span span74 = CollectionsMarshal.AsSpan(list159); - ref GatheringNodeGroup reference118 = ref span74[0]; + index = 3; + List list159 = new List(index); + CollectionsMarshal.SetCount(list159, index); + Span span159 = CollectionsMarshal.AsSpan(list159); + num = 0; + ref GatheringNodeGroup reference118 = ref span159[num]; GatheringNodeGroup gatheringNodeGroup40 = new GatheringNodeGroup(); - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span75 = CollectionsMarshal.AsSpan(list160); - ref GatheringNode reference119 = ref span75[0]; + num3 = 2; + List list160 = new List(num3); + CollectionsMarshal.SetCount(list160, num3); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + ref GatheringNode reference119 = ref span160[num2]; GatheringNode obj79 = new GatheringNode { DataId = 33945u }; - num3 = 3; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - Span span76 = CollectionsMarshal.AsSpan(list161); - span76[0] = new GatheringLocation + num4 = 3; + List list161 = new List(num4); + CollectionsMarshal.SetCount(list161, num4); + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new GatheringLocation { Position = new Vector3(-478.091f, 136.505f, -144.7721f), MinimumAngle = 185, MaximumAngle = 360 }; - span76[1] = new GatheringLocation + index2++; + span161[index2] = new GatheringLocation { Position = new Vector3(-472.7283f, 136.9691f, -153.0142f), MinimumAngle = -105, @@ -15571,7 +18242,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.6f, MaximumDistance = 3f }; - span76[2] = new GatheringLocation + index2++; + span161[index2] = new GatheringLocation { Position = new Vector3(-457.2324f, 136.2298f, -153.2787f), MinimumAngle = 70, @@ -15579,15 +18251,18 @@ public static class AssemblyGatheringLocationLoader }; obj79.Locations = list161; reference119 = obj79; - ref GatheringNode reference120 = ref span75[1]; + num2++; + ref GatheringNode reference120 = ref span160[num2]; GatheringNode obj80 = new GatheringNode { DataId = 33944u }; - num3 = 1; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - CollectionsMarshal.AsSpan(list162)[0] = new GatheringLocation + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num4 = 0; + span162[num4] = new GatheringLocation { Position = new Vector3(-477.1867f, 137.1741f, -150.0524f), MinimumAngle = -95, @@ -15597,21 +18272,25 @@ public static class AssemblyGatheringLocationLoader reference120 = obj80; gatheringNodeGroup40.Nodes = list160; reference118 = gatheringNodeGroup40; - ref GatheringNodeGroup reference121 = ref span74[1]; + num++; + ref GatheringNodeGroup reference121 = ref span159[num]; GatheringNodeGroup gatheringNodeGroup41 = new GatheringNodeGroup(); num2 = 2; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span77 = CollectionsMarshal.AsSpan(list163); - ref GatheringNode reference122 = ref span77[0]; + Span span163 = CollectionsMarshal.AsSpan(list163); + num3 = 0; + ref GatheringNode reference122 = ref span163[num3]; GatheringNode obj81 = new GatheringNode { DataId = 33946u }; - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new GatheringLocation + num4 = 1; + List list164 = new List(num4); + CollectionsMarshal.SetCount(list164, num4); + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span164[index2] = new GatheringLocation { Position = new Vector3(-335.5337f, 148.5269f, -83.30743f), MinimumAngle = 140, @@ -15619,28 +18298,32 @@ public static class AssemblyGatheringLocationLoader }; obj81.Locations = list164; reference122 = obj81; - ref GatheringNode reference123 = ref span77[1]; + num3++; + ref GatheringNode reference123 = ref span163[num3]; GatheringNode obj82 = new GatheringNode { DataId = 33947u }; - num3 = 3; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - Span span78 = CollectionsMarshal.AsSpan(list165); - span78[0] = new GatheringLocation + index2 = 3; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num4 = 0; + span165[num4] = new GatheringLocation { Position = new Vector3(-333.4615f, 148.59f, -78.42037f), MinimumAngle = -160, MaximumAngle = -15 }; - span78[1] = new GatheringLocation + num4++; + span165[num4] = new GatheringLocation { Position = new Vector3(-342.3078f, 145.4429f, -109.3348f), MinimumAngle = 210, MaximumAngle = 355 }; - span78[2] = new GatheringLocation + num4++; + span165[num4] = new GatheringLocation { Position = new Vector3(-327.4102f, 143.6382f, -118.3601f), MinimumAngle = -30, @@ -15650,21 +18333,25 @@ public static class AssemblyGatheringLocationLoader reference123 = obj82; gatheringNodeGroup41.Nodes = list163; reference121 = gatheringNodeGroup41; - ref GatheringNodeGroup reference124 = ref span74[2]; + num++; + ref GatheringNodeGroup reference124 = ref span159[num]; GatheringNodeGroup gatheringNodeGroup42 = new GatheringNodeGroup(); - num2 = 2; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span79 = CollectionsMarshal.AsSpan(list166); - ref GatheringNode reference125 = ref span79[0]; + num3 = 2; + List list166 = new List(num3); + CollectionsMarshal.SetCount(list166, num3); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + ref GatheringNode reference125 = ref span166[num2]; GatheringNode obj83 = new GatheringNode { DataId = 33942u }; - num3 = 1; - List list167 = new List(num3); - CollectionsMarshal.SetCount(list167, num3); - CollectionsMarshal.AsSpan(list167)[0] = new GatheringLocation + num4 = 1; + List list167 = new List(num4); + CollectionsMarshal.SetCount(list167, num4); + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new GatheringLocation { Position = new Vector3(-291.2093f, 136.4047f, -228.9244f), MinimumAngle = 120, @@ -15672,28 +18359,32 @@ public static class AssemblyGatheringLocationLoader }; obj83.Locations = list167; reference125 = obj83; - ref GatheringNode reference126 = ref span79[1]; + num2++; + ref GatheringNode reference126 = ref span166[num2]; GatheringNode obj84 = new GatheringNode { DataId = 33943u }; - num3 = 3; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - Span span80 = CollectionsMarshal.AsSpan(list168); - span80[0] = new GatheringLocation + index2 = 3; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num4 = 0; + span168[num4] = new GatheringLocation { Position = new Vector3(-343.5337f, 140.0085f, -243.2652f), MinimumAngle = 115, MaximumAngle = 255 }; - span80[1] = new GatheringLocation + num4++; + span168[num4] = new GatheringLocation { Position = new Vector3(-337.3867f, 136.3985f, -237.7285f), MinimumAngle = -130, MaximumAngle = 10 }; - span80[2] = new GatheringLocation + num4++; + span168[num4] = new GatheringLocation { Position = new Vector3(-304.9684f, 136.2381f, -229.2424f), MinimumAngle = 115, @@ -15709,12 +18400,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "liza"; + Span span169 = CollectionsMarshal.AsSpan(list169); + index = 0; + span169[index] = "liza"; gatheringRoot15.Author = list169; - num = 1; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.None, null, null, 956) + index = 1; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + Span span170 = CollectionsMarshal.AsSpan(list170); + num = 0; + span170[num] = new QuestStep(EInteractionType.None, null, null, 956) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -15727,22 +18422,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span81 = CollectionsMarshal.AsSpan(list171); - ref GatheringNodeGroup reference127 = ref span81[0]; + Span span171 = CollectionsMarshal.AsSpan(list171); + index = 0; + ref GatheringNodeGroup reference127 = ref span171[index]; GatheringNodeGroup gatheringNodeGroup43 = new GatheringNodeGroup(); num2 = 2; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span82 = CollectionsMarshal.AsSpan(list172); - ref GatheringNode reference128 = ref span82[0]; + Span span172 = CollectionsMarshal.AsSpan(list172); + num3 = 0; + ref GatheringNode reference128 = ref span172[num3]; GatheringNode obj85 = new GatheringNode { DataId = 33974u }; - num3 = 1; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - CollectionsMarshal.AsSpan(list173)[0] = new GatheringLocation + num4 = 1; + List list173 = new List(num4); + CollectionsMarshal.SetCount(list173, num4); + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new GatheringLocation { Position = new Vector3(-218.7686f, 166.4283f, -723.4156f), MinimumAngle = 85, @@ -15750,28 +18449,32 @@ public static class AssemblyGatheringLocationLoader }; obj85.Locations = list173; reference128 = obj85; - ref GatheringNode reference129 = ref span82[1]; + num3++; + ref GatheringNode reference129 = ref span172[num3]; GatheringNode obj86 = new GatheringNode { DataId = 33975u }; - num3 = 3; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - Span span83 = CollectionsMarshal.AsSpan(list174); - span83[0] = new GatheringLocation + index2 = 3; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num4 = 0; + span174[num4] = new GatheringLocation { Position = new Vector3(-212.9429f, 165.4075f, -702.5071f), MinimumAngle = 80, MaximumAngle = 230 }; - span83[1] = new GatheringLocation + num4++; + span174[num4] = new GatheringLocation { Position = new Vector3(-230.457f, 166.878f, -708.8349f), MinimumAngle = 115, MaximumAngle = 235 }; - span83[2] = new GatheringLocation + num4++; + span174[num4] = new GatheringLocation { Position = new Vector3(-211.0781f, 165.8331f, -732.723f), MinimumAngle = 60, @@ -15781,21 +18484,25 @@ public static class AssemblyGatheringLocationLoader reference129 = obj86; gatheringNodeGroup43.Nodes = list172; reference127 = gatheringNodeGroup43; - ref GatheringNodeGroup reference130 = ref span81[1]; + index++; + ref GatheringNodeGroup reference130 = ref span171[index]; GatheringNodeGroup gatheringNodeGroup44 = new GatheringNodeGroup(); - num2 = 2; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - Span span84 = CollectionsMarshal.AsSpan(list175); - ref GatheringNode reference131 = ref span84[0]; + num3 = 2; + List list175 = new List(num3); + CollectionsMarshal.SetCount(list175, num3); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + ref GatheringNode reference131 = ref span175[num2]; GatheringNode obj87 = new GatheringNode { DataId = 33972u }; - num3 = 1; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = new GatheringLocation + num4 = 1; + List list176 = new List(num4); + CollectionsMarshal.SetCount(list176, num4); + Span span176 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span176[index2] = new GatheringLocation { Position = new Vector3(-281.8436f, 181.3823f, -815.8576f), MinimumAngle = 230, @@ -15803,28 +18510,32 @@ public static class AssemblyGatheringLocationLoader }; obj87.Locations = list176; reference131 = obj87; - ref GatheringNode reference132 = ref span84[1]; + num2++; + ref GatheringNode reference132 = ref span175[num2]; GatheringNode obj88 = new GatheringNode { DataId = 33973u }; - num3 = 3; - List list177 = new List(num3); - CollectionsMarshal.SetCount(list177, num3); - Span span85 = CollectionsMarshal.AsSpan(list177); - span85[0] = new GatheringLocation + index2 = 3; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num4 = 0; + span177[num4] = new GatheringLocation { Position = new Vector3(-268.4985f, 181.0501f, -829.9652f), MinimumAngle = -115, MaximumAngle = 45 }; - span85[1] = new GatheringLocation + num4++; + span177[num4] = new GatheringLocation { Position = new Vector3(-290.0164f, 182.6228f, -817.2674f), MinimumAngle = -145, MaximumAngle = 35 }; - span85[2] = new GatheringLocation + num4++; + span177[num4] = new GatheringLocation { Position = new Vector3(-264.0305f, 180.8218f, -837.3401f), MinimumAngle = -40, @@ -15834,34 +18545,39 @@ public static class AssemblyGatheringLocationLoader reference132 = obj88; gatheringNodeGroup44.Nodes = list175; reference130 = gatheringNodeGroup44; - ref GatheringNodeGroup reference133 = ref span81[2]; + index++; + ref GatheringNodeGroup reference133 = ref span171[index]; GatheringNodeGroup gatheringNodeGroup45 = new GatheringNodeGroup(); num2 = 2; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span86 = CollectionsMarshal.AsSpan(list178); - ref GatheringNode reference134 = ref span86[0]; + Span span178 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + ref GatheringNode reference134 = ref span178[num3]; GatheringNode obj89 = new GatheringNode { DataId = 33971u }; - num3 = 3; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - Span span87 = CollectionsMarshal.AsSpan(list179); - span87[0] = new GatheringLocation + num4 = 3; + List list179 = new List(num4); + CollectionsMarshal.SetCount(list179, num4); + Span span179 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span179[index2] = new GatheringLocation { Position = new Vector3(-385.0122f, 189.0781f, -711.0446f), MinimumAngle = -30, MaximumAngle = 100 }; - span87[1] = new GatheringLocation + index2++; + span179[index2] = new GatheringLocation { Position = new Vector3(-407.4641f, 187.9986f, -684.2576f), MinimumAngle = 180, MaximumAngle = 310 }; - span87[2] = new GatheringLocation + index2++; + span179[index2] = new GatheringLocation { Position = new Vector3(-395.5105f, 187.897f, -687.5342f), MinimumAngle = 0, @@ -15869,15 +18585,18 @@ public static class AssemblyGatheringLocationLoader }; obj89.Locations = list179; reference134 = obj89; - ref GatheringNode reference135 = ref span86[1]; + num3++; + ref GatheringNode reference135 = ref span178[num3]; GatheringNode obj90 = new GatheringNode { DataId = 33970u }; - num3 = 1; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - CollectionsMarshal.AsSpan(list180)[0] = new GatheringLocation + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num4 = 0; + span180[num4] = new GatheringLocation { Position = new Vector3(-400.513f, 188.9934f, -695.2208f), MinimumAngle = 165, @@ -15890,61 +18609,73 @@ public static class AssemblyGatheringLocationLoader gatheringRoot15.Groups = list171; AddLocation(837, gatheringRoot15); GatheringRoot gatheringRoot16 = new GatheringRoot(); - num = 1; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "liza"; + index = 1; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + Span span181 = CollectionsMarshal.AsSpan(list181); + num = 0; + span181[num] = "liza"; gatheringRoot16.Author = list181; num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.None, null, null, 956) + Span span182 = CollectionsMarshal.AsSpan(list182); + index = 0; + span182[index] = new QuestStep(EInteractionType.None, null, null, 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; gatheringRoot16.Steps = list182; - num = 3; - List list183 = new List(num); - CollectionsMarshal.SetCount(list183, num); - Span span88 = CollectionsMarshal.AsSpan(list183); - ref GatheringNodeGroup reference136 = ref span88[0]; + index = 3; + List list183 = new List(index); + CollectionsMarshal.SetCount(list183, index); + Span span183 = CollectionsMarshal.AsSpan(list183); + num = 0; + ref GatheringNodeGroup reference136 = ref span183[num]; GatheringNodeGroup gatheringNodeGroup46 = new GatheringNodeGroup(); - num2 = 2; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - Span span89 = CollectionsMarshal.AsSpan(list184); - ref GatheringNode reference137 = ref span89[0]; + num3 = 2; + List list184 = new List(num3); + CollectionsMarshal.SetCount(list184, num3); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + ref GatheringNode reference137 = ref span184[num2]; GatheringNode obj91 = new GatheringNode { DataId = 33980u }; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new GatheringLocation + num4 = 1; + List list185 = new List(num4); + CollectionsMarshal.SetCount(list185, num4); + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new GatheringLocation { Position = new Vector3(331.2026f, 86.06693f, -318.6516f) }; obj91.Locations = list185; reference137 = obj91; - ref GatheringNode reference138 = ref span89[1]; + num2++; + ref GatheringNode reference138 = ref span184[num2]; GatheringNode obj92 = new GatheringNode { DataId = 33981u }; - num3 = 3; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - Span span90 = CollectionsMarshal.AsSpan(list186); - span90[0] = new GatheringLocation + index2 = 3; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num4 = 0; + span186[num4] = new GatheringLocation { Position = new Vector3(334.0037f, 85.40742f, -300.7174f) }; - span90[1] = new GatheringLocation + num4++; + span186[num4] = new GatheringLocation { Position = new Vector3(355.6456f, 86.62501f, -308.6764f) }; - span90[2] = new GatheringLocation + num4++; + span186[num4] = new GatheringLocation { Position = new Vector3(340.9933f, 86.25529f, -324.239f) }; @@ -15952,44 +18683,52 @@ public static class AssemblyGatheringLocationLoader reference138 = obj92; gatheringNodeGroup46.Nodes = list184; reference136 = gatheringNodeGroup46; - ref GatheringNodeGroup reference139 = ref span88[1]; + num++; + ref GatheringNodeGroup reference139 = ref span183[num]; GatheringNodeGroup gatheringNodeGroup47 = new GatheringNodeGroup(); num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span91 = CollectionsMarshal.AsSpan(list187); - ref GatheringNode reference140 = ref span91[0]; + Span span187 = CollectionsMarshal.AsSpan(list187); + num3 = 0; + ref GatheringNode reference140 = ref span187[num3]; GatheringNode obj93 = new GatheringNode { DataId = 33979u }; - num3 = 3; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span92 = CollectionsMarshal.AsSpan(list188); - span92[0] = new GatheringLocation + num4 = 3; + List list188 = new List(num4); + CollectionsMarshal.SetCount(list188, num4); + Span span188 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span188[index2] = new GatheringLocation { Position = new Vector3(255.936f, 70.96983f, -233.1732f) }; - span92[1] = new GatheringLocation + index2++; + span188[index2] = new GatheringLocation { Position = new Vector3(239.4902f, 69.74259f, -224.506f) }; - span92[2] = new GatheringLocation + index2++; + span188[index2] = new GatheringLocation { Position = new Vector3(265.0269f, 70.56706f, -208.2487f) }; obj93.Locations = list188; reference140 = obj93; - ref GatheringNode reference141 = ref span91[1]; + num3++; + ref GatheringNode reference141 = ref span187[num3]; GatheringNode obj94 = new GatheringNode { DataId = 33978u }; - num3 = 1; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = new GatheringLocation + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num4 = 0; + span189[num4] = new GatheringLocation { Position = new Vector3(262.5149f, 69.96209f, -200.2567f), MinimumAngle = 55, @@ -15999,44 +18738,52 @@ public static class AssemblyGatheringLocationLoader reference141 = obj94; gatheringNodeGroup47.Nodes = list187; reference139 = gatheringNodeGroup47; - ref GatheringNodeGroup reference142 = ref span88[2]; + num++; + ref GatheringNodeGroup reference142 = ref span183[num]; GatheringNodeGroup gatheringNodeGroup48 = new GatheringNodeGroup(); - num2 = 2; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - Span span93 = CollectionsMarshal.AsSpan(list190); - ref GatheringNode reference143 = ref span93[0]; + num3 = 2; + List list190 = new List(num3); + CollectionsMarshal.SetCount(list190, num3); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + ref GatheringNode reference143 = ref span190[num2]; GatheringNode obj95 = new GatheringNode { DataId = 33976u }; - num3 = 1; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = new GatheringLocation + num4 = 1; + List list191 = new List(num4); + CollectionsMarshal.SetCount(list191, num4); + Span span191 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span191[index2] = new GatheringLocation { Position = new Vector3(375.1279f, 67.35788f, -150.6431f) }; obj95.Locations = list191; reference143 = obj95; - ref GatheringNode reference144 = ref span93[1]; + num2++; + ref GatheringNode reference144 = ref span190[num2]; GatheringNode obj96 = new GatheringNode { DataId = 33977u }; - num3 = 3; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - Span span94 = CollectionsMarshal.AsSpan(list192); - span94[0] = new GatheringLocation + index2 = 3; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num4 = 0; + span192[num4] = new GatheringLocation { Position = new Vector3(392.5393f, 65.98527f, -141.6628f) }; - span94[1] = new GatheringLocation + num4++; + span192[num4] = new GatheringLocation { Position = new Vector3(368.5759f, 67.33283f, -140.4326f) }; - span94[2] = new GatheringLocation + num4++; + span192[num4] = new GatheringLocation { Position = new Vector3(383.0393f, 67.01035f, -158.8207f) }; @@ -16050,12 +18797,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "liza"; + Span span193 = CollectionsMarshal.AsSpan(list193); + index = 0; + span193[index] = "liza"; gatheringRoot17.Author = list193; - num = 1; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.None, null, null, 957) + index = 1; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + Span span194 = CollectionsMarshal.AsSpan(list194); + num = 0; + span194[num] = new QuestStep(EInteractionType.None, null, null, 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; @@ -16063,22 +18814,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - Span span95 = CollectionsMarshal.AsSpan(list195); - ref GatheringNodeGroup reference145 = ref span95[0]; + Span span195 = CollectionsMarshal.AsSpan(list195); + index = 0; + ref GatheringNodeGroup reference145 = ref span195[index]; GatheringNodeGroup gatheringNodeGroup49 = new GatheringNodeGroup(); num2 = 2; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span96 = CollectionsMarshal.AsSpan(list196); - ref GatheringNode reference146 = ref span96[0]; + Span span196 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + ref GatheringNode reference146 = ref span196[num3]; GatheringNode obj97 = new GatheringNode { DataId = 33982u }; - num3 = 1; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new GatheringLocation + num4 = 1; + List list197 = new List(num4); + CollectionsMarshal.SetCount(list197, num4); + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new GatheringLocation { Position = new Vector3(-274.8412f, 17.35062f, 118.8987f), MinimumAngle = 175, @@ -16086,28 +18841,32 @@ public static class AssemblyGatheringLocationLoader }; obj97.Locations = list197; reference146 = obj97; - ref GatheringNode reference147 = ref span96[1]; + num3++; + ref GatheringNode reference147 = ref span196[num3]; GatheringNode obj98 = new GatheringNode { DataId = 33983u }; - num3 = 3; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - Span span97 = CollectionsMarshal.AsSpan(list198); - span97[0] = new GatheringLocation + index2 = 3; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span198 = CollectionsMarshal.AsSpan(list198); + num4 = 0; + span198[num4] = new GatheringLocation { Position = new Vector3(-267.3967f, 17.7139f, 123.6814f), MinimumAngle = 40, MaximumAngle = 245 }; - span97[1] = new GatheringLocation + num4++; + span198[num4] = new GatheringLocation { Position = new Vector3(-287.5207f, 18.51543f, 101.9367f), MinimumAngle = 155, MaximumAngle = 325 }; - span97[2] = new GatheringLocation + num4++; + span198[num4] = new GatheringLocation { Position = new Vector3(-268.33f, 19.74485f, 102.5864f), MinimumAngle = -150, @@ -16117,21 +18876,25 @@ public static class AssemblyGatheringLocationLoader reference147 = obj98; gatheringNodeGroup49.Nodes = list196; reference145 = gatheringNodeGroup49; - ref GatheringNodeGroup reference148 = ref span95[1]; + index++; + ref GatheringNodeGroup reference148 = ref span195[index]; GatheringNodeGroup gatheringNodeGroup50 = new GatheringNodeGroup(); - num2 = 2; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - Span span98 = CollectionsMarshal.AsSpan(list199); - ref GatheringNode reference149 = ref span98[0]; + num3 = 2; + List list199 = new List(num3); + CollectionsMarshal.SetCount(list199, num3); + Span span199 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + ref GatheringNode reference149 = ref span199[num2]; GatheringNode obj99 = new GatheringNode { DataId = 33984u }; - num3 = 1; - List list200 = new List(num3); - CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = new GatheringLocation + num4 = 1; + List list200 = new List(num4); + CollectionsMarshal.SetCount(list200, num4); + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span200[index2] = new GatheringLocation { Position = new Vector3(-152.7941f, 38.65108f, 20.30975f), MinimumAngle = 0, @@ -16139,28 +18902,32 @@ public static class AssemblyGatheringLocationLoader }; obj99.Locations = list200; reference149 = obj99; - ref GatheringNode reference150 = ref span98[1]; + num2++; + ref GatheringNode reference150 = ref span199[num2]; GatheringNode obj100 = new GatheringNode { DataId = 33985u }; - num3 = 3; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - Span span99 = CollectionsMarshal.AsSpan(list201); - span99[0] = new GatheringLocation + index2 = 3; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num4 = 0; + span201[num4] = new GatheringLocation { Position = new Vector3(-142.8687f, 41.0236f, 21.84206f), MinimumAngle = -65, MaximumAngle = 85 }; - span99[1] = new GatheringLocation + num4++; + span201[num4] = new GatheringLocation { Position = new Vector3(-146.3786f, 40.56817f, 29.28198f), MinimumAngle = -10, MaximumAngle = 140 }; - span99[2] = new GatheringLocation + num4++; + span201[num4] = new GatheringLocation { Position = new Vector3(-147.6553f, 41.60496f, -0.04698198f), MinimumAngle = -130, @@ -16170,28 +18937,32 @@ public static class AssemblyGatheringLocationLoader reference150 = obj100; gatheringNodeGroup50.Nodes = list199; reference148 = gatheringNodeGroup50; - ref GatheringNodeGroup reference151 = ref span95[2]; + index++; + ref GatheringNodeGroup reference151 = ref span195[index]; GatheringNodeGroup gatheringNodeGroup51 = new GatheringNodeGroup(); num2 = 2; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - Span span100 = CollectionsMarshal.AsSpan(list202); - ref GatheringNode reference152 = ref span100[0]; + Span span202 = CollectionsMarshal.AsSpan(list202); + num3 = 0; + ref GatheringNode reference152 = ref span202[num3]; GatheringNode obj101 = new GatheringNode { DataId = 33987u }; - num3 = 2; - List list203 = new List(num3); - CollectionsMarshal.SetCount(list203, num3); - Span span101 = CollectionsMarshal.AsSpan(list203); - span101[0] = new GatheringLocation + num4 = 2; + List list203 = new List(num4); + CollectionsMarshal.SetCount(list203, num4); + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span203[index2] = new GatheringLocation { Position = new Vector3(-270.0331f, 35.83369f, -29.07548f), MinimumAngle = 200, MaximumAngle = 330 }; - span101[1] = new GatheringLocation + index2++; + span203[index2] = new GatheringLocation { Position = new Vector3(-274.9584f, 35.26747f, -31.89327f), MinimumAngle = 90, @@ -16199,15 +18970,18 @@ public static class AssemblyGatheringLocationLoader }; obj101.Locations = list203; reference152 = obj101; - ref GatheringNode reference153 = ref span100[1]; + num3++; + ref GatheringNode reference153 = ref span202[num3]; GatheringNode obj102 = new GatheringNode { DataId = 33986u }; - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = new GatheringLocation + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num4 = 0; + span204[num4] = new GatheringLocation { Position = new Vector3(-267.6438f, 35.07198f, -44.49979f), MinimumAngle = -100, @@ -16220,61 +18994,73 @@ public static class AssemblyGatheringLocationLoader gatheringRoot17.Groups = list195; AddLocation(839, gatheringRoot17); GatheringRoot gatheringRoot18 = new GatheringRoot(); - num = 1; - List list205 = new List(num); - CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "liza"; + index = 1; + List list205 = new List(index); + CollectionsMarshal.SetCount(list205, index); + Span span205 = CollectionsMarshal.AsSpan(list205); + num = 0; + span205[num] = "liza"; gatheringRoot18.Author = list205; num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.None, null, null, 957) + Span span206 = CollectionsMarshal.AsSpan(list206); + index = 0; + span206[index] = new QuestStep(EInteractionType.None, null, null, 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; gatheringRoot18.Steps = list206; - num = 3; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span102 = CollectionsMarshal.AsSpan(list207); - ref GatheringNodeGroup reference154 = ref span102[0]; + index = 3; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + Span span207 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref GatheringNodeGroup reference154 = ref span207[num]; GatheringNodeGroup gatheringNodeGroup52 = new GatheringNodeGroup(); - num2 = 2; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - Span span103 = CollectionsMarshal.AsSpan(list208); - ref GatheringNode reference155 = ref span103[0]; + num3 = 2; + List list208 = new List(num3); + CollectionsMarshal.SetCount(list208, num3); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + ref GatheringNode reference155 = ref span208[num2]; GatheringNode obj103 = new GatheringNode { DataId = 33993u }; - num3 = 1; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = new GatheringLocation + num4 = 1; + List list209 = new List(num4); + CollectionsMarshal.SetCount(list209, num4); + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new GatheringLocation { Position = new Vector3(-97.85602f, 91.39626f, -562.7067f) }; obj103.Locations = list209; reference155 = obj103; - ref GatheringNode reference156 = ref span103[1]; + num2++; + ref GatheringNode reference156 = ref span208[num2]; GatheringNode obj104 = new GatheringNode { DataId = 33992u }; - num3 = 3; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - Span span104 = CollectionsMarshal.AsSpan(list210); - span104[0] = new GatheringLocation + index2 = 3; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num4 = 0; + span210[num4] = new GatheringLocation { Position = new Vector3(-91.53894f, 91.14209f, -520.9888f) }; - span104[1] = new GatheringLocation + num4++; + span210[num4] = new GatheringLocation { Position = new Vector3(-82.73576f, 91.15034f, -532.2811f) }; - span104[2] = new GatheringLocation + num4++; + span210[num4] = new GatheringLocation { Position = new Vector3(-119.5286f, 89.67725f, -601.3649f) }; @@ -16282,44 +19068,52 @@ public static class AssemblyGatheringLocationLoader reference156 = obj104; gatheringNodeGroup52.Nodes = list208; reference154 = gatheringNodeGroup52; - ref GatheringNodeGroup reference157 = ref span102[1]; + num++; + ref GatheringNodeGroup reference157 = ref span207[num]; GatheringNodeGroup gatheringNodeGroup53 = new GatheringNodeGroup(); num2 = 2; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span105 = CollectionsMarshal.AsSpan(list211); - ref GatheringNode reference158 = ref span105[0]; + Span span211 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + ref GatheringNode reference158 = ref span211[num3]; GatheringNode obj105 = new GatheringNode { DataId = 33990u }; - num3 = 1; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = new GatheringLocation + num4 = 1; + List list212 = new List(num4); + CollectionsMarshal.SetCount(list212, num4); + Span span212 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span212[index2] = new GatheringLocation { Position = new Vector3(105.0951f, 75.30056f, -581.8511f) }; obj105.Locations = list212; reference158 = obj105; - ref GatheringNode reference159 = ref span105[1]; + num3++; + ref GatheringNode reference159 = ref span211[num3]; GatheringNode obj106 = new GatheringNode { DataId = 33991u }; - num3 = 3; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - Span span106 = CollectionsMarshal.AsSpan(list213); - span106[0] = new GatheringLocation + index2 = 3; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span213 = CollectionsMarshal.AsSpan(list213); + num4 = 0; + span213[num4] = new GatheringLocation { Position = new Vector3(113.0813f, 72.75166f, -575.8746f) }; - span106[1] = new GatheringLocation + num4++; + span213[num4] = new GatheringLocation { Position = new Vector3(133.7231f, 67.87361f, -567.9795f) }; - span106[2] = new GatheringLocation + num4++; + span213[num4] = new GatheringLocation { Position = new Vector3(109.7108f, 71.64627f, -562.0082f) }; @@ -16327,44 +19121,52 @@ public static class AssemblyGatheringLocationLoader reference159 = obj106; gatheringNodeGroup53.Nodes = list211; reference157 = gatheringNodeGroup53; - ref GatheringNodeGroup reference160 = ref span102[2]; + num++; + ref GatheringNodeGroup reference160 = ref span207[num]; GatheringNodeGroup gatheringNodeGroup54 = new GatheringNodeGroup(); - num2 = 2; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - Span span107 = CollectionsMarshal.AsSpan(list214); - ref GatheringNode reference161 = ref span107[0]; + num3 = 2; + List list214 = new List(num3); + CollectionsMarshal.SetCount(list214, num3); + Span span214 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + ref GatheringNode reference161 = ref span214[num2]; GatheringNode obj107 = new GatheringNode { DataId = 33988u }; - num3 = 1; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = new GatheringLocation + num4 = 1; + List list215 = new List(num4); + CollectionsMarshal.SetCount(list215, num4); + Span span215 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span215[index2] = new GatheringLocation { Position = new Vector3(53.25103f, 92.24804f, -643.022f) }; obj107.Locations = list215; reference161 = obj107; - ref GatheringNode reference162 = ref span107[1]; + num2++; + ref GatheringNode reference162 = ref span214[num2]; GatheringNode obj108 = new GatheringNode { DataId = 33989u }; - num3 = 3; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - Span span108 = CollectionsMarshal.AsSpan(list216); - span108[0] = new GatheringLocation + index2 = 3; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + Span span216 = CollectionsMarshal.AsSpan(list216); + num4 = 0; + span216[num4] = new GatheringLocation { Position = new Vector3(59.02333f, 93.08621f, -646.8438f) }; - span108[1] = new GatheringLocation + num4++; + span216[num4] = new GatheringLocation { Position = new Vector3(8.818645f, 90.40326f, -640.8149f) }; - span108[2] = new GatheringLocation + num4++; + span216[num4] = new GatheringLocation { Position = new Vector3(41.15356f, 96.41193f, -676.5558f), MinimumAngle = -85, @@ -16380,12 +19182,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "liza"; + Span span217 = CollectionsMarshal.AsSpan(list217); + index = 0; + span217[index] = "liza"; gatheringRoot19.Author = list217; - num = 1; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.None, null, null, 958) + index = 1; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + Span span218 = CollectionsMarshal.AsSpan(list218); + num = 0; + span218[num] = new QuestStep(EInteractionType.None, null, null, 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -16393,29 +19199,33 @@ public static class AssemblyGatheringLocationLoader num = 3; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - Span span109 = CollectionsMarshal.AsSpan(list219); - ref GatheringNodeGroup reference163 = ref span109[0]; + Span span219 = CollectionsMarshal.AsSpan(list219); + index = 0; + ref GatheringNodeGroup reference163 = ref span219[index]; GatheringNodeGroup gatheringNodeGroup55 = new GatheringNodeGroup(); num2 = 2; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span110 = CollectionsMarshal.AsSpan(list220); - ref GatheringNode reference164 = ref span110[0]; + Span span220 = CollectionsMarshal.AsSpan(list220); + num3 = 0; + ref GatheringNode reference164 = ref span220[num3]; GatheringNode obj109 = new GatheringNode { DataId = 34002u }; - num3 = 2; - List list221 = new List(num3); - CollectionsMarshal.SetCount(list221, num3); - Span span111 = CollectionsMarshal.AsSpan(list221); - span111[0] = new GatheringLocation + num4 = 2; + List list221 = new List(num4); + CollectionsMarshal.SetCount(list221, num4); + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span221[index2] = new GatheringLocation { Position = new Vector3(-278.0806f, 23.49333f, 457.1718f), MinimumAngle = 155, MaximumAngle = 360 }; - span111[1] = new GatheringLocation + index2++; + span221[index2] = new GatheringLocation { Position = new Vector3(-247.303f, 24.73875f, 431.0542f), MinimumAngle = 55, @@ -16423,15 +19233,18 @@ public static class AssemblyGatheringLocationLoader }; obj109.Locations = list221; reference164 = obj109; - ref GatheringNode reference165 = ref span110[1]; + num3++; + ref GatheringNode reference165 = ref span220[num3]; GatheringNode obj110 = new GatheringNode { DataId = 34001u }; - num3 = 1; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = new GatheringLocation + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + Span span222 = CollectionsMarshal.AsSpan(list222); + num4 = 0; + span222[num4] = new GatheringLocation { Position = new Vector3(-231.6437f, 23.05049f, 438.9474f), MinimumAngle = 135, @@ -16441,21 +19254,25 @@ public static class AssemblyGatheringLocationLoader reference165 = obj110; gatheringNodeGroup55.Nodes = list220; reference163 = gatheringNodeGroup55; - ref GatheringNodeGroup reference166 = ref span109[1]; + index++; + ref GatheringNodeGroup reference166 = ref span219[index]; GatheringNodeGroup gatheringNodeGroup56 = new GatheringNodeGroup(); - num2 = 2; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - Span span112 = CollectionsMarshal.AsSpan(list223); - ref GatheringNode reference167 = ref span112[0]; + num3 = 2; + List list223 = new List(num3); + CollectionsMarshal.SetCount(list223, num3); + Span span223 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + ref GatheringNode reference167 = ref span223[num2]; GatheringNode obj111 = new GatheringNode { DataId = 33999u }; - num3 = 1; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = new GatheringLocation + num4 = 1; + List list224 = new List(num4); + CollectionsMarshal.SetCount(list224, num4); + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new GatheringLocation { Position = new Vector3(-224.5309f, 18.15879f, 302.212f), MinimumAngle = -20, @@ -16463,22 +19280,25 @@ public static class AssemblyGatheringLocationLoader }; obj111.Locations = list224; reference167 = obj111; - ref GatheringNode reference168 = ref span112[1]; + num2++; + ref GatheringNode reference168 = ref span223[num2]; GatheringNode obj112 = new GatheringNode { DataId = 34000u }; - num3 = 2; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - Span span113 = CollectionsMarshal.AsSpan(list225); - span113[0] = new GatheringLocation + index2 = 2; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num4 = 0; + span225[num4] = new GatheringLocation { Position = new Vector3(-201.1902f, 17.46593f, 293.0554f), MinimumAngle = -20, MaximumAngle = 180 }; - span113[1] = new GatheringLocation + num4++; + span225[num4] = new GatheringLocation { Position = new Vector3(-206.8405f, 21.01518f, 327.3298f), MinimumAngle = 0, @@ -16488,28 +19308,32 @@ public static class AssemblyGatheringLocationLoader reference168 = obj112; gatheringNodeGroup56.Nodes = list223; reference166 = gatheringNodeGroup56; - ref GatheringNodeGroup reference169 = ref span109[2]; + index++; + ref GatheringNodeGroup reference169 = ref span219[index]; GatheringNodeGroup gatheringNodeGroup57 = new GatheringNodeGroup(); num2 = 2; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span114 = CollectionsMarshal.AsSpan(list226); - ref GatheringNode reference170 = ref span114[0]; + Span span226 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + ref GatheringNode reference170 = ref span226[num3]; GatheringNode obj113 = new GatheringNode { DataId = 33998u }; - num3 = 2; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - Span span115 = CollectionsMarshal.AsSpan(list227); - span115[0] = new GatheringLocation + num4 = 2; + List list227 = new List(num4); + CollectionsMarshal.SetCount(list227, num4); + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new GatheringLocation { Position = new Vector3(-356.6845f, 25.77399f, 371.3325f), MinimumAngle = -245, MaximumAngle = -55 }; - span115[1] = new GatheringLocation + index2++; + span227[index2] = new GatheringLocation { Position = new Vector3(-378.934f, 21.82056f, 365.7343f), MinimumAngle = -160, @@ -16517,15 +19341,18 @@ public static class AssemblyGatheringLocationLoader }; obj113.Locations = list227; reference170 = obj113; - ref GatheringNode reference171 = ref span114[1]; + num3++; + ref GatheringNode reference171 = ref span226[num3]; GatheringNode obj114 = new GatheringNode { DataId = 33997u }; - num3 = 1; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - CollectionsMarshal.AsSpan(list228)[0] = new GatheringLocation + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num4 = 0; + span228[num4] = new GatheringLocation { Position = new Vector3(-365.8535f, 18.70865f, 339.1927f), MinimumAngle = -180, @@ -16538,61 +19365,73 @@ public static class AssemblyGatheringLocationLoader gatheringRoot19.Groups = list219; AddLocation(842, gatheringRoot19); GatheringRoot gatheringRoot20 = new GatheringRoot(); - num = 1; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "liza"; + index = 1; + List list229 = new List(index); + CollectionsMarshal.SetCount(list229, index); + Span span229 = CollectionsMarshal.AsSpan(list229); + num = 0; + span229[num] = "liza"; gatheringRoot20.Author = list229; num = 1; List list230 = new List(num); CollectionsMarshal.SetCount(list230, num); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.None, null, null, 958) + Span span230 = CollectionsMarshal.AsSpan(list230); + index = 0; + span230[index] = new QuestStep(EInteractionType.None, null, null, 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; gatheringRoot20.Steps = list230; - num = 3; - List list231 = new List(num); - CollectionsMarshal.SetCount(list231, num); - Span span116 = CollectionsMarshal.AsSpan(list231); - ref GatheringNodeGroup reference172 = ref span116[0]; + index = 3; + List list231 = new List(index); + CollectionsMarshal.SetCount(list231, index); + Span span231 = CollectionsMarshal.AsSpan(list231); + num = 0; + ref GatheringNodeGroup reference172 = ref span231[num]; GatheringNodeGroup gatheringNodeGroup58 = new GatheringNodeGroup(); - num2 = 2; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - Span span117 = CollectionsMarshal.AsSpan(list232); - ref GatheringNode reference173 = ref span117[0]; + num3 = 2; + List list232 = new List(num3); + CollectionsMarshal.SetCount(list232, num3); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + ref GatheringNode reference173 = ref span232[num2]; GatheringNode obj115 = new GatheringNode { DataId = 34004u }; - num3 = 3; - List list233 = new List(num3); - CollectionsMarshal.SetCount(list233, num3); - Span span118 = CollectionsMarshal.AsSpan(list233); - span118[0] = new GatheringLocation + num4 = 3; + List list233 = new List(num4); + CollectionsMarshal.SetCount(list233, num4); + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span233[index2] = new GatheringLocation { Position = new Vector3(121.8413f, -6.651628f, 246.5624f) }; - span118[1] = new GatheringLocation + index2++; + span233[index2] = new GatheringLocation { Position = new Vector3(118.1294f, -6.603673f, 242.6448f) }; - span118[2] = new GatheringLocation + index2++; + span233[index2] = new GatheringLocation { Position = new Vector3(104.2039f, -10.52542f, 266.5598f) }; obj115.Locations = list233; reference173 = obj115; - ref GatheringNode reference174 = ref span117[1]; + num2++; + ref GatheringNode reference174 = ref span232[num2]; GatheringNode obj116 = new GatheringNode { DataId = 34003u }; - num3 = 1; - List list234 = new List(num3); - CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = new GatheringLocation + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + Span span234 = CollectionsMarshal.AsSpan(list234); + num4 = 0; + span234[num4] = new GatheringLocation { Position = new Vector3(98.86316f, -9.970013f, 257.6278f) }; @@ -16600,44 +19439,52 @@ public static class AssemblyGatheringLocationLoader reference174 = obj116; gatheringNodeGroup58.Nodes = list232; reference172 = gatheringNodeGroup58; - ref GatheringNodeGroup reference175 = ref span116[1]; + num++; + ref GatheringNodeGroup reference175 = ref span231[num]; GatheringNodeGroup gatheringNodeGroup59 = new GatheringNodeGroup(); num2 = 2; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span119 = CollectionsMarshal.AsSpan(list235); - ref GatheringNode reference176 = ref span119[0]; + Span span235 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + ref GatheringNode reference176 = ref span235[num3]; GatheringNode obj117 = new GatheringNode { DataId = 34005u }; - num3 = 1; - List list236 = new List(num3); - CollectionsMarshal.SetCount(list236, num3); - CollectionsMarshal.AsSpan(list236)[0] = new GatheringLocation + num4 = 1; + List list236 = new List(num4); + CollectionsMarshal.SetCount(list236, num4); + Span span236 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span236[index2] = new GatheringLocation { Position = new Vector3(215.6167f, 1.599456f, 144.3346f) }; obj117.Locations = list236; reference176 = obj117; - ref GatheringNode reference177 = ref span119[1]; + num3++; + ref GatheringNode reference177 = ref span235[num3]; GatheringNode obj118 = new GatheringNode { DataId = 34006u }; - num3 = 3; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - Span span120 = CollectionsMarshal.AsSpan(list237); - span120[0] = new GatheringLocation + index2 = 3; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + Span span237 = CollectionsMarshal.AsSpan(list237); + num4 = 0; + span237[num4] = new GatheringLocation { Position = new Vector3(215.9073f, 1.613284f, 136.584f) }; - span120[1] = new GatheringLocation + num4++; + span237[num4] = new GatheringLocation { Position = new Vector3(191.0582f, 2.43164f, 147.7836f) }; - span120[2] = new GatheringLocation + num4++; + span237[num4] = new GatheringLocation { Position = new Vector3(185.1617f, 2.402756f, 138.276f) }; @@ -16645,44 +19492,52 @@ public static class AssemblyGatheringLocationLoader reference177 = obj118; gatheringNodeGroup59.Nodes = list235; reference175 = gatheringNodeGroup59; - ref GatheringNodeGroup reference178 = ref span116[2]; + num++; + ref GatheringNodeGroup reference178 = ref span231[num]; GatheringNodeGroup gatheringNodeGroup60 = new GatheringNodeGroup(); - num2 = 2; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - Span span121 = CollectionsMarshal.AsSpan(list238); - ref GatheringNode reference179 = ref span121[0]; + num3 = 2; + List list238 = new List(num3); + CollectionsMarshal.SetCount(list238, num3); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + ref GatheringNode reference179 = ref span238[num2]; GatheringNode obj119 = new GatheringNode { DataId = 34007u }; - num3 = 1; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = new GatheringLocation + num4 = 1; + List list239 = new List(num4); + CollectionsMarshal.SetCount(list239, num4); + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new GatheringLocation { Position = new Vector3(264.295f, -11.52659f, 306.4464f) }; obj119.Locations = list239; reference179 = obj119; - ref GatheringNode reference180 = ref span121[1]; + num2++; + ref GatheringNode reference180 = ref span238[num2]; GatheringNode obj120 = new GatheringNode { DataId = 34008u }; - num3 = 3; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - Span span122 = CollectionsMarshal.AsSpan(list240); - span122[0] = new GatheringLocation + index2 = 3; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num4 = 0; + span240[num4] = new GatheringLocation { Position = new Vector3(280.1551f, -11.53278f, 301.5915f) }; - span122[1] = new GatheringLocation + num4++; + span240[num4] = new GatheringLocation { Position = new Vector3(257.884f, -12.02824f, 296.5428f) }; - span122[2] = new GatheringLocation + num4++; + span240[num4] = new GatheringLocation { Position = new Vector3(271.8952f, -12.7945f, 320.4683f) }; @@ -16696,12 +19551,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "liza"; + Span span241 = CollectionsMarshal.AsSpan(list241); + index = 0; + span241[index] = "liza"; gatheringRoot21.Author = list241; - num = 1; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.None, null, null, 961) + index = 1; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + Span span242 = CollectionsMarshal.AsSpan(list242); + num = 0; + span242[num] = new QuestStep(EInteractionType.None, null, null, 961) { AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; @@ -16709,41 +19568,48 @@ public static class AssemblyGatheringLocationLoader num = 3; List list243 = new List(num); CollectionsMarshal.SetCount(list243, num); - Span span123 = CollectionsMarshal.AsSpan(list243); - ref GatheringNodeGroup reference181 = ref span123[0]; + Span span243 = CollectionsMarshal.AsSpan(list243); + index = 0; + ref GatheringNodeGroup reference181 = ref span243[index]; GatheringNodeGroup gatheringNodeGroup61 = new GatheringNodeGroup(); num2 = 2; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span124 = CollectionsMarshal.AsSpan(list244); - ref GatheringNode reference182 = ref span124[0]; + Span span244 = CollectionsMarshal.AsSpan(list244); + num3 = 0; + ref GatheringNode reference182 = ref span244[num3]; GatheringNode obj121 = new GatheringNode { DataId = 34020u }; - num3 = 1; - List list245 = new List(num3); - CollectionsMarshal.SetCount(list245, num3); - CollectionsMarshal.AsSpan(list245)[0] = new GatheringLocation + num4 = 1; + List list245 = new List(num4); + CollectionsMarshal.SetCount(list245, num4); + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new GatheringLocation { Position = new Vector3(44.78436f, 7.229512f, 98.57001f) }; obj121.Locations = list245; reference182 = obj121; - ref GatheringNode reference183 = ref span124[1]; + num3++; + ref GatheringNode reference183 = ref span244[num3]; GatheringNode obj122 = new GatheringNode { DataId = 34021u }; - num3 = 2; - List list246 = new List(num3); - CollectionsMarshal.SetCount(list246, num3); - Span span125 = CollectionsMarshal.AsSpan(list246); - span125[0] = new GatheringLocation + index2 = 2; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num4 = 0; + span246[num4] = new GatheringLocation { Position = new Vector3(46.74728f, 7.877012f, 88.79111f) }; - span125[1] = new GatheringLocation + num4++; + span246[num4] = new GatheringLocation { Position = new Vector3(34.40783f, 3.908499f, 67.13975f) }; @@ -16751,40 +19617,47 @@ public static class AssemblyGatheringLocationLoader reference183 = obj122; gatheringNodeGroup61.Nodes = list244; reference181 = gatheringNodeGroup61; - ref GatheringNodeGroup reference184 = ref span123[1]; + index++; + ref GatheringNodeGroup reference184 = ref span243[index]; GatheringNodeGroup gatheringNodeGroup62 = new GatheringNodeGroup(); - num2 = 2; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - Span span126 = CollectionsMarshal.AsSpan(list247); - ref GatheringNode reference185 = ref span126[0]; + num3 = 2; + List list247 = new List(num3); + CollectionsMarshal.SetCount(list247, num3); + Span span247 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + ref GatheringNode reference185 = ref span247[num2]; GatheringNode obj123 = new GatheringNode { DataId = 34023u }; - num3 = 2; - List list248 = new List(num3); - CollectionsMarshal.SetCount(list248, num3); - Span span127 = CollectionsMarshal.AsSpan(list248); - span127[0] = new GatheringLocation + num4 = 2; + List list248 = new List(num4); + CollectionsMarshal.SetCount(list248, num4); + Span span248 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span248[index2] = new GatheringLocation { Position = new Vector3(-91.27831f, -8.489767f, 69.08894f) }; - span127[1] = new GatheringLocation + index2++; + span248[index2] = new GatheringLocation { Position = new Vector3(-117.3572f, -11.70367f, 38.49854f) }; obj123.Locations = list248; reference185 = obj123; - ref GatheringNode reference186 = ref span126[1]; + num2++; + ref GatheringNode reference186 = ref span247[num2]; GatheringNode obj124 = new GatheringNode { DataId = 34022u }; - num3 = 1; - List list249 = new List(num3); - CollectionsMarshal.SetCount(list249, num3); - CollectionsMarshal.AsSpan(list249)[0] = new GatheringLocation + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + Span span249 = CollectionsMarshal.AsSpan(list249); + num4 = 0; + span249[num4] = new GatheringLocation { Position = new Vector3(-124.86f, -11.29384f, 89.80068f) }; @@ -16792,40 +19665,47 @@ public static class AssemblyGatheringLocationLoader reference186 = obj124; gatheringNodeGroup62.Nodes = list247; reference184 = gatheringNodeGroup62; - ref GatheringNodeGroup reference187 = ref span123[2]; + index++; + ref GatheringNodeGroup reference187 = ref span243[index]; GatheringNodeGroup gatheringNodeGroup63 = new GatheringNodeGroup(); num2 = 2; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span128 = CollectionsMarshal.AsSpan(list250); - ref GatheringNode reference188 = ref span128[0]; + Span span250 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + ref GatheringNode reference188 = ref span250[num3]; GatheringNode obj125 = new GatheringNode { DataId = 34019u }; - num3 = 2; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - Span span129 = CollectionsMarshal.AsSpan(list251); - span129[0] = new GatheringLocation + num4 = 2; + List list251 = new List(num4); + CollectionsMarshal.SetCount(list251, num4); + Span span251 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span251[index2] = new GatheringLocation { Position = new Vector3(-13.48685f, 4.629431f, 208.5452f) }; - span129[1] = new GatheringLocation + index2++; + span251[index2] = new GatheringLocation { Position = new Vector3(-65.74567f, -2.738637f, 195.961f) }; obj125.Locations = list251; reference188 = obj125; - ref GatheringNode reference189 = ref span128[1]; + num3++; + ref GatheringNode reference189 = ref span250[num3]; GatheringNode obj126 = new GatheringNode { DataId = 34018u }; - num3 = 1; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - CollectionsMarshal.AsSpan(list252)[0] = new GatheringLocation + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num4 = 0; + span252[num4] = new GatheringLocation { Position = new Vector3(-41.94958f, -0.697382f, 173.7239f) }; @@ -16836,35 +19716,44 @@ public static class AssemblyGatheringLocationLoader gatheringRoot21.Groups = list243; AddLocation(846, gatheringRoot21); GatheringRoot gatheringRoot22 = new GatheringRoot(); - num = 1; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - CollectionsMarshal.AsSpan(list253)[0] = "liza"; + index = 1; + List list253 = new List(index); + CollectionsMarshal.SetCount(list253, index); + Span span253 = CollectionsMarshal.AsSpan(list253); + num = 0; + span253[num] = "liza"; gatheringRoot22.Author = list253; num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.None, null, null, 956); + Span span254 = CollectionsMarshal.AsSpan(list254); + index = 0; + span254[index] = new QuestStep(EInteractionType.None, null, null, 956); gatheringRoot22.Steps = list254; gatheringRoot22.FlyBetweenNodes = false; - num = 8; - List list255 = new List(num); - CollectionsMarshal.SetCount(list255, num); - Span span130 = CollectionsMarshal.AsSpan(list255); - ref GatheringNodeGroup reference190 = ref span130[0]; + index = 8; + List list255 = new List(index); + CollectionsMarshal.SetCount(list255, index); + Span span255 = CollectionsMarshal.AsSpan(list255); + num = 0; + ref GatheringNodeGroup reference190 = ref span255[num]; GatheringNodeGroup gatheringNodeGroup64 = new GatheringNodeGroup(); - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - ref GatheringNode reference191 = ref CollectionsMarshal.AsSpan(list256)[0]; + num3 = 1; + List list256 = new List(num3); + CollectionsMarshal.SetCount(list256, num3); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + ref GatheringNode reference191 = ref span256[num2]; GatheringNode obj127 = new GatheringNode { DataId = 34281u }; - num3 = 1; - List list257 = new List(num3); - CollectionsMarshal.SetCount(list257, num3); - CollectionsMarshal.AsSpan(list257)[0] = new GatheringLocation + num4 = 1; + List list257 = new List(num4); + CollectionsMarshal.SetCount(list257, num4); + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = new GatheringLocation { Position = new Vector3(-510.2663f, -20.72923f, -119.9257f), MinimumAngle = -120, @@ -16874,20 +19763,25 @@ public static class AssemblyGatheringLocationLoader reference191 = obj127; gatheringNodeGroup64.Nodes = list256; reference190 = gatheringNodeGroup64; - ref GatheringNodeGroup reference192 = ref span130[1]; + num++; + ref GatheringNodeGroup reference192 = ref span255[num]; GatheringNodeGroup gatheringNodeGroup65 = new GatheringNodeGroup(); num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - ref GatheringNode reference193 = ref CollectionsMarshal.AsSpan(list258)[0]; + Span span258 = CollectionsMarshal.AsSpan(list258); + num3 = 0; + ref GatheringNode reference193 = ref span258[num3]; GatheringNode obj128 = new GatheringNode { DataId = 34283u }; - num3 = 1; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - CollectionsMarshal.AsSpan(list259)[0] = new GatheringLocation + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + Span span259 = CollectionsMarshal.AsSpan(list259); + num4 = 0; + span259[num4] = new GatheringLocation { Position = new Vector3(-502.4525f, -18.55583f, -139.683f), MinimumAngle = -95, @@ -16899,20 +19793,25 @@ public static class AssemblyGatheringLocationLoader reference193 = obj128; gatheringNodeGroup65.Nodes = list258; reference192 = gatheringNodeGroup65; - ref GatheringNodeGroup reference194 = ref span130[2]; + num++; + ref GatheringNodeGroup reference194 = ref span255[num]; GatheringNodeGroup gatheringNodeGroup66 = new GatheringNodeGroup(); - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - ref GatheringNode reference195 = ref CollectionsMarshal.AsSpan(list260)[0]; + num3 = 1; + List list260 = new List(num3); + CollectionsMarshal.SetCount(list260, num3); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + ref GatheringNode reference195 = ref span260[num2]; GatheringNode obj129 = new GatheringNode { DataId = 34284u }; - num3 = 1; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - CollectionsMarshal.AsSpan(list261)[0] = new GatheringLocation + num4 = 1; + List list261 = new List(num4); + CollectionsMarshal.SetCount(list261, num4); + Span span261 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span261[index2] = new GatheringLocation { Position = new Vector3(-499.3535f, -18.75164f, -141.9256f), MinimumAngle = -75, @@ -16924,20 +19823,25 @@ public static class AssemblyGatheringLocationLoader reference195 = obj129; gatheringNodeGroup66.Nodes = list260; reference194 = gatheringNodeGroup66; - ref GatheringNodeGroup reference196 = ref span130[3]; + num++; + ref GatheringNodeGroup reference196 = ref span255[num]; GatheringNodeGroup gatheringNodeGroup67 = new GatheringNodeGroup(); num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - ref GatheringNode reference197 = ref CollectionsMarshal.AsSpan(list262)[0]; + Span span262 = CollectionsMarshal.AsSpan(list262); + num3 = 0; + ref GatheringNode reference197 = ref span262[num3]; GatheringNode obj130 = new GatheringNode { DataId = 34285u }; - num3 = 1; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = new GatheringLocation + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + Span span263 = CollectionsMarshal.AsSpan(list263); + num4 = 0; + span263[num4] = new GatheringLocation { Position = new Vector3(-495.1168f, -18.65139f, -142.5636f), MinimumAngle = -85, @@ -16947,20 +19851,25 @@ public static class AssemblyGatheringLocationLoader reference197 = obj130; gatheringNodeGroup67.Nodes = list262; reference196 = gatheringNodeGroup67; - ref GatheringNodeGroup reference198 = ref span130[4]; + num++; + ref GatheringNodeGroup reference198 = ref span255[num]; GatheringNodeGroup gatheringNodeGroup68 = new GatheringNodeGroup(); - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - ref GatheringNode reference199 = ref CollectionsMarshal.AsSpan(list264)[0]; + num3 = 1; + List list264 = new List(num3); + CollectionsMarshal.SetCount(list264, num3); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + ref GatheringNode reference199 = ref span264[num2]; GatheringNode obj131 = new GatheringNode { DataId = 34286u }; - num3 = 1; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - CollectionsMarshal.AsSpan(list265)[0] = new GatheringLocation + num4 = 1; + List list265 = new List(num4); + CollectionsMarshal.SetCount(list265, num4); + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span265[index2] = new GatheringLocation { Position = new Vector3(-491.4826f, -19.44574f, -144.2088f), MinimumAngle = -105, @@ -16970,20 +19879,25 @@ public static class AssemblyGatheringLocationLoader reference199 = obj131; gatheringNodeGroup68.Nodes = list264; reference198 = gatheringNodeGroup68; - ref GatheringNodeGroup reference200 = ref span130[5]; + num++; + ref GatheringNodeGroup reference200 = ref span255[num]; GatheringNodeGroup gatheringNodeGroup69 = new GatheringNodeGroup(); num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - ref GatheringNode reference201 = ref CollectionsMarshal.AsSpan(list266)[0]; + Span span266 = CollectionsMarshal.AsSpan(list266); + num3 = 0; + ref GatheringNode reference201 = ref span266[num3]; GatheringNode obj132 = new GatheringNode { DataId = 34287u }; - num3 = 1; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = new GatheringLocation + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num4 = 0; + span267[num4] = new GatheringLocation { Position = new Vector3(-488.8665f, -19.70717f, -147.403f), MinimumAngle = 230, @@ -16993,20 +19907,25 @@ public static class AssemblyGatheringLocationLoader reference201 = obj132; gatheringNodeGroup69.Nodes = list266; reference200 = gatheringNodeGroup69; - ref GatheringNodeGroup reference202 = ref span130[6]; + num++; + ref GatheringNodeGroup reference202 = ref span255[num]; GatheringNodeGroup gatheringNodeGroup70 = new GatheringNodeGroup(); - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - ref GatheringNode reference203 = ref CollectionsMarshal.AsSpan(list268)[0]; + num3 = 1; + List list268 = new List(num3); + CollectionsMarshal.SetCount(list268, num3); + Span span268 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + ref GatheringNode reference203 = ref span268[num2]; GatheringNode obj133 = new GatheringNode { DataId = 34289u }; - num3 = 1; - List list269 = new List(num3); - CollectionsMarshal.SetCount(list269, num3); - CollectionsMarshal.AsSpan(list269)[0] = new GatheringLocation + num4 = 1; + List list269 = new List(num4); + CollectionsMarshal.SetCount(list269, num4); + Span span269 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span269[index2] = new GatheringLocation { Position = new Vector3(-489.1829f, -19.91622f, -153.7781f), MinimumAngle = 200, @@ -17016,20 +19935,25 @@ public static class AssemblyGatheringLocationLoader reference203 = obj133; gatheringNodeGroup70.Nodes = list268; reference202 = gatheringNodeGroup70; - ref GatheringNodeGroup reference204 = ref span130[7]; + num++; + ref GatheringNodeGroup reference204 = ref span255[num]; GatheringNodeGroup gatheringNodeGroup71 = new GatheringNodeGroup(); num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - ref GatheringNode reference205 = ref CollectionsMarshal.AsSpan(list270)[0]; + Span span270 = CollectionsMarshal.AsSpan(list270); + num3 = 0; + ref GatheringNode reference205 = ref span270[num3]; GatheringNode obj134 = new GatheringNode { DataId = 34291u }; - num3 = 1; - List list271 = new List(num3); - CollectionsMarshal.SetCount(list271, num3); - CollectionsMarshal.AsSpan(list271)[0] = new GatheringLocation + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num4 = 0; + span271[num4] = new GatheringLocation { Position = new Vector3(-490.1324f, -18.06493f, -164.4281f), MinimumAngle = 210, @@ -17049,12 +19973,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 959) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; @@ -17062,22 +19990,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref GatheringNode reference2 = ref span2[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int num3 = 0; + ref GatheringNode reference2 = ref span4[num3]; GatheringNode obj = new GatheringNode { DataId = 34337u }; - int num3 = 1; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation + int num4 = 1; + List list5 = new List(num4); + CollectionsMarshal.SetCount(list5, num4); + Span span5 = CollectionsMarshal.AsSpan(list5); + int index2 = 0; + span5[index2] = new GatheringLocation { Position = new Vector3(531.9888f, 133.5777f, 288.7549f), MinimumAngle = 190, @@ -17085,15 +20017,18 @@ public static class AssemblyGatheringLocationLoader }; obj.Locations = list5; reference2 = obj; - ref GatheringNode reference3 = ref span2[1]; + num3++; + ref GatheringNode reference3 = ref span4[num3]; GatheringNode obj2 = new GatheringNode { DataId = 34338u }; - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num4 = 0; + span6[num4] = new GatheringLocation { Position = new Vector3(562.9013f, 134.3907f, 254.6339f), MinimumAngle = -75, @@ -17103,21 +20038,25 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference4 = ref span[1]; + index++; + ref GatheringNodeGroup reference4 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span3 = CollectionsMarshal.AsSpan(list7); - ref GatheringNode reference5 = ref span3[0]; + num3 = 2; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref GatheringNode reference5 = ref span7[num2]; GatheringNode obj3 = new GatheringNode { DataId = 34339u }; - num3 = 1; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = new GatheringLocation + num4 = 1; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new GatheringLocation { Position = new Vector3(685.4268f, 130.6815f, 267.9914f), MinimumAngle = -75, @@ -17125,15 +20064,18 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - ref GatheringNode reference6 = ref span3[1]; + num2++; + ref GatheringNode reference6 = ref span7[num2]; GatheringNode obj4 = new GatheringNode { DataId = 34340u }; - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span9[num4] = new GatheringLocation { Position = new Vector3(720.4895f, 139.9972f, 239.97f), MinimumAngle = -30, @@ -17143,21 +20085,25 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - ref GatheringNodeGroup reference7 = ref span[2]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span4 = CollectionsMarshal.AsSpan(list10); - ref GatheringNode reference8 = ref span4[0]; + Span span10 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + ref GatheringNode reference8 = ref span10[num3]; GatheringNode obj5 = new GatheringNode { DataId = 34335u }; - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = new GatheringLocation + num4 = 1; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new GatheringLocation { Position = new Vector3(629.7982f, 144.0473f, 418.6548f), MinimumAngle = 120, @@ -17165,15 +20111,18 @@ public static class AssemblyGatheringLocationLoader }; obj5.Locations = list11; reference8 = obj5; - ref GatheringNode reference9 = ref span4[1]; + num3++; + ref GatheringNode reference9 = ref span10[num3]; GatheringNode obj6 = new GatheringNode { DataId = 34336u }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span12[num4] = new GatheringLocation { Position = new Vector3(712.2249f, 149.0579f, 390.7473f), MinimumAngle = 35, @@ -17186,37 +20135,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(902, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "plogon_enjoyer"; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + span13[num] = "plogon_enjoyer"; gatheringRoot2.Author = list13; num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 960) + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; gatheringRoot2.Steps = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref GatheringNodeGroup reference10 = ref span5[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref GatheringNodeGroup reference10 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - ref GatheringNode reference11 = ref CollectionsMarshal.AsSpan(list16)[0]; + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + ref GatheringNode reference11 = ref span16[num2]; GatheringNode obj7 = new GatheringNode { DataId = 34364u }; - num3 = 1; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = new GatheringLocation + num4 = 1; + List list17 = new List(num4); + CollectionsMarshal.SetCount(list17, num4); + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new GatheringLocation { Position = new Vector3(-470.5523f, 79.49631f, 259.4856f), MinimumAngle = 0, @@ -17226,20 +20184,25 @@ public static class AssemblyGatheringLocationLoader reference11 = obj7; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - ref GatheringNodeGroup reference12 = ref span5[1]; + num++; + ref GatheringNodeGroup reference12 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - ref GatheringNode reference13 = ref CollectionsMarshal.AsSpan(list18)[0]; + Span span18 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + ref GatheringNode reference13 = ref span18[num3]; GatheringNode obj8 = new GatheringNode { DataId = 34365u }; - num3 = 1; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - CollectionsMarshal.AsSpan(list19)[0] = new GatheringLocation + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num4 = 0; + span19[num4] = new GatheringLocation { Position = new Vector3(-493.5432f, 73.7095f, 288.547f), MinimumAngle = 15, @@ -17249,20 +20212,25 @@ public static class AssemblyGatheringLocationLoader reference13 = obj8; gatheringNodeGroup5.Nodes = list18; reference12 = gatheringNodeGroup5; - ref GatheringNodeGroup reference14 = ref span5[2]; + num++; + ref GatheringNodeGroup reference14 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - ref GatheringNode reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; + num3 = 1; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref GatheringNode reference15 = ref span20[num2]; GatheringNode obj9 = new GatheringNode { DataId = 34366u }; - num3 = 1; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new GatheringLocation + num4 = 1; + List list21 = new List(num4); + CollectionsMarshal.SetCount(list21, num4); + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span21[index2] = new GatheringLocation { Position = new Vector3(-478.8098f, 76.21393f, 280.0947f), MinimumAngle = 50, @@ -17278,12 +20246,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + Span span22 = CollectionsMarshal.AsSpan(list22); + index = 0; + span22[index] = "liza"; gatheringRoot3.Author = list22; - num = 1; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.None, null, null, 960) + index = 1; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + Span span23 = CollectionsMarshal.AsSpan(list23); + num = 0; + span23[num] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; @@ -17291,21 +20263,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span6 = CollectionsMarshal.AsSpan(list24); - ref GatheringNodeGroup reference16 = ref span6[0]; + Span span24 = CollectionsMarshal.AsSpan(list24); + index = 0; + ref GatheringNodeGroup reference16 = ref span24[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - ref GatheringNode reference17 = ref CollectionsMarshal.AsSpan(list25)[0]; + Span span25 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + ref GatheringNode reference17 = ref span25[num3]; GatheringNode obj10 = new GatheringNode { DataId = 34369u }; - num3 = 1; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = new GatheringLocation + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num4 = 0; + span26[num4] = new GatheringLocation { Position = new Vector3(-381.6697f, 246.9727f, -221.478f), MinimumAngle = 0, @@ -17315,20 +20292,25 @@ public static class AssemblyGatheringLocationLoader reference17 = obj10; gatheringNodeGroup7.Nodes = list25; reference16 = gatheringNodeGroup7; - ref GatheringNodeGroup reference18 = ref span6[1]; + index++; + ref GatheringNodeGroup reference18 = ref span24[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - ref GatheringNode reference19 = ref CollectionsMarshal.AsSpan(list27)[0]; + num3 = 1; + List list27 = new List(num3); + CollectionsMarshal.SetCount(list27, num3); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + ref GatheringNode reference19 = ref span27[num2]; GatheringNode obj11 = new GatheringNode { DataId = 34367u }; - num3 = 1; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = new GatheringLocation + num4 = 1; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new GatheringLocation { Position = new Vector3(-384.7752f, 246.2142f, -220.8562f) }; @@ -17336,20 +20318,25 @@ public static class AssemblyGatheringLocationLoader reference19 = obj11; gatheringNodeGroup8.Nodes = list27; reference18 = gatheringNodeGroup8; - ref GatheringNodeGroup reference20 = ref span6[2]; + index++; + ref GatheringNodeGroup reference20 = ref span24[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - ref GatheringNode reference21 = ref CollectionsMarshal.AsSpan(list29)[0]; + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + ref GatheringNode reference21 = ref span29[num3]; GatheringNode obj12 = new GatheringNode { DataId = 34368u }; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span30[num4] = new GatheringLocation { Position = new Vector3(-396.0184f, 245.9229f, -236.488f) }; @@ -17360,37 +20347,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list24; AddLocation(906, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "plogon_enjoyer"; + index = 1; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + Span span31 = CollectionsMarshal.AsSpan(list31); + num = 0; + span31[num] = "plogon_enjoyer"; gatheringRoot4.Author = list31; num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.None, null, null, 960) + Span span32 = CollectionsMarshal.AsSpan(list32); + index = 0; + span32[index] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; gatheringRoot4.Steps = list32; - num = 3; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - Span span7 = CollectionsMarshal.AsSpan(list33); - ref GatheringNodeGroup reference22 = ref span7[0]; + index = 3; + List list33 = new List(index); + CollectionsMarshal.SetCount(list33, index); + Span span33 = CollectionsMarshal.AsSpan(list33); + num = 0; + ref GatheringNodeGroup reference22 = ref span33[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - ref GatheringNode reference23 = ref CollectionsMarshal.AsSpan(list34)[0]; + num3 = 1; + List list34 = new List(num3); + CollectionsMarshal.SetCount(list34, num3); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref GatheringNode reference23 = ref span34[num2]; GatheringNode obj13 = new GatheringNode { DataId = 34370u }; - num3 = 1; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = new GatheringLocation + num4 = 1; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new GatheringLocation { Position = new Vector3(-614.3087f, 81.96295f, 262.5681f), MinimumAngle = -150, @@ -17400,20 +20396,25 @@ public static class AssemblyGatheringLocationLoader reference23 = obj13; gatheringNodeGroup10.Nodes = list34; reference22 = gatheringNodeGroup10; - ref GatheringNodeGroup reference24 = ref span7[1]; + num++; + ref GatheringNodeGroup reference24 = ref span33[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - ref GatheringNode reference25 = ref CollectionsMarshal.AsSpan(list36)[0]; + Span span36 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + ref GatheringNode reference25 = ref span36[num3]; GatheringNode obj14 = new GatheringNode { DataId = 34371u }; - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = new GatheringLocation + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num4 = 0; + span37[num4] = new GatheringLocation { Position = new Vector3(-624.2021f, 79.12945f, 278.3768f) }; @@ -17421,20 +20422,25 @@ public static class AssemblyGatheringLocationLoader reference25 = obj14; gatheringNodeGroup11.Nodes = list36; reference24 = gatheringNodeGroup11; - ref GatheringNodeGroup reference26 = ref span7[2]; + num++; + ref GatheringNodeGroup reference26 = ref span33[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - ref GatheringNode reference27 = ref CollectionsMarshal.AsSpan(list38)[0]; + num3 = 1; + List list38 = new List(num3); + CollectionsMarshal.SetCount(list38, num3); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + ref GatheringNode reference27 = ref span38[num2]; GatheringNode obj15 = new GatheringNode { DataId = 34372u }; - num3 = 1; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = new GatheringLocation + num4 = 1; + List list39 = new List(num4); + CollectionsMarshal.SetCount(list39, num4); + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new GatheringLocation { Position = new Vector3(-639.8513f, 78.34773f, 274.0034f), MinimumAngle = -60, @@ -17450,12 +20456,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "liza"; + Span span40 = CollectionsMarshal.AsSpan(list40); + index = 0; + span40[index] = "liza"; gatheringRoot5.Author = list40; - num = 1; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.None, null, null, 960) + index = 1; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + Span span41 = CollectionsMarshal.AsSpan(list41); + num = 0; + span41[num] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; @@ -17463,21 +20473,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - Span span8 = CollectionsMarshal.AsSpan(list42); - ref GatheringNodeGroup reference28 = ref span8[0]; + Span span42 = CollectionsMarshal.AsSpan(list42); + index = 0; + ref GatheringNodeGroup reference28 = ref span42[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - ref GatheringNode reference29 = ref CollectionsMarshal.AsSpan(list43)[0]; + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + ref GatheringNode reference29 = ref span43[num3]; GatheringNode obj16 = new GatheringNode { DataId = 34375u }; - num3 = 1; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = new GatheringLocation + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num4 = 0; + span44[num4] = new GatheringLocation { Position = new Vector3(-408.5904f, 259.0197f, -361.8408f), MinimumAngle = -120, @@ -17487,20 +20502,25 @@ public static class AssemblyGatheringLocationLoader reference29 = obj16; gatheringNodeGroup13.Nodes = list43; reference28 = gatheringNodeGroup13; - ref GatheringNodeGroup reference30 = ref span8[1]; + index++; + ref GatheringNodeGroup reference30 = ref span42[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - ref GatheringNode reference31 = ref CollectionsMarshal.AsSpan(list45)[0]; + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + ref GatheringNode reference31 = ref span45[num2]; GatheringNode obj17 = new GatheringNode { DataId = 34374u }; - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new GatheringLocation + num4 = 1; + List list46 = new List(num4); + CollectionsMarshal.SetCount(list46, num4); + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new GatheringLocation { Position = new Vector3(-410.1218f, 261.0269f, -364.9317f), MinimumAngle = -120, @@ -17510,20 +20530,25 @@ public static class AssemblyGatheringLocationLoader reference31 = obj17; gatheringNodeGroup14.Nodes = list45; reference30 = gatheringNodeGroup14; - ref GatheringNodeGroup reference32 = ref span8[2]; + index++; + ref GatheringNodeGroup reference32 = ref span42[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - ref GatheringNode reference33 = ref CollectionsMarshal.AsSpan(list47)[0]; + Span span47 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + ref GatheringNode reference33 = ref span47[num3]; GatheringNode obj18 = new GatheringNode { DataId = 34373u }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span48[num4] = new GatheringLocation { Position = new Vector3(-421.3381f, 263.4496f, -366.897f), MinimumAngle = -105, @@ -17536,37 +20561,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list42; AddLocation(908, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "plogon_enjoyer"; + index = 1; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + Span span49 = CollectionsMarshal.AsSpan(list49); + num = 0; + span49[num] = "plogon_enjoyer"; gatheringRoot6.Author = list49; num = 1; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.None, null, null, 960) + Span span50 = CollectionsMarshal.AsSpan(list50); + index = 0; + span50[index] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; gatheringRoot6.Steps = list50; - num = 3; - List list51 = new List(num); - CollectionsMarshal.SetCount(list51, num); - Span span9 = CollectionsMarshal.AsSpan(list51); - ref GatheringNodeGroup reference34 = ref span9[0]; + index = 3; + List list51 = new List(index); + CollectionsMarshal.SetCount(list51, index); + Span span51 = CollectionsMarshal.AsSpan(list51); + num = 0; + ref GatheringNodeGroup reference34 = ref span51[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - ref GatheringNode reference35 = ref CollectionsMarshal.AsSpan(list52)[0]; + num3 = 1; + List list52 = new List(num3); + CollectionsMarshal.SetCount(list52, num3); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + ref GatheringNode reference35 = ref span52[num2]; GatheringNode obj19 = new GatheringNode { DataId = 34376u }; - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new GatheringLocation + num4 = 1; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new GatheringLocation { Position = new Vector3(-586.0029f, 84.39367f, 568.1448f), MinimumAngle = -60, @@ -17578,20 +20612,25 @@ public static class AssemblyGatheringLocationLoader reference35 = obj19; gatheringNodeGroup16.Nodes = list52; reference34 = gatheringNodeGroup16; - ref GatheringNodeGroup reference36 = ref span9[1]; + num++; + ref GatheringNodeGroup reference36 = ref span51[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - ref GatheringNode reference37 = ref CollectionsMarshal.AsSpan(list54)[0]; + Span span54 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + ref GatheringNode reference37 = ref span54[num3]; GatheringNode obj20 = new GatheringNode { DataId = 34377u }; - num3 = 1; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = new GatheringLocation + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num4 = 0; + span55[num4] = new GatheringLocation { Position = new Vector3(-578.2748f, 86.34826f, 567.2876f), MinimumAngle = -80, @@ -17601,20 +20640,25 @@ public static class AssemblyGatheringLocationLoader reference37 = obj20; gatheringNodeGroup17.Nodes = list54; reference36 = gatheringNodeGroup17; - ref GatheringNodeGroup reference38 = ref span9[2]; + num++; + ref GatheringNodeGroup reference38 = ref span51[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - ref GatheringNode reference39 = ref CollectionsMarshal.AsSpan(list56)[0]; + num3 = 1; + List list56 = new List(num3); + CollectionsMarshal.SetCount(list56, num3); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + ref GatheringNode reference39 = ref span56[num2]; GatheringNode obj21 = new GatheringNode { DataId = 34378u }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = new GatheringLocation + num4 = 1; + List list57 = new List(num4); + CollectionsMarshal.SetCount(list57, num4); + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new GatheringLocation { Position = new Vector3(-600.2446f, 86.01588f, 557.4477f), MinimumAngle = -35, @@ -17630,12 +20674,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "plogon_enjoyer"; + Span span58 = CollectionsMarshal.AsSpan(list58); + index = 0; + span58[index] = "plogon_enjoyer"; gatheringRoot7.Author = list58; - num = 1; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.None, null, null, 960) + index = 1; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + Span span59 = CollectionsMarshal.AsSpan(list59); + num = 0; + span59[num] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; @@ -17643,21 +20691,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - Span span10 = CollectionsMarshal.AsSpan(list60); - ref GatheringNodeGroup reference40 = ref span10[0]; + Span span60 = CollectionsMarshal.AsSpan(list60); + index = 0; + ref GatheringNodeGroup reference40 = ref span60[index]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - ref GatheringNode reference41 = ref CollectionsMarshal.AsSpan(list61)[0]; + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + ref GatheringNode reference41 = ref span61[num3]; GatheringNode obj22 = new GatheringNode { DataId = 34379u }; - num3 = 1; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - CollectionsMarshal.AsSpan(list62)[0] = new GatheringLocation + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num4 = 0; + span62[num4] = new GatheringLocation { Position = new Vector3(454.8535f, 307.5555f, -590.8547f), MinimumAngle = -105, @@ -17669,20 +20722,25 @@ public static class AssemblyGatheringLocationLoader reference41 = obj22; gatheringNodeGroup19.Nodes = list61; reference40 = gatheringNodeGroup19; - ref GatheringNodeGroup reference42 = ref span10[1]; + index++; + ref GatheringNodeGroup reference42 = ref span60[index]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - ref GatheringNode reference43 = ref CollectionsMarshal.AsSpan(list63)[0]; + num3 = 1; + List list63 = new List(num3); + CollectionsMarshal.SetCount(list63, num3); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref GatheringNode reference43 = ref span63[num2]; GatheringNode obj23 = new GatheringNode { DataId = 34380u }; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new GatheringLocation + num4 = 1; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new GatheringLocation { Position = new Vector3(447.787f, 300.8405f, -597.8972f), MinimumAngle = 45, @@ -17692,20 +20750,25 @@ public static class AssemblyGatheringLocationLoader reference43 = obj23; gatheringNodeGroup20.Nodes = list63; reference42 = gatheringNodeGroup20; - ref GatheringNodeGroup reference44 = ref span10[2]; + index++; + ref GatheringNodeGroup reference44 = ref span60[index]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - ref GatheringNode reference45 = ref CollectionsMarshal.AsSpan(list65)[0]; + Span span65 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + ref GatheringNode reference45 = ref span65[num3]; GatheringNode obj24 = new GatheringNode { DataId = 34381u }; - num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = new GatheringLocation + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num4 = 0; + span66[num4] = new GatheringLocation { Position = new Vector3(448.707f, 305.0525f, -591.1053f), MinimumAngle = 30, @@ -17718,37 +20781,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list60; AddLocation(910, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - num = 1; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "liza"; + index = 1; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + Span span67 = CollectionsMarshal.AsSpan(list67); + num = 0; + span67[num] = "liza"; gatheringRoot8.Author = list67; num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.None, null, null, 398) + Span span68 = CollectionsMarshal.AsSpan(list68); + index = 0; + span68[index] = new QuestStep(EInteractionType.None, null, null, 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; gatheringRoot8.Steps = list68; - num = 3; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span11 = CollectionsMarshal.AsSpan(list69); - ref GatheringNodeGroup reference46 = ref span11[0]; + index = 3; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + Span span69 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref GatheringNodeGroup reference46 = ref span69[num]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - ref GatheringNode reference47 = ref CollectionsMarshal.AsSpan(list70)[0]; + num3 = 1; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref GatheringNode reference47 = ref span70[num2]; GatheringNode obj25 = new GatheringNode { DataId = 34382u }; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new GatheringLocation + num4 = 1; + List list71 = new List(num4); + CollectionsMarshal.SetCount(list71, num4); + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new GatheringLocation { Position = new Vector3(-528.8412f, -89.70924f, 458.582f), MinimumAngle = -10, @@ -17760,20 +20832,25 @@ public static class AssemblyGatheringLocationLoader reference47 = obj25; gatheringNodeGroup22.Nodes = list70; reference46 = gatheringNodeGroup22; - ref GatheringNodeGroup reference48 = ref span11[1]; + num++; + ref GatheringNodeGroup reference48 = ref span69[num]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - ref GatheringNode reference49 = ref CollectionsMarshal.AsSpan(list72)[0]; + Span span72 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + ref GatheringNode reference49 = ref span72[num3]; GatheringNode obj26 = new GatheringNode { DataId = 34383u }; - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = new GatheringLocation + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num4 = 0; + span73[num4] = new GatheringLocation { Position = new Vector3(-636.4533f, -100.1258f, 484.7436f), MinimumAngle = -75, @@ -17783,20 +20860,25 @@ public static class AssemblyGatheringLocationLoader reference49 = obj26; gatheringNodeGroup23.Nodes = list72; reference48 = gatheringNodeGroup23; - ref GatheringNodeGroup reference50 = ref span11[2]; + num++; + ref GatheringNodeGroup reference50 = ref span69[num]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - ref GatheringNode reference51 = ref CollectionsMarshal.AsSpan(list74)[0]; + num3 = 1; + List list74 = new List(num3); + CollectionsMarshal.SetCount(list74, num3); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + ref GatheringNode reference51 = ref span74[num2]; GatheringNode obj27 = new GatheringNode { DataId = 34384u }; - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = new GatheringLocation + num4 = 1; + List list75 = new List(num4); + CollectionsMarshal.SetCount(list75, num4); + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new GatheringLocation { Position = new Vector3(-589.4542f, -100.4852f, 528.1926f), MinimumAngle = -25, @@ -17812,12 +20894,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "plogon_enjoyer"; + Span span76 = CollectionsMarshal.AsSpan(list76); + index = 0; + span76[index] = "plogon_enjoyer"; gatheringRoot9.Author = list76; - num = 1; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.None, null, null, 960) + index = 1; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + Span span77 = CollectionsMarshal.AsSpan(list77); + num = 0; + span77[num] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; @@ -17825,21 +20911,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - Span span12 = CollectionsMarshal.AsSpan(list78); - ref GatheringNodeGroup reference52 = ref span12[0]; + Span span78 = CollectionsMarshal.AsSpan(list78); + index = 0; + ref GatheringNodeGroup reference52 = ref span78[index]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - ref GatheringNode reference53 = ref CollectionsMarshal.AsSpan(list79)[0]; + Span span79 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + ref GatheringNode reference53 = ref span79[num3]; GatheringNode obj28 = new GatheringNode { DataId = 34385u }; - num3 = 1; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new GatheringLocation + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num4 = 0; + span80[num4] = new GatheringLocation { Position = new Vector3(27.77994f, 73.57088f, 695.2364f), MinimumAngle = 0, @@ -17849,20 +20940,25 @@ public static class AssemblyGatheringLocationLoader reference53 = obj28; gatheringNodeGroup25.Nodes = list79; reference52 = gatheringNodeGroup25; - ref GatheringNodeGroup reference54 = ref span12[1]; + index++; + ref GatheringNodeGroup reference54 = ref span78[index]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - ref GatheringNode reference55 = ref CollectionsMarshal.AsSpan(list81)[0]; + num3 = 1; + List list81 = new List(num3); + CollectionsMarshal.SetCount(list81, num3); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + ref GatheringNode reference55 = ref span81[num2]; GatheringNode obj29 = new GatheringNode { DataId = 34386u }; - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = new GatheringLocation + num4 = 1; + List list82 = new List(num4); + CollectionsMarshal.SetCount(list82, num4); + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new GatheringLocation { Position = new Vector3(23.20134f, 70.90392f, 698.6194f), MinimumAngle = -10, @@ -17872,20 +20968,25 @@ public static class AssemblyGatheringLocationLoader reference55 = obj29; gatheringNodeGroup26.Nodes = list81; reference54 = gatheringNodeGroup26; - ref GatheringNodeGroup reference56 = ref span12[2]; + index++; + ref GatheringNodeGroup reference56 = ref span78[index]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - ref GatheringNode reference57 = ref CollectionsMarshal.AsSpan(list83)[0]; + Span span83 = CollectionsMarshal.AsSpan(list83); + num3 = 0; + ref GatheringNode reference57 = ref span83[num3]; GatheringNode obj30 = new GatheringNode { DataId = 34387u }; - num3 = 1; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = new GatheringLocation + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num4 = 0; + span84[num4] = new GatheringLocation { Position = new Vector3(30.69294f, 75.43362f, 688.8371f), MinimumAngle = -5, @@ -17898,37 +20999,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list78; AddLocation(912, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - num = 1; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "plogon_enjoyer"; + index = 1; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + span85[num] = "plogon_enjoyer"; gatheringRoot10.Author = list85; num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.None, null, null, 960) + Span span86 = CollectionsMarshal.AsSpan(list86); + index = 0; + span86[index] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; gatheringRoot10.Steps = list86; - num = 3; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span13 = CollectionsMarshal.AsSpan(list87); - ref GatheringNodeGroup reference58 = ref span13[0]; + index = 3; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + Span span87 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref GatheringNodeGroup reference58 = ref span87[num]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - ref GatheringNode reference59 = ref CollectionsMarshal.AsSpan(list88)[0]; + num3 = 1; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + ref GatheringNode reference59 = ref span88[num2]; GatheringNode obj31 = new GatheringNode { DataId = 34388u }; - num3 = 1; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - CollectionsMarshal.AsSpan(list89)[0] = new GatheringLocation + num4 = 1; + List list89 = new List(num4); + CollectionsMarshal.SetCount(list89, num4); + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new GatheringLocation { Position = new Vector3(398.7177f, 292.5112f, -462.82f), MinimumAngle = -65, @@ -17938,20 +21048,25 @@ public static class AssemblyGatheringLocationLoader reference59 = obj31; gatheringNodeGroup28.Nodes = list88; reference58 = gatheringNodeGroup28; - ref GatheringNodeGroup reference60 = ref span13[1]; + num++; + ref GatheringNodeGroup reference60 = ref span87[num]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - ref GatheringNode reference61 = ref CollectionsMarshal.AsSpan(list90)[0]; + Span span90 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + ref GatheringNode reference61 = ref span90[num3]; GatheringNode obj32 = new GatheringNode { DataId = 34389u }; - num3 = 1; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = new GatheringLocation + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num4 = 0; + span91[num4] = new GatheringLocation { Position = new Vector3(373.1678f, 290.8189f, -442.4228f), MinimumAngle = 160, @@ -17961,20 +21076,25 @@ public static class AssemblyGatheringLocationLoader reference61 = obj32; gatheringNodeGroup29.Nodes = list90; reference60 = gatheringNodeGroup29; - ref GatheringNodeGroup reference62 = ref span13[2]; + num++; + ref GatheringNodeGroup reference62 = ref span87[num]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - ref GatheringNode reference63 = ref CollectionsMarshal.AsSpan(list92)[0]; + num3 = 1; + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + ref GatheringNode reference63 = ref span92[num2]; GatheringNode obj33 = new GatheringNode { DataId = 34390u }; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new GatheringLocation + num4 = 1; + List list93 = new List(num4); + CollectionsMarshal.SetCount(list93, num4); + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new GatheringLocation { Position = new Vector3(383.5671f, 289.9682f, -392.3997f), MinimumAngle = 65, @@ -17992,12 +21112,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "liza"; + Span span94 = CollectionsMarshal.AsSpan(list94); + index = 0; + span94[index] = "liza"; gatheringRoot11.Author = list94; - num = 1; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.None, null, null, 398) + index = 1; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + Span span95 = CollectionsMarshal.AsSpan(list95); + num = 0; + span95[num] = new QuestStep(EInteractionType.None, null, null, 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; @@ -18005,21 +21129,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span14 = CollectionsMarshal.AsSpan(list96); - ref GatheringNodeGroup reference64 = ref span14[0]; + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + ref GatheringNodeGroup reference64 = ref span96[index]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - ref GatheringNode reference65 = ref CollectionsMarshal.AsSpan(list97)[0]; + Span span97 = CollectionsMarshal.AsSpan(list97); + num3 = 0; + ref GatheringNode reference65 = ref span97[num3]; GatheringNode obj34 = new GatheringNode { DataId = 34391u }; - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = new GatheringLocation + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num4 = 0; + span98[num4] = new GatheringLocation { Position = new Vector3(-49.75243f, -31.70323f, -171.6977f) }; @@ -18027,20 +21156,25 @@ public static class AssemblyGatheringLocationLoader reference65 = obj34; gatheringNodeGroup31.Nodes = list97; reference64 = gatheringNodeGroup31; - ref GatheringNodeGroup reference66 = ref span14[1]; + index++; + ref GatheringNodeGroup reference66 = ref span96[index]; GatheringNodeGroup gatheringNodeGroup32 = new GatheringNodeGroup(); - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - ref GatheringNode reference67 = ref CollectionsMarshal.AsSpan(list99)[0]; + num3 = 1; + List list99 = new List(num3); + CollectionsMarshal.SetCount(list99, num3); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + ref GatheringNode reference67 = ref span99[num2]; GatheringNode obj35 = new GatheringNode { DataId = 34392u }; - num3 = 1; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = new GatheringLocation + num4 = 1; + List list100 = new List(num4); + CollectionsMarshal.SetCount(list100, num4); + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new GatheringLocation { Position = new Vector3(-44.89702f, -32.39204f, -153.4274f) }; @@ -18048,20 +21182,25 @@ public static class AssemblyGatheringLocationLoader reference67 = obj35; gatheringNodeGroup32.Nodes = list99; reference66 = gatheringNodeGroup32; - ref GatheringNodeGroup reference68 = ref span14[2]; + index++; + ref GatheringNodeGroup reference68 = ref span96[index]; GatheringNodeGroup gatheringNodeGroup33 = new GatheringNodeGroup(); num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - ref GatheringNode reference69 = ref CollectionsMarshal.AsSpan(list101)[0]; + Span span101 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + ref GatheringNode reference69 = ref span101[num3]; GatheringNode obj36 = new GatheringNode { DataId = 34393u }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = new GatheringLocation + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num4 = 0; + span102[num4] = new GatheringLocation { Position = new Vector3(-36.6049f, -31.32222f, -134.1001f) }; @@ -18072,38 +21211,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot11.Groups = list96; AddLocation(914, gatheringRoot11); GatheringRoot gatheringRoot12 = new GatheringRoot(); - num = 1; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "liza"; + index = 1; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + Span span103 = CollectionsMarshal.AsSpan(list103); + num = 0; + span103[num] = "liza"; gatheringRoot12.Author = list103; num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.None, null, null, 816) + Span span104 = CollectionsMarshal.AsSpan(list104); + index = 0; + span104[index] = new QuestStep(EInteractionType.None, null, null, 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; gatheringRoot12.Steps = list104; - num = 3; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span15 = CollectionsMarshal.AsSpan(list105); - ref GatheringNodeGroup reference70 = ref span15[0]; + index = 3; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + Span span105 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref GatheringNodeGroup reference70 = ref span105[num]; GatheringNodeGroup gatheringNodeGroup34 = new GatheringNodeGroup(); - num2 = 2; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - Span span16 = CollectionsMarshal.AsSpan(list106); - ref GatheringNode reference71 = ref span16[0]; + num3 = 2; + List list106 = new List(num3); + CollectionsMarshal.SetCount(list106, num3); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + ref GatheringNode reference71 = ref span106[num2]; GatheringNode obj37 = new GatheringNode { DataId = 34407u }; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new GatheringLocation + num4 = 1; + List list107 = new List(num4); + CollectionsMarshal.SetCount(list107, num4); + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new GatheringLocation { Position = new Vector3(398.7715f, 58.00708f, -1682f / (float)Math.PI), MinimumAngle = 95, @@ -18111,16 +21258,18 @@ public static class AssemblyGatheringLocationLoader }; obj37.Locations = list107; reference71 = obj37; - ref GatheringNode reference72 = ref span16[1]; + num2++; + ref GatheringNode reference72 = ref span106[num2]; GatheringNode obj38 = new GatheringNode { DataId = 34408u }; - num3 = 2; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - Span span17 = CollectionsMarshal.AsSpan(list108); - span17[0] = new GatheringLocation + index2 = 2; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num4 = 0; + span108[num4] = new GatheringLocation { Position = new Vector3(395.787f, 57.58823f, -532.1421f), MinimumAngle = 105, @@ -18128,7 +21277,8 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.5f, MaximumDistance = 3f }; - span17[1] = new GatheringLocation + num4++; + span108[num4] = new GatheringLocation { Position = new Vector3(403.3334f, 58.56588f, -533.6083f), MinimumAngle = 185, @@ -18140,21 +21290,25 @@ public static class AssemblyGatheringLocationLoader reference72 = obj38; gatheringNodeGroup34.Nodes = list106; reference70 = gatheringNodeGroup34; - ref GatheringNodeGroup reference73 = ref span15[1]; + num++; + ref GatheringNodeGroup reference73 = ref span105[num]; GatheringNodeGroup gatheringNodeGroup35 = new GatheringNodeGroup(); num2 = 2; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span18 = CollectionsMarshal.AsSpan(list109); - ref GatheringNode reference74 = ref span18[0]; + Span span109 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + ref GatheringNode reference74 = ref span109[num3]; GatheringNode obj39 = new GatheringNode { DataId = 34405u }; - num3 = 1; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = new GatheringLocation + num4 = 1; + List list110 = new List(num4); + CollectionsMarshal.SetCount(list110, num4); + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new GatheringLocation { Position = new Vector3(563.6605f, 96.62567f, -409.83f), MinimumAngle = 60, @@ -18162,20 +21316,23 @@ public static class AssemblyGatheringLocationLoader }; obj39.Locations = list110; reference74 = obj39; - ref GatheringNode reference75 = ref span18[1]; + num3++; + ref GatheringNode reference75 = ref span109[num3]; GatheringNode obj40 = new GatheringNode { DataId = 34406u }; - num3 = 2; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - Span span19 = CollectionsMarshal.AsSpan(list111); - span19[0] = new GatheringLocation + index2 = 2; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num4 = 0; + span111[num4] = new GatheringLocation { Position = new Vector3(584.2038f, 97.61217f, -429.3185f) }; - span19[1] = new GatheringLocation + num4++; + span111[num4] = new GatheringLocation { Position = new Vector3(541.3574f, 95.33327f, -385.5562f) }; @@ -18183,21 +21340,25 @@ public static class AssemblyGatheringLocationLoader reference75 = obj40; gatheringNodeGroup35.Nodes = list109; reference73 = gatheringNodeGroup35; - ref GatheringNodeGroup reference76 = ref span15[2]; + num++; + ref GatheringNodeGroup reference76 = ref span105[num]; GatheringNodeGroup gatheringNodeGroup36 = new GatheringNodeGroup(); - num2 = 2; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span20 = CollectionsMarshal.AsSpan(list112); - ref GatheringNode reference77 = ref span20[0]; + num3 = 2; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + ref GatheringNode reference77 = ref span112[num2]; GatheringNode obj41 = new GatheringNode { DataId = 34403u }; - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = new GatheringLocation + num4 = 1; + List list113 = new List(num4); + CollectionsMarshal.SetCount(list113, num4); + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new GatheringLocation { Position = new Vector3(569.0512f, 96.43839f, -571.2072f), MinimumAngle = 45, @@ -18205,22 +21366,25 @@ public static class AssemblyGatheringLocationLoader }; obj41.Locations = list113; reference77 = obj41; - ref GatheringNode reference78 = ref span20[1]; + num2++; + ref GatheringNode reference78 = ref span112[num2]; GatheringNode obj42 = new GatheringNode { DataId = 34404u }; - num3 = 2; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span21 = CollectionsMarshal.AsSpan(list114); - span21[0] = new GatheringLocation + index2 = 2; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num4 = 0; + span114[num4] = new GatheringLocation { Position = new Vector3(557.5918f, 92.0403f, -582.1814f), MinimumAngle = 70, MaximumAngle = 200 }; - span21[1] = new GatheringLocation + num4++; + span114[num4] = new GatheringLocation { Position = new Vector3(573.9432f, 96.50874f, -575.4167f), MinimumAngle = 85, @@ -18236,12 +21400,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "liza"; + Span span115 = CollectionsMarshal.AsSpan(list115); + index = 0; + span115[index] = "liza"; gatheringRoot13.Author = list115; - num = 1; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.None, null, null, 815) + index = 1; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + Span span116 = CollectionsMarshal.AsSpan(list116); + num = 0; + span116[num] = new QuestStep(EInteractionType.None, null, null, 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; @@ -18249,22 +21417,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - Span span22 = CollectionsMarshal.AsSpan(list117); - ref GatheringNodeGroup reference79 = ref span22[0]; + Span span117 = CollectionsMarshal.AsSpan(list117); + index = 0; + ref GatheringNodeGroup reference79 = ref span117[index]; GatheringNodeGroup gatheringNodeGroup37 = new GatheringNodeGroup(); num2 = 2; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span23 = CollectionsMarshal.AsSpan(list118); - ref GatheringNode reference80 = ref span23[0]; + Span span118 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + ref GatheringNode reference80 = ref span118[num3]; GatheringNode obj43 = new GatheringNode { DataId = 34411u }; - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = new GatheringLocation + num4 = 1; + List list119 = new List(num4); + CollectionsMarshal.SetCount(list119, num4); + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new GatheringLocation { Position = new Vector3(-418.0731f, 16.25609f, -127.4739f), MinimumAngle = 240, @@ -18272,22 +21444,25 @@ public static class AssemblyGatheringLocationLoader }; obj43.Locations = list119; reference80 = obj43; - ref GatheringNode reference81 = ref span23[1]; + num3++; + ref GatheringNode reference81 = ref span118[num3]; GatheringNode obj44 = new GatheringNode { DataId = 34412u }; - num3 = 2; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span24 = CollectionsMarshal.AsSpan(list120); - span24[0] = new GatheringLocation + index2 = 2; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num4 = 0; + span120[num4] = new GatheringLocation { Position = new Vector3(-436.8404f, 18.18649f, -121.9686f), MinimumAngle = -80, MaximumAngle = 75 }; - span24[1] = new GatheringLocation + num4++; + span120[num4] = new GatheringLocation { Position = new Vector3(-412.7203f, 17.72583f, -144.2871f), MinimumAngle = -145, @@ -18297,21 +21472,25 @@ public static class AssemblyGatheringLocationLoader reference81 = obj44; gatheringNodeGroup37.Nodes = list118; reference79 = gatheringNodeGroup37; - ref GatheringNodeGroup reference82 = ref span22[1]; + index++; + ref GatheringNodeGroup reference82 = ref span117[index]; GatheringNodeGroup gatheringNodeGroup38 = new GatheringNodeGroup(); - num2 = 2; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span25 = CollectionsMarshal.AsSpan(list121); - ref GatheringNode reference83 = ref span25[0]; + num3 = 2; + List list121 = new List(num3); + CollectionsMarshal.SetCount(list121, num3); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + ref GatheringNode reference83 = ref span121[num2]; GatheringNode obj45 = new GatheringNode { DataId = 34409u }; - num3 = 1; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = new GatheringLocation + num4 = 1; + List list122 = new List(num4); + CollectionsMarshal.SetCount(list122, num4); + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new GatheringLocation { Position = new Vector3(-309.9351f, 22.43881f, -196.324f), MinimumAngle = -70, @@ -18319,22 +21498,25 @@ public static class AssemblyGatheringLocationLoader }; obj45.Locations = list122; reference83 = obj45; - ref GatheringNode reference84 = ref span25[1]; + num2++; + ref GatheringNode reference84 = ref span121[num2]; GatheringNode obj46 = new GatheringNode { DataId = 34410u }; - num3 = 2; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - Span span26 = CollectionsMarshal.AsSpan(list123); - span26[0] = new GatheringLocation + index2 = 2; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num4 = 0; + span123[num4] = new GatheringLocation { Position = new Vector3(-301.4662f, 22.08392f, -205.1306f), MinimumAngle = -145, MaximumAngle = -20 }; - span26[1] = new GatheringLocation + num4++; + span123[num4] = new GatheringLocation { Position = new Vector3(-318.3467f, 23.1723f, -198.7676f), MinimumAngle = -45, @@ -18344,28 +21526,32 @@ public static class AssemblyGatheringLocationLoader reference84 = obj46; gatheringNodeGroup38.Nodes = list121; reference82 = gatheringNodeGroup38; - ref GatheringNodeGroup reference85 = ref span22[2]; + index++; + ref GatheringNodeGroup reference85 = ref span117[index]; GatheringNodeGroup gatheringNodeGroup39 = new GatheringNodeGroup(); num2 = 2; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span27 = CollectionsMarshal.AsSpan(list124); - ref GatheringNode reference86 = ref span27[0]; + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + ref GatheringNode reference86 = ref span124[num3]; GatheringNode obj47 = new GatheringNode { DataId = 34414u }; - num3 = 2; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span28 = CollectionsMarshal.AsSpan(list125); - span28[0] = new GatheringLocation + num4 = 2; + List list125 = new List(num4); + CollectionsMarshal.SetCount(list125, num4); + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new GatheringLocation { Position = new Vector3(-229.6105f, 5.158276f, -103.3359f), MinimumAngle = -40, MaximumAngle = 170 }; - span28[1] = new GatheringLocation + index2++; + span125[index2] = new GatheringLocation { Position = new Vector3(-247.2413f, 9.6758f, -128.0531f), MinimumAngle = 30, @@ -18373,15 +21559,18 @@ public static class AssemblyGatheringLocationLoader }; obj47.Locations = list125; reference86 = obj47; - ref GatheringNode reference87 = ref span27[1]; + num3++; + ref GatheringNode reference87 = ref span124[num3]; GatheringNode obj48 = new GatheringNode { DataId = 34413u }; - num3 = 1; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = new GatheringLocation + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num4 = 0; + span126[num4] = new GatheringLocation { Position = new Vector3(-248.8988f, 7.998118f, -121.8732f), MinimumAngle = 0, @@ -18394,57 +21583,68 @@ public static class AssemblyGatheringLocationLoader gatheringRoot13.Groups = list117; AddLocation(919, gatheringRoot13); GatheringRoot gatheringRoot14 = new GatheringRoot(); - num = 1; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - CollectionsMarshal.AsSpan(list127)[0] = "liza"; + index = 1; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + Span span127 = CollectionsMarshal.AsSpan(list127); + num = 0; + span127[num] = "liza"; gatheringRoot14.Author = list127; num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.None, null, null, 816) + Span span128 = CollectionsMarshal.AsSpan(list128); + index = 0; + span128[index] = new QuestStep(EInteractionType.None, null, null, 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; gatheringRoot14.Steps = list128; - num = 3; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span29 = CollectionsMarshal.AsSpan(list129); - ref GatheringNodeGroup reference88 = ref span29[0]; + index = 3; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + Span span129 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref GatheringNodeGroup reference88 = ref span129[num]; GatheringNodeGroup gatheringNodeGroup40 = new GatheringNodeGroup(); - num2 = 2; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span30 = CollectionsMarshal.AsSpan(list130); - ref GatheringNode reference89 = ref span30[0]; + num3 = 2; + List list130 = new List(num3); + CollectionsMarshal.SetCount(list130, num3); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + ref GatheringNode reference89 = ref span130[num2]; GatheringNode obj49 = new GatheringNode { DataId = 34422u }; - num3 = 2; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span31 = CollectionsMarshal.AsSpan(list131); - span31[0] = new GatheringLocation + num4 = 2; + List list131 = new List(num4); + CollectionsMarshal.SetCount(list131, num4); + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new GatheringLocation { Position = new Vector3(-161.9915f, 60.04895f, -647.3901f) }; - span31[1] = new GatheringLocation + index2++; + span131[index2] = new GatheringLocation { Position = new Vector3(-179.2945f, 60.84981f, -630.9084f) }; obj49.Locations = list131; reference89 = obj49; - ref GatheringNode reference90 = ref span30[1]; + num2++; + ref GatheringNode reference90 = ref span130[num2]; GatheringNode obj50 = new GatheringNode { DataId = 34421u }; - num3 = 1; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = new GatheringLocation + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num4 = 0; + span132[num4] = new GatheringLocation { Position = new Vector3(-182.311f, 60.81965f, -640.2197f) }; @@ -18452,40 +21652,47 @@ public static class AssemblyGatheringLocationLoader reference90 = obj50; gatheringNodeGroup40.Nodes = list130; reference88 = gatheringNodeGroup40; - ref GatheringNodeGroup reference91 = ref span29[1]; + num++; + ref GatheringNodeGroup reference91 = ref span129[num]; GatheringNodeGroup gatheringNodeGroup41 = new GatheringNodeGroup(); num2 = 2; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span32 = CollectionsMarshal.AsSpan(list133); - ref GatheringNode reference92 = ref span32[0]; + Span span133 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + ref GatheringNode reference92 = ref span133[num3]; GatheringNode obj51 = new GatheringNode { DataId = 34423u }; - num3 = 1; - List list134 = new List(num3); - CollectionsMarshal.SetCount(list134, num3); - CollectionsMarshal.AsSpan(list134)[0] = new GatheringLocation + num4 = 1; + List list134 = new List(num4); + CollectionsMarshal.SetCount(list134, num4); + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span134[index2] = new GatheringLocation { Position = new Vector3(-182.0749f, 60.70063f, -567.6271f) }; obj51.Locations = list134; reference92 = obj51; - ref GatheringNode reference93 = ref span32[1]; + num3++; + ref GatheringNode reference93 = ref span133[num3]; GatheringNode obj52 = new GatheringNode { DataId = 34424u }; - num3 = 2; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - Span span33 = CollectionsMarshal.AsSpan(list135); - span33[0] = new GatheringLocation + index2 = 2; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num4 = 0; + span135[num4] = new GatheringLocation { Position = new Vector3(-184.7115f, 59.23207f, -573.9592f) }; - span33[1] = new GatheringLocation + num4++; + span135[num4] = new GatheringLocation { Position = new Vector3(-171.0273f, 62.20385f, -576.3321f) }; @@ -18493,42 +21700,49 @@ public static class AssemblyGatheringLocationLoader reference93 = obj52; gatheringNodeGroup41.Nodes = list133; reference91 = gatheringNodeGroup41; - ref GatheringNodeGroup reference94 = ref span29[2]; + num++; + ref GatheringNodeGroup reference94 = ref span129[num]; GatheringNodeGroup gatheringNodeGroup42 = new GatheringNodeGroup(); - num2 = 2; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span34 = CollectionsMarshal.AsSpan(list136); - ref GatheringNode reference95 = ref span34[0]; + num3 = 2; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + ref GatheringNode reference95 = ref span136[num2]; GatheringNode obj53 = new GatheringNode { DataId = 34425u }; - num3 = 1; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - CollectionsMarshal.AsSpan(list137)[0] = new GatheringLocation + num4 = 1; + List list137 = new List(num4); + CollectionsMarshal.SetCount(list137, num4); + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new GatheringLocation { Position = new Vector3(-333.3387f, 82.66466f, -505.7937f) }; obj53.Locations = list137; reference95 = obj53; - ref GatheringNode reference96 = ref span34[1]; + num2++; + ref GatheringNode reference96 = ref span136[num2]; GatheringNode obj54 = new GatheringNode { DataId = 34426u }; - num3 = 2; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span35 = CollectionsMarshal.AsSpan(list138); - span35[0] = new GatheringLocation + index2 = 2; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num4 = 0; + span138[num4] = new GatheringLocation { Position = new Vector3(-333.0683f, 82.72758f, -501.5885f), MinimumAngle = 75, MaximumAngle = 265 }; - span35[1] = new GatheringLocation + num4++; + span138[num4] = new GatheringLocation { Position = new Vector3(-349.0388f, 89.44427f, -512.492f) }; @@ -18542,12 +21756,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; + Span span139 = CollectionsMarshal.AsSpan(list139); + index = 0; + span139[index] = "liza"; gatheringRoot15.Author = list139; - num = 1; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.None, null, null, 815) + index = 1; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + Span span140 = CollectionsMarshal.AsSpan(list140); + num = 0; + span140[num] = new QuestStep(EInteractionType.None, null, null, 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; @@ -18555,41 +21773,48 @@ public static class AssemblyGatheringLocationLoader num = 3; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - Span span36 = CollectionsMarshal.AsSpan(list141); - ref GatheringNodeGroup reference97 = ref span36[0]; + Span span141 = CollectionsMarshal.AsSpan(list141); + index = 0; + ref GatheringNodeGroup reference97 = ref span141[index]; GatheringNodeGroup gatheringNodeGroup43 = new GatheringNodeGroup(); num2 = 2; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span37 = CollectionsMarshal.AsSpan(list142); - ref GatheringNode reference98 = ref span37[0]; + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + ref GatheringNode reference98 = ref span142[num3]; GatheringNode obj55 = new GatheringNode { DataId = 34430u }; - num3 = 2; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - Span span38 = CollectionsMarshal.AsSpan(list143); - span38[0] = new GatheringLocation + num4 = 2; + List list143 = new List(num4); + CollectionsMarshal.SetCount(list143, num4); + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new GatheringLocation { Position = new Vector3(-449.9385f, -1.370689f, -409.258f) }; - span38[1] = new GatheringLocation + index2++; + span143[index2] = new GatheringLocation { Position = new Vector3(-445.7757f, -0.7637522f, -415.8121f) }; obj55.Locations = list143; reference98 = obj55; - ref GatheringNode reference99 = ref span37[1]; + num3++; + ref GatheringNode reference99 = ref span142[num3]; GatheringNode obj56 = new GatheringNode { DataId = 34429u }; - num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new GatheringLocation + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num4 = 0; + span144[num4] = new GatheringLocation { Position = new Vector3(-451.2528f, -1.577711f, -414.294f) }; @@ -18597,42 +21822,49 @@ public static class AssemblyGatheringLocationLoader reference99 = obj56; gatheringNodeGroup43.Nodes = list142; reference97 = gatheringNodeGroup43; - ref GatheringNodeGroup reference100 = ref span36[1]; + index++; + ref GatheringNodeGroup reference100 = ref span141[index]; GatheringNodeGroup gatheringNodeGroup44 = new GatheringNodeGroup(); - num2 = 2; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - Span span39 = CollectionsMarshal.AsSpan(list145); - ref GatheringNode reference101 = ref span39[0]; + num3 = 2; + List list145 = new List(num3); + CollectionsMarshal.SetCount(list145, num3); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + ref GatheringNode reference101 = ref span145[num2]; GatheringNode obj57 = new GatheringNode { DataId = 34427u }; - num3 = 1; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new GatheringLocation + num4 = 1; + List list146 = new List(num4); + CollectionsMarshal.SetCount(list146, num4); + Span span146 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span146[index2] = new GatheringLocation { Position = new Vector3(-346.0392f, 0.6433533f, -541.9421f) }; obj57.Locations = list146; reference101 = obj57; - ref GatheringNode reference102 = ref span39[1]; + num2++; + ref GatheringNode reference102 = ref span145[num2]; GatheringNode obj58 = new GatheringNode { DataId = 34428u }; - num3 = 2; - List list147 = new List(num3); - CollectionsMarshal.SetCount(list147, num3); - Span span40 = CollectionsMarshal.AsSpan(list147); - span40[0] = new GatheringLocation + index2 = 2; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num4 = 0; + span147[num4] = new GatheringLocation { Position = new Vector3(-326.9622f, 1.097262f, -537.5435f), MinimumAngle = 0, MaximumAngle = 220 }; - span40[1] = new GatheringLocation + num4++; + span147[num4] = new GatheringLocation { Position = new Vector3(-357.2281f, 0.4458784f, -513.3207f) }; @@ -18640,40 +21872,47 @@ public static class AssemblyGatheringLocationLoader reference102 = obj58; gatheringNodeGroup44.Nodes = list145; reference100 = gatheringNodeGroup44; - ref GatheringNodeGroup reference103 = ref span36[2]; + index++; + ref GatheringNodeGroup reference103 = ref span141[index]; GatheringNodeGroup gatheringNodeGroup45 = new GatheringNodeGroup(); num2 = 2; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span41 = CollectionsMarshal.AsSpan(list148); - ref GatheringNode reference104 = ref span41[0]; + Span span148 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + ref GatheringNode reference104 = ref span148[num3]; GatheringNode obj59 = new GatheringNode { DataId = 34431u }; - num3 = 1; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = new GatheringLocation + num4 = 1; + List list149 = new List(num4); + CollectionsMarshal.SetCount(list149, num4); + Span span149 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span149[index2] = new GatheringLocation { Position = new Vector3(-441.0019f, -5.337227f, -636.1525f) }; obj59.Locations = list149; reference104 = obj59; - ref GatheringNode reference105 = ref span41[1]; + num3++; + ref GatheringNode reference105 = ref span148[num3]; GatheringNode obj60 = new GatheringNode { DataId = 34432u }; - num3 = 2; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - Span span42 = CollectionsMarshal.AsSpan(list150); - span42[0] = new GatheringLocation + index2 = 2; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num4 = 0; + span150[num4] = new GatheringLocation { Position = new Vector3(-464.1121f, -5.420424f, -649.8243f) }; - span42[1] = new GatheringLocation + num4++; + span150[num4] = new GatheringLocation { Position = new Vector3(-436.4872f, -5.205373f, -638.8244f), MinimumAngle = -95, @@ -18686,45 +21925,53 @@ public static class AssemblyGatheringLocationLoader gatheringRoot15.Groups = list141; AddLocation(922, gatheringRoot15); GatheringRoot gatheringRoot16 = new GatheringRoot(); - num = 1; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "liza"; + index = 1; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + Span span151 = CollectionsMarshal.AsSpan(list151); + num = 0; + span151[num] = "liza"; gatheringRoot16.Author = list151; num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.None, null, null, 818) + Span span152 = CollectionsMarshal.AsSpan(list152); + index = 0; + span152[index] = new QuestStep(EInteractionType.None, null, null, 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; gatheringRoot16.Steps = list152; - num = 3; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span43 = CollectionsMarshal.AsSpan(list153); - ref GatheringNodeGroup reference106 = ref span43[0]; + index = 3; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + Span span153 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref GatheringNodeGroup reference106 = ref span153[num]; GatheringNodeGroup gatheringNodeGroup46 = new GatheringNodeGroup(); - num2 = 2; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - Span span44 = CollectionsMarshal.AsSpan(list154); - ref GatheringNode reference107 = ref span44[0]; + num3 = 2; + List list154 = new List(num3); + CollectionsMarshal.SetCount(list154, num3); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref GatheringNode reference107 = ref span154[num2]; GatheringNode obj61 = new GatheringNode { DataId = 34458u }; - num3 = 2; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span45 = CollectionsMarshal.AsSpan(list155); - span45[0] = new GatheringLocation + num4 = 2; + List list155 = new List(num4); + CollectionsMarshal.SetCount(list155, num4); + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new GatheringLocation { Position = new Vector3(44.00173f, 428.2346f, -656.6179f), MinimumAngle = -65, MaximumAngle = 10 }; - span45[1] = new GatheringLocation + index2++; + span155[index2] = new GatheringLocation { Position = new Vector3(16.55597f, 426.627f, -670.5577f), MinimumAngle = -25, @@ -18732,15 +21979,18 @@ public static class AssemblyGatheringLocationLoader }; obj61.Locations = list155; reference107 = obj61; - ref GatheringNode reference108 = ref span44[1]; + num2++; + ref GatheringNode reference108 = ref span154[num2]; GatheringNode obj62 = new GatheringNode { DataId = 34457u }; - num3 = 1; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = new GatheringLocation + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num4 = 0; + span156[num4] = new GatheringLocation { Position = new Vector3(37.23584f, 427.2601f, -653.0619f), MinimumAngle = 245, @@ -18750,42 +22000,49 @@ public static class AssemblyGatheringLocationLoader reference108 = obj62; gatheringNodeGroup46.Nodes = list154; reference106 = gatheringNodeGroup46; - ref GatheringNodeGroup reference109 = ref span43[1]; + num++; + ref GatheringNodeGroup reference109 = ref span153[num]; GatheringNodeGroup gatheringNodeGroup47 = new GatheringNodeGroup(); num2 = 2; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span46 = CollectionsMarshal.AsSpan(list157); - ref GatheringNode reference110 = ref span46[0]; + Span span157 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + ref GatheringNode reference110 = ref span157[num3]; GatheringNode obj63 = new GatheringNode { DataId = 34461u }; - num3 = 1; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - CollectionsMarshal.AsSpan(list158)[0] = new GatheringLocation + num4 = 1; + List list158 = new List(num4); + CollectionsMarshal.SetCount(list158, num4); + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new GatheringLocation { Position = new Vector3(-65.51347f, 400.3132f, -539.7745f) }; obj63.Locations = list158; reference110 = obj63; - ref GatheringNode reference111 = ref span46[1]; + num3++; + ref GatheringNode reference111 = ref span157[num3]; GatheringNode obj64 = new GatheringNode { DataId = 34462u }; - num3 = 2; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - Span span47 = CollectionsMarshal.AsSpan(list159); - span47[0] = new GatheringLocation + index2 = 2; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num4 = 0; + span159[num4] = new GatheringLocation { Position = new Vector3(-67.70384f, 400.7841f, -542.4638f), MinimumAngle = -85, MaximumAngle = 55 }; - span47[1] = new GatheringLocation + num4++; + span159[num4] = new GatheringLocation { Position = new Vector3(-55.10947f, 399.0878f, -536.9024f), MinimumDistance = 1f, @@ -18795,42 +22052,49 @@ public static class AssemblyGatheringLocationLoader reference111 = obj64; gatheringNodeGroup47.Nodes = list157; reference109 = gatheringNodeGroup47; - ref GatheringNodeGroup reference112 = ref span43[2]; + num++; + ref GatheringNodeGroup reference112 = ref span153[num]; GatheringNodeGroup gatheringNodeGroup48 = new GatheringNodeGroup(); - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span48 = CollectionsMarshal.AsSpan(list160); - ref GatheringNode reference113 = ref span48[0]; + num3 = 2; + List list160 = new List(num3); + CollectionsMarshal.SetCount(list160, num3); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + ref GatheringNode reference113 = ref span160[num2]; GatheringNode obj65 = new GatheringNode { DataId = 34459u }; - num3 = 1; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - CollectionsMarshal.AsSpan(list161)[0] = new GatheringLocation + num4 = 1; + List list161 = new List(num4); + CollectionsMarshal.SetCount(list161, num4); + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new GatheringLocation { Position = new Vector3(-216.086f, 426.8226f, -649.2361f) }; obj65.Locations = list161; reference113 = obj65; - ref GatheringNode reference114 = ref span48[1]; + num2++; + ref GatheringNode reference114 = ref span160[num2]; GatheringNode obj66 = new GatheringNode { DataId = 34460u }; - num3 = 2; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - Span span49 = CollectionsMarshal.AsSpan(list162); - span49[0] = new GatheringLocation + index2 = 2; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num4 = 0; + span162[num4] = new GatheringLocation { Position = new Vector3(-215.228f, 427.4708f, -653.9598f), MinimumAngle = -55, MaximumAngle = 135 }; - span49[1] = new GatheringLocation + num4++; + span162[num4] = new GatheringLocation { Position = new Vector3(-201.5463f, 427.882f, -655.0467f), MinimumAngle = -70, @@ -18846,12 +22110,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "liza"; + Span span163 = CollectionsMarshal.AsSpan(list163); + index = 0; + span163[index] = "liza"; gatheringRoot17.Author = list163; - num = 1; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.None, null, null, 818) + index = 1; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + Span span164 = CollectionsMarshal.AsSpan(list164); + num = 0; + span164[num] = new QuestStep(EInteractionType.None, null, null, 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; @@ -18859,29 +22127,33 @@ public static class AssemblyGatheringLocationLoader num = 3; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - Span span50 = CollectionsMarshal.AsSpan(list165); - ref GatheringNodeGroup reference115 = ref span50[0]; + Span span165 = CollectionsMarshal.AsSpan(list165); + index = 0; + ref GatheringNodeGroup reference115 = ref span165[index]; GatheringNodeGroup gatheringNodeGroup49 = new GatheringNodeGroup(); num2 = 2; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span51 = CollectionsMarshal.AsSpan(list166); - ref GatheringNode reference116 = ref span51[0]; + Span span166 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + ref GatheringNode reference116 = ref span166[num3]; GatheringNode obj67 = new GatheringNode { DataId = 34466u }; - num3 = 2; - List list167 = new List(num3); - CollectionsMarshal.SetCount(list167, num3); - Span span52 = CollectionsMarshal.AsSpan(list167); - span52[0] = new GatheringLocation + num4 = 2; + List list167 = new List(num4); + CollectionsMarshal.SetCount(list167, num4); + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new GatheringLocation { Position = new Vector3(403.2184f, 408.0598f, -755.5223f), MinimumAngle = 80, MaximumAngle = 190 }; - span52[1] = new GatheringLocation + index2++; + span167[index2] = new GatheringLocation { Position = new Vector3(438.6136f, 416.6389f, -758.985f), MinimumAngle = 110, @@ -18889,15 +22161,18 @@ public static class AssemblyGatheringLocationLoader }; obj67.Locations = list167; reference116 = obj67; - ref GatheringNode reference117 = ref span51[1]; + num3++; + ref GatheringNode reference117 = ref span166[num3]; GatheringNode obj68 = new GatheringNode { DataId = 34465u }; - num3 = 1; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = new GatheringLocation + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num4 = 0; + span168[num4] = new GatheringLocation { Position = new Vector3(415.5816f, 412.4482f, -758.7325f), MinimumAngle = 90, @@ -18907,21 +22182,25 @@ public static class AssemblyGatheringLocationLoader reference117 = obj68; gatheringNodeGroup49.Nodes = list166; reference115 = gatheringNodeGroup49; - ref GatheringNodeGroup reference118 = ref span50[1]; + index++; + ref GatheringNodeGroup reference118 = ref span165[index]; GatheringNodeGroup gatheringNodeGroup50 = new GatheringNodeGroup(); - num2 = 2; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - Span span53 = CollectionsMarshal.AsSpan(list169); - ref GatheringNode reference119 = ref span53[0]; + num3 = 2; + List list169 = new List(num3); + CollectionsMarshal.SetCount(list169, num3); + Span span169 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + ref GatheringNode reference119 = ref span169[num2]; GatheringNode obj69 = new GatheringNode { DataId = 34463u }; - num3 = 1; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - CollectionsMarshal.AsSpan(list170)[0] = new GatheringLocation + num4 = 1; + List list170 = new List(num4); + CollectionsMarshal.SetCount(list170, num4); + Span span170 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span170[index2] = new GatheringLocation { Position = new Vector3(415.8845f, 431.2351f, -896.2997f), MinimumAngle = -65, @@ -18929,22 +22208,25 @@ public static class AssemblyGatheringLocationLoader }; obj69.Locations = list170; reference119 = obj69; - ref GatheringNode reference120 = ref span53[1]; + num2++; + ref GatheringNode reference120 = ref span169[num2]; GatheringNode obj70 = new GatheringNode { DataId = 34464u }; - num3 = 2; - List list171 = new List(num3); - CollectionsMarshal.SetCount(list171, num3); - Span span54 = CollectionsMarshal.AsSpan(list171); - span54[0] = new GatheringLocation + index2 = 2; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + Span span171 = CollectionsMarshal.AsSpan(list171); + num4 = 0; + span171[num4] = new GatheringLocation { Position = new Vector3(400.7106f, 428.3826f, -893.9595f), MinimumAngle = -40, MaximumAngle = 50 }; - span54[1] = new GatheringLocation + num4++; + span171[num4] = new GatheringLocation { Position = new Vector3(431.8092f, 434.546f, -902.1445f), MinimumAngle = -95, @@ -18954,21 +22236,25 @@ public static class AssemblyGatheringLocationLoader reference120 = obj70; gatheringNodeGroup50.Nodes = list169; reference118 = gatheringNodeGroup50; - ref GatheringNodeGroup reference121 = ref span50[2]; + index++; + ref GatheringNodeGroup reference121 = ref span165[index]; GatheringNodeGroup gatheringNodeGroup51 = new GatheringNodeGroup(); num2 = 2; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span55 = CollectionsMarshal.AsSpan(list172); - ref GatheringNode reference122 = ref span55[0]; + Span span172 = CollectionsMarshal.AsSpan(list172); + num3 = 0; + ref GatheringNode reference122 = ref span172[num3]; GatheringNode obj71 = new GatheringNode { DataId = 34467u }; - num3 = 1; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - CollectionsMarshal.AsSpan(list173)[0] = new GatheringLocation + num4 = 1; + List list173 = new List(num4); + CollectionsMarshal.SetCount(list173, num4); + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new GatheringLocation { Position = new Vector3(284.0778f, 433.4644f, -916.6171f), MinimumAngle = -75, @@ -18976,22 +22262,25 @@ public static class AssemblyGatheringLocationLoader }; obj71.Locations = list173; reference122 = obj71; - ref GatheringNode reference123 = ref span55[1]; + num3++; + ref GatheringNode reference123 = ref span172[num3]; GatheringNode obj72 = new GatheringNode { DataId = 34468u }; - num3 = 2; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - Span span56 = CollectionsMarshal.AsSpan(list174); - span56[0] = new GatheringLocation + index2 = 2; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num4 = 0; + span174[num4] = new GatheringLocation { Position = new Vector3(278.6176f, 428.9509f, -904.3234f), MinimumAngle = 220, MaximumAngle = 345 }; - span56[1] = new GatheringLocation + num4++; + span174[num4] = new GatheringLocation { Position = new Vector3(305.7502f, 432.027f, -912.7272f), MinimumAngle = -80, @@ -19004,38 +22293,47 @@ public static class AssemblyGatheringLocationLoader gatheringRoot17.Groups = list165; AddLocation(928, gatheringRoot17); GatheringRoot gatheringRoot18 = new GatheringRoot(); - num = 1; - List list175 = new List(num); - CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "liza"; + index = 1; + List list175 = new List(index); + CollectionsMarshal.SetCount(list175, index); + Span span175 = CollectionsMarshal.AsSpan(list175); + num = 0; + span175[num] = "liza"; gatheringRoot18.Author = list175; num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.None, null, null, 1188) + Span span176 = CollectionsMarshal.AsSpan(list176); + index = 0; + span176[index] = new QuestStep(EInteractionType.None, null, null, 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; gatheringRoot18.Steps = list176; gatheringRoot18.FlyBetweenNodes = true; - num = 6; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span57 = CollectionsMarshal.AsSpan(list177); - ref GatheringNodeGroup reference124 = ref span57[0]; + index = 6; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + Span span177 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref GatheringNodeGroup reference124 = ref span177[num]; GatheringNodeGroup gatheringNodeGroup52 = new GatheringNodeGroup(); - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - ref GatheringNode reference125 = ref CollectionsMarshal.AsSpan(list178)[0]; + num3 = 1; + List list178 = new List(num3); + CollectionsMarshal.SetCount(list178, num3); + Span span178 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + ref GatheringNode reference125 = ref span178[num2]; GatheringNode obj73 = new GatheringNode { DataId = 34520u }; - num3 = 1; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = new GatheringLocation + num4 = 1; + List list179 = new List(num4); + CollectionsMarshal.SetCount(list179, num4); + Span span179 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span179[index2] = new GatheringLocation { Position = new Vector3(759.8123f, 26.14559f, -561.7435f) }; @@ -19043,20 +22341,25 @@ public static class AssemblyGatheringLocationLoader reference125 = obj73; gatheringNodeGroup52.Nodes = list178; reference124 = gatheringNodeGroup52; - ref GatheringNodeGroup reference126 = ref span57[1]; + num++; + ref GatheringNodeGroup reference126 = ref span177[num]; GatheringNodeGroup gatheringNodeGroup53 = new GatheringNodeGroup(); num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - ref GatheringNode reference127 = ref CollectionsMarshal.AsSpan(list180)[0]; + Span span180 = CollectionsMarshal.AsSpan(list180); + num3 = 0; + ref GatheringNode reference127 = ref span180[num3]; GatheringNode obj74 = new GatheringNode { DataId = 34521u }; - num3 = 1; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - CollectionsMarshal.AsSpan(list181)[0] = new GatheringLocation + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num4 = 0; + span181[num4] = new GatheringLocation { Position = new Vector3(791.0515f, 25.74059f, -545.9295f) }; @@ -19064,20 +22367,25 @@ public static class AssemblyGatheringLocationLoader reference127 = obj74; gatheringNodeGroup53.Nodes = list180; reference126 = gatheringNodeGroup53; - ref GatheringNodeGroup reference128 = ref span57[2]; + num++; + ref GatheringNodeGroup reference128 = ref span177[num]; GatheringNodeGroup gatheringNodeGroup54 = new GatheringNodeGroup(); - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - ref GatheringNode reference129 = ref CollectionsMarshal.AsSpan(list182)[0]; + num3 = 1; + List list182 = new List(num3); + CollectionsMarshal.SetCount(list182, num3); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + ref GatheringNode reference129 = ref span182[num2]; GatheringNode obj75 = new GatheringNode { DataId = 34522u }; - num3 = 1; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - CollectionsMarshal.AsSpan(list183)[0] = new GatheringLocation + num4 = 1; + List list183 = new List(num4); + CollectionsMarshal.SetCount(list183, num4); + Span span183 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span183[index2] = new GatheringLocation { Position = new Vector3(821.4519f, 28.47348f, -533.9607f) }; @@ -19085,20 +22393,25 @@ public static class AssemblyGatheringLocationLoader reference129 = obj75; gatheringNodeGroup54.Nodes = list182; reference128 = gatheringNodeGroup54; - ref GatheringNodeGroup reference130 = ref span57[3]; + num++; + ref GatheringNodeGroup reference130 = ref span177[num]; GatheringNodeGroup gatheringNodeGroup55 = new GatheringNodeGroup(); num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - ref GatheringNode reference131 = ref CollectionsMarshal.AsSpan(list184)[0]; + Span span184 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + ref GatheringNode reference131 = ref span184[num3]; GatheringNode obj76 = new GatheringNode { DataId = 34517u }; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new GatheringLocation + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num4 = 0; + span185[num4] = new GatheringLocation { Position = new Vector3(840.8483f, 34.05744f, -586.0533f) }; @@ -19106,20 +22419,25 @@ public static class AssemblyGatheringLocationLoader reference131 = obj76; gatheringNodeGroup55.Nodes = list184; reference130 = gatheringNodeGroup55; - ref GatheringNodeGroup reference132 = ref span57[4]; + num++; + ref GatheringNodeGroup reference132 = ref span177[num]; GatheringNodeGroup gatheringNodeGroup56 = new GatheringNodeGroup(); - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - ref GatheringNode reference133 = ref CollectionsMarshal.AsSpan(list186)[0]; + num3 = 1; + List list186 = new List(num3); + CollectionsMarshal.SetCount(list186, num3); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + ref GatheringNode reference133 = ref span186[num2]; GatheringNode obj77 = new GatheringNode { DataId = 34518u }; - num3 = 1; - List list187 = new List(num3); - CollectionsMarshal.SetCount(list187, num3); - CollectionsMarshal.AsSpan(list187)[0] = new GatheringLocation + num4 = 1; + List list187 = new List(num4); + CollectionsMarshal.SetCount(list187, num4); + Span span187 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span187[index2] = new GatheringLocation { Position = new Vector3(837.7969f, 33.55795f, -619.7623f) }; @@ -19127,20 +22445,25 @@ public static class AssemblyGatheringLocationLoader reference133 = obj77; gatheringNodeGroup56.Nodes = list186; reference132 = gatheringNodeGroup56; - ref GatheringNodeGroup reference134 = ref span57[5]; + num++; + ref GatheringNodeGroup reference134 = ref span177[num]; GatheringNodeGroup gatheringNodeGroup57 = new GatheringNodeGroup(); num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - ref GatheringNode reference135 = ref CollectionsMarshal.AsSpan(list188)[0]; + Span span188 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + ref GatheringNode reference135 = ref span188[num3]; GatheringNode obj78 = new GatheringNode { DataId = 34519u }; - num3 = 1; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = new GatheringLocation + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num4 = 0; + span189[num4] = new GatheringLocation { Position = new Vector3(784.021f, 24.16835f, -598.9781f) }; @@ -19154,12 +22477,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "liza"; + Span span190 = CollectionsMarshal.AsSpan(list190); + index = 0; + span190[index] = "liza"; gatheringRoot19.Author = list190; - num = 1; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + index = 1; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + Span span191 = CollectionsMarshal.AsSpan(list191); + num = 0; + span191[num] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -19168,21 +22495,26 @@ public static class AssemblyGatheringLocationLoader num = 6; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - Span span58 = CollectionsMarshal.AsSpan(list192); - ref GatheringNodeGroup reference136 = ref span58[0]; + Span span192 = CollectionsMarshal.AsSpan(list192); + index = 0; + ref GatheringNodeGroup reference136 = ref span192[index]; GatheringNodeGroup gatheringNodeGroup58 = new GatheringNodeGroup(); - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - ref GatheringNode reference137 = ref CollectionsMarshal.AsSpan(list193)[0]; + num3 = 1; + List list193 = new List(num3); + CollectionsMarshal.SetCount(list193, num3); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + ref GatheringNode reference137 = ref span193[num2]; GatheringNode obj79 = new GatheringNode { DataId = 34601u }; - num3 = 1; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - CollectionsMarshal.AsSpan(list194)[0] = new GatheringLocation + num4 = 1; + List list194 = new List(num4); + CollectionsMarshal.SetCount(list194, num4); + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = new GatheringLocation { Position = new Vector3(484.1779f, 16.59889f, -304.2079f), MinimumAngle = -185, @@ -19192,20 +22524,25 @@ public static class AssemblyGatheringLocationLoader reference137 = obj79; gatheringNodeGroup58.Nodes = list193; reference136 = gatheringNodeGroup58; - ref GatheringNodeGroup reference138 = ref span58[1]; + index++; + ref GatheringNodeGroup reference138 = ref span192[index]; GatheringNodeGroup gatheringNodeGroup59 = new GatheringNodeGroup(); num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - ref GatheringNode reference139 = ref CollectionsMarshal.AsSpan(list195)[0]; + Span span195 = CollectionsMarshal.AsSpan(list195); + num3 = 0; + ref GatheringNode reference139 = ref span195[num3]; GatheringNode obj80 = new GatheringNode { DataId = 34599u }; - num3 = 1; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = new GatheringLocation + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num4 = 0; + span196[num4] = new GatheringLocation { Position = new Vector3(509.181f, 21.64949f, -349.9709f), MinimumAngle = -25, @@ -19215,20 +22552,25 @@ public static class AssemblyGatheringLocationLoader reference139 = obj80; gatheringNodeGroup59.Nodes = list195; reference138 = gatheringNodeGroup59; - ref GatheringNodeGroup reference140 = ref span58[2]; + index++; + ref GatheringNodeGroup reference140 = ref span192[index]; GatheringNodeGroup gatheringNodeGroup60 = new GatheringNodeGroup(); - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - ref GatheringNode reference141 = ref CollectionsMarshal.AsSpan(list197)[0]; + num3 = 1; + List list197 = new List(num3); + CollectionsMarshal.SetCount(list197, num3); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + ref GatheringNode reference141 = ref span197[num2]; GatheringNode obj81 = new GatheringNode { DataId = 34597u }; - num3 = 1; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = new GatheringLocation + num4 = 1; + List list198 = new List(num4); + CollectionsMarshal.SetCount(list198, num4); + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span198[index2] = new GatheringLocation { Position = new Vector3(534.7657f, 19.33411f, -333.3713f), MinimumAngle = 155, @@ -19238,20 +22580,25 @@ public static class AssemblyGatheringLocationLoader reference141 = obj81; gatheringNodeGroup60.Nodes = list197; reference140 = gatheringNodeGroup60; - ref GatheringNodeGroup reference142 = ref span58[3]; + index++; + ref GatheringNodeGroup reference142 = ref span192[index]; GatheringNodeGroup gatheringNodeGroup61 = new GatheringNodeGroup(); num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - ref GatheringNode reference143 = ref CollectionsMarshal.AsSpan(list199)[0]; + Span span199 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + ref GatheringNode reference143 = ref span199[num3]; GatheringNode obj82 = new GatheringNode { DataId = 34600u }; - num3 = 1; - List list200 = new List(num3); - CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = new GatheringLocation + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num4 = 0; + span200[num4] = new GatheringLocation { Position = new Vector3(525.0291f, 11.97125f, -252.6589f), MinimumAngle = 145, @@ -19261,20 +22608,25 @@ public static class AssemblyGatheringLocationLoader reference143 = obj82; gatheringNodeGroup61.Nodes = list199; reference142 = gatheringNodeGroup61; - ref GatheringNodeGroup reference144 = ref span58[4]; + index++; + ref GatheringNodeGroup reference144 = ref span192[index]; GatheringNodeGroup gatheringNodeGroup62 = new GatheringNodeGroup(); - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - ref GatheringNode reference145 = ref CollectionsMarshal.AsSpan(list201)[0]; + num3 = 1; + List list201 = new List(num3); + CollectionsMarshal.SetCount(list201, num3); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + ref GatheringNode reference145 = ref span201[num2]; GatheringNode obj83 = new GatheringNode { DataId = 34598u }; - num3 = 1; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = new GatheringLocation + num4 = 1; + List list202 = new List(num4); + CollectionsMarshal.SetCount(list202, num4); + Span span202 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span202[index2] = new GatheringLocation { Position = new Vector3(518.5205f, 9.694121f, -223.9382f), MinimumAngle = 65, @@ -19284,20 +22636,25 @@ public static class AssemblyGatheringLocationLoader reference145 = obj83; gatheringNodeGroup62.Nodes = list201; reference144 = gatheringNodeGroup62; - ref GatheringNodeGroup reference146 = ref span58[5]; + index++; + ref GatheringNodeGroup reference146 = ref span192[index]; GatheringNodeGroup gatheringNodeGroup63 = new GatheringNodeGroup(); num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - ref GatheringNode reference147 = ref CollectionsMarshal.AsSpan(list203)[0]; + Span span203 = CollectionsMarshal.AsSpan(list203); + num3 = 0; + ref GatheringNode reference147 = ref span203[num3]; GatheringNode obj84 = new GatheringNode { DataId = 34602u }; - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = new GatheringLocation + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num4 = 0; + span204[num4] = new GatheringLocation { Position = new Vector3(480.2552f, 10.94543f, -234.4949f), MinimumAngle = 95, @@ -19310,38 +22667,47 @@ public static class AssemblyGatheringLocationLoader gatheringRoot19.Groups = list192; AddLocation(955, gatheringRoot19); GatheringRoot gatheringRoot20 = new GatheringRoot(); - num = 1; - List list205 = new List(num); - CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "liza"; + index = 1; + List list205 = new List(index); + CollectionsMarshal.SetCount(list205, index); + Span span205 = CollectionsMarshal.AsSpan(list205); + num = 0; + span205[num] = "liza"; gatheringRoot20.Author = list205; num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.None, null, null, 1187) + Span span206 = CollectionsMarshal.AsSpan(list206); + index = 0; + span206[index] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; gatheringRoot20.Steps = list206; gatheringRoot20.FlyBetweenNodes = false; - num = 6; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span59 = CollectionsMarshal.AsSpan(list207); - ref GatheringNodeGroup reference148 = ref span59[0]; + index = 6; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + Span span207 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref GatheringNodeGroup reference148 = ref span207[num]; GatheringNodeGroup gatheringNodeGroup64 = new GatheringNodeGroup(); - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - ref GatheringNode reference149 = ref CollectionsMarshal.AsSpan(list208)[0]; + num3 = 1; + List list208 = new List(num3); + CollectionsMarshal.SetCount(list208, num3); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + ref GatheringNode reference149 = ref span208[num2]; GatheringNode obj85 = new GatheringNode { DataId = 34646u }; - num3 = 1; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = new GatheringLocation + num4 = 1; + List list209 = new List(num4); + CollectionsMarshal.SetCount(list209, num4); + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new GatheringLocation { Position = new Vector3(227.4615f, -89.93336f, -225.4792f), MinimumAngle = 150, @@ -19351,20 +22717,25 @@ public static class AssemblyGatheringLocationLoader reference149 = obj85; gatheringNodeGroup64.Nodes = list208; reference148 = gatheringNodeGroup64; - ref GatheringNodeGroup reference150 = ref span59[1]; + num++; + ref GatheringNodeGroup reference150 = ref span207[num]; GatheringNodeGroup gatheringNodeGroup65 = new GatheringNodeGroup(); num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - ref GatheringNode reference151 = ref CollectionsMarshal.AsSpan(list210)[0]; + Span span210 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + ref GatheringNode reference151 = ref span210[num3]; GatheringNode obj86 = new GatheringNode { DataId = 34641u }; - num3 = 1; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new GatheringLocation + index2 = 1; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + Span span211 = CollectionsMarshal.AsSpan(list211); + num4 = 0; + span211[num4] = new GatheringLocation { Position = new Vector3(249.5856f, -97.79176f, -217.3474f), MinimumAngle = 135, @@ -19374,20 +22745,25 @@ public static class AssemblyGatheringLocationLoader reference151 = obj86; gatheringNodeGroup65.Nodes = list210; reference150 = gatheringNodeGroup65; - ref GatheringNodeGroup reference152 = ref span59[2]; + num++; + ref GatheringNodeGroup reference152 = ref span207[num]; GatheringNodeGroup gatheringNodeGroup66 = new GatheringNodeGroup(); - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - ref GatheringNode reference153 = ref CollectionsMarshal.AsSpan(list212)[0]; + num3 = 1; + List list212 = new List(num3); + CollectionsMarshal.SetCount(list212, num3); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + ref GatheringNode reference153 = ref span212[num2]; GatheringNode obj87 = new GatheringNode { DataId = 34642u }; - num3 = 1; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = new GatheringLocation + num4 = 1; + List list213 = new List(num4); + CollectionsMarshal.SetCount(list213, num4); + Span span213 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span213[index2] = new GatheringLocation { Position = new Vector3(257.8141f, -99.51778f, -217.7757f), MinimumAngle = 130, @@ -19397,21 +22773,26 @@ public static class AssemblyGatheringLocationLoader reference153 = obj87; gatheringNodeGroup66.Nodes = list212; reference152 = gatheringNodeGroup66; - ref GatheringNodeGroup reference154 = ref span59[3]; + num++; + ref GatheringNodeGroup reference154 = ref span207[num]; GatheringNodeGroup gatheringNodeGroup67 = new GatheringNodeGroup(); num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - ref GatheringNode reference155 = ref CollectionsMarshal.AsSpan(list214)[0]; + Span span214 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + ref GatheringNode reference155 = ref span214[num3]; GatheringNode obj88 = new GatheringNode { DataId = 34643u, Fly = true }; - num3 = 1; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = new GatheringLocation + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num4 = 0; + span215[num4] = new GatheringLocation { Position = new Vector3(274.7205f, -99.65348f, -201.6824f), MinimumAngle = 220, @@ -19421,20 +22802,25 @@ public static class AssemblyGatheringLocationLoader reference155 = obj88; gatheringNodeGroup67.Nodes = list214; reference154 = gatheringNodeGroup67; - ref GatheringNodeGroup reference156 = ref span59[4]; + num++; + ref GatheringNodeGroup reference156 = ref span207[num]; GatheringNodeGroup gatheringNodeGroup68 = new GatheringNodeGroup(); - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - ref GatheringNode reference157 = ref CollectionsMarshal.AsSpan(list216)[0]; + num3 = 1; + List list216 = new List(num3); + CollectionsMarshal.SetCount(list216, num3); + Span span216 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + ref GatheringNode reference157 = ref span216[num2]; GatheringNode obj89 = new GatheringNode { DataId = 34644u }; - num3 = 1; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = new GatheringLocation + num4 = 1; + List list217 = new List(num4); + CollectionsMarshal.SetCount(list217, num4); + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new GatheringLocation { Position = new Vector3(278.0735f, -101.2599f, -194.8121f), MinimumAngle = 200, @@ -19444,20 +22830,25 @@ public static class AssemblyGatheringLocationLoader reference157 = obj89; gatheringNodeGroup68.Nodes = list216; reference156 = gatheringNodeGroup68; - ref GatheringNodeGroup reference158 = ref span59[5]; + num++; + ref GatheringNodeGroup reference158 = ref span207[num]; GatheringNodeGroup gatheringNodeGroup69 = new GatheringNodeGroup(); num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - ref GatheringNode reference159 = ref CollectionsMarshal.AsSpan(list218)[0]; + Span span218 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + ref GatheringNode reference159 = ref span218[num3]; GatheringNode obj90 = new GatheringNode { DataId = 34645u }; - num3 = 1; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = new GatheringLocation + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + Span span219 = CollectionsMarshal.AsSpan(list219); + num4 = 0; + span219[num4] = new GatheringLocation { Position = new Vector3(308.4911f, -100.6525f, -174.6859f), MinimumAngle = 145, @@ -19473,12 +22864,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - CollectionsMarshal.AsSpan(list220)[0] = "liza"; + Span span220 = CollectionsMarshal.AsSpan(list220); + index = 0; + span220[index] = "liza"; gatheringRoot21.Author = list220; - num = 1; - List list221 = new List(num); - CollectionsMarshal.SetCount(list221, num); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + index = 1; + List list221 = new List(index); + CollectionsMarshal.SetCount(list221, index); + Span span221 = CollectionsMarshal.AsSpan(list221); + num = 0; + span221[num] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook }; @@ -19486,21 +22881,26 @@ public static class AssemblyGatheringLocationLoader num = 6; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - Span span60 = CollectionsMarshal.AsSpan(list222); - ref GatheringNodeGroup reference160 = ref span60[0]; + Span span222 = CollectionsMarshal.AsSpan(list222); + index = 0; + ref GatheringNodeGroup reference160 = ref span222[index]; GatheringNodeGroup gatheringNodeGroup70 = new GatheringNodeGroup(); - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - ref GatheringNode reference161 = ref CollectionsMarshal.AsSpan(list223)[0]; + num3 = 1; + List list223 = new List(num3); + CollectionsMarshal.SetCount(list223, num3); + Span span223 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + ref GatheringNode reference161 = ref span223[num2]; GatheringNode obj91 = new GatheringNode { DataId = 34721u }; - num3 = 1; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = new GatheringLocation + num4 = 1; + List list224 = new List(num4); + CollectionsMarshal.SetCount(list224, num4); + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new GatheringLocation { Position = new Vector3(663.934f, 25.09505f, -87.81284f), MinimumAngle = -30, @@ -19510,20 +22910,25 @@ public static class AssemblyGatheringLocationLoader reference161 = obj91; gatheringNodeGroup70.Nodes = list223; reference160 = gatheringNodeGroup70; - ref GatheringNodeGroup reference162 = ref span60[1]; + index++; + ref GatheringNodeGroup reference162 = ref span222[index]; GatheringNodeGroup gatheringNodeGroup71 = new GatheringNodeGroup(); num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - ref GatheringNode reference163 = ref CollectionsMarshal.AsSpan(list225)[0]; + Span span225 = CollectionsMarshal.AsSpan(list225); + num3 = 0; + ref GatheringNode reference163 = ref span225[num3]; GatheringNode obj92 = new GatheringNode { DataId = 34722u }; - num3 = 1; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = new GatheringLocation + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + Span span226 = CollectionsMarshal.AsSpan(list226); + num4 = 0; + span226[num4] = new GatheringLocation { Position = new Vector3(652.5192f, 21.87234f, -111.9597f), MinimumAngle = 195, @@ -19533,20 +22938,25 @@ public static class AssemblyGatheringLocationLoader reference163 = obj92; gatheringNodeGroup71.Nodes = list225; reference162 = gatheringNodeGroup71; - ref GatheringNodeGroup reference164 = ref span60[2]; + index++; + ref GatheringNodeGroup reference164 = ref span222[index]; GatheringNodeGroup gatheringNodeGroup72 = new GatheringNodeGroup(); - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - ref GatheringNode reference165 = ref CollectionsMarshal.AsSpan(list227)[0]; + num3 = 1; + List list227 = new List(num3); + CollectionsMarshal.SetCount(list227, num3); + Span span227 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + ref GatheringNode reference165 = ref span227[num2]; GatheringNode obj93 = new GatheringNode { DataId = 34723u }; - num3 = 1; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - CollectionsMarshal.AsSpan(list228)[0] = new GatheringLocation + num4 = 1; + List list228 = new List(num4); + CollectionsMarshal.SetCount(list228, num4); + Span span228 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span228[index2] = new GatheringLocation { Position = new Vector3(605.4673f, 22.40212f, -91.82993f), MinimumAngle = 220, @@ -19556,20 +22966,25 @@ public static class AssemblyGatheringLocationLoader reference165 = obj93; gatheringNodeGroup72.Nodes = list227; reference164 = gatheringNodeGroup72; - ref GatheringNodeGroup reference166 = ref span60[3]; + index++; + ref GatheringNodeGroup reference166 = ref span222[index]; GatheringNodeGroup gatheringNodeGroup73 = new GatheringNodeGroup(); num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - ref GatheringNode reference167 = ref CollectionsMarshal.AsSpan(list229)[0]; + Span span229 = CollectionsMarshal.AsSpan(list229); + num3 = 0; + ref GatheringNode reference167 = ref span229[num3]; GatheringNode obj94 = new GatheringNode { DataId = 34724u }; - num3 = 1; - List list230 = new List(num3); - CollectionsMarshal.SetCount(list230, num3); - CollectionsMarshal.AsSpan(list230)[0] = new GatheringLocation + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num4 = 0; + span230[num4] = new GatheringLocation { Position = new Vector3(547.7242f, 17.74087f, -106.2755f), MinimumAngle = 45, @@ -19579,20 +22994,25 @@ public static class AssemblyGatheringLocationLoader reference167 = obj94; gatheringNodeGroup73.Nodes = list229; reference166 = gatheringNodeGroup73; - ref GatheringNodeGroup reference168 = ref span60[4]; + index++; + ref GatheringNodeGroup reference168 = ref span222[index]; GatheringNodeGroup gatheringNodeGroup74 = new GatheringNodeGroup(); - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - ref GatheringNode reference169 = ref CollectionsMarshal.AsSpan(list231)[0]; + num3 = 1; + List list231 = new List(num3); + CollectionsMarshal.SetCount(list231, num3); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + ref GatheringNode reference169 = ref span231[num2]; GatheringNode obj95 = new GatheringNode { DataId = 34725u }; - num3 = 1; - List list232 = new List(num3); - CollectionsMarshal.SetCount(list232, num3); - CollectionsMarshal.AsSpan(list232)[0] = new GatheringLocation + num4 = 1; + List list232 = new List(num4); + CollectionsMarshal.SetCount(list232, num4); + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span232[index2] = new GatheringLocation { Position = new Vector3(534.3469f, 18.59627f, -78.46846f), MinimumAngle = -20, @@ -19602,20 +23022,25 @@ public static class AssemblyGatheringLocationLoader reference169 = obj95; gatheringNodeGroup74.Nodes = list231; reference168 = gatheringNodeGroup74; - ref GatheringNodeGroup reference170 = ref span60[5]; + index++; + ref GatheringNodeGroup reference170 = ref span222[index]; GatheringNodeGroup gatheringNodeGroup75 = new GatheringNodeGroup(); num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - ref GatheringNode reference171 = ref CollectionsMarshal.AsSpan(list233)[0]; + Span span233 = CollectionsMarshal.AsSpan(list233); + num3 = 0; + ref GatheringNode reference171 = ref span233[num3]; GatheringNode obj96 = new GatheringNode { DataId = 34726u }; - num3 = 1; - List list234 = new List(num3); - CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = new GatheringLocation + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + Span span234 = CollectionsMarshal.AsSpan(list234); + num4 = 0; + span234[num4] = new GatheringLocation { Position = new Vector3(485.1973f, 17.44523f, -79.501f), MinimumAngle = -55, @@ -19628,38 +23053,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot21.Groups = list222; AddLocation(970, gatheringRoot21); GatheringRoot gatheringRoot22 = new GatheringRoot(); - num = 1; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - CollectionsMarshal.AsSpan(list235)[0] = "liza"; + index = 1; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + Span span235 = CollectionsMarshal.AsSpan(list235); + num = 0; + span235[num] = "liza"; gatheringRoot22.Author = list235; num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.None, null, null, 1187) + Span span236 = CollectionsMarshal.AsSpan(list236); + index = 0; + span236[index] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; gatheringRoot22.Steps = list236; - num = 3; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - Span span61 = CollectionsMarshal.AsSpan(list237); - ref GatheringNodeGroup reference172 = ref span61[0]; + index = 3; + List list237 = new List(index); + CollectionsMarshal.SetCount(list237, index); + Span span237 = CollectionsMarshal.AsSpan(list237); + num = 0; + ref GatheringNodeGroup reference172 = ref span237[num]; GatheringNodeGroup gatheringNodeGroup76 = new GatheringNodeGroup(); - num2 = 2; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - Span span62 = CollectionsMarshal.AsSpan(list238); - ref GatheringNode reference173 = ref span62[0]; + num3 = 2; + List list238 = new List(num3); + CollectionsMarshal.SetCount(list238, num3); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + ref GatheringNode reference173 = ref span238[num2]; GatheringNode obj97 = new GatheringNode { DataId = 34749u }; - num3 = 1; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = new GatheringLocation + num4 = 1; + List list239 = new List(num4); + CollectionsMarshal.SetCount(list239, num4); + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new GatheringLocation { Position = new Vector3(-392.813f, -47.04364f, -386.862f), MinimumAngle = -10, @@ -19667,28 +23100,32 @@ public static class AssemblyGatheringLocationLoader }; obj97.Locations = list239; reference173 = obj97; - ref GatheringNode reference174 = ref span62[1]; + num2++; + ref GatheringNode reference174 = ref span238[num2]; GatheringNode obj98 = new GatheringNode { DataId = 34750u }; - num3 = 3; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - Span span63 = CollectionsMarshal.AsSpan(list240); - span63[0] = new GatheringLocation + index2 = 3; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num4 = 0; + span240[num4] = new GatheringLocation { Position = new Vector3(-402.8987f, -45.59287f, -390.7613f), MinimumAngle = 220, MaximumAngle = 305 }; - span63[1] = new GatheringLocation + num4++; + span240[num4] = new GatheringLocation { Position = new Vector3(-388.9036f, -46.86702f, -381.3985f), MinimumAngle = -50, MaximumAngle = 210 }; - span63[2] = new GatheringLocation + num4++; + span240[num4] = new GatheringLocation { Position = new Vector3(-394.2657f, -47.86026f, -394.9654f), MinimumAngle = -145, @@ -19698,21 +23135,25 @@ public static class AssemblyGatheringLocationLoader reference174 = obj98; gatheringNodeGroup76.Nodes = list238; reference172 = gatheringNodeGroup76; - ref GatheringNodeGroup reference175 = ref span61[1]; + num++; + ref GatheringNodeGroup reference175 = ref span237[num]; GatheringNodeGroup gatheringNodeGroup77 = new GatheringNodeGroup(); num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span64 = CollectionsMarshal.AsSpan(list241); - ref GatheringNode reference176 = ref span64[0]; + Span span241 = CollectionsMarshal.AsSpan(list241); + num3 = 0; + ref GatheringNode reference176 = ref span241[num3]; GatheringNode obj99 = new GatheringNode { DataId = 34753u }; - num3 = 1; - List list242 = new List(num3); - CollectionsMarshal.SetCount(list242, num3); - CollectionsMarshal.AsSpan(list242)[0] = new GatheringLocation + num4 = 1; + List list242 = new List(num4); + CollectionsMarshal.SetCount(list242, num4); + Span span242 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + span242[index2] = new GatheringLocation { Position = new Vector3(-541.7726f, -22.952f, -517.8604f), MinimumAngle = 215, @@ -19720,28 +23161,32 @@ public static class AssemblyGatheringLocationLoader }; obj99.Locations = list242; reference176 = obj99; - ref GatheringNode reference177 = ref span64[1]; + num3++; + ref GatheringNode reference177 = ref span241[num3]; GatheringNode obj100 = new GatheringNode { DataId = 34754u }; - num3 = 3; - List list243 = new List(num3); - CollectionsMarshal.SetCount(list243, num3); - Span span65 = CollectionsMarshal.AsSpan(list243); - span65[0] = new GatheringLocation + index2 = 3; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + Span span243 = CollectionsMarshal.AsSpan(list243); + num4 = 0; + span243[num4] = new GatheringLocation { Position = new Vector3(-522.9433f, -25.87319f, -537.3257f), MinimumAngle = 225, MaximumAngle = 360 }; - span65[1] = new GatheringLocation + num4++; + span243[num4] = new GatheringLocation { Position = new Vector3(-532.3487f, -22.79275f, -510.8069f), MinimumAngle = 135, MaximumAngle = 270 }; - span65[2] = new GatheringLocation + num4++; + span243[num4] = new GatheringLocation { Position = new Vector3(-536.2922f, -23.79476f, -526.0406f), MinimumAngle = -110, @@ -19751,21 +23196,25 @@ public static class AssemblyGatheringLocationLoader reference177 = obj100; gatheringNodeGroup77.Nodes = list241; reference175 = gatheringNodeGroup77; - ref GatheringNodeGroup reference178 = ref span61[2]; + num++; + ref GatheringNodeGroup reference178 = ref span237[num]; GatheringNodeGroup gatheringNodeGroup78 = new GatheringNodeGroup(); - num2 = 2; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - Span span66 = CollectionsMarshal.AsSpan(list244); - ref GatheringNode reference179 = ref span66[0]; + num3 = 2; + List list244 = new List(num3); + CollectionsMarshal.SetCount(list244, num3); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + ref GatheringNode reference179 = ref span244[num2]; GatheringNode obj101 = new GatheringNode { DataId = 34751u }; - num3 = 1; - List list245 = new List(num3); - CollectionsMarshal.SetCount(list245, num3); - CollectionsMarshal.AsSpan(list245)[0] = new GatheringLocation + num4 = 1; + List list245 = new List(num4); + CollectionsMarshal.SetCount(list245, num4); + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new GatheringLocation { Position = new Vector3(-448.8079f, -14.9586f, -658.0133f), MinimumAngle = -45, @@ -19773,28 +23222,32 @@ public static class AssemblyGatheringLocationLoader }; obj101.Locations = list245; reference179 = obj101; - ref GatheringNode reference180 = ref span66[1]; + num2++; + ref GatheringNode reference180 = ref span244[num2]; GatheringNode obj102 = new GatheringNode { DataId = 34752u }; - num3 = 3; - List list246 = new List(num3); - CollectionsMarshal.SetCount(list246, num3); - Span span67 = CollectionsMarshal.AsSpan(list246); - span67[0] = new GatheringLocation + index2 = 3; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num4 = 0; + span246[num4] = new GatheringLocation { Position = new Vector3(-452.2813f, -12.43015f, -665.0275f), MinimumAngle = 0, MaximumAngle = 150 }; - span67[1] = new GatheringLocation + num4++; + span246[num4] = new GatheringLocation { Position = new Vector3(-431.5875f, -16.68724f, -656.528f), MinimumAngle = -35, MaximumAngle = 90 }; - span67[2] = new GatheringLocation + num4++; + span246[num4] = new GatheringLocation { Position = new Vector3(-439.8079f, -16.67447f, -654.6749f), MinimumAngle = -45, @@ -19810,12 +23263,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - CollectionsMarshal.AsSpan(list247)[0] = "liza"; + Span span247 = CollectionsMarshal.AsSpan(list247); + index = 0; + span247[index] = "liza"; gatheringRoot23.Author = list247; - num = 1; - List list248 = new List(num); - CollectionsMarshal.SetCount(list248, num); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.None, null, null, 1187) + index = 1; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + Span span248 = CollectionsMarshal.AsSpan(list248); + num = 0; + span248[num] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; @@ -19823,22 +23280,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - Span span68 = CollectionsMarshal.AsSpan(list249); - ref GatheringNodeGroup reference181 = ref span68[0]; + Span span249 = CollectionsMarshal.AsSpan(list249); + index = 0; + ref GatheringNodeGroup reference181 = ref span249[index]; GatheringNodeGroup gatheringNodeGroup79 = new GatheringNodeGroup(); num2 = 2; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span69 = CollectionsMarshal.AsSpan(list250); - ref GatheringNode reference182 = ref span69[0]; + Span span250 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + ref GatheringNode reference182 = ref span250[num3]; GatheringNode obj103 = new GatheringNode { DataId = 34759u }; - num3 = 1; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = new GatheringLocation + num4 = 1; + List list251 = new List(num4); + CollectionsMarshal.SetCount(list251, num4); + Span span251 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span251[index2] = new GatheringLocation { Position = new Vector3(-120.3785f, 30.38074f, 396.7192f), MinimumAngle = 125, @@ -19846,28 +23307,32 @@ public static class AssemblyGatheringLocationLoader }; obj103.Locations = list251; reference182 = obj103; - ref GatheringNode reference183 = ref span69[1]; + num3++; + ref GatheringNode reference183 = ref span250[num3]; GatheringNode obj104 = new GatheringNode { DataId = 34760u }; - num3 = 3; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - Span span70 = CollectionsMarshal.AsSpan(list252); - span70[0] = new GatheringLocation + index2 = 3; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num4 = 0; + span252[num4] = new GatheringLocation { Position = new Vector3(-133.0528f, 32.64423f, 399.1742f), MinimumAngle = 85, MaximumAngle = 235 }; - span70[1] = new GatheringLocation + num4++; + span252[num4] = new GatheringLocation { Position = new Vector3(-108.2323f, 32.42883f, 407.0955f), MinimumAngle = 150, MaximumAngle = 290 }; - span70[2] = new GatheringLocation + num4++; + span252[num4] = new GatheringLocation { Position = new Vector3(-102.1287f, 35.23303f, 416.1898f), MinimumAngle = 155, @@ -19877,21 +23342,25 @@ public static class AssemblyGatheringLocationLoader reference183 = obj104; gatheringNodeGroup79.Nodes = list250; reference181 = gatheringNodeGroup79; - ref GatheringNodeGroup reference184 = ref span68[1]; + index++; + ref GatheringNodeGroup reference184 = ref span249[index]; GatheringNodeGroup gatheringNodeGroup80 = new GatheringNodeGroup(); - num2 = 2; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - Span span71 = CollectionsMarshal.AsSpan(list253); - ref GatheringNode reference185 = ref span71[0]; + num3 = 2; + List list253 = new List(num3); + CollectionsMarshal.SetCount(list253, num3); + Span span253 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + ref GatheringNode reference185 = ref span253[num2]; GatheringNode obj105 = new GatheringNode { DataId = 34755u }; - num3 = 1; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = new GatheringLocation + num4 = 1; + List list254 = new List(num4); + CollectionsMarshal.SetCount(list254, num4); + Span span254 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span254[index2] = new GatheringLocation { Position = new Vector3(-171.2521f, 46.49414f, 142.4124f), MinimumAngle = -80, @@ -19899,28 +23368,32 @@ public static class AssemblyGatheringLocationLoader }; obj105.Locations = list254; reference185 = obj105; - ref GatheringNode reference186 = ref span71[1]; + num2++; + ref GatheringNode reference186 = ref span253[num2]; GatheringNode obj106 = new GatheringNode { DataId = 34756u }; - num3 = 3; - List list255 = new List(num3); - CollectionsMarshal.SetCount(list255, num3); - Span span72 = CollectionsMarshal.AsSpan(list255); - span72[0] = new GatheringLocation + index2 = 3; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span255 = CollectionsMarshal.AsSpan(list255); + num4 = 0; + span255[num4] = new GatheringLocation { Position = new Vector3(-150.6633f, 47.30524f, 116.4768f), MinimumAngle = -135, MaximumAngle = 0 }; - span72[1] = new GatheringLocation + num4++; + span255[num4] = new GatheringLocation { Position = new Vector3(-164.8948f, 47.17537f, 138.1664f), MinimumAngle = -60, MaximumAngle = 20 }; - span72[2] = new GatheringLocation + num4++; + span255[num4] = new GatheringLocation { Position = new Vector3(-157.4637f, 46.7111f, 126.0358f), MinimumAngle = -90, @@ -19930,21 +23403,25 @@ public static class AssemblyGatheringLocationLoader reference186 = obj106; gatheringNodeGroup80.Nodes = list253; reference184 = gatheringNodeGroup80; - ref GatheringNodeGroup reference187 = ref span68[2]; + index++; + ref GatheringNodeGroup reference187 = ref span249[index]; GatheringNodeGroup gatheringNodeGroup81 = new GatheringNodeGroup(); num2 = 2; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span73 = CollectionsMarshal.AsSpan(list256); - ref GatheringNode reference188 = ref span73[0]; + Span span256 = CollectionsMarshal.AsSpan(list256); + num3 = 0; + ref GatheringNode reference188 = ref span256[num3]; GatheringNode obj107 = new GatheringNode { DataId = 34757u }; - num3 = 1; - List list257 = new List(num3); - CollectionsMarshal.SetCount(list257, num3); - CollectionsMarshal.AsSpan(list257)[0] = new GatheringLocation + num4 = 1; + List list257 = new List(num4); + CollectionsMarshal.SetCount(list257, num4); + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = new GatheringLocation { Position = new Vector3(-313.222f, 62.79089f, 335.1643f), MinimumAngle = 195, @@ -19952,28 +23429,32 @@ public static class AssemblyGatheringLocationLoader }; obj107.Locations = list257; reference188 = obj107; - ref GatheringNode reference189 = ref span73[1]; + num3++; + ref GatheringNode reference189 = ref span256[num3]; GatheringNode obj108 = new GatheringNode { DataId = 34758u }; - num3 = 3; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - Span span74 = CollectionsMarshal.AsSpan(list258); - span74[0] = new GatheringLocation + index2 = 3; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num4 = 0; + span258[num4] = new GatheringLocation { Position = new Vector3(-309.2621f, 71.25529f, 367.5573f), MinimumAngle = 190, MaximumAngle = 300 }; - span74[1] = new GatheringLocation + num4++; + span258[num4] = new GatheringLocation { Position = new Vector3(-323.9727f, 58.3564f, 295.3081f), MinimumAngle = 205, MaximumAngle = 325 }; - span74[2] = new GatheringLocation + num4++; + span258[num4] = new GatheringLocation { Position = new Vector3(-305.3915f, 72.10517f, 385.1654f), MinimumAngle = 210, @@ -19986,38 +23467,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot23.Groups = list249; AddLocation(975, gatheringRoot23); GatheringRoot gatheringRoot24 = new GatheringRoot(); - num = 1; - List list259 = new List(num); - CollectionsMarshal.SetCount(list259, num); - CollectionsMarshal.AsSpan(list259)[0] = "liza"; + index = 1; + List list259 = new List(index); + CollectionsMarshal.SetCount(list259, index); + Span span259 = CollectionsMarshal.AsSpan(list259); + num = 0; + span259[num] = "liza"; gatheringRoot24.Author = list259; num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.None, null, null, 1188) + Span span260 = CollectionsMarshal.AsSpan(list260); + index = 0; + span260[index] = new QuestStep(EInteractionType.None, null, null, 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; gatheringRoot24.Steps = list260; - num = 3; - List list261 = new List(num); - CollectionsMarshal.SetCount(list261, num); - Span span75 = CollectionsMarshal.AsSpan(list261); - ref GatheringNodeGroup reference190 = ref span75[0]; + index = 3; + List list261 = new List(index); + CollectionsMarshal.SetCount(list261, index); + Span span261 = CollectionsMarshal.AsSpan(list261); + num = 0; + ref GatheringNodeGroup reference190 = ref span261[num]; GatheringNodeGroup gatheringNodeGroup82 = new GatheringNodeGroup(); - num2 = 2; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - Span span76 = CollectionsMarshal.AsSpan(list262); - ref GatheringNode reference191 = ref span76[0]; + num3 = 2; + List list262 = new List(num3); + CollectionsMarshal.SetCount(list262, num3); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + ref GatheringNode reference191 = ref span262[num2]; GatheringNode obj109 = new GatheringNode { DataId = 34763u }; - num3 = 1; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = new GatheringLocation + num4 = 1; + List list263 = new List(num4); + CollectionsMarshal.SetCount(list263, num4); + Span span263 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span263[index2] = new GatheringLocation { Position = new Vector3(-628.5966f, 3.089153f, -417.3812f), MinimumAngle = -80, @@ -20025,28 +23514,32 @@ public static class AssemblyGatheringLocationLoader }; obj109.Locations = list263; reference191 = obj109; - ref GatheringNode reference192 = ref span76[1]; + num2++; + ref GatheringNode reference192 = ref span262[num2]; GatheringNode obj110 = new GatheringNode { DataId = 34764u }; - num3 = 3; - List list264 = new List(num3); - CollectionsMarshal.SetCount(list264, num3); - Span span77 = CollectionsMarshal.AsSpan(list264); - span77[0] = new GatheringLocation + index2 = 3; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num4 = 0; + span264[num4] = new GatheringLocation { Position = new Vector3(-644.7781f, 2.261729f, -416.9234f), MinimumAngle = -70, MaximumAngle = 100 }; - span77[1] = new GatheringLocation + num4++; + span264[num4] = new GatheringLocation { Position = new Vector3(-621.8856f, 3.151928f, -418.6934f), MinimumAngle = -85, MaximumAngle = 75 }; - span77[2] = new GatheringLocation + num4++; + span264[num4] = new GatheringLocation { Position = new Vector3(-632.9135f, 2.716663f, -417.9657f), MinimumAngle = -55, @@ -20056,34 +23549,39 @@ public static class AssemblyGatheringLocationLoader reference192 = obj110; gatheringNodeGroup82.Nodes = list262; reference190 = gatheringNodeGroup82; - ref GatheringNodeGroup reference193 = ref span75[1]; + num++; + ref GatheringNodeGroup reference193 = ref span261[num]; GatheringNodeGroup gatheringNodeGroup83 = new GatheringNodeGroup(); num2 = 2; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span78 = CollectionsMarshal.AsSpan(list265); - ref GatheringNode reference194 = ref span78[0]; + Span span265 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + ref GatheringNode reference194 = ref span265[num3]; GatheringNode obj111 = new GatheringNode { DataId = 34766u }; - num3 = 3; - List list266 = new List(num3); - CollectionsMarshal.SetCount(list266, num3); - Span span79 = CollectionsMarshal.AsSpan(list266); - span79[0] = new GatheringLocation + num4 = 3; + List list266 = new List(num4); + CollectionsMarshal.SetCount(list266, num4); + Span span266 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span266[index2] = new GatheringLocation { Position = new Vector3(-823.1537f, 7.570713f, -344.0435f), MinimumAngle = -150, MaximumAngle = -10 }; - span79[1] = new GatheringLocation + index2++; + span266[index2] = new GatheringLocation { Position = new Vector3(-824.2916f, 8.34999f, -311.9117f), MinimumAngle = 215, MaximumAngle = 345 }; - span79[2] = new GatheringLocation + index2++; + span266[index2] = new GatheringLocation { Position = new Vector3(-825.0306f, 9.265428f, -279.9193f), MinimumAngle = 205, @@ -20091,15 +23589,18 @@ public static class AssemblyGatheringLocationLoader }; obj111.Locations = list266; reference194 = obj111; - ref GatheringNode reference195 = ref span78[1]; + num3++; + ref GatheringNode reference195 = ref span265[num3]; GatheringNode obj112 = new GatheringNode { DataId = 34765u }; - num3 = 1; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = new GatheringLocation + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num4 = 0; + span267[num4] = new GatheringLocation { Position = new Vector3(-824.3366f, 7.884955f, -327.8148f), MinimumAngle = 205, @@ -20109,21 +23610,25 @@ public static class AssemblyGatheringLocationLoader reference195 = obj112; gatheringNodeGroup83.Nodes = list265; reference193 = gatheringNodeGroup83; - ref GatheringNodeGroup reference196 = ref span75[2]; + num++; + ref GatheringNodeGroup reference196 = ref span261[num]; GatheringNodeGroup gatheringNodeGroup84 = new GatheringNodeGroup(); - num2 = 2; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - Span span80 = CollectionsMarshal.AsSpan(list268); - ref GatheringNode reference197 = ref span80[0]; + num3 = 2; + List list268 = new List(num3); + CollectionsMarshal.SetCount(list268, num3); + Span span268 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + ref GatheringNode reference197 = ref span268[num2]; GatheringNode obj113 = new GatheringNode { DataId = 34761u }; - num3 = 1; - List list269 = new List(num3); - CollectionsMarshal.SetCount(list269, num3); - CollectionsMarshal.AsSpan(list269)[0] = new GatheringLocation + num4 = 1; + List list269 = new List(num4); + CollectionsMarshal.SetCount(list269, num4); + Span span269 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span269[index2] = new GatheringLocation { Position = new Vector3(-593.9269f, 3.169262f, -223.1938f), MinimumAngle = 65, @@ -20131,28 +23636,32 @@ public static class AssemblyGatheringLocationLoader }; obj113.Locations = list269; reference197 = obj113; - ref GatheringNode reference198 = ref span80[1]; + num2++; + ref GatheringNode reference198 = ref span268[num2]; GatheringNode obj114 = new GatheringNode { DataId = 34762u }; - num3 = 3; - List list270 = new List(num3); - CollectionsMarshal.SetCount(list270, num3); - Span span81 = CollectionsMarshal.AsSpan(list270); - span81[0] = new GatheringLocation + index2 = 3; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + Span span270 = CollectionsMarshal.AsSpan(list270); + num4 = 0; + span270[num4] = new GatheringLocation { Position = new Vector3(-584.8643f, 3.320522f, -227.3047f), MinimumAngle = 110, MaximumAngle = 245 }; - span81[1] = new GatheringLocation + num4++; + span270[num4] = new GatheringLocation { Position = new Vector3(-602.5651f, 3.251461f, -217.1539f), MinimumAngle = 70, MaximumAngle = 210 }; - span81[2] = new GatheringLocation + num4++; + span270[num4] = new GatheringLocation { Position = new Vector3(-613.296f, 2.557324f, -205.7018f), MinimumAngle = 50, @@ -20168,12 +23677,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - CollectionsMarshal.AsSpan(list271)[0] = "liza"; + Span span271 = CollectionsMarshal.AsSpan(list271); + index = 0; + span271[index] = "liza"; gatheringRoot25.Author = list271; - num = 1; - List list272 = new List(num); - CollectionsMarshal.SetCount(list272, num); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + index = 1; + List list272 = new List(index); + CollectionsMarshal.SetCount(list272, index); + Span span272 = CollectionsMarshal.AsSpan(list272); + num = 0; + span272[num] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -20181,35 +23694,40 @@ public static class AssemblyGatheringLocationLoader num = 3; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - Span span82 = CollectionsMarshal.AsSpan(list273); - ref GatheringNodeGroup reference199 = ref span82[0]; + Span span273 = CollectionsMarshal.AsSpan(list273); + index = 0; + ref GatheringNodeGroup reference199 = ref span273[index]; GatheringNodeGroup gatheringNodeGroup85 = new GatheringNodeGroup(); num2 = 2; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span83 = CollectionsMarshal.AsSpan(list274); - ref GatheringNode reference200 = ref span83[0]; + Span span274 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + ref GatheringNode reference200 = ref span274[num3]; GatheringNode obj115 = new GatheringNode { DataId = 34768u }; - num3 = 3; - List list275 = new List(num3); - CollectionsMarshal.SetCount(list275, num3); - Span span84 = CollectionsMarshal.AsSpan(list275); - span84[0] = new GatheringLocation + num4 = 3; + List list275 = new List(num4); + CollectionsMarshal.SetCount(list275, num4); + Span span275 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span275[index2] = new GatheringLocation { Position = new Vector3(-488.7683f, 7.979174f, -200.5838f), MinimumAngle = -35, MaximumAngle = 155 }; - span84[1] = new GatheringLocation + index2++; + span275[index2] = new GatheringLocation { Position = new Vector3(-482.2286f, 5.531401f, -196.1891f), MinimumAngle = -45, MaximumAngle = 85 }; - span84[2] = new GatheringLocation + index2++; + span275[index2] = new GatheringLocation { Position = new Vector3(-471.8323f, 5.569422f, -196.5274f), MinimumAngle = -95, @@ -20217,15 +23735,18 @@ public static class AssemblyGatheringLocationLoader }; obj115.Locations = list275; reference200 = obj115; - ref GatheringNode reference201 = ref span83[1]; + num3++; + ref GatheringNode reference201 = ref span274[num3]; GatheringNode obj116 = new GatheringNode { DataId = 34767u }; - num3 = 1; - List list276 = new List(num3); - CollectionsMarshal.SetCount(list276, num3); - CollectionsMarshal.AsSpan(list276)[0] = new GatheringLocation + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + Span span276 = CollectionsMarshal.AsSpan(list276); + num4 = 0; + span276[num4] = new GatheringLocation { Position = new Vector3(-476.9659f, 6.191905f, -196.2125f), MinimumAngle = -70, @@ -20235,34 +23756,39 @@ public static class AssemblyGatheringLocationLoader reference201 = obj116; gatheringNodeGroup85.Nodes = list274; reference199 = gatheringNodeGroup85; - ref GatheringNodeGroup reference202 = ref span82[1]; + index++; + ref GatheringNodeGroup reference202 = ref span273[index]; GatheringNodeGroup gatheringNodeGroup86 = new GatheringNodeGroup(); - num2 = 2; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - Span span85 = CollectionsMarshal.AsSpan(list277); - ref GatheringNode reference203 = ref span85[0]; + num3 = 2; + List list277 = new List(num3); + CollectionsMarshal.SetCount(list277, num3); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + ref GatheringNode reference203 = ref span277[num2]; GatheringNode obj117 = new GatheringNode { DataId = 34772u }; - num3 = 3; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - Span span86 = CollectionsMarshal.AsSpan(list278); - span86[0] = new GatheringLocation + num4 = 3; + List list278 = new List(num4); + CollectionsMarshal.SetCount(list278, num4); + Span span278 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span278[index2] = new GatheringLocation { Position = new Vector3(-484.7457f, -11.7739f, -35.59686f), MinimumAngle = 115, MaximumAngle = 270 }; - span86[1] = new GatheringLocation + index2++; + span278[index2] = new GatheringLocation { Position = new Vector3(-490.1306f, -12.35526f, -37.11329f), MinimumAngle = 105, MaximumAngle = 280 }; - span86[2] = new GatheringLocation + index2++; + span278[index2] = new GatheringLocation { Position = new Vector3(-465.1013f, -11.11267f, -37.65248f), MinimumAngle = 70, @@ -20272,15 +23798,18 @@ public static class AssemblyGatheringLocationLoader }; obj117.Locations = list278; reference203 = obj117; - ref GatheringNode reference204 = ref span85[1]; + num2++; + ref GatheringNode reference204 = ref span277[num2]; GatheringNode obj118 = new GatheringNode { DataId = 34771u }; - num3 = 1; - List list279 = new List(num3); - CollectionsMarshal.SetCount(list279, num3); - CollectionsMarshal.AsSpan(list279)[0] = new GatheringLocation + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + Span span279 = CollectionsMarshal.AsSpan(list279); + num4 = 0; + span279[num4] = new GatheringLocation { Position = new Vector3(-474.0215f, -11.19864f, -33.31685f), MinimumAngle = 105, @@ -20292,21 +23821,25 @@ public static class AssemblyGatheringLocationLoader reference204 = obj118; gatheringNodeGroup86.Nodes = list277; reference202 = gatheringNodeGroup86; - ref GatheringNodeGroup reference205 = ref span82[2]; + index++; + ref GatheringNodeGroup reference205 = ref span273[index]; GatheringNodeGroup gatheringNodeGroup87 = new GatheringNodeGroup(); num2 = 2; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - Span span87 = CollectionsMarshal.AsSpan(list280); - ref GatheringNode reference206 = ref span87[0]; + Span span280 = CollectionsMarshal.AsSpan(list280); + num3 = 0; + ref GatheringNode reference206 = ref span280[num3]; GatheringNode obj119 = new GatheringNode { DataId = 34769u }; - num3 = 1; - List list281 = new List(num3); - CollectionsMarshal.SetCount(list281, num3); - CollectionsMarshal.AsSpan(list281)[0] = new GatheringLocation + num4 = 1; + List list281 = new List(num4); + CollectionsMarshal.SetCount(list281, num4); + Span span281 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span281[index2] = new GatheringLocation { Position = new Vector3(-359.9215f, 7.800453f, -75.53547f), MinimumAngle = -5, @@ -20314,28 +23847,32 @@ public static class AssemblyGatheringLocationLoader }; obj119.Locations = list281; reference206 = obj119; - ref GatheringNode reference207 = ref span87[1]; + num3++; + ref GatheringNode reference207 = ref span280[num3]; GatheringNode obj120 = new GatheringNode { DataId = 34770u }; - num3 = 3; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - Span span88 = CollectionsMarshal.AsSpan(list282); - span88[0] = new GatheringLocation + index2 = 3; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + Span span282 = CollectionsMarshal.AsSpan(list282); + num4 = 0; + span282[num4] = new GatheringLocation { Position = new Vector3(-357.9739f, 6.927034f, -74.45865f), MinimumAngle = -20, MaximumAngle = 80 }; - span88[1] = new GatheringLocation + num4++; + span282[num4] = new GatheringLocation { Position = new Vector3(-362.3269f, 8.58064f, -80.35127f), MinimumAngle = 45, MaximumAngle = 105 }; - span88[2] = new GatheringLocation + num4++; + span282[num4] = new GatheringLocation { Position = new Vector3(-362.3572f, 9.697624f, -82.81331f), MinimumAngle = 25, @@ -20348,38 +23885,46 @@ public static class AssemblyGatheringLocationLoader gatheringRoot25.Groups = list273; AddLocation(977, gatheringRoot25); GatheringRoot gatheringRoot26 = new GatheringRoot(); - num = 1; - List list283 = new List(num); - CollectionsMarshal.SetCount(list283, num); - CollectionsMarshal.AsSpan(list283)[0] = "liza"; + index = 1; + List list283 = new List(index); + CollectionsMarshal.SetCount(list283, index); + Span span283 = CollectionsMarshal.AsSpan(list283); + num = 0; + span283[num] = "liza"; gatheringRoot26.Author = list283; num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.None, null, null, 1190) + Span span284 = CollectionsMarshal.AsSpan(list284); + index = 0; + span284[index] = new QuestStep(EInteractionType.None, null, null, 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan }; gatheringRoot26.Steps = list284; - num = 3; - List list285 = new List(num); - CollectionsMarshal.SetCount(list285, num); - Span span89 = CollectionsMarshal.AsSpan(list285); - ref GatheringNodeGroup reference208 = ref span89[0]; + index = 3; + List list285 = new List(index); + CollectionsMarshal.SetCount(list285, index); + Span span285 = CollectionsMarshal.AsSpan(list285); + num = 0; + ref GatheringNodeGroup reference208 = ref span285[num]; GatheringNodeGroup gatheringNodeGroup88 = new GatheringNodeGroup(); - num2 = 2; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - Span span90 = CollectionsMarshal.AsSpan(list286); - ref GatheringNode reference209 = ref span90[0]; + num3 = 2; + List list286 = new List(num3); + CollectionsMarshal.SetCount(list286, num3); + Span span286 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + ref GatheringNode reference209 = ref span286[num2]; GatheringNode obj121 = new GatheringNode { DataId = 34777u }; - num3 = 1; - List list287 = new List(num3); - CollectionsMarshal.SetCount(list287, num3); - CollectionsMarshal.AsSpan(list287)[0] = new GatheringLocation + num4 = 1; + List list287 = new List(num4); + CollectionsMarshal.SetCount(list287, num4); + Span span287 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + span287[index2] = new GatheringLocation { Position = new Vector3(395.7766f, -15.0432f, -793.4127f), MinimumAngle = 265, @@ -20387,28 +23932,32 @@ public static class AssemblyGatheringLocationLoader }; obj121.Locations = list287; reference209 = obj121; - ref GatheringNode reference210 = ref span90[1]; + num2++; + ref GatheringNode reference210 = ref span286[num2]; GatheringNode obj122 = new GatheringNode { DataId = 34778u }; - num3 = 3; - List list288 = new List(num3); - CollectionsMarshal.SetCount(list288, num3); - Span span91 = CollectionsMarshal.AsSpan(list288); - span91[0] = new GatheringLocation + index2 = 3; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + Span span288 = CollectionsMarshal.AsSpan(list288); + num4 = 0; + span288[num4] = new GatheringLocation { Position = new Vector3(372.0282f, -16.77722f, -785.652f), MinimumAngle = 255, MaximumAngle = 360 }; - span91[1] = new GatheringLocation + num4++; + span288[num4] = new GatheringLocation { Position = new Vector3(419.309f, -10.25133f, -784.8259f), MinimumAngle = -25, MaximumAngle = 85 }; - span91[2] = new GatheringLocation + num4++; + span288[num4] = new GatheringLocation { Position = new Vector3(410.6989f, -10.9656f, -790.8315f), MinimumAngle = -20, @@ -20418,34 +23967,39 @@ public static class AssemblyGatheringLocationLoader reference210 = obj122; gatheringNodeGroup88.Nodes = list286; reference208 = gatheringNodeGroup88; - ref GatheringNodeGroup reference211 = ref span89[1]; + num++; + ref GatheringNodeGroup reference211 = ref span285[num]; GatheringNodeGroup gatheringNodeGroup89 = new GatheringNodeGroup(); num2 = 2; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span92 = CollectionsMarshal.AsSpan(list289); - ref GatheringNode reference212 = ref span92[0]; + Span span289 = CollectionsMarshal.AsSpan(list289); + num3 = 0; + ref GatheringNode reference212 = ref span289[num3]; GatheringNode obj123 = new GatheringNode { DataId = 34774u }; - num3 = 3; - List list290 = new List(num3); - CollectionsMarshal.SetCount(list290, num3); - Span span93 = CollectionsMarshal.AsSpan(list290); - span93[0] = new GatheringLocation + num4 = 3; + List list290 = new List(num4); + CollectionsMarshal.SetCount(list290, num4); + Span span290 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span290[index2] = new GatheringLocation { Position = new Vector3(594.6921f, -6.424452f, -826.2967f), MinimumAngle = -90, MaximumAngle = 40 }; - span93[1] = new GatheringLocation + index2++; + span290[index2] = new GatheringLocation { Position = new Vector3(618.4105f, -4.948164f, -824.438f), MinimumAngle = -60, MaximumAngle = 60 }; - span93[2] = new GatheringLocation + index2++; + span290[index2] = new GatheringLocation { Position = new Vector3(625.7259f, -4.734236f, -825.9003f), MinimumAngle = -55, @@ -20453,15 +24007,18 @@ public static class AssemblyGatheringLocationLoader }; obj123.Locations = list290; reference212 = obj123; - ref GatheringNode reference213 = ref span92[1]; + num3++; + ref GatheringNode reference213 = ref span289[num3]; GatheringNode obj124 = new GatheringNode { DataId = 34773u }; - num3 = 1; - List list291 = new List(num3); - CollectionsMarshal.SetCount(list291, num3); - CollectionsMarshal.AsSpan(list291)[0] = new GatheringLocation + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + Span span291 = CollectionsMarshal.AsSpan(list291); + num4 = 0; + span291[num4] = new GatheringLocation { Position = new Vector3(606.1035f, -5.781946f, -827.3289f), MinimumAngle = -40, @@ -20471,34 +24028,39 @@ public static class AssemblyGatheringLocationLoader reference213 = obj124; gatheringNodeGroup89.Nodes = list289; reference211 = gatheringNodeGroup89; - ref GatheringNodeGroup reference214 = ref span89[2]; + num++; + ref GatheringNodeGroup reference214 = ref span285[num]; GatheringNodeGroup gatheringNodeGroup90 = new GatheringNodeGroup(); - num2 = 2; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - Span span94 = CollectionsMarshal.AsSpan(list292); - ref GatheringNode reference215 = ref span94[0]; + num3 = 2; + List list292 = new List(num3); + CollectionsMarshal.SetCount(list292, num3); + Span span292 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + ref GatheringNode reference215 = ref span292[num2]; GatheringNode obj125 = new GatheringNode { DataId = 34776u }; - num3 = 3; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - Span span95 = CollectionsMarshal.AsSpan(list293); - span95[0] = new GatheringLocation + num4 = 3; + List list293 = new List(num4); + CollectionsMarshal.SetCount(list293, num4); + Span span293 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span293[index2] = new GatheringLocation { Position = new Vector3(729.9794f, -6.851574f, -746.845f), MinimumAngle = 0, MaximumAngle = 155 }; - span95[1] = new GatheringLocation + index2++; + span293[index2] = new GatheringLocation { Position = new Vector3(730.2341f, -6.406585f, -724.3364f), MinimumAngle = 0, MaximumAngle = 165 }; - span95[2] = new GatheringLocation + index2++; + span293[index2] = new GatheringLocation { Position = new Vector3(732.0835f, -6.737461f, -738.1154f), MinimumAngle = 35, @@ -20506,15 +24068,18 @@ public static class AssemblyGatheringLocationLoader }; obj125.Locations = list293; reference215 = obj125; - ref GatheringNode reference216 = ref span94[1]; + num2++; + ref GatheringNode reference216 = ref span292[num2]; GatheringNode obj126 = new GatheringNode { DataId = 34775u }; - num3 = 1; - List list294 = new List(num3); - CollectionsMarshal.SetCount(list294, num3); - CollectionsMarshal.AsSpan(list294)[0] = new GatheringLocation + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span294 = CollectionsMarshal.AsSpan(list294); + num4 = 0; + span294[num4] = new GatheringLocation { Position = new Vector3(730.0588f, -6.698792f, -733.2113f), MinimumAngle = 25, @@ -20530,12 +24095,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "liza"; + Span span295 = CollectionsMarshal.AsSpan(list295); + index = 0; + span295[index] = "liza"; gatheringRoot27.Author = list295; - num = 1; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + index = 1; + List list296 = new List(index); + CollectionsMarshal.SetCount(list296, index); + Span span296 = CollectionsMarshal.AsSpan(list296); + num = 0; + span296[num] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -20543,22 +24112,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list297 = new List(num); CollectionsMarshal.SetCount(list297, num); - Span span96 = CollectionsMarshal.AsSpan(list297); - ref GatheringNodeGroup reference217 = ref span96[0]; + Span span297 = CollectionsMarshal.AsSpan(list297); + index = 0; + ref GatheringNodeGroup reference217 = ref span297[index]; GatheringNodeGroup gatheringNodeGroup91 = new GatheringNodeGroup(); num2 = 2; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span97 = CollectionsMarshal.AsSpan(list298); - ref GatheringNode reference218 = ref span97[0]; + Span span298 = CollectionsMarshal.AsSpan(list298); + num3 = 0; + ref GatheringNode reference218 = ref span298[num3]; GatheringNode obj127 = new GatheringNode { DataId = 34783u }; - num3 = 1; - List list299 = new List(num3); - CollectionsMarshal.SetCount(list299, num3); - CollectionsMarshal.AsSpan(list299)[0] = new GatheringLocation + num4 = 1; + List list299 = new List(num4); + CollectionsMarshal.SetCount(list299, num4); + Span span299 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span299[index2] = new GatheringLocation { Position = new Vector3(-273.0702f, 15.09387f, -443.001f), MinimumAngle = -15, @@ -20566,28 +24139,32 @@ public static class AssemblyGatheringLocationLoader }; obj127.Locations = list299; reference218 = obj127; - ref GatheringNode reference219 = ref span97[1]; + num3++; + ref GatheringNode reference219 = ref span298[num3]; GatheringNode obj128 = new GatheringNode { DataId = 34784u }; - num3 = 3; - List list300 = new List(num3); - CollectionsMarshal.SetCount(list300, num3); - Span span98 = CollectionsMarshal.AsSpan(list300); - span98[0] = new GatheringLocation + index2 = 3; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + Span span300 = CollectionsMarshal.AsSpan(list300); + num4 = 0; + span300[num4] = new GatheringLocation { Position = new Vector3(-268.5216f, 15.18526f, -438.1259f), MinimumAngle = -160, MaximumAngle = 100 }; - span98[1] = new GatheringLocation + num4++; + span300[num4] = new GatheringLocation { Position = new Vector3(-282.2694f, 15.46158f, -437.156f), MinimumAngle = 200, MaximumAngle = 350 }; - span98[2] = new GatheringLocation + num4++; + span300[num4] = new GatheringLocation { Position = new Vector3(-284.5246f, 15.61228f, -445.3587f), MinimumAngle = 155, @@ -20597,34 +24174,39 @@ public static class AssemblyGatheringLocationLoader reference219 = obj128; gatheringNodeGroup91.Nodes = list298; reference217 = gatheringNodeGroup91; - ref GatheringNodeGroup reference220 = ref span96[1]; + index++; + ref GatheringNodeGroup reference220 = ref span297[index]; GatheringNodeGroup gatheringNodeGroup92 = new GatheringNodeGroup(); - num2 = 2; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - Span span99 = CollectionsMarshal.AsSpan(list301); - ref GatheringNode reference221 = ref span99[0]; + num3 = 2; + List list301 = new List(num3); + CollectionsMarshal.SetCount(list301, num3); + Span span301 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + ref GatheringNode reference221 = ref span301[num2]; GatheringNode obj129 = new GatheringNode { DataId = 34782u }; - num3 = 3; - List list302 = new List(num3); - CollectionsMarshal.SetCount(list302, num3); - Span span100 = CollectionsMarshal.AsSpan(list302); - span100[0] = new GatheringLocation + num4 = 3; + List list302 = new List(num4); + CollectionsMarshal.SetCount(list302, num4); + Span span302 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span302[index2] = new GatheringLocation { Position = new Vector3(-431.8761f, 34.533f, -654.7189f), MinimumAngle = -100, MaximumAngle = 30 }; - span100[1] = new GatheringLocation + index2++; + span302[index2] = new GatheringLocation { Position = new Vector3(-430.493f, 32.50696f, -679.2305f), MinimumAngle = 170, MaximumAngle = 295 }; - span100[2] = new GatheringLocation + index2++; + span302[index2] = new GatheringLocation { Position = new Vector3(-435.1992f, 35.77378f, -649.1482f), MinimumAngle = -145, @@ -20632,15 +24214,18 @@ public static class AssemblyGatheringLocationLoader }; obj129.Locations = list302; reference221 = obj129; - ref GatheringNode reference222 = ref span99[1]; + num2++; + ref GatheringNode reference222 = ref span301[num2]; GatheringNode obj130 = new GatheringNode { DataId = 34781u }; - num3 = 1; - List list303 = new List(num3); - CollectionsMarshal.SetCount(list303, num3); - CollectionsMarshal.AsSpan(list303)[0] = new GatheringLocation + index2 = 1; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + Span span303 = CollectionsMarshal.AsSpan(list303); + num4 = 0; + span303[num4] = new GatheringLocation { Position = new Vector3(-427.0237f, 33.4935f, -668.6351f), MinimumAngle = 200, @@ -20650,21 +24235,25 @@ public static class AssemblyGatheringLocationLoader reference222 = obj130; gatheringNodeGroup92.Nodes = list301; reference220 = gatheringNodeGroup92; - ref GatheringNodeGroup reference223 = ref span96[2]; + index++; + ref GatheringNodeGroup reference223 = ref span297[index]; GatheringNodeGroup gatheringNodeGroup93 = new GatheringNodeGroup(); num2 = 2; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span101 = CollectionsMarshal.AsSpan(list304); - ref GatheringNode reference224 = ref span101[0]; + Span span304 = CollectionsMarshal.AsSpan(list304); + num3 = 0; + ref GatheringNode reference224 = ref span304[num3]; GatheringNode obj131 = new GatheringNode { DataId = 34779u }; - num3 = 1; - List list305 = new List(num3); - CollectionsMarshal.SetCount(list305, num3); - CollectionsMarshal.AsSpan(list305)[0] = new GatheringLocation + num4 = 1; + List list305 = new List(num4); + CollectionsMarshal.SetCount(list305, num4); + Span span305 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span305[index2] = new GatheringLocation { Position = new Vector3(-524.4308f, 33.95129f, -578.9917f), MinimumAngle = 250, @@ -20672,28 +24261,32 @@ public static class AssemblyGatheringLocationLoader }; obj131.Locations = list305; reference224 = obj131; - ref GatheringNode reference225 = ref span101[1]; + num3++; + ref GatheringNode reference225 = ref span304[num3]; GatheringNode obj132 = new GatheringNode { DataId = 34780u }; - num3 = 3; - List list306 = new List(num3); - CollectionsMarshal.SetCount(list306, num3); - Span span102 = CollectionsMarshal.AsSpan(list306); - span102[0] = new GatheringLocation + index2 = 3; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + Span span306 = CollectionsMarshal.AsSpan(list306); + num4 = 0; + span306[num4] = new GatheringLocation { Position = new Vector3(-533.9852f, 31.36117f, -558.8026f), MinimumAngle = -140, MaximumAngle = 0 }; - span102[1] = new GatheringLocation + num4++; + span306[num4] = new GatheringLocation { Position = new Vector3(-522.1197f, 36.22581f, -597.019f), MinimumAngle = 170, MaximumAngle = 320 }; - span102[2] = new GatheringLocation + num4++; + span306[num4] = new GatheringLocation { Position = new Vector3(-549.8734f, 28.65267f, -533.7023f), MinimumAngle = -130, @@ -20706,16 +24299,19 @@ public static class AssemblyGatheringLocationLoader gatheringRoot27.Groups = list297; AddLocation(979, gatheringRoot27); GatheringRoot gatheringRoot28 = new GatheringRoot(); - num = 1; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - CollectionsMarshal.AsSpan(list307)[0] = "liza"; + index = 1; + List list307 = new List(index); + CollectionsMarshal.SetCount(list307, index); + Span span307 = CollectionsMarshal.AsSpan(list307); + num = 0; + span307[num] = "liza"; gatheringRoot28.Author = list307; num = 3; List list308 = new List(num); CollectionsMarshal.SetCount(list308, num); - Span span103 = CollectionsMarshal.AsSpan(list308); - span103[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(417.1447f, -0.6f, -647.60004f), 1189) + Span span308 = CollectionsMarshal.AsSpan(list308); + index = 0; + span308[index] = new QuestStep(EInteractionType.Dive, null, new Vector3(417.1447f, -0.6f, -647.60004f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -20730,7 +24326,8 @@ public static class AssemblyGatheringLocationLoader } } }; - span103[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.1447f, 3f, -647.60004f), 1189) + index++; + span308[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.1447f, 3f, -647.60004f), 1189) { Fly = true, SkipConditions = new SkipConditions @@ -20741,31 +24338,36 @@ public static class AssemblyGatheringLocationLoader } } }; - span103[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(419.8578f, -32.6974f, -653.75275f), 1189) + index++; + span308[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(419.8578f, -32.6974f, -653.75275f), 1189) { DisableNavmesh = true, Fly = true }; gatheringRoot28.Steps = list308; - num = 3; - List list309 = new List(num); - CollectionsMarshal.SetCount(list309, num); - Span span104 = CollectionsMarshal.AsSpan(list309); - ref GatheringNodeGroup reference226 = ref span104[0]; + index = 3; + List list309 = new List(index); + CollectionsMarshal.SetCount(list309, index); + Span span309 = CollectionsMarshal.AsSpan(list309); + num = 0; + ref GatheringNodeGroup reference226 = ref span309[num]; GatheringNodeGroup gatheringNodeGroup94 = new GatheringNodeGroup(); - num2 = 2; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - Span span105 = CollectionsMarshal.AsSpan(list310); - ref GatheringNode reference227 = ref span105[0]; + num3 = 2; + List list310 = new List(num3); + CollectionsMarshal.SetCount(list310, num3); + Span span310 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + ref GatheringNode reference227 = ref span310[num2]; GatheringNode obj133 = new GatheringNode { DataId = 34787u }; - num3 = 1; - List list311 = new List(num3); - CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = new GatheringLocation + num4 = 1; + List list311 = new List(num4); + CollectionsMarshal.SetCount(list311, num4); + Span span311 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + span311[index2] = new GatheringLocation { Position = new Vector3(482.7197f, -38.14573f, -612.8046f), MinimumAngle = 100, @@ -20773,28 +24375,32 @@ public static class AssemblyGatheringLocationLoader }; obj133.Locations = list311; reference227 = obj133; - ref GatheringNode reference228 = ref span105[1]; + num2++; + ref GatheringNode reference228 = ref span310[num2]; GatheringNode obj134 = new GatheringNode { DataId = 34788u }; - num3 = 3; - List list312 = new List(num3); - CollectionsMarshal.SetCount(list312, num3); - Span span106 = CollectionsMarshal.AsSpan(list312); - span106[0] = new GatheringLocation + index2 = 3; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + Span span312 = CollectionsMarshal.AsSpan(list312); + num4 = 0; + span312[num4] = new GatheringLocation { Position = new Vector3(503.5652f, -41.40348f, -600.9512f), MinimumAngle = 185, MaximumAngle = 275 }; - span106[1] = new GatheringLocation + num4++; + span312[num4] = new GatheringLocation { Position = new Vector3(441.1733f, -36.58192f, -610.3331f), MinimumAngle = 120, MaximumAngle = 265 }; - span106[2] = new GatheringLocation + num4++; + span312[num4] = new GatheringLocation { Position = new Vector3(457.5484f, -40.0437f, -608.3312f), MinimumAngle = 115, @@ -20804,32 +24410,37 @@ public static class AssemblyGatheringLocationLoader reference228 = obj134; gatheringNodeGroup94.Nodes = list310; reference226 = gatheringNodeGroup94; - ref GatheringNodeGroup reference229 = ref span104[1]; + num++; + ref GatheringNodeGroup reference229 = ref span309[num]; GatheringNodeGroup gatheringNodeGroup95 = new GatheringNodeGroup(); num2 = 2; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - Span span107 = CollectionsMarshal.AsSpan(list313); - ref GatheringNode reference230 = ref span107[0]; + Span span313 = CollectionsMarshal.AsSpan(list313); + num3 = 0; + ref GatheringNode reference230 = ref span313[num3]; GatheringNode obj135 = new GatheringNode { DataId = 34790u }; - num3 = 3; - List list314 = new List(num3); - CollectionsMarshal.SetCount(list314, num3); - Span span108 = CollectionsMarshal.AsSpan(list314); - span108[0] = new GatheringLocation + num4 = 3; + List list314 = new List(num4); + CollectionsMarshal.SetCount(list314, num4); + Span span314 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span314[index2] = new GatheringLocation { Position = new Vector3(584.035f, -49.84215f, -759.925f), MinimumAngle = 115, MaximumAngle = 240 }; - span108[1] = new GatheringLocation + index2++; + span314[index2] = new GatheringLocation { Position = new Vector3(624.3585f, -61.07853f, -748.2542f) }; - span108[2] = new GatheringLocation + index2++; + span314[index2] = new GatheringLocation { Position = new Vector3(605.4849f, -59.0002f, -772.6049f), MinimumAngle = 175, @@ -20837,15 +24448,18 @@ public static class AssemblyGatheringLocationLoader }; obj135.Locations = list314; reference230 = obj135; - ref GatheringNode reference231 = ref span107[1]; + num3++; + ref GatheringNode reference231 = ref span313[num3]; GatheringNode obj136 = new GatheringNode { DataId = 34789u }; - num3 = 1; - List list315 = new List(num3); - CollectionsMarshal.SetCount(list315, num3); - CollectionsMarshal.AsSpan(list315)[0] = new GatheringLocation + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + Span span315 = CollectionsMarshal.AsSpan(list315); + num4 = 0; + span315[num4] = new GatheringLocation { Position = new Vector3(601.6854f, -53.68699f, -741.3439f), MinimumAngle = 185, @@ -20855,21 +24469,25 @@ public static class AssemblyGatheringLocationLoader reference231 = obj136; gatheringNodeGroup95.Nodes = list313; reference229 = gatheringNodeGroup95; - ref GatheringNodeGroup reference232 = ref span104[2]; + num++; + ref GatheringNodeGroup reference232 = ref span309[num]; GatheringNodeGroup gatheringNodeGroup96 = new GatheringNodeGroup(); - num2 = 2; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - Span span109 = CollectionsMarshal.AsSpan(list316); - ref GatheringNode reference233 = ref span109[0]; + num3 = 2; + List list316 = new List(num3); + CollectionsMarshal.SetCount(list316, num3); + Span span316 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + ref GatheringNode reference233 = ref span316[num2]; GatheringNode obj137 = new GatheringNode { DataId = 34785u }; - num3 = 1; - List list317 = new List(num3); - CollectionsMarshal.SetCount(list317, num3); - CollectionsMarshal.AsSpan(list317)[0] = new GatheringLocation + num4 = 1; + List list317 = new List(num4); + CollectionsMarshal.SetCount(list317, num4); + Span span317 = CollectionsMarshal.AsSpan(list317); + index2 = 0; + span317[index2] = new GatheringLocation { Position = new Vector3(754.1298f, -57.09224f, -571.5818f), MinimumAngle = 100, @@ -20877,28 +24495,32 @@ public static class AssemblyGatheringLocationLoader }; obj137.Locations = list317; reference233 = obj137; - ref GatheringNode reference234 = ref span109[1]; + num2++; + ref GatheringNode reference234 = ref span316[num2]; GatheringNode obj138 = new GatheringNode { DataId = 34786u }; - num3 = 3; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - Span span110 = CollectionsMarshal.AsSpan(list318); - span110[0] = new GatheringLocation + index2 = 3; + List list318 = new List(index2); + CollectionsMarshal.SetCount(list318, index2); + Span span318 = CollectionsMarshal.AsSpan(list318); + num4 = 0; + span318[num4] = new GatheringLocation { Position = new Vector3(734.2795f, -55.15427f, -573.6763f), MinimumAngle = 90, MaximumAngle = 260 }; - span110[1] = new GatheringLocation + num4++; + span318[num4] = new GatheringLocation { Position = new Vector3(714.931f, -53.3118f, -569.4072f), MinimumAngle = 115, MaximumAngle = 250 }; - span110[2] = new GatheringLocation + num4++; + span318[num4] = new GatheringLocation { Position = new Vector3(773.049f, -55.97124f, -569.7167f), MinimumAngle = 105, @@ -20914,12 +24536,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list319 = new List(num); CollectionsMarshal.SetCount(list319, num); - CollectionsMarshal.AsSpan(list319)[0] = "liza"; + Span span319 = CollectionsMarshal.AsSpan(list319); + index = 0; + span319[index] = "liza"; gatheringRoot29.Author = list319; - num = 1; - List list320 = new List(num); - CollectionsMarshal.SetCount(list320, num); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.None, null, null, 1187) + index = 1; + List list320 = new List(index); + CollectionsMarshal.SetCount(list320, index); + Span span320 = CollectionsMarshal.AsSpan(list320); + num = 0; + span320[num] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; @@ -20927,22 +24553,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - Span span111 = CollectionsMarshal.AsSpan(list321); - ref GatheringNodeGroup reference235 = ref span111[0]; + Span span321 = CollectionsMarshal.AsSpan(list321); + index = 0; + ref GatheringNodeGroup reference235 = ref span321[index]; GatheringNodeGroup gatheringNodeGroup97 = new GatheringNodeGroup(); num2 = 2; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - Span span112 = CollectionsMarshal.AsSpan(list322); - ref GatheringNode reference236 = ref span112[0]; + Span span322 = CollectionsMarshal.AsSpan(list322); + num3 = 0; + ref GatheringNode reference236 = ref span322[num3]; GatheringNode obj139 = new GatheringNode { DataId = 34809u }; - num3 = 1; - List list323 = new List(num3); - CollectionsMarshal.SetCount(list323, num3); - CollectionsMarshal.AsSpan(list323)[0] = new GatheringLocation + num4 = 1; + List list323 = new List(num4); + CollectionsMarshal.SetCount(list323, num4); + Span span323 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span323[index2] = new GatheringLocation { Position = new Vector3(503.1253f, 113.6339f, 332.9355f), MinimumAngle = 35, @@ -20950,28 +24580,32 @@ public static class AssemblyGatheringLocationLoader }; obj139.Locations = list323; reference236 = obj139; - ref GatheringNode reference237 = ref span112[1]; + num3++; + ref GatheringNode reference237 = ref span322[num3]; GatheringNode obj140 = new GatheringNode { DataId = 34810u }; - num3 = 3; - List list324 = new List(num3); - CollectionsMarshal.SetCount(list324, num3); - Span span113 = CollectionsMarshal.AsSpan(list324); - span113[0] = new GatheringLocation + index2 = 3; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + Span span324 = CollectionsMarshal.AsSpan(list324); + num4 = 0; + span324[num4] = new GatheringLocation { Position = new Vector3(516.6899f, 116.4842f, 326.5524f), MinimumAngle = 20, MaximumAngle = 160 }; - span113[1] = new GatheringLocation + num4++; + span324[num4] = new GatheringLocation { Position = new Vector3(505.7916f, 114.2773f, 342.2974f), MinimumAngle = 0, MaximumAngle = 100 }; - span113[2] = new GatheringLocation + num4++; + span324[num4] = new GatheringLocation { Position = new Vector3(515.9227f, 114.58f, 317.4333f), MinimumAngle = 0, @@ -20981,21 +24615,25 @@ public static class AssemblyGatheringLocationLoader reference237 = obj140; gatheringNodeGroup97.Nodes = list322; reference235 = gatheringNodeGroup97; - ref GatheringNodeGroup reference238 = ref span111[1]; + index++; + ref GatheringNodeGroup reference238 = ref span321[index]; GatheringNodeGroup gatheringNodeGroup98 = new GatheringNodeGroup(); - num2 = 2; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - Span span114 = CollectionsMarshal.AsSpan(list325); - ref GatheringNode reference239 = ref span114[0]; + num3 = 2; + List list325 = new List(num3); + CollectionsMarshal.SetCount(list325, num3); + Span span325 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + ref GatheringNode reference239 = ref span325[num2]; GatheringNode obj141 = new GatheringNode { DataId = 34813u }; - num3 = 1; - List list326 = new List(num3); - CollectionsMarshal.SetCount(list326, num3); - CollectionsMarshal.AsSpan(list326)[0] = new GatheringLocation + num4 = 1; + List list326 = new List(num4); + CollectionsMarshal.SetCount(list326, num4); + Span span326 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span326[index2] = new GatheringLocation { Position = new Vector3(370.5957f, 64.7135f, 158.4955f), MinimumAngle = -45, @@ -21003,28 +24641,32 @@ public static class AssemblyGatheringLocationLoader }; obj141.Locations = list326; reference239 = obj141; - ref GatheringNode reference240 = ref span114[1]; + num2++; + ref GatheringNode reference240 = ref span325[num2]; GatheringNode obj142 = new GatheringNode { DataId = 34814u }; - num3 = 3; - List list327 = new List(num3); - CollectionsMarshal.SetCount(list327, num3); - Span span115 = CollectionsMarshal.AsSpan(list327); - span115[0] = new GatheringLocation + index2 = 3; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + Span span327 = CollectionsMarshal.AsSpan(list327); + num4 = 0; + span327[num4] = new GatheringLocation { Position = new Vector3(363.6682f, 64.62195f, 152.1782f), MinimumAngle = 20, MaximumAngle = 140 }; - span115[1] = new GatheringLocation + num4++; + span327[num4] = new GatheringLocation { Position = new Vector3(394.519f, 63.70097f, 168.7538f), MinimumAngle = -125, MaximumAngle = 15 }; - span115[2] = new GatheringLocation + num4++; + span327[num4] = new GatheringLocation { Position = new Vector3(386.34f, 63.7528f, 166.915f), MinimumAngle = 15, @@ -21034,34 +24676,39 @@ public static class AssemblyGatheringLocationLoader reference240 = obj142; gatheringNodeGroup98.Nodes = list325; reference238 = gatheringNodeGroup98; - ref GatheringNodeGroup reference241 = ref span111[2]; + index++; + ref GatheringNodeGroup reference241 = ref span321[index]; GatheringNodeGroup gatheringNodeGroup99 = new GatheringNodeGroup(); num2 = 2; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - Span span116 = CollectionsMarshal.AsSpan(list328); - ref GatheringNode reference242 = ref span116[0]; + Span span328 = CollectionsMarshal.AsSpan(list328); + num3 = 0; + ref GatheringNode reference242 = ref span328[num3]; GatheringNode obj143 = new GatheringNode { DataId = 34812u }; - num3 = 3; - List list329 = new List(num3); - CollectionsMarshal.SetCount(list329, num3); - Span span117 = CollectionsMarshal.AsSpan(list329); - span117[0] = new GatheringLocation + num4 = 3; + List list329 = new List(num4); + CollectionsMarshal.SetCount(list329, num4); + Span span329 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + span329[index2] = new GatheringLocation { Position = new Vector3(328.846f, 79.13469f, 434.0204f), MinimumAngle = 175, MaximumAngle = 280 }; - span117[1] = new GatheringLocation + index2++; + span329[index2] = new GatheringLocation { Position = new Vector3(352.4181f, 81.39249f, 446.0517f), MinimumAngle = 180, MaximumAngle = 260 }; - span117[2] = new GatheringLocation + index2++; + span329[index2] = new GatheringLocation { Position = new Vector3(336.5682f, 80.73547f, 443.9305f), MinimumAngle = 120, @@ -21069,15 +24716,18 @@ public static class AssemblyGatheringLocationLoader }; obj143.Locations = list329; reference242 = obj143; - ref GatheringNode reference243 = ref span116[1]; + num3++; + ref GatheringNode reference243 = ref span328[num3]; GatheringNode obj144 = new GatheringNode { DataId = 34811u }; - num3 = 1; - List list330 = new List(num3); - CollectionsMarshal.SetCount(list330, num3); - CollectionsMarshal.AsSpan(list330)[0] = new GatheringLocation + index2 = 1; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + Span span330 = CollectionsMarshal.AsSpan(list330); + num4 = 0; + span330[num4] = new GatheringLocation { Position = new Vector3(341.6647f, 80.125f, 436.6368f), MinimumAngle = 100, @@ -21090,35 +24740,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot29.Groups = list321; AddLocation(984, gatheringRoot29); GatheringRoot gatheringRoot30 = new GatheringRoot(); - num = 1; - List list331 = new List(num); - CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "liza"; + index = 1; + List list331 = new List(index); + CollectionsMarshal.SetCount(list331, index); + Span span331 = CollectionsMarshal.AsSpan(list331); + num = 0; + span331[num] = "liza"; gatheringRoot30.Author = list331; num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.None, null, null, 1190); + Span span332 = CollectionsMarshal.AsSpan(list332); + index = 0; + span332[index] = new QuestStep(EInteractionType.None, null, null, 1190); gatheringRoot30.Steps = list332; - num = 3; - List list333 = new List(num); - CollectionsMarshal.SetCount(list333, num); - Span span118 = CollectionsMarshal.AsSpan(list333); - ref GatheringNodeGroup reference244 = ref span118[0]; + index = 3; + List list333 = new List(index); + CollectionsMarshal.SetCount(list333, index); + Span span333 = CollectionsMarshal.AsSpan(list333); + num = 0; + ref GatheringNodeGroup reference244 = ref span333[num]; GatheringNodeGroup gatheringNodeGroup100 = new GatheringNodeGroup(); - num2 = 2; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - Span span119 = CollectionsMarshal.AsSpan(list334); - ref GatheringNode reference245 = ref span119[0]; + num3 = 2; + List list334 = new List(num3); + CollectionsMarshal.SetCount(list334, num3); + Span span334 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + ref GatheringNode reference245 = ref span334[num2]; GatheringNode obj145 = new GatheringNode { DataId = 34819u }; - num3 = 1; - List list335 = new List(num3); - CollectionsMarshal.SetCount(list335, num3); - CollectionsMarshal.AsSpan(list335)[0] = new GatheringLocation + num4 = 1; + List list335 = new List(num4); + CollectionsMarshal.SetCount(list335, num4); + Span span335 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span335[index2] = new GatheringLocation { Position = new Vector3(-86.69859f, -8.177663f, 572.7712f), MinimumAngle = 45, @@ -21126,28 +24784,32 @@ public static class AssemblyGatheringLocationLoader }; obj145.Locations = list335; reference245 = obj145; - ref GatheringNode reference246 = ref span119[1]; + num2++; + ref GatheringNode reference246 = ref span334[num2]; GatheringNode obj146 = new GatheringNode { DataId = 34820u }; - num3 = 3; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - Span span120 = CollectionsMarshal.AsSpan(list336); - span120[0] = new GatheringLocation + index2 = 3; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + Span span336 = CollectionsMarshal.AsSpan(list336); + num4 = 0; + span336[num4] = new GatheringLocation { Position = new Vector3(-83.81214f, -8.291362f, 581.595f), MinimumAngle = 80, MaximumAngle = 175 }; - span120[1] = new GatheringLocation + num4++; + span336[num4] = new GatheringLocation { Position = new Vector3(-88.70462f, -8.511888f, 578.6565f), MinimumAngle = 35, MaximumAngle = 150 }; - span120[2] = new GatheringLocation + num4++; + span336[num4] = new GatheringLocation { Position = new Vector3(-81.00482f, -7.330131f, 574.7444f), MinimumAngle = 150, @@ -21157,21 +24819,25 @@ public static class AssemblyGatheringLocationLoader reference246 = obj146; gatheringNodeGroup100.Nodes = list334; reference244 = gatheringNodeGroup100; - ref GatheringNodeGroup reference247 = ref span118[1]; + num++; + ref GatheringNodeGroup reference247 = ref span333[num]; GatheringNodeGroup gatheringNodeGroup101 = new GatheringNodeGroup(); num2 = 2; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - Span span121 = CollectionsMarshal.AsSpan(list337); - ref GatheringNode reference248 = ref span121[0]; + Span span337 = CollectionsMarshal.AsSpan(list337); + num3 = 0; + ref GatheringNode reference248 = ref span337[num3]; GatheringNode obj147 = new GatheringNode { DataId = 34817u }; - num3 = 1; - List list338 = new List(num3); - CollectionsMarshal.SetCount(list338, num3); - CollectionsMarshal.AsSpan(list338)[0] = new GatheringLocation + num4 = 1; + List list338 = new List(num4); + CollectionsMarshal.SetCount(list338, num4); + Span span338 = CollectionsMarshal.AsSpan(list338); + index2 = 0; + span338[index2] = new GatheringLocation { Position = new Vector3(-264.2871f, -21.57944f, 593.6306f), MinimumAngle = 130, @@ -21181,28 +24847,32 @@ public static class AssemblyGatheringLocationLoader }; obj147.Locations = list338; reference248 = obj147; - ref GatheringNode reference249 = ref span121[1]; + num3++; + ref GatheringNode reference249 = ref span337[num3]; GatheringNode obj148 = new GatheringNode { DataId = 34818u }; - num3 = 3; - List list339 = new List(num3); - CollectionsMarshal.SetCount(list339, num3); - Span span122 = CollectionsMarshal.AsSpan(list339); - span122[0] = new GatheringLocation + index2 = 3; + List list339 = new List(index2); + CollectionsMarshal.SetCount(list339, index2); + Span span339 = CollectionsMarshal.AsSpan(list339); + num4 = 0; + span339[num4] = new GatheringLocation { Position = new Vector3(-266.9412f, -21.20901f, 593.9532f), MinimumAngle = 70, MaximumAngle = 225 }; - span122[1] = new GatheringLocation + num4++; + span339[num4] = new GatheringLocation { Position = new Vector3(-268.0496f, -21.79604f, 598.2532f), MinimumAngle = -45, MaximumAngle = 160 }; - span122[2] = new GatheringLocation + num4++; + span339[num4] = new GatheringLocation { Position = new Vector3(-260.2841f, -22.10003f, 595.726f), MinimumAngle = 160, @@ -21212,44 +24882,52 @@ public static class AssemblyGatheringLocationLoader reference249 = obj148; gatheringNodeGroup101.Nodes = list337; reference247 = gatheringNodeGroup101; - ref GatheringNodeGroup reference250 = ref span118[2]; + num++; + ref GatheringNodeGroup reference250 = ref span333[num]; GatheringNodeGroup gatheringNodeGroup102 = new GatheringNodeGroup(); - num2 = 2; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - Span span123 = CollectionsMarshal.AsSpan(list340); - ref GatheringNode reference251 = ref span123[0]; + num3 = 2; + List list340 = new List(num3); + CollectionsMarshal.SetCount(list340, num3); + Span span340 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + ref GatheringNode reference251 = ref span340[num2]; GatheringNode obj149 = new GatheringNode { DataId = 34815u }; - num3 = 1; - List list341 = new List(num3); - CollectionsMarshal.SetCount(list341, num3); - CollectionsMarshal.AsSpan(list341)[0] = new GatheringLocation + num4 = 1; + List list341 = new List(num4); + CollectionsMarshal.SetCount(list341, num4); + Span span341 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span341[index2] = new GatheringLocation { Position = new Vector3(-276.2859f, -3.218076f, 437.6798f) }; obj149.Locations = list341; reference251 = obj149; - ref GatheringNode reference252 = ref span123[1]; + num2++; + ref GatheringNode reference252 = ref span340[num2]; GatheringNode obj150 = new GatheringNode { DataId = 34816u }; - num3 = 3; - List list342 = new List(num3); - CollectionsMarshal.SetCount(list342, num3); - Span span124 = CollectionsMarshal.AsSpan(list342); - span124[0] = new GatheringLocation + index2 = 3; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + Span span342 = CollectionsMarshal.AsSpan(list342); + num4 = 0; + span342[num4] = new GatheringLocation { Position = new Vector3(-277.8067f, -2.664376f, 433.8469f) }; - span124[1] = new GatheringLocation + num4++; + span342[num4] = new GatheringLocation { Position = new Vector3(-273.7089f, -2.972111f, 434.3939f) }; - span124[2] = new GatheringLocation + num4++; + span342[num4] = new GatheringLocation { Position = new Vector3(-281.1727f, -2.682134f, 433.9476f) }; @@ -21263,12 +24941,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - CollectionsMarshal.AsSpan(list343)[0] = "liza"; + Span span343 = CollectionsMarshal.AsSpan(list343); + index = 0; + span343[index] = "liza"; gatheringRoot31.Author = list343; - num = 1; - List list344 = new List(num); - CollectionsMarshal.SetCount(list344, num); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.None, null, null, 1188) + index = 1; + List list344 = new List(index); + CollectionsMarshal.SetCount(list344, index); + Span span344 = CollectionsMarshal.AsSpan(list344); + num = 0; + span344[num] = new QuestStep(EInteractionType.None, null, null, 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; @@ -21276,22 +24958,26 @@ public static class AssemblyGatheringLocationLoader num = 3; List list345 = new List(num); CollectionsMarshal.SetCount(list345, num); - Span span125 = CollectionsMarshal.AsSpan(list345); - ref GatheringNodeGroup reference253 = ref span125[0]; + Span span345 = CollectionsMarshal.AsSpan(list345); + index = 0; + ref GatheringNodeGroup reference253 = ref span345[index]; GatheringNodeGroup gatheringNodeGroup103 = new GatheringNodeGroup(); num2 = 2; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - Span span126 = CollectionsMarshal.AsSpan(list346); - ref GatheringNode reference254 = ref span126[0]; + Span span346 = CollectionsMarshal.AsSpan(list346); + num3 = 0; + ref GatheringNode reference254 = ref span346[num3]; GatheringNode obj151 = new GatheringNode { DataId = 34821u }; - num3 = 1; - List list347 = new List(num3); - CollectionsMarshal.SetCount(list347, num3); - CollectionsMarshal.AsSpan(list347)[0] = new GatheringLocation + num4 = 1; + List list347 = new List(num4); + CollectionsMarshal.SetCount(list347, num4); + Span span347 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span347[index2] = new GatheringLocation { Position = new Vector3(-114.9673f, 9.311809f, -638.1873f), MinimumAngle = -125, @@ -21299,22 +24985,25 @@ public static class AssemblyGatheringLocationLoader }; obj151.Locations = list347; reference254 = obj151; - ref GatheringNode reference255 = ref span126[1]; + num3++; + ref GatheringNode reference255 = ref span346[num3]; GatheringNode obj152 = new GatheringNode { DataId = 34822u }; - num3 = 2; - List list348 = new List(num3); - CollectionsMarshal.SetCount(list348, num3); - Span span127 = CollectionsMarshal.AsSpan(list348); - span127[0] = new GatheringLocation + index2 = 2; + List list348 = new List(index2); + CollectionsMarshal.SetCount(list348, index2); + Span span348 = CollectionsMarshal.AsSpan(list348); + num4 = 0; + span348[num4] = new GatheringLocation { Position = new Vector3(-139.9428f, 17.33419f, -662.0339f), MinimumAngle = -175, MaximumAngle = 10 }; - span127[1] = new GatheringLocation + num4++; + span348[num4] = new GatheringLocation { Position = new Vector3(-98.84892f, 8.927668f, -645.7149f), MinimumAngle = 165, @@ -21324,28 +25013,32 @@ public static class AssemblyGatheringLocationLoader reference255 = obj152; gatheringNodeGroup103.Nodes = list346; reference253 = gatheringNodeGroup103; - ref GatheringNodeGroup reference256 = ref span125[1]; + index++; + ref GatheringNodeGroup reference256 = ref span345[index]; GatheringNodeGroup gatheringNodeGroup104 = new GatheringNodeGroup(); - num2 = 2; - List list349 = new List(num2); - CollectionsMarshal.SetCount(list349, num2); - Span span128 = CollectionsMarshal.AsSpan(list349); - ref GatheringNode reference257 = ref span128[0]; + num3 = 2; + List list349 = new List(num3); + CollectionsMarshal.SetCount(list349, num3); + Span span349 = CollectionsMarshal.AsSpan(list349); + num2 = 0; + ref GatheringNode reference257 = ref span349[num2]; GatheringNode obj153 = new GatheringNode { DataId = 34826u }; - num3 = 2; - List list350 = new List(num3); - CollectionsMarshal.SetCount(list350, num3); - Span span129 = CollectionsMarshal.AsSpan(list350); - span129[0] = new GatheringLocation + num4 = 2; + List list350 = new List(num4); + CollectionsMarshal.SetCount(list350, num4); + Span span350 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + span350[index2] = new GatheringLocation { Position = new Vector3(60.64223f, 4.514977f, -535.9874f), MinimumAngle = 20, MaximumAngle = 200 }; - span129[1] = new GatheringLocation + index2++; + span350[index2] = new GatheringLocation { Position = new Vector3(22.99263f, 3.71779f, -519.9791f), MinimumAngle = 110, @@ -21353,15 +25046,18 @@ public static class AssemblyGatheringLocationLoader }; obj153.Locations = list350; reference257 = obj153; - ref GatheringNode reference258 = ref span128[1]; + num2++; + ref GatheringNode reference258 = ref span349[num2]; GatheringNode obj154 = new GatheringNode { DataId = 34825u }; - num3 = 1; - List list351 = new List(num3); - CollectionsMarshal.SetCount(list351, num3); - CollectionsMarshal.AsSpan(list351)[0] = new GatheringLocation + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + Span span351 = CollectionsMarshal.AsSpan(list351); + num4 = 0; + span351[num4] = new GatheringLocation { Position = new Vector3(56.54757f, 4.987343f, -486.204f), MinimumAngle = 40, @@ -21371,28 +25067,32 @@ public static class AssemblyGatheringLocationLoader reference258 = obj154; gatheringNodeGroup104.Nodes = list349; reference256 = gatheringNodeGroup104; - ref GatheringNodeGroup reference259 = ref span125[2]; + index++; + ref GatheringNodeGroup reference259 = ref span345[index]; GatheringNodeGroup gatheringNodeGroup105 = new GatheringNodeGroup(); num2 = 2; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - Span span130 = CollectionsMarshal.AsSpan(list352); - ref GatheringNode reference260 = ref span130[0]; + Span span352 = CollectionsMarshal.AsSpan(list352); + num3 = 0; + ref GatheringNode reference260 = ref span352[num3]; GatheringNode obj155 = new GatheringNode { DataId = 34824u }; - num3 = 2; - List list353 = new List(num3); - CollectionsMarshal.SetCount(list353, num3); - Span span131 = CollectionsMarshal.AsSpan(list353); - span131[0] = new GatheringLocation + num4 = 2; + List list353 = new List(num4); + CollectionsMarshal.SetCount(list353, num4); + Span span353 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span353[index2] = new GatheringLocation { Position = new Vector3(110.7947f, 6.466304f, -633.701f), MinimumAngle = 20, MaximumAngle = 205 }; - span131[1] = new GatheringLocation + index2++; + span353[index2] = new GatheringLocation { Position = new Vector3(78.47705f, 8.072021f, -627.9545f), MinimumAngle = 130, @@ -21400,15 +25100,18 @@ public static class AssemblyGatheringLocationLoader }; obj155.Locations = list353; reference260 = obj155; - ref GatheringNode reference261 = ref span130[1]; + num3++; + ref GatheringNode reference261 = ref span352[num3]; GatheringNode obj156 = new GatheringNode { DataId = 34823u }; - num3 = 1; - List list354 = new List(num3); - CollectionsMarshal.SetCount(list354, num3); - CollectionsMarshal.AsSpan(list354)[0] = new GatheringLocation + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + Span span354 = CollectionsMarshal.AsSpan(list354); + num4 = 0; + span354[num4] = new GatheringLocation { Position = new Vector3(91.40367f, 7.397814f, -659.1525f), MinimumAngle = -40, @@ -21421,35 +25124,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot31.Groups = list345; AddLocation(986, gatheringRoot31); GatheringRoot gatheringRoot32 = new GatheringRoot(); - num = 1; - List list355 = new List(num); - CollectionsMarshal.SetCount(list355, num); - CollectionsMarshal.AsSpan(list355)[0] = "liza"; + index = 1; + List list355 = new List(index); + CollectionsMarshal.SetCount(list355, index); + Span span355 = CollectionsMarshal.AsSpan(list355); + num = 0; + span355[num] = "liza"; gatheringRoot32.Author = list355; num = 1; List list356 = new List(num); CollectionsMarshal.SetCount(list356, num); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.None, null, null, 1188); + Span span356 = CollectionsMarshal.AsSpan(list356); + index = 0; + span356[index] = new QuestStep(EInteractionType.None, null, null, 1188); gatheringRoot32.Steps = list356; - num = 3; - List list357 = new List(num); - CollectionsMarshal.SetCount(list357, num); - Span span132 = CollectionsMarshal.AsSpan(list357); - ref GatheringNodeGroup reference262 = ref span132[0]; + index = 3; + List list357 = new List(index); + CollectionsMarshal.SetCount(list357, index); + Span span357 = CollectionsMarshal.AsSpan(list357); + num = 0; + ref GatheringNodeGroup reference262 = ref span357[num]; GatheringNodeGroup gatheringNodeGroup106 = new GatheringNodeGroup(); - num2 = 2; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - Span span133 = CollectionsMarshal.AsSpan(list358); - ref GatheringNode reference263 = ref span133[0]; + num3 = 2; + List list358 = new List(num3); + CollectionsMarshal.SetCount(list358, num3); + Span span358 = CollectionsMarshal.AsSpan(list358); + num2 = 0; + ref GatheringNode reference263 = ref span358[num2]; GatheringNode obj157 = new GatheringNode { DataId = 34831u }; - num3 = 1; - List list359 = new List(num3); - CollectionsMarshal.SetCount(list359, num3); - CollectionsMarshal.AsSpan(list359)[0] = new GatheringLocation + num4 = 1; + List list359 = new List(num4); + CollectionsMarshal.SetCount(list359, num4); + Span span359 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span359[index2] = new GatheringLocation { Position = new Vector3(654.7989f, 121.8574f, 518.8689f), MinimumAngle = -65, @@ -21457,22 +25168,25 @@ public static class AssemblyGatheringLocationLoader }; obj157.Locations = list359; reference263 = obj157; - ref GatheringNode reference264 = ref span133[1]; + num2++; + ref GatheringNode reference264 = ref span358[num2]; GatheringNode obj158 = new GatheringNode { DataId = 34832u }; - num3 = 2; - List list360 = new List(num3); - CollectionsMarshal.SetCount(list360, num3); - Span span134 = CollectionsMarshal.AsSpan(list360); - span134[0] = new GatheringLocation + index2 = 2; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + Span span360 = CollectionsMarshal.AsSpan(list360); + num4 = 0; + span360[num4] = new GatheringLocation { Position = new Vector3(638.961f, 119.4446f, 467.7013f), MinimumAngle = -110, MaximumAngle = 25 }; - span134[1] = new GatheringLocation + num4++; + span360[num4] = new GatheringLocation { Position = new Vector3(690.0587f, 115.8617f, 496.8795f), MinimumAngle = 0, @@ -21482,21 +25196,25 @@ public static class AssemblyGatheringLocationLoader reference264 = obj158; gatheringNodeGroup106.Nodes = list358; reference262 = gatheringNodeGroup106; - ref GatheringNodeGroup reference265 = ref span132[1]; + num++; + ref GatheringNodeGroup reference265 = ref span357[num]; GatheringNodeGroup gatheringNodeGroup107 = new GatheringNodeGroup(); num2 = 2; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - Span span135 = CollectionsMarshal.AsSpan(list361); - ref GatheringNode reference266 = ref span135[0]; + Span span361 = CollectionsMarshal.AsSpan(list361); + num3 = 0; + ref GatheringNode reference266 = ref span361[num3]; GatheringNode obj159 = new GatheringNode { DataId = 34828u }; - num3 = 1; - List list362 = new List(num3); - CollectionsMarshal.SetCount(list362, num3); - CollectionsMarshal.AsSpan(list362)[0] = new GatheringLocation + num4 = 1; + List list362 = new List(num4); + CollectionsMarshal.SetCount(list362, num4); + Span span362 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span362[index2] = new GatheringLocation { Position = new Vector3(599.3455f, 121.5376f, 694.2341f), MinimumAngle = -125, @@ -21504,15 +25222,18 @@ public static class AssemblyGatheringLocationLoader }; obj159.Locations = list362; reference266 = obj159; - ref GatheringNode reference267 = ref span135[1]; + num3++; + ref GatheringNode reference267 = ref span361[num3]; GatheringNode obj160 = new GatheringNode { DataId = 34827u }; - num3 = 1; - List list363 = new List(num3); - CollectionsMarshal.SetCount(list363, num3); - CollectionsMarshal.AsSpan(list363)[0] = new GatheringLocation + index2 = 1; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + Span span363 = CollectionsMarshal.AsSpan(list363); + num4 = 0; + span363[num4] = new GatheringLocation { Position = new Vector3(600.5253f, 124.8645f, 751.1969f), MinimumAngle = -240, @@ -21522,28 +25243,32 @@ public static class AssemblyGatheringLocationLoader reference267 = obj160; gatheringNodeGroup107.Nodes = list361; reference265 = gatheringNodeGroup107; - ref GatheringNodeGroup reference268 = ref span132[2]; + num++; + ref GatheringNodeGroup reference268 = ref span357[num]; GatheringNodeGroup gatheringNodeGroup108 = new GatheringNodeGroup(); - num2 = 2; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - Span span136 = CollectionsMarshal.AsSpan(list364); - ref GatheringNode reference269 = ref span136[0]; + num3 = 2; + List list364 = new List(num3); + CollectionsMarshal.SetCount(list364, num3); + Span span364 = CollectionsMarshal.AsSpan(list364); + num2 = 0; + ref GatheringNode reference269 = ref span364[num2]; GatheringNode obj161 = new GatheringNode { DataId = 34830u }; - num3 = 2; - List list365 = new List(num3); - CollectionsMarshal.SetCount(list365, num3); - Span span137 = CollectionsMarshal.AsSpan(list365); - span137[0] = new GatheringLocation + num4 = 2; + List list365 = new List(num4); + CollectionsMarshal.SetCount(list365, num4); + Span span365 = CollectionsMarshal.AsSpan(list365); + index2 = 0; + span365[index2] = new GatheringLocation { Position = new Vector3(762.9977f, 123.3409f, 718.8274f), MinimumAngle = 75, MaximumAngle = 215 }; - span137[1] = new GatheringLocation + index2++; + span365[index2] = new GatheringLocation { Position = new Vector3(800.252f, 124.2032f, 656.793f), MinimumAngle = -25, @@ -21551,15 +25276,18 @@ public static class AssemblyGatheringLocationLoader }; obj161.Locations = list365; reference269 = obj161; - ref GatheringNode reference270 = ref span136[1]; + num2++; + ref GatheringNode reference270 = ref span364[num2]; GatheringNode obj162 = new GatheringNode { DataId = 34829u }; - num3 = 1; - List list366 = new List(num3); - CollectionsMarshal.SetCount(list366, num3); - CollectionsMarshal.AsSpan(list366)[0] = new GatheringLocation + index2 = 1; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + Span span366 = CollectionsMarshal.AsSpan(list366); + num4 = 0; + span366[num4] = new GatheringLocation { Position = new Vector3(793.8721f, 127.6419f, 696.0015f), MinimumAngle = 25, @@ -21575,12 +25303,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list367 = new List(num); CollectionsMarshal.SetCount(list367, num); - CollectionsMarshal.AsSpan(list367)[0] = "liza"; + Span span367 = CollectionsMarshal.AsSpan(list367); + index = 0; + span367[index] = "liza"; gatheringRoot33.Author = list367; - num = 1; - List list368 = new List(num); - CollectionsMarshal.SetCount(list368, num); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + index = 1; + List list368 = new List(index); + CollectionsMarshal.SetCount(list368, index); + Span span368 = CollectionsMarshal.AsSpan(list368); + num = 0; + span368[num] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -21588,29 +25320,33 @@ public static class AssemblyGatheringLocationLoader num = 3; List list369 = new List(num); CollectionsMarshal.SetCount(list369, num); - Span span138 = CollectionsMarshal.AsSpan(list369); - ref GatheringNodeGroup reference271 = ref span138[0]; + Span span369 = CollectionsMarshal.AsSpan(list369); + index = 0; + ref GatheringNodeGroup reference271 = ref span369[index]; GatheringNodeGroup gatheringNodeGroup109 = new GatheringNodeGroup(); num2 = 2; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - Span span139 = CollectionsMarshal.AsSpan(list370); - ref GatheringNode reference272 = ref span139[0]; + Span span370 = CollectionsMarshal.AsSpan(list370); + num3 = 0; + ref GatheringNode reference272 = ref span370[num3]; GatheringNode obj163 = new GatheringNode { DataId = 34836u }; - num3 = 2; - List list371 = new List(num3); - CollectionsMarshal.SetCount(list371, num3); - Span span140 = CollectionsMarshal.AsSpan(list371); - span140[0] = new GatheringLocation + num4 = 2; + List list371 = new List(num4); + CollectionsMarshal.SetCount(list371, num4); + Span span371 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + span371[index2] = new GatheringLocation { Position = new Vector3(70.75072f, -156.9112f, -15.01749f), MinimumAngle = 125, MaximumAngle = 320 }; - span140[1] = new GatheringLocation + index2++; + span371[index2] = new GatheringLocation { Position = new Vector3(49.44211f, -157.3086f, -8.53495f), MinimumAngle = 45, @@ -21618,15 +25354,18 @@ public static class AssemblyGatheringLocationLoader }; obj163.Locations = list371; reference272 = obj163; - ref GatheringNode reference273 = ref span139[1]; + num3++; + ref GatheringNode reference273 = ref span370[num3]; GatheringNode obj164 = new GatheringNode { DataId = 34835u }; - num3 = 1; - List list372 = new List(num3); - CollectionsMarshal.SetCount(list372, num3); - CollectionsMarshal.AsSpan(list372)[0] = new GatheringLocation + index2 = 1; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + Span span372 = CollectionsMarshal.AsSpan(list372); + num4 = 0; + span372[num4] = new GatheringLocation { Position = new Vector3(56.47234f, -157.5328f, -17.13855f), MinimumAngle = 105, @@ -21636,28 +25375,32 @@ public static class AssemblyGatheringLocationLoader reference273 = obj164; gatheringNodeGroup109.Nodes = list370; reference271 = gatheringNodeGroup109; - ref GatheringNodeGroup reference274 = ref span138[1]; + index++; + ref GatheringNodeGroup reference274 = ref span369[index]; GatheringNodeGroup gatheringNodeGroup110 = new GatheringNodeGroup(); - num2 = 2; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - Span span141 = CollectionsMarshal.AsSpan(list373); - ref GatheringNode reference275 = ref span141[0]; + num3 = 2; + List list373 = new List(num3); + CollectionsMarshal.SetCount(list373, num3); + Span span373 = CollectionsMarshal.AsSpan(list373); + num2 = 0; + ref GatheringNode reference275 = ref span373[num2]; GatheringNode obj165 = new GatheringNode { DataId = 34838u }; - num3 = 2; - List list374 = new List(num3); - CollectionsMarshal.SetCount(list374, num3); - Span span142 = CollectionsMarshal.AsSpan(list374); - span142[0] = new GatheringLocation + num4 = 2; + List list374 = new List(num4); + CollectionsMarshal.SetCount(list374, num4); + Span span374 = CollectionsMarshal.AsSpan(list374); + index2 = 0; + span374[index2] = new GatheringLocation { Position = new Vector3(-146.5889f, -142.4388f, 111.3271f), MinimumAngle = 95, MaximumAngle = 260 }; - span142[1] = new GatheringLocation + index2++; + span374[index2] = new GatheringLocation { Position = new Vector3(-132.7688f, -145.5672f, 122.179f), MinimumAngle = 175, @@ -21667,15 +25410,18 @@ public static class AssemblyGatheringLocationLoader }; obj165.Locations = list374; reference275 = obj165; - ref GatheringNode reference276 = ref span141[1]; + num2++; + ref GatheringNode reference276 = ref span373[num2]; GatheringNode obj166 = new GatheringNode { DataId = 34837u }; - num3 = 1; - List list375 = new List(num3); - CollectionsMarshal.SetCount(list375, num3); - CollectionsMarshal.AsSpan(list375)[0] = new GatheringLocation + index2 = 1; + List list375 = new List(index2); + CollectionsMarshal.SetCount(list375, index2); + Span span375 = CollectionsMarshal.AsSpan(list375); + num4 = 0; + span375[num4] = new GatheringLocation { Position = new Vector3(-138.1429f, -143.8643f, 114.8867f), MinimumAngle = 150, @@ -21685,21 +25431,25 @@ public static class AssemblyGatheringLocationLoader reference276 = obj166; gatheringNodeGroup110.Nodes = list373; reference274 = gatheringNodeGroup110; - ref GatheringNodeGroup reference277 = ref span138[2]; + index++; + ref GatheringNodeGroup reference277 = ref span369[index]; GatheringNodeGroup gatheringNodeGroup111 = new GatheringNodeGroup(); num2 = 2; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - Span span143 = CollectionsMarshal.AsSpan(list376); - ref GatheringNode reference278 = ref span143[0]; + Span span376 = CollectionsMarshal.AsSpan(list376); + num3 = 0; + ref GatheringNode reference278 = ref span376[num3]; GatheringNode obj167 = new GatheringNode { DataId = 34833u }; - num3 = 1; - List list377 = new List(num3); - CollectionsMarshal.SetCount(list377, num3); - CollectionsMarshal.AsSpan(list377)[0] = new GatheringLocation + num4 = 1; + List list377 = new List(num4); + CollectionsMarshal.SetCount(list377, num4); + Span span377 = CollectionsMarshal.AsSpan(list377); + index2 = 0; + span377[index2] = new GatheringLocation { Position = new Vector3(-33.75101f, -160.675f, -94.77893f), MinimumAngle = -45, @@ -21707,22 +25457,25 @@ public static class AssemblyGatheringLocationLoader }; obj167.Locations = list377; reference278 = obj167; - ref GatheringNode reference279 = ref span143[1]; + num3++; + ref GatheringNode reference279 = ref span376[num3]; GatheringNode obj168 = new GatheringNode { DataId = 34834u }; - num3 = 2; - List list378 = new List(num3); - CollectionsMarshal.SetCount(list378, num3); - Span span144 = CollectionsMarshal.AsSpan(list378); - span144[0] = new GatheringLocation + index2 = 2; + List list378 = new List(index2); + CollectionsMarshal.SetCount(list378, index2); + Span span378 = CollectionsMarshal.AsSpan(list378); + num4 = 0; + span378[num4] = new GatheringLocation { Position = new Vector3(-38.13882f, -159.4724f, -105.7621f), MinimumAngle = 10, MaximumAngle = 170 }; - span144[1] = new GatheringLocation + num4++; + span378[num4] = new GatheringLocation { Position = new Vector3(-22.27635f, -161.6958f, -92.39622f), MinimumAngle = -80, @@ -21735,63 +25488,75 @@ public static class AssemblyGatheringLocationLoader gatheringRoot33.Groups = list369; AddLocation(988, gatheringRoot33); GatheringRoot gatheringRoot34 = new GatheringRoot(); - num = 1; - List list379 = new List(num); - CollectionsMarshal.SetCount(list379, num); - CollectionsMarshal.AsSpan(list379)[0] = "liza"; + index = 1; + List list379 = new List(index); + CollectionsMarshal.SetCount(list379, index); + Span span379 = CollectionsMarshal.AsSpan(list379); + num = 0; + span379[num] = "liza"; gatheringRoot34.Author = list379; num = 1; List list380 = new List(num); CollectionsMarshal.SetCount(list380, num); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.None, null, null, 1187) + Span span380 = CollectionsMarshal.AsSpan(list380); + index = 0; + span380[index] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; gatheringRoot34.Steps = list380; - num = 3; - List list381 = new List(num); - CollectionsMarshal.SetCount(list381, num); - Span span145 = CollectionsMarshal.AsSpan(list381); - ref GatheringNodeGroup reference280 = ref span145[0]; + index = 3; + List list381 = new List(index); + CollectionsMarshal.SetCount(list381, index); + Span span381 = CollectionsMarshal.AsSpan(list381); + num = 0; + ref GatheringNodeGroup reference280 = ref span381[num]; GatheringNodeGroup gatheringNodeGroup112 = new GatheringNodeGroup(); - num2 = 2; - List list382 = new List(num2); - CollectionsMarshal.SetCount(list382, num2); - Span span146 = CollectionsMarshal.AsSpan(list382); - ref GatheringNode reference281 = ref span146[0]; + num3 = 2; + List list382 = new List(num3); + CollectionsMarshal.SetCount(list382, num3); + Span span382 = CollectionsMarshal.AsSpan(list382); + num2 = 0; + ref GatheringNode reference281 = ref span382[num2]; GatheringNode obj169 = new GatheringNode { DataId = 34857u }; - num3 = 1; - List list383 = new List(num3); - CollectionsMarshal.SetCount(list383, num3); - CollectionsMarshal.AsSpan(list383)[0] = new GatheringLocation + num4 = 1; + List list383 = new List(num4); + CollectionsMarshal.SetCount(list383, num4); + Span span383 = CollectionsMarshal.AsSpan(list383); + index2 = 0; + span383[index2] = new GatheringLocation { Position = new Vector3(-12.48859f, -133.2091f, -427.7497f) }; obj169.Locations = list383; reference281 = obj169; - ref GatheringNode reference282 = ref span146[1]; + num2++; + ref GatheringNode reference282 = ref span382[num2]; GatheringNode obj170 = new GatheringNode { DataId = 34858u }; - num3 = 3; - List list384 = new List(num3); - CollectionsMarshal.SetCount(list384, num3); - Span span147 = CollectionsMarshal.AsSpan(list384); - span147[0] = new GatheringLocation + index2 = 3; + List list384 = new List(index2); + CollectionsMarshal.SetCount(list384, index2); + Span span384 = CollectionsMarshal.AsSpan(list384); + num4 = 0; + span384[num4] = new GatheringLocation { Position = new Vector3(-22.41956f, -129.3952f, -396.6573f) }; - span147[1] = new GatheringLocation + num4++; + span384[num4] = new GatheringLocation { Position = new Vector3(-16.08351f, -137.6674f, -464.35f), MinimumAngle = -65, MaximumAngle = 145 }; - span147[2] = new GatheringLocation + num4++; + span384[num4] = new GatheringLocation { Position = new Vector3(-9.000858f, -134.9256f, -439.0332f), MinimumAngle = -125, @@ -21801,21 +25566,25 @@ public static class AssemblyGatheringLocationLoader reference282 = obj170; gatheringNodeGroup112.Nodes = list382; reference280 = gatheringNodeGroup112; - ref GatheringNodeGroup reference283 = ref span145[1]; + num++; + ref GatheringNodeGroup reference283 = ref span381[num]; GatheringNodeGroup gatheringNodeGroup113 = new GatheringNodeGroup(); num2 = 2; List list385 = new List(num2); CollectionsMarshal.SetCount(list385, num2); - Span span148 = CollectionsMarshal.AsSpan(list385); - ref GatheringNode reference284 = ref span148[0]; + Span span385 = CollectionsMarshal.AsSpan(list385); + num3 = 0; + ref GatheringNode reference284 = ref span385[num3]; GatheringNode obj171 = new GatheringNode { DataId = 34861u }; - num3 = 1; - List list386 = new List(num3); - CollectionsMarshal.SetCount(list386, num3); - CollectionsMarshal.AsSpan(list386)[0] = new GatheringLocation + num4 = 1; + List list386 = new List(num4); + CollectionsMarshal.SetCount(list386, num4); + Span span386 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + span386[index2] = new GatheringLocation { Position = new Vector3(-234.8222f, -99.01237f, -376.7287f), MinimumAngle = -180, @@ -21823,28 +25592,32 @@ public static class AssemblyGatheringLocationLoader }; obj171.Locations = list386; reference284 = obj171; - ref GatheringNode reference285 = ref span148[1]; + num3++; + ref GatheringNode reference285 = ref span385[num3]; GatheringNode obj172 = new GatheringNode { DataId = 34862u }; - num3 = 3; - List list387 = new List(num3); - CollectionsMarshal.SetCount(list387, num3); - Span span149 = CollectionsMarshal.AsSpan(list387); - span149[0] = new GatheringLocation + index2 = 3; + List list387 = new List(index2); + CollectionsMarshal.SetCount(list387, index2); + Span span387 = CollectionsMarshal.AsSpan(list387); + num4 = 0; + span387[num4] = new GatheringLocation { Position = new Vector3(-236.0182f, -97.50027f, -372.1523f), MinimumAngle = -180, MaximumAngle = 45 }; - span149[1] = new GatheringLocation + num4++; + span387[num4] = new GatheringLocation { Position = new Vector3(-249.7221f, -96.55618f, -386.2397f), MinimumAngle = 35, MaximumAngle = 280 }; - span149[2] = new GatheringLocation + num4++; + span387[num4] = new GatheringLocation { Position = new Vector3(-241.8424f, -99.37369f, -386.2889f), MinimumAngle = -300, @@ -21854,32 +25627,37 @@ public static class AssemblyGatheringLocationLoader reference285 = obj172; gatheringNodeGroup113.Nodes = list385; reference283 = gatheringNodeGroup113; - ref GatheringNodeGroup reference286 = ref span145[2]; + num++; + ref GatheringNodeGroup reference286 = ref span381[num]; GatheringNodeGroup gatheringNodeGroup114 = new GatheringNodeGroup(); - num2 = 2; - List list388 = new List(num2); - CollectionsMarshal.SetCount(list388, num2); - Span span150 = CollectionsMarshal.AsSpan(list388); - ref GatheringNode reference287 = ref span150[0]; + num3 = 2; + List list388 = new List(num3); + CollectionsMarshal.SetCount(list388, num3); + Span span388 = CollectionsMarshal.AsSpan(list388); + num2 = 0; + ref GatheringNode reference287 = ref span388[num2]; GatheringNode obj173 = new GatheringNode { DataId = 34860u }; - num3 = 3; - List list389 = new List(num3); - CollectionsMarshal.SetCount(list389, num3); - Span span151 = CollectionsMarshal.AsSpan(list389); - span151[0] = new GatheringLocation + num4 = 3; + List list389 = new List(num4); + CollectionsMarshal.SetCount(list389, num4); + Span span389 = CollectionsMarshal.AsSpan(list389); + index2 = 0; + span389[index2] = new GatheringLocation { Position = new Vector3(-169.8177f, -85.61841f, -240.1007f) }; - span151[1] = new GatheringLocation + index2++; + span389[index2] = new GatheringLocation { Position = new Vector3(-116.6446f, -93.99508f, -274.6102f), MinimumAngle = -140, MaximumAngle = 150 }; - span151[2] = new GatheringLocation + index2++; + span389[index2] = new GatheringLocation { Position = new Vector3(-133.936f, -91.54122f, -273.3963f), MinimumAngle = -155, @@ -21887,15 +25665,18 @@ public static class AssemblyGatheringLocationLoader }; obj173.Locations = list389; reference287 = obj173; - ref GatheringNode reference288 = ref span150[1]; + num2++; + ref GatheringNode reference288 = ref span388[num2]; GatheringNode obj174 = new GatheringNode { DataId = 34859u }; - num3 = 1; - List list390 = new List(num3); - CollectionsMarshal.SetCount(list390, num3); - CollectionsMarshal.AsSpan(list390)[0] = new GatheringLocation + index2 = 1; + List list390 = new List(index2); + CollectionsMarshal.SetCount(list390, index2); + Span span390 = CollectionsMarshal.AsSpan(list390); + num4 = 0; + span390[num4] = new GatheringLocation { Position = new Vector3(-131.9198f, -89.88039f, -249.5422f) }; @@ -21909,12 +25690,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list391 = new List(num); CollectionsMarshal.SetCount(list391, num); - CollectionsMarshal.AsSpan(list391)[0] = "liza"; + Span span391 = CollectionsMarshal.AsSpan(list391); + index = 0; + span391[index] = "liza"; gatheringRoot35.Author = list391; - num = 1; - List list392 = new List(num); - CollectionsMarshal.SetCount(list392, num); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.None, null, null, 1187) + index = 1; + List list392 = new List(index); + CollectionsMarshal.SetCount(list392, index); + Span span392 = CollectionsMarshal.AsSpan(list392); + num = 0; + span392[num] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; @@ -21922,49 +25707,57 @@ public static class AssemblyGatheringLocationLoader num = 3; List list393 = new List(num); CollectionsMarshal.SetCount(list393, num); - Span span152 = CollectionsMarshal.AsSpan(list393); - ref GatheringNodeGroup reference289 = ref span152[0]; + Span span393 = CollectionsMarshal.AsSpan(list393); + index = 0; + ref GatheringNodeGroup reference289 = ref span393[index]; GatheringNodeGroup gatheringNodeGroup115 = new GatheringNodeGroup(); num2 = 2; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - Span span153 = CollectionsMarshal.AsSpan(list394); - ref GatheringNode reference290 = ref span153[0]; + Span span394 = CollectionsMarshal.AsSpan(list394); + num3 = 0; + ref GatheringNode reference290 = ref span394[num3]; GatheringNode obj175 = new GatheringNode { DataId = 34866u }; - num3 = 3; - List list395 = new List(num3); - CollectionsMarshal.SetCount(list395, num3); - Span span154 = CollectionsMarshal.AsSpan(list395); - span154[0] = new GatheringLocation + num4 = 3; + List list395 = new List(num4); + CollectionsMarshal.SetCount(list395, num4); + Span span395 = CollectionsMarshal.AsSpan(list395); + index2 = 0; + span395[index2] = new GatheringLocation { Position = new Vector3(242.7737f, -135.9734f, -431.2313f), MinimumAngle = -55, MaximumAngle = 100 }; - span154[1] = new GatheringLocation + index2++; + span395[index2] = new GatheringLocation { Position = new Vector3(302.1836f, -135.4149f, -359.7965f), MinimumAngle = 5, MaximumAngle = 155 }; - span154[2] = new GatheringLocation + index2++; + span395[index2] = new GatheringLocation { Position = new Vector3(256.1657f, -135.744f, -414.7577f) }; obj175.Locations = list395; reference290 = obj175; - ref GatheringNode reference291 = ref span153[1]; + num3++; + ref GatheringNode reference291 = ref span394[num3]; GatheringNode obj176 = new GatheringNode { DataId = 34865u }; - num3 = 1; - List list396 = new List(num3); - CollectionsMarshal.SetCount(list396, num3); - CollectionsMarshal.AsSpan(list396)[0] = new GatheringLocation + index2 = 1; + List list396 = new List(index2); + CollectionsMarshal.SetCount(list396, index2); + Span span396 = CollectionsMarshal.AsSpan(list396); + num4 = 0; + span396[num4] = new GatheringLocation { Position = new Vector3(269.7338f, -134.0488f, -381.6242f), MinimumAngle = -85, @@ -21974,34 +25767,39 @@ public static class AssemblyGatheringLocationLoader reference291 = obj176; gatheringNodeGroup115.Nodes = list394; reference289 = gatheringNodeGroup115; - ref GatheringNodeGroup reference292 = ref span152[1]; + index++; + ref GatheringNodeGroup reference292 = ref span393[index]; GatheringNodeGroup gatheringNodeGroup116 = new GatheringNodeGroup(); - num2 = 2; - List list397 = new List(num2); - CollectionsMarshal.SetCount(list397, num2); - Span span155 = CollectionsMarshal.AsSpan(list397); - ref GatheringNode reference293 = ref span155[0]; + num3 = 2; + List list397 = new List(num3); + CollectionsMarshal.SetCount(list397, num3); + Span span397 = CollectionsMarshal.AsSpan(list397); + num2 = 0; + ref GatheringNode reference293 = ref span397[num2]; GatheringNode obj177 = new GatheringNode { DataId = 34868u }; - num3 = 3; - List list398 = new List(num3); - CollectionsMarshal.SetCount(list398, num3); - Span span156 = CollectionsMarshal.AsSpan(list398); - span156[0] = new GatheringLocation + num4 = 3; + List list398 = new List(num4); + CollectionsMarshal.SetCount(list398, num4); + Span span398 = CollectionsMarshal.AsSpan(list398); + index2 = 0; + span398[index2] = new GatheringLocation { Position = new Vector3(389.1952f, -154.3099f, -368.3658f), MinimumAngle = 105, MaximumAngle = 345 }; - span156[1] = new GatheringLocation + index2++; + span398[index2] = new GatheringLocation { Position = new Vector3(401.9319f, -150.0004f, -408.114f), MinimumAngle = -70, MaximumAngle = 85 }; - span156[2] = new GatheringLocation + index2++; + span398[index2] = new GatheringLocation { Position = new Vector3(406.1098f, -152.2166f, -364.7227f), MinimumAngle = -210, @@ -22009,15 +25807,18 @@ public static class AssemblyGatheringLocationLoader }; obj177.Locations = list398; reference293 = obj177; - ref GatheringNode reference294 = ref span155[1]; + num2++; + ref GatheringNode reference294 = ref span397[num2]; GatheringNode obj178 = new GatheringNode { DataId = 34867u }; - num3 = 1; - List list399 = new List(num3); - CollectionsMarshal.SetCount(list399, num3); - CollectionsMarshal.AsSpan(list399)[0] = new GatheringLocation + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + Span span399 = CollectionsMarshal.AsSpan(list399); + num4 = 0; + span399[num4] = new GatheringLocation { Position = new Vector3(399.1297f, -152.1141f, -394.71f), MinimumAngle = 120, @@ -22027,44 +25828,52 @@ public static class AssemblyGatheringLocationLoader reference294 = obj178; gatheringNodeGroup116.Nodes = list397; reference292 = gatheringNodeGroup116; - ref GatheringNodeGroup reference295 = ref span152[2]; + index++; + ref GatheringNodeGroup reference295 = ref span393[index]; GatheringNodeGroup gatheringNodeGroup117 = new GatheringNodeGroup(); num2 = 2; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - Span span157 = CollectionsMarshal.AsSpan(list400); - ref GatheringNode reference296 = ref span157[0]; + Span span400 = CollectionsMarshal.AsSpan(list400); + num3 = 0; + ref GatheringNode reference296 = ref span400[num3]; GatheringNode obj179 = new GatheringNode { DataId = 34864u }; - num3 = 3; - List list401 = new List(num3); - CollectionsMarshal.SetCount(list401, num3); - Span span158 = CollectionsMarshal.AsSpan(list401); - span158[0] = new GatheringLocation + num4 = 3; + List list401 = new List(num4); + CollectionsMarshal.SetCount(list401, num4); + Span span401 = CollectionsMarshal.AsSpan(list401); + index2 = 0; + span401[index2] = new GatheringLocation { Position = new Vector3(359.517f, -161.1972f, -644.0471f) }; - span158[1] = new GatheringLocation + index2++; + span401[index2] = new GatheringLocation { Position = new Vector3(307.4235f, -159.1669f, -622.6444f) }; - span158[2] = new GatheringLocation + index2++; + span401[index2] = new GatheringLocation { Position = new Vector3(348.5925f, -165.3805f, -671.4193f) }; obj179.Locations = list401; reference296 = obj179; - ref GatheringNode reference297 = ref span157[1]; + num3++; + ref GatheringNode reference297 = ref span400[num3]; GatheringNode obj180 = new GatheringNode { DataId = 34863u }; - num3 = 1; - List list402 = new List(num3); - CollectionsMarshal.SetCount(list402, num3); - CollectionsMarshal.AsSpan(list402)[0] = new GatheringLocation + index2 = 1; + List list402 = new List(index2); + CollectionsMarshal.SetCount(list402, index2); + Span span402 = CollectionsMarshal.AsSpan(list402); + num4 = 0; + span402[num4] = new GatheringLocation { Position = new Vector3(323.8758f, -162.9682f, -648.8156f) }; @@ -22075,63 +25884,75 @@ public static class AssemblyGatheringLocationLoader gatheringRoot35.Groups = list393; AddLocation(993, gatheringRoot35); GatheringRoot gatheringRoot36 = new GatheringRoot(); - num = 1; - List list403 = new List(num); - CollectionsMarshal.SetCount(list403, num); - CollectionsMarshal.AsSpan(list403)[0] = "liza"; + index = 1; + List list403 = new List(index); + CollectionsMarshal.SetCount(list403, index); + Span span403 = CollectionsMarshal.AsSpan(list403); + num = 0; + span403[num] = "liza"; gatheringRoot36.Author = list403; num = 1; List list404 = new List(num); CollectionsMarshal.SetCount(list404, num); - CollectionsMarshal.AsSpan(list404)[0] = new QuestStep(EInteractionType.None, null, null, 1187) + Span span404 = CollectionsMarshal.AsSpan(list404); + index = 0; + span404[index] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; gatheringRoot36.Steps = list404; - num = 3; - List list405 = new List(num); - CollectionsMarshal.SetCount(list405, num); - Span span159 = CollectionsMarshal.AsSpan(list405); - ref GatheringNodeGroup reference298 = ref span159[0]; + index = 3; + List list405 = new List(index); + CollectionsMarshal.SetCount(list405, index); + Span span405 = CollectionsMarshal.AsSpan(list405); + num = 0; + ref GatheringNodeGroup reference298 = ref span405[num]; GatheringNodeGroup gatheringNodeGroup118 = new GatheringNodeGroup(); - num2 = 2; - List list406 = new List(num2); - CollectionsMarshal.SetCount(list406, num2); - Span span160 = CollectionsMarshal.AsSpan(list406); - ref GatheringNode reference299 = ref span160[0]; + num3 = 2; + List list406 = new List(num3); + CollectionsMarshal.SetCount(list406, num3); + Span span406 = CollectionsMarshal.AsSpan(list406); + num2 = 0; + ref GatheringNode reference299 = ref span406[num2]; GatheringNode obj181 = new GatheringNode { DataId = 34869u }; - num3 = 1; - List list407 = new List(num3); - CollectionsMarshal.SetCount(list407, num3); - CollectionsMarshal.AsSpan(list407)[0] = new GatheringLocation + num4 = 1; + List list407 = new List(num4); + CollectionsMarshal.SetCount(list407, num4); + Span span407 = CollectionsMarshal.AsSpan(list407); + index2 = 0; + span407[index2] = new GatheringLocation { Position = new Vector3(-604.6953f, 59.64062f, 5.50073f) }; obj181.Locations = list407; reference299 = obj181; - ref GatheringNode reference300 = ref span160[1]; + num2++; + ref GatheringNode reference300 = ref span406[num2]; GatheringNode obj182 = new GatheringNode { DataId = 34870u }; - num3 = 3; - List list408 = new List(num3); - CollectionsMarshal.SetCount(list408, num3); - Span span161 = CollectionsMarshal.AsSpan(list408); - span161[0] = new GatheringLocation + index2 = 3; + List list408 = new List(index2); + CollectionsMarshal.SetCount(list408, index2); + Span span408 = CollectionsMarshal.AsSpan(list408); + num4 = 0; + span408[num4] = new GatheringLocation { Position = new Vector3(-618.7993f, 59.13951f, 17.80936f) }; - span161[1] = new GatheringLocation + num4++; + span408[num4] = new GatheringLocation { Position = new Vector3(-615.0759f, 59.08474f, -4.837158f), MinimumAngle = 115, MaximumAngle = 325 }; - span161[2] = new GatheringLocation + num4++; + span408[num4] = new GatheringLocation { Position = new Vector3(-593.0486f, 60.01728f, 15.20686f) }; @@ -22139,30 +25960,35 @@ public static class AssemblyGatheringLocationLoader reference300 = obj182; gatheringNodeGroup118.Nodes = list406; reference298 = gatheringNodeGroup118; - ref GatheringNodeGroup reference301 = ref span159[1]; + num++; + ref GatheringNodeGroup reference301 = ref span405[num]; GatheringNodeGroup gatheringNodeGroup119 = new GatheringNodeGroup(); num2 = 2; List list409 = new List(num2); CollectionsMarshal.SetCount(list409, num2); - Span span162 = CollectionsMarshal.AsSpan(list409); - ref GatheringNode reference302 = ref span162[0]; + Span span409 = CollectionsMarshal.AsSpan(list409); + num3 = 0; + ref GatheringNode reference302 = ref span409[num3]; GatheringNode obj183 = new GatheringNode { DataId = 34872u }; - num3 = 3; - List list410 = new List(num3); - CollectionsMarshal.SetCount(list410, num3); - Span span163 = CollectionsMarshal.AsSpan(list410); - span163[0] = new GatheringLocation + num4 = 3; + List list410 = new List(num4); + CollectionsMarshal.SetCount(list410, num4); + Span span410 = CollectionsMarshal.AsSpan(list410); + index2 = 0; + span410[index2] = new GatheringLocation { Position = new Vector3(-812.0394f, 55.42165f, 118.3947f) }; - span163[1] = new GatheringLocation + index2++; + span410[index2] = new GatheringLocation { Position = new Vector3(-821.9205f, 56.51463f, 121.8448f) }; - span163[2] = new GatheringLocation + index2++; + span410[index2] = new GatheringLocation { Position = new Vector3(-837.9932f, 57.59847f, 104.7306f), MinimumAngle = -100, @@ -22170,15 +25996,18 @@ public static class AssemblyGatheringLocationLoader }; obj183.Locations = list410; reference302 = obj183; - ref GatheringNode reference303 = ref span162[1]; + num3++; + ref GatheringNode reference303 = ref span409[num3]; GatheringNode obj184 = new GatheringNode { DataId = 34871u }; - num3 = 1; - List list411 = new List(num3); - CollectionsMarshal.SetCount(list411, num3); - CollectionsMarshal.AsSpan(list411)[0] = new GatheringLocation + index2 = 1; + List list411 = new List(index2); + CollectionsMarshal.SetCount(list411, index2); + Span span411 = CollectionsMarshal.AsSpan(list411); + num4 = 0; + span411[num4] = new GatheringLocation { Position = new Vector3(-818.8149f, 55.11676f, 112.5509f) }; @@ -22186,48 +26015,56 @@ public static class AssemblyGatheringLocationLoader reference303 = obj184; gatheringNodeGroup119.Nodes = list409; reference301 = gatheringNodeGroup119; - ref GatheringNodeGroup reference304 = ref span159[2]; + num++; + ref GatheringNodeGroup reference304 = ref span405[num]; GatheringNodeGroup gatheringNodeGroup120 = new GatheringNodeGroup(); - num2 = 2; - List list412 = new List(num2); - CollectionsMarshal.SetCount(list412, num2); - Span span164 = CollectionsMarshal.AsSpan(list412); - ref GatheringNode reference305 = ref span164[0]; + num3 = 2; + List list412 = new List(num3); + CollectionsMarshal.SetCount(list412, num3); + Span span412 = CollectionsMarshal.AsSpan(list412); + num2 = 0; + ref GatheringNode reference305 = ref span412[num2]; GatheringNode obj185 = new GatheringNode { DataId = 34874u }; - num3 = 3; - List list413 = new List(num3); - CollectionsMarshal.SetCount(list413, num3); - Span span165 = CollectionsMarshal.AsSpan(list413); - span165[0] = new GatheringLocation + num4 = 3; + List list413 = new List(num4); + CollectionsMarshal.SetCount(list413, num4); + Span span413 = CollectionsMarshal.AsSpan(list413); + index2 = 0; + span413[index2] = new GatheringLocation { Position = new Vector3(-672.2305f, 76.87632f, 257.5817f), MinimumAngle = 85, MaximumAngle = 265 }; - span165[1] = new GatheringLocation + index2++; + span413[index2] = new GatheringLocation { Position = new Vector3(-625.6287f, 71.04436f, 234.6465f), MinimumAngle = -95, MaximumAngle = 140 }; - span165[2] = new GatheringLocation + index2++; + span413[index2] = new GatheringLocation { Position = new Vector3(-635.3436f, 74.07207f, 244.9178f) }; obj185.Locations = list413; reference305 = obj185; - ref GatheringNode reference306 = ref span164[1]; + num2++; + ref GatheringNode reference306 = ref span412[num2]; GatheringNode obj186 = new GatheringNode { DataId = 34873u }; - num3 = 1; - List list414 = new List(num3); - CollectionsMarshal.SetCount(list414, num3); - CollectionsMarshal.AsSpan(list414)[0] = new GatheringLocation + index2 = 1; + List list414 = new List(index2); + CollectionsMarshal.SetCount(list414, index2); + Span span414 = CollectionsMarshal.AsSpan(list414); + num4 = 0; + span414[num4] = new GatheringLocation { Position = new Vector3(-654.1213f, 74.65144f, 254.1959f) }; @@ -22241,12 +26078,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list415 = new List(num); CollectionsMarshal.SetCount(list415, num); - CollectionsMarshal.AsSpan(list415)[0] = "liza"; + Span span415 = CollectionsMarshal.AsSpan(list415); + index = 0; + span415[index] = "liza"; gatheringRoot37.Author = list415; - num = 1; - List list416 = new List(num); - CollectionsMarshal.SetCount(list416, num); - CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.None, null, null, 1190) + index = 1; + List list416 = new List(index); + CollectionsMarshal.SetCount(list416, index); + Span span416 = CollectionsMarshal.AsSpan(list416); + num = 0; + span416[num] = new QuestStep(EInteractionType.None, null, null, 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi }; @@ -22254,45 +26095,53 @@ public static class AssemblyGatheringLocationLoader num = 3; List list417 = new List(num); CollectionsMarshal.SetCount(list417, num); - Span span166 = CollectionsMarshal.AsSpan(list417); - ref GatheringNodeGroup reference307 = ref span166[0]; + Span span417 = CollectionsMarshal.AsSpan(list417); + index = 0; + ref GatheringNodeGroup reference307 = ref span417[index]; GatheringNodeGroup gatheringNodeGroup121 = new GatheringNodeGroup(); num2 = 2; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - Span span167 = CollectionsMarshal.AsSpan(list418); - ref GatheringNode reference308 = ref span167[0]; + Span span418 = CollectionsMarshal.AsSpan(list418); + num3 = 0; + ref GatheringNode reference308 = ref span418[num3]; GatheringNode obj187 = new GatheringNode { DataId = 34901u }; - num3 = 1; - List list419 = new List(num3); - CollectionsMarshal.SetCount(list419, num3); - CollectionsMarshal.AsSpan(list419)[0] = new GatheringLocation + num4 = 1; + List list419 = new List(num4); + CollectionsMarshal.SetCount(list419, num4); + Span span419 = CollectionsMarshal.AsSpan(list419); + index2 = 0; + span419[index2] = new GatheringLocation { Position = new Vector3(343.0447f, 0.1167868f, 146.4354f) }; obj187.Locations = list419; reference308 = obj187; - ref GatheringNode reference309 = ref span167[1]; + num3++; + ref GatheringNode reference309 = ref span418[num3]; GatheringNode obj188 = new GatheringNode { DataId = 34902u }; - num3 = 3; - List list420 = new List(num3); - CollectionsMarshal.SetCount(list420, num3); - Span span168 = CollectionsMarshal.AsSpan(list420); - span168[0] = new GatheringLocation + index2 = 3; + List list420 = new List(index2); + CollectionsMarshal.SetCount(list420, index2); + Span span420 = CollectionsMarshal.AsSpan(list420); + num4 = 0; + span420[num4] = new GatheringLocation { Position = new Vector3(350.1042f, -2.02238f, 133.0248f) }; - span168[1] = new GatheringLocation + num4++; + span420[num4] = new GatheringLocation { Position = new Vector3(349.9641f, 2.9944f, 166.7519f) }; - span168[2] = new GatheringLocation + num4++; + span420[num4] = new GatheringLocation { Position = new Vector3(358.951f, 1.226612f, 152.3553f) }; @@ -22300,44 +26149,52 @@ public static class AssemblyGatheringLocationLoader reference309 = obj188; gatheringNodeGroup121.Nodes = list418; reference307 = gatheringNodeGroup121; - ref GatheringNodeGroup reference310 = ref span166[1]; + index++; + ref GatheringNodeGroup reference310 = ref span417[index]; GatheringNodeGroup gatheringNodeGroup122 = new GatheringNodeGroup(); - num2 = 2; - List list421 = new List(num2); - CollectionsMarshal.SetCount(list421, num2); - Span span169 = CollectionsMarshal.AsSpan(list421); - ref GatheringNode reference311 = ref span169[0]; + num3 = 2; + List list421 = new List(num3); + CollectionsMarshal.SetCount(list421, num3); + Span span421 = CollectionsMarshal.AsSpan(list421); + num2 = 0; + ref GatheringNode reference311 = ref span421[num2]; GatheringNode obj189 = new GatheringNode { DataId = 34903u }; - num3 = 1; - List list422 = new List(num3); - CollectionsMarshal.SetCount(list422, num3); - CollectionsMarshal.AsSpan(list422)[0] = new GatheringLocation + num4 = 1; + List list422 = new List(num4); + CollectionsMarshal.SetCount(list422, num4); + Span span422 = CollectionsMarshal.AsSpan(list422); + index2 = 0; + span422[index2] = new GatheringLocation { Position = new Vector3(530.04f, 6.585761f, 243.3026f) }; obj189.Locations = list422; reference311 = obj189; - ref GatheringNode reference312 = ref span169[1]; + num2++; + ref GatheringNode reference312 = ref span421[num2]; GatheringNode obj190 = new GatheringNode { DataId = 34904u }; - num3 = 3; - List list423 = new List(num3); - CollectionsMarshal.SetCount(list423, num3); - Span span170 = CollectionsMarshal.AsSpan(list423); - span170[0] = new GatheringLocation + index2 = 3; + List list423 = new List(index2); + CollectionsMarshal.SetCount(list423, index2); + Span span423 = CollectionsMarshal.AsSpan(list423); + num4 = 0; + span423[num4] = new GatheringLocation { Position = new Vector3(534.63f, 7.40439f, 261.0851f) }; - span170[1] = new GatheringLocation + num4++; + span423[num4] = new GatheringLocation { Position = new Vector3(537.3219f, 6.59951f, 234.4762f) }; - span170[2] = new GatheringLocation + num4++; + span423[num4] = new GatheringLocation { Position = new Vector3(510.6736f, 5.43621f, 247.2418f), MinimumAngle = -135, @@ -22347,44 +26204,52 @@ public static class AssemblyGatheringLocationLoader reference312 = obj190; gatheringNodeGroup122.Nodes = list421; reference310 = gatheringNodeGroup122; - ref GatheringNodeGroup reference313 = ref span166[2]; + index++; + ref GatheringNodeGroup reference313 = ref span417[index]; GatheringNodeGroup gatheringNodeGroup123 = new GatheringNodeGroup(); num2 = 2; List list424 = new List(num2); CollectionsMarshal.SetCount(list424, num2); - Span span171 = CollectionsMarshal.AsSpan(list424); - ref GatheringNode reference314 = ref span171[0]; + Span span424 = CollectionsMarshal.AsSpan(list424); + num3 = 0; + ref GatheringNode reference314 = ref span424[num3]; GatheringNode obj191 = new GatheringNode { DataId = 34900u }; - num3 = 3; - List list425 = new List(num3); - CollectionsMarshal.SetCount(list425, num3); - Span span172 = CollectionsMarshal.AsSpan(list425); - span172[0] = new GatheringLocation + num4 = 3; + List list425 = new List(num4); + CollectionsMarshal.SetCount(list425, num4); + Span span425 = CollectionsMarshal.AsSpan(list425); + index2 = 0; + span425[index2] = new GatheringLocation { Position = new Vector3(571.4374f, 5.934396f, 93.85439f) }; - span172[1] = new GatheringLocation + index2++; + span425[index2] = new GatheringLocation { Position = new Vector3(580.9511f, 4.927295f, 64.64209f) }; - span172[2] = new GatheringLocation + index2++; + span425[index2] = new GatheringLocation { Position = new Vector3(595.0986f, 9.620093f, 81.96783f) }; obj191.Locations = list425; reference314 = obj191; - ref GatheringNode reference315 = ref span171[1]; + num3++; + ref GatheringNode reference315 = ref span424[num3]; GatheringNode obj192 = new GatheringNode { DataId = 34899u }; - num3 = 1; - List list426 = new List(num3); - CollectionsMarshal.SetCount(list426, num3); - CollectionsMarshal.AsSpan(list426)[0] = new GatheringLocation + index2 = 1; + List list426 = new List(index2); + CollectionsMarshal.SetCount(list426, index2); + Span span426 = CollectionsMarshal.AsSpan(list426); + num4 = 0; + span426[num4] = new GatheringLocation { Position = new Vector3(578.6227f, 5.976591f, 76.53668f) }; @@ -22402,12 +26267,16 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -22415,31 +26284,36 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref GatheringNode reference2 = ref span2[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int num3 = 0; + ref GatheringNode reference2 = ref span4[num3]; GatheringNode obj = new GatheringNode { DataId = 34906u }; - int num3 = 3; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new GatheringLocation + int num4 = 3; + List list5 = new List(num4); + CollectionsMarshal.SetCount(list5, num4); + Span span5 = CollectionsMarshal.AsSpan(list5); + int num5 = 0; + span5[num5] = new GatheringLocation { Position = new Vector3(236.4964f, -5.339633f, -346.5587f) }; - span3[1] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(252.2469f, -4.50562f, -352.3626f) }; - span3[2] = new GatheringLocation + num5++; + span5[num5] = new GatheringLocation { Position = new Vector3(270.0348f, 4.734006f, -370.3f), MinimumAngle = -5, @@ -22447,15 +26321,18 @@ public static class AssemblyGatheringLocationLoader }; obj.Locations = list5; reference2 = obj; - ref GatheringNode reference3 = ref span2[1]; + num3++; + ref GatheringNode reference3 = ref span4[num3]; GatheringNode obj2 = new GatheringNode { DataId = 34905u }; - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation + num5 = 1; + List list6 = new List(num5); + CollectionsMarshal.SetCount(list6, num5); + Span span6 = CollectionsMarshal.AsSpan(list6); + num4 = 0; + span6[num4] = new GatheringLocation { Position = new Vector3(291.2657f, 16.76923f, -372.8286f) }; @@ -22463,21 +26340,25 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference4 = ref span[1]; + index++; + ref GatheringNodeGroup reference4 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span4 = CollectionsMarshal.AsSpan(list7); - ref GatheringNode reference5 = ref span4[0]; + num3 = 2; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref GatheringNode reference5 = ref span7[num2]; GatheringNode obj3 = new GatheringNode { DataId = 34909u }; - num3 = 1; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = new GatheringLocation + num4 = 1; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + Span span8 = CollectionsMarshal.AsSpan(list8); + num5 = 0; + span8[num5] = new GatheringLocation { Position = new Vector3(452.2735f, 19.0634f, -350.683f), MinimumAngle = -55, @@ -22485,24 +26366,28 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - ref GatheringNode reference6 = ref span4[1]; + num2++; + ref GatheringNode reference6 = ref span7[num2]; GatheringNode obj4 = new GatheringNode { DataId = 34910u }; - num3 = 3; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = new GatheringLocation + num5 = 3; + List list9 = new List(num5); + CollectionsMarshal.SetCount(list9, num5); + Span span9 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span9[num4] = new GatheringLocation { Position = new Vector3(451.7433f, 18.42068f, -333.2723f) }; - span5[1] = new GatheringLocation + num4++; + span9[num4] = new GatheringLocation { Position = new Vector3(425.1651f, 19.24389f, -388.6381f) }; - span5[2] = new GatheringLocation + num4++; + span9[num4] = new GatheringLocation { Position = new Vector3(425.4706f, 18.96692f, -371.645f), MinimumAngle = -190, @@ -22512,44 +26397,52 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - ref GatheringNodeGroup reference7 = ref span[2]; + index++; + ref GatheringNodeGroup reference7 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref GatheringNode reference8 = ref span6[0]; + Span span10 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + ref GatheringNode reference8 = ref span10[num3]; GatheringNode obj5 = new GatheringNode { DataId = 34908u }; - num3 = 3; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span7 = CollectionsMarshal.AsSpan(list11); - span7[0] = new GatheringLocation + num4 = 3; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + Span span11 = CollectionsMarshal.AsSpan(list11); + num5 = 0; + span11[num5] = new GatheringLocation { Position = new Vector3(268.0552f, -4.003453f, -173.8766f) }; - span7[1] = new GatheringLocation + num5++; + span11[num5] = new GatheringLocation { Position = new Vector3(244.3824f, -8.541841f, -212.8872f) }; - span7[2] = new GatheringLocation + num5++; + span11[num5] = new GatheringLocation { Position = new Vector3(236.6972f, -13.99463f, -189.6181f) }; obj5.Locations = list11; reference8 = obj5; - ref GatheringNode reference9 = ref span6[1]; + num3++; + ref GatheringNode reference9 = ref span10[num3]; GatheringNode obj6 = new GatheringNode { DataId = 34907u }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation + num5 = 1; + List list12 = new List(num5); + CollectionsMarshal.SetCount(list12, num5); + Span span12 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span12[num4] = new GatheringLocation { Position = new Vector3(269.0605f, -6.302063f, -193.4243f) }; @@ -22560,16 +26453,19 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(1000, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + span13[num] = "liza"; gatheringRoot2.Author = list13; num = 3; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span8 = CollectionsMarshal.AsSpan(list14); - span8[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(417.1447f, -0.6f, -647.60004f), 1189) + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = new QuestStep(EInteractionType.Dive, null, new Vector3(417.1447f, -0.6f, -647.60004f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -22584,7 +26480,8 @@ public static class AssemblyGatheringLocationLoader } } }; - span8[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.1447f, 3f, -647.60004f), 1189) + index++; + span14[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.1447f, 3f, -647.60004f), 1189) { Fly = true, SkipConditions = new SkipConditions @@ -22595,54 +26492,63 @@ public static class AssemblyGatheringLocationLoader } } }; - span8[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(419.8578f, -32.6974f, -653.75275f), 1189) + index++; + span14[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(419.8578f, -32.6974f, -653.75275f), 1189) { DisableNavmesh = true, Fly = true }; gatheringRoot2.Steps = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span9 = CollectionsMarshal.AsSpan(list15); - ref GatheringNodeGroup reference10 = ref span9[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref GatheringNodeGroup reference10 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 2; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span10 = CollectionsMarshal.AsSpan(list16); - ref GatheringNode reference11 = ref span10[0]; + num3 = 2; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + ref GatheringNode reference11 = ref span16[num2]; GatheringNode obj7 = new GatheringNode { DataId = 34912u }; - num3 = 3; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - Span span11 = CollectionsMarshal.AsSpan(list17); - span11[0] = new GatheringLocation + num4 = 3; + List list17 = new List(num4); + CollectionsMarshal.SetCount(list17, num4); + Span span17 = CollectionsMarshal.AsSpan(list17); + num5 = 0; + span17[num5] = new GatheringLocation { Position = new Vector3(458.8916f, -51.02777f, -689.8627f) }; - span11[1] = new GatheringLocation + num5++; + span17[num5] = new GatheringLocation { Position = new Vector3(430.228f, -56.21914f, -693.9346f) }; - span11[2] = new GatheringLocation + num5++; + span17[num5] = new GatheringLocation { Position = new Vector3(462.8787f, -58.29268f, -704.244f) }; obj7.Locations = list17; reference11 = obj7; - ref GatheringNode reference12 = ref span10[1]; + num2++; + ref GatheringNode reference12 = ref span16[num2]; GatheringNode obj8 = new GatheringNode { DataId = 34911u }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation + num5 = 1; + List list18 = new List(num5); + CollectionsMarshal.SetCount(list18, num5); + Span span18 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span18[num4] = new GatheringLocation { Position = new Vector3(448.169f, -53.1458f, -696.1208f) }; @@ -22650,44 +26556,52 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - ref GatheringNodeGroup reference13 = ref span9[1]; + num++; + ref GatheringNodeGroup reference13 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span12 = CollectionsMarshal.AsSpan(list19); - ref GatheringNode reference14 = ref span12[0]; + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + ref GatheringNode reference14 = ref span19[num3]; GatheringNode obj9 = new GatheringNode { DataId = 34914u }; - num3 = 3; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span13 = CollectionsMarshal.AsSpan(list20); - span13[0] = new GatheringLocation + num4 = 3; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + Span span20 = CollectionsMarshal.AsSpan(list20); + num5 = 0; + span20[num5] = new GatheringLocation { Position = new Vector3(453.7438f, -59.20442f, -884.0787f) }; - span13[1] = new GatheringLocation + num5++; + span20[num5] = new GatheringLocation { Position = new Vector3(399.0516f, -48.41589f, -900.1575f) }; - span13[2] = new GatheringLocation + num5++; + span20[num5] = new GatheringLocation { Position = new Vector3(470.4918f, -54.81378f, -912.1257f) }; obj9.Locations = list20; reference14 = obj9; - ref GatheringNode reference15 = ref span12[1]; + num3++; + ref GatheringNode reference15 = ref span19[num3]; GatheringNode obj10 = new GatheringNode { DataId = 34913u }; - num3 = 1; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new GatheringLocation + num5 = 1; + List list21 = new List(num5); + CollectionsMarshal.SetCount(list21, num5); + Span span21 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span21[num4] = new GatheringLocation { Position = new Vector3(433.2036f, -56.63199f, -898.0532f) }; @@ -22695,44 +26609,52 @@ public static class AssemblyGatheringLocationLoader reference15 = obj10; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - ref GatheringNodeGroup reference16 = ref span9[2]; + num++; + ref GatheringNodeGroup reference16 = ref span15[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 2; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span14 = CollectionsMarshal.AsSpan(list22); - ref GatheringNode reference17 = ref span14[0]; + num3 = 2; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref GatheringNode reference17 = ref span22[num2]; GatheringNode obj11 = new GatheringNode { DataId = 34915u }; - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation + num4 = 1; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + Span span23 = CollectionsMarshal.AsSpan(list23); + num5 = 0; + span23[num5] = new GatheringLocation { Position = new Vector3(263.8979f, -44.71192f, -873.9875f) }; obj11.Locations = list23; reference17 = obj11; - ref GatheringNode reference18 = ref span14[1]; + num2++; + ref GatheringNode reference18 = ref span22[num2]; GatheringNode obj12 = new GatheringNode { DataId = 34916u }; - num3 = 3; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - Span span15 = CollectionsMarshal.AsSpan(list24); - span15[0] = new GatheringLocation + num5 = 3; + List list24 = new List(num5); + CollectionsMarshal.SetCount(list24, num5); + Span span24 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span24[num4] = new GatheringLocation { Position = new Vector3(287.7073f, -43.04572f, -886.5245f) }; - span15[1] = new GatheringLocation + num4++; + span24[num4] = new GatheringLocation { Position = new Vector3(266.3744f, -47.55014f, -846.1501f) }; - span15[2] = new GatheringLocation + num4++; + span24[num4] = new GatheringLocation { Position = new Vector3(259.2106f, -44.82758f, -817.9664f) }; @@ -22746,55 +26668,67 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "liza"; gatheringRoot3.Author = list25; - num = 1; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 1190); + index = 1; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + span26[num] = new QuestStep(EInteractionType.None, null, null, 1190); gatheringRoot3.Steps = list26; num = 3; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span16 = CollectionsMarshal.AsSpan(list27); - ref GatheringNodeGroup reference19 = ref span16[0]; + Span span27 = CollectionsMarshal.AsSpan(list27); + index = 0; + ref GatheringNodeGroup reference19 = ref span27[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span17 = CollectionsMarshal.AsSpan(list28); - ref GatheringNode reference20 = ref span17[0]; + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + ref GatheringNode reference20 = ref span28[num3]; GatheringNode obj13 = new GatheringNode { DataId = 34920u }; - num3 = 3; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span18 = CollectionsMarshal.AsSpan(list29); - span18[0] = new GatheringLocation + num4 = 3; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + Span span29 = CollectionsMarshal.AsSpan(list29); + num5 = 0; + span29[num5] = new GatheringLocation { Position = new Vector3(192.6021f, 12.31054f, 631.2545f) }; - span18[1] = new GatheringLocation + num5++; + span29[num5] = new GatheringLocation { Position = new Vector3(194.8373f, 12.50387f, 646.5401f) }; - span18[2] = new GatheringLocation + num5++; + span29[num5] = new GatheringLocation { Position = new Vector3(180.8447f, 12.43262f, 610.7131f) }; obj13.Locations = list29; reference20 = obj13; - ref GatheringNode reference21 = ref span17[1]; + num3++; + ref GatheringNode reference21 = ref span28[num3]; GatheringNode obj14 = new GatheringNode { DataId = 34919u }; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation + num5 = 1; + List list30 = new List(num5); + CollectionsMarshal.SetCount(list30, num5); + Span span30 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span30[num4] = new GatheringLocation { Position = new Vector3(186.171f, 12.54104f, 634.9042f) }; @@ -22802,44 +26736,52 @@ public static class AssemblyGatheringLocationLoader reference21 = obj14; gatheringNodeGroup7.Nodes = list28; reference19 = gatheringNodeGroup7; - ref GatheringNodeGroup reference22 = ref span16[1]; + index++; + ref GatheringNodeGroup reference22 = ref span27[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span19 = CollectionsMarshal.AsSpan(list31); - ref GatheringNode reference23 = ref span19[0]; + num3 = 2; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref GatheringNode reference23 = ref span31[num2]; GatheringNode obj15 = new GatheringNode { DataId = 34917u }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation + num4 = 1; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + Span span32 = CollectionsMarshal.AsSpan(list32); + num5 = 0; + span32[num5] = new GatheringLocation { Position = new Vector3(39.45634f, -0.06042051f, 502.3853f) }; obj15.Locations = list32; reference23 = obj15; - ref GatheringNode reference24 = ref span19[1]; + num2++; + ref GatheringNode reference24 = ref span31[num2]; GatheringNode obj16 = new GatheringNode { DataId = 34918u }; - num3 = 3; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span20 = CollectionsMarshal.AsSpan(list33); - span20[0] = new GatheringLocation + num5 = 3; + List list33 = new List(num5); + CollectionsMarshal.SetCount(list33, num5); + Span span33 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span33[num4] = new GatheringLocation { Position = new Vector3(46.03248f, -0.7049216f, 491.6059f) }; - span20[1] = new GatheringLocation + num4++; + span33[num4] = new GatheringLocation { Position = new Vector3(36.15481f, -0.0501074f, 505.9388f) }; - span20[2] = new GatheringLocation + num4++; + span33[num4] = new GatheringLocation { Position = new Vector3(24.72226f, 0.5922582f, 528.0809f) }; @@ -22847,44 +26789,52 @@ public static class AssemblyGatheringLocationLoader reference24 = obj16; gatheringNodeGroup8.Nodes = list31; reference22 = gatheringNodeGroup8; - ref GatheringNodeGroup reference25 = ref span16[2]; + index++; + ref GatheringNodeGroup reference25 = ref span27[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span21 = CollectionsMarshal.AsSpan(list34); - ref GatheringNode reference26 = ref span21[0]; + Span span34 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + ref GatheringNode reference26 = ref span34[num3]; GatheringNode obj17 = new GatheringNode { DataId = 34922u }; - num3 = 3; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - Span span22 = CollectionsMarshal.AsSpan(list35); - span22[0] = new GatheringLocation + num4 = 3; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + Span span35 = CollectionsMarshal.AsSpan(list35); + num5 = 0; + span35[num5] = new GatheringLocation { Position = new Vector3(2.302937f, -4.586716f, 687.4797f) }; - span22[1] = new GatheringLocation + num5++; + span35[num5] = new GatheringLocation { Position = new Vector3(30.02284f, -2.447479f, 704.4326f) }; - span22[2] = new GatheringLocation + num5++; + span35[num5] = new GatheringLocation { Position = new Vector3(41.59287f, -0.8454803f, 692.0099f) }; obj17.Locations = list35; reference26 = obj17; - ref GatheringNode reference27 = ref span21[1]; + num3++; + ref GatheringNode reference27 = ref span34[num3]; GatheringNode obj18 = new GatheringNode { DataId = 34921u }; - num3 = 1; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = new GatheringLocation + num5 = 1; + List list36 = new List(num5); + CollectionsMarshal.SetCount(list36, num5); + Span span36 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span36[num4] = new GatheringLocation { Position = new Vector3(18.47237f, -2.987581f, 690.8011f) }; @@ -22902,23 +26852,30 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 1189); + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot.Steps = list2; num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 1; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref GatheringNode reference2 = ref CollectionsMarshal.AsSpan(list4)[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index2 = 0; + ref GatheringNode reference2 = ref span4[index2]; GatheringNode obj = new GatheringNode { DataId = 35244u @@ -22926,7 +26883,9 @@ public static class AssemblyGatheringLocationLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(89.145f, -188.3096f, 261.9594f), MinimumAngle = -160, @@ -22936,20 +26895,25 @@ public static class AssemblyGatheringLocationLoader reference2 = obj; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference3 = ref span[1]; + index++; + ref GatheringNodeGroup reference3 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref GatheringNode reference4 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref GatheringNode reference4 = ref span6[num2]; GatheringNode obj2 = new GatheringNode { DataId = 35243u }; - num3 = 1; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = new GatheringLocation + index3 = 1; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span7[num3] = new GatheringLocation { Position = new Vector3(86.21152f, -188.234f, 255.0701f), MinimumAngle = -190, @@ -22959,12 +26923,15 @@ public static class AssemblyGatheringLocationLoader reference4 = obj2; gatheringNodeGroup2.Nodes = list6; reference3 = gatheringNodeGroup2; - ref GatheringNodeGroup reference5 = ref span[2]; + index++; + ref GatheringNodeGroup reference5 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref GatheringNode reference6 = ref CollectionsMarshal.AsSpan(list8)[0]; + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref GatheringNode reference6 = ref span8[index2]; GatheringNode obj3 = new GatheringNode { DataId = 35245u @@ -22972,7 +26939,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation + Span span9 = CollectionsMarshal.AsSpan(list9); + index3 = 0; + span9[index3] = new GatheringLocation { Position = new Vector3(81.46383f, -187.1622f, 251.1194f), MinimumAngle = -185, @@ -22985,34 +26954,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(1194, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "Theo"; + index = 1; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + span10[num] = "Theo"; gatheringRoot2.Author = list10; num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.None, null, null, 1189); + Span span11 = CollectionsMarshal.AsSpan(list11); + index = 0; + span11[index] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot2.Steps = list11; - num = 3; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span2 = CollectionsMarshal.AsSpan(list12); - ref GatheringNodeGroup reference7 = ref span2[0]; + index = 3; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + Span span12 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref GatheringNodeGroup reference7 = ref span12[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - ref GatheringNode reference8 = ref CollectionsMarshal.AsSpan(list13)[0]; + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + ref GatheringNode reference8 = ref span13[num2]; GatheringNode obj4 = new GatheringNode { DataId = 35246u }; - num3 = 1; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = new GatheringLocation + index3 = 1; + List list14 = new List(index3); + CollectionsMarshal.SetCount(list14, index3); + Span span14 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span14[num3] = new GatheringLocation { Position = new Vector3(-664.2164f, -174.1682f, 370.6607f), MinimumAngle = -230, @@ -23022,12 +27000,15 @@ public static class AssemblyGatheringLocationLoader reference8 = obj4; gatheringNodeGroup4.Nodes = list13; reference7 = gatheringNodeGroup4; - ref GatheringNodeGroup reference9 = ref span2[1]; + num++; + ref GatheringNodeGroup reference9 = ref span12[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref GatheringNode reference10 = ref CollectionsMarshal.AsSpan(list15)[0]; + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref GatheringNode reference10 = ref span15[index2]; GatheringNode obj5 = new GatheringNode { DataId = 35247u @@ -23035,7 +27016,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new GatheringLocation + Span span16 = CollectionsMarshal.AsSpan(list16); + index3 = 0; + span16[index3] = new GatheringLocation { Position = new Vector3(-646.3196f, -171.4666f, 393.6898f), MinimumAngle = 30, @@ -23045,20 +27028,25 @@ public static class AssemblyGatheringLocationLoader reference10 = obj5; gatheringNodeGroup5.Nodes = list15; reference9 = gatheringNodeGroup5; - ref GatheringNodeGroup reference11 = ref span2[2]; + num++; + ref GatheringNodeGroup reference11 = ref span12[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + ref GatheringNode reference12 = ref span17[num2]; GatheringNode obj6 = new GatheringNode { DataId = 35248u }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation + index3 = 1; + List list18 = new List(index3); + CollectionsMarshal.SetCount(list18, index3); + Span span18 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span18[num3] = new GatheringLocation { Position = new Vector3(-669.3735f, -177.0724f, 354.7159f), MinimumAngle = -225, @@ -23074,23 +27062,30 @@ public static class AssemblyGatheringLocationLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "liza"; + Span span19 = CollectionsMarshal.AsSpan(list19); + index = 0; + span19[index] = "liza"; gatheringRoot3.Author = list19; - num = 1; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.None, null, null, 1189); + index = 1; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + Span span20 = CollectionsMarshal.AsSpan(list20); + num = 0; + span20[num] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot3.Steps = list20; num = 3; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span3 = CollectionsMarshal.AsSpan(list21); - ref GatheringNodeGroup reference13 = ref span3[0]; + Span span21 = CollectionsMarshal.AsSpan(list21); + index = 0; + ref GatheringNodeGroup reference13 = ref span21[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list22)[0]; + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref GatheringNode reference14 = ref span22[index2]; GatheringNode obj7 = new GatheringNode { DataId = 35251u @@ -23098,7 +27093,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation + Span span23 = CollectionsMarshal.AsSpan(list23); + index3 = 0; + span23[index3] = new GatheringLocation { Position = new Vector3(-120.962f, -214.1182f, 349.0067f), MinimumAngle = -65, @@ -23108,20 +27105,25 @@ public static class AssemblyGatheringLocationLoader reference14 = obj7; gatheringNodeGroup7.Nodes = list22; reference13 = gatheringNodeGroup7; - ref GatheringNodeGroup reference15 = ref span3[1]; + index++; + ref GatheringNodeGroup reference15 = ref span21[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list24)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref GatheringNode reference16 = ref span24[num2]; GatheringNode obj8 = new GatheringNode { DataId = 35249u }; - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = new GatheringLocation + index3 = 1; + List list25 = new List(index3); + CollectionsMarshal.SetCount(list25, index3); + Span span25 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span25[num3] = new GatheringLocation { Position = new Vector3(-151.3246f, -213.9648f, 361.8845f), MinimumAngle = 145, @@ -23131,12 +27133,15 @@ public static class AssemblyGatheringLocationLoader reference16 = obj8; gatheringNodeGroup8.Nodes = list24; reference15 = gatheringNodeGroup8; - ref GatheringNodeGroup reference17 = ref span3[2]; + index++; + ref GatheringNodeGroup reference17 = ref span21[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - ref GatheringNode reference18 = ref CollectionsMarshal.AsSpan(list26)[0]; + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + ref GatheringNode reference18 = ref span26[index2]; GatheringNode obj9 = new GatheringNode { DataId = 35250u @@ -23144,7 +27149,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = new GatheringLocation + Span span27 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + span27[index3] = new GatheringLocation { Position = new Vector3(-164.6348f, -214.1782f, 337.2287f), MinimumAngle = -135, @@ -23157,34 +27164,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list21; AddLocation(1196, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + index = 1; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + Span span28 = CollectionsMarshal.AsSpan(list28); + num = 0; + span28[num] = "liza"; gatheringRoot4.Author = list28; num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.None, null, null, 1189); + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + span29[index] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot4.Steps = list29; - num = 3; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span4 = CollectionsMarshal.AsSpan(list30); - ref GatheringNodeGroup reference19 = ref span4[0]; + index = 3; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + Span span30 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref GatheringNodeGroup reference19 = ref span30[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - ref GatheringNode reference20 = ref CollectionsMarshal.AsSpan(list31)[0]; + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref GatheringNode reference20 = ref span31[num2]; GatheringNode obj10 = new GatheringNode { DataId = 35254u }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation + index3 = 1; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + Span span32 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span32[num3] = new GatheringLocation { Position = new Vector3(649.5298f, 14.19326f, -222.9378f) }; @@ -23192,12 +27208,15 @@ public static class AssemblyGatheringLocationLoader reference20 = obj10; gatheringNodeGroup10.Nodes = list31; reference19 = gatheringNodeGroup10; - ref GatheringNodeGroup reference21 = ref span4[1]; + num++; + ref GatheringNodeGroup reference21 = ref span30[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - ref GatheringNode reference22 = ref CollectionsMarshal.AsSpan(list33)[0]; + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + ref GatheringNode reference22 = ref span33[index2]; GatheringNode obj11 = new GatheringNode { DataId = 35252u @@ -23205,7 +27224,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - CollectionsMarshal.AsSpan(list34)[0] = new GatheringLocation + Span span34 = CollectionsMarshal.AsSpan(list34); + index3 = 0; + span34[index3] = new GatheringLocation { Position = new Vector3(652.2325f, 13.41525f, -227.1611f) }; @@ -23213,20 +27234,25 @@ public static class AssemblyGatheringLocationLoader reference22 = obj11; gatheringNodeGroup11.Nodes = list33; reference21 = gatheringNodeGroup11; - ref GatheringNodeGroup reference23 = ref span4[2]; + num++; + ref GatheringNodeGroup reference23 = ref span30[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - ref GatheringNode reference24 = ref CollectionsMarshal.AsSpan(list35)[0]; + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + ref GatheringNode reference24 = ref span35[num2]; GatheringNode obj12 = new GatheringNode { DataId = 35253u }; - num3 = 1; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = new GatheringLocation + index3 = 1; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + Span span36 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span36[num3] = new GatheringLocation { Position = new Vector3(657.8542f, 13.34004f, -225.5971f) }; @@ -23240,12 +27266,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + Span span37 = CollectionsMarshal.AsSpan(list37); + index = 0; + span37[index] = "liza"; gatheringRoot5.Author = list37; - num = 1; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + index = 1; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + Span span38 = CollectionsMarshal.AsSpan(list38); + num = 0; + span38[num] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -23265,13 +27295,16 @@ public static class AssemblyGatheringLocationLoader num = 3; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span5 = CollectionsMarshal.AsSpan(list39); - ref GatheringNodeGroup reference25 = ref span5[0]; + Span span39 = CollectionsMarshal.AsSpan(list39); + index = 0; + ref GatheringNodeGroup reference25 = ref span39[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list40)[0]; + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + ref GatheringNode reference26 = ref span40[index2]; GatheringNode obj13 = new GatheringNode { DataId = 35256u @@ -23279,7 +27312,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = new GatheringLocation + Span span41 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span41[index3] = new GatheringLocation { Position = new Vector3(23.8063f, 17.44395f, -861.3718f), MinimumAngle = -80, @@ -23289,20 +27324,25 @@ public static class AssemblyGatheringLocationLoader reference26 = obj13; gatheringNodeGroup13.Nodes = list40; reference25 = gatheringNodeGroup13; - ref GatheringNodeGroup reference27 = ref span5[1]; + index++; + ref GatheringNodeGroup reference27 = ref span39[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - ref GatheringNode reference28 = ref CollectionsMarshal.AsSpan(list42)[0]; + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + ref GatheringNode reference28 = ref span42[num2]; GatheringNode obj14 = new GatheringNode { DataId = 35257u }; - num3 = 1; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new GatheringLocation + index3 = 1; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span43[num3] = new GatheringLocation { Position = new Vector3(31.8484f, 17.91638f, -864.6296f), MinimumAngle = -90, @@ -23312,12 +27352,15 @@ public static class AssemblyGatheringLocationLoader reference28 = obj14; gatheringNodeGroup14.Nodes = list42; reference27 = gatheringNodeGroup14; - ref GatheringNodeGroup reference29 = ref span5[2]; + index++; + ref GatheringNodeGroup reference29 = ref span39[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - ref GatheringNode reference30 = ref CollectionsMarshal.AsSpan(list44)[0]; + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + ref GatheringNode reference30 = ref span44[index2]; GatheringNode obj15 = new GatheringNode { DataId = 35255u @@ -23325,7 +27368,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation + Span span45 = CollectionsMarshal.AsSpan(list45); + index3 = 0; + span45[index3] = new GatheringLocation { Position = new Vector3(37.64392f, 17.34943f, -865.3544f), MinimumAngle = -75, @@ -23338,15 +27383,19 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list39; AddLocation(1198, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "Censored"; + index = 1; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + Span span46 = CollectionsMarshal.AsSpan(list46); + num = 0; + span46[num] = "Censored"; gatheringRoot6.Author = list46; num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + Span span47 = CollectionsMarshal.AsSpan(list47); + index = 0; + span47[index] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -23363,24 +27412,29 @@ public static class AssemblyGatheringLocationLoader } }; gatheringRoot6.Steps = list47; - num = 3; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span6 = CollectionsMarshal.AsSpan(list48); - ref GatheringNodeGroup reference31 = ref span6[0]; + index = 3; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + Span span48 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref GatheringNodeGroup reference31 = ref span48[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - ref GatheringNode reference32 = ref CollectionsMarshal.AsSpan(list49)[0]; + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref GatheringNode reference32 = ref span49[num2]; GatheringNode obj16 = new GatheringNode { DataId = 35260u }; - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = new GatheringLocation + index3 = 1; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + Span span50 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span50[num3] = new GatheringLocation { Position = new Vector3(-601.0465f, 10.95519f, -366.7967f), MinimumAngle = -215, @@ -23390,12 +27444,15 @@ public static class AssemblyGatheringLocationLoader reference32 = obj16; gatheringNodeGroup16.Nodes = list49; reference31 = gatheringNodeGroup16; - ref GatheringNodeGroup reference33 = ref span6[1]; + num++; + ref GatheringNodeGroup reference33 = ref span48[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - ref GatheringNode reference34 = ref CollectionsMarshal.AsSpan(list51)[0]; + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + ref GatheringNode reference34 = ref span51[index2]; GatheringNode obj17 = new GatheringNode { DataId = 35259u @@ -23403,7 +27460,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new GatheringLocation + Span span52 = CollectionsMarshal.AsSpan(list52); + index3 = 0; + span52[index3] = new GatheringLocation { Position = new Vector3(-606.3102f, 11.02901f, -372.3002f), MinimumAngle = -240, @@ -23413,20 +27472,25 @@ public static class AssemblyGatheringLocationLoader reference34 = obj17; gatheringNodeGroup17.Nodes = list51; reference33 = gatheringNodeGroup17; - ref GatheringNodeGroup reference35 = ref span6[2]; + num++; + ref GatheringNodeGroup reference35 = ref span48[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - ref GatheringNode reference36 = ref CollectionsMarshal.AsSpan(list53)[0]; + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref GatheringNode reference36 = ref span53[num2]; GatheringNode obj18 = new GatheringNode { DataId = 35258u }; - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation + index3 = 1; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + Span span54 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span54[num3] = new GatheringLocation { Position = new Vector3(-612.5112f, 11.75366f, -374.3395f), MinimumAngle = -235, @@ -23446,23 +27510,30 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; gatheringRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 1189); + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot.Steps = list2; num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - ref GatheringNodeGroup reference = ref span[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + index = 0; + ref GatheringNodeGroup reference = ref span3[index]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 1; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref GatheringNode reference2 = ref CollectionsMarshal.AsSpan(list4)[0]; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index2 = 0; + ref GatheringNode reference2 = ref span4[index2]; GatheringNode obj = new GatheringNode { DataId = 35262u @@ -23470,7 +27541,9 @@ public static class AssemblyGatheringLocationLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = new GatheringLocation { Position = new Vector3(217.4239f, -190.3947f, 299.83f), MinimumAngle = -100, @@ -23480,20 +27553,25 @@ public static class AssemblyGatheringLocationLoader reference2 = obj; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - ref GatheringNodeGroup reference3 = ref span[1]; + index++; + ref GatheringNodeGroup reference3 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref GatheringNode reference4 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref GatheringNode reference4 = ref span6[num2]; GatheringNode obj2 = new GatheringNode { DataId = 35263u }; - num3 = 1; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = new GatheringLocation + index3 = 1; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span7[num3] = new GatheringLocation { Position = new Vector3(208.6546f, -191.3975f, 297.5333f), MinimumAngle = 0, @@ -23503,12 +27581,15 @@ public static class AssemblyGatheringLocationLoader reference4 = obj2; gatheringNodeGroup2.Nodes = list6; reference3 = gatheringNodeGroup2; - ref GatheringNodeGroup reference5 = ref span[2]; + index++; + ref GatheringNodeGroup reference5 = ref span3[index]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref GatheringNode reference6 = ref CollectionsMarshal.AsSpan(list8)[0]; + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref GatheringNode reference6 = ref span8[index2]; GatheringNode obj3 = new GatheringNode { DataId = 35261u @@ -23516,7 +27597,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation + Span span9 = CollectionsMarshal.AsSpan(list9); + index3 = 0; + span9[index3] = new GatheringLocation { Position = new Vector3(212.4513f, -192.6452f, 292.6832f), MinimumAngle = 85, @@ -23529,34 +27612,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(1200, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - num = 1; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "Theo"; + index = 1; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + span10[num] = "Theo"; gatheringRoot2.Author = list10; num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.None, null, null, 1189); + Span span11 = CollectionsMarshal.AsSpan(list11); + index = 0; + span11[index] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot2.Steps = list11; - num = 3; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span2 = CollectionsMarshal.AsSpan(list12); - ref GatheringNodeGroup reference7 = ref span2[0]; + index = 3; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + Span span12 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref GatheringNodeGroup reference7 = ref span12[num]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - ref GatheringNode reference8 = ref CollectionsMarshal.AsSpan(list13)[0]; + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + ref GatheringNode reference8 = ref span13[num2]; GatheringNode obj4 = new GatheringNode { DataId = 35264u }; - num3 = 1; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = new GatheringLocation + index3 = 1; + List list14 = new List(index3); + CollectionsMarshal.SetCount(list14, index3); + Span span14 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span14[num3] = new GatheringLocation { Position = new Vector3(-594.4667f, -169.826f, 379.3596f), MinimumAngle = -360, @@ -23566,12 +27658,15 @@ public static class AssemblyGatheringLocationLoader reference8 = obj4; gatheringNodeGroup4.Nodes = list13; reference7 = gatheringNodeGroup4; - ref GatheringNodeGroup reference9 = ref span2[1]; + num++; + ref GatheringNodeGroup reference9 = ref span12[num]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref GatheringNode reference10 = ref CollectionsMarshal.AsSpan(list15)[0]; + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref GatheringNode reference10 = ref span15[index2]; GatheringNode obj5 = new GatheringNode { DataId = 35265u @@ -23579,7 +27674,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new GatheringLocation + Span span16 = CollectionsMarshal.AsSpan(list16); + index3 = 0; + span16[index3] = new GatheringLocation { Position = new Vector3(-611.1483f, -174.4638f, 343.6277f), MinimumAngle = -360, @@ -23589,20 +27686,25 @@ public static class AssemblyGatheringLocationLoader reference10 = obj5; gatheringNodeGroup5.Nodes = list15; reference9 = gatheringNodeGroup5; - ref GatheringNodeGroup reference11 = ref span2[2]; + num++; + ref GatheringNodeGroup reference11 = ref span12[num]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + ref GatheringNode reference12 = ref span17[num2]; GatheringNode obj6 = new GatheringNode { DataId = 35266u }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation + index3 = 1; + List list18 = new List(index3); + CollectionsMarshal.SetCount(list18, index3); + Span span18 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span18[num3] = new GatheringLocation { Position = new Vector3(-639.3258f, -171.871f, 388.8273f), MinimumAngle = -360, @@ -23618,23 +27720,30 @@ public static class AssemblyGatheringLocationLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "liza"; + Span span19 = CollectionsMarshal.AsSpan(list19); + index = 0; + span19[index] = "liza"; gatheringRoot3.Author = list19; - num = 1; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.None, null, null, 1189); + index = 1; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + Span span20 = CollectionsMarshal.AsSpan(list20); + num = 0; + span20[num] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot3.Steps = list20; num = 3; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span3 = CollectionsMarshal.AsSpan(list21); - ref GatheringNodeGroup reference13 = ref span3[0]; + Span span21 = CollectionsMarshal.AsSpan(list21); + index = 0; + ref GatheringNodeGroup reference13 = ref span21[index]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list22)[0]; + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref GatheringNode reference14 = ref span22[index2]; GatheringNode obj7 = new GatheringNode { DataId = 35267u @@ -23642,7 +27751,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation + Span span23 = CollectionsMarshal.AsSpan(list23); + index3 = 0; + span23[index3] = new GatheringLocation { Position = new Vector3(-136.4091f, -213.3115f, 348.263f), MinimumAngle = -115, @@ -23654,20 +27765,25 @@ public static class AssemblyGatheringLocationLoader reference14 = obj7; gatheringNodeGroup7.Nodes = list22; reference13 = gatheringNodeGroup7; - ref GatheringNodeGroup reference15 = ref span3[1]; + index++; + ref GatheringNodeGroup reference15 = ref span21[index]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list24)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref GatheringNode reference16 = ref span24[num2]; GatheringNode obj8 = new GatheringNode { DataId = 35269u }; - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = new GatheringLocation + index3 = 1; + List list25 = new List(index3); + CollectionsMarshal.SetCount(list25, index3); + Span span25 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span25[num3] = new GatheringLocation { Position = new Vector3(-138.786f, -213.2544f, 335.4114f), MinimumAngle = -220, @@ -23679,12 +27795,15 @@ public static class AssemblyGatheringLocationLoader reference16 = obj8; gatheringNodeGroup8.Nodes = list24; reference15 = gatheringNodeGroup8; - ref GatheringNodeGroup reference17 = ref span3[2]; + index++; + ref GatheringNodeGroup reference17 = ref span21[index]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - ref GatheringNode reference18 = ref CollectionsMarshal.AsSpan(list26)[0]; + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + ref GatheringNode reference18 = ref span26[index2]; GatheringNode obj9 = new GatheringNode { DataId = 35268u @@ -23692,7 +27811,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = new GatheringLocation + Span span27 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + span27[index3] = new GatheringLocation { Position = new Vector3(-147.5682f, -212.363f, 348.0441f), MinimumAngle = 30, @@ -23707,34 +27828,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list21; AddLocation(1202, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - num = 1; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + index = 1; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + Span span28 = CollectionsMarshal.AsSpan(list28); + num = 0; + span28[num] = "liza"; gatheringRoot4.Author = list28; num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.None, null, null, 1189); + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + span29[index] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot4.Steps = list29; - num = 3; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span4 = CollectionsMarshal.AsSpan(list30); - ref GatheringNodeGroup reference19 = ref span4[0]; + index = 3; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + Span span30 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref GatheringNodeGroup reference19 = ref span30[num]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - ref GatheringNode reference20 = ref CollectionsMarshal.AsSpan(list31)[0]; + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref GatheringNode reference20 = ref span31[num2]; GatheringNode obj10 = new GatheringNode { DataId = 35272u }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation + index3 = 1; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + Span span32 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span32[num3] = new GatheringLocation { Position = new Vector3(712.1951f, 19.23321f, -299.8495f), MinimumAngle = 195, @@ -23744,12 +27874,15 @@ public static class AssemblyGatheringLocationLoader reference20 = obj10; gatheringNodeGroup10.Nodes = list31; reference19 = gatheringNodeGroup10; - ref GatheringNodeGroup reference21 = ref span4[1]; + num++; + ref GatheringNodeGroup reference21 = ref span30[num]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - ref GatheringNode reference22 = ref CollectionsMarshal.AsSpan(list33)[0]; + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + ref GatheringNode reference22 = ref span33[index2]; GatheringNode obj11 = new GatheringNode { DataId = 35270u @@ -23757,7 +27890,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - CollectionsMarshal.AsSpan(list34)[0] = new GatheringLocation + Span span34 = CollectionsMarshal.AsSpan(list34); + index3 = 0; + span34[index3] = new GatheringLocation { Position = new Vector3(740.6464f, 23.75824f, -303.4917f), MinimumAngle = -20, @@ -23767,20 +27902,25 @@ public static class AssemblyGatheringLocationLoader reference22 = obj11; gatheringNodeGroup11.Nodes = list33; reference21 = gatheringNodeGroup11; - ref GatheringNodeGroup reference23 = ref span4[2]; + num++; + ref GatheringNodeGroup reference23 = ref span30[num]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - ref GatheringNode reference24 = ref CollectionsMarshal.AsSpan(list35)[0]; + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + ref GatheringNode reference24 = ref span35[num2]; GatheringNode obj12 = new GatheringNode { DataId = 35271u }; - num3 = 1; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = new GatheringLocation + index3 = 1; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + Span span36 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span36[num3] = new GatheringLocation { Position = new Vector3(702.0139f, 21.35347f, -331.0941f), MinimumAngle = -140, @@ -23796,12 +27936,16 @@ public static class AssemblyGatheringLocationLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + Span span37 = CollectionsMarshal.AsSpan(list37); + index = 0; + span37[index] = "liza"; gatheringRoot5.Author = list37; - num = 1; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + index = 1; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + Span span38 = CollectionsMarshal.AsSpan(list38); + num = 0; + span38[num] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -23821,13 +27965,16 @@ public static class AssemblyGatheringLocationLoader num = 3; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span5 = CollectionsMarshal.AsSpan(list39); - ref GatheringNodeGroup reference25 = ref span5[0]; + Span span39 = CollectionsMarshal.AsSpan(list39); + index = 0; + ref GatheringNodeGroup reference25 = ref span39[index]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list40)[0]; + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + ref GatheringNode reference26 = ref span40[index2]; GatheringNode obj13 = new GatheringNode { DataId = 35273u @@ -23835,7 +27982,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = new GatheringLocation + Span span41 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span41[index3] = new GatheringLocation { Position = new Vector3(-104.9523f, 10.90963f, -784.3555f), MinimumAngle = 185, @@ -23845,20 +27994,25 @@ public static class AssemblyGatheringLocationLoader reference26 = obj13; gatheringNodeGroup13.Nodes = list40; reference25 = gatheringNodeGroup13; - ref GatheringNodeGroup reference27 = ref span5[1]; + index++; + ref GatheringNodeGroup reference27 = ref span39[index]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - ref GatheringNode reference28 = ref CollectionsMarshal.AsSpan(list42)[0]; + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + ref GatheringNode reference28 = ref span42[num2]; GatheringNode obj14 = new GatheringNode { DataId = 35275u }; - num3 = 1; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new GatheringLocation + index3 = 1; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span43[num3] = new GatheringLocation { Position = new Vector3(-93.91187f, 2.599666f, -756.9727f), MinimumAngle = 75, @@ -23868,12 +28022,15 @@ public static class AssemblyGatheringLocationLoader reference28 = obj14; gatheringNodeGroup14.Nodes = list42; reference27 = gatheringNodeGroup14; - ref GatheringNodeGroup reference29 = ref span5[2]; + index++; + ref GatheringNodeGroup reference29 = ref span39[index]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - ref GatheringNode reference30 = ref CollectionsMarshal.AsSpan(list44)[0]; + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + ref GatheringNode reference30 = ref span44[index2]; GatheringNode obj15 = new GatheringNode { DataId = 35274u @@ -23881,7 +28038,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation + Span span45 = CollectionsMarshal.AsSpan(list45); + index3 = 0; + span45[index3] = new GatheringLocation { Position = new Vector3(-78.69253f, 14.48961f, -810.1029f), MinimumAngle = -85, @@ -23894,15 +28053,19 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list39; AddLocation(1204, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - num = 1; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "Censored"; + index = 1; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + Span span46 = CollectionsMarshal.AsSpan(list46); + num = 0; + span46[num] = "Censored"; gatheringRoot6.Author = list46; num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.None, null, null, 1189) + Span span47 = CollectionsMarshal.AsSpan(list47); + index = 0; + span47[index] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -23919,24 +28082,29 @@ public static class AssemblyGatheringLocationLoader } }; gatheringRoot6.Steps = list47; - num = 3; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span6 = CollectionsMarshal.AsSpan(list48); - ref GatheringNodeGroup reference31 = ref span6[0]; + index = 3; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + Span span48 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref GatheringNodeGroup reference31 = ref span48[num]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - ref GatheringNode reference32 = ref CollectionsMarshal.AsSpan(list49)[0]; + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref GatheringNode reference32 = ref span49[num2]; GatheringNode obj16 = new GatheringNode { DataId = 35278u }; - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = new GatheringLocation + index3 = 1; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + Span span50 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span50[num3] = new GatheringLocation { Position = new Vector3(-576.3171f, 4.257174f, -398.7203f) }; @@ -23944,12 +28112,15 @@ public static class AssemblyGatheringLocationLoader reference32 = obj16; gatheringNodeGroup16.Nodes = list49; reference31 = gatheringNodeGroup16; - ref GatheringNodeGroup reference33 = ref span6[1]; + num++; + ref GatheringNodeGroup reference33 = ref span48[num]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - ref GatheringNode reference34 = ref CollectionsMarshal.AsSpan(list51)[0]; + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + ref GatheringNode reference34 = ref span51[index2]; GatheringNode obj17 = new GatheringNode { DataId = 35277u @@ -23957,7 +28128,9 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new GatheringLocation + Span span52 = CollectionsMarshal.AsSpan(list52); + index3 = 0; + span52[index3] = new GatheringLocation { Position = new Vector3(-578.7101f, 3.045597f, -403.618f) }; @@ -23965,20 +28138,25 @@ public static class AssemblyGatheringLocationLoader reference34 = obj17; gatheringNodeGroup17.Nodes = list51; reference33 = gatheringNodeGroup17; - ref GatheringNodeGroup reference35 = ref span6[2]; + num++; + ref GatheringNodeGroup reference35 = ref span48[num]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - ref GatheringNode reference36 = ref CollectionsMarshal.AsSpan(list53)[0]; + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref GatheringNode reference36 = ref span53[num2]; GatheringNode obj18 = new GatheringNode { DataId = 35276u }; - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation + index3 = 1; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + Span span54 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span54[num3] = new GatheringLocation { Position = new Vector3(-576.8013f, 3.518943f, -406.4176f) }; diff --git a/QuestPaths/Questionable.QuestPaths.QuestSchema b/QuestPaths/Questionable.QuestPaths.QuestSchema index 6edb122..bd8a34d 100644 --- a/QuestPaths/Questionable.QuestPaths.QuestSchema +++ b/QuestPaths/Questionable.QuestPaths.QuestSchema @@ -90,21 +90,6 @@ "description": "The data id of the NPC/Object/Aetheryte/Aether Current", "exclusiveMinimum": 0 }, - "DataIds": { - "type": "array", - "description": "Multiple data ids to search for (e.g. for clearing randomly spawned objects)", - "items": { - "type": "integer", - "exclusiveMinimum": 0 - } - }, - "WaypointPositions": { - "type": "array", - "description": "Exit/waypoint positions to walk to after clearing all DataIds objects (e.g. doors between zones in a looping duty)", - "items": { - "$ref": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-vector3.json" - } - }, "Position": { "$ref": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-vector3.json" }, @@ -639,9 +624,8 @@ } }, "then": { - "anyOf": [ - { "required": ["Position"] }, - { "required": ["DataId"] } + "required": [ + "Position" ] } }, @@ -1432,10 +1416,7 @@ "Cheer Rhythm: Red", "Cheer Rhythm: Blue", "Cheer Rhythm: Green", - "Cheer Rhythm: Yellow", - "Pruning Pirouette", - "Roaring Eggscapade", - "The Spriganator" + "Cheer Rhythm: Yellow" ] } }, diff --git a/QuestPaths/Questionable.QuestPaths/AssemblyQuestLoader.cs b/QuestPaths/Questionable.QuestPaths/AssemblyQuestLoader.cs index 491c956..c22e68f 100644 --- a/QuestPaths/Questionable.QuestPaths/AssemblyQuestLoader.cs +++ b/QuestPaths/Questionable.QuestPaths/AssemblyQuestLoader.cs @@ -149,12 +149,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "WigglyMuffin"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "WigglyMuffin"; questRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - ref QuestSequence reference = ref CollectionsMarshal.AsSpan(list2)[0]; + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -162,8 +166,9 @@ public static class AssemblyQuestLoader int num2 = 8; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span = CollectionsMarshal.AsSpan(list3); - span[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) + Span span3 = CollectionsMarshal.AsSpan(list3); + int num3 = 0; + span3[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -175,16 +180,19 @@ public static class AssemblyQuestLoader } } }; - span[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaHawkersAlley, AetheryteShortcut = EAetheryteLocation.Limsa }; - span[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaArcanist }; - span[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaFisher, AethernetShortcut = new AethernetShortcut @@ -193,7 +201,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaHawkersAlley } }; - span[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) { TargetTerritoryId = (ushort)128, Comment = "Walk to Culinarians' Guild", @@ -203,15 +212,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Limsa } }; - span[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaCulinarian }; - span[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaMarauder }; - span[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + num3++; + span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaAftcastle }; @@ -224,39 +236,48 @@ public static class AssemblyQuestLoader num = 1; List list4 = new List(num); CollectionsMarshal.SetCount(list4, num); - CollectionsMarshal.AsSpan(list4)[0] = "liza"; + Span span4 = CollectionsMarshal.AsSpan(list4); + index = 0; + span4[index] = "liza"; questRoot2.Author = list4; - num = 2; - List list5 = new List(num); - CollectionsMarshal.SetCount(list5, num); - Span span2 = CollectionsMarshal.AsSpan(list5); - ref QuestSequence reference2 = ref span2[0]; + index = 2; + List list5 = new List(index); + CollectionsMarshal.SetCount(list5, index); + Span span5 = CollectionsMarshal.AsSpan(list5); + num = 0; + ref QuestSequence reference2 = ref span5[num]; QuestSequence obj2 = new QuestSequence { Sequence = 0 }; - num2 = 4; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 478) + num3 = 4; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 478) { TargetClass = EExtendedClassJob.BlueMage }; - span3[1] = new QuestStep(EInteractionType.Gather, null, null, 478); - span3[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.31451f, 206.56206f, 29.3684f), 478) + num2++; + span6[num2] = new QuestStep(EInteractionType.Gather, null, null, 478); + num2++; + span6[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.31451f, 206.56206f, 29.3684f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; - ref QuestStep reference3 = ref span3[3]; + num2++; + ref QuestStep reference3 = ref span6[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1019615u, new Vector3(-71.763245f, 206.50021f, 32.638916f), 478) { StopDistance = 5f }; - int num3 = 1; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = new DialogueChoice + int num4 = 1; + List list7 = new List(num4); + CollectionsMarshal.SetCount(list7, num4); + Span span7 = CollectionsMarshal.AsSpan(list7); + int index2 = 0; + span7[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/003/CtsSfsCharacter1_00386", @@ -268,7 +289,8 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list6; reference2 = obj2; - ref QuestSequence reference4 = ref span2[1]; + num++; + ref QuestSequence reference4 = ref span5[num]; QuestSequence obj4 = new QuestSequence { Sequence = 1 @@ -276,12 +298,16 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list8)[0]; + Span span8 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + ref QuestStep reference5 = ref span8[num3]; QuestStep questStep = new QuestStep(EInteractionType.None, null, null, 635); - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new DialogueChoice + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span9[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/003/CtsSfsCharacter1_00386", @@ -299,21 +325,26 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "WigglyMuffin"; + Span span10 = CollectionsMarshal.AsSpan(list10); + index = 0; + span10[index] = "WigglyMuffin"; questRoot3.Author = list10; - num = 1; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - ref QuestSequence reference6 = ref CollectionsMarshal.AsSpan(list11)[0]; + index = 1; + List list11 = new List(index); + CollectionsMarshal.SetCount(list11, index); + Span span11 = CollectionsMarshal.AsSpan(list11); + num = 0; + ref QuestSequence reference6 = ref span11[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - num2 = 10; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - Span span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) + num3 = 10; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -325,24 +356,30 @@ public static class AssemblyQuestLoader } } }; - span4[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + num2++; + span12[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - span4[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) + num2++; + span12[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) { TargetTerritoryId = (ushort)133 }; - span4[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span12[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - span4[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); - span4[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span12[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); + num2++; + span12[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - span4[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span12[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -351,12 +388,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - span4[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); - span4[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span12[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); + num2++; + span12[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - span4[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span12[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -374,13 +414,16 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + Span span13 = CollectionsMarshal.AsSpan(list13); + index = 0; + span13[index] = "liza"; questRoot4.Author = list13; - num = 2; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span5 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference7 = ref span5[0]; + index = 2; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference7 = ref span14[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -388,13 +431,16 @@ public static class AssemblyQuestLoader num2 = 3; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span6 = CollectionsMarshal.AsSpan(list15); - span6[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 635) + Span span15 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span15[num3] = new QuestStep(EInteractionType.SwitchClass, null, null, 635) { TargetClass = EExtendedClassJob.BlueMage }; - span6[1] = new QuestStep(EInteractionType.Gather, null, null, 635); - ref QuestStep reference8 = ref span6[2]; + num3++; + span15[num3] = new QuestStep(EInteractionType.Gather, null, null, 635); + num3++; + ref QuestStep reference8 = ref span15[num3]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 1020337u, new Vector3(171.31299f, 13.02367f, -89.951965f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -404,10 +450,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RhalgrsReachNorthEast } }; - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice + num4 = 1; + List list16 = new List(num4); + CollectionsMarshal.SetCount(list16, num4); + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/004/CtsSfsCharacter2_00434", @@ -419,20 +467,25 @@ public static class AssemblyQuestLoader reference8 = obj7; obj6.Steps = list15; reference7 = obj6; - ref QuestSequence reference9 = ref span5[1]; + num++; + ref QuestSequence reference9 = ref span14[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - ref QuestStep reference10 = ref CollectionsMarshal.AsSpan(list17)[0]; - QuestStep questStep2 = new QuestStep(EInteractionType.None, null, null, 635); num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new DialogueChoice + List list17 = new List(num3); + CollectionsMarshal.SetCount(list17, num3); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + ref QuestStep reference10 = ref span17[num2]; + QuestStep questStep2 = new QuestStep(EInteractionType.None, null, null, 635); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span18[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/004/CtsSfsCharacter2_00434", @@ -450,12 +503,16 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "WigglyMuffin"; + Span span19 = CollectionsMarshal.AsSpan(list19); + index = 0; + span19[index] = "WigglyMuffin"; questRoot5.Author = list19; - num = 1; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - ref QuestSequence reference11 = ref CollectionsMarshal.AsSpan(list20)[0]; + index = 1; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + Span span20 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference11 = ref span20[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -463,8 +520,9 @@ public static class AssemblyQuestLoader num2 = 10; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span7 = CollectionsMarshal.AsSpan(list21); - span7[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) + Span span21 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span21[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -476,33 +534,42 @@ public static class AssemblyQuestLoader } } }; - span7[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + num3++; + span21[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahAdventurers }; - span7[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); - span7[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num3++; + span21[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); + num3++; + span21[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahSapphireAvenue }; - span7[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num3++; + span21[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahWeaver }; - span7[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num3++; + span21[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahMiner }; - span7[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num3++; + span21[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGoldsmith }; - span7[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num3++; + span21[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGladiator }; - span7[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.64317f, 7.734872f, 9.960203f), 131); - span7[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + num3++; + span21[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.64317f, 7.734872f, 9.960203f), 131); + num3++; + span21[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahThaumaturge }; @@ -515,21 +582,26 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "Cacahuetes"; + Span span22 = CollectionsMarshal.AsSpan(list22); + index = 0; + span22[index] = "Cacahuetes"; questRoot6.Author = list22; - num = 2; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span8 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference12 = ref span8[0]; + index = 2; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + Span span23 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference12 = ref span23[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list24)[0]; + num3 = 1; + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference13 = ref span24[num2]; QuestStep obj11 = new QuestStep(EInteractionType.AcceptQuest, 1000294u, new Vector3(-238.05603f, 8f, -142.93127f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -544,17 +616,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = 133; + num4 = 1; + List list25 = new List(num4); + CollectionsMarshal.SetCount(list25, num4); + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = 133; obj12.InTerritory = list25; skipConditions.AetheryteShortcutIf = obj12; obj11.SkipConditions = skipConditions; reference13 = obj11; obj10.Steps = list24; reference12 = obj10; - ref QuestSequence reference14 = ref span8[1]; + num++; + ref QuestSequence reference14 = ref span23[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -562,12 +637,16 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list26)[0]; + Span span26 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + ref QuestStep reference15 = ref span26[num3]; QuestStep questStep3 = new QuestStep(EInteractionType.CompleteQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133); - num3 = 1; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = new DialogueChoice + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num4 = 0; + span27[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSHRV001_00003_Q1_000_1") @@ -584,35 +663,43 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + Span span28 = CollectionsMarshal.AsSpan(list28); + index = 0; + span28[index] = "liza"; questRoot7.Author = list28; - num = 2; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span9 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference16 = ref span9[0]; + index = 2; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + Span span29 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference16 = ref span29[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - Span span10 = CollectionsMarshal.AsSpan(list30); - span10[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 613) + num3 = 3; + List list30 = new List(num3); + CollectionsMarshal.SetCount(list30, num3); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span30[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 613) { TargetClass = EExtendedClassJob.BlueMage }; - span10[1] = new QuestStep(EInteractionType.Gather, null, null, 613); - ref QuestStep reference17 = ref span10[2]; + num2++; + span30[num2] = new QuestStep(EInteractionType.Gather, null, null, 613); + num2++; + ref QuestStep reference17 = ref span30[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num3 = 1; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = new DialogueChoice + num4 = 1; + List list31 = new List(num4); + CollectionsMarshal.SetCount(list31, num4); + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span31[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/004/CtsSfsCharacter3_00481", @@ -624,7 +711,8 @@ public static class AssemblyQuestLoader reference17 = obj15; obj14.Steps = list30; reference16 = obj14; - ref QuestSequence reference18 = ref span9[1]; + num++; + ref QuestSequence reference18 = ref span29[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -632,12 +720,16 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list32)[0]; + Span span32 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + ref QuestStep reference19 = ref span32[num3]; QuestStep questStep4 = new QuestStep(EInteractionType.None, null, null, 613); - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new DialogueChoice + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span33[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/004/CtsSfsCharacter3_00481", @@ -655,21 +747,26 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "WigglyMuffin"; + Span span34 = CollectionsMarshal.AsSpan(list34); + index = 0; + span34[index] = "WigglyMuffin"; questRoot8.Author = list34; - num = 1; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - ref QuestSequence reference20 = ref CollectionsMarshal.AsSpan(list35)[0]; + index = 1; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + Span span35 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference20 = ref span35[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - num2 = 15; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span11 = CollectionsMarshal.AsSpan(list36); - span11[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 144) + num3 = 15; + List list36 = new List(num3); + CollectionsMarshal.SetCount(list36, num3); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 144) { Aetheryte = EAetheryteLocation.GoldSaucer, AetheryteShortcut = EAetheryteLocation.GoldSaucer, @@ -681,26 +778,31 @@ public static class AssemblyQuestLoader } } }; - span11[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + num2++; + span36[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerEntranceCardSquares }; - span11[2] = new QuestStep(EInteractionType.Interact, 1011044u, new Vector3(-84.45868f, 3.7690625E-06f, 29.06836f), 144) + num2++; + span36[num2] = new QuestStep(EInteractionType.Interact, 1011044u, new Vector3(-84.45868f, 3.7690625E-06f, 29.06836f), 144) { TargetTerritoryId = (ushort)388 }; - span11[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) + num2++; + span36[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) { StopDistance = 5f, AethernetShard = EAetheryteLocation.GoldSaucerMinionSquare }; - span11[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) + num2++; + span36[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerChocoboSquare }; - span11[5] = new QuestStep(EInteractionType.None, null, null, 388) + num2++; + span36[num2] = new QuestStep(EInteractionType.None, null, null, 388) { AethernetShortcut = new AethernetShortcut { @@ -708,18 +810,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucerEntranceCardSquares } }; - span11[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.78062f, 11.798187f, 20.328043f), 144); - span11[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + num2++; + span36[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.78062f, 11.798187f, 20.328043f), 144); + num2++; + span36[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerWonderSquareWest }; - span11[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + num2++; + span36[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerWonderSquareEast }; - span11[9] = new QuestStep(EInteractionType.None, null, null, 144) + num2++; + span36[num2] = new QuestStep(EInteractionType.None, null, null, 144) { AethernetShortcut = new AethernetShortcut { @@ -727,18 +833,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucer } }; - span11[10] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + num2++; + span36[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerEventSquare }; - span11[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(122.973015f, -0.5100681f, -50.024624f), 144); - span11[12] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + num2++; + span36[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(122.973015f, -0.5100681f, -50.024624f), 144); + num2++; + span36[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerCactpotBoard }; - span11[13] = new QuestStep(EInteractionType.None, null, null, 144) + num2++; + span36[num2] = new QuestStep(EInteractionType.None, null, null, 144) { AethernetShortcut = new AethernetShortcut { @@ -746,7 +856,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucer } }; - span11[14] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + num2++; + span36[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerRoundSquare @@ -760,13 +871,16 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + Span span37 = CollectionsMarshal.AsSpan(list37); + index = 0; + span37[index] = "liza"; questRoot9.Author = list37; - num = 2; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - Span span12 = CollectionsMarshal.AsSpan(list38); - ref QuestSequence reference21 = ref span12[0]; + index = 2; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + Span span38 = CollectionsMarshal.AsSpan(list38); + num = 0; + ref QuestSequence reference21 = ref span38[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -774,7 +888,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - ref QuestStep reference22 = ref CollectionsMarshal.AsSpan(list39)[0]; + Span span39 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + ref QuestStep reference22 = ref span39[num3]; QuestStep obj19 = new QuestStep(EInteractionType.AcceptQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -789,39 +905,47 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = 133; + num4 = 1; + List list40 = new List(num4); + CollectionsMarshal.SetCount(list40, num4); + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = 133; obj20.InTerritory = list40; skipConditions2.AetheryteShortcutIf = obj20; obj19.SkipConditions = skipConditions2; reference22 = obj19; obj18.Steps = list39; reference21 = obj18; - ref QuestSequence reference23 = ref span12[1]; + num++; + ref QuestSequence reference23 = ref span38[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span13 = CollectionsMarshal.AsSpan(list41); - span13[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 154); - ref QuestStep reference24 = ref span13[1]; + num3 = 3; + List list41 = new List(num3); + CollectionsMarshal.SetCount(list41, num3); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 154); + num2++; + ref QuestStep reference24 = ref span41[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Gather, null, null, 154); - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new GatheredItem + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span42[num4] = new GatheredItem { ItemId = 5498u, ItemCount = 10 }; questStep5.ItemsToGather = list42; reference24 = questStep5; - span13[2] = new QuestStep(EInteractionType.CompleteQuest, 1000295u, new Vector3(-234.24127f, 8.000092f, -155.169f), 133) + num2++; + span41[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000295u, new Vector3(-234.24127f, 8.000092f, -155.169f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -840,13 +964,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "liza"; + Span span43 = CollectionsMarshal.AsSpan(list43); + index = 0; + span43[index] = "liza"; questRoot10.Author = list43; - num = 2; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span14 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference25 = ref span14[0]; + index = 2; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + Span span44 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference25 = ref span44[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -854,21 +981,26 @@ public static class AssemblyQuestLoader num2 = 3; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span15 = CollectionsMarshal.AsSpan(list45); - span15[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 478) + Span span45 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span45[num3] = new QuestStep(EInteractionType.SwitchClass, null, null, 478) { TargetClass = EExtendedClassJob.BlueMage }; - span15[1] = new QuestStep(EInteractionType.Gather, null, null, 478); - ref QuestStep reference26 = ref span15[2]; + num3++; + span45[num3] = new QuestStep(EInteractionType.Gather, null, null, 478); + num3++; + ref QuestStep reference26 = ref span45[num3]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1018393u, new Vector3(-60.380005f, 206.50021f, 26.16919f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new DialogueChoice + num4 = 1; + List list46 = new List(num4); + CollectionsMarshal.SetCount(list46, num4); + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/005/CtsSfsCharacter4_00541", @@ -880,20 +1012,25 @@ public static class AssemblyQuestLoader reference26 = obj23; obj22.Steps = list45; reference25 = obj22; - ref QuestSequence reference27 = ref span14[1]; + num++; + ref QuestSequence reference27 = ref span44[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list47)[0]; - QuestStep questStep6 = new QuestStep(EInteractionType.None, null, null, 635); num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new DialogueChoice + List list47 = new List(num3); + CollectionsMarshal.SetCount(list47, num3); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + ref QuestStep reference28 = ref span47[num2]; + QuestStep questStep6 = new QuestStep(EInteractionType.None, null, null, 635); + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span48[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/005/CtsSfsCharacter4_00541", @@ -911,13 +1048,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "liza"; questRoot11.Author = list49; - num = 2; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span16 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference29 = ref span16[0]; + index = 2; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference29 = ref span50[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -925,7 +1065,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list51)[0]; + Span span51 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + ref QuestStep reference30 = ref span51[num3]; QuestStep obj26 = new QuestStep(EInteractionType.AcceptQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -940,39 +1082,47 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = 133; + num4 = 1; + List list52 = new List(num4); + CollectionsMarshal.SetCount(list52, num4); + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = 133; obj27.InTerritory = list52; skipConditions3.AetheryteShortcutIf = obj27; obj26.SkipConditions = skipConditions3; reference30 = obj26; obj25.Steps = list51; reference29 = obj25; - ref QuestSequence reference31 = ref span16[1]; + num++; + ref QuestSequence reference31 = ref span50[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span17 = CollectionsMarshal.AsSpan(list53); - span17[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 148); - ref QuestStep reference32 = ref span17[1]; + num3 = 3; + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 148); + num2++; + ref QuestStep reference32 = ref span53[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Gather, null, null, 148); - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new GatheredItem + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span54[num4] = new GatheredItem { ItemId = 5352u, ItemCount = 10 }; questStep7.ItemsToGather = list54; reference32 = questStep7; - span17[2] = new QuestStep(EInteractionType.CompleteQuest, 1000295u, new Vector3(-234.24127f, 8.000092f, -155.169f), 133) + num2++; + span53[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000295u, new Vector3(-234.24127f, 8.000092f, -155.169f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -991,12 +1141,16 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "WigglyMuffin"; + Span span55 = CollectionsMarshal.AsSpan(list55); + index = 0; + span55[index] = "WigglyMuffin"; questRoot12.Author = list55; - num = 1; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - ref QuestSequence reference33 = ref CollectionsMarshal.AsSpan(list56)[0]; + index = 1; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + Span span56 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference33 = ref span56[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -1004,8 +1158,9 @@ public static class AssemblyQuestLoader num2 = 10; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span18 = CollectionsMarshal.AsSpan(list57); - span18[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 418) + Span span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span57[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 418) { Aetheryte = EAetheryteLocation.Ishgard, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -1017,11 +1172,13 @@ public static class AssemblyQuestLoader } } }; - span18[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + num3++; + span57[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardSkysteelManufactory }; - span18[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + num3++; + span57[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardBrume, AethernetShortcut = new AethernetShortcut @@ -1030,31 +1187,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Ishgard } }; - span18[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + num3++; + span57[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardForgottenKnight }; - span18[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.15989f, 30.584269f, -82.98525f), 418) + num3++; + span57[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.15989f, 30.584269f, -82.98525f), 418) { TargetTerritoryId = (ushort)419 }; - span18[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + num3++; + span57[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardAthenaeumAstrologicum }; - span18[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + num3++; + span57[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardTribunal }; - span18[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + num3++; + span57[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardSaintReymanaudsCathedral }; - span18[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + num3++; + span57[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardJeweledCrozier }; - span18[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + num3++; + span57[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardLastVigil }; @@ -1067,35 +1231,43 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "liza"; + Span span58 = CollectionsMarshal.AsSpan(list58); + index = 0; + span58[index] = "liza"; questRoot13.Author = list58; - num = 2; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span19 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference34 = ref span19[0]; + index = 2; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + Span span59 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference34 = ref span59[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - Span span20 = CollectionsMarshal.AsSpan(list60); - span20[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 820) + num3 = 3; + List list60 = new List(num3); + CollectionsMarshal.SetCount(list60, num3); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 820) { TargetClass = EExtendedClassJob.BlueMage }; - span20[1] = new QuestStep(EInteractionType.Gather, null, null, 820); - ref QuestStep reference35 = ref span20[2]; + num2++; + span60[num2] = new QuestStep(EInteractionType.Gather, null, null, 820); + num2++; + ref QuestStep reference35 = ref span60[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; - num3 = 1; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - CollectionsMarshal.AsSpan(list61)[0] = new DialogueChoice + num4 = 1; + List list61 = new List(num4); + CollectionsMarshal.SetCount(list61, num4); + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/006/CtsSfsCharacter5_00640", @@ -1107,7 +1279,8 @@ public static class AssemblyQuestLoader reference35 = obj31; obj30.Steps = list60; reference34 = obj30; - ref QuestSequence reference36 = ref span19[1]; + num++; + ref QuestSequence reference36 = ref span59[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -1115,12 +1288,16 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - ref QuestStep reference37 = ref CollectionsMarshal.AsSpan(list62)[0]; + Span span62 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + ref QuestStep reference37 = ref span62[num3]; QuestStep questStep8 = new QuestStep(EInteractionType.None, null, null, 635); - num3 = 1; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - CollectionsMarshal.AsSpan(list63)[0] = new DialogueChoice + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num4 = 0; + span63[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/006/CtsSfsCharacter5_00640", @@ -1138,21 +1315,26 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + Span span64 = CollectionsMarshal.AsSpan(list64); + index = 0; + span64[index] = "liza"; questRoot14.Author = list64; - num = 4; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span21 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference38 = ref span21[0]; + index = 4; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + Span span65 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference38 = ref span65[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list66)[0]; + num3 = 1; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + ref QuestStep reference39 = ref span66[num2]; QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -1167,17 +1349,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = 133; + num4 = 1; + List list67 = new List(num4); + CollectionsMarshal.SetCount(list67, num4); + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = 133; obj35.InTerritory = list67; skipConditions4.AetheryteShortcutIf = obj35; obj34.SkipConditions = skipConditions4; reference39 = obj34; obj33.Steps = list66; reference38 = obj33; - ref QuestSequence reference40 = ref span21[1]; + num++; + ref QuestSequence reference40 = ref span65[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -1185,7 +1370,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1000239u, new Vector3(170.30591f, 15.699951f, -118.638916f), 133) + Span span68 = CollectionsMarshal.AsSpan(list68); + num3 = 0; + span68[num3] = new QuestStep(EInteractionType.Interact, 1000239u, new Vector3(170.30591f, 15.699951f, -118.638916f), 133) { AethernetShortcut = new AethernetShortcut { @@ -1195,29 +1382,35 @@ public static class AssemblyQuestLoader }; obj36.Steps = list68; reference40 = obj36; - ref QuestSequence reference41 = ref span21[2]; + num++; + ref QuestSequence reference41 = ref span65[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - Span span22 = CollectionsMarshal.AsSpan(list69); - span22[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 148); - ref QuestStep reference42 = ref span22[1]; + num3 = 3; + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 148); + num2++; + ref QuestStep reference42 = ref span69[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 148); - num3 = 1; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = new GatheredItem + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num4 = 0; + span70[num4] = new GatheredItem { ItemId = 4832u, ItemCount = 10 }; questStep9.ItemsToGather = list70; reference42 = questStep9; - span22[2] = new QuestStep(EInteractionType.Interact, 1000239u, new Vector3(170.30591f, 15.699951f, -118.638916f), 133) + num2++; + span69[num2] = new QuestStep(EInteractionType.Interact, 1000239u, new Vector3(170.30591f, 15.699951f, -118.638916f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -1228,7 +1421,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list69; reference41 = obj37; - ref QuestSequence reference43 = ref span21[3]; + num++; + ref QuestSequence reference43 = ref span65[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -1236,7 +1430,9 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) + Span span71 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span71[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AethernetShortcut = new AethernetShortcut { @@ -1254,21 +1450,26 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "WigglyMuffin"; + Span span72 = CollectionsMarshal.AsSpan(list72); + index = 0; + span72[index] = "WigglyMuffin"; questRoot15.Author = list72; - num = 1; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - ref QuestSequence reference44 = ref CollectionsMarshal.AsSpan(list73)[0]; + index = 1; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + Span span73 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference44 = ref span73[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - Span span23 = CollectionsMarshal.AsSpan(list74); - span23[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 478) + num3 = 2; + List list74 = new List(num3); + CollectionsMarshal.SetCount(list74, num3); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 478) { Aetheryte = EAetheryteLocation.Idyllshire, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -1280,7 +1481,8 @@ public static class AssemblyQuestLoader } } }; - span23[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 478) + num2++; + span74[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 478) { AethernetShard = EAetheryteLocation.IdyllshireWest }; @@ -1293,13 +1495,16 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "liza"; + Span span75 = CollectionsMarshal.AsSpan(list75); + index = 0; + span75[index] = "liza"; questRoot16.Author = list75; - num = 2; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span24 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference45 = ref span24[0]; + index = 2; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + Span span76 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference45 = ref span76[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -1307,13 +1512,16 @@ public static class AssemblyQuestLoader num2 = 4; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span25 = CollectionsMarshal.AsSpan(list77); - span25[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 886) + Span span77 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + span77[num3] = new QuestStep(EInteractionType.SwitchClass, null, null, 886) { TargetClass = EExtendedClassJob.BlueMage }; - span25[1] = new QuestStep(EInteractionType.Gather, null, null, 886); - ref QuestStep reference46 = ref span25[2]; + num3++; + span77[num3] = new QuestStep(EInteractionType.Gather, null, null, 886); + num3++; + ref QuestStep reference46 = ref span77[num3]; QuestStep obj41 = new QuestStep(EInteractionType.None, null, null, 886) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -1325,10 +1533,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = 886; + num4 = 1; + List list78 = new List(num4); + CollectionsMarshal.SetCount(list78, num4); + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = 886; skipAetheryteCondition.InTerritory = list78; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition; skipConditions5.AethernetShortcutIf = new SkipAetheryteCondition @@ -1337,7 +1547,8 @@ public static class AssemblyQuestLoader }; obj41.SkipConditions = skipConditions5; reference46 = obj41; - ref QuestStep reference47 = ref span25[3]; + num3++; + ref QuestStep reference47 = ref span77[num3]; QuestStep obj42 = new QuestStep(EInteractionType.Interact, 1033543u, new Vector3(113.38977f, -20f, -0.96136475f), 886) { AethernetShortcut = new AethernetShortcut @@ -1346,10 +1557,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.FirmamentMattock } }; - num3 = 1; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new DialogueChoice + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num4 = 0; + span79[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/006/CtsSfsCharacter6_00674", @@ -1361,20 +1574,25 @@ public static class AssemblyQuestLoader reference47 = obj42; obj40.Steps = list77; reference45 = obj40; - ref QuestSequence reference48 = ref span24[1]; + num++; + ref QuestSequence reference48 = ref span76[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - ref QuestStep reference49 = ref CollectionsMarshal.AsSpan(list80)[0]; - QuestStep questStep10 = new QuestStep(EInteractionType.None, null, null, 635); num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new DialogueChoice + List list80 = new List(num3); + CollectionsMarshal.SetCount(list80, num3); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + ref QuestStep reference49 = ref span80[num2]; + QuestStep questStep10 = new QuestStep(EInteractionType.None, null, null, 635); + num4 = 1; + List list81 = new List(num4); + CollectionsMarshal.SetCount(list81, num4); + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/006/CtsSfsCharacter6_00674", @@ -1392,13 +1610,16 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "liza"; + Span span82 = CollectionsMarshal.AsSpan(list82); + index = 0; + span82[index] = "liza"; questRoot17.Author = list82; - num = 2; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span26 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference50 = ref span26[0]; + index = 2; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + Span span83 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference50 = ref span83[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -1406,7 +1627,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list84)[0]; + Span span84 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + ref QuestStep reference51 = ref span84[num3]; QuestStep obj45 = new QuestStep(EInteractionType.AcceptQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -1421,39 +1644,47 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = 133; + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span85[num4] = 133; obj46.InTerritory = list85; skipConditions6.AetheryteShortcutIf = obj46; obj45.SkipConditions = skipConditions6; reference51 = obj45; obj44.Steps = list84; reference50 = obj44; - ref QuestSequence reference52 = ref span26[1]; + num++; + ref QuestSequence reference52 = ref span83[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - Span span27 = CollectionsMarshal.AsSpan(list86); - span27[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 138); - ref QuestStep reference53 = ref span27[1]; + num3 = 3; + List list86 = new List(num3); + CollectionsMarshal.SetCount(list86, num3); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 138); + num2++; + ref QuestStep reference53 = ref span86[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 138); - num3 = 1; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = new GatheredItem + num4 = 1; + List list87 = new List(num4); + CollectionsMarshal.SetCount(list87, num4); + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new GatheredItem { ItemId = 5599u, ItemCount = 15 }; questStep11.ItemsToGather = list87; reference53 = questStep11; - span27[2] = new QuestStep(EInteractionType.CompleteQuest, 1000292u, new Vector3(-233.99713f, 8f, -146.86816f), 133) + num2++; + span86[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000292u, new Vector3(-233.99713f, 8f, -146.86816f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -1471,12 +1702,16 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "WigglyMuffin"; + Span span88 = CollectionsMarshal.AsSpan(list88); + index = 0; + span88[index] = "WigglyMuffin"; questRoot18.Author = list88; - num = 1; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - ref QuestSequence reference54 = ref CollectionsMarshal.AsSpan(list89)[0]; + index = 1; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + Span span89 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference54 = ref span89[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -1484,8 +1719,9 @@ public static class AssemblyQuestLoader num2 = 3; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span28 = CollectionsMarshal.AsSpan(list90); - span28[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 635) + Span span90 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span90[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 635) { Aetheryte = EAetheryteLocation.RhalgrsReach, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -1497,11 +1733,13 @@ public static class AssemblyQuestLoader } } }; - span28[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) + num3++; + span90[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) { AethernetShard = EAetheryteLocation.RhalgrsReachWest }; - span28[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) + num3++; + span90[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) { AethernetShard = EAetheryteLocation.RhalgrsReachNorthEast, AethernetShortcut = new AethernetShortcut @@ -1519,27 +1757,33 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "liza"; + Span span91 = CollectionsMarshal.AsSpan(list91); + index = 0; + span91[index] = "liza"; questRoot19.Author = list91; - num = 2; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span29 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference55 = ref span29[0]; + index = 2; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + Span span92 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference55 = ref span92[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - num2 = 5; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span30 = CollectionsMarshal.AsSpan(list93); - span30[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 886) + num3 = 5; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 886) { TargetClass = EExtendedClassJob.BlueMage }; - span30[1] = new QuestStep(EInteractionType.Gather, null, null, 886); - ref QuestStep reference56 = ref span30[2]; + num2++; + span93[num2] = new QuestStep(EInteractionType.Gather, null, null, 886); + num2++; + ref QuestStep reference56 = ref span93[num2]; QuestStep obj50 = new QuestStep(EInteractionType.None, null, null, 886) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -1551,10 +1795,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = 886; + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num4 = 0; + span94[num4] = 886; skipAetheryteCondition2.InTerritory = list94; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition2; skipConditions7.AethernetShortcutIf = new SkipAetheryteCondition @@ -1563,7 +1809,8 @@ public static class AssemblyQuestLoader }; obj50.SkipConditions = skipConditions7; reference56 = obj50; - span30[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.51667f, 0f, -134.36552f), 886) + num2++; + span93[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.51667f, 0f, -134.36552f), 886) { AethernetShortcut = new AethernetShortcut { @@ -1571,15 +1818,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.FirmamentWesternRisensongQuarter } }; - ref QuestStep reference57 = ref span30[4]; + num2++; + ref QuestStep reference57 = ref span93[num2]; QuestStep obj51 = new QuestStep(EInteractionType.Interact, 1035211u, new Vector3(-116.96039f, 0f, -133.95898f), 886) { StopDistance = 7f }; - num3 = 1; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice + num4 = 1; + List list95 = new List(num4); + CollectionsMarshal.SetCount(list95, num4); + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/007/CtsSfsCharacter7_00710", @@ -1591,7 +1841,8 @@ public static class AssemblyQuestLoader reference57 = obj51; obj49.Steps = list93; reference55 = obj49; - ref QuestSequence reference58 = ref span29[1]; + num++; + ref QuestSequence reference58 = ref span92[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -1599,12 +1850,16 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list96)[0]; + Span span96 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + ref QuestStep reference59 = ref span96[num3]; QuestStep questStep12 = new QuestStep(EInteractionType.None, null, null, 635); - num3 = 1; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - CollectionsMarshal.AsSpan(list97)[0] = new DialogueChoice + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num4 = 0; + span97[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/007/CtsSfsCharacter7_00710", @@ -1622,21 +1877,26 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "WigglyMuffin"; + Span span98 = CollectionsMarshal.AsSpan(list98); + index = 0; + span98[index] = "WigglyMuffin"; questRoot20.Author = list98; - num = 1; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - ref QuestSequence reference60 = ref CollectionsMarshal.AsSpan(list99)[0]; + index = 1; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + Span span99 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference60 = ref span99[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 12; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span31 = CollectionsMarshal.AsSpan(list100); - span31[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 628) + num3 = 12; + List list100 = new List(num3); + CollectionsMarshal.SetCount(list100, num3); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 628) { Aetheryte = EAetheryteLocation.Kugane, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -1648,19 +1908,23 @@ public static class AssemblyQuestLoader } } }; - span31[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span100[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeShiokazeHostelry }; - span31[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span100[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeMarkets }; - span31[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span100[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeRubyBazaar }; - span31[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span100[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeRakuzaDistrict, AethernetShortcut = new AethernetShortcut @@ -1669,7 +1933,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Kugane } }; - span31[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span100[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeBokairoInn, AethernetShortcut = new AethernetShortcut @@ -1678,7 +1943,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeMarkets } }; - span31[6] = new QuestStep(EInteractionType.Jump, null, new Vector3(-132.33249f, 4.510561f, 117.53347f), 628) + num2++; + span100[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-132.33249f, 4.510561f, 117.53347f), 628) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -1687,24 +1953,29 @@ public static class AssemblyQuestLoader StopDistance = 0.5f } }; - span31[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-125.70999f, 8.414458f, 123.2643f), 628) + num2++; + span100[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-125.70999f, 8.414458f, 123.2643f), 628) { DisableNavmesh = true }; - span31[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.25544f, -4.999999f, 145.54941f), 628) + num2++; + span100[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.25544f, -4.999999f, 145.54941f), 628) { DisableNavmesh = true }; - span31[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span100[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { DisableNavmesh = true, AethernetShard = EAetheryteLocation.KuganePier1 }; - span31[10] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span100[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeThavnairianConsulate }; - span31[11] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span100[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeSekiseigumiBarracks, AethernetShortcut = new AethernetShortcut @@ -1722,13 +1993,16 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "liza"; + Span span101 = CollectionsMarshal.AsSpan(list101); + index = 0; + span101[index] = "liza"; questRoot21.Author = list101; - num = 2; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span32 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference61 = ref span32[0]; + index = 2; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + Span span102 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference61 = ref span102[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -1736,13 +2010,16 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span33 = CollectionsMarshal.AsSpan(list103); - span33[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 962) + Span span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span103[num3] = new QuestStep(EInteractionType.SwitchClass, null, null, 962) { TargetClass = EExtendedClassJob.BlueMage }; - span33[1] = new QuestStep(EInteractionType.Gather, null, null, 962); - ref QuestStep reference62 = ref span33[2]; + num3++; + span103[num3] = new QuestStep(EInteractionType.Gather, null, null, 962); + num3++; + ref QuestStep reference62 = ref span103[num3]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 1042241u, new Vector3(222.85791f, 24.942732f, -197.77222f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -1752,10 +2029,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanLeveilleurEstate } }; - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new DialogueChoice + num4 = 1; + List list104 = new List(num4); + CollectionsMarshal.SetCount(list104, num4); + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/007/CtsSfsCharacter8_00773", @@ -1767,20 +2046,25 @@ public static class AssemblyQuestLoader reference62 = obj55; obj54.Steps = list103; reference61 = obj54; - ref QuestSequence reference63 = ref span32[1]; + num++; + ref QuestSequence reference63 = ref span102[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list105)[0]; - QuestStep questStep13 = new QuestStep(EInteractionType.None, null, null, 635); num3 = 1; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = new DialogueChoice + List list105 = new List(num3); + CollectionsMarshal.SetCount(list105, num3); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + ref QuestStep reference64 = ref span105[num2]; + QuestStep questStep13 = new QuestStep(EInteractionType.None, null, null, 635); + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num4 = 0; + span106[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/007/CtsSfsCharacter8_00773", @@ -1798,12 +2082,16 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "WigglyMuffin"; + Span span107 = CollectionsMarshal.AsSpan(list107); + index = 0; + span107[index] = "WigglyMuffin"; questRoot22.Author = list107; - num = 1; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - ref QuestSequence reference65 = ref CollectionsMarshal.AsSpan(list108)[0]; + index = 1; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + Span span108 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference65 = ref span108[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -1811,8 +2099,9 @@ public static class AssemblyQuestLoader num2 = 4; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span34 = CollectionsMarshal.AsSpan(list109); - span34[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 759) + Span span109 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + span109[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 759) { Aetheryte = EAetheryteLocation.DomanEnclave, AetheryteShortcut = EAetheryteLocation.DomanEnclave, @@ -1824,15 +2113,18 @@ public static class AssemblyQuestLoader } } }; - span34[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + num3++; + span109[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveDocks }; - span34[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + num3++; + span109[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveSouthern }; - span34[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + num3++; + span109[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveNorthern }; @@ -1845,36 +2137,44 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "liza"; + Span span110 = CollectionsMarshal.AsSpan(list110); + index = 0; + span110[index] = "liza"; questRoot23.Author = list110; - num = 2; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span35 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference66 = ref span35[0]; + index = 2; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + Span span111 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference66 = ref span111[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span36 = CollectionsMarshal.AsSpan(list112); - span36[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 816) + num3 = 3; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 816) { TargetClass = EExtendedClassJob.BlueMage }; - span36[1] = new QuestStep(EInteractionType.Gather, null, null, 816); - ref QuestStep reference67 = ref span36[2]; + num2++; + span112[num2] = new QuestStep(EInteractionType.Gather, null, null, 816); + num2++; + ref QuestStep reference67 = ref span112[num2]; QuestStep obj59 = new QuestStep(EInteractionType.Interact, 1044547u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = new DialogueChoice + num4 = 1; + List list113 = new List(num4); + CollectionsMarshal.SetCount(list113, num4); + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/008/CtsSfsCharacter9_00815", @@ -1886,7 +2186,8 @@ public static class AssemblyQuestLoader reference67 = obj59; obj58.Steps = list112; reference66 = obj58; - ref QuestSequence reference68 = ref span35[1]; + num++; + ref QuestSequence reference68 = ref span111[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -1894,12 +2195,16 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list114)[0]; + Span span114 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + ref QuestStep reference69 = ref span114[num3]; QuestStep questStep14 = new QuestStep(EInteractionType.None, null, null, 635); - num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = new DialogueChoice + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num4 = 0; + span115[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/008/CtsSfsCharacter9_00815", @@ -1917,21 +2222,26 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "WigglyMuffin"; + Span span116 = CollectionsMarshal.AsSpan(list116); + index = 0; + span116[index] = "WigglyMuffin"; questRoot24.Author = list116; - num = 1; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - ref QuestSequence reference70 = ref CollectionsMarshal.AsSpan(list117)[0]; + index = 1; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + Span span117 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference70 = ref span117[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 8; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span37 = CollectionsMarshal.AsSpan(list118); - span37[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 819) + num3 = 8; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 819) { Aetheryte = EAetheryteLocation.Crystarium, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -1943,15 +2253,18 @@ public static class AssemblyQuestLoader } } }; - span37[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span118[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumCrystallineMean }; - span37[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span118[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumAmaroLaunch }; - span37[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span118[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumCabinetOfCuriosity, AethernetShortcut = new AethernetShortcut @@ -1960,7 +2273,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Crystarium } }; - span37[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span118[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumMarkets, AethernetShortcut = new AethernetShortcut @@ -1969,7 +2283,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Crystarium } }; - span37[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span118[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumDossalGate, AethernetShortcut = new AethernetShortcut @@ -1978,11 +2293,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Crystarium } }; - span37[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span118[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumPendants }; - span37[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span118[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumTemenosRookery, AetheryteShortcut = EAetheryteLocation.Crystarium @@ -1996,13 +2313,16 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "liza"; + Span span119 = CollectionsMarshal.AsSpan(list119); + index = 0; + span119[index] = "liza"; questRoot25.Author = list119; - num = 2; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span38 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference71 = ref span38[0]; + index = 2; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + Span span120 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference71 = ref span120[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -2010,23 +2330,29 @@ public static class AssemblyQuestLoader num2 = 4; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span39 = CollectionsMarshal.AsSpan(list121); - span39[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 956) + Span span121 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span121[num3] = new QuestStep(EInteractionType.SwitchClass, null, null, 956) { TargetClass = EExtendedClassJob.BlueMage }; - span39[1] = new QuestStep(EInteractionType.Gather, null, null, 956); - span39[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.066154f, -29.530005f, -55.85129f), 956) + num3++; + span121[num3] = new QuestStep(EInteractionType.Gather, null, null, 956); + num3++; + span121[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.066154f, -29.530005f, -55.85129f), 956) { Fly = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet }; - ref QuestStep reference72 = ref span39[3]; + num3++; + ref QuestStep reference72 = ref span121[num3]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1046073u, new Vector3(-53.635498f, -29.497286f, -65.14081f), 956); - num3 = 1; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = new DialogueChoice + num4 = 1; + List list122 = new List(num4); + CollectionsMarshal.SetCount(list122, num4); + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/008/CtsSfsCharacter10_00842", @@ -2038,20 +2364,25 @@ public static class AssemblyQuestLoader reference72 = questStep15; obj62.Steps = list121; reference71 = obj62; - ref QuestSequence reference73 = ref span38[1]; + num++; + ref QuestSequence reference73 = ref span120[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list123)[0]; - QuestStep questStep16 = new QuestStep(EInteractionType.None, null, null, 635); num3 = 1; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + ref QuestStep reference74 = ref span123[num2]; + QuestStep questStep16 = new QuestStep(EInteractionType.None, null, null, 635); + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num4 = 0; + span124[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/008/CtsSfsCharacter10_00842", @@ -2069,12 +2400,16 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "WigglyMuffin"; + Span span125 = CollectionsMarshal.AsSpan(list125); + index = 0; + span125[index] = "WigglyMuffin"; questRoot26.Author = list125; - num = 1; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - ref QuestSequence reference75 = ref CollectionsMarshal.AsSpan(list126)[0]; + index = 1; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + Span span126 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference75 = ref span126[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -2082,8 +2417,9 @@ public static class AssemblyQuestLoader num2 = 5; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span40 = CollectionsMarshal.AsSpan(list127); - span40[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 820) + Span span127 = CollectionsMarshal.AsSpan(list127); + num3 = 0; + span127[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 820) { Aetheryte = EAetheryteLocation.Eulmore, AetheryteShortcut = EAetheryteLocation.Eulmore, @@ -2095,15 +2431,18 @@ public static class AssemblyQuestLoader } } }; - span40[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + num3++; + span127[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreGloryGate }; - span40[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + num3++; + span127[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreMainstay }; - span40[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + num3++; + span127[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreSoutheastDerelict, AethernetShortcut = new AethernetShortcut @@ -2112,7 +2451,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreGloryGate } }; - span40[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + num3++; + span127[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreNightsoilPots }; @@ -2125,36 +2465,44 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + Span span128 = CollectionsMarshal.AsSpan(list128); + index = 0; + span128[index] = "liza"; questRoot27.Author = list128; - num = 2; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span41 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference76 = ref span41[0]; + index = 2; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + Span span129 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference76 = ref span129[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span42 = CollectionsMarshal.AsSpan(list130); - span42[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 962) + num3 = 3; + List list130 = new List(num3); + CollectionsMarshal.SetCount(list130, num3); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 962) { TargetClass = EExtendedClassJob.BlueMage }; - span42[1] = new QuestStep(EInteractionType.Gather, null, null, 962); - ref QuestStep reference77 = ref span42[2]; + num2++; + span130[num2] = new QuestStep(EInteractionType.Gather, null, null, 962); + num2++; + ref QuestStep reference77 = ref span130[num2]; QuestStep obj66 = new QuestStep(EInteractionType.Interact, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; - num3 = 1; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - CollectionsMarshal.AsSpan(list131)[0] = new DialogueChoice + num4 = 1; + List list131 = new List(num4); + CollectionsMarshal.SetCount(list131, num4); + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/009/CtsSfsCharacter11_00909", @@ -2166,7 +2514,8 @@ public static class AssemblyQuestLoader reference77 = obj66; obj65.Steps = list130; reference76 = obj65; - ref QuestSequence reference78 = ref span41[1]; + num++; + ref QuestSequence reference78 = ref span129[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 @@ -2174,12 +2523,16 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list132)[0]; + Span span132 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + ref QuestStep reference79 = ref span132[num3]; QuestStep questStep17 = new QuestStep(EInteractionType.None, null, null, 635); - num3 = 1; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = new DialogueChoice + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num4 = 0; + span133[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/007/CtsSfsCharacter8_00773", @@ -2197,21 +2550,26 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "WigglyMuffin"; + Span span134 = CollectionsMarshal.AsSpan(list134); + index = 0; + span134[index] = "WigglyMuffin"; questRoot28.Author = list134; - num = 1; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - ref QuestSequence reference80 = ref CollectionsMarshal.AsSpan(list135)[0]; + index = 1; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + Span span135 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref QuestSequence reference80 = ref span135[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 8; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span43 = CollectionsMarshal.AsSpan(list136); - span43[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 962) + num3 = 8; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 962) { Aetheryte = EAetheryteLocation.OldSharlayan, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -2223,27 +2581,33 @@ public static class AssemblyQuestLoader } } }; - span43[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + num2++; + span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanScholarsHarbor }; - span43[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 962) + num2++; + span136[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 962) { Aetheryte = EAetheryteLocation.OldSharlayan }; - span43[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + num2++; + span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanRostra }; - span43[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + num2++; + span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanLeveilleurEstate }; - span43[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + num2++; + span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanJourneysEnd }; - span43[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + num2++; + span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanBaldesionAnnex, AethernetShortcut = new AethernetShortcut @@ -2252,7 +2616,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayan } }; - span43[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + num2++; + span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanStudium }; @@ -2265,12 +2630,16 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "WigglyMuffin"; + Span span137 = CollectionsMarshal.AsSpan(list137); + index = 0; + span137[index] = "WigglyMuffin"; questRoot29.Author = list137; - num = 1; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - ref QuestSequence reference81 = ref CollectionsMarshal.AsSpan(list138)[0]; + index = 1; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + Span span138 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference81 = ref span138[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -2278,8 +2647,9 @@ public static class AssemblyQuestLoader num2 = 9; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span44 = CollectionsMarshal.AsSpan(list139); - span44[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 963) + Span span139 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span139[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 963) { Aetheryte = EAetheryteLocation.RadzAtHan, AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -2291,23 +2661,28 @@ public static class AssemblyQuestLoader } } }; - span44[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + num3++; + span139[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanAlzadaalsPeace }; - span44[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + num3++; + span139[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanAirship }; - span44[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + num3++; + span139[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanMeghaduta }; - span44[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + num3++; + span139[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanRuveydahFibers }; - span44[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + num3++; + span139[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanHighCrucible, AethernetShortcut = new AethernetShortcut @@ -2316,7 +2691,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHan } }; - span44[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + num3++; + span139[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanMehrydesMeyhane, AethernetShortcut = new AethernetShortcut @@ -2325,7 +2701,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHan } }; - span44[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + num3++; + span139[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanKama, AethernetShortcut = new AethernetShortcut @@ -2334,7 +2711,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanRuveydahFibers } }; - span44[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + num3++; + span139[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanHallOfTheRadiantHost, AethernetShortcut = new AethernetShortcut @@ -2352,21 +2730,26 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - CollectionsMarshal.AsSpan(list140)[0] = "WigglyMuffin"; + Span span140 = CollectionsMarshal.AsSpan(list140); + index = 0; + span140[index] = "WigglyMuffin"; questRoot30.Author = list140; - num = 1; - List list141 = new List(num); - CollectionsMarshal.SetCount(list141, num); - ref QuestSequence reference82 = ref CollectionsMarshal.AsSpan(list141)[0]; + index = 1; + List list141 = new List(index); + CollectionsMarshal.SetCount(list141, index); + Span span141 = CollectionsMarshal.AsSpan(list141); + num = 0; + ref QuestSequence reference82 = ref span141[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 10; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span45 = CollectionsMarshal.AsSpan(list142); - span45[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1185) + num3 = 10; + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1185) { Aetheryte = EAetheryteLocation.Tuliyollal, AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -2378,12 +2761,15 @@ public static class AssemblyQuestLoader } } }; - span45[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.706764f, -10.00001f, 38.266582f), 1185); - span45[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + num2++; + span142[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.706764f, -10.00001f, 38.266582f), 1185); + num2++; + span142[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalBrightploomPost }; - span45[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + num2++; + span142[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalTheResplendentQuarter, AethernetShortcut = new AethernetShortcut @@ -2392,12 +2778,14 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Tuliyollal } }; - span45[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + num2++; + span142[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { Comment = "Dirigible Landing", AethernetShard = EAetheryteLocation.TuliyollalDirigibleLanding }; - span45[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + num2++; + span142[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalTheForardCabins, AethernetShortcut = new AethernetShortcut @@ -2406,11 +2794,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - span45[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + num2++; + span142[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalBaysideBevyMarketplace }; - span45[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.179695f, 85.001854f, -56.396465f), 1185) + num2++; + span142[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.179695f, 85.001854f, -56.396465f), 1185) { Comment = "Resplendent Quarter Lamp nav", AethernetShortcut = new AethernetShortcut @@ -2419,11 +2809,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - span45[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + num2++; + span142[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalVollokShoonsa }; - span45[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + num2++; + span142[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalWachumeqimeqi, AethernetShortcut = new AethernetShortcut @@ -2441,12 +2833,16 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "WigglyMuffin"; + Span span143 = CollectionsMarshal.AsSpan(list143); + index = 0; + span143[index] = "WigglyMuffin"; questRoot31.Author = list143; - num = 1; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - ref QuestSequence reference83 = ref CollectionsMarshal.AsSpan(list144)[0]; + index = 1; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + Span span144 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference83 = ref span144[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -2454,8 +2850,9 @@ public static class AssemblyQuestLoader num2 = 11; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span46 = CollectionsMarshal.AsSpan(list145); - span46[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1186) + Span span145 = CollectionsMarshal.AsSpan(list145); + num3 = 0; + span145[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1186) { DisableNavmesh = true, Aetheryte = EAetheryteLocation.SolutionNine, @@ -2468,7 +2865,8 @@ public static class AssemblyQuestLoader } } }; - span46[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.08527276f, 7.785223f, 28.881784f), 1186) + num3++; + span145[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.08527276f, 7.785223f, 28.881784f), 1186) { SkipConditions = new SkipConditions { @@ -2483,11 +2881,13 @@ public static class AssemblyQuestLoader } } }; - span46[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num3++; + span145[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineInformationCenter }; - span46[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num3++; + span145[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineNexusArcade, AethernetShortcut = new AethernetShortcut @@ -2496,11 +2896,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNine } }; - span46[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num3++; + span145[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineResidentialSector }; - span46[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.0530143f, 0.49999952f, -117.162285f), 1186) + num3++; + span145[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.0530143f, 0.49999952f, -117.162285f), 1186) { RestartNavigationIfCancelled = false, AethernetShortcut = new AethernetShortcut @@ -2509,11 +2911,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNine } }; - span46[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num3++; + span145[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineResolution }; - span46[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.50943f, 0.5499997f, 4.953261f), 1186) + num3++; + span145[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.50943f, 0.5499997f, 4.953261f), 1186) { RestartNavigationIfCancelled = false, AethernetShortcut = new AethernetShortcut @@ -2522,15 +2926,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNine } }; - span46[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num3++; + span145[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineTrueVue }; - span46[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num3++; + span145[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineNeonStein }; - span46[10] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num3++; + span145[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineTheArcadion }; @@ -2543,21 +2950,26 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "Cacahuetes"; + Span span146 = CollectionsMarshal.AsSpan(list146); + index = 0; + span146[index] = "Cacahuetes"; questRoot32.Author = list146; - num = 4; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span47 = CollectionsMarshal.AsSpan(list147); - ref QuestSequence reference84 = ref span47[0]; + index = 4; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + Span span147 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference84 = ref span147[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) + num3 = 1; + List list148 = new List(num3); + CollectionsMarshal.SetCount(list148, num3); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -2575,7 +2987,8 @@ public static class AssemblyQuestLoader }; obj72.Steps = list148; reference84 = obj72; - ref QuestSequence reference85 = ref span47[1]; + num++; + ref QuestSequence reference85 = ref span147[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -2583,12 +2996,16 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - ref QuestStep reference86 = ref CollectionsMarshal.AsSpan(list149)[0]; + Span span149 = CollectionsMarshal.AsSpan(list149); + num3 = 0; + ref QuestStep reference86 = ref span149[num3]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132); - num3 = 1; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = new DialogueChoice + num4 = 1; + List list150 = new List(num4); + CollectionsMarshal.SetCount(list150, num4); + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARC000_00021_Q1_000_1") @@ -2597,16 +3014,18 @@ public static class AssemblyQuestLoader reference86 = questStep18; obj73.Steps = list149; reference85 = obj73; - ref QuestSequence reference87 = ref span47[2]; + num++; + ref QuestSequence reference87 = ref span147[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - Span span48 = CollectionsMarshal.AsSpan(list151); - ref QuestStep reference88 = ref span48[0]; + num3 = 3; + List list151 = new List(num3); + CollectionsMarshal.SetCount(list151, num3); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + ref QuestStep reference88 = ref span151[num2]; QuestStep obj75 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.18397f, 17.128555f, -269.5008f), 148) { AethernetShortcut = new AethernetShortcut @@ -2616,121 +3035,166 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - ref ComplexCombatData reference89 = ref CollectionsMarshal.AsSpan(list152)[0]; + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num4 = 0; + ref ComplexCombatData reference89 = ref span152[num4]; ComplexCombatData obj76 = new ComplexCombatData { DataId = 37u, MinimumKillCount = 3u }; - int num4 = 6; - List list153 = new List(num4); - CollectionsMarshal.SetCount(list153, num4); - Span span49 = CollectionsMarshal.AsSpan(list153); - span49[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = null; + int num5 = 6; + List list153 = new List(num5); + CollectionsMarshal.SetCount(list153, num5); + Span span153 = CollectionsMarshal.AsSpan(list153); + int num6 = 0; + span153[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span153[num6] = null; + num6++; + span153[num6] = null; + num6++; + span153[num6] = null; + num6++; + span153[num6] = null; + num6++; + span153[num6] = null; obj76.CompletionQuestVariablesFlags = list153; reference89 = obj76; obj75.ComplexCombatData = list152; - num3 = 6; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - Span span50 = CollectionsMarshal.AsSpan(list154); - span50[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = null; + num4 = 6; + List list154 = new List(num4); + CollectionsMarshal.SetCount(list154, num4); + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index2++; + span154[index2] = null; + index2++; + span154[index2] = null; + index2++; + span154[index2] = null; + index2++; + span154[index2] = null; + index2++; + span154[index2] = null; obj75.CompletionQuestVariablesFlags = list154; reference88 = obj75; - ref QuestStep reference90 = ref span48[1]; + num2++; + ref QuestStep reference90 = ref span151[num2]; QuestStep obj77 = new QuestStep(EInteractionType.Combat, null, new Vector3(119.449745f, 17.399649f, -259.6467f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - ref ComplexCombatData reference91 = ref CollectionsMarshal.AsSpan(list155)[0]; + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num4 = 0; + ref ComplexCombatData reference91 = ref span155[num4]; ComplexCombatData obj78 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - num4 = 6; - List list156 = new List(num4); - CollectionsMarshal.SetCount(list156, num4); - Span span51 = CollectionsMarshal.AsSpan(list156); - span51[0] = null; - span51[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = null; + num6 = 6; + List list156 = new List(num6); + CollectionsMarshal.SetCount(list156, num6); + Span span156 = CollectionsMarshal.AsSpan(list156); + num5 = 0; + span156[num5] = null; + num5++; + span156[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span156[num5] = null; + num5++; + span156[num5] = null; + num5++; + span156[num5] = null; + num5++; + span156[num5] = null; obj78.CompletionQuestVariablesFlags = list156; reference91 = obj78; obj77.ComplexCombatData = list155; - num3 = 6; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - Span span52 = CollectionsMarshal.AsSpan(list157); - span52[0] = null; - span52[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = null; + num4 = 6; + List list157 = new List(num4); + CollectionsMarshal.SetCount(list157, num4); + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = null; + index2++; + span157[index2] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index2++; + span157[index2] = null; + index2++; + span157[index2] = null; + index2++; + span157[index2] = null; + index2++; + span157[index2] = null; obj77.CompletionQuestVariablesFlags = list157; reference90 = obj77; - ref QuestStep reference92 = ref span48[2]; + num2++; + ref QuestStep reference92 = ref span151[num2]; QuestStep obj79 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - ref ComplexCombatData reference93 = ref CollectionsMarshal.AsSpan(list158)[0]; + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num4 = 0; + ref ComplexCombatData reference93 = ref span158[num4]; ComplexCombatData obj80 = new ComplexCombatData { DataId = 47u, MinimumKillCount = 3u }; - num4 = 6; - List list159 = new List(num4); - CollectionsMarshal.SetCount(list159, num4); - Span span53 = CollectionsMarshal.AsSpan(list159); - span53[0] = null; - span53[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = null; + num5 = 6; + List list159 = new List(num5); + CollectionsMarshal.SetCount(list159, num5); + Span span159 = CollectionsMarshal.AsSpan(list159); + num6 = 0; + span159[num6] = null; + num6++; + span159[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span159[num6] = null; + num6++; + span159[num6] = null; + num6++; + span159[num6] = null; + num6++; + span159[num6] = null; obj80.CompletionQuestVariablesFlags = list159; reference93 = obj80; obj79.ComplexCombatData = list158; - num3 = 6; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - Span span54 = CollectionsMarshal.AsSpan(list160); - span54[0] = null; - span54[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = null; + num4 = 6; + List list160 = new List(num4); + CollectionsMarshal.SetCount(list160, num4); + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = null; + index2++; + span160[index2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index2++; + span160[index2] = null; + index2++; + span160[index2] = null; + index2++; + span160[index2] = null; + index2++; + span160[index2] = null; obj79.CompletionQuestVariablesFlags = list160; reference92 = obj79; obj74.Steps = list151; reference87 = obj74; - ref QuestSequence reference94 = ref span47[3]; + num++; + ref QuestSequence reference94 = ref span147[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -2738,7 +3202,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + Span span161 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + span161[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -2765,21 +3231,26 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "Cacahuetes"; + Span span162 = CollectionsMarshal.AsSpan(list162); + index = 0; + span162[index] = "Cacahuetes"; questRoot33.Author = list162; - num = 4; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span55 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference95 = ref span55[0]; + index = 4; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + Span span163 = CollectionsMarshal.AsSpan(list163); + num = 0; + ref QuestSequence reference95 = ref span163[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list164)[0]; + num3 = 1; + List list164 = new List(num3); + CollectionsMarshal.SetCount(list164, num3); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + ref QuestStep reference96 = ref span164[num2]; QuestStep obj83 = new QuestStep(EInteractionType.AcceptQuest, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -2794,17 +3265,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - CollectionsMarshal.AsSpan(list165)[0] = 133; + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num4 = 0; + span165[num4] = 133; obj84.InTerritory = list165; skipConditions8.AetheryteShortcutIf = obj84; obj83.SkipConditions = skipConditions8; reference96 = obj83; obj82.Steps = list164; reference95 = obj82; - ref QuestSequence reference97 = ref span55[1]; + num++; + ref QuestSequence reference97 = ref span163[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -2812,12 +3286,16 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list166)[0]; + Span span166 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + ref QuestStep reference98 = ref span166[num3]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133); - num3 = 1; - List list167 = new List(num3); - CollectionsMarshal.SetCount(list167, num3); - CollectionsMarshal.AsSpan(list167)[0] = new DialogueChoice + num4 = 1; + List list167 = new List(num4); + CollectionsMarshal.SetCount(list167, num4); + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSCNJ000_00022_Q1_000_1") @@ -2826,16 +3304,18 @@ public static class AssemblyQuestLoader reference98 = questStep19; obj85.Steps = list166; reference97 = obj85; - ref QuestSequence reference99 = ref span55[2]; + num++; + ref QuestSequence reference99 = ref span163[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - Span span56 = CollectionsMarshal.AsSpan(list168); - ref QuestStep reference100 = ref span56[0]; + num3 = 3; + List list168 = new List(num3); + CollectionsMarshal.SetCount(list168, num3); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + ref QuestStep reference100 = ref span168[num2]; QuestStep obj87 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.18397f, 17.128555f, -269.5008f), 148) { AethernetShortcut = new AethernetShortcut @@ -2845,121 +3325,166 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - ref ComplexCombatData reference101 = ref CollectionsMarshal.AsSpan(list169)[0]; + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + Span span169 = CollectionsMarshal.AsSpan(list169); + num4 = 0; + ref ComplexCombatData reference101 = ref span169[num4]; ComplexCombatData obj88 = new ComplexCombatData { DataId = 37u, MinimumKillCount = 3u }; - num4 = 6; - List list170 = new List(num4); - CollectionsMarshal.SetCount(list170, num4); - Span span57 = CollectionsMarshal.AsSpan(list170); - span57[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = null; + num6 = 6; + List list170 = new List(num6); + CollectionsMarshal.SetCount(list170, num6); + Span span170 = CollectionsMarshal.AsSpan(list170); + num5 = 0; + span170[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span170[num5] = null; + num5++; + span170[num5] = null; + num5++; + span170[num5] = null; + num5++; + span170[num5] = null; + num5++; + span170[num5] = null; obj88.CompletionQuestVariablesFlags = list170; reference101 = obj88; obj87.ComplexCombatData = list169; - num3 = 6; - List list171 = new List(num3); - CollectionsMarshal.SetCount(list171, num3); - Span span58 = CollectionsMarshal.AsSpan(list171); - span58[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = null; + num4 = 6; + List list171 = new List(num4); + CollectionsMarshal.SetCount(list171, num4); + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span171[index2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index2++; + span171[index2] = null; + index2++; + span171[index2] = null; + index2++; + span171[index2] = null; + index2++; + span171[index2] = null; + index2++; + span171[index2] = null; obj87.CompletionQuestVariablesFlags = list171; reference100 = obj87; - ref QuestStep reference102 = ref span56[1]; + num2++; + ref QuestStep reference102 = ref span168[num2]; QuestStep obj89 = new QuestStep(EInteractionType.Combat, null, new Vector3(119.449745f, 17.399649f, -259.6467f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list172 = new List(num3); - CollectionsMarshal.SetCount(list172, num3); - ref ComplexCombatData reference103 = ref CollectionsMarshal.AsSpan(list172)[0]; + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num4 = 0; + ref ComplexCombatData reference103 = ref span172[num4]; ComplexCombatData obj90 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - num4 = 6; - List list173 = new List(num4); - CollectionsMarshal.SetCount(list173, num4); - Span span59 = CollectionsMarshal.AsSpan(list173); - span59[0] = null; - span59[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = null; + num5 = 6; + List list173 = new List(num5); + CollectionsMarshal.SetCount(list173, num5); + Span span173 = CollectionsMarshal.AsSpan(list173); + num6 = 0; + span173[num6] = null; + num6++; + span173[num6] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num6++; + span173[num6] = null; + num6++; + span173[num6] = null; + num6++; + span173[num6] = null; + num6++; + span173[num6] = null; obj90.CompletionQuestVariablesFlags = list173; reference103 = obj90; obj89.ComplexCombatData = list172; - num3 = 6; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - Span span60 = CollectionsMarshal.AsSpan(list174); - span60[0] = null; - span60[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = null; + num4 = 6; + List list174 = new List(num4); + CollectionsMarshal.SetCount(list174, num4); + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = null; + index2++; + span174[index2] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index2++; + span174[index2] = null; + index2++; + span174[index2] = null; + index2++; + span174[index2] = null; + index2++; + span174[index2] = null; obj89.CompletionQuestVariablesFlags = list174; reference102 = obj89; - ref QuestStep reference104 = ref span56[2]; + num2++; + ref QuestStep reference104 = ref span168[num2]; QuestStep obj91 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list175 = new List(num3); - CollectionsMarshal.SetCount(list175, num3); - ref ComplexCombatData reference105 = ref CollectionsMarshal.AsSpan(list175)[0]; + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num4 = 0; + ref ComplexCombatData reference105 = ref span175[num4]; ComplexCombatData obj92 = new ComplexCombatData { DataId = 47u, MinimumKillCount = 3u }; - num4 = 6; - List list176 = new List(num4); - CollectionsMarshal.SetCount(list176, num4); - Span span61 = CollectionsMarshal.AsSpan(list176); - span61[0] = null; - span61[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = null; + num6 = 6; + List list176 = new List(num6); + CollectionsMarshal.SetCount(list176, num6); + Span span176 = CollectionsMarshal.AsSpan(list176); + num5 = 0; + span176[num5] = null; + num5++; + span176[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span176[num5] = null; + num5++; + span176[num5] = null; + num5++; + span176[num5] = null; + num5++; + span176[num5] = null; obj92.CompletionQuestVariablesFlags = list176; reference105 = obj92; obj91.ComplexCombatData = list175; - num3 = 6; - List list177 = new List(num3); - CollectionsMarshal.SetCount(list177, num3); - Span span62 = CollectionsMarshal.AsSpan(list177); - span62[0] = null; - span62[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = null; + num4 = 6; + List list177 = new List(num4); + CollectionsMarshal.SetCount(list177, num4); + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span177[index2] = null; + index2++; + span177[index2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index2++; + span177[index2] = null; + index2++; + span177[index2] = null; + index2++; + span177[index2] = null; + index2++; + span177[index2] = null; obj91.CompletionQuestVariablesFlags = list177; reference104 = obj91; obj86.Steps = list168; reference99 = obj86; - ref QuestSequence reference106 = ref span55[3]; + num++; + ref QuestSequence reference106 = ref span163[num]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue @@ -2967,7 +3492,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + Span span178 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + span178[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -2986,21 +3513,26 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "Cacahuetes"; + Span span179 = CollectionsMarshal.AsSpan(list179); + index = 0; + span179[index] = "Cacahuetes"; questRoot34.Author = list179; - num = 4; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span63 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference107 = ref span63[0]; + index = 4; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + Span span180 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference107 = ref span180[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list181)[0]; + num3 = 1; + List list181 = new List(num3); + CollectionsMarshal.SetCount(list181, num3); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + ref QuestStep reference108 = ref span181[num2]; QuestStep obj95 = new QuestStep(EInteractionType.AcceptQuest, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -3015,17 +3547,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - CollectionsMarshal.AsSpan(list182)[0] = 132; + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num4 = 0; + span182[num4] = 132; obj96.InTerritory = list182; skipConditions9.AetheryteShortcutIf = obj96; obj95.SkipConditions = skipConditions9; reference108 = obj95; obj94.Steps = list181; reference107 = obj94; - ref QuestSequence reference109 = ref span63[1]; + num++; + ref QuestSequence reference109 = ref span180[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -3033,12 +3568,16 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list183)[0]; + Span span183 = CollectionsMarshal.AsSpan(list183); + num3 = 0; + ref QuestStep reference110 = ref span183[num3]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133); - num3 = 1; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - CollectionsMarshal.AsSpan(list184)[0] = new DialogueChoice + num4 = 1; + List list184 = new List(num4); + CollectionsMarshal.SetCount(list184, num4); + Span span184 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span184[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSLNC000_00023_Q1_000_1") @@ -3047,16 +3586,18 @@ public static class AssemblyQuestLoader reference110 = questStep20; obj97.Steps = list183; reference109 = obj97; - ref QuestSequence reference111 = ref span63[2]; + num++; + ref QuestSequence reference111 = ref span180[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - Span span64 = CollectionsMarshal.AsSpan(list185); - ref QuestStep reference112 = ref span64[0]; + num3 = 3; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + ref QuestStep reference112 = ref span185[num2]; QuestStep obj99 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.18397f, 17.128555f, -269.5008f), 148) { AethernetShortcut = new AethernetShortcut @@ -3066,121 +3607,166 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - ref ComplexCombatData reference113 = ref CollectionsMarshal.AsSpan(list186)[0]; + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num4 = 0; + ref ComplexCombatData reference113 = ref span186[num4]; ComplexCombatData obj100 = new ComplexCombatData { DataId = 37u, MinimumKillCount = 3u }; - num4 = 6; - List list187 = new List(num4); - CollectionsMarshal.SetCount(list187, num4); - Span span65 = CollectionsMarshal.AsSpan(list187); - span65[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = null; + num5 = 6; + List list187 = new List(num5); + CollectionsMarshal.SetCount(list187, num5); + Span span187 = CollectionsMarshal.AsSpan(list187); + num6 = 0; + span187[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span187[num6] = null; + num6++; + span187[num6] = null; + num6++; + span187[num6] = null; + num6++; + span187[num6] = null; + num6++; + span187[num6] = null; obj100.CompletionQuestVariablesFlags = list187; reference113 = obj100; obj99.ComplexCombatData = list186; - num3 = 6; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span66 = CollectionsMarshal.AsSpan(list188); - span66[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = null; + num4 = 6; + List list188 = new List(num4); + CollectionsMarshal.SetCount(list188, num4); + Span span188 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span188[index2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index2++; + span188[index2] = null; + index2++; + span188[index2] = null; + index2++; + span188[index2] = null; + index2++; + span188[index2] = null; + index2++; + span188[index2] = null; obj99.CompletionQuestVariablesFlags = list188; reference112 = obj99; - ref QuestStep reference114 = ref span64[1]; + num2++; + ref QuestStep reference114 = ref span185[num2]; QuestStep obj101 = new QuestStep(EInteractionType.Combat, null, new Vector3(119.449745f, 17.399649f, -259.6467f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - ref ComplexCombatData reference115 = ref CollectionsMarshal.AsSpan(list189)[0]; + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num4 = 0; + ref ComplexCombatData reference115 = ref span189[num4]; ComplexCombatData obj102 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - num4 = 6; - List list190 = new List(num4); - CollectionsMarshal.SetCount(list190, num4); - Span span67 = CollectionsMarshal.AsSpan(list190); - span67[0] = null; - span67[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = null; + num6 = 6; + List list190 = new List(num6); + CollectionsMarshal.SetCount(list190, num6); + Span span190 = CollectionsMarshal.AsSpan(list190); + num5 = 0; + span190[num5] = null; + num5++; + span190[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span190[num5] = null; + num5++; + span190[num5] = null; + num5++; + span190[num5] = null; + num5++; + span190[num5] = null; obj102.CompletionQuestVariablesFlags = list190; reference115 = obj102; obj101.ComplexCombatData = list189; - num3 = 6; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - Span span68 = CollectionsMarshal.AsSpan(list191); - span68[0] = null; - span68[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = null; + num4 = 6; + List list191 = new List(num4); + CollectionsMarshal.SetCount(list191, num4); + Span span191 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span191[index2] = null; + index2++; + span191[index2] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index2++; + span191[index2] = null; + index2++; + span191[index2] = null; + index2++; + span191[index2] = null; + index2++; + span191[index2] = null; obj101.CompletionQuestVariablesFlags = list191; reference114 = obj101; - ref QuestStep reference116 = ref span64[2]; + num2++; + ref QuestStep reference116 = ref span185[num2]; QuestStep obj103 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - ref ComplexCombatData reference117 = ref CollectionsMarshal.AsSpan(list192)[0]; + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num4 = 0; + ref ComplexCombatData reference117 = ref span192[num4]; ComplexCombatData obj104 = new ComplexCombatData { DataId = 47u, MinimumKillCount = 3u }; - num4 = 6; - List list193 = new List(num4); - CollectionsMarshal.SetCount(list193, num4); - Span span69 = CollectionsMarshal.AsSpan(list193); - span69[0] = null; - span69[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = null; + num5 = 6; + List list193 = new List(num5); + CollectionsMarshal.SetCount(list193, num5); + Span span193 = CollectionsMarshal.AsSpan(list193); + num6 = 0; + span193[num6] = null; + num6++; + span193[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span193[num6] = null; + num6++; + span193[num6] = null; + num6++; + span193[num6] = null; + num6++; + span193[num6] = null; obj104.CompletionQuestVariablesFlags = list193; reference117 = obj104; obj103.ComplexCombatData = list192; - num3 = 6; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - Span span70 = CollectionsMarshal.AsSpan(list194); - span70[0] = null; - span70[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = null; + num4 = 6; + List list194 = new List(num4); + CollectionsMarshal.SetCount(list194, num4); + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = null; + index2++; + span194[index2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index2++; + span194[index2] = null; + index2++; + span194[index2] = null; + index2++; + span194[index2] = null; + index2++; + span194[index2] = null; obj103.CompletionQuestVariablesFlags = list194; reference116 = obj103; obj98.Steps = list185; reference111 = obj98; - ref QuestSequence reference118 = ref span63[3]; + num++; + ref QuestSequence reference118 = ref span180[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -3188,7 +3774,9 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + Span span195 = CollectionsMarshal.AsSpan(list195); + num3 = 0; + span195[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -3207,24 +3795,30 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - CollectionsMarshal.AsSpan(list196)[0] = "liza"; + Span span196 = CollectionsMarshal.AsSpan(list196); + index = 0; + span196[index] = "liza"; questRoot35.Author = list196; - num = 2; - List list197 = new List(num); - CollectionsMarshal.SetCount(list197, num); - Span span71 = CollectionsMarshal.AsSpan(list197); - ref QuestSequence reference119 = ref span71[0]; + index = 2; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + Span span197 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference119 = ref span197[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000206u, new Vector3(193.59119f, -0.015319824f, 42.160645f), 132); + num3 = 1; + List list198 = new List(num3); + CollectionsMarshal.SetCount(list198, num3); + Span span198 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span198[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000206u, new Vector3(193.59119f, -0.015319824f, 42.160645f), 132); obj106.Steps = list198; reference119 = obj106; - ref QuestSequence reference120 = ref span71[1]; + num++; + ref QuestSequence reference120 = ref span197[num]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue @@ -3232,7 +3826,9 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000233u, new Vector3(168.65796f, 15.5f, -95.99457f), 133) + Span span199 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span199[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000233u, new Vector3(168.65796f, 15.5f, -95.99457f), 133) { AethernetShortcut = new AethernetShortcut { @@ -3249,24 +3845,30 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - CollectionsMarshal.AsSpan(list200)[0] = "liza"; + Span span200 = CollectionsMarshal.AsSpan(list200); + index = 0; + span200[index] = "liza"; questRoot36.Author = list200; - num = 3; - List list201 = new List(num); - CollectionsMarshal.SetCount(list201, num); - Span span72 = CollectionsMarshal.AsSpan(list201); - ref QuestSequence reference121 = ref span72[0]; + index = 3; + List list201 = new List(index); + CollectionsMarshal.SetCount(list201, index); + Span span201 = CollectionsMarshal.AsSpan(list201); + num = 0; + ref QuestSequence reference121 = ref span201[num]; QuestSequence obj108 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000263u, new Vector3(141.55786f, 15.5f, -274.43353f), 133); + num3 = 1; + List list202 = new List(num3); + CollectionsMarshal.SetCount(list202, num3); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000263u, new Vector3(141.55786f, 15.5f, -274.43353f), 133); obj108.Steps = list202; reference121 = obj108; - ref QuestSequence reference122 = ref span72[1]; + num++; + ref QuestSequence reference122 = ref span201[num]; QuestSequence obj109 = new QuestSequence { Sequence = 1 @@ -3274,7 +3876,9 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list203)[0]; + Span span203 = CollectionsMarshal.AsSpan(list203); + num3 = 0; + ref QuestStep reference123 = ref span203[num3]; QuestStep obj110 = new QuestStep(EInteractionType.Combat, null, new Vector3(112.12561f, 16.504576f, -268.8553f), 148) { AethernetShortcut = new AethernetShortcut @@ -3284,45 +3888,56 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - ref ComplexCombatData reference124 = ref CollectionsMarshal.AsSpan(list204)[0]; + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num4 = 0; + ref ComplexCombatData reference124 = ref span204[num4]; ComplexCombatData obj111 = new ComplexCombatData { DataId = 37u, MinimumKillCount = 6u }; - num4 = 6; - List list205 = new List(num4); - CollectionsMarshal.SetCount(list205, num4); - Span span73 = CollectionsMarshal.AsSpan(list205); - span73[0] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = null; + num6 = 6; + List list205 = new List(num6); + CollectionsMarshal.SetCount(list205, num6); + Span span205 = CollectionsMarshal.AsSpan(list205); + num5 = 0; + span205[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span205[num5] = null; + num5++; + span205[num5] = null; + num5++; + span205[num5] = null; + num5++; + span205[num5] = null; + num5++; + span205[num5] = null; obj111.CompletionQuestVariablesFlags = list205; reference124 = obj111; obj110.ComplexCombatData = list204; reference123 = obj110; obj109.Steps = list203; reference122 = obj109; - ref QuestSequence reference125 = ref span72[2]; + num++; + ref QuestSequence reference125 = ref span201[num]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - Span span74 = CollectionsMarshal.AsSpan(list206); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.21268f, 25.16017f, -318.4288f), 148) + num3 = 2; + List list206 = new List(num3); + CollectionsMarshal.SetCount(list206, num3); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.21268f, 25.16017f, -318.4288f), 148) { TargetTerritoryId = (ushort)132 }; - span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1000263u, new Vector3(141.55786f, 15.5f, -274.43353f), 133) + num2++; + span206[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000263u, new Vector3(141.55786f, 15.5f, -274.43353f), 133) { AethernetShortcut = new AethernetShortcut { @@ -3339,13 +3954,16 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "UcanPatates"; + Span span207 = CollectionsMarshal.AsSpan(list207); + index = 0; + span207[index] = "UcanPatates"; questRoot37.Author = list207; - num = 3; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span75 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference126 = ref span75[0]; + index = 3; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + Span span208 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference126 = ref span208[num]; QuestSequence obj113 = new QuestSequence { Sequence = 0 @@ -3353,7 +3971,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000194u, new Vector3(-16.281433f, -3.2499998f, 41.000854f), 132) + Span span209 = CollectionsMarshal.AsSpan(list209); + num3 = 0; + span209[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000194u, new Vector3(-16.281433f, -3.2499998f, 41.000854f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -3366,15 +3986,18 @@ public static class AssemblyQuestLoader }; obj113.Steps = list209; reference126 = obj113; - ref QuestSequence reference127 = ref span75[1]; + num++; + ref QuestSequence reference127 = ref span208[num]; QuestSequence obj114 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1000686u, new Vector3(-66.36151f, -3.896366f, 67.00232f), 132) + num3 = 1; + List list210 = new List(num3); + CollectionsMarshal.SetCount(list210, num3); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span210[num2] = new QuestStep(EInteractionType.Interact, 1000686u, new Vector3(-66.36151f, -3.896366f, 67.00232f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -3387,7 +4010,8 @@ public static class AssemblyQuestLoader }; obj114.Steps = list210; reference127 = obj114; - ref QuestSequence reference128 = ref span75[2]; + num++; + ref QuestSequence reference128 = ref span208[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -3395,7 +4019,9 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list211)[0]; + Span span211 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + ref QuestStep reference129 = ref span211[num3]; QuestStep obj116 = new QuestStep(EInteractionType.CompleteQuest, 1000789u, new Vector3(-33.76825f, 7.3172073f, -117.052f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -3410,10 +4036,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = 132; + num4 = 1; + List list212 = new List(num4); + CollectionsMarshal.SetCount(list212, num4); + Span span212 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span212[index2] = 132; obj117.InTerritory = list212; skipConditions10.AetheryteShortcutIf = obj117; obj116.SkipConditions = skipConditions10; @@ -3427,38 +4055,46 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - CollectionsMarshal.AsSpan(list213)[0] = "liza"; + Span span213 = CollectionsMarshal.AsSpan(list213); + index = 0; + span213[index] = "liza"; questRoot38.Author = list213; - num = 2; - List list214 = new List(num); - CollectionsMarshal.SetCount(list214, num); - Span span76 = CollectionsMarshal.AsSpan(list214); - ref QuestSequence reference130 = ref span76[0]; + index = 2; + List list214 = new List(index); + CollectionsMarshal.SetCount(list214, index); + Span span214 = CollectionsMarshal.AsSpan(list214); + num = 0; + ref QuestSequence reference130 = ref span214[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list215)[0]; + num3 = 1; + List list215 = new List(num3); + CollectionsMarshal.SetCount(list215, num3); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + ref QuestStep reference131 = ref span215[num2]; QuestStep obj119 = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - CollectionsMarshal.AsSpan(list216)[0] = 132; + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + Span span216 = CollectionsMarshal.AsSpan(list216); + num4 = 0; + span216[num4] = 132; skipStepConditions.NotInTerritory = list216; skipConditions11.StepIf = skipStepConditions; obj119.SkipConditions = skipConditions11; reference131 = obj119; obj118.Steps = list215; reference130 = obj118; - ref QuestSequence reference132 = ref span76[1]; + num++; + ref QuestSequence reference132 = ref span214[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -3466,12 +4102,14 @@ public static class AssemblyQuestLoader num2 = 2; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span77 = CollectionsMarshal.AsSpan(list217); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(158.06026f, -12.97808f, 158.08466f), 132) + Span span217 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span217[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(158.06026f, -12.97808f, 158.08466f), 132) { TargetTerritoryId = (ushort)148 }; - span77[1] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); + num3++; + span217[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); obj120.Steps = list217; reference132 = obj120; questRoot38.QuestSequence = list214; @@ -3481,21 +4119,26 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; + Span span218 = CollectionsMarshal.AsSpan(list218); + index = 0; + span218[index] = "liza"; questRoot39.Author = list218; - num = 10; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span78 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference133 = ref span78[0]; + index = 10; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + Span span219 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference133 = ref span219[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + num3 = 1; + List list220 = new List(num3); + CollectionsMarshal.SetCount(list220, num3); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span220[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -3508,7 +4151,8 @@ public static class AssemblyQuestLoader }; obj121.Steps = list220; reference133 = obj121; - ref QuestSequence reference134 = ref span78[1]; + num++; + ref QuestSequence reference134 = ref span219[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -3516,7 +4160,9 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1009949u, new Vector3(-325.70386f, 7.228748f, -215.16754f), 133) + Span span221 = CollectionsMarshal.AsSpan(list221); + num3 = 0; + span221[num3] = new QuestStep(EInteractionType.Interact, 1009949u, new Vector3(-325.70386f, 7.228748f, -215.16754f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -3527,15 +4173,18 @@ public static class AssemblyQuestLoader }; obj122.Steps = list221; reference134 = obj122; - ref QuestSequence reference135 = ref span78[2]; + num++; + ref QuestSequence reference135 = ref span219[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1009952u, new Vector3(41.61133f, 1.8386029f, -117.265625f), 133) + num3 = 1; + List list222 = new List(num3); + CollectionsMarshal.SetCount(list222, num3); + Span span222 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span222[num2] = new QuestStep(EInteractionType.Interact, 1009952u, new Vector3(41.61133f, 1.8386029f, -117.265625f), 133) { AethernetShortcut = new AethernetShortcut { @@ -3545,7 +4194,8 @@ public static class AssemblyQuestLoader }; obj123.Steps = list222; reference135 = obj123; - ref QuestSequence reference136 = ref span78[3]; + num++; + ref QuestSequence reference136 = ref span219[num]; QuestSequence obj124 = new QuestSequence { Sequence = 3 @@ -3553,66 +4203,91 @@ public static class AssemblyQuestLoader num2 = 3; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span79 = CollectionsMarshal.AsSpan(list223); - ref QuestStep reference137 = ref span79[0]; + Span span223 = CollectionsMarshal.AsSpan(list223); + num3 = 0; + ref QuestStep reference137 = ref span223[num3]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133); - num3 = 6; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - Span span80 = CollectionsMarshal.AsSpan(list224); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list224 = new List(num4); + CollectionsMarshal.SetCount(list224, num4); + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = null; + index2++; + span224[index2] = null; + index2++; + span224[index2] = null; + index2++; + span224[index2] = null; + index2++; + span224[index2] = null; + index2++; + span224[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list224; reference137 = questStep21; - ref QuestStep reference138 = ref span79[1]; + num3++; + ref QuestStep reference138 = ref span223[num3]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1000227u, new Vector3(168.62744f, 15.699999f, -65.690125f), 133); - num3 = 6; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - Span span81 = CollectionsMarshal.AsSpan(list225); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num4 = 0; + span225[num4] = null; + num4++; + span225[num4] = null; + num4++; + span225[num4] = null; + num4++; + span225[num4] = null; + num4++; + span225[num4] = null; + num4++; + span225[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list225; reference138 = questStep22; - ref QuestStep reference139 = ref span79[2]; + num3++; + ref QuestStep reference139 = ref span223[num3]; QuestStep obj125 = new QuestStep(EInteractionType.Interact, 1000228u, new Vector3(168.20007f, 15.69998f, -64.83563f), 133) { StopDistance = 5f }; - num3 = 6; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - Span span82 = CollectionsMarshal.AsSpan(list226); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list226 = new List(num4); + CollectionsMarshal.SetCount(list226, num4); + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span226[index2] = null; + index2++; + span226[index2] = null; + index2++; + span226[index2] = null; + index2++; + span226[index2] = null; + index2++; + span226[index2] = null; + index2++; + span226[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj125.CompletionQuestVariablesFlags = list226; reference139 = obj125; obj124.Steps = list223; reference136 = obj124; - ref QuestSequence reference140 = ref span78[4]; + num++; + ref QuestSequence reference140 = ref span219[num]; QuestSequence obj126 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1009952u, new Vector3(41.61133f, 1.8386029f, -117.265625f), 133); + num3 = 1; + List list227 = new List(num3); + CollectionsMarshal.SetCount(list227, num3); + Span span227 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span227[num2] = new QuestStep(EInteractionType.Interact, 1009952u, new Vector3(41.61133f, 1.8386029f, -117.265625f), 133); obj126.Steps = list227; reference140 = obj126; - ref QuestSequence reference141 = ref span78[5]; + num++; + ref QuestSequence reference141 = ref span219[num]; QuestSequence obj127 = new QuestSequence { Sequence = 5 @@ -3620,21 +4295,27 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1000243u, new Vector3(170.03125f, 15.699999f, -127.03143f), 133); + Span span228 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span228[num3] = new QuestStep(EInteractionType.Interact, 1000243u, new Vector3(170.03125f, 15.699999f, -127.03143f), 133); obj127.Steps = list228; reference141 = obj127; - ref QuestSequence reference142 = ref span78[6]; + num++; + ref QuestSequence reference142 = ref span219[num]; QuestSequence obj128 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1009952u, new Vector3(41.61133f, 1.8386029f, -117.265625f), 133); + num3 = 1; + List list229 = new List(num3); + CollectionsMarshal.SetCount(list229, num3); + Span span229 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span229[num2] = new QuestStep(EInteractionType.Interact, 1009952u, new Vector3(41.61133f, 1.8386029f, -117.265625f), 133); obj128.Steps = list229; reference142 = obj128; - ref QuestSequence reference143 = ref span78[7]; + num++; + ref QuestSequence reference143 = ref span219[num]; QuestSequence obj129 = new QuestSequence { Sequence = 7 @@ -3642,7 +4323,9 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list230)[0]; + Span span230 = CollectionsMarshal.AsSpan(list230); + num3 = 0; + ref QuestStep reference144 = ref span230[num3]; QuestStep obj130 = new QuestStep(EInteractionType.Combat, null, new Vector3(-374.96555f, 63.686344f, -206.74146f), 148) { StopDistance = 0.5f, @@ -3654,29 +4337,35 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list231 = new List(num3); - CollectionsMarshal.SetCount(list231, num3); - CollectionsMarshal.AsSpan(list231)[0] = 2863u; + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num4 = 0; + span231[num4] = 2863u; obj130.KillEnemyDataIds = list231; reference144 = obj130; obj129.Steps = list230; reference143 = obj129; - ref QuestSequence reference145 = ref span78[8]; + num++; + ref QuestSequence reference145 = ref span219[num]; QuestSequence obj131 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1001276u, new Vector3(13.961914f, 0.1373291f, 2.090454f), 132) + num3 = 1; + List list232 = new List(num3); + CollectionsMarshal.SetCount(list232, num3); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span232[num2] = new QuestStep(EInteractionType.Interact, 1001276u, new Vector3(13.961914f, 0.1373291f, 2.090454f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj131.Steps = list232; reference145 = obj131; - ref QuestSequence reference146 = ref span78[9]; + num++; + ref QuestSequence reference146 = ref span219[num]; QuestSequence obj132 = new QuestSequence { Sequence = byte.MaxValue @@ -3684,7 +4373,9 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009953u, new Vector3(31.5708f, -19.000002f, 100.48059f), 132) + Span span233 = CollectionsMarshal.AsSpan(list233); + num3 = 0; + span233[num3] = new QuestStep(EInteractionType.CompleteQuest, 1009953u, new Vector3(31.5708f, -19.000002f, 100.48059f), 132) { AethernetShortcut = new AethernetShortcut { @@ -3702,21 +4393,26 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "Cacahuetes"; + Span span234 = CollectionsMarshal.AsSpan(list234); + index = 0; + span234[index] = "Cacahuetes"; questRoot40.Author = list234; - num = 4; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span83 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference147 = ref span83[0]; + index = 4; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + Span span235 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference147 = ref span235[num]; QuestSequence obj133 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list236)[0]; + num3 = 1; + List list236 = new List(num3); + CollectionsMarshal.SetCount(list236, num3); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + ref QuestStep reference148 = ref span236[num2]; QuestStep obj134 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -3731,17 +4427,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - CollectionsMarshal.AsSpan(list237)[0] = 133; + num4 = 1; + List list237 = new List(num4); + CollectionsMarshal.SetCount(list237, num4); + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span237[index2] = 133; obj135.InTerritory = list237; skipConditions12.AetheryteShortcutIf = obj135; obj134.SkipConditions = skipConditions12; reference148 = obj134; obj133.Steps = list236; reference147 = obj133; - ref QuestSequence reference149 = ref span83[1]; + num++; + ref QuestSequence reference149 = ref span235[num]; QuestSequence obj136 = new QuestSequence { Sequence = 1 @@ -3749,8 +4448,9 @@ public static class AssemblyQuestLoader num2 = 3; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span84 = CollectionsMarshal.AsSpan(list238); - span84[0] = new QuestStep(EInteractionType.Combat, null, new Vector3(502.843f, 43.200996f, -32.464188f), 148) + Span span238 = CollectionsMarshal.AsSpan(list238); + num3 = 0; + span238[num3] = new QuestStep(EInteractionType.Combat, null, new Vector3(502.843f, 43.200996f, -32.464188f), 148) { StopDistance = 0.5f, AethernetShortcut = new AethernetShortcut @@ -3760,70 +4460,92 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - ref QuestStep reference150 = ref span84[1]; + num3++; + ref QuestStep reference150 = ref span238[num3]; QuestStep obj137 = new QuestStep(EInteractionType.Combat, 142u, new Vector3(514.06104f, 44.169823f, -42.008118f), 148) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = 142u; + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + Span span239 = CollectionsMarshal.AsSpan(list239); + num4 = 0; + span239[num4] = 142u; obj137.KillEnemyDataIds = list239; - num3 = 6; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - Span span85 = CollectionsMarshal.AsSpan(list240); - span85[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = null; + num4 = 6; + List list240 = new List(num4); + CollectionsMarshal.SetCount(list240, num4); + Span span240 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span240[index2] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index2++; + span240[index2] = null; + index2++; + span240[index2] = null; + index2++; + span240[index2] = null; + index2++; + span240[index2] = null; + index2++; + span240[index2] = null; obj137.CompletionQuestVariablesFlags = list240; reference150 = obj137; - span84[2] = new QuestStep(EInteractionType.Interact, 2000966u, new Vector3(514.8546f, 43.778076f, -48.66101f), 148); + num3++; + span238[num3] = new QuestStep(EInteractionType.Interact, 2000966u, new Vector3(514.8546f, 43.778076f, -48.66101f), 148); obj136.Steps = list238; reference149 = obj136; - ref QuestSequence reference151 = ref span83[2]; + num++; + ref QuestSequence reference151 = ref span235[num]; QuestSequence obj138 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - Span span86 = CollectionsMarshal.AsSpan(list241); - ref QuestStep reference152 = ref span86[0]; + num3 = 2; + List list241 = new List(num3); + CollectionsMarshal.SetCount(list241, num3); + Span span241 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + ref QuestStep reference152 = ref span241[num2]; QuestStep obj139 = new QuestStep(EInteractionType.Combat, null, new Vector3(211.82294f, 23.458103f, 157.57333f), 148) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list242 = new List(num3); - CollectionsMarshal.SetCount(list242, num3); - CollectionsMarshal.AsSpan(list242)[0] = 21u; + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num4 = 0; + span242[num4] = 21u; obj139.KillEnemyDataIds = list242; - num3 = 6; - List list243 = new List(num3); - CollectionsMarshal.SetCount(list243, num3); - Span span87 = CollectionsMarshal.AsSpan(list243); - span87[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = null; + num4 = 6; + List list243 = new List(num4); + CollectionsMarshal.SetCount(list243, num4); + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span243[index2] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index2++; + span243[index2] = null; + index2++; + span243[index2] = null; + index2++; + span243[index2] = null; + index2++; + span243[index2] = null; + index2++; + span243[index2] = null; obj139.CompletionQuestVariablesFlags = list243; reference152 = obj139; - span86[1] = new QuestStep(EInteractionType.Interact, 2000917u, new Vector3(215.99133f, 23.5141f, 153.1853f), 148); + num2++; + span241[num2] = new QuestStep(EInteractionType.Interact, 2000917u, new Vector3(215.99133f, 23.5141f, 153.1853f), 148); obj138.Steps = list241; reference151 = obj138; - ref QuestSequence reference153 = ref span83[3]; + num++; + ref QuestSequence reference153 = ref span235[num]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -3831,7 +4553,9 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + Span span244 = CollectionsMarshal.AsSpan(list244); + num3 = 0; + span244[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -3850,21 +4574,26 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "liza"; + Span span245 = CollectionsMarshal.AsSpan(list245); + index = 0; + span245[index] = "liza"; questRoot41.Author = list245; - num = 9; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span88 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference154 = ref span88[0]; + index = 9; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + Span span246 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference154 = ref span246[num]; QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + num3 = 1; + List list247 = new List(num3); + CollectionsMarshal.SetCount(list247, num3); + Span span247 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span247[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -3877,7 +4606,8 @@ public static class AssemblyQuestLoader }; obj141.Steps = list247; reference154 = obj141; - ref QuestSequence reference155 = ref span88[1]; + num++; + ref QuestSequence reference155 = ref span246[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -3885,7 +4615,9 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1009781u, new Vector3(-89.829956f, 5.2000036f, 45.426025f), 131) + Span span248 = CollectionsMarshal.AsSpan(list248); + num3 = 0; + span248[num3] = new QuestStep(EInteractionType.Interact, 1009781u, new Vector3(-89.829956f, 5.2000036f, 45.426025f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -3896,83 +4628,114 @@ public static class AssemblyQuestLoader }; obj142.Steps = list248; reference155 = obj142; - ref QuestSequence reference156 = ref span88[2]; + num++; + ref QuestSequence reference156 = ref span246[num]; QuestSequence obj143 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - Span span89 = CollectionsMarshal.AsSpan(list249); - ref QuestStep reference157 = ref span89[0]; + num3 = 5; + List list249 = new List(num3); + CollectionsMarshal.SetCount(list249, num3); + Span span249 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + ref QuestStep reference157 = ref span249[num2]; QuestStep obj144 = new QuestStep(EInteractionType.UseItem, 2004614u, new Vector3(-80.76605f, 8.895996f, -16.739136f), 131) { IgnoreDistanceToObject = true, ItemId = 2001459u }; - num3 = 6; - List list250 = new List(num3); - CollectionsMarshal.SetCount(list250, num3); - Span span90 = CollectionsMarshal.AsSpan(list250); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span250 = CollectionsMarshal.AsSpan(list250); + num4 = 0; + span250[num4] = null; + num4++; + span250[num4] = null; + num4++; + span250[num4] = null; + num4++; + span250[num4] = null; + num4++; + span250[num4] = null; + num4++; + span250[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj144.CompletionQuestVariablesFlags = list250; reference157 = obj144; - ref QuestStep reference158 = ref span89[1]; + num2++; + ref QuestStep reference158 = ref span249[num2]; QuestStep obj145 = new QuestStep(EInteractionType.UseItem, 2004616u, new Vector3(-98.1308f, 8.987488f, -16.617126f), 131) { IgnoreDistanceToObject = true, ItemId = 2001459u }; - num3 = 6; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - Span span91 = CollectionsMarshal.AsSpan(list251); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list251 = new List(num4); + CollectionsMarshal.SetCount(list251, num4); + Span span251 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span251[index2] = null; + index2++; + span251[index2] = null; + index2++; + span251[index2] = null; + index2++; + span251[index2] = null; + index2++; + span251[index2] = null; + index2++; + span251[index2] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj145.CompletionQuestVariablesFlags = list251; reference158 = obj145; - span89[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.42244f, 7.9935846f, -8.936225f), 131); - ref QuestStep reference159 = ref span89[3]; + num2++; + span249[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.42244f, 7.9935846f, -8.936225f), 131); + num2++; + ref QuestStep reference159 = ref span249[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1001859u, new Vector3(-142.71765f, 11.999999f, -15.610046f), 130); - num3 = 6; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - Span span92 = CollectionsMarshal.AsSpan(list252); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num4 = 0; + span252[num4] = null; + num4++; + span252[num4] = null; + num4++; + span252[num4] = null; + num4++; + span252[num4] = null; + num4++; + span252[num4] = null; + num4++; + span252[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list252; reference159 = questStep23; - ref QuestStep reference160 = ref span89[4]; + num2++; + ref QuestStep reference160 = ref span249[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1009789u, new Vector3(-159.68573f, 12.596368f, 0.869751f), 130); - num3 = 6; - List list253 = new List(num3); - CollectionsMarshal.SetCount(list253, num3); - Span span93 = CollectionsMarshal.AsSpan(list253); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list253 = new List(num4); + CollectionsMarshal.SetCount(list253, num4); + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = null; + index2++; + span253[index2] = null; + index2++; + span253[index2] = null; + index2++; + span253[index2] = null; + index2++; + span253[index2] = null; + index2++; + span253[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list253; reference160 = questStep24; obj143.Steps = list249; reference156 = obj143; - ref QuestSequence reference161 = ref span88[3]; + num++; + ref QuestSequence reference161 = ref span246[num]; QuestSequence obj146 = new QuestSequence { Sequence = 3 @@ -3980,26 +4743,32 @@ public static class AssemblyQuestLoader num2 = 2; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span94 = CollectionsMarshal.AsSpan(list254); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-117.18245f, 9.232903f, 9.133285f), 130); - span94[1] = new QuestStep(EInteractionType.Interact, 1009785u, new Vector3(-88.15143f, 5.200004f, 45.303955f), 131); + Span span254 = CollectionsMarshal.AsSpan(list254); + num3 = 0; + span254[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-117.18245f, 9.232903f, 9.133285f), 130); + num3++; + span254[num3] = new QuestStep(EInteractionType.Interact, 1009785u, new Vector3(-88.15143f, 5.200004f, 45.303955f), 131); obj146.Steps = list254; reference161 = obj146; - ref QuestSequence reference162 = ref span88[4]; + num++; + ref QuestSequence reference162 = ref span246[num]; QuestSequence obj147 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Emote, 1001675u, new Vector3(-89.49426f, 7.008118f, 10.849121f), 131) + num3 = 1; + List list255 = new List(num3); + CollectionsMarshal.SetCount(list255, num3); + Span span255 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span255[num2] = new QuestStep(EInteractionType.Emote, 1001675u, new Vector3(-89.49426f, 7.008118f, 10.849121f), 131) { Emote = EEmote.Welcome }; obj147.Steps = list255; reference162 = obj147; - ref QuestSequence reference163 = ref span88[5]; + num++; + ref QuestSequence reference163 = ref span246[num]; QuestSequence obj148 = new QuestSequence { Sequence = 5 @@ -4007,23 +4776,29 @@ public static class AssemblyQuestLoader num2 = 2; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span95 = CollectionsMarshal.AsSpan(list256); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.38632f, 7.6503563f, 9.034383f), 131); - span95[1] = new QuestStep(EInteractionType.Interact, 1009792u, new Vector3(-135.36285f, 10.9999895f, 0.015197754f), 130); + Span span256 = CollectionsMarshal.AsSpan(list256); + num3 = 0; + span256[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.38632f, 7.6503563f, 9.034383f), 131); + num3++; + span256[num3] = new QuestStep(EInteractionType.Interact, 1009792u, new Vector3(-135.36285f, 10.9999895f, 0.015197754f), 130); obj148.Steps = list256; reference163 = obj148; - ref QuestSequence reference164 = ref span88[6]; + num++; + ref QuestSequence reference164 = ref span246[num]; QuestSequence obj149 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1009791u, new Vector3(-13.778931f, 3.9999998f, -151.4458f), 130); + num3 = 1; + List list257 = new List(num3); + CollectionsMarshal.SetCount(list257, num3); + Span span257 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span257[num2] = new QuestStep(EInteractionType.Interact, 1009791u, new Vector3(-13.778931f, 3.9999998f, -151.4458f), 130); obj149.Steps = list257; reference164 = obj149; - ref QuestSequence reference165 = ref span88[7]; + num++; + ref QuestSequence reference165 = ref span246[num]; QuestSequence obj150 = new QuestSequence { Sequence = 7 @@ -4031,33 +4806,40 @@ public static class AssemblyQuestLoader num2 = 2; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span96 = CollectionsMarshal.AsSpan(list258); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(44.151344f, 4.0195827f, -165.77715f), 130); - ref QuestStep reference166 = ref span96[1]; + Span span258 = CollectionsMarshal.AsSpan(list258); + num3 = 0; + span258[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(44.151344f, 4.0195827f, -165.77715f), 130); + num3++; + ref QuestStep reference166 = ref span258[num3]; QuestStep obj151 = new QuestStep(EInteractionType.Combat, null, new Vector3(-172.42809f, 16.059729f, 276.30084f), 141) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - Span span97 = CollectionsMarshal.AsSpan(list259); - span97[0] = 2853u; - span97[1] = 3120u; + index2 = 2; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + Span span259 = CollectionsMarshal.AsSpan(list259); + num4 = 0; + span259[num4] = 2853u; + num4++; + span259[num4] = 3120u; obj151.KillEnemyDataIds = list259; reference166 = obj151; obj150.Steps = list258; reference165 = obj150; - ref QuestSequence reference167 = ref span88[8]; + num++; + ref QuestSequence reference167 = ref span246[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009794u, new Vector3(-174.45642f, 16.149345f, 275.6847f), 141) + num3 = 1; + List list260 = new List(num3); + CollectionsMarshal.SetCount(list260, num3); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span260[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009794u, new Vector3(-174.45642f, 16.149345f, 275.6847f), 141) { NextQuestId = new QuestId(1573) }; @@ -4070,13 +4852,16 @@ public static class AssemblyQuestLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - CollectionsMarshal.AsSpan(list261)[0] = "liza"; + Span span261 = CollectionsMarshal.AsSpan(list261); + index = 0; + span261[index] = "liza"; questRoot42.Author = list261; - num = 3; - List list262 = new List(num); - CollectionsMarshal.SetCount(list262, num); - Span span98 = CollectionsMarshal.AsSpan(list262); - ref QuestSequence reference168 = ref span98[0]; + index = 3; + List list262 = new List(index); + CollectionsMarshal.SetCount(list262, index); + Span span262 = CollectionsMarshal.AsSpan(list262); + num = 0; + ref QuestSequence reference168 = ref span262[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 @@ -4084,102 +4869,141 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133); + Span span263 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span263[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133); obj153.Steps = list263; reference168 = obj153; - ref QuestSequence reference169 = ref span98[1]; + num++; + ref QuestSequence reference169 = ref span262[num]; QuestSequence obj154 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - Span span99 = CollectionsMarshal.AsSpan(list264); - ref QuestStep reference170 = ref span99[0]; + num3 = 5; + List list264 = new List(num3); + CollectionsMarshal.SetCount(list264, num3); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + ref QuestStep reference170 = ref span264[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(157.92119f, 15.700001f, -122.177925f), 133); SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - Span span100 = CollectionsMarshal.AsSpan(list265); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list265 = new List(num4); + CollectionsMarshal.SetCount(list265, num4); + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span265[index2] = null; + index2++; + span265[index2] = null; + index2++; + span265[index2] = null; + index2++; + span265[index2] = null; + index2++; + span265[index2] = null; + index2++; + span265[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list265; skipConditions13.StepIf = skipStepConditions2; questStep25.SkipConditions = skipConditions13; reference170 = questStep25; - ref QuestStep reference171 = ref span99[1]; + num2++; + ref QuestStep reference171 = ref span264[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1000238u, new Vector3(155.41309f, 15.700001f, -121.812805f), 133); - num3 = 6; - List list266 = new List(num3); - CollectionsMarshal.SetCount(list266, num3); - Span span101 = CollectionsMarshal.AsSpan(list266); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + Span span266 = CollectionsMarshal.AsSpan(list266); + num4 = 0; + span266[num4] = null; + num4++; + span266[num4] = null; + num4++; + span266[num4] = null; + num4++; + span266[num4] = null; + num4++; + span266[num4] = null; + num4++; + span266[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list266; reference171 = questStep26; - ref QuestStep reference172 = ref span99[2]; + num2++; + ref QuestStep reference172 = ref span264[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(162.74281f, 15.699926f, -59.43834f), 133); SkipConditions skipConditions14 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - Span span102 = CollectionsMarshal.AsSpan(list267); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list267 = new List(num4); + CollectionsMarshal.SetCount(list267, num4); + Span span267 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span267[index2] = null; + index2++; + span267[index2] = null; + index2++; + span267[index2] = null; + index2++; + span267[index2] = null; + index2++; + span267[index2] = null; + index2++; + span267[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list267; skipConditions14.StepIf = skipStepConditions3; questStep27.SkipConditions = skipConditions14; reference172 = questStep27; - ref QuestStep reference173 = ref span99[3]; + num2++; + ref QuestStep reference173 = ref span264[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1000218u, new Vector3(164.72107f, 15.699947f, -58.18268f), 133); - num3 = 6; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - Span span103 = CollectionsMarshal.AsSpan(list268); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + Span span268 = CollectionsMarshal.AsSpan(list268); + num4 = 0; + span268[num4] = null; + num4++; + span268[num4] = null; + num4++; + span268[num4] = null; + num4++; + span268[num4] = null; + num4++; + span268[num4] = null; + num4++; + span268[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep28.CompletionQuestVariablesFlags = list268; reference173 = questStep28; - ref QuestStep reference174 = ref span99[4]; + num2++; + ref QuestStep reference174 = ref span264[num2]; QuestStep obj155 = new QuestStep(EInteractionType.Interact, 1000214u, new Vector3(151.4762f, 15.699964f, -63.920105f), 133) { StopDistance = 5f }; - num3 = 6; - List list269 = new List(num3); - CollectionsMarshal.SetCount(list269, num3); - Span span104 = CollectionsMarshal.AsSpan(list269); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list269 = new List(num4); + CollectionsMarshal.SetCount(list269, num4); + Span span269 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span269[index2] = null; + index2++; + span269[index2] = null; + index2++; + span269[index2] = null; + index2++; + span269[index2] = null; + index2++; + span269[index2] = null; + index2++; + span269[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj155.CompletionQuestVariablesFlags = list269; reference174 = obj155; obj154.Steps = list264; reference169 = obj154; - ref QuestSequence reference175 = ref span98[2]; + num++; + ref QuestSequence reference175 = ref span262[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -4187,7 +5011,9 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000248u, new Vector3(143.05322f, 14.250365f, -250.72101f), 133) + Span span270 = CollectionsMarshal.AsSpan(list270); + num3 = 0; + span270[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000248u, new Vector3(143.05322f, 14.250365f, -250.72101f), 133) { AethernetShortcut = new AethernetShortcut { @@ -4204,26 +5030,33 @@ public static class AssemblyQuestLoader num = 1; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - CollectionsMarshal.AsSpan(list271)[0] = "liza"; + Span span271 = CollectionsMarshal.AsSpan(list271); + index = 0; + span271[index] = "liza"; questRoot43.Author = list271; - num = 2; - List list272 = new List(num); - CollectionsMarshal.SetCount(list272, num); - Span span105 = CollectionsMarshal.AsSpan(list272); - ref QuestSequence reference176 = ref span105[0]; + index = 2; + List list272 = new List(index); + CollectionsMarshal.SetCount(list272, index); + Span span272 = CollectionsMarshal.AsSpan(list272); + num = 0; + ref QuestSequence reference176 = ref span272[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - ref QuestStep reference177 = ref CollectionsMarshal.AsSpan(list273)[0]; - QuestStep questStep29 = new QuestStep(EInteractionType.AcceptQuest, 1001148u, new Vector3(117.112915f, -12.506256f, 143.63306f), 183); num3 = 1; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - CollectionsMarshal.AsSpan(list274)[0] = new DialogueChoice + List list273 = new List(num3); + CollectionsMarshal.SetCount(list273, num3); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + ref QuestStep reference177 = ref span273[num2]; + QuestStep questStep29 = new QuestStep(EInteractionType.AcceptQuest, 1001148u, new Vector3(117.112915f, -12.506256f, 143.63306f), 183); + index2 = 1; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + Span span274 = CollectionsMarshal.AsSpan(list274); + num4 = 0; + span274[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "opening/OpeningGridania", @@ -4234,7 +5067,8 @@ public static class AssemblyQuestLoader reference177 = questStep29; obj157.Steps = list273; reference176 = obj157; - ref QuestSequence reference178 = ref span105[1]; + num++; + ref QuestSequence reference178 = ref span272[num]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue @@ -4242,7 +5076,9 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); + Span span275 = CollectionsMarshal.AsSpan(list275); + num3 = 0; + span275[num3] = new QuestStep(EInteractionType.CompleteQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); obj158.Steps = list275; reference178 = obj158; questRoot43.QuestSequence = list272; @@ -4252,24 +5088,30 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "liza"; + Span span276 = CollectionsMarshal.AsSpan(list276); + index = 0; + span276[index] = "liza"; questRoot44.Author = list276; - num = 3; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span106 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference179 = ref span106[0]; + index = 3; + List list277 = new List(index); + CollectionsMarshal.SetCount(list277, index); + Span span277 = CollectionsMarshal.AsSpan(list277); + num = 0; + ref QuestSequence reference179 = ref span277[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000286u, new Vector3(-53.574463f, 7.2025366f, -118.36426f), 133); + num3 = 1; + List list278 = new List(num3); + CollectionsMarshal.SetCount(list278, num3); + Span span278 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span278[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000286u, new Vector3(-53.574463f, 7.2025366f, -118.36426f), 133); obj159.Steps = list278; reference179 = obj159; - ref QuestSequence reference180 = ref span106[1]; + num++; + ref QuestSequence reference180 = ref span277[num]; QuestSequence obj160 = new QuestSequence { Sequence = 1 @@ -4277,102 +5119,147 @@ public static class AssemblyQuestLoader num2 = 6; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span107 = CollectionsMarshal.AsSpan(list279); - ref QuestStep reference181 = ref span107[0]; + Span span279 = CollectionsMarshal.AsSpan(list279); + num3 = 0; + ref QuestStep reference181 = ref span279[num3]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 2000022u, new Vector3(-52.71997f, 6.7596436f, -109.9718f), 133); - num3 = 6; - List list280 = new List(num3); - CollectionsMarshal.SetCount(list280, num3); - Span span108 = CollectionsMarshal.AsSpan(list280); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list280 = new List(num4); + CollectionsMarshal.SetCount(list280, num4); + Span span280 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span280[index2] = null; + index2++; + span280[index2] = null; + index2++; + span280[index2] = null; + index2++; + span280[index2] = null; + index2++; + span280[index2] = null; + index2++; + span280[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep30.CompletionQuestVariablesFlags = list280; reference181 = questStep30; - ref QuestStep reference182 = ref span107[1]; + num3++; + ref QuestStep reference182 = ref span279[num3]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 2000020u, new Vector3(-63.09613f, 6.94281f, -110.85681f), 133); - num3 = 6; - List list281 = new List(num3); - CollectionsMarshal.SetCount(list281, num3); - Span span109 = CollectionsMarshal.AsSpan(list281); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + Span span281 = CollectionsMarshal.AsSpan(list281); + num4 = 0; + span281[num4] = null; + num4++; + span281[num4] = null; + num4++; + span281[num4] = null; + num4++; + span281[num4] = null; + num4++; + span281[num4] = null; + num4++; + span281[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep31.CompletionQuestVariablesFlags = list281; reference182 = questStep31; - ref QuestStep reference183 = ref span107[2]; + num3++; + ref QuestStep reference183 = ref span279[num3]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 2000021u, new Vector3(-37.979797f, 5.996765f, -101.76245f), 133); - num3 = 6; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - Span span110 = CollectionsMarshal.AsSpan(list282); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list282 = new List(num4); + CollectionsMarshal.SetCount(list282, num4); + Span span282 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span282[index2] = null; + index2++; + span282[index2] = null; + index2++; + span282[index2] = null; + index2++; + span282[index2] = null; + index2++; + span282[index2] = null; + index2++; + span282[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep32.CompletionQuestVariablesFlags = list282; reference183 = questStep32; - ref QuestStep reference184 = ref span107[3]; + num3++; + ref QuestStep reference184 = ref span279[num3]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 2000025u, new Vector3(-47.80658f, 5.722107f, -99.4126f), 133); - num3 = 6; - List list283 = new List(num3); - CollectionsMarshal.SetCount(list283, num3); - Span span111 = CollectionsMarshal.AsSpan(list283); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + index2 = 6; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + Span span283 = CollectionsMarshal.AsSpan(list283); + num4 = 0; + span283[num4] = null; + num4++; + span283[num4] = null; + num4++; + span283[num4] = null; + num4++; + span283[num4] = null; + num4++; + span283[num4] = null; + num4++; + span283[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); questStep33.CompletionQuestVariablesFlags = list283; reference184 = questStep33; - ref QuestStep reference185 = ref span107[4]; + num3++; + ref QuestStep reference185 = ref span279[num3]; QuestStep questStep34 = new QuestStep(EInteractionType.Interact, 2000024u, new Vector3(-53.75763f, 6.4850464f, -89.52472f), 133); - num3 = 6; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - Span span112 = CollectionsMarshal.AsSpan(list284); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list284 = new List(num4); + CollectionsMarshal.SetCount(list284, num4); + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span284[index2] = null; + index2++; + span284[index2] = null; + index2++; + span284[index2] = null; + index2++; + span284[index2] = null; + index2++; + span284[index2] = null; + index2++; + span284[index2] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep34.CompletionQuestVariablesFlags = list284; reference185 = questStep34; - ref QuestStep reference186 = ref span107[5]; + num3++; + ref QuestStep reference186 = ref span279[num3]; QuestStep questStep35 = new QuestStep(EInteractionType.Interact, 2000023u, new Vector3(-43.808716f, 6.4850464f, -85.80151f), 133); - num3 = 6; - List list285 = new List(num3); - CollectionsMarshal.SetCount(list285, num3); - Span span113 = CollectionsMarshal.AsSpan(list285); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span285 = CollectionsMarshal.AsSpan(list285); + num4 = 0; + span285[num4] = null; + num4++; + span285[num4] = null; + num4++; + span285[num4] = null; + num4++; + span285[num4] = null; + num4++; + span285[num4] = null; + num4++; + span285[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep35.CompletionQuestVariablesFlags = list285; reference186 = questStep35; obj160.Steps = list279; reference180 = obj160; - ref QuestSequence reference187 = ref span106[2]; + num++; + ref QuestSequence reference187 = ref span277[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000286u, new Vector3(-53.574463f, 7.2025366f, -118.36426f), 133); + num3 = 1; + List list286 = new List(num3); + CollectionsMarshal.SetCount(list286, num3); + Span span286 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span286[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000286u, new Vector3(-53.574463f, 7.2025366f, -118.36426f), 133); obj161.Steps = list286; reference187 = obj161; questRoot44.QuestSequence = list277; @@ -4382,14 +5269,17 @@ public static class AssemblyQuestLoader num = 1; List list287 = new List(num); CollectionsMarshal.SetCount(list287, num); - CollectionsMarshal.AsSpan(list287)[0] = "liza"; + Span span287 = CollectionsMarshal.AsSpan(list287); + index = 0; + span287[index] = "liza"; questRoot45.Author = list287; questRoot45.Comment = "Only Turn 13 is required for the next quest to unlock"; - num = 6; - List list288 = new List(num); - CollectionsMarshal.SetCount(list288, num); - Span span114 = CollectionsMarshal.AsSpan(list288); - ref QuestSequence reference188 = ref span114[0]; + index = 6; + List list288 = new List(index); + CollectionsMarshal.SetCount(list288, index); + Span span288 = CollectionsMarshal.AsSpan(list288); + num = 0; + ref QuestSequence reference188 = ref span288[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -4397,8 +5287,9 @@ public static class AssemblyQuestLoader num2 = 4; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span115 = CollectionsMarshal.AsSpan(list289); - ref QuestStep reference189 = ref span115[0]; + Span span289 = CollectionsMarshal.AsSpan(list289); + num3 = 0; + ref QuestStep reference189 = ref span289[num3]; QuestStep obj163 = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, @@ -4406,67 +5297,80 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions15 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 2; - List list290 = new List(num3); - CollectionsMarshal.SetCount(list290, num3); - Span span116 = CollectionsMarshal.AsSpan(list290); - span116[0] = 140; - span116[1] = 212; + num4 = 2; + List list290 = new List(num4); + CollectionsMarshal.SetCount(list290, num4); + Span span290 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span290[index2] = 140; + index2++; + span290[index2] = 212; skipStepConditions4.InTerritory = list290; skipConditions15.StepIf = skipStepConditions4; obj163.SkipConditions = skipConditions15; reference189 = obj163; - ref QuestStep reference190 = ref span115[1]; + num3++; + ref QuestStep reference190 = ref span289[num3]; QuestStep questStep36 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions16 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list291 = new List(num3); - CollectionsMarshal.SetCount(list291, num3); - CollectionsMarshal.AsSpan(list291)[0] = 212; + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + Span span291 = CollectionsMarshal.AsSpan(list291); + num4 = 0; + span291[num4] = 212; skipStepConditions5.InTerritory = list291; skipConditions16.StepIf = skipStepConditions5; questStep36.SkipConditions = skipConditions16; reference190 = questStep36; - ref QuestStep reference191 = ref span115[2]; + num3++; + ref QuestStep reference191 = ref span289[num3]; QuestStep obj164 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; SkipConditions skipConditions17 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list292 = new List(num3); - CollectionsMarshal.SetCount(list292, num3); - CollectionsMarshal.AsSpan(list292)[0] = 212; + num4 = 1; + List list292 = new List(num4); + CollectionsMarshal.SetCount(list292, num4); + Span span292 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span292[index2] = 212; skipStepConditions6.InTerritory = list292; skipConditions17.StepIf = skipStepConditions6; obj164.SkipConditions = skipConditions17; reference191 = obj164; - span115[3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + num3++; + span289[num3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj162.Steps = list289; reference188 = obj162; - ref QuestSequence reference192 = ref span114[1]; + num++; + ref QuestSequence reference192 = ref span288[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - Span span117 = CollectionsMarshal.AsSpan(list293); - span117[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(430.20032f, 3.6547468f, 168.62611f), 145) + num3 = 2; + List list293 = new List(num3); + CollectionsMarshal.SetCount(list293, num3); + Span span293 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span293[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(430.20032f, 3.6547468f, 168.62611f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - span117[1] = new QuestStep(EInteractionType.Interact, 1009769u, new Vector3(430.6858f, 3.26411f, 171.58765f), 145) + num2++; + span293[num2] = new QuestStep(EInteractionType.Interact, 1009769u, new Vector3(430.6858f, 3.26411f, 171.58765f), 145) { StopDistance = 5f }; obj165.Steps = list293; reference192 = obj165; - ref QuestSequence reference193 = ref span114[2]; + num++; + ref QuestSequence reference193 = ref span288[num]; QuestSequence obj166 = new QuestSequence { Sequence = 2 @@ -4474,28 +5378,34 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1009770u, new Vector3(469.5963f, -3.4332886f, -781.1856f), 156) + Span span294 = CollectionsMarshal.AsSpan(list294); + num3 = 0; + span294[num3] = new QuestStep(EInteractionType.Interact, 1009770u, new Vector3(469.5963f, -3.4332886f, -781.1856f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj166.Steps = list294; reference193 = obj166; - ref QuestSequence reference194 = ref span114[3]; + num++; + ref QuestSequence reference194 = ref span288[num]; QuestSequence obj167 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1009771u, new Vector3(-71.61066f, 48.96479f, -52.048523f), 147) + num3 = 1; + List list295 = new List(num3); + CollectionsMarshal.SetCount(list295, num3); + Span span295 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + span295[num2] = new QuestStep(EInteractionType.Interact, 1009771u, new Vector3(-71.61066f, 48.96479f, -52.048523f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; obj167.Steps = list295; reference194 = obj167; - ref QuestSequence reference195 = ref span114[4]; + num++; + ref QuestSequence reference195 = ref span288[num]; QuestSequence obj168 = new QuestSequence { Sequence = 4 @@ -4503,23 +5413,28 @@ public static class AssemblyQuestLoader num2 = 2; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - Span span118 = CollectionsMarshal.AsSpan(list296); - span118[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-67.2906f, 71.11877f, -189.74506f), 147) + Span span296 = CollectionsMarshal.AsSpan(list296); + num3 = 0; + span296[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-67.2906f, 71.11877f, -189.74506f), 147) { Fly = true }; - span118[1] = new QuestStep(EInteractionType.Interact, 1009772u, new Vector3(-67.12445f, 71.293205f, -190.96667f), 147); + num3++; + span296[num3] = new QuestStep(EInteractionType.Interact, 1009772u, new Vector3(-67.12445f, 71.293205f, -190.96667f), 147); obj168.Steps = list296; reference195 = obj168; - ref QuestSequence reference196 = ref span114[5]; + num++; + ref QuestSequence reference196 = ref span288[num]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009768u, new Vector3(-103.868225f, 51.873333f, -58.365784f), 147) + num3 = 1; + List list297 = new List(num3); + CollectionsMarshal.SetCount(list297, num3); + Span span297 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + span297[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009768u, new Vector3(-103.868225f, 51.873333f, -58.365784f), 147) { Fly = true, NextQuestId = new QuestId(44) @@ -4533,13 +5448,16 @@ public static class AssemblyQuestLoader num = 1; List list298 = new List(num); CollectionsMarshal.SetCount(list298, num); - CollectionsMarshal.AsSpan(list298)[0] = "liza"; + Span span298 = CollectionsMarshal.AsSpan(list298); + index = 0; + span298[index] = "liza"; questRoot46.Author = list298; - num = 2; - List list299 = new List(num); - CollectionsMarshal.SetCount(list299, num); - Span span119 = CollectionsMarshal.AsSpan(list299); - ref QuestSequence reference197 = ref span119[0]; + index = 2; + List list299 = new List(index); + CollectionsMarshal.SetCount(list299, index); + Span span299 = CollectionsMarshal.AsSpan(list299); + num = 0; + ref QuestSequence reference197 = ref span299[num]; QuestSequence obj170 = new QuestSequence { Sequence = 0 @@ -4547,16 +5465,20 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list300)[0]; + Span span300 = CollectionsMarshal.AsSpan(list300); + num3 = 0; + ref QuestStep reference198 = ref span300[num3]; QuestStep obj171 = new QuestStep(EInteractionType.AcceptQuest, 1009777u, new Vector3(-59.983215f, 76.798584f, -204.0589f), 147) { StopDistance = 1f, Fly = true }; - num3 = 1; - List list301 = new List(num3); - CollectionsMarshal.SetCount(list301, num3); - CollectionsMarshal.AsSpan(list301)[0] = new DialogueChoice + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + Span span301 = CollectionsMarshal.AsSpan(list301); + num4 = 0; + span301[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSD502_00044_Q1_000_000"), @@ -4566,15 +5488,18 @@ public static class AssemblyQuestLoader reference198 = obj171; obj170.Steps = list300; reference197 = obj170; - ref QuestSequence reference199 = ref span119[1]; + num++; + ref QuestSequence reference199 = ref span299[num]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009771u, new Vector3(-71.61066f, 48.96479f, -52.048523f), 147) + num3 = 1; + List list302 = new List(num3); + CollectionsMarshal.SetCount(list302, num3); + Span span302 = CollectionsMarshal.AsSpan(list302); + num2 = 0; + span302[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009771u, new Vector3(-71.61066f, 48.96479f, -52.048523f), 147) { Fly = true }; @@ -4587,13 +5512,16 @@ public static class AssemblyQuestLoader num = 1; List list303 = new List(num); CollectionsMarshal.SetCount(list303, num); - CollectionsMarshal.AsSpan(list303)[0] = "liza"; + Span span303 = CollectionsMarshal.AsSpan(list303); + index = 0; + span303[index] = "liza"; questRoot47.Author = list303; - num = 8; - List list304 = new List(num); - CollectionsMarshal.SetCount(list304, num); - Span span120 = CollectionsMarshal.AsSpan(list304); - ref QuestSequence reference200 = ref span120[0]; + index = 8; + List list304 = new List(index); + CollectionsMarshal.SetCount(list304, index); + Span span304 = CollectionsMarshal.AsSpan(list304); + num = 0; + ref QuestSequence reference200 = ref span304[num]; QuestSequence obj173 = new QuestSequence { Sequence = 0 @@ -4601,7 +5529,9 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009812u, new Vector3(74.08252f, 30.549389f, -720.9735f), 156) + Span span305 = CollectionsMarshal.AsSpan(list305); + num3 = 0; + span305[num3] = new QuestStep(EInteractionType.AcceptQuest, 1009812u, new Vector3(74.08252f, 30.549389f, -720.9735f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -4614,24 +5544,29 @@ public static class AssemblyQuestLoader }; obj173.Steps = list305; reference200 = obj173; - ref QuestSequence reference201 = ref span120[1]; + num++; + ref QuestSequence reference201 = ref span304[num]; QuestSequence obj174 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - Span span121 = CollectionsMarshal.AsSpan(list306); - span121[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) + num3 = 3; + List list306 = new List(num3); + CollectionsMarshal.SetCount(list306, num3); + Span span306 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + span306[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) { Fly = true }; - span121[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); - span121[2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); + num2++; + span306[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); + num2++; + span306[num2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); obj174.Steps = list306; reference201 = obj174; - ref QuestSequence reference202 = ref span120[2]; + num++; + ref QuestSequence reference202 = ref span304[num]; QuestSequence obj175 = new QuestSequence { Sequence = 2 @@ -4639,24 +5574,30 @@ public static class AssemblyQuestLoader num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 2004628u, new Vector3(50.614136f, 31.143677f, -748.40924f), 156); + Span span307 = CollectionsMarshal.AsSpan(list307); + num3 = 0; + span307[num3] = new QuestStep(EInteractionType.Interact, 2004628u, new Vector3(50.614136f, 31.143677f, -748.40924f), 156); obj175.Steps = list307; reference202 = obj175; - ref QuestSequence reference203 = ref span120[3]; + num++; + ref QuestSequence reference203 = ref span304[num]; QuestSequence obj176 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 2004631u, new Vector3(-127.55017f, -1.9379272f, -638.4833f), 156) + num3 = 1; + List list308 = new List(num3); + CollectionsMarshal.SetCount(list308, num3); + Span span308 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span308[num2] = new QuestStep(EInteractionType.Interact, 2004631u, new Vector3(-127.55017f, -1.9379272f, -638.4833f), 156) { Fly = true }; obj176.Steps = list308; reference203 = obj176; - ref QuestSequence reference204 = ref span120[4]; + num++; + ref QuestSequence reference204 = ref span304[num]; QuestSequence obj177 = new QuestSequence { Sequence = 4 @@ -4664,29 +5605,35 @@ public static class AssemblyQuestLoader num2 = 2; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span122 = CollectionsMarshal.AsSpan(list309); - span122[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-165.20372f, 11.28438f, -619.29504f), 156) + Span span309 = CollectionsMarshal.AsSpan(list309); + num3 = 0; + span309[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-165.20372f, 11.28438f, -619.29504f), 156) { Fly = true }; - span122[1] = new QuestStep(EInteractionType.Interact, 2004629u, new Vector3(-166.79645f, 12.283508f, -619.8978f), 156); + num3++; + span309[num3] = new QuestStep(EInteractionType.Interact, 2004629u, new Vector3(-166.79645f, 12.283508f, -619.8978f), 156); obj177.Steps = list309; reference204 = obj177; - ref QuestSequence reference205 = ref span120[5]; + num++; + ref QuestSequence reference205 = ref span304[num]; QuestSequence obj178 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1009817u, new Vector3(-130.1748f, -0.85852593f, -645.2583f), 156) + num3 = 1; + List list310 = new List(num3); + CollectionsMarshal.SetCount(list310, num3); + Span span310 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + span310[num2] = new QuestStep(EInteractionType.Interact, 1009817u, new Vector3(-130.1748f, -0.85852593f, -645.2583f), 156) { Fly = true }; obj178.Steps = list310; reference205 = obj178; - ref QuestSequence reference206 = ref span120[6]; + num++; + ref QuestSequence reference206 = ref span304[num]; QuestSequence obj179 = new QuestSequence { Sequence = 6 @@ -4694,21 +5641,26 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + Span span311 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span311[num3] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { Fly = true }; obj179.Steps = list311; reference206 = obj179; - ref QuestSequence reference207 = ref span120[7]; + num++; + ref QuestSequence reference207 = ref span304[num]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) + num3 = 1; + List list312 = new List(num3); + CollectionsMarshal.SetCount(list312, num3); + Span span312 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span312[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) { Fly = true, NextQuestId = new QuestId(50) @@ -4722,13 +5674,16 @@ public static class AssemblyQuestLoader num = 1; List list313 = new List(num); CollectionsMarshal.SetCount(list313, num); - CollectionsMarshal.AsSpan(list313)[0] = "pot0to"; + Span span313 = CollectionsMarshal.AsSpan(list313); + index = 0; + span313[index] = "pot0to"; questRoot48.Author = list313; - num = 5; - List list314 = new List(num); - CollectionsMarshal.SetCount(list314, num); - Span span123 = CollectionsMarshal.AsSpan(list314); - ref QuestSequence reference208 = ref span123[0]; + index = 5; + List list314 = new List(index); + CollectionsMarshal.SetCount(list314, index); + Span span314 = CollectionsMarshal.AsSpan(list314); + num = 0; + ref QuestSequence reference208 = ref span314[num]; QuestSequence obj181 = new QuestSequence { Sequence = 0 @@ -4736,7 +5691,9 @@ public static class AssemblyQuestLoader num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + Span span315 = CollectionsMarshal.AsSpan(list315); + num3 = 0; + span315[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -4755,216 +5712,295 @@ public static class AssemblyQuestLoader }; obj181.Steps = list315; reference208 = obj181; - ref QuestSequence reference209 = ref span123[1]; + num++; + ref QuestSequence reference209 = ref span314[num]; QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - num2 = 11; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - Span span124 = CollectionsMarshal.AsSpan(list316); - ref QuestStep reference210 = ref span124[0]; + num3 = 11; + List list316 = new List(num3); + CollectionsMarshal.SetCount(list316, num3); + Span span316 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + ref QuestStep reference210 = ref span316[num2]; QuestStep obj183 = new QuestStep(EInteractionType.Action, 2000925u, new Vector3(187.18237f, -2.7314453f, 79.087524f), 132) { StopDistance = 15f, Action = EAction.HeavyShot }; - num3 = 6; - List list317 = new List(num3); - CollectionsMarshal.SetCount(list317, num3); - Span span125 = CollectionsMarshal.AsSpan(list317); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list317 = new List(num4); + CollectionsMarshal.SetCount(list317, num4); + Span span317 = CollectionsMarshal.AsSpan(list317); + index2 = 0; + span317[index2] = null; + index2++; + span317[index2] = null; + index2++; + span317[index2] = null; + index2++; + span317[index2] = null; + index2++; + span317[index2] = null; + index2++; + span317[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj183.CompletionQuestVariablesFlags = list317; reference210 = obj183; - ref QuestStep reference211 = ref span124[1]; + num2++; + ref QuestStep reference211 = ref span316[num2]; QuestStep questStep37 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(106.01592f, 0.14552212f, 57.230045f), 132); SkipConditions skipConditions18 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - Span span126 = CollectionsMarshal.AsSpan(list318); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list318 = new List(index2); + CollectionsMarshal.SetCount(list318, index2); + Span span318 = CollectionsMarshal.AsSpan(list318); + num4 = 0; + span318[num4] = null; + num4++; + span318[num4] = null; + num4++; + span318[num4] = null; + num4++; + span318[num4] = null; + num4++; + span318[num4] = null; + num4++; + span318[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list318; skipConditions18.StepIf = skipStepConditions7; questStep37.SkipConditions = skipConditions18; reference211 = questStep37; - ref QuestStep reference212 = ref span124[2]; + num2++; + ref QuestStep reference212 = ref span316[num2]; QuestStep obj184 = new QuestStep(EInteractionType.Action, 2000926u, new Vector3(113.42029f, 4.6539917f, 54.306763f), 132) { StopDistance = 20f, Action = EAction.HeavyShot }; - num3 = 6; - List list319 = new List(num3); - CollectionsMarshal.SetCount(list319, num3); - Span span127 = CollectionsMarshal.AsSpan(list319); - span127[0] = null; - span127[1] = null; - span127[2] = null; - span127[3] = null; - span127[4] = null; - span127[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list319 = new List(num4); + CollectionsMarshal.SetCount(list319, num4); + Span span319 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + span319[index2] = null; + index2++; + span319[index2] = null; + index2++; + span319[index2] = null; + index2++; + span319[index2] = null; + index2++; + span319[index2] = null; + index2++; + span319[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj184.CompletionQuestVariablesFlags = list319; reference212 = obj184; - ref QuestStep reference213 = ref span124[3]; + num2++; + ref QuestStep reference213 = ref span316[num2]; QuestStep questStep38 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(40.66375f, 2.5499606f, 15.033528f), 132); SkipConditions skipConditions19 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 6; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - Span span128 = CollectionsMarshal.AsSpan(list320); - span128[0] = null; - span128[1] = null; - span128[2] = null; - span128[3] = null; - span128[4] = null; - span128[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + index2 = 6; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + Span span320 = CollectionsMarshal.AsSpan(list320); + num4 = 0; + span320[num4] = null; + num4++; + span320[num4] = null; + num4++; + span320[num4] = null; + num4++; + span320[num4] = null; + num4++; + span320[num4] = null; + num4++; + span320[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list320; skipConditions19.StepIf = skipStepConditions8; questStep38.SkipConditions = skipConditions19; reference213 = questStep38; - ref QuestStep reference214 = ref span124[4]; + num2++; + ref QuestStep reference214 = ref span316[num2]; QuestStep obj185 = new QuestStep(EInteractionType.Action, 2000931u, new Vector3(36.453735f, 7.248047f, 10.879639f), 132) { StopDistance = 20f, Action = EAction.HeavyShot }; - num3 = 6; - List list321 = new List(num3); - CollectionsMarshal.SetCount(list321, num3); - Span span129 = CollectionsMarshal.AsSpan(list321); - span129[0] = null; - span129[1] = null; - span129[2] = null; - span129[3] = null; - span129[4] = null; - span129[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List list321 = new List(num4); + CollectionsMarshal.SetCount(list321, num4); + Span span321 = CollectionsMarshal.AsSpan(list321); + index2 = 0; + span321[index2] = null; + index2++; + span321[index2] = null; + index2++; + span321[index2] = null; + index2++; + span321[index2] = null; + index2++; + span321[index2] = null; + index2++; + span321[index2] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); obj185.CompletionQuestVariablesFlags = list321; reference214 = obj185; - ref QuestStep reference215 = ref span124[5]; + num2++; + ref QuestStep reference215 = ref span316[num2]; QuestStep questStep39 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-4.75964f, -3.0942674f, 21.23782f), 132); SkipConditions skipConditions20 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 6; - List list322 = new List(num3); - CollectionsMarshal.SetCount(list322, num3); - Span span130 = CollectionsMarshal.AsSpan(list322); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index2 = 6; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + Span span322 = CollectionsMarshal.AsSpan(list322); + num4 = 0; + span322[num4] = null; + num4++; + span322[num4] = null; + num4++; + span322[num4] = null; + num4++; + span322[num4] = null; + num4++; + span322[num4] = null; + num4++; + span322[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list322; skipConditions20.StepIf = skipStepConditions9; questStep39.SkipConditions = skipConditions20; reference215 = questStep39; - ref QuestStep reference216 = ref span124[6]; + num2++; + ref QuestStep reference216 = ref span316[num2]; QuestStep obj186 = new QuestStep(EInteractionType.Action, 2000929u, new Vector3(-5.7526855f, 2.0598755f, 30.655273f), 132) { StopDistance = 20f, Action = EAction.HeavyShot }; - num3 = 6; - List list323 = new List(num3); - CollectionsMarshal.SetCount(list323, num3); - Span span131 = CollectionsMarshal.AsSpan(list323); - span131[0] = null; - span131[1] = null; - span131[2] = null; - span131[3] = null; - span131[4] = null; - span131[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list323 = new List(num4); + CollectionsMarshal.SetCount(list323, num4); + Span span323 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span323[index2] = null; + index2++; + span323[index2] = null; + index2++; + span323[index2] = null; + index2++; + span323[index2] = null; + index2++; + span323[index2] = null; + index2++; + span323[index2] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj186.CompletionQuestVariablesFlags = list323; reference216 = obj186; - ref QuestStep reference217 = ref span124[7]; + num2++; + ref QuestStep reference217 = ref span316[num2]; QuestStep questStep40 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(31.96446f, -1.5349445f, 60.44494f), 132); SkipConditions skipConditions21 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 6; - List list324 = new List(num3); - CollectionsMarshal.SetCount(list324, num3); - Span span132 = CollectionsMarshal.AsSpan(list324); - span132[0] = null; - span132[1] = null; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + Span span324 = CollectionsMarshal.AsSpan(list324); + num4 = 0; + span324[num4] = null; + num4++; + span324[num4] = null; + num4++; + span324[num4] = null; + num4++; + span324[num4] = null; + num4++; + span324[num4] = null; + num4++; + span324[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions10.CompletionQuestVariablesFlags = list324; skipConditions21.StepIf = skipStepConditions10; questStep40.SkipConditions = skipConditions21; reference217 = questStep40; - ref QuestStep reference218 = ref span124[8]; + num2++; + ref QuestStep reference218 = ref span316[num2]; QuestStep obj187 = new QuestStep(EInteractionType.Action, 2000928u, new Vector3(33.24939f, 5.4473877f, 70.63391f), 132) { StopDistance = 20f, Action = EAction.HeavyShot }; - num3 = 6; - List list325 = new List(num3); - CollectionsMarshal.SetCount(list325, num3); - Span span133 = CollectionsMarshal.AsSpan(list325); - span133[0] = null; - span133[1] = null; - span133[2] = null; - span133[3] = null; - span133[4] = null; - span133[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list325 = new List(num4); + CollectionsMarshal.SetCount(list325, num4); + Span span325 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span325[index2] = null; + index2++; + span325[index2] = null; + index2++; + span325[index2] = null; + index2++; + span325[index2] = null; + index2++; + span325[index2] = null; + index2++; + span325[index2] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj187.CompletionQuestVariablesFlags = list325; reference218 = obj187; - ref QuestStep reference219 = ref span124[9]; + num2++; + ref QuestStep reference219 = ref span316[num2]; QuestStep questStep41 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.39101f, -3.7351668f, 88.24835f), 132); SkipConditions skipConditions22 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - num3 = 6; - List list326 = new List(num3); - CollectionsMarshal.SetCount(list326, num3); - Span span134 = CollectionsMarshal.AsSpan(list326); - span134[0] = null; - span134[1] = null; - span134[2] = null; - span134[3] = null; - span134[4] = null; - span134[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list326 = new List(index2); + CollectionsMarshal.SetCount(list326, index2); + Span span326 = CollectionsMarshal.AsSpan(list326); + num4 = 0; + span326[num4] = null; + num4++; + span326[num4] = null; + num4++; + span326[num4] = null; + num4++; + span326[num4] = null; + num4++; + span326[num4] = null; + num4++; + span326[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions11.CompletionQuestVariablesFlags = list326; skipConditions22.StepIf = skipStepConditions11; questStep41.SkipConditions = skipConditions22; reference219 = questStep41; - ref QuestStep reference220 = ref span124[10]; + num2++; + ref QuestStep reference220 = ref span316[num2]; QuestStep obj188 = new QuestStep(EInteractionType.Action, 2000930u, new Vector3(56.595703f, -3.7385254f, 96.97107f), 132) { StopDistance = 20f, Action = EAction.HeavyShot }; - num3 = 6; - List list327 = new List(num3); - CollectionsMarshal.SetCount(list327, num3); - Span span135 = CollectionsMarshal.AsSpan(list327); - span135[0] = null; - span135[1] = null; - span135[2] = null; - span135[3] = null; - span135[4] = null; - span135[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list327 = new List(num4); + CollectionsMarshal.SetCount(list327, num4); + Span span327 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span327[index2] = null; + index2++; + span327[index2] = null; + index2++; + span327[index2] = null; + index2++; + span327[index2] = null; + index2++; + span327[index2] = null; + index2++; + span327[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj188.CompletionQuestVariablesFlags = list327; reference220 = obj188; obj182.Steps = list316; reference209 = obj182; - ref QuestSequence reference221 = ref span123[2]; + num++; + ref QuestSequence reference221 = ref span314[num]; QuestSequence obj189 = new QuestSequence { Sequence = 2 @@ -4972,7 +6008,9 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Interact, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + Span span328 = CollectionsMarshal.AsSpan(list328); + num3 = 0; + span328[num3] = new QuestStep(EInteractionType.Interact, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { AethernetShortcut = new AethernetShortcut { @@ -4982,16 +6020,18 @@ public static class AssemblyQuestLoader }; obj189.Steps = list328; reference221 = obj189; - ref QuestSequence reference222 = ref span123[3]; + num++; + ref QuestSequence reference222 = ref span314[num]; QuestSequence obj190 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - Span span136 = CollectionsMarshal.AsSpan(list329); - ref QuestStep reference223 = ref span136[0]; + num3 = 2; + List list329 = new List(num3); + CollectionsMarshal.SetCount(list329, num3); + Span span329 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + ref QuestStep reference223 = ref span329[num2]; QuestStep obj191 = new QuestStep(EInteractionType.Combat, null, new Vector3(303.89548f, -21.916101f, 210.33368f), 154) { StopDistance = 0.5f, @@ -5003,58 +6043,76 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list330 = new List(num3); - CollectionsMarshal.SetCount(list330, num3); - CollectionsMarshal.AsSpan(list330)[0] = new ComplexCombatData + index2 = 1; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + Span span330 = CollectionsMarshal.AsSpan(list330); + num4 = 0; + span330[num4] = new ComplexCombatData { DataId = 5u, MinimumKillCount = 8u }; obj191.ComplexCombatData = list330; - num3 = 6; - List list331 = new List(num3); - CollectionsMarshal.SetCount(list331, num3); - Span span137 = CollectionsMarshal.AsSpan(list331); - span137[0] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = null; - span137[5] = null; + num4 = 6; + List list331 = new List(num4); + CollectionsMarshal.SetCount(list331, num4); + Span span331 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span331[index2] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + index2++; + span331[index2] = null; + index2++; + span331[index2] = null; + index2++; + span331[index2] = null; + index2++; + span331[index2] = null; + index2++; + span331[index2] = null; obj191.CompletionQuestVariablesFlags = list331; reference223 = obj191; - ref QuestStep reference224 = ref span136[1]; + num2++; + ref QuestStep reference224 = ref span329[num2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, null, new Vector3(250.70682f, -11.9244995f, 40.554157f), 154) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list332 = new List(num3); - CollectionsMarshal.SetCount(list332, num3); - CollectionsMarshal.AsSpan(list332)[0] = new ComplexCombatData + index2 = 1; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + Span span332 = CollectionsMarshal.AsSpan(list332); + num4 = 0; + span332[num4] = new ComplexCombatData { DataId = 32u, MinimumKillCount = 8u }; obj192.ComplexCombatData = list332; - num3 = 6; - List list333 = new List(num3); - CollectionsMarshal.SetCount(list333, num3); - Span span138 = CollectionsMarshal.AsSpan(list333); - span138[0] = null; - span138[1] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); - span138[2] = null; - span138[3] = null; - span138[4] = null; - span138[5] = null; + num4 = 6; + List list333 = new List(num4); + CollectionsMarshal.SetCount(list333, num4); + Span span333 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span333[index2] = null; + index2++; + span333[index2] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); + index2++; + span333[index2] = null; + index2++; + span333[index2] = null; + index2++; + span333[index2] = null; + index2++; + span333[index2] = null; obj192.CompletionQuestVariablesFlags = list333; reference224 = obj192; obj190.Steps = list329; reference222 = obj190; - ref QuestSequence reference225 = ref span123[4]; + num++; + ref QuestSequence reference225 = ref span314[num]; QuestSequence obj193 = new QuestSequence { Sequence = byte.MaxValue @@ -5062,7 +6120,9 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + Span span334 = CollectionsMarshal.AsSpan(list334); + num3 = 0; + span334[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -5089,21 +6149,26 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - CollectionsMarshal.AsSpan(list335)[0] = "Cacahuetes"; + Span span335 = CollectionsMarshal.AsSpan(list335); + index = 0; + span335[index] = "Cacahuetes"; questRoot49.Author = list335; - num = 6; - List list336 = new List(num); - CollectionsMarshal.SetCount(list336, num); - Span span139 = CollectionsMarshal.AsSpan(list336); - ref QuestSequence reference226 = ref span139[0]; + index = 6; + List list336 = new List(index); + CollectionsMarshal.SetCount(list336, index); + Span span336 = CollectionsMarshal.AsSpan(list336); + num = 0; + ref QuestSequence reference226 = ref span336[num]; QuestSequence obj194 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - ref QuestStep reference227 = ref CollectionsMarshal.AsSpan(list337)[0]; + num3 = 1; + List list337 = new List(num3); + CollectionsMarshal.SetCount(list337, num3); + Span span337 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + ref QuestStep reference227 = ref span337[num2]; QuestStep obj195 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -5118,17 +6183,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list338 = new List(num3); - CollectionsMarshal.SetCount(list338, num3); - CollectionsMarshal.AsSpan(list338)[0] = 133; + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + Span span338 = CollectionsMarshal.AsSpan(list338); + num4 = 0; + span338[num4] = 133; obj196.InTerritory = list338; skipConditions23.AetheryteShortcutIf = obj196; obj195.SkipConditions = skipConditions23; reference227 = obj195; obj194.Steps = list337; reference226 = obj194; - ref QuestSequence reference228 = ref span139[1]; + num++; + ref QuestSequence reference228 = ref span336[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 @@ -5136,8 +6204,9 @@ public static class AssemblyQuestLoader num2 = 3; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span140 = CollectionsMarshal.AsSpan(list339); - span140[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(260.13162f, -11.982115f, -159.64388f), 148) + Span span339 = CollectionsMarshal.AsSpan(list339); + num3 = 0; + span339[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(260.13162f, -11.982115f, -159.64388f), 148) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -5146,63 +6215,84 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaBlueBadgerGate } }; - ref QuestStep reference229 = ref span140[1]; + num3++; + ref QuestStep reference229 = ref span339[num3]; QuestStep obj198 = new QuestStep(EInteractionType.Combat, 2000911u, new Vector3(261.82947f, -11.795227f, -161.36414f), 148) { ItemId = 2000230u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list340 = new List(num3); - CollectionsMarshal.SetCount(list340, num3); - CollectionsMarshal.AsSpan(list340)[0] = 42u; + num4 = 1; + List list340 = new List(num4); + CollectionsMarshal.SetCount(list340, num4); + Span span340 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + span340[index2] = 42u; obj198.KillEnemyDataIds = list340; - num3 = 6; - List list341 = new List(num3); - CollectionsMarshal.SetCount(list341, num3); - Span span141 = CollectionsMarshal.AsSpan(list341); - span141[0] = null; - span141[1] = null; - span141[2] = null; - span141[3] = null; - span141[4] = null; - span141[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + Span span341 = CollectionsMarshal.AsSpan(list341); + num4 = 0; + span341[num4] = null; + num4++; + span341[num4] = null; + num4++; + span341[num4] = null; + num4++; + span341[num4] = null; + num4++; + span341[num4] = null; + num4++; + span341[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj198.CompletionQuestVariablesFlags = list341; reference229 = obj198; - ref QuestStep reference230 = ref span140[2]; + num3++; + ref QuestStep reference230 = ref span339[num3]; QuestStep obj199 = new QuestStep(EInteractionType.Combat, 2000910u, new Vector3(266.31567f, -11.795227f, -174.88367f), 148) { ItemId = 2000230u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list342 = new List(num3); - CollectionsMarshal.SetCount(list342, num3); - CollectionsMarshal.AsSpan(list342)[0] = 42u; + num4 = 1; + List list342 = new List(num4); + CollectionsMarshal.SetCount(list342, num4); + Span span342 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span342[index2] = 42u; obj199.KillEnemyDataIds = list342; - num3 = 6; - List list343 = new List(num3); - CollectionsMarshal.SetCount(list343, num3); - Span span142 = CollectionsMarshal.AsSpan(list343); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + Span span343 = CollectionsMarshal.AsSpan(list343); + num4 = 0; + span343[num4] = null; + num4++; + span343[num4] = null; + num4++; + span343[num4] = null; + num4++; + span343[num4] = null; + num4++; + span343[num4] = null; + num4++; + span343[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj199.CompletionQuestVariablesFlags = list343; reference230 = obj199; obj197.Steps = list339; reference228 = obj197; - ref QuestSequence reference231 = ref span139[2]; + num++; + ref QuestSequence reference231 = ref span336[num]; QuestSequence obj200 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + num3 = 1; + List list344 = new List(num3); + CollectionsMarshal.SetCount(list344, num3); + Span span344 = CollectionsMarshal.AsSpan(list344); + num2 = 0; + span344[num2] = new QuestStep(EInteractionType.Interact, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -5213,7 +6303,8 @@ public static class AssemblyQuestLoader }; obj200.Steps = list344; reference231 = obj200; - ref QuestSequence reference232 = ref span139[3]; + num++; + ref QuestSequence reference232 = ref span336[num]; QuestSequence obj201 = new QuestSequence { Sequence = 3 @@ -5221,8 +6312,9 @@ public static class AssemblyQuestLoader num2 = 4; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span143 = CollectionsMarshal.AsSpan(list345); - span143[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(300.2214f, 1.4752781f, 87.94056f), 148) + Span span345 = CollectionsMarshal.AsSpan(list345); + num3 = 0; + span345[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(300.2214f, 1.4752781f, 87.94056f), 148) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -5231,83 +6323,113 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaBlueBadgerGate } }; - ref QuestStep reference233 = ref span143[1]; + num3++; + ref QuestStep reference233 = ref span345[num3]; QuestStep obj202 = new QuestStep(EInteractionType.Combat, 2000914u, new Vector3(302.2965f, 2.090454f, 88.0293f), 148) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list346 = new List(num3); - CollectionsMarshal.SetCount(list346, num3); - CollectionsMarshal.AsSpan(list346)[0] = 41u; + num4 = 1; + List list346 = new List(num4); + CollectionsMarshal.SetCount(list346, num4); + Span span346 = CollectionsMarshal.AsSpan(list346); + index2 = 0; + span346[index2] = 41u; obj202.KillEnemyDataIds = list346; - num3 = 6; - List list347 = new List(num3); - CollectionsMarshal.SetCount(list347, num3); - Span span144 = CollectionsMarshal.AsSpan(list347); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + Span span347 = CollectionsMarshal.AsSpan(list347); + num4 = 0; + span347[num4] = null; + num4++; + span347[num4] = null; + num4++; + span347[num4] = null; + num4++; + span347[num4] = null; + num4++; + span347[num4] = null; + num4++; + span347[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj202.CompletionQuestVariablesFlags = list347; reference233 = obj202; - ref QuestStep reference234 = ref span143[2]; + num3++; + ref QuestStep reference234 = ref span345[num3]; QuestStep obj203 = new QuestStep(EInteractionType.Combat, 2000916u, new Vector3(305.4093f, 4.501404f, 103.990234f), 148) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list348 = new List(num3); - CollectionsMarshal.SetCount(list348, num3); - CollectionsMarshal.AsSpan(list348)[0] = 26u; + num4 = 1; + List list348 = new List(num4); + CollectionsMarshal.SetCount(list348, num4); + Span span348 = CollectionsMarshal.AsSpan(list348); + index2 = 0; + span348[index2] = 26u; obj203.KillEnemyDataIds = list348; - num3 = 6; - List list349 = new List(num3); - CollectionsMarshal.SetCount(list349, num3); - Span span145 = CollectionsMarshal.AsSpan(list349); - span145[0] = null; - span145[1] = null; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list349 = new List(index2); + CollectionsMarshal.SetCount(list349, index2); + Span span349 = CollectionsMarshal.AsSpan(list349); + num4 = 0; + span349[num4] = null; + num4++; + span349[num4] = null; + num4++; + span349[num4] = null; + num4++; + span349[num4] = null; + num4++; + span349[num4] = null; + num4++; + span349[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj203.CompletionQuestVariablesFlags = list349; reference234 = obj203; - ref QuestStep reference235 = ref span143[3]; + num3++; + ref QuestStep reference235 = ref span345[num3]; QuestStep obj204 = new QuestStep(EInteractionType.Combat, 2000915u, new Vector3(327.10767f, 3.7078857f, 93.64453f), 148) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list350 = new List(num3); - CollectionsMarshal.SetCount(list350, num3); - CollectionsMarshal.AsSpan(list350)[0] = 41u; + num4 = 1; + List list350 = new List(num4); + CollectionsMarshal.SetCount(list350, num4); + Span span350 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + span350[index2] = 41u; obj204.KillEnemyDataIds = list350; - num3 = 6; - List list351 = new List(num3); - CollectionsMarshal.SetCount(list351, num3); - Span span146 = CollectionsMarshal.AsSpan(list351); - span146[0] = null; - span146[1] = null; - span146[2] = null; - span146[3] = null; - span146[4] = null; - span146[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + Span span351 = CollectionsMarshal.AsSpan(list351); + num4 = 0; + span351[num4] = null; + num4++; + span351[num4] = null; + num4++; + span351[num4] = null; + num4++; + span351[num4] = null; + num4++; + span351[num4] = null; + num4++; + span351[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj204.CompletionQuestVariablesFlags = list351; reference235 = obj204; obj201.Steps = list345; reference232 = obj201; - ref QuestSequence reference236 = ref span139[4]; + num++; + ref QuestSequence reference236 = ref span336[num]; QuestSequence obj205 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) + num3 = 1; + List list352 = new List(num3); + CollectionsMarshal.SetCount(list352, num3); + Span span352 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span352[num2] = new QuestStep(EInteractionType.Interact, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -5322,7 +6444,8 @@ public static class AssemblyQuestLoader }; obj205.Steps = list352; reference236 = obj205; - ref QuestSequence reference237 = ref span139[5]; + num++; + ref QuestSequence reference237 = ref span336[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue @@ -5330,7 +6453,9 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + Span span353 = CollectionsMarshal.AsSpan(list353); + num3 = 0; + span353[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { NextQuestId = new QuestId(35) }; @@ -5343,21 +6468,26 @@ public static class AssemblyQuestLoader num = 1; List list354 = new List(num); CollectionsMarshal.SetCount(list354, num); - CollectionsMarshal.AsSpan(list354)[0] = "Cacahuetes"; + Span span354 = CollectionsMarshal.AsSpan(list354); + index = 0; + span354[index] = "Cacahuetes"; questRoot50.Author = list354; - num = 5; - List list355 = new List(num); - CollectionsMarshal.SetCount(list355, num); - Span span147 = CollectionsMarshal.AsSpan(list355); - ref QuestSequence reference238 = ref span147[0]; + index = 5; + List list355 = new List(index); + CollectionsMarshal.SetCount(list355, index); + Span span355 = CollectionsMarshal.AsSpan(list355); + num = 0; + ref QuestSequence reference238 = ref span355[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list356 = new List(num2); - CollectionsMarshal.SetCount(list356, num2); - ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list356)[0]; + num3 = 1; + List list356 = new List(num3); + CollectionsMarshal.SetCount(list356, num3); + Span span356 = CollectionsMarshal.AsSpan(list356); + num2 = 0; + ref QuestStep reference239 = ref span356[num2]; QuestStep obj208 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -5372,17 +6502,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list357 = new List(num3); - CollectionsMarshal.SetCount(list357, num3); - CollectionsMarshal.AsSpan(list357)[0] = 133; + num4 = 1; + List list357 = new List(num4); + CollectionsMarshal.SetCount(list357, num4); + Span span357 = CollectionsMarshal.AsSpan(list357); + index2 = 0; + span357[index2] = 133; obj209.InTerritory = list357; skipConditions24.AetheryteShortcutIf = obj209; obj208.SkipConditions = skipConditions24; reference239 = obj208; obj207.Steps = list356; reference238 = obj207; - ref QuestSequence reference240 = ref span147[1]; + num++; + ref QuestSequence reference240 = ref span355[num]; QuestSequence obj210 = new QuestSequence { Sequence = 1 @@ -5390,8 +6523,9 @@ public static class AssemblyQuestLoader num2 = 2; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - Span span148 = CollectionsMarshal.AsSpan(list358); - span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(220.82336f, -28.335487f, 336.9016f), 154) + Span span358 = CollectionsMarshal.AsSpan(list358); + num3 = 0; + span358[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(220.82336f, -28.335487f, 336.9016f), 154) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -5400,32 +6534,39 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaYellowSerpentGate } }; - span148[1] = new QuestStep(EInteractionType.Interact, 1000764u, new Vector3(218.89062f, -28.252495f, 338.39917f), 154); + num3++; + span358[num3] = new QuestStep(EInteractionType.Interact, 1000764u, new Vector3(218.89062f, -28.252495f, 338.39917f), 154); obj210.Steps = list358; reference240 = obj210; - ref QuestSequence reference241 = ref span147[2]; + num++; + ref QuestSequence reference241 = ref span355[num]; QuestSequence obj211 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list359 = new List(num2); - CollectionsMarshal.SetCount(list359, num2); - ref QuestStep reference242 = ref CollectionsMarshal.AsSpan(list359)[0]; + num3 = 1; + List list359 = new List(num3); + CollectionsMarshal.SetCount(list359, num3); + Span span359 = CollectionsMarshal.AsSpan(list359); + num2 = 0; + ref QuestStep reference242 = ref span359[num2]; QuestStep obj212 = new QuestStep(EInteractionType.Combat, 2000883u, new Vector3(325.1848f, -5.217115f, 390.488f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list360 = new List(num3); - CollectionsMarshal.SetCount(list360, num3); - CollectionsMarshal.AsSpan(list360)[0] = 294u; + index2 = 1; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + Span span360 = CollectionsMarshal.AsSpan(list360); + num4 = 0; + span360[num4] = 294u; obj212.KillEnemyDataIds = list360; reference242 = obj212; obj211.Steps = list359; reference241 = obj211; - ref QuestSequence reference243 = ref span147[3]; + num++; + ref QuestSequence reference243 = ref span355[num]; QuestSequence obj213 = new QuestSequence { Sequence = 3 @@ -5433,8 +6574,9 @@ public static class AssemblyQuestLoader num2 = 2; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - Span span149 = CollectionsMarshal.AsSpan(list361); - span149[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(220.82336f, -28.335487f, 336.9016f), 154) + Span span361 = CollectionsMarshal.AsSpan(list361); + num3 = 0; + span361[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(220.82336f, -28.335487f, 336.9016f), 154) { Fly = true, SkipConditions = new SkipConditions @@ -5445,18 +6587,22 @@ public static class AssemblyQuestLoader } } }; - span149[1] = new QuestStep(EInteractionType.Interact, 1000764u, new Vector3(218.89062f, -28.252495f, 338.39917f), 154); + num3++; + span361[num3] = new QuestStep(EInteractionType.Interact, 1000764u, new Vector3(218.89062f, -28.252495f, 338.39917f), 154); obj213.Steps = list361; reference243 = obj213; - ref QuestSequence reference244 = ref span147[4]; + num++; + ref QuestSequence reference244 = ref span355[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + num3 = 1; + List list362 = new List(num3); + CollectionsMarshal.SetCount(list362, num3); + Span span362 = CollectionsMarshal.AsSpan(list362); + num2 = 0; + span362[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -5475,13 +6621,16 @@ public static class AssemblyQuestLoader num = 1; List list363 = new List(num); CollectionsMarshal.SetCount(list363, num); - CollectionsMarshal.AsSpan(list363)[0] = "liza"; + Span span363 = CollectionsMarshal.AsSpan(list363); + index = 0; + span363[index] = "liza"; questRoot51.Author = list363; - num = 2; - List list364 = new List(num); - CollectionsMarshal.SetCount(list364, num); - Span span150 = CollectionsMarshal.AsSpan(list364); - ref QuestSequence reference245 = ref span150[0]; + index = 2; + List list364 = new List(index); + CollectionsMarshal.SetCount(list364, index); + Span span364 = CollectionsMarshal.AsSpan(list364); + num = 0; + ref QuestSequence reference245 = ref span364[num]; QuestSequence obj215 = new QuestSequence { Sequence = 0 @@ -5489,18 +6638,23 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000788u, new Vector3(-43.90027f, 7.0877223f, -136.70563f), 133); + Span span365 = CollectionsMarshal.AsSpan(list365); + num3 = 0; + span365[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000788u, new Vector3(-43.90027f, 7.0877223f, -136.70563f), 133); obj215.Steps = list365; reference245 = obj215; - ref QuestSequence reference246 = ref span150[1]; + num++; + ref QuestSequence reference246 = ref span364[num]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000429u, new Vector3(56.50415f, 7.9990244f, -132.12793f), 133); + num3 = 1; + List list366 = new List(num3); + CollectionsMarshal.SetCount(list366, num3); + Span span366 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + span366[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000429u, new Vector3(56.50415f, 7.9990244f, -132.12793f), 133); obj216.Steps = list366; reference246 = obj216; questRoot51.QuestSequence = list364; @@ -5514,13 +6668,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -5528,7 +6685,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -5541,21 +6700,25 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1009812u, new Vector3(74.08252f, 30.549389f, -720.9735f), 156) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1009812u, new Vector3(74.08252f, 30.549389f, -720.9735f), 156) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -5563,22 +6726,26 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 7; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span2 = CollectionsMarshal.AsSpan(list6); - ref QuestStep reference5 = ref span2[0]; + index2 = 7; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref QuestStep reference5 = ref span6[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 1009825u, new Vector3(86.07605f, 28.34813f, -622.18665f), 156) { StopDistance = 0.5f, @@ -5587,109 +6754,152 @@ public static class AssemblyQuestLoader int num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list7); + int num4 = 0; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj5.CompletionQuestVariablesFlags = list7; reference5 = obj5; - ref QuestStep reference6 = ref span2[1]; + num2++; + ref QuestStep reference6 = ref span6[num2]; QuestStep obj6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Fly = true }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span4 = CollectionsMarshal.AsSpan(list8); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + Span span8 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list8; skipConditions.StepIf = skipStepConditions; obj6.SkipConditions = skipConditions; reference6 = obj6; - ref QuestStep reference7 = ref span2[2]; + num2++; + ref QuestStep reference7 = ref span6[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1009826u, new Vector3(29.160034f, 21.252728f, -642.51166f), 156); num3 = 6; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span9 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list9; reference7 = questStep; - span2[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + num2++; + span6[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - ref QuestStep reference8 = ref span2[4]; + num2++; + ref QuestStep reference8 = ref span6[num2]; QuestStep obj7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(18.883974f, 53.583996f, -702.24194f), 156) { Fly = true }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - Span span6 = CollectionsMarshal.AsSpan(list10); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + Span span10 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list10; skipConditions2.StepIf = skipStepConditions2; obj7.SkipConditions = skipConditions2; reference8 = obj7; - ref QuestStep reference9 = ref span2[5]; + num2++; + ref QuestStep reference9 = ref span6[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1009823u, new Vector3(16.983276f, 53.614998f, -703.3341f), 156); num3 = 6; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - Span span7 = CollectionsMarshal.AsSpan(list11); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span11 = CollectionsMarshal.AsSpan(list11); + num4 = 0; + span11[num4] = null; + num4++; + span11[num4] = null; + num4++; + span11[num4] = null; + num4++; + span11[num4] = null; + num4++; + span11[num4] = null; + num4++; + span11[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list11; reference9 = questStep2; - ref QuestStep reference10 = ref span2[6]; + num2++; + ref QuestStep reference10 = ref span6[num2]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 1009824u, new Vector3(22.262878f, 28.999968f, -780.85f), 156) { Fly = true }; - num3 = 6; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - Span span8 = CollectionsMarshal.AsSpan(list12); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list12 = new List(num4); + CollectionsMarshal.SetCount(list12, num4); + Span span12 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span12[num3] = null; + num3++; + span12[num3] = null; + num3++; + span12[num3] = null; + num3++; + span12[num3] = null; + num3++; + span12[num3] = null; + num3++; + span12[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj8.CompletionQuestVariablesFlags = list12; reference10 = obj8; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference11 = ref span[4]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -5697,7 +6907,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) { Fly = true, NextQuestId = new QuestId(100) @@ -5711,27 +6923,33 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "JerryWester"; + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = "JerryWester"; questRoot2.Author = list14; - num = 4; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span9 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference12 = ref span9[0]; + index = 4; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference12 = ref span15[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351) { StopDistance = 7f }; obj10.Steps = list16; reference12 = obj10; - ref QuestSequence reference13 = ref span9[1]; + num++; + ref QuestSequence reference13 = ref span15[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -5739,26 +6957,32 @@ public static class AssemblyQuestLoader num2 = 2; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span10 = CollectionsMarshal.AsSpan(list17); - span10[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span10[1] = new QuestStep(EInteractionType.Interact, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); + index2++; + span17[index2] = new QuestStep(EInteractionType.Interact, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); obj11.Steps = list17; reference13 = obj11; - ref QuestSequence reference14 = ref span9[2]; + num++; + ref QuestSequence reference14 = ref span15[num]; QuestSequence obj12 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1009959u, new Vector3(3.5248413f, 0.009977884f, -4.4404297f), 351); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.Interact, 1009959u, new Vector3(3.5248413f, 0.009977884f, -4.4404297f), 351); obj12.Steps = list18; reference14 = obj12; - ref QuestSequence reference15 = ref span9[3]; + num++; + ref QuestSequence reference15 = ref span15[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -5766,7 +6990,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; @@ -5779,21 +7005,26 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "JerryWester"; + Span span20 = CollectionsMarshal.AsSpan(list20); + index = 0; + span20[index] = "JerryWester"; questRoot3.Author = list20; - num = 7; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span11 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference16 = ref span11[0]; + index = 7; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + Span span21 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference16 = ref span21[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009961u, new Vector3(-131.88379f, 4.1f, -109.63611f), 130) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009961u, new Vector3(-131.88379f, 4.1f, -109.63611f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -5806,7 +7037,8 @@ public static class AssemblyQuestLoader }; obj14.Steps = list22; reference16 = obj14; - ref QuestSequence reference17 = ref span11[1]; + num++; + ref QuestSequence reference17 = ref span21[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -5814,331 +7046,370 @@ public static class AssemblyQuestLoader num2 = 3; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span12 = CollectionsMarshal.AsSpan(list23); - span12[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.0206594f, 0f, -5.7291903f), 351); - span12[2] = new QuestStep(EInteractionType.Interact, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); + index2++; + span23[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.0206594f, 0f, -5.7291903f), 351); + index2++; + span23[index2] = new QuestStep(EInteractionType.Interact, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); obj15.Steps = list23; reference17 = obj15; - ref QuestSequence reference18 = ref span11[2]; + num++; + ref QuestSequence reference18 = ref span21[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span13 = CollectionsMarshal.AsSpan(list24); - ref QuestStep reference19 = ref span13[0]; - QuestStep questStep3 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.0206594f, 0f, -5.7291903f), 351); - SkipConditions skipConditions3 = new SkipConditions(); - SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = 156; - skipStepConditions3.InTerritory = list25; - skipConditions3.StepIf = skipStepConditions3; - questStep3.SkipConditions = skipConditions3; - reference19 = questStep3; - ref QuestStep reference20 = ref span13[1]; - QuestStep obj17 = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + index2 = 4; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.0206594f, 0f, -5.7291903f), 351); + num2++; + span24[num2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - SkipConditions skipConditions4 = new SkipConditions(); - SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = 156; - skipStepConditions4.InTerritory = list26; - skipConditions4.StepIf = skipStepConditions4; - obj17.SkipConditions = skipConditions4; - reference20 = obj17; - span13[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + num2++; + span24[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { - Mount = true, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - NearPosition = new NearPositionCondition - { - Position = new Vector3(-354.60443f, -15.981883f, -477.4395f), - MaximumDistance = 300f, - TerritoryId = 156 - } - } - } + Mount = true }; - span13[3] = new QuestStep(EInteractionType.Interact, 1009962u, new Vector3(-354.60443f, -15.981883f, -477.4395f), 156) + num2++; + span24[num2] = new QuestStep(EInteractionType.Interact, 1009962u, new Vector3(-354.60443f, -15.981883f, -477.4395f), 156) { Fly = true }; obj16.Steps = list24; reference18 = obj16; - ref QuestSequence reference21 = ref span11[3]; - QuestSequence obj18 = new QuestSequence + num++; + ref QuestSequence reference19 = ref span21[num]; + QuestSequence obj17 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - Span span14 = CollectionsMarshal.AsSpan(list27); - ref QuestStep reference22 = ref span14[0]; - QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(-455.26733f, -4.2369456f, -300.13348f), 156) + List list25 = new List(num2); + CollectionsMarshal.SetCount(list25, num2); + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + ref QuestStep reference20 = ref span25[index2]; + QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(-455.26733f, -4.2369456f, -300.13348f), 156) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 3; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span15 = CollectionsMarshal.AsSpan(list28); - span15[0] = 61u; - span15[1] = 62u; - span15[2] = 63u; - obj19.KillEnemyDataIds = list28; - reference22 = obj19; - span14[1] = new QuestStep(EInteractionType.Interact, 1009966u, new Vector3(-455.89386f, -4.098249f, -302.72375f), 156); - obj18.Steps = list27; - reference21 = obj18; - ref QuestSequence reference23 = ref span11[4]; - QuestSequence obj20 = new QuestSequence + List list26 = new List(num3); + CollectionsMarshal.SetCount(list26, num3); + Span span26 = CollectionsMarshal.AsSpan(list26); + num4 = 0; + span26[num4] = 61u; + num4++; + span26[num4] = 62u; + num4++; + span26[num4] = 63u; + obj18.KillEnemyDataIds = list26; + reference20 = obj18; + index2++; + span25[index2] = new QuestStep(EInteractionType.Interact, 1009966u, new Vector3(-455.89386f, -4.098249f, -302.72375f), 156); + obj17.Steps = list25; + reference19 = obj17; + num++; + ref QuestSequence reference21 = ref span21[num]; + QuestSequence obj19 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - Span span16 = CollectionsMarshal.AsSpan(list29); - ref QuestStep reference24 = ref span16[0]; - QuestStep obj21 = new QuestStep(EInteractionType.Combat, null, new Vector3(-464.29688f, -3.2168088f, -231.61989f), 156) + index2 = 3; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + ref QuestStep reference22 = ref span27[num2]; + QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(-464.29688f, -3.2168088f, -231.61989f), 156) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span17 = CollectionsMarshal.AsSpan(list30); - span17[0] = 63u; - span17[1] = 64u; - span17[2] = 3566u; + num4 = 3; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span28[num3] = 63u; + num3++; + span28[num3] = 64u; + num3++; + span28[num3] = 3566u; + obj20.KillEnemyDataIds = list28; + num3 = 6; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + Span span29 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj20.CompletionQuestVariablesFlags = list29; + reference22 = obj20; + num2++; + ref QuestStep reference23 = ref span27[num2]; + QuestStep obj21 = new QuestStep(EInteractionType.Combat, null, new Vector3(-542.5233f, -1.7329574f, -291.1239f), 156) + { + StopDistance = 0.5f, + Fly = true, + EnemySpawnType = EEnemySpawnType.AutoOnEnterArea + }; + num4 = 2; + List list30 = new List(num4); + CollectionsMarshal.SetCount(list30, num4); + Span span30 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span30[num3] = 55u; + num3++; + span30[num3] = 3566u; obj21.KillEnemyDataIds = list30; num3 = 6; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span18 = CollectionsMarshal.AsSpan(list31); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span31 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + span31[num4] = null; + num4++; + span31[num4] = null; + num4++; + span31[num4] = null; + num4++; + span31[num4] = null; + num4++; + span31[num4] = null; + num4++; + span31[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list31; - reference24 = obj21; - ref QuestStep reference25 = ref span16[1]; - QuestStep obj22 = new QuestStep(EInteractionType.Combat, null, new Vector3(-542.5233f, -1.7329574f, -291.1239f), 156) + reference23 = obj21; + num2++; + ref QuestStep reference24 = ref span27[num2]; + QuestStep obj22 = new QuestStep(EInteractionType.Combat, null, new Vector3(-598.8258f, -3.216822f, -398.18915f), 156) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span19 = CollectionsMarshal.AsSpan(list32); - span19[0] = 55u; - span19[1] = 3566u; + num4 = 4; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + Span span32 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span32[num3] = 61u; + num3++; + span32[num3] = 62u; + num3++; + span32[num3] = 55u; + num3++; + span32[num3] = 64u; obj22.KillEnemyDataIds = list32; num3 = 6; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - Span span20 = CollectionsMarshal.AsSpan(list33); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span33 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span33[num4] = null; + num4++; + span33[num4] = null; + num4++; + span33[num4] = null; + num4++; + span33[num4] = null; + num4++; + span33[num4] = null; + num4++; + span33[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj22.CompletionQuestVariablesFlags = list33; - reference25 = obj22; - ref QuestStep reference26 = ref span16[2]; - QuestStep obj23 = new QuestStep(EInteractionType.Combat, null, new Vector3(-598.8258f, -3.216822f, -398.18915f), 156) - { - StopDistance = 0.5f, - Fly = true, - EnemySpawnType = EEnemySpawnType.AutoOnEnterArea - }; - num3 = 4; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span21 = CollectionsMarshal.AsSpan(list34); - span21[0] = 61u; - span21[1] = 62u; - span21[2] = 55u; - span21[3] = 64u; - obj23.KillEnemyDataIds = list34; - num3 = 6; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - Span span22 = CollectionsMarshal.AsSpan(list35); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj23.CompletionQuestVariablesFlags = list35; - reference26 = obj23; - obj20.Steps = list29; - reference23 = obj20; - ref QuestSequence reference27 = ref span11[5]; - QuestSequence obj24 = new QuestSequence + reference24 = obj22; + obj19.Steps = list27; + reference21 = obj19; + num++; + ref QuestSequence reference25 = ref span21[num]; + QuestSequence obj23 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1009112u, new Vector3(-355.45898f, -16.030567f, -477.04285f), 156) + List list34 = new List(num2); + CollectionsMarshal.SetCount(list34, num2); + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.Interact, 1009112u, new Vector3(-355.45898f, -16.030567f, -477.04285f), 156) { Fly = true }; - obj24.Steps = list36; - reference27 = obj24; - ref QuestSequence reference28 = ref span11[6]; - QuestSequence obj25 = new QuestSequence + obj23.Steps = list34; + reference25 = obj23; + num++; + ref QuestSequence reference26 = ref span21[num]; + QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span23 = CollectionsMarshal.AsSpan(list37); - span23[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span23[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.0206594f, 0f, -5.7291903f), 351); - span23[2] = new QuestStep(EInteractionType.CompleteQuest, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); - obj25.Steps = list37; - reference28 = obj25; + num2++; + span35[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.0206594f, 0f, -5.7291903f), 351); + num2++; + span35[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); + obj24.Steps = list35; + reference26 = obj24; questRoot3.QuestSequence = list21; AddQuest(questId3, questRoot3); QuestId questId4 = new QuestId(54); QuestRoot questRoot4 = new QuestRoot(); num = 1; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "JerryWester"; - questRoot4.Author = list38; - num = 4; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span24 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference29 = ref span24[0]; - QuestSequence obj26 = new QuestSequence + List list36 = new List(num); + CollectionsMarshal.SetCount(list36, num); + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "JerryWester"; + questRoot4.Author = list36; + index = 4; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference27 = ref span37[num]; + QuestSequence obj25 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); - obj26.Steps = list40; - reference29 = obj26; - ref QuestSequence reference30 = ref span24[1]; - QuestSequence obj27 = new QuestSequence + List list38 = new List(num2); + CollectionsMarshal.SetCount(list38, num2); + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); + obj25.Steps = list38; + reference27 = obj25; + num++; + ref QuestSequence reference28 = ref span37[num]; + QuestSequence obj26 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span25 = CollectionsMarshal.AsSpan(list41); - span25[0] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2 = 2; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span25[1] = new QuestStep(EInteractionType.Interact, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); - obj27.Steps = list41; - reference30 = obj27; - ref QuestSequence reference31 = ref span24[2]; - QuestSequence obj28 = new QuestSequence + num2++; + span39[num2] = new QuestStep(EInteractionType.Interact, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + obj26.Steps = list39; + reference28 = obj26; + num++; + ref QuestSequence reference29 = ref span37[num]; + QuestSequence obj27 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - Span span26 = CollectionsMarshal.AsSpan(list42); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.44713f, 303.12494f, -199.88608f), 155) + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.44713f, 303.12494f, -199.88608f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span26[1] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); - obj28.Steps = list42; - reference31 = obj28; - ref QuestSequence reference32 = ref span24[3]; - QuestSequence obj29 = new QuestSequence + index2++; + span40[index2] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + obj27.Steps = list40; + reference29 = obj27; + num++; + ref QuestSequence reference30 = ref span37[num]; + QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - ref QuestStep reference33 = ref CollectionsMarshal.AsSpan(list43)[0]; - QuestStep obj30 = new QuestStep(EInteractionType.CompleteQuest, 1007603u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + ref QuestStep reference31 = ref span41[num2]; + QuestStep obj29 = new QuestStep(EInteractionType.CompleteQuest, 1007603u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155) { Mount = true }; - num3 = 1; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = new DialogueChoice + num4 = 1; + List list42 = new List(num4); + CollectionsMarshal.SetCount(list42, num4); + Span span42 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span42[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE403_00054_FORTEMPSGUARD00054_Q1_000_1") }; - obj30.DialogueChoices = list44; - reference33 = obj30; - obj29.Steps = list43; - reference32 = obj29; - questRoot4.QuestSequence = list39; + obj29.DialogueChoices = list42; + reference31 = obj29; + obj28.Steps = list41; + reference30 = obj28; + questRoot4.QuestSequence = list37; AddQuest(questId4, questRoot4); QuestId questId5 = new QuestId(55); QuestRoot questRoot5 = new QuestRoot(); num = 1; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "Cacahuetes"; - questRoot5.Author = list45; - num = 6; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span27 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference34 = ref span27[0]; - QuestSequence obj31 = new QuestSequence + List list43 = new List(num); + CollectionsMarshal.SetCount(list43, num); + Span span43 = CollectionsMarshal.AsSpan(list43); + index = 0; + span43[index] = "Cacahuetes"; + questRoot5.Author = list43; + index = 6; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + Span span44 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference32 = ref span44[num]; + QuestSequence obj30 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list47)[0]; - QuestStep obj32 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + List list45 = new List(num2); + CollectionsMarshal.SetCount(list45, num2); + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + ref QuestStep reference33 = ref span45[index2]; + QuestStep obj31 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -6147,113 +7418,134 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - SkipConditions skipConditions5 = new SkipConditions(); - SkipAetheryteCondition obj33 = new SkipAetheryteCondition + SkipConditions skipConditions3 = new SkipConditions(); + SkipAetheryteCondition obj32 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = 133; - obj33.InTerritory = list48; - skipConditions5.AetheryteShortcutIf = obj33; - obj32.SkipConditions = skipConditions5; - reference35 = obj32; - obj31.Steps = list47; - reference34 = obj31; - ref QuestSequence reference36 = ref span27[1]; - QuestSequence obj34 = new QuestSequence + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + Span span46 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span46[num4] = 133; + obj32.InTerritory = list46; + skipConditions3.AetheryteShortcutIf = obj32; + obj31.SkipConditions = skipConditions3; + reference33 = obj31; + obj30.Steps = list45; + reference32 = obj30; + num++; + ref QuestSequence reference34 = ref span44[num]; + QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span28 = CollectionsMarshal.AsSpan(list49); - span28[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + index2 = 2; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152 }; - ref QuestStep reference37 = ref span28[1]; - QuestStep obj35 = new QuestStep(EInteractionType.Interact, 1001194u, new Vector3(-416.37292f, 0.10675049f, 60.990234f), 152) + num2++; + ref QuestStep reference35 = ref span47[num2]; + QuestStep obj34 = new QuestStep(EInteractionType.Interact, 1001194u, new Vector3(-416.37292f, 0.10675049f, 60.990234f), 152) { Fly = true }; - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = new DialogueChoice + num4 = 1; + List list48 = new List(num4); + CollectionsMarshal.SetCount(list48, num4); + Span span48 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span48[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSLNC003_00055_Q1_000_1"), Answer = new ExcelRef("TEXT_CLSLNC003_00055_A1_000_1") }; - obj35.DialogueChoices = list50; - reference37 = obj35; - obj34.Steps = list49; - reference36 = obj34; - ref QuestSequence reference38 = ref span27[2]; - QuestSequence obj36 = new QuestSequence + obj34.DialogueChoices = list48; + reference35 = obj34; + obj33.Steps = list47; + reference34 = obj33; + num++; + ref QuestSequence reference36 = ref span44[num]; + QuestSequence obj35 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list51)[0]; - QuestStep obj37 = new QuestStep(EInteractionType.Combat, 2000919u, new Vector3(-418.60077f, 0.289917f, 127.06189f), 152) + List list49 = new List(num2); + CollectionsMarshal.SetCount(list49, num2); + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + ref QuestStep reference37 = ref span49[index2]; + QuestStep obj36 = new QuestStep(EInteractionType.Combat, 2000919u, new Vector3(-418.60077f, 0.289917f, 127.06189f), 152) { ItemId = 2000235u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = 24u; - obj37.KillEnemyDataIds = list52; - reference39 = obj37; - obj36.Steps = list51; - reference38 = obj36; - ref QuestSequence reference40 = ref span27[3]; - QuestSequence obj38 = new QuestSequence + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + Span span50 = CollectionsMarshal.AsSpan(list50); + num4 = 0; + span50[num4] = 24u; + obj36.KillEnemyDataIds = list50; + reference37 = obj36; + obj35.Steps = list49; + reference36 = obj35; + num++; + ref QuestSequence reference38 = ref span44[num]; + QuestSequence obj37 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1001194u, new Vector3(-416.37292f, 0.10675049f, 60.990234f), 152); - obj38.Steps = list53; - reference40 = obj38; - ref QuestSequence reference41 = ref span27[4]; - QuestSequence obj39 = new QuestSequence + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.Interact, 1001194u, new Vector3(-416.37292f, 0.10675049f, 60.990234f), 152); + obj37.Steps = list51; + reference38 = obj37; + num++; + ref QuestSequence reference39 = ref span44[num]; + QuestSequence obj38 = new QuestSequence { Sequence = 4 }; num2 = 2; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - Span span29 = CollectionsMarshal.AsSpan(list54); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-514.83344f, 19.223053f, 284.89175f), 152) + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-514.83344f, 19.223053f, 284.89175f), 152) { Fly = true }; - span29[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000920u, new Vector3(267.5669f, -0.5951538f, -253.83386f), 148) + index2++; + span52[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000920u, new Vector3(267.5669f, -0.5951538f, -253.83386f), 148) { Fly = true }; - obj39.Steps = list54; - reference41 = obj39; - ref QuestSequence reference42 = ref span27[5]; - QuestSequence obj40 = new QuestSequence + obj38.Steps = list52; + reference39 = obj38; + num++; + ref QuestSequence reference40 = ref span44[num]; + QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -6263,31 +7555,36 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(56) }; - obj40.Steps = list55; - reference42 = obj40; - questRoot5.QuestSequence = list46; + obj39.Steps = list53; + reference40 = obj39; + questRoot5.QuestSequence = list44; AddQuest(questId5, questRoot5); QuestId questId6 = new QuestId(56); QuestRoot questRoot6 = new QuestRoot(); num = 1; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "Cacahuetes"; - questRoot6.Author = list56; - num = 7; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span30 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference43 = ref span30[0]; - QuestSequence obj41 = new QuestSequence + List list54 = new List(num); + CollectionsMarshal.SetCount(list54, num); + Span span54 = CollectionsMarshal.AsSpan(list54); + index = 0; + span54[index] = "Cacahuetes"; + questRoot6.Author = list54; + index = 7; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + Span span55 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference41 = ref span55[num]; + QuestSequence obj40 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list58)[0]; - QuestStep obj42 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + List list56 = new List(num2); + CollectionsMarshal.SetCount(list56, num2); + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + ref QuestStep reference42 = ref span56[index2]; + QuestStep obj41 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -6296,30 +7593,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - SkipConditions skipConditions6 = new SkipConditions(); - SkipAetheryteCondition obj43 = new SkipAetheryteCondition + SkipConditions skipConditions4 = new SkipConditions(); + SkipAetheryteCondition obj42 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = 133; - obj43.InTerritory = list59; - skipConditions6.AetheryteShortcutIf = obj43; - obj42.SkipConditions = skipConditions6; - reference44 = obj42; - obj41.Steps = list58; - reference43 = obj41; - ref QuestSequence reference45 = ref span30[1]; - QuestSequence obj44 = new QuestSequence + num4 = 1; + List list57 = new List(num4); + CollectionsMarshal.SetCount(list57, num4); + Span span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span57[num3] = 133; + obj42.InTerritory = list57; + skipConditions4.AetheryteShortcutIf = obj42; + obj41.SkipConditions = skipConditions4; + reference42 = obj41; + obj40.Steps = list56; + reference41 = obj40; + num++; + ref QuestSequence reference43 = ref span55[num]; + QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000977u, new Vector3(157.5188f, 16.189758f, -273.64008f), 133) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000977u, new Vector3(157.5188f, 16.189758f, -273.64008f), 133) { StopDistance = 4f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -6327,43 +7629,50 @@ public static class AssemblyQuestLoader Enabled = true } }; - obj44.Steps = list60; - reference45 = obj44; - ref QuestSequence reference46 = ref span30[2]; - QuestSequence obj45 = new QuestSequence + obj43.Steps = list58; + reference43 = obj43; + num++; + ref QuestSequence reference44 = ref span55[num]; + QuestSequence obj44 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list61)[0]; - QuestStep obj46 = new QuestStep(EInteractionType.Interact, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + List list59 = new List(num2); + CollectionsMarshal.SetCount(list59, num2); + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + ref QuestStep reference45 = ref span59[index2]; + QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { StopDistance = 7f }; num3 = 1; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - CollectionsMarshal.AsSpan(list62)[0] = new DialogueChoice + List list60 = new List(num3); + CollectionsMarshal.SetCount(list60, num3); + Span span60 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span60[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSLNC004_00056_Q1_000_1") }; - obj46.DialogueChoices = list62; - reference47 = obj46; - obj45.Steps = list61; - reference46 = obj45; - ref QuestSequence reference48 = ref span30[3]; - QuestSequence obj47 = new QuestSequence + obj45.DialogueChoices = list60; + reference45 = obj45; + obj44.Steps = list59; + reference44 = obj44; + num++; + ref QuestSequence reference46 = ref span55[num]; + QuestSequence obj46 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span31 = CollectionsMarshal.AsSpan(list63); - span31[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + index2 = 2; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, SkipConditions = new SkipConditions @@ -6374,55 +7683,64 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference49 = ref span31[1]; - QuestStep obj48 = new QuestStep(EInteractionType.Combat, null, new Vector3(-131.39551f, -1.8032382f, 173.32715f), 152) + num2++; + ref QuestStep reference47 = ref span61[num2]; + QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(-131.39551f, -1.8032382f, 173.32715f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new ComplexCombatData + num4 = 1; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + Span span62 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span62[num3] = new ComplexCombatData { DataId = 15u, MinimumKillCount = 10u }; - obj48.ComplexCombatData = list64; - obj48.SkipConditions = new SkipConditions + obj47.ComplexCombatData = list62; + obj47.SkipConditions = new SkipConditions { AetheryteShortcutIf = new SkipAetheryteCondition { InSameTerritory = true } }; - reference49 = obj48; - obj47.Steps = list63; - reference48 = obj47; - ref QuestSequence reference50 = ref span30[4]; - QuestSequence obj49 = new QuestSequence + reference47 = obj47; + obj46.Steps = list61; + reference46 = obj46; + num++; + ref QuestSequence reference48 = ref span55[num]; + QuestSequence obj48 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 2000089u, new Vector3(-238.66644f, 11.856201f, 29.007324f), 152) + List list63 = new List(num2); + CollectionsMarshal.SetCount(list63, num2); + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.Interact, 2000089u, new Vector3(-238.66644f, 11.856201f, 29.007324f), 152) { Fly = true }; - obj49.Steps = list65; - reference50 = obj49; - ref QuestSequence reference51 = ref span30[5]; - QuestSequence obj50 = new QuestSequence + obj48.Steps = list63; + reference48 = obj48; + num++; + ref QuestSequence reference49 = ref span55[num]; + QuestSequence obj49 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000978u, new Vector3(-238.94104f, 11.550964f, 29.06836f), 152) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000978u, new Vector3(-238.94104f, 11.550964f, 29.06836f), 152) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -6430,17 +7748,20 @@ public static class AssemblyQuestLoader Index = 1 } }; - obj50.Steps = list66; - reference51 = obj50; - ref QuestSequence reference52 = ref span30[6]; - QuestSequence obj51 = new QuestSequence + obj49.Steps = list64; + reference49 = obj49; + num++; + ref QuestSequence reference50 = ref span55[num]; + QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + List list65 = new List(num2); + CollectionsMarshal.SetCount(list65, num2); + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -6450,30 +7771,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(438) }; - obj51.Steps = list67; - reference52 = obj51; - questRoot6.QuestSequence = list57; + obj50.Steps = list65; + reference50 = obj50; + questRoot6.QuestSequence = list55; AddQuest(questId6, questRoot6); QuestId questId7 = new QuestId(57); QuestRoot questRoot7 = new QuestRoot(); num = 1; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "JerryWester"; - questRoot7.Author = list68; - num = 5; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span32 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference53 = ref span32[0]; - QuestSequence obj52 = new QuestSequence + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span66 = CollectionsMarshal.AsSpan(list66); + index = 0; + span66[index] = "JerryWester"; + questRoot7.Author = list66; + index = 5; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + Span span67 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference51 = ref span67[num]; + QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009976u, new Vector3(261.58533f, 302.19598f, -223.10223f), 155) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009976u, new Vector3(261.58533f, 302.19598f, -223.10223f), 155) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -6485,136 +7811,116 @@ public static class AssemblyQuestLoader } } }; - obj52.Steps = list70; - reference53 = obj52; - ref QuestSequence reference54 = ref span32[1]; - QuestSequence obj53 = new QuestSequence + obj51.Steps = list68; + reference51 = obj51; + num++; + ref QuestSequence reference52 = ref span67[num]; + QuestSequence obj52 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + List list69 = new List(num2); + CollectionsMarshal.SetCount(list69, num2); + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { Mount = true }; - obj53.Steps = list71; - reference54 = obj53; - ref QuestSequence reference55 = ref span32[2]; - QuestSequence obj54 = new QuestSequence + obj52.Steps = list69; + reference52 = obj52; + num++; + ref QuestSequence reference53 = ref span67[num]; + QuestSequence obj53 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span33 = CollectionsMarshal.AsSpan(list72); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.25629f, 303f, -199.9688f), 155) + index2 = 2; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.25629f, 303f, -199.9688f), 155) { Mount = true }; - span33[1] = new QuestStep(EInteractionType.Interact, 1009979u, new Vector3(-281.48322f, 225.50882f, 556.115f), 155) + num2++; + span70[num2] = new QuestStep(EInteractionType.Interact, 1009979u, new Vector3(-281.48322f, 225.50882f, 556.115f), 155) { Fly = true }; - obj54.Steps = list72; - reference55 = obj54; - ref QuestSequence reference56 = ref span32[3]; - QuestSequence obj55 = new QuestSequence + obj53.Steps = list70; + reference53 = obj53; + num++; + ref QuestSequence reference54 = ref span67[num]; + QuestSequence obj54 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - Span span34 = CollectionsMarshal.AsSpan(list73); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.60997f, 228.96082f, 327.83392f), 155) + List list71 = new List(num2); + CollectionsMarshal.SetCount(list71, num2); + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.60997f, 228.96082f, 327.83392f), 155) { Fly = true }; - span34[1] = new QuestStep(EInteractionType.Interact, 1009982u, new Vector3(208.88062f, 229.04996f, 322.4994f), 155) + index2++; + span71[index2] = new QuestStep(EInteractionType.Interact, 1009982u, new Vector3(208.88062f, 229.04996f, 322.4994f), 155) { StopDistance = 5f }; - obj55.Steps = list73; - reference56 = obj55; - ref QuestSequence reference57 = ref span32[4]; - QuestSequence obj56 = new QuestSequence + obj54.Steps = list71; + reference54 = obj54; + num++; + ref QuestSequence reference55 = ref span67[num]; + QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - Span span35 = CollectionsMarshal.AsSpan(list74); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.44713f, 303.12494f, -199.88608f), 155) + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.44713f, 303.12494f, -199.88608f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span35[1] = new QuestStep(EInteractionType.CompleteQuest, 1009977u, new Vector3(261.0055f, 303.1f, -198.59619f), 155); - obj56.Steps = list74; - reference57 = obj56; - questRoot7.QuestSequence = list69; + num2++; + span72[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009977u, new Vector3(261.0055f, 303.1f, -198.59619f), 155); + obj55.Steps = list72; + reference55 = obj55; + questRoot7.QuestSequence = list67; AddQuest(questId7, questRoot7); - QuestId questId8 = new QuestId(59); + AlliedSocietyDailyId questId8 = new AlliedSocietyDailyId(6, 0); QuestRoot questRoot8 = new QuestRoot(); num = 1; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "Wigglez"; - questRoot8.Author = list75; - num = 2; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span36 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference58 = ref span36[0]; - QuestSequence obj57 = new QuestSequence + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + Span span73 = CollectionsMarshal.AsSpan(list73); + index = 0; + span73[index] = "liza"; + questRoot8.Author = list73; + index = 1; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + Span span74 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference56 = ref span74[num]; + QuestSequence obj56 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001788u, new Vector3(669.1843f, 9.198655f, 512.9929f), 138) - { - AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch - }; - obj57.Steps = list77; - reference58 = obj57; - ref QuestSequence reference59 = ref span36[1]; - QuestSequence obj58 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004745u, new Vector3(647.0282f, 9.588856f, 487.66296f), 138); - obj58.Steps = list78; - reference59 = obj58; - questRoot8.QuestSequence = list76; - AddQuest(questId8, questRoot8); - AlliedSocietyDailyId questId9 = new AlliedSocietyDailyId(6, 0); - QuestRoot questRoot9 = new QuestRoot(); - num = 1; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; - questRoot9.Author = list79; - num = 1; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - ref QuestSequence reference60 = ref CollectionsMarshal.AsSpan(list80)[0]; - QuestSequence obj59 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.WalkTo, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + List list75 = new List(num2); + CollectionsMarshal.SetCount(list75, num2); + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.WalkTo, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { StopDistance = 3f, Fly = true, @@ -6627,30 +7933,35 @@ public static class AssemblyQuestLoader } } }; - obj59.Steps = list81; - reference60 = obj59; - questRoot9.QuestSequence = list80; - AddQuest(questId9, questRoot9); - QuestId questId10 = new QuestId(62); - QuestRoot questRoot10 = new QuestRoot(); + obj56.Steps = list75; + reference56 = obj56; + questRoot8.QuestSequence = list74; + AddQuest(questId8, questRoot8); + QuestId questId9 = new QuestId(62); + QuestRoot questRoot9 = new QuestRoot(); num = 1; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "JerryWester"; - questRoot10.Author = list82; - num = 2; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span37 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference61 = ref span37[0]; - QuestSequence obj60 = new QuestSequence + List list76 = new List(num); + CollectionsMarshal.SetCount(list76, num); + Span span76 = CollectionsMarshal.AsSpan(list76); + index = 0; + span76[index] = "JerryWester"; + questRoot9.Author = list76; + index = 2; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + Span span77 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference57 = ref span77[num]; + QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009977u, new Vector3(261.0055f, 303.1f, -198.59619f), 155) + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009977u, new Vector3(261.0055f, 303.1f, -198.59619f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -6661,50 +7972,59 @@ public static class AssemblyQuestLoader } } }; - obj60.Steps = list84; - reference61 = obj60; - ref QuestSequence reference62 = ref span37[1]; - QuestSequence obj61 = new QuestSequence + obj57.Steps = list78; + reference57 = obj57; + num++; + ref QuestSequence reference58 = ref span77[num]; + QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span38 = CollectionsMarshal.AsSpan(list85); - span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.25629f, 303f, -199.9688f), 155) + List list79 = new List(num2); + CollectionsMarshal.SetCount(list79, num2); + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.25629f, 303f, -199.9688f), 155) { Mount = true }; - span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) + index2++; + span79[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) { Fly = true }; - span38[2] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj61.Steps = list85; - reference62 = obj61; - questRoot10.QuestSequence = list83; - AddQuest(questId10, questRoot10); - QuestId questId11 = new QuestId(67); - QuestRoot questRoot11 = new QuestRoot(); + index2++; + span79[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + obj58.Steps = list79; + reference58 = obj58; + questRoot9.QuestSequence = list77; + AddQuest(questId9, questRoot9); + QuestId questId10 = new QuestId(67); + QuestRoot questRoot10 = new QuestRoot(); num = 1; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "Cacahuetes"; - questRoot11.Author = list86; - num = 7; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span39 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference63 = ref span39[0]; - QuestSequence obj62 = new QuestSequence + List list80 = new List(num); + CollectionsMarshal.SetCount(list80, num); + Span span80 = CollectionsMarshal.AsSpan(list80); + index = 0; + span80[index] = "Cacahuetes"; + questRoot10.Author = list80; + index = 7; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + Span span81 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference59 = ref span81[num]; + QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -6721,35 +8041,191 @@ public static class AssemblyQuestLoader } } }; - obj62.Steps = list88; - reference63 = obj62; - ref QuestSequence reference64 = ref span39[1]; - QuestSequence obj63 = new QuestSequence + obj59.Steps = list82; + reference59 = obj59; + num++; + ref QuestSequence reference60 = ref span81[num]; + QuestSequence obj60 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132); - obj63.Steps = list89; - reference64 = obj63; - ref QuestSequence reference65 = ref span39[2]; - QuestSequence obj64 = new QuestSequence + List list83 = new List(num2); + CollectionsMarshal.SetCount(list83, num2); + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132); + obj60.Steps = list83; + reference60 = obj60; + num++; + ref QuestSequence reference61 = ref span81[num]; + QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - num2 = 12; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span40 = CollectionsMarshal.AsSpan(list90); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-87.448326f, -3.8114734f, -77.68485f), 148) + index2 = 12; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-87.448326f, -3.8114734f, -77.68485f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - ref QuestStep reference66 = ref span40[1]; - QuestStep obj65 = new QuestStep(EInteractionType.Action, 2001173u, new Vector3(-88.24298f, 3.768982f, -88.24298f), 148) + num2++; + ref QuestStep reference62 = ref span84[num2]; + QuestStep obj62 = new QuestStep(EInteractionType.Action, 2001173u, new Vector3(-88.24298f, 3.768982f, -88.24298f), 148) + { + StopDistance = 15f, + Action = EAction.HeavyShot + }; + num3 = 6; + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + Span span85 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span85[num4] = null; + num4++; + span85[num4] = null; + num4++; + span85[num4] = null; + num4++; + span85[num4] = null; + num4++; + span85[num4] = null; + num4++; + span85[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + obj62.CompletionQuestVariablesFlags = list85; + reference62 = obj62; + num2++; + ref QuestStep reference63 = ref span84[num2]; + QuestStep questStep3 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.806755f, -3.824695f, -61.20561f), 148); + SkipConditions skipConditions5 = new SkipConditions(); + SkipStepConditions skipStepConditions3 = new SkipStepConditions(); + num4 = 6; + List list86 = new List(num4); + CollectionsMarshal.SetCount(list86, num4); + Span span86 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + skipStepConditions3.CompletionQuestVariablesFlags = list86; + skipConditions5.StepIf = skipStepConditions3; + questStep3.SkipConditions = skipConditions5; + reference63 = questStep3; + num2++; + ref QuestStep reference64 = ref span84[num2]; + QuestStep obj63 = new QuestStep(EInteractionType.Action, 2001171u, new Vector3(-115.58716f, -3.402832f, -51.07196f), 148) + { + StopDistance = 15f, + Action = EAction.HeavyShot + }; + num3 = 6; + List list87 = new List(num3); + CollectionsMarshal.SetCount(list87, num3); + Span span87 = CollectionsMarshal.AsSpan(list87); + num4 = 0; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + obj63.CompletionQuestVariablesFlags = list87; + reference64 = obj63; + num2++; + ref QuestStep reference65 = ref span84[num2]; + QuestStep questStep4 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-142.90863f, -1.355497f, -69.45994f), 148); + SkipConditions skipConditions6 = new SkipConditions(); + SkipStepConditions skipStepConditions4 = new SkipStepConditions(); + num4 = 6; + List list88 = new List(num4); + CollectionsMarshal.SetCount(list88, num4); + Span span88 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + skipStepConditions4.CompletionQuestVariablesFlags = list88; + skipConditions6.StepIf = skipStepConditions4; + questStep4.SkipConditions = skipConditions6; + reference65 = questStep4; + num2++; + ref QuestStep reference66 = ref span84[num2]; + QuestStep obj64 = new QuestStep(EInteractionType.Action, 2000940u, new Vector3(-143.32806f, -0.41204834f, -58.884644f), 148) + { + StopDistance = 15f, + Action = EAction.HeavyShot + }; + num3 = 6; + List list89 = new List(num3); + CollectionsMarshal.SetCount(list89, num3); + Span span89 = CollectionsMarshal.AsSpan(list89); + num4 = 0; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + obj64.CompletionQuestVariablesFlags = list89; + reference66 = obj64; + num2++; + ref QuestStep reference67 = ref span84[num2]; + QuestStep questStep5 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-154.95493f, 4.0352364f, -132.85217f), 148); + SkipConditions skipConditions7 = new SkipConditions(); + SkipStepConditions skipStepConditions5 = new SkipStepConditions(); + num4 = 6; + List list90 = new List(num4); + CollectionsMarshal.SetCount(list90, num4); + Span span90 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + skipStepConditions5.CompletionQuestVariablesFlags = list90; + skipConditions7.StepIf = skipStepConditions5; + questStep5.SkipConditions = skipConditions7; + reference67 = questStep5; + num2++; + ref QuestStep reference68 = ref span84[num2]; + QuestStep obj65 = new QuestStep(EInteractionType.Action, 2000939u, new Vector3(-166.97955f, 10.2387085f, -138.41461f), 148) { StopDistance = 15f, Action = EAction.HeavyShot @@ -6757,35 +8233,49 @@ public static class AssemblyQuestLoader num3 = 6; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - Span span41 = CollectionsMarshal.AsSpan(list91); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span span91 = CollectionsMarshal.AsSpan(list91); + num4 = 0; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj65.CompletionQuestVariablesFlags = list91; - reference66 = obj65; - ref QuestStep reference67 = ref span40[2]; - QuestStep questStep4 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.806755f, -3.824695f, -61.20561f), 148); - SkipConditions skipConditions7 = new SkipConditions(); - SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span42 = CollectionsMarshal.AsSpan(list92); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - skipStepConditions5.CompletionQuestVariablesFlags = list92; - skipConditions7.StepIf = skipStepConditions5; - questStep4.SkipConditions = skipConditions7; - reference67 = questStep4; - ref QuestStep reference68 = ref span40[3]; - QuestStep obj66 = new QuestStep(EInteractionType.Action, 2001171u, new Vector3(-115.58716f, -3.402832f, -51.07196f), 148) + reference68 = obj65; + num2++; + ref QuestStep reference69 = ref span84[num2]; + QuestStep questStep6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.08684f, 7.6589117f, -173.19547f), 148); + SkipConditions skipConditions8 = new SkipConditions(); + SkipStepConditions skipStepConditions6 = new SkipStepConditions(); + num4 = 6; + List list92 = new List(num4); + CollectionsMarshal.SetCount(list92, num4); + Span span92 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + skipStepConditions6.CompletionQuestVariablesFlags = list92; + skipConditions8.StepIf = skipStepConditions6; + questStep6.SkipConditions = skipConditions8; + reference69 = questStep6; + num2++; + ref QuestStep reference70 = ref span84[num2]; + QuestStep obj66 = new QuestStep(EInteractionType.Action, 2000938u, new Vector3(-120.68359f, 12.49707f, -182.39111f), 148) { StopDistance = 15f, Action = EAction.HeavyShot @@ -6793,140 +8283,43 @@ public static class AssemblyQuestLoader num3 = 6; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - Span span43 = CollectionsMarshal.AsSpan(list93); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + Span span93 = CollectionsMarshal.AsSpan(list93); + num4 = 0; + span93[num4] = null; + num4++; + span93[num4] = null; + num4++; + span93[num4] = null; + num4++; + span93[num4] = null; + num4++; + span93[num4] = null; + num4++; + span93[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj66.CompletionQuestVariablesFlags = list93; - reference68 = obj66; - ref QuestStep reference69 = ref span40[4]; - QuestStep questStep5 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-142.90863f, -1.355497f, -69.45994f), 148); - SkipConditions skipConditions8 = new SkipConditions(); - SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 6; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span44 = CollectionsMarshal.AsSpan(list94); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - skipStepConditions6.CompletionQuestVariablesFlags = list94; - skipConditions8.StepIf = skipStepConditions6; - questStep5.SkipConditions = skipConditions8; - reference69 = questStep5; - ref QuestStep reference70 = ref span40[5]; - QuestStep obj67 = new QuestStep(EInteractionType.Action, 2000940u, new Vector3(-143.32806f, -0.41204834f, -58.884644f), 148) + reference70 = obj66; + num2++; + span84[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-74.71171f, -4f, -190.44055f), 148); + num2++; + span84[num2] = new QuestStep(EInteractionType.Action, 2000937u, new Vector3(-80.76605f, -2.3651733f, -196.49048f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; - num3 = 6; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - Span span45 = CollectionsMarshal.AsSpan(list95); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - obj67.CompletionQuestVariablesFlags = list95; - reference70 = obj67; - ref QuestStep reference71 = ref span40[6]; - QuestStep questStep6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-154.95493f, 4.0352364f, -132.85217f), 148); - SkipConditions skipConditions9 = new SkipConditions(); - SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - Span span46 = CollectionsMarshal.AsSpan(list96); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - skipStepConditions7.CompletionQuestVariablesFlags = list96; - skipConditions9.StepIf = skipStepConditions7; - questStep6.SkipConditions = skipConditions9; - reference71 = questStep6; - ref QuestStep reference72 = ref span40[7]; - QuestStep obj68 = new QuestStep(EInteractionType.Action, 2000939u, new Vector3(-166.97955f, 10.2387085f, -138.41461f), 148) - { - StopDistance = 15f, - Action = EAction.HeavyShot - }; - num3 = 6; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - Span span47 = CollectionsMarshal.AsSpan(list97); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - obj68.CompletionQuestVariablesFlags = list97; - reference72 = obj68; - ref QuestStep reference73 = ref span40[8]; - QuestStep questStep7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.08684f, 7.6589117f, -173.19547f), 148); - SkipConditions skipConditions10 = new SkipConditions(); - SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 6; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - Span span48 = CollectionsMarshal.AsSpan(list98); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - skipStepConditions8.CompletionQuestVariablesFlags = list98; - skipConditions10.StepIf = skipStepConditions8; - questStep7.SkipConditions = skipConditions10; - reference73 = questStep7; - ref QuestStep reference74 = ref span40[9]; - QuestStep obj69 = new QuestStep(EInteractionType.Action, 2000938u, new Vector3(-120.68359f, 12.49707f, -182.39111f), 148) - { - StopDistance = 15f, - Action = EAction.HeavyShot - }; - num3 = 6; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span49 = CollectionsMarshal.AsSpan(list99); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj69.CompletionQuestVariablesFlags = list99; - reference74 = obj69; - span40[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-74.71171f, -4f, -190.44055f), 148); - span40[11] = new QuestStep(EInteractionType.Action, 2000937u, new Vector3(-80.76605f, -2.3651733f, -196.49048f), 148) - { - StopDistance = 15f, - Action = EAction.HeavyShot - }; - obj64.Steps = list90; - reference65 = obj64; - ref QuestSequence reference75 = ref span39[3]; - QuestSequence obj70 = new QuestSequence + obj61.Steps = list84; + reference61 = obj61; + num++; + ref QuestSequence reference71 = ref span81[num]; + QuestSequence obj67 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132) + List list94 = new List(num2); + CollectionsMarshal.SetCount(list94, num2); + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -6935,18 +8328,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - obj70.Steps = list100; - reference75 = obj70; - ref QuestSequence reference76 = ref span39[4]; - QuestSequence obj71 = new QuestSequence + obj67.Steps = list94; + reference71 = obj67; + num++; + ref QuestSequence reference72 = ref span81[num]; + QuestSequence obj68 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - Span span50 = CollectionsMarshal.AsSpan(list101); - span50[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + index2 = 3; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -6962,60 +8357,76 @@ public static class AssemblyQuestLoader } } }; - span50[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + num2++; + span95[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut }; - ref QuestStep reference77 = ref span50[2]; - QuestStep obj72 = new QuestStep(EInteractionType.Combat, null, new Vector3(-431.09494f, 2.9039853f, 239.26413f), 152) + num2++; + ref QuestStep reference73 = ref span95[num2]; + QuestStep obj69 = new QuestStep(EInteractionType.Combat, null, new Vector3(-431.09494f, 2.9039853f, 239.26413f), 152) { StopDistance = 0.5f, Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - Span span51 = CollectionsMarshal.AsSpan(list102); - ref ComplexCombatData reference78 = ref span51[0]; - ComplexCombatData obj73 = new ComplexCombatData + num4 = 2; + List list96 = new List(num4); + CollectionsMarshal.SetCount(list96, num4); + Span span96 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + ref ComplexCombatData reference74 = ref span96[num3]; + ComplexCombatData obj70 = new ComplexCombatData { DataId = 12u, MinimumKillCount = 8u }; - int num4 = 6; - List list103 = new List(num4); - CollectionsMarshal.SetCount(list103, num4); - Span span52 = CollectionsMarshal.AsSpan(list103); - span52[0] = null; - span52[1] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = null; - obj73.CompletionQuestVariablesFlags = list103; - reference78 = obj73; - ref ComplexCombatData reference79 = ref span51[1]; - ComplexCombatData obj74 = new ComplexCombatData + int num5 = 6; + List list97 = new List(num5); + CollectionsMarshal.SetCount(list97, num5); + Span span97 = CollectionsMarshal.AsSpan(list97); + int num6 = 0; + span97[num6] = null; + num6++; + span97[num6] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); + num6++; + span97[num6] = null; + num6++; + span97[num6] = null; + num6++; + span97[num6] = null; + num6++; + span97[num6] = null; + obj70.CompletionQuestVariablesFlags = list97; + reference74 = obj70; + num3++; + ref ComplexCombatData reference75 = ref span96[num3]; + ComplexCombatData obj71 = new ComplexCombatData { DataId = 39u, MinimumKillCount = 8u }; - num4 = 6; - List list104 = new List(num4); - CollectionsMarshal.SetCount(list104, num4); - Span span53 = CollectionsMarshal.AsSpan(list104); - span53[0] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = null; - obj74.CompletionQuestVariablesFlags = list104; - reference79 = obj74; - obj72.ComplexCombatData = list102; - obj72.SkipConditions = new SkipConditions + num6 = 6; + List list98 = new List(num6); + CollectionsMarshal.SetCount(list98, num6); + Span span98 = CollectionsMarshal.AsSpan(list98); + num5 = 0; + span98[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span98[num5] = null; + num5++; + span98[num5] = null; + num5++; + span98[num5] = null; + num5++; + span98[num5] = null; + num5++; + span98[num5] = null; + obj71.CompletionQuestVariablesFlags = list98; + reference75 = obj71; + obj69.ComplexCombatData = list96; + obj69.SkipConditions = new SkipConditions { AetheryteShortcutIf = new SkipAetheryteCondition { @@ -7023,18 +8434,21 @@ public static class AssemblyQuestLoader AetheryteLocked = EAetheryteLocation.EastShroudHawthorneHut } }; - reference77 = obj72; - obj71.Steps = list101; - reference76 = obj71; - ref QuestSequence reference80 = ref span39[5]; - QuestSequence obj75 = new QuestSequence + reference73 = obj69; + obj68.Steps = list95; + reference72 = obj68; + num++; + ref QuestSequence reference76 = ref span81[num]; + QuestSequence obj72 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132) + List list99 = new List(num2); + CollectionsMarshal.SetCount(list99, num2); + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -7043,56 +8457,66 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - obj75.Steps = list105; - reference80 = obj75; - ref QuestSequence reference81 = ref span39[6]; - QuestSequence obj76 = new QuestSequence + obj72.Steps = list99; + reference76 = obj72; + num++; + ref QuestSequence reference77 = ref span81[num]; + QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list106)[0]; - QuestStep obj77 = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference78 = ref span100[num2]; + QuestStep obj74 = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f }; num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new DialogueChoice + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + Span span101 = CollectionsMarshal.AsSpan(list101); + num4 = 0; + span101[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARC002_00067_Q1_000_1") }; - obj77.DialogueChoices = list107; - obj77.NextQuestId = new QuestId(68); - reference82 = obj77; - obj76.Steps = list106; - reference81 = obj76; - questRoot11.QuestSequence = list87; - AddQuest(questId11, questRoot11); - QuestId questId12 = new QuestId(68); - QuestRoot questRoot12 = new QuestRoot(); + obj74.DialogueChoices = list101; + obj74.NextQuestId = new QuestId(68); + reference78 = obj74; + obj73.Steps = list100; + reference77 = obj73; + questRoot10.QuestSequence = list81; + AddQuest(questId10, questRoot10); + QuestId questId11 = new QuestId(68); + QuestRoot questRoot11 = new QuestRoot(); num = 1; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "pot0to"; - questRoot12.Author = list108; - num = 7; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span54 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference83 = ref span54[0]; - QuestSequence obj78 = new QuestSequence + List list102 = new List(num); + CollectionsMarshal.SetCount(list102, num); + Span span102 = CollectionsMarshal.AsSpan(list102); + index = 0; + span102[index] = "pot0to"; + questRoot11.Author = list102; + index = 7; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + Span span103 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference79 = ref span103[num]; + QuestSequence obj75 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + List list104 = new List(num2); + CollectionsMarshal.SetCount(list104, num2); + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -7109,29 +8533,34 @@ public static class AssemblyQuestLoader } } }; - obj78.Steps = list110; - reference83 = obj78; - ref QuestSequence reference84 = ref span54[1]; - QuestSequence obj79 = new QuestSequence + obj75.Steps = list104; + reference79 = obj75; + num++; + ref QuestSequence reference80 = ref span103[num]; + QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1000204u, new Vector3(226.33704f, 1.9999089f, 29.06836f), 132); - obj79.Steps = list111; - reference84 = obj79; - ref QuestSequence reference85 = ref span54[2]; - QuestSequence obj80 = new QuestSequence + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.Interact, 1000204u, new Vector3(226.33704f, 1.9999089f, 29.06836f), 132); + obj76.Steps = list105; + reference80 = obj76; + num++; + ref QuestSequence reference81 = ref span103[num]; + QuestSequence obj77 = new QuestSequence { Sequence = 2 }; num2 = 14; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span55 = CollectionsMarshal.AsSpan(list112); - span55[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + List list106 = new List(num2); + CollectionsMarshal.SetCount(list106, num2); + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -7147,7 +8576,8 @@ public static class AssemblyQuestLoader } } }; - span55[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + index2++; + span106[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -7158,34 +8588,192 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference86 = ref span55[2]; - QuestStep obj81 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-326.03064f, 9.169003f, 323.19617f), 152) + index2++; + ref QuestStep reference82 = ref span106[index2]; + QuestStep obj78 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-326.03064f, 9.169003f, 323.19617f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; - SkipConditions skipConditions11 = new SkipConditions(); - SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 6; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - Span span56 = CollectionsMarshal.AsSpan(list113); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - skipStepConditions9.CompletionQuestVariablesFlags = list113; - skipConditions11.StepIf = skipStepConditions9; - skipConditions11.AetheryteShortcutIf = new SkipAetheryteCondition + SkipConditions skipConditions9 = new SkipConditions(); + SkipStepConditions skipStepConditions7 = new SkipStepConditions(); + num4 = 6; + List list107 = new List(num4); + CollectionsMarshal.SetCount(list107, num4); + Span span107 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span107[num3] = null; + num3++; + span107[num3] = null; + num3++; + span107[num3] = null; + num3++; + span107[num3] = null; + num3++; + span107[num3] = null; + num3++; + span107[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + skipStepConditions7.CompletionQuestVariablesFlags = list107; + skipConditions9.StepIf = skipStepConditions7; + skipConditions9.AetheryteShortcutIf = new SkipAetheryteCondition { InSameTerritory = true }; - obj81.SkipConditions = skipConditions11; - reference86 = obj81; - ref QuestStep reference87 = ref span55[3]; - QuestStep obj82 = new QuestStep(EInteractionType.Action, 2000944u, new Vector3(-330.12903f, 16.708557f, 329.67102f), 152) + obj78.SkipConditions = skipConditions9; + reference82 = obj78; + index2++; + ref QuestStep reference83 = ref span106[index2]; + QuestStep obj79 = new QuestStep(EInteractionType.Action, 2000944u, new Vector3(-330.12903f, 16.708557f, 329.67102f), 152) + { + StopDistance = 20f, + Action = EAction.HeavyShot + }; + num3 = 6; + List list108 = new List(num3); + CollectionsMarshal.SetCount(list108, num3); + Span span108 = CollectionsMarshal.AsSpan(list108); + num4 = 0; + span108[num4] = null; + num4++; + span108[num4] = null; + num4++; + span108[num4] = null; + num4++; + span108[num4] = null; + num4++; + span108[num4] = null; + num4++; + span108[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + obj79.CompletionQuestVariablesFlags = list108; + reference83 = obj79; + index2++; + ref QuestStep reference84 = ref span106[index2]; + QuestStep questStep7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-321.1917f, 0.22361445f, 297.61597f), 152); + SkipConditions skipConditions10 = new SkipConditions(); + SkipStepConditions skipStepConditions8 = new SkipStepConditions(); + num4 = 6; + List list109 = new List(num4); + CollectionsMarshal.SetCount(list109, num4); + Span span109 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + span109[num3] = null; + num3++; + span109[num3] = null; + num3++; + span109[num3] = null; + num3++; + span109[num3] = null; + num3++; + span109[num3] = null; + num3++; + span109[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + skipStepConditions8.CompletionQuestVariablesFlags = list109; + skipConditions10.StepIf = skipStepConditions8; + questStep7.SkipConditions = skipConditions10; + reference84 = questStep7; + index2++; + ref QuestStep reference85 = ref span106[index2]; + QuestStep obj80 = new QuestStep(EInteractionType.Action, 2000943u, new Vector3(-330.73932f, 9.262146f, 290.1808f), 152) + { + StopDistance = 20f, + Action = EAction.HeavyShot + }; + num3 = 6; + List list110 = new List(num3); + CollectionsMarshal.SetCount(list110, num3); + Span span110 = CollectionsMarshal.AsSpan(list110); + num4 = 0; + span110[num4] = null; + num4++; + span110[num4] = null; + num4++; + span110[num4] = null; + num4++; + span110[num4] = null; + num4++; + span110[num4] = null; + num4++; + span110[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj80.CompletionQuestVariablesFlags = list110; + reference85 = obj80; + index2++; + ref QuestStep reference86 = ref span106[index2]; + QuestStep questStep8 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-358.00266f, 6.9801626f, 306.18744f), 152); + SkipConditions skipConditions11 = new SkipConditions(); + SkipStepConditions skipStepConditions9 = new SkipStepConditions(); + num4 = 6; + List list111 = new List(num4); + CollectionsMarshal.SetCount(list111, num4); + Span span111 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span111[num3] = null; + num3++; + span111[num3] = null; + num3++; + span111[num3] = null; + num3++; + span111[num3] = null; + num3++; + span111[num3] = null; + num3++; + span111[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + skipStepConditions9.CompletionQuestVariablesFlags = list111; + skipConditions11.StepIf = skipStepConditions9; + questStep8.SkipConditions = skipConditions11; + reference86 = questStep8; + index2++; + ref QuestStep reference87 = ref span106[index2]; + QuestStep obj81 = new QuestStep(EInteractionType.Action, 2000945u, new Vector3(-364.55334f, 14.480774f, 307.60657f), 152) + { + StopDistance = 20f, + Action = EAction.HeavyShot + }; + num3 = 6; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + Span span112 = CollectionsMarshal.AsSpan(list112); + num4 = 0; + span112[num4] = null; + num4++; + span112[num4] = null; + num4++; + span112[num4] = null; + num4++; + span112[num4] = null; + num4++; + span112[num4] = null; + num4++; + span112[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + obj81.CompletionQuestVariablesFlags = list112; + reference87 = obj81; + index2++; + ref QuestStep reference88 = ref span106[index2]; + QuestStep questStep9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-378.32364f, 6.10847f, 269.35767f), 152); + SkipConditions skipConditions12 = new SkipConditions(); + SkipStepConditions skipStepConditions10 = new SkipStepConditions(); + num4 = 6; + List list113 = new List(num4); + CollectionsMarshal.SetCount(list113, num4); + Span span113 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span113[num3] = null; + num3++; + span113[num3] = null; + num3++; + span113[num3] = null; + num3++; + span113[num3] = null; + num3++; + span113[num3] = null; + num3++; + span113[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + skipStepConditions10.CompletionQuestVariablesFlags = list113; + skipConditions12.StepIf = skipStepConditions10; + questStep9.SkipConditions = skipConditions12; + reference88 = questStep9; + index2++; + ref QuestStep reference89 = ref span106[index2]; + QuestStep obj82 = new QuestStep(EInteractionType.Action, 2000942u, new Vector3(-378.53058f, 9.048584f, 262.68408f), 152) { StopDistance = 20f, Action = EAction.HeavyShot @@ -7193,35 +8781,49 @@ public static class AssemblyQuestLoader num3 = 6; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - Span span57 = CollectionsMarshal.AsSpan(list114); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span114 = CollectionsMarshal.AsSpan(list114); + num4 = 0; + span114[num4] = null; + num4++; + span114[num4] = null; + num4++; + span114[num4] = null; + num4++; + span114[num4] = null; + num4++; + span114[num4] = null; + num4++; + span114[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj82.CompletionQuestVariablesFlags = list114; - reference87 = obj82; - ref QuestStep reference88 = ref span55[4]; - QuestStep questStep8 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-321.1917f, 0.22361445f, 297.61597f), 152); - SkipConditions skipConditions12 = new SkipConditions(); - SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 6; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - Span span58 = CollectionsMarshal.AsSpan(list115); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - skipStepConditions10.CompletionQuestVariablesFlags = list115; - skipConditions12.StepIf = skipStepConditions10; - questStep8.SkipConditions = skipConditions12; - reference88 = questStep8; - ref QuestStep reference89 = ref span55[5]; - QuestStep obj83 = new QuestStep(EInteractionType.Action, 2000943u, new Vector3(-330.73932f, 9.262146f, 290.1808f), 152) + reference89 = obj82; + index2++; + ref QuestStep reference90 = ref span106[index2]; + QuestStep questStep10 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-301.42407f, 0.17268503f, 257.9185f), 152); + SkipConditions skipConditions13 = new SkipConditions(); + SkipStepConditions skipStepConditions11 = new SkipStepConditions(); + num4 = 6; + List list115 = new List(num4); + CollectionsMarshal.SetCount(list115, num4); + Span span115 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + skipStepConditions11.CompletionQuestVariablesFlags = list115; + skipConditions13.StepIf = skipStepConditions11; + questStep10.SkipConditions = skipConditions13; + reference90 = questStep10; + index2++; + ref QuestStep reference91 = ref span106[index2]; + QuestStep obj83 = new QuestStep(EInteractionType.Action, 2001179u, new Vector3(-297.29156f, 5.996765f, 250.96509f), 152) { StopDistance = 20f, Action = EAction.HeavyShot @@ -7229,140 +8831,43 @@ public static class AssemblyQuestLoader num3 = 6; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - Span span59 = CollectionsMarshal.AsSpan(list116); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span116 = CollectionsMarshal.AsSpan(list116); + num4 = 0; + span116[num4] = null; + num4++; + span116[num4] = null; + num4++; + span116[num4] = null; + num4++; + span116[num4] = null; + num4++; + span116[num4] = null; + num4++; + span116[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); obj83.CompletionQuestVariablesFlags = list116; - reference89 = obj83; - ref QuestStep reference90 = ref span55[6]; - QuestStep questStep9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-358.00266f, 6.9801626f, 306.18744f), 152); - SkipConditions skipConditions13 = new SkipConditions(); - SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - num3 = 6; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - Span span60 = CollectionsMarshal.AsSpan(list117); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - skipStepConditions11.CompletionQuestVariablesFlags = list117; - skipConditions13.StepIf = skipStepConditions11; - questStep9.SkipConditions = skipConditions13; - reference90 = questStep9; - ref QuestStep reference91 = ref span55[7]; - QuestStep obj84 = new QuestStep(EInteractionType.Action, 2000945u, new Vector3(-364.55334f, 14.480774f, 307.60657f), 152) + reference91 = obj83; + index2++; + span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.77237f, -3.2272563f, 240.00267f), 152); + index2++; + span106[index2] = new QuestStep(EInteractionType.Action, 2000946u, new Vector3(-269.00134f, 4.2266846f, 230.45691f), 152) { StopDistance = 20f, Action = EAction.HeavyShot }; - num3 = 6; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - Span span61 = CollectionsMarshal.AsSpan(list118); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - obj84.CompletionQuestVariablesFlags = list118; - reference91 = obj84; - ref QuestStep reference92 = ref span55[8]; - QuestStep questStep10 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-378.32364f, 6.10847f, 269.35767f), 152); - SkipConditions skipConditions14 = new SkipConditions(); - SkipStepConditions skipStepConditions12 = new SkipStepConditions(); - num3 = 6; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - Span span62 = CollectionsMarshal.AsSpan(list119); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - skipStepConditions12.CompletionQuestVariablesFlags = list119; - skipConditions14.StepIf = skipStepConditions12; - questStep10.SkipConditions = skipConditions14; - reference92 = questStep10; - ref QuestStep reference93 = ref span55[9]; - QuestStep obj85 = new QuestStep(EInteractionType.Action, 2000942u, new Vector3(-378.53058f, 9.048584f, 262.68408f), 152) - { - StopDistance = 20f, - Action = EAction.HeavyShot - }; - num3 = 6; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span63 = CollectionsMarshal.AsSpan(list120); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj85.CompletionQuestVariablesFlags = list120; - reference93 = obj85; - ref QuestStep reference94 = ref span55[10]; - QuestStep questStep11 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-301.42407f, 0.17268503f, 257.9185f), 152); - SkipConditions skipConditions15 = new SkipConditions(); - SkipStepConditions skipStepConditions13 = new SkipStepConditions(); - num3 = 6; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span64 = CollectionsMarshal.AsSpan(list121); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - skipStepConditions13.CompletionQuestVariablesFlags = list121; - skipConditions15.StepIf = skipStepConditions13; - questStep11.SkipConditions = skipConditions15; - reference94 = questStep11; - ref QuestStep reference95 = ref span55[11]; - QuestStep obj86 = new QuestStep(EInteractionType.Action, 2001179u, new Vector3(-297.29156f, 5.996765f, 250.96509f), 152) - { - StopDistance = 20f, - Action = EAction.HeavyShot - }; - num3 = 6; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - Span span65 = CollectionsMarshal.AsSpan(list122); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - obj86.CompletionQuestVariablesFlags = list122; - reference95 = obj86; - span55[12] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.77237f, -3.2272563f, 240.00267f), 152); - span55[13] = new QuestStep(EInteractionType.Action, 2000946u, new Vector3(-269.00134f, 4.2266846f, 230.45691f), 152) - { - StopDistance = 20f, - Action = EAction.HeavyShot - }; - obj80.Steps = list112; - reference85 = obj80; - ref QuestSequence reference96 = ref span54[3]; - QuestSequence obj87 = new QuestSequence + obj77.Steps = list106; + reference81 = obj77; + num++; + ref QuestSequence reference92 = ref span103[num]; + QuestSequence obj84 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1000204u, new Vector3(226.33704f, 1.9999089f, 29.06836f), 132) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.Interact, 1000204u, new Vector3(226.33704f, 1.9999089f, 29.06836f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -7371,17 +8876,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - obj87.Steps = list123; - reference96 = obj87; - ref QuestSequence reference97 = ref span54[4]; - QuestSequence obj88 = new QuestSequence + obj84.Steps = list117; + reference92 = obj84; + num++; + ref QuestSequence reference93 = ref span103[num]; + QuestSequence obj85 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000962u, new Vector3(288.56335f, -11.306946f, 52.384155f), 154) + List list118 = new List(num2); + CollectionsMarshal.SetCount(list118, num2); + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span118[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000962u, new Vector3(288.56335f, -11.306946f, 52.384155f), 154) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -7390,17 +8898,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaYellowSerpentGate } }; - obj88.Steps = list124; - reference97 = obj88; - ref QuestSequence reference98 = ref span54[5]; - QuestSequence obj89 = new QuestSequence + obj85.Steps = list118; + reference93 = obj85; + num++; + ref QuestSequence reference94 = ref span103[num]; + QuestSequence obj86 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1000204u, new Vector3(226.33704f, 1.9999089f, 29.06836f), 132) + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span119[num2] = new QuestStep(EInteractionType.Interact, 1000204u, new Vector3(226.33704f, 1.9999089f, 29.06836f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -7409,151 +8920,180 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - obj89.Steps = list125; - reference98 = obj89; - ref QuestSequence reference99 = ref span54[6]; - QuestSequence obj90 = new QuestSequence + obj86.Steps = list119; + reference94 = obj86; + num++; + ref QuestSequence reference95 = ref span103[num]; + QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { NextQuestId = new QuestId(70) }; - obj90.Steps = list126; - reference99 = obj90; - questRoot12.QuestSequence = list109; - AddQuest(questId12, questRoot12); - QuestId questId13 = new QuestId(69); - QuestRoot questRoot13 = new QuestRoot(); + obj87.Steps = list120; + reference95 = obj87; + questRoot11.QuestSequence = list103; + AddQuest(questId11, questRoot11); + QuestId questId12 = new QuestId(69); + QuestRoot questRoot12 = new QuestRoot(); num = 1; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - CollectionsMarshal.AsSpan(list127)[0] = "JerryWester"; - questRoot13.Author = list127; - num = 6; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - Span span66 = CollectionsMarshal.AsSpan(list128); - ref QuestSequence reference100 = ref span66[0]; - QuestSequence obj91 = new QuestSequence + List list121 = new List(num); + CollectionsMarshal.SetCount(list121, num); + Span span121 = CollectionsMarshal.AsSpan(list121); + index = 0; + span121[index] = "JerryWester"; + questRoot12.Author = list121; + index = 6; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + Span span122 = CollectionsMarshal.AsSpan(list122); + num = 0; + ref QuestSequence reference96 = ref span122[num]; + QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj91.Steps = list129; - reference100 = obj91; - ref QuestSequence reference101 = ref span66[1]; - QuestSequence obj92 = new QuestSequence + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span123[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + obj88.Steps = list123; + reference96 = obj88; + num++; + ref QuestSequence reference97 = ref span122[num]; + QuestSequence obj89 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span67 = CollectionsMarshal.AsSpan(list130); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.02658f, 259.97607f, -195.07794f), 155) + List list124 = new List(num2); + CollectionsMarshal.SetCount(list124, num2); + Span span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span124[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.02658f, 259.97607f, -195.07794f), 155) { Fly = true }; - span67[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.12082f, 265.1f, -206.61f), 155); - span67[2] = new QuestStep(EInteractionType.Interact, 2004652u, new Vector3(-440.6301f, 211f, -263.6248f), 155) + index2++; + span124[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.12082f, 265.1f, -206.61f), 155); + index2++; + span124[index2] = new QuestStep(EInteractionType.Interact, 2004652u, new Vector3(-440.6301f, 211f, -263.6248f), 155) { Fly = true }; - obj92.Steps = list130; - reference101 = obj92; - ref QuestSequence reference102 = ref span66[2]; - QuestSequence obj93 = new QuestSequence + obj89.Steps = list124; + reference97 = obj89; + num++; + ref QuestSequence reference98 = ref span122[num]; + QuestSequence obj90 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 2004653u, new Vector3(-451.89594f, 221.6372f, -149.27905f), 155) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span125[num2] = new QuestStep(EInteractionType.Interact, 2004653u, new Vector3(-451.89594f, 221.6372f, -149.27905f), 155) { Fly = true }; - obj93.Steps = list131; - reference102 = obj93; - ref QuestSequence reference103 = ref span66[3]; - QuestSequence obj94 = new QuestSequence + obj90.Steps = list125; + reference98 = obj90; + num++; + ref QuestSequence reference99 = ref span122[num]; + QuestSequence obj91 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 2004654u, new Vector3(-345.14386f, 254.4137f, -95.384155f), 155) + List list126 = new List(num2); + CollectionsMarshal.SetCount(list126, num2); + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span126[index2] = new QuestStep(EInteractionType.Interact, 2004654u, new Vector3(-345.14386f, 254.4137f, -95.384155f), 155) { Fly = true }; - obj94.Steps = list132; - reference103 = obj94; - ref QuestSequence reference104 = ref span66[4]; - QuestSequence obj95 = new QuestSequence + obj91.Steps = list126; + reference99 = obj91; + num++; + ref QuestSequence reference100 = ref span122[num]; + QuestSequence obj92 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - Span span68 = CollectionsMarshal.AsSpan(list133); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-340.60776f, 259.52878f, 58.521606f), 155) + index2 = 2; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-340.60776f, 259.52878f, 58.521606f), 155) { Fly = true }; - span68[1] = new QuestStep(EInteractionType.Interact, 2004655u, new Vector3(-386.1906f, 270.46606f, 77.62268f), 155) + num2++; + span127[num2] = new QuestStep(EInteractionType.Interact, 2004655u, new Vector3(-386.1906f, 270.46606f, 77.62268f), 155) { Fly = true }; - obj95.Steps = list133; - reference104 = obj95; - ref QuestSequence reference105 = ref span66[5]; - QuestSequence obj96 = new QuestSequence + obj92.Steps = list127; + reference100 = obj92; + num++; + ref QuestSequence reference101 = ref span122[num]; + QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - Span span69 = CollectionsMarshal.AsSpan(list134); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) + List list128 = new List(num2); + CollectionsMarshal.SetCount(list128, num2); + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span128[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) { Fly = true }; - span69[1] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj96.Steps = list134; - reference105 = obj96; - questRoot13.QuestSequence = list128; - AddQuest(questId13, questRoot13); - QuestId questId14 = new QuestId(70); - QuestRoot questRoot14 = new QuestRoot(); + index2++; + span128[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + obj93.Steps = list128; + reference101 = obj93; + questRoot12.QuestSequence = list122; + AddQuest(questId12, questRoot12); + QuestId questId13 = new QuestId(70); + QuestRoot questRoot13 = new QuestRoot(); num = 1; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "pot0to"; - questRoot14.Author = list135; - num = 7; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span70 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference106 = ref span70[0]; - QuestSequence obj97 = new QuestSequence + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + Span span129 = CollectionsMarshal.AsSpan(list129); + index = 0; + span129[index] = "pot0to"; + questRoot13.Author = list129; + index = 7; + List list130 = new List(index); + CollectionsMarshal.SetCount(list130, index); + Span span130 = CollectionsMarshal.AsSpan(list130); + num = 0; + ref QuestSequence reference102 = ref span130[num]; + QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span131[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -7570,18 +9110,20 @@ public static class AssemblyQuestLoader } } }; - obj97.Steps = list137; - reference106 = obj97; - ref QuestSequence reference107 = ref span70[1]; - QuestSequence obj98 = new QuestSequence + obj94.Steps = list131; + reference102 = obj94; + num++; + ref QuestSequence reference103 = ref span130[num]; + QuestSequence obj95 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - Span span71 = CollectionsMarshal.AsSpan(list138); - span71[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) + List list132 = new List(num2); + CollectionsMarshal.SetCount(list132, num2); + Span span132 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span132[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -7593,125 +9135,162 @@ public static class AssemblyQuestLoader } } }; - span71[1] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); - obj98.Steps = list138; - reference107 = obj98; - ref QuestSequence reference108 = ref span70[2]; - QuestSequence obj99 = new QuestSequence + index2++; + span132[index2] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + obj95.Steps = list132; + reference103 = obj95; + num++; + ref QuestSequence reference104 = ref span130[num]; + QuestSequence obj96 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - Span span72 = CollectionsMarshal.AsSpan(list139); - ref QuestStep reference109 = ref span72[0]; - QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2000949u, new Vector3(-258.9914f, 10.330261f, -46.00598f), 153); + index2 = 3; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + ref QuestStep reference105 = ref span133[num2]; + QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2000949u, new Vector3(-258.9914f, 10.330261f, -46.00598f), 153); + num4 = 6; + List list134 = new List(num4); + CollectionsMarshal.SetCount(list134, num4); + Span span134 = CollectionsMarshal.AsSpan(list134); + num3 = 0; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep11.CompletionQuestVariablesFlags = list134; + reference105 = questStep11; + num2++; + ref QuestStep reference106 = ref span133[num2]; + QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2000948u, new Vector3(-270.00848f, 15.487854f, -91.17267f), 153); num3 = 6; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - Span span73 = CollectionsMarshal.AsSpan(list140); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep12.CompletionQuestVariablesFlags = list140; - reference109 = questStep12; - ref QuestStep reference110 = ref span72[1]; - QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2000948u, new Vector3(-270.00848f, 15.487854f, -91.17267f), 153); - num3 = 6; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - Span span74 = CollectionsMarshal.AsSpan(list141); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep13.CompletionQuestVariablesFlags = list141; - reference110 = questStep13; - ref QuestStep reference111 = ref span72[2]; - QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2000947u, new Vector3(-318.07434f, 18.936401f, -165.11792f), 153); - num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span75 = CollectionsMarshal.AsSpan(list142); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep14.CompletionQuestVariablesFlags = list142; - reference111 = questStep14; - obj99.Steps = list139; - reference108 = obj99; - ref QuestSequence reference112 = ref span70[3]; - QuestSequence obj100 = new QuestSequence + List list135 = new List(num3); + CollectionsMarshal.SetCount(list135, num3); + Span span135 = CollectionsMarshal.AsSpan(list135); + num4 = 0; + span135[num4] = null; + num4++; + span135[num4] = null; + num4++; + span135[num4] = null; + num4++; + span135[num4] = null; + num4++; + span135[num4] = null; + num4++; + span135[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep12.CompletionQuestVariablesFlags = list135; + reference106 = questStep12; + num2++; + ref QuestStep reference107 = ref span133[num2]; + QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2000947u, new Vector3(-318.07434f, 18.936401f, -165.11792f), 153); + num4 = 6; + List list136 = new List(num4); + CollectionsMarshal.SetCount(list136, num4); + Span span136 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep13.CompletionQuestVariablesFlags = list136; + reference107 = questStep13; + obj96.Steps = list133; + reference104 = obj96; + num++; + ref QuestSequence reference108 = ref span130[num]; + QuestSequence obj97 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list143)[0]; - QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2001105u, new Vector3(-173.02203f, 9.872559f, -78.690796f), 153); + List list137 = new List(num2); + CollectionsMarshal.SetCount(list137, num2); + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + ref QuestStep reference109 = ref span137[index2]; + QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2001105u, new Vector3(-173.02203f, 9.872559f, -78.690796f), 153); num3 = 2; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - Span span76 = CollectionsMarshal.AsSpan(list144); - span76[0] = new DialogueChoice + List list138 = new List(num3); + CollectionsMarshal.SetCount(list138, num3); + Span span138 = CollectionsMarshal.AsSpan(list138); + num4 = 0; + span138[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSARC004_00070_Q1_000_1"), Answer = new ExcelRef("TEXT_CLSARC004_00070_A1_000_1") }; - span76[1] = new DialogueChoice + num4++; + span138[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSARC004_00070_Q2_000_1"), Answer = new ExcelRef("TEXT_CLSARC004_00070_A2_000_3") }; - questStep15.DialogueChoices = list144; - reference113 = questStep15; - obj100.Steps = list143; - reference112 = obj100; - ref QuestSequence reference114 = ref span70[4]; - QuestSequence obj101 = new QuestSequence + questStep14.DialogueChoices = list138; + reference109 = questStep14; + obj97.Steps = list137; + reference108 = obj97; + num++; + ref QuestSequence reference110 = ref span130[num]; + QuestSequence obj98 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - Span span77 = CollectionsMarshal.AsSpan(list145); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-192.12004f, 8.180927f, -65.00513f), 153); - span77[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000136u, new Vector3(-295.85718f, 23.575134f, -192.34003f), 153); - obj101.Steps = list145; - reference114 = obj101; - ref QuestSequence reference115 = ref span70[5]; - QuestSequence obj102 = new QuestSequence + index2 = 2; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + Span span139 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span139[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-192.12004f, 8.180927f, -65.00513f), 153); + num2++; + span139[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000136u, new Vector3(-295.85718f, 23.575134f, -192.34003f), 153); + obj98.Steps = list139; + reference110 = obj98; + num++; + ref QuestSequence reference111 = ref span130[num]; + QuestSequence obj99 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); - obj102.Steps = list146; - reference115 = obj102; - ref QuestSequence reference116 = ref span70[6]; - QuestSequence obj103 = new QuestSequence + List list140 = new List(num2); + CollectionsMarshal.SetCount(list140, num2); + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + obj99.Steps = list140; + reference111 = obj99; + num++; + ref QuestSequence reference112 = ref span130[num]; + QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span141[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -7722,29 +9301,35 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(71) }; - obj103.Steps = list147; - reference116 = obj103; - questRoot14.QuestSequence = list136; - AddQuest(questId14, questRoot14); - AlliedSocietyDailyId questId15 = new AlliedSocietyDailyId(7, 0); - QuestRoot questRoot15 = new QuestRoot(); + obj100.Steps = list141; + reference112 = obj100; + questRoot13.QuestSequence = list130; + AddQuest(questId13, questRoot13); + AlliedSocietyDailyId questId14 = new AlliedSocietyDailyId(7, 0); + QuestRoot questRoot14 = new QuestRoot(); num = 1; - List list148 = new List(num); - CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "liza"; - questRoot15.Author = list148; - num = 1; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - ref QuestSequence reference117 = ref CollectionsMarshal.AsSpan(list149)[0]; - QuestSequence obj104 = new QuestSequence + List list142 = new List(num); + CollectionsMarshal.SetCount(list142, num); + Span span142 = CollectionsMarshal.AsSpan(list142); + index = 0; + span142[index] = "liza"; + questRoot14.Author = list142; + index = 1; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + Span span143 = CollectionsMarshal.AsSpan(list143); + num = 0; + ref QuestSequence reference113 = ref span143[num]; + QuestSequence obj101 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + List list144 = new List(num2); + CollectionsMarshal.SetCount(list144, num2); + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span144[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -7756,30 +9341,35 @@ public static class AssemblyQuestLoader } } }; - obj104.Steps = list150; - reference117 = obj104; - questRoot15.QuestSequence = list149; - AddQuest(questId15, questRoot15); - QuestId questId16 = new QuestId(71); - QuestRoot questRoot16 = new QuestRoot(); + obj101.Steps = list144; + reference113 = obj101; + questRoot14.QuestSequence = list143; + AddQuest(questId14, questRoot14); + QuestId questId15 = new QuestId(71); + QuestRoot questRoot15 = new QuestRoot(); num = 1; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "pot0to"; - questRoot16.Author = list151; - num = 6; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span78 = CollectionsMarshal.AsSpan(list152); - ref QuestSequence reference118 = ref span78[0]; - QuestSequence obj105 = new QuestSequence + List list145 = new List(num); + CollectionsMarshal.SetCount(list145, num); + Span span145 = CollectionsMarshal.AsSpan(list145); + index = 0; + span145[index] = "pot0to"; + questRoot15.Author = list145; + index = 6; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + Span span146 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference114 = ref span146[num]; + QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -7796,67 +9386,80 @@ public static class AssemblyQuestLoader } } }; - obj105.Steps = list153; - reference118 = obj105; - ref QuestSequence reference119 = ref span78[1]; - QuestSequence obj106 = new QuestSequence + obj102.Steps = list147; + reference114 = obj102; + num++; + ref QuestSequence reference115 = ref span146[num]; + QuestSequence obj103 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1000204u, new Vector3(226.33704f, 1.9999089f, 29.06836f), 132); - obj106.Steps = list154; - reference119 = obj106; - ref QuestSequence reference120 = ref span78[2]; - QuestSequence obj107 = new QuestSequence + List list148 = new List(num2); + CollectionsMarshal.SetCount(list148, num2); + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span148[index2] = new QuestStep(EInteractionType.Interact, 1000204u, new Vector3(226.33704f, 1.9999089f, 29.06836f), 132); + obj103.Steps = list148; + reference115 = obj103; + num++; + ref QuestSequence reference116 = ref span146[num]; + QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032133E-05f, 28.580078f), 132); - obj107.Steps = list155; - reference120 = obj107; - ref QuestSequence reference121 = ref span78[3]; - QuestSequence obj108 = new QuestSequence + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032133E-05f, 28.580078f), 132); + obj104.Steps = list149; + reference116 = obj104; + num++; + ref QuestSequence reference117 = ref span146[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - ref QuestStep reference122 = ref CollectionsMarshal.AsSpan(list156)[0]; - QuestStep obj109 = new QuestStep(EInteractionType.Interact, 2000951u, new Vector3(-1.8158569f, 6.9122925f, -93.0343f), 153) + List list150 = new List(num2); + CollectionsMarshal.SetCount(list150, num2); + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + ref QuestStep reference118 = ref span150[index2]; + QuestStep obj106 = new QuestStep(EInteractionType.Interact, 2000951u, new Vector3(-1.8158569f, 6.9122925f, -93.0343f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - num3 = 1; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = new DialogueChoice + num4 = 1; + List list151 = new List(num4); + CollectionsMarshal.SetCount(list151, num4); + Span span151 = CollectionsMarshal.AsSpan(list151); + num3 = 0; + span151[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSARC005_00071_Q1_000_1"), Answer = new ExcelRef("TEXT_CLSARC005_00071_A1_000_1") }; - obj109.DialogueChoices = list157; - reference122 = obj109; - obj108.Steps = list156; - reference121 = obj108; - ref QuestSequence reference123 = ref span78[4]; - QuestSequence obj110 = new QuestSequence + obj106.DialogueChoices = list151; + reference118 = obj106; + obj105.Steps = list150; + reference117 = obj105; + num++; + ref QuestSequence reference119 = ref span146[num]; + QuestSequence obj107 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - Span span79 = CollectionsMarshal.AsSpan(list158); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(60.130726f, -5.9999475f, 63.516415f), 148) + index2 = 2; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(60.130726f, -5.9999475f, 63.516415f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, SkipConditions = new SkipConditions @@ -7867,21 +9470,25 @@ public static class AssemblyQuestLoader } } }; - span79[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000534u, new Vector3(134.47766f, -7f, -69.993164f), 148) + num2++; + span152[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000534u, new Vector3(134.47766f, -7f, -69.993164f), 148) { Fly = true }; - obj110.Steps = list158; - reference123 = obj110; - ref QuestSequence reference124 = ref span78[5]; - QuestSequence obj111 = new QuestSequence + obj107.Steps = list152; + reference119 = obj107; + num++; + ref QuestSequence reference120 = ref span146[num]; + QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + List list153 = new List(num2); + CollectionsMarshal.SetCount(list153, num2); + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -7892,182 +9499,222 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(76) }; - obj111.Steps = list159; - reference124 = obj111; - questRoot16.QuestSequence = list152; - AddQuest(questId16, questRoot16); - QuestId questId17 = new QuestId(74); - QuestRoot questRoot17 = new QuestRoot(); + obj108.Steps = list153; + reference120 = obj108; + questRoot15.QuestSequence = list146; + AddQuest(questId15, questRoot15); + QuestId questId16 = new QuestId(74); + QuestRoot questRoot16 = new QuestRoot(); num = 1; - List list160 = new List(num); - CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "JerryWester"; - questRoot17.Author = list160; - num = 4; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span80 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference125 = ref span80[0]; - QuestSequence obj112 = new QuestSequence + List list154 = new List(num); + CollectionsMarshal.SetCount(list154, num); + Span span154 = CollectionsMarshal.AsSpan(list154); + index = 0; + span154[index] = "JerryWester"; + questRoot16.Author = list154; + index = 4; + List list155 = new List(index); + CollectionsMarshal.SetCount(list155, index); + Span span155 = CollectionsMarshal.AsSpan(list155); + num = 0; + ref QuestSequence reference121 = ref span155[num]; + QuestSequence obj109 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj112.Steps = list162; - reference125 = obj112; - ref QuestSequence reference126 = ref span80[1]; - QuestSequence obj113 = new QuestSequence + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + obj109.Steps = list156; + reference121 = obj109; + num++; + ref QuestSequence reference122 = ref span155[num]; + QuestSequence obj110 = new QuestSequence { Sequence = 1 }; num2 = 5; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - Span span81 = CollectionsMarshal.AsSpan(list163); - span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.02658f, 259.97607f, -195.07794f), 155) + List list157 = new List(num2); + CollectionsMarshal.SetCount(list157, num2); + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.02658f, 259.97607f, -195.07794f), 155) { Fly = true }; - span81[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.12082f, 265.1f, -206.61f), 155); - span81[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.32645f, 262.82175f, 64.73429f), 155) + index2++; + span157[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.12082f, 265.1f, -206.61f), 155); + index2++; + span157[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.32645f, 262.82175f, 64.73429f), 155) { Fly = true }; - span81[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-480.23077f, 296.2006f, 146.4662f), 155) + index2++; + span157[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-480.23077f, 296.2006f, 146.4662f), 155) { Fly = true }; - ref QuestStep reference127 = ref span81[4]; - QuestStep obj114 = new QuestStep(EInteractionType.Combat, null, new Vector3(-383.5987f, 231.30257f, 306.35776f), 155) + index2++; + ref QuestStep reference123 = ref span157[index2]; + QuestStep obj111 = new QuestStep(EInteractionType.Combat, null, new Vector3(-383.5987f, 231.30257f, 306.35776f), 155) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 3; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - Span span82 = CollectionsMarshal.AsSpan(list164); - span82[0] = 724u; - span82[1] = 725u; - span82[2] = 726u; - obj114.KillEnemyDataIds = list164; - reference127 = obj114; - obj113.Steps = list163; - reference126 = obj113; - ref QuestSequence reference128 = ref span80[2]; - QuestSequence obj115 = new QuestSequence + List list158 = new List(num3); + CollectionsMarshal.SetCount(list158, num3); + Span span158 = CollectionsMarshal.AsSpan(list158); + num4 = 0; + span158[num4] = 724u; + num4++; + span158[num4] = 725u; + num4++; + span158[num4] = 726u; + obj111.KillEnemyDataIds = list158; + reference123 = obj111; + obj110.Steps = list157; + reference122 = obj110; + num++; + ref QuestSequence reference124 = ref span155[num]; + QuestSequence obj112 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 2005002u, new Vector3(-381.7655f, 230.82312f, 303.57812f), 155); - obj115.Steps = list165; - reference128 = obj115; - ref QuestSequence reference129 = ref span80[3]; - QuestSequence obj116 = new QuestSequence + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.Interact, 2005002u, new Vector3(-381.7655f, 230.82312f, 303.57812f), 155); + obj112.Steps = list159; + reference124 = obj112; + num++; + ref QuestSequence reference125 = ref span155[num]; + QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 4; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span83 = CollectionsMarshal.AsSpan(list166); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-480.23077f, 296.2006f, 146.4662f), 155) + List list160 = new List(num2); + CollectionsMarshal.SetCount(list160, num2); + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-480.23077f, 296.2006f, 146.4662f), 155) { Fly = true }; - span83[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.32645f, 262.82175f, 64.73429f), 155) + index2++; + span160[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.32645f, 262.82175f, 64.73429f), 155) { Fly = true }; - span83[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) + index2++; + span160[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) { Fly = true }; - span83[3] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj116.Steps = list166; - reference129 = obj116; - questRoot17.QuestSequence = list161; - AddQuest(questId17, questRoot17); - QuestId questId18 = new QuestId(75); - QuestRoot questRoot18 = new QuestRoot(); + index2++; + span160[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + obj113.Steps = list160; + reference125 = obj113; + questRoot16.QuestSequence = list155; + AddQuest(questId16, questRoot16); + QuestId questId17 = new QuestId(75); + QuestRoot questRoot17 = new QuestRoot(); num = 1; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "JerryWester"; - questRoot18.Author = list167; - num = 7; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span84 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference130 = ref span84[0]; - QuestSequence obj117 = new QuestSequence + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + Span span161 = CollectionsMarshal.AsSpan(list161); + index = 0; + span161[index] = "JerryWester"; + questRoot17.Author = list161; + index = 7; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + Span span162 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference126 = ref span162[num]; + QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj117.Steps = list169; - reference130 = obj117; - ref QuestSequence reference131 = ref span84[1]; - QuestSequence obj118 = new QuestSequence + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span163[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + obj114.Steps = list163; + reference126 = obj114; + num++; + ref QuestSequence reference127 = ref span162[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - Span span85 = CollectionsMarshal.AsSpan(list170); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.02658f, 259.97607f, -195.07794f), 155) + List list164 = new List(num2); + CollectionsMarshal.SetCount(list164, num2); + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span164[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.02658f, 259.97607f, -195.07794f), 155) { Fly = true }; - span85[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.12082f, 265.1f, -206.61f), 155); - span85[2] = new QuestStep(EInteractionType.Interact, 1010001u, new Vector3(-915.2514f, 229.35544f, -3.1586914f), 155) + index2++; + span164[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.12082f, 265.1f, -206.61f), 155); + index2++; + span164[index2] = new QuestStep(EInteractionType.Interact, 1010001u, new Vector3(-915.2514f, 229.35544f, -3.1586914f), 155) { Fly = true }; - obj118.Steps = list170; - reference131 = obj118; - ref QuestSequence reference132 = ref span84[2]; - QuestSequence obj119 = new QuestSequence + obj115.Steps = list164; + reference127 = obj115; + num++; + ref QuestSequence reference128 = ref span162[num]; + QuestSequence obj116 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1009996u, new Vector3(-902.61694f, 229.25244f, -9.689575f), 155); - obj119.Steps = list171; - reference132 = obj119; - ref QuestSequence reference133 = ref span84[3]; - QuestSequence obj120 = new QuestSequence + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span165[num2] = new QuestStep(EInteractionType.Interact, 1009996u, new Vector3(-902.61694f, 229.25244f, -9.689575f), 155); + obj116.Steps = list165; + reference128 = obj116; + num++; + ref QuestSequence reference129 = ref span162[num]; + QuestSequence obj117 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1010054u, new Vector3(-916.6552f, 229.3692f, -6.4240723f), 155); - obj120.Steps = list172; - reference133 = obj120; - ref QuestSequence reference134 = ref span84[4]; - QuestSequence obj121 = new QuestSequence + List list166 = new List(num2); + CollectionsMarshal.SetCount(list166, num2); + Span span166 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span166[index2] = new QuestStep(EInteractionType.Interact, 1010054u, new Vector3(-916.6552f, 229.3692f, -6.4240723f), 155); + obj117.Steps = list166; + reference129 = obj117; + num++; + ref QuestSequence reference130 = ref span162[num]; + QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -8075,45 +9722,54 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 27u } }; - obj121.Steps = list173; - reference134 = obj121; - span84[5] = new QuestSequence + obj118.Steps = list167; + reference130 = obj118; + num++; + span162[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference135 = ref span84[6]; - QuestSequence obj122 = new QuestSequence + num++; + ref QuestSequence reference131 = ref span162[num]; + QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009996u, new Vector3(-902.61694f, 229.25244f, -9.689575f), 155); - obj122.Steps = list174; - reference135 = obj122; - questRoot18.QuestSequence = list168; - AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(76); - QuestRoot questRoot19 = new QuestRoot(); + List list168 = new List(num2); + CollectionsMarshal.SetCount(list168, num2); + Span span168 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span168[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009996u, new Vector3(-902.61694f, 229.25244f, -9.689575f), 155); + obj119.Steps = list168; + reference131 = obj119; + questRoot17.QuestSequence = list162; + AddQuest(questId17, questRoot17); + QuestId questId18 = new QuestId(76); + QuestRoot questRoot18 = new QuestRoot(); num = 1; - List list175 = new List(num); - CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "pot0to"; - questRoot19.Author = list175; - num = 4; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span86 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference136 = ref span86[0]; - QuestSequence obj123 = new QuestSequence + List list169 = new List(num); + CollectionsMarshal.SetCount(list169, num); + Span span169 = CollectionsMarshal.AsSpan(list169); + index = 0; + span169[index] = "pot0to"; + questRoot18.Author = list169; + index = 4; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + Span span170 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference132 = ref span170[num]; + QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + Span span171 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span171[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -8130,32 +9786,38 @@ public static class AssemblyQuestLoader } } }; - obj123.Steps = list177; - reference136 = obj123; - ref QuestSequence reference137 = ref span86[1]; - QuestSequence obj124 = new QuestSequence + obj120.Steps = list171; + reference132 = obj120; + num++; + ref QuestSequence reference133 = ref span170[num]; + QuestSequence obj121 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000795u, new Vector3(278.61438f, 8.346143f, -38.223938f), 153) + List list172 = new List(num2); + CollectionsMarshal.SetCount(list172, num2); + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000795u, new Vector3(278.61438f, 8.346143f, -38.223938f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - obj124.Steps = list178; - reference137 = obj124; - ref QuestSequence reference138 = ref span86[2]; - QuestSequence obj125 = new QuestSequence + obj121.Steps = list172; + reference133 = obj121; + num++; + ref QuestSequence reference134 = ref span170[num]; + QuestSequence obj122 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000709u, new Vector3(-90.74542f, 0.015197754f, 61.08191f), 153) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000709u, new Vector3(-90.74542f, 0.015197754f, 61.08191f), 153) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -8163,17 +9825,20 @@ public static class AssemblyQuestLoader Index = 1 } }; - obj125.Steps = list179; - reference138 = obj125; - ref QuestSequence reference139 = ref span86[3]; - QuestSequence obj126 = new QuestSequence + obj122.Steps = list173; + reference134 = obj122; + num++; + ref QuestSequence reference135 = ref span170[num]; + QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + List list174 = new List(num2); + CollectionsMarshal.SetCount(list174, num2); + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -8184,199 +9849,242 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(1085) }; - obj126.Steps = list180; - reference139 = obj126; - questRoot19.QuestSequence = list176; - AddQuest(questId19, questRoot19); - QuestId questId20 = new QuestId(77); - QuestRoot questRoot20 = new QuestRoot(); + obj123.Steps = list174; + reference135 = obj123; + questRoot18.QuestSequence = list170; + AddQuest(questId18, questRoot18); + QuestId questId19 = new QuestId(77); + QuestRoot questRoot19 = new QuestRoot(); num = 1; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "JerryWester"; - questRoot20.Author = list181; - num = 9; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - Span span87 = CollectionsMarshal.AsSpan(list182); - ref QuestSequence reference140 = ref span87[0]; - QuestSequence obj127 = new QuestSequence + List list175 = new List(num); + CollectionsMarshal.SetCount(list175, num); + Span span175 = CollectionsMarshal.AsSpan(list175); + index = 0; + span175[index] = "JerryWester"; + questRoot19.Author = list175; + index = 9; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + Span span176 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference136 = ref span176[num]; + QuestSequence obj124 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009996u, new Vector3(-902.61694f, 229.25244f, -9.689575f), 155); - obj127.Steps = list183; - reference140 = obj127; - ref QuestSequence reference141 = ref span87[1]; - QuestSequence obj128 = new QuestSequence + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009996u, new Vector3(-902.61694f, 229.25244f, -9.689575f), 155); + obj124.Steps = list177; + reference136 = obj124; + num++; + ref QuestSequence reference137 = ref span176[num]; + QuestSequence obj125 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1009997u, new Vector3(-897.1847f, 230.48358f, -17.502136f), 155); - obj128.Steps = list184; - reference141 = obj128; - ref QuestSequence reference142 = ref span87[2]; - QuestSequence obj129 = new QuestSequence + List list178 = new List(num2); + CollectionsMarshal.SetCount(list178, num2); + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.Interact, 1009997u, new Vector3(-897.1847f, 230.48358f, -17.502136f), 155); + obj125.Steps = list178; + reference137 = obj125; + num++; + ref QuestSequence reference138 = ref span176[num]; + QuestSequence obj126 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1010148u, new Vector3(-427.1153f, 235.91968f, -119.76807f), 155) + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.Interact, 1010148u, new Vector3(-427.1153f, 235.91968f, -119.76807f), 155) { Fly = true }; - obj129.Steps = list185; - reference142 = obj129; - ref QuestSequence reference143 = ref span87[3]; - QuestSequence obj130 = new QuestSequence + obj126.Steps = list179; + reference138 = obj126; + num++; + ref QuestSequence reference139 = ref span176[num]; + QuestSequence obj127 = new QuestSequence { Sequence = 3 }; num2 = 3; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - Span span88 = CollectionsMarshal.AsSpan(list186); - span88[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.32645f, 262.82175f, 64.73429f), 155) + List list180 = new List(num2); + CollectionsMarshal.SetCount(list180, num2); + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span180[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.32645f, 262.82175f, 64.73429f), 155) { Fly = true }; - span88[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-480.23077f, 296.2006f, 146.4662f), 155) + index2++; + span180[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-480.23077f, 296.2006f, 146.4662f), 155) { Fly = true }; - span88[2] = new QuestStep(EInteractionType.Interact, 2004657u, new Vector3(-395.31555f, 239.61243f, 343.83154f), 155) + index2++; + span180[index2] = new QuestStep(EInteractionType.Interact, 2004657u, new Vector3(-395.31555f, 239.61243f, 343.83154f), 155) { Fly = true }; - obj130.Steps = list186; - reference143 = obj130; - ref QuestSequence reference144 = ref span87[4]; - QuestSequence obj131 = new QuestSequence + obj127.Steps = list180; + reference139 = obj127; + num++; + ref QuestSequence reference140 = ref span176[num]; + QuestSequence obj128 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1010149u, new Vector3(-302.05237f, 233.08154f, 406.05774f), 155) + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span181[num2] = new QuestStep(EInteractionType.Interact, 1010149u, new Vector3(-302.05237f, 233.08154f, 406.05774f), 155) { Fly = true }; - obj131.Steps = list187; - reference144 = obj131; - ref QuestSequence reference145 = ref span87[5]; - QuestSequence obj132 = new QuestSequence + obj128.Steps = list181; + reference140 = obj128; + num++; + ref QuestSequence reference141 = ref span176[num]; + QuestSequence obj129 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - ref QuestStep reference146 = ref CollectionsMarshal.AsSpan(list188)[0]; - QuestStep obj133 = new QuestStep(EInteractionType.Combat, null, new Vector3(-192.44443f, 221.34477f, 438.09082f), 155) + List list182 = new List(num2); + CollectionsMarshal.SetCount(list182, num2); + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + ref QuestStep reference142 = ref span182[index2]; + QuestStep obj130 = new QuestStep(EInteractionType.Combat, null, new Vector3(-192.44443f, 221.34477f, 438.09082f), 155) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - Span span89 = CollectionsMarshal.AsSpan(list189); - span89[0] = 726u; - span89[1] = 3122u; - obj133.KillEnemyDataIds = list189; - reference146 = obj133; - obj132.Steps = list188; - reference145 = obj132; - ref QuestSequence reference147 = ref span87[6]; - QuestSequence obj134 = new QuestSequence + num4 = 2; + List list183 = new List(num4); + CollectionsMarshal.SetCount(list183, num4); + Span span183 = CollectionsMarshal.AsSpan(list183); + num3 = 0; + span183[num3] = 726u; + num3++; + span183[num3] = 3122u; + obj130.KillEnemyDataIds = list183; + reference142 = obj130; + obj129.Steps = list182; + reference141 = obj129; + num++; + ref QuestSequence reference143 = ref span176[num]; + QuestSequence obj131 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1010150u, new Vector3(-190.11218f, 221.13583f, 438.83423f), 155); - obj134.Steps = list190; - reference147 = obj134; - ref QuestSequence reference148 = ref span87[7]; - QuestSequence obj135 = new QuestSequence + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span184[num2] = new QuestStep(EInteractionType.Interact, 1010150u, new Vector3(-190.11218f, 221.13583f, 438.83423f), 155); + obj131.Steps = list184; + reference143 = obj131; + num++; + ref QuestSequence reference144 = ref span176[num]; + QuestSequence obj132 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1010151u, new Vector3(158.73962f, 222.43689f, 302.96777f), 155) + List list185 = new List(num2); + CollectionsMarshal.SetCount(list185, num2); + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.Interact, 1010151u, new Vector3(158.73962f, 222.43689f, 302.96777f), 155) { Fly = true }; - obj135.Steps = list191; - reference148 = obj135; - ref QuestSequence reference149 = ref span87[8]; - QuestSequence obj136 = new QuestSequence + obj132.Steps = list185; + reference144 = obj132; + num++; + ref QuestSequence reference145 = ref span176[num]; + QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010191u, new Vector3(229.44983f, 222f, 347.31055f), 155); - obj136.Steps = list192; - reference149 = obj136; - questRoot20.QuestSequence = list182; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(78); - QuestRoot questRoot21 = new QuestRoot(); + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span186[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010191u, new Vector3(229.44983f, 222f, 347.31055f), 155); + obj133.Steps = list186; + reference145 = obj133; + questRoot19.QuestSequence = list176; + AddQuest(questId19, questRoot19); + QuestId questId20 = new QuestId(78); + QuestRoot questRoot20 = new QuestRoot(); num = 1; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "JerryWester"; - questRoot21.Author = list193; - num = 6; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span90 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference150 = ref span90[0]; - QuestSequence obj137 = new QuestSequence + List list187 = new List(num); + CollectionsMarshal.SetCount(list187, num); + Span span187 = CollectionsMarshal.AsSpan(list187); + index = 0; + span187[index] = "JerryWester"; + questRoot20.Author = list187; + index = 6; + List list188 = new List(index); + CollectionsMarshal.SetCount(list188, index); + Span span188 = CollectionsMarshal.AsSpan(list188); + num = 0; + ref QuestSequence reference146 = ref span188[num]; + QuestSequence obj134 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010191u, new Vector3(229.44983f, 222f, 347.31055f), 155); - obj137.Steps = list195; - reference150 = obj137; - ref QuestSequence reference151 = ref span90[1]; - QuestSequence obj138 = new QuestSequence + List list189 = new List(num2); + CollectionsMarshal.SetCount(list189, num2); + Span span189 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span189[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010191u, new Vector3(229.44983f, 222f, 347.31055f), 155); + obj134.Steps = list189; + reference146 = obj134; + num++; + ref QuestSequence reference147 = ref span188[num]; + QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1010191u, new Vector3(229.44983f, 222f, 347.31055f), 155); - obj138.Steps = list196; - reference151 = obj138; - ref QuestSequence reference152 = ref span90[2]; - QuestSequence obj139 = new QuestSequence + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span190[num2] = new QuestStep(EInteractionType.Interact, 1010191u, new Vector3(229.44983f, 222f, 347.31055f), 155); + obj135.Steps = list190; + reference147 = obj135; + num++; + ref QuestSequence reference148 = ref span188[num]; + QuestSequence obj136 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1009130u, new Vector3(-157.00012f, 4f, -20.187744f), 133) + List list191 = new List(num2); + CollectionsMarshal.SetCount(list191, num2); + Span span191 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span191[index2] = new QuestStep(EInteractionType.Interact, 1009130u, new Vector3(-157.00012f, 4f, -20.187744f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -8385,336 +10093,411 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - obj139.Steps = list197; - reference152 = obj139; - ref QuestSequence reference153 = ref span90[3]; - QuestSequence obj140 = new QuestSequence + obj136.Steps = list191; + reference148 = obj136; + num++; + ref QuestSequence reference149 = ref span188[num]; + QuestSequence obj137 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - ref QuestStep reference154 = ref CollectionsMarshal.AsSpan(list198)[0]; - QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + ref QuestStep reference150 = ref span192[num2]; + QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); num3 = 1; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - CollectionsMarshal.AsSpan(list199)[0] = new DialogueChoice + List list193 = new List(num3); + CollectionsMarshal.SetCount(list193, num3); + Span span193 = CollectionsMarshal.AsSpan(list193); + num4 = 0; + span193[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE410_00078_Q1_000_1") }; - questStep16.DialogueChoices = list199; - reference154 = questStep16; - obj140.Steps = list198; - reference153 = obj140; - ref QuestSequence reference155 = ref span90[4]; - QuestSequence obj141 = new QuestSequence + questStep15.DialogueChoices = list193; + reference150 = questStep15; + obj137.Steps = list192; + reference149 = obj137; + num++; + ref QuestSequence reference151 = ref span188[num]; + QuestSequence obj138 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1009130u, new Vector3(-157.00012f, 4f, -20.187744f), 133); - obj141.Steps = list200; - reference155 = obj141; - ref QuestSequence reference156 = ref span90[5]; - QuestSequence obj142 = new QuestSequence + List list194 = new List(num2); + CollectionsMarshal.SetCount(list194, num2); + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = new QuestStep(EInteractionType.Interact, 1009130u, new Vector3(-157.00012f, 4f, -20.187744f), 133); + obj138.Steps = list194; + reference151 = obj138; + num++; + ref QuestSequence reference152 = ref span188[num]; + QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - Span span91 = CollectionsMarshal.AsSpan(list201); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-127.33281f, 5.385648f, -34.441406f), 133) + index2 = 2; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-127.33281f, 5.385648f, -34.441406f), 133) { TargetTerritoryId = (ushort)132 }; - span91[1] = new QuestStep(EInteractionType.CompleteQuest, 1010010u, new Vector3(-50.94995f, -3.440948f, 20.58435f), 132); - obj142.Steps = list201; - reference156 = obj142; - questRoot21.QuestSequence = list194; + num2++; + span195[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010010u, new Vector3(-50.94995f, -3.440948f, 20.58435f), 132); + obj139.Steps = list195; + reference152 = obj139; + questRoot20.QuestSequence = list188; + AddQuest(questId20, questRoot20); + QuestId questId21 = new QuestId(82); + QuestRoot questRoot21 = new QuestRoot(); + num = 1; + List list196 = new List(num); + CollectionsMarshal.SetCount(list196, num); + Span span196 = CollectionsMarshal.AsSpan(list196); + index = 0; + span196[index] = "JerryWester"; + questRoot21.Author = list196; + index = 4; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + Span span197 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference153 = ref span197[num]; + QuestSequence obj140 = new QuestSequence + { + Sequence = 0 + }; + num2 = 1; + List list198 = new List(num2); + CollectionsMarshal.SetCount(list198, num2); + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span198[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010147u, new Vector3(0.8086548f, -1.9957249f, -45.67035f), 351); + obj140.Steps = list198; + reference153 = obj140; + num++; + ref QuestSequence reference154 = ref span197[num]; + QuestSequence obj141 = new QuestSequence + { + Sequence = 1 + }; + index2 = 5; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + Span span199 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span199[num2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + { + TargetTerritoryId = (ushort)351 + }; + num2++; + span199[num2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + { + TargetTerritoryId = (ushort)156 + }; + num2++; + span199[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + { + Mount = true + }; + num2++; + span199[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(83.74144f, 31.209013f, -740.77594f), 156) + { + Fly = true + }; + num2++; + span199[num2] = new QuestStep(EInteractionType.Interact, 2004661u, new Vector3(83.14636f, 31.204712f, -741.1765f), 156); + obj141.Steps = list199; + reference154 = obj141; + num++; + ref QuestSequence reference155 = ref span197[num]; + QuestSequence obj142 = new QuestSequence + { + Sequence = 2 + }; + num2 = 1; + List list200 = new List(num2); + CollectionsMarshal.SetCount(list200, num2); + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span200[index2] = new QuestStep(EInteractionType.Interact, 1010039u, new Vector3(83.81775f, 31.216015f, -744.6555f), 156) + { + StopDistance = 7f + }; + obj142.Steps = list200; + reference155 = obj142; + num++; + ref QuestSequence reference156 = ref span197[num]; + QuestSequence obj143 = new QuestSequence + { + Sequence = byte.MaxValue + }; + index2 = 4; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span201[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + { + Fly = true + }; + num2++; + span201[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + { + TargetTerritoryId = (ushort)351 + }; + num2++; + span201[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + { + TargetTerritoryId = (ushort)351 + }; + num2++; + span201[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010147u, new Vector3(0.8086548f, -1.9957249f, -45.67035f), 351); + obj143.Steps = list201; + reference156 = obj143; + questRoot21.QuestSequence = list197; AddQuest(questId21, questRoot21); - QuestId questId22 = new QuestId(82); + QuestId questId22 = new QuestId(84); QuestRoot questRoot22 = new QuestRoot(); num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "JerryWester"; + Span span202 = CollectionsMarshal.AsSpan(list202); + index = 0; + span202[index] = "JerryWester"; questRoot22.Author = list202; - num = 4; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span92 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference157 = ref span92[0]; - QuestSequence obj143 = new QuestSequence + index = 7; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + Span span203 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference157 = ref span203[num]; + QuestSequence obj144 = new QuestSequence { Sequence = 0 }; num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010147u, new Vector3(0.8086548f, -1.9957249f, -45.67035f), 351); - obj143.Steps = list204; - reference157 = obj143; - ref QuestSequence reference158 = ref span92[1]; - QuestSequence obj144 = new QuestSequence + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span204[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + obj144.Steps = list204; + reference157 = obj144; + num++; + ref QuestSequence reference158 = ref span203[num]; + QuestSequence obj145 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - Span span93 = CollectionsMarshal.AsSpan(list205); - span93[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + Span span205 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span205[num2] = new QuestStep(EInteractionType.Interact, 1009996u, new Vector3(-902.61694f, 229.25244f, -9.689575f), 155) { - TargetTerritoryId = (ushort)351 + Fly = true, + AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span93[1] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) - { - TargetTerritoryId = (ushort)156 - }; - span93[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) - { - Mount = true - }; - span93[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(83.74144f, 31.209013f, -740.77594f), 156) - { - Fly = true - }; - span93[4] = new QuestStep(EInteractionType.Interact, 2004661u, new Vector3(83.14636f, 31.204712f, -741.1765f), 156); - obj144.Steps = list205; - reference158 = obj144; - ref QuestSequence reference159 = ref span92[2]; - QuestSequence obj145 = new QuestSequence + obj145.Steps = list205; + reference158 = obj145; + num++; + ref QuestSequence reference159 = ref span203[num]; + QuestSequence obj146 = new QuestSequence { Sequence = 2 }; num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1010039u, new Vector3(83.81775f, 31.216015f, -744.6555f), 156) - { - StopDistance = 7f - }; - obj145.Steps = list206; - reference159 = obj145; - ref QuestSequence reference160 = ref span92[3]; - QuestSequence obj146 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 4; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - Span span94 = CollectionsMarshal.AsSpan(list207); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) - { - Fly = true - }; - span94[1] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) - { - TargetTerritoryId = (ushort)351 - }; - span94[2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) - { - TargetTerritoryId = (ushort)351 - }; - span94[3] = new QuestStep(EInteractionType.CompleteQuest, 1010147u, new Vector3(0.8086548f, -1.9957249f, -45.67035f), 351); - obj146.Steps = list207; - reference160 = obj146; - questRoot22.QuestSequence = list203; - AddQuest(questId22, questRoot22); - QuestId questId23 = new QuestId(84); - QuestRoot questRoot23 = new QuestRoot(); - num = 1; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - CollectionsMarshal.AsSpan(list208)[0] = "JerryWester"; - questRoot23.Author = list208; - num = 7; - List list209 = new List(num); - CollectionsMarshal.SetCount(list209, num); - Span span95 = CollectionsMarshal.AsSpan(list209); - ref QuestSequence reference161 = ref span95[0]; + Span span206 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span206[index2] = new QuestStep(EInteractionType.Interact, 1009996u, new Vector3(-902.61694f, 229.25244f, -9.689575f), 155); + obj146.Steps = list206; + reference159 = obj146; + num++; + ref QuestSequence reference160 = ref span203[num]; QuestSequence obj147 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); - obj147.Steps = list210; - reference161 = obj147; - ref QuestSequence reference162 = ref span95[1]; - QuestSequence obj148 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1009996u, new Vector3(-902.61694f, 229.25244f, -9.689575f), 155) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead - }; - obj148.Steps = list211; - reference162 = obj148; - ref QuestSequence reference163 = ref span95[2]; - QuestSequence obj149 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1009996u, new Vector3(-902.61694f, 229.25244f, -9.689575f), 155); - obj149.Steps = list212; - reference163 = obj149; - ref QuestSequence reference164 = ref span95[3]; - QuestSequence obj150 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1010054u, new Vector3(-916.6552f, 229.3692f, -6.4240723f), 155); - obj150.Steps = list213; - reference164 = obj150; - ref QuestSequence reference165 = ref span95[4]; - QuestSequence obj151 = new QuestSequence + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + Span span207 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + span207[num2] = new QuestStep(EInteractionType.Interact, 1010054u, new Vector3(-916.6552f, 229.3692f, -6.4240723f), 155); + obj147.Steps = list207; + reference160 = obj147; + num++; + ref QuestSequence reference161 = ref span203[num]; + QuestSequence obj148 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + List list208 = new List(num2); + CollectionsMarshal.SetCount(list208, num2); + Span span208 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span208[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { ContentFinderConditionId = 79u } }; - obj151.Steps = list214; - reference165 = obj151; - span95[5] = new QuestSequence + obj148.Steps = list208; + reference161 = obj148; + num++; + span203[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference166 = ref span95[6]; - QuestSequence obj152 = new QuestSequence + num++; + ref QuestSequence reference162 = ref span203[num]; + QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010042u, new Vector3(-905.76025f, 229.29816f, -10.147278f), 155); - obj152.Steps = list215; - reference166 = obj152; - questRoot23.QuestSequence = list209; - AddQuest(questId23, questRoot23); - QuestId questId24 = new QuestId(85); - QuestRoot questRoot24 = new QuestRoot(); + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + Span span209 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span209[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010042u, new Vector3(-905.76025f, 229.29816f, -10.147278f), 155); + obj149.Steps = list209; + reference162 = obj149; + questRoot22.QuestSequence = list203; + AddQuest(questId22, questRoot22); + QuestId questId23 = new QuestId(85); + QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list216 = new List(num); - CollectionsMarshal.SetCount(list216, num); - CollectionsMarshal.AsSpan(list216)[0] = "liza"; - questRoot24.Author = list216; - num = 3; - List list217 = new List(num); - CollectionsMarshal.SetCount(list217, num); - Span span96 = CollectionsMarshal.AsSpan(list217); - ref QuestSequence reference167 = ref span96[0]; - QuestSequence obj153 = new QuestSequence + List list210 = new List(num); + CollectionsMarshal.SetCount(list210, num); + Span span210 = CollectionsMarshal.AsSpan(list210); + index = 0; + span210[index] = "liza"; + questRoot23.Author = list210; + index = 3; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + Span span211 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference163 = ref span211[num]; + QuestSequence obj150 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); - obj153.Steps = list218; - reference167 = obj153; - ref QuestSequence reference168 = ref span96[1]; - QuestSequence obj154 = new QuestSequence + List list212 = new List(num2); + CollectionsMarshal.SetCount(list212, num2); + Span span212 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span212[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); + obj150.Steps = list212; + reference163 = obj150; + num++; + ref QuestSequence reference164 = ref span211[num]; + QuestSequence obj151 = new QuestSequence { Sequence = 1 }; - num2 = 9; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - Span span97 = CollectionsMarshal.AsSpan(list219); - ref QuestStep reference169 = ref span97[0]; - QuestStep obj155 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) + index2 = 9; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span213 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + ref QuestStep reference165 = ref span213[num2]; + QuestStep obj152 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - num3 = 6; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - Span span98 = CollectionsMarshal.AsSpan(list220); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj155.CompletionQuestVariablesFlags = list220; - reference169 = obj155; - span97[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) + num4 = 6; + List list214 = new List(num4); + CollectionsMarshal.SetCount(list214, num4); + Span span214 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj152.CompletionQuestVariablesFlags = list214; + reference165 = obj152; + num2++; + span213[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - span97[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + num2++; + span213[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - span97[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) + num2++; + span213[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) { TargetTerritoryId = (ushort)133 }; - span97[4] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) + num2++; + span213[num2] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) { Comment = "TODO Questflags" }; - span97[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span213[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - span97[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); - span97[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span213[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); + num2++; + span213[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - span97[8] = new QuestStep(EInteractionType.Interact, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) + num2++; + span213[num2] = new QuestStep(EInteractionType.Interact, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) { Comment = "Lancer Receptionist" }; - obj154.Steps = list219; - reference168 = obj154; - ref QuestSequence reference170 = ref span96[2]; - QuestSequence obj156 = new QuestSequence + obj151.Steps = list213; + reference164 = obj151; + num++; + ref QuestSequence reference166 = ref span211[num]; + QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 8; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - Span span99 = CollectionsMarshal.AsSpan(list221); - span99[0] = new QuestStep(EInteractionType.Interact, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) + List list215 = new List(num2); + CollectionsMarshal.SetCount(list215, num2); + Span span215 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span215[index2] = new QuestStep(EInteractionType.Interact, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) { Disabled = true, Comment = "Pick up Class Quest" }; - span99[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + index2++; + span215[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -8723,12 +10506,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - span99[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); - span99[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + index2++; + span215[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); + index2++; + span215[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - span99[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + index2++; + span215[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -8737,7 +10523,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - span99[5] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) + index2++; + span215[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AethernetShortcut = new AethernetShortcut @@ -8750,7 +10537,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span99[6] = new QuestStep(EInteractionType.None, null, null, 133) + index2++; + span215[index2] = new QuestStep(EInteractionType.None, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -8758,7 +10546,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span99[7] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2++; + span215[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AethernetShortcut = new AethernetShortcut { @@ -8766,112 +10555,133 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAirship } }; - obj156.Steps = list221; - reference170 = obj156; - questRoot24.QuestSequence = list217; - AddQuest(questId24, questRoot24); - QuestId questId25 = new QuestId(86); - QuestRoot questRoot25 = new QuestRoot(); + obj153.Steps = list215; + reference166 = obj153; + questRoot23.QuestSequence = list211; + AddQuest(questId23, questRoot23); + QuestId questId24 = new QuestId(86); + QuestRoot questRoot24 = new QuestRoot(); num = 1; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "JerryWester"; - questRoot25.Author = list222; - num = 4; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span100 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference171 = ref span100[0]; - QuestSequence obj157 = new QuestSequence + List list216 = new List(num); + CollectionsMarshal.SetCount(list216, num); + Span span216 = CollectionsMarshal.AsSpan(list216); + index = 0; + span216[index] = "JerryWester"; + questRoot24.Author = list216; + index = 4; + List list217 = new List(index); + CollectionsMarshal.SetCount(list217, index); + Span span217 = CollectionsMarshal.AsSpan(list217); + num = 0; + ref QuestSequence reference167 = ref span217[num]; + QuestSequence obj154 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010042u, new Vector3(-905.76025f, 229.29816f, -10.147278f), 155); - obj157.Steps = list224; - reference171 = obj157; - ref QuestSequence reference172 = ref span100[1]; - QuestSequence obj158 = new QuestSequence + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span218[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010042u, new Vector3(-905.76025f, 229.29816f, -10.147278f), 155); + obj154.Steps = list218; + reference167 = obj154; + num++; + ref QuestSequence reference168 = ref span217[num]; + QuestSequence obj155 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - Span span101 = CollectionsMarshal.AsSpan(list225); - span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-430.21158f, 265.1f, -212.42732f), 155) + List list219 = new List(num2); + CollectionsMarshal.SetCount(list219, num2); + Span span219 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span219[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-430.21158f, 265.1f, -212.42732f), 155) { Fly = true }; - span101[1] = new QuestStep(EInteractionType.Interact, 1009984u, new Vector3(-431.1742f, 233.47266f, -201.00714f), 155); - obj158.Steps = list225; - reference172 = obj158; - ref QuestSequence reference173 = ref span100[2]; - QuestSequence obj159 = new QuestSequence + index2++; + span219[index2] = new QuestStep(EInteractionType.Interact, 1009984u, new Vector3(-431.1742f, 233.47266f, -201.00714f), 155); + obj155.Steps = list219; + reference168 = obj155; + num++; + ref QuestSequence reference169 = ref span217[num]; + QuestSequence obj156 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - Span span102 = CollectionsMarshal.AsSpan(list226); - span102[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(240.2761f, 302.6276f, -199.78418f), 155) + index2 = 2; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span220[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(240.2761f, 302.6276f, -199.78418f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span102[1] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); - obj159.Steps = list226; - reference173 = obj159; - ref QuestSequence reference174 = ref span100[3]; - QuestSequence obj160 = new QuestSequence + num2++; + span220[num2] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + obj156.Steps = list220; + reference169 = obj156; + num++; + ref QuestSequence reference170 = ref span217[num]; + QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - ref QuestStep reference175 = ref CollectionsMarshal.AsSpan(list227)[0]; - QuestStep obj161 = new QuestStep(EInteractionType.CompleteQuest, 1007603u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155) + List list221 = new List(num2); + CollectionsMarshal.SetCount(list221, num2); + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + ref QuestStep reference171 = ref span221[index2]; + QuestStep obj158 = new QuestStep(EInteractionType.CompleteQuest, 1007603u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155) { Mount = true }; num3 = 1; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - CollectionsMarshal.AsSpan(list228)[0] = new DialogueChoice + List list222 = new List(num3); + CollectionsMarshal.SetCount(list222, num3); + Span span222 = CollectionsMarshal.AsSpan(list222); + num4 = 0; + span222[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE416_00086_FORTEMPSGUARD00054_Q1_000_1") }; - obj161.DialogueChoices = list228; - reference175 = obj161; - obj160.Steps = list227; - reference174 = obj160; - questRoot25.QuestSequence = list223; - AddQuest(questId25, questRoot25); - QuestId questId26 = new QuestId(87); - QuestRoot questRoot26 = new QuestRoot(); + obj158.DialogueChoices = list222; + reference171 = obj158; + obj157.Steps = list221; + reference170 = obj157; + questRoot24.QuestSequence = list217; + AddQuest(questId24, questRoot24); + QuestId questId25 = new QuestId(87); + QuestRoot questRoot25 = new QuestRoot(); num = 1; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "JerryWester"; - questRoot26.Author = list229; - num = 2; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span103 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference176 = ref span103[0]; - QuestSequence obj162 = new QuestSequence + List list223 = new List(num); + CollectionsMarshal.SetCount(list223, num); + Span span223 = CollectionsMarshal.AsSpan(list223); + index = 0; + span223[index] = "JerryWester"; + questRoot25.Author = list223; + index = 2; + List list224 = new List(index); + CollectionsMarshal.SetCount(list224, index); + Span span224 = CollectionsMarshal.AsSpan(list224); + num = 0; + ref QuestSequence reference172 = ref span224[num]; + QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009976u, new Vector3(261.58533f, 302.19598f, -223.10223f), 155) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009976u, new Vector3(261.58533f, 302.19598f, -223.10223f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -8882,148 +10692,176 @@ public static class AssemblyQuestLoader } } }; - obj162.Steps = list231; - reference176 = obj162; - ref QuestSequence reference177 = ref span103[1]; - QuestSequence obj163 = new QuestSequence + obj159.Steps = list225; + reference172 = obj159; + num++; + ref QuestSequence reference173 = ref span224[num]; + QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - Span span104 = CollectionsMarshal.AsSpan(list232); - span104[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + List list226 = new List(num2); + CollectionsMarshal.SetCount(list226, num2); + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span226[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span104[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span226[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span104[2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); - obj163.Steps = list232; - reference177 = obj163; - questRoot26.QuestSequence = list230; - AddQuest(questId26, questRoot26); - QuestId questId27 = new QuestId(88); - QuestRoot questRoot27 = new QuestRoot(); + index2++; + span226[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + obj160.Steps = list226; + reference173 = obj160; + questRoot25.QuestSequence = list224; + AddQuest(questId25, questRoot25); + QuestId questId26 = new QuestId(88); + QuestRoot questRoot26 = new QuestRoot(); num = 1; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "JerryWester"; - questRoot27.Author = list233; - num = 5; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span105 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference178 = ref span105[0]; - QuestSequence obj164 = new QuestSequence + List list227 = new List(num); + CollectionsMarshal.SetCount(list227, num); + Span span227 = CollectionsMarshal.AsSpan(list227); + index = 0; + span227[index] = "JerryWester"; + questRoot26.Author = list227; + index = 5; + List list228 = new List(index); + CollectionsMarshal.SetCount(list228, index); + Span span228 = CollectionsMarshal.AsSpan(list228); + num = 0; + ref QuestSequence reference174 = ref span228[num]; + QuestSequence obj161 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); - obj164.Steps = list235; - reference178 = obj164; - ref QuestSequence reference179 = ref span105[1]; - QuestSequence obj165 = new QuestSequence + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + Span span229 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span229[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + obj161.Steps = list229; + reference174 = obj161; + num++; + ref QuestSequence reference175 = ref span228[num]; + QuestSequence obj162 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - Span span106 = CollectionsMarshal.AsSpan(list236); - span106[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) + List list230 = new List(num2); + CollectionsMarshal.SetCount(list230, num2); + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span230[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) { TargetTerritoryId = (ushort)351 }; - span106[1] = new QuestStep(EInteractionType.Interact, 1010045u, new Vector3(-1.9990234f, 0f, -7.1260376f), 351); - obj165.Steps = list236; - reference179 = obj165; - ref QuestSequence reference180 = ref span105[2]; - QuestSequence obj166 = new QuestSequence + index2++; + span230[index2] = new QuestStep(EInteractionType.Interact, 1010045u, new Vector3(-1.9990234f, 0f, -7.1260376f), 351); + obj162.Steps = list230; + reference175 = obj162; + num++; + ref QuestSequence reference176 = ref span228[num]; + QuestSequence obj163 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1010533u, new Vector3(47.287598f, 4f, 453.97107f), 147) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.Interact, 1010533u, new Vector3(47.287598f, 4f, 453.97107f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog }; - obj166.Steps = list237; - reference180 = obj166; - ref QuestSequence reference181 = ref span105[3]; - QuestSequence obj167 = new QuestSequence + obj163.Steps = list231; + reference176 = obj163; + num++; + ref QuestSequence reference177 = ref span228[num]; + QuestSequence obj164 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - ref QuestStep reference182 = ref CollectionsMarshal.AsSpan(list238)[0]; - QuestStep obj168 = new QuestStep(EInteractionType.SinglePlayerDuty, 1010046u, new Vector3(-140.1236f, 58.32732f, -82.07831f), 147) + List list232 = new List(num2); + CollectionsMarshal.SetCount(list232, num2); + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + ref QuestStep reference178 = ref span232[index2]; + QuestStep obj165 = new QuestStep(EInteractionType.SinglePlayerDuty, 1010046u, new Vector3(-140.1236f, 58.32732f, -82.07831f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; - SinglePlayerDutyOptions obj169 = new SinglePlayerDutyOptions + SinglePlayerDutyOptions obj166 = new SinglePlayerDutyOptions { Enabled = true }; - num3 = 2; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - Span span107 = CollectionsMarshal.AsSpan(list239); - span107[0] = "Will target Eline first (other NPCs later), and move to some -other- group of NPCs; only re-targets once they're at 1 HP (for Eline) or die"; - span107[1] = "If the target isn't in melee range but other NPCs are, whether any AOEs are used for nearby enemies seems random"; - obj169.Notes = list239; - obj168.SinglePlayerDutyOptions = obj169; - reference182 = obj168; - obj167.Steps = list238; - reference181 = obj167; - ref QuestSequence reference183 = ref span105[4]; - QuestSequence obj170 = new QuestSequence + num4 = 2; + List list233 = new List(num4); + CollectionsMarshal.SetCount(list233, num4); + Span span233 = CollectionsMarshal.AsSpan(list233); + num3 = 0; + span233[num3] = "Will target Eline first (other NPCs later), and move to some -other- group of NPCs; only re-targets once they're at 1 HP (for Eline) or die"; + num3++; + span233[num3] = "If the target isn't in melee range but other NPCs are, whether any AOEs are used for nearby enemies seems random"; + obj166.Notes = list233; + obj165.SinglePlayerDutyOptions = obj166; + reference178 = obj165; + obj164.Steps = list232; + reference177 = obj164; + num++; + ref QuestSequence reference179 = ref span228[num]; + QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010063u, new Vector3(-207.56854f, 71.617355f, -132.52466f), 147) + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + Span span234 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span234[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010063u, new Vector3(-207.56854f, 71.617355f, -132.52466f), 147) { StopDistance = 5f }; - obj170.Steps = list240; - reference183 = obj170; - questRoot27.QuestSequence = list234; - AddQuest(questId27, questRoot27); - QuestId questId28 = new QuestId(89); - QuestRoot questRoot28 = new QuestRoot(); + obj167.Steps = list234; + reference179 = obj167; + questRoot26.QuestSequence = list228; + AddQuest(questId26, questRoot26); + QuestId questId27 = new QuestId(89); + QuestRoot questRoot27 = new QuestRoot(); num = 1; - List list241 = new List(num); - CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "JerryWester"; - questRoot28.Author = list241; - num = 2; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span108 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference184 = ref span108[0]; - QuestSequence obj171 = new QuestSequence + List list235 = new List(num); + CollectionsMarshal.SetCount(list235, num); + Span span235 = CollectionsMarshal.AsSpan(list235); + index = 0; + span235[index] = "JerryWester"; + questRoot27.Author = list235; + index = 2; + List list236 = new List(index); + CollectionsMarshal.SetCount(list236, index); + Span span236 = CollectionsMarshal.AsSpan(list236); + num = 0; + ref QuestSequence reference180 = ref span236[num]; + QuestSequence obj168 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010063u, new Vector3(-207.56854f, 71.617355f, -132.52466f), 147) + List list237 = new List(num2); + CollectionsMarshal.SetCount(list237, num2); + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span237[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010063u, new Vector3(-207.56854f, 71.617355f, -132.52466f), 147) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -9035,120 +10873,141 @@ public static class AssemblyQuestLoader } } }; - obj171.Steps = list243; - reference184 = obj171; - ref QuestSequence reference185 = ref span108[1]; - QuestSequence obj172 = new QuestSequence + obj168.Steps = list237; + reference180 = obj168; + num++; + ref QuestSequence reference181 = ref span236[num]; + QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - Span span109 = CollectionsMarshal.AsSpan(list244); - span109[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span109[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span238[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span109[2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); - obj172.Steps = list244; - reference185 = obj172; - questRoot28.QuestSequence = list242; - AddQuest(questId28, questRoot28); - QuestId questId29 = new QuestId(90); - QuestRoot questRoot29 = new QuestRoot(); + num2++; + span238[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + obj169.Steps = list238; + reference181 = obj169; + questRoot27.QuestSequence = list236; + AddQuest(questId27, questRoot27); + QuestId questId28 = new QuestId(90); + QuestRoot questRoot28 = new QuestRoot(); num = 1; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "liza"; - questRoot29.Author = list245; - num = 6; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span110 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference186 = ref span110[0]; - QuestSequence obj173 = new QuestSequence + List list239 = new List(num); + CollectionsMarshal.SetCount(list239, num); + Span span239 = CollectionsMarshal.AsSpan(list239); + index = 0; + span239[index] = "liza"; + questRoot28.Author = list239; + index = 6; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + Span span240 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference182 = ref span240[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - obj173.Steps = list247; - reference186 = obj173; - ref QuestSequence reference187 = ref span110[1]; - QuestSequence obj174 = new QuestSequence + List list241 = new List(num2); + CollectionsMarshal.SetCount(list241, num2); + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + obj170.Steps = list241; + reference182 = obj170; + num++; + ref QuestSequence reference183 = ref span240[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - Span span111 = CollectionsMarshal.AsSpan(list248); - span111[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) + index2 = 2; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span111[1] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj174.Steps = list248; - reference187 = obj174; - ref QuestSequence reference188 = ref span110[2]; - QuestSequence obj175 = new QuestSequence + num2++; + span242[num2] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + obj171.Steps = list242; + reference183 = obj171; + num++; + ref QuestSequence reference184 = ref span240[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - Span span112 = CollectionsMarshal.AsSpan(list249); - span112[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.37878f, 259.79306f, -194.97882f), 155) + List list243 = new List(num2); + CollectionsMarshal.SetCount(list243, num2); + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span243[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.37878f, 259.79306f, -194.97882f), 155) { Fly = true }; - span112[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.87833f, 266.9849f, -205.68484f), 155) + index2++; + span243[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.87833f, 266.9849f, -205.68484f), 155) { Fly = false }; - span112[2] = new QuestStep(EInteractionType.Interact, 1010054u, new Vector3(-916.6552f, 229.3692f, -6.4240723f), 155) + index2++; + span243[index2] = new QuestStep(EInteractionType.Interact, 1010054u, new Vector3(-916.6552f, 229.3692f, -6.4240723f), 155) { Fly = true }; - obj175.Steps = list249; - reference188 = obj175; - ref QuestSequence reference189 = ref span110[3]; - QuestSequence obj176 = new QuestSequence + obj172.Steps = list243; + reference184 = obj172; + num++; + ref QuestSequence reference185 = ref span240[num]; + QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { ContentFinderConditionId = 80u } }; - obj176.Steps = list250; - reference189 = obj176; - ref QuestSequence reference190 = ref span110[4]; - QuestSequence obj177 = new QuestSequence + obj173.Steps = list244; + reference185 = obj173; + num++; + ref QuestSequence reference186 = ref span240[num]; + QuestSequence obj174 = new QuestSequence { Sequence = 4 }; num2 = 2; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - Span span113 = CollectionsMarshal.AsSpan(list251); - span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) + List list245 = new List(num2); + CollectionsMarshal.SetCount(list245, num2); + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -9160,54 +11019,65 @@ public static class AssemblyQuestLoader } } }; - span113[1] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); - obj177.Steps = list251; - reference190 = obj177; - ref QuestSequence reference191 = ref span110[5]; - QuestSequence obj178 = new QuestSequence + index2++; + span245[index2] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + obj174.Steps = list245; + reference186 = obj174; + num++; + ref QuestSequence reference187 = ref span240[num]; + QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span114 = CollectionsMarshal.AsSpan(list252); - span114[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + index2 = 4; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span114[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span114[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span246[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span246[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span114[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - obj178.Steps = list252; - reference191 = obj178; - questRoot29.QuestSequence = list246; - AddQuest(questId29, questRoot29); - QuestId questId30 = new QuestId(91); - QuestRoot questRoot30 = new QuestRoot(); + num2++; + span246[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + obj175.Steps = list246; + reference187 = obj175; + questRoot28.QuestSequence = list240; + AddQuest(questId28, questRoot28); + QuestId questId29 = new QuestId(91); + QuestRoot questRoot29 = new QuestRoot(); num = 1; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - CollectionsMarshal.AsSpan(list253)[0] = "Cacahuetes"; - questRoot30.Author = list253; - num = 7; - List list254 = new List(num); - CollectionsMarshal.SetCount(list254, num); - Span span115 = CollectionsMarshal.AsSpan(list254); - ref QuestSequence reference192 = ref span115[0]; - QuestSequence obj179 = new QuestSequence + List list247 = new List(num); + CollectionsMarshal.SetCount(list247, num); + Span span247 = CollectionsMarshal.AsSpan(list247); + index = 0; + span247[index] = "Cacahuetes"; + questRoot29.Author = list247; + index = 7; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + Span span248 = CollectionsMarshal.AsSpan(list248); + num = 0; + ref QuestSequence reference188 = ref span248[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - ref QuestStep reference193 = ref CollectionsMarshal.AsSpan(list255)[0]; - QuestStep obj180 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + List list249 = new List(num2); + CollectionsMarshal.SetCount(list249, num2); + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + ref QuestStep reference189 = ref span249[index2]; + QuestStep obj177 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -9216,31 +11086,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - SkipConditions skipConditions16 = new SkipConditions(); - SkipAetheryteCondition obj181 = new SkipAetheryteCondition + SkipConditions skipConditions14 = new SkipConditions(); + SkipAetheryteCondition obj178 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 1; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - CollectionsMarshal.AsSpan(list256)[0] = 133; - obj181.InTerritory = list256; - skipConditions16.AetheryteShortcutIf = obj181; - obj180.SkipConditions = skipConditions16; - reference193 = obj180; - obj179.Steps = list255; - reference192 = obj179; - ref QuestSequence reference194 = ref span115[1]; - QuestSequence obj182 = new QuestSequence + List list250 = new List(num3); + CollectionsMarshal.SetCount(list250, num3); + Span span250 = CollectionsMarshal.AsSpan(list250); + num4 = 0; + span250[num4] = 133; + obj178.InTerritory = list250; + skipConditions14.AetheryteShortcutIf = obj178; + obj177.SkipConditions = skipConditions14; + reference189 = obj177; + obj176.Steps = list249; + reference188 = obj176; + num++; + ref QuestSequence reference190 = ref span248[num]; + QuestSequence obj179 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - Span span116 = CollectionsMarshal.AsSpan(list257); - span116[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + index2 = 2; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + Span span251 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span251[num2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -9256,7 +11130,8 @@ public static class AssemblyQuestLoader } } }; - span116[1] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152) + num2++; + span251[num2] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -9268,77 +11143,94 @@ public static class AssemblyQuestLoader } } }; - obj182.Steps = list257; - reference194 = obj182; - ref QuestSequence reference195 = ref span115[2]; - QuestSequence obj183 = new QuestSequence + obj179.Steps = list251; + reference190 = obj179; + num++; + ref QuestSequence reference191 = ref span248[num]; + QuestSequence obj180 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - ref QuestStep reference196 = ref CollectionsMarshal.AsSpan(list258)[0]; - QuestStep obj184 = new QuestStep(EInteractionType.Combat, 2000885u, new Vector3(-510.6655f, 5.8422394f, 35.87895f), 152) + List list252 = new List(num2); + CollectionsMarshal.SetCount(list252, num2); + Span span252 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + ref QuestStep reference192 = ref span252[index2]; + QuestStep obj181 = new QuestStep(EInteractionType.Combat, 2000885u, new Vector3(-510.6655f, 5.8422394f, 35.87895f), 152) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - CollectionsMarshal.AsSpan(list259)[0] = 295u; - obj184.KillEnemyDataIds = list259; - reference196 = obj184; - obj183.Steps = list258; - reference195 = obj183; - ref QuestSequence reference197 = ref span115[3]; - QuestSequence obj185 = new QuestSequence + num4 = 1; + List list253 = new List(num4); + CollectionsMarshal.SetCount(list253, num4); + Span span253 = CollectionsMarshal.AsSpan(list253); + num3 = 0; + span253[num3] = 295u; + obj181.KillEnemyDataIds = list253; + reference192 = obj181; + obj180.Steps = list252; + reference191 = obj180; + num++; + ref QuestSequence reference193 = ref span248[num]; + QuestSequence obj182 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); - obj185.Steps = list260; - reference197 = obj185; - ref QuestSequence reference198 = ref span115[4]; - QuestSequence obj186 = new QuestSequence + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); + obj182.Steps = list254; + reference193 = obj182; + num++; + ref QuestSequence reference194 = ref span248[num]; + QuestSequence obj183 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000887u, new Vector3(-510.76526f, 6.1798096f, 35.568726f), 152) + List list255 = new List(num2); + CollectionsMarshal.SetCount(list255, num2); + Span span255 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span255[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000887u, new Vector3(-510.76526f, 6.1798096f, 35.568726f), 152) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { Enabled = true } }; - obj186.Steps = list261; - reference198 = obj186; - ref QuestSequence reference199 = ref span115[5]; - QuestSequence obj187 = new QuestSequence + obj183.Steps = list255; + reference194 = obj183; + num++; + ref QuestSequence reference195 = ref span248[num]; + QuestSequence obj184 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); - obj187.Steps = list262; - reference199 = obj187; - ref QuestSequence reference200 = ref span115[6]; - QuestSequence obj188 = new QuestSequence + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); + obj184.Steps = list256; + reference195 = obj184; + num++; + ref QuestSequence reference196 = ref span248[num]; + QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + List list257 = new List(num2); + CollectionsMarshal.SetCount(list257, num2); + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -9348,31 +11240,36 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(92) }; - obj188.Steps = list263; - reference200 = obj188; - questRoot30.QuestSequence = list254; - AddQuest(questId30, questRoot30); - QuestId questId31 = new QuestId(92); - QuestRoot questRoot31 = new QuestRoot(); + obj185.Steps = list257; + reference196 = obj185; + questRoot29.QuestSequence = list248; + AddQuest(questId29, questRoot29); + QuestId questId30 = new QuestId(92); + QuestRoot questRoot30 = new QuestRoot(); num = 1; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - CollectionsMarshal.AsSpan(list264)[0] = "Cacahuetes"; - questRoot31.Author = list264; - num = 9; - List list265 = new List(num); - CollectionsMarshal.SetCount(list265, num); - Span span117 = CollectionsMarshal.AsSpan(list265); - ref QuestSequence reference201 = ref span117[0]; - QuestSequence obj189 = new QuestSequence + List list258 = new List(num); + CollectionsMarshal.SetCount(list258, num); + Span span258 = CollectionsMarshal.AsSpan(list258); + index = 0; + span258[index] = "Cacahuetes"; + questRoot30.Author = list258; + index = 9; + List list259 = new List(index); + CollectionsMarshal.SetCount(list259, index); + Span span259 = CollectionsMarshal.AsSpan(list259); + num = 0; + ref QuestSequence reference197 = ref span259[num]; + QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - ref QuestStep reference202 = ref CollectionsMarshal.AsSpan(list266)[0]; - QuestStep obj190 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + ref QuestStep reference198 = ref span260[num2]; + QuestStep obj187 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -9381,32 +11278,36 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - SkipConditions skipConditions17 = new SkipConditions(); - SkipAetheryteCondition obj191 = new SkipAetheryteCondition + SkipConditions skipConditions15 = new SkipConditions(); + SkipAetheryteCondition obj188 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 1; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = 133; - obj191.InTerritory = list267; - skipConditions17.AetheryteShortcutIf = obj191; - obj190.SkipConditions = skipConditions17; - reference202 = obj190; - obj189.Steps = list266; - reference201 = obj189; - ref QuestSequence reference203 = ref span117[1]; - QuestSequence obj192 = new QuestSequence + List list261 = new List(num3); + CollectionsMarshal.SetCount(list261, num3); + Span span261 = CollectionsMarshal.AsSpan(list261); + num4 = 0; + span261[num4] = 133; + obj188.InTerritory = list261; + skipConditions15.AetheryteShortcutIf = obj188; + obj187.SkipConditions = skipConditions15; + reference198 = obj187; + obj186.Steps = list260; + reference197 = obj186; + num++; + ref QuestSequence reference199 = ref span259[num]; + QuestSequence obj189 = new QuestSequence { Sequence = 1 }; num2 = 4; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - Span span118 = CollectionsMarshal.AsSpan(list268); - ref QuestStep reference204 = ref span118[0]; - QuestStep obj193 = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + List list262 = new List(num2); + CollectionsMarshal.SetCount(list262, num2); + Span span262 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + ref QuestStep reference200 = ref span262[index2]; + QuestStep obj190 = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -9415,18 +11316,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - SkipConditions skipConditions18 = new SkipConditions(); - SkipStepConditions skipStepConditions14 = new SkipStepConditions(); - num3 = 1; - List list269 = new List(num3); - CollectionsMarshal.SetCount(list269, num3); - CollectionsMarshal.AsSpan(list269)[0] = 152; - skipStepConditions14.InTerritory = list269; - skipStepConditions14.AetheryteUnlocked = EAetheryteLocation.EastShroudHawthorneHut; - skipConditions18.StepIf = skipStepConditions14; - obj193.SkipConditions = skipConditions18; - reference204 = obj193; - span118[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + SkipConditions skipConditions16 = new SkipConditions(); + SkipStepConditions skipStepConditions12 = new SkipStepConditions(); + num4 = 1; + List list263 = new List(num4); + CollectionsMarshal.SetCount(list263, num4); + Span span263 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span263[num3] = 152; + skipStepConditions12.InTerritory = list263; + skipStepConditions12.AetheryteUnlocked = EAetheryteLocation.EastShroudHawthorneHut; + skipConditions16.StepIf = skipStepConditions12; + obj190.SkipConditions = skipConditions16; + reference200 = obj190; + index2++; + span262[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -9437,7 +11341,8 @@ public static class AssemblyQuestLoader } } }; - span118[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-276.804f, 11.2529f, 366.10303f), 152) + index2++; + span262[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-276.804f, 11.2529f, 366.10303f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -9449,104 +11354,128 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference205 = ref span118[3]; - QuestStep obj194 = new QuestStep(EInteractionType.Combat, 2000889u, new Vector3(-276.93604f, 11.734131f, 367.20825f), 152) + index2++; + ref QuestStep reference201 = ref span262[index2]; + QuestStep obj191 = new QuestStep(EInteractionType.Combat, 2000889u, new Vector3(-276.93604f, 11.734131f, 367.20825f), 152) { ItemId = 2000121u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; num3 = 1; - List list270 = new List(num3); - CollectionsMarshal.SetCount(list270, num3); - CollectionsMarshal.AsSpan(list270)[0] = 297u; - obj194.KillEnemyDataIds = list270; - reference205 = obj194; - obj192.Steps = list268; - reference203 = obj192; - ref QuestSequence reference206 = ref span117[2]; - QuestSequence obj195 = new QuestSequence + List list264 = new List(num3); + CollectionsMarshal.SetCount(list264, num3); + Span span264 = CollectionsMarshal.AsSpan(list264); + num4 = 0; + span264[num4] = 297u; + obj191.KillEnemyDataIds = list264; + reference201 = obj191; + obj189.Steps = list262; + reference199 = obj189; + num++; + ref QuestSequence reference202 = ref span259[num]; + QuestSequence obj192 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - Span span119 = CollectionsMarshal.AsSpan(list271); - span119[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-235.35493f, 3.539142f, 293.25888f), 152) + index2 = 5; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + Span span265 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span265[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-235.35493f, 3.539142f, 293.25888f), 152) { Fly = true }; - span119[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.34848f, 3.5425713f, 285.89532f), 152); - span119[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-228.59554f, 3.554365f, 283.47638f), 152) + num2++; + span265[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.34848f, 3.5425713f, 285.89532f), 152); + num2++; + span265[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-228.59554f, 3.554365f, 283.47638f), 152) { DisableNavmesh = true }; - span119[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-228.65686f, 3.5446393f, 279.4041f), 152); - span119[4] = new QuestStep(EInteractionType.Interact, 1000561u, new Vector3(-230.18237f, 3.544826f, 279.07214f), 152); - obj195.Steps = list271; - reference206 = obj195; - ref QuestSequence reference207 = ref span117[3]; - QuestSequence obj196 = new QuestSequence + num2++; + span265[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-228.65686f, 3.5446393f, 279.4041f), 152); + num2++; + span265[num2] = new QuestStep(EInteractionType.Interact, 1000561u, new Vector3(-230.18237f, 3.544826f, 279.07214f), 152); + obj192.Steps = list265; + reference202 = obj192; + num++; + ref QuestSequence reference203 = ref span259[num]; + QuestSequence obj193 = new QuestSequence { Sequence = 3 }; num2 = 5; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - Span span120 = CollectionsMarshal.AsSpan(list272); - span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-228.59554f, 3.554365f, 283.47638f), 152) + List list266 = new List(num2); + CollectionsMarshal.SetCount(list266, num2); + Span span266 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span266[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-228.59554f, 3.554365f, 283.47638f), 152) { Mount = true }; - span120[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.34848f, 3.5425713f, 285.89532f), 152) + index2++; + span266[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.34848f, 3.5425713f, 285.89532f), 152) { DisableNavmesh = true }; - span120[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-256.5985f, 0.9818871f, 287.17072f), 152); - span120[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-220.44954f, 22.910912f, 243.81f), 152) + index2++; + span266[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-256.5985f, 0.9818871f, 287.17072f), 152); + index2++; + span266[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-220.44954f, 22.910912f, 243.81f), 152) { Fly = true }; - span120[4] = new QuestStep(EInteractionType.Interact, 1000619u, new Vector3(-209.0639f, 22.813372f, 245.34973f), 152); - obj196.Steps = list272; - reference207 = obj196; - ref QuestSequence reference208 = ref span117[4]; - QuestSequence obj197 = new QuestSequence + index2++; + span266[index2] = new QuestStep(EInteractionType.Interact, 1000619u, new Vector3(-209.0639f, 22.813372f, 245.34973f), 152); + obj193.Steps = list266; + reference203 = obj193; + num++; + ref QuestSequence reference204 = ref span259[num]; + QuestSequence obj194 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Action, 1003001u, new Vector3(-234.33282f, 18.310072f, 245.68542f), 152) + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span267[num2] = new QuestStep(EInteractionType.Action, 1003001u, new Vector3(-234.33282f, 18.310072f, 245.68542f), 152) { Action = EAction.Cure }; - obj197.Steps = list273; - reference208 = obj197; - ref QuestSequence reference209 = ref span117[5]; - QuestSequence obj198 = new QuestSequence + obj194.Steps = list267; + reference204 = obj194; + num++; + ref QuestSequence reference205 = ref span259[num]; + QuestSequence obj195 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1003057u, new Vector3(-237.6593f, 17.850079f, 243.48816f), 152) + List list268 = new List(num2); + CollectionsMarshal.SetCount(list268, num2); + Span span268 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span268[index2] = new QuestStep(EInteractionType.Interact, 1003057u, new Vector3(-237.6593f, 17.850079f, 243.48816f), 152) { StopDistance = 7f }; - obj198.Steps = list274; - reference209 = obj198; - ref QuestSequence reference210 = ref span117[6]; - QuestSequence obj199 = new QuestSequence + obj195.Steps = list268; + reference205 = obj195; + num++; + ref QuestSequence reference206 = ref span259[num]; + QuestSequence obj196 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1001213u, new Vector3(-66.056335f, -7.982843f, 231.15894f), 152) + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + Span span269 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span269[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1001213u, new Vector3(-66.056335f, -7.982843f, 231.15894f), 152) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -9554,28 +11483,34 @@ public static class AssemblyQuestLoader Enabled = true } }; - obj199.Steps = list275; - reference210 = obj199; - ref QuestSequence reference211 = ref span117[7]; - QuestSequence obj200 = new QuestSequence + obj196.Steps = list269; + reference206 = obj196; + num++; + ref QuestSequence reference207 = ref span259[num]; + QuestSequence obj197 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1003006u, new Vector3(-76.64612f, -9.205922f, 283.22266f), 152); - obj200.Steps = list276; - reference211 = obj200; - ref QuestSequence reference212 = ref span117[8]; - QuestSequence obj201 = new QuestSequence + List list270 = new List(num2); + CollectionsMarshal.SetCount(list270, num2); + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span270[index2] = new QuestStep(EInteractionType.Interact, 1003006u, new Vector3(-76.64612f, -9.205922f, 283.22266f), 152); + obj197.Steps = list270; + reference207 = obj197; + num++; + ref QuestSequence reference208 = ref span259[num]; + QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -9585,31 +11520,36 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(93) }; - obj201.Steps = list277; - reference212 = obj201; - questRoot31.QuestSequence = list265; - AddQuest(questId31, questRoot31); - QuestId questId32 = new QuestId(93); - QuestRoot questRoot32 = new QuestRoot(); + obj198.Steps = list271; + reference208 = obj198; + questRoot30.QuestSequence = list259; + AddQuest(questId30, questRoot30); + QuestId questId31 = new QuestId(93); + QuestRoot questRoot31 = new QuestRoot(); num = 1; - List list278 = new List(num); - CollectionsMarshal.SetCount(list278, num); - CollectionsMarshal.AsSpan(list278)[0] = "Cacahuetes"; - questRoot32.Author = list278; - num = 8; - List list279 = new List(num); - CollectionsMarshal.SetCount(list279, num); - Span span121 = CollectionsMarshal.AsSpan(list279); - ref QuestSequence reference213 = ref span121[0]; - QuestSequence obj202 = new QuestSequence + List list272 = new List(num); + CollectionsMarshal.SetCount(list272, num); + Span span272 = CollectionsMarshal.AsSpan(list272); + index = 0; + span272[index] = "Cacahuetes"; + questRoot31.Author = list272; + index = 8; + List list273 = new List(index); + CollectionsMarshal.SetCount(list273, index); + Span span273 = CollectionsMarshal.AsSpan(list273); + num = 0; + ref QuestSequence reference209 = ref span273[num]; + QuestSequence obj199 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list280)[0]; - QuestStep obj203 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + List list274 = new List(num2); + CollectionsMarshal.SetCount(list274, num2); + Span span274 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + ref QuestStep reference210 = ref span274[index2]; + QuestStep obj200 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -9618,130 +11558,159 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - SkipConditions skipConditions19 = new SkipConditions(); - SkipAetheryteCondition obj204 = new SkipAetheryteCondition + SkipConditions skipConditions17 = new SkipConditions(); + SkipAetheryteCondition obj201 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list281 = new List(num3); - CollectionsMarshal.SetCount(list281, num3); - CollectionsMarshal.AsSpan(list281)[0] = 133; - obj204.InTerritory = list281; - skipConditions19.AetheryteShortcutIf = obj204; - obj203.SkipConditions = skipConditions19; - reference214 = obj203; - obj202.Steps = list280; - reference213 = obj202; - ref QuestSequence reference215 = ref span121[1]; - QuestSequence obj205 = new QuestSequence + num4 = 1; + List list275 = new List(num4); + CollectionsMarshal.SetCount(list275, num4); + Span span275 = CollectionsMarshal.AsSpan(list275); + num3 = 0; + span275[num3] = 133; + obj201.InTerritory = list275; + skipConditions17.AetheryteShortcutIf = obj201; + obj200.SkipConditions = skipConditions17; + reference210 = obj200; + obj199.Steps = list274; + reference209 = obj199; + num++; + ref QuestSequence reference211 = ref span273[num]; + QuestSequence obj202 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - ref QuestStep reference216 = ref CollectionsMarshal.AsSpan(list282)[0]; - QuestStep obj206 = new QuestStep(EInteractionType.Combat, 2000891u, new Vector3(-74.50989f, 1.449585f, -32.76117f), 148) + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + Span span276 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + ref QuestStep reference212 = ref span276[num2]; + QuestStep obj203 = new QuestStep(EInteractionType.Combat, 2000891u, new Vector3(-74.50989f, 1.449585f, -32.76117f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list283 = new List(num3); - CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = 294u; - obj206.KillEnemyDataIds = list283; - reference216 = obj206; - obj205.Steps = list282; - reference215 = obj205; - ref QuestSequence reference217 = ref span121[2]; - QuestSequence obj207 = new QuestSequence + List list277 = new List(num3); + CollectionsMarshal.SetCount(list277, num3); + Span span277 = CollectionsMarshal.AsSpan(list277); + num4 = 0; + span277[num4] = 294u; + obj203.KillEnemyDataIds = list277; + reference212 = obj203; + obj202.Steps = list276; + reference211 = obj202; + num++; + ref QuestSequence reference213 = ref span273[num]; + QuestSequence obj204 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1002961u, new Vector3(-66.7583f, 0.9667693f, -38.4375f), 148); - obj207.Steps = list284; - reference217 = obj207; - ref QuestSequence reference218 = ref span121[3]; - QuestSequence obj208 = new QuestSequence + List list278 = new List(num2); + CollectionsMarshal.SetCount(list278, num2); + Span span278 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span278[index2] = new QuestStep(EInteractionType.Interact, 1002961u, new Vector3(-66.7583f, 0.9667693f, -38.4375f), 148); + obj204.Steps = list278; + reference213 = obj204; + num++; + ref QuestSequence reference214 = ref span273[num]; + QuestSequence obj205 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - ref QuestStep reference219 = ref CollectionsMarshal.AsSpan(list285)[0]; - QuestStep obj209 = new QuestStep(EInteractionType.Combat, 2000893u, new Vector3(147.02063f, -5.6916504f, -35.50775f), 148) + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + Span span279 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + ref QuestStep reference215 = ref span279[num2]; + QuestStep obj206 = new QuestStep(EInteractionType.Combat, 2000893u, new Vector3(147.02063f, -5.6916504f, -35.50775f), 148) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list286 = new List(num3); - CollectionsMarshal.SetCount(list286, num3); - CollectionsMarshal.AsSpan(list286)[0] = 299u; - obj209.KillEnemyDataIds = list286; - reference219 = obj209; - obj208.Steps = list285; - reference218 = obj208; - ref QuestSequence reference220 = ref span121[4]; - QuestSequence obj210 = new QuestSequence + num4 = 1; + List list280 = new List(num4); + CollectionsMarshal.SetCount(list280, num4); + Span span280 = CollectionsMarshal.AsSpan(list280); + num3 = 0; + span280[num3] = 299u; + obj206.KillEnemyDataIds = list280; + reference215 = obj206; + obj205.Steps = list279; + reference214 = obj205; + num++; + ref QuestSequence reference216 = ref span273[num]; + QuestSequence obj207 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1002962u, new Vector3(155.9624f, -6.358468f, -35.53833f), 148); - obj210.Steps = list287; - reference220 = obj210; - ref QuestSequence reference221 = ref span121[5]; - QuestSequence obj211 = new QuestSequence + List list281 = new List(num2); + CollectionsMarshal.SetCount(list281, num2); + Span span281 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span281[index2] = new QuestStep(EInteractionType.Interact, 1002962u, new Vector3(155.9624f, -6.358468f, -35.53833f), 148); + obj207.Steps = list281; + reference216 = obj207; + num++; + ref QuestSequence reference217 = ref span273[num]; + QuestSequence obj208 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - ref QuestStep reference222 = ref CollectionsMarshal.AsSpan(list288)[0]; - QuestStep obj212 = new QuestStep(EInteractionType.Combat, 2000895u, new Vector3(332.3567f, -31.540405f, 414.69434f), 148) + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + Span span282 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + ref QuestStep reference218 = ref span282[num2]; + QuestStep obj209 = new QuestStep(EInteractionType.Combat, 2000895u, new Vector3(332.3567f, -31.540405f, 414.69434f), 148) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list289 = new List(num3); - CollectionsMarshal.SetCount(list289, num3); - CollectionsMarshal.AsSpan(list289)[0] = 297u; - obj212.KillEnemyDataIds = list289; - reference222 = obj212; - obj211.Steps = list288; - reference221 = obj211; - ref QuestSequence reference223 = ref span121[6]; - QuestSequence obj213 = new QuestSequence + List list283 = new List(num3); + CollectionsMarshal.SetCount(list283, num3); + Span span283 = CollectionsMarshal.AsSpan(list283); + num4 = 0; + span283[num4] = 297u; + obj209.KillEnemyDataIds = list283; + reference218 = obj209; + obj208.Steps = list282; + reference217 = obj208; + num++; + ref QuestSequence reference219 = ref span273[num]; + QuestSequence obj210 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1002963u, new Vector3(335.95776f, -31.68247f, 423.63623f), 148); - obj213.Steps = list290; - reference223 = obj213; - ref QuestSequence reference224 = ref span121[7]; - QuestSequence obj214 = new QuestSequence + List list284 = new List(num2); + CollectionsMarshal.SetCount(list284, num2); + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span284[index2] = new QuestStep(EInteractionType.Interact, 1002963u, new Vector3(335.95776f, -31.68247f, 423.63623f), 148); + obj210.Steps = list284; + reference219 = obj210; + num++; + ref QuestSequence reference220 = ref span273[num]; + QuestSequence obj211 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span285 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span285[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -9751,10 +11720,10 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(440) }; - obj214.Steps = list291; - reference224 = obj214; - questRoot32.QuestSequence = list279; - AddQuest(questId32, questRoot32); + obj211.Steps = list285; + reference220 = obj211; + questRoot31.QuestSequence = list273; + AddQuest(questId31, questRoot31); } private static void LoadQuests2() @@ -9764,13 +11733,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 8; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 8; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -9778,7 +11750,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -9791,21 +11765,25 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1009828u, new Vector3(64.95764f, 20.487333f, -641.01624f), 156) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1009828u, new Vector3(64.95764f, 20.487333f, -641.01624f), 156) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -9813,21 +11791,26 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1009831u, new Vector3(-58.487915f, 3.4366195f, -645.655f), 156) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1009831u, new Vector3(-58.487915f, 3.4366195f, -645.655f), 156) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref QuestStep reference5 = ref span6[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Combat, 1009835u, new Vector3(-103.379944f, -1.3236009f, -615.9304f), 156) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -9835,15 +11818,19 @@ public static class AssemblyQuestLoader int num3 = 3; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span2 = CollectionsMarshal.AsSpan(list7); - span2[0] = 3565u; - span2[1] = 4619u; - span2[2] = 5044u; + Span span7 = CollectionsMarshal.AsSpan(list7); + int num4 = 0; + span7[num4] = 3565u; + num4++; + span7[num4] = 4619u; + num4++; + span7[num4] = 5044u; obj5.KillEnemyDataIds = list7; reference5 = obj5; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -9851,21 +11838,27 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1009835u, new Vector3(-103.379944f, -1.3236009f, -615.9304f), 156); + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.Interact, 1009835u, new Vector3(-103.379944f, -1.3236009f, -615.9304f), 156); obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[5]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 2004633u, new Vector3(-98.74121f, -0.015319824f, -616.5408f), 156); + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.Interact, 2004633u, new Vector3(-98.74121f, -0.015319824f, -616.5408f), 156); obj7.Steps = list9; reference7 = obj7; - ref QuestSequence reference8 = ref span[6]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 6 @@ -9873,18 +11866,23 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1009839u, new Vector3(-95.780945f, -0.42092213f, -625.6962f), 156); + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.Interact, 1009839u, new Vector3(-95.780945f, -0.42092213f, -625.6962f), 156); obj8.Steps = list10; reference8 = obj8; - ref QuestSequence reference9 = ref span[7]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { Fly = true }; @@ -9897,12 +11895,16 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "Cacahuetes"; + Span span12 = CollectionsMarshal.AsSpan(list12); + index = 0; + span12[index] = "Cacahuetes"; questRoot2.Author = list12; - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - ref QuestSequence reference10 = ref CollectionsMarshal.AsSpan(list13)[0]; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference10 = ref span13[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -9910,7 +11912,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - ref QuestStep reference11 = ref CollectionsMarshal.AsSpan(list14)[0]; + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + ref QuestStep reference11 = ref span14[index2]; QuestStep obj11 = new QuestStep(EInteractionType.AcceptQuest, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -9927,10 +11931,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - CollectionsMarshal.AsSpan(list15)[0] = new DialogueChoice + num4 = 1; + List list15 = new List(num4); + CollectionsMarshal.SetCount(list15, num4); + Span span15 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span15[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSROG001_00101_Q1_000_040") @@ -9947,24 +11953,30 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "Cacahuetes"; + Span span16 = CollectionsMarshal.AsSpan(list16); + index = 0; + span16[index] = "Cacahuetes"; questRoot3.Author = list16; - num = 2; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span3 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span3[0]; + index = 2; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + Span span17 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span17[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span3[1]; + num++; + ref QuestSequence reference13 = ref span17[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -9972,12 +11984,14 @@ public static class AssemblyQuestLoader num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span4 = CollectionsMarshal.AsSpan(list19); - span4[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129 }; - ref QuestStep reference14 = ref span4[1]; + index2++; + ref QuestStep reference14 = ref span19[index2]; QuestStep obj14 = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f @@ -9985,7 +11999,9 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = new DialogueChoice + Span span20 = CollectionsMarshal.AsSpan(list20); + num4 = 0; + span20[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSROG011_00102_Q1_000_030") @@ -10002,22 +12018,26 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "liza"; + Span span21 = CollectionsMarshal.AsSpan(list21); + index = 0; + span21[index] = "liza"; questRoot4.Author = list21; - num = 3; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span5 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference15 = ref span5[0]; + index = 3; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + Span span22 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference15 = ref span22[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 4; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span6 = CollectionsMarshal.AsSpan(list23); - span6[0] = new QuestStep(EInteractionType.EquipItem, null, null, 129) + index2 = 4; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 129) { AetheryteShortcut = EAetheryteLocation.Limsa, ItemId = 7952u, @@ -10036,8 +12056,10 @@ public static class AssemblyQuestLoader } } }; - span6[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 129); - span6[2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + num2++; + span23[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 129); + num2++; + span23[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AethernetShortcut = new AethernetShortcut @@ -10053,13 +12075,15 @@ public static class AssemblyQuestLoader } } }; - span6[3] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span23[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference16 = ref span5[1]; + num++; + ref QuestSequence reference16 = ref span22[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -10067,24 +12091,28 @@ public static class AssemblyQuestLoader num2 = 4; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span7 = CollectionsMarshal.AsSpan(list24); - ref QuestStep reference17 = ref span7[0]; + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + ref QuestStep reference17 = ref span24[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) { TargetTerritoryId = (ushort)129 }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = 134; + num4 = 1; + List list25 = new List(num4); + CollectionsMarshal.SetCount(list25, num4); + Span span25 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span25[num3] = 134; skipStepConditions.InTerritory = list25; skipStepConditions.ExtraCondition = EExtraSkipCondition.NotRoguesGuild; skipConditions.StepIf = skipStepConditions; obj17.SkipConditions = skipConditions; reference17 = obj17; - ref QuestStep reference18 = ref span7[1]; + index2++; + ref QuestStep reference18 = ref span24[index2]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(31.662792f, 44.020653f, 146.94322f), 134) { AethernetShortcut = new AethernetShortcut @@ -10097,38 +12125,53 @@ public static class AssemblyQuestLoader num3 = 1; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - ref ComplexCombatData reference19 = ref CollectionsMarshal.AsSpan(list26)[0]; + Span span26 = CollectionsMarshal.AsSpan(list26); + num4 = 0; + ref ComplexCombatData reference19 = ref span26[num4]; ComplexCombatData obj19 = new ComplexCombatData { DataId = 347u, MinimumKillCount = 3u }; - int num4 = 6; - List list27 = new List(num4); - CollectionsMarshal.SetCount(list27, num4); - Span span8 = CollectionsMarshal.AsSpan(list27); - span8[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = null; + int num5 = 6; + List list27 = new List(num5); + CollectionsMarshal.SetCount(list27, num5); + Span span27 = CollectionsMarshal.AsSpan(list27); + int num6 = 0; + span27[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span27[num6] = null; + num6++; + span27[num6] = null; + num6++; + span27[num6] = null; + num6++; + span27[num6] = null; + num6++; + span27[num6] = null; obj19.CompletionQuestVariablesFlags = list27; reference19 = obj19; obj18.ComplexCombatData = list26; - num3 = 6; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span9 = CollectionsMarshal.AsSpan(list28); - span9[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = null; + num4 = 6; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span28[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; obj18.CompletionQuestVariablesFlags = list28; reference18 = obj18; - ref QuestStep reference20 = ref span7[2]; + index2++; + ref QuestStep reference20 = ref span24[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(74.15681f, 45.953808f, 169.73499f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -10136,38 +12179,53 @@ public static class AssemblyQuestLoader num3 = 1; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - ref ComplexCombatData reference21 = ref CollectionsMarshal.AsSpan(list29)[0]; + Span span29 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + ref ComplexCombatData reference21 = ref span29[num4]; ComplexCombatData obj21 = new ComplexCombatData { DataId = 338u, MinimumKillCount = 3u }; - num4 = 6; - List list30 = new List(num4); - CollectionsMarshal.SetCount(list30, num4); - Span span10 = CollectionsMarshal.AsSpan(list30); - span10[0] = null; - span10[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = null; + num6 = 6; + List list30 = new List(num6); + CollectionsMarshal.SetCount(list30, num6); + Span span30 = CollectionsMarshal.AsSpan(list30); + num5 = 0; + span30[num5] = null; + num5++; + span30[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span30[num5] = null; + num5++; + span30[num5] = null; + num5++; + span30[num5] = null; + num5++; + span30[num5] = null; obj21.CompletionQuestVariablesFlags = list30; reference21 = obj21; obj20.ComplexCombatData = list29; - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span11 = CollectionsMarshal.AsSpan(list31); - span11[0] = null; - span11[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = null; + num4 = 6; + List list31 = new List(num4); + CollectionsMarshal.SetCount(list31, num4); + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = null; + num3++; + span31[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; obj20.CompletionQuestVariablesFlags = list31; reference20 = obj20; - ref QuestStep reference22 = ref span7[3]; + index2++; + ref QuestStep reference22 = ref span24[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, null, new Vector3(5.6626997f, 42.625427f, 55.983746f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -10175,49 +12233,65 @@ public static class AssemblyQuestLoader num3 = 1; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - ref ComplexCombatData reference23 = ref CollectionsMarshal.AsSpan(list32)[0]; + Span span32 = CollectionsMarshal.AsSpan(list32); + num4 = 0; + ref ComplexCombatData reference23 = ref span32[num4]; ComplexCombatData obj23 = new ComplexCombatData { DataId = 383u, MinimumKillCount = 3u }; - num4 = 6; - List list33 = new List(num4); - CollectionsMarshal.SetCount(list33, num4); - Span span12 = CollectionsMarshal.AsSpan(list33); - span12[0] = null; - span12[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = null; + num5 = 6; + List list33 = new List(num5); + CollectionsMarshal.SetCount(list33, num5); + Span span33 = CollectionsMarshal.AsSpan(list33); + num6 = 0; + span33[num6] = null; + num6++; + span33[num6] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num6++; + span33[num6] = null; + num6++; + span33[num6] = null; + num6++; + span33[num6] = null; + num6++; + span33[num6] = null; obj23.CompletionQuestVariablesFlags = list33; reference23 = obj23; obj22.ComplexCombatData = list32; - num3 = 6; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span13 = CollectionsMarshal.AsSpan(list34); - span13[0] = null; - span13[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = null; + num4 = 6; + List list34 = new List(num4); + CollectionsMarshal.SetCount(list34, num4); + Span span34 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span34[num3] = null; + num3++; + span34[num3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num3++; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = null; obj22.CompletionQuestVariablesFlags = list34; reference22 = obj22; obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference24 = ref span5[2]; + num++; + ref QuestSequence reference24 = ref span22[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span14 = CollectionsMarshal.AsSpan(list35); - span14[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -10227,7 +12301,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span14[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span35[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(110) @@ -10241,13 +12316,16 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "Cacahuetes"; + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "Cacahuetes"; questRoot5.Author = list36; - num = 2; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span15 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference25 = ref span15[0]; + index = 2; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference25 = ref span37[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -10255,23 +12333,30 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000352u, new Vector3(65.69006f, 8f, -147.41742f), 133); + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000352u, new Vector3(65.69006f, 8f, -147.41742f), 133); obj25.Steps = list38; reference25 = obj25; - ref QuestSequence reference26 = ref span15[1]; + num++; + ref QuestSequence reference26 = ref span37[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list39)[0]; + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + ref QuestStep reference27 = ref span39[num2]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 1000691u, new Vector3(71.97681f, 8f, -166.52173f), 133); num3 = 1; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = new DialogueChoice + Span span40 = CollectionsMarshal.AsSpan(list40); + num4 = 0; + span40[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSTAN000_00105_Q1_000_1") @@ -10287,13 +12372,16 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + Span span41 = CollectionsMarshal.AsSpan(list41); + index = 0; + span41[index] = "liza"; questRoot6.Author = list41; - num = 3; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span16 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference28 = ref span16[0]; + index = 3; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + Span span42 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference28 = ref span42[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -10301,12 +12389,16 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list43)[0]; + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + ref QuestStep reference29 = ref span43[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.AcceptQuest, 1001028u, new Vector3(-39.84137f, 19.999994f, -4.9592285f), 181); - num3 = 1; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = new DialogueChoice + num4 = 1; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + Span span44 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span44[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "opening/OpeningLimsaLominsa", @@ -10317,20 +12409,25 @@ public static class AssemblyQuestLoader reference29 = questStep2; obj27.Steps = list43; reference28 = obj27; - ref QuestSequence reference30 = ref span16[1]; + num++; + ref QuestSequence reference30 = ref span42[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - ref QuestStep reference31 = ref CollectionsMarshal.AsSpan(list45)[0]; + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + ref QuestStep reference31 = ref span45[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1002732u, new Vector3(11.184814f, 20.999336f, 13.321045f), 181); num3 = 1; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new DialogueChoice + Span span46 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span46[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA001_00107_Q1_000_1") @@ -10339,7 +12436,8 @@ public static class AssemblyQuestLoader reference31 = questStep3; obj28.Steps = list45; reference30 = obj28; - ref QuestSequence reference32 = ref span16[2]; + num++; + ref QuestSequence reference32 = ref span42[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -10347,7 +12445,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002697u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 181); + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002697u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 181); obj29.Steps = list47; reference32 = obj29; questRoot6.QuestSequence = list42; @@ -10357,24 +12457,30 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + Span span48 = CollectionsMarshal.AsSpan(list48); + index = 0; + span48[index] = "liza"; questRoot7.Author = list48; - num = 3; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span17 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference33 = ref span17[0]; + index = 3; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + Span span49 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference33 = ref span49[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002697u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 181); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002697u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 181); obj30.Steps = list50; reference33 = obj30; - ref QuestSequence reference34 = ref span17[1]; + num++; + ref QuestSequence reference34 = ref span49[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -10382,55 +12488,74 @@ public static class AssemblyQuestLoader num2 = 11; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span18 = CollectionsMarshal.AsSpan(list51); - span18[0] = new QuestStep(EInteractionType.AcceptQuest, 1002698u, new Vector3(8.499207f, 39.505493f, 3.5552979f), 181) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002698u, new Vector3(8.499207f, 39.505493f, 3.5552979f), 181) { PickUpQuestId = new QuestId(111) }; - ref QuestStep reference35 = ref span18[1]; + index2++; + ref QuestStep reference35 = ref span51[index2]; QuestStep obj32 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - num3 = 6; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span19 = CollectionsMarshal.AsSpan(list52); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list52 = new List(num4); + CollectionsMarshal.SetCount(list52, num4); + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj32.CompletionQuestVariablesFlags = list52; reference35 = obj32; - span18[2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) + index2++; + span51[index2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - ref QuestStep reference36 = ref span18[3]; + index2++; + ref QuestStep reference36 = ref span51[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1001217u, new Vector3(-140.85602f, 18.199999f, 17.013733f), 129); num3 = 6; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span20 = CollectionsMarshal.AsSpan(list53); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span53 = CollectionsMarshal.AsSpan(list53); + num4 = 0; + span53[num4] = null; + num4++; + span53[num4] = null; + num4++; + span53[num4] = null; + num4++; + span53[num4] = null; + num4++; + span53[num4] = null; + num4++; + span53[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list53; reference36 = questStep4; - span18[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span51[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaHawkersAlley }; - span18[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span51[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaArcanist }; - span18[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span51[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaFisher, AethernetShortcut = new AethernetShortcut @@ -10439,7 +12564,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaHawkersAlley } }; - span18[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) + index2++; + span51[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) { TargetTerritoryId = (ushort)128, Comment = "Walk to Culinarians' Guild", @@ -10449,48 +12575,60 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Limsa } }; - span18[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span51[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaCulinarian }; - span18[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span51[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaMarauder }; - ref QuestStep reference37 = ref span18[10]; + index2++; + ref QuestStep reference37 = ref span51[index2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128) { Comment = "MRD Receptionist" }; - num3 = 6; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span21 = CollectionsMarshal.AsSpan(list54); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list54 = new List(num4); + CollectionsMarshal.SetCount(list54, num4); + Span span54 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj33.CompletionQuestVariablesFlags = list54; reference37 = obj33; obj31.Steps = list51; reference34 = obj31; - ref QuestSequence reference38 = ref span17[2]; + num++; + ref QuestSequence reference38 = ref span49[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 6; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span22 = CollectionsMarshal.AsSpan(list55); - span22[0] = new QuestStep(EInteractionType.Interact, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128) + index2 = 6; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.Interact, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128) { Disabled = true, Comment = "Pick up Class Quest" }; - span22[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + num2++; + span55[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaAftcastle, SkipConditions = new SkipConditions @@ -10498,7 +12636,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span22[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) + num2++; + span55[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) { Aetheryte = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, AethernetShortcut = new AethernetShortcut @@ -10511,7 +12650,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span22[3] = new QuestStep(EInteractionType.None, null, null, 134) + num2++; + span55[num2] = new QuestStep(EInteractionType.None, null, null, 134) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -10519,7 +12659,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span22[4] = new QuestStep(EInteractionType.None, null, null, 129) + num2++; + span55[num2] = new QuestStep(EInteractionType.None, null, null, 129) { AethernetShortcut = new AethernetShortcut { @@ -10531,7 +12672,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span22[5] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + num2++; + span55[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj34.Steps = list55; reference38 = obj34; questRoot7.QuestSequence = list49; @@ -10541,13 +12683,16 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "liza"; + Span span56 = CollectionsMarshal.AsSpan(list56); + index = 0; + span56[index] = "liza"; questRoot8.Author = list56; - num = 3; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span23 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference39 = ref span23[0]; + index = 3; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + Span span57 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference39 = ref span57[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -10555,23 +12700,28 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002697u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 181); + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002697u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 181); obj35.Steps = list58; reference39 = obj35; - ref QuestSequence reference40 = ref span23[1]; + num++; + ref QuestSequence reference40 = ref span57[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - Span span24 = CollectionsMarshal.AsSpan(list59); - span24[0] = new QuestStep(EInteractionType.AcceptQuest, 1002698u, new Vector3(8.499207f, 39.505493f, 3.5552979f), 181) + index2 = 7; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002698u, new Vector3(8.499207f, 39.505493f, 3.5552979f), 181) { PickUpQuestId = new QuestId(111) }; - ref QuestStep reference41 = ref span24[1]; + num2++; + ref QuestStep reference41 = ref span59[num2]; QuestStep obj37 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa @@ -10579,42 +12729,59 @@ public static class AssemblyQuestLoader num3 = 6; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - Span span25 = CollectionsMarshal.AsSpan(list60); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span60 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span60[num4] = null; + num4++; + span60[num4] = null; + num4++; + span60[num4] = null; + num4++; + span60[num4] = null; + num4++; + span60[num4] = null; + num4++; + span60[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj37.CompletionQuestVariablesFlags = list60; reference41 = obj37; - span24[2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) + num2++; + span59[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - ref QuestStep reference42 = ref span24[3]; + num2++; + ref QuestStep reference42 = ref span59[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1001217u, new Vector3(-140.85602f, 18.199999f, 17.013733f), 129); - num3 = 6; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span26 = CollectionsMarshal.AsSpan(list61); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list61 = new List(num4); + CollectionsMarshal.SetCount(list61, num4); + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list61; reference42 = questStep5; - span24[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + num2++; + span59[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaHawkersAlley }; - span24[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + num2++; + span59[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaArcanist }; - ref QuestStep reference43 = ref span24[6]; + num2++; + ref QuestStep reference43 = ref span59[num2]; QuestStep obj38 = new QuestStep(EInteractionType.Interact, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129) { Comment = "ACN Receptionist" @@ -10622,18 +12789,25 @@ public static class AssemblyQuestLoader num3 = 6; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - Span span27 = CollectionsMarshal.AsSpan(list62); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span62 = CollectionsMarshal.AsSpan(list62); + num4 = 0; + span62[num4] = null; + num4++; + span62[num4] = null; + num4++; + span62[num4] = null; + num4++; + span62[num4] = null; + num4++; + span62[num4] = null; + num4++; + span62[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj38.CompletionQuestVariablesFlags = list62; reference43 = obj38; obj36.Steps = list59; reference40 = obj36; - ref QuestSequence reference44 = ref span23[2]; + num++; + ref QuestSequence reference44 = ref span57[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -10641,13 +12815,15 @@ public static class AssemblyQuestLoader num2 = 10; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span28 = CollectionsMarshal.AsSpan(list63); - span28[0] = new QuestStep(EInteractionType.Interact, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129) + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.Interact, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129) { Disabled = true, Comment = "Pick up Class Quest" }; - span28[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span63[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaFisher, AethernetShortcut = new AethernetShortcut @@ -10656,7 +12832,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaHawkersAlley } }; - span28[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) + index2++; + span63[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) { TargetTerritoryId = (ushort)128, Comment = "Walk to Culinarians' Guild", @@ -10666,15 +12843,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Limsa } }; - span28[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span63[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaCulinarian }; - span28[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span63[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaMarauder }; - span28[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span63[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaAftcastle, SkipConditions = new SkipConditions @@ -10682,7 +12862,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span28[6] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) + index2++; + span63[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) { Aetheryte = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, AethernetShortcut = new AethernetShortcut @@ -10695,7 +12876,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span28[7] = new QuestStep(EInteractionType.None, null, null, 134) + index2++; + span63[index2] = new QuestStep(EInteractionType.None, null, null, 134) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -10703,7 +12885,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span28[8] = new QuestStep(EInteractionType.None, null, null, 129) + index2++; + span63[index2] = new QuestStep(EInteractionType.None, null, null, 129) { AethernetShortcut = new AethernetShortcut { @@ -10715,7 +12898,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span28[9] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + index2++; + span63[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj39.Steps = list63; reference44 = obj39; questRoot8.QuestSequence = list57; @@ -10725,22 +12909,26 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + Span span64 = CollectionsMarshal.AsSpan(list64); + index = 0; + span64[index] = "liza"; questRoot9.Author = list64; - num = 10; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span29 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference45 = ref span29[0]; + index = 10; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + Span span65 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference45 = ref span65[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - Span span30 = CollectionsMarshal.AsSpan(list66); - span30[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -10761,13 +12949,15 @@ public static class AssemblyQuestLoader } } }; - span30[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span66[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj40.Steps = list66; reference45 = obj40; - ref QuestSequence reference46 = ref span29[1]; + num++; + ref QuestSequence reference46 = ref span65[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 @@ -10775,37 +12965,44 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1010197u, new Vector3(-150.98804f, -129.4397f, 266.31567f), 129) + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.Interact, 1010197u, new Vector3(-150.98804f, -129.4397f, 266.31567f), 129) { StopDistance = 7f }; obj41.Steps = list67; reference46 = obj41; - ref QuestSequence reference47 = ref span29[2]; + num++; + ref QuestSequence reference47 = ref span65[num]; QuestSequence obj42 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span31 = CollectionsMarshal.AsSpan(list68); - ref QuestStep reference48 = ref span31[0]; + index2 = 2; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + ref QuestStep reference48 = ref span68[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) { TargetTerritoryId = (ushort)129 }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = 135; + num4 = 1; + List list69 = new List(num4); + CollectionsMarshal.SetCount(list69, num4); + Span span69 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span69[num3] = 135; skipStepConditions2.InTerritory = list69; skipConditions2.StepIf = skipStepConditions2; obj43.SkipConditions = skipConditions2; reference48 = obj43; - ref QuestStep reference49 = ref span31[1]; + num2++; + ref QuestStep reference49 = ref span68[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, null, new Vector3(174.3623f, 39.811382f, 52.27733f), 135) { Fly = true, @@ -10819,12 +13016,15 @@ public static class AssemblyQuestLoader num3 = 1; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = 324u; + Span span70 = CollectionsMarshal.AsSpan(list70); + num4 = 0; + span70[num4] = 324u; obj44.KillEnemyDataIds = list70; reference49 = obj44; obj42.Steps = list68; reference47 = obj42; - ref QuestSequence reference50 = ref span29[3]; + num++; + ref QuestSequence reference50 = ref span65[num]; QuestSequence obj45 = new QuestSequence { Sequence = 3 @@ -10832,8 +13032,9 @@ public static class AssemblyQuestLoader num2 = 2; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span32 = CollectionsMarshal.AsSpan(list71); - span32[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -10854,22 +13055,25 @@ public static class AssemblyQuestLoader } } }; - span32[1] = new QuestStep(EInteractionType.Interact, 1010197u, new Vector3(-150.98804f, -129.4397f, 266.31567f), 129) + index2++; + span71[index2] = new QuestStep(EInteractionType.Interact, 1010197u, new Vector3(-150.98804f, -129.4397f, 266.31567f), 129) { StopDistance = 7f }; obj45.Steps = list71; reference50 = obj45; - ref QuestSequence reference51 = ref span29[4]; + num++; + ref QuestSequence reference51 = ref span65[num]; QuestSequence obj46 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span33 = CollectionsMarshal.AsSpan(list72); - span33[0] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) { TargetTerritoryId = (ushort)129, SkipConditions = new SkipConditions @@ -10880,7 +13084,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference52 = ref span33[1]; + num2++; + ref QuestStep reference52 = ref span72[num2]; QuestStep obj47 = new QuestStep(EInteractionType.Interact, 1005411u, new Vector3(13.412659f, 40.2f, -13.260071f), 128) { AethernetShortcut = new AethernetShortcut @@ -10889,10 +13094,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = new DialogueChoice + num4 = 1; + List list73 = new List(num4); + CollectionsMarshal.SetCount(list73, num4); + Span span73 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span73[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSROG050_00110_Q1_000_061"), @@ -10902,7 +13109,8 @@ public static class AssemblyQuestLoader reference52 = obj47; obj46.Steps = list72; reference51 = obj46; - ref QuestSequence reference53 = ref span29[5]; + num++; + ref QuestSequence reference53 = ref span65[num]; QuestSequence obj48 = new QuestSequence { Sequence = 5 @@ -10910,7 +13118,9 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1010206u, new Vector3(107.71338f, 47.783855f, 50.736206f), 134) + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.Interact, 1010206u, new Vector3(107.71338f, 47.783855f, 50.736206f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -10921,15 +13131,18 @@ public static class AssemblyQuestLoader }; obj48.Steps = list74; reference53 = obj48; - ref QuestSequence reference54 = ref span29[6]; + num++; + ref QuestSequence reference54 = ref span65[num]; QuestSequence obj49 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list75)[0]; + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + ref QuestStep reference55 = ref span75[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(101.76026f, 48.69752f, 10.89893f), 134) { Fly = true, @@ -10938,12 +13151,15 @@ public static class AssemblyQuestLoader num3 = 1; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = 769u; + Span span76 = CollectionsMarshal.AsSpan(list76); + num4 = 0; + span76[num4] = 769u; obj50.KillEnemyDataIds = list76; reference55 = obj50; obj49.Steps = list75; reference54 = obj49; - ref QuestSequence reference56 = ref span29[7]; + num++; + ref QuestSequence reference56 = ref span65[num]; QuestSequence obj51 = new QuestSequence { Sequence = 7 @@ -10951,19 +13167,23 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1010206u, new Vector3(107.71338f, 47.783855f, 50.736206f), 134); + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.Interact, 1010206u, new Vector3(107.71338f, 47.783855f, 50.736206f), 134); obj51.Steps = list77; reference56 = obj51; - ref QuestSequence reference57 = ref span29[8]; + num++; + ref QuestSequence reference57 = ref span65[num]; QuestSequence obj52 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span34 = CollectionsMarshal.AsSpan(list78); - span34[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -10984,13 +13204,15 @@ public static class AssemblyQuestLoader } } }; - span34[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span78[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj52.Steps = list78; reference57 = obj52; - ref QuestSequence reference58 = ref span29[9]; + num++; + ref QuestSequence reference58 = ref span65[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -10998,7 +13220,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(126) @@ -11012,24 +13236,30 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + Span span80 = CollectionsMarshal.AsSpan(list80); + index = 0; + span80[index] = "liza"; questRoot10.Author = list80; - num = 4; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span35 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference59 = ref span35[0]; + index = 4; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + Span span81 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference59 = ref span81[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002698u, new Vector3(8.499207f, 39.505493f, 3.5552979f), 181); + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002698u, new Vector3(8.499207f, 39.505493f, 3.5552979f), 181); obj54.Steps = list82; reference59 = obj54; - ref QuestSequence reference60 = ref span35[1]; + num++; + ref QuestSequence reference60 = ref span81[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -11037,12 +13267,16 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list83)[0]; + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + ref QuestStep reference61 = ref span83[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1000969u, new Vector3(7.9193726f, 40.000175f, 17.471558f), 181); - num3 = 1; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = new DialogueChoice + num4 = 1; + List list84 = new List(num4); + CollectionsMarshal.SetCount(list84, num4); + Span span84 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span84[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "quest/001/ManSea001_00107", @@ -11052,102 +13286,146 @@ public static class AssemblyQuestLoader reference61 = questStep6; obj55.Steps = list83; reference60 = obj55; - ref QuestSequence reference62 = ref span35[2]; + num++; + ref QuestSequence reference62 = ref span81[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span36 = CollectionsMarshal.AsSpan(list85); - ref QuestStep reference63 = ref span36[0]; + index2 = 6; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference63 = ref span85[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2001563u, new Vector3(3.616333f, 20.004517f, 9.750427f), 129); num3 = 6; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span37 = CollectionsMarshal.AsSpan(list86); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span86 = CollectionsMarshal.AsSpan(list86); + num4 = 0; + span86[num4] = null; + num4++; + span86[num4] = null; + num4++; + span86[num4] = null; + num4++; + span86[num4] = null; + num4++; + span86[num4] = null; + num4++; + span86[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list86; reference63 = questStep7; - ref QuestStep reference64 = ref span36[1]; + num2++; + ref QuestStep reference64 = ref span85[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2001564u, new Vector3(-3.0671387f, 20.004517f, 9.964111f), 129); - num3 = 6; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - Span span38 = CollectionsMarshal.AsSpan(list87); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list87 = new List(num4); + CollectionsMarshal.SetCount(list87, num4); + Span span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list87; reference64 = questStep8; - ref QuestStep reference65 = ref span36[2]; + num2++; + ref QuestStep reference65 = ref span85[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2001565u, new Vector3(-11.39856f, 19.97406f, 6.6376343f), 129); num3 = 6; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - Span span39 = CollectionsMarshal.AsSpan(list88); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span88 = CollectionsMarshal.AsSpan(list88); + num4 = 0; + span88[num4] = null; + num4++; + span88[num4] = null; + num4++; + span88[num4] = null; + num4++; + span88[num4] = null; + num4++; + span88[num4] = null; + num4++; + span88[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list88; reference65 = questStep9; - ref QuestStep reference66 = ref span36[3]; + num2++; + ref QuestStep reference66 = ref span85[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2001566u, new Vector3(-18.32611f, 20.004517f, 1.7241821f), 129); - num3 = 6; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - Span span40 = CollectionsMarshal.AsSpan(list89); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list89 = new List(num4); + CollectionsMarshal.SetCount(list89, num4); + Span span89 = CollectionsMarshal.AsSpan(list89); + num3 = 0; + span89[num3] = null; + num3++; + span89[num3] = null; + num3++; + span89[num3] = null; + num3++; + span89[num3] = null; + num3++; + span89[num3] = null; + num3++; + span89[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list89; reference66 = questStep10; - ref QuestStep reference67 = ref span36[4]; + num2++; + ref QuestStep reference67 = ref span85[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2001567u, new Vector3(-30.47229f, 19.97406f, 0.8086548f), 129); num3 = 6; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - Span span41 = CollectionsMarshal.AsSpan(list90); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span90 = CollectionsMarshal.AsSpan(list90); + num4 = 0; + span90[num4] = null; + num4++; + span90[num4] = null; + num4++; + span90[num4] = null; + num4++; + span90[num4] = null; + num4++; + span90[num4] = null; + num4++; + span90[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list90; reference67 = questStep11; - ref QuestStep reference68 = ref span36[5]; + num2++; + ref QuestStep reference68 = ref span85[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2001568u, new Vector3(-44.724243f, 20.004517f, -0.5036011f), 129); - num3 = 6; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - Span span42 = CollectionsMarshal.AsSpan(list91); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list91 = new List(num4); + CollectionsMarshal.SetCount(list91, num4); + Span span91 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + span91[num3] = null; + num3++; + span91[num3] = null; + num3++; + span91[num3] = null; + num3++; + span91[num3] = null; + num3++; + span91[num3] = null; + num3++; + span91[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list91; reference68 = questStep12; obj56.Steps = list85; reference62 = obj56; - ref QuestSequence reference69 = ref span35[3]; + num++; + ref QuestSequence reference69 = ref span81[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -11155,7 +13433,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003604u, new Vector3(-60.44104f, 18.00033f, -4.348877f), 129); + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003604u, new Vector3(-60.44104f, 18.00033f, -4.348877f), 129); obj57.Steps = list92; reference69 = obj57; questRoot10.QuestSequence = list81; @@ -11165,24 +13445,30 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "liza"; + Span span93 = CollectionsMarshal.AsSpan(list93); + index = 0; + span93[index] = "liza"; questRoot11.Author = list93; - num = 3; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span43 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference70 = ref span43[0]; + index = 3; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + Span span94 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference70 = ref span94[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003604u, new Vector3(-60.44104f, 18.00033f, -4.348877f), 129); + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003604u, new Vector3(-60.44104f, 18.00033f, -4.348877f), 129); obj58.Steps = list95; reference70 = obj58; - ref QuestSequence reference71 = ref span43[1]; + num++; + ref QuestSequence reference71 = ref span94[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 @@ -11190,18 +13476,23 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1003274u, new Vector3(-110.46008f, 18f, 15.701477f), 129); + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.Interact, 1003274u, new Vector3(-110.46008f, 18f, 15.701477f), 129); obj59.Steps = list96; reference71 = obj59; - ref QuestSequence reference72 = ref span43[2]; + num++; + ref QuestSequence reference72 = ref span94[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003275u, new Vector3(-147.1123f, 18.2f, 14.358704f), 129); + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span97[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003275u, new Vector3(-147.1123f, 18.2f, 14.358704f), 129); obj60.Steps = list97; reference72 = obj60; questRoot11.QuestSequence = list94; @@ -11211,13 +13502,16 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "liza"; + Span span98 = CollectionsMarshal.AsSpan(list98); + index = 0; + span98[index] = "liza"; questRoot12.Author = list98; - num = 3; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span44 = CollectionsMarshal.AsSpan(list99); - ref QuestSequence reference73 = ref span44[0]; + index = 3; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + Span span99 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference73 = ref span99[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -11225,18 +13519,23 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001209u, new Vector3(-103.74609f, 18.500334f, 16.03717f), 129); + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001209u, new Vector3(-103.74609f, 18.500334f, 16.03717f), 129); obj61.Steps = list100; reference73 = obj61; - ref QuestSequence reference74 = ref span44[1]; + num++; + ref QuestSequence reference74 = ref span99[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1000898u, new Vector3(-342.21405f, 12.893799f, 3.4942627f), 129) + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.Interact, 1000898u, new Vector3(-342.21405f, 12.893799f, 3.4942627f), 129) { AethernetShortcut = new AethernetShortcut { @@ -11246,7 +13545,8 @@ public static class AssemblyQuestLoader }; obj62.Steps = list101; reference74 = obj62; - ref QuestSequence reference75 = ref span44[2]; + num++; + ref QuestSequence reference75 = ref span99[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue @@ -11254,7 +13554,9 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001209u, new Vector3(-103.74609f, 18.500334f, 16.03717f), 129) + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span102[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001209u, new Vector3(-103.74609f, 18.500334f, 16.03717f), 129) { AethernetShortcut = new AethernetShortcut { @@ -11271,24 +13573,30 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "liza"; + Span span103 = CollectionsMarshal.AsSpan(list103); + index = 0; + span103[index] = "liza"; questRoot13.Author = list103; - num = 3; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span45 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference76 = ref span45[0]; + index = 3; + List list104 = new List(index); + CollectionsMarshal.SetCount(list104, index); + Span span104 = CollectionsMarshal.AsSpan(list104); + num = 0; + ref QuestSequence reference76 = ref span104[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001217u, new Vector3(-140.85602f, 18.199999f, 17.013733f), 129); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001217u, new Vector3(-140.85602f, 18.199999f, 17.013733f), 129); obj64.Steps = list105; reference76 = obj64; - ref QuestSequence reference77 = ref span45[1]; + num++; + ref QuestSequence reference77 = ref span104[num]; QuestSequence obj65 = new QuestSequence { Sequence = 1 @@ -11296,60 +13604,84 @@ public static class AssemblyQuestLoader num2 = 3; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span46 = CollectionsMarshal.AsSpan(list106); - ref QuestStep reference78 = ref span46[0]; + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + ref QuestStep reference78 = ref span106[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1001203u, new Vector3(-156.6034f, 18.2f, 20.920044f), 129); num3 = 6; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span47 = CollectionsMarshal.AsSpan(list107); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span107 = CollectionsMarshal.AsSpan(list107); + num4 = 0; + span107[num4] = null; + num4++; + span107[num4] = null; + num4++; + span107[num4] = null; + num4++; + span107[num4] = null; + num4++; + span107[num4] = null; + num4++; + span107[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list107; reference78 = questStep13; - ref QuestStep reference79 = ref span46[1]; + index2++; + ref QuestStep reference79 = ref span106[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1001208u, new Vector3(-228.16821f, 16f, 50.644653f), 129); - num3 = 6; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - Span span48 = CollectionsMarshal.AsSpan(list108); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list108 = new List(num4); + CollectionsMarshal.SetCount(list108, num4); + Span span108 = CollectionsMarshal.AsSpan(list108); + num3 = 0; + span108[num3] = null; + num3++; + span108[num3] = null; + num3++; + span108[num3] = null; + num3++; + span108[num3] = null; + num3++; + span108[num3] = null; + num3++; + span108[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list108; reference79 = questStep14; - ref QuestStep reference80 = ref span46[2]; + index2++; + ref QuestStep reference80 = ref span106[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1003254u, new Vector3(-246.60114f, 16.199999f, 37.125122f), 129); num3 = 6; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - Span span49 = CollectionsMarshal.AsSpan(list109); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span109 = CollectionsMarshal.AsSpan(list109); + num4 = 0; + span109[num4] = null; + num4++; + span109[num4] = null; + num4++; + span109[num4] = null; + num4++; + span109[num4] = null; + num4++; + span109[num4] = null; + num4++; + span109[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list109; reference80 = questStep15; obj65.Steps = list106; reference77 = obj65; - ref QuestSequence reference81 = ref span45[2]; + num++; + ref QuestSequence reference81 = ref span104[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003272u, new Vector3(-262.92822f, 16.2f, 51.407593f), 129); + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span110[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003272u, new Vector3(-262.92822f, 16.2f, 51.407593f), 129); obj66.Steps = list110; reference81 = obj66; questRoot13.QuestSequence = list104; @@ -11359,13 +13691,16 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "liza"; + Span span111 = CollectionsMarshal.AsSpan(list111); + index = 0; + span111[index] = "liza"; questRoot14.Author = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span50 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference82 = ref span50[0]; + index = 3; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + Span span112 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference82 = ref span112[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -11373,18 +13708,23 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000898u, new Vector3(-342.21405f, 12.893799f, 3.4942627f), 129); + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000898u, new Vector3(-342.21405f, 12.893799f, 3.4942627f), 129); obj67.Steps = list113; reference82 = obj67; - ref QuestSequence reference83 = ref span50[1]; + num++; + ref QuestSequence reference83 = ref span112[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1001023u, new Vector3(-78.62976f, 18.000334f, -22.62915f), 129) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.Interact, 1001023u, new Vector3(-78.62976f, 18.000334f, -22.62915f), 129) { AethernetShortcut = new AethernetShortcut { @@ -11394,7 +13734,8 @@ public static class AssemblyQuestLoader }; obj68.Steps = list114; reference83 = obj68; - ref QuestSequence reference84 = ref span50[2]; + num++; + ref QuestSequence reference84 = ref span112[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -11402,7 +13743,9 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001537u, new Vector3(-58.854065f, 42.299744f, -164.08032f), 128) + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001537u, new Vector3(-58.854065f, 42.299744f, -164.08032f), 128) { AethernetShortcut = new AethernetShortcut { @@ -11419,21 +13762,26 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "UcanPatates"; + Span span116 = CollectionsMarshal.AsSpan(list116); + index = 0; + span116[index] = "UcanPatates"; questRoot15.Author = list116; - num = 4; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span51 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference85 = ref span51[0]; + index = 4; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + Span span117 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference85 = ref span117[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - ref QuestStep reference86 = ref CollectionsMarshal.AsSpan(list118)[0]; + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + ref QuestStep reference86 = ref span118[num2]; QuestStep obj71 = new QuestStep(EInteractionType.AcceptQuest, 1000959u, new Vector3(-65.62909f, 41.999985f, -139.45221f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -11445,19 +13793,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 2; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - Span span52 = CollectionsMarshal.AsSpan(list119); - span52[0] = 129; - span52[1] = 128; + num4 = 2; + List list119 = new List(num4); + CollectionsMarshal.SetCount(list119, num4); + Span span119 = CollectionsMarshal.AsSpan(list119); + num3 = 0; + span119[num3] = 129; + num3++; + span119[num3] = 128; skipAetheryteCondition.InTerritory = list119; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition; obj71.SkipConditions = skipConditions3; reference86 = obj71; obj70.Steps = list118; reference85 = obj70; - ref QuestSequence reference87 = ref span51[1]; + num++; + ref QuestSequence reference87 = ref span117[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -11465,7 +13816,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list120)[0]; + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + ref QuestStep reference88 = ref span120[index2]; QuestStep obj73 = new QuestStep(EInteractionType.Interact, 1003603u, new Vector3(20.34021f, 20f, 4.3182373f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -11480,9 +13833,11 @@ public static class AssemblyQuestLoader num3 = 2; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - Span span53 = CollectionsMarshal.AsSpan(list121); - span53[0] = 129; - span53[1] = 128; + Span span121 = CollectionsMarshal.AsSpan(list121); + num4 = 0; + span121[num4] = 129; + num4++; + span121[num4] = 128; skipAetheryteCondition2.InTerritory = list121; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition2; skipConditions4.AethernetShortcutIf = new SkipAetheryteCondition @@ -11493,82 +13848,104 @@ public static class AssemblyQuestLoader reference88 = obj73; obj72.Steps = list120; reference87 = obj72; - ref QuestSequence reference89 = ref span51[2]; + num++; + ref QuestSequence reference89 = ref span117[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - Span span54 = CollectionsMarshal.AsSpan(list122); - ref QuestStep reference90 = ref span54[0]; + index2 = 2; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + ref QuestStep reference90 = ref span122[num2]; QuestStep obj75 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(64.20255f, 19.94936f, 1.0639327f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 134; + num4 = 1; + List list123 = new List(num4); + CollectionsMarshal.SetCount(list123, num4); + Span span123 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span123[num3] = 134; skipStepConditions3.InTerritory = list123; skipConditions5.StepIf = skipStepConditions3; SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); num3 = 2; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - Span span55 = CollectionsMarshal.AsSpan(list124); - span55[0] = 134; - span55[1] = 129; + Span span124 = CollectionsMarshal.AsSpan(list124); + num4 = 0; + span124[num4] = 134; + num4++; + span124[num4] = 129; skipAetheryteCondition3.InTerritory = list124; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition3; obj75.SkipConditions = skipConditions5; reference90 = obj75; - ref QuestStep reference91 = ref span54[1]; + num2++; + ref QuestStep reference91 = ref span122[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, 338u, new Vector3(130.05261f, 51.719154f, 185.6565f), 134) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - ref ComplexCombatData reference92 = ref CollectionsMarshal.AsSpan(list125)[0]; + num4 = 1; + List list125 = new List(num4); + CollectionsMarshal.SetCount(list125, num4); + Span span125 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + ref ComplexCombatData reference92 = ref span125[num3]; ComplexCombatData obj77 = new ComplexCombatData { DataId = 338u, MinimumKillCount = 4u }; - num4 = 6; - List list126 = new List(num4); - CollectionsMarshal.SetCount(list126, num4); - Span span56 = CollectionsMarshal.AsSpan(list126); - span56[0] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = null; + num6 = 6; + List list126 = new List(num6); + CollectionsMarshal.SetCount(list126, num6); + Span span126 = CollectionsMarshal.AsSpan(list126); + num5 = 0; + span126[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span126[num5] = null; + num5++; + span126[num5] = null; + num5++; + span126[num5] = null; + num5++; + span126[num5] = null; + num5++; + span126[num5] = null; obj77.CompletionQuestVariablesFlags = list126; reference92 = obj77; obj76.ComplexCombatData = list125; num3 = 6; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - Span span57 = CollectionsMarshal.AsSpan(list127); - span57[0] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = null; + Span span127 = CollectionsMarshal.AsSpan(list127); + num4 = 0; + span127[num4] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span127[num4] = null; + num4++; + span127[num4] = null; + num4++; + span127[num4] = null; + num4++; + span127[num4] = null; + num4++; + span127[num4] = null; obj76.CompletionQuestVariablesFlags = list127; reference91 = obj76; obj74.Steps = list122; reference89 = obj74; - ref QuestSequence reference93 = ref span51[3]; + num++; + ref QuestSequence reference93 = ref span117[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -11576,23 +13953,27 @@ public static class AssemblyQuestLoader num2 = 2; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span58 = CollectionsMarshal.AsSpan(list128); - ref QuestStep reference94 = ref span58[0]; + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + ref QuestStep reference94 = ref span128[index2]; QuestStep obj79 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-57.281883f, 33.088005f, 160.24603f), 134) { Fly = true }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = 134; + num4 = 1; + List list129 = new List(num4); + CollectionsMarshal.SetCount(list129, num4); + Span span129 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span129[num3] = 134; skipStepConditions4.NotInTerritory = list129; skipConditions6.StepIf = skipStepConditions4; obj79.SkipConditions = skipConditions6; reference94 = obj79; - ref QuestStep reference95 = ref span58[1]; + index2++; + ref QuestStep reference95 = ref span128[index2]; QuestStep obj80 = new QuestStep(EInteractionType.CompleteQuest, 1000959u, new Vector3(-65.62909f, 41.999985f, -139.45221f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -11607,9 +13988,11 @@ public static class AssemblyQuestLoader num3 = 2; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span59 = CollectionsMarshal.AsSpan(list130); - span59[0] = 129; - span59[1] = 128; + Span span130 = CollectionsMarshal.AsSpan(list130); + num4 = 0; + span130[num4] = 129; + num4++; + span130[num4] = 128; skipAetheryteCondition4.InTerritory = list130; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition4; obj80.SkipConditions = skipConditions7; @@ -11623,21 +14006,26 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "UcanPatates"; + Span span131 = CollectionsMarshal.AsSpan(list131); + index = 0; + span131[index] = "UcanPatates"; questRoot16.Author = list131; - num = 4; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span60 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference96 = ref span60[0]; + index = 4; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + Span span132 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference96 = ref span132[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list133)[0]; + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + ref QuestStep reference97 = ref span133[num2]; QuestStep obj82 = new QuestStep(EInteractionType.AcceptQuest, 1001537u, new Vector3(-58.854065f, 42.299744f, -164.08032f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -11649,19 +14037,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions8 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition5 = new SkipAetheryteCondition(); - num3 = 2; - List list134 = new List(num3); - CollectionsMarshal.SetCount(list134, num3); - Span span61 = CollectionsMarshal.AsSpan(list134); - span61[0] = 129; - span61[1] = 128; + num4 = 2; + List list134 = new List(num4); + CollectionsMarshal.SetCount(list134, num4); + Span span134 = CollectionsMarshal.AsSpan(list134); + num3 = 0; + span134[num3] = 129; + num3++; + span134[num3] = 128; skipAetheryteCondition5.InTerritory = list134; skipConditions8.AetheryteShortcutIf = skipAetheryteCondition5; obj82.SkipConditions = skipConditions8; reference97 = obj82; obj81.Steps = list133; reference96 = obj81; - ref QuestSequence reference98 = ref span60[1]; + num++; + ref QuestSequence reference98 = ref span132[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -11669,7 +14060,9 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list135)[0]; + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + ref QuestStep reference99 = ref span135[index2]; QuestStep obj84 = new QuestStep(EInteractionType.Interact, 1000957u, new Vector3(-49.271423f, 43.999977f, -146.37988f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -11684,24 +14077,29 @@ public static class AssemblyQuestLoader num3 = 2; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - Span span62 = CollectionsMarshal.AsSpan(list136); - span62[0] = 129; - span62[1] = 128; + Span span136 = CollectionsMarshal.AsSpan(list136); + num4 = 0; + span136[num4] = 129; + num4++; + span136[num4] = 128; skipAetheryteCondition6.InTerritory = list136; skipConditions9.AetheryteShortcutIf = skipAetheryteCondition6; obj84.SkipConditions = skipConditions9; reference99 = obj84; obj83.Steps = list135; reference98 = obj83; - ref QuestSequence reference100 = ref span60[2]; + num++; + ref QuestSequence reference100 = ref span132[num]; QuestSequence obj85 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - ref QuestStep reference101 = ref CollectionsMarshal.AsSpan(list137)[0]; + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + ref QuestStep reference101 = ref span137[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 1000937u, new Vector3(-12.222534f, 44.99988f, -251.88074f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -11713,19 +14111,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions10 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition7 = new SkipAetheryteCondition(); - num3 = 2; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span63 = CollectionsMarshal.AsSpan(list138); - span63[0] = 129; - span63[1] = 128; + num4 = 2; + List list138 = new List(num4); + CollectionsMarshal.SetCount(list138, num4); + Span span138 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span138[num3] = 129; + num3++; + span138[num3] = 128; skipAetheryteCondition7.InTerritory = list138; skipConditions10.AetheryteShortcutIf = skipAetheryteCondition7; obj86.SkipConditions = skipConditions10; reference101 = obj86; obj85.Steps = list137; reference100 = obj85; - ref QuestSequence reference102 = ref span60[3]; + num++; + ref QuestSequence reference102 = ref span132[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -11733,7 +14134,9 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - ref QuestStep reference103 = ref CollectionsMarshal.AsSpan(list139)[0]; + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + ref QuestStep reference103 = ref span139[index2]; QuestStep obj88 = new QuestStep(EInteractionType.CompleteQuest, 1000957u, new Vector3(-49.271423f, 43.999977f, -146.37988f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -11748,9 +14151,11 @@ public static class AssemblyQuestLoader num3 = 2; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - Span span64 = CollectionsMarshal.AsSpan(list140); - span64[0] = 129; - span64[1] = 128; + Span span140 = CollectionsMarshal.AsSpan(list140); + num4 = 0; + span140[num4] = 129; + num4++; + span140[num4] = 128; skipAetheryteCondition8.InTerritory = list140; skipConditions11.AetheryteShortcutIf = skipAetheryteCondition8; obj88.SkipConditions = skipConditions11; @@ -11764,24 +14169,30 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "liza"; + Span span141 = CollectionsMarshal.AsSpan(list141); + index = 0; + span141[index] = "liza"; questRoot17.Author = list141; - num = 2; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span65 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference104 = ref span65[0]; + index = 2; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + Span span142 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference104 = ref span142[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129); + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + Span span143 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span143[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129); obj89.Steps = list143; reference104 = obj89; - ref QuestSequence reference105 = ref span65[1]; + num++; + ref QuestSequence reference105 = ref span142[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -11789,7 +14200,9 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128) + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span144[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128) { AethernetShortcut = new AethernetShortcut { @@ -11806,24 +14219,30 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "liza"; + Span span145 = CollectionsMarshal.AsSpan(list145); + index = 0; + span145[index] = "liza"; questRoot18.Author = list145; - num = 3; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span66 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference106 = ref span66[0]; + index = 3; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + Span span146 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference106 = ref span146[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); obj91.Steps = list147; reference106 = obj91; - ref QuestSequence reference107 = ref span66[1]; + num++; + ref QuestSequence reference107 = ref span146[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -11831,70 +14250,88 @@ public static class AssemblyQuestLoader num2 = 7; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span67 = CollectionsMarshal.AsSpan(list148); - ref QuestStep reference108 = ref span67[0]; + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + ref QuestStep reference108 = ref span148[index2]; QuestStep obj93 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - num3 = 6; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - Span span68 = CollectionsMarshal.AsSpan(list149); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list149 = new List(num4); + CollectionsMarshal.SetCount(list149, num4); + Span span149 = CollectionsMarshal.AsSpan(list149); + num3 = 0; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj93.CompletionQuestVariablesFlags = list149; reference108 = obj93; - span67[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) + index2++; + span148[index2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - span67[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + index2++; + span148[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - span67[3] = new QuestStep(EInteractionType.Interact, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) + index2++; + span148[index2] = new QuestStep(EInteractionType.Interact, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) { Comment = "Archer Receptionist" }; - span67[4] = new QuestStep(EInteractionType.Interact, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) + index2++; + span148[index2] = new QuestStep(EInteractionType.Interact, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) { Disabled = true, Comment = "Pick up Class Quest" }; - span67[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) + index2++; + span148[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) { TargetTerritoryId = (ushort)133 }; - span67[6] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) + index2++; + span148[index2] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) { Comment = "TODO Questflags" }; obj92.Steps = list148; reference107 = obj92; - ref QuestSequence reference109 = ref span66[2]; + num++; + ref QuestSequence reference109 = ref span146[num]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 10; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - Span span69 = CollectionsMarshal.AsSpan(list150); - span69[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + index2 = 10; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - span69[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); - span69[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span150[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); + num2++; + span150[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - span69[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span150[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -11903,12 +14340,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - span69[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); - span69[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span150[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); + num2++; + span150[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - span69[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span150[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -11917,7 +14357,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - span69[7] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) + num2++; + span150[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AethernetShortcut = new AethernetShortcut @@ -11930,7 +14371,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span69[8] = new QuestStep(EInteractionType.None, null, null, 133) + num2++; + span150[num2] = new QuestStep(EInteractionType.None, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -11938,7 +14380,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span69[9] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + num2++; + span150[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AethernetShortcut = new AethernetShortcut { @@ -11955,13 +14398,16 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "liza"; + Span span151 = CollectionsMarshal.AsSpan(list151); + index = 0; + span151[index] = "liza"; questRoot19.Author = list151; - num = 3; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span70 = CollectionsMarshal.AsSpan(list152); - ref QuestSequence reference110 = ref span70[0]; + index = 3; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + Span span152 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref QuestSequence reference110 = ref span152[num]; QuestSequence obj95 = new QuestSequence { Sequence = 0 @@ -11969,19 +14415,23 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); obj95.Steps = list153; reference110 = obj95; - ref QuestSequence reference111 = ref span70[1]; + num++; + ref QuestSequence reference111 = ref span152[num]; QuestSequence obj96 = new QuestSequence { Sequence = 1 }; - num2 = 13; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - Span span71 = CollectionsMarshal.AsSpan(list154); - ref QuestStep reference112 = ref span71[0]; + index2 = 13; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref QuestStep reference112 = ref span154[num2]; QuestStep obj97 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania @@ -11989,41 +14439,55 @@ public static class AssemblyQuestLoader num3 = 6; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - Span span72 = CollectionsMarshal.AsSpan(list155); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span155 = CollectionsMarshal.AsSpan(list155); + num4 = 0; + span155[num4] = null; + num4++; + span155[num4] = null; + num4++; + span155[num4] = null; + num4++; + span155[num4] = null; + num4++; + span155[num4] = null; + num4++; + span155[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj97.CompletionQuestVariablesFlags = list155; reference112 = obj97; - span71[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) + num2++; + span154[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - span71[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + num2++; + span154[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - span71[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) + num2++; + span154[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) { TargetTerritoryId = (ushort)133 }; - span71[4] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) + num2++; + span154[num2] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) { Comment = "TODO Questflags" }; - span71[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span154[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - span71[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); - span71[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span154[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); + num2++; + span154[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - span71[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span154[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -12032,12 +14496,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - span71[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); - span71[10] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span154[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); + num2++; + span154[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - span71[11] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span154[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -12046,13 +14513,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - span71[12] = new QuestStep(EInteractionType.Interact, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) + num2++; + span154[num2] = new QuestStep(EInteractionType.Interact, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) { Comment = "Conjurer Receptionist" }; obj96.Steps = list154; reference111 = obj96; - ref QuestSequence reference113 = ref span70[2]; + num++; + ref QuestSequence reference113 = ref span152[num]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue @@ -12060,13 +14529,15 @@ public static class AssemblyQuestLoader num2 = 4; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span73 = CollectionsMarshal.AsSpan(list156); - span73[0] = new QuestStep(EInteractionType.Interact, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new QuestStep(EInteractionType.Interact, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) { Disabled = true, Comment = "Pick up Class Quest" }; - span73[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) + index2++; + span156[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AethernetShortcut = new AethernetShortcut @@ -12079,7 +14550,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span73[2] = new QuestStep(EInteractionType.None, null, null, 133) + index2++; + span156[index2] = new QuestStep(EInteractionType.None, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -12087,7 +14559,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span73[3] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2++; + span156[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AethernetShortcut = new AethernetShortcut { @@ -12104,22 +14577,26 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "liza"; + Span span157 = CollectionsMarshal.AsSpan(list157); + index = 0; + span157[index] = "liza"; questRoot20.Author = list157; - num = 9; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span74 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference114 = ref span74[0]; + index = 9; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + Span span158 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestSequence reference114 = ref span158[num]; QuestSequence obj99 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span75 = CollectionsMarshal.AsSpan(list159); - span75[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -12140,13 +14617,15 @@ public static class AssemblyQuestLoader } } }; - span75[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span159[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj99.Steps = list159; reference114 = obj99; - ref QuestSequence reference115 = ref span74[1]; + num++; + ref QuestSequence reference115 = ref span158[num]; QuestSequence obj100 = new QuestSequence { Sequence = 1 @@ -12154,37 +14633,44 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1010198u, new Vector3(-152.11719f, -129.4397f, 267.10913f), 129) + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.Interact, 1010198u, new Vector3(-152.11719f, -129.4397f, 267.10913f), 129) { StopDistance = 7f }; obj100.Steps = list160; reference115 = obj100; - ref QuestSequence reference116 = ref span74[2]; + num++; + ref QuestSequence reference116 = ref span158[num]; QuestSequence obj101 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - Span span76 = CollectionsMarshal.AsSpan(list161); - ref QuestStep reference117 = ref span76[0]; + index2 = 2; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + Span span161 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + ref QuestStep reference117 = ref span161[num2]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.8734f, -128.1446f, 256.8712f), 129) { TargetTerritoryId = (ushort)129 }; SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - CollectionsMarshal.AsSpan(list162)[0] = 128; + num4 = 1; + List list162 = new List(num4); + CollectionsMarshal.SetCount(list162, num4); + Span span162 = CollectionsMarshal.AsSpan(list162); + num3 = 0; + span162[num3] = 128; skipStepConditions5.InTerritory = list162; skipConditions12.StepIf = skipStepConditions5; obj102.SkipConditions = skipConditions12; reference117 = obj102; - span76[1] = new QuestStep(EInteractionType.Interact, 1010212u, new Vector3(-50.8584f, 40f, 111.40613f), 128) + num2++; + span161[num2] = new QuestStep(EInteractionType.Interact, 1010212u, new Vector3(-50.8584f, 40f, 111.40613f), 128) { AethernetShortcut = new AethernetShortcut { @@ -12194,7 +14680,8 @@ public static class AssemblyQuestLoader }; obj101.Steps = list161; reference116 = obj101; - ref QuestSequence reference118 = ref span74[3]; + num++; + ref QuestSequence reference118 = ref span158[num]; QuestSequence obj103 = new QuestSequence { Sequence = 3 @@ -12202,19 +14689,23 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1010211u, new Vector3(-42.22174f, 42.249126f, 115.89221f), 128); + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span163[index2] = new QuestStep(EInteractionType.Interact, 1010211u, new Vector3(-42.22174f, 42.249126f, 115.89221f), 128); obj103.Steps = list163; reference118 = obj103; - ref QuestSequence reference119 = ref span74[4]; + num++; + ref QuestSequence reference119 = ref span158[num]; QuestSequence obj104 = new QuestSequence { Sequence = 4 }; - num2 = 8; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - Span span77 = CollectionsMarshal.AsSpan(list164); - ref QuestStep reference120 = ref span77[0]; + index2 = 8; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + ref QuestStep reference120 = ref span164[num2]; QuestStep obj105 = new QuestStep(EInteractionType.Action, null, new Vector3(-62.300663f, 42.300003f, -151.94725f), 128) { StopDistance = 0.5f, @@ -12230,40 +14721,55 @@ public static class AssemblyQuestLoader num3 = 6; List list165 = new List(num3); CollectionsMarshal.SetCount(list165, num3); - Span span78 = CollectionsMarshal.AsSpan(list165); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span165 = CollectionsMarshal.AsSpan(list165); + num4 = 0; + span165[num4] = null; + num4++; + span165[num4] = null; + num4++; + span165[num4] = null; + num4++; + span165[num4] = null; + num4++; + span165[num4] = null; + num4++; + span165[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list165; skipConditions13.StepIf = skipStepConditions6; obj105.SkipConditions = skipConditions13; reference120 = obj105; - ref QuestStep reference121 = ref span77[1]; + num2++; + ref QuestStep reference121 = ref span164[num2]; QuestStep obj106 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-54.962505f, 42.300007f, -158.14607f), 128) { StopDistance = 0.5f, DisableNavmesh = true }; - num3 = 6; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - Span span79 = CollectionsMarshal.AsSpan(list166); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list166 = new List(num4); + CollectionsMarshal.SetCount(list166, num4); + Span span166 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj106.CompletionQuestVariablesFlags = list166; reference121 = obj106; - span77[2] = new QuestStep(EInteractionType.StatusOff, null, null, 128) + num2++; + span164[num2] = new QuestStep(EInteractionType.StatusOff, null, null, 128) { Status = EStatus.Hidden }; - ref QuestStep reference122 = ref span77[3]; + num2++; + ref QuestStep reference122 = ref span164[num2]; QuestStep obj107 = new QuestStep(EInteractionType.Action, null, new Vector3(-155.25468f, 18f, 28.882175f), 129) { StopDistance = 0.5f, @@ -12279,39 +14785,54 @@ public static class AssemblyQuestLoader num3 = 6; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - Span span80 = CollectionsMarshal.AsSpan(list167); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span167 = CollectionsMarshal.AsSpan(list167); + num4 = 0; + span167[num4] = null; + num4++; + span167[num4] = null; + num4++; + span167[num4] = null; + num4++; + span167[num4] = null; + num4++; + span167[num4] = null; + num4++; + span167[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list167; skipConditions14.StepIf = skipStepConditions7; obj107.SkipConditions = skipConditions14; reference122 = obj107; - ref QuestStep reference123 = ref span77[4]; + num2++; + ref QuestStep reference123 = ref span164[num2]; QuestStep obj108 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-150.91245f, 18.2f, 34.06711f), 129) { StopDistance = 0.5f }; - num3 = 6; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - Span span81 = CollectionsMarshal.AsSpan(list168); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list168 = new List(num4); + CollectionsMarshal.SetCount(list168, num4); + Span span168 = CollectionsMarshal.AsSpan(list168); + num3 = 0; + span168[num3] = null; + num3++; + span168[num3] = null; + num3++; + span168[num3] = null; + num3++; + span168[num3] = null; + num3++; + span168[num3] = null; + num3++; + span168[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj108.CompletionQuestVariablesFlags = list168; reference123 = obj108; - span77[5] = new QuestStep(EInteractionType.StatusOff, null, null, 129) + num2++; + span164[num2] = new QuestStep(EInteractionType.StatusOff, null, null, 129) { Status = EStatus.Hidden }; - ref QuestStep reference124 = ref span77[6]; + num2++; + ref QuestStep reference124 = ref span164[num2]; QuestStep obj109 = new QuestStep(EInteractionType.Action, null, new Vector3(-187.95581f, 1.2697256f, 208.46738f), 129) { StopDistance = 0.5f, @@ -12327,34 +14848,48 @@ public static class AssemblyQuestLoader num3 = 6; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - Span span82 = CollectionsMarshal.AsSpan(list169); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span169 = CollectionsMarshal.AsSpan(list169); + num4 = 0; + span169[num4] = null; + num4++; + span169[num4] = null; + num4++; + span169[num4] = null; + num4++; + span169[num4] = null; + num4++; + span169[num4] = null; + num4++; + span169[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list169; skipConditions15.StepIf = skipStepConditions8; obj109.SkipConditions = skipConditions15; reference124 = obj109; - ref QuestStep reference125 = ref span77[7]; + num2++; + ref QuestStep reference125 = ref span164[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-190.81572f, 0.9999907f, 210.59836f), 129); - num3 = 6; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - Span span83 = CollectionsMarshal.AsSpan(list170); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list170 = new List(num4); + CollectionsMarshal.SetCount(list170, num4); + Span span170 = CollectionsMarshal.AsSpan(list170); + num3 = 0; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list170; reference125 = questStep16; obj104.Steps = list164; reference119 = obj104; - ref QuestSequence reference126 = ref span74[5]; + num++; + ref QuestSequence reference126 = ref span158[num]; QuestSequence obj110 = new QuestSequence { Sequence = 5 @@ -12362,39 +14897,49 @@ public static class AssemblyQuestLoader num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span84 = CollectionsMarshal.AsSpan(list171); - span84[0] = new QuestStep(EInteractionType.StatusOff, null, null, 129) + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span171[index2] = new QuestStep(EInteractionType.StatusOff, null, null, 129) { Status = EStatus.Hidden }; - span84[1] = new QuestStep(EInteractionType.Interact, 1010213u, new Vector3(-161.12f, 1.9499999f, 239.30713f), 129); + index2++; + span171[index2] = new QuestStep(EInteractionType.Interact, 1010213u, new Vector3(-161.12f, 1.9499999f, 239.30713f), 129); obj110.Steps = list171; reference126 = obj110; - ref QuestSequence reference127 = ref span74[6]; + num++; + ref QuestSequence reference127 = ref span158[num]; QuestSequence obj111 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - ref QuestStep reference128 = ref CollectionsMarshal.AsSpan(list172)[0]; + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + ref QuestStep reference128 = ref span172[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.SinglePlayerDuty, 1010213u, new Vector3(-161.12f, 1.9499999f, 239.30713f), 129); SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); num3 = 4; List list173 = new List(num3); CollectionsMarshal.SetCount(list173, num3); - Span span85 = CollectionsMarshal.AsSpan(list173); - span85[0] = "(phase 1) AI doesn't move or pick up the stolen firearms"; - span85[1] = "(phase 1 + 2) AI automatically removes Hidden status"; - span85[2] = "(phase 2) AI only moves while targeted enemies are in range + gets stuck on corners while trying to get to irrelevant enemies"; - span85[3] = "(phase 2) AI doesn't even attempt to navigate to the end of the quest"; + Span span173 = CollectionsMarshal.AsSpan(list173); + num4 = 0; + span173[num4] = "(phase 1) AI doesn't move or pick up the stolen firearms"; + num4++; + span173[num4] = "(phase 1 + 2) AI automatically removes Hidden status"; + num4++; + span173[num4] = "(phase 2) AI only moves while targeted enemies are in range + gets stuck on corners while trying to get to irrelevant enemies"; + num4++; + span173[num4] = "(phase 2) AI doesn't even attempt to navigate to the end of the quest"; singlePlayerDutyOptions.Notes = list173; questStep17.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference128 = questStep17; obj111.Steps = list172; reference127 = obj111; - ref QuestSequence reference129 = ref span74[7]; + num++; + ref QuestSequence reference129 = ref span158[num]; QuestSequence obj112 = new QuestSequence { Sequence = 7 @@ -12402,7 +14947,9 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1010213u, new Vector3(-161.12f, 1.9499999f, 239.30713f), 129) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.Interact, 1010213u, new Vector3(-161.12f, 1.9499999f, 239.30713f), 129) { AethernetShortcut = new AethernetShortcut { @@ -12412,20 +14959,23 @@ public static class AssemblyQuestLoader }; obj112.Steps = list174; reference129 = obj112; - ref QuestSequence reference130 = ref span74[8]; + num++; + ref QuestSequence reference130 = ref span158[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - Span span86 = CollectionsMarshal.AsSpan(list175); - span86[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129 }; - span86[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span175[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(144) @@ -12439,13 +14989,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "liza"; + Span span176 = CollectionsMarshal.AsSpan(list176); + index = 0; + span176[index] = "liza"; questRoot21.Author = list176; - num = 7; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span87 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference131 = ref span87[0]; + index = 7; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + Span span177 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference131 = ref span177[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -12453,21 +15006,27 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); obj114.Steps = list178; reference131 = obj114; - ref QuestSequence reference132 = ref span87[1]; + num++; + ref QuestSequence reference132 = ref span177[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1000465u, new Vector3(298.63428f, 9.999997f, 119.035645f), 148); + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.Interact, 1000465u, new Vector3(298.63428f, 9.999997f, 119.035645f), 148); obj115.Steps = list179; reference132 = obj115; - ref QuestSequence reference133 = ref span87[2]; + num++; + ref QuestSequence reference133 = ref span177[num]; QuestSequence obj116 = new QuestSequence { Sequence = 2 @@ -12475,88 +15034,126 @@ public static class AssemblyQuestLoader num2 = 5; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span88 = CollectionsMarshal.AsSpan(list180); - ref QuestStep reference134 = ref span88[0]; + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + ref QuestStep reference134 = ref span180[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1000512u, new Vector3(311.69592f, 14.8470745f, 164.47693f), 148); - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span89 = CollectionsMarshal.AsSpan(list181); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list181 = new List(num4); + CollectionsMarshal.SetCount(list181, num4); + Span span181 = CollectionsMarshal.AsSpan(list181); + num3 = 0; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list181; reference134 = questStep18; - ref QuestStep reference135 = ref span88[1]; + index2++; + ref QuestStep reference135 = ref span180[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1000513u, new Vector3(303.8833f, 15.899703f, 160.87585f), 148); num3 = 6; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - Span span90 = CollectionsMarshal.AsSpan(list182); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span182 = CollectionsMarshal.AsSpan(list182); + num4 = 0; + span182[num4] = null; + num4++; + span182[num4] = null; + num4++; + span182[num4] = null; + num4++; + span182[num4] = null; + num4++; + span182[num4] = null; + num4++; + span182[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list182; reference135 = questStep19; - ref QuestStep reference136 = ref span88[2]; + index2++; + ref QuestStep reference136 = ref span180[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1000514u, new Vector3(296.1012f, 15.999987f, 171.4961f), 148); - num3 = 6; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - Span span91 = CollectionsMarshal.AsSpan(list183); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list183 = new List(num4); + CollectionsMarshal.SetCount(list183, num4); + Span span183 = CollectionsMarshal.AsSpan(list183); + num3 = 0; + span183[num3] = null; + num3++; + span183[num3] = null; + num3++; + span183[num3] = null; + num3++; + span183[num3] = null; + num3++; + span183[num3] = null; + num3++; + span183[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list183; reference136 = questStep20; - ref QuestStep reference137 = ref span88[3]; + index2++; + ref QuestStep reference137 = ref span180[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1000515u, new Vector3(291.21838f, 19.86808f, 175.21924f), 148); num3 = 6; List list184 = new List(num3); CollectionsMarshal.SetCount(list184, num3); - Span span92 = CollectionsMarshal.AsSpan(list184); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span184 = CollectionsMarshal.AsSpan(list184); + num4 = 0; + span184[num4] = null; + num4++; + span184[num4] = null; + num4++; + span184[num4] = null; + num4++; + span184[num4] = null; + num4++; + span184[num4] = null; + num4++; + span184[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list184; reference137 = questStep21; - ref QuestStep reference138 = ref span88[4]; + index2++; + ref QuestStep reference138 = ref span180[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1000516u, new Vector3(284.65698f, 21.97319f, 188.18945f), 148); - num3 = 6; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - Span span93 = CollectionsMarshal.AsSpan(list185); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list185 = new List(num4); + CollectionsMarshal.SetCount(list185, num4); + Span span185 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span185[num3] = null; + num3++; + span185[num3] = null; + num3++; + span185[num3] = null; + num3++; + span185[num3] = null; + num3++; + span185[num3] = null; + num3++; + span185[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list185; reference138 = questStep22; obj116.Steps = list180; reference133 = obj116; - ref QuestSequence reference139 = ref span87[3]; + num++; + ref QuestSequence reference139 = ref span177[num]; QuestSequence obj117 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000740u, new Vector3(260.18152f, 24.000002f, 192.2179f), 148) + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span186[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000740u, new Vector3(260.18152f, 24.000002f, 192.2179f), 148) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -12565,11 +15162,13 @@ public static class AssemblyQuestLoader }; obj117.Steps = list186; reference139 = obj117; - span87[4] = new QuestSequence + num++; + span177[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference140 = ref span87[5]; + num++; + ref QuestSequence reference140 = ref span177[num]; QuestSequence obj118 = new QuestSequence { Sequence = 5 @@ -12577,20 +15176,25 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span94 = CollectionsMarshal.AsSpan(list187); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(319.9492f, 13.866494f, 156.2647f), 148); - span94[1] = new QuestStep(EInteractionType.Interact, 1000465u, new Vector3(298.63428f, 9.999997f, 119.035645f), 148); + Span span187 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span187[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(319.9492f, 13.866494f, 156.2647f), 148); + index2++; + span187[index2] = new QuestStep(EInteractionType.Interact, 1000465u, new Vector3(298.63428f, 9.999997f, 119.035645f), 148); obj118.Steps = list187; reference140 = obj118; - ref QuestSequence reference141 = ref span87[6]; + num++; + ref QuestSequence reference141 = ref span177[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + Span span188 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span188[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -12615,13 +15219,16 @@ public static class AssemblyQuestLoader num = 1; List list189 = new List(num); CollectionsMarshal.SetCount(list189, num); - CollectionsMarshal.AsSpan(list189)[0] = "Cacahuetes"; + Span span189 = CollectionsMarshal.AsSpan(list189); + index = 0; + span189[index] = "Cacahuetes"; questRoot22.Author = list189; - num = 2; - List list190 = new List(num); - CollectionsMarshal.SetCount(list190, num); - Span span95 = CollectionsMarshal.AsSpan(list190); - ref QuestSequence reference142 = ref span95[0]; + index = 2; + List list190 = new List(index); + CollectionsMarshal.SetCount(list190, index); + Span span190 = CollectionsMarshal.AsSpan(list190); + num = 0; + ref QuestSequence reference142 = ref span190[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -12629,18 +15236,23 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132); + Span span191 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span191[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132); obj120.Steps = list191; reference142 = obj120; - ref QuestSequence reference143 = ref span95[1]; + num++; + ref QuestSequence reference143 = ref span190[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list192)[0]; + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + ref QuestStep reference144 = ref span192[num2]; QuestStep obj122 = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 5f @@ -12648,7 +15260,9 @@ public static class AssemblyQuestLoader num3 = 1; List list193 = new List(num3); CollectionsMarshal.SetCount(list193, num3); - CollectionsMarshal.AsSpan(list193)[0] = new DialogueChoice + Span span193 = CollectionsMarshal.AsSpan(list193); + num4 = 0; + span193[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARC998_00131_Q1_000_1") @@ -12664,13 +15278,16 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "Cacahuetes"; + Span span194 = CollectionsMarshal.AsSpan(list194); + index = 0; + span194[index] = "Cacahuetes"; questRoot23.Author = list194; - num = 2; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span96 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference145 = ref span96[0]; + index = 2; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + Span span195 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference145 = ref span195[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 @@ -12678,7 +15295,9 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - ref QuestStep reference146 = ref CollectionsMarshal.AsSpan(list196)[0]; + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + ref QuestStep reference146 = ref span196[index2]; QuestStep obj124 = new QuestStep(EInteractionType.AcceptQuest, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -12693,30 +15312,37 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = 133; + num4 = 1; + List list197 = new List(num4); + CollectionsMarshal.SetCount(list197, num4); + Span span197 = CollectionsMarshal.AsSpan(list197); + num3 = 0; + span197[num3] = 133; obj125.InTerritory = list197; skipConditions16.AetheryteShortcutIf = obj125; obj124.SkipConditions = skipConditions16; reference146 = obj124; obj123.Steps = list196; reference145 = obj123; - ref QuestSequence reference147 = ref span96[1]; + num++; + ref QuestSequence reference147 = ref span195[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list198)[0]; + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span198 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + ref QuestStep reference148 = ref span198[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133); num3 = 1; List list199 = new List(num3); CollectionsMarshal.SetCount(list199, num3); - CollectionsMarshal.AsSpan(list199)[0] = new DialogueChoice + Span span199 = CollectionsMarshal.AsSpan(list199); + num4 = 0; + span199[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSLNC998_00132_Q1_000_1") @@ -12733,13 +15359,16 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - CollectionsMarshal.AsSpan(list200)[0] = "liza"; + Span span200 = CollectionsMarshal.AsSpan(list200); + index = 0; + span200[index] = "liza"; questRoot24.Author = list200; - num = 2; - List list201 = new List(num); - CollectionsMarshal.SetCount(list201, num); - Span span97 = CollectionsMarshal.AsSpan(list201); - ref QuestSequence reference149 = ref span97[0]; + index = 2; + List list201 = new List(index); + CollectionsMarshal.SetCount(list201, index); + Span span201 = CollectionsMarshal.AsSpan(list201); + num = 0; + ref QuestSequence reference149 = ref span201[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -12747,7 +15376,9 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - ref QuestStep reference150 = ref CollectionsMarshal.AsSpan(list202)[0]; + Span span202 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + ref QuestStep reference150 = ref span202[index2]; QuestStep obj128 = new QuestStep(EInteractionType.AcceptQuest, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -12762,30 +15393,37 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list203 = new List(num3); - CollectionsMarshal.SetCount(list203, num3); - CollectionsMarshal.AsSpan(list203)[0] = 133; + num4 = 1; + List list203 = new List(num4); + CollectionsMarshal.SetCount(list203, num4); + Span span203 = CollectionsMarshal.AsSpan(list203); + num3 = 0; + span203[num3] = 133; obj129.InTerritory = list203; skipConditions17.AetheryteShortcutIf = obj129; obj128.SkipConditions = skipConditions17; reference150 = obj128; obj127.Steps = list202; reference149 = obj127; - ref QuestSequence reference151 = ref span97[1]; + num++; + ref QuestSequence reference151 = ref span201[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list204)[0]; + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + ref QuestStep reference152 = ref span204[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133); num3 = 1; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = new DialogueChoice + Span span205 = CollectionsMarshal.AsSpan(list205); + num4 = 0; + span205[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSCNJ998_00133_Q1_000_1") @@ -12801,13 +15439,16 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "Cacahuetes"; + Span span206 = CollectionsMarshal.AsSpan(list206); + index = 0; + span206[index] = "Cacahuetes"; questRoot25.Author = list206; - num = 7; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span98 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference153 = ref span98[0]; + index = 7; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + Span span207 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference153 = ref span207[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 @@ -12815,7 +15456,9 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + Span span208 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span208[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -12834,18 +15477,22 @@ public static class AssemblyQuestLoader }; obj131.Steps = list208; reference153 = obj131; - ref QuestSequence reference154 = ref span98[1]; + num++; + ref QuestSequence reference154 = ref span207[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132); + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + Span span209 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span209[num2] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132); obj132.Steps = list209; reference154 = obj132; - ref QuestSequence reference155 = ref span98[2]; + num++; + ref QuestSequence reference155 = ref span207[num]; QuestSequence obj133 = new QuestSequence { Sequence = 2 @@ -12853,191 +15500,260 @@ public static class AssemblyQuestLoader num2 = 12; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - Span span99 = CollectionsMarshal.AsSpan(list210); - span99[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-87.448326f, -3.8114734f, -77.68485f), 148) + Span span210 = CollectionsMarshal.AsSpan(list210); + index2 = 0; + span210[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-87.448326f, -3.8114734f, -77.68485f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - ref QuestStep reference156 = ref span99[1]; + index2++; + ref QuestStep reference156 = ref span210[index2]; QuestStep obj134 = new QuestStep(EInteractionType.Action, 2001177u, new Vector3(-88.24298f, 3.768982f, -88.24298f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; - num3 = 6; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - Span span100 = CollectionsMarshal.AsSpan(list211); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List list211 = new List(num4); + CollectionsMarshal.SetCount(list211, num4); + Span span211 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + span211[num3] = null; + num3++; + span211[num3] = null; + num3++; + span211[num3] = null; + num3++; + span211[num3] = null; + num3++; + span211[num3] = null; + num3++; + span211[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); obj134.CompletionQuestVariablesFlags = list211; reference156 = obj134; - ref QuestStep reference157 = ref span99[2]; + index2++; + ref QuestStep reference157 = ref span210[index2]; QuestStep questStep25 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.806755f, -3.824695f, -61.20561f), 148); SkipConditions skipConditions18 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); num3 = 6; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - Span span101 = CollectionsMarshal.AsSpan(list212); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + Span span212 = CollectionsMarshal.AsSpan(list212); + num4 = 0; + span212[num4] = null; + num4++; + span212[num4] = null; + num4++; + span212[num4] = null; + num4++; + span212[num4] = null; + num4++; + span212[num4] = null; + num4++; + span212[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list212; skipConditions18.StepIf = skipStepConditions9; questStep25.SkipConditions = skipConditions18; reference157 = questStep25; - ref QuestStep reference158 = ref span99[3]; + index2++; + ref QuestStep reference158 = ref span210[index2]; QuestStep obj135 = new QuestStep(EInteractionType.Action, 2001175u, new Vector3(-115.58716f, -3.402832f, -51.07196f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; - num3 = 6; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - Span span102 = CollectionsMarshal.AsSpan(list213); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list213 = new List(num4); + CollectionsMarshal.SetCount(list213, num4); + Span span213 = CollectionsMarshal.AsSpan(list213); + num3 = 0; + span213[num3] = null; + num3++; + span213[num3] = null; + num3++; + span213[num3] = null; + num3++; + span213[num3] = null; + num3++; + span213[num3] = null; + num3++; + span213[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj135.CompletionQuestVariablesFlags = list213; reference158 = obj135; - ref QuestStep reference159 = ref span99[4]; + index2++; + ref QuestStep reference159 = ref span210[index2]; QuestStep questStep26 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-142.90863f, -1.355497f, -69.45994f), 148); SkipConditions skipConditions19 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); num3 = 6; List list214 = new List(num3); CollectionsMarshal.SetCount(list214, num3); - Span span103 = CollectionsMarshal.AsSpan(list214); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span214 = CollectionsMarshal.AsSpan(list214); + num4 = 0; + span214[num4] = null; + num4++; + span214[num4] = null; + num4++; + span214[num4] = null; + num4++; + span214[num4] = null; + num4++; + span214[num4] = null; + num4++; + span214[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); skipStepConditions10.CompletionQuestVariablesFlags = list214; skipConditions19.StepIf = skipStepConditions10; questStep26.SkipConditions = skipConditions19; reference159 = questStep26; - ref QuestStep reference160 = ref span99[5]; + index2++; + ref QuestStep reference160 = ref span210[index2]; QuestStep obj136 = new QuestStep(EInteractionType.Action, 2000959u, new Vector3(-143.32806f, -0.41204834f, -58.884644f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; - num3 = 6; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - Span span104 = CollectionsMarshal.AsSpan(list215); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list215 = new List(num4); + CollectionsMarshal.SetCount(list215, num4); + Span span215 = CollectionsMarshal.AsSpan(list215); + num3 = 0; + span215[num3] = null; + num3++; + span215[num3] = null; + num3++; + span215[num3] = null; + num3++; + span215[num3] = null; + num3++; + span215[num3] = null; + num3++; + span215[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj136.CompletionQuestVariablesFlags = list215; reference160 = obj136; - ref QuestStep reference161 = ref span99[6]; + index2++; + ref QuestStep reference161 = ref span210[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-154.95493f, 4.0352364f, -132.85217f), 148); SkipConditions skipConditions20 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); num3 = 6; List list216 = new List(num3); CollectionsMarshal.SetCount(list216, num3); - Span span105 = CollectionsMarshal.AsSpan(list216); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span216 = CollectionsMarshal.AsSpan(list216); + num4 = 0; + span216[num4] = null; + num4++; + span216[num4] = null; + num4++; + span216[num4] = null; + num4++; + span216[num4] = null; + num4++; + span216[num4] = null; + num4++; + span216[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions11.CompletionQuestVariablesFlags = list216; skipConditions20.StepIf = skipStepConditions11; questStep27.SkipConditions = skipConditions20; reference161 = questStep27; - ref QuestStep reference162 = ref span99[7]; + index2++; + ref QuestStep reference162 = ref span210[index2]; QuestStep obj137 = new QuestStep(EInteractionType.Action, 2000958u, new Vector3(-166.97955f, 10.2387085f, -138.41461f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; - num3 = 6; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - Span span106 = CollectionsMarshal.AsSpan(list217); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list217 = new List(num4); + CollectionsMarshal.SetCount(list217, num4); + Span span217 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj137.CompletionQuestVariablesFlags = list217; reference162 = obj137; - ref QuestStep reference163 = ref span99[8]; + index2++; + ref QuestStep reference163 = ref span210[index2]; QuestStep questStep28 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.08684f, 7.6589117f, -173.19547f), 148); SkipConditions skipConditions21 = new SkipConditions(); SkipStepConditions skipStepConditions12 = new SkipStepConditions(); num3 = 6; List list218 = new List(num3); CollectionsMarshal.SetCount(list218, num3); - Span span107 = CollectionsMarshal.AsSpan(list218); - span107[0] = null; - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span218 = CollectionsMarshal.AsSpan(list218); + num4 = 0; + span218[num4] = null; + num4++; + span218[num4] = null; + num4++; + span218[num4] = null; + num4++; + span218[num4] = null; + num4++; + span218[num4] = null; + num4++; + span218[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions12.CompletionQuestVariablesFlags = list218; skipConditions21.StepIf = skipStepConditions12; questStep28.SkipConditions = skipConditions21; reference163 = questStep28; - ref QuestStep reference164 = ref span99[9]; + index2++; + ref QuestStep reference164 = ref span210[index2]; QuestStep obj138 = new QuestStep(EInteractionType.Action, 2000957u, new Vector3(-120.68359f, 12.49707f, -182.39111f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; - num3 = 6; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - Span span108 = CollectionsMarshal.AsSpan(list219); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list219 = new List(num4); + CollectionsMarshal.SetCount(list219, num4); + Span span219 = CollectionsMarshal.AsSpan(list219); + num3 = 0; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj138.CompletionQuestVariablesFlags = list219; reference164 = obj138; - span99[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-74.71171f, -4f, -190.44055f), 148); - span99[11] = new QuestStep(EInteractionType.Action, 2000956u, new Vector3(-80.76605f, -2.3651733f, -196.49048f), 148) + index2++; + span210[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-74.71171f, -4f, -190.44055f), 148); + index2++; + span210[index2] = new QuestStep(EInteractionType.Action, 2000956u, new Vector3(-80.76605f, -2.3651733f, -196.49048f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; obj133.Steps = list210; reference155 = obj133; - ref QuestSequence reference165 = ref span98[3]; + num++; + ref QuestSequence reference165 = ref span207[num]; QuestSequence obj139 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132) + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span220[num2] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -13048,7 +15764,8 @@ public static class AssemblyQuestLoader }; obj139.Steps = list220; reference165 = obj139; - ref QuestSequence reference166 = ref span98[4]; + num++; + ref QuestSequence reference166 = ref span207[num]; QuestSequence obj140 = new QuestSequence { Sequence = 4 @@ -13056,8 +15773,9 @@ public static class AssemblyQuestLoader num2 = 3; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span109 = CollectionsMarshal.AsSpan(list221); - span109[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span221[index2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -13073,11 +15791,13 @@ public static class AssemblyQuestLoader } } }; - span109[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + index2++; + span221[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut }; - ref QuestStep reference167 = ref span109[2]; + index2++; + ref QuestStep reference167 = ref span221[index2]; QuestStep obj141 = new QuestStep(EInteractionType.Combat, null, new Vector3(-431.09494f, 2.9039853f, 239.26413f), 152) { StopDistance = 0.5f, @@ -13088,41 +15808,55 @@ public static class AssemblyQuestLoader num3 = 2; List list222 = new List(num3); CollectionsMarshal.SetCount(list222, num3); - Span span110 = CollectionsMarshal.AsSpan(list222); - ref ComplexCombatData reference168 = ref span110[0]; + Span span222 = CollectionsMarshal.AsSpan(list222); + num4 = 0; + ref ComplexCombatData reference168 = ref span222[num4]; ComplexCombatData obj142 = new ComplexCombatData { DataId = 12u, MinimumKillCount = 8u }; - num4 = 6; - List list223 = new List(num4); - CollectionsMarshal.SetCount(list223, num4); - Span span111 = CollectionsMarshal.AsSpan(list223); - span111[0] = null; - span111[1] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = null; + num5 = 6; + List list223 = new List(num5); + CollectionsMarshal.SetCount(list223, num5); + Span span223 = CollectionsMarshal.AsSpan(list223); + num6 = 0; + span223[num6] = null; + num6++; + span223[num6] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); + num6++; + span223[num6] = null; + num6++; + span223[num6] = null; + num6++; + span223[num6] = null; + num6++; + span223[num6] = null; obj142.CompletionQuestVariablesFlags = list223; reference168 = obj142; - ref ComplexCombatData reference169 = ref span110[1]; + num4++; + ref ComplexCombatData reference169 = ref span222[num4]; ComplexCombatData obj143 = new ComplexCombatData { DataId = 39u, MinimumKillCount = 8u }; - num4 = 6; - List list224 = new List(num4); - CollectionsMarshal.SetCount(list224, num4); - Span span112 = CollectionsMarshal.AsSpan(list224); - span112[0] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = null; + num6 = 6; + List list224 = new List(num6); + CollectionsMarshal.SetCount(list224, num6); + Span span224 = CollectionsMarshal.AsSpan(list224); + num5 = 0; + span224[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span224[num5] = null; + num5++; + span224[num5] = null; + num5++; + span224[num5] = null; + num5++; + span224[num5] = null; + num5++; + span224[num5] = null; obj143.CompletionQuestVariablesFlags = list224; reference169 = obj143; obj141.ComplexCombatData = list222; @@ -13137,15 +15871,18 @@ public static class AssemblyQuestLoader reference167 = obj141; obj140.Steps = list221; reference166 = obj140; - ref QuestSequence reference170 = ref span98[5]; + num++; + ref QuestSequence reference170 = ref span207[num]; QuestSequence obj144 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.Interact, 1000199u, new Vector3(211.13904f, 1.5032018E-05f, 28.580078f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -13156,7 +15893,8 @@ public static class AssemblyQuestLoader }; obj144.Steps = list225; reference170 = obj144; - ref QuestSequence reference171 = ref span98[6]; + num++; + ref QuestSequence reference171 = ref span207[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue @@ -13164,15 +15902,19 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - ref QuestStep reference172 = ref CollectionsMarshal.AsSpan(list226)[0]; + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + ref QuestStep reference172 = ref span226[index2]; QuestStep obj146 = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f }; - num3 = 1; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = new DialogueChoice + num4 = 1; + List list227 = new List(num4); + CollectionsMarshal.SetCount(list227, num4); + Span span227 = CollectionsMarshal.AsSpan(list227); + num3 = 0; + span227[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARC997_00134_Q1_000_1") @@ -13189,24 +15931,30 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - CollectionsMarshal.AsSpan(list228)[0] = "liza"; + Span span228 = CollectionsMarshal.AsSpan(list228); + index = 0; + span228[index] = "liza"; questRoot26.Author = list228; - num = 2; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - Span span113 = CollectionsMarshal.AsSpan(list229); - ref QuestSequence reference173 = ref span113[0]; + index = 2; + List list229 = new List(index); + CollectionsMarshal.SetCount(list229, index); + Span span229 = CollectionsMarshal.AsSpan(list229); + num = 0; + ref QuestSequence reference173 = ref span229[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000148u, new Vector3(-20.279297f, -3.25f, 45.97534f), 132); + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span230[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000148u, new Vector3(-20.279297f, -3.25f, 45.97534f), 132); obj147.Steps = list230; reference173 = obj147; - ref QuestSequence reference174 = ref span113[1]; + num++; + ref QuestSequence reference174 = ref span229[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue @@ -13214,12 +15962,16 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - ref QuestStep reference175 = ref CollectionsMarshal.AsSpan(list231)[0]; + Span span231 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + ref QuestStep reference175 = ref span231[index2]; QuestStep questStep29 = new QuestStep(EInteractionType.CompleteQuest, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); num3 = 1; List list232 = new List(num3); CollectionsMarshal.SetCount(list232, num3); - CollectionsMarshal.AsSpan(list232)[0] = new DialogueChoice + Span span232 = CollectionsMarshal.AsSpan(list232); + num4 = 0; + span232[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSWDK000_00138_Q1_000_1") @@ -13235,23 +15987,28 @@ public static class AssemblyQuestLoader num = 2; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - Span span114 = CollectionsMarshal.AsSpan(list233); - span114[0] = "Cacahuetes"; - span114[1] = "liza"; + Span span233 = CollectionsMarshal.AsSpan(list233); + index = 0; + span233[index] = "Cacahuetes"; + index++; + span233[index] = "liza"; questRoot27.Author = list233; - num = 4; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span115 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference176 = ref span115[0]; + index = 4; + List list234 = new List(index); + CollectionsMarshal.SetCount(list234, index); + Span span234 = CollectionsMarshal.AsSpan(list234); + num = 0; + ref QuestSequence reference176 = ref span234[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - ref QuestStep reference177 = ref CollectionsMarshal.AsSpan(list235)[0]; + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + Span span235 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + ref QuestStep reference177 = ref span235[num2]; QuestStep obj150 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -13266,17 +16023,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list236 = new List(num3); - CollectionsMarshal.SetCount(list236, num3); - CollectionsMarshal.AsSpan(list236)[0] = 133; + num4 = 1; + List list236 = new List(num4); + CollectionsMarshal.SetCount(list236, num4); + Span span236 = CollectionsMarshal.AsSpan(list236); + num3 = 0; + span236[num3] = 133; obj151.InTerritory = list236; skipConditions22.AetheryteShortcutIf = obj151; obj150.SkipConditions = skipConditions22; reference177 = obj150; obj149.Steps = list235; reference176 = obj149; - ref QuestSequence reference178 = ref span115[1]; + num++; + ref QuestSequence reference178 = ref span234[num]; QuestSequence obj152 = new QuestSequence { Sequence = 1 @@ -13284,8 +16044,9 @@ public static class AssemblyQuestLoader num2 = 3; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span116 = CollectionsMarshal.AsSpan(list237); - span116[0] = new QuestStep(EInteractionType.Combat, null, new Vector3(502.843f, 43.200996f, -32.464188f), 148) + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span237[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(502.843f, 43.200996f, -32.464188f), 148) { StopDistance = 0.5f, AethernetShortcut = new AethernetShortcut @@ -13295,7 +16056,8 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - ref QuestStep reference179 = ref span116[1]; + index2++; + ref QuestStep reference179 = ref span237[index2]; QuestStep obj153 = new QuestStep(EInteractionType.Combat, 142u, new Vector3(514.06104f, 44.169823f, -42.008118f), 148) { StopDistance = 0.5f, @@ -13305,33 +16067,44 @@ public static class AssemblyQuestLoader num3 = 1; List list238 = new List(num3); CollectionsMarshal.SetCount(list238, num3); - CollectionsMarshal.AsSpan(list238)[0] = 142u; + Span span238 = CollectionsMarshal.AsSpan(list238); + num4 = 0; + span238[num4] = 142u; obj153.KillEnemyDataIds = list238; - num3 = 6; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - Span span117 = CollectionsMarshal.AsSpan(list239); - span117[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = null; + num4 = 6; + List list239 = new List(num4); + CollectionsMarshal.SetCount(list239, num4); + Span span239 = CollectionsMarshal.AsSpan(list239); + num3 = 0; + span239[num3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num3++; + span239[num3] = null; + num3++; + span239[num3] = null; + num3++; + span239[num3] = null; + num3++; + span239[num3] = null; + num3++; + span239[num3] = null; obj153.CompletionQuestVariablesFlags = list239; reference179 = obj153; - span116[2] = new QuestStep(EInteractionType.Interact, 2000967u, new Vector3(514.8546f, 43.808594f, -48.630554f), 148); + index2++; + span237[index2] = new QuestStep(EInteractionType.Interact, 2000967u, new Vector3(514.8546f, 43.808594f, -48.630554f), 148); obj152.Steps = list237; reference178 = obj152; - ref QuestSequence reference180 = ref span115[2]; + num++; + ref QuestSequence reference180 = ref span234[num]; QuestSequence obj154 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - Span span118 = CollectionsMarshal.AsSpan(list240); - ref QuestStep reference181 = ref span118[0]; + index2 = 2; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + ref QuestStep reference181 = ref span240[num2]; QuestStep obj155 = new QuestStep(EInteractionType.Combat, null, new Vector3(211.82294f, 23.458103f, 157.57333f), 148) { StopDistance = 0.5f, @@ -13341,24 +16114,34 @@ public static class AssemblyQuestLoader num3 = 1; List list241 = new List(num3); CollectionsMarshal.SetCount(list241, num3); - CollectionsMarshal.AsSpan(list241)[0] = 21u; + Span span241 = CollectionsMarshal.AsSpan(list241); + num4 = 0; + span241[num4] = 21u; obj155.KillEnemyDataIds = list241; - num3 = 6; - List list242 = new List(num3); - CollectionsMarshal.SetCount(list242, num3); - Span span119 = CollectionsMarshal.AsSpan(list242); - span119[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span119[1] = null; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = null; + num4 = 6; + List list242 = new List(num4); + CollectionsMarshal.SetCount(list242, num4); + Span span242 = CollectionsMarshal.AsSpan(list242); + num3 = 0; + span242[num3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num3++; + span242[num3] = null; + num3++; + span242[num3] = null; + num3++; + span242[num3] = null; + num3++; + span242[num3] = null; + num3++; + span242[num3] = null; obj155.CompletionQuestVariablesFlags = list242; reference181 = obj155; - span118[1] = new QuestStep(EInteractionType.Interact, 2000918u, new Vector3(215.99133f, 23.575134f, 153.2157f), 148); + num2++; + span240[num2] = new QuestStep(EInteractionType.Interact, 2000918u, new Vector3(215.99133f, 23.575134f, 153.2157f), 148); obj154.Steps = list240; reference180 = obj154; - ref QuestSequence reference182 = ref span115[3]; + num++; + ref QuestSequence reference182 = ref span234[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -13366,7 +16149,9 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span243[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -13385,22 +16170,26 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - CollectionsMarshal.AsSpan(list244)[0] = "liza"; + Span span244 = CollectionsMarshal.AsSpan(list244); + index = 0; + span244[index] = "liza"; questRoot28.Author = list244; - num = 7; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - Span span120 = CollectionsMarshal.AsSpan(list245); - ref QuestSequence reference183 = ref span120[0]; + index = 7; + List list245 = new List(index); + CollectionsMarshal.SetCount(list245, index); + Span span245 = CollectionsMarshal.AsSpan(list245); + num = 0; + ref QuestSequence reference183 = ref span245[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span121 = CollectionsMarshal.AsSpan(list246); - span121[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -13421,13 +16210,15 @@ public static class AssemblyQuestLoader } } }; - span121[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span246[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj157.Steps = list246; reference183 = obj157; - ref QuestSequence reference184 = ref span120[1]; + num++; + ref QuestSequence reference184 = ref span245[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -13435,28 +16226,34 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj158.Steps = list247; reference184 = obj158; - ref QuestSequence reference185 = ref span120[2]; + num++; + ref QuestSequence reference185 = ref span245[num]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1010199u, new Vector3(256.12268f, 21.097961f, 581.3839f), 135) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.Interact, 1010199u, new Vector3(256.12268f, 21.097961f, 581.3839f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj159.Steps = list248; reference185 = obj159; - ref QuestSequence reference186 = ref span120[3]; + num++; + ref QuestSequence reference186 = ref span245[num]; QuestSequence obj160 = new QuestSequence { Sequence = 3 @@ -13464,28 +16261,34 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 2004861u, new Vector3(-131.63965f, 0.503479f, 729.9762f), 135) + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.Interact, 2004861u, new Vector3(-131.63965f, 0.503479f, 729.9762f), 135) { Fly = true }; obj160.Steps = list249; reference186 = obj160; - ref QuestSequence reference187 = ref span120[4]; + num++; + ref QuestSequence reference187 = ref span245[num]; QuestSequence obj161 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138) + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span250 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span250[num2] = new QuestStep(EInteractionType.Interact, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj161.Steps = list250; reference187 = obj161; - ref QuestSequence reference188 = ref span120[5]; + num++; + ref QuestSequence reference188 = ref span245[num]; QuestSequence obj162 = new QuestSequence { Sequence = 5 @@ -13493,18 +16296,23 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138); + Span span251 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span251[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138); obj162.Steps = list251; reference188 = obj162; - ref QuestSequence reference189 = ref span120[6]; + num++; + ref QuestSequence reference189 = ref span245[num]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138) + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138) { StopDistance = 5f, NextQuestId = new QuestId(145) @@ -13518,13 +16326,16 @@ public static class AssemblyQuestLoader num = 1; List list253 = new List(num); CollectionsMarshal.SetCount(list253, num); - CollectionsMarshal.AsSpan(list253)[0] = "liza"; + Span span253 = CollectionsMarshal.AsSpan(list253); + index = 0; + span253[index] = "liza"; questRoot29.Author = list253; - num = 4; - List list254 = new List(num); - CollectionsMarshal.SetCount(list254, num); - Span span122 = CollectionsMarshal.AsSpan(list254); - ref QuestSequence reference190 = ref span122[0]; + index = 4; + List list254 = new List(index); + CollectionsMarshal.SetCount(list254, index); + Span span254 = CollectionsMarshal.AsSpan(list254); + num = 0; + ref QuestSequence reference190 = ref span254[num]; QuestSequence obj164 = new QuestSequence { Sequence = 0 @@ -13532,7 +16343,9 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138) + Span span255 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span255[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -13546,30 +16359,35 @@ public static class AssemblyQuestLoader }; obj164.Steps = list255; reference190 = obj164; - ref QuestSequence reference191 = ref span122[1]; + num++; + ref QuestSequence reference191 = ref span254[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - Span span123 = CollectionsMarshal.AsSpan(list256); - span123[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(593.2056f, 43.88314f, 304.65137f), 138) + index2 = 2; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(593.2056f, 43.88314f, 304.65137f), 138) { Fly = true }; - span123[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010228u, new Vector3(594.1709f, 43.893982f, 303.76135f), 138) + num2++; + span256[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010228u, new Vector3(594.1709f, 43.893982f, 303.76135f), 138) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions() }; obj165.Steps = list256; reference191 = obj165; - span122[2] = new QuestSequence + num++; + span254[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference192 = ref span122[3]; + num++; + ref QuestSequence reference192 = ref span254[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue @@ -13577,8 +16395,9 @@ public static class AssemblyQuestLoader num2 = 2; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span124 = CollectionsMarshal.AsSpan(list257); - span124[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -13588,7 +16407,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span124[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + index2++; + span257[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(146) @@ -13602,22 +16422,26 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - CollectionsMarshal.AsSpan(list258)[0] = "liza"; + Span span258 = CollectionsMarshal.AsSpan(list258); + index = 0; + span258[index] = "liza"; questRoot30.Author = list258; - num = 10; - List list259 = new List(num); - CollectionsMarshal.SetCount(list259, num); - Span span125 = CollectionsMarshal.AsSpan(list259); - ref QuestSequence reference193 = ref span125[0]; + index = 10; + List list259 = new List(index); + CollectionsMarshal.SetCount(list259, index); + Span span259 = CollectionsMarshal.AsSpan(list259); + num = 0; + ref QuestSequence reference193 = ref span259[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - Span span126 = CollectionsMarshal.AsSpan(list260); - span126[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span260[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -13638,13 +16462,15 @@ public static class AssemblyQuestLoader } } }; - span126[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span260[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj167.Steps = list260; reference193 = obj167; - ref QuestSequence reference194 = ref span125[1]; + num++; + ref QuestSequence reference194 = ref span259[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 @@ -13652,12 +16478,14 @@ public static class AssemblyQuestLoader num2 = 2; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span127 = CollectionsMarshal.AsSpan(list261); - span127[0] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) + Span span261 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span261[index2] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) { TargetTerritoryId = (ushort)129 }; - span127[1] = new QuestStep(EInteractionType.Interact, 1010238u, new Vector3(146.71545f, 62.3279f, 291.82874f), 134) + index2++; + span261[index2] = new QuestStep(EInteractionType.Interact, 1010238u, new Vector3(146.71545f, 62.3279f, 291.82874f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -13668,24 +16496,28 @@ public static class AssemblyQuestLoader }; obj168.Steps = list261; reference194 = obj168; - ref QuestSequence reference195 = ref span125[2]; + num++; + ref QuestSequence reference195 = ref span259[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - Span span128 = CollectionsMarshal.AsSpan(list262); - span128[0] = new QuestStep(EInteractionType.Action, null, new Vector3(168.34132f, 69.5f, 327.67975f), 134) + index2 = 2; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.Action, null, new Vector3(168.34132f, 69.5f, 327.67975f), 134) { StopDistance = 0.5f, Action = EAction.Hide }; - span128[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.24341f, 69.5f, 328.4606f), 134); + num2++; + span262[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.24341f, 69.5f, 328.4606f), 134); obj169.Steps = list262; reference195 = obj169; - ref QuestSequence reference196 = ref span125[3]; + num++; + ref QuestSequence reference196 = ref span259[num]; QuestSequence obj170 = new QuestSequence { Sequence = 3 @@ -13693,26 +16525,31 @@ public static class AssemblyQuestLoader num2 = 2; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span129 = CollectionsMarshal.AsSpan(list263); - span129[0] = new QuestStep(EInteractionType.StatusOff, null, null, 134) + Span span263 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span263[index2] = new QuestStep(EInteractionType.StatusOff, null, null, 134) { Status = EStatus.Hidden }; - span129[1] = new QuestStep(EInteractionType.Interact, 1010238u, new Vector3(146.71545f, 62.3279f, 291.82874f), 134) + index2++; + span263[index2] = new QuestStep(EInteractionType.Interact, 1010238u, new Vector3(146.71545f, 62.3279f, 291.82874f), 134) { Fly = true }; obj170.Steps = list263; reference196 = obj170; - ref QuestSequence reference197 = ref span125[4]; + num++; + ref QuestSequence reference197 = ref span259[num]; QuestSequence obj171 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list264)[0]; + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + ref QuestStep reference198 = ref span264[num2]; QuestStep obj172 = new QuestStep(EInteractionType.Combat, 1010242u, new Vector3(7.2174683f, 57.91383f, -307.11835f), 134) { Fly = true, @@ -13722,14 +16559,17 @@ public static class AssemblyQuestLoader num3 = 2; List list265 = new List(num3); CollectionsMarshal.SetCount(list265, num3); - Span span130 = CollectionsMarshal.AsSpan(list265); - span130[0] = 3567u; - span130[1] = 3568u; + Span span265 = CollectionsMarshal.AsSpan(list265); + num4 = 0; + span265[num4] = 3567u; + num4++; + span265[num4] = 3568u; obj172.KillEnemyDataIds = list265; reference198 = obj172; obj171.Steps = list264; reference197 = obj171; - ref QuestSequence reference199 = ref span125[5]; + num++; + ref QuestSequence reference199 = ref span259[num]; QuestSequence obj173 = new QuestSequence { Sequence = 5 @@ -13737,19 +16577,23 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1010242u, new Vector3(7.2174683f, 57.91383f, -307.11835f), 134); + Span span266 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span266[index2] = new QuestStep(EInteractionType.Interact, 1010242u, new Vector3(7.2174683f, 57.91383f, -307.11835f), 134); obj173.Steps = list266; reference199 = obj173; - ref QuestSequence reference200 = ref span125[6]; + num++; + ref QuestSequence reference200 = ref span259[num]; QuestSequence obj174 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span131 = CollectionsMarshal.AsSpan(list267); - span131[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span267[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -13759,13 +16603,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span131[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span267[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj174.Steps = list267; reference200 = obj174; - ref QuestSequence reference201 = ref span125[7]; + num++; + ref QuestSequence reference201 = ref span259[num]; QuestSequence obj175 = new QuestSequence { Sequence = 7 @@ -13773,28 +16619,34 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010237u, new Vector3(242.29797f, 8.000164f, 668.2383f), 135) + Span span268 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span268[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010237u, new Vector3(242.29797f, 8.000164f, 668.2383f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj175.Steps = list268; reference201 = obj175; - ref QuestSequence reference202 = ref span125[8]; + num++; + ref QuestSequence reference202 = ref span259[num]; QuestSequence obj176 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1010237u, new Vector3(242.29797f, 8.000164f, 668.2383f), 135) + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + Span span269 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span269[num2] = new QuestStep(EInteractionType.Interact, 1010237u, new Vector3(242.29797f, 8.000164f, 668.2383f), 135) { StopDistance = 7f }; obj176.Steps = list269; reference202 = obj176; - ref QuestSequence reference203 = ref span125[9]; + num++; + ref QuestSequence reference203 = ref span259[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -13802,8 +16654,9 @@ public static class AssemblyQuestLoader num2 = 2; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span132 = CollectionsMarshal.AsSpan(list270); - span132[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span270[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -13813,7 +16666,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span132[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + index2++; + span270[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(148) @@ -13827,23 +16681,28 @@ public static class AssemblyQuestLoader num = 2; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - Span span133 = CollectionsMarshal.AsSpan(list271); - span133[0] = "Cacahuetes"; - span133[1] = "liza"; + Span span271 = CollectionsMarshal.AsSpan(list271); + index = 0; + span271[index] = "Cacahuetes"; + index++; + span271[index] = "liza"; questRoot31.Author = list271; - num = 7; - List list272 = new List(num); - CollectionsMarshal.SetCount(list272, num); - Span span134 = CollectionsMarshal.AsSpan(list272); - ref QuestSequence reference204 = ref span134[0]; + index = 7; + List list272 = new List(index); + CollectionsMarshal.SetCount(list272, index); + Span span272 = CollectionsMarshal.AsSpan(list272); + num = 0; + ref QuestSequence reference204 = ref span272[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list273)[0]; + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + ref QuestStep reference205 = ref span273[num2]; QuestStep obj179 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -13858,17 +16717,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - CollectionsMarshal.AsSpan(list274)[0] = 133; + num4 = 1; + List list274 = new List(num4); + CollectionsMarshal.SetCount(list274, num4); + Span span274 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + span274[num3] = 133; obj180.InTerritory = list274; skipConditions23.AetheryteShortcutIf = obj180; obj179.SkipConditions = skipConditions23; reference205 = obj179; obj178.Steps = list273; reference204 = obj178; - ref QuestSequence reference206 = ref span134[1]; + num++; + ref QuestSequence reference206 = ref span272[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -13876,24 +16738,29 @@ public static class AssemblyQuestLoader num2 = 2; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - Span span135 = CollectionsMarshal.AsSpan(list275); - span135[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) + Span span275 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span275[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; - span135[1] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); + index2++; + span275[index2] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); obj181.Steps = list275; reference206 = obj181; - ref QuestSequence reference207 = ref span134[2]; + num++; + ref QuestSequence reference207 = ref span272[num]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - ref QuestStep reference208 = ref CollectionsMarshal.AsSpan(list276)[0]; + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + Span span276 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + ref QuestStep reference208 = ref span276[num2]; QuestStep obj183 = new QuestStep(EInteractionType.Combat, 2001229u, new Vector3(-510.6432f, 6.301941f, 35.78235f), 152) { Fly = true, @@ -13902,12 +16769,15 @@ public static class AssemblyQuestLoader num3 = 1; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = 295u; + Span span277 = CollectionsMarshal.AsSpan(list277); + num4 = 0; + span277[num4] = 295u; obj183.KillEnemyDataIds = list277; reference208 = obj183; obj182.Steps = list276; reference207 = obj182; - ref QuestSequence reference209 = ref span134[3]; + num++; + ref QuestSequence reference209 = ref span272[num]; QuestSequence obj184 = new QuestSequence { Sequence = 3 @@ -13915,23 +16785,28 @@ public static class AssemblyQuestLoader num2 = 2; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span136 = CollectionsMarshal.AsSpan(list278); - span136[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) + Span span278 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span278[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) { Fly = true }; - span136[1] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); + index2++; + span278[index2] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); obj184.Steps = list278; reference209 = obj184; - ref QuestSequence reference210 = ref span134[4]; + num++; + ref QuestSequence reference210 = ref span272[num]; QuestSequence obj185 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001230u, new Vector3(-510.76526f, 6.1798096f, 35.568726f), 152) + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + Span span279 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span279[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001230u, new Vector3(-510.76526f, 6.1798096f, 35.568726f), 152) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -13941,7 +16816,8 @@ public static class AssemblyQuestLoader }; obj185.Steps = list279; reference210 = obj185; - ref QuestSequence reference211 = ref span134[5]; + num++; + ref QuestSequence reference211 = ref span272[num]; QuestSequence obj186 = new QuestSequence { Sequence = 5 @@ -13949,23 +16825,28 @@ public static class AssemblyQuestLoader num2 = 2; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - Span span137 = CollectionsMarshal.AsSpan(list280); - span137[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) + Span span280 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span280[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) { Fly = true }; - span137[1] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); + index2++; + span280[index2] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); obj186.Steps = list280; reference211 = obj186; - ref QuestSequence reference212 = ref span134[6]; + num++; + ref QuestSequence reference212 = ref span272[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + Span span281 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span281[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -13984,13 +16865,16 @@ public static class AssemblyQuestLoader num = 1; List list282 = new List(num); CollectionsMarshal.SetCount(list282, num); - CollectionsMarshal.AsSpan(list282)[0] = "liza"; + Span span282 = CollectionsMarshal.AsSpan(list282); + index = 0; + span282[index] = "liza"; questRoot32.Author = list282; - num = 8; - List list283 = new List(num); - CollectionsMarshal.SetCount(list283, num); - Span span138 = CollectionsMarshal.AsSpan(list283); - ref QuestSequence reference213 = ref span138[0]; + index = 8; + List list283 = new List(index); + CollectionsMarshal.SetCount(list283, index); + Span span283 = CollectionsMarshal.AsSpan(list283); + num = 0; + ref QuestSequence reference213 = ref span283[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 @@ -13998,8 +16882,9 @@ public static class AssemblyQuestLoader num2 = 2; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span139 = CollectionsMarshal.AsSpan(list284); - span139[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span284[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -14020,39 +16905,45 @@ public static class AssemblyQuestLoader } } }; - span139[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + index2++; + span284[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj188.Steps = list284; reference213 = obj188; - ref QuestSequence reference214 = ref span138[1]; + num++; + ref QuestSequence reference214 = ref span283[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - Span span140 = CollectionsMarshal.AsSpan(list285); - ref QuestStep reference215 = ref span140[0]; + index2 = 3; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span285 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + ref QuestStep reference215 = ref span285[num2]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) { TargetTerritoryId = (ushort)129 }; SkipConditions skipConditions24 = new SkipConditions(); SkipStepConditions skipStepConditions13 = new SkipStepConditions(); - num3 = 2; - List list286 = new List(num3); - CollectionsMarshal.SetCount(list286, num3); - Span span141 = CollectionsMarshal.AsSpan(list286); - span141[0] = 134; - span141[1] = 135; + num4 = 2; + List list286 = new List(num4); + CollectionsMarshal.SetCount(list286, num4); + Span span286 = CollectionsMarshal.AsSpan(list286); + num3 = 0; + span286[num3] = 134; + num3++; + span286[num3] = 135; skipStepConditions13.InTerritory = list286; skipConditions24.StepIf = skipStepConditions13; obj190.SkipConditions = skipConditions24; reference215 = obj190; - ref QuestStep reference216 = ref span140[1]; + num2++; + ref QuestStep reference216 = ref span285[num2]; QuestStep obj191 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(212.54845f, 65.80573f, 285.71436f), 134) { Fly = true, @@ -14067,30 +16958,37 @@ public static class AssemblyQuestLoader num3 = 1; List list287 = new List(num3); CollectionsMarshal.SetCount(list287, num3); - CollectionsMarshal.AsSpan(list287)[0] = 135; + Span span287 = CollectionsMarshal.AsSpan(list287); + num4 = 0; + span287[num4] = 135; skipStepConditions14.InTerritory = list287; skipConditions25.StepIf = skipStepConditions14; obj191.SkipConditions = skipConditions25; reference216 = obj191; - ref QuestStep reference217 = ref span140[2]; + num2++; + ref QuestStep reference217 = ref span285[num2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, null, new Vector3(509.26575f, 95.90476f, -446.11078f), 135) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list288 = new List(num3); - CollectionsMarshal.SetCount(list288, num3); - Span span142 = CollectionsMarshal.AsSpan(list288); - span142[0] = 2864u; - span142[1] = 2865u; - span142[2] = 2866u; + num4 = 3; + List list288 = new List(num4); + CollectionsMarshal.SetCount(list288, num4); + Span span288 = CollectionsMarshal.AsSpan(list288); + num3 = 0; + span288[num3] = 2864u; + num3++; + span288[num3] = 2865u; + num3++; + span288[num3] = 2866u; obj192.KillEnemyDataIds = list288; reference217 = obj192; obj189.Steps = list285; reference214 = obj189; - ref QuestSequence reference218 = ref span138[2]; + num++; + ref QuestSequence reference218 = ref span283[num]; QuestSequence obj193 = new QuestSequence { Sequence = 2 @@ -14098,19 +16996,23 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1010252u, new Vector3(508.23218f, 95.95811f, -449.82074f), 135); + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span289[index2] = new QuestStep(EInteractionType.Interact, 1010252u, new Vector3(508.23218f, 95.95811f, -449.82074f), 135); obj193.Steps = list289; reference218 = obj193; - ref QuestSequence reference219 = ref span138[3]; + num++; + ref QuestSequence reference219 = ref span283[num]; QuestSequence obj194 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - Span span143 = CollectionsMarshal.AsSpan(list290); - span143[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + Span span290 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span290[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -14120,13 +17022,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span143[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span290[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj194.Steps = list290; reference219 = obj194; - ref QuestSequence reference220 = ref span138[4]; + num++; + ref QuestSequence reference220 = ref span283[num]; QuestSequence obj195 = new QuestSequence { Sequence = 4 @@ -14134,8 +17038,9 @@ public static class AssemblyQuestLoader num2 = 5; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span144 = CollectionsMarshal.AsSpan(list291); - span144[0] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) + Span span291 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span291[index2] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) { TargetTerritoryId = (ushort)129, SkipConditions = new SkipConditions @@ -14146,7 +17051,8 @@ public static class AssemblyQuestLoader } } }; - span144[1] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) + index2++; + span291[index2] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) { TargetTerritoryId = (ushort)137, SkipConditions = new SkipConditions @@ -14157,7 +17063,8 @@ public static class AssemblyQuestLoader } } }; - span144[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) + index2++; + span291[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) { Aetheryte = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -14168,7 +17075,8 @@ public static class AssemblyQuestLoader } } }; - span144[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.17413f, 16.072088f, 406.06335f), 137) + index2++; + span291[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.17413f, 16.072088f, 406.06335f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -14180,21 +17088,26 @@ public static class AssemblyQuestLoader } } }; - span144[4] = new QuestStep(EInteractionType.Interact, 1010251u, new Vector3(450.82776f, 16.18121f, 406.69873f), 137); + index2++; + span291[index2] = new QuestStep(EInteractionType.Interact, 1010251u, new Vector3(450.82776f, 16.18121f, 406.69873f), 137); obj195.Steps = list291; reference220 = obj195; - ref QuestSequence reference221 = ref span138[5]; + num++; + ref QuestSequence reference221 = ref span283[num]; QuestSequence obj196 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010251u, new Vector3(450.82776f, 16.18121f, 406.69873f), 137); + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + Span span292 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span292[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010251u, new Vector3(450.82776f, 16.18121f, 406.69873f), 137); obj196.Steps = list292; reference221 = obj196; - ref QuestSequence reference222 = ref span138[6]; + num++; + ref QuestSequence reference222 = ref span283[num]; QuestSequence obj197 = new QuestSequence { Sequence = 6 @@ -14202,19 +17115,23 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1010250u, new Vector3(448.47778f, 16.154829f, 408.77393f), 137); + Span span293 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span293[index2] = new QuestStep(EInteractionType.Interact, 1010250u, new Vector3(448.47778f, 16.154829f, 408.77393f), 137); obj197.Steps = list293; reference222 = obj197; - ref QuestSequence reference223 = ref span138[7]; + num++; + ref QuestSequence reference223 = ref span283[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - Span span145 = CollectionsMarshal.AsSpan(list294); - span145[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span294 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span294[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -14224,7 +17141,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span145[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span294[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(154) @@ -14242,13 +17160,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "WigglyMuffin"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "WigglyMuffin"; questRoot.Author = list; - num = 2; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 2; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -14256,7 +17177,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -14274,15 +17197,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009295u, new Vector3(97.09314f, 27.238445f, -352.55975f), 141) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009295u, new Vector3(97.09314f, 27.238445f, -352.55975f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -14302,13 +17228,16 @@ public static class AssemblyQuestLoader num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - CollectionsMarshal.AsSpan(list5)[0] = "liza"; + Span span5 = CollectionsMarshal.AsSpan(list5); + index = 0; + span5[index] = "liza"; questRoot2.Author = list5; - num = 6; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - Span span2 = CollectionsMarshal.AsSpan(list6); - ref QuestSequence reference3 = ref span2[0]; + index = 6; + List list6 = new List(index); + CollectionsMarshal.SetCount(list6, index); + Span span6 = CollectionsMarshal.AsSpan(list6); + num = 0; + ref QuestSequence reference3 = ref span6[num]; QuestSequence obj3 = new QuestSequence { Sequence = 0 @@ -14316,8 +17245,9 @@ public static class AssemblyQuestLoader num2 = 2; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -14338,28 +17268,32 @@ public static class AssemblyQuestLoader } } }; - span3[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + index2++; + span7[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj3.Steps = list7; reference3 = obj3; - ref QuestSequence reference4 = ref span2[1]; + num++; + ref QuestSequence reference4 = ref span6[num]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span4 = CollectionsMarshal.AsSpan(list8); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(410.07083f, 31.504957f, -12.586371f), 138) + index2 = 2; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(410.07083f, 31.504957f, -12.586371f), 138) { TargetTerritoryId = (ushort)139, Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - ref QuestStep reference5 = ref span4[1]; + num2++; + ref QuestStep reference5 = ref span8[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Combat, null, new Vector3(-436.69995f, -2.0159357f, 48.819775f), 139) { StopDistance = 1f, @@ -14368,15 +17302,19 @@ public static class AssemblyQuestLoader int num3 = 3; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = 3569u; - span5[1] = 3570u; - span5[2] = 3571u; + Span span9 = CollectionsMarshal.AsSpan(list9); + int num4 = 0; + span9[num4] = 3569u; + num4++; + span9[num4] = 3570u; + num4++; + span9[num4] = 3571u; obj5.KillEnemyDataIds = list9; reference5 = obj5; obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference6 = ref span2[2]; + num++; + ref QuestSequence reference6 = ref span6[num]; QuestSequence obj6 = new QuestSequence { Sequence = 2 @@ -14384,24 +17322,30 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 2004916u, new Vector3(-436.02655f, -1.9379272f, 48.569458f), 139); + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.Interact, 2004916u, new Vector3(-436.02655f, -1.9379272f, 48.569458f), 139); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[3]; + num++; + ref QuestSequence reference7 = ref span6[num]; QuestSequence obj7 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1010261u, new Vector3(-437.3694f, -2.369183f, 55.954834f), 139) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.Interact, 1010261u, new Vector3(-437.3694f, -2.369183f, 55.954834f), 139) { StopDistance = 7f }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span2[4]; + num++; + ref QuestSequence reference8 = ref span6[num]; QuestSequence obj8 = new QuestSequence { Sequence = 4 @@ -14409,23 +17353,27 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1010267u, new Vector3(-449.08832f, 21.634577f, -327.93164f), 134) + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.Interact, 1010267u, new Vector3(-449.08832f, 21.634577f, -327.93164f), 134) { Fly = true, AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span2[5]; + num++; + ref QuestSequence reference9 = ref span6[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - Span span6 = CollectionsMarshal.AsSpan(list13); - span6[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -14435,7 +17383,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span6[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + num2++; + span13[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(155) @@ -14449,13 +17398,16 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "liza"; + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = "liza"; questRoot3.Author = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span7 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference10 = ref span7[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference10 = ref span15[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -14463,8 +17415,9 @@ public static class AssemblyQuestLoader num2 = 2; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span8 = CollectionsMarshal.AsSpan(list16); - span8[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -14485,26 +17438,30 @@ public static class AssemblyQuestLoader } } }; - span8[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + index2++; + span16[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span7[1]; + num++; + ref QuestSequence reference11 = ref span15[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - Span span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) + index2 = 2; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) { TargetTerritoryId = (ushort)129 }; - span9[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004863u, new Vector3(4.4403076f, 44.47998f, 121.29382f), 128) + num2++; + span17[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004863u, new Vector3(4.4403076f, 44.47998f, 121.29382f), 128) { AethernetShortcut = new AethernetShortcut { @@ -14514,7 +17471,8 @@ public static class AssemblyQuestLoader }; obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span7[2]; + num++; + ref QuestSequence reference12 = ref span15[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -14522,8 +17480,9 @@ public static class AssemblyQuestLoader num2 = 2; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span10 = CollectionsMarshal.AsSpan(list18); - span10[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AethernetShortcut = new AethernetShortcut @@ -14532,7 +17491,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + index2++; + span18[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(212) @@ -14546,24 +17506,30 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "liza"; + Span span19 = CollectionsMarshal.AsSpan(list19); + index = 0; + span19[index] = "liza"; questRoot4.Author = list19; - num = 7; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span11 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference13 = ref span11[0]; + index = 7; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + Span span20 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference13 = ref span20[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); obj13.Steps = list21; reference13 = obj13; - ref QuestSequence reference14 = ref span11[1]; + num++; + ref QuestSequence reference14 = ref span20[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -14571,63 +17537,88 @@ public static class AssemblyQuestLoader num2 = 3; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span12 = CollectionsMarshal.AsSpan(list22); - ref QuestStep reference15 = ref span12[0]; + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref QuestStep reference15 = ref span22[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1000484u, new Vector3(2.0598755f, -7.9139543f, -22.171448f), 148); - num3 = 6; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span13 = CollectionsMarshal.AsSpan(list23); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + Span span23 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list23; reference15 = questStep; - ref QuestStep reference16 = ref span12[1]; + index2++; + ref QuestStep reference16 = ref span22[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1000476u, new Vector3(27.0542f, -6.881897f, 14.145081f), 148); num3 = 6; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - Span span14 = CollectionsMarshal.AsSpan(list24); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span24 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span24[num4] = null; + num4++; + span24[num4] = null; + num4++; + span24[num4] = null; + num4++; + span24[num4] = null; + num4++; + span24[num4] = null; + num4++; + span24[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list24; reference16 = questStep2; - ref QuestStep reference17 = ref span12[2]; + index2++; + ref QuestStep reference17 = ref span22[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1000483u, new Vector3(85.496216f, -6.0870457f, 67.00232f), 148); - num3 = 6; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - Span span15 = CollectionsMarshal.AsSpan(list25); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list25 = new List(num4); + CollectionsMarshal.SetCount(list25, num4); + Span span25 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list25; reference17 = questStep3; obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference18 = ref span11[2]; + num++; + ref QuestSequence reference18 = ref span20[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); obj15.Steps = list26; reference18 = obj15; - ref QuestSequence reference19 = ref span11[3]; + num++; + ref QuestSequence reference19 = ref span20[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -14635,9 +17626,11 @@ public static class AssemblyQuestLoader num2 = 2; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span16 = CollectionsMarshal.AsSpan(list27); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.630515f, -22.580793f, 242.32327f), 148); - ref QuestStep reference20 = ref span16[1]; + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.630515f, -22.580793f, 242.32327f), 148); + index2++; + ref QuestStep reference20 = ref span27[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.SinglePlayerDuty, 1003002u, new Vector3(-189.13562f, -26.70127f, 295.52136f), 148); SinglePlayerDutyOptions obj17 = new SinglePlayerDutyOptions { @@ -14646,24 +17639,30 @@ public static class AssemblyQuestLoader num3 = 1; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = "Healer NPC is only killed after the boss dies; all NPCs need to be killed for the duty to complete"; + Span span28 = CollectionsMarshal.AsSpan(list28); + num4 = 0; + span28[num4] = "Healer NPC is only killed after the boss dies; all NPCs need to be killed for the duty to complete"; obj17.Notes = list28; questStep4.SinglePlayerDutyOptions = obj17; reference20 = questStep4; obj16.Steps = list27; reference19 = obj16; - ref QuestSequence reference21 = ref span11[4]; + num++; + ref QuestSequence reference21 = ref span20[num]; QuestSequence obj18 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1003002u, new Vector3(-189.13562f, -26.70127f, 295.52136f), 148); + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.Interact, 1003002u, new Vector3(-189.13562f, -26.70127f, 295.52136f), 148); obj18.Steps = list29; reference21 = obj18; - ref QuestSequence reference22 = ref span11[5]; + num++; + ref QuestSequence reference22 = ref span20[num]; QuestSequence obj19 = new QuestSequence { Sequence = 5 @@ -14671,21 +17670,26 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148) + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj19.Steps = list30; reference22 = obj19; - ref QuestSequence reference23 = ref span11[6]; + num++; + ref QuestSequence reference23 = ref span20[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); obj20.Steps = list31; reference23 = obj20; questRoot4.QuestSequence = list20; @@ -14695,13 +17699,16 @@ public static class AssemblyQuestLoader num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - CollectionsMarshal.AsSpan(list32)[0] = "FalconTaterz"; + Span span32 = CollectionsMarshal.AsSpan(list32); + index = 0; + span32[index] = "FalconTaterz"; questRoot5.Author = list32; - num = 7; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - Span span17 = CollectionsMarshal.AsSpan(list33); - ref QuestSequence reference24 = ref span17[0]; + index = 7; + List list33 = new List(index); + CollectionsMarshal.SetCount(list33, index); + Span span33 = CollectionsMarshal.AsSpan(list33); + num = 0; + ref QuestSequence reference24 = ref span33[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -14709,7 +17716,9 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009357u, new Vector3(528.95386f, 17.44805f, 448.69153f), 137) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009357u, new Vector3(528.95386f, 17.44805f, 448.69153f), 137) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -14723,16 +17732,18 @@ public static class AssemblyQuestLoader }; obj21.Steps = list34; reference24 = obj21; - ref QuestSequence reference25 = ref span17[1]; + num++; + ref QuestSequence reference25 = ref span33[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span18 = CollectionsMarshal.AsSpan(list35); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130) + index2 = 2; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -14741,10 +17752,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - span18[1] = new QuestStep(EInteractionType.Interact, 1010160u, new Vector3(-144.64032f, 12f, -5.6916504f), 130); + num2++; + span35[num2] = new QuestStep(EInteractionType.Interact, 1010160u, new Vector3(-144.64032f, 12f, -5.6916504f), 130); obj22.Steps = list35; reference25 = obj22; - ref QuestSequence reference26 = ref span17[2]; + num++; + ref QuestSequence reference26 = ref span33[num]; QuestSequence obj23 = new QuestSequence { Sequence = 2 @@ -14752,9 +17765,11 @@ public static class AssemblyQuestLoader num2 = 2; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span19 = CollectionsMarshal.AsSpan(list36); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130); - span19[1] = new QuestStep(EInteractionType.Interact, 1001857u, new Vector3(-46.76892f, 10f, -12.741333f), 131) + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130); + index2++; + span36[index2] = new QuestStep(EInteractionType.Interact, 1001857u, new Vector3(-46.76892f, 10f, -12.741333f), 131) { AethernetShortcut = new AethernetShortcut { @@ -14764,16 +17779,18 @@ public static class AssemblyQuestLoader }; obj23.Steps = list36; reference26 = obj23; - ref QuestSequence reference27 = ref span17[3]; + num++; + ref QuestSequence reference27 = ref span33[num]; QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span20 = CollectionsMarshal.AsSpan(list37); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130) + index2 = 2; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130) { AethernetShortcut = new AethernetShortcut { @@ -14781,10 +17798,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - span20[1] = new QuestStep(EInteractionType.Interact, 1010160u, new Vector3(-144.64032f, 12f, -5.6916504f), 130); + num2++; + span37[num2] = new QuestStep(EInteractionType.Interact, 1010160u, new Vector3(-144.64032f, 12f, -5.6916504f), 130); obj24.Steps = list37; reference27 = obj24; - ref QuestSequence reference28 = ref span17[4]; + num++; + ref QuestSequence reference28 = ref span33[num]; QuestSequence obj25 = new QuestSequence { Sequence = 4 @@ -14792,22 +17811,27 @@ public static class AssemblyQuestLoader num2 = 2; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span21 = CollectionsMarshal.AsSpan(list38); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-127.24249f, 7.999999f, -55.6639f), 130); - span21[1] = new QuestStep(EInteractionType.Interact, 1010188u, new Vector3(-106.523315f, 4.2265673f, -82.16986f), 130); + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-127.24249f, 7.999999f, -55.6639f), 130); + index2++; + span38[index2] = new QuestStep(EInteractionType.Interact, 1010188u, new Vector3(-106.523315f, 4.2265673f, -82.16986f), 130); obj25.Steps = list38; reference28 = obj25; - ref QuestSequence reference29 = ref span17[5]; + num++; + ref QuestSequence reference29 = ref span33[num]; QuestSequence obj26 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - Span span22 = CollectionsMarshal.AsSpan(list39); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-123.05803f, 1.363661f, -142.65125f), 130); - span22[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.12142f, 6.9845715f, 8.82207f), 131) + index2 = 3; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-123.05803f, 1.363661f, -142.65125f), 130); + num2++; + span39[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.12142f, 6.9845715f, 8.82207f), 131) { AethernetShortcut = new AethernetShortcut { @@ -14815,14 +17839,16 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - span22[2] = new QuestStep(EInteractionType.Interact, 1010281u, new Vector3(-70.96979f, 6.9839683f, 3.982544f), 131) + num2++; + span39[num2] = new QuestStep(EInteractionType.Interact, 1010281u, new Vector3(-70.96979f, 6.9839683f, 3.982544f), 131) { StopDistance = 7f, DisableNavmesh = true }; obj26.Steps = list39; reference29 = obj26; - ref QuestSequence reference30 = ref span17[6]; + num++; + ref QuestSequence reference30 = ref span33[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -14830,8 +17856,9 @@ public static class AssemblyQuestLoader num2 = 2; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span23 = CollectionsMarshal.AsSpan(list40); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130) + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130) { AethernetShortcut = new AethernetShortcut { @@ -14839,7 +17866,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - span23[1] = new QuestStep(EInteractionType.CompleteQuest, 1010287u, new Vector3(-142.71765f, 12f, -3.9215698f), 130) + index2++; + span40[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010287u, new Vector3(-142.71765f, 12f, -3.9215698f), 130) { NextQuestId = new QuestId(202) }; @@ -14852,24 +17880,30 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + Span span41 = CollectionsMarshal.AsSpan(list41); + index = 0; + span41[index] = "liza"; questRoot6.Author = list41; - num = 3; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span24 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference31 = ref span24[0]; + index = 3; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + Span span42 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference31 = ref span42[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000449u, new Vector3(201.83093f, -5.5419664f, -107.25574f), 148); + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000449u, new Vector3(201.83093f, -5.5419664f, -107.25574f), 148); obj28.Steps = list43; reference31 = obj28; - ref QuestSequence reference32 = ref span24[1]; + num++; + ref QuestSequence reference32 = ref span42[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1, @@ -14878,79 +17912,112 @@ public static class AssemblyQuestLoader num2 = 6; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span25 = CollectionsMarshal.AsSpan(list44); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(192.07129f, -12.000001f, 38.204f), 148); - span25[1] = new QuestStep(EInteractionType.Combat, null, new Vector3(190.28528f, -12f, 77.53861f), 148) + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(192.07129f, -12.000001f, 38.204f), 148); + index2++; + span44[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(190.28528f, -12f, 77.53861f), 148) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - ref QuestStep reference33 = ref span25[2]; + index2++; + ref QuestStep reference33 = ref span44[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2000141u, new Vector3(179.4613f, -10.666138f, 99.56506f), 148); - num3 = 6; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - Span span26 = CollectionsMarshal.AsSpan(list45); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list45 = new List(num4); + CollectionsMarshal.SetCount(list45, num4); + Span span45 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list45; reference33 = questStep5; - ref QuestStep reference34 = ref span25[3]; + index2++; + ref QuestStep reference34 = ref span44[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2000147u, new Vector3(168.07812f, -12.008911f, 120.80554f), 148); num3 = 6; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - Span span27 = CollectionsMarshal.AsSpan(list46); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span46 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span46[num4] = null; + num4++; + span46[num4] = null; + num4++; + span46[num4] = null; + num4++; + span46[num4] = null; + num4++; + span46[num4] = null; + num4++; + span46[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list46; reference34 = questStep6; - ref QuestStep reference35 = ref span25[4]; + index2++; + ref QuestStep reference35 = ref span44[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2000149u, new Vector3(154.0398f, -10.75769f, 120.3479f), 148); - num3 = 6; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - Span span28 = CollectionsMarshal.AsSpan(list47); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list47 = new List(num4); + CollectionsMarshal.SetCount(list47, num4); + Span span47 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + span47[num3] = null; + num3++; + span47[num3] = null; + num3++; + span47[num3] = null; + num3++; + span47[num3] = null; + num3++; + span47[num3] = null; + num3++; + span47[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list47; reference35 = questStep7; - ref QuestStep reference36 = ref span25[5]; + index2++; + ref QuestStep reference36 = ref span44[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2000148u, new Vector3(126.14636f, -12.008911f, 142.35144f), 148); num3 = 6; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - Span span29 = CollectionsMarshal.AsSpan(list48); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span48 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span48[num4] = null; + num4++; + span48[num4] = null; + num4++; + span48[num4] = null; + num4++; + span48[num4] = null; + num4++; + span48[num4] = null; + num4++; + span48[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list48; reference36 = questStep8; obj29.Steps = list44; reference32 = obj29; - ref QuestSequence reference37 = ref span24[2]; + num++; + ref QuestSequence reference37 = ref span42[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000685u, new Vector3(287.92236f, -3.297f, -32.6391f), 148); + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000685u, new Vector3(287.92236f, -3.297f, -32.6391f), 148); obj30.Steps = list49; reference37 = obj30; questRoot6.QuestSequence = list42; @@ -14960,13 +18027,16 @@ public static class AssemblyQuestLoader num = 1; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = "liza"; + Span span50 = CollectionsMarshal.AsSpan(list50); + index = 0; + span50[index] = "liza"; questRoot7.Author = list50; - num = 2; - List list51 = new List(num); - CollectionsMarshal.SetCount(list51, num); - Span span30 = CollectionsMarshal.AsSpan(list51); - ref QuestSequence reference38 = ref span30[0]; + index = 2; + List list51 = new List(index); + CollectionsMarshal.SetCount(list51, index); + Span span51 = CollectionsMarshal.AsSpan(list51); + num = 0; + ref QuestSequence reference38 = ref span51[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -14974,19 +18044,23 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); obj31.Steps = list52; reference38 = obj31; - ref QuestSequence reference39 = ref span30[1]; + num++; + ref QuestSequence reference39 = ref span51[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span31 = CollectionsMarshal.AsSpan(list53); - span31[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) + index2 = 4; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AethernetShortcut = new AethernetShortcut @@ -14995,15 +18069,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaBlueBadgerGate } }; - span31[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 148) + num2++; + span53[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows }; - span31[2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002980u, new Vector3(22.934265f, -8f, 84.97742f), 148) + num2++; + span53[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002980u, new Vector3(22.934265f, -8f, 84.97742f), 148) { TaxiStandId = (byte)9 }; - span31[3] = new QuestStep(EInteractionType.CompleteQuest, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); + num2++; + span53[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); obj32.Steps = list53; reference39 = obj32; questRoot7.QuestSequence = list51; @@ -15013,12 +18090,16 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "liza"; + Span span54 = CollectionsMarshal.AsSpan(list54); + index = 0; + span54[index] = "liza"; questRoot8.Author = list54; - num = 1; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - ref QuestSequence reference40 = ref CollectionsMarshal.AsSpan(list55)[0]; + index = 1; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + Span span55 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference40 = ref span55[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -15026,7 +18107,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list56)[0]; + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + ref QuestStep reference41 = ref span56[index2]; QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -15041,17 +18124,21 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = 131; + num4 = 1; + List list57 = new List(num4); + CollectionsMarshal.SetCount(list57, num4); + Span span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span57[num3] = 131; obj35.InTerritory = list57; skipConditions.AetheryteShortcutIf = obj35; obj34.SkipConditions = skipConditions; num3 = 1; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - CollectionsMarshal.AsSpan(list58)[0] = new DialogueChoice + Span span58 = CollectionsMarshal.AsSpan(list58); + num4 = 0; + span58[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLA001_00177_Q1_000_1") @@ -15067,20 +18154,26 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "Cacahuetes"; + Span span59 = CollectionsMarshal.AsSpan(list59); + index = 0; + span59[index] = "Cacahuetes"; questRoot9.Author = list59; - num = 1; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - ref QuestSequence reference42 = ref CollectionsMarshal.AsSpan(list60)[0]; + index = 1; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + Span span60 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference42 = ref span60[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - ref QuestStep reference43 = ref CollectionsMarshal.AsSpan(list61)[0]; + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + ref QuestStep reference43 = ref span61[num2]; QuestStep obj37 = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -15092,10 +18185,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - CollectionsMarshal.AsSpan(list62)[0] = new DialogueChoice + num4 = 1; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + Span span62 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span62[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSPGL001_00178_Q1_000_1") @@ -15111,12 +18206,16 @@ public static class AssemblyQuestLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = "Cacahuetes"; + Span span63 = CollectionsMarshal.AsSpan(list63); + index = 0; + span63[index] = "Cacahuetes"; questRoot10.Author = list63; - num = 1; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - ref QuestSequence reference44 = ref CollectionsMarshal.AsSpan(list64)[0]; + index = 1; + List list64 = new List(index); + CollectionsMarshal.SetCount(list64, index); + Span span64 = CollectionsMarshal.AsSpan(list64); + num = 0; + ref QuestSequence reference44 = ref span64[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -15124,7 +18223,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list65)[0]; + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + ref QuestStep reference45 = ref span65[index2]; QuestStep obj39 = new QuestStep(EInteractionType.AcceptQuest, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -15142,14 +18243,18 @@ public static class AssemblyQuestLoader num3 = 1; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = 128; + Span span66 = CollectionsMarshal.AsSpan(list66); + num4 = 0; + span66[num4] = 128; obj40.InTerritory = list66; skipConditions2.AetheryteShortcutIf = obj40; obj39.SkipConditions = skipConditions2; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new DialogueChoice + num4 = 1; + List list67 = new List(num4); + CollectionsMarshal.SetCount(list67, num4); + Span span67 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span67[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSEXC001_00179_Q1_000_1") @@ -15165,20 +18270,26 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "Cacahuetes"; + Span span68 = CollectionsMarshal.AsSpan(list68); + index = 0; + span68[index] = "Cacahuetes"; questRoot11.Author = list68; - num = 1; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - ref QuestSequence reference46 = ref CollectionsMarshal.AsSpan(list69)[0]; + index = 1; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + Span span69 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference46 = ref span69[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list70)[0]; + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref QuestStep reference47 = ref span70[num2]; QuestStep obj42 = new QuestStep(EInteractionType.AcceptQuest, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) { AethernetShortcut = new AethernetShortcut @@ -15190,7 +18301,9 @@ public static class AssemblyQuestLoader num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new DialogueChoice + Span span71 = CollectionsMarshal.AsSpan(list71); + num4 = 0; + span71[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSLNC999_00180_Q1_000_1") @@ -15206,12 +18319,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "Cacahuetes"; + Span span72 = CollectionsMarshal.AsSpan(list72); + index = 0; + span72[index] = "Cacahuetes"; questRoot12.Author = list72; - num = 1; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - ref QuestSequence reference48 = ref CollectionsMarshal.AsSpan(list73)[0]; + index = 1; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + Span span73 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference48 = ref span73[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -15219,7 +18336,9 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - ref QuestStep reference49 = ref CollectionsMarshal.AsSpan(list74)[0]; + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + ref QuestStep reference49 = ref span74[index2]; QuestStep obj44 = new QuestStep(EInteractionType.AcceptQuest, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -15236,10 +18355,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = new DialogueChoice + num4 = 1; + List list75 = new List(num4); + CollectionsMarshal.SetCount(list75, num4); + Span span75 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span75[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARC999_00181_Q1_000_1") @@ -15255,20 +18376,26 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "liza"; + Span span76 = CollectionsMarshal.AsSpan(list76); + index = 0; + span76[index] = "liza"; questRoot13.Author = list76; - num = 1; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - ref QuestSequence reference50 = ref CollectionsMarshal.AsSpan(list77)[0]; + index = 1; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + Span span77 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference50 = ref span77[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list78)[0]; + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + ref QuestStep reference51 = ref span78[num2]; QuestStep obj46 = new QuestStep(EInteractionType.AcceptQuest, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -15286,14 +18413,18 @@ public static class AssemblyQuestLoader num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = 133; + Span span79 = CollectionsMarshal.AsSpan(list79); + num4 = 0; + span79[num4] = 133; obj47.InTerritory = list79; skipConditions3.AetheryteShortcutIf = obj47; obj46.SkipConditions = skipConditions3; - num3 = 1; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new DialogueChoice + num4 = 1; + List list80 = new List(num4); + CollectionsMarshal.SetCount(list80, num4); + Span span80 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span80[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSCNJ999_00182_Q1_000_1") @@ -15309,12 +18440,16 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "Cacahuetes"; + Span span81 = CollectionsMarshal.AsSpan(list81); + index = 0; + span81[index] = "Cacahuetes"; questRoot14.Author = list81; - num = 1; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - ref QuestSequence reference52 = ref CollectionsMarshal.AsSpan(list82)[0]; + index = 1; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + Span span82 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference52 = ref span82[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -15322,7 +18457,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list83)[0]; + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + ref QuestStep reference53 = ref span83[index2]; QuestStep obj49 = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -15342,7 +18479,9 @@ public static class AssemblyQuestLoader num3 = 1; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = new DialogueChoice + Span span84 = CollectionsMarshal.AsSpan(list84); + num4 = 0; + span84[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSTHM001_00183_Q1_000_1") @@ -15358,20 +18497,26 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "Cacahuetes"; + Span span85 = CollectionsMarshal.AsSpan(list85); + index = 0; + span85[index] = "Cacahuetes"; questRoot15.Author = list85; - num = 1; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - ref QuestSequence reference54 = ref CollectionsMarshal.AsSpan(list86)[0]; + index = 1; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + Span span86 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference54 = ref span86[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list87)[0]; + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + ref QuestStep reference55 = ref span87[num2]; QuestStep obj51 = new QuestStep(EInteractionType.AcceptQuest, 1000148u, new Vector3(-20.279297f, -3.25f, 45.97534f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -15383,10 +18528,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - CollectionsMarshal.AsSpan(list88)[0] = new DialogueChoice + num4 = 1; + List list88 = new List(num4); + CollectionsMarshal.SetCount(list88, num4); + Span span88 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span88[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSWDK999_00184_Q1_000_1") @@ -15402,12 +18549,16 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = "Cacahuetes"; + Span span89 = CollectionsMarshal.AsSpan(list89); + index = 0; + span89[index] = "Cacahuetes"; questRoot16.Author = list89; - num = 1; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - ref QuestSequence reference56 = ref CollectionsMarshal.AsSpan(list90)[0]; + index = 1; + List list90 = new List(index); + CollectionsMarshal.SetCount(list90, index); + Span span90 = CollectionsMarshal.AsSpan(list90); + num = 0; + ref QuestSequence reference56 = ref span90[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -15415,7 +18566,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list91)[0]; + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + ref QuestStep reference57 = ref span91[index2]; QuestStep obj53 = new QuestStep(EInteractionType.AcceptQuest, 1000995u, new Vector3(-52.018066f, 42.799637f, 192.2179f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -15433,14 +18586,18 @@ public static class AssemblyQuestLoader num3 = 1; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = 128; + Span span92 = CollectionsMarshal.AsSpan(list92); + num4 = 0; + span92[num4] = 128; obj54.InTerritory = list92; skipConditions4.AetheryteShortcutIf = obj54; obj53.SkipConditions = skipConditions4; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new DialogueChoice + num4 = 1; + List list93 = new List(num4); + CollectionsMarshal.SetCount(list93, num4); + Span span93 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span93[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSBSM001_00185_Q1_000_1") @@ -15457,20 +18614,26 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "Cacahuetes"; + Span span94 = CollectionsMarshal.AsSpan(list94); + index = 0; + span94[index] = "Cacahuetes"; questRoot17.Author = list94; - num = 1; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - ref QuestSequence reference58 = ref CollectionsMarshal.AsSpan(list95)[0]; + index = 1; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + Span span95 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference58 = ref span95[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list96)[0]; + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + ref QuestStep reference59 = ref span96[num2]; QuestStep obj56 = new QuestStep(EInteractionType.AcceptQuest, 1000998u, new Vector3(-51.651794f, 42.79979f, 190.41736f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -15488,14 +18651,18 @@ public static class AssemblyQuestLoader num3 = 1; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - CollectionsMarshal.AsSpan(list97)[0] = 128; + Span span97 = CollectionsMarshal.AsSpan(list97); + num4 = 0; + span97[num4] = 128; obj57.InTerritory = list97; skipConditions5.AetheryteShortcutIf = obj57; obj56.SkipConditions = skipConditions5; - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = new DialogueChoice + num4 = 1; + List list98 = new List(num4); + CollectionsMarshal.SetCount(list98, num4); + Span span98 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span98[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARM001_00186_Q1_000_1") @@ -15511,12 +18678,16 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "Cacahuetes"; + Span span99 = CollectionsMarshal.AsSpan(list99); + index = 0; + span99[index] = "Cacahuetes"; questRoot18.Author = list99; - num = 1; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - ref QuestSequence reference60 = ref CollectionsMarshal.AsSpan(list100)[0]; + index = 1; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + Span span100 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference60 = ref span100[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 @@ -15524,7 +18695,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list101)[0]; + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + ref QuestStep reference61 = ref span101[index2]; QuestStep obj59 = new QuestStep(EInteractionType.AcceptQuest, 1002280u, new Vector3(-35.385742f, 13.599962f, 97.24573f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -15542,14 +18715,18 @@ public static class AssemblyQuestLoader num3 = 1; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = 131; + Span span102 = CollectionsMarshal.AsSpan(list102); + num4 = 0; + span102[num4] = 131; obj60.InTerritory = list102; skipConditions6.AetheryteShortcutIf = obj60; obj59.SkipConditions = skipConditions6; - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = new DialogueChoice + num4 = 1; + List list103 = new List(num4); + CollectionsMarshal.SetCount(list103, num4); + Span span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span103[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLD001_00187_Q1_000_1") @@ -15565,20 +18742,26 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "Cacahuetes"; + Span span104 = CollectionsMarshal.AsSpan(list104); + index = 0; + span104[index] = "Cacahuetes"; questRoot19.Author = list104; - num = 1; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - ref QuestSequence reference62 = ref CollectionsMarshal.AsSpan(list105)[0]; + index = 1; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + Span span105 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference62 = ref span105[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list106)[0]; + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + ref QuestStep reference63 = ref span106[num2]; QuestStep obj62 = new QuestStep(EInteractionType.AcceptQuest, 1000352u, new Vector3(65.69006f, 8f, -147.41742f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -15596,14 +18779,18 @@ public static class AssemblyQuestLoader num3 = 1; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = 133; + Span span107 = CollectionsMarshal.AsSpan(list107); + num4 = 0; + span107[num4] = 133; obj63.InTerritory = list107; skipConditions7.AetheryteShortcutIf = obj63; obj62.SkipConditions = skipConditions7; - num3 = 1; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new DialogueChoice + num4 = 1; + List list108 = new List(num4); + CollectionsMarshal.SetCount(list108, num4); + Span span108 = CollectionsMarshal.AsSpan(list108); + num3 = 0; + span108[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSTAN999_00188_Q1_000_1") @@ -15619,12 +18806,16 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "Cacahuetes"; + Span span109 = CollectionsMarshal.AsSpan(list109); + index = 0; + span109[index] = "Cacahuetes"; questRoot20.Author = list109; - num = 1; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - ref QuestSequence reference64 = ref CollectionsMarshal.AsSpan(list110)[0]; + index = 1; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + Span span110 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference64 = ref span110[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -15632,7 +18823,9 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list111)[0]; + Span span111 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + ref QuestStep reference65 = ref span111[index2]; QuestStep obj65 = new QuestStep(EInteractionType.AcceptQuest, 1002283u, new Vector3(134.90503f, 7.5919275f, 98.039185f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -15650,14 +18843,18 @@ public static class AssemblyQuestLoader num3 = 1; List list112 = new List(num3); CollectionsMarshal.SetCount(list112, num3); - CollectionsMarshal.AsSpan(list112)[0] = 131; + Span span112 = CollectionsMarshal.AsSpan(list112); + num4 = 0; + span112[num4] = 131; obj66.InTerritory = list112; skipConditions8.AetheryteShortcutIf = obj66; obj65.SkipConditions = skipConditions8; - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = new DialogueChoice + num4 = 1; + List list113 = new List(num4); + CollectionsMarshal.SetCount(list113, num4); + Span span113 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span113[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSWVR001_00189_Q1_000_1") @@ -15673,20 +18870,26 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "Cacahuetes"; + Span span114 = CollectionsMarshal.AsSpan(list114); + index = 0; + span114[index] = "Cacahuetes"; questRoot21.Author = list114; - num = 1; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - ref QuestSequence reference66 = ref CollectionsMarshal.AsSpan(list115)[0]; + index = 1; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + Span span115 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference66 = ref span115[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list116)[0]; + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + ref QuestStep reference67 = ref span116[num2]; QuestStep obj68 = new QuestStep(EInteractionType.AcceptQuest, 1002281u, new Vector3(-115.739685f, 41.600117f, 118.88306f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -15704,14 +18907,18 @@ public static class AssemblyQuestLoader num3 = 1; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = 131; + Span span117 = CollectionsMarshal.AsSpan(list117); + num4 = 0; + span117[num4] = 131; obj69.InTerritory = list117; skipConditions9.AetheryteShortcutIf = obj69; obj68.SkipConditions = skipConditions9; - num3 = 1; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = new DialogueChoice + num4 = 1; + List list118 = new List(num4); + CollectionsMarshal.SetCount(list118, num4); + Span span118 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span118[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSALC001_00190_Q1_1") @@ -15727,12 +18934,16 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "Cacahuetes"; + Span span119 = CollectionsMarshal.AsSpan(list119); + index = 0; + span119[index] = "Cacahuetes"; questRoot22.Author = list119; - num = 1; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - ref QuestSequence reference68 = ref CollectionsMarshal.AsSpan(list120)[0]; + index = 1; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + Span span120 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference68 = ref span120[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 @@ -15740,7 +18951,9 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list121)[0]; + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + ref QuestStep reference69 = ref span121[index2]; QuestStep obj71 = new QuestStep(EInteractionType.AcceptQuest, 1000946u, new Vector3(-61.142883f, 42.299698f, -164.0498f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -15758,14 +18971,18 @@ public static class AssemblyQuestLoader num3 = 1; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = 128; + Span span122 = CollectionsMarshal.AsSpan(list122); + num4 = 0; + span122[num4] = 128; obj72.InTerritory = list122; skipConditions10.AetheryteShortcutIf = obj72; obj71.SkipConditions = skipConditions10; - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = new DialogueChoice + num4 = 1; + List list123 = new List(num4); + CollectionsMarshal.SetCount(list123, num4); + Span span123 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span123[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSCUL001_00191_Q1_000_1") @@ -15781,20 +18998,26 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "liza"; + Span span124 = CollectionsMarshal.AsSpan(list124); + index = 0; + span124[index] = "liza"; questRoot23.Author = list124; - num = 1; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - ref QuestSequence reference70 = ref CollectionsMarshal.AsSpan(list125)[0]; + index = 1; + List list125 = new List(index); + CollectionsMarshal.SetCount(list125, index); + Span span125 = CollectionsMarshal.AsSpan(list125); + num = 0; + ref QuestSequence reference70 = ref span125[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list126)[0]; + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + ref QuestStep reference71 = ref span126[num2]; QuestStep obj74 = new QuestStep(EInteractionType.AcceptQuest, 1002282u, new Vector3(3.5552979f, 7.5999613f, 153.2157f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -15812,14 +19035,18 @@ public static class AssemblyQuestLoader num3 = 1; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - CollectionsMarshal.AsSpan(list127)[0] = 131; + Span span127 = CollectionsMarshal.AsSpan(list127); + num4 = 0; + span127[num4] = 131; obj75.InTerritory = list127; skipConditions11.AetheryteShortcutIf = obj75; obj74.SkipConditions = skipConditions11; - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = new DialogueChoice + num4 = 1; + List list128 = new List(num4); + CollectionsMarshal.SetCount(list128, num4); + Span span128 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span128[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSMIN001_00192_Q1_000_1") @@ -15835,12 +19062,16 @@ public static class AssemblyQuestLoader num = 1; List list129 = new List(num); CollectionsMarshal.SetCount(list129, num); - CollectionsMarshal.AsSpan(list129)[0] = "Cacahuetes"; + Span span129 = CollectionsMarshal.AsSpan(list129); + index = 0; + span129[index] = "Cacahuetes"; questRoot24.Author = list129; - num = 1; - List list130 = new List(num); - CollectionsMarshal.SetCount(list130, num); - ref QuestSequence reference72 = ref CollectionsMarshal.AsSpan(list130)[0]; + index = 1; + List list130 = new List(index); + CollectionsMarshal.SetCount(list130, index); + Span span130 = CollectionsMarshal.AsSpan(list130); + num = 0; + ref QuestSequence reference72 = ref span130[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 @@ -15848,7 +19079,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - ref QuestStep reference73 = ref CollectionsMarshal.AsSpan(list131)[0]; + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + ref QuestStep reference73 = ref span131[index2]; QuestStep obj77 = new QuestStep(EInteractionType.AcceptQuest, 1000294u, new Vector3(-238.05603f, 8f, -142.93127f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -15866,14 +19099,18 @@ public static class AssemblyQuestLoader num3 = 1; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = 133; + Span span132 = CollectionsMarshal.AsSpan(list132); + num4 = 0; + span132[num4] = 133; obj78.InTerritory = list132; skipConditions12.AetheryteShortcutIf = obj78; obj77.SkipConditions = skipConditions12; - num3 = 1; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = new DialogueChoice + num4 = 1; + List list133 = new List(num4); + CollectionsMarshal.SetCount(list133, num4); + Span span133 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span133[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSHRV999_00193_Q1_000_1") @@ -15893,13 +19130,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 2; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 2; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -15907,20 +19147,25 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 6; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 148); - ref QuestStep reference3 = ref span2[1]; + index2 = 6; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 148); + num2++; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.PurchaseItem, 1000396u, new Vector3(82.597046f, -7.893894f, -103.349365f), 148) { ItemId = 2653u, @@ -15936,7 +19181,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = EExtendedClassJob.DoW; + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = EExtendedClassJob.DoW; obj3.RequiredCurrentJob = list5; obj3.PurchaseMenu = new PurchaseMenu { @@ -15944,16 +19191,19 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262227u) }; reference3 = obj3; - ref QuestStep reference4 = ref span2[2]; + num2++; + ref QuestStep reference4 = ref span4[num2]; QuestStep obj4 = new QuestStep(EInteractionType.PurchaseItem, 1000396u, new Vector3(82.597046f, -7.893894f, -103.349365f), 148) { ItemId = 2655u, ItemCount = 1 }; - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = EExtendedClassJob.DoM; + index3 = 1; + List list6 = new List(index3); + CollectionsMarshal.SetCount(list6, index3); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span6[num3] = EExtendedClassJob.DoM; obj4.RequiredCurrentJob = list6; obj4.PurchaseMenu = new PurchaseMenu { @@ -15961,7 +19211,8 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262227u) }; reference4 = obj4; - span2[3] = new QuestStep(EInteractionType.EquipItem, null, null, 148) + num2++; + span4[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 148) { ItemId = 2653u, SkipConditions = new SkipConditions @@ -15975,7 +19226,8 @@ public static class AssemblyQuestLoader } } }; - span2[4] = new QuestStep(EInteractionType.EquipItem, null, null, 148) + num2++; + span4[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 148) { ItemId = 2655u, SkipConditions = new SkipConditions @@ -15989,7 +19241,8 @@ public static class AssemblyQuestLoader } } }; - span2[5] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148) + num2++; + span4[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148) { Comment = "All starting gear (except the hat) is ilvl 5 already" }; @@ -16002,13 +19255,16 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "FalconTaterz"; + Span span7 = CollectionsMarshal.AsSpan(list7); + index = 0; + span7[index] = "FalconTaterz"; questRoot2.Author = list7; - num = 6; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span3 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span3[0]; + index = 6; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span8[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -16016,20 +19272,25 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010279u, new Vector3(-143.60266f, 11.999999f, -3.8911133f), 130); + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010279u, new Vector3(-143.60266f, 11.999999f, -3.8911133f), 130); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span3[1]; + num++; + ref QuestSequence reference6 = ref span8[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span4 = CollectionsMarshal.AsSpan(list10); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130); - span4[1] = new QuestStep(EInteractionType.Interact, 1010523u, new Vector3(-53.48291f, 9.999997f, -4.0742188f), 131) + index2 = 2; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130); + num2++; + span10[num2] = new QuestStep(EInteractionType.Interact, 1010523u, new Vector3(-53.48291f, 9.999997f, -4.0742188f), 131) { AethernetShortcut = new AethernetShortcut { @@ -16039,7 +19300,8 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span3[2]; + num++; + ref QuestSequence reference7 = ref span8[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 @@ -16047,30 +19309,36 @@ public static class AssemblyQuestLoader num2 = 2; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span5 = CollectionsMarshal.AsSpan(list11); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-60.649715f, -11.872707f, -61.934204f), 141) + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-60.649715f, -11.872707f, -61.934204f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - span5[1] = new QuestStep(EInteractionType.Interact, 1010293u, new Vector3(-61.387024f, -11.84896f, -63.126587f), 141); + index2++; + span11[index2] = new QuestStep(EInteractionType.Interact, 1010293u, new Vector3(-61.387024f, -11.84896f, -63.126587f), 141); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span3[3]; + num++; + ref QuestSequence reference8 = ref span8[num]; QuestSequence obj8 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1010298u, new Vector3(19.851929f, 19.020214f, -421.37793f), 141) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.Interact, 1010298u, new Vector3(19.851929f, 19.020214f, -421.37793f), 141) { Fly = true }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span3[4]; + num++; + ref QuestSequence reference9 = ref span8[num]; QuestSequence obj9 = new QuestSequence { Sequence = 4 @@ -16078,7 +19346,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1010310u, new Vector3(-55.436035f, 3.4680986f, 260.57825f), 141) + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.Interact, 1010310u, new Vector3(-55.436035f, 3.4680986f, 260.57825f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -16090,16 +19360,18 @@ public static class AssemblyQuestLoader }; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span3[5]; + num++; + ref QuestSequence reference10 = ref span8[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - Span span6 = CollectionsMarshal.AsSpan(list14); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130) + index2 = 2; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -16108,7 +19380,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - span6[1] = new QuestStep(EInteractionType.CompleteQuest, 1010290u, new Vector3(-144.73187f, 11.999999f, -5.661133f), 130) + num2++; + span14[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010290u, new Vector3(-144.73187f, 11.999999f, -5.661133f), 130) { NextQuestId = new QuestId(203) }; @@ -16121,13 +19394,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "FalconTaterz"; + Span span15 = CollectionsMarshal.AsSpan(list15); + index = 0; + span15[index] = "FalconTaterz"; questRoot3.Author = list15; - num = 6; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span7 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span7[0]; + index = 6; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + Span span16 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span16[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -16135,20 +19411,25 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010290u, new Vector3(-144.73187f, 11.999999f, -5.661133f), 130); + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010290u, new Vector3(-144.73187f, 11.999999f, -5.661133f), 130); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span7[1]; + num++; + ref QuestSequence reference12 = ref span16[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - Span span8 = CollectionsMarshal.AsSpan(list18); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130); - span8[1] = new QuestStep(EInteractionType.Interact, 1010169u, new Vector3(-47.501343f, 9.999995f, -11.886841f), 131) + index2 = 2; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130); + num2++; + span18[num2] = new QuestStep(EInteractionType.Interact, 1010169u, new Vector3(-47.501343f, 9.999995f, -11.886841f), 131) { AethernetShortcut = new AethernetShortcut { @@ -16158,7 +19439,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span7[2]; + num++; + ref QuestSequence reference13 = ref span16[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -16166,8 +19448,9 @@ public static class AssemblyQuestLoader num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span9 = CollectionsMarshal.AsSpan(list19); - span9[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-45.67461f, 11.927631f, -16.919664f), 131) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-45.67461f, 11.927631f, -16.919664f), 131) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -16175,22 +19458,25 @@ public static class AssemblyQuestLoader Position = new Vector3(-48.14437f, 9.999995f, -10.52473f) } }; - span9[1] = new QuestStep(EInteractionType.Interact, 1010316u, new Vector3(-54.581604f, 9.999972f, -12.64978f), 131) + index2++; + span19[index2] = new QuestStep(EInteractionType.Interact, 1010316u, new Vector3(-54.581604f, 9.999972f, -12.64978f), 131) { StopDistance = 7f }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span7[3]; + num++; + ref QuestSequence reference14 = ref span16[num]; QuestSequence obj14 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span10 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference15 = ref span10[0]; + index2 = 4; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span20[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 2004901u, new Vector3(103.50195f, 7.9804688f, 8.255066f), 131) { AethernetShortcut = new AethernetShortcut @@ -16202,47 +19488,69 @@ public static class AssemblyQuestLoader num3 = 6; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span11 = CollectionsMarshal.AsSpan(list21); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span21 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj15.CompletionQuestVariablesFlags = list21; reference15 = obj15; - span10[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(108.07826f, 8f, 8.036793f), 131); - ref QuestStep reference16 = ref span10[2]; + num2++; + span20[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(108.07826f, 8f, 8.036793f), 131); + num2++; + ref QuestStep reference16 = ref span20[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2004900u, new Vector3(103.715576f, 7.9804688f, -35.233154f), 131); - num3 = 6; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span12 = CollectionsMarshal.AsSpan(list22); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list22; reference16 = questStep; - ref QuestStep reference17 = ref span10[3]; + num2++; + ref QuestStep reference17 = ref span20[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2004899u, new Vector3(68.0094f, 7.9804688f, -74.05206f), 131); num3 = 6; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - Span span13 = CollectionsMarshal.AsSpan(list23); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span23 = CollectionsMarshal.AsSpan(list23); + index3 = 0; + span23[index3] = null; + index3++; + span23[index3] = null; + index3++; + span23[index3] = null; + index3++; + span23[index3] = null; + index3++; + span23[index3] = null; + index3++; + span23[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list23; reference17 = questStep2; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference18 = ref span7[4]; + num++; + ref QuestSequence reference18 = ref span16[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 @@ -16250,9 +19558,11 @@ public static class AssemblyQuestLoader num2 = 2; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span14 = CollectionsMarshal.AsSpan(list24); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(98.252335f, 8.000075f, -38.319664f), 131); - span14[1] = new QuestStep(EInteractionType.Interact, 1010316u, new Vector3(-54.581604f, 9.999972f, -12.64978f), 131) + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(98.252335f, 8.000075f, -38.319664f), 131); + index2++; + span24[index2] = new QuestStep(EInteractionType.Interact, 1010316u, new Vector3(-54.581604f, 9.999972f, -12.64978f), 131) { AethernetShortcut = new AethernetShortcut { @@ -16262,16 +19572,18 @@ public static class AssemblyQuestLoader }; obj16.Steps = list24; reference18 = obj16; - ref QuestSequence reference19 = ref span7[5]; + num++; + ref QuestSequence reference19 = ref span16[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - Span span15 = CollectionsMarshal.AsSpan(list25); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.68585f, 3.9999998f, -58.555218f), 131) + index2 = 2; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.68585f, 3.9999998f, -58.555218f), 131) { AethernetShortcut = new AethernetShortcut { @@ -16279,7 +19591,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - span15[1] = new QuestStep(EInteractionType.CompleteQuest, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) + num2++; + span25[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) { StopDistance = 5f, NextQuestId = new QuestId(204) @@ -16293,13 +19606,16 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "FalconTaterz"; + Span span26 = CollectionsMarshal.AsSpan(list26); + index = 0; + span26[index] = "FalconTaterz"; questRoot4.Author = list26; - num = 7; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span16 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span16[0]; + index = 7; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + Span span27 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span27[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -16307,19 +19623,23 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010317u, new Vector3(139.78784f, 4.0099993f, -57.114563f), 131); + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010317u, new Vector3(139.78784f, 4.0099993f, -57.114563f), 131); obj18.Steps = list28; reference20 = obj18; - ref QuestSequence reference21 = ref span16[1]; + num++; + ref QuestSequence reference21 = ref span27[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - Span span17 = CollectionsMarshal.AsSpan(list29); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.12142f, 6.9845715f, 8.82207f), 131) + index2 = 2; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.12142f, 6.9845715f, 8.82207f), 131) { AethernetShortcut = new AethernetShortcut { @@ -16327,15 +19647,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - ref QuestStep reference22 = ref span17[1]; + num2++; + ref QuestStep reference22 = ref span29[num2]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1010330u, new Vector3(-69.5354f, 6.9839687f, 0.07623291f), 131) { DisableNavmesh = true }; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new DialogueChoice + index3 = 1; + List list30 = new List(index3); + CollectionsMarshal.SetCount(list30, index3); + Span span30 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span30[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CHRHDB404_00204_Q1_000_000") @@ -16344,7 +19667,8 @@ public static class AssemblyQuestLoader reference22 = obj20; obj19.Steps = list29; reference21 = obj19; - ref QuestSequence reference23 = ref span16[2]; + num++; + ref QuestSequence reference23 = ref span27[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -16352,28 +19676,34 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1010772u, new Vector3(-72.40405f, 6.9839687f, -0.045776367f), 131) + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span31[index2] = new QuestStep(EInteractionType.Interact, 1010772u, new Vector3(-72.40405f, 6.9839687f, -0.045776367f), 131) { StopDistance = 5f }; obj21.Steps = list31; reference23 = obj21; - ref QuestSequence reference24 = ref span16[3]; + num++; + ref QuestSequence reference24 = ref span27[num]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1010161u, new Vector3(-338.3994f, -22.360315f, 434.3175f), 145) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.Interact, 1010161u, new Vector3(-338.3994f, -22.360315f, 434.3175f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj22.Steps = list32; reference24 = obj22; - ref QuestSequence reference25 = ref span16[4]; + num++; + ref QuestSequence reference25 = ref span27[num]; QuestSequence obj23 = new QuestSequence { Sequence = 4 @@ -16381,7 +19711,9 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Duty, null, null, 145) + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.Duty, null, null, 145) { DutyOptions = new DutyOptions { @@ -16390,18 +19722,22 @@ public static class AssemblyQuestLoader }; obj23.Steps = list33; reference25 = obj23; - ref QuestSequence reference26 = ref span16[5]; + num++; + ref QuestSequence reference26 = ref span27[num]; QuestSequence obj24 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1010329u, new Vector3(-334.21838f, -22.463528f, 432.9746f), 145); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.Interact, 1010329u, new Vector3(-334.21838f, -22.463528f, 432.9746f), 145); obj24.Steps = list34; reference26 = obj24; - ref QuestSequence reference27 = ref span16[6]; + num++; + ref QuestSequence reference27 = ref span27[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -16409,8 +19745,9 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span18 = CollectionsMarshal.AsSpan(list35); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.12142f, 6.9845715f, 8.82207f), 131) + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.12142f, 6.9845715f, 8.82207f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -16419,7 +19756,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1010330u, new Vector3(-69.5354f, 6.9839687f, 0.07623291f), 131) + index2++; + span35[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010330u, new Vector3(-69.5354f, 6.9839687f, 0.07623291f), 131) { DisableNavmesh = true, NextQuestId = new QuestId(490) @@ -16433,29 +19771,35 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "liza"; questRoot5.Author = list36; - num = 2; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span19 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference28 = ref span19[0]; + index = 2; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference28 = ref span37[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span20 = CollectionsMarshal.AsSpan(list38); - span20[0] = new QuestStep(EInteractionType.EquipItem, null, null, 132) + index2 = 2; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 132) { ItemId = 2314u }; - span20[1] = new QuestStep(EInteractionType.AcceptQuest, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); + num2++; + span38[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); obj26.Steps = list38; reference28 = obj26; - ref QuestSequence reference29 = ref span19[1]; + num++; + ref QuestSequence reference29 = ref span37[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -16463,7 +19807,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); obj27.Steps = list39; reference29 = obj27; questRoot5.QuestSequence = list37; @@ -16473,22 +19819,26 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "liza"; + Span span40 = CollectionsMarshal.AsSpan(list40); + index = 0; + span40[index] = "liza"; questRoot6.Author = list40; - num = 2; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span21 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference30 = ref span21[0]; + index = 2; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + Span span41 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference30 = ref span41[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - Span span22 = CollectionsMarshal.AsSpan(list42); - ref QuestStep reference31 = ref span22[0]; + index2 = 3; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + ref QuestStep reference31 = ref span42[num2]; QuestStep obj29 = new QuestStep(EInteractionType.EquipItem, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -16516,16 +19866,21 @@ public static class AssemblyQuestLoader num3 = 1; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = 133; + Span span43 = CollectionsMarshal.AsSpan(list43); + index3 = 0; + span43[index3] = 133; obj31.InTerritory = list43; obj30.AetheryteShortcutIf = obj31; obj29.SkipConditions = obj30; reference31 = obj29; - span22[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 133); - span22[2] = new QuestStep(EInteractionType.AcceptQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133); + num2++; + span42[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 133); + num2++; + span42[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133); obj28.Steps = list42; reference30 = obj28; - ref QuestSequence reference32 = ref span21[1]; + num++; + ref QuestSequence reference32 = ref span41[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -16533,20 +19888,24 @@ public static class AssemblyQuestLoader num2 = 2; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span23 = CollectionsMarshal.AsSpan(list44); - ref QuestStep reference33 = ref span23[0]; + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + ref QuestStep reference33 = ref span44[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 154); - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new GatheredItem + index3 = 1; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + Span span45 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span45[num3] = new GatheredItem { ItemId = 5509u, ItemCount = 10 }; questStep3.ItemsToGather = list45; reference33 = questStep3; - span23[1] = new QuestStep(EInteractionType.CompleteQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) + index2++; + span44[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -16565,21 +19924,26 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "liza"; + Span span46 = CollectionsMarshal.AsSpan(list46); + index = 0; + span46[index] = "liza"; questRoot7.Author = list46; - num = 3; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span24 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference34 = ref span24[0]; + index = 3; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + Span span47 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference34 = ref span47[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list48)[0]; + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + ref QuestStep reference35 = ref span48[num2]; QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -16597,14 +19961,17 @@ public static class AssemblyQuestLoader num3 = 1; List list49 = new List(num3); CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = 133; + Span span49 = CollectionsMarshal.AsSpan(list49); + index3 = 0; + span49[index3] = 133; obj35.InTerritory = list49; skipConditions.AetheryteShortcutIf = obj35; obj34.SkipConditions = skipConditions; reference35 = obj34; obj33.Steps = list48; reference34 = obj33; - ref QuestSequence reference36 = ref span24[1]; + num++; + ref QuestSequence reference36 = ref span47[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -16612,8 +19979,9 @@ public static class AssemblyQuestLoader num2 = 3; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span25 = CollectionsMarshal.AsSpan(list50); - ref QuestStep reference37 = ref span25[0]; + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + ref QuestStep reference37 = ref span50[index2]; QuestStep obj37 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.18397f, 17.128555f, -269.5008f), 148) { AethernetShortcut = new AethernetShortcut @@ -16623,10 +19991,12 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - ref ComplexCombatData reference38 = ref CollectionsMarshal.AsSpan(list51)[0]; + index3 = 1; + List list51 = new List(index3); + CollectionsMarshal.SetCount(list51, index3); + Span span51 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + ref ComplexCombatData reference38 = ref span51[num3]; ComplexCombatData obj38 = new ComplexCombatData { DataId = 37u, @@ -16635,76 +20005,106 @@ public static class AssemblyQuestLoader int num4 = 6; List list52 = new List(num4); CollectionsMarshal.SetCount(list52, num4); - Span span26 = CollectionsMarshal.AsSpan(list52); - span26[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = null; + Span span52 = CollectionsMarshal.AsSpan(list52); + int num5 = 0; + span52[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span52[num5] = null; + num5++; + span52[num5] = null; + num5++; + span52[num5] = null; + num5++; + span52[num5] = null; + num5++; + span52[num5] = null; obj38.CompletionQuestVariablesFlags = list52; reference38 = obj38; obj37.ComplexCombatData = list51; num3 = 6; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span27 = CollectionsMarshal.AsSpan(list53); - span27[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = null; + Span span53 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span53[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = null; obj37.CompletionQuestVariablesFlags = list53; reference37 = obj37; - ref QuestStep reference39 = ref span25[1]; + index2++; + ref QuestStep reference39 = ref span50[index2]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, null, new Vector3(119.449745f, 17.399649f, -259.6467f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - ref ComplexCombatData reference40 = ref CollectionsMarshal.AsSpan(list54)[0]; + index3 = 1; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + Span span54 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + ref ComplexCombatData reference40 = ref span54[num3]; ComplexCombatData obj40 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - num4 = 6; - List list55 = new List(num4); - CollectionsMarshal.SetCount(list55, num4); - Span span28 = CollectionsMarshal.AsSpan(list55); - span28[0] = null; - span28[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = null; + num5 = 6; + List list55 = new List(num5); + CollectionsMarshal.SetCount(list55, num5); + Span span55 = CollectionsMarshal.AsSpan(list55); + num4 = 0; + span55[num4] = null; + num4++; + span55[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span55[num4] = null; + num4++; + span55[num4] = null; + num4++; + span55[num4] = null; + num4++; + span55[num4] = null; obj40.CompletionQuestVariablesFlags = list55; reference40 = obj40; obj39.ComplexCombatData = list54; num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span29 = CollectionsMarshal.AsSpan(list56); - span29[0] = null; - span29[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = null; + Span span56 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span56[index3] = null; + index3++; + span56[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = null; obj39.CompletionQuestVariablesFlags = list56; reference39 = obj39; - ref QuestStep reference41 = ref span25[2]; + index2++; + ref QuestStep reference41 = ref span50[index2]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - ref ComplexCombatData reference42 = ref CollectionsMarshal.AsSpan(list57)[0]; + index3 = 1; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + Span span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + ref ComplexCombatData reference42 = ref span57[num3]; ComplexCombatData obj42 = new ComplexCombatData { DataId = 47u, @@ -16713,39 +20113,54 @@ public static class AssemblyQuestLoader num4 = 6; List list58 = new List(num4); CollectionsMarshal.SetCount(list58, num4); - Span span30 = CollectionsMarshal.AsSpan(list58); - span30[0] = null; - span30[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = null; + Span span58 = CollectionsMarshal.AsSpan(list58); + num5 = 0; + span58[num5] = null; + num5++; + span58[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span58[num5] = null; + num5++; + span58[num5] = null; + num5++; + span58[num5] = null; + num5++; + span58[num5] = null; obj42.CompletionQuestVariablesFlags = list58; reference42 = obj42; obj41.ComplexCombatData = list57; num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span31 = CollectionsMarshal.AsSpan(list59); - span31[0] = null; - span31[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = null; + Span span59 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span59[index3] = null; + index3++; + span59[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; obj41.CompletionQuestVariablesFlags = list59; reference41 = obj41; obj36.Steps = list50; reference36 = obj36; - ref QuestSequence reference43 = ref span24[2]; + num++; + ref QuestSequence reference43 = ref span47[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -16764,13 +20179,16 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "xan"; + Span span61 = CollectionsMarshal.AsSpan(list61); + index = 0; + span61[index] = "xan"; questRoot8.Author = list61; - num = 8; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span32 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference44 = ref span32[0]; + index = 8; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + Span span62 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference44 = ref span62[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -16778,8 +20196,9 @@ public static class AssemblyQuestLoader num2 = 2; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span33 = CollectionsMarshal.AsSpan(list63); - span33[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -16800,21 +20219,25 @@ public static class AssemblyQuestLoader } } }; - span33[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + index2++; + span63[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj44.Steps = list63; reference44 = obj44; - ref QuestSequence reference45 = ref span32[1]; + num++; + ref QuestSequence reference45 = ref span62[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1010602u, new Vector3(-1.449646f, 66.48521f, 46.28064f), 137) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.Interact, 1010602u, new Vector3(-1.449646f, 66.48521f, 46.28064f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -16827,7 +20250,8 @@ public static class AssemblyQuestLoader }; obj45.Steps = list64; reference45 = obj45; - ref QuestSequence reference46 = ref span32[2]; + num++; + ref QuestSequence reference46 = ref span62[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -16835,12 +20259,16 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list65)[0]; + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + ref QuestStep reference47 = ref span65[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1010603u, new Vector3(-67.36859f, 70.39888f, 11.032227f), 137); - num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = new DialogueChoice + index3 = 1; + List list66 = new List(index3); + CollectionsMarshal.SetCount(list66, index3); + Span span66 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span66[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN300_00212_Q1_000_000"), @@ -16850,21 +20278,25 @@ public static class AssemblyQuestLoader reference47 = questStep4; obj46.Steps = list65; reference46 = obj46; - ref QuestSequence reference48 = ref span32[3]; + num++; + ref QuestSequence reference48 = ref span62[num]; QuestSequence obj47 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1010607u, new Vector3(97.42883f, 68.34448f, -2.3651733f), 137) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.Interact, 1010607u, new Vector3(97.42883f, 68.34448f, -2.3651733f), 137) { Fly = true }; obj47.Steps = list67; reference48 = obj47; - ref QuestSequence reference49 = ref span32[4]; + num++; + ref QuestSequence reference49 = ref span62[num]; QuestSequence obj48 = new QuestSequence { Sequence = 4 @@ -16872,7 +20304,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1010611u, new Vector3(585.1987f, -2.4988298f, 221.85083f), 139) + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.Interact, 1010611u, new Vector3(585.1987f, -2.4988298f, 221.85083f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -16886,15 +20320,18 @@ public static class AssemblyQuestLoader }; obj48.Steps = list68; reference49 = obj48; - ref QuestSequence reference50 = ref span32[5]; + num++; + ref QuestSequence reference50 = ref span62[num]; QuestSequence obj49 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list69)[0]; + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + ref QuestStep reference51 = ref span69[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Interact, 1010615u, new Vector3(-8.529846f, 39.569904f, 260.8529f), 137) { Fly = true, @@ -16910,7 +20347,9 @@ public static class AssemblyQuestLoader num3 = 1; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = new DialogueChoice + Span span70 = CollectionsMarshal.AsSpan(list70); + index3 = 0; + span70[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBNIN300_00212_Q2_000_000") @@ -16919,7 +20358,8 @@ public static class AssemblyQuestLoader reference51 = obj50; obj49.Steps = list69; reference50 = obj49; - ref QuestSequence reference52 = ref span32[6]; + num++; + ref QuestSequence reference52 = ref span62[num]; QuestSequence obj51 = new QuestSequence { Sequence = 6 @@ -16927,15 +20367,19 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list71)[0]; + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + ref QuestStep reference53 = ref span71[index2]; QuestStep obj52 = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137 }; - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = new DialogueChoice + index3 = 1; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + Span span72 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span72[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN300_00212_Q3_000_000"), @@ -16945,15 +20389,18 @@ public static class AssemblyQuestLoader reference53 = obj52; obj51.Steps = list71; reference52 = obj51; - ref QuestSequence reference54 = ref span32[7]; + num++; + ref QuestSequence reference54 = ref span62[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(213) }; @@ -16966,13 +20413,16 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "xan"; + Span span74 = CollectionsMarshal.AsSpan(list74); + index = 0; + span74[index] = "xan"; questRoot9.Author = list74; - num = 6; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span34 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference55 = ref span34[0]; + index = 6; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + Span span75 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference55 = ref span75[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -16980,8 +20430,9 @@ public static class AssemblyQuestLoader num2 = 3; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span35 = CollectionsMarshal.AsSpan(list76); - span35[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, Comment = "Gatekeep", @@ -16998,23 +20449,27 @@ public static class AssemblyQuestLoader } } }; - span35[1] = new QuestStep(EInteractionType.EquipItem, null, null, 137) + index2++; + span76[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 137) { ItemId = 7886u }; - span35[2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span76[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj54.Steps = list76; reference55 = obj54; - ref QuestSequence reference56 = ref span34[1]; + num++; + ref QuestSequence reference56 = ref span75[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - Span span36 = CollectionsMarshal.AsSpan(list77); - span36[0] = new QuestStep(EInteractionType.Interact, 2004966u, new Vector3(-16.128845f, -23.300598f, 258.13684f), 137) + index2 = 2; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.Interact, 2004966u, new Vector3(-16.128845f, -23.300598f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, SkipConditions = new SkipConditions @@ -17030,13 +20485,15 @@ public static class AssemblyQuestLoader } } }; - span36[1] = new QuestStep(EInteractionType.Action, 2004927u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) + num2++; + span77[num2] = new QuestStep(EInteractionType.Action, 2004927u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) { Action = EAction.FumaShuriken }; obj55.Steps = list77; reference56 = obj55; - ref QuestSequence reference57 = ref span34[2]; + num++; + ref QuestSequence reference57 = ref span75[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -17044,25 +20501,32 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1010616u, new Vector3(-4.348877f, 39.531937f, 247.63867f), 137); + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.Interact, 1010616u, new Vector3(-4.348877f, 39.531937f, 247.63867f), 137); obj56.Steps = list78; reference57 = obj56; - ref QuestSequence reference58 = ref span34[3]; + num++; + ref QuestSequence reference58 = ref span75[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010616u, new Vector3(-4.348877f, 39.531937f, 247.63867f), 137); + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010616u, new Vector3(-4.348877f, 39.531937f, 247.63867f), 137); obj57.Steps = list79; reference58 = obj57; - span34[4] = new QuestSequence + num++; + span75[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference59 = ref span34[5]; + num++; + ref QuestSequence reference59 = ref span75[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -17070,7 +20534,9 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010616u, new Vector3(-4.348877f, 39.531937f, 247.63867f), 137) + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010616u, new Vector3(-4.348877f, 39.531937f, 247.63867f), 137) { NextQuestId = new QuestId(214) }; @@ -17083,21 +20549,26 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "xan"; + Span span81 = CollectionsMarshal.AsSpan(list81); + index = 0; + span81[index] = "xan"; questRoot10.Author = list81; - num = 2; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span37 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference60 = ref span37[0]; + index = 2; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + Span span82 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference60 = ref span82[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010140u, new Vector3(-8.712891f, 39.590378f, 255.23767f), 137) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010140u, new Vector3(-8.712891f, 39.590378f, 255.23767f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -17110,7 +20581,8 @@ public static class AssemblyQuestLoader }; obj59.Steps = list83; reference60 = obj59; - ref QuestSequence reference61 = ref span37[1]; + num++; + ref QuestSequence reference61 = ref span82[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -17118,12 +20590,14 @@ public static class AssemblyQuestLoader num2 = 2; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span38 = CollectionsMarshal.AsSpan(list84); - span38[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137 }; - span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + index2++; + span84[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(215) }; @@ -17136,22 +20610,26 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "xan"; + Span span85 = CollectionsMarshal.AsSpan(list85); + index = 0; + span85[index] = "xan"; questRoot11.Author = list85; - num = 8; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span39 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference62 = ref span39[0]; + index = 8; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + Span span86 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference62 = ref span86[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span40 = CollectionsMarshal.AsSpan(list87); - span40[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -17167,10 +20645,12 @@ public static class AssemblyQuestLoader } } }; - span40[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + num2++; + span87[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj61.Steps = list87; reference62 = obj61; - ref QuestSequence reference63 = ref span39[1]; + num++; + ref QuestSequence reference63 = ref span86[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -17178,8 +20658,9 @@ public static class AssemblyQuestLoader num2 = 2; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span41 = CollectionsMarshal.AsSpan(list88); - span41[0] = new QuestStep(EInteractionType.Interact, 2004966u, new Vector3(-16.128845f, -23.300598f, 258.13684f), 137) + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.Interact, 2004966u, new Vector3(-16.128845f, -23.300598f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, SkipConditions = new SkipConditions @@ -17195,24 +20676,29 @@ public static class AssemblyQuestLoader } } }; - span41[1] = new QuestStep(EInteractionType.Action, 2004928u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) + index2++; + span88[index2] = new QuestStep(EInteractionType.Action, 2004928u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) { Action = EAction.Raiton }; obj62.Steps = list88; reference63 = obj62; - ref QuestSequence reference64 = ref span39[2]; + num++; + ref QuestSequence reference64 = ref span86[num]; QuestSequence obj63 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1010615u, new Vector3(-8.529846f, 39.569904f, 260.8529f), 137); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.Interact, 1010615u, new Vector3(-8.529846f, 39.569904f, 260.8529f), 137); obj63.Steps = list89; reference64 = obj63; - ref QuestSequence reference65 = ref span39[3]; + num++; + ref QuestSequence reference65 = ref span86[num]; QuestSequence obj64 = new QuestSequence { Sequence = 3 @@ -17220,25 +20706,31 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Action, 2004929u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.Action, 2004929u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) { StopDistance = 7f, Action = EAction.Katon }; obj64.Steps = list90; reference65 = obj64; - ref QuestSequence reference66 = ref span39[4]; + num++; + ref QuestSequence reference66 = ref span86[num]; QuestSequence obj65 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1010615u, new Vector3(-8.529846f, 39.569904f, 260.8529f), 137); + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span91[num2] = new QuestStep(EInteractionType.Interact, 1010615u, new Vector3(-8.529846f, 39.569904f, 260.8529f), 137); obj65.Steps = list91; reference66 = obj65; - ref QuestSequence reference67 = ref span39[5]; + num++; + ref QuestSequence reference67 = ref span86[num]; QuestSequence obj66 = new QuestSequence { Sequence = 5 @@ -17246,8 +20738,9 @@ public static class AssemblyQuestLoader num2 = 2; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span42 = CollectionsMarshal.AsSpan(list92); - ref QuestStep reference68 = ref span42[0]; + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + ref QuestStep reference68 = ref span92[index2]; QuestStep obj67 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(407.71924f, 32.11566f, -14.989758f), 138) { TargetTerritoryId = (ushort)139, @@ -17259,36 +20752,45 @@ public static class AssemblyQuestLoader num3 = 1; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = 139; + Span span93 = CollectionsMarshal.AsSpan(list93); + index3 = 0; + span93[index3] = 139; skipStepConditions.InTerritory = list93; skipConditions2.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = 139; + index3 = 1; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + Span span94 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span94[num3] = 139; skipAetheryteCondition.InTerritory = list94; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; obj67.SkipConditions = skipConditions2; reference68 = obj67; - span42[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010618u, new Vector3(-570.82477f, -1.4935175f, -12.619263f), 139) + index2++; + span92[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010618u, new Vector3(-570.82477f, -1.4935175f, -12.619263f), 139) { Fly = true }; obj66.Steps = list92; reference67 = obj66; - ref QuestSequence reference69 = ref span39[6]; + num++; + ref QuestSequence reference69 = ref span86[num]; QuestSequence obj68 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1010618u, new Vector3(-570.82477f, -1.4935175f, -12.619263f), 139); + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.Interact, 1010618u, new Vector3(-570.82477f, -1.4935175f, -12.619263f), 139); obj68.Steps = list95; reference69 = obj68; - ref QuestSequence reference70 = ref span39[7]; + num++; + ref QuestSequence reference70 = ref span86[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -17296,8 +20798,9 @@ public static class AssemblyQuestLoader num2 = 2; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span43 = CollectionsMarshal.AsSpan(list96); - span43[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -17313,7 +20816,8 @@ public static class AssemblyQuestLoader } } }; - span43[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + index2++; + span96[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(216) }; @@ -17326,22 +20830,26 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "xan"; + Span span97 = CollectionsMarshal.AsSpan(list97); + index = 0; + span97[index] = "xan"; questRoot12.Author = list97; - num = 2; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span44 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference71 = ref span44[0]; + index = 2; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference71 = ref span98[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - Span span45 = CollectionsMarshal.AsSpan(list99); - span45[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -17357,12 +20865,15 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference72 = ref span45[1]; + num2++; + ref QuestStep reference72 = ref span99[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); num3 = 1; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = new DialogueChoice + Span span100 = CollectionsMarshal.AsSpan(list100); + index3 = 0; + span100[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN400_00216_Q1_000_000"), @@ -17372,7 +20883,8 @@ public static class AssemblyQuestLoader reference72 = questStep5; obj70.Steps = list99; reference71 = obj70; - ref QuestSequence reference73 = ref span44[1]; + num++; + ref QuestSequence reference73 = ref span98[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -17380,7 +20892,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010619u, new Vector3(473.13635f, 16.492989f, 67.33801f), 139) + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010619u, new Vector3(473.13635f, 16.492989f, 67.33801f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -17401,21 +20915,26 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "xan"; + Span span102 = CollectionsMarshal.AsSpan(list102); + index = 0; + span102[index] = "xan"; questRoot13.Author = list102; - num = 7; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span46 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference74 = ref span46[0]; + index = 7; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + Span span103 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference74 = ref span103[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010619u, new Vector3(473.13635f, 16.492989f, 67.33801f), 139) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010619u, new Vector3(473.13635f, 16.492989f, 67.33801f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -17428,7 +20947,8 @@ public static class AssemblyQuestLoader }; obj72.Steps = list104; reference74 = obj72; - ref QuestSequence reference75 = ref span46[1]; + num++; + ref QuestSequence reference75 = ref span103[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -17436,45 +20956,53 @@ public static class AssemblyQuestLoader num2 = 4; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span47 = CollectionsMarshal.AsSpan(list105); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.00787f, 16.493f, 62.747707f), 139) + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.00787f, 16.493f, 62.747707f), 139) { Mount = false }; - span47[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(472.10626f, 16.493f, 62.870472f), 139) + index2++; + span105[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(472.10626f, 16.493f, 62.870472f), 139) { JumpDestination = new JumpDestination { Position = new Vector3(463.8162f, 12.86743f, 59.443794f) } }; - span47[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(462.61212f, 12.600694f, 60.520195f), 139) + index2++; + span105[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(462.61212f, 12.600694f, 60.520195f), 139) { JumpDestination = new JumpDestination { Position = new Vector3(456.10245f, 12.277541f, 65.88876f) } }; - span47[3] = new QuestStep(EInteractionType.Interact, 2004930u, new Vector3(439.78027f, 12.161377f, 70.54236f), 139); + index2++; + span105[index2] = new QuestStep(EInteractionType.Interact, 2004930u, new Vector3(439.78027f, 12.161377f, 70.54236f), 139); obj73.Steps = list105; reference75 = obj73; - ref QuestSequence reference76 = ref span46[2]; + num++; + ref QuestSequence reference76 = ref span103[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - Span span48 = CollectionsMarshal.AsSpan(list106); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(441.9759f, 4.122239f, 81.76867f), 139) + index2 = 2; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(441.9759f, 4.122239f, 81.76867f), 139) { DisableNavmesh = true }; - span48[1] = new QuestStep(EInteractionType.Interact, 1010622u, new Vector3(488.365f, 16.907331f, 86.71704f), 139); + num2++; + span106[num2] = new QuestStep(EInteractionType.Interact, 1010622u, new Vector3(488.365f, 16.907331f, 86.71704f), 139); obj74.Steps = list106; reference76 = obj74; - ref QuestSequence reference77 = ref span46[3]; + num++; + ref QuestSequence reference77 = ref span103[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 @@ -17482,40 +21010,48 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1010623u, new Vector3(413.47375f, 3.6090105f, 76.21875f), 139); + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new QuestStep(EInteractionType.Interact, 1010623u, new Vector3(413.47375f, 3.6090105f, 76.21875f), 139); obj75.Steps = list107; reference77 = obj75; - ref QuestSequence reference78 = ref span46[4]; + num++; + ref QuestSequence reference78 = ref span103[num]; QuestSequence obj76 = new QuestSequence { Sequence = 4 }; - num2 = 4; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - Span span49 = CollectionsMarshal.AsSpan(list108); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.00787f, 16.493f, 62.747707f), 139) + index2 = 4; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.00787f, 16.493f, 62.747707f), 139) { Mount = false }; - span49[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(472.10626f, 16.493f, 62.870472f), 139) + num2++; + span108[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(472.10626f, 16.493f, 62.870472f), 139) { JumpDestination = new JumpDestination { Position = new Vector3(463.8162f, 12.86743f, 59.443794f) } }; - span49[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(462.61212f, 12.600694f, 60.520195f), 139) + num2++; + span108[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(462.61212f, 12.600694f, 60.520195f), 139) { JumpDestination = new JumpDestination { Position = new Vector3(456.10245f, 12.277541f, 65.88876f) } }; - span49[3] = new QuestStep(EInteractionType.Interact, 1010621u, new Vector3(441.94702f, 15.396649f, 65.659546f), 139); + num2++; + span108[num2] = new QuestStep(EInteractionType.Interact, 1010621u, new Vector3(441.94702f, 15.396649f, 65.659546f), 139); obj76.Steps = list108; reference78 = obj76; - ref QuestSequence reference79 = ref span46[5]; + num++; + ref QuestSequence reference79 = ref span103[num]; QuestSequence obj77 = new QuestSequence { Sequence = 5 @@ -17523,7 +21059,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004931u, new Vector3(305.5924f, -25.0401f, 229.63293f), 138) + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004931u, new Vector3(305.5924f, -25.0401f, 229.63293f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -17536,16 +21074,18 @@ public static class AssemblyQuestLoader }; obj77.Steps = list109; reference79 = obj77; - ref QuestSequence reference80 = ref span46[6]; + num++; + ref QuestSequence reference80 = ref span103[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span50 = CollectionsMarshal.AsSpan(list110); - span50[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span110[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -17561,7 +21101,8 @@ public static class AssemblyQuestLoader } } }; - span50[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + num2++; + span110[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(232) }; @@ -17574,13 +21115,16 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "Cacahuetes"; + Span span111 = CollectionsMarshal.AsSpan(list111); + index = 0; + span111[index] = "Cacahuetes"; questRoot14.Author = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span51 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference81 = ref span51[0]; + index = 3; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + Span span112 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference81 = ref span112[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -17588,8 +21132,9 @@ public static class AssemblyQuestLoader num2 = 3; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span52 = CollectionsMarshal.AsSpan(list113); - ref QuestStep reference82 = ref span52[0]; + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + ref QuestStep reference82 = ref span113[index2]; QuestStep obj80 = new QuestStep(EInteractionType.EquipItem, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -17605,28 +21150,34 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = 133; + index3 = 1; + List list114 = new List(index3); + CollectionsMarshal.SetCount(list114, index3); + Span span114 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span114[num3] = 133; obj81.InTerritory = list114; skipConditions3.AetheryteShortcutIf = obj81; obj80.SkipConditions = skipConditions3; reference82 = obj80; - span52[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 133); - span52[2] = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133); + index2++; + span113[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 133); + index2++; + span113[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133); obj79.Steps = list113; reference81 = obj79; - ref QuestSequence reference83 = ref span51[1]; + num++; + ref QuestSequence reference83 = ref span112[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - Span span53 = CollectionsMarshal.AsSpan(list115); - ref QuestStep reference84 = ref span53[0]; + index2 = 3; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + ref QuestStep reference84 = ref span115[num2]; QuestStep obj83 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.18397f, 17.128555f, -269.5008f), 148) { AethernetShortcut = new AethernetShortcut @@ -17639,38 +21190,53 @@ public static class AssemblyQuestLoader num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - ref ComplexCombatData reference85 = ref CollectionsMarshal.AsSpan(list116)[0]; + Span span116 = CollectionsMarshal.AsSpan(list116); + index3 = 0; + ref ComplexCombatData reference85 = ref span116[index3]; ComplexCombatData obj84 = new ComplexCombatData { DataId = 37u, MinimumKillCount = 3u }; - num4 = 6; - List list117 = new List(num4); - CollectionsMarshal.SetCount(list117, num4); - Span span54 = CollectionsMarshal.AsSpan(list117); - span54[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = null; + num5 = 6; + List list117 = new List(num5); + CollectionsMarshal.SetCount(list117, num5); + Span span117 = CollectionsMarshal.AsSpan(list117); + num4 = 0; + span117[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span117[num4] = null; + num4++; + span117[num4] = null; + num4++; + span117[num4] = null; + num4++; + span117[num4] = null; + num4++; + span117[num4] = null; obj84.CompletionQuestVariablesFlags = list117; reference85 = obj84; obj83.ComplexCombatData = list116; - num3 = 6; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - Span span55 = CollectionsMarshal.AsSpan(list118); - span55[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = null; + index3 = 6; + List list118 = new List(index3); + CollectionsMarshal.SetCount(list118, index3); + Span span118 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span118[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; obj83.CompletionQuestVariablesFlags = list118; reference84 = obj83; - ref QuestStep reference86 = ref span53[1]; + num2++; + ref QuestStep reference86 = ref span115[num2]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, null, new Vector3(119.449745f, 17.399649f, -259.6467f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -17678,7 +21244,9 @@ public static class AssemblyQuestLoader num3 = 1; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - ref ComplexCombatData reference87 = ref CollectionsMarshal.AsSpan(list119)[0]; + Span span119 = CollectionsMarshal.AsSpan(list119); + index3 = 0; + ref ComplexCombatData reference87 = ref span119[index3]; ComplexCombatData obj86 = new ComplexCombatData { DataId = 49u, @@ -17687,29 +21255,42 @@ public static class AssemblyQuestLoader num4 = 6; List list120 = new List(num4); CollectionsMarshal.SetCount(list120, num4); - Span span56 = CollectionsMarshal.AsSpan(list120); - span56[0] = null; - span56[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = null; + Span span120 = CollectionsMarshal.AsSpan(list120); + num5 = 0; + span120[num5] = null; + num5++; + span120[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span120[num5] = null; + num5++; + span120[num5] = null; + num5++; + span120[num5] = null; + num5++; + span120[num5] = null; obj86.CompletionQuestVariablesFlags = list120; reference87 = obj86; obj85.ComplexCombatData = list119; - num3 = 6; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span57 = CollectionsMarshal.AsSpan(list121); - span57[0] = null; - span57[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = null; + index3 = 6; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + Span span121 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span121[num3] = null; + num3++; + span121[num3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; obj85.CompletionQuestVariablesFlags = list121; reference86 = obj85; - ref QuestStep reference88 = ref span53[2]; + num2++; + ref QuestStep reference88 = ref span115[num2]; QuestStep obj87 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -17717,40 +21298,55 @@ public static class AssemblyQuestLoader num3 = 1; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - ref ComplexCombatData reference89 = ref CollectionsMarshal.AsSpan(list122)[0]; + Span span122 = CollectionsMarshal.AsSpan(list122); + index3 = 0; + ref ComplexCombatData reference89 = ref span122[index3]; ComplexCombatData obj88 = new ComplexCombatData { DataId = 47u, MinimumKillCount = 3u }; - num4 = 6; - List list123 = new List(num4); - CollectionsMarshal.SetCount(list123, num4); - Span span58 = CollectionsMarshal.AsSpan(list123); - span58[0] = null; - span58[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = null; + num5 = 6; + List list123 = new List(num5); + CollectionsMarshal.SetCount(list123, num5); + Span span123 = CollectionsMarshal.AsSpan(list123); + num4 = 0; + span123[num4] = null; + num4++; + span123[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span123[num4] = null; + num4++; + span123[num4] = null; + num4++; + span123[num4] = null; + num4++; + span123[num4] = null; obj88.CompletionQuestVariablesFlags = list123; reference89 = obj88; obj87.ComplexCombatData = list122; - num3 = 6; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - Span span59 = CollectionsMarshal.AsSpan(list124); - span59[0] = null; - span59[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = null; + index3 = 6; + List list124 = new List(index3); + CollectionsMarshal.SetCount(list124, index3); + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span124[num3] = null; + num3++; + span124[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = null; obj87.CompletionQuestVariablesFlags = list124; reference88 = obj87; obj82.Steps = list115; reference83 = obj82; - ref QuestSequence reference90 = ref span51[2]; + num++; + ref QuestSequence reference90 = ref span112[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue @@ -17758,7 +21354,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -17777,21 +21375,26 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "pot0to"; + Span span126 = CollectionsMarshal.AsSpan(list126); + index = 0; + span126[index] = "pot0to"; questRoot15.Author = list126; - num = 3; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span60 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference91 = ref span60[0]; + index = 3; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + Span span127 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference91 = ref span127[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -17809,7 +21412,8 @@ public static class AssemblyQuestLoader }; obj90.Steps = list128; reference91 = obj90; - ref QuestSequence reference92 = ref span60[1]; + num++; + ref QuestSequence reference92 = ref span127[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 @@ -17817,8 +21421,9 @@ public static class AssemblyQuestLoader num2 = 2; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span61 = CollectionsMarshal.AsSpan(list129); - ref QuestStep reference93 = ref span61[0]; + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + ref QuestStep reference93 = ref span129[index2]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, null, new Vector3(117.47766f, 17.661993f, -247.24017f), 148) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -17832,8 +21437,9 @@ public static class AssemblyQuestLoader num3 = 2; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span62 = CollectionsMarshal.AsSpan(list130); - ref ComplexCombatData reference94 = ref span62[0]; + Span span130 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + ref ComplexCombatData reference94 = ref span130[index3]; ComplexCombatData obj93 = new ComplexCombatData { DataId = 37u, @@ -17842,31 +21448,44 @@ public static class AssemblyQuestLoader num4 = 6; List list131 = new List(num4); CollectionsMarshal.SetCount(list131, num4); - Span span63 = CollectionsMarshal.AsSpan(list131); - span63[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = null; + Span span131 = CollectionsMarshal.AsSpan(list131); + num5 = 0; + span131[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span131[num5] = null; + num5++; + span131[num5] = null; + num5++; + span131[num5] = null; + num5++; + span131[num5] = null; + num5++; + span131[num5] = null; obj93.CompletionQuestVariablesFlags = list131; reference94 = obj93; - ref ComplexCombatData reference95 = ref span62[1]; + index3++; + ref ComplexCombatData reference95 = ref span130[index3]; ComplexCombatData obj94 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - num4 = 6; - List list132 = new List(num4); - CollectionsMarshal.SetCount(list132, num4); - Span span64 = CollectionsMarshal.AsSpan(list132); - span64[0] = null; - span64[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = null; + num5 = 6; + List list132 = new List(num5); + CollectionsMarshal.SetCount(list132, num5); + Span span132 = CollectionsMarshal.AsSpan(list132); + num4 = 0; + span132[num4] = null; + num4++; + span132[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span132[num4] = null; + num4++; + span132[num4] = null; + num4++; + span132[num4] = null; + num4++; + span132[num4] = null; obj94.CompletionQuestVariablesFlags = list132; reference95 = obj94; obj92.ComplexCombatData = list130; @@ -17875,34 +21494,45 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = 148; + index3 = 1; + List list133 = new List(index3); + CollectionsMarshal.SetCount(list133, index3); + Span span133 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span133[num3] = 148; obj95.InTerritory = list133; skipConditions4.AetheryteShortcutIf = obj95; obj92.SkipConditions = skipConditions4; num3 = 6; List list134 = new List(num3); CollectionsMarshal.SetCount(list134, num3); - Span span65 = CollectionsMarshal.AsSpan(list134); - span65[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span65[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = null; + Span span134 = CollectionsMarshal.AsSpan(list134); + index3 = 0; + span134[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span134[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span134[index3] = null; + index3++; + span134[index3] = null; + index3++; + span134[index3] = null; + index3++; + span134[index3] = null; obj92.CompletionQuestVariablesFlags = list134; reference93 = obj92; - ref QuestStep reference96 = ref span61[1]; + index2++; + ref QuestStep reference96 = ref span129[index2]; QuestStep obj96 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = new ComplexCombatData + index3 = 1; + List list135 = new List(index3); + CollectionsMarshal.SetCount(list135, index3); + Span span135 = CollectionsMarshal.AsSpan(list135); + num3 = 0; + span135[num3] = new ComplexCombatData { DataId = 47u, MinimumKillCount = 3u @@ -17911,26 +21541,35 @@ public static class AssemblyQuestLoader num3 = 6; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - Span span66 = CollectionsMarshal.AsSpan(list136); - span66[0] = null; - span66[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = null; + Span span136 = CollectionsMarshal.AsSpan(list136); + index3 = 0; + span136[index3] = null; + index3++; + span136[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span136[index3] = null; + index3++; + span136[index3] = null; + index3++; + span136[index3] = null; + index3++; + span136[index3] = null; obj96.CompletionQuestVariablesFlags = list136; reference96 = obj96; obj91.Steps = list129; reference92 = obj91; - ref QuestSequence reference97 = ref span60[2]; + num++; + ref QuestSequence reference97 = ref span127[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span137[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -17957,13 +21596,16 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "xan"; + Span span138 = CollectionsMarshal.AsSpan(list138); + index = 0; + span138[index] = "xan"; questRoot16.Author = list138; - num = 12; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span67 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference98 = ref span67[0]; + index = 12; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + Span span139 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference98 = ref span139[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 @@ -17971,8 +21613,9 @@ public static class AssemblyQuestLoader num2 = 2; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span68 = CollectionsMarshal.AsSpan(list140); - span68[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -17988,19 +21631,22 @@ public static class AssemblyQuestLoader } } }; - span68[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span140[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj98.Steps = list140; reference98 = obj98; - ref QuestSequence reference99 = ref span67[1]; + num++; + ref QuestSequence reference99 = ref span139[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - Span span69 = CollectionsMarshal.AsSpan(list141); - ref QuestStep reference100 = ref span69[0]; + index2 = 2; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + ref QuestStep reference100 = ref span141[num2]; QuestStep obj100 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-116.833f, 70.279f, 47.983f), 137) { TargetTerritoryId = (ushort)134, @@ -18009,36 +21655,44 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = 134; + index3 = 1; + List list142 = new List(index3); + CollectionsMarshal.SetCount(list142, index3); + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span142[num3] = 134; skipStepConditions2.InTerritory = list142; skipConditions5.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); num3 = 1; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = 134; + Span span143 = CollectionsMarshal.AsSpan(list143); + index3 = 0; + span143[index3] = 134; skipAetheryteCondition2.InTerritory = list143; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition2; obj100.SkipConditions = skipConditions5; reference100 = obj100; - ref QuestStep reference101 = ref span69[1]; + num2++; + ref QuestStep reference101 = ref span141[num2]; QuestStep obj101 = new QuestStep(EInteractionType.Combat, 1010573u, new Vector3(-188.46423f, 30.723186f, -685.1759f), 134) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = 3572u; + index3 = 1; + List list144 = new List(index3); + CollectionsMarshal.SetCount(list144, index3); + Span span144 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span144[num3] = 3572u; obj101.KillEnemyDataIds = list144; reference101 = obj101; obj99.Steps = list141; reference99 = obj99; - ref QuestSequence reference102 = ref span67[2]; + num++; + ref QuestSequence reference102 = ref span139[num]; QuestSequence obj102 = new QuestSequence { Sequence = 2 @@ -18046,19 +21700,23 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1010627u, new Vector3(-189.65442f, 30.837437f, -685.298f), 134); + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.Interact, 1010627u, new Vector3(-189.65442f, 30.837437f, -685.298f), 134); obj102.Steps = list145; reference102 = obj102; - ref QuestSequence reference103 = ref span67[3]; + num++; + ref QuestSequence reference103 = ref span139[num]; QuestSequence obj103 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - Span span70 = CollectionsMarshal.AsSpan(list146); - ref QuestStep reference104 = ref span70[0]; + index2 = 2; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + ref QuestStep reference104 = ref span146[num2]; QuestStep obj104 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(246.007f, 56.384f, 839.334f), 137) { TargetTerritoryId = (ushort)135, @@ -18070,22 +21728,27 @@ public static class AssemblyQuestLoader num3 = 1; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - CollectionsMarshal.AsSpan(list147)[0] = 135; + Span span147 = CollectionsMarshal.AsSpan(list147); + index3 = 0; + span147[index3] = 135; skipStepConditions3.InTerritory = list147; skipConditions6.StepIf = skipStepConditions3; SkipAetheryteCondition obj105 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - CollectionsMarshal.AsSpan(list148)[0] = 135; + index3 = 1; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + Span span148 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span148[num3] = 135; obj105.InTerritory = list148; skipConditions6.AetheryteShortcutIf = obj105; obj104.SkipConditions = skipConditions6; reference104 = obj104; - ref QuestStep reference105 = ref span70[1]; + num2++; + ref QuestStep reference105 = ref span146[num2]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, 1010571u, new Vector3(491.05054f, 68.14364f, -198.50464f), 135) { Fly = true, @@ -18094,12 +21757,15 @@ public static class AssemblyQuestLoader num3 = 1; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = 3573u; + Span span149 = CollectionsMarshal.AsSpan(list149); + index3 = 0; + span149[index3] = 3573u; obj106.KillEnemyDataIds = list149; reference105 = obj106; obj103.Steps = list146; reference103 = obj103; - ref QuestSequence reference106 = ref span67[4]; + num++; + ref QuestSequence reference106 = ref span139[num]; QuestSequence obj107 = new QuestSequence { Sequence = 4 @@ -18107,28 +21773,35 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 2005006u, new Vector3(492.88147f, 68.955444f, -197.58905f), 135); + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new QuestStep(EInteractionType.Interact, 2005006u, new Vector3(492.88147f, 68.955444f, -197.58905f), 135); obj107.Steps = list150; reference106 = obj107; - ref QuestSequence reference107 = ref span67[5]; + num++; + ref QuestSequence reference107 = ref span139[num]; QuestSequence obj108 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list151)[0]; + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + ref QuestStep reference108 = ref span151[num2]; QuestStep obj109 = new QuestStep(EInteractionType.Combat, 1010575u, new Vector3(516.68555f, 9.414734f, 351.12524f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = 3572u; + index3 = 1; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + Span span152 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span152[num3] = 3572u; obj109.KillEnemyDataIds = list152; obj109.SkipConditions = new SkipConditions { @@ -18140,7 +21813,8 @@ public static class AssemblyQuestLoader reference108 = obj109; obj108.Steps = list151; reference107 = obj108; - ref QuestSequence reference109 = ref span67[6]; + num++; + ref QuestSequence reference109 = ref span139[num]; QuestSequence obj110 = new QuestSequence { Sequence = 6 @@ -18148,18 +21822,23 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 2005007u, new Vector3(515.5565f, 9.47583f, 349.93518f), 137); + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.Interact, 2005007u, new Vector3(515.5565f, 9.47583f, 349.93518f), 137); obj110.Steps = list153; reference109 = obj110; - ref QuestSequence reference110 = ref span67[7]; + num++; + ref QuestSequence reference110 = ref span139[num]; QuestSequence obj111 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - ref QuestStep reference111 = ref CollectionsMarshal.AsSpan(list154)[0]; + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref QuestStep reference111 = ref span154[num2]; QuestStep obj112 = new QuestStep(EInteractionType.Combat, 1010572u, new Vector3(209.21643f, -2.0700505f, 260.3036f), 139) { Fly = true, @@ -18169,7 +21848,9 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 3573u; + Span span155 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span155[index3] = 3573u; obj112.KillEnemyDataIds = list155; obj112.SkipConditions = new SkipConditions { @@ -18181,7 +21862,8 @@ public static class AssemblyQuestLoader reference111 = obj112; obj111.Steps = list154; reference110 = obj111; - ref QuestSequence reference112 = ref span67[8]; + num++; + ref QuestSequence reference112 = ref span139[num]; QuestSequence obj113 = new QuestSequence { Sequence = 8 @@ -18189,27 +21871,34 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 2005008u, new Vector3(208.27039f, -2.0905762f, 259.84583f), 139); + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new QuestStep(EInteractionType.Interact, 2005008u, new Vector3(208.27039f, -2.0905762f, 259.84583f), 139); obj113.Steps = list156; reference112 = obj113; - ref QuestSequence reference113 = ref span67[9]; + num++; + ref QuestSequence reference113 = ref span139[num]; QuestSequence obj114 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - ref QuestStep reference114 = ref CollectionsMarshal.AsSpan(list157)[0]; + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + ref QuestStep reference114 = ref span157[num2]; QuestStep obj115 = new QuestStep(EInteractionType.Combat, 1010574u, new Vector3(-76.98181f, 64.50076f, -241.56561f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - CollectionsMarshal.AsSpan(list158)[0] = 3572u; + index3 = 1; + List list158 = new List(index3); + CollectionsMarshal.SetCount(list158, index3); + Span span158 = CollectionsMarshal.AsSpan(list158); + num3 = 0; + span158[num3] = 3572u; obj115.KillEnemyDataIds = list158; obj115.SkipConditions = new SkipConditions { @@ -18221,7 +21910,8 @@ public static class AssemblyQuestLoader reference114 = obj115; obj114.Steps = list157; reference113 = obj114; - ref QuestSequence reference115 = ref span67[10]; + num++; + ref QuestSequence reference115 = ref span139[num]; QuestSequence obj116 = new QuestSequence { Sequence = 10 @@ -18229,19 +21919,23 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 2005009u, new Vector3(-77.195435f, 64.49988f, -240.71112f), 180); + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.Interact, 2005009u, new Vector3(-77.195435f, 64.49988f, -240.71112f), 180); obj116.Steps = list159; reference115 = obj116; - ref QuestSequence reference116 = ref span67[11]; + num++; + ref QuestSequence reference116 = ref span139[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span71 = CollectionsMarshal.AsSpan(list160); - ref QuestStep reference117 = ref span71[0]; + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + ref QuestStep reference117 = ref span160[num2]; QuestStep obj118 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-116.833f, 70.279f, 47.983f), 137) { TargetTerritoryId = (ushort)134, @@ -18253,22 +21947,27 @@ public static class AssemblyQuestLoader num3 = 1; List list161 = new List(num3); CollectionsMarshal.SetCount(list161, num3); - CollectionsMarshal.AsSpan(list161)[0] = 134; + Span span161 = CollectionsMarshal.AsSpan(list161); + index3 = 0; + span161[index3] = 134; skipStepConditions4.InTerritory = list161; skipConditions7.StepIf = skipStepConditions4; SkipAetheryteCondition obj119 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - CollectionsMarshal.AsSpan(list162)[0] = 134; + index3 = 1; + List list162 = new List(index3); + CollectionsMarshal.SetCount(list162, index3); + Span span162 = CollectionsMarshal.AsSpan(list162); + num3 = 0; + span162[num3] = 134; obj119.InTerritory = list162; skipConditions7.AetheryteShortcutIf = obj119; obj118.SkipConditions = skipConditions7; reference117 = obj118; - span71[1] = new QuestStep(EInteractionType.CompleteQuest, 2004932u, new Vector3(-182.81836f, 30.533203f, -684.93176f), 134) + num2++; + span160[num2] = new QuestStep(EInteractionType.CompleteQuest, 2004932u, new Vector3(-182.81836f, 30.533203f, -684.93176f), 134) { Fly = true, NextQuestId = new QuestId(233) @@ -18282,13 +21981,16 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "xan"; + Span span163 = CollectionsMarshal.AsSpan(list163); + index = 0; + span163[index] = "xan"; questRoot17.Author = list163; - num = 5; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span72 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference118 = ref span72[0]; + index = 5; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + Span span164 = CollectionsMarshal.AsSpan(list164); + num = 0; + ref QuestSequence reference118 = ref span164[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -18296,7 +21998,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010628u, new Vector3(-189.01355f, 30.937378f, -687.2816f), 134) + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010628u, new Vector3(-189.01355f, 30.937378f, -687.2816f), 134) { Fly = true, AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, @@ -18310,15 +22014,18 @@ public static class AssemblyQuestLoader }; obj120.Steps = list165; reference118 = obj120; - ref QuestSequence reference119 = ref span72[1]; + num++; + ref QuestSequence reference119 = ref span164[num]; QuestSequence obj121 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1010629u, new Vector3(-8.712891f, 39.580772f, 258.2589f), 137) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.Interact, 1010629u, new Vector3(-8.712891f, 39.580772f, 258.2589f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -18332,7 +22039,8 @@ public static class AssemblyQuestLoader }; obj121.Steps = list166; reference119 = obj121; - ref QuestSequence reference120 = ref span72[2]; + num++; + ref QuestSequence reference120 = ref span164[num]; QuestSequence obj122 = new QuestSequence { Sequence = 2 @@ -18340,24 +22048,30 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010630u, new Vector3(-70.93927f, 36.04747f, 475.66956f), 137) + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010630u, new Vector3(-70.93927f, 36.04747f, 475.66956f), 137) { Fly = true }; obj122.Steps = list167; reference120 = obj122; - ref QuestSequence reference121 = ref span72[3]; + num++; + ref QuestSequence reference121 = ref span164[num]; QuestSequence obj123 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1010631u, new Vector3(-68.95557f, 36.05801f, 471.4275f), 137); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.Interact, 1010631u, new Vector3(-68.95557f, 36.05801f, 471.4275f), 137); obj123.Steps = list168; reference121 = obj123; - ref QuestSequence reference122 = ref span72[4]; + num++; + ref QuestSequence reference122 = ref span164[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -18365,8 +22079,9 @@ public static class AssemblyQuestLoader num2 = 2; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span73 = CollectionsMarshal.AsSpan(list169); - span73[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -18382,7 +22097,8 @@ public static class AssemblyQuestLoader } } }; - span73[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + index2++; + span169[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(234) }; @@ -18395,22 +22111,26 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "xan"; + Span span170 = CollectionsMarshal.AsSpan(list170); + index = 0; + span170[index] = "xan"; questRoot18.Author = list170; - num = 7; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - Span span74 = CollectionsMarshal.AsSpan(list171); - ref QuestSequence reference123 = ref span74[0]; + index = 7; + List list171 = new List(index); + CollectionsMarshal.SetCount(list171, index); + Span span171 = CollectionsMarshal.AsSpan(list171); + num = 0; + ref QuestSequence reference123 = ref span171[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - Span span75 = CollectionsMarshal.AsSpan(list172); - span75[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span172[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -18426,10 +22146,12 @@ public static class AssemblyQuestLoader } } }; - span75[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + num2++; + span172[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj125.Steps = list172; reference123 = obj125; - ref QuestSequence reference124 = ref span74[1]; + num++; + ref QuestSequence reference124 = ref span171[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -18437,12 +22159,16 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list173)[0]; + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + ref QuestStep reference125 = ref span173[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1010632u, new Vector3(-33.76825f, -24.674442f, 250.32422f), 137); num3 = 1; List list174 = new List(num3); CollectionsMarshal.SetCount(list174, num3); - CollectionsMarshal.AsSpan(list174)[0] = new DialogueChoice + Span span174 = CollectionsMarshal.AsSpan(list174); + index3 = 0; + span174[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN500_00234_Q1_000_000"), @@ -18452,16 +22178,18 @@ public static class AssemblyQuestLoader reference125 = questStep6; obj126.Steps = list173; reference124 = obj126; - ref QuestSequence reference126 = ref span74[2]; + num++; + ref QuestSequence reference126 = ref span171[num]; QuestSequence obj127 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - Span span76 = CollectionsMarshal.AsSpan(list175); - ref QuestStep reference127 = ref span76[0]; + index2 = 2; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + ref QuestStep reference127 = ref span175[num2]; QuestStep obj128 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(407.71924f, 32.11566f, -14.989758f), 138) { TargetTerritoryId = (ushort)139, @@ -18470,30 +22198,37 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = 139; + index3 = 1; + List list176 = new List(index3); + CollectionsMarshal.SetCount(list176, index3); + Span span176 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span176[num3] = 139; skipStepConditions5.InTerritory = list176; skipConditions8.StepIf = skipStepConditions5; SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); num3 = 1; List list177 = new List(num3); CollectionsMarshal.SetCount(list177, num3); - CollectionsMarshal.AsSpan(list177)[0] = 139; + Span span177 = CollectionsMarshal.AsSpan(list177); + index3 = 0; + span177[index3] = 139; skipAetheryteCondition3.InTerritory = list177; skipConditions8.AetheryteShortcutIf = skipAetheryteCondition3; obj128.SkipConditions = skipConditions8; reference127 = obj128; - ref QuestStep reference128 = ref span76[1]; + num2++; + ref QuestStep reference128 = ref span175[num2]; QuestStep obj129 = new QuestStep(EInteractionType.Interact, 1010633u, new Vector3(-570.82477f, -1.4935175f, -12.619263f), 139) { Fly = true }; - num3 = 1; - List list178 = new List(num3); - CollectionsMarshal.SetCount(list178, num3); - CollectionsMarshal.AsSpan(list178)[0] = new DialogueChoice + index3 = 1; + List list178 = new List(index3); + CollectionsMarshal.SetCount(list178, index3); + Span span178 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + span178[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN500_00234_Q2_000_000"), @@ -18503,7 +22238,8 @@ public static class AssemblyQuestLoader reference128 = obj129; obj127.Steps = list175; reference126 = obj127; - ref QuestSequence reference129 = ref span74[3]; + num++; + ref QuestSequence reference129 = ref span171[num]; QuestSequence obj130 = new QuestSequence { Sequence = 3 @@ -18511,18 +22247,23 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1010634u, new Vector3(-560.0519f, -1.7964863f, -14.572449f), 139); + Span span179 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span179[index2] = new QuestStep(EInteractionType.Interact, 1010634u, new Vector3(-560.0519f, -1.7964863f, -14.572449f), 139); obj130.Steps = list179; reference129 = obj130; - ref QuestSequence reference130 = ref span74[4]; + num++; + ref QuestSequence reference130 = ref span171[num]; QuestSequence obj131 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1002515u, new Vector3(-10.421997f, 8.921356f, 831.6013f), 135) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.Interact, 1002515u, new Vector3(-10.421997f, 8.921356f, 831.6013f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -18536,7 +22277,8 @@ public static class AssemblyQuestLoader }; obj131.Steps = list180; reference130 = obj131; - ref QuestSequence reference131 = ref span74[5]; + num++; + ref QuestSequence reference131 = ref span171[num]; QuestSequence obj132 = new QuestSequence { Sequence = 5 @@ -18544,22 +22286,26 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004935u, new Vector3(19.943481f, 42.923584f, 855.46655f), 135) + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span181[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004935u, new Vector3(19.943481f, 42.923584f, 855.46655f), 135) { Fly = true }; obj132.Steps = list181; reference131 = obj132; - ref QuestSequence reference132 = ref span74[6]; + num++; + ref QuestSequence reference132 = ref span171[num]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - Span span77 = CollectionsMarshal.AsSpan(list182); - span77[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -18575,7 +22321,8 @@ public static class AssemblyQuestLoader } } }; - span77[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + num2++; + span182[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(235) }; @@ -18588,13 +22335,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "xan"; + Span span183 = CollectionsMarshal.AsSpan(list183); + index = 0; + span183[index] = "xan"; questRoot19.Author = list183; - num = 8; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span78 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference133 = ref span78[0]; + index = 8; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + Span span184 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference133 = ref span184[num]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -18602,8 +22352,9 @@ public static class AssemblyQuestLoader num2 = 2; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span79 = CollectionsMarshal.AsSpan(list185); - span79[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -18619,19 +22370,22 @@ public static class AssemblyQuestLoader } } }; - span79[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span185[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj134.Steps = list185; reference133 = obj134; - ref QuestSequence reference134 = ref span78[1]; + num++; + ref QuestSequence reference134 = ref span184[num]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - Span span80 = CollectionsMarshal.AsSpan(list186); - span80[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span186[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -18662,10 +22416,12 @@ public static class AssemblyQuestLoader } } }; - span80[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); + num2++; + span186[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); obj135.Steps = list186; reference134 = obj135; - ref QuestSequence reference135 = ref span78[2]; + num++; + ref QuestSequence reference135 = ref span184[num]; QuestSequence obj136 = new QuestSequence { Sequence = 2 @@ -18673,7 +22429,9 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1013884u, new Vector3(172.8999f, 95.27325f, -202.92981f), 134) + Span span187 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span187[index2] = new QuestStep(EInteractionType.Interact, 1013884u, new Vector3(172.8999f, 95.27325f, -202.92981f), 134) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, SkipConditions = new SkipConditions @@ -18686,18 +22444,22 @@ public static class AssemblyQuestLoader }; obj136.Steps = list187; reference135 = obj136; - ref QuestSequence reference136 = ref span78[3]; + num++; + ref QuestSequence reference136 = ref span184[num]; QuestSequence obj137 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 2005921u, new Vector3(30.990967f, 60.65454f, -205.40173f), 134); + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + Span span188 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span188[num2] = new QuestStep(EInteractionType.Interact, 2005921u, new Vector3(30.990967f, 60.65454f, -205.40173f), 134); obj137.Steps = list188; reference136 = obj137; - ref QuestSequence reference137 = ref span78[4]; + num++; + ref QuestSequence reference137 = ref span184[num]; QuestSequence obj138 = new QuestSequence { Sequence = 4 @@ -18705,21 +22467,27 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 2005922u, new Vector3(-90.37921f, 43.045654f, -308.30853f), 134); + Span span189 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span189[index2] = new QuestStep(EInteractionType.Interact, 2005922u, new Vector3(-90.37921f, 43.045654f, -308.30853f), 134); obj138.Steps = list189; reference137 = obj138; - ref QuestSequence reference138 = ref span78[5]; + num++; + ref QuestSequence reference138 = ref span184[num]; QuestSequence obj139 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 2005923u, new Vector3(-148.02783f, 20.309753f, -339.40643f), 134); + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span190[num2] = new QuestStep(EInteractionType.Interact, 2005923u, new Vector3(-148.02783f, 20.309753f, -339.40643f), 134); obj139.Steps = list190; reference138 = obj139; - ref QuestSequence reference139 = ref span78[6]; + num++; + ref QuestSequence reference139 = ref span184[num]; QuestSequence obj140 = new QuestSequence { Sequence = 6 @@ -18727,19 +22495,23 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1013892u, new Vector3(-19.241638f, 12.516694f, -462.66882f), 134); + Span span191 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span191[index2] = new QuestStep(EInteractionType.Interact, 1013892u, new Vector3(-19.241638f, 12.516694f, -462.66882f), 134); obj140.Steps = list191; reference139 = obj140; - ref QuestSequence reference140 = ref span78[7]; + num++; + ref QuestSequence reference140 = ref span184[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - Span span81 = CollectionsMarshal.AsSpan(list192); - span81[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span192[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -18755,7 +22527,8 @@ public static class AssemblyQuestLoader } } }; - span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + num2++; + span192[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(1684) }; @@ -18768,13 +22541,16 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "liza"; + Span span193 = CollectionsMarshal.AsSpan(list193); + index = 0; + span193[index] = "liza"; questRoot20.Author = list193; - num = 12; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span82 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference141 = ref span82[0]; + index = 12; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + Span span194 = CollectionsMarshal.AsSpan(list194); + num = 0; + ref QuestSequence reference141 = ref span194[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -18782,7 +22558,9 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span195[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -18795,21 +22573,25 @@ public static class AssemblyQuestLoader }; obj142.Steps = list195; reference141 = obj142; - ref QuestSequence reference142 = ref span82[1]; + num++; + ref QuestSequence reference142 = ref span194[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj143.Steps = list196; reference142 = obj143; - ref QuestSequence reference143 = ref span82[2]; + num++; + ref QuestSequence reference143 = ref span194[num]; QuestSequence obj144 = new QuestSequence { Sequence = 2 @@ -18817,30 +22599,36 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span83 = CollectionsMarshal.AsSpan(list197); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(326.4774f, 62.89536f, -207.31602f), 140) + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(326.4774f, 62.89536f, -207.31602f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; - span83[1] = new QuestStep(EInteractionType.Interact, 2004847u, new Vector3(323.62854f, 62.974f, -207.90424f), 140); + index2++; + span197[index2] = new QuestStep(EInteractionType.Interact, 2004847u, new Vector3(323.62854f, 62.974f, -207.90424f), 140); obj144.Steps = list197; reference143 = obj144; - ref QuestSequence reference144 = ref span82[3]; + num++; + ref QuestSequence reference144 = ref span194[num]; QuestSequence obj145 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span198 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span198[num2] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj145.Steps = list198; reference144 = obj145; - ref QuestSequence reference145 = ref span82[4]; + num++; + ref QuestSequence reference145 = ref span194[num]; QuestSequence obj146 = new QuestSequence { Sequence = 4 @@ -18848,7 +22636,9 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1003908u, new Vector3(137.95679f, 4.041112f, -41.09259f), 131) + Span span199 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span199[index2] = new QuestStep(EInteractionType.Interact, 1003908u, new Vector3(137.95679f, 4.041112f, -41.09259f), 131) { AethernetShortcut = new AethernetShortcut { @@ -18858,18 +22648,22 @@ public static class AssemblyQuestLoader }; obj146.Steps = list199; reference145 = obj146; - ref QuestSequence reference146 = ref span82[5]; + num++; + ref QuestSequence reference146 = ref span194[num]; QuestSequence obj147 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131); + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.Interact, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131); obj147.Steps = list200; reference146 = obj147; - ref QuestSequence reference147 = ref span82[6]; + num++; + ref QuestSequence reference147 = ref span194[num]; QuestSequence obj148 = new QuestSequence { Sequence = 6 @@ -18877,7 +22671,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AethernetShortcut = new AethernetShortcut { @@ -18887,24 +22683,28 @@ public static class AssemblyQuestLoader }; obj148.Steps = list201; reference147 = obj148; - ref QuestSequence reference148 = ref span82[7]; + num++; + ref QuestSequence reference148 = ref span194[num]; QuestSequence obj149 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - Span span84 = CollectionsMarshal.AsSpan(list202); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-77.95643f, -12.787907f, -45.044247f), 141) + index2 = 2; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-77.95643f, -12.787907f, -45.044247f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - span84[1] = new QuestStep(EInteractionType.Interact, 1010341u, new Vector3(-89.40265f, -11.35f, -40.146484f), 141); + num2++; + span202[num2] = new QuestStep(EInteractionType.Interact, 1010341u, new Vector3(-89.40265f, -11.35f, -40.146484f), 141); obj149.Steps = list202; reference148 = obj149; - ref QuestSequence reference149 = ref span82[8]; + num++; + ref QuestSequence reference149 = ref span194[num]; QuestSequence obj150 = new QuestSequence { Sequence = 8 @@ -18912,28 +22712,34 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span203[index2] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj150.Steps = list203; reference149 = obj150; - ref QuestSequence reference150 = ref span82[9]; + num++; + ref QuestSequence reference150 = ref span194[num]; QuestSequence obj151 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1010342u, new Vector3(-189.50183f, 16.85818f, -418.8449f), 141) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.Interact, 1010342u, new Vector3(-189.50183f, 16.85818f, -418.8449f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj151.Steps = list204; reference150 = obj151; - ref QuestSequence reference151 = ref span82[10]; + num++; + ref QuestSequence reference151 = ref span194[num]; QuestSequence obj152 = new QuestSequence { Sequence = 10 @@ -18941,7 +22747,9 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1010346u, new Vector3(-207.44641f, 18.499998f, 73.899414f), 130) + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.Interact, 1010346u, new Vector3(-207.44641f, 18.499998f, 73.899414f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -18952,15 +22760,18 @@ public static class AssemblyQuestLoader }; obj152.Steps = list205; reference151 = obj152; - ref QuestSequence reference152 = ref span82[11]; + num++; + ref QuestSequence reference152 = ref span194[num]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AethernetShortcut = new AethernetShortcut { @@ -18978,13 +22789,16 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "liza"; + Span span207 = CollectionsMarshal.AsSpan(list207); + index = 0; + span207[index] = "liza"; questRoot21.Author = list207; - num = 6; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span85 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference153 = ref span85[0]; + index = 6; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + Span span208 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference153 = ref span208[num]; QuestSequence obj154 = new QuestSequence { Sequence = 0 @@ -18992,7 +22806,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -19010,24 +22826,28 @@ public static class AssemblyQuestLoader }; obj154.Steps = list209; reference153 = obj154; - ref QuestSequence reference154 = ref span85[1]; + num++; + ref QuestSequence reference154 = ref span208[num]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span86 = CollectionsMarshal.AsSpan(list210); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) + index2 = 2; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span210[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - span86[1] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + num2++; + span210[num2] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj155.Steps = list210; reference154 = obj155; - ref QuestSequence reference155 = ref span85[2]; + num++; + ref QuestSequence reference155 = ref span208[num]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -19035,35 +22855,42 @@ public static class AssemblyQuestLoader num2 = 3; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span87 = CollectionsMarshal.AsSpan(list211); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) + Span span211 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span211[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) { Mount = true }; - span87[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-250.51706f, 48.854584f, 462.12476f), 137) + index2++; + span211[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-250.51706f, 48.854584f, 462.12476f), 137) { Fly = true }; - span87[2] = new QuestStep(EInteractionType.Interact, 2004858u, new Vector3(-252.76575f, 49.66809f, 460.71558f), 137); + index2++; + span211[index2] = new QuestStep(EInteractionType.Interact, 2004858u, new Vector3(-252.76575f, 49.66809f, 460.71558f), 137); obj156.Steps = list211; reference155 = obj156; - ref QuestSequence reference156 = ref span85[3]; + num++; + ref QuestSequence reference156 = ref span208[num]; QuestSequence obj157 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - Span span88 = CollectionsMarshal.AsSpan(list212); - span88[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) + index2 = 2; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span212[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) { Fly = true }; - span88[1] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + num2++; + span212[num2] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj157.Steps = list212; reference156 = obj157; - ref QuestSequence reference157 = ref span85[4]; + num++; + ref QuestSequence reference157 = ref span208[num]; QuestSequence obj158 = new QuestSequence { Sequence = 4 @@ -19071,32 +22898,37 @@ public static class AssemblyQuestLoader num2 = 3; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span89 = CollectionsMarshal.AsSpan(list213); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) + Span span213 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span213[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) { Mount = true }; - span89[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-133.36604f, 70.192245f, 746.02716f), 137) + index2++; + span213[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-133.36604f, 70.192245f, 746.02716f), 137) { Fly = true }; - span89[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(570.5895f, 95.61268f, -497.8778f), 135) + index2++; + span213[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(570.5895f, 95.61268f, -497.8778f), 135) { Fly = true, RestartNavigationIfCancelled = true }; obj158.Steps = list213; reference157 = obj158; - ref QuestSequence reference158 = ref span85[5]; + num++; + ref QuestSequence reference158 = ref span208[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - Span span90 = CollectionsMarshal.AsSpan(list214); - ref QuestStep reference159 = ref span90[0]; + index2 = 2; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + Span span214 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + ref QuestStep reference159 = ref span214[num2]; QuestStep obj160 = new QuestStep(EInteractionType.Combat, null, new Vector3(569.87854f, 95.62417f, -498.10028f), 135) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny @@ -19104,18 +22936,24 @@ public static class AssemblyQuestLoader num3 = 3; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - Span span91 = CollectionsMarshal.AsSpan(list215); - span91[0] = 2861u; - span91[1] = 3563u; - span91[2] = 3562u; + Span span215 = CollectionsMarshal.AsSpan(list215); + index3 = 0; + span215[index3] = 2861u; + index3++; + span215[index3] = 3563u; + index3++; + span215[index3] = 3562u; obj160.KillEnemyDataIds = list215; reference159 = obj160; - ref QuestStep reference160 = ref span90[1]; + num2++; + ref QuestStep reference160 = ref span214[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.CompleteQuest, 1010370u, new Vector3(569.87854f, 95.62417f, -498.10028f), 135); - num3 = 1; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - CollectionsMarshal.AsSpan(list216)[0] = new DialogueChoice + index3 = 1; + List list216 = new List(index3); + CollectionsMarshal.SetCount(list216, index3); + Span span216 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span216[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST021_00241_Q1_000_000"), @@ -19133,13 +22971,16 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "liza"; + Span span217 = CollectionsMarshal.AsSpan(list217); + index = 0; + span217[index] = "liza"; questRoot22.Author = list217; - num = 9; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - Span span92 = CollectionsMarshal.AsSpan(list218); - ref QuestSequence reference161 = ref span92[0]; + index = 9; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + Span span218 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference161 = ref span218[num]; QuestSequence obj161 = new QuestSequence { Sequence = 0 @@ -19147,7 +22988,9 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + Span span219 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span219[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -19165,15 +23008,18 @@ public static class AssemblyQuestLoader }; obj161.Steps = list219; reference161 = obj161; - ref QuestSequence reference162 = ref span92[1]; + num++; + ref QuestSequence reference162 = ref span218[num]; QuestSequence obj162 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span220[num2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -19184,7 +23030,8 @@ public static class AssemblyQuestLoader }; obj162.Steps = list220; reference162 = obj162; - ref QuestSequence reference163 = ref span92[2]; + num++; + ref QuestSequence reference163 = ref span218[num]; QuestSequence obj163 = new QuestSequence { Sequence = 2 @@ -19192,21 +23039,27 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130); + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span221[index2] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130); obj163.Steps = list221; reference163 = obj163; - ref QuestSequence reference164 = ref span92[3]; + num++; + ref QuestSequence reference164 = ref span218[num]; QuestSequence obj164 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + Span span222 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span222[num2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); obj164.Steps = list222; reference164 = obj164; - ref QuestSequence reference165 = ref span92[4]; + num++; + ref QuestSequence reference165 = ref span218[num]; QuestSequence obj165 = new QuestSequence { Sequence = 4 @@ -19214,77 +23067,109 @@ public static class AssemblyQuestLoader num2 = 4; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span93 = CollectionsMarshal.AsSpan(list223); - ref QuestStep reference166 = ref span93[0]; + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + ref QuestStep reference166 = ref span223[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1001711u, new Vector3(-241.62665f, 18.8f, 83.32947f), 130); num3 = 6; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - Span span94 = CollectionsMarshal.AsSpan(list224); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span224 = CollectionsMarshal.AsSpan(list224); + index3 = 0; + span224[index3] = null; + index3++; + span224[index3] = null; + index3++; + span224[index3] = null; + index3++; + span224[index3] = null; + index3++; + span224[index3] = null; + index3++; + span224[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list224; reference166 = questStep8; - ref QuestStep reference167 = ref span93[1]; + index2++; + ref QuestStep reference167 = ref span223[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1001294u, new Vector3(-214.22144f, 18.5f, 72.129395f), 130); - num3 = 6; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - Span span95 = CollectionsMarshal.AsSpan(list225); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list225 = new List(index3); + CollectionsMarshal.SetCount(list225, index3); + Span span225 = CollectionsMarshal.AsSpan(list225); + num3 = 0; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list225; reference167 = questStep9; - ref QuestStep reference168 = ref span93[2]; + index2++; + ref QuestStep reference168 = ref span223[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1001289u, new Vector3(-207.90424f, 18.5f, 70.7865f), 130); num3 = 6; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - Span span96 = CollectionsMarshal.AsSpan(list226); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span226 = CollectionsMarshal.AsSpan(list226); + index3 = 0; + span226[index3] = null; + index3++; + span226[index3] = null; + index3++; + span226[index3] = null; + index3++; + span226[index3] = null; + index3++; + span226[index3] = null; + index3++; + span226[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list226; reference168 = questStep10; - ref QuestStep reference169 = ref span93[3]; + index2++; + ref QuestStep reference169 = ref span223[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1001288u, new Vector3(-151.59845f, 12f, 16.220276f), 130); - num3 = 6; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - Span span97 = CollectionsMarshal.AsSpan(list227); - span97[0] = null; - span97[1] = null; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list227 = new List(index3); + CollectionsMarshal.SetCount(list227, index3); + Span span227 = CollectionsMarshal.AsSpan(list227); + num3 = 0; + span227[num3] = null; + num3++; + span227[num3] = null; + num3++; + span227[num3] = null; + num3++; + span227[num3] = null; + num3++; + span227[num3] = null; + num3++; + span227[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list227; reference169 = questStep11; obj165.Steps = list223; reference165 = obj165; - ref QuestSequence reference170 = ref span92[5]; + num++; + ref QuestSequence reference170 = ref span218[num]; QuestSequence obj166 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); obj166.Steps = list228; reference170 = obj166; - ref QuestSequence reference171 = ref span92[6]; + num++; + ref QuestSequence reference171 = ref span218[num]; QuestSequence obj167 = new QuestSequence { Sequence = 6 @@ -19292,80 +23177,112 @@ public static class AssemblyQuestLoader num2 = 4; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span98 = CollectionsMarshal.AsSpan(list229); - ref QuestStep reference172 = ref span98[0]; + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + ref QuestStep reference172 = ref span229[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2004886u, new Vector3(-245.19727f, 19.150085f, 63.67578f), 130); num3 = 6; List list230 = new List(num3); CollectionsMarshal.SetCount(list230, num3); - Span span99 = CollectionsMarshal.AsSpan(list230); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span230 = CollectionsMarshal.AsSpan(list230); + index3 = 0; + span230[index3] = null; + index3++; + span230[index3] = null; + index3++; + span230[index3] = null; + index3++; + span230[index3] = null; + index3++; + span230[index3] = null; + index3++; + span230[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list230; reference172 = questStep12; - ref QuestStep reference173 = ref span98[1]; + index2++; + ref QuestStep reference173 = ref span229[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2004885u, new Vector3(-206.50043f, 19.180542f, 49.94275f), 130); - num3 = 6; - List list231 = new List(num3); - CollectionsMarshal.SetCount(list231, num3); - Span span100 = CollectionsMarshal.AsSpan(list231); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list231 = new List(index3); + CollectionsMarshal.SetCount(list231, index3); + Span span231 = CollectionsMarshal.AsSpan(list231); + num3 = 0; + span231[num3] = null; + num3++; + span231[num3] = null; + num3++; + span231[num3] = null; + num3++; + span231[num3] = null; + num3++; + span231[num3] = null; + num3++; + span231[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list231; reference173 = questStep13; - ref QuestStep reference174 = ref span98[2]; + index2++; + ref QuestStep reference174 = ref span229[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2004887u, new Vector3(-194.11005f, 19.150085f, 91.325195f), 130); num3 = 6; List list232 = new List(num3); CollectionsMarshal.SetCount(list232, num3); - Span span101 = CollectionsMarshal.AsSpan(list232); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span232 = CollectionsMarshal.AsSpan(list232); + index3 = 0; + span232[index3] = null; + index3++; + span232[index3] = null; + index3++; + span232[index3] = null; + index3++; + span232[index3] = null; + index3++; + span232[index3] = null; + index3++; + span232[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list232; reference174 = questStep14; - ref QuestStep reference175 = ref span98[3]; + index2++; + ref QuestStep reference175 = ref span229[index2]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 2004888u, new Vector3(-243.64087f, 20.065613f, 104.41736f), 130) { IgnoreDistanceToObject = true }; - num3 = 6; - List list233 = new List(num3); - CollectionsMarshal.SetCount(list233, num3); - Span span102 = CollectionsMarshal.AsSpan(list233); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list233 = new List(index3); + CollectionsMarshal.SetCount(list233, index3); + Span span233 = CollectionsMarshal.AsSpan(list233); + num3 = 0; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj168.CompletionQuestVariablesFlags = list233; reference175 = obj168; obj167.Steps = list229; reference171 = obj167; - ref QuestSequence reference176 = ref span92[7]; + num++; + ref QuestSequence reference176 = ref span218[num]; QuestSequence obj169 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + Span span234 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span234[num2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); obj169.Steps = list234; reference176 = obj169; - ref QuestSequence reference177 = ref span92[8]; + num++; + ref QuestSequence reference177 = ref span218[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue @@ -19373,7 +23290,9 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.CompleteQuest, 2004889u, new Vector3(-136.55304f, 11.9782715f, 23.5141f), 130) + Span span235 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span235[index2] = new QuestStep(EInteractionType.CompleteQuest, 2004889u, new Vector3(-136.55304f, 11.9782715f, 23.5141f), 130) { NextQuestId = new QuestId(1574) }; @@ -19386,21 +23305,26 @@ public static class AssemblyQuestLoader num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - CollectionsMarshal.AsSpan(list236)[0] = "liza"; + Span span236 = CollectionsMarshal.AsSpan(list236); + index = 0; + span236[index] = "liza"; questRoot23.Author = list236; - num = 8; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - Span span103 = CollectionsMarshal.AsSpan(list237); - ref QuestSequence reference178 = ref span103[0]; + index = 8; + List list237 = new List(index); + CollectionsMarshal.SetCount(list237, index); + Span span237 = CollectionsMarshal.AsSpan(list237); + num = 0; + ref QuestSequence reference178 = ref span237[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -19413,7 +23337,8 @@ public static class AssemblyQuestLoader }; obj171.Steps = list238; reference178 = obj171; - ref QuestSequence reference179 = ref span103[1]; + num++; + ref QuestSequence reference179 = ref span237[num]; QuestSequence obj172 = new QuestSequence { Sequence = 1 @@ -19421,27 +23346,33 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1001787u, new Vector3(-62.119568f, 18.000334f, 9.414734f), 129); + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new QuestStep(EInteractionType.Interact, 1001787u, new Vector3(-62.119568f, 18.000334f, 9.414734f), 129); obj172.Steps = list239; reference179 = obj172; - ref QuestSequence reference180 = ref span103[2]; + num++; + ref QuestSequence reference180 = ref span237[num]; QuestSequence obj173 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - Span span104 = CollectionsMarshal.AsSpan(list240); - span104[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-339.63614f, -2.097362f, 142.24135f), 139) + index2 = 2; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-339.63614f, -2.097362f, 142.24135f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span104[1] = new QuestStep(EInteractionType.Interact, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139); + num2++; + span240[num2] = new QuestStep(EInteractionType.Interact, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139); obj173.Steps = list240; reference180 = obj173; - ref QuestSequence reference181 = ref span103[3]; + num++; + ref QuestSequence reference181 = ref span237[num]; QuestSequence obj174 = new QuestSequence { Sequence = 3 @@ -19449,29 +23380,35 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span105 = CollectionsMarshal.AsSpan(list241); - span105[0] = new QuestStep(EInteractionType.Interact, 1003586u, new Vector3(-342.12262f, -1.0249884f, 111.46704f), 139) + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.Interact, 1003586u, new Vector3(-342.12262f, -1.0249884f, 111.46704f), 139) { TargetTerritoryId = (ushort)139 }; - span105[1] = new QuestStep(EInteractionType.Interact, 1010434u, new Vector3(241.74866f, -0.96623325f, 257.12976f), 139); + index2++; + span241[index2] = new QuestStep(EInteractionType.Interact, 1010434u, new Vector3(241.74866f, -0.96623325f, 257.12976f), 139); obj174.Steps = list241; reference181 = obj174; - ref QuestSequence reference182 = ref span103[4]; + num++; + ref QuestSequence reference182 = ref span237[num]; QuestSequence obj175 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1010435u, new Vector3(340.04736f, -2.5074248f, 104.600464f), 139) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.Interact, 1010435u, new Vector3(340.04736f, -2.5074248f, 104.600464f), 139) { Fly = true }; obj175.Steps = list242; reference182 = obj175; - ref QuestSequence reference183 = ref span103[5]; + num++; + ref QuestSequence reference183 = ref span237[num]; QuestSequence obj176 = new QuestSequence { Sequence = 5 @@ -19479,8 +23416,9 @@ public static class AssemblyQuestLoader num2 = 2; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span106 = CollectionsMarshal.AsSpan(list243); - ref QuestStep reference184 = ref span106[0]; + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + ref QuestStep reference184 = ref span243[index2]; QuestStep obj177 = new QuestStep(EInteractionType.Combat, 1010435u, new Vector3(340.04736f, -2.5074248f, 104.600464f), 139) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny @@ -19488,34 +23426,41 @@ public static class AssemblyQuestLoader num3 = 2; List list244 = new List(num3); CollectionsMarshal.SetCount(list244, num3); - Span span107 = CollectionsMarshal.AsSpan(list244); - span107[0] = 3559u; - span107[1] = 3560u; + Span span244 = CollectionsMarshal.AsSpan(list244); + index3 = 0; + span244[index3] = 3559u; + index3++; + span244[index3] = 3560u; obj177.KillEnemyDataIds = list244; reference184 = obj177; - span106[1] = new QuestStep(EInteractionType.Interact, 1010437u, new Vector3(271.59534f, 25.732939f, -100.35864f), 139) + index2++; + span243[index2] = new QuestStep(EInteractionType.Interact, 1010437u, new Vector3(271.59534f, 25.732939f, -100.35864f), 139) { Fly = true }; obj176.Steps = list243; reference183 = obj176; - ref QuestSequence reference185 = ref span103[6]; + num++; + ref QuestSequence reference185 = ref span237[num]; QuestSequence obj178 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - Span span108 = CollectionsMarshal.AsSpan(list245); - span108[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-339.63614f, -2.097362f, 142.24135f), 139) + index2 = 2; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + Span span245 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span245[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-339.63614f, -2.097362f, 142.24135f), 139) { Fly = true }; - span108[1] = new QuestStep(EInteractionType.Interact, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139); + num2++; + span245[num2] = new QuestStep(EInteractionType.Interact, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139); obj178.Steps = list245; reference185 = obj178; - ref QuestSequence reference186 = ref span103[7]; + num++; + ref QuestSequence reference186 = ref span237[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -19523,12 +23468,14 @@ public static class AssemblyQuestLoader num2 = 2; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span109 = CollectionsMarshal.AsSpan(list246); - span109[0] = new QuestStep(EInteractionType.Interact, 1003586u, new Vector3(-342.12262f, -1.0249884f, 111.46704f), 139) + Span span246 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span246[index2] = new QuestStep(EInteractionType.Interact, 1003586u, new Vector3(-342.12262f, -1.0249884f, 111.46704f), 139) { TargetTerritoryId = (ushort)139 }; - span109[1] = new QuestStep(EInteractionType.CompleteQuest, 1010438u, new Vector3(275.28796f, -0.93098116f, 231.61658f), 139) + index2++; + span246[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010438u, new Vector3(275.28796f, -0.93098116f, 231.61658f), 139) { Fly = true, NextQuestId = new QuestId(244) @@ -19542,21 +23489,26 @@ public static class AssemblyQuestLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - CollectionsMarshal.AsSpan(list247)[0] = "liza"; + Span span247 = CollectionsMarshal.AsSpan(list247); + index = 0; + span247[index] = "liza"; questRoot24.Author = list247; - num = 10; - List list248 = new List(num); - CollectionsMarshal.SetCount(list248, num); - Span span110 = CollectionsMarshal.AsSpan(list248); - ref QuestSequence reference187 = ref span110[0]; + index = 10; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + Span span248 = CollectionsMarshal.AsSpan(list248); + num = 0; + ref QuestSequence reference187 = ref span248[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + Span span249 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span249[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -19569,7 +23521,8 @@ public static class AssemblyQuestLoader }; obj180.Steps = list249; reference187 = obj180; - ref QuestSequence reference188 = ref span110[1]; + num++; + ref QuestSequence reference188 = ref span248[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -19577,27 +23530,33 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) + Span span250 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span250[index2] = new QuestStep(EInteractionType.Interact, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj181.Steps = list250; reference188 = obj181; - ref QuestSequence reference189 = ref span110[2]; + num++; + ref QuestSequence reference189 = ref span248[num]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.UseItem, 2004864u, new Vector3(-381.70447f, -58.42682f, 167.74243f), 145) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + Span span251 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span251[num2] = new QuestStep(EInteractionType.UseItem, 2004864u, new Vector3(-381.70447f, -58.42682f, 167.74243f), 145) { ItemId = 2001487u }; obj182.Steps = list251; reference189 = obj182; - ref QuestSequence reference190 = ref span110[3]; + num++; + ref QuestSequence reference190 = ref span248[num]; QuestSequence obj183 = new QuestSequence { Sequence = 3 @@ -19605,34 +23564,40 @@ public static class AssemblyQuestLoader num2 = 2; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span111 = CollectionsMarshal.AsSpan(list252); - span111[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-393.1081f, -57.326912f, 155.15263f), 145) + Span span252 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span252[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-393.1081f, -57.326912f, 155.15263f), 145) { Mount = true }; - span111[1] = new QuestStep(EInteractionType.Interact, 2004877u, new Vector3(-299.48883f, -40.665344f, 7.095398f), 145) + index2++; + span252[index2] = new QuestStep(EInteractionType.Interact, 2004877u, new Vector3(-299.48883f, -40.665344f, 7.095398f), 145) { Fly = true }; obj183.Steps = list252; reference190 = obj183; - ref QuestSequence reference191 = ref span110[4]; + num++; + ref QuestSequence reference191 = ref span248[num]; QuestSequence obj184 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - Span span112 = CollectionsMarshal.AsSpan(list253); - span112[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-422.0606f, -55.802967f, 107.502235f), 145) + index2 = 2; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + Span span253 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span253[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-422.0606f, -55.802967f, 107.502235f), 145) { Fly = true }; - span112[1] = new QuestStep(EInteractionType.Interact, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145); + num2++; + span253[num2] = new QuestStep(EInteractionType.Interact, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145); obj184.Steps = list253; reference191 = obj184; - ref QuestSequence reference192 = ref span110[5]; + num++; + ref QuestSequence reference192 = ref span248[num]; QuestSequence obj185 = new QuestSequence { Sequence = 5 @@ -19640,30 +23605,37 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 2004866u, new Vector3(-382.22327f, -58.42682f, 168.65796f), 145); + Span span254 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span254[index2] = new QuestStep(EInteractionType.Interact, 2004866u, new Vector3(-382.22327f, -58.42682f, 168.65796f), 145); obj185.Steps = list254; reference192 = obj185; - ref QuestSequence reference193 = ref span110[6]; + num++; + ref QuestSequence reference193 = ref span248[num]; QuestSequence obj186 = new QuestSequence { Sequence = 6 }; - num2 = 3; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - Span span113 = CollectionsMarshal.AsSpan(list255); - span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-393.1081f, -57.326912f, 155.15263f), 145) + index2 = 3; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span255 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span255[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-393.1081f, -57.326912f, 155.15263f), 145) { Mount = true }; - span113[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.83288f, -17.544205f, 23.35826f), 145) + num2++; + span255[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.83288f, -17.544205f, 23.35826f), 145) { Fly = true }; - span113[2] = new QuestStep(EInteractionType.Interact, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145); + num2++; + span255[num2] = new QuestStep(EInteractionType.Interact, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145); obj186.Steps = list255; reference193 = obj186; - ref QuestSequence reference194 = ref span110[7]; + num++; + ref QuestSequence reference194 = ref span248[num]; QuestSequence obj187 = new QuestSequence { Sequence = 7 @@ -19671,36 +23643,43 @@ public static class AssemblyQuestLoader num2 = 3; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span114 = CollectionsMarshal.AsSpan(list256); - span114[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.4535733f, -8.0592985f, 1.7329537f), 145) + Span span256 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span256[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.4535733f, -8.0592985f, 1.7329537f), 145) { Mount = true }; - span114[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(435.9292f, 9.87471f, 143.03693f), 145) + index2++; + span256[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(435.9292f, 9.87471f, 143.03693f), 145) { Fly = true }; - span114[2] = new QuestStep(EInteractionType.UseItem, 2004868u, new Vector3(438.6206f, 12.436096f, 137.6211f), 145) + index2++; + span256[index2] = new QuestStep(EInteractionType.UseItem, 2004868u, new Vector3(438.6206f, 12.436096f, 137.6211f), 145) { ItemId = 2001489u }; obj187.Steps = list256; reference194 = obj187; - ref QuestSequence reference195 = ref span110[8]; + num++; + ref QuestSequence reference195 = ref span248[num]; QuestSequence obj188 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.UseItem, 2004869u, new Vector3(438.6206f, 12.436096f, 137.6211f), 145) + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span257 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span257[num2] = new QuestStep(EInteractionType.UseItem, 2004869u, new Vector3(438.6206f, 12.436096f, 137.6211f), 145) { ItemId = 2001488u }; obj188.Steps = list257; reference195 = obj188; - ref QuestSequence reference196 = ref span110[9]; + num++; + ref QuestSequence reference196 = ref span248[num]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue @@ -19708,7 +23687,9 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010377u, new Vector3(-382.83362f, -59.300003f, 169.75659f), 145) + Span span258 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span258[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010377u, new Vector3(-382.83362f, -59.300003f, 169.75659f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, NextQuestId = new QuestId(240) @@ -19722,24 +23703,30 @@ public static class AssemblyQuestLoader num = 1; List list259 = new List(num); CollectionsMarshal.SetCount(list259, num); - CollectionsMarshal.AsSpan(list259)[0] = "liza"; + Span span259 = CollectionsMarshal.AsSpan(list259); + index = 0; + span259[index] = "liza"; questRoot25.Author = list259; - num = 6; - List list260 = new List(num); - CollectionsMarshal.SetCount(list260, num); - Span span115 = CollectionsMarshal.AsSpan(list260); - ref QuestSequence reference197 = ref span115[0]; + index = 6; + List list260 = new List(index); + CollectionsMarshal.SetCount(list260, index); + Span span260 = CollectionsMarshal.AsSpan(list260); + num = 0; + ref QuestSequence reference197 = ref span260[num]; QuestSequence obj190 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + Span span261 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span261[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj190.Steps = list261; reference197 = obj190; - ref QuestSequence reference198 = ref span115[1]; + num++; + ref QuestSequence reference198 = ref span260[num]; QuestSequence obj191 = new QuestSequence { Sequence = 1 @@ -19747,21 +23734,25 @@ public static class AssemblyQuestLoader num2 = 2; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span116 = CollectionsMarshal.AsSpan(list262); - ref QuestStep reference199 = ref span116[0]; + Span span262 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + ref QuestStep reference199 = ref span262[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.AcceptQuest, 1005411u, new Vector3(13.412659f, 40.2f, -13.260071f), 128); SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = 129; + index3 = 1; + List list263 = new List(index3); + CollectionsMarshal.SetCount(list263, index3); + Span span263 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span263[num3] = 129; skipStepConditions6.InTerritory = list263; skipConditions9.StepIf = skipStepConditions6; questStep15.SkipConditions = skipConditions9; questStep15.PickUpQuestId = new QuestId(1431); reference199 = questStep15; - span116[1] = new QuestStep(EInteractionType.Interact, 1003621u, new Vector3(-192.0653f, 0.9999907f, 208.66711f), 129) + index2++; + span262[index2] = new QuestStep(EInteractionType.Interact, 1003621u, new Vector3(-192.0653f, 0.9999907f, 208.66711f), 129) { AethernetShortcut = new AethernetShortcut { @@ -19778,32 +23769,38 @@ public static class AssemblyQuestLoader }; obj191.Steps = list262; reference198 = obj191; - ref QuestSequence reference200 = ref span115[2]; + num++; + ref QuestSequence reference200 = ref span260[num]; QuestSequence obj192 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - Span span117 = CollectionsMarshal.AsSpan(list264); - span117[0] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) + index2 = 4; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) { StopDistance = 7f, TargetTerritoryId = (ushort)138 }; - span117[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) + num2++; + span264[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) { Aetheryte = EAetheryteLocation.WesternLaNosceaAleport }; - span117[2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002723u, new Vector3(298.63428f, -25.004364f, 233.14258f), 138) + num2++; + span264[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002723u, new Vector3(298.63428f, -25.004364f, 233.14258f), 138) { TaxiStandId = (byte)24 }; - span117[3] = new QuestStep(EInteractionType.Interact, 1017075u, new Vector3(356.5575f, -15.97664f, 136.73608f), 138); + num2++; + span264[num2] = new QuestStep(EInteractionType.Interact, 1017075u, new Vector3(356.5575f, -15.97664f, 136.73608f), 138); obj192.Steps = list264; reference200 = obj192; - ref QuestSequence reference201 = ref span115[3]; + num++; + ref QuestSequence reference201 = ref span260[num]; QuestSequence obj193 = new QuestSequence { Sequence = 3 @@ -19811,7 +23808,9 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1004472u, new Vector3(335.40857f, 9.635179f, 17.135864f), 138) + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span265[index2] = new QuestStep(EInteractionType.Interact, 1004472u, new Vector3(335.40857f, 9.635179f, 17.135864f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -19824,15 +23823,18 @@ public static class AssemblyQuestLoader }; obj193.Steps = list265; reference201 = obj193; - ref QuestSequence reference202 = ref span115[4]; + num++; + ref QuestSequence reference202 = ref span260[num]; QuestSequence obj194 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Duty, null, null, 138) + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + Span span266 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span266[num2] = new QuestStep(EInteractionType.Duty, null, null, 138) { DutyOptions = new DutyOptions { @@ -19842,7 +23844,8 @@ public static class AssemblyQuestLoader }; obj194.Steps = list266; reference202 = obj194; - ref QuestSequence reference203 = ref span115[5]; + num++; + ref QuestSequence reference203 = ref span260[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue @@ -19850,7 +23853,9 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) + Span span267 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span267[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -19873,22 +23878,27 @@ public static class AssemblyQuestLoader List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - span[0] = "liza"; - span[1] = "Wigglez"; + int num2 = 0; + span[num2] = "liza"; + num2++; + span[num2] = "Wigglez"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); + num2 = 4; + List list2 = new List(num2); + CollectionsMarshal.SetCount(list2, num2); Span span2 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span2[0]; + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 }; - int num2 = 1; - List list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + int num3 = 1; + List list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index = 0; + ref QuestStep reference2 = ref span3[index]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -19903,17 +23913,21 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - int num3 = 1; - List list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = 131; + int num4 = 1; + List list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span4 = CollectionsMarshal.AsSpan(list4); + int index2 = 0; + span4[index2] = 131; obj3.InTerritory = list4; skipConditions.AetheryteShortcutIf = obj3; obj2.SkipConditions = skipConditions; - num3 = 1; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num4 = 0; + span5[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLA020_00253_Q1_000_1") @@ -19922,20 +23936,25 @@ public static class AssemblyQuestLoader reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span2[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list6)[0]; + index = 1; + List list6 = new List(index); + CollectionsMarshal.SetCount(list6, index); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + ref QuestStep reference4 = ref span6[num3]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131); - num3 = 1; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = new DialogueChoice + num4 = 1; + List list7 = new List(num4); + CollectionsMarshal.SetCount(list7, num4); + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLA020_00253_Q2_000_1") @@ -19944,16 +23963,18 @@ public static class AssemblyQuestLoader reference4 = questStep; obj4.Steps = list6; reference3 = obj4; - ref QuestSequence reference5 = ref span2[2]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span3 = CollectionsMarshal.AsSpan(list8); - ref QuestStep reference6 = ref span3[0]; + num3 = 4; + List list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + Span span8 = CollectionsMarshal.AsSpan(list8); + index = 0; + ref QuestStep reference6 = ref span8[index]; QuestStep obj6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.13088f, 3.889354f, -166.51999f), 130) { AethernetShortcut = new AethernetShortcut @@ -19964,152 +23985,204 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = 141; + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span9[num4] = 141; skipStepConditions.InTerritory = list9; skipConditions2.StepIf = skipStepConditions; obj6.SkipConditions = skipConditions2; reference6 = obj6; - ref QuestStep reference7 = ref span3[1]; + index++; + ref QuestStep reference7 = ref span8[index]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, null, new Vector3(-74.7536f, 9.131219f, 278.35217f), 141) { DelaySecondsAtStart = 2f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = 351u; + num4 = 1; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = 351u; obj7.KillEnemyDataIds = list10; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span4 = CollectionsMarshal.AsSpan(list11); - span4[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = null; + index2 = 6; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num4 = 0; + span11[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span11[num4] = null; + num4++; + span11[num4] = null; + num4++; + span11[num4] = null; + num4++; + span11[num4] = null; + num4++; + span11[num4] = null; skipStepConditions2.CompletionQuestVariablesFlags = list11; skipConditions3.StepIf = skipStepConditions2; obj7.SkipConditions = skipConditions3; - num3 = 6; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - Span span5 = CollectionsMarshal.AsSpan(list12); - span5[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = null; + num4 = 6; + List list12 = new List(num4); + CollectionsMarshal.SetCount(list12, num4); + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index2++; + span12[index2] = null; + index2++; + span12[index2] = null; + index2++; + span12[index2] = null; + index2++; + span12[index2] = null; + index2++; + span12[index2] = null; obj7.CompletionQuestVariablesFlags = list12; reference7 = obj7; - ref QuestStep reference8 = ref span3[2]; + index++; + ref QuestStep reference8 = ref span8[index]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, null, new Vector3(-74.7536f, 9.131219f, 278.35217f), 141) { DelaySecondsAtStart = 2f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 385u; + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num4 = 0; + span13[num4] = 385u; obj8.KillEnemyDataIds = list13; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - Span span6 = CollectionsMarshal.AsSpan(list14); - span6[0] = null; - span6[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = null; + num4 = 6; + List list14 = new List(num4); + CollectionsMarshal.SetCount(list14, num4); + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = null; + index2++; + span14[index2] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index2++; + span14[index2] = null; + index2++; + span14[index2] = null; + index2++; + span14[index2] = null; + index2++; + span14[index2] = null; skipStepConditions3.CompletionQuestVariablesFlags = list14; skipConditions4.StepIf = skipStepConditions3; obj8.SkipConditions = skipConditions4; - num3 = 6; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span7 = CollectionsMarshal.AsSpan(list15); - span7[0] = null; - span7[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = null; + index2 = 6; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num4 = 0; + span15[num4] = null; + num4++; + span15[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span15[num4] = null; + num4++; + span15[num4] = null; + num4++; + span15[num4] = null; + num4++; + span15[num4] = null; obj8.CompletionQuestVariablesFlags = list15; reference8 = obj8; - ref QuestStep reference9 = ref span3[3]; + index++; + ref QuestStep reference9 = ref span8[index]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(27.49698f, -1.0683776f, 207.4475f), 141) { DelaySecondsAtStart = 2f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = 205u; + num4 = 1; + List list16 = new List(num4); + CollectionsMarshal.SetCount(list16, num4); + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = 205u; obj9.KillEnemyDataIds = list16; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - Span span8 = CollectionsMarshal.AsSpan(list17); - span8[0] = null; - span8[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = null; + index2 = 6; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num4 = 0; + span17[num4] = null; + num4++; + span17[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span17[num4] = null; + num4++; + span17[num4] = null; + num4++; + span17[num4] = null; + num4++; + span17[num4] = null; skipStepConditions4.CompletionQuestVariablesFlags = list17; skipConditions5.StepIf = skipStepConditions4; obj9.SkipConditions = skipConditions5; - num3 = 6; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - Span span9 = CollectionsMarshal.AsSpan(list18); - span9[0] = null; - span9[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = null; + num4 = 6; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = null; + index2++; + span18[index2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index2++; + span18[index2] = null; + index2++; + span18[index2] = null; + index2++; + span18[index2] = null; + index2++; + span18[index2] = null; obj9.CompletionQuestVariablesFlags = list18; reference9 = obj9; obj5.Steps = list8; reference5 = obj5; - ref QuestSequence reference10 = ref span2[3]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - Span span10 = CollectionsMarshal.AsSpan(list19); - ref QuestStep reference11 = ref span10[0]; + index = 2; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + ref QuestStep reference11 = ref span19[num3]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-118.17538f, 18.35357f, 341.3039f), 141); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = 141; + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num4 = 0; + span20[num4] = 141; skipStepConditions5.NotInTerritory = list20; skipConditions6.StepIf = skipStepConditions5; questStep2.SkipConditions = skipConditions6; reference11 = questStep2; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + num3++; + span19[num3] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AethernetShortcut = new AethernetShortcut { @@ -20127,21 +24200,26 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "liza"; + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = "liza"; questRoot2.Author = list21; - num = 9; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span11 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference12 = ref span11[0]; + num2 = 9; + List list22 = new List(num2); + CollectionsMarshal.SetCount(list22, num2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference12 = ref span22[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list23)[0]; + num3 = 1; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + Span span23 = CollectionsMarshal.AsSpan(list23); + index = 0; + ref QuestStep reference13 = ref span23[index]; QuestStep obj12 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -20156,26 +24234,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = 131; + num4 = 1; + List list24 = new List(num4); + CollectionsMarshal.SetCount(list24, num4); + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = 131; obj13.InTerritory = list24; skipConditions7.AetheryteShortcutIf = obj13; obj12.SkipConditions = skipConditions7; reference13 = obj12; obj11.Steps = list23; reference12 = obj11; - ref QuestSequence reference14 = ref span11[1]; + num++; + ref QuestSequence reference14 = ref span22[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - Span span12 = CollectionsMarshal.AsSpan(list25); - ref QuestStep reference15 = ref span12[0]; + index = 4; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + Span span25 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + ref QuestStep reference15 = ref span25[num3]; QuestStep obj15 = new QuestStep(EInteractionType.Emote, 1003990u, new Vector3(77.25635f, 4.0999947f, -138.62823f), 130) { AethernetShortcut = new AethernetShortcut @@ -20185,105 +24267,141 @@ public static class AssemblyQuestLoader }, Emote = EEmote.Me }; - num3 = 6; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span13 = CollectionsMarshal.AsSpan(list26); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num4 = 0; + span26[num4] = null; + num4++; + span26[num4] = null; + num4++; + span26[num4] = null; + num4++; + span26[num4] = null; + num4++; + span26[num4] = null; + num4++; + span26[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj15.CompletionQuestVariablesFlags = list26; reference15 = obj15; - ref QuestStep reference16 = ref span12[1]; + num3++; + ref QuestStep reference16 = ref span25[num3]; QuestStep obj16 = new QuestStep(EInteractionType.Emote, 1003984u, new Vector3(45.029297f, 3.9999998f, -128.16058f), 130) { Emote = EEmote.Me }; - num3 = 6; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - Span span14 = CollectionsMarshal.AsSpan(list27); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list27 = new List(num4); + CollectionsMarshal.SetCount(list27, num4); + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = null; + index2++; + span27[index2] = null; + index2++; + span27[index2] = null; + index2++; + span27[index2] = null; + index2++; + span27[index2] = null; + index2++; + span27[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj16.CompletionQuestVariablesFlags = list27; reference16 = obj16; - ref QuestStep reference17 = ref span12[2]; + num3++; + ref QuestStep reference17 = ref span25[num3]; QuestStep obj17 = new QuestStep(EInteractionType.Emote, 1003992u, new Vector3(12.191956f, 4.0999947f, -155.53528f), 130) { Emote = EEmote.Me }; - num3 = 6; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span15 = CollectionsMarshal.AsSpan(list28); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num4 = 0; + span28[num4] = null; + num4++; + span28[num4] = null; + num4++; + span28[num4] = null; + num4++; + span28[num4] = null; + num4++; + span28[num4] = null; + num4++; + span28[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list28; reference17 = obj17; - ref QuestStep reference18 = ref span12[3]; + num3++; + ref QuestStep reference18 = ref span25[num3]; QuestStep obj18 = new QuestStep(EInteractionType.Emote, 1003994u, new Vector3(15.976135f, 7.9999995f, -124.071106f), 130) { Emote = EEmote.Me }; - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span16 = CollectionsMarshal.AsSpan(list29); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = null; + index2++; + span29[index2] = null; + index2++; + span29[index2] = null; + index2++; + span29[index2] = null; + index2++; + span29[index2] = null; + index2++; + span29[index2] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj18.CompletionQuestVariablesFlags = list29; reference18 = obj18; obj14.Steps = list25; reference14 = obj14; - ref QuestSequence reference19 = ref span11[2]; + num++; + ref QuestSequence reference19 = ref span22[num]; QuestSequence obj19 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Emote, 1004222u, new Vector3(21.927185f, 7.1999974f, -97.39838f), 130) + num3 = 1; + List list30 = new List(num3); + CollectionsMarshal.SetCount(list30, num3); + Span span30 = CollectionsMarshal.AsSpan(list30); + index = 0; + span30[index] = new QuestStep(EInteractionType.Emote, 1004222u, new Vector3(21.927185f, 7.1999974f, -97.39838f), 130) { Emote = EEmote.Me }; obj19.Steps = list30; reference19 = obj19; - ref QuestSequence reference20 = ref span11[3]; + num++; + ref QuestSequence reference20 = ref span22[num]; QuestSequence obj20 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + index = 1; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj20.Steps = list31; reference20 = obj20; - ref QuestSequence reference21 = ref span11[4]; + num++; + ref QuestSequence reference21 = ref span22[num]; QuestSequence obj21 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + num3 = 1; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + Span span32 = CollectionsMarshal.AsSpan(list32); + index = 0; + span32[index] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AethernetShortcut = new AethernetShortcut { @@ -20293,98 +24411,128 @@ public static class AssemblyQuestLoader }; obj21.Steps = list32; reference21 = obj21; - ref QuestSequence reference22 = ref span11[5]; + num++; + ref QuestSequence reference22 = ref span22[num]; QuestSequence obj22 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span17 = CollectionsMarshal.AsSpan(list33); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.70276f, 7.7544775f, 9.123527f), 131); - span17[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.00035f, 13.958975f, -13.998203f), 130); - span17[2] = new QuestStep(EInteractionType.Interact, 1003985u, new Vector3(201.52588f, 52.038116f, 149.40112f), 140); + index = 3; + List list33 = new List(index); + CollectionsMarshal.SetCount(list33, index); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.70276f, 7.7544775f, 9.123527f), 131); + num3++; + span33[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.00035f, 13.958975f, -13.998203f), 130); + num3++; + span33[num3] = new QuestStep(EInteractionType.Interact, 1003985u, new Vector3(201.52588f, 52.038116f, 149.40112f), 140); obj22.Steps = list33; reference22 = obj22; - ref QuestSequence reference23 = ref span11[6]; + num++; + ref QuestSequence reference23 = ref span22[num]; QuestSequence obj23 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span18 = CollectionsMarshal.AsSpan(list34); - ref QuestStep reference24 = ref span18[0]; + num3 = 2; + List list34 = new List(num3); + CollectionsMarshal.SetCount(list34, num3); + Span span34 = CollectionsMarshal.AsSpan(list34); + index = 0; + ref QuestStep reference24 = ref span34[index]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, 2001408u, new Vector3(154.37549f, 52.536743f, 200.91553f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = 1246u; + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num4 = 0; + span35[num4] = 1246u; obj24.KillEnemyDataIds = list35; - num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span19 = CollectionsMarshal.AsSpan(list36); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list36 = new List(num4); + CollectionsMarshal.SetCount(list36, num4); + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = null; + index2++; + span36[index2] = null; + index2++; + span36[index2] = null; + index2++; + span36[index2] = null; + index2++; + span36[index2] = null; + index2++; + span36[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj24.CompletionQuestVariablesFlags = list36; reference24 = obj24; - ref QuestStep reference25 = ref span18[1]; + index++; + ref QuestStep reference25 = ref span34[index]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, 2001409u, new Vector3(141.83252f, 52.994507f, 221.54565f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = 1390u; + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num4 = 0; + span37[num4] = 1390u; obj25.KillEnemyDataIds = list37; - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span20 = CollectionsMarshal.AsSpan(list38); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list38 = new List(num4); + CollectionsMarshal.SetCount(list38, num4); + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = null; + index2++; + span38[index2] = null; + index2++; + span38[index2] = null; + index2++; + span38[index2] = null; + index2++; + span38[index2] = null; + index2++; + span38[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj25.CompletionQuestVariablesFlags = list38; reference25 = obj25; obj23.Steps = list34; reference23 = obj23; - ref QuestSequence reference26 = ref span11[7]; + num++; + ref QuestSequence reference26 = ref span22[num]; QuestSequence obj26 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1003985u, new Vector3(201.52588f, 52.038116f, 149.40112f), 140); + index = 1; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + Span span39 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + span39[num3] = new QuestStep(EInteractionType.Interact, 1003985u, new Vector3(201.52588f, 52.038116f, 149.40112f), 140); obj26.Steps = list39; reference26 = obj26; - ref QuestSequence reference27 = ref span11[8]; + num++; + ref QuestSequence reference27 = ref span22[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span21 = CollectionsMarshal.AsSpan(list40); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(473.74796f, 96.62057f, 159.993f), 140); - span21[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-117.06801f, 9.195247f, 9.181297f), 130); - span21[2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131); + num3 = 3; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + Span span40 = CollectionsMarshal.AsSpan(list40); + index = 0; + span40[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(473.74796f, 96.62057f, 159.993f), 140); + index++; + span40[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-117.06801f, 9.195247f, 9.181297f), 130); + index++; + span40[index] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131); obj27.Steps = list40; reference27 = obj27; questRoot2.QuestSequence = list22; @@ -20394,21 +24542,26 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "Cacahuetes"; + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = "Cacahuetes"; questRoot3.Author = list41; - num = 7; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span22 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference28 = ref span22[0]; + num2 = 7; + List list42 = new List(num2); + CollectionsMarshal.SetCount(list42, num2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference28 = ref span42[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list43)[0]; + index = 1; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + ref QuestStep reference29 = ref span43[num3]; QuestStep obj29 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -20423,25 +24576,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = 131; + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num4 = 0; + span44[num4] = 131; obj30.InTerritory = list44; skipConditions8.AetheryteShortcutIf = obj30; obj29.SkipConditions = skipConditions8; reference29 = obj29; obj28.Steps = list43; reference28 = obj28; - ref QuestSequence reference30 = ref span22[1]; + num++; + ref QuestSequence reference30 = ref span42[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - ref QuestStep reference31 = ref CollectionsMarshal.AsSpan(list45)[0]; + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + Span span45 = CollectionsMarshal.AsSpan(list45); + index = 0; + ref QuestStep reference31 = ref span45[index]; QuestStep obj32 = new QuestStep(EInteractionType.Combat, 1002296u, new Vector3(-139.42175f, 4.019726f, 205.0354f), 141) { AethernetShortcut = new AethernetShortcut @@ -20451,34 +24609,42 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = 1245u; + num4 = 1; + List list46 = new List(num4); + CollectionsMarshal.SetCount(list46, num4); + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = 1245u; obj32.KillEnemyDataIds = list46; reference31 = obj32; obj31.Steps = list45; reference30 = obj31; - ref QuestSequence reference32 = ref span22[2]; + num++; + ref QuestSequence reference32 = ref span42[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1002296u, new Vector3(-139.42175f, 4.019726f, 205.0354f), 141); + index = 1; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + Span span47 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + span47[num3] = new QuestStep(EInteractionType.Interact, 1002296u, new Vector3(-139.42175f, 4.019726f, 205.0354f), 141); obj33.Steps = list47; reference32 = obj33; - ref QuestSequence reference33 = ref span22[3]; + num++; + ref QuestSequence reference33 = ref span42[num]; QuestSequence obj34 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list48)[0]; + num3 = 1; + List list48 = new List(num3); + CollectionsMarshal.SetCount(list48, num3); + Span span48 = CollectionsMarshal.AsSpan(list48); + index = 0; + ref QuestStep reference34 = ref span48[index]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -20493,25 +24659,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = 131; + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num4 = 0; + span49[num4] = 131; obj36.InTerritory = list49; skipConditions9.AetheryteShortcutIf = obj36; obj35.SkipConditions = skipConditions9; reference34 = obj35; obj34.Steps = list48; reference33 = obj34; - ref QuestSequence reference35 = ref span22[4]; + num++; + ref QuestSequence reference35 = ref span42[num]; QuestSequence obj37 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001426u, new Vector3(27.206787f, 12.985352f, 51.83484f), 141) + index = 1; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span50[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001426u, new Vector3(27.206787f, 12.985352f, 51.83484f), 141) { AethernetShortcut = new AethernetShortcut { @@ -20521,29 +24692,35 @@ public static class AssemblyQuestLoader }; obj37.Steps = list50; reference35 = obj37; - ref QuestSequence reference36 = ref span22[5]; + num++; + ref QuestSequence reference36 = ref span42[num]; QuestSequence obj38 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1003945u, new Vector3(24.917969f, 13f, 50.156372f), 141) + num3 = 1; + List list51 = new List(num3); + CollectionsMarshal.SetCount(list51, num3); + Span span51 = CollectionsMarshal.AsSpan(list51); + index = 0; + span51[index] = new QuestStep(EInteractionType.Interact, 1003945u, new Vector3(24.917969f, 13f, 50.156372f), 141) { StopDistance = 5f }; obj38.Steps = list51; reference36 = obj38; - ref QuestSequence reference37 = ref span22[6]; + num++; + ref QuestSequence reference37 = ref span42[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - ref QuestStep reference38 = ref CollectionsMarshal.AsSpan(list52)[0]; + index = 1; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + ref QuestStep reference38 = ref span52[num3]; QuestStep obj40 = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -20553,10 +24730,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice + num4 = 1; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSGLA100_00261_Q1_000_160"), @@ -20574,21 +24753,26 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "Cacahuetes"; + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = "Cacahuetes"; questRoot4.Author = list54; - num = 6; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span23 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference39 = ref span23[0]; + num2 = 6; + List list55 = new List(num2); + CollectionsMarshal.SetCount(list55, num2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference39 = ref span55[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list56)[0]; + num3 = 1; + List list56 = new List(num3); + CollectionsMarshal.SetCount(list56, num3); + Span span56 = CollectionsMarshal.AsSpan(list56); + index = 0; + ref QuestStep reference40 = ref span56[index]; QuestStep obj42 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -20603,58 +24787,71 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = 131; + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span57[num4] = 131; obj43.InTerritory = list57; skipConditions10.AetheryteShortcutIf = obj43; obj42.SkipConditions = skipConditions10; reference40 = obj42; obj41.Steps = list56; reference39 = obj41; - ref QuestSequence reference41 = ref span23[1]; + num++; + ref QuestSequence reference41 = ref span55[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - ref QuestStep reference42 = ref CollectionsMarshal.AsSpan(list58)[0]; + index = 1; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + Span span58 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + ref QuestStep reference42 = ref span58[num3]; QuestStep obj45 = new QuestStep(EInteractionType.Combat, 1004224u, new Vector3(-220.93542f, -38.407475f, 63.91992f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = 1244u; + num4 = 1; + List list59 = new List(num4); + CollectionsMarshal.SetCount(list59, num4); + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = 1244u; obj45.KillEnemyDataIds = list59; reference42 = obj45; obj44.Steps = list58; reference41 = obj44; - ref QuestSequence reference43 = ref span23[2]; + num++; + ref QuestSequence reference43 = ref span55[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1004224u, new Vector3(-220.93542f, -38.407475f, 63.91992f), 145); + num3 = 1; + List list60 = new List(num3); + CollectionsMarshal.SetCount(list60, num3); + Span span60 = CollectionsMarshal.AsSpan(list60); + index = 0; + span60[index] = new QuestStep(EInteractionType.Interact, 1004224u, new Vector3(-220.93542f, -38.407475f, 63.91992f), 145); obj46.Steps = list60; reference43 = obj46; - ref QuestSequence reference44 = ref span23[3]; + num++; + ref QuestSequence reference44 = ref span55[num]; QuestSequence obj47 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list61)[0]; + index = 1; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + ref QuestStep reference45 = ref span61[num3]; QuestStep obj48 = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -20669,25 +24866,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - CollectionsMarshal.AsSpan(list62)[0] = 131; + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num4 = 0; + span62[num4] = 131; obj49.InTerritory = list62; skipConditions11.AetheryteShortcutIf = obj49; obj48.SkipConditions = skipConditions11; reference45 = obj48; obj47.Steps = list61; reference44 = obj47; - ref QuestSequence reference46 = ref span23[4]; + num++; + ref QuestSequence reference46 = ref span55[num]; QuestSequence obj50 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004091u, new Vector3(24.12439f, 7.1999984f, -102.76953f), 130) + num3 = 1; + List list63 = new List(num3); + CollectionsMarshal.SetCount(list63, num3); + Span span63 = CollectionsMarshal.AsSpan(list63); + index = 0; + span63[index] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004091u, new Vector3(24.12439f, 7.1999984f, -102.76953f), 130) { AethernetShortcut = new AethernetShortcut { @@ -20697,15 +24899,18 @@ public static class AssemblyQuestLoader }; obj50.Steps = list63; reference46 = obj50; - ref QuestSequence reference47 = ref span23[5]; + num++; + ref QuestSequence reference47 = ref span55[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + index = 1; + List list64 = new List(index); + CollectionsMarshal.SetCount(list64, index); + Span span64 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span64[num3] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AethernetShortcut = new AethernetShortcut { @@ -20723,21 +24928,26 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "Cacahuetes"; + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span65[num2] = "Cacahuetes"; questRoot5.Author = list65; - num = 8; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span24 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference48 = ref span24[0]; + num2 = 8; + List list66 = new List(num2); + CollectionsMarshal.SetCount(list66, num2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference48 = ref span66[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - ref QuestStep reference49 = ref CollectionsMarshal.AsSpan(list67)[0]; + num3 = 1; + List list67 = new List(num3); + CollectionsMarshal.SetCount(list67, num3); + Span span67 = CollectionsMarshal.AsSpan(list67); + index = 0; + ref QuestStep reference49 = ref span67[index]; QuestStep obj53 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -20752,117 +24962,153 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = 131; + num4 = 1; + List list68 = new List(num4); + CollectionsMarshal.SetCount(list68, num4); + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = 131; obj54.InTerritory = list68; skipConditions12.AetheryteShortcutIf = obj54; obj53.SkipConditions = skipConditions12; reference49 = obj53; obj52.Steps = list67; reference48 = obj52; - ref QuestSequence reference50 = ref span24[1]; + num++; + ref QuestSequence reference50 = ref span66[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1004140u, new Vector3(-72.34308f, -12.372956f, -69.13867f), 141) + index = 1; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + Span span69 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span69[num3] = new QuestStep(EInteractionType.Interact, 1004140u, new Vector3(-72.34308f, -12.372956f, -69.13867f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj55.Steps = list69; reference50 = obj55; - ref QuestSequence reference51 = ref span24[2]; + num++; + ref QuestSequence reference51 = ref span66[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span25 = CollectionsMarshal.AsSpan(list70); - ref QuestStep reference52 = ref span25[0]; + num3 = 3; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + Span span70 = CollectionsMarshal.AsSpan(list70); + index = 0; + ref QuestStep reference52 = ref span70[index]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1001462u, new Vector3(-93.33948f, -11.367981f, -41.397766f), 141); - num3 = 6; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - Span span26 = CollectionsMarshal.AsSpan(list71); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num4 = 0; + span71[num4] = null; + num4++; + span71[num4] = null; + num4++; + span71[num4] = null; + num4++; + span71[num4] = null; + num4++; + span71[num4] = null; + num4++; + span71[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list71; reference52 = questStep3; - ref QuestStep reference53 = ref span25[1]; + index++; + ref QuestStep reference53 = ref span70[index]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1001438u, new Vector3(-30.838562f, -1.0332576f, -145.67792f), 141); - num3 = 6; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span27 = CollectionsMarshal.AsSpan(list72); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list72 = new List(num4); + CollectionsMarshal.SetCount(list72, num4); + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span72[index2] = null; + index2++; + span72[index2] = null; + index2++; + span72[index2] = null; + index2++; + span72[index2] = null; + index2++; + span72[index2] = null; + index2++; + span72[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list72; reference53 = questStep4; - ref QuestStep reference54 = ref span25[2]; + index++; + ref QuestStep reference54 = ref span70[index]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2001434u, new Vector3(-115.77026f, 0.015197754f, -149.24854f), 141); - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span28 = CollectionsMarshal.AsSpan(list73); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num4 = 0; + span73[num4] = null; + num4++; + span73[num4] = null; + num4++; + span73[num4] = null; + num4++; + span73[num4] = null; + num4++; + span73[num4] = null; + num4++; + span73[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list73; reference54 = questStep5; obj56.Steps = list70; reference51 = obj56; - ref QuestSequence reference55 = ref span24[3]; + num++; + ref QuestSequence reference55 = ref span66[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1004140u, new Vector3(-72.34308f, -12.372956f, -69.13867f), 141); + index = 1; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + Span span74 = CollectionsMarshal.AsSpan(list74); + num3 = 0; + span74[num3] = new QuestStep(EInteractionType.Interact, 1004140u, new Vector3(-72.34308f, -12.372956f, -69.13867f), 141); obj57.Steps = list74; reference55 = obj57; - ref QuestSequence reference56 = ref span24[4]; + num++; + ref QuestSequence reference56 = ref span66[num]; QuestSequence obj58 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + num3 = 1; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span75 = CollectionsMarshal.AsSpan(list75); + index = 0; + span75[index] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj58.Steps = list75; reference56 = obj58; - ref QuestSequence reference57 = ref span24[5]; + num++; + ref QuestSequence reference57 = ref span66[num]; QuestSequence obj59 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list76)[0]; + index = 1; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + Span span76 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + ref QuestStep reference58 = ref span76[num3]; QuestStep obj60 = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AethernetShortcut = new AethernetShortcut @@ -20871,10 +25117,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - num3 = 1; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = new DialogueChoice + num4 = 1; + List list77 = new List(num4); + CollectionsMarshal.SetCount(list77, num4); + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSGLA200_00263_Q1_000_124"), @@ -20884,15 +25132,18 @@ public static class AssemblyQuestLoader reference58 = obj60; obj59.Steps = list76; reference57 = obj59; - ref QuestSequence reference59 = ref span24[6]; + num++; + ref QuestSequence reference59 = ref span66[num]; QuestSequence obj61 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004092u, new Vector3(-241.16882f, 32.47634f, 398.9165f), 140) + num3 = 1; + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + Span span78 = CollectionsMarshal.AsSpan(list78); + index = 0; + span78[index] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004092u, new Vector3(-241.16882f, 32.47634f, 398.9165f), 140) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -20903,15 +25154,18 @@ public static class AssemblyQuestLoader }; obj61.Steps = list78; reference59 = obj61; - ref QuestSequence reference60 = ref span24[7]; + num++; + ref QuestSequence reference60 = ref span66[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + index = 1; + List list79 = new List(index); + CollectionsMarshal.SetCount(list79, index); + Span span79 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span79[num3] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -20930,21 +25184,26 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "Cacahuetes"; + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = "Cacahuetes"; questRoot6.Author = list80; - num = 7; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span29 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference61 = ref span29[0]; + num2 = 7; + List list81 = new List(num2); + CollectionsMarshal.SetCount(list81, num2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference61 = ref span81[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - ref QuestStep reference62 = ref CollectionsMarshal.AsSpan(list82)[0]; + num3 = 1; + List list82 = new List(num3); + CollectionsMarshal.SetCount(list82, num3); + Span span82 = CollectionsMarshal.AsSpan(list82); + index = 0; + ref QuestStep reference62 = ref span82[index]; QuestStep obj64 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -20959,25 +25218,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = 131; + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num4 = 0; + span83[num4] = 131; obj65.InTerritory = list83; skipConditions13.AetheryteShortcutIf = obj65; obj64.SkipConditions = skipConditions13; reference62 = obj64; obj63.Steps = list82; reference61 = obj63; - ref QuestSequence reference63 = ref span29[1]; + num++; + ref QuestSequence reference63 = ref span81[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list84)[0]; + index = 1; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + Span span84 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + ref QuestStep reference64 = ref span84[num3]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, 1004225u, new Vector3(62.974f, 54.60642f, 284.90112f), 140) { Fly = true, @@ -20988,34 +25252,42 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = 1243u; + num4 = 1; + List list85 = new List(num4); + CollectionsMarshal.SetCount(list85, num4); + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = 1243u; obj67.KillEnemyDataIds = list85; reference64 = obj67; obj66.Steps = list84; reference63 = obj66; - ref QuestSequence reference65 = ref span29[2]; + num++; + ref QuestSequence reference65 = ref span81[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1004225u, new Vector3(62.974f, 54.60642f, 284.90112f), 140); + num3 = 1; + List list86 = new List(num3); + CollectionsMarshal.SetCount(list86, num3); + Span span86 = CollectionsMarshal.AsSpan(list86); + index = 0; + span86[index] = new QuestStep(EInteractionType.Interact, 1004225u, new Vector3(62.974f, 54.60642f, 284.90112f), 140); obj68.Steps = list86; reference65 = obj68; - ref QuestSequence reference66 = ref span29[3]; + num++; + ref QuestSequence reference66 = ref span81[num]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + index = 1; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + Span span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -21026,34 +25298,42 @@ public static class AssemblyQuestLoader }; obj69.Steps = list87; reference66 = obj69; - ref QuestSequence reference67 = ref span29[4]; + num++; + ref QuestSequence reference67 = ref span81[num]; QuestSequence obj70 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131); + num3 = 1; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + Span span88 = CollectionsMarshal.AsSpan(list88); + index = 0; + span88[index] = new QuestStep(EInteractionType.Interact, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131); obj70.Steps = list88; reference67 = obj70; - ref QuestSequence reference68 = ref span29[5]; + num++; + ref QuestSequence reference68 = ref span81[num]; QuestSequence obj71 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list89)[0]; + index = 1; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + Span span89 = CollectionsMarshal.AsSpan(list89); + num3 = 0; + ref QuestStep reference69 = ref span89[num3]; QuestStep obj72 = new QuestStep(EInteractionType.SinglePlayerDuty, 1004141u, new Vector3(-520.5005f, -21.460285f, 123.46069f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = new DialogueChoice + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num4 = 0; + span90[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSGLA250_00264_Q1_000_170"), @@ -21063,15 +25343,18 @@ public static class AssemblyQuestLoader reference69 = obj72; obj71.Steps = list89; reference68 = obj71; - ref QuestSequence reference70 = ref span29[6]; + num++; + ref QuestSequence reference70 = ref span81[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + num3 = 1; + List list91 = new List(num3); + CollectionsMarshal.SetCount(list91, num3); + Span span91 = CollectionsMarshal.AsSpan(list91); + index = 0; + span91[index] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -21090,21 +25373,26 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "Cacahuetes"; + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = "Cacahuetes"; questRoot7.Author = list92; - num = 6; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span30 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference71 = ref span30[0]; + num2 = 6; + List list93 = new List(num2); + CollectionsMarshal.SetCount(list93, num2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference71 = ref span93[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list94)[0]; + index = 1; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + Span span94 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + ref QuestStep reference72 = ref span94[num3]; QuestStep obj75 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -21119,25 +25407,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = 131; + num4 = 1; + List list95 = new List(num4); + CollectionsMarshal.SetCount(list95, num4); + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = 131; obj76.InTerritory = list95; skipConditions14.AetheryteShortcutIf = obj76; obj75.SkipConditions = skipConditions14; reference72 = obj75; obj74.Steps = list94; reference71 = obj74; - ref QuestSequence reference73 = ref span30[1]; + num++; + ref QuestSequence reference73 = ref span93[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list96)[0]; + num3 = 1; + List list96 = new List(num3); + CollectionsMarshal.SetCount(list96, num3); + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + ref QuestStep reference74 = ref span96[index]; QuestStep obj78 = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AethernetShortcut = new AethernetShortcut @@ -21146,10 +25439,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Uldah } }; - num3 = 1; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - CollectionsMarshal.AsSpan(list97)[0] = new DialogueChoice + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num4 = 0; + span97[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSGLA300_00265_Q1_000_40"), @@ -21159,16 +25454,18 @@ public static class AssemblyQuestLoader reference74 = obj78; obj77.Steps = list96; reference73 = obj77; - ref QuestSequence reference75 = ref span30[2]; + num++; + ref QuestSequence reference75 = ref span93[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - Span span31 = CollectionsMarshal.AsSpan(list98); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(235.23369f, 2.747214f, 673.64215f), 141) + index = 5; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span98[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(235.23369f, 2.747214f, 673.64215f), 141) { AethernetShortcut = new AethernetShortcut { @@ -21183,7 +25480,8 @@ public static class AssemblyQuestLoader } } }; - span31[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) + num3++; + span98[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) { Aetheryte = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -21194,7 +25492,8 @@ public static class AssemblyQuestLoader } } }; - span31[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(140.30618f, 4.2185926f, -585.2695f), 146) + num3++; + span98[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(140.30618f, 4.2185926f, -585.2695f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -21205,47 +25504,64 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference76 = ref span31[3]; + num3++; + ref QuestStep reference76 = ref span98[num3]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2001455u, new Vector3(28.091797f, 6.9733276f, -611.2917f), 146); - num3 = 6; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span32 = CollectionsMarshal.AsSpan(list99); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list99 = new List(num4); + CollectionsMarshal.SetCount(list99, num4); + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = null; + index2++; + span99[index2] = null; + index2++; + span99[index2] = null; + index2++; + span99[index2] = null; + index2++; + span99[index2] = null; + index2++; + span99[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list99; reference76 = questStep6; - ref QuestStep reference77 = ref span31[4]; + num3++; + ref QuestStep reference77 = ref span98[num3]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2001435u, new Vector3(101.823364f, 7.248047f, -534.56934f), 146); - num3 = 6; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - Span span33 = CollectionsMarshal.AsSpan(list100); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num4 = 0; + span100[num4] = null; + num4++; + span100[num4] = null; + num4++; + span100[num4] = null; + num4++; + span100[num4] = null; + num4++; + span100[num4] = null; + num4++; + span100[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list100; reference77 = questStep7; obj79.Steps = list98; reference75 = obj79; - ref QuestSequence reference78 = ref span30[3]; + num++; + ref QuestSequence reference78 = ref span93[num]; QuestSequence obj80 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - Span span34 = CollectionsMarshal.AsSpan(list101); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(164.75665f, 3.3963587f, -585.49005f), 146); - span34[1] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + num3 = 2; + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + Span span101 = CollectionsMarshal.AsSpan(list101); + index = 0; + span101[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(164.75665f, 3.3963587f, -585.49005f), 146); + index++; + span101[index] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -21256,15 +25572,18 @@ public static class AssemblyQuestLoader }; obj80.Steps = list101; reference78 = obj80; - ref QuestSequence reference79 = ref span30[4]; + num++; + ref QuestSequence reference79 = ref span93[num]; QuestSequence obj81 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004142u, new Vector3(-19.97406f, -30.999985f, -33.951355f), 145) + index = 1; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + Span span102 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span102[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004142u, new Vector3(-19.97406f, -30.999985f, -33.951355f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -21274,15 +25593,18 @@ public static class AssemblyQuestLoader }; obj81.Steps = list102; reference79 = obj81; - ref QuestSequence reference80 = ref span30[5]; + num++; + ref QuestSequence reference80 = ref span93[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + num3 = 1; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + Span span103 = CollectionsMarshal.AsSpan(list103); + index = 0; + span103[index] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -21301,37 +25623,47 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "Cacahuetes"; + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = "Cacahuetes"; questRoot8.Author = list104; - num = 2; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span35 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference81 = ref span35[0]; + num2 = 2; + List list105 = new List(num2); + CollectionsMarshal.SetCount(list105, num2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference81 = ref span105[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000946u, new Vector3(-61.142883f, 42.299698f, -164.0498f), 128); + index = 1; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + Span span106 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span106[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000946u, new Vector3(-61.142883f, 42.299698f, -164.0498f), 128); obj83.Steps = list106; reference81 = obj83; - ref QuestSequence reference82 = ref span35[1]; + num++; + ref QuestSequence reference82 = ref span105[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list107)[0]; - QuestStep questStep8 = new QuestStep(EInteractionType.CompleteQuest, 1000947u, new Vector3(-54.64258f, 44f, -151.23218f), 128); num3 = 1; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new DialogueChoice + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + Span span107 = CollectionsMarshal.AsSpan(list107); + index = 0; + ref QuestStep reference83 = ref span107[index]; + QuestStep questStep8 = new QuestStep(EInteractionType.CompleteQuest, 1000947u, new Vector3(-54.64258f, 44f, -151.23218f), 128); + num4 = 1; + List list108 = new List(num4); + CollectionsMarshal.SetCount(list108, num4); + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSCUL011_00271_Q1_000_1") @@ -21347,33 +25679,40 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = "liza"; questRoot9.Author = list109; - num = 3; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span36 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference84 = ref span36[0]; + num2 = 3; + List list110 = new List(num2); + CollectionsMarshal.SetCount(list110, num2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference84 = ref span110[num]; QuestSequence obj85 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + index = 1; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + Span span111 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span111[num3] = new QuestStep(EInteractionType.AcceptQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj85.Steps = list111; reference84 = obj85; - ref QuestSequence reference85 = ref span36[1]; + num++; + ref QuestSequence reference85 = ref span110[num]; QuestSequence obj86 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span37 = CollectionsMarshal.AsSpan(list112); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.7922537f, 8.206551f, -274.32318f), 141) + num3 = 3; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + Span span112 = CollectionsMarshal.AsSpan(list112); + index = 0; + span112[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.7922537f, 8.206551f, -274.32318f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -21393,37 +25732,45 @@ public static class AssemblyQuestLoader } } }; - span37[1] = new QuestStep(EInteractionType.AcceptQuest, 1001426u, new Vector3(123.33862f, 30.999996f, -384.9394f), 141) + index++; + span112[index] = new QuestStep(EInteractionType.AcceptQuest, 1001426u, new Vector3(123.33862f, 30.999996f, -384.9394f), 141) { PickUpQuestId = new QuestId(638) }; - span37[2] = new QuestStep(EInteractionType.Interact, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141); + index++; + span112[index] = new QuestStep(EInteractionType.Interact, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141); obj86.Steps = list112; reference85 = obj86; - ref QuestSequence reference86 = ref span36[2]; + num++; + ref QuestSequence reference86 = ref span110[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - Span span38 = CollectionsMarshal.AsSpan(list113); - span38[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + index = 5; + List list113 = new List(index); + CollectionsMarshal.SetCount(list113, index); + Span span113 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span113[num3] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span38[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num3++; + span113[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num3++; + span113[num3] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span38[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num3++; + span113[num3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span38[4] = new QuestStep(EInteractionType.CompleteQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + num3++; + span113[num3] = new QuestStep(EInteractionType.CompleteQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj87.Steps = list113; reference86 = obj87; questRoot9.QuestSequence = list110; @@ -21433,37 +25780,47 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "Cacahuetes"; + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = "Cacahuetes"; questRoot10.Author = list114; - num = 2; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span39 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference87 = ref span39[0]; + num2 = 2; + List list115 = new List(num2); + CollectionsMarshal.SetCount(list115, num2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference87 = ref span115[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000998u, new Vector3(-51.651794f, 42.79979f, 190.41736f), 128); + num3 = 1; + List list116 = new List(num3); + CollectionsMarshal.SetCount(list116, num3); + Span span116 = CollectionsMarshal.AsSpan(list116); + index = 0; + span116[index] = new QuestStep(EInteractionType.AcceptQuest, 1000998u, new Vector3(-51.651794f, 42.79979f, 190.41736f), 128); obj88.Steps = list116; reference87 = obj88; - ref QuestSequence reference88 = ref span39[1]; + num++; + ref QuestSequence reference88 = ref span115[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - ref QuestStep reference89 = ref CollectionsMarshal.AsSpan(list117)[0]; + index = 1; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + Span span117 = CollectionsMarshal.AsSpan(list117); + num3 = 0; + ref QuestStep reference89 = ref span117[num3]; QuestStep questStep9 = new QuestStep(EInteractionType.CompleteQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128); - num3 = 1; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = new DialogueChoice + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num4 = 0; + span118[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARM011_00273_Q1_000_1") @@ -21479,37 +25836,47 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "liza"; + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span119[num2] = "liza"; questRoot11.Author = list119; - num = 2; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span40 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference90 = ref span40[0]; + num2 = 2; + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference90 = ref span120[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131); + num3 = 1; + List list121 = new List(num3); + CollectionsMarshal.SetCount(list121, num3); + Span span121 = CollectionsMarshal.AsSpan(list121); + index = 0; + span121[index] = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131); obj90.Steps = list121; reference90 = obj90; - ref QuestSequence reference91 = ref span40[1]; + num++; + ref QuestSequence reference91 = ref span120[num]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - ref QuestStep reference92 = ref CollectionsMarshal.AsSpan(list122)[0]; + index = 1; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + Span span122 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + ref QuestStep reference92 = ref span122[num3]; QuestStep questStep10 = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131); - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = new DialogueChoice + num4 = 1; + List list123 = new List(num4); + CollectionsMarshal.SetCount(list123, num4); + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLA011_00285_Q2_000_1") @@ -21526,33 +25893,40 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "liza"; + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = "liza"; questRoot12.Author = list124; - num = 3; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - Span span41 = CollectionsMarshal.AsSpan(list125); - ref QuestSequence reference93 = ref span41[0]; + num2 = 3; + List list125 = new List(num2); + CollectionsMarshal.SetCount(list125, num2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num = 0; + ref QuestSequence reference93 = ref span125[num]; QuestSequence obj92 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131); + num3 = 1; + List list126 = new List(num3); + CollectionsMarshal.SetCount(list126, num3); + Span span126 = CollectionsMarshal.AsSpan(list126); + index = 0; + span126[index] = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131); obj92.Steps = list126; reference93 = obj92; - ref QuestSequence reference94 = ref span41[1]; + num++; + ref QuestSequence reference94 = ref span125[num]; QuestSequence obj93 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - Span span42 = CollectionsMarshal.AsSpan(list127); - ref QuestStep reference95 = ref span42[0]; + index = 3; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + Span span127 = CollectionsMarshal.AsSpan(list127); + num3 = 0; + ref QuestStep reference95 = ref span127[num3]; QuestStep obj94 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.13088f, 3.889354f, -166.51999f), 130) { AethernetShortcut = new AethernetShortcut @@ -21563,122 +25937,163 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions15 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = 141; + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num4 = 0; + span128[num4] = 141; skipStepConditions6.InTerritory = list128; skipConditions15.StepIf = skipStepConditions6; obj94.SkipConditions = skipConditions15; reference95 = obj94; - ref QuestStep reference96 = ref span42[1]; + num3++; + ref QuestStep reference96 = ref span127[num3]; QuestStep obj95 = new QuestStep(EInteractionType.Combat, null, new Vector3(-116.10664f, 10.801613f, 276.979f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - Span span43 = CollectionsMarshal.AsSpan(list129); - ref ComplexCombatData reference97 = ref span43[0]; + num4 = 2; + List list129 = new List(num4); + CollectionsMarshal.SetCount(list129, num4); + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + ref ComplexCombatData reference97 = ref span129[index2]; ComplexCombatData obj96 = new ComplexCombatData { DataId = 351u, MinimumKillCount = 3u }; - int num4 = 6; - List list130 = new List(num4); - CollectionsMarshal.SetCount(list130, num4); - Span span44 = CollectionsMarshal.AsSpan(list130); - span44[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = null; + int num5 = 6; + List list130 = new List(num5); + CollectionsMarshal.SetCount(list130, num5); + Span span130 = CollectionsMarshal.AsSpan(list130); + int num6 = 0; + span130[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span130[num6] = null; + num6++; + span130[num6] = null; + num6++; + span130[num6] = null; + num6++; + span130[num6] = null; + num6++; + span130[num6] = null; obj96.CompletionQuestVariablesFlags = list130; reference97 = obj96; - ref ComplexCombatData reference98 = ref span43[1]; + index2++; + ref ComplexCombatData reference98 = ref span129[index2]; ComplexCombatData obj97 = new ComplexCombatData { DataId = 141u, MinimumKillCount = 3u }; - num4 = 6; - List list131 = new List(num4); - CollectionsMarshal.SetCount(list131, num4); - Span span45 = CollectionsMarshal.AsSpan(list131); - span45[0] = null; - span45[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = null; + num6 = 6; + List list131 = new List(num6); + CollectionsMarshal.SetCount(list131, num6); + Span span131 = CollectionsMarshal.AsSpan(list131); + num5 = 0; + span131[num5] = null; + num5++; + span131[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span131[num5] = null; + num5++; + span131[num5] = null; + num5++; + span131[num5] = null; + num5++; + span131[num5] = null; obj97.CompletionQuestVariablesFlags = list131; reference98 = obj97; obj95.ComplexCombatData = list129; - num3 = 6; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - Span span46 = CollectionsMarshal.AsSpan(list132); - span46[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span46[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = null; + index2 = 6; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num4 = 0; + span132[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span132[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span132[num4] = null; + num4++; + span132[num4] = null; + num4++; + span132[num4] = null; + num4++; + span132[num4] = null; obj95.CompletionQuestVariablesFlags = list132; reference96 = obj95; - ref QuestStep reference99 = ref span42[2]; + num3++; + ref QuestStep reference99 = ref span127[num3]; QuestStep obj98 = new QuestStep(EInteractionType.Combat, null, new Vector3(39.635372f, 3.2401803f, 273.41232f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - ref ComplexCombatData reference100 = ref CollectionsMarshal.AsSpan(list133)[0]; + num4 = 1; + List list133 = new List(num4); + CollectionsMarshal.SetCount(list133, num4); + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + ref ComplexCombatData reference100 = ref span133[index2]; ComplexCombatData obj99 = new ComplexCombatData { DataId = 205u, MinimumKillCount = 3u }; - num4 = 6; - List list134 = new List(num4); - CollectionsMarshal.SetCount(list134, num4); - Span span47 = CollectionsMarshal.AsSpan(list134); - span47[0] = null; - span47[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = null; + num5 = 6; + List list134 = new List(num5); + CollectionsMarshal.SetCount(list134, num5); + Span span134 = CollectionsMarshal.AsSpan(list134); + num6 = 0; + span134[num6] = null; + num6++; + span134[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span134[num6] = null; + num6++; + span134[num6] = null; + num6++; + span134[num6] = null; + num6++; + span134[num6] = null; obj99.CompletionQuestVariablesFlags = list134; reference100 = obj99; obj98.ComplexCombatData = list133; - num3 = 6; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - Span span48 = CollectionsMarshal.AsSpan(list135); - span48[0] = null; - span48[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = null; + index2 = 6; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num4 = 0; + span135[num4] = null; + num4++; + span135[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span135[num4] = null; + num4++; + span135[num4] = null; + num4++; + span135[num4] = null; + num4++; + span135[num4] = null; obj98.CompletionQuestVariablesFlags = list135; reference99 = obj98; obj93.Steps = list127; reference94 = obj93; - ref QuestSequence reference101 = ref span41[2]; + num++; + ref QuestSequence reference101 = ref span125[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + num3 = 1; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + Span span136 = CollectionsMarshal.AsSpan(list136); + index = 0; + span136[index] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -21696,21 +26111,26 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "Cacahuetes"; + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span137[num2] = "Cacahuetes"; questRoot13.Author = list137; - num = 7; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span49 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference102 = ref span49[0]; + num2 = 7; + List list138 = new List(num2); + CollectionsMarshal.SetCount(list138, num2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference102 = ref span138[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - ref QuestStep reference103 = ref CollectionsMarshal.AsSpan(list139)[0]; + index = 1; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + Span span139 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + ref QuestStep reference103 = ref span139[num3]; QuestStep obj102 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -21725,25 +26145,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - CollectionsMarshal.AsSpan(list140)[0] = 131; + num4 = 1; + List list140 = new List(num4); + CollectionsMarshal.SetCount(list140, num4); + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = 131; obj103.InTerritory = list140; skipConditions16.AetheryteShortcutIf = obj103; obj102.SkipConditions = skipConditions16; reference103 = obj102; obj101.Steps = list139; reference102 = obj101; - ref QuestSequence reference104 = ref span49[1]; + num++; + ref QuestSequence reference104 = ref span138[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - ref QuestStep reference105 = ref CollectionsMarshal.AsSpan(list141)[0]; + num3 = 1; + List list141 = new List(num3); + CollectionsMarshal.SetCount(list141, num3); + Span span141 = CollectionsMarshal.AsSpan(list141); + index = 0; + ref QuestStep reference105 = ref span141[index]; QuestStep obj105 = new QuestStep(EInteractionType.Combat, 1002296u, new Vector3(-139.42175f, 4.019726f, 205.0354f), 141) { AethernetShortcut = new AethernetShortcut @@ -21753,34 +26178,42 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = 1245u; + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num4 = 0; + span142[num4] = 1245u; obj105.KillEnemyDataIds = list142; reference105 = obj105; obj104.Steps = list141; reference104 = obj104; - ref QuestSequence reference106 = ref span49[2]; + num++; + ref QuestSequence reference106 = ref span138[num]; QuestSequence obj106 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1002296u, new Vector3(-139.42175f, 4.019726f, 205.0354f), 141); + index = 1; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + Span span143 = CollectionsMarshal.AsSpan(list143); + num3 = 0; + span143[num3] = new QuestStep(EInteractionType.Interact, 1002296u, new Vector3(-139.42175f, 4.019726f, 205.0354f), 141); obj106.Steps = list143; reference106 = obj106; - ref QuestSequence reference107 = ref span49[3]; + num++; + ref QuestSequence reference107 = ref span138[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list144)[0]; + num3 = 1; + List list144 = new List(num3); + CollectionsMarshal.SetCount(list144, num3); + Span span144 = CollectionsMarshal.AsSpan(list144); + index = 0; + ref QuestStep reference108 = ref span144[index]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -21795,25 +26228,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list145 = new List(num3); - CollectionsMarshal.SetCount(list145, num3); - CollectionsMarshal.AsSpan(list145)[0] = 131; + num4 = 1; + List list145 = new List(num4); + CollectionsMarshal.SetCount(list145, num4); + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = 131; obj109.InTerritory = list145; skipConditions17.AetheryteShortcutIf = obj109; obj108.SkipConditions = skipConditions17; reference108 = obj108; obj107.Steps = list144; reference107 = obj107; - ref QuestSequence reference109 = ref span49[4]; + num++; + ref QuestSequence reference109 = ref span138[num]; QuestSequence obj110 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001756u, new Vector3(27.206787f, 12.985352f, 51.83484f), 141) + index = 1; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + Span span146 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span146[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001756u, new Vector3(27.206787f, 12.985352f, 51.83484f), 141) { AethernetShortcut = new AethernetShortcut { @@ -21823,29 +26261,35 @@ public static class AssemblyQuestLoader }; obj110.Steps = list146; reference109 = obj110; - ref QuestSequence reference110 = ref span49[5]; + num++; + ref QuestSequence reference110 = ref span138[num]; QuestSequence obj111 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1003945u, new Vector3(24.917969f, 13f, 50.156372f), 141) + num3 = 1; + List list147 = new List(num3); + CollectionsMarshal.SetCount(list147, num3); + Span span147 = CollectionsMarshal.AsSpan(list147); + index = 0; + span147[index] = new QuestStep(EInteractionType.Interact, 1003945u, new Vector3(24.917969f, 13f, 50.156372f), 141) { StopDistance = 5f }; obj111.Steps = list147; reference110 = obj111; - ref QuestSequence reference111 = ref span49[6]; + num++; + ref QuestSequence reference111 = ref span138[num]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list148)[0]; + index = 1; + List list148 = new List(index); + CollectionsMarshal.SetCount(list148, index); + Span span148 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + ref QuestStep reference112 = ref span148[num3]; QuestStep obj113 = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -21855,10 +26299,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - num3 = 1; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = new DialogueChoice + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num4 = 0; + span149[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSGLA101_00288_Q1_000_160"), @@ -21876,21 +26322,26 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "Cacahuetes"; + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span150[num2] = "Cacahuetes"; questRoot14.Author = list150; - num = 2; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span50 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference113 = ref span50[0]; + num2 = 2; + List list151 = new List(num2); + CollectionsMarshal.SetCount(list151, num2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference113 = ref span151[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - ref QuestStep reference114 = ref CollectionsMarshal.AsSpan(list152)[0]; + num3 = 1; + List list152 = new List(num3); + CollectionsMarshal.SetCount(list152, num3); + Span span152 = CollectionsMarshal.AsSpan(list152); + index = 0; + ref QuestStep reference114 = ref span152[index]; QuestStep obj115 = new QuestStep(EInteractionType.AcceptQuest, 1000995u, new Vector3(-52.018066f, 42.799637f, 192.2179f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -21905,17 +26356,21 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = 128; + num4 = 1; + List list153 = new List(num4); + CollectionsMarshal.SetCount(list153, num4); + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = 128; obj116.InTerritory = list153; skipConditions18.AetheryteShortcutIf = obj116; obj115.SkipConditions = skipConditions18; - num3 = 1; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = new DialogueChoice + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num4 = 0; + span154[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSBSM011_00291_Q1_000_1") @@ -21924,20 +26379,25 @@ public static class AssemblyQuestLoader reference114 = obj115; obj114.Steps = list152; reference113 = obj114; - ref QuestSequence reference115 = ref span50[1]; + num++; + ref QuestSequence reference115 = ref span151[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list155)[0]; + index = 1; + List list155 = new List(index); + CollectionsMarshal.SetCount(list155, index); + Span span155 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + ref QuestStep reference116 = ref span155[num3]; QuestStep questStep11 = new QuestStep(EInteractionType.CompleteQuest, 1000997u, new Vector3(-31.265808f, 44.49997f, 185.53442f), 128); - num3 = 1; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = new DialogueChoice + num4 = 1; + List list156 = new List(num4); + CollectionsMarshal.SetCount(list156, num4); + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSBSM011_00291_Q1_000_1") @@ -21958,13 +26418,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -21972,19 +26435,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001500u, new Vector3(81.77307f, 1.051391f, 311.23828f), 141); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001500u, new Vector3(81.77307f, 1.051391f, 311.23828f), 141); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(60.20499f, 0.9387207f, 265.01544f), 141) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(60.20499f, 0.9387207f, 265.01544f), 141) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -21992,14 +26459,16 @@ public static class AssemblyQuestLoader Position = new Vector3(59.662186f, 0.9387207f, 258.3517f) } }; - span2[1] = new QuestStep(EInteractionType.Interact, 1001455u, new Vector3(59.952637f, 0.99176025f, 255.8479f), 141) + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 1001455u, new Vector3(59.952637f, 0.99176025f, 255.8479f), 141) { StopDistance = 7f, DelaySecondsAtStart = 2f }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -22007,12 +26476,14 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-60.070023f, -3.6582303f, 160.2097f), 141) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-60.070023f, -3.6582303f, 160.2097f), 141) { Sprint = true }; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1001541u, new Vector3(-99.4126f, -11.39856f, -41.73346f), 141); + index2++; + span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001541u, new Vector3(-99.4126f, -11.39856f, -41.73346f), 141); obj3.Steps = list5; reference3 = obj3; questRoot.QuestSequence = list2; @@ -22022,24 +26493,30 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; + Span span6 = CollectionsMarshal.AsSpan(list6); + index = 0; + span6[index] = "liza"; questRoot2.Author = list6; - num = 3; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span4 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span4[0]; + index = 3; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + Span span7 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span7[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span4[1]; + num++; + ref QuestSequence reference5 = ref span7[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -22047,12 +26524,14 @@ public static class AssemblyQuestLoader num2 = 2; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = new QuestStep(EInteractionType.UseItem, 2000268u, new Vector3(25.680908f, 13.076904f, 47.80652f), 141) + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.UseItem, 2000268u, new Vector3(25.680908f, 13.076904f, 47.80652f), 141) { ItemId = 2000212u }; - ref QuestStep reference6 = ref span5[1]; + index2++; + ref QuestStep reference6 = ref span9[index2]; QuestStep obj6 = new QuestStep(EInteractionType.Combat, null, new Vector3(25.680908f, 13.076904f, 47.80652f), 141) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -22060,20 +26539,25 @@ public static class AssemblyQuestLoader int num3 = 1; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = 187u; + Span span10 = CollectionsMarshal.AsSpan(list10); + int index3 = 0; + span10[index3] = 187u; obj6.KillEnemyDataIds = list10; reference6 = obj6; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference7 = ref span4[2]; + num++; + ref QuestSequence reference7 = ref span7[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); obj7.Steps = list11; reference7 = obj7; questRoot2.QuestSequence = list7; @@ -22083,13 +26567,16 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "Cacahuetes"; + Span span12 = CollectionsMarshal.AsSpan(list12); + index = 0; + span12[index] = "Cacahuetes"; questRoot3.Author = list12; - num = 2; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span6 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference8 = ref span6[0]; + index = 2; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference8 = ref span13[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -22097,23 +26584,30 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128); + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128); obj8.Steps = list14; reference8 = obj8; - ref QuestSequence reference9 = ref span6[1]; + num++; + ref QuestSequence reference9 = ref span13[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - ref QuestStep reference10 = ref CollectionsMarshal.AsSpan(list15)[0]; + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + ref QuestStep reference10 = ref span15[num2]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128); - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice + index3 = 1; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span16[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSEXC011_00310_Q2_000_1") @@ -22130,15 +26624,18 @@ public static class AssemblyQuestLoader num = 2; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span7 = CollectionsMarshal.AsSpan(list17); - span7[0] = "liza"; - span7[1] = "Wigglez"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "liza"; + index++; + span17[index] = "Wigglez"; questRoot4.Author = list17; - num = 4; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span8 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference11 = ref span8[0]; + index = 4; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference11 = ref span18[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -22146,7 +26643,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list19)[0]; + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref QuestStep reference12 = ref span19[index2]; QuestStep obj11 = new QuestStep(EInteractionType.AcceptQuest, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -22164,27 +26663,34 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = 128; + Span span20 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span20[index3] = 128; obj12.InTerritory = list20; skipConditions.AetheryteShortcutIf = obj12; obj11.SkipConditions = skipConditions; reference12 = obj11; obj10.Steps = list19; reference11 = obj10; - ref QuestSequence reference13 = ref span8[1]; + num++; + ref QuestSequence reference13 = ref span18[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list21)[0]; + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + ref QuestStep reference14 = ref span21[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128); - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = new DialogueChoice + index3 = 1; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSEXC020_00311_Q2_000_1") @@ -22193,7 +26699,8 @@ public static class AssemblyQuestLoader reference14 = questStep2; obj13.Steps = list21; reference13 = obj13; - ref QuestSequence reference15 = ref span8[2]; + num++; + ref QuestSequence reference15 = ref span18[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 @@ -22201,8 +26708,9 @@ public static class AssemblyQuestLoader num2 = 3; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span9 = CollectionsMarshal.AsSpan(list23); - ref QuestStep reference16 = ref span9[0]; + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + ref QuestStep reference16 = ref span23[index2]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, null, new Vector3(31.662792f, 44.020653f, 146.94322f), 134) { AethernetShortcut = new AethernetShortcut @@ -22215,7 +26723,9 @@ public static class AssemblyQuestLoader num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - ref ComplexCombatData reference17 = ref CollectionsMarshal.AsSpan(list24)[0]; + Span span24 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + ref ComplexCombatData reference17 = ref span24[index3]; ComplexCombatData obj16 = new ComplexCombatData { DataId = 347u, @@ -22224,29 +26734,42 @@ public static class AssemblyQuestLoader int num4 = 6; List list25 = new List(num4); CollectionsMarshal.SetCount(list25, num4); - Span span10 = CollectionsMarshal.AsSpan(list25); - span10[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = null; + Span span25 = CollectionsMarshal.AsSpan(list25); + int num5 = 0; + span25[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span25[num5] = null; + num5++; + span25[num5] = null; + num5++; + span25[num5] = null; + num5++; + span25[num5] = null; + num5++; + span25[num5] = null; obj16.CompletionQuestVariablesFlags = list25; reference17 = obj16; obj15.ComplexCombatData = list24; - num3 = 6; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span11 = CollectionsMarshal.AsSpan(list26); - span11[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = null; + index3 = 6; + List list26 = new List(index3); + CollectionsMarshal.SetCount(list26, index3); + Span span26 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span26[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; obj15.CompletionQuestVariablesFlags = list26; reference16 = obj15; - ref QuestStep reference18 = ref span9[1]; + index2++; + ref QuestStep reference18 = ref span23[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(74.15681f, 45.953808f, 169.73499f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -22254,38 +26777,53 @@ public static class AssemblyQuestLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - ref ComplexCombatData reference19 = ref CollectionsMarshal.AsSpan(list27)[0]; + Span span27 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + ref ComplexCombatData reference19 = ref span27[index3]; ComplexCombatData obj18 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - num4 = 6; - List list28 = new List(num4); - CollectionsMarshal.SetCount(list28, num4); - Span span12 = CollectionsMarshal.AsSpan(list28); - span12[0] = null; - span12[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = null; + num5 = 6; + List list28 = new List(num5); + CollectionsMarshal.SetCount(list28, num5); + Span span28 = CollectionsMarshal.AsSpan(list28); + num4 = 0; + span28[num4] = null; + num4++; + span28[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span28[num4] = null; + num4++; + span28[num4] = null; + num4++; + span28[num4] = null; + num4++; + span28[num4] = null; obj18.CompletionQuestVariablesFlags = list28; reference19 = obj18; obj17.ComplexCombatData = list27; - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span13 = CollectionsMarshal.AsSpan(list29); - span13[0] = null; - span13[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = null; + index3 = 6; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span29[num3] = null; + num3++; + span29[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; obj17.CompletionQuestVariablesFlags = list29; reference18 = obj17; - ref QuestStep reference20 = ref span9[2]; + index2++; + ref QuestStep reference20 = ref span23[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(74.15681f, 45.953808f, 169.73499f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -22293,7 +26831,9 @@ public static class AssemblyQuestLoader num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - ref ComplexCombatData reference21 = ref CollectionsMarshal.AsSpan(list30)[0]; + Span span30 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + ref ComplexCombatData reference21 = ref span30[index3]; ComplexCombatData obj20 = new ComplexCombatData { DataId = 338u, @@ -22302,44 +26842,59 @@ public static class AssemblyQuestLoader num4 = 6; List list31 = new List(num4); CollectionsMarshal.SetCount(list31, num4); - Span span14 = CollectionsMarshal.AsSpan(list31); - span14[0] = null; - span14[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = null; + Span span31 = CollectionsMarshal.AsSpan(list31); + num5 = 0; + span31[num5] = null; + num5++; + span31[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span31[num5] = null; + num5++; + span31[num5] = null; + num5++; + span31[num5] = null; + num5++; + span31[num5] = null; obj20.CompletionQuestVariablesFlags = list31; reference21 = obj20; obj19.ComplexCombatData = list30; - num3 = 6; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span15 = CollectionsMarshal.AsSpan(list32); - span15[0] = null; - span15[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = null; + index3 = 6; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + Span span32 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span32[num3] = null; + num3++; + span32[num3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num3++; + span32[num3] = null; + num3++; + span32[num3] = null; + num3++; + span32[num3] = null; + num3++; + span32[num3] = null; obj19.CompletionQuestVariablesFlags = list32; reference20 = obj19; obj14.Steps = list23; reference15 = obj14; - ref QuestSequence reference22 = ref span8[3]; + num++; + ref QuestSequence reference22 = ref span18[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span16 = CollectionsMarshal.AsSpan(list33); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-55.5555f, 34.0616f, 163.5555f), 134) + index2 = 2; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-55.5555f, 34.0616f, 163.5555f), 134) { TargetTerritoryId = (ushort)128 }; - span16[1] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + num2++; + span33[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AethernetShortcut = new AethernetShortcut { @@ -22357,13 +26912,16 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; + Span span34 = CollectionsMarshal.AsSpan(list34); + index = 0; + span34[index] = "liza"; questRoot5.Author = list34; - num = 3; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span17 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference23 = ref span17[0]; + index = 3; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + Span span35 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference23 = ref span35[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -22371,7 +26929,9 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list36)[0]; + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + ref QuestStep reference24 = ref span36[index2]; QuestStep obj23 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -22389,23 +26949,27 @@ public static class AssemblyQuestLoader num3 = 1; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = 128; + Span span37 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span37[index3] = 128; obj24.InTerritory = list37; skipConditions2.AetheryteShortcutIf = obj24; obj23.SkipConditions = skipConditions2; reference24 = obj23; obj22.Steps = list36; reference23 = obj22; - ref QuestSequence reference25 = ref span17[1]; + num++; + ref QuestSequence reference25 = ref span35[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span18 = CollectionsMarshal.AsSpan(list38); - ref QuestStep reference26 = ref span18[0]; + index2 = 3; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + ref QuestStep reference26 = ref span38[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(31.662792f, 44.020653f, 146.94322f), 134) { AethernetShortcut = new AethernetShortcut @@ -22415,49 +26979,66 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - ref ComplexCombatData reference27 = ref CollectionsMarshal.AsSpan(list39)[0]; + index3 = 1; + List list39 = new List(index3); + CollectionsMarshal.SetCount(list39, index3); + Span span39 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + ref ComplexCombatData reference27 = ref span39[num3]; ComplexCombatData obj27 = new ComplexCombatData { DataId = 347u, MinimumKillCount = 3u }; - num4 = 6; - List list40 = new List(num4); - CollectionsMarshal.SetCount(list40, num4); - Span span19 = CollectionsMarshal.AsSpan(list40); - span19[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = null; + num5 = 6; + List list40 = new List(num5); + CollectionsMarshal.SetCount(list40, num5); + Span span40 = CollectionsMarshal.AsSpan(list40); + num4 = 0; + span40[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span40[num4] = null; + num4++; + span40[num4] = null; + num4++; + span40[num4] = null; + num4++; + span40[num4] = null; + num4++; + span40[num4] = null; obj27.CompletionQuestVariablesFlags = list40; reference27 = obj27; obj26.ComplexCombatData = list39; num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span20 = CollectionsMarshal.AsSpan(list41); - span20[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = null; + Span span41 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span41[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = null; obj26.CompletionQuestVariablesFlags = list41; reference26 = obj26; - ref QuestStep reference28 = ref span18[1]; + num2++; + ref QuestStep reference28 = ref span38[num2]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(74.15681f, 45.953808f, 169.73499f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - ref ComplexCombatData reference29 = ref CollectionsMarshal.AsSpan(list42)[0]; + index3 = 1; + List list42 = new List(index3); + CollectionsMarshal.SetCount(list42, index3); + Span span42 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + ref ComplexCombatData reference29 = ref span42[num3]; ComplexCombatData obj29 = new ComplexCombatData { DataId = 49u, @@ -22466,70 +27047,98 @@ public static class AssemblyQuestLoader num4 = 6; List list43 = new List(num4); CollectionsMarshal.SetCount(list43, num4); - Span span21 = CollectionsMarshal.AsSpan(list43); - span21[0] = null; - span21[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = null; + Span span43 = CollectionsMarshal.AsSpan(list43); + num5 = 0; + span43[num5] = null; + num5++; + span43[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span43[num5] = null; + num5++; + span43[num5] = null; + num5++; + span43[num5] = null; + num5++; + span43[num5] = null; obj29.CompletionQuestVariablesFlags = list43; reference29 = obj29; obj28.ComplexCombatData = list42; num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span22 = CollectionsMarshal.AsSpan(list44); - span22[0] = null; - span22[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = null; + Span span44 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span44[index3] = null; + index3++; + span44[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; obj28.CompletionQuestVariablesFlags = list44; reference28 = obj28; - ref QuestStep reference30 = ref span18[2]; + num2++; + ref QuestStep reference30 = ref span38[num2]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, null, new Vector3(74.15681f, 45.953808f, 169.73499f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - ref ComplexCombatData reference31 = ref CollectionsMarshal.AsSpan(list45)[0]; + index3 = 1; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + Span span45 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + ref ComplexCombatData reference31 = ref span45[num3]; ComplexCombatData obj31 = new ComplexCombatData { DataId = 338u, MinimumKillCount = 3u }; - num4 = 6; - List list46 = new List(num4); - CollectionsMarshal.SetCount(list46, num4); - Span span23 = CollectionsMarshal.AsSpan(list46); - span23[0] = null; - span23[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = null; + num5 = 6; + List list46 = new List(num5); + CollectionsMarshal.SetCount(list46, num5); + Span span46 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span46[num4] = null; + num4++; + span46[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span46[num4] = null; + num4++; + span46[num4] = null; + num4++; + span46[num4] = null; + num4++; + span46[num4] = null; obj31.CompletionQuestVariablesFlags = list46; reference31 = obj31; obj30.ComplexCombatData = list45; num3 = 6; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - Span span24 = CollectionsMarshal.AsSpan(list47); - span24[0] = null; - span24[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = null; + Span span47 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span47[index3] = null; + index3++; + span47[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span47[index3] = null; + index3++; + span47[index3] = null; + index3++; + span47[index3] = null; + index3++; + span47[index3] = null; obj30.CompletionQuestVariablesFlags = list47; reference30 = obj30; obj25.Steps = list38; reference25 = obj25; - ref QuestSequence reference32 = ref span17[2]; + num++; + ref QuestSequence reference32 = ref span35[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -22537,7 +27146,9 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -22556,21 +27167,26 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "liza"; questRoot6.Author = list49; - num = 12; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span25 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference33 = ref span25[0]; + index = 12; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference33 = ref span50[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list51)[0]; + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + ref QuestStep reference34 = ref span51[num2]; QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -22585,17 +27201,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = 128; + index3 = 1; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span52[num3] = 128; obj35.InTerritory = list52; skipConditions3.AetheryteShortcutIf = obj35; obj34.SkipConditions = skipConditions3; reference34 = obj34; obj33.Steps = list51; reference33 = obj33; - ref QuestSequence reference35 = ref span25[1]; + num++; + ref QuestSequence reference35 = ref span50[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -22603,18 +27222,23 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1002680u, new Vector3(1.4800415f, 30.47563f, -242.20648f), 128); + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.Interact, 1002680u, new Vector3(1.4800415f, 30.47563f, -242.20648f), 128); obj36.Steps = list53; reference35 = obj36; - ref QuestSequence reference36 = ref span25[2]; + num++; + ref QuestSequence reference36 = ref span50[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1002108u, new Vector3(-57.236633f, 43.829678f, 45.334473f), 134) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.Interact, 1002108u, new Vector3(-57.236633f, 43.829678f, 45.334473f), 134) { AethernetShortcut = new AethernetShortcut { @@ -22624,7 +27248,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list54; reference36 = obj37; - ref QuestSequence reference37 = ref span25[3]; + num++; + ref QuestSequence reference37 = ref span50[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 @@ -22632,8 +27257,9 @@ public static class AssemblyQuestLoader num2 = 3; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span26 = CollectionsMarshal.AsSpan(list55); - ref QuestStep reference38 = ref span26[0]; + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + ref QuestStep reference38 = ref span55[index2]; QuestStep obj39 = new QuestStep(EInteractionType.Action, 2001481u, new Vector3(-52.140076f, 46.158447f, 15.823547f), 134) { Action = EAction.HeavySwing @@ -22641,33 +27267,47 @@ public static class AssemblyQuestLoader num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span27 = CollectionsMarshal.AsSpan(list56); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span56 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj39.CompletionQuestVariablesFlags = list56; reference38 = obj39; - ref QuestStep reference39 = ref span26[1]; + index2++; + ref QuestStep reference39 = ref span55[index2]; QuestStep obj40 = new QuestStep(EInteractionType.Action, 2001482u, new Vector3(-73.80792f, 43.259277f, 4.623413f), 134) { Action = EAction.HeavySwing }; - num3 = 6; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - Span span28 = CollectionsMarshal.AsSpan(list57); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + Span span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj40.CompletionQuestVariablesFlags = list57; reference39 = obj40; - ref QuestStep reference40 = ref span26[2]; + index2++; + ref QuestStep reference40 = ref span55[index2]; QuestStep obj41 = new QuestStep(EInteractionType.Action, 2001480u, new Vector3(-68.467285f, 43.503418f, 20.248657f), 134) { Action = EAction.HeavySwing @@ -22675,29 +27315,39 @@ public static class AssemblyQuestLoader num3 = 6; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span29 = CollectionsMarshal.AsSpan(list58); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span58 = CollectionsMarshal.AsSpan(list58); + index3 = 0; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj41.CompletionQuestVariablesFlags = list58; reference40 = obj41; obj38.Steps = list55; reference37 = obj38; - ref QuestSequence reference41 = ref span25[4]; + num++; + ref QuestSequence reference41 = ref span50[num]; QuestSequence obj42 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1002108u, new Vector3(-57.236633f, 43.829678f, 45.334473f), 134); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.Interact, 1002108u, new Vector3(-57.236633f, 43.829678f, 45.334473f), 134); obj42.Steps = list59; reference41 = obj42; - ref QuestSequence reference42 = ref span25[5]; + num++; + ref QuestSequence reference42 = ref span50[num]; QuestSequence obj43 = new QuestSequence { Sequence = 5 @@ -22705,25 +27355,33 @@ public static class AssemblyQuestLoader num2 = 3; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span30 = CollectionsMarshal.AsSpan(list60); - ref QuestStep reference43 = ref span30[0]; + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + ref QuestStep reference43 = ref span60[index2]; QuestStep obj44 = new QuestStep(EInteractionType.Action, 2001483u, new Vector3(-12.314087f, 46.402588f, 31.47937f), 134) { Action = EAction.HeavySwing }; - num3 = 6; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span31 = CollectionsMarshal.AsSpan(list61); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj44.CompletionQuestVariablesFlags = list61; reference43 = obj44; - ref QuestStep reference44 = ref span30[1]; + index2++; + ref QuestStep reference44 = ref span60[index2]; QuestStep obj45 = new QuestStep(EInteractionType.Action, 2001485u, new Vector3(1.663208f, 48.2948f, 9.597839f), 134) { Action = EAction.HeavySwing @@ -22731,46 +27389,63 @@ public static class AssemblyQuestLoader num3 = 6; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - Span span32 = CollectionsMarshal.AsSpan(list62); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span62 = CollectionsMarshal.AsSpan(list62); + index3 = 0; + span62[index3] = null; + index3++; + span62[index3] = null; + index3++; + span62[index3] = null; + index3++; + span62[index3] = null; + index3++; + span62[index3] = null; + index3++; + span62[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj45.CompletionQuestVariablesFlags = list62; reference44 = obj45; - ref QuestStep reference45 = ref span30[2]; + index2++; + ref QuestStep reference45 = ref span60[index2]; QuestStep obj46 = new QuestStep(EInteractionType.Action, 2001484u, new Vector3(-14.572449f, 47.40979f, 12.344482f), 134) { Action = EAction.HeavySwing }; - num3 = 6; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - Span span33 = CollectionsMarshal.AsSpan(list63); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + Span span63 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj46.CompletionQuestVariablesFlags = list63; reference45 = obj46; obj43.Steps = list60; reference42 = obj43; - ref QuestSequence reference46 = ref span25[6]; + num++; + ref QuestSequence reference46 = ref span50[num]; QuestSequence obj47 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1002108u, new Vector3(-57.236633f, 43.829678f, 45.334473f), 134); + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.Interact, 1002108u, new Vector3(-57.236633f, 43.829678f, 45.334473f), 134); obj47.Steps = list64; reference46 = obj47; - ref QuestSequence reference47 = ref span25[7]; + num++; + ref QuestSequence reference47 = ref span50[num]; QuestSequence obj48 = new QuestSequence { Sequence = 7 @@ -22778,7 +27453,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -22789,18 +27466,22 @@ public static class AssemblyQuestLoader }; obj48.Steps = list65; reference47 = obj48; - ref QuestSequence reference48 = ref span25[8]; + num++; + ref QuestSequence reference48 = ref span50[num]; QuestSequence obj49 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1002679u, new Vector3(-5.2339478f, 31.475597f, -256.97723f), 128); + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.Interact, 1002679u, new Vector3(-5.2339478f, 31.475597f, -256.97723f), 128); obj49.Steps = list66; reference48 = obj49; - ref QuestSequence reference49 = ref span25[9]; + num++; + ref QuestSequence reference49 = ref span50[num]; QuestSequence obj50 = new QuestSequence { Sequence = 9 @@ -22808,9 +27489,11 @@ public static class AssemblyQuestLoader num2 = 2; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span34 = CollectionsMarshal.AsSpan(list67); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.175059f, 32.473015f, -264.02353f), 128); - span34[1] = new QuestStep(EInteractionType.Interact, 2000284u, new Vector3(130.84607f, 35.99597f, 28.519043f), 135) + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.175059f, 32.473015f, -264.02353f), 128); + index2++; + span67[index2] = new QuestStep(EInteractionType.Interact, 2000284u, new Vector3(130.84607f, 35.99597f, 28.519043f), 135) { AethernetShortcut = new AethernetShortcut { @@ -22820,15 +27503,18 @@ public static class AssemblyQuestLoader }; obj50.Steps = list67; reference49 = obj50; - ref QuestSequence reference50 = ref span25[10]; + num++; + ref QuestSequence reference50 = ref span50[num]; QuestSequence obj51 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(157.25027f, 33.93623f, 91.90441f), 135) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(157.25027f, 33.93623f, 91.90441f), 135) { StopDistance = 0.5f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -22838,7 +27524,8 @@ public static class AssemblyQuestLoader }; obj51.Steps = list68; reference50 = obj51; - ref QuestSequence reference51 = ref span25[11]; + num++; + ref QuestSequence reference51 = ref span50[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -22846,7 +27533,9 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -22865,21 +27554,26 @@ public static class AssemblyQuestLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - CollectionsMarshal.AsSpan(list70)[0] = "liza"; + Span span70 = CollectionsMarshal.AsSpan(list70); + index = 0; + span70[index] = "liza"; questRoot7.Author = list70; - num = 5; - List list71 = new List(num); - CollectionsMarshal.SetCount(list71, num); - Span span35 = CollectionsMarshal.AsSpan(list71); - ref QuestSequence reference52 = ref span35[0]; + index = 5; + List list71 = new List(index); + CollectionsMarshal.SetCount(list71, index); + Span span71 = CollectionsMarshal.AsSpan(list71); + num = 0; + ref QuestSequence reference52 = ref span71[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list72)[0]; + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + ref QuestStep reference53 = ref span72[num2]; QuestStep obj54 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -22897,14 +27591,17 @@ public static class AssemblyQuestLoader num3 = 1; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = 128; + Span span73 = CollectionsMarshal.AsSpan(list73); + index3 = 0; + span73[index3] = 128; obj55.InTerritory = list73; skipConditions4.AetheryteShortcutIf = obj55; obj54.SkipConditions = skipConditions4; reference53 = obj54; obj53.Steps = list72; reference52 = obj53; - ref QuestSequence reference54 = ref span35[1]; + num++; + ref QuestSequence reference54 = ref span71[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -22912,7 +27609,9 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list74)[0]; + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + ref QuestStep reference55 = ref span74[index2]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, null, new Vector3(391.3196f, 73.47712f, -313.9601f), 135) { Fly = true, @@ -22923,10 +27622,12 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - ref ComplexCombatData reference56 = ref CollectionsMarshal.AsSpan(list75)[0]; + index3 = 1; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span75 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + ref ComplexCombatData reference56 = ref span75[num3]; ComplexCombatData obj58 = new ComplexCombatData { DataId = 5u, @@ -22935,28 +27636,37 @@ public static class AssemblyQuestLoader num4 = 6; List list76 = new List(num4); CollectionsMarshal.SetCount(list76, num4); - Span span36 = CollectionsMarshal.AsSpan(list76); - span36[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = null; + Span span76 = CollectionsMarshal.AsSpan(list76); + num5 = 0; + span76[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span76[num5] = null; + num5++; + span76[num5] = null; + num5++; + span76[num5] = null; + num5++; + span76[num5] = null; + num5++; + span76[num5] = null; obj58.CompletionQuestVariablesFlags = list76; reference56 = obj58; obj57.ComplexCombatData = list75; reference55 = obj57; obj56.Steps = list74; reference54 = obj56; - ref QuestSequence reference57 = ref span35[2]; + num++; + ref QuestSequence reference57 = ref span71[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -22967,7 +27677,8 @@ public static class AssemblyQuestLoader }; obj59.Steps = list77; reference57 = obj59; - ref QuestSequence reference58 = ref span35[3]; + num++; + ref QuestSequence reference58 = ref span71[num]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -22975,7 +27686,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list78)[0]; + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + ref QuestStep reference59 = ref span78[index2]; QuestStep obj61 = new QuestStep(EInteractionType.Combat, 2000286u, new Vector3(-88.60913f, 43.564453f, -303.05945f), 134) { Fly = true, @@ -22990,7 +27703,9 @@ public static class AssemblyQuestLoader num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = 2u; + Span span79 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span79[index3] = 2u; obj61.KillEnemyDataIds = list79; obj61.SkipConditions = new SkipConditions { @@ -23002,15 +27717,18 @@ public static class AssemblyQuestLoader reference59 = obj61; obj60.Steps = list78; reference58 = obj60; - ref QuestSequence reference60 = ref span35[4]; + num++; + ref QuestSequence reference60 = ref span71[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23029,13 +27747,16 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "liza"; + Span span81 = CollectionsMarshal.AsSpan(list81); + index = 0; + span81[index] = "liza"; questRoot8.Author = list81; - num = 5; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span37 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference61 = ref span37[0]; + index = 5; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + Span span82 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference61 = ref span82[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -23043,7 +27764,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - ref QuestStep reference62 = ref CollectionsMarshal.AsSpan(list83)[0]; + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + ref QuestStep reference62 = ref span83[index2]; QuestStep obj64 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -23058,25 +27781,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = 128; + index3 = 1; + List list84 = new List(index3); + CollectionsMarshal.SetCount(list84, index3); + Span span84 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span84[num3] = 128; obj65.InTerritory = list84; skipConditions5.AetheryteShortcutIf = obj65; obj64.SkipConditions = skipConditions5; reference62 = obj64; obj63.Steps = list83; reference61 = obj63; - ref QuestSequence reference63 = ref span37[1]; + num++; + ref QuestSequence reference63 = ref span82[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list85)[0]; + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference64 = ref span85[num2]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, null, new Vector3(391.3196f, 73.47712f, -313.9601f), 135) { Fly = true, @@ -23090,29 +27818,38 @@ public static class AssemblyQuestLoader num3 = 1; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - ref ComplexCombatData reference65 = ref CollectionsMarshal.AsSpan(list86)[0]; + Span span86 = CollectionsMarshal.AsSpan(list86); + index3 = 0; + ref ComplexCombatData reference65 = ref span86[index3]; ComplexCombatData obj68 = new ComplexCombatData { DataId = 5u, MinimumKillCount = 3u }; - num4 = 6; - List list87 = new List(num4); - CollectionsMarshal.SetCount(list87, num4); - Span span38 = CollectionsMarshal.AsSpan(list87); - span38[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = null; + num5 = 6; + List list87 = new List(num5); + CollectionsMarshal.SetCount(list87, num5); + Span span87 = CollectionsMarshal.AsSpan(list87); + num4 = 0; + span87[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = null; obj68.CompletionQuestVariablesFlags = list87; reference65 = obj68; obj67.ComplexCombatData = list86; reference64 = obj67; obj66.Steps = list85; reference63 = obj66; - ref QuestSequence reference66 = ref span37[2]; + num++; + ref QuestSequence reference66 = ref span82[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -23120,7 +27857,9 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23131,15 +27870,18 @@ public static class AssemblyQuestLoader }; obj69.Steps = list88; reference66 = obj69; - ref QuestSequence reference67 = ref span37[3]; + num++; + ref QuestSequence reference67 = ref span82[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list89)[0]; + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + ref QuestStep reference68 = ref span89[num2]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, 2000287u, new Vector3(-88.60913f, 43.564453f, -303.05945f), 134) { Fly = true, @@ -23151,10 +27893,12 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = 2u; + index3 = 1; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + Span span90 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span90[num3] = 2u; obj71.KillEnemyDataIds = list90; obj71.SkipConditions = new SkipConditions { @@ -23166,7 +27910,8 @@ public static class AssemblyQuestLoader reference68 = obj71; obj70.Steps = list89; reference67 = obj70; - ref QuestSequence reference69 = ref span37[4]; + num++; + ref QuestSequence reference69 = ref span82[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -23174,7 +27919,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23193,21 +27940,26 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "liza"; + Span span92 = CollectionsMarshal.AsSpan(list92); + index = 0; + span92[index] = "liza"; questRoot9.Author = list92; - num = 8; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span39 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference70 = ref span39[0]; + index = 8; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + Span span93 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference70 = ref span93[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list94)[0]; + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref QuestStep reference71 = ref span94[num2]; QuestStep obj74 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -23225,14 +27977,17 @@ public static class AssemblyQuestLoader num3 = 1; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = 128; + Span span95 = CollectionsMarshal.AsSpan(list95); + index3 = 0; + span95[index3] = 128; obj75.InTerritory = list95; skipConditions6.AetheryteShortcutIf = obj75; obj74.SkipConditions = skipConditions6; reference71 = obj74; obj73.Steps = list94; reference70 = obj73; - ref QuestSequence reference72 = ref span39[1]; + num++; + ref QuestSequence reference72 = ref span93[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 @@ -23240,8 +27995,9 @@ public static class AssemblyQuestLoader num2 = 2; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span40 = CollectionsMarshal.AsSpan(list96); - span40[0] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) { StopDistance = 7f, TargetTerritoryId = (ushort)138, @@ -23251,23 +28007,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span40[1] = new QuestStep(EInteractionType.Interact, 1002110u, new Vector3(319.84436f, -31.898647f, 273.51794f), 138); + index2++; + span96[index2] = new QuestStep(EInteractionType.Interact, 1002110u, new Vector3(319.84436f, -31.898647f, 273.51794f), 138); obj76.Steps = list96; reference72 = obj76; - ref QuestSequence reference73 = ref span39[2]; + num++; + ref QuestSequence reference73 = ref span93[num]; QuestSequence obj77 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - Span span41 = CollectionsMarshal.AsSpan(list97); - span41[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) + index2 = 3; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span97[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) { Aetheryte = EAetheryteLocation.WesternLaNosceaAleport }; - span41[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(139.18224f, -20.931536f, 139.35034f), 138) + num2++; + span97[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(139.18224f, -20.931536f, 139.35034f), 138) { SkipConditions = new SkipConditions { @@ -23277,21 +28037,25 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference74 = ref span41[2]; + num2++; + ref QuestStep reference74 = ref span97[num2]; QuestStep obj78 = new QuestStep(EInteractionType.Combat, 2000288u, new Vector3(99.22937f, -14.2977295f, 141.86316f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = 28u; + index3 = 1; + List list98 = new List(index3); + CollectionsMarshal.SetCount(list98, index3); + Span span98 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span98[num3] = 28u; obj78.KillEnemyDataIds = list98; reference74 = obj78; obj77.Steps = list97; reference73 = obj77; - ref QuestSequence reference75 = ref span39[3]; + num++; + ref QuestSequence reference75 = ref span93[num]; QuestSequence obj79 = new QuestSequence { Sequence = 3 @@ -23299,7 +28063,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23310,16 +28076,18 @@ public static class AssemblyQuestLoader }; obj79.Steps = list99; reference75 = obj79; - ref QuestSequence reference76 = ref span39[4]; + num++; + ref QuestSequence reference76 = ref span93[num]; QuestSequence obj80 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span42 = CollectionsMarshal.AsSpan(list100); - span42[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-182.58467f, 39.786213f, -46.777275f), 134) + index2 = 2; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-182.58467f, 39.786213f, -46.777275f), 134) { StopDistance = 0.5f, AethernetShortcut = new AethernetShortcut @@ -23339,7 +28107,8 @@ public static class AssemblyQuestLoader } } }; - span42[1] = new QuestStep(EInteractionType.Interact, 1002111u, new Vector3(-206.80554f, 41.757885f, -39.627747f), 134) + num2++; + span100[num2] = new QuestStep(EInteractionType.Interact, 1002111u, new Vector3(-206.80554f, 41.757885f, -39.627747f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -23350,7 +28119,8 @@ public static class AssemblyQuestLoader }; obj80.Steps = list100; reference76 = obj80; - ref QuestSequence reference77 = ref span39[5]; + num++; + ref QuestSequence reference77 = ref span93[num]; QuestSequence obj81 = new QuestSequence { Sequence = 5 @@ -23358,24 +28128,30 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Action, 2001486u, new Vector3(-225.33002f, 42.191162f, -35.202576f), 134) + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.Action, 2001486u, new Vector3(-225.33002f, 42.191162f, -35.202576f), 134) { Action = EAction.HeavySwing }; obj81.Steps = list101; reference77 = obj81; - ref QuestSequence reference78 = ref span39[6]; + num++; + ref QuestSequence reference78 = ref span93[num]; QuestSequence obj82 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1002111u, new Vector3(-206.80554f, 41.757885f, -39.627747f), 134); + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.Interact, 1002111u, new Vector3(-206.80554f, 41.757885f, -39.627747f), 134); obj82.Steps = list102; reference78 = obj82; - ref QuestSequence reference79 = ref span39[7]; + num++; + ref QuestSequence reference79 = ref span93[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -23383,7 +28159,9 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span103[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23402,21 +28180,26 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "liza"; + Span span104 = CollectionsMarshal.AsSpan(list104); + index = 0; + span104[index] = "liza"; questRoot10.Author = list104; - num = 9; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span43 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference80 = ref span43[0]; + index = 9; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + Span span105 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference80 = ref span105[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list106)[0]; + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + ref QuestStep reference81 = ref span106[num2]; QuestStep obj85 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -23434,7 +28217,9 @@ public static class AssemblyQuestLoader num3 = 1; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = 128; + Span span107 = CollectionsMarshal.AsSpan(list107); + index3 = 0; + span107[index3] = 128; obj86.InTerritory = list107; skipConditions7.AetheryteShortcutIf = obj86; skipConditions7.AethernetShortcutIf = new SkipAetheryteCondition @@ -23445,7 +28230,8 @@ public static class AssemblyQuestLoader reference81 = obj85; obj84.Steps = list106; reference80 = obj84; - ref QuestSequence reference82 = ref span43[1]; + num++; + ref QuestSequence reference82 = ref span105[num]; QuestSequence obj87 = new QuestSequence { Sequence = 1 @@ -23453,7 +28239,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1002682u, new Vector3(-86.930725f, 40.999992f, -153.91785f), 128) + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.Interact, 1002682u, new Vector3(-86.930725f, 40.999992f, -153.91785f), 128) { AethernetShortcut = new AethernetShortcut { @@ -23463,15 +28251,18 @@ public static class AssemblyQuestLoader }; obj87.Steps = list108; reference82 = obj87; - ref QuestSequence reference83 = ref span43[2]; + num++; + ref QuestSequence reference83 = ref span105[num]; QuestSequence obj88 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1002112u, new Vector3(561.6693f, 89.783f, -81.52899f), 135) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.Interact, 1002112u, new Vector3(561.6693f, 89.783f, -81.52899f), 135) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -23482,7 +28273,8 @@ public static class AssemblyQuestLoader }; obj88.Steps = list109; reference83 = obj88; - ref QuestSequence reference84 = ref span43[3]; + num++; + ref QuestSequence reference84 = ref span105[num]; QuestSequence obj89 = new QuestSequence { Sequence = 3 @@ -23490,24 +28282,30 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1002683u, new Vector3(559.6245f, 89.783f, -80.1557f), 135); + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.Interact, 1002683u, new Vector3(559.6245f, 89.783f, -80.1557f), 135); obj89.Steps = list110; reference84 = obj89; - ref QuestSequence reference85 = ref span43[4]; + num++; + ref QuestSequence reference85 = ref span105[num]; QuestSequence obj90 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1002113u, new Vector3(312.45886f, -24.483091f, 212.84802f), 138) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.Interact, 1002113u, new Vector3(312.45886f, -24.483091f, 212.84802f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj90.Steps = list111; reference85 = obj90; - ref QuestSequence reference86 = ref span43[5]; + num++; + ref QuestSequence reference86 = ref span105[num]; QuestSequence obj91 = new QuestSequence { Sequence = 5 @@ -23515,23 +28313,32 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span44 = CollectionsMarshal.AsSpan(list112); - ref QuestStep reference87 = ref span44[0]; + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + ref QuestStep reference87 = ref span112[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2000289u, new Vector3(348.34814f, -18.60083f, 168.3833f), 138); - num3 = 6; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - Span span45 = CollectionsMarshal.AsSpan(list113); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list113 = new List(index3); + CollectionsMarshal.SetCount(list113, index3); + Span span113 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span113[num3] = null; + num3++; + span113[num3] = null; + num3++; + span113[num3] = null; + num3++; + span113[num3] = null; + num3++; + span113[num3] = null; + num3++; + span113[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list113; reference87 = questStep3; - span44[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(297.38306f, -14.2977295f, 148.85168f), 138); - ref QuestStep reference88 = ref span44[2]; + index2++; + span112[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(297.38306f, -14.2977295f, 148.85168f), 138); + index2++; + ref QuestStep reference88 = ref span112[index2]; QuestStep obj92 = new QuestStep(EInteractionType.Interact, 2000290u, new Vector3(297.38306f, -14.2977295f, 148.85168f), 138) { DelaySecondsAtStart = 5f @@ -23539,26 +28346,35 @@ public static class AssemblyQuestLoader num3 = 6; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - Span span46 = CollectionsMarshal.AsSpan(list114); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span114 = CollectionsMarshal.AsSpan(list114); + index3 = 0; + span114[index3] = null; + index3++; + span114[index3] = null; + index3++; + span114[index3] = null; + index3++; + span114[index3] = null; + index3++; + span114[index3] = null; + index3++; + span114[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj92.CompletionQuestVariablesFlags = list114; reference88 = obj92; obj91.Steps = list112; reference86 = obj91; - ref QuestSequence reference89 = ref span43[6]; + num++; + ref QuestSequence reference89 = ref span105[num]; QuestSequence obj93 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002684u, new Vector3(299.1836f, 0.7139131f, 86.10657f), 138) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span115[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002684u, new Vector3(299.1836f, 0.7139131f, 86.10657f), 138) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -23567,7 +28383,8 @@ public static class AssemblyQuestLoader }; obj93.Steps = list115; reference89 = obj93; - ref QuestSequence reference90 = ref span43[7]; + num++; + ref QuestSequence reference90 = ref span105[num]; QuestSequence obj94 = new QuestSequence { Sequence = 7 @@ -23575,7 +28392,9 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1002112u, new Vector3(561.6693f, 89.783f, -81.52899f), 135) + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.Interact, 1002112u, new Vector3(561.6693f, 89.783f, -81.52899f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -23587,15 +28406,18 @@ public static class AssemblyQuestLoader }; obj94.Steps = list116; reference90 = obj94; - ref QuestSequence reference91 = ref span43[8]; + num++; + ref QuestSequence reference91 = ref span105[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23614,13 +28436,16 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "liza"; questRoot11.Author = list118; - num = 4; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span47 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference92 = ref span47[0]; + index = 4; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference92 = ref span119[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -23628,7 +28453,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list120)[0]; + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + ref QuestStep reference93 = ref span120[index2]; QuestStep obj97 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -23643,10 +28470,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = 128; + index3 = 1; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + Span span121 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span121[num3] = 128; obj98.InTerritory = list121; skipConditions8.AetheryteShortcutIf = obj98; skipConditions8.AethernetShortcutIf = new SkipAetheryteCondition @@ -23657,15 +28486,18 @@ public static class AssemblyQuestLoader reference93 = obj97; obj96.Steps = list120; reference92 = obj96; - ref QuestSequence reference94 = ref span47[1]; + num++; + ref QuestSequence reference94 = ref span119[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1002682u, new Vector3(-86.930725f, 40.999992f, -153.91785f), 128) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.Interact, 1002682u, new Vector3(-86.930725f, 40.999992f, -153.91785f), 128) { AethernetShortcut = new AethernetShortcut { @@ -23675,7 +28507,8 @@ public static class AssemblyQuestLoader }; obj99.Steps = list122; reference94 = obj99; - ref QuestSequence reference95 = ref span47[2]; + num++; + ref QuestSequence reference95 = ref span119[num]; QuestSequence obj100 = new QuestSequence { Sequence = 2 @@ -23683,7 +28516,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002685u, new Vector3(-235.33997f, -0.28636882f, 675.349f), 135) + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002685u, new Vector3(-235.33997f, -0.28636882f, 675.349f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -23694,15 +28529,18 @@ public static class AssemblyQuestLoader }; obj100.Steps = list123; reference95 = obj100; - ref QuestSequence reference96 = ref span47[3]; + num++; + ref QuestSequence reference96 = ref span119[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23721,13 +28559,16 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "liza"; + Span span125 = CollectionsMarshal.AsSpan(list125); + index = 0; + span125[index] = "liza"; questRoot12.Author = list125; - num = 9; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span48 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference97 = ref span48[0]; + index = 9; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + Span span126 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference97 = ref span126[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -23735,7 +28576,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list127)[0]; + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + ref QuestStep reference98 = ref span127[index2]; QuestStep obj103 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -23753,7 +28596,9 @@ public static class AssemblyQuestLoader num3 = 1; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = 128; + Span span128 = CollectionsMarshal.AsSpan(list128); + index3 = 0; + span128[index3] = 128; obj104.InTerritory = list128; skipConditions9.AetheryteShortcutIf = obj104; skipConditions9.AethernetShortcutIf = new SkipAetheryteCondition @@ -23764,15 +28609,18 @@ public static class AssemblyQuestLoader reference98 = obj103; obj102.Steps = list127; reference97 = obj102; - ref QuestSequence reference99 = ref span48[1]; + num++; + ref QuestSequence reference99 = ref span126[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1002115u, new Vector3(562.3406f, 89.86035f, -80.216736f), 135) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span129[num2] = new QuestStep(EInteractionType.Interact, 1002115u, new Vector3(562.3406f, 89.86035f, -80.216736f), 135) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -23783,7 +28631,8 @@ public static class AssemblyQuestLoader }; obj105.Steps = list129; reference99 = obj105; - ref QuestSequence reference100 = ref span48[2]; + num++; + ref QuestSequence reference100 = ref span126[num]; QuestSequence obj106 = new QuestSequence { Sequence = 2 @@ -23791,49 +28640,67 @@ public static class AssemblyQuestLoader num2 = 2; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span49 = CollectionsMarshal.AsSpan(list130); - ref QuestStep reference101 = ref span49[0]; + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + ref QuestStep reference101 = ref span130[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1002713u, new Vector3(554.4059f, 89.783f, -67.979004f), 135); - num3 = 6; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span50 = CollectionsMarshal.AsSpan(list131); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + Span span131 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list131; reference101 = questStep4; - ref QuestStep reference102 = ref span49[1]; + index2++; + ref QuestStep reference102 = ref span130[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1002686u, new Vector3(554.2838f, 89.78309f, -72.43463f), 135); num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span51 = CollectionsMarshal.AsSpan(list132); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span132 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list132; reference102 = questStep5; obj106.Steps = list130; reference100 = obj106; - ref QuestSequence reference103 = ref span48[3]; + num++; + ref QuestSequence reference103 = ref span126[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 2000296u, new Vector3(565.1482f, 66.666626f, -215.2591f), 135); + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.Interact, 2000296u, new Vector3(565.1482f, 66.666626f, -215.2591f), 135); obj107.Steps = list133; reference103 = obj107; - ref QuestSequence reference104 = ref span48[4]; + num++; + ref QuestSequence reference104 = ref span126[num]; QuestSequence obj108 = new QuestSequence { Sequence = 4 @@ -23841,30 +28708,36 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2000297u, new Vector3(590.8141f, 72.40405f, -272.08368f), 135) + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span134[index2] = new QuestStep(EInteractionType.Interact, 2000297u, new Vector3(590.8141f, 72.40405f, -272.08368f), 135) { StopDistance = 1f, Mount = false }; obj108.Steps = list134; reference104 = obj108; - ref QuestSequence reference105 = ref span48[5]; + num++; + ref QuestSequence reference105 = ref span126[num]; QuestSequence obj109 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - Span span52 = CollectionsMarshal.AsSpan(list135); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(565.94104f, 85.81174f, -322.61465f), 135) + index2 = 2; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span135[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(565.94104f, 85.81174f, -322.61465f), 135) { Mount = false }; - span52[1] = new QuestStep(EInteractionType.Interact, 2000298u, new Vector3(566.8268f, 85.52673f, -320.82092f), 135); + num2++; + span135[num2] = new QuestStep(EInteractionType.Interact, 2000298u, new Vector3(566.8268f, 85.52673f, -320.82092f), 135); obj109.Steps = list135; reference105 = obj109; - ref QuestSequence reference106 = ref span48[6]; + num++; + ref QuestSequence reference106 = ref span126[num]; QuestSequence obj110 = new QuestSequence { Sequence = 6 @@ -23872,7 +28745,9 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000299u, new Vector3(574.0901f, 90.440186f, -429.06842f), 135) + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span136[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000299u, new Vector3(574.0901f, 90.440186f, -429.06842f), 135) { Mount = false, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -23882,30 +28757,39 @@ public static class AssemblyQuestLoader }; obj110.Steps = list136; reference106 = obj110; - ref QuestSequence reference107 = ref span48[7]; + num++; + ref QuestSequence reference107 = ref span126[num]; QuestSequence obj111 = new QuestSequence { Sequence = 7 }; - num2 = 3; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - Span span53 = CollectionsMarshal.AsSpan(list137); - ref QuestStep reference108 = ref span53[0]; + index2 = 3; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + ref QuestStep reference108 = ref span137[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1002689u, new Vector3(569.6345f, 86.253204f, -363.94293f), 135); - num3 = 6; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span54 = CollectionsMarshal.AsSpan(list138); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list138 = new List(index3); + CollectionsMarshal.SetCount(list138, index3); + Span span138 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list138; reference108 = questStep6; - ref QuestStep reference109 = ref span53[1]; + num2++; + ref QuestStep reference109 = ref span137[num2]; QuestStep obj112 = new QuestStep(EInteractionType.Interact, 1002714u, new Vector3(572.5946f, 86.366455f, -365.3468f), 135) { StopDistance = 5f @@ -23913,35 +28797,49 @@ public static class AssemblyQuestLoader num3 = 6; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - Span span55 = CollectionsMarshal.AsSpan(list139); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span139 = CollectionsMarshal.AsSpan(list139); + index3 = 0; + span139[index3] = null; + index3++; + span139[index3] = null; + index3++; + span139[index3] = null; + index3++; + span139[index3] = null; + index3++; + span139[index3] = null; + index3++; + span139[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj112.CompletionQuestVariablesFlags = list139; reference109 = obj112; - ref QuestStep reference110 = ref span53[2]; + num2++; + ref QuestStep reference110 = ref span137[num2]; QuestStep obj113 = new QuestStep(EInteractionType.Interact, 1002715u, new Vector3(566.4302f, 86.2767f, -364.95007f), 135) { StopDistance = 5f }; - num3 = 6; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - Span span56 = CollectionsMarshal.AsSpan(list140); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list140 = new List(index3); + CollectionsMarshal.SetCount(list140, index3); + Span span140 = CollectionsMarshal.AsSpan(list140); + num3 = 0; + span140[num3] = null; + num3++; + span140[num3] = null; + num3++; + span140[num3] = null; + num3++; + span140[num3] = null; + num3++; + span140[num3] = null; + num3++; + span140[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj113.CompletionQuestVariablesFlags = list140; reference110 = obj113; obj111.Steps = list137; reference107 = obj111; - ref QuestSequence reference111 = ref span48[8]; + num++; + ref QuestSequence reference111 = ref span126[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue @@ -23949,7 +28847,9 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23968,24 +28868,30 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - CollectionsMarshal.AsSpan(list142)[0] = "liza"; + Span span142 = CollectionsMarshal.AsSpan(list142); + index = 0; + span142[index] = "liza"; questRoot13.Author = list142; - num = 8; - List list143 = new List(num); - CollectionsMarshal.SetCount(list143, num); - Span span57 = CollectionsMarshal.AsSpan(list143); - ref QuestSequence reference112 = ref span57[0]; + index = 8; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + Span span143 = CollectionsMarshal.AsSpan(list143); + num = 0; + ref QuestSequence reference112 = ref span143[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001578u, new Vector3(-35.446716f, -2.057618f, -154.95538f), 141); + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001578u, new Vector3(-35.446716f, -2.057618f, -154.95538f), 141); obj115.Steps = list144; reference112 = obj115; - ref QuestSequence reference113 = ref span57[1]; + num++; + ref QuestSequence reference113 = ref span143[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 @@ -23993,19 +28899,23 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); obj116.Steps = list145; reference113 = obj116; - ref QuestSequence reference114 = ref span57[2]; + num++; + ref QuestSequence reference114 = ref span143[num]; QuestSequence obj117 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - Span span58 = CollectionsMarshal.AsSpan(list146); - ref QuestStep reference115 = ref span58[0]; + index2 = 4; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + ref QuestStep reference115 = ref span146[num2]; QuestStep obj118 = new QuestStep(EInteractionType.Interact, 1002949u, new Vector3(-82.71924f, -11.350104f, -36.66742f), 141) { StopDistance = 2f @@ -24013,33 +28923,47 @@ public static class AssemblyQuestLoader num3 = 6; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - Span span59 = CollectionsMarshal.AsSpan(list147); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span147 = CollectionsMarshal.AsSpan(list147); + index3 = 0; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj118.CompletionQuestVariablesFlags = list147; reference115 = obj118; - ref QuestStep reference116 = ref span58[1]; + num2++; + ref QuestStep reference116 = ref span146[num2]; QuestStep obj119 = new QuestStep(EInteractionType.Interact, 1002948u, new Vector3(-80.46088f, -12.785964f, -39.44464f), 141) { StopDistance = 7f }; - num3 = 6; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - Span span60 = CollectionsMarshal.AsSpan(list148); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + Span span148 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj119.CompletionQuestVariablesFlags = list148; reference116 = obj119; - ref QuestStep reference117 = ref span58[2]; + num2++; + ref QuestStep reference117 = ref span146[num2]; QuestStep obj120 = new QuestStep(EInteractionType.Interact, 1002950u, new Vector3(-80.76605f, -12.819771f, -34.439636f), 141) { StopDistance = 7f @@ -24047,35 +28971,49 @@ public static class AssemblyQuestLoader num3 = 6; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - Span span61 = CollectionsMarshal.AsSpan(list149); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span149 = CollectionsMarshal.AsSpan(list149); + index3 = 0; + span149[index3] = null; + index3++; + span149[index3] = null; + index3++; + span149[index3] = null; + index3++; + span149[index3] = null; + index3++; + span149[index3] = null; + index3++; + span149[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj120.CompletionQuestVariablesFlags = list149; reference117 = obj120; - ref QuestStep reference118 = ref span58[3]; + num2++; + ref QuestStep reference118 = ref span146[num2]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1002951u, new Vector3(-80.094604f, -12.790767f, -33.463074f), 141) { StopDistance = 7f }; - num3 = 6; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - Span span62 = CollectionsMarshal.AsSpan(list150); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list150 = new List(index3); + CollectionsMarshal.SetCount(list150, index3); + Span span150 = CollectionsMarshal.AsSpan(list150); + num3 = 0; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj121.CompletionQuestVariablesFlags = list150; reference118 = obj121; obj117.Steps = list146; reference114 = obj117; - ref QuestSequence reference119 = ref span57[3]; + num++; + ref QuestSequence reference119 = ref span143[num]; QuestSequence obj122 = new QuestSequence { Sequence = 3 @@ -24083,24 +29021,30 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); obj122.Steps = list151; reference119 = obj122; - ref QuestSequence reference120 = ref span57[4]; + num++; + ref QuestSequence reference120 = ref span143[num]; QuestSequence obj123 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - Span span63 = CollectionsMarshal.AsSpan(list152); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-199.35687f, -2.8170738f, 57.860172f), 141); - span63[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-215.15814f, -30.64667f, 96.92529f), 141) + index2 = 3; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-199.35687f, -2.8170738f, 57.860172f), 141); + num2++; + span152[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-215.15814f, -30.64667f, 96.92529f), 141) { DisableNavmesh = true }; - span63[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002955u, new Vector3(-228.47339f, -30.853842f, 117.29602f), 141) + num2++; + span152[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002955u, new Vector3(-228.47339f, -30.853842f, 117.29602f), 141) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -24109,11 +29053,13 @@ public static class AssemblyQuestLoader }; obj123.Steps = list152; reference120 = obj123; - span57[5] = new QuestSequence + num++; + span143[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference121 = ref span57[6]; + num++; + ref QuestSequence reference121 = ref span143[num]; QuestSequence obj124 = new QuestSequence { Sequence = 6 @@ -24121,18 +29067,23 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); obj124.Steps = list153; reference121 = obj124; - ref QuestSequence reference122 = ref span57[7]; + num++; + ref QuestSequence reference122 = ref span143[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -24150,13 +29101,16 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "liza"; + Span span155 = CollectionsMarshal.AsSpan(list155); + index = 0; + span155[index] = "liza"; questRoot14.Author = list155; - num = 3; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span64 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference123 = ref span64[0]; + index = 3; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + Span span156 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference123 = ref span156[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 @@ -24164,18 +29118,23 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129); + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129); obj126.Steps = list157; reference123 = obj126; - ref QuestSequence reference124 = ref span64[1]; + num++; + ref QuestSequence reference124 = ref span156[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span158[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { AethernetShortcut = new AethernetShortcut { @@ -24185,7 +29144,8 @@ public static class AssemblyQuestLoader }; obj127.Steps = list158; reference124 = obj127; - ref QuestSequence reference125 = ref span64[2]; + num++; + ref QuestSequence reference125 = ref span156[num]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue @@ -24193,7 +29153,9 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129) + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129) { AethernetShortcut = new AethernetShortcut { @@ -24210,24 +29172,30 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; + Span span160 = CollectionsMarshal.AsSpan(list160); + index = 0; + span160[index] = "liza"; questRoot15.Author = list160; - num = 2; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span65 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference126 = ref span65[0]; + index = 2; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + Span span161 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference126 = ref span161[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002065u, new Vector3(60.9292f, 45.14234f, -205.005f), 140); + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span162[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002065u, new Vector3(60.9292f, 45.14234f, -205.005f), 140); obj129.Steps = list162; reference126 = obj129; - ref QuestSequence reference127 = ref span65[1]; + num++; + ref QuestSequence reference127 = ref span161[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -24235,7 +29203,9 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span163[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); obj130.Steps = list163; reference127 = obj130; questRoot15.QuestSequence = list161; @@ -24245,24 +29215,30 @@ public static class AssemblyQuestLoader num = 1; List list164 = new List(num); CollectionsMarshal.SetCount(list164, num); - CollectionsMarshal.AsSpan(list164)[0] = "liza"; + Span span164 = CollectionsMarshal.AsSpan(list164); + index = 0; + span164[index] = "liza"; questRoot16.Author = list164; - num = 3; - List list165 = new List(num); - CollectionsMarshal.SetCount(list165, num); - Span span66 = CollectionsMarshal.AsSpan(list165); - ref QuestSequence reference128 = ref span66[0]; + index = 3; + List list165 = new List(index); + CollectionsMarshal.SetCount(list165, index); + Span span165 = CollectionsMarshal.AsSpan(list165); + num = 0; + ref QuestSequence reference128 = ref span165[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); obj131.Steps = list166; reference128 = obj131; - ref QuestSequence reference129 = ref span66[1]; + num++; + ref QuestSequence reference129 = ref span165[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 @@ -24270,7 +29246,9 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - ref QuestStep reference130 = ref CollectionsMarshal.AsSpan(list167)[0]; + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + ref QuestStep reference130 = ref span167[index2]; QuestStep obj133 = new QuestStep(EInteractionType.Combat, null, new Vector3(203.66704f, 51.853172f, -150.48145f), 140) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -24278,7 +29256,9 @@ public static class AssemblyQuestLoader num3 = 1; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = new ComplexCombatData + Span span168 = CollectionsMarshal.AsSpan(list168); + index3 = 0; + span168[index3] = new ComplexCombatData { DataId = 136u, MinimumKillCount = 4u @@ -24287,15 +29267,18 @@ public static class AssemblyQuestLoader reference130 = obj133; obj132.Steps = list167; reference129 = obj132; - ref QuestSequence reference131 = ref span66[2]; + num++; + ref QuestSequence reference131 = ref span165[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + Span span169 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span169[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); obj134.Steps = list169; reference131 = obj134; questRoot16.QuestSequence = list165; @@ -24305,13 +29288,16 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "liza"; + Span span170 = CollectionsMarshal.AsSpan(list170); + index = 0; + span170[index] = "liza"; questRoot17.Author = list170; - num = 3; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - Span span67 = CollectionsMarshal.AsSpan(list171); - ref QuestSequence reference132 = ref span67[0]; + index = 3; + List list171 = new List(index); + CollectionsMarshal.SetCount(list171, index); + Span span171 = CollectionsMarshal.AsSpan(list171); + num = 0; + ref QuestSequence reference132 = ref span171[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -24319,23 +29305,29 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); obj135.Steps = list172; reference132 = obj135; - ref QuestSequence reference133 = ref span67[1]; + num++; + ref QuestSequence reference133 = ref span171[num]; QuestSequence obj136 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - Span span68 = CollectionsMarshal.AsSpan(list173); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(263.7443f, 53.7287f, -12.175757f), 140); - span68[1] = new QuestStep(EInteractionType.Interact, 1001604u, new Vector3(-257.64862f, -0.28353235f, 25.223145f), 141); + index2 = 2; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(263.7443f, 53.7287f, -12.175757f), 140); + num2++; + span173[num2] = new QuestStep(EInteractionType.Interact, 1001604u, new Vector3(-257.64862f, -0.28353235f, 25.223145f), 141); obj136.Steps = list173; reference133 = obj136; - ref QuestSequence reference134 = ref span67[2]; + num++; + ref QuestSequence reference134 = ref span171[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -24343,7 +29335,9 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; @@ -24356,24 +29350,30 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "liza"; + Span span175 = CollectionsMarshal.AsSpan(list175); + index = 0; + span175[index] = "liza"; questRoot18.Author = list175; - num = 2; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span69 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference135 = ref span69[0]; + index = 2; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + Span span176 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference135 = ref span176[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141); + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141); obj138.Steps = list177; reference135 = obj138; - ref QuestSequence reference136 = ref span69[1]; + num++; + ref QuestSequence reference136 = ref span176[num]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue @@ -24381,7 +29381,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140) + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; @@ -24394,24 +29396,30 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "liza"; + Span span179 = CollectionsMarshal.AsSpan(list179); + index = 0; + span179[index] = "liza"; questRoot19.Author = list179; - num = 2; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span70 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference137 = ref span70[0]; + index = 2; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + Span span180 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference137 = ref span180[num]; QuestSequence obj140 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span181[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); obj140.Steps = list181; reference137 = obj140; - ref QuestSequence reference138 = ref span70[1]; + num++; + ref QuestSequence reference138 = ref span180[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue @@ -24419,7 +29427,9 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002066u, new Vector3(-176.95892f, 15.652092f, -270.98505f), 140); + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002066u, new Vector3(-176.95892f, 15.652092f, -270.98505f), 140); obj141.Steps = list182; reference138 = obj141; questRoot19.QuestSequence = list180; @@ -24429,27 +29439,33 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + Span span183 = CollectionsMarshal.AsSpan(list183); + index = 0; + span183[index] = "liza"; questRoot20.Author = list183; - num = 2; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span71 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference139 = ref span71[0]; + index = 2; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + Span span184 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference139 = ref span184[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002067u, new Vector3(-178.94263f, 15.632084f, -269.9779f), 140) + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span185[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002067u, new Vector3(-178.94263f, 15.632084f, -269.9779f), 140) { StopDistance = 7f }; obj142.Steps = list185; reference139 = obj142; - ref QuestSequence reference140 = ref span71[1]; + num++; + ref QuestSequence reference140 = ref span184[num]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -24457,10 +29473,13 @@ public static class AssemblyQuestLoader num2 = 3; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span72 = CollectionsMarshal.AsSpan(list186); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.73444f, 15.450659f, -266.76144f), 140); - span72[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-289.1099f, 15.249638f, -209.01831f), 140); - span72[2] = new QuestStep(EInteractionType.CompleteQuest, 1002068u, new Vector3(-284.50446f, 13.480675f, -144.9455f), 140); + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.73444f, 15.450659f, -266.76144f), 140); + index2++; + span186[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-289.1099f, 15.249638f, -209.01831f), 140); + index2++; + span186[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002068u, new Vector3(-284.50446f, 13.480675f, -144.9455f), 140); obj143.Steps = list186; reference140 = obj143; questRoot20.QuestSequence = list184; @@ -24470,24 +29489,30 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - CollectionsMarshal.AsSpan(list187)[0] = "liza"; + Span span187 = CollectionsMarshal.AsSpan(list187); + index = 0; + span187[index] = "liza"; questRoot21.Author = list187; - num = 3; - List list188 = new List(num); - CollectionsMarshal.SetCount(list188, num); - Span span73 = CollectionsMarshal.AsSpan(list188); - ref QuestSequence reference141 = ref span73[0]; + index = 3; + List list188 = new List(index); + CollectionsMarshal.SetCount(list188, index); + Span span188 = CollectionsMarshal.AsSpan(list188); + num = 0; + ref QuestSequence reference141 = ref span188[num]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002071u, new Vector3(-324.78827f, 17.58331f, -127.61127f), 140); + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002071u, new Vector3(-324.78827f, 17.58331f, -127.61127f), 140); obj144.Steps = list189; reference141 = obj144; - ref QuestSequence reference142 = ref span73[1]; + num++; + ref QuestSequence reference142 = ref span188[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -24495,9 +29520,11 @@ public static class AssemblyQuestLoader num2 = 2; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span74 = CollectionsMarshal.AsSpan(list190); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.01067f, 15.438055f, -256.949f), 140); - span74[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003816u, new Vector3(-235.21783f, 15.910468f, -293.1411f), 140) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.01067f, 15.438055f, -256.949f), 140); + index2++; + span190[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003816u, new Vector3(-235.21783f, 15.910468f, -293.1411f), 140) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -24506,15 +29533,18 @@ public static class AssemblyQuestLoader }; obj145.Steps = list190; reference142 = obj145; - ref QuestSequence reference143 = ref span73[2]; + num++; + ref QuestSequence reference143 = ref span188[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); obj146.Steps = list191; reference143 = obj146; questRoot21.QuestSequence = list188; @@ -24524,13 +29554,16 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - CollectionsMarshal.AsSpan(list192)[0] = "liza"; + Span span192 = CollectionsMarshal.AsSpan(list192); + index = 0; + span192[index] = "liza"; questRoot22.Author = list192; - num = 7; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - Span span75 = CollectionsMarshal.AsSpan(list193); - ref QuestSequence reference144 = ref span75[0]; + index = 7; + List list193 = new List(index); + CollectionsMarshal.SetCount(list193, index); + Span span193 = CollectionsMarshal.AsSpan(list193); + num = 0; + ref QuestSequence reference144 = ref span193[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 @@ -24538,24 +29571,30 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj147.Steps = list194; reference144 = obj147; - ref QuestSequence reference145 = ref span75[1]; + num++; + ref QuestSequence reference145 = ref span193[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1004584u, new Vector3(-360.83014f, -55.35f, 145.49475f), 145) + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.Interact, 1004584u, new Vector3(-360.83014f, -55.35f, 145.49475f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj148.Steps = list195; reference145 = obj148; - ref QuestSequence reference146 = ref span75[2]; + num++; + ref QuestSequence reference146 = ref span193[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 @@ -24563,7 +29602,9 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001592u, new Vector3(-356.71014f, -10.421997f, -242.51166f), 145) + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span196[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001592u, new Vector3(-356.71014f, -10.421997f, -242.51166f), 145) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -24572,21 +29613,25 @@ public static class AssemblyQuestLoader }; obj149.Steps = list196; reference146 = obj149; - ref QuestSequence reference147 = ref span75[3]; + num++; + ref QuestSequence reference147 = ref span193[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1005017u, new Vector3(-63.157104f, -25.215523f, -554.6502f), 146) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span197[num2] = new QuestStep(EInteractionType.Interact, 1005017u, new Vector3(-63.157104f, -25.215523f, -554.6502f), 146) { DisableNavmesh = true }; obj150.Steps = list197; reference147 = obj150; - ref QuestSequence reference148 = ref span75[4]; + num++; + ref QuestSequence reference148 = ref span193[num]; QuestSequence obj151 = new QuestSequence { Sequence = 4 @@ -24594,7 +29639,9 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Duty, null, null, 146) + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span198[index2] = new QuestStep(EInteractionType.Duty, null, null, 146) { DutyOptions = new DutyOptions { @@ -24604,18 +29651,22 @@ public static class AssemblyQuestLoader }; obj151.Steps = list198; reference148 = obj151; - ref QuestSequence reference149 = ref span75[5]; + num++; + ref QuestSequence reference149 = ref span193[num]; QuestSequence obj152 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1005156u, new Vector3(-372.73218f, -57.07999f, 151.04907f), 145); + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + Span span199 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span199[num2] = new QuestStep(EInteractionType.Interact, 1005156u, new Vector3(-372.73218f, -57.07999f, 151.04907f), 145); obj152.Steps = list199; reference149 = obj152; - ref QuestSequence reference150 = ref span75[6]; + num++; + ref QuestSequence reference150 = ref span193[num]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue @@ -24623,18 +29674,22 @@ public static class AssemblyQuestLoader num2 = 4; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span76 = CollectionsMarshal.AsSpan(list200); - span76[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span200[index2] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span76[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span76[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + index2++; + span200[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + index2++; + span200[index2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span76[3] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); + index2++; + span200[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); obj153.Steps = list200; reference150 = obj153; questRoot22.QuestSequence = list193; @@ -24644,24 +29699,30 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "Cacahuetes"; + Span span201 = CollectionsMarshal.AsSpan(list201); + index = 0; + span201[index] = "Cacahuetes"; questRoot23.Author = list201; - num = 2; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span77 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference151 = ref span77[0]; + index = 2; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + Span span202 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference151 = ref span202[num]; QuestSequence obj154 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130); + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130); obj154.Steps = list203; reference151 = obj154; - ref QuestSequence reference152 = ref span77[1]; + num++; + ref QuestSequence reference152 = ref span202[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue @@ -24669,12 +29730,16 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - ref QuestStep reference153 = ref CollectionsMarshal.AsSpan(list204)[0]; + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + ref QuestStep reference153 = ref span204[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.CompleteQuest, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130); - num3 = 1; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = new DialogueChoice + index3 = 1; + List list205 = new List(index3); + CollectionsMarshal.SetCount(list205, index3); + Span span205 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + span205[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSTHM011_00344_Q1_001_1") @@ -24691,21 +29756,26 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "liza"; + Span span206 = CollectionsMarshal.AsSpan(list206); + index = 0; + span206[index] = "liza"; questRoot24.Author = list206; - num = 4; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span78 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference154 = ref span78[0]; + index = 4; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + Span span207 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference154 = ref span207[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -24723,7 +29793,8 @@ public static class AssemblyQuestLoader }; obj156.Steps = list208; reference154 = obj156; - ref QuestSequence reference155 = ref span78[1]; + num++; + ref QuestSequence reference155 = ref span207[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 @@ -24731,12 +29802,16 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - ref QuestStep reference156 = ref CollectionsMarshal.AsSpan(list209)[0]; + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + ref QuestStep reference156 = ref span209[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130); num3 = 1; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice + Span span210 = CollectionsMarshal.AsSpan(list210); + index3 = 0; + span210[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSTHM020_00345_Q1_001_1") @@ -24746,16 +29821,18 @@ public static class AssemblyQuestLoader reference156 = questStep8; obj157.Steps = list209; reference155 = obj157; - ref QuestSequence reference157 = ref span78[2]; + num++; + ref QuestSequence reference157 = ref span207[num]; QuestSequence obj158 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - Span span79 = CollectionsMarshal.AsSpan(list211); - ref QuestStep reference158 = ref span79[0]; + index2 = 2; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + Span span211 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + ref QuestStep reference158 = ref span211[num2]; QuestStep obj159 = new QuestStep(EInteractionType.Combat, null, new Vector3(-71.92632f, 9.839797f, 283.98495f), 141) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -24766,11 +29843,12 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - Span span80 = CollectionsMarshal.AsSpan(list212); - ref ComplexCombatData reference159 = ref span80[0]; + index3 = 2; + List list212 = new List(index3); + CollectionsMarshal.SetCount(list212, index3); + Span span212 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + ref ComplexCombatData reference159 = ref span212[num3]; ComplexCombatData obj160 = new ComplexCombatData { DataId = 351u, @@ -24779,31 +29857,44 @@ public static class AssemblyQuestLoader num4 = 6; List list213 = new List(num4); CollectionsMarshal.SetCount(list213, num4); - Span span81 = CollectionsMarshal.AsSpan(list213); - span81[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = null; + Span span213 = CollectionsMarshal.AsSpan(list213); + num5 = 0; + span213[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span213[num5] = null; + num5++; + span213[num5] = null; + num5++; + span213[num5] = null; + num5++; + span213[num5] = null; + num5++; + span213[num5] = null; obj160.CompletionQuestVariablesFlags = list213; reference159 = obj160; - ref ComplexCombatData reference160 = ref span80[1]; + num3++; + ref ComplexCombatData reference160 = ref span212[num3]; ComplexCombatData obj161 = new ComplexCombatData { DataId = 385u, MinimumKillCount = 3u }; - num4 = 6; - List list214 = new List(num4); - CollectionsMarshal.SetCount(list214, num4); - Span span82 = CollectionsMarshal.AsSpan(list214); - span82[0] = null; - span82[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = null; + num5 = 6; + List list214 = new List(num5); + CollectionsMarshal.SetCount(list214, num5); + Span span214 = CollectionsMarshal.AsSpan(list214); + num4 = 0; + span214[num4] = null; + num4++; + span214[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span214[num4] = null; + num4++; + span214[num4] = null; + num4++; + span214[num4] = null; + num4++; + span214[num4] = null; obj161.CompletionQuestVariablesFlags = list214; reference160 = obj161; obj159.ComplexCombatData = list212; @@ -24815,23 +29906,32 @@ public static class AssemblyQuestLoader num3 = 1; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = 141; + Span span215 = CollectionsMarshal.AsSpan(list215); + index3 = 0; + span215[index3] = 141; obj162.InTerritory = list215; skipConditions10.AetheryteShortcutIf = obj162; obj159.SkipConditions = skipConditions10; - num3 = 6; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - Span span83 = CollectionsMarshal.AsSpan(list216); - span83[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span83[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = null; + index3 = 6; + List list216 = new List(index3); + CollectionsMarshal.SetCount(list216, index3); + Span span216 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span216[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span216[num3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num3++; + span216[num3] = null; + num3++; + span216[num3] = null; + num3++; + span216[num3] = null; + num3++; + span216[num3] = null; obj159.CompletionQuestVariablesFlags = list216; reference158 = obj159; - ref QuestStep reference161 = ref span79[1]; + num2++; + ref QuestStep reference161 = ref span211[num2]; QuestStep obj163 = new QuestStep(EInteractionType.Combat, null, new Vector3(39.449f, 3.082914f, 272.46896f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -24839,27 +29939,36 @@ public static class AssemblyQuestLoader num3 = 1; List list217 = new List(num3); CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = new ComplexCombatData + Span span217 = CollectionsMarshal.AsSpan(list217); + index3 = 0; + span217[index3] = new ComplexCombatData { DataId = 205u, MinimumKillCount = 3u }; obj163.ComplexCombatData = list217; - num3 = 6; - List list218 = new List(num3); - CollectionsMarshal.SetCount(list218, num3); - Span span84 = CollectionsMarshal.AsSpan(list218); - span84[0] = null; - span84[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = null; + index3 = 6; + List list218 = new List(index3); + CollectionsMarshal.SetCount(list218, index3); + Span span218 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span218[num3] = null; + num3++; + span218[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span218[num3] = null; + num3++; + span218[num3] = null; + num3++; + span218[num3] = null; + num3++; + span218[num3] = null; obj163.CompletionQuestVariablesFlags = list218; reference161 = obj163; obj158.Steps = list211; reference157 = obj158; - ref QuestSequence reference162 = ref span78[3]; + num++; + ref QuestSequence reference162 = ref span207[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -24867,7 +29976,9 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + Span span219 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span219[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -24886,21 +29997,26 @@ public static class AssemblyQuestLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - CollectionsMarshal.AsSpan(list220)[0] = "pot0to"; + Span span220 = CollectionsMarshal.AsSpan(list220); + index = 0; + span220[index] = "pot0to"; questRoot25.Author = list220; - num = 3; - List list221 = new List(num); - CollectionsMarshal.SetCount(list221, num); - Span span85 = CollectionsMarshal.AsSpan(list221); - ref QuestSequence reference163 = ref span85[0]; + index = 3; + List list221 = new List(index); + CollectionsMarshal.SetCount(list221, index); + Span span221 = CollectionsMarshal.AsSpan(list221); + num = 0; + ref QuestSequence reference163 = ref span221[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + Span span222 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span222[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -24918,7 +30034,8 @@ public static class AssemblyQuestLoader }; obj165.Steps = list222; reference163 = obj165; - ref QuestSequence reference164 = ref span85[1]; + num++; + ref QuestSequence reference164 = ref span221[num]; QuestSequence obj166 = new QuestSequence { Sequence = 1 @@ -24926,8 +30043,9 @@ public static class AssemblyQuestLoader num2 = 2; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span86 = CollectionsMarshal.AsSpan(list223); - ref QuestStep reference165 = ref span86[0]; + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + ref QuestStep reference165 = ref span223[index2]; QuestStep obj167 = new QuestStep(EInteractionType.Combat, null, new Vector3(-71.92632f, 9.839797f, 283.98495f), 141) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -24941,8 +30059,9 @@ public static class AssemblyQuestLoader num3 = 2; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - Span span87 = CollectionsMarshal.AsSpan(list224); - ref ComplexCombatData reference166 = ref span87[0]; + Span span224 = CollectionsMarshal.AsSpan(list224); + index3 = 0; + ref ComplexCombatData reference166 = ref span224[index3]; ComplexCombatData obj168 = new ComplexCombatData { DataId = 351u, @@ -24951,31 +30070,44 @@ public static class AssemblyQuestLoader num4 = 6; List list225 = new List(num4); CollectionsMarshal.SetCount(list225, num4); - Span span88 = CollectionsMarshal.AsSpan(list225); - span88[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = null; + Span span225 = CollectionsMarshal.AsSpan(list225); + num5 = 0; + span225[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span225[num5] = null; + num5++; + span225[num5] = null; + num5++; + span225[num5] = null; + num5++; + span225[num5] = null; + num5++; + span225[num5] = null; obj168.CompletionQuestVariablesFlags = list225; reference166 = obj168; - ref ComplexCombatData reference167 = ref span87[1]; + index3++; + ref ComplexCombatData reference167 = ref span224[index3]; ComplexCombatData obj169 = new ComplexCombatData { DataId = 385u, MinimumKillCount = 3u }; - num4 = 6; - List list226 = new List(num4); - CollectionsMarshal.SetCount(list226, num4); - Span span89 = CollectionsMarshal.AsSpan(list226); - span89[0] = null; - span89[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = null; + num5 = 6; + List list226 = new List(num5); + CollectionsMarshal.SetCount(list226, num5); + Span span226 = CollectionsMarshal.AsSpan(list226); + num4 = 0; + span226[num4] = null; + num4++; + span226[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span226[num4] = null; + num4++; + span226[num4] = null; + num4++; + span226[num4] = null; + num4++; + span226[num4] = null; obj169.CompletionQuestVariablesFlags = list226; reference167 = obj169; obj167.ComplexCombatData = list224; @@ -24984,34 +30116,45 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = 141; + index3 = 1; + List list227 = new List(index3); + CollectionsMarshal.SetCount(list227, index3); + Span span227 = CollectionsMarshal.AsSpan(list227); + num3 = 0; + span227[num3] = 141; obj170.InTerritory = list227; skipConditions11.AetheryteShortcutIf = obj170; obj167.SkipConditions = skipConditions11; num3 = 6; List list228 = new List(num3); CollectionsMarshal.SetCount(list228, num3); - Span span90 = CollectionsMarshal.AsSpan(list228); - span90[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span90[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = null; + Span span228 = CollectionsMarshal.AsSpan(list228); + index3 = 0; + span228[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span228[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span228[index3] = null; + index3++; + span228[index3] = null; + index3++; + span228[index3] = null; + index3++; + span228[index3] = null; obj167.CompletionQuestVariablesFlags = list228; reference165 = obj167; - ref QuestStep reference168 = ref span86[1]; + index2++; + ref QuestStep reference168 = ref span223[index2]; QuestStep obj171 = new QuestStep(EInteractionType.Combat, null, new Vector3(39.449f, 3.082914f, 272.46896f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list229 = new List(num3); - CollectionsMarshal.SetCount(list229, num3); - CollectionsMarshal.AsSpan(list229)[0] = new ComplexCombatData + index3 = 1; + List list229 = new List(index3); + CollectionsMarshal.SetCount(list229, index3); + Span span229 = CollectionsMarshal.AsSpan(list229); + num3 = 0; + span229[num3] = new ComplexCombatData { DataId = 205u, MinimumKillCount = 3u @@ -25020,26 +30163,35 @@ public static class AssemblyQuestLoader num3 = 6; List list230 = new List(num3); CollectionsMarshal.SetCount(list230, num3); - Span span91 = CollectionsMarshal.AsSpan(list230); - span91[0] = null; - span91[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = null; + Span span230 = CollectionsMarshal.AsSpan(list230); + index3 = 0; + span230[index3] = null; + index3++; + span230[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span230[index3] = null; + index3++; + span230[index3] = null; + index3++; + span230[index3] = null; + index3++; + span230[index3] = null; obj171.CompletionQuestVariablesFlags = list230; reference168 = obj171; obj166.Steps = list223; reference164 = obj166; - ref QuestSequence reference169 = ref span85[2]; + num++; + ref QuestSequence reference169 = ref span221[num]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25058,13 +30210,16 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - CollectionsMarshal.AsSpan(list232)[0] = "pot0to"; + Span span232 = CollectionsMarshal.AsSpan(list232); + index = 0; + span232[index] = "pot0to"; questRoot26.Author = list232; - num = 6; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - Span span92 = CollectionsMarshal.AsSpan(list233); - ref QuestSequence reference170 = ref span92[0]; + index = 6; + List list233 = new List(index); + CollectionsMarshal.SetCount(list233, index); + Span span233 = CollectionsMarshal.AsSpan(list233); + num = 0; + ref QuestSequence reference170 = ref span233[num]; QuestSequence obj173 = new QuestSequence { Sequence = 0 @@ -25072,7 +30227,9 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + Span span234 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + span234[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25090,18 +30247,22 @@ public static class AssemblyQuestLoader }; obj173.Steps = list234; reference170 = obj173; - ref QuestSequence reference171 = ref span92[1]; + num++; + ref QuestSequence reference171 = ref span233[num]; QuestSequence obj174 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130); + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + Span span235 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span235[num2] = new QuestStep(EInteractionType.Interact, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130); obj174.Steps = list235; reference171 = obj174; - ref QuestSequence reference172 = ref span92[2]; + num++; + ref QuestSequence reference172 = ref span233[num]; QuestSequence obj175 = new QuestSequence { Sequence = 2 @@ -25109,7 +30270,9 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - ref QuestStep reference173 = ref CollectionsMarshal.AsSpan(list236)[0]; + Span span236 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + ref QuestStep reference173 = ref span236[index2]; QuestStep obj176 = new QuestStep(EInteractionType.UseItem, 2001468u, new Vector3(-87.38843f, 50.614136f, 315.6023f), 140) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -25125,25 +30288,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - CollectionsMarshal.AsSpan(list237)[0] = 140; + index3 = 1; + List list237 = new List(index3); + CollectionsMarshal.SetCount(list237, index3); + Span span237 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span237[num3] = 140; obj177.InTerritory = list237; skipConditions12.AetheryteShortcutIf = obj177; obj176.SkipConditions = skipConditions12; reference173 = obj176; obj175.Steps = list236; reference172 = obj175; - ref QuestSequence reference174 = ref span92[3]; + num++; + ref QuestSequence reference174 = ref span233[num]; QuestSequence obj178 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - ref QuestStep reference175 = ref CollectionsMarshal.AsSpan(list238)[0]; + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + ref QuestStep reference175 = ref span238[num2]; QuestStep obj179 = new QuestStep(EInteractionType.Combat, 2001469u, new Vector3(-74.96759f, 53.238647f, 336.78186f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -25151,12 +30319,15 @@ public static class AssemblyQuestLoader num3 = 1; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = 12u; + Span span239 = CollectionsMarshal.AsSpan(list239); + index3 = 0; + span239[index3] = 12u; obj179.KillEnemyDataIds = list239; reference175 = obj179; obj178.Steps = list238; reference174 = obj178; - ref QuestSequence reference176 = ref span92[4]; + num++; + ref QuestSequence reference176 = ref span233[num]; QuestSequence obj180 = new QuestSequence { Sequence = 4 @@ -25164,23 +30335,28 @@ public static class AssemblyQuestLoader num2 = 2; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span93 = CollectionsMarshal.AsSpan(list240); - span93[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-253.97243f, 33.2412f, 408.68488f), 140) + Span span240 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span240[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-253.97243f, 33.2412f, 408.68488f), 140) { Fly = true }; - span93[1] = new QuestStep(EInteractionType.Interact, 1002027u, new Vector3(-255.23767f, 33.238777f, 407.27856f), 140); + index2++; + span240[index2] = new QuestStep(EInteractionType.Interact, 1002027u, new Vector3(-255.23767f, 33.238777f, 407.27856f), 140); obj180.Steps = list240; reference176 = obj180; - ref QuestSequence reference177 = ref span92[5]; + num++; + ref QuestSequence reference177 = ref span233[num]; QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130) + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + Span span241 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span241[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25199,15 +30375,18 @@ public static class AssemblyQuestLoader num = 2; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - Span span94 = CollectionsMarshal.AsSpan(list242); - span94[0] = "liza"; - span94[1] = "pot0to"; + Span span242 = CollectionsMarshal.AsSpan(list242); + index = 0; + span242[index] = "liza"; + index++; + span242[index] = "pot0to"; questRoot27.Author = list242; - num = 8; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span95 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference178 = ref span95[0]; + index = 8; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + Span span243 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference178 = ref span243[num]; QuestSequence obj182 = new QuestSequence { Sequence = 0 @@ -25215,7 +30394,9 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span244[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25233,18 +30414,22 @@ public static class AssemblyQuestLoader }; obj182.Steps = list244; reference178 = obj182; - ref QuestSequence reference179 = ref span95[1]; + num++; + ref QuestSequence reference179 = ref span243[num]; QuestSequence obj183 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130); + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + Span span245 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span245[num2] = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130); obj183.Steps = list245; reference179 = obj183; - ref QuestSequence reference180 = ref span95[2]; + num++; + ref QuestSequence reference180 = ref span243[num]; QuestSequence obj184 = new QuestSequence { Sequence = 2 @@ -25252,8 +30437,9 @@ public static class AssemblyQuestLoader num2 = 3; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span96 = CollectionsMarshal.AsSpan(list246); - ref QuestStep reference181 = ref span96[0]; + Span span246 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + ref QuestStep reference181 = ref span246[index2]; QuestStep obj185 = new QuestStep(EInteractionType.None, null, null, 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -25268,10 +30454,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list247 = new List(num3); - CollectionsMarshal.SetCount(list247, num3); - CollectionsMarshal.AsSpan(list247)[0] = 141; + index3 = 1; + List list247 = new List(index3); + CollectionsMarshal.SetCount(list247, index3); + Span span247 = CollectionsMarshal.AsSpan(list247); + num3 = 0; + span247[num3] = 141; obj186.InTerritory = list247; obj186.AetheryteUnlocked = EAetheryteLocation.CentralThanalanBlackBrushStation; skipConditions13.AetheryteShortcutIf = obj186; @@ -25281,7 +30469,8 @@ public static class AssemblyQuestLoader }; obj185.SkipConditions = skipConditions13; reference181 = obj185; - span96[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-62.183617f, -3.6582246f, 145.88391f), 141) + index2++; + span246[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-62.183617f, -3.6582246f, 145.88391f), 141) { SkipConditions = new SkipConditions { @@ -25292,7 +30481,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference182 = ref span96[2]; + index2++; + ref QuestStep reference182 = ref span246[index2]; QuestStep obj187 = new QuestStep(EInteractionType.Combat, null, new Vector3(149.07747f, -2f, -225.21188f), 141) { Fly = true, @@ -25302,7 +30492,9 @@ public static class AssemblyQuestLoader num3 = 1; List list248 = new List(num3); CollectionsMarshal.SetCount(list248, num3); - ref ComplexCombatData reference183 = ref CollectionsMarshal.AsSpan(list248)[0]; + Span span248 = CollectionsMarshal.AsSpan(list248); + index3 = 0; + ref ComplexCombatData reference183 = ref span248[index3]; ComplexCombatData obj188 = new ComplexCombatData { DataId = 160u, @@ -25311,13 +30503,19 @@ public static class AssemblyQuestLoader num4 = 6; List list249 = new List(num4); CollectionsMarshal.SetCount(list249, num4); - Span span97 = CollectionsMarshal.AsSpan(list249); - span97[0] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span97[1] = null; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = null; + Span span249 = CollectionsMarshal.AsSpan(list249); + num5 = 0; + span249[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span249[num5] = null; + num5++; + span249[num5] = null; + num5++; + span249[num5] = null; + num5++; + span249[num5] = null; + num5++; + span249[num5] = null; obj188.CompletionQuestVariablesFlags = list249; reference183 = obj188; obj187.ComplexCombatData = list248; @@ -25331,15 +30529,18 @@ public static class AssemblyQuestLoader reference182 = obj187; obj184.Steps = list246; reference180 = obj184; - ref QuestSequence reference184 = ref span95[3]; + num++; + ref QuestSequence reference184 = ref span243[num]; QuestSequence obj189 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - ref QuestStep reference185 = ref CollectionsMarshal.AsSpan(list250)[0]; + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span250 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + ref QuestStep reference185 = ref span250[num2]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -25356,10 +30557,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = new DialogueChoice + index3 = 1; + List list251 = new List(index3); + CollectionsMarshal.SetCount(list251, index3); + Span span251 = CollectionsMarshal.AsSpan(list251); + num3 = 0; + span251[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSTHM100_00348_Q_000_1"), @@ -25369,7 +30572,8 @@ public static class AssemblyQuestLoader reference185 = obj190; obj189.Steps = list250; reference184 = obj189; - ref QuestSequence reference186 = ref span95[4]; + num++; + ref QuestSequence reference186 = ref span243[num]; QuestSequence obj191 = new QuestSequence { Sequence = 4 @@ -25377,7 +30581,9 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - ref QuestStep reference187 = ref CollectionsMarshal.AsSpan(list252)[0]; + Span span252 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + ref QuestStep reference187 = ref span252[index2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, 2001511u, new Vector3(-366.29285f, -34.989014f, 293.56824f), 145) { Fly = true, @@ -25387,9 +30593,11 @@ public static class AssemblyQuestLoader num3 = 2; List list253 = new List(num3); CollectionsMarshal.SetCount(list253, num3); - Span span98 = CollectionsMarshal.AsSpan(list253); - span98[0] = 166u; - span98[1] = 1238u; + Span span253 = CollectionsMarshal.AsSpan(list253); + index3 = 0; + span253[index3] = 166u; + index3++; + span253[index3] = 1238u; obj192.KillEnemyDataIds = list253; obj192.SkipConditions = new SkipConditions { @@ -25401,18 +30609,22 @@ public static class AssemblyQuestLoader reference187 = obj192; obj191.Steps = list252; reference186 = obj191; - ref QuestSequence reference188 = ref span95[5]; + num++; + ref QuestSequence reference188 = ref span243[num]; QuestSequence obj193 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 2001498u, new Vector3(-366.29285f, -34.989014f, 293.56824f), 145); + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.Interact, 2001498u, new Vector3(-366.29285f, -34.989014f, 293.56824f), 145); obj193.Steps = list254; reference188 = obj193; - ref QuestSequence reference189 = ref span95[6]; + num++; + ref QuestSequence reference189 = ref span243[num]; QuestSequence obj194 = new QuestSequence { Sequence = 6 @@ -25420,7 +30632,9 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) + Span span255 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span255[index2] = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25431,15 +30645,18 @@ public static class AssemblyQuestLoader }; obj194.Steps = list255; reference189 = obj194; - ref QuestSequence reference190 = ref span95[7]; + num++; + ref QuestSequence reference190 = ref span243[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { NextQuestId = new QuestId(350) }; @@ -25452,13 +30669,16 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "pot0to"; + Span span257 = CollectionsMarshal.AsSpan(list257); + index = 0; + span257[index] = "pot0to"; questRoot28.Author = list257; - num = 7; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span99 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference191 = ref span99[0]; + index = 7; + List list258 = new List(index); + CollectionsMarshal.SetCount(list258, index); + Span span258 = CollectionsMarshal.AsSpan(list258); + num = 0; + ref QuestSequence reference191 = ref span258[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -25466,7 +30686,9 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span259[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25484,18 +30706,22 @@ public static class AssemblyQuestLoader }; obj196.Steps = list259; reference191 = obj196; - ref QuestSequence reference192 = ref span99[1]; + num++; + ref QuestSequence reference192 = ref span258[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130); + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span260[num2] = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130); obj197.Steps = list260; reference192 = obj197; - ref QuestSequence reference193 = ref span99[2]; + num++; + ref QuestSequence reference193 = ref span258[num]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -25503,8 +30729,9 @@ public static class AssemblyQuestLoader num2 = 3; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span100 = CollectionsMarshal.AsSpan(list261); - ref QuestStep reference194 = ref span100[0]; + Span span261 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + ref QuestStep reference194 = ref span261[index2]; QuestStep obj199 = new QuestStep(EInteractionType.None, null, null, 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -25519,10 +30746,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list262 = new List(num3); - CollectionsMarshal.SetCount(list262, num3); - CollectionsMarshal.AsSpan(list262)[0] = 141; + index3 = 1; + List list262 = new List(index3); + CollectionsMarshal.SetCount(list262, index3); + Span span262 = CollectionsMarshal.AsSpan(list262); + num3 = 0; + span262[num3] = 141; obj200.InTerritory = list262; obj200.AetheryteUnlocked = EAetheryteLocation.CentralThanalanBlackBrushStation; skipConditions14.AetheryteShortcutIf = obj200; @@ -25532,7 +30761,8 @@ public static class AssemblyQuestLoader }; obj199.SkipConditions = skipConditions14; reference194 = obj199; - span100[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-62.183617f, -3.6582246f, 145.88391f), 141) + index2++; + span261[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-62.183617f, -3.6582246f, 145.88391f), 141) { SkipConditions = new SkipConditions { @@ -25543,7 +30773,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference195 = ref span100[2]; + index2++; + ref QuestStep reference195 = ref span261[index2]; QuestStep obj201 = new QuestStep(EInteractionType.Combat, null, new Vector3(149.07747f, -2f, -225.21188f), 141) { Fly = true, @@ -25553,22 +30784,30 @@ public static class AssemblyQuestLoader num3 = 1; List list263 = new List(num3); CollectionsMarshal.SetCount(list263, num3); - ref ComplexCombatData reference196 = ref CollectionsMarshal.AsSpan(list263)[0]; + Span span263 = CollectionsMarshal.AsSpan(list263); + index3 = 0; + ref ComplexCombatData reference196 = ref span263[index3]; ComplexCombatData obj202 = new ComplexCombatData { DataId = 160u, MinimumKillCount = 8u }; - num4 = 6; - List list264 = new List(num4); - CollectionsMarshal.SetCount(list264, num4); - Span span101 = CollectionsMarshal.AsSpan(list264); - span101[0] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = null; + num5 = 6; + List list264 = new List(num5); + CollectionsMarshal.SetCount(list264, num5); + Span span264 = CollectionsMarshal.AsSpan(list264); + num4 = 0; + span264[num4] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num4++; + span264[num4] = null; + num4++; + span264[num4] = null; + num4++; + span264[num4] = null; + num4++; + span264[num4] = null; + num4++; + span264[num4] = null; obj202.CompletionQuestVariablesFlags = list264; reference196 = obj202; obj201.ComplexCombatData = list263; @@ -25582,15 +30821,18 @@ public static class AssemblyQuestLoader reference195 = obj201; obj198.Steps = list261; reference193 = obj198; - ref QuestSequence reference197 = ref span99[3]; + num++; + ref QuestSequence reference197 = ref span258[num]; QuestSequence obj203 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list265)[0]; + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + Span span265 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + ref QuestStep reference198 = ref span265[num2]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -25607,10 +30849,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list266 = new List(num3); - CollectionsMarshal.SetCount(list266, num3); - CollectionsMarshal.AsSpan(list266)[0] = new DialogueChoice + index3 = 1; + List list266 = new List(index3); + CollectionsMarshal.SetCount(list266, index3); + Span span266 = CollectionsMarshal.AsSpan(list266); + num3 = 0; + span266[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSTHM101_00349_Q_000_1"), @@ -25620,7 +30864,8 @@ public static class AssemblyQuestLoader reference198 = obj204; obj203.Steps = list265; reference197 = obj203; - ref QuestSequence reference199 = ref span99[4]; + num++; + ref QuestSequence reference199 = ref span258[num]; QuestSequence obj205 = new QuestSequence { Sequence = 4 @@ -25628,7 +30873,9 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list267)[0]; + Span span267 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + ref QuestStep reference200 = ref span267[index2]; QuestStep obj206 = new QuestStep(EInteractionType.Combat, 2001512u, new Vector3(-366.29285f, -34.989014f, 293.56824f), 145) { Fly = true, @@ -25638,9 +30885,11 @@ public static class AssemblyQuestLoader num3 = 2; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - Span span102 = CollectionsMarshal.AsSpan(list268); - span102[0] = 166u; - span102[1] = 1238u; + Span span268 = CollectionsMarshal.AsSpan(list268); + index3 = 0; + span268[index3] = 166u; + index3++; + span268[index3] = 1238u; obj206.KillEnemyDataIds = list268; obj206.SkipConditions = new SkipConditions { @@ -25652,18 +30901,22 @@ public static class AssemblyQuestLoader reference200 = obj206; obj205.Steps = list267; reference199 = obj205; - ref QuestSequence reference201 = ref span99[5]; + num++; + ref QuestSequence reference201 = ref span258[num]; QuestSequence obj207 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 2001499u, new Vector3(-366.29285f, -34.989014f, 293.56824f), 145); + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + Span span269 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span269[num2] = new QuestStep(EInteractionType.Interact, 2001499u, new Vector3(-366.29285f, -34.989014f, 293.56824f), 145); obj207.Steps = list269; reference201 = obj207; - ref QuestSequence reference202 = ref span99[6]; + num++; + ref QuestSequence reference202 = ref span258[num]; QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue @@ -25671,7 +30924,9 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span270[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25694,13 +30949,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "pot0to"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "pot0to"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -25708,7 +30966,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25726,18 +30986,22 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1001711u, new Vector3(-241.62665f, 18.8f, 83.32947f), 130); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1001711u, new Vector3(-241.62665f, 18.8f, 83.32947f), 130); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -25745,33 +31009,40 @@ public static class AssemblyQuestLoader num2 = 3; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.Emote, 1002301u, new Vector3(-178.2102f, 18f, 61.41748f), 130) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Emote, 1002301u, new Vector3(-178.2102f, 18f, 61.41748f), 130) { Emote = EEmote.Cry }; - span2[1] = new QuestStep(EInteractionType.Emote, 1002300u, new Vector3(-176.9284f, 18f, 62.363525f), 130) + index2++; + span5[index2] = new QuestStep(EInteractionType.Emote, 1002300u, new Vector3(-176.9284f, 18f, 62.363525f), 130) { Emote = EEmote.Cry }; - span2[2] = new QuestStep(EInteractionType.Emote, 1002302u, new Vector3(-176.71478f, 18f, 64.34729f), 130) + index2++; + span5[index2] = new QuestStep(EInteractionType.Emote, 1002302u, new Vector3(-176.71478f, 18f, 64.34729f), 130) { Emote = EEmote.Cry }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1001711u, new Vector3(-241.62665f, 18.8f, 83.32947f), 130); + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Interact, 1001711u, new Vector3(-241.62665f, 18.8f, 83.32947f), 130); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -25779,7 +31050,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list7)[0]; + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + ref QuestStep reference6 = ref span7[index2]; QuestStep obj6 = new QuestStep(EInteractionType.SinglePlayerDuty, 2001470u, new Vector3(-24.887512f, -25.345276f, 321.94995f), 145) { Fly = true, @@ -25789,9 +31062,11 @@ public static class AssemblyQuestLoader int num3 = 2; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span3 = CollectionsMarshal.AsSpan(list8); - span3[0] = "vbm doesn't move to the enemies automatically"; - span3[1] = "vbm doesn't interact with the urn"; + Span span8 = CollectionsMarshal.AsSpan(list8); + int num4 = 0; + span8[num4] = "vbm doesn't move to the enemies automatically"; + num4++; + span8[num4] = "vbm doesn't interact with the urn"; singlePlayerDutyOptions.Notes = list8; obj6.SinglePlayerDutyOptions = singlePlayerDutyOptions; obj6.SkipConditions = new SkipConditions @@ -25804,15 +31079,18 @@ public static class AssemblyQuestLoader reference6 = obj6; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference7 = ref span[5]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list9)[0]; + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + ref QuestStep reference8 = ref span9[num2]; QuestStep obj8 = new QuestStep(EInteractionType.CompleteQuest, 1001711u, new Vector3(-241.62665f, 18.8f, 83.32947f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -25822,10 +31100,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - num3 = 1; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = new DialogueChoice + num4 = 1; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + Span span10 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span10[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSTHM150_00350_Q1_000_1"), @@ -25843,14 +31123,17 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "pot0to"; + Span span11 = CollectionsMarshal.AsSpan(list11); + index = 0; + span11[index] = "pot0to"; questRoot2.Author = list11; questRoot2.Comment = "TODO Fix pathing if flying is locked"; - num = 10; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span4 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference9 = ref span4[0]; + index = 10; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + Span span12 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference9 = ref span12[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -25858,7 +31141,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - ref QuestStep reference10 = ref CollectionsMarshal.AsSpan(list13)[0]; + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + ref QuestStep reference10 = ref span13[index2]; QuestStep obj10 = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -25876,25 +31161,31 @@ public static class AssemblyQuestLoader num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = 130; + Span span14 = CollectionsMarshal.AsSpan(list14); + num4 = 0; + span14[num4] = 130; obj11.InTerritory = list14; skipConditions.AetheryteShortcutIf = obj11; obj10.SkipConditions = skipConditions; reference10 = obj10; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference11 = ref span4[1]; + num++; + ref QuestSequence reference11 = ref span12[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1001712u, new Vector3(-241.50458f, 19.57727f, 84.64172f), 130); + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.Interact, 1001712u, new Vector3(-241.50458f, 19.57727f, 84.64172f), 130); obj12.Steps = list15; reference11 = obj12; - ref QuestSequence reference12 = ref span4[2]; + num++; + ref QuestSequence reference12 = ref span12[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -25902,7 +31193,9 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list16)[0]; + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + ref QuestStep reference13 = ref span16[index2]; QuestStep obj14 = new QuestStep(EInteractionType.Interact, 1002305u, new Vector3(14.419739f, 22.157166f, 72.3125f), 140) { Fly = true, @@ -25913,34 +31206,41 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = 140; + num4 = 1; + List list17 = new List(num4); + CollectionsMarshal.SetCount(list17, num4); + Span span17 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span17[num3] = 140; obj15.InTerritory = list17; skipConditions2.AetheryteShortcutIf = obj15; obj14.SkipConditions = skipConditions2; reference13 = obj14; obj13.Steps = list16; reference12 = obj13; - ref QuestSequence reference14 = ref span4[3]; + num++; + ref QuestSequence reference14 = ref span12[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - Span span5 = CollectionsMarshal.AsSpan(list18); - span5[0] = new QuestStep(EInteractionType.Interact, 1002324u, new Vector3(112.80994f, 17.536886f, 31.296265f), 140) + index2 = 3; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.Interact, 1002324u, new Vector3(112.80994f, 17.536886f, 31.296265f), 140) { Fly = true }; - span5[1] = new QuestStep(EInteractionType.Interact, 1002322u, new Vector3(116.89929f, 17.536886f, 12.954895f), 140); - span5[2] = new QuestStep(EInteractionType.Interact, 1002323u, new Vector3(132.43298f, 21.104982f, 9.018005f), 140); + num2++; + span18[num2] = new QuestStep(EInteractionType.Interact, 1002322u, new Vector3(116.89929f, 17.536886f, 12.954895f), 140); + num2++; + span18[num2] = new QuestStep(EInteractionType.Interact, 1002323u, new Vector3(132.43298f, 21.104982f, 9.018005f), 140); obj16.Steps = list18; reference14 = obj16; - ref QuestSequence reference15 = ref span4[4]; + num++; + ref QuestSequence reference15 = ref span12[num]; QuestSequence obj17 = new QuestSequence { Sequence = 4 @@ -25948,21 +31248,26 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1002305u, new Vector3(14.419739f, 22.157166f, 72.3125f), 140) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.Interact, 1002305u, new Vector3(14.419739f, 22.157166f, 72.3125f), 140) { Fly = true }; obj17.Steps = list19; reference15 = obj17; - ref QuestSequence reference16 = ref span4[5]; + num++; + ref QuestSequence reference16 = ref span12[num]; QuestSequence obj18 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list20)[0]; + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference17 = ref span20[num2]; QuestStep obj19 = new QuestStep(EInteractionType.SinglePlayerDuty, 2001472u, new Vector3(150.71338f, 18.783813f, -5.7526855f), 140) { Fly = true @@ -25971,13 +31276,16 @@ public static class AssemblyQuestLoader num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = "Duty somewhat expects you to put the boss to sleep, vbm doesn't and lets the friendly NPC die"; + Span span21 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span21[num4] = "Duty somewhat expects you to put the boss to sleep, vbm doesn't and lets the friendly NPC die"; singlePlayerDutyOptions2.Notes = list21; obj19.SinglePlayerDutyOptions = singlePlayerDutyOptions2; reference17 = obj19; obj18.Steps = list20; reference16 = obj18; - ref QuestSequence reference18 = ref span4[6]; + num++; + ref QuestSequence reference18 = ref span12[num]; QuestSequence obj20 = new QuestSequence { Sequence = 6 @@ -25985,27 +31293,33 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1002305u, new Vector3(14.419739f, 22.157166f, 72.3125f), 140) + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.Interact, 1002305u, new Vector3(14.419739f, 22.157166f, 72.3125f), 140) { Fly = true }; obj20.Steps = list22; reference18 = obj20; - ref QuestSequence reference19 = ref span4[7]; + num++; + ref QuestSequence reference19 = ref span12[num]; QuestSequence obj21 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 2001474u, new Vector3(96.238525f, 16.952698f, 188.83032f), 140) + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.Interact, 2001474u, new Vector3(96.238525f, 16.952698f, 188.83032f), 140) { Fly = true }; obj21.Steps = list23; reference19 = obj21; - ref QuestSequence reference20 = ref span4[8]; + num++; + ref QuestSequence reference20 = ref span12[num]; QuestSequence obj22 = new QuestSequence { Sequence = 8 @@ -26013,7 +31327,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list24)[0]; + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + ref QuestStep reference21 = ref span24[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1001712u, new Vector3(-241.50458f, 19.57727f, 84.64172f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -26028,25 +31344,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = 130; + num4 = 1; + List list25 = new List(num4); + CollectionsMarshal.SetCount(list25, num4); + Span span25 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span25[num3] = 130; obj24.InTerritory = list25; skipConditions3.AetheryteShortcutIf = obj24; obj23.SkipConditions = skipConditions3; reference21 = obj23; obj22.Steps = list24; reference20 = obj22; - ref QuestSequence reference22 = ref span4[9]; + num++; + ref QuestSequence reference22 = ref span12[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { NextQuestId = new QuestId(352) }; @@ -26059,13 +31380,16 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "pot0to"; + Span span27 = CollectionsMarshal.AsSpan(list27); + index = 0; + span27[index] = "pot0to"; questRoot3.Author = list27; - num = 7; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span6 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference23 = ref span6[0]; + index = 7; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + Span span28 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference23 = ref span28[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -26073,7 +31397,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list29)[0]; + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + ref QuestStep reference24 = ref span29[index2]; QuestStep obj27 = new QuestStep(EInteractionType.AcceptQuest, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -26091,25 +31417,31 @@ public static class AssemblyQuestLoader num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = 130; + Span span30 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span30[num4] = 130; obj28.InTerritory = list30; skipConditions4.AetheryteShortcutIf = obj28; obj27.SkipConditions = skipConditions4; reference24 = obj27; obj26.Steps = list29; reference23 = obj26; - ref QuestSequence reference25 = ref span6[1]; + num++; + ref QuestSequence reference25 = ref span28[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); obj29.Steps = list31; reference25 = obj29; - ref QuestSequence reference26 = ref span6[2]; + num++; + ref QuestSequence reference26 = ref span28[num]; QuestSequence obj30 = new QuestSequence { Sequence = 2 @@ -26117,8 +31449,9 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span7 = CollectionsMarshal.AsSpan(list32); - ref QuestStep reference27 = ref span7[0]; + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference27 = ref span32[index2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1002309u, new Vector3(-374.28857f, -57.079987f, 144.12134f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone @@ -26128,27 +31461,34 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = 145; + num4 = 1; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = 145; obj32.InTerritory = list33; skipConditions5.AetheryteShortcutIf = obj32; obj31.SkipConditions = skipConditions5; reference27 = obj31; - span7[1] = new QuestStep(EInteractionType.Interact, 1002308u, new Vector3(-386.7094f, -59.300003f, 166.39954f), 145); - span7[2] = new QuestStep(EInteractionType.Interact, 1002307u, new Vector3(-396.65833f, -48.15f, 99.68713f), 145); + index2++; + span32[index2] = new QuestStep(EInteractionType.Interact, 1002308u, new Vector3(-386.7094f, -59.300003f, 166.39954f), 145); + index2++; + span32[index2] = new QuestStep(EInteractionType.Interact, 1002307u, new Vector3(-396.65833f, -48.15f, 99.68713f), 145); obj30.Steps = list32; reference26 = obj30; - ref QuestSequence reference28 = ref span6[3]; + num++; + ref QuestSequence reference28 = ref span28[num]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list34)[0]; + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref QuestStep reference29 = ref span34[num2]; QuestStep obj34 = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -26166,14 +31506,17 @@ public static class AssemblyQuestLoader num3 = 1; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = 130; + Span span35 = CollectionsMarshal.AsSpan(list35); + num4 = 0; + span35[num4] = 130; obj35.InTerritory = list35; skipConditions6.AetheryteShortcutIf = obj35; obj34.SkipConditions = skipConditions6; reference29 = obj34; obj33.Steps = list34; reference28 = obj33; - ref QuestSequence reference30 = ref span6[4]; + num++; + ref QuestSequence reference30 = ref span28[num]; QuestSequence obj36 = new QuestSequence { Sequence = 4 @@ -26181,19 +31524,23 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130); + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.Interact, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130); obj36.Steps = list36; reference30 = obj36; - ref QuestSequence reference31 = ref span6[5]; + num++; + ref QuestSequence reference31 = ref span28[num]; QuestSequence obj37 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span8 = CollectionsMarshal.AsSpan(list37); - ref QuestStep reference32 = ref span8[0]; + index2 = 2; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + ref QuestStep reference32 = ref span37[num2]; QuestStep obj38 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(222.64497f, 5.099169f, -265.77835f), 145) { Fly = true, @@ -26204,18 +31551,22 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = 145; + num4 = 1; + List list38 = new List(num4); + CollectionsMarshal.SetCount(list38, num4); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = 145; obj39.InTerritory = list38; skipConditions7.AetheryteShortcutIf = obj39; obj38.SkipConditions = skipConditions7; reference32 = obj38; - span8[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002310u, new Vector3(184.89343f, 3.1809213f, -338.64355f), 145); + num2++; + span37[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002310u, new Vector3(184.89343f, 3.1809213f, -338.64355f), 145); obj37.Steps = list37; reference31 = obj37; - ref QuestSequence reference33 = ref span6[6]; + num++; + ref QuestSequence reference33 = ref span28[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -26223,7 +31574,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list39)[0]; + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + ref QuestStep reference34 = ref span39[index2]; QuestStep obj41 = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -26241,7 +31594,9 @@ public static class AssemblyQuestLoader num3 = 1; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = 130; + Span span40 = CollectionsMarshal.AsSpan(list40); + num4 = 0; + span40[num4] = 130; obj42.InTerritory = list40; skipConditions8.AetheryteShortcutIf = obj42; obj41.SkipConditions = skipConditions8; @@ -26256,21 +31611,26 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "pot0to"; + Span span41 = CollectionsMarshal.AsSpan(list41); + index = 0; + span41[index] = "pot0to"; questRoot4.Author = list41; - num = 7; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span9 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference35 = ref span9[0]; + index = 7; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + Span span42 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference35 = ref span42[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - ref QuestStep reference36 = ref CollectionsMarshal.AsSpan(list43)[0]; + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + ref QuestStep reference36 = ref span43[num2]; QuestStep obj44 = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -26285,17 +31645,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = 130; + num4 = 1; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + Span span44 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span44[num3] = 130; obj45.InTerritory = list44; skipConditions9.AetheryteShortcutIf = obj45; obj44.SkipConditions = skipConditions9; reference36 = obj44; obj43.Steps = list43; reference35 = obj43; - ref QuestSequence reference37 = ref span9[1]; + num++; + ref QuestSequence reference37 = ref span42[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -26303,8 +31666,9 @@ public static class AssemblyQuestLoader num2 = 4; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span10 = CollectionsMarshal.AsSpan(list45); - ref QuestStep reference38 = ref span10[0]; + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + ref QuestStep reference38 = ref span45[index2]; QuestStep obj47 = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, @@ -26315,28 +31679,37 @@ public static class AssemblyQuestLoader num3 = 1; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = 140; + Span span46 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span46[num4] = 140; skipStepConditions.InTerritory = list46; skipConditions10.StepIf = skipStepConditions; obj47.SkipConditions = skipConditions10; reference38 = obj47; - span10[1] = new QuestStep(EInteractionType.Interact, 1004070u, new Vector3(-455.86328f, 23.11398f, -326.92456f), 140); - span10[2] = new QuestStep(EInteractionType.Interact, 1004096u, new Vector3(-444.75476f, 25f, -324.26947f), 140); - span10[3] = new QuestStep(EInteractionType.Interact, 1004094u, new Vector3(-413.47375f, 23.113977f, -383.71863f), 140); + index2++; + span45[index2] = new QuestStep(EInteractionType.Interact, 1004070u, new Vector3(-455.86328f, 23.11398f, -326.92456f), 140); + index2++; + span45[index2] = new QuestStep(EInteractionType.Interact, 1004096u, new Vector3(-444.75476f, 25f, -324.26947f), 140); + index2++; + span45[index2] = new QuestStep(EInteractionType.Interact, 1004094u, new Vector3(-413.47375f, 23.113977f, -383.71863f), 140); obj46.Steps = list45; reference37 = obj46; - ref QuestSequence reference39 = ref span9[2]; + num++; + ref QuestSequence reference39 = ref span42[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1002316u, new Vector3(-436.72852f, 23.774809f, -350.8202f), 140); + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.Interact, 1002316u, new Vector3(-436.72852f, 23.774809f, -350.8202f), 140); obj48.Steps = list47; reference39 = obj48; - ref QuestSequence reference40 = ref span9[3]; + num++; + ref QuestSequence reference40 = ref span42[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -26344,32 +31717,40 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list48)[0]; + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + ref QuestStep reference41 = ref span48[index2]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, 1002315u, new Vector3(-392.32477f, 23.557693f, -546.9902f), 140) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = 1239u; + num4 = 1; + List list49 = new List(num4); + CollectionsMarshal.SetCount(list49, num4); + Span span49 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span49[num3] = 1239u; obj50.KillEnemyDataIds = list49; reference41 = obj50; obj49.Steps = list48; reference40 = obj49; - ref QuestSequence reference42 = ref span9[4]; + num++; + ref QuestSequence reference42 = ref span42[num]; QuestSequence obj51 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1002315u, new Vector3(-392.32477f, 23.557693f, -546.9902f), 140); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.Interact, 1002315u, new Vector3(-392.32477f, 23.557693f, -546.9902f), 140); obj51.Steps = list50; reference42 = obj51; - ref QuestSequence reference43 = ref span9[5]; + num++; + ref QuestSequence reference43 = ref span42[num]; QuestSequence obj52 = new QuestSequence { Sequence = 5 @@ -26377,7 +31758,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list51)[0]; + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + ref QuestStep reference44 = ref span51[index2]; QuestStep obj53 = new QuestStep(EInteractionType.SinglePlayerDuty, 1002317u, new Vector3(-269.85577f, 15.346575f, -718.1354f), 140) { Fly = true @@ -26385,7 +31768,9 @@ public static class AssemblyQuestLoader num3 = 1; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice + Span span52 = CollectionsMarshal.AsSpan(list52); + num4 = 0; + span52[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSTHM300_00353_Q_000_1"), @@ -26395,15 +31780,18 @@ public static class AssemblyQuestLoader reference44 = obj53; obj52.Steps = list51; reference43 = obj52; - ref QuestSequence reference45 = ref span9[6]; + num++; + ref QuestSequence reference45 = ref span42[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list53)[0]; + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref QuestStep reference46 = ref span53[num2]; QuestStep obj55 = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -26418,10 +31806,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = 130; + num4 = 1; + List list54 = new List(num4); + CollectionsMarshal.SetCount(list54, num4); + Span span54 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span54[num3] = 130; obj56.InTerritory = list54; skipConditions11.AetheryteShortcutIf = obj56; obj55.SkipConditions = skipConditions11; @@ -26435,13 +31825,16 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; + Span span55 = CollectionsMarshal.AsSpan(list55); + index = 0; + span55[index] = "liza"; questRoot5.Author = list55; - num = 7; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span11 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference47 = ref span11[0]; + index = 7; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + Span span56 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference47 = ref span56[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -26449,18 +31842,23 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156); + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156); obj57.Steps = list57; reference47 = obj57; - ref QuestSequence reference48 = ref span11[1]; + num++; + ref QuestSequence reference48 = ref span56[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.Interact, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26474,7 +31872,8 @@ public static class AssemblyQuestLoader }; obj58.Steps = list58; reference48 = obj58; - ref QuestSequence reference49 = ref span11[2]; + num++; + ref QuestSequence reference49 = ref span56[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 @@ -26482,8 +31881,9 @@ public static class AssemblyQuestLoader num2 = 2; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span12 = CollectionsMarshal.AsSpan(list59); - ref QuestStep reference50 = ref span12[0]; + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + ref QuestStep reference50 = ref span59[index2]; QuestStep obj60 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -26495,16 +31895,23 @@ public static class AssemblyQuestLoader num3 = 6; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - Span span13 = CollectionsMarshal.AsSpan(list60); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span60 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span60[num4] = null; + num4++; + span60[num4] = null; + num4++; + span60[num4] = null; + num4++; + span60[num4] = null; + num4++; + span60[num4] = null; + num4++; + span60[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj60.CompletionQuestVariablesFlags = list60; reference50 = obj60; - ref QuestStep reference51 = ref span12[1]; + index2++; + ref QuestStep reference51 = ref span59[index2]; QuestStep obj61 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -26513,29 +31920,38 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 20u } }; - num3 = 6; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span14 = CollectionsMarshal.AsSpan(list61); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list61 = new List(num4); + CollectionsMarshal.SetCount(list61, num4); + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj61.CompletionQuestVariablesFlags = list61; reference51 = obj61; obj59.Steps = list59; reference49 = obj59; - ref QuestSequence reference52 = ref span11[3]; + num++; + ref QuestSequence reference52 = ref span56[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.Interact, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26549,7 +31965,8 @@ public static class AssemblyQuestLoader }; obj62.Steps = list62; reference52 = obj62; - ref QuestSequence reference53 = ref span11[4]; + num++; + ref QuestSequence reference53 = ref span56[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -26557,8 +31974,9 @@ public static class AssemblyQuestLoader num2 = 2; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span15 = CollectionsMarshal.AsSpan(list63); - ref QuestStep reference54 = ref span15[0]; + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + ref QuestStep reference54 = ref span63[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -26570,16 +31988,23 @@ public static class AssemblyQuestLoader num3 = 6; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span16 = CollectionsMarshal.AsSpan(list64); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span64 = CollectionsMarshal.AsSpan(list64); + num4 = 0; + span64[num4] = null; + num4++; + span64[num4] = null; + num4++; + span64[num4] = null; + num4++; + span64[num4] = null; + num4++; + span64[num4] = null; + num4++; + span64[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj64.CompletionQuestVariablesFlags = list64; reference54 = obj64; - ref QuestStep reference55 = ref span15[1]; + index2++; + ref QuestStep reference55 = ref span63[index2]; QuestStep obj65 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -26588,29 +32013,38 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 27u } }; - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span17 = CollectionsMarshal.AsSpan(list65); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list65 = new List(num4); + CollectionsMarshal.SetCount(list65, num4); + Span span65 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj65.CompletionQuestVariablesFlags = list65; reference55 = obj65; obj63.Steps = list63; reference53 = obj63; - ref QuestSequence reference56 = ref span11[5]; + num++; + ref QuestSequence reference56 = ref span56[num]; QuestSequence obj66 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.Interact, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26624,7 +32058,8 @@ public static class AssemblyQuestLoader }; obj66.Steps = list66; reference56 = obj66; - ref QuestSequence reference57 = ref span11[6]; + num++; + ref QuestSequence reference57 = ref span56[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -26632,7 +32067,9 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26653,22 +32090,26 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "liza"; + Span span68 = CollectionsMarshal.AsSpan(list68); + index = 0; + span68[index] = "liza"; questRoot6.Author = list68; - num = 8; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span18 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference58 = ref span18[0]; + index = 8; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + Span span69 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference58 = ref span69[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span19 = CollectionsMarshal.AsSpan(list70); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) + index2 = 2; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26680,13 +32121,15 @@ public static class AssemblyQuestLoader } } }; - span19[1] = new QuestStep(EInteractionType.AcceptQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + num2++; + span70[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; obj68.Steps = list70; reference58 = obj68; - ref QuestSequence reference59 = ref span18[1]; + num++; + ref QuestSequence reference59 = ref span69[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 @@ -26694,8 +32137,9 @@ public static class AssemblyQuestLoader num2 = 2; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span20 = CollectionsMarshal.AsSpan(list71); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26707,22 +32151,25 @@ public static class AssemblyQuestLoader } } }; - span20[1] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + index2++; + span71[index2] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; obj69.Steps = list71; reference59 = obj69; - ref QuestSequence reference60 = ref span18[2]; + num++; + ref QuestSequence reference60 = ref span69[num]; QuestSequence obj70 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span21 = CollectionsMarshal.AsSpan(list72); - ref QuestStep reference61 = ref span21[0]; + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + ref QuestStep reference61 = ref span72[num2]; QuestStep obj71 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -26734,16 +32181,23 @@ public static class AssemblyQuestLoader num3 = 6; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - Span span22 = CollectionsMarshal.AsSpan(list73); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span73 = CollectionsMarshal.AsSpan(list73); + num4 = 0; + span73[num4] = null; + num4++; + span73[num4] = null; + num4++; + span73[num4] = null; + num4++; + span73[num4] = null; + num4++; + span73[num4] = null; + num4++; + span73[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj71.CompletionQuestVariablesFlags = list73; reference61 = obj71; - ref QuestStep reference62 = ref span21[1]; + num2++; + ref QuestStep reference62 = ref span72[num2]; QuestStep obj72 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -26752,21 +32206,28 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 19u } }; - num3 = 6; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - Span span23 = CollectionsMarshal.AsSpan(list74); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list74 = new List(num4); + CollectionsMarshal.SetCount(list74, num4); + Span span74 = CollectionsMarshal.AsSpan(list74); + num3 = 0; + span74[num3] = null; + num3++; + span74[num3] = null; + num3++; + span74[num3] = null; + num3++; + span74[num3] = null; + num3++; + span74[num3] = null; + num3++; + span74[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj72.CompletionQuestVariablesFlags = list74; reference62 = obj72; obj70.Steps = list72; reference60 = obj70; - ref QuestSequence reference63 = ref span18[3]; + num++; + ref QuestSequence reference63 = ref span69[num]; QuestSequence obj73 = new QuestSequence { Sequence = 3 @@ -26774,8 +32235,9 @@ public static class AssemblyQuestLoader num2 = 2; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span24 = CollectionsMarshal.AsSpan(list75); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26787,22 +32249,25 @@ public static class AssemblyQuestLoader } } }; - span24[1] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + index2++; + span75[index2] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; obj73.Steps = list75; reference63 = obj73; - ref QuestSequence reference64 = ref span18[4]; + num++; + ref QuestSequence reference64 = ref span69[num]; QuestSequence obj74 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span25 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference65 = ref span25[0]; + index2 = 2; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + ref QuestStep reference65 = ref span76[num2]; QuestStep obj75 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -26814,16 +32279,23 @@ public static class AssemblyQuestLoader num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - Span span26 = CollectionsMarshal.AsSpan(list77); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span77 = CollectionsMarshal.AsSpan(list77); + num4 = 0; + span77[num4] = null; + num4++; + span77[num4] = null; + num4++; + span77[num4] = null; + num4++; + span77[num4] = null; + num4++; + span77[num4] = null; + num4++; + span77[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj75.CompletionQuestVariablesFlags = list77; reference65 = obj75; - ref QuestStep reference66 = ref span25[1]; + num2++; + ref QuestStep reference66 = ref span76[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -26832,21 +32304,28 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 28u } }; - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span27 = CollectionsMarshal.AsSpan(list78); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list78 = new List(num4); + CollectionsMarshal.SetCount(list78, num4); + Span span78 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj76.CompletionQuestVariablesFlags = list78; reference66 = obj76; obj74.Steps = list76; reference64 = obj74; - ref QuestSequence reference67 = ref span18[5]; + num++; + ref QuestSequence reference67 = ref span69[num]; QuestSequence obj77 = new QuestSequence { Sequence = 5 @@ -26854,8 +32333,9 @@ public static class AssemblyQuestLoader num2 = 2; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span28 = CollectionsMarshal.AsSpan(list79); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26867,22 +32347,25 @@ public static class AssemblyQuestLoader } } }; - span28[1] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + index2++; + span79[index2] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; obj77.Steps = list79; reference67 = obj77; - ref QuestSequence reference68 = ref span18[6]; + num++; + ref QuestSequence reference68 = ref span69[num]; QuestSequence obj78 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span29 = CollectionsMarshal.AsSpan(list80); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) + index2 = 2; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26894,13 +32377,15 @@ public static class AssemblyQuestLoader } } }; - span29[1] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + num2++; + span80[num2] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; obj78.Steps = list80; reference68 = obj78; - ref QuestSequence reference69 = ref span18[7]; + num++; + ref QuestSequence reference69 = ref span69[num]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue @@ -26908,8 +32393,9 @@ public static class AssemblyQuestLoader num2 = 2; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span30 = CollectionsMarshal.AsSpan(list81); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -26921,7 +32407,8 @@ public static class AssemblyQuestLoader } } }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + index2++; + span81[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; @@ -26934,24 +32421,30 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "liza"; + Span span82 = CollectionsMarshal.AsSpan(list82); + index = 0; + span82[index] = "liza"; questRoot7.Author = list82; - num = 11; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span31 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference70 = ref span31[0]; + index = 11; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + Span span83 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference70 = ref span83[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141); + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141); obj80.Steps = list84; reference70 = obj80; - ref QuestSequence reference71 = ref span31[1]; + num++; + ref QuestSequence reference71 = ref span83[num]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -26959,7 +32452,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Duty, null, null, 141) + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.Duty, null, null, 141) { DutyOptions = new DutyOptions { @@ -26969,15 +32464,18 @@ public static class AssemblyQuestLoader }; obj81.Steps = list85; reference71 = obj81; - ref QuestSequence reference72 = ref span31[2]; + num++; + ref QuestSequence reference72 = ref span83[num]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -26991,7 +32489,8 @@ public static class AssemblyQuestLoader }; obj82.Steps = list86; reference72 = obj82; - ref QuestSequence reference73 = ref span31[3]; + num++; + ref QuestSequence reference73 = ref span83[num]; QuestSequence obj83 = new QuestSequence { Sequence = 3 @@ -26999,7 +32498,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Duty, null, null, 141) + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.Duty, null, null, 141) { DutyOptions = new DutyOptions { @@ -27009,15 +32510,18 @@ public static class AssemblyQuestLoader }; obj83.Steps = list87; reference73 = obj83; - ref QuestSequence reference74 = ref span31[4]; + num++; + ref QuestSequence reference74 = ref span83[num]; QuestSequence obj84 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -27031,7 +32535,8 @@ public static class AssemblyQuestLoader }; obj84.Steps = list88; reference74 = obj84; - ref QuestSequence reference75 = ref span31[5]; + num++; + ref QuestSequence reference75 = ref span83[num]; QuestSequence obj85 = new QuestSequence { Sequence = 5 @@ -27039,7 +32544,9 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Duty, null, null, 141) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.Duty, null, null, 141) { DutyOptions = new DutyOptions { @@ -27049,15 +32556,18 @@ public static class AssemblyQuestLoader }; obj85.Steps = list89; reference75 = obj85; - ref QuestSequence reference76 = ref span31[6]; + num++; + ref QuestSequence reference76 = ref span83[num]; QuestSequence obj86 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -27071,7 +32581,8 @@ public static class AssemblyQuestLoader }; obj86.Steps = list90; reference76 = obj86; - ref QuestSequence reference77 = ref span31[7]; + num++; + ref QuestSequence reference77 = ref span83[num]; QuestSequence obj87 = new QuestSequence { Sequence = 7 @@ -27079,7 +32590,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Duty, null, null, 141) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.Duty, null, null, 141) { DutyOptions = new DutyOptions { @@ -27089,15 +32602,18 @@ public static class AssemblyQuestLoader }; obj87.Steps = list91; reference77 = obj87; - ref QuestSequence reference78 = ref span31[8]; + num++; + ref QuestSequence reference78 = ref span83[num]; QuestSequence obj88 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -27111,7 +32627,8 @@ public static class AssemblyQuestLoader }; obj88.Steps = list92; reference78 = obj88; - ref QuestSequence reference79 = ref span31[9]; + num++; + ref QuestSequence reference79 = ref span83[num]; QuestSequence obj89 = new QuestSequence { Sequence = 9 @@ -27119,7 +32636,9 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -27133,15 +32652,18 @@ public static class AssemblyQuestLoader }; obj89.Steps = list93; reference79 = obj89; - ref QuestSequence reference80 = ref span31[10]; + num++; + ref QuestSequence reference80 = ref span83[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) { Fly = true, SkipConditions = new SkipConditions @@ -27161,13 +32683,16 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = "liza"; + Span span95 = CollectionsMarshal.AsSpan(list95); + index = 0; + span95[index] = "liza"; questRoot8.Author = list95; - num = 8; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - Span span32 = CollectionsMarshal.AsSpan(list96); - ref QuestSequence reference81 = ref span32[0]; + index = 8; + List list96 = new List(index); + CollectionsMarshal.SetCount(list96, index); + Span span96 = CollectionsMarshal.AsSpan(list96); + num = 0; + ref QuestSequence reference81 = ref span96[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -27175,18 +32700,23 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006981u, new Vector3(25.711426f, 28.999966f, -738.21625f), 156); + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006981u, new Vector3(25.711426f, 28.999966f, -738.21625f), 156); obj91.Steps = list97; reference81 = obj91; - ref QuestSequence reference82 = ref span32[1]; + num++; + ref QuestSequence reference82 = ref span96[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1006981u, new Vector3(25.711426f, 28.999966f, -738.21625f), 156) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.Interact, 1006981u, new Vector3(25.711426f, 28.999966f, -738.21625f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -27200,7 +32730,8 @@ public static class AssemblyQuestLoader }; obj92.Steps = list98; reference82 = obj92; - ref QuestSequence reference83 = ref span32[2]; + num++; + ref QuestSequence reference83 = ref span96[num]; QuestSequence obj93 = new QuestSequence { Sequence = 2 @@ -27208,7 +32739,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch, @@ -27222,16 +32755,18 @@ public static class AssemblyQuestLoader }; obj93.Steps = list99; reference83 = obj93; - ref QuestSequence reference84 = ref span32[3]; + num++; + ref QuestSequence reference84 = ref span96[num]; QuestSequence obj94 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span33 = CollectionsMarshal.AsSpan(list100); - ref QuestStep reference85 = ref span33[0]; + index2 = 3; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference85 = ref span100[num2]; QuestStep obj95 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -27243,16 +32778,23 @@ public static class AssemblyQuestLoader num3 = 6; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span34 = CollectionsMarshal.AsSpan(list101); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span101 = CollectionsMarshal.AsSpan(list101); + num4 = 0; + span101[num4] = null; + num4++; + span101[num4] = null; + num4++; + span101[num4] = null; + num4++; + span101[num4] = null; + num4++; + span101[num4] = null; + num4++; + span101[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj95.CompletionQuestVariablesFlags = list101; reference85 = obj95; - ref QuestStep reference86 = ref span33[1]; + num2++; + ref QuestStep reference86 = ref span100[num2]; QuestStep obj96 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -27261,19 +32803,26 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 17u } }; - num3 = 6; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - Span span35 = CollectionsMarshal.AsSpan(list102); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list102 = new List(num4); + CollectionsMarshal.SetCount(list102, num4); + Span span102 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list102; reference86 = obj96; - ref QuestStep reference87 = ref span33[2]; + num2++; + ref QuestStep reference87 = ref span100[num2]; QuestStep obj97 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -27285,18 +32834,25 @@ public static class AssemblyQuestLoader num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - Span span36 = CollectionsMarshal.AsSpan(list103); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span103 = CollectionsMarshal.AsSpan(list103); + num4 = 0; + span103[num4] = null; + num4++; + span103[num4] = null; + num4++; + span103[num4] = null; + num4++; + span103[num4] = null; + num4++; + span103[num4] = null; + num4++; + span103[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj97.CompletionQuestVariablesFlags = list103; reference87 = obj97; obj94.Steps = list100; reference84 = obj94; - ref QuestSequence reference88 = ref span32[4]; + num++; + ref QuestSequence reference88 = ref span96[num]; QuestSequence obj98 = new QuestSequence { Sequence = 4 @@ -27304,7 +32860,9 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch, @@ -27318,15 +32876,18 @@ public static class AssemblyQuestLoader }; obj98.Steps = list104; reference88 = obj98; - ref QuestSequence reference89 = ref span32[5]; + num++; + ref QuestSequence reference89 = ref span96[num]; QuestSequence obj99 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Duty, null, null, 156) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions { @@ -27336,7 +32897,8 @@ public static class AssemblyQuestLoader }; obj99.Steps = list105; reference89 = obj99; - ref QuestSequence reference90 = ref span32[6]; + num++; + ref QuestSequence reference90 = ref span96[num]; QuestSequence obj100 = new QuestSequence { Sequence = 6 @@ -27344,7 +32906,9 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch, @@ -27358,15 +32922,18 @@ public static class AssemblyQuestLoader }; obj100.Steps = list106; reference90 = obj100; - ref QuestSequence reference91 = ref span32[7]; + num++; + ref QuestSequence reference91 = ref span96[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006981u, new Vector3(25.711426f, 28.999966f, -738.21625f), 156) + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006981u, new Vector3(25.711426f, 28.999966f, -738.21625f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -27387,13 +32954,16 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; + Span span108 = CollectionsMarshal.AsSpan(list108); + index = 0; + span108[index] = "liza"; questRoot9.Author = list108; - num = 9; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span37 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference92 = ref span37[0]; + index = 9; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + Span span109 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference92 = ref span109[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -27401,7 +32971,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -27414,24 +32986,28 @@ public static class AssemblyQuestLoader }; obj102.Steps = list110; reference92 = obj102; - ref QuestSequence reference93 = ref span37[1]; + num++; + ref QuestSequence reference93 = ref span109[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span38 = CollectionsMarshal.AsSpan(list111); - span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + index2 = 2; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; - span38[1] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num2++; + span111[num2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); obj103.Steps = list111; reference93 = obj103; - ref QuestSequence reference94 = ref span37[2]; + num++; + ref QuestSequence reference94 = ref span109[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 @@ -27439,29 +33015,35 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Emote, 1010813u, new Vector3(218.92114f, 10.293846f, -75.12018f), 153) + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.Emote, 1010813u, new Vector3(218.92114f, 10.293846f, -75.12018f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, Emote = EEmote.Rally }; obj104.Steps = list112; reference94 = obj104; - ref QuestSequence reference95 = ref span37[3]; + num++; + ref QuestSequence reference95 = ref span109[num]; QuestSequence obj105 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Emote, 1010814u, new Vector3(-47.837036f, 3.0947418f, -44.663208f), 153) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.Emote, 1010814u, new Vector3(-47.837036f, 3.0947418f, -44.663208f), 153) { Fly = true, Emote = EEmote.Cheer }; obj105.Steps = list113; reference95 = obj105; - ref QuestSequence reference96 = ref span37[4]; + num++; + ref QuestSequence reference96 = ref span109[num]; QuestSequence obj106 = new QuestSequence { Sequence = 4 @@ -27469,17 +33051,21 @@ public static class AssemblyQuestLoader num2 = 2; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span39 = CollectionsMarshal.AsSpan(list114); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) { Fly = true }; - ref QuestStep reference97 = ref span39[1]; + index2++; + ref QuestStep reference97 = ref span114[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1010815u, new Vector3(-168.26129f, 9.869229f, -79.54535f), 153); - num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = new DialogueChoice + num4 = 1; + List list115 = new List(num4); + CollectionsMarshal.SetCount(list115, num4); + Span span115 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span115[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST030_00362_Q1_000_000"), @@ -27489,15 +33075,18 @@ public static class AssemblyQuestLoader reference97 = questStep; obj106.Steps = list114; reference96 = obj106; - ref QuestSequence reference98 = ref span37[5]; + num++; + ref QuestSequence reference98 = ref span109[num]; QuestSequence obj107 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1010816u, new Vector3(22.079773f, -19.000006f, 106.1875f), 132) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.Interact, 1010816u, new Vector3(22.079773f, -19.000006f, 106.1875f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -27508,7 +33097,8 @@ public static class AssemblyQuestLoader }; obj107.Steps = list116; reference98 = obj107; - ref QuestSequence reference99 = ref span37[6]; + num++; + ref QuestSequence reference99 = ref span109[num]; QuestSequence obj108 = new QuestSequence { Sequence = 6 @@ -27516,34 +33106,41 @@ public static class AssemblyQuestLoader num2 = 2; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span40 = CollectionsMarshal.AsSpan(list117); - span40[0] = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) { TargetTerritoryId = (ushort)128 }; - span40[1] = new QuestStep(EInteractionType.Interact, 1010818u, new Vector3(-13.01593f, 91.5f, -18.234558f), 128); + index2++; + span117[index2] = new QuestStep(EInteractionType.Interact, 1010818u, new Vector3(-13.01593f, 91.5f, -18.234558f), 128); obj108.Steps = list117; reference99 = obj108; - ref QuestSequence reference100 = ref span37[7]; + num++; + ref QuestSequence reference100 = ref span109[num]; QuestSequence obj109 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span41 = CollectionsMarshal.AsSpan(list118); - span41[0] = new QuestStep(EInteractionType.Interact, 1003583u, new Vector3(-7.248047f, 91.49999f, -16.128845f), 128) + index2 = 2; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.Interact, 1003583u, new Vector3(-7.248047f, 91.49999f, -16.128845f), 128) { StopDistance = 7f, TargetTerritoryId = (ushort)128 }; - ref QuestStep reference101 = ref span41[1]; + num2++; + ref QuestStep reference101 = ref span118[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1010819u, new Vector3(17.013733f, 40.216007f, -3.8605957f), 128); num3 = 1; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = new DialogueChoice + Span span119 = CollectionsMarshal.AsSpan(list119); + num4 = 0; + span119[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST030_00362_Q2_000_000"), @@ -27553,7 +33150,8 @@ public static class AssemblyQuestLoader reference101 = questStep2; obj109.Steps = list118; reference100 = obj109; - ref QuestSequence reference102 = ref span37[8]; + num++; + ref QuestSequence reference102 = ref span109[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -27561,7 +33159,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010822u, new Vector3(-209.88788f, 54.829185f, -196.03265f), 152) + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010822u, new Vector3(-209.88788f, 54.829185f, -196.03265f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -27575,22 +33175,26 @@ public static class AssemblyQuestLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "JerryWester"; + Span span121 = CollectionsMarshal.AsSpan(list121); + index = 0; + span121[index] = "JerryWester"; questRoot10.Author = list121; - num = 3; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - Span span42 = CollectionsMarshal.AsSpan(list122); - ref QuestSequence reference103 = ref span42[0]; + index = 3; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + Span span122 = CollectionsMarshal.AsSpan(list122); + num = 0; + ref QuestSequence reference103 = ref span122[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - Span span43 = CollectionsMarshal.AsSpan(list123); - ref QuestStep reference104 = ref span43[0]; + index2 = 3; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + ref QuestStep reference104 = ref span123[num2]; QuestStep obj112 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -27598,22 +33202,27 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = 351; + num4 = 1; + List list124 = new List(num4); + CollectionsMarshal.SetCount(list124, num4); + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span124[num3] = 351; skipStepConditions2.InTerritory = list124; skipConditions12.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); num3 = 1; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - CollectionsMarshal.AsSpan(list125)[0] = 351; + Span span125 = CollectionsMarshal.AsSpan(list125); + num4 = 0; + span125[num4] = 351; skipAetheryteCondition.InTerritory = list125; skipConditions12.AetheryteShortcutIf = skipAetheryteCondition; obj112.SkipConditions = skipConditions12; reference104 = obj112; - span43[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span123[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -27624,10 +33233,12 @@ public static class AssemblyQuestLoader } } }; - span43[2] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + num2++; + span123[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); obj111.Steps = list123; reference103 = obj111; - ref QuestSequence reference105 = ref span42[1]; + num++; + ref QuestSequence reference105 = ref span122[num]; QuestSequence obj113 = new QuestSequence { Sequence = 1 @@ -27635,23 +33246,28 @@ public static class AssemblyQuestLoader num2 = 2; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span44 = CollectionsMarshal.AsSpan(list126); - span44[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span126[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span44[1] = new QuestStep(EInteractionType.Interact, 1010844u, new Vector3(3.0670166f, 0.009977885f, -4.287842f), 351); + index2++; + span126[index2] = new QuestStep(EInteractionType.Interact, 1010844u, new Vector3(3.0670166f, 0.009977885f, -4.287842f), 351); obj113.Steps = list126; reference105 = obj113; - ref QuestSequence reference106 = ref span42[2]; + num++; + ref QuestSequence reference106 = ref span122[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010845u, new Vector3(-17.227417f, -10.015114f, -18.509216f), 145) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010845u, new Vector3(-17.227417f, -10.015114f, -18.509216f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone @@ -27665,13 +33281,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "JerryWester"; + Span span128 = CollectionsMarshal.AsSpan(list128); + index = 0; + span128[index] = "JerryWester"; questRoot11.Author = list128; - num = 5; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span45 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference107 = ref span45[0]; + index = 5; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + Span span129 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference107 = ref span129[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -27679,7 +33298,9 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010845u, new Vector3(-17.227417f, -10.015114f, -18.509216f), 145) + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span130[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010845u, new Vector3(-17.227417f, -10.015114f, -18.509216f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -27692,21 +33313,25 @@ public static class AssemblyQuestLoader }; obj115.Steps = list130; reference107 = obj115; - ref QuestSequence reference108 = ref span45[1]; + num++; + ref QuestSequence reference108 = ref span129[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1010846u, new Vector3(349.08057f, 23.131361f, 103.80713f), 145) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span131[num2] = new QuestStep(EInteractionType.Interact, 1010846u, new Vector3(349.08057f, 23.131361f, 103.80713f), 145) { Fly = true }; obj116.Steps = list131; reference108 = obj116; - ref QuestSequence reference109 = ref span45[2]; + num++; + ref QuestSequence reference109 = ref span129[num]; QuestSequence obj117 = new QuestSequence { Sequence = 2 @@ -27714,39 +33339,49 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list132)[0]; + Span span132 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + ref QuestStep reference110 = ref span132[index2]; QuestStep obj118 = new QuestStep(EInteractionType.Combat, 1010847u, new Vector3(333.6079f, -11.123097f, 141.55786f), 145) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 4; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - Span span46 = CollectionsMarshal.AsSpan(list133); - span46[0] = 363u; - span46[1] = 372u; - span46[2] = 364u; - span46[3] = 2844u; + num4 = 4; + List list133 = new List(num4); + CollectionsMarshal.SetCount(list133, num4); + Span span133 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span133[num3] = 363u; + num3++; + span133[num3] = 372u; + num3++; + span133[num3] = 364u; + num3++; + span133[num3] = 2844u; obj118.KillEnemyDataIds = list133; reference110 = obj118; obj117.Steps = list132; reference109 = obj117; - ref QuestSequence reference111 = ref span45[3]; + num++; + ref QuestSequence reference111 = ref span129[num]; QuestSequence obj119 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2005112u, new Vector3(199.6947f, -14.725037f, 162.46277f), 145) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.Interact, 2005112u, new Vector3(199.6947f, -14.725037f, 162.46277f), 145) { Fly = true }; obj119.Steps = list134; reference111 = obj119; - ref QuestSequence reference112 = ref span45[4]; + num++; + ref QuestSequence reference112 = ref span129[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -27754,7 +33389,9 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010849u, new Vector3(192.401f, -27.487204f, 199.32861f), 145); + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010849u, new Vector3(192.401f, -27.487204f, 199.32861f), 145); obj120.Steps = list135; reference112 = obj120; questRoot11.QuestSequence = list129; @@ -27764,24 +33401,30 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - CollectionsMarshal.AsSpan(list136)[0] = "JerryWester"; + Span span136 = CollectionsMarshal.AsSpan(list136); + index = 0; + span136[index] = "JerryWester"; questRoot12.Author = list136; - num = 5; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - Span span47 = CollectionsMarshal.AsSpan(list137); - ref QuestSequence reference113 = ref span47[0]; + index = 5; + List list137 = new List(index); + CollectionsMarshal.SetCount(list137, index); + Span span137 = CollectionsMarshal.AsSpan(list137); + num = 0; + ref QuestSequence reference113 = ref span137[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010849u, new Vector3(192.401f, -27.487204f, 199.32861f), 145); + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010849u, new Vector3(192.401f, -27.487204f, 199.32861f), 145); obj121.Steps = list138; reference113 = obj121; - ref QuestSequence reference114 = ref span47[1]; + num++; + ref QuestSequence reference114 = ref span137[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -27789,18 +33432,23 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 2005113u, new Vector3(192.88928f, -26.657532f, 203.60107f), 145); + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.Interact, 2005113u, new Vector3(192.88928f, -26.657532f, 203.60107f), 145); obj122.Steps = list139; reference114 = obj122; - ref QuestSequence reference115 = ref span47[2]; + num++; + ref QuestSequence reference115 = ref span137[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1010850u, new Vector3(53.3302f, 10.000122f, -10.208313f), 131) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.Interact, 1010850u, new Vector3(53.3302f, 10.000122f, -10.208313f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -27811,7 +33459,8 @@ public static class AssemblyQuestLoader }; obj123.Steps = list140; reference115 = obj123; - ref QuestSequence reference116 = ref span47[3]; + num++; + ref QuestSequence reference116 = ref span137[num]; QuestSequence obj124 = new QuestSequence { Sequence = 3 @@ -27819,7 +33468,9 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 1010853u, new Vector3(137.25476f, 4f, -20.584473f), 131) + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.Interact, 1010853u, new Vector3(137.25476f, 4f, -20.584473f), 131) { AethernetShortcut = new AethernetShortcut { @@ -27829,21 +33480,24 @@ public static class AssemblyQuestLoader }; obj124.Steps = list141; reference116 = obj124; - ref QuestSequence reference117 = ref span47[4]; + num++; + ref QuestSequence reference117 = ref span137[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span48 = CollectionsMarshal.AsSpan(list142); - span48[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 2; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span48[1] = new QuestStep(EInteractionType.CompleteQuest, 1010891u, new Vector3(-3.6774292f, 0.01804012f, -7.034485f), 351); + num2++; + span142[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010891u, new Vector3(-3.6774292f, 0.01804012f, -7.034485f), 351); obj125.Steps = list142; reference117 = obj125; questRoot12.QuestSequence = list137; @@ -27853,13 +33507,16 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "JerryWester"; + Span span143 = CollectionsMarshal.AsSpan(list143); + index = 0; + span143[index] = "JerryWester"; questRoot13.Author = list143; - num = 8; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span49 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference118 = ref span49[0]; + index = 8; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + Span span144 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference118 = ref span144[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 @@ -27867,26 +33524,32 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010891u, new Vector3(-3.6774292f, 0.01804012f, -7.034485f), 351); + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010891u, new Vector3(-3.6774292f, 0.01804012f, -7.034485f), 351); obj126.Steps = list145; reference118 = obj126; - ref QuestSequence reference119 = ref span49[1]; + num++; + ref QuestSequence reference119 = ref span144[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - Span span50 = CollectionsMarshal.AsSpan(list146); - span50[0] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2 = 2; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span50[1] = new QuestStep(EInteractionType.Interact, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + num2++; + span146[num2] = new QuestStep(EInteractionType.Interact, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); obj127.Steps = list146; reference119 = obj127; - ref QuestSequence reference120 = ref span49[2]; + num++; + ref QuestSequence reference120 = ref span144[num]; QuestSequence obj128 = new QuestSequence { Sequence = 2 @@ -27894,35 +33557,43 @@ public static class AssemblyQuestLoader num2 = 5; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span51 = CollectionsMarshal.AsSpan(list147); - span51[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) { TargetTerritoryId = (ushort)351 }; - span51[1] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + index2++; + span147[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - span51[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + index2++; + span147[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - span51[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(337.01373f, -27.808102f, -369.0958f), 156) + index2++; + span147[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(337.01373f, -27.808102f, -369.0958f), 156) { Fly = true }; - span51[4] = new QuestStep(EInteractionType.Interact, 1010881u, new Vector3(336.3545f, -27.808832f, -369.7414f), 156); + index2++; + span147[index2] = new QuestStep(EInteractionType.Interact, 1010881u, new Vector3(336.3545f, -27.808832f, -369.7414f), 156); obj128.Steps = list147; reference120 = obj128; - ref QuestSequence reference121 = ref span49[3]; + num++; + ref QuestSequence reference121 = ref span144[num]; QuestSequence obj129 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Duty, null, null, 156) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions { @@ -27932,11 +33603,13 @@ public static class AssemblyQuestLoader }; obj129.Steps = list148; reference121 = obj129; - span49[4] = new QuestSequence + num++; + span144[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference122 = ref span49[5]; + num++; + ref QuestSequence reference122 = ref span144[num]; QuestSequence obj130 = new QuestSequence { Sequence = 5 @@ -27944,34 +33617,41 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1010881u, new Vector3(336.3545f, -27.808832f, -369.7414f), 156) + Span span149 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span149[index2] = new QuestStep(EInteractionType.Interact, 1010881u, new Vector3(336.3545f, -27.808832f, -369.7414f), 156) { StopDistance = 7f }; obj130.Steps = list149; reference122 = obj130; - ref QuestSequence reference123 = ref span49[6]; + num++; + ref QuestSequence reference123 = ref span144[num]; QuestSequence obj131 = new QuestSequence { Sequence = 6 }; - num2 = 3; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - Span span52 = CollectionsMarshal.AsSpan(list150); - span52[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span52[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span150[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span52[2] = new QuestStep(EInteractionType.Interact, 1010857u, new Vector3(2.5481567f, -1.9957249f, -42.008118f), 351); + num2++; + span150[num2] = new QuestStep(EInteractionType.Interact, 1010857u, new Vector3(2.5481567f, -1.9957249f, -42.008118f), 351); obj131.Steps = list150; reference123 = obj131; - ref QuestSequence reference124 = ref span49[7]; + num++; + ref QuestSequence reference124 = ref span144[num]; QuestSequence obj132 = new QuestSequence { Sequence = byte.MaxValue @@ -27979,7 +33659,9 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010858u, new Vector3(-1.9074707f, 0f, -3.1281738f), 351) + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010858u, new Vector3(-1.9074707f, 0f, -3.1281738f), 351) { StopDistance = 7f }; @@ -27992,27 +33674,33 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = "JerryWester"; + Span span152 = CollectionsMarshal.AsSpan(list152); + index = 0; + span152[index] = "JerryWester"; questRoot14.Author = list152; - num = 7; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span53 = CollectionsMarshal.AsSpan(list153); - ref QuestSequence reference125 = ref span53[0]; + index = 7; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + Span span153 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref QuestSequence reference125 = ref span153[num]; QuestSequence obj133 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) { StopDistance = 5f }; obj133.Steps = list154; reference125 = obj133; - ref QuestSequence reference126 = ref span53[1]; + num++; + ref QuestSequence reference126 = ref span153[num]; QuestSequence obj134 = new QuestSequence { Sequence = 1 @@ -28020,27 +33708,33 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1010924u, new Vector3(-72.129456f, 47f, -8.86554f), 147) + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new QuestStep(EInteractionType.Interact, 1010924u, new Vector3(-72.129456f, 47f, -8.86554f), 147) { Fly = true }; obj134.Steps = list155; reference126 = obj134; - ref QuestSequence reference127 = ref span53[2]; + num++; + ref QuestSequence reference127 = ref span153[num]; QuestSequence obj135 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1010867u, new Vector3(-133.92847f, 59.668938f, -94.22449f), 147) + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.Interact, 1010867u, new Vector3(-133.92847f, 59.668938f, -94.22449f), 147) { Fly = true }; obj135.Steps = list156; reference127 = obj135; - ref QuestSequence reference128 = ref span53[3]; + num++; + ref QuestSequence reference128 = ref span153[num]; QuestSequence obj136 = new QuestSequence { Sequence = 3 @@ -28048,7 +33742,9 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list157)[0]; + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + ref QuestStep reference129 = ref span157[index2]; QuestStep obj137 = new QuestStep(EInteractionType.Combat, null, new Vector3(-255.52438f, 60.28413f, -65.027f), 147) { StopDistance = 1f, @@ -28058,41 +33754,51 @@ public static class AssemblyQuestLoader num3 = 3; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - Span span54 = CollectionsMarshal.AsSpan(list158); - span54[0] = 55u; - span54[1] = 64u; - span54[2] = 3566u; + Span span158 = CollectionsMarshal.AsSpan(list158); + num4 = 0; + span158[num4] = 55u; + num4++; + span158[num4] = 64u; + num4++; + span158[num4] = 3566u; obj137.KillEnemyDataIds = list158; reference129 = obj137; obj136.Steps = list157; reference128 = obj136; - ref QuestSequence reference130 = ref span53[4]; + num++; + ref QuestSequence reference130 = ref span153[num]; QuestSequence obj138 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list159)[0]; + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + ref QuestStep reference131 = ref span159[num2]; QuestStep obj139 = new QuestStep(EInteractionType.Combat, null, new Vector3(-264.6515f, 82.28975f, -178.98473f), 147) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - Span span55 = CollectionsMarshal.AsSpan(list160); - span55[0] = 62u; - span55[1] = 3657u; - span55[2] = 3566u; + num4 = 3; + List list160 = new List(num4); + CollectionsMarshal.SetCount(list160, num4); + Span span160 = CollectionsMarshal.AsSpan(list160); + num3 = 0; + span160[num3] = 62u; + num3++; + span160[num3] = 3657u; + num3++; + span160[num3] = 3566u; obj139.KillEnemyDataIds = list160; reference131 = obj139; obj138.Steps = list159; reference130 = obj138; - ref QuestSequence reference132 = ref span53[5]; + num++; + ref QuestSequence reference132 = ref span153[num]; QuestSequence obj140 = new QuestSequence { Sequence = 5 @@ -28100,26 +33806,31 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1010876u, new Vector3(-110.36853f, 64.861916f, -127.27557f), 147) + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.Interact, 1010876u, new Vector3(-110.36853f, 64.861916f, -127.27557f), 147) { Fly = true }; obj140.Steps = list161; reference132 = obj140; - ref QuestSequence reference133 = ref span53[6]; + num++; + ref QuestSequence reference133 = ref span153[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span56 = CollectionsMarshal.AsSpan(list162); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-29.703922f, 46.983063f, 31.031008f), 147) + index2 = 2; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span162[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-29.703922f, 46.983063f, 31.031008f), 147) { Fly = true }; - span56[1] = new QuestStep(EInteractionType.CompleteQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147); + num2++; + span162[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147); obj141.Steps = list162; reference133 = obj141; questRoot14.QuestSequence = list153; @@ -28129,13 +33840,16 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "JerryWester"; + Span span163 = CollectionsMarshal.AsSpan(list163); + index = 0; + span163[index] = "JerryWester"; questRoot15.Author = list163; - num = 6; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span57 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference134 = ref span57[0]; + index = 6; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + Span span164 = CollectionsMarshal.AsSpan(list164); + num = 0; + ref QuestSequence reference134 = ref span164[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -28143,7 +33857,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, SkipConditions = new SkipConditions @@ -28156,23 +33872,27 @@ public static class AssemblyQuestLoader }; obj142.Steps = list165; reference134 = obj142; - ref QuestSequence reference135 = ref span57[1]; + num++; + ref QuestSequence reference135 = ref span164[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span58 = CollectionsMarshal.AsSpan(list166); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(140.28381f, 31.425474f, 23.662958f), 147) + index2 = 2; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(140.28381f, 31.425474f, 23.662958f), 147) { Fly = true }; - span58[1] = new QuestStep(EInteractionType.Interact, 1010879u, new Vector3(136.33923f, 31.9962f, 16.098267f), 147); + num2++; + span166[num2] = new QuestStep(EInteractionType.Interact, 1010879u, new Vector3(136.33923f, 31.9962f, 16.098267f), 147); obj143.Steps = list166; reference135 = obj143; - ref QuestSequence reference136 = ref span57[2]; + num++; + ref QuestSequence reference136 = ref span164[num]; QuestSequence obj144 = new QuestSequence { Sequence = 2 @@ -28180,22 +33900,27 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj144.Steps = list167; reference136 = obj144; - ref QuestSequence reference137 = ref span57[3]; + num++; + ref QuestSequence reference137 = ref span164[num]; QuestSequence obj145 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Duty, null, null, 351) + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.Duty, null, null, 351) { DutyOptions = new DutyOptions { @@ -28204,11 +33929,13 @@ public static class AssemblyQuestLoader }; obj145.Steps = list168; reference137 = obj145; - span57[4] = new QuestSequence + num++; + span164[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference138 = ref span57[5]; + num++; + ref QuestSequence reference138 = ref span164[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -28216,7 +33943,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011000u, new Vector3(-0.07635498f, -1.9957249f, -42.25226f), 351); + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011000u, new Vector3(-0.07635498f, -1.9957249f, -42.25226f), 351); obj146.Steps = list169; reference138 = obj146; questRoot15.QuestSequence = list164; @@ -28226,24 +33955,30 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "JerryWester"; + Span span170 = CollectionsMarshal.AsSpan(list170); + index = 0; + span170[index] = "JerryWester"; questRoot16.Author = list170; - num = 5; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - Span span59 = CollectionsMarshal.AsSpan(list171); - ref QuestSequence reference139 = ref span59[0]; + index = 5; + List list171 = new List(index); + CollectionsMarshal.SetCount(list171, index); + Span span171 = CollectionsMarshal.AsSpan(list171); + num = 0; + ref QuestSequence reference139 = ref span171[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span172[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); obj147.Steps = list172; reference139 = obj147; - ref QuestSequence reference140 = ref span59[1]; + num++; + ref QuestSequence reference140 = ref span171[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -28251,40 +33986,49 @@ public static class AssemblyQuestLoader num2 = 2; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span60 = CollectionsMarshal.AsSpan(list173); - span60[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) { TargetTerritoryId = (ushort)351 }; - span60[1] = new QuestStep(EInteractionType.Interact, 1010903u, new Vector3(24.887451f, -1f, -1.0223389f), 351); + index2++; + span173[index2] = new QuestStep(EInteractionType.Interact, 1010903u, new Vector3(24.887451f, -1f, -1.0223389f), 351); obj148.Steps = list173; reference140 = obj148; - ref QuestSequence reference141 = ref span59[2]; + num++; + ref QuestSequence reference141 = ref span171[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - Span span61 = CollectionsMarshal.AsSpan(list174); - span61[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + index2 = 5; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + num2++; + span174[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - span61[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) + num2++; + span174[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) { Fly = true }; - span61[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); - span61[4] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); + num2++; + span174[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); + num2++; + span174[num2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); obj149.Steps = list174; reference141 = obj149; - ref QuestSequence reference142 = ref span59[3]; + num++; + ref QuestSequence reference142 = ref span171[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -28292,37 +34036,44 @@ public static class AssemblyQuestLoader num2 = 3; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span62 = CollectionsMarshal.AsSpan(list175); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) + Span span175 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span175[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) { Fly = true }; - span62[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-145.66704f, 43.906273f, -189.70813f), 156) + index2++; + span175[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-145.66704f, 43.906273f, -189.70813f), 156) { Fly = true }; - span62[2] = new QuestStep(EInteractionType.Interact, 1010929u, new Vector3(-146.80713f, 43.495255f, -187.39612f), 156); + index2++; + span175[index2] = new QuestStep(EInteractionType.Interact, 1010929u, new Vector3(-146.80713f, 43.495255f, -187.39612f), 156); obj150.Steps = list175; reference142 = obj150; - ref QuestSequence reference143 = ref span59[4]; + num++; + ref QuestSequence reference143 = ref span171[num]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - Span span63 = CollectionsMarshal.AsSpan(list176); - span63[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + Span span176 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span176[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span63[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span176[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span63[2] = new QuestStep(EInteractionType.CompleteQuest, 1010930u, new Vector3(-1.2664795f, -1.9957249f, -42.069153f), 351); + num2++; + span176[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010930u, new Vector3(-1.2664795f, -1.9957249f, -42.069153f), 351); obj151.Steps = list176; reference143 = obj151; questRoot16.QuestSequence = list171; @@ -28332,13 +34083,16 @@ public static class AssemblyQuestLoader num = 1; List list177 = new List(num); CollectionsMarshal.SetCount(list177, num); - CollectionsMarshal.AsSpan(list177)[0] = "JerryWester"; + Span span177 = CollectionsMarshal.AsSpan(list177); + index = 0; + span177[index] = "JerryWester"; questRoot17.Author = list177; - num = 4; - List list178 = new List(num); - CollectionsMarshal.SetCount(list178, num); - Span span64 = CollectionsMarshal.AsSpan(list178); - ref QuestSequence reference144 = ref span64[0]; + index = 4; + List list178 = new List(index); + CollectionsMarshal.SetCount(list178, index); + Span span178 = CollectionsMarshal.AsSpan(list178); + num = 0; + ref QuestSequence reference144 = ref span178[num]; QuestSequence obj152 = new QuestSequence { Sequence = 0 @@ -28346,25 +34100,31 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010930u, new Vector3(-1.2664795f, -1.9957249f, -42.069153f), 351); + Span span179 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span179[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010930u, new Vector3(-1.2664795f, -1.9957249f, -42.069153f), 351); obj152.Steps = list179; reference144 = obj152; - ref QuestSequence reference145 = ref span64[1]; + num++; + ref QuestSequence reference145 = ref span178[num]; QuestSequence obj153 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1010931u, new Vector3(232.50171f, 302f, -190.93622f), 155) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.Interact, 1010931u, new Vector3(232.50171f, 302f, -190.93622f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj153.Steps = list180; reference145 = obj153; - ref QuestSequence reference146 = ref span64[2]; + num++; + ref QuestSequence reference146 = ref span178[num]; QuestSequence obj154 = new QuestSequence { Sequence = 2 @@ -28372,65 +34132,91 @@ public static class AssemblyQuestLoader num2 = 5; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span65 = CollectionsMarshal.AsSpan(list181); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-123.426254f, 301.84348f, -283.14267f), 155) + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span181[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-123.426254f, 301.84348f, -283.14267f), 155) { Fly = true }; - ref QuestStep reference147 = ref span65[1]; + index2++; + ref QuestStep reference147 = ref span181[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1010942u, new Vector3(-132.12793f, 304.28772f, -298.3902f), 155); num3 = 6; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - Span span66 = CollectionsMarshal.AsSpan(list182); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span182 = CollectionsMarshal.AsSpan(list182); + num4 = 0; + span182[num4] = null; + num4++; + span182[num4] = null; + num4++; + span182[num4] = null; + num4++; + span182[num4] = null; + num4++; + span182[num4] = null; + num4++; + span182[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list182; reference147 = questStep3; - ref QuestStep reference148 = ref span65[2]; + index2++; + ref QuestStep reference148 = ref span181[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1010940u, new Vector3(-143.23651f, 304.15378f, -289.35687f), 155); - num3 = 6; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - Span span67 = CollectionsMarshal.AsSpan(list183); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list183 = new List(num4); + CollectionsMarshal.SetCount(list183, num4); + Span span183 = CollectionsMarshal.AsSpan(list183); + num3 = 0; + span183[num3] = null; + num3++; + span183[num3] = null; + num3++; + span183[num3] = null; + num3++; + span183[num3] = null; + num3++; + span183[num3] = null; + num3++; + span183[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list183; reference148 = questStep4; - ref QuestStep reference149 = ref span65[3]; + index2++; + ref QuestStep reference149 = ref span181[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1010941u, new Vector3(-157.00012f, 304.1538f, -308.1255f), 155); num3 = 6; List list184 = new List(num3); CollectionsMarshal.SetCount(list184, num3); - Span span68 = CollectionsMarshal.AsSpan(list184); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span184 = CollectionsMarshal.AsSpan(list184); + num4 = 0; + span184[num4] = null; + num4++; + span184[num4] = null; + num4++; + span184[num4] = null; + num4++; + span184[num4] = null; + num4++; + span184[num4] = null; + num4++; + span184[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list184; reference149 = questStep5; - span65[4] = new QuestStep(EInteractionType.Interact, 1010939u, new Vector3(-152.69702f, 304.1538f, -321.21765f), 155); + index2++; + span181[index2] = new QuestStep(EInteractionType.Interact, 1010939u, new Vector3(-152.69702f, 304.1538f, -321.21765f), 155); obj154.Steps = list181; reference146 = obj154; - ref QuestSequence reference150 = ref span64[3]; + num++; + ref QuestSequence reference150 = ref span178[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010951u, new Vector3(-144.1825f, 304.15393f, -300.7401f), 155); + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span185[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010951u, new Vector3(-144.1825f, 304.15393f, -300.7401f), 155); obj155.Steps = list185; reference150 = obj155; questRoot17.QuestSequence = list178; @@ -28440,13 +34226,16 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "JerryWester"; + Span span186 = CollectionsMarshal.AsSpan(list186); + index = 0; + span186[index] = "JerryWester"; questRoot18.Author = list186; - num = 4; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span69 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference151 = ref span69[0]; + index = 4; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + Span span187 = CollectionsMarshal.AsSpan(list187); + num = 0; + ref QuestSequence reference151 = ref span187[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 @@ -28454,27 +34243,33 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010951u, new Vector3(-144.1825f, 304.15393f, -300.7401f), 155); + Span span188 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span188[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010951u, new Vector3(-144.1825f, 304.15393f, -300.7401f), 155); obj156.Steps = list188; reference151 = obj156; - ref QuestSequence reference152 = ref span69[1]; + num++; + ref QuestSequence reference152 = ref span187[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - Span span70 = CollectionsMarshal.AsSpan(list189); - span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.6446f, 303.12494f, -199.8039f), 155) + index2 = 2; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.6446f, 303.12494f, -199.8039f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span70[1] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + num2++; + span189[num2] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj157.Steps = list189; reference152 = obj157; - ref QuestSequence reference153 = ref span69[2]; + num++; + ref QuestSequence reference153 = ref span187[num]; QuestSequence obj158 = new QuestSequence { Sequence = 2 @@ -28482,41 +34277,50 @@ public static class AssemblyQuestLoader num2 = 3; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span71 = CollectionsMarshal.AsSpan(list190); - ref QuestStep reference154 = ref span71[0]; + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + ref QuestStep reference154 = ref span190[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1007603u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155); - num3 = 1; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = new DialogueChoice + num4 = 1; + List list191 = new List(num4); + CollectionsMarshal.SetCount(list191, num4); + Span span191 = CollectionsMarshal.AsSpan(list191); + num3 = 0; + span191[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE603_00372_FORTEMPSGUARD00054_Q1_000_1") }; questStep6.DialogueChoices = list191; reference154 = questStep6; - span71[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(4.0611796f, 0.0149827f, 4.914047f), 395) + index2++; + span190[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(4.0611796f, 0.0149827f, 4.914047f), 395) { DisableNavmesh = true }; - span71[2] = new QuestStep(EInteractionType.Interact, 1009974u, new Vector3(3.8604736f, 0.014982708f, -0.015319824f), 395) + index2++; + span190[index2] = new QuestStep(EInteractionType.Interact, 1009974u, new Vector3(3.8604736f, 0.014982708f, -0.015319824f), 395) { DisableNavmesh = true }; obj158.Steps = list190; reference153 = obj158; - ref QuestSequence reference155 = ref span69[3]; + num++; + ref QuestSequence reference155 = ref span187[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - Span span72 = CollectionsMarshal.AsSpan(list192); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(4.0818396f, 0f, 6.262639f), 395); - span72[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-2.7646873f, 0.0149827f, 6.104938f), 395); - span72[2] = new QuestStep(EInteractionType.CompleteQuest, 1010953u, new Vector3(-2.7924194f, 0.014982709f, -0.7477417f), 395); + index2 = 3; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span192[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(4.0818396f, 0f, 6.262639f), 395); + num2++; + span192[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-2.7646873f, 0.0149827f, 6.104938f), 395); + num2++; + span192[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010953u, new Vector3(-2.7924194f, 0.014982709f, -0.7477417f), 395); obj159.Steps = list192; reference155 = obj159; questRoot18.QuestSequence = list187; @@ -28526,13 +34330,16 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "JerryWester"; + Span span193 = CollectionsMarshal.AsSpan(list193); + index = 0; + span193[index] = "JerryWester"; questRoot19.Author = list193; - num = 2; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span73 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference156 = ref span73[0]; + index = 2; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + Span span194 = CollectionsMarshal.AsSpan(list194); + num = 0; + ref QuestSequence reference156 = ref span194[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 @@ -28540,28 +34347,34 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010953u, new Vector3(-2.7924194f, 0.014982709f, -0.7477417f), 395); + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span195[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010953u, new Vector3(-2.7924194f, 0.014982709f, -0.7477417f), 395); obj160.Steps = list195; reference156 = obj160; - ref QuestSequence reference157 = ref span73[1]; + num++; + ref QuestSequence reference157 = ref span194[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - Span span74 = CollectionsMarshal.AsSpan(list196); - span74[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span74[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span196[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span74[2] = new QuestStep(EInteractionType.CompleteQuest, 1010896u, new Vector3(0.503479f, -1.9957249f, -42.61847f), 351); + num2++; + span196[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010896u, new Vector3(0.503479f, -1.9957249f, -42.61847f), 351); obj161.Steps = list196; reference157 = obj161; questRoot19.QuestSequence = list194; @@ -28571,13 +34384,16 @@ public static class AssemblyQuestLoader num = 1; List list197 = new List(num); CollectionsMarshal.SetCount(list197, num); - CollectionsMarshal.AsSpan(list197)[0] = "liza"; + Span span197 = CollectionsMarshal.AsSpan(list197); + index = 0; + span197[index] = "liza"; questRoot20.Author = list197; - num = 4; - List list198 = new List(num); - CollectionsMarshal.SetCount(list198, num); - Span span75 = CollectionsMarshal.AsSpan(list198); - ref QuestSequence reference158 = ref span75[0]; + index = 4; + List list198 = new List(index); + CollectionsMarshal.SetCount(list198, index); + Span span198 = CollectionsMarshal.AsSpan(list198); + num = 0; + ref QuestSequence reference158 = ref span198[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -28585,19 +34401,23 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); + Span span199 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span199[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); obj162.Steps = list199; reference158 = obj162; - ref QuestSequence reference159 = ref span75[1]; + num++; + ref QuestSequence reference159 = ref span198[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - Span span76 = CollectionsMarshal.AsSpan(list200); - span76[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-61.749943f, 0.9481318f, -38.52144f), 148) + index2 = 2; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-61.749943f, 0.9481318f, -38.52144f), 148) { JumpDestination = new JumpDestination { @@ -28605,10 +34425,12 @@ public static class AssemblyQuestLoader StopDistance = 3f } }; - span76[1] = new QuestStep(EInteractionType.Interact, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); + num2++; + span200[num2] = new QuestStep(EInteractionType.Interact, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); obj163.Steps = list200; reference159 = obj163; - ref QuestSequence reference160 = ref span75[2]; + num++; + ref QuestSequence reference160 = ref span198[num]; QuestSequence obj164 = new QuestSequence { Sequence = 2 @@ -28616,7 +34438,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list201)[0]; + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + ref QuestStep reference161 = ref span201[index2]; QuestStep obj165 = new QuestStep(EInteractionType.Combat, null, new Vector3(-171.87439f, 1.7183347f, -70.586975f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -28624,36 +34448,47 @@ public static class AssemblyQuestLoader num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - ref ComplexCombatData reference162 = ref CollectionsMarshal.AsSpan(list202)[0]; + Span span202 = CollectionsMarshal.AsSpan(list202); + num4 = 0; + ref ComplexCombatData reference162 = ref span202[num4]; ComplexCombatData obj166 = new ComplexCombatData { DataId = 771u }; - int num4 = 6; - List list203 = new List(num4); - CollectionsMarshal.SetCount(list203, num4); - Span span77 = CollectionsMarshal.AsSpan(list203); - span77[0] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = null; + int num5 = 6; + List list203 = new List(num5); + CollectionsMarshal.SetCount(list203, num5); + Span span203 = CollectionsMarshal.AsSpan(list203); + int num6 = 0; + span203[num6] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num6++; + span203[num6] = null; + num6++; + span203[num6] = null; + num6++; + span203[num6] = null; + num6++; + span203[num6] = null; + num6++; + span203[num6] = null; obj166.CompletionQuestVariablesFlags = list203; reference162 = obj166; obj165.ComplexCombatData = list202; reference161 = obj165; obj164.Steps = list201; reference160 = obj164; - ref QuestSequence reference163 = ref span75[3]; + num++; + ref QuestSequence reference163 = ref span198[num]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); obj167.Steps = list204; reference163 = obj167; questRoot20.QuestSequence = list198; @@ -28663,13 +34498,16 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "liza"; + Span span205 = CollectionsMarshal.AsSpan(list205); + index = 0; + span205[index] = "liza"; questRoot21.Author = list205; - num = 3; - List list206 = new List(num); - CollectionsMarshal.SetCount(list206, num); - Span span78 = CollectionsMarshal.AsSpan(list206); - ref QuestSequence reference164 = ref span78[0]; + index = 3; + List list206 = new List(index); + CollectionsMarshal.SetCount(list206, index); + Span span206 = CollectionsMarshal.AsSpan(list206); + num = 0; + ref QuestSequence reference164 = ref span206[num]; QuestSequence obj168 = new QuestSequence { Sequence = 0 @@ -28677,68 +34515,93 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000435u, new Vector3(-127.06189f, 4.1490583f, -44.296997f), 148) + Span span207 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span207[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000435u, new Vector3(-127.06189f, 4.1490583f, -44.296997f), 148) { StopDistance = 5f }; obj168.Steps = list207; reference164 = obj168; - ref QuestSequence reference165 = ref span78[1]; + num++; + ref QuestSequence reference165 = ref span206[num]; QuestSequence obj169 = new QuestSequence { Sequence = 1 }; - num2 = 8; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - Span span79 = CollectionsMarshal.AsSpan(list208); - ref QuestStep reference166 = ref span79[0]; + index2 = 8; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + ref QuestStep reference166 = ref span208[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2000750u, new Vector3(-151.26276f, 14.358704f, -73.014465f), 148); - num3 = 6; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - Span span80 = CollectionsMarshal.AsSpan(list209); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list209 = new List(num4); + CollectionsMarshal.SetCount(list209, num4); + Span span209 = CollectionsMarshal.AsSpan(list209); + num3 = 0; + span209[num3] = null; + num3++; + span209[num3] = null; + num3++; + span209[num3] = null; + num3++; + span209[num3] = null; + num3++; + span209[num3] = null; + num3++; + span209[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list209; reference166 = questStep7; - ref QuestStep reference167 = ref span79[1]; + num2++; + ref QuestStep reference167 = ref span208[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2000749u, new Vector3(-164.11078f, 23.025818f, -86.167725f), 148); num3 = 6; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - Span span81 = CollectionsMarshal.AsSpan(list210); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span210 = CollectionsMarshal.AsSpan(list210); + num4 = 0; + span210[num4] = null; + num4++; + span210[num4] = null; + num4++; + span210[num4] = null; + num4++; + span210[num4] = null; + num4++; + span210[num4] = null; + num4++; + span210[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list210; reference167 = questStep8; - ref QuestStep reference168 = ref span79[2]; + num2++; + ref QuestStep reference168 = ref span208[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.18181f, 31.66525f, -91.84381f), 148); SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - Span span82 = CollectionsMarshal.AsSpan(list211); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list211 = new List(num4); + CollectionsMarshal.SetCount(list211, num4); + Span span211 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + span211[num3] = null; + num3++; + span211[num3] = null; + num3++; + span211[num3] = null; + num3++; + span211[num3] = null; + num3++; + span211[num3] = null; + num3++; + span211[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list211; skipConditions13.StepIf = skipStepConditions3; questStep9.SkipConditions = skipConditions13; reference168 = questStep9; - ref QuestStep reference169 = ref span79[3]; + num2++; + ref QuestStep reference169 = ref span208[num2]; QuestStep obj170 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-184.41872f, 29.940958f, -93.809525f), 148) { DisableNavmesh = true @@ -28748,35 +34611,49 @@ public static class AssemblyQuestLoader num3 = 6; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - Span span83 = CollectionsMarshal.AsSpan(list212); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span212 = CollectionsMarshal.AsSpan(list212); + num4 = 0; + span212[num4] = null; + num4++; + span212[num4] = null; + num4++; + span212[num4] = null; + num4++; + span212[num4] = null; + num4++; + span212[num4] = null; + num4++; + span212[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list212; skipConditions14.StepIf = skipStepConditions4; obj170.SkipConditions = skipConditions14; reference169 = obj170; - ref QuestStep reference170 = ref span79[4]; + num2++; + ref QuestStep reference170 = ref span208[num2]; QuestStep obj171 = new QuestStep(EInteractionType.Interact, 2000748u, new Vector3(-189.25769f, 30.44165f, -98.83276f), 148) { DisableNavmesh = true }; - num3 = 6; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - Span span84 = CollectionsMarshal.AsSpan(list213); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list213 = new List(num4); + CollectionsMarshal.SetCount(list213, num4); + Span span213 = CollectionsMarshal.AsSpan(list213); + num3 = 0; + span213[num3] = null; + num3++; + span213[num3] = null; + num3++; + span213[num3] = null; + num3++; + span213[num3] = null; + num3++; + span213[num3] = null; + num3++; + span213[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj171.CompletionQuestVariablesFlags = list213; reference170 = obj171; - ref QuestStep reference171 = ref span79[5]; + num2++; + ref QuestStep reference171 = ref span208[num2]; QuestStep obj172 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-179.84062f, 31.476957f, -91.05707f), 148) { DisableNavmesh = true @@ -28786,36 +34663,50 @@ public static class AssemblyQuestLoader num3 = 6; List list214 = new List(num3); CollectionsMarshal.SetCount(list214, num3); - Span span85 = CollectionsMarshal.AsSpan(list214); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span214 = CollectionsMarshal.AsSpan(list214); + num4 = 0; + span214[num4] = null; + num4++; + span214[num4] = null; + num4++; + span214[num4] = null; + num4++; + span214[num4] = null; + num4++; + span214[num4] = null; + num4++; + span214[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list214; skipConditions15.StepIf = skipStepConditions5; obj172.SkipConditions = skipConditions15; reference171 = obj172; - ref QuestStep reference172 = ref span79[6]; + num2++; + ref QuestStep reference172 = ref span208[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.76294f, 23.022184f, -76.32822f), 148); SkipConditions skipConditions16 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 6; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - Span span86 = CollectionsMarshal.AsSpan(list215); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list215 = new List(num4); + CollectionsMarshal.SetCount(list215, num4); + Span span215 = CollectionsMarshal.AsSpan(list215); + num3 = 0; + span215[num3] = null; + num3++; + span215[num3] = null; + num3++; + span215[num3] = null; + num3++; + span215[num3] = null; + num3++; + span215[num3] = null; + num3++; + span215[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list215; skipConditions16.StepIf = skipStepConditions6; questStep10.SkipConditions = skipConditions16; reference172 = questStep10; - ref QuestStep reference173 = ref span79[7]; + num2++; + ref QuestStep reference173 = ref span208[num2]; QuestStep obj173 = new QuestStep(EInteractionType.Interact, 2000751u, new Vector3(-169.3294f, 18.600708f, -72.129456f), 148) { DisableNavmesh = true @@ -28823,18 +34714,25 @@ public static class AssemblyQuestLoader num3 = 6; List list216 = new List(num3); CollectionsMarshal.SetCount(list216, num3); - Span span87 = CollectionsMarshal.AsSpan(list216); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span216 = CollectionsMarshal.AsSpan(list216); + num4 = 0; + span216[num4] = null; + num4++; + span216[num4] = null; + num4++; + span216[num4] = null; + num4++; + span216[num4] = null; + num4++; + span216[num4] = null; + num4++; + span216[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj173.CompletionQuestVariablesFlags = list216; reference173 = obj173; obj169.Steps = list208; reference165 = obj169; - ref QuestSequence reference174 = ref span78[2]; + num++; + ref QuestSequence reference174 = ref span206[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue @@ -28842,13 +34740,15 @@ public static class AssemblyQuestLoader num2 = 2; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span88 = CollectionsMarshal.AsSpan(list217); - span88[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.56161f, 0.63666093f, -61.089085f), 148) + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.56161f, 0.63666093f, -61.089085f), 148) { DisableNavmesh = true, Comment = "Jumping back up isn't trivial" }; - span88[1] = new QuestStep(EInteractionType.CompleteQuest, 1000436u, new Vector3(-193.22504f, 56.264572f, -116.47211f), 148); + index2++; + span217[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000436u, new Vector3(-193.22504f, 56.264572f, -116.47211f), 148); obj174.Steps = list217; reference174 = obj174; questRoot21.QuestSequence = list206; @@ -28858,24 +34758,30 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; + Span span218 = CollectionsMarshal.AsSpan(list218); + index = 0; + span218[index] = "liza"; questRoot22.Author = list218; - num = 4; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span89 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference175 = ref span89[0]; + index = 4; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + Span span219 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference175 = ref span219[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000436u, new Vector3(-193.22504f, 56.264572f, -116.47211f), 148); + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span220[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000436u, new Vector3(-193.22504f, 56.264572f, -116.47211f), 148); obj175.Steps = list220; reference175 = obj175; - ref QuestSequence reference176 = ref span89[1]; + num++; + ref QuestSequence reference176 = ref span219[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 @@ -28883,21 +34789,27 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span221[index2] = new QuestStep(EInteractionType.Interact, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); obj176.Steps = list221; reference176 = obj176; - ref QuestSequence reference177 = ref span89[2]; + num++; + ref QuestSequence reference177 = ref span219[num]; QuestSequence obj177 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 2000689u, new Vector3(-95.47571f, 3.4942627f, -150.80493f), 148); + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + Span span222 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span222[num2] = new QuestStep(EInteractionType.Interact, 2000689u, new Vector3(-95.47571f, 3.4942627f, -150.80493f), 148); obj177.Steps = list222; reference177 = obj177; - ref QuestSequence reference178 = ref span89[3]; + num++; + ref QuestSequence reference178 = ref span219[num]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue @@ -28905,7 +34817,9 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span223[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); obj178.Steps = list223; reference178 = obj178; questRoot22.QuestSequence = list219; @@ -28915,24 +34829,30 @@ public static class AssemblyQuestLoader num = 1; List list224 = new List(num); CollectionsMarshal.SetCount(list224, num); - CollectionsMarshal.AsSpan(list224)[0] = "liza"; + Span span224 = CollectionsMarshal.AsSpan(list224); + index = 0; + span224[index] = "liza"; questRoot23.Author = list224; - num = 4; - List list225 = new List(num); - CollectionsMarshal.SetCount(list225, num); - Span span90 = CollectionsMarshal.AsSpan(list225); - ref QuestSequence reference179 = ref span90[0]; + index = 4; + List list225 = new List(index); + CollectionsMarshal.SetCount(list225, index); + Span span225 = CollectionsMarshal.AsSpan(list225); + num = 0; + ref QuestSequence reference179 = ref span225[num]; QuestSequence obj179 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + Span span226 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span226[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); obj179.Steps = list226; reference179 = obj179; - ref QuestSequence reference180 = ref span90[1]; + num++; + ref QuestSequence reference180 = ref span225[num]; QuestSequence obj180 = new QuestSequence { Sequence = 1 @@ -28940,21 +34860,27 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1001280u, new Vector3(89.28052f, -6.351089f, -121.96539f), 148); + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.Interact, 1001280u, new Vector3(89.28052f, -6.351089f, -121.96539f), 148); obj180.Steps = list227; reference180 = obj180; - ref QuestSequence reference181 = ref span90[2]; + num++; + ref QuestSequence reference181 = ref span225[num]; QuestSequence obj181 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1000483u, new Vector3(85.496216f, -6.0870457f, 67.00232f), 148); + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.Interact, 1000483u, new Vector3(85.496216f, -6.0870457f, 67.00232f), 148); obj181.Steps = list228; reference181 = obj181; - ref QuestSequence reference182 = ref span90[3]; + num++; + ref QuestSequence reference182 = ref span225[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue @@ -28962,7 +34888,9 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000741u, new Vector3(-66.7583f, 0.2f, 11.36792f), 148); + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span229[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000741u, new Vector3(-66.7583f, 0.2f, 11.36792f), 148); obj182.Steps = list229; reference182 = obj182; questRoot23.QuestSequence = list225; @@ -28972,24 +34900,30 @@ public static class AssemblyQuestLoader num = 1; List list230 = new List(num); CollectionsMarshal.SetCount(list230, num); - CollectionsMarshal.AsSpan(list230)[0] = "liza"; + Span span230 = CollectionsMarshal.AsSpan(list230); + index = 0; + span230[index] = "liza"; questRoot24.Author = list230; - num = 3; - List list231 = new List(num); - CollectionsMarshal.SetCount(list231, num); - Span span91 = CollectionsMarshal.AsSpan(list231); - ref QuestSequence reference183 = ref span91[0]; + index = 3; + List list231 = new List(index); + CollectionsMarshal.SetCount(list231, index); + Span span231 = CollectionsMarshal.AsSpan(list231); + num = 0; + ref QuestSequence reference183 = ref span231[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000741u, new Vector3(-66.7583f, 0.2f, 11.36792f), 148); + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span232[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000741u, new Vector3(-66.7583f, 0.2f, 11.36792f), 148); obj183.Steps = list232; reference183 = obj183; - ref QuestSequence reference184 = ref span91[1]; + num++; + ref QuestSequence reference184 = ref span231[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 @@ -28997,28 +34931,35 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - ref QuestStep reference185 = ref CollectionsMarshal.AsSpan(list233)[0]; + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + ref QuestStep reference185 = ref span233[index2]; QuestStep obj185 = new QuestStep(EInteractionType.Combat, 2001006u, new Vector3(99.65662f, -15.732117f, 193.01135f), 148) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list234 = new List(num3); - CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = 12u; + num4 = 1; + List list234 = new List(num4); + CollectionsMarshal.SetCount(list234, num4); + Span span234 = CollectionsMarshal.AsSpan(list234); + num3 = 0; + span234[num3] = 12u; obj185.KillEnemyDataIds = list234; reference185 = obj185; obj184.Steps = list233; reference184 = obj184; - ref QuestSequence reference186 = ref span91[2]; + num++; + ref QuestSequence reference186 = ref span231[num]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000491u, new Vector3(47.958984f, -24f, 228.5343f), 148); + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + Span span235 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span235[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000491u, new Vector3(47.958984f, -24f, 228.5343f), 148); obj186.Steps = list235; reference186 = obj186; questRoot24.QuestSequence = list231; @@ -29028,13 +34969,16 @@ public static class AssemblyQuestLoader num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - CollectionsMarshal.AsSpan(list236)[0] = "liza"; + Span span236 = CollectionsMarshal.AsSpan(list236); + index = 0; + span236[index] = "liza"; questRoot25.Author = list236; - num = 3; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - Span span92 = CollectionsMarshal.AsSpan(list237); - ref QuestSequence reference187 = ref span92[0]; + index = 3; + List list237 = new List(index); + CollectionsMarshal.SetCount(list237, index); + Span span237 = CollectionsMarshal.AsSpan(list237); + num = 0; + ref QuestSequence reference187 = ref span237[num]; QuestSequence obj187 = new QuestSequence { Sequence = 0 @@ -29042,21 +34986,27 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000491u, new Vector3(47.958984f, -24f, 228.5343f), 148); + Span span238 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span238[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000491u, new Vector3(47.958984f, -24f, 228.5343f), 148); obj187.Steps = list238; reference187 = obj187; - ref QuestSequence reference188 = ref span92[1]; + num++; + ref QuestSequence reference188 = ref span237[num]; QuestSequence obj188 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1002932u, new Vector3(-65.049255f, -36.79766f, 477.59204f), 148); + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + Span span239 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span239[num2] = new QuestStep(EInteractionType.Interact, 1002932u, new Vector3(-65.049255f, -36.79766f, 477.59204f), 148); obj188.Steps = list239; reference188 = obj188; - ref QuestSequence reference189 = ref span92[2]; + num++; + ref QuestSequence reference189 = ref span237[num]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue @@ -29064,7 +35014,9 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000503u, new Vector3(178.33215f, -32.015224f, 333.30273f), 148); + Span span240 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span240[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000503u, new Vector3(178.33215f, -32.015224f, 333.30273f), 148); obj189.Steps = list240; reference189 = obj189; questRoot25.QuestSequence = list237; @@ -29074,24 +35026,30 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "liza"; + Span span241 = CollectionsMarshal.AsSpan(list241); + index = 0; + span241[index] = "liza"; questRoot26.Author = list241; - num = 3; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span93 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference190 = ref span93[0]; + index = 3; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + Span span242 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference190 = ref span242[num]; QuestSequence obj190 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000503u, new Vector3(178.33215f, -32.015224f, 333.30273f), 148); + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + Span span243 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span243[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000503u, new Vector3(178.33215f, -32.015224f, 333.30273f), 148); obj190.Steps = list243; reference190 = obj190; - ref QuestSequence reference191 = ref span93[1]; + num++; + ref QuestSequence reference191 = ref span242[num]; QuestSequence obj191 = new QuestSequence { Sequence = 1 @@ -29099,8 +35057,9 @@ public static class AssemblyQuestLoader num2 = 3; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span94 = CollectionsMarshal.AsSpan(list244); - ref QuestStep reference192 = ref span94[0]; + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + ref QuestStep reference192 = ref span244[index2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, 2001018u, new Vector3(155.47412f, -23.66681f, 490.74524f), 148) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -29108,48 +35067,67 @@ public static class AssemblyQuestLoader num3 = 1; List list245 = new List(num3); CollectionsMarshal.SetCount(list245, num3); - CollectionsMarshal.AsSpan(list245)[0] = 26u; + Span span245 = CollectionsMarshal.AsSpan(list245); + num4 = 0; + span245[num4] = 26u; obj192.KillEnemyDataIds = list245; reference192 = obj192; - ref QuestStep reference193 = ref span94[1]; + index2++; + ref QuestStep reference193 = ref span244[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2001016u, new Vector3(152.60547f, -23.758362f, 494.71265f), 148); - num3 = 6; - List list246 = new List(num3); - CollectionsMarshal.SetCount(list246, num3); - Span span95 = CollectionsMarshal.AsSpan(list246); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list246 = new List(num4); + CollectionsMarshal.SetCount(list246, num4); + Span span246 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list246; reference193 = questStep11; - ref QuestStep reference194 = ref span94[2]; + index2++; + ref QuestStep reference194 = ref span244[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2001018u, new Vector3(155.47412f, -23.66681f, 490.74524f), 148); num3 = 6; List list247 = new List(num3); CollectionsMarshal.SetCount(list247, num3); - Span span96 = CollectionsMarshal.AsSpan(list247); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span247 = CollectionsMarshal.AsSpan(list247); + num4 = 0; + span247[num4] = null; + num4++; + span247[num4] = null; + num4++; + span247[num4] = null; + num4++; + span247[num4] = null; + num4++; + span247[num4] = null; + num4++; + span247[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list247; reference194 = questStep12; obj191.Steps = list244; reference191 = obj191; - ref QuestSequence reference195 = ref span93[2]; + num++; + ref QuestSequence reference195 = ref span242[num]; QuestSequence obj193 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; @@ -29162,13 +35140,16 @@ public static class AssemblyQuestLoader num = 1; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - CollectionsMarshal.AsSpan(list249)[0] = "JerryWester"; + Span span249 = CollectionsMarshal.AsSpan(list249); + index = 0; + span249[index] = "JerryWester"; questRoot27.Author = list249; - num = 6; - List list250 = new List(num); - CollectionsMarshal.SetCount(list250, num); - Span span97 = CollectionsMarshal.AsSpan(list250); - ref QuestSequence reference196 = ref span97[0]; + index = 6; + List list250 = new List(index); + CollectionsMarshal.SetCount(list250, index); + Span span250 = CollectionsMarshal.AsSpan(list250); + num = 0; + ref QuestSequence reference196 = ref span250[num]; QuestSequence obj194 = new QuestSequence { Sequence = 0 @@ -29176,26 +35157,32 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010896u, new Vector3(0.503479f, -1.9957249f, -42.61847f), 351); + Span span251 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span251[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010896u, new Vector3(0.503479f, -1.9957249f, -42.61847f), 351); obj194.Steps = list251; reference196 = obj194; - ref QuestSequence reference197 = ref span97[1]; + num++; + ref QuestSequence reference197 = ref span250[num]; QuestSequence obj195 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span98 = CollectionsMarshal.AsSpan(list252); - span98[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + index2 = 2; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span98[1] = new QuestStep(EInteractionType.Interact, 1010911u, new Vector3(-3.7385254f, 0.01804012f, -9.353821f), 351); + num2++; + span252[num2] = new QuestStep(EInteractionType.Interact, 1010911u, new Vector3(-3.7385254f, 0.01804012f, -9.353821f), 351); obj195.Steps = list252; reference197 = obj195; - ref QuestSequence reference198 = ref span97[2]; + num++; + ref QuestSequence reference198 = ref span250[num]; QuestSequence obj196 = new QuestSequence { Sequence = 2 @@ -29203,26 +35190,32 @@ public static class AssemblyQuestLoader num2 = 2; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span99 = CollectionsMarshal.AsSpan(list253); - span99[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - span99[1] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); + index2++; + span253[index2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); obj196.Steps = list253; reference198 = obj196; - ref QuestSequence reference199 = ref span97[3]; + num++; + ref QuestSequence reference199 = ref span250[num]; QuestSequence obj197 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1010954u, new Vector3(24.2771f, 20.04223f, -679.9573f), 156); + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.Interact, 1010954u, new Vector3(24.2771f, 20.04223f, -679.9573f), 156); obj197.Steps = list254; reference199 = obj197; - ref QuestSequence reference200 = ref span97[4]; + num++; + ref QuestSequence reference200 = ref span250[num]; QuestSequence obj198 = new QuestSequence { Sequence = 4 @@ -29230,25 +35223,33 @@ public static class AssemblyQuestLoader num2 = 6; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span100 = CollectionsMarshal.AsSpan(list255); - ref QuestStep reference201 = ref span100[0]; + Span span255 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + ref QuestStep reference201 = ref span255[index2]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1010958u, new Vector3(47.745483f, 20.665741f, -685.1759f), 156) { Fly = true }; - num3 = 6; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - Span span101 = CollectionsMarshal.AsSpan(list256); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list256 = new List(num4); + CollectionsMarshal.SetCount(list256, num4); + Span span256 = CollectionsMarshal.AsSpan(list256); + num3 = 0; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj199.CompletionQuestVariablesFlags = list256; reference201 = obj199; - ref QuestStep reference202 = ref span100[1]; + index2++; + ref QuestStep reference202 = ref span255[index2]; QuestStep obj200 = new QuestStep(EInteractionType.Interact, 1010955u, new Vector3(103.440796f, 31.606796f, -739.559f), 156) { Fly = true @@ -29256,67 +35257,92 @@ public static class AssemblyQuestLoader num3 = 6; List list257 = new List(num3); CollectionsMarshal.SetCount(list257, num3); - Span span102 = CollectionsMarshal.AsSpan(list257); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span257 = CollectionsMarshal.AsSpan(list257); + num4 = 0; + span257[num4] = null; + num4++; + span257[num4] = null; + num4++; + span257[num4] = null; + num4++; + span257[num4] = null; + num4++; + span257[num4] = null; + num4++; + span257[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj200.CompletionQuestVariablesFlags = list257; reference202 = obj200; - span100[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(68.349144f, 50f, -776.29706f), 156) + index2++; + span255[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(68.349144f, 50f, -776.29706f), 156) { Fly = true }; - ref QuestStep reference203 = ref span100[3]; + index2++; + ref QuestStep reference203 = ref span255[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1010956u, new Vector3(68.86389f, 50f, -774.3496f), 156); - num3 = 6; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - Span span103 = CollectionsMarshal.AsSpan(list258); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list258 = new List(num4); + CollectionsMarshal.SetCount(list258, num4); + Span span258 = CollectionsMarshal.AsSpan(list258); + num3 = 0; + span258[num3] = null; + num3++; + span258[num3] = null; + num3++; + span258[num3] = null; + num3++; + span258[num3] = null; + num3++; + span258[num3] = null; + num3++; + span258[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list258; reference203 = questStep13; - span100[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.19157f, 29.595585f, -768.4571f), 156) + index2++; + span255[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.19157f, 29.595585f, -768.4571f), 156) { Fly = true }; - ref QuestStep reference204 = ref span100[5]; + index2++; + ref QuestStep reference204 = ref span255[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1010957u, new Vector3(33.676636f, 29f, -789.08984f), 156); num3 = 6; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - Span span104 = CollectionsMarshal.AsSpan(list259); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span259 = CollectionsMarshal.AsSpan(list259); + num4 = 0; + span259[num4] = null; + num4++; + span259[num4] = null; + num4++; + span259[num4] = null; + num4++; + span259[num4] = null; + num4++; + span259[num4] = null; + num4++; + span259[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list259; reference204 = questStep14; obj198.Steps = list255; reference200 = obj198; - ref QuestSequence reference205 = ref span97[5]; + num++; + ref QuestSequence reference205 = ref span250[num]; QuestSequence obj201 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - Span span105 = CollectionsMarshal.AsSpan(list260); - span105[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.19157f, 29.595585f, -768.4571f), 156) + index2 = 2; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span260[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.19157f, 29.595585f, -768.4571f), 156) { Mount = true }; - span105[1] = new QuestStep(EInteractionType.CompleteQuest, 1010961u, new Vector3(33.279907f, 20.495003f, -655.20715f), 156) + num2++; + span260[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010961u, new Vector3(33.279907f, 20.495003f, -655.20715f), 156) { Fly = true }; @@ -29329,13 +35355,16 @@ public static class AssemblyQuestLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - CollectionsMarshal.AsSpan(list261)[0] = "liza"; + Span span261 = CollectionsMarshal.AsSpan(list261); + index = 0; + span261[index] = "liza"; questRoot28.Author = list261; - num = 2; - List list262 = new List(num); - CollectionsMarshal.SetCount(list262, num); - Span span106 = CollectionsMarshal.AsSpan(list262); - ref QuestSequence reference206 = ref span106[0]; + index = 2; + List list262 = new List(index); + CollectionsMarshal.SetCount(list262, index); + Span span262 = CollectionsMarshal.AsSpan(list262); + num = 0; + ref QuestSequence reference206 = ref span262[num]; QuestSequence obj202 = new QuestSequence { Sequence = 0 @@ -29343,24 +35372,29 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + Span span263 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span263[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj202.Steps = list263; reference206 = obj202; - ref QuestSequence reference207 = ref span106[1]; + num++; + ref QuestSequence reference207 = ref span262[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - Span span107 = CollectionsMarshal.AsSpan(list264); - span107[0] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002721u, new Vector3(187.9148f, 98.5214f, -193.19452f), 134) + index2 = 2; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002721u, new Vector3(187.9148f, 98.5214f, -193.19452f), 134) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, TaxiStandId = (byte)22 }; - span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1003239u, new Vector3(-283.68048f, 10.593393f, -249.34778f), 134); + num2++; + span264[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003239u, new Vector3(-283.68048f, 10.593393f, -249.34778f), 134); obj203.Steps = list264; reference207 = obj203; questRoot28.QuestSequence = list262; @@ -29374,13 +35408,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -29388,25 +35425,31 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003239u, new Vector3(-283.68048f, 10.593393f, -249.34778f), 134); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003239u, new Vector3(-283.68048f, 10.593393f, -249.34778f), 134); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 2001255u, new Vector3(-320.57678f, 25.833496f, -527.5502f), 134) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 2001255u, new Vector3(-320.57678f, 25.833496f, -527.5502f), 134) { PickUpItemId = 2000342u, Comment = "Technically triggers combat, but can be ignored" }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -29414,21 +35457,26 @@ public static class AssemblyQuestLoader num2 = 5; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-380.10605f, 32.598312f, -608.40186f), 134) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-380.10605f, 32.598312f, -608.40186f), 134) { TargetTerritoryId = (ushort)138 }; - span2[1] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002722u, new Vector3(667.68884f, 9.882242f, 487.32727f), 138) + index2++; + span5[index2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002722u, new Vector3(667.68884f, 9.882242f, 487.32727f), 138) { TaxiStandId = (byte)23 }; - span2[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) + index2++; + span5[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) { Aetheryte = EAetheryteLocation.WesternLaNosceaSwiftperch }; - span2[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(652.74164f, 8.129893f, 522.6646f), 138); - span2[4] = new QuestStep(EInteractionType.CompleteQuest, 1003244u, new Vector3(650.72095f, 7.856781f, 527.21436f), 138) + index2++; + span5[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(652.74164f, 8.129893f, 522.6646f), 138); + index2++; + span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003244u, new Vector3(650.72095f, 7.856781f, 527.21436f), 138) { StopDistance = 6f }; @@ -29441,27 +35489,33 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; + Span span6 = CollectionsMarshal.AsSpan(list6); + index = 0; + span6[index] = "liza"; questRoot2.Author = list6; - num = 7; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span3 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span3[0]; + index = 7; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + Span span7 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span7[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003245u, new Vector3(655.75635f, 8.316303f, 521.1719f), 138) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003245u, new Vector3(655.75635f, 8.316303f, 521.1719f), 138) { StopDistance = 7f }; obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span3[1]; + num++; + ref QuestSequence reference5 = ref span7[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -29469,24 +35523,30 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1003246u, new Vector3(443.22876f, 14.645099f, 452.84204f), 138); + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.Interact, 1003246u, new Vector3(443.22876f, 14.645099f, 452.84204f), 138); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span3[2]; + num++; + ref QuestSequence reference6 = ref span7[num]; QuestSequence obj6 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.UseItem, 2001260u, new Vector3(602.50244f, 28.94629f, 361.01306f), 138) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.UseItem, 2001260u, new Vector3(602.50244f, 28.94629f, 361.01306f), 138) { ItemId = 2000343u }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span3[3]; + num++; + ref QuestSequence reference7 = ref span7[num]; QuestSequence obj7 = new QuestSequence { Sequence = 3 @@ -29494,7 +35554,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + ref QuestStep reference8 = ref span11[index2]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, 2001261u, new Vector3(602.50244f, 28.976807f, 361.0437f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -29502,23 +35564,29 @@ public static class AssemblyQuestLoader int num3 = 1; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = 17u; + Span span12 = CollectionsMarshal.AsSpan(list12); + int index3 = 0; + span12[index3] = 17u; obj8.KillEnemyDataIds = list12; reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference9 = ref span3[4]; + num++; + ref QuestSequence reference9 = ref span7[num]; QuestSequence obj9 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1003246u, new Vector3(443.22876f, 14.645099f, 452.84204f), 138); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.Interact, 1003246u, new Vector3(443.22876f, 14.645099f, 452.84204f), 138); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span3[5]; + num++; + ref QuestSequence reference10 = ref span7[num]; QuestSequence obj10 = new QuestSequence { Sequence = 5 @@ -29526,18 +35594,23 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1003245u, new Vector3(655.75635f, 8.316303f, 521.1719f), 138); + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.Interact, 1003245u, new Vector3(655.75635f, 8.316303f, 521.1719f), 138); obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span3[6]; + num++; + ref QuestSequence reference11 = ref span7[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -29555,13 +35628,16 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + Span span16 = CollectionsMarshal.AsSpan(list16); + index = 0; + span16[index] = "liza"; questRoot3.Author = list16; - num = 2; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span4 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span4[0]; + index = 2; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + Span span17 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span17[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -29569,31 +35645,38 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128); + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span4[1]; + num++; + ref QuestSequence reference13 = ref span17[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - Span span5 = CollectionsMarshal.AsSpan(list19); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.438343f, 44.499928f, 183.94363f), 128) + index2 = 4; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.438343f, 44.499928f, 183.94363f), 128) { TargetTerritoryId = (ushort)135 }; - span5[1] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002720u, new Vector3(49.271362f, 29.315498f, 605.27954f), 135) + num2++; + span19[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002720u, new Vector3(49.271362f, 29.315498f, 605.27954f), 135) { TaxiStandId = (byte)27 }; - span5[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + num2++; + span19[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - span5[3] = new QuestStep(EInteractionType.CompleteQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); + num2++; + span19[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); obj13.Steps = list19; reference13 = obj13; questRoot3.QuestSequence = list17; @@ -29603,13 +35686,16 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "CryoTechnic"; + Span span20 = CollectionsMarshal.AsSpan(list20); + index = 0; + span20[index] = "CryoTechnic"; questRoot4.Author = list20; - num = 5; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span6 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference14 = ref span6[0]; + index = 5; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + Span span21 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference14 = ref span21[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -29617,21 +35703,27 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002231u, new Vector3(102.25073f, 68.15522f, 328.93872f), 135); + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002231u, new Vector3(102.25073f, 68.15522f, 328.93872f), 135); obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference15 = ref span6[1]; + num++; + ref QuestSequence reference15 = ref span21[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1002447u, new Vector3(113.54236f, 68.15523f, 376.21106f), 135); + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.Interact, 1002447u, new Vector3(113.54236f, 68.15523f, 376.21106f), 135); obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference16 = ref span6[2]; + num++; + ref QuestSequence reference16 = ref span21[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -29639,29 +35731,35 @@ public static class AssemblyQuestLoader num2 = 2; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span7 = CollectionsMarshal.AsSpan(list24); - span7[0] = new QuestStep(EInteractionType.Emote, 1002450u, new Vector3(42.83203f, 71.30162f, 389.0287f), 135) + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.Emote, 1002450u, new Vector3(42.83203f, 71.30162f, 389.0287f), 135) { Emote = EEmote.Soothe }; - span7[1] = new QuestStep(EInteractionType.Emote, 1002449u, new Vector3(41.7334f, 71.30162f, 389.63904f), 135) + index2++; + span24[index2] = new QuestStep(EInteractionType.Emote, 1002449u, new Vector3(41.7334f, 71.30162f, 389.63904f), 135) { Emote = EEmote.Soothe }; obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference17 = ref span6[3]; + num++; + ref QuestSequence reference17 = ref span21[num]; QuestSequence obj17 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1002447u, new Vector3(113.54236f, 68.15523f, 376.21106f), 135); + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.Interact, 1002447u, new Vector3(113.54236f, 68.15523f, 376.21106f), 135); obj17.Steps = list25; reference17 = obj17; - ref QuestSequence reference18 = ref span6[4]; + num++; + ref QuestSequence reference18 = ref span21[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -29669,7 +35767,9 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002231u, new Vector3(102.25073f, 68.15522f, 328.93872f), 135); + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002231u, new Vector3(102.25073f, 68.15522f, 328.93872f), 135); obj18.Steps = list26; reference18 = obj18; questRoot4.QuestSequence = list21; @@ -29679,24 +35779,30 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "CryoTechnic"; + Span span27 = CollectionsMarshal.AsSpan(list27); + index = 0; + span27[index] = "CryoTechnic"; questRoot5.Author = list27; - num = 4; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span8 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference19 = ref span8[0]; + index = 4; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + Span span28 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference19 = ref span28[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002236u, new Vector3(185.10718f, 14.095934f, 677.33264f), 135); + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002236u, new Vector3(185.10718f, 14.095934f, 677.33264f), 135); obj19.Steps = list29; reference19 = obj19; - ref QuestSequence reference20 = ref span8[1]; + num++; + ref QuestSequence reference20 = ref span28[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -29704,15 +35810,19 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list30)[0]; + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + ref QuestStep reference21 = ref span30[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, null, new Vector3(63.34564f, 57.438232f, 719.98425f), 135) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = new ComplexCombatData + index3 = 1; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = new ComplexCombatData { DataId = 138u, NameId = 399u, @@ -29722,18 +35832,22 @@ public static class AssemblyQuestLoader reference21 = obj21; obj20.Steps = list30; reference20 = obj20; - ref QuestSequence reference22 = ref span8[2]; + num++; + ref QuestSequence reference22 = ref span28[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1002445u, new Vector3(136.82764f, 58.937588f, 937.43787f), 135); + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.Interact, 1002445u, new Vector3(136.82764f, 58.937588f, 937.43787f), 135); obj22.Steps = list32; reference22 = obj22; - ref QuestSequence reference23 = ref span8[3]; + num++; + ref QuestSequence reference23 = ref span28[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -29741,7 +35855,9 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002236u, new Vector3(185.10718f, 14.095934f, 677.33264f), 135) + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002236u, new Vector3(185.10718f, 14.095934f, 677.33264f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; @@ -29754,24 +35870,30 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; + Span span34 = CollectionsMarshal.AsSpan(list34); + index = 0; + span34[index] = "liza"; questRoot6.Author = list34; - num = 2; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span9 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference24 = ref span9[0]; + index = 2; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + Span span35 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference24 = ref span35[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); obj24.Steps = list36; reference24 = obj24; - ref QuestSequence reference25 = ref span9[1]; + num++; + ref QuestSequence reference25 = ref span35[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -29779,7 +35901,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002274u, new Vector3(-34.65332f, 8.921356f, 861.4479f), 135) + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002274u, new Vector3(-34.65332f, 8.921356f, 861.4479f), 135) { Emote = EEmote.Doubt }; @@ -29792,24 +35916,30 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "liza"; + Span span38 = CollectionsMarshal.AsSpan(list38); + index = 0; + span38[index] = "liza"; questRoot7.Author = list38; - num = 5; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span10 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference26 = ref span10[0]; + index = 5; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + Span span39 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference26 = ref span39[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); obj26.Steps = list40; reference26 = obj26; - ref QuestSequence reference27 = ref span10[1]; + num++; + ref QuestSequence reference27 = ref span39[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -29817,21 +35947,27 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.Interact, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); obj27.Steps = list41; reference27 = obj27; - ref QuestSequence reference28 = ref span10[2]; + num++; + ref QuestSequence reference28 = ref span39[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1002240u, new Vector3(118.51672f, 23.000835f, 735.6831f), 135); + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.Interact, 1002240u, new Vector3(118.51672f, 23.000835f, 735.6831f), 135); obj28.Steps = list42; reference28 = obj28; - ref QuestSequence reference29 = ref span10[3]; + num++; + ref QuestSequence reference29 = ref span39[num]; QuestSequence obj29 = new QuestSequence { Sequence = 3 @@ -29839,18 +35975,23 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1002463u, new Vector3(249.89697f, 6.194409f, 773.12866f), 135); + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.Interact, 1002463u, new Vector3(249.89697f, 6.194409f, 773.12866f), 135); obj29.Steps = list43; reference29 = obj29; - ref QuestSequence reference30 = ref span10[4]; + num++; + ref QuestSequence reference30 = ref span39[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); obj30.Steps = list44; reference30 = obj30; questRoot7.QuestSequence = list39; @@ -29860,13 +36001,16 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; + Span span45 = CollectionsMarshal.AsSpan(list45); + index = 0; + span45[index] = "liza"; questRoot8.Author = list45; - num = 6; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span11 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference31 = ref span11[0]; + index = 6; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + Span span46 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference31 = ref span46[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -29874,21 +36018,27 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); obj31.Steps = list47; reference31 = obj31; - ref QuestSequence reference32 = ref span11[1]; + num++; + ref QuestSequence reference32 = ref span46[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1002240u, new Vector3(118.51672f, 23.000835f, 735.6831f), 135); + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.Interact, 1002240u, new Vector3(118.51672f, 23.000835f, 735.6831f), 135); obj32.Steps = list48; reference32 = obj32; - ref QuestSequence reference33 = ref span11[2]; + num++; + ref QuestSequence reference33 = ref span46[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -29896,23 +36046,28 @@ public static class AssemblyQuestLoader num2 = 2; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span12 = CollectionsMarshal.AsSpan(list49); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(106.18569f, 53.59632f, 674.99817f), 135); - span12[1] = new QuestStep(EInteractionType.Interact, 1002651u, new Vector3(107.65234f, 54.64395f, 674.9523f), 135) + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span49[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(106.18569f, 53.59632f, 674.99817f), 135); + index2++; + span49[index2] = new QuestStep(EInteractionType.Interact, 1002651u, new Vector3(107.65234f, 54.64395f, 674.9523f), 135) { StopDistance = 5f }; obj33.Steps = list49; reference33 = obj33; - ref QuestSequence reference34 = ref span11[3]; + num++; + ref QuestSequence reference34 = ref span46[num]; QuestSequence obj34 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list50)[0]; + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + ref QuestStep reference35 = ref span50[num2]; QuestStep obj35 = new QuestStep(EInteractionType.SinglePlayerDuty, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks @@ -29921,13 +36076,16 @@ public static class AssemblyQuestLoader num3 = 1; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = "(Phase 1, second enemy group) Stuck with enemy being out of sight -- but still able to attack you (tested on ACN)"; + Span span51 = CollectionsMarshal.AsSpan(list51); + index3 = 0; + span51[index3] = "(Phase 1, second enemy group) Stuck with enemy being out of sight -- but still able to attack you (tested on ACN)"; singlePlayerDutyOptions.Notes = list51; obj35.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference35 = obj35; obj34.Steps = list50; reference34 = obj34; - ref QuestSequence reference36 = ref span11[4]; + num++; + ref QuestSequence reference36 = ref span46[num]; QuestSequence obj36 = new QuestSequence { Sequence = 4 @@ -29935,18 +36093,23 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.Interact, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); obj36.Steps = list52; reference36 = obj36; - ref QuestSequence reference37 = ref span11[5]; + num++; + ref QuestSequence reference37 = ref span46[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); obj37.Steps = list53; reference37 = obj37; questRoot8.QuestSequence = list46; @@ -29956,13 +36119,16 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "liza"; + Span span54 = CollectionsMarshal.AsSpan(list54); + index = 0; + span54[index] = "liza"; questRoot9.Author = list54; - num = 5; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span13 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference38 = ref span13[0]; + index = 5; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + Span span55 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference38 = ref span55[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -29970,21 +36136,27 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002274u, new Vector3(-34.65332f, 8.921356f, 861.4479f), 135); + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002274u, new Vector3(-34.65332f, 8.921356f, 861.4479f), 135); obj38.Steps = list56; reference38 = obj38; - ref QuestSequence reference39 = ref span13[1]; + num++; + ref QuestSequence reference39 = ref span55[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1002456u, new Vector3(-94.86542f, 2.3717625f, 734.2793f), 135); + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.Interact, 1002456u, new Vector3(-94.86542f, 2.3717625f, 734.2793f), 135); obj39.Steps = list57; reference39 = obj39; - ref QuestSequence reference40 = ref span13[2]; + num++; + ref QuestSequence reference40 = ref span55[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -29992,66 +36164,91 @@ public static class AssemblyQuestLoader num2 = 3; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span14 = CollectionsMarshal.AsSpan(list58); - ref QuestStep reference41 = ref span14[0]; + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + ref QuestStep reference41 = ref span58[index2]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 2000769u, new Vector3(-145.09808f, 1.0527954f, 709.10205f), 135) { StopDistance = 4f }; - num3 = 6; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - Span span15 = CollectionsMarshal.AsSpan(list59); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list59 = new List(index3); + CollectionsMarshal.SetCount(list59, index3); + Span span59 = CollectionsMarshal.AsSpan(list59); + num3 = 0; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj41.CompletionQuestVariablesFlags = list59; reference41 = obj41; - ref QuestStep reference42 = ref span14[1]; + index2++; + ref QuestStep reference42 = ref span58[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2000770u, new Vector3(-185.68707f, -0.13739014f, 694.6669f), 135); num3 = 6; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - Span span16 = CollectionsMarshal.AsSpan(list60); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span60 = CollectionsMarshal.AsSpan(list60); + index3 = 0; + span60[index3] = null; + index3++; + span60[index3] = null; + index3++; + span60[index3] = null; + index3++; + span60[index3] = null; + index3++; + span60[index3] = null; + index3++; + span60[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list60; reference42 = questStep; - ref QuestStep reference43 = ref span14[2]; + index2++; + ref QuestStep reference43 = ref span58[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2000771u, new Vector3(-168.84113f, 1.9683228f, 659.327f), 135); - num3 = 6; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span17 = CollectionsMarshal.AsSpan(list61); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list61; reference43 = questStep2; obj40.Steps = list58; reference40 = obj40; - ref QuestSequence reference44 = ref span13[3]; + num++; + ref QuestSequence reference44 = ref span55[num]; QuestSequence obj42 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1002456u, new Vector3(-94.86542f, 2.3717625f, 734.2793f), 135); + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.Interact, 1002456u, new Vector3(-94.86542f, 2.3717625f, 734.2793f), 135); obj42.Steps = list62; reference44 = obj42; - ref QuestSequence reference45 = ref span13[4]; + num++; + ref QuestSequence reference45 = ref span55[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue @@ -30059,7 +36256,9 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135) + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; @@ -30072,21 +36271,26 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "JerryWester"; + Span span64 = CollectionsMarshal.AsSpan(list64); + index = 0; + span64[index] = "JerryWester"; questRoot10.Author = list64; - num = 7; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span18 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference46 = ref span18[0]; + index = 7; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + Span span65 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference46 = ref span65[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010961u, new Vector3(33.279907f, 20.495003f, -655.20715f), 156) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010961u, new Vector3(33.279907f, 20.495003f, -655.20715f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -30099,7 +36303,8 @@ public static class AssemblyQuestLoader }; obj44.Steps = list66; reference46 = obj44; - ref QuestSequence reference47 = ref span18[1]; + num++; + ref QuestSequence reference47 = ref span65[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 @@ -30107,7 +36312,9 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1009057u, new Vector3(-25.497864f, 38.010006f, 83.359985f), 131) + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.Interact, 1009057u, new Vector3(-25.497864f, 38.010006f, 83.359985f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -30118,18 +36325,22 @@ public static class AssemblyQuestLoader }; obj45.Steps = list67; reference47 = obj45; - ref QuestSequence reference48 = ref span18[2]; + num++; + ref QuestSequence reference48 = ref span65[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1009057u, new Vector3(-25.497864f, 38.010006f, 83.359985f), 131); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.Interact, 1009057u, new Vector3(-25.497864f, 38.010006f, 83.359985f), 131); obj46.Steps = list68; reference48 = obj46; - ref QuestSequence reference49 = ref span18[3]; + num++; + ref QuestSequence reference49 = ref span65[num]; QuestSequence obj47 = new QuestSequence { Sequence = 3 @@ -30137,27 +36348,32 @@ public static class AssemblyQuestLoader num2 = 2; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span19 = CollectionsMarshal.AsSpan(list69); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-123.426254f, 301.84348f, -283.14267f), 155) + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-123.426254f, 301.84348f, -283.14267f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span19[1] = new QuestStep(EInteractionType.Interact, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155) + index2++; + span69[index2] = new QuestStep(EInteractionType.Interact, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155) { Fly = true }; obj47.Steps = list69; reference49 = obj47; - ref QuestSequence reference50 = ref span18[4]; + num++; + ref QuestSequence reference50 = ref span65[num]; QuestSequence obj48 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list70)[0]; + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref QuestStep reference51 = ref span70[num2]; QuestStep obj49 = new QuestStep(EInteractionType.Combat, null, new Vector3(-497.33295f, 206.35991f, -363.85968f), 155) { Fly = true, @@ -30166,14 +36382,17 @@ public static class AssemblyQuestLoader num3 = 2; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span20 = CollectionsMarshal.AsSpan(list71); - span20[0] = 387u; - span20[1] = 3659u; + Span span71 = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span71[index3] = 387u; + index3++; + span71[index3] = 3659u; obj49.KillEnemyDataIds = list71; reference51 = obj49; obj48.Steps = list70; reference50 = obj48; - ref QuestSequence reference52 = ref span18[5]; + num++; + ref QuestSequence reference52 = ref span65[num]; QuestSequence obj50 = new QuestSequence { Sequence = 5 @@ -30181,37 +36400,44 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list72)[0]; + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + ref QuestStep reference53 = ref span72[index2]; QuestStep obj51 = new QuestStep(EInteractionType.Combat, null, new Vector3(127.06116f, 373.5079f, -653.1907f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span21 = CollectionsMarshal.AsSpan(list73); - span21[0] = 398u; - span21[1] = 3658u; + index3 = 2; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + Span span73 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span73[num3] = 398u; + num3++; + span73[num3] = 3658u; obj51.KillEnemyDataIds = list73; reference53 = obj51; obj50.Steps = list72; reference52 = obj50; - ref QuestSequence reference54 = ref span18[6]; + num++; + ref QuestSequence reference54 = ref span65[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - Span span22 = CollectionsMarshal.AsSpan(list74); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-133.9223f, 304.15378f, -292.65924f), 155) + index2 = 2; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-133.9223f, 304.15378f, -292.65924f), 155) { Fly = true }; - span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155) + num2++; + span74[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155) { Fly = true }; @@ -30224,13 +36450,16 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "JerryWester"; + Span span75 = CollectionsMarshal.AsSpan(list75); + index = 0; + span75[index] = "JerryWester"; questRoot11.Author = list75; - num = 5; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span23 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference55 = ref span23[0]; + index = 5; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + Span span76 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference55 = ref span76[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -30238,26 +36467,32 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); obj53.Steps = list77; reference55 = obj53; - ref QuestSequence reference56 = ref span23[1]; + num++; + ref QuestSequence reference56 = ref span76[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span24 = CollectionsMarshal.AsSpan(list78); - span24[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + index2 = 2; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span24[1] = new QuestStep(EInteractionType.Interact, 2005060u, new Vector3(-4.135254f, 0.015197754f, -9.628479f), 351); + num2++; + span78[num2] = new QuestStep(EInteractionType.Interact, 2005060u, new Vector3(-4.135254f, 0.015197754f, -9.628479f), 351); obj54.Steps = list78; reference56 = obj54; - ref QuestSequence reference57 = ref span23[2]; + num++; + ref QuestSequence reference57 = ref span76[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -30265,34 +36500,41 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1011612u, new Vector3(7.736328f, 0f, -8.438293f), 351); + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.Interact, 1011612u, new Vector3(7.736328f, 0f, -8.438293f), 351); obj55.Steps = list79; reference57 = obj55; - ref QuestSequence reference58 = ref span23[3]; + num++; + ref QuestSequence reference58 = ref span76[num]; QuestSequence obj56 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span25 = CollectionsMarshal.AsSpan(list80); - span25[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + index2 = 3; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - span25[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.414328f, 21.232033f, -652.65454f), 156) + num2++; + span80[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.414328f, 21.232033f, -652.65454f), 156) { Mount = true }; - span25[2] = new QuestStep(EInteractionType.Interact, 1010979u, new Vector3(27.023682f, 32.412476f, -697.35254f), 156) + num2++; + span80[num2] = new QuestStep(EInteractionType.Interact, 1010979u, new Vector3(27.023682f, 32.412476f, -697.35254f), 156) { StopDistance = 1f, Fly = true }; obj56.Steps = list80; reference58 = obj56; - ref QuestSequence reference59 = ref span23[4]; + num++; + ref QuestSequence reference59 = ref span76[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -30300,20 +36542,24 @@ public static class AssemblyQuestLoader num2 = 4; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span26 = CollectionsMarshal.AsSpan(list81); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.414328f, 21.232033f, -652.65454f), 156) + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.414328f, 21.232033f, -652.65454f), 156) { Fly = true }; - span26[1] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2++; + span81[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - span26[2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span81[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span26[3] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + index2++; + span81[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); obj57.Steps = list81; reference59 = obj57; questRoot11.QuestSequence = list76; @@ -30323,24 +36569,30 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "JerryWester"; + Span span82 = CollectionsMarshal.AsSpan(list82); + index = 0; + span82[index] = "JerryWester"; questRoot12.Author = list82; - num = 6; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span27 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference60 = ref span27[0]; + index = 6; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + Span span83 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference60 = ref span83[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); obj58.Steps = list84; reference60 = obj58; - ref QuestSequence reference61 = ref span27[1]; + num++; + ref QuestSequence reference61 = ref span83[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 @@ -30348,7 +36600,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1010980u, new Vector3(-341.6648f, -2.3744712f, 10.696533f), 129) + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.Interact, 1010980u, new Vector3(-341.6648f, -2.3744712f, 10.696533f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -30359,18 +36613,22 @@ public static class AssemblyQuestLoader }; obj59.Steps = list85; reference61 = obj59; - ref QuestSequence reference62 = ref span27[2]; + num++; + ref QuestSequence reference62 = ref span83[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); obj60.Steps = list86; reference62 = obj60; - ref QuestSequence reference63 = ref span27[3]; + num++; + ref QuestSequence reference63 = ref span83[num]; QuestSequence obj61 = new QuestSequence { Sequence = 3 @@ -30378,7 +36636,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 2005073u, new Vector3(-1.0223389f, 29.55664f, 172.96094f), 134) + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.Interact, 2005073u, new Vector3(-1.0223389f, 29.55664f, 172.96094f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -30389,21 +36649,25 @@ public static class AssemblyQuestLoader }; obj61.Steps = list87; reference63 = obj61; - ref QuestSequence reference64 = ref span27[4]; + num++; + ref QuestSequence reference64 = ref span83[num]; QuestSequence obj62 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1010981u, new Vector3(124.74243f, 45.74832f, 135.7594f), 134) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Interact, 1010981u, new Vector3(124.74243f, 45.74832f, 135.7594f), 134) { Fly = true }; obj62.Steps = list88; reference64 = obj62; - ref QuestSequence reference65 = ref span27[5]; + num++; + ref QuestSequence reference65 = ref span83[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue @@ -30411,7 +36675,9 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -30429,24 +36695,30 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "JerryWester"; + Span span90 = CollectionsMarshal.AsSpan(list90); + index = 0; + span90[index] = "JerryWester"; questRoot13.Author = list90; - num = 6; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span28 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference66 = ref span28[0]; + index = 6; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + Span span91 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference66 = ref span91[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011020u, new Vector3(-329.09137f, 12.899738f, 12.039368f), 129); + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011020u, new Vector3(-329.09137f, 12.899738f, 12.039368f), 129); obj64.Steps = list92; reference66 = obj64; - ref QuestSequence reference67 = ref span28[1]; + num++; + ref QuestSequence reference67 = ref span91[num]; QuestSequence obj65 = new QuestSequence { Sequence = 1 @@ -30454,28 +36726,34 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1010982u, new Vector3(570.18384f, 20.637413f, 490.6233f), 137) + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.Interact, 1010982u, new Vector3(570.18384f, 20.637413f, 490.6233f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj65.Steps = list93; reference67 = obj65; - ref QuestSequence reference68 = ref span28[2]; + num++; + ref QuestSequence reference68 = ref span91[num]; QuestSequence obj66 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1010983u, new Vector3(594.7814f, 8.632993f, 601.77f), 137) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.Interact, 1010983u, new Vector3(594.7814f, 8.632993f, 601.77f), 137) { Fly = true }; obj66.Steps = list94; reference68 = obj66; - ref QuestSequence reference69 = ref span28[3]; + num++; + ref QuestSequence reference69 = ref span91[num]; QuestSequence obj67 = new QuestSequence { Sequence = 3 @@ -30483,7 +36761,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list95)[0]; + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + ref QuestStep reference70 = ref span95[index2]; QuestStep obj68 = new QuestStep(EInteractionType.Combat, 2005064u, new Vector3(602.9907f, 8.987488f, 577.66077f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -30491,23 +36771,29 @@ public static class AssemblyQuestLoader num3 = 1; List list96 = new List(num3); CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = 3660u; + Span span96 = CollectionsMarshal.AsSpan(list96); + index3 = 0; + span96[index3] = 3660u; obj68.KillEnemyDataIds = list96; reference70 = obj68; obj67.Steps = list95; reference69 = obj67; - ref QuestSequence reference71 = ref span28[4]; + num++; + ref QuestSequence reference71 = ref span91[num]; QuestSequence obj69 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1010983u, new Vector3(594.7814f, 8.632993f, 601.77f), 137); + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span97[num2] = new QuestStep(EInteractionType.Interact, 1010983u, new Vector3(594.7814f, 8.632993f, 601.77f), 137); obj69.Steps = list97; reference71 = obj69; - ref QuestSequence reference72 = ref span28[5]; + num++; + ref QuestSequence reference72 = ref span91[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -30515,17 +36801,20 @@ public static class AssemblyQuestLoader num2 = 3; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span29 = CollectionsMarshal.AsSpan(list98); - span29[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span98[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span29[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span98[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span29[2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + index2++; + span98[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); obj70.Steps = list98; reference72 = obj70; questRoot13.QuestSequence = list91; @@ -30535,24 +36824,30 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "JerryWester"; + Span span99 = CollectionsMarshal.AsSpan(list99); + index = 0; + span99[index] = "JerryWester"; questRoot14.Author = list99; - num = 13; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span30 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference73 = ref span30[0]; + index = 13; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + Span span100 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference73 = ref span100[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); obj71.Steps = list101; reference73 = obj71; - ref QuestSequence reference74 = ref span30[1]; + num++; + ref QuestSequence reference74 = ref span100[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -30560,29 +36855,35 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span31 = CollectionsMarshal.AsSpan(list102); - span31[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span102[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span31[1] = new QuestStep(EInteractionType.Interact, 1011615u, new Vector3(-1.3275757f, 0f, -2.7008667f), 351); + index2++; + span102[index2] = new QuestStep(EInteractionType.Interact, 1011615u, new Vector3(-1.3275757f, 0f, -2.7008667f), 351); obj72.Steps = list102; reference74 = obj72; - ref QuestSequence reference75 = ref span30[2]; + num++; + ref QuestSequence reference75 = ref span100[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1010984u, new Vector3(-207.44641f, 20.86788f, 360.06702f), 153) + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span103[num2] = new QuestStep(EInteractionType.Interact, 1010984u, new Vector3(-207.44641f, 20.86788f, 360.06702f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj73.Steps = list103; reference75 = obj73; - ref QuestSequence reference76 = ref span30[3]; + num++; + ref QuestSequence reference76 = ref span100[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -30590,34 +36891,42 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1010985u, new Vector3(-223.71259f, 12.277637f, 47.989624f), 153) + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.Interact, 1010985u, new Vector3(-223.71259f, 12.277637f, 47.989624f), 153) { Fly = true }; obj74.Steps = list104; reference76 = obj74; - ref QuestSequence reference77 = ref span30[4]; + num++; + ref QuestSequence reference77 = ref span100[num]; QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list105)[0]; + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + ref QuestStep reference78 = ref span105[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, 2005065u, new Vector3(-225.26898f, 13.137939f, 56.90088f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = 23u; + index3 = 1; + List list106 = new List(index3); + CollectionsMarshal.SetCount(list106, index3); + Span span106 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span106[num3] = 23u; obj76.KillEnemyDataIds = list106; reference78 = obj76; obj75.Steps = list105; reference77 = obj75; - ref QuestSequence reference79 = ref span30[5]; + num++; + ref QuestSequence reference79 = ref span100[num]; QuestSequence obj77 = new QuestSequence { Sequence = 5 @@ -30625,24 +36934,30 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1010985u, new Vector3(-223.71259f, 12.277637f, 47.989624f), 153); + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new QuestStep(EInteractionType.Interact, 1010985u, new Vector3(-223.71259f, 12.277637f, 47.989624f), 153); obj77.Steps = list107; reference79 = obj77; - ref QuestSequence reference80 = ref span30[6]; + num++; + ref QuestSequence reference80 = ref span100[num]; QuestSequence obj78 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1010986u, new Vector3(122.941895f, 24.534142f, 169.72607f), 153) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.Interact, 1010986u, new Vector3(122.941895f, 24.534142f, 169.72607f), 153) { Fly = true }; obj78.Steps = list108; reference80 = obj78; - ref QuestSequence reference81 = ref span30[7]; + num++; + ref QuestSequence reference81 = ref span100[num]; QuestSequence obj79 = new QuestSequence { Sequence = 7 @@ -30650,7 +36965,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list109)[0]; + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + ref QuestStep reference82 = ref span109[index2]; QuestStep obj80 = new QuestStep(EInteractionType.Combat, 2005066u, new Vector3(109.666504f, 24.15503f, 174.7616f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -30658,25 +36975,31 @@ public static class AssemblyQuestLoader num3 = 2; List list110 = new List(num3); CollectionsMarshal.SetCount(list110, num3); - Span span32 = CollectionsMarshal.AsSpan(list110); - span32[0] = 24u; - span32[1] = 130u; + Span span110 = CollectionsMarshal.AsSpan(list110); + index3 = 0; + span110[index3] = 24u; + index3++; + span110[index3] = 130u; obj80.KillEnemyDataIds = list110; reference82 = obj80; obj79.Steps = list109; reference81 = obj79; - ref QuestSequence reference83 = ref span30[8]; + num++; + ref QuestSequence reference83 = ref span100[num]; QuestSequence obj81 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1010986u, new Vector3(122.941895f, 24.534142f, 169.72607f), 153); + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.Interact, 1010986u, new Vector3(122.941895f, 24.534142f, 169.72607f), 153); obj81.Steps = list111; reference83 = obj81; - ref QuestSequence reference84 = ref span30[9]; + num++; + ref QuestSequence reference84 = ref span100[num]; QuestSequence obj82 = new QuestSequence { Sequence = 9 @@ -30684,34 +37007,42 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1010987u, new Vector3(-355.2453f, 0.6691612f, 459.3728f), 153) + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.Interact, 1010987u, new Vector3(-355.2453f, 0.6691612f, 459.3728f), 153) { Fly = true }; obj82.Steps = list112; reference84 = obj82; - ref QuestSequence reference85 = ref span30[10]; + num++; + ref QuestSequence reference85 = ref span100[num]; QuestSequence obj83 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - ref QuestStep reference86 = ref CollectionsMarshal.AsSpan(list113)[0]; + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + ref QuestStep reference86 = ref span113[num2]; QuestStep obj84 = new QuestStep(EInteractionType.Combat, 2005067u, new Vector3(-338.42987f, -0.07635498f, 453.4828f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = 305u; + index3 = 1; + List list114 = new List(index3); + CollectionsMarshal.SetCount(list114, index3); + Span span114 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span114[num3] = 305u; obj84.KillEnemyDataIds = list114; reference86 = obj84; obj83.Steps = list113; reference85 = obj83; - ref QuestSequence reference87 = ref span30[11]; + num++; + ref QuestSequence reference87 = ref span100[num]; QuestSequence obj85 = new QuestSequence { Sequence = 11 @@ -30719,18 +37050,23 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1010987u, new Vector3(-355.2453f, 0.6691612f, 459.3728f), 153); + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.Interact, 1010987u, new Vector3(-355.2453f, 0.6691612f, 459.3728f), 153); obj85.Steps = list115; reference87 = obj85; - ref QuestSequence reference88 = ref span30[12]; + num++; + ref QuestSequence reference88 = ref span100[num]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010984u, new Vector3(-207.44641f, 20.86788f, 360.06702f), 153) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010984u, new Vector3(-207.44641f, 20.86788f, 360.06702f), 153) { Fly = true }; @@ -30743,13 +37079,16 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "JerryWester"; + Span span117 = CollectionsMarshal.AsSpan(list117); + index = 0; + span117[index] = "JerryWester"; questRoot15.Author = list117; - num = 4; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span33 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference89 = ref span33[0]; + index = 4; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + Span span118 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference89 = ref span118[num]; QuestSequence obj87 = new QuestSequence { Sequence = 0 @@ -30757,7 +37096,9 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010984u, new Vector3(-207.44641f, 20.86788f, 360.06702f), 153) + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010984u, new Vector3(-207.44641f, 20.86788f, 360.06702f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, SkipConditions = new SkipConditions @@ -30770,22 +37111,26 @@ public static class AssemblyQuestLoader }; obj87.Steps = list119; reference89 = obj87; - ref QuestSequence reference90 = ref span33[1]; + num++; + ref QuestSequence reference90 = ref span118[num]; QuestSequence obj88 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1010988u, new Vector3(618.40234f, 22.52846f, 105.63818f), 153) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.Interact, 1010988u, new Vector3(618.40234f, 22.52846f, 105.63818f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj88.Steps = list120; reference90 = obj88; - ref QuestSequence reference91 = ref span33[2]; + num++; + ref QuestSequence reference91 = ref span118[num]; QuestSequence obj89 = new QuestSequence { Sequence = 2 @@ -30793,28 +37138,34 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 2005068u, new Vector3(604.57764f, 24.032959f, 105.119385f), 153); + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.Interact, 2005068u, new Vector3(604.57764f, 24.032959f, 105.119385f), 153); obj89.Steps = list121; reference91 = obj89; - ref QuestSequence reference92 = ref span33[3]; + num++; + ref QuestSequence reference92 = ref span118[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - Span span34 = CollectionsMarshal.AsSpan(list122); - span34[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span34[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span122[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span34[2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + num2++; + span122[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); obj90.Steps = list122; reference92 = obj90; questRoot15.QuestSequence = list118; @@ -30824,13 +37175,16 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "JerryWester"; + Span span123 = CollectionsMarshal.AsSpan(list123); + index = 0; + span123[index] = "JerryWester"; questRoot16.Author = list123; - num = 2; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span35 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference93 = ref span35[0]; + index = 2; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + Span span124 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference93 = ref span124[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -30838,8 +37192,9 @@ public static class AssemblyQuestLoader num2 = 3; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span36 = CollectionsMarshal.AsSpan(list125); - ref QuestStep reference94 = ref span36[0]; + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + ref QuestStep reference94 = ref span125[index2]; QuestStep obj92 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -30850,19 +37205,24 @@ public static class AssemblyQuestLoader num3 = 1; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = 351; + Span span126 = CollectionsMarshal.AsSpan(list126); + index3 = 0; + span126[index3] = 351; skipStepConditions.InTerritory = list126; skipConditions.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - CollectionsMarshal.AsSpan(list127)[0] = 351; + index3 = 1; + List list127 = new List(index3); + CollectionsMarshal.SetCount(list127, index3); + Span span127 = CollectionsMarshal.AsSpan(list127); + num3 = 0; + span127[num3] = 351; skipAetheryteCondition.InTerritory = list127; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj92.SkipConditions = skipConditions; reference94 = obj92; - span36[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span125[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -30873,18 +37233,22 @@ public static class AssemblyQuestLoader } } }; - span36[2] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + index2++; + span125[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); obj91.Steps = list125; reference93 = obj91; - ref QuestSequence reference95 = ref span35[1]; + num++; + ref QuestSequence reference95 = ref span124[num]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010992u, new Vector3(-6.149414f, 29.99998f, 19.150085f), 131) + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010992u, new Vector3(-6.149414f, 29.99998f, 19.150085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -30902,13 +37266,16 @@ public static class AssemblyQuestLoader num = 1; List list129 = new List(num); CollectionsMarshal.SetCount(list129, num); - CollectionsMarshal.AsSpan(list129)[0] = "JerryWester"; + Span span129 = CollectionsMarshal.AsSpan(list129); + index = 0; + span129[index] = "JerryWester"; questRoot17.Author = list129; - num = 6; - List list130 = new List(num); - CollectionsMarshal.SetCount(list130, num); - Span span37 = CollectionsMarshal.AsSpan(list130); - ref QuestSequence reference96 = ref span37[0]; + index = 6; + List list130 = new List(index); + CollectionsMarshal.SetCount(list130, index); + Span span130 = CollectionsMarshal.AsSpan(list130); + num = 0; + ref QuestSequence reference96 = ref span130[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 @@ -30916,18 +37283,23 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010992u, new Vector3(-6.149414f, 29.99998f, 19.150085f), 131); + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010992u, new Vector3(-6.149414f, 29.99998f, 19.150085f), 131); obj94.Steps = list131; reference96 = obj94; - ref QuestSequence reference97 = ref span37[1]; + num++; + ref QuestSequence reference97 = ref span130[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -30937,7 +37309,8 @@ public static class AssemblyQuestLoader }; obj95.Steps = list132; reference97 = obj95; - ref QuestSequence reference98 = ref span37[2]; + num++; + ref QuestSequence reference98 = ref span130[num]; QuestSequence obj96 = new QuestSequence { Sequence = 2 @@ -30945,25 +37318,31 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 2005069u, new Vector3(-289.17377f, 22.812195f, -56.6568f), 141) + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.Interact, 2005069u, new Vector3(-289.17377f, 22.812195f, -56.6568f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj96.Steps = list133; reference98 = obj96; - ref QuestSequence reference99 = ref span37[3]; + num++; + ref QuestSequence reference99 = ref span130[num]; QuestSequence obj97 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2005070u, new Vector3(-289.17377f, 22.812195f, -56.6568f), 141); + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.Interact, 2005070u, new Vector3(-289.17377f, 22.812195f, -56.6568f), 141); obj97.Steps = list134; reference99 = obj97; - ref QuestSequence reference100 = ref span37[4]; + num++; + ref QuestSequence reference100 = ref span130[num]; QuestSequence obj98 = new QuestSequence { Sequence = 4 @@ -30971,18 +37350,23 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 2005072u, new Vector3(-289.72308f, 22.812195f, -56.321106f), 141); + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.Interact, 2005072u, new Vector3(-289.72308f, 22.812195f, -56.321106f), 141); obj98.Steps = list135; reference100 = obj98; - ref QuestSequence reference101 = ref span37[5]; + num++; + ref QuestSequence reference101 = ref span130[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -31000,13 +37384,16 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "JerryWester"; + Span span137 = CollectionsMarshal.AsSpan(list137); + index = 0; + span137[index] = "JerryWester"; questRoot18.Author = list137; - num = 4; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span38 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference102 = ref span38[0]; + index = 4; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + Span span138 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference102 = ref span138[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 @@ -31014,18 +37401,23 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj100.Steps = list139; reference102 = obj100; - ref QuestSequence reference103 = ref span38[1]; + num++; + ref QuestSequence reference103 = ref span138[num]; QuestSequence obj101 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - ref QuestStep reference104 = ref CollectionsMarshal.AsSpan(list140)[0]; + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + ref QuestStep reference104 = ref span140[num2]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 1010997u, new Vector3(-22.354492f, 38.010006f, 83.42102f), 131) { AethernetShortcut = new AethernetShortcut @@ -31037,7 +37429,9 @@ public static class AssemblyQuestLoader num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = new DialogueChoice + Span span141 = CollectionsMarshal.AsSpan(list141); + index3 = 0; + span141[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE615_00427_Q1_000_012") @@ -31046,7 +37440,8 @@ public static class AssemblyQuestLoader reference104 = obj102; obj101.Steps = list140; reference103 = obj101; - ref QuestSequence reference105 = ref span38[2]; + num++; + ref QuestSequence reference105 = ref span138[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 @@ -31054,27 +37449,32 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 1010998u, new Vector3(78.416016f, -0.63573146f, -166.33862f), 141) + Span span142 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span142[index2] = new QuestStep(EInteractionType.Interact, 1010998u, new Vector3(78.416016f, -0.63573146f, -166.33862f), 141) { StopDistance = 5f }; obj103.Steps = list142; reference105 = obj103; - ref QuestSequence reference106 = ref span38[3]; + num++; + ref QuestSequence reference106 = ref span138[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - Span span39 = CollectionsMarshal.AsSpan(list143); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.6061f, 303.12494f, -199.86047f), 155) + index2 = 2; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + Span span143 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span143[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.6061f, 303.12494f, -199.86047f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span39[1] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + num2++; + span143[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj104.Steps = list143; reference106 = obj104; questRoot18.QuestSequence = list138; @@ -31084,13 +37484,16 @@ public static class AssemblyQuestLoader num = 1; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - CollectionsMarshal.AsSpan(list144)[0] = "JerryWester"; + Span span144 = CollectionsMarshal.AsSpan(list144); + index = 0; + span144[index] = "JerryWester"; questRoot19.Author = list144; - num = 2; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - Span span40 = CollectionsMarshal.AsSpan(list145); - ref QuestSequence reference107 = ref span40[0]; + index = 2; + List list145 = new List(index); + CollectionsMarshal.SetCount(list145, index); + Span span145 = CollectionsMarshal.AsSpan(list145); + num = 0; + ref QuestSequence reference107 = ref span145[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 @@ -31098,7 +37501,9 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + Span span146 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span146[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -31111,23 +37516,28 @@ public static class AssemblyQuestLoader }; obj105.Steps = list146; reference107 = obj105; - ref QuestSequence reference108 = ref span40[1]; + num++; + ref QuestSequence reference108 = ref span145[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - ref QuestStep reference109 = ref CollectionsMarshal.AsSpan(list147)[0]; + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + ref QuestStep reference109 = ref span147[num2]; QuestStep obj107 = new QuestStep(EInteractionType.CompleteQuest, 1007603u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155) { Mount = true }; - num3 = 1; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - CollectionsMarshal.AsSpan(list148)[0] = new DialogueChoice + index3 = 1; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + Span span148 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span148[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE616_00428_FORTEMPSGUARD00428_Q1_000_000") @@ -31143,13 +37553,16 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "JerryWester"; + Span span149 = CollectionsMarshal.AsSpan(list149); + index = 0; + span149[index] = "JerryWester"; questRoot20.Author = list149; - num = 3; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span41 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference110 = ref span41[0]; + index = 3; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + Span span150 = CollectionsMarshal.AsSpan(list150); + num = 0; + ref QuestSequence reference110 = ref span150[num]; QuestSequence obj108 = new QuestSequence { Sequence = 0 @@ -31157,37 +37570,45 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011000u, new Vector3(-0.07635498f, -1.9957249f, -42.25226f), 351); + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011000u, new Vector3(-0.07635498f, -1.9957249f, -42.25226f), 351); obj108.Steps = list151; reference110 = obj108; - ref QuestSequence reference111 = ref span41[1]; + num++; + ref QuestSequence reference111 = ref span150[num]; QuestSequence obj109 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - Span span42 = CollectionsMarshal.AsSpan(list152); - span42[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + index2 = 4; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span42[1] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + num2++; + span152[num2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - span42[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + num2++; + span152[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - span42[3] = new QuestStep(EInteractionType.Interact, 2005045u, new Vector3(-146.44086f, 43.656006f, -188.61682f), 156) + num2++; + span152[num2] = new QuestStep(EInteractionType.Interact, 2005045u, new Vector3(-146.44086f, 43.656006f, -188.61682f), 156) { Fly = true }; obj109.Steps = list152; reference111 = obj109; - ref QuestSequence reference112 = ref span41[2]; + num++; + ref QuestSequence reference112 = ref span150[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -31195,17 +37616,20 @@ public static class AssemblyQuestLoader num2 = 3; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span43 = CollectionsMarshal.AsSpan(list153); - span43[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span43[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span153[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span43[2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + index2++; + span153[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); obj110.Steps = list153; reference112 = obj110; questRoot20.QuestSequence = list150; @@ -31215,27 +37639,33 @@ public static class AssemblyQuestLoader num = 1; List list154 = new List(num); CollectionsMarshal.SetCount(list154, num); - CollectionsMarshal.AsSpan(list154)[0] = "liza"; + Span span154 = CollectionsMarshal.AsSpan(list154); + index = 0; + span154[index] = "liza"; questRoot21.Author = list154; - num = 4; - List list155 = new List(num); - CollectionsMarshal.SetCount(list155, num); - Span span44 = CollectionsMarshal.AsSpan(list155); - ref QuestSequence reference113 = ref span44[0]; + index = 4; + List list155 = new List(index); + CollectionsMarshal.SetCount(list155, index); + Span span155 = CollectionsMarshal.AsSpan(list155); + num = 0; + ref QuestSequence reference113 = ref span155[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132) + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj111.Steps = list156; reference113 = obj111; - ref QuestSequence reference114 = ref span44[1]; + num++; + ref QuestSequence reference114 = ref span155[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -31243,22 +37673,27 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1011250u, new Vector3(616.51013f, 22.291952f, 85.22156f), 153) + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.Interact, 1011250u, new Vector3(616.51013f, 22.291952f, 85.22156f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj112.Steps = list157; reference114 = obj112; - ref QuestSequence reference115 = ref span44[2]; + num++; + ref QuestSequence reference115 = ref span155[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Duty, null, null, 153) + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span158[num2] = new QuestStep(EInteractionType.Duty, null, null, 153) { DutyOptions = new DutyOptions { @@ -31267,7 +37702,8 @@ public static class AssemblyQuestLoader }; obj113.Steps = list158; reference115 = obj113; - ref QuestSequence reference116 = ref span44[3]; + num++; + ref QuestSequence reference116 = ref span155[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue @@ -31275,7 +37711,9 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011250u, new Vector3(616.51013f, 22.291952f, 85.22156f), 153); + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011250u, new Vector3(616.51013f, 22.291952f, 85.22156f), 153); obj114.Steps = list159; reference116 = obj114; questRoot21.QuestSequence = list155; @@ -31285,24 +37723,30 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; + Span span160 = CollectionsMarshal.AsSpan(list160); + index = 0; + span160[index] = "liza"; questRoot22.Author = list160; - num = 2; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span45 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference117 = ref span45[0]; + index = 2; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + Span span161 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference117 = ref span161[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011565u, new Vector3(-78.8739f, 4f, -110.429565f), 130); + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span162[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011565u, new Vector3(-78.8739f, 4f, -110.429565f), 130); obj115.Steps = list162; reference117 = obj115; - ref QuestSequence reference118 = ref span45[1]; + num++; + ref QuestSequence reference118 = ref span161[num]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue @@ -31310,7 +37754,9 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - ref QuestStep reference119 = ref CollectionsMarshal.AsSpan(list163)[0]; + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + ref QuestStep reference119 = ref span163[index2]; QuestStep obj117 = new QuestStep(EInteractionType.CompleteQuest, 1004433u, new Vector3(-23.605713f, 83.19999f, -2.3041382f), 130) { AethernetShortcut = new AethernetShortcut @@ -31322,7 +37768,9 @@ public static class AssemblyQuestLoader num3 = 1; List list164 = new List(num3); CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice + Span span164 = CollectionsMarshal.AsSpan(list164); + index3 = 0; + span164[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_SUBGSC001_00434_Q1_000_000") @@ -31339,29 +37787,35 @@ public static class AssemblyQuestLoader num = 2; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - Span span46 = CollectionsMarshal.AsSpan(list165); - span46[0] = "liza"; - span46[1] = "JerryWester"; + Span span165 = CollectionsMarshal.AsSpan(list165); + index = 0; + span165[index] = "liza"; + index++; + span165[index] = "JerryWester"; questRoot23.Author = list165; - num = 8; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span47 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference120 = ref span47[0]; + index = 8; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + Span span166 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference120 = ref span166[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011022u, new Vector3(-38.895264f, -2.7930364E-06f, 97.33728f), 144) + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011022u, new Vector3(-38.895264f, -2.7930364E-06f, 97.33728f), 144) { StopDistance = 7f }; obj118.Steps = list167; reference120 = obj118; - ref QuestSequence reference121 = ref span47[1]; + num++; + ref QuestSequence reference121 = ref span166[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -31369,33 +37823,39 @@ public static class AssemblyQuestLoader num2 = 2; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span48 = CollectionsMarshal.AsSpan(list168); - span48[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + Span span168 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span168[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerEntranceCardSquares }; - span48[1] = new QuestStep(EInteractionType.Interact, 1010448u, new Vector3(-54.00177f, 1.6000003f, 30.685791f), 144) + index2++; + span168[index2] = new QuestStep(EInteractionType.Interact, 1010448u, new Vector3(-54.00177f, 1.6000003f, 30.685791f), 144) { StopDistance = 5f }; obj119.Steps = list168; reference121 = obj119; - ref QuestSequence reference122 = ref span47[2]; + num++; + ref QuestSequence reference122 = ref span166[num]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1011038u, new Vector3(-58.884644f, 1.6000003f, 27.634033f), 144) + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + Span span169 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span169[num2] = new QuestStep(EInteractionType.Interact, 1011038u, new Vector3(-58.884644f, 1.6000003f, 27.634033f), 144) { StopDistance = 5f }; obj120.Steps = list169; reference122 = obj120; - ref QuestSequence reference123 = ref span47[3]; + num++; + ref QuestSequence reference123 = ref span166[num]; QuestSequence obj121 = new QuestSequence { Sequence = 3 @@ -31403,33 +37863,40 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1010478u, new Vector3(-99.19891f, -0.86297023f, 66.11731f), 144); + Span span170 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span170[index2] = new QuestStep(EInteractionType.Interact, 1010478u, new Vector3(-99.19891f, -0.86297023f, 66.11731f), 144); obj121.Steps = list170; reference123 = obj121; - ref QuestSequence reference124 = ref span47[4]; + num++; + ref QuestSequence reference124 = ref span166[num]; QuestSequence obj122 = new QuestSequence { Sequence = 4 }; - num2 = 6; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - Span span49 = CollectionsMarshal.AsSpan(list171); - span49[0] = new QuestStep(EInteractionType.Interact, 1011044u, new Vector3(-84.45868f, 3.7690625E-06f, 29.06836f), 144) + index2 = 6; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + Span span171 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span171[num2] = new QuestStep(EInteractionType.Interact, 1011044u, new Vector3(-84.45868f, 3.7690625E-06f, 29.06836f), 144) { TargetTerritoryId = (ushort)388 }; - span49[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) + num2++; + span171[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) { StopDistance = 5f, AethernetShard = EAetheryteLocation.GoldSaucerMinionSquare }; - span49[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) + num2++; + span171[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerChocoboSquare }; - span49[3] = new QuestStep(EInteractionType.None, null, null, 388) + num2++; + span171[num2] = new QuestStep(EInteractionType.None, null, null, 388) { AethernetShortcut = new AethernetShortcut { @@ -31437,15 +37904,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucerEntranceCardSquares } }; - span49[4] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 144) + num2++; + span171[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 144) { DelaySecondsAtStart = 3f, Aetheryte = EAetheryteLocation.GoldSaucer }; - span49[5] = new QuestStep(EInteractionType.Interact, 1011080u, new Vector3(21.530457f, 3.9997296f, 39.902344f), 144); + num2++; + span171[num2] = new QuestStep(EInteractionType.Interact, 1011080u, new Vector3(21.530457f, 3.9997296f, 39.902344f), 144); obj122.Steps = list171; reference124 = obj122; - ref QuestSequence reference125 = ref span47[5]; + num++; + ref QuestSequence reference125 = ref span166[num]; QuestSequence obj123 = new QuestSequence { Sequence = 5 @@ -31453,20 +37923,24 @@ public static class AssemblyQuestLoader num2 = 9; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span50 = CollectionsMarshal.AsSpan(list172); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.78062f, 11.798187f, 20.328043f), 144); - span50[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.78062f, 11.798187f, 20.328043f), 144); + index2++; + span172[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, DelaySecondsAtStart = 3f, AethernetShard = EAetheryteLocation.GoldSaucerWonderSquareWest }; - span50[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + index2++; + span172[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerWonderSquareEast }; - span50[3] = new QuestStep(EInteractionType.None, null, null, 144) + index2++; + span172[index2] = new QuestStep(EInteractionType.None, null, null, 144) { AethernetShortcut = new AethernetShortcut { @@ -31474,39 +37948,47 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucer } }; - span50[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + index2++; + span172[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, DelaySecondsAtStart = 3f, AethernetShard = EAetheryteLocation.GoldSaucerEventSquare }; - span50[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(122.973015f, -0.5100681f, -50.024624f), 144) + index2++; + span172[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(122.973015f, -0.5100681f, -50.024624f), 144) { DelaySecondsAtStart = 3f }; - span50[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + index2++; + span172[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerCactpotBoard }; - span50[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.36922f, 13.000123f, -24.209782f), 144); - span50[8] = new QuestStep(EInteractionType.Interact, 1011079u, new Vector3(125.078125f, 13.000635f, -13.778931f), 144) + index2++; + span172[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.36922f, 13.000123f, -24.209782f), 144); + index2++; + span172[index2] = new QuestStep(EInteractionType.Interact, 1011079u, new Vector3(125.078125f, 13.000635f, -13.778931f), 144) { StopDistance = 4f }; obj123.Steps = list172; reference125 = obj123; - ref QuestSequence reference126 = ref span47[6]; + num++; + ref QuestSequence reference126 = ref span166[num]; QuestSequence obj124 = new QuestSequence { Sequence = 6 }; - num2 = 3; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - Span span51 = CollectionsMarshal.AsSpan(list173); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.36922f, 13.000123f, -24.209782f), 144); - span51[1] = new QuestStep(EInteractionType.None, null, null, 144) + index2 = 3; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.36922f, 13.000123f, -24.209782f), 144); + num2++; + span173[num2] = new QuestStep(EInteractionType.None, null, null, 144) { AethernetShortcut = new AethernetShortcut { @@ -31514,13 +37996,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucer } }; - span51[2] = new QuestStep(EInteractionType.Interact, 1011084u, new Vector3(-12.527649f, 3.2546434f, -73.16705f), 144) + num2++; + span173[num2] = new QuestStep(EInteractionType.Interact, 1011084u, new Vector3(-12.527649f, 3.2546434f, -73.16705f), 144) { DelaySecondsAtStart = 3f }; obj124.Steps = list173; reference126 = obj124; - ref QuestSequence reference127 = ref span47[7]; + num++; + ref QuestSequence reference127 = ref span166[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -31528,13 +38012,15 @@ public static class AssemblyQuestLoader num2 = 3; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span52 = CollectionsMarshal.AsSpan(list174); - span52[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerRoundSquare }; - span52[1] = new QuestStep(EInteractionType.None, null, null, 144) + index2++; + span174[index2] = new QuestStep(EInteractionType.None, null, null, 144) { AethernetShortcut = new AethernetShortcut { @@ -31542,7 +38028,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucerEntranceCardSquares } }; - span52[2] = new QuestStep(EInteractionType.CompleteQuest, 1010448u, new Vector3(-54.00177f, 1.6000003f, 30.685791f), 144) + index2++; + span174[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010448u, new Vector3(-54.00177f, 1.6000003f, 30.685791f), 144) { StopDistance = 5f, DelaySecondsAtStart = 3f @@ -31556,21 +38043,26 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "Starr"; + Span span175 = CollectionsMarshal.AsSpan(list175); + index = 0; + span175[index] = "Starr"; questRoot24.Author = list175; - num = 2; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span53 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference128 = ref span53[0]; + index = 2; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + Span span176 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference128 = ref span176[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list177)[0]; + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + ref QuestStep reference129 = ref span177[num2]; QuestStep obj127 = new QuestStep(EInteractionType.AcceptQuest, 1010464u, new Vector3(-0.015319824f, -1.8903663E-06f, -65.61273f), 388) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, @@ -31585,17 +38077,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list178 = new List(num3); - CollectionsMarshal.SetCount(list178, num3); - CollectionsMarshal.AsSpan(list178)[0] = 144; + index3 = 1; + List list178 = new List(index3); + CollectionsMarshal.SetCount(list178, index3); + Span span178 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + span178[num3] = 144; obj128.InTerritory = list178; skipConditions2.AetheryteShortcutIf = obj128; obj127.SkipConditions = skipConditions2; reference129 = obj127; obj126.Steps = list177; reference128 = obj126; - ref QuestSequence reference130 = ref span53[1]; + num++; + ref QuestSequence reference130 = ref span176[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue @@ -31603,7 +38098,9 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010472u, new Vector3(-53.26935f, 0.3093315f, 69.41321f), 148) + Span span179 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span179[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010472u, new Vector3(-53.26935f, 0.3093315f, 69.41321f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, @@ -31625,20 +38122,26 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "Starr"; + Span span180 = CollectionsMarshal.AsSpan(list180); + index = 0; + span180[index] = "Starr"; questRoot25.Author = list180; - num = 1; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - ref QuestSequence reference131 = ref CollectionsMarshal.AsSpan(list181)[0]; + index = 1; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + Span span181 = CollectionsMarshal.AsSpan(list181); + num = 0; + ref QuestSequence reference131 = ref span181[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - ref QuestStep reference132 = ref CollectionsMarshal.AsSpan(list182)[0]; + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + ref QuestStep reference132 = ref span182[num2]; QuestStep obj131 = new QuestStep(EInteractionType.AcceptQuest, 1011060u, new Vector3(-96.87958f, -0.86297023f, 67.826294f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, @@ -31653,7 +38156,9 @@ public static class AssemblyQuestLoader num3 = 1; List list183 = new List(num3); CollectionsMarshal.SetCount(list183, num3); - CollectionsMarshal.AsSpan(list183)[0] = new DialogueChoice + Span span183 = CollectionsMarshal.AsSpan(list183); + index3 = 0; + span183[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_SUBGSC102_00437_Q1_000_000") @@ -31669,13 +38174,16 @@ public static class AssemblyQuestLoader num = 1; List list184 = new List(num); CollectionsMarshal.SetCount(list184, num); - CollectionsMarshal.AsSpan(list184)[0] = "Cacahuetes"; + Span span184 = CollectionsMarshal.AsSpan(list184); + index = 0; + span184[index] = "Cacahuetes"; questRoot26.Author = list184; - num = 12; - List list185 = new List(num); - CollectionsMarshal.SetCount(list185, num); - Span span54 = CollectionsMarshal.AsSpan(list185); - ref QuestSequence reference133 = ref span54[0]; + index = 12; + List list185 = new List(index); + CollectionsMarshal.SetCount(list185, index); + Span span185 = CollectionsMarshal.AsSpan(list185); + num = 0; + ref QuestSequence reference133 = ref span185[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 @@ -31683,7 +38191,9 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list186)[0]; + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + ref QuestStep reference134 = ref span186[index2]; QuestStep obj133 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -31698,25 +38208,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list187 = new List(num3); - CollectionsMarshal.SetCount(list187, num3); - CollectionsMarshal.AsSpan(list187)[0] = 133; + index3 = 1; + List list187 = new List(index3); + CollectionsMarshal.SetCount(list187, index3); + Span span187 = CollectionsMarshal.AsSpan(list187); + num3 = 0; + span187[num3] = 133; obj134.InTerritory = list187; skipConditions3.AetheryteShortcutIf = obj134; obj133.SkipConditions = skipConditions3; reference134 = obj133; obj132.Steps = list186; reference133 = obj132; - ref QuestSequence reference135 = ref span54[1]; + num++; + ref QuestSequence reference135 = ref span185[num]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1000756u, new Vector3(20.675903f, 24.30847f, 392.56873f), 152) + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + Span span188 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span188[num2] = new QuestStep(EInteractionType.Interact, 1000756u, new Vector3(20.675903f, 24.30847f, 392.56873f), 152) { StopDistance = 2f, Fly = true, @@ -31724,7 +38239,8 @@ public static class AssemblyQuestLoader }; obj135.Steps = list188; reference135 = obj135; - ref QuestSequence reference136 = ref span54[2]; + num++; + ref QuestSequence reference136 = ref span185[num]; QuestSequence obj136 = new QuestSequence { Sequence = 2 @@ -31732,8 +38248,9 @@ public static class AssemblyQuestLoader num2 = 2; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span55 = CollectionsMarshal.AsSpan(list189); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.875587f, -1.4320529f, 335.96927f), 152) + Span span189 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span189[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.875587f, -1.4320529f, 335.96927f), 152) { Fly = true, SkipConditions = new SkipConditions @@ -31744,7 +38261,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference137 = ref span55[1]; + index2++; + ref QuestStep reference137 = ref span189[index2]; QuestStep obj137 = new QuestStep(EInteractionType.Combat, 2000963u, new Vector3(39.230957f, -0.5036011f, 337.3922f), 152) { ItemId = 2000243u, @@ -31753,27 +38271,33 @@ public static class AssemblyQuestLoader num3 = 1; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - CollectionsMarshal.AsSpan(list190)[0] = 38u; + Span span190 = CollectionsMarshal.AsSpan(list190); + index3 = 0; + span190[index3] = 38u; obj137.KillEnemyDataIds = list190; reference137 = obj137; obj136.Steps = list189; reference136 = obj136; - ref QuestSequence reference138 = ref span54[3]; + num++; + ref QuestSequence reference138 = ref span185[num]; QuestSequence obj138 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1000756u, new Vector3(20.675903f, 24.30847f, 392.56873f), 152) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.Interact, 1000756u, new Vector3(20.675903f, 24.30847f, 392.56873f), 152) { StopDistance = 2f, Fly = true }; obj138.Steps = list191; reference138 = obj138; - ref QuestSequence reference139 = ref span54[4]; + num++; + ref QuestSequence reference139 = ref span185[num]; QuestSequence obj139 = new QuestSequence { Sequence = 4 @@ -31781,8 +38305,9 @@ public static class AssemblyQuestLoader num2 = 2; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span56 = CollectionsMarshal.AsSpan(list192); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -31793,19 +38318,22 @@ public static class AssemblyQuestLoader } } }; - span56[1] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + index2++; + span192[index2] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj139.Steps = list192; reference139 = obj139; - ref QuestSequence reference140 = ref span54[5]; + num++; + ref QuestSequence reference140 = ref span185[num]; QuestSequence obj140 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - Span span57 = CollectionsMarshal.AsSpan(list193); - span57[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) + index2 = 2; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) { SkipConditions = new SkipConditions { @@ -31815,14 +38343,16 @@ public static class AssemblyQuestLoader } } }; - span57[1] = new QuestStep(EInteractionType.UseItem, 2000921u, new Vector3(-103.71564f, 6.42395f, 101.60974f), 153) + num2++; + span193[num2] = new QuestStep(EInteractionType.UseItem, 2000921u, new Vector3(-103.71564f, 6.42395f, 101.60974f), 153) { Fly = true, ItemId = 2000232u }; obj140.Steps = list193; reference140 = obj140; - ref QuestSequence reference141 = ref span54[6]; + num++; + ref QuestSequence reference141 = ref span185[num]; QuestSequence obj141 = new QuestSequence { Sequence = 6 @@ -31830,8 +38360,9 @@ public static class AssemblyQuestLoader num2 = 2; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span58 = CollectionsMarshal.AsSpan(list194); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -31842,25 +38373,30 @@ public static class AssemblyQuestLoader } } }; - span58[1] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + index2++; + span194[index2] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj141.Steps = list194; reference141 = obj141; - ref QuestSequence reference142 = ref span54[7]; + num++; + ref QuestSequence reference142 = ref span185[num]; QuestSequence obj142 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1002815u, new Vector3(-27.328918f, -34.62274f, 173.05249f), 154) + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.Interact, 1002815u, new Vector3(-27.328918f, -34.62274f, 173.05249f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj142.Steps = list195; reference142 = obj142; - ref QuestSequence reference143 = ref span54[8]; + num++; + ref QuestSequence reference143 = ref span185[num]; QuestSequence obj143 = new QuestSequence { Sequence = 8 @@ -31868,16 +38404,20 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list196)[0]; + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + ref QuestStep reference144 = ref span196[index2]; QuestStep obj144 = new QuestStep(EInteractionType.Combat, null, new Vector3(-39.98818f, -46.837822f, 403.3237f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new ComplexCombatData + index3 = 1; + List list197 = new List(index3); + CollectionsMarshal.SetCount(list197, index3); + Span span197 = CollectionsMarshal.AsSpan(list197); + num3 = 0; + span197[num3] = new ComplexCombatData { DataId = 17u, MinimumKillCount = 6u @@ -31886,15 +38426,18 @@ public static class AssemblyQuestLoader reference144 = obj144; obj143.Steps = list196; reference143 = obj143; - ref QuestSequence reference145 = ref span54[9]; + num++; + ref QuestSequence reference145 = ref span185[num]; QuestSequence obj145 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - ref QuestStep reference146 = ref CollectionsMarshal.AsSpan(list198)[0]; + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span198 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + ref QuestStep reference146 = ref span198[num2]; QuestStep obj146 = new QuestStep(EInteractionType.Combat, 2000922u, new Vector3(28.244385f, -54.337463f, 512.932f), 154) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -31902,13 +38445,16 @@ public static class AssemblyQuestLoader num3 = 1; List list199 = new List(num3); CollectionsMarshal.SetCount(list199, num3); - CollectionsMarshal.AsSpan(list199)[0] = 18u; + Span span199 = CollectionsMarshal.AsSpan(list199); + index3 = 0; + span199[index3] = 18u; obj146.KillEnemyDataIds = list199; obj146.CombatDelaySecondsAtStart = 3f; reference146 = obj146; obj145.Steps = list198; reference145 = obj145; - ref QuestSequence reference147 = ref span54[10]; + num++; + ref QuestSequence reference147 = ref span185[num]; QuestSequence obj147 = new QuestSequence { Sequence = 10 @@ -31916,21 +38462,26 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1002815u, new Vector3(-27.328918f, -34.62274f, 173.05249f), 154) + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span200[index2] = new QuestStep(EInteractionType.Interact, 1002815u, new Vector3(-27.328918f, -34.62274f, 173.05249f), 154) { Fly = true }; obj147.Steps = list200; reference147 = obj147; - ref QuestSequence reference148 = ref span54[11]; + num++; + ref QuestSequence reference148 = ref span185[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span201[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -31949,13 +38500,16 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "Cacahuetes"; + Span span202 = CollectionsMarshal.AsSpan(list202); + index = 0; + span202[index] = "Cacahuetes"; questRoot27.Author = list202; - num = 4; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span59 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference149 = ref span59[0]; + index = 4; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + Span span203 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference149 = ref span203[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -31963,7 +38517,9 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - ref QuestStep reference150 = ref CollectionsMarshal.AsSpan(list204)[0]; + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + ref QuestStep reference150 = ref span204[index2]; QuestStep obj150 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -31978,25 +38534,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = 133; + index3 = 1; + List list205 = new List(index3); + CollectionsMarshal.SetCount(list205, index3); + Span span205 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + span205[num3] = 133; obj151.InTerritory = list205; skipConditions4.AetheryteShortcutIf = obj151; obj150.SkipConditions = skipConditions4; reference150 = obj150; obj149.Steps = list204; reference149 = obj149; - ref QuestSequence reference151 = ref span59[1]; + num++; + ref QuestSequence reference151 = ref span203[num]; QuestSequence obj152 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000924u, new Vector3(-389.24243f, 65.537476f, -186.57214f), 148) + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000924u, new Vector3(-389.24243f, 65.537476f, -186.57214f), 148) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -32007,7 +38568,8 @@ public static class AssemblyQuestLoader }; obj152.Steps = list206; reference151 = obj152; - ref QuestSequence reference152 = ref span59[2]; + num++; + ref QuestSequence reference152 = ref span203[num]; QuestSequence obj153 = new QuestSequence { Sequence = 2 @@ -32015,7 +38577,9 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000448u, new Vector3(-287.00696f, -54.431038f, 289.99768f), 154) + Span span207 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span207[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000448u, new Vector3(-287.00696f, -54.431038f, 289.99768f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -32026,15 +38590,18 @@ public static class AssemblyQuestLoader }; obj153.Steps = list207; reference152 = obj153; - ref QuestSequence reference153 = ref span59[3]; + num++; + ref QuestSequence reference153 = ref span203[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -32053,13 +38620,16 @@ public static class AssemblyQuestLoader num = 1; List list209 = new List(num); CollectionsMarshal.SetCount(list209, num); - CollectionsMarshal.AsSpan(list209)[0] = "Cacahuetes"; + Span span209 = CollectionsMarshal.AsSpan(list209); + index = 0; + span209[index] = "Cacahuetes"; questRoot28.Author = list209; - num = 6; - List list210 = new List(num); - CollectionsMarshal.SetCount(list210, num); - Span span60 = CollectionsMarshal.AsSpan(list210); - ref QuestSequence reference154 = ref span60[0]; + index = 6; + List list210 = new List(index); + CollectionsMarshal.SetCount(list210, index); + Span span210 = CollectionsMarshal.AsSpan(list210); + num = 0; + ref QuestSequence reference154 = ref span210[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -32067,7 +38637,9 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list211)[0]; + Span span211 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + ref QuestStep reference155 = ref span211[index2]; QuestStep obj156 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -32085,29 +38657,35 @@ public static class AssemblyQuestLoader num3 = 1; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = 133; + Span span212 = CollectionsMarshal.AsSpan(list212); + index3 = 0; + span212[index3] = 133; obj157.InTerritory = list212; skipConditions5.AetheryteShortcutIf = obj157; obj156.SkipConditions = skipConditions5; reference155 = obj156; obj155.Steps = list211; reference154 = obj155; - ref QuestSequence reference156 = ref span60[1]; + num++; + ref QuestSequence reference156 = ref span210[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1008149u, new Vector3(-172.83899f, 8.492639f, -55.222473f), 153) + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span213 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span213[num2] = new QuestStep(EInteractionType.Interact, 1008149u, new Vector3(-172.83899f, 8.492639f, -55.222473f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj158.Steps = list213; reference156 = obj158; - ref QuestSequence reference157 = ref span60[2]; + num++; + ref QuestSequence reference157 = ref span210[num]; QuestSequence obj159 = new QuestSequence { Sequence = 2 @@ -32115,24 +38693,30 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1008146u, new Vector3(-183.43082f, 9.869224f, -76.830215f), 153); + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.Interact, 1008146u, new Vector3(-183.43082f, 9.869224f, -76.830215f), 153); obj159.Steps = list214; reference157 = obj159; - ref QuestSequence reference158 = ref span60[3]; + num++; + ref QuestSequence reference158 = ref span210[num]; QuestSequence obj160 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1008150u, new Vector3(28.30542f, 3.6544461f, 35.38562f), 153) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1008150u, new Vector3(28.30542f, 3.6544461f, 35.38562f), 153) { Fly = true }; obj160.Steps = list215; reference158 = obj160; - ref QuestSequence reference159 = ref span60[4]; + num++; + ref QuestSequence reference159 = ref span210[num]; QuestSequence obj161 = new QuestSequence { Sequence = 4 @@ -32140,18 +38724,23 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 1008157u, new Vector3(42.404785f, 3.2469568f, 32.88318f), 153); + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span216[index2] = new QuestStep(EInteractionType.Interact, 1008157u, new Vector3(42.404785f, 3.2469568f, 32.88318f), 153); obj161.Steps = list216; reference159 = obj161; - ref QuestSequence reference160 = ref span60[5]; + num++; + ref QuestSequence reference160 = ref span210[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + Span span217 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span217[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -32170,13 +38759,16 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "Cacahuetes"; + Span span218 = CollectionsMarshal.AsSpan(list218); + index = 0; + span218[index] = "Cacahuetes"; questRoot29.Author = list218; - num = 9; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span61 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference161 = ref span61[0]; + index = 9; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + Span span219 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference161 = ref span219[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 @@ -32184,7 +38776,9 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - ref QuestStep reference162 = ref CollectionsMarshal.AsSpan(list220)[0]; + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + ref QuestStep reference162 = ref span220[index2]; QuestStep obj164 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -32199,25 +38793,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list221 = new List(num3); - CollectionsMarshal.SetCount(list221, num3); - CollectionsMarshal.AsSpan(list221)[0] = 133; + index3 = 1; + List list221 = new List(index3); + CollectionsMarshal.SetCount(list221, index3); + Span span221 = CollectionsMarshal.AsSpan(list221); + num3 = 0; + span221[num3] = 133; obj165.InTerritory = list221; skipConditions6.AetheryteShortcutIf = obj165; obj164.SkipConditions = skipConditions6; reference162 = obj164; obj163.Steps = list220; reference161 = obj163; - ref QuestSequence reference163 = ref span61[1]; + num++; + ref QuestSequence reference163 = ref span219[num]; QuestSequence obj166 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - ref QuestStep reference164 = ref CollectionsMarshal.AsSpan(list222)[0]; + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + Span span222 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + ref QuestStep reference164 = ref span222[num2]; QuestStep obj167 = new QuestStep(EInteractionType.Combat, 2000899u, new Vector3(43.900146f, 6.5460815f, -1.9379272f), 153) { Fly = true, @@ -32227,12 +38826,15 @@ public static class AssemblyQuestLoader num3 = 1; List list223 = new List(num3); CollectionsMarshal.SetCount(list223, num3); - CollectionsMarshal.AsSpan(list223)[0] = 294u; + Span span223 = CollectionsMarshal.AsSpan(list223); + index3 = 0; + span223[index3] = 294u; obj167.KillEnemyDataIds = list223; reference164 = obj167; obj166.Steps = list222; reference163 = obj166; - ref QuestSequence reference165 = ref span61[2]; + num++; + ref QuestSequence reference165 = ref span219[num]; QuestSequence obj168 = new QuestSequence { Sequence = 2 @@ -32240,35 +38842,43 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1002965u, new Vector3(51.181263f, 6.6893935f, -3.2490644f), 153) + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new QuestStep(EInteractionType.Interact, 1002965u, new Vector3(51.181263f, 6.6893935f, -3.2490644f), 153) { StopDistance = 7f }; obj168.Steps = list224; reference165 = obj168; - ref QuestSequence reference166 = ref span61[3]; + num++; + ref QuestSequence reference166 = ref span219[num]; QuestSequence obj169 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - ref QuestStep reference167 = ref CollectionsMarshal.AsSpan(list225)[0]; + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + ref QuestStep reference167 = ref span225[num2]; QuestStep obj170 = new QuestStep(EInteractionType.Combat, 2000901u, new Vector3(122.36206f, 17.898804f, -136.85822f), 153) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = 294u; + index3 = 1; + List list226 = new List(index3); + CollectionsMarshal.SetCount(list226, index3); + Span span226 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + span226[num3] = 294u; obj170.KillEnemyDataIds = list226; reference167 = obj170; obj169.Steps = list225; reference166 = obj169; - ref QuestSequence reference168 = ref span61[4]; + num++; + ref QuestSequence reference168 = ref span219[num]; QuestSequence obj171 = new QuestSequence { Sequence = 4 @@ -32276,21 +38886,26 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1002966u, new Vector3(124.193115f, 17.550354f, -129.90009f), 153) + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.Interact, 1002966u, new Vector3(124.193115f, 17.550354f, -129.90009f), 153) { StopDistance = 7f }; obj171.Steps = list227; reference168 = obj171; - ref QuestSequence reference169 = ref span61[5]; + num++; + ref QuestSequence reference169 = ref span219[num]; QuestSequence obj172 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list228)[0]; + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + ref QuestStep reference170 = ref span228[num2]; QuestStep obj173 = new QuestStep(EInteractionType.Combat, 2000906u, new Vector3(292.04236f, 15.365784f, -107.286194f), 153) { Fly = true, @@ -32299,12 +38914,15 @@ public static class AssemblyQuestLoader num3 = 1; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - CollectionsMarshal.AsSpan(list229)[0] = 294u; + Span span229 = CollectionsMarshal.AsSpan(list229); + index3 = 0; + span229[index3] = 294u; obj173.KillEnemyDataIds = list229; reference170 = obj173; obj172.Steps = list228; reference169 = obj172; - ref QuestSequence reference171 = ref span61[6]; + num++; + ref QuestSequence reference171 = ref span219[num]; QuestSequence obj174 = new QuestSequence { Sequence = 6 @@ -32312,27 +38930,33 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1002967u, new Vector3(293.29358f, 16.181925f, -112.68793f), 153) + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span230[index2] = new QuestStep(EInteractionType.Interact, 1002967u, new Vector3(293.29358f, 16.181925f, -112.68793f), 153) { StopDistance = 7f }; obj174.Steps = list230; reference171 = obj174; - ref QuestSequence reference172 = ref span61[7]; + num++; + ref QuestSequence reference172 = ref span219[num]; QuestSequence obj175 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002968u, new Vector3(332.14307f, 4.1362643f, -85.648926f), 153) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002968u, new Vector3(332.14307f, 4.1362643f, -85.648926f), 153) { Fly = true }; obj175.Steps = list231; reference172 = obj175; - ref QuestSequence reference173 = ref span61[8]; + num++; + ref QuestSequence reference173 = ref span219[num]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue @@ -32340,7 +38964,9 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span232[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -32359,24 +38985,30 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "liza"; + Span span233 = CollectionsMarshal.AsSpan(list233); + index = 0; + span233[index] = "liza"; questRoot30.Author = list233; - num = 5; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span62 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference174 = ref span62[0]; + index = 5; + List list234 = new List(index); + CollectionsMarshal.SetCount(list234, index); + Span span234 = CollectionsMarshal.AsSpan(list234); + num = 0; + ref QuestSequence reference174 = ref span234[num]; QuestSequence obj177 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + Span span235 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span235[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); obj177.Steps = list235; reference174 = obj177; - ref QuestSequence reference175 = ref span62[1]; + num++; + ref QuestSequence reference175 = ref span234[num]; QuestSequence obj178 = new QuestSequence { Sequence = 1 @@ -32384,34 +39016,43 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list236)[0]; + Span span236 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + ref QuestStep reference176 = ref span236[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.SinglePlayerDuty, 2000953u, new Vector3(323.5979f, 0.3508911f, -309.55975f), 148); SinglePlayerDutyOptions singlePlayerDutyOptions2 = new SinglePlayerDutyOptions(); - num3 = 1; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - CollectionsMarshal.AsSpan(list237)[0] = "AI doesn't automatically target newly spawning adds until after the boss died, and dies (tested on CNJ)"; + index3 = 1; + List list237 = new List(index3); + CollectionsMarshal.SetCount(list237, index3); + Span span237 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span237[num3] = "AI doesn't automatically target newly spawning adds until after the boss died, and dies (tested on CNJ)"; singlePlayerDutyOptions2.Notes = list237; questStep3.SinglePlayerDutyOptions = singlePlayerDutyOptions2; reference176 = questStep3; obj178.Steps = list236; reference175 = obj178; - span62[2] = new QuestSequence + num++; + span234[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference177 = ref span62[3]; + num++; + ref QuestSequence reference177 = ref span234[num]; QuestSequence obj179 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 2001194u, new Vector3(323.627f, 0.3168333f, -309.5412f), 148); + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.Interact, 2001194u, new Vector3(323.627f, 0.3168333f, -309.5412f), 148); obj179.Steps = list238; reference177 = obj179; - ref QuestSequence reference178 = ref span62[4]; + num++; + ref QuestSequence reference178 = ref span234[num]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue @@ -32419,7 +39060,9 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); obj180.Steps = list239; reference178 = obj180; questRoot30.QuestSequence = list234; @@ -32429,24 +39072,30 @@ public static class AssemblyQuestLoader num = 1; List list240 = new List(num); CollectionsMarshal.SetCount(list240, num); - CollectionsMarshal.AsSpan(list240)[0] = "liza"; + Span span240 = CollectionsMarshal.AsSpan(list240); + index = 0; + span240[index] = "liza"; questRoot31.Author = list240; - num = 2; - List list241 = new List(num); - CollectionsMarshal.SetCount(list241, num); - Span span63 = CollectionsMarshal.AsSpan(list241); - ref QuestSequence reference179 = ref span63[0]; + index = 2; + List list241 = new List(index); + CollectionsMarshal.SetCount(list241, index); + Span span241 = CollectionsMarshal.AsSpan(list241); + num = 0; + ref QuestSequence reference179 = ref span241[num]; QuestSequence obj181 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); obj181.Steps = list242; reference179 = obj181; - ref QuestSequence reference180 = ref span63[1]; + num++; + ref QuestSequence reference180 = ref span241[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue @@ -32454,7 +39103,9 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span243[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -32472,24 +39123,30 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - CollectionsMarshal.AsSpan(list244)[0] = "liza"; + Span span244 = CollectionsMarshal.AsSpan(list244); + index = 0; + span244[index] = "liza"; questRoot32.Author = list244; - num = 5; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - Span span64 = CollectionsMarshal.AsSpan(list245); - ref QuestSequence reference181 = ref span64[0]; + index = 5; + List list245 = new List(index); + CollectionsMarshal.SetCount(list245, index); + Span span245 = CollectionsMarshal.AsSpan(list245); + num = 0; + ref QuestSequence reference181 = ref span245[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); obj183.Steps = list246; reference181 = obj183; - ref QuestSequence reference182 = ref span64[1]; + num++; + ref QuestSequence reference182 = ref span245[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 @@ -32497,8 +39154,9 @@ public static class AssemblyQuestLoader num2 = 2; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span65 = CollectionsMarshal.AsSpan(list247); - ref QuestStep reference183 = ref span65[0]; + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + ref QuestStep reference183 = ref span247[index2]; QuestStep obj185 = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132) { AethernetShortcut = new AethernetShortcut @@ -32510,29 +39168,35 @@ public static class AssemblyQuestLoader num3 = 1; List list248 = new List(num3); CollectionsMarshal.SetCount(list248, num3); - CollectionsMarshal.AsSpan(list248)[0] = new DialogueChoice + Span span248 = CollectionsMarshal.AsSpan(list248); + index3 = 0; + span248[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST007_00447_Q1_000_1") }; obj185.DialogueChoices = list248; reference183 = obj185; - span65[1] = new QuestStep(EInteractionType.Interact, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) + index2++; + span247[index2] = new QuestStep(EInteractionType.Interact, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) { StopDistance = 7f, DisableNavmesh = true }; obj184.Steps = list247; reference182 = obj184; - ref QuestSequence reference184 = ref span64[2]; + num++; + ref QuestSequence reference184 = ref span245[num]; QuestSequence obj186 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - ref QuestStep reference185 = ref CollectionsMarshal.AsSpan(list249)[0]; + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + Span span249 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + ref QuestStep reference185 = ref span249[num2]; QuestStep obj187 = new QuestStep(EInteractionType.SinglePlayerDuty, 1000456u, new Vector3(-303.5172f, 21.902342f, 127.45862f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows @@ -32541,20 +39205,24 @@ public static class AssemblyQuestLoader { Enabled = true }; - num3 = 1; - List list250 = new List(num3); - CollectionsMarshal.SetCount(list250, num3); - CollectionsMarshal.AsSpan(list250)[0] = "(Phase 1) Healer NPCs are only killed after the boss dies - allied NPCs will kill them eventually; all NPCs need to be killed for the duty to complete"; + index3 = 1; + List list250 = new List(index3); + CollectionsMarshal.SetCount(list250, index3); + Span span250 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + span250[num3] = "(Phase 1) Healer NPCs are only killed after the boss dies - allied NPCs will kill them eventually; all NPCs need to be killed for the duty to complete"; obj188.Notes = list250; obj187.SinglePlayerDutyOptions = obj188; reference185 = obj187; obj186.Steps = list249; reference184 = obj186; - span64[3] = new QuestSequence + num++; + span245[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference186 = ref span64[4]; + num++; + ref QuestSequence reference186 = ref span245[num]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue @@ -32562,8 +39230,9 @@ public static class AssemblyQuestLoader num2 = 2; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - Span span66 = CollectionsMarshal.AsSpan(list251); - ref QuestStep reference187 = ref span66[0]; + Span span251 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + ref QuestStep reference187 = ref span251[index2]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -32576,14 +39245,17 @@ public static class AssemblyQuestLoader num3 = 1; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - CollectionsMarshal.AsSpan(list252)[0] = new DialogueChoice + Span span252 = CollectionsMarshal.AsSpan(list252); + index3 = 0; + span252[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST007_00447_Q1_000_1") }; obj190.DialogueChoices = list252; reference187 = obj190; - span66[1] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) + index2++; + span251[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) { StopDistance = 7f, DisableNavmesh = true @@ -32597,27 +39269,33 @@ public static class AssemblyQuestLoader num = 1; List list253 = new List(num); CollectionsMarshal.SetCount(list253, num); - CollectionsMarshal.AsSpan(list253)[0] = "liza"; + Span span253 = CollectionsMarshal.AsSpan(list253); + index = 0; + span253[index] = "liza"; questRoot33.Author = list253; - num = 4; - List list254 = new List(num); - CollectionsMarshal.SetCount(list254, num); - Span span67 = CollectionsMarshal.AsSpan(list254); - ref QuestSequence reference188 = ref span67[0]; + index = 4; + List list254 = new List(index); + CollectionsMarshal.SetCount(list254, index); + Span span254 = CollectionsMarshal.AsSpan(list254); + num = 0; + ref QuestSequence reference188 = ref span254[num]; QuestSequence obj191 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span255 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span255[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) { StopDistance = 7f }; obj191.Steps = list255; reference188 = obj191; - ref QuestSequence reference189 = ref span67[1]; + num++; + ref QuestSequence reference189 = ref span254[num]; QuestSequence obj192 = new QuestSequence { Sequence = 1 @@ -32625,12 +39303,14 @@ public static class AssemblyQuestLoader num2 = 2; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span68 = CollectionsMarshal.AsSpan(list256); - span68[0] = new QuestStep(EInteractionType.Interact, 2001215u, new Vector3(0.002457563f, 1.052062f, 9.820032f), 204) + Span span256 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span256[index2] = new QuestStep(EInteractionType.Interact, 2001215u, new Vector3(0.002457563f, 1.052062f, 9.820032f), 204) { TargetTerritoryId = (ushort)132 }; - span68[1] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2++; + span256[index2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AethernetShortcut = new AethernetShortcut { @@ -32640,18 +39320,22 @@ public static class AssemblyQuestLoader }; obj192.Steps = list256; reference189 = obj192; - ref QuestSequence reference190 = ref span67[2]; + num++; + ref QuestSequence reference190 = ref span254[num]; QuestSequence obj193 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span257 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span257[num2] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); obj193.Steps = list257; reference190 = obj193; - ref QuestSequence reference191 = ref span67[3]; + num++; + ref QuestSequence reference191 = ref span254[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue @@ -32659,7 +39343,9 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + Span span258 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span258[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); obj194.Steps = list258; reference191 = obj194; questRoot33.QuestSequence = list254; @@ -32669,24 +39355,30 @@ public static class AssemblyQuestLoader num = 1; List list259 = new List(num); CollectionsMarshal.SetCount(list259, num); - CollectionsMarshal.AsSpan(list259)[0] = "liza"; + Span span259 = CollectionsMarshal.AsSpan(list259); + index = 0; + span259[index] = "liza"; questRoot34.Author = list259; - num = 3; - List list260 = new List(num); - CollectionsMarshal.SetCount(list260, num); - Span span69 = CollectionsMarshal.AsSpan(list260); - ref QuestSequence reference192 = ref span69[0]; + index = 3; + List list260 = new List(index); + CollectionsMarshal.SetCount(list260, index); + Span span260 = CollectionsMarshal.AsSpan(list260); + num = 0; + ref QuestSequence reference192 = ref span260[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + Span span261 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span261[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); obj195.Steps = list261; reference192 = obj195; - ref QuestSequence reference193 = ref span69[1]; + num++; + ref QuestSequence reference193 = ref span260[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1 @@ -32694,12 +39386,14 @@ public static class AssemblyQuestLoader num2 = 2; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span70 = CollectionsMarshal.AsSpan(list262); - span70[0] = new QuestStep(EInteractionType.EquipItem, null, null, 132) + Span span262 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span262[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 132) { ItemId = 2651u }; - span70[1] = new QuestStep(EInteractionType.Interact, 1000286u, new Vector3(-53.574463f, 7.2025366f, -118.36426f), 133) + index2++; + span262[index2] = new QuestStep(EInteractionType.Interact, 1000286u, new Vector3(-53.574463f, 7.2025366f, -118.36426f), 133) { AethernetShortcut = new AethernetShortcut { @@ -32709,21 +39403,25 @@ public static class AssemblyQuestLoader }; obj196.Steps = list262; reference193 = obj196; - ref QuestSequence reference194 = ref span69[2]; + num++; + ref QuestSequence reference194 = ref span260[num]; QuestSequence obj197 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - Span span71 = CollectionsMarshal.AsSpan(list263); - span71[0] = new QuestStep(EInteractionType.Interact, 2000087u, new Vector3(0.015197754f, 1.449585f, 7.7057495f), 179) + index2 = 4; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + Span span263 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span263[num2] = new QuestStep(EInteractionType.Interact, 2000087u, new Vector3(0.015197754f, 1.449585f, 7.7057495f), 179) { TargetTerritoryId = (ushort)132 }; - span71[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(40.596844f, -8f, 103.85207f), 132); - ref QuestStep reference195 = ref span71[2]; + num2++; + span263[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(40.596844f, -8f, 103.85207f), 132); + num2++; + ref QuestStep reference195 = ref span263[num2]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { AethernetShortcut = new AethernetShortcut @@ -32732,17 +39430,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - num3 = 1; - List list264 = new List(num3); - CollectionsMarshal.SetCount(list264, num3); - CollectionsMarshal.AsSpan(list264)[0] = new DialogueChoice + index3 = 1; + List list264 = new List(index3); + CollectionsMarshal.SetCount(list264, index3); + Span span264 = CollectionsMarshal.AsSpan(list264); + num3 = 0; + span264[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST009_00449_Q2_000_1") }; obj198.DialogueChoices = list264; reference195 = obj198; - span71[3] = new QuestStep(EInteractionType.CompleteQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + num2++; + span263[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj197.Steps = list263; reference194 = obj197; questRoot34.QuestSequence = list260; @@ -32756,12 +39457,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Cacahuetes"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Cacahuetes"; questRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - ref QuestSequence reference = ref CollectionsMarshal.AsSpan(list2)[0]; + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -32769,7 +39474,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -32789,7 +39496,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSACN001_00451_Q1_000_000") @@ -32806,22 +39515,26 @@ public static class AssemblyQuestLoader num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - CollectionsMarshal.AsSpan(list5)[0] = "Cacahuetes"; + Span span5 = CollectionsMarshal.AsSpan(list5); + index = 0; + span5[index] = "Cacahuetes"; questRoot2.Author = list5; - num = 2; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - Span span = CollectionsMarshal.AsSpan(list6); - ref QuestSequence reference3 = ref span[0]; + index = 2; + List list6 = new List(index); + CollectionsMarshal.SetCount(list6, index); + Span span6 = CollectionsMarshal.AsSpan(list6); + num = 0; + ref QuestSequence reference3 = ref span6[num]; QuestSequence obj3 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span2 = CollectionsMarshal.AsSpan(list7); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.8204f, 12.899764f, 4.017052f), 129) + index2 = 2; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.8204f, 12.899764f, 4.017052f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -32837,10 +39550,12 @@ public static class AssemblyQuestLoader } } }; - span2[1] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); + num2++; + span7[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); obj3.Steps = list7; reference3 = obj3; - ref QuestSequence reference4 = ref span[1]; + num++; + ref QuestSequence reference4 = ref span6[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -32848,12 +39563,16 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list8)[0]; + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference5 = ref span8[index2]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new DialogueChoice + index3 = 1; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + Span span9 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span9[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSACN011_00452_Q1_000_000") @@ -32870,22 +39589,26 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "liza"; + Span span10 = CollectionsMarshal.AsSpan(list10); + index = 0; + span10[index] = "liza"; questRoot3.Author = list10; - num = 4; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - Span span3 = CollectionsMarshal.AsSpan(list11); - ref QuestSequence reference6 = ref span3[0]; + index = 4; + List list11 = new List(index); + CollectionsMarshal.SetCount(list11, index); + Span span11 = CollectionsMarshal.AsSpan(list11); + num = 0; + ref QuestSequence reference6 = ref span11[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - Span span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.8204f, 12.899764f, 4.017052f), 129) + index2 = 2; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.8204f, 12.899764f, 4.017052f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -32901,10 +39624,12 @@ public static class AssemblyQuestLoader } } }; - span4[1] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); + num2++; + span12[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); obj5.Steps = list12; reference6 = obj5; - ref QuestSequence reference7 = ref span3[1]; + num++; + ref QuestSequence reference7 = ref span11[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -32912,12 +39637,16 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list13)[0]; + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + ref QuestStep reference8 = ref span13[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = new DialogueChoice + Span span14 = CollectionsMarshal.AsSpan(list14); + index3 = 0; + span14[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSACN020_00453_Q1_000_000") @@ -32926,16 +39655,18 @@ public static class AssemblyQuestLoader reference8 = questStep2; obj6.Steps = list13; reference7 = obj6; - ref QuestSequence reference9 = ref span3[2]; + num++; + ref QuestSequence reference9 = ref span11[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref QuestStep reference10 = ref span5[0]; + index2 = 2; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + ref QuestStep reference10 = ref span15[num2]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, null, new Vector3(-1.5568014f, 66.12121f, 102.35001f), 135) { AethernetShortcut = new AethernetShortcut @@ -32945,11 +39676,12 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - Span span6 = CollectionsMarshal.AsSpan(list16); - ref ComplexCombatData reference11 = ref span6[0]; + index3 = 2; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + ref ComplexCombatData reference11 = ref span16[num3]; ComplexCombatData obj9 = new ComplexCombatData { DataId = 347u, @@ -32958,56 +39690,78 @@ public static class AssemblyQuestLoader int num4 = 6; List list17 = new List(num4); CollectionsMarshal.SetCount(list17, num4); - Span span7 = CollectionsMarshal.AsSpan(list17); - span7[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = null; + Span span17 = CollectionsMarshal.AsSpan(list17); + int num5 = 0; + span17[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span17[num5] = null; + num5++; + span17[num5] = null; + num5++; + span17[num5] = null; + num5++; + span17[num5] = null; + num5++; + span17[num5] = null; obj9.CompletionQuestVariablesFlags = list17; reference11 = obj9; - ref ComplexCombatData reference12 = ref span6[1]; + num3++; + ref ComplexCombatData reference12 = ref span16[num3]; ComplexCombatData obj10 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - num4 = 6; - List list18 = new List(num4); - CollectionsMarshal.SetCount(list18, num4); - Span span8 = CollectionsMarshal.AsSpan(list18); - span8[0] = null; - span8[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = null; + num5 = 6; + List list18 = new List(num5); + CollectionsMarshal.SetCount(list18, num5); + Span span18 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span18[num4] = null; + num4++; + span18[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span18[num4] = null; + num4++; + span18[num4] = null; + num4++; + span18[num4] = null; + num4++; + span18[num4] = null; obj10.CompletionQuestVariablesFlags = list18; reference12 = obj10; obj8.ComplexCombatData = list16; num3 = 6; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - Span span9 = CollectionsMarshal.AsSpan(list19); - span9[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span9[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = null; + Span span19 = CollectionsMarshal.AsSpan(list19); + index3 = 0; + span19[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span19[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span19[index3] = null; + index3++; + span19[index3] = null; + index3++; + span19[index3] = null; + index3++; + span19[index3] = null; obj8.CompletionQuestVariablesFlags = list19; reference10 = obj8; - ref QuestStep reference13 = ref span5[1]; + num2++; + ref QuestStep reference13 = ref span15[num2]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, null, new Vector3(157.63565f, 38.01287f, 48.92973f), 135) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - ref ComplexCombatData reference14 = ref CollectionsMarshal.AsSpan(list20)[0]; + index3 = 1; + List list20 = new List(index3); + CollectionsMarshal.SetCount(list20, index3); + Span span20 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + ref ComplexCombatData reference14 = ref span20[num3]; ComplexCombatData obj12 = new ComplexCombatData { DataId = 324u, @@ -33016,31 +39770,44 @@ public static class AssemblyQuestLoader num4 = 6; List list21 = new List(num4); CollectionsMarshal.SetCount(list21, num4); - Span span10 = CollectionsMarshal.AsSpan(list21); - span10[0] = null; - span10[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = null; + Span span21 = CollectionsMarshal.AsSpan(list21); + num5 = 0; + span21[num5] = null; + num5++; + span21[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span21[num5] = null; + num5++; + span21[num5] = null; + num5++; + span21[num5] = null; + num5++; + span21[num5] = null; obj12.CompletionQuestVariablesFlags = list21; reference14 = obj12; obj11.ComplexCombatData = list20; num3 = 6; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - Span span11 = CollectionsMarshal.AsSpan(list22); - span11[0] = null; - span11[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = null; + Span span22 = CollectionsMarshal.AsSpan(list22); + index3 = 0; + span22[index3] = null; + index3++; + span22[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; obj11.CompletionQuestVariablesFlags = list22; reference13 = obj11; obj7.Steps = list15; reference9 = obj7; - ref QuestSequence reference15 = ref span3[3]; + num++; + ref QuestSequence reference15 = ref span11[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -33048,7 +39815,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33067,21 +39836,26 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "liza"; + Span span24 = CollectionsMarshal.AsSpan(list24); + index = 0; + span24[index] = "liza"; questRoot4.Author = list24; - num = 3; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span12 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference16 = ref span12[0]; + index = 3; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + Span span25 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference16 = ref span25[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33099,7 +39873,8 @@ public static class AssemblyQuestLoader }; obj14.Steps = list26; reference16 = obj14; - ref QuestSequence reference17 = ref span12[1]; + num++; + ref QuestSequence reference17 = ref span25[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -33107,8 +39882,9 @@ public static class AssemblyQuestLoader num2 = 2; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span13 = CollectionsMarshal.AsSpan(list27); - ref QuestStep reference18 = ref span13[0]; + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + ref QuestStep reference18 = ref span27[index2]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, null, new Vector3(-1.5568014f, 66.12121f, 102.35001f), 135) { AethernetShortcut = new AethernetShortcut @@ -33118,29 +39894,37 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span14 = CollectionsMarshal.AsSpan(list28); - ref ComplexCombatData reference19 = ref span14[0]; + index3 = 2; + List list28 = new List(index3); + CollectionsMarshal.SetCount(list28, index3); + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + ref ComplexCombatData reference19 = ref span28[num3]; ComplexCombatData obj17 = new ComplexCombatData { DataId = 347u, MinimumKillCount = 3u }; - num4 = 6; - List list29 = new List(num4); - CollectionsMarshal.SetCount(list29, num4); - Span span15 = CollectionsMarshal.AsSpan(list29); - span15[0] = null; - span15[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = null; + num5 = 6; + List list29 = new List(num5); + CollectionsMarshal.SetCount(list29, num5); + Span span29 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span29[num4] = null; + num4++; + span29[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; obj17.CompletionQuestVariablesFlags = list29; reference19 = obj17; - ref ComplexCombatData reference20 = ref span14[1]; + num3++; + ref ComplexCombatData reference20 = ref span28[num3]; ComplexCombatData obj18 = new ComplexCombatData { DataId = 49u, @@ -33149,79 +39933,109 @@ public static class AssemblyQuestLoader num4 = 6; List list30 = new List(num4); CollectionsMarshal.SetCount(list30, num4); - Span span16 = CollectionsMarshal.AsSpan(list30); - span16[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = null; + Span span30 = CollectionsMarshal.AsSpan(list30); + num5 = 0; + span30[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span30[num5] = null; + num5++; + span30[num5] = null; + num5++; + span30[num5] = null; + num5++; + span30[num5] = null; + num5++; + span30[num5] = null; obj18.CompletionQuestVariablesFlags = list30; reference20 = obj18; obj16.ComplexCombatData = list28; num3 = 6; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span17 = CollectionsMarshal.AsSpan(list31); - span17[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span17[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = null; + Span span31 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span31[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span31[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span31[index3] = null; + index3++; + span31[index3] = null; + index3++; + span31[index3] = null; + index3++; + span31[index3] = null; obj16.CompletionQuestVariablesFlags = list31; reference18 = obj16; - ref QuestStep reference21 = ref span13[1]; + index2++; + ref QuestStep reference21 = ref span27[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(157.63565f, 38.01287f, 48.92973f), 135) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - ref ComplexCombatData reference22 = ref CollectionsMarshal.AsSpan(list32)[0]; + index3 = 1; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + Span span32 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + ref ComplexCombatData reference22 = ref span32[num3]; ComplexCombatData obj20 = new ComplexCombatData { DataId = 324u, MinimumKillCount = 3u }; - num4 = 6; - List list33 = new List(num4); - CollectionsMarshal.SetCount(list33, num4); - Span span18 = CollectionsMarshal.AsSpan(list33); - span18[0] = null; - span18[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = null; + num5 = 6; + List list33 = new List(num5); + CollectionsMarshal.SetCount(list33, num5); + Span span33 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span33[num4] = null; + num4++; + span33[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span33[num4] = null; + num4++; + span33[num4] = null; + num4++; + span33[num4] = null; + num4++; + span33[num4] = null; obj20.CompletionQuestVariablesFlags = list33; reference22 = obj20; obj19.ComplexCombatData = list32; num3 = 6; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span19 = CollectionsMarshal.AsSpan(list34); - span19[0] = null; - span19[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = null; + Span span34 = CollectionsMarshal.AsSpan(list34); + index3 = 0; + span34[index3] = null; + index3++; + span34[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span34[index3] = null; + index3++; + span34[index3] = null; + index3++; + span34[index3] = null; + index3++; + span34[index3] = null; obj19.CompletionQuestVariablesFlags = list34; reference21 = obj19; obj15.Steps = list27; reference17 = obj15; - ref QuestSequence reference23 = ref span12[2]; + num++; + ref QuestSequence reference23 = ref span25[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33240,13 +40054,16 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "liza"; questRoot5.Author = list36; - num = 6; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span20 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference24 = ref span20[0]; + index = 6; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference24 = ref span37[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -33254,7 +40071,9 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33272,16 +40091,18 @@ public static class AssemblyQuestLoader }; obj22.Steps = list38; reference24 = obj22; - ref QuestSequence reference25 = ref span20[1]; + num++; + ref QuestSequence reference25 = ref span37[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - Span span21 = CollectionsMarshal.AsSpan(list39); - ref QuestStep reference26 = ref span21[0]; + index2 = 2; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + ref QuestStep reference26 = ref span39[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, null, new Vector3(368.87418f, 61.448803f, -69.13581f), 135) { Fly = true, @@ -33292,10 +40113,12 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - ref ComplexCombatData reference27 = ref CollectionsMarshal.AsSpan(list40)[0]; + index3 = 1; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + Span span40 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + ref ComplexCombatData reference27 = ref span40[num3]; ComplexCombatData obj25 = new ComplexCombatData { DataId = 339u, @@ -33304,70 +40127,98 @@ public static class AssemblyQuestLoader num4 = 6; List list41 = new List(num4); CollectionsMarshal.SetCount(list41, num4); - Span span22 = CollectionsMarshal.AsSpan(list41); - span22[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = null; + Span span41 = CollectionsMarshal.AsSpan(list41); + num5 = 0; + span41[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span41[num5] = null; + num5++; + span41[num5] = null; + num5++; + span41[num5] = null; + num5++; + span41[num5] = null; + num5++; + span41[num5] = null; obj25.CompletionQuestVariablesFlags = list41; reference27 = obj25; obj24.ComplexCombatData = list40; num3 = 6; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span23 = CollectionsMarshal.AsSpan(list42); - span23[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = null; + Span span42 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span42[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = null; obj24.CompletionQuestVariablesFlags = list42; reference26 = obj24; - ref QuestStep reference28 = ref span21[1]; + num2++; + ref QuestStep reference28 = ref span39[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(381.1583f, 68.00773f, -114.15414f), 135) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - ref ComplexCombatData reference29 = ref CollectionsMarshal.AsSpan(list43)[0]; + index3 = 1; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + ref ComplexCombatData reference29 = ref span43[num3]; ComplexCombatData obj27 = new ComplexCombatData { DataId = 118u, MinimumKillCount = 3u }; - num4 = 6; - List list44 = new List(num4); - CollectionsMarshal.SetCount(list44, num4); - Span span24 = CollectionsMarshal.AsSpan(list44); - span24[0] = null; - span24[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = null; + num5 = 6; + List list44 = new List(num5); + CollectionsMarshal.SetCount(list44, num5); + Span span44 = CollectionsMarshal.AsSpan(list44); + num4 = 0; + span44[num4] = null; + num4++; + span44[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span44[num4] = null; + num4++; + span44[num4] = null; + num4++; + span44[num4] = null; + num4++; + span44[num4] = null; obj27.CompletionQuestVariablesFlags = list44; reference29 = obj27; obj26.ComplexCombatData = list43; num3 = 6; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - Span span25 = CollectionsMarshal.AsSpan(list45); - span25[0] = null; - span25[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = null; + Span span45 = CollectionsMarshal.AsSpan(list45); + index3 = 0; + span45[index3] = null; + index3++; + span45[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span45[index3] = null; + index3++; + span45[index3] = null; + index3++; + span45[index3] = null; + index3++; + span45[index3] = null; obj26.CompletionQuestVariablesFlags = list45; reference28 = obj26; obj23.Steps = list39; reference25 = obj23; - ref QuestSequence reference30 = ref span20[2]; + num++; + ref QuestSequence reference30 = ref span37[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -33375,7 +40226,9 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33386,15 +40239,18 @@ public static class AssemblyQuestLoader }; obj28.Steps = list46; reference30 = obj28; - ref QuestSequence reference31 = ref span20[3]; + num++; + ref QuestSequence reference31 = ref span37[num]; QuestSequence obj29 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - ref QuestStep reference32 = ref CollectionsMarshal.AsSpan(list47)[0]; + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + ref QuestStep reference32 = ref span47[num2]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, 2002266u, new Vector3(-0.13739014f, 26.077637f, 196.52087f), 134) { AethernetShortcut = new AethernetShortcut @@ -33404,15 +40260,18 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = 39u; + index3 = 1; + List list48 = new List(index3); + CollectionsMarshal.SetCount(list48, index3); + Span span48 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span48[num3] = 39u; obj30.KillEnemyDataIds = list48; reference32 = obj30; obj29.Steps = list47; reference31 = obj29; - ref QuestSequence reference33 = ref span20[4]; + num++; + ref QuestSequence reference33 = ref span37[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -33420,12 +40279,16 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list49)[0]; + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + ref QuestStep reference34 = ref span49[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2002476u, new Vector3(-0.10687256f, 25.955566f, 196.55139f), 134); num3 = 1; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = new DialogueChoice + Span span50 = CollectionsMarshal.AsSpan(list50); + index3 = 0; + span50[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSACN050_00455_Q1_000_000"), @@ -33435,15 +40298,18 @@ public static class AssemblyQuestLoader reference34 = questStep3; obj31.Steps = list49; reference33 = obj31; - ref QuestSequence reference35 = ref span20[5]; + num++; + ref QuestSequence reference35 = ref span37[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33462,13 +40328,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + Span span52 = CollectionsMarshal.AsSpan(list52); + index = 0; + span52[index] = "liza"; questRoot6.Author = list52; - num = 7; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span26 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference36 = ref span26[0]; + index = 7; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + Span span53 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference36 = ref span53[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -33476,7 +40345,9 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33494,63 +40365,83 @@ public static class AssemblyQuestLoader }; obj33.Steps = list54; reference36 = obj33; - ref QuestSequence reference37 = ref span26[1]; + num++; + ref QuestSequence reference37 = ref span53[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span27 = CollectionsMarshal.AsSpan(list55); - ref QuestStep reference38 = ref span27[0]; + index2 = 2; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + ref QuestStep reference38 = ref span55[num2]; QuestStep obj35 = new QuestStep(EInteractionType.Combat, null, new Vector3(667.4784f, 15.36824f, 443.4379f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = 22u; + index3 = 1; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + Span span56 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span56[num3] = 22u; obj35.KillEnemyDataIds = list56; num3 = 6; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span28 = CollectionsMarshal.AsSpan(list57); - span28[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = null; + Span span57 = CollectionsMarshal.AsSpan(list57); + index3 = 0; + span57[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span57[index3] = null; + index3++; + span57[index3] = null; + index3++; + span57[index3] = null; + index3++; + span57[index3] = null; + index3++; + span57[index3] = null; obj35.CompletionQuestVariablesFlags = list57; reference38 = obj35; - ref QuestStep reference39 = ref span27[1]; + num2++; + ref QuestStep reference39 = ref span55[num2]; QuestStep obj36 = new QuestStep(EInteractionType.Combat, null, new Vector3(686.6034f, 23.682272f, 422.78772f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - CollectionsMarshal.AsSpan(list58)[0] = 138u; + index3 = 1; + List list58 = new List(index3); + CollectionsMarshal.SetCount(list58, index3); + Span span58 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + span58[num3] = 138u; obj36.KillEnemyDataIds = list58; num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span29 = CollectionsMarshal.AsSpan(list59); - span29[0] = null; - span29[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = null; + Span span59 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span59[index3] = null; + index3++; + span59[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; obj36.CompletionQuestVariablesFlags = list59; reference39 = obj36; obj34.Steps = list55; reference37 = obj34; - ref QuestSequence reference40 = ref span26[2]; + num++; + ref QuestSequence reference40 = ref span53[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 @@ -33558,7 +40449,9 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33569,18 +40462,22 @@ public static class AssemblyQuestLoader }; obj37.Steps = list60; reference40 = obj37; - ref QuestSequence reference41 = ref span26[3]; + num++; + ref QuestSequence reference41 = ref span53[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1005199u, new Vector3(-348.3177f, -2.3744698f, 11.917236f), 129); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.Interact, 1005199u, new Vector3(-348.3177f, -2.3744698f, 11.917236f), 129); obj38.Steps = list61; reference41 = obj38; - ref QuestSequence reference42 = ref span26[4]; + num++; + ref QuestSequence reference42 = ref span53[num]; QuestSequence obj39 = new QuestSequence { Sequence = 4 @@ -33588,30 +40485,37 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1005200u, new Vector3(-106.79791f, 45.688404f, -252.33844f), 134) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1005200u, new Vector3(-106.79791f, 45.688404f, -252.33844f), 134) { Fly = true, AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; obj39.Steps = list62; reference42 = obj39; - ref QuestSequence reference43 = ref span26[5]; + num++; + ref QuestSequence reference43 = ref span53[num]; QuestSequence obj40 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list63)[0]; + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference44 = ref span63[num2]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 1005201u, new Vector3(-98.49707f, 47.27536f, -262.31793f), 134) { StopDistance = 5f }; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice + index3 = 1; + List list64 = new List(index3); + CollectionsMarshal.SetCount(list64, index3); + Span span64 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span64[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSACN100_00456_Q1_000_000"), @@ -33621,7 +40525,8 @@ public static class AssemblyQuestLoader reference44 = obj41; obj40.Steps = list63; reference43 = obj40; - ref QuestSequence reference45 = ref span26[6]; + num++; + ref QuestSequence reference45 = ref span53[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -33629,7 +40534,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33648,21 +40555,26 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "liza"; + Span span66 = CollectionsMarshal.AsSpan(list66); + index = 0; + span66[index] = "liza"; questRoot7.Author = list66; - num = 7; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span30 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference46 = ref span30[0]; + index = 7; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + Span span67 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference46 = ref span67[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33680,7 +40592,8 @@ public static class AssemblyQuestLoader }; obj43.Steps = list68; reference46 = obj43; - ref QuestSequence reference47 = ref span30[1]; + num++; + ref QuestSequence reference47 = ref span67[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -33688,8 +40601,9 @@ public static class AssemblyQuestLoader num2 = 2; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span31 = CollectionsMarshal.AsSpan(list69); - ref QuestStep reference48 = ref span31[0]; + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + ref QuestStep reference48 = ref span69[index2]; QuestStep obj45 = new QuestStep(EInteractionType.Combat, null, new Vector3(667.4784f, 15.36824f, 443.4379f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch, @@ -33698,21 +40612,30 @@ public static class AssemblyQuestLoader num3 = 1; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = 22u; + Span span70 = CollectionsMarshal.AsSpan(list70); + index3 = 0; + span70[index3] = 22u; obj45.KillEnemyDataIds = list70; - num3 = 6; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - Span span32 = CollectionsMarshal.AsSpan(list71); - span32[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = null; + index3 = 6; + List list71 = new List(index3); + CollectionsMarshal.SetCount(list71, index3); + Span span71 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span71[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = null; obj45.CompletionQuestVariablesFlags = list71; reference48 = obj45; - ref QuestStep reference49 = ref span31[1]; + index2++; + ref QuestStep reference49 = ref span69[index2]; QuestStep obj46 = new QuestStep(EInteractionType.Combat, null, new Vector3(686.6034f, 23.682272f, 422.78772f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -33720,31 +40643,42 @@ public static class AssemblyQuestLoader num3 = 1; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = 138u; + Span span72 = CollectionsMarshal.AsSpan(list72); + index3 = 0; + span72[index3] = 138u; obj46.KillEnemyDataIds = list72; - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span33 = CollectionsMarshal.AsSpan(list73); - span33[0] = null; - span33[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = null; + index3 = 6; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + Span span73 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span73[num3] = null; + num3++; + span73[num3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; obj46.CompletionQuestVariablesFlags = list73; reference49 = obj46; obj44.Steps = list69; reference47 = obj44; - ref QuestSequence reference50 = ref span30[2]; + num++; + ref QuestSequence reference50 = ref span67[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33755,7 +40689,8 @@ public static class AssemblyQuestLoader }; obj47.Steps = list74; reference50 = obj47; - ref QuestSequence reference51 = ref span30[3]; + num++; + ref QuestSequence reference51 = ref span67[num]; QuestSequence obj48 = new QuestSequence { Sequence = 3 @@ -33763,25 +40698,31 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1005199u, new Vector3(-348.3177f, -2.3744698f, 11.917236f), 129); + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.Interact, 1005199u, new Vector3(-348.3177f, -2.3744698f, 11.917236f), 129); obj48.Steps = list75; reference51 = obj48; - ref QuestSequence reference52 = ref span30[4]; + num++; + ref QuestSequence reference52 = ref span67[num]; QuestSequence obj49 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1005200u, new Vector3(-106.79791f, 45.688404f, -252.33844f), 134) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1005200u, new Vector3(-106.79791f, 45.688404f, -252.33844f), 134) { Fly = true, AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; obj49.Steps = list76; reference52 = obj49; - ref QuestSequence reference53 = ref span30[5]; + num++; + ref QuestSequence reference53 = ref span67[num]; QuestSequence obj50 = new QuestSequence { Sequence = 5 @@ -33789,7 +40730,9 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list77)[0]; + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + ref QuestStep reference54 = ref span77[index2]; QuestStep obj51 = new QuestStep(EInteractionType.Interact, 1005201u, new Vector3(-98.49707f, 47.27536f, -262.31793f), 134) { StopDistance = 5f @@ -33797,7 +40740,9 @@ public static class AssemblyQuestLoader num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new DialogueChoice + Span span78 = CollectionsMarshal.AsSpan(list78); + index3 = 0; + span78[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSACN101_00457_Q1_000_000"), @@ -33807,15 +40752,18 @@ public static class AssemblyQuestLoader reference54 = obj51; obj50.Steps = list77; reference53 = obj50; - ref QuestSequence reference55 = ref span30[6]; + num++; + ref QuestSequence reference55 = ref span67[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33834,13 +40782,16 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + Span span80 = CollectionsMarshal.AsSpan(list80); + index = 0; + span80[index] = "liza"; questRoot8.Author = list80; - num = 6; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span34 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference56 = ref span34[0]; + index = 6; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + Span span81 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference56 = ref span81[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -33848,7 +40799,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33866,21 +40819,25 @@ public static class AssemblyQuestLoader }; obj53.Steps = list82; reference56 = obj53; - ref QuestSequence reference57 = ref span34[1]; + num++; + ref QuestSequence reference57 = ref span81[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1005208u, new Vector3(316.02954f, -24.136772f, 211.20007f), 138) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.Interact, 1005208u, new Vector3(316.02954f, -24.136772f, 211.20007f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj54.Steps = list83; reference57 = obj54; - ref QuestSequence reference58 = ref span34[2]; + num++; + ref QuestSequence reference58 = ref span81[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -33888,34 +40845,42 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list84)[0]; + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + ref QuestStep reference59 = ref span84[index2]; QuestStep obj56 = new QuestStep(EInteractionType.Combat, 1005211u, new Vector3(204.27246f, -36.402367f, 306.17224f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - Span span35 = CollectionsMarshal.AsSpan(list85); - span35[0] = 317u; - span35[1] = 318u; + index3 = 2; + List list85 = new List(index3); + CollectionsMarshal.SetCount(list85, index3); + Span span85 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span85[num3] = 317u; + num3++; + span85[num3] = 318u; obj56.KillEnemyDataIds = list85; reference59 = obj56; obj55.Steps = list84; reference58 = obj55; - ref QuestSequence reference60 = ref span34[3]; + num++; + ref QuestSequence reference60 = ref span81[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1005211u, new Vector3(204.27246f, -36.402367f, 306.17224f), 138); + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.Interact, 1005211u, new Vector3(204.27246f, -36.402367f, 306.17224f), 138); obj57.Steps = list86; reference60 = obj57; - ref QuestSequence reference61 = ref span34[4]; + num++; + ref QuestSequence reference61 = ref span81[num]; QuestSequence obj58 = new QuestSequence { Sequence = 4 @@ -33923,18 +40888,23 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002009u, new Vector3(173.81543f, -41.36731f, 280.7201f), 138); + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002009u, new Vector3(173.81543f, -41.36731f, 280.7201f), 138); obj58.Steps = list87; reference61 = obj58; - ref QuestSequence reference62 = ref span34[5]; + num++; + ref QuestSequence reference62 = ref span81[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33953,13 +40923,16 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = "liza"; + Span span89 = CollectionsMarshal.AsSpan(list89); + index = 0; + span89[index] = "liza"; questRoot9.Author = list89; - num = 8; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - Span span36 = CollectionsMarshal.AsSpan(list90); - ref QuestSequence reference63 = ref span36[0]; + index = 8; + List list90 = new List(index); + CollectionsMarshal.SetCount(list90, index); + Span span90 = CollectionsMarshal.AsSpan(list90); + num = 0; + ref QuestSequence reference63 = ref span90[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -33967,7 +40940,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -33985,15 +40960,18 @@ public static class AssemblyQuestLoader }; obj60.Steps = list91; reference63 = obj60; - ref QuestSequence reference64 = ref span36[1]; + num++; + ref QuestSequence reference64 = ref span90[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1003505u, new Vector3(-186.20587f, 16f, 56.931396f), 129) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.Interact, 1003505u, new Vector3(-186.20587f, 16f, 56.931396f), 129) { AethernetShortcut = new AethernetShortcut { @@ -34003,7 +40981,8 @@ public static class AssemblyQuestLoader }; obj61.Steps = list92; reference64 = obj61; - ref QuestSequence reference65 = ref span36[2]; + num++; + ref QuestSequence reference65 = ref span90[num]; QuestSequence obj62 = new QuestSequence { Sequence = 2 @@ -34011,7 +40990,9 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1000938u, new Vector3(-4.654114f, 44.999847f, -241.84027f), 128) + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.Interact, 1000938u, new Vector3(-4.654114f, 44.999847f, -241.84027f), 128) { AethernetShortcut = new AethernetShortcut { @@ -34021,15 +41002,18 @@ public static class AssemblyQuestLoader }; obj62.Steps = list93; reference65 = obj62; - ref QuestSequence reference66 = ref span36[3]; + num++; + ref QuestSequence reference66 = ref span90[num]; QuestSequence obj63 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AethernetShortcut = new AethernetShortcut { @@ -34039,7 +41023,8 @@ public static class AssemblyQuestLoader }; obj63.Steps = list94; reference66 = obj63; - ref QuestSequence reference67 = ref span36[4]; + num++; + ref QuestSequence reference67 = ref span90[num]; QuestSequence obj64 = new QuestSequence { Sequence = 4 @@ -34047,24 +41032,29 @@ public static class AssemblyQuestLoader num2 = 2; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span37 = CollectionsMarshal.AsSpan(list95); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(177.58797f, -41.12709f, 260.26315f), 138) + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(177.58797f, -41.12709f, 260.26315f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - span37[1] = new QuestStep(EInteractionType.Interact, 1005215u, new Vector3(178.66785f, -41.140213f, 261.61597f), 138); + index2++; + span95[index2] = new QuestStep(EInteractionType.Interact, 1005215u, new Vector3(178.66785f, -41.140213f, 261.61597f), 138); obj64.Steps = list95; reference67 = obj64; - ref QuestSequence reference68 = ref span36[5]; + num++; + ref QuestSequence reference68 = ref span90[num]; QuestSequence obj65 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1005217u, new Vector3(103.74609f, 68.15523f, 329.45752f), 135) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.Interact, 1005217u, new Vector3(103.74609f, 68.15523f, 329.45752f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -34076,7 +41066,8 @@ public static class AssemblyQuestLoader }; obj65.Steps = list96; reference68 = obj65; - ref QuestSequence reference69 = ref span36[6]; + num++; + ref QuestSequence reference69 = ref span90[num]; QuestSequence obj66 = new QuestSequence { Sequence = 6 @@ -34084,18 +41075,23 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002010u, new Vector3(108.384766f, 68.13147f, 351.61353f), 135); + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002010u, new Vector3(108.384766f, 68.13147f, 351.61353f), 135); obj66.Steps = list97; reference69 = obj66; - ref QuestSequence reference70 = ref span36[7]; + num++; + ref QuestSequence reference70 = ref span90[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -34114,13 +41110,16 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; + Span span99 = CollectionsMarshal.AsSpan(list99); + index = 0; + span99[index] = "liza"; questRoot10.Author = list99; - num = 12; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span38 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference71 = ref span38[0]; + index = 12; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + Span span100 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference71 = ref span100[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 @@ -34128,7 +41127,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -34146,27 +41147,31 @@ public static class AssemblyQuestLoader }; obj68.Steps = list101; reference71 = obj68; - ref QuestSequence reference72 = ref span38[1]; + num++; + ref QuestSequence reference72 = ref span100[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span39 = CollectionsMarshal.AsSpan(list102); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(410.82263f, 31.185892f, -11.729958f), 138) + index2 = 2; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(410.82263f, 31.185892f, -11.729958f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - span39[1] = new QuestStep(EInteractionType.Interact, 1005227u, new Vector3(-311.32983f, -1.5234554f, 127.336426f), 139) + num2++; + span102[num2] = new QuestStep(EInteractionType.Interact, 1005227u, new Vector3(-311.32983f, -1.5234554f, 127.336426f), 139) { Fly = true }; obj69.Steps = list102; reference72 = obj69; - ref QuestSequence reference73 = ref span38[2]; + num++; + ref QuestSequence reference73 = ref span100[num]; QuestSequence obj70 = new QuestSequence { Sequence = 2 @@ -34174,8 +41179,9 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span40 = CollectionsMarshal.AsSpan(list103); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-394.91058f, -3.4000032f, 148.78712f), 139) + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span103[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-394.91058f, -3.4000032f, 148.78712f), 139) { SkipConditions = new SkipConditions { @@ -34185,73 +41191,99 @@ public static class AssemblyQuestLoader } } }; - span40[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139) + index2++; + span103[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139) { Fly = true }; - span40[2] = new QuestStep(EInteractionType.Interact, 1006195u, new Vector3(-453.36084f, 4.574484f, 71.54956f), 139); + index2++; + span103[index2] = new QuestStep(EInteractionType.Interact, 1006195u, new Vector3(-453.36084f, 4.574484f, 71.54956f), 139); obj70.Steps = list103; reference73 = obj70; - ref QuestSequence reference74 = ref span38[3]; + num++; + ref QuestSequence reference74 = ref span100[num]; QuestSequence obj71 = new QuestSequence { Sequence = 3 }; - num2 = 6; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - Span span41 = CollectionsMarshal.AsSpan(list104); - span41[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139) + index2 = 6; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139) { Mount = true }; - ref QuestStep reference75 = ref span41[1]; + num2++; + ref QuestStep reference75 = ref span104[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2001892u, new Vector3(-457.7249f, 29.19043f, 58.335205f), 139); num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span42 = CollectionsMarshal.AsSpan(list105); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span105 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list105; reference75 = questStep4; - ref QuestStep reference76 = ref span41[2]; + num2++; + ref QuestStep reference76 = ref span104[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2001894u, new Vector3(-393.4234f, 42.557373f, -2.975586f), 139); - num3 = 6; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span43 = CollectionsMarshal.AsSpan(list106); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list106 = new List(index3); + CollectionsMarshal.SetCount(list106, index3); + Span span106 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list106; reference76 = questStep5; - ref QuestStep reference77 = ref span41[3]; + num2++; + ref QuestStep reference77 = ref span104[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-373.06784f, 38.31673f, 36.456448f), 139); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span44 = CollectionsMarshal.AsSpan(list107); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span107 = CollectionsMarshal.AsSpan(list107); + index3 = 0; + span107[index3] = null; + index3++; + span107[index3] = null; + index3++; + span107[index3] = null; + index3++; + span107[index3] = null; + index3++; + span107[index3] = null; + index3++; + span107[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list107; skipConditions.StepIf = skipStepConditions; questStep6.SkipConditions = skipConditions; reference77 = questStep6; - ref QuestStep reference78 = ref span41[4]; + num2++; + ref QuestStep reference78 = ref span104[num2]; QuestStep obj72 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-367.3377f, 27.109692f, 40.748257f), 139) { DisableNavmesh = true, @@ -34259,37 +41291,51 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - Span span45 = CollectionsMarshal.AsSpan(list108); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list108 = new List(index3); + CollectionsMarshal.SetCount(list108, index3); + Span span108 = CollectionsMarshal.AsSpan(list108); + num3 = 0; + span108[num3] = null; + num3++; + span108[num3] = null; + num3++; + span108[num3] = null; + num3++; + span108[num3] = null; + num3++; + span108[num3] = null; + num3++; + span108[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list108; skipConditions2.StepIf = skipStepConditions2; obj72.SkipConditions = skipConditions2; reference78 = obj72; - ref QuestStep reference79 = ref span41[5]; + num2++; + ref QuestStep reference79 = ref span104[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2001893u, new Vector3(-388.72363f, 27.023682f, 45.578613f), 139); num3 = 6; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - Span span46 = CollectionsMarshal.AsSpan(list109); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span109 = CollectionsMarshal.AsSpan(list109); + index3 = 0; + span109[index3] = null; + index3++; + span109[index3] = null; + index3++; + span109[index3] = null; + index3++; + span109[index3] = null; + index3++; + span109[index3] = null; + index3++; + span109[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list109; reference79 = questStep7; obj71.Steps = list104; reference74 = obj71; - ref QuestSequence reference80 = ref span38[4]; + num++; + ref QuestSequence reference80 = ref span100[num]; QuestSequence obj73 = new QuestSequence { Sequence = 4 @@ -34297,43 +41343,52 @@ public static class AssemblyQuestLoader num2 = 4; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span47 = CollectionsMarshal.AsSpan(list110); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-419.99802f, 19.50849f, 60.498474f), 139) + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-419.99802f, 19.50849f, 60.498474f), 139) { Mount = true }; - span47[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-428.06293f, -1.8700926f, 65.585f), 139) + index2++; + span110[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-428.06293f, -1.8700926f, 65.585f), 139) { DisableNavmesh = true }; - span47[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139); - span47[3] = new QuestStep(EInteractionType.Interact, 1006195u, new Vector3(-453.36084f, 4.574484f, 71.54956f), 139); + index2++; + span110[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139); + index2++; + span110[index2] = new QuestStep(EInteractionType.Interact, 1006195u, new Vector3(-453.36084f, 4.574484f, 71.54956f), 139); obj73.Steps = list110; reference80 = obj73; - ref QuestSequence reference81 = ref span38[5]; + num++; + ref QuestSequence reference81 = ref span100[num]; QuestSequence obj74 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span48 = CollectionsMarshal.AsSpan(list111); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139) + index2 = 3; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139) { Mount = true }; - span48[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-599.5244f, -3.3999999f, -51.651997f), 139) + num2++; + span111[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-599.5244f, -3.3999999f, -51.651997f), 139) { Fly = true }; - span48[2] = new QuestStep(EInteractionType.Emote, 2002478u, new Vector3(-600.61035f, -3.189148f, -53.788086f), 139) + num2++; + span111[num2] = new QuestStep(EInteractionType.Emote, 2002478u, new Vector3(-600.61035f, -3.189148f, -53.788086f), 139) { Emote = EEmote.Dance }; obj74.Steps = list111; reference81 = obj74; - ref QuestSequence reference82 = ref span38[6]; + num++; + ref QuestSequence reference82 = ref span100[num]; QuestSequence obj75 = new QuestSequence { Sequence = 6 @@ -34341,26 +41396,32 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 2002478u, new Vector3(-600.61035f, -3.189148f, -53.788086f), 139); + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.Interact, 2002478u, new Vector3(-600.61035f, -3.189148f, -53.788086f), 139); obj75.Steps = list112; reference82 = obj75; - ref QuestSequence reference83 = ref span38[7]; + num++; + ref QuestSequence reference83 = ref span100[num]; QuestSequence obj76 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - Span span49 = CollectionsMarshal.AsSpan(list113); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-512.61053f, -3.4000013f, 0.97738916f), 139); - span49[1] = new QuestStep(EInteractionType.Interact, 2002478u, new Vector3(-600.61035f, -3.189148f, -53.788086f), 139) + index2 = 2; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-512.61053f, -3.4000013f, 0.97738916f), 139); + num2++; + span113[num2] = new QuestStep(EInteractionType.Interact, 2002478u, new Vector3(-600.61035f, -3.189148f, -53.788086f), 139) { DelaySecondsAtStart = 5f }; obj76.Steps = list113; reference83 = obj76; - ref QuestSequence reference84 = ref span38[8]; + num++; + ref QuestSequence reference84 = ref span100[num]; QuestSequence obj77 = new QuestSequence { Sequence = 8 @@ -34368,8 +41429,9 @@ public static class AssemblyQuestLoader num2 = 2; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span50 = CollectionsMarshal.AsSpan(list114); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-394.91058f, -3.4000032f, 148.78712f), 139) + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-394.91058f, -3.4000032f, 148.78712f), 139) { SkipConditions = new SkipConditions { @@ -34379,23 +41441,26 @@ public static class AssemblyQuestLoader } } }; - span50[1] = new QuestStep(EInteractionType.Emote, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139) + index2++; + span114[index2] = new QuestStep(EInteractionType.Emote, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139) { Fly = true, Emote = EEmote.Dance }; obj77.Steps = list114; reference84 = obj77; - ref QuestSequence reference85 = ref span38[9]; + num++; + ref QuestSequence reference85 = ref span100[num]; QuestSequence obj78 = new QuestSequence { Sequence = 9 }; - num2 = 2; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - Span span51 = CollectionsMarshal.AsSpan(list115); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.68823f, 39.999985f, 154.54538f), 128) + index2 = 2; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span115[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.68823f, 39.999985f, 154.54538f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -34404,15 +41469,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - ref QuestStep reference86 = ref span51[1]; + num2++; + ref QuestStep reference86 = ref span115[num2]; QuestStep obj79 = new QuestStep(EInteractionType.Emote, 1005228u, new Vector3(-190.3258f, 41.24994f, 176.22644f), 128) { Emote = EEmote.Dance }; - num3 = 1; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = new DialogueChoice + index3 = 1; + List list116 = new List(index3); + CollectionsMarshal.SetCount(list116, index3); + Span span116 = CollectionsMarshal.AsSpan(list116); + num3 = 0; + span116[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSACN250_00460_Q1_000_000") @@ -34421,7 +41489,8 @@ public static class AssemblyQuestLoader reference86 = obj79; obj78.Steps = list115; reference85 = obj78; - ref QuestSequence reference87 = ref span38[10]; + num++; + ref QuestSequence reference87 = ref span100[num]; QuestSequence obj80 = new QuestSequence { Sequence = 10 @@ -34429,18 +41498,23 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1005228u, new Vector3(-190.3258f, 41.24994f, 176.22644f), 128); + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.Interact, 1005228u, new Vector3(-190.3258f, 41.24994f, 176.22644f), 128); obj80.Steps = list117; reference87 = obj80; - ref QuestSequence reference88 = ref span38[11]; + num++; + ref QuestSequence reference88 = ref span100[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -34459,13 +41533,16 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "liza"; + Span span119 = CollectionsMarshal.AsSpan(list119); + index = 0; + span119[index] = "liza"; questRoot11.Author = list119; - num = 10; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span52 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference89 = ref span52[0]; + index = 10; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + Span span120 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference89 = ref span120[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 @@ -34473,7 +41550,9 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -34491,16 +41570,18 @@ public static class AssemblyQuestLoader }; obj82.Steps = list121; reference89 = obj82; - ref QuestSequence reference90 = ref span52[1]; + num++; + ref QuestSequence reference90 = ref span120[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - Span span53 = CollectionsMarshal.AsSpan(list122); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) + index2 = 5; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) { AethernetShortcut = new AethernetShortcut { @@ -34508,26 +41589,31 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span53[1] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) + num2++; + span122[num2] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) { StopDistance = 7f, TargetTerritoryId = (ushort)137 }; - span53[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) + num2++; + span122[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) { Aetheryte = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - span53[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(541.1713f, 9.74752f, 217.08224f), 137) + num2++; + span122[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(541.1713f, 9.74752f, 217.08224f), 137) { Fly = true }; - span53[4] = new QuestStep(EInteractionType.Interact, 1005251u, new Vector3(550.46924f, 12.147732f, 220.9353f), 137) + num2++; + span122[num2] = new QuestStep(EInteractionType.Interact, 1005251u, new Vector3(550.46924f, 12.147732f, 220.9353f), 137) { StopDistance = 5f }; obj83.Steps = list122; reference90 = obj83; - ref QuestSequence reference91 = ref span52[2]; + num++; + ref QuestSequence reference91 = ref span120[num]; QuestSequence obj84 = new QuestSequence { Sequence = 2 @@ -34535,30 +41621,37 @@ public static class AssemblyQuestLoader num2 = 3; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span54 = CollectionsMarshal.AsSpan(list123); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(542.48083f, 8.70027f, 398.26666f), 137) + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(542.48083f, 8.70027f, 398.26666f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - span54[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(585.3419f, 14.562424f, 379.80997f), 137); - span54[2] = new QuestStep(EInteractionType.Interact, 1005252u, new Vector3(586.0226f, 14.562427f, 376.21106f), 137) + index2++; + span123[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(585.3419f, 14.562424f, 379.80997f), 137); + index2++; + span123[index2] = new QuestStep(EInteractionType.Interact, 1005252u, new Vector3(586.0226f, 14.562427f, 376.21106f), 137) { StopDistance = 5f }; obj84.Steps = list123; reference91 = obj84; - ref QuestSequence reference92 = ref span52[3]; + num++; + ref QuestSequence reference92 = ref span120[num]; QuestSequence obj85 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137); + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137); obj85.Steps = list124; reference92 = obj85; - ref QuestSequence reference93 = ref span52[4]; + num++; + ref QuestSequence reference93 = ref span120[num]; QuestSequence obj86 = new QuestSequence { Sequence = 4 @@ -34566,19 +41659,23 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1005253u, new Vector3(564.35486f, 20.617891f, 504.32593f), 137); + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.Interact, 1005253u, new Vector3(564.35486f, 20.617891f, 504.32593f), 137); obj86.Steps = list125; reference93 = obj86; - ref QuestSequence reference94 = ref span52[5]; + num++; + ref QuestSequence reference94 = ref span120[num]; QuestSequence obj87 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - Span span55 = CollectionsMarshal.AsSpan(list126); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(515.26044f, 27.708418f, 469.322f), 137) + index2 = 3; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(515.26044f, 27.708418f, 469.322f), 137) { Fly = true, SkipConditions = new SkipConditions @@ -34589,14 +41686,17 @@ public static class AssemblyQuestLoader } } }; - span55[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.59036f, 15.174555f, 377.2856f), 137) + num2++; + span126[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.59036f, 15.174555f, 377.2856f), 137) { Fly = true }; - span55[2] = new QuestStep(EInteractionType.Interact, 1005254u, new Vector3(442.00806f, 15.793267f, 370.32104f), 137); + num2++; + span126[num2] = new QuestStep(EInteractionType.Interact, 1005254u, new Vector3(442.00806f, 15.793267f, 370.32104f), 137); obj87.Steps = list126; reference94 = obj87; - ref QuestSequence reference95 = ref span52[6]; + num++; + ref QuestSequence reference95 = ref span120[num]; QuestSequence obj88 = new QuestSequence { Sequence = 6 @@ -34604,7 +41704,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list127)[0]; + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + ref QuestStep reference96 = ref span127[index2]; QuestStep obj89 = new QuestStep(EInteractionType.Interact, 1005229u, new Vector3(522.9114f, 17.448051f, 456.35156f), 137) { Fly = true @@ -34612,7 +41714,9 @@ public static class AssemblyQuestLoader num3 = 1; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = new DialogueChoice + Span span128 = CollectionsMarshal.AsSpan(list128); + index3 = 0; + span128[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSACN300_00461_Q1_000_001") @@ -34621,22 +41725,26 @@ public static class AssemblyQuestLoader reference96 = obj89; obj88.Steps = list127; reference95 = obj88; - ref QuestSequence reference97 = ref span52[7]; + num++; + ref QuestSequence reference97 = ref span120[num]; QuestSequence obj90 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1005235u, new Vector3(684.3823f, 11.594438f, 411.94775f), 137) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span129[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1005235u, new Vector3(684.3823f, 11.594438f, 411.94775f), 137) { StopDistance = 1f, Fly = true }; obj90.Steps = list129; reference97 = obj90; - ref QuestSequence reference98 = ref span52[8]; + num++; + ref QuestSequence reference98 = ref span120[num]; QuestSequence obj91 = new QuestSequence { Sequence = 8 @@ -34644,7 +41752,9 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span130[index2] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -34655,15 +41765,18 @@ public static class AssemblyQuestLoader }; obj91.Steps = list130; reference98 = obj91; - ref QuestSequence reference99 = ref span52[9]; + num++; + ref QuestSequence reference99 = ref span120[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span131[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { NextQuestId = new QuestId(1091) }; @@ -34676,15 +41789,18 @@ public static class AssemblyQuestLoader num = 2; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - Span span56 = CollectionsMarshal.AsSpan(list132); - span56[0] = "liza"; - span56[1] = "Wigglez"; + Span span132 = CollectionsMarshal.AsSpan(list132); + index = 0; + span132[index] = "liza"; + index++; + span132[index] = "Wigglez"; questRoot12.Author = list132; - num = 2; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span57 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference100 = ref span57[0]; + index = 2; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + Span span133 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference100 = ref span133[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -34692,7 +41808,9 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - ref QuestStep reference101 = ref CollectionsMarshal.AsSpan(list134)[0]; + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + ref QuestStep reference101 = ref span134[index2]; QuestStep obj94 = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa @@ -34702,30 +41820,35 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = 128; + index3 = 1; + List list135 = new List(index3); + CollectionsMarshal.SetCount(list135, index3); + Span span135 = CollectionsMarshal.AsSpan(list135); + num3 = 0; + span135[num3] = 128; obj95.InTerritory = list135; skipConditions3.AetheryteShortcutIf = obj95; obj94.SkipConditions = skipConditions3; reference101 = obj94; obj93.Steps = list134; reference100 = obj93; - ref QuestSequence reference102 = ref span57[1]; + num++; + ref QuestSequence reference102 = ref span133[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span58 = CollectionsMarshal.AsSpan(list136); - span58[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2 = 4; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaAftcastle }; - span58[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) + num2++; + span136[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) { Aetheryte = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, AethernetShortcut = new AethernetShortcut @@ -34734,11 +41857,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaZephyrGate } }; - span58[2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 134) + num2++; + span136[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 134) { Aetheryte = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; - span58[3] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + num2++; + span136[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj96.Steps = list136; reference102 = obj96; questRoot12.QuestSequence = list133; @@ -34748,13 +41873,16 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "liza"; + Span span137 = CollectionsMarshal.AsSpan(list137); + index = 0; + span137[index] = "liza"; questRoot13.Author = list137; - num = 2; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span59 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference103 = ref span59[0]; + index = 2; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + Span span138 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference103 = ref span138[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -34762,20 +41890,25 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj97.Steps = list139; reference103 = obj97; - ref QuestSequence reference104 = ref span59[1]; + num++; + ref QuestSequence reference104 = ref span138[num]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 6; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - Span span60 = CollectionsMarshal.AsSpan(list140); - span60[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 134); - ref QuestStep reference105 = ref span60[1]; + index2 = 6; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 134); + num2++; + ref QuestStep reference105 = ref span140[num2]; QuestStep obj99 = new QuestStep(EInteractionType.PurchaseItem, 1003257u, new Vector3(201.70898f, 98.422874f, -206.10364f), 134) { ItemId = 2653u, @@ -34791,7 +41924,9 @@ public static class AssemblyQuestLoader num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = EExtendedClassJob.DoW; + Span span141 = CollectionsMarshal.AsSpan(list141); + index3 = 0; + span141[index3] = EExtendedClassJob.DoW; obj99.RequiredCurrentJob = list141; obj99.PurchaseMenu = new PurchaseMenu { @@ -34799,16 +41934,19 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262292u) }; reference105 = obj99; - ref QuestStep reference106 = ref span60[2]; + num2++; + ref QuestStep reference106 = ref span140[num2]; QuestStep obj100 = new QuestStep(EInteractionType.PurchaseItem, 1003257u, new Vector3(201.70898f, 98.422874f, -206.10364f), 134) { ItemId = 2655u, ItemCount = 1 }; - num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = EExtendedClassJob.DoM; + index3 = 1; + List list142 = new List(index3); + CollectionsMarshal.SetCount(list142, index3); + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span142[num3] = EExtendedClassJob.DoM; obj100.RequiredCurrentJob = list142; obj100.PurchaseMenu = new PurchaseMenu { @@ -34816,7 +41954,8 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262292u) }; reference106 = obj100; - span60[3] = new QuestStep(EInteractionType.EquipItem, null, null, 134) + num2++; + span140[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 134) { ItemId = 2653u, SkipConditions = new SkipConditions @@ -34830,7 +41969,8 @@ public static class AssemblyQuestLoader } } }; - span60[4] = new QuestStep(EInteractionType.EquipItem, null, null, 134) + num2++; + span140[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 134) { ItemId = 2655u, SkipConditions = new SkipConditions @@ -34844,7 +41984,8 @@ public static class AssemblyQuestLoader } } }; - span60[5] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134) + num2++; + span140[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134) { Comment = "All starting gear (except the hat) is ilvl 5 already" }; @@ -34857,13 +41998,16 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; + Span span143 = CollectionsMarshal.AsSpan(list143); + index = 0; + span143[index] = "liza"; questRoot14.Author = list143; - num = 3; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span61 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference107 = ref span61[0]; + index = 3; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + Span span144 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference107 = ref span144[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -34871,19 +42015,23 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj101.Steps = list145; reference107 = obj101; - ref QuestSequence reference108 = ref span61[1]; + num++; + ref QuestSequence reference108 = ref span144[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - Span span62 = CollectionsMarshal.AsSpan(list146); - ref QuestStep reference109 = ref span62[0]; + index2 = 6; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + ref QuestStep reference109 = ref span146[num2]; QuestStep obj103 = new QuestStep(EInteractionType.Jump, null, new Vector3(200.59262f, 109.63514f, -268.2013f), 134) { JumpDestination = new JumpDestination @@ -34897,38 +42045,53 @@ public static class AssemblyQuestLoader num3 = 6; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - Span span63 = CollectionsMarshal.AsSpan(list147); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span147 = CollectionsMarshal.AsSpan(list147); + index3 = 0; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list147; skipConditions4.StepIf = skipStepConditions3; obj103.SkipConditions = skipConditions4; reference109 = obj103; - ref QuestStep reference110 = ref span62[1]; + num2++; + ref QuestStep reference110 = ref span146[num2]; QuestStep obj104 = new QuestStep(EInteractionType.Interact, 1002639u, new Vector3(197.16174f, 101.098366f, -273.57898f), 134) { StopDistance = 5f, DelaySecondsAtStart = 3f }; - num3 = 6; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - Span span64 = CollectionsMarshal.AsSpan(list148); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + Span span148 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj104.CompletionQuestVariablesFlags = list148; num3 = 1; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = new DialogueChoice + Span span149 = CollectionsMarshal.AsSpan(list149); + index3 = 0; + span149[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBSEA053_00465_Q4_000_1"), @@ -34936,23 +42099,32 @@ public static class AssemblyQuestLoader }; obj104.DialogueChoices = list149; reference110 = obj104; - ref QuestStep reference111 = ref span62[2]; + num2++; + ref QuestStep reference111 = ref span146[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1002638u, new Vector3(169.35986f, 93.96625f, -191.36346f), 134); - num3 = 6; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - Span span65 = CollectionsMarshal.AsSpan(list150); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list150 = new List(index3); + CollectionsMarshal.SetCount(list150, index3); + Span span150 = CollectionsMarshal.AsSpan(list150); + num3 = 0; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list150; num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice + Span span151 = CollectionsMarshal.AsSpan(list151); + index3 = 0; + span151[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBSEA053_00465_Q3_000_1"), @@ -34960,23 +42132,32 @@ public static class AssemblyQuestLoader }; questStep8.DialogueChoices = list151; reference111 = questStep8; - ref QuestStep reference112 = ref span62[3]; + num2++; + ref QuestStep reference112 = ref span146[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1002637u, new Vector3(94.46863f, 66.13388f, -257.52655f), 134); - num3 = 6; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - Span span66 = CollectionsMarshal.AsSpan(list152); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + Span span152 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span152[num3] = null; + num3++; + span152[num3] = null; + num3++; + span152[num3] = null; + num3++; + span152[num3] = null; + num3++; + span152[num3] = null; + num3++; + span152[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list152; num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = new DialogueChoice + Span span153 = CollectionsMarshal.AsSpan(list153); + index3 = 0; + span153[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBSEA053_00465_Q2_000_1"), @@ -34984,23 +42165,32 @@ public static class AssemblyQuestLoader }; questStep9.DialogueChoices = list153; reference112 = questStep9; - ref QuestStep reference113 = ref span62[4]; + num2++; + ref QuestStep reference113 = ref span146[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1002636u, new Vector3(17.746216f, 60.791252f, -269.91687f), 134); - num3 = 6; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - Span span67 = CollectionsMarshal.AsSpan(list154); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list154 = new List(index3); + CollectionsMarshal.SetCount(list154, index3); + Span span154 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span154[num3] = null; + num3++; + span154[num3] = null; + num3++; + span154[num3] = null; + num3++; + span154[num3] = null; + num3++; + span154[num3] = null; + num3++; + span154[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list154; num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = new DialogueChoice + Span span155 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span155[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBSEA053_00465_Q1_000_1"), @@ -35008,23 +42198,31 @@ public static class AssemblyQuestLoader }; questStep10.DialogueChoices = list155; reference113 = questStep10; - ref QuestStep reference114 = ref span62[5]; + num2++; + ref QuestStep reference114 = ref span146[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1002635u, new Vector3(33.829224f, 54.646034f, -150.31665f), 134); - num3 = 6; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - Span span68 = CollectionsMarshal.AsSpan(list156); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list156 = new List(index3); + CollectionsMarshal.SetCount(list156, index3); + Span span156 = CollectionsMarshal.AsSpan(list156); + num3 = 0; + span156[num3] = null; + num3++; + span156[num3] = null; + num3++; + span156[num3] = null; + num3++; + span156[num3] = null; + num3++; + span156[num3] = null; + num3++; + span156[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list156; reference114 = questStep11; obj102.Steps = list146; reference108 = obj102; - ref QuestSequence reference115 = ref span61[2]; + num++; + ref QuestSequence reference115 = ref span144[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -35032,7 +42230,9 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj105.Steps = list157; reference115 = obj105; questRoot14.QuestSequence = list144; @@ -35042,24 +42242,30 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - CollectionsMarshal.AsSpan(list158)[0] = "liza"; + Span span158 = CollectionsMarshal.AsSpan(list158); + index = 0; + span158[index] = "liza"; questRoot15.Author = list158; - num = 7; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - Span span69 = CollectionsMarshal.AsSpan(list159); - ref QuestSequence reference116 = ref span69[0]; + index = 7; + List list159 = new List(index); + CollectionsMarshal.SetCount(list159, index); + Span span159 = CollectionsMarshal.AsSpan(list159); + num = 0; + ref QuestSequence reference116 = ref span159[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj106.Steps = list160; reference116 = obj106; - ref QuestSequence reference117 = ref span69[1]; + num++; + ref QuestSequence reference117 = ref span159[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -35067,22 +42273,26 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Emote, 1002640u, new Vector3(131.09021f, 45.70909f, 134.44714f), 134) + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.Emote, 1002640u, new Vector3(131.09021f, 45.70909f, 134.44714f), 134) { Emote = EEmote.Doubt }; obj107.Steps = list161; reference117 = obj107; - ref QuestSequence reference118 = ref span69[2]; + num++; + ref QuestSequence reference118 = ref span159[num]; QuestSequence obj108 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span70 = CollectionsMarshal.AsSpan(list162); - ref QuestStep reference119 = ref span70[0]; + index2 = 4; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + ref QuestStep reference119 = ref span162[num2]; QuestStep obj109 = new QuestStep(EInteractionType.Combat, null, new Vector3(189.7694f, 46.25815f, 121.13219f), 134) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -35090,28 +42300,38 @@ public static class AssemblyQuestLoader num3 = 1; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = new ComplexCombatData + Span span163 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span163[index3] = new ComplexCombatData { DataId = 52u, IgnoreQuestMarker = true }; obj109.ComplexCombatData = list163; reference119 = obj109; - ref QuestStep reference120 = ref span70[1]; + num2++; + ref QuestStep reference120 = ref span162[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1002643u, new Vector3(194.44568f, 46.41682f, 119.21863f), 134); - num3 = 6; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - Span span71 = CollectionsMarshal.AsSpan(list164); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + Span span164 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list164; reference120 = questStep12; - ref QuestStep reference121 = ref span70[2]; + num2++; + ref QuestStep reference121 = ref span162[num2]; QuestStep obj110 = new QuestStep(EInteractionType.Interact, 1002642u, new Vector3(192.52307f, 46.299305f, 122.11792f), 134) { StopDistance = 7f @@ -35119,35 +42339,49 @@ public static class AssemblyQuestLoader num3 = 6; List list165 = new List(num3); CollectionsMarshal.SetCount(list165, num3); - Span span72 = CollectionsMarshal.AsSpan(list165); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span165 = CollectionsMarshal.AsSpan(list165); + index3 = 0; + span165[index3] = null; + index3++; + span165[index3] = null; + index3++; + span165[index3] = null; + index3++; + span165[index3] = null; + index3++; + span165[index3] = null; + index3++; + span165[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj110.CompletionQuestVariablesFlags = list165; reference121 = obj110; - ref QuestStep reference122 = ref span70[3]; + num2++; + ref QuestStep reference122 = ref span162[num2]; QuestStep obj111 = new QuestStep(EInteractionType.Interact, 1002641u, new Vector3(190.875f, 46.324783f, 118.30322f), 134) { StopDistance = 7f }; - num3 = 6; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - Span span73 = CollectionsMarshal.AsSpan(list166); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list166 = new List(index3); + CollectionsMarshal.SetCount(list166, index3); + Span span166 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj111.CompletionQuestVariablesFlags = list166; reference122 = obj111; obj108.Steps = list162; reference118 = obj108; - ref QuestSequence reference123 = ref span69[3]; + num++; + ref QuestSequence reference123 = ref span159[num]; QuestSequence obj112 = new QuestSequence { Sequence = 3 @@ -35155,21 +42389,27 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1002640u, new Vector3(131.09021f, 45.70909f, 134.44714f), 134); + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.Interact, 1002640u, new Vector3(131.09021f, 45.70909f, 134.44714f), 134); obj112.Steps = list167; reference123 = obj112; - ref QuestSequence reference124 = ref span69[4]; + num++; + ref QuestSequence reference124 = ref span159[num]; QuestSequence obj113 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 2001279u, new Vector3(132.7992f, 45.76172f, 134.93542f), 134); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.Interact, 2001279u, new Vector3(132.7992f, 45.76172f, 134.93542f), 134); obj113.Steps = list168; reference124 = obj113; - ref QuestSequence reference125 = ref span69[5]; + num++; + ref QuestSequence reference125 = ref span159[num]; QuestSequence obj114 = new QuestSequence { Sequence = 5 @@ -35177,23 +42417,28 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1002630u, new Vector3(179.85803f, 64.61002f, 294.75854f), 134); + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.Interact, 1002630u, new Vector3(179.85803f, 64.61002f, 294.75854f), 134); obj114.Steps = list169; reference125 = obj114; - ref QuestSequence reference126 = ref span69[6]; + num++; + ref QuestSequence reference126 = ref span159[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - Span span74 = CollectionsMarshal.AsSpan(list170); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.08835f, 111.9045f, -245.44336f), 134) + index2 = 2; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.08835f, 111.9045f, -245.44336f), 134) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; - span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + num2++; + span170[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj115.Steps = list170; reference126 = obj115; questRoot15.QuestSequence = list159; @@ -35203,13 +42448,16 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "liza"; + Span span171 = CollectionsMarshal.AsSpan(list171); + index = 0; + span171[index] = "liza"; questRoot16.Author = list171; - num = 4; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span75 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference127 = ref span75[0]; + index = 4; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + Span span172 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference127 = ref span172[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 @@ -35217,19 +42465,23 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002627u, new Vector3(203.32642f, 111.72371f, -213.91626f), 134); + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002627u, new Vector3(203.32642f, 111.72371f, -213.91626f), 134); obj116.Steps = list173; reference127 = obj116; - ref QuestSequence reference128 = ref span75[1]; + num++; + ref QuestSequence reference128 = ref span172[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - Span span76 = CollectionsMarshal.AsSpan(list174); - span76[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(202.80931f, 111.89438f, -216.29411f), 134) + index2 = 2; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(202.80931f, 111.89438f, -216.29411f), 134) { JumpDestination = new JumpDestination { @@ -35237,10 +42489,12 @@ public static class AssemblyQuestLoader StopDistance = 5f } }; - span76[1] = new QuestStep(EInteractionType.Interact, 1002629u, new Vector3(52.750366f, 64.48143f, -185.71759f), 134); + num2++; + span174[num2] = new QuestStep(EInteractionType.Interact, 1002629u, new Vector3(52.750366f, 64.48143f, -185.71759f), 134); obj117.Steps = list174; reference128 = obj117; - ref QuestSequence reference129 = ref span75[2]; + num++; + ref QuestSequence reference129 = ref span172[num]; QuestSequence obj118 = new QuestSequence { Sequence = 2 @@ -35248,60 +42502,84 @@ public static class AssemblyQuestLoader num2 = 3; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span77 = CollectionsMarshal.AsSpan(list175); - ref QuestStep reference130 = ref span77[0]; + Span span175 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + ref QuestStep reference130 = ref span175[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2001239u, new Vector3(-132.9519f, 45.365112f, -228.93109f), 134); num3 = 6; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - Span span78 = CollectionsMarshal.AsSpan(list176); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span176 = CollectionsMarshal.AsSpan(list176); + index3 = 0; + span176[index3] = null; + index3++; + span176[index3] = null; + index3++; + span176[index3] = null; + index3++; + span176[index3] = null; + index3++; + span176[index3] = null; + index3++; + span176[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list176; reference130 = questStep13; - ref QuestStep reference131 = ref span77[1]; + index2++; + ref QuestStep reference131 = ref span175[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2001238u, new Vector3(-121.78229f, 45.97534f, -210.83392f), 134); - num3 = 6; - List list177 = new List(num3); - CollectionsMarshal.SetCount(list177, num3); - Span span79 = CollectionsMarshal.AsSpan(list177); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list177 = new List(index3); + CollectionsMarshal.SetCount(list177, index3); + Span span177 = CollectionsMarshal.AsSpan(list177); + num3 = 0; + span177[num3] = null; + num3++; + span177[num3] = null; + num3++; + span177[num3] = null; + num3++; + span177[num3] = null; + num3++; + span177[num3] = null; + num3++; + span177[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list177; reference131 = questStep14; - ref QuestStep reference132 = ref span77[2]; + index2++; + ref QuestStep reference132 = ref span175[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2001237u, new Vector3(-129.38129f, 46.67737f, -192.52313f), 134); num3 = 6; List list178 = new List(num3); CollectionsMarshal.SetCount(list178, num3); - Span span80 = CollectionsMarshal.AsSpan(list178); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span178 = CollectionsMarshal.AsSpan(list178); + index3 = 0; + span178[index3] = null; + index3++; + span178[index3] = null; + index3++; + span178[index3] = null; + index3++; + span178[index3] = null; + index3++; + span178[index3] = null; + index3++; + span178[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list178; reference132 = questStep15; obj118.Steps = list175; reference129 = obj118; - ref QuestSequence reference133 = ref span75[3]; + num++; + ref QuestSequence reference133 = ref span172[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002631u, new Vector3(0.045776367f, 57.85028f, -308.76636f), 134); + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002631u, new Vector3(0.045776367f, 57.85028f, -308.76636f), 134); obj119.Steps = list179; reference133 = obj119; questRoot16.QuestSequence = list172; @@ -35311,13 +42589,16 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "liza"; + Span span180 = CollectionsMarshal.AsSpan(list180); + index = 0; + span180[index] = "liza"; questRoot17.Author = list180; - num = 4; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - Span span81 = CollectionsMarshal.AsSpan(list181); - ref QuestSequence reference134 = ref span81[0]; + index = 4; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + Span span181 = CollectionsMarshal.AsSpan(list181); + num = 0; + ref QuestSequence reference134 = ref span181[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -35325,44 +42606,58 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002631u, new Vector3(0.045776367f, 57.85028f, -308.76636f), 134); + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002631u, new Vector3(0.045776367f, 57.85028f, -308.76636f), 134); obj120.Steps = list182; reference134 = obj120; - ref QuestSequence reference135 = ref span81[1]; + num++; + ref QuestSequence reference135 = ref span181[num]; QuestSequence obj121 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - ref QuestStep reference136 = ref CollectionsMarshal.AsSpan(list183)[0]; + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + ref QuestStep reference136 = ref span183[num2]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, null, new Vector3(-42.099247f, 54.599857f, -262.0961f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - Span span82 = CollectionsMarshal.AsSpan(list184); - span82[0] = 348u; - span82[1] = 349u; + index3 = 2; + List list184 = new List(index3); + CollectionsMarshal.SetCount(list184, index3); + Span span184 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span184[num3] = 348u; + num3++; + span184[num3] = 349u; obj122.KillEnemyDataIds = list184; num3 = 6; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - Span span83 = CollectionsMarshal.AsSpan(list185); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span185 = CollectionsMarshal.AsSpan(list185); + index3 = 0; + span185[index3] = null; + index3++; + span185[index3] = null; + index3++; + span185[index3] = null; + index3++; + span185[index3] = null; + index3++; + span185[index3] = null; + index3++; + span185[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj122.CompletionQuestVariablesFlags = list185; reference136 = obj122; obj121.Steps = list183; reference135 = obj121; - ref QuestSequence reference137 = ref span81[2]; + num++; + ref QuestSequence reference137 = ref span181[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 @@ -35370,23 +42665,28 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1002631u, new Vector3(0.045776367f, 57.85028f, -308.76636f), 134); + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.Interact, 1002631u, new Vector3(0.045776367f, 57.85028f, -308.76636f), 134); obj123.Steps = list186; reference137 = obj123; - ref QuestSequence reference138 = ref span81[3]; + num++; + ref QuestSequence reference138 = ref span181[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - Span span84 = CollectionsMarshal.AsSpan(list187); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.08835f, 111.9045f, -245.44336f), 134) + index2 = 2; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.08835f, 111.9045f, -245.44336f), 134) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; - span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + num2++; + span187[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj124.Steps = list187; reference138 = obj124; questRoot17.QuestSequence = list181; @@ -35396,13 +42696,16 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; + Span span188 = CollectionsMarshal.AsSpan(list188); + index = 0; + span188[index] = "liza"; questRoot18.Author = list188; - num = 9; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span85 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference139 = ref span85[0]; + index = 9; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + Span span189 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference139 = ref span189[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -35410,21 +42713,27 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj125.Steps = list190; reference139 = obj125; - ref QuestSequence reference140 = ref span85[1]; + num++; + ref QuestSequence reference140 = ref span189[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1002633u, new Vector3(232.56274f, 113.07393f, -240.2533f), 134); + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.Interact, 1002633u, new Vector3(232.56274f, 113.07393f, -240.2533f), 134); obj126.Steps = list191; reference140 = obj126; - ref QuestSequence reference141 = ref span85[2]; + num++; + ref QuestSequence reference141 = ref span189[num]; QuestSequence obj127 = new QuestSequence { Sequence = 2 @@ -35432,21 +42741,27 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1002645u, new Vector3(-144.27411f, 20.32f, -336.32416f), 134); + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.Interact, 1002645u, new Vector3(-144.27411f, 20.32f, -336.32416f), 134); obj127.Steps = list192; reference141 = obj127; - ref QuestSequence reference142 = ref span85[3]; + num++; + ref QuestSequence reference142 = ref span189[num]; QuestSequence obj128 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1002646u, new Vector3(-58.762512f, 12.537111f, -410.94073f), 134); + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.Interact, 1002646u, new Vector3(-58.762512f, 12.537111f, -410.94073f), 134); obj128.Steps = list193; reference142 = obj128; - ref QuestSequence reference143 = ref span85[4]; + num++; + ref QuestSequence reference143 = ref span189[num]; QuestSequence obj129 = new QuestSequence { Sequence = 4 @@ -35454,7 +42769,9 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002647u, new Vector3(-34.866882f, 10.902258f, -432.15082f), 134) + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002647u, new Vector3(-34.866882f, 10.902258f, -432.15082f), 134) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -35463,27 +42780,32 @@ public static class AssemblyQuestLoader }; obj129.Steps = list194; reference143 = obj129; - span85[5] = new QuestSequence + num++; + span189[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference144 = ref span85[6]; + num++; + ref QuestSequence reference144 = ref span189[num]; QuestSequence obj130 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - Span span86 = CollectionsMarshal.AsSpan(list195); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.08835f, 111.9045f, -245.44336f), 134) + index2 = 2; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.08835f, 111.9045f, -245.44336f), 134) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; - span86[1] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + num2++; + span195[num2] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj130.Steps = list195; reference144 = obj130; - ref QuestSequence reference145 = ref span85[7]; + num++; + ref QuestSequence reference145 = ref span189[num]; QuestSequence obj131 = new QuestSequence { Sequence = 7 @@ -35491,18 +42813,23 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span196[index2] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj131.Steps = list196; reference145 = obj131; - ref QuestSequence reference146 = ref span85[8]; + num++; + ref QuestSequence reference146 = ref span189[num]; QuestSequence obj132 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span197[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -35520,13 +42847,16 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "FalconTaterz"; + Span span198 = CollectionsMarshal.AsSpan(list198); + index = 0; + span198[index] = "FalconTaterz"; questRoot19.Author = list198; - num = 5; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span87 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference147 = ref span87[0]; + index = 5; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + Span span199 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference147 = ref span199[num]; QuestSequence obj133 = new QuestSequence { Sequence = 0 @@ -35534,20 +42864,25 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010708u, new Vector3(-70.237305f, 6.9839683f, 1.9073486f), 131); + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span200[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010708u, new Vector3(-70.237305f, 6.9839683f, 1.9073486f), 131); obj133.Steps = list200; reference147 = obj133; - ref QuestSequence reference148 = ref span87[1]; + num++; + ref QuestSequence reference148 = ref span199[num]; QuestSequence obj134 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - Span span88 = CollectionsMarshal.AsSpan(list201); - span88[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.76394f, 6.9845715f, 6.476269f), 131); - span88[1] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + index2 = 2; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span201[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.76394f, 6.9845715f, 6.476269f), 131); + num2++; + span201[num2] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AethernetShortcut = new AethernetShortcut { @@ -35557,7 +42892,8 @@ public static class AssemblyQuestLoader }; obj134.Steps = list201; reference148 = obj134; - ref QuestSequence reference149 = ref span87[2]; + num++; + ref QuestSequence reference149 = ref span199[num]; QuestSequence obj135 = new QuestSequence { Sequence = 2 @@ -35565,7 +42901,9 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1011620u, new Vector3(-118.69995f, 40f, 95.23157f), 131) + Span span202 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span202[index2] = new QuestStep(EInteractionType.Interact, 1011620u, new Vector3(-118.69995f, 40f, 95.23157f), 131) { AethernetShortcut = new AethernetShortcut { @@ -35575,21 +42913,25 @@ public static class AssemblyQuestLoader }; obj135.Steps = list202; reference149 = obj135; - ref QuestSequence reference150 = ref span87[3]; + num++; + ref QuestSequence reference150 = ref span199[num]; QuestSequence obj136 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1011672u, new Vector3(-118.21167f, 40f, 92.11865f), 131) + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.Interact, 1011672u, new Vector3(-118.21167f, 40f, 92.11865f), 131) { StopDistance = 5f }; obj136.Steps = list203; reference150 = obj136; - ref QuestSequence reference151 = ref span87[4]; + num++; + ref QuestSequence reference151 = ref span199[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -35597,7 +42939,9 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011677u, new Vector3(363.54602f, 74.743355f, 171.12988f), 140) + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span204[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011677u, new Vector3(363.54602f, 74.743355f, 171.12988f), 140) { AethernetShortcut = new AethernetShortcut { @@ -35615,24 +42959,30 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "FalconTaterz"; + Span span205 = CollectionsMarshal.AsSpan(list205); + index = 0; + span205[index] = "FalconTaterz"; questRoot20.Author = list205; - num = 6; - List list206 = new List(num); - CollectionsMarshal.SetCount(list206, num); - Span span89 = CollectionsMarshal.AsSpan(list206); - ref QuestSequence reference152 = ref span89[0]; + index = 6; + List list206 = new List(index); + CollectionsMarshal.SetCount(list206, index); + Span span206 = CollectionsMarshal.AsSpan(list206); + num = 0; + ref QuestSequence reference152 = ref span206[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011677u, new Vector3(363.54602f, 74.743355f, 171.12988f), 140); + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + Span span207 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + span207[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011677u, new Vector3(363.54602f, 74.743355f, 171.12988f), 140); obj138.Steps = list207; reference152 = obj138; - ref QuestSequence reference153 = ref span89[1]; + num++; + ref QuestSequence reference153 = ref span206[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -35640,8 +42990,9 @@ public static class AssemblyQuestLoader num2 = 5; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span90 = CollectionsMarshal.AsSpan(list208); - span90[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.53638f, 17.999998f, 66.511505f), 130) + Span span208 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span208[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.53638f, 17.999998f, 66.511505f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -35650,76 +43001,108 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - ref QuestStep reference154 = ref span90[1]; + index2++; + ref QuestStep reference154 = ref span208[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1011681u, new Vector3(-182.29956f, 18f, 56.90088f), 130); - num3 = 6; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - Span span91 = CollectionsMarshal.AsSpan(list209); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list209 = new List(index3); + CollectionsMarshal.SetCount(list209, index3); + Span span209 = CollectionsMarshal.AsSpan(list209); + num3 = 0; + span209[num3] = null; + num3++; + span209[num3] = null; + num3++; + span209[num3] = null; + num3++; + span209[num3] = null; + num3++; + span209[num3] = null; + num3++; + span209[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list209; reference154 = questStep16; - ref QuestStep reference155 = ref span90[2]; + index2++; + ref QuestStep reference155 = ref span208[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1003897u, new Vector3(-195.45282f, 18f, 60.53247f), 130); num3 = 6; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - Span span92 = CollectionsMarshal.AsSpan(list210); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span210 = CollectionsMarshal.AsSpan(list210); + index3 = 0; + span210[index3] = null; + index3++; + span210[index3] = null; + index3++; + span210[index3] = null; + index3++; + span210[index3] = null; + index3++; + span210[index3] = null; + index3++; + span210[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list210; reference155 = questStep17; - ref QuestStep reference156 = ref span90[3]; + index2++; + ref QuestStep reference156 = ref span208[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1001294u, new Vector3(-214.22144f, 18.5f, 72.129395f), 130); - num3 = 6; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - Span span93 = CollectionsMarshal.AsSpan(list211); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list211 = new List(index3); + CollectionsMarshal.SetCount(list211, index3); + Span span211 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + span211[num3] = null; + num3++; + span211[num3] = null; + num3++; + span211[num3] = null; + num3++; + span211[num3] = null; + num3++; + span211[num3] = null; + num3++; + span211[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list211; reference156 = questStep18; - ref QuestStep reference157 = ref span90[4]; + index2++; + ref QuestStep reference157 = ref span208[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); num3 = 6; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - Span span94 = CollectionsMarshal.AsSpan(list212); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span212 = CollectionsMarshal.AsSpan(list212); + index3 = 0; + span212[index3] = null; + index3++; + span212[index3] = null; + index3++; + span212[index3] = null; + index3++; + span212[index3] = null; + index3++; + span212[index3] = null; + index3++; + span212[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list212; reference157 = questStep19; obj139.Steps = list208; reference153 = obj139; - ref QuestSequence reference158 = ref span89[2]; + num++; + ref QuestSequence reference158 = ref span206[num]; QuestSequence obj140 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1011682u, new Vector3(-200.763f, 17.999998f, 59.189697f), 130); + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span213 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span213[num2] = new QuestStep(EInteractionType.Interact, 1011682u, new Vector3(-200.763f, 17.999998f, 59.189697f), 130); obj140.Steps = list213; reference158 = obj140; - ref QuestSequence reference159 = ref span89[3]; + num++; + ref QuestSequence reference159 = ref span206[num]; QuestSequence obj141 = new QuestSequence { Sequence = 3 @@ -35727,27 +43110,33 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1011683u, new Vector3(76.8291f, 45f, -218.28033f), 140) + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.Interact, 1011683u, new Vector3(76.8291f, 45f, -218.28033f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; obj141.Steps = list214; reference159 = obj141; - ref QuestSequence reference160 = ref span89[4]; + num++; + ref QuestSequence reference160 = ref span206[num]; QuestSequence obj142 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-345.65482f, 23f, -352.02484f), 140) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-345.65482f, 23f, -352.02484f), 140) { Fly = true }; obj142.Steps = list215; reference160 = obj142; - ref QuestSequence reference161 = ref span89[5]; + num++; + ref QuestSequence reference161 = ref span206[num]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -35755,7 +43144,9 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011675u, new Vector3(-118.150635f, 40f, 96.29968f), 131) + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span216[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011675u, new Vector3(-118.150635f, 40f, 96.29968f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -35774,24 +43165,30 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "FalconTaterz"; + Span span217 = CollectionsMarshal.AsSpan(list217); + index = 0; + span217[index] = "FalconTaterz"; questRoot21.Author = list217; - num = 7; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - Span span95 = CollectionsMarshal.AsSpan(list218); - ref QuestSequence reference162 = ref span95[0]; + index = 7; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + Span span218 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference162 = ref span218[num]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011691u, new Vector3(40.878906f, 33.999985f, 27.939209f), 131); + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + Span span219 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span219[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011691u, new Vector3(40.878906f, 33.999985f, 27.939209f), 131); obj144.Steps = list219; reference162 = obj144; - ref QuestSequence reference163 = ref span95[1]; + num++; + ref QuestSequence reference163 = ref span218[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -35799,29 +43196,36 @@ public static class AssemblyQuestLoader num2 = 2; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span96 = CollectionsMarshal.AsSpan(list220); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(44.860275f, 34.02289f, -12.268097f), 131); - span96[1] = new QuestStep(EInteractionType.Interact, 2005164u, new Vector3(43.07617f, 33.98181f, -13.962036f), 131); + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span220[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(44.860275f, 34.02289f, -12.268097f), 131); + index2++; + span220[index2] = new QuestStep(EInteractionType.Interact, 2005164u, new Vector3(43.07617f, 33.98181f, -13.962036f), 131); obj145.Steps = list220; reference163 = obj145; - ref QuestSequence reference164 = ref span95[2]; + num++; + ref QuestSequence reference164 = ref span218[num]; QuestSequence obj146 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - Span span97 = CollectionsMarshal.AsSpan(list221); - span97[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.576427f, 34f, -23.220316f), 131); - span97[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(49.565746f, 33.999992f, -25.594622f), 131) + index2 = 3; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span221[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.576427f, 34f, -23.220316f), 131); + num2++; + span221[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(49.565746f, 33.999992f, -25.594622f), 131) { DisableNavmesh = true }; - span97[2] = new QuestStep(EInteractionType.Interact, 2005165u, new Vector3(60.16626f, 33.98181f, -21.316895f), 131); + num2++; + span221[num2] = new QuestStep(EInteractionType.Interact, 2005165u, new Vector3(60.16626f, 33.98181f, -21.316895f), 131); obj146.Steps = list221; reference164 = obj146; - ref QuestSequence reference165 = ref span95[3]; + num++; + ref QuestSequence reference165 = ref span218[num]; QuestSequence obj147 = new QuestSequence { Sequence = 3 @@ -35829,33 +43233,41 @@ public static class AssemblyQuestLoader num2 = 3; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span98 = CollectionsMarshal.AsSpan(list222); - span98[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.15642f, 33.999992f, -25.133741f), 131); - span98[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(62.437984f, 28.992012f, -34.336155f), 131) + Span span222 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span222[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.15642f, 33.999992f, -25.133741f), 131); + index2++; + span222[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(62.437984f, 28.992012f, -34.336155f), 131) { DisableNavmesh = true }; - span98[2] = new QuestStep(EInteractionType.Interact, 2005166u, new Vector3(74.96753f, 28.976807f, -29.007446f), 131); + index2++; + span222[index2] = new QuestStep(EInteractionType.Interact, 2005166u, new Vector3(74.96753f, 28.976807f, -29.007446f), 131); obj147.Steps = list222; reference165 = obj147; - ref QuestSequence reference166 = ref span95[4]; + num++; + ref QuestSequence reference166 = ref span218[num]; QuestSequence obj148 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - Span span99 = CollectionsMarshal.AsSpan(list223); - span99[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(62.437984f, 28.992012f, -34.336155f), 131); - span99[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.576427f, 34f, -23.220316f), 131) + index2 = 3; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + Span span223 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span223[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(62.437984f, 28.992012f, -34.336155f), 131); + num2++; + span223[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.576427f, 34f, -23.220316f), 131) { DisableNavmesh = true }; - span99[2] = new QuestStep(EInteractionType.Interact, 1011697u, new Vector3(39.07837f, 33.999985f, 27.237305f), 131); + num2++; + span223[num2] = new QuestStep(EInteractionType.Interact, 1011697u, new Vector3(39.07837f, 33.999985f, 27.237305f), 131); obj148.Steps = list223; reference166 = obj148; - ref QuestSequence reference167 = ref span95[5]; + num++; + ref QuestSequence reference167 = ref span218[num]; QuestSequence obj149 = new QuestSequence { Sequence = 5 @@ -35863,25 +43275,33 @@ public static class AssemblyQuestLoader num2 = 3; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span100 = CollectionsMarshal.AsSpan(list224); - ref QuestStep reference168 = ref span100[0]; + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + ref QuestStep reference168 = ref span224[index2]; QuestStep obj150 = new QuestStep(EInteractionType.Interact, 1011693u, new Vector3(39.444458f, 34f, 29.984009f), 131) { StopDistance = 7f }; - num3 = 6; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - Span span101 = CollectionsMarshal.AsSpan(list225); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list225 = new List(index3); + CollectionsMarshal.SetCount(list225, index3); + Span span225 = CollectionsMarshal.AsSpan(list225); + num3 = 0; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj150.CompletionQuestVariablesFlags = list225; reference168 = obj150; - ref QuestStep reference169 = ref span100[1]; + index2++; + ref QuestStep reference169 = ref span224[index2]; QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1011694u, new Vector3(41.367188f, 33.999992f, 29.43457f), 131) { StopDistance = 7f @@ -35889,43 +43309,59 @@ public static class AssemblyQuestLoader num3 = 6; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - Span span102 = CollectionsMarshal.AsSpan(list226); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span226 = CollectionsMarshal.AsSpan(list226); + index3 = 0; + span226[index3] = null; + index3++; + span226[index3] = null; + index3++; + span226[index3] = null; + index3++; + span226[index3] = null; + index3++; + span226[index3] = null; + index3++; + span226[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj151.CompletionQuestVariablesFlags = list226; reference169 = obj151; - ref QuestStep reference170 = ref span100[2]; + index2++; + ref QuestStep reference170 = ref span224[index2]; QuestStep obj152 = new QuestStep(EInteractionType.Interact, 1011695u, new Vector3(41.916504f, 33.999992f, 30.044922f), 131) { StopDistance = 7f }; - num3 = 6; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - Span span103 = CollectionsMarshal.AsSpan(list227); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list227 = new List(index3); + CollectionsMarshal.SetCount(list227, index3); + Span span227 = CollectionsMarshal.AsSpan(list227); + num3 = 0; + span227[num3] = null; + num3++; + span227[num3] = null; + num3++; + span227[num3] = null; + num3++; + span227[num3] = null; + num3++; + span227[num3] = null; + num3++; + span227[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj152.CompletionQuestVariablesFlags = list227; reference170 = obj152; obj149.Steps = list224; reference167 = obj149; - ref QuestSequence reference171 = ref span95[6]; + num++; + ref QuestSequence reference171 = ref span218[num]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011697u, new Vector3(39.07837f, 33.999985f, 27.237305f), 131) + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011697u, new Vector3(39.07837f, 33.999985f, 27.237305f), 131) { NextQuestId = new QuestId(493) }; @@ -35938,13 +43374,16 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "FalconTaterz"; + Span span229 = CollectionsMarshal.AsSpan(list229); + index = 0; + span229[index] = "FalconTaterz"; questRoot22.Author = list229; - num = 5; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span104 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference172 = ref span104[0]; + index = 5; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + Span span230 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference172 = ref span230[num]; QuestSequence obj154 = new QuestSequence { Sequence = 0 @@ -35952,27 +43391,33 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011699u, new Vector3(39.81079f, 34f, 30.22815f), 131) + Span span231 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span231[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011699u, new Vector3(39.81079f, 34f, 30.22815f), 131) { StopDistance = 7f }; obj154.Steps = list231; reference172 = obj154; - ref QuestSequence reference173 = ref span104[1]; + num++; + ref QuestSequence reference173 = ref span230[num]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1011707u, new Vector3(42.893066f, 33.99998f, 29.343018f), 131) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span232[num2] = new QuestStep(EInteractionType.Interact, 1011707u, new Vector3(42.893066f, 33.99998f, 29.343018f), 131) { StopDistance = 7f }; obj155.Steps = list232; reference173 = obj155; - ref QuestSequence reference174 = ref span104[2]; + num++; + ref QuestSequence reference174 = ref span230[num]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -35980,8 +43425,9 @@ public static class AssemblyQuestLoader num2 = 2; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span105 = CollectionsMarshal.AsSpan(list233); - span105[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.68585f, 3.9999998f, -58.555218f), 131) + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span233[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.68585f, 3.9999998f, -58.555218f), 131) { AethernetShortcut = new AethernetShortcut { @@ -35989,21 +43435,25 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - span105[1] = new QuestStep(EInteractionType.Interact, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) + index2++; + span233[index2] = new QuestStep(EInteractionType.Interact, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) { StopDistance = 5f }; obj156.Steps = list233; reference174 = obj156; - ref QuestSequence reference175 = ref span104[3]; + num++; + ref QuestSequence reference175 = ref span230[num]; QuestSequence obj157 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1011712u, new Vector3(-43.86969f, 30.000008f, 7.8583374f), 131) + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + Span span234 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span234[num2] = new QuestStep(EInteractionType.Interact, 1011712u, new Vector3(-43.86969f, 30.000008f, 7.8583374f), 131) { AethernetShortcut = new AethernetShortcut { @@ -36013,7 +43463,8 @@ public static class AssemblyQuestLoader }; obj157.Steps = list234; reference175 = obj157; - ref QuestSequence reference176 = ref span104[4]; + num++; + ref QuestSequence reference176 = ref span230[num]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue @@ -36021,10 +43472,13 @@ public static class AssemblyQuestLoader num2 = 3; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span106 = CollectionsMarshal.AsSpan(list235); - span106[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.47297f, 33.999996f, -40.833565f), 131); - span106[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(33.41606f, 34f, -32.54854f), 131); - span106[2] = new QuestStep(EInteractionType.CompleteQuest, 1011707u, new Vector3(42.893066f, 33.99998f, 29.343018f), 131) + Span span235 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span235[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.47297f, 33.999996f, -40.833565f), 131); + index2++; + span235[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(33.41606f, 34f, -32.54854f), 131); + index2++; + span235[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011707u, new Vector3(42.893066f, 33.99998f, 29.343018f), 131) { NextQuestId = new QuestId(502) }; @@ -36037,23 +43491,28 @@ public static class AssemblyQuestLoader num = 2; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - Span span107 = CollectionsMarshal.AsSpan(list236); - span107[0] = "JerryWester"; - span107[1] = "Wigglez"; + Span span236 = CollectionsMarshal.AsSpan(list236); + index = 0; + span236[index] = "JerryWester"; + index++; + span236[index] = "Wigglez"; questRoot23.Author = list236; - num = 5; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - Span span108 = CollectionsMarshal.AsSpan(list237); - ref QuestSequence reference177 = ref span108[0]; + index = 5; + List list237 = new List(index); + CollectionsMarshal.SetCount(list237, index); + Span span237 = CollectionsMarshal.AsSpan(list237); + num = 0; + ref QuestSequence reference177 = ref span237[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -36066,7 +43525,8 @@ public static class AssemblyQuestLoader }; obj159.Steps = list238; reference177 = obj159; - ref QuestSequence reference178 = ref span108[1]; + num++; + ref QuestSequence reference178 = ref span237[num]; QuestSequence obj160 = new QuestSequence { Sequence = 1 @@ -36074,42 +43534,51 @@ public static class AssemblyQuestLoader num2 = 5; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span109 = CollectionsMarshal.AsSpan(list239); - span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(579.65247f, 17.487066f, -278.57523f), 156) + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(579.65247f, 17.487066f, -278.57523f), 156) { Fly = true }; - span109[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) + index2++; + span239[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) { Fly = true }; - span109[2] = new QuestStep(EInteractionType.Combat, null, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) + index2++; + span239[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) { DelaySecondsAtStart = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - span109[3] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) + index2++; + span239[index2] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) { TargetTerritoryId = (ushort)156 }; - span109[4] = new QuestStep(EInteractionType.Interact, 1011638u, new Vector3(664.8203f, -1.1951543f, -106.523315f), 156); + index2++; + span239[index2] = new QuestStep(EInteractionType.Interact, 1011638u, new Vector3(664.8203f, -1.1951543f, -106.523315f), 156); obj160.Steps = list239; reference178 = obj160; - ref QuestSequence reference179 = ref span108[2]; + num++; + ref QuestSequence reference179 = ref span237[num]; QuestSequence obj161 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1011640u, new Vector3(732.0515f, 15.33271f, -68.65039f), 156) + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.Interact, 1011640u, new Vector3(732.0515f, 15.33271f, -68.65039f), 156) { StopDistance = 7f }; obj161.Steps = list240; reference179 = obj161; - ref QuestSequence reference180 = ref span108[3]; + num++; + ref QuestSequence reference180 = ref span237[num]; QuestSequence obj162 = new QuestSequence { Sequence = 3 @@ -36117,7 +43586,9 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Duty, null, null, 156) + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions { @@ -36127,21 +43598,24 @@ public static class AssemblyQuestLoader }; obj162.Steps = list241; reference180 = obj162; - ref QuestSequence reference181 = ref span108[4]; + num++; + ref QuestSequence reference181 = ref span237[num]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - Span span110 = CollectionsMarshal.AsSpan(list242); - span110[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) + index2 = 2; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span110[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + num2++; + span242[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { NextQuestId = new QuestId(495) }; @@ -36154,15 +43628,18 @@ public static class AssemblyQuestLoader num = 2; List list243 = new List(num); CollectionsMarshal.SetCount(list243, num); - Span span111 = CollectionsMarshal.AsSpan(list243); - span111[0] = "JerryWester"; - span111[1] = "Wigglez"; + Span span243 = CollectionsMarshal.AsSpan(list243); + index = 0; + span243[index] = "JerryWester"; + index++; + span243[index] = "Wigglez"; questRoot24.Author = list243; - num = 3; - List list244 = new List(num); - CollectionsMarshal.SetCount(list244, num); - Span span112 = CollectionsMarshal.AsSpan(list244); - ref QuestSequence reference182 = ref span112[0]; + index = 3; + List list244 = new List(index); + CollectionsMarshal.SetCount(list244, index); + Span span244 = CollectionsMarshal.AsSpan(list244); + num = 0; + ref QuestSequence reference182 = ref span244[num]; QuestSequence obj164 = new QuestSequence { Sequence = 0 @@ -36170,7 +43647,9 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -36183,36 +43662,43 @@ public static class AssemblyQuestLoader }; obj164.Steps = list245; reference182 = obj164; - ref QuestSequence reference183 = ref span112[1]; + num++; + ref QuestSequence reference183 = ref span244[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span113 = CollectionsMarshal.AsSpan(list246); - span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(579.65247f, 17.487066f, -278.57523f), 156) + index2 = 5; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(579.65247f, 17.487066f, -278.57523f), 156) { Fly = true }; - span113[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) + num2++; + span246[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) { Fly = true }; - span113[2] = new QuestStep(EInteractionType.Combat, null, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) + num2++; + span246[num2] = new QuestStep(EInteractionType.Combat, null, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) { DelaySecondsAtStart = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - span113[3] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) + num2++; + span246[num2] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) { TargetTerritoryId = (ushort)156 }; - span113[4] = new QuestStep(EInteractionType.Interact, 1011641u, new Vector3(706.4468f, 15.332714f, -71.27496f), 156); + num2++; + span246[num2] = new QuestStep(EInteractionType.Interact, 1011641u, new Vector3(706.4468f, 15.332714f, -71.27496f), 156); obj165.Steps = list246; reference183 = obj165; - ref QuestSequence reference184 = ref span112[2]; + num++; + ref QuestSequence reference184 = ref span244[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue @@ -36220,13 +43706,15 @@ public static class AssemblyQuestLoader num2 = 2; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span114 = CollectionsMarshal.AsSpan(list247); - span114[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span114[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); + index2++; + span247[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); obj166.Steps = list247; reference184 = obj166; questRoot24.QuestSequence = list244; @@ -36236,21 +43724,26 @@ public static class AssemblyQuestLoader num = 1; List list248 = new List(num); CollectionsMarshal.SetCount(list248, num); - CollectionsMarshal.AsSpan(list248)[0] = "liza"; + Span span248 = CollectionsMarshal.AsSpan(list248); + index = 0; + span248[index] = "liza"; questRoot25.Author = list248; - num = 6; - List list249 = new List(num); - CollectionsMarshal.SetCount(list249, num); - Span span115 = CollectionsMarshal.AsSpan(list249); - ref QuestSequence reference185 = ref span115[0]; + index = 6; + List list249 = new List(index); + CollectionsMarshal.SetCount(list249, index); + Span span249 = CollectionsMarshal.AsSpan(list249); + num = 0; + ref QuestSequence reference185 = ref span249[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span250 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span250[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -36263,7 +43756,8 @@ public static class AssemblyQuestLoader }; obj167.Steps = list250; reference185 = obj167; - ref QuestSequence reference186 = ref span115[1]; + num++; + ref QuestSequence reference186 = ref span249[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 @@ -36271,27 +43765,33 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) + Span span251 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span251[index2] = new QuestStep(EInteractionType.Interact, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj168.Steps = list251; reference186 = obj168; - ref QuestSequence reference187 = ref span115[2]; + num++; + ref QuestSequence reference187 = ref span249[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.Interact, 1011650u, new Vector3(557.6714f, 20.721313f, 454.24573f), 137) + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.Interact, 1011650u, new Vector3(557.6714f, 20.721313f, 454.24573f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj169.Steps = list252; reference187 = obj169; - ref QuestSequence reference188 = ref span115[3]; + num++; + ref QuestSequence reference188 = ref span249[num]; QuestSequence obj170 = new QuestSequence { Sequence = 3 @@ -36299,21 +43799,26 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Emote, 1011650u, new Vector3(557.6714f, 20.721313f, 454.24573f), 137) + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.Emote, 1011650u, new Vector3(557.6714f, 20.721313f, 454.24573f), 137) { Emote = EEmote.Soothe }; obj170.Steps = list253; reference188 = obj170; - ref QuestSequence reference189 = ref span115[4]; + num++; + ref QuestSequence reference189 = ref span249[num]; QuestSequence obj171 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - ref QuestStep reference190 = ref CollectionsMarshal.AsSpan(list254)[0]; + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + ref QuestStep reference190 = ref span254[num2]; QuestStep obj172 = new QuestStep(EInteractionType.Interact, 1011651u, new Vector3(8.804443f, 71.18964f, -15.182739f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport @@ -36321,7 +43826,9 @@ public static class AssemblyQuestLoader num3 = 1; List list255 = new List(num3); CollectionsMarshal.SetCount(list255, num3); - CollectionsMarshal.AsSpan(list255)[0] = new DialogueChoice + Span span255 = CollectionsMarshal.AsSpan(list255); + index3 = 0; + span255[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST026_00496_Q1_000_000"), @@ -36331,7 +43838,8 @@ public static class AssemblyQuestLoader reference190 = obj172; obj171.Steps = list254; reference189 = obj171; - ref QuestSequence reference191 = ref span115[5]; + num++; + ref QuestSequence reference191 = ref span249[num]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue @@ -36339,7 +43847,9 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011652u, new Vector3(532.9823f, 44.02837f, 540.3982f), 137) + Span span256 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span256[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011652u, new Vector3(532.9823f, 44.02837f, 540.3982f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -36358,13 +43868,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "FalconTaterz"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "FalconTaterz"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -36372,25 +43885,31 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011707u, new Vector3(42.893066f, 33.99998f, 29.343018f), 131); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011707u, new Vector3(42.893066f, 33.99998f, 29.343018f), 131); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1011714u, new Vector3(-223.19379f, -3.7199955f, 52.32312f), 141) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1011714u, new Vector3(-223.19379f, -3.7199955f, 52.32312f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -36398,7 +43917,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Say, 2005188u, new Vector3(-314.07648f, -1.083435f, 43.9917f), 141) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Say, 2005188u, new Vector3(-314.07648f, -1.083435f, 43.9917f), 141) { ChatMessage = new ChatMessage { @@ -36407,24 +43928,28 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span2 = CollectionsMarshal.AsSpan(list6); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(159.84998f, 37.381317f, 174.60776f), 153) + index2 = 2; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(159.84998f, 37.381317f, 174.60776f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - span2[1] = new QuestStep(EInteractionType.Interact, 1011722u, new Vector3(159.68555f, 37.432796f, 177.69128f), 153); + num2++; + span6[num2] = new QuestStep(EInteractionType.Interact, 1011722u, new Vector3(159.68555f, 37.432796f, 177.69128f), 153); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -36432,7 +43957,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Duty, null, null, 153) + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.Duty, null, null, 153) { DutyOptions = new DutyOptions { @@ -36441,15 +43968,18 @@ public static class AssemblyQuestLoader }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011723u, new Vector3(141.06958f, 29.64365f, 173.72388f), 153) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011723u, new Vector3(141.06958f, 29.64365f, 173.72388f), 153) { NextQuestId = new QuestId(2226) }; @@ -36462,13 +43992,16 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "liza"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "liza"; questRoot2.Author = list9; - num = 3; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span3[0]; + index = 3; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span10[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -36476,19 +44009,23 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span3[1]; + num++; + ref QuestSequence reference8 = ref span10[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - Span span4 = CollectionsMarshal.AsSpan(list12); - ref QuestStep reference9 = ref span4[0]; + index2 = 3; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + ref QuestStep reference9 = ref span12[num2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, 2001368u, new Vector3(297.56616f, 62.546753f, -194.04901f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -36496,21 +44033,30 @@ public static class AssemblyQuestLoader int num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 187u; + Span span13 = CollectionsMarshal.AsSpan(list13); + int index3 = 0; + span13[index3] = 187u; obj9.KillEnemyDataIds = list13; - num3 = 6; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - Span span5 = CollectionsMarshal.AsSpan(list14); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list14 = new List(index3); + CollectionsMarshal.SetCount(list14, index3); + Span span14 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span14[num3] = null; + num3++; + span14[num3] = null; + num3++; + span14[num3] = null; + num3++; + span14[num3] = null; + num3++; + span14[num3] = null; + num3++; + span14[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj9.CompletionQuestVariablesFlags = list14; reference9 = obj9; - ref QuestStep reference10 = ref span4[1]; + num2++; + ref QuestStep reference10 = ref span12[num2]; QuestStep obj10 = new QuestStep(EInteractionType.Combat, 2001735u, new Vector3(318.31836f, 63.523315f, -200.9461f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -36518,21 +44064,30 @@ public static class AssemblyQuestLoader num3 = 1; List list15 = new List(num3); CollectionsMarshal.SetCount(list15, num3); - CollectionsMarshal.AsSpan(list15)[0] = 187u; + Span span15 = CollectionsMarshal.AsSpan(list15); + index3 = 0; + span15[index3] = 187u; obj10.KillEnemyDataIds = list15; - num3 = 6; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - Span span6 = CollectionsMarshal.AsSpan(list16); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span16[num3] = null; + num3++; + span16[num3] = null; + num3++; + span16[num3] = null; + num3++; + span16[num3] = null; + num3++; + span16[num3] = null; + num3++; + span16[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj10.CompletionQuestVariablesFlags = list16; reference10 = obj10; - ref QuestStep reference11 = ref span4[2]; + num2++; + ref QuestStep reference11 = ref span12[num2]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, 2001369u, new Vector3(293.01892f, 63.46228f, -236.16394f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -36540,23 +44095,32 @@ public static class AssemblyQuestLoader num3 = 1; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = 187u; + Span span17 = CollectionsMarshal.AsSpan(list17); + index3 = 0; + span17[index3] = 187u; obj11.KillEnemyDataIds = list17; - num3 = 6; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - Span span7 = CollectionsMarshal.AsSpan(list18); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list18 = new List(index3); + CollectionsMarshal.SetCount(list18, index3); + Span span18 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span18[num3] = null; + num3++; + span18[num3] = null; + num3++; + span18[num3] = null; + num3++; + span18[num3] = null; + num3++; + span18[num3] = null; + num3++; + span18[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj11.CompletionQuestVariablesFlags = list18; reference11 = obj11; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference12 = ref span3[2]; + num++; + ref QuestSequence reference12 = ref span10[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -36564,7 +44128,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); obj12.Steps = list19; reference12 = obj12; questRoot2.QuestSequence = list10; @@ -36574,22 +44140,28 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + Span span20 = CollectionsMarshal.AsSpan(list20); + index = 0; + span20[index] = "liza"; questRoot3.Author = list20; questRoot3.IsSeasonalQuest = true; questRoot3.SeasonalQuestExpiry = new DateTime(2025, 8, 5, 0, 0, 0, DateTimeKind.Utc); - num = 1; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - ref QuestSequence reference13 = ref CollectionsMarshal.AsSpan(list21)[0]; + index = 1; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + Span span21 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference13 = ref span21[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list22)[0]; + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref QuestStep reference14 = ref span22[num2]; QuestStep obj14 = new QuestStep(EInteractionType.AcceptQuest, 1052475u, new Vector3(-22.354492f, 10.13581f, -241.41296f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -36607,7 +44179,9 @@ public static class AssemblyQuestLoader num3 = 1; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = 133; + Span span23 = CollectionsMarshal.AsSpan(list23); + index3 = 0; + span23[index3] = 133; obj15.InTerritory = list23; skipConditions.AetheryteShortcutIf = obj15; obj14.SkipConditions = skipConditions; @@ -36621,13 +44195,16 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "liza"; + Span span24 = CollectionsMarshal.AsSpan(list24); + index = 0; + span24[index] = "liza"; questRoot4.Author = list24; - num = 10; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span8 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference15 = ref span8[0]; + index = 10; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + Span span25 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference15 = ref span25[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -36635,23 +44212,28 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj16.Steps = list26; reference15 = obj16; - ref QuestSequence reference16 = ref span8[1]; + num++; + ref QuestSequence reference16 = ref span25[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - Span span9 = CollectionsMarshal.AsSpan(list27); - span9[0] = new QuestStep(EInteractionType.Interact, 2001216u, new Vector3(45.87172f, 7.763558f, 47.41661f), 205) + index2 = 2; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.Interact, 2001216u, new Vector3(45.87172f, 7.763558f, 47.41661f), 205) { TargetTerritoryId = (ushort)133 }; - span9[1] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + num2++; + span27[num2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AethernetShortcut = new AethernetShortcut { @@ -36661,7 +44243,8 @@ public static class AssemblyQuestLoader }; obj17.Steps = list27; reference16 = obj17; - ref QuestSequence reference17 = ref span8[2]; + num++; + ref QuestSequence reference17 = ref span25[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -36669,12 +44252,16 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list28)[0]; + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + ref QuestStep reference18 = ref span28[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132); - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = new DialogueChoice + index3 = 1; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span29[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q1_000_1") @@ -36683,20 +44270,25 @@ public static class AssemblyQuestLoader reference18 = questStep; obj18.Steps = list28; reference17 = obj18; - ref QuestSequence reference19 = ref span8[3]; + num++; + ref QuestSequence reference19 = ref span25[num]; QuestSequence obj19 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference20 = ref CollectionsMarshal.AsSpan(list30)[0]; + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + ref QuestStep reference20 = ref span30[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2001666u, new Vector3(7.179191f, -21.93796f, 124.1005f), 132); num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = new DialogueChoice + Span span31 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span31[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q2_000_1") @@ -36705,7 +44297,8 @@ public static class AssemblyQuestLoader reference20 = questStep2; obj19.Steps = list30; reference19 = obj19; - ref QuestSequence reference21 = ref span8[4]; + num++; + ref QuestSequence reference21 = ref span25[num]; QuestSequence obj20 = new QuestSequence { Sequence = 4 @@ -36713,35 +44306,41 @@ public static class AssemblyQuestLoader num2 = 2; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span10 = CollectionsMarshal.AsSpan(list32); - ref QuestStep reference22 = ref span10[0]; + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference22 = ref span32[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1002703u, new Vector3(-12.375122f, 91.499985f, -0.5340576f), 128) { Comment = "Limsa Arrivals Attendant" }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new DialogueChoice + index3 = 1; + List list33 = new List(index3); + CollectionsMarshal.SetCount(list33, index3); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q5_000_1") }; obj21.DialogueChoices = list33; reference22 = obj21; - span10[1] = new QuestStep(EInteractionType.Interact, 1002693u, new Vector3(-6.515625f, 91.49996f, -13.656921f), 128); + index2++; + span32[index2] = new QuestStep(EInteractionType.Interact, 1002693u, new Vector3(-6.515625f, 91.49996f, -13.656921f), 128); obj20.Steps = list32; reference21 = obj20; - ref QuestSequence reference23 = ref span8[5]; + num++; + ref QuestSequence reference23 = ref span25[num]; QuestSequence obj22 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span11 = CollectionsMarshal.AsSpan(list34); - ref QuestStep reference24 = ref span11[0]; + index2 = 2; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref QuestStep reference24 = ref span34[num2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1003583u, new Vector3(-7.248047f, 91.49999f, -16.128845f), 128) { TargetTerritoryId = (ushort)129 @@ -36749,7 +44348,9 @@ public static class AssemblyQuestLoader num3 = 1; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = new DialogueChoice + Span span35 = CollectionsMarshal.AsSpan(list35); + index3 = 0; + span35[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -36757,10 +44358,12 @@ public static class AssemblyQuestLoader }; obj23.DialogueChoices = list35; reference24 = obj23; - span11[1] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); + num2++; + span34[num2] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); obj22.Steps = list34; reference23 = obj22; - ref QuestSequence reference25 = ref span8[6]; + num++; + ref QuestSequence reference25 = ref span25[num]; QuestSequence obj24 = new QuestSequence { Sequence = 6 @@ -36768,24 +44371,29 @@ public static class AssemblyQuestLoader num2 = 10; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span12 = CollectionsMarshal.AsSpan(list36); - span12[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - span12[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) + index2++; + span36[index2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - span12[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span36[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaHawkersAlley }; - span12[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span36[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaArcanist }; - span12[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span36[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaFisher, AethernetShortcut = new AethernetShortcut @@ -36794,7 +44402,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaHawkersAlley } }; - span12[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) + index2++; + span36[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) { TargetTerritoryId = (ushort)128, Comment = "Walk to Culinarians' Guild", @@ -36804,19 +44413,23 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Limsa } }; - span12[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span36[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaCulinarian }; - span12[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span36[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaMarauder }; - span12[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span36[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaAftcastle }; - ref QuestStep reference26 = ref span12[9]; + index2++; + ref QuestStep reference26 = ref span36[index2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128) { AethernetShortcut = new AethernetShortcut @@ -36825,10 +44438,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAirship } }; - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = new DialogueChoice + index3 = 1; + List list37 = new List(index3); + CollectionsMarshal.SetCount(list37, index3); + Span span37 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span37[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q6_000_1") @@ -36837,20 +44452,25 @@ public static class AssemblyQuestLoader reference26 = obj25; obj24.Steps = list36; reference25 = obj24; - ref QuestSequence reference27 = ref span8[7]; + num++; + ref QuestSequence reference27 = ref span25[num]; QuestSequence obj26 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list38)[0]; + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + ref QuestStep reference28 = ref span38[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2001669u, new Vector3(-11.12384f, 92.0271f, 17.166382f), 128); num3 = 1; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = new DialogueChoice + Span span39 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span39[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q4_000_1") @@ -36859,7 +44479,8 @@ public static class AssemblyQuestLoader reference28 = questStep3; obj26.Steps = list38; reference27 = obj26; - ref QuestSequence reference29 = ref span8[8]; + num++; + ref QuestSequence reference29 = ref span25[num]; QuestSequence obj27 = new QuestSequence { Sequence = 8 @@ -36867,35 +44488,41 @@ public static class AssemblyQuestLoader num2 = 2; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span13 = CollectionsMarshal.AsSpan(list40); - ref QuestStep reference30 = ref span13[0]; + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + ref QuestStep reference30 = ref span40[index2]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 1004434u, new Vector3(-27.17633f, 83.19998f, 2.304016f), 130) { Comment = "Ul'dah Arrivals Attendant" }; - num3 = 1; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = new DialogueChoice + index3 = 1; + List list41 = new List(index3); + CollectionsMarshal.SetCount(list41, index3); + Span span41 = CollectionsMarshal.AsSpan(list41); + num3 = 0; + span41[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q7_000_1") }; obj28.DialogueChoices = list41; reference30 = obj28; - span13[1] = new QuestStep(EInteractionType.Interact, 1004336u, new Vector3(-12.619263f, 82.99987f, 4.562378f), 130); + index2++; + span40[index2] = new QuestStep(EInteractionType.Interact, 1004336u, new Vector3(-12.619263f, 82.99987f, 4.562378f), 130); obj27.Steps = list40; reference29 = obj27; - ref QuestSequence reference31 = ref span8[9]; + num++; + ref QuestSequence reference31 = ref span25[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - Span span14 = CollectionsMarshal.AsSpan(list42); - ref QuestStep reference32 = ref span14[0]; + index2 = 3; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + ref QuestStep reference32 = ref span42[num2]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 1004339u, new Vector3(-25.986206f, 81.799995f, -31.99823f), 130) { TargetTerritoryId = (ushort)131 @@ -36903,7 +44530,9 @@ public static class AssemblyQuestLoader num3 = 1; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new DialogueChoice + Span span43 = CollectionsMarshal.AsSpan(list43); + index3 = 0; + span43[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -36911,11 +44540,13 @@ public static class AssemblyQuestLoader }; obj30.DialogueChoices = list43; reference32 = obj30; - span14[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span42[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule }; - span14[2] = new QuestStep(EInteractionType.CompleteQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); + num2++; + span42[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); obj29.Steps = list42; reference31 = obj29; questRoot4.QuestSequence = list25; @@ -36925,13 +44556,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + Span span44 = CollectionsMarshal.AsSpan(list44); + index = 0; + span44[index] = "liza"; questRoot5.Author = list44; - num = 3; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span15 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference33 = ref span15[0]; + index = 3; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + Span span45 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference33 = ref span45[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -36939,31 +44573,39 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj31.Steps = list46; reference33 = obj31; - ref QuestSequence reference34 = ref span15[1]; + num++; + ref QuestSequence reference34 = ref span45[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span16 = CollectionsMarshal.AsSpan(list47); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-316.29608f, 23.44405f, -345.24487f), 140) + index2 = 4; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-316.29608f, 23.44405f, -345.24487f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; - span16[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-396.50018f, 23f, -351.0944f), 140); - span16[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140) + num2++; + span47[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-396.50018f, 23f, -351.0944f), 140); + num2++; + span47[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140) { DisableNavmesh = true }; - span16[3] = new QuestStep(EInteractionType.Interact, 1004603u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); + num2++; + span47[num2] = new QuestStep(EInteractionType.Interact, 1004603u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); obj32.Steps = list47; reference34 = obj32; - ref QuestSequence reference35 = ref span15[2]; + num++; + ref QuestSequence reference35 = ref span45[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -36971,13 +44613,16 @@ public static class AssemblyQuestLoader num2 = 3; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span17 = CollectionsMarshal.AsSpan(list48); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-493.3852f, 21f, -382.50455f), 140); - span17[1] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-493.3852f, 21f, -382.50455f), 140); + index2++; + span48[index2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span17[2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); + index2++; + span48[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); obj33.Steps = list48; reference35 = obj33; questRoot5.QuestSequence = list45; @@ -36987,29 +44632,36 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "liza"; questRoot6.Author = list49; - num = 3; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span18 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference36 = ref span18[0]; + index = 3; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference36 = ref span50[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference37 = ref CollectionsMarshal.AsSpan(list51)[0]; + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + ref QuestStep reference37 = ref span51[num2]; QuestStep obj35 = new QuestStep(EInteractionType.AcceptQuest, 1003783u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212) { StopDistance = 5f }; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice + index3 = 1; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span52[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_MANFST207_00510_Q1_000_1"), @@ -37019,7 +44671,8 @@ public static class AssemblyQuestLoader reference37 = obj35; obj34.Steps = list51; reference36 = obj34; - ref QuestSequence reference38 = ref span18[1]; + num++; + ref QuestSequence reference38 = ref span50[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -37027,19 +44680,23 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1005119u, new Vector3(33.37146f, 1.1999971f, 6.454529f), 212); + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.Interact, 1005119u, new Vector3(33.37146f, 1.1999971f, 6.454529f), 212); obj36.Steps = list53; reference38 = obj36; - ref QuestSequence reference39 = ref span18[2]; + num++; + ref QuestSequence reference39 = ref span50[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 9; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - Span span19 = CollectionsMarshal.AsSpan(list54); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-64.84354f, -3.6581912f, 186.08156f), 141) + index2 = 9; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-64.84354f, -3.6581912f, 186.08156f), 141) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -37048,29 +44705,37 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfNald } }; - span19[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-62.2836f, -3.6582258f, 144.35869f), 141); - span19[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) + num2++; + span54[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-62.2836f, -3.6582258f, 144.35869f), 141); + num2++; + span54[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation }; - span19[3] = new QuestStep(EInteractionType.UnlockTaxiStand, 1001607u, new Vector3(-2.7314453f, -2.055717f, -158.52606f), 141) + num2++; + span54[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1001607u, new Vector3(-2.7314453f, -2.055717f, -158.52606f), 141) { TaxiStandId = (byte)14 }; - span19[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.0109f, -17.999832f, -183.1808f), 141) + num2++; + span54[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.0109f, -17.999832f, -183.1808f), 141) { TargetTerritoryId = (ushort)145 }; - span19[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.0189f, -37.96352f, 176.73677f), 145); - span19[6] = new QuestStep(EInteractionType.UnlockTaxiStand, 1003935u, new Vector3(-423.2395f, -39.060455f, 112.2301f), 145) + num2++; + span54[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.0189f, -37.96352f, 176.73677f), 145); + num2++; + span54[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1003935u, new Vector3(-423.2395f, -39.060455f, 112.2301f), 145) { TaxiStandId = (byte)15 }; - span19[7] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 145) + num2++; + span54[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 145) { Aetheryte = EAetheryteLocation.EasternThanalanCampDrybone }; - span19[8] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + num2++; + span54[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj37.Steps = list54; reference39 = obj37; questRoot6.QuestSequence = list50; @@ -37080,13 +44745,16 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; + Span span55 = CollectionsMarshal.AsSpan(list55); + index = 0; + span55[index] = "liza"; questRoot7.Author = list55; - num = 4; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span20 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference40 = ref span20[0]; + index = 4; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + Span span56 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference40 = ref span56[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -37094,30 +44762,37 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj38.Steps = list57; reference40 = obj38; - ref QuestSequence reference41 = ref span20[1]; + num++; + ref QuestSequence reference41 = ref span56[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - Span span21 = CollectionsMarshal.AsSpan(list58); - span21[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) + index2 = 3; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span21[1] = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) + num2++; + span58[num2] = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) { TargetTerritoryId = (ushort)140 }; - span21[2] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); + num2++; + span58[num2] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); obj39.Steps = list58; reference41 = obj39; - ref QuestSequence reference42 = ref span20[2]; + num++; + ref QuestSequence reference42 = ref span56[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -37125,8 +44800,9 @@ public static class AssemblyQuestLoader num2 = 3; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span22 = CollectionsMarshal.AsSpan(list59); - ref QuestStep reference43 = ref span22[0]; + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + ref QuestStep reference43 = ref span59[index2]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 2001691u, new Vector3(-5.294922f, 29.984009f, 20.675903f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -37139,42 +44815,58 @@ public static class AssemblyQuestLoader num3 = 6; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - Span span23 = CollectionsMarshal.AsSpan(list60); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span23[4] = null; - span23[5] = null; + Span span60 = CollectionsMarshal.AsSpan(list60); + index3 = 0; + span60[index3] = null; + index3++; + span60[index3] = null; + index3++; + span60[index3] = null; + index3++; + span60[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3++; + span60[index3] = null; + index3++; + span60[index3] = null; obj41.CompletionQuestVariablesFlags = list60; reference43 = obj41; - ref QuestStep reference44 = ref span22[1]; + index2++; + ref QuestStep reference44 = ref span59[index2]; QuestStep obj42 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; - num3 = 6; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span24 = CollectionsMarshal.AsSpan(list61); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span24[4] = null; - span24[5] = null; + index3 = 6; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; obj42.CompletionQuestVariablesFlags = list61; num3 = 1; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - CollectionsMarshal.AsSpan(list62)[0] = new DialogueChoice + Span span62 = CollectionsMarshal.AsSpan(list62); + index3 = 0; + span62[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST300_00511_Q1_000_1") }; obj42.DialogueChoices = list62; reference44 = obj42; - ref QuestStep reference45 = ref span22[2]; + index2++; + ref QuestStep reference45 = ref span59[index2]; QuestStep obj43 = new QuestStep(EInteractionType.Interact, 2001690u, new Vector3(-49.759705f, 7.003784f, -114.82416f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -37184,44 +44876,56 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - num3 = 6; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - Span span25 = CollectionsMarshal.AsSpan(list63); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span25[4] = null; - span25[5] = null; + index3 = 6; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + Span span63 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; obj43.CompletionQuestVariablesFlags = list63; reference45 = obj43; obj40.Steps = list59; reference42 = obj40; - ref QuestSequence reference46 = ref span20[3]; + num++; + ref QuestSequence reference46 = ref span56[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span26 = CollectionsMarshal.AsSpan(list64); - span26[0] = new QuestStep(EInteractionType.UseItem, null, null, 133) + index2 = 5; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.UseItem, null, null, 133) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span26[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span26[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span64[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span64[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span26[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num2++; + span64[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span26[4] = new QuestStep(EInteractionType.CompleteQuest, 1005122u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + num2++; + span64[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005122u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj44.Steps = list64; reference46 = obj44; questRoot7.QuestSequence = list56; @@ -37231,13 +44935,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + Span span65 = CollectionsMarshal.AsSpan(list65); + index = 0; + span65[index] = "liza"; questRoot8.Author = list65; - num = 2; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span27 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference47 = ref span27[0]; + index = 2; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + Span span66 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference47 = ref span66[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -37245,18 +44952,23 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005128u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005128u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj45.Steps = list67; reference47 = obj45; - ref QuestSequence reference48 = ref span27[1]; + num++; + ref QuestSequence reference48 = ref span66[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -37269,13 +44981,16 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "JerryWester"; + Span span69 = CollectionsMarshal.AsSpan(list69); + index = 0; + span69[index] = "JerryWester"; questRoot9.Author = list69; - num = 5; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span28 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference49 = ref span28[0]; + index = 5; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + Span span70 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference49 = ref span70[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -37283,7 +44998,9 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -37296,18 +45013,22 @@ public static class AssemblyQuestLoader }; obj47.Steps = list71; reference49 = obj47; - ref QuestSequence reference50 = ref span28[1]; + num++; + ref QuestSequence reference50 = ref span70[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1000393u, new Vector3(-89.463684f, 3.318795f, -168.9021f), 153); + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.Interact, 1000393u, new Vector3(-89.463684f, 3.318795f, -168.9021f), 153); obj48.Steps = list72; reference50 = obj48; - ref QuestSequence reference51 = ref span28[2]; + num++; + ref QuestSequence reference51 = ref span70[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -37315,7 +45036,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Duty, null, null, 153) + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.Duty, null, null, 153) { DutyOptions = new DutyOptions { @@ -37325,19 +45048,23 @@ public static class AssemblyQuestLoader }; obj49.Steps = list73; reference51 = obj49; - span28[3] = new QuestSequence + num++; + span70[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference52 = ref span28[4]; + num++; + ref QuestSequence reference52 = ref span70[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj50.Steps = list74; reference52 = obj50; questRoot9.QuestSequence = list70; @@ -37347,13 +45074,16 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "JerryWester"; + Span span75 = CollectionsMarshal.AsSpan(list75); + index = 0; + span75[index] = "JerryWester"; questRoot10.Author = list75; - num = 3; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span29 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference53 = ref span29[0]; + index = 3; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + Span span76 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference53 = ref span76[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -37361,18 +45091,23 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj51.Steps = list77; reference53 = obj51; - ref QuestSequence reference54 = ref span29[1]; + num++; + ref QuestSequence reference54 = ref span76[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -37383,7 +45118,8 @@ public static class AssemblyQuestLoader }; obj52.Steps = list78; reference54 = obj52; - ref QuestSequence reference55 = ref span29[2]; + num++; + ref QuestSequence reference55 = ref span76[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -37391,7 +45127,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135) + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135) { AethernetShortcut = new AethernetShortcut { @@ -37408,21 +45146,26 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "JerryWester"; + Span span80 = CollectionsMarshal.AsSpan(list80); + index = 0; + span80[index] = "JerryWester"; questRoot11.Author = list80; - num = 5; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span30 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference56 = ref span30[0]; + index = 5; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + Span span81 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference56 = ref span81[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006343u, new Vector3(427.63403f, 4.115109f, 85.92346f), 139) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006343u, new Vector3(427.63403f, 4.115109f, 85.92346f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -37435,7 +45178,8 @@ public static class AssemblyQuestLoader }; obj54.Steps = list82; reference56 = obj54; - ref QuestSequence reference57 = ref span30[1]; + num++; + ref QuestSequence reference57 = ref span81[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -37443,7 +45187,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -37454,28 +45200,33 @@ public static class AssemblyQuestLoader }; obj55.Steps = list83; reference57 = obj55; - ref QuestSequence reference58 = ref span30[2]; + num++; + ref QuestSequence reference58 = ref span81[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - Span span31 = CollectionsMarshal.AsSpan(list84); - span31[0] = new QuestStep(EInteractionType.UseItem, null, null, 128) + index2 = 3; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.UseItem, null, null, 128) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span31[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span31[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span84[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span84[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; obj56.Steps = list84; reference58 = obj56; - ref QuestSequence reference59 = ref span30[3]; + num++; + ref QuestSequence reference59 = ref span81[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 @@ -37483,23 +45234,28 @@ public static class AssemblyQuestLoader num2 = 2; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span32 = CollectionsMarshal.AsSpan(list85); - span32[0] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span32[1] = new QuestStep(EInteractionType.Interact, 1007467u, new Vector3(36.057007f, 0.32037354f, -1.5411987f), 212); + index2++; + span85[index2] = new QuestStep(EInteractionType.Interact, 1007467u, new Vector3(36.057007f, 0.32037354f, -1.5411987f), 212); obj57.Steps = list85; reference59 = obj57; - ref QuestSequence reference60 = ref span30[4]; + num++; + ref QuestSequence reference60 = ref span81[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list86)[0]; + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + ref QuestStep reference61 = ref span86[num2]; QuestStep obj59 = new QuestStep(EInteractionType.CompleteQuest, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone @@ -37507,7 +45263,9 @@ public static class AssemblyQuestLoader num3 = 1; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = new DialogueChoice + Span span87 = CollectionsMarshal.AsSpan(list87); + index3 = 0; + span87[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_MANFST313_00517_Q1_000_050"), @@ -37524,13 +45282,16 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "JerryWester"; + Span span88 = CollectionsMarshal.AsSpan(list88); + index = 0; + span88[index] = "JerryWester"; questRoot12.Author = list88; - num = 4; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span33 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference62 = ref span33[0]; + index = 4; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + Span span89 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference62 = ref span89[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -37538,7 +45299,9 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145) + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -37551,28 +45314,34 @@ public static class AssemblyQuestLoader }; obj60.Steps = list90; reference62 = obj60; - ref QuestSequence reference63 = ref span33[1]; + num++; + ref QuestSequence reference63 = ref span89[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list91)[0]; + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + ref QuestStep reference64 = ref span91[num2]; QuestStep obj62 = new QuestStep(EInteractionType.Combat, 2002105u, new Vector3(-444.419f, -27.237366f, 15.945618f), 145) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = 1902u; + index3 = 1; + List list92 = new List(index3); + CollectionsMarshal.SetCount(list92, index3); + Span span92 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span92[num3] = 1902u; obj62.KillEnemyDataIds = list92; reference64 = obj62; obj61.Steps = list91; reference63 = obj61; - ref QuestSequence reference65 = ref span33[2]; + num++; + ref QuestSequence reference65 = ref span89[num]; QuestSequence obj63 = new QuestSequence { Sequence = 2 @@ -37580,18 +45349,23 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145); + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.Interact, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145); obj63.Steps = list93; reference65 = obj63; - ref QuestSequence reference66 = ref span33[3]; + num++; + ref QuestSequence reference66 = ref span89[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145); obj64.Steps = list94; reference66 = obj64; questRoot12.QuestSequence = list89; @@ -37601,15 +45375,18 @@ public static class AssemblyQuestLoader num = 2; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - Span span34 = CollectionsMarshal.AsSpan(list95); - span34[0] = "JerryWester"; - span34[1] = "Wigglez"; + Span span95 = CollectionsMarshal.AsSpan(list95); + index = 0; + span95[index] = "JerryWester"; + index++; + span95[index] = "Wigglez"; questRoot13.Author = list95; - num = 5; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - Span span35 = CollectionsMarshal.AsSpan(list96); - ref QuestSequence reference67 = ref span35[0]; + index = 5; + List list96 = new List(index); + CollectionsMarshal.SetCount(list96, index); + Span span96 = CollectionsMarshal.AsSpan(list96); + num = 0; + ref QuestSequence reference67 = ref span96[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -37617,19 +45394,23 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132); + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132); obj65.Steps = list97; reference67 = obj65; - ref QuestSequence reference68 = ref span35[1]; + num++; + ref QuestSequence reference68 = ref span96[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - Span span36 = CollectionsMarshal.AsSpan(list98); - ref QuestStep reference69 = ref span36[0]; + index2 = 4; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + ref QuestStep reference69 = ref span98[num2]; QuestStep obj67 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.821457f, -19.000002f, 103.27891f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania @@ -37639,64 +45420,80 @@ public static class AssemblyQuestLoader num3 = 1; List list99 = new List(num3); CollectionsMarshal.SetCount(list99, num3); - CollectionsMarshal.AsSpan(list99)[0] = 331; + Span span99 = CollectionsMarshal.AsSpan(list99); + index3 = 0; + span99[index3] = 331; skipStepConditions.InTerritory = list99; skipConditions2.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = 331; + index3 = 1; + List list100 = new List(index3); + CollectionsMarshal.SetCount(list100, index3); + Span span100 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span100[num3] = 331; skipAetheryteCondition.InTerritory = list100; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; obj67.SkipConditions = skipConditions2; reference69 = obj67; - ref QuestStep reference70 = ref span36[1]; + num2++; + ref QuestStep reference70 = ref span98[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1000106u, null, 132); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 1; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = 331; + Span span101 = CollectionsMarshal.AsSpan(list101); + index3 = 0; + span101[index3] = 331; skipStepConditions2.InTerritory = list101; skipConditions3.StepIf = skipStepConditions2; questStep4.SkipConditions = skipConditions3; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = new DialogueChoice + index3 = 1; + List list102 = new List(index3); + CollectionsMarshal.SetCount(list102, index3); + Span span102 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span102[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST404_00519_Q3_000_032") }; questStep4.DialogueChoices = list102; reference70 = questStep4; - ref QuestStep reference71 = ref span36[2]; + num2++; + ref QuestStep reference71 = ref span98[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); num3 = 1; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = 331; + Span span103 = CollectionsMarshal.AsSpan(list103); + index3 = 0; + span103[index3] = 331; skipStepConditions3.InTerritory = list103; skipConditions4.StepIf = skipStepConditions3; questStep5.SkipConditions = skipConditions4; - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new DialogueChoice + index3 = 1; + List list104 = new List(index3); + CollectionsMarshal.SetCount(list104, index3); + Span span104 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span104[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST404_00519_Q2_000_031") }; questStep5.DialogueChoices = list104; reference71 = questStep5; - span36[3] = new QuestStep(EInteractionType.Interact, 1007690u, new Vector3(-84.58081f, -0.6225241f, -35.568848f), 331); + num2++; + span98[num2] = new QuestStep(EInteractionType.Interact, 1007690u, new Vector3(-84.58081f, -0.6225241f, -35.568848f), 331); obj66.Steps = list98; reference68 = obj66; - ref QuestSequence reference72 = ref span35[2]; + num++; + ref QuestSequence reference72 = ref span96[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -37704,7 +45501,9 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Duty, null, null, 331) + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.Duty, null, null, 331) { DutyOptions = new DutyOptions { @@ -37714,19 +45513,23 @@ public static class AssemblyQuestLoader }; obj68.Steps = list105; reference72 = obj68; - span35[3] = new QuestSequence + num++; + span96[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference73 = ref span35[4]; + num++; + ref QuestSequence reference73 = ref span96[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006730u, new Vector3(-44.63269f, 84f, -3.768982f), 130) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006730u, new Vector3(-44.63269f, 84f, -3.768982f), 130) { StopDistance = 7f }; @@ -37739,13 +45542,16 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "JerryWester"; + Span span107 = CollectionsMarshal.AsSpan(list107); + index = 0; + span107[index] = "JerryWester"; questRoot14.Author = list107; - num = 2; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span37 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference74 = ref span37[0]; + index = 2; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + Span span108 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference74 = ref span108[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 @@ -37753,32 +45559,39 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006730u, new Vector3(-44.63269f, 84f, -3.768982f), 130) + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006730u, new Vector3(-44.63269f, 84f, -3.768982f), 130) { StopDistance = 7f }; obj70.Steps = list109; reference74 = obj70; - ref QuestSequence reference75 = ref span37[1]; + num++; + ref QuestSequence reference75 = ref span108[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span38 = CollectionsMarshal.AsSpan(list110); - span38[0] = new QuestStep(EInteractionType.UseItem, null, null, 128) + index2 = 4; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span110[num2] = new QuestStep(EInteractionType.UseItem, null, null, 128) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span38[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span110[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span110[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span38[3] = new QuestStep(EInteractionType.CompleteQuest, 1007630u, new Vector3(22.812195f, 0.9999986f, 2.1820068f), 212); + num2++; + span110[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007630u, new Vector3(22.812195f, 0.9999986f, 2.1820068f), 212); obj71.Steps = list110; reference75 = obj71; questRoot14.QuestSequence = list108; @@ -37788,13 +45601,16 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "JerryWester"; + Span span111 = CollectionsMarshal.AsSpan(list111); + index = 0; + span111[index] = "JerryWester"; questRoot15.Author = list111; - num = 8; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span39 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference76 = ref span39[0]; + index = 8; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + Span span112 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference76 = ref span112[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -37802,36 +45618,44 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); obj72.Steps = list113; reference76 = obj72; - ref QuestSequence reference77 = ref span39[1]; + num++; + ref QuestSequence reference77 = ref span112[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span40 = CollectionsMarshal.AsSpan(list114); - span40[0] = new QuestStep(EInteractionType.EquipItem, null, null, 156) + index2 = 4; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 156) { Comment = "Can be re-bought from Glaumunt in Mor Dhona", ItemId = 6223u }; - span40[1] = new QuestStep(EInteractionType.EquipItem, null, null, 156) + num2++; + span114[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 156) { Comment = "Can be re-bought from Glaumunt in Mor Dhona", ItemId = 6224u }; - span40[2] = new QuestStep(EInteractionType.Interact, 2002502u, new Vector3(0.7476196f, -156.93909f, 16.281311f), 156) + num2++; + span114[num2] = new QuestStep(EInteractionType.Interact, 2002502u, new Vector3(0.7476196f, -156.93909f, 16.281311f), 156) { TargetTerritoryId = (ushort)156 }; - span40[3] = new QuestStep(EInteractionType.Interact, 1007537u, new Vector3(-358.23608f, -16.248493f, -481.13226f), 156); + num2++; + span114[num2] = new QuestStep(EInteractionType.Interact, 1007537u, new Vector3(-358.23608f, -16.248493f, -481.13226f), 156); obj73.Steps = list114; reference77 = obj73; - ref QuestSequence reference78 = ref span39[2]; + num++; + ref QuestSequence reference78 = ref span112[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -37839,39 +45663,46 @@ public static class AssemblyQuestLoader num2 = 3; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span41 = CollectionsMarshal.AsSpan(list115); - span41[0] = new QuestStep(EInteractionType.Emote, 1006568u, new Vector3(-559.3805f, -1.9197596f, -318.349f), 335) + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.Emote, 1006568u, new Vector3(-559.3805f, -1.9197596f, -318.349f), 335) { Emote = EEmote.ImperialSalute }; - span41[1] = new QuestStep(EInteractionType.Emote, 1006567u, new Vector3(-532.2195f, -1.9197612f, -284.50446f), 335) + index2++; + span115[index2] = new QuestStep(EInteractionType.Emote, 1006567u, new Vector3(-532.2195f, -1.9197612f, -284.50446f), 335) { Emote = EEmote.ImperialSalute }; - span41[2] = new QuestStep(EInteractionType.Emote, 1006569u, new Vector3(-491.44736f, -3.9312067f, -300.8011f), 335) + index2++; + span115[index2] = new QuestStep(EInteractionType.Emote, 1006569u, new Vector3(-491.44736f, -3.9312067f, -300.8011f), 335) { Emote = EEmote.ImperialSalute }; obj74.Steps = list115; reference78 = obj74; - ref QuestSequence reference79 = ref span39[3]; + num++; + ref QuestSequence reference79 = ref span112[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - Span span42 = CollectionsMarshal.AsSpan(list116); - span42[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-530.1089f, -3.3262053f, -308.2147f), 335); - span42[1] = new QuestStep(EInteractionType.Emote, 1007611u, new Vector3(-536.4004f, -1.9197441f, -308.00336f), 335) + index2 = 2; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-530.1089f, -3.3262053f, -308.2147f), 335); + num2++; + span116[num2] = new QuestStep(EInteractionType.Emote, 1007611u, new Vector3(-536.4004f, -1.9197441f, -308.00336f), 335) { StopDistance = 7f, Emote = EEmote.ImperialSalute }; obj75.Steps = list116; reference79 = obj75; - ref QuestSequence reference80 = ref span39[4]; + num++; + ref QuestSequence reference80 = ref span112[num]; QuestSequence obj76 = new QuestSequence { Sequence = 4 @@ -37879,36 +45710,45 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1006562u, new Vector3(-495.964f, -3.7679372f, -288.1667f), 335); + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.Interact, 1006562u, new Vector3(-495.964f, -3.7679372f, -288.1667f), 335); obj76.Steps = list117; reference80 = obj76; - ref QuestSequence reference81 = ref span39[5]; + num++; + ref QuestSequence reference81 = ref span112[num]; QuestSequence obj77 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span43 = CollectionsMarshal.AsSpan(list118); - span43[0] = new QuestStep(EInteractionType.EquipRecommended, null, new Vector3(-427.75616f, -0.77819824f, -273.82324f), 335); - ref QuestStep reference82 = ref span43[1]; + index2 = 2; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.EquipRecommended, null, new Vector3(-427.75616f, -0.77819824f, -273.82324f), 335); + num2++; + ref QuestStep reference82 = ref span118[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.SinglePlayerDuty, 2002376u, new Vector3(-427.75616f, -0.77819824f, -273.82324f), 335); SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); num3 = 1; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = "(outside) Doesn't use obstacle maps or vnav to move to the shield generators, gets stuck on the big crates"; + Span span119 = CollectionsMarshal.AsSpan(list119); + index3 = 0; + span119[index3] = "(outside) Doesn't use obstacle maps or vnav to move to the shield generators, gets stuck on the big crates"; singlePlayerDutyOptions.Notes = list119; questStep6.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference82 = questStep6; obj77.Steps = list118; reference81 = obj77; - span39[6] = new QuestSequence + num++; + span112[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference83 = ref span39[7]; + num++; + ref QuestSequence reference83 = ref span112[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -37916,7 +45756,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006573u, new Vector3(-43.717102f, 84f, 2.1514893f), 130) + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006573u, new Vector3(-43.717102f, 84f, 2.1514893f), 130) { StopDistance = 5f }; @@ -37929,27 +45771,33 @@ public static class AssemblyQuestLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "JerryWester"; + Span span121 = CollectionsMarshal.AsSpan(list121); + index = 0; + span121[index] = "JerryWester"; questRoot16.Author = list121; - num = 3; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - Span span44 = CollectionsMarshal.AsSpan(list122); - ref QuestSequence reference84 = ref span44[0]; + index = 3; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + Span span122 = CollectionsMarshal.AsSpan(list122); + num = 0; + ref QuestSequence reference84 = ref span122[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006573u, new Vector3(-43.717102f, 84f, 2.1514893f), 130) + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span123[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006573u, new Vector3(-43.717102f, 84f, 2.1514893f), 130) { StopDistance = 5f }; obj79.Steps = list123; reference84 = obj79; - ref QuestSequence reference85 = ref span44[1]; + num++; + ref QuestSequence reference85 = ref span122[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -37957,7 +45805,9 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) + Span span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span124[index2] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -37975,30 +45825,36 @@ public static class AssemblyQuestLoader }; obj80.Steps = list124; reference85 = obj80; - ref QuestSequence reference86 = ref span44[2]; + num++; + ref QuestSequence reference86 = ref span122[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - Span span45 = CollectionsMarshal.AsSpan(list125); - span45[0] = new QuestStep(EInteractionType.UseItem, null, null, 128) + index2 = 5; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span125[num2] = new QuestStep(EInteractionType.UseItem, null, null, 128) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span45[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span45[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span125[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span125[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span45[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num2++; + span125[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span45[4] = new QuestStep(EInteractionType.CompleteQuest, 1006690u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); + num2++; + span125[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006690u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); obj81.Steps = list125; reference86 = obj81; questRoot16.QuestSequence = list122; @@ -38008,13 +45864,16 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "liza"; + Span span126 = CollectionsMarshal.AsSpan(list126); + index = 0; + span126[index] = "liza"; questRoot17.Author = list126; - num = 10; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span46 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference87 = ref span46[0]; + index = 10; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + Span span127 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference87 = ref span127[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 @@ -38022,21 +45881,27 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004004u, new Vector3(-139.29962f, 4.1f, -113.481445f), 130); + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span128[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004004u, new Vector3(-139.29962f, 4.1f, -113.481445f), 130); obj82.Steps = list128; reference87 = obj82; - ref QuestSequence reference88 = ref span46[1]; + num++; + ref QuestSequence reference88 = ref span127[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span129[num2] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj83.Steps = list129; reference88 = obj83; - ref QuestSequence reference89 = ref span46[2]; + num++; + ref QuestSequence reference89 = ref span127[num]; QuestSequence obj84 = new QuestSequence { Sequence = 2 @@ -38044,7 +45909,9 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - ref QuestStep reference90 = ref CollectionsMarshal.AsSpan(list130)[0]; + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + ref QuestStep reference90 = ref span130[index2]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 1004433u, new Vector3(-23.605713f, 83.19999f, -2.3041382f), 130) { AethernetShortcut = new AethernetShortcut @@ -38053,10 +45920,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAirship } }; - num3 = 1; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - CollectionsMarshal.AsSpan(list131)[0] = new DialogueChoice + index3 = 1; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + Span span131 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span131[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q1_000_1") @@ -38065,20 +45934,25 @@ public static class AssemblyQuestLoader reference90 = obj85; obj84.Steps = list130; reference89 = obj84; - ref QuestSequence reference91 = ref span46[3]; + num++; + ref QuestSequence reference91 = ref span127[num]; QuestSequence obj86 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - ref QuestStep reference92 = ref CollectionsMarshal.AsSpan(list132)[0]; + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + ref QuestStep reference92 = ref span132[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2001667u, new Vector3(-45.365112f, 84.09241f, -0.80877686f), 130); num3 = 1; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = new DialogueChoice + Span span133 = CollectionsMarshal.AsSpan(list133); + index3 = 0; + span133[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q2_000_1") @@ -38087,7 +45961,8 @@ public static class AssemblyQuestLoader reference92 = questStep7; obj86.Steps = list132; reference91 = obj86; - ref QuestSequence reference93 = ref span46[4]; + num++; + ref QuestSequence reference93 = ref span127[num]; QuestSequence obj87 = new QuestSequence { Sequence = 4 @@ -38095,32 +45970,38 @@ public static class AssemblyQuestLoader num2 = 2; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span47 = CollectionsMarshal.AsSpan(list134); - ref QuestStep reference94 = ref span47[0]; + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + ref QuestStep reference94 = ref span134[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1002703u, new Vector3(-12.375122f, 91.499985f, -0.5340576f), 128); - num3 = 1; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = new DialogueChoice + index3 = 1; + List list135 = new List(index3); + CollectionsMarshal.SetCount(list135, index3); + Span span135 = CollectionsMarshal.AsSpan(list135); + num3 = 0; + span135[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q7_000_1") }; questStep8.DialogueChoices = list135; reference94 = questStep8; - span47[1] = new QuestStep(EInteractionType.Interact, 1002693u, new Vector3(-6.515625f, 91.49996f, -13.656921f), 128); + index2++; + span134[index2] = new QuestStep(EInteractionType.Interact, 1002693u, new Vector3(-6.515625f, 91.49996f, -13.656921f), 128); obj87.Steps = list134; reference93 = obj87; - ref QuestSequence reference95 = ref span46[5]; + num++; + ref QuestSequence reference95 = ref span127[num]; QuestSequence obj88 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span48 = CollectionsMarshal.AsSpan(list136); - ref QuestStep reference96 = ref span48[0]; + index2 = 2; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + ref QuestStep reference96 = ref span136[num2]; QuestStep obj89 = new QuestStep(EInteractionType.Interact, 1003583u, new Vector3(-7.248047f, 91.49999f, -16.128845f), 128) { TargetTerritoryId = (ushort)129 @@ -38128,7 +46009,9 @@ public static class AssemblyQuestLoader num3 = 1; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - CollectionsMarshal.AsSpan(list137)[0] = new DialogueChoice + Span span137 = CollectionsMarshal.AsSpan(list137); + index3 = 0; + span137[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -38136,10 +46019,12 @@ public static class AssemblyQuestLoader }; obj89.DialogueChoices = list137; reference96 = obj89; - span48[1] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); + num2++; + span136[num2] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); obj88.Steps = list136; reference95 = obj88; - ref QuestSequence reference97 = ref span46[6]; + num++; + ref QuestSequence reference97 = ref span127[num]; QuestSequence obj90 = new QuestSequence { Sequence = 6 @@ -38147,24 +46032,29 @@ public static class AssemblyQuestLoader num2 = 10; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span49 = CollectionsMarshal.AsSpan(list138); - span49[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) + Span span138 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span138[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - span49[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) + index2++; + span138[index2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - span49[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span138[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaHawkersAlley }; - span49[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span138[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaArcanist }; - span49[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + index2++; + span138[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaFisher, AethernetShortcut = new AethernetShortcut @@ -38173,7 +46063,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaHawkersAlley } }; - span49[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) + index2++; + span138[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) { TargetTerritoryId = (ushort)128, Comment = "Walk to Culinarians' Guild", @@ -38183,19 +46074,23 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Limsa } }; - span49[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span138[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaCulinarian }; - span49[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span138[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaMarauder }; - span49[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + index2++; + span138[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaAftcastle }; - ref QuestStep reference98 = ref span49[9]; + index2++; + ref QuestStep reference98 = ref span138[index2]; QuestStep obj91 = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128) { AethernetShortcut = new AethernetShortcut @@ -38204,10 +46099,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAirship } }; - num3 = 1; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - CollectionsMarshal.AsSpan(list139)[0] = new DialogueChoice + index3 = 1; + List list139 = new List(index3); + CollectionsMarshal.SetCount(list139, index3); + Span span139 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span139[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q3_000_1") @@ -38216,20 +46113,25 @@ public static class AssemblyQuestLoader reference98 = obj91; obj90.Steps = list138; reference97 = obj90; - ref QuestSequence reference99 = ref span46[7]; + num++; + ref QuestSequence reference99 = ref span127[num]; QuestSequence obj92 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - ref QuestStep reference100 = ref CollectionsMarshal.AsSpan(list140)[0]; + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + ref QuestStep reference100 = ref span140[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2001670u, new Vector3(-11.12384f, 92.0271f, 17.166382f), 128); num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = new DialogueChoice + Span span141 = CollectionsMarshal.AsSpan(list141); + index3 = 0; + span141[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q4_000_1") @@ -38238,7 +46140,8 @@ public static class AssemblyQuestLoader reference100 = questStep9; obj92.Steps = list140; reference99 = obj92; - ref QuestSequence reference101 = ref span46[8]; + num++; + ref QuestSequence reference101 = ref span127[num]; QuestSequence obj93 = new QuestSequence { Sequence = 8 @@ -38246,47 +46149,56 @@ public static class AssemblyQuestLoader num2 = 2; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span50 = CollectionsMarshal.AsSpan(list142); - ref QuestStep reference102 = ref span50[0]; + Span span142 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + ref QuestStep reference102 = ref span142[index2]; QuestStep obj94 = new QuestStep(EInteractionType.Interact, 1000109u, new Vector3(29.770264f, -19.000002f, 114.12219f), 132) { Comment = "Gridania Arrivals Attendant" }; - num3 = 1; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = new DialogueChoice + index3 = 1; + List list143 = new List(index3); + CollectionsMarshal.SetCount(list143, index3); + Span span143 = CollectionsMarshal.AsSpan(list143); + num3 = 0; + span143[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q10_000_1") }; obj94.DialogueChoices = list143; reference102 = obj94; - span50[1] = new QuestStep(EInteractionType.Interact, 1002830u, new Vector3(36.63684f, -18.800003f, 89.64673f), 132); + index2++; + span142[index2] = new QuestStep(EInteractionType.Interact, 1002830u, new Vector3(36.63684f, -18.800003f, 89.64673f), 132); obj93.Steps = list142; reference101 = obj93; - ref QuestSequence reference103 = ref span46[9]; + num++; + ref QuestSequence reference103 = ref span127[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 12; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - Span span51 = CollectionsMarshal.AsSpan(list144); - span51[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) + index2 = 12; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - span51[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) + num2++; + span144[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - span51[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + num2++; + span144[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - span51[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.761639f, 1.2659149f, -18.021421f), 132) + num2++; + span144[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.761639f, 1.2659149f, -18.021421f), 132) { TargetTerritoryId = (ushort)133, AethernetShortcut = new AethernetShortcut @@ -38295,16 +46207,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Gridania } }; - span51[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span144[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - span51[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); - span51[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span144[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); + num2++; + span144[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - span51[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span144[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -38313,12 +46229,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - span51[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); - span51[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span144[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); + num2++; + span144[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - span51[10] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span144[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -38327,7 +46246,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - span51[11] = new QuestStep(EInteractionType.CompleteQuest, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); + num2++; + span144[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); obj95.Steps = list144; reference103 = obj95; questRoot17.QuestSequence = list127; @@ -38337,13 +46257,16 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "Cacahuetes"; + Span span145 = CollectionsMarshal.AsSpan(list145); + index = 0; + span145[index] = "Cacahuetes"; questRoot18.Author = list145; - num = 2; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span52 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference104 = ref span52[0]; + index = 2; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + Span span146 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference104 = ref span146[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -38351,7 +46274,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -38364,20 +46289,25 @@ public static class AssemblyQuestLoader }; obj96.Steps = list147; reference104 = obj96; - ref QuestSequence reference105 = ref span52[1]; + num++; + ref QuestSequence reference105 = ref span146[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - ref QuestStep reference106 = ref CollectionsMarshal.AsSpan(list148)[0]; + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + ref QuestStep reference106 = ref span148[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); num3 = 1; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = new DialogueChoice + Span span149 = CollectionsMarshal.AsSpan(list149); + index3 = 0; + span149[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSPGL011_00532_Q1_000_1") @@ -38394,15 +46324,18 @@ public static class AssemblyQuestLoader num = 2; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - Span span53 = CollectionsMarshal.AsSpan(list150); - span53[0] = "liza"; - span53[1] = "plogon_enjoyer"; + Span span150 = CollectionsMarshal.AsSpan(list150); + index = 0; + span150[index] = "liza"; + index++; + span150[index] = "plogon_enjoyer"; questRoot19.Author = list150; - num = 4; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span54 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference107 = ref span54[0]; + index = 4; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + Span span151 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference107 = ref span151[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 @@ -38410,8 +46343,9 @@ public static class AssemblyQuestLoader num2 = 2; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span55 = CollectionsMarshal.AsSpan(list152); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-86.589775f, 2.099846f, -51.574f), 130) + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span152[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-86.589775f, 2.099846f, -51.574f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -38422,23 +46356,29 @@ public static class AssemblyQuestLoader } } }; - span55[1] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130); + index2++; + span152[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130); obj98.Steps = list152; reference107 = obj98; - ref QuestSequence reference108 = ref span54[1]; + num++; + ref QuestSequence reference108 = ref span151[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - ref QuestStep reference109 = ref CollectionsMarshal.AsSpan(list153)[0]; + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + ref QuestStep reference109 = ref span153[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); - num3 = 1; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = new DialogueChoice + index3 = 1; + List list154 = new List(index3); + CollectionsMarshal.SetCount(list154, index3); + Span span154 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span154[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSPGL020_00533_Q1_000_1") @@ -38447,7 +46387,8 @@ public static class AssemblyQuestLoader reference109 = questStep11; obj99.Steps = list153; reference108 = obj99; - ref QuestSequence reference110 = ref span54[2]; + num++; + ref QuestSequence reference110 = ref span151[num]; QuestSequence obj100 = new QuestSequence { Sequence = 2 @@ -38455,8 +46396,9 @@ public static class AssemblyQuestLoader num2 = 3; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span56 = CollectionsMarshal.AsSpan(list155); - ref QuestStep reference111 = ref span56[0]; + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + ref QuestStep reference111 = ref span155[index2]; QuestStep obj101 = new QuestStep(EInteractionType.Combat, null, new Vector3(-126.59337f, 11.159969f, 276.25775f), 141) { AethernetShortcut = new AethernetShortcut @@ -38469,7 +46411,9 @@ public static class AssemblyQuestLoader num3 = 1; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - ref ComplexCombatData reference112 = ref CollectionsMarshal.AsSpan(list156)[0]; + Span span156 = CollectionsMarshal.AsSpan(list156); + index3 = 0; + ref ComplexCombatData reference112 = ref span156[index3]; ComplexCombatData obj102 = new ComplexCombatData { DataId = 351u, @@ -38478,29 +46422,42 @@ public static class AssemblyQuestLoader int num4 = 6; List list157 = new List(num4); CollectionsMarshal.SetCount(list157, num4); - Span span57 = CollectionsMarshal.AsSpan(list157); - span57[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = null; + Span span157 = CollectionsMarshal.AsSpan(list157); + int num5 = 0; + span157[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span157[num5] = null; + num5++; + span157[num5] = null; + num5++; + span157[num5] = null; + num5++; + span157[num5] = null; + num5++; + span157[num5] = null; obj102.CompletionQuestVariablesFlags = list157; reference112 = obj102; obj101.ComplexCombatData = list156; - num3 = 6; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - Span span58 = CollectionsMarshal.AsSpan(list158); - span58[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = null; + index3 = 6; + List list158 = new List(index3); + CollectionsMarshal.SetCount(list158, index3); + Span span158 = CollectionsMarshal.AsSpan(list158); + num3 = 0; + span158[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span158[num3] = null; + num3++; + span158[num3] = null; + num3++; + span158[num3] = null; + num3++; + span158[num3] = null; + num3++; + span158[num3] = null; obj101.CompletionQuestVariablesFlags = list158; reference111 = obj101; - ref QuestStep reference113 = ref span56[1]; + index2++; + ref QuestStep reference113 = ref span155[index2]; QuestStep obj103 = new QuestStep(EInteractionType.Combat, null, new Vector3(-126.59337f, 11.159969f, 276.25775f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -38508,38 +46465,53 @@ public static class AssemblyQuestLoader num3 = 1; List list159 = new List(num3); CollectionsMarshal.SetCount(list159, num3); - ref ComplexCombatData reference114 = ref CollectionsMarshal.AsSpan(list159)[0]; + Span span159 = CollectionsMarshal.AsSpan(list159); + index3 = 0; + ref ComplexCombatData reference114 = ref span159[index3]; ComplexCombatData obj104 = new ComplexCombatData { DataId = 385u, MinimumKillCount = 3u }; - num4 = 6; - List list160 = new List(num4); - CollectionsMarshal.SetCount(list160, num4); - Span span59 = CollectionsMarshal.AsSpan(list160); - span59[0] = null; - span59[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = null; + num5 = 6; + List list160 = new List(num5); + CollectionsMarshal.SetCount(list160, num5); + Span span160 = CollectionsMarshal.AsSpan(list160); + num4 = 0; + span160[num4] = null; + num4++; + span160[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span160[num4] = null; + num4++; + span160[num4] = null; + num4++; + span160[num4] = null; + num4++; + span160[num4] = null; obj104.CompletionQuestVariablesFlags = list160; reference114 = obj104; obj103.ComplexCombatData = list159; - num3 = 6; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - Span span60 = CollectionsMarshal.AsSpan(list161); - span60[0] = null; - span60[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = null; + index3 = 6; + List list161 = new List(index3); + CollectionsMarshal.SetCount(list161, index3); + Span span161 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + span161[num3] = null; + num3++; + span161[num3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; obj103.CompletionQuestVariablesFlags = list161; reference113 = obj103; - ref QuestStep reference115 = ref span56[2]; + index2++; + ref QuestStep reference115 = ref span155[index2]; QuestStep obj105 = new QuestStep(EInteractionType.Combat, null, new Vector3(32.007893f, 5.8527403f, 299.76016f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -38547,7 +46519,9 @@ public static class AssemblyQuestLoader num3 = 1; List list162 = new List(num3); CollectionsMarshal.SetCount(list162, num3); - ref ComplexCombatData reference116 = ref CollectionsMarshal.AsSpan(list162)[0]; + Span span162 = CollectionsMarshal.AsSpan(list162); + index3 = 0; + ref ComplexCombatData reference116 = ref span162[index3]; ComplexCombatData obj106 = new ComplexCombatData { DataId = 205u, @@ -38556,39 +46530,54 @@ public static class AssemblyQuestLoader num4 = 6; List list163 = new List(num4); CollectionsMarshal.SetCount(list163, num4); - Span span61 = CollectionsMarshal.AsSpan(list163); - span61[0] = null; - span61[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = null; + Span span163 = CollectionsMarshal.AsSpan(list163); + num5 = 0; + span163[num5] = null; + num5++; + span163[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span163[num5] = null; + num5++; + span163[num5] = null; + num5++; + span163[num5] = null; + num5++; + span163[num5] = null; obj106.CompletionQuestVariablesFlags = list163; reference116 = obj106; obj105.ComplexCombatData = list162; - num3 = 6; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - Span span62 = CollectionsMarshal.AsSpan(list164); - span62[0] = null; - span62[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = null; + index3 = 6; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + Span span164 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span164[num3] = null; + num3++; + span164[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = null; obj105.CompletionQuestVariablesFlags = list164; reference115 = obj105; obj100.Steps = list155; reference110 = obj100; - ref QuestSequence reference117 = ref span54[3]; + num++; + ref QuestSequence reference117 = ref span151[num]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span165[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(554) @@ -38602,13 +46591,16 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "Cacahuetes"; + Span span166 = CollectionsMarshal.AsSpan(list166); + index = 0; + span166[index] = "Cacahuetes"; questRoot20.Author = list166; - num = 2; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - Span span63 = CollectionsMarshal.AsSpan(list167); - ref QuestSequence reference118 = ref span63[0]; + index = 2; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + Span span167 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference118 = ref span167[num]; QuestSequence obj108 = new QuestSequence { Sequence = 0 @@ -38616,23 +46608,30 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002283u, new Vector3(134.90503f, 7.5919275f, 98.039185f), 131); + Span span168 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span168[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002283u, new Vector3(134.90503f, 7.5919275f, 98.039185f), 131); obj108.Steps = list168; reference118 = obj108; - ref QuestSequence reference119 = ref span63[1]; + num++; + ref QuestSequence reference119 = ref span167[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - ref QuestStep reference120 = ref CollectionsMarshal.AsSpan(list169)[0]; + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + Span span169 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + ref QuestStep reference120 = ref span169[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.CompleteQuest, 1003818u, new Vector3(157.36621f, 7.7920074f, 98.924194f), 131); num3 = 1; List list170 = new List(num3); CollectionsMarshal.SetCount(list170, num3); - CollectionsMarshal.AsSpan(list170)[0] = new DialogueChoice + Span span170 = CollectionsMarshal.AsSpan(list170); + index3 = 0; + span170[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSWVR011_00534_SYSTEM_Q0") @@ -38648,13 +46647,16 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "liza"; + Span span171 = CollectionsMarshal.AsSpan(list171); + index = 0; + span171[index] = "liza"; questRoot21.Author = list171; - num = 4; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span64 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference121 = ref span64[0]; + index = 4; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + Span span172 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference121 = ref span172[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -38662,20 +46664,25 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj110.Steps = list173; reference121 = obj110; - ref QuestSequence reference122 = ref span64[1]; + num++; + ref QuestSequence reference122 = ref span172[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - Span span65 = CollectionsMarshal.AsSpan(list174); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.400705f, 46.621056f, -70.3491f), 134); - span65[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001582u, new Vector3(-58.640503f, 27.145752f, -141.7716f), 134) + index2 = 2; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.400705f, 46.621056f, -70.3491f), 134); + num2++; + span174[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001582u, new Vector3(-58.640503f, 27.145752f, -141.7716f), 134) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -38684,11 +46691,13 @@ public static class AssemblyQuestLoader }; obj111.Steps = list174; reference122 = obj111; - span64[2] = new QuestSequence + num++; + span172[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference123 = ref span64[3]; + num++; + ref QuestSequence reference123 = ref span172[num]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue @@ -38696,7 +46705,9 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + Span span175 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span175[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj112.Steps = list175; reference123 = obj112; questRoot21.QuestSequence = list172; @@ -38706,24 +46717,30 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "liza"; + Span span176 = CollectionsMarshal.AsSpan(list176); + index = 0; + span176[index] = "liza"; questRoot22.Author = list176; - num = 5; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span66 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference124 = ref span66[0]; + index = 5; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + Span span177 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference124 = ref span177[num]; QuestSequence obj113 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + Span span178 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span178[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj113.Steps = list178; reference124 = obj113; - ref QuestSequence reference125 = ref span66[1]; + num++; + ref QuestSequence reference125 = ref span177[num]; QuestSequence obj114 = new QuestSequence { Sequence = 1 @@ -38731,8 +46748,9 @@ public static class AssemblyQuestLoader num2 = 2; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span67 = CollectionsMarshal.AsSpan(list179); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.9166679f, 44.999886f, -256.1519f), 128) + Span span179 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span179[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.9166679f, 44.999886f, -256.1519f), 128) { AethernetShortcut = new AethernetShortcut { @@ -38740,21 +46758,25 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaMarauder } }; - span67[1] = new QuestStep(EInteractionType.Interact, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) + index2++; + span179[index2] = new QuestStep(EInteractionType.Interact, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) { StopDistance = 7f }; obj114.Steps = list179; reference125 = obj114; - ref QuestSequence reference126 = ref span66[2]; + num++; + ref QuestSequence reference126 = ref span177[num]; QuestSequence obj115 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list180)[0]; + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + ref QuestStep reference127 = ref span180[num2]; QuestStep obj116 = new QuestStep(EInteractionType.SinglePlayerDuty, 1003283u, new Vector3(668.0552f, 7.297715f, 533.1654f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch @@ -38763,20 +46785,24 @@ public static class AssemblyQuestLoader { Enabled = true }; - num3 = 1; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - CollectionsMarshal.AsSpan(list181)[0] = "(Phase 1) Kills PGL NPCs and then the boss - allied NPCs will kill most other NPCs eventually; all NPCs need to be killed for the duty to complete"; + index3 = 1; + List list181 = new List(index3); + CollectionsMarshal.SetCount(list181, index3); + Span span181 = CollectionsMarshal.AsSpan(list181); + num3 = 0; + span181[num3] = "(Phase 1) Kills PGL NPCs and then the boss - allied NPCs will kill most other NPCs eventually; all NPCs need to be killed for the duty to complete"; obj117.Notes = list181; obj116.SinglePlayerDutyOptions = obj117; reference127 = obj116; obj115.Steps = list180; reference126 = obj115; - span66[3] = new QuestSequence + num++; + span177[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference128 = ref span66[4]; + num++; + ref QuestSequence reference128 = ref span177[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -38784,8 +46810,9 @@ public static class AssemblyQuestLoader num2 = 2; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span68 = CollectionsMarshal.AsSpan(list182); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.9166679f, 44.999886f, -256.1519f), 128) + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.9166679f, 44.999886f, -256.1519f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -38794,7 +46821,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaMarauder } }; - span68[1] = new QuestStep(EInteractionType.CompleteQuest, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) + index2++; + span182[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) { StopDistance = 7f }; @@ -38807,24 +46835,30 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + Span span183 = CollectionsMarshal.AsSpan(list183); + index = 0; + span183[index] = "liza"; questRoot23.Author = list183; - num = 3; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span69 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference129 = ref span69[0]; + index = 3; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + Span span184 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference129 = ref span184[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span185[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj119.Steps = list185; reference129 = obj119; - ref QuestSequence reference130 = ref span69[1]; + num++; + ref QuestSequence reference130 = ref span184[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -38832,12 +46866,14 @@ public static class AssemblyQuestLoader num2 = 3; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span70 = CollectionsMarshal.AsSpan(list186); - span70[0] = new QuestStep(EInteractionType.EquipItem, null, null, 128) + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 128) { ItemId = 3760u }; - ref QuestStep reference131 = ref span70[1]; + index2++; + ref QuestStep reference131 = ref span186[index2]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 @@ -38845,7 +46881,9 @@ public static class AssemblyQuestLoader num3 = 1; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - CollectionsMarshal.AsSpan(list187)[0] = new DialogueChoice + Span span187 = CollectionsMarshal.AsSpan(list187); + index3 = 0; + span187[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -38853,31 +46891,37 @@ public static class AssemblyQuestLoader }; obj121.DialogueChoices = list187; reference131 = obj121; - span70[2] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); + index2++; + span186[index2] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); obj120.Steps = list186; reference130 = obj120; - ref QuestSequence reference132 = ref span69[2]; + num++; + ref QuestSequence reference132 = ref span184[num]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - Span span71 = CollectionsMarshal.AsSpan(list188); - span71[0] = new QuestStep(EInteractionType.Interact, 2001010u, new Vector3(-0.015319824f, 1.449585f, 7.522644f), 177) + index2 = 4; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + Span span188 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span188[num2] = new QuestStep(EInteractionType.Interact, 2001010u, new Vector3(-0.015319824f, 1.449585f, 7.522644f), 177) { TargetTerritoryId = (ushort)128 }; - ref QuestStep reference133 = ref span71[1]; + num2++; + ref QuestStep reference133 = ref span188[num2]; QuestStep obj123 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 }; - num3 = 1; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = new DialogueChoice + index3 = 1; + List list189 = new List(index3); + CollectionsMarshal.SetCount(list189, index3); + Span span189 = CollectionsMarshal.AsSpan(list189); + num3 = 0; + span189[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -38885,7 +46929,8 @@ public static class AssemblyQuestLoader }; obj123.DialogueChoices = list189; reference133 = obj123; - ref QuestStep reference134 = ref span71[2]; + num2++; + ref QuestStep reference134 = ref span188[num2]; QuestStep obj124 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { TargetTerritoryId = (ushort)198 @@ -38893,14 +46938,17 @@ public static class AssemblyQuestLoader num3 = 1; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - CollectionsMarshal.AsSpan(list190)[0] = new DialogueChoice + Span span190 = CollectionsMarshal.AsSpan(list190); + index3 = 0; + span190[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA009_00545_Q1_000_1") }; obj124.DialogueChoices = list190; reference134 = obj124; - span71[3] = new QuestStep(EInteractionType.CompleteQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + num2++; + span188[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj122.Steps = list188; reference132 = obj122; questRoot23.QuestSequence = list184; @@ -38910,13 +46958,16 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "liza"; + Span span191 = CollectionsMarshal.AsSpan(list191); + index = 0; + span191[index] = "liza"; questRoot24.Author = list191; - num = 10; - List list192 = new List(num); - CollectionsMarshal.SetCount(list192, num); - Span span72 = CollectionsMarshal.AsSpan(list192); - ref QuestSequence reference135 = ref span72[0]; + index = 10; + List list192 = new List(index); + CollectionsMarshal.SetCount(list192, index); + Span span192 = CollectionsMarshal.AsSpan(list192); + num = 0; + ref QuestSequence reference135 = ref span192[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -38924,31 +46975,38 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + Span span193 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span193[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj125.Steps = list193; reference135 = obj125; - ref QuestSequence reference136 = ref span72[1]; + num++; + ref QuestSequence reference136 = ref span192[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span73 = CollectionsMarshal.AsSpan(list194); - span73[0] = new QuestStep(EInteractionType.Interact, 2001835u, new Vector3(0.0235393f, 2.330988f, 9.8216f), 198) + index2 = 3; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.Interact, 2001835u, new Vector3(0.0235393f, 2.330988f, 9.8216f), 198) { TargetTerritoryId = (ushort)129 }; - ref QuestStep reference137 = ref span73[1]; + num2++; + ref QuestStep reference137 = ref span194[num2]; QuestStep obj127 = new QuestStep(EInteractionType.Interact, 1003611u, new Vector3(9.781006f, 20.999247f, 15.0911255f), 129) { TargetTerritoryId = (ushort)128 }; - num3 = 1; - List list195 = new List(num3); - CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = new DialogueChoice + index3 = 1; + List list195 = new List(index3); + CollectionsMarshal.SetCount(list195, index3); + Span span195 = CollectionsMarshal.AsSpan(list195); + num3 = 0; + span195[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -38956,10 +47014,12 @@ public static class AssemblyQuestLoader }; obj127.DialogueChoices = list195; reference137 = obj127; - span73[2] = new QuestStep(EInteractionType.Interact, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + num2++; + span194[num2] = new QuestStep(EInteractionType.Interact, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj126.Steps = list194; reference136 = obj126; - ref QuestSequence reference138 = ref span72[2]; + num++; + ref QuestSequence reference138 = ref span192[num]; QuestSequence obj128 = new QuestSequence { Sequence = 2 @@ -38967,8 +47027,9 @@ public static class AssemblyQuestLoader num2 = 2; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span74 = CollectionsMarshal.AsSpan(list196); - ref QuestStep reference139 = ref span74[0]; + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + ref QuestStep reference139 = ref span196[index2]; QuestStep obj129 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)128 @@ -38976,7 +47037,9 @@ public static class AssemblyQuestLoader num3 = 1; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new DialogueChoice + Span span197 = CollectionsMarshal.AsSpan(list197); + index3 = 0; + span197[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -38984,12 +47047,15 @@ public static class AssemblyQuestLoader }; obj129.DialogueChoices = list197; reference139 = obj129; - ref QuestStep reference140 = ref span74[1]; + index2++; + ref QuestStep reference140 = ref span196[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128); - num3 = 1; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = new DialogueChoice + index3 = 1; + List list198 = new List(index3); + CollectionsMarshal.SetCount(list198, index3); + Span span198 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span198[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q1_000_1") @@ -38998,20 +47064,25 @@ public static class AssemblyQuestLoader reference140 = questStep13; obj128.Steps = list196; reference138 = obj128; - ref QuestSequence reference141 = ref span72[3]; + num++; + ref QuestSequence reference141 = ref span192[num]; QuestSequence obj130 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list199)[0]; + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + Span span199 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + ref QuestStep reference142 = ref span199[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2001668u, new Vector3(-11.10527f, 92.04318f, 17.18466f), 128); num3 = 1; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = new DialogueChoice + Span span200 = CollectionsMarshal.AsSpan(list200); + index3 = 0; + span200[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q3_000_1") @@ -39020,7 +47091,8 @@ public static class AssemblyQuestLoader reference142 = questStep14; obj130.Steps = list199; reference141 = obj130; - ref QuestSequence reference143 = ref span72[4]; + num++; + ref QuestSequence reference143 = ref span192[num]; QuestSequence obj131 = new QuestSequence { Sequence = 4 @@ -39028,47 +47100,56 @@ public static class AssemblyQuestLoader num2 = 2; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span75 = CollectionsMarshal.AsSpan(list201); - ref QuestStep reference144 = ref span75[0]; + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + ref QuestStep reference144 = ref span201[index2]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 1000109u, new Vector3(29.770264f, -19.000002f, 114.12219f), 132) { Comment = "Gridania Arrivals Attendant" }; - num3 = 1; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = new DialogueChoice + index3 = 1; + List list202 = new List(index3); + CollectionsMarshal.SetCount(list202, index3); + Span span202 = CollectionsMarshal.AsSpan(list202); + num3 = 0; + span202[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q7_000_1") }; obj132.DialogueChoices = list202; reference144 = obj132; - span75[1] = new QuestStep(EInteractionType.Interact, 1002830u, new Vector3(36.63684f, -18.800003f, 89.64673f), 132); + index2++; + span201[index2] = new QuestStep(EInteractionType.Interact, 1002830u, new Vector3(36.63684f, -18.800003f, 89.64673f), 132); obj131.Steps = list201; reference143 = obj131; - ref QuestSequence reference145 = ref span72[5]; + num++; + ref QuestSequence reference145 = ref span192[num]; QuestSequence obj133 = new QuestSequence { Sequence = 5 }; - num2 = 12; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - Span span76 = CollectionsMarshal.AsSpan(list203); - span76[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) + index2 = 12; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - span76[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) + num2++; + span203[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - span76[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + num2++; + span203[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - span76[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.761639f, 1.2659149f, -18.021421f), 132) + num2++; + span203[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.761639f, 1.2659149f, -18.021421f), 132) { TargetTerritoryId = (ushort)133, AethernetShortcut = new AethernetShortcut @@ -39077,16 +47158,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Gridania } }; - span76[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span203[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - span76[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); - span76[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span203[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.70568f, 12.25941f, -100.795494f), 133); + num2++; + span203[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - span76[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span203[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -39095,12 +47180,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - span76[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); - span76[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span203[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-174.09056f, 10.91981f, -162.12527f), 133); + num2++; + span203[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - span76[10] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + num2++; + span203[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -39109,10 +47197,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - span76[11] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); + num2++; + span203[num2] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); obj133.Steps = list203; reference145 = obj133; - ref QuestSequence reference146 = ref span72[6]; + num++; + ref QuestSequence reference146 = ref span192[num]; QuestSequence obj134 = new QuestSequence { Sequence = 6 @@ -39120,7 +47210,9 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - ref QuestStep reference147 = ref CollectionsMarshal.AsSpan(list204)[0]; + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + ref QuestStep reference147 = ref span204[index2]; QuestStep obj135 = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) { AethernetShortcut = new AethernetShortcut @@ -39132,7 +47224,9 @@ public static class AssemblyQuestLoader num3 = 1; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = new DialogueChoice + Span span205 = CollectionsMarshal.AsSpan(list205); + index3 = 0; + span205[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q5_000_1") @@ -39141,20 +47235,25 @@ public static class AssemblyQuestLoader reference147 = obj135; obj134.Steps = list204; reference146 = obj134; - ref QuestSequence reference148 = ref span72[7]; + num++; + ref QuestSequence reference148 = ref span192[num]; QuestSequence obj136 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - ref QuestStep reference149 = ref CollectionsMarshal.AsSpan(list206)[0]; + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + ref QuestStep reference149 = ref span206[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2001671u, new Vector3(7.156433f, -21.957764f, 123.73535f), 132); - num3 = 1; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - CollectionsMarshal.AsSpan(list207)[0] = new DialogueChoice + index3 = 1; + List list207 = new List(index3); + CollectionsMarshal.SetCount(list207, index3); + Span span207 = CollectionsMarshal.AsSpan(list207); + num3 = 0; + span207[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q3_000_1") @@ -39163,7 +47262,8 @@ public static class AssemblyQuestLoader reference149 = questStep15; obj136.Steps = list206; reference148 = obj136; - ref QuestSequence reference150 = ref span72[8]; + num++; + ref QuestSequence reference150 = ref span192[num]; QuestSequence obj137 = new QuestSequence { Sequence = 8 @@ -39171,8 +47271,9 @@ public static class AssemblyQuestLoader num2 = 2; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span77 = CollectionsMarshal.AsSpan(list208); - ref QuestStep reference151 = ref span77[0]; + Span span208 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + ref QuestStep reference151 = ref span208[index2]; QuestStep obj138 = new QuestStep(EInteractionType.Interact, 1004434u, new Vector3(-27.17633f, 83.19998f, 2.304016f), 130) { Comment = "Ul'dah Arrivals Attendant" @@ -39180,34 +47281,41 @@ public static class AssemblyQuestLoader num3 = 1; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = new DialogueChoice + Span span209 = CollectionsMarshal.AsSpan(list209); + index3 = 0; + span209[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q7_000_1") }; obj138.DialogueChoices = list209; reference151 = obj138; - span77[1] = new QuestStep(EInteractionType.Interact, 1004336u, new Vector3(-12.619263f, 82.99987f, 4.562378f), 130); + index2++; + span208[index2] = new QuestStep(EInteractionType.Interact, 1004336u, new Vector3(-12.619263f, 82.99987f, 4.562378f), 130); obj137.Steps = list208; reference150 = obj137; - ref QuestSequence reference152 = ref span72[9]; + num++; + ref QuestSequence reference152 = ref span192[num]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span78 = CollectionsMarshal.AsSpan(list210); - ref QuestStep reference153 = ref span78[0]; + index2 = 3; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + ref QuestStep reference153 = ref span210[num2]; QuestStep obj140 = new QuestStep(EInteractionType.Interact, 1004339u, new Vector3(-25.986206f, 81.799995f, -31.99823f), 130) { TargetTerritoryId = (ushort)131 }; - num3 = 1; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new DialogueChoice + index3 = 1; + List list211 = new List(index3); + CollectionsMarshal.SetCount(list211, index3); + Span span211 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + span211[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -39215,11 +47323,13 @@ public static class AssemblyQuestLoader }; obj140.DialogueChoices = list211; reference153 = obj140; - span78[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span210[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule }; - span78[2] = new QuestStep(EInteractionType.CompleteQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); + num2++; + span210[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); obj139.Steps = list210; reference152 = obj139; questRoot24.QuestSequence = list192; @@ -39233,13 +47343,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -39247,18 +47360,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003996u, new Vector3(202.65503f, 14.136861f, 536.88855f), 141) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003996u, new Vector3(202.65503f, 14.136861f, 536.88855f), 141) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -39267,11 +47385,13 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - span[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference3 = ref span[3]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -39279,7 +47399,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); obj3.Steps = list5; reference3 = obj3; questRoot.QuestSequence = list2; @@ -39289,24 +47411,30 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; + Span span6 = CollectionsMarshal.AsSpan(list6); + index = 0; + span6[index] = "liza"; questRoot2.Author = list6; - num = 5; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span2 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span2[0]; + index = 5; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + Span span7 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span7[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span2[1]; + num++; + ref QuestSequence reference5 = ref span7[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -39314,8 +47442,9 @@ public static class AssemblyQuestLoader num2 = 2; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span3 = CollectionsMarshal.AsSpan(list9); - ref QuestStep reference6 = ref span3[0]; + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + ref QuestStep reference6 = ref span9[index2]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1004005u, new Vector3(-123.88806f, 40f, 95.384155f), 131) { AethernetShortcut = new AethernetShortcut @@ -39327,25 +47456,31 @@ public static class AssemblyQuestLoader int num3 = 1; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = new DialogueChoice + Span span10 = CollectionsMarshal.AsSpan(list10); + int index3 = 0; + span10[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL007_00551_Q1_000_1") }; obj6.DialogueChoices = list10; reference6 = obj6; - span3[1] = new QuestStep(EInteractionType.Interact, 1004002u, new Vector3(1.0527954f, 0.014807776f, -1.6633301f), 210); + index2++; + span9[index2] = new QuestStep(EInteractionType.Interact, 1004002u, new Vector3(1.0527954f, 0.014807776f, -1.6633301f), 210); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference7 = ref span2[2]; + num++; + ref QuestSequence reference7 = ref span7[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference8 = ref span11[num2]; QuestStep obj8 = new QuestStep(EInteractionType.SinglePlayerDuty, 2001427u, new Vector3(246.93665f, -17.105408f, -131.48706f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation @@ -39354,20 +47489,24 @@ public static class AssemblyQuestLoader { Enabled = true }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = "(Phase 1) Healer NPCs are only killed after the boss dies - allied NPCs will kill them eventually; all NPCs need to be killed for the duty to complete"; + index3 = 1; + List list12 = new List(index3); + CollectionsMarshal.SetCount(list12, index3); + Span span12 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span12[num3] = "(Phase 1) Healer NPCs are only killed after the boss dies - allied NPCs will kill them eventually; all NPCs need to be killed for the duty to complete"; obj9.Notes = list12; obj8.SinglePlayerDutyOptions = obj9; reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - span2[3] = new QuestSequence + num++; + span7[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference9 = ref span2[4]; + num++; + ref QuestSequence reference9 = ref span7[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -39375,8 +47514,9 @@ public static class AssemblyQuestLoader num2 = 2; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span4 = CollectionsMarshal.AsSpan(list13); - ref QuestStep reference10 = ref span4[0]; + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + ref QuestStep reference10 = ref span13[index2]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 1004005u, new Vector3(-123.88806f, 40f, 95.384155f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -39389,14 +47529,17 @@ public static class AssemblyQuestLoader num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = new DialogueChoice + Span span14 = CollectionsMarshal.AsSpan(list14); + index3 = 0; + span14[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL007_00551_Q1_000_1") }; obj11.DialogueChoices = list14; reference10 = obj11; - span4[1] = new QuestStep(EInteractionType.CompleteQuest, 1004003u, new Vector3(0.015197754f, 0.014807776f, -1.6937866f), 210); + index2++; + span13[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004003u, new Vector3(0.015197754f, 0.014807776f, -1.6937866f), 210); obj10.Steps = list13; reference9 = obj10; questRoot2.QuestSequence = list7; @@ -39406,24 +47549,30 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; + Span span15 = CollectionsMarshal.AsSpan(list15); + index = 0; + span15[index] = "liza"; questRoot3.Author = list15; - num = 3; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span5 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span5[0]; + index = 3; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + Span span16 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span16[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj12.Steps = list17; reference11 = obj12; - ref QuestSequence reference12 = ref span5[1]; + num++; + ref QuestSequence reference12 = ref span16[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -39431,12 +47580,14 @@ public static class AssemblyQuestLoader num2 = 2; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span6 = CollectionsMarshal.AsSpan(list18); - span6[0] = new QuestStep(EInteractionType.EquipItem, null, null, 130) + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 130) { ItemId = 4196u }; - span6[1] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) + index2++; + span18[index2] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) { AethernetShortcut = new AethernetShortcut { @@ -39446,20 +47597,23 @@ public static class AssemblyQuestLoader }; obj13.Steps = list18; reference12 = obj13; - ref QuestSequence reference13 = ref span5[2]; + num++; + ref QuestSequence reference13 = ref span16[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - Span span7 = CollectionsMarshal.AsSpan(list19); - span7[0] = new QuestStep(EInteractionType.Interact, 2001011u, new Vector3(0.015197754f, 1.9683228f, 8.132996f), 178) + index2 = 2; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.Interact, 2001011u, new Vector3(0.015197754f, 1.9683228f, 8.132996f), 178) { TargetTerritoryId = (ushort)130 }; - span7[1] = new QuestStep(EInteractionType.CompleteQuest, 1004004u, new Vector3(-139.29962f, 4.1f, -113.481445f), 130); + num2++; + span19[num2] = new QuestStep(EInteractionType.CompleteQuest, 1004004u, new Vector3(-139.29962f, 4.1f, -113.481445f), 130); obj14.Steps = list19; reference13 = obj14; questRoot3.QuestSequence = list16; @@ -39469,13 +47623,16 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "plogon_enjoyer"; + Span span20 = CollectionsMarshal.AsSpan(list20); + index = 0; + span20[index] = "plogon_enjoyer"; questRoot4.Author = list20; - num = 3; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span8 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference14 = ref span8[0]; + index = 3; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + Span span21 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference14 = ref span21[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -39483,19 +47640,23 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); obj15.Steps = list22; reference14 = obj15; - ref QuestSequence reference15 = ref span8[1]; + num++; + ref QuestSequence reference15 = ref span21[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span9 = CollectionsMarshal.AsSpan(list23); - ref QuestStep reference16 = ref span9[0]; + index2 = 3; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + ref QuestStep reference16 = ref span23[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(-126.59337f, 11.159969f, 276.25775f), 141) { AethernetShortcut = new AethernetShortcut @@ -39505,10 +47666,12 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - ref ComplexCombatData reference17 = ref CollectionsMarshal.AsSpan(list24)[0]; + index3 = 1; + List list24 = new List(index3); + CollectionsMarshal.SetCount(list24, index3); + Span span24 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + ref ComplexCombatData reference17 = ref span24[num3]; ComplexCombatData obj18 = new ComplexCombatData { DataId = 351u, @@ -39517,76 +47680,106 @@ public static class AssemblyQuestLoader int num4 = 6; List list25 = new List(num4); CollectionsMarshal.SetCount(list25, num4); - Span span10 = CollectionsMarshal.AsSpan(list25); - span10[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = null; + Span span25 = CollectionsMarshal.AsSpan(list25); + int num5 = 0; + span25[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span25[num5] = null; + num5++; + span25[num5] = null; + num5++; + span25[num5] = null; + num5++; + span25[num5] = null; + num5++; + span25[num5] = null; obj18.CompletionQuestVariablesFlags = list25; reference17 = obj18; obj17.ComplexCombatData = list24; num3 = 6; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - Span span11 = CollectionsMarshal.AsSpan(list26); - span11[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = null; + Span span26 = CollectionsMarshal.AsSpan(list26); + index3 = 0; + span26[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span26[index3] = null; + index3++; + span26[index3] = null; + index3++; + span26[index3] = null; + index3++; + span26[index3] = null; + index3++; + span26[index3] = null; obj17.CompletionQuestVariablesFlags = list26; reference16 = obj17; - ref QuestStep reference18 = ref span9[1]; + num2++; + ref QuestStep reference18 = ref span23[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(-126.59337f, 11.159969f, 276.25775f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - ref ComplexCombatData reference19 = ref CollectionsMarshal.AsSpan(list27)[0]; + index3 = 1; + List list27 = new List(index3); + CollectionsMarshal.SetCount(list27, index3); + Span span27 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + ref ComplexCombatData reference19 = ref span27[num3]; ComplexCombatData obj20 = new ComplexCombatData { DataId = 385u, MinimumKillCount = 3u }; - num4 = 6; - List list28 = new List(num4); - CollectionsMarshal.SetCount(list28, num4); - Span span12 = CollectionsMarshal.AsSpan(list28); - span12[0] = null; - span12[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = null; + num5 = 6; + List list28 = new List(num5); + CollectionsMarshal.SetCount(list28, num5); + Span span28 = CollectionsMarshal.AsSpan(list28); + num4 = 0; + span28[num4] = null; + num4++; + span28[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span28[num4] = null; + num4++; + span28[num4] = null; + num4++; + span28[num4] = null; + num4++; + span28[num4] = null; obj20.CompletionQuestVariablesFlags = list28; reference19 = obj20; obj19.ComplexCombatData = list27; num3 = 6; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - Span span13 = CollectionsMarshal.AsSpan(list29); - span13[0] = null; - span13[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = null; + Span span29 = CollectionsMarshal.AsSpan(list29); + index3 = 0; + span29[index3] = null; + index3++; + span29[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span29[index3] = null; + index3++; + span29[index3] = null; + index3++; + span29[index3] = null; + index3++; + span29[index3] = null; obj19.CompletionQuestVariablesFlags = list29; reference18 = obj19; - ref QuestStep reference20 = ref span9[2]; + num2++; + ref QuestStep reference20 = ref span23[num2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, null, new Vector3(32.007893f, 5.8527403f, 299.76016f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - ref ComplexCombatData reference21 = ref CollectionsMarshal.AsSpan(list30)[0]; + index3 = 1; + List list30 = new List(index3); + CollectionsMarshal.SetCount(list30, index3); + Span span30 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + ref ComplexCombatData reference21 = ref span30[num3]; ComplexCombatData obj22 = new ComplexCombatData { DataId = 205u, @@ -39595,31 +47788,44 @@ public static class AssemblyQuestLoader num4 = 6; List list31 = new List(num4); CollectionsMarshal.SetCount(list31, num4); - Span span14 = CollectionsMarshal.AsSpan(list31); - span14[0] = null; - span14[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = null; + Span span31 = CollectionsMarshal.AsSpan(list31); + num5 = 0; + span31[num5] = null; + num5++; + span31[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span31[num5] = null; + num5++; + span31[num5] = null; + num5++; + span31[num5] = null; + num5++; + span31[num5] = null; obj22.CompletionQuestVariablesFlags = list31; reference21 = obj22; obj21.ComplexCombatData = list30; num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span15 = CollectionsMarshal.AsSpan(list32); - span15[0] = null; - span15[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = null; + Span span32 = CollectionsMarshal.AsSpan(list32); + index3 = 0; + span32[index3] = null; + index3++; + span32[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; obj21.CompletionQuestVariablesFlags = list32; reference20 = obj21; obj16.Steps = list23; reference15 = obj16; - ref QuestSequence reference22 = ref span8[2]; + num++; + ref QuestSequence reference22 = ref span21[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -39627,7 +47833,9 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(554) @@ -39641,21 +47849,26 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "plogon_enjoyer"; + Span span34 = CollectionsMarshal.AsSpan(list34); + index = 0; + span34[index] = "plogon_enjoyer"; questRoot5.Author = list34; - num = 5; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span16 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference23 = ref span16[0]; + index = 5; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + Span span35 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference23 = ref span35[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -39668,7 +47881,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list36; reference23 = obj24; - ref QuestSequence reference24 = ref span16[1]; + num++; + ref QuestSequence reference24 = ref span35[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -39676,51 +47890,74 @@ public static class AssemblyQuestLoader num2 = 6; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span17 = CollectionsMarshal.AsSpan(list37); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.40663f, 0.60187495f, -59.04644f), 130); - ref QuestStep reference25 = ref span17[1]; + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.40663f, 0.60187495f, -59.04644f), 130); + index2++; + ref QuestStep reference25 = ref span37[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2001285u, new Vector3(-80.36932f, 0.6866455f, -59.55603f), 130); - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span18 = CollectionsMarshal.AsSpan(list38); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list38; reference25 = questStep; - ref QuestStep reference26 = ref span17[2]; + index2++; + ref QuestStep reference26 = ref span37[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2001282u, new Vector3(-21.74414f, 9.994568f, -78.50769f), 130); num3 = 6; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - Span span19 = CollectionsMarshal.AsSpan(list39); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span39 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list39; reference26 = questStep2; - ref QuestStep reference27 = ref span17[3]; + index2++; + ref QuestStep reference27 = ref span37[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2001283u, new Vector3(37.03357f, 7.248047f, -98.8938f), 130); - num3 = 6; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span20 = CollectionsMarshal.AsSpan(list40); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + Span span40 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list40; reference27 = questStep3; - ref QuestStep reference28 = ref span17[4]; + index2++; + ref QuestStep reference28 = ref span37[index2]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 2001280u, new Vector3(-162.46283f, 17.471558f, 60.196777f), 130) { AethernetShortcut = new AethernetShortcut @@ -39732,40 +47969,56 @@ public static class AssemblyQuestLoader num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span21 = CollectionsMarshal.AsSpan(list41); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span41 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj26.CompletionQuestVariablesFlags = list41; reference28 = obj26; - ref QuestStep reference29 = ref span17[5]; + index2++; + ref QuestStep reference29 = ref span37[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2001281u, new Vector3(-254.74939f, 17.990356f, 67.33801f), 130); - num3 = 6; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span22 = CollectionsMarshal.AsSpan(list42); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list42 = new List(index3); + CollectionsMarshal.SetCount(list42, index3); + Span span42 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list42; reference29 = questStep4; obj25.Steps = list37; reference24 = obj25; - ref QuestSequence reference30 = ref span16[2]; + num++; + ref QuestSequence reference30 = ref span35[num]; QuestSequence obj27 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AethernetShortcut = new AethernetShortcut { @@ -39775,7 +48028,8 @@ public static class AssemblyQuestLoader }; obj27.Steps = list43; reference30 = obj27; - ref QuestSequence reference31 = ref span16[3]; + num++; + ref QuestSequence reference31 = ref span35[num]; QuestSequence obj28 = new QuestSequence { Sequence = 3 @@ -39783,8 +48037,9 @@ public static class AssemblyQuestLoader num2 = 8; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span23 = CollectionsMarshal.AsSpan(list44); - span23[0] = new QuestStep(EInteractionType.Action, 2001541u, new Vector3(224.7196f, 52.048462f, 79.45361f), 140) + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.Action, 2001541u, new Vector3(224.7196f, 52.048462f, 79.45361f), 140) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -39794,7 +48049,8 @@ public static class AssemblyQuestLoader }, Action = EAction.Bootshine }; - ref QuestStep reference32 = ref span23[1]; + index2++; + ref QuestStep reference32 = ref span44[index2]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, null, new Vector3(224.7196f, 52.048462f, 79.45361f), 140) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -39802,33 +48058,41 @@ public static class AssemblyQuestLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = 131u; + Span span45 = CollectionsMarshal.AsSpan(list45); + index3 = 0; + span45[index3] = 131u; obj29.KillEnemyDataIds = list45; obj29.CombatDelaySecondsAtStart = 1f; reference32 = obj29; - span23[2] = new QuestStep(EInteractionType.Action, 2001542u, new Vector3(245.71594f, 52.475708f, 58.091064f), 140) + index2++; + span44[index2] = new QuestStep(EInteractionType.Action, 2001542u, new Vector3(245.71594f, 52.475708f, 58.091064f), 140) { Fly = true, Action = EAction.Bootshine }; - ref QuestStep reference33 = ref span23[3]; + index2++; + ref QuestStep reference33 = ref span44[index2]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, null, new Vector3(245.71594f, 52.475708f, 58.091064f), 140) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = 131u; + index3 = 1; + List list46 = new List(index3); + CollectionsMarshal.SetCount(list46, index3); + Span span46 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span46[num3] = 131u; obj30.KillEnemyDataIds = list46; obj30.CombatDelaySecondsAtStart = 1f; reference33 = obj30; - span23[4] = new QuestStep(EInteractionType.Action, 2001543u, new Vector3(224.01758f, 52.231567f, 41.367188f), 140) + index2++; + span44[index2] = new QuestStep(EInteractionType.Action, 2001543u, new Vector3(224.01758f, 52.231567f, 41.367188f), 140) { Fly = true, Action = EAction.Bootshine }; - ref QuestStep reference34 = ref span23[5]; + index2++; + ref QuestStep reference34 = ref span44[index2]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, null, new Vector3(224.01758f, 52.231567f, 41.367188f), 140) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -39836,41 +48100,49 @@ public static class AssemblyQuestLoader num3 = 1; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = 131u; + Span span47 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span47[index3] = 131u; obj31.KillEnemyDataIds = list47; obj31.CombatDelaySecondsAtStart = 1f; reference34 = obj31; - span23[6] = new QuestStep(EInteractionType.Action, 2001544u, new Vector3(259.05237f, 53.421753f, 25.40625f), 140) + index2++; + span44[index2] = new QuestStep(EInteractionType.Action, 2001544u, new Vector3(259.05237f, 53.421753f, 25.40625f), 140) { Fly = true, Action = EAction.Bootshine }; - ref QuestStep reference35 = ref span23[7]; + index2++; + ref QuestStep reference35 = ref span44[index2]; QuestStep obj32 = new QuestStep(EInteractionType.Combat, null, new Vector3(258.4417f, 52.01455f, 23.240385f), 140) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = 131u; + index3 = 1; + List list48 = new List(index3); + CollectionsMarshal.SetCount(list48, index3); + Span span48 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span48[num3] = 131u; obj32.KillEnemyDataIds = list48; obj32.CombatDelaySecondsAtStart = 1f; reference35 = obj32; obj28.Steps = list44; reference31 = obj28; - ref QuestSequence reference36 = ref span16[4]; + num++; + ref QuestSequence reference36 = ref span35[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { - AetheryteShortcut = EAetheryteLocation.Uldah, - NextQuestId = new QuestId(555) + AetheryteShortcut = EAetheryteLocation.Uldah }; obj33.Steps = list49; reference36 = obj33; @@ -39881,15 +48153,18 @@ public static class AssemblyQuestLoader num = 2; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - Span span24 = CollectionsMarshal.AsSpan(list50); - span24[0] = "liza"; - span24[1] = "plogon_enjoyer"; + Span span50 = CollectionsMarshal.AsSpan(list50); + index = 0; + span50[index] = "liza"; + index++; + span50[index] = "plogon_enjoyer"; questRoot6.Author = list50; - num = 5; - List list51 = new List(num); - CollectionsMarshal.SetCount(list51, num); - Span span25 = CollectionsMarshal.AsSpan(list51); - ref QuestSequence reference37 = ref span25[0]; + index = 5; + List list51 = new List(index); + CollectionsMarshal.SetCount(list51, index); + Span span51 = CollectionsMarshal.AsSpan(list51); + num = 0; + ref QuestSequence reference37 = ref span51[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -39897,7 +48172,9 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -39910,16 +48187,18 @@ public static class AssemblyQuestLoader }; obj34.Steps = list52; reference37 = obj34; - ref QuestSequence reference38 = ref span25[1]; + num++; + ref QuestSequence reference38 = ref span51[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span26 = CollectionsMarshal.AsSpan(list53); - ref QuestStep reference39 = ref span26[0]; + index2 = 5; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref QuestStep reference39 = ref span53[num2]; QuestStep obj36 = new QuestStep(EInteractionType.Action, 2001718u, new Vector3(-108.2017f, 4.989685f, -105.7603f), 130) { Action = EAction.Bootshine @@ -39927,33 +48206,47 @@ public static class AssemblyQuestLoader num3 = 6; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - Span span27 = CollectionsMarshal.AsSpan(list54); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span27[4] = null; - span27[5] = null; + Span span54 = CollectionsMarshal.AsSpan(list54); + index3 = 0; + span54[index3] = null; + index3++; + span54[index3] = null; + index3++; + span54[index3] = null; + index3++; + span54[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3++; + span54[index3] = null; + index3++; + span54[index3] = null; obj36.CompletionQuestVariablesFlags = list54; reference39 = obj36; - ref QuestStep reference40 = ref span26[1]; + num2++; + ref QuestStep reference40 = ref span53[num2]; QuestStep obj37 = new QuestStep(EInteractionType.Action, 2001719u, new Vector3(-105.9365f, 4.9655f, -107.8618f), 130) { Action = EAction.Bootshine }; - num3 = 6; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - Span span28 = CollectionsMarshal.AsSpan(list55); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span28[4] = null; - span28[5] = null; + index3 = 6; + List list55 = new List(index3); + CollectionsMarshal.SetCount(list55, index3); + Span span55 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span55[num3] = null; + num3++; + span55[num3] = null; + num3++; + span55[num3] = null; + num3++; + span55[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num3++; + span55[num3] = null; + num3++; + span55[num3] = null; obj37.CompletionQuestVariablesFlags = list55; reference40 = obj37; - ref QuestStep reference41 = ref span26[2]; + num2++; + ref QuestStep reference41 = ref span53[num2]; QuestStep obj38 = new QuestStep(EInteractionType.Action, 2001720u, new Vector3(-77.89734f, 5.0201416f, -129.19812f), 130) { Action = EAction.Bootshine @@ -39961,33 +48254,47 @@ public static class AssemblyQuestLoader num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span29 = CollectionsMarshal.AsSpan(list56); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span29[4] = null; - span29[5] = null; + Span span56 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3++; + span56[index3] = null; + index3++; + span56[index3] = null; obj38.CompletionQuestVariablesFlags = list56; reference41 = obj38; - ref QuestStep reference42 = ref span26[3]; + num2++; + ref QuestStep reference42 = ref span53[num2]; QuestStep obj39 = new QuestStep(EInteractionType.Action, 2001721u, new Vector3(-74.906555f, 4.8981323f, -130.99878f), 130) { Action = EAction.Bootshine }; - num3 = 6; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - Span span30 = CollectionsMarshal.AsSpan(list57); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span30[4] = null; - span30[5] = null; + index3 = 6; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + Span span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; obj39.CompletionQuestVariablesFlags = list57; reference42 = obj39; - ref QuestStep reference43 = ref span26[4]; + num2++; + ref QuestStep reference43 = ref span53[num2]; QuestStep obj40 = new QuestStep(EInteractionType.Action, 2001722u, new Vector3(-71.732666f, 5.0201416f, -132.64673f), 130) { Action = EAction.Bootshine @@ -39995,18 +48302,25 @@ public static class AssemblyQuestLoader num3 = 6; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span31 = CollectionsMarshal.AsSpan(list58); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - span31[4] = null; - span31[5] = null; + Span span58 = CollectionsMarshal.AsSpan(list58); + index3 = 0; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3++; + span58[index3] = null; + index3++; + span58[index3] = null; obj40.CompletionQuestVariablesFlags = list58; reference43 = obj40; obj35.Steps = list53; reference38 = obj35; - ref QuestSequence reference44 = ref span25[2]; + num++; + ref QuestSequence reference44 = ref span51[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 @@ -40014,34 +48328,42 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); obj41.Steps = list59; reference44 = obj41; - ref QuestSequence reference45 = ref span25[3]; + num++; + ref QuestSequence reference45 = ref span51[num]; QuestSequence obj42 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list60)[0]; + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + ref QuestStep reference46 = ref span60[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(-210.32118f, 21.582167f, -94.337494f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - CollectionsMarshal.AsSpan(list61)[0] = 771u; + index3 = 1; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = 771u; obj43.KillEnemyDataIds = list61; obj43.CombatDelaySecondsAtStart = 0f; reference46 = obj43; obj42.Steps = list60; reference45 = obj42; - ref QuestSequence reference47 = ref span25[4]; + num++; + ref QuestSequence reference47 = ref span51[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -40049,9 +48371,11 @@ public static class AssemblyQuestLoader num2 = 2; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span32 = CollectionsMarshal.AsSpan(list62); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-118.55462f, 8.216448f, -82.81951f), 141); - span32[1] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-118.55462f, 8.216448f, -82.81951f), 141); + index2++; + span62[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(558) @@ -40065,21 +48389,26 @@ public static class AssemblyQuestLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = "plogon_enjoyer"; + Span span63 = CollectionsMarshal.AsSpan(list63); + index = 0; + span63[index] = "plogon_enjoyer"; questRoot7.Author = list63; - num = 8; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - Span span33 = CollectionsMarshal.AsSpan(list64); - ref QuestSequence reference48 = ref span33[0]; + index = 8; + List list64 = new List(index); + CollectionsMarshal.SetCount(list64, index); + Span span64 = CollectionsMarshal.AsSpan(list64); + num = 0; + ref QuestSequence reference48 = ref span64[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span65[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -40092,7 +48421,8 @@ public static class AssemblyQuestLoader }; obj45.Steps = list65; reference48 = obj45; - ref QuestSequence reference49 = ref span33[1]; + num++; + ref QuestSequence reference49 = ref span64[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -40100,7 +48430,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list66)[0]; + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + ref QuestStep reference50 = ref span66[index2]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(265.54178f, -19.718353f, -128.44438f), 141) { Fly = true, @@ -40110,7 +48442,9 @@ public static class AssemblyQuestLoader num3 = 1; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new ComplexCombatData + Span span67 = CollectionsMarshal.AsSpan(list67); + index3 = 0; + span67[index3] = new ComplexCombatData { DataId = 26u, RewardItemId = 2000408u, @@ -40121,24 +48455,28 @@ public static class AssemblyQuestLoader reference50 = obj47; obj46.Steps = list66; reference49 = obj46; - ref QuestSequence reference51 = ref span33[2]; + num++; + ref QuestSequence reference51 = ref span64[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span34 = CollectionsMarshal.AsSpan(list68); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.2259f, -1.9503738f, -187.50148f), 141); - span34[1] = new QuestStep(EInteractionType.Interact, 1003822u, new Vector3(-27.390015f, -2.056931f, -146.92914f), 141) + index2 = 2; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.2259f, -1.9503738f, -187.50148f), 141); + num2++; + span68[num2] = new QuestStep(EInteractionType.Interact, 1003822u, new Vector3(-27.390015f, -2.056931f, -146.92914f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj48.Steps = list68; reference51 = obj48; - ref QuestSequence reference52 = ref span33[3]; + num++; + ref QuestSequence reference52 = ref span64[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -40146,36 +48484,43 @@ public static class AssemblyQuestLoader num2 = 3; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span35 = CollectionsMarshal.AsSpan(list69); - span35[0] = new QuestStep(EInteractionType.Interact, 1001578u, new Vector3(-35.446716f, -2.057618f, -154.95538f), 141) + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.Interact, 1001578u, new Vector3(-35.446716f, -2.057618f, -154.95538f), 141) { Mount = true }; - span35[1] = new QuestStep(EInteractionType.Interact, 1001445u, new Vector3(-13.046509f, -2.0905762f, -184.40533f), 141) + index2++; + span69[index2] = new QuestStep(EInteractionType.Interact, 1001445u, new Vector3(-13.046509f, -2.0905762f, -184.40533f), 141) { Fly = true }; - span35[2] = new QuestStep(EInteractionType.Interact, 1004148u, new Vector3(5.722107f, -1.985179f, -172.7779f), 141) + index2++; + span69[index2] = new QuestStep(EInteractionType.Interact, 1004148u, new Vector3(5.722107f, -1.985179f, -172.7779f), 141) { Fly = true }; obj49.Steps = list69; reference52 = obj49; - ref QuestSequence reference53 = ref span33[4]; + num++; + ref QuestSequence reference53 = ref span64[num]; QuestSequence obj50 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1003822u, new Vector3(-27.390015f, -2.056931f, -146.92914f), 141) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.Interact, 1003822u, new Vector3(-27.390015f, -2.056931f, -146.92914f), 141) { Fly = true }; obj50.Steps = list70; reference53 = obj50; - ref QuestSequence reference54 = ref span33[5]; + num++; + ref QuestSequence reference54 = ref span64[num]; QuestSequence obj51 = new QuestSequence { Sequence = 5 @@ -40183,7 +48528,9 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001349u, new Vector3(-241.41296f, 8.0720215f, -32.24237f), 141) + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001349u, new Vector3(-241.41296f, 8.0720215f, -32.24237f), 141) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -40193,21 +48540,25 @@ public static class AssemblyQuestLoader }; obj51.Steps = list71; reference54 = obj51; - ref QuestSequence reference55 = ref span33[6]; + num++; + ref QuestSequence reference55 = ref span64[num]; QuestSequence obj52 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1004149u, new Vector3(-242.84735f, 7.405224f, -29.312622f), 141) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.Interact, 1004149u, new Vector3(-242.84735f, 7.405224f, -29.312622f), 141) { StopDistance = 6f }; obj52.Steps = list72; reference55 = obj52; - ref QuestSequence reference56 = ref span33[7]; + num++; + ref QuestSequence reference56 = ref span64[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -40215,7 +48566,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130) + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(562) @@ -40229,21 +48582,26 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "plogon_enjoyer"; + Span span74 = CollectionsMarshal.AsSpan(list74); + index = 0; + span74[index] = "plogon_enjoyer"; questRoot8.Author = list74; - num = 6; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span36 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference57 = ref span36[0]; + index = 6; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + Span span75 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference57 = ref span75[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -40256,7 +48614,8 @@ public static class AssemblyQuestLoader }; obj54.Steps = list76; reference57 = obj54; - ref QuestSequence reference58 = ref span36[1]; + num++; + ref QuestSequence reference58 = ref span75[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -40264,39 +48623,46 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130); + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.Interact, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130); obj55.Steps = list77; reference58 = obj55; - ref QuestSequence reference59 = ref span36[2]; + num++; + ref QuestSequence reference59 = ref span75[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span37 = CollectionsMarshal.AsSpan(list78); - span37[0] = new QuestStep(EInteractionType.Action, 2001391u, new Vector3(-215.99152f, -29.495728f, 203.78418f), 145) + index2 = 6; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.Action, 2001391u, new Vector3(-215.99152f, -29.495728f, 203.78418f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, Action = EAction.Bootshine }; - ref QuestStep reference60 = ref span37[1]; + num2++; + ref QuestStep reference60 = ref span78[num2]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, null, new Vector3(-215.99152f, -29.495728f, 203.78418f), 145) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - Span span38 = CollectionsMarshal.AsSpan(list79); - span38[0] = new ComplexCombatData + index3 = 2; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + Span span79 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span79[num3] = new ComplexCombatData { DataId = 139u, MinimumKillCount = 1u }; - span38[1] = new ComplexCombatData + num3++; + span79[num3] = new ComplexCombatData { DataId = 136u, MinimumKillCount = 2u @@ -40304,12 +48670,14 @@ public static class AssemblyQuestLoader obj57.ComplexCombatData = list79; obj57.CombatDelaySecondsAtStart = 1f; reference60 = obj57; - span37[2] = new QuestStep(EInteractionType.Action, 2001389u, new Vector3(-242.4201f, -26.138794f, 229.17517f), 145) + num2++; + span78[num2] = new QuestStep(EInteractionType.Action, 2001389u, new Vector3(-242.4201f, -26.138794f, 229.17517f), 145) { Mount = true, Action = EAction.Bootshine }; - ref QuestStep reference61 = ref span37[3]; + num2++; + ref QuestStep reference61 = ref span78[num2]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, null, new Vector3(-242.4201f, -26.138794f, 229.17517f), 145) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -40317,7 +48685,9 @@ public static class AssemblyQuestLoader num3 = 1; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new ComplexCombatData + Span span80 = CollectionsMarshal.AsSpan(list80); + index3 = 0; + span80[index3] = new ComplexCombatData { DataId = 57u, MinimumKillCount = 2u @@ -40325,20 +48695,24 @@ public static class AssemblyQuestLoader obj58.ComplexCombatData = list80; obj58.CombatDelaySecondsAtStart = 1f; reference61 = obj58; - span37[4] = new QuestStep(EInteractionType.Action, 2001390u, new Vector3(-228.8396f, -27.8172f, 250.14111f), 145) + num2++; + span78[num2] = new QuestStep(EInteractionType.Action, 2001390u, new Vector3(-228.8396f, -27.8172f, 250.14111f), 145) { Mount = true, Action = EAction.Bootshine }; - ref QuestStep reference62 = ref span37[5]; + num2++; + ref QuestStep reference62 = ref span78[num2]; QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(-228.8396f, -27.8172f, 250.14111f), 145) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new ComplexCombatData + index3 = 1; + List list81 = new List(index3); + CollectionsMarshal.SetCount(list81, index3); + Span span81 = CollectionsMarshal.AsSpan(list81); + num3 = 0; + span81[num3] = new ComplexCombatData { DataId = 57u, MinimumKillCount = 2u @@ -40348,7 +48722,8 @@ public static class AssemblyQuestLoader reference62 = obj59; obj56.Steps = list78; reference59 = obj56; - ref QuestSequence reference63 = ref span36[3]; + num++; + ref QuestSequence reference63 = ref span75[num]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -40356,24 +48731,30 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj60.Steps = list82; reference63 = obj60; - ref QuestSequence reference64 = ref span36[4]; + num++; + ref QuestSequence reference64 = ref span75[num]; QuestSequence obj61 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); obj61.Steps = list83; reference64 = obj61; - ref QuestSequence reference65 = ref span36[5]; + num++; + ref QuestSequence reference65 = ref span75[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -40381,7 +48762,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { NextQuestId = new QuestId(566) }; @@ -40394,21 +48777,26 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "Starr"; + Span span85 = CollectionsMarshal.AsSpan(list85); + index = 0; + span85[index] = "Starr"; questRoot9.Author = list85; - num = 2; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span39 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference66 = ref span39[0]; + index = 2; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + Span span86 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference66 = ref span86[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010472u, new Vector3(-53.26935f, 0.3093315f, 69.41321f), 148) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010472u, new Vector3(-53.26935f, 0.3093315f, 69.41321f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, SkipConditions = new SkipConditions @@ -40421,7 +48809,8 @@ public static class AssemblyQuestLoader }; obj63.Steps = list87; reference66 = obj63; - ref QuestSequence reference67 = ref span39[1]; + num++; + ref QuestSequence reference67 = ref span86[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -40429,7 +48818,9 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list88)[0]; + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + ref QuestStep reference68 = ref span88[index2]; QuestStep obj65 = new QuestStep(EInteractionType.CompleteQuest, 1010464u, new Vector3(-0.015319824f, -1.8903663E-06f, -65.61273f), 388) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, @@ -40444,9 +48835,11 @@ public static class AssemblyQuestLoader num3 = 2; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - Span span40 = CollectionsMarshal.AsSpan(list89); - span40[0] = 388; - span40[1] = 144; + Span span89 = CollectionsMarshal.AsSpan(list89); + index3 = 0; + span89[index3] = 388; + index3++; + span89[index3] = 144; skipAetheryteCondition.InTerritory = list89; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj65.SkipConditions = skipConditions; @@ -40460,21 +48853,26 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "plogon_enjoyer"; + Span span90 = CollectionsMarshal.AsSpan(list90); + index = 0; + span90[index] = "plogon_enjoyer"; questRoot10.Author = list90; - num = 6; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span41 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference69 = ref span41[0]; + index = 6; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + Span span91 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference69 = ref span91[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -40487,7 +48885,8 @@ public static class AssemblyQuestLoader }; obj66.Steps = list92; reference69 = obj66; - ref QuestSequence reference70 = ref span41[1]; + num++; + ref QuestSequence reference70 = ref span91[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 @@ -40495,25 +48894,31 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130); + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.Interact, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130); obj67.Steps = list93; reference70 = obj67; - ref QuestSequence reference71 = ref span41[2]; + num++; + ref QuestSequence reference71 = ref span91[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1003829u, new Vector3(-147.32587f, 25.913446f, -359.76202f), 146) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.Interact, 1003829u, new Vector3(-147.32587f, 25.913446f, -359.76202f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj68.Steps = list94; reference71 = obj68; - ref QuestSequence reference72 = ref span41[3]; + num++; + ref QuestSequence reference72 = ref span91[num]; QuestSequence obj69 = new QuestSequence { Sequence = 3 @@ -40521,33 +48926,43 @@ public static class AssemblyQuestLoader num2 = 6; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span42 = CollectionsMarshal.AsSpan(list95); - ref QuestStep reference73 = ref span42[0]; + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + ref QuestStep reference73 = ref span95[index2]; QuestStep obj70 = new QuestStep(EInteractionType.UseItem, 2001525u, new Vector3(-203.81476f, 27.267822f, -351.76624f), 146) { ItemId = 2000409u }; - num3 = 6; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - Span span43 = CollectionsMarshal.AsSpan(list96); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list96 = new List(index3); + CollectionsMarshal.SetCount(list96, index3); + Span span96 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span96[num3] = null; + num3++; + span96[num3] = null; + num3++; + span96[num3] = null; + num3++; + span96[num3] = null; + num3++; + span96[num3] = null; + num3++; + span96[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj70.CompletionQuestVariablesFlags = list96; reference73 = obj70; - span42[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.89648f, 26.681297f, -322.03738f), 146) + index2++; + span95[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.89648f, 26.681297f, -322.03738f), 146) { Mount = true }; - span42[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.12759f, 14.866777f, -187.7578f), 146) + index2++; + span95[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.12759f, 14.866777f, -187.7578f), 146) { Fly = true }; - ref QuestStep reference74 = ref span42[3]; + index2++; + ref QuestStep reference74 = ref span95[index2]; QuestStep obj71 = new QuestStep(EInteractionType.UseItem, 2001523u, new Vector3(-105.57721f, 14.999573f, -185.32086f), 146) { ItemId = 2000409u @@ -40555,34 +48970,48 @@ public static class AssemblyQuestLoader num3 = 6; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - Span span44 = CollectionsMarshal.AsSpan(list97); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span97 = CollectionsMarshal.AsSpan(list97); + index3 = 0; + span97[index3] = null; + index3++; + span97[index3] = null; + index3++; + span97[index3] = null; + index3++; + span97[index3] = null; + index3++; + span97[index3] = null; + index3++; + span97[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj71.CompletionQuestVariablesFlags = list97; reference74 = obj71; - ref QuestStep reference75 = ref span42[4]; + index2++; + ref QuestStep reference75 = ref span95[index2]; QuestStep obj72 = new QuestStep(EInteractionType.UseItem, 2001524u, new Vector3(197.4364f, 15.548889f, -450.58368f), 146) { Fly = true, ItemId = 2000409u }; - num3 = 6; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - Span span45 = CollectionsMarshal.AsSpan(list98); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list98 = new List(index3); + CollectionsMarshal.SetCount(list98, index3); + Span span98 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span98[num3] = null; + num3++; + span98[num3] = null; + num3++; + span98[num3] = null; + num3++; + span98[num3] = null; + num3++; + span98[num3] = null; + num3++; + span98[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj72.CompletionQuestVariablesFlags = list98; reference75 = obj72; - ref QuestStep reference76 = ref span42[5]; + index2++; + ref QuestStep reference76 = ref span95[index2]; QuestStep obj73 = new QuestStep(EInteractionType.UseItem, 2001522u, new Vector3(22.171326f, 17.868286f, -600.24414f), 146) { Fly = true, @@ -40591,33 +49020,43 @@ public static class AssemblyQuestLoader num3 = 6; List list99 = new List(num3); CollectionsMarshal.SetCount(list99, num3); - Span span46 = CollectionsMarshal.AsSpan(list99); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span99 = CollectionsMarshal.AsSpan(list99); + index3 = 0; + span99[index3] = null; + index3++; + span99[index3] = null; + index3++; + span99[index3] = null; + index3++; + span99[index3] = null; + index3++; + span99[index3] = null; + index3++; + span99[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj73.CompletionQuestVariablesFlags = list99; reference76 = obj73; obj69.Steps = list95; reference72 = obj69; - ref QuestSequence reference77 = ref span41[4]; + num++; + ref QuestSequence reference77 = ref span91[num]; QuestSequence obj74 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003829u, new Vector3(-147.32587f, 25.913446f, -359.76202f), 146) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003829u, new Vector3(-147.32587f, 25.913446f, -359.76202f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj74.Steps = list100; reference77 = obj74; - ref QuestSequence reference78 = ref span41[5]; + num++; + ref QuestSequence reference78 = ref span91[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -40625,7 +49064,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(567) @@ -40639,21 +49080,26 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "plogon_enjoyer"; + Span span102 = CollectionsMarshal.AsSpan(list102); + index = 0; + span102[index] = "plogon_enjoyer"; questRoot11.Author = list102; - num = 6; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span47 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference79 = ref span47[0]; + index = 6; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + Span span103 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference79 = ref span103[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -40666,7 +49112,8 @@ public static class AssemblyQuestLoader }; obj76.Steps = list104; reference79 = obj76; - ref QuestSequence reference80 = ref span47[1]; + num++; + ref QuestSequence reference80 = ref span103[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -40674,31 +49121,38 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1003830u, new Vector3(-301.5335f, 5.0000005f, 471.3053f), 146) + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.Interact, 1003830u, new Vector3(-301.5335f, 5.0000005f, 471.3053f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj77.Steps = list105; reference80 = obj77; - ref QuestSequence reference81 = ref span47[2]; + num++; + ref QuestSequence reference81 = ref span103[num]; QuestSequence obj78 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list106)[0]; + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + ref QuestStep reference82 = ref span106[num2]; QuestStep obj79 = new QuestStep(EInteractionType.Combat, null, new Vector3(-262.6409f, 14.190942f, 594.23486f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new ComplexCombatData + index3 = 1; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + Span span107 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span107[num3] = new ComplexCombatData { DataId = 357u, MinimumKillCount = 5u @@ -40708,7 +49162,8 @@ public static class AssemblyQuestLoader reference82 = obj79; obj78.Steps = list106; reference81 = obj78; - ref QuestSequence reference83 = ref span47[3]; + num++; + ref QuestSequence reference83 = ref span103[num]; QuestSequence obj80 = new QuestSequence { Sequence = 3 @@ -40716,22 +49171,27 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003830u, new Vector3(-301.5335f, 5.0000005f, 471.3053f), 146) + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003830u, new Vector3(-301.5335f, 5.0000005f, 471.3053f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj80.Steps = list108; reference83 = obj80; - ref QuestSequence reference84 = ref span47[4]; + num++; + ref QuestSequence reference84 = ref span103[num]; QuestSequence obj81 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003890u, new Vector3(-21.805176f, 3.9999993f, -145.18964f), 130) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003890u, new Vector3(-21.805176f, 3.9999993f, -145.18964f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -40741,7 +49201,8 @@ public static class AssemblyQuestLoader }; obj81.Steps = list109; reference84 = obj81; - ref QuestSequence reference85 = ref span47[5]; + num++; + ref QuestSequence reference85 = ref span103[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue @@ -40749,7 +49210,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); obj82.Steps = list110; reference85 = obj82; questRoot11.QuestSequence = list103; @@ -40759,24 +49222,30 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "liza"; + Span span111 = CollectionsMarshal.AsSpan(list111); + index = 0; + span111[index] = "liza"; questRoot12.Author = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span48 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference86 = ref span48[0]; + index = 3; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + Span span112 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference86 = ref span112[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); obj83.Steps = list113; reference86 = obj83; - ref QuestSequence reference87 = ref span48[1]; + num++; + ref QuestSequence reference87 = ref span112[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 @@ -40784,72 +49253,97 @@ public static class AssemblyQuestLoader num2 = 17; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span49 = CollectionsMarshal.AsSpan(list114); - span49[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahAdventurers }; - span49[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); - ref QuestStep reference88 = ref span49[2]; + index2++; + span114[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); + index2++; + ref QuestStep reference88 = ref span114[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1003908u, new Vector3(137.95679f, 4.041112f, -41.09259f), 131); num3 = 6; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - Span span50 = CollectionsMarshal.AsSpan(list115); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span115 = CollectionsMarshal.AsSpan(list115); + index3 = 0; + span115[index3] = null; + index3++; + span115[index3] = null; + index3++; + span115[index3] = null; + index3++; + span115[index3] = null; + index3++; + span115[index3] = null; + index3++; + span115[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list115; reference88 = questStep5; - span49[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span114[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahSapphireAvenue }; - span49[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span114[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahWeaver }; - span49[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span114[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahMiner }; - span49[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span114[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGoldsmith }; - span49[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span114[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGladiator }; - ref QuestStep reference89 = ref span49[8]; + index2++; + ref QuestStep reference89 = ref span114[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131); - num3 = 6; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - Span span51 = CollectionsMarshal.AsSpan(list116); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list116 = new List(index3); + CollectionsMarshal.SetCount(list116, index3); + Span span116 = CollectionsMarshal.AsSpan(list116); + num3 = 0; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list116; reference89 = questStep6; - span49[9] = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131) + index2++; + span114[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131) { Disabled = true, Comment = "Level 1 class quest isn't finished", PickUpQuestId = new QuestId(253) }; - span49[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.64317f, 7.734872f, 9.960203f), 131); - span49[11] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + index2++; + span114[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.64317f, 7.734872f, 9.960203f), 131); + index2++; + span114[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahThaumaturge }; - span49[12] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) + index2++; + span114[index2] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) { TargetTerritoryId = (ushort)131, AethernetShortcut = new AethernetShortcut @@ -40862,7 +49356,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span49[13] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span114[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule, SkipConditions = new SkipConditions @@ -40870,7 +49365,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span49[14] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span114[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahAlchemist, SkipConditions = new SkipConditions @@ -40878,7 +49374,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - ref QuestStep reference90 = ref span49[15]; + index2++; + ref QuestStep reference90 = ref span114[index2]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 1001854u, new Vector3(-19.36377f, 34f, -42.588013f), 131) { TargetTerritoryId = (ushort)130, @@ -40895,7 +49392,9 @@ public static class AssemblyQuestLoader num3 = 1; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = new DialogueChoice + Span span117 = CollectionsMarshal.AsSpan(list117); + index3 = 0; + span117[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -40903,39 +49402,49 @@ public static class AssemblyQuestLoader }; obj85.DialogueChoices = list117; reference90 = obj85; - ref QuestStep reference91 = ref span49[16]; + index2++; + ref QuestStep reference91 = ref span114[index2]; QuestStep obj86 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah }; - num3 = 6; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - Span span52 = CollectionsMarshal.AsSpan(list118); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list118 = new List(index3); + CollectionsMarshal.SetCount(list118, index3); + Span span118 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj86.CompletionQuestVariablesFlags = list118; reference91 = obj86; obj84.Steps = list114; reference87 = obj84; - ref QuestSequence reference92 = ref span48[2]; + num++; + ref QuestSequence reference92 = ref span112[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - Span span53 = CollectionsMarshal.AsSpan(list119); - span53[0] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) + index2 = 4; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span119[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah }; - span53[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) + num2++; + span119[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation, AethernetShortcut = new AethernetShortcut @@ -40948,7 +49457,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span53[2] = new QuestStep(EInteractionType.None, null, null, 130) + num2++; + span119[num2] = new QuestStep(EInteractionType.None, null, null, 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -40956,7 +49466,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span53[3] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + num2++; + span119[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -40973,14 +49484,18 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "liza"; + Span span120 = CollectionsMarshal.AsSpan(list120); + index = 0; + span120[index] = "liza"; questRoot13.Author = list120; questRoot13.IsSeasonalQuest = true; questRoot13.SeasonalQuestExpiry = new DateTime(2025, 12, 16, 14, 59, 0, DateTimeKind.Utc); - num = 1; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - ref QuestSequence reference93 = ref CollectionsMarshal.AsSpan(list121)[0]; + index = 1; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + Span span121 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference93 = ref span121[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -40988,7 +49503,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list122)[0]; + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + ref QuestStep reference94 = ref span122[index2]; QuestStep obj89 = new QuestStep(EInteractionType.AcceptQuest, 1052475u, new Vector3(-22.354492f, 10.13581f, -241.41296f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -41006,7 +49523,9 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 133; + Span span123 = CollectionsMarshal.AsSpan(list123); + index3 = 0; + span123[index3] = 133; obj90.InTerritory = list123; skipConditions2.AetheryteShortcutIf = obj90; obj89.SkipConditions = skipConditions2; @@ -41020,24 +49539,30 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "liza"; + Span span124 = CollectionsMarshal.AsSpan(list124); + index = 0; + span124[index] = "liza"; questRoot14.Author = list124; - num = 3; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - Span span54 = CollectionsMarshal.AsSpan(list125); - ref QuestSequence reference95 = ref span54[0]; + index = 3; + List list125 = new List(index); + CollectionsMarshal.SetCount(list125, index); + Span span125 = CollectionsMarshal.AsSpan(list125); + num = 0; + ref QuestSequence reference95 = ref span125[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); obj91.Steps = list126; reference95 = obj91; - ref QuestSequence reference96 = ref span54[1]; + num++; + ref QuestSequence reference96 = ref span125[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -41045,72 +49570,97 @@ public static class AssemblyQuestLoader num2 = 17; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span55 = CollectionsMarshal.AsSpan(list127); - span55[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahAdventurers }; - span55[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); - ref QuestStep reference97 = ref span55[2]; + index2++; + span127[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); + index2++; + ref QuestStep reference97 = ref span127[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1003908u, new Vector3(137.95679f, 4.041112f, -41.09259f), 131); - num3 = 6; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - Span span56 = CollectionsMarshal.AsSpan(list128); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list128 = new List(index3); + CollectionsMarshal.SetCount(list128, index3); + Span span128 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list128; reference97 = questStep7; - span55[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span127[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahSapphireAvenue }; - span55[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span127[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahWeaver }; - span55[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span127[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahMiner }; - span55[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span127[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGoldsmith }; - span55[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span127[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGladiator }; - span55[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.64317f, 7.734872f, 9.960203f), 131); - span55[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + index2++; + span127[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.64317f, 7.734872f, 9.960203f), 131); + index2++; + span127[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahThaumaturge }; - ref QuestStep reference98 = ref span55[10]; + index2++; + ref QuestStep reference98 = ref span127[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130); num3 = 6; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span57 = CollectionsMarshal.AsSpan(list129); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span129 = CollectionsMarshal.AsSpan(list129); + index3 = 0; + span129[index3] = null; + index3++; + span129[index3] = null; + index3++; + span129[index3] = null; + index3++; + span129[index3] = null; + index3++; + span129[index3] = null; + index3++; + span129[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list129; reference98 = questStep8; - span55[11] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) + index2++; + span127[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) { Disabled = true, Comment = "Level 1 class quest isn't finished", PickUpQuestId = new QuestId(345) }; - span55[12] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) + index2++; + span127[index2] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) { TargetTerritoryId = (ushort)131, AethernetShortcut = new AethernetShortcut @@ -41123,7 +49673,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span55[13] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span127[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule, SkipConditions = new SkipConditions @@ -41131,7 +49682,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span55[14] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span127[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahAlchemist, SkipConditions = new SkipConditions @@ -41139,7 +49691,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - ref QuestStep reference99 = ref span55[15]; + index2++; + ref QuestStep reference99 = ref span127[index2]; QuestStep obj93 = new QuestStep(EInteractionType.Interact, 1001854u, new Vector3(-19.36377f, 34f, -42.588013f), 131) { TargetTerritoryId = (ushort)130, @@ -41153,10 +49706,12 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - num3 = 1; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = new DialogueChoice + index3 = 1; + List list130 = new List(index3); + CollectionsMarshal.SetCount(list130, index3); + Span span130 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + span130[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -41164,7 +49719,8 @@ public static class AssemblyQuestLoader }; obj93.DialogueChoices = list130; reference99 = obj93; - ref QuestStep reference100 = ref span55[16]; + index2++; + ref QuestStep reference100 = ref span127[index2]; QuestStep obj94 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah @@ -41172,31 +49728,40 @@ public static class AssemblyQuestLoader num3 = 6; List list131 = new List(num3); CollectionsMarshal.SetCount(list131, num3); - Span span58 = CollectionsMarshal.AsSpan(list131); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span131 = CollectionsMarshal.AsSpan(list131); + index3 = 0; + span131[index3] = null; + index3++; + span131[index3] = null; + index3++; + span131[index3] = null; + index3++; + span131[index3] = null; + index3++; + span131[index3] = null; + index3++; + span131[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj94.CompletionQuestVariablesFlags = list131; reference100 = obj94; obj92.Steps = list127; reference96 = obj92; - ref QuestSequence reference101 = ref span54[2]; + num++; + ref QuestSequence reference101 = ref span125[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - Span span59 = CollectionsMarshal.AsSpan(list132); - span59[0] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) + index2 = 4; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah }; - span59[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) + num2++; + span132[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation, AethernetShortcut = new AethernetShortcut @@ -41209,7 +49774,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span59[2] = new QuestStep(EInteractionType.None, null, null, 130) + num2++; + span132[num2] = new QuestStep(EInteractionType.None, null, null, 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -41217,7 +49783,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span59[3] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + num2++; + span132[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -41234,13 +49801,16 @@ public static class AssemblyQuestLoader num = 1; List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - CollectionsMarshal.AsSpan(list133)[0] = "liza"; + Span span133 = CollectionsMarshal.AsSpan(list133); + index = 0; + span133[index] = "liza"; questRoot15.Author = list133; - num = 3; - List list134 = new List(num); - CollectionsMarshal.SetCount(list134, num); - Span span60 = CollectionsMarshal.AsSpan(list134); - ref QuestSequence reference102 = ref span60[0]; + index = 3; + List list134 = new List(index); + CollectionsMarshal.SetCount(list134, index); + Span span134 = CollectionsMarshal.AsSpan(list134); + num = 0; + ref QuestSequence reference102 = ref span134[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -41248,83 +49818,111 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); obj96.Steps = list135; reference102 = obj96; - ref QuestSequence reference103 = ref span60[1]; + num++; + ref QuestSequence reference103 = ref span134[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 }; - num2 = 17; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span61 = CollectionsMarshal.AsSpan(list136); - span61[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + index2 = 17; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahAdventurers }; - span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); - ref QuestStep reference104 = ref span61[2]; + num2++; + span136[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); + num2++; + ref QuestStep reference104 = ref span136[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1003908u, new Vector3(137.95679f, 4.041112f, -41.09259f), 131); - num3 = 6; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - Span span62 = CollectionsMarshal.AsSpan(list137); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list137 = new List(index3); + CollectionsMarshal.SetCount(list137, index3); + Span span137 = CollectionsMarshal.AsSpan(list137); + num3 = 0; + span137[num3] = null; + num3++; + span137[num3] = null; + num3++; + span137[num3] = null; + num3++; + span137[num3] = null; + num3++; + span137[num3] = null; + num3++; + span137[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list137; reference104 = questStep9; - span61[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahSapphireAvenue }; - span61[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahWeaver }; - span61[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahMiner }; - span61[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGoldsmith }; - span61[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGladiator }; - span61[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.64317f, 7.734872f, 9.960203f), 131); - span61[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + num2++; + span136[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.64317f, 7.734872f, 9.960203f), 131); + num2++; + span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahThaumaturge }; - ref QuestStep reference105 = ref span61[10]; + num2++; + ref QuestStep reference105 = ref span136[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130); num3 = 6; List list138 = new List(num3); CollectionsMarshal.SetCount(list138, num3); - Span span63 = CollectionsMarshal.AsSpan(list138); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span138 = CollectionsMarshal.AsSpan(list138); + index3 = 0; + span138[index3] = null; + index3++; + span138[index3] = null; + index3++; + span138[index3] = null; + index3++; + span138[index3] = null; + index3++; + span138[index3] = null; + index3++; + span138[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list138; reference105 = questStep10; - span61[11] = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) + num2++; + span136[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { Disabled = true, Comment = "Level 1 class quest isn't finished", PickUpQuestId = new QuestId(345) }; - span61[12] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) + num2++; + span136[num2] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) { TargetTerritoryId = (ushort)131, AethernetShortcut = new AethernetShortcut @@ -41337,7 +49935,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span61[13] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule, SkipConditions = new SkipConditions @@ -41345,7 +49944,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span61[14] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahAlchemist, SkipConditions = new SkipConditions @@ -41353,7 +49953,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - ref QuestStep reference106 = ref span61[15]; + num2++; + ref QuestStep reference106 = ref span136[num2]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1001854u, new Vector3(-19.36377f, 34f, -42.588013f), 131) { TargetTerritoryId = (ushort)130, @@ -41367,10 +49968,12 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - num3 = 1; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - CollectionsMarshal.AsSpan(list139)[0] = new DialogueChoice + index3 = 1; + List list139 = new List(index3); + CollectionsMarshal.SetCount(list139, index3); + Span span139 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span139[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -41378,7 +49981,8 @@ public static class AssemblyQuestLoader }; obj98.DialogueChoices = list139; reference106 = obj98; - ref QuestStep reference107 = ref span61[16]; + num2++; + ref QuestStep reference107 = ref span136[num2]; QuestStep obj99 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah @@ -41386,18 +49990,25 @@ public static class AssemblyQuestLoader num3 = 6; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - Span span64 = CollectionsMarshal.AsSpan(list140); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span140 = CollectionsMarshal.AsSpan(list140); + index3 = 0; + span140[index3] = null; + index3++; + span140[index3] = null; + index3++; + span140[index3] = null; + index3++; + span140[index3] = null; + index3++; + span140[index3] = null; + index3++; + span140[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj99.CompletionQuestVariablesFlags = list140; reference107 = obj99; obj97.Steps = list136; reference103 = obj97; - ref QuestSequence reference108 = ref span60[2]; + num++; + ref QuestSequence reference108 = ref span134[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -41405,12 +50016,14 @@ public static class AssemblyQuestLoader num2 = 4; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span65 = CollectionsMarshal.AsSpan(list141); - span65[0] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah }; - span65[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) + index2++; + span141[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation, AethernetShortcut = new AethernetShortcut @@ -41423,7 +50036,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span65[2] = new QuestStep(EInteractionType.None, null, null, 130) + index2++; + span141[index2] = new QuestStep(EInteractionType.None, null, null, 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -41431,7 +50045,8 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - span65[3] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + index2++; + span141[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -41448,24 +50063,30 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - CollectionsMarshal.AsSpan(list142)[0] = "liza"; + Span span142 = CollectionsMarshal.AsSpan(list142); + index = 0; + span142[index] = "liza"; questRoot16.Author = list142; - num = 5; - List list143 = new List(num); - CollectionsMarshal.SetCount(list143, num); - Span span66 = CollectionsMarshal.AsSpan(list143); - ref QuestSequence reference109 = ref span66[0]; + index = 5; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + Span span143 = CollectionsMarshal.AsSpan(list143); + num = 0; + ref QuestSequence reference109 = ref span143[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj101.Steps = list144; reference109 = obj101; - ref QuestSequence reference110 = ref span66[1]; + num++; + ref QuestSequence reference110 = ref span143[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 @@ -41473,30 +50094,40 @@ public static class AssemblyQuestLoader num2 = 8; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span67 = CollectionsMarshal.AsSpan(list145); - span67[0] = new QuestStep(EInteractionType.EquipItem, null, null, 145) + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 145) { ItemId = 2995u }; - span67[1] = new QuestStep(EInteractionType.EquipItem, null, null, 145) + index2++; + span145[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 145) { ItemId = 3306u }; - ref QuestStep reference111 = ref span67[2]; + index2++; + ref QuestStep reference111 = ref span145[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1004327u, new Vector3(-412.03937f, -48.15f, 102.61682f), 145); - num3 = 6; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span68 = CollectionsMarshal.AsSpan(list146); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + Span span146 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list146; reference111 = questStep11; - ref QuestStep reference112 = ref span67[3]; + index2++; + ref QuestStep reference112 = ref span145[index2]; QuestStep obj103 = new QuestStep(EInteractionType.Jump, null, new Vector3(-409.44067f, -48.15f, 101.391624f), 145) { JumpDestination = new JumpDestination @@ -41510,131 +50141,169 @@ public static class AssemblyQuestLoader num3 = 6; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - Span span69 = CollectionsMarshal.AsSpan(list147); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span147 = CollectionsMarshal.AsSpan(list147); + index3 = 0; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list147; skipConditions3.StepIf = skipStepConditions; obj103.SkipConditions = skipConditions3; reference112 = obj103; - ref QuestStep reference113 = ref span67[4]; + index2++; + ref QuestStep reference113 = ref span145[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1004506u, new Vector3(-416.64764f, -54.15f, 96.42175f), 145); - num3 = 6; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - Span span70 = CollectionsMarshal.AsSpan(list148); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + Span span148 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list148; reference113 = questStep12; - ref QuestStep reference114 = ref span67[5]; + index2++; + ref QuestStep reference114 = ref span145[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1004325u, new Vector3(-402.45673f, -57.07999f, 131.82263f), 145); num3 = 6; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - Span span71 = CollectionsMarshal.AsSpan(list149); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span149 = CollectionsMarshal.AsSpan(list149); + index3 = 0; + span149[index3] = null; + index3++; + span149[index3] = null; + index3++; + span149[index3] = null; + index3++; + span149[index3] = null; + index3++; + span149[index3] = null; + index3++; + span149[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list149; reference114 = questStep13; - ref QuestStep reference115 = ref span67[6]; + index2++; + ref QuestStep reference115 = ref span145[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1004556u, new Vector3(-394.85773f, -57.30005f, 173.32715f), 145); - num3 = 6; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - Span span72 = CollectionsMarshal.AsSpan(list150); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list150 = new List(index3); + CollectionsMarshal.SetCount(list150, index3); + Span span150 = CollectionsMarshal.AsSpan(list150); + num3 = 0; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list150; reference115 = questStep14; - ref QuestStep reference116 = ref span67[7]; + index2++; + ref QuestStep reference116 = ref span145[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1003947u, new Vector3(-369.19202f, -57.079987f, 140.0625f), 145); num3 = 6; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - Span span73 = CollectionsMarshal.AsSpan(list151); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span151 = CollectionsMarshal.AsSpan(list151); + index3 = 0; + span151[index3] = null; + index3++; + span151[index3] = null; + index3++; + span151[index3] = null; + index3++; + span151[index3] = null; + index3++; + span151[index3] = null; + index3++; + span151[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list151; reference116 = questStep15; obj102.Steps = list145; reference110 = obj102; - ref QuestSequence reference117 = ref span66[2]; + num++; + ref QuestSequence reference117 = ref span143[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1004324u, new Vector3(-377.6761f, -55.754112f, 108.17114f), 145); + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.Interact, 1004324u, new Vector3(-377.6761f, -55.754112f, 108.17114f), 145); obj104.Steps = list152; reference117 = obj104; - ref QuestSequence reference118 = ref span66[3]; + num++; + ref QuestSequence reference118 = ref span143[num]; QuestSequence obj105 = new QuestSequence { Sequence = 3 }; - num2 = 3; + num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span74 = CollectionsMarshal.AsSpan(list153); - span74[0] = new QuestStep(EInteractionType.EquipItem, null, null, 145) - { - ItemId = 2995u - }; - span74[1] = new QuestStep(EInteractionType.EquipItem, null, null, 145) - { - ItemId = 3306u - }; - span74[2] = new QuestStep(EInteractionType.Interact, 1004330u, new Vector3(-221.45422f, -30.074055f, 200.15259f), 145); + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.Interact, 1004330u, new Vector3(-221.45422f, -30.074055f, 200.15259f), 145); obj105.Steps = list153; reference118 = obj105; - ref QuestSequence reference119 = ref span66[4]; + num++; + ref QuestSequence reference119 = ref span143[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 6; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - Span span75 = CollectionsMarshal.AsSpan(list154); - span75[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + index2 = 6; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span75[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 140); - span75[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span75[3] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span154[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 140); + num2++; + span154[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span154[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span75[4] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num2++; + span154[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span75[5] = new QuestStep(EInteractionType.CompleteQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + num2++; + span154[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj106.Steps = list154; reference119 = obj106; questRoot16.QuestSequence = list143; @@ -41644,13 +50313,16 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "Cacahuetes"; + Span span155 = CollectionsMarshal.AsSpan(list155); + index = 0; + span155[index] = "Cacahuetes"; questRoot17.Author = list155; - num = 2; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span76 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference120 = ref span76[0]; + index = 2; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + Span span156 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference120 = ref span156[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -41658,23 +50330,30 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002281u, new Vector3(-115.739685f, 41.600117f, 118.88306f), 131); + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002281u, new Vector3(-115.739685f, 41.600117f, 118.88306f), 131); obj107.Steps = list157; reference120 = obj107; - ref QuestSequence reference121 = ref span76[1]; + num++; + ref QuestSequence reference121 = ref span156[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - ref QuestStep reference122 = ref CollectionsMarshal.AsSpan(list158)[0]; + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + ref QuestStep reference122 = ref span158[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.CompleteQuest, 1002299u, new Vector3(-98.8938f, 40.200146f, 120.83618f), 131); - num3 = 1; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - CollectionsMarshal.AsSpan(list159)[0] = new DialogueChoice + index3 = 1; + List list159 = new List(index3); + CollectionsMarshal.SetCount(list159, index3); + Span span159 = CollectionsMarshal.AsSpan(list159); + num3 = 0; + span159[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSALC011_00575_Q1_1") @@ -41690,13 +50369,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; + Span span160 = CollectionsMarshal.AsSpan(list160); + index = 0; + span160[index] = "liza"; questRoot18.Author = list160; - num = 2; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span77 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference123 = ref span77[0]; + index = 2; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + Span span161 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference123 = ref span161[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -41704,18 +50386,23 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011030u, new Vector3(7.522644f, -1.7667189E-06f, -68.589294f), 388); + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011030u, new Vector3(7.522644f, -1.7667189E-06f, -68.589294f), 388); obj109.Steps = list162; reference123 = obj109; - ref QuestSequence reference124 = ref span77[1]; + num++; + ref QuestSequence reference124 = ref span161[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010472u, new Vector3(-53.26935f, 0.3093315f, 69.41321f), 148) + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span163[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010472u, new Vector3(-53.26935f, 0.3093315f, 69.41321f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; @@ -41728,13 +50415,16 @@ public static class AssemblyQuestLoader num = 1; List list164 = new List(num); CollectionsMarshal.SetCount(list164, num); - CollectionsMarshal.AsSpan(list164)[0] = "JerryWester"; + Span span164 = CollectionsMarshal.AsSpan(list164); + index = 0; + span164[index] = "JerryWester"; questRoot19.Author = list164; - num = 5; - List list165 = new List(num); - CollectionsMarshal.SetCount(list165, num); - Span span78 = CollectionsMarshal.AsSpan(list165); - ref QuestSequence reference125 = ref span78[0]; + index = 5; + List list165 = new List(index); + CollectionsMarshal.SetCount(list165, index); + Span span165 = CollectionsMarshal.AsSpan(list165); + num = 0; + ref QuestSequence reference125 = ref span165[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -41742,7 +50432,9 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + Span span166 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span166[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -41756,24 +50448,28 @@ public static class AssemblyQuestLoader }; obj111.Steps = list166; reference125 = obj111; - ref QuestSequence reference126 = ref span78[1]; + num++; + ref QuestSequence reference126 = ref span165[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - Span span79 = CollectionsMarshal.AsSpan(list167); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + index2 = 2; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span79[1] = new QuestStep(EInteractionType.Interact, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139); + num2++; + span167[num2] = new QuestStep(EInteractionType.Interact, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139); obj112.Steps = list167; reference126 = obj112; - ref QuestSequence reference127 = ref span78[2]; + num++; + ref QuestSequence reference127 = ref span165[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -41781,35 +50477,42 @@ public static class AssemblyQuestLoader num2 = 3; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span80 = CollectionsMarshal.AsSpan(list168); - span80[0] = new QuestStep(EInteractionType.Interact, 1004349u, new Vector3(444.99866f, -4.487237f, -453.02515f), 156) + Span span168 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span168[index2] = new QuestStep(EInteractionType.Interact, 1004349u, new Vector3(444.99866f, -4.487237f, -453.02515f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span80[1] = new QuestStep(EInteractionType.Interact, 1007067u, new Vector3(444.99866f, -4.3439503f, -446.00598f), 156); - span80[2] = new QuestStep(EInteractionType.Interact, 1006550u, new Vector3(449.33228f, -12.436822f, -387.5639f), 156) + index2++; + span168[index2] = new QuestStep(EInteractionType.Interact, 1007067u, new Vector3(444.99866f, -4.3439503f, -446.00598f), 156); + index2++; + span168[index2] = new QuestStep(EInteractionType.Interact, 1006550u, new Vector3(449.33228f, -12.436822f, -387.5639f), 156) { StopDistance = 1f, Fly = true }; obj113.Steps = list168; reference127 = obj113; - ref QuestSequence reference128 = ref span78[3]; + num++; + ref QuestSequence reference128 = ref span165[num]; QuestSequence obj114 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 2005571u, new Vector3(442.8015f, -19.516357f, -291.43213f), 156) + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + Span span169 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span169[num2] = new QuestStep(EInteractionType.Interact, 2005571u, new Vector3(442.8015f, -19.516357f, -291.43213f), 156) { Fly = true }; obj114.Steps = list169; reference128 = obj114; - ref QuestSequence reference129 = ref span78[4]; + num++; + ref QuestSequence reference129 = ref span165[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -41817,13 +50520,15 @@ public static class AssemblyQuestLoader num2 = 2; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - Span span81 = CollectionsMarshal.AsSpan(list170); - span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + Span span170 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span170[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + index2++; + span170[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { NextQuestId = new QuestId(586) }; @@ -41836,21 +50541,26 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "JerryWester"; + Span span171 = CollectionsMarshal.AsSpan(list171); + index = 0; + span171[index] = "JerryWester"; questRoot20.Author = list171; - num = 3; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span82 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference130 = ref span82[0]; + index = 3; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + Span span172 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference130 = ref span172[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -41863,7 +50573,8 @@ public static class AssemblyQuestLoader }; obj116.Steps = list173; reference130 = obj116; - ref QuestSequence reference131 = ref span82[1]; + num++; + ref QuestSequence reference131 = ref span172[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 @@ -41871,13 +50582,15 @@ public static class AssemblyQuestLoader num2 = 2; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span83 = CollectionsMarshal.AsSpan(list174); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(465.77087f, 367.76678f, -658.1668f), 155) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(465.77087f, 367.76678f, -658.1668f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span83[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014199u, new Vector3(531.33435f, 348.49677f, -737.4227f), 155) + index2++; + span174[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014199u, new Vector3(531.33435f, 348.49677f, -737.4227f), 155) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -41887,21 +50600,24 @@ public static class AssemblyQuestLoader }; obj117.Steps = list174; reference131 = obj117; - ref QuestSequence reference132 = ref span82[2]; + num++; + ref QuestSequence reference132 = ref span172[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - Span span84 = CollectionsMarshal.AsSpan(list175); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + index2 = 2; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + num2++; + span175[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { NextQuestId = new QuestId(588) }; @@ -41914,13 +50630,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "JerryWester"; + Span span176 = CollectionsMarshal.AsSpan(list176); + index = 0; + span176[index] = "JerryWester"; questRoot21.Author = list176; - num = 5; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span85 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference133 = ref span85[0]; + index = 5; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + Span span177 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference133 = ref span177[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -41928,7 +50647,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -41941,16 +50662,18 @@ public static class AssemblyQuestLoader }; obj119.Steps = list178; reference133 = obj119; - ref QuestSequence reference134 = ref span85[1]; + num++; + ref QuestSequence reference134 = ref span177[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - Span span86 = CollectionsMarshal.AsSpan(list179); - ref QuestStep reference135 = ref span86[0]; + index2 = 4; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + ref QuestStep reference135 = ref span179[num2]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1011920u, new Vector3(519.8595f, -51.071976f, 88.24292f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather @@ -41958,47 +50681,69 @@ public static class AssemblyQuestLoader num3 = 6; List list180 = new List(num3); CollectionsMarshal.SetCount(list180, num3); - Span span87 = CollectionsMarshal.AsSpan(list180); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span180 = CollectionsMarshal.AsSpan(list180); + index3 = 0; + span180[index3] = null; + index3++; + span180[index3] = null; + index3++; + span180[index3] = null; + index3++; + span180[index3] = null; + index3++; + span180[index3] = null; + index3++; + span180[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj121.CompletionQuestVariablesFlags = list180; reference135 = obj121; - span86[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(502.8876f, -48.989826f, 34.93356f), 398); - ref QuestStep reference136 = ref span86[2]; + num2++; + span179[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(502.8876f, -48.989826f, 34.93356f), 398); + num2++; + ref QuestStep reference136 = ref span179[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1011919u, new Vector3(497.82556f, -49.790283f, 11.825684f), 398); - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span88 = CollectionsMarshal.AsSpan(list181); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list181 = new List(index3); + CollectionsMarshal.SetCount(list181, index3); + Span span181 = CollectionsMarshal.AsSpan(list181); + num3 = 0; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list181; reference136 = questStep17; - ref QuestStep reference137 = ref span86[3]; + num2++; + ref QuestStep reference137 = ref span179[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1011921u, new Vector3(453.36072f, -51.141403f, 58.579346f), 398); num3 = 6; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - Span span89 = CollectionsMarshal.AsSpan(list182); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span182 = CollectionsMarshal.AsSpan(list182); + index3 = 0; + span182[index3] = null; + index3++; + span182[index3] = null; + index3++; + span182[index3] = null; + index3++; + span182[index3] = null; + index3++; + span182[index3] = null; + index3++; + span182[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list182; reference137 = questStep18; obj120.Steps = list179; reference134 = obj120; - ref QuestSequence reference138 = ref span85[2]; + num++; + ref QuestSequence reference138 = ref span177[num]; QuestSequence obj122 = new QuestSequence { Sequence = 2 @@ -42006,8 +50751,9 @@ public static class AssemblyQuestLoader num2 = 2; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span90 = CollectionsMarshal.AsSpan(list183); - span90[0] = new QuestStep(EInteractionType.Interact, 2005574u, new Vector3(447.07397f, -47.715027f, -283.68048f), 398) + Span span183 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span183[index2] = new QuestStep(EInteractionType.Interact, 2005574u, new Vector3(447.07397f, -47.715027f, -283.68048f), 398) { StopDistance = 0.25f, Fly = true, @@ -42019,7 +50765,8 @@ public static class AssemblyQuestLoader } } }; - span90[1] = new QuestStep(EInteractionType.Interact, 2005574u, new Vector3(447.07397f, -47.715027f, -283.68048f), 398) + index2++; + span183[index2] = new QuestStep(EInteractionType.Interact, 2005574u, new Vector3(447.07397f, -47.715027f, -283.68048f), 398) { Fly = false, SkipConditions = new SkipConditions @@ -42032,17 +50779,29 @@ public static class AssemblyQuestLoader }; obj122.Steps = list183; reference138 = obj122; - ref QuestSequence reference139 = ref span85[3]; + num++; + ref QuestSequence reference139 = ref span177[num]; QuestSequence obj123 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - Span span91 = CollectionsMarshal.AsSpan(list184); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(423.53406f, -26.253891f, -550.60297f), 398); - ref QuestStep reference140 = ref span91[1]; + index2 = 3; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span184[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(423.53406f, -26.253891f, -550.60297f), 398) + { + SkipConditions = new SkipConditions + { + StepIf = new SkipStepConditions + { + Flying = ELockedSkipCondition.Unlocked + } + } + }; + num2++; + ref QuestStep reference140 = ref span184[num2]; QuestStep obj124 = new QuestStep(EInteractionType.Combat, 2005573u, new Vector3(441.94702f, -21.530518f, -545.03705f), 398) { StopDistance = 0.25f, @@ -42050,10 +50809,12 @@ public static class AssemblyQuestLoader ItemId = 2001590u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = 4373u; + index3 = 1; + List list185 = new List(index3); + CollectionsMarshal.SetCount(list185, index3); + Span span185 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span185[num3] = 4373u; obj124.KillEnemyDataIds = list185; obj124.SkipConditions = new SkipConditions { @@ -42063,7 +50824,8 @@ public static class AssemblyQuestLoader } }; reference140 = obj124; - ref QuestStep reference141 = ref span91[2]; + num2++; + ref QuestStep reference141 = ref span184[num2]; QuestStep obj125 = new QuestStep(EInteractionType.Combat, 2005573u, new Vector3(441.94702f, -21.530518f, -545.03705f), 398) { StopDistance = 0.25f, @@ -42075,7 +50837,9 @@ public static class AssemblyQuestLoader num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = 4373u; + Span span186 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span186[index3] = 4373u; obj125.KillEnemyDataIds = list186; obj125.SkipConditions = new SkipConditions { @@ -42087,7 +50851,8 @@ public static class AssemblyQuestLoader reference141 = obj125; obj123.Steps = list184; reference139 = obj123; - ref QuestSequence reference142 = ref span85[4]; + num++; + ref QuestSequence reference142 = ref span177[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -42095,13 +50860,15 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span92 = CollectionsMarshal.AsSpan(list187); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + Span span187 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span187[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span92[1] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + index2++; + span187[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { NextQuestId = new QuestId(596) }; @@ -42114,26 +50881,33 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; + Span span188 = CollectionsMarshal.AsSpan(list188); + index = 0; + span188[index] = "liza"; questRoot22.Author = list188; - num = 2; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span93 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference143 = ref span93[0]; + index = 2; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + Span span189 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference143 = ref span189[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list190)[0]; + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + ref QuestStep reference144 = ref span190[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.AcceptQuest, 1003987u, new Vector3(33.37146f, 4.0999947f, -151.99518f), 182); - num3 = 1; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = new DialogueChoice + index3 = 1; + List list191 = new List(index3); + CollectionsMarshal.SetCount(list191, index3); + Span span191 = CollectionsMarshal.AsSpan(list191); + num3 = 0; + span191[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "opening/OpeningUldah", @@ -42144,7 +50918,8 @@ public static class AssemblyQuestLoader reference144 = questStep19; obj127.Steps = list190; reference143 = obj127; - ref QuestSequence reference145 = ref span93[1]; + num++; + ref QuestSequence reference145 = ref span189[num]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue @@ -42152,7 +50927,9 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); obj128.Steps = list192; reference145 = obj128; questRoot22.QuestSequence = list189; @@ -42162,21 +50939,26 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "liza"; + Span span193 = CollectionsMarshal.AsSpan(list193); + index = 0; + span193[index] = "liza"; questRoot23.Author = list193; - num = 2; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span94 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference146 = ref span94[0]; + index = 2; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + Span span194 = CollectionsMarshal.AsSpan(list194); + num = 0; + ref QuestSequence reference146 = ref span194[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - ref QuestStep reference147 = ref CollectionsMarshal.AsSpan(list195)[0]; + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + ref QuestStep reference147 = ref span195[num2]; QuestStep obj130 = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah @@ -42186,14 +50968,17 @@ public static class AssemblyQuestLoader num3 = 1; List list196 = new List(num3); CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = 130; + Span span196 = CollectionsMarshal.AsSpan(list196); + index3 = 0; + span196[index3] = 130; skipStepConditions2.NotInTerritory = list196; skipConditions4.StepIf = skipStepConditions2; obj130.SkipConditions = skipConditions4; reference147 = obj130; obj129.Steps = list195; reference146 = obj129; - ref QuestSequence reference148 = ref span94[1]; + num++; + ref QuestSequence reference148 = ref span194[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -42201,20 +50986,24 @@ public static class AssemblyQuestLoader num2 = 4; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span95 = CollectionsMarshal.AsSpan(list197); - span95[0] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) { TargetTerritoryId = (ushort)131 }; - span95[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span197[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule }; - span95[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2++; + span197[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahAlchemist }; - span95[3] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141) + index2++; + span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141) { AethernetShortcut = new AethernetShortcut { @@ -42231,21 +51020,26 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "JerryWester"; + Span span198 = CollectionsMarshal.AsSpan(list198); + index = 0; + span198[index] = "JerryWester"; questRoot24.Author = list198; - num = 10; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span96 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference149 = ref span96[0]; + index = 10; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + Span span199 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference149 = ref span199[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -42258,7 +51052,8 @@ public static class AssemblyQuestLoader }; obj132.Steps = list200; reference149 = obj132; - ref QuestSequence reference150 = ref span96[1]; + num++; + ref QuestSequence reference150 = ref span199[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -42266,30 +51061,36 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1013282u, new Vector3(304.1886f, -36.405907f, 332.69226f), 138) + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.Interact, 1013282u, new Vector3(304.1886f, -36.405907f, 332.69226f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj133.Steps = list201; reference150 = obj133; - ref QuestSequence reference151 = ref span96[2]; + num++; + ref QuestSequence reference151 = ref span199[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - Span span97 = CollectionsMarshal.AsSpan(list202); - span97[0] = new QuestStep(EInteractionType.Interact, 1003584u, new Vector3(317.43335f, -36.325005f, 352.86487f), 138) + index2 = 2; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.Interact, 1003584u, new Vector3(317.43335f, -36.325005f, 352.86487f), 138) { TargetTerritoryId = (ushort)138 }; - span97[1] = new QuestStep(EInteractionType.Interact, 1013287u, new Vector3(-297.6883f, -41.69223f, 408.5603f), 138); + num2++; + span202[num2] = new QuestStep(EInteractionType.Interact, 1013287u, new Vector3(-297.6883f, -41.69223f, 408.5603f), 138); obj134.Steps = list202; reference151 = obj134; - ref QuestSequence reference152 = ref span96[3]; + num++; + ref QuestSequence reference152 = ref span199[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -42297,34 +51098,42 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - ref QuestStep reference153 = ref CollectionsMarshal.AsSpan(list203)[0]; + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + ref QuestStep reference153 = ref span203[index2]; QuestStep obj136 = new QuestStep(EInteractionType.Combat, 1013292u, new Vector3(-229.8772f, -37.628788f, 545.15906f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - Span span98 = CollectionsMarshal.AsSpan(list204); - span98[0] = 4361u; - span98[1] = 4362u; + index3 = 2; + List list204 = new List(index3); + CollectionsMarshal.SetCount(list204, index3); + Span span204 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span204[num3] = 4361u; + num3++; + span204[num3] = 4362u; obj136.KillEnemyDataIds = list204; reference153 = obj136; obj135.Steps = list203; reference152 = obj135; - ref QuestSequence reference154 = ref span96[4]; + num++; + ref QuestSequence reference154 = ref span199[num]; QuestSequence obj137 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1013292u, new Vector3(-229.8772f, -37.628788f, 545.15906f), 138); + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + Span span205 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span205[num2] = new QuestStep(EInteractionType.Interact, 1013292u, new Vector3(-229.8772f, -37.628788f, 545.15906f), 138); obj137.Steps = list205; reference154 = obj137; - ref QuestSequence reference155 = ref span96[5]; + num++; + ref QuestSequence reference155 = ref span199[num]; QuestSequence obj138 = new QuestSequence { Sequence = 5 @@ -42332,7 +51141,9 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - ref QuestStep reference156 = ref CollectionsMarshal.AsSpan(list206)[0]; + Span span206 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + ref QuestStep reference156 = ref span206[index2]; QuestStep obj139 = new QuestStep(EInteractionType.Combat, 1013334u, new Vector3(-276.60034f, -37.47169f, 586.96875f), 138) { Fly = true, @@ -42341,25 +51152,31 @@ public static class AssemblyQuestLoader num3 = 2; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - Span span99 = CollectionsMarshal.AsSpan(list207); - span99[0] = 4361u; - span99[1] = 4362u; + Span span207 = CollectionsMarshal.AsSpan(list207); + index3 = 0; + span207[index3] = 4361u; + index3++; + span207[index3] = 4362u; obj139.KillEnemyDataIds = list207; reference156 = obj139; obj138.Steps = list206; reference155 = obj138; - ref QuestSequence reference157 = ref span96[6]; + num++; + ref QuestSequence reference157 = ref span199[num]; QuestSequence obj140 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1013334u, new Vector3(-276.60034f, -37.47169f, 586.96875f), 138); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.Interact, 1013334u, new Vector3(-276.60034f, -37.47169f, 586.96875f), 138); obj140.Steps = list208; reference157 = obj140; - ref QuestSequence reference158 = ref span96[7]; + num++; + ref QuestSequence reference158 = ref span199[num]; QuestSequence obj141 = new QuestSequence { Sequence = 7 @@ -42367,34 +51184,42 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list209)[0]; + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + ref QuestStep reference159 = ref span209[index2]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, 1013338u, new Vector3(-253.25403f, -39.465584f, 661.21924f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - Span span100 = CollectionsMarshal.AsSpan(list210); - span100[0] = 4402u; - span100[1] = 4403u; + index3 = 2; + List list210 = new List(index3); + CollectionsMarshal.SetCount(list210, index3); + Span span210 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span210[num3] = 4402u; + num3++; + span210[num3] = 4403u; obj142.KillEnemyDataIds = list210; reference159 = obj142; obj141.Steps = list209; reference158 = obj141; - ref QuestSequence reference160 = ref span96[8]; + num++; + ref QuestSequence reference160 = ref span199[num]; QuestSequence obj143 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1013337u, new Vector3(-254.10852f, -39.315884f, 658.8082f), 138); + index2 = 1; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + Span span211 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + span211[num2] = new QuestStep(EInteractionType.Interact, 1013337u, new Vector3(-254.10852f, -39.315884f, 658.8082f), 138); obj143.Steps = list211; reference160 = obj143; - ref QuestSequence reference161 = ref span96[9]; + num++; + ref QuestSequence reference161 = ref span199[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -42402,7 +51227,9 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013282u, new Vector3(304.1886f, -36.405907f, 332.69226f), 138) + Span span212 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span212[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013282u, new Vector3(304.1886f, -36.405907f, 332.69226f), 138) { NextQuestId = new QuestId(1677) }; @@ -42415,21 +51242,26 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - CollectionsMarshal.AsSpan(list213)[0] = "liza"; + Span span213 = CollectionsMarshal.AsSpan(list213); + index = 0; + span213[index] = "liza"; questRoot25.Author = list213; - num = 2; - List list214 = new List(num); - CollectionsMarshal.SetCount(list214, num); - Span span101 = CollectionsMarshal.AsSpan(list214); - ref QuestSequence reference162 = ref span101[0]; + index = 2; + List list214 = new List(index); + CollectionsMarshal.SetCount(list214, index); + Span span214 = CollectionsMarshal.AsSpan(list214); + num = 0; + ref QuestSequence reference162 = ref span214[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - ref QuestStep reference163 = ref CollectionsMarshal.AsSpan(list215)[0]; + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + ref QuestStep reference163 = ref span215[num2]; QuestStep obj146 = new QuestStep(EInteractionType.AcceptQuest, 1002282u, new Vector3(3.5552979f, 7.5999613f, 153.2157f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -42447,14 +51279,17 @@ public static class AssemblyQuestLoader num3 = 1; List list216 = new List(num3); CollectionsMarshal.SetCount(list216, num3); - CollectionsMarshal.AsSpan(list216)[0] = 131; + Span span216 = CollectionsMarshal.AsSpan(list216); + index3 = 0; + span216[index3] = 131; obj147.InTerritory = list216; skipConditions5.AetheryteShortcutIf = obj147; obj146.SkipConditions = skipConditions5; reference163 = obj146; obj145.Steps = list215; reference162 = obj145; - ref QuestSequence reference164 = ref span101[1]; + num++; + ref QuestSequence reference164 = ref span214[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue @@ -42462,12 +51297,16 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list217)[0]; + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + ref QuestStep reference165 = ref span217[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.CompleteQuest, 1002298u, new Vector3(-18.997498f, 6.2f, 157.42725f), 131); - num3 = 1; - List list218 = new List(num3); - CollectionsMarshal.SetCount(list218, num3); - CollectionsMarshal.AsSpan(list218)[0] = new DialogueChoice + index3 = 1; + List list218 = new List(index3); + CollectionsMarshal.SetCount(list218, index3); + Span span218 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span218[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSMIN011_00597_Q1_000_1") @@ -42484,21 +51323,26 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - CollectionsMarshal.AsSpan(list219)[0] = "JerryWester"; + Span span219 = CollectionsMarshal.AsSpan(list219); + index = 0; + span219[index] = "JerryWester"; questRoot26.Author = list219; - num = 9; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - Span span102 = CollectionsMarshal.AsSpan(list220); - ref QuestSequence reference166 = ref span102[0]; + index = 9; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + Span span220 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference166 = ref span220[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span221[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -42511,7 +51355,8 @@ public static class AssemblyQuestLoader }; obj149.Steps = list221; reference166 = obj149; - ref QuestSequence reference167 = ref span102[1]; + num++; + ref QuestSequence reference167 = ref span220[num]; QuestSequence obj150 = new QuestSequence { Sequence = 1 @@ -42519,32 +51364,38 @@ public static class AssemblyQuestLoader num2 = 2; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span103 = CollectionsMarshal.AsSpan(list222); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + Span span222 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span222[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Mount = true }; - span103[1] = new QuestStep(EInteractionType.Interact, 1013339u, new Vector3(396.16992f, 8.113181f, 48.142212f), 139) + index2++; + span222[index2] = new QuestStep(EInteractionType.Interact, 1013339u, new Vector3(396.16992f, 8.113181f, 48.142212f), 139) { Fly = true }; obj150.Steps = list222; reference167 = obj150; - ref QuestSequence reference168 = ref span102[2]; + num++; + ref QuestSequence reference168 = ref span220[num]; QuestSequence obj151 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 1014284u, new Vector3(384.2068f, -0.39099246f, 65.90369f), 139) + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + Span span223 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span223[num2] = new QuestStep(EInteractionType.Interact, 1014284u, new Vector3(384.2068f, -0.39099246f, 65.90369f), 139) { Fly = true }; obj151.Steps = list223; reference168 = obj151; - ref QuestSequence reference169 = ref span102[3]; + num++; + ref QuestSequence reference169 = ref span220[num]; QuestSequence obj152 = new QuestSequence { Sequence = 3 @@ -42552,27 +51403,33 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Emote, 1014284u, new Vector3(384.2068f, -0.39099246f, 65.90369f), 139) + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new QuestStep(EInteractionType.Emote, 1014284u, new Vector3(384.2068f, -0.39099246f, 65.90369f), 139) { Emote = EEmote.Slap }; obj152.Steps = list224; reference169 = obj152; - ref QuestSequence reference170 = ref span102[4]; + num++; + ref QuestSequence reference170 = ref span220[num]; QuestSequence obj153 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1013304u, new Vector3(347.37158f, 3.0454707f, -9.445435f), 139) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.Interact, 1013304u, new Vector3(347.37158f, 3.0454707f, -9.445435f), 139) { Fly = true }; obj153.Steps = list225; reference170 = obj153; - ref QuestSequence reference171 = ref span102[5]; + num++; + ref QuestSequence reference171 = ref span220[num]; QuestSequence obj154 = new QuestSequence { Sequence = 5 @@ -42580,7 +51437,9 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - ref QuestStep reference172 = ref CollectionsMarshal.AsSpan(list226)[0]; + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + ref QuestStep reference172 = ref span226[index2]; QuestStep obj155 = new QuestStep(EInteractionType.Combat, 1013310u, new Vector3(354.63477f, 23.944334f, -133.44019f), 139) { Fly = true, @@ -42589,25 +51448,31 @@ public static class AssemblyQuestLoader num3 = 2; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - Span span104 = CollectionsMarshal.AsSpan(list227); - span104[0] = 4404u; - span104[1] = 4405u; + Span span227 = CollectionsMarshal.AsSpan(list227); + index3 = 0; + span227[index3] = 4404u; + index3++; + span227[index3] = 4405u; obj155.KillEnemyDataIds = list227; reference172 = obj155; obj154.Steps = list226; reference171 = obj154; - ref QuestSequence reference173 = ref span102[6]; + num++; + ref QuestSequence reference173 = ref span220[num]; QuestSequence obj156 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1013310u, new Vector3(354.63477f, 23.944334f, -133.44019f), 139); + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.Interact, 1013310u, new Vector3(354.63477f, 23.944334f, -133.44019f), 139); obj156.Steps = list228; reference173 = obj156; - ref QuestSequence reference174 = ref span102[7]; + num++; + ref QuestSequence reference174 = ref span220[num]; QuestSequence obj157 = new QuestSequence { Sequence = 7 @@ -42615,23 +51480,28 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1013307u, new Vector3(281.69678f, 38.53493f, -176.74524f), 139); + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span229[index2] = new QuestStep(EInteractionType.Interact, 1013307u, new Vector3(281.69678f, 38.53493f, -176.74524f), 139); obj157.Steps = list229; reference174 = obj157; - ref QuestSequence reference175 = ref span102[8]; + num++; + ref QuestSequence reference175 = ref span220[num]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - Span span105 = CollectionsMarshal.AsSpan(list230); - span105[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + index2 = 2; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span230[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true }; - span105[1] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + num2++; + span230[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { NextQuestId = new QuestId(601) }; @@ -42644,13 +51514,16 @@ public static class AssemblyQuestLoader num = 1; List list231 = new List(num); CollectionsMarshal.SetCount(list231, num); - CollectionsMarshal.AsSpan(list231)[0] = "liza"; + Span span231 = CollectionsMarshal.AsSpan(list231); + index = 0; + span231[index] = "liza"; questRoot27.Author = list231; - num = 2; - List list232 = new List(num); - CollectionsMarshal.SetCount(list232, num); - Span span106 = CollectionsMarshal.AsSpan(list232); - ref QuestSequence reference176 = ref span106[0]; + index = 2; + List list232 = new List(index); + CollectionsMarshal.SetCount(list232, index); + Span span232 = CollectionsMarshal.AsSpan(list232); + num = 0; + ref QuestSequence reference176 = ref span232[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 @@ -42658,7 +51531,9 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - ref QuestStep reference177 = ref CollectionsMarshal.AsSpan(list233)[0]; + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + ref QuestStep reference177 = ref span233[index2]; QuestStep obj160 = new QuestStep(EInteractionType.AcceptQuest, 1002298u, new Vector3(-18.997498f, 6.2f, 157.42725f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -42673,38 +51548,45 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list234 = new List(num3); - CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = 131; + index3 = 1; + List list234 = new List(index3); + CollectionsMarshal.SetCount(list234, index3); + Span span234 = CollectionsMarshal.AsSpan(list234); + num3 = 0; + span234[num3] = 131; obj161.InTerritory = list234; skipConditions6.AetheryteShortcutIf = obj161; obj160.SkipConditions = skipConditions6; reference177 = obj160; obj159.Steps = list233; reference176 = obj159; - ref QuestSequence reference178 = ref span106[1]; + num++; + ref QuestSequence reference178 = ref span232[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - Span span107 = CollectionsMarshal.AsSpan(list235); - ref QuestStep reference179 = ref span107[0]; + index2 = 2; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + Span span235 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + ref QuestStep reference179 = ref span235[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Gather, null, null, 131); num3 = 1; List list236 = new List(num3); CollectionsMarshal.SetCount(list236, num3); - CollectionsMarshal.AsSpan(list236)[0] = new GatheredItem + Span span236 = CollectionsMarshal.AsSpan(list236); + index3 = 0; + span236[index3] = new GatheredItem { ItemId = 5106u, ItemCount = 10 }; questStep21.ItemsToGather = list236; reference179 = questStep21; - ref QuestStep reference180 = ref span107[1]; + num2++; + ref QuestStep reference180 = ref span235[num2]; QuestStep obj163 = new QuestStep(EInteractionType.CompleteQuest, 1002298u, new Vector3(-18.997498f, 6.2f, 157.42725f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -42716,12 +51598,14 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 2; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - Span span108 = CollectionsMarshal.AsSpan(list237); - span108[0] = 130; - span108[1] = 131; + index3 = 2; + List list237 = new List(index3); + CollectionsMarshal.SetCount(list237, index3); + Span span237 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span237[num3] = 130; + num3++; + span237[num3] = 131; skipAetheryteCondition2.InTerritory = list237; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition2; obj163.SkipConditions = skipConditions7; @@ -42739,13 +51623,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 2; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 2; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -42753,7 +51640,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1002298u, new Vector3(-18.997498f, 6.2f, 157.42725f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -42771,35 +51660,42 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = 131; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = 131; obj3.InTerritory = list4; skipConditions.AetheryteShortcutIf = obj3; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - ref QuestStep reference4 = ref span2[0]; + index2 = 2; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + ref QuestStep reference4 = ref span5[num2]; QuestStep questStep = new QuestStep(EInteractionType.Gather, null, null, 131); - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new GatheredItem + index3 = 1; + List list6 = new List(index3); + CollectionsMarshal.SetCount(list6, index3); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span6[num3] = new GatheredItem { ItemId = 5432u, ItemCount = 10 }; questStep.ItemsToGather = list6; reference4 = questStep; - ref QuestStep reference5 = ref span2[1]; + num2++; + ref QuestStep reference5 = ref span5[num2]; QuestStep obj5 = new QuestStep(EInteractionType.CompleteQuest, 1002298u, new Vector3(-18.997498f, 6.2f, 157.42725f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -42814,9 +51710,11 @@ public static class AssemblyQuestLoader num3 = 2; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = 130; - span3[1] = 131; + Span span7 = CollectionsMarshal.AsSpan(list7); + index3 = 0; + span7[index3] = 130; + index3++; + span7[index3] = 131; skipAetheryteCondition.InTerritory = list7; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; obj5.SkipConditions = skipConditions2; @@ -42830,13 +51728,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "JerryWester"; + Span span8 = CollectionsMarshal.AsSpan(list8); + index = 0; + span8[index] = "JerryWester"; questRoot2.Author = list8; - num = 6; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span4 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span4[0]; + index = 6; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + Span span9 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span9[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -42844,7 +51745,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -42857,26 +51760,30 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[1]; + num++; + ref QuestSequence reference7 = ref span9[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - Span span5 = CollectionsMarshal.AsSpan(list11); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + index2 = 2; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Mount = true }; - span5[1] = new QuestStep(EInteractionType.Interact, 1013316u, new Vector3(398.97766f, 8.611752f, 46.28064f), 139) + num2++; + span11[num2] = new QuestStep(EInteractionType.Interact, 1013316u, new Vector3(398.97766f, 8.611752f, 46.28064f), 139) { Fly = true }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span4[2]; + num++; + ref QuestSequence reference8 = ref span9[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -42884,21 +51791,26 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Emote, 1013316u, new Vector3(398.97766f, 8.611752f, 46.28064f), 139) + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.Emote, 1013316u, new Vector3(398.97766f, 8.611752f, 46.28064f), 139) { Emote = EEmote.Slap }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span4[3]; + num++; + ref QuestSequence reference9 = ref span9[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.Interact, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) { StopDistance = 1f, Fly = true, @@ -42906,7 +51818,8 @@ public static class AssemblyQuestLoader }; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span4[4]; + num++; + ref QuestSequence reference10 = ref span9[num]; QuestSequence obj10 = new QuestSequence { Sequence = 4 @@ -42914,7 +51827,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013312u, new Vector3(-118.88306f, -25.500666f, 42.374268f), 138) + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013312u, new Vector3(-118.88306f, -25.500666f, 42.374268f), 138) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -42924,15 +51839,18 @@ public static class AssemblyQuestLoader }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span4[5]; + num++; + ref QuestSequence reference11 = ref span9[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013329u, new Vector3(-109.9718f, -24.72433f, 63.553833f), 138) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013329u, new Vector3(-109.9718f, -24.72433f, 63.553833f), 138) { NextQuestId = new QuestId(2900) }; @@ -42945,13 +51863,16 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "Cacahuetes"; + Span span16 = CollectionsMarshal.AsSpan(list16); + index = 0; + span16[index] = "Cacahuetes"; questRoot3.Author = list16; - num = 2; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span6 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span6[0]; + index = 2; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + Span span17 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span17[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -42959,23 +51880,30 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002280u, new Vector3(-35.385742f, 13.599962f, 97.24573f), 131); + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002280u, new Vector3(-35.385742f, 13.599962f, 97.24573f), 131); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span6[1]; + num++; + ref QuestSequence reference13 = ref span17[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + ref QuestStep reference14 = ref span19[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.CompleteQuest, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131); - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = new DialogueChoice + index3 = 1; + List list20 = new List(index3); + CollectionsMarshal.SetCount(list20, index3); + Span span20 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + span20[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLD011_00608_A1_000_1") @@ -42991,13 +51919,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "liza"; + Span span21 = CollectionsMarshal.AsSpan(list21); + index = 0; + span21[index] = "liza"; questRoot4.Author = list21; - num = 3; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span7 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference15 = ref span7[0]; + index = 3; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + Span span22 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference15 = ref span22[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -43005,19 +51936,23 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj14.Steps = list23; reference15 = obj14; - ref QuestSequence reference16 = ref span7[1]; + num++; + ref QuestSequence reference16 = ref span22[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span8 = CollectionsMarshal.AsSpan(list24); - ref QuestStep reference17 = ref span8[0]; + index2 = 4; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference17 = ref span24[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, null, new Vector3(-338.71124f, -37.497707f, 243.90338f), 145) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -43025,27 +51960,37 @@ public static class AssemblyQuestLoader num3 = 1; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = 166u; + Span span25 = CollectionsMarshal.AsSpan(list25); + index3 = 0; + span25[index3] = 166u; obj16.KillEnemyDataIds = list25; reference17 = obj16; - ref QuestStep reference18 = ref span8[1]; + num2++; + ref QuestStep reference18 = ref span24[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1003943u, new Vector3(-335.1645f, -37.195824f, 242.20642f), 145) { StopDistance = 7f }; - num3 = 6; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span9 = CollectionsMarshal.AsSpan(list26); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list26 = new List(index3); + CollectionsMarshal.SetCount(list26, index3); + Span span26 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list26; reference18 = obj17; - ref QuestStep reference19 = ref span8[2]; + num2++; + ref QuestStep reference19 = ref span24[num2]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1003944u, new Vector3(-335.71375f, -37.370598f, 245.31921f), 145) { StopDistance = 7f @@ -43053,35 +51998,49 @@ public static class AssemblyQuestLoader num3 = 6; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span10 = CollectionsMarshal.AsSpan(list27); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span27 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + span27[index3] = null; + index3++; + span27[index3] = null; + index3++; + span27[index3] = null; + index3++; + span27[index3] = null; + index3++; + span27[index3] = null; + index3++; + span27[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj18.CompletionQuestVariablesFlags = list27; reference19 = obj18; - ref QuestStep reference20 = ref span8[3]; + num2++; + ref QuestStep reference20 = ref span24[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1003942u, new Vector3(-341.81738f, -37.60504f, 243.42712f), 145) { StopDistance = 7f }; - num3 = 6; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span11 = CollectionsMarshal.AsSpan(list28); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list28 = new List(index3); + CollectionsMarshal.SetCount(list28, index3); + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj19.CompletionQuestVariablesFlags = list28; reference20 = obj19; obj15.Steps = list24; reference16 = obj15; - ref QuestSequence reference21 = ref span7[2]; + num++; + ref QuestSequence reference21 = ref span22[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -43089,13 +52048,16 @@ public static class AssemblyQuestLoader num2 = 3; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span12 = CollectionsMarshal.AsSpan(list29); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-378.46735f, -38.009487f, 159.38092f), 145); - span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-379.3895f, -59.000004f, 147.99257f), 145) + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-378.46735f, -38.009487f, 159.38092f), 145); + index2++; + span29[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-379.3895f, -59.000004f, 147.99257f), 145) { DisableNavmesh = true }; - span12[2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + index2++; + span29[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj20.Steps = list29; reference21 = obj20; questRoot4.QuestSequence = list22; @@ -43105,24 +52067,30 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "liza"; + Span span30 = CollectionsMarshal.AsSpan(list30); + index = 0; + span30[index] = "liza"; questRoot5.Author = list30; - num = 5; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span13 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference22 = ref span13[0]; + index = 5; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + Span span31 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference22 = ref span31[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj21.Steps = list32; reference22 = obj21; - ref QuestSequence reference23 = ref span13[1]; + num++; + ref QuestSequence reference23 = ref span31[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 @@ -43130,47 +52098,65 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1003964u, new Vector3(-378.53058f, -59.3f, 164.23279f), 145); + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.Interact, 1003964u, new Vector3(-378.53058f, -59.3f, 164.23279f), 145); obj22.Steps = list33; reference23 = obj22; - ref QuestSequence reference24 = ref span13[2]; + num++; + ref QuestSequence reference24 = ref span31[num]; QuestSequence obj23 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span14 = CollectionsMarshal.AsSpan(list34); - ref QuestStep reference25 = ref span14[0]; + index2 = 3; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref QuestStep reference25 = ref span34[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1003967u, new Vector3(-392.87408f, -59f, 131.67004f), 145); num3 = 6; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span15 = CollectionsMarshal.AsSpan(list35); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span35 = CollectionsMarshal.AsSpan(list35); + index3 = 0; + span35[index3] = null; + index3++; + span35[index3] = null; + index3++; + span35[index3] = null; + index3++; + span35[index3] = null; + index3++; + span35[index3] = null; + index3++; + span35[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list35; reference25 = questStep3; - ref QuestStep reference26 = ref span14[1]; + num2++; + ref QuestStep reference26 = ref span34[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1003966u, new Vector3(-373.22046f, -56.798405f, 121.99585f), 145); - num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span16 = CollectionsMarshal.AsSpan(list36); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + Span span36 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list36; reference26 = questStep4; - ref QuestStep reference27 = ref span14[2]; + num2++; + ref QuestStep reference27 = ref span34[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1003965u, new Vector3(-373.89185f, -55.898407f, 97.795044f), 145) { StopDistance = 7f @@ -43178,18 +52164,25 @@ public static class AssemblyQuestLoader num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span17 = CollectionsMarshal.AsSpan(list37); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span37 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj24.CompletionQuestVariablesFlags = list37; reference27 = obj24; obj23.Steps = list34; reference24 = obj23; - ref QuestSequence reference28 = ref span13[3]; + num++; + ref QuestSequence reference28 = ref span31[num]; QuestSequence obj25 = new QuestSequence { Sequence = 3 @@ -43197,18 +52190,23 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1003964u, new Vector3(-378.53058f, -59.3f, 164.23279f), 145); + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.Interact, 1003964u, new Vector3(-378.53058f, -59.3f, 164.23279f), 145); obj25.Steps = list38; reference28 = obj25; - ref QuestSequence reference29 = ref span13[4]; + num++; + ref QuestSequence reference29 = ref span31[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj26.Steps = list39; reference29 = obj26; questRoot5.QuestSequence = list31; @@ -43218,13 +52216,16 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "liza"; + Span span40 = CollectionsMarshal.AsSpan(list40); + index = 0; + span40[index] = "liza"; questRoot6.Author = list40; - num = 7; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span18 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference30 = ref span18[0]; + index = 7; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + Span span41 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference30 = ref span41[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -43232,21 +52233,27 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj27.Steps = list42; reference30 = obj27; - ref QuestSequence reference31 = ref span18[1]; + num++; + ref QuestSequence reference31 = ref span41[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1005136u, new Vector3(-522.20953f, -17.077162f, 18.966919f), 145); + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.Interact, 1005136u, new Vector3(-522.20953f, -17.077162f, 18.966919f), 145); obj28.Steps = list43; reference31 = obj28; - ref QuestSequence reference32 = ref span18[2]; + num++; + ref QuestSequence reference32 = ref span41[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -43254,24 +52261,30 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.UseItem, 2001657u, new Vector3(-541.16125f, -5.2644043f, 46.097534f), 145) + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.UseItem, 2001657u, new Vector3(-541.16125f, -5.2644043f, 46.097534f), 145) { ItemId = 2000517u }; obj29.Steps = list44; reference32 = obj29; - ref QuestSequence reference33 = ref span18[3]; + num++; + ref QuestSequence reference33 = ref span41[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 2001658u, new Vector3(-541.1918f, -5.1728516f, 46.036377f), 145); + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span45[num2] = new QuestStep(EInteractionType.Interact, 2001658u, new Vector3(-541.1918f, -5.1728516f, 46.036377f), 145); obj30.Steps = list45; reference33 = obj30; - ref QuestSequence reference34 = ref span18[4]; + num++; + ref QuestSequence reference34 = ref span41[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -43279,21 +52292,27 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1005136u, new Vector3(-522.20953f, -17.077162f, 18.966919f), 145); + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.Interact, 1005136u, new Vector3(-522.20953f, -17.077162f, 18.966919f), 145); obj31.Steps = list46; reference34 = obj31; - ref QuestSequence reference35 = ref span18[5]; + num++; + ref QuestSequence reference35 = ref span41[num]; QuestSequence obj32 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1003969u, new Vector3(-504.9363f, -16.22f, -3.7080078f), 145); + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.Interact, 1003969u, new Vector3(-504.9363f, -16.22f, -3.7080078f), 145); obj32.Steps = list47; reference35 = obj32; - ref QuestSequence reference36 = ref span18[6]; + num++; + ref QuestSequence reference36 = ref span41[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -43301,7 +52320,9 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj33.Steps = list48; reference36 = obj33; questRoot6.QuestSequence = list41; @@ -43311,24 +52332,30 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "liza"; questRoot7.Author = list49; - num = 4; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span19 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference37 = ref span19[0]; + index = 4; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference37 = ref span50[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj34.Steps = list51; reference37 = obj34; - ref QuestSequence reference38 = ref span19[1]; + num++; + ref QuestSequence reference38 = ref span50[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -43336,36 +52363,44 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1003976u, new Vector3(-549.0349f, 4.824463f, -266.77356f), 145); + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.Interact, 1003976u, new Vector3(-549.0349f, 4.824463f, -266.77356f), 145); obj35.Steps = list52; reference38 = obj35; - ref QuestSequence reference39 = ref span19[2]; + num++; + ref QuestSequence reference39 = ref span50[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span20 = CollectionsMarshal.AsSpan(list53); - ref QuestStep reference40 = ref span20[0]; + index2 = 2; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref QuestStep reference40 = ref span53[num2]; QuestStep obj37 = new QuestStep(EInteractionType.Combat, null, new Vector3(-421.59717f, -0.48849356f, -278.41507f), 145) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span21 = CollectionsMarshal.AsSpan(list54); - span21[0] = 18u; - span21[1] = 19u; + index3 = 2; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + Span span54 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span54[num3] = 18u; + num3++; + span54[num3] = 19u; obj37.KillEnemyDataIds = list54; reference40 = obj37; - span20[1] = new QuestStep(EInteractionType.Interact, 1003975u, new Vector3(-418.57025f, -0.17093202f, -280.38452f), 145); + num2++; + span53[num2] = new QuestStep(EInteractionType.Interact, 1003975u, new Vector3(-418.57025f, -0.17093202f, -280.38452f), 145); obj36.Steps = list53; reference39 = obj36; - ref QuestSequence reference41 = ref span19[3]; + num++; + ref QuestSequence reference41 = ref span50[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -43373,7 +52408,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145) + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; @@ -43386,24 +52423,30 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "liza"; + Span span56 = CollectionsMarshal.AsSpan(list56); + index = 0; + span56[index] = "liza"; questRoot8.Author = list56; - num = 7; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span22 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference42 = ref span22[0]; + index = 7; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + Span span57 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference42 = ref span57[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj39.Steps = list58; reference42 = obj39; - ref QuestSequence reference43 = ref span22[1]; + num++; + ref QuestSequence reference43 = ref span57[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -43411,21 +52454,27 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1003977u, new Vector3(-200.27472f, -28.350327f, 324.75757f), 145); + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.Interact, 1003977u, new Vector3(-200.27472f, -28.350327f, 324.75757f), 145); obj40.Steps = list59; reference43 = obj40; - ref QuestSequence reference44 = ref span22[2]; + num++; + ref QuestSequence reference44 = ref span57[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 2001410u, new Vector3(-95.17059f, -27.023743f, 274.00623f), 145); + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.Interact, 2001410u, new Vector3(-95.17059f, -27.023743f, 274.00623f), 145); obj41.Steps = list60; reference44 = obj41; - ref QuestSequence reference45 = ref span22[3]; + num++; + ref QuestSequence reference45 = ref span57[num]; QuestSequence obj42 = new QuestSequence { Sequence = 3 @@ -43433,24 +52482,30 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1003977u, new Vector3(-200.27472f, -28.350327f, 324.75757f), 145); + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new QuestStep(EInteractionType.Interact, 1003977u, new Vector3(-200.27472f, -28.350327f, 324.75757f), 145); obj42.Steps = list61; reference45 = obj42; - ref QuestSequence reference46 = ref span22[4]; + num++; + ref QuestSequence reference46 = ref span57[num]; QuestSequence obj43 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1004323u, new Vector3(-444.72424f, -55.558167f, 92.088135f), 145) + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.Interact, 1004323u, new Vector3(-444.72424f, -55.558167f, 92.088135f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj43.Steps = list62; reference46 = obj43; - ref QuestSequence reference47 = ref span22[5]; + num++; + ref QuestSequence reference47 = ref span57[num]; QuestSequence obj44 = new QuestSequence { Sequence = 5 @@ -43458,18 +52513,23 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1003978u, new Vector3(-442.6795f, -55.694504f, 90.92847f), 145); + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.Interact, 1003978u, new Vector3(-442.6795f, -55.694504f, 90.92847f), 145); obj44.Steps = list63; reference47 = obj44; - ref QuestSequence reference48 = ref span22[6]; + num++; + ref QuestSequence reference48 = ref span57[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj45.Steps = list64; reference48 = obj45; questRoot8.QuestSequence = list57; @@ -43479,13 +52539,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + Span span65 = CollectionsMarshal.AsSpan(list65); + index = 0; + span65[index] = "liza"; questRoot9.Author = list65; - num = 2; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span23 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference49 = ref span23[0]; + index = 2; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + Span span66 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference49 = ref span66[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -43493,19 +52556,23 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj46.Steps = list67; reference49 = obj46; - ref QuestSequence reference50 = ref span23[1]; + num++; + ref QuestSequence reference50 = ref span66[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span24 = CollectionsMarshal.AsSpan(list68); - span24[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 140) + index2 = 2; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 140) { Aetheryte = EAetheryteLocation.WesternThanalanHorizon, AethernetShortcut = new AethernetShortcut @@ -43514,7 +52581,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfTheSultana } }; - span24[1] = new QuestStep(EInteractionType.CompleteQuest, 1002065u, new Vector3(60.9292f, 45.14234f, -205.005f), 140); + num2++; + span68[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002065u, new Vector3(60.9292f, 45.14234f, -205.005f), 140); obj47.Steps = list68; reference50 = obj47; questRoot9.QuestSequence = list66; @@ -43524,13 +52592,16 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "liza"; + Span span69 = CollectionsMarshal.AsSpan(list69); + index = 0; + span69[index] = "liza"; questRoot10.Author = list69; - num = 2; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span25 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference51 = ref span25[0]; + index = 2; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + Span span70 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference51 = ref span70[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -43538,18 +52609,23 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); obj48.Steps = list71; reference51 = obj48; - ref QuestSequence reference52 = ref span25[1]; + num++; + ref QuestSequence reference52 = ref span70[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -43567,13 +52643,16 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "liza"; + Span span73 = CollectionsMarshal.AsSpan(list73); + index = 0; + span73[index] = "liza"; questRoot11.Author = list73; - num = 2; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span26 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference53 = ref span26[0]; + index = 2; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + Span span74 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference53 = ref span74[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -43581,18 +52660,23 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001426u, new Vector3(123.33862f, 30.999996f, -384.9394f), 141); + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001426u, new Vector3(123.33862f, 30.999996f, -384.9394f), 141); obj50.Steps = list75; reference53 = obj50; - ref QuestSequence reference54 = ref span26[1]; + num++; + ref QuestSequence reference54 = ref span74[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001426u, new Vector3(123.33862f, 30.999996f, -384.9394f), 141); + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001426u, new Vector3(123.33862f, 30.999996f, -384.9394f), 141); obj51.Steps = list76; reference54 = obj51; questRoot11.QuestSequence = list74; @@ -43602,13 +52686,16 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "WigglyMuffin"; + Span span77 = CollectionsMarshal.AsSpan(list77); + index = 0; + span77[index] = "WigglyMuffin"; questRoot12.Author = list77; - num = 2; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span27 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference55 = ref span27[0]; + index = 2; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + Span span78 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference55 = ref span78[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -43616,7 +52703,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001427u, new Vector3(102.89148f, 30.941309f, -377.95074f), 141) + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001427u, new Vector3(102.89148f, 30.941309f, -377.95074f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -43629,15 +52718,18 @@ public static class AssemblyQuestLoader }; obj52.Steps = list79; reference55 = obj52; - ref QuestSequence reference56 = ref span27[1]; + num++; + ref QuestSequence reference56 = ref span78[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001427u, new Vector3(102.89148f, 30.941309f, -377.95074f), 141) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001427u, new Vector3(102.89148f, 30.941309f, -377.95074f), 141) { NextQuestId = new QuestId(640) }; @@ -43650,13 +52742,16 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "WigglyMuffin"; + Span span81 = CollectionsMarshal.AsSpan(list81); + index = 0; + span81[index] = "WigglyMuffin"; questRoot13.Author = list81; - num = 3; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span28 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference57 = ref span28[0]; + index = 3; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + Span span82 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference57 = ref span82[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -43664,7 +52759,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141) + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -43677,21 +52774,25 @@ public static class AssemblyQuestLoader }; obj54.Steps = list83; reference57 = obj54; - ref QuestSequence reference58 = ref span28[1]; + num++; + ref QuestSequence reference58 = ref span82[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.WaitForManualProgress, null, null, 141) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.WaitForManualProgress, null, null, 141) { Comment = "Meld materia before Mutamix" }; obj55.Steps = list84; reference58 = obj55; - ref QuestSequence reference59 = ref span28[2]; + num++; + ref QuestSequence reference59 = ref span82[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue @@ -43699,7 +52800,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141); + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141); obj56.Steps = list85; reference59 = obj56; questRoot13.QuestSequence = list82; @@ -43709,24 +52812,30 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; + Span span86 = CollectionsMarshal.AsSpan(list86); + index = 0; + span86[index] = "liza"; questRoot14.Author = list86; - num = 4; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span29 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference60 = ref span29[0]; + index = 4; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + Span span87 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference60 = ref span87[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004002u, new Vector3(1.0527954f, 0.014807776f, -1.6633301f), 210); + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.AcceptQuest, 1004002u, new Vector3(1.0527954f, 0.014807776f, -1.6633301f), 210); obj57.Steps = list88; reference60 = obj57; - ref QuestSequence reference61 = ref span29[1]; + num++; + ref QuestSequence reference61 = ref span87[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 @@ -43734,12 +52843,14 @@ public static class AssemblyQuestLoader num2 = 2; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span30 = CollectionsMarshal.AsSpan(list89); - span30[0] = new QuestStep(EInteractionType.Interact, 2001695u, new Vector3(0.0305846f, 0.92887f, 10.15652f), 210) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.Interact, 2001695u, new Vector3(0.0305846f, 0.92887f, 10.15652f), 210) { TargetTerritoryId = (ushort)131 }; - span30[1] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + index2++; + span89[index2] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -43749,15 +52860,18 @@ public static class AssemblyQuestLoader }; obj58.Steps = list89; reference61 = obj58; - ref QuestSequence reference62 = ref span29[2]; + num++; + ref QuestSequence reference62 = ref span87[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) { AethernetShortcut = new AethernetShortcut { @@ -43767,7 +52881,8 @@ public static class AssemblyQuestLoader }; obj59.Steps = list90; reference62 = obj59; - ref QuestSequence reference63 = ref span29[3]; + num++; + ref QuestSequence reference63 = ref span87[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -43775,7 +52890,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -43796,13 +52913,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 7; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -43810,21 +52930,27 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1004621u, new Vector3(23.11737f, 6.9999914f, -86.533936f), 130); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1004621u, new Vector3(23.11737f, 6.9999914f, -86.533936f), 130); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -43832,8 +52958,9 @@ public static class AssemblyQuestLoader num2 = 3; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.UnlockTaxiStand, 1003732u, new Vector3(63.645386f, 45.14341f, -193.59125f), 140) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1003732u, new Vector3(63.645386f, 45.14341f, -193.59125f), 140) { AethernetShortcut = new AethernetShortcut { @@ -43842,22 +52969,27 @@ public static class AssemblyQuestLoader }, TaxiStandId = (byte)11 }; - span2[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 140) + index2++; + span5[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 140) { Aetheryte = EAetheryteLocation.WesternThanalanHorizon }; - span2[2] = new QuestStep(EInteractionType.Interact, 1002285u, new Vector3(326.46667f, 63f, -231.64728f), 140); + index2++; + span5[index2] = new QuestStep(EInteractionType.Interact, 1002285u, new Vector3(326.46667f, 63f, -231.64728f), 140); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Duty, null, null, 140) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Duty, null, null, 140) { DutyOptions = new DutyOptions { @@ -43867,7 +52999,8 @@ public static class AssemblyQuestLoader }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -43875,7 +53008,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004621u, new Vector3(23.11737f, 6.9999914f, -86.533936f), 130) + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004621u, new Vector3(23.11737f, 6.9999914f, -86.533936f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -43890,19 +53025,23 @@ public static class AssemblyQuestLoader }; obj5.Steps = list7; reference5 = obj5; - span[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference6 = ref span[6]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj6.Steps = list8; reference6 = obj6; questRoot.QuestSequence = list2; @@ -43912,13 +53051,16 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "UcanPatates"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "UcanPatates"; questRoot2.Author = list9; - num = 3; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span3[0]; + index = 3; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span10[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -43926,7 +53068,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + ref QuestStep reference8 = ref span11[index2]; QuestStep obj8 = new QuestStep(EInteractionType.AcceptQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -43941,25 +53085,29 @@ public static class AssemblyQuestLoader int num3 = 2; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = 129; - span4[1] = 128; + Span span12 = CollectionsMarshal.AsSpan(list12); + int num4 = 0; + span12[num4] = 129; + num4++; + span12[num4] = 128; skipAetheryteCondition.InTerritory = list12; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj8.SkipConditions = skipConditions; reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference9 = ref span3[1]; + num++; + ref QuestSequence reference9 = ref span10[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - Span span5 = CollectionsMarshal.AsSpan(list13); - ref QuestStep reference10 = ref span5[0]; + index2 = 2; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + ref QuestStep reference10 = ref span13[num2]; QuestStep obj10 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.29642f, 44.499924f, 184.26752f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -43971,24 +53119,29 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = 135; + num4 = 1; + List list14 = new List(num4); + CollectionsMarshal.SetCount(list14, num4); + Span span14 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span14[num3] = 135; skipStepConditions.InTerritory = list14; skipConditions2.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); num3 = 2; List list15 = new List(num3); CollectionsMarshal.SetCount(list15, num3); - Span span6 = CollectionsMarshal.AsSpan(list15); - span6[0] = 129; - span6[1] = 128; + Span span15 = CollectionsMarshal.AsSpan(list15); + num4 = 0; + span15[num4] = 129; + num4++; + span15[num4] = 128; skipAetheryteCondition2.InTerritory = list15; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; obj10.SkipConditions = skipConditions2; reference10 = obj10; - ref QuestStep reference11 = ref span5[1]; + num2++; + ref QuestStep reference11 = ref span13[num2]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, null, new Vector3(21.738638f, 61.836372f, 139.60422f), 135) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -43999,25 +53152,33 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - ref ComplexCombatData reference12 = ref CollectionsMarshal.AsSpan(list16)[0]; + num4 = 1; + List list16 = new List(num4); + CollectionsMarshal.SetCount(list16, num4); + Span span16 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + ref ComplexCombatData reference12 = ref span16[num3]; ComplexCombatData obj12 = new ComplexCombatData { DataId = 347u, MinimumKillCount = 5u }; - int num4 = 6; - List list17 = new List(num4); - CollectionsMarshal.SetCount(list17, num4); - Span span7 = CollectionsMarshal.AsSpan(list17); - span7[0] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = null; + int num5 = 6; + List list17 = new List(num5); + CollectionsMarshal.SetCount(list17, num5); + Span span17 = CollectionsMarshal.AsSpan(list17); + int num6 = 0; + span17[num6] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num6++; + span17[num6] = null; + num6++; + span17[num6] = null; + num6++; + span17[num6] = null; + num6++; + span17[num6] = null; + num6++; + span17[num6] = null; obj12.CompletionQuestVariablesFlags = list17; reference12 = obj12; obj11.ComplexCombatData = list16; @@ -44026,25 +53187,34 @@ public static class AssemblyQuestLoader num3 = 1; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = 135; + Span span18 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span18[num4] = 135; skipAetheryteCondition3.InTerritory = list18; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition3; obj11.SkipConditions = skipConditions3; - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span8 = CollectionsMarshal.AsSpan(list19); - span8[0] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = null; + num4 = 6; + List list19 = new List(num4); + CollectionsMarshal.SetCount(list19, num4); + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span19[num3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; obj11.CompletionQuestVariablesFlags = list19; reference11 = obj11; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference13 = ref span3[2]; + num++; + ref QuestSequence reference13 = ref span10[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -44052,20 +53222,24 @@ public static class AssemblyQuestLoader num2 = 2; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span9 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference14 = ref span9[0]; + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + ref QuestStep reference14 = ref span20[index2]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-67.00804f, 75.84114f, 116.815384f), 135); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = 135; + Span span21 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span21[num4] = 135; skipStepConditions2.NotInTerritory = list21; skipConditions4.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions4; reference14 = questStep; - ref QuestStep reference15 = ref span9[1]; + index2++; + ref QuestStep reference15 = ref span20[index2]; QuestStep obj14 = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -44077,12 +53251,14 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - num3 = 2; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span10 = CollectionsMarshal.AsSpan(list22); - span10[0] = 129; - span10[1] = 128; + num4 = 2; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = 129; + num3++; + span22[num3] = 128; skipAetheryteCondition4.InTerritory = list22; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition4; obj14.SkipConditions = skipConditions5; @@ -44096,24 +53272,30 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "liza"; + Span span23 = CollectionsMarshal.AsSpan(list23); + index = 0; + span23[index] = "liza"; questRoot3.Author = list23; - num = 3; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span11 = CollectionsMarshal.AsSpan(list24); - ref QuestSequence reference16 = ref span11[0]; + index = 3; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + Span span24 = CollectionsMarshal.AsSpan(list24); + num = 0; + ref QuestSequence reference16 = ref span24[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); obj15.Steps = list25; reference16 = obj15; - ref QuestSequence reference17 = ref span11[1]; + num++; + ref QuestSequence reference17 = ref span24[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -44121,78 +53303,109 @@ public static class AssemblyQuestLoader num2 = 4; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span12 = CollectionsMarshal.AsSpan(list26); - ref QuestStep reference18 = ref span12[0]; + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + ref QuestStep reference18 = ref span26[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1004601u, new Vector3(-62.424683f, 4.642519f, 261.28015f), 141); num3 = 6; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span13 = CollectionsMarshal.AsSpan(list27); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span27 = CollectionsMarshal.AsSpan(list27); + num4 = 0; + span27[num4] = null; + num4++; + span27[num4] = null; + num4++; + span27[num4] = null; + num4++; + span27[num4] = null; + num4++; + span27[num4] = null; + num4++; + span27[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list27; reference18 = questStep2; - ref QuestStep reference19 = ref span12[1]; + index2++; + ref QuestStep reference19 = ref span26[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1004600u, new Vector3(125.993774f, 14.462202f, 278.43127f), 141); - num3 = 6; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span14 = CollectionsMarshal.AsSpan(list28); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list28; reference19 = questStep3; - ref QuestStep reference20 = ref span12[2]; + index2++; + ref QuestStep reference20 = ref span26[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(117.63772f, 1.6851518f, 296.93826f), 141); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); num3 = 6; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - Span span15 = CollectionsMarshal.AsSpan(list29); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span29 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list29; skipConditions6.StepIf = skipStepConditions3; questStep4.SkipConditions = skipConditions6; reference20 = questStep4; - ref QuestStep reference21 = ref span12[3]; + index2++; + ref QuestStep reference21 = ref span26[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1004599u, new Vector3(89.86035f, 4.6361504f, 425.40625f), 141); - num3 = 6; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span16 = CollectionsMarshal.AsSpan(list30); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list30 = new List(num4); + CollectionsMarshal.SetCount(list30, num4); + Span span30 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list30; reference21 = questStep5; obj16.Steps = list26; reference17 = obj16; - ref QuestSequence reference22 = ref span11[2]; + num++; + ref QuestSequence reference22 = ref span24[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); obj17.Steps = list31; reference22 = obj17; questRoot3.QuestSequence = list24; @@ -44202,13 +53415,16 @@ public static class AssemblyQuestLoader num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - CollectionsMarshal.AsSpan(list32)[0] = "liza"; + Span span32 = CollectionsMarshal.AsSpan(list32); + index = 0; + span32[index] = "liza"; questRoot4.Author = list32; - num = 2; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - Span span17 = CollectionsMarshal.AsSpan(list33); - ref QuestSequence reference23 = ref span17[0]; + index = 2; + List list33 = new List(index); + CollectionsMarshal.SetCount(list33, index); + Span span33 = CollectionsMarshal.AsSpan(list33); + num = 0; + ref QuestSequence reference23 = ref span33[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -44216,21 +53432,26 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002829u, new Vector3(-157.03064f, 4.0492578f, -2.7314453f), 133) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002829u, new Vector3(-157.03064f, 4.0492578f, -2.7314453f), 133) { StopDistance = 5f }; obj18.Steps = list34; reference23 = obj18; - ref QuestSequence reference24 = ref span17[1]; + num++; + ref QuestSequence reference24 = ref span33[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -44248,13 +53469,16 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "liza"; questRoot5.Author = list36; - num = 2; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span18 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference25 = ref span18[0]; + index = 2; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference25 = ref span37[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -44262,23 +53486,28 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); obj20.Steps = list38; reference25 = obj20; - ref QuestSequence reference26 = ref span18[1]; + num++; + ref QuestSequence reference26 = ref span37[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 13; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - Span span19 = CollectionsMarshal.AsSpan(list39); - span19[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + index2 = 13; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahAlchemist }; - span19[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(5.7796226f, 30f, -21.571625f), 131) + num2++; + span39[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(5.7796226f, 30f, -21.571625f), 131) { AethernetShortcut = new AethernetShortcut { @@ -44291,47 +53520,58 @@ public static class AssemblyQuestLoader StopDistance = 5f } }; - span19[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span39[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGladiator }; - span19[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span39[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGoldsmith }; - span19[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span39[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahMiner }; - span19[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span39[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahWeaver }; - span19[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + num2++; + span39[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahSapphireAvenue }; - span19[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.335236f, 4f, -110.905876f), 131) + num2++; + span39[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.335236f, 4f, -110.905876f), 131) { TargetTerritoryId = (ushort)130 }; - span19[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + num2++; + span39[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahAdventurers }; - span19[9] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) + num2++; + span39[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah }; - span19[10] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) + num2++; + span39[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah }; - span19[11] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + num2++; + span39[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahThaumaturge }; - span19[12] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) + num2++; + span39[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -44349,13 +53589,16 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "liza"; + Span span40 = CollectionsMarshal.AsSpan(list40); + index = 0; + span40[index] = "liza"; questRoot6.Author = list40; - num = 2; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span20 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference27 = ref span20[0]; + index = 2; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + Span span41 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference27 = ref span41[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -44363,19 +53606,23 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj22.Steps = list42; reference27 = obj22; - ref QuestSequence reference28 = ref span20[1]; + num++; + ref QuestSequence reference28 = ref span41[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span21 = CollectionsMarshal.AsSpan(list43); - ref QuestStep reference29 = ref span21[0]; + index2 = 3; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + ref QuestStep reference29 = ref span43[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)128 @@ -44383,7 +53630,9 @@ public static class AssemblyQuestLoader num3 = 1; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = new DialogueChoice + Span span44 = CollectionsMarshal.AsSpan(list44); + num4 = 0; + span44[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -44391,15 +53640,18 @@ public static class AssemblyQuestLoader }; obj24.DialogueChoices = list44; reference29 = obj24; - ref QuestStep reference30 = ref span21[1]; + num2++; + ref QuestStep reference30 = ref span43[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128) { TargetTerritoryId = (ushort)132 }; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new DialogueChoice + num4 = 1; + List list45 = new List(num4); + CollectionsMarshal.SetCount(list45, num4); + Span span45 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span45[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -44407,7 +53659,8 @@ public static class AssemblyQuestLoader }; obj25.DialogueChoices = list45; reference30 = obj25; - span21[2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + num2++; + span43[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); obj23.Steps = list43; reference28 = obj23; questRoot6.QuestSequence = list41; @@ -44417,13 +53670,16 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "liza"; + Span span46 = CollectionsMarshal.AsSpan(list46); + index = 0; + span46[index] = "liza"; questRoot7.Author = list46; - num = 4; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span22 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference31 = ref span22[0]; + index = 4; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + Span span47 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference31 = ref span47[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -44431,19 +53687,23 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); obj26.Steps = list48; reference31 = obj26; - ref QuestSequence reference32 = ref span22[1]; + num++; + ref QuestSequence reference32 = ref span47[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span23 = CollectionsMarshal.AsSpan(list49); - span23[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) + index2 = 3; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AethernetShortcut = new AethernetShortcut @@ -44452,14 +53712,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaBlueBadgerGate } }; - span23[1] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002980u, new Vector3(22.934265f, -8f, 84.97742f), 148) + num2++; + span49[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002980u, new Vector3(22.934265f, -8f, 84.97742f), 148) { TaxiStandId = (byte)9 }; - span23[2] = new QuestStep(EInteractionType.Interact, 1004612u, new Vector3(-114.94629f, -39.702168f, 335.46948f), 148); + num2++; + span49[num2] = new QuestStep(EInteractionType.Interact, 1004612u, new Vector3(-114.94629f, -39.702168f, 335.46948f), 148); obj27.Steps = list49; reference32 = obj27; - ref QuestSequence reference33 = ref span22[2]; + num++; + ref QuestSequence reference33 = ref span47[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -44467,7 +53730,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Duty, null, null, 148) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.Duty, null, null, 148) { DutyOptions = new DutyOptions { @@ -44477,15 +53742,18 @@ public static class AssemblyQuestLoader }; obj28.Steps = list50; reference33 = obj28; - ref QuestSequence reference34 = ref span22[3]; + num++; + ref QuestSequence reference34 = ref span47[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -44498,13 +53766,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + Span span52 = CollectionsMarshal.AsSpan(list52); + index = 0; + span52[index] = "liza"; questRoot8.Author = list52; - num = 2; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span24 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference35 = ref span24[0]; + index = 2; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + Span span53 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference35 = ref span53[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -44512,18 +53783,23 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); obj30.Steps = list54; reference35 = obj30; - ref QuestSequence reference36 = ref span24[1]; + num++; + ref QuestSequence reference36 = ref span53[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -44541,13 +53817,16 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "liza"; + Span span56 = CollectionsMarshal.AsSpan(list56); + index = 0; + span56[index] = "liza"; questRoot9.Author = list56; - num = 4; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span25 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference37 = ref span25[0]; + index = 4; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + Span span57 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference37 = ref span57[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -44555,12 +53834,16 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - ref QuestStep reference38 = ref CollectionsMarshal.AsSpan(list58)[0]; + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + ref QuestStep reference38 = ref span58[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.AcceptQuest, 1004884u, new Vector3(38.895264f, 1.2000012f, 3.463745f), 212); num3 = 1; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = new DialogueChoice + Span span59 = CollectionsMarshal.AsSpan(list59); + num4 = 0; + span59[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST302_00680_Q1_000_1") @@ -44569,23 +53852,28 @@ public static class AssemblyQuestLoader reference38 = questStep6; obj32.Steps = list58; reference37 = obj32; - ref QuestSequence reference39 = ref span25[1]; + num++; + ref QuestSequence reference39 = ref span57[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list60)[0]; + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + ref QuestStep reference40 = ref span60[num2]; QuestStep obj34 = new QuestStep(EInteractionType.Interact, 1002394u, new Vector3(-69.5354f, -0.50095016f, -9.99469f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; - num3 = 1; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - CollectionsMarshal.AsSpan(list61)[0] = new DialogueChoice + num4 = 1; + List list61 = new List(num4); + CollectionsMarshal.SetCount(list61, num4); + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_MANFST302_00680_Q2_000_1"), @@ -44595,7 +53883,8 @@ public static class AssemblyQuestLoader reference40 = obj34; obj33.Steps = list60; reference39 = obj33; - ref QuestSequence reference41 = ref span25[2]; + num++; + ref QuestSequence reference41 = ref span57[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -44603,8 +53892,9 @@ public static class AssemblyQuestLoader num2 = 3; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span26 = CollectionsMarshal.AsSpan(list62); - span26[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -44620,7 +53910,8 @@ public static class AssemblyQuestLoader } } }; - span26[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + index2++; + span62[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -44631,7 +53922,8 @@ public static class AssemblyQuestLoader } } }; - span26[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004886u, new Vector3(30.319702f, 8.422709f, 475.30322f), 152) + index2++; + span62[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004886u, new Vector3(30.319702f, 8.422709f, 475.30322f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -44648,15 +53940,18 @@ public static class AssemblyQuestLoader }; obj35.Steps = list62; reference41 = obj35; - ref QuestSequence reference42 = ref span25[3]; + num++; + ref QuestSequence reference42 = ref span57[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002394u, new Vector3(-69.5354f, -0.50095016f, -9.99469f), 132) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002394u, new Vector3(-69.5354f, -0.50095016f, -9.99469f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -44669,13 +53964,16 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + Span span64 = CollectionsMarshal.AsSpan(list64); + index = 0; + span64[index] = "liza"; questRoot10.Author = list64; - num = 4; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span27 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference43 = ref span27[0]; + index = 4; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + Span span65 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference43 = ref span65[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -44683,12 +53981,16 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list66)[0]; + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + ref QuestStep reference44 = ref span66[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.AcceptQuest, 1004885u, new Vector3(36.453735f, 1.2000011f, 4.6845093f), 212); num3 = 1; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new DialogueChoice + Span span67 = CollectionsMarshal.AsSpan(list67); + num4 = 0; + span67[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA302_00681_Q1_000_1") @@ -44697,15 +53999,18 @@ public static class AssemblyQuestLoader reference44 = questStep7; obj37.Steps = list66; reference43 = obj37; - ref QuestSequence reference45 = ref span27[1]; + num++; + ref QuestSequence reference45 = ref span65[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list68)[0]; + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + ref QuestStep reference46 = ref span68[num2]; QuestStep obj39 = new QuestStep(EInteractionType.Interact, 1002388u, new Vector3(95.68933f, 40.250286f, 74.54028f), 128) { StopDistance = 5f, @@ -44716,10 +54021,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = new DialogueChoice + num4 = 1; + List list69 = new List(num4); + CollectionsMarshal.SetCount(list69, num4); + Span span69 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span69[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_MANSEA302_00681_Q2_000_1"), @@ -44729,7 +54036,8 @@ public static class AssemblyQuestLoader reference46 = obj39; obj38.Steps = list68; reference45 = obj38; - ref QuestSequence reference47 = ref span27[2]; + num++; + ref QuestSequence reference47 = ref span65[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -44737,7 +54045,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004888u, new Vector3(389.2423f, 78.360275f, -349.05017f), 135) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004888u, new Vector3(389.2423f, 78.360275f, -349.05017f), 135) { AethernetShortcut = new AethernetShortcut { @@ -44751,15 +54061,18 @@ public static class AssemblyQuestLoader }; obj40.Steps = list70; reference47 = obj40; - ref QuestSequence reference48 = ref span27[3]; + num++; + ref QuestSequence reference48 = ref span65[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002388u, new Vector3(95.68933f, 40.250286f, 74.54028f), 128) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002388u, new Vector3(95.68933f, 40.250286f, 74.54028f), 128) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -44778,13 +54091,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "JerryWester"; + Span span72 = CollectionsMarshal.AsSpan(list72); + index = 0; + span72[index] = "JerryWester"; questRoot11.Author = list72; - num = 4; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span28 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference49 = ref span28[0]; + index = 4; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + Span span73 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference49 = ref span73[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -44792,12 +54108,16 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list74)[0]; + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + ref QuestStep reference50 = ref span74[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.AcceptQuest, 1004883u, new Vector3(37.88806f, 1.2000012f, 4.135132f), 212); num3 = 1; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = new DialogueChoice + Span span75 = CollectionsMarshal.AsSpan(list75); + num4 = 0; + span75[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL302_00682_Q1_000_1") @@ -44806,23 +54126,28 @@ public static class AssemblyQuestLoader reference50 = questStep8; obj42.Steps = list74; reference49 = obj42; - ref QuestSequence reference51 = ref span28[1]; + num++; + ref QuestSequence reference51 = ref span73[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - ref QuestStep reference52 = ref CollectionsMarshal.AsSpan(list76)[0]; + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + ref QuestStep reference52 = ref span76[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 1002391u, new Vector3(-144.39618f, 4.1f, -107.22516f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - num3 = 1; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = new DialogueChoice + num4 = 1; + List list77 = new List(num4); + CollectionsMarshal.SetCount(list77, num4); + Span span77 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + span77[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_MANWIL302_00682_Q2_000_1"), @@ -44832,7 +54157,8 @@ public static class AssemblyQuestLoader reference52 = obj44; obj43.Steps = list76; reference51 = obj43; - ref QuestSequence reference53 = ref span28[2]; + num++; + ref QuestSequence reference53 = ref span73[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 @@ -44840,7 +54166,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004887u, new Vector3(160.7843f, 54.85158f, -45.609253f), 140) + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004887u, new Vector3(160.7843f, 54.85158f, -45.609253f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -44850,15 +54178,18 @@ public static class AssemblyQuestLoader }; obj45.Steps = list78; reference53 = obj45; - ref QuestSequence reference54 = ref span28[3]; + num++; + ref QuestSequence reference54 = ref span73[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002391u, new Vector3(-144.39618f, 4.1f, -107.22516f), 130) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002391u, new Vector3(-144.39618f, 4.1f, -107.22516f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; @@ -44871,13 +54202,16 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + Span span80 = CollectionsMarshal.AsSpan(list80); + index = 0; + span80[index] = "liza"; questRoot12.Author = list80; - num = 2; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span29 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference55 = ref span29[0]; + index = 2; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + Span span81 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference55 = ref span81[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -44885,29 +54219,36 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002394u, new Vector3(-69.5354f, -0.50095016f, -9.99469f), 132); + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002394u, new Vector3(-69.5354f, -0.50095016f, -9.99469f), 132); obj47.Steps = list82; reference55 = obj47; - ref QuestSequence reference56 = ref span29[1]; + num++; + ref QuestSequence reference56 = ref span81[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - Span span30 = CollectionsMarshal.AsSpan(list83); - span30[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + index2 = 4; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span30[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span30[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span83[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span83[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span30[3] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); + num2++; + span83[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); obj48.Steps = list83; reference56 = obj48; questRoot12.QuestSequence = list81; @@ -44917,13 +54258,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "liza"; + Span span84 = CollectionsMarshal.AsSpan(list84); + index = 0; + span84[index] = "liza"; questRoot13.Author = list84; - num = 2; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span31 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference57 = ref span31[0]; + index = 2; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference57 = ref span85[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -44931,32 +54275,39 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002388u, new Vector3(95.68933f, 40.250286f, 74.54028f), 128) + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002388u, new Vector3(95.68933f, 40.250286f, 74.54028f), 128) { StopDistance = 5f }; obj49.Steps = list86; reference57 = obj49; - ref QuestSequence reference58 = ref span31[1]; + num++; + ref QuestSequence reference58 = ref span85[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span32 = CollectionsMarshal.AsSpan(list87); - span32[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + index2 = 4; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span32[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span32[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span87[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span87[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span32[3] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); + num2++; + span87[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); obj50.Steps = list87; reference58 = obj50; questRoot13.QuestSequence = list85; @@ -44966,13 +54317,16 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "JerryWester"; + Span span88 = CollectionsMarshal.AsSpan(list88); + index = 0; + span88[index] = "JerryWester"; questRoot14.Author = list88; - num = 2; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span33 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference59 = ref span33[0]; + index = 2; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + Span span89 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference59 = ref span89[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -44980,7 +54334,9 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002391u, new Vector3(-144.39618f, 4.1f, -107.22516f), 130) + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002391u, new Vector3(-144.39618f, 4.1f, -107.22516f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -44993,26 +54349,31 @@ public static class AssemblyQuestLoader }; obj51.Steps = list90; reference59 = obj51; - ref QuestSequence reference60 = ref span33[1]; + num++; + ref QuestSequence reference60 = ref span89[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - Span span34 = CollectionsMarshal.AsSpan(list91); - span34[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + index2 = 4; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span91[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span34[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span34[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span91[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span91[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span34[3] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); + num2++; + span91[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); obj52.Steps = list91; reference60 = obj52; questRoot14.QuestSequence = list89; @@ -45022,13 +54383,16 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "liza"; + Span span92 = CollectionsMarshal.AsSpan(list92); + index = 0; + span92[index] = "liza"; questRoot15.Author = list92; - num = 2; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span35 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference61 = ref span35[0]; + index = 2; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + Span span93 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference61 = ref span93[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -45036,18 +54400,23 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); obj53.Steps = list94; reference61 = obj53; - ref QuestSequence reference62 = ref span35[1]; + num++; + ref QuestSequence reference62 = ref span93[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -45065,13 +54434,16 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + span96[index] = "liza"; questRoot16.Author = list96; - num = 4; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span36 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference63 = ref span36[0]; + index = 4; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + Span span97 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference63 = ref span97[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -45079,21 +54451,26 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span98[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) { StopDistance = 7f }; obj55.Steps = list98; reference63 = obj55; - ref QuestSequence reference64 = ref span36[1]; + num++; + ref QuestSequence reference64 = ref span97[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.Interact, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AethernetShortcut = new AethernetShortcut { @@ -45103,7 +54480,8 @@ public static class AssemblyQuestLoader }; obj56.Steps = list99; reference64 = obj56; - ref QuestSequence reference65 = ref span36[2]; + num++; + ref QuestSequence reference65 = ref span97[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -45111,8 +54489,9 @@ public static class AssemblyQuestLoader num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span37 = CollectionsMarshal.AsSpan(list100); - ref QuestStep reference66 = ref span37[0]; + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + ref QuestStep reference66 = ref span100[index2]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 @@ -45120,7 +54499,9 @@ public static class AssemblyQuestLoader num3 = 1; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = new DialogueChoice + Span span101 = CollectionsMarshal.AsSpan(list101); + num4 = 0; + span101[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -45128,27 +54509,32 @@ public static class AssemblyQuestLoader }; obj58.DialogueChoices = list101; reference66 = obj58; - span37[1] = new QuestStep(EInteractionType.Interact, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129); + index2++; + span100[index2] = new QuestStep(EInteractionType.Interact, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129); obj57.Steps = list100; reference65 = obj57; - ref QuestSequence reference67 = ref span36[3]; + num++; + ref QuestSequence reference67 = ref span97[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span38 = CollectionsMarshal.AsSpan(list102); - ref QuestStep reference68 = ref span38[0]; + index2 = 2; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + ref QuestStep reference68 = ref span102[num2]; QuestStep obj60 = new QuestStep(EInteractionType.Interact, 1003611u, new Vector3(9.781006f, 20.999247f, 15.0911255f), 129) { TargetTerritoryId = (ushort)128 }; - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = new DialogueChoice + num4 = 1; + List list103 = new List(num4); + CollectionsMarshal.SetCount(list103, num4); + Span span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span103[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -45156,232 +54542,117 @@ public static class AssemblyQuestLoader }; obj60.DialogueChoices = list103; reference68 = obj60; - span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + num2++; + span102[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj59.Steps = list102; reference67 = obj59; questRoot16.QuestSequence = list97; AddQuest(questId16, questRoot16); - QuestId questId17 = new QuestId(693); + QuestId questId17 = new QuestId(697); QuestRoot questRoot17 = new QuestRoot(); num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "Wigglez"; + Span span104 = CollectionsMarshal.AsSpan(list104); + index = 0; + span104[index] = "JerryWester, Friendly"; questRoot17.Author = list104; - num = 4; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span39 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference69 = ref span39[0]; + index = 3; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + Span span105 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference69 = ref span105[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 1; + num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000970u, new Vector3(-12.375122f, 40.00016f, -12.161499f), 128) - { - AetheryteShortcut = EAetheryteLocation.Limsa, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Limsa, - To = EAetheryteLocation.LimsaAftcastle - } - }; - obj61.Steps = list106; - reference69 = obj61; - ref QuestSequence reference70 = ref span39[1]; - QuestSequence obj62 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1001788u, new Vector3(669.1843f, 9.198655f, 512.9929f), 138) - { - AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch - }; - obj62.Steps = list107; - reference70 = obj62; - ref QuestSequence reference71 = ref span39[2]; - QuestSequence obj63 = new QuestSequence - { - Sequence = 2 - }; - num2 = 2; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - Span span40 = CollectionsMarshal.AsSpan(list108); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(621.8044f, 8.93761f, 478.7172f), 138); - ref QuestStep reference72 = ref span40[1]; - QuestStep obj64 = new QuestStep(EInteractionType.Combat, null, new Vector3(621.8044f, 8.93761f, 478.7172f), 138) - { - EnemySpawnType = EEnemySpawnType.OverworldEnemies - }; - num3 = 1; - List list109 = new List(num3); - CollectionsMarshal.SetCount(list109, num3); - CollectionsMarshal.AsSpan(list109)[0] = 325u; - obj64.KillEnemyDataIds = list109; - obj64.CombatDelaySecondsAtStart = 1f; - reference72 = obj64; - obj63.Steps = list108; - reference71 = obj63; - ref QuestSequence reference73 = ref span39[3]; - QuestSequence obj65 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001788u, new Vector3(669.1843f, 9.198655f, 512.9929f), 138); - obj65.Steps = list110; - reference73 = obj65; - questRoot17.QuestSequence = list105; - AddQuest(questId17, questRoot17); - QuestId questId18 = new QuestId(696); - QuestRoot questRoot18 = new QuestRoot(); - num = 1; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "Wigglez"; - questRoot18.Author = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span41 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference74 = ref span41[0]; - QuestSequence obj66 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004344u, new Vector3(450.2173f, 17.748493f, 470.29822f), 137) - { - StopDistance = 5f, - AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol - }; - obj66.Steps = list113; - reference74 = obj66; - ref QuestSequence reference75 = ref span41[1]; - QuestSequence obj67 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(514.8553f, 9.702245f, 376.2111f), 137); - obj67.Steps = list114; - reference75 = obj67; - ref QuestSequence reference76 = ref span41[2]; - QuestSequence obj68 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004344u, new Vector3(450.2173f, 17.748493f, 470.29822f), 137) - { - StopDistance = 5f - }; - obj68.Steps = list115; - reference76 = obj68; - questRoot18.QuestSequence = list112; - AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(697); - QuestRoot questRoot19 = new QuestRoot(); - num = 1; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "JerryWester, Friendly"; - questRoot19.Author = list116; - num = 3; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span42 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference77 = ref span42[0]; - QuestSequence obj69 = new QuestSequence - { - Sequence = 0 - }; - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span43 = CollectionsMarshal.AsSpan(list118); - ref QuestStep reference78 = ref span43[0]; - QuestStep obj70 = new QuestStep(EInteractionType.UseItem, null, null, 128) + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + ref QuestStep reference70 = ref span106[index2]; + QuestStep obj62 = new QuestStep(EInteractionType.UseItem, null, null, 128) { ItemId = 30362u }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = 140; - skipStepConditions4.InTerritory = list119; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + Span span107 = CollectionsMarshal.AsSpan(list107); + num4 = 0; + span107[num4] = 140; + skipStepConditions4.InTerritory = list107; skipConditions7.StepIf = skipStepConditions4; - obj70.SkipConditions = skipConditions7; - reference78 = obj70; - span43[1] = new QuestStep(EInteractionType.AcceptQuest, 1005021u, new Vector3(-472.49567f, 23.008797f, -355.00116f), 140); - obj69.Steps = list118; - reference77 = obj69; - ref QuestSequence reference79 = ref span42[1]; - QuestSequence obj71 = new QuestSequence + obj62.SkipConditions = skipConditions7; + reference70 = obj62; + index2++; + span106[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005021u, new Vector3(-472.49567f, 23.008797f, -355.00116f), 140); + obj61.Steps = list106; + reference69 = obj61; + num++; + ref QuestSequence reference71 = ref span105[num]; + QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.697464f, 44.999996f, -253.78111f), 140); - obj71.Steps = list120; - reference79 = obj71; - ref QuestSequence reference80 = ref span42[2]; - QuestSequence obj72 = new QuestSequence + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.697464f, 44.999996f, -253.78111f), 140); + obj63.Steps = list108; + reference71 = obj63; + num++; + ref QuestSequence reference72 = ref span105[num]; + QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span44 = CollectionsMarshal.AsSpan(list121); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-404.08105f, -25.560223f, 378.66812f), 145) + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-404.08105f, -25.560223f, 378.66812f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - span44[1] = new QuestStep(EInteractionType.CompleteQuest, 1004582u, new Vector3(-331.13605f, -22.476562f, 434.86682f), 145); - obj72.Steps = list121; - reference80 = obj72; - questRoot19.QuestSequence = list117; - AddQuest(questId19, questRoot19); - QuestId questId20 = new QuestId(698); - QuestRoot questRoot20 = new QuestRoot(); + index2++; + span109[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004582u, new Vector3(-331.13605f, -22.476562f, 434.86682f), 145); + obj64.Steps = list109; + reference72 = obj64; + questRoot17.QuestSequence = list105; + AddQuest(questId17, questRoot17); + QuestId questId18 = new QuestId(698); + QuestRoot questRoot18 = new QuestRoot(); num = 1; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = "plogon_enjoyer"; - questRoot20.Author = list122; - num = 5; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - Span span45 = CollectionsMarshal.AsSpan(list123); - ref QuestSequence reference81 = ref span45[0]; - QuestSequence obj73 = new QuestSequence + List list110 = new List(num); + CollectionsMarshal.SetCount(list110, num); + Span span110 = CollectionsMarshal.AsSpan(list110); + index = 0; + span110[index] = "plogon_enjoyer"; + questRoot18.Author = list110; + index = 5; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + Span span111 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference73 = ref span111[num]; + QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -45392,113 +54663,135 @@ public static class AssemblyQuestLoader } } }; - obj73.Steps = list124; - reference81 = obj73; - ref QuestSequence reference82 = ref span45[1]; - QuestSequence obj74 = new QuestSequence + obj65.Steps = list112; + reference73 = obj65; + num++; + ref QuestSequence reference74 = ref span111[num]; + QuestSequence obj66 = new QuestSequence { Sequence = 1 }; num2 = 5; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - Span span46 = CollectionsMarshal.AsSpan(list125); - span46[0] = new QuestStep(EInteractionType.Action, 2001798u, new Vector3(-107.9017f, 4.989685f, -105.4603f), 130) + List list113 = new List(num2); + CollectionsMarshal.SetCount(list113, num2); + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.Action, 2001798u, new Vector3(-107.9017f, 4.989685f, -105.4603f), 130) { Action = EAction.Bootshine }; - span46[1] = new QuestStep(EInteractionType.Action, 2001799u, new Vector3(-105.6365f, 4.9655f, -107.5618f), 130) + index2++; + span113[index2] = new QuestStep(EInteractionType.Action, 2001799u, new Vector3(-105.6365f, 4.9655f, -107.5618f), 130) { Action = EAction.Bootshine }; - span46[2] = new QuestStep(EInteractionType.Action, 2001800u, new Vector3(-77.62268f, 5.0201416f, -128.893f), 130) + index2++; + span113[index2] = new QuestStep(EInteractionType.Action, 2001800u, new Vector3(-77.62268f, 5.0201416f, -128.893f), 130) { Action = EAction.Bootshine }; - span46[3] = new QuestStep(EInteractionType.Action, 2001801u, new Vector3(-74.60144f, 4.8981323f, -130.69354f), 130) + index2++; + span113[index2] = new QuestStep(EInteractionType.Action, 2001801u, new Vector3(-74.60144f, 4.8981323f, -130.69354f), 130) { Action = EAction.Bootshine }; - span46[4] = new QuestStep(EInteractionType.Action, 2001802u, new Vector3(-71.42755f, 5.0201416f, -132.34149f), 130) + index2++; + span113[index2] = new QuestStep(EInteractionType.Action, 2001802u, new Vector3(-71.42755f, 5.0201416f, -132.34149f), 130) { Action = EAction.Bootshine }; - obj74.Steps = list125; - reference82 = obj74; - ref QuestSequence reference83 = ref span45[2]; - QuestSequence obj75 = new QuestSequence + obj66.Steps = list113; + reference74 = obj66; + num++; + ref QuestSequence reference75 = ref span111[num]; + QuestSequence obj67 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); - obj75.Steps = list126; - reference83 = obj75; - ref QuestSequence reference84 = ref span45[3]; - QuestSequence obj76 = new QuestSequence + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); + obj67.Steps = list114; + reference75 = obj67; + num++; + ref QuestSequence reference76 = ref span111[num]; + QuestSequence obj68 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - ref QuestStep reference85 = ref CollectionsMarshal.AsSpan(list127)[0]; - QuestStep obj77 = new QuestStep(EInteractionType.Combat, null, new Vector3(-210.32118f, 21.582167f, -94.337494f), 141) + List list115 = new List(num2); + CollectionsMarshal.SetCount(list115, num2); + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + ref QuestStep reference77 = ref span115[index2]; + QuestStep obj69 = new QuestStep(EInteractionType.Combat, null, new Vector3(-210.32118f, 21.582167f, -94.337494f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = 771u; - obj77.KillEnemyDataIds = list128; - obj77.CombatDelaySecondsAtStart = 0f; - reference85 = obj77; - obj76.Steps = list127; - reference84 = obj76; - ref QuestSequence reference86 = ref span45[4]; - QuestSequence obj78 = new QuestSequence + num4 = 1; + List list116 = new List(num4); + CollectionsMarshal.SetCount(list116, num4); + Span span116 = CollectionsMarshal.AsSpan(list116); + num3 = 0; + span116[num3] = 771u; + obj69.KillEnemyDataIds = list116; + obj69.CombatDelaySecondsAtStart = 0f; + reference77 = obj69; + obj68.Steps = list115; + reference76 = obj68; + num++; + ref QuestSequence reference78 = ref span111[num]; + QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - Span span47 = CollectionsMarshal.AsSpan(list129); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-118.55462f, 8.216448f, -82.81951f), 141); - span47[1] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 2; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-118.55462f, 8.216448f, -82.81951f), 141); + num2++; + span117[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(558) }; - obj78.Steps = list129; - reference86 = obj78; - questRoot20.QuestSequence = list123; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(699); - QuestRoot questRoot21 = new QuestRoot(); + obj70.Steps = list117; + reference78 = obj70; + questRoot18.QuestSequence = list111; + AddQuest(questId18, questRoot18); + QuestId questId19 = new QuestId(699); + QuestRoot questRoot19 = new QuestRoot(); num = 1; - List list130 = new List(num); - CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "WigglyMuffin"; - questRoot21.Author = list130; - num = 2; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span48 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference87 = ref span48[0]; - QuestSequence obj79 = new QuestSequence + List list118 = new List(num); + CollectionsMarshal.SetCount(list118, num); + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "WigglyMuffin"; + questRoot19.Author = list118; + index = 2; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference79 = ref span119[num]; + QuestSequence obj71 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140) + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SkipConditions = new SkipConditions @@ -45509,18 +54802,20 @@ public static class AssemblyQuestLoader } } }; - obj79.Steps = list132; - reference87 = obj79; - ref QuestSequence reference88 = ref span48[1]; - QuestSequence obj80 = new QuestSequence + obj71.Steps = list120; + reference79 = obj71; + num++; + ref QuestSequence reference80 = ref span119[num]; + QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - Span span49 = CollectionsMarshal.AsSpan(list133); - span49[0] = new QuestStep(EInteractionType.PurchaseItem, 1004038u, new Vector3(-466.42255f, 23.47034f, -379.87335f), 140) + index2 = 2; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span121[num2] = new QuestStep(EInteractionType.PurchaseItem, 1004038u, new Vector3(-466.42255f, 23.47034f, -379.87335f), 140) { Comment = "Buy Orange Juice", ItemId = 4745u, @@ -45538,11 +54833,12 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262807u) } }; - span49[1] = new QuestStep(EInteractionType.CompleteQuest, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140); - obj80.Steps = list133; - reference88 = obj80; - questRoot21.QuestSequence = list131; - AddQuest(questId21, questRoot21); + num2++; + span121[num2] = new QuestStep(EInteractionType.CompleteQuest, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140); + obj72.Steps = list121; + reference80 = obj72; + questRoot19.QuestSequence = list119; + AddQuest(questId19, questRoot19); } private static void LoadQuests14() @@ -45552,13 +54848,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -45566,19 +54865,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.Interact, 1002393u, new Vector3(-67.94849f, -0.5009766f, -10.818665f), 132) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1002393u, new Vector3(-67.94849f, -0.5009766f, -10.818665f), 132) { StopDistance = 3f, Comment = "Buy Serpent Chocobo Issuance", @@ -45595,10 +54898,12 @@ public static class AssemblyQuestLoader CategoryTab = 1 } }; - span2[1] = new QuestStep(EInteractionType.Interact, 1000136u, new Vector3(32.303345f, -0.050583772f, 70.29822f), 132); + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 1000136u, new Vector3(32.303345f, -0.050583772f, 70.29822f), 132); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -45606,21 +54911,26 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1006001u, new Vector3(35.38562f, -0.89902794f, 67.551636f), 132) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1006001u, new Vector3(35.38562f, -0.89902794f, 67.551636f), 132) { StopDistance = 7f }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000136u, new Vector3(32.303345f, -0.050583772f, 70.29822f), 132); + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000136u, new Vector3(32.303345f, -0.050583772f, 70.29822f), 132); obj4.Steps = list6; reference4 = obj4; questRoot.QuestSequence = list2; @@ -45630,13 +54940,16 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + Span span7 = CollectionsMarshal.AsSpan(list7); + index = 0; + span7[index] = "liza"; questRoot2.Author = list7; - num = 4; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span3 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span3[0]; + index = 4; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span8[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -45644,7 +54957,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -45655,17 +54970,20 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span3[1]; + num++; + ref QuestSequence reference6 = ref span8[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span4 = CollectionsMarshal.AsSpan(list10); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(93.22066f, 40.275368f, 76.687836f), 128); - span4[1] = new QuestStep(EInteractionType.Interact, 1002387u, new Vector3(95.750244f, 40.250286f, 76.67651f), 128) + index2 = 4; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(93.22066f, 40.275368f, 76.687836f), 128); + num2++; + span10[num2] = new QuestStep(EInteractionType.Interact, 1002387u, new Vector3(95.750244f, 40.250286f, 76.67651f), 128) { StopDistance = 3f, Comment = "Buy Storm Chocobo Issuance", @@ -45682,7 +55000,8 @@ public static class AssemblyQuestLoader CategoryTab = 1 } }; - ref QuestStep reference7 = ref span4[2]; + num2++; + ref QuestStep reference7 = ref span10[num2]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 @@ -45690,7 +55009,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = new DialogueChoice + Span span11 = CollectionsMarshal.AsSpan(list11); + int index3 = 0; + span11[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -45698,10 +55019,12 @@ public static class AssemblyQuestLoader }; obj7.DialogueChoices = list11; reference7 = obj7; - span4[3] = new QuestStep(EInteractionType.Interact, 1001027u, new Vector3(45.792236f, 20f, -8.1026f), 129); + num2++; + span10[num2] = new QuestStep(EInteractionType.Interact, 1001027u, new Vector3(45.792236f, 20f, -8.1026f), 129); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference8 = ref span3[2]; + num++; + ref QuestSequence reference8 = ref span8[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -45709,21 +55032,26 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1006002u, new Vector3(49.576538f, 20f, -5.722229f), 129) + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.Interact, 1006002u, new Vector3(49.576538f, 20f, -5.722229f), 129) { StopDistance = 7f }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span3[3]; + num++; + ref QuestSequence reference9 = ref span8[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001027u, new Vector3(45.792236f, 20f, -8.1026f), 129); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001027u, new Vector3(45.792236f, 20f, -8.1026f), 129); obj9.Steps = list13; reference9 = obj9; questRoot2.QuestSequence = list8; @@ -45733,13 +55061,16 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "liza"; + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = "liza"; questRoot3.Author = list14; - num = 4; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference10 = ref span5[0]; + index = 4; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference10 = ref span15[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -45747,24 +55078,28 @@ public static class AssemblyQuestLoader num2 = 2; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span6 = CollectionsMarshal.AsSpan(list16); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - span6[1] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + index2++; + span16[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span5[1]; + num++; + ref QuestSequence reference11 = ref span15[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - Span span7 = CollectionsMarshal.AsSpan(list17); - span7[0] = new QuestStep(EInteractionType.Interact, 1002390u, new Vector3(-143.45007f, 4.5499268f, -108.537415f), 130) + index2 = 2; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.Interact, 1002390u, new Vector3(-143.45007f, 4.5499268f, -108.537415f), 130) { StopDistance = 3f, Comment = "Buy Flame Chocobo Issuance", @@ -45781,10 +55116,12 @@ public static class AssemblyQuestLoader CategoryTab = 1 } }; - span7[1] = new QuestStep(EInteractionType.Interact, 1001978u, new Vector3(55.344482f, 4.124078f, -143.9079f), 130); + num2++; + span17[num2] = new QuestStep(EInteractionType.Interact, 1001978u, new Vector3(55.344482f, 4.124078f, -143.9079f), 130); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span5[2]; + num++; + ref QuestSequence reference12 = ref span15[num]; QuestSequence obj12 = new QuestSequence { Sequence = 2 @@ -45792,18 +55129,23 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1006003u, new Vector3(51.621216f, 4f, -142.22937f), 130); + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.Interact, 1006003u, new Vector3(51.621216f, 4f, -142.22937f), 130); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span5[3]; + num++; + ref QuestSequence reference13 = ref span15[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001978u, new Vector3(55.344482f, 4.124078f, -143.9079f), 130); + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001978u, new Vector3(55.344482f, 4.124078f, -143.9079f), 130); obj13.Steps = list19; reference13 = obj13; questRoot3.QuestSequence = list15; @@ -45813,13 +55155,16 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + Span span20 = CollectionsMarshal.AsSpan(list20); + index = 0; + span20[index] = "liza"; questRoot4.Author = list20; - num = 3; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span8 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference14 = ref span8[0]; + index = 3; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + Span span21 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference14 = ref span21[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -45827,27 +55172,34 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005021u, new Vector3(-472.49567f, 23.008797f, -355.00116f), 140); + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005021u, new Vector3(-472.49567f, 23.008797f, -355.00116f), 140); obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference15 = ref span8[1]; + num++; + ref QuestSequence reference15 = ref span21[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span9 = CollectionsMarshal.AsSpan(list23); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) + index2 = 3; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) { Fly = true }; - span9[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); - span9[2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); + num2++; + span23[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); + num2++; + span23[num2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference16 = ref span8[2]; + num++; + ref QuestSequence reference16 = ref span21[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -45855,7 +55207,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -45874,21 +55228,26 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "JerryWester"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "JerryWester"; questRoot5.Author = list25; - num = 3; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span10 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference17 = ref span10[0]; + index = 3; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference17 = ref span26[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -45902,7 +55261,8 @@ public static class AssemblyQuestLoader }; obj17.Steps = list27; reference17 = obj17; - ref QuestSequence reference18 = ref span10[1]; + num++; + ref QuestSequence reference18 = ref span26[num]; QuestSequence obj18 = new QuestSequence { Sequence = 1 @@ -45910,60 +55270,84 @@ public static class AssemblyQuestLoader num2 = 3; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span11 = CollectionsMarshal.AsSpan(list28); - ref QuestStep reference19 = ref span11[0]; + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + ref QuestStep reference19 = ref span28[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1000615u, new Vector3(-246.44855f, 3.5452707f, 279.92664f), 152); - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span12 = CollectionsMarshal.AsSpan(list29); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list29; reference19 = questStep; - ref QuestStep reference20 = ref span11[1]; + index2++; + ref QuestStep reference20 = ref span28[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1000557u, new Vector3(-206.0426f, 2.663525f, 303.94446f), 152); num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span13 = CollectionsMarshal.AsSpan(list30); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span30 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list30; reference20 = questStep2; - ref QuestStep reference21 = ref span11[2]; + index2++; + ref QuestStep reference21 = ref span28[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1000553u, new Vector3(-187.48767f, 4.4436555f, 292.50012f), 152); - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span14 = CollectionsMarshal.AsSpan(list31); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list31; reference21 = questStep3; obj18.Steps = list28; reference18 = obj18; - ref QuestSequence reference22 = ref span10[2]; + num++; + ref QuestSequence reference22 = ref span26[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152); + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152); obj19.Steps = list32; reference22 = obj19; questRoot5.QuestSequence = list26; @@ -45973,13 +55357,16 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "JerryWester"; + Span span33 = CollectionsMarshal.AsSpan(list33); + index = 0; + span33[index] = "JerryWester"; questRoot6.Author = list33; - num = 4; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span15 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference23 = ref span15[0]; + index = 4; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + Span span34 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference23 = ref span34[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -45987,7 +55374,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -46000,18 +55389,22 @@ public static class AssemblyQuestLoader }; obj20.Steps = list35; reference23 = obj20; - ref QuestSequence reference24 = ref span15[1]; + num++; + ref QuestSequence reference24 = ref span34[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1000766u, new Vector3(-485.70996f, 9.170645f, 177.203f), 152); + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.Interact, 1000766u, new Vector3(-485.70996f, 9.170645f, 177.203f), 152); obj21.Steps = list36; reference24 = obj21; - ref QuestSequence reference25 = ref span15[2]; + num++; + ref QuestSequence reference25 = ref span34[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 @@ -46019,7 +55412,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - ref QuestStep reference26 = ref CollectionsMarshal.AsSpan(list37)[0]; + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + ref QuestStep reference26 = ref span37[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 2001902u, new Vector3(-386.6789f, -0.015319824f, 192.46204f), 152) { ItemId = 2000571u, @@ -46028,20 +55423,25 @@ public static class AssemblyQuestLoader num3 = 1; List list38 = new List(num3); CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = 33u; + Span span38 = CollectionsMarshal.AsSpan(list38); + index3 = 0; + span38[index3] = 33u; obj23.KillEnemyDataIds = list38; reference26 = obj23; obj22.Steps = list37; reference25 = obj22; - ref QuestSequence reference27 = ref span15[3]; + num++; + ref QuestSequence reference27 = ref span34[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; @@ -46054,13 +55454,16 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "croizat"; + Span span40 = CollectionsMarshal.AsSpan(list40); + index = 0; + span40[index] = "croizat"; questRoot7.Author = list40; - num = 5; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span16 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference28 = ref span16[0]; + index = 5; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + Span span41 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference28 = ref span41[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -46068,21 +55471,27 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000536u, new Vector3(-242.0539f, 3.5598407f, 287.4646f), 152); + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000536u, new Vector3(-242.0539f, 3.5598407f, 287.4646f), 152); obj25.Steps = list42; reference28 = obj25; - ref QuestSequence reference29 = ref span16[1]; + num++; + ref QuestSequence reference29 = ref span41[num]; QuestSequence obj26 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1000619u, new Vector3(-209.0639f, 22.813372f, 245.34973f), 152); + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.Interact, 1000619u, new Vector3(-209.0639f, 22.813372f, 245.34973f), 152); obj26.Steps = list43; reference29 = obj26; - ref QuestSequence reference30 = ref span16[2]; + num++; + ref QuestSequence reference30 = ref span41[num]; QuestSequence obj27 = new QuestSequence { Sequence = 2 @@ -46090,15 +55499,19 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - ref QuestStep reference31 = ref CollectionsMarshal.AsSpan(list44)[0]; + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + ref QuestStep reference31 = ref span44[index2]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(-171.7635f, 0.59028566f, 153.80334f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new ComplexCombatData + index3 = 1; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + Span span45 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span45[num3] = new ComplexCombatData { DataId = 38u, MinimumKillCount = 6u @@ -46107,18 +55520,22 @@ public static class AssemblyQuestLoader reference31 = obj28; obj27.Steps = list44; reference30 = obj27; - ref QuestSequence reference32 = ref span16[3]; + num++; + ref QuestSequence reference32 = ref span41[num]; QuestSequence obj29 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1000619u, new Vector3(-209.0639f, 22.813372f, 245.34973f), 152); + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.Interact, 1000619u, new Vector3(-209.0639f, 22.813372f, 245.34973f), 152); obj29.Steps = list46; reference32 = obj29; - ref QuestSequence reference33 = ref span16[4]; + num++; + ref QuestSequence reference33 = ref span41[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -46126,7 +55543,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000536u, new Vector3(-242.0539f, 3.5598407f, 287.4646f), 152); + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000536u, new Vector3(-242.0539f, 3.5598407f, 287.4646f), 152); obj30.Steps = list47; reference33 = obj30; questRoot7.QuestSequence = list41; @@ -46136,24 +55555,30 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "croizat"; + Span span48 = CollectionsMarshal.AsSpan(list48); + index = 0; + span48[index] = "croizat"; questRoot8.Author = list48; - num = 3; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span17 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference34 = ref span17[0]; + index = 3; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + Span span49 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference34 = ref span49[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000615u, new Vector3(-246.44855f, 3.6067607f, 279.92664f), 152); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000615u, new Vector3(-246.44855f, 3.6067607f, 279.92664f), 152); obj31.Steps = list50; reference34 = obj31; - ref QuestSequence reference35 = ref span17[1]; + num++; + ref QuestSequence reference35 = ref span49[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -46161,30 +55586,36 @@ public static class AssemblyQuestLoader num2 = 3; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span18 = CollectionsMarshal.AsSpan(list51); - span18[0] = new QuestStep(EInteractionType.UseItem, 2000720u, new Vector3(-209.09442f, -4.654114f, 195.78845f), 152) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.UseItem, 2000720u, new Vector3(-209.09442f, -4.654114f, 195.78845f), 152) { ItemId = 2000572u }; - span18[1] = new QuestStep(EInteractionType.UseItem, 2000721u, new Vector3(-146.04419f, -5.2644043f, 199.23706f), 152) + index2++; + span51[index2] = new QuestStep(EInteractionType.UseItem, 2000721u, new Vector3(-146.04419f, -5.2644043f, 199.23706f), 152) { ItemId = 2000572u }; - span18[2] = new QuestStep(EInteractionType.UseItem, 2000722u, new Vector3(-173.32727f, 2.1820068f, 137.68213f), 152) + index2++; + span51[index2] = new QuestStep(EInteractionType.UseItem, 2000722u, new Vector3(-173.32727f, 2.1820068f, 137.68213f), 152) { ItemId = 2000572u }; obj32.Steps = list51; reference35 = obj32; - ref QuestSequence reference36 = ref span17[2]; + num++; + ref QuestSequence reference36 = ref span49[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000615u, new Vector3(-246.44855f, 3.6067607f, 279.92664f), 152); + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000615u, new Vector3(-246.44855f, 3.6067607f, 279.92664f), 152); obj33.Steps = list52; reference36 = obj33; questRoot8.QuestSequence = list49; @@ -46194,13 +55625,16 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "JerryWester"; + Span span53 = CollectionsMarshal.AsSpan(list53); + index = 0; + span53[index] = "JerryWester"; questRoot9.Author = list53; - num = 5; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span19 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference37 = ref span19[0]; + index = 5; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + Span span54 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference37 = ref span54[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -46208,7 +55642,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -46221,18 +55657,22 @@ public static class AssemblyQuestLoader }; obj34.Steps = list55; reference37 = obj34; - ref QuestSequence reference38 = ref span19[1]; + num++; + ref QuestSequence reference38 = ref span54[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1006188u, new Vector3(-236.92688f, 3.5435789f, 283.4973f), 152); + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.Interact, 1006188u, new Vector3(-236.92688f, 3.5435789f, 283.4973f), 152); obj35.Steps = list56; reference38 = obj35; - ref QuestSequence reference39 = ref span19[2]; + num++; + ref QuestSequence reference39 = ref span54[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 @@ -46240,25 +55680,31 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj36.Steps = list57; reference39 = obj36; - ref QuestSequence reference40 = ref span19[3]; + num++; + ref QuestSequence reference40 = ref span54[num]; QuestSequence obj37 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Emote, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.Emote, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) { DelaySecondsAtStart = 1f, Emote = EEmote.Dance }; obj37.Steps = list58; reference40 = obj37; - ref QuestSequence reference41 = ref span19[4]; + num++; + ref QuestSequence reference41 = ref span54[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -46266,7 +55712,9 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj38.Steps = list59; reference41 = obj38; questRoot9.QuestSequence = list54; @@ -46276,24 +55724,30 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "croizat"; + Span span60 = CollectionsMarshal.AsSpan(list60); + index = 0; + span60[index] = "croizat"; questRoot10.Author = list60; - num = 4; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span20 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference42 = ref span20[0]; + index = 4; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference42 = ref span61[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000557u, new Vector3(-206.0426f, 2.663524f, 303.94446f), 152); + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000557u, new Vector3(-206.0426f, 2.663524f, 303.94446f), 152); obj39.Steps = list62; reference42 = obj39; - ref QuestSequence reference43 = ref span20[1]; + num++; + ref QuestSequence reference43 = ref span61[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -46301,28 +55755,37 @@ public static class AssemblyQuestLoader num2 = 5; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span21 = CollectionsMarshal.AsSpan(list63); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-244.26903f, 11.990254f, 283.21274f), 152); - span21[1] = new QuestStep(EInteractionType.Interact, 2001911u, new Vector3(-245.65503f, 11.001709f, 280.8728f), 152); - span21[2] = new QuestStep(EInteractionType.Interact, 2001912u, new Vector3(-237.995f, 16.006714f, 289.96716f), 152); - span21[3] = new QuestStep(EInteractionType.Interact, 2001909u, new Vector3(-221.36267f, 16.006714f, 291.12683f), 152); - span21[4] = new QuestStep(EInteractionType.Interact, 2001910u, new Vector3(-230.30444f, 7.1869507f, 272.29712f), 152); + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-244.26903f, 11.990254f, 283.21274f), 152); + index2++; + span63[index2] = new QuestStep(EInteractionType.Interact, 2001911u, new Vector3(-245.65503f, 11.001709f, 280.8728f), 152); + index2++; + span63[index2] = new QuestStep(EInteractionType.Interact, 2001912u, new Vector3(-237.995f, 16.006714f, 289.96716f), 152); + index2++; + span63[index2] = new QuestStep(EInteractionType.Interact, 2001909u, new Vector3(-221.36267f, 16.006714f, 291.12683f), 152); + index2++; + span63[index2] = new QuestStep(EInteractionType.Interact, 2001910u, new Vector3(-230.30444f, 7.1869507f, 272.29712f), 152); obj40.Steps = list63; reference43 = obj40; - ref QuestSequence reference44 = ref span20[2]; + num++; + ref QuestSequence reference44 = ref span61[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span22 = CollectionsMarshal.AsSpan(list64); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-224.41977f, 0.99999976f, 271.15808f), 152); - span22[1] = new QuestStep(EInteractionType.Interact, 1000557u, new Vector3(-206.0426f, 2.663524f, 303.94446f), 152); + index2 = 2; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-224.41977f, 0.99999976f, 271.15808f), 152); + num2++; + span64[num2] = new QuestStep(EInteractionType.Interact, 1000557u, new Vector3(-206.0426f, 2.663524f, 303.94446f), 152); obj41.Steps = list64; reference44 = obj41; - ref QuestSequence reference45 = ref span20[3]; + num++; + ref QuestSequence reference45 = ref span61[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -46330,7 +55793,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152); + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152); obj42.Steps = list65; reference45 = obj42; questRoot10.QuestSequence = list61; @@ -46340,21 +55805,26 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "JerryWester"; + Span span66 = CollectionsMarshal.AsSpan(list66); + index = 0; + span66[index] = "JerryWester"; questRoot11.Author = list66; - num = 5; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span23 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference46 = ref span23[0]; + index = 5; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + Span span67 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference46 = ref span67[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -46367,7 +55837,8 @@ public static class AssemblyQuestLoader }; obj43.Steps = list68; reference46 = obj43; - ref QuestSequence reference47 = ref span23[1]; + num++; + ref QuestSequence reference47 = ref span67[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -46375,36 +55846,51 @@ public static class AssemblyQuestLoader num2 = 4; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span24 = CollectionsMarshal.AsSpan(list69); - ref QuestStep reference48 = ref span24[0]; + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + ref QuestStep reference48 = ref span69[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1000585u, new Vector3(25.558838f, -5.7208977f, 241.62659f), 152); num3 = 6; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span25 = CollectionsMarshal.AsSpan(list70); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span70 = CollectionsMarshal.AsSpan(list70); + index3 = 0; + span70[index3] = null; + index3++; + span70[index3] = null; + index3++; + span70[index3] = null; + index3++; + span70[index3] = null; + index3++; + span70[index3] = null; + index3++; + span70[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list70; reference48 = questStep4; - ref QuestStep reference49 = ref span24[1]; + index2++; + ref QuestStep reference49 = ref span69[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1000277u, new Vector3(102.76941f, 8.161999f, 187.94531f), 152); - num3 = 6; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - Span span26 = CollectionsMarshal.AsSpan(list71); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list71 = new List(index3); + CollectionsMarshal.SetCount(list71, index3); + Span span71 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list71; reference49 = questStep5; - ref QuestStep reference50 = ref span24[2]; + index2++; + ref QuestStep reference50 = ref span69[index2]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1000553u, new Vector3(-187.48767f, 4.4436555f, 292.50012f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -46412,43 +55898,60 @@ public static class AssemblyQuestLoader num3 = 6; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - Span span27 = CollectionsMarshal.AsSpan(list72); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span72 = CollectionsMarshal.AsSpan(list72); + index3 = 0; + span72[index3] = null; + index3++; + span72[index3] = null; + index3++; + span72[index3] = null; + index3++; + span72[index3] = null; + index3++; + span72[index3] = null; + index3++; + span72[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj45.CompletionQuestVariablesFlags = list72; reference50 = obj45; - ref QuestStep reference51 = ref span24[3]; + index2++; + ref QuestStep reference51 = ref span69[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1000545u, new Vector3(-242.72534f, 3.5598407f, 286.9154f), 152); - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span28 = CollectionsMarshal.AsSpan(list73); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + Span span73 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list73; reference51 = questStep6; obj44.Steps = list69; reference47 = obj44; - ref QuestSequence reference52 = ref span23[2]; + num++; + ref QuestSequence reference52 = ref span67[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj46.Steps = list74; reference52 = obj46; - ref QuestSequence reference53 = ref span23[3]; + num++; + ref QuestSequence reference53 = ref span67[num]; QuestSequence obj47 = new QuestSequence { Sequence = 3 @@ -46456,8 +55959,9 @@ public static class AssemblyQuestLoader num2 = 2; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span29 = CollectionsMarshal.AsSpan(list75); - ref QuestStep reference54 = ref span29[0]; + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + ref QuestStep reference54 = ref span75[index2]; QuestStep obj48 = new QuestStep(EInteractionType.Combat, 2001918u, new Vector3(-100.93848f, -8.285706f, 261.40222f), 152) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -46465,36 +55969,50 @@ public static class AssemblyQuestLoader num3 = 4; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span30 = CollectionsMarshal.AsSpan(list76); - span30[0] = 1895u; - span30[1] = 1896u; - span30[2] = 1897u; - span30[3] = 1898u; + Span span76 = CollectionsMarshal.AsSpan(list76); + index3 = 0; + span76[index3] = 1895u; + index3++; + span76[index3] = 1896u; + index3++; + span76[index3] = 1897u; + index3++; + span76[index3] = 1898u; obj48.KillEnemyDataIds = list76; - num3 = 6; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - Span span31 = CollectionsMarshal.AsSpan(list77); - span31[0] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = null; + index3 = 6; + List list77 = new List(index3); + CollectionsMarshal.SetCount(list77, index3); + Span span77 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + span77[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num3++; + span77[num3] = null; + num3++; + span77[num3] = null; + num3++; + span77[num3] = null; + num3++; + span77[num3] = null; + num3++; + span77[num3] = null; obj48.CompletionQuestVariablesFlags = list77; reference54 = obj48; - span29[1] = new QuestStep(EInteractionType.Interact, 2001918u, new Vector3(-100.93848f, -8.285706f, 261.40222f), 152); + index2++; + span75[index2] = new QuestStep(EInteractionType.Interact, 2001918u, new Vector3(-100.93848f, -8.285706f, 261.40222f), 152); obj47.Steps = list75; reference53 = obj47; - ref QuestSequence reference55 = ref span23[4]; + num++; + ref QuestSequence reference55 = ref span67[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj49.Steps = list78; reference55 = obj49; questRoot11.QuestSequence = list67; @@ -46504,13 +56022,16 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "croizat"; + Span span79 = CollectionsMarshal.AsSpan(list79); + index = 0; + span79[index] = "croizat"; questRoot12.Author = list79; - num = 4; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span32 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference56 = ref span32[0]; + index = 4; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + Span span80 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference56 = ref span80[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -46518,24 +56039,30 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152); + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152); obj50.Steps = list81; reference56 = obj50; - ref QuestSequence reference57 = ref span32[1]; + num++; + ref QuestSequence reference57 = ref span80[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Emote, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.Emote, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152) { Emote = EEmote.Poke }; obj51.Steps = list82; reference57 = obj51; - ref QuestSequence reference58 = ref span32[2]; + num++; + ref QuestSequence reference58 = ref span80[num]; QuestSequence obj52 = new QuestSequence { Sequence = 2 @@ -46543,21 +56070,26 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Emote, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152) + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.Emote, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152) { Emote = EEmote.ExamineSelf }; obj52.Steps = list83; reference58 = obj52; - ref QuestSequence reference59 = ref span32[3]; + num++; + ref QuestSequence reference59 = ref span80[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152) { Emote = EEmote.Congratulate }; @@ -46570,13 +56102,16 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "croizat"; + Span span85 = CollectionsMarshal.AsSpan(list85); + index = 0; + span85[index] = "croizat"; questRoot13.Author = list85; - num = 3; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span33 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference60 = ref span33[0]; + index = 3; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + Span span86 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference60 = ref span86[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -46584,19 +56119,23 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152); + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152); obj54.Steps = list87; reference60 = obj54; - ref QuestSequence reference61 = ref span33[1]; + num++; + ref QuestSequence reference61 = ref span86[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span34 = CollectionsMarshal.AsSpan(list88); - ref QuestStep reference62 = ref span34[0]; + index2 = 2; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + ref QuestStep reference62 = ref span88[num2]; QuestStep obj56 = new QuestStep(EInteractionType.Combat, 2001921u, new Vector3(-76.58508f, -1.6327515f, 191.51587f), 152) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -46604,22 +56143,27 @@ public static class AssemblyQuestLoader num3 = 1; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - CollectionsMarshal.AsSpan(list89)[0] = new ComplexCombatData + Span span89 = CollectionsMarshal.AsSpan(list89); + index3 = 0; + span89[index3] = new ComplexCombatData { DataId = 1886u, MinimumKillCount = 1u }; obj56.ComplexCombatData = list89; reference62 = obj56; - ref QuestStep reference63 = ref span34[1]; + num2++; + ref QuestStep reference63 = ref span88[num2]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, 2001920u, new Vector3(-54.673157f, -1.083435f, 328.14514f), 152) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = new ComplexCombatData + index3 = 1; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + Span span90 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span90[num3] = new ComplexCombatData { DataId = 15u, MinimumKillCount = 2u @@ -46628,7 +56172,8 @@ public static class AssemblyQuestLoader reference63 = obj57; obj55.Steps = list88; reference61 = obj55; - ref QuestSequence reference64 = ref span33[2]; + num++; + ref QuestSequence reference64 = ref span86[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -46636,7 +56181,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152) { NextQuestId = new QuestId(723) }; @@ -46649,24 +56196,30 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "croizat"; + Span span92 = CollectionsMarshal.AsSpan(list92); + index = 0; + span92[index] = "croizat"; questRoot14.Author = list92; - num = 3; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span35 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference65 = ref span35[0]; + index = 3; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + Span span93 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference65 = ref span93[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152); obj59.Steps = list94; reference65 = obj59; - ref QuestSequence reference66 = ref span35[1]; + num++; + ref QuestSequence reference66 = ref span93[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -46674,21 +56227,27 @@ public static class AssemblyQuestLoader num2 = 3; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span36 = CollectionsMarshal.AsSpan(list95); - span36[0] = new QuestStep(EInteractionType.Interact, 2001923u, new Vector3(-223.28534f, 1.9683228f, 129.28967f), 152); - span36[1] = new QuestStep(EInteractionType.Interact, 2001922u, new Vector3(-244.28174f, 2.8533936f, 128.52673f), 152); - span36[2] = new QuestStep(EInteractionType.Interact, 2001924u, new Vector3(-194.3847f, 11.062683f, 76.920654f), 152); + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.Interact, 2001923u, new Vector3(-223.28534f, 1.9683228f, 129.28967f), 152); + index2++; + span95[index2] = new QuestStep(EInteractionType.Interact, 2001922u, new Vector3(-244.28174f, 2.8533936f, 128.52673f), 152); + index2++; + span95[index2] = new QuestStep(EInteractionType.Interact, 2001924u, new Vector3(-194.3847f, 11.062683f, 76.920654f), 152); obj60.Steps = list95; reference66 = obj60; - ref QuestSequence reference67 = ref span35[2]; + num++; + ref QuestSequence reference67 = ref span93[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152); + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152); obj61.Steps = list96; reference67 = obj61; questRoot14.QuestSequence = list93; @@ -46698,13 +56257,16 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "JerryWester"; + Span span97 = CollectionsMarshal.AsSpan(list97); + index = 0; + span97[index] = "JerryWester"; questRoot15.Author = list97; - num = 5; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span37 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference68 = ref span37[0]; + index = 5; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference68 = ref span98[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -46712,7 +56274,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -46725,18 +56289,22 @@ public static class AssemblyQuestLoader }; obj62.Steps = list99; reference68 = obj62; - ref QuestSequence reference69 = ref span37[1]; + num++; + ref QuestSequence reference69 = ref span98[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1002937u, new Vector3(-72.22095f, -2.5420866f, 187.85376f), 152); + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.Interact, 1002937u, new Vector3(-72.22095f, -2.5420866f, 187.85376f), 152); obj63.Steps = list100; reference69 = obj63; - ref QuestSequence reference70 = ref span37[2]; + num++; + ref QuestSequence reference70 = ref span98[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -46744,18 +56312,23 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj64.Steps = list101; reference70 = obj64; - ref QuestSequence reference71 = ref span37[3]; + num++; + ref QuestSequence reference71 = ref span98[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002998u, new Vector3(-283.92462f, 12.245282f, -39.383606f), 152) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002998u, new Vector3(-283.92462f, 12.245282f, -39.383606f), 152) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -46764,7 +56337,8 @@ public static class AssemblyQuestLoader }; obj65.Steps = list102; reference71 = obj65; - ref QuestSequence reference72 = ref span37[4]; + num++; + ref QuestSequence reference72 = ref span98[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -46772,7 +56346,9 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span103[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj66.Steps = list103; reference72 = obj66; questRoot15.QuestSequence = list98; @@ -46782,21 +56358,26 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "JerryWester"; + Span span104 = CollectionsMarshal.AsSpan(list104); + index = 0; + span104[index] = "JerryWester"; questRoot16.Author = list104; - num = 4; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span38 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference73 = ref span38[0]; + index = 4; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + Span span105 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference73 = ref span105[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -46809,7 +56390,8 @@ public static class AssemblyQuestLoader }; obj67.Steps = list106; reference73 = obj67; - ref QuestSequence reference74 = ref span38[1]; + num++; + ref QuestSequence reference74 = ref span105[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -46817,27 +56399,33 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj68.Steps = list107; reference74 = obj68; - ref QuestSequence reference75 = ref span38[2]; + num++; + ref QuestSequence reference75 = ref span105[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1000734u, new Vector3(-2.5482788f, -1.2191527f, 39.96338f), 148) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.Interact, 1000734u, new Vector3(-2.5482788f, -1.2191527f, 39.96338f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj69.Steps = list108; reference75 = obj69; - ref QuestSequence reference76 = ref span38[3]; + num++; + ref QuestSequence reference76 = ref span105[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -46845,12 +56433,14 @@ public static class AssemblyQuestLoader num2 = 2; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span39 = CollectionsMarshal.AsSpan(list109); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(164.6276f, -23.814985f, 551.0861f), 148) + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(164.6276f, -23.814985f, 551.0861f), 148) { TargetTerritoryId = (ushort)153 }; - span39[1] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + index2++; + span109[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj70.Steps = list109; reference76 = obj70; questRoot16.QuestSequence = list105; @@ -46860,24 +56450,30 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "croizat"; + Span span110 = CollectionsMarshal.AsSpan(list110); + index = 0; + span110[index] = "croizat"; questRoot17.Author = list110; - num = 3; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span40 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference77 = ref span40[0]; + index = 3; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + Span span111 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference77 = ref span111[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153); + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153); obj71.Steps = list112; reference77 = obj71; - ref QuestSequence reference78 = ref span40[1]; + num++; + ref QuestSequence reference78 = ref span111[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -46885,7 +56481,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list113)[0]; + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + ref QuestStep reference79 = ref span113[index2]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2187u, new Vector3(-151.47598f, 3.7521288f, 123.562065f), 153) { ItemId = 2000828u, @@ -46894,7 +56492,9 @@ public static class AssemblyQuestLoader num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = new ComplexCombatData + Span span114 = CollectionsMarshal.AsSpan(list114); + index3 = 0; + span114[index3] = new ComplexCombatData { DataId = 2187u, MinimumKillCount = 1u @@ -46909,15 +56509,18 @@ public static class AssemblyQuestLoader reference79 = obj73; obj72.Steps = list113; reference78 = obj72; - ref QuestSequence reference80 = ref span40[2]; + num++; + ref QuestSequence reference80 = ref span111[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span115[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153) { NextQuestId = new QuestId(728) }; @@ -46930,13 +56533,16 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "croizat"; + Span span116 = CollectionsMarshal.AsSpan(list116); + index = 0; + span116[index] = "croizat"; questRoot18.Author = list116; - num = 6; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span41 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference81 = ref span41[0]; + index = 6; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + Span span117 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference81 = ref span117[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -46944,27 +56550,33 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153); + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span118[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153); obj75.Steps = list118; reference81 = obj75; - ref QuestSequence reference82 = ref span41[1]; + num++; + ref QuestSequence reference82 = ref span117[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - Span span42 = CollectionsMarshal.AsSpan(list119); - ref QuestStep reference83 = ref span42[0]; + index2 = 2; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + ref QuestStep reference83 = ref span119[num2]; QuestStep obj77 = new QuestStep(EInteractionType.Combat, null, new Vector3(-167.31592f, 5.486305f, 15.132226f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - CollectionsMarshal.AsSpan(list120)[0] = new ComplexCombatData + index3 = 1; + List list120 = new List(index3); + CollectionsMarshal.SetCount(list120, index3); + Span span120 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + span120[num3] = new ComplexCombatData { DataId = 3u, MinimumKillCount = 4u, @@ -46975,24 +56587,33 @@ public static class AssemblyQuestLoader num3 = 6; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - Span span43 = CollectionsMarshal.AsSpan(list121); - span43[0] = null; - span43[1] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = null; + Span span121 = CollectionsMarshal.AsSpan(list121); + index3 = 0; + span121[index3] = null; + index3++; + span121[index3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + index3++; + span121[index3] = null; + index3++; + span121[index3] = null; + index3++; + span121[index3] = null; + index3++; + span121[index3] = null; obj77.CompletionQuestVariablesFlags = list121; reference83 = obj77; - ref QuestStep reference84 = ref span42[1]; + num2++; + ref QuestStep reference84 = ref span119[num2]; QuestStep obj78 = new QuestStep(EInteractionType.Combat, null, new Vector3(-119.055f, 4.8576365f, -28.191822f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = new ComplexCombatData + index3 = 1; + List list122 = new List(index3); + CollectionsMarshal.SetCount(list122, index3); + Span span122 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + span122[num3] = new ComplexCombatData { DataId = 23u, MinimumKillCount = 2u, @@ -47003,18 +56624,25 @@ public static class AssemblyQuestLoader num3 = 6; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - Span span44 = CollectionsMarshal.AsSpan(list123); - span44[0] = null; - span44[1] = null; - span44[2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span44[3] = null; - span44[4] = null; - span44[5] = null; + Span span123 = CollectionsMarshal.AsSpan(list123); + index3 = 0; + span123[index3] = null; + index3++; + span123[index3] = null; + index3++; + span123[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3++; + span123[index3] = null; + index3++; + span123[index3] = null; + index3++; + span123[index3] = null; obj78.CompletionQuestVariablesFlags = list123; reference84 = obj78; obj76.Steps = list119; reference82 = obj76; - ref QuestSequence reference85 = ref span41[2]; + num++; + ref QuestSequence reference85 = ref span117[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -47022,21 +56650,27 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 2002258u, new Vector3(42.923584f, 4.2266846f, 48.05066f), 153); + Span span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span124[index2] = new QuestStep(EInteractionType.Interact, 2002258u, new Vector3(42.923584f, 4.2266846f, 48.05066f), 153); obj79.Steps = list124; reference85 = obj79; - ref QuestSequence reference86 = ref span41[3]; + num++; + ref QuestSequence reference86 = ref span117[num]; QuestSequence obj80 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 2002258u, new Vector3(42.923584f, 4.2266846f, 48.05066f), 153); + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span125[num2] = new QuestStep(EInteractionType.Interact, 2002258u, new Vector3(42.923584f, 4.2266846f, 48.05066f), 153); obj80.Steps = list125; reference86 = obj80; - ref QuestSequence reference87 = ref span41[4]; + num++; + ref QuestSequence reference87 = ref span117[num]; QuestSequence obj81 = new QuestSequence { Sequence = 4 @@ -47044,21 +56678,26 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Emote, 2002258u, new Vector3(42.923584f, 4.2266846f, 48.05066f), 153) + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span126[index2] = new QuestStep(EInteractionType.Emote, 2002258u, new Vector3(42.923584f, 4.2266846f, 48.05066f), 153) { Emote = EEmote.Kneel }; obj81.Steps = list126; reference87 = obj81; - ref QuestSequence reference88 = ref span41[5]; + num++; + ref QuestSequence reference88 = ref span117[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153); + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153); obj82.Steps = list127; reference88 = obj82; questRoot18.QuestSequence = list117; @@ -47068,13 +56707,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + Span span128 = CollectionsMarshal.AsSpan(list128); + index = 0; + span128[index] = "liza"; questRoot19.Author = list128; - num = 3; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span45 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference89 = ref span45[0]; + index = 3; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + Span span129 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference89 = ref span129[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -47082,31 +56724,39 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span130[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj83.Steps = list130; reference89 = obj83; - ref QuestSequence reference90 = ref span45[1]; + num++; + ref QuestSequence reference90 = ref span129[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - ref QuestStep reference91 = ref CollectionsMarshal.AsSpan(list131)[0]; + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + ref QuestStep reference91 = ref span131[num2]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, null, new Vector3(-108.26998f, 2.4296746f, -35.70589f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = 302u; + index3 = 1; + List list132 = new List(index3); + CollectionsMarshal.SetCount(list132, index3); + Span span132 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span132[num3] = 302u; obj85.KillEnemyDataIds = list132; reference91 = obj85; obj84.Steps = list131; reference90 = obj84; - ref QuestSequence reference92 = ref span45[2]; + num++; + ref QuestSequence reference92 = ref span129[num]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -47114,7 +56764,9 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj86.Steps = list133; reference92 = obj86; questRoot19.QuestSequence = list129; @@ -47124,24 +56776,30 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "croizat"; + Span span134 = CollectionsMarshal.AsSpan(list134); + index = 0; + span134[index] = "croizat"; questRoot20.Author = list134; - num = 3; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span46 = CollectionsMarshal.AsSpan(list135); - ref QuestSequence reference93 = ref span46[0]; + index = 3; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + Span span135 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref QuestSequence reference93 = ref span135[num]; QuestSequence obj87 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000439u, new Vector3(-211.59686f, 6.8409586f, 39.78015f), 153); + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000439u, new Vector3(-211.59686f, 6.8409586f, 39.78015f), 153); obj87.Steps = list136; reference93 = obj87; - ref QuestSequence reference94 = ref span46[1]; + num++; + ref QuestSequence reference94 = ref span135[num]; QuestSequence obj88 = new QuestSequence { Sequence = 1 @@ -47149,26 +56807,37 @@ public static class AssemblyQuestLoader num2 = 8; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span47 = CollectionsMarshal.AsSpan(list137); - span47[0] = new QuestStep(EInteractionType.Interact, 2001184u, new Vector3(-228.62598f, 13.809326f, 66.57507f), 153); - span47[1] = new QuestStep(EInteractionType.Interact, 2000728u, new Vector3(-240.4364f, 11.093262f, 52.231567f), 153); - span47[2] = new QuestStep(EInteractionType.Interact, 2000729u, new Vector3(-261.67694f, 16.403442f, 49.851196f), 153); - span47[3] = new QuestStep(EInteractionType.Interact, 2001185u, new Vector3(-251.39246f, 14.145081f, 32.242188f), 153); - span47[4] = new QuestStep(EInteractionType.Interact, 2001186u, new Vector3(-238.48328f, 15.823547f, 17.257874f), 153); - span47[5] = new QuestStep(EInteractionType.Interact, 2000727u, new Vector3(-226.48969f, 10.60498f, 16.67804f), 153); - span47[6] = new QuestStep(EInteractionType.Interact, 2001187u, new Vector3(-213.8247f, 9.170593f, 19.607788f), 153); - span47[7] = new QuestStep(EInteractionType.Interact, 2001188u, new Vector3(-198.68774f, 6.9733276f, 32.60852f), 153); + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.Interact, 2001184u, new Vector3(-228.62598f, 13.809326f, 66.57507f), 153); + index2++; + span137[index2] = new QuestStep(EInteractionType.Interact, 2000728u, new Vector3(-240.4364f, 11.093262f, 52.231567f), 153); + index2++; + span137[index2] = new QuestStep(EInteractionType.Interact, 2000729u, new Vector3(-261.67694f, 16.403442f, 49.851196f), 153); + index2++; + span137[index2] = new QuestStep(EInteractionType.Interact, 2001185u, new Vector3(-251.39246f, 14.145081f, 32.242188f), 153); + index2++; + span137[index2] = new QuestStep(EInteractionType.Interact, 2001186u, new Vector3(-238.48328f, 15.823547f, 17.257874f), 153); + index2++; + span137[index2] = new QuestStep(EInteractionType.Interact, 2000727u, new Vector3(-226.48969f, 10.60498f, 16.67804f), 153); + index2++; + span137[index2] = new QuestStep(EInteractionType.Interact, 2001187u, new Vector3(-213.8247f, 9.170593f, 19.607788f), 153); + index2++; + span137[index2] = new QuestStep(EInteractionType.Interact, 2001188u, new Vector3(-198.68774f, 6.9733276f, 32.60852f), 153); obj88.Steps = list137; reference94 = obj88; - ref QuestSequence reference95 = ref span46[2]; + num++; + ref QuestSequence reference95 = ref span135[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000439u, new Vector3(-211.59686f, 6.8409586f, 39.78015f), 153); + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000439u, new Vector3(-211.59686f, 6.8409586f, 39.78015f), 153); obj89.Steps = list138; reference95 = obj89; questRoot20.QuestSequence = list135; @@ -47178,13 +56847,16 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "croizat"; + Span span139 = CollectionsMarshal.AsSpan(list139); + index = 0; + span139[index] = "croizat"; questRoot21.Author = list139; - num = 3; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span48 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference96 = ref span48[0]; + index = 3; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + Span span140 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference96 = ref span140[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -47192,36 +56864,43 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj90.Steps = list141; reference96 = obj90; - ref QuestSequence reference97 = ref span48[1]; + num++; + ref QuestSequence reference97 = ref span140[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span49 = CollectionsMarshal.AsSpan(list142); - span49[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-294.13345f, 25.02198f, -193.98381f), 153) + index2 = 3; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-294.13345f, 25.02198f, -193.98381f), 153) { ItemId = 2000586u, GroundTarget = true }; - span49[1] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-287.41803f, 24.902437f, -193.99835f), 153) + num2++; + span142[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-287.41803f, 24.902437f, -193.99835f), 153) { ItemId = 2000586u, GroundTarget = true }; - span49[2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-294.52402f, 24.293709f, -207.5345f), 153) + num2++; + span142[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-294.52402f, 24.293709f, -207.5345f), 153) { ItemId = 2000586u, GroundTarget = true }; obj91.Steps = list142; reference97 = obj91; - ref QuestSequence reference98 = ref span48[2]; + num++; + ref QuestSequence reference98 = ref span140[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -47229,7 +56908,9 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj92.Steps = list143; reference98 = obj92; questRoot21.QuestSequence = list140; @@ -47239,24 +56920,30 @@ public static class AssemblyQuestLoader num = 1; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - CollectionsMarshal.AsSpan(list144)[0] = "JerryWester"; + Span span144 = CollectionsMarshal.AsSpan(list144); + index = 0; + span144[index] = "JerryWester"; questRoot22.Author = list144; - num = 2; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - Span span50 = CollectionsMarshal.AsSpan(list145); - ref QuestSequence reference99 = ref span50[0]; + index = 2; + List list145 = new List(index); + CollectionsMarshal.SetCount(list145, index); + Span span145 = CollectionsMarshal.AsSpan(list145); + num = 0; + ref QuestSequence reference99 = ref span145[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); obj93.Steps = list146; reference99 = obj93; - ref QuestSequence reference100 = ref span50[1]; + num++; + ref QuestSequence reference100 = ref span145[num]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue @@ -47264,7 +56951,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; @@ -47277,21 +56966,26 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; + Span span148 = CollectionsMarshal.AsSpan(list148); + index = 0; + span148[index] = "JerryWester"; questRoot23.Author = list148; - num = 3; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span51 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference101 = ref span51[0]; + index = 3; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + Span span149 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference101 = ref span149[num]; QuestSequence obj95 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -47304,7 +56998,8 @@ public static class AssemblyQuestLoader }; obj95.Steps = list150; reference101 = obj95; - ref QuestSequence reference102 = ref span51[1]; + num++; + ref QuestSequence reference102 = ref span149[num]; QuestSequence obj96 = new QuestSequence { Sequence = 1 @@ -47312,8 +57007,9 @@ public static class AssemblyQuestLoader num2 = 10; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span52 = CollectionsMarshal.AsSpan(list151); - ref QuestStep reference103 = ref span52[0]; + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + ref QuestStep reference103 = ref span151[index2]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 2001949u, new Vector3(-142.77869f, 14.450195f, -130.11371f), 153) { Comment = "Enemy loses aggro by the next waypoint" @@ -47321,16 +57017,23 @@ public static class AssemblyQuestLoader num3 = 6; List list152 = new List(num3); CollectionsMarshal.SetCount(list152, num3); - Span span53 = CollectionsMarshal.AsSpan(list152); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span152 = CollectionsMarshal.AsSpan(list152); + index3 = 0; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj97.CompletionQuestVariablesFlags = list152; reference103 = obj97; - ref QuestStep reference104 = ref span52[1]; + index2++; + ref QuestStep reference104 = ref span151[index2]; QuestStep obj98 = new QuestStep(EInteractionType.Jump, null, new Vector3(-108.2742f, 5.6416674f, -80.21974f), 153) { StopDistance = 0.25f, @@ -47342,21 +57045,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - Span span54 = CollectionsMarshal.AsSpan(list153); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list153 = new List(index3); + CollectionsMarshal.SetCount(list153, index3); + Span span153 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list153; skipConditions.StepIf = skipStepConditions; obj98.SkipConditions = skipConditions; reference104 = obj98; - ref QuestStep reference105 = ref span52[2]; + index2++; + ref QuestStep reference105 = ref span151[index2]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 2001953u, new Vector3(-116.41113f, 11.032227f, -84.97754f), 153) { DisableNavmesh = true @@ -47364,34 +57074,48 @@ public static class AssemblyQuestLoader num3 = 6; List list154 = new List(num3); CollectionsMarshal.SetCount(list154, num3); - Span span55 = CollectionsMarshal.AsSpan(list154); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span154 = CollectionsMarshal.AsSpan(list154); + index3 = 0; + span154[index3] = null; + index3++; + span154[index3] = null; + index3++; + span154[index3] = null; + index3++; + span154[index3] = null; + index3++; + span154[index3] = null; + index3++; + span154[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj99.CompletionQuestVariablesFlags = list154; reference105 = obj99; - ref QuestStep reference106 = ref span52[3]; + index2++; + ref QuestStep reference106 = ref span151[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-103.87269f, 5.116502f, -73.9041f), 153); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span56 = CollectionsMarshal.AsSpan(list155); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list155 = new List(index3); + CollectionsMarshal.SetCount(list155, index3); + Span span155 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + span155[num3] = null; + num3++; + span155[num3] = null; + num3++; + span155[num3] = null; + num3++; + span155[num3] = null; + num3++; + span155[num3] = null; + num3++; + span155[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list155; skipConditions2.StepIf = skipStepConditions2; questStep7.SkipConditions = skipConditions2; reference106 = questStep7; - ref QuestStep reference107 = ref span52[4]; + index2++; + ref QuestStep reference107 = ref span151[index2]; QuestStep obj100 = new QuestStep(EInteractionType.Jump, null, new Vector3(-90.467575f, 3.3634722f, -27.515985f), 153) { StopDistance = 0.25f, @@ -47406,32 +57130,46 @@ public static class AssemblyQuestLoader num3 = 6; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span57 = CollectionsMarshal.AsSpan(list156); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span156 = CollectionsMarshal.AsSpan(list156); + index3 = 0; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list156; skipConditions3.StepIf = skipStepConditions3; obj100.SkipConditions = skipConditions3; reference107 = obj100; - ref QuestStep reference108 = ref span52[5]; + index2++; + ref QuestStep reference108 = ref span151[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2001951u, new Vector3(-83.32953f, 7.1259155f, -21.561035f), 153); - num3 = 6; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - Span span58 = CollectionsMarshal.AsSpan(list157); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list157 = new List(index3); + CollectionsMarshal.SetCount(list157, index3); + Span span157 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list157; reference108 = questStep8; - ref QuestStep reference109 = ref span52[6]; + index2++; + ref QuestStep reference109 = ref span151[index2]; QuestStep obj101 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-77.875786f, 3.9296143f, -27.107864f), 153) { DisableNavmesh = true @@ -47441,36 +57179,50 @@ public static class AssemblyQuestLoader num3 = 6; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - Span span59 = CollectionsMarshal.AsSpan(list158); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span158 = CollectionsMarshal.AsSpan(list158); + index3 = 0; + span158[index3] = null; + index3++; + span158[index3] = null; + index3++; + span158[index3] = null; + index3++; + span158[index3] = null; + index3++; + span158[index3] = null; + index3++; + span158[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list158; skipConditions4.StepIf = skipStepConditions4; obj101.SkipConditions = skipConditions4; reference109 = obj101; - ref QuestStep reference110 = ref span52[7]; + index2++; + ref QuestStep reference110 = ref span151[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.053005f, 3.8386261f, -40.758984f), 153); SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - Span span60 = CollectionsMarshal.AsSpan(list159); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list159 = new List(index3); + CollectionsMarshal.SetCount(list159, index3); + Span span159 = CollectionsMarshal.AsSpan(list159); + num3 = 0; + span159[num3] = null; + num3++; + span159[num3] = null; + num3++; + span159[num3] = null; + num3++; + span159[num3] = null; + num3++; + span159[num3] = null; + num3++; + span159[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list159; skipConditions5.StepIf = skipStepConditions5; questStep9.SkipConditions = skipConditions5; reference110 = questStep9; - ref QuestStep reference111 = ref span52[8]; + index2++; + ref QuestStep reference111 = ref span151[index2]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 2001952u, new Vector3(18.722778f, 7.614197f, -43.137268f), 153) { StopDistance = 6f @@ -47478,46 +57230,62 @@ public static class AssemblyQuestLoader num3 = 6; List list160 = new List(num3); CollectionsMarshal.SetCount(list160, num3); - Span span61 = CollectionsMarshal.AsSpan(list160); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span160 = CollectionsMarshal.AsSpan(list160); + index3 = 0; + span160[index3] = null; + index3++; + span160[index3] = null; + index3++; + span160[index3] = null; + index3++; + span160[index3] = null; + index3++; + span160[index3] = null; + index3++; + span160[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj102.CompletionQuestVariablesFlags = list160; reference111 = obj102; - ref QuestStep reference112 = ref span52[9]; + index2++; + ref QuestStep reference112 = ref span151[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2001950u, new Vector3(63.553833f, 13.473633f, -32.333923f), 153); - num3 = 6; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - Span span62 = CollectionsMarshal.AsSpan(list161); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list161 = new List(index3); + CollectionsMarshal.SetCount(list161, index3); + Span span161 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list161; reference112 = questStep10; obj96.Steps = list151; reference102 = obj96; - ref QuestSequence reference113 = ref span51[2]; + num++; + ref QuestSequence reference113 = ref span149[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span63 = CollectionsMarshal.AsSpan(list162); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(51.85704f, 2.712612f, -42.67677f), 153) + index2 = 2; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span162[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(51.85704f, 2.712612f, -42.67677f), 153) { DisableNavmesh = true, Mount = false }; - span63[1] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) + num2++; + span162[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) { Mount = false }; @@ -47530,13 +57298,16 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "croizat"; + Span span163 = CollectionsMarshal.AsSpan(list163); + index = 0; + span163[index] = "croizat"; questRoot24.Author = list163; - num = 3; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span64 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference114 = ref span64[0]; + index = 3; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + Span span164 = CollectionsMarshal.AsSpan(list164); + num = 0; + ref QuestSequence reference114 = ref span164[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -47544,35 +57315,44 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj104.Steps = list165; reference114 = obj104; - ref QuestSequence reference115 = ref span64[1]; + num++; + ref QuestSequence reference115 = ref span164[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span65 = CollectionsMarshal.AsSpan(list166); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-177.59566f, 9.645649f, 37.61236f), 153); - span65[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.2098f, 14.47418f, 32.58564f), 153) + index2 = 5; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-177.59566f, 9.645649f, 37.61236f), 153); + num2++; + span166[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.2098f, 14.47418f, 32.58564f), 153) { DisableNavmesh = true }; - span65[2] = new QuestStep(EInteractionType.Interact, 1006197u, new Vector3(-151.72046f, 18.631226f, 39.53601f), 153) + num2++; + span166[num2] = new QuestStep(EInteractionType.Interact, 1006197u, new Vector3(-151.72046f, 18.631226f, 39.53601f), 153) { DisableNavmesh = true }; - span65[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.91785f, 5.4492426f, 49.70637f), 153) + num2++; + span166[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.91785f, 5.4492426f, 49.70637f), 153) { DisableNavmesh = true }; - span65[4] = new QuestStep(EInteractionType.Interact, 1006198u, new Vector3(-237.17102f, 15.565003f, 104.32593f), 153); + num2++; + span166[num2] = new QuestStep(EInteractionType.Interact, 1006198u, new Vector3(-237.17102f, 15.565003f, 104.32593f), 153); obj105.Steps = list166; reference115 = obj105; - ref QuestSequence reference116 = ref span64[2]; + num++; + ref QuestSequence reference116 = ref span164[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -47580,7 +57360,9 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj106.Steps = list167; reference116 = obj106; questRoot24.QuestSequence = list164; @@ -47590,24 +57372,30 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - CollectionsMarshal.AsSpan(list168)[0] = "croizat"; + Span span168 = CollectionsMarshal.AsSpan(list168); + index = 0; + span168[index] = "croizat"; questRoot25.Author = list168; - num = 3; - List list169 = new List(num); - CollectionsMarshal.SetCount(list169, num); - Span span66 = CollectionsMarshal.AsSpan(list169); - ref QuestSequence reference117 = ref span66[0]; + index = 3; + List list169 = new List(index); + CollectionsMarshal.SetCount(list169, index); + Span span169 = CollectionsMarshal.AsSpan(list169); + num = 0; + ref QuestSequence reference117 = ref span169[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj107.Steps = list170; reference117 = obj107; - ref QuestSequence reference118 = ref span66[1]; + num++; + ref QuestSequence reference118 = ref span169[num]; QuestSequence obj108 = new QuestSequence { Sequence = 1 @@ -47615,8 +57403,9 @@ public static class AssemblyQuestLoader num2 = 3; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span67 = CollectionsMarshal.AsSpan(list171); - ref QuestStep reference119 = ref span67[0]; + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + ref QuestStep reference119 = ref span171[index2]; QuestStep obj109 = new QuestStep(EInteractionType.Combat, 2001955u, new Vector3(-97.70355f, 11.673096f, -84.00098f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -47624,33 +57413,42 @@ public static class AssemblyQuestLoader num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = 63u; + Span span172 = CollectionsMarshal.AsSpan(list172); + index3 = 0; + span172[index3] = 63u; obj109.KillEnemyDataIds = list172; reference119 = obj109; - span67[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-111.3334f, 1.7872865f, -60.205475f), 153); - ref QuestStep reference120 = ref span67[2]; + index2++; + span171[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-111.3334f, 1.7872865f, -60.205475f), 153); + index2++; + ref QuestStep reference120 = ref span171[index2]; QuestStep obj110 = new QuestStep(EInteractionType.Combat, 2001956u, new Vector3(-110.03284f, 1.9989014f, -57.053528f), 153) { StopDistance = 5f, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - CollectionsMarshal.AsSpan(list173)[0] = 63u; + index3 = 1; + List list173 = new List(index3); + CollectionsMarshal.SetCount(list173, index3); + Span span173 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span173[num3] = 63u; obj110.KillEnemyDataIds = list173; reference120 = obj110; obj108.Steps = list171; reference118 = obj108; - ref QuestSequence reference121 = ref span66[2]; + num++; + ref QuestSequence reference121 = ref span169[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj111.Steps = list174; reference121 = obj111; questRoot25.QuestSequence = list169; @@ -47660,13 +57458,16 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "JerryWester"; + Span span175 = CollectionsMarshal.AsSpan(list175); + index = 0; + span175[index] = "JerryWester"; questRoot26.Author = list175; - num = 2; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span68 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference122 = ref span68[0]; + index = 2; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + Span span176 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference122 = ref span176[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 @@ -47674,7 +57475,9 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span177[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -47687,20 +57490,23 @@ public static class AssemblyQuestLoader }; obj112.Steps = list177; reference122 = obj112; - ref QuestSequence reference123 = ref span68[1]; + num++; + ref QuestSequence reference123 = ref span176[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - Span span69 = CollectionsMarshal.AsSpan(list178); - span69[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 153) + index2 = 2; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + Span span178 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span178[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 153) { Aetheryte = EAetheryteLocation.SouthShroudCampTranquil }; - span69[1] = new QuestStep(EInteractionType.CompleteQuest, 1000576u, new Vector3(21.469421f, -4.575074f, 221.75928f), 152) + num2++; + span178[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000576u, new Vector3(21.469421f, -4.575074f, 221.75928f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; @@ -47713,13 +57519,16 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "JerryWester"; + Span span179 = CollectionsMarshal.AsSpan(list179); + index = 0; + span179[index] = "JerryWester"; questRoot27.Author = list179; - num = 3; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span70 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference124 = ref span70[0]; + index = 3; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + Span span180 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference124 = ref span180[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -47727,7 +57536,9 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span181[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -47740,22 +57551,26 @@ public static class AssemblyQuestLoader }; obj114.Steps = list181; reference124 = obj114; - ref QuestSequence reference125 = ref span70[1]; + num++; + ref QuestSequence reference125 = ref span180[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Emote, null, new Vector3(190.6642f, 8.673417f, 187.67012f), 152) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = new QuestStep(EInteractionType.Emote, null, new Vector3(190.6642f, 8.673417f, 187.67012f), 152) { StopDistance = 0.5f, Emote = EEmote.Lookout }; obj115.Steps = list182; reference125 = obj115; - ref QuestSequence reference126 = ref span70[2]; + num++; + ref QuestSequence reference126 = ref span180[num]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue @@ -47763,7 +57578,9 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + Span span183 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span183[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -47776,27 +57593,33 @@ public static class AssemblyQuestLoader num = 1; List list184 = new List(num); CollectionsMarshal.SetCount(list184, num); - CollectionsMarshal.AsSpan(list184)[0] = "skiaz"; + Span span184 = CollectionsMarshal.AsSpan(list184); + index = 0; + span184[index] = "skiaz"; questRoot28.Author = list184; - num = 3; - List list185 = new List(num); - CollectionsMarshal.SetCount(list185, num); - Span span71 = CollectionsMarshal.AsSpan(list185); - ref QuestSequence reference127 = ref span71[0]; + index = 3; + List list185 = new List(index); + CollectionsMarshal.SetCount(list185, index); + Span span185 = CollectionsMarshal.AsSpan(list185); + num = 0; + ref QuestSequence reference127 = ref span185[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000576u, new Vector3(21.469421f, -4.5750833f, 221.75928f), 152) + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span186[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000576u, new Vector3(21.469421f, -4.5750833f, 221.75928f), 152) { Fly = true }; obj117.Steps = list186; reference127 = obj117; - ref QuestSequence reference128 = ref span71[1]; + num++; + ref QuestSequence reference128 = ref span185[num]; QuestSequence obj118 = new QuestSequence { Sequence = 1 @@ -47804,16 +57627,19 @@ public static class AssemblyQuestLoader num2 = 3; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span72 = CollectionsMarshal.AsSpan(list187); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-286.51263f, 12.089579f, -33.4333f), 152) + Span span187 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span187[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-286.51263f, 12.089579f, -33.4333f), 152) { Fly = true }; - span72[1] = new QuestStep(EInteractionType.None, null, new Vector3(-286.51263f, 12.089579f, -33.4333f), 152) + index2++; + span187[index2] = new QuestStep(EInteractionType.None, null, new Vector3(-286.51263f, 12.089579f, -33.4333f), 152) { Land = true }; - ref QuestStep reference129 = ref span72[2]; + index2++; + ref QuestStep reference129 = ref span187[index2]; QuestStep obj119 = new QuestStep(EInteractionType.Combat, 2264u, new Vector3(-303.8529f, 12.348698f, -40.177063f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -47821,7 +57647,9 @@ public static class AssemblyQuestLoader num3 = 1; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - CollectionsMarshal.AsSpan(list188)[0] = new ComplexCombatData + Span span188 = CollectionsMarshal.AsSpan(list188); + index3 = 0; + span188[index3] = new ComplexCombatData { DataId = 2264u, MinimumKillCount = 3u, @@ -47838,15 +57666,18 @@ public static class AssemblyQuestLoader reference129 = obj119; obj118.Steps = list187; reference128 = obj118; - ref QuestSequence reference130 = ref span71[2]; + num++; + ref QuestSequence reference130 = ref span185[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000576u, new Vector3(21.469421f, -4.5750833f, 221.75928f), 152) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000576u, new Vector3(21.469421f, -4.5750833f, 221.75928f), 152) { Fly = true }; @@ -47859,13 +57690,16 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "JerryWester"; + Span span190 = CollectionsMarshal.AsSpan(list190); + index = 0; + span190[index] = "JerryWester"; questRoot29.Author = list190; - num = 4; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - Span span73 = CollectionsMarshal.AsSpan(list191); - ref QuestSequence reference131 = ref span73[0]; + index = 4; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + Span span191 = CollectionsMarshal.AsSpan(list191); + num = 0; + ref QuestSequence reference131 = ref span191[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -47873,7 +57707,9 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -47886,24 +57722,28 @@ public static class AssemblyQuestLoader }; obj121.Steps = list192; reference131 = obj121; - ref QuestSequence reference132 = ref span73[1]; + num++; + ref QuestSequence reference132 = ref span191[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - Span span74 = CollectionsMarshal.AsSpan(list193); - span74[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + index2 = 2; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span74[1] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); + num2++; + span193[num2] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); obj122.Steps = list193; reference132 = obj122; - ref QuestSequence reference133 = ref span73[2]; + num++; + ref QuestSequence reference133 = ref span191[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 @@ -47911,26 +57751,31 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; obj123.Steps = list194; reference133 = obj123; - ref QuestSequence reference134 = ref span73[3]; + num++; + ref QuestSequence reference134 = ref span191[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - Span span75 = CollectionsMarshal.AsSpan(list195); - span75[0] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + index2 = 2; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span75[1] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + num2++; + span195[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj124.Steps = list195; reference134 = obj124; questRoot29.QuestSequence = list191; @@ -47940,13 +57785,16 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - CollectionsMarshal.AsSpan(list196)[0] = "JerryWester"; + Span span196 = CollectionsMarshal.AsSpan(list196); + index = 0; + span196[index] = "JerryWester"; questRoot30.Author = list196; - num = 3; - List list197 = new List(num); - CollectionsMarshal.SetCount(list197, num); - Span span76 = CollectionsMarshal.AsSpan(list197); - ref QuestSequence reference135 = ref span76[0]; + index = 3; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + Span span197 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference135 = ref span197[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -47954,26 +57802,32 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span198[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj125.Steps = list198; reference135 = obj125; - ref QuestSequence reference136 = ref span76[1]; + num++; + ref QuestSequence reference136 = ref span197[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - Span span77 = CollectionsMarshal.AsSpan(list199); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) + index2 = 2; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + Span span199 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span199[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - span77[1] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + num2++; + span199[num2] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); obj126.Steps = list199; reference136 = obj126; - ref QuestSequence reference137 = ref span76[2]; + num++; + ref QuestSequence reference137 = ref span197[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -47981,7 +57835,9 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span200[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; @@ -47994,21 +57850,26 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "JerryWester"; + Span span201 = CollectionsMarshal.AsSpan(list201); + index = 0; + span201[index] = "JerryWester"; questRoot31.Author = list201; - num = 3; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span78 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference138 = ref span78[0]; + index = 3; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + Span span202 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference138 = ref span202[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -48021,7 +57882,8 @@ public static class AssemblyQuestLoader }; obj128.Steps = list203; reference138 = obj128; - ref QuestSequence reference139 = ref span78[1]; + num++; + ref QuestSequence reference139 = ref span202[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -48029,60 +57891,84 @@ public static class AssemblyQuestLoader num2 = 3; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span79 = CollectionsMarshal.AsSpan(list204); - ref QuestStep reference140 = ref span79[0]; + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + ref QuestStep reference140 = ref span204[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1006206u, new Vector3(-90.95911f, -29.465149f, -58.854065f), 145); - num3 = 6; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - Span span80 = CollectionsMarshal.AsSpan(list205); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list205 = new List(index3); + CollectionsMarshal.SetCount(list205, index3); + Span span205 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + span205[num3] = null; + num3++; + span205[num3] = null; + num3++; + span205[num3] = null; + num3++; + span205[num3] = null; + num3++; + span205[num3] = null; + num3++; + span205[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list205; reference140 = questStep11; - ref QuestStep reference141 = ref span79[1]; + index2++; + ref QuestStep reference141 = ref span204[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1006204u, new Vector3(-29.34314f, -10.500086f, -7.5532227f), 145); num3 = 6; List list206 = new List(num3); CollectionsMarshal.SetCount(list206, num3); - Span span81 = CollectionsMarshal.AsSpan(list206); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span206 = CollectionsMarshal.AsSpan(list206); + index3 = 0; + span206[index3] = null; + index3++; + span206[index3] = null; + index3++; + span206[index3] = null; + index3++; + span206[index3] = null; + index3++; + span206[index3] = null; + index3++; + span206[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list206; reference141 = questStep12; - ref QuestStep reference142 = ref span79[2]; + index2++; + ref QuestStep reference142 = ref span204[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1006205u, new Vector3(14.480774f, -5.9663696f, 7.4310913f), 145); - num3 = 6; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - Span span82 = CollectionsMarshal.AsSpan(list207); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list207 = new List(index3); + CollectionsMarshal.SetCount(list207, index3); + Span span207 = CollectionsMarshal.AsSpan(list207); + num3 = 0; + span207[num3] = null; + num3++; + span207[num3] = null; + num3++; + span207[num3] = null; + num3++; + span207[num3] = null; + num3++; + span207[num3] = null; + num3++; + span207[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list207; reference142 = questStep13; obj129.Steps = list204; reference139 = obj129; - ref QuestSequence reference143 = ref span78[2]; + num++; + ref QuestSequence reference143 = ref span202[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145); obj130.Steps = list208; reference143 = obj130; questRoot31.QuestSequence = list202; @@ -48096,13 +57982,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -48110,7 +57999,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -48123,17 +58014,20 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.09802f, 20.949646f, -263.94977f), 145); - ref QuestStep reference3 = ref span2[1]; + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.09802f, 20.949646f, -263.94977f), 145); + num2++; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, 2001965u, new Vector3(313.46606f, 23.178406f, -253.58972f), 145) { DisableNavmesh = true, @@ -48143,12 +58037,15 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 363u; + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = 363u; obj3.KillEnemyDataIds = list5; reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -48156,7 +58053,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145); + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145); obj4.Steps = list6; reference4 = obj4; questRoot.QuestSequence = list2; @@ -48166,21 +58065,26 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "JerryWester"; + Span span7 = CollectionsMarshal.AsSpan(list7); + index = 0; + span7[index] = "JerryWester"; questRoot2.Author = list7; - num = 3; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span3 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span3[0]; + index = 3; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span8[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -48193,7 +58097,8 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span3[1]; + num++; + ref QuestSequence reference6 = ref span8[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -48201,29 +58106,36 @@ public static class AssemblyQuestLoader num2 = 4; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span4 = CollectionsMarshal.AsSpan(list10); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.46503f, -46.504063f, 491.88867f), 145) + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.46503f, -46.504063f, 491.88867f), 145) { TargetTerritoryId = (ushort)146 }; - span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-47.50145f, 16.362688f, -439.62503f), 146); - span4[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) + index2++; + span10[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-47.50145f, 16.362688f, -439.62503f), 146); + index2++; + span10[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) { StopDistance = 7f, Aetheryte = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span4[3] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146); + index2++; + span10[index2] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span3[2]; + num++; + ref QuestSequence reference7 = ref span8[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); obj7.Steps = list11; reference7 = obj7; questRoot2.QuestSequence = list8; @@ -48233,13 +58145,16 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "skiaz"; + Span span12 = CollectionsMarshal.AsSpan(list12); + index = 0; + span12[index] = "skiaz"; questRoot3.Author = list12; - num = 3; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span5 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference8 = ref span5[0]; + index = 3; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference8 = ref span13[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -48247,38 +58162,45 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004894u, new Vector3(-138.87238f, 27.266977f, -427.81726f), 146) + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004894u, new Vector3(-138.87238f, 27.266977f, -427.81726f), 146) { Fly = true }; obj8.Steps = list14; reference8 = obj8; - ref QuestSequence reference9 = ref span5[1]; + num++; + ref QuestSequence reference9 = ref span13[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - Span span6 = CollectionsMarshal.AsSpan(list15); - ref QuestStep reference10 = ref span6[0]; + index2 = 2; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + ref QuestStep reference10 = ref span15[num2]; QuestStep obj10 = new QuestStep(EInteractionType.Combat, 2259u, new Vector3(-92.27408f, 14.646322f, -233.21777f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new ComplexCombatData + index3 = 1; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span16[num3] = new ComplexCombatData { DataId = 2259u, MinimumKillCount = 1u }; obj10.ComplexCombatData = list16; reference10 = obj10; - ref QuestStep reference11 = ref span6[1]; + num2++; + ref QuestStep reference11 = ref span15[num2]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, 2260u, new Vector3(-92.27408f, 14.646322f, -233.21777f), 146) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -48286,7 +58208,9 @@ public static class AssemblyQuestLoader num3 = 1; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = new ComplexCombatData + Span span17 = CollectionsMarshal.AsSpan(list17); + index3 = 0; + span17[index3] = new ComplexCombatData { DataId = 2260u, MinimumKillCount = 1u @@ -48295,7 +58219,8 @@ public static class AssemblyQuestLoader reference11 = obj11; obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference12 = ref span5[2]; + num++; + ref QuestSequence reference12 = ref span13[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -48303,7 +58228,9 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004894u, new Vector3(-138.87238f, 27.266977f, -427.81726f), 146); + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004894u, new Vector3(-138.87238f, 27.266977f, -427.81726f), 146); obj12.Steps = list18; reference12 = obj12; questRoot3.QuestSequence = list13; @@ -48313,21 +58240,26 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "JerryWester"; + Span span19 = CollectionsMarshal.AsSpan(list19); + index = 0; + span19[index] = "JerryWester"; questRoot4.Author = list19; - num = 3; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span7 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference13 = ref span7[0]; + index = 3; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + Span span20 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference13 = ref span20[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -48340,7 +58272,8 @@ public static class AssemblyQuestLoader }; obj13.Steps = list21; reference13 = obj13; - ref QuestSequence reference14 = ref span7[1]; + num++; + ref QuestSequence reference14 = ref span20[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -48348,26 +58281,34 @@ public static class AssemblyQuestLoader num2 = 5; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span8 = CollectionsMarshal.AsSpan(list22); - ref QuestStep reference15 = ref span8[0]; + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref QuestStep reference15 = ref span22[index2]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-179.69392f, 18.008331f, -279.60886f), 146); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span9 = CollectionsMarshal.AsSpan(list23); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + Span span23 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list23; skipConditions.StepIf = skipStepConditions; questStep.SkipConditions = skipConditions; reference15 = questStep; - ref QuestStep reference16 = ref span8[1]; + index2++; + ref QuestStep reference16 = ref span22[index2]; QuestStep obj15 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-184.29613f, 3.5985415f, -246.7013f), 146) { DisableNavmesh = true @@ -48377,70 +58318,100 @@ public static class AssemblyQuestLoader num3 = 6; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - Span span10 = CollectionsMarshal.AsSpan(list24); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span24 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list24; skipConditions2.StepIf = skipStepConditions2; obj15.SkipConditions = skipConditions2; reference16 = obj15; - ref QuestStep reference17 = ref span8[2]; + index2++; + ref QuestStep reference17 = ref span22[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1006702u, new Vector3(-186.14484f, 3.6335826f, -247.82184f), 146); - num3 = 6; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - Span span11 = CollectionsMarshal.AsSpan(list25); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list25 = new List(index3); + CollectionsMarshal.SetCount(list25, index3); + Span span25 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list25; reference17 = questStep2; - ref QuestStep reference18 = ref span8[3]; + index2++; + ref QuestStep reference18 = ref span22[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1006704u, new Vector3(-174.12073f, 4.3956237f, -165.45361f), 146); num3 = 6; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - Span span12 = CollectionsMarshal.AsSpan(list26); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span26 = CollectionsMarshal.AsSpan(list26); + index3 = 0; + span26[index3] = null; + index3++; + span26[index3] = null; + index3++; + span26[index3] = null; + index3++; + span26[index3] = null; + index3++; + span26[index3] = null; + index3++; + span26[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list26; reference18 = questStep3; - ref QuestStep reference19 = ref span8[4]; + index2++; + ref QuestStep reference19 = ref span22[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1006703u, new Vector3(-187.27399f, 9.149252f, -133.22656f), 146); - num3 = 6; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - Span span13 = CollectionsMarshal.AsSpan(list27); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list27 = new List(index3); + CollectionsMarshal.SetCount(list27, index3); + Span span27 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list27; reference19 = questStep4; obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference20 = ref span7[2]; + num++; + ref QuestSequence reference20 = ref span20[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; @@ -48453,13 +58424,16 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + span29[index] = "JerryWester"; questRoot5.Author = list29; - num = 2; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span14 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference21 = ref span14[0]; + index = 2; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + Span span30 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference21 = ref span30[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 @@ -48467,7 +58441,9 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span31[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -48480,29 +58456,35 @@ public static class AssemblyQuestLoader }; obj17.Steps = list31; reference21 = obj17; - ref QuestSequence reference22 = ref span14[1]; + num++; + ref QuestSequence reference22 = ref span30[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - Span span15 = CollectionsMarshal.AsSpan(list32); - span15[0] = new QuestStep(EInteractionType.UseItem, null, null, 128) + index2 = 5; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.UseItem, null, null, 128) { ItemId = 30362u }; - span15[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span15[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) + num2++; + span32[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span32[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span15[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num2++; + span32[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span15[4] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + num2++; + span32[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj18.Steps = list32; reference22 = obj18; questRoot5.QuestSequence = list30; @@ -48512,13 +58494,16 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "JerryWester"; + Span span33 = CollectionsMarshal.AsSpan(list33); + index = 0; + span33[index] = "JerryWester"; questRoot6.Author = list33; - num = 3; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span16 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference23 = ref span16[0]; + index = 3; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + Span span34 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference23 = ref span34[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -48526,26 +58511,32 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj19.Steps = list35; reference23 = obj19; - ref QuestSequence reference24 = ref span16[1]; + num++; + ref QuestSequence reference24 = ref span34[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span17 = CollectionsMarshal.AsSpan(list36); - span17[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) + index2 = 2; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span17[1] = new QuestStep(EInteractionType.Interact, 1007418u, new Vector3(9.689453f, -3.0000017f, -55.985413f), 212); + num2++; + span36[num2] = new QuestStep(EInteractionType.Interact, 1007418u, new Vector3(9.689453f, -3.0000017f, -55.985413f), 212); obj20.Steps = list36; reference24 = obj20; - ref QuestSequence reference25 = ref span16[2]; + num++; + ref QuestSequence reference25 = ref span34[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue @@ -48553,7 +58544,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006219u, new Vector3(193.53015f, 7.8551283f, -25.864075f), 153) + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006219u, new Vector3(193.53015f, 7.8551283f, -25.864075f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; @@ -48566,24 +58559,28 @@ public static class AssemblyQuestLoader num = 2; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span18 = CollectionsMarshal.AsSpan(list38); - span18[0] = "liza"; - span18[1] = "Friendly"; + Span span38 = CollectionsMarshal.AsSpan(list38); + index = 0; + span38[index] = "liza"; + index++; + span38[index] = "Friendly"; questRoot7.Author = list38; - num = 2; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span19 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference26 = ref span19[0]; + index = 2; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + Span span39 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference26 = ref span39[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span20 = CollectionsMarshal.AsSpan(list40); - ref QuestStep reference27 = ref span20[0]; + index2 = 2; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref QuestStep reference27 = ref span40[num2]; QuestStep obj23 = new QuestStep(EInteractionType.UseItem, null, null, 128) { ItemId = 30362u @@ -48593,15 +58590,19 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = 140; + Span span41 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span41[index3] = 140; skipStepConditions3.InTerritory = list41; skipConditions3.StepIf = skipStepConditions3; obj23.SkipConditions = skipConditions3; reference27 = obj23; - span20[1] = new QuestStep(EInteractionType.AcceptQuest, 1005021u, new Vector3(-472.49567f, 23.008797f, -355.00116f), 140); + num2++; + span40[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005021u, new Vector3(-472.49567f, 23.008797f, -355.00116f), 140); obj22.Steps = list40; reference26 = obj22; - ref QuestSequence reference28 = ref span19[1]; + num++; + ref QuestSequence reference28 = ref span39[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue @@ -48609,13 +58610,15 @@ public static class AssemblyQuestLoader num2 = 2; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span21 = CollectionsMarshal.AsSpan(list42); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.07425f, 24.884384f, -354.37775f), 146) + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.07425f, 24.884384f, -354.37775f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span21[1] = new QuestStep(EInteractionType.CompleteQuest, 1006220u, new Vector3(185.74805f, 13.721187f, -443.1983f), 146) + index2++; + span42[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006220u, new Vector3(185.74805f, 13.721187f, -443.1983f), 146) { Fly = true }; @@ -48628,21 +58631,26 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; + Span span43 = CollectionsMarshal.AsSpan(list43); + index = 0; + span43[index] = "JerryWester"; questRoot8.Author = list43; - num = 4; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span22 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference29 = ref span22[0]; + index = 4; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + Span span44 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference29 = ref span44[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span45[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -48655,7 +58663,8 @@ public static class AssemblyQuestLoader }; obj25.Steps = list45; reference29 = obj25; - ref QuestSequence reference30 = ref span22[1]; + num++; + ref QuestSequence reference30 = ref span44[num]; QuestSequence obj26 = new QuestSequence { Sequence = 1 @@ -48663,21 +58672,27 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1006219u, new Vector3(193.53015f, 7.8551283f, -25.864075f), 153); + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.Interact, 1006219u, new Vector3(193.53015f, 7.8551283f, -25.864075f), 153); obj26.Steps = list46; reference30 = obj26; - ref QuestSequence reference31 = ref span22[2]; + num++; + ref QuestSequence reference31 = ref span44[num]; QuestSequence obj27 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1000327u, new Vector3(177.66077f, 8.928099f, -43.01526f), 153); + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.Interact, 1000327u, new Vector3(177.66077f, 8.928099f, -43.01526f), 153); obj27.Steps = list47; reference31 = obj27; - ref QuestSequence reference32 = ref span22[3]; + num++; + ref QuestSequence reference32 = ref span44[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -48685,7 +58700,9 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); obj28.Steps = list48; reference32 = obj28; questRoot8.QuestSequence = list44; @@ -48695,26 +58712,32 @@ public static class AssemblyQuestLoader num = 2; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span23 = CollectionsMarshal.AsSpan(list49); - span23[0] = "CryoTechnic"; - span23[1] = "croizat"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "CryoTechnic"; + index++; + span49[index] = "croizat"; questRoot9.Author = list49; - num = 3; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span24 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference33 = ref span24[0]; + index = 3; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference33 = ref span50[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000334u, new Vector3(176.44006f, 8.926453f, -43.01526f), 153); + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000334u, new Vector3(176.44006f, 8.926453f, -43.01526f), 153); obj29.Steps = list51; reference33 = obj29; - ref QuestSequence reference34 = ref span24[1]; + num++; + ref QuestSequence reference34 = ref span50[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 @@ -48722,19 +58745,23 @@ public static class AssemblyQuestLoader num2 = 3; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span25 = CollectionsMarshal.AsSpan(list52); - ref QuestStep reference35 = ref span25[0]; + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + ref QuestStep reference35 = ref span52[index2]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, 2001968u, new Vector3(106.370605f, 13.01593f, -9.99469f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = 79u; + index3 = 1; + List list53 = new List(index3); + CollectionsMarshal.SetCount(list53, index3); + Span span53 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + span53[num3] = 79u; obj31.KillEnemyDataIds = list53; reference35 = obj31; - ref QuestStep reference36 = ref span25[1]; + index2++; + ref QuestStep reference36 = ref span52[index2]; QuestStep obj32 = new QuestStep(EInteractionType.Combat, 2001966u, new Vector3(115.587036f, 6.9733276f, 29.648315f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -48742,31 +58769,39 @@ public static class AssemblyQuestLoader num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = 81u; + Span span54 = CollectionsMarshal.AsSpan(list54); + index3 = 0; + span54[index3] = 81u; obj32.KillEnemyDataIds = list54; reference36 = obj32; - ref QuestStep reference37 = ref span25[2]; + index2++; + ref QuestStep reference37 = ref span52[index2]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, 2001967u, new Vector3(63.1875f, 7.583679f, 21.896606f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = 311u; + index3 = 1; + List list55 = new List(index3); + CollectionsMarshal.SetCount(list55, index3); + Span span55 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span55[num3] = 311u; obj33.KillEnemyDataIds = list55; reference37 = obj33; obj30.Steps = list52; reference34 = obj30; - ref QuestSequence reference38 = ref span24[2]; + num++; + ref QuestSequence reference38 = ref span50[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000334u, new Vector3(176.44006f, 8.926453f, -43.01526f), 153); + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000334u, new Vector3(176.44006f, 8.926453f, -43.01526f), 153); obj34.Steps = list56; reference38 = obj34; questRoot9.QuestSequence = list50; @@ -48776,13 +58811,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "croizat"; + Span span57 = CollectionsMarshal.AsSpan(list57); + index = 0; + span57[index] = "croizat"; questRoot10.Author = list57; - num = 3; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span26 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference39 = ref span26[0]; + index = 3; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + Span span58 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference39 = ref span58[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -48790,21 +58828,27 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000331u, new Vector3(158.49548f, 18.119999f, -49.393555f), 153); + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000331u, new Vector3(158.49548f, 18.119999f, -49.393555f), 153); obj35.Steps = list59; reference39 = obj35; - ref QuestSequence reference40 = ref span26[1]; + num++; + ref QuestSequence reference40 = ref span58[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1006235u, new Vector3(168.47485f, 5.2948f, -18.997498f), 153); + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.Interact, 1006235u, new Vector3(168.47485f, 5.2948f, -18.997498f), 153); obj36.Steps = list60; reference40 = obj36; - ref QuestSequence reference41 = ref span26[2]; + num++; + ref QuestSequence reference41 = ref span58[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -48812,7 +58856,9 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000331u, new Vector3(158.49548f, 18.119999f, -49.393555f), 153); + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000331u, new Vector3(158.49548f, 18.119999f, -49.393555f), 153); obj37.Steps = list61; reference41 = obj37; questRoot10.QuestSequence = list58; @@ -48822,26 +58868,32 @@ public static class AssemblyQuestLoader num = 2; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span27 = CollectionsMarshal.AsSpan(list62); - span27[0] = "CryoTechnic"; - span27[1] = "croizat"; + Span span62 = CollectionsMarshal.AsSpan(list62); + index = 0; + span62[index] = "CryoTechnic"; + index++; + span62[index] = "croizat"; questRoot11.Author = list62; - num = 4; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span28 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference42 = ref span28[0]; + index = 4; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + Span span63 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference42 = ref span63[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006236u, new Vector3(156.78638f, 11.218727f, -74.26575f), 153); + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006236u, new Vector3(156.78638f, 11.218727f, -74.26575f), 153); obj38.Steps = list64; reference42 = obj38; - ref QuestSequence reference43 = ref span28[1]; + num++; + ref QuestSequence reference43 = ref span63[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -48849,21 +58901,27 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1006237u, new Vector3(213.09216f, 29.495605f, -164.5686f), 153); + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.Interact, 1006237u, new Vector3(213.09216f, 29.495605f, -164.5686f), 153); obj39.Steps = list65; reference43 = obj39; - ref QuestSequence reference44 = ref span28[2]; + num++; + ref QuestSequence reference44 = ref span63[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - Span span29 = CollectionsMarshal.AsSpan(list66); - span29[0] = new QuestStep(EInteractionType.Interact, 2002269u, new Vector3(209.30798f, 31.72351f, -165.14844f), 153); - span29[1] = new QuestStep(EInteractionType.Interact, 2001969u, new Vector3(209.12476f, 29.373535f, -151.04907f), 153); - ref QuestStep reference45 = ref span29[2]; + index2 = 6; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.Interact, 2002269u, new Vector3(209.30798f, 31.72351f, -165.14844f), 153); + num2++; + span66[num2] = new QuestStep(EInteractionType.Interact, 2001969u, new Vector3(209.12476f, 29.373535f, -151.04907f), 153); + num2++; + ref QuestStep reference45 = ref span66[num2]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, 2001970u, new Vector3(198.96228f, 31.998047f, -159.59418f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -48871,22 +58929,29 @@ public static class AssemblyQuestLoader num3 = 1; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = 9u; + Span span67 = CollectionsMarshal.AsSpan(list67); + index3 = 0; + span67[index3] = 9u; obj41.KillEnemyDataIds = list67; reference45 = obj41; - span29[3] = new QuestStep(EInteractionType.Interact, 2001971u, new Vector3(199.45056f, 34.531128f, -170.33649f), 153); - ref QuestStep reference46 = ref span29[4]; + num2++; + span66[num2] = new QuestStep(EInteractionType.Interact, 2001971u, new Vector3(199.45056f, 34.531128f, -170.33649f), 153); + num2++; + ref QuestStep reference46 = ref span66[num2]; QuestStep obj42 = new QuestStep(EInteractionType.Combat, 2001972u, new Vector3(209.70471f, 32.669556f, -171.83191f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = 9u; + index3 = 1; + List list68 = new List(index3); + CollectionsMarshal.SetCount(list68, index3); + Span span68 = CollectionsMarshal.AsSpan(list68); + num3 = 0; + span68[num3] = 9u; obj42.KillEnemyDataIds = list68; reference46 = obj42; - ref QuestStep reference47 = ref span29[5]; + num2++; + ref QuestStep reference47 = ref span66[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, 2001973u, new Vector3(218.21924f, 28.94629f, -160.63171f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -48894,12 +58959,15 @@ public static class AssemblyQuestLoader num3 = 1; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = 9u; + Span span69 = CollectionsMarshal.AsSpan(list69); + index3 = 0; + span69[index3] = 9u; obj43.KillEnemyDataIds = list69; reference47 = obj43; obj40.Steps = list66; reference44 = obj40; - ref QuestSequence reference48 = ref span28[3]; + num++; + ref QuestSequence reference48 = ref span63[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -48907,7 +58975,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006237u, new Vector3(213.09216f, 29.495605f, -164.5686f), 153) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006237u, new Vector3(213.09216f, 29.495605f, -164.5686f), 153) { NextQuestId = new QuestId(769) }; @@ -48920,24 +58990,30 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "croizat"; + Span span71 = CollectionsMarshal.AsSpan(list71); + index = 0; + span71[index] = "croizat"; questRoot12.Author = list71; - num = 3; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span30 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference49 = ref span30[0]; + index = 3; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + Span span72 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference49 = ref span72[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006237u, new Vector3(213.09216f, 29.495605f, -164.5686f), 153); + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006237u, new Vector3(213.09216f, 29.495605f, -164.5686f), 153); obj45.Steps = list73; reference49 = obj45; - ref QuestSequence reference50 = ref span30[1]; + num++; + ref QuestSequence reference50 = ref span72[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -48945,21 +59021,26 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.UseItem, 2002278u, new Vector3(42.58789f, 4.196167f, 48.844116f), 153) + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.UseItem, 2002278u, new Vector3(42.58789f, 4.196167f, 48.844116f), 153) { ItemId = 2000857u }; obj46.Steps = list74; reference50 = obj46; - ref QuestSequence reference51 = ref span30[2]; + num++; + ref QuestSequence reference51 = ref span72[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001186u, new Vector3(150.16394f, 8.795548f, -56.321106f), 153); + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001186u, new Vector3(150.16394f, 8.795548f, -56.321106f), 153); obj47.Steps = list75; reference51 = obj47; questRoot12.QuestSequence = list72; @@ -48969,13 +59050,16 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "croizat"; + Span span76 = CollectionsMarshal.AsSpan(list76); + index = 0; + span76[index] = "croizat"; questRoot13.Author = list76; - num = 3; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span31 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference52 = ref span31[0]; + index = 3; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + Span span77 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference52 = ref span77[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -48983,27 +59067,33 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000420u, new Vector3(150.28601f, 11.218727f, -72.58722f), 153); + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000420u, new Vector3(150.28601f, 11.218727f, -72.58722f), 153); obj48.Steps = list78; reference52 = obj48; - ref QuestSequence reference53 = ref span31[1]; + num++; + ref QuestSequence reference53 = ref span77[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list79)[0]; + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + ref QuestStep reference54 = ref span79[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(90.32601f, 14.940415f, -150.38887f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 3; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span32 = CollectionsMarshal.AsSpan(list80); - ref ComplexCombatData reference55 = ref span32[0]; + index3 = 3; + List list80 = new List(index3); + CollectionsMarshal.SetCount(list80, index3); + Span span80 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + ref ComplexCombatData reference55 = ref span80[num3]; ComplexCombatData obj51 = new ComplexCombatData { DataId = 87u, @@ -49012,34 +59102,48 @@ public static class AssemblyQuestLoader int num4 = 6; List list81 = new List(num4); CollectionsMarshal.SetCount(list81, num4); - Span span33 = CollectionsMarshal.AsSpan(list81); - span33[0] = null; - span33[1] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = null; + Span span81 = CollectionsMarshal.AsSpan(list81); + int num5 = 0; + span81[num5] = null; + num5++; + span81[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num5++; + span81[num5] = null; + num5++; + span81[num5] = null; + num5++; + span81[num5] = null; + num5++; + span81[num5] = null; obj51.CompletionQuestVariablesFlags = list81; reference55 = obj51; - ref ComplexCombatData reference56 = ref span32[1]; + num3++; + ref ComplexCombatData reference56 = ref span80[num3]; ComplexCombatData obj52 = new ComplexCombatData { DataId = 86u, MinimumKillCount = 1u }; - num4 = 6; - List list82 = new List(num4); - CollectionsMarshal.SetCount(list82, num4); - Span span34 = CollectionsMarshal.AsSpan(list82); - span34[0] = null; - span34[1] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = null; + num5 = 6; + List list82 = new List(num5); + CollectionsMarshal.SetCount(list82, num5); + Span span82 = CollectionsMarshal.AsSpan(list82); + num4 = 0; + span82[num4] = null; + num4++; + span82[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span82[num4] = null; + num4++; + span82[num4] = null; + num4++; + span82[num4] = null; + num4++; + span82[num4] = null; obj52.CompletionQuestVariablesFlags = list82; reference56 = obj52; - ref ComplexCombatData reference57 = ref span32[2]; + num3++; + ref ComplexCombatData reference57 = ref span80[num3]; ComplexCombatData obj53 = new ComplexCombatData { DataId = 84u, @@ -49048,20 +59152,27 @@ public static class AssemblyQuestLoader num4 = 6; List list83 = new List(num4); CollectionsMarshal.SetCount(list83, num4); - Span span35 = CollectionsMarshal.AsSpan(list83); - span35[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = null; + Span span83 = CollectionsMarshal.AsSpan(list83); + num5 = 0; + span83[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span83[num5] = null; + num5++; + span83[num5] = null; + num5++; + span83[num5] = null; + num5++; + span83[num5] = null; + num5++; + span83[num5] = null; obj53.CompletionQuestVariablesFlags = list83; reference57 = obj53; obj50.ComplexCombatData = list80; reference54 = obj50; obj49.Steps = list79; reference53 = obj49; - ref QuestSequence reference58 = ref span31[2]; + num++; + ref QuestSequence reference58 = ref span77[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -49069,7 +59180,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000420u, new Vector3(150.28601f, 11.218727f, -72.58722f), 153); + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000420u, new Vector3(150.28601f, 11.218727f, -72.58722f), 153); obj54.Steps = list84; reference58 = obj54; questRoot13.QuestSequence = list77; @@ -49079,24 +59192,30 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "croizat"; + Span span85 = CollectionsMarshal.AsSpan(list85); + index = 0; + span85[index] = "croizat"; questRoot14.Author = list85; - num = 3; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span36 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference59 = ref span36[0]; + index = 3; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + Span span86 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference59 = ref span86[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000328u, new Vector3(151.75085f, 11.642578f, -73.258606f), 153); + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000328u, new Vector3(151.75085f, 11.642578f, -73.258606f), 153); obj55.Steps = list87; reference59 = obj55; - ref QuestSequence reference60 = ref span36[1]; + num++; + ref QuestSequence reference60 = ref span86[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -49104,18 +59223,23 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 2001974u, new Vector3(73.258545f, 7.583679f, -109.819214f), 153); + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.Interact, 2001974u, new Vector3(73.258545f, 7.583679f, -109.819214f), 153); obj56.Steps = list88; reference60 = obj56; - ref QuestSequence reference61 = ref span36[2]; + num++; + ref QuestSequence reference61 = ref span86[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000328u, new Vector3(151.75085f, 11.642578f, -73.258606f), 153); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000328u, new Vector3(151.75085f, 11.642578f, -73.258606f), 153); obj57.Steps = list89; reference61 = obj57; questRoot14.QuestSequence = list86; @@ -49125,13 +59249,16 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "croizat"; + Span span90 = CollectionsMarshal.AsSpan(list90); + index = 0; + span90[index] = "croizat"; questRoot15.Author = list90; - num = 2; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span37 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference62 = ref span37[0]; + index = 2; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + Span span91 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference62 = ref span91[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 @@ -49139,18 +59266,23 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153); + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153); obj58.Steps = list92; reference62 = obj58; - ref QuestSequence reference63 = ref span37[1]; + num++; + ref QuestSequence reference63 = ref span91[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000340u, new Vector3(277.51575f, 11.186312f, -255.60394f), 153) + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000340u, new Vector3(277.51575f, 11.186312f, -255.60394f), 153) { NextQuestId = new QuestId(773) }; @@ -49163,13 +59295,16 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "croizat"; + Span span94 = CollectionsMarshal.AsSpan(list94); + index = 0; + span94[index] = "croizat"; questRoot16.Author = list94; - num = 5; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span38 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference64 = ref span38[0]; + index = 5; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + Span span95 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference64 = ref span95[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -49177,24 +59312,31 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000340u, new Vector3(277.51575f, 11.186312f, -255.60394f), 153); + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000340u, new Vector3(277.51575f, 11.186312f, -255.60394f), 153); obj60.Steps = list96; reference64 = obj60; - ref QuestSequence reference65 = ref span38[1]; + num++; + ref QuestSequence reference65 = ref span95[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - Span span39 = CollectionsMarshal.AsSpan(list97); - span39[0] = new QuestStep(EInteractionType.Interact, 2002282u, new Vector3(270.28296f, 12.130859f, -258.44214f), 153); - span39[1] = new QuestStep(EInteractionType.Interact, 2002281u, new Vector3(261.15808f, 11.24585f, -252.49103f), 153); - span39[2] = new QuestStep(EInteractionType.Interact, 2001975u, new Vector3(248.76782f, 11.459534f, -233.23413f), 153); + index2 = 3; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span97[num2] = new QuestStep(EInteractionType.Interact, 2002282u, new Vector3(270.28296f, 12.130859f, -258.44214f), 153); + num2++; + span97[num2] = new QuestStep(EInteractionType.Interact, 2002281u, new Vector3(261.15808f, 11.24585f, -252.49103f), 153); + num2++; + span97[num2] = new QuestStep(EInteractionType.Interact, 2001975u, new Vector3(248.76782f, 11.459534f, -233.23413f), 153); obj61.Steps = list97; reference65 = obj61; - ref QuestSequence reference66 = ref span38[2]; + num++; + ref QuestSequence reference66 = ref span95[num]; QuestSequence obj62 = new QuestSequence { Sequence = 2 @@ -49202,21 +59344,27 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 2001976u, new Vector3(299.8855f, 14.175598f, -249.3172f), 153); + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span98[index2] = new QuestStep(EInteractionType.Interact, 2001976u, new Vector3(299.8855f, 14.175598f, -249.3172f), 153); obj62.Steps = list98; reference66 = obj62; - ref QuestSequence reference67 = ref span38[3]; + num++; + ref QuestSequence reference67 = ref span95[num]; QuestSequence obj63 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1000341u, new Vector3(300.09912f, 11.935754f, -247.02838f), 153); + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.Interact, 1000341u, new Vector3(300.09912f, 11.935754f, -247.02838f), 153); obj63.Steps = list99; reference67 = obj63; - ref QuestSequence reference68 = ref span38[4]; + num++; + ref QuestSequence reference68 = ref span95[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -49224,7 +59372,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153); + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153); obj64.Steps = list100; reference68 = obj64; questRoot16.QuestSequence = list95; @@ -49234,21 +59384,26 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "JerryWester"; + Span span101 = CollectionsMarshal.AsSpan(list101); + index = 0; + span101[index] = "JerryWester"; questRoot17.Author = list101; - num = 5; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span40 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference69 = ref span40[0]; + index = 5; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + Span span102 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference69 = ref span102[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span103[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -49261,7 +59416,8 @@ public static class AssemblyQuestLoader }; obj65.Steps = list103; reference69 = obj65; - ref QuestSequence reference70 = ref span40[1]; + num++; + ref QuestSequence reference70 = ref span102[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 @@ -49269,7 +59425,9 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list104)[0]; + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + ref QuestStep reference71 = ref span104[index2]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, null, new Vector3(262.89966f, 11.363011f, -143.02156f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -49277,40 +59435,52 @@ public static class AssemblyQuestLoader num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - ref ComplexCombatData reference72 = ref CollectionsMarshal.AsSpan(list105)[0]; + Span span105 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + ref ComplexCombatData reference72 = ref span105[index3]; ComplexCombatData obj68 = new ComplexCombatData { DataId = 4u, MinimumKillCount = 4u }; - num4 = 6; - List list106 = new List(num4); - CollectionsMarshal.SetCount(list106, num4); - Span span41 = CollectionsMarshal.AsSpan(list106); - span41[0] = null; - span41[1] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = null; + num5 = 6; + List list106 = new List(num5); + CollectionsMarshal.SetCount(list106, num5); + Span span106 = CollectionsMarshal.AsSpan(list106); + num4 = 0; + span106[num4] = null; + num4++; + span106[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4++; + span106[num4] = null; + num4++; + span106[num4] = null; + num4++; + span106[num4] = null; + num4++; + span106[num4] = null; obj68.CompletionQuestVariablesFlags = list106; reference72 = obj68; obj67.ComplexCombatData = list105; reference71 = obj67; obj66.Steps = list104; reference70 = obj66; - ref QuestSequence reference73 = ref span40[2]; + num++; + ref QuestSequence reference73 = ref span102[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.Interact, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); obj69.Steps = list107; reference73 = obj69; - ref QuestSequence reference74 = ref span40[3]; + num++; + ref QuestSequence reference74 = ref span102[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 @@ -49318,18 +59488,23 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj70.Steps = list108; reference74 = obj70; - ref QuestSequence reference75 = ref span40[4]; + num++; + ref QuestSequence reference75 = ref span102[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006680u, new Vector3(209.30798f, 6.1041656f, -39.932922f), 153) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006680u, new Vector3(209.30798f, 6.1041656f, -39.932922f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; @@ -49342,13 +59517,16 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "JerryWester"; + Span span110 = CollectionsMarshal.AsSpan(list110); + index = 0; + span110[index] = "JerryWester"; questRoot18.Author = list110; - num = 6; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span42 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference76 = ref span42[0]; + index = 6; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + Span span111 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference76 = ref span111[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -49356,7 +59534,9 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -49369,18 +59549,22 @@ public static class AssemblyQuestLoader }; obj72.Steps = list112; reference76 = obj72; - ref QuestSequence reference77 = ref span42[1]; + num++; + ref QuestSequence reference77 = ref span111[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1006219u, new Vector3(193.53015f, 7.8551283f, -25.864075f), 153); + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.Interact, 1006219u, new Vector3(193.53015f, 7.8551283f, -25.864075f), 153); obj73.Steps = list113; reference77 = obj73; - ref QuestSequence reference78 = ref span42[2]; + num++; + ref QuestSequence reference78 = ref span111[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -49388,31 +59572,39 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = new QuestStep(EInteractionType.Interact, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); obj74.Steps = list114; reference78 = obj74; - ref QuestSequence reference79 = ref span42[3]; + num++; + ref QuestSequence reference79 = ref span111[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - ref QuestStep reference80 = ref CollectionsMarshal.AsSpan(list115)[0]; + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + ref QuestStep reference80 = ref span115[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, 1006679u, new Vector3(352.49854f, -2.3331592f, 51.56018f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = 1909u; + index3 = 1; + List list116 = new List(index3); + CollectionsMarshal.SetCount(list116, index3); + Span span116 = CollectionsMarshal.AsSpan(list116); + num3 = 0; + span116[num3] = 1909u; obj76.KillEnemyDataIds = list116; reference80 = obj76; obj75.Steps = list115; reference79 = obj75; - ref QuestSequence reference81 = ref span42[4]; + num++; + ref QuestSequence reference81 = ref span111[num]; QuestSequence obj77 = new QuestSequence { Sequence = 4 @@ -49420,18 +59612,23 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1006679u, new Vector3(352.49854f, -2.3331592f, 51.56018f), 153); + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.Interact, 1006679u, new Vector3(352.49854f, -2.3331592f, 51.56018f), 153); obj77.Steps = list117; reference81 = obj77; - ref QuestSequence reference82 = ref span42[5]; + num++; + ref QuestSequence reference82 = ref span111[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); obj78.Steps = list118; reference82 = obj78; questRoot18.QuestSequence = list111; @@ -49441,13 +59638,16 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "JerryWester"; + Span span119 = CollectionsMarshal.AsSpan(list119); + index = 0; + span119[index] = "JerryWester"; questRoot19.Author = list119; - num = 2; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span43 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference83 = ref span43[0]; + index = 2; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + Span span120 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference83 = ref span120[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -49455,7 +59655,9 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -49468,15 +59670,18 @@ public static class AssemblyQuestLoader }; obj79.Steps = list121; reference83 = obj79; - ref QuestSequence reference84 = ref span43[1]; + num++; + ref QuestSequence reference84 = ref span120[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; @@ -49489,13 +59694,16 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "JerryWester"; + Span span123 = CollectionsMarshal.AsSpan(list123); + index = 0; + span123[index] = "JerryWester"; questRoot20.Author = list123; - num = 3; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span44 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference85 = ref span44[0]; + index = 3; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + Span span124 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference85 = ref span124[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -49503,7 +59711,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -49516,77 +59726,107 @@ public static class AssemblyQuestLoader }; obj81.Steps = list125; reference85 = obj81; - ref QuestSequence reference86 = ref span44[1]; + num++; + ref QuestSequence reference86 = ref span124[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - Span span45 = CollectionsMarshal.AsSpan(list126); - ref QuestStep reference87 = ref span45[0]; + index2 = 4; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + ref QuestStep reference87 = ref span126[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1006221u, new Vector3(-219.65369f, 26.204851f, -337.789f), 146); num3 = 6; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - Span span46 = CollectionsMarshal.AsSpan(list127); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span127 = CollectionsMarshal.AsSpan(list127); + index3 = 0; + span127[index3] = null; + index3++; + span127[index3] = null; + index3++; + span127[index3] = null; + index3++; + span127[index3] = null; + index3++; + span127[index3] = null; + index3++; + span127[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list127; reference87 = questStep5; - ref QuestStep reference88 = ref span45[1]; + num2++; + ref QuestStep reference88 = ref span126[num2]; QuestStep obj83 = new QuestStep(EInteractionType.Interact, 1006222u, new Vector3(-207.17181f, 27.31405f, -331.34973f), 146) { DisableNavmesh = true }; - num3 = 6; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - Span span47 = CollectionsMarshal.AsSpan(list128); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list128 = new List(index3); + CollectionsMarshal.SetCount(list128, index3); + Span span128 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj83.CompletionQuestVariablesFlags = list128; reference88 = obj83; - ref QuestStep reference89 = ref span45[2]; + num2++; + ref QuestStep reference89 = ref span126[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1006223u, new Vector3(-85.06909f, 26.222988f, -348.50085f), 146); num3 = 6; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span48 = CollectionsMarshal.AsSpan(list129); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span129 = CollectionsMarshal.AsSpan(list129); + index3 = 0; + span129[index3] = null; + index3++; + span129[index3] = null; + index3++; + span129[index3] = null; + index3++; + span129[index3] = null; + index3++; + span129[index3] = null; + index3++; + span129[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list129; reference89 = questStep6; - ref QuestStep reference90 = ref span45[3]; + num2++; + ref QuestStep reference90 = ref span126[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1006224u, new Vector3(-77.74481f, 27.626602f, -325.42914f), 146); - num3 = 6; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - Span span49 = CollectionsMarshal.AsSpan(list130); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list130 = new List(index3); + CollectionsMarshal.SetCount(list130, index3); + Span span130 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + span130[num3] = null; + num3++; + span130[num3] = null; + num3++; + span130[num3] = null; + num3++; + span130[num3] = null; + num3++; + span130[num3] = null; + num3++; + span130[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list130; reference90 = questStep7; obj82.Steps = list126; reference86 = obj82; - ref QuestSequence reference91 = ref span44[2]; + num++; + ref QuestSequence reference91 = ref span124[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue @@ -49594,7 +59834,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); obj84.Steps = list131; reference91 = obj84; questRoot20.QuestSequence = list124; @@ -49604,21 +59846,26 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "JerryWester"; + Span span132 = CollectionsMarshal.AsSpan(list132); + index = 0; + span132[index] = "JerryWester"; questRoot21.Author = list132; - num = 4; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span50 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference92 = ref span50[0]; + index = 4; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + Span span133 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference92 = ref span133[num]; QuestSequence obj85 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006226u, new Vector3(-225.97089f, 26.138475f, -355.0622f), 146) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006226u, new Vector3(-225.97089f, 26.138475f, -355.0622f), 146) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, @@ -49632,7 +59879,8 @@ public static class AssemblyQuestLoader }; obj85.Steps = list134; reference92 = obj85; - ref QuestSequence reference93 = ref span50[1]; + num++; + ref QuestSequence reference93 = ref span133[num]; QuestSequence obj86 = new QuestSequence { Sequence = 1 @@ -49640,7 +59888,9 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list135)[0]; + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + ref QuestStep reference94 = ref span135[index2]; QuestStep obj87 = new QuestStep(EInteractionType.Combat, 1006228u, new Vector3(-194.75098f, 19.02249f, -557.8546f), 146) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -49648,28 +59898,34 @@ public static class AssemblyQuestLoader num3 = 2; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - Span span51 = CollectionsMarshal.AsSpan(list136); - span51[0] = 2257u; - span51[1] = 2258u; + Span span136 = CollectionsMarshal.AsSpan(list136); + index3 = 0; + span136[index3] = 2257u; + index3++; + span136[index3] = 2258u; obj87.KillEnemyDataIds = list136; reference94 = obj87; obj86.Steps = list135; reference93 = obj86; - ref QuestSequence reference95 = ref span50[2]; + num++; + ref QuestSequence reference95 = ref span133[num]; QuestSequence obj88 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1006228u, new Vector3(-194.75098f, 19.02249f, -557.8546f), 146) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span137[num2] = new QuestStep(EInteractionType.Interact, 1006228u, new Vector3(-194.75098f, 19.02249f, -557.8546f), 146) { StopDistance = 7f }; obj88.Steps = list137; reference95 = obj88; - ref QuestSequence reference96 = ref span50[3]; + num++; + ref QuestSequence reference96 = ref span133[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue @@ -49677,7 +59933,9 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) + Span span138 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span138[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; @@ -49690,21 +59948,26 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "JerryWester"; + Span span139 = CollectionsMarshal.AsSpan(list139); + index = 0; + span139[index] = "JerryWester"; questRoot22.Author = list139; - num = 5; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span52 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference97 = ref span52[0]; + index = 5; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + Span span140 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference97 = ref span140[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span141[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -49717,7 +59980,8 @@ public static class AssemblyQuestLoader }; obj90.Steps = list141; reference97 = obj90; - ref QuestSequence reference98 = ref span52[1]; + num++; + ref QuestSequence reference98 = ref span140[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 @@ -49725,112 +59989,158 @@ public static class AssemblyQuestLoader num2 = 6; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span53 = CollectionsMarshal.AsSpan(list142); - ref QuestStep reference99 = ref span53[0]; + Span span142 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + ref QuestStep reference99 = ref span142[index2]; QuestStep obj92 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-225.94685f, 26.139933f, -340.8984f), 146) { Mount = true }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - Span span54 = CollectionsMarshal.AsSpan(list143); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list143 = new List(index3); + CollectionsMarshal.SetCount(list143, index3); + Span span143 = CollectionsMarshal.AsSpan(list143); + num3 = 0; + span143[num3] = null; + num3++; + span143[num3] = null; + num3++; + span143[num3] = null; + num3++; + span143[num3] = null; + num3++; + span143[num3] = null; + num3++; + span143[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list143; skipConditions4.StepIf = skipStepConditions4; obj92.SkipConditions = skipConditions4; reference99 = obj92; - ref QuestStep reference100 = ref span53[1]; + index2++; + ref QuestStep reference100 = ref span142[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2001980u, new Vector3(-202.22784f, 28.122314f, -318.5016f), 146); num3 = 6; List list144 = new List(num3); CollectionsMarshal.SetCount(list144, num3); - Span span55 = CollectionsMarshal.AsSpan(list144); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span144 = CollectionsMarshal.AsSpan(list144); + index3 = 0; + span144[index3] = null; + index3++; + span144[index3] = null; + index3++; + span144[index3] = null; + index3++; + span144[index3] = null; + index3++; + span144[index3] = null; + index3++; + span144[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list144; reference100 = questStep8; - ref QuestStep reference101 = ref span53[2]; + index2++; + ref QuestStep reference101 = ref span142[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1006225u, new Vector3(-83.84839f, 39.399178f, -333.69952f), 146); - num3 = 6; - List list145 = new List(num3); - CollectionsMarshal.SetCount(list145, num3); - Span span56 = CollectionsMarshal.AsSpan(list145); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list145 = new List(index3); + CollectionsMarshal.SetCount(list145, index3); + Span span145 = CollectionsMarshal.AsSpan(list145); + num3 = 0; + span145[num3] = null; + num3++; + span145[num3] = null; + num3++; + span145[num3] = null; + num3++; + span145[num3] = null; + num3++; + span145[num3] = null; + num3++; + span145[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list145; reference101 = questStep9; - ref QuestStep reference102 = ref span53[3]; + index2++; + ref QuestStep reference102 = ref span142[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1007617u, new Vector3(-114.7937f, 39.483143f, -339.71167f), 146); num3 = 6; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - Span span57 = CollectionsMarshal.AsSpan(list146); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span146 = CollectionsMarshal.AsSpan(list146); + index3 = 0; + span146[index3] = null; + index3++; + span146[index3] = null; + index3++; + span146[index3] = null; + index3++; + span146[index3] = null; + index3++; + span146[index3] = null; + index3++; + span146[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list146; reference102 = questStep10; - ref QuestStep reference103 = ref span53[4]; + index2++; + ref QuestStep reference103 = ref span142[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2001981u, new Vector3(-78.93494f, 26.474365f, -350.08777f), 146); - num3 = 6; - List list147 = new List(num3); - CollectionsMarshal.SetCount(list147, num3); - Span span58 = CollectionsMarshal.AsSpan(list147); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list147 = new List(index3); + CollectionsMarshal.SetCount(list147, index3); + Span span147 = CollectionsMarshal.AsSpan(list147); + num3 = 0; + span147[num3] = null; + num3++; + span147[num3] = null; + num3++; + span147[num3] = null; + num3++; + span147[num3] = null; + num3++; + span147[num3] = null; + num3++; + span147[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list147; reference103 = questStep11; - ref QuestStep reference104 = ref span53[5]; + index2++; + ref QuestStep reference104 = ref span142[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1007616u, new Vector3(-98.77167f, 26.161106f, -341.3291f), 146); num3 = 6; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - Span span59 = CollectionsMarshal.AsSpan(list148); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span148 = CollectionsMarshal.AsSpan(list148); + index3 = 0; + span148[index3] = null; + index3++; + span148[index3] = null; + index3++; + span148[index3] = null; + index3++; + span148[index3] = null; + index3++; + span148[index3] = null; + index3++; + span148[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list148; reference104 = questStep12; obj91.Steps = list142; reference98 = obj91; - ref QuestSequence reference105 = ref span52[2]; + num++; + ref QuestSequence reference105 = ref span140[num]; QuestSequence obj93 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); obj93.Steps = list149; reference105 = obj93; - ref QuestSequence reference106 = ref span52[3]; + num++; + ref QuestSequence reference106 = ref span140[num]; QuestSequence obj94 = new QuestSequence { Sequence = 3 @@ -49838,7 +60148,9 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006230u, new Vector3(34.89734f, 3.3969688f, -343.70947f), 146) + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006230u, new Vector3(34.89734f, 3.3969688f, -343.70947f), 146) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -49847,15 +60159,18 @@ public static class AssemblyQuestLoader }; obj94.Steps = list150; reference106 = obj94; - ref QuestSequence reference107 = ref span52[4]; + num++; + ref QuestSequence reference107 = ref span140[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span151[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); obj95.Steps = list151; reference107 = obj95; questRoot22.QuestSequence = list140; @@ -49865,13 +60180,16 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = "JerryWester"; + Span span152 = CollectionsMarshal.AsSpan(list152); + index = 0; + span152[index] = "JerryWester"; questRoot23.Author = list152; - num = 2; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span60 = CollectionsMarshal.AsSpan(list153); - ref QuestSequence reference108 = ref span60[0]; + index = 2; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + Span span153 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref QuestSequence reference108 = ref span153[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -49879,7 +60197,9 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -49892,29 +60212,35 @@ public static class AssemblyQuestLoader }; obj96.Steps = list154; reference108 = obj96; - ref QuestSequence reference109 = ref span60[1]; + num++; + ref QuestSequence reference109 = ref span153[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - Span span61 = CollectionsMarshal.AsSpan(list155); - span61[0] = new QuestStep(EInteractionType.UseItem, null, null, 128) + index2 = 5; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span155[num2] = new QuestStep(EInteractionType.UseItem, null, null, 128) { ItemId = 30362u }; - span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span61[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) + num2++; + span155[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span155[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span61[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num2++; + span155[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span61[4] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + num2++; + span155[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj97.Steps = list155; reference109 = obj97; questRoot23.QuestSequence = list153; @@ -49924,13 +60250,16 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - CollectionsMarshal.AsSpan(list156)[0] = "JerryWester"; + Span span156 = CollectionsMarshal.AsSpan(list156); + index = 0; + span156[index] = "JerryWester"; questRoot24.Author = list156; - num = 3; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - Span span62 = CollectionsMarshal.AsSpan(list157); - ref QuestSequence reference110 = ref span62[0]; + index = 3; + List list157 = new List(index); + CollectionsMarshal.SetCount(list157, index); + Span span157 = CollectionsMarshal.AsSpan(list157); + num = 0; + ref QuestSequence reference110 = ref span157[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 @@ -49938,7 +60267,9 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006242u, new Vector3(16.403442f, -44.865616f, 264.54565f), 154) + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006242u, new Vector3(16.403442f, -44.865616f, 264.54565f), 154) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -49952,28 +60283,34 @@ public static class AssemblyQuestLoader }; obj98.Steps = list158; reference110 = obj98; - ref QuestSequence reference111 = ref span62[1]; + num++; + ref QuestSequence reference111 = ref span157[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list159)[0]; + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + ref QuestStep reference112 = ref span159[num2]; QuestStep obj100 = new QuestStep(EInteractionType.Combat, 2001982u, new Vector3(-260.0901f, -56.38214f, 307.60657f), 154) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - CollectionsMarshal.AsSpan(list160)[0] = 1899u; + index3 = 1; + List list160 = new List(index3); + CollectionsMarshal.SetCount(list160, index3); + Span span160 = CollectionsMarshal.AsSpan(list160); + num3 = 0; + span160[num3] = 1899u; obj100.KillEnemyDataIds = list160; reference112 = obj100; obj99.Steps = list159; reference111 = obj99; - ref QuestSequence reference113 = ref span62[2]; + num++; + ref QuestSequence reference113 = ref span157[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -49981,7 +60318,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006242u, new Vector3(16.403442f, -44.865616f, 264.54565f), 154) + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006242u, new Vector3(16.403442f, -44.865616f, 264.54565f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; @@ -49994,21 +60333,26 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "JerryWester"; + Span span162 = CollectionsMarshal.AsSpan(list162); + index = 0; + span162[index] = "JerryWester"; questRoot25.Author = list162; - num = 4; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span63 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference114 = ref span63[0]; + index = 4; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + Span span163 = CollectionsMarshal.AsSpan(list163); + num = 0; + ref QuestSequence reference114 = ref span163[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -50021,7 +60365,8 @@ public static class AssemblyQuestLoader }; obj102.Steps = list164; reference114 = obj102; - ref QuestSequence reference115 = ref span63[1]; + num++; + ref QuestSequence reference115 = ref span163[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -50029,98 +60374,138 @@ public static class AssemblyQuestLoader num2 = 3; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span64 = CollectionsMarshal.AsSpan(list165); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.058176f, -40.87435f, 233.34166f), 154); - span64[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-195.16211f, -63.65229f, 370.28903f), 154); - span64[2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-222.67735f, -66.345436f, 396.86935f), 154) + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.058176f, -40.87435f, 233.34166f), 154); + index2++; + span165[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-195.16211f, -63.65229f, 370.28903f), 154); + index2++; + span165[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-222.67735f, -66.345436f, 396.86935f), 154) { ItemId = 2000616u, GroundTarget = true }; obj103.Steps = list165; reference115 = obj103; - ref QuestSequence reference116 = ref span63[2]; + num++; + ref QuestSequence reference116 = ref span163[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span65 = CollectionsMarshal.AsSpan(list166); - ref QuestStep reference117 = ref span65[0]; + index2 = 5; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + ref QuestStep reference117 = ref span166[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2001988u, new Vector3(-217.97516f, -66.086914f, 389.9137f), 154); num3 = 6; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - Span span66 = CollectionsMarshal.AsSpan(list167); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span167 = CollectionsMarshal.AsSpan(list167); + index3 = 0; + span167[index3] = null; + index3++; + span167[index3] = null; + index3++; + span167[index3] = null; + index3++; + span167[index3] = null; + index3++; + span167[index3] = null; + index3++; + span167[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list167; reference117 = questStep13; - ref QuestStep reference118 = ref span65[1]; + num2++; + ref QuestStep reference118 = ref span166[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2001986u, new Vector3(-219.71472f, -65.90375f, 383.3523f), 154); - num3 = 6; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - Span span67 = CollectionsMarshal.AsSpan(list168); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list168 = new List(index3); + CollectionsMarshal.SetCount(list168, index3); + Span span168 = CollectionsMarshal.AsSpan(list168); + num3 = 0; + span168[num3] = null; + num3++; + span168[num3] = null; + num3++; + span168[num3] = null; + num3++; + span168[num3] = null; + num3++; + span168[num3] = null; + num3++; + span168[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list168; reference118 = questStep14; - ref QuestStep reference119 = ref span65[2]; + num2++; + ref QuestStep reference119 = ref span166[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2001987u, new Vector3(-217.97516f, -65.20184f, 376.3026f), 154); num3 = 6; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - Span span68 = CollectionsMarshal.AsSpan(list169); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span169 = CollectionsMarshal.AsSpan(list169); + index3 = 0; + span169[index3] = null; + index3++; + span169[index3] = null; + index3++; + span169[index3] = null; + index3++; + span169[index3] = null; + index3++; + span169[index3] = null; + index3++; + span169[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list169; reference119 = questStep15; - ref QuestStep reference120 = ref span65[3]; + num2++; + ref QuestStep reference120 = ref span166[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2001985u, new Vector3(-233.02057f, -66.453064f, 378.95776f), 154); - num3 = 6; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - Span span69 = CollectionsMarshal.AsSpan(list170); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list170 = new List(index3); + CollectionsMarshal.SetCount(list170, index3); + Span span170 = CollectionsMarshal.AsSpan(list170); + num3 = 0; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list170; reference120 = questStep16; - ref QuestStep reference121 = ref span65[4]; + num2++; + ref QuestStep reference121 = ref span166[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2001984u, new Vector3(-230.33496f, -66.819336f, 388.93713f), 154); num3 = 6; List list171 = new List(num3); CollectionsMarshal.SetCount(list171, num3); - Span span70 = CollectionsMarshal.AsSpan(list171); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span171 = CollectionsMarshal.AsSpan(list171); + index3 = 0; + span171[index3] = null; + index3++; + span171[index3] = null; + index3++; + span171[index3] = null; + index3++; + span171[index3] = null; + index3++; + span171[index3] = null; + index3++; + span171[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list171; reference121 = questStep17; obj104.Steps = list166; reference116 = obj104; - ref QuestSequence reference122 = ref span63[3]; + num++; + ref QuestSequence reference122 = ref span163[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -50128,7 +60513,9 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; @@ -50141,24 +60528,30 @@ public static class AssemblyQuestLoader num = 1; List list173 = new List(num); CollectionsMarshal.SetCount(list173, num); - CollectionsMarshal.AsSpan(list173)[0] = "croizat"; + Span span173 = CollectionsMarshal.AsSpan(list173); + index = 0; + span173[index] = "croizat"; questRoot26.Author = list173; - num = 3; - List list174 = new List(num); - CollectionsMarshal.SetCount(list174, num); - Span span71 = CollectionsMarshal.AsSpan(list174); - ref QuestSequence reference123 = ref span71[0]; + index = 3; + List list174 = new List(index); + CollectionsMarshal.SetCount(list174, index); + Span span174 = CollectionsMarshal.AsSpan(list174); + num = 0; + ref QuestSequence reference123 = ref span174[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006245u, new Vector3(4.9591064f, -46.518017f, 248.49304f), 154); + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006245u, new Vector3(4.9591064f, -46.518017f, 248.49304f), 154); obj106.Steps = list175; reference123 = obj106; - ref QuestSequence reference124 = ref span71[1]; + num++; + ref QuestSequence reference124 = ref span174[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -50166,23 +60559,28 @@ public static class AssemblyQuestLoader num2 = 2; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span72 = CollectionsMarshal.AsSpan(list176); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-223.82947f, -28.139849f, 261.55243f), 154); - span72[1] = new QuestStep(EInteractionType.Interact, 2001989u, new Vector3(-211.841f, -27.878296f, 261.8601f), 154) + Span span176 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span176[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-223.82947f, -28.139849f, 261.55243f), 154); + index2++; + span176[index2] = new QuestStep(EInteractionType.Interact, 2001989u, new Vector3(-211.841f, -27.878296f, 261.8601f), 154) { DisableNavmesh = true }; obj107.Steps = list176; reference124 = obj107; - ref QuestSequence reference125 = ref span71[2]; + num++; + ref QuestSequence reference125 = ref span174[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) { NextQuestId = new QuestId(792) }; @@ -50195,13 +60593,16 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "croizat"; + Span span178 = CollectionsMarshal.AsSpan(list178); + index = 0; + span178[index] = "croizat"; questRoot27.Author = list178; - num = 2; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span73 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference126 = ref span73[0]; + index = 2; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + Span span179 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference126 = ref span179[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -50209,18 +60610,23 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002779u, new Vector3(-34.470154f, -40.466434f, 221.02686f), 154); + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span180[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002779u, new Vector3(-34.470154f, -40.466434f, 221.02686f), 154); obj109.Steps = list180; reference126 = obj109; - ref QuestSequence reference127 = ref span73[1]; + num++; + ref QuestSequence reference127 = ref span179[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006371u, new Vector3(-301.04523f, -13.60442f, 198.44348f), 154); + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span181[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006371u, new Vector3(-301.04523f, -13.60442f, 198.44348f), 154); obj110.Steps = list181; reference127 = obj110; questRoot27.QuestSequence = list179; @@ -50230,13 +60636,16 @@ public static class AssemblyQuestLoader num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - CollectionsMarshal.AsSpan(list182)[0] = "croizat"; + Span span182 = CollectionsMarshal.AsSpan(list182); + index = 0; + span182[index] = "croizat"; questRoot28.Author = list182; - num = 3; - List list183 = new List(num); - CollectionsMarshal.SetCount(list183, num); - Span span74 = CollectionsMarshal.AsSpan(list183); - ref QuestSequence reference128 = ref span74[0]; + index = 3; + List list183 = new List(index); + CollectionsMarshal.SetCount(list183, index); + Span span183 = CollectionsMarshal.AsSpan(list183); + num = 0; + ref QuestSequence reference128 = ref span183[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -50244,29 +60653,35 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); + Span span184 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span184[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); obj111.Steps = list184; reference128 = obj111; - ref QuestSequence reference129 = ref span74[1]; + num++; + ref QuestSequence reference129 = ref span183[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - Span span75 = CollectionsMarshal.AsSpan(list185); - span75[0] = new QuestStep(EInteractionType.UseItem, 2001993u, new Vector3(-37.644104f, -39.749817f, 175.03625f), 154) + index2 = 2; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span185[num2] = new QuestStep(EInteractionType.UseItem, 2001993u, new Vector3(-37.644104f, -39.749817f, 175.03625f), 154) { ItemId = 2000623u }; - span75[1] = new QuestStep(EInteractionType.UseItem, 2001994u, new Vector3(-35.690857f, -33.676758f, 167.80347f), 154) + num2++; + span185[num2] = new QuestStep(EInteractionType.UseItem, 2001994u, new Vector3(-35.690857f, -33.676758f, 167.80347f), 154) { ItemId = 2000623u }; obj112.Steps = list185; reference129 = obj112; - ref QuestSequence reference130 = ref span74[2]; + num++; + ref QuestSequence reference130 = ref span183[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -50274,7 +60689,9 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) { NextQuestId = new QuestId(793) }; @@ -50287,24 +60704,30 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - CollectionsMarshal.AsSpan(list187)[0] = "croizat"; + Span span187 = CollectionsMarshal.AsSpan(list187); + index = 0; + span187[index] = "croizat"; questRoot29.Author = list187; - num = 4; - List list188 = new List(num); - CollectionsMarshal.SetCount(list188, num); - Span span76 = CollectionsMarshal.AsSpan(list188); - ref QuestSequence reference131 = ref span76[0]; + index = 4; + List list188 = new List(index); + CollectionsMarshal.SetCount(list188, index); + Span span188 = CollectionsMarshal.AsSpan(list188); + num = 0; + ref QuestSequence reference131 = ref span188[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); obj114.Steps = list189; reference131 = obj114; - ref QuestSequence reference132 = ref span76[1]; + num++; + ref QuestSequence reference132 = ref span188[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 @@ -50312,15 +60735,19 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list190)[0]; + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + ref QuestStep reference133 = ref span190[index2]; QuestStep obj116 = new QuestStep(EInteractionType.Combat, null, new Vector3(-106.12237f, -51.697598f, 386.2573f), 154) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = new ComplexCombatData + index3 = 1; + List list191 = new List(index3); + CollectionsMarshal.SetCount(list191, index3); + Span span191 = CollectionsMarshal.AsSpan(list191); + num3 = 0; + span191[num3] = new ComplexCombatData { DataId = 17u, MinimumKillCount = 1u @@ -50329,18 +60756,22 @@ public static class AssemblyQuestLoader reference133 = obj116; obj115.Steps = list190; reference132 = obj115; - ref QuestSequence reference134 = ref span76[2]; + num++; + ref QuestSequence reference134 = ref span188[num]; QuestSequence obj117 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1006249u, new Vector3(-107.31671f, -52.25655f, 390.49353f), 154); + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span192[num2] = new QuestStep(EInteractionType.Interact, 1006249u, new Vector3(-107.31671f, -52.25655f, 390.49353f), 154); obj117.Steps = list192; reference134 = obj117; - ref QuestSequence reference135 = ref span76[3]; + num++; + ref QuestSequence reference135 = ref span188[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -50348,7 +60779,9 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) + Span span193 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span193[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) { NextQuestId = new QuestId(796) }; @@ -50361,24 +60794,30 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "croizat"; + Span span194 = CollectionsMarshal.AsSpan(list194); + index = 0; + span194[index] = "croizat"; questRoot30.Author = list194; - num = 3; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span77 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference136 = ref span77[0]; + index = 3; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + Span span195 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference136 = ref span195[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154); + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154); obj119.Steps = list196; reference136 = obj119; - ref QuestSequence reference137 = ref span77[1]; + num++; + ref QuestSequence reference137 = ref span195[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -50386,18 +60825,23 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1006251u, new Vector3(-56.839844f, -43.544834f, 353.5973f), 154); + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.Interact, 1006251u, new Vector3(-56.839844f, -43.544834f, 353.5973f), 154); obj120.Steps = list197; reference137 = obj120; - ref QuestSequence reference138 = ref span77[2]; + num++; + ref QuestSequence reference138 = ref span195[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154) + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span198 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span198[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154) { NextQuestId = new QuestId(795) }; @@ -50410,13 +60854,16 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "croizat"; + Span span199 = CollectionsMarshal.AsSpan(list199); + index = 0; + span199[index] = "croizat"; questRoot31.Author = list199; - num = 3; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span78 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference139 = ref span78[0]; + index = 3; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + Span span200 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference139 = ref span200[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -50424,21 +60871,27 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154); + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154); obj122.Steps = list201; reference139 = obj122; - ref QuestSequence reference140 = ref span78[1]; + num++; + ref QuestSequence reference140 = ref span200[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 2001995u, new Vector3(23.483582f, -45.609253f, 445.45654f), 154); + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.Interact, 2001995u, new Vector3(23.483582f, -45.609253f, 445.45654f), 154); obj123.Steps = list202; reference140 = obj123; - ref QuestSequence reference141 = ref span78[2]; + num++; + ref QuestSequence reference141 = ref span200[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -50446,7 +60899,9 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154); + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span203[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154); obj124.Steps = list203; reference141 = obj124; questRoot31.QuestSequence = list200; @@ -50456,24 +60911,30 @@ public static class AssemblyQuestLoader num = 1; List list204 = new List(num); CollectionsMarshal.SetCount(list204, num); - CollectionsMarshal.AsSpan(list204)[0] = "croizat"; + Span span204 = CollectionsMarshal.AsSpan(list204); + index = 0; + span204[index] = "croizat"; questRoot32.Author = list204; - num = 3; - List list205 = new List(num); - CollectionsMarshal.SetCount(list205, num); - Span span79 = CollectionsMarshal.AsSpan(list205); - ref QuestSequence reference142 = ref span79[0]; + index = 3; + List list205 = new List(index); + CollectionsMarshal.SetCount(list205, index); + Span span205 = CollectionsMarshal.AsSpan(list205); + num = 0; + ref QuestSequence reference142 = ref span205[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); obj125.Steps = list206; reference142 = obj125; - ref QuestSequence reference143 = ref span79[1]; + num++; + ref QuestSequence reference143 = ref span205[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -50481,21 +60942,27 @@ public static class AssemblyQuestLoader num2 = 3; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span80 = CollectionsMarshal.AsSpan(list207); - span80[0] = new QuestStep(EInteractionType.Interact, 1006253u, new Vector3(-251.6366f, -31.279873f, 383.62695f), 154); - span80[1] = new QuestStep(EInteractionType.Interact, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); - span80[2] = new QuestStep(EInteractionType.Interact, 1006254u, new Vector3(-244.52588f, -31.265808f, 392.3551f), 154); + Span span207 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span207[index2] = new QuestStep(EInteractionType.Interact, 1006253u, new Vector3(-251.6366f, -31.279873f, 383.62695f), 154); + index2++; + span207[index2] = new QuestStep(EInteractionType.Interact, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); + index2++; + span207[index2] = new QuestStep(EInteractionType.Interact, 1006254u, new Vector3(-244.52588f, -31.265808f, 392.3551f), 154); obj126.Steps = list207; reference143 = obj126; - ref QuestSequence reference144 = ref span79[2]; + num++; + ref QuestSequence reference144 = ref span205[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); obj127.Steps = list208; reference144 = obj127; questRoot32.QuestSequence = list205; @@ -50505,13 +60972,16 @@ public static class AssemblyQuestLoader num = 1; List list209 = new List(num); CollectionsMarshal.SetCount(list209, num); - CollectionsMarshal.AsSpan(list209)[0] = "croizat"; + Span span209 = CollectionsMarshal.AsSpan(list209); + index = 0; + span209[index] = "croizat"; questRoot33.Author = list209; - num = 3; - List list210 = new List(num); - CollectionsMarshal.SetCount(list210, num); - Span span81 = CollectionsMarshal.AsSpan(list210); - ref QuestSequence reference145 = ref span81[0]; + index = 3; + List list210 = new List(index); + CollectionsMarshal.SetCount(list210, index); + Span span210 = CollectionsMarshal.AsSpan(list210); + num = 0; + ref QuestSequence reference145 = ref span210[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 @@ -50519,18 +60989,23 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); + Span span211 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span211[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); obj128.Steps = list211; reference145 = obj128; - ref QuestSequence reference146 = ref span81[1]; + num++; + ref QuestSequence reference146 = ref span210[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - ref QuestStep reference147 = ref CollectionsMarshal.AsSpan(list212)[0]; + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + ref QuestStep reference147 = ref span212[num2]; QuestStep obj130 = new QuestStep(EInteractionType.Combat, null, new Vector3(-218.99034f, -30.112806f, 339.3762f), 154) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -50538,7 +61013,9 @@ public static class AssemblyQuestLoader num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = new ComplexCombatData + Span span213 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span213[index3] = new ComplexCombatData { DataId = 2266u, MinimumKillCount = 2u, @@ -50554,7 +61031,8 @@ public static class AssemblyQuestLoader reference147 = obj130; obj129.Steps = list212; reference146 = obj129; - ref QuestSequence reference148 = ref span81[2]; + num++; + ref QuestSequence reference148 = ref span210[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -50562,7 +61040,9 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154) + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154) { NextQuestId = new QuestId(798) }; @@ -50575,24 +61055,30 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - CollectionsMarshal.AsSpan(list215)[0] = "croizat"; + Span span215 = CollectionsMarshal.AsSpan(list215); + index = 0; + span215[index] = "croizat"; questRoot34.Author = list215; - num = 3; - List list216 = new List(num); - CollectionsMarshal.SetCount(list216, num); - Span span82 = CollectionsMarshal.AsSpan(list216); - ref QuestSequence reference149 = ref span82[0]; + index = 3; + List list216 = new List(index); + CollectionsMarshal.SetCount(list216, index); + Span span216 = CollectionsMarshal.AsSpan(list216); + num = 0; + ref QuestSequence reference149 = ref span216[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); + index2 = 1; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + Span span217 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span217[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); obj132.Steps = list217; reference149 = obj132; - ref QuestSequence reference150 = ref span82[1]; + num++; + ref QuestSequence reference150 = ref span216[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -50600,25 +61086,33 @@ public static class AssemblyQuestLoader num2 = 3; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - Span span83 = CollectionsMarshal.AsSpan(list218); - ref QuestStep reference151 = ref span83[0]; + Span span218 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + ref QuestStep reference151 = ref span218[index2]; QuestStep obj134 = new QuestStep(EInteractionType.UseItem, 2001996u, new Vector3(-213.39746f, -37.94922f, 265.4917f), 154) { ItemId = 2000629u }; - num3 = 6; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - Span span84 = CollectionsMarshal.AsSpan(list219); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list219 = new List(index3); + CollectionsMarshal.SetCount(list219, index3); + Span span219 = CollectionsMarshal.AsSpan(list219); + num3 = 0; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj134.CompletionQuestVariablesFlags = list219; reference151 = obj134; - ref QuestStep reference152 = ref span83[1]; + index2++; + ref QuestStep reference152 = ref span218[index2]; QuestStep obj135 = new QuestStep(EInteractionType.UseItem, 2001997u, new Vector3(-209.03339f, -42.37433f, 248.67627f), 154) { ItemId = 2000629u @@ -50626,43 +61120,59 @@ public static class AssemblyQuestLoader num3 = 6; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - Span span85 = CollectionsMarshal.AsSpan(list220); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span220 = CollectionsMarshal.AsSpan(list220); + index3 = 0; + span220[index3] = null; + index3++; + span220[index3] = null; + index3++; + span220[index3] = null; + index3++; + span220[index3] = null; + index3++; + span220[index3] = null; + index3++; + span220[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj135.CompletionQuestVariablesFlags = list220; reference152 = obj135; - ref QuestStep reference153 = ref span83[2]; + index2++; + ref QuestStep reference153 = ref span218[index2]; QuestStep obj136 = new QuestStep(EInteractionType.UseItem, 2001998u, new Vector3(-247.66925f, -43.38141f, 268.48242f), 154) { ItemId = 2000629u }; - num3 = 6; - List list221 = new List(num3); - CollectionsMarshal.SetCount(list221, num3); - Span span86 = CollectionsMarshal.AsSpan(list221); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list221 = new List(index3); + CollectionsMarshal.SetCount(list221, index3); + Span span221 = CollectionsMarshal.AsSpan(list221); + num3 = 0; + span221[num3] = null; + num3++; + span221[num3] = null; + num3++; + span221[num3] = null; + num3++; + span221[num3] = null; + num3++; + span221[num3] = null; + num3++; + span221[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj136.CompletionQuestVariablesFlags = list221; reference153 = obj136; obj133.Steps = list218; reference150 = obj133; - ref QuestSequence reference154 = ref span82[2]; + num++; + ref QuestSequence reference154 = ref span216[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + Span span222 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span222[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); obj137.Steps = list222; reference154 = obj137; questRoot34.QuestSequence = list216; @@ -50672,13 +61182,16 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - CollectionsMarshal.AsSpan(list223)[0] = "JerryWester"; + Span span223 = CollectionsMarshal.AsSpan(list223); + index = 0; + span223[index] = "JerryWester"; questRoot35.Author = list223; - num = 3; - List list224 = new List(num); - CollectionsMarshal.SetCount(list224, num); - Span span87 = CollectionsMarshal.AsSpan(list224); - ref QuestSequence reference155 = ref span87[0]; + index = 3; + List list224 = new List(index); + CollectionsMarshal.SetCount(list224, index); + Span span224 = CollectionsMarshal.AsSpan(list224); + num = 0; + ref QuestSequence reference155 = ref span224[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -50686,7 +61199,9 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006240u, new Vector3(14.389221f, -44.86571f, 262.65344f), 154) + Span span225 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span225[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006240u, new Vector3(14.389221f, -44.86571f, 262.65344f), 154) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -50700,16 +61215,18 @@ public static class AssemblyQuestLoader }; obj138.Steps = list225; reference155 = obj138; - ref QuestSequence reference156 = ref span87[1]; + num++; + ref QuestSequence reference156 = ref span224[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - Span span88 = CollectionsMarshal.AsSpan(list226); - ref QuestStep reference157 = ref span88[0]; + index2 = 2; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + Span span226 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + ref QuestStep reference157 = ref span226[num2]; QuestStep obj140 = new QuestStep(EInteractionType.Combat, 1007541u, new Vector3(-302.8459f, -51.768955f, 331.19702f), 154) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -50717,13 +61234,17 @@ public static class AssemblyQuestLoader num3 = 1; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = 182u; + Span span227 = CollectionsMarshal.AsSpan(list227); + index3 = 0; + span227[index3] = 182u; obj140.KillEnemyDataIds = list227; reference157 = obj140; - span88[1] = new QuestStep(EInteractionType.Interact, 1007541u, new Vector3(-302.8459f, -51.768955f, 331.19702f), 154); + num2++; + span226[num2] = new QuestStep(EInteractionType.Interact, 1007541u, new Vector3(-302.8459f, -51.768955f, 331.19702f), 154); obj139.Steps = list226; reference156 = obj139; - ref QuestSequence reference158 = ref span87[2]; + num++; + ref QuestSequence reference158 = ref span224[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue @@ -50731,7 +61252,9 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) + Span span228 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span228[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; @@ -50748,13 +61271,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -50762,7 +61288,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -50775,21 +61303,25 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -50797,18 +61329,23 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1000146u, new Vector3(49.79016f, -1.4669685f, 51.743286f), 132); + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1000146u, new Vector3(49.79016f, -1.4669685f, 51.743286f), 132); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1000248u, new Vector3(143.05322f, 14.250365f, -250.72101f), 133) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Interact, 1000248u, new Vector3(143.05322f, 14.250365f, -250.72101f), 133) { AethernetShortcut = new AethernetShortcut { @@ -50818,7 +61355,8 @@ public static class AssemblyQuestLoader }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -50826,7 +61364,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133); + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -50836,24 +61376,30 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "JerryWester"; + Span span8 = CollectionsMarshal.AsSpan(list8); + index = 0; + span8[index] = "JerryWester"; questRoot2.Author = list8; - num = 6; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span2 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span2[0]; + index = 6; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + Span span9 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span9[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[1]; + num++; + ref QuestSequence reference7 = ref span9[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -50861,8 +61407,9 @@ public static class AssemblyQuestLoader num2 = 3; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span3 = CollectionsMarshal.AsSpan(list11); - span3[0] = new QuestStep(EInteractionType.AcceptQuest, 1006259u, new Vector3(43.808594f, 2.5499606f, 21.683044f), 132) + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006259u, new Vector3(43.808594f, 2.5499606f, 21.683044f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -50874,22 +61421,27 @@ public static class AssemblyQuestLoader }, PickUpQuestId = new QuestId(802) }; - span3[1] = new QuestStep(EInteractionType.Interact, 1000171u, new Vector3(-114.366455f, -7.351947f, 94.52954f), 132) + index2++; + span11[index2] = new QuestStep(EInteractionType.Interact, 1000171u, new Vector3(-114.366455f, -7.351947f, 94.52954f), 132) { TargetTerritoryId = (ushort)148 }; - span3[2] = new QuestStep(EInteractionType.Interact, 2001999u, new Vector3(-576.1349f, 68.13147f, 69.41321f), 148); + index2++; + span11[index2] = new QuestStep(EInteractionType.Interact, 2001999u, new Vector3(-576.1349f, 68.13147f, 69.41321f), 148); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span2[2]; + num++; + ref QuestSequence reference8 = ref span9[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list12)[0]; + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + ref QuestStep reference9 = ref span12[num2]; QuestStep questStep = new QuestStep(EInteractionType.Duty, null, null, 148); DutyOptions obj9 = new DutyOptions { @@ -50898,17 +61450,21 @@ public static class AssemblyQuestLoader int num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = "(after boss 2) Will not pick up the bloody parchment, and instead run off to open a random unrelated chest that it can't reach"; + Span span13 = CollectionsMarshal.AsSpan(list13); + int index3 = 0; + span13[index3] = "(after boss 2) Will not pick up the bloody parchment, and instead run off to open a random unrelated chest that it can't reach"; obj9.Notes = list13; questStep.DutyOptions = obj9; reference9 = questStep; obj8.Steps = list12; reference8 = obj8; - span2[3] = new QuestSequence + num++; + span9[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference10 = ref span2[4]; + num++; + ref QuestSequence reference10 = ref span9[num]; QuestSequence obj10 = new QuestSequence { Sequence = 4 @@ -50916,7 +61472,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133) + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.Interact, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -50927,29 +61485,35 @@ public static class AssemblyQuestLoader }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[5]; + num++; + ref QuestSequence reference11 = ref span9[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - Span span4 = CollectionsMarshal.AsSpan(list15); - span4[0] = new QuestStep(EInteractionType.UseItem, null, null, 128) + index2 = 5; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.UseItem, null, null, 128) { ItemId = 30362u }; - span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span4[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) + num2++; + span15[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span15[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span4[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num2++; + span15[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span4[4] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + num2++; + span15[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj11.Steps = list15; reference11 = obj11; questRoot2.QuestSequence = list9; @@ -50959,13 +61523,16 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + Span span16 = CollectionsMarshal.AsSpan(list16); + index = 0; + span16[index] = "liza"; questRoot3.Author = list16; - num = 2; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span5 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span5[0]; + index = 2; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + Span span17 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span17[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -50973,18 +61540,23 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006259u, new Vector3(43.808594f, 2.5499606f, 21.683044f), 132); + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006259u, new Vector3(43.808594f, 2.5499606f, 21.683044f), 132); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span5[1]; + num++; + ref QuestSequence reference13 = ref span17[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000171u, new Vector3(-114.366455f, -7.351947f, 94.52954f), 132); + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000171u, new Vector3(-114.366455f, -7.351947f, 94.52954f), 132); obj13.Steps = list19; reference13 = obj13; questRoot3.QuestSequence = list17; @@ -50994,13 +61566,16 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + Span span20 = CollectionsMarshal.AsSpan(list20); + index = 0; + span20[index] = "liza"; questRoot4.Author = list20; - num = 3; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span6 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference14 = ref span6[0]; + index = 3; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + Span span21 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference14 = ref span21[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -51008,8 +61583,9 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span7 = CollectionsMarshal.AsSpan(list22); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, @@ -51021,27 +61597,33 @@ public static class AssemblyQuestLoader } } }; - span7[1] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); + index2++; + span22[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference15 = ref span6[1]; + num++; + ref QuestSequence reference15 = ref span21[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list23)[0]; + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + ref QuestStep reference16 = ref span23[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, null, new Vector3(-294.20667f, 61.58862f, -192.54443f), 148) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - ref ComplexCombatData reference17 = ref CollectionsMarshal.AsSpan(list24)[0]; + index3 = 1; + List list24 = new List(index3); + CollectionsMarshal.SetCount(list24, index3); + Span span24 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + ref ComplexCombatData reference17 = ref span24[num3]; ComplexCombatData obj17 = new ComplexCombatData { DataId = 48u @@ -51049,31 +61631,44 @@ public static class AssemblyQuestLoader int num4 = 6; List list25 = new List(num4); CollectionsMarshal.SetCount(list25, num4); - Span span8 = CollectionsMarshal.AsSpan(list25); - span8[0] = null; - span8[1] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = null; + Span span25 = CollectionsMarshal.AsSpan(list25); + int num5 = 0; + span25[num5] = null; + num5++; + span25[num5] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); + num5++; + span25[num5] = null; + num5++; + span25[num5] = null; + num5++; + span25[num5] = null; + num5++; + span25[num5] = null; obj17.CompletionQuestVariablesFlags = list25; reference17 = obj17; obj16.ComplexCombatData = list24; num3 = 6; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - Span span9 = CollectionsMarshal.AsSpan(list26); - span9[0] = null; - span9[1] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = null; + Span span26 = CollectionsMarshal.AsSpan(list26); + index3 = 0; + span26[index3] = null; + index3++; + span26[index3] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); + index3++; + span26[index3] = null; + index3++; + span26[index3] = null; + index3++; + span26[index3] = null; + index3++; + span26[index3] = null; obj16.CompletionQuestVariablesFlags = list26; reference16 = obj16; obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference18 = ref span6[2]; + num++; + ref QuestSequence reference18 = ref span21[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -51081,12 +61676,14 @@ public static class AssemblyQuestLoader num2 = 2; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span10 = CollectionsMarshal.AsSpan(list27); - span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) + index2++; + span27[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) { NextQuestId = new QuestId(805) }; @@ -51099,22 +61696,26 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + Span span28 = CollectionsMarshal.AsSpan(list28); + index = 0; + span28[index] = "liza"; questRoot5.Author = list28; - num = 3; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span11 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference19 = ref span11[0]; + index = 3; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + Span span29 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference19 = ref span29[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - Span span12 = CollectionsMarshal.AsSpan(list30); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + index2 = 2; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span30[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, @@ -51126,10 +61727,12 @@ public static class AssemblyQuestLoader } } }; - span12[1] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); + num2++; + span30[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); obj19.Steps = list30; reference19 = obj19; - ref QuestSequence reference20 = ref span11[1]; + num++; + ref QuestSequence reference20 = ref span29[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -51137,15 +61740,19 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list31)[0]; + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + ref QuestStep reference21 = ref span31[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, null, new Vector3(-291.6655f, 60.450222f, -163.48296f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new ComplexCombatData + index3 = 1; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + Span span32 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span32[num3] = new ComplexCombatData { DataId = 2267u }; @@ -51159,20 +61766,23 @@ public static class AssemblyQuestLoader reference21 = obj21; obj20.Steps = list31; reference20 = obj20; - ref QuestSequence reference22 = ref span11[2]; + num++; + ref QuestSequence reference22 = ref span29[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span13 = CollectionsMarshal.AsSpan(list33); - span13[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + index2 = 2; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true }; - span13[1] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) + num2++; + span33[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) { NextQuestId = new QuestId(807) }; @@ -51185,13 +61795,16 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "croizat"; + Span span34 = CollectionsMarshal.AsSpan(list34); + index = 0; + span34[index] = "croizat"; questRoot6.Author = list34; - num = 3; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span14 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference23 = ref span14[0]; + index = 3; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + Span span35 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference23 = ref span35[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -51199,24 +61812,31 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006262u, new Vector3(-243.7019f, 58.71083f, -141.49695f), 148); + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006262u, new Vector3(-243.7019f, 58.71083f, -141.49695f), 148); obj23.Steps = list36; reference23 = obj23; - ref QuestSequence reference24 = ref span14[1]; + num++; + ref QuestSequence reference24 = ref span35[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span15 = CollectionsMarshal.AsSpan(list37); - span15[0] = new QuestStep(EInteractionType.Interact, 2002003u, new Vector3(-408.80444f, 49.149292f, 12.283508f), 148); - span15[1] = new QuestStep(EInteractionType.Interact, 2002005u, new Vector3(-376.45538f, 51.0719f, 46.860474f), 148); - span15[2] = new QuestStep(EInteractionType.Interact, 2002004u, new Vector3(-399.4049f, 51.04138f, 76.00513f), 148); + index2 = 3; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.Interact, 2002003u, new Vector3(-408.80444f, 49.149292f, 12.283508f), 148); + num2++; + span37[num2] = new QuestStep(EInteractionType.Interact, 2002005u, new Vector3(-376.45538f, 51.0719f, 46.860474f), 148); + num2++; + span37[num2] = new QuestStep(EInteractionType.Interact, 2002004u, new Vector3(-399.4049f, 51.04138f, 76.00513f), 148); obj24.Steps = list37; reference24 = obj24; - ref QuestSequence reference25 = ref span14[2]; + num++; + ref QuestSequence reference25 = ref span35[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -51224,7 +61844,9 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006262u, new Vector3(-243.7019f, 58.71083f, -141.49695f), 148); + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006262u, new Vector3(-243.7019f, 58.71083f, -141.49695f), 148); obj25.Steps = list38; reference25 = obj25; questRoot6.QuestSequence = list35; @@ -51234,22 +61856,26 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "liza"; + Span span39 = CollectionsMarshal.AsSpan(list39); + index = 0; + span39[index] = "liza"; questRoot7.Author = list39; - num = 3; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span16 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference26 = ref span16[0]; + index = 3; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + Span span40 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference26 = ref span40[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span17 = CollectionsMarshal.AsSpan(list41); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + index2 = 2; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, @@ -51261,10 +61887,12 @@ public static class AssemblyQuestLoader } } }; - span17[1] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); + num2++; + span41[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); obj26.Steps = list41; reference26 = obj26; - ref QuestSequence reference27 = ref span16[1]; + num++; + ref QuestSequence reference27 = ref span40[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -51272,7 +61900,9 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list42)[0]; + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + ref QuestStep reference28 = ref span42[index2]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(-327.70383f, 57.159073f, -13.640016f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -51280,7 +61910,9 @@ public static class AssemblyQuestLoader num3 = 1; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new ComplexCombatData + Span span43 = CollectionsMarshal.AsSpan(list43); + index3 = 0; + span43[index3] = new ComplexCombatData { DataId = 2193u, NameId = 2057u @@ -51295,20 +61927,23 @@ public static class AssemblyQuestLoader reference28 = obj28; obj27.Steps = list42; reference27 = obj27; - ref QuestSequence reference29 = ref span16[2]; + num++; + ref QuestSequence reference29 = ref span40[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - Span span18 = CollectionsMarshal.AsSpan(list44); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + index2 = 2; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true }; - span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) + num2++; + span44[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) { NextQuestId = new QuestId(1485) }; @@ -51321,13 +61956,16 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "JerryWester"; + Span span45 = CollectionsMarshal.AsSpan(list45); + index = 0; + span45[index] = "JerryWester"; questRoot8.Author = list45; - num = 3; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span19 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference30 = ref span19[0]; + index = 3; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + Span span46 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference30 = ref span46[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -51335,34 +61973,42 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); obj30.Steps = list47; reference30 = obj30; - ref QuestSequence reference31 = ref span19[1]; + num++; + ref QuestSequence reference31 = ref span46[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - ref QuestStep reference32 = ref CollectionsMarshal.AsSpan(list48)[0]; + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + ref QuestStep reference32 = ref span48[num2]; QuestStep obj32 = new QuestStep(EInteractionType.Combat, 2002033u, new Vector3(671.1986f, 64.37781f, -205.24915f), 135) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - Span span20 = CollectionsMarshal.AsSpan(list49); - span20[0] = 2239u; - span20[1] = 2240u; + index3 = 2; + List list49 = new List(index3); + CollectionsMarshal.SetCount(list49, index3); + Span span49 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span49[num3] = 2239u; + num3++; + span49[num3] = 2240u; obj32.KillEnemyDataIds = list49; reference32 = obj32; obj31.Steps = list48; reference31 = obj31; - ref QuestSequence reference33 = ref span19[2]; + num++; + ref QuestSequence reference33 = ref span46[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -51370,9 +62016,11 @@ public static class AssemblyQuestLoader num2 = 2; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span21 = CollectionsMarshal.AsSpan(list50); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.84393f, 64.118355f, -203.85042f), 135); - span21[1] = new QuestStep(EInteractionType.CompleteQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.84393f, 64.118355f, -203.85042f), 135); + index2++; + span50[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); obj33.Steps = list50; reference33 = obj33; questRoot8.QuestSequence = list46; @@ -51382,24 +62030,30 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "JerryWester"; + Span span51 = CollectionsMarshal.AsSpan(list51); + index = 0; + span51[index] = "JerryWester"; questRoot9.Author = list51; - num = 3; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span22 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference34 = ref span22[0]; + index = 3; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + Span span52 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference34 = ref span52[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); obj34.Steps = list53; reference34 = obj34; - ref QuestSequence reference35 = ref span22[1]; + num++; + ref QuestSequence reference35 = ref span52[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -51407,7 +62061,9 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - ref QuestStep reference36 = ref CollectionsMarshal.AsSpan(list54)[0]; + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + ref QuestStep reference36 = ref span54[index2]; QuestStep obj36 = new QuestStep(EInteractionType.Combat, 2002034u, new Vector3(646.1432f, 67.46008f, -263.38605f), 135) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -51415,20 +62071,25 @@ public static class AssemblyQuestLoader num3 = 1; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = 1900u; + Span span55 = CollectionsMarshal.AsSpan(list55); + index3 = 0; + span55[index3] = 1900u; obj36.KillEnemyDataIds = list55; reference36 = obj36; obj35.Steps = list54; reference35 = obj35; - ref QuestSequence reference37 = ref span22[2]; + num++; + ref QuestSequence reference37 = ref span52[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); obj37.Steps = list56; reference37 = obj37; questRoot9.QuestSequence = list52; @@ -51438,13 +62099,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "JerryWester"; + Span span57 = CollectionsMarshal.AsSpan(list57); + index = 0; + span57[index] = "JerryWester"; questRoot10.Author = list57; - num = 3; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span23 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference38 = ref span23[0]; + index = 3; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + Span span58 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference38 = ref span58[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -51452,18 +62116,23 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); obj38.Steps = list59; reference38 = obj38; - ref QuestSequence reference39 = ref span23[1]; + num++; + ref QuestSequence reference39 = ref span58[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006265u, new Vector3(703.5171f, 65.78333f, -288.77704f), 135) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006265u, new Vector3(703.5171f, 65.78333f, -288.77704f), 135) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -51472,7 +62141,8 @@ public static class AssemblyQuestLoader }; obj39.Steps = list60; reference39 = obj39; - ref QuestSequence reference40 = ref span23[2]; + num++; + ref QuestSequence reference40 = ref span58[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -51480,17 +62150,21 @@ public static class AssemblyQuestLoader num2 = 4; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span24 = CollectionsMarshal.AsSpan(list61); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(696.00323f, 80.20443f, -391.9752f), 135) + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(696.00323f, 80.20443f, -391.9752f), 135) { TargetTerritoryId = (ushort)137 }; - span24[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(378.54834f, 21.81276f, 478.4722f), 137); - span24[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) + index2++; + span61[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(378.54834f, 21.81276f, 478.4722f), 137); + index2++; + span61[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) { Aetheryte = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - span24[3] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137); + index2++; + span61[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137); obj40.Steps = list61; reference40 = obj40; questRoot10.QuestSequence = list58; @@ -51500,21 +62174,26 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "JerryWester"; + Span span62 = CollectionsMarshal.AsSpan(list62); + index = 0; + span62[index] = "JerryWester"; questRoot11.Author = list62; - num = 4; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span25 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference41 = ref span25[0]; + index = 4; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + Span span63 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference41 = ref span63[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -51527,7 +62206,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list64; reference41 = obj41; - ref QuestSequence reference42 = ref span25[1]; + num++; + ref QuestSequence reference42 = ref span63[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -51535,34 +62215,42 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.UseItem, 2002035u, new Vector3(666.6819f, 9.018005f, 509.6361f), 137) + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.UseItem, 2002035u, new Vector3(666.6819f, 9.018005f, 509.6361f), 137) { ItemId = 2000636u }; obj42.Steps = list65; reference42 = obj42; - ref QuestSequence reference43 = ref span25[2]; + num++; + ref QuestSequence reference43 = ref span63[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list66)[0]; + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + ref QuestStep reference44 = ref span66[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, 2002639u, new Vector3(652.2468f, 12.039368f, 519.8595f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = 1887u; + index3 = 1; + List list67 = new List(index3); + CollectionsMarshal.SetCount(list67, index3); + Span span67 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span67[num3] = 1887u; obj44.KillEnemyDataIds = list67; reference44 = obj44; obj43.Steps = list66; reference43 = obj43; - ref QuestSequence reference45 = ref span25[3]; + num++; + ref QuestSequence reference45 = ref span63[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -51570,7 +62258,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137); + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137); obj45.Steps = list68; reference45 = obj45; questRoot11.QuestSequence = list63; @@ -51580,21 +62270,26 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "JerryWester"; + Span span69 = CollectionsMarshal.AsSpan(list69); + index = 0; + span69[index] = "JerryWester"; questRoot12.Author = list69; - num = 2; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span26 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference46 = ref span26[0]; + index = 2; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + Span span70 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference46 = ref span70[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -51607,7 +62302,8 @@ public static class AssemblyQuestLoader }; obj46.Steps = list71; reference46 = obj46; - ref QuestSequence reference47 = ref span26[1]; + num++; + ref QuestSequence reference47 = ref span70[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue @@ -51615,7 +62311,9 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span72[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; @@ -51628,24 +62326,30 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "croizat"; + Span span73 = CollectionsMarshal.AsSpan(list73); + index = 0; + span73[index] = "croizat"; questRoot13.Author = list73; - num = 3; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span27 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference48 = ref span27[0]; + index = 3; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + Span span74 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference48 = ref span74[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006283u, new Vector3(-230.94531f, 21.491573f, 338.2467f), 153); + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006283u, new Vector3(-230.94531f, 21.491573f, 338.2467f), 153); obj48.Steps = list75; reference48 = obj48; - ref QuestSequence reference49 = ref span27[1]; + num++; + ref QuestSequence reference49 = ref span74[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 @@ -51653,8 +62357,9 @@ public static class AssemblyQuestLoader num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span28 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference50 = ref span28[0]; + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + ref QuestStep reference50 = ref span76[index2]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(-230.93796f, 8.626011f, 640.6978f), 153) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -51662,21 +62367,27 @@ public static class AssemblyQuestLoader num3 = 1; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = 13u; + Span span77 = CollectionsMarshal.AsSpan(list77); + index3 = 0; + span77[index3] = 13u; obj50.KillEnemyDataIds = list77; reference50 = obj50; - span28[1] = new QuestStep(EInteractionType.Interact, 1006284u, new Vector3(-228.62598f, 8.514692f, 641.1687f), 153); + index2++; + span76[index2] = new QuestStep(EInteractionType.Interact, 1006284u, new Vector3(-228.62598f, 8.514692f, 641.1687f), 153); obj49.Steps = list76; reference49 = obj49; - ref QuestSequence reference51 = ref span27[2]; + num++; + ref QuestSequence reference51 = ref span74[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006283u, new Vector3(-230.94531f, 21.491573f, 338.2467f), 153); + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006283u, new Vector3(-230.94531f, 21.491573f, 338.2467f), 153); obj51.Steps = list78; reference51 = obj51; questRoot13.QuestSequence = list74; @@ -51686,13 +62397,16 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "croizat"; + Span span79 = CollectionsMarshal.AsSpan(list79); + index = 0; + span79[index] = "croizat"; questRoot14.Author = list79; - num = 3; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span29 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference52 = ref span29[0]; + index = 3; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + Span span80 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference52 = ref span80[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -51700,31 +62414,39 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002762u, new Vector3(-203.69275f, 20.975048f, 367.33044f), 153); + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002762u, new Vector3(-203.69275f, 20.975048f, 367.33044f), 153); obj52.Steps = list81; reference52 = obj52; - ref QuestSequence reference53 = ref span29[1]; + num++; + ref QuestSequence reference53 = ref span80[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - Span span30 = CollectionsMarshal.AsSpan(list82); - span30[0] = new QuestStep(EInteractionType.Interact, 2002040u, new Vector3(-207.38544f, 8.8349f, 372.21326f), 153); - ref QuestStep reference54 = ref span30[1]; + index2 = 3; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.Interact, 2002040u, new Vector3(-207.38544f, 8.8349f, 372.21326f), 153); + num2++; + ref QuestStep reference54 = ref span82[num2]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, 2002041u, new Vector3(-188.83038f, 1.1443481f, 429.6482f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = 302u; + index3 = 1; + List list83 = new List(index3); + CollectionsMarshal.SetCount(list83, index3); + Span span83 = CollectionsMarshal.AsSpan(list83); + num3 = 0; + span83[num3] = 302u; obj54.KillEnemyDataIds = list83; reference54 = obj54; - ref QuestStep reference55 = ref span30[2]; + num2++; + ref QuestStep reference55 = ref span82[num2]; QuestStep obj55 = new QuestStep(EInteractionType.Combat, 2002042u, new Vector3(-204.21149f, 0.41192627f, 471.00012f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -51732,12 +62454,15 @@ public static class AssemblyQuestLoader num3 = 1; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = 302u; + Span span84 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span84[index3] = 302u; obj55.KillEnemyDataIds = list84; reference55 = obj55; obj53.Steps = list82; reference53 = obj53; - ref QuestSequence reference56 = ref span29[2]; + num++; + ref QuestSequence reference56 = ref span80[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue @@ -51745,7 +62470,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002762u, new Vector3(-203.69275f, 20.975048f, 367.33044f), 153); + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002762u, new Vector3(-203.69275f, 20.975048f, 367.33044f), 153); obj56.Steps = list85; reference56 = obj56; questRoot14.QuestSequence = list80; @@ -51755,21 +62482,26 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "JerryWester"; + Span span86 = CollectionsMarshal.AsSpan(list86); + index = 0; + span86[index] = "JerryWester"; questRoot15.Author = list86; - num = 4; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span31 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference57 = ref span31[0]; + index = 4; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + Span span87 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference57 = ref span87[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, SkipConditions = new SkipConditions @@ -51782,7 +62514,8 @@ public static class AssemblyQuestLoader }; obj57.Steps = list88; reference57 = obj57; - ref QuestSequence reference58 = ref span31[1]; + num++; + ref QuestSequence reference58 = ref span87[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 @@ -51790,34 +62523,42 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.UseItem, 2002044u, new Vector3(75.97461f, 2.090454f, 692.9884f), 146) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.UseItem, 2002044u, new Vector3(75.97461f, 2.090454f, 692.9884f), 146) { ItemId = 2000643u }; obj58.Steps = list89; reference58 = obj58; - ref QuestSequence reference59 = ref span31[2]; + num++; + ref QuestSequence reference59 = ref span87[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list90)[0]; + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + ref QuestStep reference60 = ref span90[num2]; QuestStep obj60 = new QuestStep(EInteractionType.Combat, 2002045u, new Vector3(89.066895f, 3.189148f, 673.0906f), 146) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = 1889u; + index3 = 1; + List list91 = new List(index3); + CollectionsMarshal.SetCount(list91, index3); + Span span91 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + span91[num3] = 1889u; obj60.KillEnemyDataIds = list91; reference60 = obj60; obj59.Steps = list90; reference59 = obj59; - ref QuestSequence reference61 = ref span31[3]; + num++; + ref QuestSequence reference61 = ref span87[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -51825,7 +62566,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; @@ -51838,21 +62581,26 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "JerryWester"; + Span span93 = CollectionsMarshal.AsSpan(list93); + index = 0; + span93[index] = "JerryWester"; questRoot16.Author = list93; - num = 5; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span32 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference62 = ref span32[0]; + index = 5; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + Span span94 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference62 = ref span94[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, SkipConditions = new SkipConditions @@ -51865,7 +62613,8 @@ public static class AssemblyQuestLoader }; obj62.Steps = list95; reference62 = obj62; - ref QuestSequence reference63 = ref span32[1]; + num++; + ref QuestSequence reference63 = ref span94[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -51873,7 +62622,9 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list96)[0]; + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + ref QuestStep reference64 = ref span96[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, null, new Vector3(-44.549854f, 7.3629045f, 405.72034f), 146) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -51881,7 +62632,9 @@ public static class AssemblyQuestLoader num3 = 1; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - CollectionsMarshal.AsSpan(list97)[0] = new ComplexCombatData + Span span97 = CollectionsMarshal.AsSpan(list97); + index3 = 0; + span97[index3] = new ComplexCombatData { DataId = 356u }; @@ -51889,21 +62642,25 @@ public static class AssemblyQuestLoader reference64 = obj64; obj63.Steps = list96; reference63 = obj63; - ref QuestSequence reference65 = ref span32[2]; + num++; + ref QuestSequence reference65 = ref span94[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.UseItem, 2002046u, new Vector3(42.86255f, 18.783813f, 582.5436f), 146) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.UseItem, 2002046u, new Vector3(42.86255f, 18.783813f, 582.5436f), 146) { ItemId = 2000645u }; obj65.Steps = list98; reference65 = obj65; - ref QuestSequence reference66 = ref span32[3]; + num++; + ref QuestSequence reference66 = ref span94[num]; QuestSequence obj66 = new QuestSequence { Sequence = 3 @@ -51911,28 +62668,35 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list99)[0]; + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + ref QuestStep reference67 = ref span99[index2]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, 2002576u, new Vector3(57.99951f, 21.011597f, 569.69543f), 146) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = 1890u; + index3 = 1; + List list100 = new List(index3); + CollectionsMarshal.SetCount(list100, index3); + Span span100 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span100[num3] = 1890u; obj67.KillEnemyDataIds = list100; reference67 = obj67; obj66.Steps = list99; reference66 = obj66; - ref QuestSequence reference68 = ref span32[4]; + num++; + ref QuestSequence reference68 = ref span94[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; @@ -51945,13 +62709,16 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "liza"; + Span span102 = CollectionsMarshal.AsSpan(list102); + index = 0; + span102[index] = "liza"; questRoot17.Author = list102; - num = 3; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span33 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference69 = ref span33[0]; + index = 3; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + Span span103 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference69 = ref span103[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -51959,7 +62726,9 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146) + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, SkipConditions = new SkipConditions @@ -51972,16 +62741,18 @@ public static class AssemblyQuestLoader }; obj69.Steps = list104; reference69 = obj69; - ref QuestSequence reference70 = ref span33[1]; + num++; + ref QuestSequence reference70 = ref span103[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - Span span34 = CollectionsMarshal.AsSpan(list105); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.53528f, 8.5170555f, 420.7671f), 146) + index2 = 3; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.53528f, 8.5170555f, 420.7671f), 146) { SkipConditions = new SkipConditions { @@ -51991,7 +62762,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference71 = ref span34[1]; + num2++; + ref QuestStep reference71 = ref span105[num2]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, null, new Vector3(-452.6925f, 7.386449f, 579.44867f), 146) { Fly = true, @@ -52000,24 +62772,34 @@ public static class AssemblyQuestLoader num3 = 1; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = 356u; + Span span106 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span106[index3] = 356u; obj71.KillEnemyDataIds = list106; - num3 = 6; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - Span span35 = CollectionsMarshal.AsSpan(list107); - span35[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = null; + index3 = 6; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + Span span107 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span107[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num3++; + span107[num3] = null; + num3++; + span107[num3] = null; + num3++; + span107[num3] = null; + num3++; + span107[num3] = null; + num3++; + span107[num3] = null; obj71.CompletionQuestVariablesFlags = list107; reference71 = obj71; - span34[2] = new QuestStep(EInteractionType.Interact, 1006289u, new Vector3(-454.36792f, 7.3196526f, 580.3158f), 146); + num2++; + span105[num2] = new QuestStep(EInteractionType.Interact, 1006289u, new Vector3(-454.36792f, 7.3196526f, 580.3158f), 146); obj70.Steps = list105; reference70 = obj70; - ref QuestSequence reference72 = ref span33[2]; + num++; + ref QuestSequence reference72 = ref span103[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -52025,8 +62807,9 @@ public static class AssemblyQuestLoader num2 = 2; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span36 = CollectionsMarshal.AsSpan(list108); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.53528f, 8.5170555f, 420.7671f), 146) + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.53528f, 8.5170555f, 420.7671f), 146) { Fly = true, SkipConditions = new SkipConditions @@ -52037,7 +62820,8 @@ public static class AssemblyQuestLoader } } }; - span36[1] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); + index2++; + span108[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); obj72.Steps = list108; reference72 = obj72; questRoot17.QuestSequence = list103; @@ -52047,21 +62831,26 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + Span span109 = CollectionsMarshal.AsSpan(list109); + index = 0; + span109[index] = "liza"; questRoot18.Author = list109; - num = 4; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span37 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference73 = ref span37[0]; + index = 4; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + Span span110 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference73 = ref span110[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, SkipConditions = new SkipConditions @@ -52074,7 +62863,8 @@ public static class AssemblyQuestLoader }; obj73.Steps = list111; reference73 = obj73; - ref QuestSequence reference74 = ref span37[1]; + num++; + ref QuestSequence reference74 = ref span110[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -52082,8 +62872,9 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span38 = CollectionsMarshal.AsSpan(list112); - span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.53528f, 8.5170555f, 420.7671f), 146) + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.53528f, 8.5170555f, 420.7671f), 146) { SkipConditions = new SkipConditions { @@ -52093,7 +62884,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference75 = ref span38[1]; + index2++; + ref QuestStep reference75 = ref span112[index2]; QuestStep obj75 = new QuestStep(EInteractionType.Combat, null, new Vector3(311.96396f, 7.342495f, 653.4828f), 146) { Fly = true, @@ -52102,29 +62894,36 @@ public static class AssemblyQuestLoader num3 = 3; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - Span span39 = CollectionsMarshal.AsSpan(list113); - span39[0] = 166u; - span39[1] = 168u; - span39[2] = 169u; + Span span113 = CollectionsMarshal.AsSpan(list113); + index3 = 0; + span113[index3] = 166u; + index3++; + span113[index3] = 168u; + index3++; + span113[index3] = 169u; obj75.KillEnemyDataIds = list113; reference75 = obj75; obj74.Steps = list112; reference74 = obj74; - ref QuestSequence reference76 = ref span37[2]; + num++; + ref QuestSequence reference76 = ref span110[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Emote, 1006736u, new Vector3(300.2517f, 7.6367383f, 651.2396f), 146) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.Emote, 1006736u, new Vector3(300.2517f, 7.6367383f, 651.2396f), 146) { Emote = EEmote.Psych }; obj76.Steps = list114; reference76 = obj76; - ref QuestSequence reference77 = ref span37[3]; + num++; + ref QuestSequence reference77 = ref span110[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -52132,7 +62931,9 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146) + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; @@ -52145,27 +62946,33 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "skiaz"; + Span span116 = CollectionsMarshal.AsSpan(list116); + index = 0; + span116[index] = "skiaz"; questRoot19.Author = list116; - num = 6; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span40 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference78 = ref span40[0]; + index = 6; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + Span span117 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference78 = ref span117[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006288u, new Vector3(-361.40997f, 8.46532f, 426.13855f), 146) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006288u, new Vector3(-361.40997f, 8.46532f, 426.13855f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj78.Steps = list118; reference78 = obj78; - ref QuestSequence reference79 = ref span40[1]; + num++; + ref QuestSequence reference79 = ref span117[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -52173,21 +62980,27 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.Interact, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); obj79.Steps = list119; reference79 = obj79; - ref QuestSequence reference80 = ref span40[2]; + num++; + ref QuestSequence reference80 = ref span117[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1006737u, new Vector3(-332.72296f, 4.1964035f, 278.21765f), 146); + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.Interact, 1006737u, new Vector3(-332.72296f, 4.1964035f, 278.21765f), 146); obj80.Steps = list120; reference80 = obj80; - ref QuestSequence reference81 = ref span40[3]; + num++; + ref QuestSequence reference81 = ref span117[num]; QuestSequence obj81 = new QuestSequence { Sequence = 3 @@ -52195,16 +63008,20 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list121)[0]; + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + ref QuestStep reference82 = ref span121[index2]; QuestStep obj82 = new QuestStep(EInteractionType.Combat, 2268u, new Vector3(-192.82831f, 9.630248f, 454.79517f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = new ComplexCombatData + index3 = 1; + List list122 = new List(index3); + CollectionsMarshal.SetCount(list122, index3); + Span span122 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + span122[num3] = new ComplexCombatData { DataId = 2268u, MinimumKillCount = 3u @@ -52219,21 +63036,25 @@ public static class AssemblyQuestLoader reference82 = obj82; obj81.Steps = list121; reference81 = obj81; - ref QuestSequence reference83 = ref span40[4]; + num++; + ref QuestSequence reference83 = ref span117[num]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1006737u, new Vector3(-332.72296f, 4.1964035f, 278.21765f), 146) + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span123[num2] = new QuestStep(EInteractionType.Interact, 1006737u, new Vector3(-332.72296f, 4.1964035f, 278.21765f), 146) { Fly = true }; obj83.Steps = list123; reference83 = obj83; - ref QuestSequence reference84 = ref span40[5]; + num++; + ref QuestSequence reference84 = ref span117[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue @@ -52241,7 +63062,9 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); + Span span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span124[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); obj84.Steps = list124; reference84 = obj84; questRoot19.QuestSequence = list117; @@ -52251,21 +63074,26 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "JerryWester"; + Span span125 = CollectionsMarshal.AsSpan(list125); + index = 0; + span125[index] = "JerryWester"; questRoot20.Author = list125; - num = 2; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span41 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference85 = ref span41[0]; + index = 2; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + Span span126 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference85 = ref span126[num]; QuestSequence obj85 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, SkipConditions = new SkipConditions @@ -52278,7 +63106,8 @@ public static class AssemblyQuestLoader }; obj85.Steps = list127; reference85 = obj85; - ref QuestSequence reference86 = ref span41[1]; + num++; + ref QuestSequence reference86 = ref span126[num]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -52286,7 +63115,9 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span128[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; @@ -52299,22 +63130,27 @@ public static class AssemblyQuestLoader num = 1; List list129 = new List(num); CollectionsMarshal.SetCount(list129, num); - CollectionsMarshal.AsSpan(list129)[0] = "JerryWester"; + Span span129 = CollectionsMarshal.AsSpan(list129); + index = 0; + span129[index] = "JerryWester"; questRoot21.Author = list129; questRoot21.Interruptible = false; - num = 6; - List list130 = new List(num); - CollectionsMarshal.SetCount(list130, num); - Span span42 = CollectionsMarshal.AsSpan(list130); - ref QuestSequence reference87 = ref span42[0]; + index = 6; + List list130 = new List(index); + CollectionsMarshal.SetCount(list130, index); + Span span130 = CollectionsMarshal.AsSpan(list130); + num = 0; + ref QuestSequence reference87 = ref span130[num]; QuestSequence obj87 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span131[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -52327,7 +63163,8 @@ public static class AssemblyQuestLoader }; obj87.Steps = list131; reference87 = obj87; - ref QuestSequence reference88 = ref span42[1]; + num++; + ref QuestSequence reference88 = ref span130[num]; QuestSequence obj88 = new QuestSequence { Sequence = 1 @@ -52335,32 +63172,40 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1006267u, new Vector3(340.81018f, 34.269722f, 110.27698f), 137); + Span span132 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span132[index2] = new QuestStep(EInteractionType.Interact, 1006267u, new Vector3(340.81018f, 34.269722f, 110.27698f), 137); obj88.Steps = list132; reference88 = obj88; - ref QuestSequence reference89 = ref span42[2]; + num++; + ref QuestSequence reference89 = ref span130[num]; QuestSequence obj89 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - Span span43 = CollectionsMarshal.AsSpan(list133); - span43[0] = new QuestStep(EInteractionType.Interact, 1003588u, new Vector3(344.6859f, 31.889465f, 89.37195f), 137) + index2 = 4; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.Interact, 1003588u, new Vector3(344.6859f, 31.889465f, 89.37195f), 137) { TargetTerritoryId = (ushort)137 }; - span43[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) + num2++; + span133[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) { StopDistance = 5f, Aetheryte = EAetheryteLocation.EasternLaNosceaWineport }; - span43[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-272.5533f, 59.7689f, 176.81541f), 137); - span43[3] = new QuestStep(EInteractionType.Interact, 1006268u, new Vector3(-334.6151f, 69.69995f, 153.79565f), 137); + num2++; + span133[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-272.5533f, 59.7689f, 176.81541f), 137); + num2++; + span133[num2] = new QuestStep(EInteractionType.Interact, 1006268u, new Vector3(-334.6151f, 69.69995f, 153.79565f), 137); obj89.Steps = list133; reference89 = obj89; - ref QuestSequence reference90 = ref span42[3]; + num++; + ref QuestSequence reference90 = ref span130[num]; QuestSequence obj90 = new QuestSequence { Sequence = 3 @@ -52368,7 +63213,9 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - ref QuestStep reference91 = ref CollectionsMarshal.AsSpan(list134)[0]; + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + ref QuestStep reference91 = ref span134[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Duty, null, null, 137); DutyOptions obj91 = new DutyOptions { @@ -52377,21 +63224,26 @@ public static class AssemblyQuestLoader num3 = 1; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = "(boss 2) Will walk out of the boss arena to try and attack optional enemies on the upper level, thus resetting the boss and breaking the path"; + Span span135 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span135[index3] = "(boss 2) Will walk out of the boss arena to try and attack optional enemies on the upper level, thus resetting the boss and breaking the path"; obj91.Notes = list135; questStep2.DutyOptions = obj91; reference91 = questStep2; obj90.Steps = list134; reference90 = obj90; - ref QuestSequence reference92 = ref span42[4]; + num++; + ref QuestSequence reference92 = ref span130[num]; QuestSequence obj92 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1006268u, new Vector3(-334.6151f, 69.69995f, 153.79565f), 137) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.Interact, 1006268u, new Vector3(-334.6151f, 69.69995f, 153.79565f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -52404,7 +63256,8 @@ public static class AssemblyQuestLoader }; obj92.Steps = list136; reference92 = obj92; - ref QuestSequence reference93 = ref span42[5]; + num++; + ref QuestSequence reference93 = ref span130[num]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue @@ -52412,7 +63265,9 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; @@ -52425,21 +63280,26 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "JerryWester"; + Span span138 = CollectionsMarshal.AsSpan(list138); + index = 0; + span138[index] = "JerryWester"; questRoot22.Author = list138; - num = 3; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span44 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference94 = ref span44[0]; + index = 3; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + Span span139 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference94 = ref span139[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -52452,7 +63312,8 @@ public static class AssemblyQuestLoader }; obj94.Steps = list140; reference94 = obj94; - ref QuestSequence reference95 = ref span44[1]; + num++; + ref QuestSequence reference95 = ref span139[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 @@ -52460,18 +63321,23 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 1006306u, new Vector3(-25.864075f, 71.787285f, -36.78955f), 137); + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.Interact, 1006306u, new Vector3(-25.864075f, 71.787285f, -36.78955f), 137); obj95.Steps = list141; reference95 = obj95; - ref QuestSequence reference96 = ref span44[2]; + num++; + ref QuestSequence reference96 = ref span139[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); obj96.Steps = list142; reference96 = obj96; questRoot22.QuestSequence = list139; @@ -52481,13 +63347,16 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "JerryWester"; + Span span143 = CollectionsMarshal.AsSpan(list143); + index = 0; + span143[index] = "JerryWester"; questRoot23.Author = list143; - num = 3; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span45 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference97 = ref span45[0]; + index = 3; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + Span span144 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference97 = ref span144[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -52495,7 +63364,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -52508,20 +63379,24 @@ public static class AssemblyQuestLoader }; obj97.Steps = list145; reference97 = obj97; - ref QuestSequence reference98 = ref span45[1]; + num++; + ref QuestSequence reference98 = ref span144[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - Span span46 = CollectionsMarshal.AsSpan(list146); - span46[0] = new QuestStep(EInteractionType.Interact, 1006309u, new Vector3(-116.56372f, 86.051636f, -5.874817f), 137); - span46[1] = new QuestStep(EInteractionType.Interact, 1006308u, new Vector3(-42.98468f, 75.575645f, -55.069885f), 137); + index2 = 2; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.Interact, 1006309u, new Vector3(-116.56372f, 86.051636f, -5.874817f), 137); + num2++; + span146[num2] = new QuestStep(EInteractionType.Interact, 1006308u, new Vector3(-42.98468f, 75.575645f, -55.069885f), 137); obj98.Steps = list146; reference98 = obj98; - ref QuestSequence reference99 = ref span45[2]; + num++; + ref QuestSequence reference99 = ref span144[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -52529,7 +63404,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); obj99.Steps = list147; reference99 = obj99; questRoot23.QuestSequence = list144; @@ -52539,21 +63416,26 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; + Span span148 = CollectionsMarshal.AsSpan(list148); + index = 0; + span148[index] = "JerryWester"; questRoot24.Author = list148; - num = 3; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span47 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference100 = ref span47[0]; + index = 3; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + Span span149 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference100 = ref span149[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -52566,7 +63448,8 @@ public static class AssemblyQuestLoader }; obj100.Steps = list150; reference100 = obj100; - ref QuestSequence reference101 = ref span47[1]; + num++; + ref QuestSequence reference101 = ref span149[num]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -52574,18 +63457,23 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1006311u, new Vector3(26.504883f, 42.202568f, 251.75854f), 137); + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.Interact, 1006311u, new Vector3(26.504883f, 42.202568f, 251.75854f), 137); obj101.Steps = list151; reference101 = obj101; - ref QuestSequence reference102 = ref span47[2]; + num++; + ref QuestSequence reference102 = ref span149[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj102.Steps = list152; reference102 = obj102; questRoot24.QuestSequence = list149; @@ -52595,13 +63483,16 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - CollectionsMarshal.AsSpan(list153)[0] = "JerryWester"; + Span span153 = CollectionsMarshal.AsSpan(list153); + index = 0; + span153[index] = "JerryWester"; questRoot25.Author = list153; - num = 3; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - Span span48 = CollectionsMarshal.AsSpan(list154); - ref QuestSequence reference103 = ref span48[0]; + index = 3; + List list154 = new List(index); + CollectionsMarshal.SetCount(list154, index); + Span span154 = CollectionsMarshal.AsSpan(list154); + num = 0; + ref QuestSequence reference103 = ref span154[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -52609,7 +63500,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -52622,28 +63515,34 @@ public static class AssemblyQuestLoader }; obj103.Steps = list155; reference103 = obj103; - ref QuestSequence reference104 = ref span48[1]; + num++; + ref QuestSequence reference104 = ref span154[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - ref QuestStep reference105 = ref CollectionsMarshal.AsSpan(list156)[0]; + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + ref QuestStep reference105 = ref span156[num2]; QuestStep obj105 = new QuestStep(EInteractionType.Combat, null, new Vector3(-309.02634f, 44.280117f, 464.14f), 137) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = 136u; + index3 = 1; + List list157 = new List(index3); + CollectionsMarshal.SetCount(list157, index3); + Span span157 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span157[num3] = 136u; obj105.KillEnemyDataIds = list157; reference105 = obj105; obj104.Steps = list156; reference104 = obj104; - ref QuestSequence reference106 = ref span48[2]; + num++; + ref QuestSequence reference106 = ref span154[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -52651,7 +63550,9 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj106.Steps = list158; reference106 = obj106; questRoot25.QuestSequence = list154; @@ -52661,21 +63562,26 @@ public static class AssemblyQuestLoader num = 1; List list159 = new List(num); CollectionsMarshal.SetCount(list159, num); - CollectionsMarshal.AsSpan(list159)[0] = "JerryWester"; + Span span159 = CollectionsMarshal.AsSpan(list159); + index = 0; + span159[index] = "JerryWester"; questRoot26.Author = list159; - num = 3; - List list160 = new List(num); - CollectionsMarshal.SetCount(list160, num); - Span span49 = CollectionsMarshal.AsSpan(list160); - ref QuestSequence reference107 = ref span49[0]; + index = 3; + List list160 = new List(index); + CollectionsMarshal.SetCount(list160, index); + Span span160 = CollectionsMarshal.AsSpan(list160); + num = 0; + ref QuestSequence reference107 = ref span160[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + Span span161 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span161[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -52688,7 +63594,8 @@ public static class AssemblyQuestLoader }; obj107.Steps = list161; reference107 = obj107; - ref QuestSequence reference108 = ref span49[1]; + num++; + ref QuestSequence reference108 = ref span160[num]; QuestSequence obj108 = new QuestSequence { Sequence = 1 @@ -52696,81 +63603,112 @@ public static class AssemblyQuestLoader num2 = 4; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span50 = CollectionsMarshal.AsSpan(list162); - ref QuestStep reference109 = ref span50[0]; + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + ref QuestStep reference109 = ref span162[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2002059u, new Vector3(-282.88702f, 33.951294f, 308.24744f), 137); num3 = 6; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - Span span51 = CollectionsMarshal.AsSpan(list163); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span163 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span163[index3] = null; + index3++; + span163[index3] = null; + index3++; + span163[index3] = null; + index3++; + span163[index3] = null; + index3++; + span163[index3] = null; + index3++; + span163[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list163; reference109 = questStep3; - ref QuestStep reference110 = ref span50[1]; + index2++; + ref QuestStep reference110 = ref span162[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2002061u, new Vector3(-248.40167f, 33.98181f, 299.39722f), 137); - num3 = 6; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - Span span52 = CollectionsMarshal.AsSpan(list164); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + Span span164 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list164; reference110 = questStep4; - ref QuestStep reference111 = ref span50[2]; + index2++; + ref QuestStep reference111 = ref span162[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-301.2062f, 35.646942f, 273.47797f), 137); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list165 = new List(num3); CollectionsMarshal.SetCount(list165, num3); - Span span53 = CollectionsMarshal.AsSpan(list165); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span165 = CollectionsMarshal.AsSpan(list165); + index3 = 0; + span165[index3] = null; + index3++; + span165[index3] = null; + index3++; + span165[index3] = null; + index3++; + span165[index3] = null; + index3++; + span165[index3] = null; + index3++; + span165[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list165; skipConditions.StepIf = skipStepConditions; questStep5.SkipConditions = skipConditions; reference111 = questStep5; - ref QuestStep reference112 = ref span50[3]; + index2++; + ref QuestStep reference112 = ref span162[index2]; QuestStep obj109 = new QuestStep(EInteractionType.Interact, 2002060u, new Vector3(-298.2987f, 33.89026f, 276.53918f), 137) { StopDistance = 4.5f }; - num3 = 6; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - Span span54 = CollectionsMarshal.AsSpan(list166); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list166 = new List(index3); + CollectionsMarshal.SetCount(list166, index3); + Span span166 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj109.CompletionQuestVariablesFlags = list166; reference112 = obj109; obj108.Steps = list162; reference108 = obj108; - ref QuestSequence reference113 = ref span49[2]; + num++; + ref QuestSequence reference113 = ref span160[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; @@ -52787,13 +63725,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -52801,7 +63742,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -52814,18 +63757,22 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -52833,7 +63780,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + ref QuestStep reference4 = ref span5[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, 2002062u, new Vector3(-242.63379f, 45.212402f, 495.32312f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -52841,26 +63790,32 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = 1910u; + Span span6 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span6[index3] = 1910u; obj4.KillEnemyDataIds = list6; reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -52868,7 +63823,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; @@ -52881,21 +63838,26 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "JerryWester"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "JerryWester"; questRoot2.Author = list9; - num = 5; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span2 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span2[0]; + index = 5; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span10[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006676u, new Vector3(558.98376f, 20.706482f, 451.13293f), 137) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006676u, new Vector3(558.98376f, 20.706482f, 451.13293f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -52908,7 +63870,8 @@ public static class AssemblyQuestLoader }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span2[1]; + num++; + ref QuestSequence reference8 = ref span10[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -52916,21 +63879,27 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1006314u, new Vector3(534.8439f, 17.448048f, 450.98022f), 137); + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.Interact, 1006314u, new Vector3(534.8439f, 17.448048f, 450.98022f), 137); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span2[2]; + num++; + ref QuestSequence reference9 = ref span10[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 2002598u, new Vector3(524.6348f, 18.16839f, 457.1489f), 137); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.Interact, 2002598u, new Vector3(524.6348f, 18.16839f, 457.1489f), 137); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span2[3]; + num++; + ref QuestSequence reference10 = ref span10[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 @@ -52938,88 +63907,126 @@ public static class AssemblyQuestLoader num2 = 5; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span3 = CollectionsMarshal.AsSpan(list14); - ref QuestStep reference11 = ref span3[0]; + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + ref QuestStep reference11 = ref span14[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1006319u, new Vector3(523.03345f, 17.44805f, 454.5509f), 137); - num3 = 6; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span4 = CollectionsMarshal.AsSpan(list15); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - span4[5] = null; + index3 = 6; + List list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + Span span15 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num3++; + span15[num3] = null; questStep.CompletionQuestVariablesFlags = list15; reference11 = questStep; - ref QuestStep reference12 = ref span3[1]; + index2++; + ref QuestStep reference12 = ref span14[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1006318u, new Vector3(525.5055f, 17.448048f, 451.0719f), 137); num3 = 6; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span5 = CollectionsMarshal.AsSpan(list16); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span5[5] = null; + Span span16 = CollectionsMarshal.AsSpan(list16); + index3 = 0; + span16[index3] = null; + index3++; + span16[index3] = null; + index3++; + span16[index3] = null; + index3++; + span16[index3] = null; + index3++; + span16[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3++; + span16[index3] = null; questStep2.CompletionQuestVariablesFlags = list16; reference12 = questStep2; - ref QuestStep reference13 = ref span3[2]; + index2++; + ref QuestStep reference13 = ref span14[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1006317u, new Vector3(533.77576f, 17.654663f, 450.43103f), 137); - num3 = 6; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - Span span6 = CollectionsMarshal.AsSpan(list17); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span6[5] = null; + index3 = 6; + List list17 = new List(index3); + CollectionsMarshal.SetCount(list17, index3); + Span span17 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span17[num3] = null; + num3++; + span17[num3] = null; + num3++; + span17[num3] = null; + num3++; + span17[num3] = null; + num3++; + span17[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num3++; + span17[num3] = null; questStep3.CompletionQuestVariablesFlags = list17; reference13 = questStep3; - ref QuestStep reference14 = ref span3[3]; + index2++; + ref QuestStep reference14 = ref span14[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1006316u, new Vector3(560.38745f, 20.721313f, 457.02295f), 137); num3 = 6; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span7 = CollectionsMarshal.AsSpan(list18); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span7[5] = null; + Span span18 = CollectionsMarshal.AsSpan(list18); + index3 = 0; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3++; + span18[index3] = null; questStep4.CompletionQuestVariablesFlags = list18; reference14 = questStep4; - ref QuestStep reference15 = ref span3[4]; + index2++; + ref QuestStep reference15 = ref span14[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137); - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span8 = CollectionsMarshal.AsSpan(list19); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span8[5] = null; + index3 = 6; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num3++; + span19[num3] = null; questStep5.CompletionQuestVariablesFlags = list19; reference15 = questStep5; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference16 = ref span2[4]; + num++; + ref QuestSequence reference16 = ref span10[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006676u, new Vector3(558.98376f, 20.706482f, 451.13293f), 137) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006676u, new Vector3(558.98376f, 20.706482f, 451.13293f), 137) { StopDistance = 7f }; @@ -53032,13 +64039,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "JerryWester"; + Span span21 = CollectionsMarshal.AsSpan(list21); + index = 0; + span21[index] = "JerryWester"; questRoot3.Author = list21; - num = 3; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span9 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference17 = ref span9[0]; + index = 3; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + Span span22 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference17 = ref span22[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -53046,7 +64056,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -53059,70 +64071,95 @@ public static class AssemblyQuestLoader }; obj12.Steps = list23; reference17 = obj12; - ref QuestSequence reference18 = ref span9[1]; + num++; + ref QuestSequence reference18 = ref span22[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span10 = CollectionsMarshal.AsSpan(list24); - span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(76.605774f, 80.43136f, -119.52899f), 137) + index2 = 5; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(76.605774f, 80.43136f, -119.52899f), 137) { TargetTerritoryId = (ushort)139, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - ref QuestStep reference19 = ref span10[1]; + num2++; + ref QuestStep reference19 = ref span24[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2002085u, new Vector3(404.86768f, 4.3182373f, 88.45642f), 139); num3 = 6; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span11 = CollectionsMarshal.AsSpan(list25); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span25 = CollectionsMarshal.AsSpan(list25); + index3 = 0; + span25[index3] = null; + index3++; + span25[index3] = null; + index3++; + span25[index3] = null; + index3++; + span25[index3] = null; + index3++; + span25[index3] = null; + index3++; + span25[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list25; reference19 = questStep6; - span10[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 139) + num2++; + span24[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 139) { StopDistance = 5f, Aetheryte = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - ref QuestStep reference20 = ref span10[3]; + num2++; + ref QuestStep reference20 = ref span24[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2002084u, new Vector3(437.27783f, 8.194031f, 133.04333f), 139); - num3 = 6; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span12 = CollectionsMarshal.AsSpan(list26); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list26 = new List(index3); + CollectionsMarshal.SetCount(list26, index3); + Span span26 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list26; reference20 = questStep7; - ref QuestStep reference21 = ref span10[4]; + num2++; + ref QuestStep reference21 = ref span24[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2002083u, new Vector3(402.30408f, 8.712891f, 47.196045f), 139); num3 = 6; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span13 = CollectionsMarshal.AsSpan(list27); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span27 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + span27[index3] = null; + index3++; + span27[index3] = null; + index3++; + span27[index3] = null; + index3++; + span27[index3] = null; + index3++; + span27[index3] = null; + index3++; + span27[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list27; reference21 = questStep8; obj13.Steps = list24; reference18 = obj13; - ref QuestSequence reference22 = ref span9[2]; + num++; + ref QuestSequence reference22 = ref span22[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -53130,7 +64167,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006341u, new Vector3(479.39258f, 16.258692f, 128.37415f), 139) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006341u, new Vector3(479.39258f, 16.258692f, 128.37415f), 139) { StopDistance = 7f }; @@ -53143,21 +64182,26 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + span29[index] = "JerryWester"; questRoot4.Author = list29; - num = 4; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span14 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference23 = ref span14[0]; + index = 4; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + Span span30 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference23 = ref span30[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006341u, new Vector3(479.39258f, 16.258692f, 128.37415f), 139) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006341u, new Vector3(479.39258f, 16.258692f, 128.37415f), 139) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -53171,7 +64215,8 @@ public static class AssemblyQuestLoader }; obj15.Steps = list31; reference23 = obj15; - ref QuestSequence reference24 = ref span14[1]; + num++; + ref QuestSequence reference24 = ref span30[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -53179,18 +64224,23 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 2002086u, new Vector3(382.55884f, 25.253662f, -139.02502f), 139); + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.Interact, 2002086u, new Vector3(382.55884f, 25.253662f, -139.02502f), 139); obj16.Steps = list32; reference24 = obj16; - ref QuestSequence reference25 = ref span14[2]; + num++; + ref QuestSequence reference25 = ref span30[num]; QuestSequence obj17 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Duty, null, null, 139) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.Duty, null, null, 139) { DutyOptions = new DutyOptions { @@ -53200,7 +64250,8 @@ public static class AssemblyQuestLoader }; obj17.Steps = list33; reference25 = obj17; - ref QuestSequence reference26 = ref span14[3]; + num++; + ref QuestSequence reference26 = ref span30[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -53208,7 +64259,9 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006343u, new Vector3(427.63403f, 4.115109f, 85.92346f), 139); + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006343u, new Vector3(427.63403f, 4.115109f, 85.92346f), 139); obj18.Steps = list34; reference26 = obj18; questRoot4.QuestSequence = list30; @@ -53218,27 +64271,33 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "skiaz"; + Span span35 = CollectionsMarshal.AsSpan(list35); + index = 0; + span35[index] = "skiaz"; questRoot5.Author = list35; - num = 3; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span15 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference27 = ref span15[0]; + index = 3; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + Span span36 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference27 = ref span36[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { Fly = true }; obj19.Steps = list37; reference27 = obj19; - ref QuestSequence reference28 = ref span15[1]; + num++; + ref QuestSequence reference28 = ref span36[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -53246,27 +64305,36 @@ public static class AssemblyQuestLoader num2 = 6; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span16 = CollectionsMarshal.AsSpan(list38); - span16[0] = new QuestStep(EInteractionType.Interact, 2002339u, new Vector3(-134.59985f, 82.81067f, -293.4768f), 180) + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.Interact, 2002339u, new Vector3(-134.59985f, 82.81067f, -293.4768f), 180) { Fly = true }; - span16[1] = new QuestStep(EInteractionType.Interact, 2002341u, new Vector3(-137.22437f, 81.19324f, -299.39728f), 180); - span16[2] = new QuestStep(EInteractionType.Interact, 2002338u, new Vector3(-148.24146f, 81.589966f, -306.5691f), 180); - span16[3] = new QuestStep(EInteractionType.Interact, 2002342u, new Vector3(-138.0484f, 81.19324f, -311.29932f), 180); - span16[4] = new QuestStep(EInteractionType.Interact, 2002343u, new Vector3(-132.03638f, 82.07825f, -321.76703f), 180); - span16[5] = new QuestStep(EInteractionType.Interact, 2002340u, new Vector3(-116.014404f, 78.87378f, -315.08362f), 180); + index2++; + span38[index2] = new QuestStep(EInteractionType.Interact, 2002341u, new Vector3(-137.22437f, 81.19324f, -299.39728f), 180); + index2++; + span38[index2] = new QuestStep(EInteractionType.Interact, 2002338u, new Vector3(-148.24146f, 81.589966f, -306.5691f), 180); + index2++; + span38[index2] = new QuestStep(EInteractionType.Interact, 2002342u, new Vector3(-138.0484f, 81.19324f, -311.29932f), 180); + index2++; + span38[index2] = new QuestStep(EInteractionType.Interact, 2002343u, new Vector3(-132.03638f, 82.07825f, -321.76703f), 180); + index2++; + span38[index2] = new QuestStep(EInteractionType.Interact, 2002340u, new Vector3(-116.014404f, 78.87378f, -315.08362f), 180); obj20.Steps = list38; reference28 = obj20; - ref QuestSequence reference29 = ref span15[2]; + num++; + ref QuestSequence reference29 = ref span36[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { Fly = true, NextQuestId = new QuestId(863) @@ -53280,13 +64348,16 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "skiaz"; + Span span40 = CollectionsMarshal.AsSpan(list40); + index = 0; + span40[index] = "skiaz"; questRoot6.Author = list40; - num = 3; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span17 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference30 = ref span17[0]; + index = 3; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + Span span41 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference30 = ref span41[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -53294,30 +64365,37 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { Fly = true }; obj22.Steps = list42; reference30 = obj22; - ref QuestSequence reference31 = ref span17[1]; + num++; + ref QuestSequence reference31 = ref span41[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - ref QuestStep reference32 = ref CollectionsMarshal.AsSpan(list43)[0]; + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + ref QuestStep reference32 = ref span43[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, 2269u, new Vector3(-268.5741f, 64.49246f, -322.04163f), 180) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = 2269u; + index3 = 1; + List list44 = new List(index3); + CollectionsMarshal.SetCount(list44, index3); + Span span44 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span44[num3] = 2269u; obj24.KillEnemyDataIds = list44; obj24.CombatItemUse = new CombatItemUse { @@ -53328,7 +64406,8 @@ public static class AssemblyQuestLoader reference32 = obj24; obj23.Steps = list43; reference31 = obj23; - ref QuestSequence reference33 = ref span17[2]; + num++; + ref QuestSequence reference33 = ref span41[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -53336,7 +64415,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { Fly = true }; @@ -53349,21 +64430,26 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "JerryWester"; + Span span46 = CollectionsMarshal.AsSpan(list46); + index = 0; + span46[index] = "JerryWester"; questRoot7.Author = list46; - num = 7; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span18 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference34 = ref span18[0]; + index = 7; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + Span span47 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference34 = ref span47[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -53376,7 +64462,8 @@ public static class AssemblyQuestLoader }; obj26.Steps = list48; reference34 = obj26; - ref QuestSequence reference35 = ref span18[1]; + num++; + ref QuestSequence reference35 = ref span47[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -53384,83 +64471,115 @@ public static class AssemblyQuestLoader num2 = 2; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span19 = CollectionsMarshal.AsSpan(list49); - span19[0] = new QuestStep(EInteractionType.UseItem, null, null, 128) + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span49[index2] = new QuestStep(EInteractionType.UseItem, null, null, 128) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span19[1] = new QuestStep(EInteractionType.Interact, 1006361u, new Vector3(-495.964f, 19.009007f, -371.72504f), 140); + index2++; + span49[index2] = new QuestStep(EInteractionType.Interact, 1006361u, new Vector3(-495.964f, 19.009007f, -371.72504f), 140); obj27.Steps = list49; reference35 = obj27; - ref QuestSequence reference36 = ref span18[2]; + num++; + ref QuestSequence reference36 = ref span47[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - Span span20 = CollectionsMarshal.AsSpan(list50); - ref QuestStep reference37 = ref span20[0]; + index2 = 4; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + ref QuestStep reference37 = ref span50[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1006348u, new Vector3(-473.99103f, 19.027954f, -370.84003f), 140); num3 = 6; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - Span span21 = CollectionsMarshal.AsSpan(list51); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span21[5] = null; + Span span51 = CollectionsMarshal.AsSpan(list51); + index3 = 0; + span51[index3] = null; + index3++; + span51[index3] = null; + index3++; + span51[index3] = null; + index3++; + span51[index3] = null; + index3++; + span51[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3++; + span51[index3] = null; questStep9.CompletionQuestVariablesFlags = list51; reference37 = questStep9; - ref QuestStep reference38 = ref span20[1]; + num2++; + ref QuestStep reference38 = ref span50[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1006347u, new Vector3(-474.6319f, 19.027954f, -371.20624f), 140); - num3 = 6; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span22 = CollectionsMarshal.AsSpan(list52); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span22[5] = null; + index3 = 6; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num3++; + span52[num3] = null; questStep10.CompletionQuestVariablesFlags = list52; reference38 = questStep10; - ref QuestStep reference39 = ref span20[2]; + num2++; + ref QuestStep reference39 = ref span50[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1006346u, new Vector3(-475.97467f, 19.027954f, -370.65692f), 140); num3 = 6; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span23 = CollectionsMarshal.AsSpan(list53); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span23[5] = null; + Span span53 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = null; questStep11.CompletionQuestVariablesFlags = list53; reference39 = questStep11; - ref QuestStep reference40 = ref span20[3]; + num2++; + ref QuestStep reference40 = ref span50[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1006345u, new Vector3(-477.34802f, 19.027954f, -370.35175f), 140); - num3 = 6; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span24 = CollectionsMarshal.AsSpan(list54); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span24[5] = null; + index3 = 6; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + Span span54 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num3++; + span54[num3] = null; questStep12.CompletionQuestVariablesFlags = list54; reference40 = questStep12; obj28.Steps = list50; reference36 = obj28; - ref QuestSequence reference41 = ref span18[3]; + num++; + ref QuestSequence reference41 = ref span47[num]; QuestSequence obj29 = new QuestSequence { Sequence = 3 @@ -53468,24 +64587,28 @@ public static class AssemblyQuestLoader num2 = 2; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span25 = CollectionsMarshal.AsSpan(list55); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140); - span25[1] = new QuestStep(EInteractionType.Interact, 1006362u, new Vector3(-395.8954f, 23f, -353.6584f), 140) + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140); + index2++; + span55[index2] = new QuestStep(EInteractionType.Interact, 1006362u, new Vector3(-395.8954f, 23f, -353.6584f), 140) { DisableNavmesh = true }; obj29.Steps = list55; reference41 = obj29; - ref QuestSequence reference42 = ref span18[4]; + num++; + ref QuestSequence reference42 = ref span47[num]; QuestSequence obj30 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span26 = CollectionsMarshal.AsSpan(list56); - ref QuestStep reference43 = ref span26[0]; + index2 = 5; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + ref QuestStep reference43 = ref span56[num2]; QuestStep obj31 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140) { DisableNavmesh = true, @@ -53496,76 +64619,111 @@ public static class AssemblyQuestLoader num3 = 6; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span27 = CollectionsMarshal.AsSpan(list57); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span27[5] = null; + Span span57 = CollectionsMarshal.AsSpan(list57); + index3 = 0; + span57[index3] = null; + index3++; + span57[index3] = null; + index3++; + span57[index3] = null; + index3++; + span57[index3] = null; + index3++; + span57[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3++; + span57[index3] = null; skipStepConditions.CompletionQuestVariablesFlags = list57; skipConditions.StepIf = skipStepConditions; obj31.SkipConditions = skipConditions; reference43 = obj31; - ref QuestStep reference44 = ref span26[1]; + num2++; + ref QuestStep reference44 = ref span56[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1006344u, new Vector3(-474.57086f, 18.112427f, -372.5796f), 140); - num3 = 6; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - Span span28 = CollectionsMarshal.AsSpan(list58); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span28[5] = null; + index3 = 6; + List list58 = new List(index3); + CollectionsMarshal.SetCount(list58, index3); + Span span58 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + span58[num3] = null; + num3++; + span58[num3] = null; + num3++; + span58[num3] = null; + num3++; + span58[num3] = null; + num3++; + span58[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num3++; + span58[num3] = null; questStep13.CompletionQuestVariablesFlags = list58; reference44 = questStep13; - ref QuestStep reference45 = ref span26[2]; + num2++; + ref QuestStep reference45 = ref span56[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1006351u, new Vector3(-475.82214f, 18.966919f, -372.67108f), 140); num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span29 = CollectionsMarshal.AsSpan(list59); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span59 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list59; reference45 = questStep14; - ref QuestStep reference46 = ref span26[3]; + num2++; + ref QuestStep reference46 = ref span56[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1006350u, new Vector3(-476.55457f, 19.027954f, -372.91522f), 140); - num3 = 6; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span30 = CollectionsMarshal.AsSpan(list60); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list60 = new List(index3); + CollectionsMarshal.SetCount(list60, index3); + Span span60 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list60; reference46 = questStep15; - ref QuestStep reference47 = ref span26[4]; + num2++; + ref QuestStep reference47 = ref span56[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1006349u, new Vector3(-477.6532f, 19.027954f, -372.2744f), 140); num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span31 = CollectionsMarshal.AsSpan(list61); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span31[5] = null; + Span span61 = CollectionsMarshal.AsSpan(list61); + index3 = 0; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3++; + span61[index3] = null; questStep16.CompletionQuestVariablesFlags = list61; reference47 = questStep16; obj30.Steps = list56; reference42 = obj30; - ref QuestSequence reference48 = ref span18[5]; + num++; + ref QuestSequence reference48 = ref span47[num]; QuestSequence obj32 = new QuestSequence { Sequence = 5 @@ -53573,23 +64731,28 @@ public static class AssemblyQuestLoader num2 = 2; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span32 = CollectionsMarshal.AsSpan(list62); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140); - span32[1] = new QuestStep(EInteractionType.Interact, 1006362u, new Vector3(-395.8954f, 23f, -353.6584f), 140) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140); + index2++; + span62[index2] = new QuestStep(EInteractionType.Interact, 1006362u, new Vector3(-395.8954f, 23f, -353.6584f), 140) { DisableNavmesh = true }; obj32.Steps = list62; reference48 = obj32; - ref QuestSequence reference49 = ref span18[6]; + num++; + ref QuestSequence reference49 = ref span47[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; @@ -53602,13 +64765,16 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "JerryWester"; + Span span64 = CollectionsMarshal.AsSpan(list64); + index = 0; + span64[index] = "JerryWester"; questRoot8.Author = list64; - num = 3; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span33 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference50 = ref span33[0]; + index = 3; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + Span span65 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference50 = ref span65[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -53616,7 +64782,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span66[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -53629,21 +64797,25 @@ public static class AssemblyQuestLoader }; obj34.Steps = list66; reference50 = obj34; - ref QuestSequence reference51 = ref span33[1]; + num++; + ref QuestSequence reference51 = ref span65[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj35.Steps = list67; reference51 = obj35; - ref QuestSequence reference52 = ref span33[2]; + num++; + ref QuestSequence reference52 = ref span65[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue @@ -53651,7 +64823,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; @@ -53664,21 +64838,26 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "JerryWester"; + Span span69 = CollectionsMarshal.AsSpan(list69); + index = 0; + span69[index] = "JerryWester"; questRoot9.Author = list69; - num = 3; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span34 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference53 = ref span34[0]; + index = 3; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + Span span70 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference53 = ref span70[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -53691,7 +64870,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list71; reference53 = obj37; - ref QuestSequence reference54 = ref span34[1]; + num++; + ref QuestSequence reference54 = ref span70[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 @@ -53699,21 +64879,26 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span72[index2] = new QuestStep(EInteractionType.Interact, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj38.Steps = list72; reference54 = obj38; - ref QuestSequence reference55 = ref span34[2]; + num++; + ref QuestSequence reference55 = ref span70[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006371u, new Vector3(-301.04523f, -13.60442f, 198.44348f), 154); + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006371u, new Vector3(-301.04523f, -13.60442f, 198.44348f), 154); obj39.Steps = list73; reference55 = obj39; questRoot9.QuestSequence = list70; @@ -53723,13 +64908,16 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "JerryWester"; + Span span74 = CollectionsMarshal.AsSpan(list74); + index = 0; + span74[index] = "JerryWester"; questRoot10.Author = list74; - num = 2; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span35 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference56 = ref span35[0]; + index = 2; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + Span span75 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference56 = ref span75[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -53737,7 +64925,9 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006371u, new Vector3(-301.04523f, -13.60442f, 198.44348f), 154) + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006371u, new Vector3(-301.04523f, -13.60442f, 198.44348f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -53750,17 +64940,20 @@ public static class AssemblyQuestLoader }; obj40.Steps = list76; reference56 = obj40; - ref QuestSequence reference57 = ref span35[1]; + num++; + ref QuestSequence reference57 = ref span75[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - Span span36 = CollectionsMarshal.AsSpan(list77); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-372.23636f, -2.92979f, 178.26855f), 154); - span36[1] = new QuestStep(EInteractionType.CompleteQuest, 1006372u, new Vector3(171.52661f, 222.69258f, 355.48938f), 155); + index2 = 2; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-372.23636f, -2.92979f, 178.26855f), 154); + num2++; + span77[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006372u, new Vector3(171.52661f, 222.69258f, 355.48938f), 155); obj41.Steps = list77; reference57 = obj41; questRoot10.QuestSequence = list75; @@ -53770,13 +64963,16 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - CollectionsMarshal.AsSpan(list78)[0] = "croizat"; + Span span78 = CollectionsMarshal.AsSpan(list78); + index = 0; + span78[index] = "croizat"; questRoot11.Author = list78; - num = 3; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - Span span37 = CollectionsMarshal.AsSpan(list79); - ref QuestSequence reference58 = ref span37[0]; + index = 3; + List list79 = new List(index); + CollectionsMarshal.SetCount(list79, index); + Span span79 = CollectionsMarshal.AsSpan(list79); + num = 0; + ref QuestSequence reference58 = ref span79[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -53784,32 +64980,40 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006375u, new Vector3(-296.65063f, -13.630577f, 197.34485f), 154); + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006375u, new Vector3(-296.65063f, -13.630577f, 197.34485f), 154); obj42.Steps = list80; reference58 = obj42; - ref QuestSequence reference59 = ref span37[1]; + num++; + ref QuestSequence reference59 = ref span79[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list81)[0]; + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + ref QuestStep reference60 = ref span81[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, 2002106u, new Vector3(-282.03253f, -54.24591f, 285.99976f), 154) { ItemId = 2000690u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = 138u; + index3 = 1; + List list82 = new List(index3); + CollectionsMarshal.SetCount(list82, index3); + Span span82 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span82[num3] = 138u; obj44.KillEnemyDataIds = list82; reference60 = obj44; obj43.Steps = list81; reference59 = obj43; - ref QuestSequence reference61 = ref span37[2]; + num++; + ref QuestSequence reference61 = ref span79[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -53817,7 +65021,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006375u, new Vector3(-296.65063f, -13.630577f, 197.34485f), 154); + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006375u, new Vector3(-296.65063f, -13.630577f, 197.34485f), 154); obj45.Steps = list83; reference61 = obj45; questRoot11.QuestSequence = list79; @@ -53827,24 +65033,30 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "JerryWester"; + Span span84 = CollectionsMarshal.AsSpan(list84); + index = 0; + span84[index] = "JerryWester"; questRoot12.Author = list84; - num = 5; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span38 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference62 = ref span38[0]; + index = 5; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference62 = ref span85[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006372u, new Vector3(171.52661f, 222.69258f, 355.48938f), 155); + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006372u, new Vector3(171.52661f, 222.69258f, 355.48938f), 155); obj46.Steps = list86; reference62 = obj46; - ref QuestSequence reference63 = ref span38[1]; + num++; + ref QuestSequence reference63 = ref span85[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -53852,8 +65064,9 @@ public static class AssemblyQuestLoader num2 = 2; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span39 = CollectionsMarshal.AsSpan(list87); - ref QuestStep reference64 = ref span39[0]; + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + ref QuestStep reference64 = ref span87[index2]; QuestStep obj48 = new QuestStep(EInteractionType.Combat, null, new Vector3(48.65701f, 234.78163f, 348.13953f), 155) { StopDistance = 1f, @@ -53862,26 +65075,33 @@ public static class AssemblyQuestLoader num3 = 2; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - Span span40 = CollectionsMarshal.AsSpan(list88); - span40[0] = 724u; - span40[1] = 725u; + Span span88 = CollectionsMarshal.AsSpan(list88); + index3 = 0; + span88[index3] = 724u; + index3++; + span88[index3] = 725u; obj48.KillEnemyDataIds = list88; reference64 = obj48; - span39[1] = new QuestStep(EInteractionType.Interact, 1006731u, new Vector3(52.231567f, 235.30933f, 347.85986f), 155); + index2++; + span87[index2] = new QuestStep(EInteractionType.Interact, 1006731u, new Vector3(52.231567f, 235.30933f, 347.85986f), 155); obj47.Steps = list87; reference63 = obj47; - ref QuestSequence reference65 = ref span38[2]; + num++; + ref QuestSequence reference65 = ref span85[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1006372u, new Vector3(171.52661f, 222.69258f, 355.48938f), 155); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.Interact, 1006372u, new Vector3(171.52661f, 222.69258f, 355.48938f), 155); obj49.Steps = list89; reference65 = obj49; - ref QuestSequence reference66 = ref span38[3]; + num++; + ref QuestSequence reference66 = ref span85[num]; QuestSequence obj50 = new QuestSequence { Sequence = 3 @@ -53889,18 +65109,23 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1006376u, new Vector3(195.3612f, 234.79839f, 419.3026f), 155); + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.Interact, 1006376u, new Vector3(195.3612f, 234.79839f, 419.3026f), 155); obj50.Steps = list90; reference66 = obj50; - ref QuestSequence reference67 = ref span38[4]; + num++; + ref QuestSequence reference67 = ref span85[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006377u, new Vector3(200.97656f, 293.33f, 420.37073f), 155); + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span91[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006377u, new Vector3(200.97656f, 293.33f, 420.37073f), 155); obj51.Steps = list91; reference67 = obj51; questRoot12.QuestSequence = list85; @@ -53910,13 +65135,16 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "JerryWester"; + Span span92 = CollectionsMarshal.AsSpan(list92); + index = 0; + span92[index] = "JerryWester"; questRoot13.Author = list92; - num = 4; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span41 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference68 = ref span41[0]; + index = 4; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + Span span93 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference68 = ref span93[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -53924,24 +65152,30 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155) + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155) { StopDistance = 7f }; obj52.Steps = list94; reference68 = obj52; - ref QuestSequence reference69 = ref span41[1]; + num++; + ref QuestSequence reference69 = ref span93[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1006379u, new Vector3(538.4756f, 235.2618f, 317.1587f), 155); + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.Interact, 1006379u, new Vector3(538.4756f, 235.2618f, 317.1587f), 155); obj53.Steps = list95; reference69 = obj53; - ref QuestSequence reference70 = ref span41[2]; + num++; + ref QuestSequence reference70 = ref span93[num]; QuestSequence obj54 = new QuestSequence { Sequence = 2 @@ -53949,18 +65183,23 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155); + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.Interact, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155); obj54.Steps = list96; reference70 = obj54; - ref QuestSequence reference71 = ref span41[3]; + num++; + ref QuestSequence reference71 = ref span93[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155); + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span97[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155); obj55.Steps = list97; reference71 = obj55; questRoot13.QuestSequence = list93; @@ -53970,13 +65209,16 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "JerryWester"; + Span span98 = CollectionsMarshal.AsSpan(list98); + index = 0; + span98[index] = "JerryWester"; questRoot14.Author = list98; - num = 3; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span42 = CollectionsMarshal.AsSpan(list99); - ref QuestSequence reference72 = ref span42[0]; + index = 3; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + Span span99 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference72 = ref span99[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -53984,92 +65226,127 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155); + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155); obj56.Steps = list100; reference72 = obj56; - ref QuestSequence reference73 = ref span42[1]; + num++; + ref QuestSequence reference73 = ref span99[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - Span span43 = CollectionsMarshal.AsSpan(list101); - ref QuestStep reference74 = ref span43[0]; + index2 = 4; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + ref QuestStep reference74 = ref span101[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2002111u, new Vector3(24.12439f, 207.599f, 427.35938f), 155); - num3 = 6; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - Span span44 = CollectionsMarshal.AsSpan(list102); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list102 = new List(index3); + CollectionsMarshal.SetCount(list102, index3); + Span span102 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list102; reference74 = questStep17; - ref QuestStep reference75 = ref span43[1]; + num2++; + ref QuestStep reference75 = ref span101[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2002110u, new Vector3(11.886719f, 207.20227f, 439.1698f), 155); num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - Span span45 = CollectionsMarshal.AsSpan(list103); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span103 = CollectionsMarshal.AsSpan(list103); + index3 = 0; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list103; reference75 = questStep18; - ref QuestStep reference76 = ref span43[2]; + num2++; + ref QuestStep reference76 = ref span101[num2]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, 2002261u, new Vector3(4.196167f, 206.19507f, 465.9646f), 155) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - Span span46 = CollectionsMarshal.AsSpan(list104); - span46[0] = 724u; - span46[1] = 725u; - span46[2] = 726u; + index3 = 3; + List list104 = new List(index3); + CollectionsMarshal.SetCount(list104, index3); + Span span104 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span104[num3] = 724u; + num3++; + span104[num3] = 725u; + num3++; + span104[num3] = 726u; obj58.KillEnemyDataIds = list104; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span47 = CollectionsMarshal.AsSpan(list105); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span105 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list105; skipConditions2.StepIf = skipStepConditions2; obj58.SkipConditions = skipConditions2; reference76 = obj58; - ref QuestStep reference77 = ref span43[3]; + num2++; + ref QuestStep reference77 = ref span101[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2002261u, new Vector3(4.196167f, 206.19507f, 465.9646f), 155); - num3 = 6; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span48 = CollectionsMarshal.AsSpan(list106); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list106 = new List(index3); + CollectionsMarshal.SetCount(list106, index3); + Span span106 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list106; reference77 = questStep19; obj57.Steps = list101; reference73 = obj57; - ref QuestSequence reference78 = ref span42[2]; + num++; + ref QuestSequence reference78 = ref span99[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -54077,7 +65354,9 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155) + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155) { StopDistance = 2f }; @@ -54090,27 +65369,33 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "JerryWester"; + Span span108 = CollectionsMarshal.AsSpan(list108); + index = 0; + span108[index] = "JerryWester"; questRoot15.Author = list108; - num = 3; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span49 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference79 = ref span49[0]; + index = 3; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + Span span109 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference79 = ref span109[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006382u, new Vector3(165.20935f, 222.99998f, 367.72717f), 155) + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span110[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006382u, new Vector3(165.20935f, 222.99998f, 367.72717f), 155) { StopDistance = 7f }; obj60.Steps = list110; reference79 = obj60; - ref QuestSequence reference80 = ref span49[1]; + num++; + ref QuestSequence reference80 = ref span109[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 @@ -54118,12 +65403,16 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list111)[0]; + Span span111 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + ref QuestStep reference81 = ref span111[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1006383u, new Vector3(138.87231f, 285.06497f, 175.21924f), 155); num3 = 1; List list112 = new List(num3); CollectionsMarshal.SetCount(list112, num3); - CollectionsMarshal.AsSpan(list112)[0] = new DialogueChoice + Span span112 = CollectionsMarshal.AsSpan(list112); + index3 = 0; + span112[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_GAIUSB608_00890_Q1_000_020"), @@ -54133,21 +65422,24 @@ public static class AssemblyQuestLoader reference81 = questStep20; obj61.Steps = list111; reference80 = obj61; - ref QuestSequence reference82 = ref span49[2]; + num++; + ref QuestSequence reference82 = ref span109[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - Span span50 = CollectionsMarshal.AsSpan(list113); - span50[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 155) + index2 = 2; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 155) { StopDistance = 5f, Aetheryte = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span50[1] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + num2++; + span113[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj62.Steps = list113; reference82 = obj62; questRoot15.QuestSequence = list109; @@ -54157,13 +65449,16 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "JerryWester"; + Span span114 = CollectionsMarshal.AsSpan(list114); + index = 0; + span114[index] = "JerryWester"; questRoot16.Author = list114; - num = 3; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span51 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference83 = ref span51[0]; + index = 3; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + Span span115 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference83 = ref span115[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -54171,7 +65466,9 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -54184,31 +65481,41 @@ public static class AssemblyQuestLoader }; obj63.Steps = list116; reference83 = obj63; - ref QuestSequence reference84 = ref span51[1]; + num++; + ref QuestSequence reference84 = ref span115[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - Span span52 = CollectionsMarshal.AsSpan(list117); - ref QuestStep reference85 = ref span52[0]; + index2 = 7; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + ref QuestStep reference85 = ref span117[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1006395u, new Vector3(206.86658f, 303.115f, -296.2539f), 155); - num3 = 6; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - Span span53 = CollectionsMarshal.AsSpan(list118); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list118 = new List(index3); + CollectionsMarshal.SetCount(list118, index3); + Span span118 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list118; reference85 = questStep21; - span52[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.61038f, 256.0028f, 83.6889f), 155); - ref QuestStep reference86 = ref span52[2]; + num2++; + span117[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.61038f, 256.0028f, 83.6889f), 155); + num2++; + ref QuestStep reference86 = ref span117[num2]; QuestStep obj65 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.30511f, 256.99997f, 76.41981f), 155) { DisableNavmesh = true @@ -54218,56 +65525,79 @@ public static class AssemblyQuestLoader num3 = 6; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - Span span54 = CollectionsMarshal.AsSpan(list119); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span119 = CollectionsMarshal.AsSpan(list119); + index3 = 0; + span119[index3] = null; + index3++; + span119[index3] = null; + index3++; + span119[index3] = null; + index3++; + span119[index3] = null; + index3++; + span119[index3] = null; + index3++; + span119[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list119; skipConditions3.StepIf = skipStepConditions3; obj65.SkipConditions = skipConditions3; reference86 = obj65; - ref QuestStep reference87 = ref span52[3]; + num2++; + ref QuestStep reference87 = ref span117[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1006396u, new Vector3(193.1029f, 257f, 57.87744f), 155); - num3 = 6; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span55 = CollectionsMarshal.AsSpan(list120); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list120 = new List(index3); + CollectionsMarshal.SetCount(list120, index3); + Span span120 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + span120[num3] = null; + num3++; + span120[num3] = null; + num3++; + span120[num3] = null; + num3++; + span120[num3] = null; + num3++; + span120[num3] = null; + num3++; + span120[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list120; reference87 = questStep22; - span52[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.30511f, 256.99997f, 76.41981f), 155) + num2++; + span117[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.30511f, 256.99997f, 76.41981f), 155) { Mount = true }; - span52[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.61038f, 256.0028f, 83.6889f), 155) + num2++; + span117[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.61038f, 256.0028f, 83.6889f), 155) { DisableNavmesh = true }; - ref QuestStep reference88 = ref span52[6]; + num2++; + ref QuestStep reference88 = ref span117[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1006377u, new Vector3(200.97656f, 293.33f, 420.37073f), 155); num3 = 6; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - Span span56 = CollectionsMarshal.AsSpan(list121); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span121 = CollectionsMarshal.AsSpan(list121); + index3 = 0; + span121[index3] = null; + index3++; + span121[index3] = null; + index3++; + span121[index3] = null; + index3++; + span121[index3] = null; + index3++; + span121[index3] = null; + index3++; + span121[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list121; reference88 = questStep23; obj64.Steps = list117; reference84 = obj64; - ref QuestSequence reference89 = ref span51[2]; + num++; + ref QuestSequence reference89 = ref span115[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -54275,7 +65605,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; @@ -54292,13 +65624,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -54306,7 +65641,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -54319,15 +65656,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, 1006407u, new Vector3(224.01758f, 355.34894f, -554.8334f), 155) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -54335,12 +65675,15 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 1904u; + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = 1904u; obj3.KillEnemyDataIds = list5; reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -54348,63 +65691,88 @@ public static class AssemblyQuestLoader num2 = 3; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span2 = CollectionsMarshal.AsSpan(list6); - ref QuestStep reference5 = ref span2[0]; + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + ref QuestStep reference5 = ref span6[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1006410u, new Vector3(232.8112f, 357.38858f, -567.4722f), 155); - num3 = 6; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list7; reference5 = questStep; - ref QuestStep reference6 = ref span2[1]; + index2++; + ref QuestStep reference6 = ref span6[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1006408u, new Vector3(212.57336f, 361.0884f, -586.9078f), 155); num3 = 6; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span4 = CollectionsMarshal.AsSpan(list8); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span8 = CollectionsMarshal.AsSpan(list8); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list8; reference6 = questStep2; - ref QuestStep reference7 = ref span2[2]; + index2++; + ref QuestStep reference7 = ref span6[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1006409u, new Vector3(189.50183f, 359.89996f, -590.20374f), 155); - num3 = 6; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + Span span9 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list9; reference7 = questStep3; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference8 = ref span[3]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1006407u, new Vector3(224.01758f, 355.34894f, -554.8334f), 155); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.Interact, 1006407u, new Vector3(224.01758f, 355.34894f, -554.8334f), 155); obj5.Steps = list10; reference8 = obj5; - ref QuestSequence reference9 = ref span[4]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -54412,7 +65780,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; @@ -54425,21 +65795,26 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "JerryWester"; + Span span12 = CollectionsMarshal.AsSpan(list12); + index = 0; + span12[index] = "JerryWester"; questRoot2.Author = list12; - num = 6; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span6 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference10 = ref span6[0]; + index = 6; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference10 = ref span13[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -54452,7 +65827,8 @@ public static class AssemblyQuestLoader }; obj7.Steps = list14; reference10 = obj7; - ref QuestSequence reference11 = ref span6[1]; + num++; + ref QuestSequence reference11 = ref span13[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -54460,24 +65836,30 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1006412u, new Vector3(282.30713f, 255.013f, 91.26416f), 155); + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.Interact, 1006412u, new Vector3(282.30713f, 255.013f, 91.26416f), 155); obj8.Steps = list15; reference11 = obj8; - ref QuestSequence reference12 = ref span6[2]; + num++; + ref QuestSequence reference12 = ref span13[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1006413u, new Vector3(209.09436f, 302f, -190.1427f), 155) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.Interact, 1006413u, new Vector3(209.09436f, 302f, -190.1427f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj9.Steps = list16; reference12 = obj9; - ref QuestSequence reference13 = ref span6[3]; + num++; + ref QuestSequence reference13 = ref span13[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 @@ -54485,63 +65867,88 @@ public static class AssemblyQuestLoader num2 = 3; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span7 = CollectionsMarshal.AsSpan(list17); - ref QuestStep reference14 = ref span7[0]; + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + ref QuestStep reference14 = ref span17[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2002139u, new Vector3(208.05664f, 301.9912f, -193.59125f), 155); num3 = 6; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span8 = CollectionsMarshal.AsSpan(list18); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span8[5] = null; + Span span18 = CollectionsMarshal.AsSpan(list18); + index3 = 0; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3++; + span18[index3] = null; questStep4.CompletionQuestVariablesFlags = list18; reference14 = questStep4; - ref QuestStep reference15 = ref span7[1]; + index2++; + ref QuestStep reference15 = ref span17[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2002140u, new Vector3(210.00989f, 301.9912f, -193.22504f), 155); - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span9 = CollectionsMarshal.AsSpan(list19); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span9[5] = null; + index3 = 6; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num3++; + span19[num3] = null; questStep5.CompletionQuestVariablesFlags = list19; reference15 = questStep5; - ref QuestStep reference16 = ref span7[2]; + index2++; + ref QuestStep reference16 = ref span17[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2002141u, new Vector3(212.05457f, 301.9912f, -193.65228f), 155); num3 = 6; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span10 = CollectionsMarshal.AsSpan(list20); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span10[5] = null; + Span span20 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3++; + span20[index3] = null; questStep6.CompletionQuestVariablesFlags = list20; reference16 = questStep6; obj10.Steps = list17; reference13 = obj10; - ref QuestSequence reference17 = ref span6[4]; + num++; + ref QuestSequence reference17 = ref span13[num]; QuestSequence obj11 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 1006413u, new Vector3(209.09436f, 302f, -190.1427f), 155); + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.Interact, 1006413u, new Vector3(209.09436f, 302f, -190.1427f), 155); obj11.Steps = list21; reference17 = obj11; - ref QuestSequence reference18 = ref span6[5]; + num++; + ref QuestSequence reference18 = ref span13[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -54549,7 +65956,9 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj12.Steps = list22; reference18 = obj12; questRoot2.QuestSequence = list13; @@ -54559,21 +65968,26 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "JerryWester"; + Span span23 = CollectionsMarshal.AsSpan(list23); + index = 0; + span23[index] = "JerryWester"; questRoot3.Author = list23; - num = 5; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span11 = CollectionsMarshal.AsSpan(list24); - ref QuestSequence reference19 = ref span11[0]; + index = 5; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + Span span24 = CollectionsMarshal.AsSpan(list24); + num = 0; + ref QuestSequence reference19 = ref span24[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -54586,7 +66000,8 @@ public static class AssemblyQuestLoader }; obj13.Steps = list25; reference19 = obj13; - ref QuestSequence reference20 = ref span11[1]; + num++; + ref QuestSequence reference20 = ref span24[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -54594,21 +66009,27 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1006415u, new Vector3(238.30005f, 312f, -227.00854f), 155); + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.Interact, 1006415u, new Vector3(238.30005f, 312f, -227.00854f), 155); obj14.Steps = list26; reference20 = obj14; - ref QuestSequence reference21 = ref span11[2]; + num++; + ref QuestSequence reference21 = ref span24[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj15.Steps = list27; reference21 = obj15; - ref QuestSequence reference22 = ref span11[3]; + num++; + ref QuestSequence reference22 = ref span24[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -54616,7 +66037,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006416u, new Vector3(445.0598f, 304.93317f, -258.56415f), 155) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006416u, new Vector3(445.0598f, 304.93317f, -258.56415f), 155) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -54625,15 +66048,18 @@ public static class AssemblyQuestLoader }; obj16.Steps = list28; reference22 = obj16; - ref QuestSequence reference23 = ref span11[4]; + num++; + ref QuestSequence reference23 = ref span24[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; @@ -54646,13 +66072,16 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "Friendly"; + Span span30 = CollectionsMarshal.AsSpan(list30); + index = 0; + span30[index] = "Friendly"; questRoot4.Author = list30; - num = 3; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span12 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference24 = ref span12[0]; + index = 3; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + Span span31 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference24 = ref span31[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -54660,7 +66089,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list32)[0]; + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference25 = ref span32[index2]; QuestStep obj19 = new QuestStep(EInteractionType.AcceptQuest, 1006440u, new Vector3(140.3982f, 4f, -54.154297f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -54675,10 +66106,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = 130; + index3 = 1; + List list33 = new List(index3); + CollectionsMarshal.SetCount(list33, index3); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = 130; obj20.InTerritory = list33; skipConditions.AetheryteShortcutIf = obj20; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition @@ -54689,22 +66122,26 @@ public static class AssemblyQuestLoader reference25 = obj19; obj18.Steps = list32; reference24 = obj18; - ref QuestSequence reference26 = ref span12[1]; + num++; + ref QuestSequence reference26 = ref span31[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.UseItem, 2001019u, new Vector3(-276.60034f, -3.7995605f, -368.76483f), 141) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.UseItem, 2001019u, new Vector3(-276.60034f, -3.7995605f, -368.76483f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, ItemId = 2000715u }; obj21.Steps = list34; reference26 = obj21; - ref QuestSequence reference27 = ref span12[2]; + num++; + ref QuestSequence reference27 = ref span31[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -54712,7 +66149,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007818u, new Vector3(-282.88702f, -5.987557f, -372.64062f), 141); + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007818u, new Vector3(-282.88702f, -5.987557f, -372.64062f), 141); obj22.Steps = list35; reference27 = obj22; questRoot4.QuestSequence = list31; @@ -54722,21 +66161,26 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "JerryWester"; + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "JerryWester"; questRoot5.Author = list36; - num = 5; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span13 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference28 = ref span13[0]; + index = 5; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference28 = ref span37[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006435u, new Vector3(-478.26355f, 211f, -203.81476f), 155) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006435u, new Vector3(-478.26355f, 211f, -203.81476f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -54749,7 +66193,8 @@ public static class AssemblyQuestLoader }; obj23.Steps = list38; reference28 = obj23; - ref QuestSequence reference29 = ref span13[1]; + num++; + ref QuestSequence reference29 = ref span37[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 @@ -54757,21 +66202,27 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1006441u, new Vector3(-414.45032f, 211.45752f, -294.48395f), 155); + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.Interact, 1006441u, new Vector3(-414.45032f, 211.45752f, -294.48395f), 155); obj24.Steps = list39; reference29 = obj24; - ref QuestSequence reference30 = ref span13[2]; + num++; + ref QuestSequence reference30 = ref span37[num]; QuestSequence obj25 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1006442u, new Vector3(-417.92938f, 224.99995f, -301.89978f), 155); + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.Interact, 1006442u, new Vector3(-417.92938f, 224.99995f, -301.89978f), 155); obj25.Steps = list40; reference30 = obj25; - ref QuestSequence reference31 = ref span13[3]; + num++; + ref QuestSequence reference31 = ref span37[num]; QuestSequence obj26 = new QuestSequence { Sequence = 3 @@ -54779,18 +66230,23 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1006443u, new Vector3(-434.95844f, 224.39996f, -199.45074f), 155); + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.Interact, 1006443u, new Vector3(-434.95844f, 224.39996f, -199.45074f), 155); obj26.Steps = list41; reference31 = obj26; - ref QuestSequence reference32 = ref span13[4]; + num++; + ref QuestSequence reference32 = ref span37[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); obj27.Steps = list42; reference32 = obj27; questRoot5.QuestSequence = list37; @@ -54800,13 +66256,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; + Span span43 = CollectionsMarshal.AsSpan(list43); + index = 0; + span43[index] = "JerryWester"; questRoot6.Author = list43; - num = 6; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span14 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference33 = ref span14[0]; + index = 6; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + Span span44 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference33 = ref span44[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 @@ -54814,7 +66273,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155) { Mount = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -54828,15 +66289,18 @@ public static class AssemblyQuestLoader }; obj28.Steps = list45; reference33 = obj28; - ref QuestSequence reference34 = ref span14[1]; + num++; + ref QuestSequence reference34 = ref span44[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list46)[0]; + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + ref QuestStep reference35 = ref span46[num2]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, 2002158u, new Vector3(-424.24664f, 279.0111f, 89.58569f), 155) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -54844,7 +66308,9 @@ public static class AssemblyQuestLoader num3 = 1; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new ComplexCombatData + Span span47 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span47[index3] = new ComplexCombatData { DataId = 2196u }; @@ -54858,7 +66324,8 @@ public static class AssemblyQuestLoader reference35 = obj30; obj29.Steps = list46; reference34 = obj29; - ref QuestSequence reference36 = ref span14[2]; + num++; + ref QuestSequence reference36 = ref span44[num]; QuestSequence obj31 = new QuestSequence { Sequence = 2 @@ -54866,66 +66333,91 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155); + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.Interact, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155); obj31.Steps = list48; reference36 = obj31; - ref QuestSequence reference37 = ref span14[3]; + num++; + ref QuestSequence reference37 = ref span44[num]; QuestSequence obj32 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span15 = CollectionsMarshal.AsSpan(list49); - ref QuestStep reference38 = ref span15[0]; + index2 = 3; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref QuestStep reference38 = ref span49[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1006450u, new Vector3(-429.22107f, 211f, -201.7091f), 155) { StopDistance = 5f }; - num3 = 6; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - Span span16 = CollectionsMarshal.AsSpan(list50); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + Span span50 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span50[num3] = null; + num3++; + span50[num3] = null; + num3++; + span50[num3] = null; + num3++; + span50[num3] = null; + num3++; + span50[num3] = null; + num3++; + span50[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj33.CompletionQuestVariablesFlags = list50; reference38 = obj33; - ref QuestStep reference39 = ref span15[1]; + num2++; + ref QuestStep reference39 = ref span49[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1006449u, new Vector3(-436.51483f, 211.01697f, -204.18103f), 155); num3 = 6; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - Span span17 = CollectionsMarshal.AsSpan(list51); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span51 = CollectionsMarshal.AsSpan(list51); + index3 = 0; + span51[index3] = null; + index3++; + span51[index3] = null; + index3++; + span51[index3] = null; + index3++; + span51[index3] = null; + index3++; + span51[index3] = null; + index3++; + span51[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list51; reference39 = questStep7; - ref QuestStep reference40 = ref span15[2]; + num2++; + ref QuestStep reference40 = ref span49[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1006451u, new Vector3(-432.2118f, 224.39995f, -197.83319f), 155); - num3 = 6; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span18 = CollectionsMarshal.AsSpan(list52); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list52; reference40 = questStep8; obj32.Steps = list49; reference37 = obj32; - ref QuestSequence reference41 = ref span14[4]; + num++; + ref QuestSequence reference41 = ref span44[num]; QuestSequence obj34 = new QuestSequence { Sequence = 4 @@ -54933,18 +66425,23 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155); + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.Interact, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155); obj34.Steps = list53; reference41 = obj34; - ref QuestSequence reference42 = ref span14[5]; + num++; + ref QuestSequence reference42 = ref span44[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007567u, new Vector3(-411.64264f, 225.02267f, -304.036f), 155); + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007567u, new Vector3(-411.64264f, 225.02267f, -304.036f), 155); obj35.Steps = list54; reference42 = obj35; questRoot6.QuestSequence = list44; @@ -54954,13 +66451,16 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "JerryWester"; + Span span55 = CollectionsMarshal.AsSpan(list55); + index = 0; + span55[index] = "JerryWester"; questRoot7.Author = list55; - num = 3; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span19 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference43 = ref span19[0]; + index = 3; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + Span span56 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference43 = ref span56[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -54968,7 +66468,9 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155) + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -54981,16 +66483,18 @@ public static class AssemblyQuestLoader }; obj36.Steps = list57; reference43 = obj36; - ref QuestSequence reference44 = ref span19[1]; + num++; + ref QuestSequence reference44 = ref span56[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - Span span20 = CollectionsMarshal.AsSpan(list58); - ref QuestStep reference45 = ref span20[0]; + index2 = 4; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + ref QuestStep reference45 = ref span58[num2]; QuestStep obj38 = new QuestStep(EInteractionType.Interact, 1006466u, new Vector3(-410.23883f, 218.1f, -296.86432f), 155) { Mount = true @@ -54998,60 +66502,88 @@ public static class AssemblyQuestLoader num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span21 = CollectionsMarshal.AsSpan(list59); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span59 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj38.CompletionQuestVariablesFlags = list59; reference45 = obj38; - ref QuestStep reference46 = ref span20[1]; + num2++; + ref QuestStep reference46 = ref span58[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1006441u, new Vector3(-414.45032f, 211.45752f, -294.48395f), 155); - num3 = 6; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span22 = CollectionsMarshal.AsSpan(list60); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list60 = new List(index3); + CollectionsMarshal.SetCount(list60, index3); + Span span60 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list60; reference46 = questStep9; - ref QuestStep reference47 = ref span20[2]; + num2++; + ref QuestStep reference47 = ref span58[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1007585u, new Vector3(-462.2721f, 211f, -270.43567f), 155); num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span23 = CollectionsMarshal.AsSpan(list61); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span61 = CollectionsMarshal.AsSpan(list61); + index3 = 0; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list61; reference47 = questStep10; - ref QuestStep reference48 = ref span20[3]; + num2++; + ref QuestStep reference48 = ref span58[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155); - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span24 = CollectionsMarshal.AsSpan(list62); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list62 = new List(index3); + CollectionsMarshal.SetCount(list62, index3); + Span span62 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list62; reference48 = questStep11; obj37.Steps = list58; reference44 = obj37; - ref QuestSequence reference49 = ref span19[2]; + num++; + ref QuestSequence reference49 = ref span56[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -55059,7 +66591,9 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); obj39.Steps = list63; reference49 = obj39; questRoot7.QuestSequence = list56; @@ -55069,21 +66603,26 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "JerryWester"; + Span span64 = CollectionsMarshal.AsSpan(list64); + index = 0; + span64[index] = "JerryWester"; questRoot8.Author = list64; - num = 4; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span25 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference50 = ref span25[0]; + index = 4; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + Span span65 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference50 = ref span65[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -55096,7 +66635,8 @@ public static class AssemblyQuestLoader }; obj40.Steps = list66; reference50 = obj40; - ref QuestSequence reference51 = ref span25[1]; + num++; + ref QuestSequence reference51 = ref span65[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 @@ -55104,10 +66644,13 @@ public static class AssemblyQuestLoader num2 = 4; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span26 = CollectionsMarshal.AsSpan(list67); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-398.1833f, 193.72365f, -330.6203f), 155); - span26[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-495.94693f, 149.93378f, -258.90088f), 155); - ref QuestStep reference52 = ref span26[2]; + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-398.1833f, 193.72365f, -330.6203f), 155); + index2++; + span67[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-495.94693f, 149.93378f, -258.90088f), 155); + index2++; + ref QuestStep reference52 = ref span67[index2]; QuestStep obj42 = new QuestStep(EInteractionType.Combat, 2002170u, new Vector3(-488.6702f, 150.1029f, -318.71527f), 155) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -55115,24 +66658,31 @@ public static class AssemblyQuestLoader num3 = 1; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = 46u; + Span span68 = CollectionsMarshal.AsSpan(list68); + index3 = 0; + span68[index3] = 46u; obj42.KillEnemyDataIds = list68; reference52 = obj42; - span26[3] = new QuestStep(EInteractionType.Interact, 2002170u, new Vector3(-488.6702f, 150.1029f, -318.71527f), 155); + index2++; + span67[index2] = new QuestStep(EInteractionType.Interact, 2002170u, new Vector3(-488.6702f, 150.1029f, -318.71527f), 155); obj41.Steps = list67; reference51 = obj41; - ref QuestSequence reference53 = ref span25[2]; + num++; + ref QuestSequence reference53 = ref span65[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 2002590u, new Vector3(-488.6702f, 150.65222f, -317.79968f), 155); + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.Interact, 2002590u, new Vector3(-488.6702f, 150.65222f, -317.79968f), 155); obj43.Steps = list69; reference53 = obj43; - ref QuestSequence reference54 = ref span25[3]; + num++; + ref QuestSequence reference54 = ref span65[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -55140,7 +66690,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); obj44.Steps = list70; reference54 = obj44; questRoot8.QuestSequence = list65; @@ -55150,21 +66702,26 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "JerryWester"; + Span span71 = CollectionsMarshal.AsSpan(list71); + index = 0; + span71[index] = "JerryWester"; questRoot9.Author = list71; - num = 7; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span27 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference55 = ref span27[0]; + index = 7; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + Span span72 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference55 = ref span72[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -55177,7 +66734,8 @@ public static class AssemblyQuestLoader }; obj45.Steps = list73; reference55 = obj45; - ref QuestSequence reference56 = ref span27[1]; + num++; + ref QuestSequence reference56 = ref span72[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -55185,21 +66743,27 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1006466u, new Vector3(-410.23883f, 218.1f, -296.86432f), 155); + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.Interact, 1006466u, new Vector3(-410.23883f, 218.1f, -296.86432f), 155); obj46.Steps = list74; reference56 = obj46; - ref QuestSequence reference57 = ref span27[2]; + num++; + ref QuestSequence reference57 = ref span72[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1006468u, new Vector3(-418.17352f, 210.78818f, -280.0794f), 155); + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.Interact, 1006468u, new Vector3(-418.17352f, 210.78818f, -280.0794f), 155); obj47.Steps = list75; reference57 = obj47; - ref QuestSequence reference58 = ref span27[3]; + num++; + ref QuestSequence reference58 = ref span72[num]; QuestSequence obj48 = new QuestSequence { Sequence = 3 @@ -55207,24 +66771,30 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Emote, 1006468u, new Vector3(-418.17352f, 210.78818f, -280.0794f), 155) + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.Emote, 1006468u, new Vector3(-418.17352f, 210.78818f, -280.0794f), 155) { Emote = EEmote.Doubt }; obj48.Steps = list76; reference58 = obj48; - ref QuestSequence reference59 = ref span27[4]; + num++; + ref QuestSequence reference59 = ref span72[num]; QuestSequence obj49 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 2002174u, new Vector3(-391.3482f, 219.25684f, -179.43091f), 155); + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.Interact, 2002174u, new Vector3(-391.3482f, 219.25684f, -179.43091f), 155); obj49.Steps = list77; reference59 = obj49; - ref QuestSequence reference60 = ref span27[5]; + num++; + ref QuestSequence reference60 = ref span72[num]; QuestSequence obj50 = new QuestSequence { Sequence = 5 @@ -55232,18 +66802,23 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 2002175u, new Vector3(-391.22614f, 219.28735f, -179.49188f), 155); + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.Interact, 2002175u, new Vector3(-391.22614f, 219.28735f, -179.49188f), 155); obj50.Steps = list78; reference60 = obj50; - ref QuestSequence reference61 = ref span27[6]; + num++; + ref QuestSequence reference61 = ref span72[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); obj51.Steps = list79; reference61 = obj51; questRoot9.QuestSequence = list72; @@ -55253,13 +66828,16 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "JerryWester"; + Span span80 = CollectionsMarshal.AsSpan(list80); + index = 0; + span80[index] = "JerryWester"; questRoot10.Author = list80; - num = 3; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span28 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference62 = ref span28[0]; + index = 3; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + Span span81 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference62 = ref span81[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -55267,7 +66845,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155) + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -55280,15 +66860,18 @@ public static class AssemblyQuestLoader }; obj52.Steps = list82; reference62 = obj52; - ref QuestSequence reference63 = ref span28[1]; + num++; + ref QuestSequence reference63 = ref span81[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006469u, new Vector3(-886.2593f, 228.30641f, 1.6021729f), 155) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006469u, new Vector3(-886.2593f, 228.30641f, 1.6021729f), 155) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -55297,7 +66880,8 @@ public static class AssemblyQuestLoader }; obj53.Steps = list83; reference63 = obj53; - ref QuestSequence reference64 = ref span28[2]; + num++; + ref QuestSequence reference64 = ref span81[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -55305,7 +66889,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); obj54.Steps = list84; reference64 = obj54; questRoot10.QuestSequence = list81; @@ -55319,13 +66905,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -55333,7 +66922,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -55346,18 +66937,22 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -55365,18 +66960,23 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1006490u, new Vector3(-673.21277f, 205.95982f, -515.7702f), 155); + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1006490u, new Vector3(-673.21277f, 205.95982f, -515.7702f), 155); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref QuestStep reference5 = ref span6[num2]; QuestStep questStep = new QuestStep(EInteractionType.Duty, null, null, 155); DutyOptions obj5 = new DutyOptions { @@ -55385,19 +66985,23 @@ public static class AssemblyQuestLoader int num3 = 2; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span2 = CollectionsMarshal.AsSpan(list7); - span2[0] = "(boss 1) AI will not face cleaves away from healer, typically killing them"; - span2[1] = "(boss 3) AI will not face cleaves away from healer, which doesn't always kill them"; + Span span7 = CollectionsMarshal.AsSpan(list7); + int num4 = 0; + span7[num4] = "(boss 1) AI will not face cleaves away from healer, typically killing them"; + num4++; + span7[num4] = "(boss 3) AI will not face cleaves away from healer, which doesn't always kill them"; obj5.Notes = list7; questStep.DutyOptions = obj5; reference5 = questStep; obj4.Steps = list6; reference4 = obj4; - span[4] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -55405,7 +67009,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006491u, new Vector3(7.248047f, -21.970922f, 119.73743f), 132) + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006491u, new Vector3(7.248047f, -21.970922f, 119.73743f), 132) { StopDistance = 5f }; @@ -55418,22 +67024,26 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "JerryWester"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "JerryWester"; questRoot2.Author = list9; - num = 2; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span3[0]; + index = 2; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span10[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - Span span4 = CollectionsMarshal.AsSpan(list11); - ref QuestStep reference8 = ref span4[0]; + index2 = 3; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference8 = ref span11[num2]; QuestStep obj8 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(28.973171f, -19.000002f, 102.00182f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -55445,59 +67055,72 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = 132; + num4 = 1; + List list12 = new List(num4); + CollectionsMarshal.SetCount(list12, num4); + Span span12 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span12[num3] = 132; skipStepConditions.InTerritory = list12; skipConditions.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 132; + Span span13 = CollectionsMarshal.AsSpan(list13); + num4 = 0; + span13[num4] = 132; skipAetheryteCondition.InTerritory = list13; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj8.SkipConditions = skipConditions; reference8 = obj8; - ref QuestStep reference9 = ref span4[1]; + num2++; + ref QuestStep reference9 = ref span11[num2]; QuestStep obj9 = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) { TargetTerritoryId = (ushort)132 }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = 132; + num4 = 1; + List list14 = new List(num4); + CollectionsMarshal.SetCount(list14, num4); + Span span14 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span14[num3] = 132; skipStepConditions2.InTerritory = list14; skipConditions2.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); num3 = 1; List list15 = new List(num3); CollectionsMarshal.SetCount(list15, num3); - CollectionsMarshal.AsSpan(list15)[0] = 132; + Span span15 = CollectionsMarshal.AsSpan(list15); + num4 = 0; + span15[num4] = 132; skipAetheryteCondition2.InTerritory = list15; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; obj9.SkipConditions = skipConditions2; - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice + num4 = 1; + List list16 = new List(num4); + CollectionsMarshal.SetCount(list16, num4); + Span span16 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span16[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSC102_00953_Q1_000_110") }; obj9.DialogueChoices = list16; reference9 = obj9; - span4[2] = new QuestStep(EInteractionType.AcceptQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132) + num2++; + span11[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132) { StopDistance = 5f }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference10 = ref span3[1]; + num++; + ref QuestSequence reference10 = ref span10[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -55505,7 +67128,9 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; @@ -55518,21 +67143,26 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "JerryWester"; + Span span18 = CollectionsMarshal.AsSpan(list18); + index = 0; + span18[index] = "JerryWester"; questRoot3.Author = list18; - num = 2; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span5 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference11 = ref span5[0]; + index = 2; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + Span span19 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference11 = ref span19[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -55545,7 +67175,8 @@ public static class AssemblyQuestLoader }; obj11.Steps = list20; reference11 = obj11; - ref QuestSequence reference12 = ref span5[1]; + num++; + ref QuestSequence reference12 = ref span19[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -55553,7 +67184,9 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145); + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span21[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145); obj12.Steps = list21; reference12 = obj12; questRoot3.QuestSequence = list19; @@ -55563,21 +67196,26 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "JerryWester"; + Span span22 = CollectionsMarshal.AsSpan(list22); + index = 0; + span22[index] = "JerryWester"; questRoot4.Author = list22; - num = 5; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span6 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference13 = ref span6[0]; + index = 5; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + Span span23 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference13 = ref span23[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145) + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -55590,7 +67228,8 @@ public static class AssemblyQuestLoader }; obj13.Steps = list24; reference13 = obj13; - ref QuestSequence reference14 = ref span6[1]; + num++; + ref QuestSequence reference14 = ref span23[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -55598,34 +67237,40 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span7 = CollectionsMarshal.AsSpan(list25); - span7[0] = new QuestStep(EInteractionType.WalkTo, 2002327u, new Vector3(423.17834f, -62.45526f, 213.39734f), 145) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.WalkTo, 2002327u, new Vector3(423.17834f, -62.45526f, 213.39734f), 145) { StopDistance = 3f }; - span7[1] = new QuestStep(EInteractionType.UseItem, 2002327u, new Vector3(423.17834f, -62.45526f, 213.39734f), 145) + index2++; + span25[index2] = new QuestStep(EInteractionType.UseItem, 2002327u, new Vector3(423.17834f, -62.45526f, 213.39734f), 145) { DelaySecondsAtStart = 2f, ItemId = 2000742u }; obj14.Steps = list25; reference14 = obj14; - ref QuestSequence reference15 = ref span6[2]; + num++; + ref QuestSequence reference15 = ref span23[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.UseItem, 2002501u, new Vector3(423.17834f, -62.45526f, 213.39734f), 145) + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.UseItem, 2002501u, new Vector3(423.17834f, -62.45526f, 213.39734f), 145) { DelaySecondsAtStart = 3f, ItemId = 2000837u }; obj15.Steps = list26; reference15 = obj15; - ref QuestSequence reference16 = ref span6[3]; + num++; + ref QuestSequence reference16 = ref span23[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -55633,21 +67278,26 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145) + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.Interact, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj16.Steps = list27; reference16 = obj16; - ref QuestSequence reference17 = ref span6[4]; + num++; + ref QuestSequence reference17 = ref span23[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; @@ -55660,13 +67310,16 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + span29[index] = "JerryWester"; questRoot5.Author = list29; - num = 2; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span8 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference18 = ref span8[0]; + index = 2; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + Span span30 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference18 = ref span30[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -55674,7 +67327,9 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span31[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -55687,15 +67342,18 @@ public static class AssemblyQuestLoader }; obj18.Steps = list31; reference18 = obj18; - ref QuestSequence reference19 = ref span8[1]; + num++; + ref QuestSequence reference19 = ref span30[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; @@ -55708,13 +67366,16 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "JerryWester"; + Span span33 = CollectionsMarshal.AsSpan(list33); + index = 0; + span33[index] = "JerryWester"; questRoot6.Author = list33; - num = 3; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span9 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference20 = ref span9[0]; + index = 3; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + Span span34 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference20 = ref span34[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -55722,7 +67383,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -55735,55 +67398,71 @@ public static class AssemblyQuestLoader }; obj20.Steps = list35; reference20 = obj20; - ref QuestSequence reference21 = ref span9[1]; + num++; + ref QuestSequence reference21 = ref span34[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 9; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span10 = CollectionsMarshal.AsSpan(list36); - ref QuestStep reference22 = ref span10[0]; + index2 = 9; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + ref QuestStep reference22 = ref span36[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(326.43436f, -10.900522f, 254.15413f), 138); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span11 = CollectionsMarshal.AsSpan(list37); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span37 = CollectionsMarshal.AsSpan(list37); + num4 = 0; + span37[num4] = null; + num4++; + span37[num4] = null; + num4++; + span37[num4] = null; + num4++; + span37[num4] = null; + num4++; + span37[num4] = null; + num4++; + span37[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list37; skipConditions3.StepIf = skipStepConditions3; questStep2.SkipConditions = skipConditions3; reference22 = questStep2; - ref QuestStep reference23 = ref span10[1]; + num2++; + ref QuestStep reference23 = ref span36[num2]; QuestStep obj22 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(323.1029f, -12.214727f, 253.75018f), 138) { DisableNavmesh = true }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span12 = CollectionsMarshal.AsSpan(list38); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list38 = new List(num4); + CollectionsMarshal.SetCount(list38, num4); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list38; skipConditions4.StepIf = skipStepConditions4; obj22.SkipConditions = skipConditions4; reference23 = obj22; - ref QuestStep reference24 = ref span10[2]; + num2++; + ref QuestStep reference24 = ref span36[num2]; QuestStep obj23 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.68527f, -15.189899f, 241.07025f), 138) { DisableNavmesh = true @@ -55793,35 +67472,49 @@ public static class AssemblyQuestLoader num3 = 6; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - Span span13 = CollectionsMarshal.AsSpan(list39); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span39 = CollectionsMarshal.AsSpan(list39); + num4 = 0; + span39[num4] = null; + num4++; + span39[num4] = null; + num4++; + span39[num4] = null; + num4++; + span39[num4] = null; + num4++; + span39[num4] = null; + num4++; + span39[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list39; skipConditions5.StepIf = skipStepConditions5; obj23.SkipConditions = skipConditions5; reference24 = obj23; - ref QuestStep reference25 = ref span10[3]; + num2++; + ref QuestStep reference25 = ref span36[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1006500u, new Vector3(321.1565f, -15.187395f, 253.52856f), 138) { StopDistance = 5f }; - num3 = 6; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span14 = CollectionsMarshal.AsSpan(list40); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list40 = new List(num4); + CollectionsMarshal.SetCount(list40, num4); + Span span40 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj24.CompletionQuestVariablesFlags = list40; reference25 = obj24; - ref QuestStep reference26 = ref span10[4]; + num2++; + ref QuestStep reference26 = ref span36[num2]; QuestStep obj25 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.6691f, -15.190072f, 236.13472f), 138) { DisableNavmesh = true @@ -55831,18 +67524,25 @@ public static class AssemblyQuestLoader num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span15 = CollectionsMarshal.AsSpan(list41); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span41 = CollectionsMarshal.AsSpan(list41); + num4 = 0; + span41[num4] = null; + num4++; + span41[num4] = null; + num4++; + span41[num4] = null; + num4++; + span41[num4] = null; + num4++; + span41[num4] = null; + num4++; + span41[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list41; skipConditions6.StepIf = skipStepConditions6; obj25.SkipConditions = skipConditions6; reference26 = obj25; - ref QuestStep reference27 = ref span10[5]; + num2++; + ref QuestStep reference27 = ref span36[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Jump, null, new Vector3(317.6691f, -15.190072f, 236.13472f), 138) { StopDistance = 1f, @@ -55853,69 +67553,97 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span16 = CollectionsMarshal.AsSpan(list42); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list42 = new List(num4); + CollectionsMarshal.SetCount(list42, num4); + Span span42 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list42; skipConditions7.StepIf = skipStepConditions7; obj26.SkipConditions = skipConditions7; reference27 = obj26; - ref QuestStep reference28 = ref span10[6]; + num2++; + ref QuestStep reference28 = ref span36[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(260.88342f, -24.975f, 249.04248f), 138); SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); num3 = 6; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - Span span17 = CollectionsMarshal.AsSpan(list43); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span43 = CollectionsMarshal.AsSpan(list43); + num4 = 0; + span43[num4] = null; + num4++; + span43[num4] = null; + num4++; + span43[num4] = null; + num4++; + span43[num4] = null; + num4++; + span43[num4] = null; + num4++; + span43[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list43; skipConditions8.StepIf = skipStepConditions8; questStep3.SkipConditions = skipConditions8; reference28 = questStep3; - ref QuestStep reference29 = ref span10[7]; + num2++; + ref QuestStep reference29 = ref span36[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1006499u, new Vector3(260.88342f, -24.975f, 249.04248f), 138); - num3 = 6; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span18 = CollectionsMarshal.AsSpan(list44); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + Span span44 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span44[num3] = null; + num3++; + span44[num3] = null; + num3++; + span44[num3] = null; + num3++; + span44[num3] = null; + num3++; + span44[num3] = null; + num3++; + span44[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list44; reference29 = questStep4; - ref QuestStep reference30 = ref span10[8]; + num2++; + ref QuestStep reference30 = ref span36[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1006498u, new Vector3(178.78992f, -41.131824f, 257.16016f), 138); num3 = 6; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - Span span19 = CollectionsMarshal.AsSpan(list45); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span45 = CollectionsMarshal.AsSpan(list45); + num4 = 0; + span45[num4] = null; + num4++; + span45[num4] = null; + num4++; + span45[num4] = null; + num4++; + span45[num4] = null; + num4++; + span45[num4] = null; + num4++; + span45[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list45; reference30 = questStep5; obj21.Steps = list36; reference21 = obj21; - ref QuestSequence reference31 = ref span9[2]; + num++; + ref QuestSequence reference31 = ref span34[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -55923,9 +67651,11 @@ public static class AssemblyQuestLoader num2 = 2; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span20 = CollectionsMarshal.AsSpan(list46); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(293.98203f, -24.988865f, 240.63774f), 138); - span20[1] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(293.98203f, -24.988865f, 240.63774f), 138); + index2++; + span46[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); obj27.Steps = list46; reference31 = obj27; questRoot6.QuestSequence = list34; @@ -55935,21 +67665,26 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "JerryWester"; + Span span47 = CollectionsMarshal.AsSpan(list47); + index = 0; + span47[index] = "JerryWester"; questRoot7.Author = list47; - num = 5; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span21 = CollectionsMarshal.AsSpan(list48); - ref QuestSequence reference32 = ref span21[0]; + index = 5; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + Span span48 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref QuestSequence reference32 = ref span48[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -55962,7 +67697,8 @@ public static class AssemblyQuestLoader }; obj28.Steps = list49; reference32 = obj28; - ref QuestSequence reference33 = ref span21[1]; + num++; + ref QuestSequence reference33 = ref span48[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 @@ -55970,25 +67706,31 @@ public static class AssemblyQuestLoader num2 = 2; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span22 = CollectionsMarshal.AsSpan(list50); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(293.98203f, -24.988865f, 240.63774f), 138); - span22[1] = new QuestStep(EInteractionType.Interact, 1006502u, new Vector3(182.39111f, -41.0828f, 260.151f), 138); + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(293.98203f, -24.988865f, 240.63774f), 138); + index2++; + span50[index2] = new QuestStep(EInteractionType.Interact, 1006502u, new Vector3(182.39111f, -41.0828f, 260.151f), 138); obj29.Steps = list50; reference33 = obj29; - ref QuestSequence reference34 = ref span21[2]; + num++; + ref QuestSequence reference34 = ref span48[num]; QuestSequence obj30 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - Span span23 = CollectionsMarshal.AsSpan(list51); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(293.98203f, -24.988865f, 240.63774f), 138); - span23[1] = new QuestStep(EInteractionType.Interact, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); + index2 = 2; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(293.98203f, -24.988865f, 240.63774f), 138); + num2++; + span51[num2] = new QuestStep(EInteractionType.Interact, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); obj30.Steps = list51; reference34 = obj30; - ref QuestSequence reference35 = ref span21[3]; + num++; + ref QuestSequence reference35 = ref span48[num]; QuestSequence obj31 = new QuestSequence { Sequence = 3 @@ -55996,25 +67738,30 @@ public static class AssemblyQuestLoader num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span24 = CollectionsMarshal.AsSpan(list52); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.96317f, -36.40591f, 316.74185f), 138); - span24[1] = new QuestStep(EInteractionType.Interact, 1006501u, new Vector3(311.4214f, -36.405907f, 333.54688f), 138); + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.96317f, -36.40591f, 316.74185f), 138); + index2++; + span52[index2] = new QuestStep(EInteractionType.Interact, 1006501u, new Vector3(311.4214f, -36.405907f, 333.54688f), 138); obj31.Steps = list52; reference35 = obj31; - ref QuestSequence reference36 = ref span21[4]; + num++; + ref QuestSequence reference36 = ref span48[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span25 = CollectionsMarshal.AsSpan(list53); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(305.6621f, -36.405907f, 320.81702f), 138) + index2 = 2; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(305.6621f, -36.405907f, 320.81702f), 138) { Mount = true }; - span25[1] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); + num2++; + span53[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); obj32.Steps = list53; reference36 = obj32; questRoot7.QuestSequence = list48; @@ -56024,13 +67771,16 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "JerryWester"; + Span span54 = CollectionsMarshal.AsSpan(list54); + index = 0; + span54[index] = "JerryWester"; questRoot8.Author = list54; - num = 4; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span26 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference37 = ref span26[0]; + index = 4; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + Span span55 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference37 = ref span55[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -56038,7 +67788,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -56051,20 +67803,24 @@ public static class AssemblyQuestLoader }; obj33.Steps = list56; reference37 = obj33; - ref QuestSequence reference38 = ref span26[1]; + num++; + ref QuestSequence reference38 = ref span55[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - Span span27 = CollectionsMarshal.AsSpan(list57); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.96317f, -36.40591f, 316.74185f), 138); - span27[1] = new QuestStep(EInteractionType.Interact, 1007640u, new Vector3(317.95215f, -40.425003f, 374.10547f), 138); + index2 = 2; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.96317f, -36.40591f, 316.74185f), 138); + num2++; + span57[num2] = new QuestStep(EInteractionType.Interact, 1007640u, new Vector3(317.95215f, -40.425003f, 374.10547f), 138); obj34.Steps = list57; reference38 = obj34; - ref QuestSequence reference39 = ref span26[2]; + num++; + ref QuestSequence reference39 = ref span55[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -56072,21 +67828,26 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1007540u, new Vector3(-285.96942f, -40.868286f, 410.39136f), 138) + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.Interact, 1007540u, new Vector3(-285.96942f, -40.868286f, 410.39136f), 138) { StopDistance = 7f }; obj35.Steps = list58; reference39 = obj35; - ref QuestSequence reference40 = ref span26[3]; + num++; + ref QuestSequence reference40 = ref span55[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); obj36.Steps = list59; reference40 = obj36; questRoot8.QuestSequence = list55; @@ -56096,13 +67857,16 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "JerryWester"; + Span span60 = CollectionsMarshal.AsSpan(list60); + index = 0; + span60[index] = "JerryWester"; questRoot9.Author = list60; - num = 3; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span28 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference41 = ref span28[0]; + index = 3; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference41 = ref span61[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -56110,63 +67874,88 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); obj37.Steps = list62; reference41 = obj37; - ref QuestSequence reference42 = ref span28[1]; + num++; + ref QuestSequence reference42 = ref span61[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span29 = CollectionsMarshal.AsSpan(list63); - ref QuestStep reference43 = ref span29[0]; + index2 = 3; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference43 = ref span63[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1007639u, new Vector3(-196.82617f, -40.651188f, 499.9618f), 138); - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span30 = CollectionsMarshal.AsSpan(list64); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + Span span64 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list64; reference43 = questStep6; - ref QuestStep reference44 = ref span29[1]; + num2++; + ref QuestStep reference44 = ref span63[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1006506u, new Vector3(-198.47418f, -40.461403f, 499.9923f), 138); num3 = 6; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span31 = CollectionsMarshal.AsSpan(list65); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span65 = CollectionsMarshal.AsSpan(list65); + num4 = 0; + span65[num4] = null; + num4++; + span65[num4] = null; + num4++; + span65[num4] = null; + num4++; + span65[num4] = null; + num4++; + span65[num4] = null; + num4++; + span65[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list65; reference44 = questStep7; - ref QuestStep reference45 = ref span29[2]; + num2++; + ref QuestStep reference45 = ref span63[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1006505u, new Vector3(-200.36627f, -40.340702f, 503.19666f), 138); - num3 = 6; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span32 = CollectionsMarshal.AsSpan(list66); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list66 = new List(num4); + CollectionsMarshal.SetCount(list66, num4); + Span span66 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list66; reference45 = questStep8; obj38.Steps = list63; reference42 = obj38; - ref QuestSequence reference46 = ref span28[2]; + num++; + ref QuestSequence reference46 = ref span61[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -56174,7 +67963,9 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); obj39.Steps = list67; reference46 = obj39; questRoot9.QuestSequence = list61; @@ -56184,24 +67975,30 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "JerryWester"; + Span span68 = CollectionsMarshal.AsSpan(list68); + index = 0; + span68[index] = "JerryWester"; questRoot10.Author = list68; - num = 7; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span33 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference47 = ref span33[0]; + index = 7; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + Span span69 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference47 = ref span69[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); obj40.Steps = list70; reference47 = obj40; - ref QuestSequence reference48 = ref span33[1]; + num++; + ref QuestSequence reference48 = ref span69[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 @@ -56209,21 +68006,27 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1006507u, new Vector3(-287.22064f, -40.98314f, 407.64465f), 138); + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.Interact, 1006507u, new Vector3(-287.22064f, -40.98314f, 407.64465f), 138); obj41.Steps = list71; reference48 = obj41; - ref QuestSequence reference49 = ref span33[2]; + num++; + ref QuestSequence reference49 = ref span69[num]; QuestSequence obj42 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1007716u, new Vector3(-312.03174f, -41.36315f, 682.70386f), 138); + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.Interact, 1007716u, new Vector3(-312.03174f, -41.36315f, 682.70386f), 138); obj42.Steps = list72; reference49 = obj42; - ref QuestSequence reference50 = ref span33[3]; + num++; + ref QuestSequence reference50 = ref span69[num]; QuestSequence obj43 = new QuestSequence { Sequence = 3 @@ -56231,7 +68034,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002189u, new Vector3(-307.75922f, -41.672424f, 695.3993f), 138) + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002189u, new Vector3(-307.75922f, -41.672424f, 695.3993f), 138) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -56240,18 +68045,22 @@ public static class AssemblyQuestLoader }; obj43.Steps = list73; reference50 = obj43; - ref QuestSequence reference51 = ref span33[4]; + num++; + ref QuestSequence reference51 = ref span69[num]; QuestSequence obj44 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1007716u, new Vector3(-312.03174f, -41.36315f, 682.70386f), 138); + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.Interact, 1007716u, new Vector3(-312.03174f, -41.36315f, 682.70386f), 138); obj44.Steps = list74; reference51 = obj44; - ref QuestSequence reference52 = ref span33[5]; + num++; + ref QuestSequence reference52 = ref span69[num]; QuestSequence obj45 = new QuestSequence { Sequence = 5 @@ -56259,24 +68068,29 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.Interact, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); obj45.Steps = list75; reference52 = obj45; - ref QuestSequence reference53 = ref span33[6]; + num++; + ref QuestSequence reference53 = ref span69[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span34 = CollectionsMarshal.AsSpan(list76); - span34[0] = new QuestStep(EInteractionType.Interact, 1005239u, new Vector3(-289.9062f, -41.2455f, 406.51562f), 138) + index2 = 2; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.Interact, 1005239u, new Vector3(-289.9062f, -41.2455f, 406.51562f), 138) { TargetTerritoryId = (ushort)138, Comment = "Ferry Skipper" }; - span34[1] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); + num2++; + span76[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); obj46.Steps = list76; reference53 = obj46; questRoot10.QuestSequence = list69; @@ -56286,13 +68100,16 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "UcanPatates"; + Span span77 = CollectionsMarshal.AsSpan(list77); + index = 0; + span77[index] = "UcanPatates"; questRoot11.Author = list77; - num = 2; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span35 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference54 = ref span35[0]; + index = 2; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + Span span78 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference54 = ref span78[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -56300,7 +68117,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list79)[0]; + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + ref QuestStep reference55 = ref span79[index2]; QuestStep obj48 = new QuestStep(EInteractionType.AcceptQuest, 1006711u, new Vector3(-140.39832f, 7.8986163f, -142.99237f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -56315,9 +68134,11 @@ public static class AssemblyQuestLoader num3 = 2; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - Span span36 = CollectionsMarshal.AsSpan(list80); - span36[0] = 132; - span36[1] = 133; + Span span80 = CollectionsMarshal.AsSpan(list80); + num4 = 0; + span80[num4] = 132; + num4++; + span80[num4] = 133; skipAetheryteCondition3.InTerritory = list80; skipConditions9.AetheryteShortcutIf = skipAetheryteCondition3; skipConditions9.AethernetShortcutIf = new SkipAetheryteCondition @@ -56328,15 +68149,18 @@ public static class AssemblyQuestLoader reference55 = obj48; obj47.Steps = list79; reference54 = obj47; - ref QuestSequence reference56 = ref span35[1]; + num++; + ref QuestSequence reference56 = ref span78[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000617u, new Vector3(5.722107f, -7.2786255f, 270.95447f), 152) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000617u, new Vector3(5.722107f, -7.2786255f, 270.95447f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -56358,13 +68182,16 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "UcanPatates"; + Span span82 = CollectionsMarshal.AsSpan(list82); + index = 0; + span82[index] = "UcanPatates"; questRoot12.Author = list82; - num = 4; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span37 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference57 = ref span37[0]; + index = 4; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + Span span83 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference57 = ref span83[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -56372,7 +68199,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000617u, new Vector3(5.722107f, -7.2786255f, 270.95447f), 152) + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000617u, new Vector3(5.722107f, -7.2786255f, 270.95447f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -56386,15 +68215,18 @@ public static class AssemblyQuestLoader }; obj50.Steps = list84; reference57 = obj50; - ref QuestSequence reference58 = ref span37[1]; + num++; + ref QuestSequence reference58 = ref span83[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152) + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span85[num2] = new QuestStep(EInteractionType.Interact, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -56407,7 +68239,8 @@ public static class AssemblyQuestLoader }; obj51.Steps = list85; reference58 = obj51; - ref QuestSequence reference59 = ref span37[2]; + num++; + ref QuestSequence reference59 = ref span83[num]; QuestSequence obj52 = new QuestSequence { Sequence = 2 @@ -56415,8 +68248,9 @@ public static class AssemblyQuestLoader num2 = 3; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span38 = CollectionsMarshal.AsSpan(list86); - ref QuestStep reference60 = ref span38[0]; + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + ref QuestStep reference60 = ref span86[index2]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 2002191u, new Vector3(189.6543f, 7.94989f, 133.65369f), 152) { StopDistance = 0.25f, @@ -56430,19 +68264,26 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - Span span39 = CollectionsMarshal.AsSpan(list87); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list87 = new List(num4); + CollectionsMarshal.SetCount(list87, num4); + Span span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj53.CompletionQuestVariablesFlags = list87; reference60 = obj53; - ref QuestStep reference61 = ref span38[1]; + index2++; + ref QuestStep reference61 = ref span86[index2]; QuestStep obj54 = new QuestStep(EInteractionType.Interact, 2002192u, new Vector3(181.04822f, 0.07623291f, 43.289795f), 152) { StopDistance = 0.25f, @@ -56459,16 +68300,23 @@ public static class AssemblyQuestLoader num3 = 6; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - Span span40 = CollectionsMarshal.AsSpan(list88); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span88 = CollectionsMarshal.AsSpan(list88); + num4 = 0; + span88[num4] = null; + num4++; + span88[num4] = null; + num4++; + span88[num4] = null; + num4++; + span88[num4] = null; + num4++; + span88[num4] = null; + num4++; + span88[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj54.CompletionQuestVariablesFlags = list88; reference61 = obj54; - ref QuestStep reference62 = ref span38[2]; + index2++; + ref QuestStep reference62 = ref span86[index2]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 2002190u, new Vector3(233.66138f, 6.42395f, 199.11487f), 152) { StopDistance = 0.25f, @@ -56482,30 +68330,38 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - Span span41 = CollectionsMarshal.AsSpan(list89); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list89 = new List(num4); + CollectionsMarshal.SetCount(list89, num4); + Span span89 = CollectionsMarshal.AsSpan(list89); + num3 = 0; + span89[num3] = null; + num3++; + span89[num3] = null; + num3++; + span89[num3] = null; + num3++; + span89[num3] = null; + num3++; + span89[num3] = null; + num3++; + span89[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj55.CompletionQuestVariablesFlags = list89; reference62 = obj55; obj52.Steps = list86; reference59 = obj52; - ref QuestSequence reference63 = ref span37[3]; + num++; + ref QuestSequence reference63 = ref span83[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span42 = CollectionsMarshal.AsSpan(list90); - span42[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(124.74073f, 6.729165f, 190.69174f), 152) + index2 = 2; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(124.74073f, 6.729165f, 190.69174f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -56516,7 +68372,8 @@ public static class AssemblyQuestLoader } } }; - span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) + num2++; + span90[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) { Fly = true, NextQuestId = new QuestId(972) @@ -56530,13 +68387,16 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "UcanPatates"; + Span span91 = CollectionsMarshal.AsSpan(list91); + index = 0; + span91[index] = "UcanPatates"; questRoot13.Author = list91; - num = 3; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span43 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference64 = ref span43[0]; + index = 3; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + Span span92 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference64 = ref span92[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -56544,7 +68404,9 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -56558,16 +68420,18 @@ public static class AssemblyQuestLoader }; obj57.Steps = list93; reference64 = obj57; - ref QuestSequence reference65 = ref span43[1]; + num++; + ref QuestSequence reference65 = ref span92[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span44 = CollectionsMarshal.AsSpan(list94); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-193.69008f, 55.59636f, -177.57457f), 152) + index2 = 2; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-193.69008f, 55.59636f, -177.57457f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -56578,10 +68442,12 @@ public static class AssemblyQuestLoader } } }; - span44[1] = new QuestStep(EInteractionType.Interact, 1007568u, new Vector3(-183.88647f, 57.451885f, -143.93835f), 152); + num2++; + span94[num2] = new QuestStep(EInteractionType.Interact, 1007568u, new Vector3(-183.88647f, 57.451885f, -143.93835f), 152); obj58.Steps = list94; reference65 = obj58; - ref QuestSequence reference66 = ref span43[2]; + num++; + ref QuestSequence reference66 = ref span92[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -56589,7 +68455,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -56610,24 +68478,30 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "croizat"; + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + span96[index] = "croizat"; questRoot14.Author = list96; - num = 3; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span45 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference67 = ref span45[0]; + index = 3; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + Span span97 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference67 = ref span97[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006717u, new Vector3(-236.2555f, 51.499146f, -193.13348f), 152); + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006717u, new Vector3(-236.2555f, 51.499146f, -193.13348f), 152); obj60.Steps = list98; reference67 = obj60; - ref QuestSequence reference68 = ref span45[1]; + num++; + ref QuestSequence reference68 = ref span97[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 @@ -56635,7 +68509,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list99)[0]; + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + ref QuestStep reference69 = ref span99[index2]; QuestStep obj62 = new QuestStep(EInteractionType.Combat, null, new Vector3(-9.741034f, 18.766914f, -0.8730635f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -56643,7 +68519,9 @@ public static class AssemblyQuestLoader num3 = 1; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = new ComplexCombatData + Span span100 = CollectionsMarshal.AsSpan(list100); + num4 = 0; + span100[num4] = new ComplexCombatData { DataId = 133u, MinimumKillCount = 4u, @@ -56654,15 +68532,18 @@ public static class AssemblyQuestLoader reference69 = obj62; obj61.Steps = list99; reference68 = obj61; - ref QuestSequence reference70 = ref span45[2]; + num++; + ref QuestSequence reference70 = ref span97[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006717u, new Vector3(-236.2555f, 51.499146f, -193.13348f), 152); + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006717u, new Vector3(-236.2555f, 51.499146f, -193.13348f), 152); obj63.Steps = list101; reference70 = obj63; questRoot14.QuestSequence = list97; @@ -56672,13 +68553,16 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "JerryWester"; + Span span102 = CollectionsMarshal.AsSpan(list102); + index = 0; + span102[index] = "JerryWester"; questRoot15.Author = list102; - num = 2; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span46 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference71 = ref span46[0]; + index = 2; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + Span span103 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference71 = ref span103[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -56686,7 +68570,9 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006710u, new Vector3(-123.73547f, 7.0426483f, -149.98096f), 133) + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006710u, new Vector3(-123.73547f, 7.0426483f, -149.98096f), 133) { AethernetShortcut = new AethernetShortcut { @@ -56696,16 +68582,18 @@ public static class AssemblyQuestLoader }; obj64.Steps = list104; reference71 = obj64; - ref QuestSequence reference72 = ref span46[1]; + num++; + ref QuestSequence reference72 = ref span103[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - Span span47 = CollectionsMarshal.AsSpan(list105); - ref QuestStep reference73 = ref span47[0]; + index2 = 2; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + ref QuestStep reference73 = ref span105[num2]; QuestStep obj66 = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) { AethernetShortcut = new AethernetShortcut @@ -56714,17 +68602,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAirship } }; - num3 = 1; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = new DialogueChoice + num4 = 1; + List list106 = new List(num4); + CollectionsMarshal.SetCount(list106, num4); + Span span106 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span106[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSC308_00975_Q1_000_040") }; obj66.DialogueChoices = list106; reference73 = obj66; - span47[1] = new QuestStep(EInteractionType.CompleteQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132); + num2++; + span105[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132); obj65.Steps = list105; reference72 = obj65; questRoot15.QuestSequence = list103; @@ -56734,13 +68625,16 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "JerryWester"; + Span span107 = CollectionsMarshal.AsSpan(list107); + index = 0; + span107[index] = "JerryWester"; questRoot16.Author = list107; - num = 2; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span48 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference74 = ref span48[0]; + index = 2; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + Span span108 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference74 = ref span108[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -56748,21 +68642,26 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007473u, new Vector3(37.308228f, 1.2000015f, 2.9144287f), 212) + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007473u, new Vector3(37.308228f, 1.2000015f, 2.9144287f), 212) { StopDistance = 7f }; obj67.Steps = list109; reference74 = obj67; - ref QuestSequence reference75 = ref span48[1]; + num++; + ref QuestSequence reference75 = ref span108[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155) + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span110[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; @@ -56775,13 +68674,16 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "liza"; + Span span111 = CollectionsMarshal.AsSpan(list111); + index = 0; + span111[index] = "liza"; questRoot17.Author = list111; - num = 2; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span49 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference76 = ref span49[0]; + index = 2; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + Span span112 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference76 = ref span112[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -56789,18 +68691,23 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006382u, new Vector3(165.20935f, 222.99998f, 367.72717f), 155); + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006382u, new Vector3(165.20935f, 222.99998f, 367.72717f), 155); obj69.Steps = list113; reference76 = obj69; - ref QuestSequence reference77 = ref span49[1]; + num++; + ref QuestSequence reference77 = ref span112[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006516u, new Vector3(-82.68872f, 233.23743f, 317.1892f), 155); + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006516u, new Vector3(-82.68872f, 233.23743f, 317.1892f), 155); obj70.Steps = list114; reference77 = obj70; questRoot17.QuestSequence = list112; @@ -56810,13 +68717,16 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "JerryWester"; + Span span115 = CollectionsMarshal.AsSpan(list115); + index = 0; + span115[index] = "JerryWester"; questRoot18.Author = list115; - num = 3; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span50 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference78 = ref span50[0]; + index = 3; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + Span span116 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference78 = ref span116[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -56824,21 +68734,27 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155); + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155); obj71.Steps = list117; reference78 = obj71; - ref QuestSequence reference79 = ref span50[1]; + num++; + ref QuestSequence reference79 = ref span116[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1006517u, new Vector3(-49.607117f, 223.60161f, 350.57593f), 155); + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.Interact, 1006517u, new Vector3(-49.607117f, 223.60161f, 350.57593f), 155); obj72.Steps = list118; reference79 = obj72; - ref QuestSequence reference80 = ref span50[2]; + num++; + ref QuestSequence reference80 = ref span116[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -56846,7 +68762,9 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006518u, new Vector3(-354.84857f, 214.79114f, 687.5867f), 155); + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006518u, new Vector3(-354.84857f, 214.79114f, 687.5867f), 155); obj73.Steps = list119; reference80 = obj73; questRoot18.QuestSequence = list116; @@ -56856,24 +68774,30 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "JerryWester"; + Span span120 = CollectionsMarshal.AsSpan(list120); + index = 0; + span120[index] = "JerryWester"; questRoot19.Author = list120; - num = 8; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - Span span51 = CollectionsMarshal.AsSpan(list121); - ref QuestSequence reference81 = ref span51[0]; + index = 8; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + Span span121 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference81 = ref span121[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006518u, new Vector3(-354.84857f, 214.79114f, 687.5867f), 155); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006518u, new Vector3(-354.84857f, 214.79114f, 687.5867f), 155); obj74.Steps = list122; reference81 = obj74; - ref QuestSequence reference82 = ref span51[1]; + num++; + ref QuestSequence reference82 = ref span121[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 @@ -56881,21 +68805,27 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 2002196u, new Vector3(-322.80463f, 216.54077f, 655.8479f), 155); + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.Interact, 2002196u, new Vector3(-322.80463f, 216.54077f, 655.8479f), 155); obj75.Steps = list123; reference82 = obj75; - ref QuestSequence reference83 = ref span51[2]; + num++; + ref QuestSequence reference83 = ref span121[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 2002197u, new Vector3(-290.9438f, 223.25464f, 590.5393f), 155); + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.Interact, 2002197u, new Vector3(-290.9438f, 223.25464f, 590.5393f), 155); obj76.Steps = list124; reference83 = obj76; - ref QuestSequence reference84 = ref span51[3]; + num++; + ref QuestSequence reference84 = ref span121[num]; QuestSequence obj77 = new QuestSequence { Sequence = 3 @@ -56903,21 +68833,27 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 2002198u, new Vector3(-316.15173f, 228.93103f, 540.917f), 155); + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.Interact, 2002198u, new Vector3(-316.15173f, 228.93103f, 540.917f), 155); obj77.Steps = list125; reference84 = obj77; - ref QuestSequence reference85 = ref span51[4]; + num++; + ref QuestSequence reference85 = ref span121[num]; QuestSequence obj78 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 2002199u, new Vector3(-338.2467f, 235.21777f, 525.5664f), 155); + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.Interact, 2002199u, new Vector3(-338.2467f, 235.21777f, 525.5664f), 155); obj78.Steps = list126; reference85 = obj78; - ref QuestSequence reference86 = ref span51[5]; + num++; + ref QuestSequence reference86 = ref span121[num]; QuestSequence obj79 = new QuestSequence { Sequence = 5 @@ -56925,27 +68861,33 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 2002200u, new Vector3(-358.29712f, 236.71313f, 506.27905f), 155); + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.Interact, 2002200u, new Vector3(-358.29712f, 236.71313f, 506.27905f), 155); obj79.Steps = list127; reference86 = obj79; - ref QuestSequence reference87 = ref span51[6]; + num++; + ref QuestSequence reference87 = ref span121[num]; QuestSequence obj80 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span52 = CollectionsMarshal.AsSpan(list128); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-399.05286f, 228.68446f, 445.9758f), 155); - span52[1] = new QuestStep(EInteractionType.Interact, 1006519u, new Vector3(-397.54333f, 229.15173f, 448.32532f), 155) + index2 = 2; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-399.05286f, 228.68446f, 445.9758f), 155); + num2++; + span128[num2] = new QuestStep(EInteractionType.Interact, 1006519u, new Vector3(-397.54333f, 229.15173f, 448.32532f), 155) { StopDistance = 7f, DisableNavmesh = true }; obj80.Steps = list128; reference87 = obj80; - ref QuestSequence reference88 = ref span51[7]; + num++; + ref QuestSequence reference88 = ref span121[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -56953,13 +68895,16 @@ public static class AssemblyQuestLoader num2 = 3; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span53 = CollectionsMarshal.AsSpan(list129); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155); - span53[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155) + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155); + index2++; + span129[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155) { DisableNavmesh = true }; - span53[2] = new QuestStep(EInteractionType.CompleteQuest, 1006521u, new Vector3(-697.04736f, 242.18399f, 380.63623f), 155); + index2++; + span129[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006521u, new Vector3(-697.04736f, 242.18399f, 380.63623f), 155); obj81.Steps = list129; reference88 = obj81; questRoot19.QuestSequence = list121; @@ -56969,27 +68914,33 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "JerryWester"; + Span span130 = CollectionsMarshal.AsSpan(list130); + index = 0; + span130[index] = "JerryWester"; questRoot20.Author = list130; - num = 4; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span54 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference89 = ref span54[0]; + index = 4; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + Span span131 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference89 = ref span131[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155) { StopDistance = 7f }; obj82.Steps = list132; reference89 = obj82; - ref QuestSequence reference90 = ref span54[1]; + num++; + ref QuestSequence reference90 = ref span131[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -56997,27 +68948,34 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1006521u, new Vector3(-697.04736f, 242.18399f, 380.63623f), 155); + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.Interact, 1006521u, new Vector3(-697.04736f, 242.18399f, 380.63623f), 155); obj83.Steps = list133; reference90 = obj83; - ref QuestSequence reference91 = ref span54[2]; + num++; + ref QuestSequence reference91 = ref span131[num]; QuestSequence obj84 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - Span span55 = CollectionsMarshal.AsSpan(list134); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155); - span55[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) + index2 = 3; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155); + num2++; + span134[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) { DisableNavmesh = true }; - span55[2] = new QuestStep(EInteractionType.Interact, 2002265u, new Vector3(-693.01904f, 253.86426f, 506.98096f), 155); + num2++; + span134[num2] = new QuestStep(EInteractionType.Interact, 2002265u, new Vector3(-693.01904f, 253.86426f, 506.98096f), 155); obj84.Steps = list134; reference91 = obj84; - ref QuestSequence reference92 = ref span54[3]; + num++; + ref QuestSequence reference92 = ref span131[num]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue @@ -57025,21 +68983,25 @@ public static class AssemblyQuestLoader num2 = 4; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span56 = CollectionsMarshal.AsSpan(list135); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-690.43774f, 261.3325f, 433.44107f), 155) + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-690.43774f, 261.3325f, 433.44107f), 155) { Mount = false, Comment = "Enemies lose aggro around here" }; - span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) + index2++; + span135[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) { Mount = true }; - span56[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155) + index2++; + span135[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155) { DisableNavmesh = true }; - span56[3] = new QuestStep(EInteractionType.CompleteQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155); + index2++; + span135[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155); obj85.Steps = list135; reference92 = obj85; questRoot20.QuestSequence = list131; @@ -57049,26 +69011,32 @@ public static class AssemblyQuestLoader num = 2; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - Span span57 = CollectionsMarshal.AsSpan(list136); - span57[0] = "JerryWester"; - span57[1] = "Wigglez"; + Span span136 = CollectionsMarshal.AsSpan(list136); + index = 0; + span136[index] = "JerryWester"; + index++; + span136[index] = "Wigglez"; questRoot21.Author = list136; - num = 4; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - Span span58 = CollectionsMarshal.AsSpan(list137); - ref QuestSequence reference93 = ref span58[0]; + index = 4; + List list137 = new List(index); + CollectionsMarshal.SetCount(list137, index); + Span span137 = CollectionsMarshal.AsSpan(list137); + num = 0; + ref QuestSequence reference93 = ref span137[num]; QuestSequence obj86 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155); + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155); obj86.Steps = list138; reference93 = obj86; - ref QuestSequence reference94 = ref span58[1]; + num++; + ref QuestSequence reference94 = ref span137[num]; QuestSequence obj87 = new QuestSequence { Sequence = 1 @@ -57076,26 +69044,32 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1006522u, new Vector3(-694.42285f, 300.96927f, 372.1521f), 155); + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.Interact, 1006522u, new Vector3(-694.42285f, 300.96927f, 372.1521f), 155); obj87.Steps = list139; reference94 = obj87; - ref QuestSequence reference95 = ref span58[2]; + num++; + ref QuestSequence reference95 = ref span137[num]; QuestSequence obj88 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - Span span59 = CollectionsMarshal.AsSpan(list140); - ref QuestStep reference96 = ref span59[0]; + index2 = 3; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + ref QuestStep reference96 = ref span140[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155); SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = 304; + Span span141 = CollectionsMarshal.AsSpan(list141); + num4 = 0; + span141[num4] = 304; skipStepConditions9.InTerritory = list141; skipStepConditions9.NearPosition = new NearPositionCondition { @@ -57106,17 +69080,20 @@ public static class AssemblyQuestLoader skipConditions10.StepIf = skipStepConditions9; questStep9.SkipConditions = skipConditions10; reference96 = questStep9; - ref QuestStep reference97 = ref span59[1]; + num2++; + ref QuestStep reference97 = ref span140[num2]; QuestStep obj89 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) { DisableNavmesh = true }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = 304; + num4 = 1; + List list142 = new List(num4); + CollectionsMarshal.SetCount(list142, num4); + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span142[num3] = 304; skipStepConditions10.InTerritory = list142; skipStepConditions10.NearPosition = new NearPositionCondition { @@ -57127,7 +69104,8 @@ public static class AssemblyQuestLoader skipConditions11.StepIf = skipStepConditions10; obj89.SkipConditions = skipConditions11; reference97 = obj89; - span59[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006525u, new Vector3(-478.3551f, 288.4877f, 168.01697f), 155) + num2++; + span140[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006525u, new Vector3(-478.3551f, 288.4877f, 168.01697f), 155) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -57136,7 +69114,8 @@ public static class AssemblyQuestLoader }; obj88.Steps = list140; reference95 = obj88; - ref QuestSequence reference98 = ref span58[3]; + num++; + ref QuestSequence reference98 = ref span137[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -57144,16 +69123,19 @@ public static class AssemblyQuestLoader num2 = 3; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span60 = CollectionsMarshal.AsSpan(list143); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) { Mount = true }; - span60[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155) + index2++; + span143[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155) { DisableNavmesh = true }; - span60[2] = new QuestStep(EInteractionType.CompleteQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155); + index2++; + span143[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155); obj90.Steps = list143; reference98 = obj90; questRoot21.QuestSequence = list137; @@ -57163,27 +69145,33 @@ public static class AssemblyQuestLoader num = 1; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - CollectionsMarshal.AsSpan(list144)[0] = "JerryWester"; + Span span144 = CollectionsMarshal.AsSpan(list144); + index = 0; + span144[index] = "JerryWester"; questRoot22.Author = list144; - num = 3; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - Span span61 = CollectionsMarshal.AsSpan(list145); - ref QuestSequence reference99 = ref span61[0]; + index = 3; + List list145 = new List(index); + CollectionsMarshal.SetCount(list145, index); + Span span145 = CollectionsMarshal.AsSpan(list145); + num = 0; + ref QuestSequence reference99 = ref span145[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006528u, new Vector3(-698.51227f, 242.18399f, 375.17358f), 155) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006528u, new Vector3(-698.51227f, 242.18399f, 375.17358f), 155) { StopDistance = 5f }; obj91.Steps = list146; reference99 = obj91; - ref QuestSequence reference100 = ref span61[1]; + num++; + ref QuestSequence reference100 = ref span145[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -57191,30 +69179,38 @@ public static class AssemblyQuestLoader num2 = 5; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span62 = CollectionsMarshal.AsSpan(list147); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155); - span62[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155); + index2++; + span147[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) { DisableNavmesh = true }; - span62[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-217.57614f, 217.23946f, 706.57166f), 155); - span62[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 156) + index2++; + span147[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-217.57614f, 217.23946f, 706.57166f), 155); + index2++; + span147[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 156) { StopDistance = 5f, Aetheryte = EAetheryteLocation.MorDhona }; - span62[4] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); + index2++; + span147[index2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); obj92.Steps = list147; reference100 = obj92; - ref QuestSequence reference101 = ref span61[2]; + num++; + ref QuestSequence reference101 = ref span145[num]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156); + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156); obj93.Steps = list148; reference101 = obj93; questRoot22.QuestSequence = list145; @@ -57224,13 +69220,16 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "JerryWester"; + Span span149 = CollectionsMarshal.AsSpan(list149); + index = 0; + span149[index] = "JerryWester"; questRoot23.Author = list149; - num = 5; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span63 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference102 = ref span63[0]; + index = 5; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + Span span150 = CollectionsMarshal.AsSpan(list150); + num = 0; + ref QuestSequence reference102 = ref span150[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 @@ -57238,24 +69237,29 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156); + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156); obj94.Steps = list151; reference102 = obj94; - ref QuestSequence reference103 = ref span63[1]; + num++; + ref QuestSequence reference103 = ref span150[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - Span span64 = CollectionsMarshal.AsSpan(list152); - span64[0] = new QuestStep(EInteractionType.Combat, null, new Vector3(-420.5539f, -16.922302f, -325.30713f), 156) + index2 = 2; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.Combat, null, new Vector3(-420.5539f, -16.922302f, -325.30713f), 156) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny, CombatDelaySecondsAtStart = 2f }; - ref QuestStep reference104 = ref span64[1]; + num2++; + ref QuestStep reference104 = ref span152[num2]; QuestStep obj96 = new QuestStep(EInteractionType.Combat, 2002201u, new Vector3(-420.5539f, -16.922302f, -325.30713f), 156) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -57263,12 +69267,15 @@ public static class AssemblyQuestLoader num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = 43u; + Span span153 = CollectionsMarshal.AsSpan(list153); + num4 = 0; + span153[num4] = 43u; obj96.KillEnemyDataIds = list153; reference104 = obj96; obj95.Steps = list152; reference103 = obj95; - ref QuestSequence reference105 = ref span63[2]; + num++; + ref QuestSequence reference105 = ref span150[num]; QuestSequence obj97 = new QuestSequence { Sequence = 2 @@ -57276,24 +69283,30 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 2002202u, new Vector3(-420.52344f, -16.922302f, -325.30713f), 156); + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.Interact, 2002202u, new Vector3(-420.52344f, -16.922302f, -325.30713f), 156); obj97.Steps = list154; reference105 = obj97; - ref QuestSequence reference106 = ref span63[3]; + num++; + ref QuestSequence reference106 = ref span150[num]; QuestSequence obj98 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1006534u, new Vector3(28.213867f, 20.662334f, -688.4413f), 156) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span155[num2] = new QuestStep(EInteractionType.Interact, 1006534u, new Vector3(28.213867f, 20.662334f, -688.4413f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj98.Steps = list155; reference106 = obj98; - ref QuestSequence reference107 = ref span63[4]; + num++; + ref QuestSequence reference107 = ref span150[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -57301,7 +69314,9 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156); + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156); obj99.Steps = list156; reference107 = obj99; questRoot23.QuestSequence = list150; @@ -57315,13 +69330,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -57329,114 +69347,155 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1, Comment = "'Invalid target' messages can just be bad positioning?" }; - num2 = 12; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 12; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-148.50606f, -0.6686005f, -615.3246f), 156); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span5 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list5; skipConditions.StepIf = skipStepConditions; questStep.SkipConditions = skipConditions; reference3 = questStep; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, 2002232u, new Vector3(-146.92914f, 0.47296143f, -616.0525f), 156) { DelaySecondsAtStart = 2f, ItemId = 2000766u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = 46u; + num4 = 1; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span6[num3] = 46u; obj3.KillEnemyDataIds = list6; num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span4 = CollectionsMarshal.AsSpan(list7); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj3.CompletionQuestVariablesFlags = list7; reference4 = obj3; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span4[num2]; QuestStep obj4 = new QuestStep(EInteractionType.UseItem, 2002233u, new Vector3(-202.07526f, 3.8909912f, -625.90985f), 156) { ItemId = 2000766u }; - num3 = 6; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span5 = CollectionsMarshal.AsSpan(list8); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + Span span8 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list8; reference5 = obj4; - ref QuestStep reference6 = ref span2[3]; + num2++; + ref QuestStep reference6 = ref span4[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-219.34567f, 4.551038f, -637.8296f), 156); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span6 = CollectionsMarshal.AsSpan(list9); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span9 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list9; skipConditions2.StepIf = skipStepConditions2; questStep2.SkipConditions = skipConditions2; reference6 = questStep2; - ref QuestStep reference7 = ref span2[4]; + num2++; + ref QuestStep reference7 = ref span4[num2]; QuestStep obj5 = new QuestStep(EInteractionType.UseItem, 2002234u, new Vector3(-216.81549f, 5.6915283f, -637.4762f), 156) { ItemId = 2000766u }; - num3 = 6; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - Span span7 = CollectionsMarshal.AsSpan(list10); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + Span span10 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj5.CompletionQuestVariablesFlags = list10; reference7 = obj5; - ref QuestStep reference8 = ref span2[5]; + num2++; + ref QuestStep reference8 = ref span4[num2]; QuestStep obj6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-196.89899f, 5.426553f, -658.71454f), 156) { Comment = "Avoids pit" @@ -57446,39 +69505,53 @@ public static class AssemblyQuestLoader num3 = 6; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - Span span8 = CollectionsMarshal.AsSpan(list11); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span11 = CollectionsMarshal.AsSpan(list11); + num4 = 0; + span11[num4] = null; + num4++; + span11[num4] = null; + num4++; + span11[num4] = null; + num4++; + span11[num4] = null; + num4++; + span11[num4] = null; + num4++; + span11[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list11; skipConditions3.StepIf = skipStepConditions3; obj6.SkipConditions = skipConditions3; reference8 = obj6; - ref QuestStep reference9 = ref span2[6]; + num2++; + ref QuestStep reference9 = ref span4[num2]; QuestStep obj7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-170.45108f, 3.23747f, -656.8099f), 156) { Comment = "Move into LOS" }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - Span span9 = CollectionsMarshal.AsSpan(list12); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list12 = new List(num4); + CollectionsMarshal.SetCount(list12, num4); + Span span12 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span12[num3] = null; + num3++; + span12[num3] = null; + num3++; + span12[num3] = null; + num3++; + span12[num3] = null; + num3++; + span12[num3] = null; + num3++; + span12[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list12; skipConditions4.StepIf = skipStepConditions4; obj7.SkipConditions = skipConditions4; reference9 = obj7; - ref QuestStep reference10 = ref span2[7]; + num2++; + ref QuestStep reference10 = ref span4[num2]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, 2002230u, new Vector3(-171.52673f, 4.0131226f, -655.787f), 156) { DelaySecondsAtStart = 2f, @@ -57488,39 +69561,52 @@ public static class AssemblyQuestLoader num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 46u; + Span span13 = CollectionsMarshal.AsSpan(list13); + num4 = 0; + span13[num4] = 46u; obj8.KillEnemyDataIds = list13; - num3 = 6; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - Span span10 = CollectionsMarshal.AsSpan(list14); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list14 = new List(num4); + CollectionsMarshal.SetCount(list14, num4); + Span span14 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span14[num3] = null; + num3++; + span14[num3] = null; + num3++; + span14[num3] = null; + num3++; + span14[num3] = null; + num3++; + span14[num3] = null; + num3++; + span14[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj8.CompletionQuestVariablesFlags = list14; reference10 = obj8; - span2[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.67096f, 2.7818115f, -634.4776f), 156); - span2[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.94295f, 13.794385f, -610.4647f), 156) + num2++; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.67096f, 2.7818115f, -634.4776f), 156); + num2++; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.94295f, 13.794385f, -610.4647f), 156) { DisableNavmesh = true, Comment = "TODO Unsure if this can be reached without flying, or needs more nav" }; - span2[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-175.24794f, 10.096513f, -605.4419f), 156) + num2++; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-175.24794f, 10.096513f, -605.4419f), 156) { DisableNavmesh = true, Mount = false }; - span2[11] = new QuestStep(EInteractionType.UseItem, 2002231u, new Vector3(-174.91425f, 10.757568f, -603.8148f), 156) + num2++; + span4[num2] = new QuestStep(EInteractionType.UseItem, 2002231u, new Vector3(-174.91425f, 10.757568f, -603.8148f), 156) { DelaySecondsAtStart = 2f, ItemId = 2000766u }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference11 = ref span[2]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -57528,7 +69614,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156) + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -57541,24 +69629,30 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "JerryWester"; + Span span16 = CollectionsMarshal.AsSpan(list16); + index = 0; + span16[index] = "JerryWester"; questRoot2.Author = list16; - num = 3; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span11 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span11[0]; + index = 3; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + Span span17 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span17[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156); obj10.Steps = list18; reference12 = obj10; - ref QuestSequence reference13 = ref span11[1]; + num++; + ref QuestSequence reference13 = ref span17[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -57566,8 +69660,9 @@ public static class AssemblyQuestLoader num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span12 = CollectionsMarshal.AsSpan(list19); - ref QuestStep reference14 = ref span12[0]; + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref QuestStep reference14 = ref span19[index2]; QuestStep obj12 = new QuestStep(EInteractionType.Combat, null, new Vector3(-505.211f, -1.9684448f, -467.46014f), 156) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -57575,22 +69670,28 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = 55u; + Span span20 = CollectionsMarshal.AsSpan(list20); + num4 = 0; + span20[num4] = 55u; obj12.KillEnemyDataIds = list20; obj12.CombatDelaySecondsAtStart = 5f; reference14 = obj12; - span12[1] = new QuestStep(EInteractionType.Interact, 2002238u, new Vector3(-505.211f, -1.9684448f, -467.46014f), 156); + index2++; + span19[index2] = new QuestStep(EInteractionType.Interact, 2002238u, new Vector3(-505.211f, -1.9684448f, -467.46014f), 156); obj11.Steps = list19; reference13 = obj11; - ref QuestSequence reference15 = ref span11[2]; + num++; + ref QuestSequence reference15 = ref span17[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -57603,13 +69704,16 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "JerryWester"; + Span span22 = CollectionsMarshal.AsSpan(list22); + index = 0; + span22[index] = "JerryWester"; questRoot3.Author = list22; - num = 4; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span13 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference16 = ref span13[0]; + index = 4; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + Span span23 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference16 = ref span23[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -57617,7 +69721,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156) + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -57631,21 +69737,25 @@ public static class AssemblyQuestLoader }; obj14.Steps = list24; reference16 = obj14; - ref QuestSequence reference17 = ref span13[1]; + num++; + ref QuestSequence reference17 = ref span23[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Emote, 1006709u, new Vector3(-428.79382f, -6.623729f, -528.6183f), 156) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.Emote, 1006709u, new Vector3(-428.79382f, -6.623729f, -528.6183f), 156) { Emote = EEmote.ImperialSalute }; obj15.Steps = list25; reference17 = obj15; - ref QuestSequence reference18 = ref span13[2]; + num++; + ref QuestSequence reference18 = ref span23[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -57653,13 +69763,16 @@ public static class AssemblyQuestLoader num2 = 3; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span14 = CollectionsMarshal.AsSpan(list26); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.67096f, 2.7818115f, -634.4776f), 156); - span14[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.94295f, 13.794385f, -610.4647f), 156) + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.67096f, 2.7818115f, -634.4776f), 156); + index2++; + span26[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.94295f, 13.794385f, -610.4647f), 156) { DisableNavmesh = true }; - span14[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002329u, new Vector3(-169.8482f, 14.114502f, -609.4606f), 156) + index2++; + span26[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002329u, new Vector3(-169.8482f, 14.114502f, -609.4606f), 156) { ItemId = 2000771u, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -57669,28 +69782,33 @@ public static class AssemblyQuestLoader }; obj16.Steps = list26; reference18 = obj16; - ref QuestSequence reference19 = ref span13[3]; + num++; + ref QuestSequence reference19 = ref span23[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - Span span15 = CollectionsMarshal.AsSpan(list27); - ref QuestStep reference20 = ref span15[0]; + index2 = 2; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + ref QuestStep reference20 = ref span27[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); - num3 = 1; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = new DialogueChoice + num4 = 1; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span28[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSC604_01004_EVENTAREA_WARP_YESNO_TITLE") }; questStep3.DialogueChoices = list28; reference20 = questStep3; - span15[1] = new QuestStep(EInteractionType.CompleteQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); + num2++; + span27[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); obj17.Steps = list27; reference19 = obj17; questRoot3.QuestSequence = list23; @@ -57700,13 +69818,16 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + span29[index] = "JerryWester"; questRoot4.Author = list29; - num = 12; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span16 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference21 = ref span16[0]; + index = 12; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + Span span30 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference21 = ref span30[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -57714,24 +69835,30 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span31[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); obj18.Steps = list31; reference21 = obj18; - ref QuestSequence reference22 = ref span16[1]; + num++; + ref QuestSequence reference22 = ref span30[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1006557u, new Vector3(1.4190674f, -158.5813f, 1.3274536f), 156) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.Interact, 1006557u, new Vector3(1.4190674f, -158.5813f, 1.3274536f), 156) { StopDistance = 5f }; obj19.Steps = list32; reference22 = obj19; - ref QuestSequence reference23 = ref span16[2]; + num++; + ref QuestSequence reference23 = ref span30[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 @@ -57739,7 +69866,9 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -57750,16 +69879,18 @@ public static class AssemblyQuestLoader }; obj20.Steps = list33; reference23 = obj20; - ref QuestSequence reference24 = ref span16[3]; + num++; + ref QuestSequence reference24 = ref span30[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span17 = CollectionsMarshal.AsSpan(list34); - ref QuestStep reference25 = ref span17[0]; + index2 = 2; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref QuestStep reference25 = ref span34[num2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { TargetTerritoryId = (ushort)156, @@ -57768,17 +69899,21 @@ public static class AssemblyQuestLoader num3 = 1; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = new DialogueChoice + Span span35 = CollectionsMarshal.AsSpan(list35); + num4 = 0; + span35[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSC605_01005_Q1_000_000") }; obj22.DialogueChoices = list35; reference25 = obj22; - span17[1] = new QuestStep(EInteractionType.Interact, 1006557u, new Vector3(1.4190674f, -158.5813f, 1.3274536f), 156); + num2++; + span34[num2] = new QuestStep(EInteractionType.Interact, 1006557u, new Vector3(1.4190674f, -158.5813f, 1.3274536f), 156); obj21.Steps = list34; reference24 = obj21; - ref QuestSequence reference26 = ref span16[4]; + num++; + ref QuestSequence reference26 = ref span30[num]; QuestSequence obj23 = new QuestSequence { Sequence = 4 @@ -57786,30 +69921,37 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1006559u, new Vector3(-57.724915f, 3.7940114f, -636.68274f), 156) + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.Interact, 1006559u, new Vector3(-57.724915f, 3.7940114f, -636.68274f), 156) { StopDistance = 7f }; obj23.Steps = list36; reference26 = obj23; - ref QuestSequence reference27 = ref span16[5]; + num++; + ref QuestSequence reference27 = ref span30[num]; QuestSequence obj24 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span18 = CollectionsMarshal.AsSpan(list37); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.67096f, 2.7818115f, -634.4776f), 156); - span18[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.94295f, 13.794385f, -610.4647f), 156) + index2 = 3; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.67096f, 2.7818115f, -634.4776f), 156); + num2++; + span37[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.94295f, 13.794385f, -610.4647f), 156) { DisableNavmesh = true }; - span18[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.3748f, 13.709051f, -610.729f), 156); + num2++; + span37[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.3748f, 13.709051f, -610.729f), 156); obj24.Steps = list37; reference27 = obj24; - ref QuestSequence reference28 = ref span16[6]; + num++; + ref QuestSequence reference28 = ref span30[num]; QuestSequence obj25 = new QuestSequence { Sequence = 6 @@ -57817,26 +69959,32 @@ public static class AssemblyQuestLoader num2 = 2; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span19 = CollectionsMarshal.AsSpan(list38); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.43071f, -2.638534f, -595.8602f), 156) + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.43071f, -2.638534f, -595.8602f), 156) { DisableNavmesh = true }; - span19[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-227.08566f, 13.4605465f, -670.02313f), 156); + index2++; + span38[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-227.08566f, 13.4605465f, -670.02313f), 156); obj25.Steps = list38; reference28 = obj25; - ref QuestSequence reference29 = ref span16[7]; + num++; + ref QuestSequence reference29 = ref span30[num]; QuestSequence obj26 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-65.40249f, 2.9154358f, -634.5249f), 156); + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-65.40249f, 2.9154358f, -634.5249f), 156); obj26.Steps = list39; reference29 = obj26; - ref QuestSequence reference30 = ref span16[8]; + num++; + ref QuestSequence reference30 = ref span30[num]; QuestSequence obj27 = new QuestSequence { Sequence = 8 @@ -57844,24 +69992,30 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1006559u, new Vector3(-57.724915f, 3.7940114f, -636.68274f), 156); + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = new QuestStep(EInteractionType.Interact, 1006559u, new Vector3(-57.724915f, 3.7940114f, -636.68274f), 156); obj27.Steps = list40; reference30 = obj27; - ref QuestSequence reference31 = ref span16[9]; + num++; + ref QuestSequence reference31 = ref span30[num]; QuestSequence obj28 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Emote, 1006561u, new Vector3(-59.31189f, 3.32667f, -637.7814f), 156) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.Emote, 1006561u, new Vector3(-59.31189f, 3.32667f, -637.7814f), 156) { Emote = EEmote.Welcome }; obj28.Steps = list41; reference31 = obj28; - ref QuestSequence reference32 = ref span16[10]; + num++; + ref QuestSequence reference32 = ref span30[num]; QuestSequence obj29 = new QuestSequence { Sequence = 10 @@ -57869,7 +70023,9 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006560u, new Vector3(-60.135864f, 3.1014364f, -641.3519f), 156) + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006560u, new Vector3(-60.135864f, 3.1014364f, -641.3519f), 156) { StopDistance = 7f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -57879,15 +70035,18 @@ public static class AssemblyQuestLoader }; obj29.Steps = list42; reference32 = obj29; - ref QuestSequence reference33 = ref span16[11]; + num++; + ref QuestSequence reference33 = ref span30[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); obj30.Steps = list43; reference33 = obj30; questRoot4.QuestSequence = list30; @@ -57897,13 +70056,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + Span span44 = CollectionsMarshal.AsSpan(list44); + index = 0; + span44[index] = "liza"; questRoot5.Author = list44; - num = 2; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span20 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference34 = ref span20[0]; + index = 2; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + Span span45 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference34 = ref span45[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -57911,23 +70073,28 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj31.Steps = list46; reference34 = obj31; - ref QuestSequence reference35 = ref span20[1]; + num++; + ref QuestSequence reference35 = ref span45[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span21 = CollectionsMarshal.AsSpan(list47); - span21[0] = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132) + index2 = 2; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132) { TargetTerritoryId = (ushort)204 }; - span21[1] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) + num2++; + span47[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) { DisableNavmesh = true, NextQuestId = new QuestId(1008) @@ -57941,13 +70108,16 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + Span span48 = CollectionsMarshal.AsSpan(list48); + index = 0; + span48[index] = "liza"; questRoot6.Author = list48; - num = 3; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span22 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference36 = ref span22[0]; + index = 3; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + Span span49 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference36 = ref span49[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -57955,48 +70125,62 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204); + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204); obj33.Steps = list50; reference36 = obj33; - ref QuestSequence reference37 = ref span22[1]; + num++; + ref QuestSequence reference37 = ref span49[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - Span span23 = CollectionsMarshal.AsSpan(list51); - ref QuestStep reference38 = ref span23[0]; + index2 = 5; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + ref QuestStep reference38 = ref span51[num2]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 2001215u, new Vector3(0.002457563f, 1.052062f, 9.820032f), 204) { TargetTerritoryId = (ushort)132 }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = 204; + num4 = 1; + List list52 = new List(num4); + CollectionsMarshal.SetCount(list52, num4); + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span52[num3] = 204; skipStepConditions5.NotInTerritory = list52; skipConditions5.StepIf = skipStepConditions5; obj35.SkipConditions = skipConditions5; reference38 = obj35; - ref QuestStep reference39 = ref span23[1]; + num2++; + ref QuestStep reference39 = ref span51[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1000195u, new Vector3(197.4364f, 0.0026046988f, 57.114502f), 132); num3 = 6; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span24 = CollectionsMarshal.AsSpan(list53); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span53 = CollectionsMarshal.AsSpan(list53); + num4 = 0; + span53[num4] = null; + num4++; + span53[num4] = null; + num4++; + span53[num4] = null; + num4++; + span53[num4] = null; + num4++; + span53[num4] = null; + num4++; + span53[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list53; reference39 = questStep4; - ref QuestStep reference40 = ref span23[2]; + num2++; + ref QuestStep reference40 = ref span51[num2]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 1000156u, new Vector3(6.6376343f, 1.1442462f, -11.795227f), 132) { AethernetShortcut = new AethernetShortcut @@ -58005,49 +70189,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Gridania } }; - num3 = 6; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span25 = CollectionsMarshal.AsSpan(list54); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list54 = new List(num4); + CollectionsMarshal.SetCount(list54, num4); + Span span54 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj36.CompletionQuestVariablesFlags = list54; reference40 = obj36; - ref QuestStep reference41 = ref span23[3]; + num2++; + ref QuestStep reference41 = ref span51[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1000122u, new Vector3(88.60913f, -8.685379f, 128.64868f), 132); num3 = 6; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - Span span26 = CollectionsMarshal.AsSpan(list55); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span55 = CollectionsMarshal.AsSpan(list55); + num4 = 0; + span55[num4] = null; + num4++; + span55[num4] = null; + num4++; + span55[num4] = null; + num4++; + span55[num4] = null; + num4++; + span55[num4] = null; + num4++; + span55[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list55; reference41 = questStep5; - ref QuestStep reference42 = ref span23[4]; + num2++; + ref QuestStep reference42 = ref span51[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1000372u, new Vector3(39.53601f, -8.041565f, 112.13855f), 132); - num3 = 6; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - Span span27 = CollectionsMarshal.AsSpan(list56); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list56 = new List(num4); + CollectionsMarshal.SetCount(list56, num4); + Span span56 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span56[num3] = null; + num3++; + span56[num3] = null; + num3++; + span56[num3] = null; + num3++; + span56[num3] = null; + num3++; + span56[num3] = null; + num3++; + span56[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list56; reference42 = questStep6; obj34.Steps = list51; reference37 = obj34; - ref QuestSequence reference43 = ref span22[2]; + num++; + ref QuestSequence reference43 = ref span49[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -58055,8 +70260,9 @@ public static class AssemblyQuestLoader num2 = 2; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span28 = CollectionsMarshal.AsSpan(list57); - span28[0] = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132) + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132) { TargetTerritoryId = (ushort)204, AethernetShortcut = new AethernetShortcut @@ -58065,7 +70271,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - span28[1] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) + index2++; + span57[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) { DisableNavmesh = true, NextQuestId = new QuestId(1009) @@ -58079,24 +70286,30 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "liza"; + Span span58 = CollectionsMarshal.AsSpan(list58); + index = 0; + span58[index] = "liza"; questRoot7.Author = list58; - num = 6; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span29 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference44 = ref span29[0]; + index = 6; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + Span span59 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference44 = ref span59[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204); + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204); obj38.Steps = list60; reference44 = obj38; - ref QuestSequence reference45 = ref span29[1]; + num++; + ref QuestSequence reference45 = ref span59[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -58104,26 +70317,31 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1006584u, new Vector3(193.83533f, 7.8634253f, -57.724915f), 153) + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new QuestStep(EInteractionType.Interact, 1006584u, new Vector3(193.83533f, 7.8634253f, -57.724915f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj39.Steps = list61; reference45 = obj39; - ref QuestSequence reference46 = ref span29[2]; + num++; + ref QuestSequence reference46 = ref span59[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - Span span30 = CollectionsMarshal.AsSpan(list62); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(616.5126f, 22.329094f, 84.68576f), 153) + index2 = 2; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(616.5126f, 22.329094f, 84.68576f), 153) { Fly = true }; - ref QuestStep reference47 = ref span30[1]; + num2++; + ref QuestStep reference47 = ref span62[num2]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, 2002241u, new Vector3(617.21216f, 23.605652f, 83.26843f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -58131,12 +70349,15 @@ public static class AssemblyQuestLoader num3 = 1; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - CollectionsMarshal.AsSpan(list63)[0] = 2198u; + Span span63 = CollectionsMarshal.AsSpan(list63); + num4 = 0; + span63[num4] = 2198u; obj41.KillEnemyDataIds = list63; reference47 = obj41; obj40.Steps = list62; reference46 = obj40; - ref QuestSequence reference48 = ref span29[3]; + num++; + ref QuestSequence reference48 = ref span59[num]; QuestSequence obj42 = new QuestSequence { Sequence = 3 @@ -58144,24 +70365,30 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 2002614u, new Vector3(617.21216f, 23.605652f, 83.26843f), 153); + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.Interact, 2002614u, new Vector3(617.21216f, 23.605652f, 83.26843f), 153); obj42.Steps = list64; reference48 = obj42; - ref QuestSequence reference49 = ref span29[4]; + num++; + ref QuestSequence reference49 = ref span59[num]; QuestSequence obj43 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1006584u, new Vector3(193.83533f, 7.8634253f, -57.724915f), 153) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span65[num2] = new QuestStep(EInteractionType.Interact, 1006584u, new Vector3(193.83533f, 7.8634253f, -57.724915f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj43.Steps = list65; reference49 = obj43; - ref QuestSequence reference50 = ref span29[5]; + num++; + ref QuestSequence reference50 = ref span59[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -58169,12 +70396,14 @@ public static class AssemblyQuestLoader num2 = 2; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span31 = CollectionsMarshal.AsSpan(list66); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(210.56421f, 18.119999f, -21.370262f), 153) + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span66[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(210.56421f, 18.119999f, -21.370262f), 153) { Fly = true }; - span31[1] = new QuestStep(EInteractionType.CompleteQuest, 1006585u, new Vector3(209.3385f, 18.119999f, -21.957764f), 153) + index2++; + span66[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006585u, new Vector3(209.3385f, 18.119999f, -21.957764f), 153) { NextQuestId = new QuestId(1012) }; @@ -58187,24 +70416,30 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "croizat"; + Span span67 = CollectionsMarshal.AsSpan(list67); + index = 0; + span67[index] = "croizat"; questRoot8.Author = list67; - num = 3; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span32 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference51 = ref span32[0]; + index = 3; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + Span span68 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference51 = ref span68[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006586u, new Vector3(199.26746f, 10.380431f, -85.404785f), 153); + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006586u, new Vector3(199.26746f, 10.380431f, -85.404785f), 153); obj45.Steps = list69; reference51 = obj45; - ref QuestSequence reference52 = ref span32[1]; + num++; + ref QuestSequence reference52 = ref span68[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -58212,15 +70447,19 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list70)[0]; + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + ref QuestStep reference53 = ref span70[index2]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(391.67035f, -0.12984455f, 122.68336f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new ComplexCombatData + num4 = 1; + List list71 = new List(num4); + CollectionsMarshal.SetCount(list71, num4); + Span span71 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span71[num3] = new ComplexCombatData { DataId = 16u, MinimumKillCount = 5u, @@ -58231,15 +70470,18 @@ public static class AssemblyQuestLoader reference53 = obj47; obj46.Steps = list70; reference52 = obj46; - ref QuestSequence reference54 = ref span32[2]; + num++; + ref QuestSequence reference54 = ref span68[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006586u, new Vector3(199.26746f, 10.380431f, -85.404785f), 153); + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006586u, new Vector3(199.26746f, 10.380431f, -85.404785f), 153); obj48.Steps = list72; reference54 = obj48; questRoot8.QuestSequence = list68; @@ -58249,13 +70491,16 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "croizat"; + Span span73 = CollectionsMarshal.AsSpan(list73); + index = 0; + span73[index] = "croizat"; questRoot9.Author = list73; - num = 4; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span33 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference55 = ref span33[0]; + index = 4; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + Span span74 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference55 = ref span74[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -58263,24 +70508,30 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006587u, new Vector3(180.62097f, 9.909174f, -78.78235f), 153); + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006587u, new Vector3(180.62097f, 9.909174f, -78.78235f), 153); obj49.Steps = list75; reference55 = obj49; - ref QuestSequence reference56 = ref span33[1]; + num++; + ref QuestSequence reference56 = ref span74[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Emote, 1006587u, new Vector3(180.62097f, 9.909174f, -78.78235f), 153) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.Emote, 1006587u, new Vector3(180.62097f, 9.909174f, -78.78235f), 153) { Emote = EEmote.Kneel }; obj50.Steps = list76; reference56 = obj50; - ref QuestSequence reference57 = ref span33[2]; + num++; + ref QuestSequence reference57 = ref span74[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -58288,7 +70539,9 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list77)[0]; + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + ref QuestStep reference58 = ref span77[index2]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, null, new Vector3(540.6762f, 13.79814f, 162.87543f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -58296,7 +70549,9 @@ public static class AssemblyQuestLoader num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new ComplexCombatData + Span span78 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span78[num4] = new ComplexCombatData { DataId = 8u, MinimumKillCount = 3u, @@ -58307,15 +70562,18 @@ public static class AssemblyQuestLoader reference58 = obj52; obj51.Steps = list77; reference57 = obj51; - ref QuestSequence reference59 = ref span33[3]; + num++; + ref QuestSequence reference59 = ref span74[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006587u, new Vector3(180.62097f, 9.909174f, -78.78235f), 153); + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006587u, new Vector3(180.62097f, 9.909174f, -78.78235f), 153); obj53.Steps = list79; reference59 = obj53; questRoot9.QuestSequence = list74; @@ -58325,13 +70583,16 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + Span span80 = CollectionsMarshal.AsSpan(list80); + index = 0; + span80[index] = "liza"; questRoot10.Author = list80; - num = 2; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span34 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference60 = ref span34[0]; + index = 2; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + Span span81 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference60 = ref span81[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -58339,29 +70600,36 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006585u, new Vector3(209.3385f, 18.119999f, -21.957764f), 153); + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006585u, new Vector3(209.3385f, 18.119999f, -21.957764f), 153); obj54.Steps = list82; reference60 = obj54; - ref QuestSequence reference61 = ref span34[1]; + num++; + ref QuestSequence reference61 = ref span81[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - Span span35 = CollectionsMarshal.AsSpan(list83); - span35[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + index2 = 4; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span35[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span35[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span83[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span83[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span35[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) + num2++; + span83[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) { NextQuestId = new QuestId(433) }; @@ -58374,13 +70642,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "Thaksin"; + Span span84 = CollectionsMarshal.AsSpan(list84); + index = 0; + span84[index] = "Thaksin"; questRoot11.Author = list84; - num = 3; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span36 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference62 = ref span36[0]; + index = 3; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference62 = ref span85[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -58388,77 +70659,109 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); obj56.Steps = list86; reference62 = obj56; - ref QuestSequence reference63 = ref span36[1]; + num++; + ref QuestSequence reference63 = ref span85[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span37 = CollectionsMarshal.AsSpan(list87); - ref QuestStep reference64 = ref span37[0]; + index2 = 4; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + ref QuestStep reference64 = ref span87[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1006602u, new Vector3(-321.06506f, 8.830055f, 436.94202f), 146); - num3 = 6; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span38 = CollectionsMarshal.AsSpan(list88); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list88 = new List(num4); + CollectionsMarshal.SetCount(list88, num4); + Span span88 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list88; reference64 = questStep7; - ref QuestStep reference65 = ref span37[1]; + num2++; + ref QuestStep reference65 = ref span87[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1006600u, new Vector3(-283.5279f, 7.652629f, 423.14795f), 146); num3 = 6; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - Span span39 = CollectionsMarshal.AsSpan(list89); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span89 = CollectionsMarshal.AsSpan(list89); + num4 = 0; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list89; reference65 = questStep8; - ref QuestStep reference66 = ref span37[2]; + num2++; + ref QuestStep reference66 = ref span87[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1006599u, new Vector3(-279.98785f, 15.013981f, 373.37292f), 146); - num3 = 6; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - Span span40 = CollectionsMarshal.AsSpan(list90); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list90 = new List(num4); + CollectionsMarshal.SetCount(list90, num4); + Span span90 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list90; reference66 = questStep9; - ref QuestStep reference67 = ref span37[3]; + num2++; + ref QuestStep reference67 = ref span87[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1006601u, new Vector3(-293.53784f, 13.137939f, 354.63477f), 146); num3 = 6; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - Span span41 = CollectionsMarshal.AsSpan(list91); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span91 = CollectionsMarshal.AsSpan(list91); + num4 = 0; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list91; reference67 = questStep10; obj57.Steps = list87; reference63 = obj57; - ref QuestSequence reference68 = ref span36[2]; + num++; + ref QuestSequence reference68 = ref span85[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -58466,7 +70769,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); obj58.Steps = list92; reference68 = obj58; questRoot11.QuestSequence = list85; @@ -58476,27 +70781,33 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "Thaksin"; + Span span93 = CollectionsMarshal.AsSpan(list93); + index = 0; + span93[index] = "Thaksin"; questRoot12.Author = list93; - num = 8; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span42 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference69 = ref span42[0]; + index = 8; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + Span span94 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference69 = ref span94[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.AcceptQuest, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) { Fly = true }; obj59.Steps = list95; reference69 = obj59; - ref QuestSequence reference70 = ref span42[1]; + num++; + ref QuestSequence reference70 = ref span94[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -58504,29 +70815,35 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1006603u, new Vector3(-196.79565f, 78.11096f, 49.851196f), 148) + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.Interact, 1006603u, new Vector3(-196.79565f, 78.11096f, 49.851196f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj60.Steps = list96; reference70 = obj60; - ref QuestSequence reference71 = ref span42[2]; + num++; + ref QuestSequence reference71 = ref span94[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span97[num2] = new QuestStep(EInteractionType.Interact, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj61.Steps = list97; reference71 = obj61; - ref QuestSequence reference72 = ref span42[3]; + num++; + ref QuestSequence reference72 = ref span94[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -58534,42 +70851,50 @@ public static class AssemblyQuestLoader num2 = 4; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span43 = CollectionsMarshal.AsSpan(list98); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-207.9934f, 66.78476f, -258.7822f), 180) + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span98[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-207.9934f, 66.78476f, -258.7822f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; - span43[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.89017f, 63.51318f, -255.7134f), 180) + index2++; + span98[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.89017f, 63.51318f, -255.7134f), 180) { Fly = true }; - span43[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-356.22986f, 57.972702f, -381.27402f), 180) + index2++; + span98[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-356.22986f, 57.972702f, -381.27402f), 180) { Fly = true }; - span43[3] = new QuestStep(EInteractionType.Interact, 1006604u, new Vector3(-278.73657f, 4.1657104f, -580.04126f), 180) + index2++; + span98[index2] = new QuestStep(EInteractionType.Interact, 1006604u, new Vector3(-278.73657f, 4.1657104f, -580.04126f), 180) { Fly = true }; obj62.Steps = list98; reference72 = obj62; - ref QuestSequence reference73 = ref span42[4]; + num++; + ref QuestSequence reference73 = ref span94[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.Interact, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj63.Steps = list99; reference73 = obj63; - ref QuestSequence reference74 = ref span42[5]; + num++; + ref QuestSequence reference74 = ref span94[num]; QuestSequence obj64 = new QuestSequence { Sequence = 5 @@ -58577,7 +70902,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-192.67111f, 35.175262f, 129.13567f), 146) + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-192.67111f, 35.175262f, 129.13567f), 146) { Fly = true, ItemId = 2000779u, @@ -58585,21 +70912,25 @@ public static class AssemblyQuestLoader }; obj64.Steps = list100; reference74 = obj64; - ref QuestSequence reference75 = ref span42[6]; + num++; + ref QuestSequence reference75 = ref span94[num]; QuestSequence obj65 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1006605u, new Vector3(-192.49261f, 35.210636f, 129.13708f), 146) + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.Interact, 1006605u, new Vector3(-192.49261f, 35.210636f, 129.13708f), 146) { Fly = true }; obj65.Steps = list101; reference75 = obj65; - ref QuestSequence reference76 = ref span42[7]; + num++; + ref QuestSequence reference76 = ref span94[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -58607,7 +70938,9 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span102[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) { Fly = true }; @@ -58620,27 +70953,33 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "skiaz"; + Span span103 = CollectionsMarshal.AsSpan(list103); + index = 0; + span103[index] = "skiaz"; questRoot13.Author = list103; - num = 4; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span44 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference77 = ref span44[0]; + index = 4; + List list104 = new List(index); + CollectionsMarshal.SetCount(list104, index); + Span span104 = CollectionsMarshal.AsSpan(list104); + num = 0; + ref QuestSequence reference77 = ref span104[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) { Fly = true }; obj67.Steps = list105; reference77 = obj67; - ref QuestSequence reference78 = ref span44[1]; + num++; + ref QuestSequence reference78 = ref span104[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -58648,47 +70987,57 @@ public static class AssemblyQuestLoader num2 = 11; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span45 = CollectionsMarshal.AsSpan(list106); - span45[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) { Fly = true }; - span45[1] = new QuestStep(EInteractionType.None, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) + index2++; + span106[index2] = new QuestStep(EInteractionType.None, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) { Land = true }; - span45[2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) + index2++; + span106[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) { ItemId = 2000782u, GroundTarget = true }; - ref QuestStep reference79 = ref span45[3]; + index2++; + ref QuestStep reference79 = ref span106[index2]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, null, new Vector3(-440.3941f, -40.517452f, -225.2038f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - Span span46 = CollectionsMarshal.AsSpan(list107); - span46[0] = 2101u; - span46[1] = 2098u; + num4 = 2; + List list107 = new List(num4); + CollectionsMarshal.SetCount(list107, num4); + Span span107 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span107[num3] = 2101u; + num3++; + span107[num3] = 2098u; obj69.KillEnemyDataIds = list107; reference79 = obj69; - span45[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) + index2++; + span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) { Fly = true }; - span45[5] = new QuestStep(EInteractionType.None, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) + index2++; + span106[index2] = new QuestStep(EInteractionType.None, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) { Land = true }; - span45[6] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) + index2++; + span106[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) { ItemId = 2000782u, GroundTarget = true }; - ref QuestStep reference80 = ref span45[7]; + index2++; + ref QuestStep reference80 = ref span106[index2]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -58696,59 +71045,71 @@ public static class AssemblyQuestLoader num3 = 2; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - Span span47 = CollectionsMarshal.AsSpan(list108); - span47[0] = 2101u; - span47[1] = 2098u; + Span span108 = CollectionsMarshal.AsSpan(list108); + num4 = 0; + span108[num4] = 2101u; + num4++; + span108[num4] = 2098u; obj70.KillEnemyDataIds = list108; reference80 = obj70; - span45[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) + index2++; + span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) { Fly = true }; - span45[9] = new QuestStep(EInteractionType.None, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) + index2++; + span106[index2] = new QuestStep(EInteractionType.None, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) { Land = true }; - span45[10] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) + index2++; + span106[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) { ItemId = 2000782u, GroundTarget = true }; obj68.Steps = list106; reference78 = obj68; - ref QuestSequence reference81 = ref span44[2]; + num++; + ref QuestSequence reference81 = ref span104[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span48 = CollectionsMarshal.AsSpan(list109); - ref QuestStep reference82 = ref span48[0]; + index2 = 3; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + ref QuestStep reference82 = ref span109[num2]; QuestStep obj72 = new QuestStep(EInteractionType.Combat, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - Span span49 = CollectionsMarshal.AsSpan(list110); - span49[0] = 2101u; - span49[1] = 2098u; + num4 = 2; + List list110 = new List(num4); + CollectionsMarshal.SetCount(list110, num4); + Span span110 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span110[num3] = 2101u; + num3++; + span110[num3] = 2098u; obj72.KillEnemyDataIds = list110; reference82 = obj72; - span48[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-402.49347f, -32.838806f, -234.15048f), 138) + num2++; + span109[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-402.49347f, -32.838806f, -234.15048f), 138) { Fly = false }; - span48[2] = new QuestStep(EInteractionType.Interact, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) + num2++; + span109[num2] = new QuestStep(EInteractionType.Interact, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) { Fly = true }; obj71.Steps = list109; reference81 = obj71; - ref QuestSequence reference83 = ref span44[3]; + num++; + ref QuestSequence reference83 = ref span104[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -58756,8 +71117,9 @@ public static class AssemblyQuestLoader num2 = 5; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span50 = CollectionsMarshal.AsSpan(list111); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.34997f, 17.649893f, -256.22174f), 140) + Span span111 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span111[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.34997f, 17.649893f, -256.22174f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, @@ -58774,16 +71136,20 @@ public static class AssemblyQuestLoader } } }; - span50[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-491.869f, 19.009003f, -372.63593f), 140) + index2++; + span111[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-491.869f, 19.009003f, -372.63593f), 140) { Fly = true }; - span50[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span50[3] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + index2++; + span111[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + index2++; + span111[index2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span50[4] = new QuestStep(EInteractionType.CompleteQuest, 1007488u, new Vector3(-1.2055054f, -2.0000095f, -28.000305f), 212); + index2++; + span111[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007488u, new Vector3(-1.2055054f, -2.0000095f, -28.000305f), 212); obj73.Steps = list111; reference83 = obj73; questRoot13.QuestSequence = list104; @@ -58793,27 +71159,33 @@ public static class AssemblyQuestLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - CollectionsMarshal.AsSpan(list112)[0] = "JerryWester"; + Span span112 = CollectionsMarshal.AsSpan(list112); + index = 0; + span112[index] = "JerryWester"; questRoot14.Author = list112; - num = 2; - List list113 = new List(num); - CollectionsMarshal.SetCount(list113, num); - Span span51 = CollectionsMarshal.AsSpan(list113); - ref QuestSequence reference84 = ref span51[0]; + index = 2; + List list113 = new List(index); + CollectionsMarshal.SetCount(list113, index); + Span span113 = CollectionsMarshal.AsSpan(list113); + num = 0; + ref QuestSequence reference84 = ref span113[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006578u, new Vector3(-467.27704f, 22.996977f, -475.21173f), 140) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006578u, new Vector3(-467.27704f, 22.996977f, -475.21173f), 140) { StopDistance = 7f }; obj74.Steps = list114; reference84 = obj74; - ref QuestSequence reference85 = ref span51[1]; + num++; + ref QuestSequence reference85 = ref span113[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -58821,16 +71193,19 @@ public static class AssemblyQuestLoader num2 = 3; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span52 = CollectionsMarshal.AsSpan(list115); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.738379f, 33f, -495.80618f), 141) + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.738379f, 33f, -495.80618f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - span52[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) + index2++; + span115[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) { Aetheryte = EAetheryteLocation.NorthernThanalanCampBluefog }; - span52[2] = new QuestStep(EInteractionType.CompleteQuest, 1006638u, new Vector3(37.979614f, 4.051331f, 420.27917f), 147); + index2++; + span115[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006638u, new Vector3(37.979614f, 4.051331f, 420.27917f), 147); obj75.Steps = list115; reference85 = obj75; questRoot14.QuestSequence = list113; @@ -58840,24 +71215,30 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "JerryWester"; + Span span116 = CollectionsMarshal.AsSpan(list116); + index = 0; + span116[index] = "JerryWester"; questRoot15.Author = list116; - num = 2; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span53 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference86 = ref span53[0]; + index = 2; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + Span span117 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference86 = ref span117[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj76.Steps = list118; reference86 = obj76; - ref QuestSequence reference87 = ref span53[1]; + num++; + ref QuestSequence reference87 = ref span117[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -58865,12 +71246,14 @@ public static class AssemblyQuestLoader num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span54 = CollectionsMarshal.AsSpan(list119); - span54[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span54[1] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) + index2++; + span119[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) { Comment = "Next quest is picked up as part of 'Moving On'" }; @@ -58883,24 +71266,30 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "JerryWester"; + Span span120 = CollectionsMarshal.AsSpan(list120); + index = 0; + span120[index] = "JerryWester"; questRoot16.Author = list120; - num = 3; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - Span span55 = CollectionsMarshal.AsSpan(list121); - ref QuestSequence reference88 = ref span55[0]; + index = 3; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + Span span121 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference88 = ref span121[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007534u, new Vector3(1.4800415f, -3.0000014f, -48.722107f), 212); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.AcceptQuest, 1007534u, new Vector3(1.4800415f, -3.0000014f, -48.722107f), 212); obj78.Steps = list122; reference88 = obj78; - ref QuestSequence reference89 = ref span55[1]; + num++; + ref QuestSequence reference89 = ref span121[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -58908,39 +71297,47 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj79.Steps = list123; reference89 = obj79; - ref QuestSequence reference90 = ref span55[2]; + num++; + ref QuestSequence reference90 = ref span121[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - Span span56 = CollectionsMarshal.AsSpan(list124); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.992174f, 31.881628f, -3.1655574f), 146) + index2 = 5; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.992174f, 31.881628f, -3.1655574f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(373.0123f, 46.21888f, -47.523537f), 146) + num2++; + span124[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(373.0123f, 46.21888f, -47.523537f), 146) { Fly = true }; - span56[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.2741f, 36.9815f, -153.72185f), 146) + num2++; + span124[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.2741f, 36.9815f, -153.72185f), 146) { Fly = true }; - span56[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(694.0748f, 4.267518f, -84.443855f), 146) + num2++; + span124[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(694.0748f, 4.267518f, -84.443855f), 146) { Fly = true }; - span56[4] = new QuestStep(EInteractionType.CompleteQuest, 2002581u, new Vector3(694.3617f, 7.9193726f, -80.1557f), 146) + num2++; + span124[num2] = new QuestStep(EInteractionType.CompleteQuest, 2002581u, new Vector3(694.3617f, 7.9193726f, -80.1557f), 146) { StopDistance = 5f, Mount = false, @@ -58955,13 +71352,16 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "liza"; + Span span125 = CollectionsMarshal.AsSpan(list125); + index = 0; + span125[index] = "liza"; questRoot17.Author = list125; - num = 5; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span57 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference91 = ref span57[0]; + index = 5; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + Span span126 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference91 = ref span126[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -58969,7 +71369,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - ref QuestStep reference92 = ref CollectionsMarshal.AsSpan(list127)[0]; + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + ref QuestStep reference92 = ref span127[index2]; QuestStep obj82 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -58987,7 +71389,9 @@ public static class AssemblyQuestLoader num3 = 1; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = 128; + Span span128 = CollectionsMarshal.AsSpan(list128); + num4 = 0; + span128[num4] = 128; obj83.InTerritory = list128; skipConditions6.AetheryteShortcutIf = obj83; skipConditions6.AethernetShortcutIf = new SkipAetheryteCondition @@ -58998,21 +71402,25 @@ public static class AssemblyQuestLoader reference92 = obj82; obj81.Steps = list127; reference91 = obj81; - ref QuestSequence reference93 = ref span57[1]; + num++; + ref QuestSequence reference93 = ref span126[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1006761u, new Vector3(520.2562f, 17.62488f, 470.51184f), 137) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span129[num2] = new QuestStep(EInteractionType.Interact, 1006761u, new Vector3(520.2562f, 17.62488f, 470.51184f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj84.Steps = list129; reference93 = obj84; - ref QuestSequence reference94 = ref span57[2]; + num++; + ref QuestSequence reference94 = ref span126[num]; QuestSequence obj85 = new QuestSequence { Sequence = 2 @@ -59020,7 +71428,9 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006763u, new Vector3(494.9568f, 11.450662f, 329.76257f), 137) + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span130[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006763u, new Vector3(494.9568f, 11.450662f, 329.76257f), 137) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -59029,18 +71439,22 @@ public static class AssemblyQuestLoader }; obj85.Steps = list130; reference94 = obj85; - ref QuestSequence reference95 = ref span57[3]; + num++; + ref QuestSequence reference95 = ref span126[num]; QuestSequence obj86 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1006762u, new Vector3(494.16345f, 12.305895f, 337.27014f), 137); + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span131[num2] = new QuestStep(EInteractionType.Interact, 1006762u, new Vector3(494.16345f, 12.305895f, 337.27014f), 137); obj86.Steps = list131; reference95 = obj86; - ref QuestSequence reference96 = ref span57[4]; + num++; + ref QuestSequence reference96 = ref span126[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -59048,7 +71462,9 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + Span span132 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span132[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { NextQuestId = new QuestId(1050) }; @@ -59066,14 +71482,17 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot2.Author = list; QuestRoot questRoot3 = questRoot; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence questSequence = new QuestSequence { Sequence = 0 @@ -59082,8 +71501,9 @@ public static class AssemblyQuestLoader int num2 = 2; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span2 = CollectionsMarshal.AsSpan(list3); - span2[0] = new QuestStep(EInteractionType.EquipItem, null, null, 137) + Span span3 = CollectionsMarshal.AsSpan(list3); + int num3 = 0; + span3[num3] = new QuestStep(EInteractionType.EquipItem, null, null, 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, ItemId = 4544u, @@ -59095,20 +71515,23 @@ public static class AssemblyQuestLoader } } }; - span2[1] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137); questSequence2.Steps = list3; reference = questSequence; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence3 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference3 = ref span3[0]; + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span4 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1004962u, new Vector3(-300.1908f, 7.2785034f, 410.94055f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, @@ -59121,51 +71544,72 @@ public static class AssemblyQuestLoader } }; QuestStep questStep2 = questStep; - int num3 = 6; - List list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span4 = CollectionsMarshal.AsSpan(list4); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + int num4 = 6; + List list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span5 = CollectionsMarshal.AsSpan(list4); + int num5 = 0; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = null; + num5++; + span5[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list4; reference3 = questStep; - ref QuestStep reference4 = ref span3[1]; + num2++; + ref QuestStep reference4 = ref span4[num2]; questStep = new QuestStep(EInteractionType.Interact, 1006735u, new Vector3(-316.1822f, 8.844355f, 433.82922f), 146); QuestStep questStep3 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span5 = CollectionsMarshal.AsSpan(list4); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span6 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list4; reference4 = questStep; - ref QuestStep reference5 = ref span3[2]; + num2++; + ref QuestStep reference5 = ref span4[num2]; questStep = new QuestStep(EInteractionType.Interact, 1006288u, new Vector3(-361.40997f, 8.46532f, 426.13855f), 146); QuestStep questStep4 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span6 = CollectionsMarshal.AsSpan(list4); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span7 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span7[num5] = null; + num5++; + span7[num5] = null; + num5++; + span7[num5] = null; + num5++; + span7[num5] = null; + num5++; + span7[num5] = null; + num5++; + span7[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list4; reference5 = questStep; questSequence3.Steps = list3; reference2 = questSequence; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; questSequence = new QuestSequence { Sequence = 2 @@ -59174,30 +71618,37 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span8 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference7 = ref span8[num3]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(156.89783f, 4.3410587f, 831.42926f), 146) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep5 = questStep; - num3 = 1; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 1917u; + num5 = 1; + List list5 = new List(num5); + CollectionsMarshal.SetCount(list5, num5); + Span span9 = CollectionsMarshal.AsSpan(list5); + num4 = 0; + span9[num4] = 1917u; questStep5.KillEnemyDataIds = list5; reference7 = questStep; questSequence4.Steps = list3; reference6 = questSequence; - ref QuestSequence reference8 = ref span[3]; + num++; + ref QuestSequence reference8 = ref span2[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence5 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span10 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, NextQuestId = new QuestId(1051) @@ -59212,14 +71663,17 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; + Span span11 = CollectionsMarshal.AsSpan(list6); + index = 0; + span11[index] = "liza"; questRoot4.Author = list6; QuestRoot questRoot5 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span7 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference9 = ref span7[0]; + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span12 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference9 = ref span12[num]; questSequence = new QuestSequence { Sequence = 0 @@ -59228,7 +71682,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + Span span13 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span13[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -59241,22 +71697,26 @@ public static class AssemblyQuestLoader }; questSequence6.Steps = list3; reference9 = questSequence; - ref QuestSequence reference10 = ref span7[1]; + num++; + ref QuestSequence reference10 = ref span12[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence7 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006764u, new Vector3(9.689453f, 65.05541f, 46.37207f), 137) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span14 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.Interact, 1006764u, new Vector3(9.689453f, 65.05541f, 46.37207f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; questSequence7.Steps = list3; reference10 = questSequence; - ref QuestSequence reference11 = ref span7[2]; + num++; + ref QuestSequence reference11 = ref span12[num]; questSequence = new QuestSequence { Sequence = 2 @@ -59265,35 +71725,43 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span15 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference12 = ref span15[num3]; questStep = new QuestStep(EInteractionType.Combat, 2002307u, new Vector3(95.8114f, 74.143555f, -45.731323f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep6 = questStep; - num3 = 2; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span8 = CollectionsMarshal.AsSpan(list7); - span8[0] = 2u; - span8[1] = 12u; + num4 = 2; + List list7 = new List(num4); + CollectionsMarshal.SetCount(list7, num4); + Span span16 = CollectionsMarshal.AsSpan(list7); + num5 = 0; + span16[num5] = 2u; + num5++; + span16[num5] = 12u; questStep6.KillEnemyDataIds = list7; reference12 = questStep; questSequence8.Steps = list3; reference11 = questSequence; - ref QuestSequence reference13 = ref span7[3]; + num++; + ref QuestSequence reference13 = ref span12[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence9 = questSequence; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1006768u, new Vector3(9.689453f, 65.162186f, 44.99878f), 137); + num3 = 1; + List list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + Span span17 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.Interact, 1006768u, new Vector3(9.689453f, 65.162186f, 44.99878f), 137); questSequence9.Steps = list8; reference13 = questSequence; - ref QuestSequence reference14 = ref span7[4]; + num++; + ref QuestSequence reference14 = ref span12[num]; questSequence = new QuestSequence { Sequence = 4 @@ -59302,19 +71770,24 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1006783u, new Vector3(-11.490112f, 69.24614f, 30.289062f), 137); + Span span18 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span18[num3] = new QuestStep(EInteractionType.Interact, 1006783u, new Vector3(-11.490112f, 69.24614f, 30.289062f), 137); questSequence10.Steps = list9; reference14 = questSequence; - ref QuestSequence reference15 = ref span7[5]; + num++; + ref QuestSequence reference15 = ref span12[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence11 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span19 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -59330,14 +71803,17 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "liza"; + Span span20 = CollectionsMarshal.AsSpan(list10); + index = 0; + span20[index] = "liza"; questRoot6.Author = list10; QuestRoot questRoot7 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span9 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference16 = ref span9[0]; + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span21 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference16 = ref span21[num]; questSequence = new QuestSequence { Sequence = 0 @@ -59346,7 +71822,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + Span span22 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span22[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -59359,17 +71837,19 @@ public static class AssemblyQuestLoader }; questSequence12.Steps = list3; reference16 = questSequence; - ref QuestSequence reference17 = ref span9[1]; + num++; + ref QuestSequence reference17 = ref span21[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence13 = questSequence; - num2 = 8; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span10 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference18 = ref span10[0]; + num3 = 8; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span23 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference18 = ref span23[num2]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-586.4241f, 236.18538f, 411.9264f), 155) { Fly = true, @@ -59380,16 +71860,22 @@ public static class AssemblyQuestLoader SkipConditions skipConditions2 = skipConditions; SkipStepConditions skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions2 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span11 = CollectionsMarshal.AsSpan(list4); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span24 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span24[num4] = null; + num4++; + span24[num4] = null; + num4++; + span24[num4] = null; + num4++; + span24[num4] = null; + num4++; + span24[num4] = null; + num4++; + span24[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list4; skipConditions2.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition @@ -59398,52 +71884,69 @@ public static class AssemblyQuestLoader }; questStep7.SkipConditions = skipConditions; reference18 = questStep; - ref QuestStep reference19 = ref span10[1]; + num2++; + ref QuestStep reference19 = ref span23[num2]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-608.9161f, 247.47685f, 420.84274f), 155) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep8 = questStep; - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = 1918u; + num4 = 1; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + Span span25 = CollectionsMarshal.AsSpan(list11); + num5 = 0; + span25[num5] = 1918u; questStep8.KillEnemyDataIds = list11; QuestStep questStep9 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions3 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions3 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span12 = CollectionsMarshal.AsSpan(list4); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span26 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span26[num4] = null; + num4++; + span26[num4] = null; + num4++; + span26[num4] = null; + num4++; + span26[num4] = null; + num4++; + span26[num4] = null; + num4++; + span26[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list4; skipConditions3.StepIf = skipStepConditions; questStep9.SkipConditions = skipConditions; reference19 = questStep; - ref QuestStep reference20 = ref span10[2]; + num2++; + ref QuestStep reference20 = ref span23[num2]; questStep = new QuestStep(EInteractionType.Interact, 2002308u, new Vector3(-583.82544f, 234.97363f, 410.94055f), 155); QuestStep questStep10 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span13 = CollectionsMarshal.AsSpan(list4); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span27 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span27[num5] = null; + num5++; + span27[num5] = null; + num5++; + span27[num5] = null; + num5++; + span27[num5] = null; + num5++; + span27[num5] = null; + num5++; + span27[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list4; reference20 = questStep; - ref QuestStep reference21 = ref span10[3]; + num2++; + ref QuestStep reference21 = ref span23[num2]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-52.048523f, 0.869751f, 359.39575f), 153) { Fly = true, @@ -59451,26 +71954,34 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep11 = questStep; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = 1919u; + num5 = 1; + List list12 = new List(num5); + CollectionsMarshal.SetCount(list12, num5); + Span span28 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span28[num4] = 1919u; questStep11.KillEnemyDataIds = list12; QuestStep questStep12 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions4 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions4 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span14 = CollectionsMarshal.AsSpan(list4); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span29 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span29[num5] = null; + num5++; + span29[num5] = null; + num5++; + span29[num5] = null; + num5++; + span29[num5] = null; + num5++; + span29[num5] = null; + num5++; + span29[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list4; skipConditions4.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition @@ -59479,22 +71990,30 @@ public static class AssemblyQuestLoader }; questStep12.SkipConditions = skipConditions; reference21 = questStep; - ref QuestStep reference22 = ref span10[4]; + num2++; + ref QuestStep reference22 = ref span23[num2]; questStep = new QuestStep(EInteractionType.Interact, 2002309u, new Vector3(-52.048523f, 0.869751f, 359.39575f), 153); QuestStep questStep13 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span15 = CollectionsMarshal.AsSpan(list4); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span30 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list4; reference22 = questStep; - ref QuestStep reference23 = ref span10[5]; + num2++; + ref QuestStep reference23 = ref span23[num2]; questStep = new QuestStep(EInteractionType.UseItem, null, null, 153) { TargetTerritoryId = (ushort)140, @@ -59505,68 +72024,91 @@ public static class AssemblyQuestLoader SkipConditions skipConditions5 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions5 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span16 = CollectionsMarshal.AsSpan(list4); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span31 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span31[num5] = null; + num5++; + span31[num5] = null; + num5++; + span31[num5] = null; + num5++; + span31[num5] = null; + num5++; + span31[num5] = null; + num5++; + span31[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list4; skipConditions5.StepIf = skipStepConditions; questStep14.SkipConditions = skipConditions; reference23 = questStep; - ref QuestStep reference24 = ref span10[6]; + num2++; + ref QuestStep reference24 = ref span23[num2]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-283.92462f, 15.060608f, -774.6853f), 140) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep15 = questStep; - num3 = 1; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 1920u; + num5 = 1; + List list13 = new List(num5); + CollectionsMarshal.SetCount(list13, num5); + Span span32 = CollectionsMarshal.AsSpan(list13); + num4 = 0; + span32[num4] = 1920u; questStep15.KillEnemyDataIds = list13; QuestStep questStep16 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions6 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions6 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span17 = CollectionsMarshal.AsSpan(list4); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span33 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span33[num5] = null; + num5++; + span33[num5] = null; + num5++; + span33[num5] = null; + num5++; + span33[num5] = null; + num5++; + span33[num5] = null; + num5++; + span33[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list4; skipConditions6.StepIf = skipStepConditions; questStep16.SkipConditions = skipConditions; reference24 = questStep; - ref QuestStep reference25 = ref span10[7]; + num2++; + ref QuestStep reference25 = ref span23[num2]; questStep = new QuestStep(EInteractionType.Interact, 2002310u, new Vector3(-283.92462f, 15.060608f, -774.6853f), 140); QuestStep questStep17 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span18 = CollectionsMarshal.AsSpan(list4); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span34 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span34[num4] = null; + num4++; + span34[num4] = null; + num4++; + span34[num4] = null; + num4++; + span34[num4] = null; + num4++; + span34[num4] = null; + num4++; + span34[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list4; reference25 = questStep; questSequence13.Steps = list3; reference17 = questSequence; - ref QuestSequence reference26 = ref span9[2]; + num++; + ref QuestSequence reference26 = ref span21[num]; questSequence = new QuestSequence { Sequence = 2 @@ -59575,38 +72117,46 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + Span span35 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span35[num3] = new QuestStep(EInteractionType.Interact, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; questSequence14.Steps = list3; reference26 = questSequence; - ref QuestSequence reference27 = ref span9[3]; + num++; + ref QuestSequence reference27 = ref span21[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence15 = questSequence; - num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span19 = CollectionsMarshal.AsSpan(list3); - span19[0] = new QuestStep(EInteractionType.EquipItem, null, null, 137) + num3 = 4; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span36 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 137) { ItemId = 3684u }; - span19[1] = new QuestStep(EInteractionType.EquipItem, null, null, 137) + num2++; + span36[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 137) { ItemId = 3460u }; - span19[2] = new QuestStep(EInteractionType.EquipItem, null, null, 137) + num2++; + span36[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 137) { ItemId = 3891u }; - span19[3] = new QuestStep(EInteractionType.Interact, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137); + num2++; + span36[num2] = new QuestStep(EInteractionType.Interact, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137); questSequence15.Steps = list3; reference27 = questSequence; - ref QuestSequence reference28 = ref span9[4]; + num++; + ref QuestSequence reference28 = ref span21[num]; questSequence = new QuestSequence { Sequence = 4 @@ -59615,8 +72165,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span20 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference29 = ref span20[0]; + Span span37 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference29 = ref span37[num3]; questStep = new QuestStep(EInteractionType.Combat, 2002311u, new Vector3(-282.7345f, 33.798706f, 300.98413f), 137) { Fly = true, @@ -59624,42 +72175,54 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep18 = questStep; - num3 = 1; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - ref ComplexCombatData reference30 = ref CollectionsMarshal.AsSpan(list14)[0]; + num4 = 1; + List list14 = new List(num4); + CollectionsMarshal.SetCount(list14, num4); + Span span38 = CollectionsMarshal.AsSpan(list14); + num5 = 0; + ref ComplexCombatData reference30 = ref span38[num5]; ComplexCombatData complexCombatData = new ComplexCombatData { DataId = 1921u }; ComplexCombatData complexCombatData2 = complexCombatData; - int num4 = 6; - list4 = new List(num4); - CollectionsMarshal.SetCount(list4, num4); - Span span21 = CollectionsMarshal.AsSpan(list4); - span21[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = null; + int num6 = 6; + list4 = new List(num6); + CollectionsMarshal.SetCount(list4, num6); + Span span39 = CollectionsMarshal.AsSpan(list4); + int num7 = 0; + span39[num7] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num7++; + span39[num7] = null; + num7++; + span39[num7] = null; + num7++; + span39[num7] = null; + num7++; + span39[num7] = null; + num7++; + span39[num7] = null; complexCombatData2.CompletionQuestVariablesFlags = list4; reference30 = complexCombatData; questStep18.ComplexCombatData = list14; reference29 = questStep; - span20[1] = new QuestStep(EInteractionType.Interact, 2002311u, new Vector3(-282.7345f, 33.798706f, 300.98413f), 137); + num3++; + span37[num3] = new QuestStep(EInteractionType.Interact, 2002311u, new Vector3(-282.7345f, 33.798706f, 300.98413f), 137); questSequence16.Steps = list3; reference28 = questSequence; - ref QuestSequence reference31 = ref span9[5]; + num++; + ref QuestSequence reference31 = ref span21[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence17 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span40 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -59675,14 +72238,17 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; + Span span41 = CollectionsMarshal.AsSpan(list15); + index = 0; + span41[index] = "liza"; questRoot8.Author = list15; QuestRoot questRoot9 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span22 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference32 = ref span22[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span42 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference32 = ref span42[num]; questSequence = new QuestSequence { Sequence = 0 @@ -59691,7 +72257,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + Span span43 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span43[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -59704,42 +72272,52 @@ public static class AssemblyQuestLoader }; questSequence18.Steps = list3; reference32 = questSequence; - ref QuestSequence reference33 = ref span22[1]; + num++; + ref QuestSequence reference33 = ref span42[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence19 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span23 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference34 = ref span23[0]; + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span44 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference34 = ref span44[num2]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(573.56177f, 347.98422f, -760.73724f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep19 = questStep; - num3 = 1; - list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - ref ComplexCombatData reference35 = ref CollectionsMarshal.AsSpan(list14)[0]; + num5 = 1; + list14 = new List(num5); + CollectionsMarshal.SetCount(list14, num5); + Span span45 = CollectionsMarshal.AsSpan(list14); + num4 = 0; + ref ComplexCombatData reference35 = ref span45[num4]; complexCombatData = new ComplexCombatData { DataId = 1922u }; ComplexCombatData complexCombatData3 = complexCombatData; - num4 = 6; - list4 = new List(num4); - CollectionsMarshal.SetCount(list4, num4); - Span span24 = CollectionsMarshal.AsSpan(list4); - span24[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = null; + num7 = 6; + list4 = new List(num7); + CollectionsMarshal.SetCount(list4, num7); + Span span46 = CollectionsMarshal.AsSpan(list4); + num6 = 0; + span46[num6] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span46[num6] = null; + num6++; + span46[num6] = null; + num6++; + span46[num6] = null; + num6++; + span46[num6] = null; + num6++; + span46[num6] = null; complexCombatData3.CompletionQuestVariablesFlags = list4; reference35 = complexCombatData; questStep19.ComplexCombatData = list14; @@ -59751,10 +72329,12 @@ public static class AssemblyQuestLoader } }; reference34 = questStep; - span23[1] = new QuestStep(EInteractionType.Interact, 2002312u, new Vector3(579.4918f, 347.79883f, -764.3702f), 155); + num2++; + span44[num2] = new QuestStep(EInteractionType.Interact, 2002312u, new Vector3(579.4918f, 347.79883f, -764.3702f), 155); questSequence19.Steps = list3; reference33 = questSequence; - ref QuestSequence reference36 = ref span22[2]; + num++; + ref QuestSequence reference36 = ref span42[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -59763,7 +72343,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + Span span47 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span47[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -59779,23 +72361,28 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + Span span48 = CollectionsMarshal.AsSpan(list16); + index = 0; + span48[index] = "liza"; questRoot10.Author = list16; QuestRoot questRoot11 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span25 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference37 = ref span25[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span49 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference37 = ref span49[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence21 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span50 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -59808,7 +72395,8 @@ public static class AssemblyQuestLoader }; questSequence21.Steps = list3; reference37 = questSequence; - ref QuestSequence reference38 = ref span25[1]; + num++; + ref QuestSequence reference38 = ref span49[num]; questSequence = new QuestSequence { Sequence = 1 @@ -59817,7 +72405,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006771u, new Vector3(89.829834f, 66.04188f, 18.753235f), 137) + Span span51 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span51[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006771u, new Vector3(89.829834f, 66.04188f, 18.753235f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -59828,19 +72418,23 @@ public static class AssemblyQuestLoader }; questSequence22.Steps = list3; reference38 = questSequence; - ref QuestSequence reference39 = ref span25[2]; + num++; + ref QuestSequence reference39 = ref span49[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence23 = questSequence; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1006774u, new Vector3(-11.367981f, 69.20081f, 30.258545f), 137); + num3 = 1; + List list17 = new List(num3); + CollectionsMarshal.SetCount(list17, num3); + Span span52 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.Interact, 1006774u, new Vector3(-11.367981f, 69.20081f, 30.258545f), 137); questSequence23.Steps = list17; reference39 = questSequence; - ref QuestSequence reference40 = ref span25[3]; + num++; + ref QuestSequence reference40 = ref span49[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -59849,7 +72443,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + Span span53 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span53[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol @@ -59864,23 +72460,28 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "Cacahuetes"; + Span span54 = CollectionsMarshal.AsSpan(list18); + index = 0; + span54[index] = "Cacahuetes"; questRoot12.Author = list18; QuestRoot questRoot13 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span26 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference41 = ref span26[0]; + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span55 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference41 = ref span55[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence25 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference42 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span56 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference42 = ref span56[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -59898,17 +72499,20 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition2 = skipAetheryteCondition; - num3 = 1; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - CollectionsMarshal.AsSpan(list19)[0] = 131; + num4 = 1; + List list19 = new List(num4); + CollectionsMarshal.SetCount(list19, num4); + Span span57 = CollectionsMarshal.AsSpan(list19); + num5 = 0; + span57[num5] = 131; skipAetheryteCondition2.InTerritory = list19; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition; questStep20.SkipConditions = skipConditions; reference42 = questStep; questSequence25.Steps = list3; reference41 = questSequence; - ref QuestSequence reference43 = ref span26[1]; + num++; + ref QuestSequence reference43 = ref span55[num]; questSequence = new QuestSequence { Sequence = 1 @@ -59917,7 +72521,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + Span span58 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span58[num3] = new QuestStep(EInteractionType.Interact, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AethernetShortcut = new AethernetShortcut { @@ -59927,16 +72533,19 @@ public static class AssemblyQuestLoader }; questSequence26.Steps = list3; reference43 = questSequence; - ref QuestSequence reference44 = ref span26[2]; + num++; + ref QuestSequence reference44 = ref span55[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence27 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span59 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference45 = ref span59[num2]; questStep = new QuestStep(EInteractionType.Combat, 2002344u, new Vector3(-97.39838f, 14.846985f, -188.2201f), 146) { Fly = true, @@ -59944,17 +72553,20 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep21 = questStep; - num3 = 2; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span27 = CollectionsMarshal.AsSpan(list20); - span27[0] = 18u; - span27[1] = 19u; + num5 = 2; + List list20 = new List(num5); + CollectionsMarshal.SetCount(list20, num5); + Span span60 = CollectionsMarshal.AsSpan(list20); + num4 = 0; + span60[num4] = 18u; + num4++; + span60[num4] = 19u; questStep21.KillEnemyDataIds = list20; reference45 = questStep; questSequence27.Steps = list3; reference44 = questSequence; - ref QuestSequence reference46 = ref span26[3]; + num++; + ref QuestSequence reference46 = ref span55[num]; questSequence = new QuestSequence { Sequence = 3 @@ -59963,22 +72575,27 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.UseItem, 2002345u, new Vector3(-97.39838f, 16.433899f, -188.2201f), 146) + Span span61 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span61[num3] = new QuestStep(EInteractionType.UseItem, 2002345u, new Vector3(-97.39838f, 16.433899f, -188.2201f), 146) { ItemId = 2000821u }; questSequence28.Steps = list3; reference46 = questSequence; - ref QuestSequence reference47 = ref span26[4]; + num++; + ref QuestSequence reference47 = ref span55[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence29 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span62 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.Interact, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -59989,7 +72606,8 @@ public static class AssemblyQuestLoader }; questSequence29.Steps = list3; reference47 = questSequence; - ref QuestSequence reference48 = ref span26[5]; + num++; + ref QuestSequence reference48 = ref span55[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -59998,7 +72616,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + Span span63 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span63[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { NextQuestId = new QuestId(1056) }; @@ -60012,24 +72632,28 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "liza"; + Span span64 = CollectionsMarshal.AsSpan(list21); + index = 0; + span64[index] = "liza"; questRoot14.Author = list21; QuestRoot questRoot15 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span28 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference49 = ref span28[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span65 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference49 = ref span65[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence31 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span29 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference50 = ref span29[0]; + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span66 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference50 = ref span66[num2]; questStep = new QuestStep(EInteractionType.EquipItem, null, null, 137) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -60048,18 +72672,22 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition3 = skipAetheryteCondition; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = 131; + num4 = 1; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + Span span67 = CollectionsMarshal.AsSpan(list22); + num5 = 0; + span67[num5] = 131; skipAetheryteCondition3.InTerritory = list22; skipConditions8.AetheryteShortcutIf = skipAetheryteCondition; questStep22.SkipConditions = skipConditions; reference50 = questStep; - span29[1] = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131); + num2++; + span66[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131); questSequence31.Steps = list3; reference49 = questSequence; - ref QuestSequence reference51 = ref span28[1]; + num++; + ref QuestSequence reference51 = ref span65[num]; questSequence = new QuestSequence { Sequence = 1 @@ -60068,8 +72696,9 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span30 = CollectionsMarshal.AsSpan(list3); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-259.72705f, 67.23717f, -293.5509f), 180) + Span span68 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span68[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-259.72705f, 67.23717f, -293.5509f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -60081,7 +72710,8 @@ public static class AssemblyQuestLoader } } }; - span30[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-355.4327f, 63.813503f, -382.56308f), 180) + num3++; + span68[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-355.4327f, 63.813503f, -382.56308f), 180) { Fly = true, SkipConditions = new SkipConditions @@ -60092,17 +72722,20 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference52 = ref span30[2]; + num3++; + ref QuestStep reference52 = ref span68[num3]; questStep = new QuestStep(EInteractionType.Combat, 2002346u, new Vector3(-312.27594f, 32.547485f, -444.9989f), 180) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep23 = questStep; - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new ComplexCombatData + num5 = 1; + List list23 = new List(num5); + CollectionsMarshal.SetCount(list23, num5); + Span span69 = CollectionsMarshal.AsSpan(list23); + num4 = 0; + span69[num4] = new ComplexCombatData { DataId = 6u, NameId = 2020u @@ -60111,16 +72744,19 @@ public static class AssemblyQuestLoader reference52 = questStep; questSequence32.Steps = list3; reference51 = questSequence; - ref QuestSequence reference53 = ref span28[2]; + num++; + ref QuestSequence reference53 = ref span65[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence33 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span70 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -60140,14 +72776,17 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "liza"; + Span span71 = CollectionsMarshal.AsSpan(list24); + index = 0; + span71[index] = "liza"; questRoot16.Author = list24; QuestRoot questRoot17 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span31 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference54 = ref span31[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span72 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference54 = ref span72[num]; questSequence = new QuestSequence { Sequence = 0 @@ -60156,7 +72795,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span73 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference55 = ref span73[num3]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -60174,41 +72815,49 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition4 = skipAetheryteCondition; - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = 131; + num4 = 1; + List list25 = new List(num4); + CollectionsMarshal.SetCount(list25, num4); + Span span74 = CollectionsMarshal.AsSpan(list25); + num5 = 0; + span74[num5] = 131; skipAetheryteCondition4.InTerritory = list25; skipConditions9.AetheryteShortcutIf = skipAetheryteCondition; questStep24.SkipConditions = skipConditions; reference55 = questStep; questSequence34.Steps = list3; reference54 = questSequence; - ref QuestSequence reference56 = ref span31[1]; + num++; + ref QuestSequence reference56 = ref span72[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence35 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span75 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference57 = ref span75[num2]; questStep = new QuestStep(EInteractionType.Combat, 2002347u, new Vector3(175.82971f, -10.452454f, 84.91638f), 145) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep25 = questStep; - num3 = 1; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = 383u; + num5 = 1; + List list26 = new List(num5); + CollectionsMarshal.SetCount(list26, num5); + Span span76 = CollectionsMarshal.AsSpan(list26); + num4 = 0; + span76[num4] = 383u; questStep25.KillEnemyDataIds = list26; reference57 = questStep; questSequence35.Steps = list3; reference56 = questSequence; - ref QuestSequence reference58 = ref span31[2]; + num++; + ref QuestSequence reference58 = ref span72[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -60217,7 +72866,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + Span span77 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span77[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -60237,23 +72888,28 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "liza, CryoTechnic"; + Span span78 = CollectionsMarshal.AsSpan(list27); + index = 0; + span78[index] = "liza, CryoTechnic"; questRoot18.Author = list27; QuestRoot questRoot19 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span32 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference59 = ref span32[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span79 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference59 = ref span79[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence37 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span80 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference60 = ref span80[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -60271,17 +72927,20 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition5 = skipAetheryteCondition; - num3 = 1; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = 131; + num4 = 1; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + Span span81 = CollectionsMarshal.AsSpan(list28); + num5 = 0; + span81[num5] = 131; skipAetheryteCondition5.InTerritory = list28; skipConditions10.AetheryteShortcutIf = skipAetheryteCondition; questStep26.SkipConditions = skipConditions; reference60 = questStep; questSequence37.Steps = list3; reference59 = questSequence; - ref QuestSequence reference61 = ref span32[1]; + num++; + ref QuestSequence reference61 = ref span79[num]; questSequence = new QuestSequence { Sequence = 1 @@ -60290,8 +72949,9 @@ public static class AssemblyQuestLoader num2 = 16; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span33 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference62 = ref span33[0]; + Span span82 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference62 = ref span82[num3]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-97.65164f, 14.866778f, -189.99821f), 146) { StopDistance = 0.5f, @@ -60300,28 +72960,36 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep27 = questStep; - num3 = 2; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span34 = CollectionsMarshal.AsSpan(list29); - span34[0] = 1923u; - span34[1] = 1924u; + num5 = 2; + List list29 = new List(num5); + CollectionsMarshal.SetCount(list29, num5); + Span span83 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span83[num4] = 1923u; + num4++; + span83[num4] = 1924u; questStep27.KillEnemyDataIds = list29; QuestStep questStep28 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions11 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions7 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span35 = CollectionsMarshal.AsSpan(list4); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span84 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span84[num5] = null; + num5++; + span84[num5] = null; + num5++; + span84[num5] = null; + num5++; + span84[num5] = null; + num5++; + span84[num5] = null; + num5++; + span84[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list4; skipConditions11.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition @@ -60330,22 +72998,30 @@ public static class AssemblyQuestLoader }; questStep28.SkipConditions = skipConditions; reference62 = questStep; - ref QuestStep reference63 = ref span33[1]; + num3++; + ref QuestStep reference63 = ref span82[num3]; questStep = new QuestStep(EInteractionType.Interact, 2002349u, new Vector3(-97.39838f, 14.846985f, -188.2201f), 146); QuestStep questStep29 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span36 = CollectionsMarshal.AsSpan(list4); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span85 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span85[num4] = null; + num4++; + span85[num4] = null; + num4++; + span85[num4] = null; + num4++; + span85[num4] = null; + num4++; + span85[num4] = null; + num4++; + span85[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep29.CompletionQuestVariablesFlags = list4; reference63 = questStep; - span33[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-195.88503f, 4.1472216f, -216.97708f), 146) + num3++; + span82[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-195.88503f, 4.1472216f, -216.97708f), 146) { StopDistance = 0.5f, SkipConditions = new SkipConditions @@ -60356,7 +73032,8 @@ public static class AssemblyQuestLoader } } }; - span33[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-89.94699f, -4.7999415f, -104.621376f), 146) + num3++; + span82[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-89.94699f, -4.7999415f, -104.621376f), 146) { StopDistance = 0.5f, SkipConditions = new SkipConditions @@ -60367,7 +73044,8 @@ public static class AssemblyQuestLoader } } }; - span33[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-58.741863f, -16.84673f, -170.08568f), 146) + num3++; + span82[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-58.741863f, -16.84673f, -170.08568f), 146) { StopDistance = 0.5f, SkipConditions = new SkipConditions @@ -60378,7 +73056,8 @@ public static class AssemblyQuestLoader } } }; - span33[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-80.41123f, -14.578715f, -170.62582f), 146) + num3++; + span82[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-80.41123f, -14.578715f, -170.62582f), 146) { StopDistance = 0.5f, SkipConditions = new SkipConditions @@ -60389,7 +73068,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference64 = ref span33[6]; + num3++; + ref QuestStep reference64 = ref span82[num3]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-97.35628f, -14.397484f, -176.70825f), 146) { StopDistance = 0.5f, @@ -60397,48 +73077,64 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep30 = questStep; - num3 = 2; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span37 = CollectionsMarshal.AsSpan(list30); - span37[0] = 1923u; - span37[1] = 1924u; + num4 = 2; + List list30 = new List(num4); + CollectionsMarshal.SetCount(list30, num4); + Span span86 = CollectionsMarshal.AsSpan(list30); + num5 = 0; + span86[num5] = 1923u; + num5++; + span86[num5] = 1924u; questStep30.KillEnemyDataIds = list30; QuestStep questStep31 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions12 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions8 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span38 = CollectionsMarshal.AsSpan(list4); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span87 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list4; skipConditions12.StepIf = skipStepConditions; questStep31.SkipConditions = skipConditions; reference64 = questStep; - ref QuestStep reference65 = ref span33[7]; + num3++; + ref QuestStep reference65 = ref span82[num3]; questStep = new QuestStep(EInteractionType.Interact, 2002348u, new Vector3(-99.4126f, -14.4198f, -179.46143f), 146); QuestStep questStep32 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span39 = CollectionsMarshal.AsSpan(list4); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span88 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span88[num5] = null; + num5++; + span88[num5] = null; + num5++; + span88[num5] = null; + num5++; + span88[num5] = null; + num5++; + span88[num5] = null; + num5++; + span88[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep32.CompletionQuestVariablesFlags = list4; reference65 = questStep; - span33[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-58.741863f, -16.84673f, -170.08568f), 146) + num3++; + span82[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-58.741863f, -16.84673f, -170.08568f), 146) { StopDistance = 0.5f, SkipConditions = new SkipConditions @@ -60449,7 +73145,8 @@ public static class AssemblyQuestLoader } } }; - span33[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-75.59294f, -1.9464281f, -102.63653f), 146) + num3++; + span82[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-75.59294f, -1.9464281f, -102.63653f), 146) { StopDistance = 0.5f, SkipConditions = new SkipConditions @@ -60460,40 +73157,50 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference66 = ref span33[10]; + num3++; + ref QuestStep reference66 = ref span82[num3]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(137.78966f, 10.371678f, -427.8172f), 146) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep33 = questStep; - num3 = 2; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span40 = CollectionsMarshal.AsSpan(list31); - span40[0] = 1923u; - span40[1] = 1924u; + num5 = 2; + List list31 = new List(num5); + CollectionsMarshal.SetCount(list31, num5); + Span span89 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + span89[num4] = 1923u; + num4++; + span89[num4] = 1924u; questStep33.KillEnemyDataIds = list31; QuestStep questStep34 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions13 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions9 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span41 = CollectionsMarshal.AsSpan(list4); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span90 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span90[num5] = null; + num5++; + span90[num5] = null; + num5++; + span90[num5] = null; + num5++; + span90[num5] = null; + num5++; + span90[num5] = null; + num5++; + span90[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list4; skipConditions13.StepIf = skipStepConditions; questStep34.SkipConditions = skipConditions; reference66 = questStep; - ref QuestStep reference67 = ref span33[11]; + num3++; + ref QuestStep reference67 = ref span82[num3]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.78966f, 10.371678f, -427.8172f), 146) { StopDistance = 0.5f @@ -60503,72 +73210,93 @@ public static class AssemblyQuestLoader SkipConditions skipConditions14 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions10 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span42 = CollectionsMarshal.AsSpan(list4); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span91 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions10.CompletionQuestVariablesFlags = list4; skipConditions14.StepIf = skipStepConditions; questStep35.SkipConditions = skipConditions; reference67 = questStep; - ref QuestStep reference68 = ref span33[12]; + num3++; + ref QuestStep reference68 = ref span82[num3]; questStep = new QuestStep(EInteractionType.Interact, 2002351u, new Vector3(137.74304f, 10.60498f, -420.5539f), 146) { DisableNavmesh = true }; QuestStep questStep36 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span43 = CollectionsMarshal.AsSpan(list4); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span92 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span92[num5] = null; + num5++; + span92[num5] = null; + num5++; + span92[num5] = null; + num5++; + span92[num5] = null; + num5++; + span92[num5] = null; + num5++; + span92[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep36.CompletionQuestVariablesFlags = list4; reference68 = questStep; - span33[13] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.70113f, 10.371678f, -427.45047f), 146) + num3++; + span82[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.70113f, 10.371678f, -427.45047f), 146) { DisableNavmesh = true }; - ref QuestStep reference69 = ref span33[14]; + num3++; + ref QuestStep reference69 = ref span82[num3]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(116.208305f, 11.091853f, -475.35126f), 146) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep37 = questStep; - num3 = 2; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span44 = CollectionsMarshal.AsSpan(list32); - span44[0] = 1923u; - span44[1] = 1924u; + num5 = 2; + List list32 = new List(num5); + CollectionsMarshal.SetCount(list32, num5); + Span span93 = CollectionsMarshal.AsSpan(list32); + num4 = 0; + span93[num4] = 1923u; + num4++; + span93[num4] = 1924u; questStep37.KillEnemyDataIds = list32; reference69 = questStep; - span33[15] = new QuestStep(EInteractionType.Interact, 2002350u, new Vector3(115.983765f, 11.184814f, -482.7802f), 146); + num3++; + span82[num3] = new QuestStep(EInteractionType.Interact, 2002350u, new Vector3(115.983765f, 11.184814f, -482.7802f), 146); questSequence38.Steps = list3; reference61 = questSequence; - ref QuestSequence reference70 = ref span32[2]; + num++; + ref QuestSequence reference70 = ref span79[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence39 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span45 = CollectionsMarshal.AsSpan(list3); - span45[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 146); - span45[1] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span94 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 146); + num2++; + span94[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -60588,14 +73316,17 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; + Span span95 = CollectionsMarshal.AsSpan(list33); + index = 0; + span95[index] = "liza"; questRoot20.Author = list33; QuestRoot questRoot21 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span46 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference71 = ref span46[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span96 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference71 = ref span96[num]; questSequence = new QuestSequence { Sequence = 0 @@ -60604,7 +73335,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span97 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference72 = ref span97[num3]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -60622,33 +73355,39 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition6 = skipAetheryteCondition; - num3 = 1; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - CollectionsMarshal.AsSpan(list34)[0] = 131; + num4 = 1; + List list34 = new List(num4); + CollectionsMarshal.SetCount(list34, num4); + Span span98 = CollectionsMarshal.AsSpan(list34); + num5 = 0; + span98[num5] = 131; skipAetheryteCondition6.InTerritory = list34; skipConditions15.AetheryteShortcutIf = skipAetheryteCondition; questStep38.SkipConditions = skipConditions; reference72 = questStep; questSequence40.Steps = list3; reference71 = questSequence; - ref QuestSequence reference73 = ref span46[1]; + num++; + ref QuestSequence reference73 = ref span96[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence41 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002356u, new Vector3(-407.4312f, 7.156433f, 525.6886f), 146) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span99 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002356u, new Vector3(-407.4312f, 7.156433f, 525.6886f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; questSequence41.Steps = list3; reference73 = questSequence; - ref QuestSequence reference74 = ref span46[2]; + num++; + ref QuestSequence reference74 = ref span96[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -60657,7 +73396,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + Span span100 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span100[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -60677,23 +73418,28 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "liza"; + Span span101 = CollectionsMarshal.AsSpan(list35); + index = 0; + span101[index] = "liza"; questRoot22.Author = list35; QuestRoot questRoot23 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span47 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference75 = ref span47[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span102 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference75 = ref span102[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence43 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference76 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span103 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference76 = ref span103[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -60711,17 +73457,20 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition7 = skipAetheryteCondition; - num3 = 1; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = 131; + num5 = 1; + List list36 = new List(num5); + CollectionsMarshal.SetCount(list36, num5); + Span span104 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span104[num4] = 131; skipAetheryteCondition7.InTerritory = list36; skipConditions16.AetheryteShortcutIf = skipAetheryteCondition; questStep39.SkipConditions = skipConditions; reference76 = questStep; questSequence43.Steps = list3; reference75 = questSequence; - ref QuestSequence reference77 = ref span47[1]; + num++; + ref QuestSequence reference77 = ref span102[num]; questSequence = new QuestSequence { Sequence = 1 @@ -60730,37 +73479,43 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007829u, new Vector3(26.932129f, 13f, 44.418945f), 141) + Span span105 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span105[num3] = new QuestStep(EInteractionType.Interact, 1007829u, new Vector3(26.932129f, 13f, 44.418945f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; questSequence44.Steps = list3; reference77 = questSequence; - ref QuestSequence reference78 = ref span47[2]; + num++; + ref QuestSequence reference78 = ref span102[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence45 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span48 = CollectionsMarshal.AsSpan(list3); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-775.4471f, 224.95006f, 29.04266f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span106 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-775.4471f, 224.95006f, 29.04266f), 155) { StopDistance = 0.5f, Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span48[1] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(-775.4471f, 224.95006f, 29.04266f), 155) + num2++; + span106[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(-775.4471f, 224.95006f, 29.04266f), 155) { StopDistance = 0.5f, Mount = false }; questSequence45.Steps = list3; reference78 = questSequence; - ref QuestSequence reference79 = ref span47[3]; + num++; + ref QuestSequence reference79 = ref span102[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -60769,7 +73524,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + Span span107 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span107[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -60789,23 +73546,28 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "plogon_enjoyer"; + Span span108 = CollectionsMarshal.AsSpan(list37); + index = 0; + span108[index] = "plogon_enjoyer"; questRoot24.Author = list37; QuestRoot questRoot25 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span49 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference80 = ref span49[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span109 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference80 = ref span109[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence47 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span110 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span110[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -60818,7 +73580,8 @@ public static class AssemblyQuestLoader }; questSequence47.Steps = list3; reference80 = questSequence; - ref QuestSequence reference81 = ref span49[1]; + num++; + ref QuestSequence reference81 = ref span109[num]; questSequence = new QuestSequence { Sequence = 1 @@ -60827,7 +73590,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) + Span span111 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span111[num3] = new QuestStep(EInteractionType.Interact, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AethernetShortcut = new AethernetShortcut { @@ -60837,17 +73602,19 @@ public static class AssemblyQuestLoader }; questSequence48.Steps = list3; reference81 = questSequence; - ref QuestSequence reference82 = ref span49[2]; + num++; + ref QuestSequence reference82 = ref span109[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence49 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span50 = CollectionsMarshal.AsSpan(list3); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-231.99818f, -28.997791f, 123.01078f), 141) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span112 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-231.99818f, -28.997791f, 123.01078f), 141) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -60856,13 +73623,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfNald } }; - span50[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002439u, new Vector3(-232.80695f, -28.793823f, 125.29175f), 141) + num2++; + span112[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002439u, new Vector3(-232.80695f, -28.793823f, 125.29175f), 141) { ItemId = 2000951u }; questSequence49.Steps = list3; reference82 = questSequence; - ref QuestSequence reference83 = ref span49[3]; + num++; + ref QuestSequence reference83 = ref span109[num]; questSequence = new QuestSequence { Sequence = 3 @@ -60871,19 +73640,24 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 2002440u, new Vector3(-232.80695f, -28.946411f, 125.29175f), 141); + Span span113 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span113[num3] = new QuestStep(EInteractionType.Interact, 2002440u, new Vector3(-232.80695f, -28.946411f, 125.29175f), 141); questSequence50.Steps = list38; reference83 = questSequence; - ref QuestSequence reference84 = ref span49[4]; + num++; + ref QuestSequence reference84 = ref span109[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence51 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span114 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -60903,14 +73677,17 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "plogon_enjoyer"; + Span span115 = CollectionsMarshal.AsSpan(list39); + index = 0; + span115[index] = "plogon_enjoyer"; questRoot26.Author = list39; QuestRoot questRoot27 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span51 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference85 = ref span51[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span116 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference85 = ref span116[num]; questSequence = new QuestSequence { Sequence = 0 @@ -60919,8 +73696,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span52 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference86 = ref span52[0]; + Span span117 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference86 = ref span117[num3]; questStep = new QuestStep(EInteractionType.EquipItem, null, null, 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -60936,12 +73714,14 @@ public static class AssemblyQuestLoader SkipConditions skipConditions17 = skipConditions; skipAetheryteCondition = new SkipAetheryteCondition(); SkipAetheryteCondition skipAetheryteCondition8 = skipAetheryteCondition; - num3 = 2; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span53 = CollectionsMarshal.AsSpan(list40); - span53[0] = 130; - span53[1] = 131; + num4 = 2; + List list40 = new List(num4); + CollectionsMarshal.SetCount(list40, num4); + Span span118 = CollectionsMarshal.AsSpan(list40); + num5 = 0; + span118[num5] = 130; + num5++; + span118[num5] = 131; skipAetheryteCondition8.InTerritory = list40; skipConditions17.AetheryteShortcutIf = skipAetheryteCondition; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition @@ -60950,19 +73730,23 @@ public static class AssemblyQuestLoader }; questStep40.SkipConditions = skipConditions; reference86 = questStep; - span52[1] = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131); + num3++; + span117[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131); questSequence52.Steps = list3; reference85 = questSequence; - ref QuestSequence reference87 = ref span51[1]; + num++; + ref QuestSequence reference87 = ref span116[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence53 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span119 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference88 = ref span119[num2]; questStep = new QuestStep(EInteractionType.Combat, 2002441u, new Vector3(689.5093f, 9.750427f, 483.32947f), 137) { Fly = true, @@ -60971,15 +73755,18 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterItemUse }; QuestStep questStep41 = questStep; - num3 = 1; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = 1925u; + num5 = 1; + List list41 = new List(num5); + CollectionsMarshal.SetCount(list41, num5); + Span span120 = CollectionsMarshal.AsSpan(list41); + num4 = 0; + span120[num4] = 1925u; questStep41.KillEnemyDataIds = list41; reference88 = questStep; questSequence53.Steps = list3; reference87 = questSequence; - ref QuestSequence reference89 = ref span51[2]; + num++; + ref QuestSequence reference89 = ref span116[num]; questSequence = new QuestSequence { Sequence = 2 @@ -60988,19 +73775,24 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 2002442u, new Vector3(689.5093f, 9.750427f, 483.32947f), 137); + Span span121 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span121[num3] = new QuestStep(EInteractionType.Interact, 2002442u, new Vector3(689.5093f, 9.750427f, 483.32947f), 137); questSequence54.Steps = list42; reference89 = questSequence; - ref QuestSequence reference90 = ref span51[3]; + num++; + ref QuestSequence reference90 = ref span116[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence55 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span122 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -61020,14 +73812,17 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "plogon_enjoyer"; + Span span123 = CollectionsMarshal.AsSpan(list43); + index = 0; + span123[index] = "plogon_enjoyer"; questRoot28.Author = list43; QuestRoot questRoot29 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span54 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference91 = ref span54[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span124 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference91 = ref span124[num]; questSequence = new QuestSequence { Sequence = 0 @@ -61036,7 +73831,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference92 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span125 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference92 = ref span125[num3]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -61051,12 +73848,14 @@ public static class AssemblyQuestLoader SkipConditions skipConditions18 = skipConditions; skipAetheryteCondition = new SkipAetheryteCondition(); SkipAetheryteCondition skipAetheryteCondition9 = skipAetheryteCondition; - num3 = 2; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span55 = CollectionsMarshal.AsSpan(list44); - span55[0] = 130; - span55[1] = 131; + num4 = 2; + List list44 = new List(num4); + CollectionsMarshal.SetCount(list44, num4); + Span span126 = CollectionsMarshal.AsSpan(list44); + num5 = 0; + span126[num5] = 130; + num5++; + span126[num5] = 131; skipAetheryteCondition9.InTerritory = list44; skipConditions18.AetheryteShortcutIf = skipAetheryteCondition; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition @@ -61067,23 +73866,27 @@ public static class AssemblyQuestLoader reference92 = questStep; questSequence56.Steps = list3; reference91 = questSequence; - ref QuestSequence reference93 = ref span54[1]; + num++; + ref QuestSequence reference93 = ref span124[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence57 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007874u, new Vector3(-221.48468f, 26.16912f, -343.9536f), 146) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span127 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.Interact, 1007874u, new Vector3(-221.48468f, 26.16912f, -343.9536f), 146) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; questSequence57.Steps = list3; reference93 = questSequence; - ref QuestSequence reference94 = ref span54[2]; + num++; + ref QuestSequence reference94 = ref span124[num]; questSequence = new QuestSequence { Sequence = 2 @@ -61092,41 +73895,49 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span56 = CollectionsMarshal.AsSpan(list3); - span56[0] = new QuestStep(EInteractionType.UseItem, 2002443u, new Vector3(24.215942f, 25.65039f, 115.983765f), 153) + Span span128 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span128[num3] = new QuestStep(EInteractionType.UseItem, 2002443u, new Vector3(24.215942f, 25.65039f, 115.983765f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, ItemId = 2000818u }; - ref QuestStep reference95 = ref span56[1]; + num3++; + ref QuestStep reference95 = ref span128[num3]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(24.215942f, 25.65039f, 115.983765f), 153) { DelaySecondsAtStart = 0f, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; QuestStep questStep43 = questStep; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = 1926u; + num5 = 1; + List list45 = new List(num5); + CollectionsMarshal.SetCount(list45, num5); + Span span129 = CollectionsMarshal.AsSpan(list45); + num4 = 0; + span129[num4] = 1926u; questStep43.KillEnemyDataIds = list45; reference95 = questStep; questSequence58.Steps = list3; reference94 = questSequence; - ref QuestSequence reference96 = ref span54[3]; + num++; + ref QuestSequence reference96 = ref span124[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence59 = questSequence; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 2002444u, new Vector3(24.215942f, 25.65039f, 115.983765f), 153); + num3 = 1; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + Span span130 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.Interact, 2002444u, new Vector3(24.215942f, 25.65039f, 115.983765f), 153); questSequence59.Steps = list46; reference96 = questSequence; - ref QuestSequence reference97 = ref span54[4]; + num++; + ref QuestSequence reference97 = ref span124[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -61135,7 +73946,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) + Span span131 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span131[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -61155,23 +73968,28 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "plogon_enjoyer"; + Span span132 = CollectionsMarshal.AsSpan(list47); + index = 0; + span132[index] = "plogon_enjoyer"; questRoot30.Author = list47; QuestRoot questRoot31 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span57 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference98 = ref span57[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span133 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference98 = ref span133[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence61 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span134 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference99 = ref span134[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -61186,12 +74004,14 @@ public static class AssemblyQuestLoader SkipConditions skipConditions19 = skipConditions; skipAetheryteCondition = new SkipAetheryteCondition(); SkipAetheryteCondition skipAetheryteCondition10 = skipAetheryteCondition; - num3 = 2; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - Span span58 = CollectionsMarshal.AsSpan(list48); - span58[0] = 130; - span58[1] = 131; + num4 = 2; + List list48 = new List(num4); + CollectionsMarshal.SetCount(list48, num4); + Span span135 = CollectionsMarshal.AsSpan(list48); + num5 = 0; + span135[num5] = 130; + num5++; + span135[num5] = 131; skipAetheryteCondition10.InTerritory = list48; skipConditions19.AetheryteShortcutIf = skipAetheryteCondition; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition @@ -61202,7 +74022,8 @@ public static class AssemblyQuestLoader reference99 = questStep; questSequence61.Steps = list3; reference98 = questSequence; - ref QuestSequence reference100 = ref span57[1]; + num++; + ref QuestSequence reference100 = ref span133[num]; questSequence = new QuestSequence { Sequence = 1 @@ -61211,41 +74032,49 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span59 = CollectionsMarshal.AsSpan(list3); - span59[0] = new QuestStep(EInteractionType.UseItem, 2002445u, new Vector3(3.1585693f, 20.58435f, -13.16864f), 152) + Span span136 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span136[num3] = new QuestStep(EInteractionType.UseItem, 2002445u, new Vector3(3.1585693f, 20.58435f, -13.16864f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, ItemId = 2000820u }; - ref QuestStep reference101 = ref span59[1]; + num3++; + ref QuestStep reference101 = ref span136[num3]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(3.1585693f, 20.58435f, -13.16864f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; QuestStep questStep45 = questStep; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = 1927u; + num5 = 1; + List list49 = new List(num5); + CollectionsMarshal.SetCount(list49, num5); + Span span137 = CollectionsMarshal.AsSpan(list49); + num4 = 0; + span137[num4] = 1927u; questStep45.KillEnemyDataIds = list49; questStep.CombatDelaySecondsAtStart = 0f; reference101 = questStep; questSequence62.Steps = list3; reference100 = questSequence; - ref QuestSequence reference102 = ref span57[2]; + num++; + ref QuestSequence reference102 = ref span133[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence63 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 2002446u, new Vector3(3.1585693f, 20.58435f, -13.16864f), 152); - questSequence63.Steps = list3; + num3 = 1; + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + Span span138 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.Interact, 2002446u, new Vector3(3.1585693f, 20.58435f, -13.16864f), 152); + questSequence63.Steps = list50; reference102 = questSequence; - ref QuestSequence reference103 = ref span57[3]; + num++; + ref QuestSequence reference103 = ref span133[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -61254,7 +74083,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) + Span span139 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span139[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -61272,25 +74103,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot32 = questRoot; num = 1; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = "plogon_enjoyer"; - questRoot32.Author = list50; + List list51 = new List(num); + CollectionsMarshal.SetCount(list51, num); + Span span140 = CollectionsMarshal.AsSpan(list51); + index = 0; + span140[index] = "plogon_enjoyer"; + questRoot32.Author = list51; QuestRoot questRoot33 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span60 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference104 = ref span60[0]; + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span141 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference104 = ref span141[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence65 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference105 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span142 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference105 = ref span142[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -61305,13 +74141,15 @@ public static class AssemblyQuestLoader SkipConditions skipConditions20 = skipConditions; skipAetheryteCondition = new SkipAetheryteCondition(); SkipAetheryteCondition skipAetheryteCondition11 = skipAetheryteCondition; - num3 = 2; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - Span span61 = CollectionsMarshal.AsSpan(list51); - span61[0] = 130; - span61[1] = 131; - skipAetheryteCondition11.InTerritory = list51; + num4 = 2; + List list52 = new List(num4); + CollectionsMarshal.SetCount(list52, num4); + Span span143 = CollectionsMarshal.AsSpan(list52); + num5 = 0; + span143[num5] = 130; + num5++; + span143[num5] = 131; + skipAetheryteCondition11.InTerritory = list52; skipConditions20.AetheryteShortcutIf = skipAetheryteCondition; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition { @@ -61321,7 +74159,8 @@ public static class AssemblyQuestLoader reference105 = questStep; questSequence65.Steps = list3; reference104 = questSequence; - ref QuestSequence reference106 = ref span60[1]; + num++; + ref QuestSequence reference106 = ref span141[num]; questSequence = new QuestSequence { Sequence = 1 @@ -61330,46 +74169,55 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference107 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span144 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference107 = ref span144[num3]; questStep = new QuestStep(EInteractionType.Interact, 1007875u, new Vector3(-221.48468f, 26.16912f, -343.9536f), 146) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; QuestStep questStep47 = questStep; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice + num5 = 1; + List list53 = new List(num5); + CollectionsMarshal.SetCount(list53, num5); + Span span145 = CollectionsMarshal.AsSpan(list53); + num4 = 0; + span145[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBMNK451_01065_Q1_000_000") }; - questStep47.DialogueChoices = list52; + questStep47.DialogueChoices = list53; reference107 = questStep; questSequence66.Steps = list3; reference106 = questSequence; - ref QuestSequence reference108 = ref span60[2]; + num++; + ref QuestSequence reference108 = ref span141[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence67 = questSequence; - num2 = 8; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span62 = CollectionsMarshal.AsSpan(list3); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.66748f, 26.617363f, -320.76898f), 146) + num3 = 8; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span146 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.66748f, 26.617363f, -320.76898f), 146) { Mount = true }; - span62[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(38.911945f, 23.511465f, -142.86761f), 146) + num2++; + span146[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(38.911945f, 23.511465f, -142.86761f), 146) { Fly = true, Land = true }; - span62[2] = new QuestStep(EInteractionType.Interact, 2002447u, new Vector3(41.428223f, 25.101074f, -149.64526f), 146); - span62[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.038277f, 50.482662f, -578.6224f), 146) + num2++; + span146[num2] = new QuestStep(EInteractionType.Interact, 2002447u, new Vector3(41.428223f, 25.101074f, -149.64526f), 146); + num2++; + span146[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.038277f, 50.482662f, -578.6224f), 146) { Fly = true, SkipConditions = new SkipConditions @@ -61380,23 +74228,28 @@ public static class AssemblyQuestLoader } } }; - span62[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.885742f, 17.930914f, -619.7939f), 146) + num2++; + span146[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.885742f, 17.930914f, -619.7939f), 146) { Fly = true }; - span62[5] = new QuestStep(EInteractionType.Interact, 2002548u, new Vector3(17.837708f, 20.523315f, -629.1448f), 146) + num2++; + span146[num2] = new QuestStep(EInteractionType.Interact, 2002548u, new Vector3(17.837708f, 20.523315f, -629.1448f), 146) { Mount = true }; - span62[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(214.89189f, 29.38419f, 59.154907f), 147) + num2++; + span146[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(214.89189f, 29.38419f, 59.154907f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; - span62[7] = new QuestStep(EInteractionType.Interact, 2002448u, new Vector3(213.70251f, 30.19751f, 61.020752f), 147); + num2++; + span146[num2] = new QuestStep(EInteractionType.Interact, 2002448u, new Vector3(213.70251f, 30.19751f, 61.020752f), 147); questSequence67.Steps = list3; reference108 = questSequence; - ref QuestSequence reference109 = ref span60[3]; + num++; + ref QuestSequence reference109 = ref span141[num]; questSequence = new QuestSequence { Sequence = 3 @@ -61405,23 +74258,28 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007875u, new Vector3(-221.48468f, 26.16912f, -343.9536f), 146) + Span span147 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span147[num3] = new QuestStep(EInteractionType.Interact, 1007875u, new Vector3(-221.48468f, 26.16912f, -343.9536f), 146) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; questSequence68.Steps = list3; reference109 = questSequence; - ref QuestSequence reference110 = ref span60[4]; + num++; + ref QuestSequence reference110 = ref span141[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence69 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference111 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span148 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference111 = ref span148[num2]; questStep = new QuestStep(EInteractionType.Combat, 1007877u, new Vector3(-74.08258f, 2.6069984f, 716.39575f), 135) { Fly = true, @@ -61429,47 +74287,57 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep48 = questStep; - num3 = 3; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - Span span63 = CollectionsMarshal.AsSpan(list53); - span63[0] = 81u; - span63[1] = 345u; - span63[2] = 348u; - questStep48.KillEnemyDataIds = list53; + num4 = 3; + List list54 = new List(num4); + CollectionsMarshal.SetCount(list54, num4); + Span span149 = CollectionsMarshal.AsSpan(list54); + num5 = 0; + span149[num5] = 81u; + num5++; + span149[num5] = 345u; + num5++; + span149[num5] = 348u; + questStep48.KillEnemyDataIds = list54; questStep.CombatDelaySecondsAtStart = 0f; reference111 = questStep; questSequence69.Steps = list3; reference110 = questSequence; - ref QuestSequence reference112 = ref span60[5]; + num++; + ref QuestSequence reference112 = ref span141[num]; questSequence = new QuestSequence { Sequence = 5 }; QuestSequence questSequence70 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007877u, new Vector3(-74.08258f, 2.6069984f, 716.39575f), 135); - questSequence70.Steps = list3; + List list55 = new List(num2); + CollectionsMarshal.SetCount(list55, num2); + Span span150 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span150[num3] = new QuestStep(EInteractionType.Interact, 1007877u, new Vector3(-74.08258f, 2.6069984f, 716.39575f), 135); + questSequence70.Steps = list55; reference112 = questSequence; - ref QuestSequence reference113 = ref span60[6]; + num++; + ref QuestSequence reference113 = ref span141[num]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence71 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007875u, new Vector3(-221.48468f, 26.16912f, -343.9536f), 146) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span151 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span151[num2] = new QuestStep(EInteractionType.Interact, 1007875u, new Vector3(-221.48468f, 26.16912f, -343.9536f), 146) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; questSequence71.Steps = list3; reference113 = questSequence; - ref QuestSequence reference114 = ref span60[7]; + num++; + ref QuestSequence reference114 = ref span141[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -61478,7 +74346,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) + Span span152 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span152[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -61496,25 +74366,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot34 = questRoot; num = 1; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "plogon_enjoyer"; - questRoot34.Author = list54; + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + Span span153 = CollectionsMarshal.AsSpan(list56); + index = 0; + span153[index] = "plogon_enjoyer"; + questRoot34.Author = list56; QuestRoot questRoot35 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span64 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference115 = ref span64[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span154 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference115 = ref span154[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence73 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span155 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference116 = ref span155[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -61529,13 +74404,15 @@ public static class AssemblyQuestLoader SkipConditions skipConditions21 = skipConditions; skipAetheryteCondition = new SkipAetheryteCondition(); SkipAetheryteCondition skipAetheryteCondition12 = skipAetheryteCondition; - num3 = 2; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - Span span65 = CollectionsMarshal.AsSpan(list55); - span65[0] = 130; - span65[1] = 131; - skipAetheryteCondition12.InTerritory = list55; + num5 = 2; + List list57 = new List(num5); + CollectionsMarshal.SetCount(list57, num5); + Span span156 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span156[num4] = 130; + num4++; + span156[num4] = 131; + skipAetheryteCondition12.InTerritory = list57; skipConditions21.AetheryteShortcutIf = skipAetheryteCondition; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition { @@ -61545,7 +74422,8 @@ public static class AssemblyQuestLoader reference116 = questStep; questSequence73.Steps = list3; reference115 = questSequence; - ref QuestSequence reference117 = ref span64[1]; + num++; + ref QuestSequence reference117 = ref span154[num]; questSequence = new QuestSequence { Sequence = 1 @@ -61554,29 +74432,34 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span66 = CollectionsMarshal.AsSpan(list3); - span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(107.50675f, -4.574165f, -543.2282f), 156) + Span span157 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span157[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(107.50675f, -4.574165f, -543.2282f), 156) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span66[1] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(104.612144f, -4.931232f, -533.5191f), 156) + num3++; + span157[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(104.612144f, -4.931232f, -533.5191f), 156) { Mount = false }; questSequence74.Steps = list3; reference117 = questSequence; - ref QuestSequence reference118 = ref span64[2]; + num++; + ref QuestSequence reference118 = ref span154[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence75 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007899u, new Vector3(104.72266f, -4.9380107f, -533.53174f), 156) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span158 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span158[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007899u, new Vector3(104.72266f, -4.9380107f, -533.53174f), 156) { Fly = true, NextQuestId = new QuestId(2026) @@ -61589,16 +74472,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot36 = questRoot; num = 1; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "Cacahuetes"; - questRoot36.Author = list56; + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + Span span159 = CollectionsMarshal.AsSpan(list58); + index = 0; + span159[index] = "Cacahuetes"; + questRoot36.Author = list58; QuestRoot questRoot37 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span67 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference119 = ref span67[0]; + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span160 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference119 = ref span160[num]; questSequence = new QuestSequence { Sequence = 0 @@ -61607,7 +74493,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference120 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span161 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference120 = ref span161[num3]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -61625,27 +74513,31 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition13 = skipAetheryteCondition; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = 133; - skipAetheryteCondition13.InTerritory = list57; + num4 = 1; + List list59 = new List(num4); + CollectionsMarshal.SetCount(list59, num4); + Span span162 = CollectionsMarshal.AsSpan(list59); + num5 = 0; + span162[num5] = 133; + skipAetheryteCondition13.InTerritory = list59; skipConditions22.AetheryteShortcutIf = skipAetheryteCondition; questStep50.SkipConditions = skipConditions; reference120 = questStep; questSequence76.Steps = list3; reference119 = questSequence; - ref QuestSequence reference121 = ref span67[1]; + num++; + ref QuestSequence reference121 = ref span160[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence77 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span68 = CollectionsMarshal.AsSpan(list3); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span163 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span163[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -61657,10 +74549,12 @@ public static class AssemblyQuestLoader } } }; - span68[1] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span163[num2] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence77.Steps = list3; reference121 = questSequence; - ref QuestSequence reference122 = ref span67[2]; + num++; + ref QuestSequence reference122 = ref span160[num]; questSequence = new QuestSequence { Sequence = 2 @@ -61669,26 +74563,32 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007564u, new Vector3(272.23608f, 222.26244f, 339.1317f), 155); + Span span164 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span164[num3] = new QuestStep(EInteractionType.Interact, 1007564u, new Vector3(272.23608f, 222.26244f, 339.1317f), 155); questSequence78.Steps = list3; reference122 = questSequence; - ref QuestSequence reference123 = ref span67[3]; + num++; + ref QuestSequence reference123 = ref span160[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence79 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006375u, new Vector3(-296.65063f, -13.630577f, 197.34485f), 154) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span165 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span165[num2] = new QuestStep(EInteractionType.Interact, 1006375u, new Vector3(-296.65063f, -13.630577f, 197.34485f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; questSequence79.Steps = list3; reference123 = questSequence; - ref QuestSequence reference124 = ref span67[4]; + num++; + ref QuestSequence reference124 = ref span160[num]; questSequence = new QuestSequence { Sequence = 4 @@ -61697,24 +74597,28 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007564u, new Vector3(272.23608f, 222.26244f, 339.1317f), 155) + Span span166 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span166[num3] = new QuestStep(EInteractionType.Interact, 1007564u, new Vector3(272.23608f, 222.26244f, 339.1317f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; questSequence80.Steps = list3; reference124 = questSequence; - ref QuestSequence reference125 = ref span67[5]; + num++; + ref QuestSequence reference125 = ref span160[num]; questSequence = new QuestSequence { Sequence = 5 }; QuestSequence questSequence81 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span69 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference126 = ref span69[0]; + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span167 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference126 = ref span167[num2]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(522.39246f, 234.74356f, 322.10266f), 155) { StopDistance = 0.5f, @@ -61722,28 +74626,38 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep51 = questStep; - num3 = 1; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - CollectionsMarshal.AsSpan(list58)[0] = 1928u; - questStep51.KillEnemyDataIds = list58; + num5 = 1; + List list60 = new List(num5); + CollectionsMarshal.SetCount(list60, num5); + Span span168 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span168[num4] = 1928u; + questStep51.KillEnemyDataIds = list60; QuestStep questStep52 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span70 = CollectionsMarshal.AsSpan(list4); - span70[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = null; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span169 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span169[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span169[num5] = null; + num5++; + span169[num5] = null; + num5++; + span169[num5] = null; + num5++; + span169[num5] = null; + num5++; + span169[num5] = null; questStep52.CompletionQuestVariablesFlags = list4; reference126 = questStep; - span69[1] = new QuestStep(EInteractionType.Interact, 2002420u, new Vector3(524.6509f, 234.72949f, 324.08643f), 155); + num2++; + span167[num2] = new QuestStep(EInteractionType.Interact, 2002420u, new Vector3(524.6509f, 234.72949f, 324.08643f), 155); questSequence81.Steps = list3; reference125 = questSequence; - ref QuestSequence reference127 = ref span67[6]; + num++; + ref QuestSequence reference127 = ref span160[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -61752,8 +74666,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span71 = CollectionsMarshal.AsSpan(list3); - span71[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span170 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span170[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, SkipConditions = new SkipConditions @@ -61764,7 +74679,8 @@ public static class AssemblyQuestLoader } } }; - span71[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + num3++; + span170[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1068) }; @@ -61776,26 +74692,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot38 = questRoot; num = 1; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "Cacahuetes"; - questRoot38.Author = list59; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + Span span171 = CollectionsMarshal.AsSpan(list61); + index = 0; + span171[index] = "Cacahuetes"; + questRoot38.Author = list61; QuestRoot questRoot39 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span72 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference128 = ref span72[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span172 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference128 = ref span172[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence83 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span73 = CollectionsMarshal.AsSpan(list3); - span73[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span173 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -61807,14 +74727,17 @@ public static class AssemblyQuestLoader } } }; - span73[1] = new QuestStep(EInteractionType.EquipItem, null, null, 155) + num2++; + span173[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 155) { ItemId = 4545u }; - span73[2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span173[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence83.Steps = list3; reference128 = questSequence; - ref QuestSequence reference129 = ref span72[1]; + num++; + ref QuestSequence reference129 = ref span172[num]; questSequence = new QuestSequence { Sequence = 1 @@ -61823,8 +74746,9 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span74 = CollectionsMarshal.AsSpan(list3); - span74[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(267.5908f, 236.15701f, -328.8527f), 155) + Span span174 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span174[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(267.5908f, 236.15701f, -328.8527f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, JumpDestination = new JumpDestination @@ -61839,7 +74763,8 @@ public static class AssemblyQuestLoader } } }; - span74[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(266.22034f, 237.89253f, -341.475f), 155) + num3++; + span174[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(266.22034f, 237.89253f, -341.475f), 155) { JumpDestination = new JumpDestination { @@ -61853,49 +74778,57 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference130 = ref span74[2]; + num3++; + ref QuestStep reference130 = ref span174[num3]; questStep = new QuestStep(EInteractionType.Combat, 1007856u, new Vector3(261.76843f, 240.06624f, -346.48663f), 155) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep53 = questStep; - num3 = 1; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = 58u; - questStep53.KillEnemyDataIds = list60; + num5 = 1; + List list62 = new List(num5); + CollectionsMarshal.SetCount(list62, num5); + Span span175 = CollectionsMarshal.AsSpan(list62); + num4 = 0; + span175[num4] = 58u; + questStep53.KillEnemyDataIds = list62; reference130 = questStep; questSequence84.Steps = list3; reference129 = questSequence; - ref QuestSequence reference131 = ref span72[2]; + num++; + ref QuestSequence reference131 = ref span172[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence85 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span75 = CollectionsMarshal.AsSpan(list3); - span75[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(267.5908f, 236.15701f, -328.8527f), 155) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span176 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span176[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(267.5908f, 236.15701f, -328.8527f), 155) { JumpDestination = new JumpDestination { Position = new Vector3(264.47205f, 237.91518f, -336.72607f) } }; - span75[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(266.22034f, 237.89253f, -341.475f), 155) + num2++; + span176[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(266.22034f, 237.89253f, -341.475f), 155) { JumpDestination = new JumpDestination { Position = new Vector3(263.72516f, 239.88335f, -346.17166f) } }; - span75[2] = new QuestStep(EInteractionType.Interact, 1007856u, new Vector3(261.76843f, 240.06624f, -346.48663f), 155); + num2++; + span176[num2] = new QuestStep(EInteractionType.Interact, 1007856u, new Vector3(261.76843f, 240.06624f, -346.48663f), 155); questSequence85.Steps = list3; reference131 = questSequence; - ref QuestSequence reference132 = ref span72[3]; + num++; + ref QuestSequence reference132 = ref span172[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -61904,8 +74837,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span76 = CollectionsMarshal.AsSpan(list3); - span76[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span177 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span177[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -61917,7 +74851,8 @@ public static class AssemblyQuestLoader } } }; - span76[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + num3++; + span177[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1069) }; @@ -61929,26 +74864,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot40 = questRoot; num = 1; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "Cacahuetes"; - questRoot40.Author = list61; + List list63 = new List(num); + CollectionsMarshal.SetCount(list63, num); + Span span178 = CollectionsMarshal.AsSpan(list63); + index = 0; + span178[index] = "Cacahuetes"; + questRoot40.Author = list63; QuestRoot questRoot41 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span77 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference133 = ref span77[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span179 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference133 = ref span179[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence87 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span78 = CollectionsMarshal.AsSpan(list3); - span78[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span180 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -61960,10 +74899,12 @@ public static class AssemblyQuestLoader } } }; - span78[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span180[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence87.Steps = list3; reference133 = questSequence; - ref QuestSequence reference134 = ref span77[1]; + num++; + ref QuestSequence reference134 = ref span179[num]; questSequence = new QuestSequence { Sequence = 1 @@ -61972,41 +74913,49 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span79 = CollectionsMarshal.AsSpan(list3); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(484.85364f, 247.89886f, -269.40628f), 155) + Span span181 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span181[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(484.85364f, 247.89886f, -269.40628f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - ref QuestStep reference135 = ref span79[1]; + num3++; + ref QuestStep reference135 = ref span181[num3]; questStep = new QuestStep(EInteractionType.Combat, 1007857u, new Vector3(485.92358f, 248.1806f, -268.66565f), 155) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep54 = questStep; - num3 = 2; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span80 = CollectionsMarshal.AsSpan(list62); - span80[0] = 11u; - span80[1] = 1931u; - questStep54.KillEnemyDataIds = list62; + num4 = 2; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + Span span182 = CollectionsMarshal.AsSpan(list64); + num5 = 0; + span182[num5] = 11u; + num5++; + span182[num5] = 1931u; + questStep54.KillEnemyDataIds = list64; reference135 = questStep; questSequence88.Steps = list3; reference134 = questSequence; - ref QuestSequence reference136 = ref span77[2]; + num++; + ref QuestSequence reference136 = ref span179[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence89 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007857u, new Vector3(485.92358f, 248.1806f, -268.66565f), 155); + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span183 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span183[num2] = new QuestStep(EInteractionType.Interact, 1007857u, new Vector3(485.92358f, 248.1806f, -268.66565f), 155); questSequence89.Steps = list3; reference136 = questSequence; - ref QuestSequence reference137 = ref span77[3]; + num++; + ref QuestSequence reference137 = ref span179[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -62015,8 +74964,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span81 = CollectionsMarshal.AsSpan(list3); - span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span184 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span184[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -62028,7 +74978,8 @@ public static class AssemblyQuestLoader } } }; - span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + num3++; + span184[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1070) }; @@ -62040,26 +74991,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot42 = questRoot; num = 1; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = "Cacahuetes"; - questRoot42.Author = list63; + List list65 = new List(num); + CollectionsMarshal.SetCount(list65, num); + Span span185 = CollectionsMarshal.AsSpan(list65); + index = 0; + span185[index] = "Cacahuetes"; + questRoot42.Author = list65; QuestRoot questRoot43 = questRoot; - num = 12; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span82 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference138 = ref span82[0]; + index = 12; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span186 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference138 = ref span186[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence91 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span83 = CollectionsMarshal.AsSpan(list3); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span187 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -62071,10 +75026,12 @@ public static class AssemblyQuestLoader } } }; - span83[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span187[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence91.Steps = list3; reference138 = questSequence; - ref QuestSequence reference139 = ref span82[1]; + num++; + ref QuestSequence reference139 = ref span186[num]; questSequence = new QuestSequence { Sequence = 1 @@ -62083,23 +75040,27 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 2002423u, new Vector3(-318.80682f, 304.64624f, 243.33557f), 155) + Span span188 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span188[num3] = new QuestStep(EInteractionType.Interact, 2002423u, new Vector3(-318.80682f, 304.64624f, 243.33557f), 155) { Fly = true }; questSequence92.Steps = list3; reference139 = questSequence; - ref QuestSequence reference140 = ref span82[2]; + num++; + ref QuestSequence reference140 = ref span186[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence93 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span84 = CollectionsMarshal.AsSpan(list3); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span189 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, SkipConditions = new SkipConditions @@ -62110,10 +75071,12 @@ public static class AssemblyQuestLoader } } }; - span84[1] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span189[num2] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence93.Steps = list3; reference140 = questSequence; - ref QuestSequence reference141 = ref span82[3]; + num++; + ref QuestSequence reference141 = ref span186[num]; questSequence = new QuestSequence { Sequence = 3 @@ -62122,7 +75085,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span190 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference142 = ref span190[num3]; questStep = new QuestStep(EInteractionType.Combat, 1007858u, new Vector3(591.2107f, 331.39114f, -447.776f), 155) { Fly = true, @@ -62130,27 +75095,33 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep55 = questStep; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = 1932u; - questStep55.KillEnemyDataIds = list64; + num5 = 1; + List list66 = new List(num5); + CollectionsMarshal.SetCount(list66, num5); + Span span191 = CollectionsMarshal.AsSpan(list66); + num4 = 0; + span191[num4] = 1932u; + questStep55.KillEnemyDataIds = list66; reference142 = questStep; questSequence94.Steps = list3; reference141 = questSequence; - ref QuestSequence reference143 = ref span82[4]; + num++; + ref QuestSequence reference143 = ref span186[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence95 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007858u, new Vector3(591.2107f, 331.39114f, -447.776f), 155); + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span192 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span192[num2] = new QuestStep(EInteractionType.Interact, 1007858u, new Vector3(591.2107f, 331.39114f, -447.776f), 155); questSequence95.Steps = list3; reference143 = questSequence; - ref QuestSequence reference144 = ref span82[5]; + num++; + ref QuestSequence reference144 = ref span186[num]; questSequence = new QuestSequence { Sequence = 5 @@ -62159,33 +75130,41 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference145 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span193 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference145 = ref span193[num3]; questStep = new QuestStep(EInteractionType.Combat, 1007859u, new Vector3(654.53577f, 305.091f, -354.11615f), 155) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep56 = questStep; - num3 = 1; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = 1933u; - questStep56.KillEnemyDataIds = list65; + num4 = 1; + List list67 = new List(num4); + CollectionsMarshal.SetCount(list67, num4); + Span span194 = CollectionsMarshal.AsSpan(list67); + num5 = 0; + span194[num5] = 1933u; + questStep56.KillEnemyDataIds = list67; reference145 = questStep; questSequence96.Steps = list3; reference144 = questSequence; - ref QuestSequence reference146 = ref span82[6]; + num++; + ref QuestSequence reference146 = ref span186[num]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence97 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007859u, new Vector3(654.53577f, 305.091f, -354.11615f), 155); + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span195 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.Interact, 1007859u, new Vector3(654.53577f, 305.091f, -354.11615f), 155); questSequence97.Steps = list3; reference146 = questSequence; - ref QuestSequence reference147 = ref span82[7]; + num++; + ref QuestSequence reference147 = ref span186[num]; questSequence = new QuestSequence { Sequence = 7 @@ -62194,33 +75173,41 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span196 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference148 = ref span196[num3]; questStep = new QuestStep(EInteractionType.Combat, 1007860u, new Vector3(622.06445f, 287.86145f, -317.89124f), 155) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep57 = questStep; - num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = 1934u; - questStep57.KillEnemyDataIds = list66; + num5 = 1; + List list68 = new List(num5); + CollectionsMarshal.SetCount(list68, num5); + Span span197 = CollectionsMarshal.AsSpan(list68); + num4 = 0; + span197[num4] = 1934u; + questStep57.KillEnemyDataIds = list68; reference148 = questStep; questSequence98.Steps = list3; reference147 = questSequence; - ref QuestSequence reference149 = ref span82[8]; + num++; + ref QuestSequence reference149 = ref span186[num]; questSequence = new QuestSequence { Sequence = 8 }; QuestSequence questSequence99 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007860u, new Vector3(622.06445f, 287.86145f, -317.89124f), 155); + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span198 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span198[num2] = new QuestStep(EInteractionType.Interact, 1007860u, new Vector3(622.06445f, 287.86145f, -317.89124f), 155); questSequence99.Steps = list3; reference149 = questSequence; - ref QuestSequence reference150 = ref span82[9]; + num++; + ref QuestSequence reference150 = ref span186[num]; questSequence = new QuestSequence { Sequence = 9 @@ -62229,8 +75216,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span85 = CollectionsMarshal.AsSpan(list3); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span199 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span199[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -62242,40 +75230,47 @@ public static class AssemblyQuestLoader } } }; - span85[1] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num3++; + span199[num3] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence100.Steps = list3; reference150 = questSequence; - ref QuestSequence reference151 = ref span82[10]; + num++; + ref QuestSequence reference151 = ref span186[num]; questSequence = new QuestSequence { Sequence = 10 }; QuestSequence questSequence101 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span86 = CollectionsMarshal.AsSpan(list3); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(179.19377f, 358.68628f, -580.35266f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span200 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(179.19377f, 358.68628f, -580.35266f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - ref QuestStep reference152 = ref span86[1]; + num2++; + ref QuestStep reference152 = ref span200[num2]; questStep = new QuestStep(EInteractionType.Combat, 2002424u, new Vector3(67.91785f, 374.77686f, -672.2057f), 155) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep58 = questStep; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = 1929u; - questStep58.KillEnemyDataIds = list67; + num4 = 1; + List list69 = new List(num4); + CollectionsMarshal.SetCount(list69, num4); + Span span201 = CollectionsMarshal.AsSpan(list69); + num5 = 0; + span201[num5] = 1929u; + questStep58.KillEnemyDataIds = list69; reference152 = questStep; questSequence101.Steps = list3; reference151 = questSequence; - ref QuestSequence reference153 = ref span82[11]; + num++; + ref QuestSequence reference153 = ref span186[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -62284,8 +75279,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span87 = CollectionsMarshal.AsSpan(list3); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span202 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span202[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -62297,7 +75293,8 @@ public static class AssemblyQuestLoader } } }; - span87[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + num3++; + span202[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1071) }; @@ -62309,26 +75306,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot44 = questRoot; num = 1; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "Cacahuetes"; - questRoot44.Author = list68; + List list70 = new List(num); + CollectionsMarshal.SetCount(list70, num); + Span span203 = CollectionsMarshal.AsSpan(list70); + index = 0; + span203[index] = "Cacahuetes"; + questRoot44.Author = list70; QuestRoot questRoot45 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span88 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference154 = ref span88[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span204 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference154 = ref span204[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence103 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span89 = CollectionsMarshal.AsSpan(list3); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span205 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span205[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -62340,10 +75341,12 @@ public static class AssemblyQuestLoader } } }; - span89[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span205[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence103.Steps = list3; reference154 = questSequence; - ref QuestSequence reference155 = ref span88[1]; + num++; + ref QuestSequence reference155 = ref span204[num]; questSequence = new QuestSequence { Sequence = 1 @@ -62352,7 +75355,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference156 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span206 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference156 = ref span206[num3]; questStep = new QuestStep(EInteractionType.Combat, 2002425u, new Vector3(96.69641f, 356.3744f, -257.2519f), 155) { Fly = true, @@ -62360,25 +75365,29 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep59 = questStep; - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = 1930u; - questStep59.KillEnemyDataIds = list69; + num5 = 1; + List list71 = new List(num5); + CollectionsMarshal.SetCount(list71, num5); + Span span207 = CollectionsMarshal.AsSpan(list71); + num4 = 0; + span207[num4] = 1930u; + questStep59.KillEnemyDataIds = list71; reference156 = questStep; questSequence104.Steps = list3; reference155 = questSequence; - ref QuestSequence reference157 = ref span88[2]; + num++; + ref QuestSequence reference157 = ref span204[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence105 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span90 = CollectionsMarshal.AsSpan(list3); - span90[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span208 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, SkipConditions = new SkipConditions @@ -62389,7 +75398,8 @@ public static class AssemblyQuestLoader } } }; - span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + num2++; + span208[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1072) }; @@ -62401,16 +75411,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot46 = questRoot; num = 1; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - CollectionsMarshal.AsSpan(list70)[0] = "Cacahuetes"; - questRoot46.Author = list70; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span209 = CollectionsMarshal.AsSpan(list72); + index = 0; + span209[index] = "Cacahuetes"; + questRoot46.Author = list72; QuestRoot questRoot47 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span91 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference158 = ref span91[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span210 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference158 = ref span210[num]; questSequence = new QuestSequence { Sequence = 0 @@ -62419,8 +75432,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span92 = CollectionsMarshal.AsSpan(list3); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span211 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span211[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -62432,31 +75446,36 @@ public static class AssemblyQuestLoader } } }; - span92[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num3++; + span211[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence106.Steps = list3; reference158 = questSequence; - ref QuestSequence reference159 = ref span91[1]; + num++; + ref QuestSequence reference159 = ref span210[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence107 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span93 = CollectionsMarshal.AsSpan(list3); - span93[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(267.25278f, 361.89908f, -575.7137f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span212 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span212[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(267.25278f, 361.89908f, -575.7137f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span93[1] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(266.7326f, 362.4986f, -586.0155f), 155) + num2++; + span212[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(266.7326f, 362.4986f, -586.0155f), 155) { Mount = false }; questSequence107.Steps = list3; reference159 = questSequence; - ref QuestSequence reference160 = ref span91[2]; + num++; + ref QuestSequence reference160 = ref span210[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -62465,13 +75484,15 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span94 = CollectionsMarshal.AsSpan(list3); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span213 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span213[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span94[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + num3++; + span213[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1689) }; @@ -62483,25 +75504,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot48 = questRoot; num = 1; - List list71 = new List(num); - CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "pot0to"; - questRoot48.Author = list71; + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + Span span214 = CollectionsMarshal.AsSpan(list73); + index = 0; + span214[index] = "pot0to"; + questRoot48.Author = list73; QuestRoot questRoot49 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span95 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference161 = ref span95[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span215 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference161 = ref span215[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence109 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference162 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span216 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference162 = ref span216[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -62519,17 +75545,20 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition14 = skipAetheryteCondition; - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = 130; - skipAetheryteCondition14.InTerritory = list72; + num4 = 1; + List list74 = new List(num4); + CollectionsMarshal.SetCount(list74, num4); + Span span217 = CollectionsMarshal.AsSpan(list74); + num5 = 0; + span217[num5] = 130; + skipAetheryteCondition14.InTerritory = list74; skipConditions23.AetheryteShortcutIf = skipAetheryteCondition; questStep60.SkipConditions = skipConditions; reference162 = questStep; questSequence109.Steps = list3; reference161 = questSequence; - ref QuestSequence reference163 = ref span95[1]; + num++; + ref QuestSequence reference163 = ref span215[num]; questSequence = new QuestSequence { Sequence = 1 @@ -62538,7 +75567,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference164 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span218 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference164 = ref span218[num3]; questStep = new QuestStep(EInteractionType.Combat, 2002533u, new Vector3(-72.67877f, -32.059265f, -46.830017f), 145) { Fly = true, @@ -62546,30 +75577,36 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep61 = questStep; - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = 305u; - questStep61.KillEnemyDataIds = list73; + num5 = 1; + List list75 = new List(num5); + CollectionsMarshal.SetCount(list75, num5); + Span span219 = CollectionsMarshal.AsSpan(list75); + num4 = 0; + span219[num4] = 305u; + questStep61.KillEnemyDataIds = list75; reference164 = questStep; questSequence110.Steps = list3; reference163 = questSequence; - ref QuestSequence reference165 = ref span95[2]; + num++; + ref QuestSequence reference165 = ref span215[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence111 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.UseItem, 2002429u, new Vector3(-72.67877f, -32.059265f, -46.830017f), 145) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span220 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span220[num2] = new QuestStep(EInteractionType.UseItem, 2002429u, new Vector3(-72.67877f, -32.059265f, -46.830017f), 145) { ItemId = 2000954u }; questSequence111.Steps = list3; reference165 = questSequence; - ref QuestSequence reference166 = ref span95[3]; + num++; + ref QuestSequence reference166 = ref span215[num]; questSequence = new QuestSequence { Sequence = 3 @@ -62578,7 +75615,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) + Span span221 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span221[num3] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -62589,16 +75628,19 @@ public static class AssemblyQuestLoader }; questSequence112.Steps = list3; reference166 = questSequence; - ref QuestSequence reference167 = ref span95[4]; + num++; + ref QuestSequence reference167 = ref span215[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence113 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference168 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span222 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference168 = ref span222[num2]; questStep = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AethernetShortcut = new AethernetShortcut @@ -62615,11 +75657,13 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition15 = skipAetheryteCondition; - num3 = 1; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - CollectionsMarshal.AsSpan(list74)[0] = 130; - skipAetheryteCondition15.InTerritory = list74; + num4 = 1; + List list76 = new List(num4); + CollectionsMarshal.SetCount(list76, num4); + Span span223 = CollectionsMarshal.AsSpan(list76); + num5 = 0; + span223[num5] = 130; + skipAetheryteCondition15.InTerritory = list76; skipConditions24.AetheryteShortcutIf = skipAetheryteCondition; questStep62.SkipConditions = skipConditions; reference168 = questStep; @@ -62631,16 +75675,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot50 = questRoot; num = 1; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "pot0to"; - questRoot50.Author = list75; + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + Span span224 = CollectionsMarshal.AsSpan(list77); + index = 0; + span224[index] = "pot0to"; + questRoot50.Author = list77; QuestRoot questRoot51 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span96 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference169 = ref span96[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span225 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference169 = ref span225[num]; questSequence = new QuestSequence { Sequence = 0 @@ -62649,8 +75696,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span97 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference170 = ref span97[0]; + Span span226 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference170 = ref span226[num3]; questStep = new QuestStep(EInteractionType.EquipItem, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -62669,29 +75717,35 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition16 = skipAetheryteCondition; - num3 = 2; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - Span span98 = CollectionsMarshal.AsSpan(list76); - span98[0] = 130; - span98[1] = 131; - skipAetheryteCondition16.InTerritory = list76; + num5 = 2; + List list78 = new List(num5); + CollectionsMarshal.SetCount(list78, num5); + Span span227 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span227[num4] = 130; + num4++; + span227[num4] = 131; + skipAetheryteCondition16.InTerritory = list78; skipConditions25.AetheryteShortcutIf = skipAetheryteCondition; questStep63.SkipConditions = skipConditions; reference170 = questStep; - span97[1] = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131); + num3++; + span226[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131); questSequence114.Steps = list3; reference169 = questSequence; - ref QuestSequence reference171 = ref span96[1]; + num++; + ref QuestSequence reference171 = ref span225[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence115 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference172 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span228 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference172 = ref span228[num2]; questStep = new QuestStep(EInteractionType.Combat, 2002534u, new Vector3(-7.9194946f, 13.687317f, 866.54443f), 146) { Fly = true, @@ -62699,15 +75753,18 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep64 = questStep; - num3 = 1; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = 21u; - questStep64.KillEnemyDataIds = list77; + num4 = 1; + List list79 = new List(num4); + CollectionsMarshal.SetCount(list79, num4); + Span span229 = CollectionsMarshal.AsSpan(list79); + num5 = 0; + span229[num5] = 21u; + questStep64.KillEnemyDataIds = list79; reference172 = questStep; questSequence115.Steps = list3; reference171 = questSequence; - ref QuestSequence reference173 = ref span96[2]; + num++; + ref QuestSequence reference173 = ref span225[num]; questSequence = new QuestSequence { Sequence = 2 @@ -62716,22 +75773,27 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.UseItem, 2002430u, new Vector3(-7.9194946f, 13.687317f, 866.54443f), 146) + Span span230 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span230[num3] = new QuestStep(EInteractionType.UseItem, 2002430u, new Vector3(-7.9194946f, 13.687317f, 866.54443f), 146) { ItemId = 2000809u }; questSequence116.Steps = list3; reference173 = questSequence; - ref QuestSequence reference174 = ref span96[3]; + num++; + ref QuestSequence reference174 = ref span225[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence117 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span231 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -62742,7 +75804,8 @@ public static class AssemblyQuestLoader }; questSequence117.Steps = list3; reference174 = questSequence; - ref QuestSequence reference175 = ref span96[4]; + num++; + ref QuestSequence reference175 = ref span225[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -62751,7 +75814,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span232 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference176 = ref span232[num3]; questStep = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -62769,11 +75834,13 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition17 = skipAetheryteCondition; - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = 130; - skipAetheryteCondition17.InTerritory = list78; + num5 = 1; + List list80 = new List(num5); + CollectionsMarshal.SetCount(list80, num5); + Span span233 = CollectionsMarshal.AsSpan(list80); + num4 = 0; + span233[num4] = 130; + skipAetheryteCondition17.InTerritory = list80; skipConditions26.AetheryteShortcutIf = skipAetheryteCondition; questStep65.SkipConditions = skipConditions; reference176 = questStep; @@ -62785,25 +75852,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot52 = questRoot; num = 1; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "pot0to"; - questRoot52.Author = list79; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + Span span234 = CollectionsMarshal.AsSpan(list81); + index = 0; + span234[index] = "pot0to"; + questRoot52.Author = list81; QuestRoot questRoot53 = questRoot; - num = 12; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span99 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference177 = ref span99[0]; + index = 12; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span235 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference177 = ref span235[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence119 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference178 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span236 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference178 = ref span236[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -62821,19 +75893,22 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition18 = skipAetheryteCondition; - num3 = 2; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span100 = CollectionsMarshal.AsSpan(list80); - span100[0] = 130; - span100[1] = 131; - skipAetheryteCondition18.InTerritory = list80; + num4 = 2; + List list82 = new List(num4); + CollectionsMarshal.SetCount(list82, num4); + Span span237 = CollectionsMarshal.AsSpan(list82); + num5 = 0; + span237[num5] = 130; + num5++; + span237[num5] = 131; + skipAetheryteCondition18.InTerritory = list82; skipConditions27.AetheryteShortcutIf = skipAetheryteCondition; questStep66.SkipConditions = skipConditions; reference178 = questStep; questSequence119.Steps = list3; reference177 = questSequence; - ref QuestSequence reference179 = ref span99[1]; + num++; + ref QuestSequence reference179 = ref span235[num]; questSequence = new QuestSequence { Sequence = 1 @@ -62842,30 +75917,36 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + Span span238 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span238[num3] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; questSequence120.Steps = list3; reference179 = questSequence; - ref QuestSequence reference180 = ref span99[2]; + num++; + ref QuestSequence reference180 = ref span235[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence121 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007864u, new Vector3(-167.40674f, 14.513778f, -251.3009f), 140) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span239 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span239[num2] = new QuestStep(EInteractionType.Interact, 1007864u, new Vector3(-167.40674f, 14.513778f, -251.3009f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; questSequence121.Steps = list3; reference180 = questSequence; - ref QuestSequence reference181 = ref span99[3]; + num++; + ref QuestSequence reference181 = ref span235[num]; questSequence = new QuestSequence { Sequence = 3 @@ -62874,36 +75955,44 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference182 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span240 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference182 = ref span240[num3]; questStep = new QuestStep(EInteractionType.Combat, 2002535u, new Vector3(-178.39331f, 15.42688f, -244.64789f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep67 = questStep; - num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = 182u; - questStep67.KillEnemyDataIds = list81; + num5 = 1; + List list83 = new List(num5); + CollectionsMarshal.SetCount(list83, num5); + Span span241 = CollectionsMarshal.AsSpan(list83); + num4 = 0; + span241[num4] = 182u; + questStep67.KillEnemyDataIds = list83; reference182 = questStep; questSequence122.Steps = list3; reference181 = questSequence; - ref QuestSequence reference183 = ref span99[4]; + num++; + ref QuestSequence reference183 = ref span235[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence123 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.UseItem, 2002431u, new Vector3(-178.39331f, 15.42688f, -244.64789f), 140) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span242 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.UseItem, 2002431u, new Vector3(-178.39331f, 15.42688f, -244.64789f), 140) { ItemId = 2000810u }; questSequence123.Steps = list3; reference183 = questSequence; - ref QuestSequence reference184 = ref span99[5]; + num++; + ref QuestSequence reference184 = ref span235[num]; questSequence = new QuestSequence { Sequence = 5 @@ -62912,25 +76001,31 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007864u, new Vector3(-167.40674f, 14.513778f, -251.3009f), 140); + Span span243 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span243[num3] = new QuestStep(EInteractionType.Interact, 1007864u, new Vector3(-167.40674f, 14.513778f, -251.3009f), 140); questSequence124.Steps = list3; reference184 = questSequence; - ref QuestSequence reference185 = ref span99[6]; + num++; + ref QuestSequence reference185 = ref span235[num]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence125 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007865u, new Vector3(-223.10223f, 14.513845f, -365.25525f), 140) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span244 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.Interact, 1007865u, new Vector3(-223.10223f, 14.513845f, -365.25525f), 140) { Fly = true }; questSequence125.Steps = list3; reference185 = questSequence; - ref QuestSequence reference186 = ref span99[7]; + num++; + ref QuestSequence reference186 = ref span235[num]; questSequence = new QuestSequence { Sequence = 7 @@ -62939,36 +76034,44 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference187 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span245 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference187 = ref span245[num3]; questStep = new QuestStep(EInteractionType.Combat, 2002536u, new Vector3(-211.16962f, 15.396301f, -345.41852f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep68 = questStep; - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = 182u; - questStep68.KillEnemyDataIds = list82; + num4 = 1; + List list84 = new List(num4); + CollectionsMarshal.SetCount(list84, num4); + Span span246 = CollectionsMarshal.AsSpan(list84); + num5 = 0; + span246[num5] = 182u; + questStep68.KillEnemyDataIds = list84; reference187 = questStep; questSequence126.Steps = list3; reference186 = questSequence; - ref QuestSequence reference188 = ref span99[8]; + num++; + ref QuestSequence reference188 = ref span235[num]; questSequence = new QuestSequence { Sequence = 8 }; QuestSequence questSequence127 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.UseItem, 2002432u, new Vector3(-211.16962f, 15.396301f, -345.41852f), 140) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span247 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span247[num2] = new QuestStep(EInteractionType.UseItem, 2002432u, new Vector3(-211.16962f, 15.396301f, -345.41852f), 140) { ItemId = 2000811u }; questSequence127.Steps = list3; reference188 = questSequence; - ref QuestSequence reference189 = ref span99[9]; + num++; + ref QuestSequence reference189 = ref span235[num]; questSequence = new QuestSequence { Sequence = 9 @@ -62977,22 +76080,28 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007865u, new Vector3(-223.10223f, 14.513845f, -365.25525f), 140); + Span span248 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span248[num3] = new QuestStep(EInteractionType.Interact, 1007865u, new Vector3(-223.10223f, 14.513845f, -365.25525f), 140); questSequence128.Steps = list3; reference189 = questSequence; - ref QuestSequence reference190 = ref span99[10]; + num++; + ref QuestSequence reference190 = ref span235[num]; questSequence = new QuestSequence { Sequence = 10 }; QuestSequence questSequence129 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007863u, new Vector3(-131.70062f, 17.982016f, -278.8587f), 140); + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span249 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span249[num2] = new QuestStep(EInteractionType.Interact, 1007863u, new Vector3(-131.70062f, 17.982016f, -278.8587f), 140); questSequence129.Steps = list3; reference190 = questSequence; - ref QuestSequence reference191 = ref span99[11]; + num++; + ref QuestSequence reference191 = ref span235[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -63001,7 +76110,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + Span span250 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span250[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone @@ -63014,25 +76125,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot54 = questRoot; num = 1; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "pot0to"; - questRoot54.Author = list83; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + Span span251 = CollectionsMarshal.AsSpan(list85); + index = 0; + span251[index] = "pot0to"; + questRoot54.Author = list85; QuestRoot questRoot55 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span101 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference192 = ref span101[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span252 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference192 = ref span252[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence131 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference193 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span253 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference193 = ref span253[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, @@ -63046,19 +76162,22 @@ public static class AssemblyQuestLoader } }; QuestStep questStep69 = questStep; - num3 = 1; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = new DialogueChoice + num5 = 1; + List list86 = new List(num5); + CollectionsMarshal.SetCount(list86, num5); + Span span254 = CollectionsMarshal.AsSpan(list86); + num4 = 0; + span254[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBBLM450_01076_Q1_000_1") }; - questStep69.DialogueChoices = list84; + questStep69.DialogueChoices = list86; reference193 = questStep; questSequence131.Steps = list3; reference192 = questSequence; - ref QuestSequence reference194 = ref span101[1]; + num++; + ref QuestSequence reference194 = ref span252[num]; questSequence = new QuestSequence { Sequence = 1 @@ -63067,26 +76186,32 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002433u, new Vector3(374.28845f, 3.40271f, 161.73035f), 153) + Span span255 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span255[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002433u, new Vector3(374.28845f, 3.40271f, 161.73035f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; questSequence132.Steps = list3; reference194 = questSequence; - ref QuestSequence reference195 = ref span101[2]; + num++; + ref QuestSequence reference195 = ref span252[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence133 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007866u, new Vector3(376.29065f, 2.505473f, 159.52626f), 153); + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span256 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.Interact, 1007866u, new Vector3(376.29065f, 2.505473f, 159.52626f), 153); questSequence133.Steps = list3; reference195 = questSequence; - ref QuestSequence reference196 = ref span101[3]; + num++; + ref QuestSequence reference196 = ref span252[num]; questSequence = new QuestSequence { Sequence = 3 @@ -63095,7 +76220,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007867u, new Vector3(282.39868f, 11.151184f, -6.729248f), 145) + Span span257 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span257[num3] = new QuestStep(EInteractionType.Interact, 1007867u, new Vector3(282.39868f, 11.151184f, -6.729248f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -63109,16 +76236,19 @@ public static class AssemblyQuestLoader }; questSequence134.Steps = list3; reference196 = questSequence; - ref QuestSequence reference197 = ref span101[4]; + num++; + ref QuestSequence reference197 = ref span252[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence135 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span258 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span258[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -63138,16 +76268,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot56 = questRoot; num = 1; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "pot0to"; - questRoot56.Author = list85; + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + Span span259 = CollectionsMarshal.AsSpan(list87); + index = 0; + span259[index] = "pot0to"; + questRoot56.Author = list87; QuestRoot questRoot57 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span102 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference198 = ref span102[0]; + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span260 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference198 = ref span260[num]; questSequence = new QuestSequence { Sequence = 0 @@ -63156,7 +76289,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + Span span261 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span261[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -63170,17 +76305,19 @@ public static class AssemblyQuestLoader }; questSequence136.Steps = list3; reference198 = questSequence; - ref QuestSequence reference199 = ref span102[1]; + num++; + ref QuestSequence reference199 = ref span260[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence137 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span103 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference200 = ref span103[0]; + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span262 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference200 = ref span262[num2]; questStep = new QuestStep(EInteractionType.UseItem, 2002434u, new Vector3(-101.27417f, 28.213867f, 117.234985f), 146) { Fly = true, @@ -63188,19 +76325,26 @@ public static class AssemblyQuestLoader ItemId = 2000812u }; QuestStep questStep70 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span104 = CollectionsMarshal.AsSpan(list4); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span263 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span263[num5] = null; + num5++; + span263[num5] = null; + num5++; + span263[num5] = null; + num5++; + span263[num5] = null; + num5++; + span263[num5] = null; + num5++; + span263[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep70.CompletionQuestVariablesFlags = list4; reference200 = questStep; - ref QuestStep reference201 = ref span103[1]; + num2++; + ref QuestStep reference201 = ref span262[num2]; questStep = new QuestStep(EInteractionType.UseItem, 2002435u, new Vector3(-1.8158569f, -11.703674f, -37.79669f), 154) { Fly = true, @@ -63208,19 +76352,26 @@ public static class AssemblyQuestLoader ItemId = 2000955u }; QuestStep questStep71 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span105 = CollectionsMarshal.AsSpan(list4); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span264 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span264[num4] = null; + num4++; + span264[num4] = null; + num4++; + span264[num4] = null; + num4++; + span264[num4] = null; + num4++; + span264[num4] = null; + num4++; + span264[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep71.CompletionQuestVariablesFlags = list4; reference201 = questStep; - ref QuestStep reference202 = ref span103[2]; + num2++; + ref QuestStep reference202 = ref span262[num2]; questStep = new QuestStep(EInteractionType.UseItem, 2002436u, new Vector3(68.680786f, 55.832764f, -503.95975f), 180) { Fly = true, @@ -63228,21 +76379,28 @@ public static class AssemblyQuestLoader ItemId = 2000956u }; QuestStep questStep72 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span106 = CollectionsMarshal.AsSpan(list4); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span265 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span265[num5] = null; + num5++; + span265[num5] = null; + num5++; + span265[num5] = null; + num5++; + span265[num5] = null; + num5++; + span265[num5] = null; + num5++; + span265[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep72.CompletionQuestVariablesFlags = list4; reference202 = questStep; questSequence137.Steps = list3; reference199 = questSequence; - ref QuestSequence reference203 = ref span102[2]; + num++; + ref QuestSequence reference203 = ref span260[num]; questSequence = new QuestSequence { Sequence = 2 @@ -63251,40 +76409,48 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + Span span266 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span266[num3] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; questSequence138.Steps = list3; reference203 = questSequence; - ref QuestSequence reference204 = ref span102[3]; + num++; + ref QuestSequence reference204 = ref span260[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence139 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span267 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference205 = ref span267[num2]; questStep = new QuestStep(EInteractionType.Combat, 2002537u, new Vector3(220.87427f, 5.5999756f, -269.9779f), 145) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep73 = questStep; - num3 = 2; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span107 = CollectionsMarshal.AsSpan(list86); - span107[0] = 1935u; - span107[1] = 1936u; - questStep73.KillEnemyDataIds = list86; + num5 = 2; + List list88 = new List(num5); + CollectionsMarshal.SetCount(list88, num5); + Span span268 = CollectionsMarshal.AsSpan(list88); + num4 = 0; + span268[num4] = 1935u; + num4++; + span268[num4] = 1936u; + questStep73.KillEnemyDataIds = list88; reference205 = questStep; questSequence139.Steps = list3; reference204 = questSequence; - ref QuestSequence reference206 = ref span102[4]; + num++; + ref QuestSequence reference206 = ref span260[num]; questSequence = new QuestSequence { Sequence = 4 @@ -63293,22 +76459,27 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.UseItem, 2002437u, new Vector3(220.87427f, 5.5999756f, -269.9779f), 145) + Span span269 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span269[num3] = new QuestStep(EInteractionType.UseItem, 2002437u, new Vector3(220.87427f, 5.5999756f, -269.9779f), 145) { ItemId = 2000957u }; questSequence140.Steps = list3; reference206 = questSequence; - ref QuestSequence reference207 = ref span102[5]; + num++; + ref QuestSequence reference207 = ref span260[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence141 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span270 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span270[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -63328,16 +76499,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot58 = questRoot; num = 1; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - CollectionsMarshal.AsSpan(list87)[0] = "pot0to"; - questRoot58.Author = list87; + List list89 = new List(num); + CollectionsMarshal.SetCount(list89, num); + Span span271 = CollectionsMarshal.AsSpan(list89); + index = 0; + span271[index] = "pot0to"; + questRoot58.Author = list89; QuestRoot questRoot59 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span108 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference208 = ref span108[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span272 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference208 = ref span272[num]; questSequence = new QuestSequence { Sequence = 0 @@ -63346,7 +76520,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + Span span273 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span273[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -63360,16 +76536,19 @@ public static class AssemblyQuestLoader }; questSequence142.Steps = list3; reference208 = questSequence; - ref QuestSequence reference209 = ref span108[1]; + num++; + ref QuestSequence reference209 = ref span272[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence143 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference210 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span274 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference210 = ref span274[num2]; questStep = new QuestStep(EInteractionType.Interact, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -63387,19 +76566,22 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition19 = skipAetheryteCondition; - num3 = 2; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span109 = CollectionsMarshal.AsSpan(list88); - span109[0] = 130; - span109[1] = 131; - skipAetheryteCondition19.InTerritory = list88; + num4 = 2; + List list90 = new List(num4); + CollectionsMarshal.SetCount(list90, num4); + Span span275 = CollectionsMarshal.AsSpan(list90); + num5 = 0; + span275[num5] = 130; + num5++; + span275[num5] = 131; + skipAetheryteCondition19.InTerritory = list90; skipConditions28.AetheryteShortcutIf = skipAetheryteCondition; questStep74.SkipConditions = skipConditions; reference210 = questStep; questSequence143.Steps = list3; reference209 = questSequence; - ref QuestSequence reference211 = ref span108[2]; + num++; + ref QuestSequence reference211 = ref span272[num]; questSequence = new QuestSequence { Sequence = 2 @@ -63408,8 +76590,9 @@ public static class AssemblyQuestLoader num2 = 5; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span110 = CollectionsMarshal.AsSpan(list3); - span110[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-173.17781f, 18.28456f, -280.36884f), 146) + Span span276 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span276[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-173.17781f, 18.28456f, -280.36884f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -63420,7 +76603,8 @@ public static class AssemblyQuestLoader } } }; - span110[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.27478f, 3.2999475f, -243.23695f), 146) + num3++; + span276[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.27478f, 3.2999475f, -243.23695f), 146) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -63431,7 +76615,8 @@ public static class AssemblyQuestLoader } } }; - span110[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-261.198f, 18.43726f, -104.834755f), 146) + num3++; + span276[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-261.198f, 18.43726f, -104.834755f), 146) { Fly = true, SkipConditions = new SkipConditions @@ -63442,75 +76627,100 @@ public static class AssemblyQuestLoader } } }; - span110[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-428.2874f, 5.952176f, -21.0684f), 146) + num3++; + span276[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-428.2874f, 5.952176f, -21.0684f), 146) { Fly = true }; - span110[4] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(-431.92166f, 6.5580425f, -17.561014f), 146) + num3++; + span276[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(-431.92166f, 6.5580425f, -17.561014f), 146) { StopDistance = 0.5f, Mount = false }; questSequence144.Steps = list3; reference211 = questSequence; - ref QuestSequence reference212 = ref span108[3]; + num++; + ref QuestSequence reference212 = ref span272[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence145 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span111 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference213 = ref span111[0]; + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span277 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference213 = ref span277[num2]; questStep = new QuestStep(EInteractionType.Interact, 1007872u, new Vector3(-468.925f, -3.1649342f, 59.464355f), 146); QuestStep questStep75 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span112 = CollectionsMarshal.AsSpan(list4); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span278 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span278[num4] = null; + num4++; + span278[num4] = null; + num4++; + span278[num4] = null; + num4++; + span278[num4] = null; + num4++; + span278[num4] = null; + num4++; + span278[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep75.CompletionQuestVariablesFlags = list4; reference213 = questStep; - ref QuestStep reference214 = ref span111[1]; + num2++; + ref QuestStep reference214 = ref span277[num2]; questStep = new QuestStep(EInteractionType.Interact, 1007871u, new Vector3(-464.46936f, -3.1649272f, 65.415405f), 146); QuestStep questStep76 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span113 = CollectionsMarshal.AsSpan(list4); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span279 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span279[num5] = null; + num5++; + span279[num5] = null; + num5++; + span279[num5] = null; + num5++; + span279[num5] = null; + num5++; + span279[num5] = null; + num5++; + span279[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep76.CompletionQuestVariablesFlags = list4; reference214 = questStep; - ref QuestStep reference215 = ref span111[2]; + num2++; + ref QuestStep reference215 = ref span277[num2]; questStep = new QuestStep(EInteractionType.Interact, 1007873u, new Vector3(-458.70148f, -3.164927f, 63.370728f), 146); QuestStep questStep77 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span114 = CollectionsMarshal.AsSpan(list4); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span280 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span280[num4] = null; + num4++; + span280[num4] = null; + num4++; + span280[num4] = null; + num4++; + span280[num4] = null; + num4++; + span280[num4] = null; + num4++; + span280[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep77.CompletionQuestVariablesFlags = list4; reference215 = questStep; questSequence145.Steps = list3; reference212 = questSequence; - ref QuestSequence reference216 = ref span108[4]; + num++; + ref QuestSequence reference216 = ref span272[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -63519,7 +76729,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + Span span281 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span281[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -63540,25 +76752,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot60 = questRoot; num = 1; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = "Cacahuetes"; - questRoot60.Author = list89; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + Span span282 = CollectionsMarshal.AsSpan(list91); + index = 0; + span282[index] = "Cacahuetes"; + questRoot60.Author = list91; QuestRoot questRoot61 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span115 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference217 = ref span115[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span283 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference217 = ref span283[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence147 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference218 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span284 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference218 = ref span284[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -63576,17 +76793,20 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition20 = skipAetheryteCondition; - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = 133; - skipAetheryteCondition20.InTerritory = list90; + num4 = 1; + List list92 = new List(num4); + CollectionsMarshal.SetCount(list92, num4); + Span span285 = CollectionsMarshal.AsSpan(list92); + num5 = 0; + span285[num5] = 133; + skipAetheryteCondition20.InTerritory = list92; skipConditions29.AetheryteShortcutIf = skipAetheryteCondition; questStep78.SkipConditions = skipConditions; reference218 = questStep; questSequence147.Steps = list3; reference217 = questSequence; - ref QuestSequence reference219 = ref span115[1]; + num++; + ref QuestSequence reference219 = ref span283[num]; questSequence = new QuestSequence { Sequence = 1 @@ -63595,24 +76815,28 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007850u, new Vector3(-271.87f, 19.663366f, 97.42883f), 148) + Span span286 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span286[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007850u, new Vector3(-271.87f, 19.663366f, 97.42883f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; questSequence148.Steps = list3; reference219 = questSequence; - ref QuestSequence reference220 = ref span115[2]; + num++; + ref QuestSequence reference220 = ref span283[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence149 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span116 = CollectionsMarshal.AsSpan(list3); - span116[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span287 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span287[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -63633,7 +76857,8 @@ public static class AssemblyQuestLoader } } }; - span116[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span287[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -63644,7 +76869,8 @@ public static class AssemblyQuestLoader } } }; - span116[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num2++; + span287[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1080) }; @@ -63656,16 +76882,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot62 = questRoot; num = 1; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "Cacahuetes"; - questRoot62.Author = list91; + List list93 = new List(num); + CollectionsMarshal.SetCount(list93, num); + Span span288 = CollectionsMarshal.AsSpan(list93); + index = 0; + span288[index] = "Cacahuetes"; + questRoot62.Author = list93; QuestRoot questRoot63 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span117 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference221 = ref span117[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span289 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference221 = ref span289[num]; questSequence = new QuestSequence { Sequence = 0 @@ -63674,8 +76903,9 @@ public static class AssemblyQuestLoader num2 = 4; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span118 = CollectionsMarshal.AsSpan(list3); - span118[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span290 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span290[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -63702,7 +76932,8 @@ public static class AssemblyQuestLoader } } }; - span118[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num3++; + span290[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -63713,24 +76944,28 @@ public static class AssemblyQuestLoader } } }; - span118[2] = new QuestStep(EInteractionType.EquipItem, null, null, 153) + num3++; + span290[num3] = new QuestStep(EInteractionType.EquipItem, null, null, 153) { ItemId = 4547u }; - span118[3] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num3++; + span290[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence150.Steps = list3; reference221 = questSequence; - ref QuestSequence reference222 = ref span117[1]; + num++; + ref QuestSequence reference222 = ref span289[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence151 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span119 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference223 = ref span119[0]; + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span291 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference223 = ref span291[num2]; questStep = new QuestStep(EInteractionType.Combat, 2002392u, new Vector3(-416.5561f, 60.990234f, -148.63812f), 148) { Fly = true, @@ -63743,28 +76978,38 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep79 = questStep; - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = 1937u; - questStep79.KillEnemyDataIds = list92; + num5 = 1; + List list94 = new List(num5); + CollectionsMarshal.SetCount(list94, num5); + Span span292 = CollectionsMarshal.AsSpan(list94); + num4 = 0; + span292[num4] = 1937u; + questStep79.KillEnemyDataIds = list94; QuestStep questStep80 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span120 = CollectionsMarshal.AsSpan(list4); - span120[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span120[1] = null; - span120[2] = null; - span120[3] = null; - span120[4] = null; - span120[5] = null; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span293 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span293[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span293[num5] = null; + num5++; + span293[num5] = null; + num5++; + span293[num5] = null; + num5++; + span293[num5] = null; + num5++; + span293[num5] = null; questStep80.CompletionQuestVariablesFlags = list4; reference223 = questStep; - span119[1] = new QuestStep(EInteractionType.Interact, 2002392u, new Vector3(-416.5561f, 60.990234f, -148.63812f), 148); + num2++; + span291[num2] = new QuestStep(EInteractionType.Interact, 2002392u, new Vector3(-416.5561f, 60.990234f, -148.63812f), 148); questSequence151.Steps = list3; reference222 = questSequence; - ref QuestSequence reference224 = ref span117[2]; + num++; + ref QuestSequence reference224 = ref span289[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -63773,8 +77018,9 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span121 = CollectionsMarshal.AsSpan(list3); - span121[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span294 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span294[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -63801,7 +77047,8 @@ public static class AssemblyQuestLoader } } }; - span121[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num3++; + span294[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -63812,7 +77059,8 @@ public static class AssemblyQuestLoader } } }; - span121[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num3++; + span294[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1081) }; @@ -63824,26 +77072,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot64 = questRoot; num = 1; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "Cacahuetes"; - questRoot64.Author = list93; + List list95 = new List(num); + CollectionsMarshal.SetCount(list95, num); + Span span295 = CollectionsMarshal.AsSpan(list95); + index = 0; + span295[index] = "Cacahuetes"; + questRoot64.Author = list95; QuestRoot questRoot65 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span122 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference225 = ref span122[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span296 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference225 = ref span296[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence153 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span123 = CollectionsMarshal.AsSpan(list3); - span123[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span297 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span297[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -63870,7 +77122,8 @@ public static class AssemblyQuestLoader } } }; - span123[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span297[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -63881,10 +77134,12 @@ public static class AssemblyQuestLoader } } }; - span123[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num2++; + span297[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence153.Steps = list3; reference225 = questSequence; - ref QuestSequence reference226 = ref span122[1]; + num++; + ref QuestSequence reference226 = ref span296[num]; questSequence = new QuestSequence { Sequence = 1 @@ -63893,54 +77148,68 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007852u, new Vector3(-272.38885f, 12.935407f, -46.28064f), 152) + Span span298 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span298[num3] = new QuestStep(EInteractionType.Interact, 1007852u, new Vector3(-272.38885f, 12.935407f, -46.28064f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; questSequence154.Steps = list3; reference226 = questSequence; - ref QuestSequence reference227 = ref span122[2]; + num++; + ref QuestSequence reference227 = ref span296[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence155 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span124 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference228 = ref span124[0]; + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span299 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference228 = ref span299[num2]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-271.5343f, 13.748352f, -51.773926f), 152) { StopDistance = 2f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep81 = questStep; - num3 = 2; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span125 = CollectionsMarshal.AsSpan(list94); - span125[0] = 1938u; - span125[1] = 1939u; - questStep81.KillEnemyDataIds = list94; + num5 = 2; + List list96 = new List(num5); + CollectionsMarshal.SetCount(list96, num5); + Span span300 = CollectionsMarshal.AsSpan(list96); + num4 = 0; + span300[num4] = 1938u; + num4++; + span300[num4] = 1939u; + questStep81.KillEnemyDataIds = list96; QuestStep questStep82 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span126 = CollectionsMarshal.AsSpan(list4); - span126[0] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = null; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span301 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span301[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span301[num5] = null; + num5++; + span301[num5] = null; + num5++; + span301[num5] = null; + num5++; + span301[num5] = null; + num5++; + span301[num5] = null; questStep82.CompletionQuestVariablesFlags = list4; reference228 = questStep; - span124[1] = new QuestStep(EInteractionType.Interact, 2002394u, new Vector3(-271.5343f, 13.748352f, -51.773926f), 152); + num2++; + span299[num2] = new QuestStep(EInteractionType.Interact, 2002394u, new Vector3(-271.5343f, 13.748352f, -51.773926f), 152); questSequence155.Steps = list3; reference227 = questSequence; - ref QuestSequence reference229 = ref span122[3]; + num++; + ref QuestSequence reference229 = ref span296[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -63949,8 +77218,9 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span127 = CollectionsMarshal.AsSpan(list3); - span127[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span302 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span302[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -63977,7 +77247,8 @@ public static class AssemblyQuestLoader } } }; - span127[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num3++; + span302[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -63988,7 +77259,8 @@ public static class AssemblyQuestLoader } } }; - span127[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num3++; + span302[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1082) }; @@ -64000,26 +77272,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot66 = questRoot; num = 1; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = "Cacahuetes"; - questRoot66.Author = list95; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span303 = CollectionsMarshal.AsSpan(list97); + index = 0; + span303[index] = "Cacahuetes"; + questRoot66.Author = list97; QuestRoot questRoot67 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span128 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference230 = ref span128[0]; + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span304 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference230 = ref span304[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence157 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span129 = CollectionsMarshal.AsSpan(list3); - span129[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span305 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span305[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -64046,7 +77322,8 @@ public static class AssemblyQuestLoader } } }; - span129[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span305[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -64057,10 +77334,12 @@ public static class AssemblyQuestLoader } } }; - span129[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num2++; + span305[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence157.Steps = list3; reference230 = questSequence; - ref QuestSequence reference231 = ref span128[1]; + num++; + ref QuestSequence reference231 = ref span304[num]; questSequence = new QuestSequence { Sequence = 1 @@ -64069,8 +77348,9 @@ public static class AssemblyQuestLoader num2 = 7; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span130 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference232 = ref span130[0]; + Span span306 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference232 = ref span306[num3]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-346.83008f, -37.93451f, -236.64346f), 138) { Fly = true, @@ -64081,40 +77361,54 @@ public static class AssemblyQuestLoader SkipConditions skipConditions30 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions11 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span131 = CollectionsMarshal.AsSpan(list4); - span131[0] = null; - span131[1] = null; - span131[2] = null; - span131[3] = null; - span131[4] = null; - span131[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span307 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span307[num4] = null; + num4++; + span307[num4] = null; + num4++; + span307[num4] = null; + num4++; + span307[num4] = null; + num4++; + span307[num4] = null; + num4++; + span307[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions11.CompletionQuestVariablesFlags = list4; skipStepConditions.Flying = ELockedSkipCondition.Locked; skipConditions30.StepIf = skipStepConditions; questStep83.SkipConditions = skipConditions; reference232 = questStep; - ref QuestStep reference233 = ref span130[1]; + num3++; + ref QuestStep reference233 = ref span306[num3]; questStep = new QuestStep(EInteractionType.Emote, 2002396u, new Vector3(-347.34113f, -36.240234f, -249.6529f), 138) { Emote = EEmote.Pray }; QuestStep questStep84 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span132 = CollectionsMarshal.AsSpan(list4); - span132[0] = null; - span132[1] = null; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span308 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span308[num5] = null; + num5++; + span308[num5] = null; + num5++; + span308[num5] = null; + num5++; + span308[num5] = null; + num5++; + span308[num5] = null; + num5++; + span308[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep84.CompletionQuestVariablesFlags = list4; reference233 = questStep; - ref QuestStep reference234 = ref span130[2]; + num3++; + ref QuestStep reference234 = ref span306[num3]; questStep = new QuestStep(EInteractionType.Emote, 2002397u, new Vector3(-339.46753f, -15.06073f, -403.21973f), 156) { Fly = true, @@ -64122,58 +77416,76 @@ public static class AssemblyQuestLoader Emote = EEmote.Pray }; QuestStep questStep85 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span133 = CollectionsMarshal.AsSpan(list4); - span133[0] = null; - span133[1] = null; - span133[2] = null; - span133[3] = null; - span133[4] = null; - span133[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span309 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span309[num4] = null; + num4++; + span309[num4] = null; + num4++; + span309[num4] = null; + num4++; + span309[num4] = null; + num4++; + span309[num4] = null; + num4++; + span309[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep85.CompletionQuestVariablesFlags = list4; reference234 = questStep; - span130[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.738379f, 33f, -495.80618f), 141) + num3++; + span306[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.738379f, 33f, -495.80618f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - span130[4] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) + num3++; + span306[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) { Aetheryte = EAetheryteLocation.NorthernThanalanCampBluefog }; - span130[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.17686f, 59.31324f, -44.453175f), 147); - ref QuestStep reference235 = ref span130[6]; + num3++; + span306[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.17686f, 59.31324f, -44.453175f), 147); + num3++; + ref QuestStep reference235 = ref span306[num3]; questStep = new QuestStep(EInteractionType.Emote, 2002398u, new Vector3(-253.46765f, 60.68506f, -43.90027f), 147) { Emote = EEmote.Pray }; QuestStep questStep86 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span134 = CollectionsMarshal.AsSpan(list4); - span134[0] = null; - span134[1] = null; - span134[2] = null; - span134[3] = null; - span134[4] = null; - span134[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span310 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span310[num5] = null; + num5++; + span310[num5] = null; + num5++; + span310[num5] = null; + num5++; + span310[num5] = null; + num5++; + span310[num5] = null; + num5++; + span310[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep86.CompletionQuestVariablesFlags = list4; reference235 = questStep; questSequence158.Steps = list3; reference231 = questSequence; - ref QuestSequence reference236 = ref span128[2]; + num++; + ref QuestSequence reference236 = ref span304[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence159 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span135 = CollectionsMarshal.AsSpan(list3); - span135[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span311 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span311[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -64200,7 +77512,8 @@ public static class AssemblyQuestLoader } } }; - span135[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span311[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -64211,10 +77524,12 @@ public static class AssemblyQuestLoader } } }; - span135[2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num2++; + span311[num2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence159.Steps = list3; reference236 = questSequence; - ref QuestSequence reference237 = ref span128[3]; + num++; + ref QuestSequence reference237 = ref span304[num]; questSequence = new QuestSequence { Sequence = 3 @@ -64223,26 +77538,30 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span136 = CollectionsMarshal.AsSpan(list3); - span136[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(109.89845f, 7.0051613f, -45.239243f), 154) + Span span312 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span312[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(109.89845f, 7.0051613f, -45.239243f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - span136[1] = new QuestStep(EInteractionType.Interact, 2002399u, new Vector3(107.83545f, 7.7057495f, -45.15149f), 154); + num3++; + span312[num3] = new QuestStep(EInteractionType.Interact, 2002399u, new Vector3(107.83545f, 7.7057495f, -45.15149f), 154); questSequence160.Steps = list3; reference237 = questSequence; - ref QuestSequence reference238 = ref span128[4]; + num++; + ref QuestSequence reference238 = ref span304[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence161 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span137 = CollectionsMarshal.AsSpan(list3); - span137[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span313 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span313[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -64269,7 +77588,8 @@ public static class AssemblyQuestLoader } } }; - span137[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span313[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -64280,10 +77600,12 @@ public static class AssemblyQuestLoader } } }; - span137[2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num2++; + span313[num2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence161.Steps = list3; reference238 = questSequence; - ref QuestSequence reference239 = ref span128[5]; + num++; + ref QuestSequence reference239 = ref span304[num]; questSequence = new QuestSequence { Sequence = 5 @@ -64292,8 +77614,9 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span138 = CollectionsMarshal.AsSpan(list3); - span138[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.73157f, 42.137627f, -202.96959f), 139) + Span span314 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span314[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.73157f, 42.137627f, -202.96959f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -64309,7 +77632,8 @@ public static class AssemblyQuestLoader } } }; - span138[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(118.0728f, 74.37976f, -248.26317f), 180) + num3++; + span314[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(118.0728f, 74.37976f, -248.26317f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -64321,23 +77645,26 @@ public static class AssemblyQuestLoader } } }; - span138[2] = new QuestStep(EInteractionType.Emote, 2002400u, new Vector3(117.32654f, 75.394775f, -246.54004f), 180) + num3++; + span314[num3] = new QuestStep(EInteractionType.Emote, 2002400u, new Vector3(117.32654f, 75.394775f, -246.54004f), 180) { Emote = EEmote.Pray }; questSequence162.Steps = list3; reference239 = questSequence; - ref QuestSequence reference240 = ref span128[6]; + num++; + ref QuestSequence reference240 = ref span304[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence163 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span139 = CollectionsMarshal.AsSpan(list3); - span139[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span315 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span315[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -64364,7 +77691,8 @@ public static class AssemblyQuestLoader } } }; - span139[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span315[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -64375,7 +77703,8 @@ public static class AssemblyQuestLoader } } }; - span139[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num2++; + span315[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1083) }; @@ -64387,16 +77716,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot68 = questRoot; num = 1; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "Cacahuetes"; - questRoot68.Author = list96; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + Span span316 = CollectionsMarshal.AsSpan(list98); + index = 0; + span316[index] = "Cacahuetes"; + questRoot68.Author = list98; QuestRoot questRoot69 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span140 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference241 = ref span140[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span317 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference241 = ref span317[num]; questSequence = new QuestSequence { Sequence = 0 @@ -64405,8 +77737,9 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span141 = CollectionsMarshal.AsSpan(list3); - span141[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span318 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span318[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -64433,7 +77766,8 @@ public static class AssemblyQuestLoader } } }; - span141[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num3++; + span318[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -64444,25 +77778,30 @@ public static class AssemblyQuestLoader } } }; - span141[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num3++; + span318[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence164.Steps = list3; reference241 = questSequence; - ref QuestSequence reference242 = ref span140[1]; + num++; + ref QuestSequence reference242 = ref span317[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence165 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007861u, new Vector3(-138.59778f, 8.561184f, 281.2085f), 153) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span319 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span319[num2] = new QuestStep(EInteractionType.Interact, 1007861u, new Vector3(-138.59778f, 8.561184f, 281.2085f), 153) { StopDistance = 5f }; questSequence165.Steps = list3; reference242 = questSequence; - ref QuestSequence reference243 = ref span140[2]; + num++; + ref QuestSequence reference243 = ref span317[num]; questSequence = new QuestSequence { Sequence = 2 @@ -64471,8 +77810,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span142 = CollectionsMarshal.AsSpan(list3); - span142[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(47.682095f, 9.470074f, -98.02502f), 153) + Span span320 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span320[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(47.682095f, 9.470074f, -98.02502f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -64489,55 +77829,71 @@ public static class AssemblyQuestLoader } } }; - span142[1] = new QuestStep(EInteractionType.Interact, 1007853u, new Vector3(53.72693f, 8.86706f, -111.25354f), 153) + num3++; + span320[num3] = new QuestStep(EInteractionType.Interact, 1007853u, new Vector3(53.72693f, 8.86706f, -111.25354f), 153) { Fly = true }; questSequence166.Steps = list3; reference243 = questSequence; - ref QuestSequence reference244 = ref span140[3]; + num++; + ref QuestSequence reference244 = ref span317[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence167 = questSequence; - num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span143 = CollectionsMarshal.AsSpan(list3); - span143[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(49.495304f, 10.139881f, -101.576866f), 153); - span143[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.557983f, 9.440208f, -97.066605f), 153); - ref QuestStep reference245 = ref span143[2]; + num3 = 4; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span321 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span321[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(49.495304f, 10.139881f, -101.576866f), 153); + num2++; + span321[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.557983f, 9.440208f, -97.066605f), 153); + num2++; + ref QuestStep reference245 = ref span321[num2]; questStep = new QuestStep(EInteractionType.Combat, 2002403u, new Vector3(151.53735f, 18.112427f, -127.30603f), 153) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep87 = questStep; - num3 = 3; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - Span span144 = CollectionsMarshal.AsSpan(list97); - span144[0] = 1940u; - span144[1] = 1941u; - span144[2] = 1942u; - questStep87.KillEnemyDataIds = list97; + num5 = 3; + list54 = new List(num5); + CollectionsMarshal.SetCount(list54, num5); + Span span322 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span322[num4] = 1940u; + num4++; + span322[num4] = 1941u; + num4++; + span322[num4] = 1942u; + questStep87.KillEnemyDataIds = list54; QuestStep questStep88 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span145 = CollectionsMarshal.AsSpan(list4); - span145[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span145[1] = null; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = null; + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span323 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span323[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span323[num5] = null; + num5++; + span323[num5] = null; + num5++; + span323[num5] = null; + num5++; + span323[num5] = null; + num5++; + span323[num5] = null; questStep88.CompletionQuestVariablesFlags = list4; reference245 = questStep; - span143[3] = new QuestStep(EInteractionType.Interact, 2002403u, new Vector3(151.53735f, 18.112427f, -127.30603f), 153); + num2++; + span321[num2] = new QuestStep(EInteractionType.Interact, 2002403u, new Vector3(151.53735f, 18.112427f, -127.30603f), 153); questSequence167.Steps = list3; reference244 = questSequence; - ref QuestSequence reference246 = ref span140[4]; + num++; + ref QuestSequence reference246 = ref span317[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -64546,8 +77902,9 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span146 = CollectionsMarshal.AsSpan(list3); - span146[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span324 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span324[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -64570,7 +77927,8 @@ public static class AssemblyQuestLoader } } }; - span146[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num3++; + span324[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -64581,7 +77939,8 @@ public static class AssemblyQuestLoader } } }; - span146[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num3++; + span324[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1084) }; @@ -64593,26 +77952,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot70 = questRoot; num = 1; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "Cacahuetes"; - questRoot70.Author = list98; + List list99 = new List(num); + CollectionsMarshal.SetCount(list99, num); + Span span325 = CollectionsMarshal.AsSpan(list99); + index = 0; + span325[index] = "Cacahuetes"; + questRoot70.Author = list99; QuestRoot questRoot71 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span147 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference247 = ref span147[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span326 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference247 = ref span326[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence169 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span148 = CollectionsMarshal.AsSpan(list3); - span148[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span327 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span327[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -64639,7 +78002,8 @@ public static class AssemblyQuestLoader } } }; - span148[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span327[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -64650,10 +78014,12 @@ public static class AssemblyQuestLoader } } }; - span148[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num2++; + span327[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence169.Steps = list3; reference247 = questSequence; - ref QuestSequence reference248 = ref span147[1]; + num++; + ref QuestSequence reference248 = ref span326[num]; questSequence = new QuestSequence { Sequence = 1 @@ -64662,24 +78028,28 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002408u, new Vector3(-316.27374f, 21.194763f, 179.70544f), 148) + Span span328 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span328[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002408u, new Vector3(-316.27374f, 21.194763f, 179.70544f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; questSequence170.Steps = list3; reference248 = questSequence; - ref QuestSequence reference249 = ref span147[2]; + num++; + ref QuestSequence reference249 = ref span326[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence171 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span149 = CollectionsMarshal.AsSpan(list3); - span149[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + num3 = 3; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span329 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span329[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -64706,7 +78076,8 @@ public static class AssemblyQuestLoader } } }; - span149[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span329[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -64717,7 +78088,8 @@ public static class AssemblyQuestLoader } } }; - span149[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + num2++; + span329[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence171.Steps = list3; reference249 = questSequence; questRoot71.QuestSequence = list2; @@ -64726,16 +78098,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot72 = questRoot; num = 1; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "pot0to"; - questRoot72.Author = list99; + List list100 = new List(num); + CollectionsMarshal.SetCount(list100, num); + Span span330 = CollectionsMarshal.AsSpan(list100); + index = 0; + span330[index] = "pot0to"; + questRoot72.Author = list100; QuestRoot questRoot73 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span150 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference250 = ref span150[0]; + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span331 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference250 = ref span331[num]; questSequence = new QuestSequence { Sequence = 0 @@ -64744,7 +78119,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + Span span332 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span332[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -64763,16 +78140,19 @@ public static class AssemblyQuestLoader }; questSequence172.Steps = list3; reference250 = questSequence; - ref QuestSequence reference251 = ref span150[1]; + num++; + ref QuestSequence reference251 = ref span331[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence173 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span333 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span333[num2] = new QuestStep(EInteractionType.Interact, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -64786,7 +78166,8 @@ public static class AssemblyQuestLoader }; questSequence173.Steps = list3; reference251 = questSequence; - ref QuestSequence reference252 = ref span150[2]; + num++; + ref QuestSequence reference252 = ref span331[num]; questSequence = new QuestSequence { Sequence = 2 @@ -64795,28 +78176,34 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007834u, new Vector3(447.2876f, 2.147105f, 21.86615f), 153) + Span span334 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span334[num3] = new QuestStep(EInteractionType.Interact, 1007834u, new Vector3(447.2876f, 2.147105f, 21.86615f), 153) { Fly = true }; questSequence174.Steps = list3; reference252 = questSequence; - ref QuestSequence reference253 = ref span150[3]; + num++; + ref QuestSequence reference253 = ref span331[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence175 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 2002364u, new Vector3(457.9995f, 0.44250488f, -106.73688f), 153) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span335 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span335[num2] = new QuestStep(EInteractionType.Interact, 2002364u, new Vector3(457.9995f, 0.44250488f, -106.73688f), 153) { Fly = true }; questSequence175.Steps = list3; reference253 = questSequence; - ref QuestSequence reference254 = ref span150[4]; + num++; + ref QuestSequence reference254 = ref span331[num]; questSequence = new QuestSequence { Sequence = 4 @@ -64825,28 +78212,33 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span151 = CollectionsMarshal.AsSpan(list3); - span151[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.68686f, 2.7520387f, 24.184406f), 153) + Span span336 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span336[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.68686f, 2.7520387f, 24.184406f), 153) { Fly = true }; - span151[1] = new QuestStep(EInteractionType.Interact, 1007834u, new Vector3(447.2876f, 2.147105f, 21.86615f), 153) + num3++; + span336[num3] = new QuestStep(EInteractionType.Interact, 1007834u, new Vector3(447.2876f, 2.147105f, 21.86615f), 153) { StopDistance = 7f, Fly = false }; questSequence176.Steps = list3; reference254 = questSequence; - ref QuestSequence reference255 = ref span150[5]; + num++; + ref QuestSequence reference255 = ref span331[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence177 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span337 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span337[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, NextQuestId = new QuestId(1086) @@ -64859,16 +78251,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot74 = questRoot; num = 1; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "pot0to"; - questRoot74.Author = list100; + List list101 = new List(num); + CollectionsMarshal.SetCount(list101, num); + Span span338 = CollectionsMarshal.AsSpan(list101); + index = 0; + span338[index] = "pot0to"; + questRoot74.Author = list101; QuestRoot questRoot75 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span152 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference256 = ref span152[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span339 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference256 = ref span339[num]; questSequence = new QuestSequence { Sequence = 0 @@ -64877,8 +78272,9 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span153 = CollectionsMarshal.AsSpan(list3); - span153[0] = new QuestStep(EInteractionType.EquipItem, null, null, 153) + Span span340 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span340[num3] = new QuestStep(EInteractionType.EquipItem, null, null, 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -64891,21 +78287,25 @@ public static class AssemblyQuestLoader } } }; - span153[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 153); - span153[2] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153); + num3++; + span340[num3] = new QuestStep(EInteractionType.EquipRecommended, null, null, 153); + num3++; + span340[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153); questSequence178.Steps = list3; reference256 = questSequence; - ref QuestSequence reference257 = ref span152[1]; + num++; + ref QuestSequence reference257 = ref span339[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence179 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span154 = CollectionsMarshal.AsSpan(list3); - span154[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(570.48596f, 96.46625f, -526.59546f), 135) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span341 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span341[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(570.48596f, 96.46625f, -526.59546f), 135) { TargetTerritoryId = (ushort)137, Fly = true, @@ -64927,7 +78327,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference258 = ref span154[1]; + num2++; + ref QuestStep reference258 = ref span341[num2]; questStep = new QuestStep(EInteractionType.Combat, 2002366u, new Vector3(-143.0534f, 68.192505f, 586.1448f), 137) { StopDistance = 0.5f, @@ -64936,11 +78337,13 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep89 = questStep; - num3 = 1; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = 1945u; - questStep89.KillEnemyDataIds = list101; + num5 = 1; + List list102 = new List(num5); + CollectionsMarshal.SetCount(list102, num5); + Span span342 = CollectionsMarshal.AsSpan(list102); + num4 = 0; + span342[num4] = 1945u; + questStep89.KillEnemyDataIds = list102; questStep.SkipConditions = new SkipConditions { AetheryteShortcutIf = new SkipAetheryteCondition @@ -64951,7 +78354,8 @@ public static class AssemblyQuestLoader reference258 = questStep; questSequence179.Steps = list3; reference257 = questSequence; - ref QuestSequence reference259 = ref span152[2]; + num++; + ref QuestSequence reference259 = ref span339[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -64960,7 +78364,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + Span span343 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span343[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -64981,25 +78387,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot76 = questRoot; num = 1; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "pot0to"; - questRoot76.Author = list102; + List list103 = new List(num); + CollectionsMarshal.SetCount(list103, num); + Span span344 = CollectionsMarshal.AsSpan(list103); + index = 0; + span344[index] = "pot0to"; + questRoot76.Author = list103; QuestRoot questRoot77 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span155 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference260 = ref span155[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span345 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference260 = ref span345[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence181 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span346 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span346[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -65013,7 +78424,8 @@ public static class AssemblyQuestLoader }; questSequence181.Steps = list3; reference260 = questSequence; - ref QuestSequence reference261 = ref span155[1]; + num++; + ref QuestSequence reference261 = ref span345[num]; questSequence = new QuestSequence { Sequence = 1 @@ -65022,7 +78434,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference262 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span347 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference262 = ref span347[num3]; questStep = new QuestStep(EInteractionType.Combat, 2002365u, new Vector3(272.05298f, 18.875366f, -164.53809f), 145) { Fly = true, @@ -65030,11 +78444,13 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep90 = questStep; - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = 58u; - questStep90.KillEnemyDataIds = list103; + num4 = 1; + List list104 = new List(num4); + CollectionsMarshal.SetCount(list104, num4); + Span span348 = CollectionsMarshal.AsSpan(list104); + num5 = 0; + span348[num5] = 58u; + questStep90.KillEnemyDataIds = list104; questStep.SkipConditions = new SkipConditions { AetheryteShortcutIf = new SkipAetheryteCondition @@ -65045,16 +78461,19 @@ public static class AssemblyQuestLoader reference262 = questStep; questSequence182.Steps = list3; reference261 = questSequence; - ref QuestSequence reference263 = ref span155[2]; + num++; + ref QuestSequence reference263 = ref span345[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence183 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span349 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span349[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -65075,16 +78494,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot78 = questRoot; num = 1; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "pot0to"; - questRoot78.Author = list104; + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + Span span350 = CollectionsMarshal.AsSpan(list105); + index = 0; + span350[index] = "pot0to"; + questRoot78.Author = list105; QuestRoot questRoot79 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span156 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference264 = ref span156[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span351 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference264 = ref span351[num]; questSequence = new QuestSequence { Sequence = 0 @@ -65093,7 +78515,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + Span span352 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span352[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -65107,16 +78531,19 @@ public static class AssemblyQuestLoader }; questSequence184.Steps = list3; reference264 = questSequence; - ref QuestSequence reference265 = ref span156[1]; + num++; + ref QuestSequence reference265 = ref span351[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence185 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002367u, new Vector3(104.32593f, -21.774658f, 171.00781f), 154) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span353 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span353[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002367u, new Vector3(104.32593f, -21.774658f, 171.00781f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -65135,7 +78562,8 @@ public static class AssemblyQuestLoader }; questSequence185.Steps = list3; reference265 = questSequence; - ref QuestSequence reference266 = ref span156[2]; + num++; + ref QuestSequence reference266 = ref span351[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -65144,7 +78572,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + Span span354 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span354[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -65165,25 +78595,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot80 = questRoot; num = 1; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - CollectionsMarshal.AsSpan(list105)[0] = "pot0to"; - questRoot80.Author = list105; + List list106 = new List(num); + CollectionsMarshal.SetCount(list106, num); + Span span355 = CollectionsMarshal.AsSpan(list106); + index = 0; + span355[index] = "pot0to"; + questRoot80.Author = list106; QuestRoot questRoot81 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span157 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference267 = ref span157[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span356 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference267 = ref span356[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence187 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference268 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span357 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference268 = ref span357[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, @@ -65197,19 +78632,22 @@ public static class AssemblyQuestLoader } }; QuestStep questStep91 = questStep; - num3 = 1; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = new DialogueChoice + num5 = 1; + List list107 = new List(num5); + CollectionsMarshal.SetCount(list107, num5); + Span span358 = CollectionsMarshal.AsSpan(list107); + num4 = 0; + span358[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBBRD451_01089_Q1_000_000") }; - questStep91.DialogueChoices = list106; + questStep91.DialogueChoices = list107; reference268 = questStep; questSequence187.Steps = list3; reference267 = questSequence; - ref QuestSequence reference269 = ref span157[1]; + num++; + ref QuestSequence reference269 = ref span356[num]; questSequence = new QuestSequence { Sequence = 1 @@ -65218,103 +78656,138 @@ public static class AssemblyQuestLoader num2 = 8; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span158 = CollectionsMarshal.AsSpan(list3); - span158[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(517.4273f, 13.999936f, 142.89926f), 153); - ref QuestStep reference270 = ref span158[1]; + Span span359 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span359[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(517.4273f, 13.999936f, 142.89926f), 153); + num3++; + ref QuestStep reference270 = ref span359[num3]; questStep = new QuestStep(EInteractionType.Interact, 2002528u, new Vector3(512.291f, 10.482849f, 148.30237f), 153) { Fly = true }; QuestStep questStep92 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span159 = CollectionsMarshal.AsSpan(list4); - span159[0] = null; - span159[1] = null; - span159[2] = null; - span159[3] = null; - span159[4] = null; - span159[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span360 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span360[num5] = null; + num5++; + span360[num5] = null; + num5++; + span360[num5] = null; + num5++; + span360[num5] = null; + num5++; + span360[num5] = null; + num5++; + span360[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep92.CompletionQuestVariablesFlags = list4; reference270 = questStep; - ref QuestStep reference271 = ref span158[2]; + num3++; + ref QuestStep reference271 = ref span359[num3]; questStep = new QuestStep(EInteractionType.Interact, 2002530u, new Vector3(576.2263f, -24.002502f, -423.75836f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; QuestStep questStep93 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span160 = CollectionsMarshal.AsSpan(list4); - span160[0] = null; - span160[1] = null; - span160[2] = null; - span160[3] = null; - span160[4] = null; - span160[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span361 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span361[num4] = null; + num4++; + span361[num4] = null; + num4++; + span361[num4] = null; + num4++; + span361[num4] = null; + num4++; + span361[num4] = null; + num4++; + span361[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep93.CompletionQuestVariablesFlags = list4; reference271 = questStep; - span158[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-143.16391f, -25.75711f, 34.669674f), 138) + num3++; + span359[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-143.16391f, -25.75711f, 34.669674f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - ref QuestStep reference272 = ref span158[4]; + num3++; + ref QuestStep reference272 = ref span359[num3]; questStep = new QuestStep(EInteractionType.Interact, 2002527u, new Vector3(-168.29181f, -21.5f, 44.144287f), 138) { Fly = false }; QuestStep questStep94 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span161 = CollectionsMarshal.AsSpan(list4); - span161[0] = null; - span161[1] = null; - span161[2] = null; - span161[3] = null; - span161[4] = null; - span161[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span362 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span362[num5] = null; + num5++; + span362[num5] = null; + num5++; + span362[num5] = null; + num5++; + span362[num5] = null; + num5++; + span362[num5] = null; + num5++; + span362[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep94.CompletionQuestVariablesFlags = list4; reference272 = questStep; - span158[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.738379f, 33f, -495.80618f), 141) + num3++; + span359[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.738379f, 33f, -495.80618f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - span158[6] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) + num3++; + span359[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) { Aetheryte = EAetheryteLocation.NorthernThanalanCampBluefog }; - ref QuestStep reference273 = ref span158[7]; + num3++; + ref QuestStep reference273 = ref span359[num3]; questStep = new QuestStep(EInteractionType.Interact, 2002529u, new Vector3(-324.7273f, 87.96814f, -133.50122f), 147); QuestStep questStep95 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span162 = CollectionsMarshal.AsSpan(list4); - span162[0] = null; - span162[1] = null; - span162[2] = null; - span162[3] = null; - span162[4] = null; - span162[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span363 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span363[num4] = null; + num4++; + span363[num4] = null; + num4++; + span363[num4] = null; + num4++; + span363[num4] = null; + num4++; + span363[num4] = null; + num4++; + span363[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep95.CompletionQuestVariablesFlags = list4; reference273 = questStep; questSequence188.Steps = list3; reference269 = questSequence; - ref QuestSequence reference274 = ref span157[2]; + num++; + ref QuestSequence reference274 = ref span356[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence189 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span364 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span364[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -65335,16 +78808,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot82 = questRoot; num = 1; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "pot0to"; - questRoot82.Author = list107; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + Span span365 = CollectionsMarshal.AsSpan(list108); + index = 0; + span365[index] = "pot0to"; + questRoot82.Author = list108; QuestRoot questRoot83 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span163 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference275 = ref span163[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span366 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference275 = ref span366[num]; questSequence = new QuestSequence { Sequence = 0 @@ -65353,7 +78829,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + Span span367 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span367[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -65367,22 +78845,25 @@ public static class AssemblyQuestLoader }; questSequence190.Steps = list3; reference275 = questSequence; - ref QuestSequence reference276 = ref span163[1]; + num++; + ref QuestSequence reference276 = ref span366[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence191 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span164 = CollectionsMarshal.AsSpan(list3); - span164[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.586075f, 226.66864f, 382.17618f), 155) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span368 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span368[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.586075f, 226.66864f, 382.17618f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span164[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002373u, new Vector3(72.098755f, 227.19153f, 380.84985f), 155) + num2++; + span368[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002373u, new Vector3(72.098755f, 227.19153f, 380.84985f), 155) { ItemId = 2000953u, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -65392,7 +78873,8 @@ public static class AssemblyQuestLoader }; questSequence191.Steps = list3; reference276 = questSequence; - ref QuestSequence reference277 = ref span163[2]; + num++; + ref QuestSequence reference277 = ref span366[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -65401,7 +78883,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007891u, new Vector3(70.17627f, 226.72212f, 381.30762f), 155) + Span span369 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span369[num3] = new QuestStep(EInteractionType.CompleteQuest, 1007891u, new Vector3(70.17627f, 226.72212f, 381.30762f), 155) { NextQuestId = new QuestId(1713) }; @@ -65413,25 +78897,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot84 = questRoot; num = 1; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; - questRoot84.Author = list108; + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + Span span370 = CollectionsMarshal.AsSpan(list109); + index = 0; + span370[index] = "liza"; + questRoot84.Author = list109; QuestRoot questRoot85 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span165 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference278 = ref span165[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span371 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference278 = ref span371[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence193 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span372 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span372[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -65449,7 +78938,8 @@ public static class AssemblyQuestLoader }; questSequence193.Steps = list3; reference278 = questSequence; - ref QuestSequence reference279 = ref span165[1]; + num++; + ref QuestSequence reference279 = ref span371[num]; questSequence = new QuestSequence { Sequence = 1 @@ -65458,7 +78948,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + Span span373 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span373[num3] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -65469,17 +78961,19 @@ public static class AssemblyQuestLoader }; questSequence194.Steps = list3; reference279 = questSequence; - ref QuestSequence reference280 = ref span165[2]; + num++; + ref QuestSequence reference280 = ref span371[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence195 = questSequence; - num2 = 8; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span166 = CollectionsMarshal.AsSpan(list3); - span166[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.46503f, -46.504063f, 491.88867f), 145) + num3 = 8; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span374 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span374[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.46503f, -46.504063f, 491.88867f), 145) { TargetTerritoryId = (ushort)146, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -65495,7 +78989,8 @@ public static class AssemblyQuestLoader } } }; - span166[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-47.50145f, 16.362688f, -439.62503f), 146) + num2++; + span374[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-47.50145f, 16.362688f, -439.62503f), 146) { SkipConditions = new SkipConditions { @@ -65505,7 +79000,8 @@ public static class AssemblyQuestLoader } } }; - span166[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) + num2++; + span374[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) { StopDistance = 7f, Aetheryte = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, @@ -65517,7 +79013,8 @@ public static class AssemblyQuestLoader } } }; - span166[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.60515f, 17.857697f, -278.74887f), 146) + num2++; + span374[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.60515f, 17.857697f, -278.74887f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -65532,7 +79029,8 @@ public static class AssemblyQuestLoader } } }; - span166[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.61136f, 3.5857017f, -248.78667f), 146) + num2++; + span374[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.61136f, 3.5857017f, -248.78667f), 146) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -65543,7 +79041,8 @@ public static class AssemblyQuestLoader } } }; - span166[5] = new QuestStep(EInteractionType.Interact, 1004596u, new Vector3(-471.27496f, -2.650424f, 95.628296f), 146) + num2++; + span374[num2] = new QuestStep(EInteractionType.Interact, 1004596u, new Vector3(-471.27496f, -2.650424f, 95.628296f), 146) { TargetTerritoryId = (ushort)146, SkipConditions = new SkipConditions @@ -65554,7 +79053,8 @@ public static class AssemblyQuestLoader } } }; - span166[6] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) + num2++; + span374[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) { Aetheryte = EAetheryteLocation.SouthernThanalanForgottenSprings, SkipConditions = new SkipConditions @@ -65565,14 +79065,16 @@ public static class AssemblyQuestLoader } } }; - span166[7] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006786u, new Vector3(-347.15802f, 0.9522269f, 741.3595f), 146) + num2++; + span374[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006786u, new Vector3(-347.15802f, 0.9522269f, 741.3595f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; questSequence195.Steps = list3; reference280 = questSequence; - ref QuestSequence reference281 = ref span165[3]; + num++; + ref QuestSequence reference281 = ref span371[num]; questSequence = new QuestSequence { Sequence = 3 @@ -65581,22 +79083,27 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006786u, new Vector3(-347.15802f, 0.9522269f, 741.3595f), 146) + Span span375 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span375[num3] = new QuestStep(EInteractionType.Interact, 1006786u, new Vector3(-347.15802f, 0.9522269f, 741.3595f), 146) { StopDistance = 5f }; questSequence196.Steps = list3; reference281 = questSequence; - ref QuestSequence reference282 = ref span165[4]; + num++; + ref QuestSequence reference282 = ref span371[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence197 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span376 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span376[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -65614,16 +79121,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot86 = questRoot; num = 1; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; - questRoot86.Author = list109; + List list110 = new List(num); + CollectionsMarshal.SetCount(list110, num); + Span span377 = CollectionsMarshal.AsSpan(list110); + index = 0; + span377[index] = "liza"; + questRoot86.Author = list110; QuestRoot questRoot87 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span167 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference283 = ref span167[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span378 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference283 = ref span378[num]; questSequence = new QuestSequence { Sequence = 0 @@ -65632,8 +79142,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span168 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference284 = ref span168[0]; + Span span379 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference284 = ref span379[num3]; questStep = new QuestStep(EInteractionType.EquipItem, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -65652,34 +79163,41 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition21 = skipAetheryteCondition; - num3 = 1; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = 133; - skipAetheryteCondition21.InTerritory = list110; + num4 = 1; + List list111 = new List(num4); + CollectionsMarshal.SetCount(list111, num4); + Span span380 = CollectionsMarshal.AsSpan(list111); + num5 = 0; + span380[num5] = 133; + skipAetheryteCondition21.InTerritory = list111; skipConditions31.AetheryteShortcutIf = skipAetheryteCondition; questStep96.SkipConditions = skipConditions; reference284 = questStep; - span168[1] = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133); + num3++; + span379[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133); questSequence198.Steps = list3; reference283 = questSequence; - ref QuestSequence reference285 = ref span167[1]; + num++; + ref QuestSequence reference285 = ref span378[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence199 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006787u, new Vector3(-268.78766f, -78.85388f, 444.8767f), 154) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span381 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span381[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006787u, new Vector3(-268.78766f, -78.85388f, 444.8767f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; questSequence199.Steps = list3; reference285 = questSequence; - ref QuestSequence reference286 = ref span167[2]; + num++; + ref QuestSequence reference286 = ref span378[num]; questSequence = new QuestSequence { Sequence = 2 @@ -65688,22 +79206,27 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006787u, new Vector3(-268.78766f, -78.85388f, 444.8767f), 154) + Span span382 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span382[num3] = new QuestStep(EInteractionType.Interact, 1006787u, new Vector3(-268.78766f, -78.85388f, 444.8767f), 154) { StopDistance = 7f }; questSequence200.Steps = list3; reference286 = questSequence; - ref QuestSequence reference287 = ref span167[3]; + num++; + ref QuestSequence reference287 = ref span378[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence201 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span383 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span383[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -65721,16 +79244,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot88 = questRoot; num = 1; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "liza"; - questRoot88.Author = list111; + List list112 = new List(num); + CollectionsMarshal.SetCount(list112, num); + Span span384 = CollectionsMarshal.AsSpan(list112); + index = 0; + span384[index] = "liza"; + questRoot88.Author = list112; QuestRoot questRoot89 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span169 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference288 = ref span169[0]; + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span385 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference288 = ref span385[num]; questSequence = new QuestSequence { Sequence = 0 @@ -65739,7 +79265,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference289 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span386 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference289 = ref span386[num3]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -65757,32 +79285,38 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition22 = skipAetheryteCondition; - num3 = 1; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - CollectionsMarshal.AsSpan(list112)[0] = 133; - skipAetheryteCondition22.InTerritory = list112; + num5 = 1; + List list113 = new List(num5); + CollectionsMarshal.SetCount(list113, num5); + Span span387 = CollectionsMarshal.AsSpan(list113); + num4 = 0; + span387[num4] = 133; + skipAetheryteCondition22.InTerritory = list113; skipConditions32.AetheryteShortcutIf = skipAetheryteCondition; questStep97.SkipConditions = skipConditions; reference289 = questStep; questSequence202.Steps = list3; reference288 = questSequence; - ref QuestSequence reference290 = ref span169[1]; + num++; + ref QuestSequence reference290 = ref span385[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence203 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006788u, new Vector3(-105.79089f, 27.83778f, -374.3191f), 146) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span388 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span388[num2] = new QuestStep(EInteractionType.Interact, 1006788u, new Vector3(-105.79089f, 27.83778f, -374.3191f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; questSequence203.Steps = list3; reference290 = questSequence; - ref QuestSequence reference291 = ref span169[2]; + num++; + ref QuestSequence reference291 = ref span385[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -65791,9 +79325,11 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span170 = CollectionsMarshal.AsSpan(list3); - span170[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-152.77162f, 27.317062f, -400.4738f), 146); - span170[1] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + Span span389 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span389[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-152.77162f, 27.317062f, -400.4738f), 146); + num3++; + span389[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -65811,25 +79347,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot90 = questRoot; num = 1; - List list113 = new List(num); - CollectionsMarshal.SetCount(list113, num); - CollectionsMarshal.AsSpan(list113)[0] = "liza"; - questRoot90.Author = list113; + List list114 = new List(num); + CollectionsMarshal.SetCount(list114, num); + Span span390 = CollectionsMarshal.AsSpan(list114); + index = 0; + span390[index] = "liza"; + questRoot90.Author = list114; QuestRoot questRoot91 = questRoot; - num = 10; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span171 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference292 = ref span171[0]; + index = 10; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span391 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference292 = ref span391[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence205 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference293 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span392 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference293 = ref span392[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -65847,17 +79388,20 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition23 = skipAetheryteCondition; - num3 = 1; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = 133; - skipAetheryteCondition23.InTerritory = list114; + num4 = 1; + List list115 = new List(num4); + CollectionsMarshal.SetCount(list115, num4); + Span span393 = CollectionsMarshal.AsSpan(list115); + num5 = 0; + span393[num5] = 133; + skipAetheryteCondition23.InTerritory = list115; skipConditions33.AetheryteShortcutIf = skipAetheryteCondition; questStep98.SkipConditions = skipConditions; reference293 = questStep; questSequence205.Steps = list3; reference292 = questSequence; - ref QuestSequence reference294 = ref span171[1]; + num++; + ref QuestSequence reference294 = ref span391[num]; questSequence = new QuestSequence { Sequence = 1 @@ -65866,38 +79410,46 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + Span span394 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span394[num3] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; questSequence206.Steps = list3; reference294 = questSequence; - ref QuestSequence reference295 = ref span171[2]; + num++; + ref QuestSequence reference295 = ref span391[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence207 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference296 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span395 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference296 = ref span395[num2]; questStep = new QuestStep(EInteractionType.Combat, 1006789u, new Vector3(503.2882f, -12.351167f, -343.19073f), 156) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep99 = questStep; - num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = 1948u; - questStep99.KillEnemyDataIds = list115; + num5 = 1; + List list116 = new List(num5); + CollectionsMarshal.SetCount(list116, num5); + Span span396 = CollectionsMarshal.AsSpan(list116); + num4 = 0; + span396[num4] = 1948u; + questStep99.KillEnemyDataIds = list116; reference296 = questStep; questSequence207.Steps = list3; reference295 = questSequence; - ref QuestSequence reference297 = ref span171[3]; + num++; + ref QuestSequence reference297 = ref span391[num]; questSequence = new QuestSequence { Sequence = 3 @@ -65906,34 +79458,42 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006789u, new Vector3(503.2882f, -12.351167f, -343.19073f), 156); + Span span397 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span397[num3] = new QuestStep(EInteractionType.Interact, 1006789u, new Vector3(503.2882f, -12.351167f, -343.19073f), 156); questSequence208.Steps = list3; reference297 = questSequence; - ref QuestSequence reference298 = ref span171[4]; + num++; + ref QuestSequence reference298 = ref span391[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence209 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference299 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span398 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference299 = ref span398[num2]; questStep = new QuestStep(EInteractionType.Combat, 1006790u, new Vector3(496.45215f, -2.546432f, -472.03784f), 156) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep100 = questStep; - num3 = 1; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = 1948u; - questStep100.KillEnemyDataIds = list116; + num4 = 1; + List list117 = new List(num4); + CollectionsMarshal.SetCount(list117, num4); + Span span399 = CollectionsMarshal.AsSpan(list117); + num5 = 0; + span399[num5] = 1948u; + questStep100.KillEnemyDataIds = list117; reference299 = questStep; questSequence209.Steps = list3; reference298 = questSequence; - ref QuestSequence reference300 = ref span171[5]; + num++; + ref QuestSequence reference300 = ref span391[num]; questSequence = new QuestSequence { Sequence = 5 @@ -65942,38 +79502,46 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006790u, new Vector3(496.45215f, -2.546432f, -472.03784f), 156); + Span span400 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span400[num3] = new QuestStep(EInteractionType.Interact, 1006790u, new Vector3(496.45215f, -2.546432f, -472.03784f), 156); questSequence210.Steps = list3; reference300 = questSequence; - ref QuestSequence reference301 = ref span171[6]; + num++; + ref QuestSequence reference301 = ref span391[num]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence211 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span172 = CollectionsMarshal.AsSpan(list3); - span172[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(372.27008f, -4.9949923f, -482.91302f), 156) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span401 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span401[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(372.27008f, -4.9949923f, -482.91302f), 156) { Fly = true }; - ref QuestStep reference302 = ref span172[1]; + num2++; + ref QuestStep reference302 = ref span401[num2]; questStep = new QuestStep(EInteractionType.Combat, 1006791u, new Vector3(373.52563f, -5.242633f, -484.70288f), 156) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep101 = questStep; - num3 = 1; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = 1948u; - questStep101.KillEnemyDataIds = list117; + num5 = 1; + List list118 = new List(num5); + CollectionsMarshal.SetCount(list118, num5); + Span span402 = CollectionsMarshal.AsSpan(list118); + num4 = 0; + span402[num4] = 1948u; + questStep101.KillEnemyDataIds = list118; reference302 = questStep; questSequence211.Steps = list3; reference301 = questSequence; - ref QuestSequence reference303 = ref span171[7]; + num++; + ref QuestSequence reference303 = ref span391[num]; questSequence = new QuestSequence { Sequence = 7 @@ -65982,25 +79550,31 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006791u, new Vector3(373.52563f, -5.242633f, -484.70288f), 156); + Span span403 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span403[num3] = new QuestStep(EInteractionType.Interact, 1006791u, new Vector3(373.52563f, -5.242633f, -484.70288f), 156); questSequence212.Steps = list3; reference303 = questSequence; - ref QuestSequence reference304 = ref span171[8]; + num++; + ref QuestSequence reference304 = ref span391[num]; questSequence = new QuestSequence { Sequence = 8 }; QuestSequence questSequence213 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span404 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span404[num2] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { Fly = true }; questSequence213.Steps = list3; reference304 = questSequence; - ref QuestSequence reference305 = ref span171[9]; + num++; + ref QuestSequence reference305 = ref span391[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -66009,9 +79583,11 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span173 = CollectionsMarshal.AsSpan(list3); - span173[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 156); - span173[1] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + Span span405 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span405[num3] = new QuestStep(EInteractionType.EquipRecommended, null, null, 156); + num3++; + span405[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -66029,25 +79605,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot92 = questRoot; num = 1; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; - questRoot92.Author = list118; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span406 = CollectionsMarshal.AsSpan(list119); + index = 0; + span406[index] = "liza"; + questRoot92.Author = list119; QuestRoot questRoot93 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span174 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference306 = ref span174[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span407 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference306 = ref span407[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence215 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference307 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span408 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference307 = ref span408[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -66065,17 +79646,20 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition24 = skipAetheryteCondition; - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = 133; - skipAetheryteCondition24.InTerritory = list119; + num4 = 1; + List list120 = new List(num4); + CollectionsMarshal.SetCount(list120, num4); + Span span409 = CollectionsMarshal.AsSpan(list120); + num5 = 0; + span409[num5] = 133; + skipAetheryteCondition24.InTerritory = list120; skipConditions34.AetheryteShortcutIf = skipAetheryteCondition; questStep102.SkipConditions = skipConditions; reference307 = questStep; questSequence215.Steps = list3; reference306 = questSequence; - ref QuestSequence reference308 = ref span174[1]; + num++; + ref QuestSequence reference308 = ref span407[num]; questSequence = new QuestSequence { Sequence = 1 @@ -66084,8 +79668,9 @@ public static class AssemblyQuestLoader num2 = 6; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span175 = CollectionsMarshal.AsSpan(list3); - span175[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(287.2875f, 41.545933f, -200.75758f), 139) + Span span410 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span410[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(287.2875f, 41.545933f, -200.75758f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -66097,7 +79682,8 @@ public static class AssemblyQuestLoader } } }; - span175[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(291.4182f, 41.15416f, -193.03651f), 139) + num3++; + span410[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(291.4182f, 41.15416f, -193.03651f), 139) { SkipConditions = new SkipConditions { @@ -66107,7 +79693,8 @@ public static class AssemblyQuestLoader } } }; - span175[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(285.82883f, 42.26685f, -203.32939f), 139) + num3++; + span410[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(285.82883f, 42.26685f, -203.32939f), 139) { TargetTerritoryId = (ushort)180, SkipConditions = new SkipConditions @@ -66118,7 +79705,8 @@ public static class AssemblyQuestLoader } } }; - span175[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.35803f, 64.464615f, -217.34372f), 180) + num3++; + span410[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.35803f, 64.464615f, -217.34372f), 180) { Fly = true, SkipConditions = new SkipConditions @@ -66129,7 +79717,8 @@ public static class AssemblyQuestLoader } } }; - span175[4] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 180) + num3++; + span410[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 180) { Aetheryte = EAetheryteLocation.OuterLaNosceaCampOverlook, SkipConditions = new SkipConditions @@ -66140,22 +79729,27 @@ public static class AssemblyQuestLoader } } }; - span175[5] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006792u, new Vector3(-378.10333f, 51.61585f, -290.11975f), 180); + num3++; + span410[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006792u, new Vector3(-378.10333f, 51.61585f, -290.11975f), 180); questSequence216.Steps = list3; reference308 = questSequence; - ref QuestSequence reference309 = ref span174[2]; + num++; + ref QuestSequence reference309 = ref span407[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence217 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006792u, new Vector3(-378.10333f, 51.61585f, -290.11975f), 180); + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span411 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span411[num2] = new QuestStep(EInteractionType.Interact, 1006792u, new Vector3(-378.10333f, 51.61585f, -290.11975f), 180); questSequence217.Steps = list3; reference309 = questSequence; - ref QuestSequence reference310 = ref span174[3]; + num++; + ref QuestSequence reference310 = ref span407[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -66164,7 +79758,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + Span span412 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span412[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -66182,25 +79778,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot94 = questRoot; num = 1; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "liza"; - questRoot94.Author = list120; + List list121 = new List(num); + CollectionsMarshal.SetCount(list121, num); + Span span413 = CollectionsMarshal.AsSpan(list121); + index = 0; + span413[index] = "liza"; + questRoot94.Author = list121; QuestRoot questRoot95 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span176 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference311 = ref span176[0]; + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span414 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference311 = ref span414[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence219 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference312 = ref CollectionsMarshal.AsSpan(list3)[0]; + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span415 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference312 = ref span415[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -66218,17 +79819,20 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition25 = skipAetheryteCondition; - num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = 133; - skipAetheryteCondition25.InTerritory = list121; + num5 = 1; + List list122 = new List(num5); + CollectionsMarshal.SetCount(list122, num5); + Span span416 = CollectionsMarshal.AsSpan(list122); + num4 = 0; + span416[num4] = 133; + skipAetheryteCondition25.InTerritory = list122; skipConditions35.AetheryteShortcutIf = skipAetheryteCondition; questStep103.SkipConditions = skipConditions; reference312 = questStep; questSequence219.Steps = list3; reference311 = questSequence; - ref QuestSequence reference313 = ref span176[1]; + num++; + ref QuestSequence reference313 = ref span414[num]; questSequence = new QuestSequence { Sequence = 1 @@ -66237,28 +79841,34 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span177 = CollectionsMarshal.AsSpan(list3); - span177[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(494.60034f, -2.1295002f, -484.951f), 156) + Span span417 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span417[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(494.60034f, -2.1295002f, -484.951f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span177[1] = new QuestStep(EInteractionType.Interact, 1006793u, new Vector3(493.09534f, -2.349111f, -484.61133f), 156); + num3++; + span417[num3] = new QuestStep(EInteractionType.Interact, 1006793u, new Vector3(493.09534f, -2.349111f, -484.61133f), 156); questSequence220.Steps = list3; reference313 = questSequence; - ref QuestSequence reference314 = ref span176[2]; + num++; + ref QuestSequence reference314 = ref span414[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence221 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006794u, new Vector3(493.09534f, -2.4306269f, -483.6042f), 156); + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span418 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span418[num2] = new QuestStep(EInteractionType.Interact, 1006794u, new Vector3(493.09534f, -2.4306269f, -483.6042f), 156); questSequence221.Steps = list3; reference314 = questSequence; - ref QuestSequence reference315 = ref span176[3]; + num++; + ref QuestSequence reference315 = ref span414[num]; questSequence = new QuestSequence { Sequence = 3 @@ -66267,30 +79877,36 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span178 = CollectionsMarshal.AsSpan(list3); - span178[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.36328f, -3.814063f, -770.9911f), 156) + Span span419 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span419[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.36328f, -3.814063f, -770.9911f), 156) { Fly = true }; - span178[1] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(504.98605f, -2.5969198f, -780.6112f), 156) + num3++; + span419[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(504.98605f, -2.5969198f, -780.6112f), 156) { Mount = false }; questSequence222.Steps = list3; reference315 = questSequence; - ref QuestSequence reference316 = ref span176[4]; + num++; + ref QuestSequence reference316 = ref span414[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence223 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006795u, new Vector3(475.0896f, 5.8291526f, -842.40485f), 156); + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span420 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span420[num2] = new QuestStep(EInteractionType.Interact, 1006795u, new Vector3(475.0896f, 5.8291526f, -842.40485f), 156); questSequence223.Steps = list3; reference316 = questSequence; - ref QuestSequence reference317 = ref span176[5]; + num++; + ref QuestSequence reference317 = ref span414[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -66299,7 +79915,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + Span span421 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span421[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -66316,26 +79934,30 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot96 = questRoot; num = 1; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = "liza"; - questRoot96.Author = list122; + List list123 = new List(num); + CollectionsMarshal.SetCount(list123, num); + Span span422 = CollectionsMarshal.AsSpan(list123); + index = 0; + span422[index] = "liza"; + questRoot96.Author = list123; QuestRoot questRoot97 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span179 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference318 = ref span179[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span423 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference318 = ref span423[num]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence225 = questSequence; - num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span180 = CollectionsMarshal.AsSpan(list3); - span180[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.8204f, 12.899764f, 4.017052f), 129) + num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span424 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span424[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.8204f, 12.899764f, 4.017052f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -66346,10 +79968,12 @@ public static class AssemblyQuestLoader } } }; - span180[1] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); + num2++; + span424[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); questSequence225.Steps = list3; reference318 = questSequence; - ref QuestSequence reference319 = ref span179[1]; + num++; + ref QuestSequence reference319 = ref span423[num]; questSequence = new QuestSequence { Sequence = 1 @@ -66358,7 +79982,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + Span span425 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span425[num3] = new QuestStep(EInteractionType.Interact, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AethernetShortcut = new AethernetShortcut { @@ -66368,23 +79994,27 @@ public static class AssemblyQuestLoader }; questSequence226.Steps = list3; reference319 = questSequence; - ref QuestSequence reference320 = ref span179[2]; + num++; + ref QuestSequence reference320 = ref span423[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence227 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007835u, new Vector3(-8.011047f, 40.667355f, 192.76721f), 137) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span426 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span426[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007835u, new Vector3(-8.011047f, 40.667355f, 192.76721f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; questSequence227.Steps = list3; reference320 = questSequence; - ref QuestSequence reference321 = ref span179[3]; + num++; + ref QuestSequence reference321 = ref span423[num]; questSequence = new QuestSequence { Sequence = 3 @@ -66393,22 +80023,27 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007836u, new Vector3(31.3573f, 34.078865f, 222.76636f), 137) + Span span427 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span427[num3] = new QuestStep(EInteractionType.Interact, 1007836u, new Vector3(31.3573f, 34.078865f, 222.76636f), 137) { StopDistance = 5f }; questSequence228.Steps = list3; reference321 = questSequence; - ref QuestSequence reference322 = ref span179[4]; + num++; + ref QuestSequence reference322 = ref span423[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence229 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span428 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span428[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -66426,16 +80061,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot98 = questRoot; num = 1; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; - questRoot98.Author = list123; + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + Span span429 = CollectionsMarshal.AsSpan(list124); + index = 0; + span429[index] = "liza"; + questRoot98.Author = list124; QuestRoot questRoot99 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span181 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference323 = ref span181[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span430 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference323 = ref span430[num]; questSequence = new QuestSequence { Sequence = 0 @@ -66444,8 +80082,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span182 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference324 = ref span182[0]; + Span span431 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference324 = ref span431[num3]; questStep = new QuestStep(EInteractionType.EquipItem, null, null, 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -66464,28 +80103,33 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition26 = skipAetheryteCondition; - num3 = 1; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = 128; - skipAetheryteCondition26.InTerritory = list124; + num4 = 1; + List list125 = new List(num4); + CollectionsMarshal.SetCount(list125, num4); + Span span432 = CollectionsMarshal.AsSpan(list125); + num5 = 0; + span432[num5] = 128; + skipAetheryteCondition26.InTerritory = list125; skipConditions36.AetheryteShortcutIf = skipAetheryteCondition; questStep104.SkipConditions = skipConditions; reference324 = questStep; - span182[1] = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128); + num3++; + span431[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128); questSequence230.Steps = list3; reference323 = questSequence; - ref QuestSequence reference325 = ref span181[1]; + num++; + ref QuestSequence reference325 = ref span430[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence231 = questSequence; - num2 = 8; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span183 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference326 = ref span183[0]; + num3 = 8; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span433 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + ref QuestStep reference326 = ref span433[num2]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-337.73785f, 59.519302f, -120.80934f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook @@ -66495,16 +80139,22 @@ public static class AssemblyQuestLoader SkipConditions skipConditions37 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions12 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span184 = CollectionsMarshal.AsSpan(list4); - span184[0] = null; - span184[1] = null; - span184[2] = null; - span184[3] = null; - span184[4] = null; - span184[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span434 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span434[num4] = null; + num4++; + span434[num4] = null; + num4++; + span434[num4] = null; + num4++; + span434[num4] = null; + num4++; + span434[num4] = null; + num4++; + span434[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions12.CompletionQuestVariablesFlags = list4; skipConditions37.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition @@ -66513,25 +80163,33 @@ public static class AssemblyQuestLoader }; questStep105.SkipConditions = skipConditions; reference326 = questStep; - ref QuestStep reference327 = ref span183[1]; + num2++; + ref QuestStep reference327 = ref span433[num2]; questStep = new QuestStep(EInteractionType.Interact, 2002380u, new Vector3(-338.8877f, 61.722656f, -120.25641f), 180) { IgnoreDistanceToObject = true }; QuestStep questStep106 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span185 = CollectionsMarshal.AsSpan(list4); - span185[0] = null; - span185[1] = null; - span185[2] = null; - span185[3] = null; - span185[4] = null; - span185[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span435 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span435[num5] = null; + num5++; + span435[num5] = null; + num5++; + span435[num5] = null; + num5++; + span435[num5] = null; + num5++; + span435[num5] = null; + num5++; + span435[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep106.CompletionQuestVariablesFlags = list4; reference327 = questStep; - ref QuestStep reference328 = ref span183[2]; + num2++; + ref QuestStep reference328 = ref span433[num2]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-275.93335f, 64.09534f, -197.701f), 180) { Fly = true @@ -66541,36 +80199,50 @@ public static class AssemblyQuestLoader SkipConditions skipConditions38 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions13 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span186 = CollectionsMarshal.AsSpan(list4); - span186[0] = null; - span186[1] = null; - span186[2] = null; - span186[3] = null; - span186[4] = null; - span186[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span436 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span436[num4] = null; + num4++; + span436[num4] = null; + num4++; + span436[num4] = null; + num4++; + span436[num4] = null; + num4++; + span436[num4] = null; + num4++; + span436[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions13.CompletionQuestVariablesFlags = list4; skipConditions38.StepIf = skipStepConditions; questStep107.SkipConditions = skipConditions; reference328 = questStep; - ref QuestStep reference329 = ref span183[3]; + num2++; + ref QuestStep reference329 = ref span433[num2]; questStep = new QuestStep(EInteractionType.Interact, 2002379u, new Vector3(-274.28094f, 65.81213f, -196.97876f), 180); QuestStep questStep108 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span187 = CollectionsMarshal.AsSpan(list4); - span187[0] = null; - span187[1] = null; - span187[2] = null; - span187[3] = null; - span187[4] = null; - span187[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span437 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span437[num5] = null; + num5++; + span437[num5] = null; + num5++; + span437[num5] = null; + num5++; + span437[num5] = null; + num5++; + span437[num5] = null; + num5++; + span437[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep108.CompletionQuestVariablesFlags = list4; reference329 = questStep; - ref QuestStep reference330 = ref span183[4]; + num2++; + ref QuestStep reference330 = ref span433[num2]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-326.9142f, 64.60336f, -267.98495f), 180) { Fly = true @@ -66580,36 +80252,50 @@ public static class AssemblyQuestLoader SkipConditions skipConditions39 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions14 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span188 = CollectionsMarshal.AsSpan(list4); - span188[0] = null; - span188[1] = null; - span188[2] = null; - span188[3] = null; - span188[4] = null; - span188[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span438 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span438[num4] = null; + num4++; + span438[num4] = null; + num4++; + span438[num4] = null; + num4++; + span438[num4] = null; + num4++; + span438[num4] = null; + num4++; + span438[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions14.CompletionQuestVariablesFlags = list4; skipConditions39.StepIf = skipStepConditions; questStep109.SkipConditions = skipConditions; reference330 = questStep; - ref QuestStep reference331 = ref span183[5]; + num2++; + ref QuestStep reference331 = ref span433[num2]; questStep = new QuestStep(EInteractionType.Interact, 2002382u, new Vector3(-327.87067f, 65.87317f, -267.59753f), 180); QuestStep questStep110 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span189 = CollectionsMarshal.AsSpan(list4); - span189[0] = null; - span189[1] = null; - span189[2] = null; - span189[3] = null; - span189[4] = null; - span189[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span439 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span439[num5] = null; + num5++; + span439[num5] = null; + num5++; + span439[num5] = null; + num5++; + span439[num5] = null; + num5++; + span439[num5] = null; + num5++; + span439[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep110.CompletionQuestVariablesFlags = list4; reference331 = questStep; - ref QuestStep reference332 = ref span183[6]; + num2++; + ref QuestStep reference332 = ref span433[num2]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-360.0172f, 65.166664f, -312.24045f), 180) { Fly = true @@ -66619,38 +80305,52 @@ public static class AssemblyQuestLoader SkipConditions skipConditions40 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions15 = skipStepConditions; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span190 = CollectionsMarshal.AsSpan(list4); - span190[0] = null; - span190[1] = null; - span190[2] = null; - span190[3] = null; - span190[4] = null; - span190[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5 = 6; + list4 = new List(num5); + CollectionsMarshal.SetCount(list4, num5); + Span span440 = CollectionsMarshal.AsSpan(list4); + num4 = 0; + span440[num4] = null; + num4++; + span440[num4] = null; + num4++; + span440[num4] = null; + num4++; + span440[num4] = null; + num4++; + span440[num4] = null; + num4++; + span440[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions15.CompletionQuestVariablesFlags = list4; skipConditions40.StepIf = skipStepConditions; questStep111.SkipConditions = skipConditions; reference332 = questStep; - ref QuestStep reference333 = ref span183[7]; + num2++; + ref QuestStep reference333 = ref span433[num2]; questStep = new QuestStep(EInteractionType.Interact, 2002381u, new Vector3(-360.55542f, 66.33093f, -310.87207f), 180); QuestStep questStep112 = questStep; - num3 = 6; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - Span span191 = CollectionsMarshal.AsSpan(list4); - span191[0] = null; - span191[1] = null; - span191[2] = null; - span191[3] = null; - span191[4] = null; - span191[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span441 = CollectionsMarshal.AsSpan(list4); + num5 = 0; + span441[num5] = null; + num5++; + span441[num5] = null; + num5++; + span441[num5] = null; + num5++; + span441[num5] = null; + num5++; + span441[num5] = null; + num5++; + span441[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep112.CompletionQuestVariablesFlags = list4; reference333 = questStep; questSequence231.Steps = list3; reference325 = questSequence; - ref QuestSequence reference334 = ref span181[2]; + num++; + ref QuestSequence reference334 = ref span430[num]; questSequence = new QuestSequence { Sequence = 2 @@ -66659,22 +80359,27 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 2002383u, new Vector3(-437.94922f, 51.377075f, -321.24823f), 180) + Span span442 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span442[num3] = new QuestStep(EInteractionType.Interact, 2002383u, new Vector3(-437.94922f, 51.377075f, -321.24823f), 180) { Fly = true }; questSequence232.Steps = list3; reference334 = questSequence; - ref QuestSequence reference335 = ref span181[3]; + num++; + ref QuestSequence reference335 = ref span430[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence233 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span443 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span443[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -66692,16 +80397,19 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot100 = questRoot; num = 1; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "liza"; - questRoot100.Author = list125; + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + Span span444 = CollectionsMarshal.AsSpan(list126); + index = 0; + span444[index] = "liza"; + questRoot100.Author = list126; QuestRoot questRoot101 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span192 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference336 = ref span192[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span445 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference336 = ref span445[num]; questSequence = new QuestSequence { Sequence = 0 @@ -66710,7 +80418,9 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference337 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span446 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + ref QuestStep reference337 = ref span446[num3]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -66728,33 +80438,39 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition27 = skipAetheryteCondition; - num3 = 1; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = 128; - skipAetheryteCondition27.InTerritory = list126; + num5 = 1; + List list127 = new List(num5); + CollectionsMarshal.SetCount(list127, num5); + Span span447 = CollectionsMarshal.AsSpan(list127); + num4 = 0; + span447[num4] = 128; + skipAetheryteCondition27.InTerritory = list127; skipConditions41.AetheryteShortcutIf = skipAetheryteCondition; questStep113.SkipConditions = skipConditions; reference337 = questStep; questSequence234.Steps = list3; reference336 = questSequence; - ref QuestSequence reference338 = ref span192[1]; + num++; + ref QuestSequence reference338 = ref span445[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence235 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007837u, new Vector3(256.82446f, -3.0527449f, 60.9292f), 139) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span448 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span448[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007837u, new Vector3(256.82446f, -3.0527449f, 60.9292f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; questSequence235.Steps = list3; reference338 = questSequence; - ref QuestSequence reference339 = ref span192[2]; + num++; + ref QuestSequence reference339 = ref span445[num]; questSequence = new QuestSequence { Sequence = 2 @@ -66763,22 +80479,27 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007845u, new Vector3(256.33618f, -3.2069032f, 58.091064f), 139) + Span span449 = CollectionsMarshal.AsSpan(list3); + num3 = 0; + span449[num3] = new QuestStep(EInteractionType.Interact, 1007845u, new Vector3(256.33618f, -3.2069032f, 58.091064f), 139) { StopDistance = 5f }; questSequence236.Steps = list3; reference339 = questSequence; - ref QuestSequence reference340 = ref span192[3]; + num++; + ref QuestSequence reference340 = ref span445[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence237 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + num3 = 1; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + Span span450 = CollectionsMarshal.AsSpan(list3); + num2 = 0; + span450[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -66801,13 +80522,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 8; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 8; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -66815,7 +80539,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -66833,44 +80559,52 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = 128; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = 128; obj3.InTerritory = list4; skipConditions.AetheryteShortcutIf = obj3; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-260.8949f, -17.148405f, -346.92633f), 156) + index2 = 2; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span5[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-260.8949f, -17.148405f, -346.92633f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span5[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Combat, 2002715u, new Vector3(-259.02197f, -15.762573f, -344.71655f), 156) { StopDistance = 4.5f, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = 1949u; - span3[1] = 2285u; + index3 = 2; + List list6 = new List(index3); + CollectionsMarshal.SetCount(list6, index3); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span6[num3] = 1949u; + num3++; + span6[num3] = 2285u; obj5.KillEnemyDataIds = list6; reference4 = obj5; obj4.Steps = list5; reference3 = obj4; - ref QuestSequence reference5 = ref span[2]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 2 @@ -66878,21 +80612,26 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 2002716u, new Vector3(-259.02197f, -15.94574f, -344.71655f), 156) + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.Interact, 2002716u, new Vector3(-259.02197f, -15.94574f, -344.71655f), 156) { StopDistance = 4.5f }; obj6.Steps = list7; reference5 = obj6; - ref QuestSequence reference6 = ref span[3]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1003818u, new Vector3(157.36621f, 7.7920074f, 98.924194f), 131) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.Interact, 1003818u, new Vector3(157.36621f, 7.7920074f, 98.924194f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -66903,7 +80642,8 @@ public static class AssemblyQuestLoader }; obj7.Steps = list8; reference6 = obj7; - ref QuestSequence reference7 = ref span[4]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 4 @@ -66911,7 +80651,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) { AethernetShortcut = new AethernetShortcut { @@ -66921,15 +80663,18 @@ public static class AssemblyQuestLoader }; obj8.Steps = list9; reference7 = obj8; - ref QuestSequence reference8 = ref span[5]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1000691u, new Vector3(71.97681f, 8f, -166.52173f), 133) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.Interact, 1000691u, new Vector3(71.97681f, 8f, -166.52173f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -66940,7 +80685,8 @@ public static class AssemblyQuestLoader }; obj9.Steps = list10; reference8 = obj9; - ref QuestSequence reference9 = ref span[6]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 6 @@ -66948,19 +80694,23 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1000357u, new Vector3(68.314575f, 8.199997f, -170.51965f), 133); + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.Interact, 1000357u, new Vector3(68.314575f, 8.199997f, -170.51965f), 133); obj10.Steps = list11; reference9 = obj10; - ref QuestSequence reference10 = ref span[7]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - Span span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = new QuestStep(EInteractionType.EquipItem, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + index2 = 5; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.EquipItem, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -66970,19 +80720,23 @@ public static class AssemblyQuestLoader }, ItemId = 2905u }; - span4[1] = new QuestStep(EInteractionType.EquipItem, null, null, 128) + num2++; + span12[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 128) { ItemId = 3689u }; - span4[2] = new QuestStep(EInteractionType.EquipItem, null, null, 128) + num2++; + span12[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 128) { ItemId = 3466u }; - span4[3] = new QuestStep(EInteractionType.EquipItem, null, null, 128) + num2++; + span12[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 128) { ItemId = 3897u }; - span4[4] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + num2++; + span12[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { NextQuestId = new QuestId(1101) }; @@ -66995,13 +80749,16 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + Span span13 = CollectionsMarshal.AsSpan(list13); + index = 0; + span13[index] = "liza"; questRoot2.Author = list13; - num = 5; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span5 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference11 = ref span5[0]; + index = 5; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference11 = ref span14[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -67009,7 +80766,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref QuestStep reference12 = ref span15[index2]; QuestStep obj13 = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -67027,29 +80786,35 @@ public static class AssemblyQuestLoader num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = 128; + Span span16 = CollectionsMarshal.AsSpan(list16); + index3 = 0; + span16[index3] = 128; obj14.InTerritory = list16; skipConditions2.AetheryteShortcutIf = obj14; obj13.SkipConditions = skipConditions2; reference12 = obj13; obj12.Steps = list15; reference11 = obj12; - ref QuestSequence reference13 = ref span5[1]; + num++; + ref QuestSequence reference13 = ref span14[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1006332u, new Vector3(426.96265f, 8.373348f, 20.004517f), 139) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.Interact, 1006332u, new Vector3(426.96265f, 8.373348f, 20.004517f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; obj15.Steps = list17; reference13 = obj15; - ref QuestSequence reference14 = ref span5[2]; + num++; + ref QuestSequence reference14 = ref span14[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -67057,25 +80822,33 @@ public static class AssemblyQuestLoader num2 = 7; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span6 = CollectionsMarshal.AsSpan(list18); - ref QuestStep reference15 = ref span6[0]; + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + ref QuestStep reference15 = ref span18[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Action, 1007843u, new Vector3(388.08264f, 7.8583374f, 40.512573f), 139) { Action = EAction.Esuna }; - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span7 = CollectionsMarshal.AsSpan(list19); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list19; reference15 = obj17; - ref QuestStep reference16 = ref span6[1]; + index2++; + ref QuestStep reference16 = ref span18[index2]; QuestStep obj18 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(423.76727f, 4.109605f, 74.008965f), 139) { Mount = true @@ -67085,35 +80858,49 @@ public static class AssemblyQuestLoader num3 = 6; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span8 = CollectionsMarshal.AsSpan(list20); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span20 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list20; skipConditions3.StepIf = skipStepConditions; obj18.SkipConditions = skipConditions3; reference16 = obj18; - ref QuestStep reference17 = ref span6[2]; + index2++; + ref QuestStep reference17 = ref span18[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Action, 1007844u, new Vector3(417.16638f, 3.6468506f, 59.64746f), 139) { Action = EAction.Esuna }; - num3 = 6; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - Span span9 = CollectionsMarshal.AsSpan(list21); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list21 = new List(index3); + CollectionsMarshal.SetCount(list21, index3); + Span span21 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj19.CompletionQuestVariablesFlags = list21; reference17 = obj19; - ref QuestStep reference18 = ref span6[3]; + index2++; + ref QuestStep reference18 = ref span18[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Action, 1007840u, new Vector3(427.2068f, 7.6130996f, 141.34424f), 139) { Action = EAction.Esuna @@ -67121,35 +80908,49 @@ public static class AssemblyQuestLoader num3 = 6; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - Span span10 = CollectionsMarshal.AsSpan(list22); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span22 = CollectionsMarshal.AsSpan(list22); + index3 = 0; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj20.CompletionQuestVariablesFlags = list22; reference18 = obj20; - ref QuestStep reference19 = ref span6[4]; + index2++; + ref QuestStep reference19 = ref span18[index2]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(477.80576f, 10.397504f, 104.84231f), 139); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span11 = CollectionsMarshal.AsSpan(list23); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + Span span23 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list23; skipStepConditions2.Flying = ELockedSkipCondition.Unlocked; skipConditions4.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions4; reference19 = questStep; - ref QuestStep reference20 = ref span6[5]; + index2++; + ref QuestStep reference20 = ref span18[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Action, 1007842u, new Vector3(477.25635f, 8.499207f, 108.07959f), 139) { StopDistance = 0.5f, @@ -67159,47 +80960,64 @@ public static class AssemblyQuestLoader num3 = 6; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - Span span12 = CollectionsMarshal.AsSpan(list24); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span24 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list24; reference20 = obj21; - ref QuestStep reference21 = ref span6[6]; + index2++; + ref QuestStep reference21 = ref span18[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Action, 1007841u, new Vector3(503.04407f, 16.468494f, 72.46509f), 139) { Fly = true, Action = EAction.Esuna }; - num3 = 6; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - Span span13 = CollectionsMarshal.AsSpan(list25); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list25 = new List(index3); + CollectionsMarshal.SetCount(list25, index3); + Span span25 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj22.CompletionQuestVariablesFlags = list25; reference21 = obj22; obj16.Steps = list18; reference14 = obj16; - ref QuestSequence reference22 = ref span5[3]; + num++; + ref QuestSequence reference22 = ref span14[num]; QuestSequence obj23 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1006332u, new Vector3(426.96265f, 8.373348f, 20.004517f), 139); + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.Interact, 1006332u, new Vector3(426.96265f, 8.373348f, 20.004517f), 139); obj23.Steps = list26; reference22 = obj23; - ref QuestSequence reference23 = ref span5[4]; + num++; + ref QuestSequence reference23 = ref span14[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue @@ -67207,7 +81025,9 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -67226,21 +81046,26 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + Span span28 = CollectionsMarshal.AsSpan(list28); + index = 0; + span28[index] = "liza"; questRoot3.Author = list28; - num = 4; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span14 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference24 = ref span14[0]; + index = 4; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + Span span29 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference24 = ref span29[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list30)[0]; + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + ref QuestStep reference25 = ref span30[num2]; QuestStep obj26 = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -67258,14 +81083,17 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = 128; + Span span31 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span31[index3] = 128; obj27.InTerritory = list31; skipConditions5.AetheryteShortcutIf = obj27; obj26.SkipConditions = skipConditions5; reference25 = obj26; obj25.Steps = list30; reference24 = obj25; - ref QuestSequence reference26 = ref span14[1]; + num++; + ref QuestSequence reference26 = ref span29[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -67273,40 +81101,51 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007838u, new Vector3(256.36682f, -3.2069032f, 58.091064f), 139) + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007838u, new Vector3(256.36682f, -3.2069032f, 58.091064f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; obj28.Steps = list32; reference26 = obj28; - ref QuestSequence reference27 = ref span14[2]; + num++; + ref QuestSequence reference27 = ref span29[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span15 = CollectionsMarshal.AsSpan(list33); - ref QuestStep reference28 = ref span15[0]; + index2 = 3; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + ref QuestStep reference28 = ref span33[num2]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 1007838u, new Vector3(256.36682f, -3.2069032f, 58.091064f), 139) { StopDistance = 5f }; - num3 = 6; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span16 = CollectionsMarshal.AsSpan(list34); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list34 = new List(index3); + CollectionsMarshal.SetCount(list34, index3); + Span span34 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj30.CompletionQuestVariablesFlags = list34; reference28 = obj30; - ref QuestStep reference29 = ref span15[1]; + num2++; + ref QuestStep reference29 = ref span33[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1007846u, new Vector3(262.80603f, -2.852741f, 63.1875f), 139) { StopDistance = 5f @@ -67314,32 +81153,46 @@ public static class AssemblyQuestLoader num3 = 6; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span17 = CollectionsMarshal.AsSpan(list35); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span35 = CollectionsMarshal.AsSpan(list35); + index3 = 0; + span35[index3] = null; + index3++; + span35[index3] = null; + index3++; + span35[index3] = null; + index3++; + span35[index3] = null; + index3++; + span35[index3] = null; + index3++; + span35[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj31.CompletionQuestVariablesFlags = list35; reference29 = obj31; - ref QuestStep reference30 = ref span15[2]; + num2++; + ref QuestStep reference30 = ref span33[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1007847u, new Vector3(257.98413f, -3.4f, 49.05774f), 139); - num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span18 = CollectionsMarshal.AsSpan(list36); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + Span span36 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list36; reference30 = questStep2; obj29.Steps = list33; reference27 = obj29; - ref QuestSequence reference31 = ref span14[3]; + num++; + ref QuestSequence reference31 = ref span29[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -67347,7 +81200,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007849u, new Vector3(231.79968f, 5.18473f, 61.142822f), 139) + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007849u, new Vector3(231.79968f, 5.18473f, 61.142822f), 139) { NextQuestId = new QuestId(1671) }; @@ -67360,21 +81215,26 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "liza"; + Span span38 = CollectionsMarshal.AsSpan(list38); + index = 0; + span38[index] = "liza"; questRoot4.Author = list38; - num = 3; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span19 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference32 = ref span19[0]; + index = 3; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + Span span39 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference32 = ref span39[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -67392,7 +81252,8 @@ public static class AssemblyQuestLoader }; obj33.Steps = list40; reference32 = obj33; - ref QuestSequence reference33 = ref span19[1]; + num++; + ref QuestSequence reference33 = ref span39[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -67400,12 +81261,16 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list41)[0]; + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + ref QuestStep reference34 = ref span41[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1005199u, new Vector3(-348.3177f, -2.3744698f, 11.917236f), 129); num3 = 1; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new DialogueChoice + Span span42 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span42[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSACN149_01103_Q1_000_000"), @@ -67415,15 +81280,18 @@ public static class AssemblyQuestLoader reference34 = questStep3; obj34.Steps = list41; reference33 = obj34; - ref QuestSequence reference35 = ref span19[2]; + num++; + ref QuestSequence reference35 = ref span39[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { NextQuestId = new QuestId(458) }; @@ -67436,13 +81304,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + Span span44 = CollectionsMarshal.AsSpan(list44); + index = 0; + span44[index] = "liza"; questRoot5.Author = list44; - num = 2; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span20 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference36 = ref span20[0]; + index = 2; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + Span span45 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference36 = ref span45[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -67450,19 +81321,23 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128); + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128); obj36.Steps = list46; reference36 = obj36; - ref QuestSequence reference37 = ref span20[1]; + num++; + ref QuestSequence reference37 = ref span45[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span21 = CollectionsMarshal.AsSpan(list47); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) + index2 = 5; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -67471,19 +81346,23 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaTempestGate } }; - span21[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + num2++; + span47[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - span21[2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) + num2++; + span47[num2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) { TargetTerritoryId = (ushort)250 }; - span21[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) + num2++; + span47[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) { Aetheryte = EAetheryteLocation.WolvesDenPier }; - span21[4] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); + num2++; + span47[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); obj37.Steps = list47; reference37 = obj37; questRoot5.QuestSequence = list45; @@ -67493,13 +81372,16 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + Span span48 = CollectionsMarshal.AsSpan(list48); + index = 0; + span48[index] = "liza"; questRoot6.Author = list48; - num = 2; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span22 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference38 = ref span22[0]; + index = 2; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + Span span49 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference38 = ref span49[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -67507,19 +81389,23 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); obj38.Steps = list50; reference38 = obj38; - ref QuestSequence reference39 = ref span22[1]; + num++; + ref QuestSequence reference39 = ref span49[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - Span span23 = CollectionsMarshal.AsSpan(list51); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) + index2 = 5; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -67529,19 +81415,23 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaTempestGate } }; - span23[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + num2++; + span51[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - span23[2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) + num2++; + span51[num2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) { TargetTerritoryId = (ushort)250 }; - span23[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) + num2++; + span51[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) { Aetheryte = EAetheryteLocation.WolvesDenPier }; - span23[4] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); + num2++; + span51[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); obj39.Steps = list51; reference39 = obj39; questRoot6.QuestSequence = list49; @@ -67551,13 +81441,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + Span span52 = CollectionsMarshal.AsSpan(list52); + index = 0; + span52[index] = "liza"; questRoot7.Author = list52; - num = 2; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span24 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference40 = ref span24[0]; + index = 2; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + Span span53 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference40 = ref span53[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -67565,19 +81458,23 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); obj40.Steps = list54; reference40 = obj40; - ref QuestSequence reference41 = ref span24[1]; + num++; + ref QuestSequence reference41 = ref span53[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span25 = CollectionsMarshal.AsSpan(list55); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) + index2 = 5; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -67587,19 +81484,23 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaTempestGate } }; - span25[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + num2++; + span55[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - span25[2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) + num2++; + span55[num2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) { TargetTerritoryId = (ushort)250 }; - span25[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) + num2++; + span55[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) { Aetheryte = EAetheryteLocation.WolvesDenPier }; - span25[4] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); + num2++; + span55[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); obj41.Steps = list55; reference41 = obj41; questRoot7.QuestSequence = list53; @@ -67609,13 +81510,16 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "Cacahuetes"; + Span span56 = CollectionsMarshal.AsSpan(list56); + index = 0; + span56[index] = "Cacahuetes"; questRoot8.Author = list56; - num = 2; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span26 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference42 = ref span26[0]; + index = 2; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + Span span57 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference42 = ref span57[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -67623,7 +81527,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000859u, new Vector3(-166.76587f, 4.5496645f, 150.04187f), 129) + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000859u, new Vector3(-166.76587f, 4.5496645f, 150.04187f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -67641,22 +81547,27 @@ public static class AssemblyQuestLoader }; obj42.Steps = list58; reference42 = obj42; - ref QuestSequence reference43 = ref span26[1]; + num++; + ref QuestSequence reference43 = ref span57[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - Span span27 = CollectionsMarshal.AsSpan(list59); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.50569f, 4.550004f, 157.5545f), 129); - ref QuestStep reference44 = ref span27[1]; + index2 = 2; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.50569f, 4.550004f, 157.5545f), 129); + num2++; + ref QuestStep reference44 = ref span59[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.CompleteQuest, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129); - num3 = 1; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = new DialogueChoice + index3 = 1; + List list60 = new List(index3); + CollectionsMarshal.SetCount(list60, index3); + Span span60 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span60[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSFSH011_01107_Q1_000_001") @@ -67673,15 +81584,18 @@ public static class AssemblyQuestLoader num = 2; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - Span span28 = CollectionsMarshal.AsSpan(list61); - span28[0] = "Cacahuetes"; - span28[1] = "Friendly"; + Span span61 = CollectionsMarshal.AsSpan(list61); + index = 0; + span61[index] = "Cacahuetes"; + index++; + span61[index] = "Friendly"; questRoot9.Author = list61; - num = 2; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span29 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference45 = ref span29[0]; + index = 2; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + Span span62 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference45 = ref span62[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -67689,8 +81603,9 @@ public static class AssemblyQuestLoader num2 = 3; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span30 = CollectionsMarshal.AsSpan(list63); - span30[0] = new QuestStep(EInteractionType.EquipItem, null, null, 129) + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 129) { ItemId = 2571u, SkipConditions = new SkipConditions @@ -67704,20 +81619,24 @@ public static class AssemblyQuestLoader } } }; - span30[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 129); - span30[2] = new QuestStep(EInteractionType.AcceptQuest, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129); + index2++; + span63[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 129); + index2++; + span63[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129); obj44.Steps = list63; reference45 = obj44; - ref QuestSequence reference46 = ref span29[1]; + num++; + ref QuestSequence reference46 = ref span62[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span31 = CollectionsMarshal.AsSpan(list64); - span31[0] = new QuestStep(EInteractionType.PurchaseItem, 1001016u, new Vector3(-42.679565f, 39.999947f, 119.920654f), 128) + index2 = 2; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.PurchaseItem, 1001016u, new Vector3(-42.679565f, 39.999947f, 119.920654f), 128) { AethernetShortcut = new AethernetShortcut { @@ -67739,7 +81658,8 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262186u) } }; - span31[1] = new QuestStep(EInteractionType.CompleteQuest, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129) + num2++; + span64[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129) { Comment = "Complete quest", AethernetShortcut = new AethernetShortcut @@ -67758,13 +81678,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "pot0to"; + Span span65 = CollectionsMarshal.AsSpan(list65); + index = 0; + span65[index] = "pot0to"; questRoot10.Author = list65; - num = 20; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span32 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference47 = ref span32[0]; + index = 20; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + Span span66 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference47 = ref span66[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -67772,7 +81695,9 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -67786,22 +81711,26 @@ public static class AssemblyQuestLoader }; obj46.Steps = list67; reference47 = obj46; - ref QuestSequence reference48 = ref span32[1]; + num++; + ref QuestSequence reference48 = ref span66[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 2002499u, new Vector3(-319.17297f, -36.636963f, -278.73657f), 138) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.Interact, 2002499u, new Vector3(-319.17297f, -36.636963f, -278.73657f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj47.Steps = list68; reference48 = obj47; - ref QuestSequence reference49 = ref span32[2]; + num++; + ref QuestSequence reference49 = ref span66[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -67809,28 +81738,33 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj48.Steps = list69; reference49 = obj48; - ref QuestSequence reference50 = ref span32[3]; + num++; + ref QuestSequence reference50 = ref span66[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span33 = CollectionsMarshal.AsSpan(list70); - span33[0] = new QuestStep(EInteractionType.WaitForManualProgress, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) + index2 = 2; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.WaitForManualProgress, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) { Fly = true, Comment = "Craft/purchase off marketboard an erudite's picatrix of healing and meld 2 grade 3 quicktongue materia to it." }; - span33[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) + num2++; + span70[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -67844,7 +81778,8 @@ public static class AssemblyQuestLoader }; obj49.Steps = list70; reference50 = obj49; - ref QuestSequence reference51 = ref span32[4]; + num++; + ref QuestSequence reference51 = ref span66[num]; QuestSequence obj50 = new QuestSequence { Sequence = 4 @@ -67852,7 +81787,9 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.Duty, null, null, 154) { Fly = true, Comment = "Queue for A Relic Reborn: The Chimera", @@ -67863,16 +81800,18 @@ public static class AssemblyQuestLoader }; obj50.Steps = list71; reference51 = obj50; - ref QuestSequence reference52 = ref span32[5]; + num++; + ref QuestSequence reference52 = ref span66[num]; QuestSequence obj51 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span34 = CollectionsMarshal.AsSpan(list72); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -67884,10 +81823,12 @@ public static class AssemblyQuestLoader } } }; - span34[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + num2++; + span72[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj51.Steps = list72; reference52 = obj51; - ref QuestSequence reference53 = ref span32[6]; + num++; + ref QuestSequence reference53 = ref span66[num]; QuestSequence obj52 = new QuestSequence { Sequence = 6 @@ -67895,7 +81836,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156) + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -67909,15 +81852,18 @@ public static class AssemblyQuestLoader }; obj52.Steps = list73; reference53 = obj52; - ref QuestSequence reference54 = ref span32[7]; + num++; + ref QuestSequence reference54 = ref span66[num]; QuestSequence obj53 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.Duty, null, null, 154) { Fly = true, Comment = "Queue for Amdapor Keep", @@ -67928,7 +81874,8 @@ public static class AssemblyQuestLoader }; obj53.Steps = list74; reference54 = obj53; - ref QuestSequence reference55 = ref span32[8]; + num++; + ref QuestSequence reference55 = ref span66[num]; QuestSequence obj54 = new QuestSequence { Sequence = 8 @@ -67936,19 +81883,23 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); obj54.Steps = list75; reference55 = obj54; - ref QuestSequence reference56 = ref span32[9]; + num++; + ref QuestSequence reference56 = ref span66[num]; QuestSequence obj55 = new QuestSequence { Sequence = 9 }; - num2 = 2; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span35 = CollectionsMarshal.AsSpan(list76); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) + index2 = 2; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -67960,10 +81911,12 @@ public static class AssemblyQuestLoader } } }; - span35[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + num2++; + span76[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj55.Steps = list76; reference56 = obj55; - ref QuestSequence reference57 = ref span32[10]; + num++; + ref QuestSequence reference57 = ref span66[num]; QuestSequence obj56 = new QuestSequence { Sequence = 10 @@ -67971,8 +81924,9 @@ public static class AssemblyQuestLoader num2 = 2; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span36 = CollectionsMarshal.AsSpan(list77); - span36[0] = new QuestStep(EInteractionType.EquipItem, null, null, 138) + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, ItemId = 2192u, @@ -67984,7 +81938,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference58 = ref span36[1]; + index2++; + ref QuestStep reference58 = ref span77[index2]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, 768u, new Vector3(-317.9305f, -39.35494f, -298.3956f), 138) { Fly = true, @@ -67993,35 +81948,46 @@ public static class AssemblyQuestLoader num3 = 3; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - Span span37 = CollectionsMarshal.AsSpan(list78); - span37[0] = 766u; - span37[1] = 767u; - span37[2] = 768u; + Span span78 = CollectionsMarshal.AsSpan(list78); + index3 = 0; + span78[index3] = 766u; + index3++; + span78[index3] = 767u; + index3++; + span78[index3] = 768u; obj57.KillEnemyDataIds = list78; - num3 = 6; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - Span span38 = CollectionsMarshal.AsSpan(list79); - span38[0] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span38[1] = new QuestWorkValue((byte)8, (byte)8, EQuestWorkMode.Bitwise); - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = null; + index3 = 6; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + Span span79 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span79[num3] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num3++; + span79[num3] = new QuestWorkValue((byte)8, (byte)8, EQuestWorkMode.Bitwise); + num3++; + span79[num3] = null; + num3++; + span79[num3] = null; + num3++; + span79[num3] = null; + num3++; + span79[num3] = null; obj57.CompletionQuestVariablesFlags = list79; reference58 = obj57; obj56.Steps = list77; reference57 = obj56; - ref QuestSequence reference59 = ref span32[11]; + num++; + ref QuestSequence reference59 = ref span66[num]; QuestSequence obj58 = new QuestSequence { Sequence = 11 }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span39 = CollectionsMarshal.AsSpan(list80); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) + index2 = 2; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -68033,10 +81999,12 @@ public static class AssemblyQuestLoader } } }; - span39[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + num2++; + span80[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj58.Steps = list80; reference59 = obj58; - ref QuestSequence reference60 = ref span32[12]; + num++; + ref QuestSequence reference60 = ref span66[num]; QuestSequence obj59 = new QuestSequence { Sequence = 12 @@ -68044,7 +82012,9 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.Duty, null, null, 154) { Comment = "Queue for A Relic Reborn: The Hydra", DutyOptions = new DutyOptions @@ -68054,16 +82024,18 @@ public static class AssemblyQuestLoader }; obj59.Steps = list81; reference60 = obj59; - ref QuestSequence reference61 = ref span32[13]; + num++; + ref QuestSequence reference61 = ref span66[num]; QuestSequence obj60 = new QuestSequence { Sequence = 13 }; - num2 = 2; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - Span span40 = CollectionsMarshal.AsSpan(list82); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) + index2 = 2; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -68075,10 +82047,12 @@ public static class AssemblyQuestLoader } } }; - span40[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + num2++; + span82[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj60.Steps = list82; reference61 = obj60; - ref QuestSequence reference62 = ref span32[14]; + num++; + ref QuestSequence reference62 = ref span66[num]; QuestSequence obj61 = new QuestSequence { Sequence = 14 @@ -68086,20 +82060,25 @@ public static class AssemblyQuestLoader num2 = 2; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span41 = CollectionsMarshal.AsSpan(list83); - span41[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 154); - span41[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 154); + index2++; + span83[index2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj61.Steps = list83; reference62 = obj61; - ref QuestSequence reference63 = ref span32[15]; + num++; + ref QuestSequence reference63 = ref span66[num]; QuestSequence obj62 = new QuestSequence { Sequence = 15 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.Duty, null, null, 154) { DutyOptions = new DutyOptions { @@ -68108,7 +82087,8 @@ public static class AssemblyQuestLoader }; obj62.Steps = list84; reference63 = obj62; - ref QuestSequence reference64 = ref span32[16]; + num++; + ref QuestSequence reference64 = ref span66[num]; QuestSequence obj63 = new QuestSequence { Sequence = 16 @@ -68116,7 +82096,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.Duty, null, null, 154) { DutyOptions = new DutyOptions { @@ -68125,15 +82107,18 @@ public static class AssemblyQuestLoader }; obj63.Steps = list85; reference64 = obj63; - ref QuestSequence reference65 = ref span32[17]; + num++; + ref QuestSequence reference65 = ref span66[num]; QuestSequence obj64 = new QuestSequence { Sequence = 17 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.Duty, null, null, 154) { DutyOptions = new DutyOptions { @@ -68142,7 +82127,8 @@ public static class AssemblyQuestLoader }; obj64.Steps = list86; reference65 = obj64; - ref QuestSequence reference66 = ref span32[18]; + num++; + ref QuestSequence reference66 = ref span66[num]; QuestSequence obj65 = new QuestSequence { Sequence = 18 @@ -68150,19 +82136,23 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj65.Steps = list87; reference66 = obj65; - ref QuestSequence reference67 = ref span32[19]; + num++; + ref QuestSequence reference67 = ref span66[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span42 = CollectionsMarshal.AsSpan(list88); - span42[0] = new QuestStep(EInteractionType.PurchaseItem, 1008119u, new Vector3(62.333008f, 31.28805f, -739.98627f), 156) + index2 = 3; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.PurchaseItem, 1008119u, new Vector3(62.333008f, 31.28805f, -739.98627f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, ItemId = 6267u, @@ -68175,7 +82165,8 @@ public static class AssemblyQuestLoader } } }; - span42[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) + num2++; + span88[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -68187,7 +82178,8 @@ public static class AssemblyQuestLoader } } }; - span42[2] = new QuestStep(EInteractionType.CompleteQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + num2++; + span88[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj66.Steps = list88; reference67 = obj66; questRoot10.QuestSequence = list66; @@ -68197,15 +82189,18 @@ public static class AssemblyQuestLoader num = 2; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - Span span43 = CollectionsMarshal.AsSpan(list89); - span43[0] = "liza"; - span43[1] = "Friendly"; + Span span89 = CollectionsMarshal.AsSpan(list89); + index = 0; + span89[index] = "liza"; + index++; + span89[index] = "Friendly"; questRoot11.Author = list89; - num = 4; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - Span span44 = CollectionsMarshal.AsSpan(list90); - ref QuestSequence reference68 = ref span44[0]; + index = 4; + List list90 = new List(index); + CollectionsMarshal.SetCount(list90, index); + Span span90 = CollectionsMarshal.AsSpan(list90); + num = 0; + ref QuestSequence reference68 = ref span90[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -68213,7 +82208,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list91)[0]; + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + ref QuestStep reference69 = ref span91[index2]; QuestStep obj68 = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -68231,7 +82228,9 @@ public static class AssemblyQuestLoader num3 = 1; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = 128; + Span span92 = CollectionsMarshal.AsSpan(list92); + index3 = 0; + span92[index3] = 128; obj69.InTerritory = list92; skipConditions6.AetheryteShortcutIf = obj69; skipConditions6.AethernetShortcutIf = new SkipAetheryteCondition @@ -68242,22 +82241,26 @@ public static class AssemblyQuestLoader reference69 = obj68; obj67.Steps = list91; reference68 = obj67; - ref QuestSequence reference70 = ref span44[1]; + num++; + ref QuestSequence reference70 = ref span90[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1006516u, new Vector3(-82.68872f, 233.23743f, 317.1892f), 155) + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.Interact, 1006516u, new Vector3(-82.68872f, 233.23743f, 317.1892f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj70.Steps = list93; reference70 = obj70; - ref QuestSequence reference71 = ref span44[2]; + num++; + ref QuestSequence reference71 = ref span90[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -68265,7 +82268,9 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -68274,15 +82279,18 @@ public static class AssemblyQuestLoader }; obj71.Steps = list94; reference71 = obj71; - ref QuestSequence reference72 = ref span44[3]; + num++; + ref QuestSequence reference72 = ref span90[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -68300,15 +82308,18 @@ public static class AssemblyQuestLoader num = 2; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span45 = CollectionsMarshal.AsSpan(list96); - span45[0] = "liza"; - span45[1] = "Friendly"; + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + span96[index] = "liza"; + index++; + span96[index] = "Friendly"; questRoot12.Author = list96; - num = 4; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span46 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference73 = ref span46[0]; + index = 4; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + Span span97 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference73 = ref span97[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 @@ -68316,7 +82327,9 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span98[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -68329,22 +82342,26 @@ public static class AssemblyQuestLoader }; obj73.Steps = list98; reference73 = obj73; - ref QuestSequence reference74 = ref span46[1]; + num++; + ref QuestSequence reference74 = ref span97[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1006516u, new Vector3(-82.68872f, 233.23743f, 317.1892f), 155) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.Interact, 1006516u, new Vector3(-82.68872f, 233.23743f, 317.1892f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj74.Steps = list99; reference74 = obj74; - ref QuestSequence reference75 = ref span46[2]; + num++; + ref QuestSequence reference75 = ref span97[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 @@ -68352,7 +82369,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -68361,15 +82380,18 @@ public static class AssemblyQuestLoader }; obj75.Steps = list100; reference75 = obj75; - ref QuestSequence reference76 = ref span46[3]; + num++; + ref QuestSequence reference76 = ref span97[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -68382,15 +82404,18 @@ public static class AssemblyQuestLoader num = 2; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - Span span47 = CollectionsMarshal.AsSpan(list102); - span47[0] = "liza"; - span47[1] = "Friendly"; + Span span102 = CollectionsMarshal.AsSpan(list102); + index = 0; + span102[index] = "liza"; + index++; + span102[index] = "Friendly"; questRoot13.Author = list102; - num = 4; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span48 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference77 = ref span48[0]; + index = 4; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + Span span103 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference77 = ref span103[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -68398,7 +82423,9 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -68411,22 +82438,26 @@ public static class AssemblyQuestLoader }; obj77.Steps = list104; reference77 = obj77; - ref QuestSequence reference78 = ref span48[1]; + num++; + ref QuestSequence reference78 = ref span103[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1006516u, new Vector3(-82.68872f, 233.23743f, 317.1892f), 155) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.Interact, 1006516u, new Vector3(-82.68872f, 233.23743f, 317.1892f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj78.Steps = list105; reference78 = obj78; - ref QuestSequence reference79 = ref span48[2]; + num++; + ref QuestSequence reference79 = ref span103[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -68434,7 +82465,9 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -68443,15 +82476,18 @@ public static class AssemblyQuestLoader }; obj79.Steps = list106; reference79 = obj79; - ref QuestSequence reference80 = ref span48[3]; + num++; + ref QuestSequence reference80 = ref span103[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.CompleteQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; @@ -68464,15 +82500,18 @@ public static class AssemblyQuestLoader num = 2; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - Span span49 = CollectionsMarshal.AsSpan(list108); - span49[0] = "liza"; - span49[1] = "Friendly"; + Span span108 = CollectionsMarshal.AsSpan(list108); + index = 0; + span108[index] = "liza"; + index++; + span108[index] = "Friendly"; questRoot14.Author = list108; - num = 4; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span50 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference81 = ref span50[0]; + index = 4; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + Span span109 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference81 = ref span109[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -68480,7 +82519,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list110)[0]; + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + ref QuestStep reference82 = ref span110[index2]; QuestStep obj82 = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -68495,10 +82536,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = 128; + index3 = 1; + List list111 = new List(index3); + CollectionsMarshal.SetCount(list111, index3); + Span span111 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span111[num3] = 128; obj83.InTerritory = list111; skipConditions7.AetheryteShortcutIf = obj83; skipConditions7.AethernetShortcutIf = new SkipAetheryteCondition @@ -68509,16 +82552,18 @@ public static class AssemblyQuestLoader reference82 = obj82; obj81.Steps = list110; reference81 = obj81; - ref QuestSequence reference83 = ref span50[1]; + num++; + ref QuestSequence reference83 = ref span109[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span51 = CollectionsMarshal.AsSpan(list112); - ref QuestStep reference84 = ref span51[0]; + index2 = 3; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + ref QuestStep reference84 = ref span112[num2]; QuestStep obj85 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(123.6f, 31.6f, -768.8f), 156) { Fly = true, @@ -68529,7 +82574,9 @@ public static class AssemblyQuestLoader num3 = 1; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = 155; + Span span113 = CollectionsMarshal.AsSpan(list113); + index3 = 0; + span113[index3] = 155; skipStepConditions3.InTerritory = list113; skipStepConditions3.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions8.StepIf = skipStepConditions3; @@ -68537,16 +82584,19 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = 155; + index3 = 1; + List list114 = new List(index3); + CollectionsMarshal.SetCount(list114, index3); + Span span114 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span114[num3] = 155; obj86.InTerritory = list114; obj86.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions8.AetheryteShortcutIf = obj86; obj85.SkipConditions = skipConditions8; reference84 = obj85; - ref QuestStep reference85 = ref span51[1]; + num2++; + ref QuestStep reference85 = ref span112[num2]; QuestStep obj87 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.3f, 31.71f, -774.87f), 156) { TargetTerritoryId = (ushort)155 @@ -68556,13 +82606,16 @@ public static class AssemblyQuestLoader num3 = 1; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = 155; + Span span115 = CollectionsMarshal.AsSpan(list115); + index3 = 0; + span115[index3] = 155; skipStepConditions4.InTerritory = list115; skipStepConditions4.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions9.StepIf = skipStepConditions4; obj87.SkipConditions = skipConditions9; reference85 = obj87; - span51[2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) + num2++; + span112[num2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -68576,7 +82629,8 @@ public static class AssemblyQuestLoader }; obj84.Steps = list112; reference83 = obj84; - ref QuestSequence reference86 = ref span50[2]; + num++; + ref QuestSequence reference86 = ref span109[num]; QuestSequence obj88 = new QuestSequence { Sequence = 2 @@ -68584,7 +82638,9 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -68593,15 +82649,18 @@ public static class AssemblyQuestLoader }; obj88.Steps = list116; reference86 = obj88; - ref QuestSequence reference87 = ref span50[3]; + num++; + ref QuestSequence reference87 = ref span109[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -68619,15 +82678,18 @@ public static class AssemblyQuestLoader num = 2; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span52 = CollectionsMarshal.AsSpan(list118); - span52[0] = "liza"; - span52[1] = "Friendly"; + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "liza"; + index++; + span118[index] = "Friendly"; questRoot15.Author = list118; - num = 4; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span53 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference88 = ref span53[0]; + index = 4; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference88 = ref span119[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -68635,7 +82697,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -68648,16 +82712,18 @@ public static class AssemblyQuestLoader }; obj90.Steps = list120; reference88 = obj90; - ref QuestSequence reference89 = ref span53[1]; + num++; + ref QuestSequence reference89 = ref span119[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span54 = CollectionsMarshal.AsSpan(list121); - ref QuestStep reference90 = ref span54[0]; + index2 = 3; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + ref QuestStep reference90 = ref span121[num2]; QuestStep obj92 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(123.6f, 31.6f, -768.8f), 156) { Fly = true, @@ -68665,10 +82731,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = 155; + index3 = 1; + List list122 = new List(index3); + CollectionsMarshal.SetCount(list122, index3); + Span span122 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + span122[num3] = 155; skipStepConditions5.InTerritory = list122; skipStepConditions5.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions10.StepIf = skipStepConditions5; @@ -68679,29 +82747,35 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 155; + Span span123 = CollectionsMarshal.AsSpan(list123); + index3 = 0; + span123[index3] = 155; obj93.InTerritory = list123; obj93.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions10.AetheryteShortcutIf = obj93; obj92.SkipConditions = skipConditions10; reference90 = obj92; - ref QuestStep reference91 = ref span54[1]; + num2++; + ref QuestStep reference91 = ref span121[num2]; QuestStep obj94 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.3f, 31.71f, -774.87f), 156) { TargetTerritoryId = (ushort)155 }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = 155; + index3 = 1; + List list124 = new List(index3); + CollectionsMarshal.SetCount(list124, index3); + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span124[num3] = 155; skipStepConditions6.InTerritory = list124; skipStepConditions6.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions11.StepIf = skipStepConditions6; obj94.SkipConditions = skipConditions11; reference91 = obj94; - span54[2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) + num2++; + span121[num2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -68715,7 +82789,8 @@ public static class AssemblyQuestLoader }; obj91.Steps = list121; reference89 = obj91; - ref QuestSequence reference92 = ref span53[2]; + num++; + ref QuestSequence reference92 = ref span119[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 @@ -68723,7 +82798,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -68732,15 +82809,18 @@ public static class AssemblyQuestLoader }; obj95.Steps = list125; reference92 = obj95; - ref QuestSequence reference93 = ref span53[3]; + num++; + ref QuestSequence reference93 = ref span119[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -68753,15 +82833,18 @@ public static class AssemblyQuestLoader num = 2; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - Span span55 = CollectionsMarshal.AsSpan(list127); - span55[0] = "liza"; - span55[1] = "Friendly"; + Span span127 = CollectionsMarshal.AsSpan(list127); + index = 0; + span127[index] = "liza"; + index++; + span127[index] = "Friendly"; questRoot16.Author = list127; - num = 4; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - Span span56 = CollectionsMarshal.AsSpan(list128); - ref QuestSequence reference94 = ref span56[0]; + index = 4; + List list128 = new List(index); + CollectionsMarshal.SetCount(list128, index); + Span span128 = CollectionsMarshal.AsSpan(list128); + num = 0; + ref QuestSequence reference94 = ref span128[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -68769,7 +82852,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -68782,16 +82867,18 @@ public static class AssemblyQuestLoader }; obj97.Steps = list129; reference94 = obj97; - ref QuestSequence reference95 = ref span56[1]; + num++; + ref QuestSequence reference95 = ref span128[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span57 = CollectionsMarshal.AsSpan(list130); - ref QuestStep reference96 = ref span57[0]; + index2 = 3; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + ref QuestStep reference96 = ref span130[num2]; QuestStep obj99 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(123.6f, 31.6f, -768.8f), 156) { Fly = true, @@ -68802,7 +82889,9 @@ public static class AssemblyQuestLoader num3 = 1; List list131 = new List(num3); CollectionsMarshal.SetCount(list131, num3); - CollectionsMarshal.AsSpan(list131)[0] = 155; + Span span131 = CollectionsMarshal.AsSpan(list131); + index3 = 0; + span131[index3] = 155; skipStepConditions7.InTerritory = list131; skipStepConditions7.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions12.StepIf = skipStepConditions7; @@ -68810,16 +82899,19 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = 155; + index3 = 1; + List list132 = new List(index3); + CollectionsMarshal.SetCount(list132, index3); + Span span132 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span132[num3] = 155; obj100.InTerritory = list132; obj100.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions12.AetheryteShortcutIf = obj100; obj99.SkipConditions = skipConditions12; reference96 = obj99; - ref QuestStep reference97 = ref span57[1]; + num2++; + ref QuestStep reference97 = ref span130[num2]; QuestStep obj101 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.3f, 31.71f, -774.87f), 156) { TargetTerritoryId = (ushort)155 @@ -68829,13 +82921,16 @@ public static class AssemblyQuestLoader num3 = 1; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = 155; + Span span133 = CollectionsMarshal.AsSpan(list133); + index3 = 0; + span133[index3] = 155; skipStepConditions8.InTerritory = list133; skipStepConditions8.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions13.StepIf = skipStepConditions8; obj101.SkipConditions = skipConditions13; reference97 = obj101; - span57[2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) + num2++; + span130[num2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -68849,7 +82944,8 @@ public static class AssemblyQuestLoader }; obj98.Steps = list130; reference95 = obj98; - ref QuestSequence reference98 = ref span56[2]; + num++; + ref QuestSequence reference98 = ref span128[num]; QuestSequence obj102 = new QuestSequence { Sequence = 2 @@ -68857,7 +82953,9 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span134[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -68866,15 +82964,18 @@ public static class AssemblyQuestLoader }; obj102.Steps = list134; reference98 = obj102; - ref QuestSequence reference99 = ref span56[3]; + num++; + ref QuestSequence reference99 = ref span128[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span135[num2] = new QuestStep(EInteractionType.CompleteQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; @@ -68887,12 +82988,16 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - CollectionsMarshal.AsSpan(list136)[0] = "Cacahuetes"; + Span span136 = CollectionsMarshal.AsSpan(list136); + index = 0; + span136[index] = "Cacahuetes"; questRoot17.Author = list136; - num = 1; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - ref QuestSequence reference100 = ref CollectionsMarshal.AsSpan(list137)[0]; + index = 1; + List list137 = new List(index); + CollectionsMarshal.SetCount(list137, index); + Span span137 = CollectionsMarshal.AsSpan(list137); + num = 0; + ref QuestSequence reference100 = ref span137[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -68900,8 +83005,9 @@ public static class AssemblyQuestLoader num2 = 2; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span58 = CollectionsMarshal.AsSpan(list138); - ref QuestStep reference101 = ref span58[0]; + Span span138 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + ref QuestStep reference101 = ref span138[index2]; QuestStep obj105 = new QuestStep(EInteractionType.Interact, 1000859u, new Vector3(-166.76587f, 4.5496645f, 150.04187f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -68911,17 +83017,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - num3 = 1; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - CollectionsMarshal.AsSpan(list139)[0] = new DialogueChoice + index3 = 1; + List list139 = new List(index3); + CollectionsMarshal.SetCount(list139, index3); + Span span139 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span139[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSFSH001_01134_Q1_000_1") }; obj105.DialogueChoices = list139; reference101 = obj105; - span58[1] = new QuestStep(EInteractionType.AcceptQuest, 1000859u, new Vector3(-166.76587f, 4.5496645f, 150.04187f), 129); + index2++; + span138[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000859u, new Vector3(-166.76587f, 4.5496645f, 150.04187f), 129); obj104.Steps = list138; reference100 = obj104; questRoot17.QuestSequence = list137; @@ -68932,18 +83041,19 @@ public static class AssemblyQuestLoader { QuestId questId = new QuestId(1157); QuestRoot questRoot = new QuestRoot(); - int num = 2; + int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - span[0] = "JerryWester"; - span[1] = "Wigglez"; + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); Span span2 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span2[0]; + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -68952,7 +83062,8 @@ public static class AssemblyQuestLoader List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); Span span3 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference2 = ref span3[0]; + int num3 = 0; + ref QuestStep reference2 = ref span3[num3]; QuestStep obj2 = new QuestStep(EInteractionType.UseItem, null, null, 146) { TargetTerritoryId = (ushort)140, @@ -68960,173 +83071,183 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - int num3 = 1; - List list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = 212; + int num4 = 1; + List list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); + Span span4 = CollectionsMarshal.AsSpan(list4); + int index2 = 0; + span4[index2] = 212; skipStepConditions.InTerritory = list4; skipConditions.StepIf = skipStepConditions; obj2.SkipConditions = skipConditions; reference2 = obj2; - ref QuestStep reference3 = ref span3[1]; + num3++; + ref QuestStep reference3 = ref span3[num3]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 212; + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num4 = 0; + span5[num4] = 212; skipStepConditions2.InTerritory = list5; skipConditions2.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions2; reference3 = questStep; - ref QuestStep reference4 = ref span3[2]; + num3++; + ref QuestStep reference4 = ref span3[num3]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = 212; + num4 = 1; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = 212; skipStepConditions3.InTerritory = list6; skipConditions3.StepIf = skipStepConditions3; obj3.SkipConditions = skipConditions3; reference4 = obj3; - span3[3] = new QuestStep(EInteractionType.AcceptQuest, 1007531u, new Vector3(0.16778564f, -3.0000012f, -52.71997f), 212); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1007531u, new Vector3(0.16778564f, -3.0000012f, -52.71997f), 212); obj.Steps = list3; reference = obj; - ref QuestSequence reference5 = ref span2[1]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + num3 = 1; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj4.Steps = list7; reference5 = obj4; - ref QuestSequence reference6 = ref span2[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; + num2 = 2; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span4 = CollectionsMarshal.AsSpan(list8); - ref QuestStep reference7 = ref span4[0]; - QuestStep obj6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(649.43243f, 290.48322f, 175.73515f), 155) + Span span8 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + span8[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(649.43243f, 290.48322f, 175.73515f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - SkipConditions skipConditions4 = new SkipConditions(); - SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = 155; - skipStepConditions4.InTerritory = list9; - skipConditions4.StepIf = skipStepConditions4; - obj6.SkipConditions = skipConditions4; - reference7 = obj6; - span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(640.5904f, 287.48422f, 175.69055f), 155) - { - Fly = true - }; - span4[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(640.5904f, 287.48422f, 175.69055f), 155) - { - Mount = false - }; - span4[3] = new QuestStep(EInteractionType.CompleteQuest, 2002582u, new Vector3(649.7748f, 292.4391f, 175.34143f), 155); + num3++; + span8[num3] = new QuestStep(EInteractionType.CompleteQuest, 2002582u, new Vector3(649.7748f, 292.4391f, 175.34143f), 155); obj5.Steps = list8; reference6 = obj5; questRoot.QuestSequence = list2; AddQuest(questId, questRoot); QuestId questId2 = new QuestId(1158); QuestRoot questRoot2 = new QuestRoot(); - num = 2; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span5 = CollectionsMarshal.AsSpan(list10); - span5[0] = "JerryWester"; - span5[1] = "Wigglez"; - questRoot2.Author = list10; - num = 3; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - Span span6 = CollectionsMarshal.AsSpan(list11); - ref QuestSequence reference8 = ref span6[0]; - QuestSequence obj7 = new QuestSequence + num = 1; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "JerryWester"; + questRoot2.Author = list9; + index = 3; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span10[num]; + QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 4; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - Span span7 = CollectionsMarshal.AsSpan(list12); - ref QuestStep reference9 = ref span7[0]; - QuestStep obj8 = new QuestStep(EInteractionType.UseItem, null, null, 146) + num3 = 4; + List list11 = new List(num3); + CollectionsMarshal.SetCount(list11, num3); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference8 = ref span11[num2]; + QuestStep obj7 = new QuestStep(EInteractionType.UseItem, null, null, 146) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; + SkipConditions skipConditions4 = new SkipConditions(); + SkipStepConditions skipStepConditions4 = new SkipStepConditions(); + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span12[num4] = 212; + skipStepConditions4.InTerritory = list12; + skipConditions4.StepIf = skipStepConditions4; + obj7.SkipConditions = skipConditions4; + reference8 = obj7; + num2++; + ref QuestStep reference9 = ref span11[num2]; + QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 212; + num4 = 1; + List list13 = new List(num4); + CollectionsMarshal.SetCount(list13, num4); + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = 212; skipStepConditions5.InTerritory = list13; skipConditions5.StepIf = skipStepConditions5; - obj8.SkipConditions = skipConditions5; - reference9 = obj8; - ref QuestStep reference10 = ref span7[1]; - QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - SkipConditions skipConditions6 = new SkipConditions(); - SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = 212; - skipStepConditions6.InTerritory = list14; - skipConditions6.StepIf = skipStepConditions6; - questStep2.SkipConditions = skipConditions6; - reference10 = questStep2; - ref QuestStep reference11 = ref span7[2]; - QuestStep obj9 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + questStep2.SkipConditions = skipConditions5; + reference9 = questStep2; + num2++; + ref QuestStep reference10 = ref span11[num2]; + QuestStep obj8 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - SkipConditions skipConditions7 = new SkipConditions(); - SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 1; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - CollectionsMarshal.AsSpan(list15)[0] = 212; - skipStepConditions7.InTerritory = list15; - skipConditions7.StepIf = skipStepConditions7; - obj9.SkipConditions = skipConditions7; - reference11 = obj9; - span7[3] = new QuestStep(EInteractionType.AcceptQuest, 1007533u, new Vector3(-0.80877686f, -3f, -47.80658f), 212); - obj7.Steps = list12; - reference8 = obj7; - ref QuestSequence reference12 = ref span6[1]; - QuestSequence obj10 = new QuestSequence + SkipConditions skipConditions6 = new SkipConditions(); + SkipStepConditions skipStepConditions6 = new SkipStepConditions(); + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num4 = 0; + span14[num4] = 212; + skipStepConditions6.InTerritory = list14; + skipConditions6.StepIf = skipStepConditions6; + obj8.SkipConditions = skipConditions6; + reference10 = obj8; + num2++; + span11[num2] = new QuestStep(EInteractionType.AcceptQuest, 1007533u, new Vector3(-0.80877686f, -3f, -47.80658f), 212); + obj6.Steps = list11; + reference7 = obj6; + num++; + ref QuestSequence reference11 = ref span10[num]; + QuestSequence obj9 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span15[num3] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -69135,307 +83256,352 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - obj10.Steps = list16; - reference12 = obj10; - ref QuestSequence reference13 = ref span6[2]; - QuestSequence obj11 = new QuestSequence + obj9.Steps = list15; + reference11 = obj9; + num++; + ref QuestSequence reference12 = ref span10[num]; + QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 12; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - Span span8 = CollectionsMarshal.AsSpan(list17); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(287.2875f, 41.545933f, -200.75758f), 139) + num3 = 11; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(287.2875f, 41.545933f, -200.75758f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span8[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(285.82883f, 42.26685f, -203.32939f), 139) + num2++; + span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(285.82883f, 42.26685f, -203.32939f), 139) { TargetTerritoryId = (ushort)180 }; - span8[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.35803f, 64.464615f, -217.34372f), 180) + num2++; + span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.35803f, 64.464615f, -217.34372f), 180) { Fly = true }; - span8[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 180) + num2++; + span16[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 180) { Aetheryte = EAetheryteLocation.OuterLaNosceaCampOverlook }; - span8[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.55255f, 59.83099f, -516.4647f), 180) + num2++; + span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.55255f, 59.83099f, -516.4647f), 180) { Fly = true }; - span8[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.7023f, 28.568699f, -611.7063f), 180) + num2++; + span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.7023f, 28.568699f, -611.7063f), 180) { Fly = true }; - span8[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(84.102905f, 28.170393f, -716.35504f), 180) + num2++; + span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(84.102905f, 28.170393f, -716.35504f), 180) { Fly = true }; - span8[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) + num2++; + span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) { Fly = true }; - span8[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) + num2++; + span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) { Fly = true }; - span8[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) + num2++; + span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) { Fly = true }; - ref QuestStep reference14 = ref span8[10]; - QuestStep obj12 = new QuestStep(EInteractionType.Combat, null, new Vector3(144.05684f, 26.19276f, -625.1859f), 180) - { - DelaySecondsAtStart = 2f, - EnemySpawnType = EEnemySpawnType.FinishCombatIfAny - }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = 758u; - obj12.KillEnemyDataIds = list18; - reference14 = obj12; - span8[11] = new QuestStep(EInteractionType.CompleteQuest, 2002583u, new Vector3(144.39612f, 29.037842f, -622.4918f), 180); - obj11.Steps = list17; - reference13 = obj11; - questRoot2.QuestSequence = list11; + num2++; + span16[num2] = new QuestStep(EInteractionType.CompleteQuest, 2002583u, new Vector3(144.39612f, 29.037842f, -622.4918f), 180); + obj10.Steps = list16; + reference12 = obj10; + questRoot2.QuestSequence = list10; AddQuest(questId2, questRoot2); QuestId questId3 = new QuestId(1159); QuestRoot questRoot3 = new QuestRoot(); num = 1; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "liza"; - questRoot3.Author = list19; + List list17 = new List(num); + CollectionsMarshal.SetCount(list17, num); + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "liza"; + questRoot3.Author = list17; questRoot3.Comment = "Only Turn 5 is required for the next quest to unlock"; - num = 4; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span9 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference15 = ref span9[0]; - QuestSequence obj13 = new QuestSequence + index = 4; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span18[num]; + QuestSequence obj11 = new QuestSequence { Sequence = 0 }; num2 = 4; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - Span span10 = CollectionsMarshal.AsSpan(list21); - ref QuestStep reference16 = ref span10[0]; - QuestStep obj14 = new QuestStep(EInteractionType.UseItem, null, null, 132) + List list19 = new List(num2); + CollectionsMarshal.SetCount(list19, num2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + ref QuestStep reference14 = ref span19[num3]; + QuestStep obj12 = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; + SkipConditions skipConditions7 = new SkipConditions(); + SkipStepConditions skipStepConditions7 = new SkipStepConditions(); + num4 = 2; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = 140; + index2++; + span20[index2] = 212; + skipStepConditions7.InTerritory = list20; + skipConditions7.StepIf = skipStepConditions7; + obj12.SkipConditions = skipConditions7; + reference14 = obj12; + num3++; + ref QuestStep reference15 = ref span19[num3]; + QuestStep questStep3 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 2; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span11 = CollectionsMarshal.AsSpan(list22); - span11[0] = 140; - span11[1] = 212; - skipStepConditions8.InTerritory = list22; + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span21[num4] = 212; + skipStepConditions8.InTerritory = list21; skipConditions8.StepIf = skipStepConditions8; - obj14.SkipConditions = skipConditions8; - reference16 = obj14; - ref QuestStep reference17 = ref span10[1]; - QuestStep questStep3 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - SkipConditions skipConditions9 = new SkipConditions(); - SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = 212; - skipStepConditions9.InTerritory = list23; - skipConditions9.StepIf = skipStepConditions9; - questStep3.SkipConditions = skipConditions9; - reference17 = questStep3; - ref QuestStep reference18 = ref span10[2]; - QuestStep obj15 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + questStep3.SkipConditions = skipConditions8; + reference15 = questStep3; + num3++; + ref QuestStep reference16 = ref span19[num3]; + QuestStep obj13 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - SkipConditions skipConditions10 = new SkipConditions(); - SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = 212; - skipStepConditions10.InTerritory = list24; - skipConditions10.StepIf = skipStepConditions10; - obj15.SkipConditions = skipConditions10; - reference18 = obj15; - span10[3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - obj13.Steps = list21; - reference15 = obj13; - ref QuestSequence reference19 = ref span9[1]; - QuestSequence obj16 = new QuestSequence + SkipConditions skipConditions9 = new SkipConditions(); + SkipStepConditions skipStepConditions9 = new SkipStepConditions(); + num4 = 1; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = 212; + skipStepConditions9.InTerritory = list22; + skipConditions9.StepIf = skipStepConditions9; + obj13.SkipConditions = skipConditions9; + reference16 = obj13; + num3++; + span19[num3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + obj11.Steps = list19; + reference13 = obj11; + num++; + ref QuestSequence reference17 = ref span18[num]; + QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1007685u, new Vector3(-18.539795f, 70.50106f, 17.746216f), 137) + num3 = 1; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.Interact, 1007685u, new Vector3(-18.539795f, 70.50106f, 17.746216f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - obj16.Steps = list25; - reference19 = obj16; - ref QuestSequence reference20 = ref span9[2]; - QuestSequence obj17 = new QuestSequence + obj14.Steps = list23; + reference17 = obj14; + num++; + ref QuestSequence reference18 = ref span18[num]; + QuestSequence obj15 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - Span span12 = CollectionsMarshal.AsSpan(list26); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(358.13956f, 76.42267f, -98.75324f), 137) + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span24[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(358.13956f, 76.42267f, -98.75324f), 137) { Fly = true }; - span12[1] = new QuestStep(EInteractionType.Interact, 2002609u, new Vector3(356.98486f, 77.71411f, -99.83978f), 137); - obj17.Steps = list26; - reference20 = obj17; - ref QuestSequence reference21 = ref span9[3]; - QuestSequence obj18 = new QuestSequence + num3++; + span24[num3] = new QuestStep(EInteractionType.Interact, 2002609u, new Vector3(356.98486f, 77.71411f, -99.83978f), 137); + obj15.Steps = list24; + reference18 = obj15; + num++; + ref QuestSequence reference19 = ref span18[num]; + QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007627u, new Vector3(13.260071f, 65.04303f, 43.808594f), 137) + num3 = 1; + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007627u, new Vector3(13.260071f, 65.04303f, 43.808594f), 137) { Fly = true, NextQuestId = new QuestId(1160) }; - obj18.Steps = list27; - reference21 = obj18; - questRoot3.QuestSequence = list20; + obj16.Steps = list25; + reference19 = obj16; + questRoot3.QuestSequence = list18; AddQuest(questId3, questRoot3); QuestId questId4 = new QuestId(1160); QuestRoot questRoot4 = new QuestRoot(); num = 1; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; - questRoot4.Author = list28; - num = 2; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span13 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference22 = ref span13[0]; - QuestSequence obj19 = new QuestSequence + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + Span span26 = CollectionsMarshal.AsSpan(list26); + index = 0; + span26[index] = "liza"; + questRoot4.Author = list26; + index = 2; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + Span span27 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span27[num]; + QuestSequence obj17 = new QuestSequence { Sequence = 0 }; num2 = 4; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - Span span14 = CollectionsMarshal.AsSpan(list30); - ref QuestStep reference23 = ref span14[0]; - QuestStep obj20 = new QuestStep(EInteractionType.UseItem, null, null, 132) + List list28 = new List(num2); + CollectionsMarshal.SetCount(list28, num2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + ref QuestStep reference21 = ref span28[num3]; + QuestStep obj18 = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; + SkipConditions skipConditions10 = new SkipConditions(); + SkipStepConditions skipStepConditions10 = new SkipStepConditions(); + index2 = 2; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span29[num4] = 140; + num4++; + span29[num4] = 212; + skipStepConditions10.InTerritory = list29; + skipConditions10.StepIf = skipStepConditions10; + obj18.SkipConditions = skipConditions10; + reference21 = obj18; + num3++; + ref QuestStep reference22 = ref span28[num3]; + QuestStep questStep4 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - num3 = 2; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span15 = CollectionsMarshal.AsSpan(list31); - span15[0] = 140; - span15[1] = 212; - skipStepConditions11.InTerritory = list31; + num4 = 1; + List list30 = new List(num4); + CollectionsMarshal.SetCount(list30, num4); + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = 212; + skipStepConditions11.InTerritory = list30; skipConditions11.StepIf = skipStepConditions11; - obj20.SkipConditions = skipConditions11; - reference23 = obj20; - ref QuestStep reference24 = ref span14[1]; - QuestStep questStep4 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - SkipConditions skipConditions12 = new SkipConditions(); - SkipStepConditions skipStepConditions12 = new SkipStepConditions(); - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = 212; - skipStepConditions12.InTerritory = list32; - skipConditions12.StepIf = skipStepConditions12; - questStep4.SkipConditions = skipConditions12; - reference24 = questStep4; - ref QuestStep reference25 = ref span14[2]; - QuestStep obj21 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + questStep4.SkipConditions = skipConditions11; + reference22 = questStep4; + num3++; + ref QuestStep reference23 = ref span28[num3]; + QuestStep obj19 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - SkipConditions skipConditions13 = new SkipConditions(); - SkipStepConditions skipStepConditions13 = new SkipStepConditions(); - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = 212; - skipStepConditions13.InTerritory = list33; - skipConditions13.StepIf = skipStepConditions13; - obj21.SkipConditions = skipConditions13; - reference25 = obj21; - ref QuestStep reference26 = ref span14[3]; + SkipConditions skipConditions12 = new SkipConditions(); + SkipStepConditions skipStepConditions12 = new SkipStepConditions(); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + span31[num4] = 212; + skipStepConditions12.InTerritory = list31; + skipConditions12.StepIf = skipStepConditions12; + obj19.SkipConditions = skipConditions12; + reference23 = obj19; + num3++; + ref QuestStep reference24 = ref span28[num3]; QuestStep questStep5 = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - num3 = 1; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - CollectionsMarshal.AsSpan(list34)[0] = new DialogueChoice + num4 = 1; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSD102_01160_Q1_000_000"), Yes = false }; - questStep5.DialogueChoices = list34; - reference26 = questStep5; - obj19.Steps = list30; - reference22 = obj19; - ref QuestSequence reference27 = ref span13[1]; - QuestSequence obj22 = new QuestSequence + questStep5.DialogueChoices = list32; + reference24 = questStep5; + obj17.Steps = list28; + reference20 = obj17; + num++; + ref QuestSequence reference25 = ref span27[num]; + QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007684u, new Vector3(-2.975586f, -3.000001f, -55.10034f), 212) + num3 = 1; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007684u, new Vector3(-2.975586f, -3.000001f, -55.10034f), 212) { NextQuestId = new QuestId(1313) }; - obj22.Steps = list35; - reference27 = obj22; - questRoot4.QuestSequence = list29; + obj20.Steps = list33; + reference25 = obj20; + questRoot4.QuestSequence = list27; AddQuest(questId4, questRoot4); QuestId questId5 = new QuestId(1162); QuestRoot questRoot5 = new QuestRoot(); num = 1; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; - questRoot5.Author = list36; - num = 6; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span16 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference28 = ref span16[0]; - QuestSequence obj23 = new QuestSequence + List list34 = new List(num); + CollectionsMarshal.SetCount(list34, num); + Span span34 = CollectionsMarshal.AsSpan(list34); + index = 0; + span34[index] = "liza"; + questRoot5.Author = list34; + index = 6; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + Span span35 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference26 = ref span35[num]; + QuestSequence obj21 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002754u, new Vector3(-219.22644f, 20.923328f, 338.4298f), 153) + List list36 = new List(num2); + CollectionsMarshal.SetCount(list36, num2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span36[num3] = new QuestStep(EInteractionType.AcceptQuest, 1002754u, new Vector3(-219.22644f, 20.923328f, 338.4298f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, SkipConditions = new SkipConditions @@ -69446,44 +83612,53 @@ public static class AssemblyQuestLoader } } }; - obj23.Steps = list38; - reference28 = obj23; - ref QuestSequence reference29 = ref span16[1]; - QuestSequence obj24 = new QuestSequence + obj21.Steps = list36; + reference26 = obj21; + num++; + ref QuestSequence reference27 = ref span35[num]; + QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148) + num3 = 1; + List list37 = new List(num3); + CollectionsMarshal.SetCount(list37, num3); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - obj24.Steps = list39; - reference29 = obj24; - ref QuestSequence reference30 = ref span16[2]; - QuestSequence obj25 = new QuestSequence + obj22.Steps = list37; + reference27 = obj22; + num++; + ref QuestSequence reference28 = ref span35[num]; + QuestSequence obj23 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 2001467u, new Vector3(-44.419067f, 1.4190674f, -36.850586f), 148); - obj25.Steps = list40; - reference30 = obj25; - ref QuestSequence reference31 = ref span16[3]; - QuestSequence obj26 = new QuestSequence + List list38 = new List(num2); + CollectionsMarshal.SetCount(list38, num2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = new QuestStep(EInteractionType.Interact, 2001467u, new Vector3(-44.419067f, 1.4190674f, -36.850586f), 148); + obj23.Steps = list38; + reference28 = obj23; + num++; + ref QuestSequence reference29 = ref span35[num]; + QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span17 = CollectionsMarshal.AsSpan(list41); - span17[0] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); - span17[1] = new QuestStep(EInteractionType.PurchaseItem, 1000220u, new Vector3(16.189758f, -8.010209f, -15.640564f), 148) + num3 = 2; + List list39 = new List(num3); + CollectionsMarshal.SetCount(list39, num3); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + num2++; + span39[num2] = new QuestStep(EInteractionType.PurchaseItem, 1000220u, new Vector3(16.189758f, -8.010209f, -15.640564f), 148) { ItemId = 4868u, ItemCount = 1, @@ -69500,118 +83675,139 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262773u) } }; - obj26.Steps = list41; - reference31 = obj26; - ref QuestSequence reference32 = ref span16[4]; - QuestSequence obj27 = new QuestSequence + obj24.Steps = list39; + reference29 = obj24; + num++; + ref QuestSequence reference30 = ref span35[num]; + QuestSequence obj25 = new QuestSequence { Sequence = 4 }; num2 = 2; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - Span span18 = CollectionsMarshal.AsSpan(list42); - span18[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-230.51279f, 57.95885f, -84.411194f), 148) + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span40[num3] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-230.51279f, 57.95885f, -84.411194f), 148) { Fly = true, ItemId = 4868u }; - ref QuestStep reference33 = ref span18[1]; - QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(-230.51279f, 57.95885f, -84.411194f), 148) + num3++; + ref QuestStep reference31 = ref span40[num3]; + QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(-230.51279f, 57.95885f, -84.411194f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new ComplexCombatData + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num4 = 0; + span41[num4] = new ComplexCombatData { DataId = 178u, MinimumKillCount = 3u }; - obj28.ComplexCombatData = list43; - reference33 = obj28; - obj27.Steps = list42; - reference32 = obj27; - ref QuestSequence reference34 = ref span16[5]; - QuestSequence obj29 = new QuestSequence + obj26.ComplexCombatData = list41; + reference31 = obj26; + obj25.Steps = list40; + reference30 = obj25; + num++; + ref QuestSequence reference32 = ref span35[num]; + QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); - obj29.Steps = list44; - reference34 = obj29; - questRoot5.QuestSequence = list37; + num3 = 1; + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + obj27.Steps = list42; + reference32 = obj27; + questRoot5.QuestSequence = list35; AddQuest(questId5, questRoot5); QuestId questId6 = new QuestId(1175); QuestRoot questRoot6 = new QuestRoot(); num = 1; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "JerryWester"; - questRoot6.Author = list45; - num = 3; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span19 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference35 = ref span19[0]; - QuestSequence obj30 = new QuestSequence + List list43 = new List(num); + CollectionsMarshal.SetCount(list43, num); + Span span43 = CollectionsMarshal.AsSpan(list43); + index = 0; + span43[index] = "JerryWester"; + questRoot6.Author = list43; + index = 3; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + Span span44 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference33 = ref span44[num]; + QuestSequence obj28 = new QuestSequence { Sequence = 0 }; num2 = 5; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span20 = CollectionsMarshal.AsSpan(list47); - ref QuestStep reference36 = ref span20[0]; - QuestStep obj31 = new QuestStep(EInteractionType.UseItem, null, null, 132) + List list45 = new List(num2); + CollectionsMarshal.SetCount(list45, num2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + ref QuestStep reference34 = ref span45[num3]; + QuestStep obj29 = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; + SkipConditions skipConditions13 = new SkipConditions(); + SkipStepConditions skipStepConditions13 = new SkipStepConditions(); + num4 = 2; + List list46 = new List(num4); + CollectionsMarshal.SetCount(list46, num4); + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = 140; + index2++; + span46[index2] = 212; + skipStepConditions13.InTerritory = list46; + skipConditions13.StepIf = skipStepConditions13; + obj29.SkipConditions = skipConditions13; + reference34 = obj29; + num3++; + ref QuestStep reference35 = ref span45[num3]; + QuestStep questStep6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions14 = new SkipConditions(); SkipStepConditions skipStepConditions14 = new SkipStepConditions(); - num3 = 2; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - Span span21 = CollectionsMarshal.AsSpan(list48); - span21[0] = 140; - span21[1] = 212; - skipStepConditions14.InTerritory = list48; + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num4 = 0; + span47[num4] = 212; + skipStepConditions14.InTerritory = list47; skipConditions14.StepIf = skipStepConditions14; - obj31.SkipConditions = skipConditions14; - reference36 = obj31; - ref QuestStep reference37 = ref span20[1]; - QuestStep questStep6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - SkipConditions skipConditions15 = new SkipConditions(); - SkipStepConditions skipStepConditions15 = new SkipStepConditions(); - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = 212; - skipStepConditions15.InTerritory = list49; - skipConditions15.StepIf = skipStepConditions15; - questStep6.SkipConditions = skipConditions15; - reference37 = questStep6; - ref QuestStep reference38 = ref span20[2]; - QuestStep obj32 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + questStep6.SkipConditions = skipConditions14; + reference35 = questStep6; + num3++; + ref QuestStep reference36 = ref span45[num3]; + QuestStep obj30 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - SkipConditions skipConditions16 = new SkipConditions(); - SkipStepConditions skipStepConditions16 = new SkipStepConditions(); - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = 212; - skipStepConditions16.InTerritory = list50; - skipConditions16.StepIf = skipStepConditions16; - obj32.SkipConditions = skipConditions16; - reference38 = obj32; - span20[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + SkipConditions skipConditions15 = new SkipConditions(); + SkipStepConditions skipStepConditions15 = new SkipStepConditions(); + num4 = 1; + List list48 = new List(num4); + CollectionsMarshal.SetCount(list48, num4); + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = 212; + skipStepConditions15.InTerritory = list48; + skipConditions15.StepIf = skipStepConditions15; + obj30.SkipConditions = skipConditions15; + reference36 = obj30; + num3++; + span45[num3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212, SkipConditions = new SkipConditions @@ -69622,23 +83818,27 @@ public static class AssemblyQuestLoader } } }; - span20[4] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); - obj30.Steps = list47; - reference35 = obj30; - ref QuestSequence reference39 = ref span19[1]; - QuestSequence obj33 = new QuestSequence + num3++; + span45[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj28.Steps = list45; + reference33 = obj28; + num++; + ref QuestSequence reference37 = ref span44[num]; + QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - Span span22 = CollectionsMarshal.AsSpan(list51); - span22[0] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212) + num3 = 7; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212) { PickUpQuestId = new QuestId(1047) }; - span22[1] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.50043f, 2.099999f, 0f), 212) + num2++; + span49[num2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.50043f, 2.099999f, 0f), 212) { TargetTerritoryId = (ushort)212, SkipConditions = new SkipConditions @@ -69649,117 +83849,160 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference40 = ref span22[2]; + num2++; + ref QuestStep reference38 = ref span49[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1007533u, new Vector3(-0.80877686f, -3f, -47.80658f), 212); - num3 = 6; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span23 = CollectionsMarshal.AsSpan(list52); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep7.CompletionQuestVariablesFlags = list52; - reference40 = questStep7; - ref QuestStep reference41 = ref span22[3]; + index2 = 6; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num4 = 0; + span50[num4] = null; + num4++; + span50[num4] = null; + num4++; + span50[num4] = null; + num4++; + span50[num4] = null; + num4++; + span50[num4] = null; + num4++; + span50[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep7.CompletionQuestVariablesFlags = list50; + reference38 = questStep7; + num2++; + ref QuestStep reference39 = ref span49[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1007534u, new Vector3(1.4800415f, -3.0000014f, -48.722107f), 212); - num3 = 6; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - Span span24 = CollectionsMarshal.AsSpan(list53); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep8.CompletionQuestVariablesFlags = list53; - reference41 = questStep8; - ref QuestStep reference42 = ref span22[4]; - QuestStep obj34 = new QuestStep(EInteractionType.Interact, 1007531u, new Vector3(0.16778564f, -3.0000012f, -52.71997f), 212) + num4 = 6; + List list51 = new List(num4); + CollectionsMarshal.SetCount(list51, num4); + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = null; + index2++; + span51[index2] = null; + index2++; + span51[index2] = null; + index2++; + span51[index2] = null; + index2++; + span51[index2] = null; + index2++; + span51[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep8.CompletionQuestVariablesFlags = list51; + reference39 = questStep8; + num2++; + ref QuestStep reference40 = ref span49[num2]; + QuestStep obj32 = new QuestStep(EInteractionType.Interact, 1007531u, new Vector3(0.16778564f, -3.0000012f, -52.71997f), 212) { StopDistance = 7f }; - num3 = 6; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span25 = CollectionsMarshal.AsSpan(list54); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj34.CompletionQuestVariablesFlags = list54; - reference42 = obj34; - ref QuestStep reference43 = ref span22[5]; - QuestStep obj35 = new QuestStep(EInteractionType.Interact, 1007530u, new Vector3(1.296936f, -3.0000012f, -52.262207f), 212) + index2 = 6; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num4 = 0; + span52[num4] = null; + num4++; + span52[num4] = null; + num4++; + span52[num4] = null; + num4++; + span52[num4] = null; + num4++; + span52[num4] = null; + num4++; + span52[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj32.CompletionQuestVariablesFlags = list52; + reference40 = obj32; + num2++; + ref QuestStep reference41 = ref span49[num2]; + QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1007530u, new Vector3(1.296936f, -3.0000012f, -52.262207f), 212) { StopDistance = 7f }; - num3 = 6; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - Span span26 = CollectionsMarshal.AsSpan(list55); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - obj35.CompletionQuestVariablesFlags = list55; - reference43 = obj35; - ref QuestStep reference44 = ref span22[6]; + num4 = 6; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = null; + index2++; + span53[index2] = null; + index2++; + span53[index2] = null; + index2++; + span53[index2] = null; + index2++; + span53[index2] = null; + index2++; + span53[index2] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + obj33.CompletionQuestVariablesFlags = list53; + reference41 = obj33; + num2++; + ref QuestStep reference42 = ref span49[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - num3 = 6; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - Span span27 = CollectionsMarshal.AsSpan(list56); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - questStep9.CompletionQuestVariablesFlags = list56; - reference44 = questStep9; - obj33.Steps = list51; - reference39 = obj33; - ref QuestSequence reference45 = ref span19[2]; - QuestSequence obj36 = new QuestSequence + index2 = 6; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span54[num4] = null; + num4++; + span54[num4] = null; + num4++; + span54[num4] = null; + num4++; + span54[num4] = null; + num4++; + span54[num4] = null; + num4++; + span54[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + questStep9.CompletionQuestVariablesFlags = list54; + reference42 = questStep9; + obj31.Steps = list49; + reference37 = obj31; + num++; + ref QuestSequence reference43 = ref span44[num]; + QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007722u, new Vector3(2.4871826f, 5.1752613E-07f, 4.5929565f), 212); - obj36.Steps = list57; - reference45 = obj36; - questRoot6.QuestSequence = list46; + List list55 = new List(num2); + CollectionsMarshal.SetCount(list55, num2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span55[num3] = new QuestStep(EInteractionType.CompleteQuest, 1007722u, new Vector3(2.4871826f, 5.1752613E-07f, 4.5929565f), 212); + obj34.Steps = list55; + reference43 = obj34; + questRoot6.QuestSequence = list44; AddQuest(questId6, questRoot6); QuestId questId7 = new QuestId(1189); QuestRoot questRoot7 = new QuestRoot(); num = 1; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "JerryWester"; - questRoot7.Author = list58; - num = 3; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span28 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference46 = ref span28[0]; - QuestSequence obj37 = new QuestSequence + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + Span span56 = CollectionsMarshal.AsSpan(list56); + index = 0; + span56[index] = "JerryWester"; + questRoot7.Author = list56; + index = 3; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + Span span57 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference44 = ref span57[num]; + QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + num3 = 1; + List list58 = new List(num3); + CollectionsMarshal.SetCount(list58, num3); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -69770,80 +84013,96 @@ public static class AssemblyQuestLoader } } }; - obj37.Steps = list60; - reference46 = obj37; - ref QuestSequence reference47 = ref span28[1]; - QuestSequence obj38 = new QuestSequence + obj35.Steps = list58; + reference44 = obj35; + num++; + ref QuestSequence reference45 = ref span57[num]; + QuestSequence obj36 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - Span span29 = CollectionsMarshal.AsSpan(list61); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.23075f, 1.3112462f, 7.6441884f), 132) + List list59 = new List(num2); + CollectionsMarshal.SetCount(list59, num2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num3 = 0; + span59[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.23075f, 1.3112462f, 7.6441884f), 132) { TargetTerritoryId = (ushort)133 }; - span29[1] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + num3++; + span59[num3] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { TargetTerritoryId = (ushort)205 }; - span29[2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); - obj38.Steps = list61; - reference47 = obj38; - ref QuestSequence reference48 = ref span28[2]; - QuestSequence obj39 = new QuestSequence + num3++; + span59[num3] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + obj36.Steps = list59; + reference45 = obj36; + num++; + ref QuestSequence reference46 = ref span57[num]; + QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - Span span30 = CollectionsMarshal.AsSpan(list62); - span30[0] = new QuestStep(EInteractionType.Interact, 2001216u, new Vector3(45.87172f, 7.763558f, 47.41661f), 205) + num3 = 2; + List list60 = new List(num3); + CollectionsMarshal.SetCount(list60, num3); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.Interact, 2001216u, new Vector3(45.87172f, 7.763558f, 47.41661f), 205) { TargetTerritoryId = (ushort)133 }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133); - obj39.Steps = list62; - reference48 = obj39; - questRoot7.QuestSequence = list59; + num2++; + span60[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133); + obj37.Steps = list60; + reference46 = obj37; + questRoot7.QuestSequence = list57; AddQuest(questId7, questRoot7); QuestId questId8 = new QuestId(1190); QuestRoot questRoot8 = new QuestRoot(); num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span31 = CollectionsMarshal.AsSpan(list63); - span31[0] = "JerryWester"; - span31[1] = "liza"; - span31[2] = "Wigglez"; - questRoot8.Author = list63; - num = 9; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - Span span32 = CollectionsMarshal.AsSpan(list64); - ref QuestSequence reference49 = ref span32[0]; - QuestSequence obj40 = new QuestSequence + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + Span span61 = CollectionsMarshal.AsSpan(list61); + index = 0; + span61[index] = "JerryWester"; + index++; + span61[index] = "liza"; + index++; + span61[index] = "Wigglez"; + questRoot8.Author = list61; + index = 9; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + Span span62 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference47 = ref span62[num]; + QuestSequence obj38 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133); - obj40.Steps = list65; - reference49 = obj40; - ref QuestSequence reference50 = ref span32[1]; - QuestSequence obj41 = new QuestSequence + List list63 = new List(num2); + CollectionsMarshal.SetCount(list63, num2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span63[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133); + obj38.Steps = list63; + reference47 = obj38; + num++; + ref QuestSequence reference48 = ref span62[num]; + QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1008275u, new Vector3(180.01062f, -2.265522f, -245.50244f), 133) + num3 = 1; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.Interact, 1008275u, new Vector3(180.01062f, -2.265522f, -245.50244f), 133) { AethernetShortcut = new AethernetShortcut { @@ -69851,292 +84110,345 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - obj41.Steps = list66; - reference50 = obj41; - ref QuestSequence reference51 = ref span32[2]; - QuestSequence obj42 = new QuestSequence + obj39.Steps = list64; + reference48 = obj39; + num++; + ref QuestSequence reference49 = ref span62[num]; + QuestSequence obj40 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - Span span33 = CollectionsMarshal.AsSpan(list67); - span33[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + List list65 = new List(num2); + CollectionsMarshal.SetCount(list65, num2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span65[num3] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { StopDistance = 7f, TargetTerritoryId = (ushort)152 }; - span33[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-548.81665f, 10.813553f, 63.75964f), 152); - obj42.Steps = list67; - reference51 = obj42; - ref QuestSequence reference52 = ref span32[3]; - QuestSequence obj43 = new QuestSequence + num3++; + span65[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-548.81665f, 10.813553f, 63.75964f), 152); + obj40.Steps = list65; + reference49 = obj40; + num++; + ref QuestSequence reference50 = ref span62[num]; + QuestSequence obj41 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span34 = CollectionsMarshal.AsSpan(list68); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-561.9863f, 9.919454f, 66.29564f), 152); - span34[1] = new QuestStep(EInteractionType.Interact, 1008276u, new Vector3(-542.9313f, 11.20175f, 62.241577f), 152); - obj43.Steps = list68; - reference52 = obj43; - ref QuestSequence reference53 = ref span32[4]; - QuestSequence obj44 = new QuestSequence + num3 = 2; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-561.9863f, 9.919454f, 66.29564f), 152); + num2++; + span66[num2] = new QuestStep(EInteractionType.Interact, 1008276u, new Vector3(-542.9313f, 11.20175f, 62.241577f), 152); + obj41.Steps = list66; + reference50 = obj41; + num++; + ref QuestSequence reference51 = ref span62[num]; + QuestSequence obj42 = new QuestSequence { Sequence = 4 }; num2 = 19; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - Span span35 = CollectionsMarshal.AsSpan(list69); - span35[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-507.38052f, 8.868391f, 71.95016f), 152) + List list67 = new List(num2); + CollectionsMarshal.SetCount(list67, num2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span67[num3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-507.38052f, 8.868391f, 71.95016f), 152) { StopDistance = 0.25f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span35[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-481.42728f, 6.422104f, 81.63048f), 152) + num3++; + span67[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-481.42728f, 6.422104f, 81.63048f), 152) { Mount = false, Sprint = false }; - ref QuestStep reference54 = ref span35[2]; - QuestStep obj45 = new QuestStep(EInteractionType.Combat, null, new Vector3(-481.42728f, 6.422104f, 81.63048f), 152) + num3++; + ref QuestStep reference52 = ref span67[num3]; + QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(-481.42728f, 6.422104f, 81.63048f), 152) { DelaySecondsAtStart = 2f, Mount = false, Sprint = false, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = 47u; + num4 = 1; + List list68 = new List(num4); + CollectionsMarshal.SetCount(list68, num4); + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = 47u; + obj43.KillEnemyDataIds = list68; + reference52 = obj43; + num3++; + span67[num3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-450.86685f, 1.4933968f, 83.65083f), 152) + { + StopDistance = 0.25f, + NpcWaitDistance = 5f, + Mount = false, + Sprint = false + }; + num3++; + span67[num3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-419.417f, 0.14398265f, 83.16774f), 152) + { + StopDistance = 0.25f, + NpcWaitDistance = 5f, + Mount = false, + Sprint = false + }; + num3++; + span67[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-378.81943f, 0.9094964f, 66.22969f), 152) + { + Mount = false, + Sprint = false + }; + num3++; + ref QuestStep reference53 = ref span67[num3]; + QuestStep obj44 = new QuestStep(EInteractionType.Combat, null, new Vector3(-378.81943f, 0.9094964f, 66.22969f), 152) + { + DelaySecondsAtStart = 2f, + Mount = false, + Sprint = false, + EnemySpawnType = EEnemySpawnType.AutoOnEnterArea + }; + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num4 = 0; + span69[num4] = 2483u; + obj44.KillEnemyDataIds = list69; + reference53 = obj44; + num3++; + span67[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-346.51294f, 6.312253f, 62.24674f), 152) + { + Mount = false, + Sprint = false + }; + num3++; + ref QuestStep reference54 = ref span67[num3]; + QuestStep obj45 = new QuestStep(EInteractionType.Combat, null, new Vector3(-346.51294f, 6.312253f, 62.24674f), 152) + { + DelaySecondsAtStart = 2f, + Mount = false, + Sprint = false, + EnemySpawnType = EEnemySpawnType.AutoOnEnterArea + }; + num4 = 1; + List list70 = new List(num4); + CollectionsMarshal.SetCount(list70, num4); + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = 2484u; obj45.KillEnemyDataIds = list70; reference54 = obj45; - span35[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-450.86685f, 1.4933968f, 83.65083f), 152) - { - StopDistance = 0.25f, - NpcWaitDistance = 5f, - Mount = false, - Sprint = false - }; - span35[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-419.417f, 0.14398265f, 83.16774f), 152) - { - StopDistance = 0.25f, - NpcWaitDistance = 5f, - Mount = false, - Sprint = false - }; - span35[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-378.81943f, 0.9094964f, 66.22969f), 152) + num3++; + span67[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-313.74997f, 8.092487f, 82.45006f), 152) { Mount = false, Sprint = false }; - ref QuestStep reference55 = ref span35[6]; - QuestStep obj46 = new QuestStep(EInteractionType.Combat, null, new Vector3(-378.81943f, 0.9094964f, 66.22969f), 152) + num3++; + ref QuestStep reference55 = ref span67[num3]; + QuestStep obj46 = new QuestStep(EInteractionType.Combat, null, new Vector3(-313.74997f, 8.092487f, 82.45006f), 152) { DelaySecondsAtStart = 2f, Mount = false, Sprint = false, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = 2483u; + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num4 = 0; + span71[num4] = 2485u; obj46.KillEnemyDataIds = list71; reference55 = obj46; - span35[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-346.51294f, 6.312253f, 62.24674f), 152) + num3++; + span67[num3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-283.93427f, 7.276271f, 98.03231f), 152) + { + StopDistance = 0.25f, + NpcWaitDistance = 5f, + Mount = false, + Sprint = false + }; + num3++; + span67[num3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-267.51584f, 6.6916447f, 90.286575f), 152) + { + StopDistance = 0.25f, + NpcWaitDistance = 5f, + Mount = false, + Sprint = false + }; + num3++; + span67[num3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-255.84544f, 11.492955f, 36.59282f), 152) + { + StopDistance = 0.25f, + NpcWaitDistance = 5f, + Mount = false, + Sprint = false + }; + num3++; + span67[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-254.20119f, 11.42078f, -5.5896573f), 152) { Mount = false, Sprint = false }; - ref QuestStep reference56 = ref span35[8]; - QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(-346.51294f, 6.312253f, 62.24674f), 152) + num3++; + ref QuestStep reference56 = ref span67[num3]; + QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(-254.20119f, 11.42078f, -5.5896573f), 152) { DelaySecondsAtStart = 2f, Mount = false, Sprint = false, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = 2484u; + num4 = 2; + List list72 = new List(num4); + CollectionsMarshal.SetCount(list72, num4); + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span72[index2] = 2487u; + index2++; + span72[index2] = 2488u; obj47.KillEnemyDataIds = list72; reference56 = obj47; - span35[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-313.74997f, 8.092487f, 82.45006f), 152) - { - Mount = false, - Sprint = false - }; - ref QuestStep reference57 = ref span35[10]; - QuestStep obj48 = new QuestStep(EInteractionType.Combat, null, new Vector3(-313.74997f, 8.092487f, 82.45006f), 152) - { - DelaySecondsAtStart = 2f, - Mount = false, - Sprint = false, - EnemySpawnType = EEnemySpawnType.AutoOnEnterArea - }; - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = 2485u; - obj48.KillEnemyDataIds = list73; - reference57 = obj48; - span35[11] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-283.93427f, 7.276271f, 98.03231f), 152) + num3++; + span67[num3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-286.692f, 11.75f, -23.839016f), 152) { StopDistance = 0.25f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span35[12] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-267.51584f, 6.6916447f, 90.286575f), 152) + num3++; + span67[num3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-316.77347f, 12.01387f, -34.666443f), 152) { StopDistance = 0.25f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span35[13] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-255.84544f, 11.492955f, 36.59282f), 152) - { - StopDistance = 0.25f, - NpcWaitDistance = 5f, - Mount = false, - Sprint = false - }; - span35[14] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-254.20119f, 11.42078f, -5.5896573f), 152) - { - Mount = false, - Sprint = false - }; - ref QuestStep reference58 = ref span35[15]; - QuestStep obj49 = new QuestStep(EInteractionType.Combat, null, new Vector3(-254.20119f, 11.42078f, -5.5896573f), 152) - { - DelaySecondsAtStart = 2f, - Mount = false, - Sprint = false, - EnemySpawnType = EEnemySpawnType.AutoOnEnterArea - }; - num3 = 2; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - Span span36 = CollectionsMarshal.AsSpan(list74); - span36[0] = 2487u; - span36[1] = 2488u; - obj49.KillEnemyDataIds = list74; - reference58 = obj49; - span35[16] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-286.692f, 11.75f, -23.839016f), 152) - { - StopDistance = 0.25f, - NpcWaitDistance = 5f, - Mount = false, - Sprint = false - }; - span35[17] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-316.77347f, 12.01387f, -34.666443f), 152) - { - StopDistance = 0.25f, - NpcWaitDistance = 5f, - Mount = false, - Sprint = false - }; - span35[18] = new QuestStep(EInteractionType.Interact, 2003347u, new Vector3(-318.62366f, 12.25293f, -35.05005f), 152) + num3++; + span67[num3] = new QuestStep(EInteractionType.Interact, 2003347u, new Vector3(-318.62366f, 12.25293f, -35.05005f), 152) { StopDistance = 4f }; - obj44.Steps = list69; - reference53 = obj44; - ref QuestSequence reference59 = ref span32[5]; - QuestSequence obj50 = new QuestSequence + obj42.Steps = list67; + reference51 = obj42; + num++; + ref QuestSequence reference57 = ref span62[num]; + QuestSequence obj48 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1008277u, new Vector3(-317.6776f, 12.293127f, -37.30841f), 152) + num3 = 1; + List list73 = new List(num3); + CollectionsMarshal.SetCount(list73, num3); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.Interact, 1008277u, new Vector3(-317.6776f, 12.293127f, -37.30841f), 152) { StopDistance = 4f, DelaySecondsAtStart = 2f }; - obj50.Steps = list75; - reference59 = obj50; - ref QuestSequence reference60 = ref span32[6]; - QuestSequence obj51 = new QuestSequence + obj48.Steps = list73; + reference57 = obj48; + num++; + ref QuestSequence reference58 = ref span62[num]; + QuestSequence obj49 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 2003046u, new Vector3(-318.62366f, 12.25293f, -35.080566f), 152) + List list74 = new List(num2); + CollectionsMarshal.SetCount(list74, num2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num3 = 0; + span74[num3] = new QuestStep(EInteractionType.Interact, 2003046u, new Vector3(-318.62366f, 12.25293f, -35.080566f), 152) { StopDistance = 4f, DelaySecondsAtStart = 3f }; - obj51.Steps = list76; - reference60 = obj51; - ref QuestSequence reference61 = ref span32[7]; - QuestSequence obj52 = new QuestSequence + obj49.Steps = list74; + reference58 = obj49; + num++; + ref QuestSequence reference59 = ref span62[num]; + QuestSequence obj50 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Duty, null, null, 152) + num3 = 1; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.Duty, null, null, 152) { DutyOptions = new DutyOptions { ContentFinderConditionId = 66u } }; - obj52.Steps = list77; - reference61 = obj52; - ref QuestSequence reference62 = ref span32[8]; - QuestSequence obj53 = new QuestSequence + obj50.Steps = list75; + reference59 = obj50; + num++; + ref QuestSequence reference60 = ref span62[num]; + QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span37 = CollectionsMarshal.AsSpan(list78); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.69998f, 8.511277f, 279.65753f), 153) + List list76 = new List(num2); + CollectionsMarshal.SetCount(list76, num2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span76[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.69998f, 8.511277f, 279.65753f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; - span37[1] = new QuestStep(EInteractionType.CompleteQuest, 1007862u, new Vector3(-140.03204f, 8.647825f, 280.8728f), 153); - obj53.Steps = list78; - reference62 = obj53; - questRoot8.QuestSequence = list64; + num3++; + span76[num3] = new QuestStep(EInteractionType.CompleteQuest, 1007862u, new Vector3(-140.03204f, 8.647825f, 280.8728f), 153); + obj51.Steps = list76; + reference60 = obj51; + questRoot8.QuestSequence = list62; AddQuest(questId8, questRoot8); QuestId questId9 = new QuestId(1191); QuestRoot questRoot9 = new QuestRoot(); num = 1; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "JerryWester"; - questRoot9.Author = list79; - num = 3; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span38 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference63 = ref span38[0]; - QuestSequence obj54 = new QuestSequence + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + Span span77 = CollectionsMarshal.AsSpan(list77); + index = 0; + span77[index] = "JerryWester"; + questRoot9.Author = list77; + index = 3; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + Span span78 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference61 = ref span78[num]; + QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num3 = 1; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -70148,18 +84460,20 @@ public static class AssemblyQuestLoader } } }; - obj54.Steps = list81; - reference63 = obj54; - ref QuestSequence reference64 = ref span38[1]; - QuestSequence obj55 = new QuestSequence + obj52.Steps = list79; + reference61 = obj52; + num++; + ref QuestSequence reference62 = ref span78[num]; + QuestSequence obj53 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - Span span39 = CollectionsMarshal.AsSpan(list82); - span39[0] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + List list80 = new List(num2); + CollectionsMarshal.SetCount(list80, num2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span80[num3] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { TargetTerritoryId = (ushort)205, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -70169,399 +84483,483 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - span39[1] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); - obj55.Steps = list82; - reference64 = obj55; - ref QuestSequence reference65 = ref span38[2]; - QuestSequence obj56 = new QuestSequence + num3++; + span80[num3] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + obj53.Steps = list80; + reference62 = obj53; + num++; + ref QuestSequence reference63 = ref span78[num]; + QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - Span span40 = CollectionsMarshal.AsSpan(list83); - span40[0] = new QuestStep(EInteractionType.UseItem, null, null, 205) + num3 = 5; + List list81 = new List(num3); + CollectionsMarshal.SetCount(list81, num3); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.UseItem, null, null, 205) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span40[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span40[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span81[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span81[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span40[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num2++; + span81[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span40[4] = new QuestStep(EInteractionType.CompleteQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); - obj56.Steps = list83; - reference65 = obj56; - questRoot9.QuestSequence = list80; + num2++; + span81[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj54.Steps = list81; + reference63 = obj54; + questRoot9.QuestSequence = list78; AddQuest(questId9, questRoot9); QuestId questId10 = new QuestId(1192); QuestRoot questRoot10 = new QuestRoot(); num = 1; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "JerryWester"; - questRoot10.Author = list84; - num = 9; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span41 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference66 = ref span41[0]; - QuestSequence obj57 = new QuestSequence + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + Span span82 = CollectionsMarshal.AsSpan(list82); + index = 0; + span82[index] = "JerryWester"; + questRoot10.Author = list82; + index = 9; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + Span span83 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference64 = ref span83[num]; + QuestSequence obj55 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); - obj57.Steps = list86; - reference66 = obj57; - ref QuestSequence reference67 = ref span41[1]; - QuestSequence obj58 = new QuestSequence + List list84 = new List(num2); + CollectionsMarshal.SetCount(list84, num2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span84[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj55.Steps = list84; + reference64 = obj55; + num++; + ref QuestSequence reference65 = ref span83[num]; + QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span42 = CollectionsMarshal.AsSpan(list87); - span42[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) + num3 = 2; + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span85[num2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span42[1] = new QuestStep(EInteractionType.Interact, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - obj58.Steps = list87; - reference67 = obj58; - ref QuestSequence reference68 = ref span41[2]; - QuestSequence obj59 = new QuestSequence + num2++; + span85[num2] = new QuestStep(EInteractionType.Interact, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + obj56.Steps = list85; + reference65 = obj56; + num++; + ref QuestSequence reference66 = ref span83[num]; + QuestSequence obj57 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span43 = CollectionsMarshal.AsSpan(list88); - span43[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) + List list86 = new List(num2); + CollectionsMarshal.SetCount(list86, num2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span86[num3] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span43[1] = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) + num3++; + span86[num3] = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) { TargetTerritoryId = (ushort)140 }; - span43[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-461.71686f, 23.192137f, -369.12787f), 140); - obj59.Steps = list88; - reference68 = obj59; - ref QuestSequence reference69 = ref span41[3]; - QuestSequence obj60 = new QuestSequence + num3++; + span86[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-461.71686f, 23.192137f, -369.12787f), 140); + obj57.Steps = list86; + reference66 = obj57; + num++; + ref QuestSequence reference67 = ref span83[num]; + QuestSequence obj58 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list89)[0]; - QuestStep obj61 = new QuestStep(EInteractionType.Combat, null, new Vector3(-470.87872f, 22.698383f, -439.40274f), 140) + num3 = 1; + List list87 = new List(num3); + CollectionsMarshal.SetCount(list87, num3); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + ref QuestStep reference68 = ref span87[num2]; + QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(-470.87872f, 22.698383f, -439.40274f), 140) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = 2477u; - obj61.KillEnemyDataIds = list90; - reference70 = obj61; - obj60.Steps = list89; - reference69 = obj60; - ref QuestSequence reference71 = ref span41[4]; - QuestSequence obj62 = new QuestSequence + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num4 = 0; + span88[num4] = 2477u; + obj59.KillEnemyDataIds = list88; + reference68 = obj59; + obj58.Steps = list87; + reference67 = obj58; + num++; + ref QuestSequence reference69 = ref span83[num]; + QuestSequence obj60 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list91)[0]; - QuestStep obj63 = new QuestStep(EInteractionType.Combat, null, new Vector3(-386.44818f, 24.74541f, -501.20456f), 140) + List list89 = new List(num2); + CollectionsMarshal.SetCount(list89, num2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num3 = 0; + ref QuestStep reference70 = ref span89[num3]; + QuestStep obj61 = new QuestStep(EInteractionType.Combat, null, new Vector3(-386.44818f, 24.74541f, -501.20456f), 140) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; + num4 = 1; + List list90 = new List(num4); + CollectionsMarshal.SetCount(list90, num4); + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = 2478u; + obj61.KillEnemyDataIds = list90; + reference70 = obj61; + obj60.Steps = list89; + reference69 = obj60; + num++; + ref QuestSequence reference71 = ref span83[num]; + QuestSequence obj62 = new QuestSequence + { + Sequence = 5 + }; num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = 2478u; + List list91 = new List(num3); + CollectionsMarshal.SetCount(list91, num3); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + ref QuestStep reference72 = ref span91[num2]; + QuestStep obj63 = new QuestStep(EInteractionType.Combat, null, new Vector3(-366.75403f, 16.426182f, -628.9341f), 140) + { + StopDistance = 0.25f, + Fly = true, + EnemySpawnType = EEnemySpawnType.AutoOnEnterArea + }; + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num4 = 0; + span92[num4] = 2479u; obj63.KillEnemyDataIds = list92; reference72 = obj63; obj62.Steps = list91; reference71 = obj62; - ref QuestSequence reference73 = ref span41[5]; + num++; + ref QuestSequence reference73 = ref span83[num]; QuestSequence obj64 = new QuestSequence - { - Sequence = 5 - }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list93)[0]; - QuestStep obj65 = new QuestStep(EInteractionType.Combat, null, new Vector3(-366.75403f, 16.426182f, -628.9341f), 140) - { - StopDistance = 0.25f, - Fly = true, - EnemySpawnType = EEnemySpawnType.AutoOnEnterArea - }; - num3 = 1; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = 2479u; - obj65.KillEnemyDataIds = list94; - reference74 = obj65; - obj64.Steps = list93; - reference73 = obj64; - ref QuestSequence reference75 = ref span41[6]; - QuestSequence obj66 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - ref QuestStep reference76 = ref CollectionsMarshal.AsSpan(list95)[0]; - QuestStep obj67 = new QuestStep(EInteractionType.Combat, null, new Vector3(-327.01913f, 14.785374f, -780.03625f), 140) + List list93 = new List(num2); + CollectionsMarshal.SetCount(list93, num2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + ref QuestStep reference74 = ref span93[num3]; + QuestStep obj65 = new QuestStep(EInteractionType.Combat, null, new Vector3(-327.01913f, 14.785374f, -780.03625f), 140) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - Span span44 = CollectionsMarshal.AsSpan(list96); - span44[0] = 2480u; - span44[1] = 2481u; - obj67.KillEnemyDataIds = list96; - reference76 = obj67; - obj66.Steps = list95; - reference75 = obj66; - ref QuestSequence reference77 = ref span41[7]; - QuestSequence obj68 = new QuestSequence + num4 = 2; + List list94 = new List(num4); + CollectionsMarshal.SetCount(list94, num4); + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = 2480u; + index2++; + span94[index2] = 2481u; + obj65.KillEnemyDataIds = list94; + reference74 = obj65; + obj64.Steps = list93; + reference73 = obj64; + num++; + ref QuestSequence reference75 = ref span83[num]; + QuestSequence obj66 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1007751u, new Vector3(-325.185f, 14.7073965f, -784.3595f), 140); - obj68.Steps = list97; - reference77 = obj68; - ref QuestSequence reference78 = ref span41[8]; - QuestSequence obj69 = new QuestSequence + num3 = 1; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.Interact, 1007751u, new Vector3(-325.185f, 14.7073965f, -784.3595f), 140); + obj66.Steps = list95; + reference75 = obj66; + num++; + ref QuestSequence reference76 = ref span83[num]; + QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 5; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - Span span45 = CollectionsMarshal.AsSpan(list98); - span45[0] = new QuestStep(EInteractionType.UseItem, null, null, 140) + List list96 = new List(num2); + CollectionsMarshal.SetCount(list96, num2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span96[num3] = new QuestStep(EInteractionType.UseItem, null, null, 140) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span45[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span45[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num3++; + span96[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num3++; + span96[num3] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span45[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num3++; + span96[num3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span45[4] = new QuestStep(EInteractionType.CompleteQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); - obj69.Steps = list98; - reference78 = obj69; - questRoot10.QuestSequence = list85; + num3++; + span96[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj67.Steps = list96; + reference76 = obj67; + questRoot10.QuestSequence = list83; AddQuest(questId10, questRoot10); QuestId questId11 = new QuestId(1194); QuestRoot questRoot11 = new QuestRoot(); num = 1; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; - questRoot11.Author = list99; - num = 2; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span46 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference79 = ref span46[0]; - QuestSequence obj70 = new QuestSequence + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span97 = CollectionsMarshal.AsSpan(list97); + index = 0; + span97[index] = "liza"; + questRoot11.Author = list97; + index = 2; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference77 = ref span98[num]; + QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - obj70.Steps = list101; - reference79 = obj70; - ref QuestSequence reference80 = ref span46[1]; - QuestSequence obj71 = new QuestSequence + num3 = 1; + List list99 = new List(num3); + CollectionsMarshal.SetCount(list99, num3); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + obj68.Steps = list99; + reference77 = obj68; + num++; + ref QuestSequence reference78 = ref span98[num]; + QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + List list100 = new List(num2); + CollectionsMarshal.SetCount(list100, num2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span100[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(1195) }; - obj71.Steps = list102; - reference80 = obj71; - questRoot11.QuestSequence = list100; + obj69.Steps = list100; + reference78 = obj69; + questRoot11.QuestSequence = list98; AddQuest(questId11, questRoot11); QuestId questId12 = new QuestId(1195); QuestRoot questRoot12 = new QuestRoot(); num = 1; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "liza"; - questRoot12.Author = list103; - num = 6; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span47 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference81 = ref span47[0]; - QuestSequence obj72 = new QuestSequence + List list101 = new List(num); + CollectionsMarshal.SetCount(list101, num); + Span span101 = CollectionsMarshal.AsSpan(list101); + index = 0; + span101[index] = "liza"; + questRoot12.Author = list101; + index = 6; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + Span span102 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference79 = ref span102[num]; + QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); - obj72.Steps = list105; - reference81 = obj72; - ref QuestSequence reference82 = ref span47[1]; - QuestSequence obj73 = new QuestSequence + num3 = 1; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span103[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); + obj70.Steps = list103; + reference79 = obj70; + num++; + ref QuestSequence reference80 = ref span102[num]; + QuestSequence obj71 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - Span span48 = CollectionsMarshal.AsSpan(list106); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(643.84f, 287.48834f, 175.5028f), 155) + List list104 = new List(num2); + CollectionsMarshal.SetCount(list104, num2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span104[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(643.84f, 287.48834f, 175.5028f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span48[1] = new QuestStep(EInteractionType.Interact, 2003456u, new Vector3(649.7748f, 292.4391f, 175.34143f), 155); - obj73.Steps = list106; - reference82 = obj73; - ref QuestSequence reference83 = ref span47[2]; - QuestSequence obj74 = new QuestSequence + num3++; + span104[num3] = new QuestStep(EInteractionType.Interact, 2003456u, new Vector3(649.7748f, 292.4391f, 175.34143f), 155); + obj71.Steps = list104; + reference80 = obj71; + num++; + ref QuestSequence reference81 = ref span102[num]; + QuestSequence obj72 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + num3 = 1; + List list105 = new List(num3); + CollectionsMarshal.SetCount(list105, num3); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { ContentFinderConditionId = 65u } }; - obj74.Steps = list107; - reference83 = obj74; - span47[3] = new QuestSequence + obj72.Steps = list105; + reference81 = obj72; + num++; + span102[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference84 = ref span47[4]; - QuestSequence obj75 = new QuestSequence + num++; + ref QuestSequence reference82 = ref span102[num]; + QuestSequence obj73 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + List list106 = new List(num2); + CollectionsMarshal.SetCount(list106, num2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span106[num3] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; - obj75.Steps = list108; - reference84 = obj75; - ref QuestSequence reference85 = ref span47[5]; - QuestSequence obj76 = new QuestSequence + obj73.Steps = list106; + reference82 = obj73; + num++; + ref QuestSequence reference83 = ref span102[num]; + QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span49 = CollectionsMarshal.AsSpan(list109); - span49[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + num3 = 4; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span49[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span49[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span107[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span107[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span49[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) + num2++; + span107[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) { NextQuestId = new QuestId(1196) }; - obj76.Steps = list109; - reference85 = obj76; - questRoot12.QuestSequence = list104; + obj74.Steps = list107; + reference83 = obj74; + questRoot12.QuestSequence = list102; AddQuest(questId12, questRoot12); QuestId questId13 = new QuestId(1196); QuestRoot questRoot13 = new QuestRoot(); num = 1; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "liza"; - questRoot13.Author = list110; - num = 7; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span50 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference86 = ref span50[0]; - QuestSequence obj77 = new QuestSequence + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + Span span108 = CollectionsMarshal.AsSpan(list108); + index = 0; + span108[index] = "liza"; + questRoot13.Author = list108; + index = 7; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + Span span109 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference84 = ref span109[num]; + QuestSequence obj75 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - obj77.Steps = list112; - reference86 = obj77; - ref QuestSequence reference87 = ref span50[1]; - QuestSequence obj78 = new QuestSequence + List list110 = new List(num2); + CollectionsMarshal.SetCount(list110, num2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span110[num3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + obj75.Steps = list110; + reference84 = obj75; + num++; + ref QuestSequence reference85 = ref span109[num]; + QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + num3 = 1; + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -70570,75 +84968,90 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - obj78.Steps = list113; - reference87 = obj78; - ref QuestSequence reference88 = ref span50[2]; - QuestSequence obj79 = new QuestSequence + obj76.Steps = list111; + reference85 = obj76; + num++; + ref QuestSequence reference86 = ref span109[num]; + QuestSequence obj77 = new QuestSequence { Sequence = 2 }; num2 = 7; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span51 = CollectionsMarshal.AsSpan(list114); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.55255f, 59.83099f, -516.4647f), 180) + List list112 = new List(num2); + CollectionsMarshal.SetCount(list112, num2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span112[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.55255f, 59.83099f, -516.4647f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; - span51[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.7023f, 28.568699f, -611.7063f), 180) + num3++; + span112[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.7023f, 28.568699f, -611.7063f), 180) { Fly = true }; - span51[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(84.102905f, 28.170393f, -716.35504f), 180) + num3++; + span112[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(84.102905f, 28.170393f, -716.35504f), 180) { Fly = true }; - span51[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) + num3++; + span112[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) { Fly = true }; - span51[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) + num3++; + span112[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) { Fly = true }; - span51[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) + num3++; + span112[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) { Fly = true }; - span51[6] = new QuestStep(EInteractionType.Interact, 2003457u, new Vector3(144.39612f, 29.037842f, -622.4918f), 180); - obj79.Steps = list114; - reference88 = obj79; - ref QuestSequence reference89 = ref span50[3]; - QuestSequence obj80 = new QuestSequence + num3++; + span112[num3] = new QuestStep(EInteractionType.Interact, 2003457u, new Vector3(144.39612f, 29.037842f, -622.4918f), 180); + obj77.Steps = list112; + reference86 = obj77; + num++; + ref QuestSequence reference87 = ref span109[num]; + QuestSequence obj78 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Duty, null, null, 180) + num3 = 1; + List list113 = new List(num3); + CollectionsMarshal.SetCount(list113, num3); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.Duty, null, null, 180) { DutyOptions = new DutyOptions { ContentFinderConditionId = 64u } }; - obj80.Steps = list115; - reference89 = obj80; - span50[4] = new QuestSequence + obj78.Steps = list113; + reference87 = obj78; + num++; + span109[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference90 = ref span50[5]; - QuestSequence obj81 = new QuestSequence + num++; + ref QuestSequence reference88 = ref span109[num]; + QuestSequence obj79 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + List list114 = new List(num2); + CollectionsMarshal.SetCount(list114, num2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span114[num3] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -70647,231 +85060,274 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - obj81.Steps = list116; - reference90 = obj81; - ref QuestSequence reference91 = ref span50[6]; - QuestSequence obj82 = new QuestSequence + obj79.Steps = list114; + reference88 = obj79; + num++; + ref QuestSequence reference89 = ref span109[num]; + QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - Span span52 = CollectionsMarshal.AsSpan(list117); - span52[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + num3 = 4; + List list115 = new List(num3); + CollectionsMarshal.SetCount(list115, num3); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span115[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span52[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span52[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span115[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span115[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span52[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) + num2++; + span115[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) { NextQuestId = new QuestId(1197) }; - obj82.Steps = list117; - reference91 = obj82; - questRoot13.QuestSequence = list111; + obj80.Steps = list115; + reference89 = obj80; + questRoot13.QuestSequence = list109; AddQuest(questId13, questRoot13); QuestId questId14 = new QuestId(1197); QuestRoot questRoot14 = new QuestRoot(); num = 1; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; - questRoot14.Author = list118; - num = 7; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span53 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference92 = ref span53[0]; - QuestSequence obj83 = new QuestSequence + List list116 = new List(num); + CollectionsMarshal.SetCount(list116, num); + Span span116 = CollectionsMarshal.AsSpan(list116); + index = 0; + span116[index] = "liza"; + questRoot14.Author = list116; + index = 7; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + Span span117 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference90 = ref span117[num]; + QuestSequence obj81 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - obj83.Steps = list120; - reference92 = obj83; - ref QuestSequence reference93 = ref span53[1]; - QuestSequence obj84 = new QuestSequence + List list118 = new List(num2); + CollectionsMarshal.SetCount(list118, num2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span118[num3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + obj81.Steps = list118; + reference90 = obj81; + num++; + ref QuestSequence reference91 = ref span117[num]; + QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span54 = CollectionsMarshal.AsSpan(list121); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) + num3 = 2; + List list119 = new List(num3); + CollectionsMarshal.SetCount(list119, num3); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span119[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - span54[1] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); - obj84.Steps = list121; - reference93 = obj84; - ref QuestSequence reference94 = ref span53[2]; - QuestSequence obj85 = new QuestSequence + num2++; + span119[num2] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + obj82.Steps = list119; + reference91 = obj82; + num++; + ref QuestSequence reference92 = ref span117[num]; + QuestSequence obj83 = new QuestSequence { Sequence = 2 }; num2 = 5; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - Span span55 = CollectionsMarshal.AsSpan(list122); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.992174f, 31.881628f, -3.1655574f), 146) + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + span120[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.992174f, 31.881628f, -3.1655574f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span55[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(373.0123f, 46.21888f, -47.523537f), 146) + num3++; + span120[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(373.0123f, 46.21888f, -47.523537f), 146) { Fly = true }; - span55[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.2741f, 36.9815f, -153.72185f), 146) + num3++; + span120[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.2741f, 36.9815f, -153.72185f), 146) { Fly = true }; - span55[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(694.0748f, 4.267518f, -84.443855f), 146) + num3++; + span120[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(694.0748f, 4.267518f, -84.443855f), 146) { Fly = true }; - span55[4] = new QuestStep(EInteractionType.Interact, 2003458u, new Vector3(694.3617f, 7.9193726f, -80.1557f), 146) + num3++; + span120[num3] = new QuestStep(EInteractionType.Interact, 2003458u, new Vector3(694.3617f, 7.9193726f, -80.1557f), 146) { StopDistance = 5f, Mount = false, IgnoreDistanceToObject = true }; - obj85.Steps = list122; - reference94 = obj85; - ref QuestSequence reference95 = ref span53[3]; - QuestSequence obj86 = new QuestSequence + obj83.Steps = list120; + reference92 = obj83; + num++; + ref QuestSequence reference93 = ref span117[num]; + QuestSequence obj84 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Duty, null, null, 146) + num3 = 1; + List list121 = new List(num3); + CollectionsMarshal.SetCount(list121, num3); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span121[num2] = new QuestStep(EInteractionType.Duty, null, null, 146) { DutyOptions = new DutyOptions { ContentFinderConditionId = 63u } }; - obj86.Steps = list123; - reference95 = obj86; - span53[4] = new QuestSequence + obj84.Steps = list121; + reference93 = obj84; + num++; + span117[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference96 = ref span53[5]; - QuestSequence obj87 = new QuestSequence + num++; + ref QuestSequence reference94 = ref span117[num]; + QuestSequence obj85 = new QuestSequence { Sequence = 5 }; num2 = 2; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - Span span56 = CollectionsMarshal.AsSpan(list124); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) + List list122 = new List(num2); + CollectionsMarshal.SetCount(list122, num2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + span122[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - span56[1] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); - obj87.Steps = list124; - reference96 = obj87; - ref QuestSequence reference97 = ref span53[6]; - QuestSequence obj88 = new QuestSequence + num3++; + span122[num3] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + obj85.Steps = list122; + reference94 = obj85; + num++; + ref QuestSequence reference95 = ref span117[num]; + QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - Span span57 = CollectionsMarshal.AsSpan(list125); - span57[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + num3 = 4; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span123[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span57[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span57[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span123[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span123[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span57[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) + num2++; + span123[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) { NextQuestId = new QuestId(1198) }; - obj88.Steps = list125; - reference97 = obj88; - questRoot14.QuestSequence = list119; + obj86.Steps = list123; + reference95 = obj86; + questRoot14.QuestSequence = list117; AddQuest(questId14, questRoot14); QuestId questId15 = new QuestId(1198); QuestRoot questRoot15 = new QuestRoot(); num = 1; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "liza"; - questRoot15.Author = list126; - num = 3; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span58 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference98 = ref span58[0]; - QuestSequence obj89 = new QuestSequence + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + Span span124 = CollectionsMarshal.AsSpan(list124); + index = 0; + span124[index] = "liza"; + questRoot15.Author = list124; + index = 3; + List list125 = new List(index); + CollectionsMarshal.SetCount(list125, index); + Span span125 = CollectionsMarshal.AsSpan(list125); + num = 0; + ref QuestSequence reference96 = ref span125[num]; + QuestSequence obj87 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - obj89.Steps = list128; - reference98 = obj89; - ref QuestSequence reference99 = ref span58[1]; - QuestSequence obj90 = new QuestSequence + List list126 = new List(num2); + CollectionsMarshal.SetCount(list126, num2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span126[num3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + obj87.Steps = list126; + reference96 = obj87; + num++; + ref QuestSequence reference97 = ref span125[num]; + QuestSequence obj88 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - Span span59 = CollectionsMarshal.AsSpan(list129); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) + num3 = 3; + List list127 = new List(num3); + CollectionsMarshal.SetCount(list127, num3); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span59[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); - span59[2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); - obj90.Steps = list129; - reference99 = obj90; - ref QuestSequence reference100 = ref span58[2]; - QuestSequence obj91 = new QuestSequence + num2++; + span127[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); + num2++; + span127[num2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); + obj88.Steps = list127; + reference97 = obj88; + num++; + ref QuestSequence reference98 = ref span125[num]; + QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span60 = CollectionsMarshal.AsSpan(list130); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) + List list128 = new List(num2); + CollectionsMarshal.SetCount(list128, num2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span128[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) { Fly = true }; - span60[1] = new QuestStep(EInteractionType.CompleteQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156) + num3++; + span128[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156) { Fly = true }; - obj91.Steps = list130; - reference100 = obj91; - questRoot15.QuestSequence = list127; + obj89.Steps = list128; + reference98 = obj89; + questRoot15.QuestSequence = list125; AddQuest(questId15, questRoot15); } @@ -70882,13 +85338,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 8; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 8; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -70896,7 +85355,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -70909,15 +85370,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -70928,7 +85392,8 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -70936,24 +85401,30 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1007755u, new Vector3(-34.62274f, 13.599951f, 99.47351f), 131); + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1007755u, new Vector3(-34.62274f, 13.599951f, 99.47351f), 131); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1007756u, new Vector3(4.501404f, 4.2257967f, 411.58154f), 147) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Interact, 1007756u, new Vector3(4.501404f, 4.2257967f, 411.58154f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -70961,35 +85432,42 @@ public static class AssemblyQuestLoader num2 = 2; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span2 = CollectionsMarshal.AsSpan(list7); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(243.06186f, 26.915272f, 74.2695f), 147) + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(243.06186f, 26.915272f, 74.2695f), 147) { Fly = true }; - span2[1] = new QuestStep(EInteractionType.Interact, 1007759u, new Vector3(246.57043f, 25.742998f, 85.28259f), 147); + index2++; + span7[index2] = new QuestStep(EInteractionType.Interact, 1007759u, new Vector3(246.57043f, 25.742998f, 85.28259f), 147); obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span3 = CollectionsMarshal.AsSpan(list8); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.94734f, 27.148706f, 74.460915f), 147) + index2 = 3; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.94734f, 27.148706f, 74.460915f), 147) { Fly = true }; - span3[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(258.76767f, 25f, 43.66056f), 147) + num2++; + span8[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(258.76767f, 25f, 43.66056f), 147) { Fly = true }; - span3[2] = new QuestStep(EInteractionType.Interact, 2002892u, new Vector3(259.38806f, 24.979004f, 44.174805f), 147); + num2++; + span8[num2] = new QuestStep(EInteractionType.Interact, 2002892u, new Vector3(259.38806f, 24.979004f, 44.174805f), 147); obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[6]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 6 @@ -70997,29 +85475,34 @@ public static class AssemblyQuestLoader num2 = 2; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span4 = CollectionsMarshal.AsSpan(list9); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.94734f, 27.148706f, 74.460915f), 147) + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.94734f, 27.148706f, 74.460915f), 147) { Fly = true }; - span4[1] = new QuestStep(EInteractionType.Interact, 1007759u, new Vector3(246.57043f, 25.742998f, 85.28259f), 147); + index2++; + span9[index2] = new QuestStep(EInteractionType.Interact, 1007759u, new Vector3(246.57043f, 25.742998f, 85.28259f), 147); obj7.Steps = list9; reference7 = obj7; - ref QuestSequence reference8 = ref span[7]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span5 = CollectionsMarshal.AsSpan(list10); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) + index2 = 2; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span5[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + num2++; + span10[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { NextQuestId = new QuestId(1201) }; @@ -71032,13 +85515,16 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "JerryWester"; + Span span11 = CollectionsMarshal.AsSpan(list11); + index = 0; + span11[index] = "JerryWester"; questRoot2.Author = list11; - num = 6; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span6 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference9 = ref span6[0]; + index = 6; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + Span span12 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference9 = ref span12[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -71046,7 +85532,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -71059,15 +85547,18 @@ public static class AssemblyQuestLoader }; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span6[1]; + num++; + ref QuestSequence reference10 = ref span12[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -71078,7 +85569,8 @@ public static class AssemblyQuestLoader }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span6[2]; + num++; + ref QuestSequence reference11 = ref span12[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -71086,30 +85578,35 @@ public static class AssemblyQuestLoader num2 = 2; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span7 = CollectionsMarshal.AsSpan(list15); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(467.32037f, 0.38625574f, 155.53741f), 153) + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(467.32037f, 0.38625574f, 155.53741f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - span7[1] = new QuestStep(EInteractionType.Interact, 2002893u, new Vector3(467.39905f, 2.2124634f, 154.0398f), 153); + index2++; + span15[index2] = new QuestStep(EInteractionType.Interact, 2002893u, new Vector3(467.39905f, 2.2124634f, 154.0398f), 153); obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference12 = ref span6[3]; + num++; + ref QuestSequence reference12 = ref span12[num]; QuestSequence obj12 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span8 = CollectionsMarshal.AsSpan(list16); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-155.03073f, -10.417721f, -70.72666f), 154) + index2 = 3; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-155.03073f, -10.417721f, -70.72666f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - ref QuestStep reference13 = ref span8[1]; + num2++; + ref QuestStep reference13 = ref span16[num2]; QuestStep obj13 = new QuestStep(EInteractionType.Combat, null, new Vector3(-153.8042f, -9.645816f, -74.48335f), 154) { StopDistance = 0.5f, @@ -71118,16 +85615,21 @@ public static class AssemblyQuestLoader int num3 = 3; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - Span span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = 2448u; - span9[1] = 2449u; - span9[2] = 2450u; + Span span17 = CollectionsMarshal.AsSpan(list17); + int num4 = 0; + span17[num4] = 2448u; + num4++; + span17[num4] = 2449u; + num4++; + span17[num4] = 2450u; obj13.KillEnemyDataIds = list17; reference13 = obj13; - span8[2] = new QuestStep(EInteractionType.Interact, 2002894u, new Vector3(-152.84961f, -8.46875f, -78.50769f), 154); + num2++; + span16[num2] = new QuestStep(EInteractionType.Interact, 2002894u, new Vector3(-152.84961f, -8.46875f, -78.50769f), 154); obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference14 = ref span6[4]; + num++; + ref QuestSequence reference14 = ref span12[num]; QuestSequence obj14 = new QuestSequence { Sequence = 4 @@ -71135,29 +85637,34 @@ public static class AssemblyQuestLoader num2 = 2; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span10 = CollectionsMarshal.AsSpan(list18); - span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.507086f, 0.7410059f, -94.81342f), 154) + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.507086f, 0.7410059f, -94.81342f), 154) { Fly = true }; - span10[1] = new QuestStep(EInteractionType.Interact, 2002896u, new Vector3(28.824219f, 1.5715942f, -96.787964f), 154); + index2++; + span18[index2] = new QuestStep(EInteractionType.Interact, 2002896u, new Vector3(28.824219f, 1.5715942f, -96.787964f), 154); obj14.Steps = list18; reference14 = obj14; - ref QuestSequence reference15 = ref span6[5]; + num++; + ref QuestSequence reference15 = ref span12[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - Span span11 = CollectionsMarshal.AsSpan(list19); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) + index2 = 2; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span11[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + num2++; + span19[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { NextQuestId = new QuestId(1202) }; @@ -71170,13 +85677,16 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "JerryWester"; + Span span20 = CollectionsMarshal.AsSpan(list20); + index = 0; + span20[index] = "JerryWester"; questRoot3.Author = list20; - num = 4; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span12 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference16 = ref span12[0]; + index = 4; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + Span span21 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference16 = ref span21[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -71184,7 +85694,9 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -71197,23 +85709,27 @@ public static class AssemblyQuestLoader }; obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span12[1]; + num++; + ref QuestSequence reference17 = ref span21[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span13 = CollectionsMarshal.AsSpan(list23); - span13[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(573.29987f, -1.5839931f, -261.4353f), 156) + index2 = 2; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(573.29987f, -1.5839931f, -261.4353f), 156) { Fly = true }; - span13[1] = new QuestStep(EInteractionType.Interact, 2002897u, new Vector3(573.17444f, -1.7243042f, -262.77563f), 156); + num2++; + span23[num2] = new QuestStep(EInteractionType.Interact, 2002897u, new Vector3(573.17444f, -1.7243042f, -262.77563f), 156); obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span12[2]; + num++; + ref QuestSequence reference18 = ref span21[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -71221,7 +85737,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Duty, null, null, 156) + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions { @@ -71231,21 +85749,24 @@ public static class AssemblyQuestLoader }; obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference19 = ref span12[3]; + num++; + ref QuestSequence reference19 = ref span21[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - Span span14 = CollectionsMarshal.AsSpan(list25); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) + index2 = 2; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span14[1] = new QuestStep(EInteractionType.CompleteQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) + num2++; + span25[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) { NextQuestId = new QuestId(1203) }; @@ -71258,13 +85779,16 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "JerryWester"; + Span span26 = CollectionsMarshal.AsSpan(list26); + index = 0; + span26[index] = "JerryWester"; questRoot4.Author = list26; - num = 2; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span15 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span15[0]; + index = 2; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + Span span27 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span27[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -71272,7 +85796,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -71285,15 +85811,18 @@ public static class AssemblyQuestLoader }; obj20.Steps = list28; reference20 = obj20; - ref QuestSequence reference21 = ref span15[1]; + num++; + ref QuestSequence reference21 = ref span27[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { NextQuestId = new QuestId(1474) }; @@ -71306,13 +85835,16 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "FalconTaterz"; + Span span30 = CollectionsMarshal.AsSpan(list30); + index = 0; + span30[index] = "FalconTaterz"; questRoot5.Author = list30; - num = 5; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span16 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference22 = ref span16[0]; + index = 5; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + Span span31 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference22 = ref span31[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -71320,7 +85852,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list32)[0]; + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference23 = ref span32[index2]; QuestStep obj23 = new QuestStep(EInteractionType.AcceptQuest, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -71332,10 +85866,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new DialogueChoice + num4 = 1; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CHRHDB101_01204_Q1_000_1") @@ -71344,22 +85880,26 @@ public static class AssemblyQuestLoader reference23 = obj23; obj22.Steps = list32; reference22 = obj22; - ref QuestSequence reference24 = ref span16[1]; + num++; + ref QuestSequence reference24 = ref span31[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1005709u, new Vector3(-464.16425f, -26.945036f, 85.40466f), 145) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.Interact, 1005709u, new Vector3(-464.16425f, -26.945036f, 85.40466f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj24.Steps = list34; reference24 = obj24; - ref QuestSequence reference25 = ref span16[2]; + num++; + ref QuestSequence reference25 = ref span31[num]; QuestSequence obj25 = new QuestSequence { Sequence = 2 @@ -71367,7 +85907,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - ref QuestStep reference26 = ref CollectionsMarshal.AsSpan(list35)[0]; + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + ref QuestStep reference26 = ref span35[index2]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(-273.9414f, 9.756445f, 222.65837f), 146) { Fly = true, @@ -71377,29 +85919,35 @@ public static class AssemblyQuestLoader num3 = 2; List list36 = new List(num3); CollectionsMarshal.SetCount(list36, num3); - Span span17 = CollectionsMarshal.AsSpan(list36); - span17[0] = 2390u; - span17[1] = 2391u; + Span span36 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span36[num4] = 2390u; + num4++; + span36[num4] = 2391u; obj26.KillEnemyDataIds = list36; reference26 = obj26; obj25.Steps = list35; reference25 = obj25; - ref QuestSequence reference27 = ref span16[3]; + num++; + ref QuestSequence reference27 = ref span31[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1005709u, new Vector3(-464.16425f, -26.945036f, 85.40466f), 145) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.Interact, 1005709u, new Vector3(-464.16425f, -26.945036f, 85.40466f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj27.Steps = list37; reference27 = obj27; - ref QuestSequence reference28 = ref span16[4]; + num++; + ref QuestSequence reference28 = ref span31[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -71407,16 +85955,20 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list38)[0]; + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + ref QuestStep reference29 = ref span38[index2]; QuestStep obj29 = new QuestStep(EInteractionType.CompleteQuest, 1005710u, new Vector3(4.4403076f, 7.2767544f, 885.55725f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; - num3 = 1; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = new DialogueChoice + num4 = 1; + List list39 = new List(num4); + CollectionsMarshal.SetCount(list39, num4); + Span span39 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + span39[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB101_01204_Q2_000_1"), @@ -71434,24 +85986,30 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "FalconTaterz"; + Span span40 = CollectionsMarshal.AsSpan(list40); + index = 0; + span40[index] = "FalconTaterz"; questRoot6.Author = list40; - num = 3; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span18 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference30 = ref span18[0]; + index = 3; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + Span span41 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference30 = ref span41[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005711u, new Vector3(4.837097f, 7.4445505f, 884.70276f), 146); + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005711u, new Vector3(4.837097f, 7.4445505f, 884.70276f), 146); obj30.Steps = list42; reference30 = obj30; - ref QuestSequence reference31 = ref span18[1]; + num++; + ref QuestSequence reference31 = ref span41[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -71459,8 +86017,9 @@ public static class AssemblyQuestLoader num2 = 3; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span19 = CollectionsMarshal.AsSpan(list43); - ref QuestStep reference32 = ref span19[0]; + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + ref QuestStep reference32 = ref span43[index2]; QuestStep obj32 = new QuestStep(EInteractionType.Interact, 1004333u, new Vector3(-101.854004f, 4.0131226f, -98.95477f), 130) { StopDistance = 7f, @@ -71469,54 +86028,77 @@ public static class AssemblyQuestLoader num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span20 = CollectionsMarshal.AsSpan(list44); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span44 = CollectionsMarshal.AsSpan(list44); + num4 = 0; + span44[num4] = null; + num4++; + span44[num4] = null; + num4++; + span44[num4] = null; + num4++; + span44[num4] = null; + num4++; + span44[num4] = null; + num4++; + span44[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj32.CompletionQuestVariablesFlags = list44; reference32 = obj32; - ref QuestStep reference33 = ref span19[1]; + index2++; + ref QuestStep reference33 = ref span43[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1004331u, new Vector3(-20.096191f, 4.9999676f, -133.22656f), 130); - num3 = 6; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - Span span21 = CollectionsMarshal.AsSpan(list45); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list45 = new List(num4); + CollectionsMarshal.SetCount(list45, num4); + Span span45 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list45; reference33 = questStep; - ref QuestStep reference34 = ref span19[2]; + index2++; + ref QuestStep reference34 = ref span43[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1001313u, new Vector3(16.372864f, 7.9999795f, -106.21808f), 130); num3 = 6; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - Span span22 = CollectionsMarshal.AsSpan(list46); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span46 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span46[num4] = null; + num4++; + span46[num4] = null; + num4++; + span46[num4] = null; + num4++; + span46[num4] = null; + num4++; + span46[num4] = null; + num4++; + span46[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list46; reference34 = questStep2; obj31.Steps = list43; reference31 = obj31; - ref QuestSequence reference35 = ref span18[2]; + num++; + ref QuestSequence reference35 = ref span41[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { NextQuestId = new QuestId(1206) }; @@ -71529,13 +86111,16 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "FalconTaterz"; + Span span48 = CollectionsMarshal.AsSpan(list48); + index = 0; + span48[index] = "FalconTaterz"; questRoot7.Author = list48; - num = 7; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span23 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference36 = ref span23[0]; + index = 7; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + Span span49 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference36 = ref span49[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -71543,7 +86128,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -71556,15 +86143,18 @@ public static class AssemblyQuestLoader }; obj34.Steps = list50; reference36 = obj34; - ref QuestSequence reference37 = ref span23[1]; + num++; + ref QuestSequence reference37 = ref span49[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1001691u, new Vector3(142.16821f, 7.4920034f, 104.72266f), 131) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.Interact, 1001691u, new Vector3(142.16821f, 7.4920034f, 104.72266f), 131) { AethernetShortcut = new AethernetShortcut { @@ -71574,7 +86164,8 @@ public static class AssemblyQuestLoader }; obj35.Steps = list51; reference37 = obj35; - ref QuestSequence reference38 = ref span23[2]; + num++; + ref QuestSequence reference38 = ref span49[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 @@ -71582,7 +86173,9 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1005713u, new Vector3(-72.98395f, 3.9999995f, -113.02362f), 130) + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.Interact, 1005713u, new Vector3(-72.98395f, 3.9999995f, -113.02362f), 130) { AethernetShortcut = new AethernetShortcut { @@ -71592,20 +86185,24 @@ public static class AssemblyQuestLoader }; obj36.Steps = list52; reference38 = obj36; - ref QuestSequence reference39 = ref span23[3]; + num++; + ref QuestSequence reference39 = ref span49[num]; QuestSequence obj37 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span24 = CollectionsMarshal.AsSpan(list53); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-147.13564f, 11.999999f, -5.086131f), 130); - span24[1] = new QuestStep(EInteractionType.Interact, 1005716u, new Vector3(-144.76239f, 12f, 0.99176025f), 130); + index2 = 2; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-147.13564f, 11.999999f, -5.086131f), 130); + num2++; + span53[num2] = new QuestStep(EInteractionType.Interact, 1005716u, new Vector3(-144.76239f, 12f, 0.99176025f), 130); obj37.Steps = list53; reference39 = obj37; - ref QuestSequence reference40 = ref span23[4]; + num++; + ref QuestSequence reference40 = ref span49[num]; QuestSequence obj38 = new QuestSequence { Sequence = 4 @@ -71613,24 +86210,30 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1005717u, new Vector3(-147.17328f, 12f, -3.6469727f), 130); + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.Interact, 1005717u, new Vector3(-147.17328f, 12f, -3.6469727f), 130); obj38.Steps = list54; reference40 = obj38; - ref QuestSequence reference41 = ref span23[5]; + num++; + ref QuestSequence reference41 = ref span49[num]; QuestSequence obj39 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.UseItem, 2003001u, new Vector3(-144.79291f, 11.9782715f, -3.4943848f), 130) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.UseItem, 2003001u, new Vector3(-144.79291f, 11.9782715f, -3.4943848f), 130) { ItemId = 2001126u }; obj39.Steps = list55; reference41 = obj39; - ref QuestSequence reference42 = ref span23[6]; + num++; + ref QuestSequence reference42 = ref span49[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -71638,7 +86241,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005716u, new Vector3(-144.76239f, 12f, 0.99176025f), 130) + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005716u, new Vector3(-144.76239f, 12f, 0.99176025f), 130) { StopDistance = 7f, NextQuestId = new QuestId(1207) @@ -71652,21 +86257,26 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "FalconTaterz"; + Span span57 = CollectionsMarshal.AsSpan(list57); + index = 0; + span57[index] = "FalconTaterz"; questRoot8.Author = list57; - num = 13; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span25 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference43 = ref span25[0]; + index = 13; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + Span span58 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference43 = ref span58[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005721u, new Vector3(-144.06049f, 12f, -5.5390625f), 130) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005721u, new Vector3(-144.06049f, 12f, -5.5390625f), 130) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -71680,7 +86290,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list59; reference43 = obj41; - ref QuestSequence reference44 = ref span25[1]; + num++; + ref QuestSequence reference44 = ref span58[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -71688,72 +86299,97 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1005722u, new Vector3(-550.4387f, -5.5688405f, -176.71478f), 145) + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.Interact, 1005722u, new Vector3(-550.4387f, -5.5688405f, -176.71478f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj42.Steps = list60; reference44 = obj42; - ref QuestSequence reference45 = ref span25[2]; + num++; + ref QuestSequence reference45 = ref span58[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - Span span26 = CollectionsMarshal.AsSpan(list61); - ref QuestStep reference46 = ref span26[0]; + index2 = 4; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + ref QuestStep reference46 = ref span61[num2]; QuestStep obj44 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-567.424f, 5.893569f, -221.67596f), 145) { Fly = true }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span27 = CollectionsMarshal.AsSpan(list62); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + Span span62 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list62; skipConditions.StepIf = skipStepConditions; obj44.SkipConditions = skipConditions; reference46 = obj44; - ref QuestStep reference47 = ref span26[1]; + num2++; + ref QuestStep reference47 = ref span61[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1004042u, new Vector3(-568.4138f, 5.893569f, -221.27112f), 145); num3 = 6; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span28 = CollectionsMarshal.AsSpan(list63); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span63 = CollectionsMarshal.AsSpan(list63); + num4 = 0; + span63[num4] = null; + num4++; + span63[num4] = null; + num4++; + span63[num4] = null; + num4++; + span63[num4] = null; + num4++; + span63[num4] = null; + num4++; + span63[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list63; reference47 = questStep3; - ref QuestStep reference48 = ref span26[2]; + num2++; + ref QuestStep reference48 = ref span61[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1003940u, new Vector3(-540.94763f, 4.134529f, -241.07733f), 145); - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span29 = CollectionsMarshal.AsSpan(list64); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + Span span64 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list64; reference48 = questStep4; - ref QuestStep reference49 = ref span26[3]; + num2++; + ref QuestStep reference49 = ref span61[num2]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1003939u, new Vector3(-540.09314f, 4.137387f, -240.98578f), 145) { StopDistance = 4f @@ -71761,18 +86397,25 @@ public static class AssemblyQuestLoader num3 = 6; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span30 = CollectionsMarshal.AsSpan(list65); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span65 = CollectionsMarshal.AsSpan(list65); + num4 = 0; + span65[num4] = null; + num4++; + span65[num4] = null; + num4++; + span65[num4] = null; + num4++; + span65[num4] = null; + num4++; + span65[num4] = null; + num4++; + span65[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj45.CompletionQuestVariablesFlags = list65; reference49 = obj45; obj43.Steps = list61; reference45 = obj43; - ref QuestSequence reference50 = ref span25[3]; + num++; + ref QuestSequence reference50 = ref span58[num]; QuestSequence obj46 = new QuestSequence { Sequence = 3 @@ -71780,28 +86423,34 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1005724u, new Vector3(-490.44025f, 2.8072534f, -274.34198f), 145) + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span66[index2] = new QuestStep(EInteractionType.Interact, 1005724u, new Vector3(-490.44025f, 2.8072534f, -274.34198f), 145) { Fly = true }; obj46.Steps = list66; reference50 = obj46; - ref QuestSequence reference51 = ref span25[4]; + num++; + ref QuestSequence reference51 = ref span58[num]; QuestSequence obj47 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj47.Steps = list67; reference51 = obj47; - ref QuestSequence reference52 = ref span25[5]; + num++; + ref QuestSequence reference52 = ref span58[num]; QuestSequence obj48 = new QuestSequence { Sequence = 5 @@ -71809,28 +86458,34 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.UseItem, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.UseItem, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, ItemId = 2001150u }; obj48.Steps = list68; reference52 = obj48; - ref QuestSequence reference53 = ref span25[6]; + num++; + ref QuestSequence reference53 = ref span58[num]; QuestSequence obj49 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj49.Steps = list69; reference53 = obj49; - ref QuestSequence reference54 = ref span25[7]; + num++; + ref QuestSequence reference54 = ref span58[num]; QuestSequence obj50 = new QuestSequence { Sequence = 7 @@ -71838,27 +86493,33 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj50.Steps = list70; reference54 = obj50; - ref QuestSequence reference55 = ref span25[8]; + num++; + ref QuestSequence reference55 = ref span58[num]; QuestSequence obj51 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj51.Steps = list71; reference55 = obj51; - ref QuestSequence reference56 = ref span25[9]; + num++; + ref QuestSequence reference56 = ref span58[num]; QuestSequence obj52 = new QuestSequence { Sequence = 9 @@ -71866,66 +86527,91 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span72[index2] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj52.Steps = list72; reference56 = obj52; - ref QuestSequence reference57 = ref span25[10]; + num++; + ref QuestSequence reference57 = ref span58[num]; QuestSequence obj53 = new QuestSequence { Sequence = 10 }; - num2 = 3; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - Span span31 = CollectionsMarshal.AsSpan(list73); - ref QuestStep reference58 = ref span31[0]; + index2 = 3; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + ref QuestStep reference58 = ref span73[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2003006u, new Vector3(-208.5451f, -37.9187f, 151.87305f), 145); - num3 = 6; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - Span span32 = CollectionsMarshal.AsSpan(list74); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list74 = new List(num4); + CollectionsMarshal.SetCount(list74, num4); + Span span74 = CollectionsMarshal.AsSpan(list74); + num3 = 0; + span74[num3] = null; + num3++; + span74[num3] = null; + num3++; + span74[num3] = null; + num3++; + span74[num3] = null; + num3++; + span74[num3] = null; + num3++; + span74[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list74; reference58 = questStep5; - ref QuestStep reference59 = ref span31[1]; + num2++; + ref QuestStep reference59 = ref span73[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2003005u, new Vector3(-220.87439f, -37.857666f, 166.0028f), 145); num3 = 6; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - Span span33 = CollectionsMarshal.AsSpan(list75); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span75 = CollectionsMarshal.AsSpan(list75); + num4 = 0; + span75[num4] = null; + num4++; + span75[num4] = null; + num4++; + span75[num4] = null; + num4++; + span75[num4] = null; + num4++; + span75[num4] = null; + num4++; + span75[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list75; reference59 = questStep6; - ref QuestStep reference60 = ref span31[2]; + num2++; + ref QuestStep reference60 = ref span73[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2003004u, new Vector3(-206.46985f, -37.644104f, 187.36548f), 145); - num3 = 6; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - Span span34 = CollectionsMarshal.AsSpan(list76); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list76 = new List(num4); + CollectionsMarshal.SetCount(list76, num4); + Span span76 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list76; reference60 = questStep7; obj53.Steps = list73; reference57 = obj53; - ref QuestSequence reference61 = ref span25[11]; + num++; + ref QuestSequence reference61 = ref span58[num]; QuestSequence obj54 = new QuestSequence { Sequence = 11 @@ -71933,23 +86619,28 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1005730u, new Vector3(-222.49182f, -37.896374f, 159.3805f), 145); + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.Interact, 1005730u, new Vector3(-222.49182f, -37.896374f, 159.3805f), 145); obj54.Steps = list77; reference61 = obj54; - ref QuestSequence reference62 = ref span25[12]; + num++; + ref QuestSequence reference62 = ref span58[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span35 = CollectionsMarshal.AsSpan(list78); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-535.8004f, 5.3931885f, -252.96324f), 145) + index2 = 2; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-535.8004f, 5.3931885f, -252.96324f), 145) { Fly = true }; - span35[1] = new QuestStep(EInteractionType.CompleteQuest, 1005731u, new Vector3(-526.8788f, 5.404997f, -246.50952f), 145) + num2++; + span78[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005731u, new Vector3(-526.8788f, 5.404997f, -246.50952f), 145) { NextQuestId = new QuestId(1315) }; @@ -71962,13 +86653,16 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + Span span79 = CollectionsMarshal.AsSpan(list79); + index = 0; + span79[index] = "liza"; questRoot9.Author = list79; - num = 5; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span36 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference63 = ref span36[0]; + index = 5; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + Span span80 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference63 = ref span80[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -71976,7 +86670,9 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list81)[0]; + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + ref QuestStep reference64 = ref span81[index2]; QuestStep obj57 = new QuestStep(EInteractionType.AcceptQuest, 1003601u, new Vector3(-3.2807007f, 39.51757f, -9.414856f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -71994,25 +86690,31 @@ public static class AssemblyQuestLoader num3 = 1; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = 128; + Span span82 = CollectionsMarshal.AsSpan(list82); + num4 = 0; + span82[num4] = 128; obj58.InTerritory = list82; skipConditions2.AetheryteShortcutIf = obj58; obj57.SkipConditions = skipConditions2; reference64 = obj57; obj56.Steps = list81; reference63 = obj56; - ref QuestSequence reference65 = ref span36[1]; + num++; + ref QuestSequence reference65 = ref span80[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1005516u, new Vector3(-46.0365f, 40f, 63.767456f), 128); + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.Interact, 1005516u, new Vector3(-46.0365f, 40f, 63.767456f), 128); obj59.Steps = list83; reference65 = obj59; - ref QuestSequence reference66 = ref span36[2]; + num++; + ref QuestSequence reference66 = ref span80[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -72020,36 +86722,47 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Emote, 1005515u, new Vector3(-44.449524f, 39.999996f, 61.81433f), 128) + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.Emote, 1005515u, new Vector3(-44.449524f, 39.999996f, 61.81433f), 128) { Emote = EEmote.Doubt }; obj60.Steps = list84; reference66 = obj60; - ref QuestSequence reference67 = ref span36[3]; + num++; + ref QuestSequence reference67 = ref span80[num]; QuestSequence obj61 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span37 = CollectionsMarshal.AsSpan(list85); - ref QuestStep reference68 = ref span37[0]; + index2 = 4; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference68 = ref span85[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128); - num3 = 6; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span38 = CollectionsMarshal.AsSpan(list86); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list86 = new List(num4); + CollectionsMarshal.SetCount(list86, num4); + Span span86 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list86; reference68 = questStep8; - ref QuestStep reference69 = ref span37[1]; + num2++; + ref QuestStep reference69 = ref span85[num2]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania @@ -72057,16 +86770,23 @@ public static class AssemblyQuestLoader num3 = 6; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - Span span39 = CollectionsMarshal.AsSpan(list87); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span87 = CollectionsMarshal.AsSpan(list87); + num4 = 0; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj62.CompletionQuestVariablesFlags = list87; reference69 = obj62; - ref QuestStep reference70 = ref span37[2]; + num2++; + ref QuestStep reference70 = ref span85[num2]; QuestStep obj63 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-103.88594f, 41.50016f, 119.898315f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -72078,21 +86798,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span40 = CollectionsMarshal.AsSpan(list88); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list88 = new List(num4); + CollectionsMarshal.SetCount(list88, num4); + Span span88 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list88; skipConditions3.StepIf = skipStepConditions2; obj63.SkipConditions = skipConditions3; reference70 = obj63; - ref QuestStep reference71 = ref span37[3]; + num2++; + ref QuestStep reference71 = ref span85[num2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1002299u, new Vector3(-98.8938f, 40.200146f, 120.83618f), 131) { StopDistance = 7f @@ -72100,18 +86827,25 @@ public static class AssemblyQuestLoader num3 = 6; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - Span span41 = CollectionsMarshal.AsSpan(list89); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span89 = CollectionsMarshal.AsSpan(list89); + num4 = 0; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj64.CompletionQuestVariablesFlags = list89; reference71 = obj64; obj61.Steps = list85; reference67 = obj61; - ref QuestSequence reference72 = ref span36[4]; + num++; + ref QuestSequence reference72 = ref span80[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -72119,7 +86853,9 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005515u, new Vector3(-44.449524f, 39.999996f, 61.81433f), 128) + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005515u, new Vector3(-44.449524f, 39.999996f, 61.81433f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -72137,24 +86873,30 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "liza"; + Span span91 = CollectionsMarshal.AsSpan(list91); + index = 0; + span91[index] = "liza"; questRoot10.Author = list91; - num = 6; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span42 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference73 = ref span42[0]; + index = 6; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + Span span92 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference73 = ref span92[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005526u, new Vector3(-17.624268f, 70.450066f, -17.71582f), 137); + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005526u, new Vector3(-17.624268f, 70.450066f, -17.71582f), 137); obj66.Steps = list93; reference73 = obj66; - ref QuestSequence reference74 = ref span42[1]; + num++; + ref QuestSequence reference74 = ref span92[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 @@ -72162,39 +86904,45 @@ public static class AssemblyQuestLoader num2 = 2; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span43 = CollectionsMarshal.AsSpan(list94); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.69795f, 46.029457f, 178.39331f), 137) + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.69795f, 46.029457f, 178.39331f), 137) { StopDistance = 0.5f, Fly = true }; - span43[1] = new QuestStep(EInteractionType.Interact, 1005527u, new Vector3(-68.2536f, 46.91121f, 178.2406f), 137) + index2++; + span94[index2] = new QuestStep(EInteractionType.Interact, 1005527u, new Vector3(-68.2536f, 46.91121f, 178.2406f), 137) { StopDistance = 5f }; obj67.Steps = list94; reference74 = obj67; - ref QuestSequence reference75 = ref span42[2]; + num++; + ref QuestSequence reference75 = ref span92[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - Span span44 = CollectionsMarshal.AsSpan(list95); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(75.93634f, 80.86577f, -124.46211f), 137) + index2 = 2; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(75.93634f, 80.86577f, -124.46211f), 137) { Fly = true }; - span44[1] = new QuestStep(EInteractionType.Interact, 1005528u, new Vector3(624.2312f, -3.0527444f, 165.27039f), 139) + num2++; + span95[num2] = new QuestStep(EInteractionType.Interact, 1005528u, new Vector3(624.2312f, -3.0527444f, 165.27039f), 139) { StopDistance = 0.5f, Fly = true }; obj68.Steps = list95; reference75 = obj68; - ref QuestSequence reference76 = ref span42[3]; + num++; + ref QuestSequence reference76 = ref span92[num]; QuestSequence obj69 = new QuestSequence { Sequence = 3 @@ -72202,33 +86950,41 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - ref QuestStep reference77 = ref CollectionsMarshal.AsSpan(list96)[0]; + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + ref QuestStep reference77 = ref span96[index2]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, 2003139u, new Vector3(600.5187f, -2.5177612f, 173.11353f), 139) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - Span span45 = CollectionsMarshal.AsSpan(list97); - span45[0] = 2437u; - span45[1] = 2438u; + num4 = 2; + List list97 = new List(num4); + CollectionsMarshal.SetCount(list97, num4); + Span span97 = CollectionsMarshal.AsSpan(list97); + num3 = 0; + span97[num3] = 2437u; + num3++; + span97[num3] = 2438u; obj70.KillEnemyDataIds = list97; reference77 = obj70; obj69.Steps = list96; reference76 = obj69; - ref QuestSequence reference78 = ref span42[4]; + num++; + ref QuestSequence reference78 = ref span92[num]; QuestSequence obj71 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 2003007u, new Vector3(600.5187f, -2.3651733f, 173.11353f), 139); + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.Interact, 2003007u, new Vector3(600.5187f, -2.3651733f, 173.11353f), 139); obj71.Steps = list98; reference78 = obj71; - ref QuestSequence reference79 = ref span42[5]; + num++; + ref QuestSequence reference79 = ref span92[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -72236,7 +86992,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005528u, new Vector3(624.2312f, -3.0527444f, 165.27039f), 139); + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005528u, new Vector3(624.2312f, -3.0527444f, 165.27039f), 139); obj72.Steps = list99; reference79 = obj72; questRoot10.QuestSequence = list92; @@ -72246,22 +87004,26 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "liza"; + Span span100 = CollectionsMarshal.AsSpan(list100); + index = 0; + span100[index] = "liza"; questRoot11.Author = list100; - num = 5; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span46 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference80 = ref span46[0]; + index = 5; + List list101 = new List(index); + CollectionsMarshal.SetCount(list101, index); + Span span101 = CollectionsMarshal.AsSpan(list101); + num = 0; + ref QuestSequence reference80 = ref span101[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span47 = CollectionsMarshal.AsSpan(list102); - span47[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) + index2 = 2; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -72282,7 +87044,8 @@ public static class AssemblyQuestLoader } } }; - span47[1] = new QuestStep(EInteractionType.AcceptQuest, 1000478u, new Vector3(11.642578f, -1.0223389f, 21.072632f), 148) + num2++; + span102[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000478u, new Vector3(11.642578f, -1.0223389f, 21.072632f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, SkipConditions = new SkipConditions @@ -72296,7 +87059,8 @@ public static class AssemblyQuestLoader }; obj73.Steps = list102; reference80 = obj73; - ref QuestSequence reference81 = ref span46[1]; + num++; + ref QuestSequence reference81 = ref span101[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -72304,21 +87068,26 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1005530u, new Vector3(186.57202f, -32.23455f, 327.8706f), 148) + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span103[index2] = new QuestStep(EInteractionType.Interact, 1005530u, new Vector3(186.57202f, -32.23455f, 327.8706f), 148) { Fly = true }; obj74.Steps = list103; reference81 = obj74; - ref QuestSequence reference82 = ref span46[2]; + num++; + ref QuestSequence reference82 = ref span101[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list104)[0]; + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + ref QuestStep reference83 = ref span104[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Interact, 1005656u, new Vector3(200.3357f, -32.043697f, 323.7506f), 148) { TargetTerritoryId = (ushort)340 @@ -72326,7 +87095,9 @@ public static class AssemblyQuestLoader num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = new DialogueChoice + Span span105 = CollectionsMarshal.AsSpan(list105); + num4 = 0; + span105[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -72337,7 +87108,8 @@ public static class AssemblyQuestLoader reference83 = obj76; obj75.Steps = list104; reference82 = obj75; - ref QuestSequence reference84 = ref span46[3]; + num++; + ref QuestSequence reference84 = ref span101[num]; QuestSequence obj77 = new QuestSequence { Sequence = 3 @@ -72345,18 +87117,23 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1005879u, new Vector3(0.8086548f, 2.8884888f, 181.99426f), 340); + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.Interact, 1005879u, new Vector3(0.8086548f, 2.8884888f, 181.99426f), 340); obj77.Steps = list106; reference84 = obj77; - ref QuestSequence reference85 = ref span46[4]; + num++; + ref QuestSequence reference85 = ref span101[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000478u, new Vector3(11.642578f, -1.0223389f, 21.072632f), 148) + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000478u, new Vector3(11.642578f, -1.0223389f, 21.072632f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; @@ -72369,13 +87146,16 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; + Span span108 = CollectionsMarshal.AsSpan(list108); + index = 0; + span108[index] = "liza"; questRoot12.Author = list108; - num = 5; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span48 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference86 = ref span48[0]; + index = 5; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + Span span109 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference86 = ref span109[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -72383,7 +87163,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list110)[0]; + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + ref QuestStep reference87 = ref span110[index2]; QuestStep obj80 = new QuestStep(EInteractionType.AcceptQuest, 1002001u, new Vector3(228.47327f, 52.038116f, 133.1654f), 140) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -72398,31 +87180,37 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = 140; + num4 = 1; + List list111 = new List(num4); + CollectionsMarshal.SetCount(list111, num4); + Span span111 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span111[num3] = 140; obj81.InTerritory = list111; skipConditions4.AetheryteShortcutIf = obj81; obj80.SkipConditions = skipConditions4; reference87 = obj80; obj79.Steps = list110; reference86 = obj79; - ref QuestSequence reference88 = ref span48[1]; + num++; + ref QuestSequence reference88 = ref span109[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1005531u, new Vector3(320.88184f, 67.27533f, 232.47119f), 140) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.Interact, 1005531u, new Vector3(320.88184f, 67.27533f, 232.47119f), 140) { Fly = true }; obj82.Steps = list112; reference88 = obj82; - ref QuestSequence reference89 = ref span48[2]; + num++; + ref QuestSequence reference89 = ref span109[num]; QuestSequence obj83 = new QuestSequence { Sequence = 2 @@ -72430,7 +87218,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - ref QuestStep reference90 = ref CollectionsMarshal.AsSpan(list113)[0]; + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + ref QuestStep reference90 = ref span113[index2]; QuestStep obj84 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(316.94064f, 67.1549f, 237f), 140) { TargetTerritoryId = (ushort)341 @@ -72438,7 +87228,9 @@ public static class AssemblyQuestLoader num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = new DialogueChoice + Span span114 = CollectionsMarshal.AsSpan(list114); + num4 = 0; + span114[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -72449,18 +87241,22 @@ public static class AssemblyQuestLoader reference90 = obj84; obj83.Steps = list113; reference89 = obj83; - ref QuestSequence reference91 = ref span48[3]; + num++; + ref QuestSequence reference91 = ref span109[num]; QuestSequence obj85 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1005880u, new Vector3(5.416931f, -11.076667f, -187.94543f), 341); + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span115[num2] = new QuestStep(EInteractionType.Interact, 1005880u, new Vector3(5.416931f, -11.076667f, -187.94543f), 341); obj85.Steps = list115; reference91 = obj85; - ref QuestSequence reference92 = ref span48[4]; + num++; + ref QuestSequence reference92 = ref span109[num]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -72468,25 +87264,30 @@ public static class AssemblyQuestLoader num2 = 2; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span49 = CollectionsMarshal.AsSpan(list116); - ref QuestStep reference93 = ref span49[0]; + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + ref QuestStep reference93 = ref span116[index2]; QuestStep obj87 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-12.7114315f, -11.076661f, -199.92712f), 341) { TargetTerritoryId = (ushort)140 }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = 341; + num4 = 1; + List list117 = new List(num4); + CollectionsMarshal.SetCount(list117, num4); + Span span117 = CollectionsMarshal.AsSpan(list117); + num3 = 0; + span117[num3] = 341; skipStepConditions3.NotInTerritory = list117; skipConditions5.StepIf = skipStepConditions3; obj87.SkipConditions = skipConditions5; num3 = 1; List list118 = new List(num3); CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = new DialogueChoice + Span span118 = CollectionsMarshal.AsSpan(list118); + num4 = 0; + span118[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -72495,7 +87296,8 @@ public static class AssemblyQuestLoader }; obj87.DialogueChoices = list118; reference93 = obj87; - ref QuestStep reference94 = ref span49[1]; + index2++; + ref QuestStep reference94 = ref span116[index2]; QuestStep obj88 = new QuestStep(EInteractionType.CompleteQuest, 1002001u, new Vector3(228.47327f, 52.038116f, 133.1654f), 140) { DelaySecondsAtStart = 3f, @@ -72512,10 +87314,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = 140; + num4 = 1; + List list119 = new List(num4); + CollectionsMarshal.SetCount(list119, num4); + Span span119 = CollectionsMarshal.AsSpan(list119); + num3 = 0; + span119[num3] = 140; obj89.InTerritory = list119; skipConditions6.AetheryteShortcutIf = obj89; obj88.SkipConditions = skipConditions6; @@ -72529,21 +87333,26 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "liza"; + Span span120 = CollectionsMarshal.AsSpan(list120); + index = 0; + span120[index] = "liza"; questRoot13.Author = list120; - num = 5; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - Span span50 = CollectionsMarshal.AsSpan(list121); - ref QuestSequence reference95 = ref span50[0]; + index = 5; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + Span span121 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference95 = ref span121[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list122)[0]; + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + ref QuestStep reference96 = ref span122[num2]; QuestStep obj91 = new QuestStep(EInteractionType.AcceptQuest, 1002579u, new Vector3(508.01855f, 79.171745f, -61.96692f), 135) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -72561,14 +87370,17 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 135; + Span span123 = CollectionsMarshal.AsSpan(list123); + num4 = 0; + span123[num4] = 135; obj92.InTerritory = list123; skipConditions7.AetheryteShortcutIf = obj92; obj91.SkipConditions = skipConditions7; reference96 = obj91; obj90.Steps = list122; reference95 = obj90; - ref QuestSequence reference97 = ref span50[1]; + num++; + ref QuestSequence reference97 = ref span121[num]; QuestSequence obj93 = new QuestSequence { Sequence = 1 @@ -72576,29 +87388,36 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1005529u, new Vector3(593.225f, 61.734455f, -113.96973f), 135) + Span span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span124[index2] = new QuestStep(EInteractionType.Interact, 1005529u, new Vector3(593.225f, 61.734455f, -113.96973f), 135) { Fly = true }; obj93.Steps = list124; reference97 = obj93; - ref QuestSequence reference98 = ref span50[2]; + num++; + ref QuestSequence reference98 = ref span121[num]; QuestSequence obj94 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list125)[0]; + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + ref QuestStep reference99 = ref span125[num2]; QuestStep obj95 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(598.26843f, 61.502148f, -105f), 135) { TargetTerritoryId = (ushort)339 }; - num3 = 1; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = new DialogueChoice + num4 = 1; + List list126 = new List(num4); + CollectionsMarshal.SetCount(list126, num4); + Span span126 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span126[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -72609,7 +87428,8 @@ public static class AssemblyQuestLoader reference99 = obj95; obj94.Steps = list125; reference98 = obj94; - ref QuestSequence reference100 = ref span50[3]; + num++; + ref QuestSequence reference100 = ref span121[num]; QuestSequence obj96 = new QuestSequence { Sequence = 3 @@ -72617,19 +87437,23 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 1005881u, new Vector3(-18.631348f, 49.025185f, -113.42035f), 339); + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.Interact, 1005881u, new Vector3(-18.631348f, 49.025185f, -113.42035f), 339); obj96.Steps = list127; reference100 = obj96; - ref QuestSequence reference101 = ref span50[4]; + num++; + ref QuestSequence reference101 = ref span121[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span51 = CollectionsMarshal.AsSpan(list128); - ref QuestStep reference102 = ref span51[0]; + index2 = 3; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + ref QuestStep reference102 = ref span128[num2]; QuestStep obj98 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-9.527806f, 50.23951f, -129.5499f), 339) { DisableNavmesh = true @@ -72639,12 +87463,15 @@ public static class AssemblyQuestLoader num3 = 1; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = 339; + Span span129 = CollectionsMarshal.AsSpan(list129); + num4 = 0; + span129[num4] = 339; skipStepConditions4.NotInTerritory = list129; skipConditions8.StepIf = skipStepConditions4; obj98.SkipConditions = skipConditions8; reference102 = obj98; - ref QuestStep reference103 = ref span51[1]; + num2++; + ref QuestStep reference103 = ref span128[num2]; QuestStep obj99 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-9.739164f, 48.345356f, -171f), 339) { TargetTerritoryId = (ushort)135, @@ -72652,17 +87479,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = 339; + num4 = 1; + List list130 = new List(num4); + CollectionsMarshal.SetCount(list130, num4); + Span span130 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + span130[num3] = 339; skipStepConditions5.NotInTerritory = list130; skipConditions9.StepIf = skipStepConditions5; obj99.SkipConditions = skipConditions9; num3 = 1; List list131 = new List(num3); CollectionsMarshal.SetCount(list131, num3); - CollectionsMarshal.AsSpan(list131)[0] = new DialogueChoice + Span span131 = CollectionsMarshal.AsSpan(list131); + num4 = 0; + span131[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -72671,7 +87502,8 @@ public static class AssemblyQuestLoader }; obj99.DialogueChoices = list131; reference103 = obj99; - ref QuestStep reference104 = ref span51[2]; + num2++; + ref QuestStep reference104 = ref span128[num2]; QuestStep obj100 = new QuestStep(EInteractionType.CompleteQuest, 1002579u, new Vector3(508.01855f, 79.171745f, -61.96692f), 135) { Fly = true, @@ -72687,10 +87519,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = 135; + num4 = 1; + List list132 = new List(num4); + CollectionsMarshal.SetCount(list132, num4); + Span span132 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span132[num3] = 135; obj101.InTerritory = list132; skipConditions10.AetheryteShortcutIf = obj101; obj100.SkipConditions = skipConditions10; @@ -72704,13 +87538,16 @@ public static class AssemblyQuestLoader num = 1; List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - CollectionsMarshal.AsSpan(list133)[0] = "liza"; + Span span133 = CollectionsMarshal.AsSpan(list133); + index = 0; + span133[index] = "liza"; questRoot14.Author = list133; - num = 4; - List list134 = new List(num); - CollectionsMarshal.SetCount(list134, num); - Span span52 = CollectionsMarshal.AsSpan(list134); - ref QuestSequence reference105 = ref span52[0]; + index = 4; + List list134 = new List(index); + CollectionsMarshal.SetCount(list134, index); + Span span134 = CollectionsMarshal.AsSpan(list134); + num = 0; + ref QuestSequence reference105 = ref span134[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -72718,24 +87555,30 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); obj102.Steps = list135; reference105 = obj102; - ref QuestSequence reference106 = ref span52[1]; + num++; + ref QuestSequence reference106 = ref span134[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.Interact, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj103.Steps = list136; reference106 = obj103; - ref QuestSequence reference107 = ref span52[2]; + num++; + ref QuestSequence reference107 = ref span134[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 @@ -72743,8 +87586,9 @@ public static class AssemblyQuestLoader num2 = 3; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span53 = CollectionsMarshal.AsSpan(list137); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-150.9585f, 43.717075f, -345.03116f), 146) + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-150.9585f, 43.717075f, -345.03116f), 146) { Fly = true, SkipConditions = new SkipConditions @@ -72755,27 +87599,32 @@ public static class AssemblyQuestLoader } } }; - span53[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(91.463745f, 10.278164f, -461.99072f), 146) + index2++; + span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(91.463745f, 10.278164f, -461.99072f), 146) { Fly = true }; - span53[2] = new QuestStep(EInteractionType.Interact, 2002919u, new Vector3(90.958984f, 9.994568f, -460.41046f), 146); + index2++; + span137[index2] = new QuestStep(EInteractionType.Interact, 2002919u, new Vector3(90.958984f, 9.994568f, -460.41046f), 146); obj104.Steps = list137; reference107 = obj104; - ref QuestSequence reference108 = ref span52[3]; + num++; + ref QuestSequence reference108 = ref span134[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - Span span54 = CollectionsMarshal.AsSpan(list138); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(107.40087f, 15.010546f, -360.9872f), 146) + index2 = 2; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(107.40087f, 15.010546f, -360.9872f), 146) { Fly = true }; - span54[1] = new QuestStep(EInteractionType.CompleteQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146) + num2++; + span138[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146) { NextQuestId = new QuestId(1218) }; @@ -72788,13 +87637,16 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; + Span span139 = CollectionsMarshal.AsSpan(list139); + index = 0; + span139[index] = "liza"; questRoot15.Author = list139; - num = 5; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span55 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference109 = ref span55[0]; + index = 5; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + Span span140 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference109 = ref span140[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -72802,20 +87654,25 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146); + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146); obj106.Steps = list141; reference109 = obj106; - ref QuestSequence reference110 = ref span55[1]; + num++; + ref QuestSequence reference110 = ref span140[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span56 = CollectionsMarshal.AsSpan(list142); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(107.40087f, 15.010546f, -360.9872f), 146); - ref QuestStep reference111 = ref span56[1]; + index2 = 2; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(107.40087f, 15.010546f, -360.9872f), 146); + num2++; + ref QuestStep reference111 = ref span142[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2002931u, new Vector3(-268.54352f, 4.7455444f, -77.16492f), 146) { StopDistance = 0.5f, @@ -72825,14 +87682,17 @@ public static class AssemblyQuestLoader num3 = 2; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span57 = CollectionsMarshal.AsSpan(list143); - span57[0] = 2458u; - span57[1] = 2459u; + Span span143 = CollectionsMarshal.AsSpan(list143); + num4 = 0; + span143[num4] = 2458u; + num4++; + span143[num4] = 2459u; obj108.KillEnemyDataIds = list143; reference111 = obj108; obj107.Steps = list142; reference110 = obj107; - ref QuestSequence reference112 = ref span55[2]; + num++; + ref QuestSequence reference112 = ref span140[num]; QuestSequence obj109 = new QuestSequence { Sequence = 2 @@ -72840,24 +87700,30 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1005579u, new Vector3(-262.3789f, 4.4491196f, -75.791565f), 146); + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span144[index2] = new QuestStep(EInteractionType.Interact, 1005579u, new Vector3(-262.3789f, 4.4491196f, -75.791565f), 146); obj109.Steps = list144; reference112 = obj109; - ref QuestSequence reference113 = ref span55[3]; + num++; + ref QuestSequence reference113 = ref span140[num]; QuestSequence obj110 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1005578u, new Vector3(89.00586f, 14.439478f, -387.77753f), 146) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span145[num2] = new QuestStep(EInteractionType.Interact, 1005578u, new Vector3(89.00586f, 14.439478f, -387.77753f), 146) { Fly = true }; obj110.Steps = list145; reference113 = obj110; - ref QuestSequence reference114 = ref span55[4]; + num++; + ref QuestSequence reference114 = ref span140[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue @@ -72865,12 +87731,16 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - ref QuestStep reference115 = ref CollectionsMarshal.AsSpan(list146)[0]; + Span span146 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + ref QuestStep reference115 = ref span146[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.CompleteQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146); - num3 = 1; - List list147 = new List(num3); - CollectionsMarshal.SetCount(list147, num3); - CollectionsMarshal.AsSpan(list147)[0] = new DialogueChoice + num4 = 1; + List list147 = new List(num4); + CollectionsMarshal.SetCount(list147, num4); + Span span147 = CollectionsMarshal.AsSpan(list147); + num3 = 0; + span147[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANAMA002_01218_SYSYTEM_Q1_000_1"), @@ -72887,24 +87757,30 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "plogon_enjoyer"; + Span span148 = CollectionsMarshal.AsSpan(list148); + index = 0; + span148[index] = "plogon_enjoyer"; questRoot16.Author = list148; - num = 9; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span58 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference116 = ref span58[0]; + index = 9; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + Span span149 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference116 = ref span149[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146); + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146); obj112.Steps = list150; reference116 = obj112; - ref QuestSequence reference117 = ref span58[1]; + num++; + ref QuestSequence reference117 = ref span149[num]; QuestSequence obj113 = new QuestSequence { Sequence = 1 @@ -72912,36 +87788,43 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1005581u, new Vector3(-55.985413f, -1.6554508f, -47.56244f), 146) + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.Interact, 1005581u, new Vector3(-55.985413f, -1.6554508f, -47.56244f), 146) { Fly = true }; obj113.Steps = list151; reference117 = obj113; - ref QuestSequence reference118 = ref span58[2]; + num++; + ref QuestSequence reference118 = ref span149[num]; QuestSequence obj114 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - Span span59 = CollectionsMarshal.AsSpan(list152); - span59[0] = new QuestStep(EInteractionType.Action, 2002949u, new Vector3(-70.17627f, 11.36792f, 97.0625f), 146) + index2 = 3; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.Action, 2002949u, new Vector3(-70.17627f, 11.36792f, 97.0625f), 146) { Action = EAction.FieryBreath }; - span59[1] = new QuestStep(EInteractionType.Action, 2002956u, new Vector3(-199.96954f, 5.661072f, 101.823364f), 146) + num2++; + span152[num2] = new QuestStep(EInteractionType.Action, 2002956u, new Vector3(-199.96954f, 5.661072f, 101.823364f), 146) { Action = EAction.FieryBreath }; - span59[2] = new QuestStep(EInteractionType.Action, 2002950u, new Vector3(-118.0896f, 27.695068f, 126.97034f), 146) + num2++; + span152[num2] = new QuestStep(EInteractionType.Action, 2002950u, new Vector3(-118.0896f, 27.695068f, 126.97034f), 146) { Action = EAction.FieryBreath }; obj114.Steps = list152; reference118 = obj114; - ref QuestSequence reference119 = ref span58[3]; + num++; + ref QuestSequence reference119 = ref span149[num]; QuestSequence obj115 = new QuestSequence { Sequence = 3 @@ -72949,21 +87832,27 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1005585u, new Vector3(-114.64105f, 7.539109f, 308.82727f), 146); + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.Interact, 1005585u, new Vector3(-114.64105f, 7.539109f, 308.82727f), 146); obj115.Steps = list153; reference119 = obj115; - ref QuestSequence reference120 = ref span58[4]; + num++; + ref QuestSequence reference120 = ref span149[num]; QuestSequence obj116 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1005583u, new Vector3(-114.27484f, 7.6587763f, 310.01746f), 146); + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.Interact, 1005583u, new Vector3(-114.27484f, 7.6587763f, 310.01746f), 146); obj116.Steps = list154; reference120 = obj116; - ref QuestSequence reference121 = ref span58[5]; + num++; + ref QuestSequence reference121 = ref span149[num]; QuestSequence obj117 = new QuestSequence { Sequence = 5 @@ -72971,41 +87860,50 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1005584u, new Vector3(-261.55493f, 7.084492f, 412.28345f), 146) + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new QuestStep(EInteractionType.Interact, 1005584u, new Vector3(-261.55493f, 7.084492f, 412.28345f), 146) { Fly = true }; obj117.Steps = list155; reference121 = obj117; - ref QuestSequence reference122 = ref span58[6]; + num++; + ref QuestSequence reference122 = ref span149[num]; QuestSequence obj118 = new QuestSequence { Sequence = 6 }; - num2 = 5; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - Span span60 = CollectionsMarshal.AsSpan(list156); - span60[0] = new QuestStep(EInteractionType.Interact, 1008284u, new Vector3(-306.44696f, 6.321288f, 392.5078f), 146) + index2 = 5; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.Interact, 1008284u, new Vector3(-306.44696f, 6.321288f, 392.5078f), 146) { Fly = true }; - span60[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-365.44217f, 6.691126f, 395.09555f), 146) + num2++; + span156[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-365.44217f, 6.691126f, 395.09555f), 146) { Fly = true }; - span60[2] = new QuestStep(EInteractionType.Interact, 1008287u, new Vector3(-366.10974f, 6.9095497f, 394.64404f), 146); - span60[3] = new QuestStep(EInteractionType.Interact, 1008285u, new Vector3(-319.50867f, 8.2855835f, 428.18335f), 146) + num2++; + span156[num2] = new QuestStep(EInteractionType.Interact, 1008287u, new Vector3(-366.10974f, 6.9095497f, 394.64404f), 146); + num2++; + span156[num2] = new QuestStep(EInteractionType.Interact, 1008285u, new Vector3(-319.50867f, 8.2855835f, 428.18335f), 146) { Fly = true }; - span60[4] = new QuestStep(EInteractionType.Interact, 1008286u, new Vector3(-330.5562f, 8.096848f, 480.0641f), 146) + num2++; + span156[num2] = new QuestStep(EInteractionType.Interact, 1008286u, new Vector3(-330.5562f, 8.096848f, 480.0641f), 146) { Fly = true }; obj118.Steps = list156; reference122 = obj118; - ref QuestSequence reference123 = ref span58[7]; + num++; + ref QuestSequence reference123 = ref span149[num]; QuestSequence obj119 = new QuestSequence { Sequence = 7 @@ -73013,26 +87911,31 @@ public static class AssemblyQuestLoader num2 = 2; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span61 = CollectionsMarshal.AsSpan(list157); - span61[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.56685f, 23.290625f, -334.22568f), 146) + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.56685f, 23.290625f, -334.22568f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span61[1] = new QuestStep(EInteractionType.Interact, 1005578u, new Vector3(89.00586f, 14.439478f, -387.77753f), 146) + index2++; + span157[index2] = new QuestStep(EInteractionType.Interact, 1005578u, new Vector3(89.00586f, 14.439478f, -387.77753f), 146) { Fly = true }; obj119.Steps = list157; reference123 = obj119; - ref QuestSequence reference124 = ref span58[8]; + num++; + ref QuestSequence reference124 = ref span149[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146) + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span158[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146) { Fly = true }; @@ -73045,13 +87948,16 @@ public static class AssemblyQuestLoader num = 1; List list159 = new List(num); CollectionsMarshal.SetCount(list159, num); - CollectionsMarshal.AsSpan(list159)[0] = "plogon_enjoyer"; + Span span159 = CollectionsMarshal.AsSpan(list159); + index = 0; + span159[index] = "plogon_enjoyer"; questRoot17.Author = list159; - num = 3; - List list160 = new List(num); - CollectionsMarshal.SetCount(list160, num); - Span span62 = CollectionsMarshal.AsSpan(list160); - ref QuestSequence reference125 = ref span62[0]; + index = 3; + List list160 = new List(index); + CollectionsMarshal.SetCount(list160, index); + Span span160 = CollectionsMarshal.AsSpan(list160); + num = 0; + ref QuestSequence reference125 = ref span160[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -73059,19 +87965,23 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj121.Steps = list161; reference125 = obj121; - ref QuestSequence reference126 = ref span62[1]; + num++; + ref QuestSequence reference126 = ref span160[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span63 = CollectionsMarshal.AsSpan(list162); - ref QuestStep reference127 = ref span63[0]; + index2 = 2; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + ref QuestStep reference127 = ref span162[num2]; QuestStep obj123 = new QuestStep(EInteractionType.Combat, null, new Vector3(-84.12953f, -14.744684f, -148.0814f), 146) { Fly = true, @@ -73080,23 +87990,28 @@ public static class AssemblyQuestLoader num3 = 1; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = new ComplexCombatData + Span span163 = CollectionsMarshal.AsSpan(list163); + num4 = 0; + span163[num4] = new ComplexCombatData { DataId = 134u, MinimumKillCount = 2u }; obj123.ComplexCombatData = list163; reference127 = obj123; - ref QuestStep reference128 = ref span63[1]; + num2++; + ref QuestStep reference128 = ref span162[num2]; QuestStep obj124 = new QuestStep(EInteractionType.Combat, null, new Vector3(-253.56975f, 6.8785334f, 162.0949f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new ComplexCombatData + num4 = 1; + List list164 = new List(num4); + CollectionsMarshal.SetCount(list164, num4); + Span span164 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span164[num3] = new ComplexCombatData { DataId = 358u, MinimumKillCount = 1u @@ -73105,7 +88020,8 @@ public static class AssemblyQuestLoader reference128 = obj124; obj122.Steps = list162; reference126 = obj122; - ref QuestSequence reference129 = ref span62[2]; + num++; + ref QuestSequence reference129 = ref span160[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -73113,7 +88029,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { Fly = true }; @@ -73126,24 +88044,30 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "plogon_enjoyer"; + Span span166 = CollectionsMarshal.AsSpan(list166); + index = 0; + span166[index] = "plogon_enjoyer"; questRoot18.Author = list166; - num = 3; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - Span span64 = CollectionsMarshal.AsSpan(list167); - ref QuestSequence reference130 = ref span64[0]; + index = 3; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + Span span167 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference130 = ref span167[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj126.Steps = list168; reference130 = obj126; - ref QuestSequence reference131 = ref span64[1]; + num++; + ref QuestSequence reference131 = ref span167[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 @@ -73151,7 +88075,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - ref QuestStep reference132 = ref CollectionsMarshal.AsSpan(list169)[0]; + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + ref QuestStep reference132 = ref span169[index2]; QuestStep obj128 = new QuestStep(EInteractionType.Combat, null, new Vector3(38.26816f, 2.6207216f, -275.37003f), 146) { Fly = true, @@ -73160,13 +88086,15 @@ public static class AssemblyQuestLoader num3 = 2; List list170 = new List(num3); CollectionsMarshal.SetCount(list170, num3); - Span span65 = CollectionsMarshal.AsSpan(list170); - span65[0] = new ComplexCombatData + Span span170 = CollectionsMarshal.AsSpan(list170); + num4 = 0; + span170[num4] = new ComplexCombatData { DataId = 742u, MinimumKillCount = 2u }; - span65[1] = new ComplexCombatData + num4++; + span170[num4] = new ComplexCombatData { DataId = 739u, MinimumKillCount = 2u @@ -73175,15 +88103,18 @@ public static class AssemblyQuestLoader reference132 = obj128; obj127.Steps = list169; reference131 = obj127; - ref QuestSequence reference133 = ref span64[2]; + num++; + ref QuestSequence reference133 = ref span167[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + Span span171 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span171[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { Fly = true }; @@ -73196,13 +88127,16 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - CollectionsMarshal.AsSpan(list172)[0] = "plogon_enjoyer"; + Span span172 = CollectionsMarshal.AsSpan(list172); + index = 0; + span172[index] = "plogon_enjoyer"; questRoot19.Author = list172; - num = 3; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - Span span66 = CollectionsMarshal.AsSpan(list173); - ref QuestSequence reference134 = ref span66[0]; + index = 3; + List list173 = new List(index); + CollectionsMarshal.SetCount(list173, index); + Span span173 = CollectionsMarshal.AsSpan(list173); + num = 0; + ref QuestSequence reference134 = ref span173[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -73210,44 +88144,57 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj130.Steps = list174; reference134 = obj130; - ref QuestSequence reference135 = ref span66[1]; + num++; + ref QuestSequence reference135 = ref span173[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - Span span67 = CollectionsMarshal.AsSpan(list175); - ref QuestStep reference136 = ref span67[0]; + index2 = 5; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + ref QuestStep reference136 = ref span175[num2]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 2002979u, new Vector3(-180.68213f, 6.301941f, -136.21735f), 146) { Fly = true, Land = true }; - num3 = 6; - List> list176 = new List>(num3); - CollectionsMarshal.SetCount(list176, num3); - Span> span68 = CollectionsMarshal.AsSpan(list176); - span68[0] = null; - ref List reference137 = ref span68[1]; - int num4 = 2; - List list177 = new List(num4); - CollectionsMarshal.SetCount(list177, num4); - Span span69 = CollectionsMarshal.AsSpan(list177); - span69[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span69[1] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list176 = new List>(num4); + CollectionsMarshal.SetCount(list176, num4); + Span> span176 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span176[num3] = null; + num3++; + ref List reference137 = ref span176[num3]; + int num5 = 2; + List list177 = new List(num5); + CollectionsMarshal.SetCount(list177, num5); + Span span177 = CollectionsMarshal.AsSpan(list177); + int num6 = 0; + span177[num6] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span177[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference137 = list177; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = null; + num3++; + span176[num3] = null; + num3++; + span176[num3] = null; + num3++; + span176[num3] = null; + num3++; + span176[num3] = null; obj132.RequiredQuestVariables = list176; reference136 = obj132; - ref QuestStep reference138 = ref span67[1]; + num2++; + ref QuestStep reference138 = ref span175[num2]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2002981u, new Vector3(-30.655396f, 8.651855f, -87.02222f), 146) { Fly = true, @@ -73256,48 +88203,66 @@ public static class AssemblyQuestLoader num3 = 6; List> list178 = new List>(num3); CollectionsMarshal.SetCount(list178, num3); - Span> span70 = CollectionsMarshal.AsSpan(list178); - span70[0] = null; - ref List reference139 = ref span70[1]; - num4 = 2; - List list179 = new List(num4); - CollectionsMarshal.SetCount(list179, num4); - Span span71 = CollectionsMarshal.AsSpan(list179); - span71[0] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span71[1] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + Span> span178 = CollectionsMarshal.AsSpan(list178); + num4 = 0; + span178[num4] = null; + num4++; + ref List reference139 = ref span178[num4]; + num6 = 2; + List list179 = new List(num6); + CollectionsMarshal.SetCount(list179, num6); + Span span179 = CollectionsMarshal.AsSpan(list179); + num5 = 0; + span179[num5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span179[num5] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); reference139 = list179; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = null; + num4++; + span178[num4] = null; + num4++; + span178[num4] = null; + num4++; + span178[num4] = null; + num4++; + span178[num4] = null; obj133.RequiredQuestVariables = list178; reference138 = obj133; - ref QuestStep reference140 = ref span67[2]; + num2++; + ref QuestStep reference140 = ref span175[num2]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 2002982u, new Vector3(-116.44165f, -0.3204956f, -34.40918f), 146) { Fly = true, Land = true }; - num3 = 6; - List> list180 = new List>(num3); - CollectionsMarshal.SetCount(list180, num3); - Span> span72 = CollectionsMarshal.AsSpan(list180); - span72[0] = null; - ref List reference141 = ref span72[1]; - num4 = 2; - List list181 = new List(num4); - CollectionsMarshal.SetCount(list181, num4); - Span span73 = CollectionsMarshal.AsSpan(list181); - span73[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span73[1] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List> list180 = new List>(num4); + CollectionsMarshal.SetCount(list180, num4); + Span> span180 = CollectionsMarshal.AsSpan(list180); + num3 = 0; + span180[num3] = null; + num3++; + ref List reference141 = ref span180[num3]; + num5 = 2; + List list181 = new List(num5); + CollectionsMarshal.SetCount(list181, num5); + Span span181 = CollectionsMarshal.AsSpan(list181); + num6 = 0; + span181[num6] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span181[num6] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); reference141 = list181; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = null; + num3++; + span180[num3] = null; + num3++; + span180[num3] = null; + num3++; + span180[num3] = null; + num3++; + span180[num3] = null; obj134.RequiredQuestVariables = list180; reference140 = obj134; - ref QuestStep reference142 = ref span67[3]; + num2++; + ref QuestStep reference142 = ref span175[num2]; QuestStep obj135 = new QuestStep(EInteractionType.Interact, 2002985u, new Vector3(-41.031555f, 0.16778564f, 15.915161f), 146) { Fly = true, @@ -73306,52 +88271,72 @@ public static class AssemblyQuestLoader num3 = 6; List> list182 = new List>(num3); CollectionsMarshal.SetCount(list182, num3); - Span> span74 = CollectionsMarshal.AsSpan(list182); - span74[0] = null; - ref List reference143 = ref span74[1]; - num4 = 3; - List list183 = new List(num4); - CollectionsMarshal.SetCount(list183, num4); - Span span75 = CollectionsMarshal.AsSpan(list183); - span75[0] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span75[1] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); - span75[2] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); + Span> span182 = CollectionsMarshal.AsSpan(list182); + num4 = 0; + span182[num4] = null; + num4++; + ref List reference143 = ref span182[num4]; + num6 = 3; + List list183 = new List(num6); + CollectionsMarshal.SetCount(list183, num6); + Span span183 = CollectionsMarshal.AsSpan(list183); + num5 = 0; + span183[num5] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span183[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span183[num5] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); reference143 = list183; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = null; + num4++; + span182[num4] = null; + num4++; + span182[num4] = null; + num4++; + span182[num4] = null; + num4++; + span182[num4] = null; obj135.RequiredQuestVariables = list182; reference142 = obj135; - ref QuestStep reference144 = ref span67[4]; + num2++; + ref QuestStep reference144 = ref span175[num2]; QuestStep obj136 = new QuestStep(EInteractionType.Interact, 2002986u, new Vector3(-78.81293f, -1.083435f, 44.052734f), 146) { Fly = true, Land = true }; - num3 = 6; - List> list184 = new List>(num3); - CollectionsMarshal.SetCount(list184, num3); - Span> span76 = CollectionsMarshal.AsSpan(list184); - span76[0] = null; - ref List reference145 = ref span76[1]; - num4 = 3; - List list185 = new List(num4); - CollectionsMarshal.SetCount(list185, num4); - Span span77 = CollectionsMarshal.AsSpan(list185); - span77[0] = new QuestWorkValue((byte)3, (byte)1, EQuestWorkMode.Bitwise); - span77[1] = new QuestWorkValue((byte)3, (byte)2, EQuestWorkMode.Bitwise); - span77[2] = new QuestWorkValue((byte)3, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List> list184 = new List>(num4); + CollectionsMarshal.SetCount(list184, num4); + Span> span184 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span184[num3] = null; + num3++; + ref List reference145 = ref span184[num3]; + num5 = 3; + List list185 = new List(num5); + CollectionsMarshal.SetCount(list185, num5); + Span span185 = CollectionsMarshal.AsSpan(list185); + num6 = 0; + span185[num6] = new QuestWorkValue((byte)3, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span185[num6] = new QuestWorkValue((byte)3, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span185[num6] = new QuestWorkValue((byte)3, (byte)4, EQuestWorkMode.Bitwise); reference145 = list185; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = null; + num3++; + span184[num3] = null; + num3++; + span184[num3] = null; + num3++; + span184[num3] = null; + num3++; + span184[num3] = null; obj136.RequiredQuestVariables = list184; reference144 = obj136; obj131.Steps = list175; reference135 = obj131; - ref QuestSequence reference146 = ref span66[2]; + num++; + ref QuestSequence reference146 = ref span173[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -73359,7 +88344,9 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { Fly = true }; @@ -73372,24 +88359,30 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - CollectionsMarshal.AsSpan(list187)[0] = "plogon_enjoyer"; + Span span187 = CollectionsMarshal.AsSpan(list187); + index = 0; + span187[index] = "plogon_enjoyer"; questRoot20.Author = list187; - num = 3; - List list188 = new List(num); - CollectionsMarshal.SetCount(list188, num); - Span span78 = CollectionsMarshal.AsSpan(list188); - ref QuestSequence reference147 = ref span78[0]; + index = 3; + List list188 = new List(index); + CollectionsMarshal.SetCount(list188, index); + Span span188 = CollectionsMarshal.AsSpan(list188); + num = 0; + ref QuestSequence reference147 = ref span188[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj138.Steps = list189; reference147 = obj138; - ref QuestSequence reference148 = ref span78[1]; + num++; + ref QuestSequence reference148 = ref span188[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -73397,7 +88390,9 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - ref QuestStep reference149 = ref CollectionsMarshal.AsSpan(list190)[0]; + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + ref QuestStep reference149 = ref span190[index2]; QuestStep obj140 = new QuestStep(EInteractionType.Combat, null, new Vector3(-40.402416f, -1.1266766f, 0.71999836f), 146) { Fly = true, @@ -73406,13 +88401,15 @@ public static class AssemblyQuestLoader num3 = 2; List list191 = new List(num3); CollectionsMarshal.SetCount(list191, num3); - Span span79 = CollectionsMarshal.AsSpan(list191); - span79[0] = new ComplexCombatData + Span span191 = CollectionsMarshal.AsSpan(list191); + num4 = 0; + span191[num4] = new ComplexCombatData { DataId = 358u, MinimumKillCount = 3u }; - span79[1] = new ComplexCombatData + num4++; + span191[num4] = new ComplexCombatData { DataId = 2451u, MinimumKillCount = 1u @@ -73421,15 +88418,18 @@ public static class AssemblyQuestLoader reference149 = obj140; obj139.Steps = list190; reference148 = obj139; - ref QuestSequence reference150 = ref span78[2]; + num++; + ref QuestSequence reference150 = ref span188[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span192[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { Fly = true }; @@ -73442,13 +88442,16 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "plogon_enjoyer"; + Span span193 = CollectionsMarshal.AsSpan(list193); + index = 0; + span193[index] = "plogon_enjoyer"; questRoot21.Author = list193; - num = 4; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span80 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference151 = ref span80[0]; + index = 4; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + Span span194 = CollectionsMarshal.AsSpan(list194); + num = 0; + ref QuestSequence reference151 = ref span194[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -73456,28 +88459,35 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span195[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj142.Steps = list195; reference151 = obj142; - ref QuestSequence reference152 = ref span80[1]; + num++; + ref QuestSequence reference152 = ref span194[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1008327u, new Vector3(45.303955f, 4f, -345.11334f), 146) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.Interact, 1008327u, new Vector3(45.303955f, 4f, -345.11334f), 146) { Fly = true }; obj143.Steps = list196; reference152 = obj143; - span80[2] = new QuestSequence + num++; + span194[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference153 = ref span80[3]; + num++; + ref QuestSequence reference153 = ref span194[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -73485,7 +88495,9 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { Fly = true }; @@ -73503,24 +88515,30 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "plogon_enjoyer"; + Span span198 = CollectionsMarshal.AsSpan(list198); + index = 0; + span198[index] = "plogon_enjoyer"; questRoot22.Author = list198; - num = 3; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span81 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference154 = ref span81[0]; + index = 3; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + Span span199 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference154 = ref span199[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj145.Steps = list200; reference154 = obj145; - ref QuestSequence reference155 = ref span81[1]; + num++; + ref QuestSequence reference155 = ref span199[num]; QuestSequence obj146 = new QuestSequence { Sequence = 1 @@ -73528,24 +88546,29 @@ public static class AssemblyQuestLoader num2 = 6; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span82 = CollectionsMarshal.AsSpan(list201); - ref QuestStep reference156 = ref span82[0]; + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + ref QuestStep reference156 = ref span201[index2]; QuestStep obj147 = new QuestStep(EInteractionType.Combat, 2003169u, new Vector3(-191.18036f, 3.6774292f, -162.00513f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = 80u; + num4 = 1; + List list202 = new List(num4); + CollectionsMarshal.SetCount(list202, num4); + Span span202 = CollectionsMarshal.AsSpan(list202); + num3 = 0; + span202[num3] = 80u; obj147.KillEnemyDataIds = list202; reference156 = obj147; - span82[1] = new QuestStep(EInteractionType.UseItem, 80u, new Vector3(-198.6194f, 4.4395595f, -156.7357f), 146) + index2++; + span201[index2] = new QuestStep(EInteractionType.UseItem, 80u, new Vector3(-198.6194f, 4.4395595f, -156.7357f), 146) { ItemId = 2001191u }; - ref QuestStep reference157 = ref span82[2]; + index2++; + ref QuestStep reference157 = ref span201[index2]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, 2003168u, new Vector3(-155.44366f, 3.8604736f, -132.21948f), 146) { Fly = true, @@ -73554,40 +88577,50 @@ public static class AssemblyQuestLoader num3 = 1; List list203 = new List(num3); CollectionsMarshal.SetCount(list203, num3); - CollectionsMarshal.AsSpan(list203)[0] = 80u; + Span span203 = CollectionsMarshal.AsSpan(list203); + num4 = 0; + span203[num4] = 80u; obj148.KillEnemyDataIds = list203; reference157 = obj148; - span82[3] = new QuestStep(EInteractionType.UseItem, 80u, new Vector3(-159.83832f, 4.2440715f, -136.43097f), 146) + index2++; + span201[index2] = new QuestStep(EInteractionType.UseItem, 80u, new Vector3(-159.83832f, 4.2440715f, -136.43097f), 146) { ItemId = 2001191u }; - ref QuestStep reference158 = ref span82[4]; + index2++; + ref QuestStep reference158 = ref span201[index2]; QuestStep obj149 = new QuestStep(EInteractionType.Combat, 2003172u, new Vector3(-19.36377f, 0.47296143f, 15.182739f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = 80u; + num4 = 1; + List list204 = new List(num4); + CollectionsMarshal.SetCount(list204, num4); + Span span204 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span204[num3] = 80u; obj149.KillEnemyDataIds = list204; reference158 = obj149; - span82[5] = new QuestStep(EInteractionType.UseItem, 81u, new Vector3(-19.760498f, 0.97421986f, 19.790894f), 146) + index2++; + span201[index2] = new QuestStep(EInteractionType.UseItem, 81u, new Vector3(-19.760498f, 0.97421986f, 19.790894f), 146) { ItemId = 2001191u }; obj146.Steps = list201; reference155 = obj146; - ref QuestSequence reference159 = ref span81[2]; + num++; + ref QuestSequence reference159 = ref span199[num]; QuestSequence obj150 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + Span span205 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span205[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { Fly = true }; @@ -73600,13 +88633,16 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "plogon_enjoyer"; + Span span206 = CollectionsMarshal.AsSpan(list206); + index = 0; + span206[index] = "plogon_enjoyer"; questRoot23.Author = list206; - num = 3; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span83 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference160 = ref span83[0]; + index = 3; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + Span span207 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference160 = ref span207[num]; QuestSequence obj151 = new QuestSequence { Sequence = 0 @@ -73614,19 +88650,23 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + Span span208 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span208[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj151.Steps = list208; reference160 = obj151; - ref QuestSequence reference161 = ref span83[1]; + num++; + ref QuestSequence reference161 = ref span207[num]; QuestSequence obj152 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span84 = CollectionsMarshal.AsSpan(list209); - ref QuestStep reference162 = ref span84[0]; + index2 = 6; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + Span span209 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + ref QuestStep reference162 = ref span209[num2]; QuestStep obj153 = new QuestStep(EInteractionType.Interact, 2003141u, new Vector3(-22.537598f, 3.616333f, -44.663208f), 146) { Fly = true @@ -73634,49 +88674,69 @@ public static class AssemblyQuestLoader num3 = 6; List> list210 = new List>(num3); CollectionsMarshal.SetCount(list210, num3); - Span> span85 = CollectionsMarshal.AsSpan(list210); - span85[0] = null; - span85[1] = null; - span85[2] = null; - ref List reference163 = ref span85[3]; - num4 = 3; - List list211 = new List(num4); - CollectionsMarshal.SetCount(list211, num4); - Span span86 = CollectionsMarshal.AsSpan(list211); - span86[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span86[1] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span86[2] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + Span> span210 = CollectionsMarshal.AsSpan(list210); + num4 = 0; + span210[num4] = null; + num4++; + span210[num4] = null; + num4++; + span210[num4] = null; + num4++; + ref List reference163 = ref span210[num4]; + num6 = 3; + List list211 = new List(num6); + CollectionsMarshal.SetCount(list211, num6); + Span span211 = CollectionsMarshal.AsSpan(list211); + num5 = 0; + span211[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span211[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span211[num5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference163 = list211; - span85[4] = null; - span85[5] = null; + num4++; + span210[num4] = null; + num4++; + span210[num4] = null; obj153.RequiredQuestVariables = list210; reference162 = obj153; - ref QuestStep reference164 = ref span84[1]; + num2++; + ref QuestStep reference164 = ref span209[num2]; QuestStep obj154 = new QuestStep(EInteractionType.Interact, 2003148u, new Vector3(15.27417f, 2.1820068f, 22.9953f), 146) { Fly = true }; - num3 = 6; - List> list212 = new List>(num3); - CollectionsMarshal.SetCount(list212, num3); - Span> span87 = CollectionsMarshal.AsSpan(list212); - span87[0] = null; - span87[1] = null; - span87[2] = null; - ref List reference165 = ref span87[3]; - num4 = 3; - List list213 = new List(num4); - CollectionsMarshal.SetCount(list213, num4); - Span span88 = CollectionsMarshal.AsSpan(list213); - span88[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span88[1] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span88[2] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list212 = new List>(num4); + CollectionsMarshal.SetCount(list212, num4); + Span> span212 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span212[num3] = null; + num3++; + span212[num3] = null; + num3++; + span212[num3] = null; + num3++; + ref List reference165 = ref span212[num3]; + num5 = 3; + List list213 = new List(num5); + CollectionsMarshal.SetCount(list213, num5); + Span span213 = CollectionsMarshal.AsSpan(list213); + num6 = 0; + span213[num6] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span213[num6] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num6++; + span213[num6] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference165 = list213; - span87[4] = null; - span87[5] = null; + num3++; + span212[num3] = null; + num3++; + span212[num3] = null; obj154.RequiredQuestVariables = list212; reference164 = obj154; - ref QuestStep reference166 = ref span84[2]; + num2++; + ref QuestStep reference166 = ref span209[num2]; QuestStep obj155 = new QuestStep(EInteractionType.Interact, 2003147u, new Vector3(25.192627f, 2.8533936f, 10.788086f), 146) { Fly = true @@ -73684,48 +88744,67 @@ public static class AssemblyQuestLoader num3 = 6; List> list214 = new List>(num3); CollectionsMarshal.SetCount(list214, num3); - Span> span89 = CollectionsMarshal.AsSpan(list214); - span89[0] = null; - span89[1] = null; - span89[2] = null; - ref List reference167 = ref span89[3]; - num4 = 3; - List list215 = new List(num4); - CollectionsMarshal.SetCount(list215, num4); - Span span90 = CollectionsMarshal.AsSpan(list215); - span90[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span90[1] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span90[2] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + Span> span214 = CollectionsMarshal.AsSpan(list214); + num4 = 0; + span214[num4] = null; + num4++; + span214[num4] = null; + num4++; + span214[num4] = null; + num4++; + ref List reference167 = ref span214[num4]; + num6 = 3; + List list215 = new List(num6); + CollectionsMarshal.SetCount(list215, num6); + Span span215 = CollectionsMarshal.AsSpan(list215); + num5 = 0; + span215[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span215[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span215[num5] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference167 = list215; - span89[4] = null; - span89[5] = null; + num4++; + span214[num4] = null; + num4++; + span214[num4] = null; obj155.RequiredQuestVariables = list214; reference166 = obj155; - ref QuestStep reference168 = ref span84[3]; + num2++; + ref QuestStep reference168 = ref span209[num2]; QuestStep obj156 = new QuestStep(EInteractionType.Interact, 2003140u, new Vector3(-37.094727f, -0.5340576f, 14.90802f), 146) { Fly = true }; - num3 = 6; - List> list216 = new List>(num3); - CollectionsMarshal.SetCount(list216, num3); - Span> span91 = CollectionsMarshal.AsSpan(list216); - span91[0] = null; - span91[1] = null; - span91[2] = null; - ref List reference169 = ref span91[3]; - num4 = 2; - List list217 = new List(num4); - CollectionsMarshal.SetCount(list217, num4); - Span span92 = CollectionsMarshal.AsSpan(list217); - span92[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span92[1] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list216 = new List>(num4); + CollectionsMarshal.SetCount(list216, num4); + Span> span216 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span216[num3] = null; + num3++; + span216[num3] = null; + num3++; + span216[num3] = null; + num3++; + ref List reference169 = ref span216[num3]; + num5 = 2; + List list217 = new List(num5); + CollectionsMarshal.SetCount(list217, num5); + Span span217 = CollectionsMarshal.AsSpan(list217); + num6 = 0; + span217[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span217[num6] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference169 = list217; - span91[4] = null; - span91[5] = null; + num3++; + span216[num3] = null; + num3++; + span216[num3] = null; obj156.RequiredQuestVariables = list216; reference168 = obj156; - ref QuestStep reference170 = ref span84[4]; + num2++; + ref QuestStep reference170 = ref span209[num2]; QuestStep obj157 = new QuestStep(EInteractionType.Interact, 2003136u, new Vector3(-52.99463f, -1.2055054f, 17.532532f), 146) { Fly = true @@ -73733,39 +88812,52 @@ public static class AssemblyQuestLoader num3 = 6; List> list218 = new List>(num3); CollectionsMarshal.SetCount(list218, num3); - Span> span93 = CollectionsMarshal.AsSpan(list218); - span93[0] = null; - span93[1] = null; - span93[2] = null; - ref List reference171 = ref span93[3]; - num4 = 4; - List list219 = new List(num4); - CollectionsMarshal.SetCount(list219, num4); - Span span94 = CollectionsMarshal.AsSpan(list219); - span94[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span94[1] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span94[2] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span94[3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + Span> span218 = CollectionsMarshal.AsSpan(list218); + num4 = 0; + span218[num4] = null; + num4++; + span218[num4] = null; + num4++; + span218[num4] = null; + num4++; + ref List reference171 = ref span218[num4]; + num6 = 4; + List list219 = new List(num6); + CollectionsMarshal.SetCount(list219, num6); + Span span219 = CollectionsMarshal.AsSpan(list219); + num5 = 0; + span219[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span219[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span219[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span219[num5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference171 = list219; - span93[4] = null; - span93[5] = null; + num4++; + span218[num4] = null; + num4++; + span218[num4] = null; obj157.RequiredQuestVariables = list218; reference170 = obj157; - ref QuestStep reference172 = ref span84[5]; + num2++; + ref QuestStep reference172 = ref span209[num2]; QuestStep obj158 = new QuestStep(EInteractionType.Combat, null, new Vector3(-52.99463f, -1.2055054f, 17.532532f), 146) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - Span span95 = CollectionsMarshal.AsSpan(list220); - span95[0] = new ComplexCombatData + num4 = 2; + List list220 = new List(num4); + CollectionsMarshal.SetCount(list220, num4); + Span span220 = CollectionsMarshal.AsSpan(list220); + num3 = 0; + span220[num3] = new ComplexCombatData { DataId = 740u, MinimumKillCount = 1u }; - span95[1] = new ComplexCombatData + num3++; + span220[num3] = new ComplexCombatData { DataId = 741u, MinimumKillCount = 1u @@ -73774,7 +88866,8 @@ public static class AssemblyQuestLoader reference172 = obj158; obj152.Steps = list209; reference161 = obj152; - ref QuestSequence reference173 = ref span83[2]; + num++; + ref QuestSequence reference173 = ref span207[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -73782,9 +88875,11 @@ public static class AssemblyQuestLoader num2 = 2; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span96 = CollectionsMarshal.AsSpan(list221); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.393555f, -2.04119f, 36.344994f), 146); - span96[1] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span221[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.393555f, -2.04119f, 36.344994f), 146); + index2++; + span221[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { DelaySecondsAtStart = 3f, Fly = true @@ -73798,24 +88893,30 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "plogon_enjoyer"; + Span span222 = CollectionsMarshal.AsSpan(list222); + index = 0; + span222[index] = "plogon_enjoyer"; questRoot24.Author = list222; - num = 3; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span97 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference174 = ref span97[0]; + index = 3; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + Span span223 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference174 = ref span223[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span224[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj160.Steps = list224; reference174 = obj160; - ref QuestSequence reference175 = ref span97[1]; + num++; + ref QuestSequence reference175 = ref span223[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -73823,7 +88924,9 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list225)[0]; + Span span225 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + ref QuestStep reference176 = ref span225[index2]; QuestStep obj162 = new QuestStep(EInteractionType.Combat, null, new Vector3(-9.631764f, 4.530592f, -52.115612f), 146) { Fly = true, @@ -73832,7 +88935,9 @@ public static class AssemblyQuestLoader num3 = 1; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = new ComplexCombatData + Span span226 = CollectionsMarshal.AsSpan(list226); + num4 = 0; + span226[num4] = new ComplexCombatData { DataId = 2452u, MinimumKillCount = 2u @@ -73841,17 +88946,20 @@ public static class AssemblyQuestLoader reference176 = obj162; obj161.Steps = list225; reference175 = obj161; - ref QuestSequence reference177 = ref span97[2]; + num++; + ref QuestSequence reference177 = ref span223[num]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - Span span98 = CollectionsMarshal.AsSpan(list227); - span98[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-74.8761f, -1.9533517f, -51.731575f), 146); - span98[1] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + index2 = 2; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + Span span227 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span227[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-74.8761f, -1.9533517f, -51.731575f), 146); + num2++; + span227[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { Fly = true }; @@ -73875,13 +88983,16 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - CollectionsMarshal.AsSpan(list228)[0] = "plogon_enjoyer"; + Span span228 = CollectionsMarshal.AsSpan(list228); + index = 0; + span228[index] = "plogon_enjoyer"; questRoot25.Author = list228; - num = 4; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - Span span99 = CollectionsMarshal.AsSpan(list229); - ref QuestSequence reference178 = ref span99[0]; + index = 4; + List list229 = new List(index); + CollectionsMarshal.SetCount(list229, index); + Span span229 = CollectionsMarshal.AsSpan(list229); + num = 0; + ref QuestSequence reference178 = ref span229[num]; QuestSequence obj164 = new QuestSequence { Sequence = 0 @@ -73889,25 +89000,31 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146); + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span230[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146); obj164.Steps = list230; reference178 = obj164; - ref QuestSequence reference179 = ref span99[1]; + num++; + ref QuestSequence reference179 = ref span229[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1005848u, new Vector3(-101.487854f, 8.097177f, 403.28064f), 146) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.Interact, 1005848u, new Vector3(-101.487854f, 8.097177f, 403.28064f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj165.Steps = list231; reference179 = obj165; - ref QuestSequence reference180 = ref span99[2]; + num++; + ref QuestSequence reference180 = ref span229[num]; QuestSequence obj166 = new QuestSequence { Sequence = 2 @@ -73915,30 +89032,40 @@ public static class AssemblyQuestLoader num2 = 4; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span100 = CollectionsMarshal.AsSpan(list232); - ref QuestStep reference181 = ref span100[0]; + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + ref QuestStep reference181 = ref span232[index2]; QuestStep obj167 = new QuestStep(EInteractionType.Action, 2003353u, new Vector3(-248.0965f, 2.8533936f, 675.95935f), 146) { Action = EAction.FieryBreath }; - num3 = 6; - List> list233 = new List>(num3); - CollectionsMarshal.SetCount(list233, num3); - Span> span101 = CollectionsMarshal.AsSpan(list233); - span101[0] = null; - span101[1] = null; - span101[2] = null; - ref List reference182 = ref span101[3]; - num4 = 1; - List list234 = new List(num4); - CollectionsMarshal.SetCount(list234, num4); - CollectionsMarshal.AsSpan(list234)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4 = 6; + List> list233 = new List>(num4); + CollectionsMarshal.SetCount(list233, num4); + Span> span233 = CollectionsMarshal.AsSpan(list233); + num3 = 0; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + ref List reference182 = ref span233[num3]; + num5 = 1; + List list234 = new List(num5); + CollectionsMarshal.SetCount(list234, num5); + Span span234 = CollectionsMarshal.AsSpan(list234); + num6 = 0; + span234[num6] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference182 = list234; - span101[4] = null; - span101[5] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = null; obj167.RequiredQuestVariables = list233; reference181 = obj167; - ref QuestStep reference183 = ref span100[1]; + index2++; + ref QuestStep reference183 = ref span232[index2]; QuestStep obj168 = new QuestStep(EInteractionType.Action, 2003354u, new Vector3(-132.03638f, -1.449646f, 778.8052f), 146) { Action = EAction.FieryBreath @@ -73946,47 +89073,65 @@ public static class AssemblyQuestLoader num3 = 6; List> list235 = new List>(num3); CollectionsMarshal.SetCount(list235, num3); - Span> span102 = CollectionsMarshal.AsSpan(list235); - span102[0] = null; - span102[1] = null; - span102[2] = null; - ref List reference184 = ref span102[3]; - num4 = 2; - List list236 = new List(num4); - CollectionsMarshal.SetCount(list236, num4); - Span span103 = CollectionsMarshal.AsSpan(list236); - span103[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span103[1] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + Span> span235 = CollectionsMarshal.AsSpan(list235); + num4 = 0; + span235[num4] = null; + num4++; + span235[num4] = null; + num4++; + span235[num4] = null; + num4++; + ref List reference184 = ref span235[num4]; + num6 = 2; + List list236 = new List(num6); + CollectionsMarshal.SetCount(list236, num6); + Span span236 = CollectionsMarshal.AsSpan(list236); + num5 = 0; + span236[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span236[num5] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference184 = list236; - span102[4] = null; - span102[5] = null; + num4++; + span235[num4] = null; + num4++; + span235[num4] = null; obj168.RequiredQuestVariables = list235; reference183 = obj168; - ref QuestStep reference185 = ref span100[2]; + index2++; + ref QuestStep reference185 = ref span232[index2]; QuestStep obj169 = new QuestStep(EInteractionType.Action, 2003356u, new Vector3(78.446655f, 14.328186f, 589.9595f), 146) { Action = EAction.FieryBreath }; - num3 = 6; - List> list237 = new List>(num3); - CollectionsMarshal.SetCount(list237, num3); - Span> span104 = CollectionsMarshal.AsSpan(list237); - span104[0] = null; - span104[1] = null; - span104[2] = null; - ref List reference186 = ref span104[3]; - num4 = 2; - List list238 = new List(num4); - CollectionsMarshal.SetCount(list238, num4); - Span span105 = CollectionsMarshal.AsSpan(list238); - span105[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span105[1] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list237 = new List>(num4); + CollectionsMarshal.SetCount(list237, num4); + Span> span237 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span237[num3] = null; + num3++; + span237[num3] = null; + num3++; + span237[num3] = null; + num3++; + ref List reference186 = ref span237[num3]; + num5 = 2; + List list238 = new List(num5); + CollectionsMarshal.SetCount(list238, num5); + Span span238 = CollectionsMarshal.AsSpan(list238); + num6 = 0; + span238[num6] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span238[num6] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference186 = list238; - span104[4] = null; - span104[5] = null; + num3++; + span237[num3] = null; + num3++; + span237[num3] = null; obj169.RequiredQuestVariables = list237; reference185 = obj169; - ref QuestStep reference187 = ref span100[3]; + index2++; + ref QuestStep reference187 = ref span232[index2]; QuestStep obj170 = new QuestStep(EInteractionType.Action, 2003357u, new Vector3(179.9801f, 6.6376343f, 601.15967f), 146) { Action = EAction.FieryBreath @@ -73994,37 +89139,48 @@ public static class AssemblyQuestLoader num3 = 6; List> list239 = new List>(num3); CollectionsMarshal.SetCount(list239, num3); - Span> span106 = CollectionsMarshal.AsSpan(list239); - span106[0] = null; - span106[1] = null; - span106[2] = null; - ref List reference188 = ref span106[3]; - num4 = 1; - List list240 = new List(num4); - CollectionsMarshal.SetCount(list240, num4); - CollectionsMarshal.AsSpan(list240)[0] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + Span> span239 = CollectionsMarshal.AsSpan(list239); + num4 = 0; + span239[num4] = null; + num4++; + span239[num4] = null; + num4++; + span239[num4] = null; + num4++; + ref List reference188 = ref span239[num4]; + num6 = 1; + List list240 = new List(num6); + CollectionsMarshal.SetCount(list240, num6); + Span span240 = CollectionsMarshal.AsSpan(list240); + num5 = 0; + span240[num5] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference188 = list240; - span106[4] = null; - span106[5] = null; + num4++; + span239[num4] = null; + num4++; + span239[num4] = null; obj170.RequiredQuestVariables = list239; reference187 = obj170; obj166.Steps = list232; reference180 = obj166; - ref QuestSequence reference189 = ref span99[3]; + num++; + ref QuestSequence reference189 = ref span229[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - Span span107 = CollectionsMarshal.AsSpan(list241); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-56.11375f, 25.301596f, -391.2648f), 146) + index2 = 2; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + Span span241 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span241[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-56.11375f, 25.301596f, -391.2648f), 146) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146) + num2++; + span241[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146) { Fly = true }; @@ -74037,13 +89193,16 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "plogon_enjoyer"; + Span span242 = CollectionsMarshal.AsSpan(list242); + index = 0; + span242[index] = "plogon_enjoyer"; questRoot26.Author = list242; - num = 5; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span108 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference190 = ref span108[0]; + index = 5; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + Span span243 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference190 = ref span243[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -74051,24 +89210,30 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146); + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span244[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146); obj172.Steps = list244; reference190 = obj172; - ref QuestSequence reference191 = ref span108[1]; + num++; + ref QuestSequence reference191 = ref span243[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1005745u, new Vector3(22.720581f, 4.240738f, -443.07623f), 146) + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + Span span245 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span245[num2] = new QuestStep(EInteractionType.Interact, 1005745u, new Vector3(22.720581f, 4.240738f, -443.07623f), 146) { Fly = true }; obj173.Steps = list245; reference191 = obj173; - ref QuestSequence reference192 = ref span108[2]; + num++; + ref QuestSequence reference192 = ref span243[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 @@ -74076,36 +89241,47 @@ public static class AssemblyQuestLoader num2 = 11; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span109 = CollectionsMarshal.AsSpan(list246); - span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-126.48953f, 27.57419f, 138.61473f), 146) + Span span246 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span246[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-126.48953f, 27.57419f, 138.61473f), 146) { Fly = true }; - ref QuestStep reference193 = ref span109[1]; + index2++; + ref QuestStep reference193 = ref span246[index2]; QuestStep obj175 = new QuestStep(EInteractionType.Interact, 2003048u, new Vector3(-136.85822f, 18.753235f, 116.50256f), 146) { Mount = true }; - num3 = 6; - List> list247 = new List>(num3); - CollectionsMarshal.SetCount(list247, num3); - Span> span110 = CollectionsMarshal.AsSpan(list247); - span110[0] = null; - span110[1] = null; - ref List reference194 = ref span110[2]; - num4 = 2; - List list248 = new List(num4); - CollectionsMarshal.SetCount(list248, num4); - Span span111 = CollectionsMarshal.AsSpan(list248); - span111[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span111[1] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list247 = new List>(num4); + CollectionsMarshal.SetCount(list247, num4); + Span> span247 = CollectionsMarshal.AsSpan(list247); + num3 = 0; + span247[num3] = null; + num3++; + span247[num3] = null; + num3++; + ref List reference194 = ref span247[num3]; + num5 = 2; + List list248 = new List(num5); + CollectionsMarshal.SetCount(list248, num5); + Span span248 = CollectionsMarshal.AsSpan(list248); + num6 = 0; + span248[num6] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span248[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference194 = list248; - span110[3] = null; - span110[4] = null; - span110[5] = null; + num3++; + span247[num3] = null; + num3++; + span247[num3] = null; + num3++; + span247[num3] = null; obj175.RequiredQuestVariables = list247; reference193 = obj175; - ref QuestStep reference195 = ref span109[2]; + index2++; + ref QuestStep reference195 = ref span246[index2]; QuestStep obj176 = new QuestStep(EInteractionType.Interact, 2003049u, new Vector3(-121.78229f, 28.732666f, 140.33716f), 146) { Mount = true @@ -74113,43 +89289,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list249 = new List>(num3); CollectionsMarshal.SetCount(list249, num3); - Span> span112 = CollectionsMarshal.AsSpan(list249); - span112[0] = null; - span112[1] = null; - ref List reference196 = ref span112[2]; - num4 = 1; - List list250 = new List(num4); - CollectionsMarshal.SetCount(list250, num4); - CollectionsMarshal.AsSpan(list250)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + Span> span249 = CollectionsMarshal.AsSpan(list249); + num4 = 0; + span249[num4] = null; + num4++; + span249[num4] = null; + num4++; + ref List reference196 = ref span249[num4]; + num6 = 1; + List list250 = new List(num6); + CollectionsMarshal.SetCount(list250, num6); + Span span250 = CollectionsMarshal.AsSpan(list250); + num5 = 0; + span250[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference196 = list250; - span112[3] = null; - span112[4] = null; - span112[5] = null; + num4++; + span249[num4] = null; + num4++; + span249[num4] = null; + num4++; + span249[num4] = null; obj176.RequiredQuestVariables = list249; reference195 = obj176; - ref QuestStep reference197 = ref span109[3]; + index2++; + ref QuestStep reference197 = ref span246[index2]; QuestStep obj177 = new QuestStep(EInteractionType.Interact, 2003050u, new Vector3(-91.96619f, 43.07617f, 156.84741f), 146) { Mount = true }; - num3 = 6; - List> list251 = new List>(num3); - CollectionsMarshal.SetCount(list251, num3); - Span> span113 = CollectionsMarshal.AsSpan(list251); - span113[0] = null; - span113[1] = null; - ref List reference198 = ref span113[2]; - num4 = 1; - List list252 = new List(num4); - CollectionsMarshal.SetCount(list252, num4); - CollectionsMarshal.AsSpan(list252)[0] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List> list251 = new List>(num4); + CollectionsMarshal.SetCount(list251, num4); + Span> span251 = CollectionsMarshal.AsSpan(list251); + num3 = 0; + span251[num3] = null; + num3++; + span251[num3] = null; + num3++; + ref List reference198 = ref span251[num3]; + num5 = 1; + List list252 = new List(num5); + CollectionsMarshal.SetCount(list252, num5); + Span span252 = CollectionsMarshal.AsSpan(list252); + num6 = 0; + span252[num6] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference198 = list252; - span113[3] = null; - span113[4] = null; - span113[5] = null; + num3++; + span251[num3] = null; + num3++; + span251[num3] = null; + num3++; + span251[num3] = null; obj177.RequiredQuestVariables = list251; reference197 = obj177; - ref QuestStep reference199 = ref span109[4]; + index2++; + ref QuestStep reference199 = ref span246[index2]; QuestStep obj178 = new QuestStep(EInteractionType.Interact, 2003051u, new Vector3(-55.40558f, 42.526855f, 192.18738f), 146) { Mount = true @@ -74157,46 +89351,65 @@ public static class AssemblyQuestLoader num3 = 6; List> list253 = new List>(num3); CollectionsMarshal.SetCount(list253, num3); - Span> span114 = CollectionsMarshal.AsSpan(list253); - span114[0] = null; - span114[1] = null; - ref List reference200 = ref span114[2]; - num4 = 3; - List list254 = new List(num4); - CollectionsMarshal.SetCount(list254, num4); - Span span115 = CollectionsMarshal.AsSpan(list254); - span115[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span115[1] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span115[2] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + Span> span253 = CollectionsMarshal.AsSpan(list253); + num4 = 0; + span253[num4] = null; + num4++; + span253[num4] = null; + num4++; + ref List reference200 = ref span253[num4]; + num6 = 3; + List list254 = new List(num6); + CollectionsMarshal.SetCount(list254, num6); + Span span254 = CollectionsMarshal.AsSpan(list254); + num5 = 0; + span254[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span254[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span254[num5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference200 = list254; - span114[3] = null; - span114[4] = null; - span114[5] = null; + num4++; + span253[num4] = null; + num4++; + span253[num4] = null; + num4++; + span253[num4] = null; obj178.RequiredQuestVariables = list253; reference199 = obj178; - ref QuestStep reference201 = ref span109[5]; + index2++; + ref QuestStep reference201 = ref span246[index2]; QuestStep obj179 = new QuestStep(EInteractionType.Interact, 2003052u, new Vector3(6.668152f, 36.9115f, 207.01917f), 146) { Mount = true }; - num3 = 6; - List> list255 = new List>(num3); - CollectionsMarshal.SetCount(list255, num3); - Span> span116 = CollectionsMarshal.AsSpan(list255); - span116[0] = null; - span116[1] = null; - ref List reference202 = ref span116[2]; - num4 = 1; - List list256 = new List(num4); - CollectionsMarshal.SetCount(list256, num4); - CollectionsMarshal.AsSpan(list256)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list255 = new List>(num4); + CollectionsMarshal.SetCount(list255, num4); + Span> span255 = CollectionsMarshal.AsSpan(list255); + num3 = 0; + span255[num3] = null; + num3++; + span255[num3] = null; + num3++; + ref List reference202 = ref span255[num3]; + num5 = 1; + List list256 = new List(num5); + CollectionsMarshal.SetCount(list256, num5); + Span span256 = CollectionsMarshal.AsSpan(list256); + num6 = 0; + span256[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference202 = list256; - span116[3] = null; - span116[4] = null; - span116[5] = null; + num3++; + span255[num3] = null; + num3++; + span255[num3] = null; + num3++; + span255[num3] = null; obj179.RequiredQuestVariables = list255; reference201 = obj179; - ref QuestStep reference203 = ref span109[6]; + index2++; + ref QuestStep reference203 = ref span246[index2]; QuestStep obj180 = new QuestStep(EInteractionType.Interact, 2003053u, new Vector3(73.31958f, 31.784546f, 153.76514f), 146) { Mount = true @@ -74204,45 +89417,63 @@ public static class AssemblyQuestLoader num3 = 6; List> list257 = new List>(num3); CollectionsMarshal.SetCount(list257, num3); - Span> span117 = CollectionsMarshal.AsSpan(list257); - span117[0] = null; - span117[1] = null; - ref List reference204 = ref span117[2]; - num4 = 1; - List list258 = new List(num4); - CollectionsMarshal.SetCount(list258, num4); - CollectionsMarshal.AsSpan(list258)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + Span> span257 = CollectionsMarshal.AsSpan(list257); + num4 = 0; + span257[num4] = null; + num4++; + span257[num4] = null; + num4++; + ref List reference204 = ref span257[num4]; + num6 = 1; + List list258 = new List(num6); + CollectionsMarshal.SetCount(list258, num6); + Span span258 = CollectionsMarshal.AsSpan(list258); + num5 = 0; + span258[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference204 = list258; - span117[3] = null; - span117[4] = null; - span117[5] = null; + num4++; + span257[num4] = null; + num4++; + span257[num4] = null; + num4++; + span257[num4] = null; obj180.RequiredQuestVariables = list257; reference203 = obj180; - ref QuestStep reference205 = ref span109[7]; + index2++; + ref QuestStep reference205 = ref span246[index2]; QuestStep obj181 = new QuestStep(EInteractionType.Interact, 2003054u, new Vector3(79.42322f, 25.802979f, 208.66711f), 146) { Mount = true }; - num3 = 6; - List> list259 = new List>(num3); - CollectionsMarshal.SetCount(list259, num3); - Span> span118 = CollectionsMarshal.AsSpan(list259); - span118[0] = null; - span118[1] = null; - ref List reference206 = ref span118[2]; - num4 = 2; - List list260 = new List(num4); - CollectionsMarshal.SetCount(list260, num4); - Span span119 = CollectionsMarshal.AsSpan(list260); - span119[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span119[1] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List> list259 = new List>(num4); + CollectionsMarshal.SetCount(list259, num4); + Span> span259 = CollectionsMarshal.AsSpan(list259); + num3 = 0; + span259[num3] = null; + num3++; + span259[num3] = null; + num3++; + ref List reference206 = ref span259[num3]; + num5 = 2; + List list260 = new List(num5); + CollectionsMarshal.SetCount(list260, num5); + Span span260 = CollectionsMarshal.AsSpan(list260); + num6 = 0; + span260[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span260[num6] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference206 = list260; - span118[3] = null; - span118[4] = null; - span118[5] = null; + num3++; + span259[num3] = null; + num3++; + span259[num3] = null; + num3++; + span259[num3] = null; obj181.RequiredQuestVariables = list259; reference205 = obj181; - ref QuestStep reference207 = ref span109[8]; + index2++; + ref QuestStep reference207 = ref span246[index2]; QuestStep obj182 = new QuestStep(EInteractionType.Interact, 2003055u, new Vector3(106.889404f, 14.602844f, 147.53943f), 146) { Mount = true @@ -74250,56 +89481,72 @@ public static class AssemblyQuestLoader num3 = 6; List> list261 = new List>(num3); CollectionsMarshal.SetCount(list261, num3); - Span> span120 = CollectionsMarshal.AsSpan(list261); - span120[0] = null; - span120[1] = null; - ref List reference208 = ref span120[2]; - num4 = 1; - List list262 = new List(num4); - CollectionsMarshal.SetCount(list262, num4); - CollectionsMarshal.AsSpan(list262)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + Span> span261 = CollectionsMarshal.AsSpan(list261); + num4 = 0; + span261[num4] = null; + num4++; + span261[num4] = null; + num4++; + ref List reference208 = ref span261[num4]; + num6 = 1; + List list262 = new List(num6); + CollectionsMarshal.SetCount(list262, num6); + Span span262 = CollectionsMarshal.AsSpan(list262); + num5 = 0; + span262[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference208 = list262; - span120[3] = null; - span120[4] = null; - span120[5] = null; + num4++; + span261[num4] = null; + num4++; + span261[num4] = null; + num4++; + span261[num4] = null; obj182.RequiredQuestVariables = list261; reference207 = obj182; - ref QuestStep reference209 = ref span109[9]; + index2++; + ref QuestStep reference209 = ref span246[index2]; QuestStep obj183 = new QuestStep(EInteractionType.Combat, null, new Vector3(135.42383f, 8.102478f, 178.36267f), 146) { Mount = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = 2456u; + num4 = 1; + List list263 = new List(num4); + CollectionsMarshal.SetCount(list263, num4); + Span span263 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span263[num3] = 2456u; obj183.KillEnemyDataIds = list263; reference209 = obj183; - span109[10] = new QuestStep(EInteractionType.Interact, 2003056u, new Vector3(135.42383f, 8.102478f, 178.36267f), 146); + index2++; + span246[index2] = new QuestStep(EInteractionType.Interact, 2003056u, new Vector3(135.42383f, 8.102478f, 178.36267f), 146); obj174.Steps = list246; reference192 = obj174; - ref QuestSequence reference210 = ref span108[3]; + num++; + ref QuestSequence reference210 = ref span243[num]; QuestSequence obj184 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - Span span121 = CollectionsMarshal.AsSpan(list264); - span121[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-63.849556f, 26.409807f, -383.9894f), 146) + index2 = 2; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-63.849556f, 26.409807f, -383.9894f), 146) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span121[1] = new QuestStep(EInteractionType.Interact, 1005745u, new Vector3(22.720581f, 4.240738f, -443.07623f), 146) + num2++; + span264[num2] = new QuestStep(EInteractionType.Interact, 1005745u, new Vector3(22.720581f, 4.240738f, -443.07623f), 146) { Fly = true }; obj184.Steps = list264; reference210 = obj184; - ref QuestSequence reference211 = ref span108[4]; + num++; + ref QuestSequence reference211 = ref span243[num]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -74307,7 +89554,9 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146) + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span265[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146) { Fly = true }; @@ -74320,24 +89569,30 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "plogon_enjoyer"; + Span span266 = CollectionsMarshal.AsSpan(list266); + index = 0; + span266[index] = "plogon_enjoyer"; questRoot27.Author = list266; - num = 3; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span122 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference212 = ref span122[0]; + index = 3; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + Span span267 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference212 = ref span267[num]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146); + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + Span span268 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span268[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146); obj186.Steps = list268; reference212 = obj186; - ref QuestSequence reference213 = ref span122[1]; + num++; + ref QuestSequence reference213 = ref span267[num]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -74345,7 +89600,9 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list269)[0]; + Span span269 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + ref QuestStep reference214 = ref span269[index2]; QuestStep obj188 = new QuestStep(EInteractionType.Combat, null, new Vector3(-38.375584f, 8.492833f, 156.09068f), 146) { Fly = true, @@ -74354,7 +89611,9 @@ public static class AssemblyQuestLoader num3 = 1; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - CollectionsMarshal.AsSpan(list270)[0] = new ComplexCombatData + Span span270 = CollectionsMarshal.AsSpan(list270); + num4 = 0; + span270[num4] = new ComplexCombatData { DataId = 2452u, MinimumKillCount = 2u @@ -74363,15 +89622,18 @@ public static class AssemblyQuestLoader reference214 = obj188; obj187.Steps = list269; reference213 = obj187; - ref QuestSequence reference215 = ref span122[2]; + num++; + ref QuestSequence reference215 = ref span267[num]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146) { Fly = true }; @@ -74384,13 +89646,16 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - CollectionsMarshal.AsSpan(list272)[0] = "skiaz"; + Span span272 = CollectionsMarshal.AsSpan(list272); + index = 0; + span272[index] = "skiaz"; questRoot28.Author = list272; - num = 3; - List list273 = new List(num); - CollectionsMarshal.SetCount(list273, num); - Span span123 = CollectionsMarshal.AsSpan(list273); - ref QuestSequence reference216 = ref span123[0]; + index = 3; + List list273 = new List(index); + CollectionsMarshal.SetCount(list273, index); + Span span273 = CollectionsMarshal.AsSpan(list273); + num = 0; + ref QuestSequence reference216 = ref span273[num]; QuestSequence obj190 = new QuestSequence { Sequence = 0 @@ -74398,32 +89663,38 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + Span span274 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span274[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true }; obj190.Steps = list274; reference216 = obj190; - ref QuestSequence reference217 = ref span123[1]; + num++; + ref QuestSequence reference217 = ref span273[num]; QuestSequence obj191 = new QuestSequence { Sequence = 1, Comment = "Probably better to make here single steps for each enemy, since they are spread across a larger area" }; - num2 = 2; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - Span span124 = CollectionsMarshal.AsSpan(list275); - ref QuestStep reference218 = ref span124[0]; + index2 = 2; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + ref QuestStep reference218 = ref span275[num2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, null, new Vector3(72.098755f, 12.723299f, 23.544617f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list276 = new List(num3); - CollectionsMarshal.SetCount(list276, num3); - CollectionsMarshal.AsSpan(list276)[0] = new ComplexCombatData + num4 = 1; + List list276 = new List(num4); + CollectionsMarshal.SetCount(list276, num4); + Span span276 = CollectionsMarshal.AsSpan(list276); + num3 = 0; + span276[num3] = new ComplexCombatData { DataId = 741u, NameId = 1838u, @@ -74431,7 +89702,8 @@ public static class AssemblyQuestLoader }; obj192.ComplexCombatData = list276; reference218 = obj192; - ref QuestStep reference219 = ref span124[1]; + num2++; + ref QuestStep reference219 = ref span275[num2]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, null, new Vector3(168.87158f, 7.586792f, -30.533386f), 146) { Fly = true, @@ -74440,7 +89712,9 @@ public static class AssemblyQuestLoader num3 = 1; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = new ComplexCombatData + Span span277 = CollectionsMarshal.AsSpan(list277); + num4 = 0; + span277[num4] = new ComplexCombatData { DataId = 739u, NameId = 1837u, @@ -74450,7 +89724,8 @@ public static class AssemblyQuestLoader reference219 = obj193; obj191.Steps = list275; reference217 = obj191; - ref QuestSequence reference220 = ref span123[2]; + num++; + ref QuestSequence reference220 = ref span273[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue @@ -74458,7 +89733,9 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + Span span278 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span278[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo @@ -74472,27 +89749,33 @@ public static class AssemblyQuestLoader num = 1; List list279 = new List(num); CollectionsMarshal.SetCount(list279, num); - CollectionsMarshal.AsSpan(list279)[0] = "skiaz"; + Span span279 = CollectionsMarshal.AsSpan(list279); + index = 0; + span279[index] = "skiaz"; questRoot29.Author = list279; - num = 3; - List list280 = new List(num); - CollectionsMarshal.SetCount(list280, num); - Span span125 = CollectionsMarshal.AsSpan(list280); - ref QuestSequence reference221 = ref span125[0]; + index = 3; + List list280 = new List(index); + CollectionsMarshal.SetCount(list280, index); + Span span280 = CollectionsMarshal.AsSpan(list280); + num = 0; + ref QuestSequence reference221 = ref span280[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + Span span281 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span281[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true }; obj195.Steps = list281; reference221 = obj195; - ref QuestSequence reference222 = ref span125[1]; + num++; + ref QuestSequence reference222 = ref span280[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1, @@ -74501,17 +89784,20 @@ public static class AssemblyQuestLoader num2 = 2; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span126 = CollectionsMarshal.AsSpan(list282); - ref QuestStep reference223 = ref span126[0]; + Span span282 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + ref QuestStep reference223 = ref span282[index2]; QuestStep obj197 = new QuestStep(EInteractionType.Combat, null, new Vector3(103.1051f, 15.034634f, 20.46234f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list283 = new List(num3); - CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = new ComplexCombatData + num4 = 1; + List list283 = new List(num4); + CollectionsMarshal.SetCount(list283, num4); + Span span283 = CollectionsMarshal.AsSpan(list283); + num3 = 0; + span283[num3] = new ComplexCombatData { DataId = 742u, NameId = 1840u, @@ -74519,7 +89805,8 @@ public static class AssemblyQuestLoader }; obj197.ComplexCombatData = list283; reference223 = obj197; - ref QuestStep reference224 = ref span126[1]; + index2++; + ref QuestStep reference224 = ref span282[index2]; QuestStep obj198 = new QuestStep(EInteractionType.Combat, 740u, new Vector3(103.1051f, 15.034634f, 20.46234f), 146) { Fly = true, @@ -74528,7 +89815,9 @@ public static class AssemblyQuestLoader num3 = 1; List list284 = new List(num3); CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = new ComplexCombatData + Span span284 = CollectionsMarshal.AsSpan(list284); + num4 = 0; + span284[num4] = new ComplexCombatData { DataId = 740u, NameId = 1839u, @@ -74538,15 +89827,18 @@ public static class AssemblyQuestLoader reference224 = obj198; obj196.Steps = list282; reference222 = obj196; - ref QuestSequence reference225 = ref span125[2]; + num++; + ref QuestSequence reference225 = ref span280[num]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span285 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span285[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo @@ -74560,13 +89852,16 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "skiaz"; + Span span286 = CollectionsMarshal.AsSpan(list286); + index = 0; + span286[index] = "skiaz"; questRoot30.Author = list286; - num = 3; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span127 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference226 = ref span127[0]; + index = 3; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + Span span287 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference226 = ref span287[num]; QuestSequence obj200 = new QuestSequence { Sequence = 0 @@ -74574,33 +89869,43 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + Span span288 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span288[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true }; obj200.Steps = list288; reference226 = obj200; - ref QuestSequence reference227 = ref span127[1]; + num++; + ref QuestSequence reference227 = ref span287[num]; QuestSequence obj201 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - Span span128 = CollectionsMarshal.AsSpan(list289); - span128[0] = new QuestStep(EInteractionType.Interact, 2003024u, new Vector3(345.23523f, 8.590759f, -24.399231f), 146) + index2 = 6; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + Span span289 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span289[num2] = new QuestStep(EInteractionType.Interact, 2003024u, new Vector3(345.23523f, 8.590759f, -24.399231f), 146) { Fly = true }; - span128[1] = new QuestStep(EInteractionType.Interact, 2003027u, new Vector3(501.0299f, 7.614197f, -144.39618f), 146); - span128[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(534.8477f, 7.5996237f, -156.95335f), 146); - span128[3] = new QuestStep(EInteractionType.Interact, 2003030u, new Vector3(552.20874f, 7.614197f, -175.18884f), 146); - span128[4] = new QuestStep(EInteractionType.Interact, 2003031u, new Vector3(558.5259f, 7.583679f, -166.79645f), 146); - span128[5] = new QuestStep(EInteractionType.Interact, 2003029u, new Vector3(546.68494f, 10.543945f, -141.86316f), 146); + num2++; + span289[num2] = new QuestStep(EInteractionType.Interact, 2003027u, new Vector3(501.0299f, 7.614197f, -144.39618f), 146); + num2++; + span289[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(534.8477f, 7.5996237f, -156.95335f), 146); + num2++; + span289[num2] = new QuestStep(EInteractionType.Interact, 2003030u, new Vector3(552.20874f, 7.614197f, -175.18884f), 146); + num2++; + span289[num2] = new QuestStep(EInteractionType.Interact, 2003031u, new Vector3(558.5259f, 7.583679f, -166.79645f), 146); + num2++; + span289[num2] = new QuestStep(EInteractionType.Interact, 2003029u, new Vector3(546.68494f, 10.543945f, -141.86316f), 146); obj201.Steps = list289; reference227 = obj201; - ref QuestSequence reference228 = ref span127[2]; + num++; + ref QuestSequence reference228 = ref span287[num]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue @@ -74608,7 +89913,9 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + Span span290 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span290[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo @@ -74622,27 +89929,33 @@ public static class AssemblyQuestLoader num = 1; List list291 = new List(num); CollectionsMarshal.SetCount(list291, num); - CollectionsMarshal.AsSpan(list291)[0] = "skiaz"; + Span span291 = CollectionsMarshal.AsSpan(list291); + index = 0; + span291[index] = "skiaz"; questRoot31.Author = list291; - num = 3; - List list292 = new List(num); - CollectionsMarshal.SetCount(list292, num); - Span span129 = CollectionsMarshal.AsSpan(list292); - ref QuestSequence reference229 = ref span129[0]; + index = 3; + List list292 = new List(index); + CollectionsMarshal.SetCount(list292, index); + Span span292 = CollectionsMarshal.AsSpan(list292); + num = 0; + ref QuestSequence reference229 = ref span292[num]; QuestSequence obj203 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + Span span293 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span293[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true }; obj203.Steps = list293; reference229 = obj203; - ref QuestSequence reference230 = ref span129[1]; + num++; + ref QuestSequence reference230 = ref span292[num]; QuestSequence obj204 = new QuestSequence { Sequence = 1 @@ -74650,24 +89963,28 @@ public static class AssemblyQuestLoader num2 = 2; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - Span span130 = CollectionsMarshal.AsSpan(list294); - span130[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.38745f, 7.599617f, -36.96097f), 146); - ref QuestStep reference231 = ref span130[1]; + Span span294 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span294[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.38745f, 7.599617f, -36.96097f), 146); + index2++; + ref QuestStep reference231 = ref span294[index2]; QuestStep obj205 = new QuestStep(EInteractionType.Combat, null, new Vector3(547.38745f, 7.599617f, -36.96097f), 146) { EnemySpawnType = EEnemySpawnType.FateEnemies }; - num3 = 2; - List list295 = new List(num3); - CollectionsMarshal.SetCount(list295, num3); - Span span131 = CollectionsMarshal.AsSpan(list295); - span131[0] = new ComplexCombatData + num4 = 2; + List list295 = new List(num4); + CollectionsMarshal.SetCount(list295, num4); + Span span295 = CollectionsMarshal.AsSpan(list295); + num3 = 0; + span295[num3] = new ComplexCombatData { DataId = 740u, NameId = 2369u, MinimumKillCount = 3u }; - span131[1] = new ComplexCombatData + num3++; + span295[num3] = new ComplexCombatData { DataId = 2501u, MinimumKillCount = 1u @@ -74676,15 +89993,18 @@ public static class AssemblyQuestLoader reference231 = obj205; obj204.Steps = list294; reference230 = obj204; - ref QuestSequence reference232 = ref span129[2]; + num++; + ref QuestSequence reference232 = ref span292[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span296 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span296[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo @@ -74707,13 +90027,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -74721,27 +90044,33 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.84424f, 6.073427f, 248.96754f), 152) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.84424f, 6.073427f, 248.96754f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; - span2[1] = new QuestStep(EInteractionType.Interact, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152); + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -74749,26 +90078,31 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1005577u, new Vector3(28.488525f, -3.6319542f, 210.62024f), 152) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1005577u, new Vector3(28.488525f, -3.6319542f, 210.62024f), 152) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.84424f, 6.073427f, 248.96754f), 152) + index2 = 2; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.84424f, 6.073427f, 248.96754f), 152) { Fly = true }; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152) + num2++; + span6[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152) { NextQuestId = new QuestId(1253) }; @@ -74781,13 +90115,16 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + Span span7 = CollectionsMarshal.AsSpan(list7); + index = 0; + span7[index] = "liza"; questRoot2.Author = list7; - num = 5; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span4 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span4[0]; + index = 5; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span8[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -74795,24 +90132,30 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152); + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span4[1]; + num++; + ref QuestSequence reference6 = ref span8[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 2002864u, new Vector3(270.28296f, -0.25946045f, 168.53589f), 152) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.Interact, 2002864u, new Vector3(270.28296f, -0.25946045f, 168.53589f), 152) { Fly = true }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[2]; + num++; + ref QuestSequence reference7 = ref span8[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 @@ -74820,27 +90163,33 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1005570u, new Vector3(292.77478f, -0.00153354f, 145.12854f), 152) + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.Interact, 1005570u, new Vector3(292.77478f, -0.00153354f, 145.12854f), 152) { StopDistance = 7f }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span4[3]; + num++; + ref QuestSequence reference8 = ref span8[num]; QuestSequence obj8 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1005565u, new Vector3(22.47644f, -6.2105103f, 252.552f), 152) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.Interact, 1005565u, new Vector3(22.47644f, -6.2105103f, 252.552f), 152) { Fly = true }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span4[4]; + num++; + ref QuestSequence reference9 = ref span8[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -74848,17 +90197,21 @@ public static class AssemblyQuestLoader num2 = 2; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span5 = CollectionsMarshal.AsSpan(list13); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.84424f, 6.073427f, 248.96754f), 152) + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.84424f, 6.073427f, 248.96754f), 152) { Fly = true }; - ref QuestStep reference10 = ref span5[1]; + index2++; + ref QuestStep reference10 = ref span13[index2]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152); int num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = new DialogueChoice + Span span14 = CollectionsMarshal.AsSpan(list14); + int index3 = 0; + span14[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANSYL002_01253_SYSYTEM_Q1_000_1"), @@ -74875,21 +90228,26 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "Censored"; + Span span15 = CollectionsMarshal.AsSpan(list15); + index = 0; + span15[index] = "Censored"; questRoot3.Author = list15; - num = 3; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span6 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span6[0]; + index = 3; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + Span span16 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span16[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -74903,7 +90261,8 @@ public static class AssemblyQuestLoader }; obj10.Steps = list17; reference11 = obj10; - ref QuestSequence reference12 = ref span6[1]; + num++; + ref QuestSequence reference12 = ref span16[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -74911,25 +90270,33 @@ public static class AssemblyQuestLoader num2 = 5; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span7 = CollectionsMarshal.AsSpan(list18); - ref QuestStep reference13 = ref span7[0]; + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + ref QuestStep reference13 = ref span18[index2]; QuestStep obj12 = new QuestStep(EInteractionType.Interact, 2003073u, new Vector3(180.98718f, -0.38153076f, 68.03992f), 152) { Fly = true }; - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span8 = CollectionsMarshal.AsSpan(list19); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + index3 = 6; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); obj12.CompletionQuestVariablesFlags = list19; reference13 = obj12; - ref QuestStep reference14 = ref span7[1]; + index2++; + ref QuestStep reference14 = ref span18[index2]; QuestStep obj13 = new QuestStep(EInteractionType.Interact, 2003069u, new Vector3(327.65686f, -6.088379f, -7.9194946f), 152) { Fly = true @@ -74937,56 +90304,79 @@ public static class AssemblyQuestLoader num3 = 6; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span9 = CollectionsMarshal.AsSpan(list20); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span20 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj13.CompletionQuestVariablesFlags = list20; reference14 = obj13; - ref QuestStep reference15 = ref span7[2]; + index2++; + ref QuestStep reference15 = ref span18[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2003068u, new Vector3(323.81165f, -5.783203f, -17.898865f), 152); - num3 = 6; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - Span span10 = CollectionsMarshal.AsSpan(list21); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list21 = new List(index3); + CollectionsMarshal.SetCount(list21, index3); + Span span21 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list21; reference15 = questStep2; - ref QuestStep reference16 = ref span7[3]; + index2++; + ref QuestStep reference16 = ref span18[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2003070u, new Vector3(328.08423f, -4.867676f, -31.296265f), 152); num3 = 6; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - Span span11 = CollectionsMarshal.AsSpan(list22); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span22 = CollectionsMarshal.AsSpan(list22); + index3 = 0; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list22; reference16 = questStep3; - span7[4] = new QuestStep(EInteractionType.Interact, 2003067u, new Vector3(354.57385f, -4.623535f, -11.39856f), 152); + index2++; + span18[index2] = new QuestStep(EInteractionType.Interact, 2003067u, new Vector3(354.57385f, -4.623535f, -11.39856f), 152); obj11.Steps = list18; reference12 = obj11; - ref QuestSequence reference17 = ref span6[2]; + num++; + ref QuestSequence reference17 = ref span16[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span12 = CollectionsMarshal.AsSpan(list23); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) + index2 = 2; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) { Fly = true, Land = true, @@ -75003,7 +90393,8 @@ public static class AssemblyQuestLoader } } }; - span12[1] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); + num2++; + span23[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); obj14.Steps = list23; reference17 = obj14; questRoot3.QuestSequence = list16; @@ -75013,13 +90404,16 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "Censored"; + Span span24 = CollectionsMarshal.AsSpan(list24); + index = 0; + span24[index] = "Censored"; questRoot4.Author = list24; - num = 4; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span13 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference18 = ref span13[0]; + index = 4; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + Span span25 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference18 = ref span25[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -75027,7 +90421,9 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -75041,50 +90437,67 @@ public static class AssemblyQuestLoader }; obj15.Steps = list26; reference18 = obj15; - ref QuestSequence reference19 = ref span13[1]; + num++; + ref QuestSequence reference19 = ref span25[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - Span span14 = CollectionsMarshal.AsSpan(list27); - ref QuestStep reference20 = ref span14[0]; + index2 = 3; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + ref QuestStep reference20 = ref span27[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 2003228u, new Vector3(286.2439f, -4.5319824f, 57.114502f), 152) { Fly = true }; - num3 = 6; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span15 = CollectionsMarshal.AsSpan(list28); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index3 = 6; + List list28 = new List(index3); + CollectionsMarshal.SetCount(list28, index3); + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list28; reference20 = obj17; - ref QuestStep reference21 = ref span14[1]; + num2++; + ref QuestStep reference21 = ref span27[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2003221u, new Vector3(254.19995f, -6.363098f, 41.428223f), 152); num3 = 6; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - Span span16 = CollectionsMarshal.AsSpan(list29); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span29 = CollectionsMarshal.AsSpan(list29); + index3 = 0; + span29[index3] = null; + index3++; + span29[index3] = null; + index3++; + span29[index3] = null; + index3++; + span29[index3] = null; + index3++; + span29[index3] = null; + index3++; + span29[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list29; reference21 = questStep4; - span14[2] = new QuestStep(EInteractionType.Interact, 2003222u, new Vector3(253.52856f, -5.5390625f, 22.262878f), 152); + num2++; + span27[num2] = new QuestStep(EInteractionType.Interact, 2003222u, new Vector3(253.52856f, -5.5390625f, 22.262878f), 152); obj16.Steps = list27; reference19 = obj16; - ref QuestSequence reference22 = ref span13[2]; + num++; + ref QuestSequence reference22 = ref span25[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -75092,25 +90505,33 @@ public static class AssemblyQuestLoader num2 = 3; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span17 = CollectionsMarshal.AsSpan(list30); - ref QuestStep reference23 = ref span17[0]; + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + ref QuestStep reference23 = ref span30[index2]; QuestStep obj19 = new QuestStep(EInteractionType.UseItem, 2003234u, new Vector3(231.1283f, -3.2197266f, -16.281433f), 152) { ItemId = 2001178u }; - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span18 = CollectionsMarshal.AsSpan(list31); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + index3 = 6; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj19.CompletionQuestVariablesFlags = list31; reference23 = obj19; - ref QuestStep reference24 = ref span17[1]; + index2++; + ref QuestStep reference24 = ref span30[index2]; QuestStep obj20 = new QuestStep(EInteractionType.UseItem, 2003233u, new Vector3(245.59387f, -5.203369f, -41.672424f), 152) { ItemId = 2001178u @@ -75118,31 +90539,40 @@ public static class AssemblyQuestLoader num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span19 = CollectionsMarshal.AsSpan(list32); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span32 = CollectionsMarshal.AsSpan(list32); + index3 = 0; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj20.CompletionQuestVariablesFlags = list32; reference24 = obj20; - span17[2] = new QuestStep(EInteractionType.UseItem, 2003231u, new Vector3(211.56628f, -4.501404f, -51.499268f), 152) + index2++; + span30[index2] = new QuestStep(EInteractionType.UseItem, 2003231u, new Vector3(211.56628f, -4.501404f, -51.499268f), 152) { ItemId = 2001178u }; obj18.Steps = list30; reference22 = obj18; - ref QuestSequence reference25 = ref span13[3]; + num++; + ref QuestSequence reference25 = ref span25[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span20 = CollectionsMarshal.AsSpan(list33); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) + index2 = 2; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) { Fly = true, Land = true, @@ -75159,7 +90589,8 @@ public static class AssemblyQuestLoader } } }; - span20[1] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); + num2++; + span33[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); obj21.Steps = list33; reference25 = obj21; questRoot4.QuestSequence = list25; @@ -75169,13 +90600,16 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "Censored"; + Span span34 = CollectionsMarshal.AsSpan(list34); + index = 0; + span34[index] = "Censored"; questRoot5.Author = list34; - num = 4; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span21 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference26 = ref span21[0]; + index = 4; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + Span span35 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference26 = ref span35[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -75183,7 +90617,9 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -75197,21 +90633,25 @@ public static class AssemblyQuestLoader }; obj22.Steps = list36; reference26 = obj22; - ref QuestSequence reference27 = ref span21[1]; + num++; + ref QuestSequence reference27 = ref span35[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1008329u, new Vector3(175.86023f, 8.627428f, 204.18091f), 152) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.Interact, 1008329u, new Vector3(175.86023f, 8.627428f, 204.18091f), 152) { Fly = true }; obj23.Steps = list37; reference27 = obj23; - ref QuestSequence reference28 = ref span21[2]; + num++; + ref QuestSequence reference28 = ref span35[num]; QuestSequence obj24 = new QuestSequence { Sequence = 2 @@ -75219,55 +90659,75 @@ public static class AssemblyQuestLoader num2 = 6; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span22 = CollectionsMarshal.AsSpan(list38); - ref QuestStep reference29 = ref span22[0]; + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + ref QuestStep reference29 = ref span38[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2003079u, new Vector3(225.78772f, 5.996765f, 181.78064f), 152); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - Span span23 = CollectionsMarshal.AsSpan(list39); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list39 = new List(index3); + CollectionsMarshal.SetCount(list39, index3); + Span span39 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + span39[num3] = null; + num3++; + span39[num3] = null; + num3++; + span39[num3] = null; + num3++; + span39[num3] = null; + num3++; + span39[num3] = null; + num3++; + span39[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list39; skipConditions.StepIf = skipStepConditions; questStep5.SkipConditions = skipConditions; reference29 = questStep5; - ref QuestStep reference30 = ref span22[1]; + index2++; + ref QuestStep reference30 = ref span38[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2003303u, new Vector3(267.96362f, -0.16790771f, 168.9325f), 152); num3 = 6; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - Span span24 = CollectionsMarshal.AsSpan(list40); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span40 = CollectionsMarshal.AsSpan(list40); + index3 = 0; + span40[index3] = null; + index3++; + span40[index3] = null; + index3++; + span40[index3] = null; + index3++; + span40[index3] = null; + index3++; + span40[index3] = null; + index3++; + span40[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list40; reference30 = questStep6; - span22[2] = new QuestStep(EInteractionType.Interact, 2003301u, new Vector3(220.29443f, -1.4801636f, 100.48059f), 152); - span22[3] = new QuestStep(EInteractionType.Interact, 2003081u, new Vector3(175.24988f, -0.22894287f, 57.328125f), 152); - span22[4] = new QuestStep(EInteractionType.Interact, 2003082u, new Vector3(97.67297f, 7.1259155f, -7.9194946f), 152); - span22[5] = new QuestStep(EInteractionType.Interact, 2003076u, new Vector3(-19.150085f, 19.33313f, -11.490112f), 152); + index2++; + span38[index2] = new QuestStep(EInteractionType.Interact, 2003301u, new Vector3(220.29443f, -1.4801636f, 100.48059f), 152); + index2++; + span38[index2] = new QuestStep(EInteractionType.Interact, 2003081u, new Vector3(175.24988f, -0.22894287f, 57.328125f), 152); + index2++; + span38[index2] = new QuestStep(EInteractionType.Interact, 2003082u, new Vector3(97.67297f, 7.1259155f, -7.9194946f), 152); + index2++; + span38[index2] = new QuestStep(EInteractionType.Interact, 2003076u, new Vector3(-19.150085f, 19.33313f, -11.490112f), 152); obj24.Steps = list38; reference28 = obj24; - ref QuestSequence reference31 = ref span21[3]; + num++; + ref QuestSequence reference31 = ref span35[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span25 = CollectionsMarshal.AsSpan(list41); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) + index2 = 2; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) { Fly = true, Land = true, @@ -75284,7 +90744,8 @@ public static class AssemblyQuestLoader } } }; - span25[1] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); + num2++; + span41[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); obj25.Steps = list41; reference31 = obj25; questRoot5.QuestSequence = list35; @@ -75300,13 +90761,16 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "Censored"; + Span span42 = CollectionsMarshal.AsSpan(list42); + index = 0; + span42[index] = "Censored"; questRoot6.Author = list42; - num = 3; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span26 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference32 = ref span26[0]; + index = 3; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + Span span43 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference32 = ref span43[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -75314,7 +90778,9 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -75328,24 +90794,29 @@ public static class AssemblyQuestLoader }; obj26.Steps = list44; reference32 = obj26; - ref QuestSequence reference33 = ref span26[1]; + num++; + ref QuestSequence reference33 = ref span43[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list45)[0]; + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + ref QuestStep reference34 = ref span45[num2]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(220.62901f, 4.888098f, 163.73048f), 152) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new ComplexCombatData + index3 = 1; + List list46 = new List(index3); + CollectionsMarshal.SetCount(list46, index3); + Span span46 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span46[num3] = new ComplexCombatData { DataId = 2660u, NameId = 2314u, @@ -75355,7 +90826,8 @@ public static class AssemblyQuestLoader reference34 = obj28; obj27.Steps = list45; reference33 = obj27; - ref QuestSequence reference35 = ref span26[2]; + num++; + ref QuestSequence reference35 = ref span43[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -75363,8 +90835,9 @@ public static class AssemblyQuestLoader num2 = 2; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span27 = CollectionsMarshal.AsSpan(list47); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) { Fly = true, Land = true, @@ -75381,7 +90854,8 @@ public static class AssemblyQuestLoader } } }; - span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); + index2++; + span47[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); obj29.Steps = list47; reference35 = obj29; questRoot6.QuestSequence = list43; @@ -75391,24 +90865,30 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + Span span48 = CollectionsMarshal.AsSpan(list48); + index = 0; + span48[index] = "liza"; questRoot7.Author = list48; - num = 3; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span28 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference36 = ref span28[0]; + index = 3; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + Span span49 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference36 = ref span49[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152); obj30.Steps = list50; reference36 = obj30; - ref QuestSequence reference37 = ref span28[1]; + num++; + ref QuestSequence reference37 = ref span49[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -75416,8 +90896,9 @@ public static class AssemblyQuestLoader num2 = 4; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span29 = CollectionsMarshal.AsSpan(list51); - ref QuestStep reference38 = ref span29[0]; + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + ref QuestStep reference38 = ref span51[index2]; QuestStep obj32 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(321.08926f, -17.347095f, -201.61072f), 152) { Fly = true @@ -75427,18 +90908,25 @@ public static class AssemblyQuestLoader num3 = 6; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - Span span30 = CollectionsMarshal.AsSpan(list52); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span52 = CollectionsMarshal.AsSpan(list52); + index3 = 0; + span52[index3] = null; + index3++; + span52[index3] = null; + index3++; + span52[index3] = null; + index3++; + span52[index3] = null; + index3++; + span52[index3] = null; + index3++; + span52[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list52; skipConditions2.StepIf = skipStepConditions2; obj32.SkipConditions = skipConditions2; reference38 = obj32; - ref QuestStep reference39 = ref span29[1]; + index2++; + ref QuestStep reference39 = ref span51[index2]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, 2003494u, new Vector3(319.44763f, -17.227417f, -200.88507f), 152) { Fly = true, @@ -75446,24 +90934,33 @@ public static class AssemblyQuestLoader GroundTarget = true, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = 764u; + index3 = 1; + List list53 = new List(index3); + CollectionsMarshal.SetCount(list53, index3); + Span span53 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + span53[num3] = 764u; obj33.KillEnemyDataIds = list53; num3 = 6; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - Span span31 = CollectionsMarshal.AsSpan(list54); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span54 = CollectionsMarshal.AsSpan(list54); + index3 = 0; + span54[index3] = null; + index3++; + span54[index3] = null; + index3++; + span54[index3] = null; + index3++; + span54[index3] = null; + index3++; + span54[index3] = null; + index3++; + span54[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj33.CompletionQuestVariablesFlags = list54; reference39 = obj33; - ref QuestStep reference40 = ref span29[2]; + index2++; + ref QuestStep reference40 = ref span51[index2]; QuestStep obj34 = new QuestStep(EInteractionType.Combat, 2003041u, new Vector3(386.099f, -20.187744f, -200.763f), 152) { Fly = true, @@ -75471,24 +90968,33 @@ public static class AssemblyQuestLoader GroundTarget = true, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = 764u; + index3 = 1; + List list55 = new List(index3); + CollectionsMarshal.SetCount(list55, index3); + Span span55 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span55[num3] = 764u; obj34.KillEnemyDataIds = list55; num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span32 = CollectionsMarshal.AsSpan(list56); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + Span span56 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj34.CompletionQuestVariablesFlags = list56; reference40 = obj34; - ref QuestStep reference41 = ref span29[3]; + index2++; + ref QuestStep reference41 = ref span51[index2]; QuestStep obj35 = new QuestStep(EInteractionType.Combat, 2003040u, new Vector3(326.77185f, -18.112549f, -235.95032f), 152) { Fly = true, @@ -75496,23 +91002,28 @@ public static class AssemblyQuestLoader GroundTarget = true, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = 764u; + index3 = 1; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + Span span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span57[num3] = 764u; obj35.KillEnemyDataIds = list57; reference41 = obj35; obj31.Steps = list51; reference37 = obj31; - ref QuestSequence reference42 = ref span28[2]; + num++; + ref QuestSequence reference42 = ref span49[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -75526,13 +91037,16 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "liza"; + Span span59 = CollectionsMarshal.AsSpan(list59); + index = 0; + span59[index] = "liza"; questRoot8.Author = list59; - num = 4; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span33 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference43 = ref span33[0]; + index = 4; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + Span span60 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference43 = ref span60[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -75540,24 +91054,30 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152); + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152); obj37.Steps = list61; reference43 = obj37; - ref QuestSequence reference44 = ref span33[1]; + num++; + ref QuestSequence reference44 = ref span60[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 2003307u, new Vector3(261.82947f, -9.323303f, -72.80078f), 152) + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.Interact, 2003307u, new Vector3(261.82947f, -9.323303f, -72.80078f), 152) { Fly = true }; obj38.Steps = list62; reference44 = obj38; - ref QuestSequence reference45 = ref span33[2]; + num++; + ref QuestSequence reference45 = ref span60[num]; QuestSequence obj39 = new QuestSequence { Sequence = 2 @@ -75565,20 +91085,25 @@ public static class AssemblyQuestLoader num2 = 2; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span34 = CollectionsMarshal.AsSpan(list63); - span34[0] = new QuestStep(EInteractionType.Interact, 2003487u, new Vector3(429.89233f, -14.2977295f, -257.61804f), 152); - span34[1] = new QuestStep(EInteractionType.Interact, 2003310u, new Vector3(551.812f, -22.537598f, -352.13245f), 152); + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.Interact, 2003487u, new Vector3(429.89233f, -14.2977295f, -257.61804f), 152); + index2++; + span63[index2] = new QuestStep(EInteractionType.Interact, 2003310u, new Vector3(551.812f, -22.537598f, -352.13245f), 152); obj39.Steps = list63; reference45 = obj39; - ref QuestSequence reference46 = ref span33[3]; + num++; + ref QuestSequence reference46 = ref span60[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -75592,13 +91117,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + Span span65 = CollectionsMarshal.AsSpan(list65); + index = 0; + span65[index] = "liza"; questRoot9.Author = list65; - num = 3; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span35 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference47 = ref span35[0]; + index = 3; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + Span span66 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference47 = ref span66[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -75606,18 +91134,23 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152); + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152); obj41.Steps = list67; reference47 = obj41; - ref QuestSequence reference48 = ref span35[1]; + num++; + ref QuestSequence reference48 = ref span66[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - ref QuestStep reference49 = ref CollectionsMarshal.AsSpan(list68)[0]; + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + ref QuestStep reference49 = ref span68[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(336.78577f, -17.169508f, -252.20335f), 152) { Fly = true, @@ -75626,12 +91159,15 @@ public static class AssemblyQuestLoader num3 = 1; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = 2464u; + Span span69 = CollectionsMarshal.AsSpan(list69); + index3 = 0; + span69[index3] = 2464u; obj43.KillEnemyDataIds = list69; reference49 = obj43; obj42.Steps = list68; reference48 = obj42; - ref QuestSequence reference50 = ref span35[2]; + num++; + ref QuestSequence reference50 = ref span66[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -75639,7 +91175,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -75653,21 +91191,26 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "alydev"; + Span span71 = CollectionsMarshal.AsSpan(list71); + index = 0; + span71[index] = "alydev"; questRoot10.Author = list71; - num = 5; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span36 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference51 = ref span36[0]; + index = 5; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + Span span72 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference51 = ref span72[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -75685,7 +91228,8 @@ public static class AssemblyQuestLoader }; obj45.Steps = list73; reference51 = obj45; - ref QuestSequence reference52 = ref span36[1]; + num++; + ref QuestSequence reference52 = ref span72[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -75693,31 +91237,39 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1005392u, new Vector3(210.25403f, -25.009617f, 223.71252f), 138); + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.Interact, 1005392u, new Vector3(210.25403f, -25.009617f, 223.71252f), 138); obj46.Steps = list74; reference52 = obj46; - ref QuestSequence reference53 = ref span36[2]; + num++; + ref QuestSequence reference53 = ref span72[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list75)[0]; + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + ref QuestStep reference54 = ref span75[num2]; QuestStep obj48 = new QuestStep(EInteractionType.Combat, null, new Vector3(219.21672f, -36.40546f, 321.90988f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = 1390u; + index3 = 1; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + Span span76 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span76[num3] = 1390u; obj48.KillEnemyDataIds = list76; reference54 = obj48; obj47.Steps = list75; reference53 = obj47; - ref QuestSequence reference55 = ref span36[3]; + num++; + ref QuestSequence reference55 = ref span72[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -75725,18 +91277,23 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1005393u, new Vector3(221.14893f, -36.405968f, 323.5675f), 138); + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.Interact, 1005393u, new Vector3(221.14893f, -36.405968f, 323.5675f), 138); obj49.Steps = list77; reference55 = obj49; - ref QuestSequence reference56 = ref span36[4]; + num++; + ref QuestSequence reference56 = ref span72[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -75761,13 +91318,16 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "alydev"; + Span span79 = CollectionsMarshal.AsSpan(list79); + index = 0; + span79[index] = "alydev"; questRoot11.Author = list79; - num = 5; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span37 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference57 = ref span37[0]; + index = 5; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + Span span80 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference57 = ref span80[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -75775,7 +91335,9 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -75793,18 +91355,22 @@ public static class AssemblyQuestLoader }; obj51.Steps = list81; reference57 = obj51; - ref QuestSequence reference58 = ref span37[1]; + num++; + ref QuestSequence reference58 = ref span80[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1005392u, new Vector3(210.25403f, -25.009617f, 223.71252f), 138); + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.Interact, 1005392u, new Vector3(210.25403f, -25.009617f, 223.71252f), 138); obj52.Steps = list82; reference58 = obj52; - ref QuestSequence reference59 = ref span37[2]; + num++; + ref QuestSequence reference59 = ref span80[num]; QuestSequence obj53 = new QuestSequence { Sequence = 2 @@ -75812,27 +91378,33 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.UseItem, 1005395u, new Vector3(523.6437f, 24.754877f, 292.37805f), 138) + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.UseItem, 1005395u, new Vector3(523.6437f, 24.754877f, 292.37805f), 138) { ItemId = 2001083u }; obj53.Steps = list83; reference59 = obj53; - ref QuestSequence reference60 = ref span37[3]; + num++; + ref QuestSequence reference60 = ref span80[num]; QuestSequence obj54 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Emote, 1005395u, new Vector3(523.6437f, 24.754877f, 292.37805f), 138) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.Emote, 1005395u, new Vector3(523.6437f, 24.754877f, 292.37805f), 138) { Emote = EEmote.Soothe }; obj54.Steps = list84; reference60 = obj54; - ref QuestSequence reference61 = ref span37[4]; + num++; + ref QuestSequence reference61 = ref span80[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -75840,7 +91412,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -75865,21 +91439,26 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "alydev"; + Span span86 = CollectionsMarshal.AsSpan(list86); + index = 0; + span86[index] = "alydev"; questRoot12.Author = list86; - num = 4; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span38 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference62 = ref span38[0]; + index = 4; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + Span span87 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference62 = ref span87[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -75897,7 +91476,8 @@ public static class AssemblyQuestLoader }; obj56.Steps = list88; reference62 = obj56; - ref QuestSequence reference63 = ref span38[1]; + num++; + ref QuestSequence reference63 = ref span87[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 @@ -75905,7 +91485,9 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list89)[0]; + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + ref QuestStep reference64 = ref span89[index2]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, null, new Vector3(209.67606f, -16.937475f, 117.99471f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -75913,23 +91495,29 @@ public static class AssemblyQuestLoader num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = 2447u; + Span span90 = CollectionsMarshal.AsSpan(list90); + index3 = 0; + span90[index3] = 2447u; obj58.KillEnemyDataIds = list90; reference64 = obj58; obj57.Steps = list89; reference63 = obj57; - ref QuestSequence reference65 = ref span38[2]; + num++; + ref QuestSequence reference65 = ref span87[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1005396u, new Vector3(209.52148f, -16.919422f, 114.457886f), 138); + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span91[num2] = new QuestStep(EInteractionType.Interact, 1005396u, new Vector3(209.52148f, -16.919422f, 114.457886f), 138); obj59.Steps = list91; reference65 = obj59; - ref QuestSequence reference66 = ref span38[3]; + num++; + ref QuestSequence reference66 = ref span87[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -75937,7 +91525,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -75966,13 +91556,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -75980,19 +91573,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions @@ -76003,16 +91600,23 @@ public static class AssemblyQuestLoader int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span5 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj3.CompletionQuestVariablesFlags = list5; reference3 = obj3; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span4[num2]; QuestStep obj4 = new QuestStep(EInteractionType.Duty, null, null, 180) { DutyOptions = new DutyOptions @@ -76020,19 +91624,26 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 64u } }; - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list6; reference4 = obj4; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span4[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Duty, null, null, 146) { DutyOptions = new DutyOptions @@ -76043,18 +91654,25 @@ public static class AssemblyQuestLoader num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj5.CompletionQuestVariablesFlags = list7; reference5 = obj5; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -76062,7 +91680,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156); + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156); obj6.Steps = list8; reference6 = obj6; questRoot.QuestSequence = list2; @@ -76072,24 +91692,30 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "liza"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "liza"; questRoot2.Author = list9; - num = 2; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span6[0]; + index = 2; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span10[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006381u, new Vector3(172.99146f, 222.00034f, 314.35107f), 155); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006381u, new Vector3(172.99146f, 222.00034f, 314.35107f), 155); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span6[1]; + num++; + ref QuestSequence reference8 = ref span10[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue @@ -76097,12 +91723,14 @@ public static class AssemblyQuestLoader num2 = 2; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span7 = CollectionsMarshal.AsSpan(list12); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.65878f, 222.21414f, 327.51016f), 155) + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.65878f, 222.21414f, 327.51016f), 155) { Fly = true }; - span7[1] = new QuestStep(EInteractionType.CompleteQuest, 1006385u, new Vector3(241.50452f, 222.25885f, 325.45972f), 155); + index2++; + span12[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006385u, new Vector3(241.50452f, 222.25885f, 325.45972f), 155); obj8.Steps = list12; reference8 = obj8; questRoot2.QuestSequence = list10; @@ -76112,23 +91740,27 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + Span span13 = CollectionsMarshal.AsSpan(list13); + index = 0; + span13[index] = "liza"; questRoot3.Author = list13; questRoot3.Comment = "Only Turn 9 is required for the next quest to unlock"; - num = 4; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span8 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference9 = ref span8[0]; + index = 4; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference9 = ref span14[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - num2 = 4; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - Span span9 = CollectionsMarshal.AsSpan(list15); - ref QuestStep reference10 = ref span9[0]; + index2 = 4; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + ref QuestStep reference10 = ref span15[num2]; QuestStep obj10 = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, @@ -76136,47 +91768,57 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 2; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - Span span10 = CollectionsMarshal.AsSpan(list16); - span10[0] = 140; - span10[1] = 212; + num4 = 2; + List list16 = new List(num4); + CollectionsMarshal.SetCount(list16, num4); + Span span16 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span16[num3] = 140; + num3++; + span16[num3] = 212; skipStepConditions.InTerritory = list16; skipConditions.StepIf = skipStepConditions; obj10.SkipConditions = skipConditions; reference10 = obj10; - ref QuestStep reference11 = ref span9[1]; + num2++; + ref QuestStep reference11 = ref span15[num2]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 1; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = 212; + Span span17 = CollectionsMarshal.AsSpan(list17); + num4 = 0; + span17[num4] = 212; skipStepConditions2.InTerritory = list17; skipConditions2.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions2; reference11 = questStep; - ref QuestStep reference12 = ref span9[2]; + num2++; + ref QuestStep reference12 = ref span15[num2]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = 212; + num4 = 1; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + Span span18 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span18[num3] = 212; skipStepConditions3.InTerritory = list18; skipConditions3.StepIf = skipStepConditions3; obj11.SkipConditions = skipConditions3; reference12 = obj11; - span9[3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + num2++; + span15[num2] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference13 = ref span8[1]; + num++; + ref QuestSequence reference13 = ref span14[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -76184,33 +91826,40 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1008538u, new Vector3(-35.26361f, -45.545444f, 295.36877f), 154) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.Interact, 1008538u, new Vector3(-35.26361f, -45.545444f, 295.36877f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj12.Steps = list19; reference13 = obj12; - ref QuestSequence reference14 = ref span8[2]; + num++; + ref QuestSequence reference14 = ref span14[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span11 = CollectionsMarshal.AsSpan(list20); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-43.719337f, -46.570717f, 288.87f), 154) + index2 = 3; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-43.719337f, -46.570717f, 288.87f), 154) { Mount = true }; - span11[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-238.82307f, -75.39517f, 422.71375f), 154) + num2++; + span20[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-238.82307f, -75.39517f, 422.71375f), 154) { Fly = true }; - span11[2] = new QuestStep(EInteractionType.Interact, 1008539u, new Vector3(-236.74377f, -75.699936f, 423.0868f), 154); + num2++; + span20[num2] = new QuestStep(EInteractionType.Interact, 1008539u, new Vector3(-236.74377f, -75.699936f, 423.0868f), 154); obj13.Steps = list20; reference14 = obj13; - ref QuestSequence reference15 = ref span8[3]; + num++; + ref QuestSequence reference15 = ref span14[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -76218,12 +91867,14 @@ public static class AssemblyQuestLoader num2 = 2; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span12 = CollectionsMarshal.AsSpan(list21); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-43.719337f, -46.570717f, 288.87f), 154) + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span21[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-43.719337f, -46.570717f, 288.87f), 154) { Fly = true }; - span12[1] = new QuestStep(EInteractionType.CompleteQuest, 1008538u, new Vector3(-35.26361f, -45.545444f, 295.36877f), 154) + index2++; + span21[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008538u, new Vector3(-35.26361f, -45.545444f, 295.36877f), 154) { NextQuestId = new QuestId(1314) }; @@ -76236,22 +91887,26 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + Span span22 = CollectionsMarshal.AsSpan(list22); + index = 0; + span22[index] = "liza"; questRoot4.Author = list22; - num = 2; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span13 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference16 = ref span13[0]; + index = 2; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + Span span23 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference16 = ref span23[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span14 = CollectionsMarshal.AsSpan(list24); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-59.93238f, 77.08961f, -204.68428f), 147) + index2 = 2; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-59.93238f, 77.08961f, -204.68428f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -76263,12 +91918,15 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference17 = ref span14[1]; + num2++; + ref QuestStep reference17 = ref span24[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.AcceptQuest, 1008540u, new Vector3(-60.31891f, 76.76807f, -203.23492f), 147); num3 = 1; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = new DialogueChoice + Span span25 = CollectionsMarshal.AsSpan(list25); + num4 = 0; + span25[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSD302_01314_Q1_000_000"), @@ -76278,7 +91936,8 @@ public static class AssemblyQuestLoader reference17 = questStep2; obj15.Steps = list24; reference16 = obj15; - ref QuestSequence reference18 = ref span13[1]; + num++; + ref QuestSequence reference18 = ref span23[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -76286,18 +91945,22 @@ public static class AssemblyQuestLoader num2 = 4; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span15 = CollectionsMarshal.AsSpan(list26); - span15[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span15[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span15[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + index2++; + span26[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + index2++; + span26[index2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span15[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + index2++; + span26[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj16.Steps = list26; reference18 = obj16; questRoot4.QuestSequence = list23; @@ -76307,21 +91970,26 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "FalconTaterz"; + Span span27 = CollectionsMarshal.AsSpan(list27); + index = 0; + span27[index] = "FalconTaterz"; questRoot5.Author = list27; - num = 7; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span16 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference19 = ref span16[0]; + index = 7; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + Span span28 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference19 = ref span28[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005884u, new Vector3(-526.26843f, 5.4049973f, -249.25616f), 145) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005884u, new Vector3(-526.26843f, 5.4049973f, -249.25616f), 145) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -76335,7 +92003,8 @@ public static class AssemblyQuestLoader }; obj17.Steps = list29; reference19 = obj17; - ref QuestSequence reference20 = ref span16[1]; + num++; + ref QuestSequence reference20 = ref span28[num]; QuestSequence obj18 = new QuestSequence { Sequence = 1 @@ -76343,30 +92012,36 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1003931u, new Vector3(-379.6292f, -55.85506f, 95.04846f), 145) + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new QuestStep(EInteractionType.Interact, 1003931u, new Vector3(-379.6292f, -55.85506f, 95.04846f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj18.Steps = list30; reference20 = obj18; - ref QuestSequence reference21 = ref span16[2]; + num++; + ref QuestSequence reference21 = ref span28[num]; QuestSequence obj19 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span17 = CollectionsMarshal.AsSpan(list31); - span17[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + index2 = 2; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span17[1] = new QuestStep(EInteractionType.Interact, 1008709u, new Vector3(-431.7846f, 28.038658f, -383.1693f), 140); + num2++; + span31[num2] = new QuestStep(EInteractionType.Interact, 1008709u, new Vector3(-431.7846f, 28.038658f, -383.1693f), 140); obj19.Steps = list31; reference21 = obj19; - ref QuestSequence reference22 = ref span16[3]; + num++; + ref QuestSequence reference22 = ref span28[num]; QuestSequence obj20 = new QuestSequence { Sequence = 3 @@ -76374,26 +92049,34 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span18 = CollectionsMarshal.AsSpan(list32); - ref QuestStep reference23 = ref span18[0]; + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference23 = ref span32[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1008713u, new Vector3(108.99512f, 57.816406f, 12.191956f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; - num3 = 6; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span19 = CollectionsMarshal.AsSpan(list33); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list33; reference23 = obj21; - ref QuestStep reference24 = ref span18[1]; + index2++; + ref QuestStep reference24 = ref span32[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1002022u, new Vector3(12.039368f, 22.144684f, 65.384766f), 140) { Fly = true @@ -76401,46 +92084,63 @@ public static class AssemblyQuestLoader num3 = 6; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span20 = CollectionsMarshal.AsSpan(list34); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span34 = CollectionsMarshal.AsSpan(list34); + num4 = 0; + span34[num4] = null; + num4++; + span34[num4] = null; + num4++; + span34[num4] = null; + num4++; + span34[num4] = null; + num4++; + span34[num4] = null; + num4++; + span34[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj22.CompletionQuestVariablesFlags = list34; reference24 = obj22; - ref QuestStep reference25 = ref span18[2]; + index2++; + ref QuestStep reference25 = ref span32[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1008715u, new Vector3(-69.90167f, 13.38208f, 158.73962f), 140) { Fly = true }; - num3 = 6; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - Span span21 = CollectionsMarshal.AsSpan(list35); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + Span span35 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj23.CompletionQuestVariablesFlags = list35; reference25 = obj23; obj20.Steps = list32; reference22 = obj20; - ref QuestSequence reference26 = ref span16[4]; + num++; + ref QuestSequence reference26 = ref span28[num]; QuestSequence obj24 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 2003654u, new Vector3(-68.55884f, 13.809326f, 159.16675f), 140); + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.Interact, 2003654u, new Vector3(-68.55884f, 13.809326f, 159.16675f), 140); obj24.Steps = list36; reference26 = obj24; - ref QuestSequence reference27 = ref span16[5]; + num++; + ref QuestSequence reference27 = ref span28[num]; QuestSequence obj25 = new QuestSequence { Sequence = 5 @@ -76448,39 +92148,54 @@ public static class AssemblyQuestLoader num2 = 4; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span22 = CollectionsMarshal.AsSpan(list37); - ref QuestStep reference28 = ref span22[0]; + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + ref QuestStep reference28 = ref span37[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2003658u, new Vector3(-71.06128f, 13.443176f, 155.9624f), 140); num3 = 6; List list38 = new List(num3); CollectionsMarshal.SetCount(list38, num3); - Span span23 = CollectionsMarshal.AsSpan(list38); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span38 = CollectionsMarshal.AsSpan(list38); + num4 = 0; + span38[num4] = null; + num4++; + span38[num4] = null; + num4++; + span38[num4] = null; + num4++; + span38[num4] = null; + num4++; + span38[num4] = null; + num4++; + span38[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list38; reference28 = questStep3; - ref QuestStep reference29 = ref span22[1]; + index2++; + ref QuestStep reference29 = ref span37[index2]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 2003656u, new Vector3(-72.95343f, 13.504211f, 159.19727f), 140) { StopDistance = 4.5f }; - num3 = 6; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - Span span24 = CollectionsMarshal.AsSpan(list39); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list39 = new List(num4); + CollectionsMarshal.SetCount(list39, num4); + Span span39 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + span39[num3] = null; + num3++; + span39[num3] = null; + num3++; + span39[num3] = null; + num3++; + span39[num3] = null; + num3++; + span39[num3] = null; + num3++; + span39[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj26.CompletionQuestVariablesFlags = list39; reference29 = obj26; - ref QuestStep reference30 = ref span22[2]; + index2++; + ref QuestStep reference30 = ref span37[index2]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 2003657u, new Vector3(-80.18622f, 13.412659f, 158.12915f), 140) { StopDistance = 4.5f @@ -76488,40 +92203,56 @@ public static class AssemblyQuestLoader num3 = 6; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - Span span25 = CollectionsMarshal.AsSpan(list40); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span40 = CollectionsMarshal.AsSpan(list40); + num4 = 0; + span40[num4] = null; + num4++; + span40[num4] = null; + num4++; + span40[num4] = null; + num4++; + span40[num4] = null; + num4++; + span40[num4] = null; + num4++; + span40[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj27.CompletionQuestVariablesFlags = list40; reference30 = obj27; - ref QuestStep reference31 = ref span22[3]; + index2++; + ref QuestStep reference31 = ref span37[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2003659u, new Vector3(-76.15784f, 13.443176f, 155.90137f), 140); - num3 = 6; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - Span span26 = CollectionsMarshal.AsSpan(list41); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list41 = new List(num4); + CollectionsMarshal.SetCount(list41, num4); + Span span41 = CollectionsMarshal.AsSpan(list41); + num3 = 0; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list41; reference31 = questStep4; obj25.Steps = list37; reference27 = obj25; - ref QuestSequence reference32 = ref span16[6]; + num++; + ref QuestSequence reference32 = ref span28[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008716u, new Vector3(-68.00946f, 13.443176f, 157.5188f), 140) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008716u, new Vector3(-68.00946f, 13.443176f, 157.5188f), 140) { NextQuestId = new QuestId(1316) }; @@ -76534,13 +92265,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "FalconTaterz"; + Span span43 = CollectionsMarshal.AsSpan(list43); + index = 0; + span43[index] = "FalconTaterz"; questRoot6.Author = list43; - num = 4; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span27 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference33 = ref span27[0]; + index = 4; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + Span span44 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference33 = ref span44[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -76548,25 +92282,31 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008716u, new Vector3(-68.00946f, 13.443176f, 157.5188f), 140); + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008716u, new Vector3(-68.00946f, 13.443176f, 157.5188f), 140); obj29.Steps = list45; reference33 = obj29; - ref QuestSequence reference34 = ref span27[1]; + num++; + ref QuestSequence reference34 = ref span44[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 2003664u, new Vector3(11.337402f, 2.670288f, 320.943f), 147) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.Interact, 2003664u, new Vector3(11.337402f, 2.670288f, 320.943f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog }; obj30.Steps = list46; reference34 = obj30; - ref QuestSequence reference35 = ref span27[2]; + num++; + ref QuestSequence reference35 = ref span44[num]; QuestSequence obj31 = new QuestSequence { Sequence = 2 @@ -76574,26 +92314,31 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 2003665u, new Vector3(34.50061f, 12.191956f, 254.13892f), 147) + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.Interact, 2003665u, new Vector3(34.50061f, 12.191956f, 254.13892f), 147) { Fly = true }; obj31.Steps = list47; reference35 = obj31; - ref QuestSequence reference36 = ref span27[3]; + num++; + ref QuestSequence reference36 = ref span44[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - Span span28 = CollectionsMarshal.AsSpan(list48); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(110.67165f, 18.372795f, 122.4577f), 147) + index2 = 2; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(110.67165f, 18.372795f, 122.4577f), 147) { Fly = true }; - span28[1] = new QuestStep(EInteractionType.CompleteQuest, 2003666u, new Vector3(111.192505f, 19.424683f, 121.20239f), 147) + num2++; + span48[num2] = new QuestStep(EInteractionType.CompleteQuest, 2003666u, new Vector3(111.192505f, 19.424683f, 121.20239f), 147) { NextQuestId = new QuestId(1317) }; @@ -76606,13 +92351,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "FalconTaterz"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "FalconTaterz"; questRoot7.Author = list49; - num = 4; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span29 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference37 = ref span29[0]; + index = 4; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference37 = ref span50[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -76620,21 +92368,27 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008722u, new Vector3(109.7887f, 18.36741f, 121.72119f), 147); + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008722u, new Vector3(109.7887f, 18.36741f, 121.72119f), 147); obj33.Steps = list51; reference37 = obj33; - ref QuestSequence reference38 = ref span29[1]; + num++; + ref QuestSequence reference38 = ref span50[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 2003667u, new Vector3(139.48267f, 20.279175f, 102.92212f), 147); + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.Interact, 2003667u, new Vector3(139.48267f, 20.279175f, 102.92212f), 147); obj34.Steps = list52; reference38 = obj34; - ref QuestSequence reference39 = ref span29[2]; + num++; + ref QuestSequence reference39 = ref span50[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -76642,24 +92396,29 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span30 = CollectionsMarshal.AsSpan(list53); - span30[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span30[1] = new QuestStep(EInteractionType.Interact, 1008730u, new Vector3(-431.26575f, 28.038658f, -381.4298f), 140); + index2++; + span53[index2] = new QuestStep(EInteractionType.Interact, 1008730u, new Vector3(-431.26575f, 28.038658f, -381.4298f), 140); obj35.Steps = list53; reference39 = obj35; - ref QuestSequence reference40 = ref span29[3]; + num++; + ref QuestSequence reference40 = ref span50[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008735u, new Vector3(-420.2793f, 23.113977f, -367.17786f), 140) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008735u, new Vector3(-420.2793f, 23.113977f, -367.17786f), 140) { NextQuestId = new QuestId(1318) }; @@ -76672,13 +92431,16 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "FalconTaterz"; + Span span55 = CollectionsMarshal.AsSpan(list55); + index = 0; + span55[index] = "FalconTaterz"; questRoot8.Author = list55; - num = 9; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span31 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference41 = ref span31[0]; + index = 9; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + Span span56 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference41 = ref span56[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -76686,28 +92448,34 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008736u, new Vector3(-418.44818f, 23.113976f, -367.8188f), 140) + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008736u, new Vector3(-418.44818f, 23.113976f, -367.8188f), 140) { StopDistance = 5f }; obj37.Steps = list57; reference41 = obj37; - ref QuestSequence reference42 = ref span31[1]; + num++; + ref QuestSequence reference42 = ref span56[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1008739u, new Vector3(176.71472f, 222.1357f, 347.219f), 155) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.Interact, 1008739u, new Vector3(176.71472f, 222.1357f, 347.219f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj38.Steps = list58; reference42 = obj38; - ref QuestSequence reference43 = ref span31[2]; + num++; + ref QuestSequence reference43 = ref span56[num]; QuestSequence obj39 = new QuestSequence { Sequence = 2 @@ -76715,21 +92483,27 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1008741u, new Vector3(249.50024f, 222.36392f, 353.6278f), 155); + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.Interact, 1008741u, new Vector3(249.50024f, 222.36392f, 353.6278f), 155); obj39.Steps = list59; reference43 = obj39; - ref QuestSequence reference44 = ref span31[3]; + num++; + ref QuestSequence reference44 = ref span56[num]; QuestSequence obj40 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1008746u, new Vector3(261.46326f, 222.27127f, 320.2411f), 155); + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.Interact, 1008746u, new Vector3(261.46326f, 222.27127f, 320.2411f), 155); obj40.Steps = list60; reference44 = obj40; - ref QuestSequence reference45 = ref span31[4]; + num++; + ref QuestSequence reference45 = ref span56[num]; QuestSequence obj41 = new QuestSequence { Sequence = 4 @@ -76737,27 +92511,33 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 2003741u, new Vector3(394.7965f, 225.0553f, 378.80518f), 155) + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new QuestStep(EInteractionType.Interact, 2003741u, new Vector3(394.7965f, 225.0553f, 378.80518f), 155) { Fly = true }; obj41.Steps = list61; reference45 = obj41; - ref QuestSequence reference46 = ref span31[5]; + num++; + ref QuestSequence reference46 = ref span56[num]; QuestSequence obj42 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1008752u, new Vector3(487.81555f, 206.95914f, 479.69775f), 155) + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.Interact, 1008752u, new Vector3(487.81555f, 206.95914f, 479.69775f), 155) { Fly = true }; obj42.Steps = list62; reference46 = obj42; - ref QuestSequence reference47 = ref span31[6]; + num++; + ref QuestSequence reference47 = ref span56[num]; QuestSequence obj43 = new QuestSequence { Sequence = 6 @@ -76765,7 +92545,9 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -76774,21 +92556,25 @@ public static class AssemblyQuestLoader }; obj43.Steps = list63; reference47 = obj43; - ref QuestSequence reference48 = ref span31[7]; + num++; + ref QuestSequence reference48 = ref span56[num]; QuestSequence obj44 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1008756u, new Vector3(480.12512f, 207.33582f, 475.33374f), 155) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.Interact, 1008756u, new Vector3(480.12512f, 207.33582f, 475.33374f), 155) { StopDistance = 7f }; obj44.Steps = list64; reference48 = obj44; - ref QuestSequence reference49 = ref span31[8]; + num++; + ref QuestSequence reference49 = ref span56[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -76796,13 +92582,15 @@ public static class AssemblyQuestLoader num2 = 2; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span32 = CollectionsMarshal.AsSpan(list65); - span32[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span32[1] = new QuestStep(EInteractionType.CompleteQuest, 1008788u, new Vector3(-421.46948f, 23.113977f, -367.57465f), 140) + index2++; + span65[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008788u, new Vector3(-421.46948f, 23.113977f, -367.57465f), 140) { Fly = true, NextQuestId = new QuestId(1438) @@ -76816,24 +92604,30 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "liza"; + Span span66 = CollectionsMarshal.AsSpan(list66); + index = 0; + span66[index] = "liza"; questRoot9.Author = list66; - num = 8; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span33 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference50 = ref span33[0]; + index = 8; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + Span span67 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference50 = ref span67[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003550u, new Vector3(76.85962f, 39.99632f, 78.99597f), 128); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003550u, new Vector3(76.85962f, 39.99632f, 78.99597f), 128); obj46.Steps = list68; reference50 = obj46; - ref QuestSequence reference51 = ref span33[1]; + num++; + ref QuestSequence reference51 = ref span67[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -76841,24 +92635,30 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1005964u, new Vector3(651.1177f, 9.597839f, 484.73328f), 138) + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.Interact, 1005964u, new Vector3(651.1177f, 9.597839f, 484.73328f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch }; obj47.Steps = list69; reference51 = obj47; - ref QuestSequence reference52 = ref span33[2]; + num++; + ref QuestSequence reference52 = ref span67[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 2003711u, new Vector3(629.0836f, 9.719971f, 496.33008f), 138); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.Interact, 2003711u, new Vector3(629.0836f, 9.719971f, 496.33008f), 138); obj48.Steps = list70; reference52 = obj48; - ref QuestSequence reference53 = ref span33[3]; + num++; + ref QuestSequence reference53 = ref span67[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -76866,12 +92666,16 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list71)[0]; + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + ref QuestStep reference54 = ref span71[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1005964u, new Vector3(651.1177f, 9.597839f, 484.73328f), 138); num3 = 1; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = new DialogueChoice + Span span72 = CollectionsMarshal.AsSpan(list72); + num4 = 0; + span72[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB001_01320_Q1_000_000"), @@ -76881,21 +92685,25 @@ public static class AssemblyQuestLoader reference54 = questStep5; obj49.Steps = list71; reference53 = obj49; - ref QuestSequence reference55 = ref span33[4]; + num++; + ref QuestSequence reference55 = ref span67[num]; QuestSequence obj50 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Interact, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.Interact, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj50.Steps = list73; reference55 = obj50; - ref QuestSequence reference56 = ref span33[5]; + num++; + ref QuestSequence reference56 = ref span67[num]; QuestSequence obj51 = new QuestSequence { Sequence = 5 @@ -76903,24 +92711,30 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.274828f, 16.260347f, -199.21056f), 180) + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.274828f, 16.260347f, -199.21056f), 180) { Fly = true }; obj51.Steps = list74; reference56 = obj51; - ref QuestSequence reference57 = ref span33[6]; + num++; + ref QuestSequence reference57 = ref span67[num]; QuestSequence obj52 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1007950u, new Vector3(19.485779f, 16.159302f, -196.42938f), 180); + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.Interact, 1007950u, new Vector3(19.485779f, 16.159302f, -196.42938f), 180); obj52.Steps = list75; reference57 = obj52; - ref QuestSequence reference58 = ref span33[7]; + num++; + ref QuestSequence reference58 = ref span67[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -76928,7 +92742,9 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { NextQuestId = new QuestId(1321) }; @@ -76941,24 +92757,30 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "liza"; + Span span77 = CollectionsMarshal.AsSpan(list77); + index = 0; + span77[index] = "liza"; questRoot10.Author = list77; - num = 6; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span34 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference59 = ref span34[0]; + index = 6; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + Span span78 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference59 = ref span78[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180); + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180); obj54.Steps = list79; reference59 = obj54; - ref QuestSequence reference60 = ref span34[1]; + num++; + ref QuestSequence reference60 = ref span78[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -76966,98 +92788,137 @@ public static class AssemblyQuestLoader num2 = 5; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span35 = CollectionsMarshal.AsSpan(list80); - ref QuestStep reference61 = ref span35[0]; + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + ref QuestStep reference61 = ref span80[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(155.47716f, 68.658165f, -256.36594f), 180); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - Span span36 = CollectionsMarshal.AsSpan(list81); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list81 = new List(num4); + CollectionsMarshal.SetCount(list81, num4); + Span span81 = CollectionsMarshal.AsSpan(list81); + num3 = 0; + span81[num3] = null; + num3++; + span81[num3] = null; + num3++; + span81[num3] = null; + num3++; + span81[num3] = null; + num3++; + span81[num3] = null; + num3++; + span81[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list81; skipConditions4.StepIf = skipStepConditions4; questStep6.SkipConditions = skipConditions4; reference61 = questStep6; - ref QuestStep reference62 = ref span35[1]; + index2++; + ref QuestStep reference62 = ref span80[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2003715u, new Vector3(154.49756f, 69.047f, -254.32214f), 180); num3 = 6; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - Span span37 = CollectionsMarshal.AsSpan(list82); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span82 = CollectionsMarshal.AsSpan(list82); + num4 = 0; + span82[num4] = null; + num4++; + span82[num4] = null; + num4++; + span82[num4] = null; + num4++; + span82[num4] = null; + num4++; + span82[num4] = null; + num4++; + span82[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list82; reference62 = questStep7; - ref QuestStep reference63 = ref span35[2]; + index2++; + ref QuestStep reference63 = ref span80[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2003713u, new Vector3(181.47546f, 64.59143f, -282.42926f), 180); - num3 = 6; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - Span span38 = CollectionsMarshal.AsSpan(list83); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list83 = new List(num4); + CollectionsMarshal.SetCount(list83, num4); + Span span83 = CollectionsMarshal.AsSpan(list83); + num3 = 0; + span83[num3] = null; + num3++; + span83[num3] = null; + num3++; + span83[num3] = null; + num3++; + span83[num3] = null; + num3++; + span83[num3] = null; + num3++; + span83[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list83; reference63 = questStep8; - ref QuestStep reference64 = ref span35[3]; + index2++; + ref QuestStep reference64 = ref span80[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2003716u, new Vector3(180.28528f, 64.62195f, -255.17664f), 180); num3 = 6; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - Span span39 = CollectionsMarshal.AsSpan(list84); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span84 = CollectionsMarshal.AsSpan(list84); + num4 = 0; + span84[num4] = null; + num4++; + span84[num4] = null; + num4++; + span84[num4] = null; + num4++; + span84[num4] = null; + num4++; + span84[num4] = null; + num4++; + span84[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list84; reference64 = questStep9; - ref QuestStep reference65 = ref span35[4]; + index2++; + ref QuestStep reference65 = ref span80[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2003714u, new Vector3(197.00916f, 64.042114f, -225.60468f), 180); - num3 = 6; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - Span span40 = CollectionsMarshal.AsSpan(list85); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list85 = new List(num4); + CollectionsMarshal.SetCount(list85, num4); + Span span85 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span85[num3] = null; + num3++; + span85[num3] = null; + num3++; + span85[num3] = null; + num3++; + span85[num3] = null; + num3++; + span85[num3] = null; + num3++; + span85[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list85; reference65 = questStep10; obj55.Steps = list80; reference60 = obj55; - ref QuestSequence reference66 = ref span34[2]; + num++; + ref QuestSequence reference66 = ref span78[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { Fly = true }; obj56.Steps = list86; reference66 = obj56; - ref QuestSequence reference67 = ref span34[3]; + num++; + ref QuestSequence reference67 = ref span78[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 @@ -77065,24 +92926,30 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 2003717u, new Vector3(0.38146973f, 16.433899f, -177.47778f), 180); + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.Interact, 2003717u, new Vector3(0.38146973f, 16.433899f, -177.47778f), 180); obj57.Steps = list87; reference67 = obj57; - ref QuestSequence reference68 = ref span34[4]; + num++; + ref QuestSequence reference68 = ref span78[num]; QuestSequence obj58 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { StopDistance = 5f }; obj58.Steps = list88; reference68 = obj58; - ref QuestSequence reference69 = ref span34[5]; + num++; + ref QuestSequence reference69 = ref span78[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -77090,7 +92957,9 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list89)[0]; + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + ref QuestStep reference70 = ref span89[index2]; QuestStep obj60 = new QuestStep(EInteractionType.CompleteQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { StopDistance = 5f @@ -77098,7 +92967,9 @@ public static class AssemblyQuestLoader num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = new DialogueChoice + Span span90 = CollectionsMarshal.AsSpan(list90); + num4 = 0; + span90[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB002_01321_Q1_000_000"), @@ -77115,21 +92986,26 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "Censored"; + Span span91 = CollectionsMarshal.AsSpan(list91); + index = 0; + span91[index] = "Censored"; questRoot11.Author = list91; - num = 11; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span41 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference71 = ref span41[0]; + index = 11; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + Span span92 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference71 = ref span92[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -77143,7 +93019,8 @@ public static class AssemblyQuestLoader }; obj61.Steps = list93; reference71 = obj61; - ref QuestSequence reference72 = ref span41[1]; + num++; + ref QuestSequence reference72 = ref span92[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -77151,27 +93028,33 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1007936u, new Vector3(-89.12799f, 64.1947f, -246.84528f), 180) + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.Interact, 1007936u, new Vector3(-89.12799f, 64.1947f, -246.84528f), 180) { Fly = true }; obj62.Steps = list94; reference72 = obj62; - ref QuestSequence reference73 = ref span41[2]; + num++; + ref QuestSequence reference73 = ref span92[num]; QuestSequence obj63 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { Fly = true }; obj63.Steps = list95; reference73 = obj63; - ref QuestSequence reference74 = ref span41[3]; + num++; + ref QuestSequence reference74 = ref span92[num]; QuestSequence obj64 = new QuestSequence { Sequence = 3 @@ -77179,27 +93062,34 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); obj64.Steps = list96; reference74 = obj64; - ref QuestSequence reference75 = ref span41[4]; + num++; + ref QuestSequence reference75 = ref span92[num]; QuestSequence obj65 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - ref QuestStep reference76 = ref CollectionsMarshal.AsSpan(list97)[0]; + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + ref QuestStep reference76 = ref span97[num2]; QuestStep obj66 = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, Land = true }; - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = new DialogueChoice + num4 = 1; + List list98 = new List(num4); + CollectionsMarshal.SetCount(list98, num4); + Span span98 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span98[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB003_01322_Q1_000_000"), @@ -77209,7 +93099,8 @@ public static class AssemblyQuestLoader reference76 = obj66; obj65.Steps = list97; reference75 = obj65; - ref QuestSequence reference77 = ref span41[5]; + num++; + ref QuestSequence reference77 = ref span92[num]; QuestSequence obj67 = new QuestSequence { Sequence = 5 @@ -77217,18 +93108,23 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1007937u, new Vector3(221.82031f, 21.484379f, -580.6516f), 180); + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.Interact, 1007937u, new Vector3(221.82031f, 21.484379f, -580.6516f), 180); obj67.Steps = list99; reference77 = obj67; - ref QuestSequence reference78 = ref span41[6]; + num++; + ref QuestSequence reference78 = ref span92[num]; QuestSequence obj68 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list100)[0]; + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference79 = ref span100[num2]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, 2003719u, new Vector3(182.5741f, 24.734863f, -622.33923f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -77236,14 +93132,17 @@ public static class AssemblyQuestLoader num3 = 2; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span42 = CollectionsMarshal.AsSpan(list101); - span42[0] = 2854u; - span42[1] = 2855u; + Span span101 = CollectionsMarshal.AsSpan(list101); + num4 = 0; + span101[num4] = 2854u; + num4++; + span101[num4] = 2855u; obj69.KillEnemyDataIds = list101; reference79 = obj69; obj68.Steps = list100; reference78 = obj68; - ref QuestSequence reference80 = ref span41[7]; + num++; + ref QuestSequence reference80 = ref span92[num]; QuestSequence obj70 = new QuestSequence { Sequence = 7 @@ -77251,26 +93150,32 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1007937u, new Vector3(221.82031f, 21.484379f, -580.6516f), 180); + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span102[index2] = new QuestStep(EInteractionType.Interact, 1007937u, new Vector3(221.82031f, 21.484379f, -580.6516f), 180); obj70.Steps = list102; reference80 = obj70; - ref QuestSequence reference81 = ref span41[8]; + num++; + ref QuestSequence reference81 = ref span92[num]; QuestSequence obj71 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - Span span43 = CollectionsMarshal.AsSpan(list103); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(224.7802f, 21.375952f, -579.86096f), 180); - span43[1] = new QuestStep(EInteractionType.UseItem, 2003720u, new Vector3(224.78064f, 23.941406f, -580.9568f), 180) + index2 = 2; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span103[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(224.7802f, 21.375952f, -579.86096f), 180); + num2++; + span103[num2] = new QuestStep(EInteractionType.UseItem, 2003720u, new Vector3(224.78064f, 23.941406f, -580.9568f), 180) { ItemId = 2001234u }; obj71.Steps = list103; reference81 = obj71; - ref QuestSequence reference82 = ref span41[9]; + num++; + ref QuestSequence reference82 = ref span92[num]; QuestSequence obj72 = new QuestSequence { Sequence = 9 @@ -77278,18 +93183,23 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1008883u, new Vector3(150.19446f, 26.489233f, -555.1385f), 180); + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.Interact, 1008883u, new Vector3(150.19446f, 26.489233f, -555.1385f), 180); obj72.Steps = list104; reference82 = obj72; - ref QuestSequence reference83 = ref span41[10]; + num++; + ref QuestSequence reference83 = ref span92[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook @@ -77303,13 +93213,16 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "Censored"; + Span span106 = CollectionsMarshal.AsSpan(list106); + index = 0; + span106[index] = "Censored"; questRoot12.Author = list106; - num = 9; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - Span span44 = CollectionsMarshal.AsSpan(list107); - ref QuestSequence reference84 = ref span44[0]; + index = 9; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + Span span107 = CollectionsMarshal.AsSpan(list107); + num = 0; + ref QuestSequence reference84 = ref span107[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -77317,7 +93230,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180) + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -77336,21 +93251,25 @@ public static class AssemblyQuestLoader }; obj74.Steps = list108; reference84 = obj74; - ref QuestSequence reference85 = ref span44[1]; + num++; + ref QuestSequence reference85 = ref span107[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.Interact, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj75.Steps = list109; reference85 = obj75; - ref QuestSequence reference86 = ref span44[2]; + num++; + ref QuestSequence reference86 = ref span107[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 @@ -77358,28 +93277,34 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180) + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.Interact, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180) { Fly = true }; obj76.Steps = list110; reference86 = obj76; - ref QuestSequence reference87 = ref span44[3]; + num++; + ref QuestSequence reference87 = ref span107[num]; QuestSequence obj77 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(217.99217f, 61.42252f, -233.55513f), 180) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(217.99217f, 61.42252f, -233.55513f), 180) { Fly = true, Land = true }; obj77.Steps = list111; reference87 = obj77; - ref QuestSequence reference88 = ref span44[4]; + num++; + ref QuestSequence reference88 = ref span107[num]; QuestSequence obj78 = new QuestSequence { Sequence = 4 @@ -77387,36 +93312,45 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span45 = CollectionsMarshal.AsSpan(list112); - ref QuestStep reference89 = ref span45[0]; + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + ref QuestStep reference89 = ref span112[index2]; QuestStep obj79 = new QuestStep(EInteractionType.Combat, null, new Vector3(217.99217f, 61.42252f, -233.55513f), 180) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - Span span46 = CollectionsMarshal.AsSpan(list113); - span46[0] = 2864u; - span46[1] = 2865u; - span46[2] = 2866u; + num4 = 3; + List list113 = new List(num4); + CollectionsMarshal.SetCount(list113, num4); + Span span113 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span113[num3] = 2864u; + num3++; + span113[num3] = 2865u; + num3++; + span113[num3] = 2866u; obj79.KillEnemyDataIds = list113; reference89 = obj79; - span45[1] = new QuestStep(EInteractionType.Interact, 1007941u, new Vector3(218.98218f, 61.284424f, -233.32574f), 180); + index2++; + span112[index2] = new QuestStep(EInteractionType.Interact, 1007941u, new Vector3(218.98218f, 61.284424f, -233.32574f), 180); obj78.Steps = list112; reference88 = obj78; - ref QuestSequence reference90 = ref span44[5]; + num++; + ref QuestSequence reference90 = ref span107[num]; QuestSequence obj80 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 2003722u, new Vector3(189.53223f, 64.25574f, -287.5868f), 180); + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.Interact, 2003722u, new Vector3(189.53223f, 64.25574f, -287.5868f), 180); obj80.Steps = list114; reference90 = obj80; - ref QuestSequence reference91 = ref span44[6]; + num++; + ref QuestSequence reference91 = ref span107[num]; QuestSequence obj81 = new QuestSequence { Sequence = 6 @@ -77424,24 +93358,30 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1008947u, new Vector3(218.98218f, 61.284424f, -233.32574f), 180); + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.Interact, 1008947u, new Vector3(218.98218f, 61.284424f, -233.32574f), 180); obj81.Steps = list115; reference91 = obj81; - ref QuestSequence reference92 = ref span44[7]; + num++; + ref QuestSequence reference92 = ref span107[num]; QuestSequence obj82 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { Fly = true }; obj82.Steps = list116; reference92 = obj82; - ref QuestSequence reference93 = ref span44[8]; + num++; + ref QuestSequence reference93 = ref span107[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -77449,7 +93389,9 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180); + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180); obj83.Steps = list117; reference93 = obj83; questRoot12.QuestSequence = list107; @@ -77459,21 +93401,26 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "Censored"; + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "Censored"; questRoot13.Author = list118; - num = 13; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span47 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference94 = ref span47[0]; + index = 13; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference94 = ref span119[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -77492,7 +93439,8 @@ public static class AssemblyQuestLoader }; obj84.Steps = list120; reference94 = obj84; - ref QuestSequence reference95 = ref span47[1]; + num++; + ref QuestSequence reference95 = ref span119[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -77500,21 +93448,27 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1007949u, new Vector3(14.633362f, 16.165525f, -184.31378f), 180); + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.Interact, 1007949u, new Vector3(14.633362f, 16.165525f, -184.31378f), 180); obj85.Steps = list121; reference95 = obj85; - ref QuestSequence reference96 = ref span47[2]; + num++; + ref QuestSequence reference96 = ref span119[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180); obj86.Steps = list122; reference96 = obj86; - ref QuestSequence reference97 = ref span47[3]; + num++; + ref QuestSequence reference97 = ref span119[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 @@ -77522,22 +93476,26 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj87.Steps = list123; reference97 = obj87; - ref QuestSequence reference98 = ref span47[4]; + num++; + ref QuestSequence reference98 = ref span119[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - Span span48 = CollectionsMarshal.AsSpan(list124); - ref QuestStep reference99 = ref span48[0]; + index2 = 3; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + ref QuestStep reference99 = ref span124[num2]; QuestStep obj89 = new QuestStep(EInteractionType.UseItem, 2003723u, new Vector3(87.08313f, 22.018738f, -635.5535f), 180) { Fly = true, @@ -77546,39 +93504,54 @@ public static class AssemblyQuestLoader num3 = 6; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - Span span49 = CollectionsMarshal.AsSpan(list125); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span125 = CollectionsMarshal.AsSpan(list125); + num4 = 0; + span125[num4] = null; + num4++; + span125[num4] = null; + num4++; + span125[num4] = null; + num4++; + span125[num4] = null; + num4++; + span125[num4] = null; + num4++; + span125[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj89.CompletionQuestVariablesFlags = list125; reference99 = obj89; - ref QuestStep reference100 = ref span48[1]; + num2++; + ref QuestStep reference100 = ref span124[num2]; QuestStep obj90 = new QuestStep(EInteractionType.UseItem, 2003724u, new Vector3(96.11658f, 21.896606f, -644.9531f), 180) { ItemId = 2001237u }; - num3 = 6; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - Span span50 = CollectionsMarshal.AsSpan(list126); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list126 = new List(num4); + CollectionsMarshal.SetCount(list126, num4); + Span span126 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj90.CompletionQuestVariablesFlags = list126; reference100 = obj90; - span48[2] = new QuestStep(EInteractionType.UseItem, 2003725u, new Vector3(92.94263f, 25.833496f, -655.0851f), 180) + num2++; + span124[num2] = new QuestStep(EInteractionType.UseItem, 2003725u, new Vector3(92.94263f, 25.833496f, -655.0851f), 180) { ItemId = 2001237u }; obj88.Steps = list124; reference98 = obj88; - ref QuestSequence reference101 = ref span47[5]; + num++; + ref QuestSequence reference101 = ref span119[num]; QuestSequence obj91 = new QuestSequence { Sequence = 5 @@ -77586,19 +93559,23 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 1007942u, new Vector3(74.93701f, 24.490723f, -665.5528f), 180); + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.Interact, 1007942u, new Vector3(74.93701f, 24.490723f, -665.5528f), 180); obj91.Steps = list127; reference101 = obj91; - ref QuestSequence reference102 = ref span47[6]; + num++; + ref QuestSequence reference102 = ref span119[num]; QuestSequence obj92 = new QuestSequence { Sequence = 6 }; - num2 = 3; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span51 = CollectionsMarshal.AsSpan(list128); - ref QuestStep reference103 = ref span51[0]; + index2 = 3; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + ref QuestStep reference103 = ref span128[num2]; QuestStep obj93 = new QuestStep(EInteractionType.UseItem, 2003727u, new Vector3(157.7019f, 22.11029f, -713.28296f), 180) { ItemId = 2001237u @@ -77606,39 +93583,54 @@ public static class AssemblyQuestLoader num3 = 6; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span52 = CollectionsMarshal.AsSpan(list129); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span129 = CollectionsMarshal.AsSpan(list129); + num4 = 0; + span129[num4] = null; + num4++; + span129[num4] = null; + num4++; + span129[num4] = null; + num4++; + span129[num4] = null; + num4++; + span129[num4] = null; + num4++; + span129[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj93.CompletionQuestVariablesFlags = list129; reference103 = obj93; - ref QuestStep reference104 = ref span51[1]; + num2++; + ref QuestStep reference104 = ref span128[num2]; QuestStep obj94 = new QuestStep(EInteractionType.UseItem, 2003728u, new Vector3(167.65088f, 21.927185f, -707.5151f), 180) { ItemId = 2001237u }; - num3 = 6; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - Span span53 = CollectionsMarshal.AsSpan(list130); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list130 = new List(num4); + CollectionsMarshal.SetCount(list130, num4); + Span span130 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + span130[num3] = null; + num3++; + span130[num3] = null; + num3++; + span130[num3] = null; + num3++; + span130[num3] = null; + num3++; + span130[num3] = null; + num3++; + span130[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj94.CompletionQuestVariablesFlags = list130; reference104 = obj94; - span51[2] = new QuestStep(EInteractionType.UseItem, 2003726u, new Vector3(163.53088f, 25.925049f, -688.38025f), 180) + num2++; + span128[num2] = new QuestStep(EInteractionType.UseItem, 2003726u, new Vector3(163.53088f, 25.925049f, -688.38025f), 180) { ItemId = 2001237u }; obj92.Steps = list128; reference102 = obj92; - ref QuestSequence reference105 = ref span47[7]; + num++; + ref QuestSequence reference105 = ref span119[num]; QuestSequence obj95 = new QuestSequence { Sequence = 7 @@ -77646,23 +93638,30 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1007943u, new Vector3(176.98938f, 24.795776f, -688.53284f), 180); + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.Interact, 1007943u, new Vector3(176.98938f, 24.795776f, -688.53284f), 180); obj95.Steps = list131; reference105 = obj95; - ref QuestSequence reference106 = ref span47[8]; + num++; + ref QuestSequence reference106 = ref span119[num]; QuestSequence obj96 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - ref QuestStep reference107 = ref CollectionsMarshal.AsSpan(list132)[0]; + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + ref QuestStep reference107 = ref span132[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1007944u, new Vector3(178.45422f, 23.483582f, -641.01624f), 180); num3 = 1; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = new DialogueChoice + Span span133 = CollectionsMarshal.AsSpan(list133); + num4 = 0; + span133[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB005_01324_Q1_000_000"), @@ -77672,7 +93671,8 @@ public static class AssemblyQuestLoader reference107 = questStep11; obj96.Steps = list132; reference106 = obj96; - ref QuestSequence reference108 = ref span47[9]; + num++; + ref QuestSequence reference108 = ref span119[num]; QuestSequence obj97 = new QuestSequence { Sequence = 9 @@ -77680,21 +93680,27 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1007946u, new Vector3(220.66064f, 21.481783f, -592.64514f), 180); + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span134[index2] = new QuestStep(EInteractionType.Interact, 1007946u, new Vector3(220.66064f, 21.481783f, -592.64514f), 180); obj97.Steps = list134; reference108 = obj97; - ref QuestSequence reference109 = ref span47[10]; + num++; + ref QuestSequence reference109 = ref span119[num]; QuestSequence obj98 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1007947u, new Vector3(150.86597f, 26.382812f, -551.751f), 180); + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span135[num2] = new QuestStep(EInteractionType.Interact, 1007947u, new Vector3(150.86597f, 26.382812f, -551.751f), 180); obj98.Steps = list135; reference109 = obj98; - ref QuestSequence reference110 = ref span47[11]; + num++; + ref QuestSequence reference110 = ref span119[num]; QuestSequence obj99 = new QuestSequence { Sequence = 11 @@ -77702,21 +93708,26 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span136[index2] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { Fly = true }; obj99.Steps = list136; reference110 = obj99; - ref QuestSequence reference111 = ref span47[12]; + num++; + ref QuestSequence reference111 = ref span119[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003550u, new Vector3(76.85962f, 39.99632f, 78.99597f), 128) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span137[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003550u, new Vector3(76.85962f, 39.99632f, 78.99597f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -77734,13 +93745,16 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "Censored"; + Span span138 = CollectionsMarshal.AsSpan(list138); + index = 0; + span138[index] = "Censored"; questRoot14.Author = list138; - num = 4; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span54 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference112 = ref span54[0]; + index = 4; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + Span span139 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference112 = ref span139[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -77748,7 +93762,9 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -77767,53 +93783,70 @@ public static class AssemblyQuestLoader }; obj101.Steps = list140; reference112 = obj101; - ref QuestSequence reference113 = ref span54[1]; + num++; + ref QuestSequence reference113 = ref span139[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - Span span55 = CollectionsMarshal.AsSpan(list141); - ref QuestStep reference114 = ref span55[0]; + index2 = 3; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + ref QuestStep reference114 = ref span141[num2]; QuestStep obj103 = new QuestStep(EInteractionType.Interact, 2003769u, new Vector3(-18.539795f, 48.447266f, -294.2398f), 180) { Fly = true }; - num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span56 = CollectionsMarshal.AsSpan(list142); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list142 = new List(num4); + CollectionsMarshal.SetCount(list142, num4); + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj103.CompletionQuestVariablesFlags = list142; reference114 = obj103; - ref QuestStep reference115 = ref span55[1]; + num2++; + ref QuestStep reference115 = ref span141[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2003770u, new Vector3(-5.996826f, 48.41687f, -322.2553f), 180); num3 = 6; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span57 = CollectionsMarshal.AsSpan(list143); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span143 = CollectionsMarshal.AsSpan(list143); + num4 = 0; + span143[num4] = null; + num4++; + span143[num4] = null; + num4++; + span143[num4] = null; + num4++; + span143[num4] = null; + num4++; + span143[num4] = null; + num4++; + span143[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list143; reference115 = questStep12; - span55[2] = new QuestStep(EInteractionType.Interact, 2003773u, new Vector3(79.17908f, 57.51123f, -305.745f), 180) + num2++; + span141[num2] = new QuestStep(EInteractionType.Interact, 2003773u, new Vector3(79.17908f, 57.51123f, -305.745f), 180) { Fly = true }; obj102.Steps = list141; reference113 = obj102; - ref QuestSequence reference116 = ref span54[2]; + num++; + ref QuestSequence reference116 = ref span139[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 @@ -77821,21 +93854,26 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1007957u, new Vector3(-101.76245f, 64.49596f, -225.08588f), 180) + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span144[index2] = new QuestStep(EInteractionType.Interact, 1007957u, new Vector3(-101.76245f, 64.49596f, -225.08588f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj104.Steps = list144; reference116 = obj104; - ref QuestSequence reference117 = ref span54[3]; + num++; + ref QuestSequence reference117 = ref span139[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span145[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -77848,13 +93886,16 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "liza"; + Span span146 = CollectionsMarshal.AsSpan(list146); + index = 0; + span146[index] = "liza"; questRoot15.Author = list146; - num = 3; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span58 = CollectionsMarshal.AsSpan(list147); - ref QuestSequence reference118 = ref span58[0]; + index = 3; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + Span span147 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference118 = ref span147[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -77862,71 +93903,97 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180); + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span148[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180); obj106.Steps = list148; reference118 = obj106; - ref QuestSequence reference119 = ref span58[1]; + num++; + ref QuestSequence reference119 = ref span147[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - Span span59 = CollectionsMarshal.AsSpan(list149); - ref QuestStep reference120 = ref span59[0]; + index2 = 4; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + ref QuestStep reference120 = ref span149[num2]; QuestStep obj108 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(11.243606f, 49.8394f, -374.39398f), 180) { Fly = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - Span span60 = CollectionsMarshal.AsSpan(list150); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list150 = new List(num4); + CollectionsMarshal.SetCount(list150, num4); + Span span150 = CollectionsMarshal.AsSpan(list150); + num3 = 0; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list150; skipConditions5.StepIf = skipStepConditions5; obj108.SkipConditions = skipConditions5; reference120 = obj108; - ref QuestStep reference121 = ref span59[1]; + num2++; + ref QuestStep reference121 = ref span149[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2003774u, new Vector3(10.269287f, 49.82068f, -375.5398f), 180); num3 = 6; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - Span span61 = CollectionsMarshal.AsSpan(list151); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span151 = CollectionsMarshal.AsSpan(list151); + num4 = 0; + span151[num4] = null; + num4++; + span151[num4] = null; + num4++; + span151[num4] = null; + num4++; + span151[num4] = null; + num4++; + span151[num4] = null; + num4++; + span151[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list151; reference121 = questStep13; - ref QuestStep reference122 = ref span59[2]; + num2++; + ref QuestStep reference122 = ref span149[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2004022u, new Vector3(39.139404f, 48.2948f, -342.33618f), 180); - num3 = 6; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - Span span62 = CollectionsMarshal.AsSpan(list152); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list152 = new List(num4); + CollectionsMarshal.SetCount(list152, num4); + Span span152 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span152[num3] = null; + num3++; + span152[num3] = null; + num3++; + span152[num3] = null; + num3++; + span152[num3] = null; + num3++; + span152[num3] = null; + num3++; + span152[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list152; reference122 = questStep14; - span59[3] = new QuestStep(EInteractionType.Interact, 2004020u, new Vector3(51.102417f, 48.2948f, -349.50793f), 180); + num2++; + span149[num2] = new QuestStep(EInteractionType.Interact, 2004020u, new Vector3(51.102417f, 48.2948f, -349.50793f), 180); obj107.Steps = list149; reference119 = obj107; - ref QuestSequence reference123 = ref span58[2]; + num++; + ref QuestSequence reference123 = ref span147[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -77934,7 +94001,9 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -77947,21 +94016,26 @@ public static class AssemblyQuestLoader num = 1; List list154 = new List(num); CollectionsMarshal.SetCount(list154, num); - CollectionsMarshal.AsSpan(list154)[0] = "liza"; + Span span154 = CollectionsMarshal.AsSpan(list154); + index = 0; + span154[index] = "liza"; questRoot16.Author = list154; - num = 4; - List list155 = new List(num); - CollectionsMarshal.SetCount(list155, num); - Span span63 = CollectionsMarshal.AsSpan(list155); - ref QuestSequence reference124 = ref span63[0]; + index = 4; + List list155 = new List(index); + CollectionsMarshal.SetCount(list155, index); + Span span155 = CollectionsMarshal.AsSpan(list155); + num = 0; + ref QuestSequence reference124 = ref span155[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -77980,7 +94054,8 @@ public static class AssemblyQuestLoader }; obj110.Steps = list156; reference124 = obj110; - ref QuestSequence reference125 = ref span63[1]; + num++; + ref QuestSequence reference125 = ref span155[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 @@ -77988,7 +94063,9 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - ref QuestStep reference126 = ref CollectionsMarshal.AsSpan(list157)[0]; + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + ref QuestStep reference126 = ref span157[index2]; QuestStep obj112 = new QuestStep(EInteractionType.Combat, null, new Vector3(-1.668298f, 48.422268f, -312.28842f), 180) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -77996,7 +94073,9 @@ public static class AssemblyQuestLoader num3 = 1; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - CollectionsMarshal.AsSpan(list158)[0] = new ComplexCombatData + Span span158 = CollectionsMarshal.AsSpan(list158); + num4 = 0; + span158[num4] = new ComplexCombatData { DataId = 327u, MinimumKillCount = 3u, @@ -78007,21 +94086,25 @@ public static class AssemblyQuestLoader reference126 = obj112; obj111.Steps = list157; reference125 = obj111; - ref QuestSequence reference127 = ref span63[2]; + num++; + ref QuestSequence reference127 = ref span155[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj113.Steps = list159; reference127 = obj113; - ref QuestSequence reference128 = ref span63[3]; + num++; + ref QuestSequence reference128 = ref span155[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue @@ -78029,7 +94112,9 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -78042,24 +94127,30 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "liza"; + Span span161 = CollectionsMarshal.AsSpan(list161); + index = 0; + span161[index] = "liza"; questRoot17.Author = list161; - num = 3; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span64 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference129 = ref span64[0]; + index = 3; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + Span span162 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference129 = ref span162[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180); + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span163[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180); obj115.Steps = list163; reference129 = obj115; - ref QuestSequence reference130 = ref span64[1]; + num++; + ref QuestSequence reference130 = ref span162[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 @@ -78067,31 +94158,38 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list164)[0]; + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + ref QuestStep reference131 = ref span164[index2]; QuestStep obj117 = new QuestStep(EInteractionType.Combat, null, new Vector3(65.98078f, 57.753456f, -310.697f), 180) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - Span span65 = CollectionsMarshal.AsSpan(list165); - span65[0] = 755u; - span65[1] = 2881u; + num4 = 2; + List list165 = new List(num4); + CollectionsMarshal.SetCount(list165, num4); + Span span165 = CollectionsMarshal.AsSpan(list165); + num3 = 0; + span165[num3] = 755u; + num3++; + span165[num3] = 2881u; obj117.KillEnemyDataIds = list165; reference131 = obj117; obj116.Steps = list164; reference130 = obj116; - ref QuestSequence reference132 = ref span64[2]; + num++; + ref QuestSequence reference132 = ref span162[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -78109,13 +94207,16 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "Censored"; + Span span167 = CollectionsMarshal.AsSpan(list167); + index = 0; + span167[index] = "Censored"; questRoot18.Author = list167; - num = 7; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span66 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference133 = ref span66[0]; + index = 7; + List list168 = new List(index); + CollectionsMarshal.SetCount(list168, index); + Span span168 = CollectionsMarshal.AsSpan(list168); + num = 0; + ref QuestSequence reference133 = ref span168[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -78123,7 +94224,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -78142,18 +94245,22 @@ public static class AssemblyQuestLoader }; obj119.Steps = list169; reference133 = obj119; - ref QuestSequence reference134 = ref span66[1]; + num++; + ref QuestSequence reference134 = ref span168[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); obj120.Steps = list170; reference134 = obj120; - ref QuestSequence reference135 = ref span66[2]; + num++; + ref QuestSequence reference135 = ref span168[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 @@ -78161,8 +94268,9 @@ public static class AssemblyQuestLoader num2 = 3; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span67 = CollectionsMarshal.AsSpan(list171); - ref QuestStep reference136 = ref span67[0]; + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + ref QuestStep reference136 = ref span171[index2]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 2003785u, new Vector3(-53.330322f, 64.46936f, -302.54065f), 180) { Fly = true, @@ -78172,7 +94280,9 @@ public static class AssemblyQuestLoader num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = new ComplexCombatData + Span span172 = CollectionsMarshal.AsSpan(list172); + num4 = 0; + span172[num4] = new ComplexCombatData { DataId = 2870u, MinimumKillCount = 1u, @@ -78181,21 +94291,28 @@ public static class AssemblyQuestLoader obj122.ComplexCombatData = list172; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 6; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - Span span68 = CollectionsMarshal.AsSpan(list173); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list173 = new List(num4); + CollectionsMarshal.SetCount(list173, num4); + Span span173 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span173[num3] = null; + num3++; + span173[num3] = null; + num3++; + span173[num3] = null; + num3++; + span173[num3] = null; + num3++; + span173[num3] = null; + num3++; + span173[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list173; skipConditions6.StepIf = skipStepConditions6; obj122.SkipConditions = skipConditions6; reference136 = obj122; - ref QuestStep reference137 = ref span67[1]; + index2++; + ref QuestStep reference137 = ref span171[index2]; QuestStep obj123 = new QuestStep(EInteractionType.Combat, 2003784u, new Vector3(-57.90808f, 64.74402f, -301.68616f), 180) { ItemId = 2001257u, @@ -78204,7 +94321,9 @@ public static class AssemblyQuestLoader num3 = 1; List list174 = new List(num3); CollectionsMarshal.SetCount(list174, num3); - CollectionsMarshal.AsSpan(list174)[0] = new ComplexCombatData + Span span174 = CollectionsMarshal.AsSpan(list174); + num4 = 0; + span174[num4] = new ComplexCombatData { DataId = 2870u, MinimumKillCount = 1u, @@ -78213,21 +94332,28 @@ public static class AssemblyQuestLoader obj123.ComplexCombatData = list174; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list175 = new List(num3); - CollectionsMarshal.SetCount(list175, num3); - Span span69 = CollectionsMarshal.AsSpan(list175); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list175 = new List(num4); + CollectionsMarshal.SetCount(list175, num4); + Span span175 = CollectionsMarshal.AsSpan(list175); + num3 = 0; + span175[num3] = null; + num3++; + span175[num3] = null; + num3++; + span175[num3] = null; + num3++; + span175[num3] = null; + num3++; + span175[num3] = null; + num3++; + span175[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list175; skipConditions7.StepIf = skipStepConditions7; obj123.SkipConditions = skipConditions7; reference137 = obj123; - ref QuestStep reference138 = ref span67[2]; + index2++; + ref QuestStep reference138 = ref span171[index2]; QuestStep obj124 = new QuestStep(EInteractionType.Combat, 2003786u, new Vector3(-63.46228f, 64.83557f, -298.60382f), 180) { ItemId = 2001257u, @@ -78236,7 +94362,9 @@ public static class AssemblyQuestLoader num3 = 1; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = new ComplexCombatData + Span span176 = CollectionsMarshal.AsSpan(list176); + num4 = 0; + span176[num4] = new ComplexCombatData { DataId = 2870u, MinimumKillCount = 1u, @@ -78246,21 +94374,25 @@ public static class AssemblyQuestLoader reference138 = obj124; obj121.Steps = list171; reference135 = obj121; - ref QuestSequence reference139 = ref span66[3]; + num++; + ref QuestSequence reference139 = ref span168[num]; QuestSequence obj125 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.UseItem, 2003793u, new Vector3(-54.398438f, 64.49988f, -288.8075f), 180) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.UseItem, 2003793u, new Vector3(-54.398438f, 64.49988f, -288.8075f), 180) { ItemId = 2001258u }; obj125.Steps = list177; reference139 = obj125; - ref QuestSequence reference140 = ref span66[4]; + num++; + ref QuestSequence reference140 = ref span168[num]; QuestSequence obj126 = new QuestSequence { Sequence = 4 @@ -78268,15 +94400,19 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - ref QuestStep reference141 = ref CollectionsMarshal.AsSpan(list178)[0]; + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + ref QuestStep reference141 = ref span178[index2]; QuestStep obj127 = new QuestStep(EInteractionType.Combat, 2003797u, new Vector3(-49.912292f, 64.46936f, -303.5783f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = new ComplexCombatData + num4 = 1; + List list179 = new List(num4); + CollectionsMarshal.SetCount(list179, num4); + Span span179 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span179[num3] = new ComplexCombatData { DataId = 17u, MinimumKillCount = 1u @@ -78285,21 +94421,25 @@ public static class AssemblyQuestLoader reference141 = obj127; obj126.Steps = list178; reference140 = obj126; - ref QuestSequence reference142 = ref span66[5]; + num++; + ref QuestSequence reference142 = ref span168[num]; QuestSequence obj128 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj128.Steps = list180; reference142 = obj128; - ref QuestSequence reference143 = ref span66[6]; + num++; + ref QuestSequence reference143 = ref span168[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue @@ -78307,7 +94447,9 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span181[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -78320,21 +94462,26 @@ public static class AssemblyQuestLoader num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - CollectionsMarshal.AsSpan(list182)[0] = "Censored"; + Span span182 = CollectionsMarshal.AsSpan(list182); + index = 0; + span182[index] = "Censored"; questRoot19.Author = list182; - num = 5; - List list183 = new List(num); - CollectionsMarshal.SetCount(list183, num); - Span span70 = CollectionsMarshal.AsSpan(list183); - ref QuestSequence reference144 = ref span70[0]; + index = 5; + List list183 = new List(index); + CollectionsMarshal.SetCount(list183, index); + Span span183 = CollectionsMarshal.AsSpan(list183); + num = 0; + ref QuestSequence reference144 = ref span183[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span184[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -78353,7 +94500,8 @@ public static class AssemblyQuestLoader }; obj130.Steps = list184; reference144 = obj130; - ref QuestSequence reference145 = ref span70[1]; + num++; + ref QuestSequence reference145 = ref span183[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 @@ -78361,19 +94509,23 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); obj131.Steps = list185; reference145 = obj131; - ref QuestSequence reference146 = ref span70[2]; + num++; + ref QuestSequence reference146 = ref span183[num]; QuestSequence obj132 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - Span span71 = CollectionsMarshal.AsSpan(list186); - ref QuestStep reference147 = ref span71[0]; + index2 = 3; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + ref QuestStep reference147 = ref span186[num2]; QuestStep obj133 = new QuestStep(EInteractionType.UseItem, 2003805u, new Vector3(176.10437f, 64.530396f, -273.39594f), 180) { Fly = true, @@ -78382,39 +94534,54 @@ public static class AssemblyQuestLoader num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - Span span72 = CollectionsMarshal.AsSpan(list187); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span187 = CollectionsMarshal.AsSpan(list187); + num4 = 0; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj133.CompletionQuestVariablesFlags = list187; reference147 = obj133; - ref QuestStep reference148 = ref span71[1]; + num2++; + ref QuestStep reference148 = ref span186[num2]; QuestStep obj134 = new QuestStep(EInteractionType.UseItem, 2003806u, new Vector3(178.45422f, 64.62195f, -271.2292f), 180) { ItemId = 2001260u }; - num3 = 6; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span73 = CollectionsMarshal.AsSpan(list188); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list188 = new List(num4); + CollectionsMarshal.SetCount(list188, num4); + Span span188 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj134.CompletionQuestVariablesFlags = list188; reference148 = obj134; - span71[2] = new QuestStep(EInteractionType.UseItem, 2003807u, new Vector3(180.37683f, 64.43884f, -268.17737f), 180) + num2++; + span186[num2] = new QuestStep(EInteractionType.UseItem, 2003807u, new Vector3(180.37683f, 64.43884f, -268.17737f), 180) { ItemId = 2001260u }; obj132.Steps = list186; reference146 = obj132; - ref QuestSequence reference149 = ref span70[3]; + num++; + ref QuestSequence reference149 = ref span183[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -78422,21 +94589,26 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.UseItem, 2003808u, new Vector3(169.39038f, 65.50696f, -263.72174f), 180) + Span span189 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span189[index2] = new QuestStep(EInteractionType.UseItem, 2003808u, new Vector3(169.39038f, 65.50696f, -263.72174f), 180) { ItemId = 2001261u }; obj135.Steps = list189; reference149 = obj135; - ref QuestSequence reference150 = ref span70[4]; + num++; + ref QuestSequence reference150 = ref span183[num]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span190[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -78449,13 +94621,16 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "Censored"; + Span span191 = CollectionsMarshal.AsSpan(list191); + index = 0; + span191[index] = "Censored"; questRoot20.Author = list191; - num = 3; - List list192 = new List(num); - CollectionsMarshal.SetCount(list192, num); - Span span74 = CollectionsMarshal.AsSpan(list192); - ref QuestSequence reference151 = ref span74[0]; + index = 3; + List list192 = new List(index); + CollectionsMarshal.SetCount(list192, index); + Span span192 = CollectionsMarshal.AsSpan(list192); + num = 0; + ref QuestSequence reference151 = ref span192[num]; QuestSequence obj137 = new QuestSequence { Sequence = 0 @@ -78463,7 +94638,9 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + Span span193 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span193[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -78482,16 +94659,18 @@ public static class AssemblyQuestLoader }; obj137.Steps = list193; reference151 = obj137; - ref QuestSequence reference152 = ref span74[1]; + num++; + ref QuestSequence reference152 = ref span192[num]; QuestSequence obj138 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span75 = CollectionsMarshal.AsSpan(list194); - ref QuestStep reference153 = ref span75[0]; + index2 = 3; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + ref QuestStep reference153 = ref span194[num2]; QuestStep obj139 = new QuestStep(EInteractionType.Interact, 2003553u, new Vector3(181.3534f, 64.7135f, -251.05676f), 180) { Fly = true @@ -78499,33 +94678,48 @@ public static class AssemblyQuestLoader num3 = 6; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - Span span76 = CollectionsMarshal.AsSpan(list195); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span195 = CollectionsMarshal.AsSpan(list195); + num4 = 0; + span195[num4] = null; + num4++; + span195[num4] = null; + num4++; + span195[num4] = null; + num4++; + span195[num4] = null; + num4++; + span195[num4] = null; + num4++; + span195[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj139.CompletionQuestVariablesFlags = list195; reference153 = obj139; - ref QuestStep reference154 = ref span75[1]; + num2++; + ref QuestStep reference154 = ref span194[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2003557u, new Vector3(194.10999f, 64.80505f, -262.3484f), 180); - num3 = 6; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - Span span77 = CollectionsMarshal.AsSpan(list196); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list196 = new List(num4); + CollectionsMarshal.SetCount(list196, num4); + Span span196 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + span196[num3] = null; + num3++; + span196[num3] = null; + num3++; + span196[num3] = null; + num3++; + span196[num3] = null; + num3++; + span196[num3] = null; + num3++; + span196[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list196; reference154 = questStep15; - span75[2] = new QuestStep(EInteractionType.Interact, 2003556u, new Vector3(206.74438f, 64.56079f, -251.78918f), 180); + num2++; + span194[num2] = new QuestStep(EInteractionType.Interact, 2003556u, new Vector3(206.74438f, 64.56079f, -251.78918f), 180); obj138.Steps = list194; reference152 = obj138; - ref QuestSequence reference155 = ref span74[2]; + num++; + ref QuestSequence reference155 = ref span192[num]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -78533,7 +94727,9 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -78546,21 +94742,26 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "Censored"; + Span span198 = CollectionsMarshal.AsSpan(list198); + index = 0; + span198[index] = "Censored"; questRoot21.Author = list198; - num = 5; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span78 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference156 = ref span78[0]; + index = 5; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + Span span199 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference156 = ref span199[num]; QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -78579,7 +94780,8 @@ public static class AssemblyQuestLoader }; obj141.Steps = list200; reference156 = obj141; - ref QuestSequence reference157 = ref span78[1]; + num++; + ref QuestSequence reference157 = ref span199[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -78587,19 +94789,23 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); obj142.Steps = list201; reference157 = obj142; - ref QuestSequence reference158 = ref span78[2]; + num++; + ref QuestSequence reference158 = ref span199[num]; QuestSequence obj143 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - Span span79 = CollectionsMarshal.AsSpan(list202); - ref QuestStep reference159 = ref span79[0]; + index2 = 5; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + ref QuestStep reference159 = ref span202[num2]; QuestStep obj144 = new QuestStep(EInteractionType.Emote, 1005950u, new Vector3(-11.7647705f, 49.2008f, -289.2348f), 180) { Fly = true, @@ -78609,33 +94815,47 @@ public static class AssemblyQuestLoader num3 = 6; List list203 = new List(num3); CollectionsMarshal.SetCount(list203, num3); - Span span80 = CollectionsMarshal.AsSpan(list203); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span203 = CollectionsMarshal.AsSpan(list203); + num4 = 0; + span203[num4] = null; + num4++; + span203[num4] = null; + num4++; + span203[num4] = null; + num4++; + span203[num4] = null; + num4++; + span203[num4] = null; + num4++; + span203[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj144.CompletionQuestVariablesFlags = list203; reference159 = obj144; - ref QuestStep reference160 = ref span79[1]; + num2++; + ref QuestStep reference160 = ref span202[num2]; QuestStep obj145 = new QuestStep(EInteractionType.Emote, 1005951u, new Vector3(-24.673828f, 49.15637f, -331.50226f), 180) { Emote = EEmote.Soothe }; - num3 = 6; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - Span span81 = CollectionsMarshal.AsSpan(list204); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list204 = new List(num4); + CollectionsMarshal.SetCount(list204, num4); + Span span204 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span204[num3] = null; + num3++; + span204[num3] = null; + num3++; + span204[num3] = null; + num3++; + span204[num3] = null; + num3++; + span204[num3] = null; + num3++; + span204[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj145.CompletionQuestVariablesFlags = list204; reference160 = obj145; - ref QuestStep reference161 = ref span79[2]; + num2++; + ref QuestStep reference161 = ref span202[num2]; QuestStep obj146 = new QuestStep(EInteractionType.Emote, 1005947u, new Vector3(-16.159302f, 50.30896f, -351.85785f), 180) { Emote = EEmote.Soothe @@ -78643,39 +94863,54 @@ public static class AssemblyQuestLoader num3 = 6; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - Span span82 = CollectionsMarshal.AsSpan(list205); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span205 = CollectionsMarshal.AsSpan(list205); + num4 = 0; + span205[num4] = null; + num4++; + span205[num4] = null; + num4++; + span205[num4] = null; + num4++; + span205[num4] = null; + num4++; + span205[num4] = null; + num4++; + span205[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj146.CompletionQuestVariablesFlags = list205; reference161 = obj146; - ref QuestStep reference162 = ref span79[3]; + num2++; + ref QuestStep reference162 = ref span202[num2]; QuestStep obj147 = new QuestStep(EInteractionType.Emote, 1005949u, new Vector3(15.42688f, 48.41687f, -324.02533f), 180) { Emote = EEmote.Soothe }; - num3 = 6; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - Span span83 = CollectionsMarshal.AsSpan(list206); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list206 = new List(num4); + CollectionsMarshal.SetCount(list206, num4); + Span span206 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj147.CompletionQuestVariablesFlags = list206; reference162 = obj147; - span79[4] = new QuestStep(EInteractionType.Emote, 1005948u, new Vector3(50.125854f, 48.75892f, -326.55835f), 180) + num2++; + span202[num2] = new QuestStep(EInteractionType.Emote, 1005948u, new Vector3(50.125854f, 48.75892f, -326.55835f), 180) { Emote = EEmote.Soothe }; obj143.Steps = list202; reference158 = obj143; - ref QuestSequence reference163 = ref span78[3]; + num++; + ref QuestSequence reference163 = ref span199[num]; QuestSequence obj148 = new QuestSequence { Sequence = 3 @@ -78683,21 +94918,26 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + Span span207 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span207[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj148.Steps = list207; reference163 = obj148; - ref QuestSequence reference164 = ref span78[4]; + num++; + ref QuestSequence reference164 = ref span199[num]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -78710,13 +94950,16 @@ public static class AssemblyQuestLoader num = 1; List list209 = new List(num); CollectionsMarshal.SetCount(list209, num); - CollectionsMarshal.AsSpan(list209)[0] = "Censored"; + Span span209 = CollectionsMarshal.AsSpan(list209); + index = 0; + span209[index] = "Censored"; questRoot22.Author = list209; - num = 6; - List list210 = new List(num); - CollectionsMarshal.SetCount(list210, num); - Span span84 = CollectionsMarshal.AsSpan(list210); - ref QuestSequence reference165 = ref span84[0]; + index = 6; + List list210 = new List(index); + CollectionsMarshal.SetCount(list210, index); + Span span210 = CollectionsMarshal.AsSpan(list210); + num = 0; + ref QuestSequence reference165 = ref span210[num]; QuestSequence obj150 = new QuestSequence { Sequence = 0 @@ -78724,7 +94967,9 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + Span span211 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span211[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -78743,20 +94988,25 @@ public static class AssemblyQuestLoader }; obj150.Steps = list211; reference165 = obj150; - ref QuestSequence reference166 = ref span84[1]; + num++; + ref QuestSequence reference166 = ref span210[num]; QuestSequence obj151 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - ref QuestStep reference167 = ref CollectionsMarshal.AsSpan(list212)[0]; + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + ref QuestStep reference167 = ref span212[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = new DialogueChoice + Span span213 = CollectionsMarshal.AsSpan(list213); + num4 = 0; + span213[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB110_01334_Q1_000_000"), @@ -78766,7 +95016,8 @@ public static class AssemblyQuestLoader reference167 = questStep16; obj151.Steps = list212; reference166 = obj151; - ref QuestSequence reference168 = ref span84[2]; + num++; + ref QuestSequence reference168 = ref span210[num]; QuestSequence obj152 = new QuestSequence { Sequence = 2 @@ -78774,30 +95025,37 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 2003950u, new Vector3(49.973267f, 49.332397f, -342.67188f), 180); + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.Interact, 2003950u, new Vector3(49.973267f, 49.332397f, -342.67188f), 180); obj152.Steps = list214; reference168 = obj152; - ref QuestSequence reference169 = ref span84[3]; + num++; + ref QuestSequence reference169 = ref span210[num]; QuestSequence obj153 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - Span span85 = CollectionsMarshal.AsSpan(list215); - ref QuestStep reference170 = ref span85[0]; + index2 = 2; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + ref QuestStep reference170 = ref span215[num2]; QuestStep obj154 = new QuestStep(EInteractionType.Combat, 2003954u, new Vector3(48.081177f, 48.599854f, -346.21198f), 180) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - num3 = 1; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - CollectionsMarshal.AsSpan(list216)[0] = 2871u; + num4 = 1; + List list216 = new List(num4); + CollectionsMarshal.SetCount(list216, num4); + Span span216 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span216[num3] = 2871u; obj154.KillEnemyDataIds = list216; reference170 = obj154; - ref QuestStep reference171 = ref span85[1]; + num2++; + ref QuestStep reference171 = ref span215[num2]; QuestStep obj155 = new QuestStep(EInteractionType.Combat, 2003954u, new Vector3(48.081177f, 48.599854f, -346.21198f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -78805,12 +95063,15 @@ public static class AssemblyQuestLoader num3 = 1; List list217 = new List(num3); CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = 17u; + Span span217 = CollectionsMarshal.AsSpan(list217); + num4 = 0; + span217[num4] = 17u; obj155.KillEnemyDataIds = list217; reference171 = obj155; obj153.Steps = list215; reference169 = obj153; - ref QuestSequence reference172 = ref span84[4]; + num++; + ref QuestSequence reference172 = ref span210[num]; QuestSequence obj156 = new QuestSequence { Sequence = 4 @@ -78818,21 +95079,26 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + Span span218 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + span218[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj156.Steps = list218; reference172 = obj156; - ref QuestSequence reference173 = ref span84[5]; + num++; + ref QuestSequence reference173 = ref span210[num]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + Span span219 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span219[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -78845,13 +95111,16 @@ public static class AssemblyQuestLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - CollectionsMarshal.AsSpan(list220)[0] = "Censored"; + Span span220 = CollectionsMarshal.AsSpan(list220); + index = 0; + span220[index] = "Censored"; questRoot23.Author = list220; - num = 3; - List list221 = new List(num); - CollectionsMarshal.SetCount(list221, num); - Span span86 = CollectionsMarshal.AsSpan(list221); - ref QuestSequence reference174 = ref span86[0]; + index = 3; + List list221 = new List(index); + CollectionsMarshal.SetCount(list221, index); + Span span221 = CollectionsMarshal.AsSpan(list221); + num = 0; + ref QuestSequence reference174 = ref span221[num]; QuestSequence obj158 = new QuestSequence { Sequence = 0 @@ -78859,7 +95128,9 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + Span span222 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span222[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -78878,54 +95149,68 @@ public static class AssemblyQuestLoader }; obj158.Steps = list222; reference174 = obj158; - ref QuestSequence reference175 = ref span86[1]; + num++; + ref QuestSequence reference175 = ref span221[num]; QuestSequence obj159 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - Span span87 = CollectionsMarshal.AsSpan(list223); - ref QuestStep reference176 = ref span87[0]; + index2 = 2; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + Span span223 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + ref QuestStep reference176 = ref span223[num2]; QuestStep obj160 = new QuestStep(EInteractionType.Combat, 2003782u, new Vector3(65.35437f, 55.61914f, -450.7973f), 180) { Fly = true, ItemId = 2001256u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = 756u; + num4 = 1; + List list224 = new List(num4); + CollectionsMarshal.SetCount(list224, num4); + Span span224 = CollectionsMarshal.AsSpan(list224); + num3 = 0; + span224[num3] = 756u; obj160.KillEnemyDataIds = list224; num3 = 6; List list225 = new List(num3); CollectionsMarshal.SetCount(list225, num3); - Span span88 = CollectionsMarshal.AsSpan(list225); - span88[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = null; + Span span225 = CollectionsMarshal.AsSpan(list225); + num4 = 0; + span225[num4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span225[num4] = null; + num4++; + span225[num4] = null; + num4++; + span225[num4] = null; + num4++; + span225[num4] = null; + num4++; + span225[num4] = null; obj160.CompletionQuestVariablesFlags = list225; reference176 = obj160; - ref QuestStep reference177 = ref span87[1]; + num2++; + ref QuestStep reference177 = ref span223[num2]; QuestStep obj161 = new QuestStep(EInteractionType.Combat, 2003781u, new Vector3(78.446655f, 55.61914f, -470.0542f), 180) { ItemId = 2001256u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = 756u; + num4 = 1; + List list226 = new List(num4); + CollectionsMarshal.SetCount(list226, num4); + Span span226 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + span226[num3] = 756u; obj161.KillEnemyDataIds = list226; reference177 = obj161; obj159.Steps = list223; reference175 = obj159; - ref QuestSequence reference178 = ref span86[2]; + num++; + ref QuestSequence reference178 = ref span221[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue @@ -78933,7 +95218,9 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -78946,22 +95233,27 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - CollectionsMarshal.AsSpan(list228)[0] = "Censored"; + Span span228 = CollectionsMarshal.AsSpan(list228); + index = 0; + span228[index] = "Censored"; questRoot24.Author = list228; questRoot24.Comment = "FATE"; - num = 2; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - Span span89 = CollectionsMarshal.AsSpan(list229); - ref QuestSequence reference179 = ref span89[0]; + index = 2; + List list229 = new List(index); + CollectionsMarshal.SetCount(list229, index); + Span span229 = CollectionsMarshal.AsSpan(list229); + num = 0; + ref QuestSequence reference179 = ref span229[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span230[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -78980,7 +95272,8 @@ public static class AssemblyQuestLoader }; obj163.Steps = list230; reference179 = obj163; - ref QuestSequence reference180 = ref span89[1]; + num++; + ref QuestSequence reference180 = ref span229[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -78988,13 +95281,15 @@ public static class AssemblyQuestLoader num2 = 2; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span90 = CollectionsMarshal.AsSpan(list231); - span90[0] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(92.81918f, 55.511665f, -464.93253f), 180) + Span span231 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span231[index2] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(92.81918f, 55.511665f, -464.93253f), 180) { Fly = true, Comment = "Do the FATE" }; - span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2++; + span231[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -79007,21 +95302,26 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - CollectionsMarshal.AsSpan(list232)[0] = "liza"; + Span span232 = CollectionsMarshal.AsSpan(list232); + index = 0; + span232[index] = "liza"; questRoot25.Author = list232; - num = 5; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - Span span91 = CollectionsMarshal.AsSpan(list233); - ref QuestSequence reference181 = ref span91[0]; + index = 5; + List list233 = new List(index); + CollectionsMarshal.SetCount(list233, index); + Span span233 = CollectionsMarshal.AsSpan(list233); + num = 0; + ref QuestSequence reference181 = ref span233[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + Span span234 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span234[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -79040,7 +95340,8 @@ public static class AssemblyQuestLoader }; obj165.Steps = list234; reference181 = obj165; - ref QuestSequence reference182 = ref span91[1]; + num++; + ref QuestSequence reference182 = ref span233[num]; QuestSequence obj166 = new QuestSequence { Sequence = 1 @@ -79048,21 +95349,26 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + Span span235 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span235[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj166.Steps = list235; reference182 = obj166; - ref QuestSequence reference183 = ref span91[2]; + num++; + ref QuestSequence reference183 = ref span233[num]; QuestSequence obj167 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - ref QuestStep reference184 = ref CollectionsMarshal.AsSpan(list236)[0]; + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + ref QuestStep reference184 = ref span236[num2]; QuestStep obj168 = new QuestStep(EInteractionType.Combat, 2003686u, new Vector3(57.602783f, 48.111572f, -388.29633f), 180) { Fly = true, @@ -79072,15 +95378,19 @@ public static class AssemblyQuestLoader num3 = 3; List list237 = new List(num3); CollectionsMarshal.SetCount(list237, num3); - Span span92 = CollectionsMarshal.AsSpan(list237); - span92[0] = 2899u; - span92[1] = 2900u; - span92[2] = 2901u; + Span span237 = CollectionsMarshal.AsSpan(list237); + num4 = 0; + span237[num4] = 2899u; + num4++; + span237[num4] = 2900u; + num4++; + span237[num4] = 2901u; obj168.KillEnemyDataIds = list237; reference184 = obj168; obj167.Steps = list236; reference183 = obj167; - ref QuestSequence reference185 = ref span91[3]; + num++; + ref QuestSequence reference185 = ref span233[num]; QuestSequence obj169 = new QuestSequence { Sequence = 3 @@ -79088,21 +95398,26 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + Span span238 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span238[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj169.Steps = list238; reference185 = obj169; - ref QuestSequence reference186 = ref span91[4]; + num++; + ref QuestSequence reference186 = ref span233[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + Span span239 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span239[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -79115,13 +95430,16 @@ public static class AssemblyQuestLoader num = 1; List list240 = new List(num); CollectionsMarshal.SetCount(list240, num); - CollectionsMarshal.AsSpan(list240)[0] = "liza"; + Span span240 = CollectionsMarshal.AsSpan(list240); + index = 0; + span240[index] = "liza"; questRoot26.Author = list240; - num = 3; - List list241 = new List(num); - CollectionsMarshal.SetCount(list241, num); - Span span93 = CollectionsMarshal.AsSpan(list241); - ref QuestSequence reference187 = ref span93[0]; + index = 3; + List list241 = new List(index); + CollectionsMarshal.SetCount(list241, index); + Span span241 = CollectionsMarshal.AsSpan(list241); + num = 0; + ref QuestSequence reference187 = ref span241[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 @@ -79129,27 +95447,34 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180); + Span span242 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + span242[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180); obj171.Steps = list242; reference187 = obj171; - ref QuestSequence reference188 = ref span93[1]; + num++; + ref QuestSequence reference188 = ref span241[num]; QuestSequence obj172 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - ref QuestStep reference189 = ref CollectionsMarshal.AsSpan(list243)[0]; + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + Span span243 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + ref QuestStep reference189 = ref span243[num2]; QuestStep obj173 = new QuestStep(EInteractionType.Combat, null, new Vector3(51.48164f, 55.599014f, -491.209f), 180) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list244 = new List(num3); - CollectionsMarshal.SetCount(list244, num3); - CollectionsMarshal.AsSpan(list244)[0] = new ComplexCombatData + num4 = 1; + List list244 = new List(num4); + CollectionsMarshal.SetCount(list244, num4); + Span span244 = CollectionsMarshal.AsSpan(list244); + num3 = 0; + span244[num3] = new ComplexCombatData { DataId = 2833u, MinimumKillCount = 2u @@ -79158,7 +95483,8 @@ public static class AssemblyQuestLoader reference189 = obj173; obj172.Steps = list243; reference188 = obj172; - ref QuestSequence reference190 = ref span93[2]; + num++; + ref QuestSequence reference190 = ref span241[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue @@ -79166,7 +95492,9 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -79179,24 +95507,30 @@ public static class AssemblyQuestLoader num = 1; List list246 = new List(num); CollectionsMarshal.SetCount(list246, num); - CollectionsMarshal.AsSpan(list246)[0] = "liza"; + Span span246 = CollectionsMarshal.AsSpan(list246); + index = 0; + span246[index] = "liza"; questRoot27.Author = list246; - num = 8; - List list247 = new List(num); - CollectionsMarshal.SetCount(list247, num); - Span span94 = CollectionsMarshal.AsSpan(list247); - ref QuestSequence reference191 = ref span94[0]; + index = 8; + List list247 = new List(index); + CollectionsMarshal.SetCount(list247, index); + Span span247 = CollectionsMarshal.AsSpan(list247); + num = 0; + ref QuestSequence reference191 = ref span247[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180); + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180); obj175.Steps = list248; reference191 = obj175; - ref QuestSequence reference192 = ref span94[1]; + num++; + ref QuestSequence reference192 = ref span247[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 @@ -79204,39 +95538,47 @@ public static class AssemblyQuestLoader num2 = 2; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span95 = CollectionsMarshal.AsSpan(list249); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(96.21657f, 55.28576f, -500.41245f), 180) + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(96.21657f, 55.28576f, -500.41245f), 180) { Fly = true }; - span95[1] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180); + index2++; + span249[index2] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180); obj176.Steps = list249; reference192 = obj176; - ref QuestSequence reference193 = ref span94[2]; + num++; + ref QuestSequence reference193 = ref span247[num]; QuestSequence obj177 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - Span span96 = CollectionsMarshal.AsSpan(list250); - ref QuestStep reference194 = ref span96[0]; + index2 = 2; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span250 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + ref QuestStep reference194 = ref span250[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180); num3 = 1; List list251 = new List(num3); CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = new DialogueChoice + Span span251 = CollectionsMarshal.AsSpan(list251); + num4 = 0; + span251[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANKOB205_01339_SCENE00008_EVENTAREA_WARP_YESNO_TITLE") }; questStep17.DialogueChoices = list251; reference194 = questStep17; - span96[1] = new QuestStep(EInteractionType.Interact, 2003743u, new Vector3(227.00842f, 22.75116f, -582.81836f), 180); + num2++; + span250[num2] = new QuestStep(EInteractionType.Interact, 2003743u, new Vector3(227.00842f, 22.75116f, -582.81836f), 180); obj177.Steps = list250; reference193 = obj177; - ref QuestSequence reference195 = ref span94[3]; + num++; + ref QuestSequence reference195 = ref span247[num]; QuestSequence obj178 = new QuestSequence { Sequence = 3 @@ -79244,113 +95586,153 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.UseItem, 2003744u, new Vector3(224.78064f, 23.941406f, -580.9568f), 180) + Span span252 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span252[index2] = new QuestStep(EInteractionType.UseItem, 2003744u, new Vector3(224.78064f, 23.941406f, -580.9568f), 180) { IgnoreDistanceToObject = true, ItemId = 2001244u }; obj178.Steps = list252; reference195 = obj178; - ref QuestSequence reference196 = ref span94[4]; + num++; + ref QuestSequence reference196 = ref span247[num]; QuestSequence obj179 = new QuestSequence { Sequence = 4 }; - num2 = 4; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - Span span97 = CollectionsMarshal.AsSpan(list253); - ref QuestStep reference197 = ref span97[0]; + index2 = 4; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + Span span253 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + ref QuestStep reference197 = ref span253[num2]; QuestStep obj180 = new QuestStep(EInteractionType.Combat, 2003746u, new Vector3(239.30713f, 22.323914f, -577.29456f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = 2880u; + num4 = 1; + List list254 = new List(num4); + CollectionsMarshal.SetCount(list254, num4); + Span span254 = CollectionsMarshal.AsSpan(list254); + num3 = 0; + span254[num3] = 2880u; obj180.KillEnemyDataIds = list254; num3 = 6; List list255 = new List(num3); CollectionsMarshal.SetCount(list255, num3); - Span span98 = CollectionsMarshal.AsSpan(list255); - span98[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = null; + Span span255 = CollectionsMarshal.AsSpan(list255); + num4 = 0; + span255[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span255[num4] = null; + num4++; + span255[num4] = null; + num4++; + span255[num4] = null; + num4++; + span255[num4] = null; + num4++; + span255[num4] = null; obj180.CompletionQuestVariablesFlags = list255; reference197 = obj180; - ref QuestStep reference198 = ref span97[1]; + num2++; + ref QuestStep reference198 = ref span253[num2]; QuestStep obj181 = new QuestStep(EInteractionType.Combat, 2003745u, new Vector3(242.8778f, 22.507019f, -584.37476f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - CollectionsMarshal.AsSpan(list256)[0] = 2880u; + num4 = 1; + List list256 = new List(num4); + CollectionsMarshal.SetCount(list256, num4); + Span span256 = CollectionsMarshal.AsSpan(list256); + num3 = 0; + span256[num3] = 2880u; obj181.KillEnemyDataIds = list256; num3 = 6; List list257 = new List(num3); CollectionsMarshal.SetCount(list257, num3); - Span span99 = CollectionsMarshal.AsSpan(list257); - span99[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = null; + Span span257 = CollectionsMarshal.AsSpan(list257); + num4 = 0; + span257[num4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span257[num4] = null; + num4++; + span257[num4] = null; + num4++; + span257[num4] = null; + num4++; + span257[num4] = null; + num4++; + span257[num4] = null; obj181.CompletionQuestVariablesFlags = list257; reference198 = obj181; - ref QuestStep reference199 = ref span97[2]; + num2++; + ref QuestStep reference199 = ref span253[num2]; QuestStep obj182 = new QuestStep(EInteractionType.Combat, 2003746u, new Vector3(239.30713f, 22.323914f, -577.29456f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - CollectionsMarshal.AsSpan(list258)[0] = 2880u; + num4 = 1; + List list258 = new List(num4); + CollectionsMarshal.SetCount(list258, num4); + Span span258 = CollectionsMarshal.AsSpan(list258); + num3 = 0; + span258[num3] = 2880u; obj182.KillEnemyDataIds = list258; num3 = 6; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - Span span100 = CollectionsMarshal.AsSpan(list259); - span100[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = null; + Span span259 = CollectionsMarshal.AsSpan(list259); + num4 = 0; + span259[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span259[num4] = null; + num4++; + span259[num4] = null; + num4++; + span259[num4] = null; + num4++; + span259[num4] = null; + num4++; + span259[num4] = null; obj182.CompletionQuestVariablesFlags = list259; reference199 = obj182; - ref QuestStep reference200 = ref span97[3]; + num2++; + ref QuestStep reference200 = ref span253[num2]; QuestStep obj183 = new QuestStep(EInteractionType.Combat, 2003745u, new Vector3(242.8778f, 22.507019f, -584.37476f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - CollectionsMarshal.AsSpan(list260)[0] = 2880u; + num4 = 1; + List list260 = new List(num4); + CollectionsMarshal.SetCount(list260, num4); + Span span260 = CollectionsMarshal.AsSpan(list260); + num3 = 0; + span260[num3] = 2880u; obj183.KillEnemyDataIds = list260; num3 = 6; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - Span span101 = CollectionsMarshal.AsSpan(list261); - span101[0] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = null; + Span span261 = CollectionsMarshal.AsSpan(list261); + num4 = 0; + span261[num4] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span261[num4] = null; + num4++; + span261[num4] = null; + num4++; + span261[num4] = null; + num4++; + span261[num4] = null; + num4++; + span261[num4] = null; obj183.CompletionQuestVariablesFlags = list261; reference200 = obj183; obj179.Steps = list253; reference196 = obj179; - ref QuestSequence reference201 = ref span94[5]; + num++; + ref QuestSequence reference201 = ref span247[num]; QuestSequence obj184 = new QuestSequence { Sequence = 5 @@ -79358,35 +95740,43 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - ref QuestStep reference202 = ref CollectionsMarshal.AsSpan(list262)[0]; + Span span262 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + ref QuestStep reference202 = ref span262[index2]; QuestStep obj185 = new QuestStep(EInteractionType.Combat, 2003746u, new Vector3(239.30713f, 22.323914f, -577.29456f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = 2883u; + num4 = 1; + List list263 = new List(num4); + CollectionsMarshal.SetCount(list263, num4); + Span span263 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span263[num3] = 2883u; obj185.KillEnemyDataIds = list263; reference202 = obj185; obj184.Steps = list262; reference201 = obj184; - ref QuestSequence reference203 = ref span94[6]; + num++; + ref QuestSequence reference203 = ref span247[num]; QuestSequence obj186 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj186.Steps = list264; reference203 = obj186; - ref QuestSequence reference204 = ref span94[7]; + num++; + ref QuestSequence reference204 = ref span247[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue @@ -79394,7 +95784,9 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span265[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -79407,21 +95799,26 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "Censored"; + Span span266 = CollectionsMarshal.AsSpan(list266); + index = 0; + span266[index] = "Censored"; questRoot28.Author = list266; - num = 5; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span102 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference205 = ref span102[0]; + index = 5; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + Span span267 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference205 = ref span267[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + Span span268 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span268[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -79440,7 +95837,8 @@ public static class AssemblyQuestLoader }; obj188.Steps = list268; reference205 = obj188; - ref QuestSequence reference206 = ref span102[1]; + num++; + ref QuestSequence reference206 = ref span267[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 @@ -79448,23 +95846,27 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) + Span span269 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span269[index2] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, Land = true }; obj189.Steps = list269; reference206 = obj189; - ref QuestSequence reference207 = ref span102[2]; + num++; + ref QuestSequence reference207 = ref span267[num]; QuestSequence obj190 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - Span span103 = CollectionsMarshal.AsSpan(list270); - ref QuestStep reference208 = ref span103[0]; + index2 = 5; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + Span span270 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + ref QuestStep reference208 = ref span270[num2]; QuestStep obj191 = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, @@ -79485,93 +95887,126 @@ public static class AssemblyQuestLoader num3 = 1; List list271 = new List(num3); CollectionsMarshal.SetCount(list271, num3); - CollectionsMarshal.AsSpan(list271)[0] = new DialogueChoice + Span span271 = CollectionsMarshal.AsSpan(list271); + num4 = 0; + span271[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANKOB206_01340_SCENE00023_EVENTAREA_WARP_YESNO_TITLE") }; obj191.DialogueChoices = list271; reference208 = obj191; - ref QuestStep reference209 = ref span103[1]; + num2++; + ref QuestStep reference209 = ref span270[num2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, null, new Vector3(206.34064f, 26.164192f, -610.01776f), 180) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list272 = new List(num3); - CollectionsMarshal.SetCount(list272, num3); - CollectionsMarshal.AsSpan(list272)[0] = 2849u; + num4 = 1; + List list272 = new List(num4); + CollectionsMarshal.SetCount(list272, num4); + Span span272 = CollectionsMarshal.AsSpan(list272); + num3 = 0; + span272[num3] = 2849u; obj192.KillEnemyDataIds = list272; num3 = 6; List list273 = new List(num3); CollectionsMarshal.SetCount(list273, num3); - Span span104 = CollectionsMarshal.AsSpan(list273); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span273 = CollectionsMarshal.AsSpan(list273); + num4 = 0; + span273[num4] = null; + num4++; + span273[num4] = null; + num4++; + span273[num4] = null; + num4++; + span273[num4] = null; + num4++; + span273[num4] = null; + num4++; + span273[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj192.CompletionQuestVariablesFlags = list273; reference209 = obj192; - ref QuestStep reference210 = ref span103[2]; + num2++; + ref QuestStep reference210 = ref span270[num2]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, null, new Vector3(214.34813f, 22.582228f, -620.98737f), 180) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - CollectionsMarshal.AsSpan(list274)[0] = 2849u; + num4 = 1; + List list274 = new List(num4); + CollectionsMarshal.SetCount(list274, num4); + Span span274 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + span274[num3] = 2849u; obj193.KillEnemyDataIds = list274; num3 = 6; List list275 = new List(num3); CollectionsMarshal.SetCount(list275, num3); - Span span105 = CollectionsMarshal.AsSpan(list275); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + Span span275 = CollectionsMarshal.AsSpan(list275); + num4 = 0; + span275[num4] = null; + num4++; + span275[num4] = null; + num4++; + span275[num4] = null; + num4++; + span275[num4] = null; + num4++; + span275[num4] = null; + num4++; + span275[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj193.CompletionQuestVariablesFlags = list275; reference210 = obj193; - ref QuestStep reference211 = ref span103[3]; + num2++; + ref QuestStep reference211 = ref span270[num2]; QuestStep obj194 = new QuestStep(EInteractionType.Combat, null, new Vector3(217.2839f, 21.428452f, -603.1931f), 180) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list276 = new List(num3); - CollectionsMarshal.SetCount(list276, num3); - CollectionsMarshal.AsSpan(list276)[0] = 2849u; + num4 = 1; + List list276 = new List(num4); + CollectionsMarshal.SetCount(list276, num4); + Span span276 = CollectionsMarshal.AsSpan(list276); + num3 = 0; + span276[num3] = 2849u; obj194.KillEnemyDataIds = list276; num3 = 6; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - Span span106 = CollectionsMarshal.AsSpan(list277); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span277 = CollectionsMarshal.AsSpan(list277); + num4 = 0; + span277[num4] = null; + num4++; + span277[num4] = null; + num4++; + span277[num4] = null; + num4++; + span277[num4] = null; + num4++; + span277[num4] = null; + num4++; + span277[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj194.CompletionQuestVariablesFlags = list277; reference211 = obj194; - ref QuestStep reference212 = ref span103[4]; + num2++; + ref QuestStep reference212 = ref span270[num2]; QuestStep obj195 = new QuestStep(EInteractionType.Combat, null, new Vector3(230.32195f, 21.387749f, -600.7312f), 180) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - CollectionsMarshal.AsSpan(list278)[0] = 2849u; + num4 = 1; + List list278 = new List(num4); + CollectionsMarshal.SetCount(list278, num4); + Span span278 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span278[num3] = 2849u; obj195.KillEnemyDataIds = list278; reference212 = obj195; obj190.Steps = list270; reference207 = obj190; - ref QuestSequence reference213 = ref span102[3]; + num++; + ref QuestSequence reference213 = ref span267[num]; QuestSequence obj196 = new QuestSequence { Sequence = 3 @@ -79579,21 +96014,26 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.UseItem, 2003647u, new Vector3(223.43774f, 21.469421f, -612.32935f), 180) + Span span279 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span279[index2] = new QuestStep(EInteractionType.UseItem, 2003647u, new Vector3(223.43774f, 21.469421f, -612.32935f), 180) { ItemId = 2001222u }; obj196.Steps = list279; reference213 = obj196; - ref QuestSequence reference214 = ref span102[4]; + num++; + ref QuestSequence reference214 = ref span267[num]; QuestSequence obj197 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span280 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span280[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -79619,13 +96059,16 @@ public static class AssemblyQuestLoader num = 1; List list281 = new List(num); CollectionsMarshal.SetCount(list281, num); - CollectionsMarshal.AsSpan(list281)[0] = "Censored"; + Span span281 = CollectionsMarshal.AsSpan(list281); + index = 0; + span281[index] = "Censored"; questRoot29.Author = list281; - num = 7; - List list282 = new List(num); - CollectionsMarshal.SetCount(list282, num); - Span span107 = CollectionsMarshal.AsSpan(list282); - ref QuestSequence reference215 = ref span107[0]; + index = 7; + List list282 = new List(index); + CollectionsMarshal.SetCount(list282, index); + Span span282 = CollectionsMarshal.AsSpan(list282); + num = 0; + ref QuestSequence reference215 = ref span282[num]; QuestSequence obj198 = new QuestSequence { Sequence = 0 @@ -79633,7 +96076,9 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + Span span283 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span283[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -79652,21 +96097,25 @@ public static class AssemblyQuestLoader }; obj198.Steps = list283; reference215 = obj198; - ref QuestSequence reference216 = ref span107[1]; + num++; + ref QuestSequence reference216 = ref span282[num]; QuestSequence obj199 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + index2 = 1; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + Span span284 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + span284[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj199.Steps = list284; reference216 = obj199; - ref QuestSequence reference217 = ref span107[2]; + num++; + ref QuestSequence reference217 = ref span282[num]; QuestSequence obj200 = new QuestSequence { Sequence = 2 @@ -79674,8 +96123,9 @@ public static class AssemblyQuestLoader num2 = 4; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span108 = CollectionsMarshal.AsSpan(list285); - ref QuestStep reference218 = ref span108[0]; + Span span285 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + ref QuestStep reference218 = ref span285[index2]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, @@ -79696,96 +96146,123 @@ public static class AssemblyQuestLoader num3 = 1; List list286 = new List(num3); CollectionsMarshal.SetCount(list286, num3); - CollectionsMarshal.AsSpan(list286)[0] = new DialogueChoice + Span span286 = CollectionsMarshal.AsSpan(list286); + num4 = 0; + span286[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANKOB207_01341_SCENE00018_EVENTAREA_WARP_YESNO_TITLE") }; obj201.DialogueChoices = list286; reference218 = obj201; - ref QuestStep reference219 = ref span108[1]; + index2++; + ref QuestStep reference219 = ref span285[index2]; QuestStep obj202 = new QuestStep(EInteractionType.Combat, 2003885u, new Vector3(167.68127f, 21.438904f, -564.66016f), 180) { ItemId = 2001274u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list287 = new List(num3); - CollectionsMarshal.SetCount(list287, num3); - CollectionsMarshal.AsSpan(list287)[0] = 755u; + num4 = 1; + List list287 = new List(num4); + CollectionsMarshal.SetCount(list287, num4); + Span span287 = CollectionsMarshal.AsSpan(list287); + num3 = 0; + span287[num3] = 755u; obj202.KillEnemyDataIds = list287; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); num3 = 6; List list288 = new List(num3); CollectionsMarshal.SetCount(list288, num3); - Span span109 = CollectionsMarshal.AsSpan(list288); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span288 = CollectionsMarshal.AsSpan(list288); + num4 = 0; + span288[num4] = null; + num4++; + span288[num4] = null; + num4++; + span288[num4] = null; + num4++; + span288[num4] = null; + num4++; + span288[num4] = null; + num4++; + span288[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list288; skipConditions8.StepIf = skipStepConditions8; obj202.SkipConditions = skipConditions8; reference219 = obj202; - ref QuestStep reference220 = ref span108[2]; + index2++; + ref QuestStep reference220 = ref span285[index2]; QuestStep obj203 = new QuestStep(EInteractionType.Combat, 2003886u, new Vector3(170.8247f, 21.499878f, -565.17896f), 180) { ItemId = 2001274u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list289 = new List(num3); - CollectionsMarshal.SetCount(list289, num3); - CollectionsMarshal.AsSpan(list289)[0] = 755u; + num4 = 1; + List list289 = new List(num4); + CollectionsMarshal.SetCount(list289, num4); + Span span289 = CollectionsMarshal.AsSpan(list289); + num3 = 0; + span289[num3] = 755u; obj203.KillEnemyDataIds = list289; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); num3 = 6; List list290 = new List(num3); CollectionsMarshal.SetCount(list290, num3); - Span span110 = CollectionsMarshal.AsSpan(list290); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span290 = CollectionsMarshal.AsSpan(list290); + num4 = 0; + span290[num4] = null; + num4++; + span290[num4] = null; + num4++; + span290[num4] = null; + num4++; + span290[num4] = null; + num4++; + span290[num4] = null; + num4++; + span290[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list290; skipConditions9.StepIf = skipStepConditions9; obj203.SkipConditions = skipConditions9; reference220 = obj203; - ref QuestStep reference221 = ref span108[3]; + index2++; + ref QuestStep reference221 = ref span285[index2]; QuestStep obj204 = new QuestStep(EInteractionType.Combat, 2003887u, new Vector3(174.05957f, 21.438904f, -565.301f), 180) { ItemId = 2001274u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list291 = new List(num3); - CollectionsMarshal.SetCount(list291, num3); - CollectionsMarshal.AsSpan(list291)[0] = 755u; + num4 = 1; + List list291 = new List(num4); + CollectionsMarshal.SetCount(list291, num4); + Span span291 = CollectionsMarshal.AsSpan(list291); + num3 = 0; + span291[num3] = 755u; obj204.KillEnemyDataIds = list291; reference221 = obj204; obj200.Steps = list285; reference217 = obj200; - ref QuestSequence reference222 = ref span107[3]; + num++; + ref QuestSequence reference222 = ref span282[num]; QuestSequence obj205 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.UseItem, 2003888u, new Vector3(172.74731f, 21.377869f, -549.0654f), 180) + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + Span span292 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span292[num2] = new QuestStep(EInteractionType.UseItem, 2003888u, new Vector3(172.74731f, 21.377869f, -549.0654f), 180) { ItemId = 2001275u }; obj205.Steps = list292; reference222 = obj205; - ref QuestSequence reference223 = ref span107[4]; + num++; + ref QuestSequence reference223 = ref span282[num]; QuestSequence obj206 = new QuestSequence { Sequence = 4 @@ -79793,7 +96270,9 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - ref QuestStep reference224 = ref CollectionsMarshal.AsSpan(list293)[0]; + Span span293 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + ref QuestStep reference224 = ref span293[index2]; QuestStep obj207 = new QuestStep(EInteractionType.Combat, 2003892u, new Vector3(163.07312f, 21.499878f, -571.2215f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -79801,20 +96280,25 @@ public static class AssemblyQuestLoader num3 = 1; List list294 = new List(num3); CollectionsMarshal.SetCount(list294, num3); - CollectionsMarshal.AsSpan(list294)[0] = 2845u; + Span span294 = CollectionsMarshal.AsSpan(list294); + num4 = 0; + span294[num4] = 2845u; obj207.KillEnemyDataIds = list294; reference224 = obj207; obj206.Steps = list293; reference223 = obj206; - ref QuestSequence reference225 = ref span107[5]; + num++; + ref QuestSequence reference225 = ref span282[num]; QuestSequence obj208 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + index2 = 1; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + Span span295 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + span295[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -79833,7 +96317,8 @@ public static class AssemblyQuestLoader }; obj208.Steps = list295; reference225 = obj208; - ref QuestSequence reference226 = ref span107[6]; + num++; + ref QuestSequence reference226 = ref span282[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -79841,7 +96326,9 @@ public static class AssemblyQuestLoader num2 = 1; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + Span span296 = CollectionsMarshal.AsSpan(list296); + index2 = 0; + span296[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -79859,21 +96346,26 @@ public static class AssemblyQuestLoader num = 1; List list297 = new List(num); CollectionsMarshal.SetCount(list297, num); - CollectionsMarshal.AsSpan(list297)[0] = "Censored"; + Span span297 = CollectionsMarshal.AsSpan(list297); + index = 0; + span297[index] = "Censored"; questRoot30.Author = list297; - num = 3; - List list298 = new List(num); - CollectionsMarshal.SetCount(list298, num); - Span span111 = CollectionsMarshal.AsSpan(list298); - ref QuestSequence reference227 = ref span111[0]; + index = 3; + List list298 = new List(index); + CollectionsMarshal.SetCount(list298, index); + Span span298 = CollectionsMarshal.AsSpan(list298); + num = 0; + ref QuestSequence reference227 = ref span298[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2 = 1; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + Span span299 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span299[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -79892,7 +96384,8 @@ public static class AssemblyQuestLoader }; obj210.Steps = list299; reference227 = obj210; - ref QuestSequence reference228 = ref span111[1]; + num++; + ref QuestSequence reference228 = ref span298[num]; QuestSequence obj211 = new QuestSequence { Sequence = 1 @@ -79900,8 +96393,9 @@ public static class AssemblyQuestLoader num2 = 7; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - Span span112 = CollectionsMarshal.AsSpan(list300); - ref QuestStep reference229 = ref span112[0]; + Span span300 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + ref QuestStep reference229 = ref span300[index2]; QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, @@ -79919,17 +96413,20 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list301 = new List(num3); - CollectionsMarshal.SetCount(list301, num3); - CollectionsMarshal.AsSpan(list301)[0] = new DialogueChoice + num4 = 1; + List list301 = new List(num4); + CollectionsMarshal.SetCount(list301, num4); + Span span301 = CollectionsMarshal.AsSpan(list301); + num3 = 0; + span301[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANKOB209_01343_SCENE00009_EVENTAREA_WARP_YESNO_TITLE") }; obj212.DialogueChoices = list301; reference229 = obj212; - ref QuestStep reference230 = ref span112[1]; + index2++; + ref QuestStep reference230 = ref span300[index2]; QuestStep obj213 = new QuestStep(EInteractionType.Combat, 1008786u, new Vector3(229.29724f, 21.671387f, -592.4315f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -79937,21 +96434,30 @@ public static class AssemblyQuestLoader num3 = 1; List list302 = new List(num3); CollectionsMarshal.SetCount(list302, num3); - CollectionsMarshal.AsSpan(list302)[0] = 757u; + Span span302 = CollectionsMarshal.AsSpan(list302); + num4 = 0; + span302[num4] = 757u; obj213.KillEnemyDataIds = list302; - num3 = 6; - List list303 = new List(num3); - CollectionsMarshal.SetCount(list303, num3); - Span span113 = CollectionsMarshal.AsSpan(list303); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list303 = new List(num4); + CollectionsMarshal.SetCount(list303, num4); + Span span303 = CollectionsMarshal.AsSpan(list303); + num3 = 0; + span303[num3] = null; + num3++; + span303[num3] = null; + num3++; + span303[num3] = null; + num3++; + span303[num3] = null; + num3++; + span303[num3] = null; + num3++; + span303[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj213.CompletionQuestVariablesFlags = list303; reference230 = obj213; - ref QuestStep reference231 = ref span112[2]; + index2++; + ref QuestStep reference231 = ref span300[index2]; QuestStep obj214 = new QuestStep(EInteractionType.Combat, 1008784u, new Vector3(233.875f, 21.66776f, -605.2186f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -79959,21 +96465,30 @@ public static class AssemblyQuestLoader num3 = 1; List list304 = new List(num3); CollectionsMarshal.SetCount(list304, num3); - CollectionsMarshal.AsSpan(list304)[0] = 757u; + Span span304 = CollectionsMarshal.AsSpan(list304); + num4 = 0; + span304[num4] = 757u; obj214.KillEnemyDataIds = list304; - num3 = 6; - List list305 = new List(num3); - CollectionsMarshal.SetCount(list305, num3); - Span span114 = CollectionsMarshal.AsSpan(list305); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list305 = new List(num4); + CollectionsMarshal.SetCount(list305, num4); + Span span305 = CollectionsMarshal.AsSpan(list305); + num3 = 0; + span305[num3] = null; + num3++; + span305[num3] = null; + num3++; + span305[num3] = null; + num3++; + span305[num3] = null; + num3++; + span305[num3] = null; + num3++; + span305[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj214.CompletionQuestVariablesFlags = list305; reference231 = obj214; - ref QuestStep reference232 = ref span112[3]; + index2++; + ref QuestStep reference232 = ref span300[index2]; QuestStep obj215 = new QuestStep(EInteractionType.Combat, 1008782u, new Vector3(215.96094f, 21.603994f, -613.3364f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -79981,21 +96496,30 @@ public static class AssemblyQuestLoader num3 = 1; List list306 = new List(num3); CollectionsMarshal.SetCount(list306, num3); - CollectionsMarshal.AsSpan(list306)[0] = 757u; + Span span306 = CollectionsMarshal.AsSpan(list306); + num4 = 0; + span306[num4] = 757u; obj215.KillEnemyDataIds = list306; - num3 = 6; - List list307 = new List(num3); - CollectionsMarshal.SetCount(list307, num3); - Span span115 = CollectionsMarshal.AsSpan(list307); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list307 = new List(num4); + CollectionsMarshal.SetCount(list307, num4); + Span span307 = CollectionsMarshal.AsSpan(list307); + num3 = 0; + span307[num3] = null; + num3++; + span307[num3] = null; + num3++; + span307[num3] = null; + num3++; + span307[num3] = null; + num3++; + span307[num3] = null; + num3++; + span307[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj215.CompletionQuestVariablesFlags = list307; reference232 = obj215; - ref QuestStep reference233 = ref span112[4]; + index2++; + ref QuestStep reference233 = ref span300[index2]; QuestStep obj216 = new QuestStep(EInteractionType.Combat, 1008781u, new Vector3(228.29016f, 22.010138f, -616.083f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -80003,21 +96527,30 @@ public static class AssemblyQuestLoader num3 = 1; List list308 = new List(num3); CollectionsMarshal.SetCount(list308, num3); - CollectionsMarshal.AsSpan(list308)[0] = 758u; + Span span308 = CollectionsMarshal.AsSpan(list308); + num4 = 0; + span308[num4] = 758u; obj216.KillEnemyDataIds = list308; - num3 = 6; - List list309 = new List(num3); - CollectionsMarshal.SetCount(list309, num3); - Span span116 = CollectionsMarshal.AsSpan(list309); - span116[0] = null; - span116[1] = null; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list309 = new List(num4); + CollectionsMarshal.SetCount(list309, num4); + Span span309 = CollectionsMarshal.AsSpan(list309); + num3 = 0; + span309[num3] = null; + num3++; + span309[num3] = null; + num3++; + span309[num3] = null; + num3++; + span309[num3] = null; + num3++; + span309[num3] = null; + num3++; + span309[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj216.CompletionQuestVariablesFlags = list309; reference233 = obj216; - ref QuestStep reference234 = ref span112[5]; + index2++; + ref QuestStep reference234 = ref span300[index2]; QuestStep obj217 = new QuestStep(EInteractionType.Combat, 1008785u, new Vector3(239.52087f, 25.649525f, -614.2825f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -80025,21 +96558,30 @@ public static class AssemblyQuestLoader num3 = 1; List list310 = new List(num3); CollectionsMarshal.SetCount(list310, num3); - CollectionsMarshal.AsSpan(list310)[0] = 758u; + Span span310 = CollectionsMarshal.AsSpan(list310); + num4 = 0; + span310[num4] = 758u; obj217.KillEnemyDataIds = list310; - num3 = 6; - List list311 = new List(num3); - CollectionsMarshal.SetCount(list311, num3); - Span span117 = CollectionsMarshal.AsSpan(list311); - span117[0] = null; - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list311 = new List(num4); + CollectionsMarshal.SetCount(list311, num4); + Span span311 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span311[num3] = null; + num3++; + span311[num3] = null; + num3++; + span311[num3] = null; + num3++; + span311[num3] = null; + num3++; + span311[num3] = null; + num3++; + span311[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj217.CompletionQuestVariablesFlags = list311; reference234 = obj217; - ref QuestStep reference235 = ref span112[6]; + index2++; + ref QuestStep reference235 = ref span300[index2]; QuestStep obj218 = new QuestStep(EInteractionType.Combat, 1008783u, new Vector3(240.80249f, 26.19751f, -598.50464f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -80047,20 +96589,25 @@ public static class AssemblyQuestLoader num3 = 1; List list312 = new List(num3); CollectionsMarshal.SetCount(list312, num3); - CollectionsMarshal.AsSpan(list312)[0] = 758u; + Span span312 = CollectionsMarshal.AsSpan(list312); + num4 = 0; + span312[num4] = 758u; obj218.KillEnemyDataIds = list312; reference235 = obj218; obj211.Steps = list300; reference228 = obj211; - ref QuestSequence reference236 = ref span111[2]; + num++; + ref QuestSequence reference236 = ref span298[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2 = 1; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + Span span313 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span313[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -80086,13 +96633,16 @@ public static class AssemblyQuestLoader num = 1; List list314 = new List(num); CollectionsMarshal.SetCount(list314, num); - CollectionsMarshal.AsSpan(list314)[0] = "liza"; + Span span314 = CollectionsMarshal.AsSpan(list314); + index = 0; + span314[index] = "liza"; questRoot31.Author = list314; - num = 4; - List list315 = new List(num); - CollectionsMarshal.SetCount(list315, num); - Span span118 = CollectionsMarshal.AsSpan(list315); - ref QuestSequence reference237 = ref span118[0]; + index = 4; + List list315 = new List(index); + CollectionsMarshal.SetCount(list315, index); + Span span315 = CollectionsMarshal.AsSpan(list315); + num = 0; + ref QuestSequence reference237 = ref span315[num]; QuestSequence obj220 = new QuestSequence { Sequence = 0 @@ -80100,7 +96650,9 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + Span span316 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span316[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -80119,23 +96671,28 @@ public static class AssemblyQuestLoader }; obj220.Steps = list316; reference237 = obj220; - ref QuestSequence reference238 = ref span118[1]; + num++; + ref QuestSequence reference238 = ref span315[num]; QuestSequence obj221 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list317)[0]; + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + Span span317 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + ref QuestStep reference239 = ref span317[num2]; QuestStep obj222 = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; - num3 = 1; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - CollectionsMarshal.AsSpan(list318)[0] = new DialogueChoice + num4 = 1; + List list318 = new List(num4); + CollectionsMarshal.SetCount(list318, num4); + Span span318 = CollectionsMarshal.AsSpan(list318); + num3 = 0; + span318[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB210_01344_Q1_000_000"), @@ -80145,7 +96702,8 @@ public static class AssemblyQuestLoader reference239 = obj222; obj221.Steps = list317; reference238 = obj221; - ref QuestSequence reference240 = ref span118[2]; + num++; + ref QuestSequence reference240 = ref span315[num]; QuestSequence obj223 = new QuestSequence { Sequence = 2 @@ -80153,21 +96711,26 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.Interact, 2003963u, new Vector3(91.203125f, 55.74109f, -483.299f), 180) + Span span319 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + span319[index2] = new QuestStep(EInteractionType.Interact, 2003963u, new Vector3(91.203125f, 55.74109f, -483.299f), 180) { Comment = "Spawns enemy that we ignore" }; obj223.Steps = list319; reference240 = obj223; - ref QuestSequence reference241 = ref span118[3]; + num++; + ref QuestSequence reference241 = ref span315[num]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + index2 = 1; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + Span span320 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + span320[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -80180,13 +96743,16 @@ public static class AssemblyQuestLoader num = 1; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - CollectionsMarshal.AsSpan(list321)[0] = "JerryWester"; + Span span321 = CollectionsMarshal.AsSpan(list321); + index = 0; + span321[index] = "JerryWester"; questRoot32.Author = list321; - num = 5; - List list322 = new List(num); - CollectionsMarshal.SetCount(list322, num); - Span span119 = CollectionsMarshal.AsSpan(list322); - ref QuestSequence reference242 = ref span119[0]; + index = 5; + List list322 = new List(index); + CollectionsMarshal.SetCount(list322, index); + Span span322 = CollectionsMarshal.AsSpan(list322); + num = 0; + ref QuestSequence reference242 = ref span322[num]; QuestSequence obj225 = new QuestSequence { Sequence = 0 @@ -80194,7 +96760,9 @@ public static class AssemblyQuestLoader num2 = 1; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008597u, new Vector3(57.66382f, 44.999996f, -220.93542f), 140) + Span span323 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span323[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008597u, new Vector3(57.66382f, 44.999996f, -220.93542f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SkipConditions = new SkipConditions @@ -80207,21 +96775,25 @@ public static class AssemblyQuestLoader }; obj225.Steps = list323; reference242 = obj225; - ref QuestSequence reference243 = ref span119[1]; + num++; + ref QuestSequence reference243 = ref span322[num]; QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.Interact, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140) + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + Span span324 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span324[num2] = new QuestStep(EInteractionType.Interact, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140) { StopDistance = 7f }; obj226.Steps = list324; reference243 = obj226; - ref QuestSequence reference244 = ref span119[2]; + num++; + ref QuestSequence reference244 = ref span322[num]; QuestSequence obj227 = new QuestSequence { Sequence = 2 @@ -80229,12 +96801,14 @@ public static class AssemblyQuestLoader num2 = 2; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - Span span120 = CollectionsMarshal.AsSpan(list325); - span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.90674f, 52.66078f, -53.850098f), 140) + Span span325 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span325[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.90674f, 52.66078f, -53.850098f), 140) { Fly = true }; - ref QuestStep reference245 = ref span120[1]; + index2++; + ref QuestStep reference245 = ref span325[index2]; QuestStep obj228 = new QuestStep(EInteractionType.Combat, 2003561u, new Vector3(175.06665f, 52.628296f, -51.651794f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -80242,25 +96816,31 @@ public static class AssemblyQuestLoader num3 = 2; List list326 = new List(num3); CollectionsMarshal.SetCount(list326, num3); - Span span121 = CollectionsMarshal.AsSpan(list326); - span121[0] = 2853u; - span121[1] = 2877u; + Span span326 = CollectionsMarshal.AsSpan(list326); + num4 = 0; + span326[num4] = 2853u; + num4++; + span326[num4] = 2877u; obj228.KillEnemyDataIds = list326; reference245 = obj228; obj227.Steps = list325; reference244 = obj227; - ref QuestSequence reference246 = ref span119[3]; + num++; + ref QuestSequence reference246 = ref span322[num]; QuestSequence obj229 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 1008598u, new Vector3(140.45923f, 55.321606f, -33.066345f), 140); + index2 = 1; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + Span span327 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span327[num2] = new QuestStep(EInteractionType.Interact, 1008598u, new Vector3(140.45923f, 55.321606f, -33.066345f), 140); obj229.Steps = list327; reference246 = obj229; - ref QuestSequence reference247 = ref span119[4]; + num++; + ref QuestSequence reference247 = ref span322[num]; QuestSequence obj230 = new QuestSequence { Sequence = byte.MaxValue @@ -80268,7 +96848,9 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140) + Span span328 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + span328[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140) { Fly = true }; @@ -80281,21 +96863,26 @@ public static class AssemblyQuestLoader num = 1; List list329 = new List(num); CollectionsMarshal.SetCount(list329, num); - CollectionsMarshal.AsSpan(list329)[0] = "JerryWester"; + Span span329 = CollectionsMarshal.AsSpan(list329); + index = 0; + span329[index] = "JerryWester"; questRoot33.Author = list329; - num = 10; - List list330 = new List(num); - CollectionsMarshal.SetCount(list330, num); - Span span122 = CollectionsMarshal.AsSpan(list330); - ref QuestSequence reference248 = ref span122[0]; + index = 10; + List list330 = new List(index); + CollectionsMarshal.SetCount(list330, index); + Span span330 = CollectionsMarshal.AsSpan(list330); + num = 0; + ref QuestSequence reference248 = ref span330[num]; QuestSequence obj231 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008597u, new Vector3(57.66382f, 44.999996f, -220.93542f), 140) + index2 = 1; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + Span span331 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + span331[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008597u, new Vector3(57.66382f, 44.999996f, -220.93542f), 140) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, @@ -80309,7 +96896,8 @@ public static class AssemblyQuestLoader }; obj231.Steps = list331; reference248 = obj231; - ref QuestSequence reference249 = ref span122[1]; + num++; + ref QuestSequence reference249 = ref span330[num]; QuestSequence obj232 = new QuestSequence { Sequence = 1 @@ -80317,24 +96905,29 @@ public static class AssemblyQuestLoader num2 = 2; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - Span span123 = CollectionsMarshal.AsSpan(list332); - span123[0] = new QuestStep(EInteractionType.UseItem, null, null, 140) + Span span332 = CollectionsMarshal.AsSpan(list332); + index2 = 0; + span332[index2] = new QuestStep(EInteractionType.UseItem, null, null, 140) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span123[1] = new QuestStep(EInteractionType.Interact, 1008600u, new Vector3(-516.35004f, 14.956879f, -370.47382f), 140); + index2++; + span332[index2] = new QuestStep(EInteractionType.Interact, 1008600u, new Vector3(-516.35004f, 14.956879f, -370.47382f), 140); obj232.Steps = list332; reference249 = obj232; - ref QuestSequence reference250 = ref span122[2]; + num++; + ref QuestSequence reference250 = ref span330[num]; QuestSequence obj233 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.823868f, 37.760002f, 80.06303f), 131) + index2 = 1; + List list333 = new List(index2); + CollectionsMarshal.SetCount(list333, index2); + Span span333 = CollectionsMarshal.AsSpan(list333); + num2 = 0; + span333[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.823868f, 37.760002f, 80.06303f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -80345,7 +96938,8 @@ public static class AssemblyQuestLoader }; obj233.Steps = list333; reference250 = obj233; - ref QuestSequence reference251 = ref span122[3]; + num++; + ref QuestSequence reference251 = ref span330[num]; QuestSequence obj234 = new QuestSequence { Sequence = 3 @@ -80353,7 +96947,9 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1008604u, new Vector3(34.77527f, 7.1999946f, -93.91931f), 130) + Span span334 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span334[index2] = new QuestStep(EInteractionType.Interact, 1008604u, new Vector3(34.77527f, 7.1999946f, -93.91931f), 130) { AethernetShortcut = new AethernetShortcut { @@ -80363,18 +96959,22 @@ public static class AssemblyQuestLoader }; obj234.Steps = list334; reference251 = obj234; - ref QuestSequence reference252 = ref span122[4]; + num++; + ref QuestSequence reference252 = ref span330[num]; QuestSequence obj235 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.Interact, 1008608u, new Vector3(33.188354f, 7.199998f, -95.384155f), 130); + index2 = 1; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + Span span335 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + span335[num2] = new QuestStep(EInteractionType.Interact, 1008608u, new Vector3(33.188354f, 7.199998f, -95.384155f), 130); obj235.Steps = list335; reference252 = obj235; - ref QuestSequence reference253 = ref span122[5]; + num++; + ref QuestSequence reference253 = ref span330[num]; QuestSequence obj236 = new QuestSequence { Sequence = 5 @@ -80382,19 +96982,23 @@ public static class AssemblyQuestLoader num2 = 1; List list336 = new List(num2); CollectionsMarshal.SetCount(list336, num2); - CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + Span span336 = CollectionsMarshal.AsSpan(list336); + index2 = 0; + span336[index2] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj236.Steps = list336; reference253 = obj236; - ref QuestSequence reference254 = ref span122[6]; + num++; + ref QuestSequence reference254 = ref span330[num]; QuestSequence obj237 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - Span span124 = CollectionsMarshal.AsSpan(list337); - ref QuestStep reference255 = ref span124[0]; + index2 = 2; + List list337 = new List(index2); + CollectionsMarshal.SetCount(list337, index2); + Span span337 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + ref QuestStep reference255 = ref span337[num2]; QuestStep obj238 = new QuestStep(EInteractionType.Interact, 1001968u, new Vector3(136.0647f, 4.0099874f, -67.85687f), 131) { AethernetShortcut = new AethernetShortcut @@ -80403,35 +97007,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - num3 = 6; - List list338 = new List(num3); - CollectionsMarshal.SetCount(list338, num3); - Span span125 = CollectionsMarshal.AsSpan(list338); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list338 = new List(num4); + CollectionsMarshal.SetCount(list338, num4); + Span span338 = CollectionsMarshal.AsSpan(list338); + num3 = 0; + span338[num3] = null; + num3++; + span338[num3] = null; + num3++; + span338[num3] = null; + num3++; + span338[num3] = null; + num3++; + span338[num3] = null; + num3++; + span338[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj238.CompletionQuestVariablesFlags = list338; reference255 = obj238; - ref QuestStep reference256 = ref span124[1]; + num2++; + ref QuestStep reference256 = ref span337[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1001966u, new Vector3(126.7262f, 4.01f, -83.84839f), 131); num3 = 6; List list339 = new List(num3); CollectionsMarshal.SetCount(list339, num3); - Span span126 = CollectionsMarshal.AsSpan(list339); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span339 = CollectionsMarshal.AsSpan(list339); + num4 = 0; + span339[num4] = null; + num4++; + span339[num4] = null; + num4++; + span339[num4] = null; + num4++; + span339[num4] = null; + num4++; + span339[num4] = null; + num4++; + span339[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list339; reference256 = questStep18; obj237.Steps = list337; reference254 = obj237; - ref QuestSequence reference257 = ref span122[7]; + num++; + ref QuestSequence reference257 = ref span330[num]; QuestSequence obj239 = new QuestSequence { Sequence = 7 @@ -80439,7 +97057,9 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + Span span340 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + span340[index2] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -80449,18 +97069,22 @@ public static class AssemblyQuestLoader }; obj239.Steps = list340; reference257 = obj239; - ref QuestSequence reference258 = ref span122[8]; + num++; + ref QuestSequence reference258 = ref span330[num]; QuestSequence obj240 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1008608u, new Vector3(33.188354f, 7.199998f, -95.384155f), 130); + index2 = 1; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + Span span341 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span341[num2] = new QuestStep(EInteractionType.Interact, 1008608u, new Vector3(33.188354f, 7.199998f, -95.384155f), 130); obj240.Steps = list341; reference258 = obj240; - ref QuestSequence reference259 = ref span122[9]; + num++; + ref QuestSequence reference259 = ref span330[num]; QuestSequence obj241 = new QuestSequence { Sequence = byte.MaxValue @@ -80468,7 +97092,9 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008616u, new Vector3(-18.265076f, 36.013893f, 57.938477f), 131) + Span span342 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span342[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008616u, new Vector3(-18.265076f, 36.013893f, 57.938477f), 131) { AethernetShortcut = new AethernetShortcut { @@ -80489,13 +97115,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -80503,7 +97132,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SkipConditions = new SkipConditions @@ -80516,23 +97147,27 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-406.26895f, 23.167036f, -351.92947f), 140) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-406.26895f, 23.167036f, -351.92947f), 140) { Fly = true }; - span2[1] = new QuestStep(EInteractionType.Interact, 1008632u, new Vector3(-388.6931f, 23f, -350.94226f), 140); + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 1008632u, new Vector3(-388.6931f, 23f, -350.94226f), 140); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -80540,7 +97175,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + ref QuestStep reference4 = ref span5[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, 2003573u, new Vector3(184.64929f, 52.140015f, 29.06836f), 140) { StopDistance = 0.25f, @@ -80551,27 +97188,33 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = 2848u; + Span span6 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span6[index3] = 2848u; obj4.KillEnemyDataIds = list6; reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1008640u, new Vector3(126.17676f, 49.276558f, -173.23572f), 140) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.Interact, 1008640u, new Vector3(126.17676f, 49.276558f, -173.23572f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -80579,7 +97222,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -80597,24 +97242,30 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "JerryWester"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "JerryWester"; questRoot2.Author = list9; - num = 3; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span3[0]; + index = 3; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span10[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008542u, new Vector3(0.8086548f, -1.9957249f, -42.557434f), 351); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008542u, new Vector3(0.8086548f, -1.9957249f, -42.557434f), 351); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span3[1]; + num++; + ref QuestSequence reference8 = ref span10[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -80622,45 +97273,53 @@ public static class AssemblyQuestLoader num2 = 2; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span4 = CollectionsMarshal.AsSpan(list12); - ref QuestStep reference9 = ref span4[0]; + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + ref QuestStep reference9 = ref span12[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { TargetTerritoryId = (ushort)198, AetheryteShortcut = EAetheryteLocation.Limsa }; - num3 = 1; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = new DialogueChoice + index3 = 1; + List list13 = new List(index3); + CollectionsMarshal.SetCount(list13, index3); + Span span13 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span13[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE212_01356_Q1_000_1") }; obj9.DialogueChoices = list13; reference9 = obj9; - span4[1] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + index2++; + span12[index2] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference10 = ref span3[2]; + num++; + ref QuestSequence reference10 = ref span10[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - Span span5 = CollectionsMarshal.AsSpan(list14); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(256.67426f, 1.7067826f, 216.63573f), 138) + index2 = 3; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(256.67426f, 1.7067826f, 216.63573f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - span5[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(62.872204f, -3.1182384f, 61.10103f), 138) + num2++; + span14[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(62.872204f, -3.1182384f, 61.10103f), 138) { Fly = true }; - span5[2] = new QuestStep(EInteractionType.CompleteQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); + num2++; + span14[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); obj10.Steps = list14; reference10 = obj10; questRoot2.QuestSequence = list10; @@ -80670,13 +97329,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "JerryWester"; + Span span15 = CollectionsMarshal.AsSpan(list15); + index = 0; + span15[index] = "JerryWester"; questRoot3.Author = list15; - num = 5; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span6 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span6[0]; + index = 5; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + Span span16 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span16[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -80684,29 +97346,35 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span6[1]; + num++; + ref QuestSequence reference12 = ref span16[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - Span span7 = CollectionsMarshal.AsSpan(list18); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-205.63104f, -38.72321f, -114.53675f), 138) + index2 = 2; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-205.63104f, -38.72321f, -114.53675f), 138) { Fly = true }; - span7[1] = new QuestStep(EInteractionType.UseItem, 1008683u, new Vector3(-208.45355f, -38.993774f, -113.29828f), 138) + num2++; + span18[num2] = new QuestStep(EInteractionType.UseItem, 1008683u, new Vector3(-208.45355f, -38.993774f, -113.29828f), 138) { ItemId = 2001214u }; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span6[2]; + num++; + ref QuestSequence reference13 = ref span16[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -80714,7 +97382,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref QuestStep reference14 = ref span19[index2]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, null, new Vector3(-450.67154f, -41.88713f, -238.96031f), 138) { Fly = true, @@ -80723,57 +97393,76 @@ public static class AssemblyQuestLoader num3 = 3; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span8 = CollectionsMarshal.AsSpan(list20); - span8[0] = 2861u; - span8[1] = 2862u; - span8[2] = 2863u; + Span span20 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span20[index3] = 2861u; + index3++; + span20[index3] = 2862u; + index3++; + span20[index3] = 2863u; obj14.KillEnemyDataIds = list20; reference14 = obj14; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference15 = ref span6[3]; + num++; + ref QuestSequence reference15 = ref span16[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - Span span9 = CollectionsMarshal.AsSpan(list21); - ref QuestStep reference16 = ref span9[0]; + index2 = 2; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + ref QuestStep reference16 = ref span21[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 1008684u, new Vector3(-451.77386f, -41.985073f, -237.72034f), 138) { StopDistance = 0.25f }; - num3 = 6; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span10 = CollectionsMarshal.AsSpan(list22); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj16.CompletionQuestVariablesFlags = list22; reference16 = obj16; - ref QuestStep reference17 = ref span9[1]; + num2++; + ref QuestStep reference17 = ref span21[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1008685u, new Vector3(-450.33954f, -41.83395f, -240.13129f), 138); num3 = 6; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - Span span11 = CollectionsMarshal.AsSpan(list23); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span23 = CollectionsMarshal.AsSpan(list23); + index3 = 0; + span23[index3] = null; + index3++; + span23[index3] = null; + index3++; + span23[index3] = null; + index3++; + span23[index3] = null; + index3++; + span23[index3] = null; + index3++; + span23[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list23; reference17 = questStep; obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference18 = ref span6[4]; + num++; + ref QuestSequence reference18 = ref span16[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -80781,12 +97470,14 @@ public static class AssemblyQuestLoader num2 = 2; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span12 = CollectionsMarshal.AsSpan(list24); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(63.72484f, -3.1182368f, 60.3442f), 138) + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(63.72484f, -3.1182368f, 60.3442f), 138) { Fly = true }; - span12[1] = new QuestStep(EInteractionType.CompleteQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); + index2++; + span24[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); obj17.Steps = list24; reference18 = obj17; questRoot3.QuestSequence = list16; @@ -80796,26 +97487,32 @@ public static class AssemblyQuestLoader num = 2; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span13 = CollectionsMarshal.AsSpan(list25); - span13[0] = "JerryWester"; - span13[1] = "Wigglez"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "JerryWester"; + index++; + span25[index] = "Wigglez"; questRoot4.Author = list25; - num = 6; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span14 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference19 = ref span14[0]; + index = 6; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference19 = ref span26[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); obj18.Steps = list27; reference19 = obj18; - ref QuestSequence reference20 = ref span14[1]; + num++; + ref QuestSequence reference20 = ref span26[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -80823,46 +97520,54 @@ public static class AssemblyQuestLoader num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span15 = CollectionsMarshal.AsSpan(list28); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-191.9162f, -16.555008f, -246.89261f), 138) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-191.9162f, -16.555008f, -246.89261f), 138) { Fly = true }; - ref QuestStep reference21 = ref span15[1]; + index2++; + ref QuestStep reference21 = ref span28[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(-203.74379f, -42.300938f, -250.68587f), 138) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span16 = CollectionsMarshal.AsSpan(list29); - span16[0] = 2890u; - span16[1] = 2891u; + index3 = 2; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span29[num3] = 2890u; + num3++; + span29[num3] = 2891u; obj20.KillEnemyDataIds = list29; reference21 = obj20; obj19.Steps = list28; reference20 = obj19; - ref QuestSequence reference22 = ref span14[2]; + num++; + ref QuestSequence reference22 = ref span26[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - Span span17 = CollectionsMarshal.AsSpan(list30); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-199.74171f, -7.5191383f, -282.04623f), 138) + index2 = 3; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span30[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-199.74171f, -7.5191383f, -282.04623f), 138) { Fly = true }; - span17[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-194.43138f, -30.8899f, -322.80032f), 138) + num2++; + span30[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-194.43138f, -30.8899f, -322.80032f), 138) { Fly = true }; - ref QuestStep reference23 = ref span17[2]; + num2++; + ref QuestStep reference23 = ref span30[num2]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, null, new Vector3(-194.43138f, -40.785873f, -322.80032f), 138) { StopDistance = 0.25f, @@ -80872,16 +97577,21 @@ public static class AssemblyQuestLoader num3 = 4; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span18 = CollectionsMarshal.AsSpan(list31); - span18[0] = 2892u; - span18[1] = 2893u; - span18[2] = 2894u; - span18[3] = 2895u; + Span span31 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span31[index3] = 2892u; + index3++; + span31[index3] = 2893u; + index3++; + span31[index3] = 2894u; + index3++; + span31[index3] = 2895u; obj22.KillEnemyDataIds = list31; reference23 = obj22; obj21.Steps = list30; reference22 = obj21; - ref QuestSequence reference24 = ref span14[3]; + num++; + ref QuestSequence reference24 = ref span26[num]; QuestSequence obj23 = new QuestSequence { Sequence = 3 @@ -80889,53 +97599,63 @@ public static class AssemblyQuestLoader num2 = 2; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span19 = CollectionsMarshal.AsSpan(list32); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-310.84634f, -17.898666f, -338.26837f), 138) + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-310.84634f, -17.898666f, -338.26837f), 138) { Fly = true }; - ref QuestStep reference25 = ref span19[1]; + index2++; + ref QuestStep reference25 = ref span32[index2]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, null, new Vector3(-298.15454f, -41.646805f, -328.1372f), 138) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span20 = CollectionsMarshal.AsSpan(list33); - span20[0] = 2896u; - span20[1] = 2897u; - span20[2] = 2898u; + index3 = 3; + List list33 = new List(index3); + CollectionsMarshal.SetCount(list33, index3); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = 2896u; + num3++; + span33[num3] = 2897u; + num3++; + span33[num3] = 2898u; obj24.KillEnemyDataIds = list33; reference25 = obj24; obj23.Steps = list32; reference24 = obj23; - ref QuestSequence reference26 = ref span14[4]; + num++; + ref QuestSequence reference26 = ref span26[num]; QuestSequence obj25 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span21 = CollectionsMarshal.AsSpan(list34); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-328.71237f, -8.106506f, -314.975f), 138) + index2 = 3; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-328.71237f, -8.106506f, -314.975f), 138) { Fly = true }; - span21[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.59018f, -8.778947f, -299.32205f), 138) + num2++; + span34[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.59018f, -8.778947f, -299.32205f), 138) { Fly = true }; - span21[2] = new QuestStep(EInteractionType.Interact, 1008706u, new Vector3(-404.8371f, -32.810974f, -297.23047f), 138) + num2++; + span34[num2] = new QuestStep(EInteractionType.Interact, 1008706u, new Vector3(-404.8371f, -32.810974f, -297.23047f), 138) { Fly = true }; obj25.Steps = list34; reference26 = obj25; - ref QuestSequence reference27 = ref span14[5]; + num++; + ref QuestSequence reference27 = ref span26[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -80943,7 +97663,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008803u, new Vector3(-418.90594f, -35.708496f, -400.50354f), 138) + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008803u, new Vector3(-418.90594f, -35.708496f, -400.50354f), 138) { StopDistance = 5f }; @@ -80956,27 +97678,33 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "JerryWester"; + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "JerryWester"; questRoot5.Author = list36; - num = 5; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span22 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference28 = ref span22[0]; + index = 5; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference28 = ref span37[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008803u, new Vector3(-418.90594f, -35.708496f, -400.50354f), 138) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008803u, new Vector3(-418.90594f, -35.708496f, -400.50354f), 138) { StopDistance = 5f }; obj27.Steps = list38; reference28 = obj27; - ref QuestSequence reference29 = ref span22[1]; + num++; + ref QuestSequence reference29 = ref span37[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -80984,8 +97712,9 @@ public static class AssemblyQuestLoader num2 = 2; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span23 = CollectionsMarshal.AsSpan(list39); - ref QuestStep reference30 = ref span23[0]; + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + ref QuestStep reference30 = ref span39[index2]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa @@ -80993,28 +97722,35 @@ public static class AssemblyQuestLoader num3 = 1; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = new DialogueChoice + Span span40 = CollectionsMarshal.AsSpan(list40); + index3 = 0; + span40[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE216_01360_Q1_000_1") }; obj29.DialogueChoices = list40; reference30 = obj29; - span23[1] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + index2++; + span39[index2] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj28.Steps = list39; reference29 = obj28; - ref QuestSequence reference31 = ref span22[2]; + num++; + ref QuestSequence reference31 = ref span37[num]; QuestSequence obj30 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1008679u, new Vector3(-1.2055054f, 1.6041331f, -3.830017f), 198); + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.Interact, 1008679u, new Vector3(-1.2055054f, 1.6041331f, -3.830017f), 198); obj30.Steps = list41; reference31 = obj30; - ref QuestSequence reference32 = ref span22[3]; + num++; + ref QuestSequence reference32 = ref span37[num]; QuestSequence obj31 = new QuestSequence { Sequence = 3 @@ -81022,12 +97758,14 @@ public static class AssemblyQuestLoader num2 = 3; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span24 = CollectionsMarshal.AsSpan(list42); - span24[0] = new QuestStep(EInteractionType.Interact, 2001835u, new Vector3(0.0235393f, 2.330988f, 9.8216f), 198) + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.Interact, 2001835u, new Vector3(0.0235393f, 2.330988f, 9.8216f), 198) { TargetTerritoryId = (ushort)129 }; - span24[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(709.16064f, 66.00693f, -285.91016f), 135) + index2++; + span42[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(709.16064f, 66.00693f, -285.91016f), 135) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -81036,19 +97774,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaTempestGate } }; - span24[2] = new QuestStep(EInteractionType.Interact, 1008692u, new Vector3(712.8556f, 66.027f, -279.07227f), 135); + index2++; + span42[index2] = new QuestStep(EInteractionType.Interact, 1008692u, new Vector3(712.8556f, 66.027f, -279.07227f), 135); obj31.Steps = list42; reference32 = obj31; - ref QuestSequence reference33 = ref span22[4]; + num++; + ref QuestSequence reference33 = ref span37[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span25 = CollectionsMarshal.AsSpan(list43); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(706.98395f, 66.00693f, -286.78662f), 135) + index2 = 5; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(706.98395f, 66.00693f, -286.78662f), 135) { Mount = true, SkipConditions = new SkipConditions @@ -81059,7 +97800,8 @@ public static class AssemblyQuestLoader } } }; - span25[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) + num2++; + span43[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) { Fly = true, SkipConditions = new SkipConditions @@ -81070,7 +97812,8 @@ public static class AssemblyQuestLoader } } }; - span25[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + num2++; + span43[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, SkipConditions = new SkipConditions @@ -81081,7 +97824,8 @@ public static class AssemblyQuestLoader } } }; - span25[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.7082f, 8.973654f, 584.51135f), 135) + num2++; + span43[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.7082f, 8.973654f, 584.51135f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -81093,7 +97837,8 @@ public static class AssemblyQuestLoader } } }; - span25[4] = new QuestStep(EInteractionType.CompleteQuest, 1008693u, new Vector3(155.47412f, 8.973654f, 584.1306f), 135); + num2++; + span43[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008693u, new Vector3(155.47412f, 8.973654f, 584.1306f), 135); obj32.Steps = list43; reference33 = obj32; questRoot5.QuestSequence = list37; @@ -81103,13 +97848,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "JerryWester"; + Span span44 = CollectionsMarshal.AsSpan(list44); + index = 0; + span44[index] = "JerryWester"; questRoot6.Author = list44; - num = 3; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span26 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference34 = ref span26[0]; + index = 3; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + Span span45 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference34 = ref span45[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -81117,7 +97865,9 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008693u, new Vector3(155.47412f, 8.973654f, 584.1306f), 135) + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008693u, new Vector3(155.47412f, 8.973654f, 584.1306f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, SkipConditions = new SkipConditions @@ -81130,15 +97880,18 @@ public static class AssemblyQuestLoader }; obj33.Steps = list46; reference34 = obj33; - ref QuestSequence reference35 = ref span26[1]; + num++; + ref QuestSequence reference35 = ref span45[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Duty, null, null, 135) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.Duty, null, null, 135) { DutyOptions = new DutyOptions { @@ -81147,7 +97900,8 @@ public static class AssemblyQuestLoader }; obj34.Steps = list47; reference35 = obj34; - ref QuestSequence reference36 = ref span26[2]; + num++; + ref QuestSequence reference36 = ref span45[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -81155,23 +97909,27 @@ public static class AssemblyQuestLoader num2 = 2; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span27 = CollectionsMarshal.AsSpan(list48); - ref QuestStep reference37 = ref span27[0]; + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + ref QuestStep reference37 = ref span48[index2]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = new DialogueChoice + index3 = 1; + List list49 = new List(index3); + CollectionsMarshal.SetCount(list49, index3); + Span span49 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span49[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE217_01361_Q1_000_1") }; obj36.DialogueChoices = list49; reference37 = obj36; - span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + index2++; + span48[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj35.Steps = list48; reference36 = obj35; questRoot6.QuestSequence = list45; @@ -81181,21 +97939,26 @@ public static class AssemblyQuestLoader num = 1; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = "JerryWester"; + Span span50 = CollectionsMarshal.AsSpan(list50); + index = 0; + span50[index] = "JerryWester"; questRoot7.Author = list50; - num = 2; - List list51 = new List(num); - CollectionsMarshal.SetCount(list51, num); - Span span28 = CollectionsMarshal.AsSpan(list51); - ref QuestSequence reference38 = ref span28[0]; + index = 2; + List list51 = new List(index); + CollectionsMarshal.SetCount(list51, index); + Span span51 = CollectionsMarshal.AsSpan(list51); + num = 0; + ref QuestSequence reference38 = ref span51[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -81208,7 +97971,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list52; reference38 = obj37; - ref QuestSequence reference39 = ref span28[1]; + num++; + ref QuestSequence reference39 = ref span51[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -81216,7 +97980,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008694u, new Vector3(-117.265625f, 9.999865f, 154.7417f), 129); + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008694u, new Vector3(-117.265625f, 9.999865f, 154.7417f), 129); obj38.Steps = list53; reference39 = obj38; questRoot7.QuestSequence = list51; @@ -81226,21 +97992,26 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "JerryWester"; + Span span54 = CollectionsMarshal.AsSpan(list54); + index = 0; + span54[index] = "JerryWester"; questRoot8.Author = list54; - num = 2; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span29 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference40 = ref span29[0]; + index = 2; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + Span span55 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference40 = ref span55[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008696u, new Vector3(-115.58716f, 9.999781f, 156.08447f), 129) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008696u, new Vector3(-115.58716f, 9.999781f, 156.08447f), 129) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -81254,7 +98025,8 @@ public static class AssemblyQuestLoader }; obj39.Steps = list56; reference40 = obj39; - ref QuestSequence reference41 = ref span29[1]; + num++; + ref QuestSequence reference41 = ref span55[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -81262,17 +98034,20 @@ public static class AssemblyQuestLoader num2 = 3; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span30 = CollectionsMarshal.AsSpan(list57); - span30[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span30[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span57[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span30[2] = new QuestStep(EInteractionType.CompleteQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); + index2++; + span57[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); obj40.Steps = list57; reference41 = obj40; questRoot8.QuestSequence = list55; @@ -81282,22 +98057,27 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "Censored"; + Span span58 = CollectionsMarshal.AsSpan(list58); + index = 0; + span58[index] = "Censored"; questRoot9.Author = list58; questRoot9.Comment = "FATE"; - num = 2; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span31 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference42 = ref span31[0]; + index = 2; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + Span span59 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference42 = ref span59[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -81316,7 +98096,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list60; reference42 = obj41; - ref QuestSequence reference43 = ref span31[1]; + num++; + ref QuestSequence reference43 = ref span59[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -81324,13 +98105,15 @@ public static class AssemblyQuestLoader num2 = 2; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span32 = CollectionsMarshal.AsSpan(list61); - span32[0] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(147.42166f, 24.300901f, -751.06976f), 180) + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(147.42166f, 24.300901f, -751.06976f), 180) { Fly = true, Comment = "Do the FATE" }; - span32[1] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + index2++; + span61[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -81356,21 +98139,26 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "Censored"; + Span span62 = CollectionsMarshal.AsSpan(list62); + index = 0; + span62[index] = "Censored"; questRoot10.Author = list62; - num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span33 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference44 = ref span33[0]; + index = 3; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + Span span63 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference44 = ref span63[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -81389,7 +98177,8 @@ public static class AssemblyQuestLoader }; obj43.Steps = list64; reference44 = obj43; - ref QuestSequence reference45 = ref span33[1]; + num++; + ref QuestSequence reference45 = ref span63[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -81397,7 +98186,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list65)[0]; + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + ref QuestStep reference46 = ref span65[index2]; QuestStep obj45 = new QuestStep(EInteractionType.Combat, null, new Vector3(161.17926f, 21.418877f, -703.57477f), 180) { Fly = true, @@ -81406,23 +98197,29 @@ public static class AssemblyQuestLoader num3 = 3; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - Span span34 = CollectionsMarshal.AsSpan(list66); - span34[0] = 756u; - span34[1] = 757u; - span34[2] = 758u; + Span span66 = CollectionsMarshal.AsSpan(list66); + index3 = 0; + span66[index3] = 756u; + index3++; + span66[index3] = 757u; + index3++; + span66[index3] = 758u; obj45.KillEnemyDataIds = list66; reference46 = obj45; obj44.Steps = list65; reference45 = obj44; - ref QuestSequence reference47 = ref span33[2]; + num++; + ref QuestSequence reference47 = ref span63[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -81448,13 +98245,16 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "liza"; + Span span68 = CollectionsMarshal.AsSpan(list68); + index = 0; + span68[index] = "liza"; questRoot11.Author = list68; - num = 3; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span35 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference48 = ref span35[0]; + index = 3; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + Span span69 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference48 = ref span69[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -81462,87 +98262,114 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180); + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180); obj47.Steps = list70; reference48 = obj47; - ref QuestSequence reference49 = ref span35[1]; + num++; + ref QuestSequence reference49 = ref span69[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - Span span36 = CollectionsMarshal.AsSpan(list71); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(112.19494f, 23.602901f, -611.7208f), 180) + index2 = 5; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(112.19494f, 23.602901f, -611.7208f), 180) { Fly = true }; - span36[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(13.632976f, 21.54334f, -769.12134f), 180) + num2++; + span71[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(13.632976f, 21.54334f, -769.12134f), 180) { Fly = true }; - ref QuestStep reference50 = ref span36[2]; + num2++; + ref QuestStep reference50 = ref span71[num2]; QuestStep obj49 = new QuestStep(EInteractionType.Combat, 2003699u, new Vector3(7.94989f, 21.713562f, -769.06995f), 180) { ItemId = 2001230u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = 2841u; + index3 = 1; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + Span span72 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span72[num3] = 2841u; obj49.KillEnemyDataIds = list72; num3 = 6; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - Span span37 = CollectionsMarshal.AsSpan(list73); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span73 = CollectionsMarshal.AsSpan(list73); + index3 = 0; + span73[index3] = null; + index3++; + span73[index3] = null; + index3++; + span73[index3] = null; + index3++; + span73[index3] = null; + index3++; + span73[index3] = null; + index3++; + span73[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj49.CompletionQuestVariablesFlags = list73; reference50 = obj49; - ref QuestStep reference51 = ref span36[3]; + num2++; + ref QuestStep reference51 = ref span71[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, 2003701u, new Vector3(5.142273f, 23.75824f, -803.9216f), 180) { ItemId = 2001230u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - CollectionsMarshal.AsSpan(list74)[0] = 2841u; + index3 = 1; + List list74 = new List(index3); + CollectionsMarshal.SetCount(list74, index3); + Span span74 = CollectionsMarshal.AsSpan(list74); + num3 = 0; + span74[num3] = 2841u; obj50.KillEnemyDataIds = list74; num3 = 6; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - Span span38 = CollectionsMarshal.AsSpan(list75); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span75 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span75[index3] = null; + index3++; + span75[index3] = null; + index3++; + span75[index3] = null; + index3++; + span75[index3] = null; + index3++; + span75[index3] = null; + index3++; + span75[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj50.CompletionQuestVariablesFlags = list75; reference51 = obj50; - ref QuestStep reference52 = ref span36[4]; + num2++; + ref QuestStep reference52 = ref span71[num2]; QuestStep obj51 = new QuestStep(EInteractionType.Combat, 2003702u, new Vector3(0.47296143f, 24.551636f, -795.74274f), 180) { ItemId = 2001230u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = 2841u; + index3 = 1; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + Span span76 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span76[num3] = 2841u; obj51.KillEnemyDataIds = list76; reference52 = obj51; obj48.Steps = list71; reference49 = obj48; - ref QuestSequence reference53 = ref span35[2]; + num++; + ref QuestSequence reference53 = ref span69[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -81550,7 +98377,9 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook @@ -81564,21 +98393,26 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - CollectionsMarshal.AsSpan(list78)[0] = "Censored"; + Span span78 = CollectionsMarshal.AsSpan(list78); + index = 0; + span78[index] = "Censored"; questRoot12.Author = list78; - num = 4; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - Span span39 = CollectionsMarshal.AsSpan(list79); - ref QuestSequence reference54 = ref span39[0]; + index = 4; + List list79 = new List(index); + CollectionsMarshal.SetCount(list79, index); + Span span79 = CollectionsMarshal.AsSpan(list79); + num = 0; + ref QuestSequence reference54 = ref span79[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -81597,7 +98431,8 @@ public static class AssemblyQuestLoader }; obj53.Steps = list80; reference54 = obj53; - ref QuestSequence reference55 = ref span39[1]; + num++; + ref QuestSequence reference55 = ref span79[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -81605,8 +98440,9 @@ public static class AssemblyQuestLoader num2 = 5; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span40 = CollectionsMarshal.AsSpan(list81); - ref QuestStep reference56 = ref span40[0]; + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + ref QuestStep reference56 = ref span81[index2]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 2003753u, new Vector3(18.875366f, 25.558838f, -594.11005f), 180) { Fly = true, @@ -81615,76 +98451,108 @@ public static class AssemblyQuestLoader num3 = 6; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - Span span41 = CollectionsMarshal.AsSpan(list82); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span82 = CollectionsMarshal.AsSpan(list82); + index3 = 0; + span82[index3] = null; + index3++; + span82[index3] = null; + index3++; + span82[index3] = null; + index3++; + span82[index3] = null; + index3++; + span82[index3] = null; + index3++; + span82[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj55.CompletionQuestVariablesFlags = list82; reference56 = obj55; - ref QuestStep reference57 = ref span40[1]; + index2++; + ref QuestStep reference57 = ref span81[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2003755u, new Vector3(15.854065f, 26.810059f, -648.188f), 180); - num3 = 6; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - Span span42 = CollectionsMarshal.AsSpan(list83); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list83 = new List(index3); + CollectionsMarshal.SetCount(list83, index3); + Span span83 = CollectionsMarshal.AsSpan(list83); + num3 = 0; + span83[num3] = null; + num3++; + span83[num3] = null; + num3++; + span83[num3] = null; + num3++; + span83[num3] = null; + num3++; + span83[num3] = null; + num3++; + span83[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list83; reference57 = questStep2; - ref QuestStep reference58 = ref span40[2]; + index2++; + ref QuestStep reference58 = ref span81[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2003752u, new Vector3(-2.2125854f, 24.2771f, -722.31635f), 180); num3 = 6; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - Span span43 = CollectionsMarshal.AsSpan(list84); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span84 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span84[index3] = null; + index3++; + span84[index3] = null; + index3++; + span84[index3] = null; + index3++; + span84[index3] = null; + index3++; + span84[index3] = null; + index3++; + span84[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list84; reference58 = questStep3; - ref QuestStep reference59 = ref span40[3]; + index2++; + ref QuestStep reference59 = ref span81[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2003754u, new Vector3(86.56433f, 24.215942f, -822.1714f), 180); - num3 = 6; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - Span span44 = CollectionsMarshal.AsSpan(list85); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list85 = new List(index3); + CollectionsMarshal.SetCount(list85, index3); + Span span85 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span85[num3] = null; + num3++; + span85[num3] = null; + num3++; + span85[num3] = null; + num3++; + span85[num3] = null; + num3++; + span85[num3] = null; + num3++; + span85[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list85; reference59 = questStep4; - span40[4] = new QuestStep(EInteractionType.Interact, 2003756u, new Vector3(167.22351f, 24.76538f, -814.48083f), 180); + index2++; + span81[index2] = new QuestStep(EInteractionType.Interact, 2003756u, new Vector3(167.22351f, 24.76538f, -814.48083f), 180); obj54.Steps = list81; reference55 = obj54; - ref QuestSequence reference60 = ref span39[2]; + num++; + ref QuestSequence reference60 = ref span79[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj56.Steps = list86; reference60 = obj56; - ref QuestSequence reference61 = ref span39[3]; + num++; + ref QuestSequence reference61 = ref span79[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -81692,7 +98560,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true }; @@ -81710,21 +98580,26 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "Censored"; + Span span88 = CollectionsMarshal.AsSpan(list88); + index = 0; + span88[index] = "Censored"; questRoot13.Author = list88; - num = 7; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span45 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference62 = ref span45[0]; + index = 7; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + Span span89 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference62 = ref span89[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -81743,7 +98618,8 @@ public static class AssemblyQuestLoader }; obj58.Steps = list90; reference62 = obj58; - ref QuestSequence reference63 = ref span45[1]; + num++; + ref QuestSequence reference63 = ref span89[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 @@ -81751,22 +98627,27 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, Land = true }; obj59.Steps = list91; reference63 = obj59; - ref QuestSequence reference64 = ref span45[2]; + num++; + ref QuestSequence reference64 = ref span89[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list92)[0]; + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + ref QuestStep reference65 = ref span92[num2]; QuestStep obj61 = new QuestStep(EInteractionType.Combat, 2003920u, new Vector3(75.24219f, 28.000244f, -753.5668f), 180) { Fly = true, @@ -81776,12 +98657,15 @@ public static class AssemblyQuestLoader num3 = 1; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = 2846u; + Span span93 = CollectionsMarshal.AsSpan(list93); + index3 = 0; + span93[index3] = 2846u; obj61.KillEnemyDataIds = list93; reference65 = obj61; obj60.Steps = list92; reference64 = obj60; - ref QuestSequence reference66 = ref span45[3]; + num++; + ref QuestSequence reference66 = ref span89[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -81789,31 +98673,39 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 2003930u, new Vector3(75.24219f, 27.969727f, -753.5363f), 180); + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.Interact, 2003930u, new Vector3(75.24219f, 27.969727f, -753.5363f), 180); obj62.Steps = list94; reference66 = obj62; - ref QuestSequence reference67 = ref span45[4]; + num++; + ref QuestSequence reference67 = ref span89[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list95)[0]; + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + ref QuestStep reference68 = ref span95[num2]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, 2003937u, new Vector3(314.62573f, 22.201843f, -711.9402f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = 2846u; + index3 = 1; + List list96 = new List(index3); + CollectionsMarshal.SetCount(list96, index3); + Span span96 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span96[num3] = 2846u; obj64.KillEnemyDataIds = list96; reference68 = obj64; obj63.Steps = list95; reference67 = obj63; - ref QuestSequence reference69 = ref span45[5]; + num++; + ref QuestSequence reference69 = ref span89[num]; QuestSequence obj65 = new QuestSequence { Sequence = 5 @@ -81821,21 +98713,26 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.UseItem, 2003947u, new Vector3(314.62573f, 22.201843f, -711.9402f), 180) + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.UseItem, 2003947u, new Vector3(314.62573f, 22.201843f, -711.9402f), 180) { ItemId = 2001282u }; obj65.Steps = list97; reference69 = obj65; - ref QuestSequence reference70 = ref span45[6]; + num++; + ref QuestSequence reference70 = ref span89[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -81861,13 +98758,16 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; + Span span99 = CollectionsMarshal.AsSpan(list99); + index = 0; + span99[index] = "liza"; questRoot14.Author = list99; - num = 5; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span46 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference71 = ref span46[0]; + index = 5; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + Span span100 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference71 = ref span100[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -81875,24 +98775,30 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180); + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180); obj67.Steps = list101; reference71 = obj67; - ref QuestSequence reference72 = ref span46[1]; + num++; + ref QuestSequence reference72 = ref span100[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj68.Steps = list102; reference72 = obj68; - ref QuestSequence reference73 = ref span46[2]; + num++; + ref QuestSequence reference73 = ref span100[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -81900,8 +98806,9 @@ public static class AssemblyQuestLoader num2 = 5; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span47 = CollectionsMarshal.AsSpan(list103); - ref QuestStep reference74 = ref span47[0]; + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + ref QuestStep reference74 = ref span103[index2]; QuestStep obj70 = new QuestStep(EInteractionType.UseItem, 2003911u, new Vector3(296.5896f, 21.499878f, -722.13324f), 180) { Fly = true, @@ -81910,31 +98817,41 @@ public static class AssemblyQuestLoader num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span48 = CollectionsMarshal.AsSpan(list104); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span104 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj70.CompletionQuestVariablesFlags = list104; reference74 = obj70; - ref QuestStep reference75 = ref span47[1]; + index2++; + ref QuestStep reference75 = ref span103[index2]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, null, new Vector3(296.5896f, 21.499878f, -722.13324f), 180) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - num3 = 1; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = new ComplexCombatData + index3 = 1; + List list105 = new List(index3); + CollectionsMarshal.SetCount(list105, index3); + Span span105 = CollectionsMarshal.AsSpan(list105); + num3 = 0; + span105[num3] = new ComplexCombatData { DataId = 755u, NameId = 2711u }; obj71.ComplexCombatData = list105; reference75 = obj71; - ref QuestStep reference76 = ref span47[2]; + index2++; + ref QuestStep reference76 = ref span103[index2]; QuestStep obj72 = new QuestStep(EInteractionType.UseItem, 2003910u, new Vector3(293.41565f, 21.499878f, -721.91956f), 180) { ItemId = 2001278u @@ -81942,31 +98859,41 @@ public static class AssemblyQuestLoader num3 = 6; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - Span span49 = CollectionsMarshal.AsSpan(list106); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span106 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj72.CompletionQuestVariablesFlags = list106; reference76 = obj72; - ref QuestStep reference77 = ref span47[3]; + index2++; + ref QuestStep reference77 = ref span103[index2]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, null, new Vector3(293.41565f, 21.499878f, -721.91956f), 180) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new ComplexCombatData + index3 = 1; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + Span span107 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span107[num3] = new ComplexCombatData { DataId = 755u, NameId = 2711u }; obj73.ComplexCombatData = list107; reference77 = obj73; - ref QuestStep reference78 = ref span47[4]; + index2++; + ref QuestStep reference78 = ref span103[index2]; QuestStep obj74 = new QuestStep(EInteractionType.UseItem, 2003909u, new Vector3(290.0282f, 21.530457f, -721.3397f), 180) { ItemId = 2001278u @@ -81974,48 +98901,60 @@ public static class AssemblyQuestLoader num3 = 6; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - Span span50 = CollectionsMarshal.AsSpan(list108); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span108 = CollectionsMarshal.AsSpan(list108); + index3 = 0; + span108[index3] = null; + index3++; + span108[index3] = null; + index3++; + span108[index3] = null; + index3++; + span108[index3] = null; + index3++; + span108[index3] = null; + index3++; + span108[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj74.CompletionQuestVariablesFlags = list108; reference78 = obj74; obj69.Steps = list103; reference73 = obj69; - ref QuestSequence reference79 = ref span46[3]; + num++; + ref QuestSequence reference79 = ref span100[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span51 = CollectionsMarshal.AsSpan(list109); - ref QuestStep reference80 = ref span51[0]; + index2 = 2; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + ref QuestStep reference80 = ref span109[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, null, new Vector3(290.0282f, 21.530457f, -721.3397f), 180) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - num3 = 1; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = new ComplexCombatData + index3 = 1; + List list110 = new List(index3); + CollectionsMarshal.SetCount(list110, index3); + Span span110 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span110[num3] = new ComplexCombatData { DataId = 755u, NameId = 2711u }; obj76.ComplexCombatData = list110; reference80 = obj76; - span51[1] = new QuestStep(EInteractionType.UseItem, 2003912u, new Vector3(295.76562f, 21.469421f, -711.9402f), 180) + num2++; + span109[num2] = new QuestStep(EInteractionType.UseItem, 2003912u, new Vector3(295.76562f, 21.469421f, -711.9402f), 180) { ItemId = 2001279u }; obj75.Steps = list109; reference79 = obj75; - ref QuestSequence reference81 = ref span46[4]; + num++; + ref QuestSequence reference81 = ref span100[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -82023,7 +98962,9 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + Span span111 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span111[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { DelaySecondsAtStart = 3f, Fly = true, @@ -82048,21 +98989,26 @@ public static class AssemblyQuestLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - CollectionsMarshal.AsSpan(list112)[0] = "Censored"; + Span span112 = CollectionsMarshal.AsSpan(list112); + index = 0; + span112[index] = "Censored"; questRoot15.Author = list112; - num = 10; - List list113 = new List(num); - CollectionsMarshal.SetCount(list113, num); - Span span52 = CollectionsMarshal.AsSpan(list113); - ref QuestSequence reference82 = ref span52[0]; + index = 10; + List list113 = new List(index); + CollectionsMarshal.SetCount(list113, index); + Span span113 = CollectionsMarshal.AsSpan(list113); + num = 0; + ref QuestSequence reference82 = ref span113[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -82081,7 +99027,8 @@ public static class AssemblyQuestLoader }; obj78.Steps = list114; reference82 = obj78; - ref QuestSequence reference83 = ref span52[1]; + num++; + ref QuestSequence reference83 = ref span113[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -82089,21 +99036,26 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj79.Steps = list115; reference83 = obj79; - ref QuestSequence reference84 = ref span52[2]; + num++; + ref QuestSequence reference84 = ref span113[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - ref QuestStep reference85 = ref CollectionsMarshal.AsSpan(list116)[0]; + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + ref QuestStep reference85 = ref span116[num2]; QuestStep obj81 = new QuestStep(EInteractionType.Interact, 1008890u, new Vector3(19.516235f, 24.284801f, -559.7772f), 180) { Fly = true @@ -82111,7 +99063,9 @@ public static class AssemblyQuestLoader num3 = 1; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = new DialogueChoice + Span span117 = CollectionsMarshal.AsSpan(list117); + index3 = 0; + span117[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB310_01373_Q1_000_000"), @@ -82121,7 +99075,8 @@ public static class AssemblyQuestLoader reference85 = obj81; obj80.Steps = list116; reference84 = obj80; - ref QuestSequence reference86 = ref span52[3]; + num++; + ref QuestSequence reference86 = ref span113[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -82129,31 +99084,38 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 2003971u, new Vector3(99.168335f, 21.591492f, -639.7345f), 180); + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span118[index2] = new QuestStep(EInteractionType.Interact, 2003971u, new Vector3(99.168335f, 21.591492f, -639.7345f), 180); obj82.Steps = list118; reference86 = obj82; - ref QuestSequence reference87 = ref span52[4]; + num++; + ref QuestSequence reference87 = ref span113[num]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - Span span53 = CollectionsMarshal.AsSpan(list119); - ref QuestStep reference88 = ref span53[0]; + index2 = 2; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + ref QuestStep reference88 = ref span119[num2]; QuestStep obj84 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.544685f, 21.545254f, -637.22314f), 180) { DelaySecondsAtStart = 2f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - num3 = 1; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - CollectionsMarshal.AsSpan(list120)[0] = 2870u; + index3 = 1; + List list120 = new List(index3); + CollectionsMarshal.SetCount(list120, index3); + Span span120 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + span120[num3] = 2870u; obj84.KillEnemyDataIds = list120; reference88 = obj84; - ref QuestStep reference89 = ref span53[1]; + num2++; + ref QuestStep reference89 = ref span119[num2]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, 2003974u, new Vector3(97.00159f, 21.591492f, -637.4762f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -82161,12 +99123,15 @@ public static class AssemblyQuestLoader num3 = 1; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = 2872u; + Span span121 = CollectionsMarshal.AsSpan(list121); + index3 = 0; + span121[index3] = 2872u; obj85.KillEnemyDataIds = list121; reference89 = obj85; obj83.Steps = list119; reference87 = obj83; - ref QuestSequence reference90 = ref span52[5]; + num++; + ref QuestSequence reference90 = ref span113[num]; QuestSequence obj86 = new QuestSequence { Sequence = 5 @@ -82174,12 +99139,16 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - ref QuestStep reference91 = ref CollectionsMarshal.AsSpan(list122)[0]; + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + ref QuestStep reference91 = ref span122[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1008890u, new Vector3(19.516235f, 24.284801f, -559.7772f), 180); - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = new DialogueChoice + index3 = 1; + List list123 = new List(index3); + CollectionsMarshal.SetCount(list123, index3); + Span span123 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span123[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB310_01373_Q1_000_000"), @@ -82189,18 +99158,22 @@ public static class AssemblyQuestLoader reference91 = questStep5; obj86.Steps = list122; reference90 = obj86; - ref QuestSequence reference92 = ref span52[6]; + num++; + ref QuestSequence reference92 = ref span113[num]; QuestSequence obj87 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 2003979u, new Vector3(152.78857f, 22.171326f, -698.32916f), 180); + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.Interact, 2003979u, new Vector3(152.78857f, 22.171326f, -698.32916f), 180); obj87.Steps = list124; reference92 = obj87; - ref QuestSequence reference93 = ref span52[7]; + num++; + ref QuestSequence reference93 = ref span113[num]; QuestSequence obj88 = new QuestSequence { Sequence = 7 @@ -82208,8 +99181,9 @@ public static class AssemblyQuestLoader num2 = 2; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span54 = CollectionsMarshal.AsSpan(list125); - ref QuestStep reference94 = ref span54[0]; + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + ref QuestStep reference94 = ref span125[index2]; QuestStep obj89 = new QuestStep(EInteractionType.Combat, null, new Vector3(147.60046f, 23.544617f, -705.2567f), 180) { DelaySecondsAtStart = 2f, @@ -82218,38 +99192,47 @@ public static class AssemblyQuestLoader num3 = 1; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = 2870u; + Span span126 = CollectionsMarshal.AsSpan(list126); + index3 = 0; + span126[index3] = 2870u; obj89.KillEnemyDataIds = list126; reference94 = obj89; - ref QuestStep reference95 = ref span54[1]; + index2++; + ref QuestStep reference95 = ref span125[index2]; QuestStep obj90 = new QuestStep(EInteractionType.Combat, 2003983u, new Vector3(147.60046f, 23.544617f, -705.2567f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - CollectionsMarshal.AsSpan(list127)[0] = 2872u; + index3 = 1; + List list127 = new List(index3); + CollectionsMarshal.SetCount(list127, index3); + Span span127 = CollectionsMarshal.AsSpan(list127); + num3 = 0; + span127[num3] = 2872u; obj90.KillEnemyDataIds = list127; reference95 = obj90; obj88.Steps = list125; reference93 = obj88; - ref QuestSequence reference96 = ref span52[8]; + num++; + ref QuestSequence reference96 = ref span113[num]; QuestSequence obj91 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj91.Steps = list128; reference96 = obj91; - ref QuestSequence reference97 = ref span52[9]; + num++; + ref QuestSequence reference97 = ref span113[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -82257,7 +99240,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true }; @@ -82270,24 +99255,30 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + Span span130 = CollectionsMarshal.AsSpan(list130); + index = 0; + span130[index] = "liza"; questRoot16.Author = list130; - num = 7; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span55 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference98 = ref span55[0]; + index = 7; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + Span span131 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference98 = ref span131[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128); + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128); obj93.Steps = list132; reference98 = obj93; - ref QuestSequence reference99 = ref span55[1]; + num++; + ref QuestSequence reference99 = ref span131[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -82295,23 +99286,27 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1008826u, new Vector3(508.23218f, 9.926135f, 251.45337f), 137) + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.Interact, 1008826u, new Vector3(508.23218f, 9.926135f, 251.45337f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj94.Steps = list133; reference99 = obj94; - ref QuestSequence reference100 = ref span55[2]; + num++; + ref QuestSequence reference100 = ref span131[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - Span span56 = CollectionsMarshal.AsSpan(list134); - ref QuestStep reference101 = ref span56[0]; + index2 = 4; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + ref QuestStep reference101 = ref span134[num2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1008832u, new Vector3(510.97888f, 8.979649f, 259.38806f), 137) { StopDistance = 7f @@ -82319,33 +99314,47 @@ public static class AssemblyQuestLoader num3 = 6; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - Span span57 = CollectionsMarshal.AsSpan(list135); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span135 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list135; reference101 = obj96; - ref QuestStep reference102 = ref span56[1]; + num2++; + ref QuestStep reference102 = ref span134[num2]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1008831u, new Vector3(514.42737f, 8.931801f, 254.32202f), 137) { StopDistance = 7f }; - num3 = 6; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span58 = CollectionsMarshal.AsSpan(list136); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list136 = new List(index3); + CollectionsMarshal.SetCount(list136, index3); + Span span136 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj97.CompletionQuestVariablesFlags = list136; reference102 = obj97; - ref QuestStep reference103 = ref span56[2]; + num2++; + ref QuestStep reference103 = ref span134[num2]; QuestStep obj98 = new QuestStep(EInteractionType.UseItem, 1008830u, new Vector3(519.24915f, 8.867149f, 245.8075f), 137) { ItemId = 2001288u @@ -82353,35 +99362,49 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - Span span59 = CollectionsMarshal.AsSpan(list137); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span137 = CollectionsMarshal.AsSpan(list137); + index3 = 0; + span137[index3] = null; + index3++; + span137[index3] = null; + index3++; + span137[index3] = null; + index3++; + span137[index3] = null; + index3++; + span137[index3] = null; + index3++; + span137[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj98.CompletionQuestVariablesFlags = list137; reference103 = obj98; - ref QuestStep reference104 = ref span56[3]; + num2++; + ref QuestStep reference104 = ref span134[num2]; QuestStep obj99 = new QuestStep(EInteractionType.UseItem, 1008829u, new Vector3(497.15417f, 12.65078f, 245.07507f), 137) { ItemId = 2001288u }; - num3 = 6; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span60 = CollectionsMarshal.AsSpan(list138); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list138 = new List(index3); + CollectionsMarshal.SetCount(list138, index3); + Span span138 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj99.CompletionQuestVariablesFlags = list138; reference104 = obj99; obj95.Steps = list134; reference100 = obj95; - ref QuestSequence reference105 = ref span55[3]; + num++; + ref QuestSequence reference105 = ref span131[num]; QuestSequence obj100 = new QuestSequence { Sequence = 3 @@ -82389,21 +99412,27 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1008826u, new Vector3(508.23218f, 9.926135f, 251.45337f), 137); + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.Interact, 1008826u, new Vector3(508.23218f, 9.926135f, 251.45337f), 137); obj100.Steps = list139; reference105 = obj100; - ref QuestSequence reference106 = ref span55[4]; + num++; + ref QuestSequence reference106 = ref span131[num]; QuestSequence obj101 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1008827u, new Vector3(508.35413f, 9.910819f, 250.26318f), 137); + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.Interact, 1008827u, new Vector3(508.35413f, 9.910819f, 250.26318f), 137); obj101.Steps = list140; reference106 = obj101; - ref QuestSequence reference107 = ref span55[5]; + num++; + ref QuestSequence reference107 = ref span131[num]; QuestSequence obj102 = new QuestSequence { Sequence = 5 @@ -82411,27 +99440,32 @@ public static class AssemblyQuestLoader num2 = 2; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span61 = CollectionsMarshal.AsSpan(list141); - span61[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-204.7492f, -41.732693f, 21.867413f), 138) + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-204.7492f, -41.732693f, 21.867413f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - span61[1] = new QuestStep(EInteractionType.Interact, 1008916u, new Vector3(-207.44641f, -42.06953f, 22.140747f), 138) + index2++; + span141[index2] = new QuestStep(EInteractionType.Interact, 1008916u, new Vector3(-207.44641f, -42.06953f, 22.140747f), 138) { StopDistance = 5f }; obj102.Steps = list141; reference107 = obj102; - ref QuestSequence reference108 = ref span55[6]; + num++; + ref QuestSequence reference108 = ref span131[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true, NextQuestId = new QuestId(1375) @@ -82445,13 +99479,16 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; + Span span143 = CollectionsMarshal.AsSpan(list143); + index = 0; + span143[index] = "liza"; questRoot17.Author = list143; - num = 5; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span62 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference109 = ref span62[0]; + index = 5; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + Span span144 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference109 = ref span144[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -82459,24 +99496,30 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; obj104.Steps = list145; reference109 = obj104; - ref QuestSequence reference110 = ref span62[1]; + num++; + ref QuestSequence reference110 = ref span144[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.Interact, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); obj105.Steps = list146; reference110 = obj105; - ref QuestSequence reference111 = ref span62[2]; + num++; + ref QuestSequence reference111 = ref span144[num]; QuestSequence obj106 = new QuestSequence { Sequence = 2 @@ -82484,29 +99527,33 @@ public static class AssemblyQuestLoader num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span63 = CollectionsMarshal.AsSpan(list147); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.15807f, -23.382679f, -89.52834f), 138) + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.15807f, -23.382679f, -89.52834f), 138) { StopDistance = 0.5f, Fly = true }; - span63[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.15807f, -23.382679f, -89.52834f), 138) + index2++; + span147[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.15807f, -23.382679f, -89.52834f), 138) { StopDistance = 0.5f, Mount = false }; obj106.Steps = list147; reference111 = obj106; - ref QuestSequence reference112 = ref span62[3]; + num++; + ref QuestSequence reference112 = ref span144[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - Span span64 = CollectionsMarshal.AsSpan(list148); - ref QuestStep reference113 = ref span64[0]; + index2 = 2; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + ref QuestStep reference113 = ref span148[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, null, new Vector3(-41.15807f, -23.382679f, -89.52834f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -82514,28 +99561,33 @@ public static class AssemblyQuestLoader num3 = 3; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - Span span65 = CollectionsMarshal.AsSpan(list149); - span65[0] = new ComplexCombatData + Span span149 = CollectionsMarshal.AsSpan(list149); + index3 = 0; + span149[index3] = new ComplexCombatData { DataId = 2867u, IgnoreQuestMarker = true }; - span65[1] = new ComplexCombatData + index3++; + span149[index3] = new ComplexCombatData { DataId = 2868u, IgnoreQuestMarker = true }; - span65[2] = new ComplexCombatData + index3++; + span149[index3] = new ComplexCombatData { DataId = 2869u, IgnoreQuestMarker = true }; obj108.ComplexCombatData = list149; reference113 = obj108; - span64[1] = new QuestStep(EInteractionType.Interact, 1008897u, new Vector3(-38.31543f, -23.036211f, -88.85327f), 138); + num2++; + span148[num2] = new QuestStep(EInteractionType.Interact, 1008897u, new Vector3(-38.31543f, -23.036211f, -88.85327f), 138); obj107.Steps = list148; reference112 = obj107; - ref QuestSequence reference114 = ref span62[4]; + num++; + ref QuestSequence reference114 = ref span144[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -82543,15 +99595,19 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - ref QuestStep reference115 = ref CollectionsMarshal.AsSpan(list150)[0]; + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + ref QuestStep reference115 = ref span150[index2]; QuestStep obj110 = new QuestStep(EInteractionType.CompleteQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; - num3 = 1; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice + index3 = 1; + List list151 = new List(index3); + CollectionsMarshal.SetCount(list151, index3); + Span span151 = CollectionsMarshal.AsSpan(list151); + num3 = 0; + span151[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANSAH002_01375_Q1_000_000"), @@ -82568,21 +99624,26 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = "Censored"; + Span span152 = CollectionsMarshal.AsSpan(list152); + index = 0; + span152[index] = "Censored"; questRoot18.Author = list152; - num = 7; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span66 = CollectionsMarshal.AsSpan(list153); - ref QuestSequence reference116 = ref span66[0]; + index = 7; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + Span span153 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref QuestSequence reference116 = ref span153[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -82601,7 +99662,8 @@ public static class AssemblyQuestLoader }; obj111.Steps = list154; reference116 = obj111; - ref QuestSequence reference117 = ref span66[1]; + num++; + ref QuestSequence reference117 = ref span153[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -82609,12 +99671,16 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - ref QuestStep reference118 = ref CollectionsMarshal.AsSpan(list155)[0]; + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + ref QuestStep reference118 = ref span155[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138); num3 = 1; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = new DialogueChoice + Span span156 = CollectionsMarshal.AsSpan(list156); + index3 = 0; + span156[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH003_01376_Q1_000_000") @@ -82623,18 +99689,22 @@ public static class AssemblyQuestLoader reference118 = questStep6; obj112.Steps = list155; reference117 = obj112; - ref QuestSequence reference119 = ref span66[2]; + num++; + ref QuestSequence reference119 = ref span153[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1008917u, new Vector3(-889.0669f, -27.57306f, 929.6559f), 138); + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span157[num2] = new QuestStep(EInteractionType.Interact, 1008917u, new Vector3(-889.0669f, -27.57306f, 929.6559f), 138); obj113.Steps = list157; reference119 = obj113; - ref QuestSequence reference120 = ref span66[3]; + num++; + ref QuestSequence reference120 = ref span153[num]; QuestSequence obj114 = new QuestSequence { Sequence = 3 @@ -82642,33 +99712,41 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list158)[0]; + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + ref QuestStep reference121 = ref span158[index2]; QuestStep obj115 = new QuestStep(EInteractionType.Combat, null, new Vector3(-864.2374f, -25.652748f, 928.6218f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - Span span67 = CollectionsMarshal.AsSpan(list159); - span67[0] = 767u; - span67[1] = 2832u; + index3 = 2; + List list159 = new List(index3); + CollectionsMarshal.SetCount(list159, index3); + Span span159 = CollectionsMarshal.AsSpan(list159); + num3 = 0; + span159[num3] = 767u; + num3++; + span159[num3] = 2832u; obj115.KillEnemyDataIds = list159; reference121 = obj115; obj114.Steps = list158; reference120 = obj114; - ref QuestSequence reference122 = ref span66[4]; + num++; + ref QuestSequence reference122 = ref span153[num]; QuestSequence obj116 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1008917u, new Vector3(-889.0669f, -27.57306f, 929.6559f), 138); + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.Interact, 1008917u, new Vector3(-889.0669f, -27.57306f, 929.6559f), 138); obj116.Steps = list160; reference122 = obj116; - ref QuestSequence reference123 = ref span66[5]; + num++; + ref QuestSequence reference123 = ref span153[num]; QuestSequence obj117 = new QuestSequence { Sequence = 5 @@ -82676,20 +99754,25 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1008918u, new Vector3(317.1892f, -31.89867f, 273.73157f), 138); + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.Interact, 1008918u, new Vector3(317.1892f, -31.89867f, 273.73157f), 138); obj117.Steps = list161; reference123 = obj117; - ref QuestSequence reference124 = ref span66[6]; + num++; + ref QuestSequence reference124 = ref span153[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span68 = CollectionsMarshal.AsSpan(list162); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(312.55045f, -31.875002f, 281.11264f), 138); - span68[1] = new QuestStep(EInteractionType.CompleteQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + index2 = 2; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span162[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(312.55045f, -31.875002f, 281.11264f), 138); + num2++; + span162[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; @@ -82702,13 +99785,16 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "Censored"; + Span span163 = CollectionsMarshal.AsSpan(list163); + index = 0; + span163[index] = "Censored"; questRoot19.Author = list163; - num = 6; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span69 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference125 = ref span69[0]; + index = 6; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + Span span164 = CollectionsMarshal.AsSpan(list164); + num = 0; + ref QuestSequence reference125 = ref span164[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -82716,7 +99802,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -82735,18 +99823,22 @@ public static class AssemblyQuestLoader }; obj119.Steps = list165; reference125 = obj119; - ref QuestSequence reference126 = ref span69[1]; + num++; + ref QuestSequence reference126 = ref span164[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.Interact, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); obj120.Steps = list166; reference126 = obj120; - ref QuestSequence reference127 = ref span69[2]; + num++; + ref QuestSequence reference127 = ref span164[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 @@ -82754,21 +99846,28 @@ public static class AssemblyQuestLoader num2 = 5; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span70 = CollectionsMarshal.AsSpan(list167); - ref QuestStep reference128 = ref span70[0]; + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + ref QuestStep reference128 = ref span167[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - Span span71 = CollectionsMarshal.AsSpan(list168); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span168 = CollectionsMarshal.AsSpan(list168); + index3 = 0; + span168[index3] = null; + index3++; + span168[index3] = null; + index3++; + span168[index3] = null; + index3++; + span168[index3] = null; + index3++; + span168[index3] = null; + index3++; + span168[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list168; skipStepConditions.NearPosition = new NearPositionCondition { @@ -82778,31 +99877,41 @@ public static class AssemblyQuestLoader }; skipConditions.StepIf = skipStepConditions; questStep7.SkipConditions = skipConditions; - num3 = 1; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - CollectionsMarshal.AsSpan(list169)[0] = new DialogueChoice + index3 = 1; + List list169 = new List(index3); + CollectionsMarshal.SetCount(list169, index3); + Span span169 = CollectionsMarshal.AsSpan(list169); + num3 = 0; + span169[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH004_01377_Q1_000_000") }; questStep7.DialogueChoices = list169; reference128 = questStep7; - ref QuestStep reference129 = ref span70[1]; + index2++; + ref QuestStep reference129 = ref span167[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1008904u, new Vector3(-792.2637f, -39.012253f, 716.21265f), 138); num3 = 6; List list170 = new List(num3); CollectionsMarshal.SetCount(list170, num3); - Span span72 = CollectionsMarshal.AsSpan(list170); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span170 = CollectionsMarshal.AsSpan(list170); + index3 = 0; + span170[index3] = null; + index3++; + span170[index3] = null; + index3++; + span170[index3] = null; + index3++; + span170[index3] = null; + index3++; + span170[index3] = null; + index3++; + span170[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list170; reference129 = questStep8; - span70[2] = new QuestStep(EInteractionType.Interact, 1008802u, new Vector3(-814.84705f, -42.154568f, 694.3312f), 138) + index2++; + span167[index2] = new QuestStep(EInteractionType.Interact, 1008802u, new Vector3(-814.84705f, -42.154568f, 694.3312f), 138) { TargetTerritoryId = (ushort)138, SkipConditions = new SkipConditions @@ -82818,24 +99927,32 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference130 = ref span70[3]; + index2++; + ref QuestStep reference130 = ref span167[index2]; QuestStep obj122 = new QuestStep(EInteractionType.Interact, 1008902u, new Vector3(-150.2251f, -41.378696f, -295.58252f), 138) { Fly = true }; - num3 = 6; - List list171 = new List(num3); - CollectionsMarshal.SetCount(list171, num3); - Span span73 = CollectionsMarshal.AsSpan(list171); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list171 = new List(index3); + CollectionsMarshal.SetCount(list171, index3); + Span span171 = CollectionsMarshal.AsSpan(list171); + num3 = 0; + span171[num3] = null; + num3++; + span171[num3] = null; + num3++; + span171[num3] = null; + num3++; + span171[num3] = null; + num3++; + span171[num3] = null; + num3++; + span171[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj122.CompletionQuestVariablesFlags = list171; reference130 = obj122; - ref QuestStep reference131 = ref span70[4]; + index2++; + ref QuestStep reference131 = ref span167[index2]; QuestStep obj123 = new QuestStep(EInteractionType.Interact, 1008903u, new Vector3(-357.5647f, -35.210495f, -425.2232f), 138) { Fly = true, @@ -82844,32 +99961,42 @@ public static class AssemblyQuestLoader num3 = 6; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - Span span74 = CollectionsMarshal.AsSpan(list172); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span172 = CollectionsMarshal.AsSpan(list172); + index3 = 0; + span172[index3] = null; + index3++; + span172[index3] = null; + index3++; + span172[index3] = null; + index3++; + span172[index3] = null; + index3++; + span172[index3] = null; + index3++; + span172[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj123.CompletionQuestVariablesFlags = list172; reference131 = obj123; obj121.Steps = list167; reference127 = obj121; - ref QuestSequence reference132 = ref span69[3]; + num++; + ref QuestSequence reference132 = ref span164[num]; QuestSequence obj124 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.Interact, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true }; obj124.Steps = list173; reference132 = obj124; - ref QuestSequence reference133 = ref span69[4]; + num++; + ref QuestSequence reference133 = ref span164[num]; QuestSequence obj125 = new QuestSequence { Sequence = 4 @@ -82877,22 +100004,27 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 2003989u, new Vector3(-364.9806f, -38.254395f, -242.81683f), 138) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.Interact, 2003989u, new Vector3(-364.9806f, -38.254395f, -242.81683f), 138) { Fly = true, Land = true }; obj125.Steps = list174; reference133 = obj125; - ref QuestSequence reference134 = ref span69[5]; + num++; + ref QuestSequence reference134 = ref span164[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; @@ -82905,13 +100037,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "Censored"; + Span span176 = CollectionsMarshal.AsSpan(list176); + index = 0; + span176[index] = "Censored"; questRoot20.Author = list176; - num = 11; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span75 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference135 = ref span75[0]; + index = 11; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + Span span177 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference135 = ref span177[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -82919,7 +100054,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -82938,21 +100075,25 @@ public static class AssemblyQuestLoader }; obj127.Steps = list178; reference135 = obj127; - ref QuestSequence reference136 = ref span75[1]; + num++; + ref QuestSequence reference136 = ref span177[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.Interact, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) { Fly = true }; obj128.Steps = list179; reference136 = obj128; - ref QuestSequence reference137 = ref span75[2]; + num++; + ref QuestSequence reference137 = ref span177[num]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -82960,27 +100101,33 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span180[index2] = new QuestStep(EInteractionType.Interact, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; obj129.Steps = list180; reference137 = obj129; - ref QuestSequence reference138 = ref span75[3]; + num++; + ref QuestSequence reference138 = ref span177[num]; QuestSequence obj130 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 2004024u, new Vector3(-412.95496f, -39.047913f, -229.72461f), 138) + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span181[num2] = new QuestStep(EInteractionType.Interact, 2004024u, new Vector3(-412.95496f, -39.047913f, -229.72461f), 138) { Fly = true }; obj130.Steps = list181; reference138 = obj130; - ref QuestSequence reference139 = ref span75[4]; + num++; + ref QuestSequence reference139 = ref span177[num]; QuestSequence obj131 = new QuestSequence { Sequence = 4 @@ -82988,26 +100135,33 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.Interact, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; obj131.Steps = list182; reference139 = obj131; - ref QuestSequence reference140 = ref span75[5]; + num++; + ref QuestSequence reference140 = ref span177[num]; QuestSequence obj132 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - ref QuestStep reference141 = ref CollectionsMarshal.AsSpan(list183)[0]; + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + ref QuestStep reference141 = ref span183[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138); - num3 = 1; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - CollectionsMarshal.AsSpan(list184)[0] = new DialogueChoice + index3 = 1; + List list184 = new List(index3); + CollectionsMarshal.SetCount(list184, index3); + Span span184 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span184[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH005_01378_Q1_000_000") @@ -83016,7 +100170,8 @@ public static class AssemblyQuestLoader reference141 = questStep9; obj132.Steps = list183; reference140 = obj132; - ref QuestSequence reference142 = ref span75[6]; + num++; + ref QuestSequence reference142 = ref span177[num]; QuestSequence obj133 = new QuestSequence { Sequence = 6 @@ -83024,7 +100179,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - ref QuestStep reference143 = ref CollectionsMarshal.AsSpan(list185)[0]; + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + ref QuestStep reference143 = ref span185[index2]; QuestStep obj134 = new QuestStep(EInteractionType.Combat, null, new Vector3(-919.11914f, -31.760002f, 820.28955f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -83032,28 +100189,34 @@ public static class AssemblyQuestLoader num3 = 2; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - Span span76 = CollectionsMarshal.AsSpan(list186); - span76[0] = 765u; - span76[1] = 775u; + Span span186 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span186[index3] = 765u; + index3++; + span186[index3] = 775u; obj134.KillEnemyDataIds = list186; reference143 = obj134; obj133.Steps = list185; reference142 = obj133; - ref QuestSequence reference144 = ref span75[7]; + num++; + ref QuestSequence reference144 = ref span177[num]; QuestSequence obj135 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.UseItem, 1008922u, new Vector3(-914.8852f, -31.75f, 811.6426f), 138) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.UseItem, 1008922u, new Vector3(-914.8852f, -31.75f, 811.6426f), 138) { ItemId = 2001295u }; obj135.Steps = list187; reference144 = obj135; - ref QuestSequence reference145 = ref span75[8]; + num++; + ref QuestSequence reference145 = ref span177[num]; QuestSequence obj136 = new QuestSequence { Sequence = 8 @@ -83061,24 +100224,30 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1008923u, new Vector3(321.85852f, -36.32501f, 350.1792f), 138); + Span span188 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span188[index2] = new QuestStep(EInteractionType.Interact, 1008923u, new Vector3(321.85852f, -36.32501f, 350.1792f), 138); obj136.Steps = list188; reference145 = obj136; - ref QuestSequence reference146 = ref span75[9]; + num++; + ref QuestSequence reference146 = ref span177[num]; QuestSequence obj137 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.Interact, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; obj137.Steps = list189; reference146 = obj137; - ref QuestSequence reference147 = ref span75[10]; + num++; + ref QuestSequence reference147 = ref span177[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -83086,7 +100255,9 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -83104,22 +100275,27 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "Censored"; + Span span191 = CollectionsMarshal.AsSpan(list191); + index = 0; + span191[index] = "Censored"; questRoot21.Author = list191; questRoot21.Comment = "FATE"; - num = 2; - List list192 = new List(num); - CollectionsMarshal.SetCount(list192, num); - Span span77 = CollectionsMarshal.AsSpan(list192); - ref QuestSequence reference148 = ref span77[0]; + index = 2; + List list192 = new List(index); + CollectionsMarshal.SetCount(list192, index); + Span span192 = CollectionsMarshal.AsSpan(list192); + num = 0; + ref QuestSequence reference148 = ref span192[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83138,7 +100314,8 @@ public static class AssemblyQuestLoader }; obj139.Steps = list193; reference148 = obj139; - ref QuestSequence reference149 = ref span77[1]; + num++; + ref QuestSequence reference149 = ref span192[num]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -83146,13 +100323,15 @@ public static class AssemblyQuestLoader num2 = 2; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span78 = CollectionsMarshal.AsSpan(list194); - span78[0] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(-143.67775f, -32.78761f, -122.891304f), 138) + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(-143.67775f, -32.78761f, -122.891304f), 138) { Fly = true, Comment = "Do the FATE" }; - span78[1] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + index2++; + span194[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true }; @@ -83165,21 +100344,26 @@ public static class AssemblyQuestLoader num = 1; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - CollectionsMarshal.AsSpan(list195)[0] = "Censored"; + Span span195 = CollectionsMarshal.AsSpan(list195); + index = 0; + span195[index] = "Censored"; questRoot22.Author = list195; - num = 3; - List list196 = new List(num); - CollectionsMarshal.SetCount(list196, num); - Span span79 = CollectionsMarshal.AsSpan(list196); - ref QuestSequence reference150 = ref span79[0]; + index = 3; + List list196 = new List(index); + CollectionsMarshal.SetCount(list196, index); + Span span196 = CollectionsMarshal.AsSpan(list196); + num = 0; + ref QuestSequence reference150 = ref span196[num]; QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span197[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83198,7 +100382,8 @@ public static class AssemblyQuestLoader }; obj141.Steps = list197; reference150 = obj141; - ref QuestSequence reference151 = ref span79[1]; + num++; + ref QuestSequence reference151 = ref span196[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -83206,26 +100391,34 @@ public static class AssemblyQuestLoader num2 = 2; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span80 = CollectionsMarshal.AsSpan(list198); - ref QuestStep reference152 = ref span80[0]; + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + ref QuestStep reference152 = ref span198[index2]; QuestStep obj143 = new QuestStep(EInteractionType.UseItem, 2003871u, new Vector3(-126.93988f, -27.084778f, 29.800781f), 138) { Fly = true, ItemId = 2001273u }; - num3 = 6; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - Span span81 = CollectionsMarshal.AsSpan(list199); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list199 = new List(index3); + CollectionsMarshal.SetCount(list199, index3); + Span span199 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span199[num3] = null; + num3++; + span199[num3] = null; + num3++; + span199[num3] = null; + num3++; + span199[num3] = null; + num3++; + span199[num3] = null; + num3++; + span199[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj143.CompletionQuestVariablesFlags = list199; reference152 = obj143; - ref QuestStep reference153 = ref span80[1]; + index2++; + ref QuestStep reference153 = ref span198[index2]; QuestStep obj144 = new QuestStep(EInteractionType.UseItem, 2003872u, new Vector3(-22.354492f, -14.999634f, -101.51831f), 138) { Fly = true, @@ -83234,31 +100427,42 @@ public static class AssemblyQuestLoader num3 = 6; List> list200 = new List>(num3); CollectionsMarshal.SetCount(list200, num3); - Span> span82 = CollectionsMarshal.AsSpan(list200); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - ref List reference154 = ref span82[5]; + Span> span200 = CollectionsMarshal.AsSpan(list200); + index3 = 0; + span200[index3] = null; + index3++; + span200[index3] = null; + index3++; + span200[index3] = null; + index3++; + span200[index3] = null; + index3++; + span200[index3] = null; + index3++; + ref List reference154 = ref span200[index3]; int num4 = 1; List list201 = new List(num4); CollectionsMarshal.SetCount(list201, num4); - CollectionsMarshal.AsSpan(list201)[0] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span201 = CollectionsMarshal.AsSpan(list201); + int index4 = 0; + span201[index4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference154 = list201; obj144.RequiredQuestVariables = list200; reference153 = obj144; obj142.Steps = list198; reference151 = obj142; - ref QuestSequence reference155 = ref span79[2]; + num++; + ref QuestSequence reference155 = ref span196[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true }; @@ -83271,13 +100475,16 @@ public static class AssemblyQuestLoader num = 1; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - CollectionsMarshal.AsSpan(list203)[0] = "Censored"; + Span span203 = CollectionsMarshal.AsSpan(list203); + index = 0; + span203[index] = "Censored"; questRoot23.Author = list203; - num = 3; - List list204 = new List(num); - CollectionsMarshal.SetCount(list204, num); - Span span83 = CollectionsMarshal.AsSpan(list204); - ref QuestSequence reference156 = ref span83[0]; + index = 3; + List list204 = new List(index); + CollectionsMarshal.SetCount(list204, index); + Span span204 = CollectionsMarshal.AsSpan(list204); + num = 0; + ref QuestSequence reference156 = ref span204[num]; QuestSequence obj146 = new QuestSequence { Sequence = 0 @@ -83285,7 +100492,9 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83304,29 +100513,35 @@ public static class AssemblyQuestLoader }; obj146.Steps = list205; reference156 = obj146; - ref QuestSequence reference157 = ref span83[1]; + num++; + ref QuestSequence reference157 = ref span204[num]; QuestSequence obj147 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - ref QuestStep reference158 = ref CollectionsMarshal.AsSpan(list206)[0]; + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + ref QuestStep reference158 = ref span206[num2]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, null, new Vector3(-93.46076f, -30.563955f, -116.52818f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - CollectionsMarshal.AsSpan(list207)[0] = 2835u; + index3 = 1; + List list207 = new List(index3); + CollectionsMarshal.SetCount(list207, index3); + Span span207 = CollectionsMarshal.AsSpan(list207); + num3 = 0; + span207[num3] = 2835u; obj148.KillEnemyDataIds = list207; reference158 = obj148; obj147.Steps = list206; reference157 = obj147; - ref QuestSequence reference159 = ref span83[2]; + num++; + ref QuestSequence reference159 = ref span204[num]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue @@ -83334,7 +100549,9 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + Span span208 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span208[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true }; @@ -83347,21 +100564,26 @@ public static class AssemblyQuestLoader num = 1; List list209 = new List(num); CollectionsMarshal.SetCount(list209, num); - CollectionsMarshal.AsSpan(list209)[0] = "Censored"; + Span span209 = CollectionsMarshal.AsSpan(list209); + index = 0; + span209[index] = "Censored"; questRoot24.Author = list209; - num = 4; - List list210 = new List(num); - CollectionsMarshal.SetCount(list210, num); - Span span84 = CollectionsMarshal.AsSpan(list210); - ref QuestSequence reference160 = ref span84[0]; + index = 4; + List list210 = new List(index); + CollectionsMarshal.SetCount(list210, index); + Span span210 = CollectionsMarshal.AsSpan(list210); + num = 0; + ref QuestSequence reference160 = ref span210[num]; QuestSequence obj150 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + index2 = 1; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + Span span211 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + span211[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83380,7 +100602,8 @@ public static class AssemblyQuestLoader }; obj150.Steps = list211; reference160 = obj150; - ref QuestSequence reference161 = ref span84[1]; + num++; + ref QuestSequence reference161 = ref span210[num]; QuestSequence obj151 = new QuestSequence { Sequence = 1 @@ -83388,8 +100611,9 @@ public static class AssemblyQuestLoader num2 = 3; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span85 = CollectionsMarshal.AsSpan(list212); - ref QuestStep reference162 = ref span85[0]; + Span span212 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + ref QuestStep reference162 = ref span212[index2]; QuestStep obj152 = new QuestStep(EInteractionType.Combat, 1008818u, new Vector3(-188.89148f, -41.164997f, -42.832153f), 138) { Fly = true, @@ -83399,21 +100623,27 @@ public static class AssemblyQuestLoader num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = 767u; + Span span213 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span213[index3] = 767u; obj152.KillEnemyDataIds = list213; reference162 = obj152; - ref QuestStep reference163 = ref span85[1]; + index2++; + ref QuestStep reference163 = ref span212[index2]; QuestStep obj153 = new QuestStep(EInteractionType.Combat, 1008819u, new Vector3(-156.35925f, -38.790955f, -49.302002f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - CollectionsMarshal.AsSpan(list214)[0] = 767u; + index3 = 1; + List list214 = new List(index3); + CollectionsMarshal.SetCount(list214, index3); + Span span214 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span214[num3] = 767u; obj153.KillEnemyDataIds = list214; reference163 = obj153; - ref QuestStep reference164 = ref span85[2]; + index2++; + ref QuestStep reference164 = ref span212[index2]; QuestStep obj154 = new QuestStep(EInteractionType.Combat, 1008820u, new Vector3(-153.27692f, -35.290905f, -72.70929f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -83421,35 +100651,42 @@ public static class AssemblyQuestLoader num3 = 1; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = 767u; + Span span215 = CollectionsMarshal.AsSpan(list215); + index3 = 0; + span215[index3] = 767u; obj154.KillEnemyDataIds = list215; reference164 = obj154; obj151.Steps = list212; reference161 = obj151; - ref QuestSequence reference165 = ref span84[2]; + num++; + ref QuestSequence reference165 = ref span210[num]; QuestSequence obj155 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - Span span86 = CollectionsMarshal.AsSpan(list216); - span86[0] = new QuestStep(EInteractionType.UseItem, 1008825u, new Vector3(-212.72601f, -40.03688f, -102.80011f), 138) + index2 = 3; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + Span span216 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span216[num2] = new QuestStep(EInteractionType.UseItem, 1008825u, new Vector3(-212.72601f, -40.03688f, -102.80011f), 138) { ItemId = 2001254u }; - span86[1] = new QuestStep(EInteractionType.UseItem, 1008823u, new Vector3(-213.58057f, -40.036037f, -103.593506f), 138) + num2++; + span216[num2] = new QuestStep(EInteractionType.UseItem, 1008823u, new Vector3(-213.58057f, -40.036037f, -103.593506f), 138) { ItemId = 2001254u }; - span86[2] = new QuestStep(EInteractionType.UseItem, 1008824u, new Vector3(-212.75659f, -40.002003f, -104.631165f), 138) + num2++; + span216[num2] = new QuestStep(EInteractionType.UseItem, 1008824u, new Vector3(-212.75659f, -40.002003f, -104.631165f), 138) { ItemId = 2001254u }; obj155.Steps = list216; reference165 = obj155; - ref QuestSequence reference166 = ref span84[3]; + num++; + ref QuestSequence reference166 = ref span210[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -83457,7 +100694,9 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true }; @@ -83470,21 +100709,26 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "Censored"; + Span span218 = CollectionsMarshal.AsSpan(list218); + index = 0; + span218[index] = "Censored"; questRoot25.Author = list218; - num = 3; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span87 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference167 = ref span87[0]; + index = 3; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + Span span219 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference167 = ref span219[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span220[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83503,7 +100747,8 @@ public static class AssemblyQuestLoader }; obj157.Steps = list220; reference167 = obj157; - ref QuestSequence reference168 = ref span87[1]; + num++; + ref QuestSequence reference168 = ref span219[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -83511,8 +100756,9 @@ public static class AssemblyQuestLoader num2 = 2; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span88 = CollectionsMarshal.AsSpan(list221); - ref QuestStep reference169 = ref span88[0]; + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + ref QuestStep reference169 = ref span221[index2]; QuestStep obj159 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138) { SkipConditions = new SkipConditions @@ -83528,17 +100774,20 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = new DialogueChoice + index3 = 1; + List list222 = new List(index3); + CollectionsMarshal.SetCount(list222, index3); + Span span222 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span222[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH108_01386_01376_Q1_000_000") }; obj159.DialogueChoices = list222; reference169 = obj159; - ref QuestStep reference170 = ref span88[1]; + index2++; + ref QuestStep reference170 = ref span221[index2]; QuestStep obj160 = new QuestStep(EInteractionType.Combat, null, new Vector3(-830.20886f, -25.652752f, 889.1423f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -83546,24 +100795,29 @@ public static class AssemblyQuestLoader num3 = 3; List list223 = new List(num3); CollectionsMarshal.SetCount(list223, num3); - Span span89 = CollectionsMarshal.AsSpan(list223); - span89[0] = 765u; - span89[1] = 775u; - span89[2] = 776u; + Span span223 = CollectionsMarshal.AsSpan(list223); + index3 = 0; + span223[index3] = 765u; + index3++; + span223[index3] = 775u; + index3++; + span223[index3] = 776u; obj160.KillEnemyDataIds = list223; reference170 = obj160; obj158.Steps = list221; reference168 = obj158; - ref QuestSequence reference171 = ref span87[2]; + num++; + ref QuestSequence reference171 = ref span219[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - Span span90 = CollectionsMarshal.AsSpan(list224); - span90[0] = new QuestStep(EInteractionType.Interact, 2004012u, new Vector3(-847.50134f, -29.34314f, 887.0526f), 138) + index2 = 2; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span224[num2] = new QuestStep(EInteractionType.Interact, 2004012u, new Vector3(-847.50134f, -29.34314f, 887.0526f), 138) { TargetTerritoryId = (ushort)138, SkipConditions = new SkipConditions @@ -83579,7 +100833,8 @@ public static class AssemblyQuestLoader } } }; - span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138); + num2++; + span224[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138); obj161.Steps = list224; reference171 = obj161; questRoot25.QuestSequence = list219; @@ -83589,13 +100844,16 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - CollectionsMarshal.AsSpan(list225)[0] = "Censored"; + Span span225 = CollectionsMarshal.AsSpan(list225); + index = 0; + span225[index] = "Censored"; questRoot26.Author = list225; - num = 3; - List list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - Span span91 = CollectionsMarshal.AsSpan(list226); - ref QuestSequence reference172 = ref span91[0]; + index = 3; + List list226 = new List(index); + CollectionsMarshal.SetCount(list226, index); + Span span226 = CollectionsMarshal.AsSpan(list226); + num = 0; + ref QuestSequence reference172 = ref span226[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -83603,7 +100861,9 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83622,16 +100882,18 @@ public static class AssemblyQuestLoader }; obj162.Steps = list227; reference172 = obj162; - ref QuestSequence reference173 = ref span91[1]; + num++; + ref QuestSequence reference173 = ref span226[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span92 = CollectionsMarshal.AsSpan(list228); - ref QuestStep reference174 = ref span92[0]; + index2 = 7; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + ref QuestStep reference174 = ref span228[num2]; QuestStep obj164 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138) { SkipConditions = new SkipConditions @@ -83647,17 +100909,20 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list229 = new List(num3); - CollectionsMarshal.SetCount(list229, num3); - CollectionsMarshal.AsSpan(list229)[0] = new DialogueChoice + index3 = 1; + List list229 = new List(index3); + CollectionsMarshal.SetCount(list229, index3); + Span span229 = CollectionsMarshal.AsSpan(list229); + num3 = 0; + span229[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH109_01387_Q1_000_000") }; obj164.DialogueChoices = list229; reference174 = obj164; - ref QuestStep reference175 = ref span92[1]; + num2++; + ref QuestStep reference175 = ref span228[num2]; QuestStep obj165 = new QuestStep(EInteractionType.Combat, null, new Vector3(-847.4226f, -25.652754f, 886.75653f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -83665,23 +100930,31 @@ public static class AssemblyQuestLoader num3 = 1; List list230 = new List(num3); CollectionsMarshal.SetCount(list230, num3); - CollectionsMarshal.AsSpan(list230)[0] = 2839u; + Span span230 = CollectionsMarshal.AsSpan(list230); + index3 = 0; + span230[index3] = 2839u; obj165.KillEnemyDataIds = list230; reference175 = obj165; - span92[2] = new QuestStep(EInteractionType.Interact, 2004006u, new Vector3(-845.79236f, -25.650513f, 887.6019f), 138); - ref QuestStep reference176 = ref span92[3]; + num2++; + span228[num2] = new QuestStep(EInteractionType.Interact, 2004006u, new Vector3(-845.79236f, -25.650513f, 887.6019f), 138); + num2++; + ref QuestStep reference176 = ref span228[num2]; QuestStep obj166 = new QuestStep(EInteractionType.Combat, null, new Vector3(-834.959f, -25.652752f, 881.4168f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list231 = new List(num3); - CollectionsMarshal.SetCount(list231, num3); - CollectionsMarshal.AsSpan(list231)[0] = 2839u; + index3 = 1; + List list231 = new List(index3); + CollectionsMarshal.SetCount(list231, index3); + Span span231 = CollectionsMarshal.AsSpan(list231); + num3 = 0; + span231[num3] = 2839u; obj166.KillEnemyDataIds = list231; reference176 = obj166; - span92[4] = new QuestStep(EInteractionType.Interact, 2004005u, new Vector3(-833.2799f, -25.68097f, 880.70483f), 138); - ref QuestStep reference177 = ref span92[5]; + num2++; + span228[num2] = new QuestStep(EInteractionType.Interact, 2004005u, new Vector3(-833.2799f, -25.68097f, 880.70483f), 138); + num2++; + ref QuestStep reference177 = ref span228[num2]; QuestStep obj167 = new QuestStep(EInteractionType.Combat, null, new Vector3(-830.6505f, -25.647753f, 896.4246f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -83689,13 +100962,17 @@ public static class AssemblyQuestLoader num3 = 1; List list232 = new List(num3); CollectionsMarshal.SetCount(list232, num3); - CollectionsMarshal.AsSpan(list232)[0] = 2839u; + Span span232 = CollectionsMarshal.AsSpan(list232); + index3 = 0; + span232[index3] = 2839u; obj167.KillEnemyDataIds = list232; reference177 = obj167; - span92[6] = new QuestStep(EInteractionType.Interact, 2004004u, new Vector3(-830.1366f, -25.68097f, 897.48975f), 138); + num2++; + span228[num2] = new QuestStep(EInteractionType.Interact, 2004004u, new Vector3(-830.1366f, -25.68097f, 897.48975f), 138); obj163.Steps = list228; reference173 = obj163; - ref QuestSequence reference178 = ref span91[2]; + num++; + ref QuestSequence reference178 = ref span226[num]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue @@ -83703,7 +100980,9 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span233[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83729,21 +101008,26 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "Censored"; + Span span234 = CollectionsMarshal.AsSpan(list234); + index = 0; + span234[index] = "Censored"; questRoot27.Author = list234; - num = 3; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span93 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference179 = ref span93[0]; + index = 3; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + Span span235 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference179 = ref span235[num]; QuestSequence obj169 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83762,7 +101046,8 @@ public static class AssemblyQuestLoader }; obj169.Steps = list236; reference179 = obj169; - ref QuestSequence reference180 = ref span93[1]; + num++; + ref QuestSequence reference180 = ref span235[num]; QuestSequence obj170 = new QuestSequence { Sequence = 1 @@ -83770,20 +101055,24 @@ public static class AssemblyQuestLoader num2 = 2; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span94 = CollectionsMarshal.AsSpan(list237); - ref QuestStep reference181 = ref span94[0]; + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + ref QuestStep reference181 = ref span237[index2]; QuestStep obj171 = new QuestStep(EInteractionType.Combat, 1008793u, new Vector3(-55.436035f, -24.903355f, 36.75891f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list238 = new List(num3); - CollectionsMarshal.SetCount(list238, num3); - CollectionsMarshal.AsSpan(list238)[0] = 2903u; + index3 = 1; + List list238 = new List(index3); + CollectionsMarshal.SetCount(list238, index3); + Span span238 = CollectionsMarshal.AsSpan(list238); + num3 = 0; + span238[num3] = 2903u; obj171.KillEnemyDataIds = list238; reference181 = obj171; - ref QuestStep reference182 = ref span94[1]; + index2++; + ref QuestStep reference182 = ref span237[index2]; QuestStep obj172 = new QuestStep(EInteractionType.Combat, 1008796u, new Vector3(46.066895f, -14.420642f, 55.008667f), 138) { Fly = true, @@ -83792,20 +101081,25 @@ public static class AssemblyQuestLoader num3 = 1; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = 2903u; + Span span239 = CollectionsMarshal.AsSpan(list239); + index3 = 0; + span239[index3] = 2903u; obj172.KillEnemyDataIds = list239; reference182 = obj172; obj170.Steps = list237; reference180 = obj170; - ref QuestSequence reference183 = ref span93[2]; + num++; + ref QuestSequence reference183 = ref span235[num]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true }; @@ -83818,13 +101112,16 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "Censored"; + Span span241 = CollectionsMarshal.AsSpan(list241); + index = 0; + span241[index] = "Censored"; questRoot28.Author = list241; - num = 3; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span95 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference184 = ref span95[0]; + index = 3; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + Span span242 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference184 = ref span242[num]; QuestSequence obj174 = new QuestSequence { Sequence = 0 @@ -83832,7 +101129,9 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span243[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83851,24 +101150,29 @@ public static class AssemblyQuestLoader }; obj174.Steps = list243; reference184 = obj174; - ref QuestSequence reference185 = ref span95[1]; + num++; + ref QuestSequence reference185 = ref span242[num]; QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - ref QuestStep reference186 = ref CollectionsMarshal.AsSpan(list244)[0]; + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + ref QuestStep reference186 = ref span244[num2]; QuestStep obj176 = new QuestStep(EInteractionType.Combat, null, new Vector3(-230.4717f, -42.561234f, -222.34785f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list245 = new List(num3); - CollectionsMarshal.SetCount(list245, num3); - CollectionsMarshal.AsSpan(list245)[0] = new ComplexCombatData + index3 = 1; + List list245 = new List(index3); + CollectionsMarshal.SetCount(list245, index3); + Span span245 = CollectionsMarshal.AsSpan(list245); + num3 = 0; + span245[num3] = new ComplexCombatData { DataId = 768u, MinimumKillCount = 3u @@ -83877,7 +101181,8 @@ public static class AssemblyQuestLoader reference186 = obj176; obj175.Steps = list244; reference185 = obj175; - ref QuestSequence reference187 = ref span95[2]; + num++; + ref QuestSequence reference187 = ref span242[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -83885,8 +101190,9 @@ public static class AssemblyQuestLoader num2 = 2; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span96 = CollectionsMarshal.AsSpan(list246); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) + Span span246 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span246[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) { Fly = true, SkipConditions = new SkipConditions @@ -83902,7 +101208,8 @@ public static class AssemblyQuestLoader } } }; - span96[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + index2++; + span246[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj177.Steps = list246; reference187 = obj177; questRoot28.QuestSequence = list242; @@ -83912,21 +101219,26 @@ public static class AssemblyQuestLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - CollectionsMarshal.AsSpan(list247)[0] = "Censored"; + Span span247 = CollectionsMarshal.AsSpan(list247); + index = 0; + span247[index] = "Censored"; questRoot29.Author = list247; - num = 3; - List list248 = new List(num); - CollectionsMarshal.SetCount(list248, num); - Span span97 = CollectionsMarshal.AsSpan(list248); - ref QuestSequence reference188 = ref span97[0]; + index = 3; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + Span span248 = CollectionsMarshal.AsSpan(list248); + num = 0; + ref QuestSequence reference188 = ref span248[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + Span span249 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span249[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -83945,7 +101257,8 @@ public static class AssemblyQuestLoader }; obj178.Steps = list249; reference188 = obj178; - ref QuestSequence reference189 = ref span97[1]; + num++; + ref QuestSequence reference189 = ref span248[num]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -83953,7 +101266,9 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - ref QuestStep reference190 = ref CollectionsMarshal.AsSpan(list250)[0]; + Span span250 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + ref QuestStep reference190 = ref span250[index2]; QuestStep obj180 = new QuestStep(EInteractionType.Combat, null, new Vector3(-194.0164f, -42.30825f, -278.38858f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -83961,26 +101276,34 @@ public static class AssemblyQuestLoader num3 = 2; List list251 = new List(num3); CollectionsMarshal.SetCount(list251, num3); - Span span98 = CollectionsMarshal.AsSpan(list251); - ref ComplexCombatData reference191 = ref span98[0]; + Span span251 = CollectionsMarshal.AsSpan(list251); + index3 = 0; + ref ComplexCombatData reference191 = ref span251[index3]; ComplexCombatData obj181 = new ComplexCombatData { DataId = 2832u, MinimumKillCount = 2u }; - num4 = 6; - List list252 = new List(num4); - CollectionsMarshal.SetCount(list252, num4); - Span span99 = CollectionsMarshal.AsSpan(list252); - span99[0] = null; - span99[1] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = null; + index4 = 6; + List list252 = new List(index4); + CollectionsMarshal.SetCount(list252, index4); + Span span252 = CollectionsMarshal.AsSpan(list252); + num4 = 0; + span252[num4] = null; + num4++; + span252[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span252[num4] = null; + num4++; + span252[num4] = null; + num4++; + span252[num4] = null; + num4++; + span252[num4] = null; obj181.CompletionQuestVariablesFlags = list252; reference191 = obj181; - span98[1] = new ComplexCombatData + index3++; + span251[index3] = new ComplexCombatData { DataId = 2889u, MinimumKillCount = 1u @@ -83989,16 +101312,18 @@ public static class AssemblyQuestLoader reference190 = obj180; obj179.Steps = list250; reference189 = obj179; - ref QuestSequence reference192 = ref span97[2]; + num++; + ref QuestSequence reference192 = ref span248[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - Span span100 = CollectionsMarshal.AsSpan(list253); - span100[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) + index2 = 2; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + Span span253 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span253[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) { Fly = true, SkipConditions = new SkipConditions @@ -84014,7 +101339,8 @@ public static class AssemblyQuestLoader } } }; - span100[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + num2++; + span253[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj182.Steps = list253; reference192 = obj182; questRoot29.QuestSequence = list248; @@ -84024,13 +101350,16 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - CollectionsMarshal.AsSpan(list254)[0] = "Censored"; + Span span254 = CollectionsMarshal.AsSpan(list254); + index = 0; + span254[index] = "Censored"; questRoot30.Author = list254; - num = 3; - List list255 = new List(num); - CollectionsMarshal.SetCount(list255, num); - Span span101 = CollectionsMarshal.AsSpan(list255); - ref QuestSequence reference193 = ref span101[0]; + index = 3; + List list255 = new List(index); + CollectionsMarshal.SetCount(list255, index); + Span span255 = CollectionsMarshal.AsSpan(list255); + num = 0; + ref QuestSequence reference193 = ref span255[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -84038,7 +101367,9 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + Span span256 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span256[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -84057,74 +101388,97 @@ public static class AssemblyQuestLoader }; obj183.Steps = list256; reference193 = obj183; - ref QuestSequence reference194 = ref span101[1]; + num++; + ref QuestSequence reference194 = ref span255[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - Span span102 = CollectionsMarshal.AsSpan(list257); - ref QuestStep reference195 = ref span102[0]; + index2 = 3; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span257 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + ref QuestStep reference195 = ref span257[num2]; QuestStep obj185 = new QuestStep(EInteractionType.Combat, 2003764u, new Vector3(-236.56067f, -41.001038f, -176.0434f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - CollectionsMarshal.AsSpan(list258)[0] = 2843u; + index3 = 1; + List list258 = new List(index3); + CollectionsMarshal.SetCount(list258, index3); + Span span258 = CollectionsMarshal.AsSpan(list258); + num3 = 0; + span258[num3] = 2843u; obj185.KillEnemyDataIds = list258; num3 = 6; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - Span span103 = CollectionsMarshal.AsSpan(list259); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span259 = CollectionsMarshal.AsSpan(list259); + index3 = 0; + span259[index3] = null; + index3++; + span259[index3] = null; + index3++; + span259[index3] = null; + index3++; + span259[index3] = null; + index3++; + span259[index3] = null; + index3++; + span259[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj185.CompletionQuestVariablesFlags = list259; reference195 = obj185; - ref QuestStep reference196 = ref span102[1]; + num2++; + ref QuestStep reference196 = ref span257[num2]; QuestStep obj186 = new QuestStep(EInteractionType.Combat, 2003765u, new Vector3(-223.65149f, -41.36731f, -185.47345f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - CollectionsMarshal.AsSpan(list260)[0] = 2843u; + index3 = 1; + List list260 = new List(index3); + CollectionsMarshal.SetCount(list260, index3); + Span span260 = CollectionsMarshal.AsSpan(list260); + num3 = 0; + span260[num3] = 2843u; obj186.KillEnemyDataIds = list260; num3 = 6; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - Span span104 = CollectionsMarshal.AsSpan(list261); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span261 = CollectionsMarshal.AsSpan(list261); + index3 = 0; + span261[index3] = null; + index3++; + span261[index3] = null; + index3++; + span261[index3] = null; + index3++; + span261[index3] = null; + index3++; + span261[index3] = null; + index3++; + span261[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj186.CompletionQuestVariablesFlags = list261; reference196 = obj186; - ref QuestStep reference197 = ref span102[2]; + num2++; + ref QuestStep reference197 = ref span257[num2]; QuestStep obj187 = new QuestStep(EInteractionType.Combat, 2003767u, new Vector3(-212.75659f, -41.672424f, -198.07745f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list262 = new List(num3); - CollectionsMarshal.SetCount(list262, num3); - CollectionsMarshal.AsSpan(list262)[0] = 2843u; + index3 = 1; + List list262 = new List(index3); + CollectionsMarshal.SetCount(list262, index3); + Span span262 = CollectionsMarshal.AsSpan(list262); + num3 = 0; + span262[num3] = 2843u; obj187.KillEnemyDataIds = list262; reference197 = obj187; obj184.Steps = list257; reference194 = obj184; - ref QuestSequence reference198 = ref span101[2]; + num++; + ref QuestSequence reference198 = ref span255[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue @@ -84132,8 +101486,9 @@ public static class AssemblyQuestLoader num2 = 2; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span105 = CollectionsMarshal.AsSpan(list263); - span105[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) + Span span263 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span263[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) { Fly = true, SkipConditions = new SkipConditions @@ -84149,7 +101504,8 @@ public static class AssemblyQuestLoader } } }; - span105[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + index2++; + span263[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj188.Steps = list263; reference198 = obj188; questRoot30.QuestSequence = list255; @@ -84159,21 +101515,26 @@ public static class AssemblyQuestLoader num = 1; List list264 = new List(num); CollectionsMarshal.SetCount(list264, num); - CollectionsMarshal.AsSpan(list264)[0] = "Censored"; + Span span264 = CollectionsMarshal.AsSpan(list264); + index = 0; + span264[index] = "Censored"; questRoot31.Author = list264; - num = 3; - List list265 = new List(num); - CollectionsMarshal.SetCount(list265, num); - Span span106 = CollectionsMarshal.AsSpan(list265); - ref QuestSequence reference199 = ref span106[0]; + index = 3; + List list265 = new List(index); + CollectionsMarshal.SetCount(list265, index); + Span span265 = CollectionsMarshal.AsSpan(list265); + num = 0; + ref QuestSequence reference199 = ref span265[num]; QuestSequence obj189 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + Span span266 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span266[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -84192,7 +101553,8 @@ public static class AssemblyQuestLoader }; obj189.Steps = list266; reference199 = obj189; - ref QuestSequence reference200 = ref span106[1]; + num++; + ref QuestSequence reference200 = ref span265[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 @@ -84200,7 +101562,9 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - ref QuestStep reference201 = ref CollectionsMarshal.AsSpan(list267)[0]; + Span span267 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + ref QuestStep reference201 = ref span267[index2]; QuestStep obj191 = new QuestStep(EInteractionType.Combat, null, new Vector3(-289.73663f, -41.544178f, -358.22406f), 138) { Fly = true, @@ -84209,21 +101573,25 @@ public static class AssemblyQuestLoader num3 = 1; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = 2836u; + Span span268 = CollectionsMarshal.AsSpan(list268); + index3 = 0; + span268[index3] = 2836u; obj191.KillEnemyDataIds = list268; reference201 = obj191; obj190.Steps = list267; reference200 = obj190; - ref QuestSequence reference202 = ref span106[2]; + num++; + ref QuestSequence reference202 = ref span265[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - Span span107 = CollectionsMarshal.AsSpan(list269); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) + index2 = 2; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + Span span269 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span269[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) { Fly = true, SkipConditions = new SkipConditions @@ -84239,7 +101607,8 @@ public static class AssemblyQuestLoader } } }; - span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + num2++; + span269[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj192.Steps = list269; reference202 = obj192; questRoot31.QuestSequence = list265; @@ -84249,14 +101618,17 @@ public static class AssemblyQuestLoader num = 1; List list270 = new List(num); CollectionsMarshal.SetCount(list270, num); - CollectionsMarshal.AsSpan(list270)[0] = "Censored"; + Span span270 = CollectionsMarshal.AsSpan(list270); + index = 0; + span270[index] = "Censored"; questRoot32.Author = list270; questRoot32.Comment = "FATE"; - num = 2; - List list271 = new List(num); - CollectionsMarshal.SetCount(list271, num); - Span span108 = CollectionsMarshal.AsSpan(list271); - ref QuestSequence reference203 = ref span108[0]; + index = 2; + List list271 = new List(index); + CollectionsMarshal.SetCount(list271, index); + Span span271 = CollectionsMarshal.AsSpan(list271); + num = 0; + ref QuestSequence reference203 = ref span271[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -84264,7 +101636,9 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -84283,21 +101657,24 @@ public static class AssemblyQuestLoader }; obj193.Steps = list272; reference203 = obj193; - ref QuestSequence reference204 = ref span108[1]; + num++; + ref QuestSequence reference204 = ref span271[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - Span span109 = CollectionsMarshal.AsSpan(list273); - span109[0] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(-184.54332f, -42.06609f, -259.07843f), 138) + index2 = 3; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span273[num2] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(-184.54332f, -42.06609f, -259.07843f), 138) { Fly = true, Comment = "Do the FATE" }; - span109[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) + num2++; + span273[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) { Fly = true, SkipConditions = new SkipConditions @@ -84313,7 +101690,8 @@ public static class AssemblyQuestLoader } } }; - span109[2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + num2++; + span273[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj194.Steps = list273; reference204 = obj194; questRoot32.QuestSequence = list271; @@ -84323,13 +101701,16 @@ public static class AssemblyQuestLoader num = 1; List list274 = new List(num); CollectionsMarshal.SetCount(list274, num); - CollectionsMarshal.AsSpan(list274)[0] = "Censored"; + Span span274 = CollectionsMarshal.AsSpan(list274); + index = 0; + span274[index] = "Censored"; questRoot33.Author = list274; - num = 3; - List list275 = new List(num); - CollectionsMarshal.SetCount(list275, num); - Span span110 = CollectionsMarshal.AsSpan(list275); - ref QuestSequence reference205 = ref span110[0]; + index = 3; + List list275 = new List(index); + CollectionsMarshal.SetCount(list275, index); + Span span275 = CollectionsMarshal.AsSpan(list275); + num = 0; + ref QuestSequence reference205 = ref span275[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -84337,7 +101718,9 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + Span span276 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span276[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -84356,115 +101739,147 @@ public static class AssemblyQuestLoader }; obj195.Steps = list276; reference205 = obj195; - ref QuestSequence reference206 = ref span110[1]; + num++; + ref QuestSequence reference206 = ref span275[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - Span span111 = CollectionsMarshal.AsSpan(list277); - ref QuestStep reference207 = ref span111[0]; + index2 = 4; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + ref QuestStep reference207 = ref span277[num2]; QuestStep obj197 = new QuestStep(EInteractionType.Combat, 2003830u, new Vector3(-270.1305f, -43.2594f, -260.3647f), 138) { Fly = true, ItemId = 2001265u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - CollectionsMarshal.AsSpan(list278)[0] = 766u; + index3 = 1; + List list278 = new List(index3); + CollectionsMarshal.SetCount(list278, index3); + Span span278 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span278[num3] = 766u; obj197.KillEnemyDataIds = list278; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list279 = new List(num3); CollectionsMarshal.SetCount(list279, num3); - Span span112 = CollectionsMarshal.AsSpan(list279); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span279 = CollectionsMarshal.AsSpan(list279); + index3 = 0; + span279[index3] = null; + index3++; + span279[index3] = null; + index3++; + span279[index3] = null; + index3++; + span279[index3] = null; + index3++; + span279[index3] = null; + index3++; + span279[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list279; skipConditions2.StepIf = skipStepConditions2; obj197.SkipConditions = skipConditions2; reference207 = obj197; - ref QuestStep reference208 = ref span111[1]; + num2++; + ref QuestStep reference208 = ref span277[num2]; QuestStep obj198 = new QuestStep(EInteractionType.Combat, 2003829u, new Vector3(-218.49402f, -39.414062f, -332.29572f), 138) { Fly = true, ItemId = 2001265u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list280 = new List(num3); - CollectionsMarshal.SetCount(list280, num3); - CollectionsMarshal.AsSpan(list280)[0] = 766u; + index3 = 1; + List list280 = new List(index3); + CollectionsMarshal.SetCount(list280, index3); + Span span280 = CollectionsMarshal.AsSpan(list280); + num3 = 0; + span280[num3] = 766u; obj198.KillEnemyDataIds = list280; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); num3 = 6; List list281 = new List(num3); CollectionsMarshal.SetCount(list281, num3); - Span span113 = CollectionsMarshal.AsSpan(list281); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span281 = CollectionsMarshal.AsSpan(list281); + index3 = 0; + span281[index3] = null; + index3++; + span281[index3] = null; + index3++; + span281[index3] = null; + index3++; + span281[index3] = null; + index3++; + span281[index3] = null; + index3++; + span281[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list281; skipConditions3.StepIf = skipStepConditions3; obj198.SkipConditions = skipConditions3; reference208 = obj198; - ref QuestStep reference209 = ref span111[2]; + num2++; + ref QuestStep reference209 = ref span277[num2]; QuestStep obj199 = new QuestStep(EInteractionType.Combat, 2003828u, new Vector3(-159.53314f, -41.397766f, -269.70325f), 138) { Fly = true, ItemId = 2001265u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = 766u; + index3 = 1; + List list282 = new List(index3); + CollectionsMarshal.SetCount(list282, index3); + Span span282 = CollectionsMarshal.AsSpan(list282); + num3 = 0; + span282[num3] = 766u; obj199.KillEnemyDataIds = list282; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 6; List list283 = new List(num3); CollectionsMarshal.SetCount(list283, num3); - Span span114 = CollectionsMarshal.AsSpan(list283); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span283 = CollectionsMarshal.AsSpan(list283); + index3 = 0; + span283[index3] = null; + index3++; + span283[index3] = null; + index3++; + span283[index3] = null; + index3++; + span283[index3] = null; + index3++; + span283[index3] = null; + index3++; + span283[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list283; skipConditions4.StepIf = skipStepConditions4; obj199.SkipConditions = skipConditions4; reference209 = obj199; - ref QuestStep reference210 = ref span111[3]; + num2++; + ref QuestStep reference210 = ref span277[num2]; QuestStep obj200 = new QuestStep(EInteractionType.Combat, 2003831u, new Vector3(-192.82831f, -40.756897f, -211.53589f), 138) { Fly = true, ItemId = 2001265u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = 766u; + index3 = 1; + List list284 = new List(index3); + CollectionsMarshal.SetCount(list284, index3); + Span span284 = CollectionsMarshal.AsSpan(list284); + num3 = 0; + span284[num3] = 766u; obj200.KillEnemyDataIds = list284; reference210 = obj200; obj196.Steps = list277; reference206 = obj196; - ref QuestSequence reference211 = ref span110[2]; + num++; + ref QuestSequence reference211 = ref span275[num]; QuestSequence obj201 = new QuestSequence { Sequence = byte.MaxValue @@ -84472,8 +101887,9 @@ public static class AssemblyQuestLoader num2 = 2; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span115 = CollectionsMarshal.AsSpan(list285); - span115[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) + Span span285 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span285[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) { Fly = true, SkipConditions = new SkipConditions @@ -84489,7 +101905,8 @@ public static class AssemblyQuestLoader } } }; - span115[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + index2++; + span285[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj201.Steps = list285; reference211 = obj201; questRoot33.QuestSequence = list275; @@ -84499,21 +101916,26 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "Censored"; + Span span286 = CollectionsMarshal.AsSpan(list286); + index = 0; + span286[index] = "Censored"; questRoot34.Author = list286; - num = 3; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span116 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference212 = ref span116[0]; + index = 3; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + Span span287 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference212 = ref span287[num]; QuestSequence obj202 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + Span span288 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span288[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -84532,7 +101954,8 @@ public static class AssemblyQuestLoader }; obj202.Steps = list288; reference212 = obj202; - ref QuestSequence reference213 = ref span116[1]; + num++; + ref QuestSequence reference213 = ref span287[num]; QuestSequence obj203 = new QuestSequence { Sequence = 1 @@ -84540,8 +101963,9 @@ public static class AssemblyQuestLoader num2 = 2; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span117 = CollectionsMarshal.AsSpan(list289); - ref QuestStep reference214 = ref span117[0]; + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + ref QuestStep reference214 = ref span289[index2]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138) { SkipConditions = new SkipConditions @@ -84560,36 +101984,43 @@ public static class AssemblyQuestLoader num3 = 1; List list290 = new List(num3); CollectionsMarshal.SetCount(list290, num3); - CollectionsMarshal.AsSpan(list290)[0] = new DialogueChoice + Span span290 = CollectionsMarshal.AsSpan(list290); + index3 = 0; + span290[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH210_01399_Q1_000_000") }; obj204.DialogueChoices = list290; reference214 = obj204; - ref QuestStep reference215 = ref span117[1]; + index2++; + ref QuestStep reference215 = ref span289[index2]; QuestStep obj205 = new QuestStep(EInteractionType.Combat, null, new Vector3(-864.4419f, -25.652748f, 928.53f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list291 = new List(num3); - CollectionsMarshal.SetCount(list291, num3); - CollectionsMarshal.AsSpan(list291)[0] = 767u; + index3 = 1; + List list291 = new List(index3); + CollectionsMarshal.SetCount(list291, index3); + Span span291 = CollectionsMarshal.AsSpan(list291); + num3 = 0; + span291[num3] = 767u; obj205.KillEnemyDataIds = list291; reference215 = obj205; obj203.Steps = list289; reference213 = obj203; - ref QuestSequence reference216 = ref span116[2]; + num++; + ref QuestSequence reference216 = ref span287[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - Span span118 = CollectionsMarshal.AsSpan(list292); - span118[0] = new QuestStep(EInteractionType.Interact, 2004013u, new Vector3(-883.36005f, -29.251587f, 929.2285f), 138) + index2 = 2; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + Span span292 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span292[num2] = new QuestStep(EInteractionType.Interact, 2004013u, new Vector3(-883.36005f, -29.251587f, 929.2285f), 138) { TargetTerritoryId = (ushort)138, SkipConditions = new SkipConditions @@ -84605,7 +102036,8 @@ public static class AssemblyQuestLoader } } }; - span118[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + num2++; + span292[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj206.Steps = list292; reference216 = obj206; questRoot34.QuestSequence = list287; @@ -84619,13 +102051,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -84633,19 +102068,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, null, new Vector3(-353.3627f, -39.6834f, -352.8219f), 138) { StopDistance = 1f, @@ -84655,31 +102094,40 @@ public static class AssemblyQuestLoader int num3 = 2; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new ComplexCombatData + Span span5 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span5[num4] = new ComplexCombatData { DataId = 765u, MinimumKillCount = 1u }; - span3[1] = new ComplexCombatData + num4++; + span5[num4] = new ComplexCombatData { DataId = 2887u, MinimumKillCount = 1u }; obj3.ComplexCombatData = list5; - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj3.CompletionQuestVariablesFlags = list6; reference3 = obj3; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span4[num2]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, null, new Vector3(-353.3627f, -39.6834f, -352.8219f), 138) { StopDistance = 20f, @@ -84688,31 +102136,40 @@ public static class AssemblyQuestLoader num3 = 2; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = new ComplexCombatData + Span span7 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span7[num4] = new ComplexCombatData { DataId = 766u, MinimumKillCount = 1u }; - span5[1] = new ComplexCombatData + num4++; + span7[num4] = new ComplexCombatData { DataId = 2886u, MinimumKillCount = 1u }; obj4.ComplexCombatData = list7; - num3 = 6; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span6 = CollectionsMarshal.AsSpan(list8); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + Span span8 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list8; reference4 = obj4; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span4[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Combat, null, new Vector3(-353.3627f, -39.6834f, -352.8219f), 138) { StopDistance = 20f, @@ -84721,33 +102178,42 @@ public static class AssemblyQuestLoader num3 = 2; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span7 = CollectionsMarshal.AsSpan(list9); - span7[0] = new ComplexCombatData + Span span9 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span9[num4] = new ComplexCombatData { DataId = 768u, MinimumKillCount = 1u }; - span7[1] = new ComplexCombatData + num4++; + span9[num4] = new ComplexCombatData { DataId = 2888u, MinimumKillCount = 1u }; obj5.ComplexCombatData = list9; - num3 = 6; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - Span span8 = CollectionsMarshal.AsSpan(list10); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + Span span10 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj5.CompletionQuestVariablesFlags = list10; reference5 = obj5; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -84755,7 +102221,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true }; @@ -84768,21 +102236,26 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "Censored"; + Span span12 = CollectionsMarshal.AsSpan(list12); + index = 0; + span12[index] = "Censored"; questRoot2.Author = list12; - num = 3; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span9 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference7 = ref span9[0]; + index = 3; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference7 = ref span13[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -84801,7 +102274,8 @@ public static class AssemblyQuestLoader }; obj7.Steps = list14; reference7 = obj7; - ref QuestSequence reference8 = ref span9[1]; + num++; + ref QuestSequence reference8 = ref span13[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -84809,7 +102283,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list15)[0]; + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref QuestStep reference9 = ref span15[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(-385.82654f, -38.97124f, -341.03537f), 138) { Fly = true, @@ -84818,20 +102294,25 @@ public static class AssemblyQuestLoader num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = 2837u; + Span span16 = CollectionsMarshal.AsSpan(list16); + num4 = 0; + span16[num4] = 2837u; obj9.KillEnemyDataIds = list16; reference9 = obj9; obj8.Steps = list15; reference8 = obj8; - ref QuestSequence reference10 = ref span9[2]; + num++; + ref QuestSequence reference10 = ref span13[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true }; @@ -84850,13 +102331,16 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "Censored"; + Span span18 = CollectionsMarshal.AsSpan(list18); + index = 0; + span18[index] = "Censored"; questRoot3.Author = list18; - num = 3; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span10 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference11 = ref span10[0]; + index = 3; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + Span span19 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference11 = ref span19[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -84864,7 +102348,9 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -84883,30 +102369,34 @@ public static class AssemblyQuestLoader }; obj11.Steps = list20; reference11 = obj11; - ref QuestSequence reference12 = ref span10[1]; + num++; + ref QuestSequence reference12 = ref span19[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - Span span11 = CollectionsMarshal.AsSpan(list21); - ref QuestStep reference13 = ref span11[0]; + index2 = 3; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + ref QuestStep reference13 = ref span21[num2]; QuestStep obj13 = new QuestStep(EInteractionType.Combat, null, new Vector3(-423.56384f, -40.76118f, -220.52809f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span12 = CollectionsMarshal.AsSpan(list22); - span12[0] = new ComplexCombatData + num4 = 2; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = new ComplexCombatData { DataId = 773u, MinimumKillCount = 1u }; - span12[1] = new ComplexCombatData + num3++; + span22[num3] = new ComplexCombatData { DataId = 2878u, MinimumKillCount = 1u @@ -84915,30 +102405,39 @@ public static class AssemblyQuestLoader num3 = 6; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - Span span13 = CollectionsMarshal.AsSpan(list23); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span23 = CollectionsMarshal.AsSpan(list23); + num4 = 0; + span23[num4] = null; + num4++; + span23[num4] = null; + num4++; + span23[num4] = null; + num4++; + span23[num4] = null; + num4++; + span23[num4] = null; + num4++; + span23[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj13.CompletionQuestVariablesFlags = list23; reference13 = obj13; - ref QuestStep reference14 = ref span11[1]; + num2++; + ref QuestStep reference14 = ref span21[num2]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, null, new Vector3(-423.56384f, -40.76118f, -220.52809f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - Span span14 = CollectionsMarshal.AsSpan(list24); - span14[0] = new ComplexCombatData + num4 = 2; + List list24 = new List(num4); + CollectionsMarshal.SetCount(list24, num4); + Span span24 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span24[num3] = new ComplexCombatData { DataId = 776u, MinimumKillCount = 1u }; - span14[1] = new ComplexCombatData + num3++; + span24[num3] = new ComplexCombatData { DataId = 2879u, MinimumKillCount = 1u @@ -84947,30 +102446,39 @@ public static class AssemblyQuestLoader num3 = 6; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span15 = CollectionsMarshal.AsSpan(list25); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span25 = CollectionsMarshal.AsSpan(list25); + num4 = 0; + span25[num4] = null; + num4++; + span25[num4] = null; + num4++; + span25[num4] = null; + num4++; + span25[num4] = null; + num4++; + span25[num4] = null; + num4++; + span25[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj14.CompletionQuestVariablesFlags = list25; reference14 = obj14; - ref QuestStep reference15 = ref span11[2]; + num2++; + ref QuestStep reference15 = ref span21[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, null, new Vector3(-423.56384f, -40.76118f, -220.52809f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span16 = CollectionsMarshal.AsSpan(list26); - span16[0] = new ComplexCombatData + num4 = 2; + List list26 = new List(num4); + CollectionsMarshal.SetCount(list26, num4); + Span span26 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span26[num3] = new ComplexCombatData { DataId = 774u, MinimumKillCount = 1u }; - span16[1] = new ComplexCombatData + num3++; + span26[num3] = new ComplexCombatData { DataId = 2880u, MinimumKillCount = 1u @@ -84979,7 +102487,8 @@ public static class AssemblyQuestLoader reference15 = obj15; obj12.Steps = list21; reference12 = obj12; - ref QuestSequence reference16 = ref span10[2]; + num++; + ref QuestSequence reference16 = ref span19[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -84987,7 +102496,9 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true }; @@ -85000,21 +102511,26 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "Censored"; + Span span28 = CollectionsMarshal.AsSpan(list28); + index = 0; + span28[index] = "Censored"; questRoot4.Author = list28; - num = 5; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span17 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference17 = ref span17[0]; + index = 5; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + Span span29 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference17 = ref span29[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span30[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -85033,7 +102549,8 @@ public static class AssemblyQuestLoader }; obj17.Steps = list30; reference17 = obj17; - ref QuestSequence reference18 = ref span17[1]; + num++; + ref QuestSequence reference18 = ref span29[num]; QuestSequence obj18 = new QuestSequence { Sequence = 1 @@ -85041,7 +102558,9 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list31)[0]; + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + ref QuestStep reference19 = ref span31[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(-379.54794f, -36.814743f, -295.2606f), 138) { Fly = true, @@ -85050,37 +102569,46 @@ public static class AssemblyQuestLoader num3 = 1; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = 139u; + Span span32 = CollectionsMarshal.AsSpan(list32); + num4 = 0; + span32[num4] = 139u; obj19.KillEnemyDataIds = list32; reference19 = obj19; obj18.Steps = list31; reference18 = obj18; - ref QuestSequence reference20 = ref span17[2]; + num++; + ref QuestSequence reference20 = ref span29[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list33)[0]; + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + ref QuestStep reference21 = ref span33[num2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 2003833u, new Vector3(-500.23654f, -31.23523f, -351.97992f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 3; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span18 = CollectionsMarshal.AsSpan(list34); - span18[0] = 2907u; - span18[1] = 2908u; - span18[2] = 2909u; + num4 = 3; + List list34 = new List(num4); + CollectionsMarshal.SetCount(list34, num4); + Span span34 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span34[num3] = 2907u; + num3++; + span34[num3] = 2908u; + num3++; + span34[num3] = 2909u; obj21.KillEnemyDataIds = list34; reference21 = obj21; obj20.Steps = list33; reference20 = obj20; - ref QuestSequence reference22 = ref span17[3]; + num++; + ref QuestSequence reference22 = ref span29[num]; QuestSequence obj22 = new QuestSequence { Sequence = 3 @@ -85088,21 +102616,26 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.UseItem, 2003864u, new Vector3(-500.23654f, -31.23523f, -351.97992f), 138) + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.UseItem, 2003864u, new Vector3(-500.23654f, -31.23523f, -351.97992f), 138) { ItemId = 2001272u }; obj22.Steps = list35; reference22 = obj22; - ref QuestSequence reference23 = ref span17[4]; + num++; + ref QuestSequence reference23 = ref span29[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true }; @@ -85115,13 +102648,16 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "Censored"; + Span span37 = CollectionsMarshal.AsSpan(list37); + index = 0; + span37[index] = "Censored"; questRoot5.Author = list37; - num = 3; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - Span span19 = CollectionsMarshal.AsSpan(list38); - ref QuestSequence reference24 = ref span19[0]; + index = 3; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + Span span38 = CollectionsMarshal.AsSpan(list38); + num = 0; + ref QuestSequence reference24 = ref span38[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 @@ -85129,7 +102665,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -85148,16 +102686,18 @@ public static class AssemblyQuestLoader }; obj24.Steps = list39; reference24 = obj24; - ref QuestSequence reference25 = ref span19[1]; + num++; + ref QuestSequence reference25 = ref span38[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span20 = CollectionsMarshal.AsSpan(list40); - ref QuestStep reference26 = ref span20[0]; + index2 = 2; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref QuestStep reference26 = ref span40[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138) { SkipConditions = new SkipConditions @@ -85176,28 +102716,33 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = new DialogueChoice + Span span41 = CollectionsMarshal.AsSpan(list41); + num4 = 0; + span41[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH307_01406_Q1_000_000") }; obj26.DialogueChoices = list41; reference26 = obj26; - ref QuestStep reference27 = ref span20[1]; + num2++; + ref QuestStep reference27 = ref span40[num2]; QuestStep obj27 = new QuestStep(EInteractionType.Combat, null, new Vector3(-812.7521f, -25.647753f, 975.4917f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span21 = CollectionsMarshal.AsSpan(list42); - span21[0] = new ComplexCombatData + num4 = 2; + List list42 = new List(num4); + CollectionsMarshal.SetCount(list42, num4); + Span span42 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span42[num3] = new ComplexCombatData { DataId = 773u, MinimumKillCount = 1u }; - span21[1] = new ComplexCombatData + num3++; + span42[num3] = new ComplexCombatData { DataId = 2910u, MinimumKillCount = 1u @@ -85206,7 +102751,8 @@ public static class AssemblyQuestLoader reference27 = obj27; obj25.Steps = list40; reference25 = obj25; - ref QuestSequence reference28 = ref span19[2]; + num++; + ref QuestSequence reference28 = ref span38[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -85214,8 +102760,9 @@ public static class AssemblyQuestLoader num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span22 = CollectionsMarshal.AsSpan(list43); - span22[0] = new QuestStep(EInteractionType.Interact, 2004014u, new Vector3(-826.84064f, -29.34314f, 971.4656f), 138) + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.Interact, 2004014u, new Vector3(-826.84064f, -29.34314f, 971.4656f), 138) { TargetTerritoryId = (ushort)138, SkipConditions = new SkipConditions @@ -85231,7 +102778,8 @@ public static class AssemblyQuestLoader } } }; - span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); + index2++; + span43[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); obj28.Steps = list43; reference28 = obj28; questRoot5.QuestSequence = list38; @@ -85241,21 +102789,26 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "Censored"; + Span span44 = CollectionsMarshal.AsSpan(list44); + index = 0; + span44[index] = "Censored"; questRoot6.Author = list44; - num = 3; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span23 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference29 = ref span23[0]; + index = 3; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + Span span45 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference29 = ref span45[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -85274,7 +102827,8 @@ public static class AssemblyQuestLoader }; obj29.Steps = list46; reference29 = obj29; - ref QuestSequence reference30 = ref span23[1]; + num++; + ref QuestSequence reference30 = ref span45[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 @@ -85282,8 +102836,9 @@ public static class AssemblyQuestLoader num2 = 5; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span24 = CollectionsMarshal.AsSpan(list47); - ref QuestStep reference31 = ref span24[0]; + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + ref QuestStep reference31 = ref span47[index2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138) { SkipConditions = new SkipConditions @@ -85302,68 +102857,94 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new DialogueChoice + Span span48 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span48[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH308_01407_Q1_000_000") }; obj31.DialogueChoices = list48; reference31 = obj31; - ref QuestStep reference32 = ref span24[1]; + index2++; + ref QuestStep reference32 = ref span47[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1008914u, new Vector3(-846.8605f, -25.652748f, 962.0354f), 138); - num3 = 6; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - Span span25 = CollectionsMarshal.AsSpan(list49); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list49 = new List(num4); + CollectionsMarshal.SetCount(list49, num4); + Span span49 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span49[num3] = null; + num3++; + span49[num3] = null; + num3++; + span49[num3] = null; + num3++; + span49[num3] = null; + num3++; + span49[num3] = null; + num3++; + span49[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list49; reference32 = questStep; - ref QuestStep reference33 = ref span24[2]; + index2++; + ref QuestStep reference33 = ref span47[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1008915u, new Vector3(-862.8214f, -20.652752f, 966.308f), 138); num3 = 6; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - Span span26 = CollectionsMarshal.AsSpan(list50); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span50 = CollectionsMarshal.AsSpan(list50); + num4 = 0; + span50[num4] = null; + num4++; + span50[num4] = null; + num4++; + span50[num4] = null; + num4++; + span50[num4] = null; + num4++; + span50[num4] = null; + num4++; + span50[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list50; reference33 = questStep2; - ref QuestStep reference34 = ref span24[3]; + index2++; + ref QuestStep reference34 = ref span47[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1008912u, new Vector3(-821.40845f, -25.647757f, 974.853f), 138); - num3 = 6; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - Span span27 = CollectionsMarshal.AsSpan(list51); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list51 = new List(num4); + CollectionsMarshal.SetCount(list51, num4); + Span span51 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span51[num3] = null; + num3++; + span51[num3] = null; + num3++; + span51[num3] = null; + num3++; + span51[num3] = null; + num3++; + span51[num3] = null; + num3++; + span51[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list51; reference34 = questStep3; - span24[4] = new QuestStep(EInteractionType.Interact, 1008913u, new Vector3(-795.4986f, -23.649637f, 972.3506f), 138); + index2++; + span47[index2] = new QuestStep(EInteractionType.Interact, 1008913u, new Vector3(-795.4986f, -23.649637f, 972.3506f), 138); obj30.Steps = list47; reference30 = obj30; - ref QuestSequence reference35 = ref span23[2]; + num++; + ref QuestSequence reference35 = ref span45[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - Span span28 = CollectionsMarshal.AsSpan(list52); - span28[0] = new QuestStep(EInteractionType.Interact, 2004014u, new Vector3(-826.84064f, -29.34314f, 971.4656f), 138) + index2 = 2; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.Interact, 2004014u, new Vector3(-826.84064f, -29.34314f, 971.4656f), 138) { TargetTerritoryId = (ushort)138, SkipConditions = new SkipConditions @@ -85379,7 +102960,8 @@ public static class AssemblyQuestLoader } } }; - span28[1] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); + num2++; + span52[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); obj32.Steps = list52; reference35 = obj32; questRoot6.QuestSequence = list45; @@ -85389,14 +102971,17 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "Censored"; + Span span53 = CollectionsMarshal.AsSpan(list53); + index = 0; + span53[index] = "Censored"; questRoot7.Author = list53; questRoot7.Comment = "FATE"; - num = 2; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span29 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference36 = ref span29[0]; + index = 2; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + Span span54 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference36 = ref span54[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -85404,7 +102989,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -85423,21 +103010,24 @@ public static class AssemblyQuestLoader }; obj33.Steps = list55; reference36 = obj33; - ref QuestSequence reference37 = ref span29[1]; + num++; + ref QuestSequence reference37 = ref span54[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span30 = CollectionsMarshal.AsSpan(list56); - span30[0] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(-396.18066f, -40.36498f, -220.00629f), 138) + index2 = 2; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(-396.18066f, -40.36498f, -220.00629f), 138) { Fly = true, Comment = "Do the FATE" }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + num2++; + span56[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true }; @@ -85450,13 +103040,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "liza"; + Span span57 = CollectionsMarshal.AsSpan(list57); + index = 0; + span57[index] = "liza"; questRoot8.Author = list57; - num = 3; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span31 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference38 = ref span31[0]; + index = 3; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + Span span58 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference38 = ref span58[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -85464,24 +103057,30 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj35.Steps = list59; reference38 = obj35; - ref QuestSequence reference39 = ref span31[1]; + num++; + ref QuestSequence reference39 = ref span58[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj36.Steps = list60; reference39 = obj36; - ref QuestSequence reference40 = ref span31[2]; + num++; + ref QuestSequence reference40 = ref span58[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -85489,7 +103088,9 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008544u, new Vector3(-316.42633f, 12.050298f, -35.385742f), 152) + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008544u, new Vector3(-316.42633f, 12.050298f, -35.385742f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -85503,24 +103104,30 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "liza"; + Span span62 = CollectionsMarshal.AsSpan(list62); + index = 0; + span62[index] = "liza"; questRoot9.Author = list62; - num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span32 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference41 = ref span32[0]; + index = 3; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + Span span63 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference41 = ref span63[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj38.Steps = list64; reference41 = obj38; - ref QuestSequence reference42 = ref span32[1]; + num++; + ref QuestSequence reference42 = ref span63[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -85528,7 +103135,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -85539,15 +103148,18 @@ public static class AssemblyQuestLoader }; obj39.Steps = list65; reference42 = obj39; - ref QuestSequence reference43 = ref span32[2]; + num++; + ref QuestSequence reference43 = ref span63[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005409u, new Vector3(159.62463f, 8.974117f, 582.7573f), 135) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005409u, new Vector3(159.62463f, 8.974117f, 582.7573f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks @@ -85561,14 +103173,17 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "liza"; + Span span67 = CollectionsMarshal.AsSpan(list67); + index = 0; + span67[index] = "liza"; questRoot10.Author = list67; questRoot10.Comment = "Unlocks Mastercraft I/II books"; - num = 2; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span33 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference44 = ref span33[0]; + index = 2; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + Span span68 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference44 = ref span68[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -85576,8 +103191,9 @@ public static class AssemblyQuestLoader num2 = 2; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span34 = CollectionsMarshal.AsSpan(list69); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.076426f, 28.999966f, -729.6976f), 156) + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.076426f, 28.999966f, -729.6976f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -85588,18 +103204,22 @@ public static class AssemblyQuestLoader } } }; - span34[1] = new QuestStep(EInteractionType.AcceptQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156); + index2++; + span69[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156); obj41.Steps = list69; reference44 = obj41; - ref QuestSequence reference45 = ref span33[1]; + num++; + ref QuestSequence reference45 = ref span68[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156); obj42.Steps = list70; reference45 = obj42; questRoot10.QuestSequence = list68; @@ -85609,13 +103229,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "kaiser"; + Span span71 = CollectionsMarshal.AsSpan(list71); + index = 0; + span71[index] = "kaiser"; questRoot11.Author = list71; - num = 5; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span35 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference46 = ref span35[0]; + index = 5; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + Span span72 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference46 = ref span72[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -85623,8 +103246,9 @@ public static class AssemblyQuestLoader num2 = 3; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span36 = CollectionsMarshal.AsSpan(list73); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(54.415092f, -8.047034f, 104.69259f), 132) + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(54.415092f, -8.047034f, 104.69259f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -85635,7 +103259,8 @@ public static class AssemblyQuestLoader } } }; - span36[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.72773f, -8f, 104.152405f), 132) + index2++; + span73[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.72773f, -8f, 104.152405f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -85646,7 +103271,8 @@ public static class AssemblyQuestLoader } } }; - span36[2] = new QuestStep(EInteractionType.AcceptQuest, 1000375u, new Vector3(42.313232f, -8f, 96.54382f), 132) + index2++; + span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000375u, new Vector3(42.313232f, -8f, 96.54382f), 132) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -85660,16 +103286,18 @@ public static class AssemblyQuestLoader }; obj43.Steps = list73; reference46 = obj43; - ref QuestSequence reference47 = ref span35[1]; + num++; + ref QuestSequence reference47 = ref span72[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - Span span37 = CollectionsMarshal.AsSpan(list74); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(40.8096f, -8f, 104.92199f), 132) + index2 = 2; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(40.8096f, -8f, 104.92199f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -85689,7 +103317,8 @@ public static class AssemblyQuestLoader } } }; - span37[1] = new QuestStep(EInteractionType.Interact, 1007792u, new Vector3(-87.84625f, -3.3081923f, 41.70288f), 132) + num2++; + span74[num2] = new QuestStep(EInteractionType.Interact, 1007792u, new Vector3(-87.84625f, -3.3081923f, 41.70288f), 132) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -85703,7 +103332,8 @@ public static class AssemblyQuestLoader }; obj44.Steps = list74; reference47 = obj44; - ref QuestSequence reference48 = ref span35[2]; + num++; + ref QuestSequence reference48 = ref span72[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 @@ -85711,7 +103341,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132) + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -85725,16 +103357,18 @@ public static class AssemblyQuestLoader }; obj45.Steps = list75; reference48 = obj45; - ref QuestSequence reference49 = ref span35[3]; + num++; + ref QuestSequence reference49 = ref span72[num]; QuestSequence obj46 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span38 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference50 = ref span38[0]; + index2 = 3; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + ref QuestStep reference50 = ref span76[num2]; QuestStep obj47 = new QuestStep(EInteractionType.Interact, 1007795u, new Vector3(28.94629f, 8.45142f, -96.421814f), 133) { StopDistance = 5f, @@ -85755,16 +103389,23 @@ public static class AssemblyQuestLoader num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - Span span39 = CollectionsMarshal.AsSpan(list77); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span77 = CollectionsMarshal.AsSpan(list77); + num4 = 0; + span77[num4] = null; + num4++; + span77[num4] = null; + num4++; + span77[num4] = null; + num4++; + span77[num4] = null; + num4++; + span77[num4] = null; + num4++; + span77[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj47.CompletionQuestVariablesFlags = list77; reference50 = obj47; - ref QuestStep reference51 = ref span38[1]; + num2++; + ref QuestStep reference51 = ref span76[num2]; QuestStep obj48 = new QuestStep(EInteractionType.Interact, 1007794u, new Vector3(-124.864624f, 6.567382f, -120.74469f), 133) { StopDistance = 5f, @@ -85774,19 +103415,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span40 = CollectionsMarshal.AsSpan(list78); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list78 = new List(num4); + CollectionsMarshal.SetCount(list78, num4); + Span span78 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj48.CompletionQuestVariablesFlags = list78; reference51 = obj48; - ref QuestStep reference52 = ref span38[2]; + num2++; + ref QuestStep reference52 = ref span76[num2]; QuestStep obj49 = new QuestStep(EInteractionType.Interact, 1007793u, new Vector3(-143.3891f, 4.123518f, -29.312622f), 133) { StopDistance = 5f, @@ -85799,18 +103447,25 @@ public static class AssemblyQuestLoader num3 = 6; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - Span span41 = CollectionsMarshal.AsSpan(list79); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span79 = CollectionsMarshal.AsSpan(list79); + num4 = 0; + span79[num4] = null; + num4++; + span79[num4] = null; + num4++; + span79[num4] = null; + num4++; + span79[num4] = null; + num4++; + span79[num4] = null; + num4++; + span79[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj49.CompletionQuestVariablesFlags = list79; reference52 = obj49; obj46.Steps = list76; reference49 = obj46; - ref QuestSequence reference53 = ref span35[4]; + num++; + ref QuestSequence reference53 = ref span72[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue @@ -85818,9 +103473,11 @@ public static class AssemblyQuestLoader num2 = 2; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span42 = CollectionsMarshal.AsSpan(list80); - span42[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-128.09769f, 5.6480865f, -36.499104f), 133); - span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1007792u, new Vector3(-87.84625f, -3.3081923f, 41.70288f), 132) + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-128.09769f, 5.6480865f, -36.499104f), 133); + index2++; + span80[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007792u, new Vector3(-87.84625f, -3.3081923f, 41.70288f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -85845,24 +103502,30 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "liza"; + Span span81 = CollectionsMarshal.AsSpan(list81); + index = 0; + span81[index] = "liza"; questRoot12.Author = list81; - num = 4; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span43 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference54 = ref span43[0]; + index = 4; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + Span span82 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference54 = ref span82[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003505u, new Vector3(-186.20587f, 16f, 56.931396f), 129); + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003505u, new Vector3(-186.20587f, 16f, 56.931396f), 129); obj51.Steps = list83; reference54 = obj51; - ref QuestSequence reference55 = ref span43[1]; + num++; + ref QuestSequence reference55 = ref span82[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -85870,8 +103533,9 @@ public static class AssemblyQuestLoader num2 = 3; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span44 = CollectionsMarshal.AsSpan(list84); - ref QuestStep reference56 = ref span44[0]; + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + ref QuestStep reference56 = ref span84[index2]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1007961u, new Vector3(-189.83752f, 0.9999907f, 205.61523f), 129) { AethernetShortcut = new AethernetShortcut @@ -85880,66 +103544,91 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - num3 = 6; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - Span span45 = CollectionsMarshal.AsSpan(list85); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list85 = new List(num4); + CollectionsMarshal.SetCount(list85, num4); + Span span85 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span85[num3] = null; + num3++; + span85[num3] = null; + num3++; + span85[num3] = null; + num3++; + span85[num3] = null; + num3++; + span85[num3] = null; + num3++; + span85[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj53.CompletionQuestVariablesFlags = list85; reference56 = obj53; - ref QuestStep reference57 = ref span44[1]; + index2++; + ref QuestStep reference57 = ref span84[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1007962u, new Vector3(-170.39752f, 4f, 180.80408f), 129); num3 = 6; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span46 = CollectionsMarshal.AsSpan(list86); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span86 = CollectionsMarshal.AsSpan(list86); + num4 = 0; + span86[num4] = null; + num4++; + span86[num4] = null; + num4++; + span86[num4] = null; + num4++; + span86[num4] = null; + num4++; + span86[num4] = null; + num4++; + span86[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list86; reference57 = questStep4; - ref QuestStep reference58 = ref span44[2]; + index2++; + ref QuestStep reference58 = ref span84[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1007960u, new Vector3(-154.16199f, 3.9999826f, 186.26685f), 129); - num3 = 6; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - Span span47 = CollectionsMarshal.AsSpan(list87); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list87 = new List(num4); + CollectionsMarshal.SetCount(list87, num4); + Span span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list87; reference58 = questStep5; obj52.Steps = list84; reference55 = obj52; - ref QuestSequence reference59 = ref span43[2]; + num++; + ref QuestSequence reference59 = ref span82[num]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span48 = CollectionsMarshal.AsSpan(list88); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-273.7194f, 11.32725f, 188.82817f), 129); - span48[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-268.3206f, 11.852169f, 189.21284f), 129) + index2 = 3; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-273.7194f, 11.32725f, 188.82817f), 129); + num2++; + span88[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-268.3206f, 11.852169f, 189.21284f), 129) { DisableNavmesh = true }; - span48[2] = new QuestStep(EInteractionType.Interact, 1007797u, new Vector3(-260.73096f, 16.35222f, 194.17102f), 129); + num2++; + span88[num2] = new QuestStep(EInteractionType.Interact, 1007797u, new Vector3(-260.73096f, 16.35222f, 194.17102f), 129); obj54.Steps = list88; reference59 = obj54; - ref QuestSequence reference60 = ref span43[3]; + num++; + ref QuestSequence reference60 = ref span82[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -85947,9 +103636,11 @@ public static class AssemblyQuestLoader num2 = 2; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span49 = CollectionsMarshal.AsSpan(list89); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-273.7194f, 11.32725f, 188.82817f), 129); - span49[1] = new QuestStep(EInteractionType.CompleteQuest, 1003505u, new Vector3(-186.20587f, 16f, 56.931396f), 129) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-273.7194f, 11.32725f, 188.82817f), 129); + index2++; + span89[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003505u, new Vector3(-186.20587f, 16f, 56.931396f), 129) { AethernetShortcut = new AethernetShortcut { @@ -85966,21 +103657,26 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "WigglyMuffin"; + Span span90 = CollectionsMarshal.AsSpan(list90); + index = 0; + span90[index] = "WigglyMuffin"; questRoot13.Author = list90; - num = 4; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span50 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference61 = ref span50[0]; + index = 4; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + Span span91 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference61 = ref span91[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007799u, new Vector3(-21.042236f, 10.020653f, -70.603516f), 130) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.AcceptQuest, 1007799u, new Vector3(-21.042236f, 10.020653f, -70.603516f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -85993,7 +103689,8 @@ public static class AssemblyQuestLoader }; obj56.Steps = list92; reference61 = obj56; - ref QuestSequence reference62 = ref span50[1]; + num++; + ref QuestSequence reference62 = ref span91[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 @@ -86001,8 +103698,9 @@ public static class AssemblyQuestLoader num2 = 4; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span51 = CollectionsMarshal.AsSpan(list93); - ref QuestStep reference63 = ref span51[0]; + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + ref QuestStep reference63 = ref span93[index2]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) { TargetTerritoryId = (ushort)131 @@ -86010,7 +103708,9 @@ public static class AssemblyQuestLoader num3 = 1; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = new DialogueChoice + Span span94 = CollectionsMarshal.AsSpan(list94); + num4 = 0; + span94[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -86018,21 +103718,29 @@ public static class AssemblyQuestLoader }; obj58.DialogueChoices = list94; reference63 = obj58; - ref QuestStep reference64 = ref span51[1]; + index2++; + ref QuestStep reference64 = ref span93[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1007801u, new Vector3(50.247925f, 34f, -35.568848f), 131); - num3 = 6; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - Span span52 = CollectionsMarshal.AsSpan(list95); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num4 = 6; + List list95 = new List(num4); + CollectionsMarshal.SetCount(list95, num4); + Span span95 = CollectionsMarshal.AsSpan(list95); + num3 = 0; + span95[num3] = null; + num3++; + span95[num3] = null; + num3++; + span95[num3] = null; + num3++; + span95[num3] = null; + num3++; + span95[num3] = null; + num3++; + span95[num3] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list95; reference64 = questStep6; - ref QuestStep reference65 = ref span51[2]; + index2++; + ref QuestStep reference65 = ref span93[index2]; QuestStep obj59 = new QuestStep(EInteractionType.Interact, 1001697u, new Vector3(98.55798f, 12.279275f, 54.795166f), 131) { AethernetShortcut = new AethernetShortcut @@ -86044,16 +103752,23 @@ public static class AssemblyQuestLoader num3 = 6; List list96 = new List(num3); CollectionsMarshal.SetCount(list96, num3); - Span span53 = CollectionsMarshal.AsSpan(list96); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); + Span span96 = CollectionsMarshal.AsSpan(list96); + num4 = 0; + span96[num4] = null; + num4++; + span96[num4] = null; + num4++; + span96[num4] = null; + num4++; + span96[num4] = null; + num4++; + span96[num4] = null; + num4++; + span96[num4] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); obj59.CompletionQuestVariablesFlags = list96; reference65 = obj59; - span51[3] = new QuestStep(EInteractionType.Interact, 1007800u, new Vector3(6.5460815f, 15.000006f, -1.3275757f), 131) + index2++; + span93[index2] = new QuestStep(EInteractionType.Interact, 1007800u, new Vector3(6.5460815f, 15.000006f, -1.3275757f), 131) { AethernetShortcut = new AethernetShortcut { @@ -86063,15 +103778,18 @@ public static class AssemblyQuestLoader }; obj57.Steps = list93; reference62 = obj57; - ref QuestSequence reference66 = ref span50[2]; + num++; + ref QuestSequence reference66 = ref span91[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1007798u, new Vector3(-13.7178955f, 34.022892f, -51.86548f), 131) + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span97[num2] = new QuestStep(EInteractionType.Interact, 1007798u, new Vector3(-13.7178955f, 34.022892f, -51.86548f), 131) { AethernetShortcut = new AethernetShortcut { @@ -86081,7 +103799,8 @@ public static class AssemblyQuestLoader }; obj60.Steps = list97; reference66 = obj60; - ref QuestSequence reference67 = ref span50[3]; + num++; + ref QuestSequence reference67 = ref span91[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -86089,7 +103808,9 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007798u, new Vector3(-13.7178955f, 34.022892f, -51.86548f), 131) + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span98[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007798u, new Vector3(-13.7178955f, 34.022892f, -51.86548f), 131) { Emote = EEmote.Dance }; @@ -86102,26 +103823,32 @@ public static class AssemblyQuestLoader num = 2; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span54 = CollectionsMarshal.AsSpan(list99); - span54[0] = "liza"; - span54[1] = "Wigglez"; + Span span99 = CollectionsMarshal.AsSpan(list99); + index = 0; + span99[index] = "liza"; + index++; + span99[index] = "Wigglez"; questRoot14.Author = list99; - num = 3; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span55 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference68 = ref span55[0]; + index = 3; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + Span span100 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference68 = ref span100[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005411u, new Vector3(13.412659f, 40.2f, -13.260071f), 128); + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005411u, new Vector3(13.412659f, 40.2f, -13.260071f), 128); obj62.Steps = list101; reference68 = obj62; - ref QuestSequence reference69 = ref span55[1]; + num++; + ref QuestSequence reference69 = ref span100[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -86129,8 +103856,9 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span56 = CollectionsMarshal.AsSpan(list102); - ref QuestStep reference70 = ref span56[0]; + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + ref QuestStep reference70 = ref span102[index2]; QuestStep obj64 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.99089f, 40f, 69.91187f), 128) { TargetTerritoryId = (ushort)128, @@ -86142,26 +103870,32 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = 128; + num4 = 1; + List list103 = new List(num4); + CollectionsMarshal.SetCount(list103, num4); + Span span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span103[num3] = 128; skipStepConditions.InTerritory = list103; skipConditions.StepIf = skipStepConditions; obj64.SkipConditions = skipConditions; reference70 = obj64; - span56[1] = new QuestStep(EInteractionType.Interact, 1003598u, new Vector3(-12.069946f, 40.00053f, 11.459534f), 128); + index2++; + span102[index2] = new QuestStep(EInteractionType.Interact, 1003598u, new Vector3(-12.069946f, 40.00053f, 11.459534f), 128); obj63.Steps = list102; reference69 = obj63; - ref QuestSequence reference71 = ref span55[2]; + num++; + ref QuestSequence reference71 = ref span100[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005410u, new Vector3(-182.45215f, 1.9999955f, 208.75867f), 129) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005410u, new Vector3(-182.45215f, 1.9999955f, 208.75867f), 129) { AethernetShortcut = new AethernetShortcut { @@ -86178,13 +103912,16 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - CollectionsMarshal.AsSpan(list105)[0] = "liza"; + Span span105 = CollectionsMarshal.AsSpan(list105); + index = 0; + span105[index] = "liza"; questRoot15.Author = list105; - num = 3; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - Span span57 = CollectionsMarshal.AsSpan(list106); - ref QuestSequence reference72 = ref span57[0]; + index = 3; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + Span span106 = CollectionsMarshal.AsSpan(list106); + num = 0; + ref QuestSequence reference72 = ref span106[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -86192,7 +103929,9 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008950u, new Vector3(29.19043f, -1.4123198f, 52.658813f), 132) + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008950u, new Vector3(29.19043f, -1.4123198f, 52.658813f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -86205,16 +103944,18 @@ public static class AssemblyQuestLoader }; obj66.Steps = list107; reference72 = obj66; - ref QuestSequence reference73 = ref span57[1]; + num++; + ref QuestSequence reference73 = ref span106[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - Span span58 = CollectionsMarshal.AsSpan(list108); - span58[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + index2 = 4; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -86230,7 +103971,8 @@ public static class AssemblyQuestLoader } } }; - span58[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + num2++; + span108[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -86241,7 +103983,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference74 = ref span58[2]; + num2++; + ref QuestStep reference74 = ref span108[num2]; QuestStep obj68 = new QuestStep(EInteractionType.Combat, null, new Vector3(-53.214554f, -8.980761f, 297.15152f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -86250,7 +103993,9 @@ public static class AssemblyQuestLoader num3 = 1; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - CollectionsMarshal.AsSpan(list109)[0] = 12u; + Span span109 = CollectionsMarshal.AsSpan(list109); + num4 = 0; + span109[num4] = 12u; obj68.KillEnemyDataIds = list109; obj68.SkipConditions = new SkipConditions { @@ -86260,10 +104005,12 @@ public static class AssemblyQuestLoader } }; reference74 = obj68; - span58[3] = new QuestStep(EInteractionType.Interact, 1008951u, new Vector3(-51.651794f, -8.992504f, 296.9253f), 152); + num2++; + span108[num2] = new QuestStep(EInteractionType.Interact, 1008951u, new Vector3(-51.651794f, -8.992504f, 296.9253f), 152); obj67.Steps = list108; reference73 = obj67; - ref QuestSequence reference75 = ref span57[2]; + num++; + ref QuestSequence reference75 = ref span106[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -86271,7 +104018,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000233u, new Vector3(168.65796f, 15.5f, -95.99457f), 133) + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000233u, new Vector3(168.65796f, 15.5f, -95.99457f), 133) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -86290,21 +104039,26 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "Cacahuetes"; + Span span111 = CollectionsMarshal.AsSpan(list111); + index = 0; + span111[index] = "Cacahuetes"; questRoot16.Author = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span59 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference76 = ref span59[0]; + index = 3; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + Span span112 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference76 = ref span112[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005412u, new Vector3(-108.14075f, 18.000334f, -0.22894287f), 129) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005412u, new Vector3(-108.14075f, 18.000334f, -0.22894287f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -86317,7 +104071,8 @@ public static class AssemblyQuestLoader }; obj70.Steps = list113; reference76 = obj70; - ref QuestSequence reference77 = ref span59[1]; + num++; + ref QuestSequence reference77 = ref span112[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 @@ -86325,31 +104080,38 @@ public static class AssemblyQuestLoader num2 = 2; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span60 = CollectionsMarshal.AsSpan(list114); - ref QuestStep reference78 = ref span60[0]; + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + ref QuestStep reference78 = ref span114[index2]; QuestStep obj72 = new QuestStep(EInteractionType.Combat, null, new Vector3(248.49304f, -11.838913f, 97.45935f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = 397u; + num4 = 1; + List list115 = new List(num4); + CollectionsMarshal.SetCount(list115, num4); + Span span115 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span115[num3] = 397u; obj72.KillEnemyDataIds = list115; reference78 = obj72; - span60[1] = new QuestStep(EInteractionType.Interact, 1005413u, new Vector3(248.49304f, -11.838913f, 97.45935f), 138); + index2++; + span114[index2] = new QuestStep(EInteractionType.Interact, 1005413u, new Vector3(248.49304f, -11.838913f, 97.45935f), 138); obj71.Steps = list114; reference77 = obj71; - ref QuestSequence reference79 = ref span59[2]; + num++; + ref QuestSequence reference79 = ref span112[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003275u, new Vector3(-147.1123f, 18.2f, 14.358704f), 129) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003275u, new Vector3(-147.1123f, 18.2f, 14.358704f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; @@ -86362,13 +104124,16 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "liza"; + Span span117 = CollectionsMarshal.AsSpan(list117); + index = 0; + span117[index] = "liza"; questRoot17.Author = list117; - num = 3; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span61 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference80 = ref span61[0]; + index = 3; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + Span span118 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference80 = ref span118[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -86376,7 +104141,9 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008798u, new Vector3(-93.06476f, 4f, -124.712036f), 130) + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008798u, new Vector3(-93.06476f, 4f, -124.712036f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -86389,16 +104156,18 @@ public static class AssemblyQuestLoader }; obj74.Steps = list119; reference80 = obj74; - ref QuestSequence reference81 = ref span61[1]; + num++; + ref QuestSequence reference81 = ref span118[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - Span span62 = CollectionsMarshal.AsSpan(list120); - ref QuestStep reference82 = ref span62[0]; + index2 = 2; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + ref QuestStep reference82 = ref span120[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, null, new Vector3(-240.09776f, -37.803402f, 105.18645f), 145) { StopDistance = 0.5f, @@ -86408,13 +104177,17 @@ public static class AssemblyQuestLoader num3 = 1; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = 138u; + Span span121 = CollectionsMarshal.AsSpan(list121); + num4 = 0; + span121[num4] = 138u; obj76.KillEnemyDataIds = list121; reference82 = obj76; - span62[1] = new QuestStep(EInteractionType.Interact, 1008799u, new Vector3(-237.72034f, -37.77224f, 103.4104f), 145); + num2++; + span120[num2] = new QuestStep(EInteractionType.Interact, 1008799u, new Vector3(-237.72034f, -37.77224f, 103.4104f), 145); obj75.Steps = list120; reference81 = obj75; - ref QuestSequence reference83 = ref span61[2]; + num++; + ref QuestSequence reference83 = ref span118[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -86422,7 +104195,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001963u, new Vector3(106.06543f, 4.642026f, -72.007385f), 131) + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001963u, new Vector3(106.06543f, 4.642026f, -72.007385f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -86440,21 +104215,26 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "FalconTaterz"; + Span span123 = CollectionsMarshal.AsSpan(list123); + index = 0; + span123[index] = "FalconTaterz"; questRoot18.Author = list123; - num = 8; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span63 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference84 = ref span63[0]; + index = 8; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + Span span124 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference84 = ref span124[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008757u, new Vector3(-422.5376f, 23.113976f, -367.7882f), 140) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span125[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008757u, new Vector3(-422.5376f, 23.113976f, -367.7882f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SkipConditions = new SkipConditions @@ -86467,7 +104247,8 @@ public static class AssemblyQuestLoader }; obj78.Steps = list125; reference84 = obj78; - ref QuestSequence reference85 = ref span63[1]; + num++; + ref QuestSequence reference85 = ref span124[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -86475,37 +104256,44 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1009305u, new Vector3(562.4321f, 17.654663f, 421.7135f), 137) + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span126[index2] = new QuestStep(EInteractionType.Interact, 1009305u, new Vector3(562.4321f, 17.654663f, 421.7135f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj79.Steps = list126; reference85 = obj79; - ref QuestSequence reference86 = ref span63[2]; + num++; + ref QuestSequence reference86 = ref span124[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list127)[0]; + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + ref QuestStep reference87 = ref span127[num2]; QuestStep obj81 = new QuestStep(EInteractionType.Interact, 1009307u, new Vector3(498.89368f, 10.079935f, 418.265f), 137) { Fly = true }; - num3 = 2; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - Span span64 = CollectionsMarshal.AsSpan(list128); - span64[0] = new DialogueChoice + num4 = 2; + List list128 = new List(num4); + CollectionsMarshal.SetCount(list128, num4); + Span span128 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span128[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB301_01438_Q1_000_000"), Answer = new ExcelRef("TEXT_CHRHDB301_01438_A1_000_030") }; - span64[1] = new DialogueChoice + num3++; + span128[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB301_01438_Q2_000_000"), @@ -86515,7 +104303,8 @@ public static class AssemblyQuestLoader reference87 = obj81; obj80.Steps = list127; reference86 = obj80; - ref QuestSequence reference88 = ref span63[3]; + num++; + ref QuestSequence reference88 = ref span124[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -86523,28 +104312,34 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1009310u, new Vector3(471.18323f, 9.96334f, 794.6135f), 137) + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.Interact, 1009310u, new Vector3(471.18323f, 9.96334f, 794.6135f), 137) { Fly = true }; obj82.Steps = list129; reference88 = obj82; - ref QuestSequence reference89 = ref span63[4]; + num++; + ref QuestSequence reference89 = ref span124[num]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1009308u, new Vector3(560.32654f, 17.707417f, 421.01147f), 137) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.Interact, 1009308u, new Vector3(560.32654f, 17.707417f, 421.01147f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj83.Steps = list130; reference89 = obj83; - ref QuestSequence reference90 = ref span63[5]; + num++; + ref QuestSequence reference90 = ref span124[num]; QuestSequence obj84 = new QuestSequence { Sequence = 5 @@ -86552,26 +104347,32 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1009311u, new Vector3(531.2123f, 17.448051f, 454.1847f), 137); + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.Interact, 1009311u, new Vector3(531.2123f, 17.448051f, 454.1847f), 137); obj84.Steps = list131; reference90 = obj84; - ref QuestSequence reference91 = ref span63[6]; + num++; + ref QuestSequence reference91 = ref span124[num]; QuestSequence obj85 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - Span span65 = CollectionsMarshal.AsSpan(list132); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(582.44116f, 14.587065f, 394.23407f), 137) + index2 = 2; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(582.44116f, 14.587065f, 394.23407f), 137) { Fly = true }; - span65[1] = new QuestStep(EInteractionType.Interact, 1009317u, new Vector3(583.88635f, 14.587067f, 394.70508f), 137); + num2++; + span132[num2] = new QuestStep(EInteractionType.Interact, 1009317u, new Vector3(583.88635f, 14.587067f, 394.70508f), 137); obj85.Steps = list132; reference91 = obj85; - ref QuestSequence reference92 = ref span63[7]; + num++; + ref QuestSequence reference92 = ref span124[num]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -86579,7 +104380,9 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.CompleteQuest, 2004317u, new Vector3(515.98376f, 9.384277f, 525.81055f), 137) + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.CompleteQuest, 2004317u, new Vector3(515.98376f, 9.384277f, 525.81055f), 137) { Fly = true, NextQuestId = new QuestId(1439) @@ -86593,24 +104396,30 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "FalconTaterz"; + Span span134 = CollectionsMarshal.AsSpan(list134); + index = 0; + span134[index] = "FalconTaterz"; questRoot19.Author = list134; - num = 5; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span66 = CollectionsMarshal.AsSpan(list135); - ref QuestSequence reference93 = ref span66[0]; + index = 5; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + Span span135 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref QuestSequence reference93 = ref span135[num]; QuestSequence obj87 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009326u, new Vector3(526.2073f, 8.84578f, 556.54236f), 137); + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009326u, new Vector3(526.2073f, 8.84578f, 556.54236f), 137); obj87.Steps = list136; reference93 = obj87; - ref QuestSequence reference94 = ref span66[1]; + num++; + ref QuestSequence reference94 = ref span135[num]; QuestSequence obj88 = new QuestSequence { Sequence = 1 @@ -86618,26 +104427,32 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1009328u, new Vector3(515.0376f, 9.192075f, 524.834f), 137); + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.Interact, 1009328u, new Vector3(515.0376f, 9.192075f, 524.834f), 137); obj88.Steps = list137; reference94 = obj88; - ref QuestSequence reference95 = ref span66[2]; + num++; + ref QuestSequence reference95 = ref span135[num]; QuestSequence obj89 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - Span span67 = CollectionsMarshal.AsSpan(list138); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(581.1095f, 14.587067f, 394.20828f), 137) + index2 = 2; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(581.1095f, 14.587067f, 394.20828f), 137) { Fly = true }; - span67[1] = new QuestStep(EInteractionType.Interact, 1009319u, new Vector3(581.3534f, 14.587067f, 395.8037f), 137); + num2++; + span138[num2] = new QuestStep(EInteractionType.Interact, 1009319u, new Vector3(581.3534f, 14.587067f, 395.8037f), 137); obj89.Steps = list138; reference95 = obj89; - ref QuestSequence reference96 = ref span66[3]; + num++; + ref QuestSequence reference96 = ref span135[num]; QuestSequence obj90 = new QuestSequence { Sequence = 3 @@ -86645,21 +104460,26 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1001023u, new Vector3(-78.62976f, 18.000334f, -22.62915f), 129) + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.Interact, 1001023u, new Vector3(-78.62976f, 18.000334f, -22.62915f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; obj90.Steps = list139; reference96 = obj90; - ref QuestSequence reference97 = ref span66[4]; + num++; + ref QuestSequence reference97 = ref span135[num]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009331u, new Vector3(311.54346f, -36.405907f, 344.71655f), 138) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009331u, new Vector3(311.54346f, -36.405907f, 344.71655f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -86674,13 +104494,16 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "FalconTaterz"; + Span span141 = CollectionsMarshal.AsSpan(list141); + index = 0; + span141[index] = "FalconTaterz"; questRoot20.Author = list141; - num = 6; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span68 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference98 = ref span68[0]; + index = 6; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + Span span142 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference98 = ref span142[num]; QuestSequence obj92 = new QuestSequence { Sequence = 0 @@ -86688,12 +104511,16 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list143)[0]; + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + ref QuestStep reference99 = ref span143[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.AcceptQuest, 1009331u, new Vector3(311.54346f, -36.405907f, 344.71655f), 138); num3 = 1; List list144 = new List(num3); CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new DialogueChoice + Span span144 = CollectionsMarshal.AsSpan(list144); + num4 = 0; + span144[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CHRHDB303_01440_Q1_000_010") @@ -86702,68 +104529,91 @@ public static class AssemblyQuestLoader reference99 = questStep7; obj92.Steps = list143; reference98 = obj92; - ref QuestSequence reference100 = ref span68[1]; + num++; + ref QuestSequence reference100 = ref span142[num]; QuestSequence obj93 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - Span span69 = CollectionsMarshal.AsSpan(list145); - ref QuestStep reference101 = ref span69[0]; + index2 = 4; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + ref QuestStep reference101 = ref span145[num2]; QuestStep obj94 = new QuestStep(EInteractionType.Interact, 1003584u, new Vector3(317.43335f, -36.325005f, 352.86487f), 138) { TargetTerritoryId = (ushort)138 }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span70 = CollectionsMarshal.AsSpan(list146); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list146 = new List(num4); + CollectionsMarshal.SetCount(list146, num4); + Span span146 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list146; skipConditions2.StepIf = skipStepConditions2; obj94.SkipConditions = skipConditions2; reference101 = obj94; - ref QuestStep reference102 = ref span69[1]; + num2++; + ref QuestStep reference102 = ref span145[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2004324u, new Vector3(-283.0091f, -40.634766f, 425.58936f), 138); num3 = 6; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - Span span71 = CollectionsMarshal.AsSpan(list147); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span147 = CollectionsMarshal.AsSpan(list147); + num4 = 0; + span147[num4] = null; + num4++; + span147[num4] = null; + num4++; + span147[num4] = null; + num4++; + span147[num4] = null; + num4++; + span147[num4] = null; + num4++; + span147[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list147; reference102 = questStep8; - ref QuestStep reference103 = ref span69[2]; + num2++; + ref QuestStep reference103 = ref span145[num2]; QuestStep obj95 = new QuestStep(EInteractionType.Interact, 2004325u, new Vector3(-242.60321f, -38.68164f, 514.7324f), 138) { Fly = true }; - num3 = 6; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - Span span72 = CollectionsMarshal.AsSpan(list148); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list148 = new List(num4); + CollectionsMarshal.SetCount(list148, num4); + Span span148 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj95.CompletionQuestVariablesFlags = list148; reference103 = obj95; - ref QuestStep reference104 = ref span69[3]; + num2++; + ref QuestStep reference104 = ref span145[num2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 2004326u, new Vector3(-291.06586f, -38.07129f, 596.765f), 138) { Fly = true @@ -86771,18 +104621,25 @@ public static class AssemblyQuestLoader num3 = 6; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - Span span73 = CollectionsMarshal.AsSpan(list149); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span149 = CollectionsMarshal.AsSpan(list149); + num4 = 0; + span149[num4] = null; + num4++; + span149[num4] = null; + num4++; + span149[num4] = null; + num4++; + span149[num4] = null; + num4++; + span149[num4] = null; + num4++; + span149[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list149; reference104 = obj96; obj93.Steps = list145; reference100 = obj93; - ref QuestSequence reference105 = ref span68[2]; + num++; + ref QuestSequence reference105 = ref span142[num]; QuestSequence obj97 = new QuestSequence { Sequence = 2 @@ -86790,17 +104647,20 @@ public static class AssemblyQuestLoader num2 = 2; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span74 = CollectionsMarshal.AsSpan(list150); - ref QuestStep reference106 = ref span74[0]; + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + ref QuestStep reference106 = ref span150[index2]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1009335u, new Vector3(-256.70258f, -40.18569f, 684.1992f), 138) { Fly = true, Comment = "Commence \"The Mandragoras\"" }; - num3 = 1; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice + num4 = 1; + List list151 = new List(num4); + CollectionsMarshal.SetCount(list151, num4); + Span span151 = CollectionsMarshal.AsSpan(list151); + num3 = 0; + span151[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "Addon", @@ -86809,7 +104669,8 @@ public static class AssemblyQuestLoader }; obj98.DialogueChoices = list151; reference106 = obj98; - ref QuestStep reference107 = ref span74[1]; + index2++; + ref QuestStep reference107 = ref span150[index2]; QuestStep obj99 = new QuestStep(EInteractionType.Combat, null, new Vector3(-256.70258f, -40.18569f, 684.1992f), 138) { Comment = "Fight some Mandragoras", @@ -86818,34 +104679,43 @@ public static class AssemblyQuestLoader num3 = 5; List list152 = new List(num3); CollectionsMarshal.SetCount(list152, num3); - Span span75 = CollectionsMarshal.AsSpan(list152); - span75[0] = 2950u; - span75[1] = 2951u; - span75[2] = 2952u; - span75[3] = 2953u; - span75[4] = 2954u; + Span span152 = CollectionsMarshal.AsSpan(list152); + num4 = 0; + span152[num4] = 2950u; + num4++; + span152[num4] = 2951u; + num4++; + span152[num4] = 2952u; + num4++; + span152[num4] = 2953u; + num4++; + span152[num4] = 2954u; obj99.KillEnemyDataIds = list152; reference107 = obj99; obj97.Steps = list150; reference105 = obj97; - ref QuestSequence reference108 = ref span68[3]; + num++; + ref QuestSequence reference108 = ref span142[num]; QuestSequence obj100 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - Span span76 = CollectionsMarshal.AsSpan(list153); - span76[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(581.46533f, 14.587067f, 393.86594f), 137) + index2 = 2; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span153[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(581.46533f, 14.587067f, 393.86594f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - span76[1] = new QuestStep(EInteractionType.Interact, 1009319u, new Vector3(581.3534f, 14.587067f, 395.8037f), 137); + num2++; + span153[num2] = new QuestStep(EInteractionType.Interact, 1009319u, new Vector3(581.3534f, 14.587067f, 395.8037f), 137); obj100.Steps = list153; reference108 = obj100; - ref QuestSequence reference109 = ref span68[4]; + num++; + ref QuestSequence reference109 = ref span142[num]; QuestSequence obj101 = new QuestSequence { Sequence = 4 @@ -86853,21 +104723,26 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1009336u, new Vector3(494.49902f, 11.323204f, 210.3761f), 137) + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.Interact, 1009336u, new Vector3(494.49902f, 11.323204f, 210.3761f), 137) { Fly = true }; obj101.Steps = list154; reference109 = obj101; - ref QuestSequence reference110 = ref span68[5]; + num++; + ref QuestSequence reference110 = ref span142[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009337u, new Vector3(-46.860474f, 75.95114f, 10.879639f), 137) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span155[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009337u, new Vector3(-46.860474f, 75.95114f, 10.879639f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, NextQuestId = new QuestId(1441) @@ -86881,13 +104756,16 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - CollectionsMarshal.AsSpan(list156)[0] = "FalconTaterz"; + Span span156 = CollectionsMarshal.AsSpan(list156); + index = 0; + span156[index] = "FalconTaterz"; questRoot21.Author = list156; - num = 6; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - Span span77 = CollectionsMarshal.AsSpan(list157); - ref QuestSequence reference111 = ref span77[0]; + index = 6; + List list157 = new List(index); + CollectionsMarshal.SetCount(list157, index); + Span span157 = CollectionsMarshal.AsSpan(list157); + num = 0; + ref QuestSequence reference111 = ref span157[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -86895,24 +104773,30 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009341u, new Vector3(-48.44745f, 75.95115f, 9.079041f), 137); + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009341u, new Vector3(-48.44745f, 75.95115f, 9.079041f), 137); obj103.Steps = list158; reference111 = obj103; - ref QuestSequence reference112 = ref span77[1]; + num++; + ref QuestSequence reference112 = ref span157[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1009351u, new Vector3(524.28467f, 17.448048f, 449.08826f), 137) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.Interact, 1009351u, new Vector3(524.28467f, 17.448048f, 449.08826f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj104.Steps = list159; reference112 = obj104; - ref QuestSequence reference113 = ref span77[2]; + num++; + ref QuestSequence reference113 = ref span157[num]; QuestSequence obj105 = new QuestSequence { Sequence = 2 @@ -86920,27 +104804,33 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1009347u, new Vector3(442.77087f, 15.823447f, 375.17358f), 137) + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.Interact, 1009347u, new Vector3(442.77087f, 15.823447f, 375.17358f), 137) { Fly = true }; obj105.Steps = list160; reference113 = obj105; - ref QuestSequence reference114 = ref span77[3]; + num++; + ref QuestSequence reference114 = ref span157[num]; QuestSequence obj106 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1009348u, new Vector3(386.19055f, 29.58076f, 350.3623f), 137) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + Span span161 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span161[num2] = new QuestStep(EInteractionType.Interact, 1009348u, new Vector3(386.19055f, 29.58076f, 350.3623f), 137) { Fly = true }; obj106.Steps = list161; reference114 = obj106; - ref QuestSequence reference115 = ref span77[4]; + num++; + ref QuestSequence reference115 = ref span157[num]; QuestSequence obj107 = new QuestSequence { Sequence = 4 @@ -86948,21 +104838,26 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 1009345u, new Vector3(523.76587f, 17.448044f, 447.13513f), 137) + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.Interact, 1009345u, new Vector3(523.76587f, 17.448044f, 447.13513f), 137) { Fly = true }; obj107.Steps = list162; reference115 = obj107; - ref QuestSequence reference116 = ref span77[5]; + num++; + ref QuestSequence reference116 = ref span157[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.CompleteQuest, 2004328u, new Vector3(523.4607f, 17.837708f, 455.2528f), 137) + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span163[num2] = new QuestStep(EInteractionType.CompleteQuest, 2004328u, new Vector3(523.4607f, 17.837708f, 455.2528f), 137) { NextQuestId = new QuestId(166) }; @@ -86975,13 +104870,16 @@ public static class AssemblyQuestLoader num = 1; List list164 = new List(num); CollectionsMarshal.SetCount(list164, num); - CollectionsMarshal.AsSpan(list164)[0] = "JerryWester"; + Span span164 = CollectionsMarshal.AsSpan(list164); + index = 0; + span164[index] = "JerryWester"; questRoot22.Author = list164; - num = 3; - List list165 = new List(num); - CollectionsMarshal.SetCount(list165, num); - Span span78 = CollectionsMarshal.AsSpan(list165); - ref QuestSequence reference117 = ref span78[0]; + index = 3; + List list165 = new List(index); + CollectionsMarshal.SetCount(list165, index); + Span span165 = CollectionsMarshal.AsSpan(list165); + num = 0; + ref QuestSequence reference117 = ref span165[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -86989,33 +104887,40 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); + Span span166 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span166[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); obj109.Steps = list166; reference117 = obj109; - ref QuestSequence reference118 = ref span78[1]; + num++; + ref QuestSequence reference118 = ref span165[num]; QuestSequence obj110 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - Span span79 = CollectionsMarshal.AsSpan(list167); - span79[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) + index2 = 3; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) { TargetTerritoryId = (ushort)351 }; - span79[1] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + num2++; + span167[num2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - span79[2] = new QuestStep(EInteractionType.Interact, 1009239u, new Vector3(18.32605f, 21.252728f, -639.7345f), 156) + num2++; + span167[num2] = new QuestStep(EInteractionType.Interact, 1009239u, new Vector3(18.32605f, 21.252728f, -639.7345f), 156) { StopDistance = 7f }; obj110.Steps = list167; reference118 = obj110; - ref QuestSequence reference119 = ref span78[2]; + num++; + ref QuestSequence reference119 = ref span165[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue @@ -87023,7 +104928,9 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) + Span span168 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span168[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -87041,21 +104948,26 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "JerryWester"; + Span span169 = CollectionsMarshal.AsSpan(list169); + index = 0; + span169[index] = "JerryWester"; questRoot23.Author = list169; - num = 7; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span80 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference120 = ref span80[0]; + index = 7; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + Span span170 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference120 = ref span170[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + Span span171 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span171[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -87068,7 +104980,8 @@ public static class AssemblyQuestLoader }; obj112.Steps = list171; reference120 = obj112; - ref QuestSequence reference121 = ref span80[1]; + num++; + ref QuestSequence reference121 = ref span170[num]; QuestSequence obj113 = new QuestSequence { Sequence = 1 @@ -87076,7 +104989,9 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.Interact, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) { AethernetShortcut = new AethernetShortcut { @@ -87086,18 +105001,22 @@ public static class AssemblyQuestLoader }; obj113.Steps = list172; reference121 = obj113; - ref QuestSequence reference122 = ref span80[2]; + num++; + ref QuestSequence reference122 = ref span170[num]; QuestSequence obj114 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); obj114.Steps = list173; reference122 = obj114; - ref QuestSequence reference123 = ref span80[3]; + num++; + ref QuestSequence reference123 = ref span170[num]; QuestSequence obj115 = new QuestSequence { Sequence = 3 @@ -87105,58 +105024,76 @@ public static class AssemblyQuestLoader num2 = 2; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span81 = CollectionsMarshal.AsSpan(list174); - ref QuestStep reference124 = ref span81[0]; + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + ref QuestStep reference124 = ref span174[index2]; QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1001484u, new Vector3(93.247925f, 0.34075317f, -272.60242f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - num3 = 6; - List list175 = new List(num3); - CollectionsMarshal.SetCount(list175, num3); - Span span82 = CollectionsMarshal.AsSpan(list175); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list175 = new List(num4); + CollectionsMarshal.SetCount(list175, num4); + Span span175 = CollectionsMarshal.AsSpan(list175); + num3 = 0; + span175[num3] = null; + num3++; + span175[num3] = null; + num3++; + span175[num3] = null; + num3++; + span175[num3] = null; + num3++; + span175[num3] = null; + num3++; + span175[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj116.CompletionQuestVariablesFlags = list175; reference124 = obj116; - ref QuestStep reference125 = ref span81[1]; + index2++; + ref QuestStep reference125 = ref span174[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141); num3 = 6; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - Span span83 = CollectionsMarshal.AsSpan(list176); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span176 = CollectionsMarshal.AsSpan(list176); + num4 = 0; + span176[num4] = null; + num4++; + span176[num4] = null; + num4++; + span176[num4] = null; + num4++; + span176[num4] = null; + num4++; + span176[num4] = null; + num4++; + span176[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list176; reference125 = questStep9; obj115.Steps = list174; reference123 = obj115; - ref QuestSequence reference126 = ref span80[4]; + num++; + ref QuestSequence reference126 = ref span170[num]; QuestSequence obj117 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - Span span84 = CollectionsMarshal.AsSpan(list177); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(177.75328f, -1f, -316.30814f), 141) + index2 = 2; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(177.75328f, -1f, -316.30814f), 141) { Fly = true }; - span84[1] = new QuestStep(EInteractionType.Interact, 1006359u, new Vector3(177.203f, -1f, -317.86072f), 141); + num2++; + span177[num2] = new QuestStep(EInteractionType.Interact, 1006359u, new Vector3(177.203f, -1f, -317.86072f), 141); obj117.Steps = list177; reference126 = obj117; - ref QuestSequence reference127 = ref span80[5]; + num++; + ref QuestSequence reference127 = ref span170[num]; QuestSequence obj118 = new QuestSequence { Sequence = 5 @@ -87164,18 +105101,23 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141); + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.Interact, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141); obj118.Steps = list178; reference127 = obj118; - ref QuestSequence reference128 = ref span80[6]; + num++; + ref QuestSequence reference128 = ref span170[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141) + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141) { Emote = EEmote.Soothe }; @@ -87188,13 +105130,16 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "JerryWester"; + Span span180 = CollectionsMarshal.AsSpan(list180); + index = 0; + span180[index] = "JerryWester"; questRoot24.Author = list180; - num = 2; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - Span span85 = CollectionsMarshal.AsSpan(list181); - ref QuestSequence reference129 = ref span85[0]; + index = 2; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + Span span181 = CollectionsMarshal.AsSpan(list181); + num = 0; + ref QuestSequence reference129 = ref span181[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -87202,7 +105147,9 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -87215,15 +105162,18 @@ public static class AssemblyQuestLoader }; obj120.Steps = list182; reference129 = obj120; - ref QuestSequence reference130 = ref span85[1]; + num++; + ref QuestSequence reference130 = ref span181[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span183[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -87241,13 +105191,16 @@ public static class AssemblyQuestLoader num = 1; List list184 = new List(num); CollectionsMarshal.SetCount(list184, num); - CollectionsMarshal.AsSpan(list184)[0] = "JerryWester"; + Span span184 = CollectionsMarshal.AsSpan(list184); + index = 0; + span184[index] = "JerryWester"; questRoot25.Author = list184; - num = 2; - List list185 = new List(num); - CollectionsMarshal.SetCount(list185, num); - Span span86 = CollectionsMarshal.AsSpan(list185); - ref QuestSequence reference131 = ref span86[0]; + index = 2; + List list185 = new List(index); + CollectionsMarshal.SetCount(list185, index); + Span span185 = CollectionsMarshal.AsSpan(list185); + num = 0; + ref QuestSequence reference131 = ref span185[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -87255,19 +105208,23 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009057u, new Vector3(-25.497864f, 38.010006f, 83.359985f), 131); + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009057u, new Vector3(-25.497864f, 38.010006f, 83.359985f), 131); obj122.Steps = list186; reference131 = obj122; - ref QuestSequence reference132 = ref span86[1]; + num++; + ref QuestSequence reference132 = ref span185[num]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - Span span87 = CollectionsMarshal.AsSpan(list187); - span87[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -87279,11 +105236,13 @@ public static class AssemblyQuestLoader } } }; - span87[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span187[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span87[2] = new QuestStep(EInteractionType.CompleteQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); + num2++; + span187[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); obj123.Steps = list187; reference132 = obj123; questRoot25.QuestSequence = list185; @@ -87293,13 +105252,16 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "JerryWester"; + Span span188 = CollectionsMarshal.AsSpan(list188); + index = 0; + span188[index] = "JerryWester"; questRoot26.Author = list188; - num = 4; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span88 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference133 = ref span88[0]; + index = 4; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + Span span189 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference133 = ref span189[num]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -87307,24 +105269,30 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); obj124.Steps = list190; reference133 = obj124; - ref QuestSequence reference134 = ref span88[1]; + num++; + ref QuestSequence reference134 = ref span189[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj125.Steps = list191; reference134 = obj125; - ref QuestSequence reference135 = ref span88[2]; + num++; + ref QuestSequence reference135 = ref span189[num]; QuestSequence obj126 = new QuestSequence { Sequence = 2 @@ -87332,27 +105300,33 @@ public static class AssemblyQuestLoader num2 = 3; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span89 = CollectionsMarshal.AsSpan(list192); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.118355f, 1.308924f, 8.009593f), 132) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.118355f, 1.308924f, 8.009593f), 132) { TargetTerritoryId = (ushort)133 }; - span89[1] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + index2++; + span192[index2] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { TargetTerritoryId = (ushort)205 }; - span89[2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + index2++; + span192[index2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj126.Steps = list192; reference135 = obj126; - ref QuestSequence reference136 = ref span88[3]; + num++; + ref QuestSequence reference136 = ref span189[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -87370,13 +105344,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -87384,7 +105361,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -87397,16 +105376,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { TargetTerritoryId = (ushort)205, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -87416,10 +105397,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - span2[1] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -87427,19 +105410,23 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1009096u, new Vector3(-158.12933f, 4.1921f, -17.013855f), 133); + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1009096u, new Vector3(-158.12933f, 4.1921f, -17.013855f), 133); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -87451,11 +105438,13 @@ public static class AssemblyQuestLoader } } }; - span3[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span6[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span3[2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + num2++; + span6[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); obj4.Steps = list6; reference4 = obj4; questRoot.QuestSequence = list2; @@ -87465,13 +105454,16 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "JerryWester"; + Span span7 = CollectionsMarshal.AsSpan(list7); + index = 0; + span7[index] = "JerryWester"; questRoot2.Author = list7; - num = 4; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span4 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span4[0]; + index = 4; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span8[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -87479,26 +105471,32 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span4[1]; + num++; + ref QuestSequence reference6 = ref span8[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span5 = CollectionsMarshal.AsSpan(list10); - span5[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + index2 = 2; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span5[1] = new QuestStep(EInteractionType.Interact, 1008980u, new Vector3(8.712891f, 0.009977885f, -3.8911133f), 351); + num2++; + span10[num2] = new QuestStep(EInteractionType.Interact, 1008980u, new Vector3(8.712891f, 0.009977885f, -3.8911133f), 351); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[2]; + num++; + ref QuestSequence reference7 = ref span8[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 @@ -87506,7 +105504,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + ref QuestStep reference8 = ref span11[index2]; QuestStep obj8 = new QuestStep(EInteractionType.SinglePlayerDuty, 1009282u, new Vector3(132.95178f, -2.2044632f, -556.2372f), 156) { StopDistance = 1f, @@ -87523,35 +105523,42 @@ public static class AssemblyQuestLoader int num3 = 1; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = 156; + Span span12 = CollectionsMarshal.AsSpan(list12); + int index3 = 0; + span12[index3] = 156; skipAetheryteCondition.InTerritory = list12; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj8.SkipConditions = skipConditions; reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference9 = ref span4[3]; + num++; + ref QuestSequence reference9 = ref span8[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - Span span6 = CollectionsMarshal.AsSpan(list13); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + index2 = 4; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Fly = true }; - span6[1] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + num2++; + span13[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - span6[2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span13[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span6[3] = new QuestStep(EInteractionType.CompleteQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); + num2++; + span13[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); obj9.Steps = list13; reference9 = obj9; questRoot2.QuestSequence = list8; @@ -87561,13 +105568,16 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "JerryWester"; + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = "JerryWester"; questRoot3.Author = list14; - num = 11; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span7 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference10 = ref span7[0]; + index = 11; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference10 = ref span15[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -87575,24 +105585,30 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span7[1]; + num++; + ref QuestSequence reference11 = ref span15[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1009128u, new Vector3(1.1443481f, 19.999985f, -15.640564f), 129) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.Interact, 1009128u, new Vector3(1.1443481f, 19.999985f, -15.640564f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span7[2]; + num++; + ref QuestSequence reference12 = ref span15[num]; QuestSequence obj12 = new QuestSequence { Sequence = 2 @@ -87600,8 +105616,9 @@ public static class AssemblyQuestLoader num2 = 6; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span8 = CollectionsMarshal.AsSpan(list18); - ref QuestStep reference13 = ref span8[0]; + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + ref QuestStep reference13 = ref span18[index2]; QuestStep obj13 = new QuestStep(EInteractionType.Interact, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) { AethernetShortcut = new AethernetShortcut @@ -87610,33 +105627,47 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaMarauder } }; - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span9 = CollectionsMarshal.AsSpan(list19); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj13.CompletionQuestVariablesFlags = list19; reference13 = obj13; - ref QuestStep reference14 = ref span8[1]; + index2++; + ref QuestStep reference14 = ref span18[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1000915u, new Vector3(18.387085f, 47.600006f, -162.12714f), 128); num3 = 6; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span10 = CollectionsMarshal.AsSpan(list20); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span20 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list20; reference14 = questStep; - ref QuestStep reference15 = ref span8[2]; + index2++; + ref QuestStep reference15 = ref span18[index2]; QuestStep obj14 = new QuestStep(EInteractionType.Interact, 1000918u, new Vector3(84.09241f, 44.399914f, 132.34143f), 128) { AethernetShortcut = new AethernetShortcut @@ -87645,58 +105676,82 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - num3 = 6; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - Span span11 = CollectionsMarshal.AsSpan(list21); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list21 = new List(index3); + CollectionsMarshal.SetCount(list21, index3); + Span span21 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj14.CompletionQuestVariablesFlags = list21; reference15 = obj14; - ref QuestStep reference16 = ref span8[3]; + index2++; + ref QuestStep reference16 = ref span18[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128); num3 = 6; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - Span span12 = CollectionsMarshal.AsSpan(list22); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span22 = CollectionsMarshal.AsSpan(list22); + index3 = 0; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list22; reference16 = questStep2; - span8[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-140.77458f, 39.99999f, 155.4174f), 128); - ref QuestStep reference17 = ref span8[5]; + index2++; + span18[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-140.77458f, 39.99999f, 155.4174f), 128); + index2++; + ref QuestStep reference17 = ref span18[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1009133u, new Vector3(-189.13562f, 41.249943f, 179.40027f), 128); - num3 = 6; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span13 = CollectionsMarshal.AsSpan(list23); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + Span span23 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list23; reference17 = questStep3; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference18 = ref span7[3]; + num++; + ref QuestSequence reference18 = ref span15[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1009129u, new Vector3(-22.110352f, 91.999985f, -11.6427f), 128) + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.Interact, 1009129u, new Vector3(-22.110352f, 91.999985f, -11.6427f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -87707,7 +105762,8 @@ public static class AssemblyQuestLoader }; obj15.Steps = list24; reference18 = obj15; - ref QuestSequence reference19 = ref span7[4]; + num++; + ref QuestSequence reference19 = ref span15[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 @@ -87715,12 +105771,14 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span14 = CollectionsMarshal.AsSpan(list25); - span14[0] = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128) { TargetTerritoryId = (ushort)132 }; - span14[1] = new QuestStep(EInteractionType.Interact, 1009130u, new Vector3(-157.00012f, 4f, -20.187744f), 133) + index2++; + span25[index2] = new QuestStep(EInteractionType.Interact, 1009130u, new Vector3(-157.00012f, 4f, -20.187744f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -87731,16 +105789,18 @@ public static class AssemblyQuestLoader }; obj16.Steps = list25; reference19 = obj16; - ref QuestSequence reference20 = ref span7[5]; + num++; + ref QuestSequence reference20 = ref span15[num]; QuestSequence obj17 = new QuestSequence { Sequence = 5 }; - num2 = 4; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - Span span15 = CollectionsMarshal.AsSpan(list26); - ref QuestStep reference21 = ref span15[0]; + index2 = 4; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + ref QuestStep reference21 = ref span26[num2]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1009138u, new Vector3(-35.324707f, 7.117063f, -110.76526f), 133) { AethernetShortcut = new AethernetShortcut @@ -87752,18 +105812,26 @@ public static class AssemblyQuestLoader num3 = 6; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span16 = CollectionsMarshal.AsSpan(list27); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span27 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + span27[index3] = null; + index3++; + span27[index3] = null; + index3++; + span27[index3] = null; + index3++; + span27[index3] = null; + index3++; + span27[index3] = null; + index3++; + span27[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj18.CompletionQuestVariablesFlags = list27; - num3 = 1; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = new DialogueChoice + index3 = 1; + List list28 = new List(index3); + CollectionsMarshal.SetCount(list28, index3); + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span28[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_GAIUSE316_01457_Q1_000_142"), @@ -87771,7 +105839,8 @@ public static class AssemblyQuestLoader }; obj18.DialogueChoices = list28; reference21 = obj18; - ref QuestStep reference22 = ref span15[1]; + num2++; + ref QuestStep reference22 = ref span26[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1000248u, new Vector3(143.05322f, 14.250365f, -250.72101f), 133) { AethernetShortcut = new AethernetShortcut @@ -87783,46 +105852,67 @@ public static class AssemblyQuestLoader num3 = 6; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - Span span17 = CollectionsMarshal.AsSpan(list29); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span29 = CollectionsMarshal.AsSpan(list29); + index3 = 0; + span29[index3] = null; + index3++; + span29[index3] = null; + index3++; + span29[index3] = null; + index3++; + span29[index3] = null; + index3++; + span29[index3] = null; + index3++; + span29[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj19.CompletionQuestVariablesFlags = list29; reference22 = obj19; - ref QuestStep reference23 = ref span15[2]; + num2++; + ref QuestStep reference23 = ref span26[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133); - num3 = 6; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span18 = CollectionsMarshal.AsSpan(list30); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list30 = new List(index3); + CollectionsMarshal.SetCount(list30, index3); + Span span30 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list30; reference23 = questStep4; - ref QuestStep reference24 = ref span15[3]; + num2++; + ref QuestStep reference24 = ref span26[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1009139u, new Vector3(-14.328308f, 9.999907f, -262.68408f), 133); num3 = 6; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span19 = CollectionsMarshal.AsSpan(list31); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span31 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span31[index3] = null; + index3++; + span31[index3] = null; + index3++; + span31[index3] = null; + index3++; + span31[index3] = null; + index3++; + span31[index3] = null; + index3++; + span31[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list31; reference24 = questStep5; obj17.Steps = list26; reference20 = obj17; - ref QuestSequence reference25 = ref span7[6]; + num++; + ref QuestSequence reference25 = ref span15[num]; QuestSequence obj20 = new QuestSequence { Sequence = 6 @@ -87830,7 +105920,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1009131u, new Vector3(25.864014f, -19.000002f, 98.68005f), 132) + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.Interact, 1009131u, new Vector3(25.864014f, -19.000002f, 98.68005f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -87841,27 +105933,32 @@ public static class AssemblyQuestLoader }; obj20.Steps = list32; reference25 = obj20; - ref QuestSequence reference26 = ref span7[7]; + num++; + ref QuestSequence reference26 = ref span15[num]; QuestSequence obj21 = new QuestSequence { Sequence = 7 }; - num2 = 3; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span20 = CollectionsMarshal.AsSpan(list33); - span20[0] = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) + index2 = 3; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) { TargetTerritoryId = (ushort)130 }; - span20[1] = new QuestStep(EInteractionType.Interact, 1004339u, new Vector3(-25.986206f, 81.799995f, -31.99823f), 130) + num2++; + span33[num2] = new QuestStep(EInteractionType.Interact, 1004339u, new Vector3(-25.986206f, 81.799995f, -31.99823f), 130) { TargetTerritoryId = (ushort)131 }; - span20[2] = new QuestStep(EInteractionType.Interact, 1009132u, new Vector3(-5.142395f, 29.999989f, 19.272095f), 131); + num2++; + span33[num2] = new QuestStep(EInteractionType.Interact, 1009132u, new Vector3(-5.142395f, 29.999989f, 19.272095f), 131); obj21.Steps = list33; reference26 = obj21; - ref QuestSequence reference27 = ref span7[8]; + num++; + ref QuestSequence reference27 = ref span15[num]; QuestSequence obj22 = new QuestSequence { Sequence = 8 @@ -87869,8 +105966,9 @@ public static class AssemblyQuestLoader num2 = 5; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span21 = CollectionsMarshal.AsSpan(list34); - ref QuestStep reference28 = ref span21[0]; + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + ref QuestStep reference28 = ref span34[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1009135u, new Vector3(-89.3111f, 7.008094f, -10.025269f), 131) { AethernetShortcut = new AethernetShortcut @@ -87879,19 +105977,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - num3 = 6; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - Span span22 = CollectionsMarshal.AsSpan(list35); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list35 = new List(index3); + CollectionsMarshal.SetCount(list35, index3); + Span span35 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj23.CompletionQuestVariablesFlags = list35; reference28 = obj23; - ref QuestStep reference29 = ref span21[1]; + index2++; + ref QuestStep reference29 = ref span34[index2]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1009136u, new Vector3(65.35437f, 14.005002f, 102.46423f), 131) { AethernetShortcut = new AethernetShortcut @@ -87903,30 +106008,44 @@ public static class AssemblyQuestLoader num3 = 6; List list36 = new List(num3); CollectionsMarshal.SetCount(list36, num3); - Span span23 = CollectionsMarshal.AsSpan(list36); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span36 = CollectionsMarshal.AsSpan(list36); + index3 = 0; + span36[index3] = null; + index3++; + span36[index3] = null; + index3++; + span36[index3] = null; + index3++; + span36[index3] = null; + index3++; + span36[index3] = null; + index3++; + span36[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj24.CompletionQuestVariablesFlags = list36; reference29 = obj24; - ref QuestStep reference30 = ref span21[2]; + index2++; + ref QuestStep reference30 = ref span34[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1001691u, new Vector3(142.16821f, 7.4920034f, 104.72266f), 131); - num3 = 6; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - Span span24 = CollectionsMarshal.AsSpan(list37); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list37 = new List(index3); + CollectionsMarshal.SetCount(list37, index3); + Span span37 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span37[num3] = null; + num3++; + span37[num3] = null; + num3++; + span37[num3] = null; + num3++; + span37[num3] = null; + num3++; + span37[num3] = null; + num3++; + span37[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list37; reference30 = questStep6; - ref QuestStep reference31 = ref span21[3]; + index2++; + ref QuestStep reference31 = ref span34[index2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) { AethernetShortcut = new AethernetShortcut @@ -87938,27 +106057,37 @@ public static class AssemblyQuestLoader num3 = 6; List list38 = new List(num3); CollectionsMarshal.SetCount(list38, num3); - Span span25 = CollectionsMarshal.AsSpan(list38); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span38 = CollectionsMarshal.AsSpan(list38); + index3 = 0; + span38[index3] = null; + index3++; + span38[index3] = null; + index3++; + span38[index3] = null; + index3++; + span38[index3] = null; + index3++; + span38[index3] = null; + index3++; + span38[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj25.CompletionQuestVariablesFlags = list38; reference31 = obj25; - span21[4] = new QuestStep(EInteractionType.Interact, 1001657u, new Vector3(94.80432f, 7.9804688f, -34.042908f), 131); + index2++; + span34[index2] = new QuestStep(EInteractionType.Interact, 1001657u, new Vector3(94.80432f, 7.9804688f, -34.042908f), 131); obj22.Steps = list34; reference27 = obj22; - ref QuestSequence reference32 = ref span7[9]; + num++; + ref QuestSequence reference32 = ref span15[num]; QuestSequence obj26 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1009132u, new Vector3(-5.142395f, 29.999989f, 19.272095f), 131) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.Interact, 1009132u, new Vector3(-5.142395f, 29.999989f, 19.272095f), 131) { AethernetShortcut = new AethernetShortcut { @@ -87968,7 +106097,8 @@ public static class AssemblyQuestLoader }; obj26.Steps = list39; reference32 = obj26; - ref QuestSequence reference33 = ref span7[10]; + num++; + ref QuestSequence reference33 = ref span15[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -87976,17 +106106,20 @@ public static class AssemblyQuestLoader num2 = 3; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span26 = CollectionsMarshal.AsSpan(list40); - span26[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span26[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span40[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span26[2] = new QuestStep(EInteractionType.CompleteQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); + index2++; + span40[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); obj27.Steps = list40; reference33 = obj27; questRoot3.QuestSequence = list15; @@ -87996,27 +106129,33 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "JerryWester"; + Span span41 = CollectionsMarshal.AsSpan(list41); + index = 0; + span41[index] = "JerryWester"; questRoot4.Author = list41; - num = 3; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span27 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference34 = ref span27[0]; + index = 3; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + Span span42 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference34 = ref span42[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351) + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351) { StopDistance = 7f }; obj28.Steps = list43; reference34 = obj28; - ref QuestSequence reference35 = ref span27[1]; + num++; + ref QuestSequence reference35 = ref span42[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 @@ -88024,33 +106163,39 @@ public static class AssemblyQuestLoader num2 = 3; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span28 = CollectionsMarshal.AsSpan(list44); - span28[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span28[1] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + index2++; + span44[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - span28[2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); + index2++; + span44[index2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); obj29.Steps = list44; reference35 = obj29; - ref QuestSequence reference36 = ref span27[2]; + num++; + ref QuestSequence reference36 = ref span42[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - Span span29 = CollectionsMarshal.AsSpan(list45); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.6061f, 303.12494f, -199.86047f), 155) + index2 = 2; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span45[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.6061f, 303.12494f, -199.86047f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span29[1] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + num2++; + span45[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj30.Steps = list45; reference36 = obj30; questRoot4.QuestSequence = list42; @@ -88060,13 +106205,16 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "JerryWester"; + Span span46 = CollectionsMarshal.AsSpan(list46); + index = 0; + span46[index] = "JerryWester"; questRoot5.Author = list46; - num = 9; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span30 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference37 = ref span30[0]; + index = 9; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + Span span47 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference37 = ref span47[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -88074,7 +106222,9 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -88087,27 +106237,32 @@ public static class AssemblyQuestLoader }; obj31.Steps = list48; reference37 = obj31; - ref QuestSequence reference38 = ref span30[1]; + num++; + ref QuestSequence reference38 = ref span47[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span31 = CollectionsMarshal.AsSpan(list49); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(240.43533f, 303.94617f, -200.04732f), 155) + index2 = 3; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(240.43533f, 303.94617f, -200.04732f), 155) { Fly = true }; - span31[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.6362f, 266.62988f, -205.92511f), 155) + num2++; + span49[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.6362f, 266.62988f, -205.92511f), 155) { Fly = true }; - span31[2] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + num2++; + span49[num2] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); obj32.Steps = list49; reference38 = obj32; - ref QuestSequence reference39 = ref span30[2]; + num++; + ref QuestSequence reference39 = ref span47[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -88115,53 +106270,63 @@ public static class AssemblyQuestLoader num2 = 4; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span32 = CollectionsMarshal.AsSpan(list50); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.37878f, 259.79306f, -194.97882f), 155) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.37878f, 259.79306f, -194.97882f), 155) { Fly = true }; - span32[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.87833f, 266.9849f, -205.68484f), 155) + index2++; + span50[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.87833f, 266.9849f, -205.68484f), 155) { Fly = false }; - span32[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-429.45197f, 217.99948f, -296.54102f), 155) + index2++; + span50[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-429.45197f, 217.99948f, -296.54102f), 155) { Fly = true }; - span32[3] = new QuestStep(EInteractionType.Interact, 1009081u, new Vector3(-413.93152f, 224.99988f, -298.2987f), 155); + index2++; + span50[index2] = new QuestStep(EInteractionType.Interact, 1009081u, new Vector3(-413.93152f, 224.99988f, -298.2987f), 155); obj33.Steps = list50; reference39 = obj33; - ref QuestSequence reference40 = ref span30[3]; + num++; + ref QuestSequence reference40 = ref span47[num]; QuestSequence obj34 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - Span span33 = CollectionsMarshal.AsSpan(list51); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-429.70523f, 217.9995f, -297.22086f), 155) + index2 = 2; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-429.70523f, 217.9995f, -297.22086f), 155) { Mount = true }; - ref QuestStep reference41 = ref span33[1]; + num2++; + ref QuestStep reference41 = ref span51[num2]; QuestStep obj35 = new QuestStep(EInteractionType.Combat, null, new Vector3(-701.3538f, 224.22969f, -31.912737f), 155) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span34 = CollectionsMarshal.AsSpan(list52); - span34[0] = 3119u; - span34[1] = 3120u; + index3 = 2; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span52[num3] = 3119u; + num3++; + span52[num3] = 3120u; obj35.KillEnemyDataIds = list52; reference41 = obj35; obj34.Steps = list51; reference40 = obj34; - ref QuestSequence reference42 = ref span30[4]; + num++; + ref QuestSequence reference42 = ref span47[num]; QuestSequence obj36 = new QuestSequence { Sequence = 4 @@ -88169,24 +106334,30 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1009087u, new Vector3(-868.13153f, 226.16986f, 8.132996f), 155) + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.Interact, 1009087u, new Vector3(-868.13153f, 226.16986f, 8.132996f), 155) { Fly = true }; obj36.Steps = list53; reference42 = obj36; - ref QuestSequence reference43 = ref span30[5]; + num++; + ref QuestSequence reference43 = ref span47[num]; QuestSequence obj37 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1009087u, new Vector3(-868.13153f, 226.16986f, 8.132996f), 155); + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.Interact, 1009087u, new Vector3(-868.13153f, 226.16986f, 8.132996f), 155); obj37.Steps = list54; reference43 = obj37; - ref QuestSequence reference44 = ref span30[6]; + num++; + ref QuestSequence reference44 = ref span47[num]; QuestSequence obj38 = new QuestSequence { Sequence = 6 @@ -88194,32 +106365,38 @@ public static class AssemblyQuestLoader num2 = 2; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span35 = CollectionsMarshal.AsSpan(list55); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-427.42563f, 265.09998f, -211.80003f), 155) + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-427.42563f, 265.09998f, -211.80003f), 155) { Fly = true }; - span35[1] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + index2++; + span55[index2] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); obj38.Steps = list55; reference44 = obj38; - ref QuestSequence reference45 = ref span30[7]; + num++; + ref QuestSequence reference45 = ref span47[num]; QuestSequence obj39 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span36 = CollectionsMarshal.AsSpan(list56); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.14075f, 303f, -200.08086f), 155) + index2 = 2; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(241.14075f, 303f, -200.08086f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span36[1] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + num2++; + span56[num2] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj39.Steps = list56; reference45 = obj39; - ref QuestSequence reference46 = ref span30[8]; + num++; + ref QuestSequence reference46 = ref span47[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -88227,7 +106404,9 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -88240,21 +106419,26 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "JerryWester"; + Span span58 = CollectionsMarshal.AsSpan(list58); + index = 0; + span58[index] = "JerryWester"; questRoot6.Author = list58; - num = 5; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span37 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference47 = ref span37[0]; + index = 5; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + Span span59 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference47 = ref span59[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -88267,7 +106451,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list60; reference47 = obj41; - ref QuestSequence reference48 = ref span37[1]; + num++; + ref QuestSequence reference48 = ref span59[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -88275,8 +106460,9 @@ public static class AssemblyQuestLoader num2 = 2; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span38 = CollectionsMarshal.AsSpan(list61); - span38[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -88288,19 +106474,22 @@ public static class AssemblyQuestLoader } } }; - span38[1] = new QuestStep(EInteractionType.Interact, 1008997u, new Vector3(-5.8442383f, 0.51025796f, -9.628479f), 351); + index2++; + span61[index2] = new QuestStep(EInteractionType.Interact, 1008997u, new Vector3(-5.8442383f, 0.51025796f, -9.628479f), 351); obj42.Steps = list61; reference48 = obj42; - ref QuestSequence reference49 = ref span37[2]; + num++; + ref QuestSequence reference49 = ref span59[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - num2 = 12; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - Span span39 = CollectionsMarshal.AsSpan(list62); - ref QuestStep reference50 = ref span39[0]; + index2 = 12; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + ref QuestStep reference50 = ref span62[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 @@ -88310,32 +106499,46 @@ public static class AssemblyQuestLoader num3 = 6; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span40 = CollectionsMarshal.AsSpan(list63); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span span63 = CollectionsMarshal.AsSpan(list63); + index3 = 0; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list63; skipConditions2.StepIf = skipStepConditions; obj44.SkipConditions = skipConditions2; reference50 = obj44; - ref QuestStep reference51 = ref span39[1]; + num2++; + ref QuestStep reference51 = ref span62[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1009147u, new Vector3(41.153564f, 20.495003f, -650.44635f), 156); - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span41 = CollectionsMarshal.AsSpan(list64); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + index3 = 6; + List list64 = new List(index3); + CollectionsMarshal.SetCount(list64, index3); + Span span64 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list64; reference51 = questStep7; - ref QuestStep reference52 = ref span39[2]; + num2++; + ref QuestStep reference52 = ref span62[num2]; QuestStep obj45 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(86.662384f, 28.34813f, -627.5218f), 156) { Fly = true @@ -88345,32 +106548,46 @@ public static class AssemblyQuestLoader num3 = 6; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span42 = CollectionsMarshal.AsSpan(list65); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span65 = CollectionsMarshal.AsSpan(list65); + index3 = 0; + span65[index3] = null; + index3++; + span65[index3] = null; + index3++; + span65[index3] = null; + index3++; + span65[index3] = null; + index3++; + span65[index3] = null; + index3++; + span65[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list65; skipConditions3.StepIf = skipStepConditions2; obj45.SkipConditions = skipConditions3; reference52 = obj45; - ref QuestStep reference53 = ref span39[3]; + num2++; + ref QuestStep reference53 = ref span62[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1009143u, new Vector3(86.778076f, 28.34813f, -625.94037f), 156); - num3 = 6; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span43 = CollectionsMarshal.AsSpan(list66); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list66 = new List(index3); + CollectionsMarshal.SetCount(list66, index3); + Span span66 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list66; reference53 = questStep8; - ref QuestStep reference54 = ref span39[4]; + num2++; + ref QuestStep reference54 = ref span62[num2]; QuestStep obj46 = new QuestStep(EInteractionType.Interact, 1009148u, new Vector3(71.091675f, 33.06652f, -698.3597f), 156) { Fly = true @@ -88378,33 +106595,47 @@ public static class AssemblyQuestLoader num3 = 6; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - Span span44 = CollectionsMarshal.AsSpan(list67); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + Span span67 = CollectionsMarshal.AsSpan(list67); + index3 = 0; + span67[index3] = null; + index3++; + span67[index3] = null; + index3++; + span67[index3] = null; + index3++; + span67[index3] = null; + index3++; + span67[index3] = null; + index3++; + span67[index3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); obj46.CompletionQuestVariablesFlags = list67; reference54 = obj46; - ref QuestStep reference55 = ref span39[5]; + num2++; + ref QuestStep reference55 = ref span62[num2]; QuestStep obj47 = new QuestStep(EInteractionType.Interact, 1009145u, new Vector3(55.832764f, 25.5776f, -703.6698f), 156) { Fly = true }; - num3 = 6; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - Span span45 = CollectionsMarshal.AsSpan(list68); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list68 = new List(index3); + CollectionsMarshal.SetCount(list68, index3); + Span span68 = CollectionsMarshal.AsSpan(list68); + num3 = 0; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj47.CompletionQuestVariablesFlags = list68; reference55 = obj47; - ref QuestStep reference56 = ref span39[6]; + num2++; + ref QuestStep reference56 = ref span62[num2]; QuestStep obj48 = new QuestStep(EInteractionType.Interact, 1009146u, new Vector3(47.80652f, 31.164318f, -744.9912f), 156) { StopDistance = 0.5f, @@ -88413,71 +106644,101 @@ public static class AssemblyQuestLoader num3 = 6; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - Span span46 = CollectionsMarshal.AsSpan(list69); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + Span span69 = CollectionsMarshal.AsSpan(list69); + index3 = 0; + span69[index3] = null; + index3++; + span69[index3] = null; + index3++; + span69[index3] = null; + index3++; + span69[index3] = null; + index3++; + span69[index3] = null; + index3++; + span69[index3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj48.CompletionQuestVariablesFlags = list69; reference56 = obj48; - ref QuestStep reference57 = ref span39[7]; + num2++; + ref QuestStep reference57 = ref span62[num2]; QuestStep obj49 = new QuestStep(EInteractionType.Interact, 1009142u, new Vector3(22.384888f, 29.024387f, -735.4696f), 156) { Mount = true }; - num3 = 6; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - Span span47 = CollectionsMarshal.AsSpan(list70); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list70 = new List(index3); + CollectionsMarshal.SetCount(list70, index3); + Span span70 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span70[num3] = null; + num3++; + span70[num3] = null; + num3++; + span70[num3] = null; + num3++; + span70[num3] = null; + num3++; + span70[num3] = null; + num3++; + span70[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj49.CompletionQuestVariablesFlags = list70; reference57 = obj49; - span39[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(20.33117f, 32.412514f, -710.2311f), 156) + num2++; + span62[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(20.33117f, 32.412514f, -710.2311f), 156) { Fly = true }; - ref QuestStep reference58 = ref span39[9]; + num2++; + ref QuestStep reference58 = ref span62[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1009141u, new Vector3(22.171326f, 32.41251f, -711.4214f), 156); num3 = 6; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span48 = CollectionsMarshal.AsSpan(list71); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span71 = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span71[index3] = null; + index3++; + span71[index3] = null; + index3++; + span71[index3] = null; + index3++; + span71[index3] = null; + index3++; + span71[index3] = null; + index3++; + span71[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list71; reference58 = questStep9; - span39[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.0689f, 28.620823f, -687.8293f), 156) + num2++; + span62[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.0689f, 28.620823f, -687.8293f), 156) { Fly = true }; - ref QuestStep reference59 = ref span39[11]; + num2++; + ref QuestStep reference59 = ref span62[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1009144u, new Vector3(20.61493f, 28.620823f, -688.38025f), 156); - num3 = 6; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span49 = CollectionsMarshal.AsSpan(list72); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + Span span72 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list72; reference59 = questStep10; obj43.Steps = list62; reference49 = obj43; - ref QuestSequence reference60 = ref span37[3]; + num++; + ref QuestSequence reference60 = ref span59[num]; QuestSequence obj50 = new QuestSequence { Sequence = 3 @@ -88485,34 +106746,41 @@ public static class AssemblyQuestLoader num2 = 4; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span50 = CollectionsMarshal.AsSpan(list73); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Fly = true }; - span50[1] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2++; + span73[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - span50[2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span73[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span50[3] = new QuestStep(EInteractionType.Interact, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351) + index2++; + span73[index2] = new QuestStep(EInteractionType.Interact, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351) { StopDistance = 7f }; obj50.Steps = list73; reference60 = obj50; - ref QuestSequence reference61 = ref span37[4]; + num++; + ref QuestSequence reference61 = ref span59[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351) { StopDistance = 7f }; @@ -88525,13 +106793,16 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "WigglyMuffin"; + Span span75 = CollectionsMarshal.AsSpan(list75); + index = 0; + span75[index] = "WigglyMuffin"; questRoot7.Author = list75; - num = 2; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span51 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference62 = ref span51[0]; + index = 2; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + Span span76 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference62 = ref span76[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -88539,7 +106810,9 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001428u, new Vector3(116.80774f, 30.907087f, -359.63995f), 141) + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001428u, new Vector3(116.80774f, 30.907087f, -359.63995f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -88552,15 +106825,18 @@ public static class AssemblyQuestLoader }; obj52.Steps = list77; reference62 = obj52; - ref QuestSequence reference63 = ref span51[1]; + num++; + ref QuestSequence reference63 = ref span76[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141); + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141); obj53.Steps = list78; reference63 = obj53; questRoot7.QuestSequence = list76; @@ -88570,15 +106846,18 @@ public static class AssemblyQuestLoader num = 2; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - Span span52 = CollectionsMarshal.AsSpan(list79); - span52[0] = "JerryWester"; - span52[1] = "Wigglez"; + Span span79 = CollectionsMarshal.AsSpan(list79); + index = 0; + span79[index] = "JerryWester"; + index++; + span79[index] = "Wigglez"; questRoot8.Author = list79; - num = 6; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span53 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference64 = ref span53[0]; + index = 6; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + Span span80 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference64 = ref span80[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -88586,7 +106865,9 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -88599,36 +106880,43 @@ public static class AssemblyQuestLoader }; obj54.Steps = list81; reference64 = obj54; - ref QuestSequence reference65 = ref span53[1]; + num++; + ref QuestSequence reference65 = ref span80[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - Span span54 = CollectionsMarshal.AsSpan(list82); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(579.65247f, 17.487066f, -278.57523f), 156) + index2 = 5; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(579.65247f, 17.487066f, -278.57523f), 156) { Fly = true }; - span54[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) + num2++; + span82[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) { Fly = true }; - span54[2] = new QuestStep(EInteractionType.Combat, null, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) + num2++; + span82[num2] = new QuestStep(EInteractionType.Combat, null, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) { DelaySecondsAtStart = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - span54[3] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) + num2++; + span82[num2] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) { TargetTerritoryId = (ushort)156 }; - span54[4] = new QuestStep(EInteractionType.Interact, 1009372u, new Vector3(640.1312f, -1.08248f, -137.59064f), 156); + num2++; + span82[num2] = new QuestStep(EInteractionType.Interact, 1009372u, new Vector3(640.1312f, -1.08248f, -137.59064f), 156); obj55.Steps = list82; reference65 = obj55; - ref QuestSequence reference66 = ref span53[2]; + num++; + ref QuestSequence reference66 = ref span80[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -88636,27 +106924,33 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1009374u, new Vector3(734.15735f, 15.330521f, -55.832825f), 156) + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.Interact, 1009374u, new Vector3(734.15735f, 15.330521f, -55.832825f), 156) { StopDistance = 7f }; obj56.Steps = list83; reference66 = obj56; - ref QuestSequence reference67 = ref span53[3]; + num++; + ref QuestSequence reference67 = ref span80[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1009376u, new Vector3(730.73914f, 15.428448f, -56.168518f), 156) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.Interact, 1009376u, new Vector3(730.73914f, 15.428448f, -56.168518f), 156) { StopDistance = 7f }; obj57.Steps = list84; reference67 = obj57; - ref QuestSequence reference68 = ref span53[4]; + num++; + ref QuestSequence reference68 = ref span80[num]; QuestSequence obj58 = new QuestSequence { Sequence = 4 @@ -88664,7 +106958,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Duty, null, null, 156) + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions { @@ -88674,21 +106970,24 @@ public static class AssemblyQuestLoader }; obj58.Steps = list85; reference68 = obj58; - ref QuestSequence reference69 = ref span53[5]; + num++; + ref QuestSequence reference69 = ref span80[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - Span span55 = CollectionsMarshal.AsSpan(list86); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) + index2 = 2; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span55[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + num2++; + span86[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { NextQuestId = new QuestId(494) }; @@ -88701,13 +107000,16 @@ public static class AssemblyQuestLoader num = 1; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - CollectionsMarshal.AsSpan(list87)[0] = "liza"; + Span span87 = CollectionsMarshal.AsSpan(list87); + index = 0; + span87[index] = "liza"; questRoot9.Author = list87; - num = 9; - List list88 = new List(num); - CollectionsMarshal.SetCount(list88, num); - Span span56 = CollectionsMarshal.AsSpan(list88); - ref QuestSequence reference70 = ref span56[0]; + index = 9; + List list88 = new List(index); + CollectionsMarshal.SetCount(list88, index); + Span span88 = CollectionsMarshal.AsSpan(list88); + num = 0; + ref QuestSequence reference70 = ref span88[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -88715,8 +107017,9 @@ public static class AssemblyQuestLoader num2 = 2; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span57 = CollectionsMarshal.AsSpan(list89); - ref QuestStep reference71 = ref span57[0]; + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + ref QuestStep reference71 = ref span89[index2]; QuestStep obj61 = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, @@ -88732,36 +107035,43 @@ public static class AssemblyQuestLoader num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = 433; + Span span90 = CollectionsMarshal.AsSpan(list90); + index3 = 0; + span90[index3] = 433; skipStepConditions3.InTerritory = list90; skipConditions4.StepIf = skipStepConditions3; SkipAetheryteCondition obj62 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 2; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - Span span58 = CollectionsMarshal.AsSpan(list91); - span58[0] = 419; - span58[1] = 433; + index3 = 2; + List list91 = new List(index3); + CollectionsMarshal.SetCount(list91, index3); + Span span91 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + span91[num3] = 419; + num3++; + span91[num3] = 433; obj62.InTerritory = list91; skipConditions4.AetheryteShortcutIf = obj62; obj61.SkipConditions = skipConditions4; reference71 = obj61; - span57[1] = new QuestStep(EInteractionType.AcceptQuest, 1012337u, new Vector3(-5.874817f, -9.313226E-10f, -5.783203f), 433); + index2++; + span89[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012337u, new Vector3(-5.874817f, -9.313226E-10f, -5.783203f), 433); obj60.Steps = list89; reference70 = obj60; - ref QuestSequence reference72 = ref span56[1]; + num++; + ref QuestSequence reference72 = ref span88[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - Span span59 = CollectionsMarshal.AsSpan(list92); - ref QuestStep reference73 = ref span59[0]; + index2 = 2; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + ref QuestStep reference73 = ref span92[num2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) { TargetTerritoryId = (ushort)419 @@ -88771,12 +107081,15 @@ public static class AssemblyQuestLoader num3 = 1; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = 419; + Span span93 = CollectionsMarshal.AsSpan(list93); + index3 = 0; + span93[index3] = 419; skipStepConditions4.InTerritory = list93; skipConditions5.StepIf = skipStepConditions4; obj64.SkipConditions = skipConditions5; reference73 = obj64; - span59[1] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) + num2++; + span92[num2] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) { AethernetShortcut = new AethernetShortcut { @@ -88786,7 +107099,8 @@ public static class AssemblyQuestLoader }; obj63.Steps = list92; reference72 = obj63; - ref QuestSequence reference74 = ref span56[2]; + num++; + ref QuestSequence reference74 = ref span88[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -88794,7 +107108,9 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) { AethernetShortcut = new AethernetShortcut { @@ -88804,22 +107120,26 @@ public static class AssemblyQuestLoader }; obj65.Steps = list94; reference74 = obj65; - ref QuestSequence reference75 = ref span56[3]; + num++; + ref QuestSequence reference75 = ref span88[num]; QuestSequence obj66 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj66.Steps = list95; reference75 = obj66; - ref QuestSequence reference76 = ref span56[4]; + num++; + ref QuestSequence reference76 = ref span88[num]; QuestSequence obj67 = new QuestSequence { Sequence = 4 @@ -88827,22 +107147,27 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj67.Steps = list96; reference76 = obj67; - ref QuestSequence reference77 = ref span56[5]; + num++; + ref QuestSequence reference77 = ref span88[num]; QuestSequence obj68 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 2007017u, new Vector3(120.62256f, 14.938599f, -156.6034f), 419) + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span97[num2] = new QuestStep(EInteractionType.Interact, 2007017u, new Vector3(120.62256f, 14.938599f, -156.6034f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -88853,7 +107178,8 @@ public static class AssemblyQuestLoader }; obj68.Steps = list97; reference77 = obj68; - ref QuestSequence reference78 = ref span56[6]; + num++; + ref QuestSequence reference78 = ref span88[num]; QuestSequence obj69 = new QuestSequence { Sequence = 6 @@ -88861,25 +107187,31 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 2007018u, new Vector3(23.025818f, 27.939209f, -145.73895f), 419); + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span98[index2] = new QuestStep(EInteractionType.Interact, 2007018u, new Vector3(23.025818f, 27.939209f, -145.73895f), 419); obj69.Steps = list98; reference78 = obj69; - ref QuestSequence reference79 = ref span56[7]; + num++; + ref QuestSequence reference79 = ref span88[num]; QuestSequence obj70 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { TargetTerritoryId = (ushort)198, AetheryteShortcut = EAetheryteLocation.Limsa }; obj70.Steps = list99; reference79 = obj70; - ref QuestSequence reference80 = ref span56[8]; + num++; + ref QuestSequence reference80 = ref span88[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -88887,13 +107219,15 @@ public static class AssemblyQuestLoader num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span60 = CollectionsMarshal.AsSpan(list100); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.714342f, 50.98988f, -779.1884f), 156) + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.714342f, 50.98988f, -779.1884f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span60[1] = new QuestStep(EInteractionType.CompleteQuest, 1016809u, new Vector3(29.861816f, 50.99997f, -818.2651f), 156) + index2++; + span100[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016809u, new Vector3(29.861816f, 50.99997f, -818.2651f), 156) { NextQuestId = new QuestId(1476) }; @@ -88906,21 +107240,26 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "liza"; + Span span101 = CollectionsMarshal.AsSpan(list101); + index = 0; + span101[index] = "liza"; questRoot10.Author = list101; - num = 6; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span61 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference81 = ref span61[0]; + index = 6; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + Span span102 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference81 = ref span102[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016809u, new Vector3(29.861816f, 50.99997f, -818.2651f), 156) + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span103[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016809u, new Vector3(29.861816f, 50.99997f, -818.2651f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -88933,7 +107272,8 @@ public static class AssemblyQuestLoader }; obj72.Steps = list103; reference81 = obj72; - ref QuestSequence reference82 = ref span61[1]; + num++; + ref QuestSequence reference82 = ref span102[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -88941,30 +107281,36 @@ public static class AssemblyQuestLoader num2 = 2; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span62 = CollectionsMarshal.AsSpan(list104); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - span62[1] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + index2++; + span104[index2] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); obj73.Steps = list104; reference82 = obj73; - ref QuestSequence reference83 = ref span61[2]; + num++; + ref QuestSequence reference83 = ref span102[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1012345u, new Vector3(460.16626f, 162.5073f, -527.0314f), 397) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.Interact, 1012345u, new Vector3(460.16626f, 162.5073f, -527.0314f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj74.Steps = list105; reference83 = obj74; - ref QuestSequence reference84 = ref span61[3]; + num++; + ref QuestSequence reference84 = ref span102[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 @@ -88972,42 +107318,50 @@ public static class AssemblyQuestLoader num2 = 3; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span63 = CollectionsMarshal.AsSpan(list106); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) { Mount = true }; - span63[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) + index2++; + span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) { DisableNavmesh = true }; - span63[2] = new QuestStep(EInteractionType.Interact, 1017119u, new Vector3(450.7362f, 157.40831f, -545.0675f), 397); + index2++; + span106[index2] = new QuestStep(EInteractionType.Interact, 1017119u, new Vector3(450.7362f, 157.40831f, -545.0675f), 397); obj75.Steps = list106; reference84 = obj75; - ref QuestSequence reference85 = ref span61[4]; + num++; + ref QuestSequence reference85 = ref span102[num]; QuestSequence obj76 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - Span span64 = CollectionsMarshal.AsSpan(list107); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) + index2 = 3; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) { Mount = true }; - span64[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) + num2++; + span107[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) { DisableNavmesh = true }; - span64[2] = new QuestStep(EInteractionType.Interact, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) + num2++; + span107[num2] = new QuestStep(EInteractionType.Interact, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) { Fly = true }; obj76.Steps = list107; reference85 = obj76; - ref QuestSequence reference86 = ref span61[5]; + num++; + ref QuestSequence reference86 = ref span102[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -89015,7 +107369,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, NextQuestId = new QuestId(1477) @@ -89029,21 +107385,26 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + Span span109 = CollectionsMarshal.AsSpan(list109); + index = 0; + span109[index] = "liza"; questRoot11.Author = list109; - num = 7; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span65 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference87 = ref span65[0]; + index = 7; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + Span span110 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference87 = ref span110[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, SkipConditions = new SkipConditions @@ -89056,7 +107417,8 @@ public static class AssemblyQuestLoader }; obj78.Steps = list111; reference87 = obj78; - ref QuestSequence reference88 = ref span65[1]; + num++; + ref QuestSequence reference88 = ref span110[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -89064,33 +107426,39 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span66 = CollectionsMarshal.AsSpan(list112); - span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(470.88556f, -51.141403f, 36.143986f), 398) + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(470.88556f, -51.141403f, 36.143986f), 398) { Mount = true }; - span66[1] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2++; + span112[index2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true }; obj79.Steps = list112; reference88 = obj79; - ref QuestSequence reference89 = ref span65[2]; + num++; + ref QuestSequence reference89 = ref span110[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj80.Steps = list113; reference89 = obj80; - ref QuestSequence reference90 = ref span65[3]; + num++; + ref QuestSequence reference90 = ref span110[num]; QuestSequence obj81 = new QuestSequence { Sequence = 3 @@ -89098,33 +107466,39 @@ public static class AssemblyQuestLoader num2 = 2; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span67 = CollectionsMarshal.AsSpan(list114); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) { Fly = true }; - span67[1] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + index2++; + span114[index2] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f, IgnoreDistanceToObject = true }; obj81.Steps = list114; reference90 = obj81; - ref QuestSequence reference91 = ref span65[4]; + num++; + ref QuestSequence reference91 = ref span110[num]; QuestSequence obj82 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 2007019u, new Vector3(-261.03613f, 30.350098f, 559.0447f), 400) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span115[num2] = new QuestStep(EInteractionType.Interact, 2007019u, new Vector3(-261.03613f, 30.350098f, 559.0447f), 400) { Fly = true }; obj82.Steps = list115; reference91 = obj82; - ref QuestSequence reference92 = ref span65[5]; + num++; + ref QuestSequence reference92 = ref span110[num]; QuestSequence obj83 = new QuestSequence { Sequence = 5 @@ -89132,7 +107506,9 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 2007020u, new Vector3(-6.2714844f, 30.014404f, 23.453125f), 131) + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.Interact, 2007020u, new Vector3(-6.2714844f, 30.014404f, 23.453125f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -89143,15 +107519,18 @@ public static class AssemblyQuestLoader }; obj83.Steps = list116; reference92 = obj83; - ref QuestSequence reference93 = ref span65[6]; + num++; + ref QuestSequence reference93 = ref span110[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017123u, new Vector3(12.924377f, 33.999996f, -39.32251f), 131) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017123u, new Vector3(12.924377f, 33.999996f, -39.32251f), 131) { NextQuestId = new QuestId(1478) }; @@ -89164,13 +107543,16 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "liza"; questRoot12.Author = list118; - num = 8; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span68 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference94 = ref span68[0]; + index = 8; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference94 = ref span119[num]; QuestSequence obj85 = new QuestSequence { Sequence = 0 @@ -89178,24 +107560,30 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017123u, new Vector3(12.924377f, 33.999996f, -39.32251f), 131); + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017123u, new Vector3(12.924377f, 33.999996f, -39.32251f), 131); obj85.Steps = list120; reference94 = obj85; - ref QuestSequence reference95 = ref span68[1]; + num++; + ref QuestSequence reference95 = ref span119[num]; QuestSequence obj86 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1017118u, new Vector3(34.37854f, 20.495003f, -652.1554f), 156) + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span121[num2] = new QuestStep(EInteractionType.Interact, 1017118u, new Vector3(34.37854f, 20.495003f, -652.1554f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj86.Steps = list121; reference95 = obj86; - ref QuestSequence reference96 = ref span68[2]; + num++; + ref QuestSequence reference96 = ref span119[num]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -89203,7 +107591,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 2007061u, new Vector3(-158.22083f, 17.04425f, -55.13086f), 418) + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.Interact, 2007061u, new Vector3(-158.22083f, 17.04425f, -55.13086f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -89214,22 +107604,26 @@ public static class AssemblyQuestLoader }; obj87.Steps = list122; reference96 = obj87; - ref QuestSequence reference97 = ref span68[3]; + num++; + ref QuestSequence reference97 = ref span119[num]; QuestSequence obj88 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 2007062u, new Vector3(570.1532f, -1.2055054f, -369.95502f), 400) + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span123[num2] = new QuestStep(EInteractionType.Interact, 2007062u, new Vector3(570.1532f, -1.2055054f, -369.95502f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj88.Steps = list123; reference97 = obj88; - ref QuestSequence reference98 = ref span68[4]; + num++; + ref QuestSequence reference98 = ref span119[num]; QuestSequence obj89 = new QuestSequence { Sequence = 4 @@ -89237,7 +107631,9 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + Span span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span124[index2] = new QuestStep(EInteractionType.Interact, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -89248,21 +107644,25 @@ public static class AssemblyQuestLoader }; obj89.Steps = list124; reference98 = obj89; - ref QuestSequence reference99 = ref span68[5]; + num++; + ref QuestSequence reference99 = ref span119[num]; QuestSequence obj90 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1012065u, new Vector3(-594.62885f, -51.05185f, -389.79175f), 401) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span125[num2] = new QuestStep(EInteractionType.Interact, 1012065u, new Vector3(-594.62885f, -51.05185f, -389.79175f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj90.Steps = list125; reference99 = obj90; - ref QuestSequence reference100 = ref span68[6]; + num++; + ref QuestSequence reference100 = ref span119[num]; QuestSequence obj91 = new QuestSequence { Sequence = 6 @@ -89270,7 +107670,9 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span126[index2] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -89281,15 +107683,18 @@ public static class AssemblyQuestLoader }; obj91.Steps = list126; reference100 = obj91; - ref QuestSequence reference101 = ref span68[7]; + num++; + ref QuestSequence reference101 = ref span119[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, NextQuestId = new QuestId(1479) @@ -89303,13 +107708,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + Span span128 = CollectionsMarshal.AsSpan(list128); + index = 0; + span128[index] = "liza"; questRoot13.Author = list128; - num = 7; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span69 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference102 = ref span69[0]; + index = 7; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + Span span129 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference102 = ref span129[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -89317,19 +107725,23 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span130[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); obj93.Steps = list130; reference102 = obj93; - ref QuestSequence reference103 = ref span69[1]; + num++; + ref QuestSequence reference103 = ref span129[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - Span span70 = CollectionsMarshal.AsSpan(list131); - span70[0] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) + index2 = 2; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span131[num2] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) { TargetTerritoryId = (ushort)463, Fly = true, @@ -89339,10 +107751,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IdyllshirePrologueGate } }; - span70[1] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); + num2++; + span131[num2] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); obj94.Steps = list131; reference103 = obj94; - ref QuestSequence reference104 = ref span69[2]; + num++; + ref QuestSequence reference104 = ref span129[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 @@ -89350,25 +107764,31 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 2007063u, new Vector3(-867.3381f, -184.31378f, -661.0056f), 402) + Span span132 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span132[index2] = new QuestStep(EInteractionType.Interact, 2007063u, new Vector3(-867.3381f, -184.31378f, -661.0056f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj95.Steps = list132; reference104 = obj95; - ref QuestSequence reference105 = ref span69[3]; + num++; + ref QuestSequence reference105 = ref span129[num]; QuestSequence obj96 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 2007068u, new Vector3(-916.7773f, -184.31378f, -678.645f), 402); + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.Interact, 2007068u, new Vector3(-916.7773f, -184.31378f, -678.645f), 402); obj96.Steps = list133; reference105 = obj96; - ref QuestSequence reference106 = ref span69[4]; + num++; + ref QuestSequence reference106 = ref span129[num]; QuestSequence obj97 = new QuestSequence { Sequence = 4 @@ -89376,27 +107796,33 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2007064u, new Vector3(-696.0708f, -37.094727f, 432.33386f), 402) + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span134[index2] = new QuestStep(EInteractionType.Interact, 2007064u, new Vector3(-696.0708f, -37.094727f, 432.33386f), 402) { Fly = true }; obj97.Steps = list134; reference106 = obj97; - ref QuestSequence reference107 = ref span69[5]; + num++; + ref QuestSequence reference107 = ref span129[num]; QuestSequence obj98 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 2007065u, new Vector3(-64.2558f, 271.229f, -4.2268066f), 402) + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span135[num2] = new QuestStep(EInteractionType.Interact, 2007065u, new Vector3(-64.2558f, 271.229f, -4.2268066f), 402) { Fly = true }; obj98.Steps = list135; reference107 = obj98; - ref QuestSequence reference108 = ref span69[6]; + num++; + ref QuestSequence reference108 = ref span129[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -89404,13 +107830,15 @@ public static class AssemblyQuestLoader num2 = 2; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span71 = CollectionsMarshal.AsSpan(list136); - span71[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(174.36705f, 393.17496f, -569.3414f), 155) + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span136[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(174.36705f, 393.17496f, -569.3414f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span71[1] = new QuestStep(EInteractionType.CompleteQuest, 2007066u, new Vector3(50.339478f, 374.47156f, -676.5088f), 155) + index2++; + span136[index2] = new QuestStep(EInteractionType.CompleteQuest, 2007066u, new Vector3(50.339478f, 374.47156f, -676.5088f), 155) { Fly = true }; @@ -89423,21 +107851,26 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "liza"; + Span span137 = CollectionsMarshal.AsSpan(list137); + index = 0; + span137[index] = "liza"; questRoot14.Author = list137; - num = 3; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span72 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference109 = ref span72[0]; + index = 3; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + Span span138 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference109 = ref span138[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017654u, new Vector3(79.72839f, 214.09999f, -94.98743f), 478) + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + Span span139 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span139[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017654u, new Vector3(79.72839f, 214.09999f, -94.98743f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -89450,7 +107883,8 @@ public static class AssemblyQuestLoader }; obj100.Steps = list139; reference109 = obj100; - ref QuestSequence reference110 = ref span72[1]; + num++; + ref QuestSequence reference110 = ref span138[num]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -89458,7 +107892,9 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Duty, null, null, 478) + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.Duty, null, null, 478) { DutyOptions = new DutyOptions { @@ -89467,15 +107903,18 @@ public static class AssemblyQuestLoader }; obj101.Steps = list140; reference110 = obj101; - ref QuestSequence reference111 = ref span72[2]; + num++; + ref QuestSequence reference111 = ref span138[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017654u, new Vector3(79.72839f, 214.09999f, -94.98743f), 478) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span141[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017654u, new Vector3(79.72839f, 214.09999f, -94.98743f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -89495,13 +107934,16 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - CollectionsMarshal.AsSpan(list142)[0] = "liza"; + Span span142 = CollectionsMarshal.AsSpan(list142); + index = 0; + span142[index] = "liza"; questRoot15.Author = list142; - num = 2; - List list143 = new List(num); - CollectionsMarshal.SetCount(list143, num); - Span span73 = CollectionsMarshal.AsSpan(list143); - ref QuestSequence reference112 = ref span73[0]; + index = 2; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + Span span143 = CollectionsMarshal.AsSpan(list143); + num = 0; + ref QuestSequence reference112 = ref span143[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -89509,7 +107951,9 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006550u, new Vector3(449.33228f, -12.436822f, -387.5639f), 156) + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span144[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006550u, new Vector3(449.33228f, -12.436822f, -387.5639f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -89523,23 +107967,28 @@ public static class AssemblyQuestLoader }; obj103.Steps = list144; reference112 = obj103; - ref QuestSequence reference113 = ref span73[1]; + num++; + ref QuestSequence reference113 = ref span143[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - ref QuestStep reference114 = ref CollectionsMarshal.AsSpan(list145)[0]; + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + ref QuestStep reference114 = ref span145[num2]; QuestStep obj105 = new QuestStep(EInteractionType.CompleteQuest, 1003596u, new Vector3(-41.428284f, 20f, -5.661133f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; - num3 = 1; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new DialogueChoice + index3 = 1; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + Span span146 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span146[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_SUBPST000_01481_Q1_000_000"), @@ -89557,13 +108006,16 @@ public static class AssemblyQuestLoader num = 1; List list147 = new List(num); CollectionsMarshal.SetCount(list147, num); - CollectionsMarshal.AsSpan(list147)[0] = "liza"; + Span span147 = CollectionsMarshal.AsSpan(list147); + index = 0; + span147[index] = "liza"; questRoot16.Author = list147; - num = 6; - List list148 = new List(num); - CollectionsMarshal.SetCount(list148, num); - Span span74 = CollectionsMarshal.AsSpan(list148); - ref QuestSequence reference115 = ref span74[0]; + index = 6; + List list148 = new List(index); + CollectionsMarshal.SetCount(list148, index); + Span span148 = CollectionsMarshal.AsSpan(list148); + num = 0; + ref QuestSequence reference115 = ref span148[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -89571,7 +108023,9 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + Span span149 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span149[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -89584,15 +108038,18 @@ public static class AssemblyQuestLoader }; obj106.Steps = list149; reference115 = obj106; - ref QuestSequence reference116 = ref span74[1]; + num++; + ref QuestSequence reference116 = ref span148[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -89603,7 +108060,8 @@ public static class AssemblyQuestLoader }; obj107.Steps = list150; reference116 = obj107; - ref QuestSequence reference117 = ref span74[2]; + num++; + ref QuestSequence reference117 = ref span148[num]; QuestSequence obj108 = new QuestSequence { Sequence = 2 @@ -89611,36 +108069,51 @@ public static class AssemblyQuestLoader num2 = 4; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span75 = CollectionsMarshal.AsSpan(list151); - ref QuestStep reference118 = ref span75[0]; + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + ref QuestStep reference118 = ref span151[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2004266u, new Vector3(103.715576f, 1.2664795f, 46.92151f), 132); num3 = 6; List list152 = new List(num3); CollectionsMarshal.SetCount(list152, num3); - Span span76 = CollectionsMarshal.AsSpan(list152); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span152 = CollectionsMarshal.AsSpan(list152); + index3 = 0; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list152; reference118 = questStep11; - ref QuestStep reference119 = ref span75[1]; + index2++; + ref QuestStep reference119 = ref span151[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2004267u, new Vector3(-67.216064f, -3.4332886f, 35.26355f), 132); - num3 = 6; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - Span span77 = CollectionsMarshal.AsSpan(list153); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list153 = new List(index3); + CollectionsMarshal.SetCount(list153, index3); + Span span153 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list153; reference119 = questStep12; - ref QuestStep reference120 = ref span75[2]; + index2++; + ref QuestStep reference120 = ref span151[index2]; QuestStep obj109 = new QuestStep(EInteractionType.Interact, 2004269u, new Vector3(-141.2528f, 7.827881f, -190.53949f), 133) { AethernetShortcut = new AethernetShortcut @@ -89652,16 +108125,23 @@ public static class AssemblyQuestLoader num3 = 6; List list154 = new List(num3); CollectionsMarshal.SetCount(list154, num3); - Span span78 = CollectionsMarshal.AsSpan(list154); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span154 = CollectionsMarshal.AsSpan(list154); + index3 = 0; + span154[index3] = null; + index3++; + span154[index3] = null; + index3++; + span154[index3] = null; + index3++; + span154[index3] = null; + index3++; + span154[index3] = null; + index3++; + span154[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj109.CompletionQuestVariablesFlags = list154; reference120 = obj109; - ref QuestStep reference121 = ref span75[3]; + index2++; + ref QuestStep reference121 = ref span151[index2]; QuestStep obj110 = new QuestStep(EInteractionType.Interact, 2004268u, new Vector3(123.91846f, 14.145081f, -275.83734f), 133) { AethernetShortcut = new AethernetShortcut @@ -89670,29 +108150,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - num3 = 6; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span79 = CollectionsMarshal.AsSpan(list155); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list155 = new List(index3); + CollectionsMarshal.SetCount(list155, index3); + Span span155 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + span155[num3] = null; + num3++; + span155[num3] = null; + num3++; + span155[num3] = null; + num3++; + span155[num3] = null; + num3++; + span155[num3] = null; + num3++; + span155[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj110.CompletionQuestVariablesFlags = list155; reference121 = obj110; obj108.Steps = list151; reference117 = obj108; - ref QuestSequence reference122 = ref span74[3]; + num++; + ref QuestSequence reference122 = ref span148[num]; QuestSequence obj111 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AethernetShortcut = new AethernetShortcut { @@ -89702,7 +108191,8 @@ public static class AssemblyQuestLoader }; obj111.Steps = list156; reference122 = obj111; - ref QuestSequence reference123 = ref span74[4]; + num++; + ref QuestSequence reference123 = ref span148[num]; QuestSequence obj112 = new QuestSequence { Sequence = 4 @@ -89710,7 +108200,9 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 2004270u, new Vector3(7.1869507f, 4.7455444f, -262.98932f), 148) + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.Interact, 2004270u, new Vector3(7.1869507f, 4.7455444f, -262.98932f), 148) { StopDistance = 1f, Fly = true, @@ -89722,15 +108214,18 @@ public static class AssemblyQuestLoader }; obj112.Steps = list157; reference123 = obj112; - ref QuestSequence reference124 = ref span74[5]; + num++; + ref QuestSequence reference124 = ref span148[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span158[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -89749,13 +108244,16 @@ public static class AssemblyQuestLoader num = 1; List list159 = new List(num); CollectionsMarshal.SetCount(list159, num); - CollectionsMarshal.AsSpan(list159)[0] = "liza"; + Span span159 = CollectionsMarshal.AsSpan(list159); + index = 0; + span159[index] = "liza"; questRoot17.Author = list159; - num = 11; - List list160 = new List(num); - CollectionsMarshal.SetCount(list160, num); - Span span80 = CollectionsMarshal.AsSpan(list160); - ref QuestSequence reference125 = ref span80[0]; + index = 11; + List list160 = new List(index); + CollectionsMarshal.SetCount(list160, index); + Span span160 = CollectionsMarshal.AsSpan(list160); + num = 0; + ref QuestSequence reference125 = ref span160[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -89763,7 +108261,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -89776,16 +108276,18 @@ public static class AssemblyQuestLoader }; obj114.Steps = list161; reference125 = obj114; - ref QuestSequence reference126 = ref span80[1]; + num++; + ref QuestSequence reference126 = ref span160[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span81 = CollectionsMarshal.AsSpan(list162); - ref QuestStep reference127 = ref span81[0]; + index2 = 2; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + ref QuestStep reference127 = ref span162[num2]; QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1003611u, new Vector3(9.781006f, 20.999247f, 15.0911255f), 129) { TargetTerritoryId = (ushort)128 @@ -89793,7 +108295,9 @@ public static class AssemblyQuestLoader num3 = 1; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = new DialogueChoice + Span span163 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span163[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -89801,12 +108305,15 @@ public static class AssemblyQuestLoader }; obj116.DialogueChoices = list163; reference127 = obj116; - ref QuestStep reference128 = ref span81[1]; + num2++; + ref QuestStep reference128 = ref span162[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice + index3 = 1; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + Span span164 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span164[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_SUBPST002_01483_Q1_000_000") @@ -89815,7 +108322,8 @@ public static class AssemblyQuestLoader reference128 = questStep13; obj115.Steps = list162; reference126 = obj115; - ref QuestSequence reference129 = ref span80[2]; + num++; + ref QuestSequence reference129 = ref span160[num]; QuestSequence obj117 = new QuestSequence { Sequence = 2 @@ -89823,18 +108331,23 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1003601u, new Vector3(-3.2807007f, 39.51757f, -9.414856f), 128); + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.Interact, 1003601u, new Vector3(-3.2807007f, 39.51757f, -9.414856f), 128); obj117.Steps = list165; reference129 = obj117; - ref QuestSequence reference130 = ref span80[3]; + num++; + ref QuestSequence reference130 = ref span160[num]; QuestSequence obj118 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1009183u, new Vector3(-63.21814f, 43.589653f, 48.447266f), 134) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.Interact, 1009183u, new Vector3(-63.21814f, 43.589653f, 48.447266f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -89845,7 +108358,8 @@ public static class AssemblyQuestLoader }; obj118.Steps = list166; reference130 = obj118; - ref QuestSequence reference131 = ref span80[4]; + num++; + ref QuestSequence reference131 = ref span160[num]; QuestSequence obj119 = new QuestSequence { Sequence = 4 @@ -89853,27 +108367,33 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.UseItem, 1009183u, new Vector3(-63.21814f, 43.589653f, 48.447266f), 134) + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.UseItem, 1009183u, new Vector3(-63.21814f, 43.589653f, 48.447266f), 134) { ItemId = 2001324u }; obj119.Steps = list167; reference131 = obj119; - ref QuestSequence reference132 = ref span80[5]; + num++; + ref QuestSequence reference132 = ref span160[num]; QuestSequence obj120 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1009666u, new Vector3(-22.171448f, 42.442753f, 128.67932f), 134) + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.Interact, 1009666u, new Vector3(-22.171448f, 42.442753f, 128.67932f), 134) { Fly = true }; obj120.Steps = list168; reference132 = obj120; - ref QuestSequence reference133 = ref span80[6]; + num++; + ref QuestSequence reference133 = ref span160[num]; QuestSequence obj121 = new QuestSequence { Sequence = 6 @@ -89881,24 +108401,30 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.86037f, -222.43079f), 134) + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.86037f, -222.43079f), 134) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; obj121.Steps = list169; reference133 = obj121; - ref QuestSequence reference134 = ref span80[7]; + num++; + ref QuestSequence reference134 = ref span160[num]; QuestSequence obj122 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 2004272u, new Vector3(224.2008f, 114.3053f, -223.40735f), 134); + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.Interact, 2004272u, new Vector3(224.2008f, 114.3053f, -223.40735f), 134); obj122.Steps = list170; reference134 = obj122; - ref QuestSequence reference135 = ref span80[8]; + num++; + ref QuestSequence reference135 = ref span160[num]; QuestSequence obj123 = new QuestSequence { Sequence = 8 @@ -89906,7 +108432,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1009184u, new Vector3(-22.171448f, 42.442753f, 128.67932f), 134) + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span171[index2] = new QuestStep(EInteractionType.Interact, 1009184u, new Vector3(-22.171448f, 42.442753f, 128.67932f), 134) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -89917,15 +108445,18 @@ public static class AssemblyQuestLoader }; obj123.Steps = list171; reference135 = obj123; - ref QuestSequence reference136 = ref span80[9]; + num++; + ref QuestSequence reference136 = ref span160[num]; QuestSequence obj124 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span172[num2] = new QuestStep(EInteractionType.Interact, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -89936,7 +108467,8 @@ public static class AssemblyQuestLoader }; obj124.Steps = list172; reference136 = obj124; - ref QuestSequence reference137 = ref span80[10]; + num++; + ref QuestSequence reference137 = ref span160[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -89944,12 +108476,14 @@ public static class AssemblyQuestLoader num2 = 2; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span82 = CollectionsMarshal.AsSpan(list173); - span82[0] = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 }; - span82[1] = new QuestStep(EInteractionType.CompleteQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2++; + span173[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { NextQuestId = new QuestId(1482) }; @@ -89962,21 +108496,26 @@ public static class AssemblyQuestLoader num = 1; List list174 = new List(num); CollectionsMarshal.SetCount(list174, num); - CollectionsMarshal.AsSpan(list174)[0] = "liza"; + Span span174 = CollectionsMarshal.AsSpan(list174); + index = 0; + span174[index] = "liza"; questRoot18.Author = list174; - num = 5; - List list175 = new List(num); - CollectionsMarshal.SetCount(list175, num); - Span span83 = CollectionsMarshal.AsSpan(list175); - ref QuestSequence reference138 = ref span83[0]; + index = 5; + List list175 = new List(index); + CollectionsMarshal.SetCount(list175, index); + Span span175 = CollectionsMarshal.AsSpan(list175); + num = 0; + ref QuestSequence reference138 = ref span175[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + Span span176 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span176[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -89989,7 +108528,8 @@ public static class AssemblyQuestLoader }; obj126.Steps = list176; reference138 = obj126; - ref QuestSequence reference139 = ref span83[1]; + num++; + ref QuestSequence reference139 = ref span175[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 @@ -89997,7 +108537,9 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span177[index2] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -90008,15 +108550,18 @@ public static class AssemblyQuestLoader }; obj127.Steps = list177; reference139 = obj127; - ref QuestSequence reference140 = ref span83[2]; + num++; + ref QuestSequence reference140 = ref span175[num]; QuestSequence obj128 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1006357u, new Vector3(-28.854858f, 13.799997f, 118.66931f), 131) + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + Span span178 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span178[num2] = new QuestStep(EInteractionType.Interact, 1006357u, new Vector3(-28.854858f, 13.799997f, 118.66931f), 131) { AethernetShortcut = new AethernetShortcut { @@ -90026,7 +108571,8 @@ public static class AssemblyQuestLoader }; obj128.Steps = list178; reference140 = obj128; - ref QuestSequence reference141 = ref span83[3]; + num++; + ref QuestSequence reference141 = ref span175[num]; QuestSequence obj129 = new QuestSequence { Sequence = 3 @@ -90034,24 +108580,29 @@ public static class AssemblyQuestLoader num2 = 2; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span84 = CollectionsMarshal.AsSpan(list179); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-282.37943f, 13.480675f, -155.46162f), 140) + Span span179 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span179[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-282.37943f, 13.480675f, -155.46162f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; - span84[1] = new QuestStep(EInteractionType.Interact, 1009186u, new Vector3(-281.94098f, 13.480675f, -156.4508f), 140); + index2++; + span179[index2] = new QuestStep(EInteractionType.Interact, 1009186u, new Vector3(-281.94098f, 13.480675f, -156.4508f), 140); obj129.Steps = list179; reference141 = obj129; - ref QuestSequence reference142 = ref span83[4]; + num++; + ref QuestSequence reference142 = ref span175[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -90070,13 +108621,16 @@ public static class AssemblyQuestLoader num = 1; List list181 = new List(num); CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "liza"; + Span span181 = CollectionsMarshal.AsSpan(list181); + index = 0; + span181[index] = "liza"; questRoot19.Author = list181; - num = 7; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - Span span85 = CollectionsMarshal.AsSpan(list182); - ref QuestSequence reference143 = ref span85[0]; + index = 7; + List list182 = new List(index); + CollectionsMarshal.SetCount(list182, index); + Span span182 = CollectionsMarshal.AsSpan(list182); + num = 0; + ref QuestSequence reference143 = ref span182[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 @@ -90084,7 +108638,9 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + Span span183 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span183[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -90097,16 +108653,18 @@ public static class AssemblyQuestLoader }; obj131.Steps = list183; reference143 = obj131; - ref QuestSequence reference144 = ref span85[1]; + num++; + ref QuestSequence reference144 = ref span182[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - Span span86 = CollectionsMarshal.AsSpan(list184); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + index2 = 2; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span184[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, @@ -90118,10 +108676,12 @@ public static class AssemblyQuestLoader } } }; - span86[1] = new QuestStep(EInteractionType.Interact, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); + num2++; + span184[num2] = new QuestStep(EInteractionType.Interact, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); obj132.Steps = list184; reference144 = obj132; - ref QuestSequence reference145 = ref span85[2]; + num++; + ref QuestSequence reference145 = ref span182[num]; QuestSequence obj133 = new QuestSequence { Sequence = 2 @@ -90129,7 +108689,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1001455u, new Vector3(59.952637f, 0.99176025f, 255.8479f), 141) + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.Interact, 1001455u, new Vector3(59.952637f, 0.99176025f, 255.8479f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -90141,21 +108703,25 @@ public static class AssemblyQuestLoader }; obj133.Steps = list185; reference145 = obj133; - ref QuestSequence reference146 = ref span85[3]; + num++; + ref QuestSequence reference146 = ref span182[num]; QuestSequence obj134 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.UseItem, 2004276u, new Vector3(70.2677f, 1.2054443f, 250.53784f), 141) + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span186[num2] = new QuestStep(EInteractionType.UseItem, 2004276u, new Vector3(70.2677f, 1.2054443f, 250.53784f), 141) { ItemId = 2001329u }; obj134.Steps = list186; reference146 = obj134; - ref QuestSequence reference147 = ref span85[4]; + num++; + ref QuestSequence reference147 = ref span182[num]; QuestSequence obj135 = new QuestSequence { Sequence = 4 @@ -90163,30 +108729,36 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.UseItem, 2004277u, new Vector3(70.2677f, 1.2054443f, 250.53784f), 141) + Span span187 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span187[index2] = new QuestStep(EInteractionType.UseItem, 2004277u, new Vector3(70.2677f, 1.2054443f, 250.53784f), 141) { DelaySecondsAtStart = 3f, ItemId = 2001328u }; obj135.Steps = list187; reference147 = obj135; - ref QuestSequence reference148 = ref span85[5]; + num++; + ref QuestSequence reference148 = ref span182[num]; QuestSequence obj136 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - Span span87 = CollectionsMarshal.AsSpan(list188); - span87[0] = new QuestStep(EInteractionType.Combat, 2004277u, new Vector3(70.2677f, 1.2054443f, 250.53784f), 141) + index2 = 2; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + Span span188 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span188[num2] = new QuestStep(EInteractionType.Combat, 2004277u, new Vector3(70.2677f, 1.2054443f, 250.53784f), 141) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - span87[1] = new QuestStep(EInteractionType.Interact, 1009187u, new Vector3(70.573f, 1.5015054f, 251.39233f), 141); + num2++; + span188[num2] = new QuestStep(EInteractionType.Interact, 1009187u, new Vector3(70.573f, 1.5015054f, 251.39233f), 141); obj136.Steps = list188; reference148 = obj136; - ref QuestSequence reference149 = ref span85[6]; + num++; + ref QuestSequence reference149 = ref span182[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -90194,13 +108766,15 @@ public static class AssemblyQuestLoader num2 = 2; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span88 = CollectionsMarshal.AsSpan(list189); - span88[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + Span span189 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span189[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - span88[1] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) + index2++; + span189[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) { NextQuestId = new QuestId(1570) }; @@ -90213,24 +108787,30 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "liza"; + Span span190 = CollectionsMarshal.AsSpan(list190); + index = 0; + span190[index] = "liza"; questRoot20.Author = list190; - num = 6; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - Span span89 = CollectionsMarshal.AsSpan(list191); - ref QuestSequence reference150 = ref span89[0]; + index = 6; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + Span span191 = CollectionsMarshal.AsSpan(list191); + num = 0; + ref QuestSequence reference150 = ref span191[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132); + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span192[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132); obj138.Steps = list192; reference150 = obj138; - ref QuestSequence reference151 = ref span89[1]; + num++; + ref QuestSequence reference151 = ref span191[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -90238,7 +108818,9 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1000612u, new Vector3(357.96143f, 8.934158f, 214.46558f), 154) + Span span193 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span193[index2] = new QuestStep(EInteractionType.Interact, 1000612u, new Vector3(357.96143f, 8.934158f, 214.46558f), 154) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -90249,23 +108831,27 @@ public static class AssemblyQuestLoader }; obj139.Steps = list193; reference151 = obj139; - ref QuestSequence reference152 = ref span89[2]; + num++; + ref QuestSequence reference152 = ref span191[num]; QuestSequence obj140 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span90 = CollectionsMarshal.AsSpan(list194); - span90[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(264.54797f, -14.2467f, 56.094566f), 154) + index2 = 2; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(264.54797f, -14.2467f, 56.094566f), 154) { Fly = true }; - span90[1] = new QuestStep(EInteractionType.Interact, 2004442u, new Vector3(265.00342f, -13.931519f, 58.457275f), 154); + num2++; + span194[num2] = new QuestStep(EInteractionType.Interact, 2004442u, new Vector3(265.00342f, -13.931519f, 58.457275f), 154); obj140.Steps = list194; reference152 = obj140; - ref QuestSequence reference153 = ref span89[3]; + num++; + ref QuestSequence reference153 = ref span191[num]; QuestSequence obj141 = new QuestSequence { Sequence = 3 @@ -90273,27 +108859,33 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1000612u, new Vector3(357.96143f, 8.934158f, 214.46558f), 154) + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span195[index2] = new QuestStep(EInteractionType.Interact, 1000612u, new Vector3(357.96143f, 8.934158f, 214.46558f), 154) { Fly = true }; obj141.Steps = list195; reference153 = obj141; - ref QuestSequence reference154 = ref span89[4]; + num++; + ref QuestSequence reference154 = ref span191[num]; QuestSequence obj142 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 2004443u, new Vector3(211.9325f, -4.928711f, 27.572998f), 154) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.Interact, 2004443u, new Vector3(211.9325f, -4.928711f, 27.572998f), 154) { Fly = true }; obj142.Steps = list196; reference154 = obj142; - ref QuestSequence reference155 = ref span89[5]; + num++; + ref QuestSequence reference155 = ref span191[num]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -90301,7 +108893,9 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, NextQuestId = new QuestId(1487) @@ -90315,26 +108909,33 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "liza"; + Span span198 = CollectionsMarshal.AsSpan(list198); + index = 0; + span198[index] = "liza"; questRoot21.Author = list198; - num = 6; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span91 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference156 = ref span91[0]; + index = 6; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + Span span199 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference156 = ref span199[num]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - ref QuestStep reference157 = ref CollectionsMarshal.AsSpan(list200)[0]; + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + ref QuestStep reference157 = ref span200[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154); num3 = 1; List list201 = new List(num3); CollectionsMarshal.SetCount(list201, num3); - CollectionsMarshal.AsSpan(list201)[0] = new DialogueChoice + Span span201 = CollectionsMarshal.AsSpan(list201); + index3 = 0; + span201[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANIXA002_01487_Q1_000_000"), @@ -90344,7 +108945,8 @@ public static class AssemblyQuestLoader reference157 = questStep14; obj144.Steps = list200; reference156 = obj144; - ref QuestSequence reference158 = ref span91[1]; + num++; + ref QuestSequence reference158 = ref span199[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -90352,29 +108954,35 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1009594u, new Vector3(-22.568176f, -48.098206f, 289.66187f), 154) + Span span202 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span202[index2] = new QuestStep(EInteractionType.Interact, 1009594u, new Vector3(-22.568176f, -48.098206f, 289.66187f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj145.Steps = list202; reference158 = obj145; - ref QuestSequence reference159 = ref span91[2]; + num++; + ref QuestSequence reference159 = ref span199[num]; QuestSequence obj146 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - Span span92 = CollectionsMarshal.AsSpan(list203); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-4.085219f, -40.94998f, 179.05669f), 154) + index2 = 2; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-4.085219f, -40.94998f, 179.05669f), 154) { Fly = true }; - span92[1] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154); + num2++; + span203[num2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154); obj146.Steps = list203; reference159 = obj146; - ref QuestSequence reference160 = ref span91[3]; + num++; + ref QuestSequence reference160 = ref span199[num]; QuestSequence obj147 = new QuestSequence { Sequence = 3 @@ -90382,12 +108990,16 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list204)[0]; + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + ref QuestStep reference161 = ref span204[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1009595u, new Vector3(-2.8534546f, -40.94998f, 178.72888f), 154); - num3 = 1; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = new DialogueChoice + index3 = 1; + List list205 = new List(index3); + CollectionsMarshal.SetCount(list205, index3); + Span span205 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + span205[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANIXA002_01487_Q2_000_000"), @@ -90397,21 +109009,25 @@ public static class AssemblyQuestLoader reference161 = questStep15; obj147.Steps = list204; reference160 = obj147; - ref QuestSequence reference162 = ref span91[4]; + num++; + ref QuestSequence reference162 = ref span199[num]; QuestSequence obj148 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true }; obj148.Steps = list206; reference162 = obj148; - ref QuestSequence reference163 = ref span91[5]; + num++; + ref QuestSequence reference163 = ref span199[num]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue @@ -90419,12 +109035,16 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - ref QuestStep reference164 = ref CollectionsMarshal.AsSpan(list207)[0]; + Span span207 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + ref QuestStep reference164 = ref span207[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154); num3 = 1; List list208 = new List(num3); CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = new DialogueChoice + Span span208 = CollectionsMarshal.AsSpan(list208); + index3 = 0; + span208[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANIXA002_01487_Q3_000_000"), @@ -90441,21 +109061,26 @@ public static class AssemblyQuestLoader num = 1; List list209 = new List(num); CollectionsMarshal.SetCount(list209, num); - CollectionsMarshal.AsSpan(list209)[0] = "Censored"; + Span span209 = CollectionsMarshal.AsSpan(list209); + index = 0; + span209[index] = "Censored"; questRoot22.Author = list209; - num = 5; - List list210 = new List(num); - CollectionsMarshal.SetCount(list210, num); - Span span93 = CollectionsMarshal.AsSpan(list210); - ref QuestSequence reference165 = ref span93[0]; + index = 5; + List list210 = new List(index); + CollectionsMarshal.SetCount(list210, index); + Span span210 = CollectionsMarshal.AsSpan(list210); + num = 0; + ref QuestSequence reference165 = ref span210[num]; QuestSequence obj150 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + index2 = 1; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + Span span211 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + span211[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -90474,7 +109099,8 @@ public static class AssemblyQuestLoader }; obj150.Steps = list211; reference165 = obj150; - ref QuestSequence reference166 = ref span93[1]; + num++; + ref QuestSequence reference166 = ref span210[num]; QuestSequence obj151 = new QuestSequence { Sequence = 1 @@ -90482,24 +109108,30 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1009600u, new Vector3(121.08032f, -31.678165f, 301.07568f), 154) + Span span212 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span212[index2] = new QuestStep(EInteractionType.Interact, 1009600u, new Vector3(121.08032f, -31.678165f, 301.07568f), 154) { Fly = true }; obj151.Steps = list212; reference166 = obj151; - ref QuestSequence reference167 = ref span93[2]; + num++; + ref QuestSequence reference167 = ref span210[num]; QuestSequence obj152 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1009600u, new Vector3(121.08032f, -31.678165f, 301.07568f), 154); + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span213 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span213[num2] = new QuestStep(EInteractionType.Interact, 1009600u, new Vector3(121.08032f, -31.678165f, 301.07568f), 154); obj152.Steps = list213; reference167 = obj152; - ref QuestSequence reference168 = ref span93[3]; + num++; + ref QuestSequence reference168 = ref span210[num]; QuestSequence obj153 = new QuestSequence { Sequence = 3 @@ -90507,22 +109139,26 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1009217u, new Vector3(363.72925f, -5.616498f, 347.219f), 154) + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.Interact, 1009217u, new Vector3(363.72925f, -5.616498f, 347.219f), 154) { Fly = true }; obj153.Steps = list214; reference168 = obj153; - ref QuestSequence reference169 = ref span93[4]; + num++; + ref QuestSequence reference169 = ref span210[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - Span span94 = CollectionsMarshal.AsSpan(list215); - span94[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8130u, ItemCount = 1, @@ -90534,7 +109170,8 @@ public static class AssemblyQuestLoader } } }; - span94[1] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + num2++; + span215[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true }; @@ -90547,13 +109184,16 @@ public static class AssemblyQuestLoader num = 1; List list216 = new List(num); CollectionsMarshal.SetCount(list216, num); - CollectionsMarshal.AsSpan(list216)[0] = "Censored"; + Span span216 = CollectionsMarshal.AsSpan(list216); + index = 0; + span216[index] = "Censored"; questRoot23.Author = list216; - num = 6; - List list217 = new List(num); - CollectionsMarshal.SetCount(list217, num); - Span span95 = CollectionsMarshal.AsSpan(list217); - ref QuestSequence reference170 = ref span95[0]; + index = 6; + List list217 = new List(index); + CollectionsMarshal.SetCount(list217, index); + Span span217 = CollectionsMarshal.AsSpan(list217); + num = 0; + ref QuestSequence reference170 = ref span217[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -90561,7 +109201,9 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) + Span span218 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + span218[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -90580,21 +109222,25 @@ public static class AssemblyQuestLoader }; obj155.Steps = list218; reference170 = obj155; - ref QuestSequence reference171 = ref span95[1]; + num++; + ref QuestSequence reference171 = ref span217[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.Interact, 1000107u, new Vector3(27.145752f, -19.000002f, 106.67578f), 132) + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + Span span219 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span219[num2] = new QuestStep(EInteractionType.Interact, 1000107u, new Vector3(27.145752f, -19.000002f, 106.67578f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj156.Steps = list219; reference171 = obj156; - ref QuestSequence reference172 = ref span95[2]; + num++; + ref QuestSequence reference172 = ref span217[num]; QuestSequence obj157 = new QuestSequence { Sequence = 2 @@ -90602,7 +109248,9 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1000195u, new Vector3(197.4364f, 0.0026046988f, 57.114502f), 132) + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span220[index2] = new QuestStep(EInteractionType.Interact, 1000195u, new Vector3(197.4364f, 0.0026046988f, 57.114502f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -90613,20 +109261,25 @@ public static class AssemblyQuestLoader }; obj157.Steps = list220; reference172 = obj157; - ref QuestSequence reference173 = ref span95[3]; + num++; + ref QuestSequence reference173 = ref span217[num]; QuestSequence obj158 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - ref QuestStep reference174 = ref CollectionsMarshal.AsSpan(list221)[0]; + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + ref QuestStep reference174 = ref span221[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1009607u, new Vector3(191.05823f, -3.1634123E-15f, 46.341675f), 132); - num3 = 1; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = new DialogueChoice + index3 = 1; + List list222 = new List(index3); + CollectionsMarshal.SetCount(list222, index3); + Span span222 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span222[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANIXA004_01489_Q1_000_001"), @@ -90636,7 +109289,8 @@ public static class AssemblyQuestLoader reference174 = questStep17; obj158.Steps = list221; reference173 = obj158; - ref QuestSequence reference175 = ref span95[4]; + num++; + ref QuestSequence reference175 = ref span217[num]; QuestSequence obj159 = new QuestSequence { Sequence = 4 @@ -90644,22 +109298,26 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span223[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj159.Steps = list223; reference175 = obj159; - ref QuestSequence reference176 = ref span95[5]; + num++; + ref QuestSequence reference176 = ref span217[num]; QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - Span span96 = CollectionsMarshal.AsSpan(list224); - ref QuestStep reference177 = ref span96[0]; + index2 = 2; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + ref QuestStep reference177 = ref span224[num2]; QuestStep obj161 = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8131u, @@ -90675,10 +109333,13 @@ public static class AssemblyQuestLoader num3 = 1; List list225 = new List(num3); CollectionsMarshal.SetCount(list225, num3); - CollectionsMarshal.AsSpan(list225)[0] = EExtendedClassJob.DoH; + Span span225 = CollectionsMarshal.AsSpan(list225); + index3 = 0; + span225[index3] = EExtendedClassJob.DoH; obj161.RequiredCurrentJob = list225; reference177 = obj161; - span96[1] = new QuestStep(EInteractionType.CompleteQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) + num2++; + span224[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) { Fly = true }; @@ -90691,13 +109352,16 @@ public static class AssemblyQuestLoader num = 1; List list226 = new List(num); CollectionsMarshal.SetCount(list226, num); - CollectionsMarshal.AsSpan(list226)[0] = "Censored"; + Span span226 = CollectionsMarshal.AsSpan(list226); + index = 0; + span226[index] = "Censored"; questRoot24.Author = list226; - num = 6; - List list227 = new List(num); - CollectionsMarshal.SetCount(list227, num); - Span span97 = CollectionsMarshal.AsSpan(list227); - ref QuestSequence reference178 = ref span97[0]; + index = 6; + List list227 = new List(index); + CollectionsMarshal.SetCount(list227, index); + Span span227 = CollectionsMarshal.AsSpan(list227); + num = 0; + ref QuestSequence reference178 = ref span227[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -90705,7 +109369,9 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + Span span228 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span228[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -90724,18 +109390,22 @@ public static class AssemblyQuestLoader }; obj162.Steps = list228; reference178 = obj162; - ref QuestSequence reference179 = ref span97[1]; + num++; + ref QuestSequence reference179 = ref span227[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154); + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + Span span229 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span229[num2] = new QuestStep(EInteractionType.Interact, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154); obj163.Steps = list229; reference179 = obj163; - ref QuestSequence reference180 = ref span97[2]; + num++; + ref QuestSequence reference180 = ref span227[num]; QuestSequence obj164 = new QuestSequence { Sequence = 2 @@ -90743,27 +109413,33 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1009610u, new Vector3(25.986084f, -8.047037f, 135.42383f), 132) + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span230[index2] = new QuestStep(EInteractionType.Interact, 1009610u, new Vector3(25.986084f, -8.047037f, 135.42383f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj164.Steps = list230; reference180 = obj164; - ref QuestSequence reference181 = ref span97[3]; + num++; + ref QuestSequence reference181 = ref span227[num]; QuestSequence obj165 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.Interact, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj165.Steps = list231; reference181 = obj165; - ref QuestSequence reference182 = ref span97[4]; + num++; + ref QuestSequence reference182 = ref span227[num]; QuestSequence obj166 = new QuestSequence { Sequence = 4 @@ -90771,20 +109447,25 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 2004543u, new Vector3(-35.996094f, -40.57379f, 160.63171f), 154); + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span232[index2] = new QuestStep(EInteractionType.Interact, 2004543u, new Vector3(-35.996094f, -40.57379f, 160.63171f), 154); obj166.Steps = list232; reference182 = obj166; - ref QuestSequence reference183 = ref span97[5]; + num++; + ref QuestSequence reference183 = ref span227[num]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - Span span98 = CollectionsMarshal.AsSpan(list233); - span98[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-31.151138f, -40.708473f, 195.69182f), 154); - span98[1] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + index2 = 2; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + Span span233 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span233[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-31.151138f, -40.708473f, 195.69182f), 154); + num2++; + span233[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true }; @@ -90797,13 +109478,16 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "Censored"; + Span span234 = CollectionsMarshal.AsSpan(list234); + index = 0; + span234[index] = "Censored"; questRoot25.Author = list234; - num = 6; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span99 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference184 = ref span99[0]; + index = 6; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + Span span235 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference184 = ref span235[num]; QuestSequence obj168 = new QuestSequence { Sequence = 0 @@ -90811,7 +109495,9 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) + Span span236 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span236[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -90830,21 +109516,25 @@ public static class AssemblyQuestLoader }; obj168.Steps = list236; reference184 = obj168; - ref QuestSequence reference185 = ref span99[1]; + num++; + ref QuestSequence reference185 = ref span235[num]; QuestSequence obj169 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + Span span237 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span237[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) { Fly = true }; obj169.Steps = list237; reference185 = obj169; - ref QuestSequence reference186 = ref span99[2]; + num++; + ref QuestSequence reference186 = ref span235[num]; QuestSequence obj170 = new QuestSequence { Sequence = 2 @@ -90852,19 +109542,23 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1008945u, new Vector3(445.45654f, -0.9374095f, -67.36859f), 154); + Span span238 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span238[index2] = new QuestStep(EInteractionType.Interact, 1008945u, new Vector3(445.45654f, -0.9374095f, -67.36859f), 154); obj170.Steps = list238; reference186 = obj170; - ref QuestSequence reference187 = ref span99[3]; + num++; + ref QuestSequence reference187 = ref span235[num]; QuestSequence obj171 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - Span span100 = CollectionsMarshal.AsSpan(list239); - span100[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + Span span239 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span239[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8132u, ItemCount = 4, @@ -90876,10 +109570,12 @@ public static class AssemblyQuestLoader } } }; - span100[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + num2++; + span239[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj171.Steps = list239; reference187 = obj171; - ref QuestSequence reference188 = ref span99[4]; + num++; + ref QuestSequence reference188 = ref span235[num]; QuestSequence obj172 = new QuestSequence { Sequence = 4 @@ -90887,21 +109583,26 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) + Span span240 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span240[index2] = new QuestStep(EInteractionType.Interact, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) { Fly = true }; obj172.Steps = list240; reference188 = obj172; - ref QuestSequence reference189 = ref span99[5]; + num++; + ref QuestSequence reference189 = ref span235[num]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154); + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + Span span241 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span241[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154); obj173.Steps = list241; reference189 = obj173; questRoot25.QuestSequence = list235; @@ -90911,13 +109612,16 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "Censored"; + Span span242 = CollectionsMarshal.AsSpan(list242); + index = 0; + span242[index] = "Censored"; questRoot26.Author = list242; - num = 9; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span101 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference190 = ref span101[0]; + index = 9; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + Span span243 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference190 = ref span243[num]; QuestSequence obj174 = new QuestSequence { Sequence = 0 @@ -90925,7 +109629,9 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span244[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -90944,15 +109650,18 @@ public static class AssemblyQuestLoader }; obj174.Steps = list244; reference190 = obj174; - ref QuestSequence reference191 = ref span101[1]; + num++; + ref QuestSequence reference191 = ref span243[num]; QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1009615u, new Vector3(26.443848f, -19.000004f, 111.528076f), 132) + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + Span span245 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span245[num2] = new QuestStep(EInteractionType.Interact, 1009615u, new Vector3(26.443848f, -19.000004f, 111.528076f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -90963,7 +109672,8 @@ public static class AssemblyQuestLoader }; obj175.Steps = list245; reference191 = obj175; - ref QuestSequence reference192 = ref span101[2]; + num++; + ref QuestSequence reference192 = ref span243[num]; QuestSequence obj176 = new QuestSequence { Sequence = 2 @@ -90971,28 +109681,34 @@ public static class AssemblyQuestLoader num2 = 2; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span102 = CollectionsMarshal.AsSpan(list246); - span102[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.1545f, 222.61827f, 354.20248f), 155) + Span span246 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span246[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.1545f, 222.61827f, 354.20248f), 155) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span102[1] = new QuestStep(EInteractionType.Interact, 1009616u, new Vector3(168.81055f, 223.03535f, 363.08838f), 155); + index2++; + span246[index2] = new QuestStep(EInteractionType.Interact, 1009616u, new Vector3(168.81055f, 223.03535f, 363.08838f), 155); obj176.Steps = list246; reference192 = obj176; - ref QuestSequence reference193 = ref span101[3]; + num++; + ref QuestSequence reference193 = ref span243[num]; QuestSequence obj177 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1009617u, new Vector3(181.41443f, 229.05f, 327.77905f), 155); + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + Span span247 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span247[num2] = new QuestStep(EInteractionType.Interact, 1009617u, new Vector3(181.41443f, 229.05f, 327.77905f), 155); obj177.Steps = list247; reference193 = obj177; - ref QuestSequence reference194 = ref span101[4]; + num++; + ref QuestSequence reference194 = ref span243[num]; QuestSequence obj178 = new QuestSequence { Sequence = 4 @@ -91000,24 +109716,30 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); + Span span248 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span248[index2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); obj178.Steps = list248; reference194 = obj178; - ref QuestSequence reference195 = ref span101[5]; + num++; + ref QuestSequence reference195 = ref span243[num]; QuestSequence obj179 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.UseItem, 2004447u, new Vector3(172.93042f, 229.72449f, 331.8379f), 155) + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + Span span249 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span249[num2] = new QuestStep(EInteractionType.UseItem, 2004447u, new Vector3(172.93042f, 229.72449f, 331.8379f), 155) { ItemId = 2001370u }; obj179.Steps = list249; reference195 = obj179; - ref QuestSequence reference196 = ref span101[6]; + num++; + ref QuestSequence reference196 = ref span243[num]; QuestSequence obj180 = new QuestSequence { Sequence = 6 @@ -91025,21 +109747,27 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1009617u, new Vector3(181.41443f, 229.05f, 327.77905f), 155); + Span span250 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span250[index2] = new QuestStep(EInteractionType.Interact, 1009617u, new Vector3(181.41443f, 229.05f, 327.77905f), 155); obj180.Steps = list250; reference196 = obj180; - ref QuestSequence reference197 = ref span101[7]; + num++; + ref QuestSequence reference197 = ref span243[num]; QuestSequence obj181 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1009618u, new Vector3(161.39453f, 222.02899f, 340.81018f), 155); + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + Span span251 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span251[num2] = new QuestStep(EInteractionType.Interact, 1009618u, new Vector3(161.39453f, 222.02899f, 340.81018f), 155); obj181.Steps = list251; reference197 = obj181; - ref QuestSequence reference198 = ref span101[8]; + num++; + ref QuestSequence reference198 = ref span243[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue @@ -91047,7 +109775,9 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + Span span252 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span252[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat @@ -91061,21 +109791,26 @@ public static class AssemblyQuestLoader num = 1; List list253 = new List(num); CollectionsMarshal.SetCount(list253, num); - CollectionsMarshal.AsSpan(list253)[0] = "Censored"; + Span span253 = CollectionsMarshal.AsSpan(list253); + index = 0; + span253[index] = "Censored"; questRoot27.Author = list253; - num = 16; - List list254 = new List(num); - CollectionsMarshal.SetCount(list254, num); - Span span103 = CollectionsMarshal.AsSpan(list254); - ref QuestSequence reference199 = ref span103[0]; + index = 16; + List list254 = new List(index); + CollectionsMarshal.SetCount(list254, index); + Span span254 = CollectionsMarshal.AsSpan(list254); + num = 0; + ref QuestSequence reference199 = ref span254[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span255 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span255[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -91094,7 +109829,8 @@ public static class AssemblyQuestLoader }; obj183.Steps = list255; reference199 = obj183; - ref QuestSequence reference200 = ref span103[1]; + num++; + ref QuestSequence reference200 = ref span254[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 @@ -91102,22 +109838,26 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + Span span256 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span256[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj184.Steps = list256; reference200 = obj184; - ref QuestSequence reference201 = ref span103[2]; + num++; + ref QuestSequence reference201 = ref span254[num]; QuestSequence obj185 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - Span span104 = CollectionsMarshal.AsSpan(list257); - span104[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span257 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span257[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8133u, ItemCount = 1, @@ -91129,13 +109869,15 @@ public static class AssemblyQuestLoader } } }; - span104[1] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + num2++; + span257[num2] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true }; obj185.Steps = list257; reference201 = obj185; - ref QuestSequence reference202 = ref span103[3]; + num++; + ref QuestSequence reference202 = ref span254[num]; QuestSequence obj186 = new QuestSequence { Sequence = 3 @@ -91143,28 +109885,34 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1009629u, new Vector3(586.694f, 302.0293f, -169.45148f), 155) + Span span258 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span258[index2] = new QuestStep(EInteractionType.Interact, 1009629u, new Vector3(586.694f, 302.0293f, -169.45148f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj186.Steps = list258; reference202 = obj186; - ref QuestSequence reference203 = ref span103[4]; + num++; + ref QuestSequence reference203 = ref span254[num]; QuestSequence obj187 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.UseItem, 2004448u, new Vector3(588.9829f, 302.08276f, -165.75879f), 155) + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + Span span259 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span259[num2] = new QuestStep(EInteractionType.UseItem, 2004448u, new Vector3(588.9829f, 302.08276f, -165.75879f), 155) { ItemId = 2001439u }; obj187.Steps = list259; reference203 = obj187; - ref QuestSequence reference204 = ref span103[5]; + num++; + ref QuestSequence reference204 = ref span254[num]; QuestSequence obj188 = new QuestSequence { Sequence = 5 @@ -91172,44 +109920,56 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1009629u, new Vector3(586.694f, 302.0293f, -169.45148f), 155); + Span span260 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span260[index2] = new QuestStep(EInteractionType.Interact, 1009629u, new Vector3(586.694f, 302.0293f, -169.45148f), 155); obj188.Steps = list260; reference204 = obj188; - ref QuestSequence reference205 = ref span103[6]; + num++; + ref QuestSequence reference205 = ref span254[num]; QuestSequence obj189 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - Span span105 = CollectionsMarshal.AsSpan(list261); - ref QuestStep reference206 = ref span105[0]; + index2 = 2; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + Span span261 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + ref QuestStep reference206 = ref span261[num2]; QuestStep obj190 = new QuestStep(EInteractionType.UseItem, 2004449u, new Vector3(708.7357f, 287.52563f, 109.97168f), 155) { Fly = true, ItemId = 2001439u }; - num3 = 6; - List list262 = new List(num3); - CollectionsMarshal.SetCount(list262, num3); - Span span106 = CollectionsMarshal.AsSpan(list262); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list262 = new List(index3); + CollectionsMarshal.SetCount(list262, index3); + Span span262 = CollectionsMarshal.AsSpan(list262); + num3 = 0; + span262[num3] = null; + num3++; + span262[num3] = null; + num3++; + span262[num3] = null; + num3++; + span262[num3] = null; + num3++; + span262[num3] = null; + num3++; + span262[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj190.CompletionQuestVariablesFlags = list262; reference206 = obj190; - span105[1] = new QuestStep(EInteractionType.UseItem, 2004450u, new Vector3(589.9595f, 286.51855f, 183.00134f), 155) + num2++; + span261[num2] = new QuestStep(EInteractionType.UseItem, 2004450u, new Vector3(589.9595f, 286.51855f, 183.00134f), 155) { Fly = true, ItemId = 2001439u }; obj189.Steps = list261; reference205 = obj189; - ref QuestSequence reference207 = ref span103[7]; + num++; + ref QuestSequence reference207 = ref span254[num]; QuestSequence obj191 = new QuestSequence { Sequence = 7 @@ -91217,28 +109977,34 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.UseItem, 2004451u, new Vector3(574.15125f, 302.7848f, 33.6156f), 155) + Span span263 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span263[index2] = new QuestStep(EInteractionType.UseItem, 2004451u, new Vector3(574.15125f, 302.7848f, 33.6156f), 155) { Fly = true, ItemId = 2001439u }; obj191.Steps = list263; reference207 = obj191; - ref QuestSequence reference208 = ref span103[8]; + num++; + ref QuestSequence reference208 = ref span254[num]; QuestSequence obj192 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1009629u, new Vector3(586.694f, 302.0293f, -169.45148f), 155) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.Interact, 1009629u, new Vector3(586.694f, 302.0293f, -169.45148f), 155) { Fly = true }; obj192.Steps = list264; reference208 = obj192; - ref QuestSequence reference209 = ref span103[9]; + num++; + ref QuestSequence reference209 = ref span254[num]; QuestSequence obj193 = new QuestSequence { Sequence = 9 @@ -91246,31 +110012,37 @@ public static class AssemblyQuestLoader num2 = 2; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span107 = CollectionsMarshal.AsSpan(list265); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(195.04178f, 307.86307f, 411.6528f), 155) + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span265[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(195.04178f, 307.86307f, 411.6528f), 155) { Fly = true, Land = true }; - span107[1] = new QuestStep(EInteractionType.Interact, 1009693u, new Vector3(203.50952f, 297.2045f, 425.37573f), 155); + index2++; + span265[index2] = new QuestStep(EInteractionType.Interact, 1009693u, new Vector3(203.50952f, 297.2045f, 425.37573f), 155); obj193.Steps = list265; reference209 = obj193; - ref QuestSequence reference210 = ref span103[10]; + num++; + ref QuestSequence reference210 = ref span254[num]; QuestSequence obj194 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + Span span266 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span266[num2] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj194.Steps = list266; reference210 = obj194; - ref QuestSequence reference211 = ref span103[11]; + num++; + ref QuestSequence reference211 = ref span254[num]; QuestSequence obj195 = new QuestSequence { Sequence = 11 @@ -91278,21 +110050,27 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.Interact, 1009707u, new Vector3(160.35706f, -22.797548f, 116.44153f), 154); + Span span267 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span267[index2] = new QuestStep(EInteractionType.Interact, 1009707u, new Vector3(160.35706f, -22.797548f, 116.44153f), 154); obj195.Steps = list267; reference211 = obj195; - ref QuestSequence reference212 = ref span103[12]; + num++; + ref QuestSequence reference212 = ref span254[num]; QuestSequence obj196 = new QuestSequence { Sequence = 12 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154); + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + Span span268 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span268[num2] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154); obj196.Steps = list268; reference212 = obj196; - ref QuestSequence reference213 = ref span103[13]; + num++; + ref QuestSequence reference213 = ref span254[num]; QuestSequence obj197 = new QuestSequence { Sequence = 13 @@ -91300,8 +110078,9 @@ public static class AssemblyQuestLoader num2 = 2; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - Span span108 = CollectionsMarshal.AsSpan(list269); - span108[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + Span span269 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span269[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8134u, ItemCount = 1, @@ -91313,23 +110092,29 @@ public static class AssemblyQuestLoader } } }; - span108[1] = new QuestStep(EInteractionType.Interact, 1009707u, new Vector3(160.35706f, -22.797548f, 116.44153f), 154); + index2++; + span269[index2] = new QuestStep(EInteractionType.Interact, 1009707u, new Vector3(160.35706f, -22.797548f, 116.44153f), 154); obj197.Steps = list269; reference213 = obj197; - ref QuestSequence reference214 = ref span103[14]; + num++; + ref QuestSequence reference214 = ref span254[num]; QuestSequence obj198 = new QuestSequence { Sequence = 14 }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - ref QuestStep reference215 = ref CollectionsMarshal.AsSpan(list270)[0]; + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + Span span270 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + ref QuestStep reference215 = ref span270[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154); num3 = 1; List list271 = new List(num3); CollectionsMarshal.SetCount(list271, num3); - CollectionsMarshal.AsSpan(list271)[0] = new DialogueChoice + Span span271 = CollectionsMarshal.AsSpan(list271); + index3 = 0; + span271[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANIXA008_01493_Q1_000_000"), @@ -91339,7 +110124,8 @@ public static class AssemblyQuestLoader reference215 = questStep18; obj198.Steps = list270; reference214 = obj198; - ref QuestSequence reference216 = ref span103[15]; + num++; + ref QuestSequence reference216 = ref span254[num]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue @@ -91347,7 +110133,9 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132) + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -91360,21 +110148,26 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "Censored"; + Span span273 = CollectionsMarshal.AsSpan(list273); + index = 0; + span273[index] = "Censored"; questRoot28.Author = list273; - num = 5; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span109 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference217 = ref span109[0]; + index = 5; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + Span span274 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference217 = ref span274[num]; QuestSequence obj200 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -91393,7 +110186,8 @@ public static class AssemblyQuestLoader }; obj200.Steps = list275; reference217 = obj200; - ref QuestSequence reference218 = ref span109[1]; + num++; + ref QuestSequence reference218 = ref span274[num]; QuestSequence obj201 = new QuestSequence { Sequence = 1 @@ -91401,27 +110195,32 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) + Span span276 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span276[index2] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) { Fly = true, Land = true }; obj201.Steps = list276; reference218 = obj201; - ref QuestSequence reference219 = ref span109[2]; + num++; + ref QuestSequence reference219 = ref span274[num]; QuestSequence obj202 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - Span span110 = CollectionsMarshal.AsSpan(list277); - span110[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + index2 = 2; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span277[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference220 = ref span110[1]; + num2++; + ref QuestStep reference220 = ref span277[num2]; QuestStep obj203 = new QuestStep(EInteractionType.Combat, 2004452u, new Vector3(324.6051f, -14.206177f, 181.13977f), 154) { Fly = true, @@ -91429,15 +110228,18 @@ public static class AssemblyQuestLoader ItemId = 2001374u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - CollectionsMarshal.AsSpan(list278)[0] = 3239u; + index3 = 1; + List list278 = new List(index3); + CollectionsMarshal.SetCount(list278, index3); + Span span278 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span278[num3] = 3239u; obj203.KillEnemyDataIds = list278; reference220 = obj203; obj202.Steps = list277; reference219 = obj202; - ref QuestSequence reference221 = ref span109[3]; + num++; + ref QuestSequence reference221 = ref span274[num]; QuestSequence obj204 = new QuestSequence { Sequence = 3 @@ -91445,22 +110247,26 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) + Span span279 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span279[index2] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) { Fly = true }; obj204.Steps = list279; reference221 = obj204; - ref QuestSequence reference222 = ref span109[4]; + num++; + ref QuestSequence reference222 = ref span274[num]; QuestSequence obj205 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - Span span111 = CollectionsMarshal.AsSpan(list280); - span111[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span280 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span280[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8091u, ItemCount = 1, @@ -91472,7 +110278,8 @@ public static class AssemblyQuestLoader } } }; - span111[1] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + num2++; + span280[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true }; @@ -91485,13 +110292,16 @@ public static class AssemblyQuestLoader num = 1; List list281 = new List(num); CollectionsMarshal.SetCount(list281, num); - CollectionsMarshal.AsSpan(list281)[0] = "Censored"; + Span span281 = CollectionsMarshal.AsSpan(list281); + index = 0; + span281[index] = "Censored"; questRoot29.Author = list281; - num = 5; - List list282 = new List(num); - CollectionsMarshal.SetCount(list282, num); - Span span112 = CollectionsMarshal.AsSpan(list282); - ref QuestSequence reference223 = ref span112[0]; + index = 5; + List list282 = new List(index); + CollectionsMarshal.SetCount(list282, index); + Span span282 = CollectionsMarshal.AsSpan(list282); + num = 0; + ref QuestSequence reference223 = ref span282[num]; QuestSequence obj206 = new QuestSequence { Sequence = 0 @@ -91499,7 +110309,9 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + Span span283 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span283[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -91518,22 +110330,26 @@ public static class AssemblyQuestLoader }; obj206.Steps = list283; reference223 = obj206; - ref QuestSequence reference224 = ref span112[1]; + num++; + ref QuestSequence reference224 = ref span282[num]; QuestSequence obj207 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) + index2 = 1; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + Span span284 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + span284[num2] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) { Fly = true, Land = true }; obj207.Steps = list284; reference224 = obj207; - ref QuestSequence reference225 = ref span112[2]; + num++; + ref QuestSequence reference225 = ref span282[num]; QuestSequence obj208 = new QuestSequence { Sequence = 2 @@ -91541,27 +110357,33 @@ public static class AssemblyQuestLoader num2 = 1; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 1000172u, new Vector3(358.96838f, 8.934157f, 231.25049f), 154) + Span span285 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span285[index2] = new QuestStep(EInteractionType.Interact, 1000172u, new Vector3(358.96838f, 8.934157f, 231.25049f), 154) { Fly = true }; obj208.Steps = list285; reference225 = obj208; - ref QuestSequence reference226 = ref span112[3]; + num++; + ref QuestSequence reference226 = ref span282[num]; QuestSequence obj209 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + Span span286 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span286[num2] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) { Fly = true }; obj209.Steps = list286; reference226 = obj209; - ref QuestSequence reference227 = ref span112[4]; + num++; + ref QuestSequence reference227 = ref span282[num]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue @@ -91569,8 +110391,9 @@ public static class AssemblyQuestLoader num2 = 2; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - Span span113 = CollectionsMarshal.AsSpan(list287); - span113[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + Span span287 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + span287[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8092u, ItemCount = 1, @@ -91582,7 +110405,8 @@ public static class AssemblyQuestLoader } } }; - span113[1] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + index2++; + span287[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true }; @@ -91595,21 +110419,26 @@ public static class AssemblyQuestLoader num = 1; List list288 = new List(num); CollectionsMarshal.SetCount(list288, num); - CollectionsMarshal.AsSpan(list288)[0] = "Censored"; + Span span288 = CollectionsMarshal.AsSpan(list288); + index = 0; + span288[index] = "Censored"; questRoot30.Author = list288; - num = 4; - List list289 = new List(num); - CollectionsMarshal.SetCount(list289, num); - Span span114 = CollectionsMarshal.AsSpan(list289); - ref QuestSequence reference228 = ref span114[0]; + index = 4; + List list289 = new List(index); + CollectionsMarshal.SetCount(list289, index); + Span span289 = CollectionsMarshal.AsSpan(list289); + num = 0; + ref QuestSequence reference228 = ref span289[num]; QuestSequence obj211 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + index2 = 1; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + Span span290 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span290[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -91628,7 +110457,8 @@ public static class AssemblyQuestLoader }; obj211.Steps = list290; reference228 = obj211; - ref QuestSequence reference229 = ref span114[1]; + num++; + ref QuestSequence reference229 = ref span289[num]; QuestSequence obj212 = new QuestSequence { Sequence = 1 @@ -91636,12 +110466,14 @@ public static class AssemblyQuestLoader num2 = 3; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span115 = CollectionsMarshal.AsSpan(list291); - span115[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + Span span291 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span291[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference230 = ref span115[1]; + index2++; + ref QuestStep reference230 = ref span291[index2]; QuestStep obj213 = new QuestStep(EInteractionType.Combat, null, new Vector3(218.67094f, -27.914522f, 211.52048f), 154) { Fly = true, @@ -91650,38 +110482,51 @@ public static class AssemblyQuestLoader num3 = 1; List list292 = new List(num3); CollectionsMarshal.SetCount(list292, num3); - CollectionsMarshal.AsSpan(list292)[0] = 749u; + Span span292 = CollectionsMarshal.AsSpan(list292); + index3 = 0; + span292[index3] = 749u; obj213.KillEnemyDataIds = list292; - num3 = 6; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - Span span116 = CollectionsMarshal.AsSpan(list293); - span116[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span116[1] = null; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = null; + index3 = 6; + List list293 = new List(index3); + CollectionsMarshal.SetCount(list293, index3); + Span span293 = CollectionsMarshal.AsSpan(list293); + num3 = 0; + span293[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num3++; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = null; obj213.CompletionQuestVariablesFlags = list293; reference230 = obj213; - span115[2] = new QuestStep(EInteractionType.Interact, 2004457u, new Vector3(217.15112f, -27.420471f, 209.88782f), 154); + index2++; + span291[index2] = new QuestStep(EInteractionType.Interact, 2004457u, new Vector3(217.15112f, -27.420471f, 209.88782f), 154); obj212.Steps = list291; reference229 = obj212; - ref QuestSequence reference231 = ref span114[2]; + num++; + ref QuestSequence reference231 = ref span289[num]; QuestSequence obj214 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1009217u, new Vector3(363.72925f, -5.616498f, 347.219f), 154) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span294 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span294[num2] = new QuestStep(EInteractionType.Interact, 1009217u, new Vector3(363.72925f, -5.616498f, 347.219f), 154) { Fly = true }; obj214.Steps = list294; reference231 = obj214; - ref QuestSequence reference232 = ref span114[3]; + num++; + ref QuestSequence reference232 = ref span289[num]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue @@ -91689,8 +110534,9 @@ public static class AssemblyQuestLoader num2 = 2; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span117 = CollectionsMarshal.AsSpan(list295); - span117[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + Span span295 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span295[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8093u, ItemCount = 2, @@ -91702,7 +110548,8 @@ public static class AssemblyQuestLoader } } }; - span117[1] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + index2++; + span295[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true }; @@ -91715,21 +110562,26 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = "Censored"; + Span span296 = CollectionsMarshal.AsSpan(list296); + index = 0; + span296[index] = "Censored"; questRoot31.Author = list296; - num = 4; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - Span span118 = CollectionsMarshal.AsSpan(list297); - ref QuestSequence reference233 = ref span118[0]; + index = 4; + List list297 = new List(index); + CollectionsMarshal.SetCount(list297, index); + Span span297 = CollectionsMarshal.AsSpan(list297); + num = 0; + ref QuestSequence reference233 = ref span297[num]; QuestSequence obj216 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + Span span298 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span298[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -91748,7 +110600,8 @@ public static class AssemblyQuestLoader }; obj216.Steps = list298; reference233 = obj216; - ref QuestSequence reference234 = ref span118[1]; + num++; + ref QuestSequence reference234 = ref span297[num]; QuestSequence obj217 = new QuestSequence { Sequence = 1 @@ -91756,7 +110609,9 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Say, 1009633u, new Vector3(254.77979f, -20.989405f, 351.76624f), 154) + Span span299 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span299[index2] = new QuestStep(EInteractionType.Say, 1009633u, new Vector3(254.77979f, -20.989405f, 351.76624f), 154) { Fly = true, ChatMessage = new ChatMessage @@ -91766,21 +110621,25 @@ public static class AssemblyQuestLoader }; obj217.Steps = list299; reference234 = obj217; - ref QuestSequence reference235 = ref span118[2]; + num++; + ref QuestSequence reference235 = ref span297[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1009217u, new Vector3(363.72925f, -5.616498f, 347.219f), 154) + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + Span span300 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span300[num2] = new QuestStep(EInteractionType.Interact, 1009217u, new Vector3(363.72925f, -5.616498f, 347.219f), 154) { Fly = true }; obj218.Steps = list300; reference235 = obj218; - ref QuestSequence reference236 = ref span118[3]; + num++; + ref QuestSequence reference236 = ref span297[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue @@ -91788,8 +110647,9 @@ public static class AssemblyQuestLoader num2 = 2; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - Span span119 = CollectionsMarshal.AsSpan(list301); - span119[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + Span span301 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + span301[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8094u, ItemCount = 3, @@ -91801,7 +110661,8 @@ public static class AssemblyQuestLoader } } }; - span119[1] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + index2++; + span301[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true }; @@ -91814,21 +110675,26 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - CollectionsMarshal.AsSpan(list302)[0] = "Censored"; + Span span302 = CollectionsMarshal.AsSpan(list302); + index = 0; + span302[index] = "Censored"; questRoot32.Author = list302; - num = 5; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - Span span120 = CollectionsMarshal.AsSpan(list303); - ref QuestSequence reference237 = ref span120[0]; + index = 5; + List list303 = new List(index); + CollectionsMarshal.SetCount(list303, index); + Span span303 = CollectionsMarshal.AsSpan(list303); + num = 0; + ref QuestSequence reference237 = ref span303[num]; QuestSequence obj220 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + index2 = 1; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + Span span304 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + span304[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -91846,7 +110712,8 @@ public static class AssemblyQuestLoader }; obj220.Steps = list304; reference237 = obj220; - ref QuestSequence reference238 = ref span120[1]; + num++; + ref QuestSequence reference238 = ref span303[num]; QuestSequence obj221 = new QuestSequence { Sequence = 1 @@ -91854,12 +110721,14 @@ public static class AssemblyQuestLoader num2 = 2; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span121 = CollectionsMarshal.AsSpan(list305); - span121[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 400) + Span span305 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span305[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 400) { TargetClass = EExtendedClassJob.Botanist }; - ref QuestStep reference239 = ref span121[1]; + index2++; + ref QuestStep reference239 = ref span305[index2]; QuestStep obj222 = new QuestStep(EInteractionType.Gather, null, null, 154) { Fly = true @@ -91867,13 +110736,15 @@ public static class AssemblyQuestLoader num3 = 2; List list306 = new List(num3); CollectionsMarshal.SetCount(list306, num3); - Span span122 = CollectionsMarshal.AsSpan(list306); - span122[0] = new GatheredItem + Span span306 = CollectionsMarshal.AsSpan(list306); + index3 = 0; + span306[index3] = new GatheredItem { ItemId = 2001388u, ItemCount = 15 }; - span122[1] = new GatheredItem + index3++; + span306[index3] = new GatheredItem { ItemId = 2001389u, ItemCount = 5 @@ -91882,21 +110753,25 @@ public static class AssemblyQuestLoader reference239 = obj222; obj221.Steps = list305; reference238 = obj221; - ref QuestSequence reference240 = ref span120[2]; + num++; + ref QuestSequence reference240 = ref span303[num]; QuestSequence obj223 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1009635u, new Vector3(12.49707f, -46.518524f, 234.24121f), 154) + index2 = 1; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + Span span307 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span307[num2] = new QuestStep(EInteractionType.Interact, 1009635u, new Vector3(12.49707f, -46.518524f, 234.24121f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj223.Steps = list307; reference240 = obj223; - ref QuestSequence reference241 = ref span120[3]; + num++; + ref QuestSequence reference241 = ref span303[num]; QuestSequence obj224 = new QuestSequence { Sequence = 3 @@ -91904,23 +110779,27 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + Span span308 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span308[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { Fly = true, Land = true }; obj224.Steps = list308; reference241 = obj224; - ref QuestSequence reference242 = ref span120[4]; + num++; + ref QuestSequence reference242 = ref span303[num]; QuestSequence obj225 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - Span span123 = CollectionsMarshal.AsSpan(list309); - span123[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + Span span309 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span309[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8105u, ItemCount = 4, @@ -91932,7 +110811,8 @@ public static class AssemblyQuestLoader } } }; - span123[1] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + num2++; + span309[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, Land = true @@ -91946,13 +110826,16 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - CollectionsMarshal.AsSpan(list310)[0] = "Censored"; + Span span310 = CollectionsMarshal.AsSpan(list310); + index = 0; + span310[index] = "Censored"; questRoot33.Author = list310; - num = 5; - List list311 = new List(num); - CollectionsMarshal.SetCount(list311, num); - Span span124 = CollectionsMarshal.AsSpan(list311); - ref QuestSequence reference243 = ref span124[0]; + index = 5; + List list311 = new List(index); + CollectionsMarshal.SetCount(list311, index); + Span span311 = CollectionsMarshal.AsSpan(list311); + num = 0; + ref QuestSequence reference243 = ref span311[num]; QuestSequence obj226 = new QuestSequence { Sequence = 0 @@ -91960,7 +110843,9 @@ public static class AssemblyQuestLoader num2 = 1; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + Span span312 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + span312[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -91978,34 +110863,39 @@ public static class AssemblyQuestLoader }; obj226.Steps = list312; reference243 = obj226; - ref QuestSequence reference244 = ref span124[1]; + num++; + ref QuestSequence reference244 = ref span311[num]; QuestSequence obj227 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - Span span125 = CollectionsMarshal.AsSpan(list313); - span125[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 400) + index2 = 2; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + Span span313 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span313[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 400) { TargetClass = EExtendedClassJob.Miner }; - ref QuestStep reference245 = ref span125[1]; + num2++; + ref QuestStep reference245 = ref span313[num2]; QuestStep obj228 = new QuestStep(EInteractionType.Gather, null, null, 154) { Fly = true }; - num3 = 2; - List list314 = new List(num3); - CollectionsMarshal.SetCount(list314, num3); - Span span126 = CollectionsMarshal.AsSpan(list314); - span126[0] = new GatheredItem + index3 = 2; + List list314 = new List(index3); + CollectionsMarshal.SetCount(list314, index3); + Span span314 = CollectionsMarshal.AsSpan(list314); + num3 = 0; + span314[num3] = new GatheredItem { ItemId = 2001391u, ItemCount = 15 }; - span126[1] = new GatheredItem + num3++; + span314[num3] = new GatheredItem { ItemId = 2001392u, ItemCount = 5 @@ -92014,7 +110904,8 @@ public static class AssemblyQuestLoader reference245 = obj228; obj227.Steps = list313; reference244 = obj227; - ref QuestSequence reference246 = ref span124[2]; + num++; + ref QuestSequence reference246 = ref span311[num]; QuestSequence obj229 = new QuestSequence { Sequence = 2 @@ -92022,28 +110913,34 @@ public static class AssemblyQuestLoader num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1009636u, new Vector3(0.015197754f, -46.4906f, 246.1737f), 154) + Span span315 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span315[index2] = new QuestStep(EInteractionType.Interact, 1009636u, new Vector3(0.015197754f, -46.4906f, 246.1737f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj229.Steps = list315; reference246 = obj229; - ref QuestSequence reference247 = ref span124[3]; + num++; + ref QuestSequence reference247 = ref span311[num]; QuestSequence obj230 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + Span span316 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + span316[num2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { Fly = true, Land = true }; obj230.Steps = list316; reference247 = obj230; - ref QuestSequence reference248 = ref span124[4]; + num++; + ref QuestSequence reference248 = ref span311[num]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue @@ -92051,8 +110948,9 @@ public static class AssemblyQuestLoader num2 = 2; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - Span span127 = CollectionsMarshal.AsSpan(list317); - span127[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + Span span317 = CollectionsMarshal.AsSpan(list317); + index2 = 0; + span317[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8106u, ItemCount = 4, @@ -92064,7 +110962,8 @@ public static class AssemblyQuestLoader } } }; - span127[1] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + index2++; + span317[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, Land = true @@ -92082,13 +110981,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Censored"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Censored"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -92096,7 +110998,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -92115,16 +111019,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 2004478u, new Vector3(-108.293274f, -7.2786255f, -51.377197f), 154) { Fly = true, @@ -92133,33 +111039,48 @@ public static class AssemblyQuestLoader int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span span5 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); obj3.CompletionQuestVariablesFlags = list5; reference3 = obj3; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span4[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2004475u, new Vector3(-91.44739f, -5.2644043f, -100.93848f), 154); - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list6; reference4 = questStep; - span2[2] = new QuestStep(EInteractionType.Interact, 2004476u, new Vector3(-123.91852f, -7.736328f, -118.24219f), 154); + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 2004476u, new Vector3(-123.91852f, -7.736328f, -118.24219f), 154); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference5 = ref span[2]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -92167,22 +111088,26 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj4.Steps = list7; reference5 = obj4; - ref QuestSequence reference6 = ref span[3]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span5 = CollectionsMarshal.AsSpan(list8); - span5[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8107u, ItemCount = 1, @@ -92194,7 +111119,8 @@ public static class AssemblyQuestLoader } } }; - span5[1] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + num2++; + span8[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, Land = true @@ -92208,13 +111134,16 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "Censored"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "Censored"; questRoot2.Author = list9; - num = 4; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span6[0]; + index = 4; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span10[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -92222,7 +111151,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -92241,15 +111172,18 @@ public static class AssemblyQuestLoader }; obj6.Steps = list11; reference7 = obj6; - ref QuestSequence reference8 = ref span6[1]; + num++; + ref QuestSequence reference8 = ref span10[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Say, 1009637u, new Vector3(-156.11511f, -9.924311f, -92.5155f), 154) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.Say, 1009637u, new Vector3(-156.11511f, -9.924311f, -92.5155f), 154) { Fly = true, Land = true, @@ -92260,7 +111194,8 @@ public static class AssemblyQuestLoader }; obj7.Steps = list12; reference8 = obj7; - ref QuestSequence reference9 = ref span6[2]; + num++; + ref QuestSequence reference9 = ref span10[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -92268,22 +111203,26 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference10 = ref span6[3]; + num++; + ref QuestSequence reference10 = ref span10[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - Span span7 = CollectionsMarshal.AsSpan(list14); - span7[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8108u, ItemCount = 3, @@ -92295,7 +111234,8 @@ public static class AssemblyQuestLoader } } }; - span7[1] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + num2++; + span14[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, Land = true @@ -92309,13 +111249,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "Censored"; + Span span15 = CollectionsMarshal.AsSpan(list15); + index = 0; + span15[index] = "Censored"; questRoot3.Author = list15; - num = 4; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span8 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span8[0]; + index = 4; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + Span span16 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span16[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -92323,7 +111266,9 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -92342,20 +111287,23 @@ public static class AssemblyQuestLoader }; obj10.Steps = list17; reference11 = obj10; - ref QuestSequence reference12 = ref span8[1]; + num++; + ref QuestSequence reference12 = ref span16[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - Span span9 = CollectionsMarshal.AsSpan(list18); - span9[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + index2 = 2; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference13 = ref span9[1]; + num2++; + ref QuestStep reference13 = ref span18[num2]; QuestStep obj12 = new QuestStep(EInteractionType.Combat, null, new Vector3(76.630516f, 7.3852587f, -54.13745f), 154) { Fly = true, @@ -92364,12 +111312,15 @@ public static class AssemblyQuestLoader num3 = 1; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - CollectionsMarshal.AsSpan(list19)[0] = 29u; + Span span19 = CollectionsMarshal.AsSpan(list19); + num4 = 0; + span19[num4] = 29u; obj12.KillEnemyDataIds = list19; reference13 = obj12; obj11.Steps = list18; reference12 = obj11; - ref QuestSequence reference14 = ref span8[2]; + num++; + ref QuestSequence reference14 = ref span16[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -92377,23 +111328,27 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1008945u, new Vector3(445.45654f, -0.9374095f, -67.36859f), 154) + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new QuestStep(EInteractionType.Interact, 1008945u, new Vector3(445.45654f, -0.9374095f, -67.36859f), 154) { Fly = true, Land = true }; obj13.Steps = list20; reference14 = obj13; - ref QuestSequence reference15 = ref span8[3]; + num++; + ref QuestSequence reference15 = ref span16[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - Span span10 = CollectionsMarshal.AsSpan(list21); - span10[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8110u, ItemCount = 4, @@ -92405,7 +111360,8 @@ public static class AssemblyQuestLoader } } }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + num2++; + span21[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, Land = true @@ -92419,13 +111375,16 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "Censored"; + Span span22 = CollectionsMarshal.AsSpan(list22); + index = 0; + span22[index] = "Censored"; questRoot4.Author = list22; - num = 4; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span11 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference16 = ref span11[0]; + index = 4; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + Span span23 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference16 = ref span23[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -92433,7 +111392,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -92452,46 +111413,59 @@ public static class AssemblyQuestLoader }; obj15.Steps = list24; reference16 = obj15; - ref QuestSequence reference17 = ref span11[1]; + num++; + ref QuestSequence reference17 = ref span23[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - Span span12 = CollectionsMarshal.AsSpan(list25); - span12[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + index2 = 3; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference18 = ref span12[1]; + num2++; + ref QuestStep reference18 = ref span25[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(83.55191f, -42.160282f, 359.22104f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = 747u; + num4 = 1; + List list26 = new List(num4); + CollectionsMarshal.SetCount(list26, num4); + Span span26 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span26[num3] = 747u; obj17.KillEnemyDataIds = list26; num3 = 6; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span13 = CollectionsMarshal.AsSpan(list27); - span13[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = null; + Span span27 = CollectionsMarshal.AsSpan(list27); + num4 = 0; + span27[num4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span27[num4] = null; + num4++; + span27[num4] = null; + num4++; + span27[num4] = null; + num4++; + span27[num4] = null; + num4++; + span27[num4] = null; obj17.CompletionQuestVariablesFlags = list27; reference18 = obj17; - span12[2] = new QuestStep(EInteractionType.Interact, 2004461u, new Vector3(82.993774f, -41.519836f, 362.2339f), 154); + num2++; + span25[num2] = new QuestStep(EInteractionType.Interact, 2004461u, new Vector3(82.993774f, -41.519836f, 362.2339f), 154); obj16.Steps = list25; reference17 = obj16; - ref QuestSequence reference19 = ref span11[2]; + num++; + ref QuestSequence reference19 = ref span23[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -92499,23 +111473,27 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { Fly = true, Land = true }; obj18.Steps = list28; reference19 = obj18; - ref QuestSequence reference20 = ref span11[3]; + num++; + ref QuestSequence reference20 = ref span23[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - Span span14 = CollectionsMarshal.AsSpan(list29); - span14[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8095u, ItemCount = 3, @@ -92527,7 +111505,8 @@ public static class AssemblyQuestLoader } } }; - span14[1] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + num2++; + span29[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true }; @@ -92540,13 +111519,16 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "Censored"; + Span span30 = CollectionsMarshal.AsSpan(list30); + index = 0; + span30[index] = "Censored"; questRoot5.Author = list30; - num = 4; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span15 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference21 = ref span15[0]; + index = 4; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + Span span31 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference21 = ref span31[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -92554,7 +111536,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -92573,21 +111557,25 @@ public static class AssemblyQuestLoader }; obj20.Steps = list32; reference21 = obj20; - ref QuestSequence reference22 = ref span15[1]; + num++; + ref QuestSequence reference22 = ref span31[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 2004464u, new Vector3(25.741943f, -43.442444f, 441.12292f), 154) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.Interact, 2004464u, new Vector3(25.741943f, -43.442444f, 441.12292f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj21.Steps = list33; reference22 = obj21; - ref QuestSequence reference23 = ref span15[2]; + num++; + ref QuestSequence reference23 = ref span31[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 @@ -92595,23 +111583,27 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { Fly = true, Land = true }; obj22.Steps = list34; reference23 = obj22; - ref QuestSequence reference24 = ref span15[3]; + num++; + ref QuestSequence reference24 = ref span31[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span16 = CollectionsMarshal.AsSpan(list35); - span16[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8096u, ItemCount = 2, @@ -92623,7 +111615,8 @@ public static class AssemblyQuestLoader } } }; - span16[1] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + num2++; + span35[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true }; @@ -92636,13 +111629,16 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "Censored"; + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "Censored"; questRoot6.Author = list36; - num = 4; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span17 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference25 = ref span17[0]; + index = 4; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference25 = ref span37[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 @@ -92650,7 +111646,9 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -92669,48 +111667,59 @@ public static class AssemblyQuestLoader }; obj24.Steps = list38; reference25 = obj24; - ref QuestSequence reference26 = ref span17[1]; + num++; + ref QuestSequence reference26 = ref span37[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - Span span18 = CollectionsMarshal.AsSpan(list39); - span18[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + index2 = 2; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference27 = ref span18[1]; + num2++; + ref QuestStep reference27 = ref span39[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(-180.06154f, -60.916454f, 355.63138f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span19 = CollectionsMarshal.AsSpan(list40); - ref ComplexCombatData reference28 = ref span19[0]; + num4 = 2; + List list40 = new List(num4); + CollectionsMarshal.SetCount(list40, num4); + Span span40 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + ref ComplexCombatData reference28 = ref span40[num3]; ComplexCombatData obj27 = new ComplexCombatData { DataId = 30u, MinimumKillCount = 1u }; - int num4 = 6; - List list41 = new List(num4); - CollectionsMarshal.SetCount(list41, num4); - Span span20 = CollectionsMarshal.AsSpan(list41); - span20[0] = null; - span20[1] = null; - span20[2] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span20[3] = null; - span20[4] = null; - span20[5] = null; + int num5 = 6; + List list41 = new List(num5); + CollectionsMarshal.SetCount(list41, num5); + Span span41 = CollectionsMarshal.AsSpan(list41); + int num6 = 0; + span41[num6] = null; + num6++; + span41[num6] = null; + num6++; + span41[num6] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num6++; + span41[num6] = null; + num6++; + span41[num6] = null; + num6++; + span41[num6] = null; obj27.CompletionQuestVariablesFlags = list41; reference28 = obj27; - span19[1] = new ComplexCombatData + num3++; + span40[num3] = new ComplexCombatData { DataId = 3240u, MinimumKillCount = 1u @@ -92719,7 +111728,8 @@ public static class AssemblyQuestLoader reference27 = obj26; obj25.Steps = list39; reference26 = obj25; - ref QuestSequence reference29 = ref span17[2]; + num++; + ref QuestSequence reference29 = ref span37[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -92727,22 +111737,26 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj28.Steps = list42; reference29 = obj28; - ref QuestSequence reference30 = ref span17[3]; + num++; + ref QuestSequence reference30 = ref span37[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span21 = CollectionsMarshal.AsSpan(list43); - span21[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8097u, ItemCount = 1, @@ -92754,7 +111768,8 @@ public static class AssemblyQuestLoader } } }; - span21[1] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + num2++; + span43[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true }; @@ -92767,13 +111782,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "Censored"; + Span span44 = CollectionsMarshal.AsSpan(list44); + index = 0; + span44[index] = "Censored"; questRoot7.Author = list44; - num = 4; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span22 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference31 = ref span22[0]; + index = 4; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + Span span45 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference31 = ref span45[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -92781,7 +111799,9 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -92800,16 +111820,18 @@ public static class AssemblyQuestLoader }; obj30.Steps = list46; reference31 = obj30; - ref QuestSequence reference32 = ref span22[1]; + num++; + ref QuestSequence reference32 = ref span45[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span23 = CollectionsMarshal.AsSpan(list47); - ref QuestStep reference33 = ref span23[0]; + index2 = 2; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + ref QuestStep reference33 = ref span47[num2]; QuestStep obj32 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(18.913702f, -50.22517f, 533.0378f), 154) { TargetTerritoryId = (ushort)148, @@ -92820,12 +111842,15 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = 148; + Span span48 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span48[num4] = 148; skipStepConditions.InTerritory = list48; skipConditions.StepIf = skipStepConditions; obj32.SkipConditions = skipConditions; reference33 = obj32; - span23[1] = new QuestStep(EInteractionType.Say, 1009634u, new Vector3(-410.1778f, 64.43958f, -244.00702f), 148) + num2++; + span47[num2] = new QuestStep(EInteractionType.Say, 1009634u, new Vector3(-410.1778f, 64.43958f, -244.00702f), 148) { Fly = true, ChatMessage = new ChatMessage @@ -92835,7 +111860,8 @@ public static class AssemblyQuestLoader }; obj31.Steps = list47; reference32 = obj31; - ref QuestSequence reference34 = ref span22[2]; + num++; + ref QuestSequence reference34 = ref span45[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -92843,22 +111869,26 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span49[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj33.Steps = list49; reference34 = obj33; - ref QuestSequence reference35 = ref span22[3]; + num++; + ref QuestSequence reference35 = ref span45[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - Span span24 = CollectionsMarshal.AsSpan(list50); - span24[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8098u, ItemCount = 1, @@ -92870,7 +111900,8 @@ public static class AssemblyQuestLoader } } }; - span24[1] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + num2++; + span50[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true }; @@ -92883,13 +111914,16 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "Censored"; + Span span51 = CollectionsMarshal.AsSpan(list51); + index = 0; + span51[index] = "Censored"; questRoot8.Author = list51; - num = 4; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span25 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference36 = ref span25[0]; + index = 4; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + Span span52 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference36 = ref span52[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -92897,7 +111931,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -92916,22 +111952,26 @@ public static class AssemblyQuestLoader }; obj35.Steps = list53; reference36 = obj35; - ref QuestSequence reference37 = ref span25[1]; + num++; + ref QuestSequence reference37 = ref span52[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.Interact, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154) { Fly = true, Land = true }; obj36.Steps = list54; reference37 = obj36; - ref QuestSequence reference38 = ref span25[2]; + num++; + ref QuestSequence reference38 = ref span52[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 @@ -92939,22 +111979,26 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj37.Steps = list55; reference38 = obj37; - ref QuestSequence reference39 = ref span25[3]; + num++; + ref QuestSequence reference39 = ref span52[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span26 = CollectionsMarshal.AsSpan(list56); - span26[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8099u, ItemCount = 2, @@ -92966,7 +112010,8 @@ public static class AssemblyQuestLoader } } }; - span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + num2++; + span56[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true }; @@ -92979,13 +112024,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "Censored"; + Span span57 = CollectionsMarshal.AsSpan(list57); + index = 0; + span57[index] = "Censored"; questRoot9.Author = list57; - num = 5; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span27 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference40 = ref span27[0]; + index = 5; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + Span span58 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference40 = ref span58[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 @@ -92993,7 +112041,9 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -93013,16 +112063,18 @@ public static class AssemblyQuestLoader }; obj39.Steps = list59; reference40 = obj39; - ref QuestSequence reference41 = ref span27[1]; + num++; + ref QuestSequence reference41 = ref span58[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - Span span28 = CollectionsMarshal.AsSpan(list60); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + index2 = 2; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -93038,10 +112090,12 @@ public static class AssemblyQuestLoader } } }; - span28[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + num2++; + span60[num2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj40.Steps = list60; reference41 = obj40; - ref QuestSequence reference42 = ref span27[2]; + num++; + ref QuestSequence reference42 = ref span58[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 @@ -93049,23 +112103,27 @@ public static class AssemblyQuestLoader num2 = 2; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span29 = CollectionsMarshal.AsSpan(list61); - span29[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 156) + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 156) { TargetClass = EExtendedClassJob.Botanist }; - ref QuestStep reference43 = ref span29[1]; + index2++; + ref QuestStep reference43 = ref span61[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Gather, null, null, 156); - num3 = 2; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span30 = CollectionsMarshal.AsSpan(list62); - span30[0] = new GatheredItem + num4 = 2; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + Span span62 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span62[num3] = new GatheredItem { ItemId = 2001412u, ItemCount = 15 }; - span30[1] = new GatheredItem + num3++; + span62[num3] = new GatheredItem { ItemId = 2001413u, ItemCount = 5 @@ -93074,16 +112132,18 @@ public static class AssemblyQuestLoader reference43 = questStep2; obj41.Steps = list61; reference42 = obj41; - ref QuestSequence reference44 = ref span27[3]; + num++; + ref QuestSequence reference44 = ref span58[num]; QuestSequence obj42 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span31 = CollectionsMarshal.AsSpan(list63); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + index2 = 2; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -93099,10 +112159,12 @@ public static class AssemblyQuestLoader } } }; - span31[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + num2++; + span63[num2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj42.Steps = list63; reference44 = obj42; - ref QuestSequence reference45 = ref span27[4]; + num++; + ref QuestSequence reference45 = ref span58[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue @@ -93110,8 +112172,9 @@ public static class AssemblyQuestLoader num2 = 2; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span32 = CollectionsMarshal.AsSpan(list64); - span32[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8113u, ItemCount = 2, @@ -93123,7 +112186,8 @@ public static class AssemblyQuestLoader } } }; - span32[1] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + index2++; + span64[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -93150,21 +112214,26 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "Censored"; + Span span65 = CollectionsMarshal.AsSpan(list65); + index = 0; + span65[index] = "Censored"; questRoot10.Author = list65; - num = 5; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span33 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference46 = ref span33[0]; + index = 5; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + Span span66 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference46 = ref span66[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -93184,7 +112253,8 @@ public static class AssemblyQuestLoader }; obj44.Steps = list67; reference46 = obj44; - ref QuestSequence reference47 = ref span33[1]; + num++; + ref QuestSequence reference47 = ref span66[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 @@ -93192,8 +112262,9 @@ public static class AssemblyQuestLoader num2 = 2; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span34 = CollectionsMarshal.AsSpan(list68); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -93209,34 +112280,40 @@ public static class AssemblyQuestLoader } } }; - span34[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + index2++; + span68[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj45.Steps = list68; reference47 = obj45; - ref QuestSequence reference48 = ref span33[2]; + num++; + ref QuestSequence reference48 = ref span66[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - Span span35 = CollectionsMarshal.AsSpan(list69); - span35[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 156) + index2 = 2; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 156) { TargetClass = EExtendedClassJob.Miner }; - ref QuestStep reference49 = ref span35[1]; + num2++; + ref QuestStep reference49 = ref span69[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 156); num3 = 2; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span36 = CollectionsMarshal.AsSpan(list70); - span36[0] = new GatheredItem + Span span70 = CollectionsMarshal.AsSpan(list70); + num4 = 0; + span70[num4] = new GatheredItem { ItemId = 2001415u, ItemCount = 15 }; - span36[1] = new GatheredItem + num4++; + span70[num4] = new GatheredItem { ItemId = 2001416u, ItemCount = 5 @@ -93245,7 +112322,8 @@ public static class AssemblyQuestLoader reference49 = questStep3; obj46.Steps = list69; reference48 = obj46; - ref QuestSequence reference50 = ref span33[3]; + num++; + ref QuestSequence reference50 = ref span66[num]; QuestSequence obj47 = new QuestSequence { Sequence = 3 @@ -93253,8 +112331,9 @@ public static class AssemblyQuestLoader num2 = 2; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span37 = CollectionsMarshal.AsSpan(list71); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -93270,19 +112349,22 @@ public static class AssemblyQuestLoader } } }; - span37[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + index2++; + span71[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj47.Steps = list71; reference50 = obj47; - ref QuestSequence reference51 = ref span33[4]; + num++; + ref QuestSequence reference51 = ref span66[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span38 = CollectionsMarshal.AsSpan(list72); - span38[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8114u, ItemCount = 1, @@ -93294,7 +112376,8 @@ public static class AssemblyQuestLoader } } }; - span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + num2++; + span72[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -93321,13 +112404,16 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "Censored"; + Span span73 = CollectionsMarshal.AsSpan(list73); + index = 0; + span73[index] = "Censored"; questRoot11.Author = list73; - num = 5; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span39 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference52 = ref span39[0]; + index = 5; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + Span span74 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference52 = ref span74[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -93335,7 +112421,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -93355,16 +112443,18 @@ public static class AssemblyQuestLoader }; obj49.Steps = list75; reference52 = obj49; - ref QuestSequence reference53 = ref span39[1]; + num++; + ref QuestSequence reference53 = ref span74[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span40 = CollectionsMarshal.AsSpan(list76); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + index2 = 2; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -93380,10 +112470,12 @@ public static class AssemblyQuestLoader } } }; - span40[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + num2++; + span76[num2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj50.Steps = list76; reference53 = obj50; - ref QuestSequence reference54 = ref span39[2]; + num++; + ref QuestSequence reference54 = ref span74[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -93391,22 +112483,26 @@ public static class AssemblyQuestLoader num2 = 2; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span41 = CollectionsMarshal.AsSpan(list77); - span41[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference55 = ref span41[1]; + index2++; + ref QuestStep reference55 = ref span77[index2]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, null, new Vector3(-339.69962f, -17.148405f, -433.59454f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = 140u; + num4 = 1; + List list78 = new List(num4); + CollectionsMarshal.SetCount(list78, num4); + Span span78 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span78[num3] = 140u; obj52.KillEnemyDataIds = list78; obj52.SkipConditions = new SkipConditions { @@ -93423,16 +112519,18 @@ public static class AssemblyQuestLoader reference55 = obj52; obj51.Steps = list77; reference54 = obj51; - ref QuestSequence reference56 = ref span39[3]; + num++; + ref QuestSequence reference56 = ref span74[num]; QuestSequence obj53 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span42 = CollectionsMarshal.AsSpan(list79); - span42[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + index2 = 2; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -93448,10 +112546,12 @@ public static class AssemblyQuestLoader } } }; - span42[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + num2++; + span79[num2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj53.Steps = list79; reference56 = obj53; - ref QuestSequence reference57 = ref span39[4]; + num++; + ref QuestSequence reference57 = ref span74[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -93459,8 +112559,9 @@ public static class AssemblyQuestLoader num2 = 2; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span43 = CollectionsMarshal.AsSpan(list80); - span43[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8115u, ItemCount = 2, @@ -93472,7 +112573,8 @@ public static class AssemblyQuestLoader } } }; - span43[1] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + index2++; + span80[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -93499,21 +112601,26 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "Censored"; + Span span81 = CollectionsMarshal.AsSpan(list81); + index = 0; + span81[index] = "Censored"; questRoot12.Author = list81; - num = 5; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span44 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference58 = ref span44[0]; + index = 5; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + Span span82 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference58 = ref span82[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -93533,7 +112640,8 @@ public static class AssemblyQuestLoader }; obj55.Steps = list83; reference58 = obj55; - ref QuestSequence reference59 = ref span44[1]; + num++; + ref QuestSequence reference59 = ref span82[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -93541,8 +112649,9 @@ public static class AssemblyQuestLoader num2 = 2; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span45 = CollectionsMarshal.AsSpan(list84); - span45[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -93558,23 +112667,27 @@ public static class AssemblyQuestLoader } } }; - span45[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + index2++; + span84[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj56.Steps = list84; reference59 = obj56; - ref QuestSequence reference60 = ref span44[2]; + num++; + ref QuestSequence reference60 = ref span82[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span46 = CollectionsMarshal.AsSpan(list85); - span46[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + index2 = 3; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span85[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference61 = ref span46[1]; + num2++; + ref QuestStep reference61 = ref span85[num2]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, null, new Vector3(-512.7902f, -4.0678735f, -442.46564f), 156) { Fly = true, @@ -93584,22 +112697,30 @@ public static class AssemblyQuestLoader num3 = 1; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - ref ComplexCombatData reference62 = ref CollectionsMarshal.AsSpan(list86)[0]; + Span span86 = CollectionsMarshal.AsSpan(list86); + num4 = 0; + ref ComplexCombatData reference62 = ref span86[num4]; ComplexCombatData obj59 = new ComplexCombatData { DataId = 2983u, MinimumKillCount = 1u }; - num4 = 6; - List list87 = new List(num4); - CollectionsMarshal.SetCount(list87, num4); - Span span47 = CollectionsMarshal.AsSpan(list87); - span47[0] = null; - span47[1] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = null; + num6 = 6; + List list87 = new List(num6); + CollectionsMarshal.SetCount(list87, num6); + Span span87 = CollectionsMarshal.AsSpan(list87); + num5 = 0; + span87[num5] = null; + num5++; + span87[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span87[num5] = null; + num5++; + span87[num5] = null; + num5++; + span87[num5] = null; + num5++; + span87[num5] = null; obj59.CompletionQuestVariablesFlags = list87; reference62 = obj59; obj58.ComplexCombatData = list86; @@ -93615,22 +112736,30 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span48 = CollectionsMarshal.AsSpan(list88); - span48[0] = null; - span48[1] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = null; + num4 = 6; + List list88 = new List(num4); + CollectionsMarshal.SetCount(list88, num4); + Span span88 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span88[num3] = null; + num3++; + span88[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; obj58.CompletionQuestVariablesFlags = list88; reference61 = obj58; - span46[2] = new QuestStep(EInteractionType.Interact, 2004479u, new Vector3(-513.0541f, -4.043701f, -442.46588f), 156); + num2++; + span85[num2] = new QuestStep(EInteractionType.Interact, 2004479u, new Vector3(-513.0541f, -4.043701f, -442.46588f), 156); obj57.Steps = list85; reference60 = obj57; - ref QuestSequence reference63 = ref span44[3]; + num++; + ref QuestSequence reference63 = ref span82[num]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -93638,8 +112767,9 @@ public static class AssemblyQuestLoader num2 = 2; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span49 = CollectionsMarshal.AsSpan(list89); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -93655,19 +112785,22 @@ public static class AssemblyQuestLoader } } }; - span49[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + index2++; + span89[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj60.Steps = list89; reference63 = obj60; - ref QuestSequence reference64 = ref span44[4]; + num++; + ref QuestSequence reference64 = ref span82[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span50 = CollectionsMarshal.AsSpan(list90); - span50[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8117u, ItemCount = 1, @@ -93679,7 +112812,8 @@ public static class AssemblyQuestLoader } } }; - span50[1] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + num2++; + span90[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -93706,13 +112840,16 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "Censored"; + Span span91 = CollectionsMarshal.AsSpan(list91); + index = 0; + span91[index] = "Censored"; questRoot13.Author = list91; - num = 4; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span51 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference65 = ref span51[0]; + index = 4; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + Span span92 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference65 = ref span92[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -93720,8 +112857,9 @@ public static class AssemblyQuestLoader num2 = 2; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span52 = CollectionsMarshal.AsSpan(list93); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -93739,19 +112877,22 @@ public static class AssemblyQuestLoader } } }; - span52[1] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + index2++; + span93[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj62.Steps = list93; reference65 = obj62; - ref QuestSequence reference66 = ref span51[1]; + num++; + ref QuestSequence reference66 = ref span92[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span53 = CollectionsMarshal.AsSpan(list94); - ref QuestStep reference67 = ref span53[0]; + index2 = 2; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref QuestStep reference67 = ref span94[num2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1000776u, new Vector3(115.342896f, 287.02945f, 142.1377f), 155) { Fly = true, @@ -93767,16 +112908,23 @@ public static class AssemblyQuestLoader num3 = 6; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - Span span54 = CollectionsMarshal.AsSpan(list95); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span95 = CollectionsMarshal.AsSpan(list95); + num4 = 0; + span95[num4] = null; + num4++; + span95[num4] = null; + num4++; + span95[num4] = null; + num4++; + span95[num4] = null; + num4++; + span95[num4] = null; + num4++; + span95[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj64.CompletionQuestVariablesFlags = list95; reference67 = obj64; - span53[1] = new QuestStep(EInteractionType.Say, 1009639u, new Vector3(59.952637f, 298.56396f, 176.25696f), 155) + num2++; + span94[num2] = new QuestStep(EInteractionType.Say, 1009639u, new Vector3(59.952637f, 298.56396f, 176.25696f), 155) { Fly = true, ChatMessage = new ChatMessage @@ -93786,7 +112934,8 @@ public static class AssemblyQuestLoader }; obj63.Steps = list94; reference66 = obj63; - ref QuestSequence reference68 = ref span51[2]; + num++; + ref QuestSequence reference68 = ref span92[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -93794,25 +112943,29 @@ public static class AssemblyQuestLoader num2 = 2; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span55 = CollectionsMarshal.AsSpan(list96); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) { Fly = true, Land = true }; - span55[1] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); + index2++; + span96[index2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); obj65.Steps = list96; reference68 = obj65; - ref QuestSequence reference69 = ref span51[3]; + num++; + ref QuestSequence reference69 = ref span92[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - Span span56 = CollectionsMarshal.AsSpan(list97); - ref QuestStep reference70 = ref span56[0]; + index2 = 3; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + ref QuestStep reference70 = ref span97[num2]; QuestStep obj67 = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8101u, @@ -93825,13 +112978,16 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = EExtendedClassJob.DoH; + num4 = 1; + List list98 = new List(num4); + CollectionsMarshal.SetCount(list98, num4); + Span span98 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span98[num3] = EExtendedClassJob.DoH; obj67.RequiredCurrentJob = list98; reference70 = obj67; - span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + num2++; + span97[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -93849,7 +113005,8 @@ public static class AssemblyQuestLoader } } }; - span56[2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + num2++; + span97[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj66.Steps = list97; reference69 = obj66; questRoot13.QuestSequence = list92; @@ -93864,13 +113021,16 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "Censored"; + Span span99 = CollectionsMarshal.AsSpan(list99); + index = 0; + span99[index] = "Censored"; questRoot14.Author = list99; - num = 4; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span57 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference71 = ref span57[0]; + index = 4; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + Span span100 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference71 = ref span100[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 @@ -93878,8 +113038,9 @@ public static class AssemblyQuestLoader num2 = 2; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span58 = CollectionsMarshal.AsSpan(list101); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -93897,23 +113058,27 @@ public static class AssemblyQuestLoader } } }; - span58[1] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + index2++; + span101[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj68.Steps = list101; reference71 = obj68; - ref QuestSequence reference72 = ref span57[1]; + num++; + ref QuestSequence reference72 = ref span100[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span59 = CollectionsMarshal.AsSpan(list102); - span59[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 155) + index2 = 2; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 155) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference73 = ref span59[1]; + num2++; + ref QuestStep reference73 = ref span102[num2]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, null, new Vector3(-238.96973f, 225.51239f, 425.29025f), 155) { Fly = true, @@ -93923,7 +113088,9 @@ public static class AssemblyQuestLoader num3 = 1; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = 191u; + Span span103 = CollectionsMarshal.AsSpan(list103); + num4 = 0; + span103[num4] = 191u; obj70.KillEnemyDataIds = list103; obj70.SkipConditions = new SkipConditions { @@ -93935,7 +113102,8 @@ public static class AssemblyQuestLoader reference73 = obj70; obj69.Steps = list102; reference72 = obj69; - ref QuestSequence reference74 = ref span57[2]; + num++; + ref QuestSequence reference74 = ref span100[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -93943,25 +113111,29 @@ public static class AssemblyQuestLoader num2 = 2; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span60 = CollectionsMarshal.AsSpan(list104); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) { Fly = true, Land = true }; - span60[1] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); + index2++; + span104[index2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); obj71.Steps = list104; reference74 = obj71; - ref QuestSequence reference75 = ref span57[3]; + num++; + ref QuestSequence reference75 = ref span100[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - Span span61 = CollectionsMarshal.AsSpan(list105); - span61[0] = new QuestStep(EInteractionType.Craft, null, null, 155) + index2 = 3; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8103u, ItemCount = 1, @@ -93973,7 +113145,8 @@ public static class AssemblyQuestLoader } } }; - span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + num2++; + span105[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -93991,7 +113164,8 @@ public static class AssemblyQuestLoader } } }; - span61[2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + num2++; + span105[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj72.Steps = list105; reference75 = obj72; questRoot14.QuestSequence = list100; @@ -94001,13 +113175,16 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "Censored"; + Span span106 = CollectionsMarshal.AsSpan(list106); + index = 0; + span106[index] = "Censored"; questRoot15.Author = list106; - num = 5; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - Span span62 = CollectionsMarshal.AsSpan(list107); - ref QuestSequence reference76 = ref span62[0]; + index = 5; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + Span span107 = CollectionsMarshal.AsSpan(list107); + num = 0; + ref QuestSequence reference76 = ref span107[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 @@ -94015,8 +113192,9 @@ public static class AssemblyQuestLoader num2 = 2; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span63 = CollectionsMarshal.AsSpan(list108); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -94034,19 +113212,22 @@ public static class AssemblyQuestLoader } } }; - span63[1] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + index2++; + span108[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj73.Steps = list108; reference76 = obj73; - ref QuestSequence reference77 = ref span62[1]; + num++; + ref QuestSequence reference77 = ref span107[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span64 = CollectionsMarshal.AsSpan(list109); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) + index2 = 2; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) { Fly = true, Land = true, @@ -94059,10 +113240,12 @@ public static class AssemblyQuestLoader } } }; - span64[1] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); + num2++; + span109[num2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); obj74.Steps = list109; reference77 = obj74; - ref QuestSequence reference78 = ref span62[2]; + num++; + ref QuestSequence reference78 = ref span107[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 @@ -94070,38 +113253,46 @@ public static class AssemblyQuestLoader num2 = 3; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span65 = CollectionsMarshal.AsSpan(list110); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155); - span65[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(195.20084f, 307.86295f, 411.4291f), 155) + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155); + index2++; + span110[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(195.20084f, 307.86295f, 411.4291f), 155) { Fly = true, Land = true }; - span65[2] = new QuestStep(EInteractionType.Interact, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155); + index2++; + span110[index2] = new QuestStep(EInteractionType.Interact, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155); obj75.Steps = list110; reference78 = obj75; - ref QuestSequence reference79 = ref span62[3]; + num++; + ref QuestSequence reference79 = ref span107[num]; QuestSequence obj76 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span66 = CollectionsMarshal.AsSpan(list111); - span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(195.20084f, 307.86295f, 411.4291f), 155) + index2 = 3; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(195.20084f, 307.86295f, 411.4291f), 155) { Mount = true }; - span66[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) + num2++; + span111[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) { Fly = true, Land = true }; - span66[2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); + num2++; + span111[num2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); obj76.Steps = list111; reference79 = obj76; - ref QuestSequence reference80 = ref span62[4]; + num++; + ref QuestSequence reference80 = ref span107[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -94109,8 +113300,9 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span67 = CollectionsMarshal.AsSpan(list112); - span67[0] = new QuestStep(EInteractionType.Craft, null, null, 155) + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8104u, ItemCount = 1, @@ -94122,7 +113314,8 @@ public static class AssemblyQuestLoader } } }; - span67[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + index2++; + span112[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -94140,7 +113333,8 @@ public static class AssemblyQuestLoader } } }; - span67[2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + index2++; + span112[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj77.Steps = list112; reference80 = obj77; questRoot15.QuestSequence = list107; @@ -94150,21 +113344,26 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - CollectionsMarshal.AsSpan(list113)[0] = "Censored"; + Span span113 = CollectionsMarshal.AsSpan(list113); + index = 0; + span113[index] = "Censored"; questRoot16.Author = list113; - num = 5; - List list114 = new List(num); - CollectionsMarshal.SetCount(list114, num); - Span span68 = CollectionsMarshal.AsSpan(list114); - ref QuestSequence reference81 = ref span68[0]; + index = 5; + List list114 = new List(index); + CollectionsMarshal.SetCount(list114, index); + Span span114 = CollectionsMarshal.AsSpan(list114); + num = 0; + ref QuestSequence reference81 = ref span114[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span115[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -94184,7 +113383,8 @@ public static class AssemblyQuestLoader }; obj78.Steps = list115; reference81 = obj78; - ref QuestSequence reference82 = ref span68[1]; + num++; + ref QuestSequence reference82 = ref span114[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -94192,8 +113392,9 @@ public static class AssemblyQuestLoader num2 = 2; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span69 = CollectionsMarshal.AsSpan(list116); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -94209,33 +113410,39 @@ public static class AssemblyQuestLoader } } }; - span69[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + index2++; + span116[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj79.Steps = list116; reference82 = obj79; - ref QuestSequence reference83 = ref span68[2]; + num++; + ref QuestSequence reference83 = ref span114[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - Span span70 = CollectionsMarshal.AsSpan(list117); - span70[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 156) + index2 = 4; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 156) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference84 = ref span70[1]; + num2++; + ref QuestStep reference84 = ref span117[num2]; QuestStep obj81 = new QuestStep(EInteractionType.Combat, 1009669u, new Vector3(-134.47784f, -1.2726249f, -637.7814f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = 725u; + num4 = 1; + List list118 = new List(num4); + CollectionsMarshal.SetCount(list118, num4); + Span span118 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span118[num3] = 725u; obj81.KillEnemyDataIds = list118; obj81.SkipConditions = new SkipConditions { @@ -94252,51 +113459,70 @@ public static class AssemblyQuestLoader num3 = 6; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - Span span71 = CollectionsMarshal.AsSpan(list119); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span119 = CollectionsMarshal.AsSpan(list119); + num4 = 0; + span119[num4] = null; + num4++; + span119[num4] = null; + num4++; + span119[num4] = null; + num4++; + span119[num4] = null; + num4++; + span119[num4] = null; + num4++; + span119[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj81.CompletionQuestVariablesFlags = list119; reference84 = obj81; - ref QuestStep reference85 = ref span70[2]; + num2++; + ref QuestStep reference85 = ref span117[num2]; QuestStep obj82 = new QuestStep(EInteractionType.Combat, 1009640u, new Vector3(-143.45007f, 3.3107295f, -663.99634f), 156) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - CollectionsMarshal.AsSpan(list120)[0] = 725u; + num4 = 1; + List list120 = new List(num4); + CollectionsMarshal.SetCount(list120, num4); + Span span120 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + span120[num3] = 725u; obj82.KillEnemyDataIds = list120; num3 = 6; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - Span span72 = CollectionsMarshal.AsSpan(list121); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span121 = CollectionsMarshal.AsSpan(list121); + num4 = 0; + span121[num4] = null; + num4++; + span121[num4] = null; + num4++; + span121[num4] = null; + num4++; + span121[num4] = null; + num4++; + span121[num4] = null; + num4++; + span121[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj82.CompletionQuestVariablesFlags = list121; reference85 = obj82; - ref QuestStep reference86 = ref span70[3]; + num2++; + ref QuestStep reference86 = ref span117[num2]; QuestStep obj83 = new QuestStep(EInteractionType.Combat, 1009670u, new Vector3(-189.28821f, 4.6535096f, -654.9325f), 156) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = 725u; + num4 = 1; + List list122 = new List(num4); + CollectionsMarshal.SetCount(list122, num4); + Span span122 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + span122[num3] = 725u; obj83.KillEnemyDataIds = list122; reference86 = obj83; obj80.Steps = list117; reference83 = obj80; - ref QuestSequence reference87 = ref span68[3]; + num++; + ref QuestSequence reference87 = ref span114[num]; QuestSequence obj84 = new QuestSequence { Sequence = 3 @@ -94304,8 +113530,9 @@ public static class AssemblyQuestLoader num2 = 2; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span73 = CollectionsMarshal.AsSpan(list123); - span73[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -94321,19 +113548,22 @@ public static class AssemblyQuestLoader } } }; - span73[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + index2++; + span123[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj84.Steps = list123; reference87 = obj84; - ref QuestSequence reference88 = ref span68[4]; + num++; + ref QuestSequence reference88 = ref span114[num]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - Span span74 = CollectionsMarshal.AsSpan(list124); - span74[0] = new QuestStep(EInteractionType.Craft, null, null, 154) + index2 = 2; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8118u, ItemCount = 2, @@ -94345,7 +113575,8 @@ public static class AssemblyQuestLoader } } }; - span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + num2++; + span124[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -94372,13 +113603,16 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "Censored"; + Span span125 = CollectionsMarshal.AsSpan(list125); + index = 0; + span125[index] = "Censored"; questRoot17.Author = list125; - num = 5; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span75 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference89 = ref span75[0]; + index = 5; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + Span span126 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference89 = ref span126[num]; QuestSequence obj86 = new QuestSequence { Sequence = 0 @@ -94386,7 +113620,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -94406,31 +113642,36 @@ public static class AssemblyQuestLoader }; obj86.Steps = list127; reference89 = obj86; - ref QuestSequence reference90 = ref span75[1]; + num++; + ref QuestSequence reference90 = ref span126[num]; QuestSequence obj87 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span76 = CollectionsMarshal.AsSpan(list128); - span76[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 155) + index2 = 2; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.SwitchClass, null, null, 155) { TargetClass = EExtendedClassJob.Botanist }; - ref QuestStep reference91 = ref span76[1]; + num2++; + ref QuestStep reference91 = ref span128[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Gather, null, null, 155); num3 = 2; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span77 = CollectionsMarshal.AsSpan(list129); - span77[0] = new GatheredItem + Span span129 = CollectionsMarshal.AsSpan(list129); + num4 = 0; + span129[num4] = new GatheredItem { ItemId = 2001424u, ItemCount = 15 }; - span77[1] = new GatheredItem + num4++; + span129[num4] = new GatheredItem { ItemId = 2001425u, ItemCount = 5 @@ -94439,7 +113680,8 @@ public static class AssemblyQuestLoader reference91 = questStep4; obj87.Steps = list128; reference90 = obj87; - ref QuestSequence reference92 = ref span75[2]; + num++; + ref QuestSequence reference92 = ref span126[num]; QuestSequence obj88 = new QuestSequence { Sequence = 2 @@ -94447,24 +113689,30 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1009646u, new Vector3(246.78406f, 302f, -256.64148f), 155) + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span130[index2] = new QuestStep(EInteractionType.Interact, 1009646u, new Vector3(246.78406f, 302f, -256.64148f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj88.Steps = list130; reference92 = obj88; - ref QuestSequence reference93 = ref span75[3]; + num++; + ref QuestSequence reference93 = ref span126[num]; QuestSequence obj89 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155); + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span131[num2] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155); obj89.Steps = list131; reference93 = obj89; - ref QuestSequence reference94 = ref span75[4]; + num++; + ref QuestSequence reference94 = ref span126[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -94472,8 +113720,9 @@ public static class AssemblyQuestLoader num2 = 2; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span78 = CollectionsMarshal.AsSpan(list132); - span78[0] = new QuestStep(EInteractionType.Craft, null, null, 155) + Span span132 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span132[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8121u, ItemCount = 2, @@ -94485,7 +113734,8 @@ public static class AssemblyQuestLoader } } }; - span78[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2++; + span132[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -94512,21 +113762,26 @@ public static class AssemblyQuestLoader num = 1; List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - CollectionsMarshal.AsSpan(list133)[0] = "Censored"; + Span span133 = CollectionsMarshal.AsSpan(list133); + index = 0; + span133[index] = "Censored"; questRoot18.Author = list133; - num = 5; - List list134 = new List(num); - CollectionsMarshal.SetCount(list134, num); - Span span79 = CollectionsMarshal.AsSpan(list134); - ref QuestSequence reference95 = ref span79[0]; + index = 5; + List list134 = new List(index); + CollectionsMarshal.SetCount(list134, index); + Span span134 = CollectionsMarshal.AsSpan(list134); + num = 0; + ref QuestSequence reference95 = ref span134[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span135[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -94546,7 +113801,8 @@ public static class AssemblyQuestLoader }; obj91.Steps = list135; reference95 = obj91; - ref QuestSequence reference96 = ref span79[1]; + num++; + ref QuestSequence reference96 = ref span134[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -94554,23 +113810,27 @@ public static class AssemblyQuestLoader num2 = 2; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span80 = CollectionsMarshal.AsSpan(list136); - span80[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 155) + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span136[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 155) { TargetClass = EExtendedClassJob.Miner }; - ref QuestStep reference97 = ref span80[1]; + index2++; + ref QuestStep reference97 = ref span136[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Gather, null, null, 155); - num3 = 2; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - Span span81 = CollectionsMarshal.AsSpan(list137); - span81[0] = new GatheredItem + num4 = 2; + List list137 = new List(num4); + CollectionsMarshal.SetCount(list137, num4); + Span span137 = CollectionsMarshal.AsSpan(list137); + num3 = 0; + span137[num3] = new GatheredItem { ItemId = 2001426u, ItemCount = 15 }; - span81[1] = new GatheredItem + num3++; + span137[num3] = new GatheredItem { ItemId = 2001427u, ItemCount = 5 @@ -94579,21 +113839,25 @@ public static class AssemblyQuestLoader reference97 = questStep5; obj92.Steps = list136; reference96 = obj92; - ref QuestSequence reference98 = ref span79[2]; + num++; + ref QuestSequence reference98 = ref span134[num]; QuestSequence obj93 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1009647u, new Vector3(204.97437f, 302.26498f, -250.84308f), 155) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.Interact, 1009647u, new Vector3(204.97437f, 302.26498f, -250.84308f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj93.Steps = list138; reference98 = obj93; - ref QuestSequence reference99 = ref span79[3]; + num++; + ref QuestSequence reference99 = ref span134[num]; QuestSequence obj94 = new QuestSequence { Sequence = 3 @@ -94601,19 +113865,23 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155); + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155); obj94.Steps = list139; reference99 = obj94; - ref QuestSequence reference100 = ref span79[4]; + num++; + ref QuestSequence reference100 = ref span134[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - Span span82 = CollectionsMarshal.AsSpan(list140); - span82[0] = new QuestStep(EInteractionType.Craft, null, null, 155) + index2 = 2; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8122u, ItemCount = 2, @@ -94625,7 +113893,8 @@ public static class AssemblyQuestLoader } } }; - span82[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + num2++; + span140[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -94652,13 +113921,16 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "Censored"; + Span span141 = CollectionsMarshal.AsSpan(list141); + index = 0; + span141[index] = "Censored"; questRoot19.Author = list141; - num = 5; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span83 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference101 = ref span83[0]; + index = 5; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + Span span142 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference101 = ref span142[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -94666,7 +113938,9 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -94686,18 +113960,22 @@ public static class AssemblyQuestLoader }; obj96.Steps = list143; reference101 = obj96; - ref QuestSequence reference102 = ref span83[1]; + num++; + ref QuestSequence reference102 = ref span142[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154); + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.Interact, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154); obj97.Steps = list144; reference102 = obj97; - ref QuestSequence reference103 = ref span83[2]; + num++; + ref QuestSequence reference103 = ref span142[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 @@ -94705,7 +113983,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1009648u, new Vector3(-174.60901f, 304.1538f, -322.4079f), 155) + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.Interact, 1009648u, new Vector3(-174.60901f, 304.1538f, -322.4079f), 155) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -94716,21 +113996,25 @@ public static class AssemblyQuestLoader }; obj98.Steps = list145; reference103 = obj98; - ref QuestSequence reference104 = ref span83[3]; + num++; + ref QuestSequence reference104 = ref span142[num]; QuestSequence obj99 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj99.Steps = list146; reference104 = obj99; - ref QuestSequence reference105 = ref span83[4]; + num++; + ref QuestSequence reference105 = ref span142[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -94738,8 +114022,9 @@ public static class AssemblyQuestLoader num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span84 = CollectionsMarshal.AsSpan(list147); - span84[0] = new QuestStep(EInteractionType.Craft, null, null, 155) + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8123u, ItemCount = 3, @@ -94751,7 +114036,8 @@ public static class AssemblyQuestLoader } } }; - span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2++; + span147[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -94778,21 +114064,26 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "liza"; + Span span148 = CollectionsMarshal.AsSpan(list148); + index = 0; + span148[index] = "liza"; questRoot20.Author = list148; - num = 2; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span85 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference106 = ref span85[0]; + index = 2; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + Span span149 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference106 = ref span149[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - ref QuestStep reference107 = ref CollectionsMarshal.AsSpan(list150)[0]; + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + ref QuestStep reference107 = ref span150[num2]; QuestStep obj102 = new QuestStep(EInteractionType.AcceptQuest, 1003550u, new Vector3(76.85962f, 39.99632f, 78.99597f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -94810,14 +114101,17 @@ public static class AssemblyQuestLoader num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = 128; + Span span151 = CollectionsMarshal.AsSpan(list151); + num4 = 0; + span151[num4] = 128; obj103.InTerritory = list151; skipConditions2.AetheryteShortcutIf = obj103; obj102.SkipConditions = skipConditions2; reference107 = obj102; obj101.Steps = list150; reference106 = obj101; - ref QuestSequence reference108 = ref span85[1]; + num++; + ref QuestSequence reference108 = ref span149[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue @@ -94825,7 +114119,9 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009236u, new Vector3(-20.431885f, 91.99992f, -1.3886108f), 128) + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span152[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009236u, new Vector3(-20.431885f, 91.99992f, -1.3886108f), 128) { AethernetShortcut = new AethernetShortcut { @@ -94842,24 +114138,30 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - CollectionsMarshal.AsSpan(list153)[0] = "liza"; + Span span153 = CollectionsMarshal.AsSpan(list153); + index = 0; + span153[index] = "liza"; questRoot21.Author = list153; - num = 5; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - Span span86 = CollectionsMarshal.AsSpan(list154); - ref QuestSequence reference109 = ref span86[0]; + index = 5; + List list154 = new List(index); + CollectionsMarshal.SetCount(list154, index); + Span span154 = CollectionsMarshal.AsSpan(list154); + num = 0; + ref QuestSequence reference109 = ref span154[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132); + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span155[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132); obj105.Steps = list155; reference109 = obj105; - ref QuestSequence reference110 = ref span86[1]; + num++; + ref QuestSequence reference110 = ref span154[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -94867,30 +114169,36 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152) + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new QuestStep(EInteractionType.Interact, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj106.Steps = list156; reference110 = obj106; - ref QuestSequence reference111 = ref span86[2]; + num++; + ref QuestSequence reference111 = ref span154[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - Span span87 = CollectionsMarshal.AsSpan(list157); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.12068f, -31.484615f, -218.4991f), 152) + index2 = 2; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span157[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.12068f, -31.484615f, -218.4991f), 152) { Fly = true }; - span87[1] = new QuestStep(EInteractionType.Interact, 2004430u, new Vector3(198.2909f, -29.83142f, -220.44714f), 152); + num2++; + span157[num2] = new QuestStep(EInteractionType.Interact, 2004430u, new Vector3(198.2909f, -29.83142f, -220.44714f), 152); obj107.Steps = list157; reference111 = obj107; - ref QuestSequence reference112 = ref span86[3]; + num++; + ref QuestSequence reference112 = ref span154[num]; QuestSequence obj108 = new QuestSequence { Sequence = 3 @@ -94898,7 +114206,9 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Duty, null, null, 152) + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.Duty, null, null, 152) { DutyOptions = new DutyOptions { @@ -94907,26 +114217,31 @@ public static class AssemblyQuestLoader }; obj108.Steps = list158; reference112 = obj108; - ref QuestSequence reference113 = ref span86[4]; + num++; + ref QuestSequence reference113 = ref span154[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span88 = CollectionsMarshal.AsSpan(list159); - span88[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) + index2 = 4; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span88[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span88[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span159[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span159[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span88[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + num2++; + span159[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj109.Steps = list159; reference113 = obj109; questRoot21.QuestSequence = list154; @@ -94936,13 +114251,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; + Span span160 = CollectionsMarshal.AsSpan(list160); + index = 0; + span160[index] = "liza"; questRoot22.Author = list160; - num = 6; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span89 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference114 = ref span89[0]; + index = 6; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + Span span161 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference114 = ref span161[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -94950,7 +114268,9 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -94963,15 +114283,18 @@ public static class AssemblyQuestLoader }; obj110.Steps = list162; reference114 = obj110; - ref QuestSequence reference115 = ref span89[1]; + num++; + ref QuestSequence reference115 = ref span161[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1000705u, new Vector3(-243.15253f, -4.000101f, -7.950012f), 133) + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span163[num2] = new QuestStep(EInteractionType.Interact, 1000705u, new Vector3(-243.15253f, -4.000101f, -7.950012f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -94982,7 +114305,8 @@ public static class AssemblyQuestLoader }; obj111.Steps = list163; reference115 = obj111; - ref QuestSequence reference116 = ref span89[2]; + num++; + ref QuestSequence reference116 = ref span161[num]; QuestSequence obj112 = new QuestSequence { Sequence = 2 @@ -94990,70 +114314,95 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153) + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span164[index2] = new QuestStep(EInteractionType.Interact, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj112.Steps = list164; reference116 = obj112; - ref QuestSequence reference117 = ref span89[3]; + num++; + ref QuestSequence reference117 = ref span161[num]; QuestSequence obj113 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - Span span90 = CollectionsMarshal.AsSpan(list165); - ref QuestStep reference118 = ref span90[0]; + index2 = 3; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + ref QuestStep reference118 = ref span165[num2]; QuestStep obj114 = new QuestStep(EInteractionType.Interact, 1000312u, new Vector3(269.6421f, 7.877909f, -206.34778f), 153) { Fly = true }; - num3 = 6; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - Span span91 = CollectionsMarshal.AsSpan(list166); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list166 = new List(num4); + CollectionsMarshal.SetCount(list166, num4); + Span span166 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj114.CompletionQuestVariablesFlags = list166; reference118 = obj114; - ref QuestStep reference119 = ref span90[1]; + num2++; + ref QuestStep reference119 = ref span165[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1000338u, new Vector3(268.20776f, 10.393627f, -250.11066f), 153); num3 = 6; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - Span span92 = CollectionsMarshal.AsSpan(list167); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span167 = CollectionsMarshal.AsSpan(list167); + num4 = 0; + span167[num4] = null; + num4++; + span167[num4] = null; + num4++; + span167[num4] = null; + num4++; + span167[num4] = null; + num4++; + span167[num4] = null; + num4++; + span167[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list167; reference119 = questStep6; - ref QuestStep reference120 = ref span90[2]; + num2++; + ref QuestStep reference120 = ref span165[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1000340u, new Vector3(277.51575f, 11.186312f, -255.60394f), 153); - num3 = 6; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - Span span93 = CollectionsMarshal.AsSpan(list168); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list168 = new List(num4); + CollectionsMarshal.SetCount(list168, num4); + Span span168 = CollectionsMarshal.AsSpan(list168); + num3 = 0; + span168[num3] = null; + num3++; + span168[num3] = null; + num3++; + span168[num3] = null; + num3++; + span168[num3] = null; + num3++; + span168[num3] = null; + num3++; + span168[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list168; reference120 = questStep7; obj113.Steps = list165; reference117 = obj113; - ref QuestSequence reference121 = ref span89[4]; + num++; + ref QuestSequence reference121 = ref span161[num]; QuestSequence obj115 = new QuestSequence { Sequence = 4 @@ -95061,23 +114410,28 @@ public static class AssemblyQuestLoader num2 = 2; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span94 = CollectionsMarshal.AsSpan(list169); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(265.58423f, 9.040689f, -227.60555f), 153); - span94[1] = new QuestStep(EInteractionType.Interact, 2004282u, new Vector3(261.5548f, 15.42688f, -125.90222f), 153) + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(265.58423f, 9.040689f, -227.60555f), 153); + index2++; + span169[index2] = new QuestStep(EInteractionType.Interact, 2004282u, new Vector3(261.5548f, 15.42688f, -125.90222f), 153) { Fly = true }; obj115.Steps = list169; reference121 = obj115; - ref QuestSequence reference122 = ref span89[5]; + num++; + ref QuestSequence reference122 = ref span161[num]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000705u, new Vector3(-243.15253f, -4.000101f, -7.950012f), 133) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000705u, new Vector3(-243.15253f, -4.000101f, -7.950012f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -95096,13 +114450,16 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "liza"; + Span span171 = CollectionsMarshal.AsSpan(list171); + index = 0; + span171[index] = "liza"; questRoot23.Author = list171; - num = 10; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span95 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference123 = ref span95[0]; + index = 10; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + Span span172 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference123 = ref span172[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 @@ -95110,7 +114467,9 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -95123,22 +114482,26 @@ public static class AssemblyQuestLoader }; obj117.Steps = list173; reference123 = obj117; - ref QuestSequence reference124 = ref span95[1]; + num++; + ref QuestSequence reference124 = ref span172[num]; QuestSequence obj118 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj118.Steps = list174; reference124 = obj118; - ref QuestSequence reference125 = ref span95[2]; + num++; + ref QuestSequence reference125 = ref span172[num]; QuestSequence obj119 = new QuestSequence { Sequence = 2 @@ -95146,34 +114509,40 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1009267u, new Vector3(194.20154f, 59.531815f, -144.54877f), 180) + Span span175 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span175[index2] = new QuestStep(EInteractionType.Interact, 1009267u, new Vector3(194.20154f, 59.531815f, -144.54877f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj119.Steps = list175; reference125 = obj119; - ref QuestSequence reference126 = ref span95[3]; + num++; + ref QuestSequence reference126 = ref span172[num]; QuestSequence obj120 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - Span span96 = CollectionsMarshal.AsSpan(list176); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-348.54996f, 67.72218f, -344.0944f), 180) + index2 = 2; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + Span span176 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span176[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-348.54996f, 67.72218f, -344.0944f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; - span96[1] = new QuestStep(EInteractionType.Interact, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) + num2++; + span176[num2] = new QuestStep(EInteractionType.Interact, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) { Fly = true }; obj120.Steps = list176; reference126 = obj120; - ref QuestSequence reference127 = ref span95[4]; + num++; + ref QuestSequence reference127 = ref span172[num]; QuestSequence obj121 = new QuestSequence { Sequence = 4 @@ -95181,27 +114550,33 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.UseItem, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span177[index2] = new QuestStep(EInteractionType.UseItem, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) { ItemId = 2001334u }; obj121.Steps = list177; reference127 = obj121; - ref QuestSequence reference128 = ref span95[5]; + num++; + ref QuestSequence reference128 = ref span172[num]; QuestSequence obj122 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.UseItem, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + Span span178 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span178[num2] = new QuestStep(EInteractionType.UseItem, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) { ItemId = 2001334u }; obj122.Steps = list178; reference128 = obj122; - ref QuestSequence reference129 = ref span95[6]; + num++; + ref QuestSequence reference129 = ref span172[num]; QuestSequence obj123 = new QuestSequence { Sequence = 6 @@ -95209,28 +114584,34 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.UseItem, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) + Span span179 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span179[index2] = new QuestStep(EInteractionType.UseItem, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) { ItemId = 2001334u }; obj123.Steps = list179; reference129 = obj123; - ref QuestSequence reference130 = ref span95[7]; + num++; + ref QuestSequence reference130 = ref span172[num]; QuestSequence obj124 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj124.Steps = list180; reference130 = obj124; - ref QuestSequence reference131 = ref span95[8]; + num++; + ref QuestSequence reference131 = ref span172[num]; QuestSequence obj125 = new QuestSequence { Sequence = 8 @@ -95238,21 +114619,26 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 2004284u, new Vector3(517.32654f, 12.558105f, 78.93494f), 137) + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span181[index2] = new QuestStep(EInteractionType.Interact, 2004284u, new Vector3(517.32654f, 12.558105f, 78.93494f), 137) { Fly = true }; obj125.Steps = list181; reference131 = obj125; - ref QuestSequence reference132 = ref span95[9]; + num++; + ref QuestSequence reference132 = ref span172[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -95267,13 +114653,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + Span span183 = CollectionsMarshal.AsSpan(list183); + index = 0; + span183[index] = "liza"; questRoot24.Author = list183; - num = 5; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span97 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference133 = ref span97[0]; + index = 5; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + Span span184 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference133 = ref span184[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -95281,7 +114670,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -95294,15 +114685,18 @@ public static class AssemblyQuestLoader }; obj127.Steps = list185; reference133 = obj127; - ref QuestSequence reference134 = ref span97[1]; + num++; + ref QuestSequence reference134 = ref span184[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1009271u, new Vector3(149.9198f, 7.492006f, 109.391846f), 131) + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span186[num2] = new QuestStep(EInteractionType.Interact, 1009271u, new Vector3(149.9198f, 7.492006f, 109.391846f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -95313,7 +114707,8 @@ public static class AssemblyQuestLoader }; obj128.Steps = list186; reference134 = obj128; - ref QuestSequence reference135 = ref span97[2]; + num++; + ref QuestSequence reference135 = ref span184[num]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -95321,8 +114716,9 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span98 = CollectionsMarshal.AsSpan(list187); - ref QuestStep reference136 = ref span98[0]; + Span span187 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + ref QuestStep reference136 = ref span187[index2]; QuestStep obj130 = new QuestStep(EInteractionType.Interact, 1009272u, new Vector3(-39.16992f, 13.499999f, 104.99719f), 131) { AethernetShortcut = new AethernetShortcut @@ -95334,18 +114730,26 @@ public static class AssemblyQuestLoader num3 = 6; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - Span span99 = CollectionsMarshal.AsSpan(list188); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span188 = CollectionsMarshal.AsSpan(list188); + num4 = 0; + span188[num4] = null; + num4++; + span188[num4] = null; + num4++; + span188[num4] = null; + num4++; + span188[num4] = null; + num4++; + span188[num4] = null; + num4++; + span188[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj130.CompletionQuestVariablesFlags = list188; - num3 = 1; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = new DialogueChoice + num4 = 1; + List list189 = new List(num4); + CollectionsMarshal.SetCount(list189, num4); + Span span189 = CollectionsMarshal.AsSpan(list189); + num3 = 0; + span189[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST007_01533_Q1_000_000"), @@ -95353,7 +114757,8 @@ public static class AssemblyQuestLoader }; obj130.DialogueChoices = list189; reference136 = obj130; - ref QuestStep reference137 = ref span98[1]; + index2++; + ref QuestStep reference137 = ref span187[index2]; QuestStep obj131 = new QuestStep(EInteractionType.Interact, 1009273u, new Vector3(-120.74469f, 41.50016f, 134.5083f), 131) { AethernetShortcut = new AethernetShortcut @@ -95365,18 +114770,26 @@ public static class AssemblyQuestLoader num3 = 6; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - Span span100 = CollectionsMarshal.AsSpan(list190); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span190 = CollectionsMarshal.AsSpan(list190); + num4 = 0; + span190[num4] = null; + num4++; + span190[num4] = null; + num4++; + span190[num4] = null; + num4++; + span190[num4] = null; + num4++; + span190[num4] = null; + num4++; + span190[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj131.CompletionQuestVariablesFlags = list190; - num3 = 1; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = new DialogueChoice + num4 = 1; + List list191 = new List(num4); + CollectionsMarshal.SetCount(list191, num4); + Span span191 = CollectionsMarshal.AsSpan(list191); + num3 = 0; + span191[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST007_01533_Q2_000_000"), @@ -95386,15 +114799,18 @@ public static class AssemblyQuestLoader reference137 = obj131; obj129.Steps = list187; reference135 = obj129; - ref QuestSequence reference138 = ref span97[3]; + num++; + ref QuestSequence reference138 = ref span184[num]; QuestSequence obj132 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(112.655914f, 8.361085f, 73.20917f), 131) + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span192[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(112.655914f, 8.361085f, 73.20917f), 131) { RestartNavigationIfCancelled = false, AethernetShortcut = new AethernetShortcut @@ -95405,7 +114821,8 @@ public static class AssemblyQuestLoader }; obj132.Steps = list192; reference138 = obj132; - ref QuestSequence reference139 = ref span97[4]; + num++; + ref QuestSequence reference139 = ref span184[num]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue @@ -95413,7 +114830,9 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009369u, new Vector3(151.26257f, 7.492006f, 109.84961f), 131) + Span span193 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span193[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009369u, new Vector3(151.26257f, 7.492006f, 109.84961f), 131) { NextQuestId = new QuestId(1571) }; @@ -95430,13 +114849,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 2; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 2; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -95444,7 +114866,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -95457,15 +114881,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019615u, new Vector3(-71.763245f, 206.50021f, 32.638916f), 478) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019615u, new Vector3(-71.763245f, 206.50021f, 32.638916f), 478) { StopDistance = 5f }; @@ -95478,13 +114905,16 @@ public static class AssemblyQuestLoader num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - CollectionsMarshal.AsSpan(list5)[0] = "liza"; + Span span5 = CollectionsMarshal.AsSpan(list5); + index = 0; + span5[index] = "liza"; questRoot2.Author = list5; - num = 2; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - Span span2 = CollectionsMarshal.AsSpan(list6); - ref QuestSequence reference3 = ref span2[0]; + index = 2; + List list6 = new List(index); + CollectionsMarshal.SetCount(list6, index); + Span span6 = CollectionsMarshal.AsSpan(list6); + num = 0; + ref QuestSequence reference3 = ref span6[num]; QuestSequence obj3 = new QuestSequence { Sequence = 0 @@ -95492,8 +114922,9 @@ public static class AssemblyQuestLoader num2 = 4; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span3 = CollectionsMarshal.AsSpan(list7); - ref QuestStep reference4 = ref span3[0]; + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + ref QuestStep reference4 = ref span7[index2]; QuestStep obj4 = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, @@ -95504,26 +114935,32 @@ public static class AssemblyQuestLoader int num3 = 2; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span4 = CollectionsMarshal.AsSpan(list8); - span4[0] = 140; - span4[1] = 212; + Span span8 = CollectionsMarshal.AsSpan(list8); + int num4 = 0; + span8[num4] = 140; + num4++; + span8[num4] = 212; skipStepConditions.InTerritory = list8; skipConditions.StepIf = skipStepConditions; obj4.SkipConditions = skipConditions; reference4 = obj4; - ref QuestStep reference5 = ref span3[1]; + index2++; + ref QuestStep reference5 = ref span7[index2]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = 212; + num4 = 1; + List list9 = new List(num4); + CollectionsMarshal.SetCount(list9, num4); + Span span9 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span9[num3] = 212; skipStepConditions2.InTerritory = list9; skipConditions2.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions2; reference5 = questStep; - ref QuestStep reference6 = ref span3[2]; + index2++; + ref QuestStep reference6 = ref span7[index2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 @@ -95533,23 +114970,29 @@ public static class AssemblyQuestLoader num3 = 1; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = 212; + Span span10 = CollectionsMarshal.AsSpan(list10); + num4 = 0; + span10[num4] = 212; skipStepConditions3.InTerritory = list10; skipConditions3.StepIf = skipStepConditions3; obj5.SkipConditions = skipConditions3; reference6 = obj5; - span3[3] = new QuestStep(EInteractionType.AcceptQuest, 1011618u, new Vector3(10.330261f, -3.0000017f, -54.8562f), 212); + index2++; + span7[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011618u, new Vector3(10.330261f, -3.0000017f, -54.8562f), 212); obj3.Steps = list7; reference3 = obj3; - ref QuestSequence reference7 = ref span2[1]; + num++; + ref QuestSequence reference7 = ref span6[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, NextQuestId = new QuestId(1021) @@ -95563,13 +115006,16 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "Censored"; + Span span12 = CollectionsMarshal.AsSpan(list12); + index = 0; + span12[index] = "Censored"; questRoot3.Author = list12; - num = 2; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span5 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference8 = ref span5[0]; + index = 2; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference8 = ref span13[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -95577,7 +115023,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list14)[0]; + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + ref QuestStep reference9 = ref span14[index2]; QuestStep obj8 = new QuestStep(EInteractionType.AcceptQuest, 1025721u, new Vector3(-75.94415f, 11.800039f, -115.617676f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -95587,10 +115035,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeBokairoInn } }; - num3 = 1; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - CollectionsMarshal.AsSpan(list15)[0] = new DialogueChoice + num4 = 1; + List list15 = new List(num4); + CollectionsMarshal.SetCount(list15, num4); + Span span15 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span15[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY992_01555_Q1_000_000"), @@ -95600,15 +115050,18 @@ public static class AssemblyQuestLoader reference9 = obj8; obj7.Steps = list14; reference8 = obj7; - ref QuestSequence reference10 = ref span5[1]; + num++; + ref QuestSequence reference10 = ref span13[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025721u, new Vector3(-75.94415f, 11.800039f, -115.617676f), 628); + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025721u, new Vector3(-75.94415f, 11.800039f, -115.617676f), 628); obj9.Steps = list16; reference10 = obj9; questRoot3.QuestSequence = list13; @@ -95618,13 +115071,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "liza"; questRoot4.Author = list17; - num = 2; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span6 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference11 = ref span6[0]; + index = 2; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference11 = ref span18[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -95632,20 +115088,25 @@ public static class AssemblyQuestLoader num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span7 = CollectionsMarshal.AsSpan(list19); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.134737f, 21.252728f, -640.2821f), 156); - span7[1] = new QuestStep(EInteractionType.AcceptQuest, 1006950u, new Vector3(14.755432f, 21.252728f, -640.71106f), 156); + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.134737f, 21.252728f, -640.2821f), 156); + index2++; + span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006950u, new Vector3(14.755432f, 21.252728f, -640.71106f), 156); obj10.Steps = list19; reference11 = obj10; - ref QuestSequence reference12 = ref span6[1]; + num++; + ref QuestSequence reference12 = ref span18[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006988u, new Vector3(41.33667f, 28.999998f, -795.4681f), 156) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006988u, new Vector3(41.33667f, 28.999998f, -795.4681f), 156) { StopDistance = 5f }; @@ -95658,13 +115119,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "alydev"; + Span span21 = CollectionsMarshal.AsSpan(list21); + index = 0; + span21[index] = "alydev"; questRoot5.Author = list21; - num = 9; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span8 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference13 = ref span8[0]; + index = 9; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + Span span22 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference13 = ref span22[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -95672,91 +115136,130 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); obj12.Steps = list23; reference13 = obj12; - ref QuestSequence reference14 = ref span8[1]; + num++; + ref QuestSequence reference14 = ref span22[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span9 = CollectionsMarshal.AsSpan(list24); - ref QuestStep reference15 = ref span9[0]; + index2 = 5; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference15 = ref span24[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2004436u, new Vector3(-58.06067f, 0.19836426f, 5.355835f), 148); num3 = 6; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span10 = CollectionsMarshal.AsSpan(list25); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span25 = CollectionsMarshal.AsSpan(list25); + num4 = 0; + span25[num4] = null; + num4++; + span25[num4] = null; + num4++; + span25[num4] = null; + num4++; + span25[num4] = null; + num4++; + span25[num4] = null; + num4++; + span25[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list25; reference15 = questStep2; - ref QuestStep reference16 = ref span9[1]; + num2++; + ref QuestStep reference16 = ref span24[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2004432u, new Vector3(-64.62195f, -0.015319824f, -5.2339478f), 148); - num3 = 6; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span11 = CollectionsMarshal.AsSpan(list26); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list26 = new List(num4); + CollectionsMarshal.SetCount(list26, num4); + Span span26 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list26; reference16 = questStep3; - ref QuestStep reference17 = ref span9[2]; + num2++; + ref QuestStep reference17 = ref span24[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2004433u, new Vector3(-47.28778f, -0.015319824f, -4.0131226f), 148); num3 = 6; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span12 = CollectionsMarshal.AsSpan(list27); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span27 = CollectionsMarshal.AsSpan(list27); + num4 = 0; + span27[num4] = null; + num4++; + span27[num4] = null; + num4++; + span27[num4] = null; + num4++; + span27[num4] = null; + num4++; + span27[num4] = null; + num4++; + span27[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list27; reference17 = questStep4; - ref QuestStep reference18 = ref span9[3]; + num2++; + ref QuestStep reference18 = ref span24[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2004434u, new Vector3(-51.773926f, 0.19836426f, 16.128723f), 148); - num3 = 6; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span13 = CollectionsMarshal.AsSpan(list28); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list28; reference18 = questStep5; - ref QuestStep reference19 = ref span9[4]; + num2++; + ref QuestStep reference19 = ref span24[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2004435u, new Vector3(-63.309692f, 0.19836426f, 16.03717f), 148); num3 = 6; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - Span span14 = CollectionsMarshal.AsSpan(list29); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span29 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list29; reference19 = questStep6; obj13.Steps = list24; reference14 = obj13; - ref QuestSequence reference20 = ref span8[2]; + num++; + ref QuestSequence reference20 = ref span22[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 @@ -95764,21 +115267,27 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); obj14.Steps = list30; reference20 = obj14; - ref QuestSequence reference21 = ref span8[3]; + num++; + ref QuestSequence reference21 = ref span22[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1000473u, new Vector3(-44.14441f, 0.74388826f, -32.88324f), 148); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.Interact, 1000473u, new Vector3(-44.14441f, 0.74388826f, -32.88324f), 148); obj15.Steps = list31; reference21 = obj15; - ref QuestSequence reference22 = ref span8[4]; + num++; + ref QuestSequence reference22 = ref span22[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 @@ -95786,21 +115295,27 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); obj16.Steps = list32; reference22 = obj16; - ref QuestSequence reference23 = ref span8[5]; + num++; + ref QuestSequence reference23 = ref span22[num]; QuestSequence obj17 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.Interact, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); obj17.Steps = list33; reference23 = obj17; - ref QuestSequence reference24 = ref span8[6]; + num++; + ref QuestSequence reference24 = ref span22[num]; QuestSequence obj18 = new QuestSequence { Sequence = 6 @@ -95808,24 +115323,30 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1009569u, new Vector3(-56.10742f, -0.020424694f, 28.54956f), 148) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.Interact, 1009569u, new Vector3(-56.10742f, -0.020424694f, 28.54956f), 148) { StopDistance = 7f }; obj18.Steps = list34; reference24 = obj18; - ref QuestSequence reference25 = ref span8[7]; + num++; + ref QuestSequence reference25 = ref span22[num]; QuestSequence obj19 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.Interact, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); obj19.Steps = list35; reference25 = obj19; - ref QuestSequence reference26 = ref span8[8]; + num++; + ref QuestSequence reference26 = ref span22[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -95833,7 +115354,9 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); obj20.Steps = list36; reference26 = obj20; questRoot5.QuestSequence = list22; @@ -95843,24 +115366,30 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + Span span37 = CollectionsMarshal.AsSpan(list37); + index = 0; + span37[index] = "liza"; questRoot6.Author = list37; - num = 2; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - Span span15 = CollectionsMarshal.AsSpan(list38); - ref QuestSequence reference27 = ref span15[0]; + index = 2; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + Span span38 = CollectionsMarshal.AsSpan(list38); + num = 0; + ref QuestSequence reference27 = ref span38[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132); + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132); obj21.Steps = list39; reference27 = obj21; - ref QuestSequence reference28 = ref span15[1]; + num++; + ref QuestSequence reference28 = ref span38[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -95868,7 +115397,9 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009152u, new Vector3(-74.47931f, -0.50372624f, 3.250122f), 132) + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009152u, new Vector3(-74.47931f, -0.50372624f, 3.250122f), 132) { NextQuestId = new QuestId(2119) }; @@ -95881,24 +115412,30 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + Span span41 = CollectionsMarshal.AsSpan(list41); + index = 0; + span41[index] = "liza"; questRoot7.Author = list41; - num = 2; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span16 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference29 = ref span16[0]; + index = 2; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + Span span42 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference29 = ref span42[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003550u, new Vector3(76.85962f, 39.99632f, 78.99597f), 128); + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.AcceptQuest, 1003550u, new Vector3(76.85962f, 39.99632f, 78.99597f), 128); obj23.Steps = list43; reference29 = obj23; - ref QuestSequence reference30 = ref span16[1]; + num++; + ref QuestSequence reference30 = ref span42[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue @@ -95906,7 +115443,9 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009552u, new Vector3(96.025024f, 40.247147f, 60.68506f), 128) + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009552u, new Vector3(96.025024f, 40.247147f, 60.68506f), 128) { NextQuestId = new QuestId(2119) }; @@ -95919,24 +115458,30 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; + Span span45 = CollectionsMarshal.AsSpan(list45); + index = 0; + span45[index] = "liza"; questRoot8.Author = list45; - num = 2; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span17 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference31 = ref span17[0]; + index = 2; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + Span span46 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference31 = ref span46[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001634u, new Vector3(-130.93768f, 4.0999947f, -91.02008f), 130); + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001634u, new Vector3(-130.93768f, 4.0999947f, -91.02008f), 130); obj25.Steps = list47; reference31 = obj25; - ref QuestSequence reference32 = ref span17[1]; + num++; + ref QuestSequence reference32 = ref span46[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -95944,7 +115489,9 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001379u, new Vector3(-153.55157f, 4.10972f, -94.04144f), 130) + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001379u, new Vector3(-153.55157f, 4.10972f, -94.04144f), 130) { NextQuestId = new QuestId(2119) }; @@ -95957,21 +115504,26 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "Censored"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "Censored"; questRoot9.Author = list49; - num = 4; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span18 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference33 = ref span18[0]; + index = 4; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference33 = ref span50[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -95991,7 +115543,8 @@ public static class AssemblyQuestLoader }; obj27.Steps = list51; reference33 = obj27; - ref QuestSequence reference34 = ref span18[1]; + num++; + ref QuestSequence reference34 = ref span50[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -95999,41 +115552,51 @@ public static class AssemblyQuestLoader num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span19 = CollectionsMarshal.AsSpan(list52); - span19[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - ref QuestStep reference35 = ref span19[1]; + index2++; + ref QuestStep reference35 = ref span52[index2]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, null, new Vector3(581.92236f, 282.2539f, -304.58823f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 2; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - Span span20 = CollectionsMarshal.AsSpan(list53); - ref ComplexCombatData reference36 = ref span20[0]; + num4 = 2; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + Span span53 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + ref ComplexCombatData reference36 = ref span53[num3]; ComplexCombatData obj30 = new ComplexCombatData { DataId = 45u, MinimumKillCount = 1u }; - int num4 = 6; - List list54 = new List(num4); - CollectionsMarshal.SetCount(list54, num4); - Span span21 = CollectionsMarshal.AsSpan(list54); - span21[0] = null; - span21[1] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = null; + int num5 = 6; + List list54 = new List(num5); + CollectionsMarshal.SetCount(list54, num5); + Span span54 = CollectionsMarshal.AsSpan(list54); + int num6 = 0; + span54[num6] = null; + num6++; + span54[num6] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span54[num6] = null; + num6++; + span54[num6] = null; + num6++; + span54[num6] = null; + num6++; + span54[num6] = null; obj30.CompletionQuestVariablesFlags = list54; reference36 = obj30; - span20[1] = new ComplexCombatData + num3++; + span53[num3] = new ComplexCombatData { DataId = 3241u, MinimumKillCount = 1u @@ -96049,21 +115612,25 @@ public static class AssemblyQuestLoader reference35 = obj29; obj28.Steps = list52; reference34 = obj28; - ref QuestSequence reference37 = ref span18[2]; + num++; + ref QuestSequence reference37 = ref span50[num]; QuestSequence obj31 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj31.Steps = list55; reference37 = obj31; - ref QuestSequence reference38 = ref span18[3]; + num++; + ref QuestSequence reference38 = ref span50[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -96071,8 +115638,9 @@ public static class AssemblyQuestLoader num2 = 2; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span22 = CollectionsMarshal.AsSpan(list56); - span22[0] = new QuestStep(EInteractionType.Craft, null, null, 155) + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8125u, ItemCount = 2, @@ -96084,7 +115652,8 @@ public static class AssemblyQuestLoader } } }; - span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2++; + span56[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -96111,21 +115680,26 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "Censored"; + Span span57 = CollectionsMarshal.AsSpan(list57); + index = 0; + span57[index] = "Censored"; questRoot10.Author = list57; - num = 4; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span23 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference39 = ref span23[0]; + index = 4; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + Span span58 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference39 = ref span58[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -96145,7 +115719,8 @@ public static class AssemblyQuestLoader }; obj33.Steps = list59; reference39 = obj33; - ref QuestSequence reference40 = ref span23[1]; + num++; + ref QuestSequence reference40 = ref span58[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -96153,8 +115728,9 @@ public static class AssemblyQuestLoader num2 = 3; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span24 = CollectionsMarshal.AsSpan(list60); - ref QuestStep reference41 = ref span24[0]; + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + ref QuestStep reference41 = ref span60[index2]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 2004490u, new Vector3(596.704f, 303.5476f, -89.982544f), 155) { Fly = true, @@ -96171,47 +115747,65 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span25 = CollectionsMarshal.AsSpan(list61); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span61 = CollectionsMarshal.AsSpan(list61); + num4 = 0; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj35.CompletionQuestVariablesFlags = list61; reference41 = obj35; - ref QuestStep reference42 = ref span24[1]; + index2++; + ref QuestStep reference42 = ref span60[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2004491u, new Vector3(638.239f, 304.7379f, -93.888794f), 155); - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span26 = CollectionsMarshal.AsSpan(list62); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + Span span62 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list62; reference42 = questStep7; - span24[2] = new QuestStep(EInteractionType.Interact, 2004492u, new Vector3(618.95166f, 301.13672f, -43.47296f), 155); + index2++; + span60[index2] = new QuestStep(EInteractionType.Interact, 2004492u, new Vector3(618.95166f, 301.13672f, -43.47296f), 155); obj34.Steps = list60; reference40 = obj34; - ref QuestSequence reference43 = ref span23[2]; + num++; + ref QuestSequence reference43 = ref span58[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj36.Steps = list63; reference43 = obj36; - ref QuestSequence reference44 = ref span23[3]; + num++; + ref QuestSequence reference44 = ref span58[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -96219,8 +115813,9 @@ public static class AssemblyQuestLoader num2 = 2; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span27 = CollectionsMarshal.AsSpan(list64); - span27[0] = new QuestStep(EInteractionType.Craft, null, null, 155) + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8126u, ItemCount = 1, @@ -96232,7 +115827,8 @@ public static class AssemblyQuestLoader } } }; - span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2++; + span64[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -96259,21 +115855,26 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "Censored"; + Span span65 = CollectionsMarshal.AsSpan(list65); + index = 0; + span65[index] = "Censored"; questRoot11.Author = list65; - num = 4; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span28 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference45 = ref span28[0]; + index = 4; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + Span span66 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference45 = ref span66[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -96293,7 +115894,8 @@ public static class AssemblyQuestLoader }; obj38.Steps = list67; reference45 = obj38; - ref QuestSequence reference46 = ref span28[1]; + num++; + ref QuestSequence reference46 = ref span66[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -96301,7 +115903,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Say, 1009649u, new Vector3(627.8019f, 300.56494f, -16.434021f), 155) + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.Say, 1009649u, new Vector3(627.8019f, 300.56494f, -16.434021f), 155) { Fly = true, Land = true, @@ -96313,21 +115917,25 @@ public static class AssemblyQuestLoader }; obj39.Steps = list68; reference46 = obj39; - ref QuestSequence reference47 = ref span28[2]; + num++; + ref QuestSequence reference47 = ref span66[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj40.Steps = list69; reference47 = obj40; - ref QuestSequence reference48 = ref span28[3]; + num++; + ref QuestSequence reference48 = ref span66[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -96335,8 +115943,9 @@ public static class AssemblyQuestLoader num2 = 2; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span29 = CollectionsMarshal.AsSpan(list70); - span29[0] = new QuestStep(EInteractionType.Craft, null, null, 155) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8127u, ItemCount = 2, @@ -96348,7 +115957,8 @@ public static class AssemblyQuestLoader } } }; - span29[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + index2++; + span70[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -96375,21 +115985,26 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + Span span71 = CollectionsMarshal.AsSpan(list71); + index = 0; + span71[index] = "liza"; questRoot12.Author = list71; - num = 6; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span30 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference49 = ref span30[0]; + index = 6; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + Span span72 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference49 = ref span72[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -96402,7 +116017,8 @@ public static class AssemblyQuestLoader }; obj42.Steps = list73; reference49 = obj42; - ref QuestSequence reference50 = ref span30[1]; + num++; + ref QuestSequence reference50 = ref span72[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 @@ -96410,8 +116026,9 @@ public static class AssemblyQuestLoader num2 = 2; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span31 = CollectionsMarshal.AsSpan(list74); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -96423,24 +116040,29 @@ public static class AssemblyQuestLoader } } }; - span31[1] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + index2++; + span74[index2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); obj43.Steps = list74; reference50 = obj43; - ref QuestSequence reference51 = ref span30[2]; + num++; + ref QuestSequence reference51 = ref span72[num]; QuestSequence obj44 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.Interact, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; obj44.Steps = list75; reference51 = obj44; - ref QuestSequence reference52 = ref span30[3]; + num++; + ref QuestSequence reference52 = ref span72[num]; QuestSequence obj45 = new QuestSequence { Sequence = 3 @@ -96448,22 +116070,27 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 2004573u, new Vector3(36.545288f, -3.7080078f, 225.7572f), 152) + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.Interact, 2004573u, new Vector3(36.545288f, -3.7080078f, 225.7572f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj45.Steps = list76; reference52 = obj45; - ref QuestSequence reference53 = ref span30[4]; + num++; + ref QuestSequence reference53 = ref span72[num]; QuestSequence obj46 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list77)[0]; + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + ref QuestStep reference54 = ref span77[num2]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(-83.15885f, -5.7812023f, 321.49606f), 152) { StopDistance = 0.5f, @@ -96473,14 +116100,17 @@ public static class AssemblyQuestLoader num3 = 2; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - Span span32 = CollectionsMarshal.AsSpan(list78); - span32[0] = 3552u; - span32[1] = 3553u; + Span span78 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span78[num4] = 3552u; + num4++; + span78[num4] = 3553u; obj47.KillEnemyDataIds = list78; reference54 = obj47; obj46.Steps = list77; reference53 = obj46; - ref QuestSequence reference55 = ref span30[5]; + num++; + ref QuestSequence reference55 = ref span72[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -96488,12 +116118,16 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list79)[0]; + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + ref QuestStep reference56 = ref span79[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.CompleteQuest, 1009721u, new Vector3(-83.36011f, -5.6851597f, 322.43823f), 152); - num3 = 1; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new DialogueChoice + num4 = 1; + List list80 = new List(num4); + CollectionsMarshal.SetCount(list80, num4); + Span span80 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span80[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST010_01570_Q1_000_000"), @@ -96511,21 +116145,26 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "liza"; + Span span81 = CollectionsMarshal.AsSpan(list81); + index = 0; + span81[index] = "liza"; questRoot13.Author = list81; - num = 9; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span33 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference57 = ref span33[0]; + index = 9; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + Span span82 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference57 = ref span82[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -96538,7 +116177,8 @@ public static class AssemblyQuestLoader }; obj49.Steps = list83; reference57 = obj49; - ref QuestSequence reference58 = ref span33[1]; + num++; + ref QuestSequence reference58 = ref span82[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 @@ -96546,22 +116186,26 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.Interact, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj50.Steps = list84; reference58 = obj50; - ref QuestSequence reference59 = ref span33[2]; + num++; + ref QuestSequence reference59 = ref span82[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span34 = CollectionsMarshal.AsSpan(list85); - ref QuestStep reference60 = ref span34[0]; + index2 = 2; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference60 = ref span85[num2]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, 1009726u, new Vector3(-280.8728f, 62.620903f, -201.9837f), 180) { StopDistance = 0.5f, @@ -96571,27 +116215,38 @@ public static class AssemblyQuestLoader num3 = 3; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span35 = CollectionsMarshal.AsSpan(list86); - span35[0] = 2864u; - span35[1] = 2865u; - span35[2] = 2866u; + Span span86 = CollectionsMarshal.AsSpan(list86); + num4 = 0; + span86[num4] = 2864u; + num4++; + span86[num4] = 2865u; + num4++; + span86[num4] = 2866u; obj52.KillEnemyDataIds = list86; - num3 = 6; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - Span span36 = CollectionsMarshal.AsSpan(list87); - span36[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = null; + num4 = 6; + List list87 = new List(num4); + CollectionsMarshal.SetCount(list87, num4); + Span span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; obj52.CompletionQuestVariablesFlags = list87; reference60 = obj52; - span34[1] = new QuestStep(EInteractionType.Interact, 1009726u, new Vector3(-280.8728f, 62.620903f, -201.9837f), 180); + num2++; + span85[num2] = new QuestStep(EInteractionType.Interact, 1009726u, new Vector3(-280.8728f, 62.620903f, -201.9837f), 180); obj51.Steps = list85; reference59 = obj51; - ref QuestSequence reference61 = ref span33[3]; + num++; + ref QuestSequence reference61 = ref span82[num]; QuestSequence obj53 = new QuestSequence { Sequence = 3 @@ -96599,24 +116254,30 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.Interact, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { Fly = true }; obj53.Steps = list88; reference61 = obj53; - ref QuestSequence reference62 = ref span33[4]; + num++; + ref QuestSequence reference62 = ref span82[num]; QuestSequence obj54 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1009729u, new Vector3(-108.72058f, 64.30314f, -220.38611f), 180); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.Interact, 1009729u, new Vector3(-108.72058f, 64.30314f, -220.38611f), 180); obj54.Steps = list89; reference62 = obj54; - ref QuestSequence reference63 = ref span33[5]; + num++; + ref QuestSequence reference63 = ref span82[num]; QuestSequence obj55 = new QuestSequence { Sequence = 5 @@ -96624,24 +116285,30 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1009730u, new Vector3(-145.8305f, 64.83713f, -209.24695f), 180); + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.Interact, 1009730u, new Vector3(-145.8305f, 64.83713f, -209.24695f), 180); obj55.Steps = list90; reference63 = obj55; - ref QuestSequence reference64 = ref span33[6]; + num++; + ref QuestSequence reference64 = ref span82[num]; QuestSequence obj56 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1009732u, new Vector3(-439.59723f, 50.90922f, -319.69183f), 180) + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span91[num2] = new QuestStep(EInteractionType.Interact, 1009732u, new Vector3(-439.59723f, 50.90922f, -319.69183f), 180) { Fly = true }; obj56.Steps = list91; reference64 = obj56; - ref QuestSequence reference65 = ref span33[7]; + num++; + ref QuestSequence reference65 = ref span82[num]; QuestSequence obj57 = new QuestSequence { Sequence = 7 @@ -96649,21 +116316,26 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1009753u, new Vector3(-107.408325f, 64.38365f, -223.62103f), 180) + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.Interact, 1009753u, new Vector3(-107.408325f, 64.38365f, -223.62103f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj57.Steps = list92; reference65 = obj57; - ref QuestSequence reference66 = ref span33[8]; + num++; + ref QuestSequence reference66 = ref span82[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { NextQuestId = new QuestId(33) }; @@ -96676,13 +116348,16 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "liza"; + Span span94 = CollectionsMarshal.AsSpan(list94); + index = 0; + span94[index] = "liza"; questRoot14.Author = list94; - num = 6; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span37 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference67 = ref span37[0]; + index = 6; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + Span span95 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference67 = ref span95[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -96690,7 +116365,9 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -96703,15 +116380,18 @@ public static class AssemblyQuestLoader }; obj59.Steps = list96; reference67 = obj59; - ref QuestSequence reference68 = ref span37[1]; + num++; + ref QuestSequence reference68 = ref span95[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1000856u, new Vector3(-155.10797f, 4.070978f, 202.71606f), 129) + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span97[num2] = new QuestStep(EInteractionType.Interact, 1000856u, new Vector3(-155.10797f, 4.070978f, 202.71606f), 129) { AethernetShortcut = new AethernetShortcut { @@ -96721,7 +116401,8 @@ public static class AssemblyQuestLoader }; obj60.Steps = list97; reference68 = obj60; - ref QuestSequence reference69 = ref span37[2]; + num++; + ref QuestSequence reference69 = ref span95[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 @@ -96729,7 +116410,9 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1009733u, new Vector3(-356.31348f, 8.000001f, 49.54602f), 129) + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span98[index2] = new QuestStep(EInteractionType.Interact, 1009733u, new Vector3(-356.31348f, 8.000001f, 49.54602f), 129) { AethernetShortcut = new AethernetShortcut { @@ -96739,18 +116422,22 @@ public static class AssemblyQuestLoader }; obj61.Steps = list98; reference69 = obj61; - ref QuestSequence reference70 = ref span37[3]; + num++; + ref QuestSequence reference70 = ref span95[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 2004568u, new Vector3(-356.31348f, 7.9804688f, 48.90515f), 129); + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.Interact, 2004568u, new Vector3(-356.31348f, 7.9804688f, 48.90515f), 129); obj62.Steps = list99; reference70 = obj62; - ref QuestSequence reference71 = ref span37[4]; + num++; + ref QuestSequence reference71 = ref span95[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -96758,7 +116445,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.UseItem, 2004570u, new Vector3(-83.634705f, 1.9378662f, 826.10803f), 135) + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.UseItem, 2004570u, new Vector3(-83.634705f, 1.9378662f, 826.10803f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -96766,16 +116455,18 @@ public static class AssemblyQuestLoader }; obj63.Steps = list100; reference71 = obj63; - ref QuestSequence reference72 = ref span37[5]; + num++; + ref QuestSequence reference72 = ref span95[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - Span span38 = CollectionsMarshal.AsSpan(list101); - span38[0] = new QuestStep(EInteractionType.PurchaseItem, 1001016u, new Vector3(-42.679565f, 39.999947f, 119.920654f), 128) + index2 = 3; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.PurchaseItem, 1001016u, new Vector3(-42.679565f, 39.999947f, 119.920654f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -96791,12 +116482,14 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262186u) } }; - span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.249344f, 2.1958525f, 826.0164f), 135) + num2++; + span101[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.249344f, 2.1958525f, 826.0164f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - span38[2] = new QuestStep(EInteractionType.CompleteQuest, 1009735u, new Vector3(-84.21454f, 1.802455f, 826.5963f), 135) + num2++; + span101[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009735u, new Vector3(-84.21454f, 1.802455f, 826.5963f), 135) { NextQuestId = new QuestId(1575) }; @@ -96809,13 +116502,16 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "liza"; + Span span102 = CollectionsMarshal.AsSpan(list102); + index = 0; + span102[index] = "liza"; questRoot15.Author = list102; - num = 5; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span39 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference73 = ref span39[0]; + index = 5; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + Span span103 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference73 = ref span103[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -96823,7 +116519,9 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -96836,15 +116534,18 @@ public static class AssemblyQuestLoader }; obj65.Steps = list104; reference73 = obj65; - ref QuestSequence reference74 = ref span39[1]; + num++; + ref QuestSequence reference74 = ref span103[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1009739u, new Vector3(-103.83765f, 40f, 113.206665f), 128) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.Interact, 1009739u, new Vector3(-103.83765f, 40f, 113.206665f), 128) { AethernetShortcut = new AethernetShortcut { @@ -96854,7 +116555,8 @@ public static class AssemblyQuestLoader }; obj66.Steps = list105; reference74 = obj66; - ref QuestSequence reference75 = ref span39[2]; + num++; + ref QuestSequence reference75 = ref span103[num]; QuestSequence obj67 = new QuestSequence { Sequence = 2 @@ -96862,22 +116564,26 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132) + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj67.Steps = list106; reference75 = obj67; - ref QuestSequence reference76 = ref span39[3]; + num++; + ref QuestSequence reference76 = ref span103[num]; QuestSequence obj68 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - Span span40 = CollectionsMarshal.AsSpan(list107); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-103.88594f, 41.50016f, 119.898315f), 131) + index2 = 2; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-103.88594f, 41.50016f, 119.898315f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -96886,13 +116592,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAlchemist } }; - span40[1] = new QuestStep(EInteractionType.Interact, 1002299u, new Vector3(-98.8938f, 40.200146f, 120.83618f), 131) + num2++; + span107[num2] = new QuestStep(EInteractionType.Interact, 1002299u, new Vector3(-98.8938f, 40.200146f, 120.83618f), 131) { StopDistance = 7f }; obj68.Steps = list107; reference76 = obj68; - ref QuestSequence reference77 = ref span39[4]; + num++; + ref QuestSequence reference77 = ref span103[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -96900,7 +116608,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009744u, new Vector3(-47.470886f, 40f, 60.68506f), 128) + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009744u, new Vector3(-47.470886f, 40f, 60.68506f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -96919,21 +116629,26 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + Span span109 = CollectionsMarshal.AsSpan(list109); + index = 0; + span109[index] = "liza"; questRoot16.Author = list109; - num = 11; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span41 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference78 = ref span41[0]; + index = 11; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + Span span110 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference78 = ref span110[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -96951,7 +116666,8 @@ public static class AssemblyQuestLoader }; obj70.Steps = list111; reference78 = obj70; - ref QuestSequence reference79 = ref span41[1]; + num++; + ref QuestSequence reference79 = ref span110[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 @@ -96959,8 +116675,9 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span42 = CollectionsMarshal.AsSpan(list112); - span42[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -96970,19 +116687,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - span42[1] = new QuestStep(EInteractionType.Interact, 1009754u, new Vector3(-571.4351f, 10.28263f, 61.020752f), 152); + index2++; + span112[index2] = new QuestStep(EInteractionType.Interact, 1009754u, new Vector3(-571.4351f, 10.28263f, 61.020752f), 152); obj71.Steps = list112; reference79 = obj71; - ref QuestSequence reference80 = ref span41[2]; + num++; + ref QuestSequence reference80 = ref span110[num]; QuestSequence obj72 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - Span span43 = CollectionsMarshal.AsSpan(list113); - ref QuestStep reference81 = ref span43[0]; + index2 = 2; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + ref QuestStep reference81 = ref span113[num2]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2004581u, new Vector3(354.72632f, 5.5999756f, -30.167114f), 153) { Fly = true, @@ -96992,21 +116712,30 @@ public static class AssemblyQuestLoader num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = 2843u; + Span span114 = CollectionsMarshal.AsSpan(list114); + num4 = 0; + span114[num4] = 2843u; obj73.KillEnemyDataIds = list114; - num3 = 6; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - Span span44 = CollectionsMarshal.AsSpan(list115); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list115 = new List(num4); + CollectionsMarshal.SetCount(list115, num4); + Span span115 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj73.CompletionQuestVariablesFlags = list115; reference81 = obj73; - ref QuestStep reference82 = ref span43[1]; + num2++; + ref QuestStep reference82 = ref span113[num2]; QuestStep obj74 = new QuestStep(EInteractionType.Combat, 2004582u, new Vector3(343.2821f, 2.4261475f, 8.895996f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -97014,23 +116743,32 @@ public static class AssemblyQuestLoader num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = 2843u; + Span span116 = CollectionsMarshal.AsSpan(list116); + num4 = 0; + span116[num4] = 2843u; obj74.KillEnemyDataIds = list116; - num3 = 6; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - Span span45 = CollectionsMarshal.AsSpan(list117); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list117 = new List(num4); + CollectionsMarshal.SetCount(list117, num4); + Span span117 = CollectionsMarshal.AsSpan(list117); + num3 = 0; + span117[num3] = null; + num3++; + span117[num3] = null; + num3++; + span117[num3] = null; + num3++; + span117[num3] = null; + num3++; + span117[num3] = null; + num3++; + span117[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj74.CompletionQuestVariablesFlags = list117; reference82 = obj74; obj72.Steps = list113; reference80 = obj72; - ref QuestSequence reference83 = ref span41[3]; + num++; + ref QuestSequence reference83 = ref span110[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 @@ -97038,12 +116776,16 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list118)[0]; + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + ref QuestStep reference84 = ref span118[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2004845u, new Vector3(362.50854f, 1.663208f, -18.478699f), 153); num3 = 1; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = new DialogueChoice + Span span119 = CollectionsMarshal.AsSpan(list119); + num4 = 0; + span119[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST014_01574_Q1_000_000"), @@ -97053,18 +116795,22 @@ public static class AssemblyQuestLoader reference84 = questStep9; obj75.Steps = list118; reference83 = obj75; - ref QuestSequence reference85 = ref span41[4]; + num++; + ref QuestSequence reference85 = ref span110[num]; QuestSequence obj76 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1009755u, new Vector3(361.19617f, 1.6090399f, -18.448242f), 153); + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.Interact, 1009755u, new Vector3(361.19617f, 1.6090399f, -18.448242f), 153); obj76.Steps = list120; reference85 = obj76; - ref QuestSequence reference86 = ref span41[5]; + num++; + ref QuestSequence reference86 = ref span110[num]; QuestSequence obj77 = new QuestSequence { Sequence = 5 @@ -97072,22 +116818,26 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1009756u, new Vector3(377.40137f, 0.37321654f, 119.920654f), 153) + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.Interact, 1009756u, new Vector3(377.40137f, 0.37321654f, 119.920654f), 153) { Fly = true }; obj77.Steps = list121; reference86 = obj77; - ref QuestSequence reference87 = ref span41[6]; + num++; + ref QuestSequence reference87 = ref span110[num]; QuestSequence obj78 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - Span span46 = CollectionsMarshal.AsSpan(list122); - span46[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + index2 = 2; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -97097,10 +116847,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - span46[1] = new QuestStep(EInteractionType.Interact, 1009754u, new Vector3(-571.4351f, 10.28263f, 61.020752f), 152); + num2++; + span122[num2] = new QuestStep(EInteractionType.Interact, 1009754u, new Vector3(-571.4351f, 10.28263f, 61.020752f), 152); obj78.Steps = list122; reference87 = obj78; - ref QuestSequence reference88 = ref span41[7]; + num++; + ref QuestSequence reference88 = ref span110[num]; QuestSequence obj79 = new QuestSequence { Sequence = 7 @@ -97108,37 +116860,45 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1009758u, new Vector3(-161.24213f, 7.554849f, 107.10303f), 153) + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.Interact, 1009758u, new Vector3(-161.24213f, 7.554849f, 107.10303f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj79.Steps = list123; reference88 = obj79; - ref QuestSequence reference89 = ref span41[8]; + num++; + ref QuestSequence reference89 = ref span110[num]; QuestSequence obj80 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - ref QuestStep reference90 = ref CollectionsMarshal.AsSpan(list124)[0]; + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + ref QuestStep reference90 = ref span124[num2]; QuestStep obj81 = new QuestStep(EInteractionType.Combat, 2004846u, new Vector3(-181.44507f, 8.0720215f, 101.27405f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span47 = CollectionsMarshal.AsSpan(list125); - span47[0] = 2863u; - span47[1] = 3558u; + num4 = 2; + List list125 = new List(num4); + CollectionsMarshal.SetCount(list125, num4); + Span span125 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span125[num3] = 2863u; + num3++; + span125[num3] = 3558u; obj81.KillEnemyDataIds = list125; reference90 = obj81; obj80.Steps = list124; reference89 = obj80; - ref QuestSequence reference91 = ref span41[9]; + num++; + ref QuestSequence reference91 = ref span110[num]; QuestSequence obj82 = new QuestSequence { Sequence = 9 @@ -97146,21 +116906,26 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1009760u, new Vector3(-235.21783f, 6.619436f, 609.39954f), 153) + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span126[index2] = new QuestStep(EInteractionType.Interact, 1009760u, new Vector3(-235.21783f, 6.619436f, 609.39954f), 153) { Fly = true }; obj82.Steps = list126; reference91 = obj82; - ref QuestSequence reference92 = ref span41[10]; + num++; + ref QuestSequence reference92 = ref span110[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009760u, new Vector3(-235.21783f, 6.619436f, 609.39954f), 153) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009760u, new Vector3(-235.21783f, 6.619436f, 609.39954f), 153) { NextQuestId = new QuestId(1572) }; @@ -97173,13 +116938,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + Span span128 = CollectionsMarshal.AsSpan(list128); + index = 0; + span128[index] = "liza"; questRoot17.Author = list128; - num = 13; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span48 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference93 = ref span48[0]; + index = 13; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + Span span129 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference93 = ref span129[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -97187,7 +116955,9 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span130[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -97200,21 +116970,25 @@ public static class AssemblyQuestLoader }; obj84.Steps = list130; reference93 = obj84; - ref QuestSequence reference94 = ref span48[1]; + num++; + ref QuestSequence reference94 = ref span129[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span131[num2] = new QuestStep(EInteractionType.Interact, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj85.Steps = list131; reference94 = obj85; - ref QuestSequence reference95 = ref span48[2]; + num++; + ref QuestSequence reference95 = ref span129[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -97222,7 +116996,9 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list132)[0]; + Span span132 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + ref QuestStep reference96 = ref span132[index2]; QuestStep obj87 = new QuestStep(EInteractionType.Combat, null, new Vector3(328.4609f, -5.423937f, 266.34305f), 154) { StopDistance = 0.5f, @@ -97232,27 +117008,34 @@ public static class AssemblyQuestLoader num3 = 2; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - Span span49 = CollectionsMarshal.AsSpan(list133); - span49[0] = 3556u; - span49[1] = 3557u; + Span span133 = CollectionsMarshal.AsSpan(list133); + num4 = 0; + span133[num4] = 3556u; + num4++; + span133[num4] = 3557u; obj87.KillEnemyDataIds = list133; reference96 = obj87; obj86.Steps = list132; reference95 = obj86; - ref QuestSequence reference97 = ref span48[3]; + num++; + ref QuestSequence reference97 = ref span129[num]; QuestSequence obj88 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list134)[0]; + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + ref QuestStep reference98 = ref span134[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1010405u, new Vector3(334.73718f, -6.0854516f, 270.74072f), 154); - num3 = 1; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = new DialogueChoice + num4 = 1; + List list135 = new List(num4); + CollectionsMarshal.SetCount(list135, num4); + Span span135 = CollectionsMarshal.AsSpan(list135); + num3 = 0; + span135[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST015_01575_Q1_000_070"), @@ -97262,7 +117045,8 @@ public static class AssemblyQuestLoader reference98 = questStep10; obj88.Steps = list134; reference97 = obj88; - ref QuestSequence reference99 = ref span48[4]; + num++; + ref QuestSequence reference99 = ref span129[num]; QuestSequence obj89 = new QuestSequence { Sequence = 4 @@ -97270,27 +117054,33 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1010407u, new Vector3(225.54358f, -25.225279f, 233.56982f), 154) + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span136[index2] = new QuestStep(EInteractionType.Interact, 1010407u, new Vector3(225.54358f, -25.225279f, 233.56982f), 154) { Fly = true }; obj89.Steps = list136; reference99 = obj89; - ref QuestSequence reference100 = ref span48[5]; + num++; + ref QuestSequence reference100 = ref span129[num]; QuestSequence obj90 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1010408u, new Vector3(47.837036f, -34.920486f, 275.89832f), 154) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span137[num2] = new QuestStep(EInteractionType.Interact, 1010408u, new Vector3(47.837036f, -34.920486f, 275.89832f), 154) { Fly = true }; obj90.Steps = list137; reference100 = obj90; - ref QuestSequence reference101 = ref span48[6]; + num++; + ref QuestSequence reference101 = ref span129[num]; QuestSequence obj91 = new QuestSequence { Sequence = 6 @@ -97298,26 +117088,32 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154); + Span span138 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span138[index2] = new QuestStep(EInteractionType.Interact, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154); obj91.Steps = list138; reference101 = obj91; - ref QuestSequence reference102 = ref span48[7]; + num++; + ref QuestSequence reference102 = ref span129[num]; QuestSequence obj92 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - Span span50 = CollectionsMarshal.AsSpan(list139); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-31.059683f, -40.708477f, 195.24632f), 154) + index2 = 2; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + Span span139 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span139[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-31.059683f, -40.708477f, 195.24632f), 154) { Fly = true }; - span50[1] = new QuestStep(EInteractionType.Interact, 1010409u, new Vector3(-20.279297f, -34.656372f, 172.13696f), 154); + num2++; + span139[num2] = new QuestStep(EInteractionType.Interact, 1010409u, new Vector3(-20.279297f, -34.656372f, 172.13696f), 154); obj92.Steps = list139; reference102 = obj92; - ref QuestSequence reference103 = ref span48[8]; + num++; + ref QuestSequence reference103 = ref span129[num]; QuestSequence obj93 = new QuestSequence { Sequence = 8 @@ -97325,27 +117121,33 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154) + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.Interact, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154) { Fly = true }; obj93.Steps = list140; reference103 = obj93; - ref QuestSequence reference104 = ref span48[9]; + num++; + ref QuestSequence reference104 = ref span129[num]; QuestSequence obj94 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 1010410u, new Vector3(9.567322f, -10.024739f, 22.934265f), 154) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span141[num2] = new QuestStep(EInteractionType.Interact, 1010410u, new Vector3(9.567322f, -10.024739f, 22.934265f), 154) { Fly = true }; obj94.Steps = list141; reference104 = obj94; - ref QuestSequence reference105 = ref span48[10]; + num++; + ref QuestSequence reference105 = ref span129[num]; QuestSequence obj95 = new QuestSequence { Sequence = 10 @@ -97353,29 +117155,35 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 1010509u, new Vector3(63.370728f, -13.485855f, 141.86316f), 154) + Span span142 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span142[index2] = new QuestStep(EInteractionType.Interact, 1010509u, new Vector3(63.370728f, -13.485855f, 141.86316f), 154) { Fly = true }; obj95.Steps = list142; reference105 = obj95; - ref QuestSequence reference106 = ref span48[11]; + num++; + ref QuestSequence reference106 = ref span129[num]; QuestSequence obj96 = new QuestSequence { Sequence = 11 }; - num2 = 2; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - Span span51 = CollectionsMarshal.AsSpan(list143); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-31.059683f, -40.708477f, 195.24632f), 154) + index2 = 2; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + Span span143 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span143[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-31.059683f, -40.708477f, 195.24632f), 154) { Fly = true }; - span51[1] = new QuestStep(EInteractionType.Interact, 1010409u, new Vector3(-20.279297f, -34.656372f, 172.13696f), 154); + num2++; + span143[num2] = new QuestStep(EInteractionType.Interact, 1010409u, new Vector3(-20.279297f, -34.656372f, 172.13696f), 154); obj96.Steps = list143; reference106 = obj96; - ref QuestSequence reference107 = ref span48[12]; + num++; + ref QuestSequence reference107 = ref span129[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue @@ -97383,7 +117191,9 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154) + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span144[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154) { Fly = true, NextQuestId = new QuestId(243) @@ -97397,21 +117207,26 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "liza"; + Span span145 = CollectionsMarshal.AsSpan(list145); + index = 0; + span145[index] = "liza"; questRoot18.Author = list145; - num = 9; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span52 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference108 = ref span52[0]; + index = 9; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + Span span146 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference108 = ref span146[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -97424,7 +117239,8 @@ public static class AssemblyQuestLoader }; obj98.Steps = list147; reference108 = obj98; - ref QuestSequence reference109 = ref span52[1]; + num++; + ref QuestSequence reference109 = ref span146[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 @@ -97432,26 +117248,31 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146) + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span148[index2] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj99.Steps = list148; reference109 = obj99; - ref QuestSequence reference110 = ref span52[2]; + num++; + ref QuestSequence reference110 = ref span146[num]; QuestSequence obj100 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - Span span53 = CollectionsMarshal.AsSpan(list149); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.1732f, 27.485052f, -324.7051f), 146) + index2 = 4; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.1732f, 27.485052f, -324.7051f), 146) { Mount = true }; - ref QuestStep reference111 = ref span53[1]; + num2++; + ref QuestStep reference111 = ref span149[num2]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 2004884u, new Vector3(-64.86609f, -1.5411987f, -69.50488f), 146) { Fly = true @@ -97459,33 +117280,48 @@ public static class AssemblyQuestLoader num3 = 6; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - Span span54 = CollectionsMarshal.AsSpan(list150); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + Span span150 = CollectionsMarshal.AsSpan(list150); + num4 = 0; + span150[num4] = null; + num4++; + span150[num4] = null; + num4++; + span150[num4] = null; + num4++; + span150[num4] = null; + num4++; + span150[num4] = null; + num4++; + span150[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj101.CompletionQuestVariablesFlags = list150; reference111 = obj101; - ref QuestStep reference112 = ref span53[2]; + num2++; + ref QuestStep reference112 = ref span149[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2004883u, new Vector3(-53.635498f, -1.3886108f, -53.391357f), 146); - num3 = 6; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - Span span55 = CollectionsMarshal.AsSpan(list151); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list151 = new List(num4); + CollectionsMarshal.SetCount(list151, num4); + Span span151 = CollectionsMarshal.AsSpan(list151); + num3 = 0; + span151[num3] = null; + num3++; + span151[num3] = null; + num3++; + span151[num3] = null; + num3++; + span151[num3] = null; + num3++; + span151[num3] = null; + num3++; + span151[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list151; reference112 = questStep11; - span53[3] = new QuestStep(EInteractionType.Interact, 2004882u, new Vector3(-69.077576f, -2.1820679f, -32.913757f), 146); + num2++; + span149[num2] = new QuestStep(EInteractionType.Interact, 2004882u, new Vector3(-69.077576f, -2.1820679f, -32.913757f), 146); obj100.Steps = list149; reference110 = obj100; - ref QuestSequence reference113 = ref span52[3]; + num++; + ref QuestSequence reference113 = ref span146[num]; QuestSequence obj102 = new QuestSequence { Sequence = 3 @@ -97493,28 +117329,34 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146) + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span152[index2] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj102.Steps = list152; reference113 = obj102; - ref QuestSequence reference114 = ref span52[4]; + num++; + ref QuestSequence reference114 = ref span146[num]; QuestSequence obj103 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span153[num2] = new QuestStep(EInteractionType.Interact, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj103.Steps = list153; reference114 = obj103; - ref QuestSequence reference115 = ref span52[5]; + num++; + ref QuestSequence reference115 = ref span146[num]; QuestSequence obj104 = new QuestSequence { Sequence = 5 @@ -97522,22 +117364,26 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-155.2711f, -32.952675f, 242.00226f), 145) + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-155.2711f, -32.952675f, 242.00226f), 145) { Fly = true }; obj104.Steps = list154; reference115 = obj104; - ref QuestSequence reference116 = ref span52[6]; + num++; + ref QuestSequence reference116 = ref span146[num]; QuestSequence obj105 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - Span span56 = CollectionsMarshal.AsSpan(list155); - ref QuestStep reference117 = ref span56[0]; + index2 = 2; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + ref QuestStep reference117 = ref span155[num2]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, null, new Vector3(-155.2711f, -32.952675f, 242.00226f), 145) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny @@ -97545,18 +117391,22 @@ public static class AssemblyQuestLoader num3 = 2; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span57 = CollectionsMarshal.AsSpan(list156); - span57[0] = 3554u; - span57[1] = 3555u; + Span span156 = CollectionsMarshal.AsSpan(list156); + num4 = 0; + span156[num4] = 3554u; + num4++; + span156[num4] = 3555u; obj106.KillEnemyDataIds = list156; reference117 = obj106; - span56[1] = new QuestStep(EInteractionType.Interact, 1010417u, new Vector3(-154.37555f, -31.787657f, 244.7699f), 145) + num2++; + span155[num2] = new QuestStep(EInteractionType.Interact, 1010417u, new Vector3(-154.37555f, -31.787657f, 244.7699f), 145) { StopDistance = 5f }; obj105.Steps = list155; reference116 = obj105; - ref QuestSequence reference118 = ref span52[7]; + num++; + ref QuestSequence reference118 = ref span146[num]; QuestSequence obj107 = new QuestSequence { Sequence = 7 @@ -97564,22 +117414,27 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.Interact, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj107.Steps = list157; reference118 = obj107; - ref QuestSequence reference119 = ref span52[8]; + num++; + ref QuestSequence reference119 = ref span146[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146) + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span158[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, NextQuestId = new QuestId(1577) @@ -97593,13 +117448,16 @@ public static class AssemblyQuestLoader num = 1; List list159 = new List(num); CollectionsMarshal.SetCount(list159, num); - CollectionsMarshal.AsSpan(list159)[0] = "liza"; + Span span159 = CollectionsMarshal.AsSpan(list159); + index = 0; + span159[index] = "liza"; questRoot19.Author = list159; - num = 10; - List list160 = new List(num); - CollectionsMarshal.SetCount(list160, num); - Span span58 = CollectionsMarshal.AsSpan(list160); - ref QuestSequence reference120 = ref span58[0]; + index = 10; + List list160 = new List(index); + CollectionsMarshal.SetCount(list160, index); + Span span160 = CollectionsMarshal.AsSpan(list160); + num = 0; + ref QuestSequence reference120 = ref span160[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -97607,7 +117465,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -97620,20 +117480,24 @@ public static class AssemblyQuestLoader }; obj109.Steps = list161; reference120 = obj109; - ref QuestSequence reference121 = ref span58[1]; + num++; + ref QuestSequence reference121 = ref span160[num]; QuestSequence obj110 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span59 = CollectionsMarshal.AsSpan(list162); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-99.05126f, 19.82f, 88.622086f), 129); - span59[1] = new QuestStep(EInteractionType.Interact, 1010419u, new Vector3(-117.84546f, 21.38377f, 83.604126f), 129); + index2 = 2; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span162[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-99.05126f, 19.82f, 88.622086f), 129); + num2++; + span162[num2] = new QuestStep(EInteractionType.Interact, 1010419u, new Vector3(-117.84546f, 21.38377f, 83.604126f), 129); obj110.Steps = list162; reference121 = obj110; - ref QuestSequence reference122 = ref span58[2]; + num++; + ref QuestSequence reference122 = ref span160[num]; QuestSequence obj111 = new QuestSequence { Sequence = 2 @@ -97641,28 +117505,34 @@ public static class AssemblyQuestLoader num2 = 2; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span60 = CollectionsMarshal.AsSpan(list163); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-90.47176f, 22.179348f, 116.58494f), 129); - span60[1] = new QuestStep(EInteractionType.Interact, 1010420u, new Vector3(-10.208313f, 39.51757f, -1.8463745f), 128); + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span163[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-90.47176f, 22.179348f, 116.58494f), 129); + index2++; + span163[index2] = new QuestStep(EInteractionType.Interact, 1010420u, new Vector3(-10.208313f, 39.51757f, -1.8463745f), 128); obj111.Steps = list163; reference122 = obj111; - ref QuestSequence reference123 = ref span58[3]; + num++; + ref QuestSequence reference123 = ref span160[num]; QuestSequence obj112 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - Span span61 = CollectionsMarshal.AsSpan(list164); - span61[0] = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) + index2 = 2; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 }; - span61[1] = new QuestStep(EInteractionType.Interact, 1010423u, new Vector3(-20.73706f, 19.999937f, 4.257263f), 129); + num2++; + span164[num2] = new QuestStep(EInteractionType.Interact, 1010423u, new Vector3(-20.73706f, 19.999937f, 4.257263f), 129); obj112.Steps = list164; reference123 = obj112; - ref QuestSequence reference124 = ref span58[4]; + num++; + ref QuestSequence reference124 = ref span160[num]; QuestSequence obj113 = new QuestSequence { Sequence = 4 @@ -97670,21 +117540,27 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1002433u, new Vector3(-6.729248f, 20.333345f, -0.7477417f), 129); + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.Interact, 1002433u, new Vector3(-6.729248f, 20.333345f, -0.7477417f), 129); obj113.Steps = list165; reference124 = obj113; - ref QuestSequence reference125 = ref span58[5]; + num++; + ref QuestSequence reference125 = ref span160[num]; QuestSequence obj114 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1010423u, new Vector3(-20.73706f, 19.999937f, 4.257263f), 129); + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.Interact, 1010423u, new Vector3(-20.73706f, 19.999937f, 4.257263f), 129); obj114.Steps = list166; reference125 = obj114; - ref QuestSequence reference126 = ref span58[6]; + num++; + ref QuestSequence reference126 = ref span160[num]; QuestSequence obj115 = new QuestSequence { Sequence = 6 @@ -97692,7 +117568,9 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1010424u, new Vector3(-172.59485f, 4.284276f, 168.07812f), 129) + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.Interact, 1010424u, new Vector3(-172.59485f, 4.284276f, 168.07812f), 129) { AethernetShortcut = new AethernetShortcut { @@ -97702,21 +117580,25 @@ public static class AssemblyQuestLoader }; obj115.Steps = list167; reference126 = obj115; - ref QuestSequence reference127 = ref span58[7]; + num++; + ref QuestSequence reference127 = ref span160[num]; QuestSequence obj116 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129) + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.Interact, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129) { StopDistance = 7f }; obj116.Steps = list168; reference127 = obj116; - ref QuestSequence reference128 = ref span58[8]; + num++; + ref QuestSequence reference128 = ref span160[num]; QuestSequence obj117 = new QuestSequence { Sequence = 8 @@ -97724,18 +117606,23 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1010424u, new Vector3(-172.59485f, 4.284276f, 168.07812f), 129); + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.Interact, 1010424u, new Vector3(-172.59485f, 4.284276f, 168.07812f), 129); obj117.Steps = list169; reference128 = obj117; - ref QuestSequence reference129 = ref span58[9]; + num++; + ref QuestSequence reference129 = ref span160[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010521u, new Vector3(-184.64948f, 1.9999955f, 201.28174f), 129) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010521u, new Vector3(-184.64948f, 1.9999955f, 201.28174f), 129) { NextQuestId = new QuestId(241) }; @@ -97748,13 +117635,16 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "JerryWester"; + Span span171 = CollectionsMarshal.AsSpan(list171); + index = 0; + span171[index] = "JerryWester"; questRoot20.Author = list171; - num = 6; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span62 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference130 = ref span62[0]; + index = 6; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + Span span172 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference130 = ref span172[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -97762,24 +117652,30 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010925u, new Vector3(-1.4191895f, 0.014982708f, -0.07635498f), 395) + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010925u, new Vector3(-1.4191895f, 0.014982708f, -0.07635498f), 395) { StopDistance = 7f }; obj119.Steps = list173; reference130 = obj119; - ref QuestSequence reference131 = ref span62[1]; + num++; + ref QuestSequence reference131 = ref span172[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1012308u, new Vector3(-3.1281738f, 0f, 2.822876f), 395); + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.Interact, 1012308u, new Vector3(-3.1281738f, 0f, 2.822876f), 395); obj120.Steps = list174; reference131 = obj120; - ref QuestSequence reference132 = ref span62[2]; + num++; + ref QuestSequence reference132 = ref span172[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 @@ -97787,24 +117683,29 @@ public static class AssemblyQuestLoader num2 = 3; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span63 = CollectionsMarshal.AsSpan(list175); - span63[0] = new QuestStep(EInteractionType.Interact, 2004781u, new Vector3(-4f, 1.2f, 11f), 395) + Span span175 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span175[index2] = new QuestStep(EInteractionType.Interact, 2004781u, new Vector3(-4f, 1.2f, 11f), 395) { TargetTerritoryId = (ushort)155 }; - span63[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-133.9223f, 304.15378f, -292.65924f), 155) + index2++; + span175[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-133.9223f, 304.15378f, -292.65924f), 155) { Fly = true }; - ref QuestStep reference133 = ref span63[2]; + index2++; + ref QuestStep reference133 = ref span175[index2]; QuestStep obj122 = new QuestStep(EInteractionType.Interact, 1012309u, new Vector3(-163.89722f, 304.1538f, -333.05872f), 155) { Fly = true }; - num3 = 1; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = new DialogueChoice + num4 = 1; + List list176 = new List(num4); + CollectionsMarshal.SetCount(list176, num4); + Span span176 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span176[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA101_01580_SCENE00005_EVENTAREA_WARP_YESNO_TITLE") @@ -97813,22 +117714,27 @@ public static class AssemblyQuestLoader reference133 = obj122; obj121.Steps = list175; reference132 = obj121; - span62[3] = new QuestSequence + num++; + span172[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference134 = ref span62[4]; + num++; + ref QuestSequence reference134 = ref span172[num]; QuestSequence obj123 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1012310u, new Vector3(-10.269409f, 1.2791281f, 83.42102f), 418); + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.Interact, 1012310u, new Vector3(-10.269409f, 1.2791281f, 83.42102f), 418); obj123.Steps = list177; reference134 = obj123; - ref QuestSequence reference135 = ref span62[5]; + num++; + ref QuestSequence reference135 = ref span172[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -97836,16 +117742,19 @@ public static class AssemblyQuestLoader num2 = 11; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span64 = CollectionsMarshal.AsSpan(list178); - span64[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 418) + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 418) { Aetheryte = EAetheryteLocation.Ishgard }; - span64[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + index2++; + span178[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardSkysteelManufactory }; - span64[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + index2++; + span178[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardBrume, AethernetShortcut = new AethernetShortcut @@ -97854,35 +117763,43 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Ishgard } }; - span64[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + index2++; + span178[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardForgottenKnight }; - span64[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.15989f, 30.584269f, -82.98525f), 418) + index2++; + span178[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.15989f, 30.584269f, -82.98525f), 418) { TargetTerritoryId = (ushort)419 }; - span64[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + index2++; + span178[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardAthenaeumAstrologicum }; - span64[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + index2++; + span178[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardTribunal }; - span64[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + index2++; + span178[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardSaintReymanaudsCathedral }; - span64[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + index2++; + span178[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardJeweledCrozier }; - span64[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + index2++; + span178[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardLastVigil }; - span64[10] = new QuestStep(EInteractionType.CompleteQuest, 1012313u, new Vector3(15.609924f, 16.009666f, -6.515625f), 419); + index2++; + span178[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012313u, new Vector3(15.609924f, 16.009666f, -6.515625f), 419); obj124.Steps = list178; reference135 = obj124; questRoot20.QuestSequence = list172; @@ -97892,24 +117809,30 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "JerryWester"; + Span span179 = CollectionsMarshal.AsSpan(list179); + index = 0; + span179[index] = "JerryWester"; questRoot21.Author = list179; - num = 5; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span65 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference136 = ref span65[0]; + index = 5; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + Span span180 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference136 = ref span180[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013036u, new Vector3(-0.22894287f, -9.313226E-10f, 7.3395386f), 433); + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span181[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013036u, new Vector3(-0.22894287f, -9.313226E-10f, 7.3395386f), 433); obj125.Steps = list181; reference136 = obj125; - ref QuestSequence reference137 = ref span65[1]; + num++; + ref QuestSequence reference137 = ref span180[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -97917,24 +117840,30 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1012316u, new Vector3(12.130859f, 16.009666f, -7.0039062f), 419) + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.Interact, 1012316u, new Vector3(12.130859f, 16.009666f, -7.0039062f), 419) { StopDistance = 5f }; obj126.Steps = list182; reference137 = obj126; - ref QuestSequence reference138 = ref span65[2]; + num++; + ref QuestSequence reference138 = ref span180[num]; QuestSequence obj127 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1012317u, new Vector3(-4.3793945f, 27.753849f, -148.27197f), 419); + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span183[num2] = new QuestStep(EInteractionType.Interact, 1012317u, new Vector3(-4.3793945f, 27.753849f, -148.27197f), 419); obj127.Steps = list183; reference138 = obj127; - ref QuestSequence reference139 = ref span65[3]; + num++; + ref QuestSequence reference139 = ref span180[num]; QuestSequence obj128 = new QuestSequence { Sequence = 3 @@ -97942,7 +117871,9 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) + Span span184 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span184[index2] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) { AethernetShortcut = new AethernetShortcut { @@ -97952,15 +117883,18 @@ public static class AssemblyQuestLoader }; obj128.Steps = list184; reference139 = obj128; - ref QuestSequence reference140 = ref span65[4]; + num++; + ref QuestSequence reference140 = ref span180[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012323u, new Vector3(-50.21753f, 8.05915f, 15.457336f), 418) + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span185[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012323u, new Vector3(-50.21753f, 8.05915f, 15.457336f), 418) { AethernetShortcut = new AethernetShortcut { @@ -97977,13 +117911,16 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "JerryWester"; + Span span186 = CollectionsMarshal.AsSpan(list186); + index = 0; + span186[index] = "JerryWester"; questRoot22.Author = list186; - num = 4; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span66 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference141 = ref span66[0]; + index = 4; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + Span span187 = CollectionsMarshal.AsSpan(list187); + num = 0; + ref QuestSequence reference141 = ref span187[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -97991,7 +117928,9 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012323u, new Vector3(-50.21753f, 8.05915f, 15.457336f), 418) + Span span188 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span188[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012323u, new Vector3(-50.21753f, 8.05915f, 15.457336f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -98004,15 +117943,18 @@ public static class AssemblyQuestLoader }; obj130.Steps = list188; reference141 = obj130; - ref QuestSequence reference142 = ref span66[1]; + num++; + ref QuestSequence reference142 = ref span187[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) { AethernetShortcut = new AethernetShortcut { @@ -98022,7 +117964,8 @@ public static class AssemblyQuestLoader }; obj131.Steps = list189; reference142 = obj131; - ref QuestSequence reference143 = ref span66[2]; + num++; + ref QuestSequence reference143 = ref span187[num]; QuestSequence obj132 = new QuestSequence { Sequence = 2 @@ -98030,8 +117973,9 @@ public static class AssemblyQuestLoader num2 = 2; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span67 = CollectionsMarshal.AsSpan(list190); - span67[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -98040,18 +117984,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - span67[1] = new QuestStep(EInteractionType.Interact, 1013033u, new Vector3(-0.015319824f, 0.022254245f, 3.7078857f), 433); + index2++; + span190[index2] = new QuestStep(EInteractionType.Interact, 1013033u, new Vector3(-0.015319824f, 0.022254245f, 3.7078857f), 433); obj132.Steps = list190; reference143 = obj132; - ref QuestSequence reference144 = ref span66[3]; + num++; + ref QuestSequence reference144 = ref span187[num]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013036u, new Vector3(-0.22894287f, -9.313226E-10f, 7.3395386f), 433); + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013036u, new Vector3(-0.22894287f, -9.313226E-10f, 7.3395386f), 433); obj133.Steps = list191; reference144 = obj133; questRoot22.QuestSequence = list187; @@ -98061,13 +118009,16 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - CollectionsMarshal.AsSpan(list192)[0] = "JerryWester"; + Span span192 = CollectionsMarshal.AsSpan(list192); + index = 0; + span192[index] = "JerryWester"; questRoot23.Author = list192; - num = 5; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - Span span68 = CollectionsMarshal.AsSpan(list193); - ref QuestSequence reference145 = ref span68[0]; + index = 5; + List list193 = new List(index); + CollectionsMarshal.SetCount(list193, index); + Span span193 = CollectionsMarshal.AsSpan(list193); + num = 0; + ref QuestSequence reference145 = ref span193[num]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -98075,23 +118026,28 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012328u, new Vector3(1.7547607f, 0.0034502316f, -9.750549f), 433); + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012328u, new Vector3(1.7547607f, 0.0034502316f, -9.750549f), 433); obj134.Steps = list194; reference145 = obj134; - ref QuestSequence reference146 = ref span68[1]; + num++; + ref QuestSequence reference146 = ref span193[num]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - Span span69 = CollectionsMarshal.AsSpan(list195); - span69[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) + index2 = 2; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) { TargetTerritoryId = (ushort)419 }; - ref QuestStep reference147 = ref span69[1]; + num2++; + ref QuestStep reference147 = ref span195[num2]; QuestStep obj136 = new QuestStep(EInteractionType.Interact, 1012331u, new Vector3(-163.43939f, 2.1510596f, -5.508545f), 418) { AethernetShortcut = new AethernetShortcut @@ -98103,7 +118059,9 @@ public static class AssemblyQuestLoader num3 = 1; List list196 = new List(num3); CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = new DialogueChoice + Span span196 = CollectionsMarshal.AsSpan(list196); + num4 = 0; + span196[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA104_01583_SCENE00005_EVENTAREA_WARP_YESNO_TITLE") @@ -98112,11 +118070,13 @@ public static class AssemblyQuestLoader reference147 = obj136; obj135.Steps = list195; reference146 = obj135; - span68[2] = new QuestSequence + num++; + span193[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference148 = ref span68[3]; + num++; + ref QuestSequence reference148 = ref span193[num]; QuestSequence obj137 = new QuestSequence { Sequence = 3 @@ -98124,24 +118084,29 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1012333u, new Vector3(481.40686f, 225.00232f, 793.14856f), 397); + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.Interact, 1012333u, new Vector3(481.40686f, 225.00232f, 793.14856f), 397); obj137.Steps = list197; reference148 = obj137; - ref QuestSequence reference149 = ref span68[4]; + num++; + ref QuestSequence reference149 = ref span193[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - Span span70 = CollectionsMarshal.AsSpan(list198); - span70[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 397) + index2 = 2; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span198 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span198[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 397) { StopDistance = 7f, Aetheryte = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - span70[1] = new QuestStep(EInteractionType.CompleteQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397); + num2++; + span198[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397); obj138.Steps = list198; reference149 = obj138; questRoot23.QuestSequence = list193; @@ -98151,13 +118116,16 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "JerryWester"; + Span span199 = CollectionsMarshal.AsSpan(list199); + index = 0; + span199[index] = "JerryWester"; questRoot24.Author = list199; - num = 4; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span71 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference150 = ref span71[0]; + index = 4; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + Span span200 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference150 = ref span200[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -98165,7 +118133,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -98178,18 +118148,22 @@ public static class AssemblyQuestLoader }; obj139.Steps = list201; reference150 = obj139; - ref QuestSequence reference151 = ref span71[1]; + num++; + ref QuestSequence reference151 = ref span200[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1011236u, new Vector3(446.00586f, 217.95142f, 764.06494f), 397); + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.Interact, 1011236u, new Vector3(446.00586f, 217.95142f, 764.06494f), 397); obj140.Steps = list202; reference151 = obj140; - ref QuestSequence reference152 = ref span71[2]; + num++; + ref QuestSequence reference152 = ref span200[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 @@ -98197,84 +118171,114 @@ public static class AssemblyQuestLoader num2 = 3; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span72 = CollectionsMarshal.AsSpan(list203); - ref QuestStep reference153 = ref span72[0]; + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + ref QuestStep reference153 = ref span203[index2]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, 2005403u, new Vector3(430.5067f, 225.0027f, 800.9321f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = 4376u; + num4 = 1; + List list204 = new List(num4); + CollectionsMarshal.SetCount(list204, num4); + Span span204 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span204[num3] = 4376u; obj142.KillEnemyDataIds = list204; num3 = 6; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - Span span73 = CollectionsMarshal.AsSpan(list205); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span205 = CollectionsMarshal.AsSpan(list205); + num4 = 0; + span205[num4] = null; + num4++; + span205[num4] = null; + num4++; + span205[num4] = null; + num4++; + span205[num4] = null; + num4++; + span205[num4] = null; + num4++; + span205[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj142.CompletionQuestVariablesFlags = list205; reference153 = obj142; - ref QuestStep reference154 = ref span72[1]; + index2++; + ref QuestStep reference154 = ref span203[index2]; QuestStep obj143 = new QuestStep(EInteractionType.Combat, 2005404u, new Vector3(552.39185f, 228.3512f, 725.9784f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = 4376u; + num4 = 1; + List list206 = new List(num4); + CollectionsMarshal.SetCount(list206, num4); + Span span206 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span206[num3] = 4376u; obj143.KillEnemyDataIds = list206; num3 = 6; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - Span span74 = CollectionsMarshal.AsSpan(list207); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span207 = CollectionsMarshal.AsSpan(list207); + num4 = 0; + span207[num4] = null; + num4++; + span207[num4] = null; + num4++; + span207[num4] = null; + num4++; + span207[num4] = null; + num4++; + span207[num4] = null; + num4++; + span207[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj143.CompletionQuestVariablesFlags = list207; reference154 = obj143; - ref QuestStep reference155 = ref span72[2]; + index2++; + ref QuestStep reference155 = ref span203[index2]; QuestStep obj144 = new QuestStep(EInteractionType.Combat, 2005405u, new Vector3(421.59143f, 212.69543f, 708.1559f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = 4376u; + num4 = 1; + List list208 = new List(num4); + CollectionsMarshal.SetCount(list208, num4); + Span span208 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span208[num3] = 4376u; obj144.KillEnemyDataIds = list208; num3 = 6; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - Span span75 = CollectionsMarshal.AsSpan(list209); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span209 = CollectionsMarshal.AsSpan(list209); + num4 = 0; + span209[num4] = null; + num4++; + span209[num4] = null; + num4++; + span209[num4] = null; + num4++; + span209[num4] = null; + num4++; + span209[num4] = null; + num4++; + span209[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj144.CompletionQuestVariablesFlags = list209; reference155 = obj144; obj141.Steps = list203; reference152 = obj141; - ref QuestSequence reference156 = ref span71[3]; + num++; + ref QuestSequence reference156 = ref span200[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011236u, new Vector3(446.00586f, 217.95142f, 764.06494f), 397); + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span210[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011236u, new Vector3(446.00586f, 217.95142f, 764.06494f), 397); obj145.Steps = list210; reference156 = obj145; questRoot24.QuestSequence = list200; @@ -98284,13 +118288,16 @@ public static class AssemblyQuestLoader num = 1; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - CollectionsMarshal.AsSpan(list211)[0] = "JerryWester"; + Span span211 = CollectionsMarshal.AsSpan(list211); + index = 0; + span211[index] = "JerryWester"; questRoot25.Author = list211; - num = 4; - List list212 = new List(num); - CollectionsMarshal.SetCount(list212, num); - Span span76 = CollectionsMarshal.AsSpan(list212); - ref QuestSequence reference157 = ref span76[0]; + index = 4; + List list212 = new List(index); + CollectionsMarshal.SetCount(list212, index); + Span span212 = CollectionsMarshal.AsSpan(list212); + num = 0; + ref QuestSequence reference157 = ref span212[num]; QuestSequence obj146 = new QuestSequence { Sequence = 0 @@ -98298,23 +118305,29 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011236u, new Vector3(446.00586f, 217.95142f, 764.06494f), 397); + Span span213 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span213[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011236u, new Vector3(446.00586f, 217.95142f, 764.06494f), 397); obj146.Steps = list213; reference157 = obj146; - ref QuestSequence reference158 = ref span76[1]; + num++; + ref QuestSequence reference158 = ref span212[num]; QuestSequence obj147 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - Span span77 = CollectionsMarshal.AsSpan(list214); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(464.90463f, 203.4332f, 679.09424f), 397); - span77[1] = new QuestStep(EInteractionType.Interact, 1011241u, new Vector3(501.7318f, 164.19402f, 301.13672f), 397); + index2 = 2; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + Span span214 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span214[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(464.90463f, 203.4332f, 679.09424f), 397); + num2++; + span214[num2] = new QuestStep(EInteractionType.Interact, 1011241u, new Vector3(501.7318f, 164.19402f, 301.13672f), 397); obj147.Steps = list214; reference158 = obj147; - ref QuestSequence reference159 = ref span76[2]; + num++; + ref QuestSequence reference159 = ref span212[num]; QuestSequence obj148 = new QuestSequence { Sequence = 2 @@ -98322,15 +118335,19 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - ref QuestStep reference160 = ref CollectionsMarshal.AsSpan(list215)[0]; + Span span215 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + ref QuestStep reference160 = ref span215[index2]; QuestStep obj149 = new QuestStep(EInteractionType.Combat, null, new Vector3(462.2118f, 164.57632f, 301.1987f), 397) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - CollectionsMarshal.AsSpan(list216)[0] = new ComplexCombatData + num4 = 1; + List list216 = new List(num4); + CollectionsMarshal.SetCount(list216, num4); + Span span216 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span216[num3] = new ComplexCombatData { DataId = 4803u, RewardItemId = 2001572u, @@ -98340,15 +118357,18 @@ public static class AssemblyQuestLoader reference160 = obj149; obj148.Steps = list215; reference159 = obj148; - ref QuestSequence reference161 = ref span76[3]; + num++; + ref QuestSequence reference161 = ref span212[num]; QuestSequence obj150 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011241u, new Vector3(501.7318f, 164.19402f, 301.13672f), 397); + index2 = 1; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + Span span217 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span217[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011241u, new Vector3(501.7318f, 164.19402f, 301.13672f), 397); obj150.Steps = list217; reference161 = obj150; questRoot25.QuestSequence = list212; @@ -98358,13 +118378,16 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "JerryWester"; + Span span218 = CollectionsMarshal.AsSpan(list218); + index = 0; + span218[index] = "JerryWester"; questRoot26.Author = list218; - num = 3; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span78 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference162 = ref span78[0]; + index = 3; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + Span span219 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference162 = ref span219[num]; QuestSequence obj151 = new QuestSequence { Sequence = 0 @@ -98372,21 +118395,27 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011241u, new Vector3(501.7318f, 164.19402f, 301.13672f), 397); + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span220[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011241u, new Vector3(501.7318f, 164.19402f, 301.13672f), 397); obj151.Steps = list220; reference162 = obj151; - ref QuestSequence reference163 = ref span78[1]; + num++; + ref QuestSequence reference163 = ref span219[num]; QuestSequence obj152 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1011903u, new Vector3(197.13123f, 189.4263f, 270.61877f), 397); + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span221[num2] = new QuestStep(EInteractionType.Interact, 1011903u, new Vector3(197.13123f, 189.4263f, 270.61877f), 397); obj152.Steps = list221; reference163 = obj152; - ref QuestSequence reference164 = ref span78[2]; + num++; + ref QuestSequence reference164 = ref span219[num]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue @@ -98394,7 +118423,9 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + Span span222 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span222[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; @@ -98407,21 +118438,26 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - CollectionsMarshal.AsSpan(list223)[0] = "JerryWester"; + Span span223 = CollectionsMarshal.AsSpan(list223); + index = 0; + span223[index] = "JerryWester"; questRoot27.Author = list223; - num = 6; - List list224 = new List(num); - CollectionsMarshal.SetCount(list224, num); - Span span79 = CollectionsMarshal.AsSpan(list224); - ref QuestSequence reference165 = ref span79[0]; + index = 6; + List list224 = new List(index); + CollectionsMarshal.SetCount(list224, index); + Span span224 = CollectionsMarshal.AsSpan(list224); + num = 0; + ref QuestSequence reference165 = ref span224[num]; QuestSequence obj154 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -98434,7 +118470,8 @@ public static class AssemblyQuestLoader }; obj154.Steps = list225; reference165 = obj154; - ref QuestSequence reference166 = ref span79[1]; + num++; + ref QuestSequence reference166 = ref span224[num]; QuestSequence obj155 = new QuestSequence { Sequence = 1 @@ -98442,21 +118479,27 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 1012334u, new Vector3(510.64307f, 217.95148f, 785.2445f), 397); + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span226[index2] = new QuestStep(EInteractionType.Interact, 1012334u, new Vector3(510.64307f, 217.95148f, 785.2445f), 397); obj155.Steps = list226; reference166 = obj155; - ref QuestSequence reference167 = ref span79[2]; + num++; + ref QuestSequence reference167 = ref span224[num]; QuestSequence obj156 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1012404u, new Vector3(179.52234f, 161.78215f, 132.73816f), 397); + index2 = 1; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + Span span227 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span227[num2] = new QuestStep(EInteractionType.Interact, 1012404u, new Vector3(179.52234f, 161.78215f, 132.73816f), 397); obj156.Steps = list227; reference167 = obj156; - ref QuestSequence reference168 = ref span79[3]; + num++; + ref QuestSequence reference168 = ref span224[num]; QuestSequence obj157 = new QuestSequence { Sequence = 3 @@ -98464,18 +118507,23 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1012338u, new Vector3(354.6654f, 159.5203f, 140.67285f), 397); + Span span228 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span228[index2] = new QuestStep(EInteractionType.Interact, 1012338u, new Vector3(354.6654f, 159.5203f, 140.67285f), 397); obj157.Steps = list228; reference168 = obj157; - ref QuestSequence reference169 = ref span79[4]; + num++; + ref QuestSequence reference169 = ref span224[num]; QuestSequence obj158 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list229)[0]; + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + Span span229 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + ref QuestStep reference170 = ref span229[num2]; QuestStep obj159 = new QuestStep(EInteractionType.Combat, null, new Vector3(81.99244f, 117.19824f, 152.92575f), 397) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -98483,15 +118531,19 @@ public static class AssemblyQuestLoader num3 = 3; List list230 = new List(num3); CollectionsMarshal.SetCount(list230, num3); - Span span80 = CollectionsMarshal.AsSpan(list230); - span80[0] = 4377u; - span80[1] = 4378u; - span80[2] = 4379u; + Span span230 = CollectionsMarshal.AsSpan(list230); + num4 = 0; + span230[num4] = 4377u; + num4++; + span230[num4] = 4378u; + num4++; + span230[num4] = 4379u; obj159.KillEnemyDataIds = list230; reference170 = obj159; obj158.Steps = list229; reference169 = obj158; - ref QuestSequence reference171 = ref span79[5]; + num++; + ref QuestSequence reference171 = ref span224[num]; QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue @@ -98499,7 +118551,9 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012340u, new Vector3(81.80359f, 117.19817f, 152.30017f), 397); + Span span231 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span231[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012340u, new Vector3(81.80359f, 117.19817f, 152.30017f), 397); obj160.Steps = list231; reference171 = obj160; questRoot27.QuestSequence = list224; @@ -98509,27 +118563,33 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - CollectionsMarshal.AsSpan(list232)[0] = "JerryWester"; + Span span232 = CollectionsMarshal.AsSpan(list232); + index = 0; + span232[index] = "JerryWester"; questRoot28.Author = list232; - num = 3; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - Span span81 = CollectionsMarshal.AsSpan(list233); - ref QuestSequence reference172 = ref span81[0]; + index = 3; + List list233 = new List(index); + CollectionsMarshal.SetCount(list233, index); + Span span233 = CollectionsMarshal.AsSpan(list233); + num = 0; + ref QuestSequence reference172 = ref span233[num]; QuestSequence obj161 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012344u, new Vector3(84.18396f, 117.19698f, 150.31653f), 397) + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + Span span234 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span234[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012344u, new Vector3(84.18396f, 117.19698f, 150.31653f), 397) { StopDistance = 7f }; obj161.Steps = list234; reference172 = obj161; - ref QuestSequence reference173 = ref span81[1]; + num++; + ref QuestSequence reference173 = ref span233[num]; QuestSequence obj162 = new QuestSequence { Sequence = 1 @@ -98537,7 +118597,9 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005408u, new Vector3(103.77649f, 102.311646f, -42.404846f), 397) + Span span235 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span235[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005408u, new Vector3(103.77649f, 102.311646f, -42.404846f), 397) { Comment = "Walk straight to Gorgagne Mills basement, ignore footprints", SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -98547,15 +118609,18 @@ public static class AssemblyQuestLoader }; obj162.Steps = list235; reference173 = obj162; - ref QuestSequence reference174 = ref span81[2]; + num++; + ref QuestSequence reference174 = ref span233[num]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012348u, new Vector3(465.01855f, 162.58325f, -522.9115f), 397); + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012348u, new Vector3(465.01855f, 162.58325f, -522.9115f), 397); obj163.Steps = list236; reference174 = obj163; questRoot28.QuestSequence = list233; @@ -98565,13 +118630,16 @@ public static class AssemblyQuestLoader num = 1; List list237 = new List(num); CollectionsMarshal.SetCount(list237, num); - CollectionsMarshal.AsSpan(list237)[0] = "JerryWester"; + Span span237 = CollectionsMarshal.AsSpan(list237); + index = 0; + span237[index] = "JerryWester"; questRoot29.Author = list237; - num = 3; - List list238 = new List(num); - CollectionsMarshal.SetCount(list238, num); - Span span82 = CollectionsMarshal.AsSpan(list238); - ref QuestSequence reference175 = ref span82[0]; + index = 3; + List list238 = new List(index); + CollectionsMarshal.SetCount(list238, index); + Span span238 = CollectionsMarshal.AsSpan(list238); + num = 0; + ref QuestSequence reference175 = ref span238[num]; QuestSequence obj164 = new QuestSequence { Sequence = 0 @@ -98579,24 +118647,30 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012348u, new Vector3(465.01855f, 162.58325f, -522.9115f), 397); + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012348u, new Vector3(465.01855f, 162.58325f, -522.9115f), 397); obj164.Steps = list239; reference175 = obj164; - ref QuestSequence reference176 = ref span82[1]; + num++; + ref QuestSequence reference176 = ref span238[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj165.Steps = list240; reference176 = obj165; - ref QuestSequence reference177 = ref span82[2]; + num++; + ref QuestSequence reference177 = ref span238[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue @@ -98604,8 +118678,9 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span83 = CollectionsMarshal.AsSpan(list241); - span83[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -98615,7 +118690,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - span83[1] = new QuestStep(EInteractionType.CompleteQuest, 1012328u, new Vector3(1.7547607f, 0.0034502316f, -9.750549f), 433); + index2++; + span241[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012328u, new Vector3(1.7547607f, 0.0034502316f, -9.750549f), 433); obj166.Steps = list241; reference177 = obj166; questRoot29.QuestSequence = list238; @@ -98625,24 +118701,30 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "JerryWester"; + Span span242 = CollectionsMarshal.AsSpan(list242); + index = 0; + span242[index] = "JerryWester"; questRoot30.Author = list242; - num = 5; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span84 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference178 = ref span84[0]; + index = 5; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + Span span243 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference178 = ref span243[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012329u, new Vector3(-7.309082f, 0.0035869647f, -0.5036011f), 433); + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012329u, new Vector3(-7.309082f, 0.0035869647f, -0.5036011f), 433); obj167.Steps = list244; reference178 = obj167; - ref QuestSequence reference179 = ref span84[1]; + num++; + ref QuestSequence reference179 = ref span243[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 @@ -98650,25 +118732,28 @@ public static class AssemblyQuestLoader num2 = 2; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span85 = CollectionsMarshal.AsSpan(list245); - span85[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) { TargetTerritoryId = (ushort)419 }; - ref QuestStep reference180 = ref span85[1]; + index2++; + ref QuestStep reference180 = ref span245[index2]; QuestStep obj169 = new QuestStep(EInteractionType.Interact, 1012353u, new Vector3(149.7367f, -12.263969f, -7.888916f), 419) { - StopDistance = 5f, AethernetShortcut = new AethernetShortcut { From = EAetheryteLocation.IshgardLastVigil, To = EAetheryteLocation.IshgardAthenaeumAstrologicum } }; - num3 = 1; - List list246 = new List(num3); - CollectionsMarshal.SetCount(list246, num3); - CollectionsMarshal.AsSpan(list246)[0] = new DialogueChoice + num4 = 1; + List list246 = new List(num4); + CollectionsMarshal.SetCount(list246, num4); + Span span246 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + span246[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA111_01590_SCENE00007_EVENTAREA_WARP_YESNO_TITLE") @@ -98677,22 +118762,27 @@ public static class AssemblyQuestLoader reference180 = obj169; obj168.Steps = list245; reference179 = obj168; - span84[2] = new QuestSequence + num++; + span243[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference181 = ref span84[3]; + num++; + ref QuestSequence reference181 = ref span243[num]; QuestSequence obj170 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1012351u, new Vector3(-731.1971f, -105.26523f, 470.54248f), 401); + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + Span span247 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span247[num2] = new QuestStep(EInteractionType.Interact, 1012351u, new Vector3(-731.1971f, -105.26523f, 470.54248f), 401); obj170.Steps = list247; reference181 = obj170; - ref QuestSequence reference182 = ref span84[4]; + num++; + ref QuestSequence reference182 = ref span243[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -98700,12 +118790,14 @@ public static class AssemblyQuestLoader num2 = 2; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span86 = CollectionsMarshal.AsSpan(list248); - span86[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 401) + Span span248 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span248[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 401) { Aetheryte = EAetheryteLocation.SeaOfCloudsCampCloudtop }; - span86[1] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + index2++; + span248[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); obj171.Steps = list248; reference182 = obj171; questRoot30.QuestSequence = list243; @@ -98715,21 +118807,26 @@ public static class AssemblyQuestLoader num = 1; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - CollectionsMarshal.AsSpan(list249)[0] = "JerryWester"; + Span span249 = CollectionsMarshal.AsSpan(list249); + index = 0; + span249[index] = "JerryWester"; questRoot31.Author = list249; - num = 4; - List list250 = new List(num); - CollectionsMarshal.SetCount(list250, num); - Span span87 = CollectionsMarshal.AsSpan(list250); - ref QuestSequence reference183 = ref span87[0]; + index = 4; + List list250 = new List(index); + CollectionsMarshal.SetCount(list250, index); + Span span250 = CollectionsMarshal.AsSpan(list250); + num = 0; + ref QuestSequence reference183 = ref span250[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + Span span251 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span251[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop, SkipConditions = new SkipConditions @@ -98742,7 +118839,8 @@ public static class AssemblyQuestLoader }; obj172.Steps = list251; reference183 = obj172; - ref QuestSequence reference184 = ref span87[1]; + num++; + ref QuestSequence reference184 = ref span250[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -98750,12 +118848,16 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - ref QuestStep reference185 = ref CollectionsMarshal.AsSpan(list252)[0]; + Span span252 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + ref QuestStep reference185 = ref span252[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1012354u, new Vector3(-284.38245f, -185.08519f, 732.2346f), 401); num3 = 1; List list253 = new List(num3); CollectionsMarshal.SetCount(list253, num3); - CollectionsMarshal.AsSpan(list253)[0] = new DialogueChoice + Span span253 = CollectionsMarshal.AsSpan(list253); + num4 = 0; + span253[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA112_01591_Q1_000_000"), @@ -98765,18 +118867,22 @@ public static class AssemblyQuestLoader reference185 = questStep12; obj173.Steps = list252; reference184 = obj173; - ref QuestSequence reference186 = ref span87[2]; + num++; + ref QuestSequence reference186 = ref span250[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1012355u, new Vector3(-285.11487f, -185.0477f, 735.40857f), 401); + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.Interact, 1012355u, new Vector3(-285.11487f, -185.0477f, 735.40857f), 401); obj174.Steps = list254; reference186 = obj174; - ref QuestSequence reference187 = ref span87[3]; + num++; + ref QuestSequence reference187 = ref span250[num]; QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue @@ -98784,36 +118890,42 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + Span span255 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span255[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); obj175.Steps = list255; reference187 = obj175; questRoot31.QuestSequence = list250; AddQuest(questId31, questRoot31); QuestId questId32 = new QuestId(1592); QuestRoot questRoot32 = new QuestRoot(); - num = 2; + num = 1; List list256 = new List(num); CollectionsMarshal.SetCount(list256, num); - Span span88 = CollectionsMarshal.AsSpan(list256); - span88[0] = "JerryWester"; - span88[1] = "Wigglez"; + Span span256 = CollectionsMarshal.AsSpan(list256); + index = 0; + span256[index] = "JerryWester"; questRoot32.Author = list256; - num = 4; - List list257 = new List(num); - CollectionsMarshal.SetCount(list257, num); - Span span89 = CollectionsMarshal.AsSpan(list257); - ref QuestSequence reference188 = ref span89[0]; + index = 4; + List list257 = new List(index); + CollectionsMarshal.SetCount(list257, index); + Span span257 = CollectionsMarshal.AsSpan(list257); + num = 0; + ref QuestSequence reference188 = ref span257[num]; QuestSequence obj176 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span258[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); obj176.Steps = list258; reference188 = obj176; - ref QuestSequence reference189 = ref span89[1]; + num++; + ref QuestSequence reference189 = ref span257[num]; QuestSequence obj177 = new QuestSequence { Sequence = 1 @@ -98821,63 +118933,77 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span259[index2] = new QuestStep(EInteractionType.Interact, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); obj177.Steps = list259; reference189 = obj177; - ref QuestSequence reference190 = ref span89[2]; + num++; + ref QuestSequence reference190 = ref span257[num]; QuestSequence obj178 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - Span span90 = CollectionsMarshal.AsSpan(list260); - ref QuestStep reference191 = ref span90[0]; + index2 = 3; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + ref QuestStep reference191 = ref span260[num2]; QuestStep obj179 = new QuestStep(EInteractionType.Combat, 2005409u, new Vector3(-254.65784f, -185.68707f, 662.6841f), 401) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - Span span91 = CollectionsMarshal.AsSpan(list261); - span91[0] = 4381u; - span91[1] = 4382u; + num4 = 2; + List list261 = new List(num4); + CollectionsMarshal.SetCount(list261, num4); + Span span261 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span261[num3] = 4381u; + num3++; + span261[num3] = 4382u; obj179.KillEnemyDataIds = list261; num3 = 6; List list262 = new List(num3); CollectionsMarshal.SetCount(list262, num3); - Span span92 = CollectionsMarshal.AsSpan(list262); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span262 = CollectionsMarshal.AsSpan(list262); + num4 = 0; + span262[num4] = null; + num4++; + span262[num4] = null; + num4++; + span262[num4] = null; + num4++; + span262[num4] = null; + num4++; + span262[num4] = null; + num4++; + span262[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj179.CompletionQuestVariablesFlags = list262; reference191 = obj179; - ref QuestStep reference192 = ref span90[1]; + num2++; + ref QuestStep reference192 = ref span260[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2005411u, new Vector3(-122.78937f, -166.00293f, 646.5095f), 401); - num3 = 6; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - Span span93 = CollectionsMarshal.AsSpan(list263); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list263 = new List(num4); + CollectionsMarshal.SetCount(list263, num4); + Span span263 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span263[num3] = null; + num3++; + span263[num3] = null; + num3++; + span263[num3] = null; + num3++; + span263[num3] = null; + num3++; + span263[num3] = null; + num3++; + span263[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list263; reference192 = questStep13; - span90[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-117.67188f, -136.44162f, 423.856f), 401); - span90[3] = new QuestStep(EInteractionType.None, null, new Vector3(-117.67188f, -136.44162f, 423.856f), 401) - { - DelaySecondsAtStart = 5f, - Comment = "Wait in safe spot for combat to drop" - }; - ref QuestStep reference193 = ref span90[4]; + num2++; + ref QuestStep reference193 = ref span260[num2]; QuestStep obj180 = new QuestStep(EInteractionType.Combat, 2005410u, new Vector3(-81.16278f, -136.98022f, 468.5282f), 401) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -98885,25 +119011,34 @@ public static class AssemblyQuestLoader num3 = 2; List list264 = new List(num3); CollectionsMarshal.SetCount(list264, num3); - Span span94 = CollectionsMarshal.AsSpan(list264); - span94[0] = 4380u; - span94[1] = 4382u; + Span span264 = CollectionsMarshal.AsSpan(list264); + num4 = 0; + span264[num4] = 4380u; + num4++; + span264[num4] = 4382u; obj180.KillEnemyDataIds = list264; - num3 = 6; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - Span span95 = CollectionsMarshal.AsSpan(list265); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list265 = new List(num4); + CollectionsMarshal.SetCount(list265, num4); + Span span265 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj180.CompletionQuestVariablesFlags = list265; reference193 = obj180; obj178.Steps = list260; reference190 = obj178; - ref QuestSequence reference194 = ref span89[3]; + num++; + ref QuestSequence reference194 = ref span257[num]; QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue @@ -98911,7 +119046,9 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); + Span span266 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span266[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); obj181.Steps = list266; reference194 = obj181; questRoot32.QuestSequence = list257; @@ -98921,24 +119058,30 @@ public static class AssemblyQuestLoader num = 1; List list267 = new List(num); CollectionsMarshal.SetCount(list267, num); - CollectionsMarshal.AsSpan(list267)[0] = "JerryWester"; + Span span267 = CollectionsMarshal.AsSpan(list267); + index = 0; + span267[index] = "JerryWester"; questRoot33.Author = list267; - num = 3; - List list268 = new List(num); - CollectionsMarshal.SetCount(list268, num); - Span span96 = CollectionsMarshal.AsSpan(list268); - ref QuestSequence reference195 = ref span96[0]; + index = 3; + List list268 = new List(index); + CollectionsMarshal.SetCount(list268, index); + Span span268 = CollectionsMarshal.AsSpan(list268); + num = 0; + ref QuestSequence reference195 = ref span268[num]; QuestSequence obj182 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + Span span269 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span269[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); obj182.Steps = list269; reference195 = obj182; - ref QuestSequence reference196 = ref span96[1]; + num++; + ref QuestSequence reference196 = ref span268[num]; QuestSequence obj183 = new QuestSequence { Sequence = 1 @@ -98946,8 +119089,9 @@ public static class AssemblyQuestLoader num2 = 6; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span97 = CollectionsMarshal.AsSpan(list270); - ref QuestStep reference197 = ref span97[0]; + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + ref QuestStep reference197 = ref span270[index2]; QuestStep obj184 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-343.27975f, -169.12419f, 800.5701f), 401) { Mount = true @@ -98957,39 +119101,53 @@ public static class AssemblyQuestLoader num3 = 6; List list271 = new List(num3); CollectionsMarshal.SetCount(list271, num3); - Span span98 = CollectionsMarshal.AsSpan(list271); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span271 = CollectionsMarshal.AsSpan(list271); + num4 = 0; + span271[num4] = null; + num4++; + span271[num4] = null; + num4++; + span271[num4] = null; + num4++; + span271[num4] = null; + num4++; + span271[num4] = null; + num4++; + span271[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list271; skipConditions4.StepIf = skipStepConditions4; obj184.SkipConditions = skipConditions4; reference197 = obj184; - ref QuestStep reference198 = ref span97[1]; + index2++; + ref QuestStep reference198 = ref span270[index2]; QuestStep obj185 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-325.61444f, -184.8876f, 806.3595f), 401) { DisableNavmesh = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list272 = new List(num3); - CollectionsMarshal.SetCount(list272, num3); - Span span99 = CollectionsMarshal.AsSpan(list272); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list272 = new List(num4); + CollectionsMarshal.SetCount(list272, num4); + Span span272 = CollectionsMarshal.AsSpan(list272); + num3 = 0; + span272[num3] = null; + num3++; + span272[num3] = null; + num3++; + span272[num3] = null; + num3++; + span272[num3] = null; + num3++; + span272[num3] = null; + num3++; + span272[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list272; skipConditions5.StepIf = skipStepConditions5; obj185.SkipConditions = skipConditions5; reference198 = obj185; - ref QuestStep reference199 = ref span97[2]; + index2++; + ref QuestStep reference199 = ref span270[index2]; QuestStep obj186 = new QuestStep(EInteractionType.Emote, 1013498u, new Vector3(-293.04956f, -183.73486f, 812.6802f), 401) { Emote = EEmote.Psych @@ -98997,34 +119155,49 @@ public static class AssemblyQuestLoader num3 = 6; List list273 = new List(num3); CollectionsMarshal.SetCount(list273, num3); - Span span100 = CollectionsMarshal.AsSpan(list273); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span273 = CollectionsMarshal.AsSpan(list273); + num4 = 0; + span273[num4] = null; + num4++; + span273[num4] = null; + num4++; + span273[num4] = null; + num4++; + span273[num4] = null; + num4++; + span273[num4] = null; + num4++; + span273[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj186.CompletionQuestVariablesFlags = list273; reference199 = obj186; - span97[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-368.08698f, -185.05266f, 792.836f), 401); - ref QuestStep reference200 = ref span97[4]; + index2++; + span270[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-368.08698f, -185.05266f, 792.836f), 401); + index2++; + ref QuestStep reference200 = ref span270[index2]; QuestStep obj187 = new QuestStep(EInteractionType.Emote, 1012360u, new Vector3(-337.75842f, -186.07346f, 618.55493f), 401) { Emote = EEmote.Psych }; - num3 = 6; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - Span span101 = CollectionsMarshal.AsSpan(list274); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list274 = new List(num4); + CollectionsMarshal.SetCount(list274, num4); + Span span274 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + span274[num3] = null; + num3++; + span274[num3] = null; + num3++; + span274[num3] = null; + num3++; + span274[num3] = null; + num3++; + span274[num3] = null; + num3++; + span274[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj187.CompletionQuestVariablesFlags = list274; reference200 = obj187; - ref QuestStep reference201 = ref span97[5]; + index2++; + ref QuestStep reference201 = ref span270[index2]; QuestStep obj188 = new QuestStep(EInteractionType.Emote, 1012359u, new Vector3(-260.91406f, -184.91077f, 705.4092f), 401) { Emote = EEmote.Psych @@ -99032,26 +119205,35 @@ public static class AssemblyQuestLoader num3 = 6; List list275 = new List(num3); CollectionsMarshal.SetCount(list275, num3); - Span span102 = CollectionsMarshal.AsSpan(list275); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span275 = CollectionsMarshal.AsSpan(list275); + num4 = 0; + span275[num4] = null; + num4++; + span275[num4] = null; + num4++; + span275[num4] = null; + num4++; + span275[num4] = null; + num4++; + span275[num4] = null; + num4++; + span275[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj188.CompletionQuestVariablesFlags = list275; reference201 = obj188; obj183.Steps = list270; reference196 = obj183; - ref QuestSequence reference202 = ref span96[2]; + num++; + ref QuestSequence reference202 = ref span268[num]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + Span span276 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + span276[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); obj189.Steps = list276; reference202 = obj189; questRoot33.QuestSequence = list268; @@ -99061,13 +119243,16 @@ public static class AssemblyQuestLoader num = 1; List list277 = new List(num); CollectionsMarshal.SetCount(list277, num); - CollectionsMarshal.AsSpan(list277)[0] = "JerryWester"; + Span span277 = CollectionsMarshal.AsSpan(list277); + index = 0; + span277[index] = "JerryWester"; questRoot34.Author = list277; - num = 6; - List list278 = new List(num); - CollectionsMarshal.SetCount(list278, num); - Span span103 = CollectionsMarshal.AsSpan(list278); - ref QuestSequence reference203 = ref span103[0]; + index = 6; + List list278 = new List(index); + CollectionsMarshal.SetCount(list278, index); + Span span278 = CollectionsMarshal.AsSpan(list278); + num = 0; + ref QuestSequence reference203 = ref span278[num]; QuestSequence obj190 = new QuestSequence { Sequence = 0 @@ -99075,21 +119260,27 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); + Span span279 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span279[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); obj190.Steps = list279; reference203 = obj190; - ref QuestSequence reference204 = ref span103[1]; + num++; + ref QuestSequence reference204 = ref span278[num]; QuestSequence obj191 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span280 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span280[num2] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); obj191.Steps = list280; reference204 = obj191; - ref QuestSequence reference205 = ref span103[2]; + num++; + ref QuestSequence reference205 = ref span278[num]; QuestSequence obj192 = new QuestSequence { Sequence = 2 @@ -99097,12 +119288,16 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - ref QuestStep reference206 = ref CollectionsMarshal.AsSpan(list281)[0]; + Span span281 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + ref QuestStep reference206 = ref span281[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1012354u, new Vector3(-284.38245f, -185.08519f, 732.2346f), 401); - num3 = 1; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = new DialogueChoice + num4 = 1; + List list282 = new List(num4); + CollectionsMarshal.SetCount(list282, num4); + Span span282 = CollectionsMarshal.AsSpan(list282); + num3 = 0; + span282[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA115_01594_Q1_000_000"), @@ -99112,18 +119307,22 @@ public static class AssemblyQuestLoader reference206 = questStep14; obj192.Steps = list281; reference205 = obj192; - ref QuestSequence reference207 = ref span103[3]; + num++; + ref QuestSequence reference207 = ref span278[num]; QuestSequence obj193 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1012363u, new Vector3(62.546753f, -144.91164f, 527.9469f), 401); + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + Span span283 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span283[num2] = new QuestStep(EInteractionType.Interact, 1012363u, new Vector3(62.546753f, -144.91164f, 527.9469f), 401); obj193.Steps = list283; reference207 = obj193; - ref QuestSequence reference208 = ref span103[4]; + num++; + ref QuestSequence reference208 = ref span278[num]; QuestSequence obj194 = new QuestSequence { Sequence = 4 @@ -99131,20 +119330,25 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 2005412u, new Vector3(408.89587f, -124.01007f, 718.5625f), 401); + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span284[index2] = new QuestStep(EInteractionType.Interact, 2005412u, new Vector3(408.89587f, -124.01007f, 718.5625f), 401); obj194.Steps = list284; reference208 = obj194; - ref QuestSequence reference209 = ref span103[5]; + num++; + ref QuestSequence reference209 = ref span278[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - Span span104 = CollectionsMarshal.AsSpan(list285); - span104[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(91.65932f, -147.83772f, 551.8496f), 401); - span104[1] = new QuestStep(EInteractionType.CompleteQuest, 1012364u, new Vector3(64.10315f, -144.92407f, 527.36694f), 401); + index2 = 2; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span285 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span285[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(91.65932f, -147.83772f, 551.8496f), 401); + num2++; + span285[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012364u, new Vector3(64.10315f, -144.92407f, 527.36694f), 401); obj195.Steps = list285; reference209 = obj195; questRoot34.QuestSequence = list278; @@ -99154,13 +119358,16 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "JerryWester"; + Span span286 = CollectionsMarshal.AsSpan(list286); + index = 0; + span286[index] = "JerryWester"; questRoot35.Author = list286; - num = 5; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span105 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference210 = ref span105[0]; + index = 5; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + Span span287 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference210 = ref span287[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -99168,21 +119375,27 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012364u, new Vector3(64.10315f, -144.92407f, 527.36694f), 401); + Span span288 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span288[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012364u, new Vector3(64.10315f, -144.92407f, 527.36694f), 401); obj196.Steps = list288; reference210 = obj196; - ref QuestSequence reference211 = ref span105[1]; + num++; + ref QuestSequence reference211 = ref span287[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 2005418u, new Vector3(418.4176f, -121.446594f, 630.64f), 401); + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + Span span289 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span289[num2] = new QuestStep(EInteractionType.Interact, 2005418u, new Vector3(418.4176f, -121.446594f, 630.64f), 401); obj197.Steps = list289; reference211 = obj197; - ref QuestSequence reference212 = ref span105[2]; + num++; + ref QuestSequence reference212 = ref span287[num]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -99190,18 +119403,23 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 2005419u, new Vector3(299.82446f, -115.8313f, 424.73486f), 401); + Span span290 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span290[index2] = new QuestStep(EInteractionType.Interact, 2005419u, new Vector3(299.82446f, -115.8313f, 424.73486f), 401); obj198.Steps = list290; reference212 = obj198; - ref QuestSequence reference213 = ref span105[3]; + num++; + ref QuestSequence reference213 = ref span287[num]; QuestSequence obj199 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012366u, new Vector3(531.18164f, -99.84944f, 349.96558f), 401) + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + Span span291 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span291[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012366u, new Vector3(531.18164f, -99.84944f, 349.96558f), 401) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -99210,7 +119428,8 @@ public static class AssemblyQuestLoader }; obj199.Steps = list291; reference213 = obj199; - ref QuestSequence reference214 = ref span105[4]; + num++; + ref QuestSequence reference214 = ref span287[num]; QuestSequence obj200 = new QuestSequence { Sequence = byte.MaxValue @@ -99218,7 +119437,9 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012367u, new Vector3(-678.2483f, -110.67414f, 481.77307f), 401) + Span span292 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span292[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012367u, new Vector3(-678.2483f, -110.67414f, 481.77307f), 401) { StopDistance = 7f }; @@ -99231,21 +119452,26 @@ public static class AssemblyQuestLoader num = 1; List list293 = new List(num); CollectionsMarshal.SetCount(list293, num); - CollectionsMarshal.AsSpan(list293)[0] = "JerryWester"; + Span span293 = CollectionsMarshal.AsSpan(list293); + index = 0; + span293[index] = "JerryWester"; questRoot36.Author = list293; - num = 4; - List list294 = new List(num); - CollectionsMarshal.SetCount(list294, num); - Span span106 = CollectionsMarshal.AsSpan(list294); - ref QuestSequence reference215 = ref span106[0]; + index = 4; + List list294 = new List(index); + CollectionsMarshal.SetCount(list294, index); + Span span294 = CollectionsMarshal.AsSpan(list294); + num = 0; + ref QuestSequence reference215 = ref span294[num]; QuestSequence obj201 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012368u, new Vector3(-676.7529f, -111.71492f, 487.26624f), 401) + index2 = 1; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + Span span295 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + span295[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012368u, new Vector3(-676.7529f, -111.71492f, 487.26624f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop, SkipConditions = new SkipConditions @@ -99258,7 +119484,8 @@ public static class AssemblyQuestLoader }; obj201.Steps = list295; reference215 = obj201; - ref QuestSequence reference216 = ref span106[1]; + num++; + ref QuestSequence reference216 = ref span294[num]; QuestSequence obj202 = new QuestSequence { Sequence = 1 @@ -99266,18 +119493,23 @@ public static class AssemblyQuestLoader num2 = 1; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + Span span296 = CollectionsMarshal.AsSpan(list296); + index2 = 0; + span296[index2] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); obj202.Steps = list296; reference216 = obj202; - ref QuestSequence reference217 = ref span106[2]; + num++; + ref QuestSequence reference217 = ref span294[num]; QuestSequence obj203 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 1012375u, new Vector3(164.50745f, -12.634913f, -23.178528f), 419) + index2 = 1; + List list297 = new List(index2); + CollectionsMarshal.SetCount(list297, index2); + Span span297 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + span297[num2] = new QuestStep(EInteractionType.Interact, 1012375u, new Vector3(164.50745f, -12.634913f, -23.178528f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -99288,7 +119520,8 @@ public static class AssemblyQuestLoader }; obj203.Steps = list297; reference217 = obj203; - ref QuestSequence reference218 = ref span106[3]; + num++; + ref QuestSequence reference218 = ref span294[num]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue @@ -99296,8 +119529,9 @@ public static class AssemblyQuestLoader num2 = 2; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span107 = CollectionsMarshal.AsSpan(list298); - span107[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + Span span298 = CollectionsMarshal.AsSpan(list298); + index2 = 0; + span298[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -99306,7 +119540,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1012329u, new Vector3(-7.309082f, 0.0035869647f, -0.5036011f), 433); + index2++; + span298[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012329u, new Vector3(-7.309082f, 0.0035869647f, -0.5036011f), 433); obj204.Steps = list298; reference218 = obj204; questRoot36.QuestSequence = list294; @@ -99316,24 +119551,30 @@ public static class AssemblyQuestLoader num = 1; List list299 = new List(num); CollectionsMarshal.SetCount(list299, num); - CollectionsMarshal.AsSpan(list299)[0] = "JerryWester"; + Span span299 = CollectionsMarshal.AsSpan(list299); + index = 0; + span299[index] = "JerryWester"; questRoot37.Author = list299; - num = 5; - List list300 = new List(num); - CollectionsMarshal.SetCount(list300, num); - Span span108 = CollectionsMarshal.AsSpan(list300); - ref QuestSequence reference219 = ref span108[0]; + index = 5; + List list300 = new List(index); + CollectionsMarshal.SetCount(list300, index); + Span span300 = CollectionsMarshal.AsSpan(list300); + num = 0; + ref QuestSequence reference219 = ref span300[num]; QuestSequence obj205 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012377u, new Vector3(5.6915283f, -9.313226E-10f, 5.7526245f), 433); + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + Span span301 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span301[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012377u, new Vector3(5.6915283f, -9.313226E-10f, 5.7526245f), 433); obj205.Steps = list301; reference219 = obj205; - ref QuestSequence reference220 = ref span108[1]; + num++; + ref QuestSequence reference220 = ref span300[num]; QuestSequence obj206 = new QuestSequence { Sequence = 1 @@ -99341,26 +119582,31 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1012378u, new Vector3(3.5248413f, -9.313226E-10f, 9.018005f), 433) + Span span302 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span302[index2] = new QuestStep(EInteractionType.Interact, 1012378u, new Vector3(3.5248413f, -9.313226E-10f, 9.018005f), 433) { StopDistance = 5f }; obj206.Steps = list302; reference220 = obj206; - ref QuestSequence reference221 = ref span108[2]; + num++; + ref QuestSequence reference221 = ref span300[num]; QuestSequence obj207 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - Span span109 = CollectionsMarshal.AsSpan(list303); - span109[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) + index2 = 2; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + Span span303 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span303[num2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) { TargetTerritoryId = (ushort)419 }; - span109[1] = new QuestStep(EInteractionType.Interact, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) + num2++; + span303[num2] = new QuestStep(EInteractionType.Interact, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) { AethernetShortcut = new AethernetShortcut { @@ -99370,7 +119616,8 @@ public static class AssemblyQuestLoader }; obj207.Steps = list303; reference221 = obj207; - ref QuestSequence reference222 = ref span108[3]; + num++; + ref QuestSequence reference222 = ref span300[num]; QuestSequence obj208 = new QuestSequence { Sequence = 3 @@ -99378,7 +119625,9 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012381u, new Vector3(120.653076f, 14.95313f, -156.63391f), 419) + Span span304 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span304[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012381u, new Vector3(120.653076f, 14.95313f, -156.63391f), 419) { AethernetShortcut = new AethernetShortcut { @@ -99392,15 +119641,18 @@ public static class AssemblyQuestLoader }; obj208.Steps = list304; reference222 = obj208; - ref QuestSequence reference223 = ref span108[4]; + num++; + ref QuestSequence reference223 = ref span300[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012381u, new Vector3(120.653076f, 14.95313f, -156.63391f), 419); + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + Span span305 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span305[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012381u, new Vector3(120.653076f, 14.95313f, -156.63391f), 419); obj209.Steps = list305; reference223 = obj209; questRoot37.QuestSequence = list300; @@ -99410,13 +119662,16 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - CollectionsMarshal.AsSpan(list306)[0] = "JerryWester"; + Span span306 = CollectionsMarshal.AsSpan(list306); + index = 0; + span306[index] = "JerryWester"; questRoot38.Author = list306; - num = 4; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - Span span110 = CollectionsMarshal.AsSpan(list307); - ref QuestSequence reference224 = ref span110[0]; + index = 4; + List list307 = new List(index); + CollectionsMarshal.SetCount(list307, index); + Span span307 = CollectionsMarshal.AsSpan(list307); + num = 0; + ref QuestSequence reference224 = ref span307[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 @@ -99424,19 +119679,23 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012381u, new Vector3(120.653076f, 14.95313f, -156.63391f), 419); + Span span308 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span308[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012381u, new Vector3(120.653076f, 14.95313f, -156.63391f), 419); obj210.Steps = list308; reference224 = obj210; - ref QuestSequence reference225 = ref span110[1]; + num++; + ref QuestSequence reference225 = ref span307[num]; QuestSequence obj211 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - Span span111 = CollectionsMarshal.AsSpan(list309); - span111[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + index2 = 2; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + Span span309 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span309[num2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -99445,10 +119704,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - span111[1] = new QuestStep(EInteractionType.Interact, 1013033u, new Vector3(-0.015319824f, 0.022254245f, 3.7078857f), 433); + num2++; + span309[num2] = new QuestStep(EInteractionType.Interact, 1013033u, new Vector3(-0.015319824f, 0.022254245f, 3.7078857f), 433); obj211.Steps = list309; reference225 = obj211; - ref QuestSequence reference226 = ref span110[2]; + num++; + ref QuestSequence reference226 = ref span307[num]; QuestSequence obj212 = new QuestSequence { Sequence = 2 @@ -99456,28 +119717,33 @@ public static class AssemblyQuestLoader num2 = 2; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - Span span112 = CollectionsMarshal.AsSpan(list310); - span112[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) + Span span310 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span310[index2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) { TargetTerritoryId = (ushort)419 }; - span112[1] = new QuestStep(EInteractionType.Interact, 1012386u, new Vector3(6.149353f, 42.34489f, -208.39252f), 419); + index2++; + span310[index2] = new QuestStep(EInteractionType.Interact, 1012386u, new Vector3(6.149353f, 42.34489f, -208.39252f), 419); obj212.Steps = list310; reference226 = obj212; - ref QuestSequence reference227 = ref span110[3]; + num++; + ref QuestSequence reference227 = ref span307[num]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - Span span113 = CollectionsMarshal.AsSpan(list311); - span113[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + index2 = 2; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + Span span311 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span311[num2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433 }; - span113[1] = new QuestStep(EInteractionType.CompleteQuest, 1012387u, new Vector3(0.6866455f, 0.022254243f, 4.623413f), 433); + num2++; + span311[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012387u, new Vector3(0.6866455f, 0.022254243f, 4.623413f), 433); obj213.Steps = list311; reference227 = obj213; questRoot38.QuestSequence = list307; @@ -99487,13 +119753,16 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - CollectionsMarshal.AsSpan(list312)[0] = "JerryWester"; + Span span312 = CollectionsMarshal.AsSpan(list312); + index = 0; + span312[index] = "JerryWester"; questRoot39.Author = list312; - num = 3; - List list313 = new List(num); - CollectionsMarshal.SetCount(list313, num); - Span span114 = CollectionsMarshal.AsSpan(list313); - ref QuestSequence reference228 = ref span114[0]; + index = 3; + List list313 = new List(index); + CollectionsMarshal.SetCount(list313, index); + Span span313 = CollectionsMarshal.AsSpan(list313); + num = 0; + ref QuestSequence reference228 = ref span313[num]; QuestSequence obj214 = new QuestSequence { Sequence = 0 @@ -99501,19 +119770,23 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012387u, new Vector3(0.6866455f, 0.022254243f, 4.623413f), 433); + Span span314 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span314[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012387u, new Vector3(0.6866455f, 0.022254243f, 4.623413f), 433); obj214.Steps = list314; reference228 = obj214; - ref QuestSequence reference229 = ref span114[1]; + num++; + ref QuestSequence reference229 = ref span313[num]; QuestSequence obj215 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - Span span115 = CollectionsMarshal.AsSpan(list315); - span115[0] = new QuestStep(EInteractionType.AcceptQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) + index2 = 2; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + Span span315 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span315[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop, SkipConditions = new SkipConditions @@ -99525,7 +119798,8 @@ public static class AssemblyQuestLoader }, PickUpQuestId = new QuestId(1748) }; - ref QuestStep reference230 = ref span115[1]; + num2++; + ref QuestStep reference230 = ref span315[num2]; QuestStep obj216 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa @@ -99533,7 +119807,9 @@ public static class AssemblyQuestLoader num3 = 1; List list316 = new List(num3); CollectionsMarshal.SetCount(list316, num3); - CollectionsMarshal.AsSpan(list316)[0] = new DialogueChoice + Span span316 = CollectionsMarshal.AsSpan(list316); + num4 = 0; + span316[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA201_01599_Q1_000_000") @@ -99542,7 +119818,8 @@ public static class AssemblyQuestLoader reference230 = obj216; obj215.Steps = list315; reference229 = obj215; - ref QuestSequence reference231 = ref span114[2]; + num++; + ref QuestSequence reference231 = ref span313[num]; QuestSequence obj217 = new QuestSequence { Sequence = byte.MaxValue @@ -99550,13 +119827,15 @@ public static class AssemblyQuestLoader num2 = 2; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - Span span116 = CollectionsMarshal.AsSpan(list317); - span116[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.194313f, 50.989883f, -778.7069f), 156) + Span span317 = CollectionsMarshal.AsSpan(list317); + index2 = 0; + span317[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.194313f, 50.989883f, -778.7069f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span116[1] = new QuestStep(EInteractionType.CompleteQuest, 1013018u, new Vector3(30.07544f, 50.99997f, -819.7299f), 156); + index2++; + span317[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013018u, new Vector3(30.07544f, 50.99997f, -819.7299f), 156); obj217.Steps = list317; reference231 = obj217; questRoot39.QuestSequence = list313; @@ -99570,13 +119849,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -99584,18 +119866,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013018u, new Vector3(30.07544f, 50.99997f, -819.7299f), 156); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013018u, new Vector3(30.07544f, 50.99997f, -819.7299f), 156); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1013020u, new Vector3(-58.79309f, -21.311453f, -3.982666f), 145) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1013020u, new Vector3(-58.79309f, -21.311453f, -3.982666f), 145) { StopDistance = 1f, Fly = true, @@ -99603,7 +119890,8 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -99611,12 +119899,14 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-368.91202f, -22.538002f, 386.9863f), 145) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-368.91202f, -22.538002f, 386.9863f), 145) { Fly = true }; - span2[1] = new QuestStep(EInteractionType.CompleteQuest, 1013028u, new Vector3(-380.8805f, -23.064514f, 388.63196f), 145) + index2++; + span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013028u, new Vector3(-380.8805f, -23.064514f, 388.63196f), 145) { Fly = true }; @@ -99629,24 +119919,30 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "JerryWester"; + Span span6 = CollectionsMarshal.AsSpan(list6); + index = 0; + span6[index] = "JerryWester"; questRoot2.Author = list6; - num = 7; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span3 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span3[0]; + index = 7; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + Span span7 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span7[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013028u, new Vector3(-380.8805f, -23.064514f, 388.63196f), 145); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013028u, new Vector3(-380.8805f, -23.064514f, 388.63196f), 145); obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span3[1]; + num++; + ref QuestSequence reference5 = ref span7[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -99654,7 +119950,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list9)[0]; + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + ref QuestStep reference6 = ref span9[index2]; QuestStep questStep = new QuestStep(EInteractionType.SinglePlayerDuty, 1013028u, new Vector3(-380.8805f, -23.064514f, 388.63196f), 145); SinglePlayerDutyOptions obj6 = new SinglePlayerDutyOptions { @@ -99663,28 +119961,35 @@ public static class AssemblyQuestLoader int num3 = 1; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = "Will not move into melee range to kill the gate; Alphinaud will kill it after a while"; + Span span10 = CollectionsMarshal.AsSpan(list10); + int index3 = 0; + span10[index3] = "Will not move into melee range to kill the gate; Alphinaud will kill it after a while"; obj6.Notes = list10; questStep.SinglePlayerDutyOptions = obj6; reference6 = questStep; obj5.Steps = list9; reference5 = obj5; - span3[2] = new QuestSequence + num++; + span7[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference7 = ref span3[3]; + num++; + ref QuestSequence reference7 = ref span7[num]; QuestSequence obj7 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1013071u, new Vector3(-315.2362f, -24.488983f, 419.51624f), 145); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.Interact, 1013071u, new Vector3(-315.2362f, -24.488983f, 419.51624f), 145); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span3[4]; + num++; + ref QuestSequence reference8 = ref span7[num]; QuestSequence obj8 = new QuestSequence { Sequence = 4 @@ -99692,34 +119997,41 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1013031u, new Vector3(-316.2433f, -24.34079f, 424.30762f), 145) + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.Interact, 1013031u, new Vector3(-316.2433f, -24.34079f, 424.30762f), 145) { StopDistance = 5f }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span3[5]; + num++; + ref QuestSequence reference9 = ref span7[num]; QuestSequence obj9 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - Span span4 = CollectionsMarshal.AsSpan(list13); - span4[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + index2 = 3; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span4[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span13[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span13[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span3[6]; + num++; + ref QuestSequence reference10 = ref span7[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -99727,7 +120039,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013038u, new Vector3(1.9989014f, 1.1445954E-06f, -2.5177612f), 212); + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013038u, new Vector3(1.9989014f, 1.1445954E-06f, -2.5177612f), 212); obj10.Steps = list14; reference10 = obj10; questRoot2.QuestSequence = list7; @@ -99737,24 +120051,30 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "JerryWester"; + Span span15 = CollectionsMarshal.AsSpan(list15); + index = 0; + span15[index] = "JerryWester"; questRoot3.Author = list15; - num = 4; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span5 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span5[0]; + index = 4; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + Span span16 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span16[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013038u, new Vector3(1.9989014f, 1.1445954E-06f, -2.5177612f), 212); + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013038u, new Vector3(1.9989014f, 1.1445954E-06f, -2.5177612f), 212); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span5[1]; + num++; + ref QuestSequence reference12 = ref span16[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -99762,7 +120082,9 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1014644u, new Vector3(15.854065f, 15.96505f, -0.77819824f), 419) + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.Interact, 1014644u, new Vector3(15.854065f, 15.96505f, -0.77819824f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -99773,22 +120095,26 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span5[2]; + num++; + ref QuestSequence reference13 = ref span16[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { StopDistance = 7f, TargetTerritoryId = (ushort)433 }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span5[3]; + num++; + ref QuestSequence reference14 = ref span16[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -99796,15 +120122,19 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + ref QuestStep reference15 = ref span20[index2]; QuestStep obj15 = new QuestStep(EInteractionType.CompleteQuest, 1012579u, new Vector3(1.1138916f, 0.022254243f, -4.409851f), 433) { StopDistance = 5f }; - num3 = 1; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new DialogueChoice + index3 = 1; + List list21 = new List(index3); + CollectionsMarshal.SetCount(list21, index3); + Span span21 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span21[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA301_01602_Q1_000_000"), @@ -99821,27 +120151,33 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "JerryWester"; + Span span22 = CollectionsMarshal.AsSpan(list22); + index = 0; + span22[index] = "JerryWester"; questRoot4.Author = list22; - num = 4; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span6 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference16 = ref span6[0]; + index = 4; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + Span span23 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference16 = ref span23[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012579u, new Vector3(1.1138916f, 0.022254243f, -4.409851f), 433) + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012579u, new Vector3(1.1138916f, 0.022254243f, -4.409851f), 433) { StopDistance = 5f }; obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference17 = ref span6[1]; + num++; + ref QuestSequence reference17 = ref span23[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -99849,23 +120185,28 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span7 = CollectionsMarshal.AsSpan(list25); - span7[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) { TargetTerritoryId = (ushort)419 }; - span7[1] = new QuestStep(EInteractionType.Interact, 1012585u, new Vector3(14.755432f, 16.009666f, -4.0742188f), 419); + index2++; + span25[index2] = new QuestStep(EInteractionType.Interact, 1012585u, new Vector3(14.755432f, 16.009666f, -4.0742188f), 419); obj17.Steps = list25; reference17 = obj17; - ref QuestSequence reference18 = ref span6[2]; + num++; + ref QuestSequence reference18 = ref span23[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list26)[0]; + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + ref QuestStep reference19 = ref span26[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -99877,7 +120218,9 @@ public static class AssemblyQuestLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = new DialogueChoice + Span span27 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + span27[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA302_01603_SCENE00020_EVENTAREA_WARP_YESNO_TITLE") @@ -99886,7 +120229,8 @@ public static class AssemblyQuestLoader reference19 = obj19; obj18.Steps = list26; reference18 = obj18; - ref QuestSequence reference20 = ref span6[3]; + num++; + ref QuestSequence reference20 = ref span23[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -99894,7 +120238,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012588u, new Vector3(107.68286f, 24.378597f, -6.6987915f), 418) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012588u, new Vector3(107.68286f, 24.378597f, -6.6987915f), 418) { StopDistance = 7f }; @@ -99907,27 +120253,33 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + span29[index] = "JerryWester"; questRoot5.Author = list29; - num = 7; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span8 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference21 = ref span8[0]; + index = 7; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + Span span30 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference21 = ref span30[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012588u, new Vector3(107.68286f, 24.378597f, -6.6987915f), 418) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012588u, new Vector3(107.68286f, 24.378597f, -6.6987915f), 418) { StopDistance = 7f }; obj21.Steps = list31; reference21 = obj21; - ref QuestSequence reference22 = ref span8[1]; + num++; + ref QuestSequence reference22 = ref span30[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 @@ -99935,7 +120287,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -99946,31 +120300,23 @@ public static class AssemblyQuestLoader }; obj22.Steps = list32; reference22 = obj22; - ref QuestSequence reference23 = ref span8[2]; + num++; + ref QuestSequence reference23 = ref span30[num]; QuestSequence obj23 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span9 = CollectionsMarshal.AsSpan(list33); - ref QuestStep reference24 = ref span9[0]; - QuestStep obj24 = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) + index2 = 2; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) { TargetTerritoryId = (ushort)419 }; - SkipConditions skipConditions = new SkipConditions(); - SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - CollectionsMarshal.AsSpan(list34)[0] = 419; - skipStepConditions.InTerritory = list34; - skipConditions.StepIf = skipStepConditions; - obj24.SkipConditions = skipConditions; - reference24 = obj24; - span9[1] = new QuestStep(EInteractionType.Interact, 1013422u, new Vector3(-97.73407f, 15.233179f, -40.787415f), 418) + num2++; + span33[num2] = new QuestStep(EInteractionType.Interact, 1013422u, new Vector3(-97.73407f, 15.233179f, -40.787415f), 418) { AethernetShortcut = new AethernetShortcut { @@ -99980,248 +120326,302 @@ public static class AssemblyQuestLoader }; obj23.Steps = list33; reference23 = obj23; - ref QuestSequence reference25 = ref span8[3]; - QuestSequence obj25 = new QuestSequence + num++; + ref QuestSequence reference24 = ref span30[num]; + QuestSequence obj24 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + List list34 = new List(num2); + CollectionsMarshal.SetCount(list34, num2); + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - obj25.Steps = list35; - reference25 = obj25; - ref QuestSequence reference26 = ref span8[4]; - QuestSequence obj26 = new QuestSequence + obj24.Steps = list34; + reference24 = obj24; + num++; + ref QuestSequence reference25 = ref span30[num]; + QuestSequence obj25 = new QuestSequence { Sequence = 4 }; - num2 = 4; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span10 = CollectionsMarshal.AsSpan(list36); - span10[0] = new QuestStep(EInteractionType.AcceptQuest, 1011240u, new Vector3(493.15625f, 200.2377f, 663.01965f), 397) + index2 = 4; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011240u, new Vector3(493.15625f, 200.2377f, 663.01965f), 397) { PickUpQuestId = new QuestId(1744) }; - span10[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2005536u, new Vector3(402.0293f, 191.51587f, 561.4252f), 397) + num2++; + span35[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2005536u, new Vector3(402.0293f, 191.51587f, 561.4252f), 397) { AetherCurrentId = 2818053u }; - span10[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006187u, new Vector3(424.94836f, 164.29382f, -536.9192f), 397) + num2++; + span35[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006187u, new Vector3(424.94836f, 164.29382f, -536.9192f), 397) { AetherCurrentId = 2818055u }; - span10[3] = new QuestStep(EInteractionType.Interact, 1012592u, new Vector3(459.15918f, 162.51204f, -524.651f), 397); - obj26.Steps = list36; - reference26 = obj26; - ref QuestSequence reference27 = ref span8[5]; - QuestSequence obj27 = new QuestSequence + num2++; + span35[num2] = new QuestStep(EInteractionType.Interact, 1012592u, new Vector3(459.15918f, 162.51204f, -524.651f), 397); + obj25.Steps = list35; + reference25 = obj25; + num++; + ref QuestSequence reference26 = ref span30[num]; + QuestSequence obj26 = new QuestSequence { Sequence = 5 }; num2 = 3; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span11 = CollectionsMarshal.AsSpan(list37); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) + List list36 = new List(num2); + CollectionsMarshal.SetCount(list36, num2); + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) { Mount = true }; - span11[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) + index2++; + span36[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) { DisableNavmesh = true }; - ref QuestStep reference28 = ref span11[2]; - QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(455.6516f, 157.40831f, -546.16815f), 397) + index2++; + ref QuestStep reference27 = ref span36[index2]; + QuestStep obj27 = new QuestStep(EInteractionType.Combat, null, new Vector3(455.6516f, 157.40831f, -546.16815f), 397) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span12 = CollectionsMarshal.AsSpan(list38); - span12[0] = 4383u; - span12[1] = 4384u; - obj28.KillEnemyDataIds = list38; - reference28 = obj28; - obj27.Steps = list37; + index3 = 2; + List list37 = new List(index3); + CollectionsMarshal.SetCount(list37, index3); + Span span37 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span37[num3] = 4383u; + num3++; + span37[num3] = 4384u; + obj27.KillEnemyDataIds = list37; reference27 = obj27; - ref QuestSequence reference29 = ref span8[6]; - QuestSequence obj29 = new QuestSequence + obj26.Steps = list36; + reference26 = obj26; + num++; + ref QuestSequence reference28 = ref span30[num]; + QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - Span span13 = CollectionsMarshal.AsSpan(list39); - span13[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) + index2 = 3; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) { Mount = true }; - span13[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) + num2++; + span38[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) { DisableNavmesh = true }; - span13[2] = new QuestStep(EInteractionType.CompleteQuest, 1012592u, new Vector3(459.15918f, 162.51204f, -524.651f), 397); - obj29.Steps = list39; - reference29 = obj29; + num2++; + span38[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012592u, new Vector3(459.15918f, 162.51204f, -524.651f), 397); + obj28.Steps = list38; + reference28 = obj28; questRoot5.QuestSequence = list30; AddQuest(questId5, questRoot5); QuestId questId6 = new QuestId(1605); QuestRoot questRoot6 = new QuestRoot(); num = 1; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "JerryWester"; - questRoot6.Author = list40; - num = 3; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span14 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference30 = ref span14[0]; - QuestSequence obj30 = new QuestSequence + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + Span span39 = CollectionsMarshal.AsSpan(list39); + index = 0; + span39[index] = "JerryWester"; + questRoot6.Author = list39; + index = 3; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + Span span40 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference29 = ref span40[num]; + QuestSequence obj29 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012592u, new Vector3(459.15918f, 162.51204f, -524.651f), 397); - obj30.Steps = list42; - reference30 = obj30; - ref QuestSequence reference31 = ref span14[1]; - QuestSequence obj31 = new QuestSequence + List list41 = new List(num2); + CollectionsMarshal.SetCount(list41, num2); + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012592u, new Vector3(459.15918f, 162.51204f, -524.651f), 397); + obj29.Steps = list41; + reference29 = obj29; + num++; + ref QuestSequence reference30 = ref span40[num]; + QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span15 = CollectionsMarshal.AsSpan(list43); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397); - span15[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) + index2 = 5; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397); + num2++; + span42[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) { DisableNavmesh = true }; - ref QuestStep reference32 = ref span15[2]; + num2++; + ref QuestStep reference31 = ref span42[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2005432u, new Vector3(450.85828f, 164.29382f, -544.79285f), 397); num3 = 6; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span16 = CollectionsMarshal.AsSpan(list44); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep2.CompletionQuestVariablesFlags = list44; - reference32 = questStep2; - ref QuestStep reference33 = ref span15[3]; + List list43 = new List(num3); + CollectionsMarshal.SetCount(list43, num3); + Span span43 = CollectionsMarshal.AsSpan(list43); + index3 = 0; + span43[index3] = null; + index3++; + span43[index3] = null; + index3++; + span43[index3] = null; + index3++; + span43[index3] = null; + index3++; + span43[index3] = null; + index3++; + span43[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep2.CompletionQuestVariablesFlags = list43; + reference31 = questStep2; + num2++; + ref QuestStep reference32 = ref span42[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2005433u, new Vector3(443.50342f, 157.48828f, -559.47205f), 397); + index3 = 6; + List list44 = new List(index3); + CollectionsMarshal.SetCount(list44, index3); + Span span44 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span44[num3] = null; + num3++; + span44[num3] = null; + num3++; + span44[num3] = null; + num3++; + span44[num3] = null; + num3++; + span44[num3] = null; + num3++; + span44[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep3.CompletionQuestVariablesFlags = list44; + reference32 = questStep3; + num2++; + ref QuestStep reference33 = ref span42[num2]; + QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2005434u, new Vector3(466.7887f, 157.39673f, -540.8561f), 397); num3 = 6; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - Span span17 = CollectionsMarshal.AsSpan(list45); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep3.CompletionQuestVariablesFlags = list45; - reference33 = questStep3; - ref QuestStep reference34 = ref span15[4]; - QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2005434u, new Vector3(466.7887f, 157.39673f, -540.8561f), 397); - num3 = 6; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - Span span18 = CollectionsMarshal.AsSpan(list46); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep4.CompletionQuestVariablesFlags = list46; - reference34 = questStep4; - obj31.Steps = list43; - reference31 = obj31; - ref QuestSequence reference35 = ref span14[2]; - QuestSequence obj32 = new QuestSequence + Span span45 = CollectionsMarshal.AsSpan(list45); + index3 = 0; + span45[index3] = null; + index3++; + span45[index3] = null; + index3++; + span45[index3] = null; + index3++; + span45[index3] = null; + index3++; + span45[index3] = null; + index3++; + span45[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep4.CompletionQuestVariablesFlags = list45; + reference33 = questStep4; + obj30.Steps = list42; + reference30 = obj30; + num++; + ref QuestSequence reference34 = ref span40[num]; + QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012601u, new Vector3(452.41467f, 157.40831f, -542.8397f), 397); - obj32.Steps = list47; - reference35 = obj32; - questRoot6.QuestSequence = list41; + List list46 = new List(num2); + CollectionsMarshal.SetCount(list46, num2); + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012601u, new Vector3(452.41467f, 157.40831f, -542.8397f), 397); + obj31.Steps = list46; + reference34 = obj31; + questRoot6.QuestSequence = list40; AddQuest(questId6, questRoot6); QuestId questId7 = new QuestId(1606); QuestRoot questRoot7 = new QuestRoot(); - num = 2; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span19 = CollectionsMarshal.AsSpan(list48); - span19[0] = "JerryWester"; - span19[1] = "Wigglez"; - questRoot7.Author = list48; - num = 4; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span20 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference36 = ref span20[0]; - QuestSequence obj33 = new QuestSequence + num = 1; + List list47 = new List(num); + CollectionsMarshal.SetCount(list47, num); + Span span47 = CollectionsMarshal.AsSpan(list47); + index = 0; + span47[index] = "JerryWester"; + questRoot7.Author = list47; + index = 4; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + Span span48 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref QuestSequence reference35 = ref span48[num]; + QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012600u, new Vector3(451.65173f, 157.40831f, -544.6708f), 397) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012600u, new Vector3(451.65173f, 157.40831f, -544.6708f), 397) { StopDistance = 5f }; - obj33.Steps = list50; - reference36 = obj33; - ref QuestSequence reference37 = ref span20[1]; - QuestSequence obj34 = new QuestSequence + obj32.Steps = list49; + reference35 = obj32; + num++; + ref QuestSequence reference36 = ref span48[num]; + QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - Span span21 = CollectionsMarshal.AsSpan(list51); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(474.62885f, 200.2377f, 657.9519f), 397) + num2 = 6; + List list50 = new List(num2); + CollectionsMarshal.SetCount(list50, num2); + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(474.62885f, 200.2377f, 657.9519f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - span21[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(486.38373f, 163.58846f, 239.54294f), 397); - span21[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(517.53094f, 131.76724f, 200.50333f), 397) + index2++; + span50[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(486.38373f, 163.58846f, 239.54294f), 397); + index2++; + span50[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(517.53094f, 131.76724f, 200.50333f), 397) { DisableNavmesh = true }; - span21[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(624.0087f, 117.14958f, 232.29897f), 397); - span21[4] = new QuestStep(EInteractionType.Combat, null, new Vector3(624.0087f, 117.14958f, 232.29897f), 397) - { - DelaySecondsAtStart = 8f, - Comment = "Fight anything needed", - EnemySpawnType = EEnemySpawnType.FinishCombatIfAny - }; - span21[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(616.8997f, 78.429f, 207.48883f), 397) + index2++; + span50[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(595.8404f, 116.82471f, 203.86801f), 397); + index2++; + span50[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(616.8997f, 78.429f, 207.48883f), 397) { DisableNavmesh = true }; - span21[6] = new QuestStep(EInteractionType.SinglePlayerDuty, 1011905u, new Vector3(617.4868f, 78.429f, 217.30359f), 397) + index2++; + span50[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1011905u, new Vector3(617.4868f, 78.429f, 217.30359f), 397) { DisableNavmesh = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -100229,1169 +120629,1361 @@ public static class AssemblyQuestLoader Enabled = true } }; - obj34.Steps = list51; - reference37 = obj34; - ref QuestSequence reference38 = ref span20[2]; - QuestSequence obj35 = new QuestSequence + obj33.Steps = list50; + reference36 = obj33; + num++; + ref QuestSequence reference37 = ref span48[num]; + QuestSequence obj34 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1012604u, new Vector3(620.9657f, 78.42899f, 213.88562f), 397) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.Interact, 1012604u, new Vector3(620.9657f, 78.42899f, 213.88562f), 397) { StopDistance = 5f }; - obj35.Steps = list52; - reference38 = obj35; - ref QuestSequence reference39 = ref span20[3]; - QuestSequence obj36 = new QuestSequence + obj34.Steps = list51; + reference37 = obj34; + num++; + ref QuestSequence reference38 = ref span48[num]; + QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span22 = CollectionsMarshal.AsSpan(list53); - span22[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006189u, new Vector3(-332.90613f, 126.81775f, -29.953552f), 397) + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006189u, new Vector3(-332.90613f, 126.81775f, -29.953552f), 397) { AetherCurrentId = 2818057u }; - span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397); - obj36.Steps = list53; - reference39 = obj36; - questRoot7.QuestSequence = list49; + index2++; + span52[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397); + obj35.Steps = list52; + reference38 = obj35; + questRoot7.QuestSequence = list48; AddQuest(questId7, questRoot7); QuestId questId8 = new QuestId(1607); QuestRoot questRoot8 = new QuestRoot(); num = 1; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "JerryWester"; - questRoot8.Author = list54; - num = 3; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span23 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference40 = ref span23[0]; - QuestSequence obj37 = new QuestSequence + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + Span span53 = CollectionsMarshal.AsSpan(list53); + index = 0; + span53[index] = "JerryWester"; + questRoot8.Author = list53; + index = 3; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + Span span54 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference39 = ref span54[num]; + QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012765u, new Vector3(-280.0794f, 127.03028f, 11.9782715f), 397); - obj37.Steps = list56; - reference40 = obj37; - ref QuestSequence reference41 = ref span23[1]; - QuestSequence obj38 = new QuestSequence + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012765u, new Vector3(-280.0794f, 127.03028f, 11.9782715f), 397); + obj36.Steps = list55; + reference39 = obj36; + num++; + ref QuestSequence reference40 = ref span54[num]; + QuestSequence obj37 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - Span span24 = CollectionsMarshal.AsSpan(list57); - ref QuestStep reference42 = ref span24[0]; + List list56 = new List(num2); + CollectionsMarshal.SetCount(list56, num2); + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + ref QuestStep reference41 = ref span56[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1013435u, new Vector3(-271.04602f, 126.894035f, 8.773865f), 397); + index3 = 6; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + Span span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep5.CompletionQuestVariablesFlags = list57; + reference41 = questStep5; + index2++; + ref QuestStep reference42 = ref span56[index2]; + QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1013436u, new Vector3(-260.39526f, 126.21859f, -2.822998f), 397); num3 = 6; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span25 = CollectionsMarshal.AsSpan(list58); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep5.CompletionQuestVariablesFlags = list58; - reference42 = questStep5; - ref QuestStep reference43 = ref span24[1]; - QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1013436u, new Vector3(-260.39526f, 126.21859f, -2.822998f), 397); - num3 = 6; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - Span span26 = CollectionsMarshal.AsSpan(list59); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep6.CompletionQuestVariablesFlags = list59; - reference43 = questStep6; - ref QuestStep reference44 = ref span24[2]; + Span span58 = CollectionsMarshal.AsSpan(list58); + index3 = 0; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep6.CompletionQuestVariablesFlags = list58; + reference42 = questStep6; + index2++; + ref QuestStep reference43 = ref span56[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); - num3 = 6; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span27 = CollectionsMarshal.AsSpan(list60); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep7.CompletionQuestVariablesFlags = list60; - reference44 = questStep7; - obj38.Steps = list57; - reference41 = obj38; - ref QuestSequence reference45 = ref span23[2]; - QuestSequence obj39 = new QuestSequence + index3 = 6; + List list59 = new List(index3); + CollectionsMarshal.SetCount(list59, index3); + Span span59 = CollectionsMarshal.AsSpan(list59); + num3 = 0; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep7.CompletionQuestVariablesFlags = list59; + reference43 = questStep7; + obj37.Steps = list56; + reference40 = obj37; + num++; + ref QuestSequence reference44 = ref span54[num]; + QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012283u, new Vector3(-311.14673f, 126.503296f, -6.729248f), 397); - obj39.Steps = list61; - reference45 = obj39; - questRoot8.QuestSequence = list55; + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012283u, new Vector3(-311.14673f, 126.503296f, -6.729248f), 397); + obj38.Steps = list60; + reference44 = obj38; + questRoot8.QuestSequence = list54; AddQuest(questId8, questRoot8); QuestId questId9 = new QuestId(1608); QuestRoot questRoot9 = new QuestRoot(); num = 1; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "JerryWester"; - questRoot9.Author = list62; - num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span28 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference46 = ref span28[0]; - QuestSequence obj40 = new QuestSequence + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + Span span61 = CollectionsMarshal.AsSpan(list61); + index = 0; + span61[index] = "JerryWester"; + questRoot9.Author = list61; + index = 3; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + Span span62 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference45 = ref span62[num]; + QuestSequence obj39 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012764u, new Vector3(-307.54565f, 126.63436f, -3.2807007f), 397); - obj40.Steps = list64; - reference46 = obj40; - ref QuestSequence reference47 = ref span28[1]; - QuestSequence obj41 = new QuestSequence + List list63 = new List(num2); + CollectionsMarshal.SetCount(list63, num2); + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012764u, new Vector3(-307.54565f, 126.63436f, -3.2807007f), 397); + obj39.Steps = list63; + reference45 = obj39; + num++; + ref QuestSequence reference46 = ref span62[num]; + QuestSequence obj40 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - Span span29 = CollectionsMarshal.AsSpan(list65); - span29[0] = new QuestStep(EInteractionType.AcceptQuest, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397) + index2 = 4; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397) { PickUpQuestId = new QuestId(1759) }; - span29[1] = new QuestStep(EInteractionType.AcceptQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) + num2++; + span64[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) { PickUpQuestId = new QuestId(1760) }; - span29[2] = new QuestStep(EInteractionType.AcceptQuest, 1011911u, new Vector3(-279.56055f, 127.08131f, 13.595764f), 397) + num2++; + span64[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011911u, new Vector3(-279.56055f, 127.08131f, 13.595764f), 397) { PickUpQuestId = new QuestId(2111) }; - ref QuestStep reference48 = ref span29[3]; - QuestStep obj42 = new QuestStep(EInteractionType.Combat, null, new Vector3(-365.48965f, 85.44247f, -360.56012f), 397) + num2++; + ref QuestStep reference47 = ref span64[num2]; + QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(-365.48965f, 85.44247f, -360.56012f), 397) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = new ComplexCombatData + List list65 = new List(num3); + CollectionsMarshal.SetCount(list65, num3); + Span span65 = CollectionsMarshal.AsSpan(list65); + index3 = 0; + span65[index3] = new ComplexCombatData { DataId = 3988u, MinimumKillCount = 2u }; - obj42.ComplexCombatData = list66; - reference48 = obj42; - obj41.Steps = list65; + obj41.ComplexCombatData = list65; reference47 = obj41; - ref QuestSequence reference49 = ref span28[2]; - QuestSequence obj43 = new QuestSequence + obj40.Steps = list64; + reference46 = obj40; + num++; + ref QuestSequence reference48 = ref span62[num]; + QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - Span span30 = CollectionsMarshal.AsSpan(list67); - span30[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006190u, new Vector3(-660.15106f, 135.51526f, -376.63843f), 397) + List list66 = new List(num2); + CollectionsMarshal.SetCount(list66, num2); + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span66[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006190u, new Vector3(-660.15106f, 135.51526f, -376.63843f), 397) { AetherCurrentId = 2818058u }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1012670u, new Vector3(-631.9219f, 142.1073f, -322.71307f), 397); - obj43.Steps = list67; - reference49 = obj43; - questRoot9.QuestSequence = list63; + index2++; + span66[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012670u, new Vector3(-631.9219f, 142.1073f, -322.71307f), 397); + obj42.Steps = list66; + reference48 = obj42; + questRoot9.QuestSequence = list62; AddQuest(questId9, questRoot9); QuestId questId10 = new QuestId(1609); QuestRoot questRoot10 = new QuestRoot(); num = 1; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "JerryWester"; - questRoot10.Author = list68; - num = 4; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span31 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference50 = ref span31[0]; - QuestSequence obj44 = new QuestSequence + List list67 = new List(num); + CollectionsMarshal.SetCount(list67, num); + Span span67 = CollectionsMarshal.AsSpan(list67); + index = 0; + span67[index] = "JerryWester"; + questRoot10.Author = list67; + index = 4; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + Span span68 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference49 = ref span68[num]; + QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012609u, new Vector3(-688.777f, 121.51788f, -390.49365f), 397); - obj44.Steps = list70; - reference50 = obj44; - ref QuestSequence reference51 = ref span31[1]; - QuestSequence obj45 = new QuestSequence + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012609u, new Vector3(-688.777f, 121.51788f, -390.49365f), 397); + obj43.Steps = list69; + reference49 = obj43; + num++; + ref QuestSequence reference50 = ref span68[num]; + QuestSequence obj44 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - Span span32 = CollectionsMarshal.AsSpan(list71); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-826.9342f, 117.95439f, -642.92413f), 397) + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-826.9342f, 117.95439f, -642.92413f), 397) { Fly = true }; - span32[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-850.3646f, 117.68303f, -656.6694f), 397) + index2++; + span70[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-850.3646f, 117.68303f, -656.6694f), 397) { TargetTerritoryId = (ushort)398 }; - obj45.Steps = list71; - reference51 = obj45; - ref QuestSequence reference52 = ref span31[2]; - QuestSequence obj46 = new QuestSequence + obj44.Steps = list70; + reference50 = obj44; + num++; + ref QuestSequence reference51 = ref span68[num]; + QuestSequence obj45 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1012612u, new Vector3(801.90735f, -19.788122f, 311.75696f), 398); - obj46.Steps = list72; - reference52 = obj46; - ref QuestSequence reference53 = ref span31[3]; - QuestSequence obj47 = new QuestSequence + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.Interact, 1012612u, new Vector3(801.90735f, -19.788122f, 311.75696f), 398); + obj45.Steps = list71; + reference51 = obj45; + num++; + ref QuestSequence reference52 = ref span68[num]; + QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 4; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - Span span33 = CollectionsMarshal.AsSpan(list73); - span33[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006195u, new Vector3(765.0111f, -15.85179f, 289.082f), 398) + List list72 = new List(num2); + CollectionsMarshal.SetCount(list72, num2); + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span72[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006195u, new Vector3(765.0111f, -15.85179f, 289.082f), 398) { AetherCurrentId = 2818068u }; - span33[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(744.5929f, -34.200893f, 272.8362f), 398) + index2++; + span72[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(744.5929f, -34.200893f, 272.8362f), 398) { DisableNavmesh = true, Mount = true }; - span33[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 398) + index2++; + span72[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 398) { Aetheryte = EAetheryteLocation.DravanianForelandsTailfeather }; - span33[3] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); - obj47.Steps = list73; - reference53 = obj47; - questRoot10.QuestSequence = list69; + index2++; + span72[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); + obj46.Steps = list72; + reference52 = obj46; + questRoot10.QuestSequence = list68; AddQuest(questId10, questRoot10); QuestId questId11 = new QuestId(1610); QuestRoot questRoot11 = new QuestRoot(); num = 1; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "JerryWester"; - questRoot11.Author = list74; - num = 5; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span34 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference54 = ref span34[0]; - QuestSequence obj48 = new QuestSequence + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + Span span73 = CollectionsMarshal.AsSpan(list73); + index = 0; + span73[index] = "JerryWester"; + questRoot11.Author = list73; + index = 5; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + Span span74 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference53 = ref span74[num]; + QuestSequence obj47 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); - obj48.Steps = list76; - reference54 = obj48; - ref QuestSequence reference55 = ref span34[1]; - QuestSequence obj49 = new QuestSequence + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); + obj47.Steps = list75; + reference53 = obj47; + num++; + ref QuestSequence reference54 = ref span74[num]; + QuestSequence obj48 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1012615u, new Vector3(468.77234f, -49.89133f, 25.589355f), 398); - obj49.Steps = list77; - reference55 = obj49; - ref QuestSequence reference56 = ref span34[2]; - QuestSequence obj50 = new QuestSequence + List list76 = new List(num2); + CollectionsMarshal.SetCount(list76, num2); + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.Interact, 1012615u, new Vector3(468.77234f, -49.89133f, 25.589355f), 398); + obj48.Steps = list76; + reference54 = obj48; + num++; + ref QuestSequence reference55 = ref span74[num]; + QuestSequence obj49 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span35 = CollectionsMarshal.AsSpan(list78); - span35[0] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + index2 = 2; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { PickUpQuestId = new QuestId(1771) }; - ref QuestStep reference57 = ref span35[1]; - QuestStep obj51 = new QuestStep(EInteractionType.Combat, null, new Vector3(634.0371f, -40.05916f, -296.1493f), 398) + num2++; + ref QuestStep reference56 = ref span77[num2]; + QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(634.0371f, -40.05916f, -296.1493f), 398) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - Span span36 = CollectionsMarshal.AsSpan(list79); - span36[0] = 4367u; - span36[1] = 4368u; - obj51.KillEnemyDataIds = list79; - reference57 = obj51; - obj50.Steps = list78; + index3 = 2; + List list78 = new List(index3); + CollectionsMarshal.SetCount(list78, index3); + Span span78 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span78[num3] = 4367u; + num3++; + span78[num3] = 4368u; + obj50.KillEnemyDataIds = list78; reference56 = obj50; - ref QuestSequence reference58 = ref span34[3]; - QuestSequence obj52 = new QuestSequence + obj49.Steps = list77; + reference55 = obj49; + num++; + ref QuestSequence reference57 = ref span74[num]; + QuestSequence obj51 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span37 = CollectionsMarshal.AsSpan(list80); - span37[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006197u, new Vector3(433.52405f, -47.776062f, -286.24402f), 398) + List list79 = new List(num2); + CollectionsMarshal.SetCount(list79, num2); + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006197u, new Vector3(433.52405f, -47.776062f, -286.24402f), 398) { AetherCurrentId = 2818070u }; - ref QuestStep reference59 = ref span37[1]; - QuestStep obj53 = new QuestStep(EInteractionType.Combat, null, new Vector3(234.626f, -56.601433f, -258.33804f), 398) + index2++; + ref QuestStep reference58 = ref span79[index2]; + QuestStep obj52 = new QuestStep(EInteractionType.Combat, null, new Vector3(234.626f, -56.601433f, -258.33804f), 398) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 2; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - Span span38 = CollectionsMarshal.AsSpan(list81); - span38[0] = 4364u; - span38[1] = 4365u; - obj53.KillEnemyDataIds = list81; - reference59 = obj53; - obj52.Steps = list80; + List list80 = new List(num3); + CollectionsMarshal.SetCount(list80, num3); + Span span80 = CollectionsMarshal.AsSpan(list80); + index3 = 0; + span80[index3] = 4364u; + index3++; + span80[index3] = 4365u; + obj52.KillEnemyDataIds = list80; reference58 = obj52; - ref QuestSequence reference60 = ref span34[4]; - QuestSequence obj54 = new QuestSequence + obj51.Steps = list79; + reference57 = obj51; + num++; + ref QuestSequence reference59 = ref span74[num]; + QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list82)[0]; + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + ref QuestStep reference60 = ref span81[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.CompleteQuest, 2005489u, new Vector3(169.604f, -63.24872f, -11.825806f), 398); - num3 = 1; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = new DialogueChoice + index3 = 1; + List list82 = new List(index3); + CollectionsMarshal.SetCount(list82, index3); + Span span82 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span82[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA309_01610_A1_000_000"), Answer = new ExcelRef("TEXT_HEAVNA309_01610_Q1_000_001") }; - questStep8.DialogueChoices = list83; - reference61 = questStep8; - obj54.Steps = list82; - reference60 = obj54; - questRoot11.QuestSequence = list75; + questStep8.DialogueChoices = list82; + reference60 = questStep8; + obj53.Steps = list81; + reference59 = obj53; + questRoot11.QuestSequence = list74; AddQuest(questId11, questRoot11); QuestId questId12 = new QuestId(1611); QuestRoot questRoot12 = new QuestRoot(); num = 1; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "JerryWester"; - questRoot12.Author = list84; - num = 5; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span39 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference62 = ref span39[0]; - QuestSequence obj55 = new QuestSequence + List list83 = new List(num); + CollectionsMarshal.SetCount(list83, num); + Span span83 = CollectionsMarshal.AsSpan(list83); + index = 0; + span83[index] = "JerryWester"; + questRoot12.Author = list83; + index = 5; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + Span span84 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference61 = ref span84[num]; + QuestSequence obj54 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012619u, new Vector3(167.25415f, -63.618378f, -9.2317505f), 398) + List list85 = new List(num2); + CollectionsMarshal.SetCount(list85, num2); + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012619u, new Vector3(167.25415f, -63.618378f, -9.2317505f), 398) { StopDistance = 7f }; - obj55.Steps = list86; - reference62 = obj55; - ref QuestSequence reference63 = ref span39[1]; - QuestSequence obj56 = new QuestSequence + obj54.Steps = list85; + reference61 = obj54; + num++; + ref QuestSequence reference62 = ref span84[num]; + QuestSequence obj55 = new QuestSequence { Sequence = 1 }; + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.Interact, 1012622u, new Vector3(-178.97314f, -105.59011f, 508.812f), 398); + obj55.Steps = list86; + reference62 = obj55; + num++; + ref QuestSequence reference63 = ref span84[num]; + QuestSequence obj56 = new QuestSequence + { + Sequence = 2 + }; num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1012622u, new Vector3(-178.97314f, -105.59011f, 508.812f), 398); - obj56.Steps = list87; - reference63 = obj56; - ref QuestSequence reference64 = ref span39[2]; - QuestSequence obj57 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list88)[0]; - QuestStep obj58 = new QuestStep(EInteractionType.Combat, null, new Vector3(-245.28185f, -84.46064f, 450.64175f), 398) + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + ref QuestStep reference64 = ref span87[index2]; + QuestStep obj57 = new QuestStep(EInteractionType.Combat, null, new Vector3(-245.28185f, -84.46064f, 450.64175f), 398) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 3; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - Span span40 = CollectionsMarshal.AsSpan(list89); - span40[0] = 4364u; - span40[1] = 4366u; - span40[2] = 4369u; - obj58.KillEnemyDataIds = list89; - reference65 = obj58; - obj57.Steps = list88; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + Span span88 = CollectionsMarshal.AsSpan(list88); + index3 = 0; + span88[index3] = 4364u; + index3++; + span88[index3] = 4366u; + index3++; + span88[index3] = 4369u; + obj57.KillEnemyDataIds = list88; reference64 = obj57; - ref QuestSequence reference66 = ref span39[3]; - QuestSequence obj59 = new QuestSequence + obj56.Steps = list87; + reference63 = obj56; + num++; + ref QuestSequence reference65 = ref span84[num]; + QuestSequence obj58 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list90)[0]; - QuestStep obj60 = new QuestStep(EInteractionType.Combat, null, new Vector3(-282.51865f, -63.319576f, 333.95447f), 398) + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + ref QuestStep reference66 = ref span89[num2]; + QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(-282.51865f, -63.319576f, 333.95447f), 398) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - Span span41 = CollectionsMarshal.AsSpan(list91); - span41[0] = 4364u; - span41[1] = 4366u; - span41[2] = 4369u; - obj60.KillEnemyDataIds = list91; - reference67 = obj60; - obj59.Steps = list90; + index3 = 3; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + Span span90 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span90[num3] = 4364u; + num3++; + span90[num3] = 4366u; + num3++; + span90[num3] = 4369u; + obj59.KillEnemyDataIds = list90; reference66 = obj59; - ref QuestSequence reference68 = ref span39[4]; - QuestSequence obj61 = new QuestSequence + obj58.Steps = list89; + reference65 = obj58; + num++; + ref QuestSequence reference67 = ref span84[num]; + QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012625u, new Vector3(-212.72601f, -37.574783f, 185.16821f), 398); - obj61.Steps = list92; - reference68 = obj61; - questRoot12.QuestSequence = list85; + List list91 = new List(num2); + CollectionsMarshal.SetCount(list91, num2); + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012625u, new Vector3(-212.72601f, -37.574783f, 185.16821f), 398); + obj60.Steps = list91; + reference67 = obj60; + questRoot12.QuestSequence = list84; AddQuest(questId12, questRoot12); QuestId questId13 = new QuestId(1612); QuestRoot questRoot13 = new QuestRoot(); num = 1; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "JerryWester"; - questRoot13.Author = list93; - num = 4; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span42 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference69 = ref span42[0]; - QuestSequence obj62 = new QuestSequence + List list92 = new List(num); + CollectionsMarshal.SetCount(list92, num); + Span span92 = CollectionsMarshal.AsSpan(list92); + index = 0; + span92[index] = "JerryWester"; + questRoot13.Author = list92; + index = 4; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + Span span93 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference68 = ref span93[num]; + QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012628u, new Vector3(-247.63867f, -30.290216f, 109.391846f), 398); - obj62.Steps = list95; - reference69 = obj62; - ref QuestSequence reference70 = ref span42[1]; - QuestSequence obj63 = new QuestSequence + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012628u, new Vector3(-247.63867f, -30.290216f, 109.391846f), 398); + obj61.Steps = list94; + reference68 = obj61; + num++; + ref QuestSequence reference69 = ref span93[num]; + QuestSequence obj62 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - Span span43 = CollectionsMarshal.AsSpan(list96); - span43[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 398) + List list95 = new List(num2); + CollectionsMarshal.SetCount(list95, num2); + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 398) { Aetheryte = EAetheryteLocation.DravanianForelandsAnyxTrine }; - span43[1] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + index2++; + span95[index2] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - obj63.Steps = list96; - reference70 = obj63; - ref QuestSequence reference71 = ref span42[2]; - QuestSequence obj64 = new QuestSequence + obj62.Steps = list95; + reference69 = obj62; + num++; + ref QuestSequence reference70 = ref span93[num]; + QuestSequence obj63 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list97)[0]; - QuestStep obj65 = new QuestStep(EInteractionType.Combat, null, new Vector3(290.04944f, -65.506195f, 2.676069f), 398) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + ref QuestStep reference71 = ref span96[num2]; + QuestStep obj64 = new QuestStep(EInteractionType.Combat, null, new Vector3(290.04944f, -65.506195f, 2.676069f), 398) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = new ComplexCombatData + List list97 = new List(num3); + CollectionsMarshal.SetCount(list97, num3); + Span span97 = CollectionsMarshal.AsSpan(list97); + index3 = 0; + span97[index3] = new ComplexCombatData { DataId = 4467u, MinimumKillCount = 3u, RewardItemId = 2001580u, RewardItemCount = 3 }; - obj65.ComplexCombatData = list98; - reference72 = obj65; - obj64.Steps = list97; + obj64.ComplexCombatData = list97; reference71 = obj64; - ref QuestSequence reference73 = ref span42[3]; - QuestSequence obj66 = new QuestSequence + obj63.Steps = list96; + reference70 = obj63; + num++; + ref QuestSequence reference72 = ref span93[num]; + QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012629u, new Vector3(200f, -55.462486f, -233.44781f), 398); - obj66.Steps = list99; - reference73 = obj66; - questRoot13.QuestSequence = list94; + List list98 = new List(num2); + CollectionsMarshal.SetCount(list98, num2); + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span98[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012629u, new Vector3(200f, -55.462486f, -233.44781f), 398); + obj65.Steps = list98; + reference72 = obj65; + questRoot13.QuestSequence = list93; AddQuest(questId13, questRoot13); QuestId questId14 = new QuestId(1613); QuestRoot questRoot14 = new QuestRoot(); num = 1; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "JerryWester"; - questRoot14.Author = list100; - num = 3; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span44 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference74 = ref span44[0]; - QuestSequence obj67 = new QuestSequence + List list99 = new List(num); + CollectionsMarshal.SetCount(list99, num); + Span span99 = CollectionsMarshal.AsSpan(list99); + index = 0; + span99[index] = "JerryWester"; + questRoot14.Author = list99; + index = 3; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + Span span100 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference73 = ref span100[num]; + QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012629u, new Vector3(200f, -55.462486f, -233.44781f), 398); - obj67.Steps = list102; - reference74 = obj67; - ref QuestSequence reference75 = ref span44[1]; - QuestSequence obj68 = new QuestSequence + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012629u, new Vector3(200f, -55.462486f, -233.44781f), 398); + obj66.Steps = list101; + reference73 = obj66; + num++; + ref QuestSequence reference74 = ref span100[num]; + QuestSequence obj67 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1012671u, new Vector3(70.725464f, -49.385155f, -151.99518f), 398); - obj68.Steps = list103; - reference75 = obj68; - ref QuestSequence reference76 = ref span44[2]; - QuestSequence obj69 = new QuestSequence + List list102 = new List(num2); + CollectionsMarshal.SetCount(list102, num2); + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span102[index2] = new QuestStep(EInteractionType.Interact, 1012671u, new Vector3(70.725464f, -49.385155f, -151.99518f), 398); + obj67.Steps = list102; + reference74 = obj67; + num++; + ref QuestSequence reference75 = ref span100[num]; + QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398); - obj69.Steps = list104; - reference76 = obj69; - questRoot14.QuestSequence = list101; + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span103[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398); + obj68.Steps = list103; + reference75 = obj68; + questRoot14.QuestSequence = list100; AddQuest(questId14, questRoot14); QuestId questId15 = new QuestId(1614); QuestRoot questRoot15 = new QuestRoot(); - num = 2; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span45 = CollectionsMarshal.AsSpan(list105); - span45[0] = "JerryWester"; - span45[1] = "Wigglez"; - questRoot15.Author = list105; - num = 6; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - Span span46 = CollectionsMarshal.AsSpan(list106); - ref QuestSequence reference77 = ref span46[0]; - QuestSequence obj70 = new QuestSequence + num = 1; + List list104 = new List(num); + CollectionsMarshal.SetCount(list104, num); + Span span104 = CollectionsMarshal.AsSpan(list104); + index = 0; + span104[index] = "JerryWester"; + questRoot15.Author = list104; + index = 6; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + Span span105 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference76 = ref span105[num]; + QuestSequence obj69 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list107)[0]; + List list106 = new List(num2); + CollectionsMarshal.SetCount(list106, num2); + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + ref QuestStep reference77 = ref span106[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.AcceptQuest, 1012636u, new Vector3(77.46997f, -49.24018f, -148.97388f), 398); - num3 = 1; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new DialogueChoice + index3 = 1; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + Span span107 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span107[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA313_01614_Q1_000_000"), Answer = new ExcelRef("TEXT_HEAVNA313_01614_A1_000_001") }; - questStep9.DialogueChoices = list108; - reference78 = questStep9; - obj70.Steps = list107; - reference77 = obj70; - ref QuestSequence reference79 = ref span46[1]; - QuestSequence obj71 = new QuestSequence + questStep9.DialogueChoices = list107; + reference77 = questStep9; + obj69.Steps = list106; + reference76 = obj69; + num++; + ref QuestSequence reference78 = ref span105[num]; + QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span47 = CollectionsMarshal.AsSpan(list109); - ref QuestStep reference80 = ref span47[0]; - QuestStep obj72 = new QuestStep(EInteractionType.Interact, 1011930u, new Vector3(81.49841f, -49.21252f, -150.04199f), 398) + index2 = 3; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + ref QuestStep reference79 = ref span108[num2]; + QuestStep obj71 = new QuestStep(EInteractionType.Interact, 1011930u, new Vector3(81.49841f, -49.21252f, -150.04199f), 398) { StopDistance = 7f }; num3 = 6; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - Span span48 = CollectionsMarshal.AsSpan(list110); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj72.CompletionQuestVariablesFlags = list110; - reference80 = obj72; - ref QuestStep reference81 = ref span47[1]; + List list109 = new List(num3); + CollectionsMarshal.SetCount(list109, num3); + Span span109 = CollectionsMarshal.AsSpan(list109); + index3 = 0; + span109[index3] = null; + index3++; + span109[index3] = null; + index3++; + span109[index3] = null; + index3++; + span109[index3] = null; + index3++; + span109[index3] = null; + index3++; + span109[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj71.CompletionQuestVariablesFlags = list109; + reference79 = obj71; + num2++; + ref QuestStep reference80 = ref span108[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1011929u, new Vector3(70.81714f, -49.2083f, -141.55798f), 398); - num3 = 6; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - Span span49 = CollectionsMarshal.AsSpan(list111); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep10.CompletionQuestVariablesFlags = list111; - reference81 = questStep10; - ref QuestStep reference82 = ref span47[2]; - QuestStep obj73 = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index3 = 6; + List list110 = new List(index3); + CollectionsMarshal.SetCount(list110, index3); + Span span110 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span110[num3] = null; + num3++; + span110[num3] = null; + num3++; + span110[num3] = null; + num3++; + span110[num3] = null; + num3++; + span110[num3] = null; + num3++; + span110[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep10.CompletionQuestVariablesFlags = list110; + reference80 = questStep10; + num2++; + ref QuestStep reference81 = ref span108[num2]; + QuestStep obj72 = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { StopDistance = 5f }; num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span50 = CollectionsMarshal.AsSpan(list112); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj73.CompletionQuestVariablesFlags = list112; - reference82 = obj73; - obj71.Steps = list109; - reference79 = obj71; - ref QuestSequence reference83 = ref span46[2]; - QuestSequence obj74 = new QuestSequence + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + Span span111 = CollectionsMarshal.AsSpan(list111); + index3 = 0; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj72.CompletionQuestVariablesFlags = list111; + reference81 = obj72; + obj70.Steps = list108; + reference78 = obj70; + num++; + ref QuestSequence reference82 = ref span105[num]; + QuestSequence obj73 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398); - obj74.Steps = list113; - reference83 = obj74; - ref QuestSequence reference84 = ref span46[3]; - QuestSequence obj75 = new QuestSequence + List list112 = new List(num2); + CollectionsMarshal.SetCount(list112, num2); + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.Interact, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398); + obj73.Steps = list112; + reference82 = obj73; + num++; + ref QuestSequence reference83 = ref span105[num]; + QuestSequence obj74 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span51 = CollectionsMarshal.AsSpan(list114); - span51[0] = new QuestStep(EInteractionType.AcceptQuest, 1011929u, new Vector3(70.81714f, -49.2083f, -141.55798f), 398) + index2 = 3; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011929u, new Vector3(70.81714f, -49.2083f, -141.55798f), 398) { PickUpQuestId = new QuestId(1790) }; - span51[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(320.7925f, -59.45279f, 18.284615f), 398) + num2++; + span113[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.535545f, -49.45454f, -149.54617f), 398) { - Comment = "Safe spot to drop aggro", - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - NearPosition = new NearPositionCondition - { - Position = new Vector3(320.7925f, -59.45279f, 18.284615f), - MaximumDistance = 5f, - TerritoryId = 398 - } - } - } + Mount = true }; - span51[2] = new QuestStep(EInteractionType.None, null, null, 398) - { - DelaySecondsAtStart = 5f, - Comment = "Wait 5 seconds to ensure aggro is dropped", - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - NotNearPosition = new NearPositionCondition - { - Position = new Vector3(320.7925f, -59.45279f, 18.284615f), - MaximumDistance = 5f, - TerritoryId = 398 - } - } - } - }; - ref QuestStep reference85 = ref span51[3]; - QuestStep obj76 = new QuestStep(EInteractionType.Combat, null, new Vector3(291.1391f, -64.697876f, -5.7822924f), 398) + num2++; + ref QuestStep reference84 = ref span113[num2]; + QuestStep obj75 = new QuestStep(EInteractionType.Combat, null, new Vector3(291.1391f, -64.697876f, -5.7822924f), 398) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = new ComplexCombatData + index3 = 1; + List list114 = new List(index3); + CollectionsMarshal.SetCount(list114, index3); + Span span114 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span114[num3] = new ComplexCombatData { DataId = 4467u, MinimumKillCount = 1u, RewardItemId = 2001579u, RewardItemCount = 1 }; - obj76.ComplexCombatData = list115; - reference85 = obj76; - obj75.Steps = list114; + obj75.ComplexCombatData = list114; reference84 = obj75; - ref QuestSequence reference86 = ref span46[4]; - QuestSequence obj77 = new QuestSequence + obj74.Steps = list113; + reference83 = obj74; + num++; + ref QuestSequence reference85 = ref span105[num]; + QuestSequence obj76 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398); - obj77.Steps = list116; - reference86 = obj77; - ref QuestSequence reference87 = ref span46[5]; - QuestSequence obj78 = new QuestSequence + List list115 = new List(num2); + CollectionsMarshal.SetCount(list115, num2); + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.Interact, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398); + obj76.Steps = list115; + reference85 = obj76; + num++; + ref QuestSequence reference86 = ref span105[num]; + QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013582u, new Vector3(59.220215f, -50.888588f, -130.23578f), 398); - obj78.Steps = list117; - reference87 = obj78; - questRoot15.QuestSequence = list106; + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013582u, new Vector3(59.220215f, -50.888588f, -130.23578f), 398); + obj77.Steps = list116; + reference86 = obj77; + questRoot15.QuestSequence = list105; AddQuest(questId15, questRoot15); QuestId questId16 = new QuestId(1615); QuestRoot questRoot16 = new QuestRoot(); - num = 2; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span52 = CollectionsMarshal.AsSpan(list118); - span52[0] = "JerryWester"; - span52[1] = "Wigglez"; - questRoot16.Author = list118; - num = 5; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span53 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference88 = ref span53[0]; - QuestSequence obj79 = new QuestSequence + num = 1; + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + Span span117 = CollectionsMarshal.AsSpan(list117); + index = 0; + span117[index] = "JerryWester"; + questRoot16.Author = list117; + index = 5; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + Span span118 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference87 = ref span118[num]; + QuestSequence obj78 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013582u, new Vector3(59.220215f, -50.888588f, -130.23578f), 398); - obj79.Steps = list120; - reference88 = obj79; - ref QuestSequence reference89 = ref span53[1]; - QuestSequence obj80 = new QuestSequence + List list119 = new List(num2); + CollectionsMarshal.SetCount(list119, num2); + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013582u, new Vector3(59.220215f, -50.888588f, -130.23578f), 398); + obj78.Steps = list119; + reference87 = obj78; + num++; + ref QuestSequence reference88 = ref span118[num]; + QuestSequence obj79 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - ref QuestStep reference90 = ref CollectionsMarshal.AsSpan(list121)[0]; - QuestStep obj81 = new QuestStep(EInteractionType.Combat, 1012639u, new Vector3(190.50879f, -118.35855f, 567.7118f), 398) + index2 = 2; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.535545f, -49.45454f, -149.54617f), 398) + { + Mount = true + }; + num2++; + ref QuestStep reference89 = ref span120[num2]; + QuestStep obj80 = new QuestStep(EInteractionType.Combat, 1012639u, new Vector3(190.50879f, -118.35855f, 567.7118f), 398) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 4; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - Span span54 = CollectionsMarshal.AsSpan(list122); - span54[0] = 4364u; - span54[1] = 4366u; - span54[2] = 4369u; - span54[3] = 4370u; - obj81.KillEnemyDataIds = list122; - reference90 = obj81; - obj80.Steps = list121; + List list121 = new List(num3); + CollectionsMarshal.SetCount(list121, num3); + Span span121 = CollectionsMarshal.AsSpan(list121); + index3 = 0; + span121[index3] = 4364u; + index3++; + span121[index3] = 4366u; + index3++; + span121[index3] = 4369u; + index3++; + span121[index3] = 4370u; + obj80.KillEnemyDataIds = list121; reference89 = obj80; - ref QuestSequence reference91 = ref span53[2]; - QuestSequence obj82 = new QuestSequence + obj79.Steps = list120; + reference88 = obj79; + num++; + ref QuestSequence reference90 = ref span118[num]; + QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - Span span55 = CollectionsMarshal.AsSpan(list123); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(256.292f, -117.802765f, 578.33594f), 398) - { - Comment = "Try to avoid combat" - }; - span55[1] = new QuestStep(EInteractionType.Combat, null, new Vector3(256.292f, -117.802765f, 578.33594f), 398) - { - DelaySecondsAtStart = 5f, - Comment = "Fight before interacting with Ysayle", - EnemySpawnType = EEnemySpawnType.FinishCombatIfAny - }; - span55[2] = new QuestStep(EInteractionType.Interact, 1013192u, new Vector3(236.6521f, -118.15404f, 564.4159f), 398); - obj82.Steps = list123; - reference91 = obj82; - ref QuestSequence reference92 = ref span53[3]; - QuestSequence obj83 = new QuestSequence + num2 = 1; + List list122 = new List(num2); + CollectionsMarshal.SetCount(list122, num2); + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.Interact, 1013192u, new Vector3(236.6521f, -118.15404f, 564.4159f), 398); + obj81.Steps = list122; + reference90 = obj81; + num++; + ref QuestSequence reference91 = ref span118[num]; + QuestSequence obj82 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list124)[0]; - QuestStep obj84 = new QuestStep(EInteractionType.Combat, null, new Vector3(263.7836f, -97.12261f, 614.4929f), 398) + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + ref QuestStep reference92 = ref span123[num2]; + QuestStep obj83 = new QuestStep(EInteractionType.Combat, null, new Vector3(263.7836f, -97.12261f, 614.4929f), 398) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 6; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span56 = CollectionsMarshal.AsSpan(list125); - span56[0] = 4385u; - span56[1] = 4386u; - span56[2] = 4387u; - span56[3] = 4388u; - span56[4] = 4389u; - span56[5] = 4390u; - obj84.KillEnemyDataIds = list125; - reference93 = obj84; - obj83.Steps = list124; + index3 = 6; + List list124 = new List(index3); + CollectionsMarshal.SetCount(list124, index3); + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span124[num3] = 4385u; + num3++; + span124[num3] = 4386u; + num3++; + span124[num3] = 4387u; + num3++; + span124[num3] = 4388u; + num3++; + span124[num3] = 4389u; + num3++; + span124[num3] = 4390u; + obj83.KillEnemyDataIds = list124; reference92 = obj83; - ref QuestSequence reference94 = ref span53[4]; - QuestSequence obj85 = new QuestSequence + obj82.Steps = list123; + reference91 = obj82; + num++; + ref QuestSequence reference93 = ref span118[num]; + QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 7; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - Span span57 = CollectionsMarshal.AsSpan(list126); - span57[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(387.38608f, -96.33344f, 753.33954f), 398) - { - Comment = "Try to avoid combat" - }; - span57[1] = new QuestStep(EInteractionType.Combat, null, new Vector3(387.93314f, -96.378525f, 753.7759f), 398) - { - DelaySecondsAtStart = 10f, - Comment = "Fight anything needed", - EnemySpawnType = EEnemySpawnType.FinishCombatIfAny - }; - span57[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(407.45706f, -92.90822f, 718.0504f), 398) - { - Comment = "Move to a safe spot between Aether current and Complete Quest Destination" - }; - span57[3] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006204u, new Vector3(406.75964f, -89.79938f, 686.6101f), 398) + num2 = 2; + List list125 = new List(num2); + CollectionsMarshal.SetCount(list125, num2); + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006204u, new Vector3(406.75964f, -89.79938f, 686.6101f), 398) { AetherCurrentId = 2818077u }; - span57[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(407.45706f, -92.90822f, 718.0504f), 398) - { - Comment = "Move to a safe spot between Aether current and Complete Quest Destination" - }; - span57[5] = new QuestStep(EInteractionType.Combat, null, new Vector3(407.45706f, -92.90822f, 718.0504f), 398) - { - DelaySecondsAtStart = 1f, - Comment = "Fight anything needed", - EnemySpawnType = EEnemySpawnType.FinishCombatIfAny - }; - span57[6] = new QuestStep(EInteractionType.CompleteQuest, 2006423u, new Vector3(394.3694f, -93.98035f, 731.80725f), 398); - obj85.Steps = list126; - reference94 = obj85; - questRoot16.QuestSequence = list119; + index2++; + span125[index2] = new QuestStep(EInteractionType.CompleteQuest, 2006423u, new Vector3(394.3694f, -93.98035f, 731.80725f), 398); + obj84.Steps = list125; + reference93 = obj84; + questRoot16.QuestSequence = list118; AddQuest(questId16, questRoot16); QuestId questId17 = new QuestId(1616); QuestRoot questRoot17 = new QuestRoot(); num = 1; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - CollectionsMarshal.AsSpan(list127)[0] = "JerryWester"; - questRoot17.Author = list127; - num = 7; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - Span span58 = CollectionsMarshal.AsSpan(list128); - ref QuestSequence reference95 = ref span58[0]; - QuestSequence obj86 = new QuestSequence + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + Span span126 = CollectionsMarshal.AsSpan(list126); + index = 0; + span126[index] = "JerryWester"; + questRoot17.Author = list126; + index = 7; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + Span span127 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference94 = ref span127[num]; + QuestSequence obj85 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012638u, new Vector3(394.94922f, -93.9111f, 727.5348f), 398); - obj86.Steps = list129; - reference95 = obj86; - ref QuestSequence reference96 = ref span58[1]; - QuestSequence obj87 = new QuestSequence + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012638u, new Vector3(394.94922f, -93.9111f, 727.5348f), 398); + obj85.Steps = list128; + reference94 = obj85; + num++; + ref QuestSequence reference95 = ref span127[num]; + QuestSequence obj86 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-5.6537967f, -0.012253165f, 22.646173f), 462); - obj87.Steps = list130; - reference96 = obj87; - ref QuestSequence reference97 = ref span58[2]; - QuestSequence obj88 = new QuestSequence + List list129 = new List(num2); + CollectionsMarshal.SetCount(list129, num2); + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-5.6537967f, -0.012253165f, 22.646173f), 462); + obj86.Steps = list129; + reference95 = obj86; + num++; + ref QuestSequence reference96 = ref span127[num]; + QuestSequence obj87 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-17.24303f, 0f, 70.677536f), 462); - obj88.Steps = list131; - reference97 = obj88; - ref QuestSequence reference98 = ref span58[3]; - QuestSequence obj89 = new QuestSequence + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-17.24303f, 0f, 70.677536f), 462); + obj87.Steps = list130; + reference96 = obj87; + num++; + ref QuestSequence reference97 = ref span127[num]; + QuestSequence obj88 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Duty, null, null, 462) + List list131 = new List(num2); + CollectionsMarshal.SetCount(list131, num2); + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.Duty, null, null, 462) { DutyOptions = new DutyOptions { ContentFinderConditionId = 86u } }; - obj89.Steps = list132; - reference98 = obj89; - span58[4] = new QuestSequence + obj88.Steps = list131; + reference97 = obj88; + num++; + span127[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference99 = ref span58[5]; - QuestSequence obj90 = new QuestSequence + num++; + ref QuestSequence reference98 = ref span127[num]; + QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1012656u, new Vector3(-10.940796f, -128.9908f, 728.26733f), 398) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.Interact, 1012656u, new Vector3(-10.940796f, -128.9908f, 728.26733f), 398) { StopDistance = 5f }; - obj90.Steps = list133; - reference99 = obj90; - ref QuestSequence reference100 = ref span58[6]; - QuestSequence obj91 = new QuestSequence + obj89.Steps = list132; + reference98 = obj89; + num++; + ref QuestSequence reference99 = ref span127[num]; + QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 6; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - Span span59 = CollectionsMarshal.AsSpan(list134); - ref QuestStep reference101 = ref span59[0]; - QuestStep obj92 = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + List list133 = new List(num2); + CollectionsMarshal.SetCount(list133, num2); + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + ref QuestStep reference100 = ref span133[index2]; + QuestStep obj91 = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - SkipConditions skipConditions2 = new SkipConditions(); + SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); num3 = 1; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = new QuestId(1797); - skipAetheryteCondition.QuestsCompleted = list135; - skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; - obj92.SkipConditions = skipConditions2; - obj92.PickUpQuestId = new QuestId(1797); - reference101 = obj92; - ref QuestStep reference102 = ref span59[1]; - QuestStep obj93 = new QuestStep(EInteractionType.AcceptQuest, 1011937u, new Vector3(-305.56195f, 39.04307f, 22.9953f), 398) - { - AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine - }; - SkipConditions skipConditions3 = new SkipConditions(); - SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - CollectionsMarshal.AsSpan(list136)[0] = new QuestId(1802); - skipAetheryteCondition2.QuestsCompleted = list136; - skipConditions3.AetheryteShortcutIf = skipAetheryteCondition2; - obj93.SkipConditions = skipConditions3; - obj93.PickUpQuestId = new QuestId(1802); - reference102 = obj93; - span59[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-30.522272f, -32.192017f, -84.3334f), 398) - { - AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine - }; - span59[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.787895f, -30.428743f, -80.12713f), 398) - { - DisableNavmesh = true - }; - span59[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.235865f, -24.754946f, -119.65716f), 398); - span59[5] = new QuestStep(EInteractionType.CompleteQuest, 1014544u, new Vector3(56.351562f, -50.57729f, -142.50409f), 398) - { - DisableNavmesh = true - }; - obj91.Steps = list134; + List list134 = new List(num3); + CollectionsMarshal.SetCount(list134, num3); + Span span134 = CollectionsMarshal.AsSpan(list134); + index3 = 0; + span134[index3] = new QuestId(1797); + skipAetheryteCondition.QuestsCompleted = list134; + skipConditions.AetheryteShortcutIf = skipAetheryteCondition; + obj91.SkipConditions = skipConditions; + obj91.PickUpQuestId = new QuestId(1797); reference100 = obj91; - questRoot17.QuestSequence = list128; + index2++; + ref QuestStep reference101 = ref span133[index2]; + QuestStep obj92 = new QuestStep(EInteractionType.AcceptQuest, 1011937u, new Vector3(-305.56195f, 39.04307f, 22.9953f), 398) + { + AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine + }; + SkipConditions skipConditions2 = new SkipConditions(); + SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); + index3 = 1; + List list135 = new List(index3); + CollectionsMarshal.SetCount(list135, index3); + Span span135 = CollectionsMarshal.AsSpan(list135); + num3 = 0; + span135[num3] = new QuestId(1802); + skipAetheryteCondition2.QuestsCompleted = list135; + skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; + obj92.SkipConditions = skipConditions2; + obj92.PickUpQuestId = new QuestId(1802); + reference101 = obj92; + index2++; + span133[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-30.522272f, -32.192017f, -84.3334f), 398) + { + AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine + }; + index2++; + span133[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.787895f, -30.428743f, -80.12713f), 398) + { + DisableNavmesh = true + }; + index2++; + span133[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.235865f, -24.754946f, -119.65716f), 398); + index2++; + span133[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014544u, new Vector3(56.351562f, -50.57729f, -142.50409f), 398) + { + DisableNavmesh = true + }; + obj90.Steps = list133; + reference99 = obj90; + questRoot17.QuestSequence = list127; AddQuest(questId17, questRoot17); QuestId questId18 = new QuestId(1617); QuestRoot questRoot18 = new QuestRoot(); num = 1; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "JerryWester"; - questRoot18.Author = list137; - num = 6; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span60 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference103 = ref span60[0]; - QuestSequence obj94 = new QuestSequence + List list136 = new List(num); + CollectionsMarshal.SetCount(list136, num); + Span span136 = CollectionsMarshal.AsSpan(list136); + index = 0; + span136[index] = "JerryWester"; + questRoot18.Author = list136; + index = 6; + List list137 = new List(index); + CollectionsMarshal.SetCount(list137, index); + Span span137 = CollectionsMarshal.AsSpan(list137); + num = 0; + ref QuestSequence reference102 = ref span137[num]; + QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013584u, new Vector3(58.91504f, -50.325172f, -146.95972f), 398) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013584u, new Vector3(58.91504f, -50.325172f, -146.95972f), 398) { StopDistance = 7f }; - obj94.Steps = list139; - reference103 = obj94; - ref QuestSequence reference104 = ref span60[1]; - QuestSequence obj95 = new QuestSequence + obj93.Steps = list138; + reference102 = obj93; + num++; + ref QuestSequence reference103 = ref span137[num]; + QuestSequence obj94 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1012657u, new Vector3(-248.64581f, -30.095806f, 102.22009f), 398) + List list139 = new List(num2); + CollectionsMarshal.SetCount(list139, num2); + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.Interact, 1012657u, new Vector3(-248.64581f, -30.095806f, 102.22009f), 398) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - obj95.Steps = list140; - reference104 = obj95; - ref QuestSequence reference105 = ref span60[2]; - QuestSequence obj96 = new QuestSequence + obj94.Steps = list139; + reference103 = obj94; + num++; + ref QuestSequence reference104 = ref span137[num]; + QuestSequence obj95 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - Span span61 = CollectionsMarshal.AsSpan(list141); - span61[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006201u, new Vector3(-480.30823f, -5.996826f, -425.28424f), 398) + index2 = 3; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006201u, new Vector3(-480.30823f, -5.996826f, -425.28424f), 398) { AetherCurrentId = 2818074u }; - span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-467.55936f, -11.599176f, -445.6323f), 398) + num2++; + span140[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-467.55936f, -11.599176f, -445.6323f), 398) { DisableNavmesh = true, Mount = true }; - span61[2] = new QuestStep(EInteractionType.Interact, 2005448u, new Vector3(-688.38025f, 4.8981323f, -794.88824f), 398); - obj96.Steps = list141; - reference105 = obj96; - ref QuestSequence reference106 = ref span60[3]; - QuestSequence obj97 = new QuestSequence + num2++; + span140[num2] = new QuestStep(EInteractionType.Interact, 2005448u, new Vector3(-688.38025f, 4.8981323f, -794.88824f), 398); + obj95.Steps = list140; + reference104 = obj95; + num++; + ref QuestSequence reference105 = ref span137[num]; + QuestSequence obj96 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Duty, null, null, 398) + List list141 = new List(num2); + CollectionsMarshal.SetCount(list141, num2); + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.Duty, null, null, 398) { DutyOptions = new DutyOptions { @@ -101399,160 +121991,205 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 37u } }; - obj97.Steps = list142; - reference106 = obj97; - span60[4] = new QuestSequence + obj96.Steps = list141; + reference105 = obj96; + num++; + span137[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference107 = ref span60[5]; - QuestSequence obj98 = new QuestSequence + num++; + ref QuestSequence reference106 = ref span137[num]; + QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012661u, new Vector3(240.31421f, -42.317062f, 615.1063f), 400); - obj98.Steps = list143; - reference107 = obj98; - questRoot18.QuestSequence = list138; + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012661u, new Vector3(240.31421f, -42.317062f, 615.1063f), 400); + obj97.Steps = list142; + reference106 = obj97; + questRoot18.QuestSequence = list137; AddQuest(questId18, questRoot18); QuestId questId19 = new QuestId(1618); QuestRoot questRoot19 = new QuestRoot(); num = 1; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - CollectionsMarshal.AsSpan(list144)[0] = "JerryWester"; - questRoot19.Author = list144; - num = 4; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - Span span62 = CollectionsMarshal.AsSpan(list145); - ref QuestSequence reference108 = ref span62[0]; - QuestSequence obj99 = new QuestSequence + List list143 = new List(num); + CollectionsMarshal.SetCount(list143, num); + Span span143 = CollectionsMarshal.AsSpan(list143); + index = 0; + span143[index] = "JerryWester"; + questRoot19.Author = list143; + index = 4; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + Span span144 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference107 = ref span144[num]; + QuestSequence obj98 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012661u, new Vector3(240.31421f, -42.317062f, 615.1063f), 400); - obj99.Steps = list146; - reference108 = obj99; - ref QuestSequence reference109 = ref span62[1]; - QuestSequence obj100 = new QuestSequence + List list145 = new List(num2); + CollectionsMarshal.SetCount(list145, num2); + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012661u, new Vector3(240.31421f, -42.317062f, 615.1063f), 400); + obj98.Steps = list145; + reference107 = obj98; + num++; + ref QuestSequence reference108 = ref span144[num]; + QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - Span span63 = CollectionsMarshal.AsSpan(list147); - span63[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 400) + index2 = 2; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 400) { Aetheryte = EAetheryteLocation.ChurningMistsMoghome }; - span63[1] = new QuestStep(EInteractionType.Interact, 1013195u, new Vector3(287.55627f, -46.700905f, 663.87415f), 400); - obj100.Steps = list147; - reference109 = obj100; - ref QuestSequence reference110 = ref span62[2]; - QuestSequence obj101 = new QuestSequence + num2++; + span146[num2] = new QuestStep(EInteractionType.Interact, 1013195u, new Vector3(287.55627f, -46.700905f, 663.87415f), 400); + obj99.Steps = list146; + reference108 = obj99; + num++; + ref QuestSequence reference109 = ref span144[num]; + QuestSequence obj100 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - Span span64 = CollectionsMarshal.AsSpan(list148); - ref QuestStep reference111 = ref span64[0]; + List list147 = new List(num2); + CollectionsMarshal.SetCount(list147, num2); + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + ref QuestStep reference110 = ref span147[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2005451u, new Vector3(379.23242f, -69.44385f, 690.30273f), 400); num3 = 6; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - Span span65 = CollectionsMarshal.AsSpan(list149); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep11.CompletionQuestVariablesFlags = list149; - reference111 = questStep11; - ref QuestStep reference112 = ref span64[1]; + List list148 = new List(num3); + CollectionsMarshal.SetCount(list148, num3); + Span span148 = CollectionsMarshal.AsSpan(list148); + index3 = 0; + span148[index3] = null; + index3++; + span148[index3] = null; + index3++; + span148[index3] = null; + index3++; + span148[index3] = null; + index3++; + span148[index3] = null; + index3++; + span148[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep11.CompletionQuestVariablesFlags = list148; + reference110 = questStep11; + index2++; + ref QuestStep reference111 = ref span147[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2005452u, new Vector3(402.0293f, -73.136475f, 668.4214f), 400); + index3 = 6; + List list149 = new List(index3); + CollectionsMarshal.SetCount(list149, index3); + Span span149 = CollectionsMarshal.AsSpan(list149); + num3 = 0; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep12.CompletionQuestVariablesFlags = list149; + reference111 = questStep12; + index2++; + ref QuestStep reference112 = ref span147[index2]; + QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2005450u, new Vector3(405.90515f, -72.58722f, 696.2843f), 400); num3 = 6; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - Span span66 = CollectionsMarshal.AsSpan(list150); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep12.CompletionQuestVariablesFlags = list150; - reference112 = questStep12; - ref QuestStep reference113 = ref span64[2]; - QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2005450u, new Vector3(405.90515f, -72.58722f, 696.2843f), 400); - num3 = 6; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - Span span67 = CollectionsMarshal.AsSpan(list151); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep13.CompletionQuestVariablesFlags = list151; - reference113 = questStep13; - obj101.Steps = list148; - reference110 = obj101; - ref QuestSequence reference114 = ref span62[3]; - QuestSequence obj102 = new QuestSequence + Span span150 = CollectionsMarshal.AsSpan(list150); + index3 = 0; + span150[index3] = null; + index3++; + span150[index3] = null; + index3++; + span150[index3] = null; + index3++; + span150[index3] = null; + index3++; + span150[index3] = null; + index3++; + span150[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep13.CompletionQuestVariablesFlags = list150; + reference112 = questStep13; + obj100.Steps = list147; + reference109 = obj100; + num++; + ref QuestSequence reference113 = ref span144[num]; + QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012664u, new Vector3(364.30908f, -74.10719f, 654.322f), 400); - obj102.Steps = list152; - reference114 = obj102; - questRoot19.QuestSequence = list145; + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span151[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012664u, new Vector3(364.30908f, -74.10719f, 654.322f), 400); + obj101.Steps = list151; + reference113 = obj101; + questRoot19.QuestSequence = list144; AddQuest(questId19, questRoot19); QuestId questId20 = new QuestId(1619); QuestRoot questRoot20 = new QuestRoot(); num = 1; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - CollectionsMarshal.AsSpan(list153)[0] = "JerryWester"; - questRoot20.Author = list153; - num = 6; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - Span span68 = CollectionsMarshal.AsSpan(list154); - ref QuestSequence reference115 = ref span68[0]; - QuestSequence obj103 = new QuestSequence + List list152 = new List(num); + CollectionsMarshal.SetCount(list152, num); + Span span152 = CollectionsMarshal.AsSpan(list152); + index = 0; + span152[index] = "JerryWester"; + questRoot20.Author = list152; + index = 6; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + Span span153 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref QuestSequence reference114 = ref span153[num]; + QuestSequence obj102 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012664u, new Vector3(364.30908f, -74.10719f, 654.322f), 400); - obj103.Steps = list155; - reference115 = obj103; - ref QuestSequence reference116 = ref span68[1]; - QuestSequence obj104 = new QuestSequence + List list154 = new List(num2); + CollectionsMarshal.SetCount(list154, num2); + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012664u, new Vector3(364.30908f, -74.10719f, 654.322f), 400); + obj102.Steps = list154; + reference114 = obj102; + num++; + ref QuestSequence reference115 = ref span153[num]; + QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1012846u, new Vector3(-157.70203f, 4.0272756f, -23.971985f), 133) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span155[num2] = new QuestStep(EInteractionType.Interact, 1012846u, new Vector3(-157.70203f, 4.0272756f, -23.971985f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -101561,982 +122198,1238 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - obj104.Steps = list156; - reference116 = obj104; - ref QuestSequence reference117 = ref span68[2]; - QuestSequence obj105 = new QuestSequence + obj103.Steps = list155; + reference115 = obj103; + num++; + ref QuestSequence reference116 = ref span153[num]; + QuestSequence obj104 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - ref QuestStep reference118 = ref CollectionsMarshal.AsSpan(list157)[0]; + List list156 = new List(num2); + CollectionsMarshal.SetCount(list156, num2); + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + ref QuestStep reference117 = ref span156[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); - num3 = 1; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - CollectionsMarshal.AsSpan(list158)[0] = new DialogueChoice + index3 = 1; + List list157 = new List(index3); + CollectionsMarshal.SetCount(list157, index3); + Span span157 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span157[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA318_01619_Q1_000_001") }; - questStep14.DialogueChoices = list158; - reference118 = questStep14; - obj105.Steps = list157; - reference117 = obj105; - ref QuestSequence reference119 = ref span68[3]; - QuestSequence obj106 = new QuestSequence + questStep14.DialogueChoices = list157; + reference117 = questStep14; + obj104.Steps = list156; + reference116 = obj104; + num++; + ref QuestSequence reference118 = ref span153[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1012846u, new Vector3(-157.70203f, 4.0272756f, -23.971985f), 133); - obj106.Steps = list159; - reference119 = obj106; - ref QuestSequence reference120 = ref span68[4]; - QuestSequence obj107 = new QuestSequence + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span158[num2] = new QuestStep(EInteractionType.Interact, 1012846u, new Vector3(-157.70203f, 4.0272756f, -23.971985f), 133); + obj105.Steps = list158; + reference118 = obj105; + num++; + ref QuestSequence reference119 = ref span153[num]; + QuestSequence obj106 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1012667u, new Vector3(369.16138f, -73.9486f, 660.151f), 400) + List list159 = new List(num2); + CollectionsMarshal.SetCount(list159, num2); + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.Interact, 1012667u, new Vector3(369.16138f, -73.9486f, 660.151f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; - obj107.Steps = list160; - reference120 = obj107; - ref QuestSequence reference121 = ref span68[5]; - QuestSequence obj108 = new QuestSequence + obj106.Steps = list159; + reference119 = obj106; + num++; + ref QuestSequence reference120 = ref span153[num]; + QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - Span span69 = CollectionsMarshal.AsSpan(list161); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400); - span69[1] = new QuestStep(EInteractionType.CompleteQuest, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400); + num2++; + span160[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f, IgnoreDistanceToObject = true }; - obj108.Steps = list161; - reference121 = obj108; - questRoot20.QuestSequence = list154; + obj107.Steps = list160; + reference120 = obj107; + questRoot20.QuestSequence = list153; AddQuest(questId20, questRoot20); QuestId questId21 = new QuestId(1620); QuestRoot questRoot21 = new QuestRoot(); num = 1; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "JerryWester"; - questRoot21.Author = list162; - num = 3; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span70 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference122 = ref span70[0]; - QuestSequence obj109 = new QuestSequence + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + Span span161 = CollectionsMarshal.AsSpan(list161); + index = 0; + span161[index] = "JerryWester"; + questRoot21.Author = list161; + index = 3; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + Span span162 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference121 = ref span162[num]; + QuestSequence obj108 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400) + List list163 = new List(num2); + CollectionsMarshal.SetCount(list163, num2); + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span163[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400) { StopDistance = 6.5f }; - obj109.Steps = list164; - reference122 = obj109; - ref QuestSequence reference123 = ref span70[1]; - QuestSequence obj110 = new QuestSequence + obj108.Steps = list163; + reference121 = obj108; + num++; + ref QuestSequence reference122 = ref span162[num]; + QuestSequence obj109 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - Span span71 = CollectionsMarshal.AsSpan(list165); - span71[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.46622f, -46.748116f, 661.95807f), 400); - ref QuestStep reference124 = ref span71[1]; + index2 = 4; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.46622f, -46.748116f, 661.95807f), 400); + num2++; + ref QuestStep reference123 = ref span164[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2005453u, new Vector3(223.55994f, -38.68164f, 440.63464f), 400); num3 = 6; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - Span span72 = CollectionsMarshal.AsSpan(list166); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep15.CompletionQuestVariablesFlags = list166; - reference124 = questStep15; - ref QuestStep reference125 = ref span71[2]; + List list165 = new List(num3); + CollectionsMarshal.SetCount(list165, num3); + Span span165 = CollectionsMarshal.AsSpan(list165); + index3 = 0; + span165[index3] = null; + index3++; + span165[index3] = null; + index3++; + span165[index3] = null; + index3++; + span165[index3] = null; + index3++; + span165[index3] = null; + index3++; + span165[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep15.CompletionQuestVariablesFlags = list165; + reference123 = questStep15; + num2++; + ref QuestStep reference124 = ref span164[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2005455u, new Vector3(289.93665f, -37.979797f, 483.5431f), 400); + index3 = 6; + List list166 = new List(index3); + CollectionsMarshal.SetCount(list166, index3); + Span span166 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = null; + num3++; + span166[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep16.CompletionQuestVariablesFlags = list166; + reference124 = questStep16; + num2++; + ref QuestStep reference125 = ref span164[num2]; + QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2005454u, new Vector3(339.71155f, -12.466675f, 411.3069f), 400); num3 = 6; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - Span span73 = CollectionsMarshal.AsSpan(list167); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep16.CompletionQuestVariablesFlags = list167; - reference125 = questStep16; - ref QuestStep reference126 = ref span71[3]; - QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2005454u, new Vector3(339.71155f, -12.466675f, 411.3069f), 400); - num3 = 6; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - Span span74 = CollectionsMarshal.AsSpan(list168); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep17.CompletionQuestVariablesFlags = list168; - reference126 = questStep17; - obj110.Steps = list165; - reference123 = obj110; - ref QuestSequence reference127 = ref span70[2]; - QuestSequence obj111 = new QuestSequence + Span span167 = CollectionsMarshal.AsSpan(list167); + index3 = 0; + span167[index3] = null; + index3++; + span167[index3] = null; + index3++; + span167[index3] = null; + index3++; + span167[index3] = null; + index3++; + span167[index3] = null; + index3++; + span167[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep17.CompletionQuestVariablesFlags = list167; + reference125 = questStep17; + obj109.Steps = list164; + reference122 = obj109; + num++; + ref QuestSequence reference126 = ref span162[num]; + QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400); - obj111.Steps = list169; - reference127 = obj111; - questRoot21.QuestSequence = list163; + List list168 = new List(num2); + CollectionsMarshal.SetCount(list168, num2); + Span span168 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span168[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400); + obj110.Steps = list168; + reference126 = obj110; + questRoot21.QuestSequence = list162; AddQuest(questId21, questRoot21); QuestId questId22 = new QuestId(1621); QuestRoot questRoot22 = new QuestRoot(); num = 1; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "JerryWester"; - questRoot22.Author = list170; - num = 3; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - Span span75 = CollectionsMarshal.AsSpan(list171); - ref QuestSequence reference128 = ref span75[0]; - QuestSequence obj112 = new QuestSequence + List list169 = new List(num); + CollectionsMarshal.SetCount(list169, num); + Span span169 = CollectionsMarshal.AsSpan(list169); + index = 0; + span169[index] = "JerryWester"; + questRoot22.Author = list169; + index = 3; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + Span span170 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference127 = ref span170[num]; + QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012080u, new Vector3(392.20264f, -72.34356f, 649.56116f), 400); - obj112.Steps = list172; - reference128 = obj112; - ref QuestSequence reference129 = ref span75[1]; - QuestSequence obj113 = new QuestSequence + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + Span span171 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span171[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012080u, new Vector3(392.20264f, -72.34356f, 649.56116f), 400); + obj111.Steps = list171; + reference127 = obj111; + num++; + ref QuestSequence reference128 = ref span170[num]; + QuestSequence obj112 = new QuestSequence { Sequence = 1 }; num2 = 4; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - Span span76 = CollectionsMarshal.AsSpan(list173); - span76[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(378.22073f, -74.08917f, 651.4364f), 400) + List list172 = new List(num2); + CollectionsMarshal.SetCount(list172, num2); + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(378.22073f, -74.08917f, 651.4364f), 400) { DisableNavmesh = true, Mount = true }; - span76[1] = new QuestStep(EInteractionType.AcceptQuest, 1012284u, new Vector3(363.24097f, -73.25598f, 678.4314f), 400) + index2++; + span172[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012284u, new Vector3(363.24097f, -73.25598f, 678.4314f), 400) { PickUpQuestId = new QuestId(1819) }; - span76[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.46622f, -46.748116f, 661.95807f), 400); - ref QuestStep reference130 = ref span76[3]; - QuestStep obj114 = new QuestStep(EInteractionType.Combat, null, new Vector3(243.81534f, -40.014244f, 443.64566f), 400) + index2++; + span172[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.46622f, -46.748116f, 661.95807f), 400); + index2++; + ref QuestStep reference129 = ref span172[index2]; + QuestStep obj113 = new QuestStep(EInteractionType.Combat, null, new Vector3(243.81534f, -40.014244f, 443.64566f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - Span span77 = CollectionsMarshal.AsSpan(list174); - span77[0] = 4483u; - span77[1] = 5053u; - obj114.KillEnemyDataIds = list174; - reference130 = obj114; - obj113.Steps = list173; + index3 = 2; + List list173 = new List(index3); + CollectionsMarshal.SetCount(list173, index3); + Span span173 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span173[num3] = 4483u; + num3++; + span173[num3] = 5053u; + obj113.KillEnemyDataIds = list173; reference129 = obj113; - ref QuestSequence reference131 = ref span75[2]; - QuestSequence obj115 = new QuestSequence + obj112.Steps = list172; + reference128 = obj112; + num++; + ref QuestSequence reference130 = ref span170[num]; + QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012080u, new Vector3(392.20264f, -72.34356f, 649.56116f), 400); - obj115.Steps = list175; - reference131 = obj115; - questRoot22.QuestSequence = list171; + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012080u, new Vector3(392.20264f, -72.34356f, 649.56116f), 400); + obj114.Steps = list174; + reference130 = obj114; + questRoot22.QuestSequence = list170; AddQuest(questId22, questRoot22); QuestId questId23 = new QuestId(1622); QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "JerryWester"; - questRoot23.Author = list176; - num = 5; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span78 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference132 = ref span78[0]; - QuestSequence obj116 = new QuestSequence + List list175 = new List(num); + CollectionsMarshal.SetCount(list175, num); + Span span175 = CollectionsMarshal.AsSpan(list175); + index = 0; + span175[index] = "JerryWester"; + questRoot23.Author = list175; + index = 5; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + Span span176 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference131 = ref span176[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012083u, new Vector3(355.8556f, -74.53787f, 639.6123f), 400); - obj116.Steps = list178; - reference132 = obj116; - ref QuestSequence reference133 = ref span78[1]; - QuestSequence obj117 = new QuestSequence + List list177 = new List(num2); + CollectionsMarshal.SetCount(list177, num2); + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span177[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012083u, new Vector3(355.8556f, -74.53787f, 639.6123f), 400); + obj115.Steps = list177; + reference131 = obj115; + num++; + ref QuestSequence reference132 = ref span176[num]; + QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - Span span79 = CollectionsMarshal.AsSpan(list179); - ref QuestStep reference134 = ref span79[0]; + index2 = 3; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + Span span178 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + ref QuestStep reference133 = ref span178[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1012081u, new Vector3(364.09546f, -73.26239f, 678.004f), 400); num3 = 6; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - Span span80 = CollectionsMarshal.AsSpan(list180); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep18.CompletionQuestVariablesFlags = list180; - reference134 = questStep18; - ref QuestStep reference135 = ref span79[1]; + List list179 = new List(num3); + CollectionsMarshal.SetCount(list179, num3); + Span span179 = CollectionsMarshal.AsSpan(list179); + index3 = 0; + span179[index3] = null; + index3++; + span179[index3] = null; + index3++; + span179[index3] = null; + index3++; + span179[index3] = null; + index3++; + span179[index3] = null; + index3++; + span179[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep18.CompletionQuestVariablesFlags = list179; + reference133 = questStep18; + num2++; + ref QuestStep reference134 = ref span178[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1015174u, new Vector3(360.58594f, -72.66654f, 706.2333f), 400); + index3 = 6; + List list180 = new List(index3); + CollectionsMarshal.SetCount(list180, index3); + Span span180 = CollectionsMarshal.AsSpan(list180); + num3 = 0; + span180[num3] = null; + num3++; + span180[num3] = null; + num3++; + span180[num3] = null; + num3++; + span180[num3] = null; + num3++; + span180[num3] = null; + num3++; + span180[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep19.CompletionQuestVariablesFlags = list180; + reference134 = questStep19; + num2++; + ref QuestStep reference135 = ref span178[num2]; + QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1012079u, new Vector3(406.75964f, -73.595436f, 702.57104f), 400); num3 = 6; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - Span span81 = CollectionsMarshal.AsSpan(list181); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep19.CompletionQuestVariablesFlags = list181; - reference135 = questStep19; - ref QuestStep reference136 = ref span79[2]; - QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1012079u, new Vector3(406.75964f, -73.595436f, 702.57104f), 400); - num3 = 6; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - Span span82 = CollectionsMarshal.AsSpan(list182); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep20.CompletionQuestVariablesFlags = list182; - reference136 = questStep20; - obj117.Steps = list179; - reference133 = obj117; - ref QuestSequence reference137 = ref span78[2]; - QuestSequence obj118 = new QuestSequence + Span span181 = CollectionsMarshal.AsSpan(list181); + index3 = 0; + span181[index3] = null; + index3++; + span181[index3] = null; + index3++; + span181[index3] = null; + index3++; + span181[index3] = null; + index3++; + span181[index3] = null; + index3++; + span181[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep20.CompletionQuestVariablesFlags = list181; + reference135 = questStep20; + obj116.Steps = list178; + reference132 = obj116; + num++; + ref QuestSequence reference136 = ref span176[num]; + QuestSequence obj117 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1012083u, new Vector3(355.8556f, -74.53787f, 639.6123f), 400); - obj118.Steps = list183; - reference137 = obj118; - ref QuestSequence reference138 = ref span78[3]; - QuestSequence obj119 = new QuestSequence + List list182 = new List(num2); + CollectionsMarshal.SetCount(list182, num2); + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.Interact, 1012083u, new Vector3(355.8556f, -74.53787f, 639.6123f), 400); + obj117.Steps = list182; + reference136 = obj117; + num++; + ref QuestSequence reference137 = ref span176[num]; + QuestSequence obj118 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - Span span83 = CollectionsMarshal.AsSpan(list184); - span83[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006216u, new Vector3(421.1642f, -43.05859f, 661.7684f), 400) + index2 = 3; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span183[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006216u, new Vector3(421.1642f, -43.05859f, 661.7684f), 400) { AetherCurrentId = 2818099u }; - span83[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(327.68222f, 2.3181255f, 602.9682f), 400); - span83[2] = new QuestStep(EInteractionType.Interact, 2005456u, new Vector3(261.24963f, 12.436096f, 622.06445f), 400); - obj119.Steps = list184; - reference138 = obj119; - ref QuestSequence reference139 = ref span78[4]; - QuestSequence obj120 = new QuestSequence + num2++; + span183[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(327.68222f, 2.3181255f, 602.9682f), 400); + num2++; + span183[num2] = new QuestStep(EInteractionType.Interact, 2005456u, new Vector3(261.24963f, 12.436096f, 622.06445f), 400); + obj118.Steps = list183; + reference137 = obj118; + num++; + ref QuestSequence reference138 = ref span176[num]; + QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - Span span84 = CollectionsMarshal.AsSpan(list185); - span84[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(343.68805f, 16.317823f, 686.95074f), 400) + List list184 = new List(num2); + CollectionsMarshal.SetCount(list184, num2); + Span span184 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span184[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(343.68805f, 16.317823f, 686.95074f), 400) { JumpDestination = new JumpDestination { Position = new Vector3(367.56647f, -73.91838f, 661.2286f) } }; - span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1012083u, new Vector3(355.8556f, -74.53787f, 639.6123f), 400) + index2++; + span184[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012083u, new Vector3(355.8556f, -74.53787f, 639.6123f), 400) { DisableNavmesh = true }; - obj120.Steps = list185; - reference139 = obj120; - questRoot23.QuestSequence = list177; + obj119.Steps = list184; + reference138 = obj119; + questRoot23.QuestSequence = list176; AddQuest(questId23, questRoot23); QuestId questId24 = new QuestId(1623); QuestRoot questRoot24 = new QuestRoot(); num = 1; - List list186 = new List(num); - CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "JerryWester"; - questRoot24.Author = list186; - num = 4; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span85 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference140 = ref span85[0]; - QuestSequence obj121 = new QuestSequence + List list185 = new List(num); + CollectionsMarshal.SetCount(list185, num); + Span span185 = CollectionsMarshal.AsSpan(list185); + index = 0; + span185[index] = "JerryWester"; + questRoot24.Author = list185; + index = 4; + List list186 = new List(index); + CollectionsMarshal.SetCount(list186, index); + Span span186 = CollectionsMarshal.AsSpan(list186); + num = 0; + ref QuestSequence reference139 = ref span186[num]; + QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - Span span86 = CollectionsMarshal.AsSpan(list188); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400); - span86[1] = new QuestStep(EInteractionType.AcceptQuest, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + index2 = 2; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400); + num2++; + span187[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f, IgnoreDistanceToObject = true }; - obj121.Steps = list188; - reference140 = obj121; - ref QuestSequence reference141 = ref span85[1]; - QuestSequence obj122 = new QuestSequence + obj120.Steps = list187; + reference139 = obj120; + num++; + ref QuestSequence reference140 = ref span186[num]; + QuestSequence obj121 = new QuestSequence { Sequence = 1 }; num2 = 5; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - Span span87 = CollectionsMarshal.AsSpan(list189); - ref QuestStep reference142 = ref span87[0]; + List list188 = new List(num2); + CollectionsMarshal.SetCount(list188, num2); + Span span188 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + ref QuestStep reference141 = ref span188[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1013586u, new Vector3(360.0061f, -73.64376f, 669.58105f), 400); + index3 = 6; + List list189 = new List(index3); + CollectionsMarshal.SetCount(list189, index3); + Span span189 = CollectionsMarshal.AsSpan(list189); + num3 = 0; + span189[num3] = null; + num3++; + span189[num3] = null; + num3++; + span189[num3] = null; + num3++; + span189[num3] = null; + num3++; + span189[num3] = null; + num3++; + span189[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep21.CompletionQuestVariablesFlags = list189; + reference141 = questStep21; + index2++; + ref QuestStep reference142 = ref span188[index2]; + QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1013587u, new Vector3(337.7279f, -74.339264f, 648.00476f), 400); num3 = 6; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - Span span88 = CollectionsMarshal.AsSpan(list190); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep21.CompletionQuestVariablesFlags = list190; - reference142 = questStep21; - ref QuestStep reference143 = ref span87[1]; - QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1013587u, new Vector3(337.7279f, -74.339264f, 648.00476f), 400); - num3 = 6; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - Span span89 = CollectionsMarshal.AsSpan(list191); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep22.CompletionQuestVariablesFlags = list191; - reference143 = questStep22; - ref QuestStep reference144 = ref span87[2]; + Span span190 = CollectionsMarshal.AsSpan(list190); + index3 = 0; + span190[index3] = null; + index3++; + span190[index3] = null; + index3++; + span190[index3] = null; + index3++; + span190[index3] = null; + index3++; + span190[index3] = null; + index3++; + span190[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep22.CompletionQuestVariablesFlags = list190; + reference142 = questStep22; + index2++; + ref QuestStep reference143 = ref span188[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1013589u, new Vector3(368.52063f, -74.14886f, 647.9437f), 400); + index3 = 6; + List list191 = new List(index3); + CollectionsMarshal.SetCount(list191, index3); + Span span191 = CollectionsMarshal.AsSpan(list191); + num3 = 0; + span191[num3] = null; + num3++; + span191[num3] = null; + num3++; + span191[num3] = null; + num3++; + span191[num3] = null; + num3++; + span191[num3] = null; + num3++; + span191[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep23.CompletionQuestVariablesFlags = list191; + reference143 = questStep23; + index2++; + ref QuestStep reference144 = ref span188[index2]; + QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1013588u, new Vector3(392.08044f, -72.3437f, 655.02405f), 400); num3 = 6; List list192 = new List(num3); CollectionsMarshal.SetCount(list192, num3); - Span span90 = CollectionsMarshal.AsSpan(list192); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep23.CompletionQuestVariablesFlags = list192; - reference144 = questStep23; - ref QuestStep reference145 = ref span87[3]; - QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1013588u, new Vector3(392.08044f, -72.3437f, 655.02405f), 400); - num3 = 6; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - Span span91 = CollectionsMarshal.AsSpan(list193); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep24.CompletionQuestVariablesFlags = list193; - reference145 = questStep24; - ref QuestStep reference146 = ref span87[4]; + Span span192 = CollectionsMarshal.AsSpan(list192); + index3 = 0; + span192[index3] = null; + index3++; + span192[index3] = null; + index3++; + span192[index3] = null; + index3++; + span192[index3] = null; + index3++; + span192[index3] = null; + index3++; + span192[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep24.CompletionQuestVariablesFlags = list192; + reference144 = questStep24; + index2++; + ref QuestStep reference145 = ref span188[index2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1013590u, new Vector3(392.26355f, -72.34358f, 645.1361f), 400); - num3 = 6; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - Span span92 = CollectionsMarshal.AsSpan(list194); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - questStep25.CompletionQuestVariablesFlags = list194; - reference146 = questStep25; - obj122.Steps = list189; - reference141 = obj122; - ref QuestSequence reference147 = ref span85[2]; - QuestSequence obj123 = new QuestSequence + index3 = 6; + List list193 = new List(index3); + CollectionsMarshal.SetCount(list193, index3); + Span span193 = CollectionsMarshal.AsSpan(list193); + num3 = 0; + span193[num3] = null; + num3++; + span193[num3] = null; + num3++; + span193[num3] = null; + num3++; + span193[num3] = null; + num3++; + span193[num3] = null; + num3++; + span193[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + questStep25.CompletionQuestVariablesFlags = list193; + reference145 = questStep25; + obj121.Steps = list188; + reference140 = obj121; + num++; + ref QuestSequence reference146 = ref span186[num]; + QuestSequence obj122 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - Span span93 = CollectionsMarshal.AsSpan(list195); - span93[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(374.66388f, -74.11696f, 651.47766f), 400) + index2 = 3; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(374.66388f, -74.11696f, 651.47766f), 400) { Mount = true }; - span93[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400); - span93[2] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + num2++; + span194[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400); + num2++; + span194[num2] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f, IgnoreDistanceToObject = true }; - obj123.Steps = list195; - reference147 = obj123; - ref QuestSequence reference148 = ref span85[3]; - QuestSequence obj124 = new QuestSequence + obj122.Steps = list194; + reference146 = obj122; + num++; + ref QuestSequence reference147 = ref span186[num]; + QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400) + List list195 = new List(num2); + CollectionsMarshal.SetCount(list195, num2); + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span195[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400) { StopDistance = 7f }; - obj124.Steps = list196; - reference148 = obj124; - questRoot24.QuestSequence = list187; + obj123.Steps = list195; + reference147 = obj123; + questRoot24.QuestSequence = list186; AddQuest(questId24, questRoot24); QuestId questId25 = new QuestId(1624); QuestRoot questRoot25 = new QuestRoot(); num = 1; - List list197 = new List(num); - CollectionsMarshal.SetCount(list197, num); - CollectionsMarshal.AsSpan(list197)[0] = "JerryWester"; - questRoot25.Author = list197; - num = 4; - List list198 = new List(num); - CollectionsMarshal.SetCount(list198, num); - Span span94 = CollectionsMarshal.AsSpan(list198); - ref QuestSequence reference149 = ref span94[0]; - QuestSequence obj125 = new QuestSequence + List list196 = new List(num); + CollectionsMarshal.SetCount(list196, num); + Span span196 = CollectionsMarshal.AsSpan(list196); + index = 0; + span196[index] = "JerryWester"; + questRoot25.Author = list196; + index = 4; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + Span span197 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference148 = ref span197[num]; + QuestSequence obj124 = new QuestSequence { Sequence = 0 }; + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span198 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span198[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400) + { + StopDistance = 7f + }; + obj124.Steps = list198; + reference148 = obj124; + num++; + ref QuestSequence reference149 = ref span197[num]; + QuestSequence obj125 = new QuestSequence + { + Sequence = 1 + }; num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400) - { - StopDistance = 7f - }; + Span span199 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span199[index2] = new QuestStep(EInteractionType.Interact, 1012664u, new Vector3(364.30908f, -74.10719f, 654.322f), 400); obj125.Steps = list199; reference149 = obj125; - ref QuestSequence reference150 = ref span94[1]; + num++; + ref QuestSequence reference150 = ref span197[num]; QuestSequence obj126 = new QuestSequence { - Sequence = 1 + Sequence = 2 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1012664u, new Vector3(364.30908f, -74.10719f, 654.322f), 400); + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.Interact, 1013589u, new Vector3(368.52063f, -74.14886f, 647.9437f), 400); obj126.Steps = list200; reference150 = obj126; - ref QuestSequence reference151 = ref span94[2]; + num++; + ref QuestSequence reference151 = ref span197[num]; QuestSequence obj127 = new QuestSequence { - Sequence = 2 + Sequence = byte.MaxValue }; num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1013589u, new Vector3(368.52063f, -74.14886f, 647.9437f), 400); + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012682u, new Vector3(241.19922f, -42.249466f, 609.27747f), 400); obj127.Steps = list201; reference151 = obj127; - ref QuestSequence reference152 = ref span94[3]; - QuestSequence obj128 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012682u, new Vector3(241.19922f, -42.249466f, 609.27747f), 400); - obj128.Steps = list202; - reference152 = obj128; - questRoot25.QuestSequence = list198; + questRoot25.QuestSequence = list197; AddQuest(questId25, questRoot25); QuestId questId26 = new QuestId(1625); QuestRoot questRoot26 = new QuestRoot(); num = 1; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - CollectionsMarshal.AsSpan(list203)[0] = "JerryWester"; - questRoot26.Author = list203; - num = 4; - List list204 = new List(num); - CollectionsMarshal.SetCount(list204, num); - Span span95 = CollectionsMarshal.AsSpan(list204); - ref QuestSequence reference153 = ref span95[0]; - QuestSequence obj129 = new QuestSequence + List list202 = new List(num); + CollectionsMarshal.SetCount(list202, num); + Span span202 = CollectionsMarshal.AsSpan(list202); + index = 0; + span202[index] = "JerryWester"; + questRoot26.Author = list202; + index = 4; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + Span span203 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference152 = ref span203[num]; + QuestSequence obj128 = new QuestSequence { Sequence = 0 }; + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012682u, new Vector3(241.19922f, -42.249466f, 609.27747f), 400); + obj128.Steps = list204; + reference152 = obj128; + num++; + ref QuestSequence reference153 = ref span203[num]; + QuestSequence obj129 = new QuestSequence + { + Sequence = 1 + }; num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012682u, new Vector3(241.19922f, -42.249466f, 609.27747f), 400); - obj129.Steps = list205; - reference153 = obj129; - ref QuestSequence reference154 = ref span95[1]; - QuestSequence obj130 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list206)[0]; - QuestStep obj131 = new QuestStep(EInteractionType.Combat, null, new Vector3(305.3146f, -41.478928f, 327.0319f), 400) + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + ref QuestStep reference154 = ref span205[index2]; + QuestStep obj130 = new QuestStep(EInteractionType.Combat, null, new Vector3(305.3146f, -41.478928f, 327.0319f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 2; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - Span span96 = CollectionsMarshal.AsSpan(list207); - span96[0] = 4487u; - span96[1] = 4490u; - obj131.KillEnemyDataIds = list207; - reference155 = obj131; - obj130.Steps = list206; + List list206 = new List(num3); + CollectionsMarshal.SetCount(list206, num3); + Span span206 = CollectionsMarshal.AsSpan(list206); + index3 = 0; + span206[index3] = 4487u; + index3++; + span206[index3] = 4490u; + obj130.KillEnemyDataIds = list206; reference154 = obj130; - ref QuestSequence reference156 = ref span95[2]; - QuestSequence obj132 = new QuestSequence + obj129.Steps = list205; + reference153 = obj129; + num++; + ref QuestSequence reference155 = ref span203[num]; + QuestSequence obj131 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - ref QuestStep reference157 = ref CollectionsMarshal.AsSpan(list208)[0]; - QuestStep obj133 = new QuestStep(EInteractionType.Combat, null, new Vector3(208.34923f, -23.294632f, 165.22832f), 400) + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + Span span207 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + ref QuestStep reference156 = ref span207[num2]; + QuestStep obj132 = new QuestStep(EInteractionType.Combat, null, new Vector3(208.34923f, -23.294632f, 165.22832f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - Span span97 = CollectionsMarshal.AsSpan(list209); - span97[0] = 4488u; - span97[1] = 4491u; - obj133.KillEnemyDataIds = list209; - reference157 = obj133; - obj132.Steps = list208; + index3 = 2; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + Span span208 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span208[num3] = 4488u; + num3++; + span208[num3] = 4491u; + obj132.KillEnemyDataIds = list208; reference156 = obj132; - ref QuestSequence reference158 = ref span95[3]; - QuestSequence obj134 = new QuestSequence + obj131.Steps = list207; + reference155 = obj131; + num++; + ref QuestSequence reference157 = ref span203[num]; + QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span98 = CollectionsMarshal.AsSpan(list210); - ref QuestStep reference159 = ref span98[0]; - QuestStep obj135 = new QuestStep(EInteractionType.AcceptQuest, 1012285u, new Vector3(247.11987f, -42.33362f, 565.3314f), 400) + List list209 = new List(num2); + CollectionsMarshal.SetCount(list209, num2); + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + ref QuestStep reference158 = ref span209[index2]; + QuestStep obj134 = new QuestStep(EInteractionType.AcceptQuest, 1012285u, new Vector3(247.11987f, -42.33362f, 565.3314f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; - SkipConditions skipConditions4 = new SkipConditions(); + SkipConditions skipConditions3 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); num3 = 1; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new QuestId(1823); - skipAetheryteCondition3.QuestsCompleted = list211; - skipConditions4.AetheryteShortcutIf = skipAetheryteCondition3; - obj135.SkipConditions = skipConditions4; - obj135.PickUpQuestId = new QuestId(1823); - reference159 = obj135; - span98[1] = new QuestStep(EInteractionType.CompleteQuest, 1013202u, new Vector3(-79.88104f, -8.844478f, 206.22559f), 400); - obj134.Steps = list210; + List list210 = new List(num3); + CollectionsMarshal.SetCount(list210, num3); + Span span210 = CollectionsMarshal.AsSpan(list210); + index3 = 0; + span210[index3] = new QuestId(1823); + skipAetheryteCondition3.QuestsCompleted = list210; + skipConditions3.AetheryteShortcutIf = skipAetheryteCondition3; + obj134.SkipConditions = skipConditions3; + obj134.PickUpQuestId = new QuestId(1823); reference158 = obj134; - questRoot26.QuestSequence = list204; + index2++; + span209[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013202u, new Vector3(-79.88104f, -8.844478f, 206.22559f), 400); + obj133.Steps = list209; + reference157 = obj133; + questRoot26.QuestSequence = list203; AddQuest(questId26, questRoot26); QuestId questId27 = new QuestId(1626); QuestRoot questRoot27 = new QuestRoot(); num = 1; - List list212 = new List(num); - CollectionsMarshal.SetCount(list212, num); - CollectionsMarshal.AsSpan(list212)[0] = "JerryWester"; - questRoot27.Author = list212; - num = 4; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - Span span99 = CollectionsMarshal.AsSpan(list213); - ref QuestSequence reference160 = ref span99[0]; - QuestSequence obj136 = new QuestSequence + List list211 = new List(num); + CollectionsMarshal.SetCount(list211, num); + Span span211 = CollectionsMarshal.AsSpan(list211); + index = 0; + span211[index] = "JerryWester"; + questRoot27.Author = list211; + index = 4; + List list212 = new List(index); + CollectionsMarshal.SetCount(list212, index); + Span span212 = CollectionsMarshal.AsSpan(list212); + num = 0; + ref QuestSequence reference159 = ref span212[num]; + QuestSequence obj135 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013202u, new Vector3(-79.88104f, -8.844478f, 206.22559f), 400); - obj136.Steps = list214; - reference160 = obj136; - ref QuestSequence reference161 = ref span99[1]; - QuestSequence obj137 = new QuestSequence + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span213 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span213[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013202u, new Vector3(-79.88104f, -8.844478f, 206.22559f), 400); + obj135.Steps = list213; + reference159 = obj135; + num++; + ref QuestSequence reference160 = ref span212[num]; + QuestSequence obj136 = new QuestSequence { Sequence = 1 }; num2 = 3; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - Span span100 = CollectionsMarshal.AsSpan(list215); - span100[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006217u, new Vector3(-93.7973f, -6.7597656f, 223.83447f), 400) + List list214 = new List(num2); + CollectionsMarshal.SetCount(list214, num2); + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006217u, new Vector3(-93.7973f, -6.7597656f, 223.83447f), 400) { StopDistance = 5f, AetherCurrentId = 2818100u }; - span100[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-263.82666f, 24.845102f, 446.3256f), 400); - span100[2] = new QuestStep(EInteractionType.Interact, 1012759u, new Vector3(-258.5031f, 30.373112f, 562.27966f), 400); - obj137.Steps = list215; - reference161 = obj137; - ref QuestSequence reference162 = ref span99[2]; - QuestSequence obj138 = new QuestSequence + index2++; + span214[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-263.82666f, 24.845102f, 446.3256f), 400); + index2++; + span214[index2] = new QuestStep(EInteractionType.Interact, 1012759u, new Vector3(-258.5031f, 30.373112f, 562.27966f), 400); + obj136.Steps = list214; + reference160 = obj136; + num++; + ref QuestSequence reference161 = ref span212[num]; + QuestSequence obj137 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - Span span101 = CollectionsMarshal.AsSpan(list216); - ref QuestStep reference163 = ref span101[0]; - QuestStep obj139 = new QuestStep(EInteractionType.Combat, null, new Vector3(-233.69716f, -12.69435f, 322.77405f), 400) + index2 = 2; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + ref QuestStep reference162 = ref span215[num2]; + QuestStep obj138 = new QuestStep(EInteractionType.Combat, null, new Vector3(-233.69716f, -12.69435f, 322.77405f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list217 = new List(num3); + index3 = 1; + List list216 = new List(index3); + CollectionsMarshal.SetCount(list216, index3); + Span span216 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span216[num3] = 4015u; + obj138.KillEnemyDataIds = list216; + num3 = 6; + List list217 = new List(num3); CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = 4015u; - obj139.KillEnemyDataIds = list217; - num3 = 6; - List list218 = new List(num3); - CollectionsMarshal.SetCount(list218, num3); - Span span102 = CollectionsMarshal.AsSpan(list218); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj139.CompletionQuestVariablesFlags = list218; - reference163 = obj139; - ref QuestStep reference164 = ref span101[1]; - QuestStep obj140 = new QuestStep(EInteractionType.Combat, null, new Vector3(-92.774055f, -5.1304445f, 379.861f), 400) + Span span217 = CollectionsMarshal.AsSpan(list217); + index3 = 0; + span217[index3] = null; + index3++; + span217[index3] = null; + index3++; + span217[index3] = null; + index3++; + span217[index3] = null; + index3++; + span217[index3] = null; + index3++; + span217[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj138.CompletionQuestVariablesFlags = list217; + reference162 = obj138; + num2++; + ref QuestStep reference163 = ref span215[num2]; + QuestStep obj139 = new QuestStep(EInteractionType.Combat, null, new Vector3(-92.774055f, -5.1304445f, 379.861f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = 4015u; - obj140.KillEnemyDataIds = list219; + index3 = 1; + List list218 = new List(index3); + CollectionsMarshal.SetCount(list218, index3); + Span span218 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span218[num3] = 4015u; + obj139.KillEnemyDataIds = list218; num3 = 6; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - Span span103 = CollectionsMarshal.AsSpan(list220); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj140.CompletionQuestVariablesFlags = list220; - reference164 = obj140; - obj138.Steps = list216; - reference162 = obj138; - ref QuestSequence reference165 = ref span99[3]; - QuestSequence obj141 = new QuestSequence + List list219 = new List(num3); + CollectionsMarshal.SetCount(list219, num3); + Span span219 = CollectionsMarshal.AsSpan(list219); + index3 = 0; + span219[index3] = null; + index3++; + span219[index3] = null; + index3++; + span219[index3] = null; + index3++; + span219[index3] = null; + index3++; + span219[index3] = null; + index3++; + span219[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj139.CompletionQuestVariablesFlags = list219; + reference163 = obj139; + obj137.Steps = list215; + reference161 = obj137; + num++; + ref QuestSequence reference164 = ref span212[num]; + QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - Span span104 = CollectionsMarshal.AsSpan(list221); - span104[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-250.59578f, 19.834919f, 438.27606f), 400); - span104[1] = new QuestStep(EInteractionType.CompleteQuest, 1012757u, new Vector3(-261.82965f, 30.373112f, 557.94604f), 400); - obj141.Steps = list221; - reference165 = obj141; - questRoot27.QuestSequence = list213; + List list220 = new List(num2); + CollectionsMarshal.SetCount(list220, num2); + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span220[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-250.59578f, 19.834919f, 438.27606f), 400); + index2++; + span220[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012757u, new Vector3(-261.82965f, 30.373112f, 557.94604f), 400); + obj140.Steps = list220; + reference164 = obj140; + questRoot27.QuestSequence = list212; AddQuest(questId27, questRoot27); QuestId questId28 = new QuestId(1627); QuestRoot questRoot28 = new QuestRoot(); num = 1; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "JerryWester"; - questRoot28.Author = list222; - num = 3; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span105 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference166 = ref span105[0]; - QuestSequence obj142 = new QuestSequence + List list221 = new List(num); + CollectionsMarshal.SetCount(list221, num); + Span span221 = CollectionsMarshal.AsSpan(list221); + index = 0; + span221[index] = "JerryWester"; + questRoot28.Author = list221; + index = 3; + List list222 = new List(index); + CollectionsMarshal.SetCount(list222, index); + Span span222 = CollectionsMarshal.AsSpan(list222); + num = 0; + ref QuestSequence reference165 = ref span222[num]; + QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012759u, new Vector3(-258.5031f, 30.373112f, 562.27966f), 400); - obj142.Steps = list224; - reference166 = obj142; - ref QuestSequence reference167 = ref span105[1]; - QuestSequence obj143 = new QuestSequence + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + Span span223 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span223[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012759u, new Vector3(-258.5031f, 30.373112f, 562.27966f), 400); + obj141.Steps = list223; + reference165 = obj141; + num++; + ref QuestSequence reference166 = ref span222[num]; + QuestSequence obj142 = new QuestSequence { Sequence = 1 }; num2 = 6; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - Span span106 = CollectionsMarshal.AsSpan(list225); - span106[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-289.72092f, 24.054262f, 489.63916f), 400); - span106[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-313.92142f, 21.75836f, 472.20667f), 400); - span106[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 400) + List list224 = new List(num2); + CollectionsMarshal.SetCount(list224, num2); + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-289.72092f, 24.054262f, 489.63916f), 400); + index2++; + span224[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-313.92142f, 21.75836f, 472.20667f), 400); + index2++; + span224[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 400) { Aetheryte = EAetheryteLocation.ChurningMistsZenith }; - span106[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-718.6387f, 83.7983f, 241.97528f), 400); - span106[4] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006218u, new Vector3(-775.26514f, 123.73535f, 243.70178f), 400) + index2++; + span224[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-718.6387f, 83.7983f, 241.97528f), 400); + index2++; + span224[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006218u, new Vector3(-775.26514f, 123.73535f, 243.70178f), 400) { AetherCurrentId = 2818101u }; - span106[5] = new QuestStep(EInteractionType.Interact, 2005459u, new Vector3(-758.35815f, 123.704834f, 214.49597f), 400); - obj143.Steps = list225; - reference167 = obj143; - ref QuestSequence reference168 = ref span105[2]; - QuestSequence obj144 = new QuestSequence + index2++; + span224[index2] = new QuestStep(EInteractionType.Interact, 2005459u, new Vector3(-758.35815f, 123.704834f, 214.49597f), 400); + obj142.Steps = list224; + reference166 = obj142; + num++; + ref QuestSequence reference167 = ref span222[num]; + QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012694u, new Vector3(-758.32764f, 123.72873f, 210.74231f), 400) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012694u, new Vector3(-758.32764f, 123.72873f, 210.74231f), 400) { StopDistance = 7f }; - obj144.Steps = list226; - reference168 = obj144; - questRoot28.QuestSequence = list223; + obj143.Steps = list225; + reference167 = obj143; + questRoot28.QuestSequence = list222; AddQuest(questId28, questRoot28); QuestId questId29 = new QuestId(1628); QuestRoot questRoot29 = new QuestRoot(); num = 1; - List list227 = new List(num); - CollectionsMarshal.SetCount(list227, num); - CollectionsMarshal.AsSpan(list227)[0] = "JerryWester"; - questRoot29.Author = list227; - num = 5; - List list228 = new List(num); - CollectionsMarshal.SetCount(list228, num); - Span span107 = CollectionsMarshal.AsSpan(list228); - ref QuestSequence reference169 = ref span107[0]; - QuestSequence obj145 = new QuestSequence + List list226 = new List(num); + CollectionsMarshal.SetCount(list226, num); + Span span226 = CollectionsMarshal.AsSpan(list226); + index = 0; + span226[index] = "JerryWester"; + questRoot29.Author = list226; + index = 5; + List list227 = new List(index); + CollectionsMarshal.SetCount(list227, index); + Span span227 = CollectionsMarshal.AsSpan(list227); + num = 0; + ref QuestSequence reference168 = ref span227[num]; + QuestSequence obj144 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012694u, new Vector3(-758.32764f, 123.72873f, 210.74231f), 400) + List list228 = new List(num2); + CollectionsMarshal.SetCount(list228, num2); + Span span228 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span228[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012694u, new Vector3(-758.32764f, 123.72873f, 210.74231f), 400) { StopDistance = 7f }; - obj145.Steps = list229; - reference169 = obj145; - ref QuestSequence reference170 = ref span107[1]; - QuestSequence obj146 = new QuestSequence + obj144.Steps = list228; + reference168 = obj144; + num++; + ref QuestSequence reference169 = ref span227[num]; + QuestSequence obj145 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - ref QuestStep reference171 = ref CollectionsMarshal.AsSpan(list230)[0]; - QuestStep obj147 = new QuestStep(EInteractionType.Combat, null, new Vector3(-455.00378f, 43.619022f, 403.64548f), 400) + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + Span span229 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + ref QuestStep reference170 = ref span229[num2]; + QuestStep obj146 = new QuestStep(EInteractionType.Combat, null, new Vector3(-455.00378f, 43.619022f, 403.64548f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list231 = new List(num3); - CollectionsMarshal.SetCount(list231, num3); - Span span108 = CollectionsMarshal.AsSpan(list231); - span108[0] = 4479u; - span108[1] = 4481u; - obj147.KillEnemyDataIds = list231; - reference171 = obj147; - obj146.Steps = list230; + index3 = 2; + List list230 = new List(index3); + CollectionsMarshal.SetCount(list230, index3); + Span span230 = CollectionsMarshal.AsSpan(list230); + num3 = 0; + span230[num3] = 4479u; + num3++; + span230[num3] = 4481u; + obj146.KillEnemyDataIds = list230; reference170 = obj146; - ref QuestSequence reference172 = ref span107[2]; - QuestSequence obj148 = new QuestSequence + obj145.Steps = list229; + reference169 = obj145; + num++; + ref QuestSequence reference171 = ref span227[num]; + QuestSequence obj147 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - ref QuestStep reference173 = ref CollectionsMarshal.AsSpan(list232)[0]; - QuestStep obj149 = new QuestStep(EInteractionType.Combat, null, new Vector3(149.1435f, -23.289272f, 177.45946f), 400) + List list231 = new List(num2); + CollectionsMarshal.SetCount(list231, num2); + Span span231 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + ref QuestStep reference172 = ref span231[index2]; + QuestStep obj148 = new QuestStep(EInteractionType.Combat, null, new Vector3(149.1435f, -23.289272f, 177.45946f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 1; - List list233 = new List(num3); - CollectionsMarshal.SetCount(list233, num3); - CollectionsMarshal.AsSpan(list233)[0] = 4491u; - obj149.KillEnemyDataIds = list233; - reference173 = obj149; - obj148.Steps = list232; + List list232 = new List(num3); + CollectionsMarshal.SetCount(list232, num3); + Span span232 = CollectionsMarshal.AsSpan(list232); + index3 = 0; + span232[index3] = 4491u; + obj148.KillEnemyDataIds = list232; reference172 = obj148; - ref QuestSequence reference174 = ref span107[3]; - QuestSequence obj150 = new QuestSequence + obj147.Steps = list231; + reference171 = obj147; + num++; + ref QuestSequence reference173 = ref span227[num]; + QuestSequence obj149 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - Span span109 = CollectionsMarshal.AsSpan(list234); - span109[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006224u, new Vector3(340.01672f, -25.375793f, -130.54095f), 400) + index2 = 2; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + Span span233 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span233[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006224u, new Vector3(340.01672f, -25.375793f, -130.54095f), 400) { AetherCurrentId = 2818107u }; - ref QuestStep reference175 = ref span109[1]; - QuestStep obj151 = new QuestStep(EInteractionType.Combat, null, new Vector3(396.12845f, -29.186422f, -142.568f), 400) + num2++; + ref QuestStep reference174 = ref span233[num2]; + QuestStep obj150 = new QuestStep(EInteractionType.Combat, null, new Vector3(396.12845f, -29.186422f, -142.568f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - CollectionsMarshal.AsSpan(list235)[0] = 4479u; - obj151.KillEnemyDataIds = list235; - reference175 = obj151; - obj150.Steps = list234; + index3 = 1; + List list234 = new List(index3); + CollectionsMarshal.SetCount(list234, index3); + Span span234 = CollectionsMarshal.AsSpan(list234); + num3 = 0; + span234[num3] = 4479u; + obj150.KillEnemyDataIds = list234; reference174 = obj150; - ref QuestSequence reference176 = ref span107[4]; - QuestSequence obj152 = new QuestSequence + obj149.Steps = list233; + reference173 = obj149; + num++; + ref QuestSequence reference175 = ref span227[num]; + QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012698u, new Vector3(569.17664f, -1.1916885f, -370.22968f), 400); - obj152.Steps = list236; - reference176 = obj152; - questRoot29.QuestSequence = list228; + List list235 = new List(num2); + CollectionsMarshal.SetCount(list235, num2); + Span span235 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span235[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012698u, new Vector3(569.17664f, -1.1916885f, -370.22968f), 400); + obj151.Steps = list235; + reference175 = obj151; + questRoot29.QuestSequence = list227; AddQuest(questId29, questRoot29); QuestId questId30 = new QuestId(1629); QuestRoot questRoot30 = new QuestRoot(); num = 1; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - CollectionsMarshal.AsSpan(list237)[0] = "JerryWester"; - questRoot30.Author = list237; - num = 5; - List list238 = new List(num); - CollectionsMarshal.SetCount(list238, num); - Span span110 = CollectionsMarshal.AsSpan(list238); - ref QuestSequence reference177 = ref span110[0]; - QuestSequence obj153 = new QuestSequence + List list236 = new List(num); + CollectionsMarshal.SetCount(list236, num); + Span span236 = CollectionsMarshal.AsSpan(list236); + index = 0; + span236[index] = "JerryWester"; + questRoot30.Author = list236; + index = 5; + List list237 = new List(index); + CollectionsMarshal.SetCount(list237, index); + Span span237 = CollectionsMarshal.AsSpan(list237); + num = 0; + ref QuestSequence reference176 = ref span237[num]; + QuestSequence obj152 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012698u, new Vector3(569.17664f, -1.1916885f, -370.22968f), 400); - obj153.Steps = list239; - reference177 = obj153; - ref QuestSequence reference178 = ref span110[1]; - QuestSequence obj154 = new QuestSequence + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012698u, new Vector3(569.17664f, -1.1916885f, -370.22968f), 400); + obj152.Steps = list238; + reference176 = obj152; + num++; + ref QuestSequence reference177 = ref span237[num]; + QuestSequence obj153 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - Span span111 = CollectionsMarshal.AsSpan(list240); - span111[0] = new QuestStep(EInteractionType.AcceptQuest, 1013434u, new Vector3(517.9064f, -1.1917055f, -354.63495f), 400) + List list239 = new List(num2); + CollectionsMarshal.SetCount(list239, num2); + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013434u, new Vector3(517.9064f, -1.1917055f, -354.63495f), 400) { PickUpQuestId = new QuestId(1835) }; - span111[1] = new QuestStep(EInteractionType.Interact, 1012720u, new Vector3(-106.9505f, 15.168516f, -40.60431f), 418) + index2++; + span239[index2] = new QuestStep(EInteractionType.Interact, 1012720u, new Vector3(-106.9505f, 15.168516f, -40.60431f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -102545,18 +123438,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj154.Steps = list240; - reference178 = obj154; - ref QuestSequence reference179 = ref span110[2]; - QuestSequence obj155 = new QuestSequence + obj153.Steps = list239; + reference177 = obj153; + num++; + ref QuestSequence reference178 = ref span237[num]; + QuestSequence obj154 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - Span span112 = CollectionsMarshal.AsSpan(list241); - span112[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + index2 = 2; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -102565,23 +123460,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - span112[1] = new QuestStep(EInteractionType.Interact, 1012583u, new Vector3(-2.1210327f, 0.009368893f, -9.567444f), 433); - obj155.Steps = list241; - reference179 = obj155; - ref QuestSequence reference180 = ref span110[3]; - QuestSequence obj156 = new QuestSequence + num2++; + span240[num2] = new QuestStep(EInteractionType.Interact, 1012583u, new Vector3(-2.1210327f, 0.009368893f, -9.567444f), 433); + obj154.Steps = list240; + reference178 = obj154; + num++; + ref QuestSequence reference179 = ref span237[num]; + QuestSequence obj155 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - Span span113 = CollectionsMarshal.AsSpan(list242); - span113[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) + List list241 = new List(num2); + CollectionsMarshal.SetCount(list241, num2); + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) { TargetTerritoryId = (ushort)419 }; - span113[1] = new QuestStep(EInteractionType.Interact, 1012709u, new Vector3(151.01843f, -12.634913f, -28.671753f), 419) + index2++; + span241[index2] = new QuestStep(EInteractionType.Interact, 1012709u, new Vector3(151.01843f, -12.634913f, -28.671753f), 419) { AethernetShortcut = new AethernetShortcut { @@ -102589,17 +123488,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardAthenaeumAstrologicum } }; - obj156.Steps = list242; - reference180 = obj156; - ref QuestSequence reference181 = ref span110[4]; - QuestSequence obj157 = new QuestSequence + obj155.Steps = list241; + reference179 = obj155; + num++; + ref QuestSequence reference180 = ref span237[num]; + QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012714u, new Vector3(-160.54016f, 16.979584f, -39.96344f), 418) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012714u, new Vector3(-160.54016f, 16.979584f, -39.96344f), 418) { AethernetShortcut = new AethernetShortcut { @@ -102607,160 +123509,194 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj157.Steps = list243; - reference181 = obj157; - questRoot30.QuestSequence = list238; + obj156.Steps = list242; + reference180 = obj156; + questRoot30.QuestSequence = list237; AddQuest(questId30, questRoot30); QuestId questId31 = new QuestId(1630); QuestRoot questRoot31 = new QuestRoot(); num = 1; - List list244 = new List(num); - CollectionsMarshal.SetCount(list244, num); - CollectionsMarshal.AsSpan(list244)[0] = "JerryWester"; - questRoot31.Author = list244; - num = 6; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - Span span114 = CollectionsMarshal.AsSpan(list245); - ref QuestSequence reference182 = ref span114[0]; - QuestSequence obj158 = new QuestSequence + List list243 = new List(num); + CollectionsMarshal.SetCount(list243, num); + Span span243 = CollectionsMarshal.AsSpan(list243); + index = 0; + span243[index] = "JerryWester"; + questRoot31.Author = list243; + index = 6; + List list244 = new List(index); + CollectionsMarshal.SetCount(list244, index); + Span span244 = CollectionsMarshal.AsSpan(list244); + num = 0; + ref QuestSequence reference181 = ref span244[num]; + QuestSequence obj157 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012721u, new Vector3(-162.49341f, 16.979584f, -37.521973f), 418) + List list245 = new List(num2); + CollectionsMarshal.SetCount(list245, num2); + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012721u, new Vector3(-162.49341f, 16.979584f, -37.521973f), 418) { StopDistance = 7f }; - obj158.Steps = list246; - reference182 = obj158; - ref QuestSequence reference183 = ref span114[1]; - QuestSequence obj159 = new QuestSequence + obj157.Steps = list245; + reference181 = obj157; + num++; + ref QuestSequence reference182 = ref span244[num]; + QuestSequence obj158 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - Span span115 = CollectionsMarshal.AsSpan(list247); - span115[0] = new QuestStep(EInteractionType.UseItem, null, null, 418) + index2 = 3; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.UseItem, null, null, 418) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span115[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span115[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span246[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span246[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - obj159.Steps = list247; - reference183 = obj159; - ref QuestSequence reference184 = ref span114[2]; - QuestSequence obj160 = new QuestSequence + obj158.Steps = list246; + reference182 = obj158; + num++; + ref QuestSequence reference183 = ref span244[num]; + QuestSequence obj159 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1013154u, new Vector3(-6.881897f, 0f, -3.1281738f), 212) + List list247 = new List(num2); + CollectionsMarshal.SetCount(list247, num2); + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.Interact, 1013154u, new Vector3(-6.881897f, 0f, -3.1281738f), 212) { StopDistance = 7f }; - obj160.Steps = list248; - reference184 = obj160; - ref QuestSequence reference185 = ref span114[3]; - QuestSequence obj161 = new QuestSequence + obj159.Steps = list247; + reference183 = obj159; + num++; + ref QuestSequence reference184 = ref span244[num]; + QuestSequence obj160 = new QuestSequence { Sequence = 3 }; - num2 = 7; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - Span span116 = CollectionsMarshal.AsSpan(list249); - span116[0] = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) + index2 = 7; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) { TargetTerritoryId = (ushort)140 }; - span116[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.1446f, 20.88255f, -376.3636f), 140) + num2++; + span248[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.1446f, 20.88255f, -376.3636f), 140) { Mount = true }; - span116[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.0186f, 13.983504f, -100.87753f), 140) + num2++; + span248[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.0186f, 13.983504f, -100.87753f), 140) { Fly = true }; - span116[3] = new QuestStep(EInteractionType.Interact, 1004019u, new Vector3(-335.9579f, 13.983504f, -99.65674f), 140) + num2++; + span248[num2] = new QuestStep(EInteractionType.Interact, 1004019u, new Vector3(-335.9579f, 13.983504f, -99.65674f), 140) { TargetTerritoryId = (ushort)140 }; - span116[4] = new QuestStep(EInteractionType.Interact, 1002030u, new Vector3(-296.315f, 16.964134f, 334.15735f), 140); - span116[5] = new QuestStep(EInteractionType.Interact, 1002014u, new Vector3(-253.43713f, 33.23899f, 404.04358f), 140); - span116[6] = new QuestStep(EInteractionType.Interact, 1002047u, new Vector3(-223.80408f, 32.90774f, 401.9989f), 140); - obj161.Steps = list249; - reference185 = obj161; - ref QuestSequence reference186 = ref span114[4]; - QuestSequence obj162 = new QuestSequence + num2++; + span248[num2] = new QuestStep(EInteractionType.Interact, 1002030u, new Vector3(-296.315f, 16.964134f, 334.15735f), 140); + num2++; + span248[num2] = new QuestStep(EInteractionType.Interact, 1002014u, new Vector3(-253.43713f, 33.23899f, 404.04358f), 140); + num2++; + span248[num2] = new QuestStep(EInteractionType.Interact, 1002047u, new Vector3(-223.80408f, 32.90774f, 401.9989f), 140); + obj160.Steps = list248; + reference184 = obj160; + num++; + ref QuestSequence reference185 = ref span244[num]; + QuestSequence obj161 = new QuestSequence { Sequence = 4 }; num2 = 2; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - Span span117 = CollectionsMarshal.AsSpan(list250); - span117[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-218.33546f, 35.25f, 432.04767f), 140) + List list249 = new List(num2); + CollectionsMarshal.SetCount(list249, num2); + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-218.33546f, 35.25f, 432.04767f), 140) { Fly = true }; - span117[1] = new QuestStep(EInteractionType.Interact, 1013392u, new Vector3(-207.99579f, 35.249992f, 431.44873f), 140); - obj162.Steps = list250; - reference186 = obj162; - ref QuestSequence reference187 = ref span114[5]; - QuestSequence obj163 = new QuestSequence + index2++; + span249[index2] = new QuestStep(EInteractionType.Interact, 1013392u, new Vector3(-207.99579f, 35.249992f, 431.44873f), 140); + obj161.Steps = list249; + reference185 = obj161; + num++; + ref QuestSequence reference186 = ref span244[num]; + QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012729u, new Vector3(-229.20581f, 33.907307f, 428.4275f), 140); - obj163.Steps = list251; - reference187 = obj163; - questRoot31.QuestSequence = list245; + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span250 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span250[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012729u, new Vector3(-229.20581f, 33.907307f, 428.4275f), 140); + obj162.Steps = list250; + reference186 = obj162; + questRoot31.QuestSequence = list244; AddQuest(questId31, questRoot31); QuestId questId32 = new QuestId(1631); QuestRoot questRoot32 = new QuestRoot(); num = 1; - List list252 = new List(num); - CollectionsMarshal.SetCount(list252, num); - CollectionsMarshal.AsSpan(list252)[0] = "JerryWester"; - questRoot32.Author = list252; - num = 3; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - Span span118 = CollectionsMarshal.AsSpan(list253); - ref QuestSequence reference188 = ref span118[0]; - QuestSequence obj164 = new QuestSequence + List list251 = new List(num); + CollectionsMarshal.SetCount(list251, num); + Span span251 = CollectionsMarshal.AsSpan(list251); + index = 0; + span251[index] = "JerryWester"; + questRoot32.Author = list251; + index = 3; + List list252 = new List(index); + CollectionsMarshal.SetCount(list252, index); + Span span252 = CollectionsMarshal.AsSpan(list252); + num = 0; + ref QuestSequence reference187 = ref span252[num]; + QuestSequence obj163 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012729u, new Vector3(-229.20581f, 33.907307f, 428.4275f), 140); - obj164.Steps = list254; - reference188 = obj164; - ref QuestSequence reference189 = ref span118[1]; - QuestSequence obj165 = new QuestSequence + List list253 = new List(num2); + CollectionsMarshal.SetCount(list253, num2); + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012729u, new Vector3(-229.20581f, 33.907307f, 428.4275f), 140); + obj163.Steps = list253; + reference187 = obj163; + num++; + ref QuestSequence reference188 = ref span252[num]; + QuestSequence obj164 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -102769,114 +123705,136 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahChamberOfRule } }; - obj165.Steps = list255; - reference189 = obj165; - ref QuestSequence reference190 = ref span118[2]; - QuestSequence obj166 = new QuestSequence + obj164.Steps = list254; + reference188 = obj164; + num++; + ref QuestSequence reference189 = ref span252[num]; + QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012731u, new Vector3(-23.91095f, 37.760002f, 78.812744f), 131) + List list255 = new List(num2); + CollectionsMarshal.SetCount(list255, num2); + Span span255 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span255[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012731u, new Vector3(-23.91095f, 37.760002f, 78.812744f), 131) { StopDistance = 5f }; - obj166.Steps = list256; - reference190 = obj166; - questRoot32.QuestSequence = list253; + obj165.Steps = list255; + reference189 = obj165; + questRoot32.QuestSequence = list252; AddQuest(questId32, questRoot32); QuestId questId33 = new QuestId(1632); QuestRoot questRoot33 = new QuestRoot(); num = 1; - List list257 = new List(num); - CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "JerryWester"; - questRoot33.Author = list257; - num = 3; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span119 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference191 = ref span119[0]; - QuestSequence obj167 = new QuestSequence + List list256 = new List(num); + CollectionsMarshal.SetCount(list256, num); + Span span256 = CollectionsMarshal.AsSpan(list256); + index = 0; + span256[index] = "JerryWester"; + questRoot33.Author = list256; + index = 3; + List list257 = new List(index); + CollectionsMarshal.SetCount(list257, index); + Span span257 = CollectionsMarshal.AsSpan(list257); + num = 0; + ref QuestSequence reference190 = ref span257[num]; + QuestSequence obj166 = new QuestSequence { Sequence = 0 }; + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span258[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012731u, new Vector3(-23.91095f, 37.760002f, 78.812744f), 131) + { + StopDistance = 5f + }; + obj166.Steps = list258; + reference190 = obj166; + num++; + ref QuestSequence reference191 = ref span257[num]; + QuestSequence obj167 = new QuestSequence + { + Sequence = 1 + }; num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012731u, new Vector3(-23.91095f, 37.760002f, 78.812744f), 131) - { - StopDistance = 5f - }; - obj167.Steps = list259; - reference191 = obj167; - ref QuestSequence reference192 = ref span119[1]; - QuestSequence obj168 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span259[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - obj168.Steps = list260; - reference192 = obj168; - ref QuestSequence reference193 = ref span119[2]; - QuestSequence obj169 = new QuestSequence + obj167.Steps = list259; + reference191 = obj167; + num++; + ref QuestSequence reference192 = ref span257[num]; + QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012733u, new Vector3(-1.8768921f, 0f, -9.079163f), 351) + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span260[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012733u, new Vector3(-1.8768921f, 0f, -9.079163f), 351) { StopDistance = 5f }; - obj169.Steps = list261; - reference193 = obj169; - questRoot33.QuestSequence = list258; + obj168.Steps = list260; + reference192 = obj168; + questRoot33.QuestSequence = list257; AddQuest(questId33, questRoot33); QuestId questId34 = new QuestId(1633); QuestRoot questRoot34 = new QuestRoot(); num = 1; - List list262 = new List(num); - CollectionsMarshal.SetCount(list262, num); - CollectionsMarshal.AsSpan(list262)[0] = "JerryWester"; - questRoot34.Author = list262; - num = 5; - List list263 = new List(num); - CollectionsMarshal.SetCount(list263, num); - Span span120 = CollectionsMarshal.AsSpan(list263); - ref QuestSequence reference194 = ref span120[0]; - QuestSequence obj170 = new QuestSequence + List list261 = new List(num); + CollectionsMarshal.SetCount(list261, num); + Span span261 = CollectionsMarshal.AsSpan(list261); + index = 0; + span261[index] = "JerryWester"; + questRoot34.Author = list261; + index = 5; + List list262 = new List(index); + CollectionsMarshal.SetCount(list262, index); + Span span262 = CollectionsMarshal.AsSpan(list262); + num = 0; + ref QuestSequence reference193 = ref span262[num]; + QuestSequence obj169 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012733u, new Vector3(-1.8768921f, 0f, -9.079163f), 351) + List list263 = new List(num2); + CollectionsMarshal.SetCount(list263, num2); + Span span263 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span263[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012733u, new Vector3(-1.8768921f, 0f, -9.079163f), 351) { StopDistance = 5f }; - obj170.Steps = list264; - reference194 = obj170; - ref QuestSequence reference195 = ref span120[1]; - QuestSequence obj171 = new QuestSequence + obj169.Steps = list263; + reference193 = obj169; + num++; + ref QuestSequence reference194 = ref span262[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1012717u, new Vector3(-158.80066f, 17.066208f, -56.168518f), 418) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.Interact, 1012717u, new Vector3(-158.80066f, 17.066208f, -56.168518f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -102885,18 +123843,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj171.Steps = list265; - reference195 = obj171; - ref QuestSequence reference196 = ref span120[2]; - QuestSequence obj172 = new QuestSequence + obj170.Steps = list264; + reference194 = obj170; + num++; + ref QuestSequence reference195 = ref span262[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - Span span121 = CollectionsMarshal.AsSpan(list266); - span121[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + List list265 = new List(num2); + CollectionsMarshal.SetCount(list265, num2); + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span265[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -102905,28 +123865,32 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - span121[1] = new QuestStep(EInteractionType.Interact, 1012744u, new Vector3(-2.3041382f, -9.313226E-10f, 5.9052124f), 433) + index2++; + span265[index2] = new QuestStep(EInteractionType.Interact, 1012744u, new Vector3(-2.3041382f, -9.313226E-10f, 5.9052124f), 433) { StopDistance = 5f }; - obj172.Steps = list266; - reference196 = obj172; - ref QuestSequence reference197 = ref span120[3]; - QuestSequence obj173 = new QuestSequence + obj171.Steps = list265; + reference195 = obj171; + num++; + ref QuestSequence reference196 = ref span262[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span122 = CollectionsMarshal.AsSpan(list267); - span122[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) + index2 = 2; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + Span span266 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span266[num2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) { StopDistance = 4f, TargetTerritoryId = (ushort)419 }; - ref QuestStep reference198 = ref span122[1]; - QuestStep obj174 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) + num2++; + ref QuestStep reference197 = ref span266[num2]; + QuestStep obj173 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut { @@ -102935,61 +123899,74 @@ public static class AssemblyQuestLoader } }; num3 = 1; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = new DialogueChoice + List list267 = new List(num3); + CollectionsMarshal.SetCount(list267, num3); + Span span267 = CollectionsMarshal.AsSpan(list267); + index3 = 0; + span267[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA332_01633_Q1_000_000") }; - obj174.DialogueChoices = list268; - reference198 = obj174; - obj173.Steps = list267; + obj173.DialogueChoices = list267; reference197 = obj173; - ref QuestSequence reference199 = ref span120[4]; - QuestSequence obj175 = new QuestSequence + obj172.Steps = list266; + reference196 = obj172; + num++; + ref QuestSequence reference198 = ref span262[num]; + QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012589u, new Vector3(107.46924f, 24.37563f, -8.407776f), 418); - obj175.Steps = list269; - reference199 = obj175; - questRoot34.QuestSequence = list263; + List list268 = new List(num2); + CollectionsMarshal.SetCount(list268, num2); + Span span268 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span268[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012589u, new Vector3(107.46924f, 24.37563f, -8.407776f), 418); + obj174.Steps = list268; + reference198 = obj174; + questRoot34.QuestSequence = list262; AddQuest(questId34, questRoot34); QuestId questId35 = new QuestId(1634); QuestRoot questRoot35 = new QuestRoot(); num = 1; - List list270 = new List(num); - CollectionsMarshal.SetCount(list270, num); - CollectionsMarshal.AsSpan(list270)[0] = "JerryWester"; - questRoot35.Author = list270; - num = 5; - List list271 = new List(num); - CollectionsMarshal.SetCount(list271, num); - Span span123 = CollectionsMarshal.AsSpan(list271); - ref QuestSequence reference200 = ref span123[0]; - QuestSequence obj176 = new QuestSequence + List list269 = new List(num); + CollectionsMarshal.SetCount(list269, num); + Span span269 = CollectionsMarshal.AsSpan(list269); + index = 0; + span269[index] = "JerryWester"; + questRoot35.Author = list269; + index = 5; + List list270 = new List(index); + CollectionsMarshal.SetCount(list270, index); + Span span270 = CollectionsMarshal.AsSpan(list270); + num = 0; + ref QuestSequence reference199 = ref span270[num]; + QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012589u, new Vector3(107.46924f, 24.37563f, -8.407776f), 418); - obj176.Steps = list272; - reference200 = obj176; - ref QuestSequence reference201 = ref span123[1]; - QuestSequence obj177 = new QuestSequence + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012589u, new Vector3(107.46924f, 24.37563f, -8.407776f), 418); + obj175.Steps = list271; + reference199 = obj175; + num++; + ref QuestSequence reference200 = ref span270[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 1013168u, new Vector3(-187.18243f, 15.9939995f, -47.68445f), 418) + List list272 = new List(num2); + CollectionsMarshal.SetCount(list272, num2); + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.Interact, 1013168u, new Vector3(-187.18243f, 15.9939995f, -47.68445f), 418) { AethernetShortcut = new AethernetShortcut { @@ -102997,17 +123974,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj177.Steps = list273; - reference201 = obj177; - ref QuestSequence reference202 = ref span123[2]; - QuestSequence obj178 = new QuestSequence + obj176.Steps = list272; + reference200 = obj176; + num++; + ref QuestSequence reference201 = ref span270[num]; + QuestSequence obj177 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Duty, null, null, 418) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span273[num2] = new QuestStep(EInteractionType.Duty, null, null, 418) { DutyOptions = new DutyOptions { @@ -103015,158 +123995,188 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 39u } }; - obj178.Steps = list274; - reference202 = obj178; - span123[3] = new QuestSequence + obj177.Steps = list273; + reference201 = obj177; + num++; + span270[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference203 = ref span123[4]; - QuestSequence obj179 = new QuestSequence + num++; + ref QuestSequence reference202 = ref span270[num]; + QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012746u, new Vector3(550.4386f, -1.1916885f, -354.94012f), 400) + List list274 = new List(num2); + CollectionsMarshal.SetCount(list274, num2); + Span span274 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span274[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012746u, new Vector3(550.4386f, -1.1916885f, -354.94012f), 400) { StopDistance = 7f }; - obj179.Steps = list275; - reference203 = obj179; - questRoot35.QuestSequence = list271; + obj178.Steps = list274; + reference202 = obj178; + questRoot35.QuestSequence = list270; AddQuest(questId35, questRoot35); QuestId questId36 = new QuestId(1635); QuestRoot questRoot36 = new QuestRoot(); num = 1; - List list276 = new List(num); - CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "JerryWester"; - questRoot36.Author = list276; - num = 2; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span124 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference204 = ref span124[0]; - QuestSequence obj180 = new QuestSequence + List list275 = new List(num); + CollectionsMarshal.SetCount(list275, num); + Span span275 = CollectionsMarshal.AsSpan(list275); + index = 0; + span275[index] = "JerryWester"; + questRoot36.Author = list275; + index = 2; + List list276 = new List(index); + CollectionsMarshal.SetCount(list276, index); + Span span276 = CollectionsMarshal.AsSpan(list276); + num = 0; + ref QuestSequence reference203 = ref span276[num]; + QuestSequence obj179 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012746u, new Vector3(550.4386f, -1.1916885f, -354.94012f), 400) + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span277[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012746u, new Vector3(550.4386f, -1.1916885f, -354.94012f), 400) { StopDistance = 7f }; - obj180.Steps = list278; - reference204 = obj180; - ref QuestSequence reference205 = ref span124[1]; - QuestSequence obj181 = new QuestSequence + obj179.Steps = list277; + reference203 = obj179; + num++; + ref QuestSequence reference204 = ref span276[num]; + QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - Span span125 = CollectionsMarshal.AsSpan(list279); - ref QuestStep reference206 = ref span125[0]; - QuestStep obj182 = new QuestStep(EInteractionType.AcceptQuest, 1013420u, new Vector3(-511.46716f, 50f, 347.0968f), 400) + List list278 = new List(num2); + CollectionsMarshal.SetCount(list278, num2); + Span span278 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + ref QuestStep reference205 = ref span278[index2]; + QuestStep obj181 = new QuestStep(EInteractionType.AcceptQuest, 1013420u, new Vector3(-511.46716f, 50f, 347.0968f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; - SkipConditions skipConditions5 = new SkipConditions(); + SkipConditions skipConditions4 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - num3 = 1; - List list280 = new List(num3); - CollectionsMarshal.SetCount(list280, num3); - CollectionsMarshal.AsSpan(list280)[0] = new QuestId(1828); - skipAetheryteCondition4.QuestsCompleted = list280; - skipConditions5.AetheryteShortcutIf = skipAetheryteCondition4; - obj182.SkipConditions = skipConditions5; - obj182.PickUpQuestId = new QuestId(1828); - reference206 = obj182; - span125[1] = new QuestStep(EInteractionType.CompleteQuest, 1013172u, new Vector3(-756.0998f, 123.72873f, 214.80127f), 400) + index3 = 1; + List list279 = new List(index3); + CollectionsMarshal.SetCount(list279, index3); + Span span279 = CollectionsMarshal.AsSpan(list279); + num3 = 0; + span279[num3] = new QuestId(1828); + skipAetheryteCondition4.QuestsCompleted = list279; + skipConditions4.AetheryteShortcutIf = skipAetheryteCondition4; + obj181.SkipConditions = skipConditions4; + obj181.PickUpQuestId = new QuestId(1828); + reference205 = obj181; + index2++; + span278[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013172u, new Vector3(-756.0998f, 123.72873f, 214.80127f), 400) { Fly = true }; - obj181.Steps = list279; - reference205 = obj181; - questRoot36.QuestSequence = list277; + obj180.Steps = list278; + reference204 = obj180; + questRoot36.QuestSequence = list276; AddQuest(questId36, questRoot36); QuestId questId37 = new QuestId(1636); QuestRoot questRoot37 = new QuestRoot(); num = 1; - List list281 = new List(num); - CollectionsMarshal.SetCount(list281, num); - CollectionsMarshal.AsSpan(list281)[0] = "JerryWester"; - questRoot37.Author = list281; - num = 2; - List list282 = new List(num); - CollectionsMarshal.SetCount(list282, num); - Span span126 = CollectionsMarshal.AsSpan(list282); - ref QuestSequence reference207 = ref span126[0]; - QuestSequence obj183 = new QuestSequence + List list280 = new List(num); + CollectionsMarshal.SetCount(list280, num); + Span span280 = CollectionsMarshal.AsSpan(list280); + index = 0; + span280[index] = "JerryWester"; + questRoot37.Author = list280; + index = 2; + List list281 = new List(index); + CollectionsMarshal.SetCount(list281, index); + Span span281 = CollectionsMarshal.AsSpan(list281); + num = 0; + ref QuestSequence reference206 = ref span281[num]; + QuestSequence obj182 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014110u, new Vector3(-753.7194f, 123.572525f, 212.57336f), 400); - obj183.Steps = list283; - reference207 = obj183; - ref QuestSequence reference208 = ref span126[1]; - QuestSequence obj184 = new QuestSequence + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + Span span282 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span282[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014110u, new Vector3(-753.7194f, 123.572525f, 212.57336f), 400); + obj182.Steps = list282; + reference206 = obj182; + num++; + ref QuestSequence reference207 = ref span281[num]; + QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012750u, new Vector3(-163.89722f, 27.979128f, -116.41113f), 418) + List list283 = new List(num2); + CollectionsMarshal.SetCount(list283, num2); + Span span283 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span283[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012750u, new Vector3(-163.89722f, 27.979128f, -116.41113f), 418) { StopDistance = 7f }; - obj184.Steps = list284; - reference208 = obj184; - questRoot37.QuestSequence = list282; + obj183.Steps = list283; + reference207 = obj183; + questRoot37.QuestSequence = list281; AddQuest(questId37, questRoot37); QuestId questId38 = new QuestId(1637); QuestRoot questRoot38 = new QuestRoot(); num = 1; - List list285 = new List(num); - CollectionsMarshal.SetCount(list285, num); - CollectionsMarshal.AsSpan(list285)[0] = "JerryWester"; - questRoot38.Author = list285; - num = 3; - List list286 = new List(num); - CollectionsMarshal.SetCount(list286, num); - Span span127 = CollectionsMarshal.AsSpan(list286); - ref QuestSequence reference209 = ref span127[0]; - QuestSequence obj185 = new QuestSequence + List list284 = new List(num); + CollectionsMarshal.SetCount(list284, num); + Span span284 = CollectionsMarshal.AsSpan(list284); + index = 0; + span284[index] = "JerryWester"; + questRoot38.Author = list284; + index = 3; + List list285 = new List(index); + CollectionsMarshal.SetCount(list285, index); + Span span285 = CollectionsMarshal.AsSpan(list285); + num = 0; + ref QuestSequence reference208 = ref span285[num]; + QuestSequence obj184 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012750u, new Vector3(-163.89722f, 27.979128f, -116.41113f), 418) + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + Span span286 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span286[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012750u, new Vector3(-163.89722f, 27.979128f, -116.41113f), 418) { StopDistance = 7f }; - obj185.Steps = list287; - reference209 = obj185; - ref QuestSequence reference210 = ref span127[1]; - QuestSequence obj186 = new QuestSequence + obj184.Steps = list286; + reference208 = obj184; + num++; + ref QuestSequence reference209 = ref span285[num]; + QuestSequence obj185 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + List list287 = new List(num2); + CollectionsMarshal.SetCount(list287, num2); + Span span287 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + span287[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -103175,58 +124185,69 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - obj186.Steps = list288; - reference210 = obj186; - ref QuestSequence reference211 = ref span127[2]; - QuestSequence obj187 = new QuestSequence + obj185.Steps = list287; + reference209 = obj185; + num++; + ref QuestSequence reference210 = ref span285[num]; + QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012753u, new Vector3(2.5787354f, -9.313226E-10f, 7.6447144f), 433) + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + Span span288 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span288[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012753u, new Vector3(2.5787354f, -9.313226E-10f, 7.6447144f), 433) { StopDistance = 5f }; - obj187.Steps = list289; - reference211 = obj187; - questRoot38.QuestSequence = list286; + obj186.Steps = list288; + reference210 = obj186; + questRoot38.QuestSequence = list285; AddQuest(questId38, questRoot38); QuestId questId39 = new QuestId(1638); QuestRoot questRoot39 = new QuestRoot(); num = 1; - List list290 = new List(num); - CollectionsMarshal.SetCount(list290, num); - CollectionsMarshal.AsSpan(list290)[0] = "JerryWester"; - questRoot39.Author = list290; - num = 4; - List list291 = new List(num); - CollectionsMarshal.SetCount(list291, num); - Span span128 = CollectionsMarshal.AsSpan(list291); - ref QuestSequence reference212 = ref span128[0]; - QuestSequence obj188 = new QuestSequence + List list289 = new List(num); + CollectionsMarshal.SetCount(list289, num); + Span span289 = CollectionsMarshal.AsSpan(list289); + index = 0; + span289[index] = "JerryWester"; + questRoot39.Author = list289; + index = 4; + List list290 = new List(index); + CollectionsMarshal.SetCount(list290, index); + Span span290 = CollectionsMarshal.AsSpan(list290); + num = 0; + ref QuestSequence reference211 = ref span290[num]; + QuestSequence obj187 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012751u, new Vector3(-2.02948f, -9.313226E-10f, 6.362976f), 433) + List list291 = new List(num2); + CollectionsMarshal.SetCount(list291, num2); + Span span291 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span291[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012751u, new Vector3(-2.02948f, -9.313226E-10f, 6.362976f), 433) { StopDistance = 7f }; - obj188.Steps = list292; - reference212 = obj188; - ref QuestSequence reference213 = ref span128[1]; - QuestSequence obj189 = new QuestSequence + obj187.Steps = list291; + reference211 = obj187; + num++; + ref QuestSequence reference212 = ref span290[num]; + QuestSequence obj188 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1013381u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418) + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + Span span292 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span292[num2] = new QuestStep(EInteractionType.Interact, 1013381u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418) { AethernetShortcut = new AethernetShortcut { @@ -103234,213 +124255,269 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - obj189.Steps = list293; - reference213 = obj189; - ref QuestSequence reference214 = ref span128[2]; - QuestSequence obj190 = new QuestSequence + obj188.Steps = list292; + reference212 = obj188; + num++; + ref QuestSequence reference213 = ref span290[num]; + QuestSequence obj189 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - Span span129 = CollectionsMarshal.AsSpan(list294); - ref QuestStep reference215 = ref span129[0]; + List list293 = new List(num2); + CollectionsMarshal.SetCount(list293, num2); + Span span293 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + ref QuestStep reference214 = ref span293[index2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1013342u, new Vector3(36.331665f, -12.020876f, 76.58496f), 418); num3 = 6; - List list295 = new List(num3); - CollectionsMarshal.SetCount(list295, num3); - Span span130 = CollectionsMarshal.AsSpan(list295); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep26.CompletionQuestVariablesFlags = list295; - reference215 = questStep26; - ref QuestStep reference216 = ref span129[1]; + List list294 = new List(num3); + CollectionsMarshal.SetCount(list294, num3); + Span span294 = CollectionsMarshal.AsSpan(list294); + index3 = 0; + span294[index3] = null; + index3++; + span294[index3] = null; + index3++; + span294[index3] = null; + index3++; + span294[index3] = null; + index3++; + span294[index3] = null; + index3++; + span294[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep26.CompletionQuestVariablesFlags = list294; + reference214 = questStep26; + index2++; + ref QuestStep reference215 = ref span293[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1013341u, new Vector3(65.72058f, -12.008911f, 78.3551f), 418); + index3 = 6; + List list295 = new List(index3); + CollectionsMarshal.SetCount(list295, index3); + Span span295 = CollectionsMarshal.AsSpan(list295); + num3 = 0; + span295[num3] = null; + num3++; + span295[num3] = null; + num3++; + span295[num3] = null; + num3++; + span295[num3] = null; + num3++; + span295[num3] = null; + num3++; + span295[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep27.CompletionQuestVariablesFlags = list295; + reference215 = questStep27; + index2++; + ref QuestStep reference216 = ref span293[index2]; + QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1013340u, new Vector3(144.57922f, -20.020874f, 54.276245f), 418); num3 = 6; List list296 = new List(num3); CollectionsMarshal.SetCount(list296, num3); - Span span131 = CollectionsMarshal.AsSpan(list296); - span131[0] = null; - span131[1] = null; - span131[2] = null; - span131[3] = null; - span131[4] = null; - span131[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep27.CompletionQuestVariablesFlags = list296; - reference216 = questStep27; - ref QuestStep reference217 = ref span129[2]; - QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1013340u, new Vector3(144.57922f, -20.020874f, 54.276245f), 418); - num3 = 6; - List list297 = new List(num3); - CollectionsMarshal.SetCount(list297, num3); - Span span132 = CollectionsMarshal.AsSpan(list297); - span132[0] = null; - span132[1] = null; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep28.CompletionQuestVariablesFlags = list297; - reference217 = questStep28; - obj190.Steps = list294; - reference214 = obj190; - ref QuestSequence reference218 = ref span128[3]; - QuestSequence obj191 = new QuestSequence + Span span296 = CollectionsMarshal.AsSpan(list296); + index3 = 0; + span296[index3] = null; + index3++; + span296[index3] = null; + index3++; + span296[index3] = null; + index3++; + span296[index3] = null; + index3++; + span296[index3] = null; + index3++; + span296[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep28.CompletionQuestVariablesFlags = list296; + reference216 = questStep28; + obj189.Steps = list293; + reference213 = obj189; + num++; + ref QuestSequence reference217 = ref span290[num]; + QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013332u, new Vector3(94.95691f, -22.000006f, 50.94983f), 418); - obj191.Steps = list298; - reference218 = obj191; - questRoot39.QuestSequence = list291; + index2 = 1; + List list297 = new List(index2); + CollectionsMarshal.SetCount(list297, index2); + Span span297 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + span297[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013332u, new Vector3(94.95691f, -22.000006f, 50.94983f), 418); + obj190.Steps = list297; + reference217 = obj190; + questRoot39.QuestSequence = list290; AddQuest(questId39, questRoot39); QuestId questId40 = new QuestId(1639); QuestRoot questRoot40 = new QuestRoot(); num = 1; - List list299 = new List(num); - CollectionsMarshal.SetCount(list299, num); - CollectionsMarshal.AsSpan(list299)[0] = "JerryWester"; - questRoot40.Author = list299; - num = 6; - List list300 = new List(num); - CollectionsMarshal.SetCount(list300, num); - Span span133 = CollectionsMarshal.AsSpan(list300); - ref QuestSequence reference219 = ref span133[0]; - QuestSequence obj192 = new QuestSequence + List list298 = new List(num); + CollectionsMarshal.SetCount(list298, num); + Span span298 = CollectionsMarshal.AsSpan(list298); + index = 0; + span298[index] = "JerryWester"; + questRoot40.Author = list298; + index = 6; + List list299 = new List(index); + CollectionsMarshal.SetCount(list299, index); + Span span299 = CollectionsMarshal.AsSpan(list299); + num = 0; + ref QuestSequence reference218 = ref span299[num]; + QuestSequence obj191 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013260u, new Vector3(104.38696f, 15.000005f, 25.558838f), 418); - obj192.Steps = list301; - reference219 = obj192; - ref QuestSequence reference220 = ref span133[1]; - QuestSequence obj193 = new QuestSequence + List list300 = new List(num2); + CollectionsMarshal.SetCount(list300, num2); + Span span300 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span300[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013260u, new Vector3(104.38696f, 15.000005f, 25.558838f), 418); + obj191.Steps = list300; + reference218 = obj191; + num++; + ref QuestSequence reference219 = ref span299[num]; + QuestSequence obj192 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 2005551u, new Vector3(38.254395f, -6.820801f, 76.34082f), 418); - obj193.Steps = list302; - reference220 = obj193; - ref QuestSequence reference221 = ref span133[2]; - QuestSequence obj194 = new QuestSequence + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + Span span301 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span301[num2] = new QuestStep(EInteractionType.Interact, 2005551u, new Vector3(38.254395f, -6.820801f, 76.34082f), 418); + obj192.Steps = list301; + reference219 = obj192; + num++; + ref QuestSequence reference220 = ref span299[num]; + QuestSequence obj193 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.Interact, 2005550u, new Vector3(84.58069f, -6.9733887f, 81.55945f), 418); - obj194.Steps = list303; - reference221 = obj194; - ref QuestSequence reference222 = ref span133[3]; - QuestSequence obj195 = new QuestSequence + List list302 = new List(num2); + CollectionsMarshal.SetCount(list302, num2); + Span span302 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span302[index2] = new QuestStep(EInteractionType.Interact, 2005550u, new Vector3(84.58069f, -6.9733887f, 81.55945f), 418); + obj193.Steps = list302; + reference220 = obj193; + num++; + ref QuestSequence reference221 = ref span299[num]; + QuestSequence obj194 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.Interact, 1012768u, new Vector3(21.10321f, -12.020914f, 48.41687f), 418) + index2 = 1; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + Span span303 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span303[num2] = new QuestStep(EInteractionType.Interact, 1012768u, new Vector3(21.10321f, -12.020914f, 48.41687f), 418) { StopDistance = 7f }; - obj195.Steps = list304; - reference222 = obj195; - ref QuestSequence reference223 = ref span133[4]; - QuestSequence obj196 = new QuestSequence + obj194.Steps = list303; + reference221 = obj194; + num++; + ref QuestSequence reference222 = ref span299[num]; + QuestSequence obj195 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012773u, new Vector3(92.5459f, 15.00001f, 37.247192f), 418) + List list304 = new List(num2); + CollectionsMarshal.SetCount(list304, num2); + Span span304 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span304[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012773u, new Vector3(92.5459f, 15.00001f, 37.247192f), 418) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { Enabled = true } }; - obj196.Steps = list305; - reference223 = obj196; - ref QuestSequence reference224 = ref span133[5]; - QuestSequence obj197 = new QuestSequence + obj195.Steps = list304; + reference222 = obj195; + num++; + ref QuestSequence reference223 = ref span299[num]; + QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012780u, new Vector3(86.38135f, 23.979128f, 12.802246f), 418) + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + Span span305 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span305[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012780u, new Vector3(86.38135f, 23.979128f, 12.802246f), 418) { StopDistance = 5f }; - obj197.Steps = list306; - reference224 = obj197; - questRoot40.QuestSequence = list300; + obj196.Steps = list305; + reference223 = obj196; + questRoot40.QuestSequence = list299; AddQuest(questId40, questRoot40); QuestId questId41 = new QuestId(1640); QuestRoot questRoot41 = new QuestRoot(); num = 1; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - CollectionsMarshal.AsSpan(list307)[0] = "JerryWester"; - questRoot41.Author = list307; - num = 8; - List list308 = new List(num); - CollectionsMarshal.SetCount(list308, num); - Span span134 = CollectionsMarshal.AsSpan(list308); - ref QuestSequence reference225 = ref span134[0]; - QuestSequence obj198 = new QuestSequence + List list306 = new List(num); + CollectionsMarshal.SetCount(list306, num); + Span span306 = CollectionsMarshal.AsSpan(list306); + index = 0; + span306[index] = "JerryWester"; + questRoot41.Author = list306; + index = 8; + List list307 = new List(index); + CollectionsMarshal.SetCount(list307, index); + Span span307 = CollectionsMarshal.AsSpan(list307); + num = 0; + ref QuestSequence reference224 = ref span307[num]; + QuestSequence obj197 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012780u, new Vector3(86.38135f, 23.979128f, 12.802246f), 418) + List list308 = new List(num2); + CollectionsMarshal.SetCount(list308, num2); + Span span308 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span308[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012780u, new Vector3(86.38135f, 23.979128f, 12.802246f), 418) + { + StopDistance = 5f + }; + obj197.Steps = list308; + reference224 = obj197; + num++; + ref QuestSequence reference225 = ref span307[num]; + QuestSequence obj198 = new QuestSequence + { + Sequence = 1 + }; + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + Span span309 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span309[num2] = new QuestStep(EInteractionType.Interact, 1012778u, new Vector3(84.58069f, 23.979126f, 10.452393f), 418) { StopDistance = 5f }; obj198.Steps = list309; reference225 = obj198; - ref QuestSequence reference226 = ref span134[1]; + num++; + ref QuestSequence reference226 = ref span307[num]; QuestSequence obj199 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1012778u, new Vector3(84.58069f, 23.979126f, 10.452393f), 418) - { - StopDistance = 5f - }; - obj199.Steps = list310; - reference226 = obj199; - ref QuestSequence reference227 = ref span134[2]; - QuestSequence obj200 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Interact, 1012212u, new Vector3(-6.790344f, 42.34489f, -207.04968f), 419) + List list310 = new List(num2); + CollectionsMarshal.SetCount(list310, num2); + Span span310 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span310[index2] = new QuestStep(EInteractionType.Interact, 1012212u, new Vector3(-6.790344f, 42.34489f, -207.04968f), 419) { AethernetShortcut = new AethernetShortcut { @@ -103448,17 +124525,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardTribunal } }; - obj200.Steps = list311; - reference227 = obj200; - ref QuestSequence reference228 = ref span134[3]; - QuestSequence obj201 = new QuestSequence + obj199.Steps = list310; + reference226 = obj199; + num++; + ref QuestSequence reference227 = ref span307[num]; + QuestSequence obj200 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Duty, null, null, 419) + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + Span span311 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span311[num2] = new QuestStep(EInteractionType.Duty, null, null, 419) { DutyOptions = new DutyOptions { @@ -103466,97 +124546,115 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 34u } }; - obj201.Steps = list312; - reference228 = obj201; - span134[4] = new QuestSequence + obj200.Steps = list311; + reference227 = obj200; + num++; + span307[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference229 = ref span134[5]; - QuestSequence obj202 = new QuestSequence + num++; + ref QuestSequence reference228 = ref span307[num]; + QuestSequence obj201 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1012212u, new Vector3(-6.790344f, 42.34489f, -207.04968f), 419) + List list312 = new List(num2); + CollectionsMarshal.SetCount(list312, num2); + Span span312 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + span312[index2] = new QuestStep(EInteractionType.Interact, 1012212u, new Vector3(-6.790344f, 42.34489f, -207.04968f), 419) { StopDistance = 7f }; - obj202.Steps = list313; - reference229 = obj202; - ref QuestSequence reference230 = ref span134[6]; - QuestSequence obj203 = new QuestSequence + obj201.Steps = list312; + reference228 = obj201; + num++; + ref QuestSequence reference229 = ref span307[num]; + QuestSequence obj202 = new QuestSequence { Sequence = 6 }; + index2 = 1; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + Span span313 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span313[num2] = new QuestStep(EInteractionType.Interact, 1013101u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + { + TargetTerritoryId = (ushort)433 + }; + obj202.Steps = list313; + reference229 = obj202; + num++; + ref QuestSequence reference230 = ref span307[num]; + QuestSequence obj203 = new QuestSequence + { + Sequence = byte.MaxValue + }; num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 1013101u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) - { - TargetTerritoryId = (ushort)433 - }; - obj203.Steps = list314; - reference230 = obj203; - ref QuestSequence reference231 = ref span134[7]; - QuestSequence obj204 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013227u, new Vector3(14.877502f, 16.009666f, -4.196289f), 419) + Span span314 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span314[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013227u, new Vector3(14.877502f, 16.009666f, -4.196289f), 419) { StopDistance = 5f }; - obj204.Steps = list315; - reference231 = obj204; - questRoot41.QuestSequence = list308; + obj203.Steps = list314; + reference230 = obj203; + questRoot41.QuestSequence = list307; AddQuest(questId41, questRoot41); QuestId questId42 = new QuestId(1641); QuestRoot questRoot42 = new QuestRoot(); num = 1; - List list316 = new List(num); - CollectionsMarshal.SetCount(list316, num); - CollectionsMarshal.AsSpan(list316)[0] = "JerryWester"; - questRoot42.Author = list316; - num = 2; - List list317 = new List(num); - CollectionsMarshal.SetCount(list317, num); - Span span135 = CollectionsMarshal.AsSpan(list317); - ref QuestSequence reference232 = ref span135[0]; - QuestSequence obj205 = new QuestSequence + List list315 = new List(num); + CollectionsMarshal.SetCount(list315, num); + Span span315 = CollectionsMarshal.AsSpan(list315); + index = 0; + span315[index] = "JerryWester"; + questRoot42.Author = list315; + index = 2; + List list316 = new List(index); + CollectionsMarshal.SetCount(list316, index); + Span span316 = CollectionsMarshal.AsSpan(list316); + num = 0; + ref QuestSequence reference231 = ref span316[num]; + QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list318 = new List(num2); - CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013227u, new Vector3(14.877502f, 16.009666f, -4.196289f), 419) + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + Span span317 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span317[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013227u, new Vector3(14.877502f, 16.009666f, -4.196289f), 419) { StopDistance = 5f }; - obj205.Steps = list318; - reference232 = obj205; - ref QuestSequence reference233 = ref span135[1]; - QuestSequence obj206 = new QuestSequence + obj204.Steps = list317; + reference231 = obj204; + num++; + ref QuestSequence reference232 = ref span316[num]; + QuestSequence obj205 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - Span span136 = CollectionsMarshal.AsSpan(list319); - span136[0] = new QuestStep(EInteractionType.AcceptQuest, 1014720u, new Vector3(13.809326f, 15.96505f, -13.870483f), 419) + List list318 = new List(num2); + CollectionsMarshal.SetCount(list318, num2); + Span span318 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span318[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014720u, new Vector3(13.809326f, 15.96505f, -13.870483f), 419) { StopDistance = 7f, PickUpQuestId = new QuestId(1874) }; - ref QuestStep reference234 = ref span136[1]; - QuestStep obj207 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) + index2++; + ref QuestStep reference233 = ref span318[index2]; + QuestStep obj206 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -103565,67 +124663,80 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num3 = 1; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - CollectionsMarshal.AsSpan(list320)[0] = new DialogueChoice + index3 = 1; + List list319 = new List(index3); + CollectionsMarshal.SetCount(list319, index3); + Span span319 = CollectionsMarshal.AsSpan(list319); + num3 = 0; + span319[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA405_01641_SCENE00020_EVENTAREA_WARP_YESNO_TITLE") }; - obj207.DialogueChoices = list320; - reference234 = obj207; - ref QuestStep reference235 = ref span136[2]; + obj206.DialogueChoices = list319; + reference233 = obj206; + index2++; + ref QuestStep reference234 = ref span318[index2]; QuestStep questStep29 = new QuestStep(EInteractionType.CompleteQuest, 1013183u, new Vector3(-0.015319824f, 0.019999694f, -6.302063f), 428); num3 = 1; - List list321 = new List(num3); - CollectionsMarshal.SetCount(list321, num3); - CollectionsMarshal.AsSpan(list321)[0] = new DialogueChoice + List list320 = new List(num3); + CollectionsMarshal.SetCount(list320, num3); + Span span320 = CollectionsMarshal.AsSpan(list320); + index3 = 0; + span320[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA405_01641_Q1_000_000"), Answer = new ExcelRef("TEXT_HEAVNA405_01641_A1_000_001") }; - questStep29.DialogueChoices = list321; - reference235 = questStep29; - obj206.Steps = list319; - reference233 = obj206; - questRoot42.QuestSequence = list317; + questStep29.DialogueChoices = list320; + reference234 = questStep29; + obj205.Steps = list318; + reference232 = obj205; + questRoot42.QuestSequence = list316; AddQuest(questId42, questRoot42); QuestId questId43 = new QuestId(1642); QuestRoot questRoot43 = new QuestRoot(); num = 1; - List list322 = new List(num); - CollectionsMarshal.SetCount(list322, num); - CollectionsMarshal.AsSpan(list322)[0] = "JerryWester"; - questRoot43.Author = list322; - num = 2; - List list323 = new List(num); - CollectionsMarshal.SetCount(list323, num); - Span span137 = CollectionsMarshal.AsSpan(list323); - ref QuestSequence reference236 = ref span137[0]; - QuestSequence obj208 = new QuestSequence + List list321 = new List(num); + CollectionsMarshal.SetCount(list321, num); + Span span321 = CollectionsMarshal.AsSpan(list321); + index = 0; + span321[index] = "JerryWester"; + questRoot43.Author = list321; + index = 2; + List list322 = new List(index); + CollectionsMarshal.SetCount(list322, index); + Span span322 = CollectionsMarshal.AsSpan(list322); + num = 0; + ref QuestSequence reference235 = ref span322[num]; + QuestSequence obj207 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013384u, new Vector3(112.291016f, 24.390423f, -4.4709473f), 418) + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + Span span323 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span323[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013384u, new Vector3(112.291016f, 24.390423f, -4.4709473f), 418) { StopDistance = 7f }; - obj208.Steps = list324; - reference236 = obj208; - ref QuestSequence reference237 = ref span137[1]; - QuestSequence obj209 = new QuestSequence + obj207.Steps = list323; + reference235 = obj207; + num++; + ref QuestSequence reference236 = ref span322[num]; + QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013261u, new Vector3(-158.49548f, 17.066208f, -56.26001f), 418) + List list324 = new List(num2); + CollectionsMarshal.SetCount(list324, num2); + Span span324 = CollectionsMarshal.AsSpan(list324); + index2 = 0; + span324[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013261u, new Vector3(-158.49548f, 17.066208f, -56.26001f), 418) { AethernetShortcut = new AethernetShortcut { @@ -103633,41 +124744,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj209.Steps = list325; - reference237 = obj209; - questRoot43.QuestSequence = list323; + obj208.Steps = list324; + reference236 = obj208; + questRoot43.QuestSequence = list322; AddQuest(questId43, questRoot43); QuestId questId44 = new QuestId(1643); QuestRoot questRoot44 = new QuestRoot(); num = 1; - List list326 = new List(num); - CollectionsMarshal.SetCount(list326, num); - CollectionsMarshal.AsSpan(list326)[0] = "JerryWester"; - questRoot44.Author = list326; - num = 5; - List list327 = new List(num); - CollectionsMarshal.SetCount(list327, num); - Span span138 = CollectionsMarshal.AsSpan(list327); - ref QuestSequence reference238 = ref span138[0]; - QuestSequence obj210 = new QuestSequence + List list325 = new List(num); + CollectionsMarshal.SetCount(list325, num); + Span span325 = CollectionsMarshal.AsSpan(list325); + index = 0; + span325[index] = "JerryWester"; + questRoot44.Author = list325; + index = 5; + List list326 = new List(index); + CollectionsMarshal.SetCount(list326, index); + Span span326 = CollectionsMarshal.AsSpan(list326); + num = 0; + ref QuestSequence reference237 = ref span326[num]; + QuestSequence obj209 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013385u, new Vector3(-158.37347f, 17f, -54.276367f), 418); - obj210.Steps = list328; - reference238 = obj210; - ref QuestSequence reference239 = ref span138[1]; - QuestSequence obj211 = new QuestSequence + index2 = 1; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + Span span327 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span327[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013385u, new Vector3(-158.37347f, 17f, -54.276367f), 418); + obj209.Steps = list327; + reference237 = obj209; + num++; + ref QuestSequence reference238 = ref span326[num]; + QuestSequence obj210 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 1013077u, new Vector3(147.53943f, -12.634913f, -26.199768f), 419) + List list328 = new List(num2); + CollectionsMarshal.SetCount(list328, num2); + Span span328 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + span328[index2] = new QuestStep(EInteractionType.Interact, 1013077u, new Vector3(147.53943f, -12.634913f, -26.199768f), 419) { AethernetShortcut = new AethernetShortcut { @@ -103675,98 +124794,118 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardAthenaeumAstrologicum } }; - obj211.Steps = list329; - reference239 = obj211; - ref QuestSequence reference240 = ref span138[2]; - QuestSequence obj212 = new QuestSequence + obj210.Steps = list328; + reference238 = obj210; + num++; + ref QuestSequence reference239 = ref span326[num]; + QuestSequence obj211 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - ref QuestStep reference241 = ref CollectionsMarshal.AsSpan(list330)[0]; + index2 = 1; + List list329 = new List(index2); + CollectionsMarshal.SetCount(list329, index2); + Span span329 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + ref QuestStep reference240 = ref span329[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1013125u, new Vector3(148.60754f, -12.634913f, -13.443237f), 419); - num3 = 1; - List list331 = new List(num3); - CollectionsMarshal.SetCount(list331, num3); - CollectionsMarshal.AsSpan(list331)[0] = new DialogueChoice + index3 = 1; + List list330 = new List(index3); + CollectionsMarshal.SetCount(list330, index3); + Span span330 = CollectionsMarshal.AsSpan(list330); + num3 = 0; + span330[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA502_01643_Q1_000_000") }; - questStep30.DialogueChoices = list331; - reference241 = questStep30; - obj212.Steps = list330; - reference240 = obj212; - span138[3] = new QuestSequence + questStep30.DialogueChoices = list330; + reference240 = questStep30; + obj211.Steps = list329; + reference239 = obj211; + num++; + span326[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference242 = ref span138[4]; - QuestSequence obj213 = new QuestSequence + num++; + ref QuestSequence reference241 = ref span326[num]; + QuestSequence obj212 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list332 = new List(num2); - CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013085u, new Vector3(-805.53906f, -57.828876f, 157.64087f), 401); - obj213.Steps = list332; - reference242 = obj213; - questRoot44.QuestSequence = list327; + List list331 = new List(num2); + CollectionsMarshal.SetCount(list331, num2); + Span span331 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span331[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013085u, new Vector3(-805.53906f, -57.828876f, 157.64087f), 401); + obj212.Steps = list331; + reference241 = obj212; + questRoot44.QuestSequence = list326; AddQuest(questId44, questRoot44); QuestId questId45 = new QuestId(1644); QuestRoot questRoot45 = new QuestRoot(); num = 1; - List list333 = new List(num); - CollectionsMarshal.SetCount(list333, num); - CollectionsMarshal.AsSpan(list333)[0] = "JerryWester"; - questRoot45.Author = list333; - num = 4; - List list334 = new List(num); - CollectionsMarshal.SetCount(list334, num); - Span span139 = CollectionsMarshal.AsSpan(list334); - ref QuestSequence reference243 = ref span139[0]; - QuestSequence obj214 = new QuestSequence + List list332 = new List(num); + CollectionsMarshal.SetCount(list332, num); + Span span332 = CollectionsMarshal.AsSpan(list332); + index = 0; + span332[index] = "JerryWester"; + questRoot45.Author = list332; + index = 4; + List list333 = new List(index); + CollectionsMarshal.SetCount(list333, index); + Span span333 = CollectionsMarshal.AsSpan(list333); + num = 0; + ref QuestSequence reference242 = ref span333[num]; + QuestSequence obj213 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013085u, new Vector3(-805.53906f, -57.828876f, 157.64087f), 401); - obj214.Steps = list335; - reference243 = obj214; - ref QuestSequence reference244 = ref span139[1]; - QuestSequence obj215 = new QuestSequence + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + Span span334 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span334[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013085u, new Vector3(-805.53906f, -57.828876f, 157.64087f), 401); + obj213.Steps = list334; + reference242 = obj213; + num++; + ref QuestSequence reference243 = ref span333[num]; + QuestSequence obj214 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - Span span140 = CollectionsMarshal.AsSpan(list336); - span140[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006228u, new Vector3(-747.097f, -57.09793f, 163.8361f), 401) + List list335 = new List(num2); + CollectionsMarshal.SetCount(list335, num2); + Span span335 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span335[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006228u, new Vector3(-747.097f, -57.09793f, 163.8361f), 401) { AetherCurrentId = 2818116u }; - span140[1] = new QuestStep(EInteractionType.Emote, null, new Vector3(-703.7623f, -61.975857f, 113.54166f), 401) + index2++; + span335[index2] = new QuestStep(EInteractionType.Emote, null, new Vector3(-703.7623f, -61.975857f, 113.54166f), 401) { StopDistance = 0.25f, Emote = EEmote.Lookout }; - obj215.Steps = list336; - reference244 = obj215; - ref QuestSequence reference245 = ref span139[2]; - QuestSequence obj216 = new QuestSequence + obj214.Steps = list335; + reference243 = obj214; + num++; + ref QuestSequence reference244 = ref span333[num]; + QuestSequence obj215 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(-761.80145f, -39.054474f, 77.39858f), 401) + index2 = 1; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + Span span336 = CollectionsMarshal.AsSpan(list336); + num2 = 0; + span336[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(-761.80145f, -39.054474f, 77.39858f), 401) { StopDistance = 0.25f, Emote = EEmote.Lookout, @@ -103775,376 +124914,451 @@ public static class AssemblyQuestLoader Enabled = true } }; - obj216.Steps = list337; - reference245 = obj216; - ref QuestSequence reference246 = ref span139[3]; - QuestSequence obj217 = new QuestSequence + obj215.Steps = list336; + reference244 = obj215; + num++; + ref QuestSequence reference245 = ref span333[num]; + QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013089u, new Vector3(-751.6747f, -35.95642f, 18.722778f), 401) + List list337 = new List(num2); + CollectionsMarshal.SetCount(list337, num2); + Span span337 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span337[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013089u, new Vector3(-751.6747f, -35.95642f, 18.722778f), 401) { StopDistance = 7f }; - obj217.Steps = list338; - reference246 = obj217; - questRoot45.QuestSequence = list334; + obj216.Steps = list337; + reference245 = obj216; + questRoot45.QuestSequence = list333; AddQuest(questId45, questRoot45); QuestId questId46 = new QuestId(1645); QuestRoot questRoot46 = new QuestRoot(); num = 1; - List list339 = new List(num); - CollectionsMarshal.SetCount(list339, num); - CollectionsMarshal.AsSpan(list339)[0] = "JerryWester"; - questRoot46.Author = list339; - num = 4; - List list340 = new List(num); - CollectionsMarshal.SetCount(list340, num); - Span span141 = CollectionsMarshal.AsSpan(list340); - ref QuestSequence reference247 = ref span141[0]; - QuestSequence obj218 = new QuestSequence + List list338 = new List(num); + CollectionsMarshal.SetCount(list338, num); + Span span338 = CollectionsMarshal.AsSpan(list338); + index = 0; + span338[index] = "JerryWester"; + questRoot46.Author = list338; + index = 4; + List list339 = new List(index); + CollectionsMarshal.SetCount(list339, index); + Span span339 = CollectionsMarshal.AsSpan(list339); + num = 0; + ref QuestSequence reference246 = ref span339[num]; + QuestSequence obj217 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013089u, new Vector3(-751.6747f, -35.95642f, 18.722778f), 401) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + Span span340 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span340[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013089u, new Vector3(-751.6747f, -35.95642f, 18.722778f), 401) { StopDistance = 7f }; - obj218.Steps = list341; - reference247 = obj218; - ref QuestSequence reference248 = ref span141[1]; - QuestSequence obj219 = new QuestSequence + obj217.Steps = list340; + reference246 = obj217; + num++; + ref QuestSequence reference247 = ref span339[num]; + QuestSequence obj218 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 1013093u, new Vector3(-749.1112f, -35.956425f, 22.049255f), 401); - obj219.Steps = list342; - reference248 = obj219; - ref QuestSequence reference249 = ref span141[2]; - QuestSequence obj220 = new QuestSequence + List list341 = new List(num2); + CollectionsMarshal.SetCount(list341, num2); + Span span341 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span341[index2] = new QuestStep(EInteractionType.Interact, 1013093u, new Vector3(-749.1112f, -35.956425f, 22.049255f), 401); + obj218.Steps = list341; + reference247 = obj218; + num++; + ref QuestSequence reference248 = ref span339[num]; + QuestSequence obj219 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - Span span142 = CollectionsMarshal.AsSpan(list343); - span142[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-756.4804f, -13.877342f, -121.33485f), 401) + index2 = 4; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + Span span342 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span342[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-756.4804f, -13.877342f, -121.33485f), 401) { JumpDestination = new JumpDestination { Position = new Vector3(-759.4263f, -9.201294f, -110.85681f) } }; - span142[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006229u, new Vector3(-759.4263f, -9.201294f, -110.85681f), 401) + num2++; + span342[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006229u, new Vector3(-759.4263f, -9.201294f, -110.85681f), 401) { DisableNavmesh = true, AetherCurrentId = 2818117u }; - span142[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-755.9033f, -14.112402f, -177.06593f), 401); - span142[3] = new QuestStep(EInteractionType.Interact, 1013090u, new Vector3(-650.93463f, -58.6966f, -337.2397f), 401); - obj220.Steps = list343; - reference249 = obj220; - ref QuestSequence reference250 = ref span141[3]; - QuestSequence obj221 = new QuestSequence + num2++; + span342[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-755.9033f, -14.112402f, -177.06593f), 401); + num2++; + span342[num2] = new QuestStep(EInteractionType.Interact, 1013090u, new Vector3(-650.93463f, -58.6966f, -337.2397f), 401); + obj219.Steps = list342; + reference248 = obj219; + num++; + ref QuestSequence reference249 = ref span339[num]; + QuestSequence obj220 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - Span span143 = CollectionsMarshal.AsSpan(list344); - span143[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 401) + List list343 = new List(num2); + CollectionsMarshal.SetCount(list343, num2); + Span span343 = CollectionsMarshal.AsSpan(list343); + index2 = 0; + span343[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 401) { Aetheryte = EAetheryteLocation.SeaOfCloudsOkZundu }; - span143[1] = new QuestStep(EInteractionType.CompleteQuest, 1013095u, new Vector3(-560.69275f, -52.30738f, -427.57312f), 401); - obj221.Steps = list344; - reference250 = obj221; - questRoot46.QuestSequence = list340; + index2++; + span343[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013095u, new Vector3(-560.69275f, -52.30738f, -427.57312f), 401); + obj220.Steps = list343; + reference249 = obj220; + questRoot46.QuestSequence = list339; AddQuest(questId46, questRoot46); QuestId questId47 = new QuestId(1646); QuestRoot questRoot47 = new QuestRoot(); num = 1; - List list345 = new List(num); - CollectionsMarshal.SetCount(list345, num); - CollectionsMarshal.AsSpan(list345)[0] = "JerryWester"; - questRoot47.Author = list345; - num = 4; - List list346 = new List(num); - CollectionsMarshal.SetCount(list346, num); - Span span144 = CollectionsMarshal.AsSpan(list346); - ref QuestSequence reference251 = ref span144[0]; - QuestSequence obj222 = new QuestSequence + List list344 = new List(num); + CollectionsMarshal.SetCount(list344, num); + Span span344 = CollectionsMarshal.AsSpan(list344); + index = 0; + span344[index] = "JerryWester"; + questRoot47.Author = list344; + index = 4; + List list345 = new List(index); + CollectionsMarshal.SetCount(list345, index); + Span span345 = CollectionsMarshal.AsSpan(list345); + num = 0; + ref QuestSequence reference250 = ref span345[num]; + QuestSequence obj221 = new QuestSequence { Sequence = 0 }; + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + Span span346 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span346[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013096u, new Vector3(-541.34436f, -37.144257f, -384.48163f), 401); + obj221.Steps = list346; + reference250 = obj221; + num++; + ref QuestSequence reference251 = ref span345[num]; + QuestSequence obj222 = new QuestSequence + { + Sequence = 1 + }; num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013096u, new Vector3(-541.34436f, -37.144257f, -384.48163f), 401); + Span span347 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span347[index2] = new QuestStep(EInteractionType.Interact, 1013123u, new Vector3(-538.0178f, -37.04666f, -392.0501f), 401); obj222.Steps = list347; reference251 = obj222; - ref QuestSequence reference252 = ref span144[1]; + num++; + ref QuestSequence reference252 = ref span345[num]; QuestSequence obj223 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.Interact, 1013123u, new Vector3(-538.0178f, -37.04666f, -392.0501f), 401); - obj223.Steps = list348; - reference252 = obj223; - ref QuestSequence reference253 = ref span144[2]; - QuestSequence obj224 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list349 = new List(num2); - CollectionsMarshal.SetCount(list349, num2); - Span span145 = CollectionsMarshal.AsSpan(list349); - span145[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006234u, new Vector3(-564.8127f, -36.68513f, -349.0807f), 401) + index2 = 2; + List list348 = new List(index2); + CollectionsMarshal.SetCount(list348, index2); + Span span348 = CollectionsMarshal.AsSpan(list348); + num2 = 0; + span348[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006234u, new Vector3(-564.8127f, -36.68513f, -349.0807f), 401) { AetherCurrentId = 2818122u }; - span145[1] = new QuestStep(EInteractionType.Emote, 1012070u, new Vector3(-554.0704f, -57.62821f, -547.4174f), 401) + num2++; + span348[num2] = new QuestStep(EInteractionType.Emote, 1012070u, new Vector3(-554.0704f, -57.62821f, -547.4174f), 401) { Emote = EEmote.Bow }; - obj224.Steps = list349; - reference253 = obj224; - ref QuestSequence reference254 = ref span144[3]; - QuestSequence obj225 = new QuestSequence + obj223.Steps = list348; + reference252 = obj223; + num++; + ref QuestSequence reference253 = ref span345[num]; + QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014570u, new Vector3(-583.032f, -52.126114f, -447.4403f), 401); - obj225.Steps = list350; - reference254 = obj225; - questRoot47.QuestSequence = list346; + List list349 = new List(num2); + CollectionsMarshal.SetCount(list349, num2); + Span span349 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + span349[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014570u, new Vector3(-583.032f, -52.126114f, -447.4403f), 401); + obj224.Steps = list349; + reference253 = obj224; + questRoot47.QuestSequence = list345; AddQuest(questId47, questRoot47); QuestId questId48 = new QuestId(1647); QuestRoot questRoot48 = new QuestRoot(); num = 1; - List list351 = new List(num); - CollectionsMarshal.SetCount(list351, num); - CollectionsMarshal.AsSpan(list351)[0] = "JerryWester"; - questRoot48.Author = list351; - num = 6; - List list352 = new List(num); - CollectionsMarshal.SetCount(list352, num); - Span span146 = CollectionsMarshal.AsSpan(list352); - ref QuestSequence reference255 = ref span146[0]; - QuestSequence obj226 = new QuestSequence + List list350 = new List(num); + CollectionsMarshal.SetCount(list350, num); + Span span350 = CollectionsMarshal.AsSpan(list350); + index = 0; + span350[index] = "JerryWester"; + questRoot48.Author = list350; + index = 6; + List list351 = new List(index); + CollectionsMarshal.SetCount(list351, index); + Span span351 = CollectionsMarshal.AsSpan(list351); + num = 0; + ref QuestSequence reference254 = ref span351[num]; + QuestSequence obj225 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014570u, new Vector3(-583.032f, -52.126114f, -447.4403f), 401); - obj226.Steps = list353; - reference255 = obj226; - ref QuestSequence reference256 = ref span146[1]; - QuestSequence obj227 = new QuestSequence + index2 = 1; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + Span span352 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span352[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014570u, new Vector3(-583.032f, -52.126114f, -447.4403f), 401); + obj225.Steps = list352; + reference254 = obj225; + num++; + ref QuestSequence reference255 = ref span351[num]; + QuestSequence obj226 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - Span span147 = CollectionsMarshal.AsSpan(list354); - span147[0] = new QuestStep(EInteractionType.AcceptQuest, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401) + List list353 = new List(num2); + CollectionsMarshal.SetCount(list353, num2); + Span span353 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span353[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401) { PickUpQuestId = new QuestId(1909) }; - span147[1] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401); - obj227.Steps = list354; - reference256 = obj227; - ref QuestSequence reference257 = ref span146[2]; - QuestSequence obj228 = new QuestSequence + index2++; + span353[index2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401); + obj226.Steps = list353; + reference255 = obj226; + num++; + ref QuestSequence reference256 = ref span351[num]; + QuestSequence obj227 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - Span span148 = CollectionsMarshal.AsSpan(list355); - span148[0] = new QuestStep(EInteractionType.AcceptQuest, 1012068u, new Vector3(-597.0398f, -51.05185f, -387.0451f), 401) + index2 = 3; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + Span span354 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span354[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012068u, new Vector3(-597.0398f, -51.05185f, -387.0451f), 401) { PickUpQuestId = new QuestId(1910) }; - span148[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006231u, new Vector3(-180.34644f, -14.938599f, -543.1144f), 401) + num2++; + span354[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006231u, new Vector3(-180.34644f, -14.938599f, -543.1144f), 401) { AetherCurrentId = 2818119u }; - span148[2] = new QuestStep(EInteractionType.Interact, 1013386u, new Vector3(-155.62683f, -14.153783f, -541.558f), 401); - obj228.Steps = list355; - reference257 = obj228; - ref QuestSequence reference258 = ref span146[3]; - QuestSequence obj229 = new QuestSequence + num2++; + span354[num2] = new QuestStep(EInteractionType.Interact, 1013386u, new Vector3(-155.62683f, -14.153783f, -541.558f), 401); + obj227.Steps = list354; + reference256 = obj227; + num++; + ref QuestSequence reference257 = ref span351[num]; + QuestSequence obj228 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list356 = new List(num2); - CollectionsMarshal.SetCount(list356, num2); - ref QuestStep reference259 = ref CollectionsMarshal.AsSpan(list356)[0]; - QuestStep obj230 = new QuestStep(EInteractionType.Interact, 1013387u, new Vector3(-154.34503f, -14.730623f, -537.56006f), 401) + List list355 = new List(num2); + CollectionsMarshal.SetCount(list355, num2); + Span span355 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + ref QuestStep reference258 = ref span355[index2]; + QuestStep obj229 = new QuestStep(EInteractionType.Interact, 1013387u, new Vector3(-154.34503f, -14.730623f, -537.56006f), 401) { StopDistance = 7f }; num3 = 1; - List list357 = new List(num3); - CollectionsMarshal.SetCount(list357, num3); - CollectionsMarshal.AsSpan(list357)[0] = new DialogueChoice + List list356 = new List(num3); + CollectionsMarshal.SetCount(list356, num3); + Span span356 = CollectionsMarshal.AsSpan(list356); + index3 = 0; + span356[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA506_01647_Q1_000_000") }; - obj230.DialogueChoices = list357; - reference259 = obj230; - obj229.Steps = list356; + obj229.DialogueChoices = list356; reference258 = obj229; - ref QuestSequence reference260 = ref span146[4]; - QuestSequence obj231 = new QuestSequence + obj228.Steps = list355; + reference257 = obj228; + num++; + ref QuestSequence reference259 = ref span351[num]; + QuestSequence obj230 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.Duty, null, null, 401) + index2 = 1; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + Span span357 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span357[num2] = new QuestStep(EInteractionType.Duty, null, null, 401) { DutyOptions = new DutyOptions { ContentFinderConditionId = 88u } }; - obj231.Steps = list358; - reference260 = obj231; - ref QuestSequence reference261 = ref span146[5]; - QuestSequence obj232 = new QuestSequence + obj230.Steps = list357; + reference259 = obj230; + num++; + ref QuestSequence reference260 = ref span351[num]; + QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list359 = new List(num2); - CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014575u, new Vector3(-156.66437f, -14.153766f, -543.0228f), 401) + List list358 = new List(num2); + CollectionsMarshal.SetCount(list358, num2); + Span span358 = CollectionsMarshal.AsSpan(list358); + index2 = 0; + span358[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014575u, new Vector3(-156.66437f, -14.153766f, -543.0228f), 401) { StopDistance = 7f }; - obj232.Steps = list359; - reference261 = obj232; - questRoot48.QuestSequence = list352; + obj231.Steps = list358; + reference260 = obj231; + questRoot48.QuestSequence = list351; AddQuest(questId48, questRoot48); QuestId questId49 = new QuestId(1648); QuestRoot questRoot49 = new QuestRoot(); num = 1; - List list360 = new List(num); - CollectionsMarshal.SetCount(list360, num); - CollectionsMarshal.AsSpan(list360)[0] = "JerryWester"; - questRoot49.Author = list360; - num = 3; - List list361 = new List(num); - CollectionsMarshal.SetCount(list361, num); - Span span149 = CollectionsMarshal.AsSpan(list361); - ref QuestSequence reference262 = ref span149[0]; - QuestSequence obj233 = new QuestSequence + List list359 = new List(num); + CollectionsMarshal.SetCount(list359, num); + Span span359 = CollectionsMarshal.AsSpan(list359); + index = 0; + span359[index] = "JerryWester"; + questRoot49.Author = list359; + index = 3; + List list360 = new List(index); + CollectionsMarshal.SetCount(list360, index); + Span span360 = CollectionsMarshal.AsSpan(list360); + num = 0; + ref QuestSequence reference261 = ref span360[num]; + QuestSequence obj232 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014575u, new Vector3(-156.66437f, -14.153766f, -543.0228f), 401) + index2 = 1; + List list361 = new List(index2); + CollectionsMarshal.SetCount(list361, index2); + Span span361 = CollectionsMarshal.AsSpan(list361); + num2 = 0; + span361[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014575u, new Vector3(-156.66437f, -14.153766f, -543.0228f), 401) { StopDistance = 7f }; - obj233.Steps = list362; - reference262 = obj233; - ref QuestSequence reference263 = ref span149[1]; - QuestSequence obj234 = new QuestSequence + obj232.Steps = list361; + reference261 = obj232; + num++; + ref QuestSequence reference262 = ref span360[num]; + QuestSequence obj233 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.Interact, 1013100u, new Vector3(-582.63525f, -52.094604f, -447.13513f), 401); - obj234.Steps = list363; - reference263 = obj234; - ref QuestSequence reference264 = ref span149[2]; - QuestSequence obj235 = new QuestSequence + List list362 = new List(num2); + CollectionsMarshal.SetCount(list362, num2); + Span span362 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span362[index2] = new QuestStep(EInteractionType.Interact, 1013100u, new Vector3(-582.63525f, -52.094604f, -447.13513f), 401); + obj233.Steps = list362; + reference262 = obj233; + num++; + ref QuestSequence reference263 = ref span360[num]; + QuestSequence obj234 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012195u, new Vector3(-155.93195f, -14.153762f, -542.1378f), 401) + index2 = 1; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + Span span363 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + span363[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012195u, new Vector3(-155.93195f, -14.153762f, -542.1378f), 401) { Fly = true }; - obj235.Steps = list364; - reference264 = obj235; - questRoot49.QuestSequence = list361; + obj234.Steps = list363; + reference263 = obj234; + questRoot49.QuestSequence = list360; AddQuest(questId49, questRoot49); QuestId questId50 = new QuestId(1649); QuestRoot questRoot50 = new QuestRoot(); num = 1; - List list365 = new List(num); - CollectionsMarshal.SetCount(list365, num); - CollectionsMarshal.AsSpan(list365)[0] = "JerryWester"; - questRoot50.Author = list365; - num = 2; - List list366 = new List(num); - CollectionsMarshal.SetCount(list366, num); - Span span150 = CollectionsMarshal.AsSpan(list366); - ref QuestSequence reference265 = ref span150[0]; - QuestSequence obj236 = new QuestSequence + List list364 = new List(num); + CollectionsMarshal.SetCount(list364, num); + Span span364 = CollectionsMarshal.AsSpan(list364); + index = 0; + span364[index] = "JerryWester"; + questRoot50.Author = list364; + index = 2; + List list365 = new List(index); + CollectionsMarshal.SetCount(list365, index); + Span span365 = CollectionsMarshal.AsSpan(list365); + num = 0; + ref QuestSequence reference264 = ref span365[num]; + QuestSequence obj235 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013386u, new Vector3(-155.62683f, -14.153783f, -541.558f), 401) + List list366 = new List(num2); + CollectionsMarshal.SetCount(list366, num2); + Span span366 = CollectionsMarshal.AsSpan(list366); + index2 = 0; + span366[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013386u, new Vector3(-155.62683f, -14.153783f, -541.558f), 401) { StopDistance = 5f }; - obj236.Steps = list367; - reference265 = obj236; - ref QuestSequence reference266 = ref span150[1]; - QuestSequence obj237 = new QuestSequence + obj235.Steps = list366; + reference264 = obj235; + num++; + ref QuestSequence reference265 = ref span365[num]; + QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list368 = new List(num2); - CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013111u, new Vector3(162.89001f, -15.134373f, 37.094604f), 419) + index2 = 1; + List list367 = new List(index2); + CollectionsMarshal.SetCount(list367, index2); + Span span367 = CollectionsMarshal.AsSpan(list367); + num2 = 0; + span367[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013111u, new Vector3(162.89001f, -15.134373f, 37.094604f), 419) { StopDistance = 7f }; - obj237.Steps = list368; - reference266 = obj237; - questRoot50.QuestSequence = list366; + obj236.Steps = list367; + reference265 = obj236; + questRoot50.QuestSequence = list365; AddQuest(questId50, questRoot50); } @@ -104155,13 +125369,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -104169,22 +125386,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013112u, new Vector3(162.005f, -15.134371f, 38.52893f), 419) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013112u, new Vector3(162.005f, -15.134371f, 38.52893f), 419) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -104196,17 +125417,21 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA601_01650_SCENE00008_EVENTAREA_WARP_YESNO_TITLE") }; obj3.DialogueChoices = list5; reference3 = obj3; - span2[1] = new QuestStep(EInteractionType.Interact, 1013183u, new Vector3(-0.015319824f, 0.019999694f, -6.302063f), 428); + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 1013183u, new Vector3(-0.015319824f, 0.019999694f, -6.302063f), 428); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -104214,7 +125439,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013162u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013162u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); obj4.Steps = list6; reference4 = obj4; questRoot.QuestSequence = list2; @@ -104224,24 +125451,30 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "JerryWester"; + Span span7 = CollectionsMarshal.AsSpan(list7); + index = 0; + span7[index] = "JerryWester"; questRoot2.Author = list7; - num = 4; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span3 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span3[0]; + index = 4; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span8[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013162u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013162u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span3[1]; + num++; + ref QuestSequence reference6 = ref span8[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -104249,28 +125482,34 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1012389u, new Vector3(-133.31812f, 4.1f, -111.77234f), 130) + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.Interact, 1012389u, new Vector3(-133.31812f, 4.1f, -111.77234f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span3[2]; + num++; + ref QuestSequence reference7 = ref span8[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1012391u, new Vector3(-202.62463f, -31.015825f, 105.088745f), 141) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.Interact, 1012391u, new Vector3(-202.62463f, -31.015825f, 105.088745f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span3[3]; + num++; + ref QuestSequence reference8 = ref span8[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue @@ -104278,7 +125517,9 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012394u, new Vector3(-158.1903f, 4f, -21.194885f), 133) + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012394u, new Vector3(-158.1903f, 4f, -21.194885f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -104296,24 +125537,30 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "JerryWester"; + Span span13 = CollectionsMarshal.AsSpan(list13); + index = 0; + span13[index] = "JerryWester"; questRoot3.Author = list13; - num = 5; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span4 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference9 = ref span4[0]; + index = 5; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference9 = ref span14[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012394u, new Vector3(-158.1903f, 4f, -21.194885f), 133); + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012394u, new Vector3(-158.1903f, 4f, -21.194885f), 133); obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference10 = ref span4[1]; + num++; + ref QuestSequence reference10 = ref span14[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 @@ -104321,37 +125568,45 @@ public static class AssemblyQuestLoader num2 = 2; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span5 = CollectionsMarshal.AsSpan(list16); - ref QuestStep reference11 = ref span5[0]; + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + ref QuestStep reference11 = ref span16[index2]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { TargetTerritoryId = (ushort)205 }; - num3 = 1; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = new DialogueChoice + index3 = 1; + List list17 = new List(index3); + CollectionsMarshal.SetCount(list17, index3); + Span span17 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span17[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA603_01652_SCENE00007_EVENTAREA_WARP_YESNO_TITLE") }; obj11.DialogueChoices = list17; reference11 = obj11; - span5[1] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + index2++; + span16[index2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference12 = ref span4[2]; + num++; + ref QuestSequence reference12 = ref span14[num]; QuestSequence obj12 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1012396u, new Vector3(-153.1853f, 4f, -14.938599f), 133); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.Interact, 1012396u, new Vector3(-153.1853f, 4f, -14.938599f), 133); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span4[3]; + num++; + ref QuestSequence reference13 = ref span14[num]; QuestSequence obj13 = new QuestSequence { Sequence = 3 @@ -104359,7 +125614,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AethernetShortcut = new AethernetShortcut { @@ -104369,15 +125626,18 @@ public static class AssemblyQuestLoader }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span4[4]; + num++; + ref QuestSequence reference14 = ref span14[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012398u, new Vector3(35.538208f, -8f, 98.13074f), 132) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012398u, new Vector3(35.538208f, -8f, 98.13074f), 132) { StopDistance = 5f }; @@ -104390,13 +125650,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "JerryWester"; + Span span21 = CollectionsMarshal.AsSpan(list21); + index = 0; + span21[index] = "JerryWester"; questRoot4.Author = list21; - num = 3; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span6 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference15 = ref span6[0]; + index = 3; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + Span span22 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference15 = ref span22[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -104404,23 +125667,28 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012398u, new Vector3(35.538208f, -8f, 98.13074f), 132) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012398u, new Vector3(35.538208f, -8f, 98.13074f), 132) { StopDistance = 5f }; obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference16 = ref span6[1]; + num++; + ref QuestSequence reference16 = ref span22[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span7 = CollectionsMarshal.AsSpan(list24); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(43.620056f, -7.9655867f, 103.63884f), 132); - ref QuestStep reference17 = ref span7[1]; + index2 = 3; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(43.620056f, -7.9655867f, 103.63884f), 132); + num2++; + ref QuestStep reference17 = ref span24[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1000691u, new Vector3(71.97681f, 8f, -166.52173f), 133) { AethernetShortcut = new AethernetShortcut @@ -104432,16 +125700,23 @@ public static class AssemblyQuestLoader num3 = 6; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span8 = CollectionsMarshal.AsSpan(list25); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span25 = CollectionsMarshal.AsSpan(list25); + index3 = 0; + span25[index3] = null; + index3++; + span25[index3] = null; + index3++; + span25[index3] = null; + index3++; + span25[index3] = null; + index3++; + span25[index3] = null; + index3++; + span25[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list25; reference17 = obj17; - ref QuestStep reference18 = ref span7[2]; + num2++; + ref QuestStep reference18 = ref span24[num2]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AethernetShortcut = new AethernetShortcut @@ -104450,21 +125725,28 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - num3 = 6; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span9 = CollectionsMarshal.AsSpan(list26); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list26 = new List(index3); + CollectionsMarshal.SetCount(list26, index3); + Span span26 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj18.CompletionQuestVariablesFlags = list26; reference18 = obj18; obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference19 = ref span6[2]; + num++; + ref QuestSequence reference19 = ref span22[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -104472,7 +125754,9 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012398u, new Vector3(35.538208f, -8f, 98.13074f), 132) + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012398u, new Vector3(35.538208f, -8f, 98.13074f), 132) { AethernetShortcut = new AethernetShortcut { @@ -104489,24 +125773,30 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "JerryWester"; + Span span28 = CollectionsMarshal.AsSpan(list28); + index = 0; + span28[index] = "JerryWester"; questRoot5.Author = list28; - num = 3; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span10 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference20 = ref span10[0]; + index = 3; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + Span span29 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference20 = ref span29[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012400u, new Vector3(35.843384f, -8f, 99.35144f), 132); + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span30[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012400u, new Vector3(35.843384f, -8f, 99.35144f), 132); obj20.Steps = list30; reference20 = obj20; - ref QuestSequence reference21 = ref span10[1]; + num++; + ref QuestSequence reference21 = ref span29[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -104514,21 +125804,26 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1012401u, new Vector3(-8.560364f, 5.4681287f, 40.6958f), 418) + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span31[index2] = new QuestStep(EInteractionType.Interact, 1012401u, new Vector3(-8.560364f, 5.4681287f, 40.6958f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj21.Steps = list31; reference21 = obj21; - ref QuestSequence reference22 = ref span10[2]; + num++; + ref QuestSequence reference22 = ref span29[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012406u, new Vector3(587.45703f, -50.811344f, 69.16907f), 398) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012406u, new Vector3(587.45703f, -50.811344f, 69.16907f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather @@ -104542,13 +125837,16 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "JerryWester"; + Span span33 = CollectionsMarshal.AsSpan(list33); + index = 0; + span33[index] = "JerryWester"; questRoot6.Author = list33; - num = 4; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span11 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference23 = ref span11[0]; + index = 4; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + Span span34 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference23 = ref span34[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -104556,30 +125854,36 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012406u, new Vector3(587.45703f, -50.811344f, 69.16907f), 398); + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012406u, new Vector3(587.45703f, -50.811344f, 69.16907f), 398); obj23.Steps = list35; reference23 = obj23; - ref QuestSequence reference24 = ref span11[1]; + num++; + ref QuestSequence reference24 = ref span34[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span12 = CollectionsMarshal.AsSpan(list36); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-793.8348f, -122.09079f, 577.7538f), 398) + index2 = 2; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-793.8348f, -122.09079f, 577.7538f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-802.08453f, -122.82994f, 577.8909f), 398) + num2++; + span36[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-802.08453f, -122.82994f, 577.8909f), 398) { TargetTerritoryId = (ushort)399 }; obj24.Steps = list36; reference24 = obj24; - ref QuestSequence reference25 = ref span11[2]; + num++; + ref QuestSequence reference25 = ref span34[num]; QuestSequence obj25 = new QuestSequence { Sequence = 2 @@ -104587,35 +125891,41 @@ public static class AssemblyQuestLoader num2 = 3; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span13 = CollectionsMarshal.AsSpan(list37); - span13[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006205u, new Vector3(729.21326f, 134.93542f, 150.89636f), 399) + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006205u, new Vector3(729.21326f, 134.93542f, 150.89636f), 399) { AetherCurrentId = 2818083u }; - span13[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006208u, new Vector3(98.89368f, 73.07532f, -174.36487f), 399) + index2++; + span37[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006208u, new Vector3(98.89368f, 73.07532f, -174.36487f), 399) { AetherCurrentId = 2818086u }; - span13[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.85187f, 107.00484f, -632.70197f), 399) + index2++; + span37[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.85187f, 107.00484f, -632.70197f), 399) { TargetTerritoryId = (ushort)478 }; obj25.Steps = list37; reference25 = obj25; - ref QuestSequence reference26 = ref span11[3]; + num++; + ref QuestSequence reference26 = ref span34[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span14 = CollectionsMarshal.AsSpan(list38); - span14[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 478) + index2 = 2; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 478) { Aetheryte = EAetheryteLocation.Idyllshire }; - span14[1] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); + num2++; + span38[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); obj26.Steps = list38; reference26 = obj26; questRoot6.QuestSequence = list34; @@ -104625,13 +125935,16 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "JerryWester"; + Span span39 = CollectionsMarshal.AsSpan(list39); + index = 0; + span39[index] = "JerryWester"; questRoot7.Author = list39; - num = 4; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span15 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference27 = ref span15[0]; + index = 4; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + Span span40 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference27 = ref span40[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -104639,24 +125952,30 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); obj27.Steps = list41; reference27 = obj27; - ref QuestSequence reference28 = ref span15[1]; + num++; + ref QuestSequence reference28 = ref span40[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1012410u, new Vector3(71.732666f, 205.62819f, 26.901611f), 478) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.Interact, 1012410u, new Vector3(71.732666f, 205.62819f, 26.901611f), 478) { StopDistance = 7f }; obj28.Steps = list42; reference28 = obj28; - ref QuestSequence reference29 = ref span15[2]; + num++; + ref QuestSequence reference29 = ref span40[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -104664,8 +125983,9 @@ public static class AssemblyQuestLoader num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span16 = CollectionsMarshal.AsSpan(list43); - ref QuestStep reference30 = ref span16[0]; + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + ref QuestStep reference30 = ref span43[index2]; QuestStep obj30 = new QuestStep(EInteractionType.Say, 1014413u, new Vector3(-42.008118f, 205.79572f, 3.4332886f), 478) { ChatMessage = new ChatMessage @@ -104676,16 +125996,23 @@ public static class AssemblyQuestLoader num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span17 = CollectionsMarshal.AsSpan(list44); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span44 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj30.CompletionQuestVariablesFlags = list44; reference30 = obj30; - ref QuestStep reference31 = ref span16[1]; + index2++; + ref QuestStep reference31 = ref span43[index2]; QuestStep obj31 = new QuestStep(EInteractionType.Say, 1012413u, new Vector3(-69.230286f, 205.88773f, -68.61987f), 478) { ChatMessage = new ChatMessage @@ -104693,34 +126020,43 @@ public static class AssemblyQuestLoader Key = "TEXT_HEAVNA607_01656_SAYTODO_000" } }; - num3 = 6; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - Span span18 = CollectionsMarshal.AsSpan(list45); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + Span span45 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj31.CompletionQuestVariablesFlags = list45; reference31 = obj31; obj29.Steps = list43; reference29 = obj29; - ref QuestSequence reference32 = ref span15[3]; + num++; + ref QuestSequence reference32 = ref span40[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - Span span19 = CollectionsMarshal.AsSpan(list46); - span19[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 478) + index2 = 2; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 478) { AethernetShard = EAetheryteLocation.IdyllshireWest }; - span19[1] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) + num2++; + span46[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) { AethernetShortcut = new AethernetShortcut { @@ -104737,13 +126073,16 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "JerryWester"; + Span span47 = CollectionsMarshal.AsSpan(list47); + index = 0; + span47[index] = "JerryWester"; questRoot8.Author = list47; - num = 4; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span20 = CollectionsMarshal.AsSpan(list48); - ref QuestSequence reference33 = ref span20[0]; + index = 4; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + Span span48 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref QuestSequence reference33 = ref span48[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -104751,19 +126090,23 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span49[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); obj33.Steps = list49; reference33 = obj33; - ref QuestSequence reference34 = ref span20[1]; + num++; + ref QuestSequence reference34 = ref span48[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - Span span21 = CollectionsMarshal.AsSpan(list50); - span21[0] = new QuestStep(EInteractionType.AcceptQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399) + index2 = 2; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399) { AethernetShortcut = new AethernetShortcut { @@ -104772,7 +126115,8 @@ public static class AssemblyQuestLoader }, PickUpQuestId = new QuestId(1936) }; - span21[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012416u, new Vector3(365.83496f, 80.11144f, 6.3324585f), 399) + num2++; + span50[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012416u, new Vector3(365.83496f, 80.11144f, 6.3324585f), 399) { AethernetShortcut = new AethernetShortcut { @@ -104786,7 +126130,8 @@ public static class AssemblyQuestLoader }; obj34.Steps = list50; reference34 = obj34; - ref QuestSequence reference35 = ref span20[2]; + num++; + ref QuestSequence reference35 = ref span48[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -104794,21 +126139,26 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1012418u, new Vector3(352.65125f, 77.859474f, -5.9052734f), 399) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.Interact, 1012418u, new Vector3(352.65125f, 77.859474f, -5.9052734f), 399) { StopDistance = 7f }; obj35.Steps = list51; reference35 = obj35; - ref QuestSequence reference36 = ref span20[3]; + num++; + ref QuestSequence reference36 = ref span48[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; @@ -104821,13 +126171,16 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "JerryWester"; + Span span53 = CollectionsMarshal.AsSpan(list53); + index = 0; + span53[index] = "JerryWester"; questRoot9.Author = list53; - num = 3; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span22 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference37 = ref span22[0]; + index = 3; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + Span span54 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference37 = ref span54[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -104835,26 +126188,32 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); obj37.Steps = list55; reference37 = obj37; - ref QuestSequence reference38 = ref span22[1]; + num++; + ref QuestSequence reference38 = ref span54[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span23 = CollectionsMarshal.AsSpan(list56); - span23[0] = new QuestStep(EInteractionType.AcceptQuest, 1012102u, new Vector3(72.40405f, 205.6815f, 31.631958f), 478) + index2 = 2; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012102u, new Vector3(72.40405f, 205.6815f, 31.631958f), 478) { PickUpQuestId = new QuestId(1945) }; - span23[1] = new QuestStep(EInteractionType.Interact, 1012419u, new Vector3(78.96533f, 203.98001f, 133.1654f), 478); + num2++; + span56[num2] = new QuestStep(EInteractionType.Interact, 1012419u, new Vector3(78.96533f, 203.98001f, 133.1654f), 478); obj38.Steps = list56; reference38 = obj38; - ref QuestSequence reference39 = ref span22[2]; + num++; + ref QuestSequence reference39 = ref span54[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -104862,7 +126221,9 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012421u, new Vector3(77.98877f, 203.98f, 127.91626f), 478) + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012421u, new Vector3(77.98877f, 203.98f, 127.91626f), 478) { StopDistance = 5f }; @@ -104875,27 +126236,33 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "JerryWester"; + Span span58 = CollectionsMarshal.AsSpan(list58); + index = 0; + span58[index] = "JerryWester"; questRoot10.Author = list58; - num = 4; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span24 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference40 = ref span24[0]; + index = 4; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + Span span59 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference40 = ref span59[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012421u, new Vector3(77.98877f, 203.98f, 127.91626f), 478) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012421u, new Vector3(77.98877f, 203.98f, 127.91626f), 478) { StopDistance = 5f }; obj40.Steps = list60; reference40 = obj40; - ref QuestSequence reference41 = ref span24[1]; + num++; + ref QuestSequence reference41 = ref span59[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 @@ -104903,12 +126270,14 @@ public static class AssemblyQuestLoader num2 = 4; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span25 = CollectionsMarshal.AsSpan(list61); - span25[0] = new QuestStep(EInteractionType.AcceptQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) { PickUpQuestId = new QuestId(1963) }; - ref QuestStep reference42 = ref span25[1]; + index2++; + ref QuestStep reference42 = ref span61[index2]; QuestStep obj42 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.86769f, 204.99998f, 145.98666f), 478) { TargetTerritoryId = (ushort)399 @@ -104918,40 +126287,50 @@ public static class AssemblyQuestLoader num3 = 1; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - CollectionsMarshal.AsSpan(list62)[0] = 399; + Span span62 = CollectionsMarshal.AsSpan(list62); + index3 = 0; + span62[index3] = 399; skipStepConditions.InTerritory = list62; skipConditions.StepIf = skipStepConditions; obj42.SkipConditions = skipConditions; reference42 = obj42; - span25[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006214u, new Vector3(-452.38422f, 138.10938f, 678.18713f), 399) + index2++; + span61[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006214u, new Vector3(-452.38422f, 138.10938f, 678.18713f), 399) { AetherCurrentId = 2818092u }; - span25[3] = new QuestStep(EInteractionType.Interact, 1012423u, new Vector3(-476.58502f, 137.42972f, 702.6931f), 399); + index2++; + span61[index2] = new QuestStep(EInteractionType.Interact, 1012423u, new Vector3(-476.58502f, 137.42972f, 702.6931f), 399); obj41.Steps = list61; reference41 = obj41; - ref QuestSequence reference43 = ref span24[2]; + num++; + ref QuestSequence reference43 = ref span59[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list63)[0]; + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference44 = ref span63[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, 2005532u, new Vector3(-488.76178f, 138.99438f, 742.12244f), 399) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = 4375u; + index3 = 1; + List list64 = new List(index3); + CollectionsMarshal.SetCount(list64, index3); + Span span64 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span64[num3] = 4375u; obj44.KillEnemyDataIds = list64; reference44 = obj44; obj43.Steps = list63; reference43 = obj43; - ref QuestSequence reference45 = ref span24[3]; + num++; + ref QuestSequence reference45 = ref span59[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -104959,7 +126338,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012423u, new Vector3(-476.58502f, 137.42972f, 702.6931f), 399); + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012423u, new Vector3(-476.58502f, 137.42972f, 702.6931f), 399); obj45.Steps = list65; reference45 = obj45; questRoot10.QuestSequence = list59; @@ -104969,27 +126350,33 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "JerryWester"; + Span span66 = CollectionsMarshal.AsSpan(list66); + index = 0; + span66[index] = "JerryWester"; questRoot11.Author = list66; - num = 7; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span26 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference46 = ref span26[0]; + index = 7; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + Span span67 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference46 = ref span67[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463) { StopDistance = 7f }; obj46.Steps = list68; reference46 = obj46; - ref QuestSequence reference47 = ref span26[1]; + num++; + ref QuestSequence reference47 = ref span67[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -104997,27 +126384,33 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463) + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463) { StopDistance = 7f }; obj47.Steps = list69; reference47 = obj47; - ref QuestSequence reference48 = ref span26[2]; + num++; + ref QuestSequence reference48 = ref span67[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1012426u, new Vector3(23.971863f, 38.43f, 3.5552979f), 463) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.Interact, 1012426u, new Vector3(23.971863f, 38.43f, 3.5552979f), 463) { StopDistance = 6f }; obj48.Steps = list70; reference48 = obj48; - ref QuestSequence reference49 = ref span26[3]; + num++; + ref QuestSequence reference49 = ref span67[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -105025,12 +126418,14 @@ public static class AssemblyQuestLoader num2 = 4; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span27 = CollectionsMarshal.AsSpan(list71); - span27[0] = new QuestStep(EInteractionType.AcceptQuest, 1012141u, new Vector3(35.690796f, 38.43f, 12.985352f), 463) + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012141u, new Vector3(35.690796f, 38.43f, 12.985352f), 463) { PickUpQuestId = new QuestId(1966) }; - ref QuestStep reference50 = ref span27[1]; + index2++; + ref QuestStep reference50 = ref span71[index2]; QuestStep obj50 = new QuestStep(EInteractionType.Interact, 2005337u, new Vector3(7.765594f, 38.9395f, -50.9989f), 463) { TargetTerritoryId = (ushort)399 @@ -105040,27 +126435,34 @@ public static class AssemblyQuestLoader num3 = 1; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = 463; + Span span72 = CollectionsMarshal.AsSpan(list72); + index3 = 0; + span72[index3] = 463; skipStepConditions2.NotInTerritory = list72; skipConditions2.StepIf = skipStepConditions2; obj50.SkipConditions = skipConditions2; reference50 = obj50; - span27[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(228.06944f, 228.11594f, 767.1184f), 399); - span27[3] = new QuestStep(EInteractionType.Interact, 1012427u, new Vector3(300.46533f, 232.541f, 767.87964f), 399) + index2++; + span71[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(228.06944f, 228.11594f, 767.1184f), 399); + index2++; + span71[index2] = new QuestStep(EInteractionType.Interact, 1012427u, new Vector3(300.46533f, 232.541f, 767.87964f), 399) { DisableNavmesh = true }; obj49.Steps = list71; reference49 = obj49; - ref QuestSequence reference51 = ref span26[4]; + num++; + ref QuestSequence reference51 = ref span67[num]; QuestSequence obj51 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -105070,11 +126472,13 @@ public static class AssemblyQuestLoader }; obj51.Steps = list73; reference51 = obj51; - span26[5] = new QuestSequence + num++; + span67[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference52 = ref span26[6]; + num++; + ref QuestSequence reference52 = ref span67[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -105082,17 +126486,20 @@ public static class AssemblyQuestLoader num2 = 3; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span28 = CollectionsMarshal.AsSpan(list74); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(228.06944f, 228.11594f, 767.1184f), 399) + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(228.06944f, 228.11594f, 767.1184f), 399) { DisableNavmesh = true, Mount = true }; - span28[1] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) + index2++; + span74[index2] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) { TargetTerritoryId = (ushort)463 }; - span28[2] = new QuestStep(EInteractionType.CompleteQuest, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); + index2++; + span74[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); obj52.Steps = list74; reference52 = obj52; questRoot11.QuestSequence = list67; @@ -105102,24 +126509,30 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "JerryWester"; + Span span75 = CollectionsMarshal.AsSpan(list75); + index = 0; + span75[index] = "JerryWester"; questRoot12.Author = list75; - num = 4; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span29 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference53 = ref span29[0]; + index = 4; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + Span span76 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference53 = ref span76[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); obj53.Steps = list77; reference53 = obj53; - ref QuestSequence reference54 = ref span29[1]; + num++; + ref QuestSequence reference54 = ref span76[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -105127,21 +126540,26 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1012422u, new Vector3(-475.79156f, 137.42972f, 701.4724f), 399) + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.Interact, 1012422u, new Vector3(-475.79156f, 137.42972f, 701.4724f), 399) { StopDistance = 7f }; obj54.Steps = list78; reference54 = obj54; - ref QuestSequence reference55 = ref span29[2]; + num++; + ref QuestSequence reference55 = ref span76[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.Interact, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -105153,7 +126571,8 @@ public static class AssemblyQuestLoader }; obj55.Steps = list79; reference55 = obj55; - ref QuestSequence reference56 = ref span29[3]; + num++; + ref QuestSequence reference56 = ref span76[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue @@ -105161,7 +126580,9 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013163u, new Vector3(167.0404f, -14.313367f, 51.285522f), 419) + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013163u, new Vector3(167.0404f, -14.313367f, 51.285522f), 419) { AethernetShortcut = new AethernetShortcut { @@ -105178,27 +126599,33 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "JerryWester"; + Span span81 = CollectionsMarshal.AsSpan(list81); + index = 0; + span81[index] = "JerryWester"; questRoot13.Author = list81; - num = 5; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span30 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference57 = ref span30[0]; + index = 5; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + Span span82 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference57 = ref span82[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419) { StopDistance = 5f }; obj57.Steps = list83; reference57 = obj57; - ref QuestSequence reference58 = ref span30[1]; + num++; + ref QuestSequence reference58 = ref span82[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 @@ -105206,22 +126633,26 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1013166u, new Vector3(168.29175f, -14.52896f, 41.153564f), 419) + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.Interact, 1013166u, new Vector3(168.29175f, -14.52896f, 41.153564f), 419) { StopDistance = 7f }; obj58.Steps = list84; reference58 = obj58; - ref QuestSequence reference59 = ref span30[2]; + num++; + ref QuestSequence reference59 = ref span82[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span31 = CollectionsMarshal.AsSpan(list85); - ref QuestStep reference60 = ref span31[0]; + index2 = 5; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference60 = ref span85[num2]; QuestStep obj60 = new QuestStep(EInteractionType.Interact, 1013167u, new Vector3(125.68848f, 24.458836f, 2.456604f), 418) { AethernetShortcut = new AethernetShortcut @@ -105230,51 +126661,72 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num3 = 6; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span32 = CollectionsMarshal.AsSpan(list86); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list86 = new List(index3); + CollectionsMarshal.SetCount(list86, index3); + Span span86 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj60.CompletionQuestVariablesFlags = list86; reference60 = obj60; - ref QuestStep reference61 = ref span31[1]; + num2++; + ref QuestStep reference61 = ref span85[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1013161u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); num3 = 6; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - Span span33 = CollectionsMarshal.AsSpan(list87); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span87 = CollectionsMarshal.AsSpan(list87); + index3 = 0; + span87[index3] = null; + index3++; + span87[index3] = null; + index3++; + span87[index3] = null; + index3++; + span87[index3] = null; + index3++; + span87[index3] = null; + index3++; + span87[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list87; reference61 = questStep; - ref QuestStep reference62 = ref span31[2]; + num2++; + ref QuestStep reference62 = ref span85[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(89.00678f, 1.6069314f, 67.770386f), 418); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span34 = CollectionsMarshal.AsSpan(list88); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list88 = new List(index3); + CollectionsMarshal.SetCount(list88, index3); + Span span88 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list88; skipConditions3.StepIf = skipStepConditions3; questStep2.SkipConditions = skipConditions3; reference62 = questStep2; - ref QuestStep reference63 = ref span31[3]; + num2++; + ref QuestStep reference63 = ref span85[num2]; QuestStep obj61 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.918564f, -13.879314f, 68.86857f), 418) { DisableNavmesh = true @@ -105284,34 +126736,48 @@ public static class AssemblyQuestLoader num3 = 6; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - Span span35 = CollectionsMarshal.AsSpan(list89); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span89 = CollectionsMarshal.AsSpan(list89); + index3 = 0; + span89[index3] = null; + index3++; + span89[index3] = null; + index3++; + span89[index3] = null; + index3++; + span89[index3] = null; + index3++; + span89[index3] = null; + index3++; + span89[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list89; skipConditions4.StepIf = skipStepConditions4; obj61.SkipConditions = skipConditions4; reference63 = obj61; - ref QuestStep reference64 = ref span31[4]; + num2++; + ref QuestStep reference64 = ref span85[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418); - num3 = 6; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - Span span36 = CollectionsMarshal.AsSpan(list90); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + Span span90 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list90; reference64 = questStep3; obj59.Steps = list85; reference59 = obj59; - ref QuestSequence reference65 = ref span30[3]; + num++; + ref QuestSequence reference65 = ref span82[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -105319,8 +126785,9 @@ public static class AssemblyQuestLoader num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span37 = CollectionsMarshal.AsSpan(list91); - span37[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -105329,26 +126796,30 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - span37[1] = new QuestStep(EInteractionType.Interact, 1012397u, new Vector3(4.0131226f, -9.313226E-10f, 5.661072f), 433) + index2++; + span91[index2] = new QuestStep(EInteractionType.Interact, 1012397u, new Vector3(4.0131226f, -9.313226E-10f, 5.661072f), 433) { StopDistance = 7f }; obj62.Steps = list91; reference65 = obj62; - ref QuestSequence reference66 = ref span30[4]; + num++; + ref QuestSequence reference66 = ref span82[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - Span span38 = CollectionsMarshal.AsSpan(list92); - span38[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) + index2 = 2; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) { TargetTerritoryId = (ushort)419 }; - span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419) + num2++; + span92[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419) { AethernetShortcut = new AethernetShortcut { @@ -105365,13 +126836,16 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "JerryWester"; + Span span93 = CollectionsMarshal.AsSpan(list93); + index = 0; + span93[index] = "JerryWester"; questRoot14.Author = list93; - num = 6; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span39 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference67 = ref span39[0]; + index = 6; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + Span span94 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference67 = ref span94[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -105379,21 +126853,27 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419); + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419); obj64.Steps = list95; reference67 = obj64; - ref QuestSequence reference68 = ref span39[1]; + num++; + ref QuestSequence reference68 = ref span94[num]; QuestSequence obj65 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1012431u, new Vector3(180.16321f, -16.028961f, 34.6532f), 419); + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.Interact, 1012431u, new Vector3(180.16321f, -16.028961f, 34.6532f), 419); obj65.Steps = list96; reference68 = obj65; - ref QuestSequence reference69 = ref span39[2]; + num++; + ref QuestSequence reference69 = ref span94[num]; QuestSequence obj66 = new QuestSequence { Sequence = 2 @@ -105401,28 +126881,35 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419); + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.Interact, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419); obj66.Steps = list97; reference69 = obj66; - span39[3] = new QuestSequence + num++; + span94[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference70 = ref span39[4]; + num++; + ref QuestSequence reference70 = ref span94[num]; QuestSequence obj67 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1012854u, new Vector3(-861.84485f, -184.293f, -659.2356f), 402) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.Interact, 1012854u, new Vector3(-861.84485f, -184.293f, -659.2356f), 402) { DisableNavmesh = true }; obj67.Steps = list98; reference70 = obj67; - ref QuestSequence reference71 = ref span39[5]; + num++; + ref QuestSequence reference71 = ref span94[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -105430,12 +126917,14 @@ public static class AssemblyQuestLoader num2 = 2; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span40 = CollectionsMarshal.AsSpan(list99); - span40[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 402) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 402) { Aetheryte = EAetheryteLocation.AzysLlaHelix }; - span40[1] = new QuestStep(EInteractionType.CompleteQuest, 1012792u, new Vector3(-650.1717f, -176.45021f, -565.14844f), 402); + index2++; + span99[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012792u, new Vector3(-650.1717f, -176.45021f, -565.14844f), 402); obj68.Steps = list99; reference71 = obj68; questRoot14.QuestSequence = list94; @@ -105445,24 +126934,30 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "JerryWester"; + Span span100 = CollectionsMarshal.AsSpan(list100); + index = 0; + span100[index] = "JerryWester"; questRoot15.Author = list100; - num = 5; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span41 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference72 = ref span41[0]; + index = 5; + List list101 = new List(index); + CollectionsMarshal.SetCount(list101, index); + Span span101 = CollectionsMarshal.AsSpan(list101); + num = 0; + ref QuestSequence reference72 = ref span101[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012792u, new Vector3(-650.1717f, -176.45021f, -565.14844f), 402); + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012792u, new Vector3(-650.1717f, -176.45021f, -565.14844f), 402); obj69.Steps = list102; reference72 = obj69; - ref QuestSequence reference73 = ref span41[1]; + num++; + ref QuestSequence reference73 = ref span101[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -105470,63 +126965,88 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span42 = CollectionsMarshal.AsSpan(list103); - ref QuestStep reference74 = ref span42[0]; + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + ref QuestStep reference74 = ref span103[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2006237u, new Vector3(-637.6898f, -176.47064f, -558.3734f), 402); num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span43 = CollectionsMarshal.AsSpan(list104); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span104 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list104; reference74 = questStep4; - ref QuestStep reference75 = ref span42[1]; + index2++; + ref QuestStep reference75 = ref span103[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2006236u, new Vector3(-649.7139f, -176.47064f, -538.6893f), 402); - num3 = 6; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span44 = CollectionsMarshal.AsSpan(list105); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list105 = new List(index3); + CollectionsMarshal.SetCount(list105, index3); + Span span105 = CollectionsMarshal.AsSpan(list105); + num3 = 0; + span105[num3] = null; + num3++; + span105[num3] = null; + num3++; + span105[num3] = null; + num3++; + span105[num3] = null; + num3++; + span105[num3] = null; + num3++; + span105[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list105; reference75 = questStep5; - ref QuestStep reference76 = ref span42[2]; + index2++; + ref QuestStep reference76 = ref span103[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2006238u, new Vector3(-645.16675f, -174.57855f, -477.92786f), 402); num3 = 6; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - Span span45 = CollectionsMarshal.AsSpan(list106); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span106 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list106; reference76 = questStep6; obj70.Steps = list103; reference73 = obj70; - ref QuestSequence reference77 = ref span41[2]; + num++; + ref QuestSequence reference77 = ref span101[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1014675u, new Vector3(-638.3612f, -176.4502f, -578.6679f), 402); + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.Interact, 1014675u, new Vector3(-638.3612f, -176.4502f, -578.6679f), 402); obj71.Steps = list107; reference77 = obj71; - ref QuestSequence reference78 = ref span41[3]; + num++; + ref QuestSequence reference78 = ref span101[num]; QuestSequence obj72 = new QuestSequence { Sequence = 3 @@ -105534,18 +127054,23 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 2005565u, new Vector3(-428.0614f, -166.21655f, -411.88678f), 402); + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.Interact, 2005565u, new Vector3(-428.0614f, -166.21655f, -411.88678f), 402); obj72.Steps = list108; reference78 = obj72; - ref QuestSequence reference79 = ref span41[4]; + num++; + ref QuestSequence reference79 = ref span101[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014675u, new Vector3(-638.3612f, -176.4502f, -578.6679f), 402); + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014675u, new Vector3(-638.3612f, -176.4502f, -578.6679f), 402); obj73.Steps = list109; reference79 = obj73; questRoot15.QuestSequence = list101; @@ -105555,13 +127080,16 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "JerryWester"; + Span span110 = CollectionsMarshal.AsSpan(list110); + index = 0; + span110[index] = "JerryWester"; questRoot16.Author = list110; - num = 5; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span46 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference80 = ref span46[0]; + index = 5; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + Span span111 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference80 = ref span111[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -105569,15 +127097,19 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list112)[0]; + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + ref QuestStep reference81 = ref span112[index2]; QuestStep obj75 = new QuestStep(EInteractionType.AcceptQuest, 1012796u, new Vector3(-639.8871f, -176.4502f, -579.3393f), 402) { StopDistance = 7f }; - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = new DialogueChoice + index3 = 1; + List list113 = new List(index3); + CollectionsMarshal.SetCount(list113, index3); + Span span113 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span113[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA703_01665_Q1_000_000"), @@ -105587,21 +127119,25 @@ public static class AssemblyQuestLoader reference81 = obj75; obj74.Steps = list112; reference80 = obj74; - ref QuestSequence reference82 = ref span46[1]; + num++; + ref QuestSequence reference82 = ref span111[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1014677u, new Vector3(-642.9083f, -176.4502f, -577.5082f), 402) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.Interact, 1014677u, new Vector3(-642.9083f, -176.4502f, -577.5082f), 402) { StopDistance = 5f }; obj76.Steps = list114; reference82 = obj76; - ref QuestSequence reference83 = ref span46[2]; + num++; + ref QuestSequence reference83 = ref span111[num]; QuestSequence obj77 = new QuestSequence { Sequence = 2 @@ -105609,27 +127145,35 @@ public static class AssemblyQuestLoader num2 = 3; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span47 = CollectionsMarshal.AsSpan(list115); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-550.3511f, -173.7904f, -486.51318f), 402); - span47[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-517.79803f, -169.71143f, -456.97668f), 402); - span47[2] = new QuestStep(EInteractionType.Interact, 1012797u, new Vector3(-166.36914f, -162.10732f, -490.898f), 402); + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-550.3511f, -173.7904f, -486.51318f), 402); + index2++; + span115[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-517.79803f, -169.71143f, -456.97668f), 402); + index2++; + span115[index2] = new QuestStep(EInteractionType.Interact, 1012797u, new Vector3(-166.36914f, -162.10732f, -490.898f), 402); obj77.Steps = list115; reference83 = obj77; - ref QuestSequence reference84 = ref span46[3]; + num++; + ref QuestSequence reference84 = ref span111[num]; QuestSequence obj78 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - Span span48 = CollectionsMarshal.AsSpan(list116); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-138.06377f, -158.1412f, -496.24612f), 402); - span48[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-147.24174f, -154.81604f, -498.42224f), 402); - span48[2] = new QuestStep(EInteractionType.Interact, 2006363u, new Vector3(-145.7164f, -154.816f, -503.1721f), 402); + index2 = 3; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-138.06377f, -158.1412f, -496.24612f), 402); + num2++; + span116[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-147.24174f, -154.81604f, -498.42224f), 402); + num2++; + span116[num2] = new QuestStep(EInteractionType.Interact, 2006363u, new Vector3(-145.7164f, -154.816f, -503.1721f), 402); obj78.Steps = list116; reference84 = obj78; - ref QuestSequence reference85 = ref span46[4]; + num++; + ref QuestSequence reference85 = ref span111[num]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue @@ -105637,7 +127181,9 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012802u, new Vector3(235.98071f, -72.83498f, -619.8978f), 402) + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012802u, new Vector3(235.98071f, -72.83498f, -619.8978f), 402) { DisableNavmesh = true }; @@ -105650,24 +127196,30 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "JerryWester"; + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "JerryWester"; questRoot17.Author = list118; - num = 5; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span49 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference86 = ref span49[0]; + index = 5; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference86 = ref span119[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012802u, new Vector3(235.98071f, -72.83498f, -619.8978f), 402); + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012802u, new Vector3(235.98071f, -72.83498f, -619.8978f), 402); obj80.Steps = list120; reference86 = obj80; - ref QuestSequence reference87 = ref span49[1]; + num++; + ref QuestSequence reference87 = ref span119[num]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -105675,20 +127227,25 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1012807u, new Vector3(780.9414f, -25.905136f, -508.1102f), 402); + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.Interact, 1012807u, new Vector3(780.9414f, -25.905136f, -508.1102f), 402); obj81.Steps = list121; reference87 = obj81; - ref QuestSequence reference88 = ref span49[2]; + num++; + ref QuestSequence reference88 = ref span119[num]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - Span span50 = CollectionsMarshal.AsSpan(list122); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(642.1002f, -32.964188f, -532.8383f), 402); - ref QuestStep reference89 = ref span50[1]; + index2 = 4; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(642.1002f, -32.964188f, -532.8383f), 402); + num2++; + ref QuestStep reference89 = ref span122[num2]; QuestStep obj83 = new QuestStep(EInteractionType.Combat, 2005568u, new Vector3(344.13672f, -55.375f, -428.4886f), 402) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -105696,21 +127253,30 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 4942u; + Span span123 = CollectionsMarshal.AsSpan(list123); + index3 = 0; + span123[index3] = 4942u; obj83.KillEnemyDataIds = list123; - num3 = 6; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - Span span51 = CollectionsMarshal.AsSpan(list124); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list124 = new List(index3); + CollectionsMarshal.SetCount(list124, index3); + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj83.CompletionQuestVariablesFlags = list124; reference89 = obj83; - ref QuestStep reference90 = ref span50[2]; + num2++; + ref QuestStep reference90 = ref span122[num2]; QuestStep obj84 = new QuestStep(EInteractionType.Combat, 2005569u, new Vector3(296.71167f, -55.283447f, -459.2508f), 402) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -105718,23 +127284,32 @@ public static class AssemblyQuestLoader num3 = 2; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - Span span52 = CollectionsMarshal.AsSpan(list125); - span52[0] = 4943u; - span52[1] = 4623u; + Span span125 = CollectionsMarshal.AsSpan(list125); + index3 = 0; + span125[index3] = 4943u; + index3++; + span125[index3] = 4623u; obj84.KillEnemyDataIds = list125; - num3 = 6; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - Span span53 = CollectionsMarshal.AsSpan(list126); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list126 = new List(index3); + CollectionsMarshal.SetCount(list126, index3); + Span span126 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj84.CompletionQuestVariablesFlags = list126; reference90 = obj84; - ref QuestStep reference91 = ref span50[3]; + num2++; + ref QuestStep reference91 = ref span122[num2]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, 2005567u, new Vector3(249.2561f, -55.49713f, -406.51562f), 402) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -105742,25 +127317,34 @@ public static class AssemblyQuestLoader num3 = 2; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - Span span54 = CollectionsMarshal.AsSpan(list127); - span54[0] = 4614u; - span54[1] = 4942u; + Span span127 = CollectionsMarshal.AsSpan(list127); + index3 = 0; + span127[index3] = 4614u; + index3++; + span127[index3] = 4942u; obj85.KillEnemyDataIds = list127; - num3 = 6; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - Span span55 = CollectionsMarshal.AsSpan(list128); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list128 = new List(index3); + CollectionsMarshal.SetCount(list128, index3); + Span span128 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj85.CompletionQuestVariablesFlags = list128; reference91 = obj85; obj82.Steps = list122; reference88 = obj82; - ref QuestSequence reference92 = ref span49[3]; + num++; + ref QuestSequence reference92 = ref span119[num]; QuestSequence obj86 = new QuestSequence { Sequence = 3 @@ -105768,21 +127352,27 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1012807u, new Vector3(780.9414f, -25.905136f, -508.1102f), 402); + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.Interact, 1012807u, new Vector3(780.9414f, -25.905136f, -508.1102f), 402); obj86.Steps = list129; reference92 = obj86; - ref QuestSequence reference93 = ref span49[4]; + num++; + ref QuestSequence reference93 = ref span119[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span56 = CollectionsMarshal.AsSpan(list130); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(780.2551f, -21.268166f, -478.28162f), 402); - span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(778.6274f, -17.943024f, -487.80676f), 402); - span56[2] = new QuestStep(EInteractionType.CompleteQuest, 2006364u, new Vector3(778.9745f, -17.96f, -483.6682f), 402); + index2 = 3; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(780.2551f, -21.268166f, -478.28162f), 402); + num2++; + span130[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(778.6274f, -17.943024f, -487.80676f), 402); + num2++; + span130[num2] = new QuestStep(EInteractionType.CompleteQuest, 2006364u, new Vector3(778.9745f, -17.96f, -483.6682f), 402); obj87.Steps = list130; reference93 = obj87; questRoot17.QuestSequence = list119; @@ -105792,13 +127382,16 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "JerryWester"; + Span span131 = CollectionsMarshal.AsSpan(list131); + index = 0; + span131[index] = "JerryWester"; questRoot18.Author = list131; - num = 5; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span57 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference94 = ref span57[0]; + index = 5; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + Span span132 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference94 = ref span132[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -105806,24 +127399,30 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014850u, new Vector3(634.51587f, 10.474376f, 77.50049f), 402) + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014850u, new Vector3(634.51587f, 10.474376f, 77.50049f), 402) { StopDistance = 7f }; obj88.Steps = list133; reference94 = obj88; - ref QuestSequence reference95 = ref span57[1]; + num++; + ref QuestSequence reference95 = ref span132[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1012829u, new Vector3(641.90125f, 13.840106f, 506.95044f), 402); + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.Interact, 1012829u, new Vector3(641.90125f, 13.840106f, 506.95044f), 402); obj89.Steps = list134; reference95 = obj89; - ref QuestSequence reference96 = ref span57[2]; + num++; + ref QuestSequence reference96 = ref span132[num]; QuestSequence obj90 = new QuestSequence { Sequence = 2 @@ -105831,7 +127430,9 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list135)[0]; + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + ref QuestStep reference97 = ref span135[index2]; QuestStep obj91 = new QuestStep(EInteractionType.Combat, 1012827u, new Vector3(228.22913f, 14.933587f, 553.97876f), 402) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -105839,26 +127440,35 @@ public static class AssemblyQuestLoader num3 = 6; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - Span span58 = CollectionsMarshal.AsSpan(list136); - span58[0] = 4391u; - span58[1] = 4392u; - span58[2] = 4393u; - span58[3] = 4394u; - span58[4] = 4395u; - span58[5] = 4396u; + Span span136 = CollectionsMarshal.AsSpan(list136); + index3 = 0; + span136[index3] = 4391u; + index3++; + span136[index3] = 4392u; + index3++; + span136[index3] = 4393u; + index3++; + span136[index3] = 4394u; + index3++; + span136[index3] = 4395u; + index3++; + span136[index3] = 4396u; obj91.KillEnemyDataIds = list136; reference97 = obj91; obj90.Steps = list135; reference96 = obj90; - ref QuestSequence reference98 = ref span57[3]; + num++; + ref QuestSequence reference98 = ref span132[num]; QuestSequence obj92 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012827u, new Vector3(228.22913f, 14.933587f, 553.97876f), 402) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span137[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012827u, new Vector3(228.22913f, 14.933587f, 553.97876f), 402) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -105867,7 +127477,8 @@ public static class AssemblyQuestLoader }; obj92.Steps = list137; reference98 = obj92; - ref QuestSequence reference99 = ref span57[4]; + num++; + ref QuestSequence reference99 = ref span132[num]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue @@ -105875,7 +127486,9 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012834u, new Vector3(-197.86377f, -102.78301f, 456.53467f), 402) + Span span138 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span138[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012834u, new Vector3(-197.86377f, -102.78301f, 456.53467f), 402) { DisableNavmesh = true }; @@ -105888,24 +127501,30 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "JerryWester"; + Span span139 = CollectionsMarshal.AsSpan(list139); + index = 0; + span139[index] = "JerryWester"; questRoot19.Author = list139; - num = 2; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span59 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference100 = ref span59[0]; + index = 2; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + Span span140 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference100 = ref span140[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012834u, new Vector3(-197.86377f, -102.78301f, 456.53467f), 402); + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span141[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012834u, new Vector3(-197.86377f, -102.78301f, 456.53467f), 402); obj94.Steps = list141; reference100 = obj94; - ref QuestSequence reference101 = ref span59[1]; + num++; + ref QuestSequence reference101 = ref span140[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -105913,7 +127532,9 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 2005465u, new Vector3(-696.13184f, -37.06427f, 432.4253f), 402); + Span span142 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span142[index2] = new QuestStep(EInteractionType.CompleteQuest, 2005465u, new Vector3(-696.13184f, -37.06427f, 432.4253f), 402); obj95.Steps = list142; reference101 = obj95; questRoot19.QuestSequence = list140; @@ -105923,27 +127544,33 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "JerryWester"; + Span span143 = CollectionsMarshal.AsSpan(list143); + index = 0; + span143[index] = "JerryWester"; questRoot20.Author = list143; - num = 7; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span60 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference102 = ref span60[0]; + index = 7; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + Span span144 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference102 = ref span144[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012848u, new Vector3(-319.0204f, 253f, -5.2339478f), 402) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span145[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012848u, new Vector3(-319.0204f, 253f, -5.2339478f), 402) { Fly = true }; obj96.Steps = list145; reference102 = obj96; - ref QuestSequence reference103 = ref span60[1]; + num++; + ref QuestSequence reference103 = ref span144[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -105951,36 +127578,46 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - ref QuestStep reference104 = ref CollectionsMarshal.AsSpan(list146)[0]; + Span span146 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + ref QuestStep reference104 = ref span146[index2]; QuestStep obj98 = new QuestStep(EInteractionType.Combat, 1012850u, new Vector3(-62.882446f, 271.23285f, -5.661133f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 4; - List list147 = new List(num3); - CollectionsMarshal.SetCount(list147, num3); - Span span61 = CollectionsMarshal.AsSpan(list147); - span61[0] = 5039u; - span61[1] = 4363u; - span61[2] = 4398u; - span61[3] = 4397u; + index3 = 4; + List list147 = new List(index3); + CollectionsMarshal.SetCount(list147, index3); + Span span147 = CollectionsMarshal.AsSpan(list147); + num3 = 0; + span147[num3] = 5039u; + num3++; + span147[num3] = 4363u; + num3++; + span147[num3] = 4398u; + num3++; + span147[num3] = 4397u; obj98.KillEnemyDataIds = list147; reference104 = obj98; obj97.Steps = list146; reference103 = obj97; - ref QuestSequence reference105 = ref span60[2]; + num++; + ref QuestSequence reference105 = ref span144[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1012850u, new Vector3(-62.882446f, 271.23285f, -5.661133f), 402); + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.Interact, 1012850u, new Vector3(-62.882446f, 271.23285f, -5.661133f), 402); obj99.Steps = list148; reference105 = obj99; - ref QuestSequence reference106 = ref span60[3]; + num++; + ref QuestSequence reference106 = ref span144[num]; QuestSequence obj100 = new QuestSequence { Sequence = 3 @@ -105988,7 +127625,9 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Duty, null, null, 402) + Span span149 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span149[index2] = new QuestStep(EInteractionType.Duty, null, null, 402) { DutyOptions = new DutyOptions { @@ -105998,19 +127637,23 @@ public static class AssemblyQuestLoader }; obj100.Steps = list149; reference106 = obj100; - span60[4] = new QuestSequence + num++; + span144[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference107 = ref span60[5]; + num++; + ref QuestSequence reference107 = ref span144[num]; QuestSequence obj101 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Duty, null, null, 402) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.Duty, null, null, 402) { DutyOptions = new DutyOptions { @@ -106019,7 +127662,8 @@ public static class AssemblyQuestLoader }; obj101.Steps = list150; reference107 = obj101; - ref QuestSequence reference108 = ref span60[6]; + num++; + ref QuestSequence reference108 = ref span144[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -106027,7 +127671,9 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) { StopDistance = 5f }; @@ -106040,21 +127686,26 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = "liza"; + Span span152 = CollectionsMarshal.AsSpan(list152); + index = 0; + span152[index] = "liza"; questRoot21.Author = list152; - num = 5; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span62 = CollectionsMarshal.AsSpan(list153); - ref QuestSequence reference109 = ref span62[0]; + index = 5; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + Span span153 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref QuestSequence reference109 = ref span153[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list154)[0]; + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref QuestStep reference110 = ref span154[num2]; QuestStep obj104 = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -106072,14 +127723,17 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 128; + Span span155 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span155[index3] = 128; obj105.InTerritory = list155; skipConditions5.AetheryteShortcutIf = obj105; obj104.SkipConditions = skipConditions5; reference110 = obj104; obj103.Steps = list154; reference109 = obj103; - ref QuestSequence reference111 = ref span62[1]; + num++; + ref QuestSequence reference111 = ref span153[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -106087,24 +127741,29 @@ public static class AssemblyQuestLoader num2 = 2; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span63 = CollectionsMarshal.AsSpan(list156); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span63[1] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + index2++; + span156[index2] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj106.Steps = list156; reference111 = obj106; - ref QuestSequence reference112 = ref span62[2]; + num++; + ref QuestSequence reference112 = ref span153[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list157)[0]; + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + ref QuestStep reference113 = ref span157[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2005518u, new Vector3(-275.16595f, 64.25574f, -197.34491f), 180) { StopDistance = 0.5f, @@ -106112,15 +127771,18 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - CollectionsMarshal.AsSpan(list158)[0] = 4399u; + index3 = 1; + List list158 = new List(index3); + CollectionsMarshal.SetCount(list158, index3); + Span span158 = CollectionsMarshal.AsSpan(list158); + num3 = 0; + span158[num3] = 4399u; obj108.KillEnemyDataIds = list158; reference113 = obj108; obj107.Steps = list157; reference112 = obj107; - ref QuestSequence reference114 = ref span62[3]; + num++; + ref QuestSequence reference114 = ref span153[num]; QuestSequence obj109 = new QuestSequence { Sequence = 3 @@ -106128,24 +127790,29 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 2005519u, new Vector3(-275.16595f, 64.25574f, -197.34491f), 180); + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.Interact, 2005519u, new Vector3(-275.16595f, 64.25574f, -197.34491f), 180); obj109.Steps = list159; reference114 = obj109; - ref QuestSequence reference115 = ref span62[4]; + num++; + ref QuestSequence reference115 = ref span153[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span64 = CollectionsMarshal.AsSpan(list160); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span64[1] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) + num2++; + span160[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) { NextQuestId = new QuestId(1672) }; @@ -106158,13 +127825,16 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "liza"; + Span span161 = CollectionsMarshal.AsSpan(list161); + index = 0; + span161[index] = "liza"; questRoot22.Author = list161; - num = 4; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span65 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference116 = ref span65[0]; + index = 4; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + Span span162 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference116 = ref span162[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -106172,8 +127842,9 @@ public static class AssemblyQuestLoader num2 = 2; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span66 = CollectionsMarshal.AsSpan(list163); - span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span163[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -106185,26 +127856,31 @@ public static class AssemblyQuestLoader } } }; - span66[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + index2++; + span163[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj111.Steps = list163; reference116 = obj111; - ref QuestSequence reference117 = ref span65[1]; + num++; + ref QuestSequence reference117 = ref span162[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - Span span67 = CollectionsMarshal.AsSpan(list164); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(620.5845f, -3.0527442f, 169.40678f), 139) + index2 = 2; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(620.5845f, -3.0527442f, 169.40678f), 139) { Fly = true }; - span67[1] = new QuestStep(EInteractionType.Interact, 1013137u, new Vector3(620.9657f, -3.002753f, 171.06885f), 139); + num2++; + span164[num2] = new QuestStep(EInteractionType.Interact, 1013137u, new Vector3(620.9657f, -3.002753f, 171.06885f), 139); obj112.Steps = list164; reference117 = obj112; - ref QuestSequence reference118 = ref span65[2]; + num++; + ref QuestSequence reference118 = ref span162[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -106212,26 +127888,31 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005520u, new Vector3(622.91907f, -3.0671387f, 171.6792f), 139) + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005520u, new Vector3(622.91907f, -3.0671387f, 171.6792f), 139) { StopDistance = 4.5f }; obj113.Steps = list165; reference118 = obj113; - ref QuestSequence reference119 = ref span65[3]; + num++; + ref QuestSequence reference119 = ref span162[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span68 = CollectionsMarshal.AsSpan(list166); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + index2 = 2; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true }; - span68[1] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) + num2++; + span166[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) { NextQuestId = new QuestId(1673) }; @@ -106244,13 +127925,16 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "liza"; + Span span167 = CollectionsMarshal.AsSpan(list167); + index = 0; + span167[index] = "liza"; questRoot23.Author = list167; - num = 7; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span69 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference120 = ref span69[0]; + index = 7; + List list168 = new List(index); + CollectionsMarshal.SetCount(list168, index); + Span span168 = CollectionsMarshal.AsSpan(list168); + num = 0; + ref QuestSequence reference120 = ref span168[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -106258,8 +127942,9 @@ public static class AssemblyQuestLoader num2 = 2; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span70 = CollectionsMarshal.AsSpan(list169); - span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -106271,24 +127956,28 @@ public static class AssemblyQuestLoader } } }; - span70[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + index2++; + span169[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj115.Steps = list169; reference120 = obj115; - ref QuestSequence reference121 = ref span69[1]; + num++; + ref QuestSequence reference121 = ref span168[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - Span span71 = CollectionsMarshal.AsSpan(list170); - span71[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-289.83594f, 70.47664f, -272.06448f), 180) + index2 = 2; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-289.83594f, 70.47664f, -272.06448f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; - ref QuestStep reference122 = ref span71[1]; + num2++; + ref QuestStep reference122 = ref span170[num2]; QuestStep obj117 = new QuestStep(EInteractionType.Combat, 2005521u, new Vector3(-292.83594f, 72.15991f, -275.4101f), 180) { StopDistance = 0.5f, @@ -106298,7 +127987,9 @@ public static class AssemblyQuestLoader num3 = 1; List list171 = new List(num3); CollectionsMarshal.SetCount(list171, num3); - CollectionsMarshal.AsSpan(list171)[0] = new ComplexCombatData + Span span171 = CollectionsMarshal.AsSpan(list171); + index3 = 0; + span171[index3] = new ComplexCombatData { DataId = 30u, NameId = 4108u @@ -106307,7 +127998,8 @@ public static class AssemblyQuestLoader reference122 = obj117; obj116.Steps = list170; reference121 = obj116; - ref QuestSequence reference123 = ref span69[2]; + num++; + ref QuestSequence reference123 = ref span168[num]; QuestSequence obj118 = new QuestSequence { Sequence = 2 @@ -106315,17 +128007,21 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - ref QuestStep reference124 = ref CollectionsMarshal.AsSpan(list172)[0]; + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + ref QuestStep reference124 = ref span172[index2]; QuestStep obj119 = new QuestStep(EInteractionType.Combat, 2005522u, new Vector3(-302.05237f, 70.81714f, -292.28656f), 180) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - CollectionsMarshal.AsSpan(list173)[0] = new ComplexCombatData + index3 = 1; + List list173 = new List(index3); + CollectionsMarshal.SetCount(list173, index3); + Span span173 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span173[num3] = new ComplexCombatData { DataId = 30u, NameId = 4108u @@ -106334,22 +128030,26 @@ public static class AssemblyQuestLoader reference124 = obj119; obj118.Steps = list172; reference123 = obj118; - ref QuestSequence reference125 = ref span69[3]; + num++; + ref QuestSequence reference125 = ref span168[num]; QuestSequence obj120 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 2005523u, new Vector3(-370.04657f, 65.69006f, -307.75922f), 180) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.Interact, 2005523u, new Vector3(-370.04657f, 65.69006f, -307.75922f), 180) { StopDistance = 0.5f, Fly = true }; obj120.Steps = list174; reference125 = obj120; - ref QuestSequence reference126 = ref span69[4]; + num++; + ref QuestSequence reference126 = ref span168[num]; QuestSequence obj121 = new QuestSequence { Sequence = 4 @@ -106357,7 +128057,9 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list175)[0]; + Span span175 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + ref QuestStep reference127 = ref span175[index2]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 2005530u, new Vector3(-381.55188f, 52.475708f, -298.93958f), 180) { StopDistance = 2f, @@ -106367,23 +128069,29 @@ public static class AssemblyQuestLoader num3 = 1; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = 4371u; + Span span176 = CollectionsMarshal.AsSpan(list176); + index3 = 0; + span176[index3] = 4371u; obj122.KillEnemyDataIds = list176; reference127 = obj122; obj121.Steps = list175; reference126 = obj121; - ref QuestSequence reference128 = ref span69[5]; + num++; + ref QuestSequence reference128 = ref span168[num]; QuestSequence obj123 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 2005531u, new Vector3(-381.55188f, 52.8114f, -298.909f), 180); + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.Interact, 2005531u, new Vector3(-381.55188f, 52.8114f, -298.909f), 180); obj123.Steps = list177; reference128 = obj123; - ref QuestSequence reference129 = ref span69[6]; + num++; + ref QuestSequence reference129 = ref span168[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -106391,13 +128099,15 @@ public static class AssemblyQuestLoader num2 = 2; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span72 = CollectionsMarshal.AsSpan(list178); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span72[1] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) + index2++; + span178[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) { NextQuestId = new QuestId(1674) }; @@ -106410,22 +128120,26 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "liza"; + Span span179 = CollectionsMarshal.AsSpan(list179); + index = 0; + span179[index] = "liza"; questRoot24.Author = list179; - num = 6; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span73 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference130 = ref span73[0]; + index = 6; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + Span span180 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference130 = ref span180[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - Span span74 = CollectionsMarshal.AsSpan(list181); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + index2 = 2; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span181[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -106437,10 +128151,12 @@ public static class AssemblyQuestLoader } } }; - span74[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + num2++; + span181[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj125.Steps = list181; reference130 = obj125; - ref QuestSequence reference131 = ref span73[1]; + num++; + ref QuestSequence reference131 = ref span180[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -106448,21 +128164,26 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.Interact, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) { Fly = true }; obj126.Steps = list182; reference131 = obj126; - ref QuestSequence reference132 = ref span73[2]; + num++; + ref QuestSequence reference132 = ref span180[num]; QuestSequence obj127 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Say, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span183[num2] = new QuestStep(EInteractionType.Say, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) { ChatMessage = new ChatMessage { @@ -106471,7 +128192,8 @@ public static class AssemblyQuestLoader }; obj127.Steps = list183; reference132 = obj127; - ref QuestSequence reference133 = ref span73[3]; + num++; + ref QuestSequence reference133 = ref span180[num]; QuestSequence obj128 = new QuestSequence { Sequence = 3 @@ -106479,7 +128201,9 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Say, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) + Span span184 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span184[index2] = new QuestStep(EInteractionType.Say, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) { ChatMessage = new ChatMessage { @@ -106488,32 +128212,38 @@ public static class AssemblyQuestLoader }; obj128.Steps = list184; reference133 = obj128; - ref QuestSequence reference134 = ref span73[4]; + num++; + ref QuestSequence reference134 = ref span180[num]; QuestSequence obj129 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list185)[0]; + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + ref QuestStep reference135 = ref span185[num2]; QuestStep obj130 = new QuestStep(EInteractionType.Combat, 1013139u, new Vector3(700.9536f, -0.50953937f, 133.28748f), 139) { Fly = true, Emote = EEmote.Laugh, EnemySpawnType = EEnemySpawnType.AfterEmote }; - num3 = 2; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - Span span75 = CollectionsMarshal.AsSpan(list186); - span75[0] = 4400u; - span75[1] = 4401u; + index3 = 2; + List list186 = new List(index3); + CollectionsMarshal.SetCount(list186, index3); + Span span186 = CollectionsMarshal.AsSpan(list186); + num3 = 0; + span186[num3] = 4400u; + num3++; + span186[num3] = 4401u; obj130.KillEnemyDataIds = list186; reference135 = obj130; obj129.Steps = list185; reference134 = obj129; - ref QuestSequence reference136 = ref span73[5]; + num++; + ref QuestSequence reference136 = ref span180[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -106521,7 +128251,9 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) + Span span187 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span187[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) { Fly = true, NextQuestId = new QuestId(1675) @@ -106535,22 +128267,26 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; + Span span188 = CollectionsMarshal.AsSpan(list188); + index = 0; + span188[index] = "liza"; questRoot25.Author = list188; - num = 6; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span76 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference137 = ref span76[0]; + index = 6; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + Span span189 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference137 = ref span189[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - Span span77 = CollectionsMarshal.AsSpan(list190); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + index2 = 2; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span190[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -106562,10 +128298,12 @@ public static class AssemblyQuestLoader } } }; - span77[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + num2++; + span190[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj132.Steps = list190; reference137 = obj132; - ref QuestSequence reference138 = ref span76[1]; + num++; + ref QuestSequence reference138 = ref span189[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -106573,7 +128311,9 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) + Span span191 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span191[index2] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -106584,22 +128324,26 @@ public static class AssemblyQuestLoader }; obj133.Steps = list191; reference138 = obj133; - ref QuestSequence reference139 = ref span76[2]; + num++; + ref QuestSequence reference139 = ref span189[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span192[num2] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj134.Steps = list192; reference139 = obj134; - ref QuestSequence reference140 = ref span76[3]; + num++; + ref QuestSequence reference140 = ref span189[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -106607,20 +128351,25 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1011234u, new Vector3(546.1356f, 217.90826f, 768.06274f), 397); + Span span193 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span193[index2] = new QuestStep(EInteractionType.Interact, 1011234u, new Vector3(546.1356f, 217.90826f, 768.06274f), 397); obj135.Steps = list193; reference140 = obj135; - ref QuestSequence reference141 = ref span76[4]; + num++; + ref QuestSequence reference141 = ref span189[num]; QuestSequence obj136 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span78 = CollectionsMarshal.AsSpan(list194); - span78[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.09424f, 217.9514f, 773.35565f), 397); - ref QuestStep reference142 = ref span78[1]; + index2 = 3; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.09424f, 217.9514f, 773.35565f), 397); + num2++; + ref QuestStep reference142 = ref span194[num2]; QuestStep obj137 = new QuestStep(EInteractionType.Combat, 2005525u, new Vector3(446.00586f, 140.82544f, -749.87415f), 397) { Fly = true, @@ -106629,24 +128378,34 @@ public static class AssemblyQuestLoader num3 = 1; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = 4374u; + Span span195 = CollectionsMarshal.AsSpan(list195); + index3 = 0; + span195[index3] = 4374u; obj137.KillEnemyDataIds = list195; - num3 = 6; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - Span span79 = CollectionsMarshal.AsSpan(list196); - span79[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = null; + index3 = 6; + List list196 = new List(index3); + CollectionsMarshal.SetCount(list196, index3); + Span span196 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + span196[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num3++; + span196[num3] = null; + num3++; + span196[num3] = null; + num3++; + span196[num3] = null; + num3++; + span196[num3] = null; + num3++; + span196[num3] = null; obj137.CompletionQuestVariablesFlags = list196; reference142 = obj137; - span78[2] = new QuestStep(EInteractionType.Interact, 2005525u, new Vector3(446.00586f, 140.82544f, -749.87415f), 397); + num2++; + span194[num2] = new QuestStep(EInteractionType.Interact, 2005525u, new Vector3(446.00586f, 140.82544f, -749.87415f), 397); obj136.Steps = list194; reference141 = obj136; - ref QuestSequence reference143 = ref span76[5]; + num++; + ref QuestSequence reference143 = ref span189[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -106654,13 +128413,15 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span80 = CollectionsMarshal.AsSpan(list197); - span80[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span80[1] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) + index2++; + span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) { NextQuestId = new QuestId(1676) }; @@ -106673,22 +128434,26 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "liza"; + Span span198 = CollectionsMarshal.AsSpan(list198); + index = 0; + span198[index] = "liza"; questRoot26.Author = list198; - num = 6; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span81 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference144 = ref span81[0]; + index = 6; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + Span span199 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference144 = ref span199[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - Span span82 = CollectionsMarshal.AsSpan(list200); - span82[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + index2 = 2; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -106700,10 +128465,12 @@ public static class AssemblyQuestLoader } } }; - span82[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + num2++; + span200[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj139.Steps = list200; reference144 = obj139; - ref QuestSequence reference145 = ref span81[1]; + num++; + ref QuestSequence reference145 = ref span199[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -106711,29 +128478,35 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 2005528u, new Vector3(-381.5824f, 52.475708f, -298.81744f), 180) + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.Interact, 2005528u, new Vector3(-381.5824f, 52.475708f, -298.81744f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj140.Steps = list201; reference145 = obj140; - ref QuestSequence reference146 = ref span81[2]; + num++; + ref QuestSequence reference146 = ref span199[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 2005529u, new Vector3(290.15015f, 41.275635f, -193.83539f), 139) + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.Interact, 2005529u, new Vector3(290.15015f, 41.275635f, -193.83539f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; obj141.Steps = list202; reference146 = obj141; - ref QuestSequence reference147 = ref span81[3]; + num++; + ref QuestSequence reference147 = ref span199[num]; QuestSequence obj142 = new QuestSequence { Sequence = 3 @@ -106741,81 +128514,114 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013143u, new Vector3(405.1117f, 4.109556f, 81.04065f), 139) + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span203[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013143u, new Vector3(405.1117f, 4.109556f, 81.04065f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; obj142.Steps = list203; reference147 = obj142; - ref QuestSequence reference148 = ref span81[4]; + num++; + ref QuestSequence reference148 = ref span199[num]; QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - Span span83 = CollectionsMarshal.AsSpan(list204); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(489.20578f, 16.495434f, 69.11804f), 139); - ref QuestStep reference149 = ref span83[1]; + index2 = 5; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(489.20578f, 16.495434f, 69.11804f), 139); + num2++; + ref QuestStep reference149 = ref span204[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1013146u, new Vector3(489.73828f, 16.495436f, 67.33801f), 139); num3 = 6; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - Span span84 = CollectionsMarshal.AsSpan(list205); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span205 = CollectionsMarshal.AsSpan(list205); + index3 = 0; + span205[index3] = null; + index3++; + span205[index3] = null; + index3++; + span205[index3] = null; + index3++; + span205[index3] = null; + index3++; + span205[index3] = null; + index3++; + span205[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list205; reference149 = questStep7; - ref QuestStep reference150 = ref span83[2]; + num2++; + ref QuestStep reference150 = ref span204[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1013147u, new Vector3(487.84607f, 16.495436f, 68.0094f), 139); - num3 = 6; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - Span span85 = CollectionsMarshal.AsSpan(list206); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list206 = new List(index3); + CollectionsMarshal.SetCount(list206, index3); + Span span206 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list206; reference150 = questStep8; - ref QuestStep reference151 = ref span83[3]; + num2++; + ref QuestStep reference151 = ref span204[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1013148u, new Vector3(489.64673f, 16.495436f, 70.573f), 139); num3 = 6; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - Span span86 = CollectionsMarshal.AsSpan(list207); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span207 = CollectionsMarshal.AsSpan(list207); + index3 = 0; + span207[index3] = null; + index3++; + span207[index3] = null; + index3++; + span207[index3] = null; + index3++; + span207[index3] = null; + index3++; + span207[index3] = null; + index3++; + span207[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list207; reference151 = questStep9; - ref QuestStep reference152 = ref span83[4]; + num2++; + ref QuestStep reference152 = ref span204[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1013198u, new Vector3(487.47998f, 16.495436f, 70.35925f), 139); - num3 = 6; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - Span span87 = CollectionsMarshal.AsSpan(list208); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + Span span208 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span208[num3] = null; + num3++; + span208[num3] = null; + num3++; + span208[num3] = null; + num3++; + span208[num3] = null; + num3++; + span208[num3] = null; + num3++; + span208[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list208; reference152 = questStep10; obj143.Steps = list204; reference148 = obj143; - ref QuestSequence reference153 = ref span81[5]; + num++; + ref QuestSequence reference153 = ref span199[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -106823,7 +128629,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013199u, new Vector3(491.47778f, 16.495434f, 69.16907f), 139) + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013199u, new Vector3(491.47778f, 16.495434f, 69.16907f), 139) { NextQuestId = new QuestId(2923) }; @@ -106836,21 +128644,26 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "JerryWester"; + Span span210 = CollectionsMarshal.AsSpan(list210); + index = 0; + span210[index] = "JerryWester"; questRoot27.Author = list210; - num = 4; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - Span span88 = CollectionsMarshal.AsSpan(list211); - ref QuestSequence reference154 = ref span88[0]; + index = 4; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + Span span211 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference154 = ref span211[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013282u, new Vector3(304.1886f, -36.405907f, 332.69226f), 138) + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span212[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013282u, new Vector3(304.1886f, -36.405907f, 332.69226f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -106863,7 +128676,8 @@ public static class AssemblyQuestLoader }; obj145.Steps = list212; reference154 = obj145; - ref QuestSequence reference155 = ref span88[1]; + num++; + ref QuestSequence reference155 = ref span211[num]; QuestSequence obj146 = new QuestSequence { Sequence = 1 @@ -106871,35 +128685,41 @@ public static class AssemblyQuestLoader num2 = 2; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span89 = CollectionsMarshal.AsSpan(list213); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + Span span213 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span213[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span89[1] = new QuestStep(EInteractionType.Interact, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139); + index2++; + span213[index2] = new QuestStep(EInteractionType.Interact, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139); obj146.Steps = list213; reference155 = obj146; - ref QuestSequence reference156 = ref span88[2]; + num++; + ref QuestSequence reference156 = ref span211[num]; QuestSequence obj147 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - Span span90 = CollectionsMarshal.AsSpan(list214); - span90[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + index2 = 2; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + Span span214 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span214[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Mount = true }; - span90[1] = new QuestStep(EInteractionType.Interact, 1013339u, new Vector3(396.16992f, 8.113181f, 48.142212f), 139) + num2++; + span214[num2] = new QuestStep(EInteractionType.Interact, 1013339u, new Vector3(396.16992f, 8.113181f, 48.142212f), 139) { Fly = true }; obj147.Steps = list214; reference156 = obj147; - ref QuestSequence reference157 = ref span88[3]; + num++; + ref QuestSequence reference157 = ref span211[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue @@ -106907,12 +128727,14 @@ public static class AssemblyQuestLoader num2 = 2; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - Span span91 = CollectionsMarshal.AsSpan(list215); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + Span span215 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span215[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true }; - span91[1] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + index2++; + span215[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { NextQuestId = new QuestId(598) }; @@ -106925,21 +128747,26 @@ public static class AssemblyQuestLoader num = 1; List list216 = new List(num); CollectionsMarshal.SetCount(list216, num); - CollectionsMarshal.AsSpan(list216)[0] = "liza"; + Span span216 = CollectionsMarshal.AsSpan(list216); + index = 0; + span216[index] = "liza"; questRoot28.Author = list216; - num = 4; - List list217 = new List(num); - CollectionsMarshal.SetCount(list217, num); - Span span92 = CollectionsMarshal.AsSpan(list217); - ref QuestSequence reference158 = ref span92[0]; + index = 4; + List list217 = new List(index); + CollectionsMarshal.SetCount(list217, index); + Span span217 = CollectionsMarshal.AsSpan(list217); + num = 0; + ref QuestSequence reference158 = ref span217[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list218)[0]; + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + ref QuestStep reference159 = ref span218[num2]; QuestStep obj150 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -106957,14 +128784,17 @@ public static class AssemblyQuestLoader num3 = 1; List list219 = new List(num3); CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = 131; + Span span219 = CollectionsMarshal.AsSpan(list219); + index3 = 0; + span219[index3] = 131; obj151.InTerritory = list219; skipConditions6.AetheryteShortcutIf = obj151; obj150.SkipConditions = skipConditions6; reference159 = obj150; obj149.Steps = list218; reference158 = obj149; - ref QuestSequence reference160 = ref span92[1]; + num++; + ref QuestSequence reference160 = ref span217[num]; QuestSequence obj152 = new QuestSequence { Sequence = 1 @@ -106972,32 +128802,38 @@ public static class AssemblyQuestLoader num2 = 2; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span93 = CollectionsMarshal.AsSpan(list220); - span93[0] = new QuestStep(EInteractionType.Interact, 1004597u, new Vector3(-292.10345f, -2.910112f, 245.59387f), 146) + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span220[index2] = new QuestStep(EInteractionType.Interact, 1004597u, new Vector3(-292.10345f, -2.910112f, 245.59387f), 146) { TargetTerritoryId = (ushort)146, Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; - span93[1] = new QuestStep(EInteractionType.Interact, 1013042u, new Vector3(-465.93427f, -3.164927f, 66.666626f), 146); + index2++; + span220[index2] = new QuestStep(EInteractionType.Interact, 1013042u, new Vector3(-465.93427f, -3.164927f, 66.666626f), 146); obj152.Steps = list220; reference160 = obj152; - ref QuestSequence reference161 = ref span92[2]; + num++; + ref QuestSequence reference161 = ref span217[num]; QuestSequence obj153 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1013043u, new Vector3(184.6189f, 3.1809216f, -334.27942f), 145) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span221[num2] = new QuestStep(EInteractionType.Interact, 1013043u, new Vector3(184.6189f, 3.1809216f, -334.27942f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj153.Steps = list221; reference161 = obj153; - ref QuestSequence reference162 = ref span92[3]; + num++; + ref QuestSequence reference162 = ref span217[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue @@ -107005,7 +128841,9 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + Span span222 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span222[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -107024,21 +128862,26 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - CollectionsMarshal.AsSpan(list223)[0] = "liza"; + Span span223 = CollectionsMarshal.AsSpan(list223); + index = 0; + span223[index] = "liza"; questRoot29.Author = list223; - num = 5; - List list224 = new List(num); - CollectionsMarshal.SetCount(list224, num); - Span span94 = CollectionsMarshal.AsSpan(list224); - ref QuestSequence reference163 = ref span94[0]; + index = 5; + List list224 = new List(index); + CollectionsMarshal.SetCount(list224, index); + Span span224 = CollectionsMarshal.AsSpan(list224); + num = 0; + ref QuestSequence reference163 = ref span224[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - ref QuestStep reference164 = ref CollectionsMarshal.AsSpan(list225)[0]; + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + ref QuestStep reference164 = ref span225[num2]; QuestStep obj156 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -107053,17 +128896,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = 131; + index3 = 1; + List list226 = new List(index3); + CollectionsMarshal.SetCount(list226, index3); + Span span226 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + span226[num3] = 131; obj157.InTerritory = list226; skipConditions7.AetheryteShortcutIf = obj157; obj156.SkipConditions = skipConditions7; reference164 = obj156; obj155.Steps = list225; reference163 = obj155; - ref QuestSequence reference165 = ref span94[1]; + num++; + ref QuestSequence reference165 = ref span224[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -107071,22 +128917,27 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj158.Steps = list227; reference165 = obj158; - ref QuestSequence reference166 = ref span94[2]; + num++; + ref QuestSequence reference166 = ref span224[num]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - ref QuestStep reference167 = ref CollectionsMarshal.AsSpan(list228)[0]; + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + ref QuestStep reference167 = ref span228[num2]; QuestStep obj160 = new QuestStep(EInteractionType.Interact, 1013044u, new Vector3(191.72961f, -1.9153122f, 32.944214f), 145) { Fly = true @@ -107094,7 +128945,9 @@ public static class AssemblyQuestLoader num3 = 1; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - CollectionsMarshal.AsSpan(list229)[0] = new DialogueChoice + Span span229 = CollectionsMarshal.AsSpan(list229); + index3 = 0; + span229[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBLM520_01679_Q1_000_000"), @@ -107104,7 +128957,8 @@ public static class AssemblyQuestLoader reference167 = obj160; obj159.Steps = list228; reference166 = obj159; - ref QuestSequence reference168 = ref span94[3]; + num++; + ref QuestSequence reference168 = ref span224[num]; QuestSequence obj161 = new QuestSequence { Sequence = 3 @@ -107112,21 +128966,26 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span230[index2] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true }; obj161.Steps = list230; reference168 = obj161; - ref QuestSequence reference169 = ref span94[4]; + num++; + ref QuestSequence reference169 = ref span224[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -107145,13 +129004,16 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - CollectionsMarshal.AsSpan(list232)[0] = "liza"; + Span span232 = CollectionsMarshal.AsSpan(list232); + index = 0; + span232[index] = "liza"; questRoot30.Author = list232; - num = 6; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - Span span95 = CollectionsMarshal.AsSpan(list233); - ref QuestSequence reference170 = ref span95[0]; + index = 6; + List list233 = new List(index); + CollectionsMarshal.SetCount(list233, index); + Span span233 = CollectionsMarshal.AsSpan(list233); + num = 0; + ref QuestSequence reference170 = ref span233[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 @@ -107159,7 +129021,9 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - ref QuestStep reference171 = ref CollectionsMarshal.AsSpan(list234)[0]; + Span span234 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + ref QuestStep reference171 = ref span234[index2]; QuestStep obj164 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -107174,32 +129038,38 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - CollectionsMarshal.AsSpan(list235)[0] = 131; + index3 = 1; + List list235 = new List(index3); + CollectionsMarshal.SetCount(list235, index3); + Span span235 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + span235[num3] = 131; obj165.InTerritory = list235; skipConditions8.AetheryteShortcutIf = obj165; obj164.SkipConditions = skipConditions8; reference171 = obj164; obj163.Steps = list234; reference170 = obj163; - ref QuestSequence reference172 = ref span95[1]; + num++; + ref QuestSequence reference172 = ref span233[num]; QuestSequence obj166 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1013047u, new Vector3(409.4757f, -3.3999999f, 198.99292f), 139) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.Interact, 1013047u, new Vector3(409.4757f, -3.3999999f, 198.99292f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; obj166.Steps = list236; reference172 = obj166; - ref QuestSequence reference173 = ref span95[2]; + num++; + ref QuestSequence reference173 = ref span233[num]; QuestSequence obj167 = new QuestSequence { Sequence = 2 @@ -107207,21 +129077,26 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 2005469u, new Vector3(377.6454f, 0.77819824f, -3.616455f), 139) + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span237[index2] = new QuestStep(EInteractionType.Interact, 2005469u, new Vector3(377.6454f, 0.77819824f, -3.616455f), 139) { Fly = true }; obj167.Steps = list237; reference173 = obj167; - ref QuestSequence reference174 = ref span95[3]; + num++; + ref QuestSequence reference174 = ref span233[num]; QuestSequence obj168 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - ref QuestStep reference175 = ref CollectionsMarshal.AsSpan(list238)[0]; + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + ref QuestStep reference175 = ref span238[num2]; QuestStep obj169 = new QuestStep(EInteractionType.Combat, null, new Vector3(397.41708f, -3.3999999f, 10.57353f), 139) { StopDistance = 0.5f, @@ -107230,12 +129105,15 @@ public static class AssemblyQuestLoader num3 = 1; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = 5049u; + Span span239 = CollectionsMarshal.AsSpan(list239); + index3 = 0; + span239[index3] = 5049u; obj169.KillEnemyDataIds = list239; reference175 = obj169; obj168.Steps = list238; reference174 = obj168; - ref QuestSequence reference176 = ref span95[4]; + num++; + ref QuestSequence reference176 = ref span233[num]; QuestSequence obj170 = new QuestSequence { Sequence = 4 @@ -107243,18 +129121,23 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1013048u, new Vector3(399.0996f, -3.3999999f, 11.215393f), 139); + Span span240 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span240[index2] = new QuestStep(EInteractionType.Interact, 1013048u, new Vector3(399.0996f, -3.3999999f, 11.215393f), 139); obj170.Steps = list240; reference176 = obj170; - ref QuestSequence reference177 = ref span95[5]; + num++; + ref QuestSequence reference177 = ref span233[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + Span span241 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span241[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -107273,13 +129156,16 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "liza"; + Span span242 = CollectionsMarshal.AsSpan(list242); + index = 0; + span242[index] = "liza"; questRoot31.Author = list242; - num = 4; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span96 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference178 = ref span96[0]; + index = 4; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + Span span243 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference178 = ref span243[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -107287,7 +129173,9 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - ref QuestStep reference179 = ref CollectionsMarshal.AsSpan(list244)[0]; + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + ref QuestStep reference179 = ref span244[index2]; QuestStep obj173 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -107302,25 +129190,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list245 = new List(num3); - CollectionsMarshal.SetCount(list245, num3); - CollectionsMarshal.AsSpan(list245)[0] = 131; + index3 = 1; + List list245 = new List(index3); + CollectionsMarshal.SetCount(list245, index3); + Span span245 = CollectionsMarshal.AsSpan(list245); + num3 = 0; + span245[num3] = 131; obj174.InTerritory = list245; skipConditions9.AetheryteShortcutIf = obj174; obj173.SkipConditions = skipConditions9; reference179 = obj173; obj172.Steps = list244; reference178 = obj172; - ref QuestSequence reference180 = ref span96[1]; + num++; + ref QuestSequence reference180 = ref span243[num]; QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - ref QuestStep reference181 = ref CollectionsMarshal.AsSpan(list246)[0]; + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + ref QuestStep reference181 = ref span246[num2]; QuestStep obj176 = new QuestStep(EInteractionType.Combat, null, new Vector3(-173.73607f, -61.73199f, 370.57892f), 154) { StopDistance = 0.5f, @@ -107331,12 +129224,15 @@ public static class AssemblyQuestLoader num3 = 1; List list247 = new List(num3); CollectionsMarshal.SetCount(list247, num3); - CollectionsMarshal.AsSpan(list247)[0] = 4360u; + Span span247 = CollectionsMarshal.AsSpan(list247); + index3 = 0; + span247[index3] = 4360u; obj176.KillEnemyDataIds = list247; reference181 = obj176; obj175.Steps = list246; reference180 = obj175; - ref QuestSequence reference182 = ref span96[2]; + num++; + ref QuestSequence reference182 = ref span243[num]; QuestSequence obj177 = new QuestSequence { Sequence = 2 @@ -107344,18 +129240,23 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1013055u, new Vector3(-175.1278f, -61.86741f, 371.99963f), 154); + Span span248 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span248[index2] = new QuestStep(EInteractionType.Interact, 1013055u, new Vector3(-175.1278f, -61.86741f, 371.99963f), 154); obj177.Steps = list248; reference182 = obj177; - ref QuestSequence reference183 = ref span96[3]; + num++; + ref QuestSequence reference183 = ref span243[num]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - ref QuestStep reference184 = ref CollectionsMarshal.AsSpan(list249)[0]; + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + Span span249 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + ref QuestStep reference184 = ref span249[num2]; QuestStep obj179 = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -107365,10 +129266,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - num3 = 1; - List list250 = new List(num3); - CollectionsMarshal.SetCount(list250, num3); - CollectionsMarshal.AsSpan(list250)[0] = new DialogueChoice + index3 = 1; + List list250 = new List(index3); + CollectionsMarshal.SetCount(list250, index3); + Span span250 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + span250[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBLM560_01681_Q1_000_000"), @@ -107386,13 +129289,16 @@ public static class AssemblyQuestLoader num = 1; List list251 = new List(num); CollectionsMarshal.SetCount(list251, num); - CollectionsMarshal.AsSpan(list251)[0] = "liza"; + Span span251 = CollectionsMarshal.AsSpan(list251); + index = 0; + span251[index] = "liza"; questRoot32.Author = list251; - num = 7; - List list252 = new List(num); - CollectionsMarshal.SetCount(list252, num); - Span span97 = CollectionsMarshal.AsSpan(list252); - ref QuestSequence reference185 = ref span97[0]; + index = 7; + List list252 = new List(index); + CollectionsMarshal.SetCount(list252, index); + Span span252 = CollectionsMarshal.AsSpan(list252); + num = 0; + ref QuestSequence reference185 = ref span252[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 @@ -107400,7 +129306,9 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - ref QuestStep reference186 = ref CollectionsMarshal.AsSpan(list253)[0]; + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + ref QuestStep reference186 = ref span253[index2]; QuestStep obj181 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -107418,22 +129326,27 @@ public static class AssemblyQuestLoader num3 = 1; List list254 = new List(num3); CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = 131; + Span span254 = CollectionsMarshal.AsSpan(list254); + index3 = 0; + span254[index3] = 131; obj182.InTerritory = list254; skipConditions10.AetheryteShortcutIf = obj182; obj181.SkipConditions = skipConditions10; reference186 = obj181; obj180.Steps = list253; reference185 = obj180; - ref QuestSequence reference187 = ref span97[1]; + num++; + ref QuestSequence reference187 = ref span252[num]; QuestSequence obj183 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1013059u, new Vector3(30.411133f, 7.1999984f, -103.07471f), 130) + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span255 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span255[num2] = new QuestStep(EInteractionType.Interact, 1013059u, new Vector3(30.411133f, 7.1999984f, -103.07471f), 130) { AethernetShortcut = new AethernetShortcut { @@ -107443,7 +129356,8 @@ public static class AssemblyQuestLoader }; obj183.Steps = list255; reference187 = obj183; - ref QuestSequence reference188 = ref span97[2]; + num++; + ref QuestSequence reference188 = ref span252[num]; QuestSequence obj184 = new QuestSequence { Sequence = 2 @@ -107451,7 +129365,9 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1013060u, new Vector3(26.04712f, 1.2752796f, 92.851074f), 418) + Span span256 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span256[index2] = new QuestStep(EInteractionType.Interact, 1013060u, new Vector3(26.04712f, 1.2752796f, 92.851074f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -107462,15 +129378,18 @@ public static class AssemblyQuestLoader }; obj184.Steps = list256; reference188 = obj184; - ref QuestSequence reference189 = ref span97[3]; + num++; + ref QuestSequence reference189 = ref span252[num]; QuestSequence obj185 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1013061u, new Vector3(-277.69897f, 124.9653f, -19.394226f), 397) + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span257 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span257[num2] = new QuestStep(EInteractionType.Interact, 1013061u, new Vector3(-277.69897f, 124.9653f, -19.394226f), 397) { StopDistance = 1.5f, Fly = true, @@ -107478,7 +129397,8 @@ public static class AssemblyQuestLoader }; obj185.Steps = list257; reference189 = obj185; - ref QuestSequence reference190 = ref span97[4]; + num++; + ref QuestSequence reference190 = ref span252[num]; QuestSequence obj186 = new QuestSequence { Sequence = 4 @@ -107486,60 +129406,84 @@ public static class AssemblyQuestLoader num2 = 3; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span98 = CollectionsMarshal.AsSpan(list258); - ref QuestStep reference191 = ref span98[0]; + Span span258 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + ref QuestStep reference191 = ref span258[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1013064u, new Vector3(-308.33905f, 126.09976f, -14.847046f), 397); - num3 = 6; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - Span span99 = CollectionsMarshal.AsSpan(list259); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list259 = new List(index3); + CollectionsMarshal.SetCount(list259, index3); + Span span259 = CollectionsMarshal.AsSpan(list259); + num3 = 0; + span259[num3] = null; + num3++; + span259[num3] = null; + num3++; + span259[num3] = null; + num3++; + span259[num3] = null; + num3++; + span259[num3] = null; + num3++; + span259[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list259; reference191 = questStep11; - ref QuestStep reference192 = ref span98[1]; + index2++; + ref QuestStep reference192 = ref span258[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1013062u, new Vector3(-301.99133f, 126.85933f, 4.8981323f), 397); num3 = 6; List list260 = new List(num3); CollectionsMarshal.SetCount(list260, num3); - Span span100 = CollectionsMarshal.AsSpan(list260); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span260 = CollectionsMarshal.AsSpan(list260); + index3 = 0; + span260[index3] = null; + index3++; + span260[index3] = null; + index3++; + span260[index3] = null; + index3++; + span260[index3] = null; + index3++; + span260[index3] = null; + index3++; + span260[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list260; reference192 = questStep12; - ref QuestStep reference193 = ref span98[2]; + index2++; + ref QuestStep reference193 = ref span258[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1013063u, new Vector3(-284.44348f, 127.18384f, 11.825684f), 397); - num3 = 6; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - Span span101 = CollectionsMarshal.AsSpan(list261); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list261 = new List(index3); + CollectionsMarshal.SetCount(list261, index3); + Span span261 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span261[num3] = null; + num3++; + span261[num3] = null; + num3++; + span261[num3] = null; + num3++; + span261[num3] = null; + num3++; + span261[num3] = null; + num3++; + span261[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list261; reference193 = questStep13; obj186.Steps = list258; reference190 = obj186; - ref QuestSequence reference194 = ref span97[5]; + num++; + ref QuestSequence reference194 = ref span252[num]; QuestSequence obj187 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - ref QuestStep reference195 = ref CollectionsMarshal.AsSpan(list262)[0]; + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + ref QuestStep reference195 = ref span262[num2]; QuestStep obj188 = new QuestStep(EInteractionType.SinglePlayerDuty, 1013065u, new Vector3(-67.00244f, 98.04463f, 189.99011f), 397) { Fly = true @@ -107547,7 +129491,9 @@ public static class AssemblyQuestLoader num3 = 1; List list263 = new List(num3); CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = new DialogueChoice + Span span263 = CollectionsMarshal.AsSpan(list263); + index3 = 0; + span263[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBLM580_01682_Q1_000_000"), @@ -107557,7 +129503,8 @@ public static class AssemblyQuestLoader reference195 = obj188; obj187.Steps = list262; reference194 = obj187; - ref QuestSequence reference196 = ref span97[6]; + num++; + ref QuestSequence reference196 = ref span252[num]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue @@ -107565,7 +129512,9 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + Span span264 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span264[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -107584,21 +129533,26 @@ public static class AssemblyQuestLoader num = 1; List list265 = new List(num); CollectionsMarshal.SetCount(list265, num); - CollectionsMarshal.AsSpan(list265)[0] = "liza"; + Span span265 = CollectionsMarshal.AsSpan(list265); + index = 0; + span265[index] = "liza"; questRoot33.Author = list265; - num = 6; - List list266 = new List(num); - CollectionsMarshal.SetCount(list266, num); - Span span102 = CollectionsMarshal.AsSpan(list266); - ref QuestSequence reference197 = ref span102[0]; + index = 6; + List list266 = new List(index); + CollectionsMarshal.SetCount(list266, index); + Span span266 = CollectionsMarshal.AsSpan(list266); + num = 0; + ref QuestSequence reference197 = ref span266[num]; QuestSequence obj190 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list267)[0]; + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + ref QuestStep reference198 = ref span267[num2]; QuestStep obj191 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -107613,17 +129567,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = 131; + index3 = 1; + List list268 = new List(index3); + CollectionsMarshal.SetCount(list268, index3); + Span span268 = CollectionsMarshal.AsSpan(list268); + num3 = 0; + span268[num3] = 131; obj192.InTerritory = list268; skipConditions11.AetheryteShortcutIf = obj192; obj191.SkipConditions = skipConditions11; reference198 = obj191; obj190.Steps = list267; reference197 = obj190; - ref QuestSequence reference199 = ref span102[1]; + num++; + ref QuestSequence reference199 = ref span266[num]; QuestSequence obj193 = new QuestSequence { Sequence = 1 @@ -107631,32 +129588,39 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013066u, new Vector3(385.27502f, -18.74231f, 273.0907f), 145) + Span span269 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span269[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013066u, new Vector3(385.27502f, -18.74231f, 273.0907f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj193.Steps = list269; reference199 = obj193; - span102[2] = new QuestSequence + num++; + span266[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference200 = ref span102[3]; + num++; + ref QuestSequence reference200 = ref span266[num]; QuestSequence obj194 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.Interact, 1013187u, new Vector3(476.73767f, -64.30186f, 234.2107f), 145) + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + Span span270 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span270[num2] = new QuestStep(EInteractionType.Interact, 1013187u, new Vector3(476.73767f, -64.30186f, 234.2107f), 145) { StopDistance = 5f }; obj194.Steps = list270; reference200 = obj194; - ref QuestSequence reference201 = ref span102[4]; + num++; + ref QuestSequence reference201 = ref span266[num]; QuestSequence obj195 = new QuestSequence { Sequence = 4 @@ -107664,64 +129628,89 @@ public static class AssemblyQuestLoader num2 = 4; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span103 = CollectionsMarshal.AsSpan(list271); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(341.93842f, 28.63408f, 66.419495f), 145) + Span span271 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span271[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(341.93842f, 28.63408f, 66.419495f), 145) { Fly = true }; - ref QuestStep reference202 = ref span103[1]; + index2++; + ref QuestStep reference202 = ref span271[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1013189u, new Vector3(322.89612f, 10.818874f, -8.46875f), 145); num3 = 6; List list272 = new List(num3); CollectionsMarshal.SetCount(list272, num3); - Span span104 = CollectionsMarshal.AsSpan(list272); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span272 = CollectionsMarshal.AsSpan(list272); + index3 = 0; + span272[index3] = null; + index3++; + span272[index3] = null; + index3++; + span272[index3] = null; + index3++; + span272[index3] = null; + index3++; + span272[index3] = null; + index3++; + span272[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list272; reference202 = questStep14; - ref QuestStep reference203 = ref span103[2]; + index2++; + ref QuestStep reference203 = ref span271[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145); - num3 = 6; - List list273 = new List(num3); - CollectionsMarshal.SetCount(list273, num3); - Span span105 = CollectionsMarshal.AsSpan(list273); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list273 = new List(index3); + CollectionsMarshal.SetCount(list273, index3); + Span span273 = CollectionsMarshal.AsSpan(list273); + num3 = 0; + span273[num3] = null; + num3++; + span273[num3] = null; + num3++; + span273[num3] = null; + num3++; + span273[num3] = null; + num3++; + span273[num3] = null; + num3++; + span273[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list273; reference203 = questStep15; - ref QuestStep reference204 = ref span103[3]; + index2++; + ref QuestStep reference204 = ref span271[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1013188u, new Vector3(327.96216f, 11.425721f, -6.7597656f), 145); num3 = 6; List list274 = new List(num3); CollectionsMarshal.SetCount(list274, num3); - Span span106 = CollectionsMarshal.AsSpan(list274); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span274 = CollectionsMarshal.AsSpan(list274); + index3 = 0; + span274[index3] = null; + index3++; + span274[index3] = null; + index3++; + span274[index3] = null; + index3++; + span274[index3] = null; + index3++; + span274[index3] = null; + index3++; + span274[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list274; reference204 = questStep16; obj195.Steps = list271; reference201 = obj195; - ref QuestSequence reference205 = ref span102[5]; + num++; + ref QuestSequence reference205 = ref span266[num]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -107740,13 +129729,16 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "xan"; + Span span276 = CollectionsMarshal.AsSpan(list276); + index = 0; + span276[index] = "xan"; questRoot34.Author = list276; - num = 5; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span107 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference206 = ref span107[0]; + index = 5; + List list277 = new List(index); + CollectionsMarshal.SetCount(list277, index); + Span span277 = CollectionsMarshal.AsSpan(list277); + num = 0; + ref QuestSequence reference206 = ref span277[num]; QuestSequence obj197 = new QuestSequence { Sequence = 0 @@ -107754,8 +129746,9 @@ public static class AssemblyQuestLoader num2 = 2; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span108 = CollectionsMarshal.AsSpan(list278); - span108[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span278 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span278[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -107771,32 +129764,38 @@ public static class AssemblyQuestLoader } } }; - span108[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span278[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj197.Steps = list278; reference206 = obj197; - ref QuestSequence reference207 = ref span107[1]; + num++; + ref QuestSequence reference207 = ref span277[num]; QuestSequence obj198 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - Span span109 = CollectionsMarshal.AsSpan(list279); - span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(227.31966f, -0.91833544f, 258.60855f), 139) + index2 = 3; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + Span span279 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span279[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(227.31966f, -0.91833544f, 258.60855f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span109[1] = new QuestStep(EInteractionType.Interact, 1003587u, new Vector3(220.90479f, -0.9591979f, 257.4043f), 139) + num2++; + span279[num2] = new QuestStep(EInteractionType.Interact, 1003587u, new Vector3(220.90479f, -0.9591979f, 257.4043f), 139) { TargetTerritoryId = (ushort)139, Mount = false }; - span109[2] = new QuestStep(EInteractionType.Interact, 1013893u, new Vector3(-335.2865f, -2.7013655f, 135.17957f), 139); + num2++; + span279[num2] = new QuestStep(EInteractionType.Interact, 1013893u, new Vector3(-335.2865f, -2.7013655f, 135.17957f), 139); obj198.Steps = list279; reference207 = obj198; - ref QuestSequence reference208 = ref span107[2]; + num++; + ref QuestSequence reference208 = ref span277[num]; QuestSequence obj199 = new QuestSequence { Sequence = 2 @@ -107804,96 +129803,127 @@ public static class AssemblyQuestLoader num2 = 3; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - Span span110 = CollectionsMarshal.AsSpan(list280); - ref QuestStep reference209 = ref span110[0]; + Span span280 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + ref QuestStep reference209 = ref span280[index2]; QuestStep obj200 = new QuestStep(EInteractionType.Combat, 2005925u, new Vector3(-449.08832f, -1.2055054f, 116.59412f), 139) { ItemId = 2001723u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 2; - List list281 = new List(num3); - CollectionsMarshal.SetCount(list281, num3); - Span span111 = CollectionsMarshal.AsSpan(list281); - span111[0] = 5048u; - span111[1] = 5046u; + index3 = 2; + List list281 = new List(index3); + CollectionsMarshal.SetCount(list281, index3); + Span span281 = CollectionsMarshal.AsSpan(list281); + num3 = 0; + span281[num3] = 5048u; + num3++; + span281[num3] = 5046u; obj200.KillEnemyDataIds = list281; num3 = 6; List list282 = new List(num3); CollectionsMarshal.SetCount(list282, num3); - Span span112 = CollectionsMarshal.AsSpan(list282); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span282 = CollectionsMarshal.AsSpan(list282); + index3 = 0; + span282[index3] = null; + index3++; + span282[index3] = null; + index3++; + span282[index3] = null; + index3++; + span282[index3] = null; + index3++; + span282[index3] = null; + index3++; + span282[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj200.CompletionQuestVariablesFlags = list282; reference209 = obj200; - ref QuestStep reference210 = ref span110[1]; + index2++; + ref QuestStep reference210 = ref span280[index2]; QuestStep obj201 = new QuestStep(EInteractionType.Combat, 2005926u, new Vector3(-424.24664f, -5.1728516f, 168.65796f), 139) { ItemId = 2001723u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 2; - List list283 = new List(num3); - CollectionsMarshal.SetCount(list283, num3); - Span span113 = CollectionsMarshal.AsSpan(list283); - span113[0] = 5046u; - span113[1] = 5048u; + index3 = 2; + List list283 = new List(index3); + CollectionsMarshal.SetCount(list283, index3); + Span span283 = CollectionsMarshal.AsSpan(list283); + num3 = 0; + span283[num3] = 5046u; + num3++; + span283[num3] = 5048u; obj201.KillEnemyDataIds = list283; num3 = 6; List list284 = new List(num3); CollectionsMarshal.SetCount(list284, num3); - Span span114 = CollectionsMarshal.AsSpan(list284); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span284 = CollectionsMarshal.AsSpan(list284); + index3 = 0; + span284[index3] = null; + index3++; + span284[index3] = null; + index3++; + span284[index3] = null; + index3++; + span284[index3] = null; + index3++; + span284[index3] = null; + index3++; + span284[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj201.CompletionQuestVariablesFlags = list284; reference210 = obj201; - ref QuestStep reference211 = ref span110[2]; + index2++; + ref QuestStep reference211 = ref span280[index2]; QuestStep obj202 = new QuestStep(EInteractionType.Combat, 2005927u, new Vector3(-457.75543f, -12.64978f, 218.92114f), 139) { ItemId = 2001723u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 2; - List list285 = new List(num3); - CollectionsMarshal.SetCount(list285, num3); - Span span115 = CollectionsMarshal.AsSpan(list285); - span115[0] = 5042u; - span115[1] = 4619u; + index3 = 2; + List list285 = new List(index3); + CollectionsMarshal.SetCount(list285, index3); + Span span285 = CollectionsMarshal.AsSpan(list285); + num3 = 0; + span285[num3] = 5042u; + num3++; + span285[num3] = 4619u; obj202.KillEnemyDataIds = list285; num3 = 6; List list286 = new List(num3); CollectionsMarshal.SetCount(list286, num3); - Span span116 = CollectionsMarshal.AsSpan(list286); - span116[0] = null; - span116[1] = null; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span286 = CollectionsMarshal.AsSpan(list286); + index3 = 0; + span286[index3] = null; + index3++; + span286[index3] = null; + index3++; + span286[index3] = null; + index3++; + span286[index3] = null; + index3++; + span286[index3] = null; + index3++; + span286[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj202.CompletionQuestVariablesFlags = list286; reference211 = obj202; obj199.Steps = list280; reference208 = obj199; - ref QuestSequence reference212 = ref span107[3]; + num++; + ref QuestSequence reference212 = ref span277[num]; QuestSequence obj203 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1013896u, new Vector3(-430.89954f, -12.362141f, 208.23987f), 139); + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + Span span287 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + span287[num2] = new QuestStep(EInteractionType.Interact, 1013896u, new Vector3(-430.89954f, -12.362141f, 208.23987f), 139); obj203.Steps = list287; reference212 = obj203; - ref QuestSequence reference213 = ref span107[4]; + num++; + ref QuestSequence reference213 = ref span277[num]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue @@ -107901,8 +129931,9 @@ public static class AssemblyQuestLoader num2 = 2; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - Span span117 = CollectionsMarshal.AsSpan(list288); - span117[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span288 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span288[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -107918,7 +129949,8 @@ public static class AssemblyQuestLoader } } }; - span117[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + index2++; + span288[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(1685) }; @@ -107931,22 +129963,26 @@ public static class AssemblyQuestLoader num = 1; List list289 = new List(num); CollectionsMarshal.SetCount(list289, num); - CollectionsMarshal.AsSpan(list289)[0] = "xan"; + Span span289 = CollectionsMarshal.AsSpan(list289); + index = 0; + span289[index] = "xan"; questRoot35.Author = list289; - num = 9; - List list290 = new List(num); - CollectionsMarshal.SetCount(list290, num); - Span span118 = CollectionsMarshal.AsSpan(list290); - ref QuestSequence reference214 = ref span118[0]; + index = 9; + List list290 = new List(index); + CollectionsMarshal.SetCount(list290, index); + Span span290 = CollectionsMarshal.AsSpan(list290); + num = 0; + ref QuestSequence reference214 = ref span290[num]; QuestSequence obj205 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - Span span119 = CollectionsMarshal.AsSpan(list291); - span119[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + Span span291 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span291[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -107962,10 +129998,12 @@ public static class AssemblyQuestLoader } } }; - span119[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + num2++; + span291[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj205.Steps = list291; reference214 = obj205; - ref QuestSequence reference215 = ref span118[1]; + num++; + ref QuestSequence reference215 = ref span290[num]; QuestSequence obj206 = new QuestSequence { Sequence = 1 @@ -107973,7 +130011,9 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - ref QuestStep reference216 = ref CollectionsMarshal.AsSpan(list292)[0]; + Span span292 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + ref QuestStep reference216 = ref span292[index2]; QuestStep obj207 = new QuestStep(EInteractionType.Interact, 1013898u, new Vector3(107.71338f, 68.15523f, 332.5094f), 135) { Fly = true, @@ -107986,10 +130026,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - CollectionsMarshal.AsSpan(list293)[0] = new DialogueChoice + index3 = 1; + List list293 = new List(index3); + CollectionsMarshal.SetCount(list293, index3); + Span span293 = CollectionsMarshal.AsSpan(list293); + num3 = 0; + span293[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN540_01685_Q1_000_000"), @@ -107999,21 +130041,25 @@ public static class AssemblyQuestLoader reference216 = obj207; obj206.Steps = list292; reference215 = obj206; - ref QuestSequence reference217 = ref span118[2]; + num++; + ref QuestSequence reference217 = ref span290[num]; QuestSequence obj208 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Action, 2005928u, new Vector3(-22.842834f, 66.300415f, 426.1692f), 135) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span294 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span294[num2] = new QuestStep(EInteractionType.Action, 2005928u, new Vector3(-22.842834f, 66.300415f, 426.1692f), 135) { Action = EAction.Raiton }; obj208.Steps = list294; reference217 = obj208; - ref QuestSequence reference218 = ref span118[3]; + num++; + ref QuestSequence reference218 = ref span290[num]; QuestSequence obj209 = new QuestSequence { Sequence = 3 @@ -108021,27 +130067,33 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Action, 2005929u, new Vector3(-46.707886f, 48.41687f, 529.1676f), 135) + Span span295 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span295[index2] = new QuestStep(EInteractionType.Action, 2005929u, new Vector3(-46.707886f, 48.41687f, 529.1676f), 135) { Action = EAction.Raiton }; obj209.Steps = list295; reference218 = obj209; - ref QuestSequence reference219 = ref span118[4]; + num++; + ref QuestSequence reference219 = ref span290[num]; QuestSequence obj210 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.Action, 2005930u, new Vector3(-93.888794f, 26.932129f, 623.25464f), 135) + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span296 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span296[num2] = new QuestStep(EInteractionType.Action, 2005930u, new Vector3(-93.888794f, 26.932129f, 623.25464f), 135) { Action = EAction.Raiton }; obj210.Steps = list296; reference219 = obj210; - ref QuestSequence reference220 = ref span118[5]; + num++; + ref QuestSequence reference220 = ref span290[num]; QuestSequence obj211 = new QuestSequence { Sequence = 5 @@ -108049,24 +130101,30 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005931u, new Vector3(-185.41241f, 0.015197754f, 678.8281f), 135) + Span span297 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span297[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005931u, new Vector3(-185.41241f, 0.015197754f, 678.8281f), 135) { Fly = true }; obj211.Steps = list297; reference220 = obj211; - ref QuestSequence reference221 = ref span118[6]; + num++; + ref QuestSequence reference221 = ref span290[num]; QuestSequence obj212 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.Interact, 1013906u, new Vector3(-136.88867f, 2.2586327f, 697.8407f), 135); + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + Span span298 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span298[num2] = new QuestStep(EInteractionType.Interact, 1013906u, new Vector3(-136.88867f, 2.2586327f, 697.8407f), 135); obj212.Steps = list298; reference221 = obj212; - ref QuestSequence reference222 = ref span118[7]; + num++; + ref QuestSequence reference222 = ref span290[num]; QuestSequence obj213 = new QuestSequence { Sequence = 7 @@ -108074,7 +130132,9 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - ref QuestStep reference223 = ref CollectionsMarshal.AsSpan(list299)[0]; + Span span299 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + ref QuestStep reference223 = ref span299[index2]; QuestStep obj214 = new QuestStep(EInteractionType.Interact, 1013908u, new Vector3(-38.010254f, 71.439964f, 111.95532f), 135) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -108089,23 +130149,27 @@ public static class AssemblyQuestLoader num3 = 1; List list300 = new List(num3); CollectionsMarshal.SetCount(list300, num3); - CollectionsMarshal.AsSpan(list300)[0] = 129; + Span span300 = CollectionsMarshal.AsSpan(list300); + index3 = 0; + span300[index3] = 129; skipAetheryteCondition.InTerritory = list300; skipConditions12.AetheryteShortcutIf = skipAetheryteCondition; obj214.SkipConditions = skipConditions12; reference223 = obj214; obj213.Steps = list299; reference222 = obj213; - ref QuestSequence reference224 = ref span118[8]; + num++; + ref QuestSequence reference224 = ref span290[num]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - Span span120 = CollectionsMarshal.AsSpan(list301); - span120[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + Span span301 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span301[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -108121,7 +130185,8 @@ public static class AssemblyQuestLoader } } }; - span120[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + num2++; + span301[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(1686) }; @@ -108134,13 +130199,16 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - CollectionsMarshal.AsSpan(list302)[0] = "xan"; + Span span302 = CollectionsMarshal.AsSpan(list302); + index = 0; + span302[index] = "xan"; questRoot36.Author = list302; - num = 6; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - Span span121 = CollectionsMarshal.AsSpan(list303); - ref QuestSequence reference225 = ref span121[0]; + index = 6; + List list303 = new List(index); + CollectionsMarshal.SetCount(list303, index); + Span span303 = CollectionsMarshal.AsSpan(list303); + num = 0; + ref QuestSequence reference225 = ref span303[num]; QuestSequence obj216 = new QuestSequence { Sequence = 0 @@ -108148,8 +130216,9 @@ public static class AssemblyQuestLoader num2 = 2; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span122 = CollectionsMarshal.AsSpan(list304); - span122[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span304 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span304[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -108165,19 +130234,22 @@ public static class AssemblyQuestLoader } } }; - span122[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span304[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj216.Steps = list304; reference225 = obj216; - ref QuestSequence reference226 = ref span121[1]; + num++; + ref QuestSequence reference226 = ref span303[num]; QuestSequence obj217 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - Span span123 = CollectionsMarshal.AsSpan(list305); - span123[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + Span span305 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span305[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -108208,10 +130280,12 @@ public static class AssemblyQuestLoader } } }; - span123[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); + num2++; + span305[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); obj217.Steps = list305; reference226 = obj217; - ref QuestSequence reference227 = ref span121[2]; + num++; + ref QuestSequence reference227 = ref span303[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 @@ -108219,8 +130293,9 @@ public static class AssemblyQuestLoader num2 = 2; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span124 = CollectionsMarshal.AsSpan(list306); - ref QuestStep reference228 = ref span124[0]; + Span span306 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + ref QuestStep reference228 = ref span306[index2]; QuestStep obj219 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(246.007f, 56.384f, 839.334f), 137) { TargetTerritoryId = (ushort)135, @@ -108229,10 +130304,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list307 = new List(num3); - CollectionsMarshal.SetCount(list307, num3); - CollectionsMarshal.AsSpan(list307)[0] = 135; + index3 = 1; + List list307 = new List(index3); + CollectionsMarshal.SetCount(list307, index3); + Span span307 = CollectionsMarshal.AsSpan(list307); + num3 = 0; + span307[num3] = 135; skipStepConditions5.InTerritory = list307; skipConditions13.StepIf = skipStepConditions5; SkipAetheryteCondition obj220 = new SkipAetheryteCondition @@ -108242,37 +130319,46 @@ public static class AssemblyQuestLoader num3 = 1; List list308 = new List(num3); CollectionsMarshal.SetCount(list308, num3); - CollectionsMarshal.AsSpan(list308)[0] = 135; + Span span308 = CollectionsMarshal.AsSpan(list308); + index3 = 0; + span308[index3] = 135; obj220.InTerritory = list308; skipConditions13.AetheryteShortcutIf = obj220; obj219.SkipConditions = skipConditions13; reference228 = obj219; - ref QuestStep reference229 = ref span124[1]; + index2++; + ref QuestStep reference229 = ref span306[index2]; QuestStep obj221 = new QuestStep(EInteractionType.Combat, null, new Vector3(508.80716f, 95.940796f, -450.35608f), 135) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list309 = new List(num3); - CollectionsMarshal.SetCount(list309, num3); - CollectionsMarshal.AsSpan(list309)[0] = 4616u; + index3 = 1; + List list309 = new List(index3); + CollectionsMarshal.SetCount(list309, index3); + Span span309 = CollectionsMarshal.AsSpan(list309); + num3 = 0; + span309[num3] = 4616u; obj221.KillEnemyDataIds = list309; reference229 = obj221; obj218.Steps = list306; reference227 = obj218; - ref QuestSequence reference230 = ref span121[3]; + num++; + ref QuestSequence reference230 = ref span303[num]; QuestSequence obj222 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1013909u, new Vector3(508.75085f, 95.94249f, -450.2785f), 135); + index2 = 1; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + Span span310 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + span310[num2] = new QuestStep(EInteractionType.Interact, 1013909u, new Vector3(508.75085f, 95.94249f, -450.2785f), 135); obj222.Steps = list310; reference230 = obj222; - ref QuestSequence reference231 = ref span121[4]; + num++; + ref QuestSequence reference231 = ref span303[num]; QuestSequence obj223 = new QuestSequence { Sequence = 4 @@ -108280,7 +130366,9 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Interact, 2005932u, new Vector3(483.36f, 10.879639f, 348.89746f), 137) + Span span311 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + span311[index2] = new QuestStep(EInteractionType.Interact, 2005932u, new Vector3(483.36f, 10.879639f, 348.89746f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -108293,16 +130381,18 @@ public static class AssemblyQuestLoader }; obj223.Steps = list311; reference231 = obj223; - ref QuestSequence reference232 = ref span121[5]; + num++; + ref QuestSequence reference232 = ref span303[num]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - Span span125 = CollectionsMarshal.AsSpan(list312); - span125[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + Span span312 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span312[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -108314,7 +130404,8 @@ public static class AssemblyQuestLoader } } }; - span125[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + num2++; + span312[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(1687) }; @@ -108327,13 +130418,16 @@ public static class AssemblyQuestLoader num = 1; List list313 = new List(num); CollectionsMarshal.SetCount(list313, num); - CollectionsMarshal.AsSpan(list313)[0] = "xan"; + Span span313 = CollectionsMarshal.AsSpan(list313); + index = 0; + span313[index] = "xan"; questRoot37.Author = list313; - num = 8; - List list314 = new List(num); - CollectionsMarshal.SetCount(list314, num); - Span span126 = CollectionsMarshal.AsSpan(list314); - ref QuestSequence reference233 = ref span126[0]; + index = 8; + List list314 = new List(index); + CollectionsMarshal.SetCount(list314, index); + Span span314 = CollectionsMarshal.AsSpan(list314); + num = 0; + ref QuestSequence reference233 = ref span314[num]; QuestSequence obj225 = new QuestSequence { Sequence = 0 @@ -108341,8 +130435,9 @@ public static class AssemblyQuestLoader num2 = 2; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span127 = CollectionsMarshal.AsSpan(list315); - span127[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span315 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span315[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -108358,18 +130453,22 @@ public static class AssemblyQuestLoader } } }; - span127[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span315[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj225.Steps = list315; reference233 = obj225; - ref QuestSequence reference234 = ref span126[1]; + num++; + ref QuestSequence reference234 = ref span314[num]; QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1001208u, new Vector3(-228.16821f, 16f, 50.644653f), 129) + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + Span span316 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + span316[num2] = new QuestStep(EInteractionType.Interact, 1001208u, new Vector3(-228.16821f, 16f, 50.644653f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -108380,7 +130479,8 @@ public static class AssemblyQuestLoader }; obj226.Steps = list316; reference234 = obj226; - ref QuestSequence reference235 = ref span126[2]; + num++; + ref QuestSequence reference235 = ref span314[num]; QuestSequence obj227 = new QuestSequence { Sequence = 2 @@ -108388,7 +130488,9 @@ public static class AssemblyQuestLoader num2 = 1; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.UseItem, 2005934u, new Vector3(-188.79993f, 1.7241821f, 207.7821f), 129) + Span span317 = CollectionsMarshal.AsSpan(list317); + index2 = 0; + span317[index2] = new QuestStep(EInteractionType.UseItem, 2005934u, new Vector3(-188.79993f, 1.7241821f, 207.7821f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -108400,18 +130502,22 @@ public static class AssemblyQuestLoader }; obj227.Steps = list317; reference235 = obj227; - ref QuestSequence reference236 = ref span126[3]; + num++; + ref QuestSequence reference236 = ref span314[num]; QuestSequence obj228 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list318 = new List(num2); - CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.Interact, 2005935u, new Vector3(-175.55511f, 3.982544f, 179.24768f), 129); + index2 = 1; + List list318 = new List(index2); + CollectionsMarshal.SetCount(list318, index2); + Span span318 = CollectionsMarshal.AsSpan(list318); + num2 = 0; + span318[num2] = new QuestStep(EInteractionType.Interact, 2005935u, new Vector3(-175.55511f, 3.982544f, 179.24768f), 129); obj228.Steps = list318; reference236 = obj228; - ref QuestSequence reference237 = ref span126[4]; + num++; + ref QuestSequence reference237 = ref span314[num]; QuestSequence obj229 = new QuestSequence { Sequence = 4 @@ -108419,24 +130525,29 @@ public static class AssemblyQuestLoader num2 = 2; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - Span span128 = CollectionsMarshal.AsSpan(list319); - span128[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(234.53989f, -56.43721f, -254.02878f), 398) + Span span319 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + span319[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(234.53989f, -56.43721f, -254.02878f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span128[1] = new QuestStep(EInteractionType.Interact, 1013912u, new Vector3(230.73157f, -56.71082f, -247.21143f), 398); + index2++; + span319[index2] = new QuestStep(EInteractionType.Interact, 1013912u, new Vector3(230.73157f, -56.71082f, -247.21143f), 398); obj229.Steps = list319; reference237 = obj229; - ref QuestSequence reference238 = ref span126[5]; + num++; + ref QuestSequence reference238 = ref span314[num]; QuestSequence obj230 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list320)[0]; + index2 = 1; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + Span span320 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + ref QuestStep reference239 = ref span320[num2]; QuestStep obj231 = new QuestStep(EInteractionType.Combat, 2005938u, new Vector3(163.28674f, -64.2558f, -102.89166f), 398) { Fly = true, @@ -108445,14 +130556,17 @@ public static class AssemblyQuestLoader num3 = 2; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - Span span129 = CollectionsMarshal.AsSpan(list321); - span129[0] = 5042u; - span129[1] = 4619u; + Span span321 = CollectionsMarshal.AsSpan(list321); + index3 = 0; + span321[index3] = 5042u; + index3++; + span321[index3] = 4619u; obj231.KillEnemyDataIds = list321; reference239 = obj231; obj230.Steps = list320; reference238 = obj230; - ref QuestSequence reference240 = ref span126[6]; + num++; + ref QuestSequence reference240 = ref span314[num]; QuestSequence obj232 = new QuestSequence { Sequence = 6 @@ -108460,22 +130574,26 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.Interact, 1015302u, new Vector3(237.59814f, -54.04252f, -217.02905f), 398) + Span span322 = CollectionsMarshal.AsSpan(list322); + index2 = 0; + span322[index2] = new QuestStep(EInteractionType.Interact, 1015302u, new Vector3(237.59814f, -54.04252f, -217.02905f), 398) { Fly = true }; obj232.Steps = list322; reference240 = obj232; - ref QuestSequence reference241 = ref span126[7]; + num++; + ref QuestSequence reference241 = ref span314[num]; QuestSequence obj233 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - Span span130 = CollectionsMarshal.AsSpan(list323); - span130[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + Span span323 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span323[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -108487,7 +130605,8 @@ public static class AssemblyQuestLoader } } }; - span130[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + num2++; + span323[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(1688) }; @@ -108500,13 +130619,16 @@ public static class AssemblyQuestLoader num = 1; List list324 = new List(num); CollectionsMarshal.SetCount(list324, num); - CollectionsMarshal.AsSpan(list324)[0] = "xan"; + Span span324 = CollectionsMarshal.AsSpan(list324); + index = 0; + span324[index] = "xan"; questRoot38.Author = list324; - num = 8; - List list325 = new List(num); - CollectionsMarshal.SetCount(list325, num); - Span span131 = CollectionsMarshal.AsSpan(list325); - ref QuestSequence reference242 = ref span131[0]; + index = 8; + List list325 = new List(index); + CollectionsMarshal.SetCount(list325, index); + Span span325 = CollectionsMarshal.AsSpan(list325); + num = 0; + ref QuestSequence reference242 = ref span325[num]; QuestSequence obj234 = new QuestSequence { Sequence = 0 @@ -108514,8 +130636,9 @@ public static class AssemblyQuestLoader num2 = 2; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - Span span132 = CollectionsMarshal.AsSpan(list326); - span132[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span326 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span326[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -108531,19 +130654,22 @@ public static class AssemblyQuestLoader } } }; - span132[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span326[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj234.Steps = list326; reference242 = obj234; - ref QuestSequence reference243 = ref span131[1]; + num++; + ref QuestSequence reference243 = ref span325[num]; QuestSequence obj235 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - Span span133 = CollectionsMarshal.AsSpan(list327); - span133[0] = new QuestStep(EInteractionType.Interact, 2004966u, new Vector3(-16.128845f, -23.300598f, 258.13684f), 137) + index2 = 3; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + Span span327 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span327[num2] = new QuestStep(EInteractionType.Interact, 2004966u, new Vector3(-16.128845f, -23.300598f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, SkipConditions = new SkipConditions @@ -108559,59 +130685,78 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference244 = ref span133[1]; + num2++; + ref QuestStep reference244 = ref span327[num2]; QuestStep obj236 = new QuestStep(EInteractionType.Combat, 2005940u, new Vector3(-4.867676f, 39.414062f, 263.7826f), 137) { Emote = EEmote.Doze, EnemySpawnType = EEnemySpawnType.AfterEmote }; - num3 = 2; - List list328 = new List(num3); - CollectionsMarshal.SetCount(list328, num3); - Span span134 = CollectionsMarshal.AsSpan(list328); - span134[0] = 5042u; - span134[1] = 4619u; + index3 = 2; + List list328 = new List(index3); + CollectionsMarshal.SetCount(list328, index3); + Span span328 = CollectionsMarshal.AsSpan(list328); + num3 = 0; + span328[num3] = 5042u; + num3++; + span328[num3] = 4619u; obj236.KillEnemyDataIds = list328; num3 = 6; List list329 = new List(num3); CollectionsMarshal.SetCount(list329, num3); - Span span135 = CollectionsMarshal.AsSpan(list329); - span135[0] = null; - span135[1] = null; - span135[2] = null; - span135[3] = null; - span135[4] = null; - span135[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span329 = CollectionsMarshal.AsSpan(list329); + index3 = 0; + span329[index3] = null; + index3++; + span329[index3] = null; + index3++; + span329[index3] = null; + index3++; + span329[index3] = null; + index3++; + span329[index3] = null; + index3++; + span329[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj236.CompletionQuestVariablesFlags = list329; reference244 = obj236; - ref QuestStep reference245 = ref span133[2]; + num2++; + ref QuestStep reference245 = ref span327[num2]; QuestStep obj237 = new QuestStep(EInteractionType.Combat, 2005941u, new Vector3(-47.104614f, 39.749634f, 255.6648f), 137) { Emote = EEmote.Doze, EnemySpawnType = EEnemySpawnType.AfterEmote }; - num3 = 2; - List list330 = new List(num3); - CollectionsMarshal.SetCount(list330, num3); - Span span136 = CollectionsMarshal.AsSpan(list330); - span136[0] = 5042u; - span136[1] = 4619u; + index3 = 2; + List list330 = new List(index3); + CollectionsMarshal.SetCount(list330, index3); + Span span330 = CollectionsMarshal.AsSpan(list330); + num3 = 0; + span330[num3] = 5042u; + num3++; + span330[num3] = 4619u; obj237.KillEnemyDataIds = list330; num3 = 6; List list331 = new List(num3); CollectionsMarshal.SetCount(list331, num3); - Span span137 = CollectionsMarshal.AsSpan(list331); - span137[0] = null; - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = null; - span137[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span331 = CollectionsMarshal.AsSpan(list331); + index3 = 0; + span331[index3] = null; + index3++; + span331[index3] = null; + index3++; + span331[index3] = null; + index3++; + span331[index3] = null; + index3++; + span331[index3] = null; + index3++; + span331[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj237.CompletionQuestVariablesFlags = list331; reference245 = obj237; obj235.Steps = list327; reference243 = obj235; - ref QuestSequence reference246 = ref span131[2]; + num++; + ref QuestSequence reference246 = ref span325[num]; QuestSequence obj238 = new QuestSequence { Sequence = 2 @@ -108619,8 +130764,9 @@ public static class AssemblyQuestLoader num2 = 2; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - Span span138 = CollectionsMarshal.AsSpan(list332); - span138[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span332 = CollectionsMarshal.AsSpan(list332); + index2 = 0; + span332[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -108636,27 +130782,33 @@ public static class AssemblyQuestLoader } } }; - span138[1] = new QuestStep(EInteractionType.Interact, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span332[index2] = new QuestStep(EInteractionType.Interact, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj238.Steps = list332; reference246 = obj238; - ref QuestSequence reference247 = ref span131[3]; + num++; + ref QuestSequence reference247 = ref span325[num]; QuestSequence obj239 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - ref QuestStep reference248 = ref CollectionsMarshal.AsSpan(list333)[0]; + index2 = 1; + List list333 = new List(index2); + CollectionsMarshal.SetCount(list333, index2); + Span span333 = CollectionsMarshal.AsSpan(list333); + num2 = 0; + ref QuestStep reference248 = ref span333[num2]; QuestStep obj240 = new QuestStep(EInteractionType.Interact, 1013916u, new Vector3(103.990234f, 53.596413f, 674.8607f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - num3 = 1; - List list334 = new List(num3); - CollectionsMarshal.SetCount(list334, num3); - CollectionsMarshal.AsSpan(list334)[0] = new DialogueChoice + index3 = 1; + List list334 = new List(index3); + CollectionsMarshal.SetCount(list334, index3); + Span span334 = CollectionsMarshal.AsSpan(list334); + num3 = 0; + span334[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN600_01688_Q1_000_000"), @@ -108666,7 +130818,8 @@ public static class AssemblyQuestLoader reference248 = obj240; obj239.Steps = list333; reference247 = obj239; - ref QuestSequence reference249 = ref span131[4]; + num++; + ref QuestSequence reference249 = ref span325[num]; QuestSequence obj241 = new QuestSequence { Sequence = 4 @@ -108674,27 +130827,33 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.Interact, 2005942u, new Vector3(122.545166f, 60.65454f, 934.47766f), 135) + Span span335 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span335[index2] = new QuestStep(EInteractionType.Interact, 2005942u, new Vector3(122.545166f, 60.65454f, 934.47766f), 135) { Fly = true }; obj241.Steps = list335; reference249 = obj241; - ref QuestSequence reference250 = ref span131[5]; + num++; + ref QuestSequence reference250 = ref span325[num]; QuestSequence obj242 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Interact, 1013920u, new Vector3(259.60168f, 4.4031205f, 715.3887f), 135) + index2 = 1; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + Span span336 = CollectionsMarshal.AsSpan(list336); + num2 = 0; + span336[num2] = new QuestStep(EInteractionType.Interact, 1013920u, new Vector3(259.60168f, 4.4031205f, 715.3887f), 135) { Fly = true }; obj242.Steps = list336; reference250 = obj242; - ref QuestSequence reference251 = ref span131[6]; + num++; + ref QuestSequence reference251 = ref span325[num]; QuestSequence obj243 = new QuestSequence { Sequence = 6 @@ -108702,19 +130861,23 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013920u, new Vector3(259.60168f, 4.4031205f, 715.3887f), 135); + Span span337 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span337[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013920u, new Vector3(259.60168f, 4.4031205f, 715.3887f), 135); obj243.Steps = list337; reference251 = obj243; - ref QuestSequence reference252 = ref span131[7]; + num++; + ref QuestSequence reference252 = ref span325[num]; QuestSequence obj244 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - Span span139 = CollectionsMarshal.AsSpan(list338); - span139[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + Span span338 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span338[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -108726,7 +130889,8 @@ public static class AssemblyQuestLoader } } }; - span139[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + num2++; + span338[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(2948) }; @@ -108739,13 +130903,16 @@ public static class AssemblyQuestLoader num = 1; List list339 = new List(num); CollectionsMarshal.SetCount(list339, num); - CollectionsMarshal.AsSpan(list339)[0] = "AnimaMachinae"; + Span span339 = CollectionsMarshal.AsSpan(list339); + index = 0; + span339[index] = "AnimaMachinae"; questRoot39.Author = list339; - num = 3; - List list340 = new List(num); - CollectionsMarshal.SetCount(list340, num); - Span span140 = CollectionsMarshal.AsSpan(list340); - ref QuestSequence reference253 = ref span140[0]; + index = 3; + List list340 = new List(index); + CollectionsMarshal.SetCount(list340, index); + Span span340 = CollectionsMarshal.AsSpan(list340); + num = 0; + ref QuestSequence reference253 = ref span340[num]; QuestSequence obj245 = new QuestSequence { Sequence = 0 @@ -108753,8 +130920,9 @@ public static class AssemblyQuestLoader num2 = 2; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span141 = CollectionsMarshal.AsSpan(list341); - span141[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span341 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span341[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, @@ -108767,19 +130935,22 @@ public static class AssemblyQuestLoader } } }; - span141[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + index2++; + span341[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj245.Steps = list341; reference253 = obj245; - ref QuestSequence reference254 = ref span140[1]; + num++; + ref QuestSequence reference254 = ref span340[num]; QuestSequence obj246 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - Span span142 = CollectionsMarshal.AsSpan(list342); - ref QuestStep reference255 = ref span142[0]; + index2 = 2; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + Span span342 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + ref QuestStep reference255 = ref span342[num2]; QuestStep obj247 = new QuestStep(EInteractionType.Combat, 1013437u, new Vector3(-580.5906f, 206.85785f, -407.64478f), 155) { Fly = true, @@ -108790,24 +130961,34 @@ public static class AssemblyQuestLoader num3 = 1; List list343 = new List(num3); CollectionsMarshal.SetCount(list343, num3); - CollectionsMarshal.AsSpan(list343)[0] = 4478u; + Span span343 = CollectionsMarshal.AsSpan(list343); + index3 = 0; + span343[index3] = 4478u; obj247.KillEnemyDataIds = list343; - num3 = 6; - List list344 = new List(num3); - CollectionsMarshal.SetCount(list344, num3); - Span span143 = CollectionsMarshal.AsSpan(list344); - span143[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = null; + index3 = 6; + List list344 = new List(index3); + CollectionsMarshal.SetCount(list344, index3); + Span span344 = CollectionsMarshal.AsSpan(list344); + num3 = 0; + span344[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num3++; + span344[num3] = null; + num3++; + span344[num3] = null; + num3++; + span344[num3] = null; + num3++; + span344[num3] = null; + num3++; + span344[num3] = null; obj247.CompletionQuestVariablesFlags = list344; reference255 = obj247; - span142[1] = new QuestStep(EInteractionType.Interact, 1013437u, new Vector3(-580.5906f, 206.85785f, -407.64478f), 155); + num2++; + span342[num2] = new QuestStep(EInteractionType.Interact, 1013437u, new Vector3(-580.5906f, 206.85785f, -407.64478f), 155); obj246.Steps = list342; reference254 = obj246; - ref QuestSequence reference256 = ref span140[2]; + num++; + ref QuestSequence reference256 = ref span340[num]; QuestSequence obj248 = new QuestSequence { Sequence = byte.MaxValue @@ -108815,14 +130996,16 @@ public static class AssemblyQuestLoader num2 = 2; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span144 = CollectionsMarshal.AsSpan(list345); - span144[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span345 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + span345[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span144[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + index2++; + span345[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1690) }; @@ -108835,22 +131018,26 @@ public static class AssemblyQuestLoader num = 1; List list346 = new List(num); CollectionsMarshal.SetCount(list346, num); - CollectionsMarshal.AsSpan(list346)[0] = "AnimaMachinae"; + Span span346 = CollectionsMarshal.AsSpan(list346); + index = 0; + span346[index] = "AnimaMachinae"; questRoot40.Author = list346; - num = 5; - List list347 = new List(num); - CollectionsMarshal.SetCount(list347, num); - Span span145 = CollectionsMarshal.AsSpan(list347); - ref QuestSequence reference257 = ref span145[0]; + index = 5; + List list347 = new List(index); + CollectionsMarshal.SetCount(list347, index); + Span span347 = CollectionsMarshal.AsSpan(list347); + num = 0; + ref QuestSequence reference257 = ref span347[num]; QuestSequence obj249 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - Span span146 = CollectionsMarshal.AsSpan(list348); - span146[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + index2 = 2; + List list348 = new List(index2); + CollectionsMarshal.SetCount(list348, index2); + Span span348 = CollectionsMarshal.AsSpan(list348); + num2 = 0; + span348[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, @@ -108863,10 +131050,12 @@ public static class AssemblyQuestLoader } } }; - span146[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span348[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj249.Steps = list348; reference257 = obj249; - ref QuestSequence reference258 = ref span145[1]; + num++; + ref QuestSequence reference258 = ref span347[num]; QuestSequence obj250 = new QuestSequence { Sequence = 1 @@ -108874,7 +131063,9 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - ref QuestStep reference259 = ref CollectionsMarshal.AsSpan(list349)[0]; + Span span349 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + ref QuestStep reference259 = ref span349[index2]; QuestStep obj251 = new QuestStep(EInteractionType.Combat, 1013441u, new Vector3(468.58923f, 166.28001f, 256.73303f), 397) { Fly = true, @@ -108885,23 +131076,29 @@ public static class AssemblyQuestLoader num3 = 1; List list350 = new List(num3); CollectionsMarshal.SetCount(list350, num3); - CollectionsMarshal.AsSpan(list350)[0] = 4504u; + Span span350 = CollectionsMarshal.AsSpan(list350); + index3 = 0; + span350[index3] = 4504u; obj251.KillEnemyDataIds = list350; reference259 = obj251; obj250.Steps = list349; reference258 = obj250; - ref QuestSequence reference260 = ref span145[2]; + num++; + ref QuestSequence reference260 = ref span347[num]; QuestSequence obj252 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1013441u, new Vector3(468.58923f, 166.28001f, 256.73303f), 397); + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + Span span351 = CollectionsMarshal.AsSpan(list351); + num2 = 0; + span351[num2] = new QuestStep(EInteractionType.Interact, 1013441u, new Vector3(468.58923f, 166.28001f, 256.73303f), 397); obj252.Steps = list351; reference260 = obj252; - ref QuestSequence reference261 = ref span145[3]; + num++; + ref QuestSequence reference261 = ref span347[num]; QuestSequence obj253 = new QuestSequence { Sequence = 3 @@ -108909,30 +131106,37 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - ref QuestStep reference262 = ref CollectionsMarshal.AsSpan(list352)[0]; + Span span352 = CollectionsMarshal.AsSpan(list352); + index2 = 0; + ref QuestStep reference262 = ref span352[index2]; QuestStep obj254 = new QuestStep(EInteractionType.Combat, 2006182u, new Vector3(197.40588f, 184.00854f, -102.80011f), 397) { Fly = true, Land = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list353 = new List(num3); - CollectionsMarshal.SetCount(list353, num3); - CollectionsMarshal.AsSpan(list353)[0] = 4486u; + index3 = 1; + List list353 = new List(index3); + CollectionsMarshal.SetCount(list353, index3); + Span span353 = CollectionsMarshal.AsSpan(list353); + num3 = 0; + span353[num3] = 4486u; obj254.KillEnemyDataIds = list353; reference262 = obj254; obj253.Steps = list352; reference261 = obj253; - ref QuestSequence reference263 = ref span145[4]; + num++; + ref QuestSequence reference263 = ref span347[num]; QuestSequence obj255 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013445u, new Vector3(202.19727f, 183.6595f, -96.11658f), 397); + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + Span span354 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span354[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013445u, new Vector3(202.19727f, 183.6595f, -96.11658f), 397); obj255.Steps = list354; reference263 = obj255; questRoot40.QuestSequence = list347; @@ -108942,13 +131146,16 @@ public static class AssemblyQuestLoader num = 1; List list355 = new List(num); CollectionsMarshal.SetCount(list355, num); - CollectionsMarshal.AsSpan(list355)[0] = "AnimaMachinae"; + Span span355 = CollectionsMarshal.AsSpan(list355); + index = 0; + span355[index] = "AnimaMachinae"; questRoot41.Author = list355; - num = 3; - List list356 = new List(num); - CollectionsMarshal.SetCount(list356, num); - Span span147 = CollectionsMarshal.AsSpan(list356); - ref QuestSequence reference264 = ref span147[0]; + index = 3; + List list356 = new List(index); + CollectionsMarshal.SetCount(list356, index); + Span span356 = CollectionsMarshal.AsSpan(list356); + num = 0; + ref QuestSequence reference264 = ref span356[num]; QuestSequence obj256 = new QuestSequence { Sequence = 0 @@ -108956,7 +131163,9 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013445u, new Vector3(202.19727f, 183.6595f, -96.11658f), 397) + Span span357 = CollectionsMarshal.AsSpan(list357); + index2 = 0; + span357[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013445u, new Vector3(202.19727f, 183.6595f, -96.11658f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -108969,15 +131178,18 @@ public static class AssemblyQuestLoader }; obj256.Steps = list357; reference264 = obj256; - ref QuestSequence reference265 = ref span147[1]; + num++; + ref QuestSequence reference265 = ref span356[num]; QuestSequence obj257 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.Interact, 1013448u, new Vector3(83.26843f, 23.979126f, 2.3345947f), 418) + index2 = 1; + List list358 = new List(index2); + CollectionsMarshal.SetCount(list358, index2); + Span span358 = CollectionsMarshal.AsSpan(list358); + num2 = 0; + span358[num2] = new QuestStep(EInteractionType.Interact, 1013448u, new Vector3(83.26843f, 23.979126f, 2.3345947f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -108995,7 +131207,8 @@ public static class AssemblyQuestLoader }; obj257.Steps = list358; reference265 = obj257; - ref QuestSequence reference266 = ref span147[2]; + num++; + ref QuestSequence reference266 = ref span356[num]; QuestSequence obj258 = new QuestSequence { Sequence = byte.MaxValue @@ -109003,14 +131216,16 @@ public static class AssemblyQuestLoader num2 = 2; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - Span span148 = CollectionsMarshal.AsSpan(list359); - span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span359 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span359[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span148[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + index2++; + span359[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1690) }; @@ -109023,22 +131238,26 @@ public static class AssemblyQuestLoader num = 1; List list360 = new List(num); CollectionsMarshal.SetCount(list360, num); - CollectionsMarshal.AsSpan(list360)[0] = "AnimaMachinae"; + Span span360 = CollectionsMarshal.AsSpan(list360); + index = 0; + span360[index] = "AnimaMachinae"; questRoot42.Author = list360; - num = 6; - List list361 = new List(num); - CollectionsMarshal.SetCount(list361, num); - Span span149 = CollectionsMarshal.AsSpan(list361); - ref QuestSequence reference267 = ref span149[0]; + index = 6; + List list361 = new List(index); + CollectionsMarshal.SetCount(list361, index); + Span span361 = CollectionsMarshal.AsSpan(list361); + num = 0; + ref QuestSequence reference267 = ref span361[num]; QuestSequence obj259 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - Span span150 = CollectionsMarshal.AsSpan(list362); - span150[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + index2 = 2; + List list362 = new List(index2); + CollectionsMarshal.SetCount(list362, index2); + Span span362 = CollectionsMarshal.AsSpan(list362); + num2 = 0; + span362[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, @@ -109051,10 +131270,12 @@ public static class AssemblyQuestLoader } } }; - span150[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span362[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj259.Steps = list362; reference267 = obj259; - ref QuestSequence reference268 = ref span149[1]; + num++; + ref QuestSequence reference268 = ref span361[num]; QuestSequence obj260 = new QuestSequence { Sequence = 1 @@ -109062,7 +131283,9 @@ public static class AssemblyQuestLoader num2 = 1; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.Interact, 1013450u, new Vector3(84.30603f, 23.979128f, -12.802368f), 418) + Span span363 = CollectionsMarshal.AsSpan(list363); + index2 = 0; + span363[index2] = new QuestStep(EInteractionType.Interact, 1013450u, new Vector3(84.30603f, 23.979128f, -12.802368f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -109080,15 +131303,18 @@ public static class AssemblyQuestLoader }; obj260.Steps = list363; reference268 = obj260; - ref QuestSequence reference269 = ref span149[2]; + num++; + ref QuestSequence reference269 = ref span361[num]; QuestSequence obj261 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013456u, new Vector3(489.82983f, 164.7244f, 266.25464f), 397) + index2 = 1; + List list364 = new List(index2); + CollectionsMarshal.SetCount(list364, index2); + Span span364 = CollectionsMarshal.AsSpan(list364); + num2 = 0; + span364[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013456u, new Vector3(489.82983f, 164.7244f, 266.25464f), 397) { Fly = true, Land = true, @@ -109096,7 +131322,8 @@ public static class AssemblyQuestLoader }; obj261.Steps = list364; reference269 = obj261; - ref QuestSequence reference270 = ref span149[3]; + num++; + ref QuestSequence reference270 = ref span361[num]; QuestSequence obj262 = new QuestSequence { Sequence = 3 @@ -109104,18 +131331,23 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.Interact, 1013457u, new Vector3(492.88147f, 164.6694f, 265.06445f), 397); + Span span365 = CollectionsMarshal.AsSpan(list365); + index2 = 0; + span365[index2] = new QuestStep(EInteractionType.Interact, 1013457u, new Vector3(492.88147f, 164.6694f, 265.06445f), 397); obj262.Steps = list365; reference270 = obj262; - ref QuestSequence reference271 = ref span149[4]; + num++; + ref QuestSequence reference271 = ref span361[num]; QuestSequence obj263 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.Interact, 1013464u, new Vector3(133.47058f, 24.400866f, -6.149414f), 418) + index2 = 1; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + Span span366 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + span366[num2] = new QuestStep(EInteractionType.Interact, 1013464u, new Vector3(133.47058f, 24.400866f, -6.149414f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -109126,7 +131358,8 @@ public static class AssemblyQuestLoader }; obj263.Steps = list366; reference271 = obj263; - ref QuestSequence reference272 = ref span149[5]; + num++; + ref QuestSequence reference272 = ref span361[num]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue @@ -109134,14 +131367,16 @@ public static class AssemblyQuestLoader num2 = 2; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - Span span151 = CollectionsMarshal.AsSpan(list367); - span151[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span367 = CollectionsMarshal.AsSpan(list367); + index2 = 0; + span367[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span151[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + index2++; + span367[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1690) }; @@ -109154,22 +131389,26 @@ public static class AssemblyQuestLoader num = 1; List list368 = new List(num); CollectionsMarshal.SetCount(list368, num); - CollectionsMarshal.AsSpan(list368)[0] = "AnimaMachinae"; + Span span368 = CollectionsMarshal.AsSpan(list368); + index = 0; + span368[index] = "AnimaMachinae"; questRoot43.Author = list368; - num = 5; - List list369 = new List(num); - CollectionsMarshal.SetCount(list369, num); - Span span152 = CollectionsMarshal.AsSpan(list369); - ref QuestSequence reference273 = ref span152[0]; + index = 5; + List list369 = new List(index); + CollectionsMarshal.SetCount(list369, index); + Span span369 = CollectionsMarshal.AsSpan(list369); + num = 0; + ref QuestSequence reference273 = ref span369[num]; QuestSequence obj265 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - Span span153 = CollectionsMarshal.AsSpan(list370); - span153[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + index2 = 2; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + Span span370 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + span370[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, @@ -109182,10 +131421,12 @@ public static class AssemblyQuestLoader } } }; - span153[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span370[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj265.Steps = list370; reference273 = obj265; - ref QuestSequence reference274 = ref span152[1]; + num++; + ref QuestSequence reference274 = ref span369[num]; QuestSequence obj266 = new QuestSequence { Sequence = 1 @@ -109193,26 +131434,30 @@ public static class AssemblyQuestLoader num2 = 2; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - Span span154 = CollectionsMarshal.AsSpan(list371); - span154[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.009445f, 98.00955f, 106.47891f), 397) + Span span371 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + span371[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.009445f, 98.00955f, 106.47891f), 397) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - span154[1] = new QuestStep(EInteractionType.Interact, 1013467u, new Vector3(-51.10254f, 98.63026f, 105.1499f), 397); + index2++; + span371[index2] = new QuestStep(EInteractionType.Interact, 1013467u, new Vector3(-51.10254f, 98.63026f, 105.1499f), 397); obj266.Steps = list371; reference274 = obj266; - ref QuestSequence reference275 = ref span152[2]; + num++; + ref QuestSequence reference275 = ref span369[num]; QuestSequence obj267 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list372 = new List(num2); - CollectionsMarshal.SetCount(list372, num2); - Span span155 = CollectionsMarshal.AsSpan(list372); - ref QuestStep reference276 = ref span155[0]; + index2 = 2; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + Span span372 = CollectionsMarshal.AsSpan(list372); + num2 = 0; + ref QuestStep reference276 = ref span372[num2]; QuestStep obj268 = new QuestStep(EInteractionType.Combat, 1013466u, new Vector3(-155.5047f, 175.79733f, 693.26306f), 397) { Fly = true, @@ -109222,26 +131467,36 @@ public static class AssemblyQuestLoader num3 = 2; List list373 = new List(num3); CollectionsMarshal.SetCount(list373, num3); - Span span156 = CollectionsMarshal.AsSpan(list373); - span156[0] = 4482u; - span156[1] = 5049u; + Span span373 = CollectionsMarshal.AsSpan(list373); + index3 = 0; + span373[index3] = 4482u; + index3++; + span373[index3] = 5049u; obj268.KillEnemyDataIds = list373; - num3 = 6; - List list374 = new List(num3); - CollectionsMarshal.SetCount(list374, num3); - Span span157 = CollectionsMarshal.AsSpan(list374); - span157[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span157[1] = null; - span157[2] = null; - span157[3] = null; - span157[4] = null; - span157[5] = null; + index3 = 6; + List list374 = new List(index3); + CollectionsMarshal.SetCount(list374, index3); + Span span374 = CollectionsMarshal.AsSpan(list374); + num3 = 0; + span374[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num3++; + span374[num3] = null; + num3++; + span374[num3] = null; + num3++; + span374[num3] = null; + num3++; + span374[num3] = null; + num3++; + span374[num3] = null; obj268.CompletionQuestVariablesFlags = list374; reference276 = obj268; - span155[1] = new QuestStep(EInteractionType.Interact, 1013466u, new Vector3(-155.5047f, 175.79733f, 693.26306f), 397); + num2++; + span372[num2] = new QuestStep(EInteractionType.Interact, 1013466u, new Vector3(-155.5047f, 175.79733f, 693.26306f), 397); obj267.Steps = list372; reference275 = obj267; - ref QuestSequence reference277 = ref span152[3]; + num++; + ref QuestSequence reference277 = ref span369[num]; QuestSequence obj269 = new QuestSequence { Sequence = 3 @@ -109249,7 +131504,9 @@ public static class AssemblyQuestLoader num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + Span span375 = CollectionsMarshal.AsSpan(list375); + index2 = 0; + span375[index2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -109267,27 +131524,32 @@ public static class AssemblyQuestLoader }; obj269.Steps = list375; reference277 = obj269; - ref QuestSequence reference278 = ref span152[4]; + num++; + ref QuestSequence reference278 = ref span369[num]; QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - Span span158 = CollectionsMarshal.AsSpan(list376); - span158[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + index2 = 2; + List list376 = new List(index2); + CollectionsMarshal.SetCount(list376, index2); + Span span376 = CollectionsMarshal.AsSpan(list376); + num2 = 0; + span376[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - ref QuestStep reference279 = ref span158[1]; + num2++; + ref QuestStep reference279 = ref span376[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.CompleteQuest, 1013470u, new Vector3(218.00562f, 222f, 346.45605f), 155); num3 = 1; List list377 = new List(num3); CollectionsMarshal.SetCount(list377, num3); - CollectionsMarshal.AsSpan(list377)[0] = new DialogueChoice + Span span377 = CollectionsMarshal.AsSpan(list377); + index3 = 0; + span377[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRG560_01693_Q1_000_000"), @@ -109304,13 +131566,16 @@ public static class AssemblyQuestLoader num = 1; List list378 = new List(num); CollectionsMarshal.SetCount(list378, num); - CollectionsMarshal.AsSpan(list378)[0] = "AnimaMachinae"; + Span span378 = CollectionsMarshal.AsSpan(list378); + index = 0; + span378[index] = "AnimaMachinae"; questRoot44.Author = list378; - num = 6; - List list379 = new List(num); - CollectionsMarshal.SetCount(list379, num); - Span span159 = CollectionsMarshal.AsSpan(list379); - ref QuestSequence reference280 = ref span159[0]; + index = 6; + List list379 = new List(index); + CollectionsMarshal.SetCount(list379, index); + Span span379 = CollectionsMarshal.AsSpan(list379); + num = 0; + ref QuestSequence reference280 = ref span379[num]; QuestSequence obj271 = new QuestSequence { Sequence = 0 @@ -109318,8 +131583,9 @@ public static class AssemblyQuestLoader num2 = 2; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - Span span160 = CollectionsMarshal.AsSpan(list380); - span160[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span380 = CollectionsMarshal.AsSpan(list380); + index2 = 0; + span380[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, @@ -109332,18 +131598,22 @@ public static class AssemblyQuestLoader } } }; - span160[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + index2++; + span380[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj271.Steps = list380; reference280 = obj271; - ref QuestSequence reference281 = ref span159[1]; + num++; + ref QuestSequence reference281 = ref span379[num]; QuestSequence obj272 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.Interact, 1013471u, new Vector3(503.53247f, -51.363117f, 79.941895f), 398) + index2 = 1; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + Span span381 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span381[num2] = new QuestStep(EInteractionType.Interact, 1013471u, new Vector3(503.53247f, -51.363117f, 79.941895f), 398) { Fly = true, Land = true, @@ -109351,7 +131621,8 @@ public static class AssemblyQuestLoader }; obj272.Steps = list381; reference281 = obj272; - ref QuestSequence reference282 = ref span159[2]; + num++; + ref QuestSequence reference282 = ref span379[num]; QuestSequence obj273 = new QuestSequence { Sequence = 2 @@ -109359,37 +131630,45 @@ public static class AssemblyQuestLoader num2 = 1; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - ref QuestStep reference283 = ref CollectionsMarshal.AsSpan(list382)[0]; + Span span382 = CollectionsMarshal.AsSpan(list382); + index2 = 0; + ref QuestStep reference283 = ref span382[index2]; QuestStep obj274 = new QuestStep(EInteractionType.Combat, 1013472u, new Vector3(396.35315f, -50.87535f, 73.04492f), 398) { Fly = true, Land = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list383 = new List(num3); - CollectionsMarshal.SetCount(list383, num3); - CollectionsMarshal.AsSpan(list383)[0] = 4497u; + index3 = 1; + List list383 = new List(index3); + CollectionsMarshal.SetCount(list383, index3); + Span span383 = CollectionsMarshal.AsSpan(list383); + num3 = 0; + span383[num3] = 4497u; obj274.KillEnemyDataIds = list383; reference283 = obj274; obj273.Steps = list382; reference282 = obj273; - ref QuestSequence reference284 = ref span159[3]; + num++; + ref QuestSequence reference284 = ref span379[num]; QuestSequence obj275 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list384 = new List(num2); - CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.Interact, 1013471u, new Vector3(503.53247f, -51.363117f, 79.941895f), 398) + index2 = 1; + List list384 = new List(index2); + CollectionsMarshal.SetCount(list384, index2); + Span span384 = CollectionsMarshal.AsSpan(list384); + num2 = 0; + span384[num2] = new QuestStep(EInteractionType.Interact, 1013471u, new Vector3(503.53247f, -51.363117f, 79.941895f), 398) { Fly = true, Land = true }; obj275.Steps = list384; reference284 = obj275; - ref QuestSequence reference285 = ref span159[4]; + num++; + ref QuestSequence reference285 = ref span379[num]; QuestSequence obj276 = new QuestSequence { Sequence = 4 @@ -109397,29 +131676,34 @@ public static class AssemblyQuestLoader num2 = 1; List list385 = new List(num2); CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.Interact, 1013476u, new Vector3(571.5571f, -36.290947f, 359.3651f), 398) + Span span385 = CollectionsMarshal.AsSpan(list385); + index2 = 0; + span385[index2] = new QuestStep(EInteractionType.Interact, 1013476u, new Vector3(571.5571f, -36.290947f, 359.3651f), 398) { Fly = true, Land = true }; obj276.Steps = list385; reference285 = obj276; - ref QuestSequence reference286 = ref span159[5]; + num++; + ref QuestSequence reference286 = ref span379[num]; QuestSequence obj277 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list386 = new List(num2); - CollectionsMarshal.SetCount(list386, num2); - Span span161 = CollectionsMarshal.AsSpan(list386); - span161[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + index2 = 2; + List list386 = new List(index2); + CollectionsMarshal.SetCount(list386, index2); + Span span386 = CollectionsMarshal.AsSpan(list386); + num2 = 0; + span386[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span161[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + num2++; + span386[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1690) }; @@ -109432,13 +131716,16 @@ public static class AssemblyQuestLoader num = 1; List list387 = new List(num); CollectionsMarshal.SetCount(list387, num); - CollectionsMarshal.AsSpan(list387)[0] = "AnimaMachinae"; + Span span387 = CollectionsMarshal.AsSpan(list387); + index = 0; + span387[index] = "AnimaMachinae"; questRoot45.Author = list387; - num = 6; - List list388 = new List(num); - CollectionsMarshal.SetCount(list388, num); - Span span162 = CollectionsMarshal.AsSpan(list388); - ref QuestSequence reference287 = ref span162[0]; + index = 6; + List list388 = new List(index); + CollectionsMarshal.SetCount(list388, index); + Span span388 = CollectionsMarshal.AsSpan(list388); + num = 0; + ref QuestSequence reference287 = ref span388[num]; QuestSequence obj278 = new QuestSequence { Sequence = 0 @@ -109446,8 +131733,9 @@ public static class AssemblyQuestLoader num2 = 2; List list389 = new List(num2); CollectionsMarshal.SetCount(list389, num2); - Span span163 = CollectionsMarshal.AsSpan(list389); - span163[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span389 = CollectionsMarshal.AsSpan(list389); + index2 = 0; + span389[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, @@ -109460,18 +131748,22 @@ public static class AssemblyQuestLoader } } }; - span163[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + index2++; + span389[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj278.Steps = list389; reference287 = obj278; - ref QuestSequence reference288 = ref span162[1]; + num++; + ref QuestSequence reference288 = ref span388[num]; QuestSequence obj279 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list390 = new List(num2); - CollectionsMarshal.SetCount(list390, num2); - CollectionsMarshal.AsSpan(list390)[0] = new QuestStep(EInteractionType.Interact, 1013483u, new Vector3(-272.26672f, 124.213005f, -23.361572f), 397) + index2 = 1; + List list390 = new List(index2); + CollectionsMarshal.SetCount(list390, index2); + Span span390 = CollectionsMarshal.AsSpan(list390); + num2 = 0; + span390[num2] = new QuestStep(EInteractionType.Interact, 1013483u, new Vector3(-272.26672f, 124.213005f, -23.361572f), 397) { Fly = true, Land = true, @@ -109479,7 +131771,8 @@ public static class AssemblyQuestLoader }; obj279.Steps = list390; reference288 = obj279; - ref QuestSequence reference289 = ref span162[2]; + num++; + ref QuestSequence reference289 = ref span388[num]; QuestSequence obj280 = new QuestSequence { Sequence = 2 @@ -109487,29 +131780,35 @@ public static class AssemblyQuestLoader num2 = 1; List list391 = new List(num2); CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.Interact, 1013485u, new Vector3(-360.1892f, 101.91492f, -178.79004f), 397) + Span span391 = CollectionsMarshal.AsSpan(list391); + index2 = 0; + span391[index2] = new QuestStep(EInteractionType.Interact, 1013485u, new Vector3(-360.1892f, 101.91492f, -178.79004f), 397) { Fly = true, Land = true }; obj280.Steps = list391; reference289 = obj280; - ref QuestSequence reference290 = ref span162[3]; + num++; + ref QuestSequence reference290 = ref span388[num]; QuestSequence obj281 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list392 = new List(num2); - CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Interact, 1013489u, new Vector3(-429.099f, 121.59912f, -309.49878f), 397) + index2 = 1; + List list392 = new List(index2); + CollectionsMarshal.SetCount(list392, index2); + Span span392 = CollectionsMarshal.AsSpan(list392); + num2 = 0; + span392[num2] = new QuestStep(EInteractionType.Interact, 1013489u, new Vector3(-429.099f, 121.59912f, -309.49878f), 397) { Fly = true, Land = true }; obj281.Steps = list392; reference290 = obj281; - ref QuestSequence reference291 = ref span162[4]; + num++; + ref QuestSequence reference291 = ref span388[num]; QuestSequence obj282 = new QuestSequence { Sequence = 4 @@ -109517,22 +131816,27 @@ public static class AssemblyQuestLoader num2 = 1; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013494u, new Vector3(-505.30255f, 120.61159f, -311.39087f), 397) + Span span393 = CollectionsMarshal.AsSpan(list393); + index2 = 0; + span393[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013494u, new Vector3(-505.30255f, 120.61159f, -311.39087f), 397) { Fly = true, Land = true }; obj282.Steps = list393; reference291 = obj282; - ref QuestSequence reference292 = ref span162[5]; + num++; + ref QuestSequence reference292 = ref span388[num]; QuestSequence obj283 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list394 = new List(num2); - CollectionsMarshal.SetCount(list394, num2); - CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013494u, new Vector3(-505.30255f, 120.61159f, -311.39087f), 397); + index2 = 1; + List list394 = new List(index2); + CollectionsMarshal.SetCount(list394, index2); + Span span394 = CollectionsMarshal.AsSpan(list394); + num2 = 0; + span394[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013494u, new Vector3(-505.30255f, 120.61159f, -311.39087f), 397); obj283.Steps = list394; reference292 = obj283; questRoot45.QuestSequence = list388; @@ -109542,13 +131846,16 @@ public static class AssemblyQuestLoader num = 1; List list395 = new List(num); CollectionsMarshal.SetCount(list395, num); - CollectionsMarshal.AsSpan(list395)[0] = "liza"; + Span span395 = CollectionsMarshal.AsSpan(list395); + index = 0; + span395[index] = "liza"; questRoot46.Author = list395; - num = 6; - List list396 = new List(num); - CollectionsMarshal.SetCount(list396, num); - Span span164 = CollectionsMarshal.AsSpan(list396); - ref QuestSequence reference293 = ref span164[0]; + index = 6; + List list396 = new List(index); + CollectionsMarshal.SetCount(list396, index); + Span span396 = CollectionsMarshal.AsSpan(list396); + num = 0; + ref QuestSequence reference293 = ref span396[num]; QuestSequence obj284 = new QuestSequence { Sequence = 0 @@ -109556,7 +131863,9 @@ public static class AssemblyQuestLoader num2 = 1; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span397 = CollectionsMarshal.AsSpan(list397); + index2 = 0; + span397[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -109574,20 +131883,25 @@ public static class AssemblyQuestLoader }; obj284.Steps = list397; reference293 = obj284; - ref QuestSequence reference294 = ref span164[1]; + num++; + ref QuestSequence reference294 = ref span396[num]; QuestSequence obj285 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list398 = new List(num2); - CollectionsMarshal.SetCount(list398, num2); - ref QuestStep reference295 = ref CollectionsMarshal.AsSpan(list398)[0]; + index2 = 1; + List list398 = new List(index2); + CollectionsMarshal.SetCount(list398, index2); + Span span398 = CollectionsMarshal.AsSpan(list398); + num2 = 0; + ref QuestStep reference295 = ref span398[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); num3 = 1; List list399 = new List(num3); CollectionsMarshal.SetCount(list399, num3); - CollectionsMarshal.AsSpan(list399)[0] = new DialogueChoice + Span span399 = CollectionsMarshal.AsSpan(list399); + index3 = 0; + span399[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMCH300_01696_Q1_000_000"), @@ -109597,7 +131911,8 @@ public static class AssemblyQuestLoader reference295 = questStep18; obj285.Steps = list398; reference294 = obj285; - ref QuestSequence reference296 = ref span164[2]; + num++; + ref QuestSequence reference296 = ref span396[num]; QuestSequence obj286 = new QuestSequence { Sequence = 2 @@ -109605,66 +131920,91 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.Interact, 1014731u, new Vector3(-73.16705f, 64.608665f, -248.0965f), 180) + Span span400 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span400[index2] = new QuestStep(EInteractionType.Interact, 1014731u, new Vector3(-73.16705f, 64.608665f, -248.0965f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj286.Steps = list400; reference296 = obj286; - ref QuestSequence reference297 = ref span164[3]; + num++; + ref QuestSequence reference297 = ref span396[num]; QuestSequence obj287 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list401 = new List(num2); - CollectionsMarshal.SetCount(list401, num2); - Span span165 = CollectionsMarshal.AsSpan(list401); - ref QuestStep reference298 = ref span165[0]; + index2 = 3; + List list401 = new List(index2); + CollectionsMarshal.SetCount(list401, index2); + Span span401 = CollectionsMarshal.AsSpan(list401); + num2 = 0; + ref QuestStep reference298 = ref span401[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1014733u, new Vector3(-98.435974f, 64.488625f, -215.56421f), 180); - num3 = 6; - List list402 = new List(num3); - CollectionsMarshal.SetCount(list402, num3); - Span span166 = CollectionsMarshal.AsSpan(list402); - span166[0] = null; - span166[1] = null; - span166[2] = null; - span166[3] = null; - span166[4] = null; - span166[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list402 = new List(index3); + CollectionsMarshal.SetCount(list402, index3); + Span span402 = CollectionsMarshal.AsSpan(list402); + num3 = 0; + span402[num3] = null; + num3++; + span402[num3] = null; + num3++; + span402[num3] = null; + num3++; + span402[num3] = null; + num3++; + span402[num3] = null; + num3++; + span402[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list402; reference298 = questStep19; - ref QuestStep reference299 = ref span165[1]; + num2++; + ref QuestStep reference299 = ref span401[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1014735u, new Vector3(-112.62689f, 64.39167f, -200.12213f), 180); num3 = 6; List list403 = new List(num3); CollectionsMarshal.SetCount(list403, num3); - Span span167 = CollectionsMarshal.AsSpan(list403); - span167[0] = null; - span167[1] = null; - span167[2] = null; - span167[3] = null; - span167[4] = null; - span167[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span403 = CollectionsMarshal.AsSpan(list403); + index3 = 0; + span403[index3] = null; + index3++; + span403[index3] = null; + index3++; + span403[index3] = null; + index3++; + span403[index3] = null; + index3++; + span403[index3] = null; + index3++; + span403[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list403; reference299 = questStep20; - ref QuestStep reference300 = ref span165[2]; + num2++; + ref QuestStep reference300 = ref span401[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1014734u, new Vector3(-147.81415f, 64.37568f, -220.56921f), 180); - num3 = 6; - List list404 = new List(num3); - CollectionsMarshal.SetCount(list404, num3); - Span span168 = CollectionsMarshal.AsSpan(list404); - span168[0] = null; - span168[1] = null; - span168[2] = null; - span168[3] = null; - span168[4] = null; - span168[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list404 = new List(index3); + CollectionsMarshal.SetCount(list404, index3); + Span span404 = CollectionsMarshal.AsSpan(list404); + num3 = 0; + span404[num3] = null; + num3++; + span404[num3] = null; + num3++; + span404[num3] = null; + num3++; + span404[num3] = null; + num3++; + span404[num3] = null; + num3++; + span404[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list404; reference300 = questStep21; obj287.Steps = list401; reference297 = obj287; - ref QuestSequence reference301 = ref span164[4]; + num++; + ref QuestSequence reference301 = ref span396[num]; QuestSequence obj288 = new QuestSequence { Sequence = 4 @@ -109672,18 +132012,23 @@ public static class AssemblyQuestLoader num2 = 1; List list405 = new List(num2); CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.Interact, 1014731u, new Vector3(-73.16705f, 64.608665f, -248.0965f), 180); + Span span405 = CollectionsMarshal.AsSpan(list405); + index2 = 0; + span405[index2] = new QuestStep(EInteractionType.Interact, 1014731u, new Vector3(-73.16705f, 64.608665f, -248.0965f), 180); obj288.Steps = list405; reference301 = obj288; - ref QuestSequence reference302 = ref span164[5]; + num++; + ref QuestSequence reference302 = ref span396[num]; QuestSequence obj289 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list406 = new List(num2); - CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014736u, new Vector3(-99.25995f, 62.382347f, -182.78784f), 180) + index2 = 1; + List list406 = new List(index2); + CollectionsMarshal.SetCount(list406, index2); + Span span406 = CollectionsMarshal.AsSpan(list406); + num2 = 0; + span406[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014736u, new Vector3(-99.25995f, 62.382347f, -182.78784f), 180) { NextQuestId = new QuestId(1697) }; @@ -109696,13 +132041,16 @@ public static class AssemblyQuestLoader num = 1; List list407 = new List(num); CollectionsMarshal.SetCount(list407, num); - CollectionsMarshal.AsSpan(list407)[0] = "liza"; + Span span407 = CollectionsMarshal.AsSpan(list407); + index = 0; + span407[index] = "liza"; questRoot47.Author = list407; - num = 3; - List list408 = new List(num); - CollectionsMarshal.SetCount(list408, num); - Span span169 = CollectionsMarshal.AsSpan(list408); - ref QuestSequence reference303 = ref span169[0]; + index = 3; + List list408 = new List(index); + CollectionsMarshal.SetCount(list408, index); + Span span408 = CollectionsMarshal.AsSpan(list408); + num = 0; + ref QuestSequence reference303 = ref span408[num]; QuestSequence obj290 = new QuestSequence { Sequence = 0 @@ -109710,8 +132058,9 @@ public static class AssemblyQuestLoader num2 = 3; List list409 = new List(num2); CollectionsMarshal.SetCount(list409, num2); - Span span170 = CollectionsMarshal.AsSpan(list409); - span170[0] = new QuestStep(EInteractionType.EquipItem, null, null, 180) + Span span409 = CollectionsMarshal.AsSpan(list409); + index2 = 0; + span409[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, ItemId = 10462u, @@ -109730,25 +132079,31 @@ public static class AssemblyQuestLoader } } }; - span170[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 180); - span170[2] = new QuestStep(EInteractionType.AcceptQuest, 1014739u, new Vector3(-97.33734f, 62.55459f, -175.34143f), 180); + index2++; + span409[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 180); + index2++; + span409[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014739u, new Vector3(-97.33734f, 62.55459f, -175.34143f), 180); obj290.Steps = list409; reference303 = obj290; - ref QuestSequence reference304 = ref span169[1]; + num++; + ref QuestSequence reference304 = ref span408[num]; QuestSequence obj291 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list410 = new List(num2); - CollectionsMarshal.SetCount(list410, num2); - CollectionsMarshal.AsSpan(list410)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014742u, new Vector3(-230.30444f, 63.88775f, -257.4655f), 180) + index2 = 1; + List list410 = new List(index2); + CollectionsMarshal.SetCount(list410, index2); + Span span410 = CollectionsMarshal.AsSpan(list410); + num2 = 0; + span410[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014742u, new Vector3(-230.30444f, 63.88775f, -257.4655f), 180) { Fly = true }; obj291.Steps = list410; reference304 = obj291; - ref QuestSequence reference305 = ref span169[2]; + num++; + ref QuestSequence reference305 = ref span408[num]; QuestSequence obj292 = new QuestSequence { Sequence = byte.MaxValue @@ -109756,7 +132111,9 @@ public static class AssemblyQuestLoader num2 = 1; List list411 = new List(num2); CollectionsMarshal.SetCount(list411, num2); - CollectionsMarshal.AsSpan(list411)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span411 = CollectionsMarshal.AsSpan(list411); + index2 = 0; + span411[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -109775,21 +132132,26 @@ public static class AssemblyQuestLoader num = 1; List list412 = new List(num); CollectionsMarshal.SetCount(list412, num); - CollectionsMarshal.AsSpan(list412)[0] = "liza"; + Span span412 = CollectionsMarshal.AsSpan(list412); + index = 0; + span412[index] = "liza"; questRoot48.Author = list412; - num = 8; - List list413 = new List(num); - CollectionsMarshal.SetCount(list413, num); - Span span171 = CollectionsMarshal.AsSpan(list413); - ref QuestSequence reference306 = ref span171[0]; + index = 8; + List list413 = new List(index); + CollectionsMarshal.SetCount(list413, index); + Span span413 = CollectionsMarshal.AsSpan(list413); + num = 0; + ref QuestSequence reference306 = ref span413[num]; QuestSequence obj293 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list414 = new List(num2); - CollectionsMarshal.SetCount(list414, num2); - CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list414 = new List(index2); + CollectionsMarshal.SetCount(list414, index2); + Span span414 = CollectionsMarshal.AsSpan(list414); + num2 = 0; + span414[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -109807,7 +132169,8 @@ public static class AssemblyQuestLoader }; obj293.Steps = list414; reference306 = obj293; - ref QuestSequence reference307 = ref span171[1]; + num++; + ref QuestSequence reference307 = ref span413[num]; QuestSequence obj294 = new QuestSequence { Sequence = 1 @@ -109815,22 +132178,27 @@ public static class AssemblyQuestLoader num2 = 1; List list415 = new List(num2); CollectionsMarshal.SetCount(list415, num2); - CollectionsMarshal.AsSpan(list415)[0] = new QuestStep(EInteractionType.Interact, 1014745u, new Vector3(-205.82898f, 45.803963f, 517.20447f), 137) + Span span415 = CollectionsMarshal.AsSpan(list415); + index2 = 0; + span415[index2] = new QuestStep(EInteractionType.Interact, 1014745u, new Vector3(-205.82898f, 45.803963f, 517.20447f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj294.Steps = list415; reference307 = obj294; - ref QuestSequence reference308 = ref span171[2]; + num++; + ref QuestSequence reference308 = ref span413[num]; QuestSequence obj295 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list416 = new List(num2); - CollectionsMarshal.SetCount(list416, num2); - ref QuestStep reference309 = ref CollectionsMarshal.AsSpan(list416)[0]; + index2 = 1; + List list416 = new List(index2); + CollectionsMarshal.SetCount(list416, index2); + Span span416 = CollectionsMarshal.AsSpan(list416); + num2 = 0; + ref QuestStep reference309 = ref span416[num2]; QuestStep obj296 = new QuestStep(EInteractionType.Combat, 1014748u, new Vector3(-233.66144f, 44.330624f, 519.09656f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -109838,12 +132206,15 @@ public static class AssemblyQuestLoader num3 = 1; List list417 = new List(num3); CollectionsMarshal.SetCount(list417, num3); - CollectionsMarshal.AsSpan(list417)[0] = 4476u; + Span span417 = CollectionsMarshal.AsSpan(list417); + index3 = 0; + span417[index3] = 4476u; obj296.KillEnemyDataIds = list417; reference309 = obj296; obj295.Steps = list416; reference308 = obj295; - ref QuestSequence reference310 = ref span171[3]; + num++; + ref QuestSequence reference310 = ref span413[num]; QuestSequence obj297 = new QuestSequence { Sequence = 3 @@ -109851,30 +132222,37 @@ public static class AssemblyQuestLoader num2 = 2; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - Span span172 = CollectionsMarshal.AsSpan(list418); - span172[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-235.98387f, 44.330624f, 540.6855f), 137); - ref QuestStep reference311 = ref span172[1]; + Span span418 = CollectionsMarshal.AsSpan(list418); + index2 = 0; + span418[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-235.98387f, 44.330624f, 540.6855f), 137); + index2++; + ref QuestStep reference311 = ref span418[index2]; QuestStep obj298 = new QuestStep(EInteractionType.Combat, 1014749u, new Vector3(-234.02765f, 44.330624f, 539.81836f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list419 = new List(num3); - CollectionsMarshal.SetCount(list419, num3); - CollectionsMarshal.AsSpan(list419)[0] = 4477u; + index3 = 1; + List list419 = new List(index3); + CollectionsMarshal.SetCount(list419, index3); + Span span419 = CollectionsMarshal.AsSpan(list419); + num3 = 0; + span419[num3] = 4477u; obj298.KillEnemyDataIds = list419; reference311 = obj298; obj297.Steps = list418; reference310 = obj297; - ref QuestSequence reference312 = ref span171[4]; + num++; + ref QuestSequence reference312 = ref span413[num]; QuestSequence obj299 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list420 = new List(num2); - CollectionsMarshal.SetCount(list420, num2); - ref QuestStep reference313 = ref CollectionsMarshal.AsSpan(list420)[0]; + index2 = 1; + List list420 = new List(index2); + CollectionsMarshal.SetCount(list420, index2); + Span span420 = CollectionsMarshal.AsSpan(list420); + num2 = 0; + ref QuestStep reference313 = ref span420[num2]; QuestStep obj300 = new QuestStep(EInteractionType.Combat, 1014745u, new Vector3(-205.82898f, 45.803963f, 517.20447f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -109882,12 +132260,15 @@ public static class AssemblyQuestLoader num3 = 1; List list421 = new List(num3); CollectionsMarshal.SetCount(list421, num3); - CollectionsMarshal.AsSpan(list421)[0] = 321u; + Span span421 = CollectionsMarshal.AsSpan(list421); + index3 = 0; + span421[index3] = 321u; obj300.KillEnemyDataIds = list421; reference313 = obj300; obj299.Steps = list420; reference312 = obj299; - ref QuestSequence reference314 = ref span171[5]; + num++; + ref QuestSequence reference314 = ref span413[num]; QuestSequence obj301 = new QuestSequence { Sequence = 5 @@ -109895,21 +132276,27 @@ public static class AssemblyQuestLoader num2 = 1; List list422 = new List(num2); CollectionsMarshal.SetCount(list422, num2); - CollectionsMarshal.AsSpan(list422)[0] = new QuestStep(EInteractionType.Interact, 1014745u, new Vector3(-205.82898f, 45.803963f, 517.20447f), 137); + Span span422 = CollectionsMarshal.AsSpan(list422); + index2 = 0; + span422[index2] = new QuestStep(EInteractionType.Interact, 1014745u, new Vector3(-205.82898f, 45.803963f, 517.20447f), 137); obj301.Steps = list422; reference314 = obj301; - ref QuestSequence reference315 = ref span171[6]; + num++; + ref QuestSequence reference315 = ref span413[num]; QuestSequence obj302 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list423 = new List(num2); - CollectionsMarshal.SetCount(list423, num2); - CollectionsMarshal.AsSpan(list423)[0] = new QuestStep(EInteractionType.Interact, 1014748u, new Vector3(-233.66144f, 44.330624f, 519.09656f), 137); + index2 = 1; + List list423 = new List(index2); + CollectionsMarshal.SetCount(list423, index2); + Span span423 = CollectionsMarshal.AsSpan(list423); + num2 = 0; + span423[num2] = new QuestStep(EInteractionType.Interact, 1014748u, new Vector3(-233.66144f, 44.330624f, 519.09656f), 137); obj302.Steps = list423; reference315 = obj302; - ref QuestSequence reference316 = ref span171[7]; + num++; + ref QuestSequence reference316 = ref span413[num]; QuestSequence obj303 = new QuestSequence { Sequence = byte.MaxValue @@ -109917,7 +132304,9 @@ public static class AssemblyQuestLoader num2 = 1; List list424 = new List(num2); CollectionsMarshal.SetCount(list424, num2); - CollectionsMarshal.AsSpan(list424)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span424 = CollectionsMarshal.AsSpan(list424); + index2 = 0; + span424[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -109936,21 +132325,26 @@ public static class AssemblyQuestLoader num = 1; List list425 = new List(num); CollectionsMarshal.SetCount(list425, num); - CollectionsMarshal.AsSpan(list425)[0] = "liza"; + Span span425 = CollectionsMarshal.AsSpan(list425); + index = 0; + span425[index] = "liza"; questRoot49.Author = list425; - num = 2; - List list426 = new List(num); - CollectionsMarshal.SetCount(list426, num); - Span span173 = CollectionsMarshal.AsSpan(list426); - ref QuestSequence reference317 = ref span173[0]; + index = 2; + List list426 = new List(index); + CollectionsMarshal.SetCount(list426, index); + Span span426 = CollectionsMarshal.AsSpan(list426); + num = 0; + ref QuestSequence reference317 = ref span426[num]; QuestSequence obj304 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list427 = new List(num2); - CollectionsMarshal.SetCount(list427, num2); - CollectionsMarshal.AsSpan(list427)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list427 = new List(index2); + CollectionsMarshal.SetCount(list427, index2); + Span span427 = CollectionsMarshal.AsSpan(list427); + num2 = 0; + span427[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -109968,7 +132362,8 @@ public static class AssemblyQuestLoader }; obj304.Steps = list427; reference317 = obj304; - ref QuestSequence reference318 = ref span173[1]; + num++; + ref QuestSequence reference318 = ref span426[num]; QuestSequence obj305 = new QuestSequence { Sequence = byte.MaxValue @@ -109976,7 +132371,9 @@ public static class AssemblyQuestLoader num2 = 1; List list428 = new List(num2); CollectionsMarshal.SetCount(list428, num2); - CollectionsMarshal.AsSpan(list428)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span428 = CollectionsMarshal.AsSpan(list428); + index2 = 0; + span428[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { NextQuestId = new QuestId(1700) }; @@ -109993,13 +132390,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 8; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 8; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -110007,7 +132407,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110025,18 +132427,22 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1014750u, new Vector3(-98.802185f, 16.0083f, 26.626953f), 418); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1014750u, new Vector3(-98.802185f, 16.0083f, 26.626953f), 418); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -110044,8 +132450,9 @@ public static class AssemblyQuestLoader num2 = 3; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - ref QuestStep reference4 = ref span2[0]; + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + ref QuestStep reference4 = ref span5[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Action, 1014752u, new Vector3(-155.59625f, 16.979582f, -38.376526f), 418) { StopDistance = 10f, @@ -110054,16 +132461,23 @@ public static class AssemblyQuestLoader int num3 = 6; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span6 = CollectionsMarshal.AsSpan(list6); + int num4 = 0; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list6; reference4 = obj4; - ref QuestStep reference5 = ref span2[1]; + index2++; + ref QuestStep reference5 = ref span5[index2]; QuestStep obj5 = new QuestStep(EInteractionType.Action, 1014753u, new Vector3(52.994507f, 24.071722f, -25.070618f), 418) { StopDistance = 10f, @@ -110074,19 +132488,26 @@ public static class AssemblyQuestLoader }, Action = EAction.SlugShot }; - num3 = 6; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span4 = CollectionsMarshal.AsSpan(list7); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list7 = new List(num4); + CollectionsMarshal.SetCount(list7, num4); + Span span7 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj5.CompletionQuestVariablesFlags = list7; reference5 = obj5; - ref QuestStep reference6 = ref span2[2]; + index2++; + ref QuestStep reference6 = ref span5[index2]; QuestStep obj6 = new QuestStep(EInteractionType.Action, 1014754u, new Vector3(114.18323f, -7.146736f, 83.66516f), 418) { StopDistance = 10f, @@ -110100,26 +132521,35 @@ public static class AssemblyQuestLoader num3 = 6; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span5 = CollectionsMarshal.AsSpan(list8); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span8 = CollectionsMarshal.AsSpan(list8); + num4 = 0; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj6.CompletionQuestVariablesFlags = list8; reference6 = obj6; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference7 = ref span[3]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AethernetShortcut = new AethernetShortcut { @@ -110129,7 +132559,8 @@ public static class AssemblyQuestLoader }; obj7.Steps = list9; reference7 = obj7; - ref QuestSequence reference8 = ref span[4]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 4 @@ -110137,25 +132568,31 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014760u, new Vector3(232.6543f, 251.81952f, 127.21448f), 155) + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014760u, new Vector3(232.6543f, 251.81952f, 127.21448f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj8.Steps = list10; reference8 = obj8; - ref QuestSequence reference9 = ref span[5]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1014762u, new Vector3(207.44641f, 255.97514f, 82.26135f), 155); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.Interact, 1014762u, new Vector3(207.44641f, 255.97514f, 82.26135f), 155); obj9.Steps = list11; reference9 = obj9; - ref QuestSequence reference10 = ref span[6]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 6 @@ -110163,18 +132600,23 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1014762u, new Vector3(207.44641f, 255.97514f, 82.26135f), 155); + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.Interact, 1014762u, new Vector3(207.44641f, 255.97514f, 82.26135f), 155); obj10.Steps = list12; reference10 = obj10; - ref QuestSequence reference11 = ref span[7]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110193,13 +132635,16 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "liza"; + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = "liza"; questRoot2.Author = list14; - num = 2; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span6 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference12 = ref span6[0]; + index = 2; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference12 = ref span15[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -110207,7 +132652,9 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110225,15 +132672,18 @@ public static class AssemblyQuestLoader }; obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference13 = ref span6[1]; + num++; + ref QuestSequence reference13 = ref span15[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { NextQuestId = new QuestId(1702) }; @@ -110246,13 +132696,16 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "liza"; + Span span18 = CollectionsMarshal.AsSpan(list18); + index = 0; + span18[index] = "liza"; questRoot3.Author = list18; - num = 6; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span7 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference14 = ref span7[0]; + index = 6; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + Span span19 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference14 = ref span19[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -110260,7 +132713,9 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110278,15 +132733,18 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span7[1]; + num++; + ref QuestSequence reference15 = ref span19[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list21)[0]; + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + ref QuestStep reference16 = ref span21[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 1014769u, new Vector3(-245.4414f, -20.03492f, -63.645386f), 419) { AethernetShortcut = new AethernetShortcut @@ -110295,10 +132753,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardJeweledCrozier } }; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = new DialogueChoice + num4 = 1; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMCH451_01702_Q1_000_000"), @@ -110308,7 +132768,8 @@ public static class AssemblyQuestLoader reference16 = obj16; obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference17 = ref span7[2]; + num++; + ref QuestSequence reference17 = ref span19[num]; QuestSequence obj17 = new QuestSequence { Sequence = 2 @@ -110316,21 +132777,26 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 2006262u, new Vector3(-246.357f, -20.035156f, -64.683044f), 419) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.Interact, 2006262u, new Vector3(-246.357f, -20.035156f, -64.683044f), 419) { StopDistance = 4.5f }; obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span7[3]; + num++; + ref QuestSequence reference18 = ref span19[num]; QuestSequence obj18 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list24)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference19 = ref span24[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1014770u, new Vector3(-16.281433f, 16.009666f, -6.668213f), 419) { AethernetShortcut = new AethernetShortcut @@ -110342,7 +132808,9 @@ public static class AssemblyQuestLoader num3 = 1; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = new DialogueChoice + Span span25 = CollectionsMarshal.AsSpan(list25); + num4 = 0; + span25[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMCH451_01702_Q2_000_000"), @@ -110352,7 +132820,8 @@ public static class AssemblyQuestLoader reference19 = obj19; obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference20 = ref span7[4]; + num++; + ref QuestSequence reference20 = ref span19[num]; QuestSequence obj20 = new QuestSequence { Sequence = 4 @@ -110360,22 +132829,27 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014772u, new Vector3(427.0542f, 15.170297f, 706.72156f), 137) + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014772u, new Vector3(427.0542f, 15.170297f, 706.72156f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj20.Steps = list26; reference20 = obj20; - ref QuestSequence reference21 = ref span7[5]; + num++; + ref QuestSequence reference21 = ref span19[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110394,13 +132868,16 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + Span span28 = CollectionsMarshal.AsSpan(list28); + index = 0; + span28[index] = "liza"; questRoot4.Author = list28; - num = 7; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span8 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference22 = ref span8[0]; + index = 7; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + Span span29 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference22 = ref span29[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -110408,7 +132885,9 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110426,18 +132905,22 @@ public static class AssemblyQuestLoader }; obj22.Steps = list30; reference22 = obj22; - ref QuestSequence reference23 = ref span8[1]; + num++; + ref QuestSequence reference23 = ref span29[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1014775u, new Vector3(-155.6878f, 16.979584f, -38.4375f), 418); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.Interact, 1014775u, new Vector3(-155.6878f, 16.979584f, -38.4375f), 418); obj23.Steps = list31; reference23 = obj23; - ref QuestSequence reference24 = ref span8[2]; + num++; + ref QuestSequence reference24 = ref span29[num]; QuestSequence obj24 = new QuestSequence { Sequence = 2 @@ -110445,36 +132928,47 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1014776u, new Vector3(-138.7503f, 23.240587f, -83.878845f), 418); + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.Interact, 1014776u, new Vector3(-138.7503f, 23.240587f, -83.878845f), 418); obj24.Steps = list32; reference24 = obj24; - ref QuestSequence reference25 = ref span8[3]; + num++; + ref QuestSequence reference25 = ref span29[num]; QuestSequence obj25 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span9 = CollectionsMarshal.AsSpan(list33); - ref QuestStep reference26 = ref span9[0]; + index2 = 3; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + ref QuestStep reference26 = ref span33[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Action, 1014778u, new Vector3(-160.35712f, 26.378231f, -88.9754f), 418) { Action = EAction.SlugShot }; - num3 = 6; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span10 = CollectionsMarshal.AsSpan(list34); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list34 = new List(num4); + CollectionsMarshal.SetCount(list34, num4); + Span span34 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj26.CompletionQuestVariablesFlags = list34; reference26 = obj26; - ref QuestStep reference27 = ref span9[1]; + num2++; + ref QuestStep reference27 = ref span33[num2]; QuestStep obj27 = new QuestStep(EInteractionType.Action, 1014779u, new Vector3(-94.31604f, 19.008303f, -16.494995f), 418) { Action = EAction.SlugShot @@ -110482,35 +132976,49 @@ public static class AssemblyQuestLoader num3 = 6; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span11 = CollectionsMarshal.AsSpan(list35); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span35 = CollectionsMarshal.AsSpan(list35); + num4 = 0; + span35[num4] = null; + num4++; + span35[num4] = null; + num4++; + span35[num4] = null; + num4++; + span35[num4] = null; + num4++; + span35[num4] = null; + num4++; + span35[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj27.CompletionQuestVariablesFlags = list35; reference27 = obj27; - ref QuestStep reference28 = ref span9[2]; + num2++; + ref QuestStep reference28 = ref span33[num2]; QuestStep obj28 = new QuestStep(EInteractionType.Action, 1014777u, new Vector3(-133.83691f, 18.94346f, -12.100403f), 418) { Action = EAction.SlugShot }; - num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span12 = CollectionsMarshal.AsSpan(list36); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list36 = new List(num4); + CollectionsMarshal.SetCount(list36, num4); + Span span36 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj28.CompletionQuestVariablesFlags = list36; reference28 = obj28; obj25.Steps = list33; reference25 = obj25; - ref QuestSequence reference29 = ref span8[4]; + num++; + ref QuestSequence reference29 = ref span29[num]; QuestSequence obj29 = new QuestSequence { Sequence = 4 @@ -110518,21 +133026,27 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); obj29.Steps = list37; reference29 = obj29; - ref QuestSequence reference30 = ref span8[5]; + num++; + ref QuestSequence reference30 = ref span29[num]; QuestSequence obj30 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1014782u, new Vector3(-151.59845f, 16.979586f, -22.720703f), 418); + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.Interact, 1014782u, new Vector3(-151.59845f, 16.979586f, -22.720703f), 418); obj30.Steps = list38; reference30 = obj30; - ref QuestSequence reference31 = ref span8[6]; + num++; + ref QuestSequence reference31 = ref span29[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -110540,7 +133054,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { NextQuestId = new QuestId(1704) }; @@ -110553,21 +133069,26 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "liza"; + Span span40 = CollectionsMarshal.AsSpan(list40); + index = 0; + span40[index] = "liza"; questRoot5.Author = list40; - num = 5; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span13 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference32 = ref span13[0]; + index = 5; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + Span span41 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference32 = ref span41[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110585,7 +133106,8 @@ public static class AssemblyQuestLoader }; obj32.Steps = list42; reference32 = obj32; - ref QuestSequence reference33 = ref span13[1]; + num++; + ref QuestSequence reference33 = ref span41[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 @@ -110593,25 +133115,31 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1014784u, new Vector3(224.29236f, 302f, -276.84448f), 155) + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.Interact, 1014784u, new Vector3(224.29236f, 302f, -276.84448f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj33.Steps = list43; reference33 = obj33; - ref QuestSequence reference34 = ref span13[2]; + num++; + ref QuestSequence reference34 = ref span41[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014784u, new Vector3(224.29236f, 302f, -276.84448f), 155); + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014784u, new Vector3(224.29236f, 302f, -276.84448f), 155); obj34.Steps = list44; reference34 = obj34; - ref QuestSequence reference35 = ref span13[3]; + num++; + ref QuestSequence reference35 = ref span41[num]; QuestSequence obj35 = new QuestSequence { Sequence = 3 @@ -110619,21 +133147,26 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1014788u, new Vector3(222.06445f, 302f, -189.01355f), 155) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.Interact, 1014788u, new Vector3(222.06445f, 302f, -189.01355f), 155) { StopDistance = 5f }; obj35.Steps = list45; reference35 = obj35; - ref QuestSequence reference36 = ref span13[4]; + num++; + ref QuestSequence reference36 = ref span41[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110652,13 +133185,16 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "liza"; + Span span47 = CollectionsMarshal.AsSpan(list47); + index = 0; + span47[index] = "liza"; questRoot6.Author = list47; - num = 4; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span14 = CollectionsMarshal.AsSpan(list48); - ref QuestSequence reference37 = ref span14[0]; + index = 4; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + Span span48 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref QuestSequence reference37 = ref span48[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -110666,7 +133202,9 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span49[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -110684,18 +133222,22 @@ public static class AssemblyQuestLoader }; obj37.Steps = list49; reference37 = obj37; - ref QuestSequence reference38 = ref span14[1]; + num++; + ref QuestSequence reference38 = ref span48[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1014793u, new Vector3(-139.48273f, 19.236662f, -11.978394f), 418); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.Interact, 1014793u, new Vector3(-139.48273f, 19.236662f, -11.978394f), 418); obj38.Steps = list50; reference38 = obj38; - ref QuestSequence reference39 = ref span14[2]; + num++; + ref QuestSequence reference39 = ref span48[num]; QuestSequence obj39 = new QuestSequence { Sequence = 2 @@ -110703,7 +133245,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1014795u, new Vector3(-18.265076f, 16.009666f, -7.5532227f), 419) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.Interact, 1014795u, new Vector3(-18.265076f, 16.009666f, -7.5532227f), 419) { AethernetShortcut = new AethernetShortcut { @@ -110713,15 +133257,18 @@ public static class AssemblyQuestLoader }; obj39.Steps = list51; reference39 = obj39; - ref QuestSequence reference40 = ref span14[3]; + num++; + ref QuestSequence reference40 = ref span48[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014796u, new Vector3(-152.88019f, 16.999998f, -52.903076f), 418) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014796u, new Vector3(-152.88019f, 16.999998f, -52.903076f), 418) { AethernetShortcut = new AethernetShortcut { @@ -110739,13 +133286,16 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "liza"; + Span span53 = CollectionsMarshal.AsSpan(list53); + index = 0; + span53[index] = "liza"; questRoot7.Author = list53; - num = 7; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span15 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference41 = ref span15[0]; + index = 7; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + Span span54 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference41 = ref span54[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -110753,7 +133303,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -110772,16 +133324,18 @@ public static class AssemblyQuestLoader }; obj41.Steps = list55; reference41 = obj41; - ref QuestSequence reference42 = ref span15[1]; + num++; + ref QuestSequence reference42 = ref span54[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span16 = CollectionsMarshal.AsSpan(list56); - ref QuestStep reference43 = ref span16[0]; + index2 = 6; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + ref QuestStep reference43 = ref span56[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(-461.6901f, -4.0053887f, -292.6277f), 156) { StopDistance = 0.5f, @@ -110792,20 +133346,28 @@ public static class AssemblyQuestLoader num3 = 1; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = 201u; + Span span57 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span57[num4] = 201u; obj43.KillEnemyDataIds = list57; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - Span span17 = CollectionsMarshal.AsSpan(list58); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list58 = new List(num4); + CollectionsMarshal.SetCount(list58, num4); + Span span58 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + span58[num3] = null; + num3++; + span58[num3] = null; + num3++; + span58[num3] = null; + num3++; + span58[num3] = null; + num3++; + span58[num3] = null; + num3++; + span58[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list58; skipConditions.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition @@ -110814,7 +133376,8 @@ public static class AssemblyQuestLoader }; obj43.SkipConditions = skipConditions; reference43 = obj43; - ref QuestStep reference44 = ref span16[1]; + num2++; + ref QuestStep reference44 = ref span56[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 2006271u, new Vector3(-462.7909f, -2.7619019f, -289.4179f), 156) { StopDistance = 4.5f @@ -110822,64 +133385,88 @@ public static class AssemblyQuestLoader num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span18 = CollectionsMarshal.AsSpan(list59); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span59 = CollectionsMarshal.AsSpan(list59); + num4 = 0; + span59[num4] = null; + num4++; + span59[num4] = null; + num4++; + span59[num4] = null; + num4++; + span59[num4] = null; + num4++; + span59[num4] = null; + num4++; + span59[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj44.CompletionQuestVariablesFlags = list59; reference44 = obj44; - ref QuestStep reference45 = ref span16[2]; + num2++; + ref QuestStep reference45 = ref span56[num2]; QuestStep obj45 = new QuestStep(EInteractionType.Combat, null, new Vector3(-567.30835f, -3.9906769f, -334.9877f), 156) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span19 = CollectionsMarshal.AsSpan(list60); - span19[0] = 5039u; - span19[1] = 5040u; - span19[2] = 5041u; + num4 = 3; + List list60 = new List(num4); + CollectionsMarshal.SetCount(list60, num4); + Span span60 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span60[num3] = 5039u; + num3++; + span60[num3] = 5040u; + num3++; + span60[num3] = 5041u; obj45.KillEnemyDataIds = list60; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span20 = CollectionsMarshal.AsSpan(list61); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span61 = CollectionsMarshal.AsSpan(list61); + num4 = 0; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list61; skipConditions2.StepIf = skipStepConditions2; obj45.SkipConditions = skipConditions2; reference45 = obj45; - ref QuestStep reference46 = ref span16[3]; + num2++; + ref QuestStep reference46 = ref span56[num2]; QuestStep obj46 = new QuestStep(EInteractionType.Interact, 2006270u, new Vector3(-570.4891f, -2.8840332f, -334.76776f), 156) { StopDistance = 4.5f }; - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span21 = CollectionsMarshal.AsSpan(list62); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + Span span62 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj46.CompletionQuestVariablesFlags = list62; reference46 = obj46; - ref QuestStep reference47 = ref span16[4]; + num2++; + ref QuestStep reference47 = ref span56[num2]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(-660.1279f, -2.9330442f, -366.86145f), 156) { Fly = true, @@ -110888,43 +133475,59 @@ public static class AssemblyQuestLoader num3 = 2; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span22 = CollectionsMarshal.AsSpan(list63); - span22[0] = 4472u; - span22[1] = 4473u; + Span span63 = CollectionsMarshal.AsSpan(list63); + num4 = 0; + span63[num4] = 4472u; + num4++; + span63[num4] = 4473u; obj47.KillEnemyDataIds = list63; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span23 = CollectionsMarshal.AsSpan(list64); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + Span span64 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list64; skipConditions3.StepIf = skipStepConditions3; obj47.SkipConditions = skipConditions3; reference47 = obj47; - ref QuestStep reference48 = ref span16[5]; + num2++; + ref QuestStep reference48 = ref span56[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2006269u, new Vector3(-661.3413f, -1.6937866f, -367.8188f), 156); num3 = 6; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span24 = CollectionsMarshal.AsSpan(list65); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span65 = CollectionsMarshal.AsSpan(list65); + num4 = 0; + span65[num4] = null; + num4++; + span65[num4] = null; + num4++; + span65[num4] = null; + num4++; + span65[num4] = null; + num4++; + span65[num4] = null; + num4++; + span65[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list65; reference48 = questStep; obj42.Steps = list56; reference42 = obj42; - ref QuestSequence reference49 = ref span15[2]; + num++; + ref QuestSequence reference49 = ref span54[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -110932,7 +133535,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span66[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -110944,16 +133549,18 @@ public static class AssemblyQuestLoader }; obj48.Steps = list66; reference49 = obj48; - ref QuestSequence reference50 = ref span15[3]; + num++; + ref QuestSequence reference50 = ref span54[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - Span span25 = CollectionsMarshal.AsSpan(list67); - ref QuestStep reference51 = ref span25[0]; + index2 = 3; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + ref QuestStep reference51 = ref span67[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Interact, 1014801u, new Vector3(16.220276f, -12.02089f, 49.454468f), 418) { AethernetShortcut = new AethernetShortcut @@ -110962,49 +133569,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardBrume } }; - num3 = 6; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - Span span26 = CollectionsMarshal.AsSpan(list68); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list68 = new List(num4); + CollectionsMarshal.SetCount(list68, num4); + Span span68 = CollectionsMarshal.AsSpan(list68); + num3 = 0; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj50.CompletionQuestVariablesFlags = list68; reference51 = obj50; - ref QuestStep reference52 = ref span25[1]; + num2++; + ref QuestStep reference52 = ref span67[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1014800u, new Vector3(58.182617f, -12.020877f, 79.81995f), 418); num3 = 6; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - Span span27 = CollectionsMarshal.AsSpan(list69); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span69 = CollectionsMarshal.AsSpan(list69); + num4 = 0; + span69[num4] = null; + num4++; + span69[num4] = null; + num4++; + span69[num4] = null; + num4++; + span69[num4] = null; + num4++; + span69[num4] = null; + num4++; + span69[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list69; reference52 = questStep2; - ref QuestStep reference53 = ref span25[2]; + num2++; + ref QuestStep reference53 = ref span67[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1014799u, new Vector3(114.88513f, -19.787056f, 62.57715f), 418); - num3 = 6; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - Span span28 = CollectionsMarshal.AsSpan(list70); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list70 = new List(num4); + CollectionsMarshal.SetCount(list70, num4); + Span span70 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span70[num3] = null; + num3++; + span70[num3] = null; + num3++; + span70[num3] = null; + num3++; + span70[num3] = null; + num3++; + span70[num3] = null; + num3++; + span70[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list70; reference53 = questStep3; obj49.Steps = list67; reference50 = obj49; - ref QuestSequence reference54 = ref span15[4]; + num++; + ref QuestSequence reference54 = ref span54[num]; QuestSequence obj51 = new QuestSequence { Sequence = 4 @@ -111012,7 +133640,9 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -111023,21 +133653,25 @@ public static class AssemblyQuestLoader }; obj51.Steps = list71; reference54 = obj51; - ref QuestSequence reference55 = ref span15[5]; + num++; + ref QuestSequence reference55 = ref span54[num]; QuestSequence obj52 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 2006272u, new Vector3(483.97034f, 212.51233f, 726.8329f), 397) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.Interact, 2006272u, new Vector3(483.97034f, 212.51233f, 726.8329f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj52.Steps = list72; reference55 = obj52; - ref QuestSequence reference56 = ref span15[6]; + num++; + ref QuestSequence reference56 = ref span54[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -111045,7 +133679,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list73)[0]; + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + ref QuestStep reference57 = ref span73[index2]; QuestStep obj54 = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -111058,7 +133694,9 @@ public static class AssemblyQuestLoader num3 = 1; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - CollectionsMarshal.AsSpan(list74)[0] = new DialogueChoice + Span span74 = CollectionsMarshal.AsSpan(list74); + num4 = 0; + span74[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMCH520_01706_Q1_000_000"), @@ -111076,21 +133714,26 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "liza"; + Span span75 = CollectionsMarshal.AsSpan(list75); + index = 0; + span75[index] = "liza"; questRoot8.Author = list75; - num = 7; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span29 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference58 = ref span29[0]; + index = 7; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + Span span76 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference58 = ref span76[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -111108,7 +133751,8 @@ public static class AssemblyQuestLoader }; obj55.Steps = list77; reference58 = obj55; - ref QuestSequence reference59 = ref span29[1]; + num++; + ref QuestSequence reference59 = ref span76[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -111116,21 +133760,26 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1014805u, new Vector3(482.96326f, 212.5841f, 724.7882f), 397) + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.Interact, 1014805u, new Vector3(482.96326f, 212.5841f, 724.7882f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj56.Steps = list78; reference59 = obj56; - ref QuestSequence reference60 = ref span29[2]; + num++; + ref QuestSequence reference60 = ref span76[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1014809u, new Vector3(114.335815f, -19.787056f, 61.81433f), 418) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.Interact, 1014809u, new Vector3(114.335815f, -19.787056f, 61.81433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -111141,7 +133790,8 @@ public static class AssemblyQuestLoader }; obj57.Steps = list79; reference60 = obj57; - ref QuestSequence reference61 = ref span29[3]; + num++; + ref QuestSequence reference61 = ref span76[num]; QuestSequence obj58 = new QuestSequence { Sequence = 3 @@ -111149,29 +133799,35 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Action, 1014810u, new Vector3(117.17395f, -22.017334f, 32.791626f), 418) + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.Action, 1014810u, new Vector3(117.17395f, -22.017334f, 32.791626f), 418) { StopDistance = 10f, Action = EAction.SlugShot }; obj58.Steps = list80; reference61 = obj58; - ref QuestSequence reference62 = ref span29[4]; + num++; + ref QuestSequence reference62 = ref span76[num]; QuestSequence obj59 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014811u, new Vector3(319.69165f, 161.10796f, 147.44788f), 397) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014811u, new Vector3(319.69165f, 161.10796f, 147.44788f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj59.Steps = list81; reference62 = obj59; - ref QuestSequence reference63 = ref span29[5]; + num++; + ref QuestSequence reference63 = ref span76[num]; QuestSequence obj60 = new QuestSequence { Sequence = 5 @@ -111179,21 +133835,26 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1014816u, new Vector3(397.05493f, 161.18224f, -98.10034f), 397) + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.Interact, 1014816u, new Vector3(397.05493f, 161.18224f, -98.10034f), 397) { StopDistance = 5f }; obj60.Steps = list82; reference63 = obj60; - ref QuestSequence reference64 = ref span29[6]; + num++; + ref QuestSequence reference64 = ref span76[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -111212,13 +133873,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "liza"; + Span span84 = CollectionsMarshal.AsSpan(list84); + index = 0; + span84[index] = "liza"; questRoot9.Author = list84; - num = 8; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span30 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference65 = ref span30[0]; + index = 8; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference65 = ref span85[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -111226,7 +133890,9 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -111244,18 +133910,22 @@ public static class AssemblyQuestLoader }; obj62.Steps = list86; reference65 = obj62; - ref QuestSequence reference66 = ref span30[1]; + num++; + ref QuestSequence reference66 = ref span85[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); obj63.Steps = list87; reference66 = obj63; - ref QuestSequence reference67 = ref span30[2]; + num++; + ref QuestSequence reference67 = ref span85[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -111263,7 +133933,9 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1014822u, new Vector3(95.20105f, 15.000009f, 25.345215f), 418) + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.Interact, 1014822u, new Vector3(95.20105f, 15.000009f, 25.345215f), 418) { AethernetShortcut = new AethernetShortcut { @@ -111273,15 +133945,18 @@ public static class AssemblyQuestLoader }; obj64.Steps = list88; reference67 = obj64; - ref QuestSequence reference68 = ref span30[3]; + num++; + ref QuestSequence reference68 = ref span85[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AethernetShortcut = new AethernetShortcut { @@ -111291,7 +133966,8 @@ public static class AssemblyQuestLoader }; obj65.Steps = list89; reference68 = obj65; - ref QuestSequence reference69 = ref span30[4]; + num++; + ref QuestSequence reference69 = ref span85[num]; QuestSequence obj66 = new QuestSequence { Sequence = 4 @@ -111299,38 +133975,46 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1014823u, new Vector3(490.37915f, -51.13661f, 29.587158f), 398) + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.Interact, 1014823u, new Vector3(490.37915f, -51.13661f, 29.587158f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj66.Steps = list90; reference69 = obj66; - ref QuestSequence reference70 = ref span30[5]; + num++; + ref QuestSequence reference70 = ref span85[num]; QuestSequence obj67 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list91)[0]; + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + ref QuestStep reference71 = ref span91[num2]; QuestStep obj68 = new QuestStep(EInteractionType.Combat, 1014825u, new Vector3(576.4706f, -37.673805f, -134.78296f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span31 = CollectionsMarshal.AsSpan(list92); - span31[0] = 5042u; - span31[1] = 5045u; + num4 = 2; + List list92 = new List(num4); + CollectionsMarshal.SetCount(list92, num4); + Span span92 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span92[num3] = 5042u; + num3++; + span92[num3] = 5045u; obj68.KillEnemyDataIds = list92; reference71 = obj68; obj67.Steps = list91; reference70 = obj67; - ref QuestSequence reference72 = ref span30[6]; + num++; + ref QuestSequence reference72 = ref span85[num]; QuestSequence obj69 = new QuestSequence { Sequence = 6 @@ -111338,21 +134022,26 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1014829u, new Vector3(578.5762f, -37.88608f, -132.55518f), 398) + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.Interact, 1014829u, new Vector3(578.5762f, -37.88608f, -132.55518f), 398) { StopDistance = 7f }; obj69.Steps = list93; reference72 = obj69; - ref QuestSequence reference73 = ref span30[7]; + num++; + ref QuestSequence reference73 = ref span85[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -111371,13 +134060,16 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = "JerryWester"; + Span span95 = CollectionsMarshal.AsSpan(list95); + index = 0; + span95[index] = "JerryWester"; questRoot10.Author = list95; - num = 7; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - Span span32 = CollectionsMarshal.AsSpan(list96); - ref QuestSequence reference74 = ref span32[0]; + index = 7; + List list96 = new List(index); + CollectionsMarshal.SetCount(list96, index); + Span span96 = CollectionsMarshal.AsSpan(list96); + num = 0; + ref QuestSequence reference74 = ref span96[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -111385,7 +134077,9 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007753u, new Vector3(17.990356f, 20.385572f, -665.79694f), 156) + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007753u, new Vector3(17.990356f, 20.385572f, -665.79694f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -111398,23 +134092,27 @@ public static class AssemblyQuestLoader }; obj71.Steps = list97; reference74 = obj71; - ref QuestSequence reference75 = ref span32[1]; + num++; + ref QuestSequence reference75 = ref span96[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - Span span33 = CollectionsMarshal.AsSpan(list98); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) + index2 = 2; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) { Fly = true }; - span33[1] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); + num2++; + span98[num2] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); obj72.Steps = list98; reference75 = obj72; - ref QuestSequence reference76 = ref span32[2]; + num++; + ref QuestSequence reference76 = ref span96[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 @@ -111422,19 +134120,23 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); obj73.Steps = list99; reference76 = obj73; - ref QuestSequence reference77 = ref span32[3]; + num++; + ref QuestSequence reference77 = ref span96[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 }; - num2 = 10; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span34 = CollectionsMarshal.AsSpan(list100); - ref QuestStep reference78 = ref span34[0]; + index2 = 10; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference78 = ref span100[num2]; QuestStep obj75 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(287.2875f, 41.545933f, -200.75758f), 139) { Fly = true, @@ -111445,39 +134147,53 @@ public static class AssemblyQuestLoader num3 = 6; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span35 = CollectionsMarshal.AsSpan(list101); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span101 = CollectionsMarshal.AsSpan(list101); + num4 = 0; + span101[num4] = null; + num4++; + span101[num4] = null; + num4++; + span101[num4] = null; + num4++; + span101[num4] = null; + num4++; + span101[num4] = null; + num4++; + span101[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list101; skipConditions4.StepIf = skipStepConditions4; obj75.SkipConditions = skipConditions4; reference78 = obj75; - ref QuestStep reference79 = ref span34[1]; + num2++; + ref QuestStep reference79 = ref span100[num2]; QuestStep obj76 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(285.82883f, 42.26685f, -203.32939f), 139) { TargetTerritoryId = (ushort)180 }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - Span span36 = CollectionsMarshal.AsSpan(list102); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list102 = new List(num4); + CollectionsMarshal.SetCount(list102, num4); + Span span102 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list102; skipConditions5.StepIf = skipStepConditions5; obj76.SkipConditions = skipConditions5; reference79 = obj76; - ref QuestStep reference80 = ref span34[2]; + num2++; + ref QuestStep reference80 = ref span100[num2]; QuestStep obj77 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.35803f, 64.464615f, -217.34372f), 180) { Fly = true @@ -111487,39 +134203,53 @@ public static class AssemblyQuestLoader num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - Span span37 = CollectionsMarshal.AsSpan(list103); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span103 = CollectionsMarshal.AsSpan(list103); + num4 = 0; + span103[num4] = null; + num4++; + span103[num4] = null; + num4++; + span103[num4] = null; + num4++; + span103[num4] = null; + num4++; + span103[num4] = null; + num4++; + span103[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list103; skipConditions6.StepIf = skipStepConditions6; obj77.SkipConditions = skipConditions6; reference80 = obj77; - ref QuestStep reference81 = ref span34[3]; + num2++; + ref QuestStep reference81 = ref span100[num2]; QuestStep obj78 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 180) { Aetheryte = EAetheryteLocation.OuterLaNosceaCampOverlook }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - Span span38 = CollectionsMarshal.AsSpan(list104); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list104 = new List(num4); + CollectionsMarshal.SetCount(list104, num4); + Span span104 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span104[num3] = null; + num3++; + span104[num3] = null; + num3++; + span104[num3] = null; + num3++; + span104[num3] = null; + num3++; + span104[num3] = null; + num3++; + span104[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list104; skipConditions7.StepIf = skipStepConditions7; obj78.SkipConditions = skipConditions7; reference81 = obj78; - ref QuestStep reference82 = ref span34[4]; + num2++; + ref QuestStep reference82 = ref span100[num2]; QuestStep obj79 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.39681f, 58.74831f, -517.9883f), 180) { Fly = true @@ -111529,79 +134259,109 @@ public static class AssemblyQuestLoader num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span39 = CollectionsMarshal.AsSpan(list105); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span105 = CollectionsMarshal.AsSpan(list105); + num4 = 0; + span105[num4] = null; + num4++; + span105[num4] = null; + num4++; + span105[num4] = null; + num4++; + span105[num4] = null; + num4++; + span105[num4] = null; + num4++; + span105[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list105; skipConditions8.StepIf = skipStepConditions8; obj79.SkipConditions = skipConditions8; reference82 = obj79; - ref QuestStep reference83 = ref span34[5]; + num2++; + ref QuestStep reference83 = ref span100[num2]; QuestStep obj80 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.84353f, 28.346682f, -610.36945f), 180) { Fly = true }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 6; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span40 = CollectionsMarshal.AsSpan(list106); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list106 = new List(num4); + CollectionsMarshal.SetCount(list106, num4); + Span span106 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list106; skipConditions9.StepIf = skipStepConditions9; obj80.SkipConditions = skipConditions9; reference83 = obj80; - ref QuestStep reference84 = ref span34[6]; + num2++; + ref QuestStep reference84 = ref span100[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.67392f, 21.581085f, -633.5837f), 180); SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); num3 = 6; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span41 = CollectionsMarshal.AsSpan(list107); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span107 = CollectionsMarshal.AsSpan(list107); + num4 = 0; + span107[num4] = null; + num4++; + span107[num4] = null; + num4++; + span107[num4] = null; + num4++; + span107[num4] = null; + num4++; + span107[num4] = null; + num4++; + span107[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions10.CompletionQuestVariablesFlags = list107; skipConditions10.StepIf = skipStepConditions10; questStep4.SkipConditions = skipConditions10; reference84 = questStep4; - ref QuestStep reference85 = ref span34[7]; + num2++; + ref QuestStep reference85 = ref span100[num2]; QuestStep obj81 = new QuestStep(EInteractionType.Combat, 2000075u, new Vector3(102.15906f, 21.560913f, -632.8679f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = 9487u; + num4 = 1; + List list108 = new List(num4); + CollectionsMarshal.SetCount(list108, num4); + Span span108 = CollectionsMarshal.AsSpan(list108); + num3 = 0; + span108[num3] = 9487u; obj81.KillEnemyDataIds = list108; num3 = 6; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - Span span42 = CollectionsMarshal.AsSpan(list109); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span109 = CollectionsMarshal.AsSpan(list109); + num4 = 0; + span109[num4] = null; + num4++; + span109[num4] = null; + num4++; + span109[num4] = null; + num4++; + span109[num4] = null; + num4++; + span109[num4] = null; + num4++; + span109[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj81.CompletionQuestVariablesFlags = list109; reference85 = obj81; - ref QuestStep reference86 = ref span34[8]; + num2++; + ref QuestStep reference86 = ref span100[num2]; QuestStep obj82 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-487.1432f, -32.409756f, -369.94928f), 138) { Fly = true, @@ -111609,21 +134369,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - num3 = 6; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - Span span43 = CollectionsMarshal.AsSpan(list110); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list110 = new List(num4); + CollectionsMarshal.SetCount(list110, num4); + Span span110 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span110[num3] = null; + num3++; + span110[num3] = null; + num3++; + span110[num3] = null; + num3++; + span110[num3] = null; + num3++; + span110[num3] = null; + num3++; + span110[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions11.CompletionQuestVariablesFlags = list110; skipConditions11.StepIf = skipStepConditions11; obj82.SkipConditions = skipConditions11; reference86 = obj82; - ref QuestStep reference87 = ref span34[9]; + num2++; + ref QuestStep reference87 = ref span100[num2]; QuestStep obj83 = new QuestStep(EInteractionType.Combat, 2000076u, new Vector3(-486.86963f, -32.455933f, -368.8258f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -111631,23 +134398,32 @@ public static class AssemblyQuestLoader num3 = 1; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = 9488u; + Span span111 = CollectionsMarshal.AsSpan(list111); + num4 = 0; + span111[num4] = 9488u; obj83.KillEnemyDataIds = list111; - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span44 = CollectionsMarshal.AsSpan(list112); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list112 = new List(num4); + CollectionsMarshal.SetCount(list112, num4); + Span span112 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj83.CompletionQuestVariablesFlags = list112; reference87 = obj83; obj74.Steps = list100; reference77 = obj74; - ref QuestSequence reference88 = ref span32[4]; + num++; + ref QuestSequence reference88 = ref span96[num]; QuestSequence obj84 = new QuestSequence { Sequence = 4 @@ -111655,34 +134431,40 @@ public static class AssemblyQuestLoader num2 = 2; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span45 = CollectionsMarshal.AsSpan(list113); - span45[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(446.57513f, -5.352314f, -466.78467f), 156) + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(446.57513f, -5.352314f, -466.78467f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span45[1] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); + index2++; + span113[index2] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); obj84.Steps = list113; reference88 = obj84; - ref QuestSequence reference89 = ref span32[5]; + num++; + ref QuestSequence reference89 = ref span96[num]; QuestSequence obj85 = new QuestSequence { Sequence = 5 }; - num2 = 4; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span46 = CollectionsMarshal.AsSpan(list114); - span46[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-155.21196f, 46.52775f, -319.86398f), 146) + index2 = 4; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-155.21196f, 46.52775f, -319.86398f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span46[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(3.8795898f, 38.80212f, 0.40251642f), 146) + num2++; + span114[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(3.8795898f, 38.80212f, 0.40251642f), 146) { Fly = true }; - ref QuestStep reference90 = ref span46[2]; + num2++; + ref QuestStep reference90 = ref span114[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, 2000077u, new Vector3(233.3562f, 7.9804688f, -22.720703f), 146) { DisableNavmesh = true, @@ -111692,21 +134474,30 @@ public static class AssemblyQuestLoader num3 = 1; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = 9489u; + Span span115 = CollectionsMarshal.AsSpan(list115); + num4 = 0; + span115[num4] = 9489u; obj86.KillEnemyDataIds = list115; - num3 = 6; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - Span span47 = CollectionsMarshal.AsSpan(list116); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list116 = new List(num4); + CollectionsMarshal.SetCount(list116, num4); + Span span116 = CollectionsMarshal.AsSpan(list116); + num3 = 0; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj86.CompletionQuestVariablesFlags = list116; reference90 = obj86; - ref QuestStep reference91 = ref span46[3]; + num2++; + ref QuestStep reference91 = ref span114[num2]; QuestStep obj87 = new QuestStep(EInteractionType.Combat, 2000078u, new Vector3(613.5499f, 301.8081f, -101.42676f), 155) { Fly = true, @@ -111716,23 +134507,32 @@ public static class AssemblyQuestLoader num3 = 1; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = 9490u; + Span span117 = CollectionsMarshal.AsSpan(list117); + num4 = 0; + span117[num4] = 9490u; obj87.KillEnemyDataIds = list117; - num3 = 6; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - Span span48 = CollectionsMarshal.AsSpan(list118); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list118 = new List(num4); + CollectionsMarshal.SetCount(list118, num4); + Span span118 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj87.CompletionQuestVariablesFlags = list118; reference91 = obj87; obj85.Steps = list114; reference89 = obj85; - ref QuestSequence reference92 = ref span32[6]; + num++; + ref QuestSequence reference92 = ref span96[num]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue @@ -111740,13 +134540,15 @@ public static class AssemblyQuestLoader num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span49 = CollectionsMarshal.AsSpan(list119); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(446.49927f, -5.364953f, -467.05328f), 156) + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(446.49927f, -5.364953f, -467.05328f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span49[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + index2++; + span119[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { NextQuestId = new QuestId(1200) }; @@ -111759,21 +134561,26 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "liza"; + Span span120 = CollectionsMarshal.AsSpan(list120); + index = 0; + span120[index] = "liza"; questRoot11.Author = list120; - num = 4; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - Span span50 = CollectionsMarshal.AsSpan(list121); - ref QuestSequence reference93 = ref span50[0]; + index = 4; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + Span span121 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference93 = ref span121[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -111791,7 +134598,8 @@ public static class AssemblyQuestLoader }; obj89.Steps = list122; reference93 = obj89; - ref QuestSequence reference94 = ref span50[1]; + num++; + ref QuestSequence reference94 = ref span121[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 @@ -111799,19 +134607,23 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); obj90.Steps = list123; reference94 = obj90; - ref QuestSequence reference95 = ref span50[2]; + num++; + ref QuestSequence reference95 = ref span121[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - Span span51 = CollectionsMarshal.AsSpan(list124); - ref QuestStep reference96 = ref span51[0]; + index2 = 4; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + ref QuestStep reference96 = ref span124[num2]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, null, new Vector3(306.3128f, 70.876f, -411.73788f), 401) { Fly = true, @@ -111821,82 +134633,114 @@ public static class AssemblyQuestLoader num3 = 1; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - CollectionsMarshal.AsSpan(list125)[0] = 4484u; + Span span125 = CollectionsMarshal.AsSpan(list125); + num4 = 0; + span125[num4] = 4484u; obj92.KillEnemyDataIds = list125; SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions12 = new SkipStepConditions(); - num3 = 6; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - Span span52 = CollectionsMarshal.AsSpan(list126); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list126 = new List(num4); + CollectionsMarshal.SetCount(list126, num4); + Span span126 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions12.CompletionQuestVariablesFlags = list126; skipConditions12.StepIf = skipStepConditions12; obj92.SkipConditions = skipConditions12; reference96 = obj92; - ref QuestStep reference97 = ref span51[1]; + num2++; + ref QuestStep reference97 = ref span124[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2006274u, new Vector3(305.0736f, 71.06128f, -413.44324f), 401); num3 = 6; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - Span span53 = CollectionsMarshal.AsSpan(list127); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span127 = CollectionsMarshal.AsSpan(list127); + num4 = 0; + span127[num4] = null; + num4++; + span127[num4] = null; + num4++; + span127[num4] = null; + num4++; + span127[num4] = null; + num4++; + span127[num4] = null; + num4++; + span127[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list127; reference97 = questStep5; - ref QuestStep reference98 = ref span51[2]; + num2++; + ref QuestStep reference98 = ref span124[num2]; QuestStep obj93 = new QuestStep(EInteractionType.Combat, null, new Vector3(382.58212f, 71.00385f, -313.4424f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = 4617u; + num4 = 1; + List list128 = new List(num4); + CollectionsMarshal.SetCount(list128, num4); + Span span128 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span128[num3] = 4617u; obj93.KillEnemyDataIds = list128; SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions13 = new SkipStepConditions(); num3 = 6; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span54 = CollectionsMarshal.AsSpan(list129); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span129 = CollectionsMarshal.AsSpan(list129); + num4 = 0; + span129[num4] = null; + num4++; + span129[num4] = null; + num4++; + span129[num4] = null; + num4++; + span129[num4] = null; + num4++; + span129[num4] = null; + num4++; + span129[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions13.CompletionQuestVariablesFlags = list129; skipConditions13.StepIf = skipStepConditions13; obj93.SkipConditions = skipConditions13; reference98 = obj93; - ref QuestStep reference99 = ref span51[3]; + num2++; + ref QuestStep reference99 = ref span124[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2006275u, new Vector3(384.02368f, 71.39697f, -311.90973f), 401); - num3 = 6; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - Span span55 = CollectionsMarshal.AsSpan(list130); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list130 = new List(num4); + CollectionsMarshal.SetCount(list130, num4); + Span span130 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + span130[num3] = null; + num3++; + span130[num3] = null; + num3++; + span130[num3] = null; + num3++; + span130[num3] = null; + num3++; + span130[num3] = null; + num3++; + span130[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list130; reference99 = questStep6; obj91.Steps = list124; reference95 = obj91; - ref QuestSequence reference100 = ref span50[3]; + num++; + ref QuestSequence reference100 = ref span121[num]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue @@ -111904,7 +134748,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -111923,21 +134769,26 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "liza"; + Span span132 = CollectionsMarshal.AsSpan(list132); + index = 0; + span132[index] = "liza"; questRoot12.Author = list132; - num = 4; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span56 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference101 = ref span56[0]; + index = 4; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + Span span133 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference101 = ref span133[num]; QuestSequence obj95 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -111955,7 +134806,8 @@ public static class AssemblyQuestLoader }; obj95.Steps = list134; reference101 = obj95; - ref QuestSequence reference102 = ref span56[1]; + num++; + ref QuestSequence reference102 = ref span133[num]; QuestSequence obj96 = new QuestSequence { Sequence = 1 @@ -111963,7 +134815,9 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1014830u, new Vector3(74.81494f, 10.089107f, -111.680786f), 419) + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.Interact, 1014830u, new Vector3(74.81494f, 10.089107f, -111.680786f), 419) { AethernetShortcut = new AethernetShortcut { @@ -111973,21 +134827,25 @@ public static class AssemblyQuestLoader }; obj96.Steps = list135; reference102 = obj96; - ref QuestSequence reference103 = ref span56[2]; + num++; + ref QuestSequence reference103 = ref span133[num]; QuestSequence obj97 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Action, 1014830u, new Vector3(74.81494f, 10.089107f, -111.680786f), 419) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.Action, 1014830u, new Vector3(74.81494f, 10.089107f, -111.680786f), 419) { Action = EAction.SlugShot }; obj97.Steps = list136; reference103 = obj97; - ref QuestSequence reference104 = ref span56[3]; + num++; + ref QuestSequence reference104 = ref span133[num]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue @@ -111995,7 +134853,9 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AethernetShortcut = new AethernetShortcut { @@ -112013,21 +134873,26 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "liza"; + Span span138 = CollectionsMarshal.AsSpan(list138); + index = 0; + span138[index] = "liza"; questRoot13.Author = list138; - num = 5; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span57 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference105 = ref span57[0]; + index = 5; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + Span span139 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference105 = ref span139[num]; QuestSequence obj99 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -112045,7 +134910,8 @@ public static class AssemblyQuestLoader }; obj99.Steps = list140; reference105 = obj99; - ref QuestSequence reference106 = ref span57[1]; + num++; + ref QuestSequence reference106 = ref span139[num]; QuestSequence obj100 = new QuestSequence { Sequence = 1 @@ -112053,36 +134919,51 @@ public static class AssemblyQuestLoader num2 = 4; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span58 = CollectionsMarshal.AsSpan(list141); - ref QuestStep reference107 = ref span58[0]; + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + ref QuestStep reference107 = ref span141[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1014835u, new Vector3(-86.4729f, 15.23318f, -63.98114f), 418); num3 = 6; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - Span span59 = CollectionsMarshal.AsSpan(list142); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span142 = CollectionsMarshal.AsSpan(list142); + num4 = 0; + span142[num4] = null; + num4++; + span142[num4] = null; + num4++; + span142[num4] = null; + num4++; + span142[num4] = null; + num4++; + span142[num4] = null; + num4++; + span142[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list142; reference107 = questStep7; - ref QuestStep reference108 = ref span58[1]; + index2++; + ref QuestStep reference108 = ref span141[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1014837u, new Vector3(-135.51538f, 5.467082f, 39.93274f), 418); - num3 = 6; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - Span span60 = CollectionsMarshal.AsSpan(list143); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list143 = new List(num4); + CollectionsMarshal.SetCount(list143, num4); + Span span143 = CollectionsMarshal.AsSpan(list143); + num3 = 0; + span143[num3] = null; + num3++; + span143[num3] = null; + num3++; + span143[num3] = null; + num3++; + span143[num3] = null; + num3++; + span143[num3] = null; + num3++; + span143[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list143; reference108 = questStep8; - ref QuestStep reference109 = ref span58[2]; + index2++; + ref QuestStep reference109 = ref span141[index2]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 1014836u, new Vector3(-20.004639f, 1.5791271f, 90.37915f), 418) { AethernetShortcut = new AethernetShortcut @@ -112094,16 +134975,23 @@ public static class AssemblyQuestLoader num3 = 6; List list144 = new List(num3); CollectionsMarshal.SetCount(list144, num3); - Span span61 = CollectionsMarshal.AsSpan(list144); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span144 = CollectionsMarshal.AsSpan(list144); + num4 = 0; + span144[num4] = null; + num4++; + span144[num4] = null; + num4++; + span144[num4] = null; + num4++; + span144[num4] = null; + num4++; + span144[num4] = null; + num4++; + span144[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj101.CompletionQuestVariablesFlags = list144; reference109 = obj101; - ref QuestStep reference110 = ref span58[3]; + index2++; + ref QuestStep reference110 = ref span141[index2]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 1014834u, new Vector3(56.839844f, 24.071722f, -30.075562f), 418) { AethernetShortcut = new AethernetShortcut @@ -112112,29 +135000,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num3 = 6; - List list145 = new List(num3); - CollectionsMarshal.SetCount(list145, num3); - Span span62 = CollectionsMarshal.AsSpan(list145); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list145 = new List(num4); + CollectionsMarshal.SetCount(list145, num4); + Span span145 = CollectionsMarshal.AsSpan(list145); + num3 = 0; + span145[num3] = null; + num3++; + span145[num3] = null; + num3++; + span145[num3] = null; + num3++; + span145[num3] = null; + num3++; + span145[num3] = null; + num3++; + span145[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj102.CompletionQuestVariablesFlags = list145; reference110 = obj102; obj100.Steps = list141; reference106 = obj100; - ref QuestSequence reference111 = ref span57[2]; + num++; + ref QuestSequence reference111 = ref span139[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -112145,7 +135042,8 @@ public static class AssemblyQuestLoader }; obj103.Steps = list146; reference111 = obj103; - ref QuestSequence reference112 = ref span57[3]; + num++; + ref QuestSequence reference112 = ref span139[num]; QuestSequence obj104 = new QuestSequence { Sequence = 3 @@ -112153,27 +135051,32 @@ public static class AssemblyQuestLoader num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span63 = CollectionsMarshal.AsSpan(list147); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(874.0602f, -3.0127013f, 353.70963f), 398) + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(874.0602f, -3.0127013f, 353.70963f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span63[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014841u, new Vector3(-631.281f, 96.94948f, -461.63123f), 397) + index2++; + span147[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014841u, new Vector3(-631.281f, 96.94948f, -461.63123f), 397) { Fly = true }; obj104.Steps = list147; reference112 = obj104; - ref QuestSequence reference113 = ref span57[4]; + num++; + ref QuestSequence reference113 = ref span139[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -112192,13 +135095,16 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "pot0to"; + Span span149 = CollectionsMarshal.AsSpan(list149); + index = 0; + span149[index] = "pot0to"; questRoot14.Author = list149; - num = 9; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span64 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference114 = ref span64[0]; + index = 9; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + Span span150 = CollectionsMarshal.AsSpan(list150); + num = 0; + ref QuestSequence reference114 = ref span150[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -112206,7 +135112,9 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -112220,15 +135128,18 @@ public static class AssemblyQuestLoader }; obj106.Steps = list151; reference114 = obj106; - ref QuestSequence reference115 = ref span64[1]; + num++; + ref QuestSequence reference115 = ref span150[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1014202u, new Vector3(190.14258f, -2.5202732f, 73.136475f), 132) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.Interact, 1014202u, new Vector3(190.14258f, -2.5202732f, 73.136475f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -112246,7 +135157,8 @@ public static class AssemblyQuestLoader }; obj107.Steps = list152; reference115 = obj107; - ref QuestSequence reference116 = ref span64[2]; + num++; + ref QuestSequence reference116 = ref span150[num]; QuestSequence obj108 = new QuestSequence { Sequence = 2 @@ -112254,34 +135166,42 @@ public static class AssemblyQuestLoader num2 = 2; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span65 = CollectionsMarshal.AsSpan(list153); - ref QuestStep reference117 = ref span65[0]; + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + ref QuestStep reference117 = ref span153[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132); num3 = 1; List list154 = new List(num3); CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = new DialogueChoice + Span span154 = CollectionsMarshal.AsSpan(list154); + num4 = 0; + span154[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBBRD501_01713_Q1_000_000") }; questStep9.DialogueChoices = list154; reference117 = questStep9; - span65[1] = new QuestStep(EInteractionType.Interact, 1014203u, new Vector3(1.2359009f, 0.5000253f, -1.083435f), 204); + index2++; + span153[index2] = new QuestStep(EInteractionType.Interact, 1014203u, new Vector3(1.2359009f, 0.5000253f, -1.083435f), 204); obj108.Steps = list153; reference116 = obj108; - ref QuestSequence reference118 = ref span64[3]; + num++; + ref QuestSequence reference118 = ref span150[num]; QuestSequence obj109 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1014203u, new Vector3(1.2359009f, 0.5000253f, -1.083435f), 204); + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span155[num2] = new QuestStep(EInteractionType.Interact, 1014203u, new Vector3(1.2359009f, 0.5000253f, -1.083435f), 204); obj109.Steps = list155; reference118 = obj109; - ref QuestSequence reference119 = ref span64[4]; + num++; + ref QuestSequence reference119 = ref span150[num]; QuestSequence obj110 = new QuestSequence { Sequence = 4 @@ -112289,33 +135209,41 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - ref QuestStep reference120 = ref CollectionsMarshal.AsSpan(list156)[0]; + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + ref QuestStep reference120 = ref span156[index2]; QuestStep obj111 = new QuestStep(EInteractionType.Combat, 1014207u, new Vector3(28.854736f, 6.655561f, 421.46936f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = 4684u; + num4 = 1; + List list157 = new List(num4); + CollectionsMarshal.SetCount(list157, num4); + Span span157 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span157[num3] = 4684u; obj111.KillEnemyDataIds = list157; reference120 = obj111; obj110.Steps = list156; reference119 = obj110; - ref QuestSequence reference121 = ref span64[5]; + num++; + ref QuestSequence reference121 = ref span150[num]; QuestSequence obj112 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1014207u, new Vector3(28.854736f, 6.655561f, 421.46936f), 152); + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span158[num2] = new QuestStep(EInteractionType.Interact, 1014207u, new Vector3(28.854736f, 6.655561f, 421.46936f), 152); obj112.Steps = list158; reference121 = obj112; - ref QuestSequence reference122 = ref span64[6]; + num++; + ref QuestSequence reference122 = ref span150[num]; QuestSequence obj113 = new QuestSequence { Sequence = 6 @@ -112323,21 +135251,26 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1014204u, new Vector3(24.673828f, 6.386869f, 414.9386f), 152) + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.Interact, 1014204u, new Vector3(24.673828f, 6.386869f, 414.9386f), 152) { StopDistance = 7f }; obj113.Steps = list159; reference122 = obj113; - ref QuestSequence reference123 = ref span64[7]; + num++; + ref QuestSequence reference123 = ref span150[num]; QuestSequence obj114 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1014205u, new Vector3(190.72253f, -2.5872245f, 74.75391f), 132) + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.Interact, 1014205u, new Vector3(190.72253f, -2.5872245f, 74.75391f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -112355,7 +135288,8 @@ public static class AssemblyQuestLoader }; obj114.Steps = list160; reference123 = obj114; - ref QuestSequence reference124 = ref span64[8]; + num++; + ref QuestSequence reference124 = ref span150[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -112363,7 +135297,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014208u, new Vector3(-52.536804f, 8.059147f, 31.72351f), 418) + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014208u, new Vector3(-52.536804f, 8.059147f, 31.72351f), 418) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -112385,21 +135321,26 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "liza"; + Span span162 = CollectionsMarshal.AsSpan(list162); + index = 0; + span162[index] = "liza"; questRoot15.Author = list162; - num = 6; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span66 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference125 = ref span66[0]; + index = 6; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + Span span163 = CollectionsMarshal.AsSpan(list163); + num = 0; + ref QuestSequence reference125 = ref span163[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014208u, new Vector3(-52.536804f, 8.059147f, 31.72351f), 418) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014208u, new Vector3(-52.536804f, 8.059147f, 31.72351f), 418) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -112413,7 +135354,8 @@ public static class AssemblyQuestLoader }; obj116.Steps = list164; reference125 = obj116; - ref QuestSequence reference126 = ref span66[1]; + num++; + ref QuestSequence reference126 = ref span163[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 @@ -112421,27 +135363,33 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1014215u, new Vector3(446.4026f, 212.53983f, 697.444f), 397) + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.Interact, 1014215u, new Vector3(446.4026f, 212.53983f, 697.444f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj117.Steps = list165; reference126 = obj117; - ref QuestSequence reference127 = ref span66[2]; + num++; + ref QuestSequence reference127 = ref span163[num]; QuestSequence obj118 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1014217u, new Vector3(59.128662f, 101.451355f, -50.797363f), 397) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.Interact, 1014217u, new Vector3(59.128662f, 101.451355f, -50.797363f), 397) { Fly = true }; obj118.Steps = list166; reference127 = obj118; - ref QuestSequence reference128 = ref span66[3]; + num++; + ref QuestSequence reference128 = ref span163[num]; QuestSequence obj119 = new QuestSequence { Sequence = 3 @@ -112449,7 +135397,9 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list167)[0]; + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + ref QuestStep reference129 = ref span167[index2]; QuestStep obj120 = new QuestStep(EInteractionType.Combat, 2006300u, new Vector3(66.11731f, 103.86804f, -127.03143f), 397) { Fly = true, @@ -112458,26 +135408,32 @@ public static class AssemblyQuestLoader num3 = 1; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = 4680u; + Span span168 = CollectionsMarshal.AsSpan(list168); + num4 = 0; + span168[num4] = 4680u; obj120.KillEnemyDataIds = list168; reference129 = obj120; obj119.Steps = list167; reference128 = obj119; - ref QuestSequence reference130 = ref span66[4]; + num++; + ref QuestSequence reference130 = ref span163[num]; QuestSequence obj121 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1014218u, new Vector3(58.76245f, 101.43757f, -51.682373f), 397) + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + Span span169 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span169[num2] = new QuestStep(EInteractionType.Interact, 1014218u, new Vector3(58.76245f, 101.43757f, -51.682373f), 397) { Fly = true }; obj121.Steps = list169; reference130 = obj121; - ref QuestSequence reference131 = ref span66[5]; + num++; + ref QuestSequence reference131 = ref span163[num]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue @@ -112485,7 +135441,9 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014216u, new Vector3(445.365f, 212.53983f, 699.7938f), 397) + Span span170 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span170[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014216u, new Vector3(445.365f, 212.53983f, 699.7938f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, NextQuestId = new QuestId(1715) @@ -112499,21 +135457,26 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "liza"; + Span span171 = CollectionsMarshal.AsSpan(list171); + index = 0; + span171[index] = "liza"; questRoot16.Author = list171; - num = 9; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span67 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference132 = ref span67[0]; + index = 9; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + Span span172 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference132 = ref span172[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014216u, new Vector3(445.365f, 212.53983f, 699.7938f), 397) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014216u, new Vector3(445.365f, 212.53983f, 699.7938f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -112526,7 +135489,8 @@ public static class AssemblyQuestLoader }; obj123.Steps = list173; reference132 = obj123; - ref QuestSequence reference133 = ref span67[1]; + num++; + ref QuestSequence reference133 = ref span172[num]; QuestSequence obj124 = new QuestSequence { Sequence = 1 @@ -112534,27 +135498,33 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1014227u, new Vector3(-294.27026f, 125.76025f, -15.152283f), 397) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.Interact, 1014227u, new Vector3(-294.27026f, 125.76025f, -15.152283f), 397) { Fly = true }; obj124.Steps = list174; reference133 = obj124; - ref QuestSequence reference134 = ref span67[2]; + num++; + ref QuestSequence reference134 = ref span172[num]; QuestSequence obj125 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1014233u, new Vector3(-299.12268f, 126.35769f, -8.682434f), 397) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.Interact, 1014233u, new Vector3(-299.12268f, 126.35769f, -8.682434f), 397) { StopDistance = 7f }; obj125.Steps = list175; reference134 = obj125; - ref QuestSequence reference135 = ref span67[3]; + num++; + ref QuestSequence reference135 = ref span172[num]; QuestSequence obj126 = new QuestSequence { Sequence = 3 @@ -112562,35 +135532,43 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1014246u, new Vector3(-429.8009f, 92.59371f, -509.4225f), 397) + Span span176 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span176[index2] = new QuestStep(EInteractionType.Interact, 1014246u, new Vector3(-429.8009f, 92.59371f, -509.4225f), 397) { Fly = true }; obj126.Steps = list176; reference135 = obj126; - ref QuestSequence reference136 = ref span67[4]; + num++; + ref QuestSequence reference136 = ref span172[num]; QuestSequence obj127 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - ref QuestStep reference137 = ref CollectionsMarshal.AsSpan(list177)[0]; + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + ref QuestStep reference137 = ref span177[num2]; QuestStep obj128 = new QuestStep(EInteractionType.Combat, 2006301u, new Vector3(-778.0118f, 112.01648f, -580.52954f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list178 = new List(num3); - CollectionsMarshal.SetCount(list178, num3); - CollectionsMarshal.AsSpan(list178)[0] = 4487u; + num4 = 1; + List list178 = new List(num4); + CollectionsMarshal.SetCount(list178, num4); + Span span178 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + span178[num3] = 4487u; obj128.KillEnemyDataIds = list178; reference137 = obj128; obj127.Steps = list177; reference136 = obj127; - ref QuestSequence reference138 = ref span67[5]; + num++; + ref QuestSequence reference138 = ref span172[num]; QuestSequence obj129 = new QuestSequence { Sequence = 5 @@ -112598,28 +135576,34 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1014230u, new Vector3(-753.93304f, 103.917046f, -467.1855f), 397) + Span span179 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span179[index2] = new QuestStep(EInteractionType.Interact, 1014230u, new Vector3(-753.93304f, 103.917046f, -467.1855f), 397) { Fly = true }; obj129.Steps = list179; reference138 = obj129; - ref QuestSequence reference139 = ref span67[6]; + num++; + ref QuestSequence reference139 = ref span172[num]; QuestSequence obj130 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Emote, 1014242u, new Vector3(-750.9728f, 103.93008f, -465.4765f), 397) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.Emote, 1014242u, new Vector3(-750.9728f, 103.93008f, -465.4765f), 397) { StopDistance = 4.5f, Emote = EEmote.Salute }; obj130.Steps = list180; reference139 = obj130; - ref QuestSequence reference140 = ref span67[7]; + num++; + ref QuestSequence reference140 = ref span172[num]; QuestSequence obj131 = new QuestSequence { Sequence = 7 @@ -112627,18 +135611,23 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1014230u, new Vector3(-753.93304f, 103.917046f, -467.1855f), 397); + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span181[index2] = new QuestStep(EInteractionType.Interact, 1014230u, new Vector3(-753.93304f, 103.917046f, -467.1855f), 397); obj131.Steps = list181; reference140 = obj131; - ref QuestSequence reference141 = ref span67[8]; + num++; + ref QuestSequence reference141 = ref span172[num]; QuestSequence obj132 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014232u, new Vector3(544.97595f, -51.27571f, 65.384766f), 398) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014232u, new Vector3(544.97595f, -51.27571f, 65.384766f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, NextQuestId = new QuestId(1716) @@ -112652,13 +135641,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + Span span183 = CollectionsMarshal.AsSpan(list183); + index = 0; + span183[index] = "liza"; questRoot17.Author = list183; - num = 4; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span68 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference142 = ref span68[0]; + index = 4; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + Span span184 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference142 = ref span184[num]; QuestSequence obj133 = new QuestSequence { Sequence = 0 @@ -112666,7 +135658,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - ref QuestStep reference143 = ref CollectionsMarshal.AsSpan(list185)[0]; + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + ref QuestStep reference143 = ref span185[index2]; QuestStep obj134 = new QuestStep(EInteractionType.AcceptQuest, 1014232u, new Vector3(544.97595f, -51.27571f, 65.384766f), 398) { StopDistance = 7f, @@ -112683,7 +135677,9 @@ public static class AssemblyQuestLoader num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = new DialogueChoice + Span span186 = CollectionsMarshal.AsSpan(list186); + num4 = 0; + span186[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBRD560_01716_Q1_000_000"), @@ -112693,21 +135689,25 @@ public static class AssemblyQuestLoader reference143 = obj134; obj133.Steps = list185; reference142 = obj133; - ref QuestSequence reference144 = ref span68[1]; + num++; + ref QuestSequence reference144 = ref span184[num]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014248u, new Vector3(218.43286f, -104.75025f, 592.00415f), 398) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014248u, new Vector3(218.43286f, -104.75025f, 592.00415f), 398) { Fly = true }; obj135.Steps = list187; reference144 = obj135; - ref QuestSequence reference145 = ref span68[2]; + num++; + ref QuestSequence reference145 = ref span184[num]; QuestSequence obj136 = new QuestSequence { Sequence = 2 @@ -112715,21 +135715,26 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1014249u, new Vector3(186.08374f, -119.0711f, 480.4912f), 398) + Span span188 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span188[index2] = new QuestStep(EInteractionType.Interact, 1014249u, new Vector3(186.08374f, -119.0711f, 480.4912f), 398) { StopDistance = 5f }; obj136.Steps = list188; reference145 = obj136; - ref QuestSequence reference146 = ref span68[3]; + num++; + ref QuestSequence reference146 = ref span184[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014231u, new Vector3(544.4877f, -51.27571f, 64.62195f), 398) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014231u, new Vector3(544.4877f, -51.27571f, 64.62195f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; @@ -112742,13 +135747,16 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "liza"; + Span span190 = CollectionsMarshal.AsSpan(list190); + index = 0; + span190[index] = "liza"; questRoot18.Author = list190; - num = 11; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - Span span69 = CollectionsMarshal.AsSpan(list191); - ref QuestSequence reference147 = ref span69[0]; + index = 11; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + Span span191 = CollectionsMarshal.AsSpan(list191); + num = 0; + ref QuestSequence reference147 = ref span191[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -112756,7 +135764,9 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014232u, new Vector3(544.97595f, -51.27571f, 65.384766f), 398) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014232u, new Vector3(544.97595f, -51.27571f, 65.384766f), 398) { StopDistance = 7f, Fly = true, @@ -112771,23 +135781,28 @@ public static class AssemblyQuestLoader }; obj138.Steps = list192; reference147 = obj138; - ref QuestSequence reference148 = ref span69[1]; + num++; + ref QuestSequence reference148 = ref span191[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - ref QuestStep reference149 = ref CollectionsMarshal.AsSpan(list193)[0]; + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + ref QuestStep reference149 = ref span193[num2]; QuestStep obj140 = new QuestStep(EInteractionType.Interact, 1014270u, new Vector3(457.1145f, -51.15781f, 101.48767f), 398) { Fly = true }; - num3 = 1; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - CollectionsMarshal.AsSpan(list194)[0] = new DialogueChoice + num4 = 1; + List list194 = new List(num4); + CollectionsMarshal.SetCount(list194, num4); + Span span194 = CollectionsMarshal.AsSpan(list194); + num3 = 0; + span194[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBRD580_01717_Q1_000_000"), @@ -112797,7 +135812,8 @@ public static class AssemblyQuestLoader reference149 = obj140; obj139.Steps = list193; reference148 = obj139; - ref QuestSequence reference150 = ref span69[2]; + num++; + ref QuestSequence reference150 = ref span191[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 @@ -112805,29 +135821,35 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1014262u, new Vector3(-223.65149f, -30.093239f, 78.72119f), 398) + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span195[index2] = new QuestStep(EInteractionType.Interact, 1014262u, new Vector3(-223.65149f, -30.093239f, 78.72119f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj141.Steps = list195; reference150 = obj141; - ref QuestSequence reference151 = ref span69[3]; + num++; + ref QuestSequence reference151 = ref span191[num]; QuestSequence obj142 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1014264u, new Vector3(159.74658f, -62.55156f, 685.84717f), 400) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.Interact, 1014264u, new Vector3(159.74658f, -62.55156f, 685.84717f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj142.Steps = list196; reference151 = obj142; - ref QuestSequence reference152 = ref span69[4]; + num++; + ref QuestSequence reference152 = ref span191[num]; QuestSequence obj143 = new QuestSequence { Sequence = 4 @@ -112835,32 +135857,38 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span70 = CollectionsMarshal.AsSpan(list197); - span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) { Fly = true }; - span70[1] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + index2++; + span197[index2] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f }; obj143.Steps = list197; reference152 = obj143; - ref QuestSequence reference153 = ref span69[5]; + num++; + ref QuestSequence reference153 = ref span191[num]; QuestSequence obj144 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1014266u, new Vector3(273.4568f, -38.082943f, 524.95605f), 400) + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span198 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span198[num2] = new QuestStep(EInteractionType.Interact, 1014266u, new Vector3(273.4568f, -38.082943f, 524.95605f), 400) { Fly = true }; obj144.Steps = list198; reference153 = obj144; - ref QuestSequence reference154 = ref span69[6]; + num++; + ref QuestSequence reference154 = ref span191[num]; QuestSequence obj145 = new QuestSequence { Sequence = 6 @@ -112868,7 +135896,9 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list199)[0]; + Span span199 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + ref QuestStep reference155 = ref span199[index2]; QuestStep obj146 = new QuestStep(EInteractionType.Combat, 2006302u, new Vector3(269.94727f, -40.299072f, 398.61133f), 400) { Fly = true, @@ -112877,34 +135907,42 @@ public static class AssemblyQuestLoader num3 = 1; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = 4681u; + Span span200 = CollectionsMarshal.AsSpan(list200); + num4 = 0; + span200[num4] = 4681u; obj146.KillEnemyDataIds = list200; reference155 = obj146; obj145.Steps = list199; reference154 = obj145; - ref QuestSequence reference156 = ref span69[7]; + num++; + ref QuestSequence reference156 = ref span191[num]; QuestSequence obj147 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - ref QuestStep reference157 = ref CollectionsMarshal.AsSpan(list201)[0]; + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + ref QuestStep reference157 = ref span201[num2]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, 2006303u, new Vector3(342.15295f, -40.024475f, 288.56335f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = 4682u; + num4 = 1; + List list202 = new List(num4); + CollectionsMarshal.SetCount(list202, num4); + Span span202 = CollectionsMarshal.AsSpan(list202); + num3 = 0; + span202[num3] = 4682u; obj148.KillEnemyDataIds = list202; reference157 = obj148; obj147.Steps = list201; reference156 = obj147; - ref QuestSequence reference158 = ref span69[8]; + num++; + ref QuestSequence reference158 = ref span191[num]; QuestSequence obj149 = new QuestSequence { Sequence = 8 @@ -112912,7 +135950,9 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list203)[0]; + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + ref QuestStep reference159 = ref span203[index2]; QuestStep obj150 = new QuestStep(EInteractionType.Combat, 2006304u, new Vector3(417.07483f, -34.561768f, 222.9801f), 400) { Fly = true, @@ -112921,26 +135961,32 @@ public static class AssemblyQuestLoader num3 = 1; List list204 = new List(num3); CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = 4483u; + Span span204 = CollectionsMarshal.AsSpan(list204); + num4 = 0; + span204[num4] = 4483u; obj150.KillEnemyDataIds = list204; reference159 = obj150; obj149.Steps = list203; reference158 = obj149; - ref QuestSequence reference160 = ref span69[9]; + num++; + ref QuestSequence reference160 = ref span191[num]; QuestSequence obj151 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 2006381u, new Vector3(421.16418f, -29.404175f, 97.18469f), 400) + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + Span span205 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span205[num2] = new QuestStep(EInteractionType.Interact, 2006381u, new Vector3(421.16418f, -29.404175f, 97.18469f), 400) { Fly = true }; obj151.Steps = list205; reference160 = obj151; - ref QuestSequence reference161 = ref span69[10]; + num++; + ref QuestSequence reference161 = ref span191[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue @@ -112948,13 +135994,15 @@ public static class AssemblyQuestLoader num2 = 2; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span71 = CollectionsMarshal.AsSpan(list206); - span71[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) + Span span206 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span206[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; - span71[1] = new QuestStep(EInteractionType.CompleteQuest, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + index2++; + span206[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f, NextQuestId = new QuestId(1718) @@ -112968,21 +136016,26 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "liza"; + Span span207 = CollectionsMarshal.AsSpan(list207); + index = 0; + span207[index] = "liza"; questRoot19.Author = list207; - num = 7; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span72 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference162 = ref span72[0]; + index = 7; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + Span span208 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference162 = ref span208[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - ref QuestStep reference163 = ref CollectionsMarshal.AsSpan(list209)[0]; + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + Span span209 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + ref QuestStep reference163 = ref span209[num2]; QuestStep obj154 = new QuestStep(EInteractionType.AcceptQuest, 1014265u, new Vector3(377.37073f, -69.42938f, 695.6129f), 400) { StopDistance = 7f, @@ -112996,10 +136049,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice + num4 = 1; + List list210 = new List(num4); + CollectionsMarshal.SetCount(list210, num4); + Span span210 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span210[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBRD600_01718_Q1_000_000"), @@ -113009,7 +136064,8 @@ public static class AssemblyQuestLoader reference163 = obj154; obj153.Steps = list209; reference162 = obj153; - ref QuestSequence reference164 = ref span72[1]; + num++; + ref QuestSequence reference164 = ref span208[num]; QuestSequence obj155 = new QuestSequence { Sequence = 1 @@ -113017,21 +136073,26 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1014277u, new Vector3(485.00793f, -9.204832f, 742.6719f), 400) + Span span211 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span211[index2] = new QuestStep(EInteractionType.Interact, 1014277u, new Vector3(485.00793f, -9.204832f, 742.6719f), 400) { Fly = true }; obj155.Steps = list211; reference164 = obj155; - ref QuestSequence reference165 = ref span72[2]; + num++; + ref QuestSequence reference165 = ref span208[num]; QuestSequence obj156 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - ref QuestStep reference166 = ref CollectionsMarshal.AsSpan(list212)[0]; + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + ref QuestStep reference166 = ref span212[num2]; QuestStep obj157 = new QuestStep(EInteractionType.Interact, 1014273u, new Vector3(28.976807f, -18.800003f, 96.69641f), 132) { StopDistance = 5f, @@ -113045,7 +136106,9 @@ public static class AssemblyQuestLoader num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = new DialogueChoice + Span span213 = CollectionsMarshal.AsSpan(list213); + num4 = 0; + span213[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBBRD600_01718_Q2_000_000") @@ -113054,7 +136117,8 @@ public static class AssemblyQuestLoader reference166 = obj157; obj156.Steps = list212; reference165 = obj156; - ref QuestSequence reference167 = ref span72[3]; + num++; + ref QuestSequence reference167 = ref span208[num]; QuestSequence obj158 = new QuestSequence { Sequence = 3 @@ -113062,27 +136126,33 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1014274u, new Vector3(-449.9428f, -4.031367f, -716.4264f), 401) + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.Interact, 1014274u, new Vector3(-449.9428f, -4.031367f, -716.4264f), 401) { StopDistance = 5f }; obj158.Steps = list214; reference167 = obj158; - ref QuestSequence reference168 = ref span72[4]; + num++; + ref QuestSequence reference168 = ref span208[num]; QuestSequence obj159 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014275u, new Vector3(-179.46143f, 19.473629f, -855.98535f), 401) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014275u, new Vector3(-179.46143f, 19.473629f, -855.98535f), 401) { Fly = true }; obj159.Steps = list215; reference168 = obj159; - ref QuestSequence reference169 = ref span72[5]; + num++; + ref QuestSequence reference169 = ref span208[num]; QuestSequence obj160 = new QuestSequence { Sequence = 5 @@ -113090,15 +136160,19 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list216)[0]; + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + ref QuestStep reference170 = ref span216[index2]; QuestStep obj161 = new QuestStep(EInteractionType.Interact, 1014276u, new Vector3(-451.89594f, -4.8975077f, -713.80176f), 401) { Fly = true }; - num3 = 1; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = new DialogueChoice + num4 = 1; + List list217 = new List(num4); + CollectionsMarshal.SetCount(list217, num4); + Span span217 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span217[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBBRD600_01718_Q3_000_000") @@ -113107,15 +136181,18 @@ public static class AssemblyQuestLoader reference170 = obj161; obj160.Steps = list216; reference169 = obj160; - ref QuestSequence reference171 = ref span72[6]; + num++; + ref QuestSequence reference171 = ref span208[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span218[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -113130,13 +136207,16 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - CollectionsMarshal.AsSpan(list219)[0] = "Cacahuetes"; + Span span219 = CollectionsMarshal.AsSpan(list219); + index = 0; + span219[index] = "Cacahuetes"; questRoot20.Author = list219; - num = 8; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - Span span73 = CollectionsMarshal.AsSpan(list220); - ref QuestSequence reference172 = ref span73[0]; + index = 8; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + Span span220 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference172 = ref span220[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 @@ -113144,8 +136224,9 @@ public static class AssemblyQuestLoader num2 = 3; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span74 = CollectionsMarshal.AsSpan(list221); - span74[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span221[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -113172,7 +136253,8 @@ public static class AssemblyQuestLoader } } }; - span74[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + index2++; + span221[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -113183,25 +136265,30 @@ public static class AssemblyQuestLoader } } }; - span74[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + index2++; + span221[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); obj163.Steps = list221; reference172 = obj163; - ref QuestSequence reference173 = ref span73[1]; + num++; + ref QuestSequence reference173 = ref span220[num]; QuestSequence obj164 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1013606u, new Vector3(-317.1283f, 21.686531f, 183.03198f), 148) + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + Span span222 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span222[num2] = new QuestStep(EInteractionType.Interact, 1013606u, new Vector3(-317.1283f, 21.686531f, 183.03198f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj164.Steps = list222; reference173 = obj164; - ref QuestSequence reference174 = ref span73[2]; + num++; + ref QuestSequence reference174 = ref span220[num]; QuestSequence obj165 = new QuestSequence { Sequence = 2 @@ -113209,8 +136296,9 @@ public static class AssemblyQuestLoader num2 = 3; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span75 = CollectionsMarshal.AsSpan(list223); - ref QuestStep reference175 = ref span75[0]; + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + ref QuestStep reference175 = ref span223[index2]; QuestStep obj166 = new QuestStep(EInteractionType.Interact, 1006245u, new Vector3(4.9591064f, -46.518013f, 248.49304f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat @@ -113218,81 +136306,113 @@ public static class AssemblyQuestLoader num3 = 6; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - Span span76 = CollectionsMarshal.AsSpan(list224); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span224 = CollectionsMarshal.AsSpan(list224); + num4 = 0; + span224[num4] = null; + num4++; + span224[num4] = null; + num4++; + span224[num4] = null; + num4++; + span224[num4] = null; + num4++; + span224[num4] = null; + num4++; + span224[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj166.CompletionQuestVariablesFlags = list224; reference175 = obj166; - ref QuestStep reference176 = ref span75[1]; + index2++; + ref QuestStep reference176 = ref span223[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1007092u, new Vector3(-59.31189f, -40.90982f, 232.62378f), 154); - num3 = 6; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - Span span77 = CollectionsMarshal.AsSpan(list225); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list225 = new List(num4); + CollectionsMarshal.SetCount(list225, num4); + Span span225 = CollectionsMarshal.AsSpan(list225); + num3 = 0; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list225; reference176 = questStep10; - ref QuestStep reference177 = ref span75[2]; + index2++; + ref QuestStep reference177 = ref span223[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); num3 = 6; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - Span span78 = CollectionsMarshal.AsSpan(list226); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span226 = CollectionsMarshal.AsSpan(list226); + num4 = 0; + span226[num4] = null; + num4++; + span226[num4] = null; + num4++; + span226[num4] = null; + num4++; + span226[num4] = null; + num4++; + span226[num4] = null; + num4++; + span226[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list226; reference177 = questStep11; obj165.Steps = list223; reference174 = obj165; - ref QuestSequence reference178 = ref span73[3]; + num++; + ref QuestSequence reference178 = ref span220[num]; QuestSequence obj167 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - Span span79 = CollectionsMarshal.AsSpan(list227); - ref QuestStep reference179 = ref span79[0]; + index2 = 2; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + Span span227 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + ref QuestStep reference179 = ref span227[num2]; QuestStep obj168 = new QuestStep(EInteractionType.Combat, null, new Vector3(108.506836f, 7.167203f, -47.01306f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - CollectionsMarshal.AsSpan(list228)[0] = 4683u; + num4 = 1; + List list228 = new List(num4); + CollectionsMarshal.SetCount(list228, num4); + Span span228 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span228[num3] = 4683u; obj168.KillEnemyDataIds = list228; num3 = 6; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - Span span80 = CollectionsMarshal.AsSpan(list229); - span80[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = null; + Span span229 = CollectionsMarshal.AsSpan(list229); + num4 = 0; + span229[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span229[num4] = null; + num4++; + span229[num4] = null; + num4++; + span229[num4] = null; + num4++; + span229[num4] = null; + num4++; + span229[num4] = null; obj168.CompletionQuestVariablesFlags = list229; reference179 = obj168; - span79[1] = new QuestStep(EInteractionType.Interact, 1013605u, new Vector3(108.506836f, 7.167203f, -47.01306f), 154); + num2++; + span227[num2] = new QuestStep(EInteractionType.Interact, 1013605u, new Vector3(108.506836f, 7.167203f, -47.01306f), 154); obj167.Steps = list227; reference178 = obj167; - ref QuestSequence reference180 = ref span73[4]; + num++; + ref QuestSequence reference180 = ref span220[num]; QuestSequence obj169 = new QuestSequence { Sequence = 4 @@ -113300,25 +136420,31 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1013605u, new Vector3(108.506836f, 7.167203f, -47.01306f), 154); + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span230[index2] = new QuestStep(EInteractionType.Interact, 1013605u, new Vector3(108.506836f, 7.167203f, -47.01306f), 154); obj169.Steps = list230; reference180 = obj169; - ref QuestSequence reference181 = ref span73[5]; + num++; + ref QuestSequence reference181 = ref span220[num]; QuestSequence obj170 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1013606u, new Vector3(-317.1283f, 21.686531f, 183.03198f), 148) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.Interact, 1013606u, new Vector3(-317.1283f, 21.686531f, 183.03198f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj170.Steps = list231; reference181 = obj170; - ref QuestSequence reference182 = ref span73[6]; + num++; + ref QuestSequence reference182 = ref span220[num]; QuestSequence obj171 = new QuestSequence { Sequence = 6 @@ -113326,18 +136452,23 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1013608u, new Vector3(-314.9615f, 21.609262f, 182.8794f), 148); + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span232[index2] = new QuestStep(EInteractionType.Interact, 1013608u, new Vector3(-314.9615f, 21.609262f, 182.8794f), 148); obj171.Steps = list232; reference182 = obj171; - ref QuestSequence reference183 = ref span73[7]; + num++; + ref QuestSequence reference183 = ref span220[num]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013609u, new Vector3(-44.480103f, -40.949986f, 187.7622f), 154) + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + Span span233 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span233[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013609u, new Vector3(-44.480103f, -40.949986f, 187.7622f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, NextQuestId = new QuestId(1720) @@ -113351,13 +136482,16 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "Cacahuetes"; + Span span234 = CollectionsMarshal.AsSpan(list234); + index = 0; + span234[index] = "Cacahuetes"; questRoot21.Author = list234; - num = 5; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span81 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference184 = ref span81[0]; + index = 5; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + Span span235 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference184 = ref span235[num]; QuestSequence obj173 = new QuestSequence { Sequence = 0 @@ -113365,7 +136499,9 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013609u, new Vector3(-44.480103f, -40.949986f, 187.7622f), 154) + Span span236 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span236[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013609u, new Vector3(-44.480103f, -40.949986f, 187.7622f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -113378,22 +136514,26 @@ public static class AssemblyQuestLoader }; obj173.Steps = list236; reference184 = obj173; - ref QuestSequence reference185 = ref span81[1]; + num++; + ref QuestSequence reference185 = ref span235[num]; QuestSequence obj174 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1013610u, new Vector3(209.21643f, 302f, -204.85242f), 155) + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + Span span237 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span237[num2] = new QuestStep(EInteractionType.Interact, 1013610u, new Vector3(209.21643f, 302f, -204.85242f), 155) { Mount = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj174.Steps = list237; reference185 = obj174; - ref QuestSequence reference186 = ref span81[2]; + num++; + ref QuestSequence reference186 = ref span235[num]; QuestSequence obj175 = new QuestSequence { Sequence = 2 @@ -113401,24 +136541,30 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013663u, new Vector3(161.91345f, 275.37952f, 16.403442f), 155) + Span span238 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span238[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013663u, new Vector3(161.91345f, 275.37952f, 16.403442f), 155) { Fly = true }; obj175.Steps = list238; reference186 = obj175; - ref QuestSequence reference187 = ref span81[3]; + num++; + ref QuestSequence reference187 = ref span235[num]; QuestSequence obj176 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 2005889u, new Vector3(143.78564f, 280.0183f, 19.882507f), 155); + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + Span span239 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span239[num2] = new QuestStep(EInteractionType.Interact, 2005889u, new Vector3(143.78564f, 280.0183f, 19.882507f), 155); obj176.Steps = list239; reference187 = obj176; - ref QuestSequence reference188 = ref span81[4]; + num++; + ref QuestSequence reference188 = ref span235[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -113426,7 +136572,9 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013610u, new Vector3(209.21643f, 302f, -204.85242f), 155) + Span span240 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span240[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013610u, new Vector3(209.21643f, 302f, -204.85242f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, NextQuestId = new QuestId(1721) @@ -113440,21 +136588,26 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "Cacahuetes"; + Span span241 = CollectionsMarshal.AsSpan(list241); + index = 0; + span241[index] = "Cacahuetes"; questRoot22.Author = list241; - num = 8; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span82 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference189 = ref span82[0]; + index = 8; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + Span span242 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference189 = ref span242[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013610u, new Vector3(209.21643f, 302f, -204.85242f), 155) + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + Span span243 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span243[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013610u, new Vector3(209.21643f, 302f, -204.85242f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -113467,7 +136620,8 @@ public static class AssemblyQuestLoader }; obj178.Steps = list243; reference189 = obj178; - ref QuestSequence reference190 = ref span82[1]; + num++; + ref QuestSequence reference190 = ref span242[num]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -113475,52 +136629,70 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1013613u, new Vector3(479.91138f, 226.62401f, 817.0442f), 397) + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span244[index2] = new QuestStep(EInteractionType.Interact, 1013613u, new Vector3(479.91138f, 226.62401f, 817.0442f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj179.Steps = list244; reference190 = obj179; - ref QuestSequence reference191 = ref span82[2]; + num++; + ref QuestSequence reference191 = ref span242[num]; QuestSequence obj180 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - Span span83 = CollectionsMarshal.AsSpan(list245); - ref QuestStep reference192 = ref span83[0]; + index2 = 2; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + Span span245 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + ref QuestStep reference192 = ref span245[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1011232u, new Vector3(506.8589f, 217.95148f, 792.4772f), 397); - num3 = 6; - List list246 = new List(num3); - CollectionsMarshal.SetCount(list246, num3); - Span span84 = CollectionsMarshal.AsSpan(list246); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list246 = new List(num4); + CollectionsMarshal.SetCount(list246, num4); + Span span246 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list246; reference192 = questStep12; - ref QuestStep reference193 = ref span83[1]; + num2++; + ref QuestStep reference193 = ref span245[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1011237u, new Vector3(447.3181f, 212.53984f, 725.00183f), 397); num3 = 6; List list247 = new List(num3); CollectionsMarshal.SetCount(list247, num3); - Span span85 = CollectionsMarshal.AsSpan(list247); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span247 = CollectionsMarshal.AsSpan(list247); + num4 = 0; + span247[num4] = null; + num4++; + span247[num4] = null; + num4++; + span247[num4] = null; + num4++; + span247[num4] = null; + num4++; + span247[num4] = null; + num4++; + span247[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list247; reference193 = questStep13; obj180.Steps = list245; reference191 = obj180; - ref QuestSequence reference194 = ref span82[3]; + num++; + ref QuestSequence reference194 = ref span242[num]; QuestSequence obj181 = new QuestSequence { Sequence = 3 @@ -113528,24 +136700,30 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1013614u, new Vector3(463.5232f, 200.23772f, 651.911f), 397); + Span span248 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span248[index2] = new QuestStep(EInteractionType.Interact, 1013614u, new Vector3(463.5232f, 200.23772f, 651.911f), 397); obj181.Steps = list248; reference194 = obj181; - ref QuestSequence reference195 = ref span82[4]; + num++; + ref QuestSequence reference195 = ref span242[num]; QuestSequence obj182 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1013617u, new Vector3(-513.0846f, 101.57904f, -653.3456f), 397) + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + Span span249 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span249[num2] = new QuestStep(EInteractionType.Interact, 1013617u, new Vector3(-513.0846f, 101.57904f, -653.3456f), 397) { Fly = true }; obj182.Steps = list249; reference195 = obj182; - ref QuestSequence reference196 = ref span82[5]; + num++; + ref QuestSequence reference196 = ref span242[num]; QuestSequence obj183 = new QuestSequence { Sequence = 5 @@ -113553,48 +136731,62 @@ public static class AssemblyQuestLoader num2 = 2; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span86 = CollectionsMarshal.AsSpan(list250); - ref QuestStep reference197 = ref span86[0]; + Span span250 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + ref QuestStep reference197 = ref span250[index2]; QuestStep obj184 = new QuestStep(EInteractionType.Combat, null, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = 4677u; + num4 = 1; + List list251 = new List(num4); + CollectionsMarshal.SetCount(list251, num4); + Span span251 = CollectionsMarshal.AsSpan(list251); + num3 = 0; + span251[num3] = 4677u; obj184.KillEnemyDataIds = list251; num3 = 6; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - Span span87 = CollectionsMarshal.AsSpan(list252); - span87[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = null; + Span span252 = CollectionsMarshal.AsSpan(list252); + num4 = 0; + span252[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span252[num4] = null; + num4++; + span252[num4] = null; + num4++; + span252[num4] = null; + num4++; + span252[num4] = null; + num4++; + span252[num4] = null; obj184.CompletionQuestVariablesFlags = list252; reference197 = obj184; - span86[1] = new QuestStep(EInteractionType.Interact, 2005855u, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397); + index2++; + span250[index2] = new QuestStep(EInteractionType.Interact, 2005855u, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397); obj183.Steps = list250; reference196 = obj183; - ref QuestSequence reference198 = ref span82[6]; + num++; + ref QuestSequence reference198 = ref span242[num]; QuestSequence obj185 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1013618u, new Vector3(-402.12103f, 90.9028f, -688.53284f), 397) + index2 = 1; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + Span span253 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span253[num2] = new QuestStep(EInteractionType.Interact, 1013618u, new Vector3(-402.12103f, 90.9028f, -688.53284f), 397) { Fly = true }; obj185.Steps = list253; reference198 = obj185; - ref QuestSequence reference199 = ref span82[7]; + num++; + ref QuestSequence reference199 = ref span242[num]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue @@ -113602,7 +136794,9 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013614u, new Vector3(463.5232f, 200.23772f, 651.911f), 397) + Span span254 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span254[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013614u, new Vector3(463.5232f, 200.23772f, 651.911f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, NextQuestId = new QuestId(1722) @@ -113616,21 +136810,26 @@ public static class AssemblyQuestLoader num = 1; List list255 = new List(num); CollectionsMarshal.SetCount(list255, num); - CollectionsMarshal.AsSpan(list255)[0] = "Cacahuetes"; + Span span255 = CollectionsMarshal.AsSpan(list255); + index = 0; + span255[index] = "Cacahuetes"; questRoot23.Author = list255; - num = 5; - List list256 = new List(num); - CollectionsMarshal.SetCount(list256, num); - Span span88 = CollectionsMarshal.AsSpan(list256); - ref QuestSequence reference200 = ref span88[0]; + index = 5; + List list256 = new List(index); + CollectionsMarshal.SetCount(list256, index); + Span span256 = CollectionsMarshal.AsSpan(list256); + num = 0; + ref QuestSequence reference200 = ref span256[num]; QuestSequence obj187 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013614u, new Vector3(463.5232f, 200.23772f, 651.911f), 397) + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span257 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span257[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013614u, new Vector3(463.5232f, 200.23772f, 651.911f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -113643,7 +136842,8 @@ public static class AssemblyQuestLoader }; obj187.Steps = list257; reference200 = obj187; - ref QuestSequence reference201 = ref span88[1]; + num++; + ref QuestSequence reference201 = ref span256[num]; QuestSequence obj188 = new QuestSequence { Sequence = 1 @@ -113651,28 +136851,34 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1013619u, new Vector3(-274.49457f, 125.33218f, -13.870483f), 397) + Span span258 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span258[index2] = new QuestStep(EInteractionType.Interact, 1013619u, new Vector3(-274.49457f, 125.33218f, -13.870483f), 397) { Fly = true }; obj188.Steps = list258; reference201 = obj188; - ref QuestSequence reference202 = ref span88[2]; + num++; + ref QuestSequence reference202 = ref span256[num]; QuestSequence obj189 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Action, 1013620u, new Vector3(-275.2575f, 125.596924f, -11.215393f), 397) + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + Span span259 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span259[num2] = new QuestStep(EInteractionType.Action, 1013620u, new Vector3(-275.2575f, 125.596924f, -11.215393f), 397) { StopDistance = 5f, Action = EAction.Cure2 }; obj189.Steps = list259; reference202 = obj189; - ref QuestSequence reference203 = ref span88[3]; + num++; + ref QuestSequence reference203 = ref span256[num]; QuestSequence obj190 = new QuestSequence { Sequence = 3 @@ -113680,42 +136886,55 @@ public static class AssemblyQuestLoader num2 = 2; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - Span span89 = CollectionsMarshal.AsSpan(list260); - ref QuestStep reference204 = ref span89[0]; + Span span260 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + ref QuestStep reference204 = ref span260[index2]; QuestStep obj191 = new QuestStep(EInteractionType.Combat, 2005857u, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - CollectionsMarshal.AsSpan(list261)[0] = 4690u; + num4 = 1; + List list261 = new List(num4); + CollectionsMarshal.SetCount(list261, num4); + Span span261 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span261[num3] = 4690u; obj191.KillEnemyDataIds = list261; num3 = 6; List list262 = new List(num3); CollectionsMarshal.SetCount(list262, num3); - Span span90 = CollectionsMarshal.AsSpan(list262); - span90[0] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = null; + Span span262 = CollectionsMarshal.AsSpan(list262); + num4 = 0; + span262[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span262[num4] = null; + num4++; + span262[num4] = null; + num4++; + span262[num4] = null; + num4++; + span262[num4] = null; + num4++; + span262[num4] = null; obj191.CompletionQuestVariablesFlags = list262; reference204 = obj191; - span89[1] = new QuestStep(EInteractionType.Interact, 2005857u, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397); + index2++; + span260[index2] = new QuestStep(EInteractionType.Interact, 2005857u, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397); obj190.Steps = list260; reference203 = obj190; - ref QuestSequence reference205 = ref span88[4]; + num++; + ref QuestSequence reference205 = ref span256[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013623u, new Vector3(486.93054f, -51.1414f, 25.986084f), 398) + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + Span span263 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span263[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013623u, new Vector3(486.93054f, -51.1414f, 25.986084f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, NextQuestId = new QuestId(1723) @@ -113729,13 +136948,16 @@ public static class AssemblyQuestLoader num = 1; List list264 = new List(num); CollectionsMarshal.SetCount(list264, num); - CollectionsMarshal.AsSpan(list264)[0] = "Cacahuetes"; + Span span264 = CollectionsMarshal.AsSpan(list264); + index = 0; + span264[index] = "Cacahuetes"; questRoot24.Author = list264; - num = 6; - List list265 = new List(num); - CollectionsMarshal.SetCount(list265, num); - Span span91 = CollectionsMarshal.AsSpan(list265); - ref QuestSequence reference206 = ref span91[0]; + index = 6; + List list265 = new List(index); + CollectionsMarshal.SetCount(list265, index); + Span span265 = CollectionsMarshal.AsSpan(list265); + num = 0; + ref QuestSequence reference206 = ref span265[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -113743,7 +136965,9 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013623u, new Vector3(486.93054f, -51.1414f, 25.986084f), 398) + Span span266 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span266[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013623u, new Vector3(486.93054f, -51.1414f, 25.986084f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, SkipConditions = new SkipConditions @@ -113756,21 +136980,25 @@ public static class AssemblyQuestLoader }; obj193.Steps = list266; reference206 = obj193; - ref QuestSequence reference207 = ref span91[1]; + num++; + ref QuestSequence reference207 = ref span265[num]; QuestSequence obj194 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.Interact, 1013624u, new Vector3(-183.61182f, -104.708206f, 505.60767f), 398) + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span267[num2] = new QuestStep(EInteractionType.Interact, 1013624u, new Vector3(-183.61182f, -104.708206f, 505.60767f), 398) { Fly = true }; obj194.Steps = list267; reference207 = obj194; - ref QuestSequence reference208 = ref span91[2]; + num++; + ref QuestSequence reference208 = ref span265[num]; QuestSequence obj195 = new QuestSequence { Sequence = 2 @@ -113778,50 +137006,64 @@ public static class AssemblyQuestLoader num2 = 2; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - Span span92 = CollectionsMarshal.AsSpan(list268); - ref QuestStep reference209 = ref span92[0]; + Span span268 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + ref QuestStep reference209 = ref span268[index2]; QuestStep obj196 = new QuestStep(EInteractionType.Combat, null, new Vector3(-561.82196f, -46.707886f, 300.46533f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list269 = new List(num3); - CollectionsMarshal.SetCount(list269, num3); - Span span93 = CollectionsMarshal.AsSpan(list269); - span93[0] = 4691u; - span93[1] = 4692u; + num4 = 2; + List list269 = new List(num4); + CollectionsMarshal.SetCount(list269, num4); + Span span269 = CollectionsMarshal.AsSpan(list269); + num3 = 0; + span269[num3] = 4691u; + num3++; + span269[num3] = 4692u; obj196.KillEnemyDataIds = list269; num3 = 6; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - Span span94 = CollectionsMarshal.AsSpan(list270); - span94[0] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = null; + Span span270 = CollectionsMarshal.AsSpan(list270); + num4 = 0; + span270[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span270[num4] = null; + num4++; + span270[num4] = null; + num4++; + span270[num4] = null; + num4++; + span270[num4] = null; + num4++; + span270[num4] = null; obj196.CompletionQuestVariablesFlags = list270; reference209 = obj196; - span92[1] = new QuestStep(EInteractionType.Interact, 2005859u, new Vector3(-561.82196f, -46.707886f, 300.46533f), 398); + index2++; + span268[index2] = new QuestStep(EInteractionType.Interact, 2005859u, new Vector3(-561.82196f, -46.707886f, 300.46533f), 398); obj195.Steps = list268; reference208 = obj195; - ref QuestSequence reference210 = ref span91[3]; + num++; + ref QuestSequence reference210 = ref span265[num]; QuestSequence obj197 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1013625u, new Vector3(-679.9573f, -100.52397f, 775.1736f), 398) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.Interact, 1013625u, new Vector3(-679.9573f, -100.52397f, 775.1736f), 398) { Fly = true }; obj197.Steps = list271; reference210 = obj197; - ref QuestSequence reference211 = ref span91[4]; + num++; + ref QuestSequence reference211 = ref span265[num]; QuestSequence obj198 = new QuestSequence { Sequence = 4 @@ -113829,37 +137071,46 @@ public static class AssemblyQuestLoader num2 = 2; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span95 = CollectionsMarshal.AsSpan(list272); - ref QuestStep reference212 = ref span95[0]; + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + ref QuestStep reference212 = ref span272[index2]; QuestStep obj199 = new QuestStep(EInteractionType.Combat, 1013625u, new Vector3(-679.9573f, -100.52397f, 775.1736f), 398) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list273 = new List(num3); - CollectionsMarshal.SetCount(list273, num3); - Span span96 = CollectionsMarshal.AsSpan(list273); - span96[0] = 4690u; - span96[1] = 4691u; + num4 = 2; + List list273 = new List(num4); + CollectionsMarshal.SetCount(list273, num4); + Span span273 = CollectionsMarshal.AsSpan(list273); + num3 = 0; + span273[num3] = 4690u; + num3++; + span273[num3] = 4691u; obj199.KillEnemyDataIds = list273; reference212 = obj199; - span95[1] = new QuestStep(EInteractionType.Interact, 2005861u, new Vector3(-678.4009f, -100.60278f, 778.13367f), 398); + index2++; + span272[index2] = new QuestStep(EInteractionType.Interact, 2005861u, new Vector3(-678.4009f, -100.60278f, 778.13367f), 398); obj198.Steps = list272; reference211 = obj198; - ref QuestSequence reference213 = ref span91[5]; + num++; + ref QuestSequence reference213 = ref span265[num]; QuestSequence obj200 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list274)[0]; + index2 = 1; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + Span span274 = CollectionsMarshal.AsSpan(list274); + num2 = 0; + ref QuestStep reference214 = ref span274[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.CompleteQuest, 1013625u, new Vector3(-679.9573f, -100.52397f, 775.1736f), 398); num3 = 1; List list275 = new List(num3); CollectionsMarshal.SetCount(list275, num3); - CollectionsMarshal.AsSpan(list275)[0] = new DialogueChoice + Span span275 = CollectionsMarshal.AsSpan(list275); + num4 = 0; + span275[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBWHM580_01723_Q1_000_000"), @@ -113877,13 +137128,16 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "Cacahuetes"; + Span span276 = CollectionsMarshal.AsSpan(list276); + index = 0; + span276[index] = "Cacahuetes"; questRoot25.Author = list276; - num = 2; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span97 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference215 = ref span97[0]; + index = 2; + List list277 = new List(index); + CollectionsMarshal.SetCount(list277, index); + Span span277 = CollectionsMarshal.AsSpan(list277); + num = 0; + ref QuestSequence reference215 = ref span277[num]; QuestSequence obj201 = new QuestSequence { Sequence = 0 @@ -113891,7 +137145,9 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013627u, new Vector3(-679.9573f, -100.52397f, 775.1736f), 398) + Span span278 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span278[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013627u, new Vector3(-679.9573f, -100.52397f, 775.1736f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, SkipConditions = new SkipConditions @@ -113904,16 +137160,18 @@ public static class AssemblyQuestLoader }; obj201.Steps = list278; reference215 = obj201; - ref QuestSequence reference216 = ref span97[1]; + num++; + ref QuestSequence reference216 = ref span277[num]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - Span span98 = CollectionsMarshal.AsSpan(list279); - span98[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + index2 = 3; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + Span span279 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span279[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -113940,7 +137198,8 @@ public static class AssemblyQuestLoader } } }; - span98[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span279[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -113951,7 +137210,8 @@ public static class AssemblyQuestLoader } } }; - span98[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num2++; + span279[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1725) }; @@ -113964,13 +137224,16 @@ public static class AssemblyQuestLoader num = 1; List list280 = new List(num); CollectionsMarshal.SetCount(list280, num); - CollectionsMarshal.AsSpan(list280)[0] = "Cacahuetes"; + Span span280 = CollectionsMarshal.AsSpan(list280); + index = 0; + span280[index] = "Cacahuetes"; questRoot26.Author = list280; - num = 8; - List list281 = new List(num); - CollectionsMarshal.SetCount(list281, num); - Span span99 = CollectionsMarshal.AsSpan(list281); - ref QuestSequence reference217 = ref span99[0]; + index = 8; + List list281 = new List(index); + CollectionsMarshal.SetCount(list281, index); + Span span281 = CollectionsMarshal.AsSpan(list281); + num = 0; + ref QuestSequence reference217 = ref span281[num]; QuestSequence obj203 = new QuestSequence { Sequence = 0 @@ -113978,8 +137241,9 @@ public static class AssemblyQuestLoader num2 = 3; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span100 = CollectionsMarshal.AsSpan(list282); - span100[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span282 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span282[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -114006,7 +137270,8 @@ public static class AssemblyQuestLoader } } }; - span100[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + index2++; + span282[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -114017,24 +137282,29 @@ public static class AssemblyQuestLoader } } }; - span100[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + index2++; + span282[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); obj203.Steps = list282; reference217 = obj203; - ref QuestSequence reference218 = ref span99[1]; + num++; + ref QuestSequence reference218 = ref span281[num]; QuestSequence obj204 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1013609u, new Vector3(-44.480103f, -40.949986f, 187.7622f), 154) + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + Span span283 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span283[num2] = new QuestStep(EInteractionType.Interact, 1013609u, new Vector3(-44.480103f, -40.949986f, 187.7622f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj204.Steps = list283; reference218 = obj204; - ref QuestSequence reference219 = ref span99[2]; + num++; + ref QuestSequence reference219 = ref span281[num]; QuestSequence obj205 = new QuestSequence { Sequence = 2 @@ -114042,8 +137312,9 @@ public static class AssemblyQuestLoader num2 = 3; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span101 = CollectionsMarshal.AsSpan(list284); - span101[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span284[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -114070,7 +137341,8 @@ public static class AssemblyQuestLoader } } }; - span101[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + index2++; + span284[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -114081,24 +137353,29 @@ public static class AssemblyQuestLoader } } }; - span101[2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + index2++; + span284[index2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); obj205.Steps = list284; reference219 = obj205; - ref QuestSequence reference220 = ref span99[3]; + num++; + ref QuestSequence reference220 = ref span281[num]; QuestSequence obj206 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 1013632u, new Vector3(491.38623f, -51.091385f, 34.561646f), 398) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span285 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span285[num2] = new QuestStep(EInteractionType.Interact, 1013632u, new Vector3(491.38623f, -51.091385f, 34.561646f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj206.Steps = list285; reference220 = obj206; - ref QuestSequence reference221 = ref span99[4]; + num++; + ref QuestSequence reference221 = ref span281[num]; QuestSequence obj207 = new QuestSequence { Sequence = 4 @@ -114106,25 +137383,31 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013635u, new Vector3(-122.453674f, 0.72138774f, -615.80835f), 398) + Span span286 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + span286[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013635u, new Vector3(-122.453674f, 0.72138774f, -615.80835f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj207.Steps = list286; reference221 = obj207; - ref QuestSequence reference222 = ref span99[5]; + num++; + ref QuestSequence reference222 = ref span281[num]; QuestSequence obj208 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1013639u, new Vector3(-120.74469f, 0.555462f, -616.6323f), 398); + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + Span span287 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + span287[num2] = new QuestStep(EInteractionType.Interact, 1013639u, new Vector3(-120.74469f, 0.555462f, -616.6323f), 398); obj208.Steps = list287; reference222 = obj208; - ref QuestSequence reference223 = ref span99[6]; + num++; + ref QuestSequence reference223 = ref span281[num]; QuestSequence obj209 = new QuestSequence { Sequence = 6 @@ -114132,19 +137415,23 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Interact, 1013639u, new Vector3(-120.74469f, 0.555462f, -616.6323f), 398); + Span span288 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span288[index2] = new QuestStep(EInteractionType.Interact, 1013639u, new Vector3(-120.74469f, 0.555462f, -616.6323f), 398); obj209.Steps = list288; reference223 = obj209; - ref QuestSequence reference224 = ref span99[7]; + num++; + ref QuestSequence reference224 = ref span281[num]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - Span span102 = CollectionsMarshal.AsSpan(list289); - span102[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + index2 = 3; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + Span span289 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span289[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -114171,7 +137458,8 @@ public static class AssemblyQuestLoader } } }; - span102[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + num2++; + span289[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -114182,7 +137470,8 @@ public static class AssemblyQuestLoader } } }; - span102[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num2++; + span289[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(2414) }; @@ -114195,13 +137484,16 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - CollectionsMarshal.AsSpan(list290)[0] = "Thaksin"; + Span span290 = CollectionsMarshal.AsSpan(list290); + index = 0; + span290[index] = "Thaksin"; questRoot27.Author = list290; - num = 6; - List list291 = new List(num); - CollectionsMarshal.SetCount(list291, num); - Span span103 = CollectionsMarshal.AsSpan(list291); - ref QuestSequence reference225 = ref span103[0]; + index = 6; + List list291 = new List(index); + CollectionsMarshal.SetCount(list291, index); + Span span291 = CollectionsMarshal.AsSpan(list291); + num = 0; + ref QuestSequence reference225 = ref span291[num]; QuestSequence obj211 = new QuestSequence { Sequence = 0 @@ -114209,21 +137501,27 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012170u, new Vector3(102.92212f, 3.6299734f, 65.56799f), 418); + Span span292 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span292[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012170u, new Vector3(102.92212f, 3.6299734f, 65.56799f), 418); obj211.Steps = list292; reference225 = obj211; - ref QuestSequence reference226 = ref span103[1]; + num++; + ref QuestSequence reference226 = ref span291[num]; QuestSequence obj212 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1012162u, new Vector3(135.97314f, 24.376427f, 12.619202f), 418); + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + Span span293 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span293[num2] = new QuestStep(EInteractionType.Interact, 1012162u, new Vector3(135.97314f, 24.376427f, 12.619202f), 418); obj212.Steps = list293; reference226 = obj212; - ref QuestSequence reference227 = ref span103[2]; + num++; + ref QuestSequence reference227 = ref span291[num]; QuestSequence obj213 = new QuestSequence { Sequence = 2 @@ -114231,63 +137529,88 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1012170u, new Vector3(102.92212f, 3.6299734f, 65.56799f), 418); + Span span294 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span294[index2] = new QuestStep(EInteractionType.Interact, 1012170u, new Vector3(102.92212f, 3.6299734f, 65.56799f), 418); obj213.Steps = list294; reference227 = obj213; - ref QuestSequence reference228 = ref span103[3]; + num++; + ref QuestSequence reference228 = ref span291[num]; QuestSequence obj214 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - Span span104 = CollectionsMarshal.AsSpan(list295); - ref QuestStep reference229 = ref span104[0]; + index2 = 3; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + Span span295 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + ref QuestStep reference229 = ref span295[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1014711u, new Vector3(58.03003f, -7.146736f, 82.41394f), 418); - num3 = 6; - List list296 = new List(num3); - CollectionsMarshal.SetCount(list296, num3); - Span span105 = CollectionsMarshal.AsSpan(list296); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list296 = new List(num4); + CollectionsMarshal.SetCount(list296, num4); + Span span296 = CollectionsMarshal.AsSpan(list296); + num3 = 0; + span296[num3] = null; + num3++; + span296[num3] = null; + num3++; + span296[num3] = null; + num3++; + span296[num3] = null; + num3++; + span296[num3] = null; + num3++; + span296[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list296; reference229 = questStep15; - ref QuestStep reference230 = ref span104[1]; + num2++; + ref QuestStep reference230 = ref span295[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1014712u, new Vector3(93.91919f, -19.941168f, 78.20239f), 418); num3 = 6; List list297 = new List(num3); CollectionsMarshal.SetCount(list297, num3); - Span span106 = CollectionsMarshal.AsSpan(list297); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span297 = CollectionsMarshal.AsSpan(list297); + num4 = 0; + span297[num4] = null; + num4++; + span297[num4] = null; + num4++; + span297[num4] = null; + num4++; + span297[num4] = null; + num4++; + span297[num4] = null; + num4++; + span297[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list297; reference230 = questStep16; - ref QuestStep reference231 = ref span104[2]; + num2++; + ref QuestStep reference231 = ref span295[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1014713u, new Vector3(131.9447f, -20.000105f, 62.027832f), 418); - num3 = 6; - List list298 = new List(num3); - CollectionsMarshal.SetCount(list298, num3); - Span span107 = CollectionsMarshal.AsSpan(list298); - span107[0] = null; - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list298 = new List(num4); + CollectionsMarshal.SetCount(list298, num4); + Span span298 = CollectionsMarshal.AsSpan(list298); + num3 = 0; + span298[num3] = null; + num3++; + span298[num3] = null; + num3++; + span298[num3] = null; + num3++; + span298[num3] = null; + num3++; + span298[num3] = null; + num3++; + span298[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list298; reference231 = questStep17; obj214.Steps = list295; reference228 = obj214; - ref QuestSequence reference232 = ref span103[4]; + num++; + ref QuestSequence reference232 = ref span291[num]; QuestSequence obj215 = new QuestSequence { Sequence = 4 @@ -114295,18 +137618,23 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1014714u, new Vector3(23.178406f, -12.020877f, 35.294067f), 418); + Span span299 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span299[index2] = new QuestStep(EInteractionType.Interact, 1014714u, new Vector3(23.178406f, -12.020877f, 35.294067f), 418); obj215.Steps = list299; reference232 = obj215; - ref QuestSequence reference233 = ref span103[5]; + num++; + ref QuestSequence reference233 = ref span291[num]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012170u, new Vector3(102.92212f, 3.6299734f, 65.56799f), 418); + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + Span span300 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span300[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012170u, new Vector3(102.92212f, 3.6299734f, 65.56799f), 418); obj216.Steps = list300; reference233 = obj216; questRoot27.QuestSequence = list291; @@ -114316,13 +137644,16 @@ public static class AssemblyQuestLoader num = 1; List list301 = new List(num); CollectionsMarshal.SetCount(list301, num); - CollectionsMarshal.AsSpan(list301)[0] = "JerryWester"; + Span span301 = CollectionsMarshal.AsSpan(list301); + index = 0; + span301[index] = "JerryWester"; questRoot28.Author = list301; - num = 3; - List list302 = new List(num); - CollectionsMarshal.SetCount(list302, num); - Span span108 = CollectionsMarshal.AsSpan(list302); - ref QuestSequence reference234 = ref span108[0]; + index = 3; + List list302 = new List(index); + CollectionsMarshal.SetCount(list302, index); + Span span302 = CollectionsMarshal.AsSpan(list302); + num = 0; + ref QuestSequence reference234 = ref span302[num]; QuestSequence obj217 = new QuestSequence { Sequence = 0 @@ -114330,18 +137661,23 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011240u, new Vector3(493.15625f, 200.2377f, 663.01965f), 397); + Span span303 = CollectionsMarshal.AsSpan(list303); + index2 = 0; + span303[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011240u, new Vector3(493.15625f, 200.2377f, 663.01965f), 397); obj217.Steps = list303; reference234 = obj217; - ref QuestSequence reference235 = ref span108[1]; + num++; + ref QuestSequence reference235 = ref span302[num]; QuestSequence obj218 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - ref QuestStep reference236 = ref CollectionsMarshal.AsSpan(list304)[0]; + index2 = 1; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + Span span304 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + ref QuestStep reference236 = ref span304[num2]; QuestStep obj219 = new QuestStep(EInteractionType.Combat, null, new Vector3(419.65634f, 162.0455f, -176.55469f), 397) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -114349,7 +137685,9 @@ public static class AssemblyQuestLoader num3 = 1; List list305 = new List(num3); CollectionsMarshal.SetCount(list305, num3); - CollectionsMarshal.AsSpan(list305)[0] = new ComplexCombatData + Span span305 = CollectionsMarshal.AsSpan(list305); + num4 = 0; + span305[num4] = new ComplexCombatData { DataId = 4802u, MinimumKillCount = 3u @@ -114358,7 +137696,8 @@ public static class AssemblyQuestLoader reference236 = obj219; obj218.Steps = list304; reference235 = obj218; - ref QuestSequence reference237 = ref span108[2]; + num++; + ref QuestSequence reference237 = ref span302[num]; QuestSequence obj220 = new QuestSequence { Sequence = byte.MaxValue @@ -114366,12 +137705,14 @@ public static class AssemblyQuestLoader num2 = 2; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span109 = CollectionsMarshal.AsSpan(list306); - span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(524.6143f, 212.77472f, 703.436f), 397) + Span span306 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span306[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(524.6143f, 212.77472f, 703.436f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - span109[1] = new QuestStep(EInteractionType.CompleteQuest, 1011240u, new Vector3(493.15625f, 200.2377f, 663.01965f), 397); + index2++; + span306[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011240u, new Vector3(493.15625f, 200.2377f, 663.01965f), 397); obj220.Steps = list306; reference237 = obj220; questRoot28.QuestSequence = list302; @@ -114381,112 +137722,106 @@ public static class AssemblyQuestLoader num = 1; List list307 = new List(num); CollectionsMarshal.SetCount(list307, num); - CollectionsMarshal.AsSpan(list307)[0] = "JerryWester"; + Span span307 = CollectionsMarshal.AsSpan(list307); + index = 0; + span307[index] = "JerryWester"; questRoot29.Author = list307; - num = 4; - List list308 = new List(num); - CollectionsMarshal.SetCount(list308, num); - Span span110 = CollectionsMarshal.AsSpan(list308); - ref QuestSequence reference238 = ref span110[0]; + index = 4; + List list308 = new List(index); + CollectionsMarshal.SetCount(list308, index); + Span span308 = CollectionsMarshal.AsSpan(list308); + num = 0; + ref QuestSequence reference238 = ref span308[num]; QuestSequence obj221 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list309)[0]; - QuestStep obj222 = new QuestStep(EInteractionType.AcceptQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) - { - AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop - }; - SkipConditions skipConditions14 = new SkipConditions(); - SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list310 = new List(num3); - CollectionsMarshal.SetCount(list310, num3); - CollectionsMarshal.AsSpan(list310)[0] = 401; - skipAetheryteCondition.InTerritory = list310; - skipConditions14.AetheryteShortcutIf = skipAetheryteCondition; - obj222.SkipConditions = skipConditions14; - reference239 = obj222; + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + Span span309 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span309[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); obj221.Steps = list309; reference238 = obj221; - ref QuestSequence reference240 = ref span110[1]; - QuestSequence obj223 = new QuestSequence + num++; + ref QuestSequence reference239 = ref span308[num]; + QuestSequence obj222 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - ref QuestStep reference241 = ref CollectionsMarshal.AsSpan(list311)[0]; - QuestStep obj224 = new QuestStep(EInteractionType.Combat, null, new Vector3(-333.82166f, -182.95169f, 718.7151f), 401) + List list310 = new List(num2); + CollectionsMarshal.SetCount(list310, num2); + Span span310 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + ref QuestStep reference240 = ref span310[index2]; + QuestStep obj223 = new QuestStep(EInteractionType.Combat, null, new Vector3(-333.82166f, -182.95169f, 718.7151f), 401) { - AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list312 = new List(num3); - CollectionsMarshal.SetCount(list312, num3); - CollectionsMarshal.AsSpan(list312)[0] = new ComplexCombatData + num4 = 1; + List list311 = new List(num4); + CollectionsMarshal.SetCount(list311, num4); + Span span311 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span311[num3] = new ComplexCombatData { DataId = 4813u, MinimumKillCount = 1u, RewardItemId = 2001599u, RewardItemCount = 1 }; - obj224.ComplexCombatData = list312; - SkipConditions skipConditions15 = new SkipConditions(); - SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list313 = new List(num3); - CollectionsMarshal.SetCount(list313, num3); - CollectionsMarshal.AsSpan(list313)[0] = 401; - skipAetheryteCondition2.InTerritory = list313; - skipConditions15.AetheryteShortcutIf = skipAetheryteCondition2; - obj224.SkipConditions = skipConditions15; - reference241 = obj224; - obj223.Steps = list311; + obj223.ComplexCombatData = list311; reference240 = obj223; - ref QuestSequence reference242 = ref span110[2]; - QuestSequence obj225 = new QuestSequence + obj222.Steps = list310; + reference239 = obj222; + num++; + ref QuestSequence reference241 = ref span308[num]; + QuestSequence obj224 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list314 = new List(num2); - CollectionsMarshal.SetCount(list314, num2); - ref QuestStep reference243 = ref CollectionsMarshal.AsSpan(list314)[0]; - QuestStep obj226 = new QuestStep(EInteractionType.Combat, null, new Vector3(-333.82166f, -182.95169f, 718.7151f), 401) + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + Span span312 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + ref QuestStep reference242 = ref span312[num2]; + QuestStep obj225 = new QuestStep(EInteractionType.Combat, null, new Vector3(-333.82166f, -182.95169f, 718.7151f), 401) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; - List list315 = new List(num3); - CollectionsMarshal.SetCount(list315, num3); - CollectionsMarshal.AsSpan(list315)[0] = new ComplexCombatData + List list313 = new List(num3); + CollectionsMarshal.SetCount(list313, num3); + Span span313 = CollectionsMarshal.AsSpan(list313); + num4 = 0; + span313[num4] = new ComplexCombatData { DataId = 4813u, MinimumKillCount = 1u, RewardItemId = 2001599u, RewardItemCount = 1 }; - obj226.ComplexCombatData = list315; - reference243 = obj226; - obj225.Steps = list314; + obj225.ComplexCombatData = list313; reference242 = obj225; - ref QuestSequence reference244 = ref span110[3]; - QuestSequence obj227 = new QuestSequence + obj224.Steps = list312; + reference241 = obj224; + num++; + ref QuestSequence reference243 = ref span308[num]; + QuestSequence obj226 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); - obj227.Steps = list316; - reference244 = obj227; + List list314 = new List(num2); + CollectionsMarshal.SetCount(list314, num2); + Span span314 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span314[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + obj226.Steps = list314; + reference243 = obj226; questRoot29.QuestSequence = list308; AddQuest(questId29, questRoot29); } @@ -114498,13 +137833,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -114512,18 +137850,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, null, new Vector3(-245.22125f, 122.768654f, -59.46304f), 397) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -114531,7 +137874,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new ComplexCombatData + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = new ComplexCombatData { DataId = 3993u, MinimumKillCount = 4u @@ -114540,7 +137885,8 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -114548,7 +137894,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); obj4.Steps = list6; reference4 = obj4; questRoot.QuestSequence = list2; @@ -114558,24 +137906,30 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "JerryWester"; + Span span7 = CollectionsMarshal.AsSpan(list7); + index = 0; + span7[index] = "JerryWester"; questRoot2.Author = list7; - num = 3; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span2[0]; + index = 3; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span8[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397); + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[1]; + num++; + ref QuestSequence reference6 = ref span8[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -114583,15 +137937,19 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list10)[0]; + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + ref QuestStep reference7 = ref span10[index2]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, null, new Vector3(-334.73944f, 115.3904f, -107.88696f), 397) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = new ComplexCombatData + index3 = 1; + List list11 = new List(index3); + CollectionsMarshal.SetCount(list11, index3); + Span span11 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span11[num3] = new ComplexCombatData { DataId = 4464u, MinimumKillCount = 3u @@ -114600,15 +137958,18 @@ public static class AssemblyQuestLoader reference7 = obj7; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference8 = ref span2[2]; + num++; + ref QuestSequence reference8 = ref span8[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397); + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397); obj8.Steps = list12; reference8 = obj8; questRoot2.QuestSequence = list8; @@ -114618,13 +137979,16 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "Thaksin"; + Span span13 = CollectionsMarshal.AsSpan(list13); + index = 0; + span13[index] = "Thaksin"; questRoot3.Author = list13; - num = 5; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span3 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference9 = ref span3[0]; + index = 5; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference9 = ref span14[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -114632,21 +137996,27 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference10 = ref span3[1]; + num++; + ref QuestSequence reference10 = ref span14[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1014133u, new Vector3(-259.84595f, 126.44779f, 1.9073486f), 397); + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.Interact, 1014133u, new Vector3(-259.84595f, 126.44779f, 1.9073486f), 397); obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span3[2]; + num++; + ref QuestSequence reference11 = ref span14[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -114654,63 +138024,88 @@ public static class AssemblyQuestLoader num2 = 3; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span4 = CollectionsMarshal.AsSpan(list17); - ref QuestStep reference12 = ref span4[0]; + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + ref QuestStep reference12 = ref span17[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2006005u, new Vector3(-157.70203f, 110.73462f, -52.414795f), 397); num3 = 6; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span5 = CollectionsMarshal.AsSpan(list18); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span18 = CollectionsMarshal.AsSpan(list18); + index3 = 0; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list18; reference12 = questStep; - ref QuestStep reference13 = ref span4[1]; + index2++; + ref QuestStep reference13 = ref span17[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2006006u, new Vector3(-228.25977f, 112.47424f, -127.55017f), 397); - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span6 = CollectionsMarshal.AsSpan(list19); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list19; reference13 = questStep2; - ref QuestStep reference14 = ref span4[2]; + index2++; + ref QuestStep reference14 = ref span17[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2006007u, new Vector3(-348.10413f, 116.50256f, -91.93567f), 397); num3 = 6; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span7 = CollectionsMarshal.AsSpan(list20); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span20 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list20; reference14 = questStep3; obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference15 = ref span3[3]; + num++; + ref QuestSequence reference15 = ref span14[num]; QuestSequence obj12 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 1014133u, new Vector3(-259.84595f, 126.44779f, 1.9073486f), 397); + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.Interact, 1014133u, new Vector3(-259.84595f, 126.44779f, 1.9073486f), 397); obj12.Steps = list21; reference15 = obj12; - ref QuestSequence reference16 = ref span3[4]; + num++; + ref QuestSequence reference16 = ref span14[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -114718,7 +138113,9 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) { NextQuestId = new QuestId(1764) }; @@ -114731,24 +138128,30 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "Thaksin"; + Span span23 = CollectionsMarshal.AsSpan(list23); + index = 0; + span23[index] = "Thaksin"; questRoot4.Author = list23; - num = 5; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span8 = CollectionsMarshal.AsSpan(list24); - ref QuestSequence reference17 = ref span8[0]; + index = 5; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + Span span24 = CollectionsMarshal.AsSpan(list24); + num = 0; + ref QuestSequence reference17 = ref span24[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj14.Steps = list25; reference17 = obj14; - ref QuestSequence reference18 = ref span8[1]; + num++; + ref QuestSequence reference18 = ref span24[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -114756,36 +138159,44 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1014134u, new Vector3(-293.23267f, 126.85495f, 5.2643433f), 397); + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.Interact, 1014134u, new Vector3(-293.23267f, 126.85495f, 5.2643433f), 397); obj15.Steps = list26; reference18 = obj15; - ref QuestSequence reference19 = ref span8[2]; + num++; + ref QuestSequence reference19 = ref span24[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - Span span9 = CollectionsMarshal.AsSpan(list27); - span9[0] = new QuestStep(EInteractionType.Interact, 1014136u, new Vector3(292.74426f, 132.44626f, -244.73944f), 397) + index2 = 2; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.Interact, 1014136u, new Vector3(292.74426f, 132.44626f, -244.73944f), 397) { Fly = true }; - ref QuestStep reference20 = ref span9[1]; + num2++; + ref QuestStep reference20 = ref span27[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, 4041u, new Vector3(289.0053f, 132.30807f, -233.57523f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = 4041u; + index3 = 1; + List list28 = new List(index3); + CollectionsMarshal.SetCount(list28, index3); + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span28[num3] = 4041u; obj17.KillEnemyDataIds = list28; reference20 = obj17; obj16.Steps = list27; reference19 = obj16; - ref QuestSequence reference21 = ref span8[3]; + num++; + ref QuestSequence reference21 = ref span24[num]; QuestSequence obj18 = new QuestSequence { Sequence = 3 @@ -114793,18 +138204,23 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1014136u, new Vector3(292.74426f, 132.44626f, -244.73944f), 397); + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.Interact, 1014136u, new Vector3(292.74426f, 132.44626f, -244.73944f), 397); obj18.Steps = list29; reference21 = obj18; - ref QuestSequence reference22 = ref span8[4]; + num++; + ref QuestSequence reference22 = ref span24[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span30[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) { Fly = true, NextQuestId = new QuestId(1765) @@ -114818,13 +138234,16 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "Thaksin"; + Span span31 = CollectionsMarshal.AsSpan(list31); + index = 0; + span31[index] = "Thaksin"; questRoot5.Author = list31; - num = 5; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span10 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference23 = ref span10[0]; + index = 5; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + Span span32 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference23 = ref span32[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -114832,24 +138251,30 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj20.Steps = list33; reference23 = obj20; - ref QuestSequence reference24 = ref span10[1]; + num++; + ref QuestSequence reference24 = ref span32[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1014138u, new Vector3(-219.19586f, 112.21238f, -244.1596f), 397) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.Interact, 1014138u, new Vector3(-219.19586f, 112.21238f, -244.1596f), 397) { Fly = true }; obj21.Steps = list34; reference24 = obj21; - ref QuestSequence reference25 = ref span10[2]; + num++; + ref QuestSequence reference25 = ref span32[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 @@ -114857,7 +138282,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - ref QuestStep reference26 = ref CollectionsMarshal.AsSpan(list35)[0]; + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + ref QuestStep reference26 = ref span35[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 4470u, new Vector3(-468.44992f, 93.85853f, -506.40417f), 397) { Fly = true, @@ -114866,28 +138293,34 @@ public static class AssemblyQuestLoader num3 = 1; List list36 = new List(num3); CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = 4470u; + Span span36 = CollectionsMarshal.AsSpan(list36); + index3 = 0; + span36[index3] = 4470u; obj23.KillEnemyDataIds = list36; reference26 = obj23; obj22.Steps = list35; reference25 = obj22; - ref QuestSequence reference27 = ref span10[3]; + num++; + ref QuestSequence reference27 = ref span32[num]; QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span11 = CollectionsMarshal.AsSpan(list37); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-219.1624f, 112.29031f, -239.88861f), 397) + index2 = 2; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-219.1624f, 112.29031f, -239.88861f), 397) { Fly = true }; - span11[1] = new QuestStep(EInteractionType.Interact, 1014138u, new Vector3(-219.19586f, 112.21238f, -244.1596f), 397); + num2++; + span37[num2] = new QuestStep(EInteractionType.Interact, 1014138u, new Vector3(-219.19586f, 112.21238f, -244.1596f), 397); obj24.Steps = list37; reference27 = obj24; - ref QuestSequence reference28 = ref span10[4]; + num++; + ref QuestSequence reference28 = ref span32[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -114895,7 +138328,9 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) { Fly = true, NextQuestId = new QuestId(1766) @@ -114909,24 +138344,30 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "Thaksin"; + Span span39 = CollectionsMarshal.AsSpan(list39); + index = 0; + span39[index] = "Thaksin"; questRoot6.Author = list39; - num = 6; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span12 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference29 = ref span12[0]; + index = 6; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + Span span40 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference29 = ref span40[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj26.Steps = list41; reference29 = obj26; - ref QuestSequence reference30 = ref span12[1]; + num++; + ref QuestSequence reference30 = ref span40[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -114934,27 +138375,33 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1014138u, new Vector3(-219.19586f, 112.21238f, -244.1596f), 397) + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.Interact, 1014138u, new Vector3(-219.19586f, 112.21238f, -244.1596f), 397) { Fly = true }; obj27.Steps = list42; reference30 = obj27; - ref QuestSequence reference31 = ref span12[2]; + num++; + ref QuestSequence reference31 = ref span40[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1014140u, new Vector3(-472.19043f, 93.87282f, -503.7156f), 397) + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.Interact, 1014140u, new Vector3(-472.19043f, 93.87282f, -503.7156f), 397) { Fly = true }; obj28.Steps = list43; reference31 = obj28; - ref QuestSequence reference32 = ref span12[3]; + num++; + ref QuestSequence reference32 = ref span40[num]; QuestSequence obj29 = new QuestSequence { Sequence = 3 @@ -114962,36 +138409,44 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - ref QuestStep reference33 = ref CollectionsMarshal.AsSpan(list44)[0]; + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + ref QuestStep reference33 = ref span44[index2]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, 4468u, new Vector3(-696.8278f, 100.08534f, -603.926f), 397) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = 4468u; + index3 = 1; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + Span span45 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span45[num3] = 4468u; obj30.KillEnemyDataIds = list45; reference33 = obj30; obj29.Steps = list44; reference32 = obj29; - ref QuestSequence reference34 = ref span12[4]; + num++; + ref QuestSequence reference34 = ref span40[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1014140u, new Vector3(-472.19043f, 93.87282f, -503.7156f), 397) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.Interact, 1014140u, new Vector3(-472.19043f, 93.87282f, -503.7156f), 397) { Fly = true }; obj31.Steps = list46; reference34 = obj31; - ref QuestSequence reference35 = ref span12[5]; + num++; + ref QuestSequence reference35 = ref span40[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -114999,7 +138454,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) { Fly = true, NextQuestId = new QuestId(1769) @@ -115013,24 +138470,30 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "Thaksin"; + Span span48 = CollectionsMarshal.AsSpan(list48); + index = 0; + span48[index] = "Thaksin"; questRoot7.Author = list48; - num = 11; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span13 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference36 = ref span13[0]; + index = 11; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + Span span49 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference36 = ref span49[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj33.Steps = list50; reference36 = obj33; - ref QuestSequence reference37 = ref span13[1]; + num++; + ref QuestSequence reference37 = ref span49[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -115038,24 +138501,30 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397) { Fly = true }; obj34.Steps = list51; reference37 = obj34; - ref QuestSequence reference38 = ref span13[2]; + num++; + ref QuestSequence reference38 = ref span49[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 2006013u, new Vector3(-287.76996f, 77.74463f, -278.00415f), 397); + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.Interact, 2006013u, new Vector3(-287.76996f, 77.74463f, -278.00415f), 397); obj35.Steps = list52; reference38 = obj35; - ref QuestSequence reference39 = ref span13[3]; + num++; + ref QuestSequence reference39 = ref span49[num]; QuestSequence obj36 = new QuestSequence { Sequence = 3 @@ -115063,20 +138532,25 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397); + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397); obj36.Steps = list53; reference39 = obj36; - ref QuestSequence reference40 = ref span13[4]; + num++; + ref QuestSequence reference40 = ref span49[num]; QuestSequence obj37 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - Span span14 = CollectionsMarshal.AsSpan(list54); - span14[0] = new QuestStep(EInteractionType.Interact, 2006014u, new Vector3(-291.8593f, 76.98169f, -261.0056f), 397); - ref QuestStep reference41 = ref span14[1]; + index2 = 2; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.Interact, 2006014u, new Vector3(-291.8593f, 76.98169f, -261.0056f), 397); + num2++; + ref QuestStep reference41 = ref span54[num2]; QuestStep obj38 = new QuestStep(EInteractionType.Combat, 4037u, new Vector3(-285.1214f, 76.98337f, -275.5287f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -115084,12 +138558,15 @@ public static class AssemblyQuestLoader num3 = 1; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = 4037u; + Span span55 = CollectionsMarshal.AsSpan(list55); + index3 = 0; + span55[index3] = 4037u; obj38.KillEnemyDataIds = list55; reference41 = obj38; obj37.Steps = list54; reference40 = obj37; - ref QuestSequence reference42 = ref span13[5]; + num++; + ref QuestSequence reference42 = ref span49[num]; QuestSequence obj39 = new QuestSequence { Sequence = 5 @@ -115097,24 +138574,30 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397); + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397); obj39.Steps = list56; reference42 = obj39; - ref QuestSequence reference43 = ref span13[6]; + num++; + ref QuestSequence reference43 = ref span49[num]; QuestSequence obj40 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.Interact, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) { Fly = true }; obj40.Steps = list57; reference43 = obj40; - ref QuestSequence reference44 = ref span13[7]; + num++; + ref QuestSequence reference44 = ref span49[num]; QuestSequence obj41 = new QuestSequence { Sequence = 7 @@ -115122,21 +138605,27 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1014144u, new Vector3(-258.16742f, 126.98671f, 12.77179f), 397); + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.Interact, 1014144u, new Vector3(-258.16742f, 126.98671f, 12.77179f), 397); obj41.Steps = list58; reference44 = obj41; - ref QuestSequence reference45 = ref span13[8]; + num++; + ref QuestSequence reference45 = ref span49[num]; QuestSequence obj42 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 2006015u, new Vector3(-252.33844f, 127.00073f, 11.093262f), 397); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.Interact, 2006015u, new Vector3(-252.33844f, 127.00073f, 11.093262f), 397); obj42.Steps = list59; reference45 = obj42; - ref QuestSequence reference46 = ref span13[9]; + num++; + ref QuestSequence reference46 = ref span49[num]; QuestSequence obj43 = new QuestSequence { Sequence = 9 @@ -115144,18 +138633,23 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1014144u, new Vector3(-258.16742f, 126.98671f, 12.77179f), 397); + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.Interact, 1014144u, new Vector3(-258.16742f, 126.98671f, 12.77179f), 397); obj43.Steps = list60; reference46 = obj43; - ref QuestSequence reference47 = ref span13[10]; + num++; + ref QuestSequence reference47 = ref span49[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj44.Steps = list61; reference47 = obj44; questRoot7.QuestSequence = list49; @@ -115165,13 +138659,16 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "JerryWester"; + Span span62 = CollectionsMarshal.AsSpan(list62); + index = 0; + span62[index] = "JerryWester"; questRoot8.Author = list62; - num = 3; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span15 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference48 = ref span15[0]; + index = 3; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + Span span63 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference48 = ref span63[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -115179,37 +138676,48 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); obj45.Steps = list64; reference48 = obj45; - ref QuestSequence reference49 = ref span15[1]; + num++; + ref QuestSequence reference49 = ref span63[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - num2 = 8; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - Span span16 = CollectionsMarshal.AsSpan(list65); - ref QuestStep reference50 = ref span16[0]; + index2 = 8; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + ref QuestStep reference50 = ref span65[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(627.76666f, -26.098835f, -408.3923f), 398); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span17 = CollectionsMarshal.AsSpan(list66); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list66 = new List(index3); + CollectionsMarshal.SetCount(list66, index3); + Span span66 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list66; skipConditions.StepIf = skipStepConditions; questStep4.SkipConditions = skipConditions; reference50 = questStep4; - ref QuestStep reference51 = ref span16[1]; + num2++; + ref QuestStep reference51 = ref span65[num2]; QuestStep obj47 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(643.6058f, -17.959486f, -409.5136f), 398) { DisableNavmesh = true @@ -115219,74 +138727,102 @@ public static class AssemblyQuestLoader num3 = 6; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - Span span18 = CollectionsMarshal.AsSpan(list67); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span67 = CollectionsMarshal.AsSpan(list67); + index3 = 0; + span67[index3] = null; + index3++; + span67[index3] = null; + index3++; + span67[index3] = null; + index3++; + span67[index3] = null; + index3++; + span67[index3] = null; + index3++; + span67[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list67; skipConditions2.StepIf = skipStepConditions2; obj47.SkipConditions = skipConditions2; reference51 = obj47; - ref QuestStep reference52 = ref span16[2]; + num2++; + ref QuestStep reference52 = ref span65[num2]; QuestStep obj48 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(681.08307f, -23.861216f, -313.61807f), 398) { DisableNavmesh = true }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - Span span19 = CollectionsMarshal.AsSpan(list68); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list68 = new List(index3); + CollectionsMarshal.SetCount(list68, index3); + Span span68 = CollectionsMarshal.AsSpan(list68); + num3 = 0; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list68; skipConditions3.StepIf = skipStepConditions3; obj48.SkipConditions = skipConditions3; reference52 = obj48; - ref QuestStep reference53 = ref span16[3]; + num2++; + ref QuestStep reference53 = ref span65[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1011932u, new Vector3(685.96924f, -24.382862f, -269.06238f), 398); num3 = 6; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - Span span20 = CollectionsMarshal.AsSpan(list69); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span69 = CollectionsMarshal.AsSpan(list69); + index3 = 0; + span69[index3] = null; + index3++; + span69[index3] = null; + index3++; + span69[index3] = null; + index3++; + span69[index3] = null; + index3++; + span69[index3] = null; + index3++; + span69[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list69; reference53 = questStep5; - ref QuestStep reference54 = ref span16[4]; + num2++; + ref QuestStep reference54 = ref span65[num2]; QuestStep obj49 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(698.47815f, -24.308271f, -262.69476f), 398) { Mount = true }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - Span span21 = CollectionsMarshal.AsSpan(list70); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list70 = new List(index3); + CollectionsMarshal.SetCount(list70, index3); + Span span70 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span70[num3] = null; + num3++; + span70[num3] = null; + num3++; + span70[num3] = null; + num3++; + span70[num3] = null; + num3++; + span70[num3] = null; + num3++; + span70[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list70; skipConditions4.StepIf = skipStepConditions4; obj49.SkipConditions = skipConditions4; reference54 = obj49; - ref QuestStep reference55 = ref span16[5]; + num2++; + ref QuestStep reference55 = ref span65[num2]; QuestStep obj50 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(725.30743f, -43.07919f, -208.64124f), 398) { DisableNavmesh = true @@ -115296,48 +138832,69 @@ public static class AssemblyQuestLoader num3 = 6; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span22 = CollectionsMarshal.AsSpan(list71); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span71 = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span71[index3] = null; + index3++; + span71[index3] = null; + index3++; + span71[index3] = null; + index3++; + span71[index3] = null; + index3++; + span71[index3] = null; + index3++; + span71[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list71; skipConditions5.StepIf = skipStepConditions5; obj50.SkipConditions = skipConditions5; reference55 = obj50; - ref QuestStep reference56 = ref span16[6]; + num2++; + ref QuestStep reference56 = ref span65[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1011924u, new Vector3(849.0576f, -37.669926f, -39.56665f), 398); - num3 = 6; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span23 = CollectionsMarshal.AsSpan(list72); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + Span span72 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list72; reference56 = questStep6; - ref QuestStep reference57 = ref span16[7]; + num2++; + ref QuestStep reference57 = ref span65[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1011923u, new Vector3(711.1161f, -36.390835f, 198.10791f), 398); num3 = 6; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - Span span24 = CollectionsMarshal.AsSpan(list73); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span73 = CollectionsMarshal.AsSpan(list73); + index3 = 0; + span73[index3] = null; + index3++; + span73[index3] = null; + index3++; + span73[index3] = null; + index3++; + span73[index3] = null; + index3++; + span73[index3] = null; + index3++; + span73[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list73; reference57 = questStep7; obj46.Steps = list65; reference49 = obj46; - ref QuestSequence reference58 = ref span15[2]; + num++; + ref QuestSequence reference58 = ref span63[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -115345,7 +138902,9 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; @@ -115358,40 +138917,52 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "JerryWester"; + Span span75 = CollectionsMarshal.AsSpan(list75); + index = 0; + span75[index] = "JerryWester"; questRoot9.Author = list75; - num = 3; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span25 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference59 = ref span25[0]; + index = 3; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + Span span76 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference59 = ref span76[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011929u, new Vector3(70.81714f, -49.2083f, -141.55798f), 398); + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011929u, new Vector3(70.81714f, -49.2083f, -141.55798f), 398); obj52.Steps = list77; reference59 = obj52; - ref QuestSequence reference60 = ref span25[1]; + num++; + ref QuestSequence reference60 = ref span76[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - num2 = 1; + num2 = 2; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list78)[0]; + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(67.682434f, -49.685223f, -148.21802f), 398); + index2++; + ref QuestStep reference61 = ref span78[index2]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, 4001u, new Vector3(179.33923f, -108.80406f, 597.07007f), 398) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new ComplexCombatData + index3 = 1; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + Span span79 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span79[num3] = new ComplexCombatData { DataId = 4001u, MinimumKillCount = 2u, @@ -115402,17 +138973,20 @@ public static class AssemblyQuestLoader reference61 = obj54; obj53.Steps = list78; reference60 = obj53; - ref QuestSequence reference62 = ref span25[2]; + num++; + ref QuestSequence reference62 = ref span76[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span26 = CollectionsMarshal.AsSpan(list80); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.535545f, -49.45454f, -149.54617f), 398); - span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1011929u, new Vector3(70.81714f, -49.2083f, -141.55798f), 398); + index2 = 2; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.535545f, -49.45454f, -149.54617f), 398); + num2++; + span80[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011929u, new Vector3(70.81714f, -49.2083f, -141.55798f), 398); obj55.Steps = list80; reference62 = obj55; questRoot9.QuestSequence = list76; @@ -115422,13 +138996,16 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "Thaksin"; + Span span81 = CollectionsMarshal.AsSpan(list81); + index = 0; + span81[index] = "Thaksin"; questRoot10.Author = list81; - num = 3; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span27 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference63 = ref span27[0]; + index = 3; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + Span span82 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference63 = ref span82[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -115436,22 +139013,26 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) { Fly = true }; obj56.Steps = list83; reference63 = obj56; - ref QuestSequence reference64 = ref span27[1]; + num++; + ref QuestSequence reference64 = ref span82[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - Span span28 = CollectionsMarshal.AsSpan(list84); - ref QuestStep reference65 = ref span28[0]; + index2 = 2; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + ref QuestStep reference65 = ref span84[num2]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 2005617u, new Vector3(197.22278f, -99.931335f, 644.4646f), 398) { StopDistance = 0.5f, @@ -115460,36 +139041,50 @@ public static class AssemblyQuestLoader num3 = 6; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - Span span29 = CollectionsMarshal.AsSpan(list85); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span85 = CollectionsMarshal.AsSpan(list85); + index3 = 0; + span85[index3] = null; + index3++; + span85[index3] = null; + index3++; + span85[index3] = null; + index3++; + span85[index3] = null; + index3++; + span85[index3] = null; + index3++; + span85[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj58.CompletionQuestVariablesFlags = list85; reference65 = obj58; - ref QuestStep reference66 = ref span28[1]; + num2++; + ref QuestStep reference66 = ref span84[num2]; QuestStep obj59 = new QuestStep(EInteractionType.Interact, 2005618u, new Vector3(287.64783f, -94.10242f, 597.9553f), 398) { StopDistance = 0.5f, Fly = true }; - num3 = 6; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span30 = CollectionsMarshal.AsSpan(list86); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list86 = new List(index3); + CollectionsMarshal.SetCount(list86, index3); + Span span86 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj59.CompletionQuestVariablesFlags = list86; reference66 = obj59; obj57.Steps = list84; reference64 = obj57; - ref QuestSequence reference67 = ref span27[2]; + num++; + ref QuestSequence reference67 = ref span82[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -115497,7 +139092,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) { Fly = true, NextQuestId = new QuestId(1793) @@ -115511,27 +139108,33 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "Thaksin"; + Span span88 = CollectionsMarshal.AsSpan(list88); + index = 0; + span88[index] = "Thaksin"; questRoot11.Author = list88; - num = 3; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span31 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference68 = ref span31[0]; + index = 3; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + Span span89 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference68 = ref span89[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) { Fly = true }; obj61.Steps = list90; reference68 = obj61; - ref QuestSequence reference69 = ref span31[1]; + num++; + ref QuestSequence reference69 = ref span89[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -115539,8 +139142,9 @@ public static class AssemblyQuestLoader num2 = 4; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span32 = CollectionsMarshal.AsSpan(list91); - ref QuestStep reference70 = ref span32[0]; + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + ref QuestStep reference70 = ref span91[index2]; QuestStep obj63 = new QuestStep(EInteractionType.Interact, 2005636u, new Vector3(-247.21143f, -77.62268f, 819.4857f), 398) { Fly = true @@ -115548,33 +139152,47 @@ public static class AssemblyQuestLoader num3 = 6; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - Span span33 = CollectionsMarshal.AsSpan(list92); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span92 = CollectionsMarshal.AsSpan(list92); + index3 = 0; + span92[index3] = null; + index3++; + span92[index3] = null; + index3++; + span92[index3] = null; + index3++; + span92[index3] = null; + index3++; + span92[index3] = null; + index3++; + span92[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj63.CompletionQuestVariablesFlags = list92; reference70 = obj63; - ref QuestStep reference71 = ref span32[1]; + index2++; + ref QuestStep reference71 = ref span91[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 2005635u, new Vector3(-187.24353f, -84.85547f, 733.51636f), 398) { Fly = true }; - num3 = 6; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - Span span34 = CollectionsMarshal.AsSpan(list93); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list93 = new List(index3); + CollectionsMarshal.SetCount(list93, index3); + Span span93 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span93[num3] = null; + num3++; + span93[num3] = null; + num3++; + span93[num3] = null; + num3++; + span93[num3] = null; + num3++; + span93[num3] = null; + num3++; + span93[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj64.CompletionQuestVariablesFlags = list93; reference71 = obj64; - ref QuestStep reference72 = ref span32[2]; + index2++; + ref QuestStep reference72 = ref span91[index2]; QuestStep obj65 = new QuestStep(EInteractionType.Interact, 2005633u, new Vector3(-273.518f, -82.47504f, 644.6478f), 398) { Fly = true @@ -115582,43 +139200,59 @@ public static class AssemblyQuestLoader num3 = 6; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - Span span35 = CollectionsMarshal.AsSpan(list94); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span94 = CollectionsMarshal.AsSpan(list94); + index3 = 0; + span94[index3] = null; + index3++; + span94[index3] = null; + index3++; + span94[index3] = null; + index3++; + span94[index3] = null; + index3++; + span94[index3] = null; + index3++; + span94[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj65.CompletionQuestVariablesFlags = list94; reference72 = obj65; - ref QuestStep reference73 = ref span32[3]; + index2++; + ref QuestStep reference73 = ref span91[index2]; QuestStep obj66 = new QuestStep(EInteractionType.Interact, 2005634u, new Vector3(-307.3015f, -80.1557f, 665.6748f), 398) { Fly = true }; - num3 = 6; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - Span span36 = CollectionsMarshal.AsSpan(list95); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list95 = new List(index3); + CollectionsMarshal.SetCount(list95, index3); + Span span95 = CollectionsMarshal.AsSpan(list95); + num3 = 0; + span95[num3] = null; + num3++; + span95[num3] = null; + num3++; + span95[num3] = null; + num3++; + span95[num3] = null; + num3++; + span95[num3] = null; + num3++; + span95[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj66.CompletionQuestVariablesFlags = list95; reference73 = obj66; obj62.Steps = list91; reference69 = obj62; - ref QuestSequence reference74 = ref span31[2]; + num++; + ref QuestSequence reference74 = ref span89[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) { Fly = true }; @@ -115631,13 +139265,16 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "JerryWester"; + Span span97 = CollectionsMarshal.AsSpan(list97); + index = 0; + span97[index] = "JerryWester"; questRoot12.Author = list97; - num = 3; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span37 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference75 = ref span37[0]; + index = 3; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference75 = ref span98[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 @@ -115645,7 +139282,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, SkipConditions = new SkipConditions @@ -115658,55 +139297,71 @@ public static class AssemblyQuestLoader }; obj68.Steps = list99; reference75 = obj68; - ref QuestSequence reference76 = ref span37[1]; + num++; + ref QuestSequence reference76 = ref span98[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 }; - num2 = 8; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span38 = CollectionsMarshal.AsSpan(list100); - ref QuestStep reference77 = ref span38[0]; + index2 = 8; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference77 = ref span100[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(627.76666f, -26.098835f, -408.3923f), 398); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); num3 = 6; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span39 = CollectionsMarshal.AsSpan(list101); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span101 = CollectionsMarshal.AsSpan(list101); + index3 = 0; + span101[index3] = null; + index3++; + span101[index3] = null; + index3++; + span101[index3] = null; + index3++; + span101[index3] = null; + index3++; + span101[index3] = null; + index3++; + span101[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list101; skipConditions6.StepIf = skipStepConditions6; questStep8.SkipConditions = skipConditions6; reference77 = questStep8; - ref QuestStep reference78 = ref span38[1]; + num2++; + ref QuestStep reference78 = ref span100[num2]; QuestStep obj70 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(643.6058f, -17.959486f, -409.5136f), 398) { DisableNavmesh = true }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - Span span40 = CollectionsMarshal.AsSpan(list102); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list102 = new List(index3); + CollectionsMarshal.SetCount(list102, index3); + Span span102 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list102; skipConditions7.StepIf = skipStepConditions7; obj70.SkipConditions = skipConditions7; reference78 = obj70; - ref QuestStep reference79 = ref span38[2]; + num2++; + ref QuestStep reference79 = ref span100[num2]; QuestStep obj71 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(681.08307f, -23.861216f, -313.61807f), 398) { DisableNavmesh = true @@ -115716,32 +139371,46 @@ public static class AssemblyQuestLoader num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - Span span41 = CollectionsMarshal.AsSpan(list103); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span103 = CollectionsMarshal.AsSpan(list103); + index3 = 0; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list103; skipConditions8.StepIf = skipStepConditions8; obj71.SkipConditions = skipConditions8; reference79 = obj71; - ref QuestStep reference80 = ref span38[3]; + num2++; + ref QuestStep reference80 = ref span100[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1011932u, new Vector3(685.96924f, -24.382862f, -269.06238f), 398); - num3 = 6; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - Span span42 = CollectionsMarshal.AsSpan(list104); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list104 = new List(index3); + CollectionsMarshal.SetCount(list104, index3); + Span span104 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span104[num3] = null; + num3++; + span104[num3] = null; + num3++; + span104[num3] = null; + num3++; + span104[num3] = null; + num3++; + span104[num3] = null; + num3++; + span104[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list104; reference80 = questStep9; - ref QuestStep reference81 = ref span38[4]; + num2++; + ref QuestStep reference81 = ref span100[num2]; QuestStep obj72 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(698.47815f, -24.308271f, -262.69476f), 398) { Mount = true @@ -115751,69 +139420,97 @@ public static class AssemblyQuestLoader num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span43 = CollectionsMarshal.AsSpan(list105); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span105 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list105; skipConditions9.StepIf = skipStepConditions9; obj72.SkipConditions = skipConditions9; reference81 = obj72; - ref QuestStep reference82 = ref span38[5]; + num2++; + ref QuestStep reference82 = ref span100[num2]; QuestStep obj73 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(725.30743f, -43.07919f, -208.64124f), 398) { DisableNavmesh = true }; SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 6; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span44 = CollectionsMarshal.AsSpan(list106); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list106 = new List(index3); + CollectionsMarshal.SetCount(list106, index3); + Span span106 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions10.CompletionQuestVariablesFlags = list106; skipConditions10.StepIf = skipStepConditions10; obj73.SkipConditions = skipConditions10; reference82 = obj73; - ref QuestStep reference83 = ref span38[6]; + num2++; + ref QuestStep reference83 = ref span100[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1011924u, new Vector3(849.0576f, -37.669926f, -39.56665f), 398); num3 = 6; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span45 = CollectionsMarshal.AsSpan(list107); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span107 = CollectionsMarshal.AsSpan(list107); + index3 = 0; + span107[index3] = null; + index3++; + span107[index3] = null; + index3++; + span107[index3] = null; + index3++; + span107[index3] = null; + index3++; + span107[index3] = null; + index3++; + span107[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list107; reference83 = questStep10; - ref QuestStep reference84 = ref span38[7]; + num2++; + ref QuestStep reference84 = ref span100[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1011923u, new Vector3(711.1161f, -36.390835f, 198.10791f), 398); - num3 = 6; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - Span span46 = CollectionsMarshal.AsSpan(list108); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list108 = new List(index3); + CollectionsMarshal.SetCount(list108, index3); + Span span108 = CollectionsMarshal.AsSpan(list108); + num3 = 0; + span108[num3] = null; + num3++; + span108[num3] = null; + num3++; + span108[num3] = null; + num3++; + span108[num3] = null; + num3++; + span108[num3] = null; + num3++; + span108[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list108; reference84 = questStep11; obj69.Steps = list100; reference76 = obj69; - ref QuestSequence reference85 = ref span37[2]; + num++; + ref QuestSequence reference85 = ref span98[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue @@ -115821,7 +139518,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; @@ -115838,13 +139537,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 8; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 8; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -115852,7 +139554,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011937u, new Vector3(-305.56195f, 39.04307f, 22.9953f), 398) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011937u, new Vector3(-305.56195f, 39.04307f, 22.9953f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, SkipConditions = new SkipConditions @@ -115865,24 +139569,29 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-334.08136f, 40.34739f, 18.237068f), 398); - span2[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-324.42703f, -22.971008f, 51.45664f), 398) + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-334.08136f, 40.34739f, 18.237068f), 398); + num2++; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-324.42703f, -22.971008f, 51.45664f), 398) { DisableNavmesh = true }; - span2[2] = new QuestStep(EInteractionType.Interact, 1013406u, new Vector3(-411.52057f, -35.095f, 231.46399f), 398); + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 1013406u, new Vector3(-411.52057f, -35.095f, 231.46399f), 398); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -115890,7 +139599,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + ref QuestStep reference4 = ref span5[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, null, new Vector3(-431.6009f, -34.79498f, 250.46066f), 398) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -115898,23 +139609,29 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = 4494u; + Span span6 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span6[index3] = 4494u; obj4.KillEnemyDataIds = list6; reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1013407u, new Vector3(-408.40778f, -34.191658f, 238.48315f), 398); + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.Interact, 1013407u, new Vector3(-408.40778f, -34.191658f, 238.48315f), 398); obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -115922,31 +139639,39 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list8)[0]; + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference7 = ref span8[index2]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, null, new Vector3(-431.6009f, -34.79498f, 250.46066f), 398) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = 4495u; + index3 = 1; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + Span span9 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span9[num3] = 4495u; obj7.KillEnemyDataIds = list9; reference7 = obj7; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference8 = ref span[5]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1013408u, new Vector3(-409.87262f, -34.650936f, 234.88208f), 398); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.Interact, 1013408u, new Vector3(-409.87262f, -34.650936f, 234.88208f), 398); obj8.Steps = list10; reference8 = obj8; - ref QuestSequence reference9 = ref span[6]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 6 @@ -115954,7 +139679,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference10 = ref CollectionsMarshal.AsSpan(list11)[0]; + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + ref QuestStep reference10 = ref span11[index2]; QuestStep obj10 = new QuestStep(EInteractionType.Combat, null, new Vector3(-431.6009f, -34.79498f, 250.46066f), 398) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -115962,20 +139689,25 @@ public static class AssemblyQuestLoader num3 = 1; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = 4496u; + Span span12 = CollectionsMarshal.AsSpan(list12); + index3 = 0; + span12[index3] = 4496u; obj10.KillEnemyDataIds = list12; reference10 = obj10; obj9.Steps = list11; reference9 = obj9; - ref QuestSequence reference11 = ref span[7]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011937u, new Vector3(-305.56195f, 39.04307f, 22.9953f), 398) + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011937u, new Vector3(-305.56195f, 39.04307f, 22.9953f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; @@ -115985,18 +139717,19 @@ public static class AssemblyQuestLoader AddQuest(questId, questRoot); QuestId questId2 = new QuestId(1819); QuestRoot questRoot2 = new QuestRoot(); - num = 2; + num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span3 = CollectionsMarshal.AsSpan(list14); - span3[0] = "JerryWester"; - span3[1] = "Wigglez"; + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = "JerryWester"; questRoot2.Author = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span4 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference12 = ref span4[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference12 = ref span15[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -116004,32 +139737,33 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012284u, new Vector3(363.24097f, -73.25598f, 678.4314f), 400); + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012284u, new Vector3(363.24097f, -73.25598f, 678.4314f), 400); obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference13 = ref span4[1]; + num++; + ref QuestSequence reference13 = ref span15[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - Span span5 = CollectionsMarshal.AsSpan(list17); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(550.8325f, 21.90062f, 530.2827f), 400); - span5[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(574.6052f, -6.4543915f, 536.073f), 400) - { - DisableNavmesh = true - }; - ref QuestStep reference14 = ref span5[2]; - QuestStep obj14 = new QuestStep(EInteractionType.Combat, null, new Vector3(574.6052f, -6.4543915f, 536.073f), 400) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + ref QuestStep reference14 = ref span17[num2]; + QuestStep obj14 = new QuestStep(EInteractionType.Combat, null, new Vector3(709.88654f, -38.038876f, 491.74997f), 400) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new ComplexCombatData + index3 = 1; + List list18 = new List(index3); + CollectionsMarshal.SetCount(list18, index3); + Span span18 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span18[num3] = new ComplexCombatData { DataId = 4039u, MinimumKillCount = 3u @@ -116038,7 +139772,8 @@ public static class AssemblyQuestLoader reference14 = obj14; obj13.Steps = list17; reference13 = obj13; - ref QuestSequence reference15 = ref span4[2]; + num++; + ref QuestSequence reference15 = ref span15[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -116046,7 +139781,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012284u, new Vector3(363.24097f, -73.25598f, 678.4314f), 400) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012284u, new Vector3(363.24097f, -73.25598f, 678.4314f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; @@ -116059,21 +139796,26 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + Span span20 = CollectionsMarshal.AsSpan(list20); + index = 0; + span20[index] = "liza"; questRoot3.Author = list20; - num = 6; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span6 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference16 = ref span6[0]; + index = 6; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + Span span21 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference16 = ref span21[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014424u, new Vector3(357.47314f, 2.7662196f, 638.3002f), 400) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014424u, new Vector3(357.47314f, 2.7662196f, 638.3002f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -116087,7 +139829,8 @@ public static class AssemblyQuestLoader }; obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span6[1]; + num++; + ref QuestSequence reference17 = ref span21[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -116095,24 +139838,30 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1014425u, new Vector3(475.7915f, -4.4960318f, 722.13306f), 400) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.Interact, 1014425u, new Vector3(475.7915f, -4.4960318f, 722.13306f), 400) { Fly = true }; obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span6[2]; + num++; + ref QuestSequence reference18 = ref span21[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1014427u, new Vector3(474.6012f, -4.4750566f, 721.5532f), 400); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.Interact, 1014427u, new Vector3(474.6012f, -4.4750566f, 721.5532f), 400); obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference19 = ref span6[3]; + num++; + ref QuestSequence reference19 = ref span21[num]; QuestSequence obj19 = new QuestSequence { Sequence = 3 @@ -116120,22 +139869,26 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(769.16034f, -9.491294f, 286.96594f), 400) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(769.16034f, -9.491294f, 286.96594f), 400) { Fly = true }; obj19.Steps = list25; reference19 = obj19; - ref QuestSequence reference20 = ref span6[4]; + num++; + ref QuestSequence reference20 = ref span21[num]; QuestSequence obj20 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - Span span7 = CollectionsMarshal.AsSpan(list26); - ref QuestStep reference21 = ref span7[0]; + index2 = 2; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + ref QuestStep reference21 = ref span26[num2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, null, new Vector3(769.16034f, -9.491294f, 286.96594f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -116143,16 +139896,20 @@ public static class AssemblyQuestLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = 4039u; + Span span27 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + span27[index3] = 4039u; obj21.KillEnemyDataIds = list27; reference21 = obj21; - span7[1] = new QuestStep(EInteractionType.Interact, 1014426u, new Vector3(770.2295f, -9.491293f, 287.95288f), 400) + num2++; + span26[num2] = new QuestStep(EInteractionType.Interact, 1014426u, new Vector3(770.2295f, -9.491293f, 287.95288f), 400) { StopDistance = 7f }; obj20.Steps = list26; reference20 = obj20; - ref QuestSequence reference22 = ref span6[5]; + num++; + ref QuestSequence reference22 = ref span21[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -116160,7 +139917,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014427u, new Vector3(474.6012f, -4.4750566f, 721.5532f), 400) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014427u, new Vector3(474.6012f, -4.4750566f, 721.5532f), 400) { Fly = true, NextQuestId = new QuestId(1824) @@ -116174,24 +139933,30 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + span29[index] = "JerryWester"; questRoot4.Author = list29; - num = 3; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span8 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference23 = ref span8[0]; + index = 3; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + Span span30 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference23 = ref span30[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012285u, new Vector3(247.11987f, -42.33362f, 565.3314f), 400); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012285u, new Vector3(247.11987f, -42.33362f, 565.3314f), 400); obj23.Steps = list31; reference23 = obj23; - ref QuestSequence reference24 = ref span8[1]; + num++; + ref QuestSequence reference24 = ref span30[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 @@ -116199,15 +139964,19 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list32)[0]; + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference25 = ref span32[index2]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, null, new Vector3(456.25598f, -27.669996f, 157.59406f), 400) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new ComplexCombatData + index3 = 1; + List list33 = new List(index3); + CollectionsMarshal.SetCount(list33, index3); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = new ComplexCombatData { DataId = 3999u, MinimumKillCount = 3u @@ -116216,17 +139985,20 @@ public static class AssemblyQuestLoader reference25 = obj25; obj24.Steps = list32; reference24 = obj24; - ref QuestSequence reference26 = ref span8[2]; + num++; + ref QuestSequence reference26 = ref span30[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span9 = CollectionsMarshal.AsSpan(list34); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(83.82025f, -24.433022f, 150.46234f), 400); - span9[1] = new QuestStep(EInteractionType.CompleteQuest, 1012288u, new Vector3(-47.04364f, -8.866012f, 165.94177f), 400); + index2 = 2; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(83.82025f, -24.433022f, 150.46234f), 400); + num2++; + span34[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012288u, new Vector3(-47.04364f, -8.866012f, 165.94177f), 400); obj26.Steps = list34; reference26 = obj26; questRoot4.QuestSequence = list30; @@ -116236,13 +140008,16 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "liza"; + Span span35 = CollectionsMarshal.AsSpan(list35); + index = 0; + span35[index] = "liza"; questRoot5.Author = list35; - num = 10; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span10 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference27 = ref span10[0]; + index = 10; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + Span span36 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference27 = ref span36[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -116250,7 +140025,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014429u, new Vector3(-77.34796f, -8.655561f, 165.23987f), 400) + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014429u, new Vector3(-77.34796f, -8.655561f, 165.23987f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -116264,18 +140041,22 @@ public static class AssemblyQuestLoader }; obj27.Steps = list37; reference27 = obj27; - ref QuestSequence reference28 = ref span10[1]; + num++; + ref QuestSequence reference28 = ref span36[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1014431u, new Vector3(-77.37854f, -8.6555605f, 166.36902f), 400); + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.Interact, 1014431u, new Vector3(-77.37854f, -8.6555605f, 166.36902f), 400); obj28.Steps = list38; reference28 = obj28; - ref QuestSequence reference29 = ref span10[2]; + num++; + ref QuestSequence reference29 = ref span36[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -116283,21 +140064,26 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) { Fly = true }; obj29.Steps = list39; reference29 = obj29; - ref QuestSequence reference30 = ref span10[3]; + num++; + ref QuestSequence reference30 = ref span36[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - ref QuestStep reference31 = ref CollectionsMarshal.AsSpan(list40)[0]; + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref QuestStep reference31 = ref span40[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, null, new Vector3(318.27338f, -29.677633f, -148.89816f), 400) { Fly = true, @@ -116306,7 +140092,9 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = new ComplexCombatData + Span span41 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span41[index3] = new ComplexCombatData { DataId = 4470u, MinimumKillCount = 1u @@ -116315,7 +140103,8 @@ public static class AssemblyQuestLoader reference31 = obj31; obj30.Steps = list40; reference30 = obj30; - ref QuestSequence reference32 = ref span10[4]; + num++; + ref QuestSequence reference32 = ref span36[num]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -116323,30 +140112,37 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) { Fly = true }; obj32.Steps = list42; reference32 = obj32; - ref QuestSequence reference33 = ref span10[5]; + num++; + ref QuestSequence reference33 = ref span36[num]; QuestSequence obj33 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list43)[0]; + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + ref QuestStep reference34 = ref span43[num2]; QuestStep obj34 = new QuestStep(EInteractionType.Combat, null, new Vector3(293.52023f, -30.697027f, -167.88272f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = new ComplexCombatData + index3 = 1; + List list44 = new List(index3); + CollectionsMarshal.SetCount(list44, index3); + Span span44 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span44[num3] = new ComplexCombatData { DataId = 4470u, MinimumKillCount = 1u @@ -116355,7 +140151,8 @@ public static class AssemblyQuestLoader reference34 = obj34; obj33.Steps = list43; reference33 = obj33; - ref QuestSequence reference35 = ref span10[6]; + num++; + ref QuestSequence reference35 = ref span36[num]; QuestSequence obj35 = new QuestSequence { Sequence = 6 @@ -116363,21 +140160,26 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) { Fly = true }; obj35.Steps = list45; reference35 = obj35; - ref QuestSequence reference36 = ref span10[7]; + num++; + ref QuestSequence reference36 = ref span36[num]; QuestSequence obj36 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - ref QuestStep reference37 = ref CollectionsMarshal.AsSpan(list46)[0]; + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + ref QuestStep reference37 = ref span46[num2]; QuestStep obj37 = new QuestStep(EInteractionType.Combat, null, new Vector3(226.58783f, -36.917496f, -100.45467f), 400) { Fly = true, @@ -116386,7 +140188,9 @@ public static class AssemblyQuestLoader num3 = 1; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new ComplexCombatData + Span span47 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span47[index3] = new ComplexCombatData { DataId = 4470u, MinimumKillCount = 1u @@ -116395,7 +140199,8 @@ public static class AssemblyQuestLoader reference37 = obj37; obj36.Steps = list46; reference36 = obj36; - ref QuestSequence reference38 = ref span10[8]; + num++; + ref QuestSequence reference38 = ref span36[num]; QuestSequence obj38 = new QuestSequence { Sequence = 8 @@ -116403,21 +140208,26 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) { Fly = true }; obj38.Steps = list48; reference38 = obj38; - ref QuestSequence reference39 = ref span10[9]; + num++; + ref QuestSequence reference39 = ref span36[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014431u, new Vector3(-77.37854f, -8.6555605f, 166.36902f), 400) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014431u, new Vector3(-77.37854f, -8.6555605f, 166.36902f), 400) { Fly = true, NextQuestId = new QuestId(1831) @@ -116431,13 +140241,16 @@ public static class AssemblyQuestLoader num = 1; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = "JerryWester"; + Span span50 = CollectionsMarshal.AsSpan(list50); + index = 0; + span50[index] = "JerryWester"; questRoot6.Author = list50; - num = 3; - List list51 = new List(num); - CollectionsMarshal.SetCount(list51, num); - Span span11 = CollectionsMarshal.AsSpan(list51); - ref QuestSequence reference40 = ref span11[0]; + index = 3; + List list51 = new List(index); + CollectionsMarshal.SetCount(list51, index); + Span span51 = CollectionsMarshal.AsSpan(list51); + num = 0; + ref QuestSequence reference40 = ref span51[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -116445,37 +140258,48 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013420u, new Vector3(-511.46716f, 50f, 347.0968f), 400); + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013420u, new Vector3(-511.46716f, 50f, 347.0968f), 400); obj40.Steps = list52; reference40 = obj40; - ref QuestSequence reference41 = ref span11[1]; + num++; + ref QuestSequence reference41 = ref span51[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 }; - num2 = 9; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span12 = CollectionsMarshal.AsSpan(list53); - ref QuestStep reference42 = ref span12[0]; + index2 = 9; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref QuestStep reference42 = ref span53[num2]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-526.363f, 50.165375f, 407.25165f), 400); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span13 = CollectionsMarshal.AsSpan(list54); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + Span span54 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list54; skipConditions.StepIf = skipStepConditions; questStep.SkipConditions = skipConditions; reference42 = questStep; - ref QuestStep reference43 = ref span12[1]; + num2++; + ref QuestStep reference43 = ref span53[num2]; QuestStep obj42 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-533.25507f, 53.07081f, 414.5445f), 400) { DisableNavmesh = true @@ -116485,82 +140309,117 @@ public static class AssemblyQuestLoader num3 = 6; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - Span span14 = CollectionsMarshal.AsSpan(list55); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span55 = CollectionsMarshal.AsSpan(list55); + index3 = 0; + span55[index3] = null; + index3++; + span55[index3] = null; + index3++; + span55[index3] = null; + index3++; + span55[index3] = null; + index3++; + span55[index3] = null; + index3++; + span55[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list55; skipConditions2.StepIf = skipStepConditions2; obj42.SkipConditions = skipConditions2; reference43 = obj42; - ref QuestStep reference44 = ref span12[2]; + num2++; + ref QuestStep reference44 = ref span53[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-515.5652f, 57.261906f, 444.5247f), 400); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - Span span15 = CollectionsMarshal.AsSpan(list56); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + Span span56 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span56[num3] = null; + num3++; + span56[num3] = null; + num3++; + span56[num3] = null; + num3++; + span56[num3] = null; + num3++; + span56[num3] = null; + num3++; + span56[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list56; skipConditions3.StepIf = skipStepConditions3; questStep2.SkipConditions = skipConditions3; reference44 = questStep2; - ref QuestStep reference45 = ref span12[3]; + num2++; + ref QuestStep reference45 = ref span53[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1013424u, new Vector3(-498.9853f, 57.261353f, 437.94922f), 400); num3 = 6; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span16 = CollectionsMarshal.AsSpan(list57); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span57 = CollectionsMarshal.AsSpan(list57); + index3 = 0; + span57[index3] = null; + index3++; + span57[index3] = null; + index3++; + span57[index3] = null; + index3++; + span57[index3] = null; + index3++; + span57[index3] = null; + index3++; + span57[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list57; reference45 = questStep3; - ref QuestStep reference46 = ref span12[4]; + num2++; + ref QuestStep reference46 = ref span53[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1013425u, new Vector3(-451.80438f, 44.72754f, 416.89172f), 400); - num3 = 6; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - Span span17 = CollectionsMarshal.AsSpan(list58); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list58 = new List(index3); + CollectionsMarshal.SetCount(list58, index3); + Span span58 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + span58[num3] = null; + num3++; + span58[num3] = null; + num3++; + span58[num3] = null; + num3++; + span58[num3] = null; + num3++; + span58[num3] = null; + num3++; + span58[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list58; reference46 = questStep4; - ref QuestStep reference47 = ref span12[5]; + num2++; + ref QuestStep reference47 = ref span53[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-456.7709f, 43.310535f, 387.23517f), 400); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span18 = CollectionsMarshal.AsSpan(list59); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span59 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list59; skipConditions4.StepIf = skipStepConditions4; questStep5.SkipConditions = skipConditions4; reference47 = questStep5; - ref QuestStep reference48 = ref span12[6]; + num2++; + ref QuestStep reference48 = ref span53[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Jump, null, new Vector3(-443.18756f, 51.336708f, 390.36755f), 400) { StopDistance = 0.25f, @@ -116573,21 +140432,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span19 = CollectionsMarshal.AsSpan(list60); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list60 = new List(index3); + CollectionsMarshal.SetCount(list60, index3); + Span span60 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list60; skipConditions5.StepIf = skipStepConditions5; obj43.SkipConditions = skipConditions5; reference48 = obj43; - ref QuestStep reference49 = ref span12[7]; + num2++; + ref QuestStep reference49 = ref span53[num2]; QuestStep obj44 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-443.36014f, 53.653843f, 380.91522f), 400) { StopDistance = 0.5f, @@ -116598,37 +140464,51 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span20 = CollectionsMarshal.AsSpan(list61); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span61 = CollectionsMarshal.AsSpan(list61); + index3 = 0; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list61; skipConditions6.StepIf = skipStepConditions6; obj44.SkipConditions = skipConditions6; reference49 = obj44; - ref QuestStep reference50 = ref span12[8]; + num2++; + ref QuestStep reference50 = ref span53[num2]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1013421u, new Vector3(-455.16138f, 53.48893f, 379.3545f), 400) { DisableNavmesh = true }; - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span21 = CollectionsMarshal.AsSpan(list62); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list62 = new List(index3); + CollectionsMarshal.SetCount(list62, index3); + Span span62 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj45.CompletionQuestVariablesFlags = list62; reference50 = obj45; obj41.Steps = list53; reference41 = obj41; - ref QuestSequence reference51 = ref span11[2]; + num++; + ref QuestSequence reference51 = ref span51[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue @@ -116636,13 +140516,15 @@ public static class AssemblyQuestLoader num2 = 2; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span22 = CollectionsMarshal.AsSpan(list63); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-465.66104f, 43.041187f, 380.90747f), 400) + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-465.66104f, 43.041187f, 380.90747f), 400) { DisableNavmesh = true, Mount = true }; - span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1013420u, new Vector3(-511.46716f, 50f, 347.0968f), 400); + index2++; + span63[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013420u, new Vector3(-511.46716f, 50f, 347.0968f), 400); obj46.Steps = list63; reference51 = obj46; questRoot6.QuestSequence = list51; @@ -116652,27 +140534,33 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + Span span64 = CollectionsMarshal.AsSpan(list64); + index = 0; + span64[index] = "liza"; questRoot7.Author = list64; - num = 8; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span23 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference52 = ref span23[0]; + index = 8; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + Span span65 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference52 = ref span65[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014432u, new Vector3(-625.8793f, 50f, 332.63135f), 400) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014432u, new Vector3(-625.8793f, 50f, 332.63135f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj47.Steps = list66; reference52 = obj47; - ref QuestSequence reference53 = ref span23[1]; + num++; + ref QuestSequence reference53 = ref span65[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 @@ -116680,24 +140568,30 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1014436u, new Vector3(-626.42865f, 49.999996f, 334.0658f), 400) + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.Interact, 1014436u, new Vector3(-626.42865f, 49.999996f, 334.0658f), 400) { StopDistance = 7f }; obj48.Steps = list67; reference53 = obj48; - ref QuestSequence reference54 = ref span23[2]; + num++; + ref QuestSequence reference54 = ref span65[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1014432u, new Vector3(-625.8793f, 50f, 332.63135f), 400); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.Interact, 1014432u, new Vector3(-625.8793f, 50f, 332.63135f), 400); obj49.Steps = list68; reference54 = obj49; - ref QuestSequence reference55 = ref span23[3]; + num++; + ref QuestSequence reference55 = ref span65[num]; QuestSequence obj50 = new QuestSequence { Sequence = 3 @@ -116705,19 +140599,23 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-473.00934f, 42.910698f, 361.0051f), 400); + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-473.00934f, 42.910698f, 361.0051f), 400); obj50.Steps = list69; reference55 = obj50; - ref QuestSequence reference56 = ref span23[4]; + num++; + ref QuestSequence reference56 = ref span65[num]; QuestSequence obj51 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span24 = CollectionsMarshal.AsSpan(list70); - ref QuestStep reference57 = ref span24[0]; + index2 = 2; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref QuestStep reference57 = ref span70[num2]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, null, new Vector3(-473.00934f, 42.910698f, 361.0051f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -116725,13 +140623,17 @@ public static class AssemblyQuestLoader num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = 4076u; + Span span71 = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span71[index3] = 4076u; obj52.KillEnemyDataIds = list71; reference57 = obj52; - span24[1] = new QuestStep(EInteractionType.Interact, 1014433u, new Vector3(-473.4112f, 42.91877f, 360.0061f), 400); + num2++; + span70[num2] = new QuestStep(EInteractionType.Interact, 1014433u, new Vector3(-473.4112f, 42.91877f, 360.0061f), 400); obj51.Steps = list70; reference56 = obj51; - ref QuestSequence reference58 = ref span23[5]; + num++; + ref QuestSequence reference58 = ref span65[num]; QuestSequence obj53 = new QuestSequence { Sequence = 5 @@ -116739,36 +140641,44 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-177.2358f, -20.962738f, 266.31805f), 400) + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span72[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-177.2358f, -20.962738f, 266.31805f), 400) { Fly = true }; obj53.Steps = list72; reference58 = obj53; - ref QuestSequence reference59 = ref span23[6]; + num++; + ref QuestSequence reference59 = ref span65[num]; QuestSequence obj54 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - Span span25 = CollectionsMarshal.AsSpan(list73); - ref QuestStep reference60 = ref span25[0]; + index2 = 2; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + ref QuestStep reference60 = ref span73[num2]; QuestStep obj55 = new QuestStep(EInteractionType.Combat, null, new Vector3(-177.2358f, -20.962738f, 266.31805f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - CollectionsMarshal.AsSpan(list74)[0] = 4076u; + index3 = 1; + List list74 = new List(index3); + CollectionsMarshal.SetCount(list74, index3); + Span span74 = CollectionsMarshal.AsSpan(list74); + num3 = 0; + span74[num3] = 4076u; obj55.KillEnemyDataIds = list74; reference60 = obj55; - span25[1] = new QuestStep(EInteractionType.Interact, 1014434u, new Vector3(-177.11151f, -20.990452f, 266.5293f), 400); + num2++; + span73[num2] = new QuestStep(EInteractionType.Interact, 1014434u, new Vector3(-177.11151f, -20.990452f, 266.5293f), 400); obj54.Steps = list73; reference59 = obj54; - ref QuestSequence reference61 = ref span23[7]; + num++; + ref QuestSequence reference61 = ref span65[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue @@ -116776,7 +140686,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014435u, new Vector3(-109.056274f, -8.844471f, 209.3385f), 400) + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014435u, new Vector3(-109.056274f, -8.844471f, 209.3385f), 400) { Fly = true, NextQuestId = new QuestId(1832) @@ -116790,21 +140702,26 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "liza"; + Span span76 = CollectionsMarshal.AsSpan(list76); + index = 0; + span76[index] = "liza"; questRoot8.Author = list76; - num = 6; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span26 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference62 = ref span26[0]; + index = 6; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + Span span77 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference62 = ref span77[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014442u, new Vector3(455.28345f, -24.191578f, 109.05615f), 400) + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014442u, new Vector3(455.28345f, -24.191578f, 109.05615f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -116818,7 +140735,8 @@ public static class AssemblyQuestLoader }; obj57.Steps = list78; reference62 = obj57; - ref QuestSequence reference63 = ref span26[1]; + num++; + ref QuestSequence reference63 = ref span77[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 @@ -116826,21 +140744,27 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1014445u, new Vector3(455.2528f, -24.093994f, 109.88013f), 400); + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.Interact, 1014445u, new Vector3(455.2528f, -24.093994f, 109.88013f), 400); obj58.Steps = list79; reference63 = obj58; - ref QuestSequence reference64 = ref span26[2]; + num++; + ref QuestSequence reference64 = ref span77[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1014442u, new Vector3(455.28345f, -24.191578f, 109.05615f), 400); + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.Interact, 1014442u, new Vector3(455.28345f, -24.191578f, 109.05615f), 400); obj59.Steps = list80; reference64 = obj59; - ref QuestSequence reference65 = ref span26[3]; + num++; + ref QuestSequence reference65 = ref span77[num]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -116848,30 +140772,36 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1012084u, new Vector3(225.54358f, 6.9602013f, 709.34607f), 400) + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.Interact, 1012084u, new Vector3(225.54358f, 6.9602013f, 709.34607f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj60.Steps = list81; reference65 = obj60; - ref QuestSequence reference66 = ref span26[4]; + num++; + ref QuestSequence reference66 = ref span77[num]; QuestSequence obj61 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - Span span27 = CollectionsMarshal.AsSpan(list82); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.38687f, -27.748926f, 113.191864f), 400) + index2 = 2; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.38687f, -27.748926f, 113.191864f), 400) { Fly = true }; - span27[1] = new QuestStep(EInteractionType.Interact, 1014446u, new Vector3(389.7306f, -27.420471f, 114.06116f), 400); + num2++; + span82[num2] = new QuestStep(EInteractionType.Interact, 1014446u, new Vector3(389.7306f, -27.420471f, 114.06116f), 400); obj61.Steps = list82; reference66 = obj61; - ref QuestSequence reference67 = ref span26[5]; + num++; + ref QuestSequence reference67 = ref span77[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -116879,7 +140809,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400) + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -116891,29 +140823,33 @@ public static class AssemblyQuestLoader AddQuest(questId8, questRoot8); QuestId questId9 = new QuestId(1835); QuestRoot questRoot9 = new QuestRoot(); - num = 2; + num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - Span span28 = CollectionsMarshal.AsSpan(list84); - span28[0] = "JerryWester"; - span28[1] = "Wigglez"; + Span span84 = CollectionsMarshal.AsSpan(list84); + index = 0; + span84[index] = "JerryWester"; questRoot9.Author = list84; - num = 3; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span29 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference68 = ref span29[0]; + index = 3; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference68 = ref span85[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013434u, new Vector3(517.9064f, -1.1917055f, -354.63495f), 400); + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013434u, new Vector3(517.9064f, -1.1917055f, -354.63495f), 400); obj63.Steps = list86; reference68 = obj63; - ref QuestSequence reference69 = ref span29[1]; + num++; + ref QuestSequence reference69 = ref span85[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 @@ -116921,15 +140857,19 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list87)[0]; - QuestStep obj65 = new QuestStep(EInteractionType.Combat, null, new Vector3(438.3409f, -19.777754f, -282.78647f), 400) + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + ref QuestStep reference70 = ref span87[index2]; + QuestStep obj65 = new QuestStep(EInteractionType.Combat, null, new Vector3(564.7821f, -12.19169f, -322.49945f), 400) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - CollectionsMarshal.AsSpan(list88)[0] = new ComplexCombatData + Span span88 = CollectionsMarshal.AsSpan(list88); + index3 = 0; + span88[index3] = new ComplexCombatData { DataId = 4041u, MinimumKillCount = 4u @@ -116938,21 +140878,18 @@ public static class AssemblyQuestLoader reference70 = obj65; obj64.Steps = list87; reference69 = obj64; - ref QuestSequence reference71 = ref span29[2]; + num++; + ref QuestSequence reference71 = ref span85[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - Span span30 = CollectionsMarshal.AsSpan(list89); - span30[0] = new QuestStep(EInteractionType.Combat, null, new Vector3(517.9064f, -1.1917055f, -354.63495f), 400) - { - EnemySpawnType = EEnemySpawnType.FinishCombatIfAny, - CombatDelaySecondsAtStart = 1f - }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1013434u, new Vector3(517.9064f, -1.1917055f, -354.63495f), 400); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013434u, new Vector3(517.9064f, -1.1917055f, -354.63495f), 400); obj66.Steps = list89; reference71 = obj66; questRoot9.QuestSequence = list85; @@ -116962,13 +140899,16 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "Thaksin"; + Span span90 = CollectionsMarshal.AsSpan(list90); + index = 0; + span90[index] = "Thaksin"; questRoot10.Author = list90; - num = 3; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span31 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference72 = ref span31[0]; + index = 3; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + Span span91 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference72 = ref span91[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -116976,36 +140916,47 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012085u, new Vector3(286.88477f, 14.36517f, 645.1666f), 400); + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012085u, new Vector3(286.88477f, 14.36517f, 645.1666f), 400); obj67.Steps = list92; reference72 = obj67; - ref QuestSequence reference73 = ref span31[1]; + num++; + ref QuestSequence reference73 = ref span91[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span32 = CollectionsMarshal.AsSpan(list93); - ref QuestStep reference74 = ref span32[0]; + index2 = 5; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + ref QuestStep reference74 = ref span93[num2]; QuestStep obj69 = new QuestStep(EInteractionType.Interact, 2005720u, new Vector3(565.9419f, -9.445435f, -14.328308f), 400) { Fly = true }; - num3 = 6; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span33 = CollectionsMarshal.AsSpan(list94); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + Span span94 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span94[num3] = null; + num3++; + span94[num3] = null; + num3++; + span94[num3] = null; + num3++; + span94[num3] = null; + num3++; + span94[num3] = null; + num3++; + span94[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj69.CompletionQuestVariablesFlags = list94; reference74 = obj69; - ref QuestStep reference75 = ref span32[1]; + num2++; + ref QuestStep reference75 = ref span93[num2]; QuestStep obj70 = new QuestStep(EInteractionType.Interact, 2005718u, new Vector3(664.39294f, -0.4730835f, -3.2807007f), 400) { Fly = true @@ -117013,66 +140964,94 @@ public static class AssemblyQuestLoader num3 = 6; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - Span span34 = CollectionsMarshal.AsSpan(list95); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span95 = CollectionsMarshal.AsSpan(list95); + index3 = 0; + span95[index3] = null; + index3++; + span95[index3] = null; + index3++; + span95[index3] = null; + index3++; + span95[index3] = null; + index3++; + span95[index3] = null; + index3++; + span95[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj70.CompletionQuestVariablesFlags = list95; reference75 = obj70; - ref QuestStep reference76 = ref span32[2]; + num2++; + ref QuestStep reference76 = ref span93[num2]; QuestStep obj71 = new QuestStep(EInteractionType.Interact, 2005721u, new Vector3(653.83374f, -0.7172241f, -70.02368f), 400) { Fly = true }; - num3 = 6; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - Span span35 = CollectionsMarshal.AsSpan(list96); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list96 = new List(index3); + CollectionsMarshal.SetCount(list96, index3); + Span span96 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span96[num3] = null; + num3++; + span96[num3] = null; + num3++; + span96[num3] = null; + num3++; + span96[num3] = null; + num3++; + span96[num3] = null; + num3++; + span96[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj71.CompletionQuestVariablesFlags = list96; reference76 = obj71; - ref QuestStep reference77 = ref span32[3]; + num2++; + ref QuestStep reference77 = ref span93[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2005717u, new Vector3(639.00195f, 46.463623f, -113.05414f), 400); num3 = 6; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - Span span36 = CollectionsMarshal.AsSpan(list97); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span97 = CollectionsMarshal.AsSpan(list97); + index3 = 0; + span97[index3] = null; + index3++; + span97[index3] = null; + index3++; + span97[index3] = null; + index3++; + span97[index3] = null; + index3++; + span97[index3] = null; + index3++; + span97[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list97; reference77 = questStep6; - ref QuestStep reference78 = ref span32[4]; + num2++; + ref QuestStep reference78 = ref span93[num2]; QuestStep obj72 = new QuestStep(EInteractionType.Interact, 2005719u, new Vector3(527.0923f, -4.287842f, -84.916504f), 400) { Fly = true }; - num3 = 6; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - Span span37 = CollectionsMarshal.AsSpan(list98); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list98 = new List(index3); + CollectionsMarshal.SetCount(list98, index3); + Span span98 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span98[num3] = null; + num3++; + span98[num3] = null; + num3++; + span98[num3] = null; + num3++; + span98[num3] = null; + num3++; + span98[num3] = null; + num3++; + span98[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj72.CompletionQuestVariablesFlags = list98; reference78 = obj72; obj68.Steps = list93; reference73 = obj68; - ref QuestSequence reference79 = ref span31[2]; + num++; + ref QuestSequence reference79 = ref span91[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -117080,7 +141059,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012085u, new Vector3(286.88477f, 14.36517f, 645.1666f), 400) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012085u, new Vector3(286.88477f, 14.36517f, 645.1666f), 400) { Fly = true }; @@ -117097,13 +141078,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -117111,18 +141095,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, null, new Vector3(-6.1052914f, -20.632738f, 181.941f), 400) { StopDistance = 0.25f, @@ -117132,12 +141121,15 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 3999u; + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = 3999u; obj3.KillEnemyDataIds = list5; reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -117145,18 +141137,23 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1014290u, new Vector3(-6.302063f, -20.660929f, 181.75012f), 400); + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.Interact, 1014290u, new Vector3(-6.302063f, -20.660929f, 181.75012f), 400); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014293u, new Vector3(-106.889465f, 36.394444f, 186.1753f), 400) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014293u, new Vector3(-106.889465f, 36.394444f, 186.1753f), 400) { Fly = true, NextQuestId = new QuestId(1864) @@ -117170,13 +141167,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "liza"; + Span span8 = CollectionsMarshal.AsSpan(list8); + index = 0; + span8[index] = "liza"; questRoot2.Author = list8; - num = 6; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span2 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span2[0]; + index = 6; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + Span span9 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span9[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -117184,27 +141184,33 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014293u, new Vector3(-106.889465f, 36.394444f, 186.1753f), 400) + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014293u, new Vector3(-106.889465f, 36.394444f, 186.1753f), 400) { Fly = true }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[1]; + num++; + ref QuestSequence reference7 = ref span9[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1014294u, new Vector3(-369.64984f, 30.292116f, 423.0868f), 400) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.Interact, 1014294u, new Vector3(-369.64984f, 30.292116f, 423.0868f), 400) { Fly = true }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span2[2]; + num++; + ref QuestSequence reference8 = ref span9[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -117212,33 +141218,41 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list12)[0]; + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + ref QuestStep reference9 = ref span12[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(-271.42133f, 41.099045f, 241.92078f), 400) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 4076u; + index3 = 1; + List list13 = new List(index3); + CollectionsMarshal.SetCount(list13, index3); + Span span13 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span13[num3] = 4076u; obj9.KillEnemyDataIds = list13; reference9 = obj9; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference10 = ref span2[3]; + num++; + ref QuestSequence reference10 = ref span9[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1014297u, new Vector3(-271.44275f, 41.099045f, 242.20642f), 400); + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.Interact, 1014297u, new Vector3(-271.44275f, 41.099045f, 242.20642f), 400); obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[4]; + num++; + ref QuestSequence reference11 = ref span9[num]; QuestSequence obj11 = new QuestSequence { Sequence = 4 @@ -117246,21 +141260,26 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1014294u, new Vector3(-369.64984f, 30.292116f, 423.0868f), 400) + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.Interact, 1014294u, new Vector3(-369.64984f, 30.292116f, 423.0868f), 400) { Fly = true }; obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference12 = ref span2[5]; + num++; + ref QuestSequence reference12 = ref span9[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014300u, new Vector3(-696.34546f, 79f, 269.00122f), 400) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014300u, new Vector3(-696.34546f, 79f, 269.00122f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -117275,13 +141294,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "liza"; questRoot3.Author = list17; - num = 3; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span3 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span3[0]; + index = 3; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span18[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -117289,27 +141311,33 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014300u, new Vector3(-696.34546f, 79f, 269.00122f), 400) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014300u, new Vector3(-696.34546f, 79f, 269.00122f), 400) { Fly = true }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span3[1]; + num++; + ref QuestSequence reference14 = ref span18[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1014303u, new Vector3(-811.8868f, 83.29895f, 219.3789f), 400) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.Interact, 1014303u, new Vector3(-811.8868f, 83.29895f, 219.3789f), 400) { Fly = true }; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span3[2]; + num++; + ref QuestSequence reference15 = ref span18[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -117317,7 +141345,9 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014304u, new Vector3(-471.7937f, 39.90609f, 156.2981f), 400) + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span21[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014304u, new Vector3(-471.7937f, 39.90609f, 156.2981f), 400) { Fly = true, NextQuestId = new QuestId(1866) @@ -117331,29 +141361,35 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + Span span22 = CollectionsMarshal.AsSpan(list22); + index = 0; + span22[index] = "liza"; questRoot4.Author = list22; - num = 3; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span4 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference16 = ref span4[0]; + index = 3; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + Span span23 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference16 = ref span23[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span5 = CollectionsMarshal.AsSpan(list24); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-662.4473f, 73f, 172.12396f), 400) + index2 = 2; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-662.4473f, 73f, 172.12396f), 400) { Fly = true }; - span5[1] = new QuestStep(EInteractionType.AcceptQuest, 1014307u, new Vector3(-661.40234f, 73f, 171.03833f), 400); + num2++; + span24[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014307u, new Vector3(-661.40234f, 73f, 171.03833f), 400); obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference17 = ref span4[1]; + num++; + ref QuestSequence reference17 = ref span23[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -117361,8 +141397,9 @@ public static class AssemblyQuestLoader num2 = 3; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span6 = CollectionsMarshal.AsSpan(list25); - ref QuestStep reference18 = ref span6[0]; + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + ref QuestStep reference18 = ref span25[index2]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(-611.016f, 81f, 142.83911f), 400) { Fly = true, @@ -117371,21 +141408,30 @@ public static class AssemblyQuestLoader num3 = 1; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = 4045u; + Span span26 = CollectionsMarshal.AsSpan(list26); + index3 = 0; + span26[index3] = 4045u; obj18.KillEnemyDataIds = list26; - num3 = 6; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - Span span7 = CollectionsMarshal.AsSpan(list27); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list27 = new List(index3); + CollectionsMarshal.SetCount(list27, index3); + Span span27 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj18.CompletionQuestVariablesFlags = list27; reference18 = obj18; - ref QuestStep reference19 = ref span6[1]; + index2++; + ref QuestStep reference19 = ref span25[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(-627.9241f, 81f, 98.83264f), 400) { Fly = true, @@ -117394,21 +141440,30 @@ public static class AssemblyQuestLoader num3 = 1; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = 4045u; + Span span28 = CollectionsMarshal.AsSpan(list28); + index3 = 0; + span28[index3] = 4045u; obj19.KillEnemyDataIds = list28; - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span8 = CollectionsMarshal.AsSpan(list29); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj19.CompletionQuestVariablesFlags = list29; reference19 = obj19; - ref QuestStep reference20 = ref span6[2]; + index2++; + ref QuestStep reference20 = ref span25[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(-579.05023f, 80.999985f, 101.69408f), 400) { Fly = true, @@ -117417,36 +141472,47 @@ public static class AssemblyQuestLoader num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = 4045u; + Span span30 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span30[index3] = 4045u; obj20.KillEnemyDataIds = list30; - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span9 = CollectionsMarshal.AsSpan(list31); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj20.CompletionQuestVariablesFlags = list31; reference20 = obj20; obj17.Steps = list25; reference17 = obj17; - ref QuestSequence reference21 = ref span4[2]; + num++; + ref QuestSequence reference21 = ref span23[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - Span span10 = CollectionsMarshal.AsSpan(list32); - span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-662.4473f, 73f, 172.12396f), 400) + index2 = 2; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-662.4473f, 73f, 172.12396f), 400) { Fly = true }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1014307u, new Vector3(-661.40234f, 73f, 171.03833f), 400) + num2++; + span32[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014307u, new Vector3(-661.40234f, 73f, 171.03833f), 400) { NextQuestId = new QuestId(1867) }; @@ -117459,13 +141525,16 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; + Span span33 = CollectionsMarshal.AsSpan(list33); + index = 0; + span33[index] = "liza"; questRoot5.Author = list33; - num = 3; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span11 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference22 = ref span11[0]; + index = 3; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + Span span34 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference22 = ref span34[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -117473,24 +141542,28 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span12 = CollectionsMarshal.AsSpan(list35); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-745.7825f, 73f, 317.39563f), 400) + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-745.7825f, 73f, 317.39563f), 400) { Fly = true }; - span12[1] = new QuestStep(EInteractionType.AcceptQuest, 1014308u, new Vector3(-746.12036f, 73f, 318.7456f), 400); + index2++; + span35[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014308u, new Vector3(-746.12036f, 73f, 318.7456f), 400); obj22.Steps = list35; reference22 = obj22; - ref QuestSequence reference23 = ref span11[1]; + num++; + ref QuestSequence reference23 = ref span34[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span13 = CollectionsMarshal.AsSpan(list36); - ref QuestStep reference24 = ref span13[0]; + index2 = 3; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + ref QuestStep reference24 = ref span36[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, null, new Vector3(-723.45496f, 81f, 378.70322f), 400) { Fly = true, @@ -117499,21 +141572,30 @@ public static class AssemblyQuestLoader num3 = 1; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = 4045u; + Span span37 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span37[index3] = 4045u; obj24.KillEnemyDataIds = list37; - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span14 = CollectionsMarshal.AsSpan(list38); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj24.CompletionQuestVariablesFlags = list38; reference24 = obj24; - ref QuestStep reference25 = ref span13[1]; + num2++; + ref QuestStep reference25 = ref span36[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, null, new Vector3(-722.5188f, 80.999985f, 427.1239f), 400) { Fly = true, @@ -117522,21 +141604,30 @@ public static class AssemblyQuestLoader num3 = 1; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = 4045u; + Span span39 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span39[index3] = 4045u; obj25.KillEnemyDataIds = list39; - num3 = 6; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span15 = CollectionsMarshal.AsSpan(list40); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + Span span40 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj25.CompletionQuestVariablesFlags = list40; reference25 = obj25; - ref QuestStep reference26 = ref span13[2]; + num2++; + ref QuestStep reference26 = ref span36[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(-765.2328f, 81f, 406.13608f), 400) { Fly = true, @@ -117545,23 +141636,32 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = 4045u; + Span span41 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span41[index3] = 4045u; obj26.KillEnemyDataIds = list41; - num3 = 6; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span16 = CollectionsMarshal.AsSpan(list42); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list42 = new List(index3); + CollectionsMarshal.SetCount(list42, index3); + Span span42 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj26.CompletionQuestVariablesFlags = list42; reference26 = obj26; obj23.Steps = list36; reference23 = obj23; - ref QuestSequence reference27 = ref span11[2]; + num++; + ref QuestSequence reference27 = ref span34[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -117569,12 +141669,14 @@ public static class AssemblyQuestLoader num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span17 = CollectionsMarshal.AsSpan(list43); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-745.7825f, 73f, 317.39563f), 400) + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-745.7825f, 73f, 317.39563f), 400) { Fly = true }; - span17[1] = new QuestStep(EInteractionType.CompleteQuest, 1014308u, new Vector3(-746.12036f, 73f, 318.7456f), 400) + index2++; + span43[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014308u, new Vector3(-746.12036f, 73f, 318.7456f), 400) { NextQuestId = new QuestId(1868) }; @@ -117587,27 +141689,33 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + Span span44 = CollectionsMarshal.AsSpan(list44); + index = 0; + span44[index] = "liza"; questRoot6.Author = list44; - num = 4; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span18 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference28 = ref span18[0]; + index = 4; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + Span span45 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference28 = ref span45[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014300u, new Vector3(-696.34546f, 79f, 269.00122f), 400) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014300u, new Vector3(-696.34546f, 79f, 269.00122f), 400) { Fly = true }; obj28.Steps = list46; reference28 = obj28; - ref QuestSequence reference29 = ref span18[1]; + num++; + ref QuestSequence reference29 = ref span45[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 @@ -117615,7 +141723,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list47)[0]; + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + ref QuestStep reference30 = ref span47[index2]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, 1014310u, new Vector3(-713.80176f, 343f, 238.94104f), 400) { Fly = true, @@ -117624,26 +141734,32 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = 4493u; + Span span48 = CollectionsMarshal.AsSpan(list48); + index3 = 0; + span48[index3] = 4493u; obj30.KillEnemyDataIds = list48; reference30 = obj30; obj29.Steps = list47; reference29 = obj29; - ref QuestSequence reference31 = ref span18[2]; + num++; + ref QuestSequence reference31 = ref span45[num]; QuestSequence obj31 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1014311u, new Vector3(-711.17725f, 342.0005f, 236.3164f), 400) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.Interact, 1014311u, new Vector3(-711.17725f, 342.0005f, 236.3164f), 400) { StopDistance = 5f }; obj31.Steps = list49; reference31 = obj31; - ref QuestSequence reference32 = ref span18[3]; + num++; + ref QuestSequence reference32 = ref span45[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -117651,7 +141767,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -117666,21 +141784,26 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "pot0to"; + Span span51 = CollectionsMarshal.AsSpan(list51); + index = 0; + span51[index] = "pot0to"; questRoot7.Author = list51; - num = 3; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span19 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference33 = ref span19[0]; + index = 3; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + Span span52 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference33 = ref span52[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list53)[0]; + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref QuestStep reference34 = ref span53[num2]; QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1012181u, new Vector3(-248.55426f, -20.034918f, -90.98956f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -117692,17 +141815,20 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = 419; + index3 = 1; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + Span span54 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span54[num3] = 419; skipAetheryteCondition.InTerritory = list54; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj34.SkipConditions = skipConditions; reference34 = obj34; obj33.Steps = list53; reference33 = obj33; - ref QuestSequence reference35 = ref span19[1]; + num++; + ref QuestSequence reference35 = ref span52[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -117710,8 +141836,9 @@ public static class AssemblyQuestLoader num2 = 8; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span20 = CollectionsMarshal.AsSpan(list55); - span20[0] = new QuestStep(EInteractionType.Interact, 1012263u, new Vector3(-129.4118f, 14.803129f, -127.91644f), 419) + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.Interact, 1012263u, new Vector3(-129.4118f, 14.803129f, -127.91644f), 419) { AethernetShortcut = new AethernetShortcut { @@ -117719,32 +141846,42 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSaintReymanaudsCathedral } }; - span20[1] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + index2++; + span55[index2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427 }; - span20[2] = new QuestStep(EInteractionType.Interact, 1012262u, new Vector3(-10.330383f, 0f, 8.194031f), 427); - span20[3] = new QuestStep(EInteractionType.Interact, 1012264u, new Vector3(-6.790344f, 0.024999565f, 3.829956f), 427); - span20[4] = new QuestStep(EInteractionType.Interact, 2006245u, new Vector3(-7.675354f, 0.83917236f, -2.9145508f), 427); - span20[5] = new QuestStep(EInteractionType.Interact, 1012265u, new Vector3(-2.1820679f, 0.289917f, -5.508545f), 427); - span20[6] = new QuestStep(EInteractionType.Interact, 2006244u, new Vector3(11.093262f, 1.3884888f, -7.8584595f), 427); - span20[7] = new QuestStep(EInteractionType.Interact, 2006243u, new Vector3(7.2174683f, 1.4190674f, 1.083313f), 427); + index2++; + span55[index2] = new QuestStep(EInteractionType.Interact, 1012262u, new Vector3(-10.330383f, 0f, 8.194031f), 427); + index2++; + span55[index2] = new QuestStep(EInteractionType.Interact, 1012264u, new Vector3(-6.790344f, 0.024999565f, 3.829956f), 427); + index2++; + span55[index2] = new QuestStep(EInteractionType.Interact, 2006245u, new Vector3(-7.675354f, 0.83917236f, -2.9145508f), 427); + index2++; + span55[index2] = new QuestStep(EInteractionType.Interact, 1012265u, new Vector3(-2.1820679f, 0.289917f, -5.508545f), 427); + index2++; + span55[index2] = new QuestStep(EInteractionType.Interact, 2006244u, new Vector3(11.093262f, 1.3884888f, -7.8584595f), 427); + index2++; + span55[index2] = new QuestStep(EInteractionType.Interact, 2006243u, new Vector3(7.2174683f, 1.4190674f, 1.083313f), 427); obj35.Steps = list55; reference35 = obj35; - ref QuestSequence reference36 = ref span19[2]; + num++; + ref QuestSequence reference36 = ref span52[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span21 = CollectionsMarshal.AsSpan(list56); - span21[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) + index2 = 2; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) { TargetTerritoryId = (ushort)419 }; - ref QuestStep reference37 = ref span21[1]; + num2++; + ref QuestStep reference37 = ref span56[num2]; QuestStep obj37 = new QuestStep(EInteractionType.CompleteQuest, 1012181u, new Vector3(-248.55426f, -20.034918f, -90.98956f), 419) { AethernetShortcut = new AethernetShortcut @@ -117756,7 +141893,9 @@ public static class AssemblyQuestLoader num3 = 1; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = new DialogueChoice + Span span57 = CollectionsMarshal.AsSpan(list57); + index3 = 0; + span57[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNZ601_01869_Q1_000_000"), @@ -117774,13 +141913,16 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "Thaksin"; + Span span58 = CollectionsMarshal.AsSpan(list58); + index = 0; + span58[index] = "Thaksin"; questRoot8.Author = list58; - num = 6; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span22 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference38 = ref span22[0]; + index = 6; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + Span span59 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference38 = ref span59[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -117788,63 +141930,88 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419); + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419); obj38.Steps = list60; reference38 = obj38; - ref QuestSequence reference39 = ref span22[1]; + num++; + ref QuestSequence reference39 = ref span59[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - Span span23 = CollectionsMarshal.AsSpan(list61); - ref QuestStep reference40 = ref span23[0]; + index2 = 3; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + ref QuestStep reference40 = ref span61[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2006246u, new Vector3(-218.40247f, -16.037292f, -34.683777f), 419); - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span24 = CollectionsMarshal.AsSpan(list62); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list62 = new List(index3); + CollectionsMarshal.SetCount(list62, index3); + Span span62 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list62; reference40 = questStep; - ref QuestStep reference41 = ref span23[1]; + num2++; + ref QuestStep reference41 = ref span61[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2006247u, new Vector3(-229.23633f, -20.035156f, -83.05487f), 419); num3 = 6; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span25 = CollectionsMarshal.AsSpan(list63); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span63 = CollectionsMarshal.AsSpan(list63); + index3 = 0; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list63; reference41 = questStep2; - ref QuestStep reference42 = ref span23[2]; + num2++; + ref QuestStep reference42 = ref span61[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2006248u, new Vector3(-252.1554f, -20.035156f, -57.66388f), 419); - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span26 = CollectionsMarshal.AsSpan(list64); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list64 = new List(index3); + CollectionsMarshal.SetCount(list64, index3); + Span span64 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list64; reference42 = questStep3; obj39.Steps = list61; reference39 = obj39; - ref QuestSequence reference43 = ref span22[2]; + num++; + ref QuestSequence reference43 = ref span59[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -117852,18 +142019,23 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419); + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419); obj40.Steps = list65; reference43 = obj40; - ref QuestSequence reference44 = ref span22[3]; + num++; + ref QuestSequence reference44 = ref span59[num]; QuestSequence obj41 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1014721u, new Vector3(119.31018f, -12.634913f, -13.626343f), 419) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.Interact, 1014721u, new Vector3(119.31018f, -12.634913f, -13.626343f), 419) { AethernetShortcut = new AethernetShortcut { @@ -117873,7 +142045,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list66; reference44 = obj41; - ref QuestSequence reference45 = ref span22[4]; + num++; + ref QuestSequence reference45 = ref span59[num]; QuestSequence obj42 = new QuestSequence { Sequence = 4 @@ -117881,18 +142054,23 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 2006330u, new Vector3(118.791504f, -11.6427f, -13.351685f), 419); + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.Interact, 2006330u, new Vector3(118.791504f, -11.6427f, -13.351685f), 419); obj42.Steps = list67; reference45 = obj42; - ref QuestSequence reference46 = ref span22[5]; + num++; + ref QuestSequence reference46 = ref span59[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) { AethernetShortcut = new AethernetShortcut { @@ -117909,13 +142087,16 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "liza"; + Span span69 = CollectionsMarshal.AsSpan(list69); + index = 0; + span69[index] = "liza"; questRoot9.Author = list69; - num = 6; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span27 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference47 = ref span27[0]; + index = 6; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + Span span70 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference47 = ref span70[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -117923,24 +142104,30 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); obj44.Steps = list71; reference47 = obj44; - ref QuestSequence reference48 = ref span27[1]; + num++; + ref QuestSequence reference48 = ref span70[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 2005821u, new Vector3(16.159302f, 82.1698f, -322.89618f), 400) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.Interact, 2005821u, new Vector3(16.159302f, 82.1698f, -322.89618f), 400) { StopDistance = 4f }; obj45.Steps = list72; reference48 = obj45; - ref QuestSequence reference49 = ref span27[2]; + num++; + ref QuestSequence reference49 = ref span70[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -117948,22 +142135,27 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Interact, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.Interact, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) { StopDistance = 1f, Fly = true }; obj46.Steps = list73; reference49 = obj46; - ref QuestSequence reference50 = ref span27[3]; + num++; + ref QuestSequence reference50 = ref span70[num]; QuestSequence obj47 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -117974,7 +142166,8 @@ public static class AssemblyQuestLoader }; obj47.Steps = list74; reference50 = obj47; - ref QuestSequence reference51 = ref span27[4]; + num++; + ref QuestSequence reference51 = ref span70[num]; QuestSequence obj48 = new QuestSequence { Sequence = 4 @@ -117982,26 +142175,31 @@ public static class AssemblyQuestLoader num2 = 2; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span28 = CollectionsMarshal.AsSpan(list75); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; - span28[1] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + index2++; + span75[index2] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f }; obj48.Steps = list75; reference51 = obj48; - ref QuestSequence reference52 = ref span27[5]; + num++; + ref QuestSequence reference52 = ref span70[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014314u, new Vector3(12.100342f, 81.8406f, -318.0133f), 400) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014314u, new Vector3(12.100342f, 81.8406f, -318.0133f), 400) { Fly = true }; @@ -118014,13 +142212,16 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "liza"; + Span span77 = CollectionsMarshal.AsSpan(list77); + index = 0; + span77[index] = "liza"; questRoot10.Author = list77; - num = 4; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span29 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference53 = ref span29[0]; + index = 4; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + Span span78 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference53 = ref span78[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -118028,7 +142229,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list79)[0]; + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + ref QuestStep reference54 = ref span79[index2]; QuestStep obj51 = new QuestStep(EInteractionType.AcceptQuest, 1013557u, new Vector3(9.6588745f, 15.96505f, -7.4921875f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -118046,22 +142249,27 @@ public static class AssemblyQuestLoader num3 = 1; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = 419; + Span span80 = CollectionsMarshal.AsSpan(list80); + index3 = 0; + span80[index3] = 419; obj52.InTerritory = list80; skipConditions2.AetheryteShortcutIf = obj52; obj51.SkipConditions = skipConditions2; reference54 = obj51; obj50.Steps = list79; reference53 = obj50; - ref QuestSequence reference55 = ref span29[1]; + num++; + ref QuestSequence reference55 = ref span78[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AethernetShortcut = new AethernetShortcut { @@ -118071,7 +142279,8 @@ public static class AssemblyQuestLoader }; obj53.Steps = list81; reference55 = obj53; - ref QuestSequence reference56 = ref span29[2]; + num++; + ref QuestSequence reference56 = ref span78[num]; QuestSequence obj54 = new QuestSequence { Sequence = 2 @@ -118079,21 +142288,26 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1013559u, new Vector3(129.22852f, 24.397108f, -1.9379272f), 418) + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.Interact, 1013559u, new Vector3(129.22852f, 24.397108f, -1.9379272f), 418) { StopDistance = 5f }; obj54.Steps = list82; reference56 = obj54; - ref QuestSequence reference57 = ref span29[3]; + num++; + ref QuestSequence reference57 = ref span78[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -118108,13 +142322,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "Thaksin"; + Span span84 = CollectionsMarshal.AsSpan(list84); + index = 0; + span84[index] = "Thaksin"; questRoot11.Author = list84; - num = 3; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span30 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference58 = ref span30[0]; + index = 3; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference58 = ref span85[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -118122,24 +142339,30 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014718u, new Vector3(-29.526245f, 11.965078f, 48.355713f), 419); + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014718u, new Vector3(-29.526245f, 11.965078f, 48.355713f), 419); obj56.Steps = list86; reference58 = obj56; - ref QuestSequence reference59 = ref span30[1]; + num++; + ref QuestSequence reference59 = ref span85[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj57.Steps = list87; reference59 = obj57; - ref QuestSequence reference60 = ref span30[2]; + num++; + ref QuestSequence reference60 = ref span85[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -118147,8 +142370,9 @@ public static class AssemblyQuestLoader num2 = 2; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span31 = CollectionsMarshal.AsSpan(list88); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-110.26132f, 153.61101f, 10.394781f), 397) + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-110.26132f, 153.61101f, 10.394781f), 397) { Fly = true, SkipConditions = new SkipConditions @@ -118159,7 +142383,8 @@ public static class AssemblyQuestLoader } } }; - span31[1] = new QuestStep(EInteractionType.CompleteQuest, 1014719u, new Vector3(-293.6294f, 125.4389f, -19.058533f), 397) + index2++; + span88[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014719u, new Vector3(-293.6294f, 125.4389f, -19.058533f), 397) { Fly = true }; @@ -118172,24 +142397,30 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = "JerryWester"; + Span span89 = CollectionsMarshal.AsSpan(list89); + index = 0; + span89[index] = "JerryWester"; questRoot12.Author = list89; - num = 3; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - Span span32 = CollectionsMarshal.AsSpan(list90); - ref QuestSequence reference61 = ref span32[0]; + index = 3; + List list90 = new List(index); + CollectionsMarshal.SetCount(list90, index); + Span span90 = CollectionsMarshal.AsSpan(list90); + num = 0; + ref QuestSequence reference61 = ref span90[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014720u, new Vector3(13.809326f, 15.96505f, -13.870483f), 419); + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span91[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014720u, new Vector3(13.809326f, 15.96505f, -13.870483f), 419); obj59.Steps = list91; reference61 = obj59; - ref QuestSequence reference62 = ref span32[1]; + num++; + ref QuestSequence reference62 = ref span90[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -118197,21 +142428,26 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj60.Steps = list92; reference62 = obj60; - ref QuestSequence reference63 = ref span32[2]; + num++; + ref QuestSequence reference63 = ref span90[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); obj61.Steps = list93; reference63 = obj61; questRoot12.QuestSequence = list90; @@ -118221,13 +142457,16 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "liza"; + Span span94 = CollectionsMarshal.AsSpan(list94); + index = 0; + span94[index] = "liza"; questRoot13.Author = list94; - num = 3; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span33 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference64 = ref span33[0]; + index = 3; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + Span span95 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference64 = ref span95[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -118235,93 +142474,124 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); obj62.Steps = list96; reference64 = obj62; - ref QuestSequence reference65 = ref span33[1]; + num++; + ref QuestSequence reference65 = ref span95[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - Span span34 = CollectionsMarshal.AsSpan(list97); - ref QuestStep reference66 = ref span34[0]; + index2 = 3; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + ref QuestStep reference66 = ref span97[num2]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, null, new Vector3(-40.84487f, 62.87995f, -293.59937f), 400) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = 4044u; + index3 = 1; + List list98 = new List(index3); + CollectionsMarshal.SetCount(list98, index3); + Span span98 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span98[num3] = 4044u; obj64.KillEnemyDataIds = list98; num3 = 6; List list99 = new List(num3); CollectionsMarshal.SetCount(list99, num3); - Span span35 = CollectionsMarshal.AsSpan(list99); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span99 = CollectionsMarshal.AsSpan(list99); + index3 = 0; + span99[index3] = null; + index3++; + span99[index3] = null; + index3++; + span99[index3] = null; + index3++; + span99[index3] = null; + index3++; + span99[index3] = null; + index3++; + span99[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj64.CompletionQuestVariablesFlags = list99; reference66 = obj64; - ref QuestStep reference67 = ref span34[1]; + num2++; + ref QuestStep reference67 = ref span97[num2]; QuestStep obj65 = new QuestStep(EInteractionType.Combat, null, new Vector3(-49.8887f, 76.75615f, -348.67075f), 400) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = 4044u; + index3 = 1; + List list100 = new List(index3); + CollectionsMarshal.SetCount(list100, index3); + Span span100 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span100[num3] = 4044u; obj65.KillEnemyDataIds = list100; num3 = 6; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span36 = CollectionsMarshal.AsSpan(list101); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span101 = CollectionsMarshal.AsSpan(list101); + index3 = 0; + span101[index3] = null; + index3++; + span101[index3] = null; + index3++; + span101[index3] = null; + index3++; + span101[index3] = null; + index3++; + span101[index3] = null; + index3++; + span101[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj65.CompletionQuestVariablesFlags = list101; reference67 = obj65; - ref QuestStep reference68 = ref span34[2]; + num2++; + ref QuestStep reference68 = ref span97[num2]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, null, new Vector3(-10.931383f, 76.75615f, -249.3747f), 400) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = 4044u; + index3 = 1; + List list102 = new List(index3); + CollectionsMarshal.SetCount(list102, index3); + Span span102 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span102[num3] = 4044u; obj66.KillEnemyDataIds = list102; num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - Span span37 = CollectionsMarshal.AsSpan(list103); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span103 = CollectionsMarshal.AsSpan(list103); + index3 = 0; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj66.CompletionQuestVariablesFlags = list103; reference68 = obj66; obj63.Steps = list97; reference65 = obj63; - ref QuestSequence reference69 = ref span33[2]; + num++; + ref QuestSequence reference69 = ref span95[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -118329,7 +142599,9 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) { Fly = true, NextQuestId = new QuestId(1881) @@ -118343,24 +142615,30 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - CollectionsMarshal.AsSpan(list105)[0] = "liza"; + Span span105 = CollectionsMarshal.AsSpan(list105); + index = 0; + span105[index] = "liza"; questRoot14.Author = list105; - num = 4; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - Span span38 = CollectionsMarshal.AsSpan(list106); - ref QuestSequence reference70 = ref span38[0]; + index = 4; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + Span span106 = CollectionsMarshal.AsSpan(list106); + num = 0; + ref QuestSequence reference70 = ref span106[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); obj68.Steps = list107; reference70 = obj68; - ref QuestSequence reference71 = ref span38[1]; + num++; + ref QuestSequence reference71 = ref span106[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 @@ -118368,7 +142646,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) { StopDistance = 0.25f, Fly = true, @@ -118376,29 +142656,35 @@ public static class AssemblyQuestLoader }; obj69.Steps = list108; reference71 = obj69; - ref QuestSequence reference72 = ref span38[2]; + num++; + ref QuestSequence reference72 = ref span106[num]; QuestSequence obj70 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - ref QuestStep reference73 = ref CollectionsMarshal.AsSpan(list109)[0]; + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + ref QuestStep reference73 = ref span109[num2]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, null, new Vector3(-734.0618f, 258.66254f, -178.1613f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = 4044u; + index3 = 1; + List list110 = new List(index3); + CollectionsMarshal.SetCount(list110, index3); + Span span110 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span110[num3] = 4044u; obj71.KillEnemyDataIds = list110; reference73 = obj71; obj70.Steps = list109; reference72 = obj70; - ref QuestSequence reference74 = ref span38[3]; + num++; + ref QuestSequence reference74 = ref span106[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -118406,7 +142692,9 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) + Span span111 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span111[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) { StopDistance = 0.25f, Fly = true, @@ -118421,24 +142709,30 @@ public static class AssemblyQuestLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - CollectionsMarshal.AsSpan(list112)[0] = "liza"; + Span span112 = CollectionsMarshal.AsSpan(list112); + index = 0; + span112[index] = "liza"; questRoot15.Author = list112; - num = 3; - List list113 = new List(num); - CollectionsMarshal.SetCount(list113, num); - Span span39 = CollectionsMarshal.AsSpan(list113); - ref QuestSequence reference75 = ref span39[0]; + index = 3; + List list113 = new List(index); + CollectionsMarshal.SetCount(list113, index); + Span span113 = CollectionsMarshal.AsSpan(list113); + num = 0; + ref QuestSequence reference75 = ref span113[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013567u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013567u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); obj73.Steps = list114; reference75 = obj73; - ref QuestSequence reference76 = ref span39[1]; + num++; + ref QuestSequence reference76 = ref span113[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -118446,7 +142740,9 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - ref QuestStep reference77 = ref CollectionsMarshal.AsSpan(list115)[0]; + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + ref QuestStep reference77 = ref span115[index2]; QuestStep obj75 = new QuestStep(EInteractionType.Combat, null, new Vector3(-131.11111f, -64.89958f, -321.4496f), 400) { StopDistance = 0.5f, @@ -118455,20 +142751,25 @@ public static class AssemblyQuestLoader num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = 4505u; + Span span116 = CollectionsMarshal.AsSpan(list116); + index3 = 0; + span116[index3] = 4505u; obj75.KillEnemyDataIds = list116; reference77 = obj75; obj74.Steps = list115; reference76 = obj74; - ref QuestSequence reference78 = ref span39[2]; + num++; + ref QuestSequence reference78 = ref span113[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) { Fly = true, NextQuestId = new QuestId(1871) @@ -118482,13 +142783,16 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "liza"; questRoot16.Author = list118; - num = 4; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span40 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference79 = ref span40[0]; + index = 4; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference79 = ref span119[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -118496,25 +142800,31 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); obj77.Steps = list120; reference79 = obj77; - ref QuestSequence reference80 = ref span40[1]; + num++; + ref QuestSequence reference80 = ref span119[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span121[num2] = new QuestStep(EInteractionType.Interact, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) { StopDistance = 1f, Fly = true }; obj78.Steps = list121; reference80 = obj78; - ref QuestSequence reference81 = ref span40[2]; + num++; + ref QuestSequence reference81 = ref span119[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -118522,16 +142832,20 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list122)[0]; + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + ref QuestStep reference82 = ref span122[index2]; QuestStep obj80 = new QuestStep(EInteractionType.Combat, null, new Vector3(315.91586f, 234.0008f, -617.9445f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - ref ComplexCombatData reference83 = ref CollectionsMarshal.AsSpan(list123)[0]; + index3 = 1; + List list123 = new List(index3); + CollectionsMarshal.SetCount(list123, index3); + Span span123 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + ref ComplexCombatData reference83 = ref span123[num3]; ComplexCombatData obj81 = new ComplexCombatData { DataId = 4469u, @@ -118540,28 +142854,37 @@ public static class AssemblyQuestLoader int num4 = 6; List list124 = new List(num4); CollectionsMarshal.SetCount(list124, num4); - Span span41 = CollectionsMarshal.AsSpan(list124); - span41[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = null; + Span span124 = CollectionsMarshal.AsSpan(list124); + int num5 = 0; + span124[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span124[num5] = null; + num5++; + span124[num5] = null; + num5++; + span124[num5] = null; + num5++; + span124[num5] = null; + num5++; + span124[num5] = null; obj81.CompletionQuestVariablesFlags = list124; reference83 = obj81; obj80.ComplexCombatData = list123; reference82 = obj80; obj79.Steps = list122; reference81 = obj79; - ref QuestSequence reference84 = ref span40[3]; + num++; + ref QuestSequence reference84 = ref span119[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span125[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) { StopDistance = 1f, Fly = true, @@ -118576,13 +142899,16 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "liza"; + Span span126 = CollectionsMarshal.AsSpan(list126); + index = 0; + span126[index] = "liza"; questRoot17.Author = list126; - num = 4; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span42 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference85 = ref span42[0]; + index = 4; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + Span span127 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference85 = ref span127[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -118590,19 +142916,23 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400); + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span128[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400); obj83.Steps = list128; reference85 = obj83; - ref QuestSequence reference86 = ref span42[1]; + num++; + ref QuestSequence reference86 = ref span127[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - Span span43 = CollectionsMarshal.AsSpan(list129); - ref QuestStep reference87 = ref span43[0]; + index2 = 3; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + ref QuestStep reference87 = ref span129[num2]; QuestStep obj85 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(159.85898f, 212.64731f, -734.95905f), 400) { Fly = true @@ -118612,32 +142942,46 @@ public static class AssemblyQuestLoader num3 = 6; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span44 = CollectionsMarshal.AsSpan(list130); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span130 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span130[index3] = null; + index3++; + span130[index3] = null; + index3++; + span130[index3] = null; + index3++; + span130[index3] = null; + index3++; + span130[index3] = null; + index3++; + span130[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list130; skipConditions3.StepIf = skipStepConditions; obj85.SkipConditions = skipConditions3; reference87 = obj85; - ref QuestStep reference88 = ref span43[1]; + num2++; + ref QuestStep reference88 = ref span129[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2005805u, new Vector3(161.39453f, 212.6344f, -733.7301f), 400); - num3 = 6; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span45 = CollectionsMarshal.AsSpan(list131); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + Span span131 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list131; reference88 = questStep4; - ref QuestStep reference89 = ref span43[2]; + num2++; + ref QuestStep reference89 = ref span129[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 2005806u, new Vector3(110.52112f, 212.6344f, -785.15295f), 400) { Fly = true @@ -118645,18 +142989,25 @@ public static class AssemblyQuestLoader num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span46 = CollectionsMarshal.AsSpan(list132); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span132 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj86.CompletionQuestVariablesFlags = list132; reference89 = obj86; obj84.Steps = list129; reference86 = obj84; - ref QuestSequence reference90 = ref span42[2]; + num++; + ref QuestSequence reference90 = ref span127[num]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -118664,22 +143015,27 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.Interact, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) { StopDistance = 1f, Fly = true }; obj87.Steps = list133; reference90 = obj87; - ref QuestSequence reference91 = ref span42[3]; + num++; + ref QuestSequence reference91 = ref span127[num]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) { Fly = true, NextQuestId = new QuestId(1879) @@ -118693,13 +143049,16 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "liza"; + Span span135 = CollectionsMarshal.AsSpan(list135); + index = 0; + span135[index] = "liza"; questRoot18.Author = list135; - num = 5; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span47 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference92 = ref span47[0]; + index = 5; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + Span span136 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference92 = ref span136[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -118707,25 +143066,31 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400); + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400); obj89.Steps = list137; reference92 = obj89; - ref QuestSequence reference93 = ref span47[1]; + num++; + ref QuestSequence reference93 = ref span136[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.Interact, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400) { StopDistance = 0.25f, Fly = true }; obj90.Steps = list138; reference93 = obj90; - ref QuestSequence reference94 = ref span47[2]; + num++; + ref QuestSequence reference94 = ref span136[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -118733,16 +143098,20 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - ref QuestStep reference95 = ref CollectionsMarshal.AsSpan(list139)[0]; + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + ref QuestStep reference95 = ref span139[index2]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, null, new Vector3(-568.1701f, 258.0283f, -651.9808f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - CollectionsMarshal.AsSpan(list140)[0] = new ComplexCombatData + index3 = 1; + List list140 = new List(index3); + CollectionsMarshal.SetCount(list140, index3); + Span span140 = CollectionsMarshal.AsSpan(list140); + num3 = 0; + span140[num3] = new ComplexCombatData { DataId = 4044u, MinimumKillCount = 3u @@ -118751,35 +143120,46 @@ public static class AssemblyQuestLoader num3 = 6; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - Span span48 = CollectionsMarshal.AsSpan(list141); - span48[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = null; + Span span141 = CollectionsMarshal.AsSpan(list141); + index3 = 0; + span141[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span141[index3] = null; + index3++; + span141[index3] = null; + index3++; + span141[index3] = null; + index3++; + span141[index3] = null; + index3++; + span141[index3] = null; obj92.CompletionQuestVariablesFlags = list141; reference95 = obj92; obj91.Steps = list139; reference94 = obj91; - ref QuestSequence reference96 = ref span47[3]; + num++; + ref QuestSequence reference96 = ref span136[num]; QuestSequence obj93 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list142)[0]; + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + ref QuestStep reference97 = ref span142[num2]; QuestStep obj94 = new QuestStep(EInteractionType.Combat, null, new Vector3(-568.1701f, 258.0283f, -651.9808f), 400) { StopDistance = 100f, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = new ComplexCombatData + index3 = 1; + List list143 = new List(index3); + CollectionsMarshal.SetCount(list143, index3); + Span span143 = CollectionsMarshal.AsSpan(list143); + num3 = 0; + span143[num3] = new ComplexCombatData { DataId = 4044u, MinimumKillCount = 1u @@ -118788,7 +143168,8 @@ public static class AssemblyQuestLoader reference97 = obj94; obj93.Steps = list142; reference96 = obj93; - ref QuestSequence reference98 = ref span47[4]; + num++; + ref QuestSequence reference98 = ref span136[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -118796,7 +143177,9 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400) + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span144[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400) { StopDistance = 0.25f, Fly = true, @@ -118811,24 +143194,30 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "liza"; + Span span145 = CollectionsMarshal.AsSpan(list145); + index = 0; + span145[index] = "liza"; questRoot19.Author = list145; - num = 9; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span49 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference99 = ref span49[0]; + index = 9; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + Span span146 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference99 = ref span146[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400); + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400); obj96.Steps = list147; reference99 = obj96; - ref QuestSequence reference100 = ref span49[1]; + num++; + ref QuestSequence reference100 = ref span146[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -118836,8 +143225,9 @@ public static class AssemblyQuestLoader num2 = 3; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span50 = CollectionsMarshal.AsSpan(list148); - ref QuestStep reference101 = ref span50[0]; + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + ref QuestStep reference101 = ref span148[index2]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 2005812u, new Vector3(-757.4121f, 257.49585f, -702.57117f), 400) { Fly = true @@ -118845,33 +143235,47 @@ public static class AssemblyQuestLoader num3 = 6; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - Span span51 = CollectionsMarshal.AsSpan(list149); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span149 = CollectionsMarshal.AsSpan(list149); + index3 = 0; + span149[index3] = null; + index3++; + span149[index3] = null; + index3++; + span149[index3] = null; + index3++; + span149[index3] = null; + index3++; + span149[index3] = null; + index3++; + span149[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj98.CompletionQuestVariablesFlags = list149; reference101 = obj98; - ref QuestStep reference102 = ref span50[1]; + index2++; + ref QuestStep reference102 = ref span148[index2]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 2005811u, new Vector3(-815.4879f, 258.0758f, -674.9218f), 400) { Fly = true }; - num3 = 6; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - Span span52 = CollectionsMarshal.AsSpan(list150); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list150 = new List(index3); + CollectionsMarshal.SetCount(list150, index3); + Span span150 = CollectionsMarshal.AsSpan(list150); + num3 = 0; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj99.CompletionQuestVariablesFlags = list150; reference102 = obj99; - ref QuestStep reference103 = ref span50[2]; + index2++; + ref QuestStep reference103 = ref span148[index2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 2005813u, new Vector3(-788.0522f, 257.67908f, -644.1901f), 400) { Fly = true @@ -118879,33 +143283,43 @@ public static class AssemblyQuestLoader num3 = 6; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - Span span53 = CollectionsMarshal.AsSpan(list151); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span151 = CollectionsMarshal.AsSpan(list151); + index3 = 0; + span151[index3] = null; + index3++; + span151[index3] = null; + index3++; + span151[index3] = null; + index3++; + span151[index3] = null; + index3++; + span151[index3] = null; + index3++; + span151[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj100.CompletionQuestVariablesFlags = list151; reference103 = obj100; obj97.Steps = list148; reference100 = obj97; - ref QuestSequence reference104 = ref span49[2]; + num++; + ref QuestSequence reference104 = ref span146[num]; QuestSequence obj101 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.Interact, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400) { StopDistance = 0.25f, Fly = true }; obj101.Steps = list152; reference104 = obj101; - ref QuestSequence reference105 = ref span49[3]; + num++; + ref QuestSequence reference105 = ref span146[num]; QuestSequence obj102 = new QuestSequence { Sequence = 3 @@ -118913,40 +143327,51 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) { StopDistance = 0.25f, Fly = true }; obj102.Steps = list153; reference105 = obj102; - ref QuestSequence reference106 = ref span49[4]; + num++; + ref QuestSequence reference106 = ref span146[num]; QuestSequence obj103 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - Span span54 = CollectionsMarshal.AsSpan(list154); - ref QuestStep reference107 = ref span54[0]; + index2 = 3; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref QuestStep reference107 = ref span154[num2]; QuestStep obj104 = new QuestStep(EInteractionType.Interact, 2005814u, new Vector3(-755.9472f, 258.80823f, -207.72113f), 400) { Fly = true }; - num3 = 6; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span55 = CollectionsMarshal.AsSpan(list155); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list155 = new List(index3); + CollectionsMarshal.SetCount(list155, index3); + Span span155 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + span155[num3] = null; + num3++; + span155[num3] = null; + num3++; + span155[num3] = null; + num3++; + span155[num3] = null; + num3++; + span155[num3] = null; + num3++; + span155[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj104.CompletionQuestVariablesFlags = list155; reference107 = obj104; - ref QuestStep reference108 = ref span54[1]; + num2++; + ref QuestStep reference108 = ref span154[num2]; QuestStep obj105 = new QuestStep(EInteractionType.Interact, 2005816u, new Vector3(-698.024f, 258.28943f, -221.66785f), 400) { Fly = true @@ -118954,35 +143379,49 @@ public static class AssemblyQuestLoader num3 = 6; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span56 = CollectionsMarshal.AsSpan(list156); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span156 = CollectionsMarshal.AsSpan(list156); + index3 = 0; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj105.CompletionQuestVariablesFlags = list156; reference108 = obj105; - ref QuestStep reference109 = ref span54[2]; + num2++; + ref QuestStep reference109 = ref span154[num2]; QuestStep obj106 = new QuestStep(EInteractionType.Interact, 2005815u, new Vector3(-701.83875f, 258.53357f, -165.23999f), 400) { Fly = true }; - num3 = 6; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - Span span57 = CollectionsMarshal.AsSpan(list157); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list157 = new List(index3); + CollectionsMarshal.SetCount(list157, index3); + Span span157 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj106.CompletionQuestVariablesFlags = list157; reference109 = obj106; obj103.Steps = list154; reference106 = obj103; - ref QuestSequence reference110 = ref span49[5]; + num++; + ref QuestSequence reference110 = ref span146[num]; QuestSequence obj107 = new QuestSequence { Sequence = 5 @@ -118990,28 +143429,34 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) { StopDistance = 0.25f, Fly = true }; obj107.Steps = list158; reference110 = obj107; - ref QuestSequence reference111 = ref span49[6]; + num++; + ref QuestSequence reference111 = ref span146[num]; QuestSequence obj108 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1013567u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.Interact, 1013567u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) { Fly = true }; obj108.Steps = list159; reference111 = obj108; - ref QuestSequence reference112 = ref span49[7]; + num++; + ref QuestSequence reference112 = ref span146[num]; QuestSequence obj109 = new QuestSequence { Sequence = 7 @@ -119019,18 +143464,23 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 2005817u, new Vector3(16.159302f, 82.1698f, -322.89618f), 400); + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.Interact, 2005817u, new Vector3(16.159302f, 82.1698f, -322.89618f), 400); obj109.Steps = list160; reference112 = obj109; - ref QuestSequence reference113 = ref span49[8]; + num++; + ref QuestSequence reference113 = ref span146[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013567u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + Span span161 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span161[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013567u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) { NextQuestId = new QuestId(1880) }; @@ -119043,13 +143493,16 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "Thaksin"; + Span span162 = CollectionsMarshal.AsSpan(list162); + index = 0; + span162[index] = "Thaksin"; questRoot20.Author = list162; - num = 6; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span58 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference114 = ref span58[0]; + index = 6; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + Span span163 = CollectionsMarshal.AsSpan(list163); + num = 0; + ref QuestSequence reference114 = ref span163[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -119057,21 +143510,27 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span164[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); obj111.Steps = list164; reference114 = obj111; - ref QuestSequence reference115 = ref span58[1]; + num++; + ref QuestSequence reference115 = ref span163[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1014147u, new Vector3(-256.97723f, 126.99508f, 13.168518f), 397); + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span165[num2] = new QuestStep(EInteractionType.Interact, 1014147u, new Vector3(-256.97723f, 126.99508f, 13.168518f), 397); obj112.Steps = list165; reference115 = obj112; - ref QuestSequence reference116 = ref span58[2]; + num++; + ref QuestSequence reference116 = ref span163[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -119079,28 +143538,33 @@ public static class AssemblyQuestLoader num2 = 2; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span59 = CollectionsMarshal.AsSpan(list166); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.8484f, 221.68138f, 548.0529f), 397) + Span span166 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span166[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.8484f, 221.68138f, 548.0529f), 397) { Fly = true }; - span59[1] = new QuestStep(EInteractionType.Interact, 1014149u, new Vector3(-294.5144f, 221.58685f, 545.922f), 397) + index2++; + span166[index2] = new QuestStep(EInteractionType.Interact, 1014149u, new Vector3(-294.5144f, 221.58685f, 545.922f), 397) { Land = true }; obj113.Steps = list166; reference116 = obj113; - ref QuestSequence reference117 = ref span58[3]; + num++; + ref QuestSequence reference117 = ref span163[num]; QuestSequence obj114 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - Span span60 = CollectionsMarshal.AsSpan(list167); - span60[0] = new QuestStep(EInteractionType.Interact, 2006017u, new Vector3(-253.34558f, 221.36255f, 528.92346f), 397); - ref QuestStep reference118 = ref span60[1]; + index2 = 2; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.Interact, 2006017u, new Vector3(-253.34558f, 221.36255f, 528.92346f), 397); + num2++; + ref QuestStep reference118 = ref span167[num2]; QuestStep obj115 = new QuestStep(EInteractionType.Combat, 4076u, new Vector3(-257.5558f, 221.35532f, 520.9053f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -119108,12 +143572,15 @@ public static class AssemblyQuestLoader num3 = 1; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = 4076u; + Span span168 = CollectionsMarshal.AsSpan(list168); + index3 = 0; + span168[index3] = 4076u; obj115.KillEnemyDataIds = list168; reference118 = obj115; obj114.Steps = list167; reference117 = obj114; - ref QuestSequence reference119 = ref span58[4]; + num++; + ref QuestSequence reference119 = ref span163[num]; QuestSequence obj116 = new QuestSequence { Sequence = 4 @@ -119121,18 +143588,23 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1014149u, new Vector3(-294.5144f, 221.58685f, 545.922f), 397); + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.Interact, 1014149u, new Vector3(-294.5144f, 221.58685f, 545.922f), 397); obj116.Steps = list169; reference119 = obj116; - ref QuestSequence reference120 = ref span58[5]; + num++; + ref QuestSequence reference120 = ref span163[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) { Fly = true, NextQuestId = new QuestId(1890) @@ -119146,13 +143618,16 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "Thaksin"; + Span span171 = CollectionsMarshal.AsSpan(list171); + index = 0; + span171[index] = "Thaksin"; questRoot21.Author = list171; - num = 4; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span61 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference121 = ref span61[0]; + index = 4; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + Span span172 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference121 = ref span172[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 @@ -119160,27 +143635,34 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); obj118.Steps = list173; reference121 = obj118; - ref QuestSequence reference122 = ref span61[1]; + num++; + ref QuestSequence reference122 = ref span172[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list174)[0]; + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + ref QuestStep reference123 = ref span174[num2]; QuestStep obj120 = new QuestStep(EInteractionType.Combat, null, new Vector3(-297.49585f, 219.87524f, 281.65045f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list175 = new List(num3); - CollectionsMarshal.SetCount(list175, num3); - CollectionsMarshal.AsSpan(list175)[0] = new ComplexCombatData + index3 = 1; + List list175 = new List(index3); + CollectionsMarshal.SetCount(list175, index3); + Span span175 = CollectionsMarshal.AsSpan(list175); + num3 = 0; + span175[num3] = new ComplexCombatData { DataId = 3992u, MinimumKillCount = 5u @@ -119189,7 +143671,8 @@ public static class AssemblyQuestLoader reference123 = obj120; obj119.Steps = list174; reference122 = obj119; - ref QuestSequence reference124 = ref span61[2]; + num++; + ref QuestSequence reference124 = ref span172[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 @@ -119197,23 +143680,27 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1014150u, new Vector3(507.13354f, 217.95148f, 791.37854f), 397) + Span span176 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span176[index2] = new QuestStep(EInteractionType.Interact, 1014150u, new Vector3(507.13354f, 217.95148f, 791.37854f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj121.Steps = list176; reference124 = obj121; - ref QuestSequence reference125 = ref span61[3]; + num++; + ref QuestSequence reference125 = ref span172[num]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - Span span62 = CollectionsMarshal.AsSpan(list177); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-110.26132f, 153.61101f, 10.394781f), 397) + index2 = 2; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-110.26132f, 153.61101f, 10.394781f), 397) { Fly = true, SkipConditions = new SkipConditions @@ -119224,7 +143711,8 @@ public static class AssemblyQuestLoader } } }; - span62[1] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) + num2++; + span177[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) { Fly = true, NextQuestId = new QuestId(1891) @@ -119238,13 +143726,16 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "Thaksin"; + Span span178 = CollectionsMarshal.AsSpan(list178); + index = 0; + span178[index] = "Thaksin"; questRoot22.Author = list178; - num = 5; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span63 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference126 = ref span63[0]; + index = 5; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + Span span179 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference126 = ref span179[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 @@ -119252,23 +143743,28 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span180[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); obj123.Steps = list180; reference126 = obj123; - ref QuestSequence reference127 = ref span63[1]; + num++; + ref QuestSequence reference127 = ref span179[num]; QuestSequence obj124 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - Span span64 = CollectionsMarshal.AsSpan(list181); - span64[0] = new QuestStep(EInteractionType.Interact, 1014151u, new Vector3(-156.08453f, 219.14235f, 669.7031f), 397) + index2 = 2; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span181[num2] = new QuestStep(EInteractionType.Interact, 1014151u, new Vector3(-156.08453f, 219.14235f, 669.7031f), 397) { Fly = true }; - ref QuestStep reference128 = ref span64[1]; + num2++; + ref QuestStep reference128 = ref span181[num2]; QuestStep obj125 = new QuestStep(EInteractionType.Combat, 732u, new Vector3(-151.29321f, 218.95082f, 669.4895f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -119276,12 +143772,15 @@ public static class AssemblyQuestLoader num3 = 1; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - CollectionsMarshal.AsSpan(list182)[0] = 732u; + Span span182 = CollectionsMarshal.AsSpan(list182); + index3 = 0; + span182[index3] = 732u; obj125.KillEnemyDataIds = list182; reference128 = obj125; obj124.Steps = list181; reference127 = obj124; - ref QuestSequence reference129 = ref span63[2]; + num++; + ref QuestSequence reference129 = ref span179[num]; QuestSequence obj126 = new QuestSequence { Sequence = 2 @@ -119289,21 +143788,27 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1014151u, new Vector3(-156.08453f, 219.14235f, 669.7031f), 397); + Span span183 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span183[index2] = new QuestStep(EInteractionType.Interact, 1014151u, new Vector3(-156.08453f, 219.14235f, 669.7031f), 397); obj126.Steps = list183; reference129 = obj126; - ref QuestSequence reference130 = ref span63[3]; + num++; + ref QuestSequence reference130 = ref span179[num]; QuestSequence obj127 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1014151u, new Vector3(-156.08453f, 219.14235f, 669.7031f), 397); + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span184[num2] = new QuestStep(EInteractionType.Interact, 1014151u, new Vector3(-156.08453f, 219.14235f, 669.7031f), 397); obj127.Steps = list184; reference130 = obj127; - ref QuestSequence reference131 = ref span63[4]; + num++; + ref QuestSequence reference131 = ref span179[num]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue @@ -119311,7 +143816,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) { Fly = true, NextQuestId = new QuestId(1892) @@ -119325,24 +143832,30 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "Thaksin"; + Span span186 = CollectionsMarshal.AsSpan(list186); + index = 0; + span186[index] = "Thaksin"; questRoot23.Author = list186; - num = 4; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span65 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference132 = ref span65[0]; + index = 4; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + Span span187 = CollectionsMarshal.AsSpan(list187); + num = 0; + ref QuestSequence reference132 = ref span187[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + Span span188 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span188[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); obj129.Steps = list188; reference132 = obj129; - ref QuestSequence reference133 = ref span65[1]; + num++; + ref QuestSequence reference133 = ref span187[num]; QuestSequence obj130 = new QuestSequence { Sequence = 1 @@ -119350,36 +143863,44 @@ public static class AssemblyQuestLoader num2 = 2; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span66 = CollectionsMarshal.AsSpan(list189); - span66[0] = new QuestStep(EInteractionType.Interact, 2006019u, new Vector3(-152.42242f, 219.62305f, 669.94727f), 397) + Span span189 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span189[index2] = new QuestStep(EInteractionType.Interact, 2006019u, new Vector3(-152.42242f, 219.62305f, 669.94727f), 397) { Fly = true }; - ref QuestStep reference134 = ref span66[1]; + index2++; + ref QuestStep reference134 = ref span189[index2]; QuestStep obj131 = new QuestStep(EInteractionType.Combat, 4782u, new Vector3(-158.97404f, 219.45131f, 672.79553f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - CollectionsMarshal.AsSpan(list190)[0] = 4782u; + index3 = 1; + List list190 = new List(index3); + CollectionsMarshal.SetCount(list190, index3); + Span span190 = CollectionsMarshal.AsSpan(list190); + num3 = 0; + span190[num3] = 4782u; obj131.KillEnemyDataIds = list190; reference134 = obj131; obj130.Steps = list189; reference133 = obj130; - ref QuestSequence reference135 = ref span65[2]; + num++; + ref QuestSequence reference135 = ref span187[num]; QuestSequence obj132 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 2006181u, new Vector3(-152.42242f, 219.62305f, 669.94727f), 397); + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.Interact, 2006181u, new Vector3(-152.42242f, 219.62305f, 669.94727f), 397); obj132.Steps = list191; reference135 = obj132; - ref QuestSequence reference136 = ref span65[3]; + num++; + ref QuestSequence reference136 = ref span187[num]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue @@ -119387,7 +143908,9 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) { Fly = true, NextQuestId = new QuestId(1893) @@ -119401,24 +143924,30 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "Thaksin"; + Span span193 = CollectionsMarshal.AsSpan(list193); + index = 0; + span193[index] = "Thaksin"; questRoot24.Author = list193; - num = 4; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span67 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference137 = ref span67[0]; + index = 4; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + Span span194 = CollectionsMarshal.AsSpan(list194); + num = 0; + ref QuestSequence reference137 = ref span194[num]; QuestSequence obj134 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); obj134.Steps = list195; reference137 = obj134; - ref QuestSequence reference138 = ref span67[1]; + num++; + ref QuestSequence reference138 = ref span194[num]; QuestSequence obj135 = new QuestSequence { Sequence = 1 @@ -119426,66 +143955,91 @@ public static class AssemblyQuestLoader num2 = 3; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span68 = CollectionsMarshal.AsSpan(list196); - ref QuestStep reference139 = ref span68[0]; + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + ref QuestStep reference139 = ref span196[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397); num3 = 6; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - Span span69 = CollectionsMarshal.AsSpan(list197); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span197 = CollectionsMarshal.AsSpan(list197); + index3 = 0; + span197[index3] = null; + index3++; + span197[index3] = null; + index3++; + span197[index3] = null; + index3++; + span197[index3] = null; + index3++; + span197[index3] = null; + index3++; + span197[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list197; reference139 = questStep5; - ref QuestStep reference140 = ref span68[1]; + index2++; + ref QuestStep reference140 = ref span196[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); - num3 = 6; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - Span span70 = CollectionsMarshal.AsSpan(list198); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list198 = new List(index3); + CollectionsMarshal.SetCount(list198, index3); + Span span198 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list198; reference140 = questStep6; - ref QuestStep reference141 = ref span68[2]; + index2++; + ref QuestStep reference141 = ref span196[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1014133u, new Vector3(-259.84595f, 126.44779f, 1.9073486f), 397); num3 = 6; List list199 = new List(num3); CollectionsMarshal.SetCount(list199, num3); - Span span71 = CollectionsMarshal.AsSpan(list199); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span199 = CollectionsMarshal.AsSpan(list199); + index3 = 0; + span199[index3] = null; + index3++; + span199[index3] = null; + index3++; + span199[index3] = null; + index3++; + span199[index3] = null; + index3++; + span199[index3] = null; + index3++; + span199[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list199; reference141 = questStep7; obj135.Steps = list196; reference138 = obj135; - ref QuestSequence reference142 = ref span67[2]; + num++; + ref QuestSequence reference142 = ref span194[num]; QuestSequence obj136 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1014152u, new Vector3(496.1776f, 133.93082f, -862.2416f), 397) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.Interact, 1014152u, new Vector3(496.1776f, 133.93082f, -862.2416f), 397) { Fly = true }; obj136.Steps = list200; reference142 = obj136; - ref QuestSequence reference143 = ref span67[3]; + num++; + ref QuestSequence reference143 = ref span194[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -119493,7 +144047,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014153u, new Vector3(-295.82666f, 126.83744f, 3.829956f), 397) + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014153u, new Vector3(-295.82666f, 126.83744f, 3.829956f), 397) { Fly = true, NextQuestId = new QuestId(1898) @@ -119507,24 +144063,30 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "Thaksin"; + Span span202 = CollectionsMarshal.AsSpan(list202); + index = 0; + span202[index] = "Thaksin"; questRoot25.Author = list202; - num = 13; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span72 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference144 = ref span72[0]; + index = 13; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + Span span203 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference144 = ref span203[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj138.Steps = list204; reference144 = obj138; - ref QuestSequence reference145 = ref span72[1]; + num++; + ref QuestSequence reference145 = ref span203[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -119532,21 +144094,27 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1014153u, new Vector3(-295.82666f, 126.83744f, 3.829956f), 397); + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.Interact, 1014153u, new Vector3(-295.82666f, 126.83744f, 3.829956f), 397); obj139.Steps = list205; reference145 = obj139; - ref QuestSequence reference146 = ref span72[2]; + num++; + ref QuestSequence reference146 = ref span203[num]; QuestSequence obj140 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.Interact, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj140.Steps = list206; reference146 = obj140; - ref QuestSequence reference147 = ref span72[3]; + num++; + ref QuestSequence reference147 = ref span203[num]; QuestSequence obj141 = new QuestSequence { Sequence = 3 @@ -119554,24 +144122,30 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1014154u, new Vector3(-519.1577f, 119.39417f, -161.24213f), 397) + Span span207 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span207[index2] = new QuestStep(EInteractionType.Interact, 1014154u, new Vector3(-519.1577f, 119.39417f, -161.24213f), 397) { Fly = true }; obj141.Steps = list207; reference147 = obj141; - ref QuestSequence reference148 = ref span72[4]; + num++; + ref QuestSequence reference148 = ref span203[num]; QuestSequence obj142 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1014155u, new Vector3(-527.245f, 118.94699f, -163.13422f), 397); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.Interact, 1014155u, new Vector3(-527.245f, 118.94699f, -163.13422f), 397); obj142.Steps = list208; reference148 = obj142; - ref QuestSequence reference149 = ref span72[5]; + num++; + ref QuestSequence reference149 = ref span203[num]; QuestSequence obj143 = new QuestSequence { Sequence = 5 @@ -119579,24 +144153,30 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 2006026u, new Vector3(-525.7191f, 119.06604f, -165.72827f), 397); + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new QuestStep(EInteractionType.Interact, 2006026u, new Vector3(-525.7191f, 119.06604f, -165.72827f), 397); obj143.Steps = list209; reference149 = obj143; - ref QuestSequence reference150 = ref span72[6]; + num++; + ref QuestSequence reference150 = ref span203[num]; QuestSequence obj144 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span210[num2] = new QuestStep(EInteractionType.Interact, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) { Fly = true }; obj144.Steps = list210; reference150 = obj144; - ref QuestSequence reference151 = ref span72[7]; + num++; + ref QuestSequence reference151 = ref span203[num]; QuestSequence obj145 = new QuestSequence { Sequence = 7 @@ -119604,41 +144184,49 @@ public static class AssemblyQuestLoader num2 = 2; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span73 = CollectionsMarshal.AsSpan(list211); - span73[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397) + Span span211 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span211[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397) { Fly = true }; - span73[1] = new QuestStep(EInteractionType.UseItem, 2006027u, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397) + index2++; + span211[index2] = new QuestStep(EInteractionType.UseItem, 2006027u, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397) { ItemId = 2001751u }; obj145.Steps = list211; reference151 = obj145; - ref QuestSequence reference152 = ref span72[8]; + num++; + ref QuestSequence reference152 = ref span203[num]; QuestSequence obj146 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - Span span74 = CollectionsMarshal.AsSpan(list212); - span74[0] = new QuestStep(EInteractionType.Interact, 2006028u, new Vector3(-92.5155f, 93.52246f, -623.621f), 397); - ref QuestStep reference153 = ref span74[1]; + index2 = 2; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span212[num2] = new QuestStep(EInteractionType.Interact, 2006028u, new Vector3(-92.5155f, 93.52246f, -623.621f), 397); + num2++; + ref QuestStep reference153 = ref span212[num2]; QuestStep obj147 = new QuestStep(EInteractionType.Combat, 4621u, new Vector3(-92.37683f, 95.76039f, -640.7043f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = 4621u; + index3 = 1; + List list213 = new List(index3); + CollectionsMarshal.SetCount(list213, index3); + Span span213 = CollectionsMarshal.AsSpan(list213); + num3 = 0; + span213[num3] = 4621u; obj147.KillEnemyDataIds = list213; reference153 = obj147; obj146.Steps = list212; reference152 = obj146; - ref QuestSequence reference154 = ref span72[9]; + num++; + ref QuestSequence reference154 = ref span203[num]; QuestSequence obj148 = new QuestSequence { Sequence = 9 @@ -119646,24 +144234,30 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 2006460u, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397); + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.Interact, 2006460u, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397); obj148.Steps = list214; reference154 = obj148; - ref QuestSequence reference155 = ref span72[10]; + num++; + ref QuestSequence reference155 = ref span203[num]; QuestSequence obj149 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.Interact, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) { Fly = true }; obj149.Steps = list215; reference155 = obj149; - ref QuestSequence reference156 = ref span72[11]; + num++; + ref QuestSequence reference156 = ref span203[num]; QuestSequence obj150 = new QuestSequence { Sequence = 11 @@ -119671,18 +144265,23 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 1014147u, new Vector3(-256.97723f, 126.99508f, 13.168518f), 397); + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span216[index2] = new QuestStep(EInteractionType.Interact, 1014147u, new Vector3(-256.97723f, 126.99508f, 13.168518f), 397); obj150.Steps = list216; reference156 = obj150; - ref QuestSequence reference157 = ref span72[12]; + num++; + ref QuestSequence reference157 = ref span203[num]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + index2 = 1; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + Span span217 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span217[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj151.Steps = list217; reference157 = obj151; questRoot25.QuestSequence = list203; @@ -119696,13 +144295,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -119710,64 +144312,90 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.83911f, -1.6023016f, -655.73804f), 401); - ref QuestStep reference3 = ref span2[1]; + index2 = 4; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.83911f, -1.6023016f, -655.73804f), 401); + num2++; + ref QuestStep reference3 = ref span4[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2005824u, new Vector3(204.8523f, 12.741211f, -596.2158f), 401); int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span5 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - ref QuestStep reference4 = ref span2[2]; + num2++; + ref QuestStep reference4 = ref span4[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2005826u, new Vector3(224.93323f, 12.863342f, -653.3456f), 401); - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list6; reference4 = questStep2; - ref QuestStep reference5 = ref span2[3]; + num2++; + ref QuestStep reference5 = ref span4[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2005825u, new Vector3(244.34265f, 38.345825f, -564.3549f), 401); num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list7; reference5 = questStep3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -119775,7 +144403,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401) + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; @@ -119785,106 +144415,118 @@ public static class AssemblyQuestLoader AddQuest(questId, questRoot); QuestId questId2 = new QuestId(1910); QuestRoot questRoot2 = new QuestRoot(); - num = 2; + num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span6 = CollectionsMarshal.AsSpan(list9); - span6[0] = "JerryWester"; - span6[1] = "Wigglez"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "JerryWester"; questRoot2.Author = list9; - num = 3; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span7 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span7[0]; + index = 3; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span10[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012068u, new Vector3(-597.0398f, -51.05185f, -387.0451f), 401); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012068u, new Vector3(-597.0398f, -51.05185f, -387.0451f), 401); obj4.Steps = list11; reference7 = obj4; - ref QuestSequence reference8 = ref span7[1]; + num++; + ref QuestSequence reference8 = ref span10[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 }; - num2 = 4; + num2 = 3; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span8 = CollectionsMarshal.AsSpan(list12); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-568.5969f, -50.649483f, -452.10956f), 401) - { - AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, - SkipConditions = new SkipConditions - { - StepIf = new SkipStepConditions - { - NearPosition = new NearPositionCondition - { - Position = new Vector3(-568.5969f, -50.649483f, -452.10956f), - MaximumDistance = 200f, - TerritoryId = 401 - } - } - } - }; - ref QuestStep reference9 = ref span8[1]; + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + ref QuestStep reference9 = ref span12[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1012072u, new Vector3(-568.5969f, -50.649483f, -452.10956f), 401); - num3 = 6; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - Span span9 = CollectionsMarshal.AsSpan(list13); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list13 = new List(num4); + CollectionsMarshal.SetCount(list13, num4); + Span span13 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list13; reference9 = questStep4; - ref QuestStep reference10 = ref span8[2]; + index2++; + ref QuestStep reference10 = ref span12[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1012071u, new Vector3(-568.3833f, -50.605247f, -449.11877f), 401); num3 = 6; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - Span span10 = CollectionsMarshal.AsSpan(list14); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span14 = CollectionsMarshal.AsSpan(list14); + num4 = 0; + span14[num4] = null; + num4++; + span14[num4] = null; + num4++; + span14[num4] = null; + num4++; + span14[num4] = null; + num4++; + span14[num4] = null; + num4++; + span14[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list14; reference10 = questStep5; - ref QuestStep reference11 = ref span8[3]; + index2++; + ref QuestStep reference11 = ref span12[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401); - num3 = 6; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span11 = CollectionsMarshal.AsSpan(list15); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list15 = new List(num4); + CollectionsMarshal.SetCount(list15, num4); + Span span15 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list15; reference11 = questStep6; obj5.Steps = list12; reference8 = obj5; - ref QuestSequence reference12 = ref span7[2]; + num++; + ref QuestSequence reference12 = ref span10[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014171u, new Vector3(-373.43408f, -55.21164f, -630.0908f), 401) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014171u, new Vector3(-373.43408f, -55.21164f, -630.0908f), 401) { ChatMessage = new ChatMessage { @@ -119900,13 +144542,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "JerryWester"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "JerryWester"; questRoot3.Author = list17; - num = 4; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span12 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span12[0]; + index = 4; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span18[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -119914,18 +144559,23 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399); + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399); obj7.Steps = list19; reference13 = obj7; - ref QuestSequence reference14 = ref span12[1]; + num++; + ref QuestSequence reference14 = ref span18[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span20[num2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(56.196793f, 83.32266f, -218.24187f), 399) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -119933,14 +144583,17 @@ public static class AssemblyQuestLoader num3 = 2; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span13 = CollectionsMarshal.AsSpan(list21); - span13[0] = 4506u; - span13[1] = 4507u; + Span span21 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span21[num4] = 4506u; + num4++; + span21[num4] = 4507u; obj9.KillEnemyDataIds = list21; reference15 = obj9; obj8.Steps = list20; reference14 = obj8; - ref QuestSequence reference16 = ref span12[2]; + num++; + ref QuestSequence reference16 = ref span18[num]; QuestSequence obj10 = new QuestSequence { Sequence = 2 @@ -119948,30 +144601,37 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list22)[0]; + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref QuestStep reference17 = ref span22[index2]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, null, new Vector3(104.56799f, 63.322918f, -218.18315f), 399) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span14 = CollectionsMarshal.AsSpan(list23); - span14[0] = 4506u; - span14[1] = 4507u; + num4 = 2; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + Span span23 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span23[num3] = 4506u; + num3++; + span23[num3] = 4507u; obj11.KillEnemyDataIds = list23; reference17 = obj11; obj10.Steps = list22; reference16 = obj10; - ref QuestSequence reference18 = ref span12[3]; + num++; + ref QuestSequence reference18 = ref span18[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399); obj12.Steps = list24; reference18 = obj12; questRoot3.QuestSequence = list18; @@ -119981,13 +144641,16 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "JerryWester"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "JerryWester"; questRoot4.Author = list25; - num = 3; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span15 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference19 = ref span15[0]; + index = 3; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference19 = ref span26[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -119995,68 +144658,97 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012102u, new Vector3(72.40405f, 205.6815f, 31.631958f), 478); + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012102u, new Vector3(72.40405f, 205.6815f, 31.631958f), 478); obj13.Steps = list27; reference19 = obj13; - ref QuestSequence reference20 = ref span15[1]; + num++; + ref QuestSequence reference20 = ref span26[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - Span span16 = CollectionsMarshal.AsSpan(list28); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(148.52824f, 207f, 117.84323f), 478) + index2 = 6; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.24727f, 205.55574f, 26.719358f), 478); + num2++; + span28[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(148.52824f, 207f, 117.84323f), 478) { TargetTerritoryId = (ushort)399 }; - span16[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-104.97165f, 100.7737f, -302.41528f), 399); - ref QuestStep reference21 = ref span16[2]; + num2++; + span28[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-104.97165f, 100.7737f, -302.41528f), 399); + num2++; + ref QuestStep reference21 = ref span28[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2005878u, new Vector3(490.77588f, 83.7262f, -14.847046f), 399); num3 = 6; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - Span span17 = CollectionsMarshal.AsSpan(list29); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span29 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list29; reference21 = questStep7; - ref QuestStep reference22 = ref span16[3]; + num2++; + ref QuestStep reference22 = ref span28[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2005879u, new Vector3(496.42163f, 83.7262f, 18.631226f), 399); - num3 = 6; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span18 = CollectionsMarshal.AsSpan(list30); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list30 = new List(num4); + CollectionsMarshal.SetCount(list30, num4); + Span span30 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list30; reference22 = questStep8; - ref QuestStep reference23 = ref span16[4]; + num2++; + ref QuestStep reference23 = ref span28[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2005877u, new Vector3(458.70142f, 83.7262f, 34.74475f), 399); num3 = 6; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span19 = CollectionsMarshal.AsSpan(list31); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span31 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + span31[num4] = null; + num4++; + span31[num4] = null; + num4++; + span31[num4] = null; + num4++; + span31[num4] = null; + num4++; + span31[num4] = null; + num4++; + span31[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list31; reference23 = questStep9; obj14.Steps = list28; reference20 = obj14; - ref QuestSequence reference24 = ref span15[2]; + num++; + ref QuestSequence reference24 = ref span26[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -120064,7 +144756,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012102u, new Vector3(72.40405f, 205.6815f, 31.631958f), 478) + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012102u, new Vector3(72.40405f, 205.6815f, 31.631958f), 478) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Idyllshire @@ -120078,27 +144772,33 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "Thaksin"; + Span span33 = CollectionsMarshal.AsSpan(list33); + index = 0; + span33[index] = "Thaksin"; questRoot5.Author = list33; - num = 3; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span20 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference25 = ref span20[0]; + index = 3; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + Span span34 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference25 = ref span34[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399) { Fly = true }; obj16.Steps = list35; reference25 = obj16; - ref QuestSequence reference26 = ref span20[1]; + num++; + ref QuestSequence reference26 = ref span34[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -120106,16 +144806,20 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list36)[0]; + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + ref QuestStep reference27 = ref span36[index2]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(301.43185f, 76.142914f, 171.03389f), 399) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = new ComplexCombatData + num4 = 1; + List list37 = new List(num4); + CollectionsMarshal.SetCount(list37, num4); + Span span37 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span37[num3] = new ComplexCombatData { DataId = 4020u, MinimumKillCount = 3u @@ -120124,15 +144828,18 @@ public static class AssemblyQuestLoader reference27 = obj18; obj17.Steps = list36; reference26 = obj17; - ref QuestSequence reference28 = ref span20[2]; + num++; + ref QuestSequence reference28 = ref span34[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399) { Fly = true }; @@ -120149,13 +144856,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -120163,30 +144873,37 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.86769f, 204.99998f, 145.98666f), 478) + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.86769f, 204.99998f, 145.98666f), 478) { TargetTerritoryId = (ushort)399 }; - span2[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006210u, new Vector3(-487.48004f, 144.64026f, -285.359f), 399) + num2++; + span4[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006210u, new Vector3(-487.48004f, 144.64026f, -285.359f), 399) { AetherCurrentId = 2818088u }; - span2[2] = new QuestStep(EInteractionType.Interact, 1013651u, new Vector3(-475.76105f, 155.8605f, -209.76581f), 399); + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 1013651u, new Vector3(-475.76105f, 155.8605f, -209.76581f), 399); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -120194,29 +144911,35 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-403.42465f, 154.8542f, 82.59637f), 399); + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-403.42465f, 154.8542f, 82.59637f), 399); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = new QuestStep(EInteractionType.Combat, null, new Vector3(-403.42465f, 154.8542f, 82.59637f), 399) + index2 = 2; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Combat, null, new Vector3(-403.42465f, 154.8542f, 82.59637f), 399) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - span3[1] = new QuestStep(EInteractionType.Interact, 2005885u, new Vector3(-403.2807f, 155.35205f, 82.84119f), 399) + num2++; + span6[num2] = new QuestStep(EInteractionType.Interact, 2005885u, new Vector3(-403.2807f, 155.35205f, 82.84119f), 399) { DelaySecondsAtStart = 2f }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -120224,7 +144947,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013651u, new Vector3(-475.76105f, 155.8605f, -209.76581f), 399); + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013651u, new Vector3(-475.76105f, 155.8605f, -209.76581f), 399); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -120234,24 +144959,30 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "Thaksin"; + Span span8 = CollectionsMarshal.AsSpan(list8); + index = 0; + span8[index] = "Thaksin"; questRoot2.Author = list8; - num = 4; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span4 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span4[0]; + index = 4; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + Span span9 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span9[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013651u, new Vector3(-475.76105f, 155.8605f, -209.76581f), 399); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013651u, new Vector3(-475.76105f, 155.8605f, -209.76581f), 399); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[1]; + num++; + ref QuestSequence reference7 = ref span9[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -120259,31 +144990,36 @@ public static class AssemblyQuestLoader num2 = 2; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span5 = CollectionsMarshal.AsSpan(list11); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.5463f, 148.56897f, 187.12466f), 399) + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.5463f, 148.56897f, 187.12466f), 399) { Fly = true }; - span5[1] = new QuestStep(EInteractionType.Interact, 1013655u, new Vector3(-669.9169f, 154.30952f, 191.08862f), 399) + index2++; + span11[index2] = new QuestStep(EInteractionType.Interact, 1013655u, new Vector3(-669.9169f, 154.30952f, 191.08862f), 399) { Land = true }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span4[2]; + num++; + ref QuestSequence reference8 = ref span9[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - Span span6 = CollectionsMarshal.AsSpan(list12); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-894.6883f, 215.50499f, 157.66754f), 399) + index2 = 2; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-894.6883f, 215.50499f, 157.66754f), 399) { Fly = true }; - ref QuestStep reference9 = ref span6[1]; + num2++; + ref QuestStep reference9 = ref span12[num2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, 5047u, new Vector3(-894.9264f, 215.16266f, 155.29102f), 399) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -120291,14 +145027,17 @@ public static class AssemblyQuestLoader int num3 = 2; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - Span span7 = CollectionsMarshal.AsSpan(list13); - span7[0] = 5047u; - span7[1] = 5048u; + Span span13 = CollectionsMarshal.AsSpan(list13); + int num4 = 0; + span13[num4] = 5047u; + num4++; + span13[num4] = 5048u; obj9.KillEnemyDataIds = list13; reference9 = obj9; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference10 = ref span4[3]; + num++; + ref QuestSequence reference10 = ref span9[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -120306,12 +145045,14 @@ public static class AssemblyQuestLoader num2 = 2; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span8 = CollectionsMarshal.AsSpan(list14); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.5463f, 148.56897f, 187.12466f), 399) + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.5463f, 148.56897f, 187.12466f), 399) { Fly = true }; - span8[1] = new QuestStep(EInteractionType.CompleteQuest, 1013655u, new Vector3(-669.9169f, 154.30952f, 191.08862f), 399) + index2++; + span14[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013655u, new Vector3(-669.9169f, 154.30952f, 191.08862f), 399) { Land = true }; @@ -120324,24 +145065,30 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "Thaksin"; + Span span15 = CollectionsMarshal.AsSpan(list15); + index = 0; + span15[index] = "Thaksin"; questRoot3.Author = list15; - num = 6; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span9 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span9[0]; + index = 6; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + Span span16 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span16[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013655u, new Vector3(-669.9169f, 154.30952f, 191.08862f), 399); + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013655u, new Vector3(-669.9169f, 154.30952f, 191.08862f), 399); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span9[1]; + num++; + ref QuestSequence reference12 = ref span16[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -120349,35 +145096,43 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1013656u, new Vector3(-617.8836f, 150.38008f, 327.19922f), 399); + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.Interact, 1013656u, new Vector3(-617.8836f, 150.38008f, 327.19922f), 399); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span9[2]; + num++; + ref QuestSequence reference13 = ref span16[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - Span span10 = CollectionsMarshal.AsSpan(list19); - span10[0] = new QuestStep(EInteractionType.Interact, 1013659u, new Vector3(-617.76154f, 153.8528f, 349.35522f), 399); - ref QuestStep reference14 = ref span10[1]; + index2 = 2; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.Interact, 1013659u, new Vector3(-617.76154f, 153.8528f, 349.35522f), 399); + num2++; + ref QuestStep reference14 = ref span19[num2]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, 5049u, new Vector3(-617.76154f, 153.8528f, 349.35522f), 399) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span11 = CollectionsMarshal.AsSpan(list20); - span11[0] = 5046u; - span11[1] = 5049u; + num4 = 2; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + Span span20 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + span20[num3] = 5046u; + num3++; + span20[num3] = 5049u; obj14.KillEnemyDataIds = list20; reference14 = obj14; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference15 = ref span9[3]; + num++; + ref QuestSequence reference15 = ref span16[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 @@ -120385,21 +145140,27 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 1013659u, new Vector3(-617.76154f, 153.8528f, 349.35522f), 399); + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span21[index2] = new QuestStep(EInteractionType.Interact, 1013659u, new Vector3(-617.76154f, 153.8528f, 349.35522f), 399); obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference16 = ref span9[4]; + num++; + ref QuestSequence reference16 = ref span16[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1013656u, new Vector3(-617.8836f, 150.38008f, 327.19922f), 399); + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.Interact, 1013656u, new Vector3(-617.8836f, 150.38008f, 327.19922f), 399); obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span9[5]; + num++; + ref QuestSequence reference17 = ref span16[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -120407,7 +145168,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; @@ -120420,24 +145183,30 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "JerryWester"; + Span span24 = CollectionsMarshal.AsSpan(list24); + index = 0; + span24[index] = "JerryWester"; questRoot4.Author = list24; - num = 3; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span12 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference18 = ref span12[0]; + index = 3; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + Span span25 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference18 = ref span25[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012141u, new Vector3(35.690796f, 38.43f, 12.985352f), 463); + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012141u, new Vector3(35.690796f, 38.43f, 12.985352f), 463); obj18.Steps = list26; reference18 = obj18; - ref QuestSequence reference19 = ref span12[1]; + num++; + ref QuestSequence reference19 = ref span25[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -120445,8 +145214,9 @@ public static class AssemblyQuestLoader num2 = 4; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span13 = CollectionsMarshal.AsSpan(list27); - ref QuestStep reference20 = ref span13[0]; + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + ref QuestStep reference20 = ref span27[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 2005337u, new Vector3(7.765594f, 38.9395f, -50.9989f), 463) { TargetTerritoryId = (ushort)399 @@ -120456,93 +145226,125 @@ public static class AssemblyQuestLoader num3 = 1; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = 463; + Span span28 = CollectionsMarshal.AsSpan(list28); + num4 = 0; + span28[num4] = 463; skipStepConditions.NotInTerritory = list28; skipConditions.StepIf = skipStepConditions; obj20.SkipConditions = skipConditions; reference20 = obj20; - ref QuestStep reference21 = ref span13[1]; + index2++; + ref QuestStep reference21 = ref span27[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 2006061u, new Vector3(-486.93066f, 137.40747f, 701.3198f), 399) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = 44u; + num4 = 1; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span29[num3] = 44u; obj21.KillEnemyDataIds = list29; num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span14 = CollectionsMarshal.AsSpan(list30); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span30 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list30; reference21 = obj21; - ref QuestStep reference22 = ref span13[2]; + index2++; + ref QuestStep reference22 = ref span27[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, 2006062u, new Vector3(-471.8548f, 137.40747f, 705.5619f), 399) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = 44u; + num4 = 1; + List list31 = new List(num4); + CollectionsMarshal.SetCount(list31, num4); + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = 44u; obj22.KillEnemyDataIds = list31; num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span15 = CollectionsMarshal.AsSpan(list32); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span32 = CollectionsMarshal.AsSpan(list32); + num4 = 0; + span32[num4] = null; + num4++; + span32[num4] = null; + num4++; + span32[num4] = null; + num4++; + span32[num4] = null; + num4++; + span32[num4] = null; + num4++; + span32[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj22.CompletionQuestVariablesFlags = list32; reference22 = obj22; - ref QuestStep reference23 = ref span13[3]; + index2++; + ref QuestStep reference23 = ref span27[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 2006063u, new Vector3(-473.50275f, 137.40747f, 685.3893f), 399) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = 44u; + num4 = 1; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = 44u; obj23.KillEnemyDataIds = list33; num3 = 6; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span16 = CollectionsMarshal.AsSpan(list34); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span34 = CollectionsMarshal.AsSpan(list34); + num4 = 0; + span34[num4] = null; + num4++; + span34[num4] = null; + num4++; + span34[num4] = null; + num4++; + span34[num4] = null; + num4++; + span34[num4] = null; + num4++; + span34[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj23.CompletionQuestVariablesFlags = list34; reference23 = obj23; obj19.Steps = list27; reference19 = obj19; - ref QuestSequence reference24 = ref span12[2]; + num++; + ref QuestSequence reference24 = ref span25[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span17 = CollectionsMarshal.AsSpan(list35); - span17[0] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) + index2 = 2; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) { TargetTerritoryId = (ushort)463 }; - span17[1] = new QuestStep(EInteractionType.CompleteQuest, 1012141u, new Vector3(35.690796f, 38.43f, 12.985352f), 463); + num2++; + span35[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012141u, new Vector3(35.690796f, 38.43f, 12.985352f), 463); obj24.Steps = list35; reference24 = obj24; questRoot4.QuestSequence = list25; @@ -120552,13 +145354,16 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "goatzone"; + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "goatzone"; questRoot5.Author = list36; - num = 3; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span18 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference25 = ref span18[0]; + index = 3; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference25 = ref span37[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -120566,27 +145371,34 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012145u, new Vector3(-607.7516f, -176.4502f, -527.5502f), 402); + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012145u, new Vector3(-607.7516f, -176.4502f, -527.5502f), 402); obj25.Steps = list38; reference25 = obj25; - ref QuestSequence reference26 = ref span18[1]; + num++; + ref QuestSequence reference26 = ref span37[num]; QuestSequence obj26 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list39)[0]; + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + ref QuestStep reference27 = ref span39[num2]; QuestStep obj27 = new QuestStep(EInteractionType.Combat, null, new Vector3(-441.42657f, -167.25401f, -432.4462f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = new ComplexCombatData + num4 = 1; + List list40 = new List(num4); + CollectionsMarshal.SetCount(list40, num4); + Span span40 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span40[num3] = new ComplexCombatData { DataId = 4093u, MinimumKillCount = 5u @@ -120595,7 +145407,8 @@ public static class AssemblyQuestLoader reference27 = obj27; obj26.Steps = list39; reference26 = obj26; - ref QuestSequence reference28 = ref span18[2]; + num++; + ref QuestSequence reference28 = ref span37[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -120603,7 +145416,9 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012145u, new Vector3(-607.7516f, -176.4502f, -527.5502f), 402) + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012145u, new Vector3(-607.7516f, -176.4502f, -527.5502f), 402) { Fly = true }; @@ -120616,24 +145431,30 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "goatzone"; + Span span42 = CollectionsMarshal.AsSpan(list42); + index = 0; + span42[index] = "goatzone"; questRoot6.Author = list42; - num = 3; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span19 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference29 = ref span19[0]; + index = 3; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + Span span43 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference29 = ref span43[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012146u, new Vector3(-643.76294f, -176.4502f, -527.3976f), 402); + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012146u, new Vector3(-643.76294f, -176.4502f, -527.3976f), 402); obj29.Steps = list44; reference29 = obj29; - ref QuestSequence reference30 = ref span19[1]; + num++; + ref QuestSequence reference30 = ref span43[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 @@ -120641,7 +145462,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - ref QuestStep reference31 = ref CollectionsMarshal.AsSpan(list45)[0]; + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + ref QuestStep reference31 = ref span45[index2]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, null, new Vector3(-439.6144f, -186.3405f, -617.2911f), 402) { Fly = true, @@ -120650,7 +145473,9 @@ public static class AssemblyQuestLoader num3 = 1; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new ComplexCombatData + Span span46 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span46[num4] = new ComplexCombatData { DataId = 4092u, MinimumKillCount = 5u @@ -120659,15 +145484,18 @@ public static class AssemblyQuestLoader reference31 = obj31; obj30.Steps = list45; reference30 = obj30; - ref QuestSequence reference32 = ref span19[2]; + num++; + ref QuestSequence reference32 = ref span43[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012146u, new Vector3(-643.76294f, -176.4502f, -527.3976f), 402) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012146u, new Vector3(-643.76294f, -176.4502f, -527.3976f), 402) { AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; @@ -120680,13 +145508,16 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "goatzone"; + Span span48 = CollectionsMarshal.AsSpan(list48); + index = 0; + span48[index] = "goatzone"; questRoot7.Author = list48; - num = 3; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span20 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference33 = ref span20[0]; + index = 3; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + Span span49 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference33 = ref span49[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -120694,35 +145525,43 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012147u, new Vector3(-426.627f, -162.1281f, -328.6031f), 402) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012147u, new Vector3(-426.627f, -162.1281f, -328.6031f), 402) { Fly = true }; obj33.Steps = list50; reference33 = obj33; - ref QuestSequence reference34 = ref span20[1]; + num++; + ref QuestSequence reference34 = ref span49[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list51)[0]; + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + ref QuestStep reference35 = ref span51[num2]; QuestStep obj35 = new QuestStep(EInteractionType.Combat, null, new Vector3(-528.74396f, -143.65883f, -580.686f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = 4503u; + num4 = 1; + List list52 = new List(num4); + CollectionsMarshal.SetCount(list52, num4); + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span52[num3] = 4503u; obj35.KillEnemyDataIds = list52; reference35 = obj35; obj34.Steps = list51; reference34 = obj34; - ref QuestSequence reference36 = ref span20[2]; + num++; + ref QuestSequence reference36 = ref span49[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue @@ -120730,7 +145569,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012147u, new Vector3(-426.627f, -162.1281f, -328.6031f), 402) + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012147u, new Vector3(-426.627f, -162.1281f, -328.6031f), 402) { Fly = true }; @@ -120743,27 +145584,33 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "goatzone"; + Span span54 = CollectionsMarshal.AsSpan(list54); + index = 0; + span54[index] = "goatzone"; questRoot8.Author = list54; - num = 3; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span21 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference37 = ref span21[0]; + index = 3; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + Span span55 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference37 = ref span55[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012148u, new Vector3(-173.2663f, -162.03395f, -510.39905f), 402) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012148u, new Vector3(-173.2663f, -162.03395f, -510.39905f), 402) { Fly = true }; obj37.Steps = list56; reference37 = obj37; - ref QuestSequence reference38 = ref span21[1]; + num++; + ref QuestSequence reference38 = ref span55[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 @@ -120771,7 +145618,9 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list57)[0]; + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + ref QuestStep reference39 = ref span57[index2]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, null, new Vector3(-189.43037f, -160.1837f, -499.3027f), 402) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -120779,13 +145628,15 @@ public static class AssemblyQuestLoader num3 = 2; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span22 = CollectionsMarshal.AsSpan(list58); - span22[0] = new ComplexCombatData + Span span58 = CollectionsMarshal.AsSpan(list58); + num4 = 0; + span58[num4] = new ComplexCombatData { DataId = 4091u, MinimumKillCount = 3u }; - span22[1] = new ComplexCombatData + num4++; + span58[num4] = new ComplexCombatData { DataId = 4090u, MinimumKillCount = 3u @@ -120794,15 +145645,18 @@ public static class AssemblyQuestLoader reference39 = obj39; obj38.Steps = list57; reference38 = obj38; - ref QuestSequence reference40 = ref span21[2]; + num++; + ref QuestSequence reference40 = ref span55[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012148u, new Vector3(-173.2663f, -162.03395f, -510.39905f), 402); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012148u, new Vector3(-173.2663f, -162.03395f, -510.39905f), 402); obj40.Steps = list59; reference40 = obj40; questRoot8.QuestSequence = list55; @@ -120812,13 +145666,16 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "goatzone"; + Span span60 = CollectionsMarshal.AsSpan(list60); + index = 0; + span60[index] = "goatzone"; questRoot9.Author = list60; - num = 3; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span23 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference41 = ref span23[0]; + index = 3; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference41 = ref span61[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -120826,30 +145683,37 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012289u, new Vector3(231.18933f, -72.92926f, -603.1434f), 402) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012289u, new Vector3(231.18933f, -72.92926f, -603.1434f), 402) { Fly = true }; obj41.Steps = list62; reference41 = obj41; - ref QuestSequence reference42 = ref span23[1]; + num++; + ref QuestSequence reference42 = ref span61[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference43 = ref CollectionsMarshal.AsSpan(list63)[0]; + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference43 = ref span63[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(517.51276f, -40.378292f, -785.99677f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new ComplexCombatData + num4 = 1; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + Span span64 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span64[num3] = new ComplexCombatData { DataId = 4141u, MinimumKillCount = 2u @@ -120858,7 +145722,8 @@ public static class AssemblyQuestLoader reference43 = obj43; obj42.Steps = list63; reference42 = obj42; - ref QuestSequence reference44 = ref span23[2]; + num++; + ref QuestSequence reference44 = ref span61[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -120866,7 +145731,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012289u, new Vector3(231.18933f, -72.92926f, -603.1434f), 402) + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012289u, new Vector3(231.18933f, -72.92926f, -603.1434f), 402) { Fly = true }; @@ -120879,27 +145746,33 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "goatzone"; + Span span66 = CollectionsMarshal.AsSpan(list66); + index = 0; + span66[index] = "goatzone"; questRoot10.Author = list66; - num = 3; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span24 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference45 = ref span24[0]; + index = 3; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + Span span67 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference45 = ref span67[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012290u, new Vector3(760.5248f, -30.307041f, -579.67505f), 402) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012290u, new Vector3(760.5248f, -30.307041f, -579.67505f), 402) { Fly = true }; obj45.Steps = list68; reference45 = obj45; - ref QuestSequence reference46 = ref span24[1]; + num++; + ref QuestSequence reference46 = ref span67[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -120907,7 +145780,9 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list69)[0]; + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + ref QuestStep reference47 = ref span69[index2]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(668.9029f, -86.006f, -775.5664f), 402) { Fly = true, @@ -120916,7 +145791,9 @@ public static class AssemblyQuestLoader num3 = 1; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = new ComplexCombatData + Span span70 = CollectionsMarshal.AsSpan(list70); + num4 = 0; + span70[num4] = new ComplexCombatData { DataId = 4046u, MinimumKillCount = 4u @@ -120925,15 +145802,18 @@ public static class AssemblyQuestLoader reference47 = obj47; obj46.Steps = list69; reference46 = obj46; - ref QuestSequence reference48 = ref span24[2]; + num++; + ref QuestSequence reference48 = ref span67[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012290u, new Vector3(760.5248f, -30.307041f, -579.67505f), 402) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012290u, new Vector3(760.5248f, -30.307041f, -579.67505f), 402) { Fly = true }; @@ -120946,13 +145826,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "goatzone"; + Span span72 = CollectionsMarshal.AsSpan(list72); + index = 0; + span72[index] = "goatzone"; questRoot11.Author = list72; - num = 3; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span25 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference49 = ref span25[0]; + index = 3; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + Span span73 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference49 = ref span73[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -120960,27 +145843,34 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012291u, new Vector3(804.074f, -26.326342f, -527.48914f), 402); + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012291u, new Vector3(804.074f, -26.326342f, -527.48914f), 402); obj49.Steps = list74; reference49 = obj49; - ref QuestSequence reference50 = ref span25[1]; + num++; + ref QuestSequence reference50 = ref span73[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list75)[0]; + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + ref QuestStep reference51 = ref span75[num2]; QuestStep obj51 = new QuestStep(EInteractionType.Combat, null, new Vector3(355.31863f, -46.22946f, -507.70428f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = new ComplexCombatData + num4 = 1; + List list76 = new List(num4); + CollectionsMarshal.SetCount(list76, num4); + Span span76 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span76[num3] = new ComplexCombatData { DataId = 4072u, MinimumKillCount = 4u @@ -120989,7 +145879,8 @@ public static class AssemblyQuestLoader reference51 = obj51; obj50.Steps = list75; reference50 = obj50; - ref QuestSequence reference52 = ref span25[2]; + num++; + ref QuestSequence reference52 = ref span73[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -120997,7 +145888,9 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012291u, new Vector3(804.074f, -26.326342f, -527.48914f), 402) + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012291u, new Vector3(804.074f, -26.326342f, -527.48914f), 402) { Fly = true }; @@ -121010,27 +145903,33 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - CollectionsMarshal.AsSpan(list78)[0] = "goatzone"; + Span span78 = CollectionsMarshal.AsSpan(list78); + index = 0; + span78[index] = "goatzone"; questRoot12.Author = list78; - num = 3; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - Span span26 = CollectionsMarshal.AsSpan(list79); - ref QuestSequence reference53 = ref span26[0]; + index = 3; + List list79 = new List(index); + CollectionsMarshal.SetCount(list79, index); + Span span79 = CollectionsMarshal.AsSpan(list79); + num = 0; + ref QuestSequence reference53 = ref span79[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012292u, new Vector3(583.9779f, 10.93506f, 100.02283f), 402) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012292u, new Vector3(583.9779f, 10.93506f, 100.02283f), 402) { Fly = true }; obj53.Steps = list80; reference53 = obj53; - ref QuestSequence reference54 = ref span26[1]; + num++; + ref QuestSequence reference54 = ref span79[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -121038,7 +145937,9 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list81)[0]; + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + ref QuestStep reference55 = ref span81[index2]; QuestStep obj55 = new QuestStep(EInteractionType.Combat, null, new Vector3(773.4017f, -0.06258035f, 147.04689f), 402) { Fly = true, @@ -121047,25 +145948,33 @@ public static class AssemblyQuestLoader num3 = 5; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - Span span27 = CollectionsMarshal.AsSpan(list82); - span27[0] = 4669u; - span27[1] = 4970u; - span27[2] = 4671u; - span27[3] = 4672u; - span27[4] = 4673u; + Span span82 = CollectionsMarshal.AsSpan(list82); + num4 = 0; + span82[num4] = 4669u; + num4++; + span82[num4] = 4970u; + num4++; + span82[num4] = 4671u; + num4++; + span82[num4] = 4672u; + num4++; + span82[num4] = 4673u; obj55.KillEnemyDataIds = list82; reference55 = obj55; obj54.Steps = list81; reference54 = obj54; - ref QuestSequence reference56 = ref span26[2]; + num++; + ref QuestSequence reference56 = ref span79[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012292u, new Vector3(583.9779f, 10.93506f, 100.02283f), 402) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012292u, new Vector3(583.9779f, 10.93506f, 100.02283f), 402) { Fly = true }; @@ -121078,13 +145987,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "goatzone"; + Span span84 = CollectionsMarshal.AsSpan(list84); + index = 0; + span84[index] = "goatzone"; questRoot13.Author = list84; - num = 3; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span28 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference57 = ref span28[0]; + index = 3; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference57 = ref span85[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -121092,30 +146004,37 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012293u, new Vector3(573.4187f, 13.072888f, 329.2439f), 402) + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012293u, new Vector3(573.4187f, 13.072888f, 329.2439f), 402) { Fly = true }; obj57.Steps = list86; reference57 = obj57; - ref QuestSequence reference58 = ref span28[1]; + num++; + ref QuestSequence reference58 = ref span85[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list87)[0]; + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + ref QuestStep reference59 = ref span87[num2]; QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(495.16974f, 31.67624f, 517.37463f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - CollectionsMarshal.AsSpan(list88)[0] = new ComplexCombatData + num4 = 1; + List list88 = new List(num4); + CollectionsMarshal.SetCount(list88, num4); + Span span88 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span88[num3] = new ComplexCombatData { DataId = 4083u, MinimumKillCount = 4u @@ -121124,7 +146043,8 @@ public static class AssemblyQuestLoader reference59 = obj59; obj58.Steps = list87; reference58 = obj58; - ref QuestSequence reference60 = ref span28[2]; + num++; + ref QuestSequence reference60 = ref span85[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -121132,7 +146052,9 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012293u, new Vector3(573.4187f, 13.072888f, 329.2439f), 402) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012293u, new Vector3(573.4187f, 13.072888f, 329.2439f), 402) { Fly = true }; @@ -121145,27 +146067,33 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "goatzone"; + Span span90 = CollectionsMarshal.AsSpan(list90); + index = 0; + span90[index] = "goatzone"; questRoot14.Author = list90; - num = 3; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span29 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference61 = ref span29[0]; + index = 3; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + Span span91 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference61 = ref span91[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012294u, new Vector3(366.4148f, 20.214104f, 756.7101f), 402) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012294u, new Vector3(366.4148f, 20.214104f, 756.7101f), 402) { Fly = true }; obj61.Steps = list92; reference61 = obj61; - ref QuestSequence reference62 = ref span29[1]; + num++; + ref QuestSequence reference62 = ref span91[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -121173,8 +146101,9 @@ public static class AssemblyQuestLoader num2 = 6; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span30 = CollectionsMarshal.AsSpan(list93); - ref QuestStep reference63 = ref span30[0]; + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + ref QuestStep reference63 = ref span93[index2]; QuestStep obj63 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(505.4667f, 16.87959f, 751.14856f), 402) { Fly = true @@ -121184,98 +146113,142 @@ public static class AssemblyQuestLoader num3 = 6; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - Span span31 = CollectionsMarshal.AsSpan(list94); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span94 = CollectionsMarshal.AsSpan(list94); + num4 = 0; + span94[num4] = null; + num4++; + span94[num4] = null; + num4++; + span94[num4] = null; + num4++; + span94[num4] = null; + num4++; + span94[num4] = null; + num4++; + span94[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list94; skipConditions2.StepIf = skipStepConditions2; obj63.SkipConditions = skipConditions2; reference63 = obj63; - ref QuestStep reference64 = ref span30[1]; + index2++; + ref QuestStep reference64 = ref span93[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2005900u, new Vector3(506.76733f, 16.861145f, 750.24023f), 402); - num3 = 6; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - Span span32 = CollectionsMarshal.AsSpan(list95); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list95 = new List(num4); + CollectionsMarshal.SetCount(list95, num4); + Span span95 = CollectionsMarshal.AsSpan(list95); + num3 = 0; + span95[num3] = null; + num3++; + span95[num3] = null; + num3++; + span95[num3] = null; + num3++; + span95[num3] = null; + num3++; + span95[num3] = null; + num3++; + span95[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list95; reference64 = questStep; - ref QuestStep reference65 = ref span30[2]; + index2++; + ref QuestStep reference65 = ref span93[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2005903u, new Vector3(544.64014f, 15.945618f, 760.61633f), 402); num3 = 6; List list96 = new List(num3); CollectionsMarshal.SetCount(list96, num3); - Span span33 = CollectionsMarshal.AsSpan(list96); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span96 = CollectionsMarshal.AsSpan(list96); + num4 = 0; + span96[num4] = null; + num4++; + span96[num4] = null; + num4++; + span96[num4] = null; + num4++; + span96[num4] = null; + num4++; + span96[num4] = null; + num4++; + span96[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list96; reference65 = questStep2; - ref QuestStep reference66 = ref span30[3]; + index2++; + ref QuestStep reference66 = ref span93[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2005899u, new Vector3(545.4031f, 20.2182f, 802.8534f), 402); - num3 = 6; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - Span span34 = CollectionsMarshal.AsSpan(list97); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list97 = new List(num4); + CollectionsMarshal.SetCount(list97, num4); + Span span97 = CollectionsMarshal.AsSpan(list97); + num3 = 0; + span97[num3] = null; + num3++; + span97[num3] = null; + num3++; + span97[num3] = null; + num3++; + span97[num3] = null; + num3++; + span97[num3] = null; + num3++; + span97[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list97; reference66 = questStep3; - ref QuestStep reference67 = ref span30[4]; + index2++; + ref QuestStep reference67 = ref span93[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2005902u, new Vector3(614.6791f, 20.2182f, 758.938f), 402); num3 = 6; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - Span span35 = CollectionsMarshal.AsSpan(list98); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span98 = CollectionsMarshal.AsSpan(list98); + num4 = 0; + span98[num4] = null; + num4++; + span98[num4] = null; + num4++; + span98[num4] = null; + num4++; + span98[num4] = null; + num4++; + span98[num4] = null; + num4++; + span98[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list98; reference67 = questStep4; - ref QuestStep reference68 = ref span30[5]; + index2++; + ref QuestStep reference68 = ref span93[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2005901u, new Vector3(605.3406f, 15.945618f, 708.06433f), 402); - num3 = 6; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span36 = CollectionsMarshal.AsSpan(list99); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list99 = new List(num4); + CollectionsMarshal.SetCount(list99, num4); + Span span99 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list99; reference68 = questStep5; obj62.Steps = list93; reference62 = obj62; - ref QuestSequence reference69 = ref span29[2]; + num++; + ref QuestSequence reference69 = ref span91[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012294u, new Vector3(366.4148f, 20.214104f, 756.7101f), 402) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012294u, new Vector3(366.4148f, 20.214104f, 756.7101f), 402) { Fly = true }; @@ -121288,13 +146261,16 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "goatzone"; + Span span101 = CollectionsMarshal.AsSpan(list101); + index = 0; + span101[index] = "goatzone"; questRoot15.Author = list101; - num = 3; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span37 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference70 = ref span37[0]; + index = 3; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + Span span102 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference70 = ref span102[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -121302,21 +146278,26 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012295u, new Vector3(214.64856f, 13.75853f, 536.9801f), 402) + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span103[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012295u, new Vector3(214.64856f, 13.75853f, 536.9801f), 402) { Fly = true }; obj65.Steps = list103; reference70 = obj65; - ref QuestSequence reference71 = ref span37[1]; + num++; + ref QuestSequence reference71 = ref span102[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list104)[0]; + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + ref QuestStep reference72 = ref span104[num2]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, null, new Vector3(144.31177f, 5.9740877f, 387.8086f), 402) { Fly = true, @@ -121325,7 +146306,9 @@ public static class AssemblyQuestLoader num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = new ComplexCombatData + Span span105 = CollectionsMarshal.AsSpan(list105); + num4 = 0; + span105[num4] = new ComplexCombatData { DataId = 4630u, MinimumKillCount = 3u @@ -121334,7 +146317,8 @@ public static class AssemblyQuestLoader reference72 = obj67; obj66.Steps = list104; reference71 = obj66; - ref QuestSequence reference73 = ref span37[2]; + num++; + ref QuestSequence reference73 = ref span102[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -121342,7 +146326,9 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012295u, new Vector3(214.64856f, 13.75853f, 536.9801f), 402) + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012295u, new Vector3(214.64856f, 13.75853f, 536.9801f), 402) { Fly = true }; @@ -121355,27 +146341,33 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "goatzone"; + Span span107 = CollectionsMarshal.AsSpan(list107); + index = 0; + span107[index] = "goatzone"; questRoot16.Author = list107; - num = 3; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span38 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference74 = ref span38[0]; + index = 3; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + Span span108 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference74 = ref span108[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012296u, new Vector3(-658.32f, -75.48534f, 699.1531f), 402) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012296u, new Vector3(-658.32f, -75.48534f, 699.1531f), 402) { Fly = true }; obj69.Steps = list109; reference74 = obj69; - ref QuestSequence reference75 = ref span38[1]; + num++; + ref QuestSequence reference75 = ref span108[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -121383,17 +146375,20 @@ public static class AssemblyQuestLoader num2 = 2; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span39 = CollectionsMarshal.AsSpan(list110); - ref QuestStep reference76 = ref span39[0]; + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + ref QuestStep reference76 = ref span110[index2]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, null, new Vector3(-345.30673f, -89.61499f, 353.53f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = new ComplexCombatData + num4 = 1; + List list111 = new List(num4); + CollectionsMarshal.SetCount(list111, num4); + Span span111 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span111[num3] = new ComplexCombatData { DataId = 4075u, MinimumKillCount = 3u @@ -121402,25 +146397,34 @@ public static class AssemblyQuestLoader num3 = 6; List list112 = new List(num3); CollectionsMarshal.SetCount(list112, num3); - Span span40 = CollectionsMarshal.AsSpan(list112); - span40[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = null; + Span span112 = CollectionsMarshal.AsSpan(list112); + num4 = 0; + span112[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span112[num4] = null; + num4++; + span112[num4] = null; + num4++; + span112[num4] = null; + num4++; + span112[num4] = null; + num4++; + span112[num4] = null; obj71.CompletionQuestVariablesFlags = list112; reference76 = obj71; - ref QuestStep reference77 = ref span39[1]; + index2++; + ref QuestStep reference77 = ref span110[index2]; QuestStep obj72 = new QuestStep(EInteractionType.Combat, null, new Vector3(-553.4664f, -104.895905f, 175.68343f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = new ComplexCombatData + num4 = 1; + List list113 = new List(num4); + CollectionsMarshal.SetCount(list113, num4); + Span span113 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span113[num3] = new ComplexCombatData { DataId = 4668u, MinimumKillCount = 3u @@ -121429,15 +146433,18 @@ public static class AssemblyQuestLoader reference77 = obj72; obj70.Steps = list110; reference75 = obj70; - ref QuestSequence reference78 = ref span38[2]; + num++; + ref QuestSequence reference78 = ref span108[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012296u, new Vector3(-658.32f, -75.48534f, 699.1531f), 402) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012296u, new Vector3(-658.32f, -75.48534f, 699.1531f), 402) { Fly = true }; @@ -121450,13 +146457,16 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "goatzone"; + Span span115 = CollectionsMarshal.AsSpan(list115); + index = 0; + span115[index] = "goatzone"; questRoot17.Author = list115; - num = 3; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span41 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference79 = ref span41[0]; + index = 3; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + Span span116 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference79 = ref span116[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -121464,21 +146474,26 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012297u, new Vector3(-554.95544f, -89.69182f, 771.87756f), 402) + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012297u, new Vector3(-554.95544f, -89.69182f, 771.87756f), 402) { Fly = true }; obj74.Steps = list117; reference79 = obj74; - ref QuestSequence reference80 = ref span41[1]; + num++; + ref QuestSequence reference80 = ref span116[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list118)[0]; + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + ref QuestStep reference81 = ref span118[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, null, new Vector3(-679.16223f, -48.151093f, 542.7097f), 402) { Fly = true, @@ -121487,7 +146502,9 @@ public static class AssemblyQuestLoader num3 = 1; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = new ComplexCombatData + Span span119 = CollectionsMarshal.AsSpan(list119); + num4 = 0; + span119[num4] = new ComplexCombatData { DataId = 4095u, MinimumKillCount = 4u @@ -121496,7 +146513,8 @@ public static class AssemblyQuestLoader reference81 = obj76; obj75.Steps = list118; reference80 = obj75; - ref QuestSequence reference82 = ref span41[2]; + num++; + ref QuestSequence reference82 = ref span116[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -121504,7 +146522,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012297u, new Vector3(-554.95544f, -89.69182f, 771.87756f), 402) + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012297u, new Vector3(-554.95544f, -89.69182f, 771.87756f), 402) { Fly = true }; @@ -121517,27 +146537,33 @@ public static class AssemblyQuestLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "goatzone"; + Span span121 = CollectionsMarshal.AsSpan(list121); + index = 0; + span121[index] = "goatzone"; questRoot18.Author = list121; - num = 3; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - Span span42 = CollectionsMarshal.AsSpan(list122); - ref QuestSequence reference83 = ref span42[0]; + index = 3; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + Span span122 = CollectionsMarshal.AsSpan(list122); + num = 0; + ref QuestSequence reference83 = ref span122[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012298u, new Vector3(-192.67572f, -102.749916f, 476.9817f), 402) + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span123[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012298u, new Vector3(-192.67572f, -102.749916f, 476.9817f), 402) { Fly = true }; obj78.Steps = list123; reference83 = obj78; - ref QuestSequence reference84 = ref span42[1]; + num++; + ref QuestSequence reference84 = ref span122[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -121545,17 +146571,20 @@ public static class AssemblyQuestLoader num2 = 3; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span43 = CollectionsMarshal.AsSpan(list124); - ref QuestStep reference85 = ref span43[0]; + Span span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + ref QuestStep reference85 = ref span124[index2]; QuestStep obj80 = new QuestStep(EInteractionType.Combat, null, new Vector3(-375.98807f, -106.10026f, 710.48956f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - CollectionsMarshal.AsSpan(list125)[0] = new ComplexCombatData + num4 = 1; + List list125 = new List(num4); + CollectionsMarshal.SetCount(list125, num4); + Span span125 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span125[num3] = new ComplexCombatData { DataId = 4493u, MinimumKillCount = 1u @@ -121564,24 +146593,33 @@ public static class AssemblyQuestLoader num3 = 6; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - Span span44 = CollectionsMarshal.AsSpan(list126); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span126 = CollectionsMarshal.AsSpan(list126); + num4 = 0; + span126[num4] = null; + num4++; + span126[num4] = null; + num4++; + span126[num4] = null; + num4++; + span126[num4] = null; + num4++; + span126[num4] = null; + num4++; + span126[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj80.CompletionQuestVariablesFlags = list126; reference85 = obj80; - ref QuestStep reference86 = ref span43[1]; + index2++; + ref QuestStep reference86 = ref span124[index2]; QuestStep obj81 = new QuestStep(EInteractionType.Combat, null, new Vector3(-372.88766f, -105.78837f, 746.95245f), 402) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - CollectionsMarshal.AsSpan(list127)[0] = new ComplexCombatData + num4 = 1; + List list127 = new List(num4); + CollectionsMarshal.SetCount(list127, num4); + Span span127 = CollectionsMarshal.AsSpan(list127); + num3 = 0; + span127[num3] = new ComplexCombatData { DataId = 4493u, MinimumKillCount = 1u @@ -121590,24 +146628,33 @@ public static class AssemblyQuestLoader num3 = 6; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - Span span45 = CollectionsMarshal.AsSpan(list128); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span128 = CollectionsMarshal.AsSpan(list128); + num4 = 0; + span128[num4] = null; + num4++; + span128[num4] = null; + num4++; + span128[num4] = null; + num4++; + span128[num4] = null; + num4++; + span128[num4] = null; + num4++; + span128[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj81.CompletionQuestVariablesFlags = list128; reference86 = obj81; - ref QuestStep reference87 = ref span43[2]; + index2++; + ref QuestStep reference87 = ref span124[index2]; QuestStep obj82 = new QuestStep(EInteractionType.Combat, null, new Vector3(-321.94852f, -106.57244f, 716.5662f), 402) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = new ComplexCombatData + num4 = 1; + List list129 = new List(num4); + CollectionsMarshal.SetCount(list129, num4); + Span span129 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span129[num3] = new ComplexCombatData { DataId = 4493u, MinimumKillCount = 1u @@ -121616,26 +146663,35 @@ public static class AssemblyQuestLoader num3 = 6; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span46 = CollectionsMarshal.AsSpan(list130); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span130 = CollectionsMarshal.AsSpan(list130); + num4 = 0; + span130[num4] = null; + num4++; + span130[num4] = null; + num4++; + span130[num4] = null; + num4++; + span130[num4] = null; + num4++; + span130[num4] = null; + num4++; + span130[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj82.CompletionQuestVariablesFlags = list130; reference87 = obj82; obj79.Steps = list124; reference84 = obj79; - ref QuestSequence reference88 = ref span42[2]; + num++; + ref QuestSequence reference88 = ref span122[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012298u, new Vector3(-192.67572f, -102.749916f, 476.9817f), 402) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span131[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012298u, new Vector3(-192.67572f, -102.749916f, 476.9817f), 402) { Fly = true }; @@ -121648,13 +146704,16 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "JerryWester"; + Span span132 = CollectionsMarshal.AsSpan(list132); + index = 0; + span132[index] = "JerryWester"; questRoot19.Author = list132; - num = 4; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span47 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference89 = ref span47[0]; + index = 4; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + Span span133 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference89 = ref span133[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -121662,21 +146721,27 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013332u, new Vector3(94.95691f, -22.000006f, 50.94983f), 418); + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span134[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013332u, new Vector3(94.95691f, -22.000006f, 50.94983f), 418); obj84.Steps = list134; reference89 = obj84; - ref QuestSequence reference90 = ref span47[1]; + num++; + ref QuestSequence reference90 = ref span133[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span135[num2] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); obj85.Steps = list135; reference90 = obj85; - ref QuestSequence reference91 = ref span47[2]; + num++; + ref QuestSequence reference91 = ref span133[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -121684,7 +146749,9 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1013196u, new Vector3(-249.43921f, -20.03492f, -65.0188f), 419) + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span136[index2] = new QuestStep(EInteractionType.Interact, 1013196u, new Vector3(-249.43921f, -20.03492f, -65.0188f), 419) { AethernetShortcut = new AethernetShortcut { @@ -121694,15 +146761,18 @@ public static class AssemblyQuestLoader }; obj86.Steps = list136; reference91 = obj86; - ref QuestSequence reference92 = ref span47[3]; + num++; + ref QuestSequence reference92 = ref span133[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span137[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) { AethernetShortcut = new AethernetShortcut { @@ -121719,13 +146789,16 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "JerryWester"; + Span span138 = CollectionsMarshal.AsSpan(list138); + index = 0; + span138[index] = "JerryWester"; questRoot20.Author = list138; - num = 3; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span48 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference93 = ref span48[0]; + index = 3; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + Span span139 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference93 = ref span139[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -121733,18 +146806,23 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); obj88.Steps = list140; reference93 = obj88; - ref QuestSequence reference94 = ref span48[1]; + num++; + ref QuestSequence reference94 = ref span139[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 1011222u, new Vector3(231.92188f, -13.73494f, -106.85901f), 419) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span141[num2] = new QuestStep(EInteractionType.Interact, 1011222u, new Vector3(231.92188f, -13.73494f, -106.85901f), 419) { AethernetShortcut = new AethernetShortcut { @@ -121754,7 +146832,8 @@ public static class AssemblyQuestLoader }; obj89.Steps = list141; reference94 = obj89; - ref QuestSequence reference95 = ref span48[2]; + num++; + ref QuestSequence reference95 = ref span139[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -121762,7 +146841,9 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) + Span span142 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span142[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) { AethernetShortcut = new AethernetShortcut { @@ -121779,24 +146860,30 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "JerryWester"; + Span span143 = CollectionsMarshal.AsSpan(list143); + index = 0; + span143[index] = "JerryWester"; questRoot21.Author = list143; - num = 3; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span49 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference96 = ref span49[0]; + index = 3; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + Span span144 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference96 = ref span144[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span145[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); obj91.Steps = list145; reference96 = obj91; - ref QuestSequence reference97 = ref span49[1]; + num++; + ref QuestSequence reference97 = ref span144[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -121804,24 +146891,30 @@ public static class AssemblyQuestLoader num2 = 3; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span50 = CollectionsMarshal.AsSpan(list146); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(90.44213f, -3.7030487f, 76.662605f), 418); - span50[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(101.28695f, -20.020874f, 76.39896f), 418) + Span span146 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span146[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(90.44213f, -3.7030487f, 76.662605f), 418); + index2++; + span146[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(101.28695f, -20.020874f, 76.39896f), 418) { DisableNavmesh = true }; - span50[2] = new QuestStep(EInteractionType.Interact, 1012169u, new Vector3(109.391846f, -22.012903f, 29.95337f), 418); + index2++; + span146[index2] = new QuestStep(EInteractionType.Interact, 1012169u, new Vector3(109.391846f, -22.012903f, 29.95337f), 418); obj92.Steps = list146; reference97 = obj92; - ref QuestSequence reference98 = ref span49[2]; + num++; + ref QuestSequence reference98 = ref span144[num]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); obj93.Steps = list147; reference98 = obj93; questRoot21.QuestSequence = list144; @@ -121831,13 +146924,16 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; + Span span148 = CollectionsMarshal.AsSpan(list148); + index = 0; + span148[index] = "JerryWester"; questRoot22.Author = list148; - num = 3; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span51 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference99 = ref span51[0]; + index = 3; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + Span span149 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference99 = ref span149[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 @@ -121845,29 +146941,37 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); obj94.Steps = list150; reference99 = obj94; - ref QuestSequence reference100 = ref span51[1]; + num++; + ref QuestSequence reference100 = ref span149[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - Span span52 = CollectionsMarshal.AsSpan(list151); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(90.44213f, -3.7030487f, 76.662605f), 418); - span52[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(101.28695f, -20.020874f, 76.39896f), 418) + index2 = 3; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span151[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(90.44213f, -3.7030487f, 76.662605f), 418); + num2++; + span151[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(101.28695f, -20.020874f, 76.39896f), 418) { DisableNavmesh = true }; - ref QuestStep reference101 = ref span52[2]; + num2++; + ref QuestStep reference101 = ref span151[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1013340u, new Vector3(144.57922f, -20.020874f, 54.276245f), 418); - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = new DialogueChoice + num4 = 1; + List list152 = new List(num4); + CollectionsMarshal.SetCount(list152, num4); + Span span152 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span152[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA409_01996_Q1_000_000"), @@ -121877,7 +146981,8 @@ public static class AssemblyQuestLoader reference101 = questStep6; obj95.Steps = list151; reference100 = obj95; - ref QuestSequence reference102 = ref span51[2]; + num++; + ref QuestSequence reference102 = ref span149[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -121885,7 +146990,9 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013260u, new Vector3(104.38696f, 15.000005f, 25.558838f), 418); + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013260u, new Vector3(104.38696f, 15.000005f, 25.558838f), 418); obj96.Steps = list153; reference102 = obj96; questRoot22.QuestSequence = list149; @@ -121899,13 +147006,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "kaiser"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "kaiser"; questRoot.Author = list; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 7; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -121913,7 +147023,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -121932,28 +147044,34 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = 419; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = 419; obj3.InTerritory = list4; skipConditions.AetheryteShortcutIf = obj3; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span5[num2] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f }; obj4.Steps = list5; reference3 = obj4; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 2 @@ -121961,29 +147079,37 @@ public static class AssemblyQuestLoader num2 = 3; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span2 = CollectionsMarshal.AsSpan(list6); - ref QuestStep reference5 = ref span2[0]; + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + ref QuestStep reference5 = ref span6[index2]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1012221u, new Vector3(195.08655f, -5.3999624f, -65.65961f), 419) { StopDistance = 4f }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list7; skipConditions2.StepIf = skipStepConditions; obj6.SkipConditions = skipConditions2; reference5 = obj6; - ref QuestStep reference6 = ref span2[1]; + index2++; + ref QuestStep reference6 = ref span6[index2]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 1012223u, new Vector3(188.70825f, -5.3999662f, -68.833435f), 419) { StopDistance = 4f @@ -121993,51 +147119,68 @@ public static class AssemblyQuestLoader num3 = 6; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span4 = CollectionsMarshal.AsSpan(list8); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span8 = CollectionsMarshal.AsSpan(list8); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list8; skipConditions3.StepIf = skipStepConditions2; obj7.SkipConditions = skipConditions3; reference6 = obj7; - ref QuestStep reference7 = ref span2[2]; + index2++; + ref QuestStep reference7 = ref span6[index2]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 1012224u, new Vector3(175.12769f, -5.4349146f, -57.938538f), 419) { StopDistance = 4f }; - num3 = 6; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + Span span9 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj8.CompletionQuestVariablesFlags = list9; reference7 = obj8; obj5.Steps = list6; reference4 = obj5; - ref QuestSequence reference8 = ref span[3]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 4f }; obj9.Steps = list10; reference8 = obj9; - ref QuestSequence reference9 = ref span[4]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 4 @@ -122045,8 +147188,9 @@ public static class AssemblyQuestLoader num2 = 2; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span6 = CollectionsMarshal.AsSpan(list11); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(197.57971f, 307.86523f, 409.82266f), 155) + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(197.57971f, 307.86523f, 409.82266f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -122058,7 +147202,8 @@ public static class AssemblyQuestLoader } } }; - span6[1] = new QuestStep(EInteractionType.Interact, 1014980u, new Vector3(198.6571f, 293.33f, 418.57007f), 155) + index2++; + span11[index2] = new QuestStep(EInteractionType.Interact, 1014980u, new Vector3(198.6571f, 293.33f, 418.57007f), 155) { StopDistance = 4f, Fly = false, @@ -122073,15 +147218,18 @@ public static class AssemblyQuestLoader }; obj10.Steps = list11; reference9 = obj10; - ref QuestSequence reference10 = ref span[5]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1014931u, new Vector3(182.97095f, 7.488976f, -46.830017f), 153) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.Interact, 1014931u, new Vector3(182.97095f, 7.488976f, -46.830017f), 153) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -122095,7 +147243,8 @@ public static class AssemblyQuestLoader }; obj11.Steps = list12; reference10 = obj11; - ref QuestSequence reference11 = ref span[6]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -122103,7 +147252,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014925u, new Vector3(184.49683f, 14.1174555f, 51.92639f), 153) + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014925u, new Vector3(184.49683f, 14.1174555f, 51.92639f), 153) { StopDistance = 5f, Fly = true, @@ -122126,21 +147277,26 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "kaiser"; + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = "kaiser"; questRoot2.Author = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span7 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference12 = ref span7[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference12 = ref span15[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list16)[0]; + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + ref QuestStep reference13 = ref span16[num2]; QuestStep obj14 = new QuestStep(EInteractionType.AcceptQuest, 1014981u, new Vector3(185.62585f, 14.044273f, 50.492065f), 153) { StopDistance = 5f, @@ -122155,14 +147311,17 @@ public static class AssemblyQuestLoader num3 = 1; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = 419; + Span span17 = CollectionsMarshal.AsSpan(list17); + index3 = 0; + span17[index3] = 419; obj15.InTerritory = list17; skipConditions4.AetheryteShortcutIf = obj15; obj14.SkipConditions = skipConditions4; reference13 = obj14; obj13.Steps = list16; reference12 = obj13; - ref QuestSequence reference14 = ref span7[1]; + num++; + ref QuestSequence reference14 = ref span15[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -122170,7 +147329,9 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014981u, new Vector3(185.62585f, 14.044273f, 50.492065f), 153) + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014981u, new Vector3(185.62585f, 14.044273f, 50.492065f), 153) { StopDistance = 5f, Fly = true, @@ -122185,15 +147346,18 @@ public static class AssemblyQuestLoader }; obj16.Steps = list18; reference14 = obj16; - ref QuestSequence reference15 = ref span7[2]; + num++; + ref QuestSequence reference15 = ref span15[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -122213,13 +147377,16 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "kaiser"; + Span span20 = CollectionsMarshal.AsSpan(list20); + index = 0; + span20[index] = "kaiser"; questRoot3.Author = list20; - num = 7; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span8 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference16 = ref span8[0]; + index = 7; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + Span span21 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference16 = ref span21[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -122227,7 +147394,9 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list22)[0]; + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref QuestStep reference17 = ref span22[index2]; QuestStep obj19 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -122243,25 +147412,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = 419; + index3 = 1; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + Span span23 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span23[num3] = 419; obj20.InTerritory = list23; skipConditions5.AetheryteShortcutIf = obj20; obj19.SkipConditions = skipConditions5; reference17 = obj19; obj18.Steps = list22; reference16 = obj18; - ref QuestSequence reference18 = ref span8[1]; + num++; + ref QuestSequence reference18 = ref span21[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1014935u, new Vector3(143.35852f, -6.0896406f, 409.81152f), 145) + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.Interact, 1014935u, new Vector3(143.35852f, -6.0896406f, 409.81152f), 145) { StopDistance = 5f, Fly = true, @@ -122276,7 +147450,8 @@ public static class AssemblyQuestLoader }; obj21.Steps = list24; reference18 = obj21; - ref QuestSequence reference19 = ref span8[2]; + num++; + ref QuestSequence reference19 = ref span21[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 @@ -122284,7 +147459,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 2006314u, new Vector3(143.05322f, -6.149414f, 412.10034f), 145) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.Interact, 2006314u, new Vector3(143.05322f, -6.149414f, 412.10034f), 145) { StopDistance = 2f, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -122298,15 +147475,18 @@ public static class AssemblyQuestLoader }; obj22.Steps = list25; reference19 = obj22; - ref QuestSequence reference20 = ref span8[3]; + num++; + ref QuestSequence reference20 = ref span21[num]; QuestSequence obj23 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1014941u, new Vector3(-61.72278f, 23.150558f, -408.71295f), 146) + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.Interact, 1014941u, new Vector3(-61.72278f, 23.150558f, -408.71295f), 146) { StopDistance = 4f, Fly = false, @@ -122321,7 +147501,8 @@ public static class AssemblyQuestLoader }; obj23.Steps = list26; reference20 = obj23; - ref QuestSequence reference21 = ref span8[4]; + num++; + ref QuestSequence reference21 = ref span21[num]; QuestSequence obj24 = new QuestSequence { Sequence = 4 @@ -122329,7 +147510,9 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 2006315u, new Vector3(-60.16632f, 23.147888f, -406.79028f), 146) + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.Interact, 2006315u, new Vector3(-60.16632f, 23.147888f, -406.79028f), 146) { StopDistance = 2f, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, @@ -122343,15 +147526,18 @@ public static class AssemblyQuestLoader }; obj24.Steps = list27; reference21 = obj24; - ref QuestSequence reference22 = ref span8[5]; + num++; + ref QuestSequence reference22 = ref span21[num]; QuestSequence obj25 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1014941u, new Vector3(-61.72278f, 23.150558f, -408.71295f), 146) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.Interact, 1014941u, new Vector3(-61.72278f, 23.150558f, -408.71295f), 146) { StopDistance = 3f, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, @@ -122365,7 +147551,8 @@ public static class AssemblyQuestLoader }; obj25.Steps = list28; reference22 = obj25; - ref QuestSequence reference23 = ref span8[6]; + num++; + ref QuestSequence reference23 = ref span21[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -122373,7 +147560,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -122393,21 +147582,26 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "kaiser"; + Span span30 = CollectionsMarshal.AsSpan(list30); + index = 0; + span30[index] = "kaiser"; questRoot4.Author = list30; - num = 2; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span9 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference24 = ref span9[0]; + index = 2; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + Span span31 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference24 = ref span31[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list32)[0]; + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + ref QuestStep reference25 = ref span32[num2]; QuestStep obj28 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -122426,14 +147620,17 @@ public static class AssemblyQuestLoader num3 = 1; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = 419; + Span span33 = CollectionsMarshal.AsSpan(list33); + index3 = 0; + span33[index3] = 419; obj29.InTerritory = list33; skipConditions6.AetheryteShortcutIf = obj29; obj28.SkipConditions = skipConditions6; reference25 = obj28; obj27.Steps = list32; reference24 = obj27; - ref QuestSequence reference26 = ref span9[1]; + num++; + ref QuestSequence reference26 = ref span31[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -122441,7 +147638,9 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014944u, new Vector3(199.93884f, -0.899981f, -48.722107f), 419) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014944u, new Vector3(199.93884f, -0.899981f, -48.722107f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -122473,21 +147672,26 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "kaiser"; + Span span35 = CollectionsMarshal.AsSpan(list35); + index = 0; + span35[index] = "kaiser"; questRoot5.Author = list35; - num = 7; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span10 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference27 = ref span10[0]; + index = 7; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + Span span36 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference27 = ref span36[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list37)[0]; + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + ref QuestStep reference28 = ref span37[num2]; QuestStep obj32 = new QuestStep(EInteractionType.AcceptQuest, 1014944u, new Vector3(199.93884f, -0.899981f, -48.722107f), 419) { StopDistance = 5f, @@ -122503,17 +147707,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = 419; + index3 = 1; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = 419; obj33.InTerritory = list38; skipConditions7.AetheryteShortcutIf = obj33; obj32.SkipConditions = skipConditions7; reference28 = obj32; obj31.Steps = list37; reference27 = obj31; - ref QuestSequence reference29 = ref span10[1]; + num++; + ref QuestSequence reference29 = ref span36[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -122521,7 +147728,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -122545,15 +147754,18 @@ public static class AssemblyQuestLoader }; obj34.Steps = list39; reference29 = obj34; - ref QuestSequence reference30 = ref span10[2]; + num++; + ref QuestSequence reference30 = ref span36[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1014946u, new Vector3(-189.89856f, 16f, 58.182617f), 129) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.Interact, 1014946u, new Vector3(-189.89856f, 16f, 58.182617f), 129) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -122572,7 +147784,8 @@ public static class AssemblyQuestLoader }; obj35.Steps = list40; reference30 = obj35; - ref QuestSequence reference31 = ref span10[3]; + num++; + ref QuestSequence reference31 = ref span36[num]; QuestSequence obj36 = new QuestSequence { Sequence = 3 @@ -122580,8 +147793,9 @@ public static class AssemblyQuestLoader num2 = 4; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span11 = CollectionsMarshal.AsSpan(list41); - ref QuestStep reference32 = ref span11[0]; + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + ref QuestStep reference32 = ref span41[index2]; QuestStep obj37 = new QuestStep(EInteractionType.Interact, 1014947u, new Vector3(-187.85382f, 3.9999306f, 170.1228f), 129) { StopDistance = 5f, @@ -122597,13 +147811,19 @@ public static class AssemblyQuestLoader num3 = 6; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span12 = CollectionsMarshal.AsSpan(list42); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span42 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list42; skipConditions8.StepIf = skipStepConditions3; skipConditions8.AetheryteShortcutIf = new SkipAetheryteCondition @@ -122612,7 +147832,8 @@ public static class AssemblyQuestLoader }; obj37.SkipConditions = skipConditions8; reference32 = obj37; - ref QuestStep reference33 = ref span11[1]; + index2++; + ref QuestStep reference33 = ref span41[index2]; QuestStep obj38 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-2.1358607f, 45.631218f, -258.50027f), 128) { AethernetShortcut = new AethernetShortcut @@ -122623,15 +147844,18 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = 128; + index3 = 1; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span43[num3] = 128; skipStepConditions4.InTerritory = list43; skipConditions9.StepIf = skipStepConditions4; obj38.SkipConditions = skipConditions9; reference33 = obj38; - ref QuestStep reference34 = ref span11[2]; + index2++; + ref QuestStep reference34 = ref span41[index2]; QuestStep obj39 = new QuestStep(EInteractionType.Interact, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) { StopDistance = 5f @@ -122639,43 +147863,59 @@ public static class AssemblyQuestLoader num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span13 = CollectionsMarshal.AsSpan(list44); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span44 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj39.CompletionQuestVariablesFlags = list44; reference34 = obj39; - ref QuestStep reference35 = ref span11[3]; + index2++; + ref QuestStep reference35 = ref span41[index2]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 1002680u, new Vector3(1.4800415f, 30.47563f, -242.20648f), 128) { StopDistance = 5f }; - num3 = 6; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - Span span14 = CollectionsMarshal.AsSpan(list45); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + Span span45 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj40.CompletionQuestVariablesFlags = list45; reference35 = obj40; obj36.Steps = list41; reference31 = obj36; - ref QuestSequence reference36 = ref span10[4]; + num++; + ref QuestSequence reference36 = ref span36[num]; QuestSequence obj41 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1014948u, new Vector3(17.166382f, 47.600006f, -160.23505f), 128) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.Interact, 1014948u, new Vector3(17.166382f, 47.600006f, -160.23505f), 128) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -122687,7 +147927,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list46; reference36 = obj41; - ref QuestSequence reference37 = ref span10[5]; + num++; + ref QuestSequence reference37 = ref span36[num]; QuestSequence obj42 = new QuestSequence { Sequence = 5 @@ -122695,18 +147936,23 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2006316u, new Vector3(17.715698f, 47.592896f, -160.47919f), 128); + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2006316u, new Vector3(17.715698f, 47.592896f, -160.47919f), 128); obj42.Steps = list47; reference37 = obj42; - ref QuestSequence reference38 = ref span10[6]; + num++; + ref QuestSequence reference38 = ref span36[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -122738,13 +147984,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "kaiser"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "kaiser"; questRoot6.Author = list49; - num = 6; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span15 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference39 = ref span15[0]; + index = 6; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference39 = ref span50[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -122752,7 +148001,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list51)[0]; + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + ref QuestStep reference40 = ref span51[index2]; QuestStep obj45 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -122771,23 +148022,27 @@ public static class AssemblyQuestLoader num3 = 1; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = 419; + Span span52 = CollectionsMarshal.AsSpan(list52); + index3 = 0; + span52[index3] = 419; obj46.InTerritory = list52; skipConditions10.AetheryteShortcutIf = obj46; obj45.SkipConditions = skipConditions10; reference40 = obj45; obj44.Steps = list51; reference39 = obj44; - ref QuestSequence reference41 = ref span15[1]; + num++; + ref QuestSequence reference41 = ref span50[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - Span span16 = CollectionsMarshal.AsSpan(list53); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(197.69202f, 307.86456f, 409.4611f), 155) + index2 = 2; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(197.69202f, 307.86456f, 409.4611f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -122799,7 +148054,8 @@ public static class AssemblyQuestLoader } } }; - span16[1] = new QuestStep(EInteractionType.Interact, 1006377u, new Vector3(200.97656f, 293.33f, 420.37073f), 155) + num2++; + span53[num2] = new QuestStep(EInteractionType.Interact, 1006377u, new Vector3(200.97656f, 293.33f, 420.37073f), 155) { StopDistance = 4f, Fly = false, @@ -122814,7 +148070,8 @@ public static class AssemblyQuestLoader }; obj47.Steps = list53; reference41 = obj47; - ref QuestSequence reference42 = ref span15[2]; + num++; + ref QuestSequence reference42 = ref span50[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -122822,7 +148079,9 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -122846,15 +148105,18 @@ public static class AssemblyQuestLoader }; obj48.Steps = list54; reference42 = obj48; - ref QuestSequence reference43 = ref span15[3]; + num++; + ref QuestSequence reference43 = ref span50[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014949u, new Vector3(-159.65515f, 40.350307f, -194.7204f), 156) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014949u, new Vector3(-159.65515f, 40.350307f, -194.7204f), 156) { StopDistance = 5f, Fly = true, @@ -122863,7 +148125,8 @@ public static class AssemblyQuestLoader }; obj49.Steps = list55; reference43 = obj49; - ref QuestSequence reference44 = ref span15[4]; + num++; + ref QuestSequence reference44 = ref span50[num]; QuestSequence obj50 = new QuestSequence { Sequence = 4 @@ -122871,21 +148134,26 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 2006318u, new Vector3(-147.2649f, 43.320312f, -186.63312f), 156) + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.Interact, 2006318u, new Vector3(-147.2649f, 43.320312f, -186.63312f), 156) { StopDistance = 3f }; obj50.Steps = list56; reference44 = obj50; - ref QuestSequence reference45 = ref span15[5]; + num++; + ref QuestSequence reference45 = ref span50[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -122917,13 +148185,16 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "kaiser"; + Span span58 = CollectionsMarshal.AsSpan(list58); + index = 0; + span58[index] = "kaiser"; questRoot7.Author = list58; - num = 2; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span17 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference46 = ref span17[0]; + index = 2; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + Span span59 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference46 = ref span59[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -122931,7 +148202,9 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list60)[0]; + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + ref QuestStep reference47 = ref span60[index2]; QuestStep obj53 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -122947,25 +148220,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - CollectionsMarshal.AsSpan(list61)[0] = 419; + index3 = 1; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = 419; obj54.InTerritory = list61; skipConditions11.AetheryteShortcutIf = obj54; obj53.SkipConditions = skipConditions11; reference47 = obj53; obj52.Steps = list60; reference46 = obj52; - ref QuestSequence reference48 = ref span17[1]; + num++; + ref QuestSequence reference48 = ref span59[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014944u, new Vector3(199.93884f, -0.899981f, -48.722107f), 419) + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014944u, new Vector3(199.93884f, -0.899981f, -48.722107f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -122997,13 +148275,16 @@ public static class AssemblyQuestLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = "kaiser"; + Span span63 = CollectionsMarshal.AsSpan(list63); + index = 0; + span63[index] = "kaiser"; questRoot8.Author = list63; - num = 6; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - Span span18 = CollectionsMarshal.AsSpan(list64); - ref QuestSequence reference49 = ref span18[0]; + index = 6; + List list64 = new List(index); + CollectionsMarshal.SetCount(list64, index); + Span span64 = CollectionsMarshal.AsSpan(list64); + num = 0; + ref QuestSequence reference49 = ref span64[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -123011,7 +148292,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list65)[0]; + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + ref QuestStep reference50 = ref span65[index2]; QuestStep obj57 = new QuestStep(EInteractionType.AcceptQuest, 1014944u, new Vector3(199.93884f, -0.899981f, -48.722107f), 419) { StopDistance = 5f, @@ -123030,22 +148313,27 @@ public static class AssemblyQuestLoader num3 = 1; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = 419; + Span span66 = CollectionsMarshal.AsSpan(list66); + index3 = 0; + span66[index3] = 419; obj58.InTerritory = list66; skipConditions12.AetheryteShortcutIf = obj58; obj57.SkipConditions = skipConditions12; reference50 = obj57; obj56.Steps = list65; reference49 = obj56; - ref QuestSequence reference51 = ref span18[1]; + num++; + ref QuestSequence reference51 = ref span64[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -123069,7 +148357,8 @@ public static class AssemblyQuestLoader }; obj59.Steps = list67; reference51 = obj59; - ref QuestSequence reference52 = ref span18[2]; + num++; + ref QuestSequence reference52 = ref span64[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -123077,22 +148366,27 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014957u, new Vector3(238.78845f, 302f, -277.97363f), 155) + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014957u, new Vector3(238.78845f, 302f, -277.97363f), 155) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj60.Steps = list68; reference52 = obj60; - ref QuestSequence reference53 = ref span18[3]; + num++; + ref QuestSequence reference53 = ref span64[num]; QuestSequence obj61 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1014960u, new Vector3(262.83667f, 359.1351f, -688.3192f), 155) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.Interact, 1014960u, new Vector3(262.83667f, 359.1351f, -688.3192f), 155) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -123106,7 +148400,8 @@ public static class AssemblyQuestLoader }; obj61.Steps = list69; reference53 = obj61; - ref QuestSequence reference54 = ref span18[4]; + num++; + ref QuestSequence reference54 = ref span64[num]; QuestSequence obj62 = new QuestSequence { Sequence = 4 @@ -123114,7 +148409,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1014961u, new Vector3(259.72375f, 359.09564f, -689.93665f), 155) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.Interact, 1014961u, new Vector3(259.72375f, 359.09564f, -689.93665f), 155) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -123128,15 +148425,18 @@ public static class AssemblyQuestLoader }; obj62.Steps = list70; reference54 = obj62; - ref QuestSequence reference55 = ref span18[5]; + num++; + ref QuestSequence reference55 = ref span64[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 2006367u, new Vector3(205.92041f, 307.8507f, 412.25293f), 155) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.CompleteQuest, 2006367u, new Vector3(205.92041f, 307.8507f, 412.25293f), 155) { StopDistance = 2f, Fly = true, @@ -123152,13 +148452,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "kaiser"; + Span span72 = CollectionsMarshal.AsSpan(list72); + index = 0; + span72[index] = "kaiser"; questRoot9.Author = list72; - num = 7; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span19 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference56 = ref span19[0]; + index = 7; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + Span span73 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference56 = ref span73[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -123166,7 +148469,9 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list74)[0]; + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + ref QuestStep reference57 = ref span74[index2]; QuestStep obj65 = new QuestStep(EInteractionType.AcceptQuest, 1015127u, new Vector3(204.60815f, 307.87106f, 414.63342f), 155) { StopDistance = 3f, @@ -123178,26 +148483,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = 419; + index3 = 1; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span75 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span75[num3] = 419; obj66.InTerritory = list75; skipConditions13.AetheryteShortcutIf = obj66; obj65.SkipConditions = skipConditions13; reference57 = obj65; obj64.Steps = list74; reference56 = obj64; - ref QuestSequence reference58 = ref span19[1]; + num++; + ref QuestSequence reference58 = ref span73[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span20 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference59 = ref span20[0]; + index2 = 3; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + ref QuestStep reference59 = ref span76[num2]; QuestStep obj68 = new QuestStep(EInteractionType.Interact, 1006377u, new Vector3(200.97656f, 293.33f, 420.37073f), 155) { StopDistance = 4f @@ -123207,31 +148516,40 @@ public static class AssemblyQuestLoader num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - Span span21 = CollectionsMarshal.AsSpan(list77); - span21[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span77 = CollectionsMarshal.AsSpan(list77); + index3 = 0; + span77[index3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span77[index3] = null; + index3++; + span77[index3] = null; + index3++; + span77[index3] = null; + index3++; + span77[index3] = null; + index3++; + span77[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list77; skipConditions14.StepIf = skipStepConditions5; obj68.SkipConditions = skipConditions14; reference59 = obj68; - span20[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(205.51671f, 285.27087f, 413.4063f), 155) + num2++; + span76[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(205.51671f, 285.27087f, 413.4063f), 155) { JumpDestination = new JumpDestination { Position = new Vector3(198.82875f, 234.59601f, 424.70218f) } }; - span20[2] = new QuestStep(EInteractionType.Interact, 1006376u, new Vector3(195.3612f, 234.79839f, 419.3026f), 155) + num2++; + span76[num2] = new QuestStep(EInteractionType.Interact, 1006376u, new Vector3(195.3612f, 234.79839f, 419.3026f), 155) { StopDistance = 3f }; obj67.Steps = list76; reference58 = obj67; - ref QuestSequence reference60 = ref span19[2]; + num++; + ref QuestSequence reference60 = ref span73[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -123239,7 +148557,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -123263,21 +148583,25 @@ public static class AssemblyQuestLoader }; obj69.Steps = list78; reference60 = obj69; - ref QuestSequence reference61 = ref span19[3]; + num++; + ref QuestSequence reference61 = ref span73[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1015128u, new Vector3(116.472046f, -4.734893f, -52.567383f), 419) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.Interact, 1015128u, new Vector3(116.472046f, -4.734893f, -52.567383f), 419) { StopDistance = 5f }; obj70.Steps = list79; reference61 = obj70; - ref QuestSequence reference62 = ref span19[4]; + num++; + ref QuestSequence reference62 = ref span73[num]; QuestSequence obj71 = new QuestSequence { Sequence = 4 @@ -123285,27 +148609,33 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1015130u, new Vector3(51.743286f, 11.741424f, 27.115234f), 419) + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.Interact, 1015130u, new Vector3(51.743286f, 11.741424f, 27.115234f), 419) { StopDistance = 5f }; obj71.Steps = list80; reference62 = obj71; - ref QuestSequence reference63 = ref span19[5]; + num++; + ref QuestSequence reference63 = ref span73[num]; QuestSequence obj72 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1015129u, new Vector3(-0.07635498f, 11.965096f, 44.327393f), 419) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.Interact, 1015129u, new Vector3(-0.07635498f, 11.965096f, 44.327393f), 419) { StopDistance = 5f }; obj72.Steps = list81; reference63 = obj72; - ref QuestSequence reference64 = ref span19[6]; + num++; + ref QuestSequence reference64 = ref span73[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -123313,7 +148643,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -123345,21 +148677,26 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "kaiser"; + Span span83 = CollectionsMarshal.AsSpan(list83); + index = 0; + span83[index] = "kaiser"; questRoot10.Author = list83; - num = 10; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span22 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference65 = ref span22[0]; + index = 10; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + Span span84 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference65 = ref span84[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference66 = ref CollectionsMarshal.AsSpan(list85)[0]; + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference66 = ref span85[num2]; QuestStep obj75 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -123375,17 +148712,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = 419; + index3 = 1; + List list86 = new List(index3); + CollectionsMarshal.SetCount(list86, index3); + Span span86 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span86[num3] = 419; obj76.InTerritory = list86; skipConditions15.AetheryteShortcutIf = obj76; obj75.SkipConditions = skipConditions15; reference66 = obj75; obj74.Steps = list85; reference65 = obj74; - ref QuestSequence reference67 = ref span22[1]; + num++; + ref QuestSequence reference67 = ref span84[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -123393,7 +148733,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1015142u, new Vector3(446.98242f, 217.95142f, 753.994f), 397) + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.Interact, 1015142u, new Vector3(446.98242f, 217.95142f, 753.994f), 397) { StopDistance = 5f, Fly = true, @@ -123408,15 +148750,18 @@ public static class AssemblyQuestLoader }; obj77.Steps = list87; reference67 = obj77; - ref QuestSequence reference68 = ref span22[2]; + num++; + ref QuestSequence reference68 = ref span84[num]; QuestSequence obj78 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1015145u, new Vector3(487.17468f, 200.23772f, 656.27515f), 397) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Interact, 1015145u, new Vector3(487.17468f, 200.23772f, 656.27515f), 397) { StopDistance = 5f, Fly = true, @@ -123431,7 +148776,8 @@ public static class AssemblyQuestLoader }; obj78.Steps = list88; reference68 = obj78; - ref QuestSequence reference69 = ref span22[3]; + num++; + ref QuestSequence reference69 = ref span84[num]; QuestSequence obj79 = new QuestSequence { Sequence = 3 @@ -123439,22 +148785,27 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Action, 1015146u, new Vector3(485.0995f, 200.2377f, 654.68823f), 397) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.Action, 1015146u, new Vector3(485.0995f, 200.2377f, 654.68823f), 397) { StopDistance = 4f, Action = EAction.AspectedBenefic }; obj79.Steps = list89; reference69 = obj79; - ref QuestSequence reference70 = ref span22[4]; + num++; + ref QuestSequence reference70 = ref span84[num]; QuestSequence obj80 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list90)[0]; + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + ref QuestStep reference71 = ref span90[num2]; QuestStep obj81 = new QuestStep(EInteractionType.Combat, null, new Vector3(501.1413f, 161.74702f, -318.04788f), 397) { StopDistance = 3f, @@ -123465,13 +148816,15 @@ public static class AssemblyQuestLoader num3 = 2; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - Span span23 = CollectionsMarshal.AsSpan(list91); - span23[0] = new ComplexCombatData + Span span91 = CollectionsMarshal.AsSpan(list91); + index3 = 0; + span91[index3] = new ComplexCombatData { DataId = 4619u, MinimumKillCount = 1u }; - span23[1] = new ComplexCombatData + index3++; + span91[index3] = new ComplexCombatData { DataId = 4360u, MinimumKillCount = 2u @@ -123487,7 +148840,8 @@ public static class AssemblyQuestLoader reference71 = obj81; obj80.Steps = list90; reference70 = obj80; - ref QuestSequence reference72 = ref span22[5]; + num++; + ref QuestSequence reference72 = ref span84[num]; QuestSequence obj82 = new QuestSequence { Sequence = 5 @@ -123495,22 +148849,27 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Action, 1015147u, new Vector3(500.11438f, 161.61157f, -320.02753f), 397) + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.Action, 1015147u, new Vector3(500.11438f, 161.61157f, -320.02753f), 397) { StopDistance = 3f, Action = EAction.AspectedBenefic }; obj82.Steps = list92; reference72 = obj82; - ref QuestSequence reference73 = ref span22[6]; + num++; + ref QuestSequence reference73 = ref span84[num]; QuestSequence obj83 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1015142u, new Vector3(446.98242f, 217.95142f, 753.994f), 397) + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.Interact, 1015142u, new Vector3(446.98242f, 217.95142f, 753.994f), 397) { StopDistance = 4f, Fly = true, @@ -123518,7 +148877,8 @@ public static class AssemblyQuestLoader }; obj83.Steps = list93; reference73 = obj83; - ref QuestSequence reference74 = ref span22[7]; + num++; + ref QuestSequence reference74 = ref span84[num]; QuestSequence obj84 = new QuestSequence { Sequence = 7 @@ -123526,37 +148886,44 @@ public static class AssemblyQuestLoader num2 = 3; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span24 = CollectionsMarshal.AsSpan(list94); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(529.5874f, 227.05162f, 717.32074f), 397) + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(529.5874f, 227.05162f, 717.32074f), 397) { Fly = true }; - span24[1] = new QuestStep(EInteractionType.None, null, null, 397) + index2++; + span94[index2] = new QuestStep(EInteractionType.None, null, null, 397) { Mount = false }; - span24[2] = new QuestStep(EInteractionType.Interact, 1015149u, new Vector3(533.59265f, 228.33778f, 720.2715f), 397) + index2++; + span94[index2] = new QuestStep(EInteractionType.Interact, 1015149u, new Vector3(533.59265f, 228.33778f, 720.2715f), 397) { StopDistance = 4f }; obj84.Steps = list94; reference74 = obj84; - ref QuestSequence reference75 = ref span22[8]; + num++; + ref QuestSequence reference75 = ref span84[num]; QuestSequence obj85 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1015151u, new Vector3(541.25256f, 228.85133f, 742.5497f), 397) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.Interact, 1015151u, new Vector3(541.25256f, 228.85133f, 742.5497f), 397) { StopDistance = 4f, Fly = false }; obj85.Steps = list95; reference75 = obj85; - ref QuestSequence reference76 = ref span22[9]; + num++; + ref QuestSequence reference76 = ref span84[num]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -123564,7 +148931,9 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -123596,21 +148965,26 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "kaiser"; + Span span97 = CollectionsMarshal.AsSpan(list97); + index = 0; + span97[index] = "kaiser"; questRoot11.Author = list97; - num = 6; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span25 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference77 = ref span25[0]; + index = 6; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference77 = ref span98[num]; QuestSequence obj87 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list99)[0]; + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + ref QuestStep reference78 = ref span99[num2]; QuestStep obj88 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -123626,17 +149000,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = 419; + index3 = 1; + List list100 = new List(index3); + CollectionsMarshal.SetCount(list100, index3); + Span span100 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span100[num3] = 419; obj89.InTerritory = list100; skipConditions16.AetheryteShortcutIf = obj89; obj88.SkipConditions = skipConditions16; reference78 = obj88; obj87.Steps = list99; reference77 = obj87; - ref QuestSequence reference79 = ref span25[1]; + num++; + ref QuestSequence reference79 = ref span98[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 @@ -123644,7 +149021,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1015168u, new Vector3(-266.01056f, 126.407364f, -0.045776367f), 397) + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.Interact, 1015168u, new Vector3(-266.01056f, 126.407364f, -0.045776367f), 397) { StopDistance = 5f, Fly = true, @@ -123659,16 +149038,18 @@ public static class AssemblyQuestLoader }; obj90.Steps = list101; reference79 = obj90; - ref QuestSequence reference80 = ref span25[2]; + num++; + ref QuestSequence reference80 = ref span98[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span26 = CollectionsMarshal.AsSpan(list102); - ref QuestStep reference81 = ref span26[0]; + index2 = 3; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + ref QuestStep reference81 = ref span102[num2]; QuestStep obj92 = new QuestStep(EInteractionType.Action, 1015169u, new Vector3(-311.42145f, 126.83597f, 3.4942627f), 397) { StopDistance = 4f, @@ -123677,34 +149058,48 @@ public static class AssemblyQuestLoader num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - Span span27 = CollectionsMarshal.AsSpan(list103); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span103 = CollectionsMarshal.AsSpan(list103); + index3 = 0; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj92.CompletionQuestVariablesFlags = list103; reference81 = obj92; - ref QuestStep reference82 = ref span26[1]; + num2++; + ref QuestStep reference82 = ref span102[num2]; QuestStep obj93 = new QuestStep(EInteractionType.Action, 1015171u, new Vector3(-320.02753f, 126.52038f, -14.023071f), 397) { StopDistance = 4f, Action = EAction.AspectedBenefic }; - num3 = 6; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - Span span28 = CollectionsMarshal.AsSpan(list104); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list104 = new List(index3); + CollectionsMarshal.SetCount(list104, index3); + Span span104 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span104[num3] = null; + num3++; + span104[num3] = null; + num3++; + span104[num3] = null; + num3++; + span104[num3] = null; + num3++; + span104[num3] = null; + num3++; + span104[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj93.CompletionQuestVariablesFlags = list104; reference82 = obj93; - ref QuestStep reference83 = ref span26[2]; + num2++; + ref QuestStep reference83 = ref span102[num2]; QuestStep obj94 = new QuestStep(EInteractionType.Action, 1015170u, new Vector3(-296.86432f, 125.87531f, -14.389343f), 397) { StopDistance = 4f, @@ -123713,18 +149108,25 @@ public static class AssemblyQuestLoader num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span29 = CollectionsMarshal.AsSpan(list105); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span105 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj94.CompletionQuestVariablesFlags = list105; reference83 = obj94; obj91.Steps = list102; reference80 = obj91; - ref QuestSequence reference84 = ref span25[3]; + num++; + ref QuestSequence reference84 = ref span98[num]; QuestSequence obj95 = new QuestSequence { Sequence = 3 @@ -123732,28 +149134,34 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1015163u, new Vector3(-310.0786f, 125.02021f, -25.192688f), 397) + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.Interact, 1015163u, new Vector3(-310.0786f, 125.02021f, -25.192688f), 397) { StopDistance = 4f }; obj95.Steps = list106; reference84 = obj95; - ref QuestSequence reference85 = ref span25[4]; + num++; + ref QuestSequence reference85 = ref span98[num]; QuestSequence obj96 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Action, 1015178u, new Vector3(-310.0786f, 125.02021f, -25.192688f), 397) + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.Action, 1015178u, new Vector3(-310.0786f, 125.02021f, -25.192688f), 397) { StopDistance = 4f, Action = EAction.AspectedBenefic }; obj96.Steps = list107; reference85 = obj96; - ref QuestSequence reference86 = ref span25[5]; + num++; + ref QuestSequence reference86 = ref span98[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue @@ -123761,7 +149169,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -123793,21 +149203,26 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "kaiser"; + Span span109 = CollectionsMarshal.AsSpan(list109); + index = 0; + span109[index] = "kaiser"; questRoot12.Author = list109; - num = 6; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span30 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference87 = ref span30[0]; + index = 6; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + Span span110 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference87 = ref span110[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list111)[0]; + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + ref QuestStep reference88 = ref span111[num2]; QuestStep obj99 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -123823,17 +149238,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - CollectionsMarshal.AsSpan(list112)[0] = 419; + index3 = 1; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + Span span112 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span112[num3] = 419; obj100.InTerritory = list112; skipConditions17.AetheryteShortcutIf = obj100; obj99.SkipConditions = skipConditions17; reference88 = obj99; obj98.Steps = list111; reference87 = obj98; - ref QuestSequence reference89 = ref span30[1]; + num++; + ref QuestSequence reference89 = ref span110[num]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -123841,7 +149259,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1015084u, new Vector3(487.08313f, -51.1414f, 33.340942f), 398) + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.Interact, 1015084u, new Vector3(487.08313f, -51.1414f, 33.340942f), 398) { StopDistance = 5f, Fly = false, @@ -123856,16 +149276,18 @@ public static class AssemblyQuestLoader }; obj101.Steps = list113; reference89 = obj101; - ref QuestSequence reference90 = ref span30[2]; + num++; + ref QuestSequence reference90 = ref span110[num]; QuestSequence obj102 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span31 = CollectionsMarshal.AsSpan(list114); - ref QuestStep reference91 = ref span31[0]; + index2 = 3; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + ref QuestStep reference91 = ref span114[num2]; QuestStep obj103 = new QuestStep(EInteractionType.Action, 1015094u, new Vector3(472.03772f, -51.14139f, 8.590759f), 398) { StopDistance = 4f, @@ -123874,34 +149296,48 @@ public static class AssemblyQuestLoader num3 = 6; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - Span span32 = CollectionsMarshal.AsSpan(list115); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span115 = CollectionsMarshal.AsSpan(list115); + index3 = 0; + span115[index3] = null; + index3++; + span115[index3] = null; + index3++; + span115[index3] = null; + index3++; + span115[index3] = null; + index3++; + span115[index3] = null; + index3++; + span115[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj103.CompletionQuestVariablesFlags = list115; reference91 = obj103; - ref QuestStep reference92 = ref span31[1]; + num2++; + ref QuestStep reference92 = ref span114[num2]; QuestStep obj104 = new QuestStep(EInteractionType.Action, 1015092u, new Vector3(560.9979f, -51.27571f, 62.974f), 398) { StopDistance = 4f, Action = EAction.AspectedBenefic }; - num3 = 6; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - Span span33 = CollectionsMarshal.AsSpan(list116); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list116 = new List(index3); + CollectionsMarshal.SetCount(list116, index3); + Span span116 = CollectionsMarshal.AsSpan(list116); + num3 = 0; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj104.CompletionQuestVariablesFlags = list116; reference92 = obj104; - ref QuestStep reference93 = ref span31[2]; + num2++; + ref QuestStep reference93 = ref span114[num2]; QuestStep obj105 = new QuestStep(EInteractionType.Action, 1015093u, new Vector3(465.568f, -51.19559f, 98.10022f), 398) { StopDistance = 4f, @@ -123910,18 +149346,25 @@ public static class AssemblyQuestLoader num3 = 6; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - Span span34 = CollectionsMarshal.AsSpan(list117); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span117 = CollectionsMarshal.AsSpan(list117); + index3 = 0; + span117[index3] = null; + index3++; + span117[index3] = null; + index3++; + span117[index3] = null; + index3++; + span117[index3] = null; + index3++; + span117[index3] = null; + index3++; + span117[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj105.CompletionQuestVariablesFlags = list117; reference93 = obj105; obj102.Steps = list114; reference90 = obj102; - ref QuestSequence reference94 = ref span30[3]; + num++; + ref QuestSequence reference94 = ref span110[num]; QuestSequence obj106 = new QuestSequence { Sequence = 3 @@ -123929,7 +149372,9 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1015087u, new Vector3(509.75806f, -51.32657f, 75.913574f), 398) + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span118[index2] = new QuestStep(EInteractionType.Interact, 1015087u, new Vector3(509.75806f, -51.32657f, 75.913574f), 398) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, @@ -123943,15 +149388,18 @@ public static class AssemblyQuestLoader }; obj106.Steps = list118; reference94 = obj106; - ref QuestSequence reference95 = ref span30[4]; + num++; + ref QuestSequence reference95 = ref span110[num]; QuestSequence obj107 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015095u, new Vector3(731.56323f, -40.98759f, -27.420471f), 398) + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span119[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015095u, new Vector3(731.56323f, -40.98759f, -27.420471f), 398) { StopDistance = 4f, Fly = true, @@ -123966,7 +149414,8 @@ public static class AssemblyQuestLoader }; obj107.Steps = list119; reference95 = obj107; - ref QuestSequence reference96 = ref span30[5]; + num++; + ref QuestSequence reference96 = ref span110[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue @@ -123974,7 +149423,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -124006,21 +149457,26 @@ public static class AssemblyQuestLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "kaiser"; + Span span121 = CollectionsMarshal.AsSpan(list121); + index = 0; + span121[index] = "kaiser"; questRoot13.Author = list121; - num = 9; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - Span span35 = CollectionsMarshal.AsSpan(list122); - ref QuestSequence reference97 = ref span35[0]; + index = 9; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + Span span122 = CollectionsMarshal.AsSpan(list122); + num = 0; + ref QuestSequence reference97 = ref span122[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list123)[0]; + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + ref QuestStep reference98 = ref span123[num2]; QuestStep obj110 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -124036,17 +149492,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = 419; + index3 = 1; + List list124 = new List(index3); + CollectionsMarshal.SetCount(list124, index3); + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span124[num3] = 419; obj111.InTerritory = list124; skipConditions18.AetheryteShortcutIf = obj111; obj110.SkipConditions = skipConditions18; reference98 = obj110; obj109.Steps = list123; reference97 = obj109; - ref QuestSequence reference99 = ref span35[1]; + num++; + ref QuestSequence reference99 = ref span122[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -124054,7 +149513,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1015181u, new Vector3(707.94226f, 204.32489f, -252.49103f), 397) + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.Interact, 1015181u, new Vector3(707.94226f, 204.32489f, -252.49103f), 397) { StopDistance = 5f, Fly = true, @@ -124069,22 +149530,26 @@ public static class AssemblyQuestLoader }; obj112.Steps = list125; reference99 = obj112; - ref QuestSequence reference100 = ref span35[2]; + num++; + ref QuestSequence reference100 = ref span122[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Action, 1015190u, new Vector3(679.1942f, 207.2133f, -273.82324f), 397) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.Action, 1015190u, new Vector3(679.1942f, 207.2133f, -273.82324f), 397) { StopDistance = 4f, Action = EAction.AspectedBenefic }; obj113.Steps = list126; reference100 = obj113; - ref QuestSequence reference101 = ref span35[3]; + num++; + ref QuestSequence reference101 = ref span122[num]; QuestSequence obj114 = new QuestSequence { Sequence = 3 @@ -124092,29 +149557,35 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Action, 1015191u, new Vector3(651.78906f, 207.92256f, -268.29938f), 397) + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.Action, 1015191u, new Vector3(651.78906f, 207.92256f, -268.29938f), 397) { StopDistance = 4f, Action = EAction.AspectedBenefic }; obj114.Steps = list127; reference101 = obj114; - ref QuestSequence reference102 = ref span35[4]; + num++; + ref QuestSequence reference102 = ref span122[num]; QuestSequence obj115 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Action, 1015192u, new Vector3(652.82666f, 209.09976f, -282.70392f), 397) + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.Action, 1015192u, new Vector3(652.82666f, 209.09976f, -282.70392f), 397) { StopDistance = 4f, Action = EAction.AspectedBenefic }; obj115.Steps = list128; reference102 = obj115; - ref QuestSequence reference103 = ref span35[5]; + num++; + ref QuestSequence reference103 = ref span122[num]; QuestSequence obj116 = new QuestSequence { Sequence = 5 @@ -124122,8 +149593,9 @@ public static class AssemblyQuestLoader num2 = 2; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span36 = CollectionsMarshal.AsSpan(list129); - ref QuestStep reference104 = ref span36[0]; + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + ref QuestStep reference104 = ref span129[index2]; QuestStep obj117 = new QuestStep(EInteractionType.Combat, null, new Vector3(614.313f, 210.86438f, -301.28937f), 397) { StopDistance = 3f, @@ -124132,31 +149604,38 @@ public static class AssemblyQuestLoader num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = new ComplexCombatData + Span span130 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span130[index3] = new ComplexCombatData { DataId = 4676u, MinimumKillCount = 3u }; obj117.ComplexCombatData = list130; reference104 = obj117; - span36[1] = new QuestStep(EInteractionType.Interact, 2006415u, new Vector3(614.313f, 210.86438f, -301.28937f), 397); + index2++; + span129[index2] = new QuestStep(EInteractionType.Interact, 2006415u, new Vector3(614.313f, 210.86438f, -301.28937f), 397); obj116.Steps = list129; reference103 = obj116; - ref QuestSequence reference105 = ref span35[6]; + num++; + ref QuestSequence reference105 = ref span122[num]; QuestSequence obj118 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1015197u, new Vector3(614.25183f, 210.67752f, -300.1908f), 397) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span131[num2] = new QuestStep(EInteractionType.Interact, 1015197u, new Vector3(614.25183f, 210.67752f, -300.1908f), 397) { StopDistance = 3f }; obj118.Steps = list131; reference105 = obj118; - ref QuestSequence reference106 = ref span35[7]; + num++; + ref QuestSequence reference106 = ref span122[num]; QuestSequence obj119 = new QuestSequence { Sequence = 7 @@ -124164,22 +149643,27 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1015181u, new Vector3(707.94226f, 204.32489f, -252.49103f), 397) + Span span132 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span132[index2] = new QuestStep(EInteractionType.Interact, 1015181u, new Vector3(707.94226f, 204.32489f, -252.49103f), 397) { StopDistance = 5f, Fly = true }; obj119.Steps = list132; reference106 = obj119; - ref QuestSequence reference107 = ref span35[8]; + num++; + ref QuestSequence reference107 = ref span122[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -124211,13 +149695,16 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "kaiser"; + Span span134 = CollectionsMarshal.AsSpan(list134); + index = 0; + span134[index] = "kaiser"; questRoot14.Author = list134; - num = 6; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span37 = CollectionsMarshal.AsSpan(list135); - ref QuestSequence reference108 = ref span37[0]; + index = 6; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + Span span135 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref QuestSequence reference108 = ref span135[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -124225,7 +149712,9 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - ref QuestStep reference109 = ref CollectionsMarshal.AsSpan(list136)[0]; + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + ref QuestStep reference109 = ref span136[index2]; QuestStep obj122 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -124241,25 +149730,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - CollectionsMarshal.AsSpan(list137)[0] = 419; + index3 = 1; + List list137 = new List(index3); + CollectionsMarshal.SetCount(list137, index3); + Span span137 = CollectionsMarshal.AsSpan(list137); + num3 = 0; + span137[num3] = 419; obj123.InTerritory = list137; skipConditions19.AetheryteShortcutIf = obj123; obj122.SkipConditions = skipConditions19; reference109 = obj122; obj121.Steps = list136; reference108 = obj121; - ref QuestSequence reference110 = ref span37[1]; + num++; + ref QuestSequence reference110 = ref span135[num]; QuestSequence obj124 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1015108u, new Vector3(-359.42633f, 141.55403f, -215.32007f), 399) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.Interact, 1015108u, new Vector3(-359.42633f, 141.55403f, -215.32007f), 399) { StopDistance = 5f, Fly = true, @@ -124279,7 +149773,8 @@ public static class AssemblyQuestLoader }; obj124.Steps = list138; reference110 = obj124; - ref QuestSequence reference111 = ref span37[2]; + num++; + ref QuestSequence reference111 = ref span135[num]; QuestSequence obj125 = new QuestSequence { Sequence = 2 @@ -124287,7 +149782,9 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list139)[0]; + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + ref QuestStep reference112 = ref span139[index2]; QuestStep obj126 = new QuestStep(EInteractionType.Interact, 1015111u, new Vector3(-447.65393f, 159.354f, 147.63098f), 399) { StopDistance = 5f, @@ -124304,7 +149801,9 @@ public static class AssemblyQuestLoader num3 = 1; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - CollectionsMarshal.AsSpan(list140)[0] = 399; + Span span140 = CollectionsMarshal.AsSpan(list140); + index3 = 0; + span140[index3] = 399; skipAetheryteCondition.InTerritory = list140; skipConditions20.AetheryteShortcutIf = skipAetheryteCondition; skipConditions20.AethernetShortcutIf = new SkipAetheryteCondition @@ -124315,15 +149814,18 @@ public static class AssemblyQuestLoader reference112 = obj126; obj125.Steps = list139; reference111 = obj125; - ref QuestSequence reference113 = ref span37[3]; + num++; + ref QuestSequence reference113 = ref span135[num]; QuestSequence obj127 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - ref QuestStep reference114 = ref CollectionsMarshal.AsSpan(list141)[0]; + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + ref QuestStep reference114 = ref span141[num2]; QuestStep obj128 = new QuestStep(EInteractionType.SinglePlayerDuty, 1015114u, new Vector3(-370.47382f, 147.34354f, 59.128662f), 399) { StopDistance = 4f, @@ -124340,10 +149842,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = 399; + index3 = 1; + List list142 = new List(index3); + CollectionsMarshal.SetCount(list142, index3); + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span142[num3] = 399; obj129.InTerritory = list142; skipConditions21.AetheryteShortcutIf = obj129; skipConditions21.AethernetShortcutIf = new SkipAetheryteCondition @@ -124354,7 +149858,8 @@ public static class AssemblyQuestLoader reference114 = obj128; obj127.Steps = list141; reference113 = obj127; - ref QuestSequence reference115 = ref span37[4]; + num++; + ref QuestSequence reference115 = ref span135[num]; QuestSequence obj130 = new QuestSequence { Sequence = 4 @@ -124362,21 +149867,26 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1015114u, new Vector3(-370.47382f, 147.34354f, 59.128662f), 399) + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.Interact, 1015114u, new Vector3(-370.47382f, 147.34354f, 59.128662f), 399) { StopDistance = 4f }; obj130.Steps = list143; reference115 = obj130; - ref QuestSequence reference116 = ref span37[5]; + num++; + ref QuestSequence reference116 = ref span135[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -124408,13 +149918,16 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "plogon_enjoyer"; + Span span145 = CollectionsMarshal.AsSpan(list145); + index = 0; + span145[index] = "plogon_enjoyer"; questRoot15.Author = list145; - num = 9; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span38 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference117 = ref span38[0]; + index = 9; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + Span span146 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference117 = ref span146[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 @@ -124422,7 +149935,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - ref QuestStep reference118 = ref CollectionsMarshal.AsSpan(list147)[0]; + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + ref QuestStep reference118 = ref span147[index2]; QuestStep obj133 = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -124437,9 +149952,11 @@ public static class AssemblyQuestLoader num3 = 2; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - Span span39 = CollectionsMarshal.AsSpan(list148); - span39[0] = 130; - span39[1] = 131; + Span span148 = CollectionsMarshal.AsSpan(list148); + index3 = 0; + span148[index3] = 130; + index3++; + span148[index3] = 131; skipAetheryteCondition2.InTerritory = list148; skipConditions22.AetheryteShortcutIf = skipAetheryteCondition2; skipConditions22.AethernetShortcutIf = new SkipAetheryteCondition @@ -124450,22 +149967,26 @@ public static class AssemblyQuestLoader reference118 = obj133; obj132.Steps = list147; reference117 = obj132; - ref QuestSequence reference119 = ref span38[1]; + num++; + ref QuestSequence reference119 = ref span146[num]; QuestSequence obj134 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.Interact, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj134.Steps = list149; reference119 = obj134; - ref QuestSequence reference120 = ref span38[2]; + num++; + ref QuestSequence reference120 = ref span146[num]; QuestSequence obj135 = new QuestSequence { Sequence = 2 @@ -124473,35 +149994,43 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1013976u, new Vector3(95.87244f, -4.4635005f, -533.56226f), 156) + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new QuestStep(EInteractionType.Interact, 1013976u, new Vector3(95.87244f, -4.4635005f, -533.56226f), 156) { Fly = true }; obj135.Steps = list150; reference120 = obj135; - ref QuestSequence reference121 = ref span38[3]; + num++; + ref QuestSequence reference121 = ref span146[num]; QuestSequence obj136 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - ref QuestStep reference122 = ref CollectionsMarshal.AsSpan(list151)[0]; + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + ref QuestStep reference122 = ref span151[num2]; QuestStep obj137 = new QuestStep(EInteractionType.Combat, 1013977u, new Vector3(207.53784f, 18.12324f, -608.75867f), 156) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = 777u; + index3 = 1; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + Span span152 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span152[num3] = 777u; obj137.KillEnemyDataIds = list152; reference122 = obj137; obj136.Steps = list151; reference121 = obj136; - ref QuestSequence reference123 = ref span38[4]; + num++; + ref QuestSequence reference123 = ref span146[num]; QuestSequence obj138 = new QuestSequence { Sequence = 4 @@ -124509,18 +150038,23 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1013977u, new Vector3(207.53784f, 18.12324f, -608.75867f), 156); + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.Interact, 1013977u, new Vector3(207.53784f, 18.12324f, -608.75867f), 156); obj138.Steps = list153; reference123 = obj138; - ref QuestSequence reference124 = ref span38[5]; + num++; + ref QuestSequence reference124 = ref span146[num]; QuestSequence obj139 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list154)[0]; + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref QuestStep reference125 = ref span154[num2]; QuestStep obj140 = new QuestStep(EInteractionType.Combat, 1013978u, new Vector3(205.95093f, -22.991264f, -449.24084f), 156) { Fly = true, @@ -124529,12 +150063,15 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 4615u; + Span span155 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span155[index3] = 4615u; obj140.KillEnemyDataIds = list155; reference125 = obj140; obj139.Steps = list154; reference124 = obj139; - ref QuestSequence reference126 = ref span38[6]; + num++; + ref QuestSequence reference126 = ref span146[num]; QuestSequence obj141 = new QuestSequence { Sequence = 6 @@ -124542,24 +150079,30 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1013978u, new Vector3(205.95093f, -22.991264f, -449.24084f), 156); + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new QuestStep(EInteractionType.Interact, 1013978u, new Vector3(205.95093f, -22.991264f, -449.24084f), 156); obj141.Steps = list156; reference126 = obj141; - ref QuestSequence reference127 = ref span38[7]; + num++; + ref QuestSequence reference127 = ref span146[num]; QuestSequence obj142 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1014111u, new Vector3(95.87244f, -4.4635005f, -533.56226f), 156) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span157[num2] = new QuestStep(EInteractionType.Interact, 1014111u, new Vector3(95.87244f, -4.4635005f, -533.56226f), 156) { Fly = true }; obj142.Steps = list157; reference127 = obj142; - ref QuestSequence reference128 = ref span38[8]; + num++; + ref QuestSequence reference128 = ref span146[num]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -124567,7 +150110,9 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -124582,21 +150127,26 @@ public static class AssemblyQuestLoader num = 1; List list159 = new List(num); CollectionsMarshal.SetCount(list159, num); - CollectionsMarshal.AsSpan(list159)[0] = "plogon_enjoyer"; + Span span159 = CollectionsMarshal.AsSpan(list159); + index = 0; + span159[index] = "plogon_enjoyer"; questRoot16.Author = list159; - num = 10; - List list160 = new List(num); - CollectionsMarshal.SetCount(list160, num); - Span span40 = CollectionsMarshal.AsSpan(list160); - ref QuestSequence reference129 = ref span40[0]; + index = 10; + List list160 = new List(index); + CollectionsMarshal.SetCount(list160, index); + Span span160 = CollectionsMarshal.AsSpan(list160); + num = 0; + ref QuestSequence reference129 = ref span160[num]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + Span span161 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span161[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -124609,7 +150159,8 @@ public static class AssemblyQuestLoader }; obj144.Steps = list161; reference129 = obj144; - ref QuestSequence reference130 = ref span40[1]; + num++; + ref QuestSequence reference130 = ref span160[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -124617,29 +150168,35 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 1013982u, new Vector3(-73.0755f, 2.668869f, -622.52234f), 156) + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.Interact, 1013982u, new Vector3(-73.0755f, 2.668869f, -622.52234f), 156) { Fly = true }; obj145.Steps = list162; reference130 = obj145; - ref QuestSequence reference131 = ref span40[2]; + num++; + ref QuestSequence reference131 = ref span160[num]; QuestSequence obj146 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - Span span41 = CollectionsMarshal.AsSpan(list163); - span41[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-144.73549f, 1.9077771f, -655.4047f), 156) + index2 = 2; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span163[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-144.73549f, 1.9077771f, -655.4047f), 156) { Fly = true }; - span41[1] = new QuestStep(EInteractionType.Interact, 1013984u, new Vector3(-142.22937f, 1.3916924f, -654.13904f), 156); + num2++; + span163[num2] = new QuestStep(EInteractionType.Interact, 1013984u, new Vector3(-142.22937f, 1.3916924f, -654.13904f), 156); obj146.Steps = list163; reference131 = obj146; - ref QuestSequence reference132 = ref span40[3]; + num++; + ref QuestSequence reference132 = ref span160[num]; QuestSequence obj147 = new QuestSequence { Sequence = 3 @@ -124647,36 +150204,44 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list164)[0]; + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + ref QuestStep reference133 = ref span164[index2]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, null, new Vector3(-142.22937f, 1.3916924f, -654.13904f), 156) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - CollectionsMarshal.AsSpan(list165)[0] = 5047u; + index3 = 1; + List list165 = new List(index3); + CollectionsMarshal.SetCount(list165, index3); + Span span165 = CollectionsMarshal.AsSpan(list165); + num3 = 0; + span165[num3] = 5047u; obj148.KillEnemyDataIds = list165; reference133 = obj148; obj147.Steps = list164; reference132 = obj147; - ref QuestSequence reference134 = ref span40[4]; + num++; + ref QuestSequence reference134 = ref span160[num]; QuestSequence obj149 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span42 = CollectionsMarshal.AsSpan(list166); - span42[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-222.99123f, 3.602174f, -625.4028f), 156) + index2 = 2; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-222.99123f, 3.602174f, -625.4028f), 156) { Fly = true }; - span42[1] = new QuestStep(EInteractionType.Interact, 1013987u, new Vector3(-223.40735f, 4.1458693f, -628.32074f), 156); + num2++; + span166[num2] = new QuestStep(EInteractionType.Interact, 1013987u, new Vector3(-223.40735f, 4.1458693f, -628.32074f), 156); obj149.Steps = list166; reference134 = obj149; - ref QuestSequence reference135 = ref span40[5]; + num++; + ref QuestSequence reference135 = ref span160[num]; QuestSequence obj150 = new QuestSequence { Sequence = 5 @@ -124684,7 +150249,9 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - ref QuestStep reference136 = ref CollectionsMarshal.AsSpan(list167)[0]; + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + ref QuestStep reference136 = ref span167[index2]; QuestStep obj151 = new QuestStep(EInteractionType.Combat, null, new Vector3(-223.40735f, 4.1458693f, -628.32074f), 156) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -124692,28 +150259,34 @@ public static class AssemblyQuestLoader num3 = 1; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = 5047u; + Span span168 = CollectionsMarshal.AsSpan(list168); + index3 = 0; + span168[index3] = 5047u; obj151.KillEnemyDataIds = list168; reference136 = obj151; obj150.Steps = list167; reference135 = obj150; - ref QuestSequence reference137 = ref span40[6]; + num++; + ref QuestSequence reference137 = ref span160[num]; QuestSequence obj152 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - Span span43 = CollectionsMarshal.AsSpan(list169); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-256.7943f, -5.5647316f, -542.8478f), 156) + index2 = 2; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + Span span169 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span169[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-256.7943f, -5.5647316f, -542.8478f), 156) { Fly = true }; - span43[1] = new QuestStep(EInteractionType.Interact, 1013990u, new Vector3(-253.83386f, -5.455734f, -542.87024f), 156); + num2++; + span169[num2] = new QuestStep(EInteractionType.Interact, 1013990u, new Vector3(-253.83386f, -5.455734f, -542.87024f), 156); obj152.Steps = list169; reference137 = obj152; - ref QuestSequence reference138 = ref span40[7]; + num++; + ref QuestSequence reference138 = ref span160[num]; QuestSequence obj153 = new QuestSequence { Sequence = 7 @@ -124721,34 +150294,42 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - ref QuestStep reference139 = ref CollectionsMarshal.AsSpan(list170)[0]; + Span span170 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + ref QuestStep reference139 = ref span170[index2]; QuestStep obj154 = new QuestStep(EInteractionType.Combat, null, new Vector3(-253.83386f, -5.455734f, -542.87024f), 156) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list171 = new List(num3); - CollectionsMarshal.SetCount(list171, num3); - CollectionsMarshal.AsSpan(list171)[0] = 5043u; + index3 = 1; + List list171 = new List(index3); + CollectionsMarshal.SetCount(list171, index3); + Span span171 = CollectionsMarshal.AsSpan(list171); + num3 = 0; + span171[num3] = 5043u; obj154.KillEnemyDataIds = list171; reference139 = obj154; obj153.Steps = list170; reference138 = obj153; - ref QuestSequence reference140 = ref span40[8]; + num++; + ref QuestSequence reference140 = ref span160[num]; QuestSequence obj155 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1013994u, new Vector3(-402.36517f, -14.213073f, -502.06763f), 156) + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span172[num2] = new QuestStep(EInteractionType.Interact, 1013994u, new Vector3(-402.36517f, -14.213073f, -502.06763f), 156) { Fly = true }; obj155.Steps = list172; reference140 = obj155; - ref QuestSequence reference141 = ref span40[9]; + num++; + ref QuestSequence reference141 = ref span160[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -124756,7 +150337,9 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -124771,21 +150354,26 @@ public static class AssemblyQuestLoader num = 1; List list174 = new List(num); CollectionsMarshal.SetCount(list174, num); - CollectionsMarshal.AsSpan(list174)[0] = "plogon_enjoyer"; + Span span174 = CollectionsMarshal.AsSpan(list174); + index = 0; + span174[index] = "plogon_enjoyer"; questRoot17.Author = list174; - num = 4; - List list175 = new List(num); - CollectionsMarshal.SetCount(list175, num); - Span span44 = CollectionsMarshal.AsSpan(list175); - ref QuestSequence reference142 = ref span44[0]; + index = 4; + List list175 = new List(index); + CollectionsMarshal.SetCount(list175, index); + Span span175 = CollectionsMarshal.AsSpan(list175); + num = 0; + ref QuestSequence reference142 = ref span175[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + index2 = 1; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + Span span176 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span176[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -124798,7 +150386,8 @@ public static class AssemblyQuestLoader }; obj157.Steps = list176; reference142 = obj157; - ref QuestSequence reference143 = ref span44[1]; + num++; + ref QuestSequence reference143 = ref span175[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -124806,28 +150395,34 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013997u, new Vector3(-78.29407f, 68.34659f, -157.33582f), 147) + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span177[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013997u, new Vector3(-78.29407f, 68.34659f, -157.33582f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; obj158.Steps = list177; reference143 = obj158; - ref QuestSequence reference144 = ref span44[2]; + num++; + ref QuestSequence reference144 = ref span175[num]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1013997u, new Vector3(-78.29407f, 68.34659f, -157.33582f), 147) + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + Span span178 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span178[num2] = new QuestStep(EInteractionType.Interact, 1013997u, new Vector3(-78.29407f, 68.34659f, -157.33582f), 147) { StopDistance = 4f }; obj159.Steps = list178; reference144 = obj159; - ref QuestSequence reference145 = ref span44[3]; + num++; + ref QuestSequence reference145 = ref span175[num]; QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue @@ -124835,7 +150430,9 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + Span span179 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span179[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -124850,21 +150447,26 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "plogon_enjoyer"; + Span span180 = CollectionsMarshal.AsSpan(list180); + index = 0; + span180[index] = "plogon_enjoyer"; questRoot18.Author = list180; - num = 5; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - Span span45 = CollectionsMarshal.AsSpan(list181); - ref QuestSequence reference146 = ref span45[0]; + index = 5; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + Span span181 = CollectionsMarshal.AsSpan(list181); + num = 0; + ref QuestSequence reference146 = ref span181[num]; QuestSequence obj161 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -124877,7 +150479,8 @@ public static class AssemblyQuestLoader }; obj161.Steps = list182; reference146 = obj161; - ref QuestSequence reference147 = ref span45[1]; + num++; + ref QuestSequence reference147 = ref span181[num]; QuestSequence obj162 = new QuestSequence { Sequence = 1 @@ -124885,22 +150488,27 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1013999u, new Vector3(33.89026f, -8.812927f, 126.17676f), 154) + Span span183 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span183[index2] = new QuestStep(EInteractionType.Interact, 1013999u, new Vector3(33.89026f, -8.812927f, 126.17676f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj162.Steps = list183; reference147 = obj162; - ref QuestSequence reference148 = ref span45[2]; + num++; + ref QuestSequence reference148 = ref span181[num]; QuestSequence obj163 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - ref QuestStep reference149 = ref CollectionsMarshal.AsSpan(list184)[0]; + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + ref QuestStep reference149 = ref span184[num2]; QuestStep obj164 = new QuestStep(EInteractionType.Combat, 2005966u, new Vector3(163.53088f, -27.328918f, 207.84314f), 154) { Fly = true, @@ -124909,12 +150517,15 @@ public static class AssemblyQuestLoader num3 = 1; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = 5043u; + Span span185 = CollectionsMarshal.AsSpan(list185); + index3 = 0; + span185[index3] = 5043u; obj164.KillEnemyDataIds = list185; reference149 = obj164; obj163.Steps = list184; reference148 = obj163; - ref QuestSequence reference150 = ref span45[3]; + num++; + ref QuestSequence reference150 = ref span181[num]; QuestSequence obj165 = new QuestSequence { Sequence = 3 @@ -124922,21 +150533,26 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1014001u, new Vector3(404.89807f, -5.4588227f, 72.342896f), 154) + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.Interact, 1014001u, new Vector3(404.89807f, -5.4588227f, 72.342896f), 154) { Fly = true }; obj165.Steps = list186; reference150 = obj165; - ref QuestSequence reference151 = ref span45[4]; + num++; + ref QuestSequence reference151 = ref span181[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -124951,13 +150567,16 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "plogon_enjoyer"; + Span span188 = CollectionsMarshal.AsSpan(list188); + index = 0; + span188[index] = "plogon_enjoyer"; questRoot19.Author = list188; - num = 7; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span46 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference152 = ref span46[0]; + index = 7; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + Span span189 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference152 = ref span189[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 @@ -124965,7 +150584,9 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -124978,27 +150599,31 @@ public static class AssemblyQuestLoader }; obj167.Steps = list190; reference152 = obj167; - ref QuestSequence reference153 = ref span46[1]; + num++; + ref QuestSequence reference153 = ref span189[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - Span span47 = CollectionsMarshal.AsSpan(list191); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(873.8737f, -3.1452856f, 352.47165f), 398) + index2 = 2; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(873.8737f, -3.1452856f, 352.47165f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span47[1] = new QuestStep(EInteractionType.Interact, 1014005u, new Vector3(-631.22f, 121.245285f, -652.39954f), 397) + num2++; + span191[num2] = new QuestStep(EInteractionType.Interact, 1014005u, new Vector3(-631.22f, 121.245285f, -652.39954f), 397) { Fly = true }; obj168.Steps = list191; reference153 = obj168; - ref QuestSequence reference154 = ref span46[2]; + num++; + ref QuestSequence reference154 = ref span189[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -125006,35 +150631,43 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list192)[0]; + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + ref QuestStep reference155 = ref span192[index2]; QuestStep obj170 = new QuestStep(EInteractionType.Combat, 2005967u, new Vector3(-556.9696f, 116.68567f, -794.0032f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - CollectionsMarshal.AsSpan(list193)[0] = 4627u; + index3 = 1; + List list193 = new List(index3); + CollectionsMarshal.SetCount(list193, index3); + Span span193 = CollectionsMarshal.AsSpan(list193); + num3 = 0; + span193[num3] = 4627u; obj170.KillEnemyDataIds = list193; reference155 = obj170; obj169.Steps = list192; reference154 = obj169; - ref QuestSequence reference156 = ref span46[3]; + num++; + ref QuestSequence reference156 = ref span189[num]; QuestSequence obj171 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1014006u, new Vector3(-627.19165f, 121.248f, -648.5847f), 397) + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.Interact, 1014006u, new Vector3(-627.19165f, 121.248f, -648.5847f), 397) { Fly = true }; obj171.Steps = list194; reference156 = obj171; - ref QuestSequence reference157 = ref span46[4]; + num++; + ref QuestSequence reference157 = ref span189[num]; QuestSequence obj172 = new QuestSequence { Sequence = 4 @@ -125042,25 +150675,31 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1014007u, new Vector3(-621.51526f, 121.248f, -649.13403f), 397); + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span195[index2] = new QuestStep(EInteractionType.Interact, 1014007u, new Vector3(-621.51526f, 121.248f, -649.13403f), 397); obj172.Steps = list195; reference157 = obj172; - ref QuestSequence reference158 = ref span46[5]; + num++; + ref QuestSequence reference158 = ref span189[num]; QuestSequence obj173 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Emote, 1014010u, new Vector3(-621.51526f, 121.248f, -649.13403f), 397) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.Emote, 1014010u, new Vector3(-621.51526f, 121.248f, -649.13403f), 397) { DelaySecondsAtStart = 1f, Emote = EEmote.Rally }; obj173.Steps = list196; reference158 = obj173; - ref QuestSequence reference159 = ref span46[6]; + num++; + ref QuestSequence reference159 = ref span189[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue @@ -125068,7 +150707,9 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -125083,21 +150724,26 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "plogon_enjoyer"; + Span span198 = CollectionsMarshal.AsSpan(list198); + index = 0; + span198[index] = "plogon_enjoyer"; questRoot20.Author = list198; - num = 4; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span48 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference160 = ref span48[0]; + index = 4; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + Span span199 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference160 = ref span199[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -125110,7 +150756,8 @@ public static class AssemblyQuestLoader }; obj175.Steps = list200; reference160 = obj175; - ref QuestSequence reference161 = ref span48[1]; + num++; + ref QuestSequence reference161 = ref span199[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 @@ -125118,7 +150765,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - ref QuestStep reference162 = ref CollectionsMarshal.AsSpan(list201)[0]; + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + ref QuestStep reference162 = ref span201[index2]; QuestStep obj177 = new QuestStep(EInteractionType.Interact, 1014012u, new Vector3(-142.1684f, 26.764246f, -357.50366f), 146) { Fly = true, @@ -125127,7 +150776,9 @@ public static class AssemblyQuestLoader num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = new DialogueChoice + Span span202 = CollectionsMarshal.AsSpan(list202); + index3 = 0; + span202[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMNK600_02031_Q1_000_000"), @@ -125137,18 +150788,22 @@ public static class AssemblyQuestLoader reference162 = obj177; obj176.Steps = list201; reference161 = obj176; - ref QuestSequence reference163 = ref span48[2]; + num++; + ref QuestSequence reference163 = ref span199[num]; QuestSequence obj178 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014011u, new Vector3(-143.08392f, 26.654997f, -358.114f), 146); + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014011u, new Vector3(-143.08392f, 26.654997f, -358.114f), 146); obj178.Steps = list203; reference163 = obj178; - ref QuestSequence reference164 = ref span48[3]; + num++; + ref QuestSequence reference164 = ref span199[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -125156,7 +150811,9 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014112u, new Vector3(-149.34009f, 12.685881f, -260.91406f), 146) + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span204[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014112u, new Vector3(-149.34009f, 12.685881f, -260.91406f), 146) { StopDistance = 4f, NextQuestId = new QuestId(2426) @@ -125170,21 +150827,26 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "goatzone"; + Span span205 = CollectionsMarshal.AsSpan(list205); + index = 0; + span205[index] = "goatzone"; questRoot21.Author = list205; - num = 7; - List list206 = new List(num); - CollectionsMarshal.SetCount(list206, num); - Span span49 = CollectionsMarshal.AsSpan(list206); - ref QuestSequence reference165 = ref span49[0]; + index = 7; + List list206 = new List(index); + CollectionsMarshal.SetCount(list206, index); + Span span206 = CollectionsMarshal.AsSpan(list206); + num = 0; + ref QuestSequence reference165 = ref span206[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - ref QuestStep reference166 = ref CollectionsMarshal.AsSpan(list207)[0]; + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + Span span207 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + ref QuestStep reference166 = ref span207[num2]; QuestStep obj181 = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -125199,10 +150861,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = 131; + index3 = 1; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + Span span208 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span208[num3] = 131; obj182.InTerritory = list208; skipConditions23.AetheryteShortcutIf = obj182; skipConditions23.AethernetShortcutIf = new SkipAetheryteCondition @@ -125213,7 +150877,8 @@ public static class AssemblyQuestLoader reference166 = obj181; obj180.Steps = list207; reference165 = obj180; - ref QuestSequence reference167 = ref span49[1]; + num++; + ref QuestSequence reference167 = ref span206[num]; QuestSequence obj183 = new QuestSequence { Sequence = 1 @@ -125221,7 +150886,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1014046u, new Vector3(38.223755f, 5.000002f, 404.28784f), 147) + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new QuestStep(EInteractionType.Interact, 1014046u, new Vector3(38.223755f, 5.000002f, 404.28784f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog, SkipConditions = new SkipConditions @@ -125234,21 +150901,25 @@ public static class AssemblyQuestLoader }; obj183.Steps = list209; reference167 = obj183; - ref QuestSequence reference168 = ref span49[2]; + num++; + ref QuestSequence reference168 = ref span206[num]; QuestSequence obj184 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1014121u, new Vector3(47.104614f, 14.24741f, 197.92468f), 147) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span210[num2] = new QuestStep(EInteractionType.Interact, 1014121u, new Vector3(47.104614f, 14.24741f, 197.92468f), 147) { Fly = true }; obj184.Steps = list210; reference168 = obj184; - ref QuestSequence reference169 = ref span49[3]; + num++; + ref QuestSequence reference169 = ref span206[num]; QuestSequence obj185 = new QuestSequence { Sequence = 3 @@ -125256,7 +150927,9 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list211)[0]; + Span span211 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + ref QuestStep reference170 = ref span211[index2]; QuestStep obj186 = new QuestStep(EInteractionType.Combat, 2005978u, new Vector3(1.5715942f, 21.316772f, 181.8722f), 147) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -125264,23 +150937,29 @@ public static class AssemblyQuestLoader num3 = 1; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = 4686u; + Span span212 = CollectionsMarshal.AsSpan(list212); + index3 = 0; + span212[index3] = 4686u; obj186.KillEnemyDataIds = list212; reference170 = obj186; obj185.Steps = list211; reference169 = obj185; - ref QuestSequence reference171 = ref span49[4]; + num++; + ref QuestSequence reference171 = ref span206[num]; QuestSequence obj187 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1014121u, new Vector3(47.104614f, 14.24741f, 197.92468f), 147); + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span213 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span213[num2] = new QuestStep(EInteractionType.Interact, 1014121u, new Vector3(47.104614f, 14.24741f, 197.92468f), 147); obj187.Steps = list213; reference171 = obj187; - ref QuestSequence reference172 = ref span49[5]; + num++; + ref QuestSequence reference172 = ref span206[num]; QuestSequence obj188 = new QuestSequence { Sequence = 5 @@ -125288,7 +150967,9 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - ref QuestStep reference173 = ref CollectionsMarshal.AsSpan(list214)[0]; + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + ref QuestStep reference173 = ref span214[index2]; QuestStep obj189 = new QuestStep(EInteractionType.Interact, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -125303,10 +150984,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = 131; + index3 = 1; + List list215 = new List(index3); + CollectionsMarshal.SetCount(list215, index3); + Span span215 = CollectionsMarshal.AsSpan(list215); + num3 = 0; + span215[num3] = 131; obj190.InTerritory = list215; skipConditions24.AetheryteShortcutIf = obj190; skipConditions24.AethernetShortcutIf = new SkipAetheryteCondition @@ -125317,15 +151000,18 @@ public static class AssemblyQuestLoader reference173 = obj189; obj188.Steps = list214; reference172 = obj188; - ref QuestSequence reference174 = ref span49[6]; + num++; + ref QuestSequence reference174 = ref span206[num]; QuestSequence obj191 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141) + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + Span span216 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span216[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -125344,13 +151030,16 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "goatzone"; + Span span217 = CollectionsMarshal.AsSpan(list217); + index = 0; + span217[index] = "goatzone"; questRoot22.Author = list217; - num = 5; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - Span span50 = CollectionsMarshal.AsSpan(list218); - ref QuestSequence reference175 = ref span50[0]; + index = 5; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + Span span218 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference175 = ref span218[num]; QuestSequence obj192 = new QuestSequence { Sequence = 0 @@ -125358,7 +151047,9 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list219)[0]; + Span span219 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + ref QuestStep reference176 = ref span219[index2]; QuestStep obj193 = new QuestStep(EInteractionType.AcceptQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141) { Fly = true, @@ -125377,7 +151068,9 @@ public static class AssemblyQuestLoader num3 = 1; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - CollectionsMarshal.AsSpan(list220)[0] = 141; + Span span220 = CollectionsMarshal.AsSpan(list220); + index3 = 0; + span220[index3] = 141; obj194.InTerritory = list220; skipConditions25.AetheryteShortcutIf = obj194; skipConditions25.AethernetShortcutIf = new SkipAetheryteCondition @@ -125388,16 +151081,18 @@ public static class AssemblyQuestLoader reference176 = obj193; obj192.Steps = list219; reference175 = obj192; - ref QuestSequence reference177 = ref span50[1]; + num++; + ref QuestSequence reference177 = ref span218[num]; QuestSequence obj195 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - Span span51 = CollectionsMarshal.AsSpan(list221); - ref QuestStep reference178 = ref span51[0]; + index2 = 3; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + ref QuestStep reference178 = ref span221[num2]; QuestStep obj196 = new QuestStep(EInteractionType.Interact, 1011237u, new Vector3(447.3181f, 212.53984f, 725.00183f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -125409,19 +151104,26 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - Span span52 = CollectionsMarshal.AsSpan(list222); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list222 = new List(index3); + CollectionsMarshal.SetCount(list222, index3); + Span span222 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span222[num3] = null; + num3++; + span222[num3] = null; + num3++; + span222[num3] = null; + num3++; + span222[num3] = null; + num3++; + span222[num3] = null; + num3++; + span222[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj196.CompletionQuestVariablesFlags = list222; reference178 = obj196; - ref QuestStep reference179 = ref span51[1]; + num2++; + ref QuestStep reference179 = ref span221[num2]; QuestStep obj197 = new QuestStep(EInteractionType.Interact, 1011233u, new Vector3(518.9136f, 217.95152f, 769.9243f), 397) { Fly = true @@ -125429,35 +151131,49 @@ public static class AssemblyQuestLoader num3 = 6; List list223 = new List(num3); CollectionsMarshal.SetCount(list223, num3); - Span span53 = CollectionsMarshal.AsSpan(list223); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span223 = CollectionsMarshal.AsSpan(list223); + index3 = 0; + span223[index3] = null; + index3++; + span223[index3] = null; + index3++; + span223[index3] = null; + index3++; + span223[index3] = null; + index3++; + span223[index3] = null; + index3++; + span223[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj197.CompletionQuestVariablesFlags = list223; reference179 = obj197; - ref QuestStep reference180 = ref span51[2]; + num2++; + ref QuestStep reference180 = ref span221[num2]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1011235u, new Vector3(522.54517f, 228.3512f, 723.5675f), 397) { Fly = true }; - num3 = 6; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - Span span54 = CollectionsMarshal.AsSpan(list224); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list224 = new List(index3); + CollectionsMarshal.SetCount(list224, index3); + Span span224 = CollectionsMarshal.AsSpan(list224); + num3 = 0; + span224[num3] = null; + num3++; + span224[num3] = null; + num3++; + span224[num3] = null; + num3++; + span224[num3] = null; + num3++; + span224[num3] = null; + num3++; + span224[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj198.CompletionQuestVariablesFlags = list224; reference180 = obj198; obj195.Steps = list221; reference177 = obj195; - ref QuestSequence reference181 = ref span50[2]; + num++; + ref QuestSequence reference181 = ref span218[num]; QuestSequence obj199 = new QuestSequence { Sequence = 2 @@ -125465,22 +151181,26 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1014052u, new Vector3(458.12158f, 200.23763f, 658.0757f), 397) + Span span225 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span225[index2] = new QuestStep(EInteractionType.Interact, 1014052u, new Vector3(458.12158f, 200.23763f, 658.0757f), 397) { Fly = true }; obj199.Steps = list225; reference181 = obj199; - ref QuestSequence reference182 = ref span50[3]; + num++; + ref QuestSequence reference182 = ref span218[num]; QuestSequence obj200 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - Span span55 = CollectionsMarshal.AsSpan(list226); - ref QuestStep reference183 = ref span55[0]; + index2 = 2; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + Span span226 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + ref QuestStep reference183 = ref span226[num2]; QuestStep obj201 = new QuestStep(EInteractionType.Combat, null, new Vector3(50.883884f, 124.41451f, 174.64914f), 397) { Fly = true, @@ -125489,26 +151209,36 @@ public static class AssemblyQuestLoader num3 = 2; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - Span span56 = CollectionsMarshal.AsSpan(list227); - span56[0] = 5043u; - span56[1] = 4619u; + Span span227 = CollectionsMarshal.AsSpan(list227); + index3 = 0; + span227[index3] = 5043u; + index3++; + span227[index3] = 4619u; obj201.KillEnemyDataIds = list227; - num3 = 6; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - Span span57 = CollectionsMarshal.AsSpan(list228); - span57[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = null; + index3 = 6; + List list228 = new List(index3); + CollectionsMarshal.SetCount(list228, index3); + Span span228 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span228[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span228[num3] = null; + num3++; + span228[num3] = null; + num3++; + span228[num3] = null; + num3++; + span228[num3] = null; + num3++; + span228[num3] = null; obj201.CompletionQuestVariablesFlags = list228; reference183 = obj201; - span55[1] = new QuestStep(EInteractionType.Interact, 1014053u, new Vector3(48.966187f, 124.34676f, 175.73816f), 397); + num2++; + span226[num2] = new QuestStep(EInteractionType.Interact, 1014053u, new Vector3(48.966187f, 124.34676f, 175.73816f), 397); obj200.Steps = list226; reference182 = obj200; - ref QuestSequence reference184 = ref span50[4]; + num++; + ref QuestSequence reference184 = ref span218[num]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue @@ -125516,7 +151246,9 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014054u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span229[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014054u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, NextQuestId = new QuestId(2034) @@ -125530,27 +151262,33 @@ public static class AssemblyQuestLoader num = 1; List list230 = new List(num); CollectionsMarshal.SetCount(list230, num); - CollectionsMarshal.AsSpan(list230)[0] = "goatzone"; + Span span230 = CollectionsMarshal.AsSpan(list230); + index = 0; + span230[index] = "goatzone"; questRoot23.Author = list230; - num = 10; - List list231 = new List(num); - CollectionsMarshal.SetCount(list231, num); - Span span58 = CollectionsMarshal.AsSpan(list231); - ref QuestSequence reference185 = ref span58[0]; + index = 10; + List list231 = new List(index); + CollectionsMarshal.SetCount(list231, index); + Span span231 = CollectionsMarshal.AsSpan(list231); + num = 0; + ref QuestSequence reference185 = ref span231[num]; QuestSequence obj203 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014054u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span232[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014054u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj203.Steps = list232; reference185 = obj203; - ref QuestSequence reference186 = ref span58[1]; + num++; + ref QuestSequence reference186 = ref span231[num]; QuestSequence obj204 = new QuestSequence { Sequence = 1 @@ -125558,26 +151296,32 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1014055u, new Vector3(173.69336f, 133.38922f, -413.47375f), 397) + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span233[index2] = new QuestStep(EInteractionType.Interact, 1014055u, new Vector3(173.69336f, 133.38922f, -413.47375f), 397) { Fly = true }; obj204.Steps = list233; reference186 = obj204; - ref QuestSequence reference187 = ref span58[2]; + num++; + ref QuestSequence reference187 = ref span231[num]; QuestSequence obj205 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - Span span59 = CollectionsMarshal.AsSpan(list234); - span59[0] = new QuestStep(EInteractionType.Interact, 2005983u, new Vector3(108.07959f, 129.41174f, -403.52484f), 397); - span59[1] = new QuestStep(EInteractionType.Interact, 2005980u, new Vector3(64.68298f, 128.61829f, -397.42126f), 397); + index2 = 2; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + Span span234 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span234[num2] = new QuestStep(EInteractionType.Interact, 2005983u, new Vector3(108.07959f, 129.41174f, -403.52484f), 397); + num2++; + span234[num2] = new QuestStep(EInteractionType.Interact, 2005980u, new Vector3(64.68298f, 128.61829f, -397.42126f), 397); obj205.Steps = list234; reference187 = obj205; - ref QuestSequence reference188 = ref span58[3]; + num++; + ref QuestSequence reference188 = ref span231[num]; QuestSequence obj206 = new QuestSequence { Sequence = 3 @@ -125585,27 +151329,33 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1014055u, new Vector3(173.69336f, 133.38922f, -413.47375f), 397) + Span span235 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span235[index2] = new QuestStep(EInteractionType.Interact, 1014055u, new Vector3(173.69336f, 133.38922f, -413.47375f), 397) { Fly = true }; obj206.Steps = list235; reference188 = obj206; - ref QuestSequence reference189 = ref span58[4]; + num++; + ref QuestSequence reference189 = ref span231[num]; QuestSequence obj207 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 2005981u, new Vector3(15.487854f, 106.09595f, -419.30273f), 397) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.Interact, 2005981u, new Vector3(15.487854f, 106.09595f, -419.30273f), 397) { Fly = true }; obj207.Steps = list236; reference189 = obj207; - ref QuestSequence reference190 = ref span58[5]; + num++; + ref QuestSequence reference190 = ref span231[num]; QuestSequence obj208 = new QuestSequence { Sequence = 5 @@ -125613,22 +151363,26 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 2005982u, new Vector3(-4.6845703f, 94.13281f, -506.15704f), 397) + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span237[index2] = new QuestStep(EInteractionType.Interact, 2005982u, new Vector3(-4.6845703f, 94.13281f, -506.15704f), 397) { Fly = true }; obj208.Steps = list237; reference190 = obj208; - ref QuestSequence reference191 = ref span58[6]; + num++; + ref QuestSequence reference191 = ref span231[num]; QuestSequence obj209 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - Span span60 = CollectionsMarshal.AsSpan(list238); - ref QuestStep reference192 = ref span60[0]; + index2 = 2; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + ref QuestStep reference192 = ref span238[num2]; QuestStep obj210 = new QuestStep(EInteractionType.Combat, null, new Vector3(-134.89986f, 88.67885f, -576.3159f), 397) { Fly = true, @@ -125637,26 +151391,36 @@ public static class AssemblyQuestLoader num3 = 2; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - Span span61 = CollectionsMarshal.AsSpan(list239); - span61[0] = 4360u; - span61[1] = 4619u; + Span span239 = CollectionsMarshal.AsSpan(list239); + index3 = 0; + span239[index3] = 4360u; + index3++; + span239[index3] = 4619u; obj210.KillEnemyDataIds = list239; - num3 = 6; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - Span span62 = CollectionsMarshal.AsSpan(list240); - span62[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = null; + index3 = 6; + List list240 = new List(index3); + CollectionsMarshal.SetCount(list240, index3); + Span span240 = CollectionsMarshal.AsSpan(list240); + num3 = 0; + span240[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span240[num3] = null; + num3++; + span240[num3] = null; + num3++; + span240[num3] = null; + num3++; + span240[num3] = null; + num3++; + span240[num3] = null; obj210.CompletionQuestVariablesFlags = list240; reference192 = obj210; - span60[1] = new QuestStep(EInteractionType.Interact, 1014058u, new Vector3(-138.35364f, 88.59643f, -577.0504f), 397); + num2++; + span238[num2] = new QuestStep(EInteractionType.Interact, 1014058u, new Vector3(-138.35364f, 88.59643f, -577.0504f), 397); obj209.Steps = list238; reference191 = obj209; - ref QuestSequence reference193 = ref span58[7]; + num++; + ref QuestSequence reference193 = ref span231[num]; QuestSequence obj211 = new QuestSequence { Sequence = 7 @@ -125664,24 +151428,30 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014059u, new Vector3(-788.02167f, 113.151276f, -589.807f), 397) + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014059u, new Vector3(-788.02167f, 113.151276f, -589.807f), 397) { Fly = true }; obj211.Steps = list241; reference193 = obj211; - ref QuestSequence reference194 = ref span58[8]; + num++; + ref QuestSequence reference194 = ref span231[num]; QuestSequence obj212 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1014064u, new Vector3(-788.02167f, 113.151276f, -589.807f), 397); + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.Interact, 1014064u, new Vector3(-788.02167f, 113.151276f, -589.807f), 397); obj212.Steps = list242; reference194 = obj212; - ref QuestSequence reference195 = ref span58[9]; + num++; + ref QuestSequence reference195 = ref span231[num]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue @@ -125689,7 +151459,9 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014065u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span243[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014065u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, NextQuestId = new QuestId(2035) @@ -125703,27 +151475,33 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - CollectionsMarshal.AsSpan(list244)[0] = "goatzone"; + Span span244 = CollectionsMarshal.AsSpan(list244); + index = 0; + span244[index] = "goatzone"; questRoot24.Author = list244; - num = 5; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - Span span63 = CollectionsMarshal.AsSpan(list245); - ref QuestSequence reference196 = ref span63[0]; + index = 5; + List list245 = new List(index); + CollectionsMarshal.SetCount(list245, index); + Span span245 = CollectionsMarshal.AsSpan(list245); + num = 0; + ref QuestSequence reference196 = ref span245[num]; QuestSequence obj214 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014065u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014065u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj214.Steps = list246; reference196 = obj214; - ref QuestSequence reference197 = ref span63[1]; + num++; + ref QuestSequence reference197 = ref span245[num]; QuestSequence obj215 = new QuestSequence { Sequence = 1 @@ -125731,28 +151509,34 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398) + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj215.Steps = list247; reference197 = obj215; - ref QuestSequence reference198 = ref span63[2]; + num++; + ref QuestSequence reference198 = ref span245[num]; QuestSequence obj216 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1014067u, new Vector3(451.34656f, -24.978418f, -496.39127f), 398) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.Interact, 1014067u, new Vector3(451.34656f, -24.978418f, -496.39127f), 398) { Fly = true }; obj216.Steps = list248; reference198 = obj216; - ref QuestSequence reference199 = ref span63[3]; + num++; + ref QuestSequence reference199 = ref span245[num]; QuestSequence obj217 = new QuestSequence { Sequence = 3 @@ -125760,18 +151544,23 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 2005986u, new Vector3(507.86584f, -21.927307f, -524.4374f), 398); + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.Interact, 2005986u, new Vector3(507.86584f, -21.927307f, -524.4374f), 398); obj217.Steps = list249; reference199 = obj217; - ref QuestSequence reference200 = ref span63[4]; + num++; + ref QuestSequence reference200 = ref span245[num]; QuestSequence obj218 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014068u, new Vector3(51.132935f, 124.95631f, 178.69836f), 397) + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span250 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span250[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014068u, new Vector3(51.132935f, 124.95631f, 178.69836f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -125793,13 +151582,16 @@ public static class AssemblyQuestLoader num = 1; List list251 = new List(num); CollectionsMarshal.SetCount(list251, num); - CollectionsMarshal.AsSpan(list251)[0] = "goatzone"; + Span span251 = CollectionsMarshal.AsSpan(list251); + index = 0; + span251[index] = "goatzone"; questRoot25.Author = list251; - num = 10; - List list252 = new List(num); - CollectionsMarshal.SetCount(list252, num); - Span span64 = CollectionsMarshal.AsSpan(list252); - ref QuestSequence reference201 = ref span64[0]; + index = 10; + List list252 = new List(index); + CollectionsMarshal.SetCount(list252, index); + Span span252 = CollectionsMarshal.AsSpan(list252); + num = 0; + ref QuestSequence reference201 = ref span252[num]; QuestSequence obj219 = new QuestSequence { Sequence = 0 @@ -125807,29 +151599,35 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014068u, new Vector3(51.132935f, 124.95631f, 178.69836f), 397) + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014068u, new Vector3(51.132935f, 124.95631f, 178.69836f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj219.Steps = list253; reference201 = obj219; - ref QuestSequence reference202 = ref span64[1]; + num++; + ref QuestSequence reference202 = ref span252[num]; QuestSequence obj220 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1014069u, new Vector3(460.5935f, 200.23763f, 658.56396f), 397) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.Interact, 1014069u, new Vector3(460.5935f, 200.23763f, 658.56396f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj220.Steps = list254; reference202 = obj220; - ref QuestSequence reference203 = ref span64[2]; + num++; + ref QuestSequence reference203 = ref span252[num]; QuestSequence obj221 = new QuestSequence { Sequence = 2 @@ -125837,28 +151635,34 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1011233u, new Vector3(518.9136f, 217.95152f, 769.9243f), 397) + Span span255 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span255[index2] = new QuestStep(EInteractionType.Interact, 1011233u, new Vector3(518.9136f, 217.95152f, 769.9243f), 397) { Fly = true }; obj221.Steps = list255; reference203 = obj221; - ref QuestSequence reference204 = ref span64[3]; + num++; + ref QuestSequence reference204 = ref span252[num]; QuestSequence obj222 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1014073u, new Vector3(-693.8125f, -109.83532f, 490.95898f), 401) + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.Interact, 1014073u, new Vector3(-693.8125f, -109.83532f, 490.95898f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj222.Steps = list256; reference204 = obj222; - ref QuestSequence reference205 = ref span64[4]; + num++; + ref QuestSequence reference205 = ref span252[num]; QuestSequence obj223 = new QuestSequence { Sequence = 4 @@ -125866,21 +151670,26 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1014075u, new Vector3(-272.17517f, -184.2003f, 736.0493f), 401) + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = new QuestStep(EInteractionType.Interact, 1014075u, new Vector3(-272.17517f, -184.2003f, 736.0493f), 401) { Fly = true }; obj223.Steps = list257; reference205 = obj223; - ref QuestSequence reference206 = ref span64[5]; + num++; + ref QuestSequence reference206 = ref span252[num]; QuestSequence obj224 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - ref QuestStep reference207 = ref CollectionsMarshal.AsSpan(list258)[0]; + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + ref QuestStep reference207 = ref span258[num2]; QuestStep obj225 = new QuestStep(EInteractionType.Combat, null, new Vector3(-43.012157f, -176.80112f, 753.7885f), 401) { Fly = true, @@ -125889,14 +151698,17 @@ public static class AssemblyQuestLoader num3 = 2; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - Span span65 = CollectionsMarshal.AsSpan(list259); - span65[0] = 5048u; - span65[1] = 5049u; + Span span259 = CollectionsMarshal.AsSpan(list259); + index3 = 0; + span259[index3] = 5048u; + index3++; + span259[index3] = 5049u; obj225.KillEnemyDataIds = list259; reference207 = obj225; obj224.Steps = list258; reference206 = obj224; - ref QuestSequence reference208 = ref span64[6]; + num++; + ref QuestSequence reference208 = ref span252[num]; QuestSequence obj226 = new QuestSequence { Sequence = 6 @@ -125904,34 +151716,42 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - ref QuestStep reference209 = ref CollectionsMarshal.AsSpan(list260)[0]; + Span span260 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + ref QuestStep reference209 = ref span260[index2]; QuestStep obj227 = new QuestStep(EInteractionType.Combat, null, new Vector3(207.48586f, -176.39336f, 721.5167f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - Span span66 = CollectionsMarshal.AsSpan(list261); - span66[0] = 4687u; - span66[1] = 4688u; + index3 = 2; + List list261 = new List(index3); + CollectionsMarshal.SetCount(list261, index3); + Span span261 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span261[num3] = 4687u; + num3++; + span261[num3] = 4688u; obj227.KillEnemyDataIds = list261; reference209 = obj227; obj226.Steps = list260; reference208 = obj226; - ref QuestSequence reference210 = ref span64[7]; + num++; + ref QuestSequence reference210 = ref span252[num]; QuestSequence obj228 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1014088u, new Vector3(200.42712f, -176.62952f, 737.0565f), 401); + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.Interact, 1014088u, new Vector3(200.42712f, -176.62952f, 737.0565f), 401); obj228.Steps = list262; reference210 = obj228; - ref QuestSequence reference211 = ref span64[8]; + num++; + ref QuestSequence reference211 = ref span252[num]; QuestSequence obj229 = new QuestSequence { Sequence = 8 @@ -125939,18 +151759,23 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1014089u, new Vector3(205.98145f, -176.69763f, 739.52844f), 401); + Span span263 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span263[index2] = new QuestStep(EInteractionType.Interact, 1014089u, new Vector3(205.98145f, -176.69763f, 739.52844f), 401); obj229.Steps = list263; reference211 = obj229; - ref QuestSequence reference212 = ref span64[9]; + num++; + ref QuestSequence reference212 = ref span252[num]; QuestSequence obj230 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015055u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.CompleteQuest, 1015055u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, NextQuestId = new QuestId(2037) @@ -125964,13 +151789,16 @@ public static class AssemblyQuestLoader num = 1; List list265 = new List(num); CollectionsMarshal.SetCount(list265, num); - CollectionsMarshal.AsSpan(list265)[0] = "goatzone"; + Span span265 = CollectionsMarshal.AsSpan(list265); + index = 0; + span265[index] = "goatzone"; questRoot26.Author = list265; - num = 8; - List list266 = new List(num); - CollectionsMarshal.SetCount(list266, num); - Span span67 = CollectionsMarshal.AsSpan(list266); - ref QuestSequence reference213 = ref span67[0]; + index = 8; + List list266 = new List(index); + CollectionsMarshal.SetCount(list266, index); + Span span266 = CollectionsMarshal.AsSpan(list266); + num = 0; + ref QuestSequence reference213 = ref span266[num]; QuestSequence obj231 = new QuestSequence { Sequence = 0 @@ -125978,27 +151806,33 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014092u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) + Span span267 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span267[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014092u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj231.Steps = list267; reference213 = obj231; - ref QuestSequence reference214 = ref span67[1]; + num++; + ref QuestSequence reference214 = ref span266[num]; QuestSequence obj232 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.Interact, 1014094u, new Vector3(457.51123f, 200.23764f, 660.8834f), 397) + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + Span span268 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span268[num2] = new QuestStep(EInteractionType.Interact, 1014094u, new Vector3(457.51123f, 200.23764f, 660.8834f), 397) { Fly = true }; obj232.Steps = list268; reference214 = obj232; - ref QuestSequence reference215 = ref span67[2]; + num++; + ref QuestSequence reference215 = ref span266[num]; QuestSequence obj233 = new QuestSequence { Sequence = 2 @@ -126006,28 +151840,34 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 2005990u, new Vector3(51.865356f, 125.26123f, 179.85803f), 397) + Span span269 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span269[index2] = new QuestStep(EInteractionType.Interact, 2005990u, new Vector3(51.865356f, 125.26123f, 179.85803f), 397) { Fly = true }; obj233.Steps = list269; reference215 = obj233; - ref QuestSequence reference216 = ref span67[3]; + num++; + ref QuestSequence reference216 = ref span266[num]; QuestSequence obj234 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.Interact, 1014096u, new Vector3(458.64026f, 200.23764f, 659.7848f), 397) + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + Span span270 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span270[num2] = new QuestStep(EInteractionType.Interact, 1014096u, new Vector3(458.64026f, 200.23764f, 659.7848f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj234.Steps = list270; reference216 = obj234; - ref QuestSequence reference217 = ref span67[4]; + num++; + ref QuestSequence reference217 = ref span266[num]; QuestSequence obj235 = new QuestSequence { Sequence = 4 @@ -126035,24 +151875,30 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1014097u, new Vector3(452.90295f, 130.79962f, -850.1869f), 397) + Span span271 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span271[index2] = new QuestStep(EInteractionType.Interact, 1014097u, new Vector3(452.90295f, 130.79962f, -850.1869f), 397) { Fly = true }; obj235.Steps = list271; reference217 = obj235; - ref QuestSequence reference218 = ref span67[5]; + num++; + ref QuestSequence reference218 = ref span266[num]; QuestSequence obj236 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014099u, new Vector3(457.20605f, 130.79962f, -848.6f), 397); + index2 = 1; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + Span span272 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span272[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014099u, new Vector3(457.20605f, 130.79962f, -848.6f), 397); obj236.Steps = list272; reference218 = obj236; - ref QuestSequence reference219 = ref span67[6]; + num++; + ref QuestSequence reference219 = ref span266[num]; QuestSequence obj237 = new QuestSequence { Sequence = 6 @@ -126060,21 +151906,26 @@ public static class AssemblyQuestLoader num2 = 1; List list273 = new List(num2); CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 1014102u, new Vector3(454.5204f, 130.79962f, -850.2479f), 397) + Span span273 = CollectionsMarshal.AsSpan(list273); + index2 = 0; + span273[index2] = new QuestStep(EInteractionType.Interact, 1014102u, new Vector3(454.5204f, 130.79962f, -850.2479f), 397) { StopDistance = 5f }; obj237.Steps = list273; reference219 = obj237; - ref QuestSequence reference220 = ref span67[7]; + num++; + ref QuestSequence reference220 = ref span266[num]; QuestSequence obj238 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014103u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) + index2 = 1; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + Span span274 = CollectionsMarshal.AsSpan(list274); + num2 = 0; + span274[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014103u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; @@ -126091,13 +151942,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -126105,7 +151959,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1014873u, new Vector3(101.57922f, 12.418198f, -117.60132f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -126123,22 +151979,27 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = 419; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = 419; obj3.InTerritory = list4; skipConditions.AetheryteShortcutIf = obj3; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1014876u, new Vector3(5.783081f, -2.080677f, 45.395508f), 418) + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span5[num2] = new QuestStep(EInteractionType.Interact, 1014876u, new Vector3(5.783081f, -2.080677f, 45.395508f), 418) { AethernetShortcut = new AethernetShortcut { @@ -126148,7 +152009,8 @@ public static class AssemblyQuestLoader }; obj4.Steps = list5; reference3 = obj4; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -126156,7 +152018,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014875u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014875u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) { NextQuestId = new QuestId(2054) }; @@ -126169,22 +152033,26 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + Span span7 = CollectionsMarshal.AsSpan(list7); + index = 0; + span7[index] = "liza"; questRoot2.Author = list7; - num = 7; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span2[0]; + index = 7; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span8[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - Span span3 = CollectionsMarshal.AsSpan(list9); - span3[0] = new QuestStep(EInteractionType.EquipItem, null, null, 418) + index2 = 3; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -126208,11 +152076,14 @@ public static class AssemblyQuestLoader } } }; - span3[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 418); - span3[2] = new QuestStep(EInteractionType.AcceptQuest, 1014875u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418); + num2++; + span9[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 418); + num2++; + span9[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014875u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418); obj6.Steps = list9; reference5 = obj6; - ref QuestSequence reference6 = ref span2[1]; + num++; + ref QuestSequence reference6 = ref span8[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -126220,24 +152091,30 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1014879u, new Vector3(134.05042f, -20.020874f, 73.746826f), 418); + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.Interact, 1014879u, new Vector3(134.05042f, -20.020874f, 73.746826f), 418); obj7.Steps = list10; reference6 = obj7; - ref QuestSequence reference7 = ref span2[2]; + num++; + ref QuestSequence reference7 = ref span8[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1014880u, new Vector3(136.98022f, -20.020876f, 69.840576f), 418) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.Interact, 1014880u, new Vector3(136.98022f, -20.020876f, 69.840576f), 418) { StopDistance = 7f }; obj8.Steps = list11; reference7 = obj8; - ref QuestSequence reference8 = ref span2[3]; + num++; + ref QuestSequence reference8 = ref span8[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 @@ -126245,26 +152122,32 @@ public static class AssemblyQuestLoader num2 = 2; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(157.94511f, -19.477406f, 53.021667f), 418) + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(157.94511f, -19.477406f, 53.021667f), 418) { TargetTerritoryId = (ushort)419 }; - span4[1] = new QuestStep(EInteractionType.Interact, 1014882u, new Vector3(244.09851f, -13.7349415f, -95.50629f), 419); + index2++; + span12[index2] = new QuestStep(EInteractionType.Interact, 1014882u, new Vector3(244.09851f, -13.7349415f, -95.50629f), 419); obj9.Steps = list12; reference8 = obj9; - ref QuestSequence reference9 = ref span2[4]; + num++; + ref QuestSequence reference9 = ref span8[num]; QuestSequence obj10 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014883u, new Vector3(151.6289f, -9.190302f, -64.9577f), 419); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014883u, new Vector3(151.6289f, -9.190302f, -64.9577f), 419); obj10.Steps = list13; reference9 = obj10; - ref QuestSequence reference10 = ref span2[5]; + num++; + ref QuestSequence reference10 = ref span8[num]; QuestSequence obj11 = new QuestSequence { Sequence = 5 @@ -126272,23 +152155,30 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1014888u, new Vector3(40.390625f, 16.080097f, -85.9541f), 419); + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.Interact, 1014888u, new Vector3(40.390625f, 16.080097f, -85.9541f), 419); obj11.Steps = list14; reference10 = obj11; - ref QuestSequence reference11 = ref span2[6]; + num++; + ref QuestSequence reference11 = ref span8[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + ref QuestStep reference12 = ref span15[num2]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 1014889u, new Vector3(43.381348f, 16.080097f, -86.045654f), 419); - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice + index3 = 1; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span16[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK301_02054_Q1_000_115"), @@ -126306,13 +152196,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "liza"; questRoot3.Author = list17; - num = 9; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span5 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span5[0]; + index = 9; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span18[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -126320,7 +152213,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref QuestStep reference14 = ref span19[index2]; QuestStep obj14 = new QuestStep(EInteractionType.AcceptQuest, 1014890u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -126340,7 +152235,9 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = new DialogueChoice + Span span20 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span20[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK350_02055_Q1_000_002"), @@ -126350,21 +152247,25 @@ public static class AssemblyQuestLoader reference14 = obj14; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference15 = ref span5[1]; + num++; + ref QuestSequence reference15 = ref span18[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 1014891u, new Vector3(-173.17468f, 27.899424f, -397.69592f), 146) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.Interact, 1014891u, new Vector3(-173.17468f, 27.899424f, -397.69592f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference16 = ref span5[2]; + num++; + ref QuestSequence reference16 = ref span18[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -126372,33 +152273,40 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span5[3]; + num++; + ref QuestSequence reference17 = ref span18[num]; QuestSequence obj17 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span6 = CollectionsMarshal.AsSpan(list23); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.55716f, 26.612217f, -320.62222f), 146) + index2 = 3; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.55716f, 26.612217f, -320.62222f), 146) { Mount = true }; - span6[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-257.8064f, 14.002786f, -105.36169f), 146) + num2++; + span23[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-257.8064f, 14.002786f, -105.36169f), 146) { Fly = true }; - span6[2] = new QuestStep(EInteractionType.Interact, 1014892u, new Vector3(-415.03015f, 3.695741f, -42.343872f), 146) + num2++; + span23[num2] = new QuestStep(EInteractionType.Interact, 1014892u, new Vector3(-415.03015f, 3.695741f, -42.343872f), 146) { Fly = true }; obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span5[4]; + num++; + ref QuestSequence reference18 = ref span18[num]; QuestSequence obj18 = new QuestSequence { Sequence = 4 @@ -126406,34 +152314,42 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.UseItem, 2006291u, new Vector3(-389.12036f, 3.4332886f, -57.572388f), 146) + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.UseItem, 2006291u, new Vector3(-389.12036f, 3.4332886f, -57.572388f), 146) { ItemId = 2001812u }; obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference19 = ref span5[5]; + num++; + ref QuestSequence reference19 = ref span18[num]; QuestSequence obj19 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - ref QuestStep reference20 = ref CollectionsMarshal.AsSpan(list25)[0]; + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + ref QuestStep reference20 = ref span25[num2]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, 2006293u, new Vector3(-384.9088f, 6.088318f, -45.212524f), 146) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = 4693u; + index3 = 1; + List list26 = new List(index3); + CollectionsMarshal.SetCount(list26, index3); + Span span26 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span26[num3] = 4693u; obj20.KillEnemyDataIds = list26; reference20 = obj20; obj19.Steps = list25; reference19 = obj19; - ref QuestSequence reference21 = ref span5[6]; + num++; + ref QuestSequence reference21 = ref span18[num]; QuestSequence obj21 = new QuestSequence { Sequence = 6 @@ -126441,30 +152357,36 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1014892u, new Vector3(-415.03015f, 3.695741f, -42.343872f), 146); + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.Interact, 1014892u, new Vector3(-415.03015f, 3.695741f, -42.343872f), 146); obj21.Steps = list27; reference21 = obj21; - ref QuestSequence reference22 = ref span5[7]; + num++; + ref QuestSequence reference22 = ref span18[num]; QuestSequence obj22 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - Span span7 = CollectionsMarshal.AsSpan(list28); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-257.8064f, 14.002786f, -105.36169f), 146) + index2 = 2; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-257.8064f, 14.002786f, -105.36169f), 146) { Fly = true }; - span7[1] = new QuestStep(EInteractionType.Interact, 1014893u, new Vector3(-215.7168f, 16.844267f, -270.6493f), 146) + num2++; + span28[num2] = new QuestStep(EInteractionType.Interact, 1014893u, new Vector3(-215.7168f, 16.844267f, -270.6493f), 146) { StopDistance = 1f, Fly = true }; obj22.Steps = list28; reference22 = obj22; - ref QuestSequence reference23 = ref span5[8]; + num++; + ref QuestSequence reference23 = ref span18[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -126472,7 +152394,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014893u, new Vector3(-215.7168f, 16.844267f, -270.6493f), 146) + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014893u, new Vector3(-215.7168f, 16.844267f, -270.6493f), 146) { NextQuestId = new QuestId(2056) }; @@ -126485,21 +152409,26 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "liza"; + Span span30 = CollectionsMarshal.AsSpan(list30); + index = 0; + span30[index] = "liza"; questRoot4.Author = list30; - num = 10; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span8 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference24 = ref span8[0]; + index = 10; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + Span span31 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference24 = ref span31[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014890u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014890u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -126517,7 +152446,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list32; reference24 = obj24; - ref QuestSequence reference25 = ref span8[1]; + num++; + ref QuestSequence reference25 = ref span31[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -126525,22 +152455,27 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1014894u, new Vector3(329.57947f, -11.1054125f, 157.64087f), 145) + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.Interact, 1014894u, new Vector3(329.57947f, -11.1054125f, 157.64087f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj25.Steps = list33; reference25 = obj25; - ref QuestSequence reference26 = ref span8[2]; + num++; + ref QuestSequence reference26 = ref span31[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list34)[0]; + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref QuestStep reference27 = ref span34[num2]; QuestStep obj27 = new QuestStep(EInteractionType.Combat, 2006295u, new Vector3(298.6648f, -11.7647705f, 159.96033f), 145) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -126548,14 +152483,17 @@ public static class AssemblyQuestLoader num3 = 2; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span9 = CollectionsMarshal.AsSpan(list35); - span9[0] = 4694u; - span9[1] = 4695u; + Span span35 = CollectionsMarshal.AsSpan(list35); + index3 = 0; + span35[index3] = 4694u; + index3++; + span35[index3] = 4695u; obj27.KillEnemyDataIds = list35; reference27 = obj27; obj26.Steps = list34; reference26 = obj26; - ref QuestSequence reference28 = ref span8[3]; + num++; + ref QuestSequence reference28 = ref span31[num]; QuestSequence obj28 = new QuestSequence { Sequence = 3 @@ -126563,26 +152501,33 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1014894u, new Vector3(329.57947f, -11.1054125f, 157.64087f), 145); + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.Interact, 1014894u, new Vector3(329.57947f, -11.1054125f, 157.64087f), 145); obj28.Steps = list36; reference28 = obj28; - ref QuestSequence reference29 = ref span8[4]; + num++; + ref QuestSequence reference29 = ref span31[num]; QuestSequence obj29 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list37)[0]; + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + ref QuestStep reference30 = ref span37[num2]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 1014895u, new Vector3(-367.14734f, -55.99894f, 107.10303f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice + index3 = 1; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK400_02056_Q1_000_056"), @@ -126592,7 +152537,8 @@ public static class AssemblyQuestLoader reference30 = obj30; obj29.Steps = list37; reference29 = obj29; - ref QuestSequence reference31 = ref span8[5]; + num++; + ref QuestSequence reference31 = ref span31[num]; QuestSequence obj31 = new QuestSequence { Sequence = 5 @@ -126600,28 +152546,34 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014896u, new Vector3(-200.30524f, -28.35069f, 324.75757f), 145) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014896u, new Vector3(-200.30524f, -28.35069f, 324.75757f), 145) { StopDistance = 2f, Fly = true }; obj31.Steps = list39; reference31 = obj31; - ref QuestSequence reference32 = ref span8[6]; + num++; + ref QuestSequence reference32 = ref span31[num]; QuestSequence obj32 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1015329u, new Vector3(-177.05048f, -31.365185f, 310.68884f), 145) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.Interact, 1015329u, new Vector3(-177.05048f, -31.365185f, 310.68884f), 145) { StopDistance = 7f }; obj32.Steps = list40; reference32 = obj32; - ref QuestSequence reference33 = ref span8[7]; + num++; + ref QuestSequence reference33 = ref span31[num]; QuestSequence obj33 = new QuestSequence { Sequence = 7 @@ -126629,24 +152581,30 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145) + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.Interact, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj33.Steps = list41; reference33 = obj33; - ref QuestSequence reference34 = ref span8[8]; + num++; + ref QuestSequence reference34 = ref span31[num]; QuestSequence obj34 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1014895u, new Vector3(-367.14734f, -55.99894f, 107.10303f), 145); + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.Interact, 1014895u, new Vector3(-367.14734f, -55.99894f, 107.10303f), 145); obj34.Steps = list42; reference34 = obj34; - ref QuestSequence reference35 = ref span8[9]; + num++; + ref QuestSequence reference35 = ref span31[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -126654,7 +152612,9 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014895u, new Vector3(-367.14734f, -55.99894f, 107.10303f), 145) + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014895u, new Vector3(-367.14734f, -55.99894f, 107.10303f), 145) { NextQuestId = new QuestId(2057) }; @@ -126667,21 +152627,26 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + Span span44 = CollectionsMarshal.AsSpan(list44); + index = 0; + span44[index] = "liza"; questRoot5.Author = list44; - num = 7; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span10 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference36 = ref span10[0]; + index = 7; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + Span span45 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference36 = ref span45[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014890u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014890u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -126699,7 +152664,8 @@ public static class AssemblyQuestLoader }; obj36.Steps = list46; reference36 = obj36; - ref QuestSequence reference37 = ref span10[1]; + num++; + ref QuestSequence reference37 = ref span45[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 @@ -126707,7 +152673,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - ref QuestStep reference38 = ref CollectionsMarshal.AsSpan(list47)[0]; + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + ref QuestStep reference38 = ref span47[index2]; QuestStep obj38 = new QuestStep(EInteractionType.Interact, 1014897u, new Vector3(168.74951f, 8.973653f, 583.85596f), 135) { Fly = true, @@ -126716,7 +152684,9 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new DialogueChoice + Span span48 = CollectionsMarshal.AsSpan(list48); + index3 = 0; + span48[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK450_02057_Q1_000_025"), @@ -126726,21 +152696,25 @@ public static class AssemblyQuestLoader reference38 = obj38; obj37.Steps = list47; reference37 = obj37; - ref QuestSequence reference39 = ref span10[2]; + num++; + ref QuestSequence reference39 = ref span45[num]; QuestSequence obj39 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014899u, new Vector3(-97.76465f, 2.9821281f, 713.06934f), 135) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014899u, new Vector3(-97.76465f, 2.9821281f, 713.06934f), 135) { Fly = true }; obj39.Steps = list49; reference39 = obj39; - ref QuestSequence reference40 = ref span10[3]; + num++; + ref QuestSequence reference40 = ref span45[num]; QuestSequence obj40 = new QuestSequence { Sequence = 3 @@ -126748,28 +152722,34 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1014900u, new Vector3(-110.88739f, 9.73618f, 672.7245f), 135) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.Interact, 1014900u, new Vector3(-110.88739f, 9.73618f, 672.7245f), 135) { StopDistance = 5f }; obj40.Steps = list50; reference40 = obj40; - ref QuestSequence reference41 = ref span10[4]; + num++; + ref QuestSequence reference41 = ref span45[num]; QuestSequence obj41 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1014898u, new Vector3(162.005f, 8.973654f, 583.82544f), 135) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.Interact, 1014898u, new Vector3(162.005f, 8.973654f, 583.82544f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj41.Steps = list51; reference41 = obj41; - ref QuestSequence reference42 = ref span10[5]; + num++; + ref QuestSequence reference42 = ref span45[num]; QuestSequence obj42 = new QuestSequence { Sequence = 5 @@ -126777,15 +152757,19 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - ref QuestStep reference43 = ref CollectionsMarshal.AsSpan(list52)[0]; + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + ref QuestStep reference43 = ref span52[index2]; QuestStep obj43 = new QuestStep(EInteractionType.Interact, 1014901u, new Vector3(235.67554f, 8f, 698.20703f), 135) { Fly = true }; - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice + index3 = 1; + List list53 = new List(index3); + CollectionsMarshal.SetCount(list53, index3); + Span span53 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + span53[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK450_02057_Q2_000_111"), @@ -126795,15 +152779,18 @@ public static class AssemblyQuestLoader reference43 = obj43; obj42.Steps = list52; reference42 = obj42; - ref QuestSequence reference44 = ref span10[6]; + num++; + ref QuestSequence reference44 = ref span45[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014901u, new Vector3(235.67554f, 8f, 698.20703f), 135) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014901u, new Vector3(235.67554f, 8f, 698.20703f), 135) { NextQuestId = new QuestId(2058) }; @@ -126816,13 +152803,16 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; + Span span55 = CollectionsMarshal.AsSpan(list55); + index = 0; + span55[index] = "liza"; questRoot6.Author = list55; - num = 7; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span11 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference45 = ref span11[0]; + index = 7; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + Span span56 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference45 = ref span56[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -126830,7 +152820,9 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014890u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014890u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -126848,15 +152840,18 @@ public static class AssemblyQuestLoader }; obj45.Steps = list57; reference45 = obj45; - ref QuestSequence reference46 = ref span11[1]; + num++; + ref QuestSequence reference46 = ref span56[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Say, 2006305u, new Vector3(-94.95697f, 298.63428f, -212.66504f), 155) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.Say, 2006305u, new Vector3(-94.95697f, 298.63428f, -212.66504f), 155) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -126871,7 +152866,8 @@ public static class AssemblyQuestLoader }; obj46.Steps = list58; reference46 = obj46; - ref QuestSequence reference47 = ref span11[2]; + num++; + ref QuestSequence reference47 = ref span56[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 @@ -126879,21 +152875,26 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1015328u, new Vector3(-313.5271f, 244.50482f, 33.310425f), 155) + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.Interact, 1015328u, new Vector3(-313.5271f, 244.50482f, 33.310425f), 155) { Fly = true }; obj47.Steps = list59; reference47 = obj47; - ref QuestSequence reference48 = ref span11[3]; + num++; + ref QuestSequence reference48 = ref span56[num]; QuestSequence obj48 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - ref QuestStep reference49 = ref CollectionsMarshal.AsSpan(list60)[0]; + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + ref QuestStep reference49 = ref span60[num2]; QuestStep obj49 = new QuestStep(EInteractionType.Combat, 2006306u, new Vector3(-405.53906f, 274.70813f, 79.087524f), 155) { Fly = true, @@ -126902,15 +152903,19 @@ public static class AssemblyQuestLoader num3 = 3; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span12 = CollectionsMarshal.AsSpan(list61); - span12[0] = 4678u; - span12[1] = 4679u; - span12[2] = 4696u; + Span span61 = CollectionsMarshal.AsSpan(list61); + index3 = 0; + span61[index3] = 4678u; + index3++; + span61[index3] = 4679u; + index3++; + span61[index3] = 4696u; obj49.KillEnemyDataIds = list61; reference49 = obj49; obj48.Steps = list60; reference48 = obj48; - ref QuestSequence reference50 = ref span11[4]; + num++; + ref QuestSequence reference50 = ref span56[num]; QuestSequence obj50 = new QuestSequence { Sequence = 4 @@ -126918,24 +152923,30 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1014906u, new Vector3(-313.5271f, 244.50482f, 33.310425f), 155) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.Interact, 1014906u, new Vector3(-313.5271f, 244.50482f, 33.310425f), 155) { Fly = true }; obj50.Steps = list62; reference50 = obj50; - ref QuestSequence reference51 = ref span11[5]; + num++; + ref QuestSequence reference51 = ref span56[num]; QuestSequence obj51 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014907u, new Vector3(-314.6258f, 244.62024f, 32.272827f), 155); + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014907u, new Vector3(-314.6258f, 244.62024f, 32.272827f), 155); obj51.Steps = list63; reference51 = obj51; - ref QuestSequence reference52 = ref span11[6]; + num++; + ref QuestSequence reference52 = ref span56[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -126943,7 +152954,9 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014908u, new Vector3(-431.26575f, 210.99998f, -251.20929f), 155); + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014908u, new Vector3(-431.26575f, 210.99998f, -251.20929f), 155); obj52.Steps = list64; reference52 = obj52; questRoot6.QuestSequence = list56; @@ -126953,21 +152966,26 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + Span span65 = CollectionsMarshal.AsSpan(list65); + index = 0; + span65[index] = "liza"; questRoot7.Author = list65; - num = 4; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span13 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference53 = ref span13[0]; + index = 4; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + Span span66 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference53 = ref span66[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014909u, new Vector3(-427.1153f, 211f, -267.26184f), 155) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014909u, new Vector3(-427.1153f, 211f, -267.26184f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -126981,7 +152999,8 @@ public static class AssemblyQuestLoader }; obj53.Steps = list67; reference53 = obj53; - ref QuestSequence reference54 = ref span13[1]; + num++; + ref QuestSequence reference54 = ref span66[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -126989,34 +153008,42 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list68)[0]; + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + ref QuestStep reference55 = ref span68[index2]; QuestStep obj55 = new QuestStep(EInteractionType.Combat, 1015030u, new Vector3(-824.979f, 243.96797f, -215.86938f), 155) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - Span span14 = CollectionsMarshal.AsSpan(list69); - span14[0] = 4377u; - span14[1] = 4378u; + index3 = 2; + List list69 = new List(index3); + CollectionsMarshal.SetCount(list69, index3); + Span span69 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span69[num3] = 4377u; + num3++; + span69[num3] = 4378u; obj55.KillEnemyDataIds = list69; reference55 = obj55; obj54.Steps = list68; reference54 = obj54; - ref QuestSequence reference56 = ref span13[2]; + num++; + ref QuestSequence reference56 = ref span66[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1015030u, new Vector3(-824.979f, 243.96797f, -215.86938f), 155); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.Interact, 1015030u, new Vector3(-824.979f, 243.96797f, -215.86938f), 155); obj56.Steps = list70; reference56 = obj56; - ref QuestSequence reference57 = ref span13[3]; + num++; + ref QuestSequence reference57 = ref span66[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -127024,7 +153051,9 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127043,21 +153072,26 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "liza"; + Span span72 = CollectionsMarshal.AsSpan(list72); + index = 0; + span72[index] = "liza"; questRoot8.Author = list72; - num = 8; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span15 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference58 = ref span15[0]; + index = 8; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + Span span73 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference58 = ref span73[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127075,7 +153109,8 @@ public static class AssemblyQuestLoader }; obj58.Steps = list74; reference58 = obj58; - ref QuestSequence reference59 = ref span15[1]; + num++; + ref QuestSequence reference59 = ref span73[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 @@ -127083,12 +153118,16 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list75)[0]; + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + ref QuestStep reference60 = ref span75[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1013970u, new Vector3(103.4104f, 15.00001f, 41.306152f), 418); num3 = 1; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = new DialogueChoice + Span span76 = CollectionsMarshal.AsSpan(list76); + index3 = 0; + span76[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK520_02060_Q1_000_041"), @@ -127098,22 +153137,26 @@ public static class AssemblyQuestLoader reference60 = questStep2; obj59.Steps = list75; reference59 = obj59; - ref QuestSequence reference61 = ref span15[2]; + num++; + ref QuestSequence reference61 = ref span73[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1015034u, new Vector3(-634.69904f, -119.471756f, 476.24915f), 401) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.Interact, 1015034u, new Vector3(-634.69904f, -119.471756f, 476.24915f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj60.Steps = list77; reference61 = obj60; - ref QuestSequence reference62 = ref span15[3]; + num++; + ref QuestSequence reference62 = ref span73[num]; QuestSequence obj61 = new QuestSequence { Sequence = 3 @@ -127121,16 +153164,20 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list78)[0]; + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + ref QuestStep reference63 = ref span78[index2]; QuestStep obj62 = new QuestStep(EInteractionType.Combat, null, new Vector3(-528.29944f, -165.42699f, 578.5855f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - ref ComplexCombatData reference64 = ref CollectionsMarshal.AsSpan(list79)[0]; + index3 = 1; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + Span span79 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + ref ComplexCombatData reference64 = ref span79[num3]; ComplexCombatData obj63 = new ComplexCombatData { DataId = 4812u, @@ -127139,34 +153186,44 @@ public static class AssemblyQuestLoader int num4 = 6; List list80 = new List(num4); CollectionsMarshal.SetCount(list80, num4); - Span span16 = CollectionsMarshal.AsSpan(list80); - span16[0] = null; - span16[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = null; + Span span80 = CollectionsMarshal.AsSpan(list80); + int num5 = 0; + span80[num5] = null; + num5++; + span80[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span80[num5] = null; + num5++; + span80[num5] = null; + num5++; + span80[num5] = null; + num5++; + span80[num5] = null; obj63.CompletionQuestVariablesFlags = list80; reference64 = obj63; obj62.ComplexCombatData = list79; reference63 = obj62; obj61.Steps = list78; reference62 = obj61; - ref QuestSequence reference65 = ref span15[4]; + num++; + ref QuestSequence reference65 = ref span73[num]; QuestSequence obj64 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1015033u, new Vector3(571.8928f, -113.998665f, 326.74133f), 401) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.Interact, 1015033u, new Vector3(571.8928f, -113.998665f, 326.74133f), 401) { Fly = true }; obj64.Steps = list81; reference65 = obj64; - ref QuestSequence reference66 = ref span15[5]; + num++; + ref QuestSequence reference66 = ref span73[num]; QuestSequence obj65 = new QuestSequence { Sequence = 5 @@ -127174,7 +153231,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list82)[0]; + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + ref QuestStep reference67 = ref span82[index2]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, 2006342u, new Vector3(533.53174f, -100.14502f, 367.54407f), 401) { Fly = true, @@ -127183,29 +153242,36 @@ public static class AssemblyQuestLoader num3 = 3; List list83 = new List(num3); CollectionsMarshal.SetCount(list83, num3); - Span span17 = CollectionsMarshal.AsSpan(list83); - span17[0] = 4619u; - span17[1] = 5044u; - span17[2] = 5045u; + Span span83 = CollectionsMarshal.AsSpan(list83); + index3 = 0; + span83[index3] = 4619u; + index3++; + span83[index3] = 5044u; + index3++; + span83[index3] = 5045u; obj66.KillEnemyDataIds = list83; reference67 = obj66; obj65.Steps = list82; reference66 = obj65; - ref QuestSequence reference68 = ref span15[6]; + num++; + ref QuestSequence reference68 = ref span73[num]; QuestSequence obj67 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1015036u, new Vector3(571.43494f, -113.94505f, 331.41064f), 401) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.Interact, 1015036u, new Vector3(571.43494f, -113.94505f, 331.41064f), 401) { Fly = true }; obj67.Steps = list84; reference68 = obj67; - ref QuestSequence reference69 = ref span15[7]; + num++; + ref QuestSequence reference69 = ref span73[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -127213,7 +153279,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127232,21 +153300,26 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; + Span span86 = CollectionsMarshal.AsSpan(list86); + index = 0; + span86[index] = "liza"; questRoot9.Author = list86; - num = 9; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span18 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference70 = ref span18[0]; + index = 9; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + Span span87 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference70 = ref span87[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127264,7 +153337,8 @@ public static class AssemblyQuestLoader }; obj69.Steps = list88; reference70 = obj69; - ref QuestSequence reference71 = ref span18[1]; + num++; + ref QuestSequence reference71 = ref span87[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -127272,25 +153346,31 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1015038u, new Vector3(210.49817f, 302.2458f, -166.888f), 155) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.Interact, 1015038u, new Vector3(210.49817f, 302.2458f, -166.888f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj70.Steps = list89; reference71 = obj70; - ref QuestSequence reference72 = ref span18[2]; + num++; + ref QuestSequence reference72 = ref span87[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015039u, new Vector3(209.43005f, 302.2567f, -166.888f), 155); + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015039u, new Vector3(209.43005f, 302.2567f, -166.888f), 155); obj71.Steps = list90; reference72 = obj71; - ref QuestSequence reference73 = ref span18[3]; + num++; + ref QuestSequence reference73 = ref span87[num]; QuestSequence obj72 = new QuestSequence { Sequence = 3 @@ -127298,18 +153378,23 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1015040u, new Vector3(221.94238f, 222.00142f, 320.9734f), 155); + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.Interact, 1015040u, new Vector3(221.94238f, 222.00142f, 320.9734f), 155); obj72.Steps = list91; reference73 = obj72; - ref QuestSequence reference74 = ref span18[4]; + num++; + ref QuestSequence reference74 = ref span87[num]; QuestSequence obj73 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -127320,7 +153405,8 @@ public static class AssemblyQuestLoader }; obj73.Steps = list92; reference74 = obj73; - ref QuestSequence reference75 = ref span18[5]; + num++; + ref QuestSequence reference75 = ref span87[num]; QuestSequence obj74 = new QuestSequence { Sequence = 5 @@ -127328,24 +153414,30 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1015043u, new Vector3(29.67871f, -7.8f, 89.61609f), 132) + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.Interact, 1015043u, new Vector3(29.67871f, -7.8f, 89.61609f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj74.Steps = list93; reference75 = obj74; - ref QuestSequence reference76 = ref span18[6]; + num++; + ref QuestSequence reference76 = ref span87[num]; QuestSequence obj75 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1015432u, new Vector3(29.67871f, -7.8f, 89.61609f), 132); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.Interact, 1015432u, new Vector3(29.67871f, -7.8f, 89.61609f), 132); obj75.Steps = list94; reference76 = obj75; - ref QuestSequence reference77 = ref span18[7]; + num++; + ref QuestSequence reference77 = ref span87[num]; QuestSequence obj76 = new QuestSequence { Sequence = 7 @@ -127353,21 +153445,26 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1015066u, new Vector3(47.440186f, -8.046949f, 110.73462f), 132) + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.Interact, 1015066u, new Vector3(47.440186f, -8.046949f, 110.73462f), 132) { StopDistance = 6f }; obj76.Steps = list95; reference77 = obj76; - ref QuestSequence reference78 = ref span18[8]; + num++; + ref QuestSequence reference78 = ref span87[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127386,13 +153483,16 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + Span span97 = CollectionsMarshal.AsSpan(list97); + index = 0; + span97[index] = "liza"; questRoot10.Author = list97; - num = 7; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span19 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference79 = ref span19[0]; + index = 7; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference79 = ref span98[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 @@ -127400,7 +153500,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127418,22 +153520,26 @@ public static class AssemblyQuestLoader }; obj78.Steps = list99; reference79 = obj78; - ref QuestSequence reference80 = ref span19[1]; + num++; + ref QuestSequence reference80 = ref span98[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj79.Steps = list100; reference80 = obj79; - ref QuestSequence reference81 = ref span19[2]; + num++; + ref QuestSequence reference81 = ref span98[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 @@ -127441,46 +153547,60 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1015044u, new Vector3(-282.1546f, 39.043068f, 46.036377f), 398); + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.Interact, 1015044u, new Vector3(-282.1546f, 39.043068f, 46.036377f), 398); obj80.Steps = list101; reference81 = obj80; - ref QuestSequence reference82 = ref span19[3]; + num++; + ref QuestSequence reference82 = ref span98[num]; QuestSequence obj81 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span20 = CollectionsMarshal.AsSpan(list102); - ref QuestStep reference83 = ref span20[0]; + index2 = 2; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + ref QuestStep reference83 = ref span102[num2]; QuestStep obj82 = new QuestStep(EInteractionType.Combat, 2006344u, new Vector3(-557.8241f, -92.24078f, 595.1781f), 398) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = 4685u; + index3 = 1; + List list103 = new List(index3); + CollectionsMarshal.SetCount(list103, index3); + Span span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span103[num3] = 4685u; obj82.KillEnemyDataIds = list103; num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span21 = CollectionsMarshal.AsSpan(list104); - span21[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = null; + Span span104 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span104[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; obj82.CompletionQuestVariablesFlags = list104; reference83 = obj82; - span20[1] = new QuestStep(EInteractionType.Interact, 2006344u, new Vector3(-557.8241f, -92.24078f, 595.1781f), 398); + num2++; + span102[num2] = new QuestStep(EInteractionType.Interact, 2006344u, new Vector3(-557.8241f, -92.24078f, 595.1781f), 398); obj81.Steps = list102; reference82 = obj81; - ref QuestSequence reference84 = ref span19[4]; + num++; + ref QuestSequence reference84 = ref span98[num]; QuestSequence obj83 = new QuestSequence { Sequence = 4 @@ -127488,7 +153608,9 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { StopDistance = 7f, Fly = true, @@ -127496,22 +153618,26 @@ public static class AssemblyQuestLoader }; obj83.Steps = list105; reference84 = obj83; - ref QuestSequence reference85 = ref span19[5]; + num++; + ref QuestSequence reference85 = ref span98[num]; QuestSequence obj84 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1015046u, new Vector3(-460.01373f, -9.639711f, -294.78906f), 398) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.Interact, 1015046u, new Vector3(-460.01373f, -9.639711f, -294.78906f), 398) { StopDistance = 5f, Fly = true }; obj84.Steps = list106; reference85 = obj84; - ref QuestSequence reference86 = ref span19[6]; + num++; + ref QuestSequence reference86 = ref span98[num]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue @@ -127519,7 +153645,9 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127538,21 +153666,26 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; + Span span108 = CollectionsMarshal.AsSpan(list108); + index = 0; + span108[index] = "liza"; questRoot11.Author = list108; - num = 8; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span22 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference87 = ref span22[0]; + index = 8; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + Span span109 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference87 = ref span109[num]; QuestSequence obj86 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span110[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127570,7 +153703,8 @@ public static class AssemblyQuestLoader }; obj86.Steps = list110; reference87 = obj86; - ref QuestSequence reference88 = ref span22[1]; + num++; + ref QuestSequence reference88 = ref span109[num]; QuestSequence obj87 = new QuestSequence { Sequence = 1 @@ -127578,39 +153712,50 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1012076u, new Vector3(254.13892f, -43.160442f, 626.3981f), 400) + Span span111 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span111[index2] = new QuestStep(EInteractionType.Interact, 1012076u, new Vector3(254.13892f, -43.160442f, 626.3981f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj87.Steps = list111; reference88 = obj87; - ref QuestSequence reference89 = ref span22[2]; + num++; + ref QuestSequence reference89 = ref span109[num]; QuestSequence obj88 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span23 = CollectionsMarshal.AsSpan(list112); - ref QuestStep reference90 = ref span23[0]; + index2 = 4; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + ref QuestStep reference90 = ref span112[num2]; QuestStep obj89 = new QuestStep(EInteractionType.Interact, 2006346u, new Vector3(429.9839f, -10.11676f, 708.1864f), 400) { Fly = true }; - num3 = 6; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - Span span24 = CollectionsMarshal.AsSpan(list113); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list113 = new List(index3); + CollectionsMarshal.SetCount(list113, index3); + Span span113 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span113[num3] = null; + num3++; + span113[num3] = null; + num3++; + span113[num3] = null; + num3++; + span113[num3] = null; + num3++; + span113[num3] = null; + num3++; + span113[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj89.CompletionQuestVariablesFlags = list113; reference90 = obj89; - ref QuestStep reference91 = ref span23[1]; + num2++; + ref QuestStep reference91 = ref span112[num2]; QuestStep obj90 = new QuestStep(EInteractionType.Interact, 2006347u, new Vector3(346.48657f, 0.25933838f, 565.6061f), 400) { Fly = true @@ -127618,33 +153763,47 @@ public static class AssemblyQuestLoader num3 = 6; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - Span span25 = CollectionsMarshal.AsSpan(list114); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span114 = CollectionsMarshal.AsSpan(list114); + index3 = 0; + span114[index3] = null; + index3++; + span114[index3] = null; + index3++; + span114[index3] = null; + index3++; + span114[index3] = null; + index3++; + span114[index3] = null; + index3++; + span114[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj90.CompletionQuestVariablesFlags = list114; reference91 = obj90; - ref QuestStep reference92 = ref span23[2]; + num2++; + ref QuestStep reference92 = ref span112[num2]; QuestStep obj91 = new QuestStep(EInteractionType.Interact, 2006348u, new Vector3(312.1842f, 17.868286f, 718.8982f), 400) { Fly = true }; - num3 = 6; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - Span span26 = CollectionsMarshal.AsSpan(list115); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list115 = new List(index3); + CollectionsMarshal.SetCount(list115, index3); + Span span115 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj91.CompletionQuestVariablesFlags = list115; reference92 = obj91; - ref QuestStep reference93 = ref span23[3]; + num2++; + ref QuestStep reference93 = ref span112[num2]; QuestStep obj92 = new QuestStep(EInteractionType.Interact, 2006349u, new Vector3(204.76074f, 4.7455444f, 736.3545f), 400) { Fly = true @@ -127652,18 +153811,25 @@ public static class AssemblyQuestLoader num3 = 6; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - Span span27 = CollectionsMarshal.AsSpan(list116); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span116 = CollectionsMarshal.AsSpan(list116); + index3 = 0; + span116[index3] = null; + index3++; + span116[index3] = null; + index3++; + span116[index3] = null; + index3++; + span116[index3] = null; + index3++; + span116[index3] = null; + index3++; + span116[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj92.CompletionQuestVariablesFlags = list116; reference93 = obj92; obj88.Steps = list112; reference89 = obj88; - ref QuestSequence reference94 = ref span22[3]; + num++; + ref QuestSequence reference94 = ref span109[num]; QuestSequence obj93 = new QuestSequence { Sequence = 3 @@ -127671,35 +153837,43 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1012076u, new Vector3(254.13892f, -43.160442f, 626.3981f), 400) + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.Interact, 1012076u, new Vector3(254.13892f, -43.160442f, 626.3981f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj93.Steps = list117; reference94 = obj93; - ref QuestSequence reference95 = ref span22[4]; + num++; + ref QuestSequence reference95 = ref span109[num]; QuestSequence obj94 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list118)[0]; + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + ref QuestStep reference96 = ref span118[num2]; QuestStep obj95 = new QuestStep(EInteractionType.Combat, 2006350u, new Vector3(173.84595f, -22.14087f, 160.7843f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = 4675u; + index3 = 1; + List list119 = new List(index3); + CollectionsMarshal.SetCount(list119, index3); + Span span119 = CollectionsMarshal.AsSpan(list119); + num3 = 0; + span119[num3] = 4675u; obj95.KillEnemyDataIds = list119; reference96 = obj95; obj94.Steps = list118; reference95 = obj94; - ref QuestSequence reference97 = ref span22[5]; + num++; + ref QuestSequence reference97 = ref span109[num]; QuestSequence obj96 = new QuestSequence { Sequence = 5 @@ -127707,24 +153881,30 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015049u, new Vector3(-158.80066f, -23.017008f, 282.12402f), 400) + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015049u, new Vector3(-158.80066f, -23.017008f, 282.12402f), 400) { Fly = true }; obj96.Steps = list120; reference97 = obj96; - ref QuestSequence reference98 = ref span22[6]; + num++; + ref QuestSequence reference98 = ref span109[num]; QuestSequence obj97 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1015050u, new Vector3(-158.1903f, -22.967546f, 275.83728f), 400); + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span121[num2] = new QuestStep(EInteractionType.Interact, 1015050u, new Vector3(-158.1903f, -22.967546f, 275.83728f), 400); obj97.Steps = list121; reference98 = obj97; - ref QuestSequence reference99 = ref span22[7]; + num++; + ref QuestSequence reference99 = ref span109[num]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue @@ -127732,7 +153912,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127751,21 +153933,26 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; + Span span123 = CollectionsMarshal.AsSpan(list123); + index = 0; + span123[index] = "liza"; questRoot12.Author = list123; - num = 4; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span28 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference100 = ref span28[0]; + index = 4; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + Span span124 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference100 = ref span124[num]; QuestSequence obj99 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span125[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -127783,7 +153970,8 @@ public static class AssemblyQuestLoader }; obj99.Steps = list125; reference100 = obj99; - ref QuestSequence reference101 = ref span28[1]; + num++; + ref QuestSequence reference101 = ref span124[num]; QuestSequence obj100 = new QuestSequence { Sequence = 1 @@ -127791,25 +153979,31 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1013970u, new Vector3(103.4104f, 15.00001f, 41.306152f), 418); + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span126[index2] = new QuestStep(EInteractionType.Interact, 1013970u, new Vector3(103.4104f, 15.00001f, 41.306152f), 418); obj100.Steps = list126; reference101 = obj100; - ref QuestSequence reference102 = ref span28[2]; + num++; + ref QuestSequence reference102 = ref span124[num]; QuestSequence obj101 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015052u, new Vector3(-347.5243f, 91.63155f, -558.8312f), 397) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015052u, new Vector3(-347.5243f, 91.63155f, -558.8312f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj101.Steps = list127; reference102 = obj101; - ref QuestSequence reference103 = ref span28[3]; + num++; + ref QuestSequence reference103 = ref span124[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -127817,7 +154011,9 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - ref QuestStep reference104 = ref CollectionsMarshal.AsSpan(list128)[0]; + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + ref QuestStep reference104 = ref span128[index2]; QuestStep obj103 = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -127830,7 +154026,9 @@ public static class AssemblyQuestLoader num3 = 1; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = new DialogueChoice + Span span129 = CollectionsMarshal.AsSpan(list129); + index3 = 0; + span129[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK600_02064_Q1_000_153"), @@ -127848,21 +154046,26 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + Span span130 = CollectionsMarshal.AsSpan(list130); + index = 0; + span130[index] = "liza"; questRoot13.Author = list130; - num = 8; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span29 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference105 = ref span29[0]; + index = 8; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + Span span131 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference105 = ref span131[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -127875,7 +154078,8 @@ public static class AssemblyQuestLoader }; obj104.Steps = list132; reference105 = obj104; - ref QuestSequence reference106 = ref span29[1]; + num++; + ref QuestSequence reference106 = ref span131[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 @@ -127883,7 +154087,9 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.Interact, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -127894,21 +154100,25 @@ public static class AssemblyQuestLoader }; obj105.Steps = list133; reference106 = obj105; - ref QuestSequence reference107 = ref span29[2]; + num++; + ref QuestSequence reference107 = ref span131[num]; QuestSequence obj106 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1014403u, new Vector3(69.443726f, 53.303707f, 198.59619f), 399) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.Interact, 1014403u, new Vector3(69.443726f, 53.303707f, 198.59619f), 399) { Fly = true }; obj106.Steps = list134; reference107 = obj106; - ref QuestSequence reference108 = ref span29[3]; + num++; + ref QuestSequence reference108 = ref span131[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 @@ -127916,25 +154126,31 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.UseItem, 2006124u, new Vector3(-43.198303f, 100.8468f, -181.81128f), 399) + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.UseItem, 2006124u, new Vector3(-43.198303f, 100.8468f, -181.81128f), 399) { Fly = true, ItemId = 2001792u }; obj107.Steps = list135; reference108 = obj107; - ref QuestSequence reference109 = ref span29[4]; + num++; + ref QuestSequence reference109 = ref span131[num]; QuestSequence obj108 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 2006180u, new Vector3(-43.717102f, 101.48767f, -181.62811f), 399); + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.Interact, 2006180u, new Vector3(-43.717102f, 101.48767f, -181.62811f), 399); obj108.Steps = list136; reference109 = obj108; - ref QuestSequence reference110 = ref span29[5]; + num++; + ref QuestSequence reference110 = ref span131[num]; QuestSequence obj109 = new QuestSequence { Sequence = 5 @@ -127942,21 +154158,26 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1014404u, new Vector3(67.97888f, 53.343666f, 199.02332f), 399) + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.Interact, 1014404u, new Vector3(67.97888f, 53.343666f, 199.02332f), 399) { Fly = true }; obj109.Steps = list137; reference110 = obj109; - ref QuestSequence reference111 = ref span29[6]; + num++; + ref QuestSequence reference111 = ref span131[num]; QuestSequence obj110 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -127965,7 +154186,8 @@ public static class AssemblyQuestLoader }; obj110.Steps = list138; reference111 = obj110; - ref QuestSequence reference112 = ref span29[7]; + num++; + ref QuestSequence reference112 = ref span131[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue @@ -127973,7 +154195,9 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2091) @@ -127987,27 +154211,33 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - CollectionsMarshal.AsSpan(list140)[0] = "liza"; + Span span140 = CollectionsMarshal.AsSpan(list140); + index = 0; + span140[index] = "liza"; questRoot14.Author = list140; - num = 3; - List list141 = new List(num); - CollectionsMarshal.SetCount(list141, num); - Span span30 = CollectionsMarshal.AsSpan(list141); - ref QuestSequence reference113 = ref span30[0]; + index = 3; + List list141 = new List(index); + CollectionsMarshal.SetCount(list141, index); + Span span141 = CollectionsMarshal.AsSpan(list141); + num = 0; + ref QuestSequence reference113 = ref span141[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) { StopDistance = 5f }; obj112.Steps = list142; reference113 = obj112; - ref QuestSequence reference114 = ref span30[1]; + num++; + ref QuestSequence reference114 = ref span141[num]; QuestSequence obj113 = new QuestSequence { Sequence = 1 @@ -128015,7 +154245,9 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -128024,15 +154256,18 @@ public static class AssemblyQuestLoader }; obj113.Steps = list143; reference114 = obj113; - ref QuestSequence reference115 = ref span30[2]; + num++; + ref QuestSequence reference115 = ref span141[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2092) @@ -128046,13 +154281,16 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "liza"; + Span span145 = CollectionsMarshal.AsSpan(list145); + index = 0; + span145[index] = "liza"; questRoot15.Author = list145; - num = 3; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span31 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference116 = ref span31[0]; + index = 3; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + Span span146 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference116 = ref span146[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -128060,21 +154298,26 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) { StopDistance = 5f }; obj115.Steps = list147; reference116 = obj115; - ref QuestSequence reference117 = ref span31[1]; + num++; + ref QuestSequence reference117 = ref span146[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -128083,7 +154326,8 @@ public static class AssemblyQuestLoader }; obj116.Steps = list148; reference117 = obj116; - ref QuestSequence reference118 = ref span31[2]; + num++; + ref QuestSequence reference118 = ref span146[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -128091,7 +154335,9 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) + Span span149 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span149[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2093) @@ -128105,27 +154351,33 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "liza"; + Span span150 = CollectionsMarshal.AsSpan(list150); + index = 0; + span150[index] = "liza"; questRoot16.Author = list150; - num = 3; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span32 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference119 = ref span32[0]; + index = 3; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + Span span151 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference119 = ref span151[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) { StopDistance = 5f }; obj118.Steps = list152; reference119 = obj118; - ref QuestSequence reference120 = ref span32[1]; + num++; + ref QuestSequence reference120 = ref span151[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -128133,7 +154385,9 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -128142,31 +154396,36 @@ public static class AssemblyQuestLoader }; obj119.Steps = list153; reference120 = obj119; - ref QuestSequence reference121 = ref span32[2]; + num++; + ref QuestSequence reference121 = ref span151[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - Span span33 = CollectionsMarshal.AsSpan(list154); - ref QuestStep reference122 = ref span33[0]; + index2 = 2; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref QuestStep reference122 = ref span154[num2]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 2006431u, new Vector3(0f, -67f, 15.5f), 505) { TargetTerritoryId = (ushort)399 }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 505; + index3 = 1; + List list155 = new List(index3); + CollectionsMarshal.SetCount(list155, index3); + Span span155 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + span155[num3] = 505; skipStepConditions.NotInTerritory = list155; skipConditions2.StepIf = skipStepConditions; obj121.SkipConditions = skipConditions2; reference122 = obj121; - span33[1] = new QuestStep(EInteractionType.CompleteQuest, 1014405u, new Vector3(69.62683f, 53.404236f, 201.5564f), 399) + num2++; + span154[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014405u, new Vector3(69.62683f, 53.404236f, 201.5564f), 399) { NextQuestId = new QuestId(2094) }; @@ -128179,13 +154438,16 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - CollectionsMarshal.AsSpan(list156)[0] = "liza"; + Span span156 = CollectionsMarshal.AsSpan(list156); + index = 0; + span156[index] = "liza"; questRoot17.Author = list156; - num = 3; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - Span span34 = CollectionsMarshal.AsSpan(list157); - ref QuestSequence reference123 = ref span34[0]; + index = 3; + List list157 = new List(index); + CollectionsMarshal.SetCount(list157, index); + Span span157 = CollectionsMarshal.AsSpan(list157); + num = 0; + ref QuestSequence reference123 = ref span157[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -128193,24 +154455,30 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014405u, new Vector3(69.62683f, 53.404236f, 201.5564f), 399); + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014405u, new Vector3(69.62683f, 53.404236f, 201.5564f), 399); obj122.Steps = list158; reference123 = obj122; - ref QuestSequence reference124 = ref span34[1]; + num++; + ref QuestSequence reference124 = ref span157[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.Interact, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) { Fly = true }; obj123.Steps = list159; reference124 = obj123; - ref QuestSequence reference125 = ref span34[2]; + num++; + ref QuestSequence reference125 = ref span157[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -128218,7 +154486,9 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014402u, new Vector3(-42.37433f, 100.87579f, -183.21509f), 399) + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014402u, new Vector3(-42.37433f, 100.87579f, -183.21509f), 399) { NextQuestId = new QuestId(2249) }; @@ -128231,24 +154501,30 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "liza"; + Span span161 = CollectionsMarshal.AsSpan(list161); + index = 0; + span161[index] = "liza"; questRoot18.Author = list161; - num = 2; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span35 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference126 = ref span35[0]; + index = 2; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + Span span162 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference126 = ref span162[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012161u, new Vector3(-54.429016f, 15.140585f, -38.101807f), 418); + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span163[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012161u, new Vector3(-54.429016f, 15.140585f, -38.101807f), 418); obj125.Steps = list163; reference126 = obj125; - ref QuestSequence reference127 = ref span35[1]; + num++; + ref QuestSequence reference127 = ref span162[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -128256,7 +154532,9 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013395u, new Vector3(45.609253f, 31.195326f, -732.9061f), 156) + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span164[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013395u, new Vector3(45.609253f, 31.195326f, -732.9061f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -128271,24 +154549,30 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "liza"; + Span span165 = CollectionsMarshal.AsSpan(list165); + index = 0; + span165[index] = "liza"; questRoot19.Author = list165; - num = 2; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span36 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference128 = ref span36[0]; + index = 2; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + Span span166 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference128 = ref span166[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013395u, new Vector3(45.609253f, 31.195326f, -732.9061f), 156); + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013395u, new Vector3(45.609253f, 31.195326f, -732.9061f), 156); obj127.Steps = list167; reference128 = obj127; - ref QuestSequence reference129 = ref span36[1]; + num++; + ref QuestSequence reference129 = ref span166[num]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue @@ -128296,7 +154580,9 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001428u, new Vector3(116.80774f, 30.907087f, -359.63995f), 141) + Span span168 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span168[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001428u, new Vector3(116.80774f, 30.907087f, -359.63995f), 141) { StopDistance = 1f, Fly = true, @@ -128312,21 +154598,26 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "liza"; + Span span169 = CollectionsMarshal.AsSpan(list169); + index = 0; + span169[index] = "liza"; questRoot20.Author = list169; - num = 2; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span37 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference130 = ref span37[0]; + index = 2; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + Span span170 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference130 = ref span170[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013395u, new Vector3(45.609253f, 31.195326f, -732.9061f), 156) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + Span span171 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span171[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013395u, new Vector3(45.609253f, 31.195326f, -732.9061f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -128339,7 +154630,8 @@ public static class AssemblyQuestLoader }; obj129.Steps = list171; reference130 = obj129; - ref QuestSequence reference131 = ref span37[1]; + num++; + ref QuestSequence reference131 = ref span170[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -128347,8 +154639,9 @@ public static class AssemblyQuestLoader num2 = 2; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span38 = CollectionsMarshal.AsSpan(list172); - span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-14.635355f, 206.49942f, 44.826305f), 478) + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-14.635355f, 206.49942f, 44.826305f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -128359,7 +154652,8 @@ public static class AssemblyQuestLoader } } }; - span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478); + index2++; + span172[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478); obj130.Steps = list172; reference131 = obj130; questRoot20.QuestSequence = list170; @@ -128373,13 +154667,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -128387,7 +154684,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -128405,29 +154704,35 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = 133; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = 133; obj3.InTerritory = list4; skipConditions.AetheryteShortcutIf = obj3; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span5[num2] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj4.Steps = list5; reference3 = obj4; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 2 @@ -128435,21 +154740,26 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1014018u, new Vector3(481.9867f, 5.4917006f, -838.52905f), 156) + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.Interact, 1014018u, new Vector3(481.9867f, 5.4917006f, -838.52905f), 156) { Fly = true }; obj5.Steps = list6; reference4 = obj5; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -128468,13 +154778,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "liza"; + Span span8 = CollectionsMarshal.AsSpan(list8); + index = 0; + span8[index] = "liza"; questRoot2.Author = list8; - num = 6; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span2 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span2[0]; + index = 6; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + Span span9 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span9[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -128482,7 +154795,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list10)[0]; + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + ref QuestStep reference7 = ref span10[index2]; QuestStep obj8 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -128497,31 +154812,37 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = 133; + index3 = 1; + List list11 = new List(index3); + CollectionsMarshal.SetCount(list11, index3); + Span span11 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span11[num3] = 133; obj9.InTerritory = list11; skipConditions2.AetheryteShortcutIf = obj9; obj8.SkipConditions = skipConditions2; reference7 = obj8; obj7.Steps = list10; reference6 = obj7; - ref QuestSequence reference8 = ref span2[1]; + num++; + ref QuestSequence reference8 = ref span9[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1014020u, new Vector3(-416.70862f, -55.58494f, 112.38269f), 145) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.Interact, 1014020u, new Vector3(-416.70862f, -55.58494f, 112.38269f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj10.Steps = list12; reference8 = obj10; - ref QuestSequence reference9 = ref span2[2]; + num++; + ref QuestSequence reference9 = ref span9[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -128529,63 +154850,88 @@ public static class AssemblyQuestLoader num2 = 3; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span3 = CollectionsMarshal.AsSpan(list13); - ref QuestStep reference10 = ref span3[0]; + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + ref QuestStep reference10 = ref span13[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1004506u, new Vector3(-416.64764f, -54.15f, 96.42175f), 145); num3 = 6; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - Span span4 = CollectionsMarshal.AsSpan(list14); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span14 = CollectionsMarshal.AsSpan(list14); + index3 = 0; + span14[index3] = null; + index3++; + span14[index3] = null; + index3++; + span14[index3] = null; + index3++; + span14[index3] = null; + index3++; + span14[index3] = null; + index3++; + span14[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list14; reference10 = questStep; - ref QuestStep reference11 = ref span3[1]; + index2++; + ref QuestStep reference11 = ref span13[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1003931u, new Vector3(-379.6292f, -55.85506f, 95.04846f), 145); - num3 = 6; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span5 = CollectionsMarshal.AsSpan(list15); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + Span span15 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list15; reference11 = questStep2; - ref QuestStep reference12 = ref span3[2]; + index2++; + ref QuestStep reference12 = ref span13[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1004556u, new Vector3(-394.85773f, -57.30005f, 173.32715f), 145); num3 = 6; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span6 = CollectionsMarshal.AsSpan(list16); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span16 = CollectionsMarshal.AsSpan(list16); + index3 = 0; + span16[index3] = null; + index3++; + span16[index3] = null; + index3++; + span16[index3] = null; + index3++; + span16[index3] = null; + index3++; + span16[index3] = null; + index3++; + span16[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list16; reference12 = questStep3; obj11.Steps = list13; reference9 = obj11; - ref QuestSequence reference13 = ref span2[3]; + num++; + ref QuestSequence reference13 = ref span9[num]; QuestSequence obj12 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1014020u, new Vector3(-416.70862f, -55.58494f, 112.38269f), 145); + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.Interact, 1014020u, new Vector3(-416.70862f, -55.58494f, 112.38269f), 145); obj12.Steps = list17; reference13 = obj12; - ref QuestSequence reference14 = ref span2[4]; + num++; + ref QuestSequence reference14 = ref span9[num]; QuestSequence obj13 = new QuestSequence { Sequence = 4 @@ -128593,45 +154939,58 @@ public static class AssemblyQuestLoader num2 = 2; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span7 = CollectionsMarshal.AsSpan(list18); - ref QuestStep reference15 = ref span7[0]; + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + ref QuestStep reference15 = ref span18[index2]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, null, new Vector3(-194.28932f, -36.84067f, 26.942286f), 145) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span8 = CollectionsMarshal.AsSpan(list19); - span8[0] = 4777u; - span8[1] = 4778u; + index3 = 2; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span19[num3] = 4777u; + num3++; + span19[num3] = 4778u; obj14.KillEnemyDataIds = list19; num3 = 6; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span9 = CollectionsMarshal.AsSpan(list20); - span9[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = null; + Span span20 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span20[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; obj14.CompletionQuestVariablesFlags = list20; reference15 = obj14; - span7[1] = new QuestStep(EInteractionType.Interact, 1014025u, new Vector3(-193.59125f, -36.83681f, 25.894531f), 145); + index2++; + span18[index2] = new QuestStep(EInteractionType.Interact, 1014025u, new Vector3(-193.59125f, -36.83681f, 25.894531f), 145); obj13.Steps = list18; reference14 = obj13; - ref QuestSequence reference16 = ref span2[5]; + num++; + ref QuestSequence reference16 = ref span9[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(2102) @@ -128645,13 +155004,16 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + Span span22 = CollectionsMarshal.AsSpan(list22); + index = 0; + span22[index] = "liza"; questRoot3.Author = list22; - num = 5; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span10 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference17 = ref span10[0]; + index = 5; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + Span span23 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference17 = ref span23[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -128659,7 +155021,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -128672,22 +155036,26 @@ public static class AssemblyQuestLoader }; obj16.Steps = list24; reference17 = obj16; - ref QuestSequence reference18 = ref span10[1]; + num++; + ref QuestSequence reference18 = ref span23[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1014029u, new Vector3(45.24292f, 18f, -414.87756f), 141) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.Interact, 1014029u, new Vector3(45.24292f, 18f, -414.87756f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj17.Steps = list25; reference18 = obj17; - ref QuestSequence reference19 = ref span10[2]; + num++; + ref QuestSequence reference19 = ref span23[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -128695,94 +155063,125 @@ public static class AssemblyQuestLoader num2 = 3; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span11 = CollectionsMarshal.AsSpan(list26); - ref QuestStep reference20 = ref span11[0]; + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + ref QuestStep reference20 = ref span26[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, 2005969u, new Vector3(-4.5319824f, 27.695068f, -422.2019f), 141) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = 4781u; + index3 = 1; + List list27 = new List(index3); + CollectionsMarshal.SetCount(list27, index3); + Span span27 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + span27[num3] = 4781u; obj19.KillEnemyDataIds = list27; num3 = 6; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - Span span12 = CollectionsMarshal.AsSpan(list28); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span28 = CollectionsMarshal.AsSpan(list28); + index3 = 0; + span28[index3] = null; + index3++; + span28[index3] = null; + index3++; + span28[index3] = null; + index3++; + span28[index3] = null; + index3++; + span28[index3] = null; + index3++; + span28[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj19.CompletionQuestVariablesFlags = list28; reference20 = obj19; - ref QuestStep reference21 = ref span11[1]; + index2++; + ref QuestStep reference21 = ref span26[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, 2005970u, new Vector3(-29.160034f, 27.42041f, -417.99042f), 141) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = 4781u; + index3 = 1; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span29[num3] = 4781u; obj20.KillEnemyDataIds = list29; num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span13 = CollectionsMarshal.AsSpan(list30); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span30 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj20.CompletionQuestVariablesFlags = list30; reference21 = obj20; - ref QuestStep reference22 = ref span11[2]; + index2++; + ref QuestStep reference22 = ref span26[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 2005971u, new Vector3(-11.6427f, 34.01233f, -458.60992f), 141) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span14 = CollectionsMarshal.AsSpan(list31); - span14[0] = 4781u; - span14[1] = 4786u; + index3 = 2; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = 4781u; + num3++; + span31[num3] = 4786u; obj21.KillEnemyDataIds = list31; num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span15 = CollectionsMarshal.AsSpan(list32); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span32 = CollectionsMarshal.AsSpan(list32); + index3 = 0; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list32; reference22 = obj21; obj18.Steps = list26; reference19 = obj18; - ref QuestSequence reference23 = ref span10[3]; + num++; + ref QuestSequence reference23 = ref span23[num]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1014029u, new Vector3(45.24292f, 18f, -414.87756f), 141) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.Interact, 1014029u, new Vector3(45.24292f, 18f, -414.87756f), 141) { Fly = true }; obj22.Steps = list33; reference23 = obj22; - ref QuestSequence reference24 = ref span10[4]; + num++; + ref QuestSequence reference24 = ref span23[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -128790,7 +155189,9 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(2103) @@ -128804,21 +155205,26 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "liza"; + Span span35 = CollectionsMarshal.AsSpan(list35); + index = 0; + span35[index] = "liza"; questRoot4.Author = list35; - num = 6; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span16 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference25 = ref span16[0]; + index = 6; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + Span span36 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference25 = ref span36[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -128831,7 +155237,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list37; reference25 = obj24; - ref QuestSequence reference26 = ref span16[1]; + num++; + ref QuestSequence reference26 = ref span36[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -128839,28 +155246,34 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1014033u, new Vector3(47.16565f, 4f, 466.14783f), 147) + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.Interact, 1014033u, new Vector3(47.16565f, 4f, 466.14783f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog }; obj25.Steps = list38; reference26 = obj25; - ref QuestSequence reference27 = ref span16[2]; + num++; + ref QuestSequence reference27 = ref span36[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 2005972u, new Vector3(-6.8513794f, 5.722107f, 290.8827f), 147) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.Interact, 2005972u, new Vector3(-6.8513794f, 5.722107f, 290.8827f), 147) { StopDistance = 1f, Fly = true }; obj26.Steps = list39; reference27 = obj26; - ref QuestSequence reference28 = ref span16[3]; + num++; + ref QuestSequence reference28 = ref span36[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 @@ -128868,37 +155281,45 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list40)[0]; + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + ref QuestStep reference29 = ref span40[index2]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(13.795937f, 5.0408907f, 280.2135f), 147) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - Span span17 = CollectionsMarshal.AsSpan(list41); - span17[0] = 4787u; - span17[1] = 4788u; + index3 = 2; + List list41 = new List(index3); + CollectionsMarshal.SetCount(list41, index3); + Span span41 = CollectionsMarshal.AsSpan(list41); + num3 = 0; + span41[num3] = 4787u; + num3++; + span41[num3] = 4788u; obj28.KillEnemyDataIds = list41; reference29 = obj28; obj27.Steps = list40; reference28 = obj27; - ref QuestSequence reference30 = ref span16[4]; + num++; + ref QuestSequence reference30 = ref span36[num]; QuestSequence obj29 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1014034u, new Vector3(13.687317f, 4.983316f, 284.38232f), 147) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.Interact, 1014034u, new Vector3(13.687317f, 4.983316f, 284.38232f), 147) { StopDistance = 7f }; obj29.Steps = list42; reference30 = obj29; - ref QuestSequence reference31 = ref span16[5]; + num++; + ref QuestSequence reference31 = ref span36[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -128906,7 +155327,9 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(2104) @@ -128920,21 +155343,26 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + Span span44 = CollectionsMarshal.AsSpan(list44); + index = 0; + span44[index] = "liza"; questRoot5.Author = list44; - num = 5; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span18 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference32 = ref span18[0]; + index = 5; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + Span span45 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference32 = ref span45[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -128947,7 +155375,8 @@ public static class AssemblyQuestLoader }; obj31.Steps = list46; reference32 = obj31; - ref QuestSequence reference33 = ref span18[1]; + num++; + ref QuestSequence reference33 = ref span45[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -128955,7 +155384,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -128966,21 +155397,25 @@ public static class AssemblyQuestLoader }; obj32.Steps = list47; reference33 = obj32; - ref QuestSequence reference34 = ref span18[2]; + num++; + ref QuestSequence reference34 = ref span45[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.Interact, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj33.Steps = list48; reference34 = obj33; - ref QuestSequence reference35 = ref span18[3]; + num++; + ref QuestSequence reference35 = ref span45[num]; QuestSequence obj34 = new QuestSequence { Sequence = 3 @@ -128988,7 +155423,9 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014038u, new Vector3(-20.24878f, 83.19998f, -1.4801636f), 130) + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span49[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014038u, new Vector3(-20.24878f, 83.19998f, -1.4801636f), 130) { AethernetShortcut = new AethernetShortcut { @@ -128998,15 +155435,18 @@ public static class AssemblyQuestLoader }; obj34.Steps = list49; reference35 = obj34; - ref QuestSequence reference36 = ref span18[4]; + num++; + ref QuestSequence reference36 = ref span45[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(2105) @@ -129020,13 +155460,16 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "liza"; + Span span51 = CollectionsMarshal.AsSpan(list51); + index = 0; + span51[index] = "liza"; questRoot6.Author = list51; - num = 4; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span19 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference37 = ref span19[0]; + index = 4; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + Span span52 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference37 = ref span52[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -129034,7 +155477,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -129047,15 +155492,18 @@ public static class AssemblyQuestLoader }; obj36.Steps = list53; reference37 = obj36; - ref QuestSequence reference38 = ref span19[1]; + num++; + ref QuestSequence reference38 = ref span52[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014042u, new Vector3(277.11902f, 232.54102f, 760.1892f), 399) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014042u, new Vector3(277.11902f, 232.54102f, 760.1892f), 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -129066,7 +155514,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list54; reference38 = obj37; - ref QuestSequence reference39 = ref span19[2]; + num++; + ref QuestSequence reference39 = ref span52[num]; QuestSequence obj38 = new QuestSequence { Sequence = 2 @@ -129074,18 +155523,23 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1014045u, new Vector3(260.5172f, 232.54103f, 728.9081f), 399); + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.Interact, 1014045u, new Vector3(260.5172f, 232.54103f, 728.9081f), 399); obj38.Steps = list55; reference39 = obj38; - ref QuestSequence reference40 = ref span19[3]; + num++; + ref QuestSequence reference40 = ref span52[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014044u, new Vector3(264.515f, 232.54102f, 728.84717f), 399) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014044u, new Vector3(264.515f, 232.54102f, 728.84717f), 399) { StopDistance = 7f }; @@ -129098,12 +155552,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "liza"; + Span span57 = CollectionsMarshal.AsSpan(list57); + index = 0; + span57[index] = "liza"; questRoot7.Author = list57; - num = 1; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - ref QuestSequence reference41 = ref CollectionsMarshal.AsSpan(list58)[0]; + index = 1; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + Span span58 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference41 = ref span58[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -129111,9 +155569,11 @@ public static class AssemblyQuestLoader num2 = 2; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span20 = CollectionsMarshal.AsSpan(list59); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-56.3453f, 15.140585f, -41.30522f), 418); - span20[1] = new QuestStep(EInteractionType.AcceptQuest, 1011208u, new Vector3(-53.543945f, 15.195588f, -42.679565f), 418) + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-56.3453f, 15.140585f, -41.30522f), 418); + index2++; + span59[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011208u, new Vector3(-53.543945f, 15.195588f, -42.679565f), 418) { StopDistance = 7f }; @@ -129126,20 +155586,26 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "JerryWester"; + Span span60 = CollectionsMarshal.AsSpan(list60); + index = 0; + span60[index] = "JerryWester"; questRoot8.Author = list60; - num = 1; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - ref QuestSequence reference42 = ref CollectionsMarshal.AsSpan(list61)[0]; + index = 1; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference42 = ref span61[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013715u, new Vector3(503.37976f, -48.989826f, 33.066284f), 398) + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013715u, new Vector3(503.37976f, -48.989826f, 33.066284f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, SkipConditions = new SkipConditions @@ -129159,12 +155625,16 @@ public static class AssemblyQuestLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = "liza"; + Span span63 = CollectionsMarshal.AsSpan(list63); + index = 0; + span63[index] = "liza"; questRoot9.Author = list63; - num = 1; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - ref QuestSequence reference43 = ref CollectionsMarshal.AsSpan(list64)[0]; + index = 1; + List list64 = new List(index); + CollectionsMarshal.SetCount(list64, index); + Span span64 = CollectionsMarshal.AsSpan(list64); + num = 0; + ref QuestSequence reference43 = ref span64[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -129172,7 +155642,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list65)[0]; + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + ref QuestStep reference44 = ref span65[index2]; QuestStep obj43 = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -129192,7 +155664,9 @@ public static class AssemblyQuestLoader num3 = 1; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = new DialogueChoice + Span span66 = CollectionsMarshal.AsSpan(list66); + index3 = 0; + span66[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBMCH299_02109_Q1_000_000") @@ -129208,20 +155682,26 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "liza"; + Span span67 = CollectionsMarshal.AsSpan(list67); + index = 0; + span67[index] = "liza"; questRoot10.Author = list67; - num = 1; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - ref QuestSequence reference45 = ref CollectionsMarshal.AsSpan(list68)[0]; + index = 1; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + Span span68 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference45 = ref span68[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list69)[0]; + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + ref QuestStep reference46 = ref span69[num2]; QuestStep obj45 = new QuestStep(EInteractionType.AcceptQuest, 1014873u, new Vector3(101.57922f, 12.418198f, -117.60132f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -129236,17 +155716,21 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = 419; + index3 = 1; + List list70 = new List(index3); + CollectionsMarshal.SetCount(list70, index3); + Span span70 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span70[num3] = 419; obj46.InTerritory = list70; skipConditions3.AetheryteShortcutIf = obj46; obj45.SkipConditions = skipConditions3; num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new DialogueChoice + Span span71 = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span71[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBDRK299_02110_Q1_000_005") @@ -129262,13 +155746,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "JerryWester"; + Span span72 = CollectionsMarshal.AsSpan(list72); + index = 0; + span72[index] = "JerryWester"; questRoot11.Author = list72; - num = 4; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span21 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference47 = ref span21[0]; + index = 4; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + Span span73 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference47 = ref span73[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -129276,21 +155763,27 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011911u, new Vector3(-279.56055f, 127.08131f, 13.595764f), 397); + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011911u, new Vector3(-279.56055f, 127.08131f, 13.595764f), 397); obj47.Steps = list74; reference47 = obj47; - ref QuestSequence reference48 = ref span21[1]; + num++; + ref QuestSequence reference48 = ref span73[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1013746u, new Vector3(-87.815735f, 87.188995f, -735.04236f), 397); + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.Interact, 1013746u, new Vector3(-87.815735f, 87.188995f, -735.04236f), 397); obj48.Steps = list75; reference48 = obj48; - ref QuestSequence reference49 = ref span21[2]; + num++; + ref QuestSequence reference49 = ref span73[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -129298,7 +155791,9 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Duty, null, null, 397) + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.Duty, null, null, 397) { DutyOptions = new DutyOptions { @@ -129308,15 +155803,18 @@ public static class AssemblyQuestLoader }; obj49.Steps = list76; reference49 = obj49; - ref QuestSequence reference50 = ref span21[3]; + num++; + ref QuestSequence reference50 = ref span73[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011911u, new Vector3(-279.56055f, 127.08131f, 13.595764f), 397); + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011911u, new Vector3(-279.56055f, 127.08131f, 13.595764f), 397); obj50.Steps = list77; reference50 = obj50; questRoot11.QuestSequence = list73; @@ -129326,13 +155824,16 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - CollectionsMarshal.AsSpan(list78)[0] = "liza"; + Span span78 = CollectionsMarshal.AsSpan(list78); + index = 0; + span78[index] = "liza"; questRoot12.Author = list78; - num = 2; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - Span span22 = CollectionsMarshal.AsSpan(list79); - ref QuestSequence reference51 = ref span22[0]; + index = 2; + List list79 = new List(index); + CollectionsMarshal.SetCount(list79, index); + Span span79 = CollectionsMarshal.AsSpan(list79); + num = 0; + ref QuestSequence reference51 = ref span79[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -129340,7 +155841,9 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - ref QuestStep reference52 = ref CollectionsMarshal.AsSpan(list80)[0]; + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + ref QuestStep reference52 = ref span80[index2]; QuestStep obj52 = new QuestStep(EInteractionType.AcceptQuest, 1012217u, new Vector3(25.925049f, 15.8650675f, 19.394226f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -129355,35 +155858,41 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = 419; + index3 = 1; + List list81 = new List(index3); + CollectionsMarshal.SetCount(list81, index3); + Span span81 = CollectionsMarshal.AsSpan(list81); + num3 = 0; + span81[num3] = 419; obj53.InTerritory = list81; skipConditions4.AetheryteShortcutIf = obj53; obj52.SkipConditions = skipConditions4; reference52 = obj52; obj51.Steps = list80; reference51 = obj51; - ref QuestSequence reference53 = ref span22[1]; + num++; + ref QuestSequence reference53 = ref span79[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - Span span23 = CollectionsMarshal.AsSpan(list82); - span23[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span23[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span82[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span23[2] = new QuestStep(EInteractionType.CompleteQuest, 2006287u, new Vector3(0.015197754f, -1.9990234f, -40.909485f), 351) + num2++; + span82[num2] = new QuestStep(EInteractionType.CompleteQuest, 2006287u, new Vector3(0.015197754f, -1.9990234f, -40.909485f), 351) { NextQuestId = new QuestId(2230) }; @@ -129396,13 +155905,16 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "liza"; + Span span83 = CollectionsMarshal.AsSpan(list83); + index = 0; + span83[index] = "liza"; questRoot13.Author = list83; - num = 7; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span24 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference54 = ref span24[0]; + index = 7; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + Span span84 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference54 = ref span84[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -129410,8 +155922,9 @@ public static class AssemblyQuestLoader num2 = 3; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span25 = CollectionsMarshal.AsSpan(list85); - ref QuestStep reference55 = ref span25[0]; + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + ref QuestStep reference55 = ref span85[index2]; QuestStep obj56 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -129422,19 +155935,24 @@ public static class AssemblyQuestLoader num3 = 1; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = 351; + Span span86 = CollectionsMarshal.AsSpan(list86); + index3 = 0; + span86[index3] = 351; skipStepConditions.InTerritory = list86; skipConditions5.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = 351; + index3 = 1; + List list87 = new List(index3); + CollectionsMarshal.SetCount(list87, index3); + Span span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = 351; skipAetheryteCondition.InTerritory = list87; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition; obj56.SkipConditions = skipConditions5; reference55 = obj56; - span25[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span85[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -129445,28 +155963,33 @@ public static class AssemblyQuestLoader } } }; - span25[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + index2++; + span85[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj55.Steps = list85; reference54 = obj55; - ref QuestSequence reference56 = ref span24[1]; + num++; + ref QuestSequence reference56 = ref span84[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj57.Steps = list88; reference56 = obj57; - ref QuestSequence reference57 = ref span24[2]; + num++; + ref QuestSequence reference57 = ref span84[num]; QuestSequence obj58 = new QuestSequence { Sequence = 2 @@ -129474,32 +155997,38 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1014623u, new Vector3(-808.8655f, -57.761612f, 159.5636f), 401) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.Interact, 1014623u, new Vector3(-808.8655f, -57.761612f, 159.5636f), 401) { Fly = true }; obj58.Steps = list89; reference57 = obj58; - ref QuestSequence reference58 = ref span24[3]; + num++; + ref QuestSequence reference58 = ref span84[num]; QuestSequence obj59 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span26 = CollectionsMarshal.AsSpan(list90); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(367.30618f, 141.31621f, 258.9364f), 401) + index2 = 2; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(367.30618f, 141.31621f, 258.9364f), 401) { Fly = true }; - span26[1] = new QuestStep(EInteractionType.Interact, 2006288u, new Vector3(369.55823f, 143.17542f, 260.70032f), 401) + num2++; + span90[num2] = new QuestStep(EInteractionType.Interact, 2006288u, new Vector3(369.55823f, 143.17542f, 260.70032f), 401) { StopDistance = 4f }; obj59.Steps = list90; reference58 = obj59; - ref QuestSequence reference59 = ref span24[4]; + num++; + ref QuestSequence reference59 = ref span84[num]; QuestSequence obj60 = new QuestSequence { Sequence = 4 @@ -129507,7 +156036,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Duty, null, null, 401) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.Duty, null, null, 401) { DutyOptions = new DutyOptions { @@ -129516,22 +156047,26 @@ public static class AssemblyQuestLoader }; obj60.Steps = list91; reference59 = obj60; - ref QuestSequence reference60 = ref span24[5]; + num++; + ref QuestSequence reference60 = ref span84[num]; QuestSequence obj61 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj61.Steps = list92; reference60 = obj61; - ref QuestSequence reference61 = ref span24[6]; + num++; + ref QuestSequence reference61 = ref span84[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -129539,17 +156074,20 @@ public static class AssemblyQuestLoader num2 = 3; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span27 = CollectionsMarshal.AsSpan(list93); - span27[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span27[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span93[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span27[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + index2++; + span93[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; @@ -129562,22 +156100,26 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "liza"; + Span span94 = CollectionsMarshal.AsSpan(list94); + index = 0; + span94[index] = "liza"; questRoot14.Author = list94; - num = 6; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span28 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference62 = ref span28[0]; + index = 6; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + Span span95 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference62 = ref span95[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - Span span29 = CollectionsMarshal.AsSpan(list96); - ref QuestStep reference63 = ref span29[0]; + index2 = 3; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + ref QuestStep reference63 = ref span96[num2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -129588,19 +156130,24 @@ public static class AssemblyQuestLoader num3 = 1; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - CollectionsMarshal.AsSpan(list97)[0] = 351; + Span span97 = CollectionsMarshal.AsSpan(list97); + index3 = 0; + span97[index3] = 351; skipStepConditions2.InTerritory = list97; skipConditions6.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = 351; + index3 = 1; + List list98 = new List(index3); + CollectionsMarshal.SetCount(list98, index3); + Span span98 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span98[num3] = 351; skipAetheryteCondition2.InTerritory = list98; skipConditions6.AetheryteShortcutIf = skipAetheryteCondition2; obj64.SkipConditions = skipConditions6; reference63 = obj64; - span29[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span96[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -129611,13 +156158,15 @@ public static class AssemblyQuestLoader } } }; - span29[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + num2++; + span96[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj63.Steps = list96; reference62 = obj63; - ref QuestSequence reference64 = ref span28[1]; + num++; + ref QuestSequence reference64 = ref span95[num]; QuestSequence obj65 = new QuestSequence { Sequence = 1 @@ -129625,35 +156174,41 @@ public static class AssemblyQuestLoader num2 = 2; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span30 = CollectionsMarshal.AsSpan(list99); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(73.307335f, -49.128403f, -142.59073f), 398) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(73.307335f, -49.128403f, -142.59073f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span30[1] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2++; + span99[index2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { StopDistance = 4f }; obj65.Steps = list99; reference64 = obj65; - ref QuestSequence reference65 = ref span28[2]; + num++; + ref QuestSequence reference65 = ref span95[num]; QuestSequence obj66 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span31 = CollectionsMarshal.AsSpan(list100); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(258.42062f, -112.936935f, 924.15704f), 398) + index2 = 2; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(258.42062f, -112.936935f, 924.15704f), 398) { Fly = true }; - span31[1] = new QuestStep(EInteractionType.Interact, 2006289u, new Vector3(257.77063f, -111.92493f, 925.3832f), 398); + num2++; + span100[num2] = new QuestStep(EInteractionType.Interact, 2006289u, new Vector3(257.77063f, -111.92493f, 925.3832f), 398); obj66.Steps = list100; reference65 = obj66; - ref QuestSequence reference66 = ref span28[3]; + num++; + ref QuestSequence reference66 = ref span95[num]; QuestSequence obj67 = new QuestSequence { Sequence = 3 @@ -129661,7 +156216,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Duty, null, null, 401) + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.Duty, null, null, 401) { DutyOptions = new DutyOptions { @@ -129670,27 +156227,31 @@ public static class AssemblyQuestLoader }; obj67.Steps = list101; reference66 = obj67; - ref QuestSequence reference67 = ref span28[4]; + num++; + ref QuestSequence reference67 = ref span95[num]; QuestSequence obj68 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span32 = CollectionsMarshal.AsSpan(list102); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(73.307335f, -49.128403f, -142.59073f), 398) + index2 = 2; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(73.307335f, -49.128403f, -142.59073f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span32[1] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + num2++; + span102[num2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { StopDistance = 4f }; obj68.Steps = list102; reference67 = obj68; - ref QuestSequence reference68 = ref span28[5]; + num++; + ref QuestSequence reference68 = ref span95[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -129698,17 +156259,20 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span33 = CollectionsMarshal.AsSpan(list103); - span33[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span103[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span33[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span103[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span33[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + index2++; + span103[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; @@ -129721,21 +156285,26 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "liza"; + Span span104 = CollectionsMarshal.AsSpan(list104); + index = 0; + span104[index] = "liza"; questRoot15.Author = list104; - num = 2; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span34 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference69 = ref span34[0]; + index = 2; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + Span span105 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference69 = ref span105[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017083u, new Vector3(63.797974f, 207.28995f, -1.5107422f), 478) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017083u, new Vector3(63.797974f, 207.28995f, -1.5107422f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -129748,7 +156317,8 @@ public static class AssemblyQuestLoader }; obj70.Steps = list106; reference69 = obj70; - ref QuestSequence reference70 = ref span34[1]; + num++; + ref QuestSequence reference70 = ref span105[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -129756,7 +156326,9 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015599u, new Vector3(-205.79846f, 102.81167f, -580.0717f), 399) + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015599u, new Vector3(-205.79846f, 102.81167f, -580.0717f), 399) { AethernetShortcut = new AethernetShortcut { @@ -129774,21 +156346,26 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; + Span span108 = CollectionsMarshal.AsSpan(list108); + index = 0; + span108[index] = "liza"; questRoot16.Author = list108; - num = 3; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span35 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference71 = ref span35[0]; + index = 3; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + Span span109 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference71 = ref span109[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012256u, new Vector3(86.96118f, 24f, 30.350098f), 418) + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span110[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012256u, new Vector3(86.96118f, 24f, 30.350098f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -129806,7 +156383,8 @@ public static class AssemblyQuestLoader }; obj72.Steps = list110; reference71 = obj72; - ref QuestSequence reference72 = ref span35[1]; + num++; + ref QuestSequence reference72 = ref span109[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -129814,21 +156392,26 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) + Span span111 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span111[index2] = new QuestStep(EInteractionType.Interact, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) { StopDistance = 5f }; obj73.Steps = list111; reference72 = obj73; - ref QuestSequence reference73 = ref span35[2]; + num++; + ref QuestSequence reference73 = ref span109[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) { NextQuestId = new QuestId(2120) }; @@ -129841,13 +156424,16 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - CollectionsMarshal.AsSpan(list113)[0] = "liza"; + Span span113 = CollectionsMarshal.AsSpan(list113); + index = 0; + span113[index] = "liza"; questRoot17.Author = list113; - num = 3; - List list114 = new List(num); - CollectionsMarshal.SetCount(list114, num); - Span span36 = CollectionsMarshal.AsSpan(list114); - ref QuestSequence reference74 = ref span36[0]; + index = 3; + List list114 = new List(index); + CollectionsMarshal.SetCount(list114, index); + Span span114 = CollectionsMarshal.AsSpan(list114); + num = 0; + ref QuestSequence reference74 = ref span114[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -129855,27 +156441,33 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012226u, new Vector3(71.732666f, 23.979126f, 20.85907f), 418) + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012226u, new Vector3(71.732666f, 23.979126f, 20.85907f), 418) { StopDistance = 7f }; obj75.Steps = list115; reference74 = obj75; - ref QuestSequence reference75 = ref span36[1]; + num++; + ref QuestSequence reference75 = ref span114[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.Interact, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) { StopDistance = 5f }; obj76.Steps = list116; reference75 = obj76; - ref QuestSequence reference76 = ref span36[2]; + num++; + ref QuestSequence reference76 = ref span114[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -129883,7 +156475,9 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) { NextQuestId = new QuestId(2121) }; @@ -129896,21 +156490,26 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "liza"; questRoot18.Author = list118; - num = 3; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span37 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference77 = ref span37[0]; + index = 3; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference77 = ref span119[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013721u, new Vector3(17.380005f, 205.38686f, 37.491333f), 478) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013721u, new Vector3(17.380005f, 205.38686f, 37.491333f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -129923,7 +156522,8 @@ public static class AssemblyQuestLoader }; obj78.Steps = list120; reference77 = obj78; - ref QuestSequence reference78 = ref span37[1]; + num++; + ref QuestSequence reference78 = ref span119[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -129931,7 +156531,9 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.Interact, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -129943,15 +156545,18 @@ public static class AssemblyQuestLoader }; obj79.Steps = list121; reference78 = obj79; - ref QuestSequence reference79 = ref span37[2]; + num++; + ref QuestSequence reference79 = ref span119[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) { NextQuestId = new QuestId(2122) }; @@ -129964,13 +156569,16 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; + Span span123 = CollectionsMarshal.AsSpan(list123); + index = 0; + span123[index] = "liza"; questRoot19.Author = list123; - num = 2; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span38 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference80 = ref span38[0]; + index = 2; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + Span span124 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference80 = ref span124[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -129978,7 +156586,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -129992,15 +156602,18 @@ public static class AssemblyQuestLoader }; obj81.Steps = list125; reference80 = obj81; - ref QuestSequence reference81 = ref span38[1]; + num++; + ref QuestSequence reference81 = ref span124[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) { NextQuestId = new QuestId(2936) }; @@ -130013,12 +156626,16 @@ public static class AssemblyQuestLoader num = 1; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - CollectionsMarshal.AsSpan(list127)[0] = "liza"; + Span span127 = CollectionsMarshal.AsSpan(list127); + index = 0; + span127[index] = "liza"; questRoot20.Author = list127; - num = 1; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - ref QuestSequence reference82 = ref CollectionsMarshal.AsSpan(list128)[0]; + index = 1; + List list128 = new List(index); + CollectionsMarshal.SetCount(list128, index); + Span span128 = CollectionsMarshal.AsSpan(list128); + num = 0; + ref QuestSequence reference82 = ref span128[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -130026,7 +156643,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list129)[0]; + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + ref QuestStep reference83 = ref span129[index2]; QuestStep obj84 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -130045,20 +156664,24 @@ public static class AssemblyQuestLoader num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = 419; + Span span130 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span130[index3] = 419; obj85.InTerritory = list130; skipConditions7.AetheryteShortcutIf = obj85; obj84.SkipConditions = skipConditions7; - num3 = 2; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span39 = CollectionsMarshal.AsSpan(list131); - span39[0] = new DialogueChoice + index3 = 2; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + Span span131 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span131[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBAST299_02123_Q1_000_000") }; - span39[1] = new DialogueChoice + num3++; + span131[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBAST299_02123_Q2_000_000") @@ -130078,13 +156701,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "pot0to"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "pot0to"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -130092,7 +156718,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1012181u, new Vector3(-248.55426f, -20.034918f, -90.98956f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -130107,25 +156735,31 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = 419; + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = 419; skipAetheryteCondition.InTerritory = list4; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1015926u, new Vector3(-114.00018f, -4.7349386f, -33.463074f), 419); + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span5[num2] = new QuestStep(EInteractionType.Interact, 1015926u, new Vector3(-114.00018f, -4.7349386f, -33.463074f), 419); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -130133,7 +156767,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1015931u, new Vector3(97.032104f, -22.000004f, 52.414673f), 418) + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.Interact, 1015931u, new Vector3(97.032104f, -22.000004f, 52.414673f), 418) { AethernetShortcut = new AethernetShortcut { @@ -130143,15 +156779,18 @@ public static class AssemblyQuestLoader }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012181u, new Vector3(-248.55426f, -20.034918f, -90.98956f), 419) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012181u, new Vector3(-248.55426f, -20.034918f, -90.98956f), 419) { AethernetShortcut = new AethernetShortcut { @@ -130169,13 +156808,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "pot0to"; + Span span8 = CollectionsMarshal.AsSpan(list8); + index = 0; + span8[index] = "pot0to"; questRoot2.Author = list8; - num = 7; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span2 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span2[0]; + index = 7; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + Span span9 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span9[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -130183,7 +156825,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list10)[0]; + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + ref QuestStep reference7 = ref span10[index2]; QuestStep obj7 = new QuestStep(EInteractionType.AcceptQuest, 1015932u, new Vector3(-250.81262f, -20.03492f, -89.982544f), 419) { StopDistance = 5f, @@ -130196,25 +156840,30 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = 419; + index3 = 1; + List list11 = new List(index3); + CollectionsMarshal.SetCount(list11, index3); + Span span11 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span11[num3] = 419; skipAetheryteCondition2.InTerritory = list11; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; obj7.SkipConditions = skipConditions2; reference7 = obj7; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference8 = ref span2[1]; + num++; + ref QuestSequence reference8 = ref span9[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1016234u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.Interact, 1016234u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, AethernetShortcut = new AethernetShortcut @@ -130225,7 +156874,8 @@ public static class AssemblyQuestLoader }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span2[2]; + num++; + ref QuestSequence reference9 = ref span9[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 @@ -130233,21 +156883,27 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1015933u, new Vector3(-7.950012f, 0.024999563f, -8.224609f), 427); + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.Interact, 1015933u, new Vector3(-7.950012f, 0.024999563f, -8.224609f), 427); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span2[3]; + num++; + ref QuestSequence reference10 = ref span9[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1015935u, new Vector3(5.1116943f, 0.22499955f, 4.0131226f), 427); + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.Interact, 1015935u, new Vector3(5.1116943f, 0.22499955f, 4.0131226f), 427); obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[4]; + num++; + ref QuestSequence reference11 = ref span9[num]; QuestSequence obj11 = new QuestSequence { Sequence = 4 @@ -130255,7 +156911,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1015936u, new Vector3(69.90149f, 23.979128f, -48.722107f), 418) + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.Interact, 1015936u, new Vector3(69.90149f, 23.979128f, -48.722107f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -130266,16 +156924,18 @@ public static class AssemblyQuestLoader }; obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference12 = ref span2[5]; + num++; + ref QuestSequence reference12 = ref span9[num]; QuestSequence obj12 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span3 = CollectionsMarshal.AsSpan(list16); - span3[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + index2 = 2; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, AethernetShortcut = new AethernetShortcut @@ -130284,10 +156944,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSaintReymanaudsCathedral } }; - span3[1] = new QuestStep(EInteractionType.Interact, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427); + num2++; + span16[num2] = new QuestStep(EInteractionType.Interact, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427); obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference13 = ref span2[6]; + num++; + ref QuestSequence reference13 = ref span9[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -130295,7 +156957,9 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427) + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427) { NextQuestId = new QuestId(2154) }; @@ -130308,22 +156972,26 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "pot0to"; + Span span18 = CollectionsMarshal.AsSpan(list18); + index = 0; + span18[index] = "pot0to"; questRoot3.Author = list18; - num = 6; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span4 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference14 = ref span4[0]; + index = 6; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + Span span19 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference14 = ref span19[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span5 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference15 = ref span5[0]; + index2 = 2; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span20[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, @@ -130339,24 +157007,30 @@ public static class AssemblyQuestLoader num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = 427; + Span span21 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span21[index3] = 427; skipStepConditions.InTerritory = list21; skipConditions3.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); - num3 = 2; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span6 = CollectionsMarshal.AsSpan(list22); - span6[0] = 419; - span6[1] = 427; + index3 = 2; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = 419; + num3++; + span22[num3] = 427; skipAetheryteCondition3.InTerritory = list22; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition3; obj15.SkipConditions = skipConditions3; reference15 = obj15; - span5[1] = new QuestStep(EInteractionType.AcceptQuest, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427); + num2++; + span20[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427); obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference16 = ref span4[1]; + num++; + ref QuestSequence reference16 = ref span19[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -130364,26 +157038,32 @@ public static class AssemblyQuestLoader num2 = 2; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span7 = CollectionsMarshal.AsSpan(list23); - span7[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.012468f, 1.1515f, 11.86189f), 427) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.012468f, 1.1515f, 11.86189f), 427) { TargetTerritoryId = (ushort)419 }; - span7[1] = new QuestStep(EInteractionType.Interact, 1015977u, new Vector3(-177.35565f, 15.06314f, -174.36487f), 419); + index2++; + span23[index2] = new QuestStep(EInteractionType.Interact, 1015977u, new Vector3(-177.35565f, 15.06314f, -174.36487f), 419); obj16.Steps = list23; reference16 = obj16; - ref QuestSequence reference17 = ref span4[2]; + num++; + ref QuestSequence reference17 = ref span19[num]; QuestSequence obj17 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1015941u, new Vector3(-175.34143f, 15.063141f, -171.09949f), 419); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.Interact, 1015941u, new Vector3(-175.34143f, 15.063141f, -171.09949f), 419); obj17.Steps = list24; reference17 = obj17; - ref QuestSequence reference18 = ref span4[3]; + num++; + ref QuestSequence reference18 = ref span19[num]; QuestSequence obj18 = new QuestSequence { Sequence = 3 @@ -130391,32 +157071,39 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span8 = CollectionsMarshal.AsSpan(list25); - span8[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427 }; - span8[1] = new QuestStep(EInteractionType.Interact, 1015944u, new Vector3(6.94281f, 0.22499956f, 7.4310913f), 427); + index2++; + span25[index2] = new QuestStep(EInteractionType.Interact, 1015944u, new Vector3(6.94281f, 0.22499956f, 7.4310913f), 427); obj18.Steps = list25; reference18 = obj18; - ref QuestSequence reference19 = ref span4[4]; + num++; + ref QuestSequence reference19 = ref span19[num]; QuestSequence obj19 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - Span span9 = CollectionsMarshal.AsSpan(list26); - span9[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) + index2 = 3; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) { TargetTerritoryId = (ushort)419 }; - span9[1] = new QuestStep(EInteractionType.Interact, 1015949u, new Vector3(-62.180542f, -4.734931f, -36.514893f), 419); - span9[2] = new QuestStep(EInteractionType.Interact, 1015947u, new Vector3(-228.99219f, -20.034918f, -77.073364f), 419); + num2++; + span26[num2] = new QuestStep(EInteractionType.Interact, 1015949u, new Vector3(-62.180542f, -4.734931f, -36.514893f), 419); + num2++; + span26[num2] = new QuestStep(EInteractionType.Interact, 1015947u, new Vector3(-228.99219f, -20.034918f, -77.073364f), 419); obj19.Steps = list26; reference19 = obj19; - ref QuestSequence reference20 = ref span4[5]; + num++; + ref QuestSequence reference20 = ref span19[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -130424,8 +157111,9 @@ public static class AssemblyQuestLoader num2 = 2; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span10 = CollectionsMarshal.AsSpan(list27); - span10[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, AethernetShortcut = new AethernetShortcut @@ -130434,7 +157122,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSaintReymanaudsCathedral } }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1015952u, new Vector3(-1.3886108f, 0.20000005f, -9.903137f), 427) + index2++; + span27[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015952u, new Vector3(-1.3886108f, 0.20000005f, -9.903137f), 427) { NextQuestId = new QuestId(2155) }; @@ -130447,22 +157136,26 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "pot0to"; + Span span28 = CollectionsMarshal.AsSpan(list28); + index = 0; + span28[index] = "pot0to"; questRoot4.Author = list28; - num = 10; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span11 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference21 = ref span11[0]; + index = 10; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + Span span29 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference21 = ref span29[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - Span span12 = CollectionsMarshal.AsSpan(list30); - ref QuestStep reference22 = ref span12[0]; + index2 = 2; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + ref QuestStep reference22 = ref span30[num2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, @@ -130478,24 +157171,30 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = 427; + Span span31 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span31[index3] = 427; skipStepConditions2.InTerritory = list31; skipConditions4.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - num3 = 2; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span13 = CollectionsMarshal.AsSpan(list32); - span13[0] = 419; - span13[1] = 427; + index3 = 2; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + Span span32 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span32[num3] = 419; + num3++; + span32[num3] = 427; skipAetheryteCondition4.InTerritory = list32; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition4; obj22.SkipConditions = skipConditions4; reference22 = obj22; - span12[1] = new QuestStep(EInteractionType.AcceptQuest, 1015952u, new Vector3(-1.3886108f, 0.20000005f, -9.903137f), 427); + num2++; + span30[num2] = new QuestStep(EInteractionType.AcceptQuest, 1015952u, new Vector3(-1.3886108f, 0.20000005f, -9.903137f), 427); obj21.Steps = list30; reference21 = obj21; - ref QuestSequence reference23 = ref span11[1]; + num++; + ref QuestSequence reference23 = ref span29[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 @@ -130503,26 +157202,32 @@ public static class AssemblyQuestLoader num2 = 2; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span14 = CollectionsMarshal.AsSpan(list33); - span14[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.012468f, 1.1515f, 11.86189f), 427) + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.012468f, 1.1515f, 11.86189f), 427) { TargetTerritoryId = (ushort)419 }; - span14[1] = new QuestStep(EInteractionType.Interact, 1015965u, new Vector3(-31.631958f, 15.965061f, -66.941345f), 419); + index2++; + span33[index2] = new QuestStep(EInteractionType.Interact, 1015965u, new Vector3(-31.631958f, 15.965061f, -66.941345f), 419); obj23.Steps = list33; reference23 = obj23; - ref QuestSequence reference24 = ref span11[2]; + num++; + ref QuestSequence reference24 = ref span29[num]; QuestSequence obj24 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1015975u, new Vector3(-63.98114f, -4.734931f, -36.14868f), 419); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.Interact, 1015975u, new Vector3(-63.98114f, -4.734931f, -36.14868f), 419); obj24.Steps = list34; reference24 = obj24; - ref QuestSequence reference25 = ref span11[3]; + num++; + ref QuestSequence reference25 = ref span29[num]; QuestSequence obj25 = new QuestSequence { Sequence = 3 @@ -130530,23 +157235,29 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span15 = CollectionsMarshal.AsSpan(list35); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-15.249258f, -13.663432f, -64.45602f), 419); - span15[1] = new QuestStep(EInteractionType.Interact, 1015968u, new Vector3(-41.001038f, 19.008322f, -31.296265f), 418); + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-15.249258f, -13.663432f, -64.45602f), 419); + index2++; + span35[index2] = new QuestStep(EInteractionType.Interact, 1015968u, new Vector3(-41.001038f, 19.008322f, -31.296265f), 418); obj25.Steps = list35; reference25 = obj25; - ref QuestSequence reference26 = ref span11[4]; + num++; + ref QuestSequence reference26 = ref span29[num]; QuestSequence obj26 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1015972u, new Vector3(-41.73346f, 19.008322f, -31.845642f), 418); + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.Interact, 1015972u, new Vector3(-41.73346f, 19.008322f, -31.845642f), 418); obj26.Steps = list36; reference26 = obj26; - ref QuestSequence reference27 = ref span11[5]; + num++; + ref QuestSequence reference27 = ref span29[num]; QuestSequence obj27 = new QuestSequence { Sequence = 5 @@ -130554,22 +157265,27 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1015973u, new Vector3(782.62f, 216.88771f, 222.9801f), 397) + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.Interact, 1015973u, new Vector3(782.62f, 216.88771f, 222.9801f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj27.Steps = list37; reference27 = obj27; - ref QuestSequence reference28 = ref span11[6]; + num++; + ref QuestSequence reference28 = ref span29[num]; QuestSequence obj28 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list38)[0]; + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + ref QuestStep reference29 = ref span38[num2]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, 2006603u, new Vector3(782.1926f, 216.6322f, 219.74512f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -130577,12 +157293,15 @@ public static class AssemblyQuestLoader num3 = 1; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = 4676u; + Span span39 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span39[index3] = 4676u; obj29.KillEnemyDataIds = list39; reference29 = obj29; obj28.Steps = list38; reference28 = obj28; - ref QuestSequence reference30 = ref span11[7]; + num++; + ref QuestSequence reference30 = ref span29[num]; QuestSequence obj30 = new QuestSequence { Sequence = 7 @@ -130590,24 +157309,30 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 2006617u, new Vector3(782.1926f, 216.6322f, 219.74512f), 397); + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = new QuestStep(EInteractionType.Interact, 2006617u, new Vector3(782.1926f, 216.6322f, 219.74512f), 397); obj30.Steps = list40; reference30 = obj30; - ref QuestSequence reference31 = ref span11[8]; + num++; + ref QuestSequence reference31 = ref span29[num]; QuestSequence obj31 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1015970u, new Vector3(-37.82715f, 19.008322f, -28.976868f), 418) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.Interact, 1015970u, new Vector3(-37.82715f, 19.008322f, -28.976868f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj31.Steps = list41; reference31 = obj31; - ref QuestSequence reference32 = ref span11[9]; + num++; + ref QuestSequence reference32 = ref span29[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -130615,7 +157340,9 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AethernetShortcut = new AethernetShortcut { @@ -130633,27 +157360,33 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; + Span span43 = CollectionsMarshal.AsSpan(list43); + index = 0; + span43[index] = "JerryWester"; questRoot5.Author = list43; - num = 5; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span16 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference33 = ref span16[0]; + index = 5; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + Span span44 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference33 = ref span44[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span45[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) { StopDistance = 5f }; obj33.Steps = list45; reference33 = obj33; - ref QuestSequence reference34 = ref span16[1]; + num++; + ref QuestSequence reference34 = ref span44[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -130661,7 +157394,9 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list46)[0]; + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + ref QuestStep reference35 = ref span46[index2]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -130670,10 +157405,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num3 = 1; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new DialogueChoice + index3 = 1; + List list47 = new List(index3); + CollectionsMarshal.SetCount(list47, index3); + Span span47 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + span47[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNB101_02156_SCENE00010_EVENTAREA_WARP_YESNO_TITLE") @@ -130682,21 +157419,25 @@ public static class AssemblyQuestLoader reference35 = obj35; obj34.Steps = list46; reference34 = obj34; - ref QuestSequence reference36 = ref span16[2]; + num++; + ref QuestSequence reference36 = ref span44[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1015978u, new Vector3(111.283936f, 24.388157f, -4.3793945f), 418) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.Interact, 1015978u, new Vector3(111.283936f, 24.388157f, -4.3793945f), 418) { StopDistance = 5f }; obj36.Steps = list48; reference36 = obj36; - ref QuestSequence reference37 = ref span16[3]; + num++; + ref QuestSequence reference37 = ref span44[num]; QuestSequence obj37 = new QuestSequence { Sequence = 3 @@ -130704,18 +157445,23 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1012326u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span49[index2] = new QuestStep(EInteractionType.Interact, 1012326u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); obj37.Steps = list49; reference37 = obj37; - ref QuestSequence reference38 = ref span16[4]; + num++; + ref QuestSequence reference38 = ref span44[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015978u, new Vector3(111.283936f, 24.388157f, -4.3793945f), 418); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.CompleteQuest, 1015978u, new Vector3(111.283936f, 24.388157f, -4.3793945f), 418); obj38.Steps = list50; reference38 = obj38; questRoot5.QuestSequence = list44; @@ -130725,13 +157471,16 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "JerryWester"; + Span span51 = CollectionsMarshal.AsSpan(list51); + index = 0; + span51[index] = "JerryWester"; questRoot6.Author = list51; - num = 4; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span17 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference39 = ref span17[0]; + index = 4; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + Span span52 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference39 = ref span52[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 @@ -130739,7 +157488,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015979u, new Vector3(112.53516f, 24.391697f, -2.8840332f), 418) + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015979u, new Vector3(112.53516f, 24.391697f, -2.8840332f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -130753,22 +157504,26 @@ public static class AssemblyQuestLoader }; obj39.Steps = list53; reference39 = obj39; - ref QuestSequence reference40 = ref span17[1]; + num++; + ref QuestSequence reference40 = ref span52[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1015980u, new Vector3(632.1659f, -54.909866f, 71.854614f), 398) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.Interact, 1015980u, new Vector3(632.1659f, -54.909866f, 71.854614f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj40.Steps = list54; reference40 = obj40; - ref QuestSequence reference41 = ref span17[2]; + num++; + ref QuestSequence reference41 = ref span52[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 @@ -130776,7 +157531,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { StopDistance = 9f, Fly = true, @@ -130784,15 +157541,18 @@ public static class AssemblyQuestLoader }; obj41.Steps = list55; reference41 = obj41; - ref QuestSequence reference42 = ref span17[3]; + num++; + ref QuestSequence reference42 = ref span52[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015983u, new Vector3(-297.74933f, 39.04307f, 37.064087f), 398); + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.CompleteQuest, 1015983u, new Vector3(-297.74933f, 39.04307f, 37.064087f), 398); obj42.Steps = list56; reference42 = obj42; questRoot6.QuestSequence = list52; @@ -130802,13 +157562,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "JerryWester"; + Span span57 = CollectionsMarshal.AsSpan(list57); + index = 0; + span57[index] = "JerryWester"; questRoot7.Author = list57; - num = 4; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span18 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference43 = ref span18[0]; + index = 4; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + Span span58 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference43 = ref span58[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -130816,7 +157579,9 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015983u, new Vector3(-297.74933f, 39.04307f, 37.064087f), 398) + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015983u, new Vector3(-297.74933f, 39.04307f, 37.064087f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, SkipConditions = new SkipConditions @@ -130829,21 +157594,25 @@ public static class AssemblyQuestLoader }; obj43.Steps = list59; reference43 = obj43; - ref QuestSequence reference44 = ref span18[1]; + num++; + ref QuestSequence reference44 = ref span58[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1015987u, new Vector3(42.252197f, 205.32579f, 19.546753f), 478) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.Interact, 1015987u, new Vector3(42.252197f, 205.32579f, 19.546753f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj44.Steps = list60; reference44 = obj44; - ref QuestSequence reference45 = ref span18[2]; + num++; + ref QuestSequence reference45 = ref span58[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 @@ -130851,18 +157620,23 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 2006605u, new Vector3(101.182495f, 206.71387f, 111.34509f), 478); + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new QuestStep(EInteractionType.Interact, 2006605u, new Vector3(101.182495f, 206.71387f, 111.34509f), 478); obj45.Steps = list61; reference45 = obj45; - ref QuestSequence reference46 = ref span18[3]; + num++; + ref QuestSequence reference46 = ref span58[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015992u, new Vector3(-478.14148f, 137.42972f, 700.8926f), 399) + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.CompleteQuest, 1015992u, new Vector3(-478.14148f, 137.42972f, 700.8926f), 399) { Fly = true }; @@ -130875,13 +157649,16 @@ public static class AssemblyQuestLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = "JerryWester"; + Span span63 = CollectionsMarshal.AsSpan(list63); + index = 0; + span63[index] = "JerryWester"; questRoot8.Author = list63; - num = 6; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - Span span19 = CollectionsMarshal.AsSpan(list64); - ref QuestSequence reference47 = ref span19[0]; + index = 6; + List list64 = new List(index); + CollectionsMarshal.SetCount(list64, index); + Span span64 = CollectionsMarshal.AsSpan(list64); + num = 0; + ref QuestSequence reference47 = ref span64[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -130889,24 +157666,30 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015992u, new Vector3(-478.14148f, 137.42972f, 700.8926f), 399); + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015992u, new Vector3(-478.14148f, 137.42972f, 700.8926f), 399); obj47.Steps = list65; reference47 = obj47; - ref QuestSequence reference48 = ref span19[1]; + num++; + ref QuestSequence reference48 = ref span64[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) { TargetTerritoryId = (ushort)463 }; obj48.Steps = list66; reference48 = obj48; - ref QuestSequence reference49 = ref span19[2]; + num++; + ref QuestSequence reference49 = ref span64[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -130914,27 +157697,34 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1012405u, new Vector3(587.7927f, -50.623985f, 70.725464f), 398) + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.Interact, 1012405u, new Vector3(587.7927f, -50.623985f, 70.725464f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj49.Steps = list67; reference49 = obj49; - ref QuestSequence reference50 = ref span19[3]; + num++; + ref QuestSequence reference50 = ref span64[num]; QuestSequence obj50 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span20 = CollectionsMarshal.AsSpan(list68); - span20[0] = new QuestStep(EInteractionType.Interact, 1011917u, new Vector3(535.30164f, -51.340645f, 65.293335f), 398); - span20[1] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); - span20[2] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398); + index2 = 3; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.Interact, 1011917u, new Vector3(535.30164f, -51.340645f, 65.293335f), 398); + num2++; + span68[num2] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); + num2++; + span68[num2] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398); obj50.Steps = list68; reference50 = obj50; - ref QuestSequence reference51 = ref span19[4]; + num++; + ref QuestSequence reference51 = ref span64[num]; QuestSequence obj51 = new QuestSequence { Sequence = 4 @@ -130942,18 +157732,23 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1015994u, new Vector3(470.38977f, -51.141403f, 38.651123f), 398); + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.Interact, 1015994u, new Vector3(470.38977f, -51.141403f, 38.651123f), 398); obj51.Steps = list69; reference51 = obj51; - ref QuestSequence reference52 = ref span19[5]; + num++; + ref QuestSequence reference52 = ref span64[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 2006610u, new Vector3(191.79065f, -54.154297f, -235.95032f), 398) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.CompleteQuest, 2006610u, new Vector3(191.79065f, -54.154297f, -235.95032f), 398) { Fly = true }; @@ -130966,13 +157761,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "JerryWester"; + Span span71 = CollectionsMarshal.AsSpan(list71); + index = 0; + span71[index] = "JerryWester"; questRoot9.Author = list71; - num = 5; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span21 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference53 = ref span21[0]; + index = 5; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + Span span72 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference53 = ref span72[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -130980,24 +157778,30 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015998u, new Vector3(192.43152f, -54.189243f, -234.3634f), 398); + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015998u, new Vector3(192.43152f, -54.189243f, -234.3634f), 398); obj53.Steps = list73; reference53 = obj53; - ref QuestSequence reference54 = ref span21[1]; + num++; + ref QuestSequence reference54 = ref span72[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true }; obj54.Steps = list74; reference54 = obj54; - ref QuestSequence reference55 = ref span21[2]; + num++; + ref QuestSequence reference55 = ref span72[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -131005,7 +157809,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list75)[0]; + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + ref QuestStep reference56 = ref span75[index2]; QuestStep obj56 = new QuestStep(EInteractionType.Combat, null, new Vector3(173.8547f, -108.97817f, 600.48395f), 398) { Fly = true, @@ -131014,28 +157820,34 @@ public static class AssemblyQuestLoader num3 = 2; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span22 = CollectionsMarshal.AsSpan(list76); - span22[0] = 4365u; - span22[1] = 4364u; + Span span76 = CollectionsMarshal.AsSpan(list76); + index3 = 0; + span76[index3] = 4365u; + index3++; + span76[index3] = 4364u; obj56.KillEnemyDataIds = list76; reference56 = obj56; obj55.Steps = list75; reference55 = obj55; - ref QuestSequence reference57 = ref span21[3]; + num++; + ref QuestSequence reference57 = ref span72[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 2006607u, new Vector3(207.75159f, -105.42462f, 596.765f), 398) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.Interact, 2006607u, new Vector3(207.75159f, -105.42462f, 596.765f), 398) { Fly = true }; obj57.Steps = list77; reference57 = obj57; - ref QuestSequence reference58 = ref span21[4]; + num++; + ref QuestSequence reference58 = ref span72[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -131043,7 +157855,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016002u, new Vector3(225.11633f, -116.6398f, 504.72266f), 398); + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016002u, new Vector3(225.11633f, -116.6398f, 504.72266f), 398); obj58.Steps = list78; reference58 = obj58; questRoot9.QuestSequence = list72; @@ -131053,24 +157867,30 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "JerryWester"; + Span span79 = CollectionsMarshal.AsSpan(list79); + index = 0; + span79[index] = "JerryWester"; questRoot10.Author = list79; - num = 4; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span23 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference59 = ref span23[0]; + index = 4; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + Span span80 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference59 = ref span80[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016000u, new Vector3(222.49182f, -116.93088f, 504.08167f), 398); + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016000u, new Vector3(222.49182f, -116.93088f, 504.08167f), 398); obj59.Steps = list81; reference59 = obj59; - ref QuestSequence reference60 = ref span23[1]; + num++; + ref QuestSequence reference60 = ref span80[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -131078,7 +157898,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { StopDistance = 9f, Fly = true, @@ -131086,21 +157908,25 @@ public static class AssemblyQuestLoader }; obj60.Steps = list82; reference60 = obj60; - ref QuestSequence reference61 = ref span23[2]; + num++; + ref QuestSequence reference61 = ref span80[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1012401u, new Vector3(-8.560364f, 5.4681287f, 40.6958f), 418) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.Interact, 1012401u, new Vector3(-8.560364f, 5.4681287f, 40.6958f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj61.Steps = list83; reference61 = obj61; - ref QuestSequence reference62 = ref span23[3]; + num++; + ref QuestSequence reference62 = ref span80[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -131108,7 +157934,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418); + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418); obj62.Steps = list84; reference62 = obj62; questRoot10.QuestSequence = list80; @@ -131118,21 +157946,26 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "JerryWester"; + Span span85 = CollectionsMarshal.AsSpan(list85); + index = 0; + span85[index] = "JerryWester"; questRoot11.Author = list85; - num = 6; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span24 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference63 = ref span24[0]; + index = 6; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + Span span86 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference63 = ref span86[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -131145,7 +157978,8 @@ public static class AssemblyQuestLoader }; obj63.Steps = list87; reference63 = obj63; - ref QuestSequence reference64 = ref span24[1]; + num++; + ref QuestSequence reference64 = ref span86[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 @@ -131153,7 +157987,9 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1012384u, new Vector3(-182.66577f, -12.534915f, -39.871887f), 419) + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.Interact, 1012384u, new Vector3(-182.66577f, -12.534915f, -39.871887f), 419) { AethernetShortcut = new AethernetShortcut { @@ -131163,16 +157999,18 @@ public static class AssemblyQuestLoader }; obj64.Steps = list88; reference64 = obj64; - ref QuestSequence reference65 = ref span24[2]; + num++; + ref QuestSequence reference65 = ref span86[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - Span span25 = CollectionsMarshal.AsSpan(list89); - ref QuestStep reference66 = ref span25[0]; + index2 = 3; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + ref QuestStep reference66 = ref span89[num2]; QuestStep obj66 = new QuestStep(EInteractionType.Interact, 1016018u, new Vector3(26.16919f, 27.964573f, -146.71558f), 419) { AethernetShortcut = new AethernetShortcut @@ -131181,49 +158019,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardTribunal } }; - num3 = 6; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - Span span26 = CollectionsMarshal.AsSpan(list90); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + Span span90 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj66.CompletionQuestVariablesFlags = list90; reference66 = obj66; - ref QuestStep reference67 = ref span25[1]; + num2++; + ref QuestStep reference67 = ref span89[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1016020u, new Vector3(-3.3112793f, 27.753849f, -148.4856f), 419); num3 = 6; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - Span span27 = CollectionsMarshal.AsSpan(list91); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span91 = CollectionsMarshal.AsSpan(list91); + index3 = 0; + span91[index3] = null; + index3++; + span91[index3] = null; + index3++; + span91[index3] = null; + index3++; + span91[index3] = null; + index3++; + span91[index3] = null; + index3++; + span91[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list91; reference67 = questStep; - ref QuestStep reference68 = ref span25[2]; + num2++; + ref QuestStep reference68 = ref span89[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1016015u, new Vector3(-7.827942f, 26.965073f, -106.6759f), 419); - num3 = 6; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span28 = CollectionsMarshal.AsSpan(list92); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list92 = new List(index3); + CollectionsMarshal.SetCount(list92, index3); + Span span92 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list92; reference68 = questStep2; obj65.Steps = list89; reference65 = obj65; - ref QuestSequence reference69 = ref span24[3]; + num++; + ref QuestSequence reference69 = ref span86[num]; QuestSequence obj67 = new QuestSequence { Sequence = 3 @@ -131231,18 +158090,23 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1016028u, new Vector3(59.861084f, -4.734944f, -41.61145f), 419); + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.Interact, 1016028u, new Vector3(59.861084f, -4.734944f, -41.61145f), 419); obj67.Steps = list93; reference69 = obj67; - ref QuestSequence reference70 = ref span24[4]; + num++; + ref QuestSequence reference70 = ref span86[num]; QuestSequence obj68 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1016031u, new Vector3(14.5112915f, -12.020877f, 37.03357f), 418) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.Interact, 1016031u, new Vector3(14.5112915f, -12.020877f, 37.03357f), 418) { StopDistance = 7f, AethernetShortcut = new AethernetShortcut @@ -131253,7 +158117,8 @@ public static class AssemblyQuestLoader }; obj68.Steps = list94; reference70 = obj68; - ref QuestSequence reference71 = ref span24[5]; + num++; + ref QuestSequence reference71 = ref span86[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -131261,7 +158126,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) { AethernetShortcut = new AethernetShortcut { @@ -131278,21 +158145,26 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "JerryWester"; + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + span96[index] = "JerryWester"; questRoot12.Author = list96; - num = 5; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span29 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference72 = ref span29[0]; + index = 5; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + Span span97 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference72 = ref span97[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -131305,7 +158177,8 @@ public static class AssemblyQuestLoader }; obj70.Steps = list98; reference72 = obj70; - ref QuestSequence reference73 = ref span29[1]; + num++; + ref QuestSequence reference73 = ref span97[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 @@ -131313,7 +158186,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1016034u, new Vector3(-182.39111f, -0.23098835f, -70.72565f), 419) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1016034u, new Vector3(-182.39111f, -0.23098835f, -70.72565f), 419) { AethernetShortcut = new AethernetShortcut { @@ -131327,25 +158202,30 @@ public static class AssemblyQuestLoader }; obj71.Steps = list99; reference73 = obj71; - span29[2] = new QuestSequence + num++; + span97[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference74 = ref span29[3]; + num++; + ref QuestSequence reference74 = ref span97[num]; QuestSequence obj72 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1016049u, new Vector3(-3.0975952f, 27.79051f, -140.36774f), 419) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.Interact, 1016049u, new Vector3(-3.0975952f, 27.79051f, -140.36774f), 419) { StopDistance = 7f }; obj72.Steps = list100; reference74 = obj72; - ref QuestSequence reference75 = ref span29[4]; + num++; + ref QuestSequence reference75 = ref span97[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -131353,12 +158233,14 @@ public static class AssemblyQuestLoader num2 = 2; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span30 = CollectionsMarshal.AsSpan(list101); - span30[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433 }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1016050u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) + index2++; + span101[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016050u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) { StopDistance = 7f }; @@ -131371,24 +158253,30 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "liza"; + Span span102 = CollectionsMarshal.AsSpan(list102); + index = 0; + span102[index] = "liza"; questRoot13.Author = list102; - num = 8; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span31 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference76 = ref span31[0]; + index = 8; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + Span span103 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference76 = ref span103[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401); + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401); obj74.Steps = list104; reference76 = obj74; - ref QuestSequence reference77 = ref span31[1]; + num++; + ref QuestSequence reference77 = ref span103[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 @@ -131396,22 +158284,27 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 2006621u, new Vector3(-428.27502f, 201.34265f, -229.05322f), 401) + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.Interact, 2006621u, new Vector3(-428.27502f, 201.34265f, -229.05322f), 401) { StopDistance = 0.5f, Fly = true }; obj75.Steps = list105; reference77 = obj75; - ref QuestSequence reference78 = ref span31[2]; + num++; + ref QuestSequence reference78 = ref span103[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list106)[0]; + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + ref QuestStep reference79 = ref span106[num2]; QuestStep obj77 = new QuestStep(EInteractionType.Combat, null, new Vector3(-427.762f, 168.23676f, -215.835f), 401) { StopDistance = 5f, @@ -131420,14 +158313,17 @@ public static class AssemblyQuestLoader num3 = 2; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span32 = CollectionsMarshal.AsSpan(list107); - span32[0] = 5232u; - span32[1] = 5233u; + Span span107 = CollectionsMarshal.AsSpan(list107); + index3 = 0; + span107[index3] = 5232u; + index3++; + span107[index3] = 5233u; obj77.KillEnemyDataIds = list107; reference79 = obj77; obj76.Steps = list106; reference78 = obj76; - ref QuestSequence reference80 = ref span31[3]; + num++; + ref QuestSequence reference80 = ref span103[num]; QuestSequence obj78 = new QuestSequence { Sequence = 3 @@ -131435,25 +158331,31 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1016150u, new Vector3(-429.52625f, 167.9683f, -224.445f), 401); + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.Interact, 1016150u, new Vector3(-429.52625f, 167.9683f, -224.445f), 401); obj78.Steps = list108; reference80 = obj78; - ref QuestSequence reference81 = ref span31[4]; + num++; + ref QuestSequence reference81 = ref span103[num]; QuestSequence obj79 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj79.Steps = list109; reference81 = obj79; - ref QuestSequence reference82 = ref span31[5]; + num++; + ref QuestSequence reference82 = ref span103[num]; QuestSequence obj80 = new QuestSequence { Sequence = 5 @@ -131461,40 +158363,51 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.Interact, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true }; obj80.Steps = list110; reference82 = obj80; - ref QuestSequence reference83 = ref span31[6]; + num++; + ref QuestSequence reference83 = ref span103[num]; QuestSequence obj81 = new QuestSequence { Sequence = 6 }; - num2 = 3; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span33 = CollectionsMarshal.AsSpan(list111); - ref QuestStep reference84 = ref span33[0]; + index2 = 3; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + ref QuestStep reference84 = ref span111[num2]; QuestStep obj82 = new QuestStep(EInteractionType.Action, 1016158u, new Vector3(-779.263f, -117.906494f, -393.54547f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span34 = CollectionsMarshal.AsSpan(list112); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + Span span112 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj82.CompletionQuestVariablesFlags = list112; reference84 = obj82; - ref QuestStep reference85 = ref span33[1]; + num2++; + ref QuestStep reference85 = ref span111[num2]; QuestStep obj83 = new QuestStep(EInteractionType.Action, 1016157u, new Vector3(-813.2906f, -110.49066f, -434.1955f), 401) { Fly = true, @@ -131503,36 +158416,50 @@ public static class AssemblyQuestLoader num3 = 6; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - Span span35 = CollectionsMarshal.AsSpan(list113); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span113 = CollectionsMarshal.AsSpan(list113); + index3 = 0; + span113[index3] = null; + index3++; + span113[index3] = null; + index3++; + span113[index3] = null; + index3++; + span113[index3] = null; + index3++; + span113[index3] = null; + index3++; + span113[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj83.CompletionQuestVariablesFlags = list113; reference85 = obj83; - ref QuestStep reference86 = ref span33[2]; + num2++; + ref QuestStep reference86 = ref span111[num2]; QuestStep obj84 = new QuestStep(EInteractionType.Action, 1016156u, new Vector3(-860.59357f, -122.91144f, -378.34747f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; - num3 = 6; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span36 = CollectionsMarshal.AsSpan(list114); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list114 = new List(index3); + CollectionsMarshal.SetCount(list114, index3); + Span span114 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj84.CompletionQuestVariablesFlags = list114; reference86 = obj84; obj81.Steps = list111; reference83 = obj81; - ref QuestSequence reference87 = ref span31[7]; + num++; + ref QuestSequence reference87 = ref span103[num]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue @@ -131540,13 +158467,15 @@ public static class AssemblyQuestLoader num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span37 = CollectionsMarshal.AsSpan(list115); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { StopDistance = 2f, Fly = true }; - ref QuestStep reference88 = ref span37[1]; + index2++; + ref QuestStep reference88 = ref span115[index2]; QuestStep obj86 = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Mount = false @@ -131554,7 +158483,9 @@ public static class AssemblyQuestLoader num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = new DialogueChoice + Span span116 = CollectionsMarshal.AsSpan(list116); + index3 = 0; + span116[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANVAN001_02164_SYSYTEM_Q1_000_110"), @@ -131571,21 +158502,26 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "Censored"; + Span span117 = CollectionsMarshal.AsSpan(list117); + index = 0; + span117[index] = "Censored"; questRoot14.Author = list117; - num = 8; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span38 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference89 = ref span38[0]; + index = 8; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + Span span118 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference89 = ref span118[num]; QuestSequence obj87 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span119[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -131604,7 +158540,8 @@ public static class AssemblyQuestLoader }; obj87.Steps = list119; reference89 = obj87; - ref QuestSequence reference90 = ref span38[1]; + num++; + ref QuestSequence reference90 = ref span118[num]; QuestSequence obj88 = new QuestSequence { Sequence = 1 @@ -131612,28 +158549,34 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1016159u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401) + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.Interact, 1016159u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj88.Steps = list120; reference90 = obj88; - ref QuestSequence reference91 = ref span38[2]; + num++; + ref QuestSequence reference91 = ref span118[num]; QuestSequence obj89 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1016161u, new Vector3(108.04907f, -147.83774f, 495.1704f), 401) + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span121[num2] = new QuestStep(EInteractionType.Interact, 1016161u, new Vector3(108.04907f, -147.83774f, 495.1704f), 401) { Fly = true }; obj89.Steps = list121; reference91 = obj89; - ref QuestSequence reference92 = ref span38[3]; + num++; + ref QuestSequence reference92 = ref span118[num]; QuestSequence obj90 = new QuestSequence { Sequence = 3 @@ -131641,36 +158584,44 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1016159u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401) + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.Interact, 1016159u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401) { Fly = true }; obj90.Steps = list122; reference92 = obj90; - ref QuestSequence reference93 = ref span38[4]; + num++; + ref QuestSequence reference93 = ref span118[num]; QuestSequence obj91 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list123)[0]; + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + ref QuestStep reference94 = ref span123[num2]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, null, new Vector3(120.88076f, -93.90284f, 481.25824f), 401) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - Span span39 = CollectionsMarshal.AsSpan(list124); - span39[0] = 5232u; - span39[1] = 5233u; + index3 = 2; + List list124 = new List(index3); + CollectionsMarshal.SetCount(list124, index3); + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span124[num3] = 5232u; + num3++; + span124[num3] = 5233u; obj92.KillEnemyDataIds = list124; reference94 = obj92; obj91.Steps = list123; reference93 = obj91; - ref QuestSequence reference95 = ref span38[5]; + num++; + ref QuestSequence reference95 = ref span118[num]; QuestSequence obj93 = new QuestSequence { Sequence = 5 @@ -131678,25 +158629,31 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1016463u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401); + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.Interact, 1016463u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401); obj93.Steps = list125; reference95 = obj93; - ref QuestSequence reference96 = ref span38[6]; + num++; + ref QuestSequence reference96 = ref span118[num]; QuestSequence obj94 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj94.Steps = list126; reference96 = obj94; - ref QuestSequence reference97 = ref span38[7]; + num++; + ref QuestSequence reference97 = ref span118[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -131704,7 +158661,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true }; @@ -131717,24 +158676,30 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "AnimaMachinae"; + Span span128 = CollectionsMarshal.AsSpan(list128); + index = 0; + span128[index] = "AnimaMachinae"; questRoot15.Author = list128; - num = 7; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span40 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference98 = ref span40[0]; + index = 7; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + Span span129 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference98 = ref span129[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); obj96.Steps = list130; reference98 = obj96; - ref QuestSequence reference99 = ref span40[1]; + num++; + ref QuestSequence reference99 = ref span129[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -131742,27 +158707,31 @@ public static class AssemblyQuestLoader num2 = 2; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span41 = CollectionsMarshal.AsSpan(list131); - span41[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-790.3409f, -129.17549f, -409.1912f), 401) + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-790.3409f, -129.17549f, -409.1912f), 401) { Fly = true }; - span41[1] = new QuestStep(EInteractionType.Interact, 1016166u, new Vector3(557.885f, -126.23241f, 283.07007f), 401) + index2++; + span131[index2] = new QuestStep(EInteractionType.Interact, 1016166u, new Vector3(557.885f, -126.23241f, 283.07007f), 401) { Fly = true }; obj97.Steps = list131; reference99 = obj97; - ref QuestSequence reference100 = ref span40[2]; + num++; + ref QuestSequence reference100 = ref span129[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - Span span42 = CollectionsMarshal.AsSpan(list132); - ref QuestStep reference101 = ref span42[0]; + index2 = 5; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + ref QuestStep reference101 = ref span132[num2]; QuestStep obj99 = new QuestStep(EInteractionType.UseItem, 2006627u, new Vector3(583.52014f, -126.81775f, 268.0857f), 401) { ItemId = 2001901u @@ -131770,34 +158739,48 @@ public static class AssemblyQuestLoader num3 = 6; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - Span span43 = CollectionsMarshal.AsSpan(list133); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span133 = CollectionsMarshal.AsSpan(list133); + index3 = 0; + span133[index3] = null; + index3++; + span133[index3] = null; + index3++; + span133[index3] = null; + index3++; + span133[index3] = null; + index3++; + span133[index3] = null; + index3++; + span133[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj99.CompletionQuestVariablesFlags = list133; reference101 = obj99; - ref QuestStep reference102 = ref span42[1]; + num2++; + ref QuestStep reference102 = ref span132[num2]; QuestStep obj100 = new QuestStep(EInteractionType.UseItem, 2006628u, new Vector3(632.95935f, -111.680786f, 157.85449f), 401) { Fly = true, ItemId = 2001901u }; - num3 = 6; - List list134 = new List(num3); - CollectionsMarshal.SetCount(list134, num3); - Span span44 = CollectionsMarshal.AsSpan(list134); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list134 = new List(index3); + CollectionsMarshal.SetCount(list134, index3); + Span span134 = CollectionsMarshal.AsSpan(list134); + num3 = 0; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj100.CompletionQuestVariablesFlags = list134; reference102 = obj100; - ref QuestStep reference103 = ref span42[2]; + num2++; + ref QuestStep reference103 = ref span132[num2]; QuestStep obj101 = new QuestStep(EInteractionType.UseItem, 2006629u, new Vector3(688.5939f, -95.99457f, 101.27405f), 401) { Fly = true, @@ -131806,34 +158789,48 @@ public static class AssemblyQuestLoader num3 = 6; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - Span span45 = CollectionsMarshal.AsSpan(list135); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span135 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj101.CompletionQuestVariablesFlags = list135; reference103 = obj101; - ref QuestStep reference104 = ref span42[3]; + num2++; + ref QuestStep reference104 = ref span132[num2]; QuestStep obj102 = new QuestStep(EInteractionType.UseItem, 2006630u, new Vector3(709.86475f, -85.19116f, 29.892456f), 401) { Fly = true, ItemId = 2001901u }; - num3 = 6; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span46 = CollectionsMarshal.AsSpan(list136); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list136 = new List(index3); + CollectionsMarshal.SetCount(list136, index3); + Span span136 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj102.CompletionQuestVariablesFlags = list136; reference104 = obj102; - ref QuestStep reference105 = ref span42[4]; + num2++; + ref QuestStep reference105 = ref span132[num2]; QuestStep obj103 = new QuestStep(EInteractionType.UseItem, 2006631u, new Vector3(722.8656f, -65.84277f, -57.938538f), 401) { Fly = true, @@ -131842,18 +158839,25 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - Span span47 = CollectionsMarshal.AsSpan(list137); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span137 = CollectionsMarshal.AsSpan(list137); + index3 = 0; + span137[index3] = null; + index3++; + span137[index3] = null; + index3++; + span137[index3] = null; + index3++; + span137[index3] = null; + index3++; + span137[index3] = null; + index3++; + span137[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj103.CompletionQuestVariablesFlags = list137; reference105 = obj103; obj98.Steps = list132; reference100 = obj98; - ref QuestSequence reference106 = ref span40[3]; + num++; + ref QuestSequence reference106 = ref span129[num]; QuestSequence obj104 = new QuestSequence { Sequence = 3 @@ -131861,27 +158865,33 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1016166u, new Vector3(557.885f, -126.23241f, 283.07007f), 401) + Span span138 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span138[index2] = new QuestStep(EInteractionType.Interact, 1016166u, new Vector3(557.885f, -126.23241f, 283.07007f), 401) { Fly = true }; obj104.Steps = list138; reference106 = obj104; - ref QuestSequence reference107 = ref span40[4]; + num++; + ref QuestSequence reference107 = ref span129[num]; QuestSequence obj105 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Emote, 1016166u, new Vector3(557.885f, -126.23241f, 283.07007f), 401) + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + Span span139 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span139[num2] = new QuestStep(EInteractionType.Emote, 1016166u, new Vector3(557.885f, -126.23241f, 283.07007f), 401) { Emote = EEmote.Dance }; obj105.Steps = list139; reference107 = obj105; - ref QuestSequence reference108 = ref span40[5]; + num++; + ref QuestSequence reference108 = ref span129[num]; QuestSequence obj106 = new QuestSequence { Sequence = 5 @@ -131889,22 +158899,27 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj106.Steps = list140; reference108 = obj106; - ref QuestSequence reference109 = ref span40[6]; + num++; + ref QuestSequence reference109 = ref span129[num]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span141[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true }; @@ -131917,13 +158932,16 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - CollectionsMarshal.AsSpan(list142)[0] = "Censored"; + Span span142 = CollectionsMarshal.AsSpan(list142); + index = 0; + span142[index] = "Censored"; questRoot16.Author = list142; - num = 6; - List list143 = new List(num); - CollectionsMarshal.SetCount(list143, num); - Span span48 = CollectionsMarshal.AsSpan(list143); - ref QuestSequence reference110 = ref span48[0]; + index = 6; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + Span span143 = CollectionsMarshal.AsSpan(list143); + num = 0; + ref QuestSequence reference110 = ref span143[num]; QuestSequence obj108 = new QuestSequence { Sequence = 0 @@ -131931,7 +158949,9 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span144[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -131950,31 +158970,37 @@ public static class AssemblyQuestLoader }; obj108.Steps = list144; reference110 = obj108; - ref QuestSequence reference111 = ref span48[1]; + num++; + ref QuestSequence reference111 = ref span143[num]; QuestSequence obj109 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list145)[0]; + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + ref QuestStep reference112 = ref span145[num2]; QuestStep obj110 = new QuestStep(EInteractionType.Combat, null, new Vector3(-298.6771f, 93.99152f, -222.3565f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span49 = CollectionsMarshal.AsSpan(list146); - span49[0] = 5232u; - span49[1] = 5233u; + index3 = 2; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + Span span146 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span146[num3] = 5232u; + num3++; + span146[num3] = 5233u; obj110.KillEnemyDataIds = list146; reference112 = obj110; obj109.Steps = list145; reference111 = obj109; - ref QuestSequence reference113 = ref span48[2]; + num++; + ref QuestSequence reference113 = ref span143[num]; QuestSequence obj111 = new QuestSequence { Sequence = 2 @@ -131982,24 +159008,30 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1016168u, new Vector3(-306.1723f, 93.99152f, -226.42871f), 401); + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.Interact, 1016168u, new Vector3(-306.1723f, 93.99152f, -226.42871f), 401); obj111.Steps = list147; reference113 = obj111; - ref QuestSequence reference114 = ref span48[3]; + num++; + ref QuestSequence reference114 = ref span143[num]; QuestSequence obj112 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1016172u, new Vector3(-314.71735f, -7.6638403f, -230.60962f), 401) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.Interact, 1016172u, new Vector3(-314.71735f, -7.6638403f, -230.60962f), 401) { Fly = true }; obj112.Steps = list148; reference114 = obj112; - ref QuestSequence reference115 = ref span48[4]; + num++; + ref QuestSequence reference115 = ref span143[num]; QuestSequence obj113 = new QuestSequence { Sequence = 4 @@ -132007,22 +159039,27 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + Span span149 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span149[index2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj113.Steps = list149; reference115 = obj113; - ref QuestSequence reference116 = ref span48[5]; + num++; + ref QuestSequence reference116 = ref span143[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true }; @@ -132035,13 +159072,16 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "Censored"; + Span span151 = CollectionsMarshal.AsSpan(list151); + index = 0; + span151[index] = "Censored"; questRoot17.Author = list151; - num = 6; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span50 = CollectionsMarshal.AsSpan(list152); - ref QuestSequence reference117 = ref span50[0]; + index = 6; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + Span span152 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref QuestSequence reference117 = ref span152[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -132049,7 +159089,9 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -132068,15 +159110,18 @@ public static class AssemblyQuestLoader }; obj115.Steps = list153; reference117 = obj115; - ref QuestSequence reference118 = ref span50[1]; + num++; + ref QuestSequence reference118 = ref span152[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 2006633u, new Vector3(-13.002365f, 172.73012f, -103.776634f), 401) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.Interact, 2006633u, new Vector3(-13.002365f, 172.73012f, -103.776634f), 401) { StopDistance = 1f, Fly = true, @@ -132084,7 +159129,8 @@ public static class AssemblyQuestLoader }; obj116.Steps = list154; reference118 = obj116; - ref QuestSequence reference119 = ref span50[2]; + num++; + ref QuestSequence reference119 = ref span152[num]; QuestSequence obj117 = new QuestSequence { Sequence = 2 @@ -132092,22 +159138,27 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj117.Steps = list155; reference119 = obj117; - ref QuestSequence reference120 = ref span50[3]; + num++; + ref QuestSequence reference120 = ref span152[num]; QuestSequence obj118 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list156)[0]; + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + ref QuestStep reference121 = ref span156[num2]; QuestStep obj119 = new QuestStep(EInteractionType.Combat, null, new Vector3(207.00311f, -118.345215f, 420.25885f), 401) { Fly = true, @@ -132117,12 +159168,15 @@ public static class AssemblyQuestLoader num3 = 1; List list157 = new List(num3); CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = 5234u; + Span span157 = CollectionsMarshal.AsSpan(list157); + index3 = 0; + span157[index3] = 5234u; obj119.KillEnemyDataIds = list157; reference121 = obj119; obj118.Steps = list156; reference120 = obj118; - ref QuestSequence reference122 = ref span50[4]; + num++; + ref QuestSequence reference122 = ref span152[num]; QuestSequence obj120 = new QuestSequence { Sequence = 4 @@ -132130,18 +159184,23 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1016173u, new Vector3(205.31006f, -118.345215f, 422.20178f), 401); + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.Interact, 1016173u, new Vector3(205.31006f, -118.345215f, 422.20178f), 401); obj120.Steps = list158; reference122 = obj120; - ref QuestSequence reference123 = ref span50[5]; + num++; + ref QuestSequence reference123 = ref span152[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -132155,13 +159214,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "plogon_enjoyer"; + Span span160 = CollectionsMarshal.AsSpan(list160); + index = 0; + span160[index] = "plogon_enjoyer"; questRoot18.Author = list160; - num = 9; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span51 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference124 = ref span51[0]; + index = 9; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + Span span161 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference124 = ref span161[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -132169,25 +159231,31 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); obj122.Steps = list162; reference124 = obj122; - ref QuestSequence reference125 = ref span51[1]; + num++; + ref QuestSequence reference125 = ref span161[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span163[num2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj123.Steps = list163; reference125 = obj123; - ref QuestSequence reference126 = ref span51[2]; + num++; + ref QuestSequence reference126 = ref span161[num]; QuestSequence obj124 = new QuestSequence { Sequence = 2 @@ -132195,34 +159263,40 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span164[index2] = new QuestStep(EInteractionType.Interact, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) { Fly = true }; obj124.Steps = list164; reference126 = obj124; - ref QuestSequence reference127 = ref span51[3]; + num++; + ref QuestSequence reference127 = ref span161[num]; QuestSequence obj125 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - Span span52 = CollectionsMarshal.AsSpan(list165); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-589.2831f, -1.0348412f, -340.14413f), 401) + index2 = 2; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span165[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-589.2831f, -1.0348412f, -340.14413f), 401) { Fly = true, Land = true }; - span52[1] = new QuestStep(EInteractionType.Emote, null, new Vector3(-589.2831f, -1.0348412f, -340.14413f), 401) + num2++; + span165[num2] = new QuestStep(EInteractionType.Emote, null, new Vector3(-589.2831f, -1.0348412f, -340.14413f), 401) { Mount = false, Emote = EEmote.Dance }; obj125.Steps = list165; reference127 = obj125; - ref QuestSequence reference128 = ref span51[4]; + num++; + ref QuestSequence reference128 = ref span161[num]; QuestSequence obj126 = new QuestSequence { Sequence = 4 @@ -132230,27 +159304,33 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) + Span span166 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span166[index2] = new QuestStep(EInteractionType.Interact, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) { Fly = true }; obj126.Steps = list166; reference128 = obj126; - ref QuestSequence reference129 = ref span51[5]; + num++; + ref QuestSequence reference129 = ref span161[num]; QuestSequence obj127 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1016175u, new Vector3(657.557f, -125.6886f, 307.60657f), 401) + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.Interact, 1016175u, new Vector3(657.557f, -125.6886f, 307.60657f), 401) { Fly = true }; obj127.Steps = list167; reference129 = obj127; - ref QuestSequence reference130 = ref span51[6]; + num++; + ref QuestSequence reference130 = ref span161[num]; QuestSequence obj128 = new QuestSequence { Sequence = 6 @@ -132258,34 +159338,40 @@ public static class AssemblyQuestLoader num2 = 2; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span53 = CollectionsMarshal.AsSpan(list168); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(702.4233f, -60.78939f, 145.91805f), 401) + Span span168 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span168[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(702.4233f, -60.78939f, 145.91805f), 401) { Fly = true, Land = true }; - span53[1] = new QuestStep(EInteractionType.Emote, null, new Vector3(702.4233f, -60.78939f, 145.91805f), 401) + index2++; + span168[index2] = new QuestStep(EInteractionType.Emote, null, new Vector3(702.4233f, -60.78939f, 145.91805f), 401) { Mount = false, Emote = EEmote.Dance }; obj128.Steps = list168; reference130 = obj128; - ref QuestSequence reference131 = ref span51[7]; + num++; + ref QuestSequence reference131 = ref span161[num]; QuestSequence obj129 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1016175u, new Vector3(657.557f, -125.6886f, 307.60657f), 401) + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + Span span169 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span169[num2] = new QuestStep(EInteractionType.Interact, 1016175u, new Vector3(657.557f, -125.6886f, 307.60657f), 401) { Fly = true }; obj129.Steps = list169; reference131 = obj129; - ref QuestSequence reference132 = ref span51[8]; + num++; + ref QuestSequence reference132 = ref span161[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -132293,7 +159379,9 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) + Span span170 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span170[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -132307,24 +159395,30 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "plogon_enjoyer"; + Span span171 = CollectionsMarshal.AsSpan(list171); + index = 0; + span171[index] = "plogon_enjoyer"; questRoot19.Author = list171; - num = 5; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span54 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference133 = ref span54[0]; + index = 5; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + Span span172 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference133 = ref span172[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); obj131.Steps = list173; reference133 = obj131; - ref QuestSequence reference134 = ref span54[1]; + num++; + ref QuestSequence reference134 = ref span172[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 @@ -132332,28 +159426,34 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Emote, 2006623u, new Vector3(-761.74567f, -132.61621f, -422.1714f), 401) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.Emote, 2006623u, new Vector3(-761.74567f, -132.61621f, -422.1714f), 401) { Fly = true, Emote = EEmote.SundropDance }; obj132.Steps = list174; reference134 = obj132; - ref QuestSequence reference135 = ref span54[2]; + num++; + ref QuestSequence reference135 = ref span172[num]; QuestSequence obj133 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.Interact, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true }; obj133.Steps = list175; reference135 = obj133; - ref QuestSequence reference136 = ref span54[3]; + num++; + ref QuestSequence reference136 = ref span172[num]; QuestSequence obj134 = new QuestSequence { Sequence = 3 @@ -132361,22 +159461,27 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + Span span176 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span176[index2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj134.Steps = list176; reference136 = obj134; - ref QuestSequence reference137 = ref span54[4]; + num++; + ref QuestSequence reference137 = ref span172[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.CompleteQuest, 2006637u, new Vector3(-220.47766f, -4.9592285f, -582.3301f), 401) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.CompleteQuest, 2006637u, new Vector3(-220.47766f, -4.9592285f, -582.3301f), 401) { Fly = true }; @@ -132389,13 +159494,16 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "plogon_enjoyer"; + Span span178 = CollectionsMarshal.AsSpan(list178); + index = 0; + span178[index] = "plogon_enjoyer"; questRoot20.Author = list178; - num = 3; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span55 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference138 = ref span55[0]; + index = 3; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + Span span179 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference138 = ref span179[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 @@ -132403,39 +159511,48 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span180[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj136.Steps = list180; reference138 = obj136; - ref QuestSequence reference139 = ref span55[1]; + num++; + ref QuestSequence reference139 = ref span179[num]; QuestSequence obj137 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - Span span56 = CollectionsMarshal.AsSpan(list181); - span56[0] = new QuestStep(EInteractionType.Interact, 2006639u, new Vector3(-270.3136f, -13.962036f, -635.2484f), 401) + index2 = 4; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span181[num2] = new QuestStep(EInteractionType.Interact, 2006639u, new Vector3(-270.3136f, -13.962036f, -635.2484f), 401) { Fly = true }; - ref QuestStep reference140 = ref span56[1]; + num2++; + ref QuestStep reference140 = ref span181[num2]; QuestStep obj138 = new QuestStep(EInteractionType.Combat, 2006642u, new Vector3(-245.41089f, -13.229614f, -608.2704f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - CollectionsMarshal.AsSpan(list182)[0] = 5236u; + index3 = 1; + List list182 = new List(index3); + CollectionsMarshal.SetCount(list182, index3); + Span span182 = CollectionsMarshal.AsSpan(list182); + num3 = 0; + span182[num3] = 5236u; obj138.KillEnemyDataIds = list182; reference140 = obj138; - span56[2] = new QuestStep(EInteractionType.Interact, 2006640u, new Vector3(-82.230896f, -10.727112f, -637.90344f), 401) + num2++; + span181[num2] = new QuestStep(EInteractionType.Interact, 2006640u, new Vector3(-82.230896f, -10.727112f, -637.90344f), 401) { Fly = true }; - ref QuestStep reference141 = ref span56[3]; + num2++; + ref QuestStep reference141 = ref span181[num2]; QuestStep obj139 = new QuestStep(EInteractionType.Combat, 2006641u, new Vector3(-24.765442f, 5.3253784f, -657.70966f), 401) { Fly = true, @@ -132444,12 +159561,15 @@ public static class AssemblyQuestLoader num3 = 1; List list183 = new List(num3); CollectionsMarshal.SetCount(list183, num3); - CollectionsMarshal.AsSpan(list183)[0] = 5236u; + Span span183 = CollectionsMarshal.AsSpan(list183); + index3 = 0; + span183[index3] = 5236u; obj139.KillEnemyDataIds = list183; reference141 = obj139; obj137.Steps = list181; reference139 = obj137; - ref QuestSequence reference142 = ref span55[2]; + num++; + ref QuestSequence reference142 = ref span179[num]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -132457,7 +159577,9 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + Span span184 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span184[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -132483,24 +159605,30 @@ public static class AssemblyQuestLoader num = 1; List list185 = new List(num); CollectionsMarshal.SetCount(list185, num); - CollectionsMarshal.AsSpan(list185)[0] = "plogon_enjoyer"; + Span span185 = CollectionsMarshal.AsSpan(list185); + index = 0; + span185[index] = "plogon_enjoyer"; questRoot21.Author = list185; - num = 5; - List list186 = new List(num); - CollectionsMarshal.SetCount(list186, num); - Span span57 = CollectionsMarshal.AsSpan(list186); - ref QuestSequence reference143 = ref span57[0]; + index = 5; + List list186 = new List(index); + CollectionsMarshal.SetCount(list186, index); + Span span186 = CollectionsMarshal.AsSpan(list186); + num = 0; + ref QuestSequence reference143 = ref span186[num]; QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj141.Steps = list187; reference143 = obj141; - ref QuestSequence reference144 = ref span57[1]; + num++; + ref QuestSequence reference144 = ref span186[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -132508,42 +159636,49 @@ public static class AssemblyQuestLoader num2 = 3; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span58 = CollectionsMarshal.AsSpan(list188); - span58[0] = new QuestStep(EInteractionType.Interact, 2006645u, new Vector3(-473.10602f, -56.01587f, -624.1398f), 401) + Span span188 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span188[index2] = new QuestStep(EInteractionType.Interact, 2006645u, new Vector3(-473.10602f, -56.01587f, -624.1398f), 401) { Fly = true }; - span58[1] = new QuestStep(EInteractionType.Interact, 2006644u, new Vector3(-365.92664f, -57.053528f, -579.553f), 401) + index2++; + span188[index2] = new QuestStep(EInteractionType.Interact, 2006644u, new Vector3(-365.92664f, -57.053528f, -579.553f), 401) { Fly = true }; - span58[2] = new QuestStep(EInteractionType.Interact, 2006643u, new Vector3(-381.9486f, -56.50421f, -521.8433f), 401) + index2++; + span188[index2] = new QuestStep(EInteractionType.Interact, 2006643u, new Vector3(-381.9486f, -56.50421f, -521.8433f), 401) { Fly = true }; obj142.Steps = list188; reference144 = obj142; - ref QuestSequence reference145 = ref span57[2]; + num++; + ref QuestSequence reference145 = ref span186[num]; QuestSequence obj143 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - Span span59 = CollectionsMarshal.AsSpan(list189); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + index2 = 2; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; - span59[1] = new QuestStep(EInteractionType.Interact, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + num2++; + span189[num2] = new QuestStep(EInteractionType.Interact, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Mount = false }; obj143.Steps = list189; reference145 = obj143; - ref QuestSequence reference146 = ref span57[3]; + num++; + ref QuestSequence reference146 = ref span186[num]; QuestSequence obj144 = new QuestSequence { Sequence = 3 @@ -132551,22 +159686,27 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1012056u, new Vector3(-658.89984f, -127.78361f, 622.98f), 401) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.Interact, 1012056u, new Vector3(-658.89984f, -127.78361f, 622.98f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj144.Steps = list190; reference146 = obj144; - ref QuestSequence reference147 = ref span57[4]; + num++; + ref QuestSequence reference147 = ref span186[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -132592,13 +159732,16 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - CollectionsMarshal.AsSpan(list192)[0] = "AnimaMachinae"; + Span span192 = CollectionsMarshal.AsSpan(list192); + index = 0; + span192[index] = "AnimaMachinae"; questRoot22.Author = list192; - num = 4; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - Span span60 = CollectionsMarshal.AsSpan(list193); - ref QuestSequence reference148 = ref span60[0]; + index = 4; + List list193 = new List(index); + CollectionsMarshal.SetCount(list193, index); + Span span193 = CollectionsMarshal.AsSpan(list193); + num = 0; + ref QuestSequence reference148 = ref span193[num]; QuestSequence obj146 = new QuestSequence { Sequence = 0 @@ -132606,19 +159749,23 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj146.Steps = list194; reference148 = obj146; - ref QuestSequence reference149 = ref span60[1]; + num++; + ref QuestSequence reference149 = ref span193[num]; QuestSequence obj147 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - Span span61 = CollectionsMarshal.AsSpan(list195); - span61[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + index2 = 2; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { StopDistance = 3f, Fly = true, @@ -132635,10 +159782,12 @@ public static class AssemblyQuestLoader } } }; - span61[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); + num2++; + span195[num2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); obj147.Steps = list195; reference149 = obj147; - ref QuestSequence reference150 = ref span60[2]; + num++; + ref QuestSequence reference150 = ref span193[num]; QuestSequence obj148 = new QuestSequence { Sequence = 2 @@ -132646,34 +159795,44 @@ public static class AssemblyQuestLoader num2 = 8; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span62 = CollectionsMarshal.AsSpan(list196); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-544.89056f, 61.602722f, -373.9669f), 401) + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span196[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-544.89056f, 61.602722f, -373.9669f), 401) { Fly = true }; - ref QuestStep reference151 = ref span62[1]; + index2++; + ref QuestStep reference151 = ref span196[index2]; QuestStep obj149 = new QuestStep(EInteractionType.Action, 2006649u, new Vector3(-539.0555f, 64.22522f, -377.0047f), 401) { StopDistance = 3f, Action = EAction.BuffetSanuwa }; - num3 = 6; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - Span span63 = CollectionsMarshal.AsSpan(list197); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list197 = new List(index3); + CollectionsMarshal.SetCount(list197, index3); + Span span197 = CollectionsMarshal.AsSpan(list197); + num3 = 0; + span197[num3] = null; + num3++; + span197[num3] = null; + num3++; + span197[num3] = null; + num3++; + span197[num3] = null; + num3++; + span197[num3] = null; + num3++; + span197[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj149.CompletionQuestVariablesFlags = list197; reference151 = obj149; - span62[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-505.35422f, -28.166508f, -528.1072f), 401) + index2++; + span196[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-505.35422f, -28.166508f, -528.1072f), 401) { Fly = true }; - ref QuestStep reference152 = ref span62[3]; + index2++; + ref QuestStep reference152 = ref span196[index2]; QuestStep obj150 = new QuestStep(EInteractionType.Action, 2006647u, new Vector3(-504.78372f, -26.68805f, -530.93774f), 401) { StopDistance = 3f, @@ -132682,57 +159841,76 @@ public static class AssemblyQuestLoader num3 = 6; List list198 = new List(num3); CollectionsMarshal.SetCount(list198, num3); - Span span64 = CollectionsMarshal.AsSpan(list198); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span198 = CollectionsMarshal.AsSpan(list198); + index3 = 0; + span198[index3] = null; + index3++; + span198[index3] = null; + index3++; + span198[index3] = null; + index3++; + span198[index3] = null; + index3++; + span198[index3] = null; + index3++; + span198[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj150.CompletionQuestVariablesFlags = list198; reference152 = obj150; - span62[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-478.25208f, -31.101946f, -663.0455f), 401) + index2++; + span196[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-478.25208f, -31.101946f, -663.0455f), 401) { Fly = true }; - ref QuestStep reference153 = ref span62[5]; + index2++; + ref QuestStep reference153 = ref span196[index2]; QuestStep obj151 = new QuestStep(EInteractionType.Action, 2006648u, new Vector3(-477.40906f, -28.885437f, -668.32996f), 401) { StopDistance = 3f, Action = EAction.BuffetSanuwa }; - num3 = 6; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - Span span65 = CollectionsMarshal.AsSpan(list199); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list199 = new List(index3); + CollectionsMarshal.SetCount(list199, index3); + Span span199 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span199[num3] = null; + num3++; + span199[num3] = null; + num3++; + span199[num3] = null; + num3++; + span199[num3] = null; + num3++; + span199[num3] = null; + num3++; + span199[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj151.CompletionQuestVariablesFlags = list199; reference153 = obj151; - span62[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.45963f, -1.2632592f, -619.294f), 401) + index2++; + span196[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.45963f, -1.2632592f, -619.294f), 401) { Fly = true }; - span62[7] = new QuestStep(EInteractionType.Action, 2006646u, new Vector3(-96.20813f, 0.32037354f, -620.26404f), 401) + index2++; + span196[index2] = new QuestStep(EInteractionType.Action, 2006646u, new Vector3(-96.20813f, 0.32037354f, -620.26404f), 401) { StopDistance = 3f, Action = EAction.BuffetSanuwa }; obj148.Steps = list196; reference150 = obj148; - ref QuestSequence reference154 = ref span60[3]; + num++; + ref QuestSequence reference154 = ref span193[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -132746,13 +159924,16 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "AnimaMachinae"; + Span span201 = CollectionsMarshal.AsSpan(list201); + index = 0; + span201[index] = "AnimaMachinae"; questRoot23.Author = list201; - num = 3; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span66 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference155 = ref span66[0]; + index = 3; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + Span span202 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference155 = ref span202[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 @@ -132760,19 +159941,23 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span203[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj153.Steps = list203; reference155 = obj153; - ref QuestSequence reference156 = ref span66[1]; + num++; + ref QuestSequence reference156 = ref span202[num]; QuestSequence obj154 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - Span span67 = CollectionsMarshal.AsSpan(list204); - ref QuestStep reference157 = ref span67[0]; + index2 = 4; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + ref QuestStep reference157 = ref span204[num2]; QuestStep obj155 = new QuestStep(EInteractionType.Interact, 2006651u, new Vector3(664.3624f, -30.86908f, -137.0108f), 401) { Fly = true @@ -132780,33 +159965,47 @@ public static class AssemblyQuestLoader num3 = 6; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - Span span68 = CollectionsMarshal.AsSpan(list205); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span205 = CollectionsMarshal.AsSpan(list205); + index3 = 0; + span205[index3] = null; + index3++; + span205[index3] = null; + index3++; + span205[index3] = null; + index3++; + span205[index3] = null; + index3++; + span205[index3] = null; + index3++; + span205[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj155.CompletionQuestVariablesFlags = list205; reference157 = obj155; - ref QuestStep reference158 = ref span67[1]; + num2++; + ref QuestStep reference158 = ref span204[num2]; QuestStep obj156 = new QuestStep(EInteractionType.Interact, 2006652u, new Vector3(847.2876f, -50.58368f, 7.2174683f), 401) { Fly = true }; - num3 = 6; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - Span span69 = CollectionsMarshal.AsSpan(list206); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list206 = new List(index3); + CollectionsMarshal.SetCount(list206, index3); + Span span206 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj156.CompletionQuestVariablesFlags = list206; reference158 = obj156; - ref QuestStep reference159 = ref span67[2]; + num2++; + ref QuestStep reference159 = ref span204[num2]; QuestStep obj157 = new QuestStep(EInteractionType.Combat, 2006653u, new Vector3(860.2273f, -84.45868f, 19.272095f), 401) { Fly = true, @@ -132815,21 +160014,30 @@ public static class AssemblyQuestLoader num3 = 1; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - CollectionsMarshal.AsSpan(list207)[0] = 5235u; + Span span207 = CollectionsMarshal.AsSpan(list207); + index3 = 0; + span207[index3] = 5235u; obj157.KillEnemyDataIds = list207; - num3 = 6; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - Span span70 = CollectionsMarshal.AsSpan(list208); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + Span span208 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span208[num3] = null; + num3++; + span208[num3] = null; + num3++; + span208[num3] = null; + num3++; + span208[num3] = null; + num3++; + span208[num3] = null; + num3++; + span208[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj157.CompletionQuestVariablesFlags = list208; reference159 = obj157; - ref QuestStep reference160 = ref span67[3]; + num2++; + ref QuestStep reference160 = ref span204[num2]; QuestStep obj158 = new QuestStep(EInteractionType.Combat, 2006654u, new Vector3(642.63354f, -92.57648f, 63.035034f), 401) { Fly = true, @@ -132838,12 +160046,15 @@ public static class AssemblyQuestLoader num3 = 1; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = 5235u; + Span span209 = CollectionsMarshal.AsSpan(list209); + index3 = 0; + span209[index3] = 5235u; obj158.KillEnemyDataIds = list209; reference160 = obj158; obj154.Steps = list204; reference156 = obj154; - ref QuestSequence reference161 = ref span66[2]; + num++; + ref QuestSequence reference161 = ref span202[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -132851,7 +160062,9 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + Span span210 = CollectionsMarshal.AsSpan(list210); + index2 = 0; + span210[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -132877,24 +160090,30 @@ public static class AssemblyQuestLoader num = 1; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - CollectionsMarshal.AsSpan(list211)[0] = "AnimaMachinae"; + Span span211 = CollectionsMarshal.AsSpan(list211); + index = 0; + span211[index] = "AnimaMachinae"; questRoot24.Author = list211; - num = 6; - List list212 = new List(num); - CollectionsMarshal.SetCount(list212, num); - Span span71 = CollectionsMarshal.AsSpan(list212); - ref QuestSequence reference162 = ref span71[0]; + index = 6; + List list212 = new List(index); + CollectionsMarshal.SetCount(list212, index); + Span span212 = CollectionsMarshal.AsSpan(list212); + num = 0; + ref QuestSequence reference162 = ref span212[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span213 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span213[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj160.Steps = list213; reference162 = obj160; - ref QuestSequence reference163 = ref span71[1]; + num++; + ref QuestSequence reference163 = ref span212[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -132902,8 +160121,9 @@ public static class AssemblyQuestLoader num2 = 2; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span72 = CollectionsMarshal.AsSpan(list214); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { StopDistance = 3f, Fly = true, @@ -132920,25 +160140,30 @@ public static class AssemblyQuestLoader } } }; - span72[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); + index2++; + span214[index2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); obj161.Steps = list214; reference163 = obj161; - ref QuestSequence reference164 = ref span71[2]; + num++; + ref QuestSequence reference164 = ref span212[num]; QuestSequence obj162 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Action, 2006655u, new Vector3(-48.325317f, 17.990356f, -852.47577f), 401) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.Action, 2006655u, new Vector3(-48.325317f, 17.990356f, -852.47577f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj162.Steps = list215; reference164 = obj162; - ref QuestSequence reference165 = ref span71[3]; + num++; + ref QuestSequence reference165 = ref span212[num]; QuestSequence obj163 = new QuestSequence { Sequence = 3 @@ -132946,29 +160171,35 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Action, 2006656u, new Vector3(95.23157f, -11.886841f, -817.6242f), 401) + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span216[index2] = new QuestStep(EInteractionType.Action, 2006656u, new Vector3(95.23157f, -11.886841f, -817.6242f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj163.Steps = list216; reference165 = obj163; - ref QuestSequence reference166 = ref span71[4]; + num++; + ref QuestSequence reference166 = ref span212[num]; QuestSequence obj164 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Action, 2006657u, new Vector3(205.8899f, -6.9123535f, -785.70233f), 401) + index2 = 1; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + Span span217 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span217[num2] = new QuestStep(EInteractionType.Action, 2006657u, new Vector3(205.8899f, -6.9123535f, -785.70233f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj164.Steps = list217; reference166 = obj164; - ref QuestSequence reference167 = ref span71[5]; + num++; + ref QuestSequence reference167 = ref span212[num]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue @@ -132976,7 +160207,9 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + Span span218 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + span218[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -132990,24 +160223,30 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - CollectionsMarshal.AsSpan(list219)[0] = "AnimaMachinae"; + Span span219 = CollectionsMarshal.AsSpan(list219); + index = 0; + span219[index] = "AnimaMachinae"; questRoot25.Author = list219; - num = 4; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - Span span73 = CollectionsMarshal.AsSpan(list220); - ref QuestSequence reference168 = ref span73[0]; + index = 4; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + Span span220 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference168 = ref span220[num]; QuestSequence obj166 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span221[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj166.Steps = list221; reference168 = obj166; - ref QuestSequence reference169 = ref span73[1]; + num++; + ref QuestSequence reference169 = ref span220[num]; QuestSequence obj167 = new QuestSequence { Sequence = 1 @@ -133015,103 +160254,137 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) + Span span222 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span222[index2] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj167.Steps = list222; reference169 = obj167; - ref QuestSequence reference170 = ref span73[2]; + num++; + ref QuestSequence reference170 = ref span220[num]; QuestSequence obj168 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - Span span74 = CollectionsMarshal.AsSpan(list223); - ref QuestStep reference171 = ref span74[0]; + index2 = 6; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + Span span223 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + ref QuestStep reference171 = ref span223[num2]; QuestStep obj169 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(151.96031f, -135.00737f, 611.10016f), 401) { Fly = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - Span span75 = CollectionsMarshal.AsSpan(list224); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list224 = new List(index3); + CollectionsMarshal.SetCount(list224, index3); + Span span224 = CollectionsMarshal.AsSpan(list224); + num3 = 0; + span224[num3] = null; + num3++; + span224[num3] = null; + num3++; + span224[num3] = null; + num3++; + span224[num3] = null; + num3++; + span224[num3] = null; + num3++; + span224[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list224; skipConditions5.StepIf = skipStepConditions3; obj169.SkipConditions = skipConditions5; reference171 = obj169; - ref QuestStep reference172 = ref span74[1]; + num2++; + ref QuestStep reference172 = ref span223[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2006662u, new Vector3(150.77429f, -133.98956f, 610.00977f), 401); num3 = 6; List list225 = new List(num3); CollectionsMarshal.SetCount(list225, num3); - Span span76 = CollectionsMarshal.AsSpan(list225); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span225 = CollectionsMarshal.AsSpan(list225); + index3 = 0; + span225[index3] = null; + index3++; + span225[index3] = null; + index3++; + span225[index3] = null; + index3++; + span225[index3] = null; + index3++; + span225[index3] = null; + index3++; + span225[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list225; reference172 = questStep3; - ref QuestStep reference173 = ref span74[2]; + num2++; + ref QuestStep reference173 = ref span223[num2]; QuestStep obj170 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(208.36453f, -125.28946f, 630.55835f), 401) { Fly = true }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - Span span77 = CollectionsMarshal.AsSpan(list226); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list226 = new List(index3); + CollectionsMarshal.SetCount(list226, index3); + Span span226 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + span226[num3] = null; + num3++; + span226[num3] = null; + num3++; + span226[num3] = null; + num3++; + span226[num3] = null; + num3++; + span226[num3] = null; + num3++; + span226[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list226; skipConditions6.StepIf = skipStepConditions4; obj170.SkipConditions = skipConditions6; reference173 = obj170; - ref QuestStep reference174 = ref span74[3]; + num2++; + ref QuestStep reference174 = ref span223[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2006661u, new Vector3(207.2633f, -124.101685f, 631.8303f), 401); num3 = 6; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - Span span78 = CollectionsMarshal.AsSpan(list227); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span227 = CollectionsMarshal.AsSpan(list227); + index3 = 0; + span227[index3] = null; + index3++; + span227[index3] = null; + index3++; + span227[index3] = null; + index3++; + span227[index3] = null; + index3++; + span227[index3] = null; + index3++; + span227[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list227; reference174 = questStep4; - span74[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(402.99722f, -125.28946f, 724.59906f), 401) + num2++; + span223[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(402.99722f, -125.28946f, 724.59906f), 401) { Fly = true }; - span74[5] = new QuestStep(EInteractionType.Interact, 2006658u, new Vector3(407.187f, -122.51471f, 724.0558f), 401) + num2++; + span223[num2] = new QuestStep(EInteractionType.Interact, 2006658u, new Vector3(407.187f, -122.51471f, 724.0558f), 401) { Mount = false }; obj168.Steps = list223; reference170 = obj168; - ref QuestSequence reference175 = ref span73[3]; + num++; + ref QuestSequence reference175 = ref span220[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -133119,7 +160392,9 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + Span span228 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span228[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -133145,24 +160420,30 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "liza"; + Span span229 = CollectionsMarshal.AsSpan(list229); + index = 0; + span229[index] = "liza"; questRoot26.Author = list229; - num = 3; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span79 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference176 = ref span79[0]; + index = 3; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + Span span230 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference176 = ref span230[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj172.Steps = list231; reference176 = obj172; - ref QuestSequence reference177 = ref span79[1]; + num++; + ref QuestSequence reference177 = ref span230[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -133170,25 +160451,33 @@ public static class AssemblyQuestLoader num2 = 3; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span80 = CollectionsMarshal.AsSpan(list232); - ref QuestStep reference178 = ref span80[0]; + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + ref QuestStep reference178 = ref span232[index2]; QuestStep obj174 = new QuestStep(EInteractionType.Interact, 2006663u, new Vector3(665.0034f, -158.7702f, 662.2567f), 401) { Fly = true }; - num3 = 6; - List list233 = new List(num3); - CollectionsMarshal.SetCount(list233, num3); - Span span81 = CollectionsMarshal.AsSpan(list233); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list233 = new List(index3); + CollectionsMarshal.SetCount(list233, index3); + Span span233 = CollectionsMarshal.AsSpan(list233); + num3 = 0; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj174.CompletionQuestVariablesFlags = list233; reference178 = obj174; - ref QuestStep reference179 = ref span80[1]; + index2++; + ref QuestStep reference179 = ref span232[index2]; QuestStep obj175 = new QuestStep(EInteractionType.Interact, 2006665u, new Vector3(728.1146f, -157.45789f, 815.5488f), 401) { Fly = true, @@ -133197,40 +160486,56 @@ public static class AssemblyQuestLoader num3 = 6; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - Span span82 = CollectionsMarshal.AsSpan(list234); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span234 = CollectionsMarshal.AsSpan(list234); + index3 = 0; + span234[index3] = null; + index3++; + span234[index3] = null; + index3++; + span234[index3] = null; + index3++; + span234[index3] = null; + index3++; + span234[index3] = null; + index3++; + span234[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj175.CompletionQuestVariablesFlags = list234; reference179 = obj175; - ref QuestStep reference180 = ref span80[2]; + index2++; + ref QuestStep reference180 = ref span232[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2006664u, new Vector3(625.3605f, -160.29602f, 835.62976f), 401); - num3 = 6; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - Span span83 = CollectionsMarshal.AsSpan(list235); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list235 = new List(index3); + CollectionsMarshal.SetCount(list235, index3); + Span span235 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + span235[num3] = null; + num3++; + span235[num3] = null; + num3++; + span235[num3] = null; + num3++; + span235[num3] = null; + num3++; + span235[num3] = null; + num3++; + span235[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list235; reference180 = questStep5; obj173.Steps = list232; reference177 = obj173; - ref QuestSequence reference181 = ref span79[2]; + num++; + ref QuestSequence reference181 = ref span230[num]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -133256,13 +160561,16 @@ public static class AssemblyQuestLoader num = 1; List list237 = new List(num); CollectionsMarshal.SetCount(list237, num); - CollectionsMarshal.AsSpan(list237)[0] = "liza"; + Span span237 = CollectionsMarshal.AsSpan(list237); + index = 0; + span237[index] = "liza"; questRoot27.Author = list237; - num = 4; - List list238 = new List(num); - CollectionsMarshal.SetCount(list238, num); - Span span84 = CollectionsMarshal.AsSpan(list238); - ref QuestSequence reference182 = ref span84[0]; + index = 4; + List list238 = new List(index); + CollectionsMarshal.SetCount(list238, index); + Span span238 = CollectionsMarshal.AsSpan(list238); + num = 0; + ref QuestSequence reference182 = ref span238[num]; QuestSequence obj177 = new QuestSequence { Sequence = 0 @@ -133270,19 +160578,23 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj177.Steps = list239; reference182 = obj177; - ref QuestSequence reference183 = ref span84[1]; + num++; + ref QuestSequence reference183 = ref span238[num]; QuestSequence obj178 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - Span span85 = CollectionsMarshal.AsSpan(list240); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + index2 = 2; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { StopDistance = 3f, Fly = true, @@ -133299,10 +160611,12 @@ public static class AssemblyQuestLoader } } }; - span85[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); + num2++; + span240[num2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); obj178.Steps = list240; reference183 = obj178; - ref QuestSequence reference184 = ref span84[2]; + num++; + ref QuestSequence reference184 = ref span238[num]; QuestSequence obj179 = new QuestSequence { Sequence = 2 @@ -133310,8 +160624,9 @@ public static class AssemblyQuestLoader num2 = 3; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span86 = CollectionsMarshal.AsSpan(list241); - ref QuestStep reference185 = ref span86[0]; + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + ref QuestStep reference185 = ref span241[index2]; QuestStep obj180 = new QuestStep(EInteractionType.Action, 1016219u, new Vector3(14.389221f, -111.05486f, 413.71777f), 401) { Fly = true, @@ -133320,34 +160635,48 @@ public static class AssemblyQuestLoader num3 = 6; List list242 = new List(num3); CollectionsMarshal.SetCount(list242, num3); - Span span87 = CollectionsMarshal.AsSpan(list242); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span242 = CollectionsMarshal.AsSpan(list242); + index3 = 0; + span242[index3] = null; + index3++; + span242[index3] = null; + index3++; + span242[index3] = null; + index3++; + span242[index3] = null; + index3++; + span242[index3] = null; + index3++; + span242[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj180.CompletionQuestVariablesFlags = list242; reference185 = obj180; - ref QuestStep reference186 = ref span86[1]; + index2++; + ref QuestStep reference186 = ref span241[index2]; QuestStep obj181 = new QuestStep(EInteractionType.Action, 1016217u, new Vector3(97.48987f, -86.45681f, 466.57495f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; - num3 = 6; - List list243 = new List(num3); - CollectionsMarshal.SetCount(list243, num3); - Span span88 = CollectionsMarshal.AsSpan(list243); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list243 = new List(index3); + CollectionsMarshal.SetCount(list243, index3); + Span span243 = CollectionsMarshal.AsSpan(list243); + num3 = 0; + span243[num3] = null; + num3++; + span243[num3] = null; + num3++; + span243[num3] = null; + num3++; + span243[num3] = null; + num3++; + span243[num3] = null; + num3++; + span243[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj181.CompletionQuestVariablesFlags = list243; reference186 = obj181; - ref QuestStep reference187 = ref span86[2]; + index2++; + ref QuestStep reference187 = ref span241[index2]; QuestStep obj182 = new QuestStep(EInteractionType.Action, 1016218u, new Vector3(137.95679f, -87.380325f, 434.62268f), 401) { Fly = true, @@ -133356,26 +160685,35 @@ public static class AssemblyQuestLoader num3 = 6; List list244 = new List(num3); CollectionsMarshal.SetCount(list244, num3); - Span span89 = CollectionsMarshal.AsSpan(list244); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span244 = CollectionsMarshal.AsSpan(list244); + index3 = 0; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj182.CompletionQuestVariablesFlags = list244; reference187 = obj182; obj179.Steps = list241; reference184 = obj179; - ref QuestSequence reference188 = ref span84[3]; + num++; + ref QuestSequence reference188 = ref span238[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + Span span245 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span245[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -133389,13 +160727,16 @@ public static class AssemblyQuestLoader num = 1; List list246 = new List(num); CollectionsMarshal.SetCount(list246, num); - CollectionsMarshal.AsSpan(list246)[0] = "plogon_enjoyer"; + Span span246 = CollectionsMarshal.AsSpan(list246); + index = 0; + span246[index] = "plogon_enjoyer"; questRoot28.Author = list246; - num = 4; - List list247 = new List(num); - CollectionsMarshal.SetCount(list247, num); - Span span90 = CollectionsMarshal.AsSpan(list247); - ref QuestSequence reference189 = ref span90[0]; + index = 4; + List list247 = new List(index); + CollectionsMarshal.SetCount(list247, index); + Span span247 = CollectionsMarshal.AsSpan(list247); + num = 0; + ref QuestSequence reference189 = ref span247[num]; QuestSequence obj184 = new QuestSequence { Sequence = 0 @@ -133403,34 +160744,41 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + Span span248 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span248[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj184.Steps = list248; reference189 = obj184; - ref QuestSequence reference190 = ref span90[1]; + num++; + ref QuestSequence reference190 = ref span247[num]; QuestSequence obj185 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - Span span91 = CollectionsMarshal.AsSpan(list249); - span91[0] = new QuestStep(EInteractionType.Interact, 1012057u, new Vector3(-599.0845f, -122.5f, 559.50244f), 401) + index2 = 3; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + Span span249 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span249[num2] = new QuestStep(EInteractionType.Interact, 1012057u, new Vector3(-599.0845f, -122.5f, 559.50244f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; - span91[1] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) + num2++; + span249[num2] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) { Fly = true }; - span91[2] = new QuestStep(EInteractionType.Interact, 1016215u, new Vector3(-279.71313f, -156.87129f, 766.9946f), 401) + num2++; + span249[num2] = new QuestStep(EInteractionType.Interact, 1016215u, new Vector3(-279.71313f, -156.87129f, 766.9946f), 401) { Fly = true }; obj185.Steps = list249; reference190 = obj185; - ref QuestSequence reference191 = ref span90[2]; + num++; + ref QuestSequence reference191 = ref span247[num]; QuestSequence obj186 = new QuestSequence { Sequence = 2 @@ -133438,26 +160786,31 @@ public static class AssemblyQuestLoader num2 = 2; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span92 = CollectionsMarshal.AsSpan(list250); - span92[0] = new QuestStep(EInteractionType.Interact, 2006702u, new Vector3(270.8933f, -114.21387f, 395.2544f), 401) + Span span250 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span250[index2] = new QuestStep(EInteractionType.Interact, 2006702u, new Vector3(270.8933f, -114.21387f, 395.2544f), 401) { Fly = true }; - span92[1] = new QuestStep(EInteractionType.Interact, 2006703u, new Vector3(504.1123f, -101.335205f, 360.58594f), 401) + index2++; + span250[index2] = new QuestStep(EInteractionType.Interact, 2006703u, new Vector3(504.1123f, -101.335205f, 360.58594f), 401) { Fly = true }; obj186.Steps = list250; reference191 = obj186; - ref QuestSequence reference192 = ref span90[3]; + num++; + ref QuestSequence reference192 = ref span247[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + Span span251 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span251[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -133483,13 +160836,16 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - CollectionsMarshal.AsSpan(list252)[0] = "plogon_enjoyer"; + Span span252 = CollectionsMarshal.AsSpan(list252); + index = 0; + span252[index] = "plogon_enjoyer"; questRoot29.Author = list252; - num = 5; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - Span span93 = CollectionsMarshal.AsSpan(list253); - ref QuestSequence reference193 = ref span93[0]; + index = 5; + List list253 = new List(index); + CollectionsMarshal.SetCount(list253, index); + Span span253 = CollectionsMarshal.AsSpan(list253); + num = 0; + ref QuestSequence reference193 = ref span253[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 @@ -133497,41 +160853,54 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + Span span254 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span254[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj188.Steps = list254; reference193 = obj188; - ref QuestSequence reference194 = ref span93[1]; + num++; + ref QuestSequence reference194 = ref span253[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - Span span94 = CollectionsMarshal.AsSpan(list255); - ref QuestStep reference195 = ref span94[0]; + index2 = 2; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span255 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + ref QuestStep reference195 = ref span255[num2]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 2006667u, new Vector3(-792.59937f, -58.365784f, 188.06738f), 401) { Fly = true }; - num3 = 6; - List> list256 = new List>(num3); - CollectionsMarshal.SetCount(list256, num3); - Span> span95 = CollectionsMarshal.AsSpan(list256); - span95[0] = null; - span95[1] = null; - ref List reference196 = ref span95[2]; + index3 = 6; + List> list256 = new List>(index3); + CollectionsMarshal.SetCount(list256, index3); + Span> span256 = CollectionsMarshal.AsSpan(list256); + num3 = 0; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + ref List reference196 = ref span256[num3]; int num4 = 1; List list257 = new List(num4); CollectionsMarshal.SetCount(list257, num4); - CollectionsMarshal.AsSpan(list257)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span257 = CollectionsMarshal.AsSpan(list257); + int index4 = 0; + span257[index4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference196 = list257; - span95[3] = null; - span95[4] = null; - span95[5] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = null; obj190.RequiredQuestVariables = list256; reference195 = obj190; - ref QuestStep reference197 = ref span94[1]; + num2++; + ref QuestStep reference197 = ref span255[num2]; QuestStep obj191 = new QuestStep(EInteractionType.Interact, 2006761u, new Vector3(-759.4568f, -61.905884f, 140.21509f), 401) { Fly = true @@ -133539,23 +160908,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list258 = new List>(num3); CollectionsMarshal.SetCount(list258, num3); - Span> span96 = CollectionsMarshal.AsSpan(list258); - span96[0] = null; - span96[1] = null; - ref List reference198 = ref span96[2]; - num4 = 1; - List list259 = new List(num4); - CollectionsMarshal.SetCount(list259, num4); - CollectionsMarshal.AsSpan(list259)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span> span258 = CollectionsMarshal.AsSpan(list258); + index3 = 0; + span258[index3] = null; + index3++; + span258[index3] = null; + index3++; + ref List reference198 = ref span258[index3]; + index4 = 1; + List list259 = new List(index4); + CollectionsMarshal.SetCount(list259, index4); + Span span259 = CollectionsMarshal.AsSpan(list259); + num4 = 0; + span259[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference198 = list259; - span96[3] = null; - span96[4] = null; - span96[5] = null; + index3++; + span258[index3] = null; + index3++; + span258[index3] = null; + index3++; + span258[index3] = null; obj191.RequiredQuestVariables = list258; reference197 = obj191; obj189.Steps = list255; reference194 = obj189; - ref QuestSequence reference199 = ref span93[2]; + num++; + ref QuestSequence reference199 = ref span253[num]; QuestSequence obj192 = new QuestSequence { Sequence = 2 @@ -133563,52 +160941,68 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list260)[0]; + Span span260 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + ref QuestStep reference200 = ref span260[index2]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, 2006666u, new Vector3(-627.863f, -59.372925f, -162.12714f), 401) { Fly = true, ItemId = 2001941u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - CollectionsMarshal.AsSpan(list261)[0] = 5238u; + index3 = 1; + List list261 = new List(index3); + CollectionsMarshal.SetCount(list261, index3); + Span span261 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span261[num3] = 5238u; obj193.KillEnemyDataIds = list261; num3 = 6; List> list262 = new List>(num3); CollectionsMarshal.SetCount(list262, num3); - Span> span97 = CollectionsMarshal.AsSpan(list262); - span97[0] = null; - ref List reference201 = ref span97[1]; + Span> span262 = CollectionsMarshal.AsSpan(list262); + index3 = 0; + span262[index3] = null; + index3++; + ref List reference201 = ref span262[index3]; num4 = 1; List list263 = new List(num4); CollectionsMarshal.SetCount(list263, num4); - CollectionsMarshal.AsSpan(list263)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + Span span263 = CollectionsMarshal.AsSpan(list263); + index4 = 0; + span263[index4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference201 = list263; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = null; + index3++; + span262[index3] = null; + index3++; + span262[index3] = null; + index3++; + span262[index3] = null; + index3++; + span262[index3] = null; obj193.RequiredQuestVariables = list262; reference200 = obj193; obj192.Steps = list260; reference199 = obj192; - ref QuestSequence reference202 = ref span93[3]; + num++; + ref QuestSequence reference202 = ref span253[num]; QuestSequence obj194 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1012068u, new Vector3(-597.0398f, -51.05185f, -387.0451f), 401) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.Interact, 1012068u, new Vector3(-597.0398f, -51.05185f, -387.0451f), 401) { Fly = true }; obj194.Steps = list264; reference202 = obj194; - ref QuestSequence reference203 = ref span93[4]; + num++; + ref QuestSequence reference203 = ref span253[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue @@ -133616,7 +161010,9 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span265[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true }; @@ -133629,24 +161025,30 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "AnimaMachinae"; + Span span266 = CollectionsMarshal.AsSpan(list266); + index = 0; + span266[index] = "AnimaMachinae"; questRoot30.Author = list266; - num = 4; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span98 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference204 = ref span98[0]; + index = 4; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + Span span267 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference204 = ref span267[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + Span span268 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span268[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj196.Steps = list268; reference204 = obj196; - ref QuestSequence reference205 = ref span98[1]; + num++; + ref QuestSequence reference205 = ref span267[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 @@ -133654,37 +161056,48 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401); + Span span269 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span269[index2] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401); obj197.Steps = list269; reference205 = obj197; - ref QuestSequence reference206 = ref span98[2]; + num++; + ref QuestSequence reference206 = ref span267[num]; QuestSequence obj198 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - Span span99 = CollectionsMarshal.AsSpan(list270); - ref QuestStep reference207 = ref span99[0]; + index2 = 6; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + Span span270 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + ref QuestStep reference207 = ref span270[num2]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 2006705u, new Vector3(-356.1914f, -153.21588f, 246.23486f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; - num3 = 6; - List list271 = new List(num3); - CollectionsMarshal.SetCount(list271, num3); - Span span100 = CollectionsMarshal.AsSpan(list271); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + index3 = 6; + List list271 = new List(index3); + CollectionsMarshal.SetCount(list271, index3); + Span span271 = CollectionsMarshal.AsSpan(list271); + num3 = 0; + span271[num3] = null; + num3++; + span271[num3] = null; + num3++; + span271[num3] = null; + num3++; + span271[num3] = null; + num3++; + span271[num3] = null; + num3++; + span271[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); obj199.CompletionQuestVariablesFlags = list271; reference207 = obj199; - ref QuestStep reference208 = ref span99[1]; + num2++; + ref QuestStep reference208 = ref span270[num2]; QuestStep obj200 = new QuestStep(EInteractionType.Interact, 2006706u, new Vector3(-292.34766f, -142.2904f, 325.91736f), 401) { Fly = true @@ -133692,30 +161105,44 @@ public static class AssemblyQuestLoader num3 = 6; List list272 = new List(num3); CollectionsMarshal.SetCount(list272, num3); - Span span101 = CollectionsMarshal.AsSpan(list272); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + Span span272 = CollectionsMarshal.AsSpan(list272); + index3 = 0; + span272[index3] = null; + index3++; + span272[index3] = null; + index3++; + span272[index3] = null; + index3++; + span272[index3] = null; + index3++; + span272[index3] = null; + index3++; + span272[index3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); obj200.CompletionQuestVariablesFlags = list272; reference208 = obj200; - ref QuestStep reference209 = ref span99[2]; + num2++; + ref QuestStep reference209 = ref span270[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2006704u, new Vector3(-281.11694f, -133.13501f, 345.2964f), 401); - num3 = 6; - List list273 = new List(num3); - CollectionsMarshal.SetCount(list273, num3); - Span span102 = CollectionsMarshal.AsSpan(list273); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + index3 = 6; + List list273 = new List(index3); + CollectionsMarshal.SetCount(list273, index3); + Span span273 = CollectionsMarshal.AsSpan(list273); + num3 = 0; + span273[num3] = null; + num3++; + span273[num3] = null; + num3++; + span273[num3] = null; + num3++; + span273[num3] = null; + num3++; + span273[num3] = null; + num3++; + span273[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list273; reference209 = questStep6; - ref QuestStep reference210 = ref span99[3]; + num2++; + ref QuestStep reference210 = ref span270[num2]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 2006670u, new Vector3(165.85034f, -86.13721f, 415.94556f), 401) { Fly = true @@ -133723,39 +161150,54 @@ public static class AssemblyQuestLoader num3 = 6; List list274 = new List(num3); CollectionsMarshal.SetCount(list274, num3); - Span span103 = CollectionsMarshal.AsSpan(list274); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span274 = CollectionsMarshal.AsSpan(list274); + index3 = 0; + span274[index3] = null; + index3++; + span274[index3] = null; + index3++; + span274[index3] = null; + index3++; + span274[index3] = null; + index3++; + span274[index3] = null; + index3++; + span274[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj201.CompletionQuestVariablesFlags = list274; reference210 = obj201; - ref QuestStep reference211 = ref span99[4]; + num2++; + ref QuestStep reference211 = ref span270[num2]; QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2006669u, new Vector3(282.88696f, -82.26141f, 366.07922f), 401) { Fly = true }; - num3 = 6; - List list275 = new List(num3); - CollectionsMarshal.SetCount(list275, num3); - Span span104 = CollectionsMarshal.AsSpan(list275); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list275 = new List(index3); + CollectionsMarshal.SetCount(list275, index3); + Span span275 = CollectionsMarshal.AsSpan(list275); + num3 = 0; + span275[num3] = null; + num3++; + span275[num3] = null; + num3++; + span275[num3] = null; + num3++; + span275[num3] = null; + num3++; + span275[num3] = null; + num3++; + span275[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj202.CompletionQuestVariablesFlags = list275; reference211 = obj202; - span99[5] = new QuestStep(EInteractionType.Interact, 2006671u, new Vector3(129.8695f, -92.17981f, 293.11047f), 401) + num2++; + span270[num2] = new QuestStep(EInteractionType.Interact, 2006671u, new Vector3(129.8695f, -92.17981f, 293.11047f), 401) { Fly = true }; obj198.Steps = list270; reference206 = obj198; - ref QuestSequence reference212 = ref span98[3]; + num++; + ref QuestSequence reference212 = ref span267[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -133763,7 +161205,9 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) + Span span276 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span276[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -133789,24 +161233,30 @@ public static class AssemblyQuestLoader num = 1; List list277 = new List(num); CollectionsMarshal.SetCount(list277, num); - CollectionsMarshal.AsSpan(list277)[0] = "plogon_enjoyer"; + Span span277 = CollectionsMarshal.AsSpan(list277); + index = 0; + span277[index] = "plogon_enjoyer"; questRoot31.Author = list277; - num = 5; - List list278 = new List(num); - CollectionsMarshal.SetCount(list278, num); - Span span105 = CollectionsMarshal.AsSpan(list278); - ref QuestSequence reference213 = ref span105[0]; + index = 5; + List list278 = new List(index); + CollectionsMarshal.SetCount(list278, index); + Span span278 = CollectionsMarshal.AsSpan(list278); + num = 0; + ref QuestSequence reference213 = ref span278[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + Span span279 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span279[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj204.Steps = list279; reference213 = obj204; - ref QuestSequence reference214 = ref span105[1]; + num++; + ref QuestSequence reference214 = ref span278[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -133814,19 +161264,23 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401); + Span span280 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span280[index2] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401); obj205.Steps = list280; reference214 = obj205; - ref QuestSequence reference215 = ref span105[2]; + num++; + ref QuestSequence reference215 = ref span278[num]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - Span span106 = CollectionsMarshal.AsSpan(list281); - span106[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + index2 = 2; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + Span span281 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span281[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { StopDistance = 3f, Fly = true, @@ -133843,13 +161297,15 @@ public static class AssemblyQuestLoader } } }; - span106[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + num2++; + span281[num2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { Fly = true }; obj206.Steps = list281; reference215 = obj206; - ref QuestSequence reference216 = ref span105[3]; + num++; + ref QuestSequence reference216 = ref span278[num]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -133857,12 +161313,14 @@ public static class AssemblyQuestLoader num2 = 4; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span107 = CollectionsMarshal.AsSpan(list282); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-850.9607f, 2.3374987f, -234.1339f), 401) + Span span282 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span282[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-850.9607f, 2.3374987f, -234.1339f), 401) { Fly = true }; - ref QuestStep reference217 = ref span107[1]; + index2++; + ref QuestStep reference217 = ref span282[index2]; QuestStep obj208 = new QuestStep(EInteractionType.Action, 1016222u, new Vector3(-853.8186f, 7.7667847f, -223.92621f), 401) { Fly = true, @@ -133871,49 +161329,66 @@ public static class AssemblyQuestLoader num3 = 6; List list283 = new List(num3); CollectionsMarshal.SetCount(list283, num3); - Span span108 = CollectionsMarshal.AsSpan(list283); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span283 = CollectionsMarshal.AsSpan(list283); + index3 = 0; + span283[index3] = null; + index3++; + span283[index3] = null; + index3++; + span283[index3] = null; + index3++; + span283[index3] = null; + index3++; + span283[index3] = null; + index3++; + span283[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj208.CompletionQuestVariablesFlags = list283; reference217 = obj208; - ref QuestStep reference218 = ref span107[2]; + index2++; + ref QuestStep reference218 = ref span282[index2]; QuestStep obj209 = new QuestStep(EInteractionType.Action, 1016221u, new Vector3(-576.40955f, -51.59082f, -543.8773f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; - num3 = 6; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - Span span109 = CollectionsMarshal.AsSpan(list284); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list284 = new List(index3); + CollectionsMarshal.SetCount(list284, index3); + Span span284 = CollectionsMarshal.AsSpan(list284); + num3 = 0; + span284[num3] = null; + num3++; + span284[num3] = null; + num3++; + span284[num3] = null; + num3++; + span284[num3] = null; + num3++; + span284[num3] = null; + num3++; + span284[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj209.CompletionQuestVariablesFlags = list284; reference218 = obj209; - span107[3] = new QuestStep(EInteractionType.Action, 1016220u, new Vector3(-455.7718f, -20.828613f, -610.8644f), 401) + index2++; + span282[index2] = new QuestStep(EInteractionType.Action, 1016220u, new Vector3(-455.7718f, -20.828613f, -610.8644f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj207.Steps = list282; reference216 = obj207; - ref QuestSequence reference219 = ref span105[4]; + num++; + ref QuestSequence reference219 = ref span278[num]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span285 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span285[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; @@ -133926,13 +161401,16 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "plogon_enjoyer"; + Span span286 = CollectionsMarshal.AsSpan(list286); + index = 0; + span286[index] = "plogon_enjoyer"; questRoot32.Author = list286; - num = 5; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span110 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference220 = ref span110[0]; + index = 5; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + Span span287 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference220 = ref span287[num]; QuestSequence obj211 = new QuestSequence { Sequence = 0 @@ -133940,24 +161418,30 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + Span span288 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span288[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj211.Steps = list288; reference220 = obj211; - ref QuestSequence reference221 = ref span110[1]; + num++; + ref QuestSequence reference221 = ref span287[num]; QuestSequence obj212 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + Span span289 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span289[num2] = new QuestStep(EInteractionType.Interact, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) { Fly = true }; obj212.Steps = list289; reference221 = obj212; - ref QuestSequence reference222 = ref span110[2]; + num++; + ref QuestSequence reference222 = ref span287[num]; QuestSequence obj213 = new QuestSequence { Sequence = 2 @@ -133965,16 +161449,19 @@ public static class AssemblyQuestLoader num2 = 3; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - Span span111 = CollectionsMarshal.AsSpan(list290); - span111[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-834.9571f, -130.33038f, -386.03116f), 401) + Span span290 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span290[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-834.9571f, -130.33038f, -386.03116f), 401) { Fly = true }; - span111[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(833.7674f, -97.81962f, -735.3544f), 401) + index2++; + span290[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(833.7674f, -97.81962f, -735.3544f), 401) { Fly = true }; - ref QuestStep reference223 = ref span111[2]; + index2++; + ref QuestStep reference223 = ref span290[index2]; QuestStep obj214 = new QuestStep(EInteractionType.Combat, 1016223u, new Vector3(834.37854f, -97.83405f, -738.18567f), 401) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -133982,23 +161469,29 @@ public static class AssemblyQuestLoader num3 = 1; List list291 = new List(num3); CollectionsMarshal.SetCount(list291, num3); - CollectionsMarshal.AsSpan(list291)[0] = 5239u; + Span span291 = CollectionsMarshal.AsSpan(list291); + index3 = 0; + span291[index3] = 5239u; obj214.KillEnemyDataIds = list291; reference223 = obj214; obj213.Steps = list290; reference222 = obj213; - ref QuestSequence reference224 = ref span110[3]; + num++; + ref QuestSequence reference224 = ref span287[num]; QuestSequence obj215 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 1016223u, new Vector3(834.37854f, -97.83405f, -738.18567f), 401); + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + Span span292 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span292[num2] = new QuestStep(EInteractionType.Interact, 1016223u, new Vector3(834.37854f, -97.83405f, -738.18567f), 401); obj215.Steps = list292; reference224 = obj215; - ref QuestSequence reference225 = ref span110[4]; + num++; + ref QuestSequence reference225 = ref span287[num]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue @@ -134006,7 +161499,9 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) + Span span293 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span293[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -134032,24 +161527,30 @@ public static class AssemblyQuestLoader num = 1; List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - CollectionsMarshal.AsSpan(list294)[0] = "plogon_enjoyer"; + Span span294 = CollectionsMarshal.AsSpan(list294); + index = 0; + span294[index] = "plogon_enjoyer"; questRoot33.Author = list294; - num = 5; - List list295 = new List(num); - CollectionsMarshal.SetCount(list295, num); - Span span112 = CollectionsMarshal.AsSpan(list295); - ref QuestSequence reference226 = ref span112[0]; + index = 5; + List list295 = new List(index); + CollectionsMarshal.SetCount(list295, index); + Span span295 = CollectionsMarshal.AsSpan(list295); + num = 0; + ref QuestSequence reference226 = ref span295[num]; QuestSequence obj217 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span296 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span296[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj217.Steps = list296; reference226 = obj217; - ref QuestSequence reference227 = ref span112[1]; + num++; + ref QuestSequence reference227 = ref span295[num]; QuestSequence obj218 = new QuestSequence { Sequence = 1 @@ -134057,22 +161558,26 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) + Span span297 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span297[index2] = new QuestStep(EInteractionType.Interact, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) { Fly = true }; obj218.Steps = list297; reference227 = obj218; - ref QuestSequence reference228 = ref span112[2]; + num++; + ref QuestSequence reference228 = ref span295[num]; QuestSequence obj219 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - Span span113 = CollectionsMarshal.AsSpan(list298); - span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + index2 = 2; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + Span span298 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span298[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { StopDistance = 3f, Fly = true, @@ -134089,13 +161594,15 @@ public static class AssemblyQuestLoader } } }; - span113[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + num2++; + span298[num2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { Fly = true }; obj219.Steps = list298; reference228 = obj219; - ref QuestSequence reference229 = ref span112[3]; + num++; + ref QuestSequence reference229 = ref span295[num]; QuestSequence obj220 = new QuestSequence { Sequence = 3 @@ -134103,28 +161610,33 @@ public static class AssemblyQuestLoader num2 = 2; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - Span span114 = CollectionsMarshal.AsSpan(list299); - span114[0] = new QuestStep(EInteractionType.Action, 1016227u, new Vector3(473.1975f, -98.03464f, -527.7333f), 401) + Span span299 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span299[index2] = new QuestStep(EInteractionType.Action, 1016227u, new Vector3(473.1975f, -98.03464f, -527.7333f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; - span114[1] = new QuestStep(EInteractionType.Action, 1016226u, new Vector3(710.9331f, -98.032555f, -741.0239f), 401) + index2++; + span299[index2] = new QuestStep(EInteractionType.Action, 1016226u, new Vector3(710.9331f, -98.032555f, -741.0239f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj220.Steps = list299; reference229 = obj220; - ref QuestSequence reference230 = ref span112[4]; + num++; + ref QuestSequence reference230 = ref span295[num]; QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + Span span300 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span300[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; @@ -134137,13 +161649,16 @@ public static class AssemblyQuestLoader num = 1; List list301 = new List(num); CollectionsMarshal.SetCount(list301, num); - CollectionsMarshal.AsSpan(list301)[0] = "plogon_enjoyer"; + Span span301 = CollectionsMarshal.AsSpan(list301); + index = 0; + span301[index] = "plogon_enjoyer"; questRoot34.Author = list301; - num = 6; - List list302 = new List(num); - CollectionsMarshal.SetCount(list302, num); - Span span115 = CollectionsMarshal.AsSpan(list302); - ref QuestSequence reference231 = ref span115[0]; + index = 6; + List list302 = new List(index); + CollectionsMarshal.SetCount(list302, index); + Span span302 = CollectionsMarshal.AsSpan(list302); + num = 0; + ref QuestSequence reference231 = ref span302[num]; QuestSequence obj222 = new QuestSequence { Sequence = 0 @@ -134151,24 +161666,30 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + Span span303 = CollectionsMarshal.AsSpan(list303); + index2 = 0; + span303[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj222.Steps = list303; reference231 = obj222; - ref QuestSequence reference232 = ref span115[1]; + num++; + ref QuestSequence reference232 = ref span302[num]; QuestSequence obj223 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + index2 = 1; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + Span span304 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + span304[num2] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true }; obj223.Steps = list304; reference232 = obj223; - ref QuestSequence reference233 = ref span115[2]; + num++; + ref QuestSequence reference233 = ref span302[num]; QuestSequence obj224 = new QuestSequence { Sequence = 2 @@ -134176,30 +161697,40 @@ public static class AssemblyQuestLoader num2 = 2; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span116 = CollectionsMarshal.AsSpan(list305); - ref QuestStep reference234 = ref span116[0]; + Span span305 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + ref QuestStep reference234 = ref span305[index2]; QuestStep obj225 = new QuestStep(EInteractionType.Interact, 2006676u, new Vector3(-717.0062f, -13.901062f, -101.487854f), 401) { Fly = true }; - num3 = 6; - List> list306 = new List>(num3); - CollectionsMarshal.SetCount(list306, num3); - Span> span117 = CollectionsMarshal.AsSpan(list306); - span117[0] = null; - span117[1] = null; - ref List reference235 = ref span117[2]; - num4 = 1; - List list307 = new List(num4); - CollectionsMarshal.SetCount(list307, num4); - CollectionsMarshal.AsSpan(list307)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list306 = new List>(index3); + CollectionsMarshal.SetCount(list306, index3); + Span> span306 = CollectionsMarshal.AsSpan(list306); + num3 = 0; + span306[num3] = null; + num3++; + span306[num3] = null; + num3++; + ref List reference235 = ref span306[num3]; + index4 = 1; + List list307 = new List(index4); + CollectionsMarshal.SetCount(list307, index4); + Span span307 = CollectionsMarshal.AsSpan(list307); + num4 = 0; + span307[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference235 = list307; - span117[3] = null; - span117[4] = null; - span117[5] = null; + num3++; + span306[num3] = null; + num3++; + span306[num3] = null; + num3++; + span306[num3] = null; obj225.RequiredQuestVariables = list306; reference234 = obj225; - ref QuestStep reference236 = ref span116[1]; + index2++; + ref QuestStep reference236 = ref span305[index2]; QuestStep obj226 = new QuestStep(EInteractionType.Interact, 2006762u, new Vector3(-781.52136f, -13.931519f, -114.30542f), 401) { Fly = true @@ -134207,46 +161738,60 @@ public static class AssemblyQuestLoader num3 = 6; List> list308 = new List>(num3); CollectionsMarshal.SetCount(list308, num3); - Span> span118 = CollectionsMarshal.AsSpan(list308); - span118[0] = null; - span118[1] = null; - ref List reference237 = ref span118[2]; + Span> span308 = CollectionsMarshal.AsSpan(list308); + index3 = 0; + span308[index3] = null; + index3++; + span308[index3] = null; + index3++; + ref List reference237 = ref span308[index3]; num4 = 1; List list309 = new List(num4); CollectionsMarshal.SetCount(list309, num4); - CollectionsMarshal.AsSpan(list309)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span309 = CollectionsMarshal.AsSpan(list309); + index4 = 0; + span309[index4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference237 = list309; - span118[3] = null; - span118[4] = null; - span118[5] = null; + index3++; + span308[index3] = null; + index3++; + span308[index3] = null; + index3++; + span308[index3] = null; obj226.RequiredQuestVariables = list308; reference236 = obj226; obj224.Steps = list305; reference233 = obj224; - ref QuestSequence reference238 = ref span115[3]; + num++; + ref QuestSequence reference238 = ref span302[num]; QuestSequence obj227 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list310)[0]; + index2 = 1; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + Span span310 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + ref QuestStep reference239 = ref span310[num2]; QuestStep obj228 = new QuestStep(EInteractionType.Combat, 2006675u, new Vector3(-642.298f, -207.29382f, 211.10852f), 401) { Fly = true, ItemId = 2001912u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list311 = new List(num3); - CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = 5240u; + index3 = 1; + List list311 = new List(index3); + CollectionsMarshal.SetCount(list311, index3); + Span span311 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span311[num3] = 5240u; obj228.KillEnemyDataIds = list311; reference239 = obj228; obj227.Steps = list310; reference238 = obj227; - ref QuestSequence reference240 = ref span115[4]; + num++; + ref QuestSequence reference240 = ref span302[num]; QuestSequence obj229 = new QuestSequence { Sequence = 4 @@ -134254,22 +161799,27 @@ public static class AssemblyQuestLoader num2 = 1; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Interact, 1012054u, new Vector3(-640.1007f, -119.56208f, 469.5963f), 401) + Span span312 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + span312[index2] = new QuestStep(EInteractionType.Interact, 1012054u, new Vector3(-640.1007f, -119.56208f, 469.5963f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj229.Steps = list312; reference240 = obj229; - ref QuestSequence reference241 = ref span115[5]; + num++; + ref QuestSequence reference241 = ref span302[num]; QuestSequence obj230 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + index2 = 1; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + Span span313 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span313[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -134295,13 +161845,16 @@ public static class AssemblyQuestLoader num = 1; List list314 = new List(num); CollectionsMarshal.SetCount(list314, num); - CollectionsMarshal.AsSpan(list314)[0] = "plogon_enjoyer"; + Span span314 = CollectionsMarshal.AsSpan(list314); + index = 0; + span314[index] = "plogon_enjoyer"; questRoot35.Author = list314; - num = 4; - List list315 = new List(num); - CollectionsMarshal.SetCount(list315, num); - Span span119 = CollectionsMarshal.AsSpan(list315); - ref QuestSequence reference242 = ref span119[0]; + index = 4; + List list315 = new List(index); + CollectionsMarshal.SetCount(list315, index); + Span span315 = CollectionsMarshal.AsSpan(list315); + num = 0; + ref QuestSequence reference242 = ref span315[num]; QuestSequence obj231 = new QuestSequence { Sequence = 0 @@ -134309,24 +161862,30 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + Span span316 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span316[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj231.Steps = list316; reference242 = obj231; - ref QuestSequence reference243 = ref span119[1]; + num++; + ref QuestSequence reference243 = ref span315[num]; QuestSequence obj232 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + Span span317 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span317[num2] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true }; obj232.Steps = list317; reference243 = obj232; - ref QuestSequence reference244 = ref span119[2]; + num++; + ref QuestSequence reference244 = ref span315[num]; QuestSequence obj233 = new QuestSequence { Sequence = 2 @@ -134334,8 +161893,9 @@ public static class AssemblyQuestLoader num2 = 2; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - Span span120 = CollectionsMarshal.AsSpan(list318); - ref QuestStep reference245 = ref span120[0]; + Span span318 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + ref QuestStep reference245 = ref span318[index2]; QuestStep obj234 = new QuestStep(EInteractionType.Combat, 2006677u, new Vector3(117.96753f, 12.25293f, -412.92444f), 401) { Fly = true, @@ -134344,32 +161904,40 @@ public static class AssemblyQuestLoader num3 = 1; List list319 = new List(num3); CollectionsMarshal.SetCount(list319, num3); - CollectionsMarshal.AsSpan(list319)[0] = 5241u; + Span span319 = CollectionsMarshal.AsSpan(list319); + index3 = 0; + span319[index3] = 5241u; obj234.KillEnemyDataIds = list319; reference245 = obj234; - ref QuestStep reference246 = ref span120[1]; + index2++; + ref QuestStep reference246 = ref span318[index2]; QuestStep obj235 = new QuestStep(EInteractionType.Combat, 2006678u, new Vector3(160.54016f, 11.856201f, -507.65244f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - CollectionsMarshal.AsSpan(list320)[0] = 5241u; + index3 = 1; + List list320 = new List(index3); + CollectionsMarshal.SetCount(list320, index3); + Span span320 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span320[num3] = 5241u; obj235.KillEnemyDataIds = list320; reference246 = obj235; obj233.Steps = list318; reference244 = obj233; - ref QuestSequence reference247 = ref span119[3]; + num++; + ref QuestSequence reference247 = ref span315[num]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + index2 = 1; + List list321 = new List(index2); + CollectionsMarshal.SetCount(list321, index2); + Span span321 = CollectionsMarshal.AsSpan(list321); + num2 = 0; + span321[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -134395,13 +161963,16 @@ public static class AssemblyQuestLoader num = 1; List list322 = new List(num); CollectionsMarshal.SetCount(list322, num); - CollectionsMarshal.AsSpan(list322)[0] = "plogon_enjoyer"; + Span span322 = CollectionsMarshal.AsSpan(list322); + index = 0; + span322[index] = "plogon_enjoyer"; questRoot36.Author = list322; - num = 5; - List list323 = new List(num); - CollectionsMarshal.SetCount(list323, num); - Span span121 = CollectionsMarshal.AsSpan(list323); - ref QuestSequence reference248 = ref span121[0]; + index = 5; + List list323 = new List(index); + CollectionsMarshal.SetCount(list323, index); + Span span323 = CollectionsMarshal.AsSpan(list323); + num = 0; + ref QuestSequence reference248 = ref span323[num]; QuestSequence obj237 = new QuestSequence { Sequence = 0 @@ -134409,24 +161980,30 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + Span span324 = CollectionsMarshal.AsSpan(list324); + index2 = 0; + span324[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj237.Steps = list324; reference248 = obj237; - ref QuestSequence reference249 = ref span121[1]; + num++; + ref QuestSequence reference249 = ref span323[num]; QuestSequence obj238 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + index2 = 1; + List list325 = new List(index2); + CollectionsMarshal.SetCount(list325, index2); + Span span325 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + span325[num2] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true }; obj238.Steps = list325; reference249 = obj238; - ref QuestSequence reference250 = ref span121[2]; + num++; + ref QuestSequence reference250 = ref span323[num]; QuestSequence obj239 = new QuestSequence { Sequence = 2 @@ -134434,7 +162011,9 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - ref QuestStep reference251 = ref CollectionsMarshal.AsSpan(list326)[0]; + Span span326 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + ref QuestStep reference251 = ref span326[index2]; QuestStep obj240 = new QuestStep(EInteractionType.Combat, 2006679u, new Vector3(-401.175f, -202.65509f, 432.39478f), 401) { Fly = true, @@ -134444,34 +162023,42 @@ public static class AssemblyQuestLoader num3 = 1; List list327 = new List(num3); CollectionsMarshal.SetCount(list327, num3); - CollectionsMarshal.AsSpan(list327)[0] = 5242u; + Span span327 = CollectionsMarshal.AsSpan(list327); + index3 = 0; + span327[index3] = 5242u; obj240.KillEnemyDataIds = list327; reference251 = obj240; obj239.Steps = list326; reference250 = obj239; - ref QuestSequence reference252 = ref span121[3]; + num++; + ref QuestSequence reference252 = ref span323[num]; QuestSequence obj241 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - ref QuestStep reference253 = ref CollectionsMarshal.AsSpan(list328)[0]; + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + Span span328 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + ref QuestStep reference253 = ref span328[num2]; QuestStep obj242 = new QuestStep(EInteractionType.Combat, 2006680u, new Vector3(-280.8728f, -202.01422f, 390.7987f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list329 = new List(num3); - CollectionsMarshal.SetCount(list329, num3); - CollectionsMarshal.AsSpan(list329)[0] = 5242u; + index3 = 1; + List list329 = new List(index3); + CollectionsMarshal.SetCount(list329, index3); + Span span329 = CollectionsMarshal.AsSpan(list329); + num3 = 0; + span329[num3] = 5242u; obj242.KillEnemyDataIds = list329; reference253 = obj242; obj241.Steps = list328; reference252 = obj241; - ref QuestSequence reference254 = ref span121[4]; + num++; + ref QuestSequence reference254 = ref span323[num]; QuestSequence obj243 = new QuestSequence { Sequence = byte.MaxValue @@ -134479,7 +162066,9 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + Span span330 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span330[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -134505,24 +162094,30 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "plogon_enjoyer"; + Span span331 = CollectionsMarshal.AsSpan(list331); + index = 0; + span331[index] = "plogon_enjoyer"; questRoot37.Author = list331; - num = 4; - List list332 = new List(num); - CollectionsMarshal.SetCount(list332, num); - Span span122 = CollectionsMarshal.AsSpan(list332); - ref QuestSequence reference255 = ref span122[0]; + index = 4; + List list332 = new List(index); + CollectionsMarshal.SetCount(list332, index); + Span span332 = CollectionsMarshal.AsSpan(list332); + num = 0; + ref QuestSequence reference255 = ref span332[num]; QuestSequence obj244 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list333 = new List(index2); + CollectionsMarshal.SetCount(list333, index2); + Span span333 = CollectionsMarshal.AsSpan(list333); + num2 = 0; + span333[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj244.Steps = list333; reference255 = obj244; - ref QuestSequence reference256 = ref span122[1]; + num++; + ref QuestSequence reference256 = ref span332[num]; QuestSequence obj245 = new QuestSequence { Sequence = 1 @@ -134530,40 +162125,48 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + Span span334 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span334[index2] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true }; obj245.Steps = list334; reference256 = obj245; - ref QuestSequence reference257 = ref span122[2]; + num++; + ref QuestSequence reference257 = ref span332[num]; QuestSequence obj246 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - Span span123 = CollectionsMarshal.AsSpan(list335); - span123[0] = new QuestStep(EInteractionType.Interact, 2006682u, new Vector3(25.711426f, 150.46924f, -133.56226f), 401) + index2 = 4; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + Span span335 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + span335[num2] = new QuestStep(EInteractionType.Interact, 2006682u, new Vector3(25.711426f, 150.46924f, -133.56226f), 401) { Fly = true }; - span123[1] = new QuestStep(EInteractionType.Interact, 2006681u, new Vector3(237.07935f, 163.95813f, -46.433228f), 401) + num2++; + span335[num2] = new QuestStep(EInteractionType.Interact, 2006681u, new Vector3(237.07935f, 163.95813f, -46.433228f), 401) { Fly = true }; - span123[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(237.02913f, 169.13622f, -44.168194f), 401) + num2++; + span335[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(237.02913f, 169.13622f, -44.168194f), 401) { Fly = true }; - span123[3] = new QuestStep(EInteractionType.Interact, 2006683u, new Vector3(332.5094f, 106.79785f, -68.2536f), 401) + num2++; + span335[num2] = new QuestStep(EInteractionType.Interact, 2006683u, new Vector3(332.5094f, 106.79785f, -68.2536f), 401) { Fly = true }; obj246.Steps = list335; reference257 = obj246; - ref QuestSequence reference258 = ref span122[3]; + num++; + ref QuestSequence reference258 = ref span332[num]; QuestSequence obj247 = new QuestSequence { Sequence = byte.MaxValue @@ -134571,8 +162174,9 @@ public static class AssemblyQuestLoader num2 = 2; List list336 = new List(num2); CollectionsMarshal.SetCount(list336, num2); - Span span124 = CollectionsMarshal.AsSpan(list336); - span124[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.41415f, 110.85538f, -34.527588f), 401) + Span span336 = CollectionsMarshal.AsSpan(list336); + index2 = 0; + span336[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.41415f, 110.85538f, -34.527588f), 401) { SkipConditions = new SkipConditions { @@ -134587,7 +162191,8 @@ public static class AssemblyQuestLoader } } }; - span124[1] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + index2++; + span336[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -134613,24 +162218,30 @@ public static class AssemblyQuestLoader num = 1; List list337 = new List(num); CollectionsMarshal.SetCount(list337, num); - CollectionsMarshal.AsSpan(list337)[0] = "plogon_enjoyer"; + Span span337 = CollectionsMarshal.AsSpan(list337); + index = 0; + span337[index] = "plogon_enjoyer"; questRoot38.Author = list337; - num = 8; - List list338 = new List(num); - CollectionsMarshal.SetCount(list338, num); - Span span125 = CollectionsMarshal.AsSpan(list338); - ref QuestSequence reference259 = ref span125[0]; + index = 8; + List list338 = new List(index); + CollectionsMarshal.SetCount(list338, index); + Span span338 = CollectionsMarshal.AsSpan(list338); + num = 0; + ref QuestSequence reference259 = ref span338[num]; QuestSequence obj248 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list339 = new List(num2); - CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list339 = new List(index2); + CollectionsMarshal.SetCount(list339, index2); + Span span339 = CollectionsMarshal.AsSpan(list339); + num2 = 0; + span339[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj248.Steps = list339; reference259 = obj248; - ref QuestSequence reference260 = ref span125[1]; + num++; + ref QuestSequence reference260 = ref span338[num]; QuestSequence obj249 = new QuestSequence { Sequence = 1 @@ -134638,27 +162249,33 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + Span span340 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + span340[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj249.Steps = list340; reference260 = obj249; - ref QuestSequence reference261 = ref span125[2]; + num++; + ref QuestSequence reference261 = ref span338[num]; QuestSequence obj250 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1016228u, new Vector3(-547.7836f, -57.646603f, -549.76733f), 401) + index2 = 1; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + Span span341 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span341[num2] = new QuestStep(EInteractionType.Interact, 1016228u, new Vector3(-547.7836f, -57.646603f, -549.76733f), 401) { Fly = true }; obj250.Steps = list341; reference261 = obj250; - ref QuestSequence reference262 = ref span125[3]; + num++; + ref QuestSequence reference262 = ref span338[num]; QuestSequence obj251 = new QuestSequence { Sequence = 3 @@ -134666,7 +162283,9 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - ref QuestStep reference263 = ref CollectionsMarshal.AsSpan(list342)[0]; + Span span342 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + ref QuestStep reference263 = ref span342[index2]; QuestStep obj252 = new QuestStep(EInteractionType.Combat, 2006684u, new Vector3(-357.29004f, -56.565247f, -598.9929f), 401) { Fly = true, @@ -134675,26 +162294,32 @@ public static class AssemblyQuestLoader num3 = 1; List list343 = new List(num3); CollectionsMarshal.SetCount(list343, num3); - CollectionsMarshal.AsSpan(list343)[0] = 5243u; + Span span343 = CollectionsMarshal.AsSpan(list343); + index3 = 0; + span343[index3] = 5243u; obj252.KillEnemyDataIds = list343; reference263 = obj252; obj251.Steps = list342; reference262 = obj251; - ref QuestSequence reference264 = ref span125[4]; + num++; + ref QuestSequence reference264 = ref span338[num]; QuestSequence obj253 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1016229u, new Vector3(-369.31415f, -54.222214f, -605.3407f), 401) + index2 = 1; + List list344 = new List(index2); + CollectionsMarshal.SetCount(list344, index2); + Span span344 = CollectionsMarshal.AsSpan(list344); + num2 = 0; + span344[num2] = new QuestStep(EInteractionType.Interact, 1016229u, new Vector3(-369.31415f, -54.222214f, -605.3407f), 401) { Fly = true }; obj253.Steps = list344; reference264 = obj253; - ref QuestSequence reference265 = ref span125[5]; + num++; + ref QuestSequence reference265 = ref span338[num]; QuestSequence obj254 = new QuestSequence { Sequence = 5 @@ -134702,35 +162327,43 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - ref QuestStep reference266 = ref CollectionsMarshal.AsSpan(list345)[0]; + Span span345 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + ref QuestStep reference266 = ref span345[index2]; QuestStep obj255 = new QuestStep(EInteractionType.Combat, 2006685u, new Vector3(-107.07257f, -13.5043335f, -655.6039f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list346 = new List(num3); - CollectionsMarshal.SetCount(list346, num3); - CollectionsMarshal.AsSpan(list346)[0] = 5243u; + index3 = 1; + List list346 = new List(index3); + CollectionsMarshal.SetCount(list346, index3); + Span span346 = CollectionsMarshal.AsSpan(list346); + num3 = 0; + span346[num3] = 5243u; obj255.KillEnemyDataIds = list346; reference266 = obj255; obj254.Steps = list345; reference265 = obj254; - ref QuestSequence reference267 = ref span125[6]; + num++; + ref QuestSequence reference267 = ref span338[num]; QuestSequence obj256 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1016230u, new Vector3(-114.85474f, -13.978999f, -652.8878f), 401) + index2 = 1; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + Span span347 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + span347[num2] = new QuestStep(EInteractionType.Interact, 1016230u, new Vector3(-114.85474f, -13.978999f, -652.8878f), 401) { Fly = true }; obj256.Steps = list347; reference267 = obj256; - ref QuestSequence reference268 = ref span125[7]; + num++; + ref QuestSequence reference268 = ref span338[num]; QuestSequence obj257 = new QuestSequence { Sequence = byte.MaxValue @@ -134738,7 +162371,9 @@ public static class AssemblyQuestLoader num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + Span span348 = CollectionsMarshal.AsSpan(list348); + index2 = 0; + span348[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -134764,24 +162399,30 @@ public static class AssemblyQuestLoader num = 1; List list349 = new List(num); CollectionsMarshal.SetCount(list349, num); - CollectionsMarshal.AsSpan(list349)[0] = "plogon_enjoyer"; + Span span349 = CollectionsMarshal.AsSpan(list349); + index = 0; + span349[index] = "plogon_enjoyer"; questRoot39.Author = list349; - num = 4; - List list350 = new List(num); - CollectionsMarshal.SetCount(list350, num); - Span span126 = CollectionsMarshal.AsSpan(list350); - ref QuestSequence reference269 = ref span126[0]; + index = 4; + List list350 = new List(index); + CollectionsMarshal.SetCount(list350, index); + Span span350 = CollectionsMarshal.AsSpan(list350); + num = 0; + ref QuestSequence reference269 = ref span350[num]; QuestSequence obj258 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + Span span351 = CollectionsMarshal.AsSpan(list351); + num2 = 0; + span351[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj258.Steps = list351; reference269 = obj258; - ref QuestSequence reference270 = ref span126[1]; + num++; + ref QuestSequence reference270 = ref span350[num]; QuestSequence obj259 = new QuestSequence { Sequence = 1 @@ -134789,22 +162430,26 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + Span span352 = CollectionsMarshal.AsSpan(list352); + index2 = 0; + span352[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj259.Steps = list352; reference270 = obj259; - ref QuestSequence reference271 = ref span126[2]; + num++; + ref QuestSequence reference271 = ref span350[num]; QuestSequence obj260 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - Span span127 = CollectionsMarshal.AsSpan(list353); - ref QuestStep reference272 = ref span127[0]; + index2 = 2; + List list353 = new List(index2); + CollectionsMarshal.SetCount(list353, index2); + Span span353 = CollectionsMarshal.AsSpan(list353); + num2 = 0; + ref QuestStep reference272 = ref span353[num2]; QuestStep obj261 = new QuestStep(EInteractionType.Combat, 2006707u, new Vector3(72.92273f, -88.39557f, 428.82422f), 401) { Fly = true, @@ -134814,24 +162459,30 @@ public static class AssemblyQuestLoader num3 = 1; List list354 = new List(num3); CollectionsMarshal.SetCount(list354, num3); - CollectionsMarshal.AsSpan(list354)[0] = 5244u; + Span span354 = CollectionsMarshal.AsSpan(list354); + index3 = 0; + span354[index3] = 5244u; obj261.KillEnemyDataIds = list354; reference272 = obj261; - ref QuestStep reference273 = ref span127[1]; + num2++; + ref QuestStep reference273 = ref span353[num2]; QuestStep obj262 = new QuestStep(EInteractionType.Combat, 2006686u, new Vector3(167.58984f, -97.428955f, 455.71057f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list355 = new List(num3); - CollectionsMarshal.SetCount(list355, num3); - CollectionsMarshal.AsSpan(list355)[0] = 5244u; + index3 = 1; + List list355 = new List(index3); + CollectionsMarshal.SetCount(list355, index3); + Span span355 = CollectionsMarshal.AsSpan(list355); + num3 = 0; + span355[num3] = 5244u; obj262.KillEnemyDataIds = list355; reference273 = obj262; obj260.Steps = list353; reference271 = obj260; - ref QuestSequence reference274 = ref span126[3]; + num++; + ref QuestSequence reference274 = ref span350[num]; QuestSequence obj263 = new QuestSequence { Sequence = byte.MaxValue @@ -134839,7 +162490,9 @@ public static class AssemblyQuestLoader num2 = 1; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + Span span356 = CollectionsMarshal.AsSpan(list356); + index2 = 0; + span356[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -134865,24 +162518,30 @@ public static class AssemblyQuestLoader num = 1; List list357 = new List(num); CollectionsMarshal.SetCount(list357, num); - CollectionsMarshal.AsSpan(list357)[0] = "plogon_enjoyer"; + Span span357 = CollectionsMarshal.AsSpan(list357); + index = 0; + span357[index] = "plogon_enjoyer"; questRoot40.Author = list357; - num = 4; - List list358 = new List(num); - CollectionsMarshal.SetCount(list358, num); - Span span128 = CollectionsMarshal.AsSpan(list358); - ref QuestSequence reference275 = ref span128[0]; + index = 4; + List list358 = new List(index); + CollectionsMarshal.SetCount(list358, index); + Span span358 = CollectionsMarshal.AsSpan(list358); + num = 0; + ref QuestSequence reference275 = ref span358[num]; QuestSequence obj264 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list359 = new List(num2); - CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list359 = new List(index2); + CollectionsMarshal.SetCount(list359, index2); + Span span359 = CollectionsMarshal.AsSpan(list359); + num2 = 0; + span359[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj264.Steps = list359; reference275 = obj264; - ref QuestSequence reference276 = ref span128[1]; + num++; + ref QuestSequence reference276 = ref span358[num]; QuestSequence obj265 = new QuestSequence { Sequence = 1 @@ -134890,22 +162549,26 @@ public static class AssemblyQuestLoader num2 = 1; List list360 = new List(num2); CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + Span span360 = CollectionsMarshal.AsSpan(list360); + index2 = 0; + span360[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj265.Steps = list360; reference276 = obj265; - ref QuestSequence reference277 = ref span128[2]; + num++; + ref QuestSequence reference277 = ref span358[num]; QuestSequence obj266 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list361 = new List(num2); - CollectionsMarshal.SetCount(list361, num2); - Span span129 = CollectionsMarshal.AsSpan(list361); - ref QuestStep reference278 = ref span129[0]; + index2 = 4; + List list361 = new List(index2); + CollectionsMarshal.SetCount(list361, index2); + Span span361 = CollectionsMarshal.AsSpan(list361); + num2 = 0; + ref QuestStep reference278 = ref span361[num2]; QuestStep obj267 = new QuestStep(EInteractionType.Combat, 2006690u, new Vector3(-857.6333f, 4.6539917f, -218.67706f), 401) { Fly = true, @@ -134914,21 +162577,30 @@ public static class AssemblyQuestLoader num3 = 1; List list362 = new List(num3); CollectionsMarshal.SetCount(list362, num3); - CollectionsMarshal.AsSpan(list362)[0] = 5246u; + Span span362 = CollectionsMarshal.AsSpan(list362); + index3 = 0; + span362[index3] = 5246u; obj267.KillEnemyDataIds = list362; - num3 = 6; - List list363 = new List(num3); - CollectionsMarshal.SetCount(list363, num3); - Span span130 = CollectionsMarshal.AsSpan(list363); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list363 = new List(index3); + CollectionsMarshal.SetCount(list363, index3); + Span span363 = CollectionsMarshal.AsSpan(list363); + num3 = 0; + span363[num3] = null; + num3++; + span363[num3] = null; + num3++; + span363[num3] = null; + num3++; + span363[num3] = null; + num3++; + span363[num3] = null; + num3++; + span363[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj267.CompletionQuestVariablesFlags = list363; reference278 = obj267; - ref QuestStep reference279 = ref span129[1]; + num2++; + ref QuestStep reference279 = ref span361[num2]; QuestStep obj268 = new QuestStep(EInteractionType.Interact, 2006689u, new Vector3(-830.3197f, -14.358765f, -131.82275f), 401) { Fly = true @@ -134936,33 +162608,47 @@ public static class AssemblyQuestLoader num3 = 6; List list364 = new List(num3); CollectionsMarshal.SetCount(list364, num3); - Span span131 = CollectionsMarshal.AsSpan(list364); - span131[0] = null; - span131[1] = null; - span131[2] = null; - span131[3] = null; - span131[4] = null; - span131[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span364 = CollectionsMarshal.AsSpan(list364); + index3 = 0; + span364[index3] = null; + index3++; + span364[index3] = null; + index3++; + span364[index3] = null; + index3++; + span364[index3] = null; + index3++; + span364[index3] = null; + index3++; + span364[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj268.CompletionQuestVariablesFlags = list364; reference279 = obj268; - ref QuestStep reference280 = ref span129[2]; + num2++; + ref QuestStep reference280 = ref span361[num2]; QuestStep obj269 = new QuestStep(EInteractionType.Interact, 2006687u, new Vector3(-553.97876f, -58.42682f, -271.10706f), 401) { Fly = true }; - num3 = 6; - List list365 = new List(num3); - CollectionsMarshal.SetCount(list365, num3); - Span span132 = CollectionsMarshal.AsSpan(list365); - span132[0] = null; - span132[1] = null; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list365 = new List(index3); + CollectionsMarshal.SetCount(list365, index3); + Span span365 = CollectionsMarshal.AsSpan(list365); + num3 = 0; + span365[num3] = null; + num3++; + span365[num3] = null; + num3++; + span365[num3] = null; + num3++; + span365[num3] = null; + num3++; + span365[num3] = null; + num3++; + span365[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj269.CompletionQuestVariablesFlags = list365; reference280 = obj269; - ref QuestStep reference281 = ref span129[3]; + num2++; + ref QuestStep reference281 = ref span361[num2]; QuestStep obj270 = new QuestStep(EInteractionType.Interact, 2006688u, new Vector3(-715.1446f, -58.640503f, -342.30566f), 401) { Fly = true @@ -134970,18 +162656,25 @@ public static class AssemblyQuestLoader num3 = 6; List list366 = new List(num3); CollectionsMarshal.SetCount(list366, num3); - Span span133 = CollectionsMarshal.AsSpan(list366); - span133[0] = null; - span133[1] = null; - span133[2] = null; - span133[3] = null; - span133[4] = null; - span133[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span366 = CollectionsMarshal.AsSpan(list366); + index3 = 0; + span366[index3] = null; + index3++; + span366[index3] = null; + index3++; + span366[index3] = null; + index3++; + span366[index3] = null; + index3++; + span366[index3] = null; + index3++; + span366[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj270.CompletionQuestVariablesFlags = list366; reference281 = obj270; obj266.Steps = list361; reference277 = obj266; - ref QuestSequence reference282 = ref span128[3]; + num++; + ref QuestSequence reference282 = ref span358[num]; QuestSequence obj271 = new QuestSequence { Sequence = byte.MaxValue @@ -134989,7 +162682,9 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + Span span367 = CollectionsMarshal.AsSpan(list367); + index2 = 0; + span367[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; @@ -135002,24 +162697,30 @@ public static class AssemblyQuestLoader num = 1; List list368 = new List(num); CollectionsMarshal.SetCount(list368, num); - CollectionsMarshal.AsSpan(list368)[0] = "plogon_enjoyer"; + Span span368 = CollectionsMarshal.AsSpan(list368); + index = 0; + span368[index] = "plogon_enjoyer"; questRoot41.Author = list368; - num = 4; - List list369 = new List(num); - CollectionsMarshal.SetCount(list369, num); - Span span134 = CollectionsMarshal.AsSpan(list369); - ref QuestSequence reference283 = ref span134[0]; + index = 4; + List list369 = new List(index); + CollectionsMarshal.SetCount(list369, index); + Span span369 = CollectionsMarshal.AsSpan(list369); + num = 0; + ref QuestSequence reference283 = ref span369[num]; QuestSequence obj272 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + Span span370 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + span370[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj272.Steps = list370; reference283 = obj272; - ref QuestSequence reference284 = ref span134[1]; + num++; + ref QuestSequence reference284 = ref span369[num]; QuestSequence obj273 = new QuestSequence { Sequence = 1 @@ -135027,41 +162728,52 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + Span span371 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + span371[index2] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true }; obj273.Steps = list371; reference284 = obj273; - ref QuestSequence reference285 = ref span134[2]; + num++; + ref QuestSequence reference285 = ref span369[num]; QuestSequence obj274 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list372 = new List(num2); - CollectionsMarshal.SetCount(list372, num2); - Span span135 = CollectionsMarshal.AsSpan(list372); - ref QuestStep reference286 = ref span135[0]; + index2 = 5; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + Span span372 = CollectionsMarshal.AsSpan(list372); + num2 = 0; + ref QuestStep reference286 = ref span372[num2]; QuestStep obj275 = new QuestStep(EInteractionType.UseItem, 1016375u, new Vector3(-627.89355f, -149.95285f, 480.15564f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop, ItemId = 2001934u }; - num3 = 6; - List list373 = new List(num3); - CollectionsMarshal.SetCount(list373, num3); - Span span136 = CollectionsMarshal.AsSpan(list373); - span136[0] = null; - span136[1] = null; - span136[2] = null; - span136[3] = null; - span136[4] = null; - span136[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list373 = new List(index3); + CollectionsMarshal.SetCount(list373, index3); + Span span373 = CollectionsMarshal.AsSpan(list373); + num3 = 0; + span373[num3] = null; + num3++; + span373[num3] = null; + num3++; + span373[num3] = null; + num3++; + span373[num3] = null; + num3++; + span373[num3] = null; + num3++; + span373[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj275.CompletionQuestVariablesFlags = list373; reference286 = obj275; - ref QuestStep reference287 = ref span135[1]; + num2++; + ref QuestStep reference287 = ref span372[num2]; QuestStep obj276 = new QuestStep(EInteractionType.UseItem, 1016232u, new Vector3(-452.10956f, -187.396f, 734.18774f), 401) { Fly = true, @@ -135070,34 +162782,48 @@ public static class AssemblyQuestLoader num3 = 6; List list374 = new List(num3); CollectionsMarshal.SetCount(list374, num3); - Span span137 = CollectionsMarshal.AsSpan(list374); - span137[0] = null; - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = null; - span137[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span374 = CollectionsMarshal.AsSpan(list374); + index3 = 0; + span374[index3] = null; + index3++; + span374[index3] = null; + index3++; + span374[index3] = null; + index3++; + span374[index3] = null; + index3++; + span374[index3] = null; + index3++; + span374[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj276.CompletionQuestVariablesFlags = list374; reference287 = obj276; - ref QuestStep reference288 = ref span135[2]; + num2++; + ref QuestStep reference288 = ref span372[num2]; QuestStep obj277 = new QuestStep(EInteractionType.UseItem, 1016233u, new Vector3(-359.823f, -184.95448f, 796.71924f), 401) { Fly = true, ItemId = 2001934u }; - num3 = 6; - List list375 = new List(num3); - CollectionsMarshal.SetCount(list375, num3); - Span span138 = CollectionsMarshal.AsSpan(list375); - span138[0] = null; - span138[1] = null; - span138[2] = null; - span138[3] = null; - span138[4] = null; - span138[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list375 = new List(index3); + CollectionsMarshal.SetCount(list375, index3); + Span span375 = CollectionsMarshal.AsSpan(list375); + num3 = 0; + span375[num3] = null; + num3++; + span375[num3] = null; + num3++; + span375[num3] = null; + num3++; + span375[num3] = null; + num3++; + span375[num3] = null; + num3++; + span375[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj277.CompletionQuestVariablesFlags = list375; reference288 = obj277; - ref QuestStep reference289 = ref span135[3]; + num2++; + ref QuestStep reference289 = ref span372[num2]; QuestStep obj278 = new QuestStep(EInteractionType.UseItem, 1016374u, new Vector3(-343.00757f, -161.8661f, 770.01587f), 401) { Fly = true, @@ -135106,36 +162832,50 @@ public static class AssemblyQuestLoader num3 = 6; List list376 = new List(num3); CollectionsMarshal.SetCount(list376, num3); - Span span139 = CollectionsMarshal.AsSpan(list376); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span376 = CollectionsMarshal.AsSpan(list376); + index3 = 0; + span376[index3] = null; + index3++; + span376[index3] = null; + index3++; + span376[index3] = null; + index3++; + span376[index3] = null; + index3++; + span376[index3] = null; + index3++; + span376[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj278.CompletionQuestVariablesFlags = list376; reference289 = obj278; - ref QuestStep reference290 = ref span135[4]; + num2++; + ref QuestStep reference290 = ref span372[num2]; QuestStep obj279 = new QuestStep(EInteractionType.UseItem, 1016231u, new Vector3(-333.79114f, -184.97446f, 625.1162f), 401) { Fly = true, ItemId = 2001934u }; - num3 = 6; - List list377 = new List(num3); - CollectionsMarshal.SetCount(list377, num3); - Span span140 = CollectionsMarshal.AsSpan(list377); - span140[0] = null; - span140[1] = null; - span140[2] = null; - span140[3] = null; - span140[4] = null; - span140[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list377 = new List(index3); + CollectionsMarshal.SetCount(list377, index3); + Span span377 = CollectionsMarshal.AsSpan(list377); + num3 = 0; + span377[num3] = null; + num3++; + span377[num3] = null; + num3++; + span377[num3] = null; + num3++; + span377[num3] = null; + num3++; + span377[num3] = null; + num3++; + span377[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj279.CompletionQuestVariablesFlags = list377; reference290 = obj279; obj274.Steps = list372; reference285 = obj274; - ref QuestSequence reference291 = ref span134[3]; + num++; + ref QuestSequence reference291 = ref span369[num]; QuestSequence obj280 = new QuestSequence { Sequence = byte.MaxValue @@ -135143,7 +162883,9 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + Span span378 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + span378[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -135169,24 +162911,30 @@ public static class AssemblyQuestLoader num = 1; List list379 = new List(num); CollectionsMarshal.SetCount(list379, num); - CollectionsMarshal.AsSpan(list379)[0] = "plogon_enjoyer"; + Span span379 = CollectionsMarshal.AsSpan(list379); + index = 0; + span379[index] = "plogon_enjoyer"; questRoot42.Author = list379; - num = 4; - List list380 = new List(num); - CollectionsMarshal.SetCount(list380, num); - Span span141 = CollectionsMarshal.AsSpan(list380); - ref QuestSequence reference292 = ref span141[0]; + index = 4; + List list380 = new List(index); + CollectionsMarshal.SetCount(list380, index); + Span span380 = CollectionsMarshal.AsSpan(list380); + num = 0; + ref QuestSequence reference292 = ref span380[num]; QuestSequence obj281 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + Span span381 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span381[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj281.Steps = list381; reference292 = obj281; - ref QuestSequence reference293 = ref span141[1]; + num++; + ref QuestSequence reference293 = ref span380[num]; QuestSequence obj282 = new QuestSequence { Sequence = 1 @@ -135194,22 +162942,26 @@ public static class AssemblyQuestLoader num2 = 1; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - CollectionsMarshal.AsSpan(list382)[0] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) + Span span382 = CollectionsMarshal.AsSpan(list382); + index2 = 0; + span382[index2] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) { Fly = true }; obj282.Steps = list382; reference293 = obj282; - ref QuestSequence reference294 = ref span141[2]; + num++; + ref QuestSequence reference294 = ref span380[num]; QuestSequence obj283 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list383 = new List(num2); - CollectionsMarshal.SetCount(list383, num2); - Span span142 = CollectionsMarshal.AsSpan(list383); - ref QuestStep reference295 = ref span142[0]; + index2 = 4; + List list383 = new List(index2); + CollectionsMarshal.SetCount(list383, index2); + Span span383 = CollectionsMarshal.AsSpan(list383); + num2 = 0; + ref QuestStep reference295 = ref span383[num2]; QuestStep obj284 = new QuestStep(EInteractionType.Interact, 1016508u, new Vector3(-261.8601f, -132.0669f, 388.66248f), 401) { Fly = true, @@ -135218,33 +162970,47 @@ public static class AssemblyQuestLoader num3 = 6; List list384 = new List(num3); CollectionsMarshal.SetCount(list384, num3); - Span span143 = CollectionsMarshal.AsSpan(list384); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span384 = CollectionsMarshal.AsSpan(list384); + index3 = 0; + span384[index3] = null; + index3++; + span384[index3] = null; + index3++; + span384[index3] = null; + index3++; + span384[index3] = null; + index3++; + span384[index3] = null; + index3++; + span384[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj284.CompletionQuestVariablesFlags = list384; reference295 = obj284; - ref QuestStep reference296 = ref span142[1]; + num2++; + ref QuestStep reference296 = ref span383[num2]; QuestStep obj285 = new QuestStep(EInteractionType.Interact, 1016235u, new Vector3(-229.48047f, -129.59497f, 418.44812f), 401) { Fly = true }; - num3 = 6; - List list385 = new List(num3); - CollectionsMarshal.SetCount(list385, num3); - Span span144 = CollectionsMarshal.AsSpan(list385); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list385 = new List(index3); + CollectionsMarshal.SetCount(list385, index3); + Span span385 = CollectionsMarshal.AsSpan(list385); + num3 = 0; + span385[num3] = null; + num3++; + span385[num3] = null; + num3++; + span385[num3] = null; + num3++; + span385[num3] = null; + num3++; + span385[num3] = null; + num3++; + span385[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj285.CompletionQuestVariablesFlags = list385; reference296 = obj285; - ref QuestStep reference297 = ref span142[2]; + num2++; + ref QuestStep reference297 = ref span383[num2]; QuestStep obj286 = new QuestStep(EInteractionType.Interact, 1016236u, new Vector3(-196.2768f, -131.82275f, 333.9436f), 401) { Fly = true @@ -135252,35 +163018,49 @@ public static class AssemblyQuestLoader num3 = 6; List list386 = new List(num3); CollectionsMarshal.SetCount(list386, num3); - Span span145 = CollectionsMarshal.AsSpan(list386); - span145[0] = null; - span145[1] = null; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span386 = CollectionsMarshal.AsSpan(list386); + index3 = 0; + span386[index3] = null; + index3++; + span386[index3] = null; + index3++; + span386[index3] = null; + index3++; + span386[index3] = null; + index3++; + span386[index3] = null; + index3++; + span386[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj286.CompletionQuestVariablesFlags = list386; reference297 = obj286; - ref QuestStep reference298 = ref span142[3]; + num2++; + ref QuestStep reference298 = ref span383[num2]; QuestStep obj287 = new QuestStep(EInteractionType.Interact, 1016216u, new Vector3(-253.62024f, -130.38837f, 340.3219f), 401) { Fly = true }; - num3 = 6; - List list387 = new List(num3); - CollectionsMarshal.SetCount(list387, num3); - Span span146 = CollectionsMarshal.AsSpan(list387); - span146[0] = null; - span146[1] = null; - span146[2] = null; - span146[3] = null; - span146[4] = null; - span146[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list387 = new List(index3); + CollectionsMarshal.SetCount(list387, index3); + Span span387 = CollectionsMarshal.AsSpan(list387); + num3 = 0; + span387[num3] = null; + num3++; + span387[num3] = null; + num3++; + span387[num3] = null; + num3++; + span387[num3] = null; + num3++; + span387[num3] = null; + num3++; + span387[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj287.CompletionQuestVariablesFlags = list387; reference298 = obj287; obj283.Steps = list383; reference294 = obj283; - ref QuestSequence reference299 = ref span141[3]; + num++; + ref QuestSequence reference299 = ref span380[num]; QuestSequence obj288 = new QuestSequence { Sequence = byte.MaxValue @@ -135288,7 +163068,9 @@ public static class AssemblyQuestLoader num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) + Span span388 = CollectionsMarshal.AsSpan(list388); + index2 = 0; + span388[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -135314,24 +163096,30 @@ public static class AssemblyQuestLoader num = 1; List list389 = new List(num); CollectionsMarshal.SetCount(list389, num); - CollectionsMarshal.AsSpan(list389)[0] = "plogon_enjoyer"; + Span span389 = CollectionsMarshal.AsSpan(list389); + index = 0; + span389[index] = "plogon_enjoyer"; questRoot43.Author = list389; - num = 4; - List list390 = new List(num); - CollectionsMarshal.SetCount(list390, num); - Span span147 = CollectionsMarshal.AsSpan(list390); - ref QuestSequence reference300 = ref span147[0]; + index = 4; + List list390 = new List(index); + CollectionsMarshal.SetCount(list390, index); + Span span390 = CollectionsMarshal.AsSpan(list390); + num = 0; + ref QuestSequence reference300 = ref span390[num]; QuestSequence obj289 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list391 = new List(num2); - CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list391 = new List(index2); + CollectionsMarshal.SetCount(list391, index2); + Span span391 = CollectionsMarshal.AsSpan(list391); + num2 = 0; + span391[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj289.Steps = list391; reference300 = obj289; - ref QuestSequence reference301 = ref span147[1]; + num++; + ref QuestSequence reference301 = ref span390[num]; QuestSequence obj290 = new QuestSequence { Sequence = 1 @@ -135339,37 +163127,44 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + Span span392 = CollectionsMarshal.AsSpan(list392); + index2 = 0; + span392[index2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { Fly = true }; obj290.Steps = list392; reference301 = obj290; - ref QuestSequence reference302 = ref span147[2]; + num++; + ref QuestSequence reference302 = ref span390[num]; QuestSequence obj291 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list393 = new List(num2); - CollectionsMarshal.SetCount(list393, num2); - Span span148 = CollectionsMarshal.AsSpan(list393); - span148[0] = new QuestStep(EInteractionType.Interact, 2006693u, new Vector3(-420.8286f, -185.8396f, 705.745f), 401) + index2 = 3; + List list393 = new List(index2); + CollectionsMarshal.SetCount(list393, index2); + Span span393 = CollectionsMarshal.AsSpan(list393); + num2 = 0; + span393[num2] = new QuestStep(EInteractionType.Interact, 2006693u, new Vector3(-420.8286f, -185.8396f, 705.745f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; - span148[1] = new QuestStep(EInteractionType.Interact, 2006692u, new Vector3(-300.49597f, -192.37054f, 638.5442f), 401) + num2++; + span393[num2] = new QuestStep(EInteractionType.Interact, 2006692u, new Vector3(-300.49597f, -192.37054f, 638.5442f), 401) { Fly = true }; - span148[2] = new QuestStep(EInteractionType.Interact, 2006691u, new Vector3(-244.73944f, -184.92413f, 687.4342f), 401) + num2++; + span393[num2] = new QuestStep(EInteractionType.Interact, 2006691u, new Vector3(-244.73944f, -184.92413f, 687.4342f), 401) { Fly = true }; obj291.Steps = list393; reference302 = obj291; - ref QuestSequence reference303 = ref span147[3]; + num++; + ref QuestSequence reference303 = ref span390[num]; QuestSequence obj292 = new QuestSequence { Sequence = byte.MaxValue @@ -135377,7 +163172,9 @@ public static class AssemblyQuestLoader num2 = 1; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + Span span394 = CollectionsMarshal.AsSpan(list394); + index2 = 0; + span394[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -135403,24 +163200,30 @@ public static class AssemblyQuestLoader num = 1; List list395 = new List(num); CollectionsMarshal.SetCount(list395, num); - CollectionsMarshal.AsSpan(list395)[0] = "plogon_enjoyer"; + Span span395 = CollectionsMarshal.AsSpan(list395); + index = 0; + span395[index] = "plogon_enjoyer"; questRoot44.Author = list395; - num = 5; - List list396 = new List(num); - CollectionsMarshal.SetCount(list396, num); - Span span149 = CollectionsMarshal.AsSpan(list396); - ref QuestSequence reference304 = ref span149[0]; + index = 5; + List list396 = new List(index); + CollectionsMarshal.SetCount(list396, index); + Span span396 = CollectionsMarshal.AsSpan(list396); + num = 0; + ref QuestSequence reference304 = ref span396[num]; QuestSequence obj293 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list397 = new List(num2); - CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list397 = new List(index2); + CollectionsMarshal.SetCount(list397, index2); + Span span397 = CollectionsMarshal.AsSpan(list397); + num2 = 0; + span397[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj293.Steps = list397; reference304 = obj293; - ref QuestSequence reference305 = ref span149[1]; + num++; + ref QuestSequence reference305 = ref span396[num]; QuestSequence obj294 = new QuestSequence { Sequence = 1 @@ -135428,28 +163231,34 @@ public static class AssemblyQuestLoader num2 = 1; List list398 = new List(num2); CollectionsMarshal.SetCount(list398, num2); - CollectionsMarshal.AsSpan(list398)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + Span span398 = CollectionsMarshal.AsSpan(list398); + index2 = 0; + span398[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj294.Steps = list398; reference305 = obj294; - ref QuestSequence reference306 = ref span149[2]; + num++; + ref QuestSequence reference306 = ref span396[num]; QuestSequence obj295 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - CollectionsMarshal.AsSpan(list399)[0] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + Span span399 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + span399[num2] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj295.Steps = list399; reference306 = obj295; - ref QuestSequence reference307 = ref span149[3]; + num++; + ref QuestSequence reference307 = ref span396[num]; QuestSequence obj296 = new QuestSequence { Sequence = 3 @@ -135457,30 +163266,36 @@ public static class AssemblyQuestLoader num2 = 3; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - Span span150 = CollectionsMarshal.AsSpan(list400); - span150[0] = new QuestStep(EInteractionType.Interact, 1016385u, new Vector3(-519.646f, -152.47815f, 280.38452f), 401) + Span span400 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span400[index2] = new QuestStep(EInteractionType.Interact, 1016385u, new Vector3(-519.646f, -152.47815f, 280.38452f), 401) { Fly = true }; - span150[1] = new QuestStep(EInteractionType.Interact, 1016377u, new Vector3(272.7854f, -114.24131f, 387.6859f), 401) + index2++; + span400[index2] = new QuestStep(EInteractionType.Interact, 1016377u, new Vector3(272.7854f, -114.24131f, 387.6859f), 401) { Fly = true }; - span150[2] = new QuestStep(EInteractionType.Interact, 1016376u, new Vector3(702.90686f, -126.03205f, 392.04993f), 401) + index2++; + span400[index2] = new QuestStep(EInteractionType.Interact, 1016376u, new Vector3(702.90686f, -126.03205f, 392.04993f), 401) { Fly = true }; obj296.Steps = list400; reference307 = obj296; - ref QuestSequence reference308 = ref span149[4]; + num++; + ref QuestSequence reference308 = ref span396[num]; QuestSequence obj297 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list401 = new List(num2); - CollectionsMarshal.SetCount(list401, num2); - CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + index2 = 1; + List list401 = new List(index2); + CollectionsMarshal.SetCount(list401, index2); + Span span401 = CollectionsMarshal.AsSpan(list401); + num2 = 0; + span401[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -135506,13 +163321,16 @@ public static class AssemblyQuestLoader num = 1; List list402 = new List(num); CollectionsMarshal.SetCount(list402, num); - CollectionsMarshal.AsSpan(list402)[0] = "plogon_enjoyer"; + Span span402 = CollectionsMarshal.AsSpan(list402); + index = 0; + span402[index] = "plogon_enjoyer"; questRoot45.Author = list402; - num = 5; - List list403 = new List(num); - CollectionsMarshal.SetCount(list403, num); - Span span151 = CollectionsMarshal.AsSpan(list403); - ref QuestSequence reference309 = ref span151[0]; + index = 5; + List list403 = new List(index); + CollectionsMarshal.SetCount(list403, index); + Span span403 = CollectionsMarshal.AsSpan(list403); + num = 0; + ref QuestSequence reference309 = ref span403[num]; QuestSequence obj298 = new QuestSequence { Sequence = 0 @@ -135520,25 +163338,31 @@ public static class AssemblyQuestLoader num2 = 1; List list404 = new List(num2); CollectionsMarshal.SetCount(list404, num2); - CollectionsMarshal.AsSpan(list404)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + Span span404 = CollectionsMarshal.AsSpan(list404); + index2 = 0; + span404[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj298.Steps = list404; reference309 = obj298; - ref QuestSequence reference310 = ref span151[1]; + num++; + ref QuestSequence reference310 = ref span403[num]; QuestSequence obj299 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list405 = new List(num2); - CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.Interact, 2006694u, new Vector3(-28.030884f, -136.98022f, 454.94763f), 401) + index2 = 1; + List list405 = new List(index2); + CollectionsMarshal.SetCount(list405, index2); + Span span405 = CollectionsMarshal.AsSpan(list405); + num2 = 0; + span405[num2] = new QuestStep(EInteractionType.Interact, 2006694u, new Vector3(-28.030884f, -136.98022f, 454.94763f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj299.Steps = list405; reference310 = obj299; - ref QuestSequence reference311 = ref span151[2]; + num++; + ref QuestSequence reference311 = ref span403[num]; QuestSequence obj300 = new QuestSequence { Sequence = 2 @@ -135546,24 +163370,30 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 2006699u, new Vector3(-15.182739f, -136.98022f, 458.33508f), 401); + Span span406 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + span406[index2] = new QuestStep(EInteractionType.Interact, 2006699u, new Vector3(-15.182739f, -136.98022f, 458.33508f), 401); obj300.Steps = list406; reference311 = obj300; - ref QuestSequence reference312 = ref span151[3]; + num++; + ref QuestSequence reference312 = ref span403[num]; QuestSequence obj301 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list407 = new List(num2); - CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.UseItem, 1016237u, new Vector3(-28.000305f, -137.77374f, 454.94763f), 401) + index2 = 1; + List list407 = new List(index2); + CollectionsMarshal.SetCount(list407, index2); + Span span407 = CollectionsMarshal.AsSpan(list407); + num2 = 0; + span407[num2] = new QuestStep(EInteractionType.UseItem, 1016237u, new Vector3(-28.000305f, -137.77374f, 454.94763f), 401) { ItemId = 2001935u }; obj301.Steps = list407; reference312 = obj301; - ref QuestSequence reference313 = ref span151[4]; + num++; + ref QuestSequence reference313 = ref span403[num]; QuestSequence obj302 = new QuestSequence { Sequence = byte.MaxValue @@ -135571,7 +163401,9 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + Span span408 = CollectionsMarshal.AsSpan(list408); + index2 = 0; + span408[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -135597,24 +163429,30 @@ public static class AssemblyQuestLoader num = 1; List list409 = new List(num); CollectionsMarshal.SetCount(list409, num); - CollectionsMarshal.AsSpan(list409)[0] = "plogon_enjoyer"; + Span span409 = CollectionsMarshal.AsSpan(list409); + index = 0; + span409[index] = "plogon_enjoyer"; questRoot46.Author = list409; - num = 4; - List list410 = new List(num); - CollectionsMarshal.SetCount(list410, num); - Span span152 = CollectionsMarshal.AsSpan(list410); - ref QuestSequence reference314 = ref span152[0]; + index = 4; + List list410 = new List(index); + CollectionsMarshal.SetCount(list410, index); + Span span410 = CollectionsMarshal.AsSpan(list410); + num = 0; + ref QuestSequence reference314 = ref span410[num]; QuestSequence obj303 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list411 = new List(num2); - CollectionsMarshal.SetCount(list411, num2); - CollectionsMarshal.AsSpan(list411)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list411 = new List(index2); + CollectionsMarshal.SetCount(list411, index2); + Span span411 = CollectionsMarshal.AsSpan(list411); + num2 = 0; + span411[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj303.Steps = list411; reference314 = obj303; - ref QuestSequence reference315 = ref span152[1]; + num++; + ref QuestSequence reference315 = ref span410[num]; QuestSequence obj304 = new QuestSequence { Sequence = 1 @@ -135622,47 +163460,56 @@ public static class AssemblyQuestLoader num2 = 1; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - CollectionsMarshal.AsSpan(list412)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + Span span412 = CollectionsMarshal.AsSpan(list412); + index2 = 0; + span412[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj304.Steps = list412; reference315 = obj304; - ref QuestSequence reference316 = ref span152[2]; + num++; + ref QuestSequence reference316 = ref span410[num]; QuestSequence obj305 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - Span span153 = CollectionsMarshal.AsSpan(list413); - span153[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(650.37317f, -41.15606f, -302.4378f), 401) + index2 = 5; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + Span span413 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + span413[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(650.37317f, -41.15606f, -302.4378f), 401) { Fly = true }; - span153[1] = new QuestStep(EInteractionType.Emote, 1016362u, new Vector3(647.57764f, -41.156067f, -301.47253f), 401) + num2++; + span413[num2] = new QuestStep(EInteractionType.Emote, 1016362u, new Vector3(647.57764f, -41.156067f, -301.47253f), 401) { Emote = EEmote.SundropDance }; - span153[2] = new QuestStep(EInteractionType.Emote, 1016365u, new Vector3(682.36804f, -11.396843f, -400.6256f), 401) + num2++; + span413[num2] = new QuestStep(EInteractionType.Emote, 1016365u, new Vector3(682.36804f, -11.396843f, -400.6256f), 401) { Fly = true, Emote = EEmote.SundropDance }; - span153[3] = new QuestStep(EInteractionType.Emote, 1016364u, new Vector3(799.9846f, -11.396843f, -416.98334f), 401) + num2++; + span413[num2] = new QuestStep(EInteractionType.Emote, 1016364u, new Vector3(799.9846f, -11.396843f, -416.98334f), 401) { Fly = true, Emote = EEmote.SundropDance }; - span153[4] = new QuestStep(EInteractionType.Emote, 1016363u, new Vector3(776.9131f, -39.97968f, -540.24567f), 401) + num2++; + span413[num2] = new QuestStep(EInteractionType.Emote, 1016363u, new Vector3(776.9131f, -39.97968f, -540.24567f), 401) { Fly = true, Emote = EEmote.SundropDance }; obj305.Steps = list413; reference316 = obj305; - ref QuestSequence reference317 = ref span152[3]; + num++; + ref QuestSequence reference317 = ref span410[num]; QuestSequence obj306 = new QuestSequence { Sequence = byte.MaxValue @@ -135670,7 +163517,9 @@ public static class AssemblyQuestLoader num2 = 1; List list414 = new List(num2); CollectionsMarshal.SetCount(list414, num2); - CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + Span span414 = CollectionsMarshal.AsSpan(list414); + index2 = 0; + span414[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -135696,24 +163545,30 @@ public static class AssemblyQuestLoader num = 1; List list415 = new List(num); CollectionsMarshal.SetCount(list415, num); - CollectionsMarshal.AsSpan(list415)[0] = "plogon_enjoyer"; + Span span415 = CollectionsMarshal.AsSpan(list415); + index = 0; + span415[index] = "plogon_enjoyer"; questRoot47.Author = list415; - num = 4; - List list416 = new List(num); - CollectionsMarshal.SetCount(list416, num); - Span span154 = CollectionsMarshal.AsSpan(list416); - ref QuestSequence reference318 = ref span154[0]; + index = 4; + List list416 = new List(index); + CollectionsMarshal.SetCount(list416, index); + Span span416 = CollectionsMarshal.AsSpan(list416); + num = 0; + ref QuestSequence reference318 = ref span416[num]; QuestSequence obj307 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list417 = new List(num2); - CollectionsMarshal.SetCount(list417, num2); - CollectionsMarshal.AsSpan(list417)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list417 = new List(index2); + CollectionsMarshal.SetCount(list417, index2); + Span span417 = CollectionsMarshal.AsSpan(list417); + num2 = 0; + span417[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj307.Steps = list417; reference318 = obj307; - ref QuestSequence reference319 = ref span154[1]; + num++; + ref QuestSequence reference319 = ref span416[num]; QuestSequence obj308 = new QuestSequence { Sequence = 1 @@ -135721,27 +163576,32 @@ public static class AssemblyQuestLoader num2 = 1; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - CollectionsMarshal.AsSpan(list418)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + Span span418 = CollectionsMarshal.AsSpan(list418); + index2 = 0; + span418[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj308.Steps = list418; reference319 = obj308; - ref QuestSequence reference320 = ref span154[2]; + num++; + ref QuestSequence reference320 = ref span416[num]; QuestSequence obj309 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list419 = new List(num2); - CollectionsMarshal.SetCount(list419, num2); - Span span155 = CollectionsMarshal.AsSpan(list419); - span155[0] = new QuestStep(EInteractionType.Emote, 1016241u, new Vector3(-182.94049f, 213.612f, 204.57764f), 401) + index2 = 4; + List list419 = new List(index2); + CollectionsMarshal.SetCount(list419, index2); + Span span419 = CollectionsMarshal.AsSpan(list419); + num2 = 0; + span419[num2] = new QuestStep(EInteractionType.Emote, 1016241u, new Vector3(-182.94049f, 213.612f, 204.57764f), 401) { Fly = true, Emote = EEmote.SundropDance }; - ref QuestStep reference321 = ref span155[1]; + num2++; + ref QuestStep reference321 = ref span419[num2]; QuestStep obj310 = new QuestStep(EInteractionType.Combat, null, new Vector3(-182.94049f, 213.612f, 204.57764f), 401) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -135749,23 +163609,28 @@ public static class AssemblyQuestLoader num3 = 1; List list420 = new List(num3); CollectionsMarshal.SetCount(list420, num3); - CollectionsMarshal.AsSpan(list420)[0] = 5235u; + Span span420 = CollectionsMarshal.AsSpan(list420); + index3 = 0; + span420[index3] = 5235u; obj310.KillEnemyDataIds = list420; obj310.CombatDelaySecondsAtStart = 0f; reference321 = obj310; - span155[2] = new QuestStep(EInteractionType.Emote, 1016239u, new Vector3(-64.683044f, 212.9267f, 101.33508f), 401) + num2++; + span419[num2] = new QuestStep(EInteractionType.Emote, 1016239u, new Vector3(-64.683044f, 212.9267f, 101.33508f), 401) { Fly = true, Emote = EEmote.SundropDance }; - span155[3] = new QuestStep(EInteractionType.Emote, 1016240u, new Vector3(233.23413f, 240.42369f, 118.30322f), 401) + num2++; + span419[num2] = new QuestStep(EInteractionType.Emote, 1016240u, new Vector3(233.23413f, 240.42369f, 118.30322f), 401) { Fly = true, Emote = EEmote.SundropDance }; obj309.Steps = list419; reference320 = obj309; - ref QuestSequence reference322 = ref span154[3]; + num++; + ref QuestSequence reference322 = ref span416[num]; QuestSequence obj311 = new QuestSequence { Sequence = byte.MaxValue @@ -135773,7 +163638,9 @@ public static class AssemblyQuestLoader num2 = 1; List list421 = new List(num2); CollectionsMarshal.SetCount(list421, num2); - CollectionsMarshal.AsSpan(list421)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + Span span421 = CollectionsMarshal.AsSpan(list421); + index2 = 0; + span421[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -135799,24 +163666,30 @@ public static class AssemblyQuestLoader num = 1; List list422 = new List(num); CollectionsMarshal.SetCount(list422, num); - CollectionsMarshal.AsSpan(list422)[0] = "plogon_enjoyer"; + Span span422 = CollectionsMarshal.AsSpan(list422); + index = 0; + span422[index] = "plogon_enjoyer"; questRoot48.Author = list422; - num = 6; - List list423 = new List(num); - CollectionsMarshal.SetCount(list423, num); - Span span156 = CollectionsMarshal.AsSpan(list423); - ref QuestSequence reference323 = ref span156[0]; + index = 6; + List list423 = new List(index); + CollectionsMarshal.SetCount(list423, index); + Span span423 = CollectionsMarshal.AsSpan(list423); + num = 0; + ref QuestSequence reference323 = ref span423[num]; QuestSequence obj312 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list424 = new List(num2); - CollectionsMarshal.SetCount(list424, num2); - CollectionsMarshal.AsSpan(list424)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + index2 = 1; + List list424 = new List(index2); + CollectionsMarshal.SetCount(list424, index2); + Span span424 = CollectionsMarshal.AsSpan(list424); + num2 = 0; + span424[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj312.Steps = list424; reference323 = obj312; - ref QuestSequence reference324 = ref span156[1]; + num++; + ref QuestSequence reference324 = ref span423[num]; QuestSequence obj313 = new QuestSequence { Sequence = 1 @@ -135824,27 +163697,33 @@ public static class AssemblyQuestLoader num2 = 1; List list425 = new List(num2); CollectionsMarshal.SetCount(list425, num2); - CollectionsMarshal.AsSpan(list425)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + Span span425 = CollectionsMarshal.AsSpan(list425); + index2 = 0; + span425[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj313.Steps = list425; reference324 = obj313; - ref QuestSequence reference325 = ref span156[2]; + num++; + ref QuestSequence reference325 = ref span423[num]; QuestSequence obj314 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list426 = new List(num2); - CollectionsMarshal.SetCount(list426, num2); - CollectionsMarshal.AsSpan(list426)[0] = new QuestStep(EInteractionType.Interact, 2006708u, new Vector3(-198.41309f, 93.55298f, -303.88342f), 401) + index2 = 1; + List list426 = new List(index2); + CollectionsMarshal.SetCount(list426, index2); + Span span426 = CollectionsMarshal.AsSpan(list426); + num2 = 0; + span426[num2] = new QuestStep(EInteractionType.Interact, 2006708u, new Vector3(-198.41309f, 93.55298f, -303.88342f), 401) { Fly = true }; obj314.Steps = list426; reference325 = obj314; - ref QuestSequence reference326 = ref span156[3]; + num++; + ref QuestSequence reference326 = ref span423[num]; QuestSequence obj315 = new QuestSequence { Sequence = 3 @@ -135852,28 +163731,34 @@ public static class AssemblyQuestLoader num2 = 1; List list427 = new List(num2); CollectionsMarshal.SetCount(list427, num2); - CollectionsMarshal.AsSpan(list427)[0] = new QuestStep(EInteractionType.UseItem, 2006695u, new Vector3(111.46704f, -84.55023f, 429.83142f), 401) + Span span427 = CollectionsMarshal.AsSpan(list427); + index2 = 0; + span427[index2] = new QuestStep(EInteractionType.UseItem, 2006695u, new Vector3(111.46704f, -84.55023f, 429.83142f), 401) { Fly = true, ItemId = 2001927u }; obj315.Steps = list427; reference326 = obj315; - ref QuestSequence reference327 = ref span156[4]; + num++; + ref QuestSequence reference327 = ref span423[num]; QuestSequence obj316 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list428 = new List(num2); - CollectionsMarshal.SetCount(list428, num2); - CollectionsMarshal.AsSpan(list428)[0] = new QuestStep(EInteractionType.Emote, 2006696u, new Vector3(111.436646f, -83.024414f, 428.85486f), 401) + index2 = 1; + List list428 = new List(index2); + CollectionsMarshal.SetCount(list428, index2); + Span span428 = CollectionsMarshal.AsSpan(list428); + num2 = 0; + span428[num2] = new QuestStep(EInteractionType.Emote, 2006696u, new Vector3(111.436646f, -83.024414f, 428.85486f), 401) { Emote = EEmote.SundropDance }; obj316.Steps = list428; reference327 = obj316; - ref QuestSequence reference328 = ref span156[5]; + num++; + ref QuestSequence reference328 = ref span423[num]; QuestSequence obj317 = new QuestSequence { Sequence = byte.MaxValue @@ -135881,7 +163766,9 @@ public static class AssemblyQuestLoader num2 = 1; List list429 = new List(num2); CollectionsMarshal.SetCount(list429, num2); - CollectionsMarshal.AsSpan(list429)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + Span span429 = CollectionsMarshal.AsSpan(list429); + index2 = 0; + span429[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -135911,13 +163798,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "plogon_enjoyer"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "plogon_enjoyer"; questRoot.Author = list; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 7; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -135925,24 +163815,30 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -135950,8 +163846,9 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { StopDistance = 3f, Fly = true, @@ -135968,28 +163865,33 @@ public static class AssemblyQuestLoader } } }; - span2[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + index2++; + span5[index2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Action, 1016242u, new Vector3(284.19922f, 28.574171f, -636.3775f), 401) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Action, 1016242u, new Vector3(284.19922f, 28.574171f, -636.3775f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -135997,29 +163899,35 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Action, 1016378u, new Vector3(338.4298f, 31.483738f, -562.1882f), 401) + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.Action, 1016378u, new Vector3(338.4298f, 31.483738f, -562.1882f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Action, 1016379u, new Vector3(501.27405f, 112.648964f, -182.97095f), 401) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.Action, 1016379u, new Vector3(501.27405f, 112.648964f, -182.97095f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[6]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue @@ -136027,7 +163935,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -136041,24 +163951,30 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "liza"; + Span span10 = CollectionsMarshal.AsSpan(list10); + index = 0; + span10[index] = "liza"; questRoot2.Author = list10; - num = 5; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - Span span3 = CollectionsMarshal.AsSpan(list11); - ref QuestSequence reference8 = ref span3[0]; + index = 5; + List list11 = new List(index); + CollectionsMarshal.SetCount(list11, index); + Span span11 = CollectionsMarshal.AsSpan(list11); + num = 0; + ref QuestSequence reference8 = ref span11[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016125u, new Vector3(146.16614f, -12.634914f, -27.420471f), 419); + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016125u, new Vector3(146.16614f, -12.634914f, -27.420471f), 419); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span3[1]; + num++; + ref QuestSequence reference9 = ref span11[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 @@ -136066,33 +163982,39 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span3[2]; + num++; + ref QuestSequence reference10 = ref span11[num]; QuestSequence obj10 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - Span span4 = CollectionsMarshal.AsSpan(list14); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-884.77277f, -36.27771f, 11.526271f), 401) + index2 = 2; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-884.77277f, -36.27771f, 11.526271f), 401) { Fly = true }; - span4[1] = new QuestStep(EInteractionType.Interact, 1016124u, new Vector3(-887.9072f, -36.68469f, 11.428955f), 401) + num2++; + span14[num2] = new QuestStep(EInteractionType.Interact, 1016124u, new Vector3(-887.9072f, -36.68469f, 11.428955f), 401) { StopDistance = 5f }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span3[3]; + num++; + ref QuestSequence reference11 = ref span11[num]; QuestSequence obj11 = new QuestSequence { Sequence = 3 @@ -136100,7 +164022,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref QuestStep reference12 = ref span15[index2]; QuestStep obj12 = new QuestStep(EInteractionType.Interact, 1016130u, new Vector3(-815.7931f, -88.52015f, -835.2941f), 401) { Fly = true @@ -136108,7 +164032,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice + Span span16 = CollectionsMarshal.AsSpan(list16); + int index3 = 0; + span16[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNM101_02204_Q1_000_000"), @@ -136118,15 +164044,18 @@ public static class AssemblyQuestLoader reference12 = obj12; obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference13 = ref span3[4]; + num++; + ref QuestSequence reference13 = ref span11[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016119u, new Vector3(147.11218f, -14.525106f, -864.4083f), 401) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016119u, new Vector3(147.11218f, -14.525106f, -864.4083f), 401) { StopDistance = 7f, NextQuestId = new QuestId(2205) @@ -136140,13 +164069,16 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "liza"; + Span span18 = CollectionsMarshal.AsSpan(list18); + index = 0; + span18[index] = "liza"; questRoot3.Author = list18; - num = 4; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span5 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference14 = ref span5[0]; + index = 4; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + Span span19 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference14 = ref span19[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -136154,21 +164086,26 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016119u, new Vector3(147.11218f, -14.525106f, -864.4083f), 401) + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016119u, new Vector3(147.11218f, -14.525106f, -864.4083f), 401) { StopDistance = 7f }; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span5[1]; + num++; + ref QuestSequence reference15 = ref span19[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Duty, null, null, 401) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.Duty, null, null, 401) { DutyOptions = new DutyOptions { @@ -136177,11 +164114,13 @@ public static class AssemblyQuestLoader }; obj15.Steps = list21; reference15 = obj15; - span5[2] = new QuestSequence + num++; + span19[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference16 = ref span5[3]; + num++; + ref QuestSequence reference16 = ref span19[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -136189,7 +164128,9 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016137u, new Vector3(145.61682f, -13.626623f, -868.2536f), 401) + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016137u, new Vector3(145.61682f, -13.626623f, -868.2536f), 401) { StopDistance = 7f, NextQuestId = new QuestId(2285) @@ -136203,21 +164144,26 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "pot0to"; + Span span23 = CollectionsMarshal.AsSpan(list23); + index = 0; + span23[index] = "pot0to"; questRoot4.Author = list23; - num = 5; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span6 = CollectionsMarshal.AsSpan(list24); - ref QuestSequence reference17 = ref span6[0]; + index = 5; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + Span span24 = CollectionsMarshal.AsSpan(list24); + num = 0; + ref QuestSequence reference17 = ref span24[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list25)[0]; + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + ref QuestStep reference18 = ref span25[num2]; QuestStep obj18 = new QuestStep(EInteractionType.AcceptQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -136229,19 +164175,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 2; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span7 = CollectionsMarshal.AsSpan(list26); - span7[0] = 418; - span7[1] = 419; + index3 = 2; + List list26 = new List(index3); + CollectionsMarshal.SetCount(list26, index3); + Span span26 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span26[num3] = 418; + num3++; + span26[num3] = 419; skipAetheryteCondition.InTerritory = list26; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj18.SkipConditions = skipConditions; reference18 = obj18; obj17.Steps = list25; reference17 = obj17; - ref QuestSequence reference19 = ref span6[1]; + num++; + ref QuestSequence reference19 = ref span24[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -136249,30 +164198,40 @@ public static class AssemblyQuestLoader num2 = 6; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span8 = CollectionsMarshal.AsSpan(list27); - span8[0] = new QuestStep(EInteractionType.Interact, 1016234u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.Interact, 1016234u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427 }; - span8[1] = new QuestStep(EInteractionType.Interact, 1018161u, new Vector3(-8.590881f, 0.024999563f, 3.9520264f), 427); - span8[2] = new QuestStep(EInteractionType.Interact, 1017877u, new Vector3(-5.44751f, 0.024999565f, -2.2736206f), 427); - span8[3] = new QuestStep(EInteractionType.Interact, 1017875u, new Vector3(-1.236023f, 0.024999565f, -4.8982544f), 427); - span8[4] = new QuestStep(EInteractionType.Interact, 1018008u, new Vector3(5.1727905f, 0.22499956f, 0.32037354f), 427); - span8[5] = new QuestStep(EInteractionType.Interact, 1017876u, new Vector3(8.743347f, 0.20000005f, 2.670288f), 427); + index2++; + span27[index2] = new QuestStep(EInteractionType.Interact, 1018161u, new Vector3(-8.590881f, 0.024999563f, 3.9520264f), 427); + index2++; + span27[index2] = new QuestStep(EInteractionType.Interact, 1017877u, new Vector3(-5.44751f, 0.024999565f, -2.2736206f), 427); + index2++; + span27[index2] = new QuestStep(EInteractionType.Interact, 1017875u, new Vector3(-1.236023f, 0.024999565f, -4.8982544f), 427); + index2++; + span27[index2] = new QuestStep(EInteractionType.Interact, 1018008u, new Vector3(5.1727905f, 0.22499956f, 0.32037354f), 427); + index2++; + span27[index2] = new QuestStep(EInteractionType.Interact, 1017876u, new Vector3(8.743347f, 0.20000005f, 2.670288f), 427); obj19.Steps = list27; reference19 = obj19; - ref QuestSequence reference20 = ref span6[2]; + num++; + ref QuestSequence reference20 = ref span24[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1017874u, new Vector3(6.42395f, 0.22499956f, -6.149414f), 427); + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.Interact, 1017874u, new Vector3(6.42395f, 0.22499956f, -6.149414f), 427); obj20.Steps = list28; reference20 = obj20; - ref QuestSequence reference21 = ref span6[3]; + num++; + ref QuestSequence reference21 = ref span24[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 @@ -136280,23 +164239,27 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1017878u, new Vector3(547.8751f, 174.05713f, -537.0108f), 397) + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.Interact, 1017878u, new Vector3(547.8751f, 174.05713f, -537.0108f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj21.Steps = list29; reference21 = obj21; - ref QuestSequence reference22 = ref span6[4]; + num++; + ref QuestSequence reference22 = ref span24[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - Span span9 = CollectionsMarshal.AsSpan(list30); - span9[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + index2 = 2; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span30[num2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -136306,7 +164269,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSaintReymanaudsCathedral } }; - span9[1] = new QuestStep(EInteractionType.CompleteQuest, 1017874u, new Vector3(6.42395f, 0.22499956f, -6.149414f), 427) + num2++; + span30[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017874u, new Vector3(6.42395f, 0.22499956f, -6.149414f), 427) { NextQuestId = new QuestId(2208) }; @@ -136319,13 +164283,16 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "pot0to"; + Span span31 = CollectionsMarshal.AsSpan(list31); + index = 0; + span31[index] = "pot0to"; questRoot5.Author = list31; - num = 5; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span10 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference23 = ref span10[0]; + index = 5; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + Span span32 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference23 = ref span32[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -136333,8 +164300,9 @@ public static class AssemblyQuestLoader num2 = 2; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span11 = CollectionsMarshal.AsSpan(list33); - ref QuestStep reference24 = ref span11[0]; + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + ref QuestStep reference24 = ref span33[index2]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, @@ -136350,37 +164318,45 @@ public static class AssemblyQuestLoader num3 = 1; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - CollectionsMarshal.AsSpan(list34)[0] = 427; + Span span34 = CollectionsMarshal.AsSpan(list34); + index3 = 0; + span34[index3] = 427; skipStepConditions.InTerritory = list34; skipConditions2.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 2; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - Span span12 = CollectionsMarshal.AsSpan(list35); - span12[0] = 419; - span12[1] = 427; + index3 = 2; + List list35 = new List(index3); + CollectionsMarshal.SetCount(list35, index3); + Span span35 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span35[num3] = 419; + num3++; + span35[num3] = 427; skipAetheryteCondition2.InTerritory = list35; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; obj24.SkipConditions = skipConditions2; reference24 = obj24; - span11[1] = new QuestStep(EInteractionType.AcceptQuest, 1017874u, new Vector3(6.42395f, 0.22499956f, -6.149414f), 427); + index2++; + span33[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017874u, new Vector3(6.42395f, 0.22499956f, -6.149414f), 427); obj23.Steps = list33; reference23 = obj23; - ref QuestSequence reference25 = ref span10[1]; + num++; + ref QuestSequence reference25 = ref span32[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span13 = CollectionsMarshal.AsSpan(list36); - span13[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) + index2 = 2; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) { TargetTerritoryId = (ushort)419 }; - span13[1] = new QuestStep(EInteractionType.Interact, 1017879u, new Vector3(56.10742f, 11.965071f, 38.92566f), 419) + num2++; + span36[num2] = new QuestStep(EInteractionType.Interact, 1017879u, new Vector3(56.10742f, 11.965071f, 38.92566f), 419) { AethernetShortcut = new AethernetShortcut { @@ -136390,7 +164366,8 @@ public static class AssemblyQuestLoader }; obj25.Steps = list36; reference25 = obj25; - ref QuestSequence reference26 = ref span10[2]; + num++; + ref QuestSequence reference26 = ref span32[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 @@ -136398,7 +164375,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.Interact, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AethernetShortcut = new AethernetShortcut { @@ -136408,16 +164387,18 @@ public static class AssemblyQuestLoader }; obj26.Steps = list37; reference26 = obj26; - ref QuestSequence reference27 = ref span10[3]; + num++; + ref QuestSequence reference27 = ref span32[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span14 = CollectionsMarshal.AsSpan(list38); - span14[0] = new QuestStep(EInteractionType.Interact, 1012167u, new Vector3(27.66455f, -11.992287f, 47.86743f), 418) + index2 = 3; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.Interact, 1012167u, new Vector3(27.66455f, -11.992287f, 47.86743f), 418) { AethernetShortcut = new AethernetShortcut { @@ -136425,11 +164406,14 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardBrume } }; - span14[1] = new QuestStep(EInteractionType.Interact, 1018087u, new Vector3(99.168335f, -22.000004f, 49.210327f), 418); - span14[2] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); + num2++; + span38[num2] = new QuestStep(EInteractionType.Interact, 1018087u, new Vector3(99.168335f, -22.000004f, 49.210327f), 418); + num2++; + span38[num2] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); obj27.Steps = list38; reference27 = obj27; - ref QuestSequence reference28 = ref span10[4]; + num++; + ref QuestSequence reference28 = ref span32[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -136437,7 +164421,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AethernetShortcut = new AethernetShortcut { @@ -136455,21 +164441,26 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "pot0to"; + Span span40 = CollectionsMarshal.AsSpan(list40); + index = 0; + span40[index] = "pot0to"; questRoot6.Author = list40; - num = 4; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span15 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference29 = ref span15[0]; + index = 4; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + Span span41 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference29 = ref span41[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list42)[0]; + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + ref QuestStep reference30 = ref span42[num2]; QuestStep obj30 = new QuestStep(EInteractionType.AcceptQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -136484,16 +164475,19 @@ public static class AssemblyQuestLoader num3 = 2; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - Span span16 = CollectionsMarshal.AsSpan(list43); - span16[0] = 418; - span16[1] = 419; + Span span43 = CollectionsMarshal.AsSpan(list43); + index3 = 0; + span43[index3] = 418; + index3++; + span43[index3] = 419; skipAetheryteCondition3.InTerritory = list43; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition3; obj30.SkipConditions = skipConditions3; reference30 = obj30; obj29.Steps = list42; reference29 = obj29; - ref QuestSequence reference31 = ref span15[1]; + num++; + ref QuestSequence reference31 = ref span41[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -136501,32 +164495,41 @@ public static class AssemblyQuestLoader num2 = 6; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span17 = CollectionsMarshal.AsSpan(list44); - span17[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427 }; - span17[1] = new QuestStep(EInteractionType.Interact, 1018161u, new Vector3(-8.590881f, 0.024999563f, 3.9520264f), 427); - span17[2] = new QuestStep(EInteractionType.Interact, 1017877u, new Vector3(-5.44751f, 0.024999565f, -2.2736206f), 427); - span17[3] = new QuestStep(EInteractionType.Interact, 1017875u, new Vector3(-1.236023f, 0.024999565f, -4.8982544f), 427); - span17[4] = new QuestStep(EInteractionType.Interact, 1018008u, new Vector3(5.1727905f, 0.22499956f, 0.32037354f), 427); - span17[5] = new QuestStep(EInteractionType.Interact, 1017876u, new Vector3(8.743347f, 0.20000005f, 2.670288f), 427); + index2++; + span44[index2] = new QuestStep(EInteractionType.Interact, 1018161u, new Vector3(-8.590881f, 0.024999563f, 3.9520264f), 427); + index2++; + span44[index2] = new QuestStep(EInteractionType.Interact, 1017877u, new Vector3(-5.44751f, 0.024999565f, -2.2736206f), 427); + index2++; + span44[index2] = new QuestStep(EInteractionType.Interact, 1017875u, new Vector3(-1.236023f, 0.024999565f, -4.8982544f), 427); + index2++; + span44[index2] = new QuestStep(EInteractionType.Interact, 1018008u, new Vector3(5.1727905f, 0.22499956f, 0.32037354f), 427); + index2++; + span44[index2] = new QuestStep(EInteractionType.Interact, 1017876u, new Vector3(8.743347f, 0.20000005f, 2.670288f), 427); obj31.Steps = list44; reference31 = obj31; - ref QuestSequence reference32 = ref span15[2]; + num++; + ref QuestSequence reference32 = ref span41[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - Span span18 = CollectionsMarshal.AsSpan(list45); - span18[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) + index2 = 2; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span45[num2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) { TargetTerritoryId = (ushort)419 }; - span18[1] = new QuestStep(EInteractionType.Interact, 1017883u, new Vector3(94.77368f, -4.73493f, -37.979797f), 419) + num2++; + span45[num2] = new QuestStep(EInteractionType.Interact, 1017883u, new Vector3(94.77368f, -4.73493f, -37.979797f), 419) { AethernetShortcut = new AethernetShortcut { @@ -136536,7 +164539,8 @@ public static class AssemblyQuestLoader }; obj32.Steps = list45; reference32 = obj32; - ref QuestSequence reference33 = ref span15[3]; + num++; + ref QuestSequence reference33 = ref span41[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -136544,7 +164548,9 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AethernetShortcut = new AethernetShortcut { @@ -136562,21 +164568,26 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "pot0to"; + Span span47 = CollectionsMarshal.AsSpan(list47); + index = 0; + span47[index] = "pot0to"; questRoot7.Author = list47; - num = 8; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span19 = CollectionsMarshal.AsSpan(list48); - ref QuestSequence reference34 = ref span19[0]; + index = 8; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + Span span48 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref QuestSequence reference34 = ref span48[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list49)[0]; + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref QuestStep reference35 = ref span49[num2]; QuestStep obj35 = new QuestStep(EInteractionType.AcceptQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -136588,19 +164599,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions4 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - num3 = 2; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - Span span20 = CollectionsMarshal.AsSpan(list50); - span20[0] = 418; - span20[1] = 419; + index3 = 2; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + Span span50 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span50[num3] = 418; + num3++; + span50[num3] = 419; skipAetheryteCondition4.InTerritory = list50; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition4; obj35.SkipConditions = skipConditions4; reference35 = obj35; obj34.Steps = list49; reference34 = obj34; - ref QuestSequence reference36 = ref span19[1]; + num++; + ref QuestSequence reference36 = ref span48[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -136608,7 +164622,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 2007422u, new Vector3(-225.84882f, -20.035156f, -81.22388f), 419) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.Interact, 2007422u, new Vector3(-225.84882f, -20.035156f, -81.22388f), 419) { AethernetShortcut = new AethernetShortcut { @@ -136618,15 +164634,18 @@ public static class AssemblyQuestLoader }; obj36.Steps = list51; reference36 = obj36; - ref QuestSequence reference37 = ref span19[2]; + num++; + ref QuestSequence reference37 = ref span48[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1017886u, new Vector3(-6.1799316f, 1.3070598f, 93.095215f), 418) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.Interact, 1017886u, new Vector3(-6.1799316f, 1.3070598f, 93.095215f), 418) { AethernetShortcut = new AethernetShortcut { @@ -136636,7 +164655,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list52; reference37 = obj37; - ref QuestSequence reference38 = ref span19[3]; + num++; + ref QuestSequence reference38 = ref span48[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 @@ -136644,8 +164664,9 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span21 = CollectionsMarshal.AsSpan(list53); - span21[0] = new QuestStep(EInteractionType.Interact, 1011224u, new Vector3(4.5929565f, -2.52555f, 149.49255f), 418) + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.Interact, 1011224u, new Vector3(4.5929565f, -2.52555f, 149.49255f), 418) { TargetTerritoryId = (ushort)155, SkipConditions = new SkipConditions @@ -136656,21 +164677,25 @@ public static class AssemblyQuestLoader } } }; - span21[1] = new QuestStep(EInteractionType.Interact, 1017887u, new Vector3(-147.87524f, 290.3255f, -155.99298f), 155) + index2++; + span53[index2] = new QuestStep(EInteractionType.Interact, 1017887u, new Vector3(-147.87524f, 290.3255f, -155.99298f), 155) { Fly = true }; obj38.Steps = list53; reference38 = obj38; - ref QuestSequence reference39 = ref span19[4]; + num++; + ref QuestSequence reference39 = ref span48[num]; QuestSequence obj39 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Say, 2007423u, new Vector3(-191.21088f, 285.17578f, -154.22296f), 155) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.Say, 2007423u, new Vector3(-191.21088f, 285.17578f, -154.22296f), 155) { ChatMessage = new ChatMessage { @@ -136679,7 +164704,8 @@ public static class AssemblyQuestLoader }; obj39.Steps = list54; reference39 = obj39; - ref QuestSequence reference40 = ref span19[5]; + num++; + ref QuestSequence reference40 = ref span48[num]; QuestSequence obj40 = new QuestSequence { Sequence = 5 @@ -136687,7 +164713,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list55)[0]; + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + ref QuestStep reference41 = ref span55[index2]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(-191.21088f, 285.17578f, -154.22296f), 155) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -136695,25 +164723,31 @@ public static class AssemblyQuestLoader num3 = 2; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span22 = CollectionsMarshal.AsSpan(list56); - span22[0] = 724u; - span22[1] = 725u; + Span span56 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span56[index3] = 724u; + index3++; + span56[index3] = 725u; obj41.KillEnemyDataIds = list56; reference41 = obj41; obj40.Steps = list55; reference40 = obj40; - ref QuestSequence reference42 = ref span19[6]; + num++; + ref QuestSequence reference42 = ref span48[num]; QuestSequence obj42 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1017892u, new Vector3(-165.75879f, 289.35385f, -142.1684f), 155); + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.Interact, 1017892u, new Vector3(-165.75879f, 289.35385f, -142.1684f), 155); obj42.Steps = list57; reference42 = obj42; - ref QuestSequence reference43 = ref span19[7]; + num++; + ref QuestSequence reference43 = ref span48[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue @@ -136721,7 +164755,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -136740,24 +164776,30 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "plogon_enjoyer"; + Span span59 = CollectionsMarshal.AsSpan(list59); + index = 0; + span59[index] = "plogon_enjoyer"; questRoot8.Author = list59; - num = 2; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span23 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference44 = ref span23[0]; + index = 2; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + Span span60 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference44 = ref span60[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); obj44.Steps = list61; reference44 = obj44; - ref QuestSequence reference45 = ref span23[1]; + num++; + ref QuestSequence reference45 = ref span60[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -136765,7 +164807,9 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401); + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401); obj45.Steps = list62; reference45 = obj45; questRoot8.QuestSequence = list60; @@ -136775,21 +164819,26 @@ public static class AssemblyQuestLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - CollectionsMarshal.AsSpan(list63)[0] = "liza"; + Span span63 = CollectionsMarshal.AsSpan(list63); + index = 0; + span63[index] = "liza"; questRoot9.Author = list63; - num = 7; - List list64 = new List(num); - CollectionsMarshal.SetCount(list64, num); - Span span24 = CollectionsMarshal.AsSpan(list64); - ref QuestSequence reference46 = ref span24[0]; + index = 7; + List list64 = new List(index); + CollectionsMarshal.SetCount(list64, index); + Span span64 = CollectionsMarshal.AsSpan(list64); + num = 0; + ref QuestSequence reference46 = ref span64[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list65)[0]; + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + ref QuestStep reference47 = ref span65[num2]; QuestStep obj47 = new QuestStep(EInteractionType.AcceptQuest, 1016597u, new Vector3(-266.71252f, -20.034918f, -66.42261f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -136804,17 +164853,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = 419; + index3 = 1; + List list66 = new List(index3); + CollectionsMarshal.SetCount(list66, index3); + Span span66 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span66[num3] = 419; obj48.InTerritory = list66; skipConditions5.AetheryteShortcutIf = obj48; obj47.SkipConditions = skipConditions5; reference47 = obj47; obj46.Steps = list65; reference46 = obj46; - ref QuestSequence reference48 = ref span24[1]; + num++; + ref QuestSequence reference48 = ref span64[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 @@ -136822,117 +164874,163 @@ public static class AssemblyQuestLoader num2 = 6; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span25 = CollectionsMarshal.AsSpan(list67); - ref QuestStep reference49 = ref span25[0]; + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + ref QuestStep reference49 = ref span67[index2]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.68442f, -20.03493f, -66.1965f), 419); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - Span span26 = CollectionsMarshal.AsSpan(list68); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span68 = CollectionsMarshal.AsSpan(list68); + index3 = 0; + span68[index3] = null; + index3++; + span68[index3] = null; + index3++; + span68[index3] = null; + index3++; + span68[index3] = null; + index3++; + span68[index3] = null; + index3++; + span68[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list68; skipConditions6.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions6; reference49 = questStep; - ref QuestStep reference50 = ref span25[1]; + index2++; + ref QuestStep reference50 = ref span67[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1011207u, new Vector3(-258.8083f, -20.03509f, -63.553833f), 419); - num3 = 6; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - Span span27 = CollectionsMarshal.AsSpan(list69); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list69 = new List(index3); + CollectionsMarshal.SetCount(list69, index3); + Span span69 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span69[num3] = null; + num3++; + span69[num3] = null; + num3++; + span69[num3] = null; + num3++; + span69[num3] = null; + num3++; + span69[num3] = null; + num3++; + span69[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list69; reference50 = questStep2; - ref QuestStep reference51 = ref span25[2]; + index2++; + ref QuestStep reference51 = ref span67[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-226.53459f, -16.134916f, -51.93084f), 419); SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); num3 = 6; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span28 = CollectionsMarshal.AsSpan(list70); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span70 = CollectionsMarshal.AsSpan(list70); + index3 = 0; + span70[index3] = null; + index3++; + span70[index3] = null; + index3++; + span70[index3] = null; + index3++; + span70[index3] = null; + index3++; + span70[index3] = null; + index3++; + span70[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list70; skipConditions7.StepIf = skipStepConditions3; questStep3.SkipConditions = skipConditions7; reference51 = questStep3; - ref QuestStep reference52 = ref span25[3]; + index2++; + ref QuestStep reference52 = ref span67[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1011202u, new Vector3(-228.10712f, -16.034918f, -49.912292f), 419); - num3 = 6; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - Span span29 = CollectionsMarshal.AsSpan(list71); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list71 = new List(index3); + CollectionsMarshal.SetCount(list71, index3); + Span span71 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list71; reference52 = questStep4; - ref QuestStep reference53 = ref span25[4]; + index2++; + ref QuestStep reference53 = ref span67[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-205.36649f, -16.134916f, -51.418564f), 419); SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 6; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - Span span30 = CollectionsMarshal.AsSpan(list72); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span72 = CollectionsMarshal.AsSpan(list72); + index3 = 0; + span72[index3] = null; + index3++; + span72[index3] = null; + index3++; + span72[index3] = null; + index3++; + span72[index3] = null; + index3++; + span72[index3] = null; + index3++; + span72[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list72; skipConditions8.StepIf = skipStepConditions4; questStep5.SkipConditions = skipConditions8; reference53 = questStep5; - ref QuestStep reference54 = ref span25[5]; + index2++; + ref QuestStep reference54 = ref span67[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1011204u, new Vector3(-203.6012f, -16.034918f, -53.23877f), 419); - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span31 = CollectionsMarshal.AsSpan(list73); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + Span span73 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list73; reference54 = questStep6; obj49.Steps = list67; reference48 = obj49; - ref QuestSequence reference55 = ref span24[2]; + num++; + ref QuestSequence reference55 = ref span64[num]; QuestSequence obj50 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419); + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419); obj50.Steps = list74; reference55 = obj50; - ref QuestSequence reference56 = ref span24[3]; + num++; + ref QuestSequence reference56 = ref span64[num]; QuestSequence obj51 = new QuestSequence { Sequence = 3 @@ -136940,7 +165038,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1015596u, new Vector3(15.915161f, 15.96505f, -0.22894287f), 419) + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.Interact, 1015596u, new Vector3(15.915161f, 15.96505f, -0.22894287f), 419) { AethernetShortcut = new AethernetShortcut { @@ -136950,18 +165050,22 @@ public static class AssemblyQuestLoader }; obj51.Steps = list75; reference56 = obj51; - ref QuestSequence reference57 = ref span24[4]; + num++; + ref QuestSequence reference57 = ref span64[num]; QuestSequence obj52 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 2006709u, new Vector3(38.80359f, 16.494995f, -31.204712f), 419); + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.Interact, 2006709u, new Vector3(38.80359f, 16.494995f, -31.204712f), 419); obj52.Steps = list76; reference57 = obj52; - ref QuestSequence reference58 = ref span24[5]; + num++; + ref QuestSequence reference58 = ref span64[num]; QuestSequence obj53 = new QuestSequence { Sequence = 5 @@ -136969,21 +165073,26 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj53.Steps = list77; reference58 = obj53; - ref QuestSequence reference59 = ref span24[6]; + num++; + ref QuestSequence reference59 = ref span64[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 2006753u, new Vector3(-217.05963f, 88.09033f, -585.2598f), 397) + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.CompleteQuest, 2006753u, new Vector3(-217.05963f, 88.09033f, -585.2598f), 397) { Fly = true, NextQuestId = new QuestId(2227) @@ -136997,13 +165106,16 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + Span span79 = CollectionsMarshal.AsSpan(list79); + index = 0; + span79[index] = "liza"; questRoot10.Author = list79; - num = 7; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span32 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference60 = ref span32[0]; + index = 7; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + Span span80 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference60 = ref span80[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -137011,27 +165123,33 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016604u, new Vector3(-222.24768f, 88.525505f, -582.8794f), 397) + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016604u, new Vector3(-222.24768f, 88.525505f, -582.8794f), 397) { StopDistance = 7f }; obj55.Steps = list81; reference60 = obj55; - ref QuestSequence reference61 = ref span32[1]; + num++; + ref QuestSequence reference61 = ref span80[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1016629u, new Vector3(409.9336f, 166.24477f, -448.661f), 397) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.Interact, 1016629u, new Vector3(409.9336f, 166.24477f, -448.661f), 397) { Fly = true }; obj56.Steps = list82; reference61 = obj56; - ref QuestSequence reference62 = ref span32[2]; + num++; + ref QuestSequence reference62 = ref span80[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -137039,21 +165157,26 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1016612u, new Vector3(757.83923f, 186.03809f, -538.26196f), 397) + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.Interact, 1016612u, new Vector3(757.83923f, 186.03809f, -538.26196f), 397) { Fly = true }; obj57.Steps = list83; reference62 = obj57; - ref QuestSequence reference63 = ref span32[3]; + num++; + ref QuestSequence reference63 = ref span80[num]; QuestSequence obj58 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list84)[0]; + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + ref QuestStep reference64 = ref span84[num2]; QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(789.0687f, 186.03352f, -529.4571f), 397) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -137061,12 +165184,15 @@ public static class AssemblyQuestLoader num3 = 1; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = 5536u; + Span span85 = CollectionsMarshal.AsSpan(list85); + index3 = 0; + span85[index3] = 5536u; obj59.KillEnemyDataIds = list85; reference64 = obj59; obj58.Steps = list84; reference63 = obj58; - ref QuestSequence reference65 = ref span32[4]; + num++; + ref QuestSequence reference65 = ref span80[num]; QuestSequence obj60 = new QuestSequence { Sequence = 4 @@ -137074,21 +165200,27 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 2006763u, new Vector3(789.2728f, 186.44995f, -529.3507f), 397); + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.Interact, 2006763u, new Vector3(789.2728f, 186.44995f, -529.3507f), 397); obj60.Steps = list86; reference65 = obj60; - ref QuestSequence reference66 = ref span32[5]; + num++; + ref QuestSequence reference66 = ref span80[num]; QuestSequence obj61 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1016617u, new Vector3(790.3716f, 186.03076f, -527.0314f), 397); + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.Interact, 1016617u, new Vector3(790.3716f, 186.03076f, -527.0314f), 397); obj61.Steps = list87; reference66 = obj61; - ref QuestSequence reference67 = ref span32[6]; + num++; + ref QuestSequence reference67 = ref span80[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -137096,7 +165228,9 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418) + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, NextQuestId = new QuestId(2228) @@ -137110,24 +165244,30 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = "liza"; + Span span89 = CollectionsMarshal.AsSpan(list89); + index = 0; + span89[index] = "liza"; questRoot11.Author = list89; - num = 6; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - Span span33 = CollectionsMarshal.AsSpan(list90); - ref QuestSequence reference68 = ref span33[0]; + index = 6; + List list90 = new List(index); + CollectionsMarshal.SetCount(list90, index); + Span span90 = CollectionsMarshal.AsSpan(list90); + num = 0; + ref QuestSequence reference68 = ref span90[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418); + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span91[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418); obj63.Steps = list91; reference68 = obj63; - ref QuestSequence reference69 = ref span33[1]; + num++; + ref QuestSequence reference69 = ref span90[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 @@ -137135,7 +165275,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1016600u, new Vector3(46.097534f, 15.8650675f, -27.298462f), 419) + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.Interact, 1016600u, new Vector3(46.097534f, 15.8650675f, -27.298462f), 419) { AethernetShortcut = new AethernetShortcut { @@ -137145,15 +165287,18 @@ public static class AssemblyQuestLoader }; obj64.Steps = list92; reference69 = obj64; - ref QuestSequence reference70 = ref span33[2]; + num++; + ref QuestSequence reference70 = ref span90[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1017131u, new Vector3(35.446655f, 15.965061f, -96.75751f), 419) + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.Interact, 1017131u, new Vector3(35.446655f, 15.965061f, -96.75751f), 419) { AethernetShortcut = new AethernetShortcut { @@ -137163,7 +165308,8 @@ public static class AssemblyQuestLoader }; obj65.Steps = list93; reference70 = obj65; - ref QuestSequence reference71 = ref span33[3]; + num++; + ref QuestSequence reference71 = ref span90[num]; QuestSequence obj66 = new QuestSequence { Sequence = 3 @@ -137171,7 +165317,9 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1017278u, new Vector3(-158.31238f, 2.0333426f, -10.635559f), 418) + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.Interact, 1017278u, new Vector3(-158.31238f, 2.0333426f, -10.635559f), 418) { AethernetShortcut = new AethernetShortcut { @@ -137181,15 +165329,18 @@ public static class AssemblyQuestLoader }; obj66.Steps = list94; reference71 = obj66; - ref QuestSequence reference72 = ref span33[4]; + num++; + ref QuestSequence reference72 = ref span90[num]; QuestSequence obj67 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1016607u, new Vector3(-260.12054f, -20.035f, -66.14789f), 419) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.Interact, 1016607u, new Vector3(-260.12054f, -20.035f, -66.14789f), 419) { AethernetShortcut = new AethernetShortcut { @@ -137199,7 +165350,8 @@ public static class AssemblyQuestLoader }; obj67.Steps = list95; reference72 = obj67; - ref QuestSequence reference73 = ref span33[5]; + num++; + ref QuestSequence reference73 = ref span90[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -137207,7 +165359,9 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016608u, new Vector3(-261.0971f, -20.03499f, -66.11737f), 419) + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016608u, new Vector3(-261.0971f, -20.03499f, -66.11737f), 419) { StopDistance = 5f, NextQuestId = new QuestId(2229) @@ -137221,27 +165375,33 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + Span span97 = CollectionsMarshal.AsSpan(list97); + index = 0; + span97[index] = "liza"; questRoot12.Author = list97; - num = 8; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span34 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference74 = ref span34[0]; + index = 8; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference74 = ref span98[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016608u, new Vector3(-261.0971f, -20.03499f, -66.11737f), 419) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016608u, new Vector3(-261.0971f, -20.03499f, -66.11737f), 419) { StopDistance = 5f }; obj69.Steps = list99; reference74 = obj69; - ref QuestSequence reference75 = ref span34[1]; + num++; + ref QuestSequence reference75 = ref span98[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -137249,7 +165409,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1011225u, new Vector3(-170.6112f, 16.979578f, -37.125244f), 418) + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.Interact, 1011225u, new Vector3(-170.6112f, 16.979578f, -37.125244f), 418) { AethernetShortcut = new AethernetShortcut { @@ -137259,22 +165421,26 @@ public static class AssemblyQuestLoader }; obj70.Steps = list100; reference75 = obj70; - ref QuestSequence reference76 = ref span34[2]; + num++; + ref QuestSequence reference76 = ref span98[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1017133u, new Vector3(408.07202f, 195.66847f, 585.3512f), 397) + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.Interact, 1017133u, new Vector3(408.07202f, 195.66847f, 585.3512f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj71.Steps = list101; reference76 = obj71; - ref QuestSequence reference77 = ref span34[3]; + num++; + ref QuestSequence reference77 = ref span98[num]; QuestSequence obj72 = new QuestSequence { Sequence = 3 @@ -137282,27 +165448,33 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 2007180u, new Vector3(262.10425f, 163.31726f, 295.67407f), 397) + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span102[index2] = new QuestStep(EInteractionType.Interact, 2007180u, new Vector3(262.10425f, 163.31726f, 295.67407f), 397) { Fly = true }; obj72.Steps = list102; reference77 = obj72; - ref QuestSequence reference78 = ref span34[4]; + num++; + ref QuestSequence reference78 = ref span98[num]; QuestSequence obj73 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1017274u, new Vector3(164.53796f, 166.2741f, 181.32288f), 397) + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span103[num2] = new QuestStep(EInteractionType.Interact, 1017274u, new Vector3(164.53796f, 166.2741f, 181.32288f), 397) { Fly = true }; obj73.Steps = list103; reference78 = obj73; - ref QuestSequence reference79 = ref span34[5]; + num++; + ref QuestSequence reference79 = ref span98[num]; QuestSequence obj74 = new QuestSequence { Sequence = 5 @@ -137310,24 +165482,30 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1017274u, new Vector3(164.53796f, 166.2741f, 181.32288f), 397); + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.Interact, 1017274u, new Vector3(164.53796f, 166.2741f, 181.32288f), 397); obj74.Steps = list104; reference79 = obj74; - ref QuestSequence reference80 = ref span34[6]; + num++; + ref QuestSequence reference80 = ref span98[num]; QuestSequence obj75 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1017277u, new Vector3(163.13416f, 166.2741f, 179.4613f), 397) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.Interact, 1017277u, new Vector3(163.13416f, 166.2741f, 179.4613f), 397) { StopDistance = 5f }; obj75.Steps = list105; reference80 = obj75; - ref QuestSequence reference81 = ref span34[7]; + num++; + ref QuestSequence reference81 = ref span98[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue @@ -137335,7 +165513,9 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418) + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, NextQuestId = new QuestId(2369) @@ -137349,22 +165529,26 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + Span span107 = CollectionsMarshal.AsSpan(list107); + index = 0; + span107[index] = "liza"; questRoot13.Author = list107; - num = 4; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span35 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference82 = ref span35[0]; + index = 4; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + Span span108 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference82 = ref span108[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span36 = CollectionsMarshal.AsSpan(list109); - ref QuestStep reference83 = ref span36[0]; + index2 = 3; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + ref QuestStep reference83 = ref span109[num2]; QuestStep obj78 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -137372,22 +165556,27 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = 351; + index3 = 1; + List list110 = new List(index3); + CollectionsMarshal.SetCount(list110, index3); + Span span110 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span110[num3] = 351; skipStepConditions5.InTerritory = list110; skipConditions9.StepIf = skipStepConditions5; SkipAetheryteCondition skipAetheryteCondition5 = new SkipAetheryteCondition(); num3 = 1; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = 351; + Span span111 = CollectionsMarshal.AsSpan(list111); + index3 = 0; + span111[index3] = 351; skipAetheryteCondition5.InTerritory = list111; skipConditions9.AetheryteShortcutIf = skipAetheryteCondition5; obj78.SkipConditions = skipConditions9; reference83 = obj78; - span36[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span109[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -137398,13 +165587,15 @@ public static class AssemblyQuestLoader } } }; - span36[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + num2++; + span109[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj77.Steps = list109; reference82 = obj77; - ref QuestSequence reference84 = ref span35[1]; + num++; + ref QuestSequence reference84 = ref span108[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -137412,22 +165603,27 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1016631u, new Vector3(209.12476f, 256.37268f, -4.3793945f), 402) + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.Interact, 1016631u, new Vector3(209.12476f, 256.37268f, -4.3793945f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj79.Steps = list112; reference84 = obj79; - ref QuestSequence reference85 = ref span35[2]; + num++; + ref QuestSequence reference85 = ref span108[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Duty, null, null, 401) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.Duty, null, null, 401) { DutyOptions = new DutyOptions { @@ -137436,7 +165632,8 @@ public static class AssemblyQuestLoader }; obj80.Steps = list113; reference85 = obj80; - ref QuestSequence reference86 = ref span35[3]; + num++; + ref QuestSequence reference86 = ref span108[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -137444,17 +165641,20 @@ public static class AssemblyQuestLoader num2 = 3; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span37 = CollectionsMarshal.AsSpan(list114); - span37[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span37[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span114[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span37[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + index2++; + span114[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f, NextQuestId = new QuestId(2288) @@ -137468,27 +165668,33 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "JerryWester"; + Span span115 = CollectionsMarshal.AsSpan(list115); + index = 0; + span115[index] = "JerryWester"; questRoot14.Author = list115; - num = 5; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span38 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference87 = ref span38[0]; + index = 5; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + Span span116 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference87 = ref span116[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012580u, new Vector3(16.006714f, 16.009666f, -3.189148f), 419) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012580u, new Vector3(16.006714f, 16.009666f, -3.189148f), 419) { StopDistance = 7f }; obj82.Steps = list117; reference87 = obj82; - ref QuestSequence reference88 = ref span38[1]; + num++; + ref QuestSequence reference88 = ref span116[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -137496,7 +165702,9 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1016531u, new Vector3(-323.99487f, 11.999983f, 44.96826f), 129) + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span118[index2] = new QuestStep(EInteractionType.Interact, 1016531u, new Vector3(-323.99487f, 11.999983f, 44.96826f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -137507,21 +165715,25 @@ public static class AssemblyQuestLoader }; obj83.Steps = list118; reference88 = obj83; - ref QuestSequence reference89 = ref span38[2]; + num++; + ref QuestSequence reference89 = ref span116[num]; QuestSequence obj84 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1010388u, new Vector3(40.482178f, 20.495f, -650.96515f), 156) + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span119[num2] = new QuestStep(EInteractionType.Interact, 1010388u, new Vector3(40.482178f, 20.495f, -650.96515f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj84.Steps = list119; reference89 = obj84; - ref QuestSequence reference90 = ref span38[3]; + num++; + ref QuestSequence reference90 = ref span116[num]; QuestSequence obj85 = new QuestSequence { Sequence = 3 @@ -137529,95 +165741,134 @@ public static class AssemblyQuestLoader num2 = 6; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span39 = CollectionsMarshal.AsSpan(list120); - span39[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - ref QuestStep reference91 = ref span39[1]; + index2++; + ref QuestStep reference91 = ref span120[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1016541u, new Vector3(2.1514893f, 0f, -7.4921875f), 351); - num3 = 6; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span40 = CollectionsMarshal.AsSpan(list121); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + Span span121 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list121; reference91 = questStep7; - ref QuestStep reference92 = ref span39[2]; + index2++; + ref QuestStep reference92 = ref span120[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1016538u, new Vector3(14.572327f, 0f, -9.964172f), 351); num3 = 6; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - Span span41 = CollectionsMarshal.AsSpan(list122); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span122 = CollectionsMarshal.AsSpan(list122); + index3 = 0; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list122; reference92 = questStep8; - ref QuestStep reference93 = ref span39[3]; + index2++; + ref QuestStep reference93 = ref span120[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1016540u, new Vector3(31.967651f, -1f, -4.196289f), 351); - num3 = 6; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - Span span42 = CollectionsMarshal.AsSpan(list123); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list123 = new List(index3); + CollectionsMarshal.SetCount(list123, index3); + Span span123 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span123[num3] = null; + num3++; + span123[num3] = null; + num3++; + span123[num3] = null; + num3++; + span123[num3] = null; + num3++; + span123[num3] = null; + num3++; + span123[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list123; reference93 = questStep9; - ref QuestStep reference94 = ref span39[4]; + index2++; + ref QuestStep reference94 = ref span120[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1016543u, new Vector3(33.0968f, -1f, 5.7526245f), 351); num3 = 6; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - Span span43 = CollectionsMarshal.AsSpan(list124); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span124 = CollectionsMarshal.AsSpan(list124); + index3 = 0; + span124[index3] = null; + index3++; + span124[index3] = null; + index3++; + span124[index3] = null; + index3++; + span124[index3] = null; + index3++; + span124[index3] = null; + index3++; + span124[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list124; reference94 = questStep10; - ref QuestStep reference95 = ref span39[5]; + index2++; + ref QuestStep reference95 = ref span120[index2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 1016542u, new Vector3(36.27063f, -0.25946045f, 2.4871826f), 351) { StopDistance = 5f }; - num3 = 6; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span44 = CollectionsMarshal.AsSpan(list125); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list125 = new List(index3); + CollectionsMarshal.SetCount(list125, index3); + Span span125 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj86.CompletionQuestVariablesFlags = list125; reference95 = obj86; obj85.Steps = list120; reference90 = obj85; - ref QuestSequence reference96 = ref span38[4]; + num++; + ref QuestSequence reference96 = ref span116[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016535u, new Vector3(-2.6704102f, 0f, -5.2644043f), 351); + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016535u, new Vector3(-2.6704102f, 0f, -5.2644043f), 351); obj87.Steps = list126; reference96 = obj87; questRoot14.QuestSequence = list116; @@ -137627,13 +165878,16 @@ public static class AssemblyQuestLoader num = 1; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - CollectionsMarshal.AsSpan(list127)[0] = "JerryWester"; + Span span127 = CollectionsMarshal.AsSpan(list127); + index = 0; + span127[index] = "JerryWester"; questRoot15.Author = list127; - num = 6; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - Span span45 = CollectionsMarshal.AsSpan(list128); - ref QuestSequence reference97 = ref span45[0]; + index = 6; + List list128 = new List(index); + CollectionsMarshal.SetCount(list128, index); + Span span128 = CollectionsMarshal.AsSpan(list128); + num = 0; + ref QuestSequence reference97 = ref span128[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -137641,24 +165895,30 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016534u, new Vector3(-1.7243042f, 0f, -3.6469727f), 351); + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016534u, new Vector3(-1.7243042f, 0f, -3.6469727f), 351); obj88.Steps = list129; reference97 = obj88; - ref QuestSequence reference98 = ref span45[1]; + num++; + ref QuestSequence reference98 = ref span128[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1016558u, new Vector3(43.74756f, 205.2239f, 19.638367f), 478) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.Interact, 1016558u, new Vector3(43.74756f, 205.2239f, 19.638367f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj89.Steps = list130; reference98 = obj89; - ref QuestSequence reference99 = ref span45[2]; + num++; + ref QuestSequence reference99 = ref span128[num]; QuestSequence obj90 = new QuestSequence { Sequence = 2 @@ -137666,29 +165926,35 @@ public static class AssemblyQuestLoader num2 = 3; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span46 = CollectionsMarshal.AsSpan(list131); - span46[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.86769f, 204.99998f, 145.98666f), 478) + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.86769f, 204.99998f, 145.98666f), 478) { TargetTerritoryId = (ushort)399 }; - span46[1] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) + index2++; + span131[index2] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) { StopDistance = 0.25f, TargetTerritoryId = (ushort)463, Fly = true }; - span46[2] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); + index2++; + span131[index2] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); obj90.Steps = list131; reference99 = obj90; - ref QuestSequence reference100 = ref span45[3]; + num++; + ref QuestSequence reference100 = ref span128[num]; QuestSequence obj91 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Duty, null, null, 463) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.Duty, null, null, 463) { DutyOptions = new DutyOptions { @@ -137698,11 +165964,13 @@ public static class AssemblyQuestLoader }; obj91.Steps = list132; reference100 = obj91; - span45[4] = new QuestSequence + num++; + span128[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference101 = ref span45[5]; + num++; + ref QuestSequence reference101 = ref span128[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -137710,7 +165978,9 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - ref QuestStep reference102 = ref CollectionsMarshal.AsSpan(list133)[0]; + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + ref QuestStep reference102 = ref span133[index2]; QuestStep obj93 = new QuestStep(EInteractionType.CompleteQuest, 1016560u, new Vector3(21.133728f, 38.4364f, 8.041443f), 463) { StopDistance = 7f @@ -137718,7 +165988,9 @@ public static class AssemblyQuestLoader num3 = 1; List list134 = new List(num3); CollectionsMarshal.SetCount(list134, num3); - CollectionsMarshal.AsSpan(list134)[0] = new DialogueChoice + Span span134 = CollectionsMarshal.AsSpan(list134); + index3 = 0; + span134[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNC102_02232_Q1_000_121"), @@ -137735,27 +166007,33 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "JerryWester"; + Span span135 = CollectionsMarshal.AsSpan(list135); + index = 0; + span135[index] = "JerryWester"; questRoot16.Author = list135; - num = 3; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span47 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference103 = ref span47[0]; + index = 3; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + Span span136 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference103 = ref span136[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016560u, new Vector3(21.133728f, 38.4364f, 8.041443f), 463) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span137[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016560u, new Vector3(21.133728f, 38.4364f, 8.041443f), 463) { StopDistance = 7f }; obj94.Steps = list137; reference103 = obj94; - ref QuestSequence reference104 = ref span47[1]; + num++; + ref QuestSequence reference104 = ref span136[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 @@ -137763,7 +166041,9 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - ref QuestStep reference105 = ref CollectionsMarshal.AsSpan(list138)[0]; + Span span138 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + ref QuestStep reference105 = ref span138[index2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -137773,10 +166053,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num3 = 1; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - CollectionsMarshal.AsSpan(list139)[0] = new DialogueChoice + index3 = 1; + List list139 = new List(index3); + CollectionsMarshal.SetCount(list139, index3); + Span span139 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span139[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNC103_02233_Q1_000_021") @@ -137785,15 +166067,18 @@ public static class AssemblyQuestLoader reference105 = obj96; obj95.Steps = list138; reference104 = obj95; - ref QuestSequence reference106 = ref span47[2]; + num++; + ref QuestSequence reference106 = ref span136[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016564u, new Vector3(481.40686f, 225.00232f, 793.08765f), 397) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016564u, new Vector3(481.40686f, 225.00232f, 793.08765f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest @@ -137807,13 +166092,16 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "JerryWester"; + Span span141 = CollectionsMarshal.AsSpan(list141); + index = 0; + span141[index] = "JerryWester"; questRoot17.Author = list141; - num = 3; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span48 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference107 = ref span48[0]; + index = 3; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + Span span142 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference107 = ref span142[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 @@ -137821,7 +166109,9 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016564u, new Vector3(481.40686f, 225.00232f, 793.08765f), 397) + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016564u, new Vector3(481.40686f, 225.00232f, 793.08765f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -137834,16 +166124,18 @@ public static class AssemblyQuestLoader }; obj98.Steps = list143; reference107 = obj98; - ref QuestSequence reference108 = ref span48[1]; + num++; + ref QuestSequence reference108 = ref span142[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - Span span49 = CollectionsMarshal.AsSpan(list144); - ref QuestStep reference109 = ref span49[0]; + index2 = 3; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + ref QuestStep reference109 = ref span144[num2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { Fly = true @@ -137851,49 +166143,70 @@ public static class AssemblyQuestLoader num3 = 6; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - Span span50 = CollectionsMarshal.AsSpan(list145); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span145 = CollectionsMarshal.AsSpan(list145); + index3 = 0; + span145[index3] = null; + index3++; + span145[index3] = null; + index3++; + span145[index3] = null; + index3++; + span145[index3] = null; + index3++; + span145[index3] = null; + index3++; + span145[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj100.CompletionQuestVariablesFlags = list145; reference109 = obj100; - ref QuestStep reference110 = ref span49[1]; + num2++; + ref QuestStep reference110 = ref span144[num2]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 1016568u, new Vector3(465.5984f, 217.95128f, 752.7428f), 397) { Fly = true }; - num3 = 6; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span51 = CollectionsMarshal.AsSpan(list146); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + Span span146 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj101.CompletionQuestVariablesFlags = list146; reference110 = obj101; - ref QuestStep reference111 = ref span49[2]; + num2++; + ref QuestStep reference111 = ref span144[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1011236u, new Vector3(446.00586f, 217.95142f, 764.06494f), 397); num3 = 6; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - Span span52 = CollectionsMarshal.AsSpan(list147); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span147 = CollectionsMarshal.AsSpan(list147); + index3 = 0; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list147; reference111 = questStep11; obj99.Steps = list144; reference108 = obj99; - ref QuestSequence reference112 = ref span48[2]; + num++; + ref QuestSequence reference112 = ref span142[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -137901,7 +166214,9 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016565u, new Vector3(503.34937f, 217.95154f, 760.46387f), 397) + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span148[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016565u, new Vector3(503.34937f, 217.95154f, 760.46387f), 397) { Fly = true }; @@ -137914,21 +166229,26 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "JerryWester"; + Span span149 = CollectionsMarshal.AsSpan(list149); + index = 0; + span149[index] = "JerryWester"; questRoot18.Author = list149; - num = 5; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span53 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference113 = ref span53[0]; + index = 5; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + Span span150 = CollectionsMarshal.AsSpan(list150); + num = 0; + ref QuestSequence reference113 = ref span150[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span151[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -137941,7 +166261,8 @@ public static class AssemblyQuestLoader }; obj103.Steps = list151; reference113 = obj103; - ref QuestSequence reference114 = ref span53[1]; + num++; + ref QuestSequence reference114 = ref span150[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 @@ -137949,73 +166270,95 @@ public static class AssemblyQuestLoader num2 = 2; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span54 = CollectionsMarshal.AsSpan(list152); - ref QuestStep reference115 = ref span54[0]; + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + ref QuestStep reference115 = ref span152[index2]; QuestStep obj105 = new QuestStep(EInteractionType.Combat, 2006869u, new Vector3(334.7981f, 186.11426f, 442.22168f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - Span span55 = CollectionsMarshal.AsSpan(list153); - span55[0] = 5537u; - span55[1] = 5538u; + index3 = 2; + List list153 = new List(index3); + CollectionsMarshal.SetCount(list153, index3); + Span span153 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span153[num3] = 5537u; + num3++; + span153[num3] = 5538u; obj105.KillEnemyDataIds = list153; num3 = 6; List list154 = new List(num3); CollectionsMarshal.SetCount(list154, num3); - Span span56 = CollectionsMarshal.AsSpan(list154); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span154 = CollectionsMarshal.AsSpan(list154); + index3 = 0; + span154[index3] = null; + index3++; + span154[index3] = null; + index3++; + span154[index3] = null; + index3++; + span154[index3] = null; + index3++; + span154[index3] = null; + index3++; + span154[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj105.CompletionQuestVariablesFlags = list154; reference115 = obj105; - ref QuestStep reference116 = ref span54[1]; + index2++; + ref QuestStep reference116 = ref span152[index2]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, 2006870u, new Vector3(439.9939f, 165.45349f, 344.74695f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 5539u; + index3 = 1; + List list155 = new List(index3); + CollectionsMarshal.SetCount(list155, index3); + Span span155 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + span155[num3] = 5539u; obj106.KillEnemyDataIds = list155; num3 = 6; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span57 = CollectionsMarshal.AsSpan(list156); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span156 = CollectionsMarshal.AsSpan(list156); + index3 = 0; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj106.CompletionQuestVariablesFlags = list156; reference116 = obj106; obj104.Steps = list152; reference114 = obj104; - ref QuestSequence reference117 = ref span53[2]; + num++; + ref QuestSequence reference117 = ref span150[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span157[num2] = new QuestStep(EInteractionType.Interact, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj107.Steps = list157; reference117 = obj107; - ref QuestSequence reference118 = ref span53[3]; + num++; + ref QuestSequence reference118 = ref span150[num]; QuestSequence obj108 = new QuestSequence { Sequence = 3 @@ -138023,22 +166366,27 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1016573u, new Vector3(79.02649f, 117.196884f, 157.57996f), 397) + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.Interact, 1016573u, new Vector3(79.02649f, 117.196884f, 157.57996f), 397) { StopDistance = 1f, Fly = true }; obj108.Steps = list158; reference118 = obj108; - ref QuestSequence reference119 = ref span53[4]; + num++; + ref QuestSequence reference119 = ref span150[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest @@ -138052,13 +166400,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "JerryWester"; + Span span160 = CollectionsMarshal.AsSpan(list160); + index = 0; + span160[index] = "JerryWester"; questRoot19.Author = list160; - num = 4; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span58 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference120 = ref span58[0]; + index = 4; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + Span span161 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference120 = ref span161[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -138066,7 +166417,9 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -138079,18 +166432,22 @@ public static class AssemblyQuestLoader }; obj110.Steps = list162; reference120 = obj110; - ref QuestSequence reference121 = ref span58[1]; + num++; + ref QuestSequence reference121 = ref span161[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1016579u, new Vector3(507.16406f, 217.95152f, 769.9243f), 397); + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span163[num2] = new QuestStep(EInteractionType.Interact, 1016579u, new Vector3(507.16406f, 217.95152f, 769.9243f), 397); obj111.Steps = list163; reference121 = obj111; - ref QuestSequence reference122 = ref span58[2]; + num++; + ref QuestSequence reference122 = ref span161[num]; QuestSequence obj112 = new QuestSequence { Sequence = 2 @@ -138098,67 +166455,92 @@ public static class AssemblyQuestLoader num2 = 4; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span59 = CollectionsMarshal.AsSpan(list164); - ref QuestStep reference123 = ref span59[0]; + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + ref QuestStep reference123 = ref span164[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1016569u, new Vector3(495.32312f, 217.95135f, 742.6107f), 397); - num3 = 6; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - Span span60 = CollectionsMarshal.AsSpan(list165); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list165 = new List(index3); + CollectionsMarshal.SetCount(list165, index3); + Span span165 = CollectionsMarshal.AsSpan(list165); + num3 = 0; + span165[num3] = null; + num3++; + span165[num3] = null; + num3++; + span165[num3] = null; + num3++; + span165[num3] = null; + num3++; + span165[num3] = null; + num3++; + span165[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list165; reference123 = questStep12; - span59[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(522.6554f, 228.37697f, 752.68335f), 397) + index2++; + span164[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(522.6554f, 228.37697f, 752.68335f), 397) { Fly = true }; - ref QuestStep reference124 = ref span59[2]; + index2++; + ref QuestStep reference124 = ref span164[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1016570u, new Vector3(520.0122f, 228.37695f, 752.7732f), 397); num3 = 6; List list166 = new List(num3); CollectionsMarshal.SetCount(list166, num3); - Span span61 = CollectionsMarshal.AsSpan(list166); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span166 = CollectionsMarshal.AsSpan(list166); + index3 = 0; + span166[index3] = null; + index3++; + span166[index3] = null; + index3++; + span166[index3] = null; + index3++; + span166[index3] = null; + index3++; + span166[index3] = null; + index3++; + span166[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list166; reference124 = questStep13; - ref QuestStep reference125 = ref span59[3]; + index2++; + ref QuestStep reference125 = ref span164[index2]; QuestStep obj113 = new QuestStep(EInteractionType.Interact, 1011235u, new Vector3(522.54517f, 228.3512f, 723.5675f), 397) { Fly = true }; - num3 = 6; - List list167 = new List(num3); - CollectionsMarshal.SetCount(list167, num3); - Span span62 = CollectionsMarshal.AsSpan(list167); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list167 = new List(index3); + CollectionsMarshal.SetCount(list167, index3); + Span span167 = CollectionsMarshal.AsSpan(list167); + num3 = 0; + span167[num3] = null; + num3++; + span167[num3] = null; + num3++; + span167[num3] = null; + num3++; + span167[num3] = null; + num3++; + span167[num3] = null; + num3++; + span167[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj113.CompletionQuestVariablesFlags = list167; reference125 = obj113; obj112.Steps = list164; reference122 = obj112; - ref QuestSequence reference126 = ref span58[3]; + num++; + ref QuestSequence reference126 = ref span161[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016580u, new Vector3(416.5254f, 217.95142f, 754.20764f), 397) + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016580u, new Vector3(416.5254f, 217.95142f, 754.20764f), 397) { Fly = true }; @@ -138171,13 +166553,16 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "JerryWester"; + Span span169 = CollectionsMarshal.AsSpan(list169); + index = 0; + span169[index] = "JerryWester"; questRoot20.Author = list169; - num = 4; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span63 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference127 = ref span63[0]; + index = 4; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + Span span170 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference127 = ref span170[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -138185,7 +166570,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016580u, new Vector3(416.5254f, 217.95142f, 754.20764f), 397) + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span171[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016580u, new Vector3(416.5254f, 217.95142f, 754.20764f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -138198,23 +166585,27 @@ public static class AssemblyQuestLoader }; obj115.Steps = list171; reference127 = obj115; - ref QuestSequence reference128 = ref span63[1]; + num++; + ref QuestSequence reference128 = ref span170[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - Span span64 = CollectionsMarshal.AsSpan(list172); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.9199f, 217.95137f, 773.3327f), 397) + index2 = 2; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span172[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.9199f, 217.95137f, 773.3327f), 397) { Fly = true }; - span64[1] = new QuestStep(EInteractionType.Interact, 1016069u, new Vector3(540.3677f, 217.90826f, 769.0393f), 397); + num2++; + span172[num2] = new QuestStep(EInteractionType.Interact, 1016069u, new Vector3(540.3677f, 217.90826f, 769.0393f), 397); obj116.Steps = list172; reference128 = obj116; - ref QuestSequence reference129 = ref span63[2]; + num++; + ref QuestSequence reference129 = ref span170[num]; QuestSequence obj117 = new QuestSequence { Sequence = 2 @@ -138222,26 +166613,31 @@ public static class AssemblyQuestLoader num2 = 2; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span65 = CollectionsMarshal.AsSpan(list173); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.9199f, 217.95137f, 773.3327f), 397) + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.9199f, 217.95137f, 773.3327f), 397) { Mount = true }; - span65[1] = new QuestStep(EInteractionType.Interact, 1016581u, new Vector3(477.37842f, 223.92603f, 872.6787f), 397) + index2++; + span173[index2] = new QuestStep(EInteractionType.Interact, 1016581u, new Vector3(477.37842f, 223.92603f, 872.6787f), 397) { Fly = true }; obj117.Steps = list173; reference129 = obj117; - ref QuestSequence reference130 = ref span63[3]; + num++; + ref QuestSequence reference130 = ref span170[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016579u, new Vector3(507.16406f, 217.95152f, 769.9243f), 397) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016579u, new Vector3(507.16406f, 217.95152f, 769.9243f), 397) { Fly = true }; @@ -138254,13 +166650,16 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "JerryWester"; + Span span175 = CollectionsMarshal.AsSpan(list175); + index = 0; + span175[index] = "JerryWester"; questRoot21.Author = list175; - num = 8; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span66 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference131 = ref span66[0]; + index = 8; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + Span span176 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference131 = ref span176[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -138268,7 +166667,9 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016579u, new Vector3(507.16406f, 217.95152f, 769.9243f), 397) + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span177[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016579u, new Vector3(507.16406f, 217.95152f, 769.9243f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -138281,16 +166682,18 @@ public static class AssemblyQuestLoader }; obj119.Steps = list177; reference131 = obj119; - ref QuestSequence reference132 = ref span66[1]; + num++; + ref QuestSequence reference132 = ref span176[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - Span span67 = CollectionsMarshal.AsSpan(list178); - ref QuestStep reference133 = ref span67[0]; + index2 = 2; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + Span span178 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + ref QuestStep reference133 = ref span178[num2]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -138303,17 +166706,21 @@ public static class AssemblyQuestLoader num3 = 1; List list179 = new List(num3); CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = new DialogueChoice + Span span179 = CollectionsMarshal.AsSpan(list179); + index3 = 0; + span179[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNC108_02238_Q1_000_031") }; obj121.DialogueChoices = list179; reference133 = obj121; - span67[1] = new QuestStep(EInteractionType.Interact, 1013183u, new Vector3(-0.015319824f, 0.019999694f, -6.302063f), 428); + num2++; + span178[num2] = new QuestStep(EInteractionType.Interact, 1013183u, new Vector3(-0.015319824f, 0.019999694f, -6.302063f), 428); obj120.Steps = list178; reference132 = obj120; - ref QuestSequence reference134 = ref span66[2]; + num++; + ref QuestSequence reference134 = ref span176[num]; QuestSequence obj122 = new QuestSequence { Sequence = 2 @@ -138321,15 +166728,19 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list180)[0]; + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + ref QuestStep reference135 = ref span180[index2]; QuestStep obj123 = new QuestStep(EInteractionType.Interact, 1016583u, new Vector3(112.53516f, 24.391685f, -2.9145508f), 418) { StopDistance = 7f }; - num3 = 1; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - CollectionsMarshal.AsSpan(list181)[0] = new DialogueChoice + index3 = 1; + List list181 = new List(index3); + CollectionsMarshal.SetCount(list181, index3); + Span span181 = CollectionsMarshal.AsSpan(list181); + num3 = 0; + span181[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNC108_02238_Q2_000_093"), @@ -138339,18 +166750,22 @@ public static class AssemblyQuestLoader reference135 = obj123; obj122.Steps = list180; reference134 = obj122; - ref QuestSequence reference136 = ref span66[3]; + num++; + ref QuestSequence reference136 = ref span176[num]; QuestSequence obj124 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1013167u, new Vector3(125.68848f, 24.458836f, 2.456604f), 418); + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = new QuestStep(EInteractionType.Interact, 1013167u, new Vector3(125.68848f, 24.458836f, 2.456604f), 418); obj124.Steps = list182; reference136 = obj124; - ref QuestSequence reference137 = ref span66[4]; + num++; + ref QuestSequence reference137 = ref span176[num]; QuestSequence obj125 = new QuestSequence { Sequence = 4 @@ -138358,7 +166773,9 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + Span span183 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span183[index2] = new QuestStep(EInteractionType.Interact, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AethernetShortcut = new AethernetShortcut { @@ -138368,15 +166785,18 @@ public static class AssemblyQuestLoader }; obj125.Steps = list183; reference137 = obj125; - ref QuestSequence reference138 = ref span66[5]; + num++; + ref QuestSequence reference138 = ref span176[num]; QuestSequence obj126 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1016585u, new Vector3(-177.11151f, -12.534915f, -43.137268f), 419) + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span184[num2] = new QuestStep(EInteractionType.Interact, 1016585u, new Vector3(-177.11151f, -12.534915f, -43.137268f), 419) { AethernetShortcut = new AethernetShortcut { @@ -138386,7 +166806,8 @@ public static class AssemblyQuestLoader }; obj126.Steps = list184; reference138 = obj126; - ref QuestSequence reference139 = ref span66[6]; + num++; + ref QuestSequence reference139 = ref span176[num]; QuestSequence obj127 = new QuestSequence { Sequence = 6 @@ -138394,7 +166815,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - ref QuestStep reference140 = ref CollectionsMarshal.AsSpan(list185)[0]; + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + ref QuestStep reference140 = ref span185[index2]; QuestStep obj128 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -138406,7 +166829,9 @@ public static class AssemblyQuestLoader num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = new DialogueChoice + Span span186 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span186[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNC108_02238_Q3_000_223") @@ -138415,15 +166840,18 @@ public static class AssemblyQuestLoader reference140 = obj128; obj127.Steps = list185; reference139 = obj127; - ref QuestSequence reference141 = ref span66[7]; + num++; + ref QuestSequence reference141 = ref span176[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016583u, new Vector3(112.53516f, 24.391685f, -2.9145508f), 418) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016583u, new Vector3(112.53516f, 24.391685f, -2.9145508f), 418) { StopDistance = 7f }; @@ -138436,13 +166864,16 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "JerryWester"; + Span span188 = CollectionsMarshal.AsSpan(list188); + index = 0; + span188[index] = "JerryWester"; questRoot22.Author = list188; - num = 6; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span68 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference142 = ref span68[0]; + index = 6; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + Span span189 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference142 = ref span189[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -138450,30 +166881,36 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015978u, new Vector3(111.283936f, 24.388157f, -4.3793945f), 418) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015978u, new Vector3(111.283936f, 24.388157f, -4.3793945f), 418) { StopDistance = 7f }; obj130.Steps = list190; reference142 = obj130; - ref QuestSequence reference143 = ref span68[1]; + num++; + ref QuestSequence reference143 = ref span189[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - Span span69 = CollectionsMarshal.AsSpan(list191); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-132.00812f, 304.1538f, -292.25592f), 155) + index2 = 2; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-132.00812f, 304.1538f, -292.25592f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span69[1] = new QuestStep(EInteractionType.Interact, 1016587u, new Vector3(-133.92847f, 304.15384f, -300.83167f), 155); + num2++; + span191[num2] = new QuestStep(EInteractionType.Interact, 1016587u, new Vector3(-133.92847f, 304.15384f, -300.83167f), 155); obj131.Steps = list191; reference143 = obj131; - ref QuestSequence reference144 = ref span68[2]; + num++; + ref QuestSequence reference144 = ref span189[num]; QuestSequence obj132 = new QuestSequence { Sequence = 2 @@ -138481,7 +166918,9 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1016587u, new Vector3(-133.92847f, 304.15384f, -300.83167f), 155) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1016587u, new Vector3(-133.92847f, 304.15384f, -300.83167f), 155) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -138490,22 +166929,27 @@ public static class AssemblyQuestLoader }; obj132.Steps = list192; reference144 = obj132; - span68[3] = new QuestSequence + num++; + span189[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference145 = ref span68[4]; + num++; + ref QuestSequence reference145 = ref span189[num]; QuestSequence obj133 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1016072u, new Vector3(-53.543945f, 298.9f, -204.36407f), 155); + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.Interact, 1016072u, new Vector3(-53.543945f, 298.9f, -204.36407f), 155); obj133.Steps = list193; reference145 = obj133; - ref QuestSequence reference146 = ref span68[5]; + num++; + ref QuestSequence reference146 = ref span189[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue @@ -138513,12 +166957,14 @@ public static class AssemblyQuestLoader num2 = 2; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span70 = CollectionsMarshal.AsSpan(list194); - span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-132.00812f, 304.1538f, -292.25592f), 155) + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-132.00812f, 304.1538f, -292.25592f), 155) { Fly = true }; - span70[1] = new QuestStep(EInteractionType.CompleteQuest, 1016588u, new Vector3(-136.64453f, 304.15384f, -308.36963f), 155); + index2++; + span194[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016588u, new Vector3(-136.64453f, 304.15384f, -308.36963f), 155); obj134.Steps = list194; reference146 = obj134; questRoot22.QuestSequence = list189; @@ -138528,27 +166974,33 @@ public static class AssemblyQuestLoader num = 1; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - CollectionsMarshal.AsSpan(list195)[0] = "JerryWester"; + Span span195 = CollectionsMarshal.AsSpan(list195); + index = 0; + span195[index] = "JerryWester"; questRoot23.Author = list195; - num = 4; - List list196 = new List(num); - CollectionsMarshal.SetCount(list196, num); - Span span71 = CollectionsMarshal.AsSpan(list196); - ref QuestSequence reference147 = ref span71[0]; + index = 4; + List list196 = new List(index); + CollectionsMarshal.SetCount(list196, index); + Span span196 = CollectionsMarshal.AsSpan(list196); + num = 0; + ref QuestSequence reference147 = ref span196[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016074u, new Vector3(-139.849f, 304.15384f, -309.8955f), 155) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span197[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016074u, new Vector3(-139.849f, 304.15384f, -309.8955f), 155) { StopDistance = 7f }; obj135.Steps = list197; reference147 = obj135; - ref QuestSequence reference148 = ref span71[1]; + num++; + ref QuestSequence reference148 = ref span196[num]; QuestSequence obj136 = new QuestSequence { Sequence = 1 @@ -138556,28 +167008,34 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1016589u, new Vector3(7.4005737f, 1.2791227f, 104.35632f), 418) + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span198[index2] = new QuestStep(EInteractionType.Interact, 1016589u, new Vector3(7.4005737f, 1.2791227f, 104.35632f), 418) { StopDistance = 5f }; obj136.Steps = list198; reference148 = obj136; - ref QuestSequence reference149 = ref span71[2]; + num++; + ref QuestSequence reference149 = ref span196[num]; QuestSequence obj137 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1016565u, new Vector3(503.34937f, 217.95154f, 760.46387f), 397) + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + Span span199 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span199[num2] = new QuestStep(EInteractionType.Interact, 1016565u, new Vector3(503.34937f, 217.95154f, 760.46387f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj137.Steps = list199; reference149 = obj137; - ref QuestSequence reference150 = ref span71[3]; + num++; + ref QuestSequence reference150 = ref span196[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -138585,15 +167043,19 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - ref QuestStep reference151 = ref CollectionsMarshal.AsSpan(list200)[0]; + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + ref QuestStep reference151 = ref span200[index2]; QuestStep obj139 = new QuestStep(EInteractionType.CompleteQuest, 1016590u, new Vector3(501.97595f, 217.95152f, 762.72217f), 397) { StopDistance = 7f }; - num3 = 1; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - CollectionsMarshal.AsSpan(list201)[0] = new DialogueChoice + index3 = 1; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + Span span201 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span201[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNC110_02240_Q1_000_071"), @@ -138610,21 +167072,26 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "JerryWester"; + Span span202 = CollectionsMarshal.AsSpan(list202); + index = 0; + span202[index] = "JerryWester"; questRoot24.Author = list202; - num = 4; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span72 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference152 = ref span72[0]; + index = 4; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + Span span203 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference152 = ref span203[num]; QuestSequence obj140 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016590u, new Vector3(501.97595f, 217.95152f, 762.72217f), 397) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016590u, new Vector3(501.97595f, 217.95152f, 762.72217f), 397) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -138638,7 +167105,8 @@ public static class AssemblyQuestLoader }; obj140.Steps = list204; reference152 = obj140; - ref QuestSequence reference153 = ref span72[1]; + num++; + ref QuestSequence reference153 = ref span203[num]; QuestSequence obj141 = new QuestSequence { Sequence = 1 @@ -138646,27 +167114,33 @@ public static class AssemblyQuestLoader num2 = 2; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span73 = CollectionsMarshal.AsSpan(list205); - span73[0] = new QuestStep(EInteractionType.Interact, 1009973u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155) + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.Interact, 1009973u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155) { TargetTerritoryId = (ushort)395, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span73[1] = new QuestStep(EInteractionType.Interact, 2006864u, new Vector3(-2.7924194f, -0.015319824f, 0.10675049f), 395); + index2++; + span205[index2] = new QuestStep(EInteractionType.Interact, 2006864u, new Vector3(-2.7924194f, -0.015319824f, 0.10675049f), 395); obj141.Steps = list205; reference153 = obj141; - ref QuestSequence reference154 = ref span72[2]; + num++; + ref QuestSequence reference154 = ref span203[num]; QuestSequence obj142 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1016591u, new Vector3(-2.02948f, 0.014982708f, 4.562378f), 395); + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.Interact, 1016591u, new Vector3(-2.02948f, 0.014982708f, 4.562378f), 395); obj142.Steps = list206; reference154 = obj142; - ref QuestSequence reference155 = ref span72[3]; + num++; + ref QuestSequence reference155 = ref span203[num]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -138674,7 +167148,9 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013227u, new Vector3(14.877502f, 16.009666f, -4.196289f), 419) + Span span207 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span207[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013227u, new Vector3(14.877502f, 16.009666f, -4.196289f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -138692,27 +167168,33 @@ public static class AssemblyQuestLoader num = 1; List list208 = new List(num); CollectionsMarshal.SetCount(list208, num); - CollectionsMarshal.AsSpan(list208)[0] = "JerryWester"; + Span span208 = CollectionsMarshal.AsSpan(list208); + index = 0; + span208[index] = "JerryWester"; questRoot25.Author = list208; - num = 4; - List list209 = new List(num); - CollectionsMarshal.SetCount(list209, num); - Span span74 = CollectionsMarshal.AsSpan(list209); - ref QuestSequence reference156 = ref span74[0]; + index = 4; + List list209 = new List(index); + CollectionsMarshal.SetCount(list209, index); + Span span209 = CollectionsMarshal.AsSpan(list209); + num = 0; + ref QuestSequence reference156 = ref span209[num]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015596u, new Vector3(15.915161f, 15.96505f, -0.22894287f), 419) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span210[num2] = new QuestStep(EInteractionType.AcceptQuest, 1015596u, new Vector3(15.915161f, 15.96505f, -0.22894287f), 419) { StopDistance = 7f }; obj144.Steps = list210; reference156 = obj144; - ref QuestSequence reference157 = ref span74[1]; + num++; + ref QuestSequence reference157 = ref span209[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -138720,27 +167202,32 @@ public static class AssemblyQuestLoader num2 = 2; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span75 = CollectionsMarshal.AsSpan(list211); - span75[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + Span span211 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span211[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { StopDistance = 7f, TargetTerritoryId = (ushort)433 }; - span75[1] = new QuestStep(EInteractionType.Interact, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) + index2++; + span211[index2] = new QuestStep(EInteractionType.Interact, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) { StopDistance = 7f }; obj145.Steps = list211; reference157 = obj145; - ref QuestSequence reference158 = ref span74[2]; + num++; + ref QuestSequence reference158 = ref span209[num]; QuestSequence obj146 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1016807u, new Vector3(92.851074f, 15.00001f, 38.254395f), 418) + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span212[num2] = new QuestStep(EInteractionType.Interact, 1016807u, new Vector3(92.851074f, 15.00001f, 38.254395f), 418) { AethernetShortcut = new AethernetShortcut { @@ -138750,7 +167237,8 @@ public static class AssemblyQuestLoader }; obj146.Steps = list212; reference158 = obj146; - ref QuestSequence reference159 = ref span74[3]; + num++; + ref QuestSequence reference159 = ref span209[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -138758,7 +167246,9 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016818u, new Vector3(109.72754f, 24.384384f, -4.715088f), 418); + Span span213 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span213[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016818u, new Vector3(109.72754f, 24.384384f, -4.715088f), 418); obj147.Steps = list213; reference159 = obj147; questRoot25.QuestSequence = list209; @@ -138768,24 +167258,30 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - CollectionsMarshal.AsSpan(list214)[0] = "JerryWester"; + Span span214 = CollectionsMarshal.AsSpan(list214); + index = 0; + span214[index] = "JerryWester"; questRoot26.Author = list214; - num = 3; - List list215 = new List(num); - CollectionsMarshal.SetCount(list215, num); - Span span76 = CollectionsMarshal.AsSpan(list215); - ref QuestSequence reference160 = ref span76[0]; + index = 3; + List list215 = new List(index); + CollectionsMarshal.SetCount(list215, index); + Span span215 = CollectionsMarshal.AsSpan(list215); + num = 0; + ref QuestSequence reference160 = ref span215[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016818u, new Vector3(109.72754f, 24.384384f, -4.715088f), 418); + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + Span span216 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span216[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016818u, new Vector3(109.72754f, 24.384384f, -4.715088f), 418); obj148.Steps = list216; reference160 = obj148; - ref QuestSequence reference161 = ref span76[1]; + num++; + ref QuestSequence reference161 = ref span215[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 @@ -138793,21 +167289,26 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Interact, 1016881u, new Vector3(110.30737f, 24.386719f, -2.3347168f), 418) + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new QuestStep(EInteractionType.Interact, 1016881u, new Vector3(110.30737f, 24.386719f, -2.3347168f), 418) { StopDistance = 7f }; obj149.Steps = list217; reference161 = obj149; - ref QuestSequence reference162 = ref span76[2]; + num++; + ref QuestSequence reference162 = ref span215[num]; QuestSequence obj150 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span218[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { StopDistance = 9f, Fly = true, @@ -138822,13 +167323,16 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - CollectionsMarshal.AsSpan(list219)[0] = "JerryWester"; + Span span219 = CollectionsMarshal.AsSpan(list219); + index = 0; + span219[index] = "JerryWester"; questRoot27.Author = list219; - num = 8; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - Span span77 = CollectionsMarshal.AsSpan(list220); - ref QuestSequence reference163 = ref span77[0]; + index = 8; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + Span span220 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference163 = ref span220[num]; QuestSequence obj151 = new QuestSequence { Sequence = 0 @@ -138836,7 +167340,9 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016819u, new Vector3(-291.43213f, 39.04307f, 33.6156f), 398) + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span221[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016819u, new Vector3(-291.43213f, 39.04307f, 33.6156f), 398) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -138850,22 +167356,26 @@ public static class AssemblyQuestLoader }; obj151.Steps = list221; reference163 = obj151; - ref QuestSequence reference164 = ref span77[1]; + num++; + ref QuestSequence reference164 = ref span220[num]; QuestSequence obj152 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1016811u, new Vector3(234.5769f, -42.669212f, 615.28955f), 400) + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + Span span222 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span222[num2] = new QuestStep(EInteractionType.Interact, 1016811u, new Vector3(234.5769f, -42.669212f, 615.28955f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj152.Steps = list222; reference164 = obj152; - ref QuestSequence reference165 = ref span77[2]; + num++; + ref QuestSequence reference165 = ref span220[num]; QuestSequence obj153 = new QuestSequence { Sequence = 2 @@ -138873,7 +167383,9 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 2006956u, new Vector3(-758.35815f, 123.704834f, 214.52649f), 400) + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span223[index2] = new QuestStep(EInteractionType.Interact, 2006956u, new Vector3(-758.35815f, 123.704834f, 214.52649f), 400) { StopDistance = 1f, Fly = true, @@ -138881,21 +167393,25 @@ public static class AssemblyQuestLoader }; obj153.Steps = list223; reference165 = obj153; - ref QuestSequence reference166 = ref span77[3]; + num++; + ref QuestSequence reference166 = ref span220[num]; QuestSequence obj154 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1016813u, new Vector3(-755.30634f, 123.72871f, 210.95593f), 400) + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span224[num2] = new QuestStep(EInteractionType.Interact, 1016813u, new Vector3(-755.30634f, 123.72871f, 210.95593f), 400) { StopDistance = 5f }; obj154.Steps = list224; reference166 = obj154; - ref QuestSequence reference167 = ref span77[4]; + num++; + ref QuestSequence reference167 = ref span220[num]; QuestSequence obj155 = new QuestSequence { Sequence = 4 @@ -138903,21 +167419,26 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1016812u, new Vector3(-743.31274f, 83.799995f, 267.68896f), 400) + Span span225 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span225[index2] = new QuestStep(EInteractionType.Interact, 1016812u, new Vector3(-743.31274f, 83.799995f, 267.68896f), 400) { Fly = true }; obj155.Steps = list225; reference167 = obj155; - ref QuestSequence reference168 = ref span77[5]; + num++; + ref QuestSequence reference168 = ref span220[num]; QuestSequence obj156 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - ref QuestStep reference169 = ref CollectionsMarshal.AsSpan(list226)[0]; + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + Span span226 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + ref QuestStep reference169 = ref span226[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Duty, null, null, 400); DutyOptions obj157 = new DutyOptions { @@ -138926,19 +167447,23 @@ public static class AssemblyQuestLoader num3 = 2; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - Span span78 = CollectionsMarshal.AsSpan(list227); - span78[0] = "(boss 1) Doesn't knock all moogles out of the rez area"; - span78[1] = "(boss 3) Stack goal zone isn't properly removed from NPC, so the character will stack even for spread markers + slide into AOEs during ice"; + Span span227 = CollectionsMarshal.AsSpan(list227); + index3 = 0; + span227[index3] = "(boss 1) Doesn't knock all moogles out of the rez area"; + index3++; + span227[index3] = "(boss 3) Stack goal zone isn't properly removed from NPC, so the character will stack even for spread markers + slide into AOEs during ice"; obj157.Notes = list227; questStep14.DutyOptions = obj157; reference169 = questStep14; obj156.Steps = list226; reference168 = obj156; - span77[6] = new QuestSequence + num++; + span220[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference170 = ref span77[7]; + num++; + ref QuestSequence reference170 = ref span220[num]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue @@ -138946,7 +167471,9 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017011u, new Vector3(-758.3887f, 123.72872f, 210.77283f), 400) + Span span228 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span228[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017011u, new Vector3(-758.3887f, 123.72872f, 210.77283f), 400) { StopDistance = 7f }; @@ -138959,21 +167486,26 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "JerryWester"; + Span span229 = CollectionsMarshal.AsSpan(list229); + index = 0; + span229[index] = "JerryWester"; questRoot28.Author = list229; - num = 5; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span79 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference171 = ref span79[0]; + index = 5; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + Span span230 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference171 = ref span230[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016813u, new Vector3(-755.30634f, 123.72871f, 210.95593f), 400) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016813u, new Vector3(-755.30634f, 123.72871f, 210.95593f), 400) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -138987,11 +167519,13 @@ public static class AssemblyQuestLoader }; obj159.Steps = list231; reference171 = obj159; - span79[1] = new QuestSequence + num++; + span230[num] = new QuestSequence { Sequence = 1 }; - ref QuestSequence reference172 = ref span79[2]; + num++; + ref QuestSequence reference172 = ref span230[num]; QuestSequence obj160 = new QuestSequence { Sequence = 2 @@ -138999,7 +167533,9 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Duty, null, null, 569) + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span232[index2] = new QuestStep(EInteractionType.Duty, null, null, 569) { DutyOptions = new DutyOptions { @@ -139008,19 +167544,23 @@ public static class AssemblyQuestLoader }; obj160.Steps = list232; reference172 = obj160; - span79[3] = new QuestSequence + num++; + span230[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference173 = ref span79[4]; + num++; + ref QuestSequence reference173 = ref span230[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016589u, new Vector3(7.4005737f, 1.2791227f, 104.35632f), 418); + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + Span span233 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span233[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016589u, new Vector3(7.4005737f, 1.2791227f, 104.35632f), 418); obj161.Steps = list233; reference173 = obj161; questRoot28.QuestSequence = list230; @@ -139030,13 +167570,16 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "JerryWester"; + Span span234 = CollectionsMarshal.AsSpan(list234); + index = 0; + span234[index] = "JerryWester"; questRoot29.Author = list234; - num = 4; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span80 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference174 = ref span80[0]; + index = 4; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + Span span235 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference174 = ref span235[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -139044,7 +167587,9 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016589u, new Vector3(7.4005737f, 1.2791227f, 104.35632f), 418) + Span span236 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span236[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016589u, new Vector3(7.4005737f, 1.2791227f, 104.35632f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -139057,18 +167602,22 @@ public static class AssemblyQuestLoader }; obj162.Steps = list236; reference174 = obj162; - ref QuestSequence reference175 = ref span80[1]; + num++; + ref QuestSequence reference175 = ref span235[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1017024u, new Vector3(110.03284f, 24.383236f, -6.4851074f), 418); + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + Span span237 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span237[num2] = new QuestStep(EInteractionType.Interact, 1017024u, new Vector3(110.03284f, 24.383236f, -6.4851074f), 418); obj163.Steps = list237; reference175 = obj163; - ref QuestSequence reference176 = ref span80[2]; + num++; + ref QuestSequence reference176 = ref span235[num]; QuestSequence obj164 = new QuestSequence { Sequence = 2 @@ -139076,7 +167625,9 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + Span span238 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span238[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -139087,20 +167638,23 @@ public static class AssemblyQuestLoader }; obj164.Steps = list238; reference176 = obj164; - ref QuestSequence reference177 = ref span80[3]; + num++; + ref QuestSequence reference177 = ref span235[num]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - Span span81 = CollectionsMarshal.AsSpan(list239); - span81[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) + index2 = 2; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + Span span239 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span239[num2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) { TargetTerritoryId = (ushort)419 }; - span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) + num2++; + span239[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) { AethernetShortcut = new AethernetShortcut { @@ -139117,13 +167671,16 @@ public static class AssemblyQuestLoader num = 1; List list240 = new List(num); CollectionsMarshal.SetCount(list240, num); - CollectionsMarshal.AsSpan(list240)[0] = "JerryWester"; + Span span240 = CollectionsMarshal.AsSpan(list240); + index = 0; + span240[index] = "JerryWester"; questRoot30.Author = list240; - num = 4; - List list241 = new List(num); - CollectionsMarshal.SetCount(list241, num); - Span span82 = CollectionsMarshal.AsSpan(list241); - ref QuestSequence reference178 = ref span82[0]; + index = 4; + List list241 = new List(index); + CollectionsMarshal.SetCount(list241, index); + Span span241 = CollectionsMarshal.AsSpan(list241); + num = 0; + ref QuestSequence reference178 = ref span241[num]; QuestSequence obj166 = new QuestSequence { Sequence = 0 @@ -139131,26 +167688,33 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418); + Span span242 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + span242[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418); obj166.Steps = list242; reference178 = obj166; - ref QuestSequence reference179 = ref span82[1]; + num++; + ref QuestSequence reference179 = ref span241[num]; QuestSequence obj167 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - ref QuestStep reference180 = ref CollectionsMarshal.AsSpan(list243)[0]; + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + Span span243 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + ref QuestStep reference180 = ref span243[num2]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 1016823u, new Vector3(124.833984f, 24.458836f, 0.62561035f), 418) { StopDistance = 4f }; - num3 = 1; - List list244 = new List(num3); - CollectionsMarshal.SetCount(list244, num3); - CollectionsMarshal.AsSpan(list244)[0] = new DialogueChoice + index3 = 1; + List list244 = new List(index3); + CollectionsMarshal.SetCount(list244, index3); + Span span244 = CollectionsMarshal.AsSpan(list244); + num3 = 0; + span244[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVND106_02247_Q1_000_000") @@ -139159,7 +167723,8 @@ public static class AssemblyQuestLoader reference180 = obj168; obj167.Steps = list243; reference179 = obj167; - ref QuestSequence reference181 = ref span82[2]; + num++; + ref QuestSequence reference181 = ref span241[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -139167,19 +167732,23 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1016828u, new Vector3(169.26831f, -14.528959f, 36.697876f), 419); + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.Interact, 1016828u, new Vector3(169.26831f, -14.528959f, 36.697876f), 419); obj169.Steps = list245; reference181 = obj169; - ref QuestSequence reference182 = ref span82[3]; + num++; + ref QuestSequence reference182 = ref span241[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span83 = CollectionsMarshal.AsSpan(list246); - span83[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + index2 = 2; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -139188,7 +167757,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - span83[1] = new QuestStep(EInteractionType.CompleteQuest, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) + num2++; + span246[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) { StopDistance = 7f }; @@ -139201,13 +167771,16 @@ public static class AssemblyQuestLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - CollectionsMarshal.AsSpan(list247)[0] = "liza"; + Span span247 = CollectionsMarshal.AsSpan(list247); + index = 0; + span247[index] = "liza"; questRoot31.Author = list247; - num = 7; - List list248 = new List(num); - CollectionsMarshal.SetCount(list248, num); - Span span84 = CollectionsMarshal.AsSpan(list248); - ref QuestSequence reference183 = ref span84[0]; + index = 7; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + Span span248 = CollectionsMarshal.AsSpan(list248); + num = 0; + ref QuestSequence reference183 = ref span248[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 @@ -139215,24 +167788,30 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014402u, new Vector3(-42.37433f, 100.87579f, -183.21509f), 399); + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014402u, new Vector3(-42.37433f, 100.87579f, -183.21509f), 399); obj171.Steps = list249; reference183 = obj171; - ref QuestSequence reference184 = ref span84[1]; + num++; + ref QuestSequence reference184 = ref span248[num]; QuestSequence obj172 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1016635u, new Vector3(-237.07947f, 123.32269f, -209.76581f), 399) + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span250 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span250[num2] = new QuestStep(EInteractionType.Interact, 1016635u, new Vector3(-237.07947f, 123.32269f, -209.76581f), 399) { Fly = true }; obj172.Steps = list250; reference184 = obj172; - ref QuestSequence reference185 = ref span84[2]; + num++; + ref QuestSequence reference185 = ref span248[num]; QuestSequence obj173 = new QuestSequence { Sequence = 2 @@ -139240,27 +167819,33 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1014408u, new Vector3(-36.30127f, 100.96971f, -182.90991f), 399) + Span span251 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span251[index2] = new QuestStep(EInteractionType.Interact, 1014408u, new Vector3(-36.30127f, 100.96971f, -182.90991f), 399) { Fly = true }; obj173.Steps = list251; reference185 = obj173; - ref QuestSequence reference186 = ref span84[3]; + num++; + ref QuestSequence reference186 = ref span248[num]; QuestSequence obj174 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.Interact, 1016636u, new Vector3(53.910034f, 71.85243f, 76.76807f), 399) + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.Interact, 1016636u, new Vector3(53.910034f, 71.85243f, 76.76807f), 399) { Fly = true }; obj174.Steps = list252; reference186 = obj174; - ref QuestSequence reference187 = ref span84[4]; + num++; + ref QuestSequence reference187 = ref span248[num]; QuestSequence obj175 = new QuestSequence { Sequence = 4 @@ -139268,21 +167853,26 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1016642u, new Vector3(-94.98743f, 53.987366f, 180.46838f), 399) + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.Interact, 1016642u, new Vector3(-94.98743f, 53.987366f, 180.46838f), 399) { Fly = true }; obj175.Steps = list253; reference187 = obj175; - ref QuestSequence reference188 = ref span84[5]; + num++; + ref QuestSequence reference188 = ref span248[num]; QuestSequence obj176 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -139291,7 +167881,8 @@ public static class AssemblyQuestLoader }; obj176.Steps = list254; reference188 = obj176; - ref QuestSequence reference189 = ref span84[6]; + num++; + ref QuestSequence reference189 = ref span248[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -139299,7 +167890,9 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) + Span span255 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span255[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2250) @@ -139317,13 +167910,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -139331,21 +167927,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016637u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016637u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -139354,7 +167955,8 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -139362,7 +167964,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2251) @@ -139376,27 +167980,33 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; + Span span6 = CollectionsMarshal.AsSpan(list6); + index = 0; + span6[index] = "liza"; questRoot2.Author = list6; - num = 3; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span2 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span2[0]; + index = 3; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + Span span7 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span7[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) { StopDistance = 5f }; obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span2[1]; + num++; + ref QuestSequence reference5 = ref span7[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -139404,7 +168014,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -139413,15 +168025,18 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[2]; + num++; + ref QuestSequence reference6 = ref span7[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2252) @@ -139435,13 +168050,16 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "liza"; + Span span11 = CollectionsMarshal.AsSpan(list11); + index = 0; + span11[index] = "liza"; questRoot3.Author = list11; - num = 3; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span3 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference7 = ref span3[0]; + index = 3; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + Span span12 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference7 = ref span12[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -139449,21 +168067,26 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) { StopDistance = 5f }; obj7.Steps = list13; reference7 = obj7; - ref QuestSequence reference8 = ref span3[1]; + num++; + ref QuestSequence reference8 = ref span12[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -139472,7 +168095,8 @@ public static class AssemblyQuestLoader }; obj8.Steps = list14; reference8 = obj8; - ref QuestSequence reference9 = ref span3[2]; + num++; + ref QuestSequence reference9 = ref span12[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -139480,8 +168104,9 @@ public static class AssemblyQuestLoader num2 = 2; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span4 = CollectionsMarshal.AsSpan(list15); - ref QuestStep reference10 = ref span4[0]; + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref QuestStep reference10 = ref span15[index2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2007003u, new Vector3(0f, -67f, 15.5f), 553) { TargetTerritoryId = (ushort)399 @@ -139491,12 +168116,15 @@ public static class AssemblyQuestLoader int num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = 553; + Span span16 = CollectionsMarshal.AsSpan(list16); + int index3 = 0; + span16[index3] = 553; skipStepConditions.NotInTerritory = list16; skipConditions.StepIf = skipStepConditions; obj10.SkipConditions = skipConditions; reference10 = obj10; - span4[1] = new QuestStep(EInteractionType.CompleteQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) + index2++; + span15[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2253) @@ -139510,27 +168138,33 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "liza"; questRoot4.Author = list17; - num = 5; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span5 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference11 = ref span5[0]; + index = 5; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference11 = ref span18[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) { StopDistance = 5f }; obj11.Steps = list19; reference11 = obj11; - ref QuestSequence reference12 = ref span5[1]; + num++; + ref QuestSequence reference12 = ref span18[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -139538,24 +168172,30 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1017001u, new Vector3(-38.651123f, 100.943344f, -182.17749f), 399) + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new QuestStep(EInteractionType.Interact, 1017001u, new Vector3(-38.651123f, 100.943344f, -182.17749f), 399) { StopDistance = 5f }; obj12.Steps = list20; reference12 = obj12; - ref QuestSequence reference13 = ref span5[2]; + num++; + ref QuestSequence reference13 = ref span18[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 2006957u, new Vector3(-36.78955f, 100.96887f, -184.25275f), 399); + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.Interact, 2006957u, new Vector3(-36.78955f, 100.96887f, -184.25275f), 399); obj13.Steps = list21; reference13 = obj13; - ref QuestSequence reference14 = ref span5[3]; + num++; + ref QuestSequence reference14 = ref span18[num]; QuestSequence obj14 = new QuestSequence { Sequence = 3 @@ -139563,18 +168203,23 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1016641u, new Vector3(-49.94281f, 100.66968f, -148.45508f), 399); + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.Interact, 1016641u, new Vector3(-49.94281f, 100.66968f, -148.45508f), 399); obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference15 = ref span5[4]; + num++; + ref QuestSequence reference15 = ref span18[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016638u, new Vector3(-42.4964f, 100.873566f, -183.12354f), 399) + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016638u, new Vector3(-42.4964f, 100.873566f, -183.12354f), 399) { Fly = true, NextQuestId = new QuestId(2335) @@ -139588,13 +168233,16 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "liza"; + Span span24 = CollectionsMarshal.AsSpan(list24); + index = 0; + span24[index] = "liza"; questRoot5.Author = list24; - num = 10; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span6 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference16 = ref span6[0]; + index = 10; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + Span span25 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference16 = ref span25[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -139602,28 +168250,34 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true }; obj16.Steps = list26; reference16 = obj16; - ref QuestSequence reference17 = ref span6[1]; + num++; + ref QuestSequence reference17 = ref span25[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1016835u, new Vector3(447.37915f, -51.141407f, 108.53735f), 398) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.Interact, 1016835u, new Vector3(447.37915f, -51.141407f, 108.53735f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj17.Steps = list27; reference17 = obj17; - ref QuestSequence reference18 = ref span6[2]; + num++; + ref QuestSequence reference18 = ref span25[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -139631,15 +168285,19 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list28)[0]; + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + ref QuestStep reference19 = ref span28[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1016836u, new Vector3(212.42078f, -58.007248f, -228.07666f), 398) { Fly = true }; - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = new DialogueChoice + index3 = 1; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span29[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANGNA001_02255_Q1_000_031"), @@ -139649,15 +168307,18 @@ public static class AssemblyQuestLoader reference19 = obj19; obj18.Steps = list28; reference18 = obj18; - ref QuestSequence reference20 = ref span6[3]; + num++; + ref QuestSequence reference20 = ref span25[num]; QuestSequence obj20 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list30)[0]; + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + ref QuestStep reference21 = ref span30[num2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 2006874u, new Vector3(222.156f, -74.93713f, 122.51465f), 398) { Fly = true, @@ -139666,12 +168327,15 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = 5540u; + Span span31 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span31[index3] = 5540u; obj21.KillEnemyDataIds = list31; reference21 = obj21; obj20.Steps = list30; reference20 = obj20; - ref QuestSequence reference22 = ref span6[4]; + num++; + ref QuestSequence reference22 = ref span25[num]; QuestSequence obj22 = new QuestSequence { Sequence = 4 @@ -139679,30 +168343,36 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1016836u, new Vector3(212.42078f, -58.007248f, -228.07666f), 398) + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.Interact, 1016836u, new Vector3(212.42078f, -58.007248f, -228.07666f), 398) { Fly = true }; obj22.Steps = list32; reference22 = obj22; - ref QuestSequence reference23 = ref span6[5]; + num++; + ref QuestSequence reference23 = ref span25[num]; QuestSequence obj23 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span7 = CollectionsMarshal.AsSpan(list33); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(471.25446f, -51.141403f, 35.94126f), 398) + index2 = 2; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(471.25446f, -51.141403f, 35.94126f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span7[1] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); + num2++; + span33[num2] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); obj23.Steps = list33; reference23 = obj23; - ref QuestSequence reference24 = ref span6[6]; + num++; + ref QuestSequence reference24 = ref span25[num]; QuestSequence obj24 = new QuestSequence { Sequence = 6 @@ -139710,29 +168380,35 @@ public static class AssemblyQuestLoader num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span8 = CollectionsMarshal.AsSpan(list34); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(471.25446f, -51.141403f, 35.94126f), 398) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(471.25446f, -51.141403f, 35.94126f), 398) { Mount = true }; - span8[1] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2++; + span34[index2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true }; obj24.Steps = list34; reference24 = obj24; - ref QuestSequence reference25 = ref span6[7]; + num++; + ref QuestSequence reference25 = ref span25[num]; QuestSequence obj25 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1016837u, new Vector3(58.88452f, -48.000004f, -171.06891f), 398); + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.Interact, 1016837u, new Vector3(58.88452f, -48.000004f, -171.06891f), 398); obj25.Steps = list35; reference25 = obj25; - ref QuestSequence reference26 = ref span6[8]; + num++; + ref QuestSequence reference26 = ref span25[num]; QuestSequence obj26 = new QuestSequence { Sequence = 8 @@ -139740,36 +168416,43 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Action, null, new Vector3(215.13696f, -87.32745f, 217.94458f), 398) + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.Action, null, new Vector3(215.13696f, -87.32745f, 217.94458f), 398) { Fly = true, Action = EAction.Fumigate }; obj26.Steps = list36; reference26 = obj26; - ref QuestSequence reference27 = ref span6[9]; + num++; + ref QuestSequence reference27 = ref span25[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span9 = CollectionsMarshal.AsSpan(list37); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.88452f, -48.000004f, -171.06891f), 398) + index2 = 2; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.88452f, -48.000004f, -171.06891f), 398) { StopDistance = 2f, Fly = true }; - ref QuestStep reference28 = ref span9[1]; + num2++; + ref QuestStep reference28 = ref span37[num2]; QuestStep obj28 = new QuestStep(EInteractionType.CompleteQuest, 1016837u, new Vector3(58.88452f, -48.000004f, -171.06891f), 398) { Mount = false }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice + index3 = 1; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANGNA001_02255_Q1_000_105"), @@ -139786,13 +168469,16 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "AnimaMachinae"; + Span span39 = CollectionsMarshal.AsSpan(list39); + index = 0; + span39[index] = "AnimaMachinae"; questRoot6.Author = list39; - num = 10; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span10 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference29 = ref span10[0]; + index = 10; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + Span span40 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference29 = ref span40[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -139800,7 +168486,9 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, Land = true, @@ -139815,15 +168503,18 @@ public static class AssemblyQuestLoader }; obj29.Steps = list41; reference29 = obj29; - ref QuestSequence reference30 = ref span10[1]; + num++; + ref QuestSequence reference30 = ref span40[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - ref QuestStep reference31 = ref CollectionsMarshal.AsSpan(list42)[0]; + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + ref QuestStep reference31 = ref span42[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, 1016841u, new Vector3(842.9846f, -8.926968f, 338.2467f), 398) { Fly = true, @@ -139834,12 +168525,15 @@ public static class AssemblyQuestLoader num3 = 1; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = 5541u; + Span span43 = CollectionsMarshal.AsSpan(list43); + index3 = 0; + span43[index3] = 5541u; obj31.KillEnemyDataIds = list43; reference31 = obj31; obj30.Steps = list42; reference30 = obj30; - ref QuestSequence reference32 = ref span10[2]; + num++; + ref QuestSequence reference32 = ref span40[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -139847,31 +168541,37 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Interact, 1016841u, new Vector3(842.9846f, -8.926968f, 338.2467f), 398); + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.Interact, 1016841u, new Vector3(842.9846f, -8.926968f, 338.2467f), 398); obj32.Steps = list44; reference32 = obj32; - ref QuestSequence reference33 = ref span10[3]; + num++; + ref QuestSequence reference33 = ref span40[num]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - Span span11 = CollectionsMarshal.AsSpan(list45); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(875.1023f, -3.6736863f, 355.24545f), 398) + index2 = 2; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span45[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(875.1023f, -3.6736863f, 355.24545f), 398) { Fly = true, Land = true }; - span11[1] = new QuestStep(EInteractionType.Interact, 1016842u, new Vector3(-791.9585f, 113.93191f, -624.59753f), 397) + num2++; + span45[num2] = new QuestStep(EInteractionType.Interact, 1016842u, new Vector3(-791.9585f, 113.93191f, -624.59753f), 397) { Fly = true, Land = true }; obj33.Steps = list45; reference33 = obj33; - ref QuestSequence reference34 = ref span10[4]; + num++; + ref QuestSequence reference34 = ref span40[num]; QuestSequence obj34 = new QuestSequence { Sequence = 4 @@ -139879,28 +168579,34 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.Interact, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) { Fly = true, Land = true }; obj34.Steps = list46; reference34 = obj34; - ref QuestSequence reference35 = ref span10[5]; + num++; + ref QuestSequence reference35 = ref span40[num]; QuestSequence obj35 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.UseItem, 2006877u, new Vector3(-276.63086f, 122.27051f, -45.02942f), 397) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.UseItem, 2006877u, new Vector3(-276.63086f, 122.27051f, -45.02942f), 397) { ItemId = 2001950u }; obj35.Steps = list47; reference35 = obj35; - ref QuestSequence reference36 = ref span10[6]; + num++; + ref QuestSequence reference36 = ref span40[num]; QuestSequence obj36 = new QuestSequence { Sequence = 6 @@ -139908,18 +168614,23 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1016890u, new Vector3(-273.91473f, 122.361694f, -43.320435f), 397); + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.Interact, 1016890u, new Vector3(-273.91473f, 122.361694f, -43.320435f), 397); obj36.Steps = list48; reference36 = obj36; - ref QuestSequence reference37 = ref span10[7]; + num++; + ref QuestSequence reference37 = ref span40[num]; QuestSequence obj37 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true, Land = true, @@ -139927,7 +168638,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list49; reference37 = obj37; - ref QuestSequence reference38 = ref span10[8]; + num++; + ref QuestSequence reference38 = ref span40[num]; QuestSequence obj38 = new QuestSequence { Sequence = 8 @@ -139935,22 +168647,27 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1016843u, new Vector3(103.16626f, -50.70595f, -184.31378f), 398) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.Interact, 1016843u, new Vector3(103.16626f, -50.70595f, -184.31378f), 398) { Fly = true, Land = true }; obj38.Steps = list50; reference38 = obj38; - ref QuestSequence reference39 = ref span10[9]; + num++; + ref QuestSequence reference39 = ref span40[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, Land = true @@ -139964,13 +168681,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "Theo"; + Span span52 = CollectionsMarshal.AsSpan(list52); + index = 0; + span52[index] = "Theo"; questRoot7.Author = list52; - num = 11; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span12 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference40 = ref span12[0]; + index = 11; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + Span span53 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference40 = ref span53[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -139978,7 +168698,9 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -139992,34 +168714,40 @@ public static class AssemblyQuestLoader }; obj40.Steps = list54; reference40 = obj40; - ref QuestSequence reference41 = ref span12[1]; + num++; + ref QuestSequence reference41 = ref span53[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span13 = CollectionsMarshal.AsSpan(list55); - span13[0] = new QuestStep(EInteractionType.Interact, 1016844u, new Vector3(-743.0991f, -117.75057f, 574.85315f), 398) + index2 = 2; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.Interact, 1016844u, new Vector3(-743.0991f, -117.75057f, 574.85315f), 398) { Fly = true }; - ref QuestStep reference42 = ref span13[1]; + num2++; + ref QuestStep reference42 = ref span55[num2]; QuestStep obj42 = new QuestStep(EInteractionType.Combat, 5542u, new Vector3(-731.547f, -116.99814f, 577.7823f), 398) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = 5542u; + index3 = 1; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + Span span56 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span56[num3] = 5542u; obj42.KillEnemyDataIds = list56; obj42.CombatDelaySecondsAtStart = 3f; reference42 = obj42; obj41.Steps = list55; reference41 = obj41; - ref QuestSequence reference43 = ref span12[2]; + num++; + ref QuestSequence reference43 = ref span53[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -140027,19 +168755,23 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1016844u, new Vector3(-743.0991f, -117.75057f, 574.85315f), 398); + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.Interact, 1016844u, new Vector3(-743.0991f, -117.75057f, 574.85315f), 398); obj43.Steps = list57; reference43 = obj43; - ref QuestSequence reference44 = ref span12[3]; + num++; + ref QuestSequence reference44 = ref span53[num]; QuestSequence obj44 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - Span span14 = CollectionsMarshal.AsSpan(list58); - ref QuestStep reference45 = ref span14[0]; + index2 = 2; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + ref QuestStep reference45 = ref span58[num2]; QuestStep obj45 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-802.4346f, -122.50925f, 578.51434f), 398) { Fly = true @@ -140049,18 +168781,22 @@ public static class AssemblyQuestLoader num3 = 1; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = 399; + Span span59 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span59[index3] = 399; skipStepConditions2.InTerritory = list59; skipConditions2.StepIf = skipStepConditions2; obj45.SkipConditions = skipConditions2; reference45 = obj45; - span14[1] = new QuestStep(EInteractionType.Interact, 1016845u, new Vector3(508.72046f, 77.65831f, 119.21863f), 399) + num2++; + span58[num2] = new QuestStep(EInteractionType.Interact, 1016845u, new Vector3(508.72046f, 77.65831f, 119.21863f), 399) { Fly = true }; obj44.Steps = list58; reference44 = obj44; - ref QuestSequence reference46 = ref span12[4]; + num++; + ref QuestSequence reference46 = ref span53[num]; QuestSequence obj46 = new QuestSequence { Sequence = 4 @@ -140068,7 +168804,9 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.Interact, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -140081,18 +168819,22 @@ public static class AssemblyQuestLoader }; obj46.Steps = list60; reference46 = obj46; - ref QuestSequence reference47 = ref span12[5]; + num++; + ref QuestSequence reference47 = ref span53[num]; QuestSequence obj47 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1012132u, new Vector3(43.015137f, 206.04718f, 56.50415f), 478); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.Interact, 1012132u, new Vector3(43.015137f, 206.04718f, 56.50415f), 478); obj47.Steps = list61; reference47 = obj47; - ref QuestSequence reference48 = ref span12[6]; + num++; + ref QuestSequence reference48 = ref span53[num]; QuestSequence obj48 = new QuestSequence { Sequence = 6 @@ -140100,37 +168842,44 @@ public static class AssemblyQuestLoader num2 = 2; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span15 = CollectionsMarshal.AsSpan(list62); - ref QuestStep reference49 = ref span15[0]; + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + ref QuestStep reference49 = ref span62[index2]; QuestStep obj49 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(147.913f, 207f, 118.226494f), 478) { Mount = true }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - CollectionsMarshal.AsSpan(list63)[0] = 399; + index3 = 1; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + Span span63 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span63[num3] = 399; skipStepConditions3.InTerritory = list63; skipConditions3.StepIf = skipStepConditions3; obj49.SkipConditions = skipConditions3; reference49 = obj49; - span15[1] = new QuestStep(EInteractionType.Interact, 1016996u, new Vector3(-85.80151f, 100.87653f, -325.185f), 399) + index2++; + span62[index2] = new QuestStep(EInteractionType.Interact, 1016996u, new Vector3(-85.80151f, 100.87653f, -325.185f), 399) { Fly = true }; obj48.Steps = list62; reference48 = obj48; - ref QuestSequence reference50 = ref span12[7]; + num++; + ref QuestSequence reference50 = ref span53[num]; QuestSequence obj50 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -140144,7 +168893,8 @@ public static class AssemblyQuestLoader }; obj50.Steps = list64; reference50 = obj50; - ref QuestSequence reference51 = ref span12[8]; + num++; + ref QuestSequence reference51 = ref span53[num]; QuestSequence obj51 = new QuestSequence { Sequence = 8 @@ -140152,21 +168902,26 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1016848u, new Vector3(286.7627f, -112.2676f, 424.55164f), 398) + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.Interact, 1016848u, new Vector3(286.7627f, -112.2676f, 424.55164f), 398) { Fly = true }; obj51.Steps = list65; reference51 = obj51; - ref QuestSequence reference52 = ref span12[9]; + num++; + ref QuestSequence reference52 = ref span53[num]; QuestSequence obj52 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Say, 1016848u, new Vector3(286.7627f, -112.2676f, 424.55164f), 398) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.Say, 1016848u, new Vector3(286.7627f, -112.2676f, 424.55164f), 398) { ChatMessage = new ChatMessage { @@ -140175,7 +168930,8 @@ public static class AssemblyQuestLoader }; obj52.Steps = list66; reference52 = obj52; - ref QuestSequence reference53 = ref span12[10]; + num++; + ref QuestSequence reference53 = ref span53[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -140183,7 +168939,9 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true }; @@ -140196,21 +168954,26 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "Theo"; + Span span68 = CollectionsMarshal.AsSpan(list68); + index = 0; + span68[index] = "Theo"; questRoot8.Author = list68; - num = 9; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span16 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference54 = ref span16[0]; + index = 9; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + Span span69 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference54 = ref span69[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -140224,7 +168987,8 @@ public static class AssemblyQuestLoader }; obj54.Steps = list70; reference54 = obj54; - ref QuestSequence reference55 = ref span16[1]; + num++; + ref QuestSequence reference55 = ref span69[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -140232,7 +168996,9 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1016849u, new Vector3(-209.46063f, -46.08357f, 222.52222f), 398) + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.Interact, 1016849u, new Vector3(-209.46063f, -46.08357f, 222.52222f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -140246,21 +169012,25 @@ public static class AssemblyQuestLoader }; obj55.Steps = list71; reference55 = obj55; - ref QuestSequence reference56 = ref span16[2]; + num++; + ref QuestSequence reference56 = ref span69[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { Fly = true }; obj56.Steps = list72; reference56 = obj56; - ref QuestSequence reference57 = ref span16[3]; + num++; + ref QuestSequence reference57 = ref span69[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 @@ -140268,7 +169038,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list73)[0]; + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + ref QuestStep reference58 = ref span73[index2]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1016850u, new Vector3(-187.36554f, -34.771328f, -70.42041f), 398) { Fly = true @@ -140276,7 +169048,9 @@ public static class AssemblyQuestLoader num3 = 1; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - CollectionsMarshal.AsSpan(list74)[0] = new DialogueChoice + Span span74 = CollectionsMarshal.AsSpan(list74); + index3 = 0; + span74[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANGNA004_02258_Q1_000_051"), @@ -140286,64 +169060,84 @@ public static class AssemblyQuestLoader reference58 = obj58; obj57.Steps = list73; reference57 = obj57; - ref QuestSequence reference59 = ref span16[4]; + num++; + ref QuestSequence reference59 = ref span69[num]; QuestSequence obj59 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - Span span17 = CollectionsMarshal.AsSpan(list75); - ref QuestStep reference60 = ref span17[0]; + index2 = 2; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + ref QuestStep reference60 = ref span75[num2]; QuestStep obj60 = new QuestStep(EInteractionType.Combat, null, new Vector3(-68.02277f, -33.766434f, -164.5872f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = 5543u; + index3 = 1; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + Span span76 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span76[num3] = 5543u; obj60.KillEnemyDataIds = list76; num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - Span span18 = CollectionsMarshal.AsSpan(list77); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span77 = CollectionsMarshal.AsSpan(list77); + index3 = 0; + span77[index3] = null; + index3++; + span77[index3] = null; + index3++; + span77[index3] = null; + index3++; + span77[index3] = null; + index3++; + span77[index3] = null; + index3++; + span77[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj60.CompletionQuestVariablesFlags = list77; reference60 = obj60; - ref QuestStep reference61 = ref span17[1]; + num2++; + ref QuestStep reference61 = ref span75[num2]; QuestStep obj61 = new QuestStep(EInteractionType.Combat, null, new Vector3(-67.26527f, -34.505165f, 89.80089f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = 5543u; + index3 = 1; + List list78 = new List(index3); + CollectionsMarshal.SetCount(list78, index3); + Span span78 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span78[num3] = 5543u; obj61.KillEnemyDataIds = list78; num3 = 6; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - Span span19 = CollectionsMarshal.AsSpan(list79); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span79 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span79[index3] = null; + index3++; + span79[index3] = null; + index3++; + span79[index3] = null; + index3++; + span79[index3] = null; + index3++; + span79[index3] = null; + index3++; + span79[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj61.CompletionQuestVariablesFlags = list79; reference61 = obj61; obj59.Steps = list75; reference59 = obj59; - ref QuestSequence reference62 = ref span16[5]; + num++; + ref QuestSequence reference62 = ref span69[num]; QuestSequence obj62 = new QuestSequence { Sequence = 5 @@ -140351,24 +169145,30 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1016850u, new Vector3(-187.36554f, -34.771328f, -70.42041f), 398) + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.Interact, 1016850u, new Vector3(-187.36554f, -34.771328f, -70.42041f), 398) { Fly = true }; obj62.Steps = list80; reference62 = obj62; - ref QuestSequence reference63 = ref span16[6]; + num++; + ref QuestSequence reference63 = ref span69[num]; QuestSequence obj63 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1016850u, new Vector3(-187.36554f, -34.771328f, -70.42041f), 398); + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.Interact, 1016850u, new Vector3(-187.36554f, -34.771328f, -70.42041f), 398); obj63.Steps = list81; reference63 = obj63; - ref QuestSequence reference64 = ref span16[7]; + num++; + ref QuestSequence reference64 = ref span69[num]; QuestSequence obj64 = new QuestSequence { Sequence = 7 @@ -140376,21 +169176,26 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { Fly = true }; obj64.Steps = list82; reference64 = obj64; - ref QuestSequence reference65 = ref span16[8]; + num++; + ref QuestSequence reference65 = ref span69[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true }; @@ -140403,13 +169208,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "Censored"; + Span span84 = CollectionsMarshal.AsSpan(list84); + index = 0; + span84[index] = "Censored"; questRoot9.Author = list84; - num = 6; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span20 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference66 = ref span20[0]; + index = 6; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference66 = ref span85[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -140417,7 +169225,9 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -140436,21 +169246,25 @@ public static class AssemblyQuestLoader }; obj66.Steps = list86; reference66 = obj66; - ref QuestSequence reference67 = ref span20[1]; + num++; + ref QuestSequence reference67 = ref span85[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true }; obj67.Steps = list87; reference67 = obj67; - ref QuestSequence reference68 = ref span20[2]; + num++; + ref QuestSequence reference68 = ref span85[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -140458,34 +169272,42 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list88)[0]; + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + ref QuestStep reference69 = ref span88[index2]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, null, new Vector3(230.88948f, -103.47084f, 588.0345f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - Span span21 = CollectionsMarshal.AsSpan(list89); - span21[0] = 5544u; - span21[1] = 5545u; + index3 = 2; + List list89 = new List(index3); + CollectionsMarshal.SetCount(list89, index3); + Span span89 = CollectionsMarshal.AsSpan(list89); + num3 = 0; + span89[num3] = 5544u; + num3++; + span89[num3] = 5545u; obj69.KillEnemyDataIds = list89; reference69 = obj69; obj68.Steps = list88; reference68 = obj68; - ref QuestSequence reference70 = ref span20[3]; + num++; + ref QuestSequence reference70 = ref span85[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1016851u, new Vector3(230.88416f, -103.38962f, 588.67773f), 398); + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.Interact, 1016851u, new Vector3(230.88416f, -103.38962f, 588.67773f), 398); obj70.Steps = list90; reference70 = obj70; - ref QuestSequence reference71 = ref span20[4]; + num++; + ref QuestSequence reference71 = ref span85[num]; QuestSequence obj71 = new QuestSequence { Sequence = 4 @@ -140493,21 +169315,26 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1016891u, new Vector3(297.2915f, -119.91257f, 681.1168f), 398) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.Interact, 1016891u, new Vector3(297.2915f, -119.91257f, 681.1168f), 398) { Fly = true }; obj71.Steps = list91; reference71 = obj71; - ref QuestSequence reference72 = ref span20[5]; + num++; + ref QuestSequence reference72 = ref span85[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine @@ -140521,13 +169348,16 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "plogon_enjoyer"; + Span span93 = CollectionsMarshal.AsSpan(list93); + index = 0; + span93[index] = "plogon_enjoyer"; questRoot10.Author = list93; - num = 2; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span22 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference73 = ref span22[0]; + index = 2; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + Span span94 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference73 = ref span94[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 @@ -140535,18 +169365,23 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398); + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398); obj73.Steps = list95; reference73 = obj73; - ref QuestSequence reference74 = ref span22[1]; + num++; + ref QuestSequence reference74 = ref span94[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true }; @@ -140559,13 +169394,16 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "plogon_enjoyer"; + Span span97 = CollectionsMarshal.AsSpan(list97); + index = 0; + span97[index] = "plogon_enjoyer"; questRoot11.Author = list97; - num = 3; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span23 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference75 = ref span23[0]; + index = 3; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference75 = ref span98[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -140573,19 +169411,23 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj75.Steps = list99; reference75 = obj75; - ref QuestSequence reference76 = ref span23[1]; + num++; + ref QuestSequence reference76 = ref span98[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span24 = CollectionsMarshal.AsSpan(list100); - ref QuestStep reference77 = ref span24[0]; + index2 = 3; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference77 = ref span100[num2]; QuestStep obj77 = new QuestStep(EInteractionType.Combat, 2006883u, new Vector3(31.418213f, -65.32391f, 111.74182f), 398) { Fly = true, @@ -140594,28 +169436,35 @@ public static class AssemblyQuestLoader num3 = 1; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = 5550u; + Span span101 = CollectionsMarshal.AsSpan(list101); + index3 = 0; + span101[index3] = 5550u; obj77.KillEnemyDataIds = list101; reference77 = obj77; - ref QuestStep reference78 = ref span24[1]; + num2++; + ref QuestStep reference78 = ref span100[num2]; QuestStep obj78 = new QuestStep(EInteractionType.Combat, 2006882u, new Vector3(307.05725f, -66.54462f, 163.43933f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = 5550u; + index3 = 1; + List list102 = new List(index3); + CollectionsMarshal.SetCount(list102, index3); + Span span102 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span102[num3] = 5550u; obj78.KillEnemyDataIds = list102; reference78 = obj78; - span24[2] = new QuestStep(EInteractionType.Interact, 2006881u, new Vector3(352.25452f, -51.07196f, -46.982605f), 398) + num2++; + span100[num2] = new QuestStep(EInteractionType.Interact, 2006881u, new Vector3(352.25452f, -51.07196f, -46.982605f), 398) { Fly = true }; obj76.Steps = list100; reference76 = obj76; - ref QuestSequence reference79 = ref span23[2]; + num++; + ref QuestSequence reference79 = ref span98[num]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue @@ -140623,12 +169472,14 @@ public static class AssemblyQuestLoader num2 = 2; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span25 = CollectionsMarshal.AsSpan(list103); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span103[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - span25[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span103[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj79.Steps = list103; reference79 = obj79; questRoot11.QuestSequence = list98; @@ -140638,24 +169489,30 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "plogon_enjoyer"; + Span span104 = CollectionsMarshal.AsSpan(list104); + index = 0; + span104[index] = "plogon_enjoyer"; questRoot12.Author = list104; - num = 5; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span26 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference80 = ref span26[0]; + index = 5; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + Span span105 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference80 = ref span105[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj80.Steps = list106; reference80 = obj80; - ref QuestSequence reference81 = ref span26[1]; + num++; + ref QuestSequence reference81 = ref span105[num]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -140663,38 +169520,45 @@ public static class AssemblyQuestLoader num2 = 3; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span27 = CollectionsMarshal.AsSpan(list107); - span27[0] = new QuestStep(EInteractionType.Interact, 2006886u, new Vector3(237.65918f, -71.45807f, 99.01575f), 398) + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new QuestStep(EInteractionType.Interact, 2006886u, new Vector3(237.65918f, -71.45807f, 99.01575f), 398) { Fly = true }; - span27[1] = new QuestStep(EInteractionType.Interact, 2006885u, new Vector3(284.5349f, -67.61273f, 83.878784f), 398) + index2++; + span107[index2] = new QuestStep(EInteractionType.Interact, 2006885u, new Vector3(284.5349f, -67.61273f, 83.878784f), 398) { Fly = true }; - span27[2] = new QuestStep(EInteractionType.Interact, 2006884u, new Vector3(294.94165f, -68.92505f, 129.19812f), 398) + index2++; + span107[index2] = new QuestStep(EInteractionType.Interact, 2006884u, new Vector3(294.94165f, -68.92505f, 129.19812f), 398) { Fly = true }; obj81.Steps = list107; reference81 = obj81; - ref QuestSequence reference82 = ref span26[2]; + num++; + ref QuestSequence reference82 = ref span105[num]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - Span span28 = CollectionsMarshal.AsSpan(list108); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - span28[1] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span108[num2] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj82.Steps = list108; reference82 = obj82; - ref QuestSequence reference83 = ref span26[3]; + num++; + ref QuestSequence reference83 = ref span105[num]; QuestSequence obj83 = new QuestSequence { Sequence = 3 @@ -140702,32 +169566,37 @@ public static class AssemblyQuestLoader num2 = 2; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span29 = CollectionsMarshal.AsSpan(list109); - span29[0] = new QuestStep(EInteractionType.Interact, 1011917u, new Vector3(535.30164f, -51.340645f, 65.293335f), 398) + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.Interact, 1011917u, new Vector3(535.30164f, -51.340645f, 65.293335f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span29[1] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398) + index2++; + span109[index2] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398) { Fly = true }; obj83.Steps = list109; reference83 = obj83; - ref QuestSequence reference84 = ref span26[4]; + num++; + ref QuestSequence reference84 = ref span105[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span30 = CollectionsMarshal.AsSpan(list110); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span110[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span110[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj84.Steps = list110; reference84 = obj84; questRoot12.QuestSequence = list105; @@ -140737,13 +169606,16 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "plogon_enjoyer"; + Span span111 = CollectionsMarshal.AsSpan(list111); + index = 0; + span111[index] = "plogon_enjoyer"; questRoot13.Author = list111; - num = 6; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span31 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference85 = ref span31[0]; + index = 6; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + Span span112 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference85 = ref span112[num]; QuestSequence obj85 = new QuestSequence { Sequence = 0 @@ -140751,19 +169623,23 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj85.Steps = list113; reference85 = obj85; - ref QuestSequence reference86 = ref span31[1]; + num++; + ref QuestSequence reference86 = ref span112[num]; QuestSequence obj86 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span32 = CollectionsMarshal.AsSpan(list114); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.20459f, -48.533592f, -171.12994f), 398) + index2 = 2; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.20459f, -48.533592f, -171.12994f), 398) { StopDistance = 2.5f, Fly = true, @@ -140780,10 +169656,12 @@ public static class AssemblyQuestLoader } } }; - span32[1] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); + num2++; + span114[num2] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); obj86.Steps = list114; reference86 = obj86; - ref QuestSequence reference87 = ref span31[2]; + num++; + ref QuestSequence reference87 = ref span112[num]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -140791,29 +169669,35 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Action, 2006887u, new Vector3(523.4302f, -50.370117f, 90.86743f), 398) + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.Action, 2006887u, new Vector3(523.4302f, -50.370117f, 90.86743f), 398) { Fly = true, Action = EAction.Fumigate }; obj87.Steps = list115; reference87 = obj87; - ref QuestSequence reference88 = ref span31[3]; + num++; + ref QuestSequence reference88 = ref span112[num]; QuestSequence obj88 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Action, 2006970u, new Vector3(517.4791f, -50.644714f, 89.00586f), 398) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.Action, 2006970u, new Vector3(517.4791f, -50.644714f, 89.00586f), 398) { Fly = true, Action = EAction.Fumigate }; obj88.Steps = list116; reference88 = obj88; - ref QuestSequence reference89 = ref span31[4]; + num++; + ref QuestSequence reference89 = ref span112[num]; QuestSequence obj89 = new QuestSequence { Sequence = 4 @@ -140821,34 +169705,39 @@ public static class AssemblyQuestLoader num2 = 2; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span33 = CollectionsMarshal.AsSpan(list117); - span33[0] = new QuestStep(EInteractionType.Action, 2006889u, new Vector3(689.7229f, -52.262207f, 62.088867f), 398) + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.Action, 2006889u, new Vector3(689.7229f, -52.262207f, 62.088867f), 398) { Fly = true, Action = EAction.Fumigate }; - span33[1] = new QuestStep(EInteractionType.Action, 2006888u, new Vector3(586.1753f, -37.979797f, 257.3739f), 398) + index2++; + span117[index2] = new QuestStep(EInteractionType.Action, 2006888u, new Vector3(586.1753f, -37.979797f, 257.3739f), 398) { Fly = true, Action = EAction.Fumigate }; obj89.Steps = list117; reference89 = obj89; - ref QuestSequence reference90 = ref span31[5]; + num++; + ref QuestSequence reference90 = ref span112[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span34 = CollectionsMarshal.AsSpan(list118); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - span34[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span118[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj90.Steps = list118; reference90 = obj90; questRoot13.QuestSequence = list112; @@ -140858,13 +169747,16 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "plogon_enjoyer"; + Span span119 = CollectionsMarshal.AsSpan(list119); + index = 0; + span119[index] = "plogon_enjoyer"; questRoot14.Author = list119; - num = 3; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span35 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference91 = ref span35[0]; + index = 3; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + Span span120 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference91 = ref span120[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -140872,19 +169764,23 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj91.Steps = list121; reference91 = obj91; - ref QuestSequence reference92 = ref span35[1]; + num++; + ref QuestSequence reference92 = ref span120[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - Span span36 = CollectionsMarshal.AsSpan(list122); - ref QuestStep reference93 = ref span36[0]; + index2 = 3; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + ref QuestStep reference93 = ref span122[num2]; QuestStep obj93 = new QuestStep(EInteractionType.Combat, 2006872u, new Vector3(333.82153f, -47.53192f, -331.53284f), 398) { Fly = true, @@ -140893,28 +169789,35 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 5546u; + Span span123 = CollectionsMarshal.AsSpan(list123); + index3 = 0; + span123[index3] = 5546u; obj93.KillEnemyDataIds = list123; reference93 = obj93; - span36[1] = new QuestStep(EInteractionType.Interact, 2006871u, new Vector3(559.71606f, -41.24518f, -333.1808f), 398) + num2++; + span122[num2] = new QuestStep(EInteractionType.Interact, 2006871u, new Vector3(559.71606f, -41.24518f, -333.1808f), 398) { Fly = true }; - ref QuestStep reference94 = ref span36[2]; + num2++; + ref QuestStep reference94 = ref span122[num2]; QuestStep obj94 = new QuestStep(EInteractionType.Combat, 2006873u, new Vector3(707.7285f, -50.095398f, -151.47632f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = 5546u; + index3 = 1; + List list124 = new List(index3); + CollectionsMarshal.SetCount(list124, index3); + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span124[num3] = 5546u; obj94.KillEnemyDataIds = list124; reference94 = obj94; obj92.Steps = list122; reference92 = obj92; - ref QuestSequence reference95 = ref span35[2]; + num++; + ref QuestSequence reference95 = ref span120[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -140922,8 +169825,9 @@ public static class AssemblyQuestLoader num2 = 2; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span37 = CollectionsMarshal.AsSpan(list125); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -140940,7 +169844,8 @@ public static class AssemblyQuestLoader } } }; - span37[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span125[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj95.Steps = list125; reference95 = obj95; questRoot14.QuestSequence = list120; @@ -140950,24 +169855,30 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "plogon_enjoyer"; + Span span126 = CollectionsMarshal.AsSpan(list126); + index = 0; + span126[index] = "plogon_enjoyer"; questRoot15.Author = list126; - num = 3; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span38 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference96 = ref span38[0]; + index = 3; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + Span span127 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference96 = ref span127[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj96.Steps = list128; reference96 = obj96; - ref QuestSequence reference97 = ref span38[1]; + num++; + ref QuestSequence reference97 = ref span127[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -140975,43 +169886,51 @@ public static class AssemblyQuestLoader num2 = 6; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span39 = CollectionsMarshal.AsSpan(list129); - span39[0] = new QuestStep(EInteractionType.Interact, 2006897u, new Vector3(88.48706f, -123.43024f, 561.7914f), 398) + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.Interact, 2006897u, new Vector3(88.48706f, -123.43024f, 561.7914f), 398) { Fly = true }; - span39[1] = new QuestStep(EInteractionType.Interact, 2006899u, new Vector3(137.1023f, -120.01227f, 586.08374f), 398) + index2++; + span129[index2] = new QuestStep(EInteractionType.Interact, 2006899u, new Vector3(137.1023f, -120.01227f, 586.08374f), 398) { Fly = true }; - span39[2] = new QuestStep(EInteractionType.Interact, 2006898u, new Vector3(111.86377f, -119.035645f, 617.4868f), 398) + index2++; + span129[index2] = new QuestStep(EInteractionType.Interact, 2006898u, new Vector3(111.86377f, -119.035645f, 617.4868f), 398) { Fly = true }; - span39[3] = new QuestStep(EInteractionType.Interact, 2006894u, new Vector3(223.22424f, -123.6134f, 697.6272f), 398) + index2++; + span129[index2] = new QuestStep(EInteractionType.Interact, 2006894u, new Vector3(223.22424f, -123.6134f, 697.6272f), 398) { Fly = true }; - span39[4] = new QuestStep(EInteractionType.Interact, 2006892u, new Vector3(209.1554f, -123.12512f, 767.91016f), 398) + index2++; + span129[index2] = new QuestStep(EInteractionType.Interact, 2006892u, new Vector3(209.1554f, -123.12512f, 767.91016f), 398) { Fly = true }; - span39[5] = new QuestStep(EInteractionType.Interact, 2006893u, new Vector3(291.03528f, -119.40192f, 664.6676f), 398) + index2++; + span129[index2] = new QuestStep(EInteractionType.Interact, 2006893u, new Vector3(291.03528f, -119.40192f, 664.6676f), 398) { Fly = true }; obj97.Steps = list129; reference97 = obj97; - ref QuestSequence reference98 = ref span38[2]; + num++; + ref QuestSequence reference98 = ref span127[num]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span40 = CollectionsMarshal.AsSpan(list130); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -141028,7 +169947,8 @@ public static class AssemblyQuestLoader } } }; - span40[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span130[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj98.Steps = list130; reference98 = obj98; questRoot15.QuestSequence = list127; @@ -141038,13 +169958,16 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "plogon_enjoyer"; + Span span131 = CollectionsMarshal.AsSpan(list131); + index = 0; + span131[index] = "plogon_enjoyer"; questRoot16.Author = list131; - num = 3; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span41 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference99 = ref span41[0]; + index = 3; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + Span span132 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference99 = ref span132[num]; QuestSequence obj99 = new QuestSequence { Sequence = 0 @@ -141052,45 +169975,55 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj99.Steps = list133; reference99 = obj99; - ref QuestSequence reference100 = ref span41[1]; + num++; + ref QuestSequence reference100 = ref span132[num]; QuestSequence obj100 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - Span span42 = CollectionsMarshal.AsSpan(list134); - span42[0] = new QuestStep(EInteractionType.Interact, 2006903u, new Vector3(20.004517f, -84.00098f, 282.15454f), 398) + index2 = 6; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.Interact, 2006903u, new Vector3(20.004517f, -84.00098f, 282.15454f), 398) { Fly = true }; - span42[1] = new QuestStep(EInteractionType.Interact, 2006904u, new Vector3(52.68933f, -100.572266f, 317.1283f), 398) + num2++; + span134[num2] = new QuestStep(EInteractionType.Interact, 2006904u, new Vector3(52.68933f, -100.572266f, 317.1283f), 398) { Mount = true }; - span42[2] = new QuestStep(EInteractionType.Interact, 2006905u, new Vector3(6.301941f, -100.206055f, 351.43042f), 398) + num2++; + span134[num2] = new QuestStep(EInteractionType.Interact, 2006905u, new Vector3(6.301941f, -100.206055f, 351.43042f), 398) { Mount = true }; - span42[3] = new QuestStep(EInteractionType.Interact, 2006902u, new Vector3(-317.49445f, -80.55243f, 632.59326f), 398) + num2++; + span134[num2] = new QuestStep(EInteractionType.Interact, 2006902u, new Vector3(-317.49445f, -80.55243f, 632.59326f), 398) { Fly = true }; - span42[4] = new QuestStep(EInteractionType.Interact, 2006901u, new Vector3(-336.96503f, -80.55243f, 655.08496f), 398) + num2++; + span134[num2] = new QuestStep(EInteractionType.Interact, 2006901u, new Vector3(-336.96503f, -80.55243f, 655.08496f), 398) { Mount = true }; - span42[5] = new QuestStep(EInteractionType.Interact, 2006900u, new Vector3(-379.75128f, -75.21173f, 669.2759f), 398) + num2++; + span134[num2] = new QuestStep(EInteractionType.Interact, 2006900u, new Vector3(-379.75128f, -75.21173f, 669.2759f), 398) { Fly = true }; obj100.Steps = list134; reference100 = obj100; - ref QuestSequence reference101 = ref span41[2]; + num++; + ref QuestSequence reference101 = ref span132[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -141098,8 +170031,9 @@ public static class AssemblyQuestLoader num2 = 2; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span43 = CollectionsMarshal.AsSpan(list135); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -141116,7 +170050,8 @@ public static class AssemblyQuestLoader } } }; - span43[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span135[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj101.Steps = list135; reference101 = obj101; questRoot16.QuestSequence = list132; @@ -141126,24 +170061,30 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - CollectionsMarshal.AsSpan(list136)[0] = "plogon_enjoyer"; + Span span136 = CollectionsMarshal.AsSpan(list136); + index = 0; + span136[index] = "plogon_enjoyer"; questRoot17.Author = list136; - num = 3; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - Span span44 = CollectionsMarshal.AsSpan(list137); - ref QuestSequence reference102 = ref span44[0]; + index = 3; + List list137 = new List(index); + CollectionsMarshal.SetCount(list137, index); + Span span137 = CollectionsMarshal.AsSpan(list137); + num = 0; + ref QuestSequence reference102 = ref span137[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj102.Steps = list138; reference102 = obj102; - ref QuestSequence reference103 = ref span44[1]; + num++; + ref QuestSequence reference103 = ref span137[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -141151,8 +170092,9 @@ public static class AssemblyQuestLoader num2 = 4; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span45 = CollectionsMarshal.AsSpan(list139); - ref QuestStep reference104 = ref span45[0]; + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + ref QuestStep reference104 = ref span139[index2]; QuestStep obj104 = new QuestStep(EInteractionType.Combat, 2006909u, new Vector3(-124.37634f, -86.07617f, 763.6987f), 398) { Fly = true, @@ -141161,41 +170103,50 @@ public static class AssemblyQuestLoader num3 = 1; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - CollectionsMarshal.AsSpan(list140)[0] = 5548u; + Span span140 = CollectionsMarshal.AsSpan(list140); + index3 = 0; + span140[index3] = 5548u; obj104.KillEnemyDataIds = list140; reference104 = obj104; - span45[1] = new QuestStep(EInteractionType.Interact, 2006906u, new Vector3(-178.51532f, -86.167725f, 775.845f), 398) + index2++; + span139[index2] = new QuestStep(EInteractionType.Interact, 2006906u, new Vector3(-178.51532f, -86.167725f, 775.845f), 398) { Fly = true }; - ref QuestStep reference105 = ref span45[2]; + index2++; + ref QuestStep reference105 = ref span139[index2]; QuestStep obj105 = new QuestStep(EInteractionType.Combat, 2006908u, new Vector3(-305.745f, -68.13159f, 812.7717f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = 5548u; + index3 = 1; + List list141 = new List(index3); + CollectionsMarshal.SetCount(list141, index3); + Span span141 = CollectionsMarshal.AsSpan(list141); + num3 = 0; + span141[num3] = 5548u; obj105.KillEnemyDataIds = list141; reference105 = obj105; - span45[3] = new QuestStep(EInteractionType.Interact, 2006907u, new Vector3(-303.36462f, -80.52191f, 734.15735f), 398) + index2++; + span139[index2] = new QuestStep(EInteractionType.Interact, 2006907u, new Vector3(-303.36462f, -80.52191f, 734.15735f), 398) { Fly = true }; obj103.Steps = list139; reference103 = obj103; - ref QuestSequence reference106 = ref span44[2]; + num++; + ref QuestSequence reference106 = ref span137[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span46 = CollectionsMarshal.AsSpan(list142); - span46[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -141212,7 +170163,8 @@ public static class AssemblyQuestLoader } } }; - span46[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span142[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj106.Steps = list142; reference106 = obj106; questRoot17.QuestSequence = list137; @@ -141222,13 +170174,16 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "plogon_enjoyer"; + Span span143 = CollectionsMarshal.AsSpan(list143); + index = 0; + span143[index] = "plogon_enjoyer"; questRoot18.Author = list143; - num = 4; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span47 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference107 = ref span47[0]; + index = 4; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + Span span144 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference107 = ref span144[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -141236,33 +170191,40 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj107.Steps = list145; reference107 = obj107; - ref QuestSequence reference108 = ref span47[1]; + num++; + ref QuestSequence reference108 = ref span144[num]; QuestSequence obj108 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - Span span48 = CollectionsMarshal.AsSpan(list146); - span48[0] = new QuestStep(EInteractionType.Interact, 2006913u, new Vector3(566.7964f, -20.553955f, -530.2052f), 398) + index2 = 3; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.Interact, 2006913u, new Vector3(566.7964f, -20.553955f, -530.2052f), 398) { Fly = true }; - span48[1] = new QuestStep(EInteractionType.Interact, 2006914u, new Vector3(595.3917f, -20.187744f, -547.4785f), 398) + num2++; + span146[num2] = new QuestStep(EInteractionType.Interact, 2006914u, new Vector3(595.3917f, -20.187744f, -547.4785f), 398) { Fly = true }; - span48[2] = new QuestStep(EInteractionType.Interact, 2006912u, new Vector3(639.8259f, -19.60791f, -588.098f), 398) + num2++; + span146[num2] = new QuestStep(EInteractionType.Interact, 2006912u, new Vector3(639.8259f, -19.60791f, -588.098f), 398) { Fly = true }; obj108.Steps = list146; reference108 = obj108; - ref QuestSequence reference109 = ref span47[2]; + num++; + ref QuestSequence reference109 = ref span144[num]; QuestSequence obj109 = new QuestSequence { Sequence = 2 @@ -141270,24 +170232,29 @@ public static class AssemblyQuestLoader num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span49 = CollectionsMarshal.AsSpan(list147); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - span49[1] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span147[index2] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj109.Steps = list147; reference109 = obj109; - ref QuestSequence reference110 = ref span47[3]; + num++; + ref QuestSequence reference110 = ref span144[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016855u, new Vector3(74.906494f, -48f, -175.67712f), 398); + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016855u, new Vector3(74.906494f, -48f, -175.67712f), 398); obj110.Steps = list148; reference110 = obj110; questRoot18.QuestSequence = list144; @@ -141297,13 +170264,16 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "AnimaMachinae"; + Span span149 = CollectionsMarshal.AsSpan(list149); + index = 0; + span149[index] = "AnimaMachinae"; questRoot19.Author = list149; - num = 6; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span50 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference111 = ref span50[0]; + index = 6; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + Span span150 = CollectionsMarshal.AsSpan(list150); + num = 0; + ref QuestSequence reference111 = ref span150[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -141311,19 +170281,23 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj111.Steps = list151; reference111 = obj111; - ref QuestSequence reference112 = ref span50[1]; + num++; + ref QuestSequence reference112 = ref span150[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - Span span51 = CollectionsMarshal.AsSpan(list152); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.20459f, -48.533592f, -171.12994f), 398) + index2 = 2; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.20459f, -48.533592f, -171.12994f), 398) { StopDistance = 3f, Fly = true, @@ -141340,10 +170314,12 @@ public static class AssemblyQuestLoader } } }; - span51[1] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); + num2++; + span152[num2] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); obj112.Steps = list152; reference112 = obj112; - ref QuestSequence reference113 = ref span50[2]; + num++; + ref QuestSequence reference113 = ref span150[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -141351,29 +170327,35 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Action, 2006915u, new Vector3(96.45227f, -66.2395f, 616.6017f), 398) + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.Action, 2006915u, new Vector3(96.45227f, -66.2395f, 616.6017f), 398) { Fly = true, Action = EAction.Fumigate }; obj113.Steps = list153; reference113 = obj113; - ref QuestSequence reference114 = ref span50[3]; + num++; + ref QuestSequence reference114 = ref span150[num]; QuestSequence obj114 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Action, 2006916u, new Vector3(-149.95044f, -55.25299f, 541.37476f), 398) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.Action, 2006916u, new Vector3(-149.95044f, -55.25299f, 541.37476f), 398) { Fly = true, Action = EAction.Fumigate }; obj114.Steps = list154; reference114 = obj114; - ref QuestSequence reference115 = ref span50[4]; + num++; + ref QuestSequence reference115 = ref span150[num]; QuestSequence obj115 = new QuestSequence { Sequence = 4 @@ -141381,28 +170363,33 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Action, 2006917u, new Vector3(-625.0859f, -49.94281f, 491.02002f), 398) + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new QuestStep(EInteractionType.Action, 2006917u, new Vector3(-625.0859f, -49.94281f, 491.02002f), 398) { Fly = true, Action = EAction.Fumigate }; obj115.Steps = list155; reference115 = obj115; - ref QuestSequence reference116 = ref span50[5]; + num++; + ref QuestSequence reference116 = ref span150[num]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - Span span52 = CollectionsMarshal.AsSpan(list156); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - span52[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span156[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj116.Steps = list156; reference116 = obj116; questRoot19.QuestSequence = list150; @@ -141412,13 +170399,16 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "AnimaMachinae"; + Span span157 = CollectionsMarshal.AsSpan(list157); + index = 0; + span157[index] = "AnimaMachinae"; questRoot20.Author = list157; - num = 5; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span53 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference117 = ref span53[0]; + index = 5; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + Span span158 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestSequence reference117 = ref span158[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 @@ -141426,28 +170416,34 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj117.Steps = list159; reference117 = obj117; - ref QuestSequence reference118 = ref span53[1]; + num++; + ref QuestSequence reference118 = ref span158[num]; QuestSequence obj118 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span54 = CollectionsMarshal.AsSpan(list160); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.65012f, -51.141403f, 106.932205f), 398) + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.65012f, -51.141403f, 106.932205f), 398) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span54[1] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398); + num2++; + span160[num2] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398); obj118.Steps = list160; reference118 = obj118; - ref QuestSequence reference119 = ref span53[2]; + num++; + ref QuestSequence reference119 = ref span158[num]; QuestSequence obj119 = new QuestSequence { Sequence = 2 @@ -141455,8 +170451,9 @@ public static class AssemblyQuestLoader num2 = 3; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span55 = CollectionsMarshal.AsSpan(list161); - ref QuestStep reference120 = ref span55[0]; + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + ref QuestStep reference120 = ref span161[index2]; QuestStep obj120 = new QuestStep(EInteractionType.Combat, 2006918u, new Vector3(475.69995f, -44.174927f, -231.46417f), 398) { Fly = true, @@ -141467,21 +170464,30 @@ public static class AssemblyQuestLoader num3 = 1; List list162 = new List(num3); CollectionsMarshal.SetCount(list162, num3); - CollectionsMarshal.AsSpan(list162)[0] = 71224u; + Span span162 = CollectionsMarshal.AsSpan(list162); + index3 = 0; + span162[index3] = 71224u; obj120.KillEnemyDataIds = list162; - num3 = 6; - List list163 = new List(num3); - CollectionsMarshal.SetCount(list163, num3); - Span span56 = CollectionsMarshal.AsSpan(list163); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list163 = new List(index3); + CollectionsMarshal.SetCount(list163, index3); + Span span163 = CollectionsMarshal.AsSpan(list163); + num3 = 0; + span163[num3] = null; + num3++; + span163[num3] = null; + num3++; + span163[num3] = null; + num3++; + span163[num3] = null; + num3++; + span163[num3] = null; + num3++; + span163[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj120.CompletionQuestVariablesFlags = list163; reference120 = obj120; - ref QuestStep reference121 = ref span55[1]; + index2++; + ref QuestStep reference121 = ref span161[index2]; QuestStep obj121 = new QuestStep(EInteractionType.Combat, 2006920u, new Vector3(329.4879f, -45.487183f, -262.13477f), 398) { Fly = true, @@ -141492,21 +170498,30 @@ public static class AssemblyQuestLoader num3 = 1; List list164 = new List(num3); CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = 5548u; + Span span164 = CollectionsMarshal.AsSpan(list164); + index3 = 0; + span164[index3] = 5548u; obj121.KillEnemyDataIds = list164; - num3 = 6; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - Span span57 = CollectionsMarshal.AsSpan(list165); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list165 = new List(index3); + CollectionsMarshal.SetCount(list165, index3); + Span span165 = CollectionsMarshal.AsSpan(list165); + num3 = 0; + span165[num3] = null; + num3++; + span165[num3] = null; + num3++; + span165[num3] = null; + num3++; + span165[num3] = null; + num3++; + span165[num3] = null; + num3++; + span165[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj121.CompletionQuestVariablesFlags = list165; reference121 = obj121; - ref QuestStep reference122 = ref span55[2]; + index2++; + ref QuestStep reference122 = ref span161[index2]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 2006919u, new Vector3(535.45435f, -32.39496f, -410.60504f), 398) { Fly = true, @@ -141517,30 +170532,36 @@ public static class AssemblyQuestLoader num3 = 1; List list166 = new List(num3); CollectionsMarshal.SetCount(list166, num3); - CollectionsMarshal.AsSpan(list166)[0] = 71224u; + Span span166 = CollectionsMarshal.AsSpan(list166); + index3 = 0; + span166[index3] = 71224u; obj122.KillEnemyDataIds = list166; reference122 = obj122; obj119.Steps = list161; reference119 = obj119; - ref QuestSequence reference123 = ref span53[3]; + num++; + ref QuestSequence reference123 = ref span158[num]; QuestSequence obj123 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - Span span58 = CollectionsMarshal.AsSpan(list167); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.65012f, -51.141403f, 106.932205f), 398) + index2 = 2; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.65012f, -51.141403f, 106.932205f), 398) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span58[1] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398); + num2++; + span167[num2] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398); obj123.Steps = list167; reference123 = obj123; - ref QuestSequence reference124 = ref span53[4]; + num++; + ref QuestSequence reference124 = ref span158[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -141548,8 +170569,9 @@ public static class AssemblyQuestLoader num2 = 2; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span59 = CollectionsMarshal.AsSpan(list168); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span168 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span168[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -141566,7 +170588,8 @@ public static class AssemblyQuestLoader } } }; - span59[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span168[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj124.Steps = list168; reference124 = obj124; questRoot20.QuestSequence = list158; @@ -141576,24 +170599,30 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "AnimaMachinae"; + Span span169 = CollectionsMarshal.AsSpan(list169); + index = 0; + span169[index] = "AnimaMachinae"; questRoot21.Author = list169; - num = 7; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span60 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference125 = ref span60[0]; + index = 7; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + Span span170 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference125 = ref span170[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + Span span171 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span171[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj125.Steps = list171; reference125 = obj125; - ref QuestSequence reference126 = ref span60[1]; + num++; + ref QuestSequence reference126 = ref span170[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -141601,25 +170630,31 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398) + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj126.Steps = list172; reference126 = obj126; - ref QuestSequence reference127 = ref span60[2]; + num++; + ref QuestSequence reference127 = ref span170[num]; QuestSequence obj127 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 2006922u, new Vector3(-481.0102f, -93.18689f, 474.69275f), 398); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.Interact, 2006922u, new Vector3(-481.0102f, -93.18689f, 474.69275f), 398); obj127.Steps = list173; reference127 = obj127; - ref QuestSequence reference128 = ref span60[3]; + num++; + ref QuestSequence reference128 = ref span170[num]; QuestSequence obj128 = new QuestSequence { Sequence = 3 @@ -141627,21 +170662,27 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398); + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398); obj128.Steps = list174; reference128 = obj128; - ref QuestSequence reference129 = ref span60[4]; + num++; + ref QuestSequence reference129 = ref span170[num]; QuestSequence obj129 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 2006923u, new Vector3(-477.59216f, -93.003784f, 475.18103f), 398); + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.Interact, 2006923u, new Vector3(-477.59216f, -93.003784f, 475.18103f), 398); obj129.Steps = list175; reference129 = obj129; - ref QuestSequence reference130 = ref span60[5]; + num++; + ref QuestSequence reference130 = ref span170[num]; QuestSequence obj130 = new QuestSequence { Sequence = 5 @@ -141649,19 +170690,23 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398); + Span span176 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span176[index2] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398); obj130.Steps = list176; reference130 = obj130; - ref QuestSequence reference131 = ref span60[6]; + num++; + ref QuestSequence reference131 = ref span170[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - Span span61 = CollectionsMarshal.AsSpan(list177); - span61[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -141678,7 +170723,8 @@ public static class AssemblyQuestLoader } } }; - span61[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span177[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj131.Steps = list177; reference131 = obj131; questRoot21.QuestSequence = list170; @@ -141688,13 +170734,16 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "plogon_enjoyer"; + Span span178 = CollectionsMarshal.AsSpan(list178); + index = 0; + span178[index] = "plogon_enjoyer"; questRoot22.Author = list178; - num = 5; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span62 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference132 = ref span62[0]; + index = 5; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + Span span179 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference132 = ref span179[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 @@ -141702,19 +170751,23 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span180[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj132.Steps = list180; reference132 = obj132; - ref QuestSequence reference133 = ref span62[1]; + num++; + ref QuestSequence reference133 = ref span179[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - Span span63 = CollectionsMarshal.AsSpan(list181); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.20459f, -48.533592f, -171.12994f), 398) + index2 = 2; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span181[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.20459f, -48.533592f, -171.12994f), 398) { StopDistance = 3f, Fly = true, @@ -141731,10 +170784,12 @@ public static class AssemblyQuestLoader } } }; - span63[1] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); + num2++; + span181[num2] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); obj133.Steps = list181; reference133 = obj133; - ref QuestSequence reference134 = ref span62[2]; + num++; + ref QuestSequence reference134 = ref span179[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 @@ -141742,41 +170797,52 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Action, null, new Vector3(-190.26477f, -104.73892f, 512.932f), 398) + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.Action, null, new Vector3(-190.26477f, -104.73892f, 512.932f), 398) { Fly = true, Action = EAction.Fumigate }; obj134.Steps = list182; reference134 = obj134; - ref QuestSequence reference135 = ref span62[3]; + num++; + ref QuestSequence reference135 = ref span179[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - Span span64 = CollectionsMarshal.AsSpan(list183); - ref QuestStep reference136 = ref span64[0]; + index2 = 2; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + ref QuestStep reference136 = ref span183[num2]; QuestStep obj136 = new QuestStep(EInteractionType.Action, null, new Vector3(-13.443237f, -129.2623f, 712.21484f), 398) { Fly = true, Action = EAction.Fumigate }; - num3 = 6; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - Span span65 = CollectionsMarshal.AsSpan(list184); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list184 = new List(index3); + CollectionsMarshal.SetCount(list184, index3); + Span span184 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span184[num3] = null; + num3++; + span184[num3] = null; + num3++; + span184[num3] = null; + num3++; + span184[num3] = null; + num3++; + span184[num3] = null; + num3++; + span184[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj136.CompletionQuestVariablesFlags = list184; reference136 = obj136; - ref QuestStep reference137 = ref span64[1]; + num2++; + ref QuestStep reference137 = ref span183[num2]; QuestStep obj137 = new QuestStep(EInteractionType.Action, null, new Vector3(45.151367f, -132.12938f, 685.7556f), 398) { Fly = true, @@ -141785,18 +170851,25 @@ public static class AssemblyQuestLoader num3 = 6; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - Span span66 = CollectionsMarshal.AsSpan(list185); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span185 = CollectionsMarshal.AsSpan(list185); + index3 = 0; + span185[index3] = null; + index3++; + span185[index3] = null; + index3++; + span185[index3] = null; + index3++; + span185[index3] = null; + index3++; + span185[index3] = null; + index3++; + span185[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj137.CompletionQuestVariablesFlags = list185; reference137 = obj137; obj135.Steps = list183; reference135 = obj135; - ref QuestSequence reference138 = ref span62[4]; + num++; + ref QuestSequence reference138 = ref span179[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -141804,13 +170877,15 @@ public static class AssemblyQuestLoader num2 = 2; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span67 = CollectionsMarshal.AsSpan(list186); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span186[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj138.Steps = list186; reference138 = obj138; questRoot22.QuestSequence = list179; @@ -141820,24 +170895,30 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - CollectionsMarshal.AsSpan(list187)[0] = "plogon_enjoyer"; + Span span187 = CollectionsMarshal.AsSpan(list187); + index = 0; + span187[index] = "plogon_enjoyer"; questRoot23.Author = list187; - num = 4; - List list188 = new List(num); - CollectionsMarshal.SetCount(list188, num); - Span span68 = CollectionsMarshal.AsSpan(list188); - ref QuestSequence reference139 = ref span68[0]; + index = 4; + List list188 = new List(index); + CollectionsMarshal.SetCount(list188, index); + Span span188 = CollectionsMarshal.AsSpan(list188); + num = 0; + ref QuestSequence reference139 = ref span188[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj139.Steps = list189; reference139 = obj139; - ref QuestSequence reference140 = ref span68[1]; + num++; + ref QuestSequence reference140 = ref span188[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -141845,36 +170926,44 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 2006930u, new Vector3(510.3684f, -26.077698f, -592.3705f), 398) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.Interact, 2006930u, new Vector3(510.3684f, -26.077698f, -592.3705f), 398) { Fly = true }; obj140.Steps = list190; reference140 = obj140; - ref QuestSequence reference141 = ref span68[2]; + num++; + ref QuestSequence reference141 = ref span188[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list191)[0]; + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + ref QuestStep reference142 = ref span191[num2]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, 2006931u, new Vector3(358.81592f, -51.98755f, -137.89581f), 398) { Fly = true, ItemId = 2001963u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - CollectionsMarshal.AsSpan(list192)[0] = 5552u; + index3 = 1; + List list192 = new List(index3); + CollectionsMarshal.SetCount(list192, index3); + Span span192 = CollectionsMarshal.AsSpan(list192); + num3 = 0; + span192[num3] = 5552u; obj142.KillEnemyDataIds = list192; reference142 = obj142; obj141.Steps = list191; reference141 = obj141; - ref QuestSequence reference143 = ref span68[3]; + num++; + ref QuestSequence reference143 = ref span188[num]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -141882,12 +170971,14 @@ public static class AssemblyQuestLoader num2 = 2; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span69 = CollectionsMarshal.AsSpan(list193); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span193 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span193[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - span69[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span193[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj143.Steps = list193; reference143 = obj143; questRoot23.QuestSequence = list188; @@ -141897,24 +170988,30 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "plogon_enjoyer"; + Span span194 = CollectionsMarshal.AsSpan(list194); + index = 0; + span194[index] = "plogon_enjoyer"; questRoot24.Author = list194; - num = 4; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span70 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference144 = ref span70[0]; + index = 4; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + Span span195 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference144 = ref span195[num]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj144.Steps = list196; reference144 = obj144; - ref QuestSequence reference145 = ref span70[1]; + num++; + ref QuestSequence reference145 = ref span195[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -141922,43 +171019,51 @@ public static class AssemblyQuestLoader num2 = 6; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span71 = CollectionsMarshal.AsSpan(list197); - span71[0] = new QuestStep(EInteractionType.Interact, 2006937u, new Vector3(-42.282776f, -32.73065f, 183.30652f), 398) + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.Interact, 2006937u, new Vector3(-42.282776f, -32.73065f, 183.30652f), 398) { Fly = true }; - span71[1] = new QuestStep(EInteractionType.Interact, 2006935u, new Vector3(-46.189087f, -47.257202f, 241.93176f), 398) + index2++; + span197[index2] = new QuestStep(EInteractionType.Interact, 2006935u, new Vector3(-46.189087f, -47.257202f, 241.93176f), 398) { Fly = true }; - span71[2] = new QuestStep(EInteractionType.Interact, 2006936u, new Vector3(-83.57367f, -48.17273f, 231.89136f), 398) + index2++; + span197[index2] = new QuestStep(EInteractionType.Interact, 2006936u, new Vector3(-83.57367f, -48.17273f, 231.89136f), 398) { Fly = true }; - span71[3] = new QuestStep(EInteractionType.Interact, 2006934u, new Vector3(-105.02789f, -69.68799f, 350.63696f), 398) + index2++; + span197[index2] = new QuestStep(EInteractionType.Interact, 2006934u, new Vector3(-105.02789f, -69.68799f, 350.63696f), 398) { Fly = true }; - span71[4] = new QuestStep(EInteractionType.Interact, 2006933u, new Vector3(-80.03363f, -71.67163f, 412.46655f), 398) + index2++; + span197[index2] = new QuestStep(EInteractionType.Interact, 2006933u, new Vector3(-80.03363f, -71.67163f, 412.46655f), 398) { Fly = true }; - span71[5] = new QuestStep(EInteractionType.Interact, 2006932u, new Vector3(-155.41315f, -71.122375f, 387.28918f), 398) + index2++; + span197[index2] = new QuestStep(EInteractionType.Interact, 2006932u, new Vector3(-155.41315f, -71.122375f, 387.28918f), 398) { Fly = true }; obj145.Steps = list197; reference145 = obj145; - ref QuestSequence reference146 = ref span70[2]; + num++; + ref QuestSequence reference146 = ref span195[num]; QuestSequence obj146 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - Span span72 = CollectionsMarshal.AsSpan(list198); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span198 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span198[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -141975,10 +171080,12 @@ public static class AssemblyQuestLoader } } }; - span72[1] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span198[num2] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj146.Steps = list198; reference146 = obj146; - ref QuestSequence reference147 = ref span70[3]; + num++; + ref QuestSequence reference147 = ref span195[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -141986,7 +171093,9 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016863u, new Vector3(67.948364f, -48.43746f, -168.23071f), 398) + Span span199 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span199[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016863u, new Vector3(67.948364f, -48.43746f, -168.23071f), 398) { Fly = true }; @@ -141999,24 +171108,30 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - CollectionsMarshal.AsSpan(list200)[0] = "liza"; + Span span200 = CollectionsMarshal.AsSpan(list200); + index = 0; + span200[index] = "liza"; questRoot25.Author = list200; - num = 5; - List list201 = new List(num); - CollectionsMarshal.SetCount(list201, num); - Span span73 = CollectionsMarshal.AsSpan(list201); - ref QuestSequence reference148 = ref span73[0]; + index = 5; + List list201 = new List(index); + CollectionsMarshal.SetCount(list201, index); + Span span201 = CollectionsMarshal.AsSpan(list201); + num = 0; + ref QuestSequence reference148 = ref span201[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj148.Steps = list202; reference148 = obj148; - ref QuestSequence reference149 = ref span73[1]; + num++; + ref QuestSequence reference149 = ref span201[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 @@ -142024,8 +171139,9 @@ public static class AssemblyQuestLoader num2 = 2; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span74 = CollectionsMarshal.AsSpan(list203); - ref QuestStep reference150 = ref span74[0]; + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + ref QuestStep reference150 = ref span203[index2]; QuestStep obj150 = new QuestStep(EInteractionType.Interact, 1016865u, new Vector3(-272.23627f, -35.408485f, 219.07373f), 398) { Fly = true, @@ -142034,43 +171150,59 @@ public static class AssemblyQuestLoader num3 = 6; List list204 = new List(num3); CollectionsMarshal.SetCount(list204, num3); - Span span75 = CollectionsMarshal.AsSpan(list204); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span204 = CollectionsMarshal.AsSpan(list204); + index3 = 0; + span204[index3] = null; + index3++; + span204[index3] = null; + index3++; + span204[index3] = null; + index3++; + span204[index3] = null; + index3++; + span204[index3] = null; + index3++; + span204[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj150.CompletionQuestVariablesFlags = list204; reference150 = obj150; - ref QuestStep reference151 = ref span74[1]; + index2++; + ref QuestStep reference151 = ref span203[index2]; QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1016864u, new Vector3(-452.32324f, -35.352047f, 174.30371f), 398) { Fly = true }; - num3 = 6; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - Span span76 = CollectionsMarshal.AsSpan(list205); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list205 = new List(index3); + CollectionsMarshal.SetCount(list205, index3); + Span span205 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + span205[num3] = null; + num3++; + span205[num3] = null; + num3++; + span205[num3] = null; + num3++; + span205[num3] = null; + num3++; + span205[num3] = null; + num3++; + span205[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj151.CompletionQuestVariablesFlags = list205; reference151 = obj151; obj149.Steps = list203; reference149 = obj149; - ref QuestSequence reference152 = ref span73[2]; + num++; + ref QuestSequence reference152 = ref span201[num]; QuestSequence obj152 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - ref QuestStep reference153 = ref CollectionsMarshal.AsSpan(list206)[0]; + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + ref QuestStep reference153 = ref span206[num2]; QuestStep obj153 = new QuestStep(EInteractionType.Combat, 1016866u, new Vector3(-397.05505f, -34.192406f, 243.12195f), 398) { Fly = true, @@ -142079,12 +171211,15 @@ public static class AssemblyQuestLoader num3 = 1; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - CollectionsMarshal.AsSpan(list207)[0] = 5551u; + Span span207 = CollectionsMarshal.AsSpan(list207); + index3 = 0; + span207[index3] = 5551u; obj153.KillEnemyDataIds = list207; reference153 = obj153; obj152.Steps = list206; reference152 = obj152; - ref QuestSequence reference154 = ref span73[3]; + num++; + ref QuestSequence reference154 = ref span201[num]; QuestSequence obj154 = new QuestSequence { Sequence = 3 @@ -142092,23 +171227,28 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1016866u, new Vector3(-397.05505f, -34.192406f, 243.12195f), 398); + Span span208 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span208[index2] = new QuestStep(EInteractionType.Interact, 1016866u, new Vector3(-397.05505f, -34.192406f, 243.12195f), 398); obj154.Steps = list208; reference154 = obj154; - ref QuestSequence reference155 = ref span73[4]; + num++; + ref QuestSequence reference155 = ref span201[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span77 = CollectionsMarshal.AsSpan(list209); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + Span span209 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span209[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - span77[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span209[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj155.Steps = list209; reference155 = obj155; questRoot25.QuestSequence = list201; @@ -142118,13 +171258,16 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "plogon_enjoyer"; + Span span210 = CollectionsMarshal.AsSpan(list210); + index = 0; + span210[index] = "plogon_enjoyer"; questRoot26.Author = list210; - num = 4; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - Span span78 = CollectionsMarshal.AsSpan(list211); - ref QuestSequence reference156 = ref span78[0]; + index = 4; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + Span span211 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference156 = ref span211[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 @@ -142132,19 +171275,23 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + Span span212 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span212[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj156.Steps = list212; reference156 = obj156; - ref QuestSequence reference157 = ref span78[1]; + num++; + ref QuestSequence reference157 = ref span211[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - Span span79 = CollectionsMarshal.AsSpan(list213); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.20459f, -48.533592f, -171.12994f), 398) + index2 = 2; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span213 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span213[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.20459f, -48.533592f, -171.12994f), 398) { StopDistance = 3f, Fly = true, @@ -142161,10 +171308,12 @@ public static class AssemblyQuestLoader } } }; - span79[1] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); + num2++; + span213[num2] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); obj157.Steps = list213; reference157 = obj157; - ref QuestSequence reference158 = ref span78[2]; + num++; + ref QuestSequence reference158 = ref span211[num]; QuestSequence obj158 = new QuestSequence { Sequence = 2 @@ -142172,26 +171321,34 @@ public static class AssemblyQuestLoader num2 = 3; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span80 = CollectionsMarshal.AsSpan(list214); - ref QuestStep reference159 = ref span80[0]; + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + ref QuestStep reference159 = ref span214[index2]; QuestStep obj159 = new QuestStep(EInteractionType.Action, 2006938u, new Vector3(-178.88159f, 179.88855f, 4.257263f), 398) { Fly = true, Action = EAction.Fumigate }; - num3 = 6; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - Span span81 = CollectionsMarshal.AsSpan(list215); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list215 = new List(index3); + CollectionsMarshal.SetCount(list215, index3); + Span span215 = CollectionsMarshal.AsSpan(list215); + num3 = 0; + span215[num3] = null; + num3++; + span215[num3] = null; + num3++; + span215[num3] = null; + num3++; + span215[num3] = null; + num3++; + span215[num3] = null; + num3++; + span215[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj159.CompletionQuestVariablesFlags = list215; reference159 = obj159; - ref QuestStep reference160 = ref span80[1]; + index2++; + ref QuestStep reference160 = ref span214[index2]; QuestStep obj160 = new QuestStep(EInteractionType.Action, 2006940u, new Vector3(-311.8181f, -29.495728f, 143.63306f), 398) { Fly = true, @@ -142200,50 +171357,66 @@ public static class AssemblyQuestLoader num3 = 6; List list216 = new List(num3); CollectionsMarshal.SetCount(list216, num3); - Span span82 = CollectionsMarshal.AsSpan(list216); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span216 = CollectionsMarshal.AsSpan(list216); + index3 = 0; + span216[index3] = null; + index3++; + span216[index3] = null; + index3++; + span216[index3] = null; + index3++; + span216[index3] = null; + index3++; + span216[index3] = null; + index3++; + span216[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj160.CompletionQuestVariablesFlags = list216; reference160 = obj160; - ref QuestStep reference161 = ref span80[2]; + index2++; + ref QuestStep reference161 = ref span214[index2]; QuestStep obj161 = new QuestStep(EInteractionType.Action, 2006939u, new Vector3(-313.80182f, -29.495728f, 102.098145f), 398) { Fly = true, Action = EAction.Fumigate }; - num3 = 6; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - Span span83 = CollectionsMarshal.AsSpan(list217); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list217 = new List(index3); + CollectionsMarshal.SetCount(list217, index3); + Span span217 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj161.CompletionQuestVariablesFlags = list217; reference161 = obj161; obj158.Steps = list214; reference158 = obj158; - ref QuestSequence reference162 = ref span78[3]; + num++; + ref QuestSequence reference162 = ref span211[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - Span span84 = CollectionsMarshal.AsSpan(list218); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span218[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span218[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj162.Steps = list218; reference162 = obj162; questRoot26.QuestSequence = list211; @@ -142253,13 +171426,16 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - CollectionsMarshal.AsSpan(list219)[0] = "plogon_enjoyer"; + Span span219 = CollectionsMarshal.AsSpan(list219); + index = 0; + span219[index] = "plogon_enjoyer"; questRoot27.Author = list219; - num = 5; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - Span span85 = CollectionsMarshal.AsSpan(list220); - ref QuestSequence reference163 = ref span85[0]; + index = 5; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + Span span220 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference163 = ref span220[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 @@ -142267,19 +171443,23 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span221[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj163.Steps = list221; reference163 = obj163; - ref QuestSequence reference164 = ref span85[1]; + num++; + ref QuestSequence reference164 = ref span220[num]; QuestSequence obj164 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - Span span86 = CollectionsMarshal.AsSpan(list222); - span86[0] = new QuestStep(EInteractionType.Say, 1016872u, new Vector3(-42.954163f, -33.573986f, -24.490784f), 398) + index2 = 3; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + Span span222 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span222[num2] = new QuestStep(EInteractionType.Say, 1016872u, new Vector3(-42.954163f, -33.573986f, -24.490784f), 398) { Fly = true, ChatMessage = new ChatMessage @@ -142287,7 +171467,8 @@ public static class AssemblyQuestLoader Key = "TEXT_BANGNA602_02277_SYSTEM_000_012" } }; - span86[1] = new QuestStep(EInteractionType.Say, 1016871u, new Vector3(-113.38989f, -34.45324f, -206.65302f), 398) + num2++; + span222[num2] = new QuestStep(EInteractionType.Say, 1016871u, new Vector3(-113.38989f, -34.45324f, -206.65302f), 398) { Fly = true, ChatMessage = new ChatMessage @@ -142295,7 +171476,8 @@ public static class AssemblyQuestLoader Key = "TEXT_BANGNA602_02277_SYSTEM_000_012" } }; - span86[2] = new QuestStep(EInteractionType.Say, 1016873u, new Vector3(-178.17963f, -35.40849f, -80.094604f), 398) + num2++; + span222[num2] = new QuestStep(EInteractionType.Say, 1016873u, new Vector3(-178.17963f, -35.40849f, -80.094604f), 398) { Fly = true, ChatMessage = new ChatMessage @@ -142305,7 +171487,8 @@ public static class AssemblyQuestLoader }; obj164.Steps = list222; reference164 = obj164; - ref QuestSequence reference165 = ref span85[2]; + num++; + ref QuestSequence reference165 = ref span220[num]; QuestSequence obj165 = new QuestSequence { Sequence = 2 @@ -142313,7 +171496,9 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Say, 1016874u, new Vector3(-399.25232f, 96.070595f, -43.01526f), 398) + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span223[index2] = new QuestStep(EInteractionType.Say, 1016874u, new Vector3(-399.25232f, 96.070595f, -43.01526f), 398) { Fly = true, ChatMessage = new ChatMessage @@ -142323,18 +171508,22 @@ public static class AssemblyQuestLoader }; obj165.Steps = list223; reference165 = obj165; - ref QuestSequence reference166 = ref span85[3]; + num++; + ref QuestSequence reference166 = ref span220[num]; QuestSequence obj166 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1016874u, new Vector3(-399.25232f, 96.070595f, -43.01526f), 398); + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span224[num2] = new QuestStep(EInteractionType.Interact, 1016874u, new Vector3(-399.25232f, 96.070595f, -43.01526f), 398); obj166.Steps = list224; reference166 = obj166; - ref QuestSequence reference167 = ref span85[4]; + num++; + ref QuestSequence reference167 = ref span220[num]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue @@ -142342,12 +171531,14 @@ public static class AssemblyQuestLoader num2 = 2; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span87 = CollectionsMarshal.AsSpan(list225); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span225 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span225[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - span87[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span225[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj167.Steps = list225; reference167 = obj167; questRoot27.QuestSequence = list220; @@ -142357,24 +171548,30 @@ public static class AssemblyQuestLoader num = 1; List list226 = new List(num); CollectionsMarshal.SetCount(list226, num); - CollectionsMarshal.AsSpan(list226)[0] = "plogon_enjoyer"; + Span span226 = CollectionsMarshal.AsSpan(list226); + index = 0; + span226[index] = "plogon_enjoyer"; questRoot28.Author = list226; - num = 7; - List list227 = new List(num); - CollectionsMarshal.SetCount(list227, num); - Span span88 = CollectionsMarshal.AsSpan(list227); - ref QuestSequence reference168 = ref span88[0]; + index = 7; + List list227 = new List(index); + CollectionsMarshal.SetCount(list227, index); + Span span227 = CollectionsMarshal.AsSpan(list227); + num = 0; + ref QuestSequence reference168 = ref span227[num]; QuestSequence obj168 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj168.Steps = list228; reference168 = obj168; - ref QuestSequence reference169 = ref span88[1]; + num++; + ref QuestSequence reference169 = ref span227[num]; QuestSequence obj169 = new QuestSequence { Sequence = 1 @@ -142382,27 +171579,33 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1016875u, new Vector3(-274.09784f, -22.971008f, 22.812195f), 398) + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span229[index2] = new QuestStep(EInteractionType.Interact, 1016875u, new Vector3(-274.09784f, -22.971008f, 22.812195f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj169.Steps = list229; reference169 = obj169; - ref QuestSequence reference170 = ref span88[2]; + num++; + ref QuestSequence reference170 = ref span227[num]; QuestSequence obj170 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1016876u, new Vector3(148.48547f, 65.56322f, -644.09863f), 398) + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span230[num2] = new QuestStep(EInteractionType.Interact, 1016876u, new Vector3(148.48547f, 65.56322f, -644.09863f), 398) { Fly = true }; obj170.Steps = list230; reference170 = obj170; - ref QuestSequence reference171 = ref span88[3]; + num++; + ref QuestSequence reference171 = ref span227[num]; QuestSequence obj171 = new QuestSequence { Sequence = 3 @@ -142410,27 +171613,33 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1016877u, new Vector3(212.23767f, 52.205494f, -777.676f), 398) + Span span231 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span231[index2] = new QuestStep(EInteractionType.Interact, 1016877u, new Vector3(212.23767f, 52.205494f, -777.676f), 398) { Fly = true }; obj171.Steps = list231; reference171 = obj171; - ref QuestSequence reference172 = ref span88[4]; + num++; + ref QuestSequence reference172 = ref span227[num]; QuestSequence obj172 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1016878u, new Vector3(210.31506f, 59.655575f, -919.06616f), 398) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span232[num2] = new QuestStep(EInteractionType.Interact, 1016878u, new Vector3(210.31506f, 59.655575f, -919.06616f), 398) { Fly = true }; obj172.Steps = list232; reference172 = obj172; - ref QuestSequence reference173 = ref span88[5]; + num++; + ref QuestSequence reference173 = ref span227[num]; QuestSequence obj173 = new QuestSequence { Sequence = 5 @@ -142438,26 +171647,31 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1016875u, new Vector3(-274.09784f, -22.971008f, 22.812195f), 398) + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span233[index2] = new QuestStep(EInteractionType.Interact, 1016875u, new Vector3(-274.09784f, -22.971008f, 22.812195f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj173.Steps = list233; reference173 = obj173; - ref QuestSequence reference174 = ref span88[6]; + num++; + ref QuestSequence reference174 = ref span227[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - Span span89 = CollectionsMarshal.AsSpan(list234); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + Span span234 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span234[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - span89[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span234[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj174.Steps = list234; reference174 = obj174; questRoot28.QuestSequence = list227; @@ -142467,13 +171681,16 @@ public static class AssemblyQuestLoader num = 1; List list235 = new List(num); CollectionsMarshal.SetCount(list235, num); - CollectionsMarshal.AsSpan(list235)[0] = "plogon_enjoyer"; + Span span235 = CollectionsMarshal.AsSpan(list235); + index = 0; + span235[index] = "plogon_enjoyer"; questRoot29.Author = list235; - num = 3; - List list236 = new List(num); - CollectionsMarshal.SetCount(list236, num); - Span span90 = CollectionsMarshal.AsSpan(list236); - ref QuestSequence reference175 = ref span90[0]; + index = 3; + List list236 = new List(index); + CollectionsMarshal.SetCount(list236, index); + Span span236 = CollectionsMarshal.AsSpan(list236); + num = 0; + ref QuestSequence reference175 = ref span236[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -142481,23 +171698,28 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span237[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj175.Steps = list237; reference175 = obj175; - ref QuestSequence reference176 = ref span90[1]; + num++; + ref QuestSequence reference176 = ref span236[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - Span span91 = CollectionsMarshal.AsSpan(list238); - span91[0] = new QuestStep(EInteractionType.Interact, 2006945u, new Vector3(204.63867f, -106.43176f, 360.55542f), 398) + index2 = 4; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.Interact, 2006945u, new Vector3(204.63867f, -106.43176f, 360.55542f), 398) { Fly = true }; - ref QuestStep reference177 = ref span91[1]; + num2++; + ref QuestStep reference177 = ref span238[num2]; QuestStep obj177 = new QuestStep(EInteractionType.Combat, 2006947u, new Vector3(205.98145f, -109.544556f, 389.7306f), 398) { Fly = true, @@ -142506,28 +171728,35 @@ public static class AssemblyQuestLoader num3 = 1; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = 5549u; + Span span239 = CollectionsMarshal.AsSpan(list239); + index3 = 0; + span239[index3] = 5549u; obj177.KillEnemyDataIds = list239; reference177 = obj177; - ref QuestStep reference178 = ref span91[2]; + num2++; + ref QuestStep reference178 = ref span238[num2]; QuestStep obj178 = new QuestStep(EInteractionType.Combat, 2006948u, new Vector3(154.43652f, -112.50476f, 445.15137f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - CollectionsMarshal.AsSpan(list240)[0] = 5549u; + index3 = 1; + List list240 = new List(index3); + CollectionsMarshal.SetCount(list240, index3); + Span span240 = CollectionsMarshal.AsSpan(list240); + num3 = 0; + span240[num3] = 5549u; obj178.KillEnemyDataIds = list240; reference178 = obj178; - span91[3] = new QuestStep(EInteractionType.Interact, 2006946u, new Vector3(153.0022f, -86.289795f, 418.44812f), 398) + num2++; + span238[num2] = new QuestStep(EInteractionType.Interact, 2006946u, new Vector3(153.0022f, -86.289795f, 418.44812f), 398) { Fly = true }; obj176.Steps = list238; reference176 = obj176; - ref QuestSequence reference179 = ref span90[2]; + num++; + ref QuestSequence reference179 = ref span236[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -142535,8 +171764,9 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span92 = CollectionsMarshal.AsSpan(list241); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -142553,7 +171783,8 @@ public static class AssemblyQuestLoader } } }; - span92[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2++; + span241[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj179.Steps = list241; reference179 = obj179; questRoot29.QuestSequence = list236; @@ -142563,24 +171794,30 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "plogon_enjoyer"; + Span span242 = CollectionsMarshal.AsSpan(list242); + index = 0; + span242[index] = "plogon_enjoyer"; questRoot30.Author = list242; - num = 7; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span93 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference180 = ref span93[0]; + index = 7; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + Span span243 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference180 = ref span243[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj180.Steps = list244; reference180 = obj180; - ref QuestSequence reference181 = ref span93[1]; + num++; + ref QuestSequence reference181 = ref span243[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -142588,29 +171825,35 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398) + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj181.Steps = list245; reference181 = obj181; - ref QuestSequence reference182 = ref span93[2]; + num++; + ref QuestSequence reference182 = ref span243[num]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 2006950u, new Vector3(-450.9499f, -7.7058716f, -222.61395f), 398) + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.Interact, 2006950u, new Vector3(-450.9499f, -7.7058716f, -222.61395f), 398) { Fly = true, Land = true }; obj182.Steps = list246; reference182 = obj182; - ref QuestSequence reference183 = ref span93[3]; + num++; + ref QuestSequence reference183 = ref span243[num]; QuestSequence obj183 = new QuestSequence { Sequence = 3 @@ -142618,25 +171861,31 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398); + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398); obj183.Steps = list247; reference183 = obj183; - ref QuestSequence reference184 = ref span93[4]; + num++; + ref QuestSequence reference184 = ref span243[num]; QuestSequence obj184 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 2006951u, new Vector3(-388.35742f, -10.238831f, -268.5741f), 398) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.Interact, 2006951u, new Vector3(-388.35742f, -10.238831f, -268.5741f), 398) { Fly = true, Land = true }; obj184.Steps = list248; reference184 = obj184; - ref QuestSequence reference185 = ref span93[5]; + num++; + ref QuestSequence reference185 = ref span243[num]; QuestSequence obj185 = new QuestSequence { Sequence = 5 @@ -142644,23 +171893,28 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398); + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398); obj185.Steps = list249; reference185 = obj185; - ref QuestSequence reference186 = ref span93[6]; + num++; + ref QuestSequence reference186 = ref span243[num]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - Span span94 = CollectionsMarshal.AsSpan(list250); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + index2 = 2; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span250 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span250[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - span94[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + num2++; + span250[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj186.Steps = list250; reference186 = obj186; questRoot30.QuestSequence = list243; @@ -142670,13 +171924,16 @@ public static class AssemblyQuestLoader num = 1; List list251 = new List(num); CollectionsMarshal.SetCount(list251, num); - CollectionsMarshal.AsSpan(list251)[0] = "liza"; + Span span251 = CollectionsMarshal.AsSpan(list251); + index = 0; + span251[index] = "liza"; questRoot31.Author = list251; - num = 2; - List list252 = new List(num); - CollectionsMarshal.SetCount(list252, num); - Span span95 = CollectionsMarshal.AsSpan(list252); - ref QuestSequence reference187 = ref span95[0]; + index = 2; + List list252 = new List(index); + CollectionsMarshal.SetCount(list252, index); + Span span252 = CollectionsMarshal.AsSpan(list252); + num = 0; + ref QuestSequence reference187 = ref span252[num]; QuestSequence obj187 = new QuestSequence { Sequence = 0 @@ -142684,8 +171941,9 @@ public static class AssemblyQuestLoader num2 = 3; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span96 = CollectionsMarshal.AsSpan(list253); - ref QuestStep reference188 = ref span96[0]; + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + ref QuestStep reference188 = ref span253[index2]; QuestStep obj188 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -142696,19 +171954,24 @@ public static class AssemblyQuestLoader num3 = 1; List list254 = new List(num3); CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = 351; + Span span254 = CollectionsMarshal.AsSpan(list254); + index3 = 0; + span254[index3] = 351; skipStepConditions4.InTerritory = list254; skipConditions4.StepIf = skipStepConditions4; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list255 = new List(num3); - CollectionsMarshal.SetCount(list255, num3); - CollectionsMarshal.AsSpan(list255)[0] = 351; + index3 = 1; + List list255 = new List(index3); + CollectionsMarshal.SetCount(list255, index3); + Span span255 = CollectionsMarshal.AsSpan(list255); + num3 = 0; + span255[num3] = 351; skipAetheryteCondition.InTerritory = list255; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition; obj188.SkipConditions = skipConditions4; reference188 = obj188; - span96[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span253[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -142719,22 +171982,25 @@ public static class AssemblyQuestLoader } } }; - span96[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + index2++; + span253[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj187.Steps = list253; reference187 = obj187; - ref QuestSequence reference189 = ref span95[1]; + num++; + ref QuestSequence reference189 = ref span252[num]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - Span span97 = CollectionsMarshal.AsSpan(list256); - span97[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(212.05304f, 256.37265f, 0.08028713f), 402) + index2 = 2; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(212.05304f, 256.37265f, 0.08028713f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix, @@ -142755,7 +172021,8 @@ public static class AssemblyQuestLoader } } }; - span97[1] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) + num2++; + span256[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) { Fly = true }; @@ -142768,13 +172035,16 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "liza"; + Span span257 = CollectionsMarshal.AsSpan(list257); + index = 0; + span257[index] = "liza"; questRoot32.Author = list257; - num = 9; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span98 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference190 = ref span98[0]; + index = 9; + List list258 = new List(index); + CollectionsMarshal.SetCount(list258, index); + Span span258 = CollectionsMarshal.AsSpan(list258); + num = 0; + ref QuestSequence reference190 = ref span258[num]; QuestSequence obj190 = new QuestSequence { Sequence = 0 @@ -142782,31 +172052,38 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016130u, new Vector3(-815.7931f, -88.52015f, -835.2941f), 401); + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span259[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016130u, new Vector3(-815.7931f, -88.52015f, -835.2941f), 401); obj190.Steps = list259; reference190 = obj190; - ref QuestSequence reference191 = ref span98[1]; + num++; + ref QuestSequence reference191 = ref span258[num]; QuestSequence obj191 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - Span span99 = CollectionsMarshal.AsSpan(list260); - span99[0] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) + index2 = 3; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span260[num2] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) { StopDistance = 4f, TargetTerritoryId = (ushort)567 }; - span99[1] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) + num2++; + span260[num2] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) { TargetTerritoryId = (ushort)567 }; - span99[2] = new QuestStep(EInteractionType.Interact, 1017141u, new Vector3(23.208984f, 2.5864775f, -15.854187f), 567); + num2++; + span260[num2] = new QuestStep(EInteractionType.Interact, 1017141u, new Vector3(23.208984f, 2.5864775f, -15.854187f), 567); obj191.Steps = list260; reference191 = obj191; - ref QuestSequence reference192 = ref span98[2]; + num++; + ref QuestSequence reference192 = ref span258[num]; QuestSequence obj192 = new QuestSequence { Sequence = 2 @@ -142814,30 +172091,36 @@ public static class AssemblyQuestLoader num2 = 2; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span100 = CollectionsMarshal.AsSpan(list261); - span100[0] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) + Span span261 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span261[index2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) { TargetTerritoryId = (ushort)568 }; - span100[1] = new QuestStep(EInteractionType.Interact, 1017142u, new Vector3(1.5715942f, -9.5926225E-08f, -2.243164f), 568); + index2++; + span261[index2] = new QuestStep(EInteractionType.Interact, 1017142u, new Vector3(1.5715942f, -9.5926225E-08f, -2.243164f), 568); obj192.Steps = list261; reference192 = obj192; - ref QuestSequence reference193 = ref span98[3]; + num++; + ref QuestSequence reference193 = ref span258[num]; QuestSequence obj193 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1017145u, new Vector3(136.73608f, -13.763474f, -869.5049f), 401) + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.Interact, 1017145u, new Vector3(136.73608f, -13.763474f, -869.5049f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj193.Steps = list262; reference193 = obj193; - ref QuestSequence reference194 = ref span98[4]; + num++; + ref QuestSequence reference194 = ref span258[num]; QuestSequence obj194 = new QuestSequence { Sequence = 4 @@ -142845,30 +172128,37 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1017149u, new Vector3(35.599243f, -15.420995f, 25.833496f), 567); + Span span263 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span263[index2] = new QuestStep(EInteractionType.Interact, 1017149u, new Vector3(35.599243f, -15.420995f, 25.833496f), 567); obj194.Steps = list263; reference194 = obj194; - ref QuestSequence reference195 = ref span98[5]; + num++; + ref QuestSequence reference195 = ref span258[num]; QuestSequence obj195 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - Span span101 = CollectionsMarshal.AsSpan(list264); - span101[0] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) + index2 = 3; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) { TargetTerritoryId = (ushort)567 }; - span101[1] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) + num2++; + span264[num2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) { TargetTerritoryId = (ushort)568 }; - span101[2] = new QuestStep(EInteractionType.Interact, 1017155u, new Vector3(0.10675049f, 0.022368316f, 0.56451416f), 568); + num2++; + span264[num2] = new QuestStep(EInteractionType.Interact, 1017155u, new Vector3(0.10675049f, 0.022368316f, 0.56451416f), 568); obj195.Steps = list264; reference195 = obj195; - ref QuestSequence reference196 = ref span98[6]; + num++; + ref QuestSequence reference196 = ref span258[num]; QuestSequence obj196 = new QuestSequence { Sequence = 6 @@ -142876,21 +172166,26 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1017158u, new Vector3(46.73828f, -15.36437f, 43.198242f), 567) + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span265[index2] = new QuestStep(EInteractionType.Interact, 1017158u, new Vector3(46.73828f, -15.36437f, 43.198242f), 567) { StopDistance = 7f }; obj196.Steps = list265; reference196 = obj196; - ref QuestSequence reference197 = ref span98[7]; + num++; + ref QuestSequence reference197 = ref span258[num]; QuestSequence obj197 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Duty, null, null, 567) + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + Span span266 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span266[num2] = new QuestStep(EInteractionType.Duty, null, null, 567) { DutyOptions = new DutyOptions { @@ -142899,7 +172194,8 @@ public static class AssemblyQuestLoader }; obj197.Steps = list266; reference197 = obj197; - ref QuestSequence reference198 = ref span98[8]; + num++; + ref QuestSequence reference198 = ref span258[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue @@ -142907,7 +172203,9 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017158u, new Vector3(46.73828f, -15.36437f, 43.198242f), 567) + Span span267 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span267[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017158u, new Vector3(46.73828f, -15.36437f, 43.198242f), 567) { StopDistance = 5f, NextQuestId = new QuestId(2286) @@ -142921,24 +172219,30 @@ public static class AssemblyQuestLoader num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - CollectionsMarshal.AsSpan(list268)[0] = "liza"; + Span span268 = CollectionsMarshal.AsSpan(list268); + index = 0; + span268[index] = "liza"; questRoot33.Author = list268; - num = 2; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - Span span102 = CollectionsMarshal.AsSpan(list269); - ref QuestSequence reference199 = ref span102[0]; + index = 2; + List list269 = new List(index); + CollectionsMarshal.SetCount(list269, index); + Span span269 = CollectionsMarshal.AsSpan(list269); + num = 0; + ref QuestSequence reference199 = ref span269[num]; QuestSequence obj199 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017168u, new Vector3(47.745483f, -15.543178f, 39.07837f), 567); + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + Span span270 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span270[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017168u, new Vector3(47.745483f, -15.543178f, 39.07837f), 567); obj199.Steps = list270; reference199 = obj199; - ref QuestSequence reference200 = ref span102[1]; + num++; + ref QuestSequence reference200 = ref span269[num]; QuestSequence obj200 = new QuestSequence { Sequence = byte.MaxValue @@ -142946,16 +172250,19 @@ public static class AssemblyQuestLoader num2 = 3; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span103 = CollectionsMarshal.AsSpan(list271); - span103[0] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.19791f, -14.73229f, 26.85483f), 567) + Span span271 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span271[index2] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.19791f, -14.73229f, 26.85483f), 567) { TargetTerritoryId = (ushort)567 }; - span103[1] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.34343f, 3.560182f, -18.78459f), 567) + index2++; + span271[index2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.34343f, 3.560182f, -18.78459f), 567) { TargetTerritoryId = (ushort)568 }; - span103[2] = new QuestStep(EInteractionType.CompleteQuest, 1017200u, new Vector3(-3.2807007f, 1.937151E-07f, 2.1209717f), 568) + index2++; + span271[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017200u, new Vector3(-3.2807007f, 1.937151E-07f, 2.1209717f), 568) { StopDistance = 7f, NextQuestId = new QuestId(2373) @@ -142969,22 +172276,26 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - CollectionsMarshal.AsSpan(list272)[0] = "liza"; + Span span272 = CollectionsMarshal.AsSpan(list272); + index = 0; + span272[index] = "liza"; questRoot34.Author = list272; - num = 6; - List list273 = new List(num); - CollectionsMarshal.SetCount(list273, num); - Span span104 = CollectionsMarshal.AsSpan(list273); - ref QuestSequence reference201 = ref span104[0]; + index = 6; + List list273 = new List(index); + CollectionsMarshal.SetCount(list273, index); + Span span273 = CollectionsMarshal.AsSpan(list273); + num = 0; + ref QuestSequence reference201 = ref span273[num]; QuestSequence obj201 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - Span span105 = CollectionsMarshal.AsSpan(list274); - ref QuestStep reference202 = ref span105[0]; + index2 = 3; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + Span span274 = CollectionsMarshal.AsSpan(list274); + num2 = 0; + ref QuestStep reference202 = ref span274[num2]; QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -142995,19 +172306,24 @@ public static class AssemblyQuestLoader num3 = 1; List list275 = new List(num3); CollectionsMarshal.SetCount(list275, num3); - CollectionsMarshal.AsSpan(list275)[0] = 351; + Span span275 = CollectionsMarshal.AsSpan(list275); + index3 = 0; + span275[index3] = 351; skipStepConditions5.InTerritory = list275; skipConditions5.StepIf = skipStepConditions5; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list276 = new List(num3); - CollectionsMarshal.SetCount(list276, num3); - CollectionsMarshal.AsSpan(list276)[0] = 351; + index3 = 1; + List list276 = new List(index3); + CollectionsMarshal.SetCount(list276, index3); + Span span276 = CollectionsMarshal.AsSpan(list276); + num3 = 0; + span276[num3] = 351; skipAetheryteCondition2.InTerritory = list276; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition2; obj202.SkipConditions = skipConditions5; reference202 = obj202; - span105[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span274[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -143018,13 +172334,15 @@ public static class AssemblyQuestLoader } } }; - span105[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + num2++; + span274[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj201.Steps = list274; reference201 = obj201; - ref QuestSequence reference203 = ref span104[1]; + num++; + ref QuestSequence reference203 = ref span273[num]; QuestSequence obj203 = new QuestSequence { Sequence = 1 @@ -143032,29 +172350,36 @@ public static class AssemblyQuestLoader num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.Interact, 1017115u, new Vector3(-59.67804f, 271.23285f, 4.0131226f), 402) + Span span277 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + span277[index2] = new QuestStep(EInteractionType.Interact, 1017115u, new Vector3(-59.67804f, 271.23285f, 4.0131226f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj203.Steps = list277; reference203 = obj203; - ref QuestSequence reference204 = ref span104[2]; + num++; + ref QuestSequence reference204 = ref span273[num]; QuestSequence obj204 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005564u, new Vector3(-58.121643f, 271.1986f, -4.1047363f), 402); + index2 = 1; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + Span span278 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span278[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005564u, new Vector3(-58.121643f, 271.1986f, -4.1047363f), 402); obj204.Steps = list278; reference204 = obj204; - span104[3] = new QuestSequence + num++; + span273[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference205 = ref span104[4]; + num++; + ref QuestSequence reference205 = ref span273[num]; QuestSequence obj205 = new QuestSequence { Sequence = 4 @@ -143062,28 +172387,34 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1017167u, new Vector3(-66.91089f, 271.23285f, 4.0131226f), 402); + Span span279 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span279[index2] = new QuestStep(EInteractionType.Interact, 1017167u, new Vector3(-66.91089f, 271.23285f, 4.0131226f), 402); obj205.Steps = list279; reference205 = obj205; - ref QuestSequence reference206 = ref span104[5]; + num++; + ref QuestSequence reference206 = ref span273[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - Span span106 = CollectionsMarshal.AsSpan(list280); - span106[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span280 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span280[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span106[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span280[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span106[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + num2++; + span280[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f, NextQuestId = new QuestId(2332) @@ -143097,13 +172428,16 @@ public static class AssemblyQuestLoader num = 1; List list281 = new List(num); CollectionsMarshal.SetCount(list281, num); - CollectionsMarshal.AsSpan(list281)[0] = "liza"; + Span span281 = CollectionsMarshal.AsSpan(list281); + index = 0; + span281[index] = "liza"; questRoot35.Author = list281; - num = 5; - List list282 = new List(num); - CollectionsMarshal.SetCount(list282, num); - Span span107 = CollectionsMarshal.AsSpan(list282); - ref QuestSequence reference207 = ref span107[0]; + index = 5; + List list282 = new List(index); + CollectionsMarshal.SetCount(list282, index); + Span span282 = CollectionsMarshal.AsSpan(list282); + num = 0; + ref QuestSequence reference207 = ref span282[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -143111,24 +172445,30 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + Span span283 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span283[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj207.Steps = list283; reference207 = obj207; - ref QuestSequence reference208 = ref span107[1]; + num++; + ref QuestSequence reference208 = ref span282[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) + index2 = 1; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + Span span284 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + span284[num2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) { Fly = true }; obj208.Steps = list284; reference208 = obj208; - ref QuestSequence reference209 = ref span107[2]; + num++; + ref QuestSequence reference209 = ref span282[num]; QuestSequence obj209 = new QuestSequence { Sequence = 2 @@ -143136,93 +172476,125 @@ public static class AssemblyQuestLoader num2 = 2; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span108 = CollectionsMarshal.AsSpan(list285); - span108[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span285 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span285[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15725u, ItemCount = 3 }; - span108[1] = new QuestStep(EInteractionType.Interact, 1017352u, new Vector3(-56.809387f, -8.866012f, 161.8219f), 400); + index2++; + span285[index2] = new QuestStep(EInteractionType.Interact, 1017352u, new Vector3(-56.809387f, -8.866012f, 161.8219f), 400); obj209.Steps = list285; reference209 = obj209; - ref QuestSequence reference210 = ref span107[3]; + num++; + ref QuestSequence reference210 = ref span282[num]; QuestSequence obj210 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - Span span109 = CollectionsMarshal.AsSpan(list286); - ref QuestStep reference211 = ref span109[0]; + index2 = 4; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + Span span286 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + ref QuestStep reference211 = ref span286[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1017353u, new Vector3(-33.554626f, -8.866012f, 163.43933f), 400); num3 = 6; List list287 = new List(num3); CollectionsMarshal.SetCount(list287, num3); - Span span110 = CollectionsMarshal.AsSpan(list287); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span287 = CollectionsMarshal.AsSpan(list287); + index3 = 0; + span287[index3] = null; + index3++; + span287[index3] = null; + index3++; + span287[index3] = null; + index3++; + span287[index3] = null; + index3++; + span287[index3] = null; + index3++; + span287[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list287; reference211 = questStep; - ref QuestStep reference212 = ref span109[1]; + num2++; + ref QuestStep reference212 = ref span286[num2]; QuestStep obj211 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-104.788086f, -8.655561f, 194.60593f), 400) { Fly = true }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 6; - List list288 = new List(num3); - CollectionsMarshal.SetCount(list288, num3); - Span span111 = CollectionsMarshal.AsSpan(list288); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list288 = new List(index3); + CollectionsMarshal.SetCount(list288, index3); + Span span288 = CollectionsMarshal.AsSpan(list288); + num3 = 0; + span288[num3] = null; + num3++; + span288[num3] = null; + num3++; + span288[num3] = null; + num3++; + span288[num3] = null; + num3++; + span288[num3] = null; + num3++; + span288[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list288; skipConditions6.StepIf = skipStepConditions6; obj211.SkipConditions = skipConditions6; reference212 = obj211; - ref QuestStep reference213 = ref span109[2]; + num2++; + ref QuestStep reference213 = ref span286[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1017354u, new Vector3(-104.41754f, -8.6555605f, 193.16394f), 400); num3 = 6; List list289 = new List(num3); CollectionsMarshal.SetCount(list289, num3); - Span span112 = CollectionsMarshal.AsSpan(list289); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span289 = CollectionsMarshal.AsSpan(list289); + index3 = 0; + span289[index3] = null; + index3++; + span289[index3] = null; + index3++; + span289[index3] = null; + index3++; + span289[index3] = null; + index3++; + span289[index3] = null; + index3++; + span289[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list289; reference213 = questStep2; - ref QuestStep reference214 = ref span109[3]; + num2++; + ref QuestStep reference214 = ref span286[num2]; QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1017355u, new Vector3(-110.97894f, -8.866015f, 247.94385f), 400) { Fly = true }; - num3 = 6; - List list290 = new List(num3); - CollectionsMarshal.SetCount(list290, num3); - Span span113 = CollectionsMarshal.AsSpan(list290); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list290 = new List(index3); + CollectionsMarshal.SetCount(list290, index3); + Span span290 = CollectionsMarshal.AsSpan(list290); + num3 = 0; + span290[num3] = null; + num3++; + span290[num3] = null; + num3++; + span290[num3] = null; + num3++; + span290[num3] = null; + num3++; + span290[num3] = null; + num3++; + span290[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj212.CompletionQuestVariablesFlags = list290; reference214 = obj212; obj210.Steps = list286; reference210 = obj210; - ref QuestSequence reference215 = ref span107[4]; + num++; + ref QuestSequence reference215 = ref span282[num]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue @@ -143230,7 +172602,9 @@ public static class AssemblyQuestLoader num2 = 1; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span291 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span291[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true }; @@ -143243,21 +172617,26 @@ public static class AssemblyQuestLoader num = 1; List list292 = new List(num); CollectionsMarshal.SetCount(list292, num); - CollectionsMarshal.AsSpan(list292)[0] = "Censored"; + Span span292 = CollectionsMarshal.AsSpan(list292); + index = 0; + span292[index] = "Censored"; questRoot36.Author = list292; - num = 3; - List list293 = new List(num); - CollectionsMarshal.SetCount(list293, num); - Span span114 = CollectionsMarshal.AsSpan(list293); - ref QuestSequence reference216 = ref span114[0]; + index = 3; + List list293 = new List(index); + CollectionsMarshal.SetCount(list293, index); + Span span293 = CollectionsMarshal.AsSpan(list293); + num = 0; + ref QuestSequence reference216 = ref span293[num]; QuestSequence obj214 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span294 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span294[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143276,7 +172655,8 @@ public static class AssemblyQuestLoader }; obj214.Steps = list294; reference216 = obj214; - ref QuestSequence reference217 = ref span114[1]; + num++; + ref QuestSequence reference217 = ref span293[num]; QuestSequence obj215 = new QuestSequence { Sequence = 1 @@ -143284,22 +172664,26 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1017356u, new Vector3(676.14246f, -0.4951099f, 11.550964f), 400) + Span span295 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span295[index2] = new QuestStep(EInteractionType.Interact, 1017356u, new Vector3(676.14246f, -0.4951099f, 11.550964f), 400) { Fly = true }; obj215.Steps = list295; reference217 = obj215; - ref QuestSequence reference218 = ref span114[2]; + num++; + ref QuestSequence reference218 = ref span293[num]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - Span span115 = CollectionsMarshal.AsSpan(list296); - span115[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span296 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span296[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15726u, ItemCount = 3, @@ -143311,7 +172695,8 @@ public static class AssemblyQuestLoader } } }; - span115[1] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + num2++; + span296[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143337,13 +172722,16 @@ public static class AssemblyQuestLoader num = 1; List list297 = new List(num); CollectionsMarshal.SetCount(list297, num); - CollectionsMarshal.AsSpan(list297)[0] = "Censored"; + Span span297 = CollectionsMarshal.AsSpan(list297); + index = 0; + span297[index] = "Censored"; questRoot37.Author = list297; - num = 4; - List list298 = new List(num); - CollectionsMarshal.SetCount(list298, num); - Span span116 = CollectionsMarshal.AsSpan(list298); - ref QuestSequence reference219 = ref span116[0]; + index = 4; + List list298 = new List(index); + CollectionsMarshal.SetCount(list298, index); + Span span298 = CollectionsMarshal.AsSpan(list298); + num = 0; + ref QuestSequence reference219 = ref span298[num]; QuestSequence obj217 = new QuestSequence { Sequence = 0 @@ -143351,7 +172739,9 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span299 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span299[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143370,16 +172760,18 @@ public static class AssemblyQuestLoader }; obj217.Steps = list299; reference219 = obj217; - ref QuestSequence reference220 = ref span116[1]; + num++; + ref QuestSequence reference220 = ref span298[num]; QuestSequence obj218 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - Span span117 = CollectionsMarshal.AsSpan(list300); - ref QuestStep reference221 = ref span117[0]; + index2 = 2; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + Span span300 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + ref QuestStep reference221 = ref span300[num2]; QuestStep obj219 = new QuestStep(EInteractionType.Interact, 1017357u, new Vector3(312.3673f, -35.70687f, 89.25f), 400) { Fly = true @@ -143387,22 +172779,30 @@ public static class AssemblyQuestLoader num3 = 6; List list301 = new List(num3); CollectionsMarshal.SetCount(list301, num3); - Span span118 = CollectionsMarshal.AsSpan(list301); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span301 = CollectionsMarshal.AsSpan(list301); + index3 = 0; + span301[index3] = null; + index3++; + span301[index3] = null; + index3++; + span301[index3] = null; + index3++; + span301[index3] = null; + index3++; + span301[index3] = null; + index3++; + span301[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj219.CompletionQuestVariablesFlags = list301; reference221 = obj219; - span117[1] = new QuestStep(EInteractionType.Interact, 1017358u, new Vector3(837.9186f, -3.0115817f, 211.56628f), 400) + num2++; + span300[num2] = new QuestStep(EInteractionType.Interact, 1017358u, new Vector3(837.9186f, -3.0115817f, 211.56628f), 400) { Fly = true }; obj218.Steps = list300; reference220 = obj218; - ref QuestSequence reference222 = ref span116[2]; + num++; + ref QuestSequence reference222 = ref span298[num]; QuestSequence obj220 = new QuestSequence { Sequence = 2 @@ -143410,23 +172810,27 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1017471u, new Vector3(-391.0735f, 59.9946f, 303.1814f), 400) + Span span302 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span302[index2] = new QuestStep(EInteractionType.Interact, 1017471u, new Vector3(-391.0735f, 59.9946f, 303.1814f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj220.Steps = list302; reference222 = obj220; - ref QuestSequence reference223 = ref span116[3]; + num++; + ref QuestSequence reference223 = ref span298[num]; QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - Span span119 = CollectionsMarshal.AsSpan(list303); - span119[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + Span span303 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span303[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15727u, ItemCount = 2, @@ -143438,7 +172842,8 @@ public static class AssemblyQuestLoader } } }; - span119[1] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + num2++; + span303[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143464,13 +172869,16 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - CollectionsMarshal.AsSpan(list304)[0] = "Censored"; + Span span304 = CollectionsMarshal.AsSpan(list304); + index = 0; + span304[index] = "Censored"; questRoot38.Author = list304; - num = 6; - List list305 = new List(num); - CollectionsMarshal.SetCount(list305, num); - Span span120 = CollectionsMarshal.AsSpan(list305); - ref QuestSequence reference224 = ref span120[0]; + index = 6; + List list305 = new List(index); + CollectionsMarshal.SetCount(list305, index); + Span span305 = CollectionsMarshal.AsSpan(list305); + num = 0; + ref QuestSequence reference224 = ref span305[num]; QuestSequence obj222 = new QuestSequence { Sequence = 0 @@ -143478,7 +172886,9 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span306 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span306[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143497,15 +172907,18 @@ public static class AssemblyQuestLoader }; obj222.Steps = list306; reference224 = obj222; - ref QuestSequence reference225 = ref span120[1]; + num++; + ref QuestSequence reference225 = ref span305[num]; QuestSequence obj223 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1017359u, new Vector3(401.9989f, -6.0554f, 581.65857f), 400) + index2 = 1; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + Span span307 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span307[num2] = new QuestStep(EInteractionType.Interact, 1017359u, new Vector3(401.9989f, -6.0554f, 581.65857f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -143524,7 +172937,8 @@ public static class AssemblyQuestLoader }; obj223.Steps = list307; reference225 = obj223; - ref QuestSequence reference226 = ref span120[2]; + num++; + ref QuestSequence reference226 = ref span305[num]; QuestSequence obj224 = new QuestSequence { Sequence = 2 @@ -143532,36 +172946,43 @@ public static class AssemblyQuestLoader num2 = 3; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - Span span121 = CollectionsMarshal.AsSpan(list308); - span121[0] = new QuestStep(EInteractionType.Interact, 1017362u, new Vector3(279.3468f, -37.982975f, 487.6936f), 400) + Span span308 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span308[index2] = new QuestStep(EInteractionType.Interact, 1017362u, new Vector3(279.3468f, -37.982975f, 487.6936f), 400) { Fly = true }; - span121[1] = new QuestStep(EInteractionType.Interact, 1017363u, new Vector3(320.88184f, -13.416825f, 439.07825f), 400) + index2++; + span308[index2] = new QuestStep(EInteractionType.Interact, 1017363u, new Vector3(320.88184f, -13.416825f, 439.07825f), 400) { Fly = true }; - span121[2] = new QuestStep(EInteractionType.Interact, 1017361u, new Vector3(177.7218f, -33.74496f, 486.8695f), 400) + index2++; + span308[index2] = new QuestStep(EInteractionType.Interact, 1017361u, new Vector3(177.7218f, -33.74496f, 486.8695f), 400) { Fly = true }; obj224.Steps = list308; reference226 = obj224; - ref QuestSequence reference227 = ref span120[3]; + num++; + ref QuestSequence reference227 = ref span305[num]; QuestSequence obj225 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 1017359u, new Vector3(401.9989f, -6.0554f, 581.65857f), 400) + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + Span span309 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span309[num2] = new QuestStep(EInteractionType.Interact, 1017359u, new Vector3(401.9989f, -6.0554f, 581.65857f), 400) { Fly = true }; obj225.Steps = list309; reference227 = obj225; - ref QuestSequence reference228 = ref span120[4]; + num++; + ref QuestSequence reference228 = ref span305[num]; QuestSequence obj226 = new QuestSequence { Sequence = 4 @@ -143569,8 +172990,9 @@ public static class AssemblyQuestLoader num2 = 2; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - Span span122 = CollectionsMarshal.AsSpan(list310); - span122[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span310 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span310[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15728u, ItemCount = 3, @@ -143582,18 +173004,22 @@ public static class AssemblyQuestLoader } } }; - span122[1] = new QuestStep(EInteractionType.Interact, 1017360u, new Vector3(395.98682f, -5.798145f, 587.3655f), 400); + index2++; + span310[index2] = new QuestStep(EInteractionType.Interact, 1017360u, new Vector3(395.98682f, -5.798145f, 587.3655f), 400); obj226.Steps = list310; reference228 = obj226; - ref QuestSequence reference229 = ref span120[5]; + num++; + ref QuestSequence reference229 = ref span305[num]; QuestSequence obj227 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + Span span311 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span311[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143619,13 +173045,16 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - CollectionsMarshal.AsSpan(list312)[0] = "Censored"; + Span span312 = CollectionsMarshal.AsSpan(list312); + index = 0; + span312[index] = "Censored"; questRoot39.Author = list312; - num = 5; - List list313 = new List(num); - CollectionsMarshal.SetCount(list313, num); - Span span123 = CollectionsMarshal.AsSpan(list313); - ref QuestSequence reference230 = ref span123[0]; + index = 5; + List list313 = new List(index); + CollectionsMarshal.SetCount(list313, index); + Span span313 = CollectionsMarshal.AsSpan(list313); + num = 0; + ref QuestSequence reference230 = ref span313[num]; QuestSequence obj228 = new QuestSequence { Sequence = 0 @@ -143633,7 +173062,9 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span314 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span314[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143652,15 +173083,18 @@ public static class AssemblyQuestLoader }; obj228.Steps = list314; reference230 = obj228; - ref QuestSequence reference231 = ref span123[1]; + num++; + ref QuestSequence reference231 = ref span313[num]; QuestSequence obj229 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1017364u, new Vector3(517.87585f, -11.374985f, 82.96326f), 400) + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + Span span315 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span315[num2] = new QuestStep(EInteractionType.Interact, 1017364u, new Vector3(517.87585f, -11.374985f, 82.96326f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -143679,7 +173113,8 @@ public static class AssemblyQuestLoader }; obj229.Steps = list315; reference231 = obj229; - ref QuestSequence reference232 = ref span123[2]; + num++; + ref QuestSequence reference232 = ref span313[num]; QuestSequence obj230 = new QuestSequence { Sequence = 2 @@ -143687,25 +173122,33 @@ public static class AssemblyQuestLoader num2 = 3; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span124 = CollectionsMarshal.AsSpan(list316); - ref QuestStep reference233 = ref span124[0]; + Span span316 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + ref QuestStep reference233 = ref span316[index2]; QuestStep obj231 = new QuestStep(EInteractionType.Interact, 2007227u, new Vector3(439.9939f, -31.601501f, 204.88281f), 400) { Fly = true }; - num3 = 6; - List list317 = new List(num3); - CollectionsMarshal.SetCount(list317, num3); - Span span125 = CollectionsMarshal.AsSpan(list317); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list317 = new List(index3); + CollectionsMarshal.SetCount(list317, index3); + Span span317 = CollectionsMarshal.AsSpan(list317); + num3 = 0; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj231.CompletionQuestVariablesFlags = list317; reference233 = obj231; - ref QuestStep reference234 = ref span124[1]; + index2++; + ref QuestStep reference234 = ref span316[index2]; QuestStep obj232 = new QuestStep(EInteractionType.Interact, 2007226u, new Vector3(430.80798f, -27.878296f, 141.92407f), 400) { Fly = true @@ -143713,36 +173156,47 @@ public static class AssemblyQuestLoader num3 = 6; List list318 = new List(num3); CollectionsMarshal.SetCount(list318, num3); - Span span126 = CollectionsMarshal.AsSpan(list318); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span318 = CollectionsMarshal.AsSpan(list318); + index3 = 0; + span318[index3] = null; + index3++; + span318[index3] = null; + index3++; + span318[index3] = null; + index3++; + span318[index3] = null; + index3++; + span318[index3] = null; + index3++; + span318[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj232.CompletionQuestVariablesFlags = list318; reference234 = obj232; - span124[2] = new QuestStep(EInteractionType.Interact, 2007225u, new Vector3(413.68726f, -22.354492f, 16.525452f), 400) + index2++; + span316[index2] = new QuestStep(EInteractionType.Interact, 2007225u, new Vector3(413.68726f, -22.354492f, 16.525452f), 400) { Fly = true }; obj230.Steps = list316; reference232 = obj230; - ref QuestSequence reference235 = ref span123[3]; + num++; + ref QuestSequence reference235 = ref span313[num]; QuestSequence obj233 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.Interact, 1017364u, new Vector3(517.87585f, -11.374985f, 82.96326f), 400) + index2 = 1; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + Span span319 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + span319[num2] = new QuestStep(EInteractionType.Interact, 1017364u, new Vector3(517.87585f, -11.374985f, 82.96326f), 400) { Fly = true }; obj233.Steps = list319; reference235 = obj233; - ref QuestSequence reference236 = ref span123[4]; + num++; + ref QuestSequence reference236 = ref span313[num]; QuestSequence obj234 = new QuestSequence { Sequence = byte.MaxValue @@ -143750,8 +173204,9 @@ public static class AssemblyQuestLoader num2 = 2; List list320 = new List(num2); CollectionsMarshal.SetCount(list320, num2); - Span span127 = CollectionsMarshal.AsSpan(list320); - span127[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span320 = CollectionsMarshal.AsSpan(list320); + index2 = 0; + span320[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15729u, ItemCount = 3, @@ -143763,7 +173218,8 @@ public static class AssemblyQuestLoader } } }; - span127[1] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2++; + span320[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143789,21 +173245,26 @@ public static class AssemblyQuestLoader num = 1; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - CollectionsMarshal.AsSpan(list321)[0] = "Censored"; + Span span321 = CollectionsMarshal.AsSpan(list321); + index = 0; + span321[index] = "Censored"; questRoot40.Author = list321; - num = 3; - List list322 = new List(num); - CollectionsMarshal.SetCount(list322, num); - Span span128 = CollectionsMarshal.AsSpan(list322); - ref QuestSequence reference237 = ref span128[0]; + index = 3; + List list322 = new List(index); + CollectionsMarshal.SetCount(list322, index); + Span span322 = CollectionsMarshal.AsSpan(list322); + num = 0; + ref QuestSequence reference237 = ref span322[num]; QuestSequence obj235 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + Span span323 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span323[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143822,7 +173283,8 @@ public static class AssemblyQuestLoader }; obj235.Steps = list323; reference237 = obj235; - ref QuestSequence reference238 = ref span128[1]; + num++; + ref QuestSequence reference238 = ref span322[num]; QuestSequence obj236 = new QuestSequence { Sequence = 1 @@ -143830,8 +173292,9 @@ public static class AssemblyQuestLoader num2 = 4; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - Span span129 = CollectionsMarshal.AsSpan(list324); - ref QuestStep reference239 = ref span129[0]; + Span span324 = CollectionsMarshal.AsSpan(list324); + index2 = 0; + ref QuestStep reference239 = ref span324[index2]; QuestStep obj237 = new QuestStep(EInteractionType.Say, 1017365u, new Vector3(255.75635f, -43.649445f, 637.2014f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -143852,19 +173315,26 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list325 = new List(num3); - CollectionsMarshal.SetCount(list325, num3); - Span span130 = CollectionsMarshal.AsSpan(list325); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list325 = new List(index3); + CollectionsMarshal.SetCount(list325, index3); + Span span325 = CollectionsMarshal.AsSpan(list325); + num3 = 0; + span325[num3] = null; + num3++; + span325[num3] = null; + num3++; + span325[num3] = null; + num3++; + span325[num3] = null; + num3++; + span325[num3] = null; + num3++; + span325[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj237.CompletionQuestVariablesFlags = list325; reference239 = obj237; - ref QuestStep reference240 = ref span129[1]; + index2++; + ref QuestStep reference240 = ref span324[index2]; QuestStep obj238 = new QuestStep(EInteractionType.Say, 1017366u, new Vector3(296.37585f, -47.154934f, 673.9756f), 400) { ChatMessage = new ChatMessage @@ -143875,16 +173345,23 @@ public static class AssemblyQuestLoader num3 = 6; List list326 = new List(num3); CollectionsMarshal.SetCount(list326, num3); - Span span131 = CollectionsMarshal.AsSpan(list326); - span131[0] = null; - span131[1] = null; - span131[2] = null; - span131[3] = null; - span131[4] = null; - span131[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span326 = CollectionsMarshal.AsSpan(list326); + index3 = 0; + span326[index3] = null; + index3++; + span326[index3] = null; + index3++; + span326[index3] = null; + index3++; + span326[index3] = null; + index3++; + span326[index3] = null; + index3++; + span326[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj238.CompletionQuestVariablesFlags = list326; reference240 = obj238; - ref QuestStep reference241 = ref span129[2]; + index2++; + ref QuestStep reference241 = ref span324[index2]; QuestStep obj239 = new QuestStep(EInteractionType.Say, 1017368u, new Vector3(451.7433f, -5.8336167f, 649.7444f), 400) { Fly = true, @@ -143893,19 +173370,26 @@ public static class AssemblyQuestLoader Key = "TEXT_BANMOG202_02295_SYSTEM_000_019" } }; - num3 = 6; - List list327 = new List(num3); - CollectionsMarshal.SetCount(list327, num3); - Span span132 = CollectionsMarshal.AsSpan(list327); - span132[0] = null; - span132[1] = null; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list327 = new List(index3); + CollectionsMarshal.SetCount(list327, index3); + Span span327 = CollectionsMarshal.AsSpan(list327); + num3 = 0; + span327[num3] = null; + num3++; + span327[num3] = null; + num3++; + span327[num3] = null; + num3++; + span327[num3] = null; + num3++; + span327[num3] = null; + num3++; + span327[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj239.CompletionQuestVariablesFlags = list327; reference241 = obj239; - span129[3] = new QuestStep(EInteractionType.Say, 1017367u, new Vector3(484.45862f, -7.7667823f, 716.9756f), 400) + index2++; + span324[index2] = new QuestStep(EInteractionType.Say, 1017367u, new Vector3(484.45862f, -7.7667823f, 716.9756f), 400) { Fly = true, ChatMessage = new ChatMessage @@ -143915,15 +173399,18 @@ public static class AssemblyQuestLoader }; obj236.Steps = list324; reference238 = obj236; - ref QuestSequence reference242 = ref span128[2]; + num++; + ref QuestSequence reference242 = ref span322[num]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + Span span328 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span328[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143949,13 +173436,16 @@ public static class AssemblyQuestLoader num = 1; List list329 = new List(num); CollectionsMarshal.SetCount(list329, num); - CollectionsMarshal.AsSpan(list329)[0] = "Censored"; + Span span329 = CollectionsMarshal.AsSpan(list329); + index = 0; + span329[index] = "Censored"; questRoot41.Author = list329; - num = 4; - List list330 = new List(num); - CollectionsMarshal.SetCount(list330, num); - Span span133 = CollectionsMarshal.AsSpan(list330); - ref QuestSequence reference243 = ref span133[0]; + index = 4; + List list330 = new List(index); + CollectionsMarshal.SetCount(list330, index); + Span span330 = CollectionsMarshal.AsSpan(list330); + num = 0; + ref QuestSequence reference243 = ref span330[num]; QuestSequence obj241 = new QuestSequence { Sequence = 0 @@ -143963,7 +173453,9 @@ public static class AssemblyQuestLoader num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span331 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span331[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -143982,15 +173474,18 @@ public static class AssemblyQuestLoader }; obj241.Steps = list331; reference243 = obj241; - ref QuestSequence reference244 = ref span133[1]; + num++; + ref QuestSequence reference244 = ref span330[num]; QuestSequence obj242 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list332 = new List(num2); - CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.Interact, 1017369u, new Vector3(444.93774f, -5.6449523f, 653.4065f), 400) + index2 = 1; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + Span span332 = CollectionsMarshal.AsSpan(list332); + num2 = 0; + span332[num2] = new QuestStep(EInteractionType.Interact, 1017369u, new Vector3(444.93774f, -5.6449523f, 653.4065f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -144009,7 +173504,8 @@ public static class AssemblyQuestLoader }; obj242.Steps = list332; reference244 = obj242; - ref QuestSequence reference245 = ref span133[2]; + num++; + ref QuestSequence reference245 = ref span330[num]; QuestSequence obj243 = new QuestSequence { Sequence = 2 @@ -144017,8 +173513,9 @@ public static class AssemblyQuestLoader num2 = 2; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span134 = CollectionsMarshal.AsSpan(list333); - span134[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span333 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span333[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15730u, ItemCount = 3, @@ -144030,18 +173527,22 @@ public static class AssemblyQuestLoader } } }; - span134[1] = new QuestStep(EInteractionType.Interact, 1017370u, new Vector3(456.07678f, -5.5784807f, 676.84436f), 400); + index2++; + span333[index2] = new QuestStep(EInteractionType.Interact, 1017370u, new Vector3(456.07678f, -5.5784807f, 676.84436f), 400); obj243.Steps = list333; reference245 = obj243; - ref QuestSequence reference246 = ref span133[3]; + num++; + ref QuestSequence reference246 = ref span330[num]; QuestSequence obj244 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + Span span334 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span334[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144067,13 +173568,16 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - CollectionsMarshal.AsSpan(list335)[0] = "pot0to"; + Span span335 = CollectionsMarshal.AsSpan(list335); + index = 0; + span335[index] = "pot0to"; questRoot42.Author = list335; - num = 5; - List list336 = new List(num); - CollectionsMarshal.SetCount(list336, num); - Span span135 = CollectionsMarshal.AsSpan(list336); - ref QuestSequence reference247 = ref span135[0]; + index = 5; + List list336 = new List(index); + CollectionsMarshal.SetCount(list336, index); + Span span336 = CollectionsMarshal.AsSpan(list336); + num = 0; + ref QuestSequence reference247 = ref span336[num]; QuestSequence obj245 = new QuestSequence { Sequence = 0 @@ -144081,25 +173585,31 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span337 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span337[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj245.Steps = list337; reference247 = obj245; - ref QuestSequence reference248 = ref span135[1]; + num++; + ref QuestSequence reference248 = ref span336[num]; QuestSequence obj246 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.Interact, 1017322u, new Vector3(-331.5633f, 58.823204f, 323.17078f), 400); + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + Span span338 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span338[num2] = new QuestStep(EInteractionType.Interact, 1017322u, new Vector3(-331.5633f, 58.823204f, 323.17078f), 400); obj246.Steps = list338; reference248 = obj246; - ref QuestSequence reference249 = ref span135[2]; + num++; + ref QuestSequence reference249 = ref span336[num]; QuestSequence obj247 = new QuestSequence { Sequence = 2 @@ -144107,29 +173617,35 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Action, null, new Vector3(-740.9363f, 81f, 427.06656f), 400) + Span span339 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span339[index2] = new QuestStep(EInteractionType.Action, null, new Vector3(-740.9363f, 81f, 427.06656f), 400) { Fly = true, Action = EAction.Seed }; obj247.Steps = list339; reference249 = obj247; - ref QuestSequence reference250 = ref span135[3]; + num++; + ref QuestSequence reference250 = ref span336[num]; QuestSequence obj248 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Action, null, new Vector3(-44.158283f, 81.187126f, -265.6412f), 400) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + Span span340 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span340[num2] = new QuestStep(EInteractionType.Action, null, new Vector3(-44.158283f, 81.187126f, -265.6412f), 400) { Fly = true, Action = EAction.Seed }; obj248.Steps = list340; reference250 = obj248; - ref QuestSequence reference251 = ref span135[4]; + num++; + ref QuestSequence reference251 = ref span336[num]; QuestSequence obj249 = new QuestSequence { Sequence = byte.MaxValue @@ -144137,7 +173653,9 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span341 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span341[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144163,21 +173681,26 @@ public static class AssemblyQuestLoader num = 1; List list342 = new List(num); CollectionsMarshal.SetCount(list342, num); - CollectionsMarshal.AsSpan(list342)[0] = "Censored"; + Span span342 = CollectionsMarshal.AsSpan(list342); + index = 0; + span342[index] = "Censored"; questRoot43.Author = list342; - num = 4; - List list343 = new List(num); - CollectionsMarshal.SetCount(list343, num); - Span span136 = CollectionsMarshal.AsSpan(list343); - ref QuestSequence reference252 = ref span136[0]; + index = 4; + List list343 = new List(index); + CollectionsMarshal.SetCount(list343, index); + Span span343 = CollectionsMarshal.AsSpan(list343); + num = 0; + ref QuestSequence reference252 = ref span343[num]; QuestSequence obj250 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list344 = new List(index2); + CollectionsMarshal.SetCount(list344, index2); + Span span344 = CollectionsMarshal.AsSpan(list344); + num2 = 0; + span344[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144196,7 +173719,8 @@ public static class AssemblyQuestLoader }; obj250.Steps = list344; reference252 = obj250; - ref QuestSequence reference253 = ref span136[1]; + num++; + ref QuestSequence reference253 = ref span343[num]; QuestSequence obj251 = new QuestSequence { Sequence = 1 @@ -144204,23 +173728,27 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.Interact, 1017377u, new Vector3(559.9907f, -1.071418f, -372.42694f), 400) + Span span345 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + span345[index2] = new QuestStep(EInteractionType.Interact, 1017377u, new Vector3(559.9907f, -1.071418f, -372.42694f), 400) { Fly = true, Land = true }; obj251.Steps = list345; reference253 = obj251; - ref QuestSequence reference254 = ref span136[2]; + num++; + ref QuestSequence reference254 = ref span343[num]; QuestSequence obj252 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - Span span137 = CollectionsMarshal.AsSpan(list346); - span137[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + Span span346 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span346[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15731u, ItemCount = 1, @@ -144232,10 +173760,12 @@ public static class AssemblyQuestLoader } } }; - span137[1] = new QuestStep(EInteractionType.Interact, 1017378u, new Vector3(555.84033f, -1.1545231f, -386.28217f), 400); + num2++; + span346[num2] = new QuestStep(EInteractionType.Interact, 1017378u, new Vector3(555.84033f, -1.1545231f, -386.28217f), 400); obj252.Steps = list346; reference254 = obj252; - ref QuestSequence reference255 = ref span136[3]; + num++; + ref QuestSequence reference255 = ref span343[num]; QuestSequence obj253 = new QuestSequence { Sequence = byte.MaxValue @@ -144243,7 +173773,9 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span347 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span347[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144269,21 +173801,26 @@ public static class AssemblyQuestLoader num = 1; List list348 = new List(num); CollectionsMarshal.SetCount(list348, num); - CollectionsMarshal.AsSpan(list348)[0] = "Censored"; + Span span348 = CollectionsMarshal.AsSpan(list348); + index = 0; + span348[index] = "Censored"; questRoot44.Author = list348; - num = 4; - List list349 = new List(num); - CollectionsMarshal.SetCount(list349, num); - Span span138 = CollectionsMarshal.AsSpan(list349); - ref QuestSequence reference256 = ref span138[0]; + index = 4; + List list349 = new List(index); + CollectionsMarshal.SetCount(list349, index); + Span span349 = CollectionsMarshal.AsSpan(list349); + num = 0; + ref QuestSequence reference256 = ref span349[num]; QuestSequence obj254 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + Span span350 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span350[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144302,7 +173839,8 @@ public static class AssemblyQuestLoader }; obj254.Steps = list350; reference256 = obj254; - ref QuestSequence reference257 = ref span138[1]; + num++; + ref QuestSequence reference257 = ref span349[num]; QuestSequence obj255 = new QuestSequence { Sequence = 1 @@ -144310,22 +173848,26 @@ public static class AssemblyQuestLoader num2 = 1; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1017379u, new Vector3(-183.0625f, 182.06508f, -759.21265f), 400) + Span span351 = CollectionsMarshal.AsSpan(list351); + index2 = 0; + span351[index2] = new QuestStep(EInteractionType.Interact, 1017379u, new Vector3(-183.0625f, 182.06508f, -759.21265f), 400) { Fly = true }; obj255.Steps = list351; reference257 = obj255; - ref QuestSequence reference258 = ref span138[2]; + num++; + ref QuestSequence reference258 = ref span349[num]; QuestSequence obj256 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - Span span139 = CollectionsMarshal.AsSpan(list352); - span139[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + Span span352 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span352[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15732u, ItemCount = 2, @@ -144337,10 +173879,12 @@ public static class AssemblyQuestLoader } } }; - span139[1] = new QuestStep(EInteractionType.Interact, 1017380u, new Vector3(-171.74036f, 178.63443f, -772.9458f), 400); + num2++; + span352[num2] = new QuestStep(EInteractionType.Interact, 1017380u, new Vector3(-171.74036f, 178.63443f, -772.9458f), 400); obj256.Steps = list352; reference258 = obj256; - ref QuestSequence reference259 = ref span138[3]; + num++; + ref QuestSequence reference259 = ref span349[num]; QuestSequence obj257 = new QuestSequence { Sequence = byte.MaxValue @@ -144348,7 +173892,9 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span353 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span353[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144378,13 +173924,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "plogon_enjoyer"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "plogon_enjoyer"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -144392,25 +173941,31 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1017383u, new Vector3(-657.46545f, 73.76131f, 219.28735f), 400) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1017383u, new Vector3(-657.46545f, 73.76131f, 219.28735f), 400) { Fly = true, Land = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -144418,18 +173973,22 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15733u, ItemCount = 1 }; - ref QuestStep reference4 = ref span2[1]; + index2++; + ref QuestStep reference4 = ref span5[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1017384u, new Vector3(-651.51447f, 73f, 217.2732f), 400); int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new DialogueChoice + Span span6 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMOG303_02300_Q1_000_000"), @@ -144439,21 +173998,25 @@ public static class AssemblyQuestLoader reference4 = questStep; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1017387u, new Vector3(-59.55603f, -8.685017f, 186.84668f), 400) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.Interact, 1017387u, new Vector3(-59.55603f, -8.685017f, 186.84668f), 400) { Fly = true }; obj4.Steps = list7; reference5 = obj4; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -144461,7 +174024,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144487,24 +174052,30 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "plogon_enjoyer"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "plogon_enjoyer"; questRoot2.Author = list9; - num = 6; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span3[0]; + index = 6; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span10[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj6.Steps = list11; reference7 = obj6; - ref QuestSequence reference8 = ref span3[1]; + num++; + ref QuestSequence reference8 = ref span10[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -144512,33 +174083,39 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) { Fly = true }; obj7.Steps = list12; reference8 = obj7; - ref QuestSequence reference9 = ref span3[2]; + num++; + ref QuestSequence reference9 = ref span10[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - Span span4 = CollectionsMarshal.AsSpan(list13); - span4[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15734u, ItemCount = 1 }; - span4[1] = new QuestStep(EInteractionType.Interact, 1017392u, new Vector3(112.687744f, -24.088774f, 167.74243f), 400) + num2++; + span13[num2] = new QuestStep(EInteractionType.Interact, 1017392u, new Vector3(112.687744f, -24.088774f, 167.74243f), 400) { Fly = true }; obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference10 = ref span3[3]; + num++; + ref QuestSequence reference10 = ref span10[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 @@ -144546,27 +174123,33 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 2007234u, new Vector3(111.86377f, -21.988281f, 192.43152f), 400) + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.Interact, 2007234u, new Vector3(111.86377f, -21.988281f, 192.43152f), 400) { Fly = true }; obj9.Steps = list14; reference10 = obj9; - ref QuestSequence reference11 = ref span3[4]; + num++; + ref QuestSequence reference11 = ref span10[num]; QuestSequence obj10 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1017392u, new Vector3(112.687744f, -24.088774f, 167.74243f), 400) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.Interact, 1017392u, new Vector3(112.687744f, -24.088774f, 167.74243f), 400) { Fly = true }; obj10.Steps = list15; reference11 = obj10; - ref QuestSequence reference12 = ref span3[5]; + num++; + ref QuestSequence reference12 = ref span10[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -144574,7 +174157,9 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144600,24 +174185,30 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "plogon_enjoyer"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "plogon_enjoyer"; questRoot3.Author = list17; - num = 6; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span5 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span5[0]; + index = 6; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span18[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj12.Steps = list19; reference13 = obj12; - ref QuestSequence reference14 = ref span5[1]; + num++; + ref QuestSequence reference14 = ref span18[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -144625,28 +174216,34 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400) + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400) { Fly = true }; obj13.Steps = list20; reference14 = obj13; - ref QuestSequence reference15 = ref span5[2]; + num++; + ref QuestSequence reference15 = ref span18[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Action, 2007272u, new Vector3(306.53845f, -38.254395f, 111.0094f), 400) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.Action, 2007272u, new Vector3(306.53845f, -38.254395f, 111.0094f), 400) { Fly = true, Action = EAction.Roar }; obj14.Steps = list21; reference15 = obj14; - ref QuestSequence reference16 = ref span5[3]; + num++; + ref QuestSequence reference16 = ref span18[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 @@ -144654,29 +174251,35 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Action, 2007273u, new Vector3(431.99805f, -28.152893f, 112.321655f), 400) + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.Action, 2007273u, new Vector3(431.99805f, -28.152893f, 112.321655f), 400) { Fly = true, Action = EAction.Roar }; obj15.Steps = list22; reference16 = obj15; - ref QuestSequence reference17 = ref span5[4]; + num++; + ref QuestSequence reference17 = ref span18[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Action, 2007274u, new Vector3(390.70715f, -35.599304f, 252.58252f), 400) + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.Action, 2007274u, new Vector3(390.70715f, -35.599304f, 252.58252f), 400) { Fly = true, Action = EAction.Roar }; obj16.Steps = list23; reference17 = obj16; - ref QuestSequence reference18 = ref span5[5]; + num++; + ref QuestSequence reference18 = ref span18[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -144684,7 +174287,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144710,21 +174315,26 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "Censored"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "Censored"; questRoot4.Author = list25; - num = 4; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span6 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference19 = ref span6[0]; + index = 4; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference19 = ref span26[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144743,7 +174353,8 @@ public static class AssemblyQuestLoader }; obj18.Steps = list27; reference19 = obj18; - ref QuestSequence reference20 = ref span6[1]; + num++; + ref QuestSequence reference20 = ref span26[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -144751,22 +174362,26 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1017403u, new Vector3(-686.12195f, 335f, 165.75867f), 400) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.Interact, 1017403u, new Vector3(-686.12195f, 335f, 165.75867f), 400) { Fly = true }; obj19.Steps = list28; reference20 = obj19; - ref QuestSequence reference21 = ref span6[2]; + num++; + ref QuestSequence reference21 = ref span26[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - Span span7 = CollectionsMarshal.AsSpan(list29); - span7[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15735u, ItemCount = 2, @@ -144778,10 +174393,12 @@ public static class AssemblyQuestLoader } } }; - span7[1] = new QuestStep(EInteractionType.Interact, 1017534u, new Vector3(-661.1582f, 335f, 158.49548f), 400); + num2++; + span29[num2] = new QuestStep(EInteractionType.Interact, 1017534u, new Vector3(-661.1582f, 335f, 158.49548f), 400); obj20.Steps = list29; reference21 = obj20; - ref QuestSequence reference22 = ref span6[3]; + num++; + ref QuestSequence reference22 = ref span26[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue @@ -144789,7 +174406,9 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true }; @@ -144802,24 +174421,30 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "liza"; + Span span31 = CollectionsMarshal.AsSpan(list31); + index = 0; + span31[index] = "liza"; questRoot5.Author = list31; - num = 5; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span8 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference23 = ref span8[0]; + index = 5; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + Span span32 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference23 = ref span32[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj22.Steps = list33; reference23 = obj22; - ref QuestSequence reference24 = ref span8[1]; + num++; + ref QuestSequence reference24 = ref span32[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 @@ -144827,27 +174452,33 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1017406u, new Vector3(-95.04846f, 79.8345f, -301.80823f), 400) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.Interact, 1017406u, new Vector3(-95.04846f, 79.8345f, -301.80823f), 400) { Fly = true }; obj23.Steps = list34; reference24 = obj23; - ref QuestSequence reference25 = ref span8[2]; + num++; + ref QuestSequence reference25 = ref span32[num]; QuestSequence obj24 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1017407u, new Vector3(-128.34369f, 125.92322f, -314.6258f), 400) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.Interact, 1017407u, new Vector3(-128.34369f, 125.92322f, -314.6258f), 400) { Fly = true }; obj24.Steps = list35; reference25 = obj24; - ref QuestSequence reference26 = ref span8[3]; + num++; + ref QuestSequence reference26 = ref span32[num]; QuestSequence obj25 = new QuestSequence { Sequence = 3 @@ -144855,24 +174486,29 @@ public static class AssemblyQuestLoader num2 = 2; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span9 = CollectionsMarshal.AsSpan(list36); - span9[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15736u, ItemCount = 3 }; - span9[1] = new QuestStep(EInteractionType.Interact, 1017408u, new Vector3(-108.59851f, 122.442116f, -318.31848f), 400); + index2++; + span36[index2] = new QuestStep(EInteractionType.Interact, 1017408u, new Vector3(-108.59851f, 122.442116f, -318.31848f), 400); obj25.Steps = list36; reference26 = obj25; - ref QuestSequence reference27 = ref span8[4]; + num++; + ref QuestSequence reference27 = ref span32[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -144898,13 +174534,16 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "liza"; + Span span38 = CollectionsMarshal.AsSpan(list38); + index = 0; + span38[index] = "liza"; questRoot6.Author = list38; - num = 7; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span10 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference28 = ref span10[0]; + index = 7; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + Span span39 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference28 = ref span39[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -144912,21 +174551,27 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj27.Steps = list40; reference28 = obj27; - ref QuestSequence reference29 = ref span10[1]; + num++; + ref QuestSequence reference29 = ref span39[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1017471u, new Vector3(-391.0735f, 59.9946f, 303.1814f), 400); + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.Interact, 1017471u, new Vector3(-391.0735f, 59.9946f, 303.1814f), 400); obj28.Steps = list41; reference29 = obj28; - ref QuestSequence reference30 = ref span10[2]; + num++; + ref QuestSequence reference30 = ref span39[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -144934,42 +174579,53 @@ public static class AssemblyQuestLoader num2 = 2; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span11 = CollectionsMarshal.AsSpan(list42); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.2606f, -24.29513f, 737.67456f), 400) + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.2606f, -24.29513f, 737.67456f), 400) { Fly = true }; - span11[1] = new QuestStep(EInteractionType.Interact, 1017409u, new Vector3(-254.71893f, -24.295156f, 738.5519f), 400); + index2++; + span42[index2] = new QuestStep(EInteractionType.Interact, 1017409u, new Vector3(-254.71893f, -24.295156f, 738.5519f), 400); obj29.Steps = list42; reference30 = obj29; - ref QuestSequence reference31 = ref span10[3]; + num++; + ref QuestSequence reference31 = ref span39[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span12 = CollectionsMarshal.AsSpan(list43); - ref QuestStep reference32 = ref span12[0]; + index2 = 4; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + ref QuestStep reference32 = ref span43[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 2007244u, new Vector3(-658.9609f, 94.25488f, -417.07483f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; - num3 = 6; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span13 = CollectionsMarshal.AsSpan(list44); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list44 = new List(index3); + CollectionsMarshal.SetCount(list44, index3); + Span span44 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span44[num3] = null; + num3++; + span44[num3] = null; + num3++; + span44[num3] = null; + num3++; + span44[num3] = null; + num3++; + span44[num3] = null; + num3++; + span44[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj31.CompletionQuestVariablesFlags = list44; reference32 = obj31; - ref QuestStep reference33 = ref span12[1]; + num2++; + ref QuestStep reference33 = ref span43[num2]; QuestStep obj32 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-673.58887f, 93.64293f, -506.5746f), 400) { Fly = true @@ -144979,32 +174635,46 @@ public static class AssemblyQuestLoader num3 = 6; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - Span span14 = CollectionsMarshal.AsSpan(list45); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span45 = CollectionsMarshal.AsSpan(list45); + index3 = 0; + span45[index3] = null; + index3++; + span45[index3] = null; + index3++; + span45[index3] = null; + index3++; + span45[index3] = null; + index3++; + span45[index3] = null; + index3++; + span45[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list45; skipConditions.StepIf = skipStepConditions; obj32.SkipConditions = skipConditions; reference33 = obj32; - ref QuestStep reference34 = ref span12[2]; + num2++; + ref QuestStep reference34 = ref span43[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2007245u, new Vector3(-671.1376f, 93.91919f, -507.49982f), 400); - num3 = 6; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - Span span15 = CollectionsMarshal.AsSpan(list46); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list46 = new List(index3); + CollectionsMarshal.SetCount(list46, index3); + Span span46 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span46[num3] = null; + num3++; + span46[num3] = null; + num3++; + span46[num3] = null; + num3++; + span46[num3] = null; + num3++; + span46[num3] = null; + num3++; + span46[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list46; reference34 = questStep2; - ref QuestStep reference35 = ref span12[3]; + num2++; + ref QuestStep reference35 = ref span43[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 2007246u, new Vector3(-813.1685f, 94.865234f, -457.3282f), 400) { Fly = true @@ -145012,18 +174682,25 @@ public static class AssemblyQuestLoader num3 = 6; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - Span span16 = CollectionsMarshal.AsSpan(list47); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span47 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span47[index3] = null; + index3++; + span47[index3] = null; + index3++; + span47[index3] = null; + index3++; + span47[index3] = null; + index3++; + span47[index3] = null; + index3++; + span47[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj33.CompletionQuestVariablesFlags = list47; reference35 = obj33; obj30.Steps = list43; reference31 = obj30; - ref QuestSequence reference36 = ref span10[4]; + num++; + ref QuestSequence reference36 = ref span39[num]; QuestSequence obj34 = new QuestSequence { Sequence = 4 @@ -145031,33 +174708,39 @@ public static class AssemblyQuestLoader num2 = 2; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span17 = CollectionsMarshal.AsSpan(list48); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.2606f, -24.29513f, 737.67456f), 400) + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.2606f, -24.29513f, 737.67456f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; - span17[1] = new QuestStep(EInteractionType.Interact, 1017409u, new Vector3(-254.71893f, -24.295156f, 738.5519f), 400); + index2++; + span48[index2] = new QuestStep(EInteractionType.Interact, 1017409u, new Vector3(-254.71893f, -24.295156f, 738.5519f), 400); obj34.Steps = list48; reference36 = obj34; - ref QuestSequence reference37 = ref span10[5]; + num++; + ref QuestSequence reference37 = ref span39[num]; QuestSequence obj35 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span18 = CollectionsMarshal.AsSpan(list49); - span18[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15737u, ItemCount = 1 }; - span18[1] = new QuestStep(EInteractionType.Interact, 1017410u, new Vector3(-246.2044f, -24.295149f, 760.7384f), 400); + num2++; + span49[num2] = new QuestStep(EInteractionType.Interact, 1017410u, new Vector3(-246.2044f, -24.295149f, 760.7384f), 400); obj35.Steps = list49; reference37 = obj35; - ref QuestSequence reference38 = ref span10[6]; + num++; + ref QuestSequence reference38 = ref span39[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue @@ -145065,7 +174748,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145091,24 +174776,30 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "liza"; + Span span51 = CollectionsMarshal.AsSpan(list51); + index = 0; + span51[index] = "liza"; questRoot7.Author = list51; - num = 6; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span19 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference39 = ref span19[0]; + index = 6; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + Span span52 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference39 = ref span52[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj37.Steps = list53; reference39 = obj37; - ref QuestSequence reference40 = ref span19[1]; + num++; + ref QuestSequence reference40 = ref span52[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 @@ -145116,25 +174807,31 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400); + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400); obj38.Steps = list54; reference40 = obj38; - ref QuestSequence reference41 = ref span19[2]; + num++; + ref QuestSequence reference41 = ref span52[num]; QuestSequence obj39 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Action, 2007264u, new Vector3(508.32373f, -0.77819824f, -360.49445f), 400) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.Action, 2007264u, new Vector3(508.32373f, -0.77819824f, -360.49445f), 400) { Fly = true, Action = EAction.Roar }; obj39.Steps = list55; reference41 = obj39; - ref QuestSequence reference42 = ref span19[3]; + num++; + ref QuestSequence reference42 = ref span52[num]; QuestSequence obj40 = new QuestSequence { Sequence = 3 @@ -145142,29 +174839,35 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Action, 2007265u, new Vector3(613.39734f, -11.917358f, -335.6222f), 400) + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.Action, 2007265u, new Vector3(613.39734f, -11.917358f, -335.6222f), 400) { Fly = true, Action = EAction.Roar }; obj40.Steps = list56; reference42 = obj40; - ref QuestSequence reference43 = ref span19[4]; + num++; + ref QuestSequence reference43 = ref span52[num]; QuestSequence obj41 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Action, 2007266u, new Vector3(554.0398f, 50.644653f, -393.72858f), 400) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.Action, 2007266u, new Vector3(554.0398f, 50.644653f, -393.72858f), 400) { Fly = true, Action = EAction.Roar }; obj41.Steps = list57; reference43 = obj41; - ref QuestSequence reference44 = ref span19[5]; + num++; + ref QuestSequence reference44 = ref span52[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -145172,7 +174875,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145198,21 +174903,26 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "Censored"; + Span span59 = CollectionsMarshal.AsSpan(list59); + index = 0; + span59[index] = "Censored"; questRoot8.Author = list59; - num = 5; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span20 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference45 = ref span20[0]; + index = 5; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + Span span60 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference45 = ref span60[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145231,7 +174941,8 @@ public static class AssemblyQuestLoader }; obj43.Steps = list61; reference45 = obj43; - ref QuestSequence reference46 = ref span20[1]; + num++; + ref QuestSequence reference46 = ref span60[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -145239,23 +174950,27 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1017412u, new Vector3(402.45667f, -74.34704f, 636.6826f), 400) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.Interact, 1017412u, new Vector3(402.45667f, -74.34704f, 636.6826f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj44.Steps = list62; reference46 = obj44; - ref QuestSequence reference47 = ref span20[2]; + num++; + ref QuestSequence reference47 = ref span60[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span21 = CollectionsMarshal.AsSpan(list63); - span21[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15738u, ItemCount = 3, @@ -145267,10 +174982,12 @@ public static class AssemblyQuestLoader } } }; - span21[1] = new QuestStep(EInteractionType.Interact, 1017413u, new Vector3(397.97046f, -72.344055f, 653.0403f), 400); + num2++; + span63[num2] = new QuestStep(EInteractionType.Interact, 1017413u, new Vector3(397.97046f, -72.344055f, 653.0403f), 400); obj45.Steps = list63; reference47 = obj45; - ref QuestSequence reference48 = ref span20[3]; + num++; + ref QuestSequence reference48 = ref span60[num]; QuestSequence obj46 = new QuestSequence { Sequence = 3 @@ -145278,22 +174995,27 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj46.Steps = list64; reference48 = obj46; - ref QuestSequence reference49 = ref span20[4]; + num++; + ref QuestSequence reference49 = ref span60[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span65[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145319,13 +175041,16 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "skiaz"; + Span span66 = CollectionsMarshal.AsSpan(list66); + index = 0; + span66[index] = "skiaz"; questRoot9.Author = list66; - num = 5; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span22 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference50 = ref span22[0]; + index = 5; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + Span span67 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference50 = ref span67[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -145333,18 +175058,23 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj48.Steps = list68; reference50 = obj48; - ref QuestSequence reference51 = ref span22[1]; + num++; + ref QuestSequence reference51 = ref span67[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1017414u, new Vector3(420.37073f, -10.765623f, 705.4398f), 400) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.Interact, 1017414u, new Vector3(420.37073f, -10.765623f, 705.4398f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -145363,7 +175093,8 @@ public static class AssemblyQuestLoader }; obj49.Steps = list69; reference51 = obj49; - ref QuestSequence reference52 = ref span22[2]; + num++; + ref QuestSequence reference52 = ref span67[num]; QuestSequence obj50 = new QuestSequence { Sequence = 2 @@ -145371,21 +175102,26 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 2007249u, new Vector3(73.77734f, -32.73065f, -183.0625f), 400) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.Interact, 2007249u, new Vector3(73.77734f, -32.73065f, -183.0625f), 400) { Fly = true }; obj50.Steps = list70; reference52 = obj50; - ref QuestSequence reference53 = ref span22[3]; + num++; + ref QuestSequence reference53 = ref span67[num]; QuestSequence obj51 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1017414u, new Vector3(420.37073f, -10.765623f, 705.4398f), 400) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.Interact, 1017414u, new Vector3(420.37073f, -10.765623f, 705.4398f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -145404,7 +175140,8 @@ public static class AssemblyQuestLoader }; obj51.Steps = list71; reference53 = obj51; - ref QuestSequence reference54 = ref span22[4]; + num++; + ref QuestSequence reference54 = ref span67[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -145412,7 +175149,9 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span72[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145438,24 +175177,30 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "skiaz"; + Span span73 = CollectionsMarshal.AsSpan(list73); + index = 0; + span73[index] = "skiaz"; questRoot10.Author = list73; - num = 7; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span23 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference55 = ref span23[0]; + index = 7; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + Span span74 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference55 = ref span74[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj53.Steps = list75; reference55 = obj53; - ref QuestSequence reference56 = ref span23[1]; + num++; + ref QuestSequence reference56 = ref span74[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -145463,28 +175208,34 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400) + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400) { Fly = true }; obj54.Steps = list76; reference56 = obj54; - ref QuestSequence reference57 = ref span23[2]; + num++; + ref QuestSequence reference57 = ref span74[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Action, 2007275u, new Vector3(-147.05127f, 77.653076f, -189.77649f), 400) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.Action, 2007275u, new Vector3(-147.05127f, 77.653076f, -189.77649f), 400) { Fly = true, Action = EAction.Roar }; obj55.Steps = list77; reference57 = obj55; - ref QuestSequence reference58 = ref span23[3]; + num++; + ref QuestSequence reference58 = ref span74[num]; QuestSequence obj56 = new QuestSequence { Sequence = 3 @@ -145492,29 +175243,35 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Action, 2007276u, new Vector3(-190.2038f, 77.653076f, -304.49384f), 400) + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.Action, 2007276u, new Vector3(-190.2038f, 77.653076f, -304.49384f), 400) { Fly = true, Action = EAction.Roar }; obj56.Steps = list78; reference58 = obj56; - ref QuestSequence reference59 = ref span23[4]; + num++; + ref QuestSequence reference59 = ref span74[num]; QuestSequence obj57 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Action, 2007277u, new Vector3(-75.88312f, 77.653076f, -347.79895f), 400) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.Action, 2007277u, new Vector3(-75.88312f, 77.653076f, -347.79895f), 400) { Fly = true, Action = EAction.Roar }; obj57.Steps = list79; reference59 = obj57; - ref QuestSequence reference60 = ref span23[5]; + num++; + ref QuestSequence reference60 = ref span74[num]; QuestSequence obj58 = new QuestSequence { Sequence = 5 @@ -145522,22 +175279,27 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Action, 2007278u, new Vector3(-32.852783f, 77.62268f, -233.87512f), 400) + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.Action, 2007278u, new Vector3(-32.852783f, 77.62268f, -233.87512f), 400) { Fly = true, Action = EAction.Roar }; obj58.Steps = list80; reference60 = obj58; - ref QuestSequence reference61 = ref span23[6]; + num++; + ref QuestSequence reference61 = ref span74[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145563,13 +175325,16 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "Censored"; + Span span82 = CollectionsMarshal.AsSpan(list82); + index = 0; + span82[index] = "Censored"; questRoot11.Author = list82; - num = 5; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span24 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference62 = ref span24[0]; + index = 5; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + Span span83 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference62 = ref span83[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -145577,7 +175342,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145596,21 +175363,25 @@ public static class AssemblyQuestLoader }; obj60.Steps = list84; reference62 = obj60; - ref QuestSequence reference63 = ref span24[1]; + num++; + ref QuestSequence reference63 = ref span83[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1017416u, new Vector3(-696.9253f, 180.23418f, 709.8954f), 400) + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span85[num2] = new QuestStep(EInteractionType.Interact, 1017416u, new Vector3(-696.9253f, 180.23418f, 709.8954f), 400) { Fly = true }; obj61.Steps = list85; reference63 = obj61; - ref QuestSequence reference64 = ref span24[2]; + num++; + ref QuestSequence reference64 = ref span83[num]; QuestSequence obj62 = new QuestSequence { Sequence = 2 @@ -145618,23 +175389,27 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1017421u, new Vector3(217.51733f, 6.1228147f, 721.94995f), 400) + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.Interact, 1017421u, new Vector3(217.51733f, 6.1228147f, 721.94995f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj62.Steps = list86; reference64 = obj62; - ref QuestSequence reference65 = ref span24[3]; + num++; + ref QuestSequence reference65 = ref span83[num]; QuestSequence obj63 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span25 = CollectionsMarshal.AsSpan(list87); - span25[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15739u, ItemCount = 1, @@ -145646,14 +175421,16 @@ public static class AssemblyQuestLoader } } }; - span25[1] = new QuestStep(EInteractionType.Interact, 1017416u, new Vector3(-696.9253f, 180.23418f, 709.8954f), 400) + num2++; + span87[num2] = new QuestStep(EInteractionType.Interact, 1017416u, new Vector3(-696.9253f, 180.23418f, 709.8954f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj63.Steps = list87; reference65 = obj63; - ref QuestSequence reference66 = ref span24[4]; + num++; + ref QuestSequence reference66 = ref span83[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -145661,7 +175438,9 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145687,24 +175466,30 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = "liza"; + Span span89 = CollectionsMarshal.AsSpan(list89); + index = 0; + span89[index] = "liza"; questRoot12.Author = list89; - num = 7; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - Span span26 = CollectionsMarshal.AsSpan(list90); - ref QuestSequence reference67 = ref span26[0]; + index = 7; + List list90 = new List(index); + CollectionsMarshal.SetCount(list90, index); + Span span90 = CollectionsMarshal.AsSpan(list90); + num = 0; + ref QuestSequence reference67 = ref span90[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span91[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj65.Steps = list91; reference67 = obj65; - ref QuestSequence reference68 = ref span26[1]; + num++; + ref QuestSequence reference68 = ref span90[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 @@ -145712,24 +175497,30 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400) + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400) { Fly = true }; obj66.Steps = list92; reference68 = obj66; - ref QuestSequence reference69 = ref span26[2]; + num++; + ref QuestSequence reference69 = ref span90[num]; QuestSequence obj67 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1017424u, new Vector3(7.4310913f, 81.84059f, -321.1872f), 400); + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.Interact, 1017424u, new Vector3(7.4310913f, 81.84059f, -321.1872f), 400); obj67.Steps = list93; reference69 = obj67; - ref QuestSequence reference70 = ref span26[3]; + num++; + ref QuestSequence reference70 = ref span90[num]; QuestSequence obj68 = new QuestSequence { Sequence = 3 @@ -145737,27 +175528,33 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400); + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400); obj68.Steps = list94; reference70 = obj68; - ref QuestSequence reference71 = ref span26[4]; + num++; + ref QuestSequence reference71 = ref span90[num]; QuestSequence obj69 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - Span span27 = CollectionsMarshal.AsSpan(list95); - span27[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15740u, ItemCount = 3 }; - span27[1] = new QuestStep(EInteractionType.Interact, 1017424u, new Vector3(7.4310913f, 81.84059f, -321.1872f), 400); + num2++; + span95[num2] = new QuestStep(EInteractionType.Interact, 1017424u, new Vector3(7.4310913f, 81.84059f, -321.1872f), 400); obj69.Steps = list95; reference71 = obj69; - ref QuestSequence reference72 = ref span26[5]; + num++; + ref QuestSequence reference72 = ref span90[num]; QuestSequence obj70 = new QuestSequence { Sequence = 5 @@ -145765,18 +175562,23 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400); + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400); obj70.Steps = list96; reference72 = obj70; - ref QuestSequence reference73 = ref span26[6]; + num++; + ref QuestSequence reference73 = ref span90[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span97[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -145802,13 +175604,16 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "liza"; + Span span98 = CollectionsMarshal.AsSpan(list98); + index = 0; + span98[index] = "liza"; questRoot13.Author = list98; - num = 6; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span28 = CollectionsMarshal.AsSpan(list99); - ref QuestSequence reference74 = ref span28[0]; + index = 6; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + Span span99 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference74 = ref span99[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -145816,21 +175621,27 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj72.Steps = list100; reference74 = obj72; - ref QuestSequence reference75 = ref span28[1]; + num++; + ref QuestSequence reference75 = ref span99[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1017322u, new Vector3(-331.5633f, 58.823204f, 323.17078f), 400); + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.Interact, 1017322u, new Vector3(-331.5633f, 58.823204f, 323.17078f), 400); obj73.Steps = list101; reference75 = obj73; - ref QuestSequence reference76 = ref span28[2]; + num++; + ref QuestSequence reference76 = ref span99[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -145838,29 +175649,35 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Action, 2007279u, new Vector3(-491.63043f, 37.369263f, 158.95312f), 400) + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span102[index2] = new QuestStep(EInteractionType.Action, 2007279u, new Vector3(-491.63043f, 37.369263f, 158.95312f), 400) { Fly = true, Action = EAction.Seed }; obj74.Steps = list102; reference76 = obj74; - ref QuestSequence reference77 = ref span28[3]; + num++; + ref QuestSequence reference77 = ref span99[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Action, 2007280u, new Vector3(-380.2091f, 39.871826f, -23.819397f), 400) + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span103[num2] = new QuestStep(EInteractionType.Action, 2007280u, new Vector3(-380.2091f, 39.871826f, -23.819397f), 400) { Fly = true, Action = EAction.Seed }; obj75.Steps = list103; reference77 = obj75; - ref QuestSequence reference78 = ref span28[4]; + num++; + ref QuestSequence reference78 = ref span99[num]; QuestSequence obj76 = new QuestSequence { Sequence = 4 @@ -145868,22 +175685,27 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Action, 2007281u, new Vector3(-52.323242f, 81.80359f, -116.258545f), 400) + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.Action, 2007281u, new Vector3(-52.323242f, 81.80359f, -116.258545f), 400) { Fly = true, Action = EAction.Seed }; obj76.Steps = list104; reference78 = obj76; - ref QuestSequence reference79 = ref span28[5]; + num++; + ref QuestSequence reference79 = ref span99[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith @@ -145897,13 +175719,16 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "liza"; + Span span106 = CollectionsMarshal.AsSpan(list106); + index = 0; + span106[index] = "liza"; questRoot14.Author = list106; - num = 6; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - Span span29 = CollectionsMarshal.AsSpan(list107); - ref QuestSequence reference80 = ref span29[0]; + index = 6; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + Span span107 = CollectionsMarshal.AsSpan(list107); + num = 0; + ref QuestSequence reference80 = ref span107[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 @@ -145911,26 +175736,32 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj78.Steps = list108; reference80 = obj78; - ref QuestSequence reference81 = ref span29[1]; + num++; + ref QuestSequence reference81 = ref span107[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span30 = CollectionsMarshal.AsSpan(list109); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-841.98883f, 32.499996f, 479.86572f), 400) + index2 = 2; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-841.98883f, 32.499996f, 479.86572f), 400) { Fly = true }; - span30[1] = new QuestStep(EInteractionType.Interact, 1017453u, new Vector3(-840.8484f, 32.5f, 481.43726f), 400); + num2++; + span109[num2] = new QuestStep(EInteractionType.Interact, 1017453u, new Vector3(-840.8484f, 32.5f, 481.43726f), 400); obj79.Steps = list109; reference81 = obj79; - ref QuestSequence reference82 = ref span29[2]; + num++; + ref QuestSequence reference82 = ref span107[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 @@ -145938,21 +175769,27 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 2007256u, new Vector3(-846.79944f, 34.01233f, 476.92053f), 400); + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.Interact, 2007256u, new Vector3(-846.79944f, 34.01233f, 476.92053f), 400); obj80.Steps = list110; reference82 = obj80; - ref QuestSequence reference83 = ref span29[3]; + num++; + ref QuestSequence reference83 = ref span107[num]; QuestSequence obj81 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1017453u, new Vector3(-840.8484f, 32.5f, 481.43726f), 400); + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.Interact, 1017453u, new Vector3(-840.8484f, 32.5f, 481.43726f), 400); obj81.Steps = list111; reference83 = obj81; - ref QuestSequence reference84 = ref span29[4]; + num++; + ref QuestSequence reference84 = ref span107[num]; QuestSequence obj82 = new QuestSequence { Sequence = 4 @@ -145960,24 +175797,29 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span31 = CollectionsMarshal.AsSpan(list112); - span31[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15741u, ItemCount = 3 }; - span31[1] = new QuestStep(EInteractionType.Interact, 1017549u, new Vector3(-836.9116f, 35.219498f, 457.6637f), 400); + index2++; + span112[index2] = new QuestStep(EInteractionType.Interact, 1017549u, new Vector3(-836.9116f, 35.219498f, 457.6637f), 400); obj82.Steps = list112; reference84 = obj82; - ref QuestSequence reference85 = ref span29[5]; + num++; + ref QuestSequence reference85 = ref span107[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146003,13 +175845,16 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "liza"; + Span span114 = CollectionsMarshal.AsSpan(list114); + index = 0; + span114[index] = "liza"; questRoot15.Author = list114; - num = 7; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span32 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference86 = ref span32[0]; + index = 7; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + Span span115 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference86 = ref span115[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -146017,26 +175862,32 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj84.Steps = list116; reference86 = obj84; - ref QuestSequence reference87 = ref span32[1]; + num++; + ref QuestSequence reference87 = ref span115[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - Span span33 = CollectionsMarshal.AsSpan(list117); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.5671045f, -23.618042f, 144.09882f), 400) + index2 = 2; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.5671045f, -23.618042f, 144.09882f), 400) { Fly = true }; - span33[1] = new QuestStep(EInteractionType.Interact, 1017455u, new Vector3(-1.7548828f, -23.618038f, 144.64026f), 400); + num2++; + span117[num2] = new QuestStep(EInteractionType.Interact, 1017455u, new Vector3(-1.7548828f, -23.618038f, 144.64026f), 400); obj85.Steps = list117; reference87 = obj85; - ref QuestSequence reference88 = ref span32[2]; + num++; + ref QuestSequence reference88 = ref span115[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -146044,34 +175895,41 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span118[index2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) { Fly = true }; obj86.Steps = list118; reference88 = obj86; - ref QuestSequence reference89 = ref span32[3]; + num++; + ref QuestSequence reference89 = ref span115[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - Span span34 = CollectionsMarshal.AsSpan(list119); - span34[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 3; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span119[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15742u, ItemCount = 1 }; - span34[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.5671045f, -23.618042f, 144.09882f), 400) + num2++; + span119[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.5671045f, -23.618042f, 144.09882f), 400) { Fly = true }; - span34[2] = new QuestStep(EInteractionType.Interact, 1017455u, new Vector3(-1.7548828f, -23.618038f, 144.64026f), 400); + num2++; + span119[num2] = new QuestStep(EInteractionType.Interact, 1017455u, new Vector3(-1.7548828f, -23.618038f, 144.64026f), 400); obj87.Steps = list119; reference89 = obj87; - ref QuestSequence reference90 = ref span32[4]; + num++; + ref QuestSequence reference90 = ref span115[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -146079,28 +175937,34 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1017456u, new Vector3(-152.02563f, 160.94061f, -770.50433f), 400) + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.Interact, 1017456u, new Vector3(-152.02563f, 160.94061f, -770.50433f), 400) { Fly = true }; obj88.Steps = list120; reference90 = obj88; - ref QuestSequence reference91 = ref span32[5]; + num++; + ref QuestSequence reference91 = ref span115[num]; QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400) + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span121[num2] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj89.Steps = list121; reference91 = obj89; - ref QuestSequence reference92 = ref span32[6]; + num++; + ref QuestSequence reference92 = ref span115[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -146108,7 +175972,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj90.Steps = list122; reference92 = obj90; questRoot15.QuestSequence = list115; @@ -146118,21 +175984,26 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "Censored"; + Span span123 = CollectionsMarshal.AsSpan(list123); + index = 0; + span123[index] = "Censored"; questRoot16.Author = list123; - num = 6; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span35 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference93 = ref span35[0]; + index = 6; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + Span span124 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference93 = ref span124[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span125[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146151,7 +176022,8 @@ public static class AssemblyQuestLoader }; obj91.Steps = list125; reference93 = obj91; - ref QuestSequence reference94 = ref span35[1]; + num++; + ref QuestSequence reference94 = ref span124[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -146159,57 +176031,76 @@ public static class AssemblyQuestLoader num2 = 3; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span36 = CollectionsMarshal.AsSpan(list126); - ref QuestStep reference95 = ref span36[0]; + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + ref QuestStep reference95 = ref span126[index2]; QuestStep obj93 = new QuestStep(EInteractionType.Interact, 1017459u, new Vector3(-611.41376f, 70f, 209.30798f), 400) { Fly = true }; - num3 = 6; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - Span span37 = CollectionsMarshal.AsSpan(list127); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list127 = new List(index3); + CollectionsMarshal.SetCount(list127, index3); + Span span127 = CollectionsMarshal.AsSpan(list127); + num3 = 0; + span127[num3] = null; + num3++; + span127[num3] = null; + num3++; + span127[num3] = null; + num3++; + span127[num3] = null; + num3++; + span127[num3] = null; + num3++; + span127[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj93.CompletionQuestVariablesFlags = list127; reference95 = obj93; - ref QuestStep reference96 = ref span36[1]; + index2++; + ref QuestStep reference96 = ref span126[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1017458u, new Vector3(-618.7381f, 70f, 207.9347f), 400); num3 = 6; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - Span span38 = CollectionsMarshal.AsSpan(list128); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span128 = CollectionsMarshal.AsSpan(list128); + index3 = 0; + span128[index3] = null; + index3++; + span128[index3] = null; + index3++; + span128[index3] = null; + index3++; + span128[index3] = null; + index3++; + span128[index3] = null; + index3++; + span128[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list128; reference96 = questStep3; - span36[2] = new QuestStep(EInteractionType.Interact, 1017457u, new Vector3(-619.74524f, 70f, 214.52649f), 400); + index2++; + span126[index2] = new QuestStep(EInteractionType.Interact, 1017457u, new Vector3(-619.74524f, 70f, 214.52649f), 400); obj92.Steps = list126; reference94 = obj92; - ref QuestSequence reference97 = ref span35[2]; + num++; + ref QuestSequence reference97 = ref span124[num]; QuestSequence obj94 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1017352u, new Vector3(-56.809387f, -8.866012f, 161.8219f), 400) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span129[num2] = new QuestStep(EInteractionType.Interact, 1017352u, new Vector3(-56.809387f, -8.866012f, 161.8219f), 400) { Fly = true, Land = true }; obj94.Steps = list129; reference97 = obj94; - ref QuestSequence reference98 = ref span35[3]; + num++; + ref QuestSequence reference98 = ref span124[num]; QuestSequence obj95 = new QuestSequence { Sequence = 3 @@ -146217,25 +176108,33 @@ public static class AssemblyQuestLoader num2 = 3; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span39 = CollectionsMarshal.AsSpan(list130); - ref QuestStep reference99 = ref span39[0]; + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + ref QuestStep reference99 = ref span130[index2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1017461u, new Vector3(79.9115f, -22.838034f, -123.67438f), 400) { Fly = true }; - num3 = 6; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span40 = CollectionsMarshal.AsSpan(list131); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + Span span131 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list131; reference99 = obj96; - ref QuestStep reference100 = ref span39[1]; + index2++; + ref QuestStep reference100 = ref span130[index2]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1017462u, new Vector3(-479.08752f, 106.92683f, -112.077515f), 400) { Fly = true @@ -146243,37 +176142,48 @@ public static class AssemblyQuestLoader num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span41 = CollectionsMarshal.AsSpan(list132); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span132 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj97.CompletionQuestVariablesFlags = list132; reference100 = obj97; - span39[2] = new QuestStep(EInteractionType.Interact, 1017460u, new Vector3(-689.05164f, 78.99983f, 266.0105f), 400) + index2++; + span130[index2] = new QuestStep(EInteractionType.Interact, 1017460u, new Vector3(-689.05164f, 78.99983f, 266.0105f), 400) { Fly = true }; obj95.Steps = list130; reference98 = obj95; - ref QuestSequence reference101 = ref span35[4]; + num++; + ref QuestSequence reference101 = ref span124[num]; QuestSequence obj98 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1017352u, new Vector3(-56.809387f, -8.866012f, 161.8219f), 400) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.Interact, 1017352u, new Vector3(-56.809387f, -8.866012f, 161.8219f), 400) { Fly = true, Land = true }; obj98.Steps = list133; reference101 = obj98; - ref QuestSequence reference102 = ref span35[5]; + num++; + ref QuestSequence reference102 = ref span124[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -146281,7 +176191,9 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span134[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146307,21 +176219,26 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "Censored"; + Span span135 = CollectionsMarshal.AsSpan(list135); + index = 0; + span135[index] = "Censored"; questRoot17.Author = list135; - num = 6; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span42 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference103 = ref span42[0]; + index = 6; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + Span span136 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference103 = ref span136[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span137[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146340,7 +176257,8 @@ public static class AssemblyQuestLoader }; obj100.Steps = list137; reference103 = obj100; - ref QuestSequence reference104 = ref span42[1]; + num++; + ref QuestSequence reference104 = ref span136[num]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -146348,24 +176266,30 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400); + Span span138 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span138[index2] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400); obj101.Steps = list138; reference104 = obj101; - ref QuestSequence reference105 = ref span42[2]; + num++; + ref QuestSequence reference105 = ref span136[num]; QuestSequence obj102 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + Span span139 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span139[num2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) { Fly = true }; obj102.Steps = list139; reference105 = obj102; - ref QuestSequence reference106 = ref span42[3]; + num++; + ref QuestSequence reference106 = ref span136[num]; QuestSequence obj103 = new QuestSequence { Sequence = 3 @@ -146373,8 +176297,9 @@ public static class AssemblyQuestLoader num2 = 2; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span43 = CollectionsMarshal.AsSpan(list140); - span43[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15743u, ItemCount = 3, @@ -146386,36 +176311,46 @@ public static class AssemblyQuestLoader } } }; - span43[1] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) + index2++; + span140[index2] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) { Fly = true }; obj103.Steps = list140; reference106 = obj103; - ref QuestSequence reference107 = ref span42[4]; + num++; + ref QuestSequence reference107 = ref span136[num]; QuestSequence obj104 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - Span span44 = CollectionsMarshal.AsSpan(list141); - ref QuestStep reference108 = ref span44[0]; + index2 = 3; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + ref QuestStep reference108 = ref span141[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1017463u, new Vector3(-380.23956f, 59.994583f, 281.84937f), 400); - num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span45 = CollectionsMarshal.AsSpan(list142); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list142 = new List(index3); + CollectionsMarshal.SetCount(list142, index3); + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list142; reference108 = questStep4; - ref QuestStep reference109 = ref span44[1]; + num2++; + ref QuestStep reference109 = ref span141[num2]; QuestStep obj105 = new QuestStep(EInteractionType.Interact, 1017464u, new Vector3(-118.48633f, 36.39444f, 163.22571f), 400) { Fly = true @@ -146423,22 +176358,30 @@ public static class AssemblyQuestLoader num3 = 6; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span46 = CollectionsMarshal.AsSpan(list143); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span143 = CollectionsMarshal.AsSpan(list143); + index3 = 0; + span143[index3] = null; + index3++; + span143[index3] = null; + index3++; + span143[index3] = null; + index3++; + span143[index3] = null; + index3++; + span143[index3] = null; + index3++; + span143[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj105.CompletionQuestVariablesFlags = list143; reference109 = obj105; - span44[2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) + num2++; + span141[num2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) { Fly = true }; obj104.Steps = list141; reference107 = obj104; - ref QuestSequence reference110 = ref span42[5]; + num++; + ref QuestSequence reference110 = ref span136[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -146446,7 +176389,9 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span144[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146472,24 +176417,30 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "liza"; + Span span145 = CollectionsMarshal.AsSpan(list145); + index = 0; + span145[index] = "liza"; questRoot18.Author = list145; - num = 4; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span47 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference111 = ref span47[0]; + index = 4; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + Span span146 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference111 = ref span146[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj107.Steps = list147; reference111 = obj107; - ref QuestSequence reference112 = ref span47[1]; + num++; + ref QuestSequence reference112 = ref span146[num]; QuestSequence obj108 = new QuestSequence { Sequence = 1 @@ -146497,30 +176448,36 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1017465u, new Vector3(202.28882f, 42.309406f, -577.3861f), 400) + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span148[index2] = new QuestStep(EInteractionType.Interact, 1017465u, new Vector3(202.28882f, 42.309406f, -577.3861f), 400) { Fly = true }; obj108.Steps = list148; reference112 = obj108; - ref QuestSequence reference113 = ref span47[2]; + num++; + ref QuestSequence reference113 = ref span146[num]; QuestSequence obj109 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - Span span48 = CollectionsMarshal.AsSpan(list149); - span48[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15744u, ItemCount = 2 }; - span48[1] = new QuestStep(EInteractionType.Interact, 1017466u, new Vector3(176.71472f, 42.308628f, -571.37415f), 400); + num2++; + span149[num2] = new QuestStep(EInteractionType.Interact, 1017466u, new Vector3(176.71472f, 42.308628f, -571.37415f), 400); obj109.Steps = list149; reference113 = obj109; - ref QuestSequence reference114 = ref span47[3]; + num++; + ref QuestSequence reference114 = ref span146[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -146528,7 +176485,9 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146554,24 +176513,30 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "liza"; + Span span151 = CollectionsMarshal.AsSpan(list151); + index = 0; + span151[index] = "liza"; questRoot19.Author = list151; - num = 8; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span49 = CollectionsMarshal.AsSpan(list152); - ref QuestSequence reference115 = ref span49[0]; + index = 8; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + Span span152 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref QuestSequence reference115 = ref span152[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span153[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj111.Steps = list153; reference115 = obj111; - ref QuestSequence reference116 = ref span49[1]; + num++; + ref QuestSequence reference116 = ref span152[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -146579,28 +176544,34 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) { Fly = true }; obj112.Steps = list154; reference116 = obj112; - ref QuestSequence reference117 = ref span49[2]; + num++; + ref QuestSequence reference117 = ref span152[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1017467u, new Vector3(-40.20758f, -8.6555605f, 202.83813f), 400) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span155[num2] = new QuestStep(EInteractionType.Interact, 1017467u, new Vector3(-40.20758f, -8.6555605f, 202.83813f), 400) { StopDistance = 0.5f, Fly = true }; obj113.Steps = list155; reference117 = obj113; - ref QuestSequence reference118 = ref span49[3]; + num++; + ref QuestSequence reference118 = ref span152[num]; QuestSequence obj114 = new QuestSequence { Sequence = 3 @@ -146608,22 +176579,27 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Emote, 1017624u, new Vector3(-76.0968f, -8.655561f, 216.17456f), 400) + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new QuestStep(EInteractionType.Emote, 1017624u, new Vector3(-76.0968f, -8.655561f, 216.17456f), 400) { Fly = true, Emote = EEmote.Psych }; obj114.Steps = list156; reference118 = obj114; - ref QuestSequence reference119 = ref span49[4]; + num++; + ref QuestSequence reference119 = ref span152[num]; QuestSequence obj115 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Emote, 1017625u, new Vector3(-46.76892f, 10.765197f, 243.12195f), 400) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span157[num2] = new QuestStep(EInteractionType.Emote, 1017625u, new Vector3(-46.76892f, 10.765197f, 243.12195f), 400) { StopDistance = 0.5f, Fly = true, @@ -146631,7 +176607,8 @@ public static class AssemblyQuestLoader }; obj115.Steps = list157; reference119 = obj115; - ref QuestSequence reference120 = ref span49[5]; + num++; + ref QuestSequence reference120 = ref span152[num]; QuestSequence obj116 = new QuestSequence { Sequence = 5 @@ -146639,34 +176616,40 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) { Fly = true }; obj116.Steps = list158; reference120 = obj116; - ref QuestSequence reference121 = ref span49[6]; + num++; + ref QuestSequence reference121 = ref span152[num]; QuestSequence obj117 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span50 = CollectionsMarshal.AsSpan(list159); - span50[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15745u, ItemCount = 1 }; - span50[1] = new QuestStep(EInteractionType.Interact, 1017625u, new Vector3(-46.76892f, 10.765197f, 243.12195f), 400) + num2++; + span159[num2] = new QuestStep(EInteractionType.Interact, 1017625u, new Vector3(-46.76892f, 10.765197f, 243.12195f), 400) { StopDistance = 0.5f, Fly = true }; obj117.Steps = list159; reference121 = obj117; - ref QuestSequence reference122 = ref span49[7]; + num++; + ref QuestSequence reference122 = ref span152[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -146674,7 +176657,9 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146700,21 +176685,26 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "liza, Redacted"; + Span span161 = CollectionsMarshal.AsSpan(list161); + index = 0; + span161[index] = "liza, Redacted"; questRoot20.Author = list161; - num = 5; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span51 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference123 = ref span51[0]; + index = 5; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + Span span162 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference123 = ref span162[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span163[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146733,7 +176723,8 @@ public static class AssemblyQuestLoader }; obj119.Steps = list163; reference123 = obj119; - ref QuestSequence reference124 = ref span51[1]; + num++; + ref QuestSequence reference124 = ref span162[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -146741,8 +176732,9 @@ public static class AssemblyQuestLoader num2 = 2; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span52 = CollectionsMarshal.AsSpan(list164); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-354.06366f, 61.351093f, 305.64108f), 400) + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span164[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-354.06366f, 61.351093f, 305.64108f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146759,25 +176751,30 @@ public static class AssemblyQuestLoader } } }; - span52[1] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400); + index2++; + span164[index2] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400); obj120.Steps = list164; reference124 = obj120; - ref QuestSequence reference125 = ref span51[2]; + num++; + ref QuestSequence reference125 = ref span162[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Action, 2007283u, new Vector3(-177.87445f, 53.055542f, 53.665894f), 400) + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span165[num2] = new QuestStep(EInteractionType.Action, 2007283u, new Vector3(-177.87445f, 53.055542f, 53.665894f), 400) { Fly = true, Action = EAction.Roar }; obj121.Steps = list165; reference125 = obj121; - ref QuestSequence reference126 = ref span51[3]; + num++; + ref QuestSequence reference126 = ref span162[num]; QuestSequence obj122 = new QuestSequence { Sequence = 3 @@ -146785,22 +176782,27 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Action, 2007284u, new Vector3(-320.60736f, 220.38599f, -708.00336f), 400) + Span span166 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span166[index2] = new QuestStep(EInteractionType.Action, 2007284u, new Vector3(-320.60736f, 220.38599f, -708.00336f), 400) { Fly = true, Action = EAction.Roar }; obj122.Steps = list166; reference126 = obj122; - ref QuestSequence reference127 = ref span51[4]; + num++; + ref QuestSequence reference127 = ref span162[num]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -146826,13 +176828,16 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - CollectionsMarshal.AsSpan(list168)[0] = "Censored"; + Span span168 = CollectionsMarshal.AsSpan(list168); + index = 0; + span168[index] = "Censored"; questRoot21.Author = list168; - num = 9; - List list169 = new List(num); - CollectionsMarshal.SetCount(list169, num); - Span span53 = CollectionsMarshal.AsSpan(list169); - ref QuestSequence reference128 = ref span53[0]; + index = 9; + List list169 = new List(index); + CollectionsMarshal.SetCount(list169, index); + Span span169 = CollectionsMarshal.AsSpan(list169); + num = 0; + ref QuestSequence reference128 = ref span169[num]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -146840,7 +176845,9 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017328u, new Vector3(234.33276f, -42.20274f, 601.00696f), 400) + Span span170 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span170[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017328u, new Vector3(234.33276f, -42.20274f, 601.00696f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, SkipConditions = new SkipConditions @@ -146858,21 +176865,25 @@ public static class AssemblyQuestLoader }; obj124.Steps = list170; reference128 = obj124; - ref QuestSequence reference129 = ref span53[1]; + num++; + ref QuestSequence reference129 = ref span169[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1017329u, new Vector3(351.76624f, -74.80417f, 629.96875f), 400) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + Span span171 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span171[num2] = new QuestStep(EInteractionType.Interact, 1017329u, new Vector3(351.76624f, -74.80417f, 629.96875f), 400) { Fly = true }; obj125.Steps = list171; reference129 = obj125; - ref QuestSequence reference130 = ref span53[2]; + num++; + ref QuestSequence reference130 = ref span169[num]; QuestSequence obj126 = new QuestSequence { Sequence = 2 @@ -146880,7 +176891,9 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -146891,15 +176904,18 @@ public static class AssemblyQuestLoader }; obj126.Steps = list172; reference130 = obj126; - ref QuestSequence reference131 = ref span53[3]; + num++; + ref QuestSequence reference131 = ref span169[num]; QuestSequence obj127 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1017330u, new Vector3(-246.72314f, -20.034918f, -90.10455f), 419) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.Interact, 1017330u, new Vector3(-246.72314f, -20.034918f, -90.10455f), 419) { AethernetShortcut = new AethernetShortcut { @@ -146909,7 +176925,8 @@ public static class AssemblyQuestLoader }; obj127.Steps = list173; reference131 = obj127; - ref QuestSequence reference132 = ref span53[4]; + num++; + ref QuestSequence reference132 = ref span169[num]; QuestSequence obj128 = new QuestSequence { Sequence = 4 @@ -146917,31 +176934,37 @@ public static class AssemblyQuestLoader num2 = 2; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span54 = CollectionsMarshal.AsSpan(list174); - span54[0] = new QuestStep(EInteractionType.Craft, null, null, 419) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.Craft, null, null, 419) { ItemId = 15720u, ItemCount = 1 }; - span54[1] = new QuestStep(EInteractionType.Interact, 1017330u, new Vector3(-246.72314f, -20.034918f, -90.10455f), 419); + index2++; + span174[index2] = new QuestStep(EInteractionType.Interact, 1017330u, new Vector3(-246.72314f, -20.034918f, -90.10455f), 419); obj128.Steps = list174; reference132 = obj128; - ref QuestSequence reference133 = ref span53[5]; + num++; + ref QuestSequence reference133 = ref span169[num]; QuestSequence obj129 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1017331u, new Vector3(-366.84216f, 60.89617f, 312.6726f), 400) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.Interact, 1017331u, new Vector3(-366.84216f, 60.89617f, 312.6726f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj129.Steps = list175; reference133 = obj129; - ref QuestSequence reference134 = ref span53[6]; + num++; + ref QuestSequence reference134 = ref span169[num]; QuestSequence obj130 = new QuestSequence { Sequence = 6 @@ -146949,27 +176972,33 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1017334u, new Vector3(-614.374f, 48f, 326.28357f), 400) + Span span176 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span176[index2] = new QuestStep(EInteractionType.Interact, 1017334u, new Vector3(-614.374f, 48f, 326.28357f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj130.Steps = list176; reference134 = obj130; - ref QuestSequence reference135 = ref span53[7]; + num++; + ref QuestSequence reference135 = ref span169[num]; QuestSequence obj131 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1017331u, new Vector3(-366.84216f, 60.89617f, 312.6726f), 400) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.Interact, 1017331u, new Vector3(-366.84216f, 60.89617f, 312.6726f), 400) { Fly = true }; obj131.Steps = list177; reference135 = obj131; - ref QuestSequence reference136 = ref span53[8]; + num++; + ref QuestSequence reference136 = ref span169[num]; QuestSequence obj132 = new QuestSequence { Sequence = byte.MaxValue @@ -146977,12 +177006,16 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - ref QuestStep reference137 = ref CollectionsMarshal.AsSpan(list178)[0]; + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + ref QuestStep reference137 = ref span178[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.CompleteQuest, 1017335u, new Vector3(-370.9926f, 60.86112f, 309.8954f), 400); - num3 = 1; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = new DialogueChoice + index3 = 1; + List list179 = new List(index3); + CollectionsMarshal.SetCount(list179, index3); + Span span179 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span179[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMOG001_02320_Q1_000_000"), @@ -146999,21 +177032,26 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "Censored"; + Span span180 = CollectionsMarshal.AsSpan(list180); + index = 0; + span180[index] = "Censored"; questRoot22.Author = list180; - num = 11; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - Span span55 = CollectionsMarshal.AsSpan(list181); - ref QuestSequence reference138 = ref span55[0]; + index = 11; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + Span span181 = CollectionsMarshal.AsSpan(list181); + num = 0; + ref QuestSequence reference138 = ref span181[num]; QuestSequence obj133 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -147032,7 +177070,8 @@ public static class AssemblyQuestLoader }; obj133.Steps = list182; reference138 = obj133; - ref QuestSequence reference139 = ref span55[1]; + num++; + ref QuestSequence reference139 = ref span181[num]; QuestSequence obj134 = new QuestSequence { Sequence = 1 @@ -147040,24 +177079,30 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + Span span183 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span183[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj134.Steps = list183; reference139 = obj134; - ref QuestSequence reference140 = ref span55[2]; + num++; + ref QuestSequence reference140 = ref span181[num]; QuestSequence obj135 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1017339u, new Vector3(-104.875305f, 36.394436f, 170.48901f), 400) + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span184[num2] = new QuestStep(EInteractionType.Interact, 1017339u, new Vector3(-104.875305f, 36.394436f, 170.48901f), 400) { Fly = true }; obj135.Steps = list184; reference140 = obj135; - ref QuestSequence reference141 = ref span55[3]; + num++; + ref QuestSequence reference141 = ref span181[num]; QuestSequence obj136 = new QuestSequence { Sequence = 3 @@ -147065,7 +177110,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list185)[0]; + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + ref QuestStep reference142 = ref span185[index2]; QuestStep obj137 = new QuestStep(EInteractionType.Interact, 1017341u, new Vector3(-90.92853f, -8.655593f, 173.84595f), 400) { Fly = true @@ -147073,7 +177120,9 @@ public static class AssemblyQuestLoader num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = new DialogueChoice + Span span186 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span186[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMOG002_02321_Q1_000_000"), @@ -147083,22 +177132,26 @@ public static class AssemblyQuestLoader reference142 = obj137; obj136.Steps = list185; reference141 = obj136; - ref QuestSequence reference143 = ref span55[4]; + num++; + ref QuestSequence reference143 = ref span181[num]; QuestSequence obj138 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.Interact, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj138.Steps = list187; reference143 = obj138; - ref QuestSequence reference144 = ref span55[5]; + num++; + ref QuestSequence reference144 = ref span181[num]; QuestSequence obj139 = new QuestSequence { Sequence = 5 @@ -147106,28 +177159,34 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1017339u, new Vector3(-104.875305f, 36.394436f, 170.48901f), 400) + Span span188 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span188[index2] = new QuestStep(EInteractionType.Interact, 1017339u, new Vector3(-104.875305f, 36.394436f, 170.48901f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj139.Steps = list188; reference144 = obj139; - ref QuestSequence reference145 = ref span55[6]; + num++; + ref QuestSequence reference145 = ref span181[num]; QuestSequence obj140 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1017342u, new Vector3(230.57898f, -6.0532966f, 44.541016f), 400) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.Interact, 1017342u, new Vector3(230.57898f, -6.0532966f, 44.541016f), 400) { Fly = true }; obj140.Steps = list189; reference145 = obj140; - ref QuestSequence reference146 = ref span55[7]; + num++; + ref QuestSequence reference146 = ref span181[num]; QuestSequence obj141 = new QuestSequence { Sequence = 7 @@ -147135,28 +177194,34 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1017343u, new Vector3(-375.47876f, 60.106445f, 307.27087f), 400) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.Interact, 1017343u, new Vector3(-375.47876f, 60.106445f, 307.27087f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj141.Steps = list190; reference146 = obj141; - ref QuestSequence reference147 = ref span55[8]; + num++; + ref QuestSequence reference147 = ref span181[num]; QuestSequence obj142 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1017322u, new Vector3(-331.5633f, 58.823204f, 323.17078f), 400) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.Interact, 1017322u, new Vector3(-331.5633f, 58.823204f, 323.17078f), 400) { Fly = true }; obj142.Steps = list191; reference147 = obj142; - ref QuestSequence reference148 = ref span55[9]; + num++; + ref QuestSequence reference148 = ref span181[num]; QuestSequence obj143 = new QuestSequence { Sequence = 9 @@ -147164,22 +177229,27 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Action, 2007197u, new Vector3(-376.8521f, 60.135742f, 302.6931f), 400) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.Action, 2007197u, new Vector3(-376.8521f, 60.135742f, 302.6931f), 400) { Fly = true, Action = EAction.Seed }; obj143.Steps = list192; reference148 = obj143; - ref QuestSequence reference149 = ref span55[10]; + num++; + ref QuestSequence reference149 = ref span181[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true }; @@ -147192,13 +177262,16 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "liza"; + Span span194 = CollectionsMarshal.AsSpan(list194); + index = 0; + span194[index] = "liza"; questRoot23.Author = list194; - num = 9; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span56 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference150 = ref span56[0]; + index = 9; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + Span span195 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference150 = ref span195[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 @@ -147206,24 +177279,30 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span196[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); obj145.Steps = list196; reference150 = obj145; - ref QuestSequence reference151 = ref span56[1]; + num++; + ref QuestSequence reference151 = ref span195[num]; QuestSequence obj146 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span197[num2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { StopDistance = 7f }; obj146.Steps = list197; reference151 = obj146; - ref QuestSequence reference152 = ref span56[2]; + num++; + ref QuestSequence reference152 = ref span195[num]; QuestSequence obj147 = new QuestSequence { Sequence = 2 @@ -147231,27 +177310,33 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 2007198u, new Vector3(-339.65057f, 58.976074f, 319.50854f), 400) + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span198[index2] = new QuestStep(EInteractionType.Interact, 2007198u, new Vector3(-339.65057f, 58.976074f, 319.50854f), 400) { StopDistance = 4.5f }; obj147.Steps = list198; reference152 = obj147; - ref QuestSequence reference153 = ref span56[3]; + num++; + ref QuestSequence reference153 = ref span195[num]; QuestSequence obj148 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1017432u, new Vector3(-743.6179f, 81f, 372.1521f), 400) + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + Span span199 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span199[num2] = new QuestStep(EInteractionType.Interact, 1017432u, new Vector3(-743.6179f, 81f, 372.1521f), 400) { Fly = true }; obj148.Steps = list199; reference153 = obj148; - ref QuestSequence reference154 = ref span56[4]; + num++; + ref QuestSequence reference154 = ref span195[num]; QuestSequence obj149 = new QuestSequence { Sequence = 4 @@ -147259,15 +177344,19 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list200)[0]; + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + ref QuestStep reference155 = ref span200[index2]; QuestStep obj150 = new QuestStep(EInteractionType.Interact, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true }; - num3 = 1; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - CollectionsMarshal.AsSpan(list201)[0] = new DialogueChoice + index3 = 1; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + Span span201 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span201[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMOG003_02322_Q1_000_000"), @@ -147277,18 +177366,22 @@ public static class AssemblyQuestLoader reference155 = obj150; obj149.Steps = list200; reference154 = obj149; - ref QuestSequence reference156 = ref span56[5]; + num++; + ref QuestSequence reference156 = ref span195[num]; QuestSequence obj151 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); obj151.Steps = list202; reference156 = obj151; - ref QuestSequence reference157 = ref span56[6]; + num++; + ref QuestSequence reference157 = ref span195[num]; QuestSequence obj152 = new QuestSequence { Sequence = 6 @@ -147296,30 +177389,36 @@ public static class AssemblyQuestLoader num2 = 2; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span57 = CollectionsMarshal.AsSpan(list203); - span57[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span203[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15721u, ItemCount = 1 }; - span57[1] = new QuestStep(EInteractionType.Interact, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); + index2++; + span203[index2] = new QuestStep(EInteractionType.Interact, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); obj152.Steps = list203; reference157 = obj152; - ref QuestSequence reference158 = ref span56[7]; + num++; + ref QuestSequence reference158 = ref span195[num]; QuestSequence obj153 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1017432u, new Vector3(-743.6179f, 81f, 372.1521f), 400) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.Interact, 1017432u, new Vector3(-743.6179f, 81f, 372.1521f), 400) { Fly = true }; obj153.Steps = list204; reference158 = obj153; - ref QuestSequence reference159 = ref span56[8]; + num++; + ref QuestSequence reference159 = ref span195[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue @@ -147327,7 +177426,9 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { Fly = true }; @@ -147340,21 +177441,26 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "Censored"; + Span span206 = CollectionsMarshal.AsSpan(list206); + index = 0; + span206[index] = "Censored"; questRoot24.Author = list206; - num = 10; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span58 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference160 = ref span58[0]; + index = 10; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + Span span207 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference160 = ref span207[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -147373,7 +177479,8 @@ public static class AssemblyQuestLoader }; obj155.Steps = list208; reference160 = obj155; - ref QuestSequence reference161 = ref span58[1]; + num++; + ref QuestSequence reference161 = ref span207[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 @@ -147381,24 +177488,30 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj156.Steps = list209; reference161 = obj156; - ref QuestSequence reference162 = ref span58[2]; + num++; + ref QuestSequence reference162 = ref span207[num]; QuestSequence obj157 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1017437u, new Vector3(-628.38184f, 81f, 136.12573f), 400) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span210[num2] = new QuestStep(EInteractionType.Interact, 1017437u, new Vector3(-628.38184f, 81f, 136.12573f), 400) { Fly = true }; obj157.Steps = list210; reference162 = obj157; - ref QuestSequence reference163 = ref span58[3]; + num++; + ref QuestSequence reference163 = ref span207[num]; QuestSequence obj158 = new QuestSequence { Sequence = 3 @@ -147406,7 +177519,9 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - ref QuestStep reference164 = ref CollectionsMarshal.AsSpan(list211)[0]; + Span span211 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + ref QuestStep reference164 = ref span211[index2]; QuestStep obj159 = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { Fly = true @@ -147414,7 +177529,9 @@ public static class AssemblyQuestLoader num3 = 1; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = new DialogueChoice + Span span212 = CollectionsMarshal.AsSpan(list212); + index3 = 0; + span212[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMOG004_02323_Q1_000_000"), @@ -147424,21 +177541,25 @@ public static class AssemblyQuestLoader reference164 = obj159; obj158.Steps = list211; reference163 = obj158; - ref QuestSequence reference165 = ref span58[4]; + num++; + ref QuestSequence reference165 = ref span207[num]; QuestSequence obj160 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 2007199u, new Vector3(-651.11774f, 249.04248f, -770.6264f), 400) + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span213 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span213[num2] = new QuestStep(EInteractionType.Interact, 2007199u, new Vector3(-651.11774f, 249.04248f, -770.6264f), 400) { Fly = true }; obj160.Steps = list213; reference165 = obj160; - ref QuestSequence reference166 = ref span58[5]; + num++; + ref QuestSequence reference166 = ref span207[num]; QuestSequence obj161 = new QuestSequence { Sequence = 5 @@ -147446,25 +177567,31 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1017442u, new Vector3(-652.8268f, 248.69513f, -767.87976f), 400); + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.Interact, 1017442u, new Vector3(-652.8268f, 248.69513f, -767.87976f), 400); obj161.Steps = list214; reference166 = obj161; - ref QuestSequence reference167 = ref span58[6]; + num++; + ref QuestSequence reference167 = ref span207[num]; QuestSequence obj162 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1017432u, new Vector3(-743.6179f, 81f, 372.1521f), 400) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.Interact, 1017432u, new Vector3(-743.6179f, 81f, 372.1521f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj162.Steps = list215; reference167 = obj162; - ref QuestSequence reference168 = ref span58[7]; + num++; + ref QuestSequence reference168 = ref span207[num]; QuestSequence obj163 = new QuestSequence { Sequence = 7 @@ -147472,29 +177599,35 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Action, 2007199u, new Vector3(-651.11774f, 249.04248f, -770.6264f), 400) + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span216[index2] = new QuestStep(EInteractionType.Action, 2007199u, new Vector3(-651.11774f, 249.04248f, -770.6264f), 400) { Fly = true, Action = EAction.Roar }; obj163.Steps = list216; reference168 = obj163; - ref QuestSequence reference169 = ref span58[8]; + num++; + ref QuestSequence reference169 = ref span207[num]; QuestSequence obj164 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Interact, 1017437u, new Vector3(-628.38184f, 81f, 136.12573f), 400) + index2 = 1; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + Span span217 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span217[num2] = new QuestStep(EInteractionType.Interact, 1017437u, new Vector3(-628.38184f, 81f, 136.12573f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj164.Steps = list217; reference169 = obj164; - ref QuestSequence reference170 = ref span58[9]; + num++; + ref QuestSequence reference170 = ref span207[num]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue @@ -147502,7 +177635,9 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + Span span218 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + span218[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true }; @@ -147515,21 +177650,26 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - CollectionsMarshal.AsSpan(list219)[0] = "Censored"; + Span span219 = CollectionsMarshal.AsSpan(list219); + index = 0; + span219[index] = "Censored"; questRoot25.Author = list219; - num = 6; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - Span span59 = CollectionsMarshal.AsSpan(list220); - ref QuestSequence reference171 = ref span59[0]; + index = 6; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + Span span220 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference171 = ref span220[num]; QuestSequence obj166 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span221[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -147548,7 +177688,8 @@ public static class AssemblyQuestLoader }; obj166.Steps = list221; reference171 = obj166; - ref QuestSequence reference172 = ref span59[1]; + num++; + ref QuestSequence reference172 = ref span220[num]; QuestSequence obj167 = new QuestSequence { Sequence = 1 @@ -147556,24 +177697,30 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + Span span222 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span222[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj167.Steps = list222; reference172 = obj167; - ref QuestSequence reference173 = ref span59[2]; + num++; + ref QuestSequence reference173 = ref span220[num]; QuestSequence obj168 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 1017446u, new Vector3(-103.92926f, -8.845976f, 216.35767f), 400) + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + Span span223 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span223[num2] = new QuestStep(EInteractionType.Interact, 1017446u, new Vector3(-103.92926f, -8.845976f, 216.35767f), 400) { Fly = true }; obj168.Steps = list223; reference173 = obj168; - ref QuestSequence reference174 = ref span59[3]; + num++; + ref QuestSequence reference174 = ref span220[num]; QuestSequence obj169 = new QuestSequence { Sequence = 3 @@ -147581,24 +177728,30 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { Fly = true }; obj169.Steps = list224; reference174 = obj169; - ref QuestSequence reference175 = ref span59[4]; + num++; + ref QuestSequence reference175 = ref span220[num]; QuestSequence obj170 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); obj170.Steps = list225; reference175 = obj170; - ref QuestSequence reference176 = ref span59[5]; + num++; + ref QuestSequence reference176 = ref span220[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -147606,8 +177759,9 @@ public static class AssemblyQuestLoader num2 = 2; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span60 = CollectionsMarshal.AsSpan(list226); - span60[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span226[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15722u, ItemCount = 1, @@ -147619,7 +177773,8 @@ public static class AssemblyQuestLoader } } }; - span60[1] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + index2++; + span226[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj171.Steps = list226; reference176 = obj171; questRoot25.QuestSequence = list220; @@ -147629,21 +177784,26 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - CollectionsMarshal.AsSpan(list227)[0] = "Censored"; + Span span227 = CollectionsMarshal.AsSpan(list227); + index = 0; + span227[index] = "Censored"; questRoot26.Author = list227; - num = 7; - List list228 = new List(num); - CollectionsMarshal.SetCount(list228, num); - Span span61 = CollectionsMarshal.AsSpan(list228); - ref QuestSequence reference177 = ref span61[0]; + index = 7; + List list228 = new List(index); + CollectionsMarshal.SetCount(list228, index); + Span span228 = CollectionsMarshal.AsSpan(list228); + num = 0; + ref QuestSequence reference177 = ref span228[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + Span span229 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span229[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -147662,7 +177822,8 @@ public static class AssemblyQuestLoader }; obj172.Steps = list229; reference177 = obj172; - ref QuestSequence reference178 = ref span61[1]; + num++; + ref QuestSequence reference178 = ref span228[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -147670,18 +177831,23 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span230[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj173.Steps = list230; reference178 = obj173; - ref QuestSequence reference179 = ref span61[2]; + num++; + ref QuestSequence reference179 = ref span228[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -147692,7 +177858,8 @@ public static class AssemblyQuestLoader }; obj174.Steps = list231; reference179 = obj174; - ref QuestSequence reference180 = ref span61[3]; + num++; + ref QuestSequence reference180 = ref span228[num]; QuestSequence obj175 = new QuestSequence { Sequence = 3 @@ -147700,25 +177867,31 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1012162u, new Vector3(135.97314f, 24.376427f, 12.619202f), 418); + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span232[index2] = new QuestStep(EInteractionType.Interact, 1012162u, new Vector3(135.97314f, 24.376427f, 12.619202f), 418); obj175.Steps = list232; reference180 = obj175; - ref QuestSequence reference181 = ref span61[4]; + num++; + ref QuestSequence reference181 = ref span228[num]; QuestSequence obj176 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + Span span233 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span233[num2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj176.Steps = list233; reference181 = obj176; - ref QuestSequence reference182 = ref span61[5]; + num++; + ref QuestSequence reference182 = ref span228[num]; QuestSequence obj177 = new QuestSequence { Sequence = 5 @@ -147726,19 +177899,23 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); + Span span234 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + span234[index2] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); obj177.Steps = list234; reference182 = obj177; - ref QuestSequence reference183 = ref span61[6]; + num++; + ref QuestSequence reference183 = ref span228[num]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - Span span62 = CollectionsMarshal.AsSpan(list235); - span62[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + index2 = 2; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + Span span235 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span235[num2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15723u, ItemCount = 1, @@ -147750,7 +177927,8 @@ public static class AssemblyQuestLoader } } }; - span62[1] = new QuestStep(EInteractionType.CompleteQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); + num2++; + span235[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); obj178.Steps = list235; reference183 = obj178; questRoot26.QuestSequence = list228; @@ -147760,13 +177938,16 @@ public static class AssemblyQuestLoader num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - CollectionsMarshal.AsSpan(list236)[0] = "Censored"; + Span span236 = CollectionsMarshal.AsSpan(list236); + index = 0; + span236[index] = "Censored"; questRoot27.Author = list236; - num = 9; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - Span span63 = CollectionsMarshal.AsSpan(list237); - ref QuestSequence reference184 = ref span63[0]; + index = 9; + List list237 = new List(index); + CollectionsMarshal.SetCount(list237, index); + Span span237 = CollectionsMarshal.AsSpan(list237); + num = 0; + ref QuestSequence reference184 = ref span237[num]; QuestSequence obj179 = new QuestSequence { Sequence = 0 @@ -147774,7 +177955,9 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + Span span238 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span238[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -147793,18 +177976,22 @@ public static class AssemblyQuestLoader }; obj179.Steps = list238; reference184 = obj179; - ref QuestSequence reference185 = ref span63[1]; + num++; + ref QuestSequence reference185 = ref span237[num]; QuestSequence obj180 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + Span span239 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span239[num2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj180.Steps = list239; reference185 = obj180; - ref QuestSequence reference186 = ref span63[2]; + num++; + ref QuestSequence reference186 = ref span237[num]; QuestSequence obj181 = new QuestSequence { Sequence = 2 @@ -147812,29 +177999,35 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + Span span240 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span240[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj181.Steps = list240; reference186 = obj181; - ref QuestSequence reference187 = ref span63[3]; + num++; + ref QuestSequence reference187 = ref span237[num]; QuestSequence obj182 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Interact, 1017447u, new Vector3(-374.99048f, 58.99875f, 340.1693f), 400) + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + Span span241 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span241[num2] = new QuestStep(EInteractionType.Interact, 1017447u, new Vector3(-374.99048f, 58.99875f, 340.1693f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj182.Steps = list241; reference187 = obj182; - ref QuestSequence reference188 = ref span63[4]; + num++; + ref QuestSequence reference188 = ref span237[num]; QuestSequence obj183 = new QuestSequence { Sequence = 4 @@ -147842,50 +178035,69 @@ public static class AssemblyQuestLoader num2 = 3; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span64 = CollectionsMarshal.AsSpan(list242); - ref QuestStep reference189 = ref span64[0]; + Span span242 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + ref QuestStep reference189 = ref span242[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2007202u, new Vector3(-372.15234f, 60.318848f, 335.89685f), 400); - num3 = 6; - List list243 = new List(num3); - CollectionsMarshal.SetCount(list243, num3); - Span span65 = CollectionsMarshal.AsSpan(list243); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list243 = new List(index3); + CollectionsMarshal.SetCount(list243, index3); + Span span243 = CollectionsMarshal.AsSpan(list243); + num3 = 0; + span243[num3] = null; + num3++; + span243[num3] = null; + num3++; + span243[num3] = null; + num3++; + span243[num3] = null; + num3++; + span243[num3] = null; + num3++; + span243[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list243; reference189 = questStep6; - ref QuestStep reference190 = ref span64[1]; + index2++; + ref QuestStep reference190 = ref span242[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2007201u, new Vector3(-367.63562f, 59.8916f, 333.45532f), 400); num3 = 6; List list244 = new List(num3); CollectionsMarshal.SetCount(list244, num3); - Span span66 = CollectionsMarshal.AsSpan(list244); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span244 = CollectionsMarshal.AsSpan(list244); + index3 = 0; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list244; reference190 = questStep7; - span64[2] = new QuestStep(EInteractionType.Interact, 2007221u, new Vector3(-364.9806f, 60.471436f, 331.74634f), 400); + index2++; + span242[index2] = new QuestStep(EInteractionType.Interact, 2007221u, new Vector3(-364.9806f, 60.471436f, 331.74634f), 400); obj183.Steps = list242; reference188 = obj183; - ref QuestSequence reference191 = ref span63[5]; + num++; + ref QuestSequence reference191 = ref span237[num]; QuestSequence obj184 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1017447u, new Vector3(-374.99048f, 58.99875f, 340.1693f), 400); + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + Span span245 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span245[num2] = new QuestStep(EInteractionType.Interact, 1017447u, new Vector3(-374.99048f, 58.99875f, 340.1693f), 400); obj184.Steps = list245; reference191 = obj184; - ref QuestSequence reference192 = ref span63[6]; + num++; + ref QuestSequence reference192 = ref span237[num]; QuestSequence obj185 = new QuestSequence { Sequence = 6 @@ -147893,21 +178105,27 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 1017448u, new Vector3(-383.35242f, 59.9946f, 297.74927f), 400); + Span span246 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span246[index2] = new QuestStep(EInteractionType.Interact, 1017448u, new Vector3(-383.35242f, 59.9946f, 297.74927f), 400); obj185.Steps = list246; reference192 = obj185; - ref QuestSequence reference193 = ref span63[7]; + num++; + ref QuestSequence reference193 = ref span237[num]; QuestSequence obj186 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + Span span247 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span247[num2] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); obj186.Steps = list247; reference193 = obj186; - ref QuestSequence reference194 = ref span63[8]; + num++; + ref QuestSequence reference194 = ref span237[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue @@ -147915,8 +178133,9 @@ public static class AssemblyQuestLoader num2 = 2; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span67 = CollectionsMarshal.AsSpan(list248); - span67[0] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span248 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span248[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15724u, ItemCount = 1, @@ -147928,7 +178147,8 @@ public static class AssemblyQuestLoader } } }; - span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + index2++; + span248[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj187.Steps = list248; reference194 = obj187; questRoot27.QuestSequence = list237; @@ -147938,21 +178158,26 @@ public static class AssemblyQuestLoader num = 1; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - CollectionsMarshal.AsSpan(list249)[0] = "Skiaz"; + Span span249 = CollectionsMarshal.AsSpan(list249); + index = 0; + span249[index] = "Skiaz"; questRoot28.Author = list249; - num = 3; - List list250 = new List(num); - CollectionsMarshal.SetCount(list250, num); - Span span68 = CollectionsMarshal.AsSpan(list250); - ref QuestSequence reference195 = ref span68[0]; + index = 3; + List list250 = new List(index); + CollectionsMarshal.SetCount(list250, index); + Span span250 = CollectionsMarshal.AsSpan(list250); + num = 0; + ref QuestSequence reference195 = ref span250[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + Span span251 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span251[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -147971,7 +178196,8 @@ public static class AssemblyQuestLoader }; obj188.Steps = list251; reference195 = obj188; - ref QuestSequence reference196 = ref span68[1]; + num++; + ref QuestSequence reference196 = ref span250[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 @@ -147979,26 +178205,31 @@ public static class AssemblyQuestLoader num2 = 2; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span69 = CollectionsMarshal.AsSpan(list252); - span69[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) + Span span252 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span252[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { Fly = true }; - span69[1] = new QuestStep(EInteractionType.Interact, 1017173u, new Vector3(-363.82086f, 60.896187f, 306.38586f), 400) + index2++; + span252[index2] = new QuestStep(EInteractionType.Interact, 1017173u, new Vector3(-363.82086f, 60.896187f, 306.38586f), 400) { Fly = true }; obj189.Steps = list252; reference196 = obj189; - ref QuestSequence reference197 = ref span68[2]; + num++; + ref QuestSequence reference197 = ref span250[num]; QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + index2 = 1; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + Span span253 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span253[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -148024,13 +178255,16 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - CollectionsMarshal.AsSpan(list254)[0] = "liza"; + Span span254 = CollectionsMarshal.AsSpan(list254); + index = 0; + span254[index] = "liza"; questRoot29.Author = list254; - num = 4; - List list255 = new List(num); - CollectionsMarshal.SetCount(list255, num); - Span span70 = CollectionsMarshal.AsSpan(list255); - ref QuestSequence reference198 = ref span70[0]; + index = 4; + List list255 = new List(index); + CollectionsMarshal.SetCount(list255, index); + Span span255 = CollectionsMarshal.AsSpan(list255); + num = 0; + ref QuestSequence reference198 = ref span255[num]; QuestSequence obj191 = new QuestSequence { Sequence = 0 @@ -148038,8 +178272,9 @@ public static class AssemblyQuestLoader num2 = 3; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span71 = CollectionsMarshal.AsSpan(list256); - ref QuestStep reference199 = ref span71[0]; + Span span256 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + ref QuestStep reference199 = ref span256[index2]; QuestStep obj192 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -148047,22 +178282,27 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list257 = new List(num3); - CollectionsMarshal.SetCount(list257, num3); - CollectionsMarshal.AsSpan(list257)[0] = 351; + index3 = 1; + List list257 = new List(index3); + CollectionsMarshal.SetCount(list257, index3); + Span span257 = CollectionsMarshal.AsSpan(list257); + num3 = 0; + span257[num3] = 351; skipStepConditions2.InTerritory = list257; skipConditions2.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); num3 = 1; List list258 = new List(num3); CollectionsMarshal.SetCount(list258, num3); - CollectionsMarshal.AsSpan(list258)[0] = 351; + Span span258 = CollectionsMarshal.AsSpan(list258); + index3 = 0; + span258[index3] = 351; skipAetheryteCondition.InTerritory = list258; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; obj192.SkipConditions = skipConditions2; reference199 = obj192; - span71[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span256[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -148073,28 +178313,33 @@ public static class AssemblyQuestLoader } } }; - span71[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + index2++; + span256[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj191.Steps = list256; reference198 = obj191; - ref QuestSequence reference200 = ref span70[1]; + num++; + ref QuestSequence reference200 = ref span255[num]; QuestSequence obj193 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1017674u, new Vector3(209.97937f, 256.37262f, 5.9052124f), 402) + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + Span span259 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span259[num2] = new QuestStep(EInteractionType.Interact, 1017674u, new Vector3(209.97937f, 256.37262f, 5.9052124f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj193.Steps = list259; reference200 = obj193; - ref QuestSequence reference201 = ref span70[2]; + num++; + ref QuestSequence reference201 = ref span255[num]; QuestSequence obj194 = new QuestSequence { Sequence = 2 @@ -148102,7 +178347,9 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Duty, null, null, 402) + Span span260 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span260[index2] = new QuestStep(EInteractionType.Duty, null, null, 402) { DutyOptions = new DutyOptions { @@ -148111,25 +178358,29 @@ public static class AssemblyQuestLoader }; obj194.Steps = list260; reference201 = obj194; - ref QuestSequence reference202 = ref span70[3]; + num++; + ref QuestSequence reference202 = ref span255[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - Span span72 = CollectionsMarshal.AsSpan(list261); - span72[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + Span span261 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span261[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span72[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span261[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span72[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + num2++; + span261[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f, NextQuestId = new QuestId(2394) @@ -148143,13 +178394,16 @@ public static class AssemblyQuestLoader num = 1; List list262 = new List(num); CollectionsMarshal.SetCount(list262, num); - CollectionsMarshal.AsSpan(list262)[0] = "liza"; + Span span262 = CollectionsMarshal.AsSpan(list262); + index = 0; + span262[index] = "liza"; questRoot30.Author = list262; - num = 2; - List list263 = new List(num); - CollectionsMarshal.SetCount(list263, num); - Span span73 = CollectionsMarshal.AsSpan(list263); - ref QuestSequence reference203 = ref span73[0]; + index = 2; + List list263 = new List(index); + CollectionsMarshal.SetCount(list263, index); + Span span263 = CollectionsMarshal.AsSpan(list263); + num = 0; + ref QuestSequence reference203 = ref span263[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -148157,8 +178411,9 @@ public static class AssemblyQuestLoader num2 = 3; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span74 = CollectionsMarshal.AsSpan(list264); - ref QuestStep reference204 = ref span74[0]; + Span span264 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + ref QuestStep reference204 = ref span264[index2]; QuestStep obj197 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -148166,22 +178421,27 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - CollectionsMarshal.AsSpan(list265)[0] = 351; + index3 = 1; + List list265 = new List(index3); + CollectionsMarshal.SetCount(list265, index3); + Span span265 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span265[num3] = 351; skipStepConditions3.InTerritory = list265; skipConditions3.StepIf = skipStepConditions3; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); num3 = 1; List list266 = new List(num3); CollectionsMarshal.SetCount(list266, num3); - CollectionsMarshal.AsSpan(list266)[0] = 351; + Span span266 = CollectionsMarshal.AsSpan(list266); + index3 = 0; + span266[index3] = 351; skipAetheryteCondition2.InTerritory = list266; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition2; obj197.SkipConditions = skipConditions3; reference204 = obj197; - span74[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span264[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -148192,22 +178452,25 @@ public static class AssemblyQuestLoader } } }; - span74[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + index2++; + span264[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj196.Steps = list264; reference203 = obj196; - ref QuestSequence reference205 = ref span73[1]; + num++; + ref QuestSequence reference205 = ref span263[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span75 = CollectionsMarshal.AsSpan(list267); - span75[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(212.05304f, 256.37265f, 0.08028713f), 402) + index2 = 2; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span267[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(212.05304f, 256.37265f, 0.08028713f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix, @@ -148228,7 +178491,8 @@ public static class AssemblyQuestLoader } } }; - span75[1] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) + num2++; + span267[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) { Fly = true }; @@ -148241,13 +178505,16 @@ public static class AssemblyQuestLoader num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - CollectionsMarshal.AsSpan(list268)[0] = "liza"; + Span span268 = CollectionsMarshal.AsSpan(list268); + index = 0; + span268[index] = "liza"; questRoot31.Author = list268; - num = 5; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - Span span76 = CollectionsMarshal.AsSpan(list269); - ref QuestSequence reference206 = ref span76[0]; + index = 5; + List list269 = new List(index); + CollectionsMarshal.SetCount(list269, index); + Span span269 = CollectionsMarshal.AsSpan(list269); + num = 0; + ref QuestSequence reference206 = ref span269[num]; QuestSequence obj199 = new QuestSequence { Sequence = 0 @@ -148255,24 +178522,30 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016638u, new Vector3(-42.4964f, 100.873566f, -183.12354f), 399); + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span270[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016638u, new Vector3(-42.4964f, 100.873566f, -183.12354f), 399); obj199.Steps = list270; reference206 = obj199; - ref QuestSequence reference207 = ref span76[1]; + num++; + ref QuestSequence reference207 = ref span269[num]; QuestSequence obj200 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1017930u, new Vector3(-121.26343f, 100.66968f, -131.12079f), 399) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.Interact, 1017930u, new Vector3(-121.26343f, 100.66968f, -131.12079f), 399) { Fly = true }; obj200.Steps = list271; reference207 = obj200; - ref QuestSequence reference208 = ref span76[2]; + num++; + ref QuestSequence reference208 = ref span269[num]; QuestSequence obj201 = new QuestSequence { Sequence = 2 @@ -148280,21 +178553,26 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.Interact, 1017932u, new Vector3(47.745483f, 71.508316f, 68.16199f), 399) + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.Interact, 1017932u, new Vector3(47.745483f, 71.508316f, 68.16199f), 399) { Fly = true }; obj201.Steps = list272; reference208 = obj201; - ref QuestSequence reference209 = ref span76[3]; + num++; + ref QuestSequence reference209 = ref span269[num]; QuestSequence obj202 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span273[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -148303,7 +178581,8 @@ public static class AssemblyQuestLoader }; obj202.Steps = list273; reference209 = obj202; - ref QuestSequence reference210 = ref span76[4]; + num++; + ref QuestSequence reference210 = ref span269[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -148311,7 +178590,9 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017932u, new Vector3(47.745483f, 71.508316f, 68.16199f), 399) + Span span274 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span274[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017932u, new Vector3(47.745483f, 71.508316f, 68.16199f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2336) @@ -148325,27 +178606,33 @@ public static class AssemblyQuestLoader num = 1; List list275 = new List(num); CollectionsMarshal.SetCount(list275, num); - CollectionsMarshal.AsSpan(list275)[0] = "liza"; + Span span275 = CollectionsMarshal.AsSpan(list275); + index = 0; + span275[index] = "liza"; questRoot32.Author = list275; - num = 3; - List list276 = new List(num); - CollectionsMarshal.SetCount(list276, num); - Span span77 = CollectionsMarshal.AsSpan(list276); - ref QuestSequence reference211 = ref span77[0]; + index = 3; + List list276 = new List(index); + CollectionsMarshal.SetCount(list276, index); + Span span276 = CollectionsMarshal.AsSpan(list276); + num = 0; + ref QuestSequence reference211 = ref span276[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017932u, new Vector3(47.745483f, 71.508316f, 68.16199f), 399) + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span277[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017932u, new Vector3(47.745483f, 71.508316f, 68.16199f), 399) { StopDistance = 5f }; obj204.Steps = list277; reference211 = obj204; - ref QuestSequence reference212 = ref span77[1]; + num++; + ref QuestSequence reference212 = ref span276[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -148353,7 +178640,9 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + Span span278 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span278[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -148362,15 +178651,18 @@ public static class AssemblyQuestLoader }; obj205.Steps = list278; reference212 = obj205; - ref QuestSequence reference213 = ref span77[2]; + num++; + ref QuestSequence reference213 = ref span276[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017938u, new Vector3(-16.70868f, 215.13815f, 256.27515f), 399) + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + Span span279 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span279[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017938u, new Vector3(-16.70868f, 215.13815f, 256.27515f), 399) { NextQuestId = new QuestId(2337) }; @@ -148383,13 +178675,16 @@ public static class AssemblyQuestLoader num = 1; List list280 = new List(num); CollectionsMarshal.SetCount(list280, num); - CollectionsMarshal.AsSpan(list280)[0] = "liza"; + Span span280 = CollectionsMarshal.AsSpan(list280); + index = 0; + span280[index] = "liza"; questRoot33.Author = list280; - num = 3; - List list281 = new List(num); - CollectionsMarshal.SetCount(list281, num); - Span span78 = CollectionsMarshal.AsSpan(list281); - ref QuestSequence reference214 = ref span78[0]; + index = 3; + List list281 = new List(index); + CollectionsMarshal.SetCount(list281, index); + Span span281 = CollectionsMarshal.AsSpan(list281); + num = 0; + ref QuestSequence reference214 = ref span281[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -148397,21 +178692,26 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016640u, new Vector3(-48.508484f, 100.66968f, -148.33301f), 399) + Span span282 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span282[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016640u, new Vector3(-48.508484f, 100.66968f, -148.33301f), 399) { StopDistance = 7f }; obj207.Steps = list282; reference214 = obj207; - ref QuestSequence reference215 = ref span78[1]; + num++; + ref QuestSequence reference215 = ref span281[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + Span span283 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span283[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -148420,7 +178720,8 @@ public static class AssemblyQuestLoader }; obj208.Steps = list283; reference215 = obj208; - ref QuestSequence reference216 = ref span78[2]; + num++; + ref QuestSequence reference216 = ref span281[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -148428,7 +178729,9 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017942u, new Vector3(-42.130188f, 100.88026f, -183.27612f), 399) + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span284[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017942u, new Vector3(-42.130188f, 100.88026f, -183.27612f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2338) @@ -148442,31 +178745,38 @@ public static class AssemblyQuestLoader num = 1; List list285 = new List(num); CollectionsMarshal.SetCount(list285, num); - CollectionsMarshal.AsSpan(list285)[0] = "liza"; + Span span285 = CollectionsMarshal.AsSpan(list285); + index = 0; + span285[index] = "liza"; questRoot34.Author = list285; - num = 6; - List list286 = new List(num); - CollectionsMarshal.SetCount(list286, num); - Span span79 = CollectionsMarshal.AsSpan(list286); - ref QuestSequence reference217 = ref span79[0]; + index = 6; + List list286 = new List(index); + CollectionsMarshal.SetCount(list286, index); + Span span286 = CollectionsMarshal.AsSpan(list286); + num = 0; + ref QuestSequence reference217 = ref span286[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017942u, new Vector3(-42.130188f, 100.88026f, -183.27612f), 399) + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + Span span287 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + span287[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017942u, new Vector3(-42.130188f, 100.88026f, -183.27612f), 399) { StopDistance = 5f }; obj210.Steps = list287; reference217 = obj210; - span79[1] = new QuestSequence + num++; + span286[num] = new QuestSequence { Sequence = 1 }; - ref QuestSequence reference218 = ref span79[2]; + num++; + ref QuestSequence reference218 = ref span286[num]; QuestSequence obj211 = new QuestSequence { Sequence = 2 @@ -148474,7 +178784,9 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + Span span288 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span288[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -148483,25 +178795,30 @@ public static class AssemblyQuestLoader }; obj211.Steps = list288; reference218 = obj211; - span79[3] = new QuestSequence + num++; + span286[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference219 = ref span79[4]; + num++; + ref QuestSequence reference219 = ref span286[num]; QuestSequence obj212 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 2007465u, new Vector3(-11.91736f, 0.4729614f, 14.20605f), 588) + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + Span span289 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span289[num2] = new QuestStep(EInteractionType.Interact, 2007465u, new Vector3(-11.91736f, 0.4729614f, 14.20605f), 588) { TargetTerritoryId = (ushort)399 }; obj212.Steps = list289; reference219 = obj212; - ref QuestSequence reference220 = ref span79[5]; + num++; + ref QuestSequence reference220 = ref span286[num]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue @@ -148509,7 +178826,9 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017944u, new Vector3(-233.90558f, 148.49608f, -7.8584595f), 399) + Span span290 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span290[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017944u, new Vector3(-233.90558f, 148.49608f, -7.8584595f), 399) { StopDistance = 7f, NextQuestId = new QuestId(2339) @@ -148523,27 +178842,33 @@ public static class AssemblyQuestLoader num = 1; List list291 = new List(num); CollectionsMarshal.SetCount(list291, num); - CollectionsMarshal.AsSpan(list291)[0] = "liza"; + Span span291 = CollectionsMarshal.AsSpan(list291); + index = 0; + span291[index] = "liza"; questRoot35.Author = list291; - num = 3; - List list292 = new List(num); - CollectionsMarshal.SetCount(list292, num); - Span span80 = CollectionsMarshal.AsSpan(list292); - ref QuestSequence reference221 = ref span80[0]; + index = 3; + List list292 = new List(index); + CollectionsMarshal.SetCount(list292, index); + Span span292 = CollectionsMarshal.AsSpan(list292); + num = 0; + ref QuestSequence reference221 = ref span292[num]; QuestSequence obj214 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017944u, new Vector3(-233.90558f, 148.49608f, -7.8584595f), 399) + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + Span span293 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span293[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017944u, new Vector3(-233.90558f, 148.49608f, -7.8584595f), 399) { StopDistance = 7f }; obj214.Steps = list293; reference221 = obj214; - ref QuestSequence reference222 = ref span80[1]; + num++; + ref QuestSequence reference222 = ref span292[num]; QuestSequence obj215 = new QuestSequence { Sequence = 1 @@ -148551,21 +178876,26 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1018346u, new Vector3(-237.17102f, 123.32269f, -209.82684f), 399) + Span span294 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span294[index2] = new QuestStep(EInteractionType.Interact, 1018346u, new Vector3(-237.17102f, 123.32269f, -209.82684f), 399) { Fly = true }; obj215.Steps = list294; reference222 = obj215; - ref QuestSequence reference223 = ref span80[2]; + num++; + ref QuestSequence reference223 = ref span292[num]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) + index2 = 1; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + Span span295 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + span295[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) { Fly = true }; @@ -148578,13 +178908,16 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = "JerryWester"; + Span span296 = CollectionsMarshal.AsSpan(list296); + index = 0; + span296[index] = "JerryWester"; questRoot36.Author = list296; - num = 4; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - Span span81 = CollectionsMarshal.AsSpan(list297); - ref QuestSequence reference224 = ref span81[0]; + index = 4; + List list297 = new List(index); + CollectionsMarshal.SetCount(list297, index); + Span span297 = CollectionsMarshal.AsSpan(list297); + num = 0; + ref QuestSequence reference224 = ref span297[num]; QuestSequence obj217 = new QuestSequence { Sequence = 0 @@ -148592,21 +178925,26 @@ public static class AssemblyQuestLoader num2 = 1; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015596u, new Vector3(15.915161f, 15.96505f, -0.22894287f), 419) + Span span298 = CollectionsMarshal.AsSpan(list298); + index2 = 0; + span298[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015596u, new Vector3(15.915161f, 15.96505f, -0.22894287f), 419) { StopDistance = 7f }; obj217.Steps = list298; reference224 = obj217; - ref QuestSequence reference225 = ref span81[1]; + num++; + ref QuestSequence reference225 = ref span297[num]; QuestSequence obj218 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1017719u, new Vector3(238.26953f, -13.534949f, -87.937744f), 419) + index2 = 1; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + Span span299 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span299[num2] = new QuestStep(EInteractionType.Interact, 1017719u, new Vector3(238.26953f, -13.534949f, -87.937744f), 419) { AethernetShortcut = new AethernetShortcut { @@ -148616,7 +178954,8 @@ public static class AssemblyQuestLoader }; obj218.Steps = list299; reference225 = obj218; - ref QuestSequence reference226 = ref span81[2]; + num++; + ref QuestSequence reference226 = ref span297[num]; QuestSequence obj219 = new QuestSequence { Sequence = 2 @@ -148624,22 +178963,27 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + Span span300 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span300[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { StopDistance = 7f, TargetTerritoryId = (ushort)433 }; obj219.Steps = list300; reference226 = obj219; - ref QuestSequence reference227 = ref span81[3]; + num++; + ref QuestSequence reference227 = ref span297[num]; QuestSequence obj220 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017721u, new Vector3(2.0598755f, 0.022254245f, -1.3275757f), 433) + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + Span span301 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span301[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017721u, new Vector3(2.0598755f, 0.022254245f, -1.3275757f), 433) { StopDistance = 5f }; @@ -148652,13 +178996,16 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - CollectionsMarshal.AsSpan(list302)[0] = "JerryWester"; + Span span302 = CollectionsMarshal.AsSpan(list302); + index = 0; + span302[index] = "JerryWester"; questRoot37.Author = list302; - num = 5; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - Span span82 = CollectionsMarshal.AsSpan(list303); - ref QuestSequence reference228 = ref span82[0]; + index = 5; + List list303 = new List(index); + CollectionsMarshal.SetCount(list303, index); + Span span303 = CollectionsMarshal.AsSpan(list303); + num = 0; + ref QuestSequence reference228 = ref span303[num]; QuestSequence obj221 = new QuestSequence { Sequence = 0 @@ -148666,28 +179013,34 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017721u, new Vector3(2.0598755f, 0.022254245f, -1.3275757f), 433) + Span span304 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span304[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017721u, new Vector3(2.0598755f, 0.022254245f, -1.3275757f), 433) { StopDistance = 5f }; obj221.Steps = list304; reference228 = obj221; - ref QuestSequence reference229 = ref span82[1]; + num++; + ref QuestSequence reference229 = ref span303[num]; QuestSequence obj222 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.Interact, 1017723u, new Vector3(248.40149f, 302f, -260.85297f), 155) + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + Span span305 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span305[num2] = new QuestStep(EInteractionType.Interact, 1017723u, new Vector3(248.40149f, 302f, -260.85297f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj222.Steps = list305; reference229 = obj222; - ref QuestSequence reference230 = ref span82[2]; + num++; + ref QuestSequence reference230 = ref span303[num]; QuestSequence obj223 = new QuestSequence { Sequence = 2 @@ -148695,38 +179048,46 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.Interact, 1017725u, new Vector3(603.6315f, 331.42905f, -306.508f), 155) + Span span306 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span306[index2] = new QuestStep(EInteractionType.Interact, 1017725u, new Vector3(603.6315f, 331.42905f, -306.508f), 155) { Fly = true }; obj223.Steps = list306; reference230 = obj223; - ref QuestSequence reference231 = ref span82[3]; + num++; + ref QuestSequence reference231 = ref span303[num]; QuestSequence obj224 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - ref QuestStep reference232 = ref CollectionsMarshal.AsSpan(list307)[0]; + index2 = 1; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + Span span307 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + ref QuestStep reference232 = ref span307[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Duty, null, null, 155); DutyOptions obj225 = new DutyOptions { ContentFinderConditionId = 182u }; - num3 = 2; - List list308 = new List(num3); - CollectionsMarshal.SetCount(list308, num3); - Span span83 = CollectionsMarshal.AsSpan(list308); - span83[0] = "(after boss 1) the drawbridges being up will lead you to die from the spikes"; - span83[1] = "(after boss 1) the lift isn't working properly"; + index3 = 2; + List list308 = new List(index3); + CollectionsMarshal.SetCount(list308, index3); + Span span308 = CollectionsMarshal.AsSpan(list308); + num3 = 0; + span308[num3] = "(after boss 1) the drawbridges being up will lead you to die from the spikes"; + num3++; + span308[num3] = "(after boss 1) the lift isn't working properly"; obj225.Notes = list308; questStep8.DutyOptions = obj225; reference232 = questStep8; obj224.Steps = list307; reference231 = obj224; - ref QuestSequence reference233 = ref span82[4]; + num++; + ref QuestSequence reference233 = ref span303[num]; QuestSequence obj226 = new QuestSequence { Sequence = byte.MaxValue @@ -148734,7 +179095,9 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017724u, new Vector3(601.9531f, 331.81714f, -308.8579f), 155) + Span span309 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span309[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017724u, new Vector3(601.9531f, 331.81714f, -308.8579f), 155) { StopDistance = 7f }; @@ -148747,27 +179110,33 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - CollectionsMarshal.AsSpan(list310)[0] = "JerryWester"; + Span span310 = CollectionsMarshal.AsSpan(list310); + index = 0; + span310[index] = "JerryWester"; questRoot38.Author = list310; - num = 5; - List list311 = new List(num); - CollectionsMarshal.SetCount(list311, num); - Span span84 = CollectionsMarshal.AsSpan(list311); - ref QuestSequence reference234 = ref span84[0]; + index = 5; + List list311 = new List(index); + CollectionsMarshal.SetCount(list311, index); + Span span311 = CollectionsMarshal.AsSpan(list311); + num = 0; + ref QuestSequence reference234 = ref span311[num]; QuestSequence obj227 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017724u, new Vector3(601.9531f, 331.81714f, -308.8579f), 155) + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + Span span312 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span312[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017724u, new Vector3(601.9531f, 331.81714f, -308.8579f), 155) { StopDistance = 7f }; obj227.Steps = list312; reference234 = obj227; - ref QuestSequence reference235 = ref span84[1]; + num++; + ref QuestSequence reference235 = ref span311[num]; QuestSequence obj228 = new QuestSequence { Sequence = 1 @@ -148775,7 +179144,9 @@ public static class AssemblyQuestLoader num2 = 1; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) + Span span313 = CollectionsMarshal.AsSpan(list313); + index2 = 0; + span313[index2] = new QuestStep(EInteractionType.Interact, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -148786,21 +179157,25 @@ public static class AssemblyQuestLoader }; obj228.Steps = list313; reference235 = obj228; - ref QuestSequence reference236 = ref span84[2]; + num++; + ref QuestSequence reference236 = ref span311[num]; QuestSequence obj229 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list314 = new List(num2); - CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 1016818u, new Vector3(109.72754f, 24.384384f, -4.715088f), 418) + index2 = 1; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + Span span314 = CollectionsMarshal.AsSpan(list314); + num2 = 0; + span314[num2] = new QuestStep(EInteractionType.Interact, 1016818u, new Vector3(109.72754f, 24.384384f, -4.715088f), 418) { StopDistance = 7f }; obj229.Steps = list314; reference236 = obj229; - ref QuestSequence reference237 = ref span84[3]; + num++; + ref QuestSequence reference237 = ref span311[num]; QuestSequence obj230 = new QuestSequence { Sequence = 3 @@ -148808,28 +179183,34 @@ public static class AssemblyQuestLoader num2 = 3; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span85 = CollectionsMarshal.AsSpan(list315); - span85[0] = new QuestStep(EInteractionType.UseItem, null, null, 418) + Span span315 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span315[index2] = new QuestStep(EInteractionType.UseItem, null, null, 418) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span85[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span85[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + index2++; + span315[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + index2++; + span315[index2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; obj230.Steps = list315; reference237 = obj230; - ref QuestSequence reference238 = ref span84[4]; + num++; + ref QuestSequence reference238 = ref span311[num]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + Span span316 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + span316[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook @@ -148843,13 +179224,16 @@ public static class AssemblyQuestLoader num = 1; List list317 = new List(num); CollectionsMarshal.SetCount(list317, num); - CollectionsMarshal.AsSpan(list317)[0] = "JerryWester"; + Span span317 = CollectionsMarshal.AsSpan(list317); + index = 0; + span317[index] = "JerryWester"; questRoot39.Author = list317; - num = 7; - List list318 = new List(num); - CollectionsMarshal.SetCount(list318, num); - Span span86 = CollectionsMarshal.AsSpan(list318); - ref QuestSequence reference239 = ref span86[0]; + index = 7; + List list318 = new List(index); + CollectionsMarshal.SetCount(list318, index); + Span span318 = CollectionsMarshal.AsSpan(list318); + num = 0; + ref QuestSequence reference239 = ref span318[num]; QuestSequence obj232 = new QuestSequence { Sequence = 0 @@ -148857,7 +179241,9 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) + Span span319 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + span319[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, SkipConditions = new SkipConditions @@ -148870,18 +179256,22 @@ public static class AssemblyQuestLoader }; obj232.Steps = list319; reference239 = obj232; - ref QuestSequence reference240 = ref span86[1]; + num++; + ref QuestSequence reference240 = ref span318[num]; QuestSequence obj233 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.Interact, 1017728u, new Vector3(-126.78729f, 64.801445f, -211.0476f), 180); + index2 = 1; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + Span span320 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + span320[num2] = new QuestStep(EInteractionType.Interact, 1017728u, new Vector3(-126.78729f, 64.801445f, -211.0476f), 180); obj233.Steps = list320; reference240 = obj233; - ref QuestSequence reference241 = ref span86[2]; + num++; + ref QuestSequence reference241 = ref span318[num]; QuestSequence obj234 = new QuestSequence { Sequence = 2 @@ -148889,28 +179279,34 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.Interact, 1017732u, new Vector3(-74.99817f, 64.60398f, -289.53992f), 180) + Span span321 = CollectionsMarshal.AsSpan(list321); + index2 = 0; + span321[index2] = new QuestStep(EInteractionType.Interact, 1017732u, new Vector3(-74.99817f, 64.60398f, -289.53992f), 180) { Fly = true }; obj234.Steps = list321; reference241 = obj234; - ref QuestSequence reference242 = ref span86[3]; + num++; + ref QuestSequence reference242 = ref span318[num]; QuestSequence obj235 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.Interact, 1017733u, new Vector3(-29.221008f, 57.161472f, -235.4925f), 180) + index2 = 1; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + Span span322 = CollectionsMarshal.AsSpan(list322); + num2 = 0; + span322[num2] = new QuestStep(EInteractionType.Interact, 1017733u, new Vector3(-29.221008f, 57.161472f, -235.4925f), 180) { StopDistance = 1f, Fly = true }; obj235.Steps = list322; reference242 = obj235; - ref QuestSequence reference243 = ref span86[4]; + num++; + ref QuestSequence reference243 = ref span318[num]; QuestSequence obj236 = new QuestSequence { Sequence = 4 @@ -148918,12 +179314,14 @@ public static class AssemblyQuestLoader num2 = 2; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span87 = CollectionsMarshal.AsSpan(list323); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.94925f, 74.435455f, -281.74304f), 180) + Span span323 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span323[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.94925f, 74.435455f, -281.74304f), 180) { Fly = true }; - span87[1] = new QuestStep(EInteractionType.Interact, 1017734u, new Vector3(-105.4552f, 67.90736f, -277.7295f), 180) + index2++; + span323[index2] = new QuestStep(EInteractionType.Interact, 1017734u, new Vector3(-105.4552f, 67.90736f, -277.7295f), 180) { DelaySecondsAtStart = 1f, DisableNavmesh = true, @@ -148931,21 +179329,25 @@ public static class AssemblyQuestLoader }; obj236.Steps = list323; reference243 = obj236; - ref QuestSequence reference244 = ref span86[5]; + num++; + ref QuestSequence reference244 = ref span318[num]; QuestSequence obj237 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.Interact, 1017735u, new Vector3(-39.230957f, 64.43301f, -226.94745f), 180) + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + Span span324 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span324[num2] = new QuestStep(EInteractionType.Interact, 1017735u, new Vector3(-39.230957f, 64.43301f, -226.94745f), 180) { Fly = true }; obj237.Steps = list324; reference244 = obj237; - ref QuestSequence reference245 = ref span86[6]; + num++; + ref QuestSequence reference245 = ref span318[num]; QuestSequence obj238 = new QuestSequence { Sequence = byte.MaxValue @@ -148953,7 +179355,9 @@ public static class AssemblyQuestLoader num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017736u, new Vector3(-42.008118f, 64.500336f, -228.47339f), 180); + Span span325 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span325[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017736u, new Vector3(-42.008118f, 64.500336f, -228.47339f), 180); obj238.Steps = list325; reference245 = obj238; questRoot39.QuestSequence = list318; @@ -148963,21 +179367,26 @@ public static class AssemblyQuestLoader num = 1; List list326 = new List(num); CollectionsMarshal.SetCount(list326, num); - CollectionsMarshal.AsSpan(list326)[0] = "JerryWester"; + Span span326 = CollectionsMarshal.AsSpan(list326); + index = 0; + span326[index] = "JerryWester"; questRoot40.Author = list326; - num = 10; - List list327 = new List(num); - CollectionsMarshal.SetCount(list327, num); - Span span88 = CollectionsMarshal.AsSpan(list327); - ref QuestSequence reference246 = ref span88[0]; + index = 10; + List list327 = new List(index); + CollectionsMarshal.SetCount(list327, index); + Span span327 = CollectionsMarshal.AsSpan(list327); + num = 0; + ref QuestSequence reference246 = ref span327[num]; QuestSequence obj239 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016815u, new Vector3(-39.108948f, 64.40771f, -226.88641f), 180) + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + Span span328 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span328[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016815u, new Vector3(-39.108948f, 64.40771f, -226.88641f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, SkipConditions = new SkipConditions @@ -148990,7 +179399,8 @@ public static class AssemblyQuestLoader }; obj239.Steps = list328; reference246 = obj239; - ref QuestSequence reference247 = ref span88[1]; + num++; + ref QuestSequence reference247 = ref span327[num]; QuestSequence obj240 = new QuestSequence { Sequence = 1 @@ -148998,24 +179408,30 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 1017865u, new Vector3(74.906494f, 66.5736f, -242.35907f), 180) + Span span329 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + span329[index2] = new QuestStep(EInteractionType.Interact, 1017865u, new Vector3(74.906494f, 66.5736f, -242.35907f), 180) { Fly = true }; obj240.Steps = list329; reference247 = obj240; - ref QuestSequence reference248 = ref span88[2]; + num++; + ref QuestSequence reference248 = ref span327[num]; QuestSequence obj241 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.Interact, 2007415u, new Vector3(76.76807f, 66.48352f, -243.54932f), 180); + index2 = 1; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + Span span330 = CollectionsMarshal.AsSpan(list330); + num2 = 0; + span330[num2] = new QuestStep(EInteractionType.Interact, 2007415u, new Vector3(76.76807f, 66.48352f, -243.54932f), 180); obj241.Steps = list330; reference248 = obj241; - ref QuestSequence reference249 = ref span88[3]; + num++; + ref QuestSequence reference249 = ref span327[num]; QuestSequence obj242 = new QuestSequence { Sequence = 3 @@ -149023,27 +179439,33 @@ public static class AssemblyQuestLoader num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.Interact, 2007416u, new Vector3(88.76172f, 48.599854f, -399.5575f), 180) + Span span331 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span331[index2] = new QuestStep(EInteractionType.Interact, 2007416u, new Vector3(88.76172f, 48.599854f, -399.5575f), 180) { Fly = true }; obj242.Steps = list331; reference249 = obj242; - ref QuestSequence reference250 = ref span88[4]; + num++; + ref QuestSequence reference250 = ref span327[num]; QuestSequence obj243 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list332 = new List(num2); - CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.Interact, 2007459u, new Vector3(88.60913f, 55.436035f, -456.80933f), 180) + index2 = 1; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + Span span332 = CollectionsMarshal.AsSpan(list332); + num2 = 0; + span332[num2] = new QuestStep(EInteractionType.Interact, 2007459u, new Vector3(88.60913f, 55.436035f, -456.80933f), 180) { Fly = true }; obj243.Steps = list332; reference250 = obj243; - ref QuestSequence reference251 = ref span88[5]; + num++; + ref QuestSequence reference251 = ref span327[num]; QuestSequence obj244 = new QuestSequence { Sequence = 5 @@ -149051,43 +179473,54 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.Interact, 1018112u, new Vector3(87.96814f, 55.499306f, -454.5205f), 180); + Span span333 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span333[index2] = new QuestStep(EInteractionType.Interact, 1018112u, new Vector3(87.96814f, 55.499306f, -454.5205f), 180); obj244.Steps = list333; reference251 = obj244; - ref QuestSequence reference252 = ref span88[6]; + num++; + ref QuestSequence reference252 = ref span327[num]; QuestSequence obj245 = new QuestSequence { Sequence = 6 }; - num2 = 7; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - Span span89 = CollectionsMarshal.AsSpan(list334); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.55255f, 59.83099f, -516.4647f), 180) + index2 = 7; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + Span span334 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span334[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.55255f, 59.83099f, -516.4647f), 180) { Fly = true }; - span89[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(110.36899f, 23.559273f, -618.5543f), 180); - span89[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(84.102905f, 28.170393f, -716.35504f), 180) + num2++; + span334[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(110.36899f, 23.559273f, -618.5543f), 180); + num2++; + span334[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(84.102905f, 28.170393f, -716.35504f), 180) { Fly = true }; - span89[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) + num2++; + span334[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) { Fly = true }; - span89[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) + num2++; + span334[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) { Fly = true }; - span89[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) + num2++; + span334[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) { Fly = true }; - span89[6] = new QuestStep(EInteractionType.Interact, 1017739u, new Vector3(146.34924f, 24.163107f, -635.40094f), 180); + num2++; + span334[num2] = new QuestStep(EInteractionType.Interact, 1017739u, new Vector3(146.34924f, 24.163107f, -635.40094f), 180); obj245.Steps = list334; reference252 = obj245; - ref QuestSequence reference253 = ref span88[7]; + num++; + ref QuestSequence reference253 = ref span327[num]; QuestSequence obj246 = new QuestSequence { Sequence = 7 @@ -149095,21 +179528,26 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.Interact, 1017741u, new Vector3(146.68494f, 24.240011f, -632.4712f), 180) + Span span335 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span335[index2] = new QuestStep(EInteractionType.Interact, 1017741u, new Vector3(146.68494f, 24.240011f, -632.4712f), 180) { StopDistance = 7f }; obj246.Steps = list335; reference253 = obj246; - ref QuestSequence reference254 = ref span88[8]; + num++; + ref QuestSequence reference254 = ref span327[num]; QuestSequence obj247 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Duty, null, null, 180) + index2 = 1; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + Span span336 = CollectionsMarshal.AsSpan(list336); + num2 = 0; + span336[num2] = new QuestStep(EInteractionType.Duty, null, null, 180) { DutyOptions = new DutyOptions { @@ -149118,7 +179556,8 @@ public static class AssemblyQuestLoader }; obj247.Steps = list336; reference254 = obj247; - ref QuestSequence reference255 = ref span88[9]; + num++; + ref QuestSequence reference255 = ref span327[num]; QuestSequence obj248 = new QuestSequence { Sequence = byte.MaxValue @@ -149126,7 +179565,9 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017744u, new Vector3(-48.29486f, 64.43991f, -235.5841f), 180) + Span span337 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span337[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017744u, new Vector3(-48.29486f, 64.43991f, -235.5841f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook @@ -149140,21 +179581,26 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - CollectionsMarshal.AsSpan(list338)[0] = "JerryWester"; + Span span338 = CollectionsMarshal.AsSpan(list338); + index = 0; + span338[index] = "JerryWester"; questRoot41.Author = list338; - num = 7; - List list339 = new List(num); - CollectionsMarshal.SetCount(list339, num); - Span span90 = CollectionsMarshal.AsSpan(list339); - ref QuestSequence reference256 = ref span90[0]; + index = 7; + List list339 = new List(index); + CollectionsMarshal.SetCount(list339, index); + Span span339 = CollectionsMarshal.AsSpan(list339); + num = 0; + ref QuestSequence reference256 = ref span339[num]; QuestSequence obj249 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017744u, new Vector3(-48.29486f, 64.43991f, -235.5841f), 180) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + Span span340 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span340[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017744u, new Vector3(-48.29486f, 64.43991f, -235.5841f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, SkipConditions = new SkipConditions @@ -149167,7 +179613,8 @@ public static class AssemblyQuestLoader }; obj249.Steps = list340; reference256 = obj249; - ref QuestSequence reference257 = ref span90[1]; + num++; + ref QuestSequence reference257 = ref span339[num]; QuestSequence obj250 = new QuestSequence { Sequence = 1 @@ -149175,24 +179622,30 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) + Span span341 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span341[index2] = new QuestStep(EInteractionType.Interact, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) { Fly = true }; obj250.Steps = list341; reference257 = obj250; - ref QuestSequence reference258 = ref span90[2]; + num++; + ref QuestSequence reference258 = ref span339[num]; QuestSequence obj251 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 1017728u, new Vector3(-126.78729f, 64.801445f, -211.0476f), 180); + index2 = 1; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + Span span342 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span342[num2] = new QuestStep(EInteractionType.Interact, 1017728u, new Vector3(-126.78729f, 64.801445f, -211.0476f), 180); obj251.Steps = list342; reference258 = obj251; - ref QuestSequence reference259 = ref span90[3]; + num++; + ref QuestSequence reference259 = ref span339[num]; QuestSequence obj252 = new QuestSequence { Sequence = 3 @@ -149200,34 +179653,41 @@ public static class AssemblyQuestLoader num2 = 1; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.Interact, 1017747u, new Vector3(-96.910095f, 62.55459f, -160.05188f), 180) + Span span343 = CollectionsMarshal.AsSpan(list343); + index2 = 0; + span343[index2] = new QuestStep(EInteractionType.Interact, 1017747u, new Vector3(-96.910095f, 62.55459f, -160.05188f), 180) { Fly = true }; obj252.Steps = list343; reference259 = obj252; - ref QuestSequence reference260 = ref span90[4]; + num++; + ref QuestSequence reference260 = ref span339[num]; QuestSequence obj253 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - Span span91 = CollectionsMarshal.AsSpan(list344); - span91[0] = new QuestStep(EInteractionType.UseItem, null, null, 180) + index2 = 3; + List list344 = new List(index2); + CollectionsMarshal.SetCount(list344, index2); + Span span344 = CollectionsMarshal.AsSpan(list344); + num2 = 0; + span344[num2] = new QuestStep(EInteractionType.UseItem, null, null, 180) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span91[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); - span91[2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) + num2++; + span344[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); + num2++; + span344[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; obj253.Steps = list344; reference260 = obj253; - ref QuestSequence reference261 = ref span90[5]; + num++; + ref QuestSequence reference261 = ref span339[num]; QuestSequence obj254 = new QuestSequence { Sequence = 5 @@ -149235,21 +179695,26 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.Interact, 1018368u, new Vector3(-8.46875f, 0f, -3.2502441f), 212) + Span span345 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + span345[index2] = new QuestStep(EInteractionType.Interact, 1018368u, new Vector3(-8.46875f, 0f, -3.2502441f), 212) { StopDistance = 5f }; obj254.Steps = list345; reference261 = obj254; - ref QuestSequence reference262 = ref span90[6]; + num++; + ref QuestSequence reference262 = ref span339[num]; QuestSequence obj255 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017751u, new Vector3(-169.35992f, 27.48653f, -397.1161f), 146) + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + Span span346 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span346[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017751u, new Vector3(-169.35992f, 27.48653f, -397.1161f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; @@ -149262,13 +179727,16 @@ public static class AssemblyQuestLoader num = 1; List list347 = new List(num); CollectionsMarshal.SetCount(list347, num); - CollectionsMarshal.AsSpan(list347)[0] = "JerryWester"; + Span span347 = CollectionsMarshal.AsSpan(list347); + index = 0; + span347[index] = "JerryWester"; questRoot42.Author = list347; - num = 6; - List list348 = new List(num); - CollectionsMarshal.SetCount(list348, num); - Span span92 = CollectionsMarshal.AsSpan(list348); - ref QuestSequence reference263 = ref span92[0]; + index = 6; + List list348 = new List(index); + CollectionsMarshal.SetCount(list348, index); + Span span348 = CollectionsMarshal.AsSpan(list348); + num = 0; + ref QuestSequence reference263 = ref span348[num]; QuestSequence obj256 = new QuestSequence { Sequence = 0 @@ -149276,7 +179744,9 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017750u, new Vector3(-170.58063f, 27.660244f, -397.72644f), 146) + Span span349 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + span349[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017750u, new Vector3(-170.58063f, 27.660244f, -397.72644f), 146) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, @@ -149290,47 +179760,63 @@ public static class AssemblyQuestLoader }; obj256.Steps = list349; reference263 = obj256; - ref QuestSequence reference264 = ref span92[1]; + num++; + ref QuestSequence reference264 = ref span348[num]; QuestSequence obj257 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - Span span93 = CollectionsMarshal.AsSpan(list350); - ref QuestStep reference265 = ref span93[0]; + index2 = 3; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + Span span350 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + ref QuestStep reference265 = ref span350[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1006223u, new Vector3(-85.06909f, 26.222988f, -348.50085f), 146); num3 = 6; List list351 = new List(num3); CollectionsMarshal.SetCount(list351, num3); - Span span94 = CollectionsMarshal.AsSpan(list351); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span351 = CollectionsMarshal.AsSpan(list351); + index3 = 0; + span351[index3] = null; + index3++; + span351[index3] = null; + index3++; + span351[index3] = null; + index3++; + span351[index3] = null; + index3++; + span351[index3] = null; + index3++; + span351[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list351; reference265 = questStep9; - ref QuestStep reference266 = ref span93[1]; + num2++; + ref QuestStep reference266 = ref span350[num2]; QuestStep obj258 = new QuestStep(EInteractionType.Interact, 1006224u, new Vector3(-77.74481f, 27.626602f, -325.42914f), 146) { Mount = true }; - num3 = 6; - List list352 = new List(num3); - CollectionsMarshal.SetCount(list352, num3); - Span span95 = CollectionsMarshal.AsSpan(list352); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list352 = new List(index3); + CollectionsMarshal.SetCount(list352, index3); + Span span352 = CollectionsMarshal.AsSpan(list352); + num3 = 0; + span352[num3] = null; + num3++; + span352[num3] = null; + num3++; + span352[num3] = null; + num3++; + span352[num3] = null; + num3++; + span352[num3] = null; + num3++; + span352[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj258.CompletionQuestVariablesFlags = list352; reference266 = obj258; - ref QuestStep reference267 = ref span93[2]; + num2++; + ref QuestStep reference267 = ref span350[num2]; QuestStep obj259 = new QuestStep(EInteractionType.Interact, 1006213u, new Vector3(-102.49487f, 37.8654f, -355.97772f), 146) { Fly = true @@ -149338,18 +179824,25 @@ public static class AssemblyQuestLoader num3 = 6; List list353 = new List(num3); CollectionsMarshal.SetCount(list353, num3); - Span span96 = CollectionsMarshal.AsSpan(list353); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span353 = CollectionsMarshal.AsSpan(list353); + index3 = 0; + span353[index3] = null; + index3++; + span353[index3] = null; + index3++; + span353[index3] = null; + index3++; + span353[index3] = null; + index3++; + span353[index3] = null; + index3++; + span353[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj259.CompletionQuestVariablesFlags = list353; reference267 = obj259; obj257.Steps = list350; reference264 = obj257; - ref QuestSequence reference268 = ref span92[2]; + num++; + ref QuestSequence reference268 = ref span348[num]; QuestSequence obj260 = new QuestSequence { Sequence = 2 @@ -149357,21 +179850,27 @@ public static class AssemblyQuestLoader num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1017750u, new Vector3(-170.58063f, 27.660244f, -397.72644f), 146); + Span span354 = CollectionsMarshal.AsSpan(list354); + index2 = 0; + span354[index2] = new QuestStep(EInteractionType.Interact, 1017750u, new Vector3(-170.58063f, 27.660244f, -397.72644f), 146); obj260.Steps = list354; reference268 = obj260; - ref QuestSequence reference269 = ref span92[3]; + num++; + ref QuestSequence reference269 = ref span348[num]; QuestSequence obj261 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); + index2 = 1; + List list355 = new List(index2); + CollectionsMarshal.SetCount(list355, index2); + Span span355 = CollectionsMarshal.AsSpan(list355); + num2 = 0; + span355[num2] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); obj261.Steps = list355; reference269 = obj261; - ref QuestSequence reference270 = ref span92[4]; + num++; + ref QuestSequence reference270 = ref span348[num]; QuestSequence obj262 = new QuestSequence { Sequence = 4 @@ -149379,23 +179878,28 @@ public static class AssemblyQuestLoader num2 = 2; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - Span span97 = CollectionsMarshal.AsSpan(list356); - span97[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-58.848705f, 26.173487f, -385.86462f), 146); - span97[1] = new QuestStep(EInteractionType.Interact, 1017756u, new Vector3(181.96375f, 13.495921f, -446.82996f), 146) + Span span356 = CollectionsMarshal.AsSpan(list356); + index2 = 0; + span356[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-58.848705f, 26.173487f, -385.86462f), 146); + index2++; + span356[index2] = new QuestStep(EInteractionType.Interact, 1017756u, new Vector3(181.96375f, 13.495921f, -446.82996f), 146) { Fly = true }; obj262.Steps = list356; reference270 = obj262; - ref QuestSequence reference271 = ref span92[5]; + num++; + ref QuestSequence reference271 = ref span348[num]; QuestSequence obj263 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017757u, new Vector3(179.797f, 13.124423f, -443.1678f), 146); + index2 = 1; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + Span span357 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span357[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017757u, new Vector3(179.797f, 13.124423f, -443.1678f), 146); obj263.Steps = list357; reference271 = obj263; questRoot42.QuestSequence = list348; @@ -149405,13 +179909,16 @@ public static class AssemblyQuestLoader num = 1; List list358 = new List(num); CollectionsMarshal.SetCount(list358, num); - CollectionsMarshal.AsSpan(list358)[0] = "JerryWester"; + Span span358 = CollectionsMarshal.AsSpan(list358); + index = 0; + span358[index] = "JerryWester"; questRoot43.Author = list358; - num = 5; - List list359 = new List(num); - CollectionsMarshal.SetCount(list359, num); - Span span98 = CollectionsMarshal.AsSpan(list359); - ref QuestSequence reference272 = ref span98[0]; + index = 5; + List list359 = new List(index); + CollectionsMarshal.SetCount(list359, index); + Span span359 = CollectionsMarshal.AsSpan(list359); + num = 0; + ref QuestSequence reference272 = ref span359[num]; QuestSequence obj264 = new QuestSequence { Sequence = 0 @@ -149419,24 +179926,30 @@ public static class AssemblyQuestLoader num2 = 1; List list360 = new List(num2); CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017759u, new Vector3(179.61389f, 13.09844f, -441.48932f), 146) + Span span360 = CollectionsMarshal.AsSpan(list360); + index2 = 0; + span360[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017759u, new Vector3(179.61389f, 13.09844f, -441.48932f), 146) { StopDistance = 5f }; obj264.Steps = list360; reference272 = obj264; - ref QuestSequence reference273 = ref span98[1]; + num++; + ref QuestSequence reference273 = ref span359[num]; QuestSequence obj265 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list361 = new List(num2); - CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.Interact, 1006224u, new Vector3(-77.74481f, 27.626602f, -325.42914f), 146); + index2 = 1; + List list361 = new List(index2); + CollectionsMarshal.SetCount(list361, index2); + Span span361 = CollectionsMarshal.AsSpan(list361); + num2 = 0; + span361[num2] = new QuestStep(EInteractionType.Interact, 1006224u, new Vector3(-77.74481f, 27.626602f, -325.42914f), 146); obj265.Steps = list361; reference273 = obj265; - ref QuestSequence reference274 = ref span98[2]; + num++; + ref QuestSequence reference274 = ref span359[num]; QuestSequence obj266 = new QuestSequence { Sequence = 2 @@ -149444,33 +179957,40 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.Interact, 1017760u, new Vector3(-79.57587f, 27.602297f, -326.19214f), 146); + Span span362 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span362[index2] = new QuestStep(EInteractionType.Interact, 1017760u, new Vector3(-79.57587f, 27.602297f, -326.19214f), 146); obj266.Steps = list362; reference274 = obj266; - ref QuestSequence reference275 = ref span98[3]; + num++; + ref QuestSequence reference275 = ref span359[num]; QuestSequence obj267 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - Span span99 = CollectionsMarshal.AsSpan(list363); - span99[0] = new QuestStep(EInteractionType.EquipItem, null, null, 146) + index2 = 3; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + Span span363 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + span363[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 146) { ItemId = 2995u }; - span99[1] = new QuestStep(EInteractionType.EquipItem, null, null, 146) + num2++; + span363[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 146) { ItemId = 3306u }; - span99[2] = new QuestStep(EInteractionType.Interact, 1017761u, new Vector3(-106.9505f, 21.884232f, -478.90442f), 146) + num2++; + span363[num2] = new QuestStep(EInteractionType.Interact, 1017761u, new Vector3(-106.9505f, 21.884232f, -478.90442f), 146) { Fly = true }; obj267.Steps = list363; reference275 = obj267; - ref QuestSequence reference276 = ref span98[4]; + num++; + ref QuestSequence reference276 = ref span359[num]; QuestSequence obj268 = new QuestSequence { Sequence = byte.MaxValue @@ -149478,9 +179998,11 @@ public static class AssemblyQuestLoader num2 = 2; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - Span span100 = CollectionsMarshal.AsSpan(list364); - span100[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 146); - span100[1] = new QuestStep(EInteractionType.CompleteQuest, 1017762u, new Vector3(-106.9505f, 21.88654f, -478.8739f), 146); + Span span364 = CollectionsMarshal.AsSpan(list364); + index2 = 0; + span364[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 146); + index2++; + span364[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017762u, new Vector3(-106.9505f, 21.88654f, -478.8739f), 146); obj268.Steps = list364; reference276 = obj268; questRoot43.QuestSequence = list359; @@ -149490,24 +180012,30 @@ public static class AssemblyQuestLoader num = 1; List list365 = new List(num); CollectionsMarshal.SetCount(list365, num); - CollectionsMarshal.AsSpan(list365)[0] = "JerryWester"; + Span span365 = CollectionsMarshal.AsSpan(list365); + index = 0; + span365[index] = "JerryWester"; questRoot44.Author = list365; - num = 4; - List list366 = new List(num); - CollectionsMarshal.SetCount(list366, num); - Span span101 = CollectionsMarshal.AsSpan(list366); - ref QuestSequence reference277 = ref span101[0]; + index = 4; + List list366 = new List(index); + CollectionsMarshal.SetCount(list366, index); + Span span366 = CollectionsMarshal.AsSpan(list366); + num = 0; + ref QuestSequence reference277 = ref span366[num]; QuestSequence obj269 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017762u, new Vector3(-106.9505f, 21.88654f, -478.8739f), 146); + index2 = 1; + List list367 = new List(index2); + CollectionsMarshal.SetCount(list367, index2); + Span span367 = CollectionsMarshal.AsSpan(list367); + num2 = 0; + span367[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017762u, new Vector3(-106.9505f, 21.88654f, -478.8739f), 146); obj269.Steps = list367; reference277 = obj269; - ref QuestSequence reference278 = ref span101[1]; + num++; + ref QuestSequence reference278 = ref span366[num]; QuestSequence obj270 = new QuestSequence { Sequence = 1 @@ -149515,21 +180043,26 @@ public static class AssemblyQuestLoader num2 = 1; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.Interact, 1017751u, new Vector3(-169.35992f, 27.48653f, -397.1161f), 146) + Span span368 = CollectionsMarshal.AsSpan(list368); + index2 = 0; + span368[index2] = new QuestStep(EInteractionType.Interact, 1017751u, new Vector3(-169.35992f, 27.48653f, -397.1161f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj270.Steps = list368; reference278 = obj270; - ref QuestSequence reference279 = ref span101[2]; + num++; + ref QuestSequence reference279 = ref span366[num]; QuestSequence obj271 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list369 = new List(num2); - CollectionsMarshal.SetCount(list369, num2); - CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1017764u, new Vector3(4.2266846f, 0.91341394f, -9.720032f), 146) + index2 = 1; + List list369 = new List(index2); + CollectionsMarshal.SetCount(list369, index2); + Span span369 = CollectionsMarshal.AsSpan(list369); + num2 = 0; + span369[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1017764u, new Vector3(4.2266846f, 0.91341394f, -9.720032f), 146) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -149538,7 +180071,8 @@ public static class AssemblyQuestLoader }; obj271.Steps = list369; reference279 = obj271; - ref QuestSequence reference280 = ref span101[3]; + num++; + ref QuestSequence reference280 = ref span366[num]; QuestSequence obj272 = new QuestSequence { Sequence = byte.MaxValue @@ -149546,7 +180080,9 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017767u, new Vector3(1.3274536f, 0.90783566f, -3.4638672f), 146) + Span span370 = CollectionsMarshal.AsSpan(list370); + index2 = 0; + span370[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017767u, new Vector3(1.3274536f, 0.90783566f, -3.4638672f), 146) { StopDistance = 5f }; @@ -149563,13 +180099,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -149577,24 +180116,30 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017767u, new Vector3(1.3274536f, 0.90783566f, -3.4638672f), 146) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017767u, new Vector3(1.3274536f, 0.90783566f, -3.4638672f), 146) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1017768u, new Vector3(-0.80877686f, 0.72928506f, -4.867676f), 146); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1017768u, new Vector3(-0.80877686f, 0.72928506f, -4.867676f), 146); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -149602,30 +180147,36 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1017771u, new Vector3(-68.95557f, 26.907436f, -393.66754f), 146) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1017771u, new Vector3(-68.95557f, 26.907436f, -393.66754f), 146) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span2 = CollectionsMarshal.AsSpan(list6); - span2[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 2; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span2[1] = new QuestStep(EInteractionType.Interact, 1017775u, new Vector3(-2.3651733f, -2.0000217f, -24.887512f), 351); + num2++; + span6[num2] = new QuestStep(EInteractionType.Interact, 1017775u, new Vector3(-2.3651733f, -2.0000217f, -24.887512f), 351); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -149633,7 +180184,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017776u, new Vector3(-3.5858765f, 0.018040119f, -6.9123535f), 351); + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017776u, new Vector3(-3.5858765f, 0.018040119f, -6.9123535f), 351); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -149643,24 +180196,30 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "JerryWester"; + Span span8 = CollectionsMarshal.AsSpan(list8); + index = 0; + span8[index] = "JerryWester"; questRoot2.Author = list8; - num = 3; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span3 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span3[0]; + index = 3; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + Span span9 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span9[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017788u, new Vector3(27.847656f, -1f, -0.5036011f), 351); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017788u, new Vector3(27.847656f, -1f, -0.5036011f), 351); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span3[1]; + num++; + ref QuestSequence reference7 = ref span9[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -149668,31 +180227,38 @@ public static class AssemblyQuestLoader num2 = 4; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span4 = CollectionsMarshal.AsSpan(list11); - span4[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.352629f, 21.285944f, -652.1081f), 156) + index2++; + span11[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.352629f, 21.285944f, -652.1081f), 156) { Mount = true }; - span4[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.110107f, 29.57478f, -770.24866f), 156) + index2++; + span11[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.110107f, 29.57478f, -770.24866f), 156) { Fly = true }; - span4[3] = new QuestStep(EInteractionType.Interact, 2007563u, new Vector3(35.38562f, 28.976807f, -791.56177f), 156); + index2++; + span11[index2] = new QuestStep(EInteractionType.Interact, 2007563u, new Vector3(35.38562f, 28.976807f, -791.56177f), 156); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span3[2]; + num++; + ref QuestSequence reference8 = ref span9[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013167u, new Vector3(125.68848f, 24.458836f, 2.456604f), 418) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013167u, new Vector3(125.68848f, 24.458836f, 2.456604f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -149710,13 +180276,16 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "JerryWester"; + Span span13 = CollectionsMarshal.AsSpan(list13); + index = 0; + span13[index] = "JerryWester"; questRoot3.Author = list13; - num = 4; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span5 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference9 = ref span5[0]; + index = 4; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference9 = ref span14[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -149724,30 +180293,36 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) { StopDistance = 5f }; obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference10 = ref span5[1]; + num++; + ref QuestSequence reference10 = ref span14[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span6 = CollectionsMarshal.AsSpan(list16); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-132.85718f, 304.1538f, -293.03745f), 155) + index2 = 2; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-132.85718f, 304.1538f, -293.03745f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span6[1] = new QuestStep(EInteractionType.Interact, 2007472u, new Vector3(-140.97815f, 304.09705f, -311.14673f), 155); + num2++; + span16[num2] = new QuestStep(EInteractionType.Interact, 2007472u, new Vector3(-140.97815f, 304.09705f, -311.14673f), 155); obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span5[2]; + num++; + ref QuestSequence reference11 = ref span14[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -149755,22 +180330,27 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1018013u, new Vector3(233.84448f, 302f, -188.95251f), 155) + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.Interact, 1018013u, new Vector3(233.84448f, 302f, -188.95251f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span5[3]; + num++; + ref QuestSequence reference12 = ref span14[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018015u, new Vector3(8.407715f, -1.5097584f, 13.9314575f), 132) + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018015u, new Vector3(8.407715f, -1.5097584f, 13.9314575f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -149783,13 +180363,16 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "JerryWester"; + Span span19 = CollectionsMarshal.AsSpan(list19); + index = 0; + span19[index] = "JerryWester"; questRoot4.Author = list19; - num = 4; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span7 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference13 = ref span7[0]; + index = 4; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + Span span20 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference13 = ref span20[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -149797,7 +180380,9 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018015u, new Vector3(8.407715f, -1.5097584f, 13.9314575f), 132) + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span21[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018015u, new Vector3(8.407715f, -1.5097584f, 13.9314575f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -149810,15 +180395,18 @@ public static class AssemblyQuestLoader }; obj13.Steps = list21; reference13 = obj13; - ref QuestSequence reference14 = ref span7[1]; + num++; + ref QuestSequence reference14 = ref span20[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { AethernetShortcut = new AethernetShortcut { @@ -149828,7 +180416,8 @@ public static class AssemblyQuestLoader }; obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference15 = ref span7[2]; + num++; + ref QuestSequence reference15 = ref span20[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 @@ -149836,18 +180425,23 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1012395u, new Vector3(-154.10089f, 4f, -15.4574585f), 133); + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.Interact, 1012395u, new Vector3(-154.10089f, 4f, -15.4574585f), 133); obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference16 = ref span7[3]; + num++; + ref QuestSequence reference16 = ref span20[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018020u, new Vector3(34.1344f, 20.495003f, -655.57336f), 156) + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018020u, new Vector3(34.1344f, 20.495003f, -655.57336f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -149860,13 +180454,16 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "JerryWester"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "JerryWester"; questRoot5.Author = list25; - num = 9; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span8 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference17 = ref span8[0]; + index = 9; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference17 = ref span26[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 @@ -149874,7 +180471,9 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018020u, new Vector3(34.1344f, 20.495003f, -655.57336f), 156) + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018020u, new Vector3(34.1344f, 20.495003f, -655.57336f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -149887,21 +180486,25 @@ public static class AssemblyQuestLoader }; obj17.Steps = list27; reference17 = obj17; - ref QuestSequence reference18 = ref span8[1]; + num++; + ref QuestSequence reference18 = ref span26[num]; QuestSequence obj18 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; obj18.Steps = list28; reference18 = obj18; - ref QuestSequence reference19 = ref span8[2]; + num++; + ref QuestSequence reference19 = ref span26[num]; QuestSequence obj19 = new QuestSequence { Sequence = 2 @@ -149909,27 +180512,33 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1018022u, new Vector3(-1.3580933f, 0f, -4.501404f), 351) + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.Interact, 1018022u, new Vector3(-1.3580933f, 0f, -4.501404f), 351) { StopDistance = 7f }; obj19.Steps = list29; reference19 = obj19; - ref QuestSequence reference20 = ref span8[3]; + num++; + ref QuestSequence reference20 = ref span26[num]; QuestSequence obj20 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1018023u, new Vector3(-199.35913f, 1.23591f, 283.03955f), 152) + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span30[num2] = new QuestStep(EInteractionType.Interact, 1018023u, new Vector3(-199.35913f, 1.23591f, 283.03955f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj20.Steps = list30; reference20 = obj20; - ref QuestSequence reference21 = ref span8[4]; + num++; + ref QuestSequence reference21 = ref span26[num]; QuestSequence obj21 = new QuestSequence { Sequence = 4 @@ -149937,27 +180546,33 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1018024u, new Vector3(19.08899f, 6.192316f, 397.93994f), 152) + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span31[index2] = new QuestStep(EInteractionType.Interact, 1018024u, new Vector3(19.08899f, 6.192316f, 397.93994f), 152) { Fly = true }; obj21.Steps = list31; reference21 = obj21; - ref QuestSequence reference22 = ref span8[5]; + num++; + ref QuestSequence reference22 = ref span26[num]; QuestSequence obj22 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1018025u, new Vector3(44.510498f, 7.6110673f, 488.2428f), 152) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.Interact, 1018025u, new Vector3(44.510498f, 7.6110673f, 488.2428f), 152) { Fly = true }; obj22.Steps = list32; reference22 = obj22; - ref QuestSequence reference23 = ref span8[6]; + num++; + ref QuestSequence reference23 = ref span26[num]; QuestSequence obj23 = new QuestSequence { Sequence = 6 @@ -149965,7 +180580,9 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Duty, null, null, 152) + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.Duty, null, null, 152) { DutyOptions = new DutyOptions { @@ -149975,19 +180592,23 @@ public static class AssemblyQuestLoader }; obj23.Steps = list33; reference23 = obj23; - span8[7] = new QuestSequence + num++; + span26[num] = new QuestSequence { Sequence = 7 }; - ref QuestSequence reference24 = ref span8[8]; + num++; + ref QuestSequence reference24 = ref span26[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018026u, new Vector3(39.597046f, 6.8267684f, 489.86023f), 152); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018026u, new Vector3(39.597046f, 6.8267684f, 489.86023f), 152); obj24.Steps = list34; reference24 = obj24; questRoot5.QuestSequence = list26; @@ -149997,13 +180618,16 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "JerryWester"; + Span span35 = CollectionsMarshal.AsSpan(list35); + index = 0; + span35[index] = "JerryWester"; questRoot6.Author = list35; - num = 2; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span9 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference25 = ref span9[0]; + index = 2; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + Span span36 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference25 = ref span36[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -150011,27 +180635,32 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018029u, new Vector3(36.057007f, 7.1708746f, 485.43518f), 152) + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018029u, new Vector3(36.057007f, 7.1708746f, 485.43518f), 152) { StopDistance = 5f }; obj25.Steps = list37; reference25 = obj25; - ref QuestSequence reference26 = ref span9[1]; + num++; + ref QuestSequence reference26 = ref span36[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span10 = CollectionsMarshal.AsSpan(list38); - span10[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 2; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1018033u, new Vector3(-3.7080078f, 0.01804012f, -6.881897f), 351); + num2++; + span38[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018033u, new Vector3(-3.7080078f, 0.01804012f, -6.881897f), 351); obj26.Steps = list38; reference26 = obj26; questRoot6.QuestSequence = list36; @@ -150041,13 +180670,16 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "JerryWester"; + Span span39 = CollectionsMarshal.AsSpan(list39); + index = 0; + span39[index] = "JerryWester"; questRoot7.Author = list39; - num = 3; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span11 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference27 = ref span11[0]; + index = 3; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + Span span40 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference27 = ref span40[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -150055,21 +180687,26 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017749u, new Vector3(-3.7995605f, 0.01804012f, -7.7669067f), 351) + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017749u, new Vector3(-3.7995605f, 0.01804012f, -7.7669067f), 351) { StopDistance = 5f }; obj27.Steps = list41; reference27 = obj27; - ref QuestSequence reference28 = ref span11[1]; + num++; + ref QuestSequence reference28 = ref span40[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -150080,7 +180717,8 @@ public static class AssemblyQuestLoader }; obj28.Steps = list42; reference28 = obj28; - ref QuestSequence reference29 = ref span11[2]; + num++; + ref QuestSequence reference29 = ref span40[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -150088,7 +180726,9 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012395u, new Vector3(-154.10089f, 4f, -15.4574585f), 133); + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012395u, new Vector3(-154.10089f, 4f, -15.4574585f), 133); obj29.Steps = list43; reference29 = obj29; questRoot7.QuestSequence = list40; @@ -150098,24 +180738,30 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "JerryWester"; + Span span44 = CollectionsMarshal.AsSpan(list44); + index = 0; + span44[index] = "JerryWester"; questRoot8.Author = list44; - num = 5; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span12 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference30 = ref span12[0]; + index = 5; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + Span span45 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference30 = ref span45[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012395u, new Vector3(-154.10089f, 4f, -15.4574585f), 133); + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012395u, new Vector3(-154.10089f, 4f, -15.4574585f), 133); obj30.Steps = list46; reference30 = obj30; - ref QuestSequence reference31 = ref span12[1]; + num++; + ref QuestSequence reference31 = ref span45[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -150123,7 +180769,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1018046u, new Vector3(40.604248f, -19.000013f, 92.36279f), 132) + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.Interact, 1018046u, new Vector3(40.604248f, -19.000013f, 92.36279f), 132) { AethernetShortcut = new AethernetShortcut { @@ -150133,15 +180781,18 @@ public static class AssemblyQuestLoader }; obj31.Steps = list47; reference31 = obj31; - ref QuestSequence reference32 = ref span12[2]; + num++; + ref QuestSequence reference32 = ref span45[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - ref QuestStep reference33 = ref CollectionsMarshal.AsSpan(list48)[0]; + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + ref QuestStep reference33 = ref span48[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1000107u, new Vector3(27.145752f, -19.000002f, 106.67578f), 132) { StopDistance = 7f @@ -150149,7 +180800,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list49 = new List(num3); CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = new DialogueChoice + Span span49 = CollectionsMarshal.AsSpan(list49); + int index3 = 0; + span49[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNG102_02357_Q1_100_035") @@ -150158,7 +180811,8 @@ public static class AssemblyQuestLoader reference33 = obj33; obj32.Steps = list48; reference32 = obj32; - ref QuestSequence reference34 = ref span12[3]; + num++; + ref QuestSequence reference34 = ref span45[num]; QuestSequence obj34 = new QuestSequence { Sequence = 3 @@ -150166,30 +180820,36 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1013180u, new Vector3(125.90222f, -15.185763f, -431.7846f), 156) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.Interact, 1013180u, new Vector3(125.90222f, -15.185763f, -431.7846f), 156) { StopDistance = 7f }; obj34.Steps = list50; reference34 = obj34; - ref QuestSequence reference35 = ref span12[4]; + num++; + ref QuestSequence reference35 = ref span45[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - Span span13 = CollectionsMarshal.AsSpan(list51); - span13[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.352629f, 21.285944f, -652.1081f), 156) + index2 = 3; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.352629f, 21.285944f, -652.1081f), 156) { Fly = true }; - span13[1] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + num2++; + span51[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - span13[2] = new QuestStep(EInteractionType.CompleteQuest, 1018041u, new Vector3(13.199036f, 0f, -8.590881f), 351); + num2++; + span51[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018041u, new Vector3(13.199036f, 0f, -8.590881f), 351); obj35.Steps = list51; reference35 = obj35; questRoot8.QuestSequence = list45; @@ -150199,13 +180859,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "JerryWester"; + Span span52 = CollectionsMarshal.AsSpan(list52); + index = 0; + span52[index] = "JerryWester"; questRoot9.Author = list52; - num = 5; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span14 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference36 = ref span14[0]; + index = 5; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + Span span53 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference36 = ref span53[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -150213,45 +180876,54 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018043u, new Vector3(-1.1444702f, 0f, -3.2807007f), 351) + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018043u, new Vector3(-1.1444702f, 0f, -3.2807007f), 351) { StopDistance = 5f }; obj36.Steps = list54; reference36 = obj36; - ref QuestSequence reference37 = ref span14[1]; + num++; + ref QuestSequence reference37 = ref span53[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span15 = CollectionsMarshal.AsSpan(list55); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.352629f, 21.285944f, -652.1081f), 156) + index2 = 2; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.352629f, 21.285944f, -652.1081f), 156) { Mount = true }; - ref QuestStep reference38 = ref span15[1]; + num2++; + ref QuestStep reference38 = ref span55[num2]; QuestStep obj38 = new QuestStep(EInteractionType.SinglePlayerDuty, 1018044u, new Vector3(127.73328f, -15.353702f, -421.1338f), 156) { Fly = true }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 1; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = "(phase 2) AI doesn't use any of the Red Baron's attacks, just moves with it and eventually dies (after a few minutes)"; + index3 = 1; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + Span span56 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span56[num3] = "(phase 2) AI doesn't use any of the Red Baron's attacks, just moves with it and eventually dies (after a few minutes)"; singlePlayerDutyOptions.Notes = list56; obj38.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference38 = obj38; obj37.Steps = list55; reference37 = obj37; - span14[2] = new QuestSequence + num++; + span53[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference39 = ref span14[3]; + num++; + ref QuestSequence reference39 = ref span53[num]; QuestSequence obj39 = new QuestSequence { Sequence = 3 @@ -150259,12 +180931,16 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list57)[0]; + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + ref QuestStep reference40 = ref span57[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1018045u, new Vector3(2.1514893f, 0.93368113f, 12.741211f), 636); num3 = 1; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - CollectionsMarshal.AsSpan(list58)[0] = new DialogueChoice + Span span58 = CollectionsMarshal.AsSpan(list58); + index3 = 0; + span58[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNG103_02358_Q2_000_000") @@ -150273,15 +180949,18 @@ public static class AssemblyQuestLoader reference40 = questStep; obj39.Steps = list57; reference39 = obj39; - ref QuestSequence reference41 = ref span14[4]; + num++; + ref QuestSequence reference41 = ref span53[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018046u, new Vector3(40.604248f, -19.000013f, 92.36279f), 132); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018046u, new Vector3(40.604248f, -19.000013f, 92.36279f), 132); obj40.Steps = list59; reference41 = obj40; questRoot9.QuestSequence = list53; @@ -150291,13 +180970,16 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "JerryWester"; + Span span60 = CollectionsMarshal.AsSpan(list60); + index = 0; + span60[index] = "JerryWester"; questRoot10.Author = list60; - num = 5; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span16 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference42 = ref span16[0]; + index = 5; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference42 = ref span61[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -150305,22 +180987,26 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018048u, new Vector3(41.82495f, -19.000027f, 93.30884f), 132) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018048u, new Vector3(41.82495f, -19.000027f, 93.30884f), 132) { StopDistance = 5f }; obj41.Steps = list62; reference42 = obj41; - ref QuestSequence reference43 = ref span16[1]; + num++; + ref QuestSequence reference43 = ref span61[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span17 = CollectionsMarshal.AsSpan(list63); - span17[0] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + index2 = 2; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { TargetTerritoryId = (ushort)205, AethernetShortcut = new AethernetShortcut @@ -150329,10 +181015,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - span17[1] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + num2++; + span63[num2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj42.Steps = list63; reference43 = obj42; - ref QuestSequence reference44 = ref span16[2]; + num++; + ref QuestSequence reference44 = ref span61[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -150340,28 +181028,34 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1018430u, new Vector3(2.8533936f, -1.9294398f, 4.6845093f), 205) + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.Interact, 1018430u, new Vector3(2.8533936f, -1.9294398f, 4.6845093f), 205) { StopDistance = 5f }; obj43.Steps = list64; reference44 = obj43; - ref QuestSequence reference45 = ref span16[3]; + num++; + ref QuestSequence reference45 = ref span61[num]; QuestSequence obj44 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1018329u, new Vector3(16.861145f, 5.895894f, 393.75903f), 152) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span65[num2] = new QuestStep(EInteractionType.Interact, 1018329u, new Vector3(16.861145f, 5.895894f, 393.75903f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj44.Steps = list65; reference45 = obj44; - ref QuestSequence reference46 = ref span16[4]; + num++; + ref QuestSequence reference46 = ref span61[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -150369,7 +181063,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018331u, new Vector3(-2.6398926f, 0f, -7.400635f), 351); + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span66[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018331u, new Vector3(-2.6398926f, 0f, -7.400635f), 351); obj45.Steps = list66; reference46 = obj45; questRoot10.QuestSequence = list61; @@ -150379,21 +181075,26 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "pot0to"; + Span span67 = CollectionsMarshal.AsSpan(list67); + index = 0; + span67[index] = "pot0to"; questRoot11.Author = list67; - num = 5; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span18 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference47 = ref span18[0]; + index = 5; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + Span span68 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference47 = ref span68[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list69)[0]; + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + ref QuestStep reference48 = ref span69[num2]; QuestStep obj47 = new QuestStep(EInteractionType.AcceptQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -150405,19 +181106,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 2; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - Span span19 = CollectionsMarshal.AsSpan(list70); - span19[0] = 418; - span19[1] = 419; + index3 = 2; + List list70 = new List(index3); + CollectionsMarshal.SetCount(list70, index3); + Span span70 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span70[num3] = 418; + num3++; + span70[num3] = 419; skipAetheryteCondition.InTerritory = list70; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj47.SkipConditions = skipConditions; reference48 = obj47; obj46.Steps = list69; reference47 = obj46; - ref QuestSequence reference49 = ref span18[1]; + num++; + ref QuestSequence reference49 = ref span68[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 @@ -150425,27 +181129,33 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427 }; obj48.Steps = list71; reference49 = obj48; - ref QuestSequence reference50 = ref span18[2]; + num++; + ref QuestSequence reference50 = ref span68[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Emote, 1017902u, new Vector3(-7.461731f, 0.024999565f, -6.9733887f), 427) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.Emote, 1017902u, new Vector3(-7.461731f, 0.024999565f, -6.9733887f), 427) { Emote = EEmote.Soothe }; obj49.Steps = list72; reference50 = obj49; - ref QuestSequence reference51 = ref span18[3]; + num++; + ref QuestSequence reference51 = ref span68[num]; QuestSequence obj50 = new QuestSequence { Sequence = 3 @@ -150453,21 +181163,26 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Emote, 1017904u, new Vector3(-6.4240723f, 0.024999565f, -5.56958f), 427) + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.Emote, 1017904u, new Vector3(-6.4240723f, 0.024999565f, -5.56958f), 427) { Emote = EEmote.Rally }; obj50.Steps = list73; reference51 = obj50; - ref QuestSequence reference52 = ref span18[4]; + num++; + ref QuestSequence reference52 = ref span68[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017897u, new Vector3(-5.0202637f, 0.07901219f, -8.6519165f), 427) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017897u, new Vector3(-5.0202637f, 0.07901219f, -8.6519165f), 427) { NextQuestId = new QuestId(2362) }; @@ -150480,13 +181195,16 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "pot0to"; + Span span75 = CollectionsMarshal.AsSpan(list75); + index = 0; + span75[index] = "pot0to"; questRoot12.Author = list75; - num = 4; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span20 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference53 = ref span20[0]; + index = 4; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + Span span76 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference53 = ref span76[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -150494,8 +181212,9 @@ public static class AssemblyQuestLoader num2 = 2; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span21 = CollectionsMarshal.AsSpan(list77); - ref QuestStep reference54 = ref span21[0]; + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + ref QuestStep reference54 = ref span77[index2]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, @@ -150511,40 +181230,49 @@ public static class AssemblyQuestLoader num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = 427; + Span span78 = CollectionsMarshal.AsSpan(list78); + index3 = 0; + span78[index3] = 427; skipStepConditions.InTerritory = list78; skipConditions2.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 2; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - Span span22 = CollectionsMarshal.AsSpan(list79); - span22[0] = 419; - span22[1] = 427; + index3 = 2; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + Span span79 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span79[num3] = 419; + num3++; + span79[num3] = 427; skipAetheryteCondition2.InTerritory = list79; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; obj53.SkipConditions = skipConditions2; reference54 = obj53; - span21[1] = new QuestStep(EInteractionType.AcceptQuest, 1017897u, new Vector3(-5.0202637f, 0.07901219f, -8.6519165f), 427); + index2++; + span77[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017897u, new Vector3(-5.0202637f, 0.07901219f, -8.6519165f), 427); obj52.Steps = list77; reference53 = obj52; - ref QuestSequence reference55 = ref span20[1]; + num++; + ref QuestSequence reference55 = ref span76[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span23 = CollectionsMarshal.AsSpan(list80); - span23[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) + index2 = 2; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) { TargetTerritoryId = (ushort)419 }; - span23[1] = new QuestStep(EInteractionType.Interact, 1017909u, new Vector3(-120.22589f, 14.55313f, -162.61542f), 419); + num2++; + span80[num2] = new QuestStep(EInteractionType.Interact, 1017909u, new Vector3(-120.22589f, 14.55313f, -162.61542f), 419); obj54.Steps = list80; reference55 = obj54; - ref QuestSequence reference56 = ref span20[2]; + num++; + ref QuestSequence reference56 = ref span76[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -150552,18 +181280,23 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1017912u, new Vector3(-35.690857f, 15.965062f, -68.2536f), 419); + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.Interact, 1017912u, new Vector3(-35.690857f, 15.965062f, -68.2536f), 419); obj55.Steps = list81; reference56 = obj55; - ref QuestSequence reference57 = ref span20[3]; + num++; + ref QuestSequence reference57 = ref span76[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017912u, new Vector3(-35.690857f, 15.965062f, -68.2536f), 419) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017912u, new Vector3(-35.690857f, 15.965062f, -68.2536f), 419) { Emote = EEmote.Soothe, NextQuestId = new QuestId(2363) @@ -150577,13 +181310,16 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "pot0to"; + Span span83 = CollectionsMarshal.AsSpan(list83); + index = 0; + span83[index] = "pot0to"; questRoot13.Author = list83; - num = 4; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span24 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference58 = ref span24[0]; + index = 4; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + Span span84 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference58 = ref span84[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -150591,7 +181327,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list85)[0]; + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + ref QuestStep reference59 = ref span85[index2]; QuestStep obj58 = new QuestStep(EInteractionType.AcceptQuest, 1017914u, new Vector3(-38.529114f, 15.965062f, -70.45099f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -150606,14 +181344,18 @@ public static class AssemblyQuestLoader num3 = 1; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = 419; + Span span86 = CollectionsMarshal.AsSpan(list86); + index3 = 0; + span86[index3] = 419; skipAetheryteCondition3.InTerritory = list86; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition3; obj58.SkipConditions = skipConditions3; - num3 = 1; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = new DialogueChoice + index3 = 1; + List list87 = new List(index3); + CollectionsMarshal.SetCount(list87, index3); + Span span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHREND303_02363_Q1_000_000"), @@ -150623,27 +181365,35 @@ public static class AssemblyQuestLoader reference59 = obj58; obj57.Steps = list85; reference58 = obj57; - ref QuestSequence reference60 = ref span24[1]; + num++; + ref QuestSequence reference60 = ref span84[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span25 = CollectionsMarshal.AsSpan(list88); - span25[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + index2 = 6; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427 }; - span25[1] = new QuestStep(EInteractionType.Interact, 2007426u, new Vector3(11.856201f, 0.19836426f, 10.421875f), 427); - span25[2] = new QuestStep(EInteractionType.Interact, 1017919u, new Vector3(-9.323303f, 0.20000005f, -10.238831f), 427); - span25[3] = new QuestStep(EInteractionType.Interact, 1017920u, new Vector3(4.714966f, 0.22499956f, -5.9663696f), 427); - span25[4] = new QuestStep(EInteractionType.Interact, 1017918u, new Vector3(10.391357f, 0.20000005f, -0.56463623f), 427); - span25[5] = new QuestStep(EInteractionType.Interact, 2007425u, new Vector3(-8.346741f, 0.015197754f, 0.8086548f), 427); + num2++; + span88[num2] = new QuestStep(EInteractionType.Interact, 2007426u, new Vector3(11.856201f, 0.19836426f, 10.421875f), 427); + num2++; + span88[num2] = new QuestStep(EInteractionType.Interact, 1017919u, new Vector3(-9.323303f, 0.20000005f, -10.238831f), 427); + num2++; + span88[num2] = new QuestStep(EInteractionType.Interact, 1017920u, new Vector3(4.714966f, 0.22499956f, -5.9663696f), 427); + num2++; + span88[num2] = new QuestStep(EInteractionType.Interact, 1017918u, new Vector3(10.391357f, 0.20000005f, -0.56463623f), 427); + num2++; + span88[num2] = new QuestStep(EInteractionType.Interact, 2007425u, new Vector3(-8.346741f, 0.015197754f, 0.8086548f), 427); obj59.Steps = list88; reference60 = obj59; - ref QuestSequence reference61 = ref span24[2]; + num++; + ref QuestSequence reference61 = ref span84[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -150651,23 +181401,28 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1017916u, new Vector3(-2.609314f, 0.024999565f, 6.1798096f), 427); + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.Interact, 1017916u, new Vector3(-2.609314f, 0.024999565f, 6.1798096f), 427); obj60.Steps = list89; reference61 = obj60; - ref QuestSequence reference62 = ref span24[3]; + num++; + ref QuestSequence reference62 = ref span84[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span26 = CollectionsMarshal.AsSpan(list90); - span26[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) + index2 = 2; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.0202637f, 1.1443481f, 11.856201f), 427) { TargetTerritoryId = (ushort)419 }; - span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1017923u, new Vector3(-45.090515f, 15.8744135f, -91.32526f), 419) + num2++; + span90[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017923u, new Vector3(-45.090515f, 15.8744135f, -91.32526f), 419) { NextQuestId = new QuestId(2364) }; @@ -150680,13 +181435,16 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "pot0to"; + Span span91 = CollectionsMarshal.AsSpan(list91); + index = 0; + span91[index] = "pot0to"; questRoot14.Author = list91; - num = 4; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span27 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference63 = ref span27[0]; + index = 4; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + Span span92 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference63 = ref span92[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -150694,7 +181452,9 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list93)[0]; + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + ref QuestStep reference64 = ref span93[index2]; QuestStep obj63 = new QuestStep(EInteractionType.AcceptQuest, 1017926u, new Vector3(-33.157898f, 15.965062f, -67.826416f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -150709,21 +181469,25 @@ public static class AssemblyQuestLoader num3 = 1; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = 419; + Span span94 = CollectionsMarshal.AsSpan(list94); + index3 = 0; + span94[index3] = 419; skipAetheryteCondition4.InTerritory = list94; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition4; obj63.SkipConditions = skipConditions4; - num3 = 2; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - Span span28 = CollectionsMarshal.AsSpan(list95); - span28[0] = new DialogueChoice + index3 = 2; + List list95 = new List(index3); + CollectionsMarshal.SetCount(list95, index3); + Span span95 = CollectionsMarshal.AsSpan(list95); + num3 = 0; + span95[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHREND304_02364_Q1_100_000"), Answer = new ExcelRef("TEXT_CHREND304_02364_A1_100_001") }; - span28[1] = new DialogueChoice + num3++; + span95[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHREND304_02364_Q1_000_000"), @@ -150733,15 +181497,18 @@ public static class AssemblyQuestLoader reference64 = obj63; obj62.Steps = list93; reference63 = obj62; - ref QuestSequence reference65 = ref span27[1]; + num++; + ref QuestSequence reference65 = ref span92[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1017927u, new Vector3(171.92334f, -1.4414048f, -92.729065f), 419) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.Interact, 1017927u, new Vector3(171.92334f, -1.4414048f, -92.729065f), 419) { AethernetShortcut = new AethernetShortcut { @@ -150751,7 +181518,8 @@ public static class AssemblyQuestLoader }; obj64.Steps = list96; reference65 = obj64; - ref QuestSequence reference66 = ref span27[2]; + num++; + ref QuestSequence reference66 = ref span92[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -150759,7 +181527,9 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1015977u, new Vector3(-177.35565f, 15.06314f, -174.36487f), 419) + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.Interact, 1015977u, new Vector3(-177.35565f, 15.06314f, -174.36487f), 419) { AethernetShortcut = new AethernetShortcut { @@ -150769,15 +181539,18 @@ public static class AssemblyQuestLoader }; obj65.Steps = list97; reference66 = obj65; - ref QuestSequence reference67 = ref span27[3]; + num++; + ref QuestSequence reference67 = ref span92[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017929u, new Vector3(-172.22864f, 15.063141f, -170.55011f), 419); + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017929u, new Vector3(-172.22864f, 15.063141f, -170.55011f), 419); obj66.Steps = list98; reference67 = obj66; questRoot14.QuestSequence = list92; @@ -150787,13 +181560,16 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; + Span span99 = CollectionsMarshal.AsSpan(list99); + index = 0; + span99[index] = "liza"; questRoot15.Author = list99; - num = 7; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span29 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference68 = ref span29[0]; + index = 7; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + Span span100 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference68 = ref span100[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -150801,18 +181577,23 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418); + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418); obj67.Steps = list101; reference68 = obj67; - ref QuestSequence reference69 = ref span29[1]; + num++; + ref QuestSequence reference69 = ref span100[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1017959u, new Vector3(39.505493f, 16.49931f, -29.922974f), 419) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.Interact, 1017959u, new Vector3(39.505493f, 16.49931f, -29.922974f), 419) { AethernetShortcut = new AethernetShortcut { @@ -150822,7 +181603,8 @@ public static class AssemblyQuestLoader }; obj68.Steps = list102; reference69 = obj68; - ref QuestSequence reference70 = ref span29[2]; + num++; + ref QuestSequence reference70 = ref span100[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -150830,63 +181612,88 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span30 = CollectionsMarshal.AsSpan(list103); - ref QuestStep reference71 = ref span30[0]; + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + ref QuestStep reference71 = ref span103[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1017962u, new Vector3(4.837097f, 11.964993f, 31.296265f), 419); num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span31 = CollectionsMarshal.AsSpan(list104); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span104 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list104; reference71 = questStep2; - ref QuestStep reference72 = ref span30[1]; + index2++; + ref QuestStep reference72 = ref span103[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1017963u, new Vector3(21.683044f, 11.965154f, 47.68445f), 419); - num3 = 6; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span32 = CollectionsMarshal.AsSpan(list105); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list105 = new List(index3); + CollectionsMarshal.SetCount(list105, index3); + Span span105 = CollectionsMarshal.AsSpan(list105); + num3 = 0; + span105[num3] = null; + num3++; + span105[num3] = null; + num3++; + span105[num3] = null; + num3++; + span105[num3] = null; + num3++; + span105[num3] = null; + num3++; + span105[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list105; reference72 = questStep3; - ref QuestStep reference73 = ref span30[2]; + index2++; + ref QuestStep reference73 = ref span103[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1017964u, new Vector3(-40.634766f, 11.965008f, 32.028687f), 419); num3 = 6; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - Span span33 = CollectionsMarshal.AsSpan(list106); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span106 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list106; reference73 = questStep4; obj69.Steps = list103; reference70 = obj69; - ref QuestSequence reference74 = ref span29[3]; + num++; + ref QuestSequence reference74 = ref span100[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1017968u, new Vector3(-43.778137f, 11.965093f, 47.348755f), 419); + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.Interact, 1017968u, new Vector3(-43.778137f, 11.965093f, 47.348755f), 419); obj70.Steps = list107; reference74 = obj70; - ref QuestSequence reference75 = ref span29[4]; + num++; + ref QuestSequence reference75 = ref span100[num]; QuestSequence obj71 = new QuestSequence { Sequence = 4 @@ -150894,36 +181701,47 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1017970u, new Vector3(132.43298f, 205.99544f, 80.9491f), 478) + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.Interact, 1017970u, new Vector3(132.43298f, 205.99544f, 80.9491f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj71.Steps = list108; reference75 = obj71; - ref QuestSequence reference76 = ref span29[5]; + num++; + ref QuestSequence reference76 = ref span100[num]; QuestSequence obj72 = new QuestSequence { Sequence = 5 }; - num2 = 4; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span34 = CollectionsMarshal.AsSpan(list109); - ref QuestStep reference77 = ref span34[0]; + index2 = 4; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + ref QuestStep reference77 = ref span109[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1012099u, new Vector3(50.278442f, 206.04715f, 57.75537f), 478); - num3 = 6; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - Span span35 = CollectionsMarshal.AsSpan(list110); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list110 = new List(index3); + CollectionsMarshal.SetCount(list110, index3); + Span span110 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span110[num3] = null; + num3++; + span110[num3] = null; + num3++; + span110[num3] = null; + num3++; + span110[num3] = null; + num3++; + span110[num3] = null; + num3++; + span110[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list110; reference77 = questStep5; - ref QuestStep reference78 = ref span34[1]; + num2++; + ref QuestStep reference78 = ref span109[num2]; QuestStep obj73 = new QuestStep(EInteractionType.Interact, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478) { StopDistance = 5f @@ -150931,34 +181749,48 @@ public static class AssemblyQuestLoader num3 = 6; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - Span span36 = CollectionsMarshal.AsSpan(list111); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span111 = CollectionsMarshal.AsSpan(list111); + index3 = 0; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj73.CompletionQuestVariablesFlags = list111; reference78 = obj73; - ref QuestStep reference79 = ref span34[2]; + num2++; + ref QuestStep reference79 = ref span109[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-2.76668f, 205.81511f, 24.614613f), 478); SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span37 = CollectionsMarshal.AsSpan(list112); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + Span span112 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list112; skipConditions5.StepIf = skipStepConditions2; questStep6.SkipConditions = skipConditions5; reference79 = questStep6; - ref QuestStep reference80 = ref span34[3]; + num2++; + ref QuestStep reference80 = ref span109[num2]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 1017977u, new Vector3(-0.7172241f, 206.49947f, 20.09607f), 478) { StopDistance = 7f @@ -150966,18 +181798,25 @@ public static class AssemblyQuestLoader num3 = 6; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - Span span38 = CollectionsMarshal.AsSpan(list113); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span113 = CollectionsMarshal.AsSpan(list113); + index3 = 0; + span113[index3] = null; + index3++; + span113[index3] = null; + index3++; + span113[index3] = null; + index3++; + span113[index3] = null; + index3++; + span113[index3] = null; + index3++; + span113[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj74.CompletionQuestVariablesFlags = list113; reference80 = obj74; obj72.Steps = list109; reference76 = obj72; - ref QuestSequence reference81 = ref span29[6]; + num++; + ref QuestSequence reference81 = ref span100[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -150985,7 +181824,9 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017981u, new Vector3(10.208252f, 206.77286f, 62.394165f), 478) + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017981u, new Vector3(10.208252f, 206.77286f, 62.394165f), 478) { NextQuestId = new QuestId(2370) }; @@ -150998,27 +181839,33 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "liza"; + Span span115 = CollectionsMarshal.AsSpan(list115); + index = 0; + span115[index] = "liza"; questRoot16.Author = list115; - num = 13; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span39 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference82 = ref span39[0]; + index = 13; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + Span span116 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference82 = ref span116[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017983u, new Vector3(11.520508f, 207.49994f, 85.34363f), 478) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.AcceptQuest, 1017983u, new Vector3(11.520508f, 207.49994f, 85.34363f), 478) { StopDistance = 7f }; obj76.Steps = list117; reference82 = obj76; - ref QuestSequence reference83 = ref span39[1]; + num++; + ref QuestSequence reference83 = ref span116[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -151026,7 +181873,9 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1017988u, new Vector3(-544.1825f, 144.84157f, -346.7918f), 399) + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span118[index2] = new QuestStep(EInteractionType.Interact, 1017988u, new Vector3(-544.1825f, 144.84157f, -346.7918f), 399) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -151037,18 +181886,22 @@ public static class AssemblyQuestLoader }; obj77.Steps = list118; reference83 = obj77; - ref QuestSequence reference84 = ref span39[2]; + num++; + ref QuestSequence reference84 = ref span116[num]; QuestSequence obj78 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1017993u, new Vector3(-544.1825f, 144.84157f, -346.7918f), 399); + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span119[num2] = new QuestStep(EInteractionType.Interact, 1017993u, new Vector3(-544.1825f, 144.84157f, -346.7918f), 399); obj78.Steps = list119; reference84 = obj78; - ref QuestSequence reference85 = ref span39[3]; + num++; + ref QuestSequence reference85 = ref span116[num]; QuestSequence obj79 = new QuestSequence { Sequence = 3 @@ -151056,27 +181909,33 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1017997u, new Vector3(-595.48334f, 147.9601f, -37.43042f), 399) + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.Interact, 1017997u, new Vector3(-595.48334f, 147.9601f, -37.43042f), 399) { Fly = true }; obj79.Steps = list120; reference85 = obj79; - ref QuestSequence reference86 = ref span39[4]; + num++; + ref QuestSequence reference86 = ref span116[num]; QuestSequence obj80 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1018005u, new Vector3(-761.31836f, 149.64381f, 16.739136f), 399) + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span121[num2] = new QuestStep(EInteractionType.Interact, 1018005u, new Vector3(-761.31836f, 149.64381f, 16.739136f), 399) { Fly = true }; obj80.Steps = list121; reference86 = obj80; - ref QuestSequence reference87 = ref span39[5]; + num++; + ref QuestSequence reference87 = ref span116[num]; QuestSequence obj81 = new QuestSequence { Sequence = 5 @@ -151084,21 +181943,27 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1018005u, new Vector3(-761.31836f, 149.64381f, 16.739136f), 399); + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.Interact, 1018005u, new Vector3(-761.31836f, 149.64381f, 16.739136f), 399); obj81.Steps = list122; reference87 = obj81; - ref QuestSequence reference88 = ref span39[6]; + num++; + ref QuestSequence reference88 = ref span116[num]; QuestSequence obj82 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span123[num2] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); obj82.Steps = list123; reference88 = obj82; - ref QuestSequence reference89 = ref span39[7]; + num++; + ref QuestSequence reference89 = ref span116[num]; QuestSequence obj83 = new QuestSequence { Sequence = 7 @@ -151106,21 +181971,27 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); + Span span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span124[index2] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); obj83.Steps = list124; reference89 = obj83; - ref QuestSequence reference90 = ref span39[8]; + num++; + ref QuestSequence reference90 = ref span116[num]; QuestSequence obj84 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span125[num2] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); obj84.Steps = list125; reference90 = obj84; - ref QuestSequence reference91 = ref span39[9]; + num++; + ref QuestSequence reference91 = ref span116[num]; QuestSequence obj85 = new QuestSequence { Sequence = 9 @@ -151128,24 +181999,30 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span126[index2] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); obj85.Steps = list126; reference91 = obj85; - ref QuestSequence reference92 = ref span39[10]; + num++; + ref QuestSequence reference92 = ref span116[num]; QuestSequence obj86 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 1017997u, new Vector3(-595.48334f, 147.9601f, -37.43042f), 399) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.Interact, 1017997u, new Vector3(-595.48334f, 147.9601f, -37.43042f), 399) { Fly = true }; obj86.Steps = list127; reference92 = obj86; - ref QuestSequence reference93 = ref span39[11]; + num++; + ref QuestSequence reference93 = ref span116[num]; QuestSequence obj87 = new QuestSequence { Sequence = 11 @@ -151153,21 +182030,26 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1018007u, new Vector3(-602.5941f, 147.58852f, -39.230957f), 399) + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span128[index2] = new QuestStep(EInteractionType.Interact, 1018007u, new Vector3(-602.5941f, 147.58852f, -39.230957f), 399) { StopDistance = 7f }; obj87.Steps = list128; reference93 = obj87; - ref QuestSequence reference94 = ref span39[12]; + num++; + ref QuestSequence reference94 = ref span116[num]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span129[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, NextQuestId = new QuestId(2371) @@ -151181,13 +182063,16 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + Span span130 = CollectionsMarshal.AsSpan(list130); + index = 0; + span130[index] = "liza"; questRoot17.Author = list130; - num = 7; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span40 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference95 = ref span40[0]; + index = 7; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + Span span131 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference95 = ref span131[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -151195,24 +182080,30 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418); + Span span132 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span132[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418); obj89.Steps = list132; reference95 = obj89; - ref QuestSequence reference96 = ref span40[1]; + num++; + ref QuestSequence reference96 = ref span131[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1018448u, new Vector3(11.48999f, 206.58485f, 76.157715f), 478) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.Interact, 1018448u, new Vector3(11.48999f, 206.58485f, 76.157715f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj90.Steps = list133; reference96 = obj90; - ref QuestSequence reference97 = ref span40[2]; + num++; + ref QuestSequence reference97 = ref span131[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -151220,40 +182111,51 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1018451u, new Vector3(606.775f, -49.501324f, 40.482178f), 398) + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span134[index2] = new QuestStep(EInteractionType.Interact, 1018451u, new Vector3(606.775f, -49.501324f, 40.482178f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj91.Steps = list134; reference97 = obj91; - ref QuestSequence reference98 = ref span40[3]; + num++; + ref QuestSequence reference98 = ref span131[num]; QuestSequence obj92 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - Span span41 = CollectionsMarshal.AsSpan(list135); - ref QuestStep reference99 = ref span41[0]; + index2 = 4; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref QuestStep reference99 = ref span135[num2]; QuestStep obj93 = new QuestStep(EInteractionType.Interact, 1011920u, new Vector3(519.8595f, -51.071976f, 88.24292f), 398) { Fly = true }; - num3 = 6; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span42 = CollectionsMarshal.AsSpan(list136); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list136 = new List(index3); + CollectionsMarshal.SetCount(list136, index3); + Span span136 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj93.CompletionQuestVariablesFlags = list136; reference99 = obj93; - ref QuestStep reference100 = ref span41[1]; + num2++; + ref QuestStep reference100 = ref span135[num2]; QuestStep obj94 = new QuestStep(EInteractionType.Interact, 1011921u, new Vector3(453.36072f, -51.141403f, 58.579346f), 398) { Fly = true @@ -151261,37 +182163,51 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - Span span43 = CollectionsMarshal.AsSpan(list137); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span137 = CollectionsMarshal.AsSpan(list137); + index3 = 0; + span137[index3] = null; + index3++; + span137[index3] = null; + index3++; + span137[index3] = null; + index3++; + span137[index3] = null; + index3++; + span137[index3] = null; + index3++; + span137[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj94.CompletionQuestVariablesFlags = list137; reference100 = obj94; - ref QuestStep reference101 = ref span41[2]; + num2++; + ref QuestStep reference101 = ref span135[num2]; QuestStep obj95 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(493.00256f, -51.02798f, 16.711847f), 398) { Fly = true }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span44 = CollectionsMarshal.AsSpan(list138); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list138 = new List(index3); + CollectionsMarshal.SetCount(list138, index3); + Span span138 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list138; skipConditions6.StepIf = skipStepConditions3; obj95.SkipConditions = skipConditions6; reference101 = obj95; - ref QuestStep reference102 = ref span41[3]; + num2++; + ref QuestStep reference102 = ref span135[num2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1011919u, new Vector3(497.82556f, -49.790283f, 11.825684f), 398) { StopDistance = 7f @@ -151299,18 +182215,25 @@ public static class AssemblyQuestLoader num3 = 6; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - Span span45 = CollectionsMarshal.AsSpan(list139); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span139 = CollectionsMarshal.AsSpan(list139); + index3 = 0; + span139[index3] = null; + index3++; + span139[index3] = null; + index3++; + span139[index3] = null; + index3++; + span139[index3] = null; + index3++; + span139[index3] = null; + index3++; + span139[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list139; reference102 = obj96; obj92.Steps = list135; reference98 = obj92; - ref QuestSequence reference103 = ref span40[4]; + num++; + ref QuestSequence reference103 = ref span131[num]; QuestSequence obj97 = new QuestSequence { Sequence = 4 @@ -151318,28 +182241,34 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1018454u, new Vector3(549.18726f, -51.275715f, 6.1798096f), 398) + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.Interact, 1018454u, new Vector3(549.18726f, -51.275715f, 6.1798096f), 398) { Fly = true }; obj97.Steps = list140; reference103 = obj97; - ref QuestSequence reference104 = ref span40[5]; + num++; + ref QuestSequence reference104 = ref span131[num]; QuestSequence obj98 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 1018460u, new Vector3(-108.659546f, -35.633152f, -19.485779f), 398) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span141[num2] = new QuestStep(EInteractionType.Interact, 1018460u, new Vector3(-108.659546f, -35.633152f, -19.485779f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj98.Steps = list141; reference104 = obj98; - ref QuestSequence reference105 = ref span40[6]; + num++; + ref QuestSequence reference105 = ref span131[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -151347,7 +182276,9 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018460u, new Vector3(-108.659546f, -35.633152f, -19.485779f), 398) + Span span142 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span142[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018460u, new Vector3(-108.659546f, -35.633152f, -19.485779f), 398) { NextQuestId = new QuestId(2372) }; @@ -151360,24 +182291,30 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; + Span span143 = CollectionsMarshal.AsSpan(list143); + index = 0; + span143[index] = "liza"; questRoot18.Author = list143; - num = 10; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span46 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference106 = ref span46[0]; + index = 10; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + Span span144 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference106 = ref span144[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018463u, new Vector3(-108.62903f, -35.63229f, -19.455322f), 398); + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span145[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018463u, new Vector3(-108.62903f, -35.63229f, -19.455322f), 398); obj100.Steps = list145; reference106 = obj100; - ref QuestSequence reference107 = ref span46[1]; + num++; + ref QuestSequence reference107 = ref span144[num]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -151385,27 +182322,33 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400) + Span span146 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span146[index2] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj101.Steps = list146; reference107 = obj101; - ref QuestSequence reference108 = ref span46[2]; + num++; + ref QuestSequence reference108 = ref span144[num]; QuestSequence obj102 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.UseItem, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400) + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.UseItem, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400) { ItemId = 2002034u }; obj102.Steps = list147; reference108 = obj102; - ref QuestSequence reference109 = ref span46[3]; + num++; + ref QuestSequence reference109 = ref span144[num]; QuestSequence obj103 = new QuestSequence { Sequence = 3 @@ -151413,24 +182356,30 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span148[index2] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); obj103.Steps = list148; reference109 = obj103; - ref QuestSequence reference110 = ref span46[4]; + num++; + ref QuestSequence reference110 = ref span144[num]; QuestSequence obj104 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.UseItem, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.UseItem, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400) { ItemId = 2002047u }; obj104.Steps = list149; reference110 = obj104; - ref QuestSequence reference111 = ref span46[5]; + num++; + ref QuestSequence reference111 = ref span144[num]; QuestSequence obj105 = new QuestSequence { Sequence = 5 @@ -151438,21 +182387,27 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); obj105.Steps = list150; reference111 = obj105; - ref QuestSequence reference112 = ref span46[6]; + num++; + ref QuestSequence reference112 = ref span144[num]; QuestSequence obj106 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span151[num2] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); obj106.Steps = list151; reference112 = obj106; - ref QuestSequence reference113 = ref span46[7]; + num++; + ref QuestSequence reference113 = ref span144[num]; QuestSequence obj107 = new QuestSequence { Sequence = 7 @@ -151460,24 +182415,30 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span152[index2] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); obj107.Steps = list152; reference113 = obj107; - ref QuestSequence reference114 = ref span46[8]; + num++; + ref QuestSequence reference114 = ref span144[num]; QuestSequence obj108 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1018459u, new Vector3(-673.8232f, 73f, 288.4718f), 400) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span153[num2] = new QuestStep(EInteractionType.Interact, 1018459u, new Vector3(-673.8232f, 73f, 288.4718f), 400) { StopDistance = 5f }; obj108.Steps = list153; reference114 = obj108; - ref QuestSequence reference115 = ref span46[9]; + num++; + ref QuestSequence reference115 = ref span144[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -151485,7 +182446,9 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018456u, new Vector3(13.595764f, 206.59943f, 77.28699f), 478) + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018456u, new Vector3(13.595764f, 206.59943f, 77.28699f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, NextQuestId = new QuestId(3008) @@ -151499,27 +182462,33 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "liza"; + Span span155 = CollectionsMarshal.AsSpan(list155); + index = 0; + span155[index] = "liza"; questRoot19.Author = list155; - num = 5; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span47 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference116 = ref span47[0]; + index = 5; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + Span span156 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference116 = ref span156[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016130u, new Vector3(-815.7931f, -88.52015f, -835.2941f), 401) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span157[num2] = new QuestStep(EInteractionType.AcceptQuest, 1016130u, new Vector3(-815.7931f, -88.52015f, -835.2941f), 401) { StopDistance = 7f }; obj110.Steps = list157; reference116 = obj110; - ref QuestSequence reference117 = ref span47[1]; + num++; + ref QuestSequence reference117 = ref span156[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 @@ -151527,37 +182496,45 @@ public static class AssemblyQuestLoader num2 = 4; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span48 = CollectionsMarshal.AsSpan(list158); - span48[0] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) { TargetTerritoryId = (ushort)567 }; - span48[1] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) + index2++; + span158[index2] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) { TargetTerritoryId = (ushort)567 }; - span48[2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) + index2++; + span158[index2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) { TargetTerritoryId = (ushort)568 }; - span48[3] = new QuestStep(EInteractionType.Interact, 1018062u, new Vector3(0.015197754f, 0.8518491f, 3.9215698f), 568) + index2++; + span158[index2] = new QuestStep(EInteractionType.Interact, 1018062u, new Vector3(0.015197754f, 0.8518491f, 3.9215698f), 568) { StopDistance = 5f }; obj111.Steps = list158; reference117 = obj111; - ref QuestSequence reference118 = ref span47[2]; + num++; + ref QuestSequence reference118 = ref span156[num]; QuestSequence obj112 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1018068u, new Vector3(6.9733276f, -0.4050198f, 8.529724f), 567); + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.Interact, 1018068u, new Vector3(6.9733276f, -0.4050198f, 8.529724f), 567); obj112.Steps = list159; reference118 = obj112; - ref QuestSequence reference119 = ref span47[3]; + num++; + ref QuestSequence reference119 = ref span156[num]; QuestSequence obj113 = new QuestSequence { Sequence = 3 @@ -151565,7 +182542,9 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Duty, null, null, 567) + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.Duty, null, null, 567) { DutyOptions = new DutyOptions { @@ -151574,15 +182553,18 @@ public static class AssemblyQuestLoader }; obj113.Steps = list160; reference119 = obj113; - ref QuestSequence reference120 = ref span47[4]; + num++; + ref QuestSequence reference120 = ref span156[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018079u, new Vector3(47.40979f, -15.364383f, 41.885986f), 567) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + Span span161 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span161[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018079u, new Vector3(47.40979f, -15.364383f, 41.885986f), 567) { StopDistance = 7f, NextQuestId = new QuestId(2374) @@ -151596,13 +182578,16 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "liza"; + Span span162 = CollectionsMarshal.AsSpan(list162); + index = 0; + span162[index] = "liza"; questRoot20.Author = list162; - num = 3; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span49 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference121 = ref span49[0]; + index = 3; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + Span span163 = CollectionsMarshal.AsSpan(list163); + num = 0; + ref QuestSequence reference121 = ref span163[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -151610,33 +182595,40 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018079u, new Vector3(47.40979f, -15.364383f, 41.885986f), 567) + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span164[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018079u, new Vector3(47.40979f, -15.364383f, 41.885986f), 567) { StopDistance = 7f }; obj115.Steps = list164; reference121 = obj115; - ref QuestSequence reference122 = ref span49[1]; + num++; + ref QuestSequence reference122 = ref span163[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - Span span50 = CollectionsMarshal.AsSpan(list165); - span50[0] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.19791f, -14.73229f, 26.85483f), 567) + index2 = 3; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span165[num2] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.19791f, -14.73229f, 26.85483f), 567) { TargetTerritoryId = (ushort)567 }; - span50[1] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.34343f, 3.560182f, -18.78459f), 567) + num2++; + span165[num2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.34343f, 3.560182f, -18.78459f), 567) { TargetTerritoryId = (ushort)568 }; - span50[2] = new QuestStep(EInteractionType.Interact, 1018072u, new Vector3(-1.2664795f, 7.357448E-08f, -1.9684448f), 568); + num2++; + span165[num2] = new QuestStep(EInteractionType.Interact, 1018072u, new Vector3(-1.2664795f, 7.357448E-08f, -1.9684448f), 568); obj116.Steps = list165; reference122 = obj116; - ref QuestSequence reference123 = ref span49[2]; + num++; + ref QuestSequence reference123 = ref span163[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -151644,7 +182636,9 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018083u, new Vector3(45.212402f, -15.420993f, 25.77246f), 567) + Span span166 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span166[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018083u, new Vector3(45.212402f, -15.420993f, 25.77246f), 567) { StopDistance = 5f }; @@ -151657,21 +182651,26 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "plogon_enjoyer"; + Span span167 = CollectionsMarshal.AsSpan(list167); + index = 0; + span167[index] = "plogon_enjoyer"; questRoot21.Author = list167; - num = 11; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span51 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference124 = ref span51[0]; + index = 11; + List list168 = new List(index); + CollectionsMarshal.SetCount(list168, index); + Span span168 = CollectionsMarshal.AsSpan(list168); + num = 0; + ref QuestSequence reference124 = ref span168[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012132u, new Vector3(43.015137f, 206.04718f, 56.50415f), 478) + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + Span span169 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span169[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012132u, new Vector3(43.015137f, 206.04718f, 56.50415f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -151684,7 +182683,8 @@ public static class AssemblyQuestLoader }; obj118.Steps = list169; reference124 = obj118; - ref QuestSequence reference125 = ref span51[1]; + num++; + ref QuestSequence reference125 = ref span168[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -151692,29 +182692,35 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + Span span170 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span170[index2] = new QuestStep(EInteractionType.Interact, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj119.Steps = list170; reference125 = obj119; - ref QuestSequence reference126 = ref span51[2]; + num++; + ref QuestSequence reference126 = ref span168[num]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1018232u, new Vector3(236.01123f, -42.313934f, 596.3989f), 400) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + Span span171 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span171[num2] = new QuestStep(EInteractionType.Interact, 1018232u, new Vector3(236.01123f, -42.313934f, 596.3989f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj120.Steps = list171; reference126 = obj120; - ref QuestSequence reference127 = ref span51[3]; + num++; + ref QuestSequence reference127 = ref span168[num]; QuestSequence obj121 = new QuestSequence { Sequence = 3 @@ -151722,25 +182728,31 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.Interact, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj121.Steps = list172; reference127 = obj121; - ref QuestSequence reference128 = ref span51[4]; + num++; + ref QuestSequence reference128 = ref span168[num]; QuestSequence obj122 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj122.Steps = list173; reference128 = obj122; - ref QuestSequence reference129 = ref span51[5]; + num++; + ref QuestSequence reference129 = ref span168[num]; QuestSequence obj123 = new QuestSequence { Sequence = 5 @@ -151748,27 +182760,33 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1017173u, new Vector3(-363.82086f, 60.896187f, 306.38586f), 400) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.Interact, 1017173u, new Vector3(-363.82086f, 60.896187f, 306.38586f), 400) { Fly = true }; obj123.Steps = list174; reference129 = obj123; - ref QuestSequence reference130 = ref span51[6]; + num++; + ref QuestSequence reference130 = ref span168[num]; QuestSequence obj124 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Emote, 1017173u, new Vector3(-363.82086f, 60.896187f, 306.38586f), 400) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.Emote, 1017173u, new Vector3(-363.82086f, 60.896187f, 306.38586f), 400) { Emote = EEmote.Rally }; obj124.Steps = list175; reference130 = obj124; - ref QuestSequence reference131 = ref span51[7]; + num++; + ref QuestSequence reference131 = ref span168[num]; QuestSequence obj125 = new QuestSequence { Sequence = 7 @@ -151776,27 +182794,33 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) + Span span176 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span176[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { Fly = true }; obj125.Steps = list176; reference131 = obj125; - ref QuestSequence reference132 = ref span51[8]; + num++; + ref QuestSequence reference132 = ref span168[num]; QuestSequence obj126 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 2007517u, new Vector3(-332.6314f, 59.067627f, 298.39014f), 400) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.Interact, 2007517u, new Vector3(-332.6314f, 59.067627f, 298.39014f), 400) { Fly = true }; obj126.Steps = list177; reference132 = obj126; - ref QuestSequence reference133 = ref span51[9]; + num++; + ref QuestSequence reference133 = ref span168[num]; QuestSequence obj127 = new QuestSequence { Sequence = 9 @@ -151804,21 +182828,26 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1018234u, new Vector3(-635.85876f, 82.249985f, 142.96167f), 400) + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.Interact, 1018234u, new Vector3(-635.85876f, 82.249985f, 142.96167f), 400) { Fly = true }; obj127.Steps = list178; reference133 = obj127; - ref QuestSequence reference134 = ref span51[10]; + num++; + ref QuestSequence reference134 = ref span168[num]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, NextQuestId = new QuestId(2383) @@ -151832,13 +182861,16 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "plogon_enjoyer"; + Span span180 = CollectionsMarshal.AsSpan(list180); + index = 0; + span180[index] = "plogon_enjoyer"; questRoot22.Author = list180; - num = 7; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - Span span52 = CollectionsMarshal.AsSpan(list181); - ref QuestSequence reference135 = ref span52[0]; + index = 7; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + Span span181 = CollectionsMarshal.AsSpan(list181); + num = 0; + ref QuestSequence reference135 = ref span181[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 @@ -151846,7 +182878,9 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -151860,26 +182894,30 @@ public static class AssemblyQuestLoader }; obj129.Steps = list182; reference135 = obj129; - ref QuestSequence reference136 = ref span52[1]; + num++; + ref QuestSequence reference136 = ref span181[num]; QuestSequence obj130 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - Span span53 = CollectionsMarshal.AsSpan(list183); - span53[0] = new QuestStep(EInteractionType.Interact, 1018242u, new Vector3(-365.1942f, 60.616608f, 279.89612f), 400) + index2 = 2; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span183[num2] = new QuestStep(EInteractionType.Interact, 1018242u, new Vector3(-365.1942f, 60.616608f, 279.89612f), 400) { Fly = true }; - span53[1] = new QuestStep(EInteractionType.Interact, 1018241u, new Vector3(-421.40845f, 60.89619f, 272.755f), 400) + num2++; + span183[num2] = new QuestStep(EInteractionType.Interact, 1018241u, new Vector3(-421.40845f, 60.89619f, 272.755f), 400) { Fly = true }; obj130.Steps = list183; reference136 = obj130; - ref QuestSequence reference137 = ref span52[2]; + num++; + ref QuestSequence reference137 = ref span181[num]; QuestSequence obj131 = new QuestSequence { Sequence = 2 @@ -151887,28 +182925,34 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1018239u, new Vector3(-339.25385f, 59.038f, 317.03674f), 400) + Span span184 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span184[index2] = new QuestStep(EInteractionType.Interact, 1018239u, new Vector3(-339.25385f, 59.038f, 317.03674f), 400) { Fly = true }; obj131.Steps = list184; reference137 = obj131; - ref QuestSequence reference138 = ref span52[3]; + num++; + ref QuestSequence reference138 = ref span181[num]; QuestSequence obj132 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span185[num2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj132.Steps = list185; reference138 = obj132; - ref QuestSequence reference139 = ref span52[4]; + num++; + ref QuestSequence reference139 = ref span181[num]; QuestSequence obj133 = new QuestSequence { Sequence = 4 @@ -151916,31 +182960,37 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1018243u, new Vector3(35.99597f, -130.7033f, 543.3279f), 398) + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.Interact, 1018243u, new Vector3(35.99597f, -130.7033f, 543.3279f), 398) { Fly = true }; obj133.Steps = list186; reference139 = obj133; - ref QuestSequence reference140 = ref span52[5]; + num++; + ref QuestSequence reference140 = ref span181[num]; QuestSequence obj134 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - Span span54 = CollectionsMarshal.AsSpan(list187); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(471.06836f, -51.141403f, 35.919243f), 398) + index2 = 2; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(471.06836f, -51.141403f, 35.919243f), 398) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - span54[1] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); + num2++; + span187[num2] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); obj134.Steps = list187; reference140 = obj134; - ref QuestSequence reference141 = ref span52[6]; + num++; + ref QuestSequence reference141 = ref span181[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue @@ -151948,7 +182998,9 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) + Span span188 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span188[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -151963,21 +183015,26 @@ public static class AssemblyQuestLoader num = 1; List list189 = new List(num); CollectionsMarshal.SetCount(list189, num); - CollectionsMarshal.AsSpan(list189)[0] = "plogon_enjoyer"; + Span span189 = CollectionsMarshal.AsSpan(list189); + index = 0; + span189[index] = "plogon_enjoyer"; questRoot23.Author = list189; - num = 6; - List list190 = new List(num); - CollectionsMarshal.SetCount(list190, num); - Span span55 = CollectionsMarshal.AsSpan(list190); - ref QuestSequence reference142 = ref span55[0]; + index = 6; + List list190 = new List(index); + CollectionsMarshal.SetCount(list190, index); + Span span190 = CollectionsMarshal.AsSpan(list190); + num = 0; + ref QuestSequence reference142 = ref span190[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018248u, new Vector3(-287.34265f, 126.77467f, 3.3721924f), 397) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018248u, new Vector3(-287.34265f, 126.77467f, 3.3721924f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -151991,7 +183048,8 @@ public static class AssemblyQuestLoader }; obj136.Steps = list191; reference142 = obj136; - ref QuestSequence reference143 = ref span55[1]; + num++; + ref QuestSequence reference143 = ref span190[num]; QuestSequence obj137 = new QuestSequence { Sequence = 1 @@ -151999,29 +183057,35 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1018249u, new Vector3(-814.9691f, -130.31683f, -415.85413f), 401) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.Interact, 1018249u, new Vector3(-814.9691f, -130.31683f, -415.85413f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj137.Steps = list192; reference143 = obj137; - ref QuestSequence reference144 = ref span55[2]; + num++; + ref QuestSequence reference144 = ref span190[num]; QuestSequence obj138 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1018251u, new Vector3(285.7556f, -112.76572f, 562.1881f), 401) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.Interact, 1018251u, new Vector3(285.7556f, -112.76572f, 562.1881f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj138.Steps = list193; reference144 = obj138; - ref QuestSequence reference145 = ref span55[3]; + num++; + ref QuestSequence reference145 = ref span190[num]; QuestSequence obj139 = new QuestSequence { Sequence = 3 @@ -152029,24 +183093,30 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Emote, 1018251u, new Vector3(285.7556f, -112.76572f, 562.1881f), 401) + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = new QuestStep(EInteractionType.Emote, 1018251u, new Vector3(285.7556f, -112.76572f, 562.1881f), 401) { Emote = EEmote.MogDance }; obj139.Steps = list194; reference145 = obj139; - ref QuestSequence reference146 = ref span55[4]; + num++; + ref QuestSequence reference146 = ref span190[num]; QuestSequence obj140 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1018254u, new Vector3(383.93213f, -125.28945f, 734.4929f), 401); + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.Interact, 1018254u, new Vector3(383.93213f, -125.28945f, 734.4929f), 401); obj140.Steps = list195; reference146 = obj140; - ref QuestSequence reference147 = ref span55[5]; + num++; + ref QuestSequence reference147 = ref span190[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue @@ -152054,7 +183124,9 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018255u, new Vector3(-793.7896f, -133.26949f, -412.6803f), 401) + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span196[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018255u, new Vector3(-793.7896f, -133.26949f, -412.6803f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -152069,21 +183141,26 @@ public static class AssemblyQuestLoader num = 1; List list197 = new List(num); CollectionsMarshal.SetCount(list197, num); - CollectionsMarshal.AsSpan(list197)[0] = "plogon_enjoyer"; + Span span197 = CollectionsMarshal.AsSpan(list197); + index = 0; + span197[index] = "plogon_enjoyer"; questRoot24.Author = list197; - num = 6; - List list198 = new List(num); - CollectionsMarshal.SetCount(list198, num); - Span span56 = CollectionsMarshal.AsSpan(list198); - ref QuestSequence reference148 = ref span56[0]; + index = 6; + List list198 = new List(index); + CollectionsMarshal.SetCount(list198, index); + Span span198 = CollectionsMarshal.AsSpan(list198); + num = 0; + ref QuestSequence reference148 = ref span198[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018255u, new Vector3(-793.7896f, -133.26949f, -412.6803f), 401) + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + Span span199 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span199[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018255u, new Vector3(-793.7896f, -133.26949f, -412.6803f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -152097,7 +183174,8 @@ public static class AssemblyQuestLoader }; obj142.Steps = list199; reference148 = obj142; - ref QuestSequence reference149 = ref span56[1]; + num++; + ref QuestSequence reference149 = ref span198[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 @@ -152105,28 +183183,34 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1018257u, new Vector3(-664.36255f, -176.4502f, -570.3975f), 402) + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span200[index2] = new QuestStep(EInteractionType.Interact, 1018257u, new Vector3(-664.36255f, -176.4502f, -570.3975f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj143.Steps = list200; reference149 = obj143; - ref QuestSequence reference150 = ref span56[2]; + num++; + ref QuestSequence reference150 = ref span198[num]; QuestSequence obj144 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1018260u, new Vector3(-189.5628f, -102.63812f, 449.60706f), 402) + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span201[num2] = new QuestStep(EInteractionType.Interact, 1018260u, new Vector3(-189.5628f, -102.63812f, 449.60706f), 402) { Fly = true }; obj144.Steps = list201; reference150 = obj144; - ref QuestSequence reference151 = ref span56[3]; + num++; + ref QuestSequence reference151 = ref span198[num]; QuestSequence obj145 = new QuestSequence { Sequence = 3 @@ -152134,27 +183218,33 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 2007518u, new Vector3(-697.01685f, -37.82715f, 431.2047f), 402) + Span span202 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span202[index2] = new QuestStep(EInteractionType.Interact, 2007518u, new Vector3(-697.01685f, -37.82715f, 431.2047f), 402) { Fly = true }; obj145.Steps = list202; reference151 = obj145; - ref QuestSequence reference152 = ref span56[4]; + num++; + ref QuestSequence reference152 = ref span198[num]; QuestSequence obj146 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1018261u, new Vector3(785.3054f, -24.802603f, -766.3539f), 402) + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.Interact, 1018261u, new Vector3(785.3054f, -24.802603f, -766.3539f), 402) { Fly = true }; obj146.Steps = list203; reference152 = obj146; - ref QuestSequence reference153 = ref span56[5]; + num++; + ref QuestSequence reference153 = ref span198[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -152162,7 +183252,9 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span204[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -152176,21 +183268,26 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "UcanPatates"; + Span span205 = CollectionsMarshal.AsSpan(list205); + index = 0; + span205[index] = "UcanPatates"; questRoot25.Author = list205; - num = 4; - List list206 = new List(num); - CollectionsMarshal.SetCount(list206, num); - Span span57 = CollectionsMarshal.AsSpan(list206); - ref QuestSequence reference154 = ref span57[0]; + index = 4; + List list206 = new List(index); + CollectionsMarshal.SetCount(list206, index); + Span span206 = CollectionsMarshal.AsSpan(list206); + num = 0; + ref QuestSequence reference154 = ref span206[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list207)[0]; + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + Span span207 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + ref QuestStep reference155 = ref span207[num2]; QuestStep obj149 = new QuestStep(EInteractionType.AcceptQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire @@ -152200,17 +183297,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = 478; + index3 = 1; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + Span span208 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span208[num3] = 478; obj150.InTerritory = list208; skipConditions7.AetheryteShortcutIf = obj150; obj149.SkipConditions = skipConditions7; reference155 = obj149; obj148.Steps = list207; reference154 = obj148; - ref QuestSequence reference156 = ref span57[1]; + num++; + ref QuestSequence reference156 = ref span206[num]; QuestSequence obj151 = new QuestSequence { Sequence = 1 @@ -152218,8 +183318,9 @@ public static class AssemblyQuestLoader num2 = 2; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span58 = CollectionsMarshal.AsSpan(list209); - ref QuestStep reference157 = ref span58[0]; + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + ref QuestStep reference157 = ref span209[index2]; QuestStep obj152 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(148.23425f, 207f, 119.497574f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire @@ -152229,36 +183330,44 @@ public static class AssemblyQuestLoader num3 = 1; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = 399; + Span span210 = CollectionsMarshal.AsSpan(list210); + index3 = 0; + span210[index3] = 399; skipStepConditions4.InTerritory = list210; skipConditions8.StepIf = skipStepConditions4; SkipAetheryteCondition obj153 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = 399; + index3 = 1; + List list211 = new List(index3); + CollectionsMarshal.SetCount(list211, index3); + Span span211 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + span211[num3] = 399; obj153.InTerritory = list211; skipConditions8.AetheryteShortcutIf = obj153; obj152.SkipConditions = skipConditions8; reference157 = obj152; - span58[1] = new QuestStep(EInteractionType.Interact, 1018367u, new Vector3(302.11328f, 232.54102f, 767.14734f), 399) + index2++; + span209[index2] = new QuestStep(EInteractionType.Interact, 1018367u, new Vector3(302.11328f, 232.54102f, 767.14734f), 399) { Fly = true }; obj151.Steps = list209; reference156 = obj151; - ref QuestSequence reference158 = ref span57[2]; + num++; + ref QuestSequence reference158 = ref span206[num]; QuestSequence obj154 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span212[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -152267,7 +183376,8 @@ public static class AssemblyQuestLoader }; obj154.Steps = list212; reference158 = obj154; - ref QuestSequence reference159 = ref span57[3]; + num++; + ref QuestSequence reference159 = ref span206[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue @@ -152275,7 +183385,9 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) + Span span213 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span213[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -152295,24 +183407,30 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - CollectionsMarshal.AsSpan(list214)[0] = "liza"; + Span span214 = CollectionsMarshal.AsSpan(list214); + index = 0; + span214[index] = "liza"; questRoot26.Author = list214; - num = 2; - List list215 = new List(num); - CollectionsMarshal.SetCount(list215, num); - Span span59 = CollectionsMarshal.AsSpan(list215); - ref QuestSequence reference160 = ref span59[0]; + index = 2; + List list215 = new List(index); + CollectionsMarshal.SetCount(list215, index); + Span span215 = CollectionsMarshal.AsSpan(list215); + num = 0; + ref QuestSequence reference160 = ref span215[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018317u, new Vector3(44.174805f, 206.99484f, -9.720032f), 478); + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + Span span216 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span216[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018317u, new Vector3(44.174805f, 206.99484f, -9.720032f), 478); obj156.Steps = list216; reference160 = obj156; - ref QuestSequence reference161 = ref span59[1]; + num++; + ref QuestSequence reference161 = ref span215[num]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue @@ -152320,7 +183438,9 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017653u, new Vector3(-17.990417f, 211.4722f, -1.4801636f), 478); + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017653u, new Vector3(-17.990417f, 211.4722f, -1.4801636f), 478); obj157.Steps = list217; reference161 = obj157; questRoot26.QuestSequence = list215; @@ -152330,22 +183450,26 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; + Span span218 = CollectionsMarshal.AsSpan(list218); + index = 0; + span218[index] = "liza"; questRoot27.Author = list218; - num = 7; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span60 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference162 = ref span60[0]; + index = 7; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + Span span219 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference162 = ref span219[num]; QuestSequence obj158 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - Span span61 = CollectionsMarshal.AsSpan(list220); - ref QuestStep reference163 = ref span61[0]; + index2 = 3; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + ref QuestStep reference163 = ref span220[num2]; QuestStep obj159 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -152356,19 +183480,24 @@ public static class AssemblyQuestLoader num3 = 1; List list221 = new List(num3); CollectionsMarshal.SetCount(list221, num3); - CollectionsMarshal.AsSpan(list221)[0] = 351; + Span span221 = CollectionsMarshal.AsSpan(list221); + index3 = 0; + span221[index3] = 351; skipStepConditions5.InTerritory = list221; skipConditions9.StepIf = skipStepConditions5; SkipAetheryteCondition skipAetheryteCondition5 = new SkipAetheryteCondition(); - num3 = 1; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = 351; + index3 = 1; + List list222 = new List(index3); + CollectionsMarshal.SetCount(list222, index3); + Span span222 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span222[num3] = 351; skipAetheryteCondition5.InTerritory = list222; skipConditions9.AetheryteShortcutIf = skipAetheryteCondition5; obj159.SkipConditions = skipConditions9; reference163 = obj159; - span61[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span220[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -152379,13 +183508,15 @@ public static class AssemblyQuestLoader } } }; - span61[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + num2++; + span220[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj158.Steps = list220; reference162 = obj158; - ref QuestSequence reference164 = ref span60[1]; + num++; + ref QuestSequence reference164 = ref span219[num]; QuestSequence obj160 = new QuestSequence { Sequence = 1 @@ -152393,29 +183524,36 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 2007560u, new Vector3(216.11353f, 256.36682f, 10.757568f), 402) + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span223[index2] = new QuestStep(EInteractionType.Interact, 2007560u, new Vector3(216.11353f, 256.36682f, 10.757568f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj160.Steps = list223; reference164 = obj160; - ref QuestSequence reference165 = ref span60[2]; + num++; + ref QuestSequence reference165 = ref span219[num]; QuestSequence obj161 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1017675u, new Vector3(148.11926f, 245.1f, -4.1657104f), 402); + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span224[num2] = new QuestStep(EInteractionType.Interact, 1017675u, new Vector3(148.11926f, 245.1f, -4.1657104f), 402); obj161.Steps = list224; reference165 = obj161; - span60[3] = new QuestSequence + num++; + span219[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference166 = ref span60[4]; + num++; + ref QuestSequence reference166 = ref span219[num]; QuestSequence obj162 = new QuestSequence { Sequence = 4 @@ -152423,18 +183561,23 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1018511u, new Vector3(-1.449646f, 3.144145E-06f, 5.2643433f), 507); + Span span225 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span225[index2] = new QuestStep(EInteractionType.Interact, 1018511u, new Vector3(-1.449646f, 3.144145E-06f, 5.2643433f), 507); obj162.Steps = list225; reference166 = obj162; - ref QuestSequence reference167 = ref span60[5]; + num++; + ref QuestSequence reference167 = ref span219[num]; QuestSequence obj163 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Duty, null, null, 507) + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + Span span226 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span226[num2] = new QuestStep(EInteractionType.Duty, null, null, 507) { DutyOptions = new DutyOptions { @@ -152443,7 +183586,8 @@ public static class AssemblyQuestLoader }; obj163.Steps = list226; reference167 = obj163; - ref QuestSequence reference168 = ref span60[6]; + num++; + ref QuestSequence reference168 = ref span219[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -152451,17 +183595,20 @@ public static class AssemblyQuestLoader num2 = 3; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span62 = CollectionsMarshal.AsSpan(list227); - span62[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span62[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span227[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span62[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + index2++; + span227[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; @@ -152474,22 +183621,26 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - CollectionsMarshal.AsSpan(list228)[0] = "liza"; + Span span228 = CollectionsMarshal.AsSpan(list228); + index = 0; + span228[index] = "liza"; questRoot28.Author = list228; - num = 2; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - Span span63 = CollectionsMarshal.AsSpan(list229); - ref QuestSequence reference169 = ref span63[0]; + index = 2; + List list229 = new List(index); + CollectionsMarshal.SetCount(list229, index); + Span span229 = CollectionsMarshal.AsSpan(list229); + num = 0; + ref QuestSequence reference169 = ref span229[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - num2 = 3; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - Span span64 = CollectionsMarshal.AsSpan(list230); - ref QuestStep reference170 = ref span64[0]; + index2 = 3; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + ref QuestStep reference170 = ref span230[num2]; QuestStep obj166 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -152500,19 +183651,24 @@ public static class AssemblyQuestLoader num3 = 1; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - CollectionsMarshal.AsSpan(list231)[0] = 351; + Span span231 = CollectionsMarshal.AsSpan(list231); + index3 = 0; + span231[index3] = 351; skipStepConditions6.InTerritory = list231; skipConditions10.StepIf = skipStepConditions6; SkipAetheryteCondition skipAetheryteCondition6 = new SkipAetheryteCondition(); - num3 = 1; - List list232 = new List(num3); - CollectionsMarshal.SetCount(list232, num3); - CollectionsMarshal.AsSpan(list232)[0] = 351; + index3 = 1; + List list232 = new List(index3); + CollectionsMarshal.SetCount(list232, index3); + Span span232 = CollectionsMarshal.AsSpan(list232); + num3 = 0; + span232[num3] = 351; skipAetheryteCondition6.InTerritory = list232; skipConditions10.AetheryteShortcutIf = skipAetheryteCondition6; obj166.SkipConditions = skipConditions10; reference170 = obj166; - span64[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span230[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -152523,13 +183679,15 @@ public static class AssemblyQuestLoader } } }; - span64[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + num2++; + span230[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj165.Steps = list230; reference169 = obj165; - ref QuestSequence reference171 = ref span63[1]; + num++; + ref QuestSequence reference171 = ref span229[num]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue @@ -152537,8 +183695,9 @@ public static class AssemblyQuestLoader num2 = 2; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span65 = CollectionsMarshal.AsSpan(list233); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(212.05304f, 256.37265f, 0.08028713f), 402) + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span233[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(212.05304f, 256.37265f, 0.08028713f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix, @@ -152559,7 +183718,8 @@ public static class AssemblyQuestLoader } } }; - span65[1] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) + index2++; + span233[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) { Fly = true }; @@ -152576,13 +183736,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "kaiser"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "kaiser"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -152590,7 +183753,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -152614,15 +183779,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1021184u, new Vector3(191.9126f, 234.44899f, 402.45667f), 155) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1021184u, new Vector3(191.9126f, 234.44899f, 402.45667f), 155) { StopDistance = 5f, Fly = true, @@ -152637,7 +183805,8 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -152645,7 +183814,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + ref QuestStep reference4 = ref span5[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 1021187u, new Vector3(-1.9990234f, 0.74534994f, 360.25012f), 153) { StopDistance = 5f, @@ -152662,7 +183833,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new DialogueChoice + Span span6 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBAST601_02409_Q1_000_000"), @@ -152672,15 +183845,18 @@ public static class AssemblyQuestLoader reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021191u, new Vector3(195.1781f, -5.3999624f, -67.06348f), 419) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021191u, new Vector3(195.1781f, -5.3999624f, -67.06348f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -152712,13 +183888,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "kaiser"; + Span span8 = CollectionsMarshal.AsSpan(list8); + index = 0; + span8[index] = "kaiser"; questRoot2.Author = list8; - num = 5; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span2 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span2[0]; + index = 5; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + Span span9 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span9[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -152726,7 +183905,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021191u, new Vector3(195.1781f, -5.3999624f, -67.06348f), 419) + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021191u, new Vector3(195.1781f, -5.3999624f, -67.06348f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -152750,21 +183931,25 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[1]; + num++; + ref QuestSequence reference7 = ref span9[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1021221u, new Vector3(180.22424f, -5.4349146f, -55.588684f), 419) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.Interact, 1021221u, new Vector3(180.22424f, -5.4349146f, -55.588684f), 419) { StopDistance = 5f }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span2[2]; + num++; + ref QuestSequence reference8 = ref span9[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -152772,8 +183957,9 @@ public static class AssemblyQuestLoader num2 = 2; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span3 = CollectionsMarshal.AsSpan(list12); - ref QuestStep reference9 = ref span3[0]; + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + ref QuestStep reference9 = ref span12[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(244.403f, 361.78677f, -616.2311f), 155) { StopDistance = 5f, @@ -152781,10 +183967,12 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = new ComplexCombatData + index3 = 1; + List list13 = new List(index3); + CollectionsMarshal.SetCount(list13, index3); + Span span13 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span13[num3] = new ComplexCombatData { DataId = 7235u, MinimumKillCount = 2u @@ -152798,18 +183986,22 @@ public static class AssemblyQuestLoader } }; reference9 = obj9; - span3[1] = new QuestStep(EInteractionType.Interact, 1021222u, new Vector3(240.68054f, 362.1392f, -614.74023f), 155); + index2++; + span12[index2] = new QuestStep(EInteractionType.Interact, 1021222u, new Vector3(240.68054f, 362.1392f, -614.74023f), 155); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference10 = ref span2[3]; + num++; + ref QuestSequence reference10 = ref span9[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1021191u, new Vector3(195.1781f, -5.3999624f, -67.06348f), 419) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.Interact, 1021191u, new Vector3(195.1781f, -5.3999624f, -67.06348f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -152833,7 +184025,8 @@ public static class AssemblyQuestLoader }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[4]; + num++; + ref QuestSequence reference11 = ref span9[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -152841,7 +184034,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -152873,21 +184068,26 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "kaiser"; + Span span16 = CollectionsMarshal.AsSpan(list16); + index = 0; + span16[index] = "kaiser"; questRoot3.Author = list16; - num = 6; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span4 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span4[0]; + index = 6; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + Span span17 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span17[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -152911,7 +184111,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span4[1]; + num++; + ref QuestSequence reference13 = ref span17[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -152919,7 +184120,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1021255u, new Vector3(-0.35101318f, 11.965101f, 45.029297f), 419) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.Interact, 1021255u, new Vector3(-0.35101318f, 11.965101f, 45.029297f), 419) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -152930,16 +184133,18 @@ public static class AssemblyQuestLoader }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span4[2]; + num++; + ref QuestSequence reference14 = ref span17[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span5 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference15 = ref span5[0]; + index2 = 3; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span20[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1021259u, new Vector3(-16.250854f, 0.09999631f, -31.784546f), 628) { StopDistance = 4f, @@ -152950,13 +184155,19 @@ public static class AssemblyQuestLoader num3 = 6; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span6 = CollectionsMarshal.AsSpan(list21); - span6[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span21 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span21[index3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list21; skipConditions.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition @@ -152965,7 +184176,8 @@ public static class AssemblyQuestLoader }; obj15.SkipConditions = skipConditions; reference15 = obj15; - ref QuestStep reference16 = ref span5[1]; + num2++; + ref QuestStep reference16 = ref span20[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 1021256u, new Vector3(28.610596f, 4f, 53.57434f), 628) { StopDistance = 4f, @@ -152973,16 +184185,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span7 = CollectionsMarshal.AsSpan(list22); - span7[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = null; + index3 = 6; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; skipStepConditions2.CompletionQuestVariablesFlags = list22; skipConditions2.StepIf = skipStepConditions2; skipConditions2.AetheryteShortcutIf = new SkipAetheryteCondition @@ -152991,7 +184209,8 @@ public static class AssemblyQuestLoader }; obj16.SkipConditions = skipConditions2; reference16 = obj16; - span5[2] = new QuestStep(EInteractionType.Interact, 1021260u, new Vector3(-12.069946f, -4.9889293f, 15.579407f), 628) + num2++; + span20[num2] = new QuestStep(EInteractionType.Interact, 1021260u, new Vector3(-12.069946f, -4.9889293f, 15.579407f), 628) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153005,7 +184224,8 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference17 = ref span4[3]; + num++; + ref QuestSequence reference17 = ref span17[num]; QuestSequence obj17 = new QuestSequence { Sequence = 3 @@ -153013,7 +184233,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 2007937u, new Vector3(-51.621338f, 16.891724f, 0.045776367f), 628) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.Interact, 2007937u, new Vector3(-51.621338f, 16.891724f, 0.045776367f), 628) { StopDistance = 2f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153027,16 +184249,18 @@ public static class AssemblyQuestLoader }; obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span4[4]; + num++; + ref QuestSequence reference18 = ref span17[num]; QuestSequence obj18 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span8 = CollectionsMarshal.AsSpan(list24); - span8[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-53.109528f, 15.469519f, 22.387312f), 628) + index2 = 2; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-53.109528f, 15.469519f, 22.387312f), 628) { JumpDestination = new JumpDestination { @@ -153045,7 +184269,8 @@ public static class AssemblyQuestLoader Type = EJumpType.RepeatedJumps } }; - span8[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021261u, new Vector3(-57.846985f, -3f, 25.16211f), 628) + num2++; + span24[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021261u, new Vector3(-57.846985f, -3f, 25.16211f), 628) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153059,7 +184284,8 @@ public static class AssemblyQuestLoader }; obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference19 = ref span4[5]; + num++; + ref QuestSequence reference19 = ref span17[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -153067,7 +184293,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153099,21 +184327,26 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "kaiser"; + Span span26 = CollectionsMarshal.AsSpan(list26); + index = 0; + span26[index] = "kaiser"; questRoot4.Author = list26; - num = 6; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span9 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span9[0]; + index = 6; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + Span span27 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span27[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153137,7 +184370,8 @@ public static class AssemblyQuestLoader }; obj20.Steps = list28; reference20 = obj20; - ref QuestSequence reference21 = ref span9[1]; + num++; + ref QuestSequence reference21 = ref span27[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -153145,22 +184379,27 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1021273u, new Vector3(469.84045f, 69.6416f, -68.37573f), 614) + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.Interact, 1021273u, new Vector3(469.84045f, 69.6416f, -68.37573f), 614) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj21.Steps = list29; reference21 = obj21; - ref QuestSequence reference22 = ref span9[2]; + num++; + ref QuestSequence reference22 = ref span27[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list30)[0]; + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + ref QuestStep reference23 = ref span30[num2]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 1021274u, new Vector3(-413.77893f, 55.093624f, 305.83655f), 614) { StopDistance = 4f, @@ -153171,7 +184410,9 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = 7236u; + Span span31 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span31[index3] = 7236u; obj23.KillEnemyDataIds = list31; obj23.SkipConditions = new SkipConditions { @@ -153180,10 +184421,12 @@ public static class AssemblyQuestLoader InSameTerritory = true } }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new DialogueChoice + index3 = 1; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + Span span32 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span32[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBAST680_02412_Q1_000_024") @@ -153192,7 +184435,8 @@ public static class AssemblyQuestLoader reference23 = obj23; obj22.Steps = list30; reference22 = obj22; - ref QuestSequence reference24 = ref span9[3]; + num++; + ref QuestSequence reference24 = ref span27[num]; QuestSequence obj24 = new QuestSequence { Sequence = 3 @@ -153200,22 +184444,27 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1021274u, new Vector3(-413.77893f, 55.093624f, 305.83655f), 614) + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.Interact, 1021274u, new Vector3(-413.77893f, 55.093624f, 305.83655f), 614) { StopDistance = 4f, Fly = false }; obj24.Steps = list33; reference24 = obj24; - ref QuestSequence reference25 = ref span9[4]; + num++; + ref QuestSequence reference25 = ref span27[num]; QuestSequence obj25 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1021054u, new Vector3(-36.66742f, 14.000003f, -58.457336f), 628) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.Interact, 1021054u, new Vector3(-36.66742f, 14.000003f, -58.457336f), 628) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153229,7 +184478,8 @@ public static class AssemblyQuestLoader }; obj25.Steps = list34; reference25 = obj25; - ref QuestSequence reference26 = ref span9[5]; + num++; + ref QuestSequence reference26 = ref span27[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -153237,7 +184487,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153269,21 +184521,26 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "kaiser"; + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "kaiser"; questRoot5.Author = list36; - num = 5; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span10 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference27 = ref span10[0]; + index = 5; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference27 = ref span37[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153307,7 +184564,8 @@ public static class AssemblyQuestLoader }; obj27.Steps = list38; reference27 = obj27; - ref QuestSequence reference28 = ref span10[1]; + num++; + ref QuestSequence reference28 = ref span37[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -153315,7 +184573,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 2008103u, new Vector3(44.84619f, 8.255066f, 178.11853f), 628) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.Interact, 2008103u, new Vector3(44.84619f, 8.255066f, 178.11853f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -153328,15 +184588,18 @@ public static class AssemblyQuestLoader }; obj28.Steps = list39; reference28 = obj28; - ref QuestSequence reference29 = ref span10[2]; + num++; + ref QuestSequence reference29 = ref span37[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1021305u, new Vector3(-61.356567f, -3f, 28.854736f), 628) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.Interact, 1021305u, new Vector3(-61.356567f, -3f, 28.854736f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153355,7 +184618,8 @@ public static class AssemblyQuestLoader }; obj29.Steps = list40; reference29 = obj29; - ref QuestSequence reference30 = ref span10[3]; + num++; + ref QuestSequence reference30 = ref span37[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -153363,7 +184627,9 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2008104u, new Vector3(128.13f, 24.979004f, -0.22894287f), 628) + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2008104u, new Vector3(128.13f, 24.979004f, -0.22894287f), 628) { StopDistance = 3f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153382,15 +184648,18 @@ public static class AssemblyQuestLoader }; obj30.Steps = list41; reference30 = obj30; - ref QuestSequence reference31 = ref span10[4]; + num++; + ref QuestSequence reference31 = ref span37[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021309u, new Vector3(-47.501343f, 16.624714f, 9.719971f), 628) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021309u, new Vector3(-47.501343f, 16.624714f, 9.719971f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -153417,13 +184686,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "Cacahuetes"; + Span span43 = CollectionsMarshal.AsSpan(list43); + index = 0; + span43[index] = "Cacahuetes"; questRoot6.Author = list43; - num = 6; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span11 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference32 = ref span11[0]; + index = 6; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + Span span44 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference32 = ref span44[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -153431,8 +184703,9 @@ public static class AssemblyQuestLoader num2 = 3; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span12 = CollectionsMarshal.AsSpan(list45); - span12[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -153459,7 +184732,8 @@ public static class AssemblyQuestLoader } } }; - span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + index2++; + span45[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -153470,18 +184744,22 @@ public static class AssemblyQuestLoader } } }; - span12[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + index2++; + span45[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); obj32.Steps = list45; reference32 = obj32; - ref QuestSequence reference33 = ref span11[1]; + num++; + ref QuestSequence reference33 = ref span44[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -153492,7 +184770,8 @@ public static class AssemblyQuestLoader }; obj33.Steps = list46; reference33 = obj33; - ref QuestSequence reference34 = ref span11[2]; + num++; + ref QuestSequence reference34 = ref span44[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -153500,28 +184779,34 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1018744u, new Vector3(87.96814f, 5.9457893f, 490.56213f), 152) + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.Interact, 1018744u, new Vector3(87.96814f, 5.9457893f, 490.56213f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj34.Steps = list47; reference34 = obj34; - ref QuestSequence reference35 = ref span11[3]; + num++; + ref QuestSequence reference35 = ref span44[num]; QuestSequence obj35 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1018746u, new Vector3(-651.3619f, 130f, -527.8248f), 612) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.Interact, 1018746u, new Vector3(-651.3619f, 130f, -527.8248f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj35.Steps = list48; reference35 = obj35; - ref QuestSequence reference36 = ref span11[4]; + num++; + ref QuestSequence reference36 = ref span44[num]; QuestSequence obj36 = new QuestSequence { Sequence = 4 @@ -153529,21 +184814,26 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 2007687u, new Vector3(-640.8331f, 120.3479f, -291.52362f), 612) + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span49[index2] = new QuestStep(EInteractionType.Interact, 2007687u, new Vector3(-640.8331f, 120.3479f, -291.52362f), 612) { Fly = true }; obj36.Steps = list49; reference36 = obj36; - ref QuestSequence reference37 = ref span11[5]; + num++; + ref QuestSequence reference37 = ref span44[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018752u, new Vector3(-622.5834f, 130.26505f, -473.7469f), 612) + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018752u, new Vector3(-622.5834f, 130.26505f, -473.7469f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, NextQuestId = new QuestId(2415) @@ -153557,13 +184847,16 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "Cacahuetes"; + Span span51 = CollectionsMarshal.AsSpan(list51); + index = 0; + span51[index] = "Cacahuetes"; questRoot7.Author = list51; - num = 5; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span13 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference38 = ref span13[0]; + index = 5; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + Span span52 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference38 = ref span52[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -153571,7 +184864,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -153584,21 +184879,25 @@ public static class AssemblyQuestLoader }; obj38.Steps = list53; reference38 = obj38; - ref QuestSequence reference39 = ref span13[1]; + num++; + ref QuestSequence reference39 = ref span52[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1018757u, new Vector3(-437.2168f, 73.07981f, -100.23657f), 612) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.Interact, 1018757u, new Vector3(-437.2168f, 73.07981f, -100.23657f), 612) { Fly = true }; obj39.Steps = list54; reference39 = obj39; - ref QuestSequence reference40 = ref span13[2]; + num++; + ref QuestSequence reference40 = ref span52[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -153606,8 +184905,9 @@ public static class AssemblyQuestLoader num2 = 2; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span14 = CollectionsMarshal.AsSpan(list55); - ref QuestStep reference41 = ref span14[0]; + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + ref QuestStep reference41 = ref span55[index2]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(-586.0533f, 54.95936f, 204.82178f), 612) { StopDistance = 0.5f, @@ -153617,21 +184917,27 @@ public static class AssemblyQuestLoader num3 = 1; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = 7214u; + Span span56 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span56[index3] = 7214u; obj41.KillEnemyDataIds = list56; reference41 = obj41; - span14[1] = new QuestStep(EInteractionType.Interact, 1018758u, new Vector3(-586.0533f, 54.95936f, 204.82178f), 612); + index2++; + span55[index2] = new QuestStep(EInteractionType.Interact, 1018758u, new Vector3(-586.0533f, 54.95936f, 204.82178f), 612); obj40.Steps = list55; reference40 = obj40; - ref QuestSequence reference42 = ref span13[3]; + num++; + ref QuestSequence reference42 = ref span52[num]; QuestSequence obj42 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -153642,7 +184948,8 @@ public static class AssemblyQuestLoader }; obj42.Steps = list57; reference42 = obj42; - ref QuestSequence reference43 = ref span13[4]; + num++; + ref QuestSequence reference43 = ref span52[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue @@ -153650,7 +184957,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, NextQuestId = new QuestId(2416) @@ -153664,21 +184973,26 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "Cacahuetes"; + Span span59 = CollectionsMarshal.AsSpan(list59); + index = 0; + span59[index] = "Cacahuetes"; questRoot8.Author = list59; - num = 6; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span15 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference44 = ref span15[0]; + index = 6; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + Span span60 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference44 = ref span60[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -153691,7 +185005,8 @@ public static class AssemblyQuestLoader }; obj44.Steps = list61; reference44 = obj44; - ref QuestSequence reference45 = ref span15[1]; + num++; + ref QuestSequence reference45 = ref span60[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 @@ -153699,27 +185014,33 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 2007711u, new Vector3(-488.0293f, 50.94983f, 86.96118f), 612) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.Interact, 2007711u, new Vector3(-488.0293f, 50.94983f, 86.96118f), 612) { Fly = true }; obj45.Steps = list62; reference45 = obj45; - ref QuestSequence reference46 = ref span15[2]; + num++; + ref QuestSequence reference46 = ref span60[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 2007712u, new Vector3(-461.63123f, 57.14502f, 186.08374f), 612) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.Interact, 2007712u, new Vector3(-461.63123f, 57.14502f, 186.08374f), 612) { Fly = true }; obj46.Steps = list63; reference46 = obj46; - ref QuestSequence reference47 = ref span15[3]; + num++; + ref QuestSequence reference47 = ref span60[num]; QuestSequence obj47 = new QuestSequence { Sequence = 3 @@ -153727,27 +185048,33 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 2007713u, new Vector3(-529.9306f, 36.88098f, 451.16345f), 612) + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.Interact, 2007713u, new Vector3(-529.9306f, 36.88098f, 451.16345f), 612) { Fly = true }; obj47.Steps = list64; reference47 = obj47; - ref QuestSequence reference48 = ref span15[4]; + num++; + ref QuestSequence reference48 = ref span60[num]; QuestSequence obj48 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1019090u, new Vector3(-638.3002f, 38.30705f, 374.92932f), 612) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span65[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1019090u, new Vector3(-638.3002f, 38.30705f, 374.92932f), 612) { Fly = true }; obj48.Steps = list65; reference48 = obj48; - ref QuestSequence reference49 = ref span15[5]; + num++; + ref QuestSequence reference49 = ref span60[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue @@ -153755,15 +185082,19 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list66)[0]; + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + ref QuestStep reference50 = ref span66[index2]; QuestStep obj50 = new QuestStep(EInteractionType.CompleteQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new DialogueChoice + index3 = 1; + List list67 = new List(index3); + CollectionsMarshal.SetCount(list67, index3); + Span span67 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span67[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBWHM650_02416_Q1_000_000"), @@ -153781,21 +185112,26 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "Cacahuetes"; + Span span68 = CollectionsMarshal.AsSpan(list68); + index = 0; + span68[index] = "Cacahuetes"; questRoot9.Author = list68; - num = 5; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span16 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference51 = ref span16[0]; + index = 5; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + Span span69 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference51 = ref span69[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -153808,7 +185144,8 @@ public static class AssemblyQuestLoader }; obj51.Steps = list70; reference51 = obj51; - ref QuestSequence reference52 = ref span16[1]; + num++; + ref QuestSequence reference52 = ref span69[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -153816,22 +185153,26 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1019125u, new Vector3(-651.81964f, 40.067055f, 370.80945f), 612) + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.Interact, 1019125u, new Vector3(-651.81964f, 40.067055f, 370.80945f), 612) { Fly = true }; obj52.Steps = list71; reference52 = obj52; - ref QuestSequence reference53 = ref span16[2]; + num++; + ref QuestSequence reference53 = ref span69[num]; QuestSequence obj53 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span17 = CollectionsMarshal.AsSpan(list72); - ref QuestStep reference54 = ref span17[0]; + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + ref QuestStep reference54 = ref span72[num2]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, null, new Vector3(-175.06683f, 59.779804f, -558.8312f), 612) { Fly = true, @@ -153841,13 +185182,17 @@ public static class AssemblyQuestLoader num3 = 1; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = 7215u; + Span span73 = CollectionsMarshal.AsSpan(list73); + index3 = 0; + span73[index3] = 7215u; obj54.KillEnemyDataIds = list73; reference54 = obj54; - span17[1] = new QuestStep(EInteractionType.Interact, 1019128u, new Vector3(-175.06683f, 59.779804f, -558.8312f), 612); + num2++; + span72[num2] = new QuestStep(EInteractionType.Interact, 1019128u, new Vector3(-175.06683f, 59.779804f, -558.8312f), 612); obj53.Steps = list72; reference53 = obj53; - ref QuestSequence reference55 = ref span16[3]; + num++; + ref QuestSequence reference55 = ref span69[num]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -153855,23 +185200,28 @@ public static class AssemblyQuestLoader num2 = 2; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span18 = CollectionsMarshal.AsSpan(list74); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-650.58673f, 39.856243f, 371.54846f), 612) + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-650.58673f, 39.856243f, 371.54846f), 612) { Fly = true }; - span18[1] = new QuestStep(EInteractionType.Interact, 1019131u, new Vector3(-663.7522f, 43.594555f, 363.75977f), 612); + index2++; + span74[index2] = new QuestStep(EInteractionType.Interact, 1019131u, new Vector3(-663.7522f, 43.594555f, 363.75977f), 612); obj55.Steps = list74; reference55 = obj55; - ref QuestSequence reference56 = ref span16[4]; + num++; + ref QuestSequence reference56 = ref span69[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019132u, new Vector3(-655.02405f, 40.43195f, 375.96704f), 612) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019132u, new Vector3(-655.02405f, 40.43195f, 375.96704f), 612) { NextQuestId = new QuestId(2418) }; @@ -153884,13 +185234,16 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "Cacahuetes"; + Span span76 = CollectionsMarshal.AsSpan(list76); + index = 0; + span76[index] = "Cacahuetes"; questRoot10.Author = list76; - num = 7; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span19 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference57 = ref span19[0]; + index = 7; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + Span span77 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference57 = ref span77[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -153898,7 +185251,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019132u, new Vector3(-655.02405f, 40.43195f, 375.96704f), 612) + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019132u, new Vector3(-655.02405f, 40.43195f, 375.96704f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -153911,21 +185266,25 @@ public static class AssemblyQuestLoader }; obj57.Steps = list78; reference57 = obj57; - ref QuestSequence reference58 = ref span19[1]; + num++; + ref QuestSequence reference58 = ref span77[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1018759u, new Vector3(-636.8048f, 130f, -528.6183f), 612) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.Interact, 1018759u, new Vector3(-636.8048f, 130f, -528.6183f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj58.Steps = list79; reference58 = obj58; - ref QuestSequence reference59 = ref span19[2]; + num++; + ref QuestSequence reference59 = ref span77[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 @@ -153933,31 +185292,38 @@ public static class AssemblyQuestLoader num2 = 2; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span20 = CollectionsMarshal.AsSpan(list80); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-650.58673f, 39.856243f, 371.54846f), 612) + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-650.58673f, 39.856243f, 371.54846f), 612) { Fly = true }; - span20[1] = new QuestStep(EInteractionType.Interact, 1019130u, new Vector3(-665.3696f, 43.594574f, 364.40063f), 612); + index2++; + span80[index2] = new QuestStep(EInteractionType.Interact, 1019130u, new Vector3(-665.3696f, 43.594574f, 364.40063f), 612); obj59.Steps = list80; reference59 = obj59; - ref QuestSequence reference60 = ref span19[3]; + num++; + ref QuestSequence reference60 = ref span77[num]; QuestSequence obj60 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list81)[0]; + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + ref QuestStep reference61 = ref span81[num2]; QuestStep obj61 = new QuestStep(EInteractionType.Emote, 1019130u, new Vector3(-665.3696f, 43.594574f, 364.40063f), 612) { Emote = EEmote.Soothe }; - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = new DialogueChoice + index3 = 1; + List list82 = new List(index3); + CollectionsMarshal.SetCount(list82, index3); + Span span82 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span82[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBWHM700_02418_Q1_000_000"), @@ -153967,7 +185333,8 @@ public static class AssemblyQuestLoader reference61 = obj61; obj60.Steps = list81; reference60 = obj60; - ref QuestSequence reference62 = ref span19[4]; + num++; + ref QuestSequence reference62 = ref span77[num]; QuestSequence obj62 = new QuestSequence { Sequence = 4 @@ -153975,7 +185342,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list83)[0]; + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + ref QuestStep reference63 = ref span83[index2]; QuestStep obj63 = new QuestStep(EInteractionType.Combat, null, new Vector3(-381.88757f, 40.283813f, 484.82483f), 612) { Fly = true, @@ -153984,26 +185353,32 @@ public static class AssemblyQuestLoader num3 = 1; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = 7216u; + Span span84 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span84[index3] = 7216u; obj63.KillEnemyDataIds = list84; reference63 = obj63; obj62.Steps = list83; reference62 = obj62; - ref QuestSequence reference64 = ref span19[5]; + num++; + ref QuestSequence reference64 = ref span77[num]; QuestSequence obj64 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1019127u, new Vector3(-381.88757f, 40.283813f, 484.82483f), 612) + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span85[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1019127u, new Vector3(-381.88757f, 40.283813f, 484.82483f), 612) { ItemId = 2002053u }; obj64.Steps = list85; reference64 = obj64; - ref QuestSequence reference65 = ref span19[6]; + num++; + ref QuestSequence reference65 = ref span77[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -154011,7 +185386,9 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019588u, new Vector3(-382.71155f, 40.275818f, 484.36694f), 612); + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019588u, new Vector3(-382.71155f, 40.275818f, 484.36694f), 612); obj65.Steps = list86; reference65 = obj65; questRoot10.QuestSequence = list77; @@ -154021,21 +185398,26 @@ public static class AssemblyQuestLoader num = 1; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - CollectionsMarshal.AsSpan(list87)[0] = "plogon_enjoyer"; + Span span87 = CollectionsMarshal.AsSpan(list87); + index = 0; + span87[index] = "plogon_enjoyer"; questRoot11.Author = list87; - num = 5; - List list88 = new List(num); - CollectionsMarshal.SetCount(list88, num); - Span span21 = CollectionsMarshal.AsSpan(list88); - ref QuestSequence reference66 = ref span21[0]; + index = 5; + List list88 = new List(index); + CollectionsMarshal.SetCount(list88, index); + Span span88 = CollectionsMarshal.AsSpan(list88); + num = 0; + ref QuestSequence reference66 = ref span88[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list89)[0]; + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + ref QuestStep reference67 = ref span89[num2]; QuestStep obj67 = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -154047,12 +185429,14 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 2; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - Span span22 = CollectionsMarshal.AsSpan(list90); - span22[0] = 130; - span22[1] = 131; + index3 = 2; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + Span span90 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span90[num3] = 130; + num3++; + span90[num3] = 131; skipAetheryteCondition.InTerritory = list90; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition; skipConditions3.AethernetShortcutIf = new SkipAetheryteCondition @@ -154063,7 +185447,8 @@ public static class AssemblyQuestLoader reference67 = obj67; obj66.Steps = list89; reference66 = obj66; - ref QuestSequence reference68 = ref span21[1]; + num++; + ref QuestSequence reference68 = ref span88[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -154071,29 +185456,35 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.Interact, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj68.Steps = list91; reference68 = obj68; - ref QuestSequence reference69 = ref span21[2]; + num++; + ref QuestSequence reference69 = ref span88[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1022372u, new Vector3(-224.90277f, 26.139341f, -353.38373f), 146) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.Interact, 1022372u, new Vector3(-224.90277f, 26.139341f, -353.38373f), 146) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj69.Steps = list92; reference69 = obj69; - ref QuestSequence reference70 = ref span21[3]; + num++; + ref QuestSequence reference70 = ref span88[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 @@ -154101,21 +185492,26 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1022373u, new Vector3(-81.22388f, 39.42472f, -336.96503f), 146) + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.Interact, 1022373u, new Vector3(-81.22388f, 39.42472f, -336.96503f), 146) { Mount = true }; obj70.Steps = list93; reference70 = obj70; - ref QuestSequence reference71 = ref span21[4]; + num++; + ref QuestSequence reference71 = ref span88[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list94)[0]; + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref QuestStep reference72 = ref span94[num2]; QuestStep obj72 = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, @@ -154124,7 +185520,9 @@ public static class AssemblyQuestLoader num3 = 1; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice + Span span95 = CollectionsMarshal.AsSpan(list95); + index3 = 0; + span95[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMNK601_02426_Q2_000_000"), @@ -154141,13 +185539,16 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "plogon_enjoyer"; + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + span96[index] = "plogon_enjoyer"; questRoot12.Author = list96; - num = 8; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span23 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference73 = ref span23[0]; + index = 8; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + Span span97 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference73 = ref span97[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 @@ -154155,7 +185556,9 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span98[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -154168,15 +185571,18 @@ public static class AssemblyQuestLoader }; obj73.Steps = list98; reference73 = obj73; - ref QuestSequence reference74 = ref span23[1]; + num++; + ref QuestSequence reference74 = ref span97[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1022384u, new Vector3(76.920654f, 62.19928f, -669.4591f), 612) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.Interact, 1022384u, new Vector3(76.920654f, 62.19928f, -669.4591f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -154188,7 +185594,8 @@ public static class AssemblyQuestLoader }; obj74.Steps = list99; reference74 = obj74; - ref QuestSequence reference75 = ref span23[2]; + num++; + ref QuestSequence reference75 = ref span97[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 @@ -154196,28 +185603,34 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1022387u, new Vector3(49.94275f, 118.155785f, -746.0899f), 620) + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.Interact, 1022387u, new Vector3(49.94275f, 118.155785f, -746.0899f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj75.Steps = list100; reference75 = obj75; - ref QuestSequence reference76 = ref span23[3]; + num++; + ref QuestSequence reference76 = ref span97[num]; QuestSequence obj76 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.Interact, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { Fly = true }; obj76.Steps = list101; reference76 = obj76; - ref QuestSequence reference77 = ref span23[4]; + num++; + ref QuestSequence reference77 = ref span97[num]; QuestSequence obj77 = new QuestSequence { Sequence = 4 @@ -154225,32 +185638,38 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span24 = CollectionsMarshal.AsSpan(list102); - span24[0] = new QuestStep(EInteractionType.Action, null, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span102[index2] = new QuestStep(EInteractionType.Action, null, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) { Action = EAction.FormShift }; - span24[1] = new QuestStep(EInteractionType.Action, 2008451u, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) + index2++; + span102[index2] = new QuestStep(EInteractionType.Action, 2008451u, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) { Action = EAction.TwinSnakes }; obj77.Steps = list102; reference77 = obj77; - ref QuestSequence reference78 = ref span23[5]; + num++; + ref QuestSequence reference78 = ref span97[num]; QuestSequence obj78 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Action, 2008451u, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span103[num2] = new QuestStep(EInteractionType.Action, 2008451u, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) { Action = EAction.DragonKick }; obj78.Steps = list103; reference78 = obj78; - ref QuestSequence reference79 = ref span23[6]; + num++; + ref QuestSequence reference79 = ref span97[num]; QuestSequence obj79 = new QuestSequence { Sequence = 6 @@ -154258,21 +185677,26 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Action, 2008451u, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.Action, 2008451u, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) { Action = EAction.Demolish }; obj79.Steps = list104; reference79 = obj79; - ref QuestSequence reference80 = ref span23[7]; + num++; + ref QuestSequence reference80 = ref span97[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { StopDistance = 5f, NextQuestId = new QuestId(2428) @@ -154286,13 +185710,16 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "plogon_enjoyer"; + Span span106 = CollectionsMarshal.AsSpan(list106); + index = 0; + span106[index] = "plogon_enjoyer"; questRoot13.Author = list106; - num = 8; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - Span span25 = CollectionsMarshal.AsSpan(list107); - ref QuestSequence reference81 = ref span25[0]; + index = 8; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + Span span107 = CollectionsMarshal.AsSpan(list107); + num = 0; + ref QuestSequence reference81 = ref span107[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -154300,7 +185727,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, @@ -154314,21 +185743,25 @@ public static class AssemblyQuestLoader }; obj81.Steps = list108; reference81 = obj81; - ref QuestSequence reference82 = ref span25[1]; + num++; + ref QuestSequence reference82 = ref span107[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj82.Steps = list109; reference82 = obj82; - ref QuestSequence reference83 = ref span25[2]; + num++; + ref QuestSequence reference83 = ref span107[num]; QuestSequence obj83 = new QuestSequence { Sequence = 2 @@ -154336,22 +185769,27 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.Interact, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj83.Steps = list110; reference83 = obj83; - ref QuestSequence reference84 = ref span25[3]; + num++; + ref QuestSequence reference84 = ref span107[num]; QuestSequence obj84 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1022404u, new Vector3(76.43237f, 62.148823f, -667.2923f), 612) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.Interact, 1022404u, new Vector3(76.43237f, 62.148823f, -667.2923f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -154363,7 +185801,8 @@ public static class AssemblyQuestLoader }; obj84.Steps = list111; reference84 = obj84; - ref QuestSequence reference85 = ref span25[4]; + num++; + ref QuestSequence reference85 = ref span107[num]; QuestSequence obj85 = new QuestSequence { Sequence = 4 @@ -154371,39 +185810,48 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span26 = CollectionsMarshal.AsSpan(list112); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-96.72436f, 60.086643f, -602.3445f), 612) + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-96.72436f, 60.086643f, -602.3445f), 612) { Fly = true }; - ref QuestStep reference86 = ref span26[1]; + index2++; + ref QuestStep reference86 = ref span112[index2]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, null, new Vector3(-109.40343f, 60.039776f, -612.03217f), 612) { Mount = false, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = 7217u; + index3 = 1; + List list113 = new List(index3); + CollectionsMarshal.SetCount(list113, index3); + Span span113 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span113[num3] = 7217u; obj86.KillEnemyDataIds = list113; obj86.CombatDelaySecondsAtStart = 0f; reference86 = obj86; - span26[2] = new QuestStep(EInteractionType.Interact, 1022405u, new Vector3(-106.82843f, 60.07189f, -609.49115f), 612); + index2++; + span112[index2] = new QuestStep(EInteractionType.Interact, 1022405u, new Vector3(-106.82843f, 60.07189f, -609.49115f), 612); obj85.Steps = list112; reference85 = obj85; - ref QuestSequence reference87 = ref span25[5]; + num++; + ref QuestSequence reference87 = ref span107[num]; QuestSequence obj87 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1022411u, new Vector3(-107.927124f, 60.035603f, -609.76575f), 612); + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.Interact, 1022411u, new Vector3(-107.927124f, 60.035603f, -609.76575f), 612); obj87.Steps = list114; reference87 = obj87; - ref QuestSequence reference88 = ref span25[6]; + num++; + ref QuestSequence reference88 = ref span107[num]; QuestSequence obj88 = new QuestSequence { Sequence = 6 @@ -154411,22 +185859,27 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1022412u, new Vector3(103.77649f, 118.18349f, -707.393f), 620) + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.Interact, 1022412u, new Vector3(103.77649f, 118.18349f, -707.393f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj88.Steps = list115; reference88 = obj88; - ref QuestSequence reference89 = ref span25[7]; + num++; + ref QuestSequence reference89 = ref span107[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023728u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023728u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { Fly = true, NextQuestId = new QuestId(2429) @@ -154440,13 +185893,16 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "plogon_enjoyer"; + Span span117 = CollectionsMarshal.AsSpan(list117); + index = 0; + span117[index] = "plogon_enjoyer"; questRoot14.Author = list117; - num = 9; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span27 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference90 = ref span27[0]; + index = 9; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + Span span118 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference90 = ref span118[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -154454,7 +185910,9 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023728u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023728u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, SkipConditions = new SkipConditions @@ -154467,21 +185925,25 @@ public static class AssemblyQuestLoader }; obj90.Steps = list119; reference90 = obj90; - ref QuestSequence reference91 = ref span27[1]; + num++; + ref QuestSequence reference91 = ref span118[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1022437u, new Vector3(81.467896f, 118.391884f, -792.7825f), 620) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.Interact, 1022437u, new Vector3(81.467896f, 118.391884f, -792.7825f), 620) { Fly = true }; obj91.Steps = list120; reference91 = obj91; - ref QuestSequence reference92 = ref span27[2]; + num++; + ref QuestSequence reference92 = ref span118[num]; QuestSequence obj92 = new QuestSequence { Sequence = 2 @@ -154489,7 +185951,9 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1022438u, new Vector3(-61.112427f, -0.002525447f, -67.67377f), 635) + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.Interact, 1022438u, new Vector3(-61.112427f, -0.002525447f, -67.67377f), 635) { Mount = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -154501,22 +185965,26 @@ public static class AssemblyQuestLoader }; obj92.Steps = list121; reference92 = obj92; - ref QuestSequence reference93 = ref span27[3]; + num++; + ref QuestSequence reference93 = ref span118[num]; QuestSequence obj93 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1023728u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.Interact, 1023728u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj93.Steps = list122; reference93 = obj93; - ref QuestSequence reference94 = ref span27[4]; + num++; + ref QuestSequence reference94 = ref span118[num]; QuestSequence obj94 = new QuestSequence { Sequence = 4 @@ -154524,7 +185992,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1022439u, new Vector3(162.40173f, 49.7417f, -251.9112f), 612) + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.Interact, 1022439u, new Vector3(162.40173f, 49.7417f, -251.9112f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -154536,26 +186006,31 @@ public static class AssemblyQuestLoader }; obj94.Steps = list123; reference94 = obj94; - ref QuestSequence reference95 = ref span27[5]; + num++; + ref QuestSequence reference95 = ref span118[num]; QuestSequence obj95 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022442u, new Vector3(-575.1583f, 110.899315f, -324.69672f), 612) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022442u, new Vector3(-575.1583f, 110.899315f, -324.69672f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj95.Steps = list124; reference95 = obj95; - span27[6] = new QuestSequence + num++; + span118[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference96 = ref span27[7]; + num++; + ref QuestSequence reference96 = ref span118[num]; QuestSequence obj96 = new QuestSequence { Sequence = 7 @@ -154563,21 +186038,26 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1022446u, new Vector3(-586.2974f, 113.00655f, -312.7337f), 612) + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.Interact, 1022446u, new Vector3(-586.2974f, 113.00655f, -312.7337f), 612) { StopDistance = 4f }; obj96.Steps = list125; reference96 = obj96; - ref QuestSequence reference97 = ref span27[8]; + num++; + ref QuestSequence reference97 = ref span118[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, @@ -154592,13 +186072,16 @@ public static class AssemblyQuestLoader num = 1; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - CollectionsMarshal.AsSpan(list127)[0] = "plogon_enjoyer"; + Span span127 = CollectionsMarshal.AsSpan(list127); + index = 0; + span127[index] = "plogon_enjoyer"; questRoot15.Author = list127; - num = 6; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - Span span28 = CollectionsMarshal.AsSpan(list128); - ref QuestSequence reference98 = ref span28[0]; + index = 6; + List list128 = new List(index); + CollectionsMarshal.SetCount(list128, index); + Span span128 = CollectionsMarshal.AsSpan(list128); + num = 0; + ref QuestSequence reference98 = ref span128[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 @@ -154606,7 +186089,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list129)[0]; + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + ref QuestStep reference99 = ref span129[index2]; QuestStep obj99 = new QuestStep(EInteractionType.AcceptQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, @@ -154621,7 +186106,9 @@ public static class AssemblyQuestLoader num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = new DialogueChoice + Span span130 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span130[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMNK700_02430_Q1_000_000"), @@ -154631,21 +186118,25 @@ public static class AssemblyQuestLoader reference99 = obj99; obj98.Steps = list129; reference98 = obj98; - ref QuestSequence reference100 = ref span28[1]; + num++; + ref QuestSequence reference100 = ref span128[num]; QuestSequence obj100 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1022532u, new Vector3(617.6089f, 271.0004f, -463.1266f), 620) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span131[num2] = new QuestStep(EInteractionType.Interact, 1022532u, new Vector3(617.6089f, 271.0004f, -463.1266f), 620) { Fly = true }; obj100.Steps = list131; reference100 = obj100; - ref QuestSequence reference101 = ref span28[2]; + num++; + ref QuestSequence reference101 = ref span128[num]; QuestSequence obj101 = new QuestSequence { Sequence = 2 @@ -154653,7 +186144,9 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022548u, new Vector3(75.638916f, 62.111427f, -665.3696f), 612) + Span span132 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span132[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022548u, new Vector3(75.638916f, 62.111427f, -665.3696f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -154665,37 +186158,47 @@ public static class AssemblyQuestLoader }; obj101.Steps = list132; reference101 = obj101; - span28[3] = new QuestSequence + num++; + span128[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference102 = ref span28[4]; + num++; + ref QuestSequence reference102 = ref span128[num]; QuestSequence obj102 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - Span span29 = CollectionsMarshal.AsSpan(list133); - ref QuestStep reference103 = ref span29[0]; + index2 = 3; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + ref QuestStep reference103 = ref span133[num2]; QuestStep obj103 = new QuestStep(EInteractionType.Interact, 1022539u, new Vector3(54.36792f, 118.22339f, -785.12244f), 620) { StopDistance = 7f }; - num3 = 6; - List list134 = new List(num3); - CollectionsMarshal.SetCount(list134, num3); - Span span30 = CollectionsMarshal.AsSpan(list134); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list134 = new List(index3); + CollectionsMarshal.SetCount(list134, index3); + Span span134 = CollectionsMarshal.AsSpan(list134); + num3 = 0; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj103.CompletionQuestVariablesFlags = list134; reference103 = obj103; - ref QuestStep reference104 = ref span29[1]; + num2++; + ref QuestStep reference104 = ref span133[num2]; QuestStep obj104 = new QuestStep(EInteractionType.Interact, 1022538u, new Vector3(51.31604f, 118.32745f, -786.9841f), 620) { StopDistance = 7f @@ -154703,35 +186206,49 @@ public static class AssemblyQuestLoader num3 = 6; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - Span span31 = CollectionsMarshal.AsSpan(list135); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span135 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj104.CompletionQuestVariablesFlags = list135; reference104 = obj104; - ref QuestStep reference105 = ref span29[2]; + num2++; + ref QuestStep reference105 = ref span133[num2]; QuestStep obj105 = new QuestStep(EInteractionType.Interact, 1022392u, new Vector3(53.147095f, 118.4737f, -788.4489f), 620) { StopDistance = 7f }; - num3 = 6; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span32 = CollectionsMarshal.AsSpan(list136); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list136 = new List(index3); + CollectionsMarshal.SetCount(list136, index3); + Span span136 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj105.CompletionQuestVariablesFlags = list136; reference105 = obj105; obj102.Steps = list133; reference102 = obj102; - ref QuestSequence reference106 = ref span28[5]; + num++; + ref QuestSequence reference106 = ref span128[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -154739,7 +186256,9 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { StopDistance = 7f, NextQuestId = new QuestId(3211) @@ -154753,22 +186272,26 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "JerryWester"; + Span span138 = CollectionsMarshal.AsSpan(list138); + index = 0; + span138[index] = "JerryWester"; questRoot16.Author = list138; - num = 5; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span33 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference107 = ref span33[0]; + index = 5; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + Span span139 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference107 = ref span139[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - Span span34 = CollectionsMarshal.AsSpan(list140); - ref QuestStep reference108 = ref span34[0]; + index2 = 2; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + ref QuestStep reference108 = ref span140[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -154779,22 +186302,28 @@ public static class AssemblyQuestLoader num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = 351; + Span span141 = CollectionsMarshal.AsSpan(list141); + index3 = 0; + span141[index3] = 351; skipStepConditions3.InTerritory = list141; skipConditions4.StepIf = skipStepConditions3; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = 351; + index3 = 1; + List list142 = new List(index3); + CollectionsMarshal.SetCount(list142, index3); + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span142[num3] = 351; skipAetheryteCondition2.InTerritory = list142; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition2; obj108.SkipConditions = skipConditions4; reference108 = obj108; - span34[1] = new QuestStep(EInteractionType.AcceptQuest, 1018330u, new Vector3(-4.196289f, 0.018040119f, -6.6377563f), 351); + num2++; + span140[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018330u, new Vector3(-4.196289f, 0.018040119f, -6.6377563f), 351); obj107.Steps = list140; reference107 = obj107; - ref QuestSequence reference109 = ref span33[1]; + num++; + ref QuestSequence reference109 = ref span139[num]; QuestSequence obj109 = new QuestSequence { Sequence = 1 @@ -154802,25 +186331,31 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1020284u, new Vector3(-3.3112793f, 0.018040119f, -6.881897f), 351); + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.Interact, 1020284u, new Vector3(-3.3112793f, 0.018040119f, -6.881897f), 351); obj109.Steps = list143; reference109 = obj109; - ref QuestSequence reference110 = ref span33[2]; + num++; + ref QuestSequence reference110 = ref span139[num]; QuestSequence obj110 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1020300u, new Vector3(24.795776f, 6.1891203f, 401.9989f), 152) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.Interact, 1020300u, new Vector3(24.795776f, 6.1891203f, 401.9989f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj110.Steps = list144; reference110 = obj110; - ref QuestSequence reference111 = ref span33[3]; + num++; + ref QuestSequence reference111 = ref span139[num]; QuestSequence obj111 = new QuestSequence { Sequence = 3 @@ -154828,7 +186363,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list145)[0]; + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + ref QuestStep reference112 = ref span145[index2]; QuestStep obj112 = new QuestStep(EInteractionType.Interact, 1020303u, new Vector3(26.962646f, 6.1844764f, 400.99182f), 152) { StopDistance = 7f @@ -154836,7 +186373,9 @@ public static class AssemblyQuestLoader num3 = 1; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new DialogueChoice + Span span146 = CollectionsMarshal.AsSpan(list146); + index3 = 0; + span146[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDA101_02446_WARP_YESNO_TITLE_001") @@ -154845,21 +186384,25 @@ public static class AssemblyQuestLoader reference112 = obj112; obj111.Steps = list145; reference111 = obj111; - ref QuestSequence reference113 = ref span33[4]; + num++; + ref QuestSequence reference113 = ref span139[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - Span span35 = CollectionsMarshal.AsSpan(list147); - span35[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 612) + index2 = 3; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 612) { Aetheryte = EAetheryteLocation.FringesCastrumOriens }; - span35[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-612.8515f, 130f, -506.81757f), 612); - span35[2] = new QuestStep(EInteractionType.CompleteQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) + num2++; + span147[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-612.8515f, 130f, -506.81757f), 612); + num2++; + span147[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) { StopDistance = 7f }; @@ -154872,13 +186415,16 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; + Span span148 = CollectionsMarshal.AsSpan(list148); + index = 0; + span148[index] = "JerryWester"; questRoot17.Author = list148; - num = 6; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span36 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference114 = ref span36[0]; + index = 6; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + Span span149 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference114 = ref span149[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -154886,7 +186432,9 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020527u, new Vector3(-612.0852f, 130f, -504.02078f), 612) + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020527u, new Vector3(-612.0852f, 130f, -504.02078f), 612) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -154900,18 +186448,22 @@ public static class AssemblyQuestLoader }; obj114.Steps = list150; reference114 = obj114; - ref QuestSequence reference115 = ref span36[1]; + num++; + ref QuestSequence reference115 = ref span149[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1020311u, new Vector3(-481.2848f, 96.387344f, -341.26807f), 612); + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span151[num2] = new QuestStep(EInteractionType.Interact, 1020311u, new Vector3(-481.2848f, 96.387344f, -341.26807f), 612); obj115.Steps = list151; reference115 = obj115; - ref QuestSequence reference116 = ref span36[2]; + num++; + ref QuestSequence reference116 = ref span149[num]; QuestSequence obj116 = new QuestSequence { Sequence = 2 @@ -154919,35 +186471,42 @@ public static class AssemblyQuestLoader num2 = 2; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span37 = CollectionsMarshal.AsSpan(list152); - span37[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007965u, new Vector3(-487.26636f, 76.70703f, -249.56134f), 612) + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span152[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007965u, new Vector3(-487.26636f, 76.70703f, -249.56134f), 612) { AetherCurrentId = 2818133u }; - span37[1] = new QuestStep(EInteractionType.Interact, 1020316u, new Vector3(-213.51953f, 59.159065f, -531.426f), 612) + index2++; + span152[index2] = new QuestStep(EInteractionType.Interact, 1020316u, new Vector3(-213.51953f, 59.159065f, -531.426f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj116.Steps = list152; reference116 = obj116; - ref QuestSequence reference117 = ref span36[3]; + num++; + ref QuestSequence reference117 = ref span149[num]; QuestSequence obj117 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - Span span38 = CollectionsMarshal.AsSpan(list153); - span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.70333f, 58.571022f, -581.12805f), 612); - span38[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007967u, new Vector3(155.84033f, 53.3302f, -499.44305f), 612) + index2 = 3; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span153[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.70333f, 58.571022f, -581.12805f), 612); + num2++; + span153[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007967u, new Vector3(155.84033f, 53.3302f, -499.44305f), 612) { AetherCurrentId = 2818135u }; - span38[2] = new QuestStep(EInteractionType.Interact, 1020321u, new Vector3(447.77588f, 61.497482f, -543.72473f), 612); + num2++; + span153[num2] = new QuestStep(EInteractionType.Interact, 1020321u, new Vector3(447.77588f, 61.497482f, -543.72473f), 612); obj117.Steps = list153; reference117 = obj117; - ref QuestSequence reference118 = ref span36[4]; + num++; + ref QuestSequence reference118 = ref span149[num]; QuestSequence obj118 = new QuestSequence { Sequence = 4 @@ -154955,21 +186514,26 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(484.6969f, 61.72069f, -558.6724f), 612) + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(484.6969f, 61.72069f, -558.6724f), 612) { TargetTerritoryId = (ushort)635 }; obj118.Steps = list154; reference118 = obj118; - ref QuestSequence reference119 = ref span36[5]; + num++; + ref QuestSequence reference119 = ref span149[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020329u, new Vector3(-32.974792f, 18.045086f, 129.41174f), 635); + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span155[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020329u, new Vector3(-32.974792f, 18.045086f, 129.41174f), 635); obj119.Steps = list155; reference119 = obj119; questRoot17.QuestSequence = list149; @@ -154979,13 +186543,16 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - CollectionsMarshal.AsSpan(list156)[0] = "JerryWester"; + Span span156 = CollectionsMarshal.AsSpan(list156); + index = 0; + span156[index] = "JerryWester"; questRoot18.Author = list156; - num = 2; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - Span span39 = CollectionsMarshal.AsSpan(list157); - ref QuestSequence reference120 = ref span39[0]; + index = 2; + List list157 = new List(index); + CollectionsMarshal.SetCount(list157, index); + Span span157 = CollectionsMarshal.AsSpan(list157); + num = 0; + ref QuestSequence reference120 = ref span157[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -154993,31 +186560,38 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020329u, new Vector3(-32.974792f, 18.045086f, 129.41174f), 635); + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020329u, new Vector3(-32.974792f, 18.045086f, 129.41174f), 635); obj120.Steps = list158; reference120 = obj120; - ref QuestSequence reference121 = ref span39[1]; + num++; + ref QuestSequence reference121 = ref span157[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span40 = CollectionsMarshal.AsSpan(list159); - span40[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) + index2 = 4; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) { AethernetShard = EAetheryteLocation.RhalgrsReachWest }; - span40[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 635) + num2++; + span159[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 635) { Aetheryte = EAetheryteLocation.RhalgrsReach }; - span40[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) + num2++; + span159[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) { AethernetShard = EAetheryteLocation.RhalgrsReachNorthEast }; - span40[3] = new QuestStep(EInteractionType.CompleteQuest, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635); + num2++; + span159[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635); obj121.Steps = list159; reference121 = obj121; questRoot18.QuestSequence = list157; @@ -155027,13 +186601,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "JerryWester"; + Span span160 = CollectionsMarshal.AsSpan(list160); + index = 0; + span160[index] = "JerryWester"; questRoot19.Author = list160; - num = 6; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span41 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference122 = ref span41[0]; + index = 6; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + Span span161 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference122 = ref span161[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -155041,7 +186618,9 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020332u, new Vector3(164.90417f, 13.023668f, -91.50836f), 635) + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020332u, new Vector3(164.90417f, 13.023668f, -91.50836f), 635) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -155055,18 +186634,22 @@ public static class AssemblyQuestLoader }; obj122.Steps = list162; reference122 = obj122; - ref QuestSequence reference123 = ref span41[1]; + num++; + ref QuestSequence reference123 = ref span161[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1020339u, new Vector3(95.2926f, 1.2333723f, -78.23309f), 635); + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span163[num2] = new QuestStep(EInteractionType.Interact, 1020339u, new Vector3(95.2926f, 1.2333723f, -78.23309f), 635); obj123.Steps = list163; reference123 = obj123; - ref QuestSequence reference124 = ref span41[2]; + num++; + ref QuestSequence reference124 = ref span161[num]; QuestSequence obj124 = new QuestSequence { Sequence = 2 @@ -155074,21 +186657,27 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1020345u, new Vector3(-1.8463745f, 2.6970465f, -68.833435f), 635); + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span164[index2] = new QuestStep(EInteractionType.Interact, 1020345u, new Vector3(-1.8463745f, 2.6970465f, -68.833435f), 635); obj124.Steps = list164; reference124 = obj124; - ref QuestSequence reference125 = ref span41[3]; + num++; + ref QuestSequence reference125 = ref span161[num]; QuestSequence obj125 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1020346u, new Vector3(-117.60132f, 0.5980477f, -65.812195f), 635); + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span165[num2] = new QuestStep(EInteractionType.Interact, 1020346u, new Vector3(-117.60132f, 0.5980477f, -65.812195f), 635); obj125.Steps = list165; reference125 = obj125; - ref QuestSequence reference126 = ref span41[4]; + num++; + ref QuestSequence reference126 = ref span161[num]; QuestSequence obj126 = new QuestSequence { Sequence = 4 @@ -155096,7 +186685,9 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1020344u, new Vector3(86.65588f, 0f, 88.70068f), 635) + Span span166 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span166[index2] = new QuestStep(EInteractionType.Interact, 1020344u, new Vector3(86.65588f, 0f, 88.70068f), 635) { AethernetShortcut = new AethernetShortcut { @@ -155106,15 +186697,18 @@ public static class AssemblyQuestLoader }; obj126.Steps = list166; reference126 = obj126; - ref QuestSequence reference127 = ref span41[5]; + num++; + ref QuestSequence reference127 = ref span161[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020347u, new Vector3(59.67798f, -8.1507994E-13f, -4.0742188f), 635); + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020347u, new Vector3(59.67798f, -8.1507994E-13f, -4.0742188f), 635); obj127.Steps = list167; reference127 = obj127; questRoot19.QuestSequence = list161; @@ -155128,13 +186722,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -155142,7 +186739,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020341u, new Vector3(61.17334f, -9.369123E-13f, -4.6845703f), 635) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020341u, new Vector3(61.17334f, -9.369123E-13f, -4.6845703f), 635) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -155156,18 +186755,22 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -155175,7 +186778,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020333u, new Vector3(164.14124f, 13.023669f, -92.30188f), 635); + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020333u, new Vector3(164.14124f, 13.023669f, -92.30188f), 635); obj3.Steps = list5; reference3 = obj3; questRoot.QuestSequence = list2; @@ -155185,21 +186790,26 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "JerryWester"; + Span span6 = CollectionsMarshal.AsSpan(list6); + index = 0; + span6[index] = "JerryWester"; questRoot2.Author = list6; - num = 5; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span2 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span2[0]; + index = 5; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + Span span7 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span7[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020337u, new Vector3(171.31299f, 13.02367f, -89.951965f), 635) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020337u, new Vector3(171.31299f, 13.02367f, -89.951965f), 635) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -155213,7 +186823,8 @@ public static class AssemblyQuestLoader }; obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span2[1]; + num++; + ref QuestSequence reference5 = ref span7[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -155221,26 +186832,32 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1020395u, new Vector3(-37.67456f, 18.448887f, 133.28748f), 635); + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.Interact, 1020395u, new Vector3(-37.67456f, 18.448887f, 133.28748f), 635); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[2]; + num++; + ref QuestSequence reference6 = ref span7[num]; QuestSequence obj6 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span3 = CollectionsMarshal.AsSpan(list10); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-30.398779f, 12.536386f, 167.62189f), 635) + index2 = 2; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-30.398779f, 12.536386f, 167.62189f), 635) { TargetTerritoryId = (ushort)612 }; - span3[1] = new QuestStep(EInteractionType.Interact, 1020498u, new Vector3(158.12915f, 49.714592f, -475.27277f), 612); + num2++; + span10[num2] = new QuestStep(EInteractionType.Interact, 1020498u, new Vector3(158.12915f, 49.714592f, -475.27277f), 612); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[3]; + num++; + ref QuestSequence reference7 = ref span7[num]; QuestSequence obj7 = new QuestSequence { Sequence = 3 @@ -155248,7 +186865,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + ref QuestStep reference8 = ref span11[index2]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, 2008157u, new Vector3(58.426758f, 51.895874f, -482.32245f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -155256,22 +186875,27 @@ public static class AssemblyQuestLoader int num3 = 2; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = 7553u; - span4[1] = 7554u; + Span span12 = CollectionsMarshal.AsSpan(list12); + int num4 = 0; + span12[num4] = 7553u; + num4++; + span12[num4] = 7554u; obj8.KillEnemyDataIds = list12; reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference9 = ref span2[4]; + num++; + ref QuestSequence reference9 = ref span7[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020351u, new Vector3(-95.84198f, 59.801033f, -551.9341f), 612); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020351u, new Vector3(-95.84198f, 59.801033f, -551.9341f), 612); obj9.Steps = list13; reference9 = obj9; questRoot2.QuestSequence = list7; @@ -155281,13 +186905,16 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "JerryWester"; + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = "JerryWester"; questRoot3.Author = list14; - num = 3; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference10 = ref span5[0]; + index = 3; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference10 = ref span15[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -155295,21 +186922,27 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020351u, new Vector3(-95.84198f, 59.801033f, -551.9341f), 612); + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020351u, new Vector3(-95.84198f, 59.801033f, -551.9341f), 612); obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span5[1]; + num++; + ref QuestSequence reference11 = ref span15[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1020353u, new Vector3(-394.85773f, 105.037674f, -425.5589f), 612); + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.Interact, 1020353u, new Vector3(-394.85773f, 105.037674f, -425.5589f), 612); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span5[2]; + num++; + ref QuestSequence reference12 = ref span15[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -155317,7 +186950,9 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; @@ -155330,21 +186965,26 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "JerryWester"; + Span span19 = CollectionsMarshal.AsSpan(list19); + index = 0; + span19[index] = "JerryWester"; questRoot4.Author = list19; - num = 4; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span6 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference13 = ref span6[0]; + index = 4; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + Span span20 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference13 = ref span20[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -155357,7 +186997,8 @@ public static class AssemblyQuestLoader }; obj13.Steps = list21; reference13 = obj13; - ref QuestSequence reference14 = ref span6[1]; + num++; + ref QuestSequence reference14 = ref span20[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -155365,35 +187006,42 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span7 = CollectionsMarshal.AsSpan(list22); - span7[0] = new QuestStep(EInteractionType.AcceptQuest, 1019517u, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612) + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019517u, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612) { PickUpQuestId = new QuestId(2639) }; - ref QuestStep reference15 = ref span7[1]; + index2++; + ref QuestStep reference15 = ref span22[index2]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, 2007955u, new Vector3(-228.22925f, 59.861084f, -409.5064f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span8 = CollectionsMarshal.AsSpan(list23); - span8[0] = 8048u; - span8[1] = 8049u; + num4 = 2; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + Span span23 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span23[num3] = 8048u; + num3++; + span23[num3] = 8049u; obj15.KillEnemyDataIds = list23; reference15 = obj15; obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference16 = ref span6[2]; + num++; + ref QuestSequence reference16 = ref span20[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020503u, new Vector3(-494.16345f, 82.14899f, -266.8651f), 612) + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020503u, new Vector3(-494.16345f, 82.14899f, -266.8651f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -155403,7 +187051,8 @@ public static class AssemblyQuestLoader }; obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference17 = ref span6[3]; + num++; + ref QuestSequence reference17 = ref span20[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -155411,7 +187060,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020361u, new Vector3(-507.4388f, 86.34846f, -289.84515f), 612) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020361u, new Vector3(-507.4388f, 86.34846f, -289.84515f), 612) { StopDistance = 5f }; @@ -155424,21 +187075,26 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "JerryWester"; + Span span26 = CollectionsMarshal.AsSpan(list26); + index = 0; + span26[index] = "JerryWester"; questRoot5.Author = list26; - num = 2; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span9 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference18 = ref span9[0]; + index = 2; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + Span span27 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference18 = ref span27[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020361u, new Vector3(-507.4388f, 86.34846f, -289.84515f), 612) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020361u, new Vector3(-507.4388f, 86.34846f, -289.84515f), 612) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -155452,7 +187108,8 @@ public static class AssemblyQuestLoader }; obj18.Steps = list28; reference18 = obj18; - ref QuestSequence reference19 = ref span9[1]; + num++; + ref QuestSequence reference19 = ref span27[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -155460,7 +187117,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020337u, new Vector3(171.31299f, 13.02367f, -89.951965f), 635) + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020337u, new Vector3(171.31299f, 13.02367f, -89.951965f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -155485,21 +187144,26 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "JerryWester"; + Span span30 = CollectionsMarshal.AsSpan(list30); + index = 0; + span30[index] = "JerryWester"; questRoot6.Author = list30; - num = 6; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span10 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference20 = ref span10[0]; + index = 6; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + Span span31 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference20 = ref span31[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020338u, new Vector3(170.30591f, 13.02367f, -93.06476f), 635) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020338u, new Vector3(170.30591f, 13.02367f, -93.06476f), 635) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -155513,7 +187177,8 @@ public static class AssemblyQuestLoader }; obj20.Steps = list32; reference20 = obj20; - ref QuestSequence reference21 = ref span10[1]; + num++; + ref QuestSequence reference21 = ref span31[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -155521,24 +187186,30 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1020366u, new Vector3(114.18323f, 0.6520416f, -11.673218f), 635); + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.Interact, 1020366u, new Vector3(114.18323f, 0.6520416f, -11.673218f), 635); obj21.Steps = list33; reference21 = obj21; - ref QuestSequence reference22 = ref span10[2]; + num++; + ref QuestSequence reference22 = ref span31[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(132.8247f, -0.57445294f, -3.299387f), 635) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(132.8247f, -0.57445294f, -3.299387f), 635) { TargetTerritoryId = (ushort)620 }; obj22.Steps = list34; reference22 = obj22; - ref QuestSequence reference23 = ref span10[3]; + num++; + ref QuestSequence reference23 = ref span31[num]; QuestSequence obj23 = new QuestSequence { Sequence = 3 @@ -155546,24 +187217,30 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1020368u, new Vector3(-641.2604f, 50.867527f, -784.1764f), 620) + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.Interact, 1020368u, new Vector3(-641.2604f, 50.867527f, -784.1764f), 620) { StopDistance = 7f }; obj23.Steps = list35; reference23 = obj23; - ref QuestSequence reference24 = ref span10[4]; + num++; + ref QuestSequence reference24 = ref span31[num]; QuestSequence obj24 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1020370u, new Vector3(-384.7563f, 52.201828f, -636.4691f), 620); + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.Interact, 1020370u, new Vector3(-384.7563f, 52.201828f, -636.4691f), 620); obj24.Steps = list36; reference24 = obj24; - ref QuestSequence reference25 = ref span10[5]; + num++; + ref QuestSequence reference25 = ref span31[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -155571,7 +187248,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020372u, new Vector3(36.423218f, 117.95596f, -742.2446f), 620); + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020372u, new Vector3(36.423218f, 117.95596f, -742.2446f), 620); obj25.Steps = list37; reference25 = obj25; questRoot6.QuestSequence = list31; @@ -155581,24 +187260,30 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "JerryWester"; + Span span38 = CollectionsMarshal.AsSpan(list38); + index = 0; + span38[index] = "JerryWester"; questRoot7.Author = list38; - num = 3; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span11 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference26 = ref span11[0]; + index = 3; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + Span span39 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference26 = ref span39[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020372u, new Vector3(36.423218f, 117.95596f, -742.2446f), 620); + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020372u, new Vector3(36.423218f, 117.95596f, -742.2446f), 620); obj26.Steps = list40; reference26 = obj26; - ref QuestSequence reference27 = ref span11[1]; + num++; + ref QuestSequence reference27 = ref span39[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -155606,30 +187291,36 @@ public static class AssemblyQuestLoader num2 = 3; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span12 = CollectionsMarshal.AsSpan(list41); - span12[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 620) + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 620) { Aetheryte = EAetheryteLocation.PeaksAlaGannha }; - span12[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007976u, new Vector3(202.86865f, 133.89783f, -753.1395f), 620) + index2++; + span41[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007976u, new Vector3(202.86865f, 133.89783f, -753.1395f), 620) { AetherCurrentId = 2818149u }; - span12[2] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) + index2++; + span41[index2] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj27.Steps = list41; reference27 = obj27; - ref QuestSequence reference28 = ref span11[2]; + num++; + ref QuestSequence reference28 = ref span39[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020374u, new Vector3(89.21948f, 119.4052f, -684.7792f), 620); + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020374u, new Vector3(89.21948f, 119.4052f, -684.7792f), 620); obj28.Steps = list42; reference28 = obj28; questRoot7.QuestSequence = list39; @@ -155639,13 +187330,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; + Span span43 = CollectionsMarshal.AsSpan(list43); + index = 0; + span43[index] = "JerryWester"; questRoot8.Author = list43; - num = 4; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span13 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference29 = ref span13[0]; + index = 4; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + Span span44 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference29 = ref span44[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -155653,7 +187347,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020376u, new Vector3(95.44519f, 118.15579f, -758.053f), 620) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020376u, new Vector3(95.44519f, 118.15579f, -758.053f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, SkipConditions = new SkipConditions @@ -155666,18 +187362,22 @@ public static class AssemblyQuestLoader }; obj29.Steps = list45; reference29 = obj29; - ref QuestSequence reference30 = ref span13[1]; + num++; + ref QuestSequence reference30 = ref span44[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1020375u, new Vector3(78.87378f, 118.26358f, -779.69025f), 620); + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.Interact, 1020375u, new Vector3(78.87378f, 118.26358f, -779.69025f), 620); obj30.Steps = list46; reference30 = obj30; - ref QuestSequence reference31 = ref span13[2]; + num++; + ref QuestSequence reference31 = ref span44[num]; QuestSequence obj31 = new QuestSequence { Sequence = 2 @@ -155685,18 +187385,23 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1020374u, new Vector3(89.21948f, 119.4052f, -684.7792f), 620); + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.Interact, 1020374u, new Vector3(89.21948f, 119.4052f, -684.7792f), 620); obj31.Steps = list47; reference31 = obj31; - ref QuestSequence reference32 = ref span13[3]; + num++; + ref QuestSequence reference32 = ref span44[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020379u, new Vector3(85.40466f, 118.15579f, -719.96643f), 620) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020379u, new Vector3(85.40466f, 118.15579f, -719.96643f), 620) { StopDistance = 5f }; @@ -155709,13 +187414,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "JerryWester"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "JerryWester"; questRoot9.Author = list49; - num = 6; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span14 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference33 = ref span14[0]; + index = 6; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference33 = ref span50[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -155723,7 +187431,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020379u, new Vector3(85.40466f, 118.15579f, -719.96643f), 620) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020379u, new Vector3(85.40466f, 118.15579f, -719.96643f), 620) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, @@ -155737,20 +187447,24 @@ public static class AssemblyQuestLoader }; obj33.Steps = list51; reference33 = obj33; - ref QuestSequence reference34 = ref span14[1]; + num++; + ref QuestSequence reference34 = ref span50[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - Span span15 = CollectionsMarshal.AsSpan(list52); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-98.166626f, 104.979965f, -480.49606f), 620); - span15[1] = new QuestStep(EInteractionType.Interact, 2008681u, new Vector3(-257.70966f, 102.311646f, -381.36877f), 620); + index2 = 2; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-98.166626f, 104.979965f, -480.49606f), 620); + num2++; + span52[num2] = new QuestStep(EInteractionType.Interact, 2008681u, new Vector3(-257.70966f, 102.311646f, -381.36877f), 620); obj34.Steps = list52; reference34 = obj34; - ref QuestSequence reference35 = ref span14[2]; + num++; + ref QuestSequence reference35 = ref span50[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -155758,7 +187472,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - ref QuestStep reference36 = ref CollectionsMarshal.AsSpan(list53)[0]; + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + ref QuestStep reference36 = ref span53[index2]; QuestStep obj36 = new QuestStep(EInteractionType.Combat, null, new Vector3(-281.2972f, 104.584076f, -359.10394f), 620) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -155766,46 +187482,56 @@ public static class AssemblyQuestLoader num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = 7514u; + Span span54 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span54[num4] = 7514u; obj36.KillEnemyDataIds = list54; reference36 = obj36; obj35.Steps = list53; reference35 = obj35; - ref QuestSequence reference37 = ref span14[3]; + num++; + ref QuestSequence reference37 = ref span50[num]; QuestSequence obj37 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span16 = CollectionsMarshal.AsSpan(list55); - span16[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007978u, new Vector3(-271.2597f, 157.91565f, -280.2625f), 620) + index2 = 4; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007978u, new Vector3(-271.2597f, 157.91565f, -280.2625f), 620) { AetherCurrentId = 2818151u }; - span16[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-270.3264f, 202.14117f, -232.75537f), 620); - span16[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-270.3756f, 200.71988f, -237.96118f), 620) + num2++; + span55[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-270.3264f, 202.14117f, -232.75537f), 620); + num2++; + span55[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-270.3756f, 200.71988f, -237.96118f), 620) { DisableNavmesh = true }; - ref QuestStep reference38 = ref span16[3]; + num2++; + ref QuestStep reference38 = ref span55[num2]; QuestStep obj38 = new QuestStep(EInteractionType.Combat, null, new Vector3(-281.3983f, 200.71988f, -294.9439f), 620) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - Span span17 = CollectionsMarshal.AsSpan(list56); - span17[0] = 7555u; - span17[1] = 8047u; + num4 = 2; + List list56 = new List(num4); + CollectionsMarshal.SetCount(list56, num4); + Span span56 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span56[num3] = 7555u; + num3++; + span56[num3] = 8047u; obj38.KillEnemyDataIds = list56; reference38 = obj38; obj37.Steps = list55; reference37 = obj37; - ref QuestSequence reference39 = ref span14[4]; + num++; + ref QuestSequence reference39 = ref span50[num]; QuestSequence obj39 = new QuestSequence { Sequence = 4 @@ -155813,18 +187539,23 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1020380u, new Vector3(-281.5138f, 200.71988f, -294.0871f), 620); + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.Interact, 1020380u, new Vector3(-281.5138f, 200.71988f, -294.0871f), 620); obj39.Steps = list57; reference39 = obj39; - ref QuestSequence reference40 = ref span14[5]; + num++; + ref QuestSequence reference40 = ref span50[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020382u, new Vector3(-284.596f, 200.71988f, -287.2511f), 620); + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020382u, new Vector3(-284.596f, 200.71988f, -287.2511f), 620); obj40.Steps = list58; reference40 = obj40; questRoot9.QuestSequence = list50; @@ -155834,13 +187565,16 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "JerryWester"; + Span span59 = CollectionsMarshal.AsSpan(list59); + index = 0; + span59[index] = "JerryWester"; questRoot10.Author = list59; - num = 4; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span18 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference41 = ref span18[0]; + index = 4; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + Span span60 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference41 = ref span60[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -155848,29 +187582,35 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020382u, new Vector3(-284.596f, 200.71988f, -287.2511f), 620); + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020382u, new Vector3(-284.596f, 200.71988f, -287.2511f), 620); obj41.Steps = list61; reference41 = obj41; - ref QuestSequence reference42 = ref span18[1]; + num++; + ref QuestSequence reference42 = ref span60[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - Span span19 = CollectionsMarshal.AsSpan(list62); - span19[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-281.5496f, 200.71988f, -258.17767f), 620) + index2 = 2; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-281.5496f, 200.71988f, -258.17767f), 620) { JumpDestination = new JumpDestination { Position = new Vector3(-281.22574f, 192.18245f, -239.78777f) } }; - span19[1] = new QuestStep(EInteractionType.Interact, 2008684u, new Vector3(-200.4273f, 95.26196f, -448.23383f), 620); + num2++; + span62[num2] = new QuestStep(EInteractionType.Interact, 2008684u, new Vector3(-200.4273f, 95.26196f, -448.23383f), 620); obj42.Steps = list62; reference42 = obj42; - ref QuestSequence reference43 = ref span18[2]; + num++; + ref QuestSequence reference43 = ref span60[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -155878,18 +187618,23 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1020385u, new Vector3(-111.711365f, 105.71431f, -364.065f), 620); + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.Interact, 1020385u, new Vector3(-111.711365f, 105.71431f, -364.065f), 620); obj43.Steps = list63; reference43 = obj43; - ref QuestSequence reference44 = ref span18[3]; + num++; + ref QuestSequence reference44 = ref span60[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020387u, new Vector3(-140.94757f, 104.16588f, -401.81586f), 620); + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020387u, new Vector3(-140.94757f, 104.16588f, -401.81586f), 620); obj44.Steps = list64; reference44 = obj44; questRoot10.QuestSequence = list60; @@ -155899,13 +187644,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "JerryWester"; + Span span65 = CollectionsMarshal.AsSpan(list65); + index = 0; + span65[index] = "JerryWester"; questRoot11.Author = list65; - num = 5; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span20 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference45 = ref span20[0]; + index = 5; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + Span span66 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference45 = ref span66[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -155913,24 +187661,30 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020387u, new Vector3(-140.94757f, 104.16588f, -401.81586f), 620); + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020387u, new Vector3(-140.94757f, 104.16588f, -401.81586f), 620); obj45.Steps = list67; reference45 = obj45; - ref QuestSequence reference46 = ref span20[1]; + num++; + ref QuestSequence reference46 = ref span66[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj46.Steps = list68; reference46 = obj46; - ref QuestSequence reference47 = ref span20[2]; + num++; + ref QuestSequence reference47 = ref span66[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 @@ -155938,24 +187692,30 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1020511u, new Vector3(143.81628f, 118.1921f, -732.93665f), 620) + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.Interact, 1020511u, new Vector3(143.81628f, 118.1921f, -732.93665f), 620) { StopDistance = 5f }; obj47.Steps = list69; reference47 = obj47; - ref QuestSequence reference48 = ref span20[3]; + num++; + ref QuestSequence reference48 = ref span66[num]; QuestSequence obj48 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1020512u, new Vector3(35.080444f, 117.831955f, -728.0537f), 620); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.Interact, 1020512u, new Vector3(35.080444f, 117.831955f, -728.0537f), 620); obj48.Steps = list70; reference48 = obj48; - ref QuestSequence reference49 = ref span20[4]; + num++; + ref QuestSequence reference49 = ref span66[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue @@ -155963,8 +187723,9 @@ public static class AssemblyQuestLoader num2 = 2; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span21 = CollectionsMarshal.AsSpan(list71); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(165.07161f, 13.02367f, -91.94302f), 635) + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(165.07161f, 13.02367f, -91.94302f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -155980,7 +187741,8 @@ public static class AssemblyQuestLoader } } }; - span21[1] = new QuestStep(EInteractionType.CompleteQuest, 1020338u, new Vector3(170.30591f, 13.02367f, -93.06476f), 635) + index2++; + span71[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020338u, new Vector3(170.30591f, 13.02367f, -93.06476f), 635) { StopDistance = 7f }; @@ -155993,21 +187755,26 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "JerryWester"; + Span span72 = CollectionsMarshal.AsSpan(list72); + index = 0; + span72[index] = "JerryWester"; questRoot12.Author = list72; - num = 2; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span22 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference50 = ref span22[0]; + index = 2; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + Span span73 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference50 = ref span73[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -156021,7 +187788,8 @@ public static class AssemblyQuestLoader }; obj50.Steps = list74; reference50 = obj50; - ref QuestSequence reference51 = ref span22[1]; + num++; + ref QuestSequence reference51 = ref span73[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -156029,7 +187797,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020390u, new Vector3(164.2633f, 13.02367f, -88.91437f), 635) + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020390u, new Vector3(164.2633f, 13.02367f, -88.91437f), 635) { StopDistance = 5f }; @@ -156042,21 +187812,26 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "JerryWester"; + Span span76 = CollectionsMarshal.AsSpan(list76); + index = 0; + span76[index] = "JerryWester"; questRoot13.Author = list76; - num = 5; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span23 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference52 = ref span23[0]; + index = 5; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + Span span77 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference52 = ref span77[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020332u, new Vector3(164.90417f, 13.023668f, -91.50836f), 635) + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020332u, new Vector3(164.90417f, 13.023668f, -91.50836f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -156069,7 +187844,8 @@ public static class AssemblyQuestLoader }; obj52.Steps = list78; reference52 = obj52; - ref QuestSequence reference53 = ref span23[1]; + num++; + ref QuestSequence reference53 = ref span77[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 @@ -156077,7 +187853,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1020342u, new Vector3(-137.86536f, 0.59805053f, -80.27777f), 635) + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.Interact, 1020342u, new Vector3(-137.86536f, 0.59805053f, -80.27777f), 635) { AethernetShortcut = new AethernetShortcut { @@ -156087,18 +187865,22 @@ public static class AssemblyQuestLoader }; obj53.Steps = list79; reference53 = obj53; - ref QuestSequence reference54 = ref span23[2]; + num++; + ref QuestSequence reference54 = ref span77[num]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1020324u, new Vector3(-35.90454f, 18.50759f, 134.14197f), 635); + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.Interact, 1020324u, new Vector3(-35.90454f, 18.50759f, 134.14197f), 635); obj54.Steps = list80; reference54 = obj54; - ref QuestSequence reference55 = ref span23[3]; + num++; + ref QuestSequence reference55 = ref span77[num]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -156106,26 +187888,31 @@ public static class AssemblyQuestLoader num2 = 2; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span24 = CollectionsMarshal.AsSpan(list81); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-611.21484f, 130f, -503.3509f), 612) + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-611.21484f, 130f, -503.3509f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; - span24[1] = new QuestStep(EInteractionType.Interact, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) + index2++; + span81[index2] = new QuestStep(EInteractionType.Interact, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) { StopDistance = 7f }; obj55.Steps = list81; reference55 = obj55; - ref QuestSequence reference56 = ref span23[4]; + num++; + ref QuestSequence reference56 = ref span77[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020526u, new Vector3(-609.6132f, 130f, -501.12158f), 612) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020526u, new Vector3(-609.6132f, 130f, -501.12158f), 612) { StopDistance = 5f }; @@ -156138,13 +187925,16 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "JerryWester"; + Span span83 = CollectionsMarshal.AsSpan(list83); + index = 0; + span83[index] = "JerryWester"; questRoot14.Author = list83; - num = 3; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span25 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference57 = ref span25[0]; + index = 3; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + Span span84 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference57 = ref span84[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -156152,7 +187942,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020354u, new Vector3(-605.2186f, 130f, -506.2486f), 612) + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020354u, new Vector3(-605.2186f, 130f, -506.2486f), 612) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -156166,15 +187958,18 @@ public static class AssemblyQuestLoader }; obj57.Steps = list85; reference57 = obj57; - ref QuestSequence reference58 = ref span25[1]; + num++; + ref QuestSequence reference58 = ref span84[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020399u, new Vector3(-115.80072f, 40.833466f, -37.766113f), 612) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020399u, new Vector3(-115.80072f, 40.833466f, -37.766113f), 612) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -156183,7 +187978,8 @@ public static class AssemblyQuestLoader }; obj58.Steps = list86; reference58 = obj58; - ref QuestSequence reference59 = ref span25[2]; + num++; + ref QuestSequence reference59 = ref span84[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -156191,7 +187987,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020400u, new Vector3(71.30542f, 0.024691548f, -75.76111f), 635) + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020400u, new Vector3(71.30542f, 0.024691548f, -75.76111f), 635) { StopDistance = 5f }; @@ -156204,21 +188002,26 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "JerryWester"; + Span span88 = CollectionsMarshal.AsSpan(list88); + index = 0; + span88[index] = "JerryWester"; questRoot15.Author = list88; - num = 3; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span26 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference60 = ref span26[0]; + index = 3; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + Span span89 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference60 = ref span89[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020400u, new Vector3(71.30542f, 0.024691548f, -75.76111f), 635) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020400u, new Vector3(71.30542f, 0.024691548f, -75.76111f), 635) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -156232,7 +188035,8 @@ public static class AssemblyQuestLoader }; obj60.Steps = list90; reference60 = obj60; - ref QuestSequence reference61 = ref span26[1]; + num++; + ref QuestSequence reference61 = ref span89[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 @@ -156240,24 +188044,30 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1020411u, new Vector3(50.644653f, 0f, 3.0975342f), 635); + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.Interact, 1020411u, new Vector3(50.644653f, 0f, 3.0975342f), 635); obj61.Steps = list91; reference61 = obj61; - ref QuestSequence reference62 = ref span26[2]; + num++; + ref QuestSequence reference62 = ref span89[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - Span span27 = CollectionsMarshal.AsSpan(list92); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.6558871f, -2.1714334f, -3.1224606f), 635) + index2 = 3; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.6558871f, -2.1714334f, -3.1224606f), 635) { Mount = true }; - span27[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-29.991734f, -0.5866744f, -14.3459f), 635); - span27[2] = new QuestStep(EInteractionType.CompleteQuest, 1020416u, new Vector3(-135.82056f, 0.59805036f, -83.634705f), 635); + num2++; + span92[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-29.991734f, -0.5866744f, -14.3459f), 635); + num2++; + span92[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020416u, new Vector3(-135.82056f, 0.59805036f, -83.634705f), 635); obj62.Steps = list92; reference62 = obj62; questRoot15.QuestSequence = list89; @@ -156267,13 +188077,16 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "JerryWester"; + Span span93 = CollectionsMarshal.AsSpan(list93); + index = 0; + span93[index] = "JerryWester"; questRoot16.Author = list93; - num = 4; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span28 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference63 = ref span28[0]; + index = 4; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + Span span94 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference63 = ref span94[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -156281,7 +188094,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020420u, new Vector3(-139.63531f, 0.598051f, -81.498474f), 635) + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020420u, new Vector3(-139.63531f, 0.598051f, -81.498474f), 635) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -156295,18 +188110,22 @@ public static class AssemblyQuestLoader }; obj63.Steps = list95; reference63 = obj63; - ref QuestSequence reference64 = ref span28[1]; + num++; + ref QuestSequence reference64 = ref span94[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635); + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635); obj64.Steps = list96; reference64 = obj64; - ref QuestSequence reference65 = ref span28[2]; + num++; + ref QuestSequence reference65 = ref span94[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -156314,64 +188133,89 @@ public static class AssemblyQuestLoader num2 = 4; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span29 = CollectionsMarshal.AsSpan(list97); - ref QuestStep reference66 = ref span29[0]; + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + ref QuestStep reference66 = ref span97[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2008158u, new Vector3(-110.21594f, 2.2735596f, -72.95343f), 635); num3 = 6; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - Span span30 = CollectionsMarshal.AsSpan(list98); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span98 = CollectionsMarshal.AsSpan(list98); + num4 = 0; + span98[num4] = null; + num4++; + span98[num4] = null; + num4++; + span98[num4] = null; + num4++; + span98[num4] = null; + num4++; + span98[num4] = null; + num4++; + span98[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list98; reference66 = questStep; - ref QuestStep reference67 = ref span29[1]; + index2++; + ref QuestStep reference67 = ref span97[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2008160u, new Vector3(-133.25708f, 1.8463135f, -56.595703f), 635); - num3 = 6; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span31 = CollectionsMarshal.AsSpan(list99); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list99 = new List(num4); + CollectionsMarshal.SetCount(list99, num4); + Span span99 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list99; reference67 = questStep2; - span29[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-128.45901f, 0.59804773f, -52.17099f), 635) + index2++; + span97[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-128.45901f, 0.59804773f, -52.17099f), 635) { DisableNavmesh = true }; - ref QuestStep reference68 = ref span29[3]; + index2++; + ref QuestStep reference68 = ref span97[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2008159u, new Vector3(-139.23859f, 1.9073486f, -33.707214f), 635); num3 = 6; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - Span span32 = CollectionsMarshal.AsSpan(list100); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span100 = CollectionsMarshal.AsSpan(list100); + num4 = 0; + span100[num4] = null; + num4++; + span100[num4] = null; + num4++; + span100[num4] = null; + num4++; + span100[num4] = null; + num4++; + span100[num4] = null; + num4++; + span100[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list100; reference68 = questStep3; obj65.Steps = list97; reference65 = obj65; - ref QuestSequence reference69 = ref span28[3]; + num++; + ref QuestSequence reference69 = ref span94[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020422u, new Vector3(-85.923584f, -3.615388E-12f, -18.051514f), 635); + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020422u, new Vector3(-85.923584f, -3.615388E-12f, -18.051514f), 635); obj66.Steps = list101; reference69 = obj66; questRoot16.QuestSequence = list94; @@ -156381,13 +188225,16 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "JerryWester"; + Span span102 = CollectionsMarshal.AsSpan(list102); + index = 0; + span102[index] = "JerryWester"; questRoot17.Author = list102; - num = 4; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span33 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference70 = ref span33[0]; + index = 4; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + Span span103 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference70 = ref span103[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -156395,7 +188242,9 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020431u, new Vector3(-91.233765f, -3.968323E-12f, -19.821533f), 635) + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020431u, new Vector3(-91.233765f, -3.968323E-12f, -19.821533f), 635) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -156409,15 +188258,18 @@ public static class AssemblyQuestLoader }; obj67.Steps = list104; reference70 = obj67; - ref QuestSequence reference71 = ref span33[1]; + num++; + ref QuestSequence reference71 = ref span103[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1020400u, new Vector3(71.30542f, 0.024691548f, -75.76111f), 635) + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.Interact, 1020400u, new Vector3(71.30542f, 0.024691548f, -75.76111f), 635) { AethernetShortcut = new AethernetShortcut { @@ -156427,7 +188279,8 @@ public static class AssemblyQuestLoader }; obj68.Steps = list105; reference71 = obj68; - ref QuestSequence reference72 = ref span33[2]; + num++; + ref QuestSequence reference72 = ref span103[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -156435,38 +188288,45 @@ public static class AssemblyQuestLoader num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span34 = CollectionsMarshal.AsSpan(list106); - ref QuestStep reference73 = ref span34[0]; + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + ref QuestStep reference73 = ref span106[index2]; QuestStep obj70 = new QuestStep(EInteractionType.AcceptQuest, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new QuestId(2655); + num4 = 1; + List list107 = new List(num4); + CollectionsMarshal.SetCount(list107, num4); + Span span107 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span107[num3] = new QuestId(2655); skipAetheryteCondition.QuestsCompleted = list107; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj70.SkipConditions = skipConditions; obj70.PickUpQuestId = new QuestId(2655); reference73 = obj70; - span34[1] = new QuestStep(EInteractionType.Interact, 1020432u, new Vector3(-612.3904f, 130.1009f, -481.68158f), 612) + index2++; + span106[index2] = new QuestStep(EInteractionType.Interact, 1020432u, new Vector3(-612.3904f, 130.1009f, -481.68158f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj69.Steps = list106; reference72 = obj69; - ref QuestSequence reference74 = ref span33[3]; + num++; + ref QuestSequence reference74 = ref span103[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020525u, new Vector3(-610.2846f, 130f, -501.8845f), 612); + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020525u, new Vector3(-610.2846f, 130f, -501.8845f), 612); obj71.Steps = list108; reference74 = obj71; questRoot17.QuestSequence = list103; @@ -156476,13 +188336,16 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "JerryWester"; + Span span109 = CollectionsMarshal.AsSpan(list109); + index = 0; + span109[index] = "JerryWester"; questRoot18.Author = list109; - num = 3; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span35 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference75 = ref span35[0]; + index = 3; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + Span span110 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference75 = ref span110[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -156490,7 +188353,9 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020526u, new Vector3(-609.6132f, 130f, -501.12158f), 612) + Span span111 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span111[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020526u, new Vector3(-609.6132f, 130f, -501.12158f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -156503,20 +188368,23 @@ public static class AssemblyQuestLoader }; obj72.Steps = list111; reference75 = obj72; - ref QuestSequence reference76 = ref span35[1]; + num++; + ref QuestSequence reference76 = ref span110[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span36 = CollectionsMarshal.AsSpan(list112); - span36[0] = new QuestStep(EInteractionType.AcceptQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) + index2 = 2; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) { PickUpQuestId = new QuestId(2661) }; - span36[1] = new QuestStep(EInteractionType.Interact, 1020434u, new Vector3(13.534729f, 43.999996f, -36.850586f), 128) + num2++; + span112[num2] = new QuestStep(EInteractionType.Interact, 1020434u, new Vector3(13.534729f, 43.999996f, -36.850586f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -156527,7 +188395,8 @@ public static class AssemblyQuestLoader }; obj73.Steps = list112; reference76 = obj73; - ref QuestSequence reference77 = ref span35[2]; + num++; + ref QuestSequence reference77 = ref span110[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue @@ -156535,7 +188404,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020434u, new Vector3(13.534729f, 43.999996f, -36.850586f), 128); + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020434u, new Vector3(13.534729f, 43.999996f, -36.850586f), 128); obj74.Steps = list113; reference77 = obj74; questRoot18.QuestSequence = list110; @@ -156545,24 +188416,30 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "JerryWester"; + Span span114 = CollectionsMarshal.AsSpan(list114); + index = 0; + span114[index] = "JerryWester"; questRoot19.Author = list114; - num = 4; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span37 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference78 = ref span37[0]; + index = 4; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + Span span115 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference78 = ref span115[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020434u, new Vector3(13.534729f, 43.999996f, -36.850586f), 128); + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020434u, new Vector3(13.534729f, 43.999996f, -36.850586f), 128); obj75.Steps = list116; reference78 = obj75; - ref QuestSequence reference79 = ref span37[1]; + num++; + ref QuestSequence reference79 = ref span115[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 @@ -156570,70 +188447,96 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1020436u, new Vector3(40.57373f, 20.495369f, -648.73737f), 156) + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.Interact, 1020436u, new Vector3(40.57373f, 20.495369f, -648.73737f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj76.Steps = list117; reference79 = obj76; - ref QuestSequence reference80 = ref span37[2]; + num++; + ref QuestSequence reference80 = ref span115[num]; QuestSequence obj77 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span38 = CollectionsMarshal.AsSpan(list118); - span38[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 4; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - ref QuestStep reference81 = ref span38[1]; + num2++; + ref QuestStep reference81 = ref span118[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1020499u, new Vector3(-7.7058716f, 0.009977884f, 6.881775f), 351); num3 = 6; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - Span span39 = CollectionsMarshal.AsSpan(list119); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span119 = CollectionsMarshal.AsSpan(list119); + num4 = 0; + span119[num4] = null; + num4++; + span119[num4] = null; + num4++; + span119[num4] = null; + num4++; + span119[num4] = null; + num4++; + span119[num4] = null; + num4++; + span119[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list119; reference81 = questStep4; - ref QuestStep reference82 = ref span38[2]; + num2++; + ref QuestStep reference82 = ref span118[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1020529u, new Vector3(6.6071167f, 0f, -8.46875f), 351); - num3 = 6; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span40 = CollectionsMarshal.AsSpan(list120); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list120 = new List(num4); + CollectionsMarshal.SetCount(list120, num4); + Span span120 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + span120[num3] = null; + num3++; + span120[num3] = null; + num3++; + span120[num3] = null; + num3++; + span120[num3] = null; + num3++; + span120[num3] = null; + num3++; + span120[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list120; reference82 = questStep5; - ref QuestStep reference83 = ref span38[3]; + num2++; + ref QuestStep reference83 = ref span118[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1020528u, new Vector3(34.10388f, -1f, 1.4190674f), 351); num3 = 6; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - Span span41 = CollectionsMarshal.AsSpan(list121); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span121 = CollectionsMarshal.AsSpan(list121); + num4 = 0; + span121[num4] = null; + num4++; + span121[num4] = null; + num4++; + span121[num4] = null; + num4++; + span121[num4] = null; + num4++; + span121[num4] = null; + num4++; + span121[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list121; reference83 = questStep6; obj77.Steps = list118; reference80 = obj77; - ref QuestSequence reference84 = ref span37[3]; + num++; + ref QuestSequence reference84 = ref span115[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -156641,12 +188544,14 @@ public static class AssemblyQuestLoader num2 = 2; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span42 = CollectionsMarshal.AsSpan(list122); - span42[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1020436u, new Vector3(40.57373f, 20.495369f, -648.73737f), 156); + index2++; + span122[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020436u, new Vector3(40.57373f, 20.495369f, -648.73737f), 156); obj78.Steps = list122; reference84 = obj78; questRoot19.QuestSequence = list115; @@ -156656,21 +188561,26 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "JerryWester"; + Span span123 = CollectionsMarshal.AsSpan(list123); + index = 0; + span123[index] = "JerryWester"; questRoot20.Author = list123; - num = 7; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span43 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference85 = ref span43[0]; + index = 7; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + Span span124 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference85 = ref span124[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020436u, new Vector3(40.57373f, 20.495369f, -648.73737f), 156) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span125[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020436u, new Vector3(40.57373f, 20.495369f, -648.73737f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -156683,7 +188593,8 @@ public static class AssemblyQuestLoader }; obj79.Steps = list125; reference85 = obj79; - ref QuestSequence reference86 = ref span43[1]; + num++; + ref QuestSequence reference86 = ref span124[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -156691,7 +188602,9 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1020439u, new Vector3(-355.55048f, 7.9999094f, 38.712036f), 129) + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span126[index2] = new QuestStep(EInteractionType.Interact, 1020439u, new Vector3(-355.55048f, 7.9999094f, 38.712036f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -156702,23 +188615,28 @@ public static class AssemblyQuestLoader }; obj80.Steps = list126; reference86 = obj80; - ref QuestSequence reference87 = ref span43[2]; + num++; + ref QuestSequence reference87 = ref span124[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list127)[0]; + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + ref QuestStep reference88 = ref span127[num2]; QuestStep obj82 = new QuestStep(EInteractionType.Interact, 1020442u, new Vector3(-357.65625f, 8.000015f, 45.822754f), 129) { StopDistance = 7f }; - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = new DialogueChoice + num4 = 1; + List list128 = new List(num4); + CollectionsMarshal.SetCount(list128, num4); + Span span128 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span128[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDA139_02469_EVENTAREA_WARP_YESNO_TITLE") @@ -156727,7 +188645,8 @@ public static class AssemblyQuestLoader reference88 = obj82; obj81.Steps = list127; reference87 = obj81; - ref QuestSequence reference89 = ref span43[3]; + num++; + ref QuestSequence reference89 = ref span124[num]; QuestSequence obj83 = new QuestSequence { Sequence = 3 @@ -156735,18 +188654,23 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1020447u, new Vector3(5.0201416f, 21.347214f, -39.07837f), 680); + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.Interact, 1020447u, new Vector3(5.0201416f, 21.347214f, -39.07837f), 680); obj83.Steps = list129; reference89 = obj83; - ref QuestSequence reference90 = ref span43[4]; + num++; + ref QuestSequence reference90 = ref span124[num]; QuestSequence obj84 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Duty, null, null, 680) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.Duty, null, null, 680) { DutyOptions = new DutyOptions { @@ -156756,11 +188680,13 @@ public static class AssemblyQuestLoader }; obj84.Steps = list130; reference90 = obj84; - span43[5] = new QuestSequence + num++; + span124[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference91 = ref span43[6]; + num++; + ref QuestSequence reference91 = ref span124[num]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue @@ -156768,7 +188694,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020454u, new Vector3(-123.09454f, -6.9999976f, -58.884644f), 628) + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020454u, new Vector3(-123.09454f, -6.9999976f, -58.884644f), 628) { StopDistance = 6f }; @@ -156781,27 +188709,33 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "JerryWester"; + Span span132 = CollectionsMarshal.AsSpan(list132); + index = 0; + span132[index] = "JerryWester"; questRoot21.Author = list132; - num = 3; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span44 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference92 = ref span44[0]; + index = 3; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + Span span133 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference92 = ref span133[num]; QuestSequence obj86 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020450u, new Vector3(-124.52893f, -6.9999976f, -55.832825f), 628) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020450u, new Vector3(-124.52893f, -6.9999976f, -55.832825f), 628) { StopDistance = 6f }; obj86.Steps = list134; reference92 = obj86; - ref QuestSequence reference93 = ref span44[1]; + num++; + ref QuestSequence reference93 = ref span133[num]; QuestSequence obj87 = new QuestSequence { Sequence = 1 @@ -156809,30 +188743,36 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1020455u, new Vector3(-63.34027f, -2.711526f, -58.396362f), 628) + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.Interact, 1020455u, new Vector3(-63.34027f, -2.711526f, -58.396362f), 628) { StopDistance = 5f }; obj87.Steps = list135; reference93 = obj87; - ref QuestSequence reference94 = ref span44[2]; + num++; + ref QuestSequence reference94 = ref span133[num]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span45 = CollectionsMarshal.AsSpan(list136); - span45[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + index2 = 3; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeShiokazeHostelry }; - span45[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 628) + num2++; + span136[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 628) { Aetheryte = EAetheryteLocation.Kugane }; - span45[2] = new QuestStep(EInteractionType.CompleteQuest, 1020460u, new Vector3(17.92926f, -1.5668043E-05f, -41.21466f), 628); + num2++; + span136[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020460u, new Vector3(17.92926f, -1.5668043E-05f, -41.21466f), 628); obj88.Steps = list136; reference94 = obj88; questRoot21.QuestSequence = list133; @@ -156842,13 +188782,16 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "JerryWester"; + Span span137 = CollectionsMarshal.AsSpan(list137); + index = 0; + span137[index] = "JerryWester"; questRoot22.Author = list137; - num = 4; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span46 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference95 = ref span46[0]; + index = 4; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + Span span138 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference95 = ref span138[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -156856,7 +188799,9 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020460u, new Vector3(17.92926f, -1.5668043E-05f, -41.21466f), 628) + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020460u, new Vector3(17.92926f, -1.5668043E-05f, -41.21466f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -156869,18 +188814,22 @@ public static class AssemblyQuestLoader }; obj89.Steps = list139; reference95 = obj89; - ref QuestSequence reference96 = ref span46[1]; + num++; + ref QuestSequence reference96 = ref span138[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1020461u, new Vector3(24.582275f, 4f, 68.28406f), 628); + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.Interact, 1020461u, new Vector3(24.582275f, 4f, 68.28406f), 628); obj90.Steps = list140; reference96 = obj90; - ref QuestSequence reference97 = ref span46[2]; + num++; + ref QuestSequence reference97 = ref span138[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -156888,23 +188837,28 @@ public static class AssemblyQuestLoader num2 = 2; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span47 = CollectionsMarshal.AsSpan(list141); - span47[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeMarkets }; - span47[1] = new QuestStep(EInteractionType.Interact, 1022359u, new Vector3(88.12085f, 4f, 69.7489f), 628); + index2++; + span141[index2] = new QuestStep(EInteractionType.Interact, 1022359u, new Vector3(88.12085f, 4f, 69.7489f), 628); obj91.Steps = list141; reference97 = obj91; - ref QuestSequence reference98 = ref span46[3]; + num++; + ref QuestSequence reference98 = ref span138[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020462u, new Vector3(95.140015f, 8.02f, 151.9646f), 628); + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020462u, new Vector3(95.140015f, 8.02f, 151.9646f), 628); obj92.Steps = list142; reference98 = obj92; questRoot22.QuestSequence = list138; @@ -156914,13 +188868,16 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "JerryWester"; + Span span143 = CollectionsMarshal.AsSpan(list143); + index = 0; + span143[index] = "JerryWester"; questRoot23.Author = list143; - num = 3; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span48 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference99 = ref span48[0]; + index = 3; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + Span span144 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference99 = ref span144[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -156928,7 +188885,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020462u, new Vector3(95.140015f, 8.02f, 151.9646f), 628) + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020462u, new Vector3(95.140015f, 8.02f, 151.9646f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -156941,23 +188900,27 @@ public static class AssemblyQuestLoader }; obj93.Steps = list145; reference99 = obj93; - ref QuestSequence reference100 = ref span48[1]; + num++; + ref QuestSequence reference100 = ref span144[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - Span span49 = CollectionsMarshal.AsSpan(list146); - span49[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + index2 = 2; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeRubyBazaar }; - span49[1] = new QuestStep(EInteractionType.Interact, 1020480u, new Vector3(150.80493f, 14.7757225f, 92.454346f), 628); + num2++; + span146[num2] = new QuestStep(EInteractionType.Interact, 1020480u, new Vector3(150.80493f, 14.7757225f, 92.454346f), 628); obj94.Steps = list146; reference100 = obj94; - ref QuestSequence reference101 = ref span48[2]; + num++; + ref QuestSequence reference101 = ref span144[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -156965,7 +188928,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020465u, new Vector3(1.5411377f, 0f, -0.96136475f), 639) + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020465u, new Vector3(1.5411377f, 0f, -0.96136475f), 639) { StopDistance = 7f }; @@ -156978,27 +188943,33 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; + Span span148 = CollectionsMarshal.AsSpan(list148); + index = 0; + span148[index] = "JerryWester"; questRoot24.Author = list148; - num = 7; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span50 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference102 = ref span50[0]; + index = 7; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + Span span149 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference102 = ref span149[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020465u, new Vector3(1.5411377f, 0f, -0.96136475f), 639) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020465u, new Vector3(1.5411377f, 0f, -0.96136475f), 639) { StopDistance = 7f }; obj96.Steps = list150; reference102 = obj96; - ref QuestSequence reference103 = ref span50[1]; + num++; + ref QuestSequence reference103 = ref span149[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -157006,24 +188977,30 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1022086u, new Vector3(142.47339f, 14.7757225f, 90.4707f), 628); + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.Interact, 1022086u, new Vector3(142.47339f, 14.7757225f, 90.4707f), 628); obj97.Steps = list151; reference103 = obj97; - ref QuestSequence reference104 = ref span50[2]; + num++; + ref QuestSequence reference104 = ref span149[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(142.47339f, 14.7757225f, 90.4707f), 628) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(142.47339f, 14.7757225f, 90.4707f), 628) { ItemId = 2002099u }; obj98.Steps = list152; reference104 = obj98; - ref QuestSequence reference105 = ref span50[3]; + num++; + ref QuestSequence reference105 = ref span149[num]; QuestSequence obj99 = new QuestSequence { Sequence = 3 @@ -157031,8 +189008,9 @@ public static class AssemblyQuestLoader num2 = 3; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span51 = CollectionsMarshal.AsSpan(list153); - span51[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeRakuzaDistrict, AethernetShortcut = new AethernetShortcut @@ -157041,22 +189019,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Kugane } }; - span51[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + index2++; + span153[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeBokairoInn }; - span51[2] = new QuestStep(EInteractionType.Interact, 1018982u, new Vector3(-83.08539f, 18.05f, -191.14978f), 628); + index2++; + span153[index2] = new QuestStep(EInteractionType.Interact, 1018982u, new Vector3(-83.08539f, 18.05f, -191.14978f), 628); obj99.Steps = list153; reference105 = obj99; - ref QuestSequence reference106 = ref span50[4]; + num++; + ref QuestSequence reference106 = ref span149[num]; QuestSequence obj100 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1019002u, new Vector3(-48.05072f, -2.9f, -50.247986f), 628) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.Interact, 1019002u, new Vector3(-48.05072f, -2.9f, -50.247986f), 628) { AethernetShortcut = new AethernetShortcut { @@ -157066,7 +189049,8 @@ public static class AssemblyQuestLoader }; obj100.Steps = list154; reference106 = obj100; - ref QuestSequence reference107 = ref span50[5]; + num++; + ref QuestSequence reference107 = ref span149[num]; QuestSequence obj101 = new QuestSequence { Sequence = 5 @@ -157074,8 +189058,9 @@ public static class AssemblyQuestLoader num2 = 3; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span52 = CollectionsMarshal.AsSpan(list155); - ref QuestStep reference108 = ref span52[0]; + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + ref QuestStep reference108 = ref span155[index2]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 1020471u, new Vector3(-81.83417f, -3f, 34.50061f), 628) { AethernetShortcut = new AethernetShortcut @@ -157087,55 +189072,77 @@ public static class AssemblyQuestLoader num3 = 6; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span53 = CollectionsMarshal.AsSpan(list156); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span156 = CollectionsMarshal.AsSpan(list156); + num4 = 0; + span156[num4] = null; + num4++; + span156[num4] = null; + num4++; + span156[num4] = null; + num4++; + span156[num4] = null; + num4++; + span156[num4] = null; + num4++; + span156[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj102.CompletionQuestVariablesFlags = list156; reference108 = obj102; - ref QuestStep reference109 = ref span52[1]; + index2++; + ref QuestStep reference109 = ref span155[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1020469u, new Vector3(-108.50696f, -5.999997f, 72.098755f), 628); - num3 = 6; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - Span span54 = CollectionsMarshal.AsSpan(list157); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list157 = new List(num4); + CollectionsMarshal.SetCount(list157, num4); + Span span157 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list157; reference109 = questStep7; - ref QuestStep reference110 = ref span52[2]; + index2++; + ref QuestStep reference110 = ref span155[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1020470u, new Vector3(-158.64807f, 4.000002f, 86.96118f), 628); num3 = 6; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - Span span55 = CollectionsMarshal.AsSpan(list158); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span158 = CollectionsMarshal.AsSpan(list158); + num4 = 0; + span158[num4] = null; + num4++; + span158[num4] = null; + num4++; + span158[num4] = null; + num4++; + span158[num4] = null; + num4++; + span158[num4] = null; + num4++; + span158[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list158; reference110 = questStep8; obj101.Steps = list155; reference107 = obj101; - ref QuestSequence reference111 = ref span50[6]; + num++; + ref QuestSequence reference111 = ref span149[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 6; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span56 = CollectionsMarshal.AsSpan(list159); - span56[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-132.33249f, 4.510561f, 117.53347f), 628) + index2 = 6; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-132.33249f, 4.510561f, 117.53347f), 628) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -157144,24 +189151,29 @@ public static class AssemblyQuestLoader StopDistance = 0.5f } }; - span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-125.70999f, 8.414458f, 123.2643f), 628) + num2++; + span159[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-125.70999f, 8.414458f, 123.2643f), 628) { DisableNavmesh = true }; - span56[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.25544f, -4.999999f, 145.54941f), 628) + num2++; + span159[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.25544f, -4.999999f, 145.54941f), 628) { DisableNavmesh = true }; - span56[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span159[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { DisableNavmesh = true, AethernetShard = EAetheryteLocation.KuganePier1 }; - span56[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + num2++; + span159[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeThavnairianConsulate }; - span56[5] = new QuestStep(EInteractionType.CompleteQuest, 1020472u, new Vector3(-32.39496f, 0.029811792f, -68.3147f), 628) + num2++; + span159[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020472u, new Vector3(-32.39496f, 0.029811792f, -68.3147f), 628) { AethernetShortcut = new AethernetShortcut { @@ -157178,13 +189190,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "JerryWester"; + Span span160 = CollectionsMarshal.AsSpan(list160); + index = 0; + span160[index] = "JerryWester"; questRoot25.Author = list160; - num = 7; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span57 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference112 = ref span57[0]; + index = 7; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + Span span161 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference112 = ref span161[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -157192,7 +189207,9 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020472u, new Vector3(-32.39496f, 0.029811792f, -68.3147f), 628) + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020472u, new Vector3(-32.39496f, 0.029811792f, -68.3147f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -157205,18 +189222,22 @@ public static class AssemblyQuestLoader }; obj104.Steps = list162; reference112 = obj104; - ref QuestSequence reference113 = ref span57[1]; + num++; + ref QuestSequence reference113 = ref span161[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1020473u, new Vector3(-34.65332f, 14.001162f, -46.616333f), 628); + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span163[num2] = new QuestStep(EInteractionType.Interact, 1020473u, new Vector3(-34.65332f, 14.001162f, -46.616333f), 628); obj105.Steps = list163; reference113 = obj105; - ref QuestSequence reference114 = ref span57[2]; + num++; + ref QuestSequence reference114 = ref span161[num]; QuestSequence obj106 = new QuestSequence { Sequence = 2 @@ -157224,8 +189245,9 @@ public static class AssemblyQuestLoader num2 = 2; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span58 = CollectionsMarshal.AsSpan(list164); - span58[0] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span164[index2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AethernetShortcut = new AethernetShortcut @@ -157234,21 +189256,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - span58[1] = new QuestStep(EInteractionType.Interact, 1020465u, new Vector3(1.5411377f, 0f, -0.96136475f), 639); + index2++; + span164[index2] = new QuestStep(EInteractionType.Interact, 1020465u, new Vector3(1.5411377f, 0f, -0.96136475f), 639); obj106.Steps = list164; reference114 = obj106; - ref QuestSequence reference115 = ref span57[3]; + num++; + ref QuestSequence reference115 = ref span161[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1020468u, new Vector3(-0.9309082f, 0.024139475f, -0.13739014f), 639); + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span165[num2] = new QuestStep(EInteractionType.Interact, 1020468u, new Vector3(-0.9309082f, 0.024139475f, -0.13739014f), 639); obj107.Steps = list165; reference115 = obj107; - ref QuestSequence reference116 = ref span57[4]; + num++; + ref QuestSequence reference116 = ref span161[num]; QuestSequence obj108 = new QuestSequence { Sequence = 4 @@ -157256,12 +189283,14 @@ public static class AssemblyQuestLoader num2 = 2; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span59 = CollectionsMarshal.AsSpan(list166); - span59[0] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) + Span span166 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span166[index2] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) { TargetTerritoryId = (ushort)628 }; - span59[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020475u, new Vector3(-52.140076f, 16.75975f, -6.729248f), 628) + index2++; + span166[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020475u, new Vector3(-52.140076f, 16.75975f, -6.729248f), 628) { AethernetShortcut = new AethernetShortcut { @@ -157275,19 +189304,23 @@ public static class AssemblyQuestLoader }; obj108.Steps = list166; reference116 = obj108; - span57[5] = new QuestSequence + num++; + span161[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference117 = ref span57[6]; + num++; + ref QuestSequence reference117 = ref span161[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020476u, new Vector3(147.75305f, 14.775722f, 91.721924f), 628); + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020476u, new Vector3(147.75305f, 14.775722f, 91.721924f), 628); obj109.Steps = list167; reference117 = obj109; questRoot25.QuestSequence = list161; @@ -157297,13 +189330,16 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - CollectionsMarshal.AsSpan(list168)[0] = "JerryWester"; + Span span168 = CollectionsMarshal.AsSpan(list168); + index = 0; + span168[index] = "JerryWester"; questRoot26.Author = list168; - num = 7; - List list169 = new List(num); - CollectionsMarshal.SetCount(list169, num); - Span span60 = CollectionsMarshal.AsSpan(list169); - ref QuestSequence reference118 = ref span60[0]; + index = 7; + List list169 = new List(index); + CollectionsMarshal.SetCount(list169, index); + Span span169 = CollectionsMarshal.AsSpan(list169); + num = 0; + ref QuestSequence reference118 = ref span169[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -157311,28 +189347,35 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020476u, new Vector3(147.75305f, 14.775722f, 91.721924f), 628); + Span span170 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span170[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020476u, new Vector3(147.75305f, 14.775722f, 91.721924f), 628); obj110.Steps = list170; reference118 = obj110; - span60[1] = new QuestSequence + num++; + span169[num] = new QuestSequence { Sequence = 1 }; - ref QuestSequence reference119 = ref span60[2]; + num++; + ref QuestSequence reference119 = ref span169[num]; QuestSequence obj111 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1020464u, new Vector3(0.045776367f, 0f, -2.3041382f), 639) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + Span span171 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span171[num2] = new QuestStep(EInteractionType.Interact, 1020464u, new Vector3(0.045776367f, 0f, -2.3041382f), 639) { StopDistance = 7f }; obj111.Steps = list171; reference119 = obj111; - ref QuestSequence reference120 = ref span60[3]; + num++; + ref QuestSequence reference120 = ref span169[num]; QuestSequence obj112 = new QuestSequence { Sequence = 3 @@ -157340,12 +189383,14 @@ public static class AssemblyQuestLoader num2 = 3; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span61 = CollectionsMarshal.AsSpan(list172); - span61[0] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) { TargetTerritoryId = (ushort)628 }; - span61[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + index2++; + span172[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeSekiseigumiBarracks, AethernetShortcut = new AethernetShortcut @@ -157354,21 +189399,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Kugane } }; - span61[2] = new QuestStep(EInteractionType.Interact, 1020481u, new Vector3(125.596924f, 14.804411f, -102.861084f), 628); + index2++; + span172[index2] = new QuestStep(EInteractionType.Interact, 1020481u, new Vector3(125.596924f, 14.804411f, -102.861084f), 628); obj112.Steps = list172; reference120 = obj112; - ref QuestSequence reference121 = ref span60[4]; + num++; + ref QuestSequence reference121 = ref span169[num]; QuestSequence obj113 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 2007910u, new Vector3(125.322266f, 14.358704f, -100.48071f), 628); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.Interact, 2007910u, new Vector3(125.322266f, 14.358704f, -100.48071f), 628); obj113.Steps = list173; reference121 = obj113; - ref QuestSequence reference122 = ref span60[5]; + num++; + ref QuestSequence reference122 = ref span169[num]; QuestSequence obj114 = new QuestSequence { Sequence = 5 @@ -157376,18 +189426,23 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 2008333u, new Vector3(125.41394f, 14.358704f, -100.51117f), 628); + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.Interact, 2008333u, new Vector3(125.41394f, 14.358704f, -100.51117f), 628); obj114.Steps = list174; reference122 = obj114; - ref QuestSequence reference123 = ref span60[6]; + num++; + ref QuestSequence reference123 = ref span169[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020483u, new Vector3(127.79431f, 14.650923f, -101.701416f), 628) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020483u, new Vector3(127.79431f, 14.650923f, -101.701416f), 628) { StopDistance = 7f }; @@ -157400,13 +189455,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "JerryWester"; + Span span176 = CollectionsMarshal.AsSpan(list176); + index = 0; + span176[index] = "JerryWester"; questRoot27.Author = list176; - num = 4; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span62 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference124 = ref span62[0]; + index = 4; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + Span span177 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference124 = ref span177[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 @@ -157414,7 +189472,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020484u, new Vector3(126.57361f, 14.054269f, -99.47363f), 628) + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020484u, new Vector3(126.57361f, 14.054269f, -99.47363f), 628) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -157428,15 +189488,18 @@ public static class AssemblyQuestLoader }; obj116.Steps = list178; reference124 = obj116; - ref QuestSequence reference125 = ref span62[1]; + num++; + ref QuestSequence reference125 = ref span177[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AethernetShortcut = new AethernetShortcut @@ -157447,7 +189510,8 @@ public static class AssemblyQuestLoader }; obj117.Steps = list179; reference125 = obj117; - ref QuestSequence reference126 = ref span62[2]; + num++; + ref QuestSequence reference126 = ref span177[num]; QuestSequence obj118 = new QuestSequence { Sequence = 2 @@ -157455,7 +189519,9 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list180)[0]; + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + ref QuestStep reference127 = ref span180[index2]; QuestStep obj119 = new QuestStep(EInteractionType.Interact, 1020485u, new Vector3(-124.1322f, -6.999998f, -58.51837f), 628) { AethernetShortcut = new AethernetShortcut @@ -157464,10 +189530,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeShiokazeHostelry } }; - num3 = 1; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - CollectionsMarshal.AsSpan(list181)[0] = new DialogueChoice + num4 = 1; + List list181 = new List(num4); + CollectionsMarshal.SetCount(list181, num4); + Span span181 = CollectionsMarshal.AsSpan(list181); + num3 = 0; + span181[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA207_02476_Q1_000_000"), @@ -157477,15 +189545,18 @@ public static class AssemblyQuestLoader reference127 = obj119; obj118.Steps = list180; reference126 = obj118; - ref QuestSequence reference128 = ref span62[3]; + num++; + ref QuestSequence reference128 = ref span177[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019891u, new Vector3(852.4147f, 5.923008f, 847.7759f), 613) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019891u, new Vector3(852.4147f, 5.923008f, 847.7759f), 613) { StopDistance = 7f }; @@ -157498,13 +189569,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "JerryWester"; + Span span183 = CollectionsMarshal.AsSpan(list183); + index = 0; + span183[index] = "JerryWester"; questRoot28.Author = list183; - num = 4; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span63 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference129 = ref span63[0]; + index = 4; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + Span span184 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference129 = ref span184[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -157512,24 +189586,30 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019891u, new Vector3(852.4147f, 5.923008f, 847.7759f), 613) + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019891u, new Vector3(852.4147f, 5.923008f, 847.7759f), 613) { StopDistance = 7f }; obj121.Steps = list185; reference129 = obj121; - ref QuestSequence reference130 = ref span63[1]; + num++; + ref QuestSequence reference130 = ref span184[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1019893u, new Vector3(736.1714f, -0.600044f, 822.96484f), 613); + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span186[num2] = new QuestStep(EInteractionType.Interact, 1019893u, new Vector3(736.1714f, -0.600044f, 822.96484f), 613); obj122.Steps = list186; reference130 = obj122; - ref QuestSequence reference131 = ref span63[2]; + num++; + ref QuestSequence reference131 = ref span184[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 @@ -157537,20 +189617,25 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span64 = CollectionsMarshal.AsSpan(list187); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(594.744f, -0.41014904f, 835.82776f), 613); - span64[1] = new QuestStep(EInteractionType.Interact, 1019896u, new Vector3(560.54016f, 0.44452444f, 828.21387f), 613); + Span span187 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span187[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(594.744f, -0.41014904f, 835.82776f), 613); + index2++; + span187[index2] = new QuestStep(EInteractionType.Interact, 1019896u, new Vector3(560.54016f, 0.44452444f, 828.21387f), 613); obj123.Steps = list187; reference131 = obj123; - ref QuestSequence reference132 = ref span63[3]; + num++; + ref QuestSequence reference132 = ref span184[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019898u, new Vector3(464.5609f, 30.21226f, 791.53125f), 613); + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + Span span188 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span188[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019898u, new Vector3(464.5609f, 30.21226f, 791.53125f), 613); obj124.Steps = list188; reference132 = obj124; questRoot28.QuestSequence = list184; @@ -157560,13 +189645,16 @@ public static class AssemblyQuestLoader num = 1; List list189 = new List(num); CollectionsMarshal.SetCount(list189, num); - CollectionsMarshal.AsSpan(list189)[0] = "JerryWester"; + Span span189 = CollectionsMarshal.AsSpan(list189); + index = 0; + span189[index] = "JerryWester"; questRoot29.Author = list189; - num = 4; - List list190 = new List(num); - CollectionsMarshal.SetCount(list190, num); - Span span65 = CollectionsMarshal.AsSpan(list190); - ref QuestSequence reference133 = ref span65[0]; + index = 4; + List list190 = new List(index); + CollectionsMarshal.SetCount(list190, index); + Span span190 = CollectionsMarshal.AsSpan(list190); + num = 0; + ref QuestSequence reference133 = ref span190[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -157574,31 +189662,38 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019898u, new Vector3(464.5609f, 30.21226f, 791.53125f), 613); + Span span191 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span191[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019898u, new Vector3(464.5609f, 30.21226f, 791.53125f), 613); obj125.Steps = list191; reference133 = obj125; - ref QuestSequence reference134 = ref span65[1]; + num++; + ref QuestSequence reference134 = ref span190[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - Span span66 = CollectionsMarshal.AsSpan(list192); - span66[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007995u, new Vector3(423.54468f, 15.823547f, 801.541f), 613) + index2 = 3; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span192[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007995u, new Vector3(423.54468f, 15.823547f, 801.541f), 613) { AetherCurrentId = 2818178u }; - span66[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(375.51163f, 9.2976055f, 788.4051f), 613) + num2++; + span192[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(375.51163f, 9.2976055f, 788.4051f), 613) { DisableNavmesh = true, Mount = true }; - span66[2] = new QuestStep(EInteractionType.Interact, 2007848u, new Vector3(150.46924f, 1.2054443f, 551.9645f), 613); + num2++; + span192[num2] = new QuestStep(EInteractionType.Interact, 2007848u, new Vector3(150.46924f, 1.2054443f, 551.9645f), 613); obj126.Steps = list192; reference134 = obj126; - ref QuestSequence reference135 = ref span65[2]; + num++; + ref QuestSequence reference135 = ref span190[num]; QuestSequence obj127 = new QuestSequence { Sequence = 2 @@ -157606,22 +189701,26 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1019912u, new Vector3(116.105835f, -0.5f, 499.32092f), 613) + Span span193 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span193[index2] = new QuestStep(EInteractionType.Interact, 1019912u, new Vector3(116.105835f, -0.5f, 499.32092f), 613) { StopDistance = 7f }; obj127.Steps = list193; reference135 = obj127; - ref QuestSequence reference136 = ref span65[3]; + num++; + ref QuestSequence reference136 = ref span190[num]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span67 = CollectionsMarshal.AsSpan(list194); - span67[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(377.86084f, 10.638865f, 792.4622f), 613) + index2 = 2; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(377.86084f, 10.638865f, 792.4622f), 613) { StopDistance = 0.5f, JumpDestination = new JumpDestination @@ -157629,7 +189728,8 @@ public static class AssemblyQuestLoader Position = new Vector3(384.9748f, 14.661837f, 793.96063f) } }; - span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1023650u, new Vector3(404.53186f, 19.5081f, 755.6113f), 613); + num2++; + span194[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023650u, new Vector3(404.53186f, 19.5081f, 755.6113f), 613); obj128.Steps = list194; reference136 = obj128; questRoot29.QuestSequence = list190; @@ -157639,13 +189739,16 @@ public static class AssemblyQuestLoader num = 1; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - CollectionsMarshal.AsSpan(list195)[0] = "JerryWester"; + Span span195 = CollectionsMarshal.AsSpan(list195); + index = 0; + span195[index] = "JerryWester"; questRoot30.Author = list195; - num = 9; - List list196 = new List(num); - CollectionsMarshal.SetCount(list196, num); - Span span68 = CollectionsMarshal.AsSpan(list196); - ref QuestSequence reference137 = ref span68[0]; + index = 9; + List list196 = new List(index); + CollectionsMarshal.SetCount(list196, index); + Span span196 = CollectionsMarshal.AsSpan(list196); + num = 0; + ref QuestSequence reference137 = ref span196[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 @@ -157653,21 +189756,27 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023650u, new Vector3(404.53186f, 19.5081f, 755.6113f), 613); + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023650u, new Vector3(404.53186f, 19.5081f, 755.6113f), 613); obj129.Steps = list197; reference137 = obj129; - ref QuestSequence reference138 = ref span68[1]; + num++; + ref QuestSequence reference138 = ref span196[num]; QuestSequence obj130 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1023683u, new Vector3(466.88025f, 30.398874f, 792.813f), 613); + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span198 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span198[num2] = new QuestStep(EInteractionType.Interact, 1023683u, new Vector3(466.88025f, 30.398874f, 792.813f), 613); obj130.Steps = list198; reference138 = obj130; - ref QuestSequence reference139 = ref span68[2]; + num++; + ref QuestSequence reference139 = ref span196[num]; QuestSequence obj131 = new QuestSequence { Sequence = 2 @@ -157675,18 +189784,23 @@ public static class AssemblyQuestLoader num2 = 3; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span69 = CollectionsMarshal.AsSpan(list199); - span69[0] = new QuestStep(EInteractionType.AcceptQuest, 1019168u, new Vector3(501.33508f, 34.0062f, 781.70435f), 613) + Span span199 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span199[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019168u, new Vector3(501.33508f, 34.0062f, 781.70435f), 613) { PickUpQuestId = new QuestId(2673) }; - span69[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(553.3004f, 0.94003797f, 833.7598f), 613); - ref QuestStep reference140 = ref span69[2]; + index2++; + span199[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(553.3004f, 0.94003797f, 833.7598f), 613); + index2++; + ref QuestStep reference140 = ref span199[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1019915u, new Vector3(576.5315f, 0.94003797f, 849.3323f), 613); num3 = 1; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = new DialogueChoice + Span span200 = CollectionsMarshal.AsSpan(list200); + num4 = 0; + span200[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA303_02479_Q1_000_021"), @@ -157696,21 +189810,25 @@ public static class AssemblyQuestLoader reference140 = questStep9; obj131.Steps = list199; reference139 = obj131; - ref QuestSequence reference141 = ref span68[3]; + num++; + ref QuestSequence reference141 = ref span196[num]; QuestSequence obj132 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1019919u, new Vector3(-711.32983f, -71f / (226f * (float)Math.PI), -301.83875f), 613) + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span201[num2] = new QuestStep(EInteractionType.Interact, 1019919u, new Vector3(-711.32983f, -71f / (226f * (float)Math.PI), -301.83875f), 613) { StopDistance = 5f }; obj132.Steps = list201; reference141 = obj132; - ref QuestSequence reference142 = ref span68[4]; + num++; + ref QuestSequence reference142 = ref span196[num]; QuestSequence obj133 = new QuestSequence { Sequence = 4 @@ -157718,26 +189836,32 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1019923u, new Vector3(-742.79395f, 2.129947f, -312.3064f), 613) + Span span202 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span202[index2] = new QuestStep(EInteractionType.Interact, 1019923u, new Vector3(-742.79395f, 2.129947f, -312.3064f), 613) { StopDistance = 5f }; obj133.Steps = list202; reference142 = obj133; - ref QuestSequence reference143 = ref span68[5]; + num++; + ref QuestSequence reference143 = ref span196[num]; QuestSequence obj134 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - Span span70 = CollectionsMarshal.AsSpan(list203); - span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-462.84192f, -0.3000002f, -533.4066f), 613); - span70[1] = new QuestStep(EInteractionType.Interact, 1019925u, new Vector3(-423.78882f, 3.201082f, -545.89154f), 613); + index2 = 2; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-462.84192f, -0.3000002f, -533.4066f), 613); + num2++; + span203[num2] = new QuestStep(EInteractionType.Interact, 1019925u, new Vector3(-423.78882f, 3.201082f, -545.89154f), 613); obj134.Steps = list203; reference143 = obj134; - ref QuestSequence reference144 = ref span68[6]; + num++; + ref QuestSequence reference144 = ref span196[num]; QuestSequence obj135 = new QuestSequence { Sequence = 6 @@ -157745,31 +189869,39 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - ref QuestStep reference145 = ref CollectionsMarshal.AsSpan(list204)[0]; + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + ref QuestStep reference145 = ref span204[index2]; QuestStep obj136 = new QuestStep(EInteractionType.Combat, null, new Vector3(-436.89062f, 1.4498298f, -547.5498f), 613) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = 8029u; + num4 = 1; + List list205 = new List(num4); + CollectionsMarshal.SetCount(list205, num4); + Span span205 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + span205[num3] = 8029u; obj136.KillEnemyDataIds = list205; reference145 = obj136; obj135.Steps = list204; reference144 = obj135; - ref QuestSequence reference146 = ref span68[7]; + num++; + ref QuestSequence reference146 = ref span196[num]; QuestSequence obj137 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1019928u, new Vector3(-228.93109f, 0.39421302f, -530.44934f), 613); + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.Interact, 1019928u, new Vector3(-228.93109f, 0.39421302f, -530.44934f), 613); obj137.Steps = list206; reference146 = obj137; - ref QuestSequence reference147 = ref span68[8]; + num++; + ref QuestSequence reference147 = ref span196[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -157777,7 +189909,9 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019930u, new Vector3(-58.335266f, 1.9963632f, -597.0703f), 613); + Span span207 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span207[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019930u, new Vector3(-58.335266f, 1.9963632f, -597.0703f), 613); obj138.Steps = list207; reference147 = obj138; questRoot30.QuestSequence = list196; @@ -157787,27 +189921,33 @@ public static class AssemblyQuestLoader num = 1; List list208 = new List(num); CollectionsMarshal.SetCount(list208, num); - CollectionsMarshal.AsSpan(list208)[0] = "JerryWester"; + Span span208 = CollectionsMarshal.AsSpan(list208); + index = 0; + span208[index] = "JerryWester"; questRoot31.Author = list208; - num = 6; - List list209 = new List(num); - CollectionsMarshal.SetCount(list209, num); - Span span71 = CollectionsMarshal.AsSpan(list209); - ref QuestSequence reference148 = ref span71[0]; + index = 6; + List list209 = new List(index); + CollectionsMarshal.SetCount(list209, index); + Span span209 = CollectionsMarshal.AsSpan(list209); + num = 0; + ref QuestSequence reference148 = ref span209[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019929u, new Vector3(-57.724915f, 2.0040545f, -598.2605f), 613) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span210[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019929u, new Vector3(-57.724915f, 2.0040545f, -598.2605f), 613) { StopDistance = 5f }; obj139.Steps = list210; reference148 = obj139; - ref QuestSequence reference149 = ref span71[1]; + num++; + ref QuestSequence reference149 = ref span209[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -157815,23 +189955,28 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1019931u, new Vector3(54.703613f, 2.4445753f, -595.4528f), 613); + Span span211 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span211[index2] = new QuestStep(EInteractionType.Interact, 1019931u, new Vector3(54.703613f, 2.4445753f, -595.4528f), 613); obj140.Steps = list211; reference149 = obj140; - ref QuestSequence reference150 = ref span71[2]; + num++; + ref QuestSequence reference150 = ref span209[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - Span span72 = CollectionsMarshal.AsSpan(list212); - span72[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 613) + index2 = 5; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span212[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 613) { Aetheryte = EAetheryteLocation.RubySeaOnokoro }; - span72[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(20.867485f, 25.111027f, -634.323f), 613) + num2++; + span212[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(20.867485f, 25.111027f, -634.323f), 613) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -157839,11 +189984,13 @@ public static class AssemblyQuestLoader Position = new Vector3(20.556915f, 26.25455f, -633.04f) } }; - span72[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007999u, new Vector3(21.286316f, 24.002441f, -623.621f), 613) + num2++; + span212[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007999u, new Vector3(21.286316f, 24.002441f, -623.621f), 613) { AetherCurrentId = 2818182u }; - span72[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(20.3128f, 26.236794f, -629.7924f), 613) + num2++; + span212[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(20.3128f, 26.236794f, -629.7924f), 613) { StopDistance = 0.25f, Mount = true, @@ -157852,10 +189999,12 @@ public static class AssemblyQuestLoader Position = new Vector3(20.867485f, 25.111027f, -634.323f) } }; - span72[4] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613); + num2++; + span212[num2] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613); obj141.Steps = list212; reference150 = obj141; - ref QuestSequence reference151 = ref span71[3]; + num++; + ref QuestSequence reference151 = ref span209[num]; QuestSequence obj142 = new QuestSequence { Sequence = 3 @@ -157863,84 +190012,116 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1019938u, new Vector3(68.46716f, 25.007832f, -643.8239f), 613) + Span span213 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span213[index2] = new QuestStep(EInteractionType.Interact, 1019938u, new Vector3(68.46716f, 25.007832f, -643.8239f), 613) { Mount = true }; obj142.Steps = list213; reference151 = obj142; - ref QuestSequence reference152 = ref span71[4]; + num++; + ref QuestSequence reference152 = ref span209[num]; QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - num2 = 4; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - Span span73 = CollectionsMarshal.AsSpan(list214); - ref QuestStep reference153 = ref span73[0]; + index2 = 4; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + Span span214 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + ref QuestStep reference153 = ref span214[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2007852u, new Vector3(109.17822f, 2.670288f, -619.95886f), 613); num3 = 6; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - Span span74 = CollectionsMarshal.AsSpan(list215); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span215 = CollectionsMarshal.AsSpan(list215); + num4 = 0; + span215[num4] = null; + num4++; + span215[num4] = null; + num4++; + span215[num4] = null; + num4++; + span215[num4] = null; + num4++; + span215[num4] = null; + num4++; + span215[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list215; reference153 = questStep10; - ref QuestStep reference154 = ref span73[1]; + num2++; + ref QuestStep reference154 = ref span214[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(28.796398f, 1.1177638f, -561.9825f), 613); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - Span span75 = CollectionsMarshal.AsSpan(list216); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list216 = new List(num4); + CollectionsMarshal.SetCount(list216, num4); + Span span216 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span216[num3] = null; + num3++; + span216[num3] = null; + num3++; + span216[num3] = null; + num3++; + span216[num3] = null; + num3++; + span216[num3] = null; + num3++; + span216[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list216; skipConditions2.StepIf = skipStepConditions; questStep11.SkipConditions = skipConditions2; reference154 = questStep11; - ref QuestStep reference155 = ref span73[2]; + num2++; + ref QuestStep reference155 = ref span214[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1021508u, new Vector3(13.565186f, 5.3493934f, -482.87177f), 613); num3 = 6; List list217 = new List(num3); CollectionsMarshal.SetCount(list217, num3); - Span span76 = CollectionsMarshal.AsSpan(list217); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span217 = CollectionsMarshal.AsSpan(list217); + num4 = 0; + span217[num4] = null; + num4++; + span217[num4] = null; + num4++; + span217[num4] = null; + num4++; + span217[num4] = null; + num4++; + span217[num4] = null; + num4++; + span217[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list217; reference155 = questStep12; - ref QuestStep reference156 = ref span73[3]; + num2++; + ref QuestStep reference156 = ref span214[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2007854u, new Vector3(-107.74402f, 2.1209717f, -521.32446f), 613); - num3 = 6; - List list218 = new List(num3); - CollectionsMarshal.SetCount(list218, num3); - Span span77 = CollectionsMarshal.AsSpan(list218); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list218 = new List(num4); + CollectionsMarshal.SetCount(list218, num4); + Span span218 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span218[num3] = null; + num3++; + span218[num3] = null; + num3++; + span218[num3] = null; + num3++; + span218[num3] = null; + num3++; + span218[num3] = null; + num3++; + span218[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list218; reference156 = questStep13; obj143.Steps = list214; reference152 = obj143; - ref QuestSequence reference157 = ref span71[5]; + num++; + ref QuestSequence reference157 = ref span209[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -157948,14 +190129,18 @@ public static class AssemblyQuestLoader num2 = 4; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span78 = CollectionsMarshal.AsSpan(list219); - span78[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-61.59895f, 0.75750256f, -577.81134f), 613); - span78[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.88596f, 2.0565174f, -591.9783f), 613); - span78[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.516483f, 8.753822f, -612.76074f), 613) + Span span219 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span219[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-61.59895f, 0.75750256f, -577.81134f), 613); + index2++; + span219[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.88596f, 2.0565174f, -591.9783f), 613); + index2++; + span219[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.516483f, 8.753822f, -612.76074f), 613) { DisableNavmesh = true }; - span78[3] = new QuestStep(EInteractionType.CompleteQuest, 1019939u, new Vector3(69.53528f, 25.007832f, -643.6713f), 613); + index2++; + span219[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019939u, new Vector3(69.53528f, 25.007832f, -643.6713f), 613); obj144.Steps = list219; reference157 = obj144; questRoot31.QuestSequence = list209; @@ -157965,21 +190150,26 @@ public static class AssemblyQuestLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - CollectionsMarshal.AsSpan(list220)[0] = "JerryWester"; + Span span220 = CollectionsMarshal.AsSpan(list220); + index = 0; + span220[index] = "JerryWester"; questRoot32.Author = list220; - num = 7; - List list221 = new List(num); - CollectionsMarshal.SetCount(list221, num); - Span span79 = CollectionsMarshal.AsSpan(list221); - ref QuestSequence reference158 = ref span79[0]; + index = 7; + List list221 = new List(index); + CollectionsMarshal.SetCount(list221, index); + Span span221 = CollectionsMarshal.AsSpan(list221); + num = 0; + ref QuestSequence reference158 = ref span221[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021511u, new Vector3(31.3573f, 3.245383f, -602.74664f), 613) + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + Span span222 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span222[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021511u, new Vector3(31.3573f, 3.245383f, -602.74664f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -157992,7 +190182,8 @@ public static class AssemblyQuestLoader }; obj145.Steps = list222; reference158 = obj145; - ref QuestSequence reference159 = ref span79[1]; + num++; + ref QuestSequence reference159 = ref span221[num]; QuestSequence obj146 = new QuestSequence { Sequence = 1 @@ -158000,22 +190191,26 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 2007911u, new Vector3(33.98181f, 4.1046753f, -603.87585f), 613) + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span223[index2] = new QuestStep(EInteractionType.Interact, 2007911u, new Vector3(33.98181f, 4.1046753f, -603.87585f), 613) { StopDistance = 4f }; obj146.Steps = list223; reference159 = obj146; - ref QuestSequence reference160 = ref span79[2]; + num++; + ref QuestSequence reference160 = ref span221[num]; QuestSequence obj147 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - Span span80 = CollectionsMarshal.AsSpan(list224); - ref QuestStep reference161 = ref span80[0]; + index2 = 2; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + ref QuestStep reference161 = ref span224[num2]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, 2007912u, new Vector3(138.10938f, 0.9613037f, -688.1666f), 613) { ItemId = 2002093u, @@ -158024,21 +190219,30 @@ public static class AssemblyQuestLoader num3 = 1; List list225 = new List(num3); CollectionsMarshal.SetCount(list225, num3); - CollectionsMarshal.AsSpan(list225)[0] = 6676u; + Span span225 = CollectionsMarshal.AsSpan(list225); + num4 = 0; + span225[num4] = 6676u; obj148.KillEnemyDataIds = list225; - num3 = 6; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - Span span81 = CollectionsMarshal.AsSpan(list226); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list226 = new List(num4); + CollectionsMarshal.SetCount(list226, num4); + Span span226 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + span226[num3] = null; + num3++; + span226[num3] = null; + num3++; + span226[num3] = null; + num3++; + span226[num3] = null; + num3++; + span226[num3] = null; + num3++; + span226[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj148.CompletionQuestVariablesFlags = list226; reference161 = obj148; - ref QuestStep reference162 = ref span80[1]; + num2++; + ref QuestStep reference162 = ref span224[num2]; QuestStep obj149 = new QuestStep(EInteractionType.Combat, 2007913u, new Vector3(256.21423f, -0.015319824f, -673.4874f), 613) { ItemId = 2002093u, @@ -158047,23 +190251,32 @@ public static class AssemblyQuestLoader num3 = 1; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = 6676u; + Span span227 = CollectionsMarshal.AsSpan(list227); + num4 = 0; + span227[num4] = 6676u; obj149.KillEnemyDataIds = list227; - num3 = 6; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - Span span82 = CollectionsMarshal.AsSpan(list228); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list228 = new List(num4); + CollectionsMarshal.SetCount(list228, num4); + Span span228 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span228[num3] = null; + num3++; + span228[num3] = null; + num3++; + span228[num3] = null; + num3++; + span228[num3] = null; + num3++; + span228[num3] = null; + num3++; + span228[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj149.CompletionQuestVariablesFlags = list228; reference162 = obj149; obj147.Steps = list224; reference160 = obj147; - ref QuestSequence reference163 = ref span79[3]; + num++; + ref QuestSequence reference163 = ref span221[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -158071,7 +190284,9 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - ref QuestStep reference164 = ref CollectionsMarshal.AsSpan(list229)[0]; + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + ref QuestStep reference164 = ref span229[index2]; QuestStep obj151 = new QuestStep(EInteractionType.Combat, null, new Vector3(446.98648f, 9.27001f, -657.7555f), 613) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -158079,26 +190294,32 @@ public static class AssemblyQuestLoader num3 = 1; List list230 = new List(num3); CollectionsMarshal.SetCount(list230, num3); - CollectionsMarshal.AsSpan(list230)[0] = 6618u; + Span span230 = CollectionsMarshal.AsSpan(list230); + num4 = 0; + span230[num4] = 6618u; obj151.KillEnemyDataIds = list230; reference164 = obj151; obj150.Steps = list229; reference163 = obj150; - ref QuestSequence reference165 = ref span79[4]; + num++; + ref QuestSequence reference165 = ref span221[num]; QuestSequence obj152 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1019946u, new Vector3(449.39343f, 9.2068815f, -661.21924f), 613) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.Interact, 1019946u, new Vector3(449.39343f, 9.2068815f, -661.21924f), 613) { StopDistance = 7f }; obj152.Steps = list231; reference165 = obj152; - ref QuestSequence reference166 = ref span79[5]; + num++; + ref QuestSequence reference166 = ref span221[num]; QuestSequence obj153 = new QuestSequence { Sequence = 5 @@ -158106,21 +190327,26 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1019939u, new Vector3(69.53528f, 25.007832f, -643.6713f), 613) + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span232[index2] = new QuestStep(EInteractionType.Interact, 1019939u, new Vector3(69.53528f, 25.007832f, -643.6713f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj153.Steps = list232; reference166 = obj153; - ref QuestSequence reference167 = ref span79[6]; + num++; + ref QuestSequence reference167 = ref span221[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613); + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + Span span233 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span233[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613); obj154.Steps = list233; reference167 = obj154; questRoot32.QuestSequence = list221; @@ -158130,13 +190356,16 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "JerryWester"; + Span span234 = CollectionsMarshal.AsSpan(list234); + index = 0; + span234[index] = "JerryWester"; questRoot33.Author = list234; - num = 5; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span83 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference168 = ref span83[0]; + index = 5; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + Span span235 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference168 = ref span235[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -158144,7 +190373,9 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) + Span span236 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span236[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -158157,23 +190388,27 @@ public static class AssemblyQuestLoader }; obj155.Steps = list236; reference168 = obj155; - ref QuestSequence reference169 = ref span83[1]; + num++; + ref QuestSequence reference169 = ref span235[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - Span span84 = CollectionsMarshal.AsSpan(list237); - span84[0] = new QuestStep(EInteractionType.AcceptQuest, 1022102u, new Vector3(97.8866f, 2.096308f, -617.79205f), 613) + index2 = 2; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + Span span237 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span237[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022102u, new Vector3(97.8866f, 2.096308f, -617.79205f), 613) { PickUpQuestId = new QuestId(2687) }; - span84[1] = new QuestStep(EInteractionType.Interact, 1019951u, new Vector3(152.6665f, 1.1855946f, -500.3586f), 613); + num2++; + span237[num2] = new QuestStep(EInteractionType.Interact, 1019951u, new Vector3(152.6665f, 1.1855946f, -500.3586f), 613); obj156.Steps = list237; reference169 = obj156; - ref QuestSequence reference170 = ref span83[2]; + num++; + ref QuestSequence reference170 = ref span235[num]; QuestSequence obj157 = new QuestSequence { Sequence = 2 @@ -158181,33 +190416,41 @@ public static class AssemblyQuestLoader num2 = 3; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span85 = CollectionsMarshal.AsSpan(list238); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(159.34975f, -0.60327315f, -494.75882f), 613) + Span span238 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span238[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(159.34975f, -0.60327315f, -494.75882f), 613) { DisableNavmesh = true }; - span85[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(529.52386f, -0.2066946f, -264.25665f), 613); - span85[2] = new QuestStep(EInteractionType.Interact, 1019952u, new Vector3(732.63135f, 3.4147437f, -237.72034f), 613); + index2++; + span238[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(529.52386f, -0.2066946f, -264.25665f), 613); + index2++; + span238[index2] = new QuestStep(EInteractionType.Interact, 1019952u, new Vector3(732.63135f, 3.4147437f, -237.72034f), 613); obj157.Steps = list238; reference170 = obj157; - ref QuestSequence reference171 = ref span83[3]; + num++; + ref QuestSequence reference171 = ref span235[num]; QuestSequence obj158 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - Span span86 = CollectionsMarshal.AsSpan(list239); - span86[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008002u, new Vector3(694.7584f, 1.9073486f, -53.48291f), 613) + index2 = 3; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + Span span239 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span239[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008002u, new Vector3(694.7584f, 1.9073486f, -53.48291f), 613) { AetherCurrentId = 2818185u }; - span86[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(637.34863f, 3.9160664f, -62.50255f), 613); - span86[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(540.77136f, -64.228035f, -173.20897f), 613); + num2++; + span239[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(637.34863f, 3.9160664f, -62.50255f), 613); + num2++; + span239[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(540.77136f, -64.228035f, -173.20897f), 613); obj158.Steps = list239; reference171 = obj158; - ref QuestSequence reference172 = ref span83[4]; + num++; + ref QuestSequence reference172 = ref span235[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -158215,7 +190458,9 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019956u, new Vector3(422.11023f, -98.96018f, -223.10223f), 613) + Span span240 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span240[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019956u, new Vector3(422.11023f, -98.96018f, -223.10223f), 613) { StopDistance = 5f }; @@ -158228,27 +190473,33 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "JerryWester"; + Span span241 = CollectionsMarshal.AsSpan(list241); + index = 0; + span241[index] = "JerryWester"; questRoot34.Author = list241; - num = 5; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span87 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference173 = ref span87[0]; + index = 5; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + Span span242 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference173 = ref span242[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019958u, new Vector3(420.34033f, -99.19678f, -221.36267f), 613) + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + Span span243 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span243[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019958u, new Vector3(420.34033f, -99.19678f, -221.36267f), 613) { StopDistance = 7f }; obj160.Steps = list243; reference173 = obj160; - ref QuestSequence reference174 = ref span87[1]; + num++; + ref QuestSequence reference174 = ref span242[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -158256,21 +190507,27 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span244[index2] = new QuestStep(EInteractionType.Interact, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); obj161.Steps = list244; reference174 = obj161; - ref QuestSequence reference175 = ref span87[2]; + num++; + ref QuestSequence reference175 = ref span242[num]; QuestSequence obj162 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1019960u, new Vector3(321.3092f, -120.01774f, -248.2185f), 613); + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + Span span245 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span245[num2] = new QuestStep(EInteractionType.Interact, 1019960u, new Vector3(321.3092f, -120.01774f, -248.2185f), 613); obj162.Steps = list245; reference175 = obj162; - ref QuestSequence reference176 = ref span87[3]; + num++; + ref QuestSequence reference176 = ref span242[num]; QuestSequence obj163 = new QuestSequence { Sequence = 3 @@ -158278,22 +190535,28 @@ public static class AssemblyQuestLoader num2 = 4; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span88 = CollectionsMarshal.AsSpan(list246); - span88[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 613) + Span span246 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span246[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 613) { Aetheryte = EAetheryteLocation.RubySeaTamamizu }; - span88[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.42303f, -61.394184f, -153.51427f), 613); - span88[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(647.60547f, 3.3050807f, -55.93293f), 613); - ref QuestStep reference177 = ref span88[3]; + index2++; + span246[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.42303f, -61.394184f, -153.51427f), 613); + index2++; + span246[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(647.60547f, 3.3050807f, -55.93293f), 613); + index2++; + ref QuestStep reference177 = ref span246[index2]; QuestStep obj164 = new QuestStep(EInteractionType.Combat, null, new Vector3(664.2144f, 1.8086157f, -5.028036f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list247 = new List(num3); - CollectionsMarshal.SetCount(list247, num3); - CollectionsMarshal.AsSpan(list247)[0] = new ComplexCombatData + num4 = 1; + List list247 = new List(num4); + CollectionsMarshal.SetCount(list247, num4); + Span span247 = CollectionsMarshal.AsSpan(list247); + num3 = 0; + span247[num3] = new ComplexCombatData { DataId = 6638u, MinimumKillCount = 1u, @@ -158304,15 +190567,18 @@ public static class AssemblyQuestLoader reference177 = obj164; obj163.Steps = list246; reference176 = obj163; - ref QuestSequence reference178 = ref span87[4]; + num++; + ref QuestSequence reference178 = ref span242[num]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019958u, new Vector3(420.34033f, -99.19678f, -221.36267f), 613) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019958u, new Vector3(420.34033f, -99.19678f, -221.36267f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; @@ -158325,13 +190591,16 @@ public static class AssemblyQuestLoader num = 1; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - CollectionsMarshal.AsSpan(list249)[0] = "JerryWester"; + Span span249 = CollectionsMarshal.AsSpan(list249); + index = 0; + span249[index] = "JerryWester"; questRoot35.Author = list249; - num = 3; - List list250 = new List(num); - CollectionsMarshal.SetCount(list250, num); - Span span89 = CollectionsMarshal.AsSpan(list250); - ref QuestSequence reference179 = ref span89[0]; + index = 3; + List list250 = new List(index); + CollectionsMarshal.SetCount(list250, index); + Span span250 = CollectionsMarshal.AsSpan(list250); + num = 0; + ref QuestSequence reference179 = ref span250[num]; QuestSequence obj166 = new QuestSequence { Sequence = 0 @@ -158339,7 +190608,9 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019958u, new Vector3(420.34033f, -99.19678f, -221.36267f), 613) + Span span251 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span251[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019958u, new Vector3(420.34033f, -99.19678f, -221.36267f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, SkipConditions = new SkipConditions @@ -158352,26 +190623,30 @@ public static class AssemblyQuestLoader }; obj166.Steps = list251; reference179 = obj166; - ref QuestSequence reference180 = ref span89[1]; + num++; + ref QuestSequence reference180 = ref span250[num]; QuestSequence obj167 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span90 = CollectionsMarshal.AsSpan(list252); - span90[0] = new QuestStep(EInteractionType.AcceptQuest, 1023357u, new Vector3(565.0873f, -62.272896f, -147.84473f), 613) + index2 = 2; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023357u, new Vector3(565.0873f, -62.272896f, -147.84473f), 613) { PickUpQuestId = new QuestId(2693) }; - span90[1] = new QuestStep(EInteractionType.Interact, 1019969u, new Vector3(322.56042f, -120.39043f, -300.5265f), 613) + num2++; + span252[num2] = new QuestStep(EInteractionType.Interact, 1019969u, new Vector3(322.56042f, -120.39043f, -300.5265f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; obj167.Steps = list252; reference180 = obj167; - ref QuestSequence reference181 = ref span89[2]; + num++; + ref QuestSequence reference181 = ref span250[num]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue @@ -158379,12 +190654,14 @@ public static class AssemblyQuestLoader num2 = 2; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span91 = CollectionsMarshal.AsSpan(list253); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) { RestartNavigationIfCancelled = false }; - span91[1] = new QuestStep(EInteractionType.CompleteQuest, 1019970u, new Vector3(19.424683f, -197.53093f, -143.93835f), 613) + index2++; + span253[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019970u, new Vector3(19.424683f, -197.53093f, -143.93835f), 613) { Mount = false }; @@ -158397,24 +190674,30 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - CollectionsMarshal.AsSpan(list254)[0] = "JerryWester"; + Span span254 = CollectionsMarshal.AsSpan(list254); + index = 0; + span254[index] = "JerryWester"; questRoot36.Author = list254; - num = 3; - List list255 = new List(num); - CollectionsMarshal.SetCount(list255, num); - Span span92 = CollectionsMarshal.AsSpan(list255); - ref QuestSequence reference182 = ref span92[0]; + index = 3; + List list255 = new List(index); + CollectionsMarshal.SetCount(list255, index); + Span span255 = CollectionsMarshal.AsSpan(list255); + num = 0; + ref QuestSequence reference182 = ref span255[num]; QuestSequence obj169 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019970u, new Vector3(19.424683f, -197.53093f, -143.93835f), 613); + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019970u, new Vector3(19.424683f, -197.53093f, -143.93835f), 613); obj169.Steps = list256; reference182 = obj169; - ref QuestSequence reference183 = ref span92[1]; + num++; + ref QuestSequence reference183 = ref span255[num]; QuestSequence obj170 = new QuestSequence { Sequence = 1 @@ -158422,18 +190705,23 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1019197u, new Vector3(-8.926575f, -187.08374f, -95.018005f), 613); + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = new QuestStep(EInteractionType.Interact, 1019197u, new Vector3(-8.926575f, -187.08374f, -95.018005f), 613); obj170.Steps = list257; reference183 = obj170; - ref QuestSequence reference184 = ref span92[2]; + num++; + ref QuestSequence reference184 = ref span255[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019971u, new Vector3(20.248657f, -197.56319f, -145.4032f), 613) + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span258[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019971u, new Vector3(20.248657f, -197.56319f, -145.4032f), 613) { Mount = true }; @@ -158446,13 +190734,16 @@ public static class AssemblyQuestLoader num = 1; List list259 = new List(num); CollectionsMarshal.SetCount(list259, num); - CollectionsMarshal.AsSpan(list259)[0] = "JerryWester"; + Span span259 = CollectionsMarshal.AsSpan(list259); + index = 0; + span259[index] = "JerryWester"; questRoot37.Author = list259; - num = 5; - List list260 = new List(num); - CollectionsMarshal.SetCount(list260, num); - Span span93 = CollectionsMarshal.AsSpan(list260); - ref QuestSequence reference185 = ref span93[0]; + index = 5; + List list260 = new List(index); + CollectionsMarshal.SetCount(list260, index); + Span span260 = CollectionsMarshal.AsSpan(list260); + num = 0; + ref QuestSequence reference185 = ref span260[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -158460,24 +190751,30 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019971u, new Vector3(20.248657f, -197.56319f, -145.4032f), 613); + Span span261 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span261[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019971u, new Vector3(20.248657f, -197.56319f, -145.4032f), 613); obj172.Steps = list261; reference185 = obj172; - ref QuestSequence reference186 = ref span93[1]; + num++; + ref QuestSequence reference186 = ref span260[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - Span span94 = CollectionsMarshal.AsSpan(list262); - ref QuestStep reference187 = ref span94[0]; + index2 = 3; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + ref QuestStep reference187 = ref span262[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); num3 = 1; List list263 = new List(num3); CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = new DialogueChoice + Span span263 = CollectionsMarshal.AsSpan(list263); + num4 = 0; + span263[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/026/StmBdy001_02632", @@ -158487,17 +190784,20 @@ public static class AssemblyQuestLoader questStep14.DialogueChoices = list263; questStep14.PickUpQuestId = new QuestId(2632); reference187 = questStep14; - span94[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(21.067955f, -197.78902f, -155.23956f), 613) + num2++; + span262[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(21.067955f, -197.78902f, -155.23956f), 613) { RestartNavigationIfCancelled = false }; - span94[2] = new QuestStep(EInteractionType.Interact, 1019978u, new Vector3(-227.86298f, -178.2102f, 185.74805f), 613) + num2++; + span262[num2] = new QuestStep(EInteractionType.Interact, 1019978u, new Vector3(-227.86298f, -178.2102f, 185.74805f), 613) { Fly = true }; obj173.Steps = list262; reference186 = obj173; - ref QuestSequence reference188 = ref span93[2]; + num++; + ref QuestSequence reference188 = ref span260[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 @@ -158505,7 +190805,9 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-220.46619f, -193.02971f, 222.901f), 613) + Span span264 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span264[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-220.46619f, -193.02971f, 222.901f), 613) { StopDistance = 1f, Fly = true, @@ -158513,21 +190815,25 @@ public static class AssemblyQuestLoader }; obj174.Steps = list264; reference188 = obj174; - ref QuestSequence reference189 = ref span93[3]; + num++; + ref QuestSequence reference189 = ref span260[num]; QuestSequence obj175 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 2007920u, new Vector3(-220.6607f, -192.49261f, 221.51514f), 613) + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + Span span265 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span265[num2] = new QuestStep(EInteractionType.Interact, 2007920u, new Vector3(-220.6607f, -192.49261f, 221.51514f), 613) { Mount = false }; obj175.Steps = list265; reference189 = obj175; - ref QuestSequence reference190 = ref span93[4]; + num++; + ref QuestSequence reference190 = ref span260[num]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue @@ -158535,7 +190841,9 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019978u, new Vector3(-227.86298f, -178.2102f, 185.74805f), 613) + Span span266 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span266[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019978u, new Vector3(-227.86298f, -178.2102f, 185.74805f), 613) { Fly = true }; @@ -158548,27 +190856,33 @@ public static class AssemblyQuestLoader num = 1; List list267 = new List(num); CollectionsMarshal.SetCount(list267, num); - CollectionsMarshal.AsSpan(list267)[0] = "JerryWester"; + Span span267 = CollectionsMarshal.AsSpan(list267); + index = 0; + span267[index] = "JerryWester"; questRoot38.Author = list267; - num = 3; - List list268 = new List(num); - CollectionsMarshal.SetCount(list268, num); - Span span95 = CollectionsMarshal.AsSpan(list268); - ref QuestSequence reference191 = ref span95[0]; + index = 3; + List list268 = new List(index); + CollectionsMarshal.SetCount(list268, index); + Span span268 = CollectionsMarshal.AsSpan(list268); + num = 0; + ref QuestSequence reference191 = ref span268[num]; QuestSequence obj177 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019978u, new Vector3(-227.86298f, -178.2102f, 185.74805f), 613) + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + Span span269 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span269[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019978u, new Vector3(-227.86298f, -178.2102f, 185.74805f), 613) { Mount = false }; obj177.Steps = list269; reference191 = obj177; - ref QuestSequence reference192 = ref span95[1]; + num++; + ref QuestSequence reference192 = ref span268[num]; QuestSequence obj178 = new QuestSequence { Sequence = 1 @@ -158576,21 +190890,26 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.Interact, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span270[index2] = new QuestStep(EInteractionType.Interact, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; obj178.Steps = list270; reference192 = obj178; - ref QuestSequence reference193 = ref span95[2]; + num++; + ref QuestSequence reference193 = ref span268[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019961u, new Vector3(323.0487f, -120.03495f, -249.01202f), 613); + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019961u, new Vector3(323.0487f, -120.03495f, -249.01202f), 613); obj179.Steps = list271; reference193 = obj179; questRoot38.QuestSequence = list268; @@ -158600,13 +190919,16 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - CollectionsMarshal.AsSpan(list272)[0] = "JerryWester"; + Span span272 = CollectionsMarshal.AsSpan(list272); + index = 0; + span272[index] = "JerryWester"; questRoot39.Author = list272; - num = 7; - List list273 = new List(num); - CollectionsMarshal.SetCount(list273, num); - Span span96 = CollectionsMarshal.AsSpan(list273); - ref QuestSequence reference194 = ref span96[0]; + index = 7; + List list273 = new List(index); + CollectionsMarshal.SetCount(list273, index); + Span span273 = CollectionsMarshal.AsSpan(list273); + num = 0; + ref QuestSequence reference194 = ref span273[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 @@ -158614,7 +190936,9 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - ref QuestStep reference195 = ref CollectionsMarshal.AsSpan(list274)[0]; + Span span274 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + ref QuestStep reference195 = ref span274[index2]; QuestStep obj181 = new QuestStep(EInteractionType.AcceptQuest, 1019961u, new Vector3(323.0487f, -120.03495f, -249.01202f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, @@ -158626,10 +190950,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list275 = new List(num3); - CollectionsMarshal.SetCount(list275, num3); - CollectionsMarshal.AsSpan(list275)[0] = new DialogueChoice + num4 = 1; + List list275 = new List(num4); + CollectionsMarshal.SetCount(list275, num4); + Span span275 = CollectionsMarshal.AsSpan(list275); + num3 = 0; + span275[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA312_02488_Q1_000_013"), @@ -158639,26 +190965,30 @@ public static class AssemblyQuestLoader reference195 = obj181; obj180.Steps = list274; reference194 = obj180; - ref QuestSequence reference196 = ref span96[1]; + num++; + ref QuestSequence reference196 = ref span273[num]; QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - Span span97 = CollectionsMarshal.AsSpan(list276); - span97[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.05746f, -121.20501f, -314.00232f), 613) + index2 = 2; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + Span span276 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + span276[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.05746f, -121.20501f, -314.00232f), 613) { RestartNavigationIfCancelled = false }; - span97[1] = new QuestStep(EInteractionType.Interact, 1019981u, new Vector3(-470.81714f, -94.80432f, 191.85156f), 613) + num2++; + span276[num2] = new QuestStep(EInteractionType.Interact, 1019981u, new Vector3(-470.81714f, -94.80432f, 191.85156f), 613) { Fly = true }; obj182.Steps = list276; reference196 = obj182; - ref QuestSequence reference197 = ref span96[2]; + num++; + ref QuestSequence reference197 = ref span273[num]; QuestSequence obj183 = new QuestSequence { Sequence = 2 @@ -158666,21 +190996,26 @@ public static class AssemblyQuestLoader num2 = 5; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - Span span98 = CollectionsMarshal.AsSpan(list277); - span98[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-583.7968f, -58.207996f, 244.92668f), 613) + Span span277 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + span277[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-583.7968f, -58.207996f, 244.92668f), 613) { Mount = true, Fly = true }; - span98[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-655.3086f, 0f, 270.4341f), 613) + index2++; + span277[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-655.3086f, 0f, 270.4341f), 613) { DisableNavmesh = true, Fly = true, RestartNavigationIfCancelled = false }; - span98[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.9208f, -0.3971126f, 261.18878f), 613); - span98[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-721.99646f, 0.08899796f, 248.7757f), 613); - ref QuestStep reference198 = ref span98[4]; + index2++; + span277[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.9208f, -0.3971126f, 261.18878f), 613); + index2++; + span277[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-721.99646f, 0.08899796f, 248.7757f), 613); + index2++; + ref QuestStep reference198 = ref span277[index2]; QuestStep obj184 = new QuestStep(EInteractionType.Combat, null, new Vector3(-739.8565f, 4.6514797f, 233.82903f), 613) { StopDistance = 0.5f, @@ -158689,39 +191024,48 @@ public static class AssemblyQuestLoader num3 = 2; List list278 = new List(num3); CollectionsMarshal.SetCount(list278, num3); - Span span99 = CollectionsMarshal.AsSpan(list278); - span99[0] = 7557u; - span99[1] = 7558u; + Span span278 = CollectionsMarshal.AsSpan(list278); + num4 = 0; + span278[num4] = 7557u; + num4++; + span278[num4] = 7558u; obj184.KillEnemyDataIds = list278; reference198 = obj184; obj183.Steps = list277; reference197 = obj183; - ref QuestSequence reference199 = ref span96[3]; + num++; + ref QuestSequence reference199 = ref span273[num]; QuestSequence obj185 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list279)[0]; + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + Span span279 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + ref QuestStep reference200 = ref span279[num2]; QuestStep obj186 = new QuestStep(EInteractionType.Combat, null, new Vector3(-701.18787f, 6.9741554f, 19.126472f), 613) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list280 = new List(num3); - CollectionsMarshal.SetCount(list280, num3); - Span span100 = CollectionsMarshal.AsSpan(list280); - span100[0] = 7559u; - span100[1] = 8041u; - span100[2] = 8042u; + num4 = 3; + List list280 = new List(num4); + CollectionsMarshal.SetCount(list280, num4); + Span span280 = CollectionsMarshal.AsSpan(list280); + num3 = 0; + span280[num3] = 7559u; + num3++; + span280[num3] = 8041u; + num3++; + span280[num3] = 8042u; obj186.KillEnemyDataIds = list280; reference200 = obj186; obj185.Steps = list279; reference199 = obj185; - ref QuestSequence reference201 = ref span96[4]; + num++; + ref QuestSequence reference201 = ref span273[num]; QuestSequence obj187 = new QuestSequence { Sequence = 4 @@ -158729,26 +191073,32 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1020624u, new Vector3(-740.2304f, 8.312634f, 118.18103f), 613); + Span span281 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span281[index2] = new QuestStep(EInteractionType.Interact, 1020624u, new Vector3(-740.2304f, 8.312634f, 118.18103f), 613); obj187.Steps = list281; reference201 = obj187; - ref QuestSequence reference202 = ref span96[5]; + num++; + ref QuestSequence reference202 = ref span273[num]; QuestSequence obj188 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - Span span101 = CollectionsMarshal.AsSpan(list282); - span101[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008004u, new Vector3(-805.7832f, 36.575806f, 235.18726f), 613) + index2 = 2; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + Span span282 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span282[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008004u, new Vector3(-805.7832f, 36.575806f, 235.18726f), 613) { AetherCurrentId = 2818187u }; - span101[1] = new QuestStep(EInteractionType.Interact, 1019983u, new Vector3(-835.7214f, 51.33433f, 38.986816f), 613); + num2++; + span282[num2] = new QuestStep(EInteractionType.Interact, 1019983u, new Vector3(-835.7214f, 51.33433f, 38.986816f), 613); obj188.Steps = list282; reference202 = obj188; - ref QuestSequence reference203 = ref span96[6]; + num++; + ref QuestSequence reference203 = ref span273[num]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue @@ -158756,7 +191106,9 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019985u, new Vector3(-797.3602f, 48.41823f, 149.64526f), 613); + Span span283 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span283[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019985u, new Vector3(-797.3602f, 48.41823f, 149.64526f), 613); obj189.Steps = list283; reference203 = obj189; questRoot39.QuestSequence = list273; @@ -158766,24 +191118,30 @@ public static class AssemblyQuestLoader num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - CollectionsMarshal.AsSpan(list284)[0] = "JerryWester"; + Span span284 = CollectionsMarshal.AsSpan(list284); + index = 0; + span284[index] = "JerryWester"; questRoot40.Author = list284; - num = 6; - List list285 = new List(num); - CollectionsMarshal.SetCount(list285, num); - Span span102 = CollectionsMarshal.AsSpan(list285); - ref QuestSequence reference204 = ref span102[0]; + index = 6; + List list285 = new List(index); + CollectionsMarshal.SetCount(list285, index); + Span span285 = CollectionsMarshal.AsSpan(list285); + num = 0; + ref QuestSequence reference204 = ref span285[num]; QuestSequence obj190 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019985u, new Vector3(-797.3602f, 48.41823f, 149.64526f), 613); + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + Span span286 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span286[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019985u, new Vector3(-797.3602f, 48.41823f, 149.64526f), 613); obj190.Steps = list286; reference204 = obj190; - ref QuestSequence reference205 = ref span102[1]; + num++; + ref QuestSequence reference205 = ref span285[num]; QuestSequence obj191 = new QuestSequence { Sequence = 1 @@ -158791,18 +191149,23 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 2007853u, new Vector3(-838.9868f, 52.017944f, 38.010254f), 613); + Span span287 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + span287[index2] = new QuestStep(EInteractionType.Interact, 2007853u, new Vector3(-838.9868f, 52.017944f, 38.010254f), 613); obj191.Steps = list287; reference205 = obj191; - ref QuestSequence reference206 = ref span102[2]; + num++; + ref QuestSequence reference206 = ref span285[num]; QuestSequence obj192 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Duty, null, null, 613) + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + Span span288 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span288[num2] = new QuestStep(EInteractionType.Duty, null, null, 613) { DutyOptions = new DutyOptions { @@ -158811,11 +191174,13 @@ public static class AssemblyQuestLoader }; obj192.Steps = list288; reference206 = obj192; - span102[3] = new QuestSequence + num++; + span285[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference207 = ref span102[4]; + num++; + ref QuestSequence reference207 = ref span285[num]; QuestSequence obj193 = new QuestSequence { Sequence = 4 @@ -158823,25 +191188,31 @@ public static class AssemblyQuestLoader num2 = 3; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span103 = CollectionsMarshal.AsSpan(list289); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.66895f, -45.822067f, -272.77194f), 613); - span103[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-625.9836f, -0.5999986f, -278.578f), 613) + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span289[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.66895f, -45.822067f, -272.77194f), 613); + index2++; + span289[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-625.9836f, -0.5999986f, -278.578f), 613) { DisableNavmesh = true, RestartNavigationIfCancelled = false }; - span103[2] = new QuestStep(EInteractionType.Interact, 1019987u, new Vector3(-727.657f, 0.3198316f, -316.88416f), 613); + index2++; + span289[index2] = new QuestStep(EInteractionType.Interact, 1019987u, new Vector3(-727.657f, 0.3198316f, -316.88416f), 613); obj193.Steps = list289; reference207 = obj193; - ref QuestSequence reference208 = ref span102[5]; + num++; + ref QuestSequence reference208 = ref span285[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019988u, new Vector3(-761.83716f, 4.763445f, -455.2224f), 613); + index2 = 1; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + Span span290 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span290[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019988u, new Vector3(-761.83716f, 4.763445f, -455.2224f), 613); obj194.Steps = list290; reference208 = obj194; questRoot40.QuestSequence = list285; @@ -158851,13 +191222,16 @@ public static class AssemblyQuestLoader num = 1; List list291 = new List(num); CollectionsMarshal.SetCount(list291, num); - CollectionsMarshal.AsSpan(list291)[0] = "JerryWester"; + Span span291 = CollectionsMarshal.AsSpan(list291); + index = 0; + span291[index] = "JerryWester"; questRoot41.Author = list291; - num = 3; - List list292 = new List(num); - CollectionsMarshal.SetCount(list292, num); - Span span104 = CollectionsMarshal.AsSpan(list292); - ref QuestSequence reference209 = ref span104[0]; + index = 3; + List list292 = new List(index); + CollectionsMarshal.SetCount(list292, index); + Span span292 = CollectionsMarshal.AsSpan(list292); + num = 0; + ref QuestSequence reference209 = ref span292[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -158865,51 +191239,69 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019988u, new Vector3(-761.83716f, 4.763445f, -455.2224f), 613); + Span span293 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span293[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019988u, new Vector3(-761.83716f, 4.763445f, -455.2224f), 613); obj195.Steps = list293; reference209 = obj195; - ref QuestSequence reference210 = ref span104[1]; + num++; + ref QuestSequence reference210 = ref span292[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - Span span105 = CollectionsMarshal.AsSpan(list294); - ref QuestStep reference211 = ref span105[0]; + index2 = 5; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span294 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + ref QuestStep reference211 = ref span294[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.3967f, 7.9621f, -446.48938f), 613); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list295 = new List(num3); CollectionsMarshal.SetCount(list295, num3); - Span span106 = CollectionsMarshal.AsSpan(list295); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span295 = CollectionsMarshal.AsSpan(list295); + num4 = 0; + span295[num4] = null; + num4++; + span295[num4] = null; + num4++; + span295[num4] = null; + num4++; + span295[num4] = null; + num4++; + span295[num4] = null; + num4++; + span295[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list295; skipConditions3.StepIf = skipStepConditions2; questStep15.SkipConditions = skipConditions3; reference211 = questStep15; - ref QuestStep reference212 = ref span105[1]; + num2++; + ref QuestStep reference212 = ref span294[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1019991u, new Vector3(-807.3701f, 8.49827f, -418.87543f), 613); - num3 = 6; - List list296 = new List(num3); - CollectionsMarshal.SetCount(list296, num3); - Span span107 = CollectionsMarshal.AsSpan(list296); - span107[0] = null; - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list296 = new List(num4); + CollectionsMarshal.SetCount(list296, num4); + Span span296 = CollectionsMarshal.AsSpan(list296); + num3 = 0; + span296[num3] = null; + num3++; + span296[num3] = null; + num3++; + span296[num3] = null; + num3++; + span296[num3] = null; + num3++; + span296[num3] = null; + num3++; + span296[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list296; reference212 = questStep16; - ref QuestStep reference213 = ref span105[2]; + num2++; + ref QuestStep reference213 = ref span294[num2]; QuestStep obj197 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-796.8525f, 8.05057f, -418.3381f), 613) { Mount = true @@ -158919,51 +191311,72 @@ public static class AssemblyQuestLoader num3 = 6; List list297 = new List(num3); CollectionsMarshal.SetCount(list297, num3); - Span span108 = CollectionsMarshal.AsSpan(list297); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span297 = CollectionsMarshal.AsSpan(list297); + num4 = 0; + span297[num4] = null; + num4++; + span297[num4] = null; + num4++; + span297[num4] = null; + num4++; + span297[num4] = null; + num4++; + span297[num4] = null; + num4++; + span297[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list297; skipConditions4.StepIf = skipStepConditions3; obj197.SkipConditions = skipConditions4; reference213 = obj197; - ref QuestStep reference214 = ref span105[3]; + num2++; + ref QuestStep reference214 = ref span294[num2]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1019990u, new Vector3(-794.6136f, 4.993313f, -372.67108f), 613) { DisableNavmesh = true }; - num3 = 6; - List list298 = new List(num3); - CollectionsMarshal.SetCount(list298, num3); - Span span109 = CollectionsMarshal.AsSpan(list298); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list298 = new List(num4); + CollectionsMarshal.SetCount(list298, num4); + Span span298 = CollectionsMarshal.AsSpan(list298); + num3 = 0; + span298[num3] = null; + num3++; + span298[num3] = null; + num3++; + span298[num3] = null; + num3++; + span298[num3] = null; + num3++; + span298[num3] = null; + num3++; + span298[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj198.CompletionQuestVariablesFlags = list298; reference214 = obj198; - ref QuestStep reference215 = ref span105[4]; + num2++; + ref QuestStep reference215 = ref span294[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1019992u, new Vector3(-791.2566f, 21.428185f, -480.24725f), 613); num3 = 6; List list299 = new List(num3); CollectionsMarshal.SetCount(list299, num3); - Span span110 = CollectionsMarshal.AsSpan(list299); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span299 = CollectionsMarshal.AsSpan(list299); + num4 = 0; + span299[num4] = null; + num4++; + span299[num4] = null; + num4++; + span299[num4] = null; + num4++; + span299[num4] = null; + num4++; + span299[num4] = null; + num4++; + span299[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list299; reference215 = questStep17; obj196.Steps = list294; reference210 = obj196; - ref QuestSequence reference216 = ref span104[2]; + num++; + ref QuestSequence reference216 = ref span292[num]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue @@ -158971,7 +191384,9 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019989u, new Vector3(-761.83716f, 4.763445f, -453.4829f), 613); + Span span300 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span300[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019989u, new Vector3(-761.83716f, 4.763445f, -453.4829f), 613); obj199.Steps = list300; reference216 = obj199; questRoot41.QuestSequence = list292; @@ -158981,27 +191396,33 @@ public static class AssemblyQuestLoader num = 1; List list301 = new List(num); CollectionsMarshal.SetCount(list301, num); - CollectionsMarshal.AsSpan(list301)[0] = "JerryWester"; + Span span301 = CollectionsMarshal.AsSpan(list301); + index = 0; + span301[index] = "JerryWester"; questRoot42.Author = list301; - num = 4; - List list302 = new List(num); - CollectionsMarshal.SetCount(list302, num); - Span span111 = CollectionsMarshal.AsSpan(list302); - ref QuestSequence reference217 = ref span111[0]; + index = 4; + List list302 = new List(index); + CollectionsMarshal.SetCount(list302, index); + Span span302 = CollectionsMarshal.AsSpan(list302); + num = 0; + ref QuestSequence reference217 = ref span302[num]; QuestSequence obj200 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020186u, new Vector3(-761.7761f, 4.763445f, -460.01373f), 613) + index2 = 1; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + Span span303 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span303[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020186u, new Vector3(-761.7761f, 4.763445f, -460.01373f), 613) { StopDistance = 5f }; obj200.Steps = list303; reference217 = obj200; - ref QuestSequence reference218 = ref span111[1]; + num++; + ref QuestSequence reference218 = ref span302[num]; QuestSequence obj201 = new QuestSequence { Sequence = 1 @@ -159009,25 +191430,31 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-831.06116f, 20.168653f, -266.25217f), 613) + Span span304 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span304[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-831.06116f, 20.168653f, -266.25217f), 613) { TargetTerritoryId = (ushort)614, Fly = true }; obj201.Steps = list304; reference218 = obj201; - ref QuestSequence reference219 = ref span111[2]; + num++; + ref QuestSequence reference219 = ref span302[num]; QuestSequence obj202 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.Interact, 1019994u, new Vector3(790.4325f, 99.489136f, -290.8523f), 614); + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + Span span305 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span305[num2] = new QuestStep(EInteractionType.Interact, 1019994u, new Vector3(790.4325f, 99.489136f, -290.8523f), 614); obj202.Steps = list305; reference219 = obj202; - ref QuestSequence reference220 = ref span111[3]; + num++; + ref QuestSequence reference220 = ref span302[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -159035,7 +191462,9 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019997u, new Vector3(527.9164f, 43.697002f, -156.05408f), 614); + Span span306 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span306[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019997u, new Vector3(527.9164f, 43.697002f, -156.05408f), 614); obj203.Steps = list306; reference220 = obj203; questRoot42.QuestSequence = list302; @@ -159045,24 +191474,30 @@ public static class AssemblyQuestLoader num = 1; List list307 = new List(num); CollectionsMarshal.SetCount(list307, num); - CollectionsMarshal.AsSpan(list307)[0] = "JerryWester"; + Span span307 = CollectionsMarshal.AsSpan(list307); + index = 0; + span307[index] = "JerryWester"; questRoot43.Author = list307; - num = 5; - List list308 = new List(num); - CollectionsMarshal.SetCount(list308, num); - Span span112 = CollectionsMarshal.AsSpan(list308); - ref QuestSequence reference221 = ref span112[0]; + index = 5; + List list308 = new List(index); + CollectionsMarshal.SetCount(list308, index); + Span span308 = CollectionsMarshal.AsSpan(list308); + num = 0; + ref QuestSequence reference221 = ref span308[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019997u, new Vector3(527.9164f, 43.697002f, -156.05408f), 614); + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + Span span309 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span309[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019997u, new Vector3(527.9164f, 43.697002f, -156.05408f), 614); obj204.Steps = list309; reference221 = obj204; - ref QuestSequence reference222 = ref span112[1]; + num++; + ref QuestSequence reference222 = ref span308[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -159070,21 +191505,27 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 2007834u, new Vector3(487.0526f, 50.461548f, -115.03784f), 614); + Span span310 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span310[index2] = new QuestStep(EInteractionType.Interact, 2007834u, new Vector3(487.0526f, 50.461548f, -115.03784f), 614); obj205.Steps = list310; reference222 = obj205; - ref QuestSequence reference223 = ref span112[2]; + num++; + ref QuestSequence reference223 = ref span308[num]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Interact, 1020000u, new Vector3(507.95752f, 41.742855f, -94.5907f), 614); + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + Span span311 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span311[num2] = new QuestStep(EInteractionType.Interact, 1020000u, new Vector3(507.95752f, 41.742855f, -94.5907f), 614); obj206.Steps = list311; reference223 = obj206; - ref QuestSequence reference224 = ref span112[3]; + num++; + ref QuestSequence reference224 = ref span308[num]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -159092,38 +191533,45 @@ public static class AssemblyQuestLoader num2 = 2; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span113 = CollectionsMarshal.AsSpan(list312); - span113[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 614) + Span span312 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + span312[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 614) { Aetheryte = EAetheryteLocation.YanxiaNamai }; - span113[1] = new QuestStep(EInteractionType.Interact, 1020016u, new Vector3(414.51123f, -0.30000687f, -276.56976f), 614); + index2++; + span312[index2] = new QuestStep(EInteractionType.Interact, 1020016u, new Vector3(414.51123f, -0.30000687f, -276.56976f), 614); obj207.Steps = list312; reference224 = obj207; - ref QuestSequence reference225 = ref span112[4]; + num++; + ref QuestSequence reference225 = ref span308[num]; QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - Span span114 = CollectionsMarshal.AsSpan(list313); - span114[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(406.34747f, -0.6000004f, -281.95883f), 614) + index2 = 4; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + Span span313 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span313[num2] = new QuestStep(EInteractionType.Dive, null, new Vector3(406.34747f, -0.6000004f, -281.95883f), 614) { StopDistance = 0.25f }; - span114[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(365.84177f, -50.164906f, -309.3022f), 614) + num2++; + span313[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(365.84177f, -50.164906f, -309.3022f), 614) { Fly = true }; - span114[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(301.059f, -21.410976f, -358.57938f), 614) + num2++; + span313[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(301.059f, -21.410976f, -358.57938f), 614) { StopDistance = 0.25f, Fly = true, RestartNavigationIfCancelled = false }; - span114[3] = new QuestStep(EInteractionType.CompleteQuest, 1020007u, new Vector3(277.9735f, 3.2627518f, -378.95782f), 614); + num2++; + span313[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020007u, new Vector3(277.9735f, 3.2627518f, -378.95782f), 614); obj208.Steps = list313; reference225 = obj208; questRoot43.QuestSequence = list308; @@ -159133,13 +191581,16 @@ public static class AssemblyQuestLoader num = 1; List list314 = new List(num); CollectionsMarshal.SetCount(list314, num); - CollectionsMarshal.AsSpan(list314)[0] = "JerryWester"; + Span span314 = CollectionsMarshal.AsSpan(list314); + index = 0; + span314[index] = "JerryWester"; questRoot44.Author = list314; - num = 4; - List list315 = new List(num); - CollectionsMarshal.SetCount(list315, num); - Span span115 = CollectionsMarshal.AsSpan(list315); - ref QuestSequence reference226 = ref span115[0]; + index = 4; + List list315 = new List(index); + CollectionsMarshal.SetCount(list315, index); + Span span315 = CollectionsMarshal.AsSpan(list315); + num = 0; + ref QuestSequence reference226 = ref span315[num]; QuestSequence obj209 = new QuestSequence { Sequence = 0 @@ -159147,24 +191598,30 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020011u, new Vector3(-49.881836f, -0.26051223f, -12.893921f), 681); + Span span316 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span316[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020011u, new Vector3(-49.881836f, -0.26051223f, -12.893921f), 681); obj209.Steps = list316; reference226 = obj209; - ref QuestSequence reference227 = ref span115[1]; + num++; + ref QuestSequence reference227 = ref span315[num]; QuestSequence obj210 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.Interact, 1020012u, new Vector3(486.9917f, 50.48013f, -115.40399f), 614) + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + Span span317 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span317[num2] = new QuestStep(EInteractionType.Interact, 1020012u, new Vector3(486.9917f, 50.48013f, -115.40399f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj210.Steps = list317; reference227 = obj210; - ref QuestSequence reference228 = ref span115[2]; + num++; + ref QuestSequence reference228 = ref span315[num]; QuestSequence obj211 = new QuestSequence { Sequence = 2 @@ -159172,38 +191629,54 @@ public static class AssemblyQuestLoader num2 = 4; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - Span span116 = CollectionsMarshal.AsSpan(list318); - ref QuestStep reference229 = ref span116[0]; + Span span318 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + ref QuestStep reference229 = ref span318[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614); - num3 = 6; - List list319 = new List(num3); - CollectionsMarshal.SetCount(list319, num3); - Span span117 = CollectionsMarshal.AsSpan(list319); - span117[0] = null; - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list319 = new List(num4); + CollectionsMarshal.SetCount(list319, num4); + Span span319 = CollectionsMarshal.AsSpan(list319); + num3 = 0; + span319[num3] = null; + num3++; + span319[num3] = null; + num3++; + span319[num3] = null; + num3++; + span319[num3] = null; + num3++; + span319[num3] = null; + num3++; + span319[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list319; reference229 = questStep18; - ref QuestStep reference230 = ref span116[1]; + index2++; + ref QuestStep reference230 = ref span318[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1022719u, new Vector3(434.22595f, 68.02851f, -65.171326f), 614); num3 = 6; List list320 = new List(num3); CollectionsMarshal.SetCount(list320, num3); - Span span118 = CollectionsMarshal.AsSpan(list320); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span320 = CollectionsMarshal.AsSpan(list320); + num4 = 0; + span320[num4] = null; + num4++; + span320[num4] = null; + num4++; + span320[num4] = null; + num4++; + span320[num4] = null; + num4++; + span320[num4] = null; + num4++; + span320[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list320; - num3 = 1; - List list321 = new List(num3); - CollectionsMarshal.SetCount(list321, num3); - CollectionsMarshal.AsSpan(list321)[0] = new DialogueChoice + num4 = 1; + List list321 = new List(num4); + CollectionsMarshal.SetCount(list321, num4); + Span span321 = CollectionsMarshal.AsSpan(list321); + num3 = 0; + span321[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA317_02493_Q1_100_040"), @@ -159211,48 +191684,65 @@ public static class AssemblyQuestLoader }; questStep19.DialogueChoices = list321; reference230 = questStep19; - ref QuestStep reference231 = ref span116[2]; + index2++; + ref QuestStep reference231 = ref span318[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1019259u, new Vector3(405.4779f, 67.4601f, -61.539734f), 614); num3 = 6; List list322 = new List(num3); CollectionsMarshal.SetCount(list322, num3); - Span span119 = CollectionsMarshal.AsSpan(list322); - span119[0] = null; - span119[1] = null; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span322 = CollectionsMarshal.AsSpan(list322); + num4 = 0; + span322[num4] = null; + num4++; + span322[num4] = null; + num4++; + span322[num4] = null; + num4++; + span322[num4] = null; + num4++; + span322[num4] = null; + num4++; + span322[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list322; reference231 = questStep20; - ref QuestStep reference232 = ref span116[3]; + index2++; + ref QuestStep reference232 = ref span318[index2]; QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1020015u, new Vector3(389.2423f, 72.07916f, -68.467285f), 614) { Mount = true }; - num3 = 6; - List list323 = new List(num3); - CollectionsMarshal.SetCount(list323, num3); - Span span120 = CollectionsMarshal.AsSpan(list323); - span120[0] = null; - span120[1] = null; - span120[2] = null; - span120[3] = null; - span120[4] = null; - span120[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list323 = new List(num4); + CollectionsMarshal.SetCount(list323, num4); + Span span323 = CollectionsMarshal.AsSpan(list323); + num3 = 0; + span323[num3] = null; + num3++; + span323[num3] = null; + num3++; + span323[num3] = null; + num3++; + span323[num3] = null; + num3++; + span323[num3] = null; + num3++; + span323[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj212.CompletionQuestVariablesFlags = list323; reference232 = obj212; obj211.Steps = list318; reference228 = obj211; - ref QuestSequence reference233 = ref span115[3]; + num++; + ref QuestSequence reference233 = ref span315[num]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020012u, new Vector3(486.9917f, 50.48013f, -115.40399f), 614); + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + Span span324 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span324[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020012u, new Vector3(486.9917f, 50.48013f, -115.40399f), 614); obj213.Steps = list324; reference233 = obj213; questRoot44.QuestSequence = list315; @@ -159262,13 +191752,16 @@ public static class AssemblyQuestLoader num = 1; List list325 = new List(num); CollectionsMarshal.SetCount(list325, num); - CollectionsMarshal.AsSpan(list325)[0] = "JerryWester"; + Span span325 = CollectionsMarshal.AsSpan(list325); + index = 0; + span325[index] = "JerryWester"; questRoot45.Author = list325; - num = 7; - List list326 = new List(num); - CollectionsMarshal.SetCount(list326, num); - Span span121 = CollectionsMarshal.AsSpan(list326); - ref QuestSequence reference234 = ref span121[0]; + index = 7; + List list326 = new List(index); + CollectionsMarshal.SetCount(list326, index); + Span span326 = CollectionsMarshal.AsSpan(list326); + num = 0; + ref QuestSequence reference234 = ref span326[num]; QuestSequence obj214 = new QuestSequence { Sequence = 0 @@ -159276,7 +191769,9 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020012u, new Vector3(486.9917f, 50.48013f, -115.40399f), 614) + Span span327 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span327[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020012u, new Vector3(486.9917f, 50.48013f, -115.40399f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -159289,24 +191784,28 @@ public static class AssemblyQuestLoader }; obj214.Steps = list327; reference234 = obj214; - ref QuestSequence reference235 = ref span121[1]; + num++; + ref QuestSequence reference235 = ref span326[num]; QuestSequence obj215 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - Span span122 = CollectionsMarshal.AsSpan(list328); - span122[0] = new QuestStep(EInteractionType.AcceptQuest, 1019314u, new Vector3(421.77454f, -0.3000138f, -293.9651f), 614) + index2 = 3; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + Span span328 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span328[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019314u, new Vector3(421.77454f, -0.3000138f, -293.9651f), 614) { PickUpQuestId = new QuestId(2724) }; - span122[1] = new QuestStep(EInteractionType.AcceptQuest, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614) + num2++; + span328[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614) { PickUpQuestId = new QuestId(2728) }; - ref QuestStep reference236 = ref span122[2]; + num2++; + ref QuestStep reference236 = ref span328[num2]; QuestStep obj216 = new QuestStep(EInteractionType.Combat, null, new Vector3(508.4545f, 83.838875f, 98.54378f), 614) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -159314,12 +191813,15 @@ public static class AssemblyQuestLoader num3 = 1; List list329 = new List(num3); CollectionsMarshal.SetCount(list329, num3); - CollectionsMarshal.AsSpan(list329)[0] = 7560u; + Span span329 = CollectionsMarshal.AsSpan(list329); + num4 = 0; + span329[num4] = 7560u; obj216.KillEnemyDataIds = list329; reference236 = obj216; obj215.Steps = list328; reference235 = obj215; - ref QuestSequence reference237 = ref span121[2]; + num++; + ref QuestSequence reference237 = ref span326[num]; QuestSequence obj217 = new QuestSequence { Sequence = 2 @@ -159327,34 +191829,42 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.Interact, 1020018u, new Vector3(507.86584f, 83.5696f, 94.92627f), 614) + Span span330 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span330[index2] = new QuestStep(EInteractionType.Interact, 1020018u, new Vector3(507.86584f, 83.5696f, 94.92627f), 614) { StopDistance = 7f }; obj217.Steps = list330; reference237 = obj217; - ref QuestSequence reference238 = ref span121[3]; + num++; + ref QuestSequence reference238 = ref span326[num]; QuestSequence obj218 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list331)[0]; + index2 = 1; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + Span span331 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + ref QuestStep reference239 = ref span331[num2]; QuestStep obj219 = new QuestStep(EInteractionType.Combat, 2007836u, new Vector3(370.01587f, 85.52673f, 32.48633f), 614) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list332 = new List(num3); - CollectionsMarshal.SetCount(list332, num3); - CollectionsMarshal.AsSpan(list332)[0] = 6685u; + num4 = 1; + List list332 = new List(num4); + CollectionsMarshal.SetCount(list332, num4); + Span span332 = CollectionsMarshal.AsSpan(list332); + num3 = 0; + span332[num3] = 6685u; obj219.KillEnemyDataIds = list332; reference239 = obj219; obj218.Steps = list331; reference238 = obj218; - ref QuestSequence reference240 = ref span121[4]; + num++; + ref QuestSequence reference240 = ref span326[num]; QuestSequence obj220 = new QuestSequence { Sequence = 4 @@ -159362,21 +191872,27 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.Interact, 1020018u, new Vector3(507.86584f, 83.5696f, 94.92627f), 614); + Span span333 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span333[index2] = new QuestStep(EInteractionType.Interact, 1020018u, new Vector3(507.86584f, 83.5696f, 94.92627f), 614); obj220.Steps = list333; reference240 = obj220; - ref QuestSequence reference241 = ref span121[5]; + num++; + ref QuestSequence reference241 = ref span326[num]; QuestSequence obj221 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1020019u, new Vector3(208.8197f, 141.52237f, -28.82434f), 614); + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + Span span334 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span334[num2] = new QuestStep(EInteractionType.Interact, 1020019u, new Vector3(208.8197f, 141.52237f, -28.82434f), 614); obj221.Steps = list334; reference241 = obj221; - ref QuestSequence reference242 = ref span121[6]; + num++; + ref QuestSequence reference242 = ref span326[num]; QuestSequence obj222 = new QuestSequence { Sequence = byte.MaxValue @@ -159384,12 +191900,14 @@ public static class AssemblyQuestLoader num2 = 2; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - Span span123 = CollectionsMarshal.AsSpan(list335); - span123[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008008u, new Vector3(163.5614f, 144.60962f, -11.917358f), 614) + Span span335 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span335[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008008u, new Vector3(163.5614f, 144.60962f, -11.917358f), 614) { AetherCurrentId = 2818196u }; - span123[1] = new QuestStep(EInteractionType.CompleteQuest, 1020020u, new Vector3(397.75684f, 72.835175f, -97.06268f), 614) + index2++; + span335[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020020u, new Vector3(397.75684f, 72.835175f, -97.06268f), 614) { Mount = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai @@ -159403,21 +191921,26 @@ public static class AssemblyQuestLoader num = 1; List list336 = new List(num); CollectionsMarshal.SetCount(list336, num); - CollectionsMarshal.AsSpan(list336)[0] = "JerryWester"; + Span span336 = CollectionsMarshal.AsSpan(list336); + index = 0; + span336[index] = "JerryWester"; questRoot46.Author = list336; - num = 10; - List list337 = new List(num); - CollectionsMarshal.SetCount(list337, num); - Span span124 = CollectionsMarshal.AsSpan(list337); - ref QuestSequence reference243 = ref span124[0]; + index = 10; + List list337 = new List(index); + CollectionsMarshal.SetCount(list337, index); + Span span337 = CollectionsMarshal.AsSpan(list337); + num = 0; + ref QuestSequence reference243 = ref span337[num]; QuestSequence obj223 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020020u, new Vector3(397.75684f, 72.835175f, -97.06268f), 614) + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + Span span338 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span338[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020020u, new Vector3(397.75684f, 72.835175f, -97.06268f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -159430,7 +191953,8 @@ public static class AssemblyQuestLoader }; obj223.Steps = list338; reference243 = obj223; - ref QuestSequence reference244 = ref span124[1]; + num++; + ref QuestSequence reference244 = ref span337[num]; QuestSequence obj224 = new QuestSequence { Sequence = 1 @@ -159438,26 +191962,32 @@ public static class AssemblyQuestLoader num2 = 2; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span125 = CollectionsMarshal.AsSpan(list339); - span125[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.0395f, 68.028534f, -109.489944f), 614) + Span span339 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span339[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.0395f, 68.028534f, -109.489944f), 614) { Mount = true }; - span125[1] = new QuestStep(EInteractionType.Interact, 2007838u, new Vector3(418.4176f, 68.0094f, -135.4544f), 614); + index2++; + span339[index2] = new QuestStep(EInteractionType.Interact, 2007838u, new Vector3(418.4176f, 68.0094f, -135.4544f), 614); obj224.Steps = list339; reference244 = obj224; - ref QuestSequence reference245 = ref span124[2]; + num++; + ref QuestSequence reference245 = ref span337[num]; QuestSequence obj225 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1020022u, new Vector3(418.0514f, 68.0285f, -133.89801f), 614); + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + Span span340 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span340[num2] = new QuestStep(EInteractionType.Interact, 1020022u, new Vector3(418.0514f, 68.0285f, -133.89801f), 614); obj225.Steps = list340; reference245 = obj225; - ref QuestSequence reference246 = ref span124[3]; + num++; + ref QuestSequence reference246 = ref span337[num]; QuestSequence obj226 = new QuestSequence { Sequence = 3 @@ -159465,33 +191995,40 @@ public static class AssemblyQuestLoader num2 = 3; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span126 = CollectionsMarshal.AsSpan(list341); - span126[0] = new QuestStep(EInteractionType.AcceptQuest, 1019316u, new Vector3(434.89734f, 68.02076f, -125.01721f), 614) + Span span341 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span341[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019316u, new Vector3(434.89734f, 68.02076f, -125.01721f), 614) { PickUpQuestId = new QuestId(2733) }; - span126[1] = new QuestStep(EInteractionType.AcceptQuest, 1019313u, new Vector3(465.26282f, 58.52148f, -171.09949f), 614) + index2++; + span341[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019313u, new Vector3(465.26282f, 58.52148f, -171.09949f), 614) { PickUpQuestId = new QuestId(2730) }; - span126[2] = new QuestStep(EInteractionType.Interact, 1020024u, new Vector3(534.2335f, 84.80294f, 111.13135f), 614); + index2++; + span341[index2] = new QuestStep(EInteractionType.Interact, 1020024u, new Vector3(534.2335f, 84.80294f, 111.13135f), 614); obj226.Steps = list341; reference246 = obj226; - ref QuestSequence reference247 = ref span124[4]; + num++; + ref QuestSequence reference247 = ref span337[num]; QuestSequence obj227 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Snipe, 1020282u, new Vector3(498.83264f, 78.04988f, 147.23425f), 614) + index2 = 1; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + Span span342 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span342[num2] = new QuestStep(EInteractionType.Snipe, 1020282u, new Vector3(498.83264f, 78.04988f, 147.23425f), 614) { Comment = "Snipe soldiers" }; obj227.Steps = list342; reference247 = obj227; - ref QuestSequence reference248 = ref span124[5]; + num++; + ref QuestSequence reference248 = ref span337[num]; QuestSequence obj228 = new QuestSequence { Sequence = 5 @@ -159499,24 +192036,30 @@ public static class AssemblyQuestLoader num2 = 1; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.Snipe, 2007835u, new Vector3(535.2406f, 54.48987f, 237.04883f), 614) + Span span343 = CollectionsMarshal.AsSpan(list343); + index2 = 0; + span343[index2] = new QuestStep(EInteractionType.Snipe, 2007835u, new Vector3(535.2406f, 54.48987f, 237.04883f), 614) { Comment = "Snipe soldiers" }; obj228.Steps = list343; reference248 = obj228; - ref QuestSequence reference249 = ref span124[6]; + num++; + ref QuestSequence reference249 = ref span337[num]; QuestSequence obj229 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1020025u, new Vector3(303.60876f, 16.701138f, 584.71045f), 614); + index2 = 1; + List list344 = new List(index2); + CollectionsMarshal.SetCount(list344, index2); + Span span344 = CollectionsMarshal.AsSpan(list344); + num2 = 0; + span344[num2] = new QuestStep(EInteractionType.Interact, 1020025u, new Vector3(303.60876f, 16.701138f, 584.71045f), 614); obj229.Steps = list344; reference249 = obj229; - ref QuestSequence reference250 = ref span124[7]; + num++; + ref QuestSequence reference250 = ref span337[num]; QuestSequence obj230 = new QuestSequence { Sequence = 7 @@ -159524,24 +192067,30 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.Snipe, 2007915u, new Vector3(329.67102f, 32.97461f, 603.2959f), 614) + Span span345 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + span345[index2] = new QuestStep(EInteractionType.Snipe, 2007915u, new Vector3(329.67102f, 32.97461f, 603.2959f), 614) { Comment = "Snipe soldiers" }; obj230.Steps = list345; reference250 = obj230; - ref QuestSequence reference251 = ref span124[8]; + num++; + ref QuestSequence reference251 = ref span337[num]; QuestSequence obj231 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 1020025u, new Vector3(303.60876f, 16.701138f, 584.71045f), 614); + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + Span span346 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span346[num2] = new QuestStep(EInteractionType.Interact, 1020025u, new Vector3(303.60876f, 16.701138f, 584.71045f), 614); obj231.Steps = list346; reference251 = obj231; - ref QuestSequence reference252 = ref span124[9]; + num++; + ref QuestSequence reference252 = ref span337[num]; QuestSequence obj232 = new QuestSequence { Sequence = byte.MaxValue @@ -159549,7 +192098,9 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020283u, new Vector3(406.27136f, 14.6418705f, 626.1234f), 614); + Span span347 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span347[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020283u, new Vector3(406.27136f, 14.6418705f, 626.1234f), 614); obj232.Steps = list347; reference252 = obj232; questRoot46.QuestSequence = list337; @@ -159559,24 +192110,30 @@ public static class AssemblyQuestLoader num = 1; List list348 = new List(num); CollectionsMarshal.SetCount(list348, num); - CollectionsMarshal.AsSpan(list348)[0] = "JerryWester"; + Span span348 = CollectionsMarshal.AsSpan(list348); + index = 0; + span348[index] = "JerryWester"; questRoot47.Author = list348; - num = 8; - List list349 = new List(num); - CollectionsMarshal.SetCount(list349, num); - Span span127 = CollectionsMarshal.AsSpan(list349); - ref QuestSequence reference253 = ref span127[0]; + index = 8; + List list349 = new List(index); + CollectionsMarshal.SetCount(list349, index); + Span span349 = CollectionsMarshal.AsSpan(list349); + num = 0; + ref QuestSequence reference253 = ref span349[num]; QuestSequence obj233 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023780u, new Vector3(406.21033f, 14.6418705f, 625.9707f), 614); + index2 = 1; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + Span span350 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span350[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023780u, new Vector3(406.21033f, 14.6418705f, 625.9707f), 614); obj233.Steps = list350; reference253 = obj233; - ref QuestSequence reference254 = ref span127[1]; + num++; + ref QuestSequence reference254 = ref span349[num]; QuestSequence obj234 = new QuestSequence { Sequence = 1 @@ -159584,21 +192141,27 @@ public static class AssemblyQuestLoader num2 = 1; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 2007839u, new Vector3(358.69373f, 22.659607f, 573.69336f), 614); + Span span351 = CollectionsMarshal.AsSpan(list351); + index2 = 0; + span351[index2] = new QuestStep(EInteractionType.Interact, 2007839u, new Vector3(358.69373f, 22.659607f, 573.69336f), 614); obj234.Steps = list351; reference254 = obj234; - ref QuestSequence reference255 = ref span127[2]; + num++; + ref QuestSequence reference255 = ref span349[num]; QuestSequence obj235 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1020042u, new Vector3(435.2329f, 14.64187f, 619.8672f), 614); + index2 = 1; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + Span span352 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span352[num2] = new QuestStep(EInteractionType.Interact, 1020042u, new Vector3(435.2329f, 14.64187f, 619.8672f), 614); obj235.Steps = list352; reference255 = obj235; - ref QuestSequence reference256 = ref span127[3]; + num++; + ref QuestSequence reference256 = ref span349[num]; QuestSequence obj236 = new QuestSequence { Sequence = 3 @@ -159606,30 +192169,37 @@ public static class AssemblyQuestLoader num2 = 3; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span128 = CollectionsMarshal.AsSpan(list353); - span128[0] = new QuestStep(EInteractionType.Interact, 1020045u, new Vector3(439.01733f, 14.6418705f, 624.0481f), 614); - span128[1] = new QuestStep(EInteractionType.Interact, 1020044u, new Vector3(438.40686f, 14.6418705f, 622.21704f), 614); - span128[2] = new QuestStep(EInteractionType.Interact, 1020043u, new Vector3(438.4375f, 14.6418705f, 620.35547f), 614) + Span span353 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span353[index2] = new QuestStep(EInteractionType.Interact, 1020045u, new Vector3(439.01733f, 14.6418705f, 624.0481f), 614); + index2++; + span353[index2] = new QuestStep(EInteractionType.Interact, 1020044u, new Vector3(438.40686f, 14.6418705f, 622.21704f), 614); + index2++; + span353[index2] = new QuestStep(EInteractionType.Interact, 1020043u, new Vector3(438.4375f, 14.6418705f, 620.35547f), 614) { StopDistance = 4f }; obj236.Steps = list353; reference256 = obj236; - ref QuestSequence reference257 = ref span127[4]; + num++; + ref QuestSequence reference257 = ref span349[num]; QuestSequence obj237 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1020042u, new Vector3(435.2329f, 14.64187f, 619.8672f), 614) + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + Span span354 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span354[num2] = new QuestStep(EInteractionType.Interact, 1020042u, new Vector3(435.2329f, 14.64187f, 619.8672f), 614) { StopDistance = 4f }; obj237.Steps = list354; reference257 = obj237; - ref QuestSequence reference258 = ref span127[5]; + num++; + ref QuestSequence reference258 = ref span349[num]; QuestSequence obj238 = new QuestSequence { Sequence = 5 @@ -159637,28 +192207,34 @@ public static class AssemblyQuestLoader num2 = 7; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - Span span129 = CollectionsMarshal.AsSpan(list355); - span129[0] = new QuestStep(EInteractionType.EquipItem, null, null, 614) + Span span355 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + span355[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) { ItemId = 20596u }; - span129[1] = new QuestStep(EInteractionType.EquipItem, null, null, 614) + index2++; + span355[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) { ItemId = 20597u }; - span129[2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) + index2++; + span355[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) { ItemId = 20598u }; - span129[3] = new QuestStep(EInteractionType.EquipItem, null, null, 614) + index2++; + span355[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) { ItemId = 20599u }; - span129[4] = new QuestStep(EInteractionType.EquipItem, null, null, 614) + index2++; + span355[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) { ItemId = 20600u }; - ref QuestStep reference259 = ref span129[5]; + index2++; + ref QuestStep reference259 = ref span355[index2]; QuestStep obj239 = new QuestStep(EInteractionType.Emote, 1020041u, new Vector3(446.73828f, 14.626371f, 705.0431f), 614) { Emote = EEmote.ImperialSalute @@ -159666,48 +192242,65 @@ public static class AssemblyQuestLoader num3 = 6; List list356 = new List(num3); CollectionsMarshal.SetCount(list356, num3); - Span span130 = CollectionsMarshal.AsSpan(list356); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span356 = CollectionsMarshal.AsSpan(list356); + num4 = 0; + span356[num4] = null; + num4++; + span356[num4] = null; + num4++; + span356[num4] = null; + num4++; + span356[num4] = null; + num4++; + span356[num4] = null; + num4++; + span356[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj239.CompletionQuestVariablesFlags = list356; reference259 = obj239; - ref QuestStep reference260 = ref span129[6]; + index2++; + ref QuestStep reference260 = ref span355[index2]; QuestStep obj240 = new QuestStep(EInteractionType.Emote, 1020040u, new Vector3(436.14856f, 14.6418705f, 706.1721f), 614) { Emote = EEmote.ImperialSalute }; - num3 = 6; - List list357 = new List(num3); - CollectionsMarshal.SetCount(list357, num3); - Span span131 = CollectionsMarshal.AsSpan(list357); - span131[0] = null; - span131[1] = null; - span131[2] = null; - span131[3] = null; - span131[4] = null; - span131[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list357 = new List(num4); + CollectionsMarshal.SetCount(list357, num4); + Span span357 = CollectionsMarshal.AsSpan(list357); + num3 = 0; + span357[num3] = null; + num3++; + span357[num3] = null; + num3++; + span357[num3] = null; + num3++; + span357[num3] = null; + num3++; + span357[num3] = null; + num3++; + span357[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj240.CompletionQuestVariablesFlags = list357; reference260 = obj240; obj238.Steps = list355; reference258 = obj238; - ref QuestSequence reference261 = ref span127[6]; + num++; + ref QuestSequence reference261 = ref span349[num]; QuestSequence obj241 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - Span span132 = CollectionsMarshal.AsSpan(list358); - span132[0] = new QuestStep(EInteractionType.EquipRecommended, null, null, 614); - span132[1] = new QuestStep(EInteractionType.Interact, 1020042u, new Vector3(435.2329f, 14.64187f, 619.8672f), 614); + index2 = 2; + List list358 = new List(index2); + CollectionsMarshal.SetCount(list358, index2); + Span span358 = CollectionsMarshal.AsSpan(list358); + num2 = 0; + span358[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 614); + num2++; + span358[num2] = new QuestStep(EInteractionType.Interact, 1020042u, new Vector3(435.2329f, 14.64187f, 619.8672f), 614); obj241.Steps = list358; reference261 = obj241; - ref QuestSequence reference262 = ref span127[7]; + num++; + ref QuestSequence reference262 = ref span349[num]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue @@ -159715,7 +192308,9 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020029u, new Vector3(457.69434f, 30.001902f, 764.187f), 614); + Span span359 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span359[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020029u, new Vector3(457.69434f, 30.001902f, 764.187f), 614); obj242.Steps = list359; reference262 = obj242; questRoot47.QuestSequence = list349; @@ -159725,24 +192320,30 @@ public static class AssemblyQuestLoader num = 1; List list360 = new List(num); CollectionsMarshal.SetCount(list360, num); - CollectionsMarshal.AsSpan(list360)[0] = "JerryWester"; + Span span360 = CollectionsMarshal.AsSpan(list360); + index = 0; + span360[index] = "JerryWester"; questRoot48.Author = list360; - num = 9; - List list361 = new List(num); - CollectionsMarshal.SetCount(list361, num); - Span span133 = CollectionsMarshal.AsSpan(list361); - ref QuestSequence reference263 = ref span133[0]; + index = 9; + List list361 = new List(index); + CollectionsMarshal.SetCount(list361, index); + Span span361 = CollectionsMarshal.AsSpan(list361); + num = 0; + ref QuestSequence reference263 = ref span361[num]; QuestSequence obj243 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020046u, new Vector3(455.95483f, 29.324865f, 759.6703f), 614); + index2 = 1; + List list362 = new List(index2); + CollectionsMarshal.SetCount(list362, index2); + Span span362 = CollectionsMarshal.AsSpan(list362); + num2 = 0; + span362[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020046u, new Vector3(455.95483f, 29.324865f, 759.6703f), 614); obj243.Steps = list362; reference263 = obj243; - ref QuestSequence reference264 = ref span133[1]; + num++; + ref QuestSequence reference264 = ref span361[num]; QuestSequence obj244 = new QuestSequence { Sequence = 1 @@ -159750,27 +192351,34 @@ public static class AssemblyQuestLoader num2 = 3; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - Span span134 = CollectionsMarshal.AsSpan(list363); - span134[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008011u, new Vector3(457.51123f, 32.36438f, 822.4154f), 614) + Span span363 = CollectionsMarshal.AsSpan(list363); + index2 = 0; + span363[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008011u, new Vector3(457.51123f, 32.36438f, 822.4154f), 614) { AetherCurrentId = 2818199u }; - span134[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(453.69717f, 14.463846f, 663.386f), 614); - span134[2] = new QuestStep(EInteractionType.Interact, 1020047u, new Vector3(433.9818f, 14.6418705f, 622.76636f), 614); + index2++; + span363[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(453.69717f, 14.463846f, 663.386f), 614); + index2++; + span363[index2] = new QuestStep(EInteractionType.Interact, 1020047u, new Vector3(433.9818f, 14.6418705f, 622.76636f), 614); obj244.Steps = list363; reference264 = obj244; - ref QuestSequence reference265 = ref span133[2]; + num++; + ref QuestSequence reference265 = ref span361[num]; QuestSequence obj245 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Interact, 2007840u, new Vector3(390.6156f, 14.633362f, 685.96924f), 614); + index2 = 1; + List list364 = new List(index2); + CollectionsMarshal.SetCount(list364, index2); + Span span364 = CollectionsMarshal.AsSpan(list364); + num2 = 0; + span364[num2] = new QuestStep(EInteractionType.Interact, 2007840u, new Vector3(390.6156f, 14.633362f, 685.96924f), 614); obj245.Steps = list364; reference265 = obj245; - ref QuestSequence reference266 = ref span133[3]; + num++; + ref QuestSequence reference266 = ref span361[num]; QuestSequence obj246 = new QuestSequence { Sequence = 3 @@ -159778,24 +192386,30 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.UseItem, 1020049u, new Vector3(390.5547f, 14.64187f, 685.9387f), 614) + Span span365 = CollectionsMarshal.AsSpan(list365); + index2 = 0; + span365[index2] = new QuestStep(EInteractionType.UseItem, 1020049u, new Vector3(390.5547f, 14.64187f, 685.9387f), 614) { ItemId = 2002070u }; obj246.Steps = list365; reference266 = obj246; - ref QuestSequence reference267 = ref span133[4]; + num++; + ref QuestSequence reference267 = ref span361[num]; QuestSequence obj247 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.Interact, 1020048u, new Vector3(434.5006f, 14.6418705f, 624.567f), 614); + index2 = 1; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + Span span366 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + span366[num2] = new QuestStep(EInteractionType.Interact, 1020048u, new Vector3(434.5006f, 14.6418705f, 624.567f), 614); obj247.Steps = list366; reference267 = obj247; - ref QuestSequence reference268 = ref span133[5]; + num++; + ref QuestSequence reference268 = ref span361[num]; QuestSequence obj248 = new QuestSequence { Sequence = 5 @@ -159803,24 +192417,30 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.Interact, 2007841u, new Vector3(485.37415f, 14.633362f, 742.97705f), 614); + Span span367 = CollectionsMarshal.AsSpan(list367); + index2 = 0; + span367[index2] = new QuestStep(EInteractionType.Interact, 2007841u, new Vector3(485.37415f, 14.633362f, 742.97705f), 614); obj248.Steps = list367; reference268 = obj248; - ref QuestSequence reference269 = ref span133[6]; + num++; + ref QuestSequence reference269 = ref span361[num]; QuestSequence obj249 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list368 = new List(num2); - CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.UseItem, 1020050u, new Vector3(485.2522f, 14.641862f, 742.97705f), 614) + index2 = 1; + List list368 = new List(index2); + CollectionsMarshal.SetCount(list368, index2); + Span span368 = CollectionsMarshal.AsSpan(list368); + num2 = 0; + span368[num2] = new QuestStep(EInteractionType.UseItem, 1020050u, new Vector3(485.2522f, 14.641862f, 742.97705f), 614) { ItemId = 2002070u }; obj249.Steps = list368; reference269 = obj249; - ref QuestSequence reference270 = ref span133[7]; + num++; + ref QuestSequence reference270 = ref span361[num]; QuestSequence obj250 = new QuestSequence { Sequence = 7 @@ -159828,34 +192448,41 @@ public static class AssemblyQuestLoader num2 = 1; List list369 = new List(num2); CollectionsMarshal.SetCount(list369, num2); - CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.Interact, 1020051u, new Vector3(232.56274f, 1.4025975f, 756.0996f), 614); + Span span369 = CollectionsMarshal.AsSpan(list369); + index2 = 0; + span369[index2] = new QuestStep(EInteractionType.Interact, 1020051u, new Vector3(232.56274f, 1.4025975f, 756.0996f), 614); obj250.Steps = list369; reference270 = obj250; - ref QuestSequence reference271 = ref span133[8]; + num++; + ref QuestSequence reference271 = ref span361[num]; QuestSequence obj251 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - Span span135 = CollectionsMarshal.AsSpan(list370); - span135[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(406.34747f, -0.6000004f, -281.95883f), 614) + index2 = 4; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + Span span370 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + span370[num2] = new QuestStep(EInteractionType.Dive, null, new Vector3(406.34747f, -0.6000004f, -281.95883f), 614) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; - span135[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(365.84177f, -50.164906f, -309.3022f), 614) + num2++; + span370[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(365.84177f, -50.164906f, -309.3022f), 614) { Fly = true }; - span135[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(301.059f, -21.410976f, -358.57938f), 614) + num2++; + span370[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(301.059f, -21.410976f, -358.57938f), 614) { StopDistance = 0.25f, Fly = true, RestartNavigationIfCancelled = false }; - span135[3] = new QuestStep(EInteractionType.CompleteQuest, 1023787u, new Vector3(278.30933f, 2.9544957f, -378.43903f), 614); + num2++; + span370[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023787u, new Vector3(278.30933f, 2.9544957f, -378.43903f), 614); obj251.Steps = list370; reference271 = obj251; questRoot48.QuestSequence = list361; @@ -159865,13 +192492,16 @@ public static class AssemblyQuestLoader num = 1; List list371 = new List(num); CollectionsMarshal.SetCount(list371, num); - CollectionsMarshal.AsSpan(list371)[0] = "JerryWester"; + Span span371 = CollectionsMarshal.AsSpan(list371); + index = 0; + span371[index] = "JerryWester"; questRoot49.Author = list371; - num = 5; - List list372 = new List(num); - CollectionsMarshal.SetCount(list372, num); - Span span136 = CollectionsMarshal.AsSpan(list372); - ref QuestSequence reference272 = ref span136[0]; + index = 5; + List list372 = new List(index); + CollectionsMarshal.SetCount(list372, index); + Span span372 = CollectionsMarshal.AsSpan(list372); + num = 0; + ref QuestSequence reference272 = ref span372[num]; QuestSequence obj252 = new QuestSequence { Sequence = 0 @@ -159879,21 +192509,27 @@ public static class AssemblyQuestLoader num2 = 1; List list373 = new List(num2); CollectionsMarshal.SetCount(list373, num2); - CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020055u, new Vector3(-463.21814f, 1.2300053f, 535.6068f), 614); + Span span373 = CollectionsMarshal.AsSpan(list373); + index2 = 0; + span373[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020055u, new Vector3(-463.21814f, 1.2300053f, 535.6068f), 614); obj252.Steps = list373; reference272 = obj252; - ref QuestSequence reference273 = ref span136[1]; + num++; + ref QuestSequence reference273 = ref span372[num]; QuestSequence obj253 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list374 = new List(num2); - CollectionsMarshal.SetCount(list374, num2); - CollectionsMarshal.AsSpan(list374)[0] = new QuestStep(EInteractionType.Interact, 2007842u, new Vector3(-245.74658f, 16.922241f, 577.7217f), 614); + index2 = 1; + List list374 = new List(index2); + CollectionsMarshal.SetCount(list374, index2); + Span span374 = CollectionsMarshal.AsSpan(list374); + num2 = 0; + span374[num2] = new QuestStep(EInteractionType.Interact, 2007842u, new Vector3(-245.74658f, 16.922241f, 577.7217f), 614); obj253.Steps = list374; reference273 = obj253; - ref QuestSequence reference274 = ref span136[2]; + num++; + ref QuestSequence reference274 = ref span372[num]; QuestSequence obj254 = new QuestSequence { Sequence = 2 @@ -159901,7 +192537,9 @@ public static class AssemblyQuestLoader num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020056u, new Vector3(-247.91339f, 16.932724f, 577.4165f), 614) + Span span375 = CollectionsMarshal.AsSpan(list375); + index2 = 0; + span375[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020056u, new Vector3(-247.91339f, 16.932724f, 577.4165f), 614) { StopDistance = 7f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -159911,19 +192549,23 @@ public static class AssemblyQuestLoader }; obj254.Steps = list375; reference274 = obj254; - span136[3] = new QuestSequence + num++; + span372[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference275 = ref span136[4]; + num++; + ref QuestSequence reference275 = ref span372[num]; QuestSequence obj255 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020057u, new Vector3(488.30383f, 7.396728f, 375.14294f), 614); + index2 = 1; + List list376 = new List(index2); + CollectionsMarshal.SetCount(list376, index2); + Span span376 = CollectionsMarshal.AsSpan(list376); + num2 = 0; + span376[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020057u, new Vector3(488.30383f, 7.396728f, 375.14294f), 614); obj255.Steps = list376; reference275 = obj255; questRoot49.QuestSequence = list372; @@ -159933,13 +192575,16 @@ public static class AssemblyQuestLoader num = 1; List list377 = new List(num); CollectionsMarshal.SetCount(list377, num); - CollectionsMarshal.AsSpan(list377)[0] = "JerryWester"; + Span span377 = CollectionsMarshal.AsSpan(list377); + index = 0; + span377[index] = "JerryWester"; questRoot50.Author = list377; - num = 4; - List list378 = new List(num); - CollectionsMarshal.SetCount(list378, num); - Span span137 = CollectionsMarshal.AsSpan(list378); - ref QuestSequence reference276 = ref span137[0]; + index = 4; + List list378 = new List(index); + CollectionsMarshal.SetCount(list378, index); + Span span378 = CollectionsMarshal.AsSpan(list378); + num = 0; + ref QuestSequence reference276 = ref span378[num]; QuestSequence obj256 = new QuestSequence { Sequence = 0 @@ -159947,27 +192592,33 @@ public static class AssemblyQuestLoader num2 = 1; List list379 = new List(num2); CollectionsMarshal.SetCount(list379, num2); - CollectionsMarshal.AsSpan(list379)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020059u, new Vector3(490.19604f, 8.442365f, 373.22034f), 614) + Span span379 = CollectionsMarshal.AsSpan(list379); + index2 = 0; + span379[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020059u, new Vector3(490.19604f, 8.442365f, 373.22034f), 614) { StopDistance = 7f }; obj256.Steps = list379; reference276 = obj256; - ref QuestSequence reference277 = ref span137[1]; + num++; + ref QuestSequence reference277 = ref span378[num]; QuestSequence obj257 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list380 = new List(num2); - CollectionsMarshal.SetCount(list380, num2); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.Interact, 1020062u, new Vector3(453.4828f, 57.1882f, -146.41034f), 614) + index2 = 1; + List list380 = new List(index2); + CollectionsMarshal.SetCount(list380, index2); + Span span380 = CollectionsMarshal.AsSpan(list380); + num2 = 0; + span380[num2] = new QuestStep(EInteractionType.Interact, 1020062u, new Vector3(453.4828f, 57.1882f, -146.41034f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj257.Steps = list380; reference277 = obj257; - ref QuestSequence reference278 = ref span137[2]; + num++; + ref QuestSequence reference278 = ref span378[num]; QuestSequence obj258 = new QuestSequence { Sequence = 2 @@ -159975,36 +192626,51 @@ public static class AssemblyQuestLoader num2 = 4; List list381 = new List(num2); CollectionsMarshal.SetCount(list381, num2); - Span span138 = CollectionsMarshal.AsSpan(list381); - ref QuestStep reference279 = ref span138[0]; + Span span381 = CollectionsMarshal.AsSpan(list381); + index2 = 0; + ref QuestStep reference279 = ref span381[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1020064u, new Vector3(443.2898f, 58.814686f, -172.90002f), 614); num3 = 6; List list382 = new List(num3); CollectionsMarshal.SetCount(list382, num3); - Span span139 = CollectionsMarshal.AsSpan(list382); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span382 = CollectionsMarshal.AsSpan(list382); + num4 = 0; + span382[num4] = null; + num4++; + span382[num4] = null; + num4++; + span382[num4] = null; + num4++; + span382[num4] = null; + num4++; + span382[num4] = null; + num4++; + span382[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list382; reference279 = questStep21; - ref QuestStep reference280 = ref span138[1]; + index2++; + ref QuestStep reference280 = ref span381[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1020063u, new Vector3(442.83203f, 58.859047f, -171.06891f), 614); - num3 = 6; - List list383 = new List(num3); - CollectionsMarshal.SetCount(list383, num3); - Span span140 = CollectionsMarshal.AsSpan(list383); - span140[0] = null; - span140[1] = null; - span140[2] = null; - span140[3] = null; - span140[4] = null; - span140[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list383 = new List(num4); + CollectionsMarshal.SetCount(list383, num4); + Span span383 = CollectionsMarshal.AsSpan(list383); + num3 = 0; + span383[num3] = null; + num3++; + span383[num3] = null; + num3++; + span383[num3] = null; + num3++; + span383[num3] = null; + num3++; + span383[num3] = null; + num3++; + span383[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list383; reference280 = questStep22; - ref QuestStep reference281 = ref span138[2]; + index2++; + ref QuestStep reference281 = ref span381[index2]; QuestStep obj259 = new QuestStep(EInteractionType.Interact, 1020065u, new Vector3(459.25073f, 58.79123f, -187.42657f), 614) { Mount = true @@ -160012,40 +192678,56 @@ public static class AssemblyQuestLoader num3 = 6; List list384 = new List(num3); CollectionsMarshal.SetCount(list384, num3); - Span span141 = CollectionsMarshal.AsSpan(list384); - span141[0] = null; - span141[1] = null; - span141[2] = null; - span141[3] = null; - span141[4] = null; - span141[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span384 = CollectionsMarshal.AsSpan(list384); + num4 = 0; + span384[num4] = null; + num4++; + span384[num4] = null; + num4++; + span384[num4] = null; + num4++; + span384[num4] = null; + num4++; + span384[num4] = null; + num4++; + span384[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj259.CompletionQuestVariablesFlags = list384; reference281 = obj259; - ref QuestStep reference282 = ref span138[3]; + index2++; + ref QuestStep reference282 = ref span381[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1020066u, new Vector3(445.5481f, 68.028534f, -73.56378f), 614); - num3 = 6; - List list385 = new List(num3); - CollectionsMarshal.SetCount(list385, num3); - Span span142 = CollectionsMarshal.AsSpan(list385); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list385 = new List(num4); + CollectionsMarshal.SetCount(list385, num4); + Span span385 = CollectionsMarshal.AsSpan(list385); + num3 = 0; + span385[num3] = null; + num3++; + span385[num3] = null; + num3++; + span385[num3] = null; + num3++; + span385[num3] = null; + num3++; + span385[num3] = null; + num3++; + span385[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list385; reference282 = questStep23; obj258.Steps = list381; reference278 = obj258; - ref QuestSequence reference283 = ref span137[3]; + num++; + ref QuestSequence reference283 = ref span378[num]; QuestSequence obj260 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list386 = new List(num2); - CollectionsMarshal.SetCount(list386, num2); - CollectionsMarshal.AsSpan(list386)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020067u, new Vector3(446.67737f, 68.028534f, -74.47931f), 614); + index2 = 1; + List list386 = new List(index2); + CollectionsMarshal.SetCount(list386, index2); + Span span386 = CollectionsMarshal.AsSpan(list386); + num2 = 0; + span386[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020067u, new Vector3(446.67737f, 68.028534f, -74.47931f), 614); obj260.Steps = list386; reference283 = obj260; questRoot50.QuestSequence = list378; @@ -160059,13 +192741,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -160073,87 +192758,119 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020079u, new Vector3(560.235f, -19.505638f, 408.68237f), 622); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020079u, new Vector3(560.235f, -19.505638f, 408.68237f), 622); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 4; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1019355u, new Vector3(556.8779f, -19.505642f, 397.14648f), 622); int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span5 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1019353u, new Vector3(544.0298f, -19.505642f, 391.68372f), 622) { StopDistance = 7f }; - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj3.CompletionQuestVariablesFlags = list6; reference4 = obj3; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span4[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.51385f, -19.505655f, 355.95413f), 622); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list7; skipConditions.StepIf = skipStepConditions; questStep2.SkipConditions = skipConditions; reference5 = questStep2; - ref QuestStep reference6 = ref span2[3]; + num2++; + ref QuestStep reference6 = ref span4[num2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 1019349u, new Vector3(543.93823f, -19.505642f, 354.08557f), 622) { StopDistance = 7f }; - num3 = 6; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span6 = CollectionsMarshal.AsSpan(list8); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + Span span8 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list8; reference6 = obj4; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference7 = ref span[2]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 2 @@ -160161,23 +192878,28 @@ public static class AssemblyQuestLoader num2 = 2; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span7 = CollectionsMarshal.AsSpan(list9); - span7[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 622) + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 622) { Aetheryte = EAetheryteLocation.AzimSteppeReunion }; - span7[1] = new QuestStep(EInteractionType.Interact, 1020275u, new Vector3(540.917f, -19.504309f, 278.0652f), 622); + index2++; + span9[index2] = new QuestStep(EInteractionType.Interact, 1020275u, new Vector3(540.917f, -19.504309f, 278.0652f), 622); obj5.Steps = list9; reference7 = obj5; - ref QuestSequence reference8 = ref span[3]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Say, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.Say, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) { ChatMessage = new ChatMessage { @@ -160186,7 +192908,8 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference8 = obj6; - ref QuestSequence reference9 = ref span[4]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue @@ -160194,7 +192917,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622); + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622); obj7.Steps = list11; reference9 = obj7; questRoot.QuestSequence = list2; @@ -160204,21 +192929,26 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "JerryWester"; + Span span12 = CollectionsMarshal.AsSpan(list12); + index = 0; + span12[index] = "JerryWester"; questRoot2.Author = list12; - num = 3; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span8 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference10 = ref span8[0]; + index = 3; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference10 = ref span13[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -160231,7 +192961,8 @@ public static class AssemblyQuestLoader }; obj8.Steps = list14; reference10 = obj8; - ref QuestSequence reference11 = ref span8[1]; + num++; + ref QuestSequence reference11 = ref span13[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 @@ -160239,12 +192970,14 @@ public static class AssemblyQuestLoader num2 = 2; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span9 = CollectionsMarshal.AsSpan(list15); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(553.1567f, -19.505648f, 306.37933f), 622) + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(553.1567f, -19.505648f, 306.37933f), 622) { Mount = true }; - ref QuestStep reference12 = ref span9[1]; + index2++; + ref QuestStep reference12 = ref span15[index2]; QuestStep obj10 = new QuestStep(EInteractionType.Combat, null, new Vector3(395.68478f, -8.147073f, 299.55774f), 622) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -160252,7 +192985,9 @@ public static class AssemblyQuestLoader num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - ref ComplexCombatData reference13 = ref CollectionsMarshal.AsSpan(list16)[0]; + Span span16 = CollectionsMarshal.AsSpan(list16); + num4 = 0; + ref ComplexCombatData reference13 = ref span16[num4]; ComplexCombatData obj11 = new ComplexCombatData { DataId = 6626u, @@ -160260,31 +192995,40 @@ public static class AssemblyQuestLoader RewardItemId = 2002204u, RewardItemCount = 2 }; - int num4 = 6; - List list17 = new List(num4); - CollectionsMarshal.SetCount(list17, num4); - Span span10 = CollectionsMarshal.AsSpan(list17); - span10[0] = null; - span10[1] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = null; + int num5 = 6; + List list17 = new List(num5); + CollectionsMarshal.SetCount(list17, num5); + Span span17 = CollectionsMarshal.AsSpan(list17); + int num6 = 0; + span17[num6] = null; + num6++; + span17[num6] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num6++; + span17[num6] = null; + num6++; + span17[num6] = null; + num6++; + span17[num6] = null; + num6++; + span17[num6] = null; obj11.CompletionQuestVariablesFlags = list17; reference13 = obj11; obj10.ComplexCombatData = list16; reference12 = obj10; obj9.Steps = list15; reference11 = obj9; - ref QuestSequence reference14 = ref span8[2]; + num++; + ref QuestSequence reference14 = ref span13[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; @@ -160297,13 +193041,16 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "JerryWester"; + Span span19 = CollectionsMarshal.AsSpan(list19); + index = 0; + span19[index] = "JerryWester"; questRoot3.Author = list19; - num = 3; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span11 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference15 = ref span11[0]; + index = 3; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + Span span20 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference15 = ref span20[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -160311,7 +193058,9 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span21[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -160324,23 +193073,27 @@ public static class AssemblyQuestLoader }; obj13.Steps = list21; reference15 = obj13; - ref QuestSequence reference16 = ref span11[1]; + num++; + ref QuestSequence reference16 = ref span20[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span12 = CollectionsMarshal.AsSpan(list22); - span12[0] = new QuestStep(EInteractionType.AcceptQuest, 1019347u, new Vector3(575.2803f, -19.505632f, 343.74f), 622) + index2 = 2; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019347u, new Vector3(575.2803f, -19.505632f, 343.74f), 622) { PickUpQuestId = new QuestId(2760) }; - span12[1] = new QuestStep(EInteractionType.Interact, 1020279u, new Vector3(592.9198f, 24.918879f, 380.27002f), 622); + num2++; + span22[num2] = new QuestStep(EInteractionType.Interact, 1020279u, new Vector3(592.9198f, 24.918879f, 380.27002f), 622); obj14.Steps = list22; reference16 = obj14; - ref QuestSequence reference17 = ref span11[2]; + num++; + ref QuestSequence reference17 = ref span20[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -160348,7 +193101,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020543u, new Vector3(592.9198f, 24.943647f, 380.0564f), 622); + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020543u, new Vector3(592.9198f, 24.943647f, 380.0564f), 622); obj15.Steps = list23; reference17 = obj15; questRoot3.QuestSequence = list20; @@ -160358,21 +193113,26 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "JerryWester"; + Span span24 = CollectionsMarshal.AsSpan(list24); + index = 0; + span24[index] = "JerryWester"; questRoot4.Author = list24; - num = 4; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span13 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference18 = ref span13[0]; + index = 4; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + Span span25 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference18 = ref span25[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020543u, new Vector3(592.9198f, 24.943647f, 380.0564f), 622) + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020543u, new Vector3(592.9198f, 24.943647f, 380.0564f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -160385,7 +193145,8 @@ public static class AssemblyQuestLoader }; obj16.Steps = list26; reference18 = obj16; - ref QuestSequence reference19 = ref span13[1]; + num++; + ref QuestSequence reference19 = ref span25[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -160393,21 +193154,27 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1020531u, new Vector3(491.29468f, 8.481642f, -234.48541f), 622); + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.Interact, 1020531u, new Vector3(491.29468f, 8.481642f, -234.48541f), 622); obj17.Steps = list27; reference19 = obj17; - ref QuestSequence reference20 = ref span13[2]; + num++; + ref QuestSequence reference20 = ref span25[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); obj18.Steps = list28; reference20 = obj18; - ref QuestSequence reference21 = ref span13[3]; + num++; + ref QuestSequence reference21 = ref span25[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -160415,7 +193182,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); obj19.Steps = list29; reference21 = obj19; questRoot4.QuestSequence = list25; @@ -160425,24 +193194,30 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "JerryWester"; + Span span30 = CollectionsMarshal.AsSpan(list30); + index = 0; + span30[index] = "JerryWester"; questRoot5.Author = list30; - num = 5; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span14 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference22 = ref span14[0]; + index = 5; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + Span span31 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference22 = ref span31[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); obj20.Steps = list32; reference22 = obj20; - ref QuestSequence reference23 = ref span14[1]; + num++; + ref QuestSequence reference23 = ref span31[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -160450,92 +193225,123 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1020548u, new Vector3(416.495f, 42.579082f, -450.12592f), 622); + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.Interact, 1020548u, new Vector3(416.495f, 42.579082f, -450.12592f), 622); obj21.Steps = list33; reference23 = obj21; - ref QuestSequence reference24 = ref span14[2]; + num++; + ref QuestSequence reference24 = ref span31[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span15 = CollectionsMarshal.AsSpan(list34); - ref QuestStep reference25 = ref span15[0]; + index2 = 3; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref QuestStep reference25 = ref span34[num2]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 2008457u, new Vector3(313.52698f, 50.766724f, -456.77887f), 622) { ItemId = 2002199u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = 7546u; + num4 = 1; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + Span span35 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span35[num3] = 7546u; obj23.KillEnemyDataIds = list35; num3 = 6; List list36 = new List(num3); CollectionsMarshal.SetCount(list36, num3); - Span span16 = CollectionsMarshal.AsSpan(list36); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span36 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span36[num4] = null; + num4++; + span36[num4] = null; + num4++; + span36[num4] = null; + num4++; + span36[num4] = null; + num4++; + span36[num4] = null; + num4++; + span36[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj23.CompletionQuestVariablesFlags = list36; reference25 = obj23; - ref QuestStep reference26 = ref span15[1]; + num2++; + ref QuestStep reference26 = ref span34[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, 2008456u, new Vector3(224.47546f, 101.27405f, -542.4735f), 622) { ItemId = 2002199u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 2; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - Span span17 = CollectionsMarshal.AsSpan(list37); - span17[0] = 7546u; - span17[1] = 7562u; + num4 = 2; + List list37 = new List(num4); + CollectionsMarshal.SetCount(list37, num4); + Span span37 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span37[num3] = 7546u; + num3++; + span37[num3] = 7562u; obj24.KillEnemyDataIds = list37; num3 = 6; List list38 = new List(num3); CollectionsMarshal.SetCount(list38, num3); - Span span18 = CollectionsMarshal.AsSpan(list38); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span38 = CollectionsMarshal.AsSpan(list38); + num4 = 0; + span38[num4] = null; + num4++; + span38[num4] = null; + num4++; + span38[num4] = null; + num4++; + span38[num4] = null; + num4++; + span38[num4] = null; + num4++; + span38[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj24.CompletionQuestVariablesFlags = list38; reference26 = obj24; - ref QuestStep reference27 = ref span15[2]; + num2++; + ref QuestStep reference27 = ref span34[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, 2008131u, new Vector3(100.694214f, 116.472046f, -597.7417f), 622) { ItemId = 2002199u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = 7562u; + num4 = 1; + List list39 = new List(num4); + CollectionsMarshal.SetCount(list39, num4); + Span span39 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + span39[num3] = 7562u; obj25.KillEnemyDataIds = list39; num3 = 6; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - Span span19 = CollectionsMarshal.AsSpan(list40); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span40 = CollectionsMarshal.AsSpan(list40); + num4 = 0; + span40[num4] = null; + num4++; + span40[num4] = null; + num4++; + span40[num4] = null; + num4++; + span40[num4] = null; + num4++; + span40[num4] = null; + num4++; + span40[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj25.CompletionQuestVariablesFlags = list40; reference27 = obj25; obj22.Steps = list34; reference24 = obj22; - ref QuestSequence reference28 = ref span14[3]; + num++; + ref QuestSequence reference28 = ref span31[num]; QuestSequence obj26 = new QuestSequence { Sequence = 3 @@ -160543,28 +193349,34 @@ public static class AssemblyQuestLoader num2 = 3; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span20 = CollectionsMarshal.AsSpan(list41); - span20[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008017u, new Vector3(231.98291f, 93.36987f, -515.8008f), 622) + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008017u, new Vector3(231.98291f, 93.36987f, -515.8008f), 622) { AetherCurrentId = 2818210u }; - span20[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(235.19914f, 62.795677f, -495.62f), 622) + index2++; + span41[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(235.19914f, 62.795677f, -495.62f), 622) { DisableNavmesh = true, Mount = true }; - span20[2] = new QuestStep(EInteractionType.Interact, 1020547u, new Vector3(418.265f, 42.699287f, -448.53894f), 622); + index2++; + span41[index2] = new QuestStep(EInteractionType.Interact, 1020547u, new Vector3(418.265f, 42.699287f, -448.53894f), 622); obj26.Steps = list41; reference28 = obj26; - ref QuestSequence reference29 = ref span14[4]; + num++; + ref QuestSequence reference29 = ref span31[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); obj27.Steps = list42; reference29 = obj27; questRoot5.QuestSequence = list31; @@ -160574,13 +193386,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; + Span span43 = CollectionsMarshal.AsSpan(list43); + index = 0; + span43[index] = "JerryWester"; questRoot6.Author = list43; - num = 7; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span21 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference30 = ref span21[0]; + index = 7; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + Span span44 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference30 = ref span44[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 @@ -160588,21 +193403,27 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); obj28.Steps = list45; reference30 = obj28; - ref QuestSequence reference31 = ref span21[1]; + num++; + ref QuestSequence reference31 = ref span44[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1019396u, new Vector3(542.1378f, 40.425697f, -500.54172f), 622); + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.Interact, 1019396u, new Vector3(542.1378f, 40.425697f, -500.54172f), 622); obj29.Steps = list46; reference31 = obj29; - ref QuestSequence reference32 = ref span21[2]; + num++; + ref QuestSequence reference32 = ref span44[num]; QuestSequence obj30 = new QuestSequence { Sequence = 2 @@ -160610,77 +193431,109 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1020549u, new Vector3(555.9625f, 10.160159f, -266.46832f), 622); + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.Interact, 1020549u, new Vector3(555.9625f, 10.160159f, -266.46832f), 622); obj30.Steps = list47; reference32 = obj30; - ref QuestSequence reference33 = ref span21[3]; + num++; + ref QuestSequence reference33 = ref span44[num]; QuestSequence obj31 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - Span span22 = CollectionsMarshal.AsSpan(list48); - ref QuestStep reference34 = ref span22[0]; + index2 = 4; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + ref QuestStep reference34 = ref span48[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2008245u, new Vector3(562.0354f, 9.750427f, -297.8103f), 622); - num3 = 6; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - Span span23 = CollectionsMarshal.AsSpan(list49); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list49 = new List(num4); + CollectionsMarshal.SetCount(list49, num4); + Span span49 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span49[num3] = null; + num3++; + span49[num3] = null; + num3++; + span49[num3] = null; + num3++; + span49[num3] = null; + num3++; + span49[num3] = null; + num3++; + span49[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list49; reference34 = questStep3; - ref QuestStep reference35 = ref span22[1]; + num2++; + ref QuestStep reference35 = ref span48[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2008247u, new Vector3(692.56116f, 3.4942627f, -273.91473f), 622); num3 = 6; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - Span span24 = CollectionsMarshal.AsSpan(list50); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span50 = CollectionsMarshal.AsSpan(list50); + num4 = 0; + span50[num4] = null; + num4++; + span50[num4] = null; + num4++; + span50[num4] = null; + num4++; + span50[num4] = null; + num4++; + span50[num4] = null; + num4++; + span50[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list50; reference35 = questStep4; - ref QuestStep reference36 = ref span22[2]; + num2++; + ref QuestStep reference36 = ref span48[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2008248u, new Vector3(729.3048f, 6.301941f, -355.18427f), 622); - num3 = 6; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - Span span25 = CollectionsMarshal.AsSpan(list51); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list51 = new List(num4); + CollectionsMarshal.SetCount(list51, num4); + Span span51 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span51[num3] = null; + num3++; + span51[num3] = null; + num3++; + span51[num3] = null; + num3++; + span51[num3] = null; + num3++; + span51[num3] = null; + num3++; + span51[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list51; reference36 = questStep5; - ref QuestStep reference37 = ref span22[3]; + num2++; + ref QuestStep reference37 = ref span48[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2008246u, new Vector3(641.7792f, 5.996765f, -355.6115f), 622); num3 = 6; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - Span span26 = CollectionsMarshal.AsSpan(list52); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span52 = CollectionsMarshal.AsSpan(list52); + num4 = 0; + span52[num4] = null; + num4++; + span52[num4] = null; + num4++; + span52[num4] = null; + num4++; + span52[num4] = null; + num4++; + span52[num4] = null; + num4++; + span52[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list52; reference37 = questStep6; obj31.Steps = list48; reference33 = obj31; - ref QuestSequence reference38 = ref span21[4]; + num++; + ref QuestSequence reference38 = ref span44[num]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -160688,21 +193541,27 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1020549u, new Vector3(555.9625f, 10.160159f, -266.46832f), 622); + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.Interact, 1020549u, new Vector3(555.9625f, 10.160159f, -266.46832f), 622); obj32.Steps = list53; reference38 = obj32; - ref QuestSequence reference39 = ref span21[5]; + num++; + ref QuestSequence reference39 = ref span44[num]; QuestSequence obj33 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.Interact, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); obj33.Steps = list54; reference39 = obj33; - ref QuestSequence reference40 = ref span21[6]; + num++; + ref QuestSequence reference40 = ref span44[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -160710,7 +193569,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020544u, new Vector3(485.2522f, 40.32777f, -472.19043f), 622); + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020544u, new Vector3(485.2522f, 40.32777f, -472.19043f), 622); obj34.Steps = list55; reference40 = obj34; questRoot6.QuestSequence = list44; @@ -160720,24 +193581,30 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "JerryWester"; + Span span56 = CollectionsMarshal.AsSpan(list56); + index = 0; + span56[index] = "JerryWester"; questRoot7.Author = list56; - num = 7; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span27 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference41 = ref span27[0]; + index = 7; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + Span span57 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference41 = ref span57[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020544u, new Vector3(485.2522f, 40.32777f, -472.19043f), 622); + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020544u, new Vector3(485.2522f, 40.32777f, -472.19043f), 622); obj35.Steps = list58; reference41 = obj35; - ref QuestSequence reference42 = ref span27[1]; + num++; + ref QuestSequence reference42 = ref span57[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -160745,26 +193612,32 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1020670u, new Vector3(420.4928f, 42.47494f, -439.01733f), 622); + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.Interact, 1020670u, new Vector3(420.4928f, 42.47494f, -439.01733f), 622); obj36.Steps = list59; reference42 = obj36; - ref QuestSequence reference43 = ref span27[2]; + num++; + ref QuestSequence reference43 = ref span57[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - Span span28 = CollectionsMarshal.AsSpan(list60); - span28[0] = new QuestStep(EInteractionType.AcceptQuest, 1019405u, new Vector3(343.58728f, 26.261887f, -326.55835f), 622) + index2 = 2; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019405u, new Vector3(343.58728f, 26.261887f, -326.55835f), 622) { PickUpQuestId = new QuestId(2771) }; - span28[1] = new QuestStep(EInteractionType.Interact, 1020671u, new Vector3(291.27942f, 46.15984f, -417.99042f), 622); + num2++; + span60[num2] = new QuestStep(EInteractionType.Interact, 1020671u, new Vector3(291.27942f, 46.15984f, -417.99042f), 622); obj37.Steps = list60; reference43 = obj37; - ref QuestSequence reference44 = ref span27[3]; + num++; + ref QuestSequence reference44 = ref span57[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 @@ -160772,34 +193645,43 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list61)[0]; + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + ref QuestStep reference45 = ref span61[index2]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, 2008929u, new Vector3(223.22424f, 49.66809f, -426.13873f), 622) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 3; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span29 = CollectionsMarshal.AsSpan(list62); - span29[0] = 7565u; - span29[1] = 7566u; - span29[2] = 7567u; + num4 = 3; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + Span span62 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span62[num3] = 7565u; + num3++; + span62[num3] = 7566u; + num3++; + span62[num3] = 7567u; obj39.KillEnemyDataIds = list62; reference45 = obj39; obj38.Steps = list61; reference44 = obj38; - ref QuestSequence reference46 = ref span27[4]; + num++; + ref QuestSequence reference46 = ref span57[num]; QuestSequence obj40 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1020673u, new Vector3(-2.1516113f, 69.62067f, -491.87457f), 622); + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.Interact, 1020673u, new Vector3(-2.1516113f, 69.62067f, -491.87457f), 622); obj40.Steps = list63; reference46 = obj40; - ref QuestSequence reference47 = ref span27[5]; + num++; + ref QuestSequence reference47 = ref span57[num]; QuestSequence obj41 = new QuestSequence { Sequence = 5 @@ -160807,7 +193689,9 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list64)[0]; + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + ref QuestStep reference48 = ref span64[index2]; QuestStep obj42 = new QuestStep(EInteractionType.Combat, 2008930u, new Vector3(-250.59894f, 76.1272f, -486.71704f), 622) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -160815,22 +193699,27 @@ public static class AssemblyQuestLoader num3 = 2; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span30 = CollectionsMarshal.AsSpan(list65); - span30[0] = 7547u; - span30[1] = 7567u; + Span span65 = CollectionsMarshal.AsSpan(list65); + num4 = 0; + span65[num4] = 7547u; + num4++; + span65[num4] = 7567u; obj42.KillEnemyDataIds = list65; reference48 = obj42; obj41.Steps = list64; reference47 = obj41; - ref QuestSequence reference49 = ref span27[6]; + num++; + ref QuestSequence reference49 = ref span57[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020679u, new Vector3(-507.80502f, 71.23162f, -512.0775f), 622); + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020679u, new Vector3(-507.80502f, 71.23162f, -512.0775f), 622); obj43.Steps = list66; reference49 = obj43; questRoot7.QuestSequence = list57; @@ -160840,13 +193729,16 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "JerryWester"; + Span span67 = CollectionsMarshal.AsSpan(list67); + index = 0; + span67[index] = "JerryWester"; questRoot8.Author = list67; - num = 3; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span31 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference50 = ref span31[0]; + index = 3; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + Span span68 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference50 = ref span68[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -160854,18 +193746,23 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020679u, new Vector3(-507.80502f, 71.23162f, -512.0775f), 622); + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020679u, new Vector3(-507.80502f, 71.23162f, -512.0775f), 622); obj44.Steps = list69; reference50 = obj44; - ref QuestSequence reference51 = ref span31[1]; + num++; + ref QuestSequence reference51 = ref span68[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Duty, null, null, 622) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.Duty, null, null, 622) { DutyOptions = new DutyOptions { @@ -160874,7 +193771,8 @@ public static class AssemblyQuestLoader }; obj45.Steps = list70; reference51 = obj45; - ref QuestSequence reference52 = ref span31[2]; + num++; + ref QuestSequence reference52 = ref span68[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue @@ -160882,7 +193780,9 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020682u, new Vector3(-507.49982f, 70.84219f, -501.45728f), 622); + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020682u, new Vector3(-507.49982f, 70.84219f, -501.45728f), 622); obj46.Steps = list71; reference52 = obj46; questRoot8.QuestSequence = list68; @@ -160892,24 +193792,30 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "JerryWester"; + Span span72 = CollectionsMarshal.AsSpan(list72); + index = 0; + span72[index] = "JerryWester"; questRoot9.Author = list72; - num = 2; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span32 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference53 = ref span32[0]; + index = 2; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + Span span73 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference53 = ref span73[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020682u, new Vector3(-507.49982f, 70.84219f, -501.45728f), 622); + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020682u, new Vector3(-507.49982f, 70.84219f, -501.45728f), 622); obj47.Steps = list74; reference53 = obj47; - ref QuestSequence reference54 = ref span32[1]; + num++; + ref QuestSequence reference54 = ref span73[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -160917,7 +193823,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); obj48.Steps = list75; reference54 = obj48; questRoot9.QuestSequence = list73; @@ -160927,24 +193835,30 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "JerryWester"; + Span span76 = CollectionsMarshal.AsSpan(list76); + index = 0; + span76[index] = "JerryWester"; questRoot10.Author = list76; - num = 6; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span33 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference55 = ref span33[0]; + index = 6; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + Span span77 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference55 = ref span77[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022078u, new Vector3(-29.526245f, 121.09276f, 70.29822f), 622); + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022078u, new Vector3(-29.526245f, 121.09276f, 70.29822f), 622); obj49.Steps = list78; reference55 = obj49; - ref QuestSequence reference56 = ref span33[1]; + num++; + ref QuestSequence reference56 = ref span77[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 @@ -160952,33 +193866,40 @@ public static class AssemblyQuestLoader num2 = 2; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span34 = CollectionsMarshal.AsSpan(list79); - span34[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 622) + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 622) { Aetheryte = EAetheryteLocation.AzimSteppeDawnThrone }; - span34[1] = new QuestStep(EInteractionType.Interact, 1020687u, new Vector3(102.92212f, 114.904976f, 70.66455f), 622); + index2++; + span79[index2] = new QuestStep(EInteractionType.Interact, 1020687u, new Vector3(102.92212f, 114.904976f, 70.66455f), 622); obj50.Steps = list79; reference56 = obj50; - ref QuestSequence reference57 = ref span33[2]; + num++; + ref QuestSequence reference57 = ref span77[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span35 = CollectionsMarshal.AsSpan(list80); - span35[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008019u, new Vector3(105.607666f, 116.01428f, -49.69867f), 622) + index2 = 2; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008019u, new Vector3(105.607666f, 116.01428f, -49.69867f), 622) { AetherCurrentId = 2818212u }; - ref QuestStep reference58 = ref span35[1]; + num2++; + ref QuestStep reference58 = ref span80[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1023089u, new Vector3(66.178345f, 114.904976f, -8.0720825f), 622); - num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new DialogueChoice + num4 = 1; + List list81 = new List(num4); + CollectionsMarshal.SetCount(list81, num4); + Span span81 = CollectionsMarshal.AsSpan(list81); + num3 = 0; + span81[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDA410_02509_SYSTEM_000_051") @@ -160987,7 +193908,8 @@ public static class AssemblyQuestLoader reference58 = questStep7; obj51.Steps = list80; reference57 = obj51; - ref QuestSequence reference59 = ref span33[3]; + num++; + ref QuestSequence reference59 = ref span77[num]; QuestSequence obj52 = new QuestSequence { Sequence = 3 @@ -160995,16 +193917,19 @@ public static class AssemblyQuestLoader num2 = 10; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span36 = CollectionsMarshal.AsSpan(list82); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.04901f, 1.9869974f, 23.111439f), 622) + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.04901f, 1.9869974f, 23.111439f), 622) { DisableNavmesh = true }; - span36[1] = new QuestStep(EInteractionType.Dive, null, new Vector3(65.04901f, 1.9869974f, 23.111439f), 622) + index2++; + span82[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(65.04901f, 1.9869974f, 23.111439f), 622) { DelaySecondsAtStart = 2f }; - ref QuestStep reference60 = ref span36[2]; + index2++; + ref QuestStep reference60 = ref span82[index2]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 2008252u, new Vector3(61.020752f, -72.09894f, 11.123779f), 622) { DisableNavmesh = true @@ -161012,130 +193937,189 @@ public static class AssemblyQuestLoader num3 = 6; List list83 = new List(num3); CollectionsMarshal.SetCount(list83, num3); - Span span37 = CollectionsMarshal.AsSpan(list83); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span83 = CollectionsMarshal.AsSpan(list83); + num4 = 0; + span83[num4] = null; + num4++; + span83[num4] = null; + num4++; + span83[num4] = null; + num4++; + span83[num4] = null; + num4++; + span83[num4] = null; + num4++; + span83[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj53.CompletionQuestVariablesFlags = list83; reference60 = obj53; - ref QuestStep reference61 = ref span36[3]; + index2++; + ref QuestStep reference61 = ref span82[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2008250u, new Vector3(109.54443f, -51.285645f, -40.878906f), 622); - num3 = 6; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - Span span38 = CollectionsMarshal.AsSpan(list84); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list84 = new List(num4); + CollectionsMarshal.SetCount(list84, num4); + Span span84 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span84[num3] = null; + num3++; + span84[num3] = null; + num3++; + span84[num3] = null; + num3++; + span84[num3] = null; + num3++; + span84[num3] = null; + num3++; + span84[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list84; reference61 = questStep8; - ref QuestStep reference62 = ref span36[4]; + index2++; + ref QuestStep reference62 = ref span82[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2008255u, new Vector3(134.7218f, -61.69226f, -18.783936f), 622); num3 = 6; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - Span span39 = CollectionsMarshal.AsSpan(list85); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + Span span85 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span85[num4] = null; + num4++; + span85[num4] = null; + num4++; + span85[num4] = null; + num4++; + span85[num4] = null; + num4++; + span85[num4] = null; + num4++; + span85[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list85; reference62 = questStep9; - ref QuestStep reference63 = ref span36[5]; + index2++; + ref QuestStep reference63 = ref span82[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2008253u, new Vector3(166.55212f, -62.912964f, 27.481445f), 622); - num3 = 6; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span40 = CollectionsMarshal.AsSpan(list86); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list86 = new List(num4); + CollectionsMarshal.SetCount(list86, num4); + Span span86 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list86; reference63 = questStep10; - ref QuestStep reference64 = ref span36[6]; + index2++; + ref QuestStep reference64 = ref span82[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2008257u, new Vector3(-194.2627f, -57.66388f, 105.97388f), 622); num3 = 6; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - Span span41 = CollectionsMarshal.AsSpan(list87); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + Span span87 = CollectionsMarshal.AsSpan(list87); + num4 = 0; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = null; + num4++; + span87[num4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list87; reference64 = questStep11; - ref QuestStep reference65 = ref span36[7]; + index2++; + ref QuestStep reference65 = ref span82[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2008256u, new Vector3(-126.26843f, -54.64258f, 93.43091f), 622); - num3 = 6; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span42 = CollectionsMarshal.AsSpan(list88); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List list88 = new List(num4); + CollectionsMarshal.SetCount(list88, num4); + Span span88 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list88; reference65 = questStep12; - ref QuestStep reference66 = ref span36[8]; + index2++; + ref QuestStep reference66 = ref span82[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2008251u, new Vector3(-74.23517f, -57.78595f, 59.464355f), 622); num3 = 6; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - Span span43 = CollectionsMarshal.AsSpan(list89); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span89 = CollectionsMarshal.AsSpan(list89); + num4 = 0; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list89; reference66 = questStep13; - ref QuestStep reference67 = ref span36[9]; + index2++; + ref QuestStep reference67 = ref span82[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2008254u, new Vector3(-78.202515f, -60.105347f, 6.5460815f), 622); - num3 = 6; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - Span span44 = CollectionsMarshal.AsSpan(list90); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list90 = new List(num4); + CollectionsMarshal.SetCount(list90, num4); + Span span90 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list90; reference67 = questStep14; obj52.Steps = list82; reference59 = obj52; - ref QuestSequence reference68 = ref span33[4]; + num++; + ref QuestSequence reference68 = ref span77[num]; QuestSequence obj54 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1020687u, new Vector3(102.92212f, 114.904976f, 70.66455f), 622) + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span91[num2] = new QuestStep(EInteractionType.Interact, 1020687u, new Vector3(102.92212f, 114.904976f, 70.66455f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj54.Steps = list91; reference68 = obj54; - ref QuestSequence reference69 = ref span33[5]; + num++; + ref QuestSequence reference69 = ref span77[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -161143,7 +194127,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); obj55.Steps = list92; reference69 = obj55; questRoot10.QuestSequence = list77; @@ -161153,21 +194139,26 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "JerryWester"; + Span span93 = CollectionsMarshal.AsSpan(list93); + index = 0; + span93[index] = "JerryWester"; questRoot11.Author = list93; - num = 6; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span45 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference70 = ref span45[0]; + index = 6; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + Span span94 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference70 = ref span94[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021730u, new Vector3(-31.204712f, 121.12067f, 62.088867f), 622) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021730u, new Vector3(-31.204712f, 121.12067f, 62.088867f), 622) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -161181,7 +194172,8 @@ public static class AssemblyQuestLoader }; obj56.Steps = list95; reference70 = obj56; - ref QuestSequence reference71 = ref span45[1]; + num++; + ref QuestSequence reference71 = ref span94[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 @@ -161189,77 +194181,109 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1019426u, new Vector3(-31.47937f, 114.90497f, -37.857666f), 622); + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.Interact, 1019426u, new Vector3(-31.47937f, 114.90497f, -37.857666f), 622); obj57.Steps = list96; reference71 = obj57; - ref QuestSequence reference72 = ref span45[2]; + num++; + ref QuestSequence reference72 = ref span94[num]; QuestSequence obj58 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - Span span46 = CollectionsMarshal.AsSpan(list97); - ref QuestStep reference73 = ref span46[0]; + index2 = 4; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + ref QuestStep reference73 = ref span97[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1021601u, new Vector3(69.047f, 115.59484f, -17.654724f), 622); num3 = 6; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - Span span47 = CollectionsMarshal.AsSpan(list98); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span98 = CollectionsMarshal.AsSpan(list98); + num4 = 0; + span98[num4] = null; + num4++; + span98[num4] = null; + num4++; + span98[num4] = null; + num4++; + span98[num4] = null; + num4++; + span98[num4] = null; + num4++; + span98[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list98; reference73 = questStep15; - ref QuestStep reference74 = ref span46[1]; + num2++; + ref QuestStep reference74 = ref span97[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1021602u, new Vector3(-8.1026f, 114.90496f, 133.1654f), 622); - num3 = 6; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span48 = CollectionsMarshal.AsSpan(list99); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list99 = new List(num4); + CollectionsMarshal.SetCount(list99, num4); + Span span99 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list99; reference74 = questStep16; - ref QuestStep reference75 = ref span46[2]; + num2++; + ref QuestStep reference75 = ref span97[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1020691u, new Vector3(1.6021729f, 114.90497f, 96.42175f), 622); num3 = 6; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - Span span49 = CollectionsMarshal.AsSpan(list100); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span100 = CollectionsMarshal.AsSpan(list100); + num4 = 0; + span100[num4] = null; + num4++; + span100[num4] = null; + num4++; + span100[num4] = null; + num4++; + span100[num4] = null; + num4++; + span100[num4] = null; + num4++; + span100[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list100; reference75 = questStep17; - ref QuestStep reference76 = ref span46[3]; + num2++; + ref QuestStep reference76 = ref span97[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1021600u, new Vector3(-44.327515f, 121f, 36.697876f), 622); - num3 = 6; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span50 = CollectionsMarshal.AsSpan(list101); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list101 = new List(num4); + CollectionsMarshal.SetCount(list101, num4); + Span span101 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span101[num3] = null; + num3++; + span101[num3] = null; + num3++; + span101[num3] = null; + num3++; + span101[num3] = null; + num3++; + span101[num3] = null; + num3++; + span101[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list101; reference76 = questStep18; obj58.Steps = list97; reference72 = obj58; - ref QuestSequence reference77 = ref span45[3]; + num++; + ref QuestSequence reference77 = ref span94[num]; QuestSequence obj59 = new QuestSequence { Sequence = 3 @@ -161267,27 +194291,33 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span51 = CollectionsMarshal.AsSpan(list102); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-45.269917f, 114.904976f, 30.628508f), 622) + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span102[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-45.269917f, 114.904976f, 30.628508f), 622) { DisableNavmesh = true, Mount = true }; - span51[1] = new QuestStep(EInteractionType.Interact, 1019426u, new Vector3(-31.47937f, 114.90497f, -37.857666f), 622); + index2++; + span102[index2] = new QuestStep(EInteractionType.Interact, 1019426u, new Vector3(-31.47937f, 114.90497f, -37.857666f), 622); obj59.Steps = list102; reference77 = obj59; - ref QuestSequence reference78 = ref span45[4]; + num++; + ref QuestSequence reference78 = ref span94[num]; QuestSequence obj60 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1020689u, new Vector3(-28.21399f, 114.90497f, -37.583008f), 622); + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span103[num2] = new QuestStep(EInteractionType.Interact, 1020689u, new Vector3(-28.21399f, 114.90497f, -37.583008f), 622); obj60.Steps = list103; reference78 = obj60; - ref QuestSequence reference79 = ref span45[5]; + num++; + ref QuestSequence reference79 = ref span94[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -161295,7 +194325,9 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); obj61.Steps = list104; reference79 = obj61; questRoot11.QuestSequence = list94; @@ -161305,21 +194337,26 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - CollectionsMarshal.AsSpan(list105)[0] = "JerryWester"; + Span span105 = CollectionsMarshal.AsSpan(list105); + index = 0; + span105[index] = "JerryWester"; questRoot12.Author = list105; - num = 5; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - Span span52 = CollectionsMarshal.AsSpan(list106); - ref QuestSequence reference80 = ref span52[0]; + index = 5; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + Span span106 = CollectionsMarshal.AsSpan(list106); + num = 0; + ref QuestSequence reference80 = ref span106[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, SkipConditions = new SkipConditions @@ -161332,7 +194369,8 @@ public static class AssemblyQuestLoader }; obj62.Steps = list107; reference80 = obj62; - ref QuestSequence reference81 = ref span52[1]; + num++; + ref QuestSequence reference81 = ref span106[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -161340,23 +194378,28 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1021605u, new Vector3(63.70642f, 114.90497f, 72.55664f), 622); + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.Interact, 1021605u, new Vector3(63.70642f, 114.90497f, 72.55664f), 622); obj63.Steps = list108; reference81 = obj63; - ref QuestSequence reference82 = ref span52[2]; + num++; + ref QuestSequence reference82 = ref span106[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span53 = CollectionsMarshal.AsSpan(list109); - span53[0] = new QuestStep(EInteractionType.AcceptQuest, 1023348u, new Vector3(79.24011f, 114.90497f, 95.994385f), 622) + index2 = 2; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023348u, new Vector3(79.24011f, 114.90497f, 95.994385f), 622) { PickUpQuestId = new QuestId(2782) }; - span53[1] = new QuestStep(EInteractionType.Emote, null, new Vector3(-136.6883f, 15.660965f, 579.51746f), 622) + num2++; + span109[num2] = new QuestStep(EInteractionType.Emote, null, new Vector3(-136.6883f, 15.660965f, 579.51746f), 622) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -161364,7 +194407,8 @@ public static class AssemblyQuestLoader }; obj64.Steps = list109; reference82 = obj64; - ref QuestSequence reference83 = ref span52[3]; + num++; + ref QuestSequence reference83 = ref span106[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 @@ -161372,8 +194416,9 @@ public static class AssemblyQuestLoader num2 = 2; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span54 = CollectionsMarshal.AsSpan(list110); - ref QuestStep reference84 = ref span54[0]; + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + ref QuestStep reference84 = ref span110[index2]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, null, new Vector3(-291.58472f, 10.658516f, 602.01416f), 622) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -161381,32 +194426,44 @@ public static class AssemblyQuestLoader num3 = 1; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = 7563u; + Span span111 = CollectionsMarshal.AsSpan(list111); + num4 = 0; + span111[num4] = 7563u; obj66.KillEnemyDataIds = list111; - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span55 = CollectionsMarshal.AsSpan(list112); - span55[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = null; + num4 = 6; + List list112 = new List(num4); + CollectionsMarshal.SetCount(list112, num4); + Span span112 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span112[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; obj66.CompletionQuestVariablesFlags = list112; reference84 = obj66; - span54[1] = new QuestStep(EInteractionType.Interact, 1021608u, new Vector3(-291.58472f, 10.658516f, 602.01416f), 622); + index2++; + span110[index2] = new QuestStep(EInteractionType.Interact, 1021608u, new Vector3(-291.58472f, 10.658516f, 602.01416f), 622); obj65.Steps = list110; reference83 = obj65; - ref QuestSequence reference85 = ref span52[4]; + num++; + ref QuestSequence reference85 = ref span106[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021625u, new Vector3(-290.33344f, 10.389871f, 598.9928f), 622) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021625u, new Vector3(-290.33344f, 10.389871f, 598.9928f), 622) { StopDistance = 7f }; @@ -161419,13 +194476,16 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "JerryWester"; + Span span114 = CollectionsMarshal.AsSpan(list114); + index = 0; + span114[index] = "JerryWester"; questRoot13.Author = list114; - num = 5; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span56 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference86 = ref span56[0]; + index = 5; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + Span span115 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference86 = ref span115[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 @@ -161433,24 +194493,30 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021625u, new Vector3(-290.33344f, 10.389871f, 598.9928f), 622) + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021625u, new Vector3(-290.33344f, 10.389871f, 598.9928f), 622) { StopDistance = 7f }; obj68.Steps = list116; reference86 = obj68; - ref QuestSequence reference87 = ref span56[1]; + num++; + ref QuestSequence reference87 = ref span115[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1021611u, new Vector3(-447.74554f, 3.0839548f, 545.922f), 622); + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.Interact, 1021611u, new Vector3(-447.74554f, 3.0839548f, 545.922f), 622); obj69.Steps = list117; reference87 = obj69; - ref QuestSequence reference88 = ref span56[2]; + num++; + ref QuestSequence reference88 = ref span115[num]; QuestSequence obj70 = new QuestSequence { Sequence = 2 @@ -161458,63 +194524,88 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1021613u, new Vector3(-450.6142f, 3.3978803f, 540.7339f), 622); + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span118[index2] = new QuestStep(EInteractionType.Interact, 1021613u, new Vector3(-450.6142f, 3.3978803f, 540.7339f), 622); obj70.Steps = list118; reference88 = obj70; - ref QuestSequence reference89 = ref span56[3]; + num++; + ref QuestSequence reference89 = ref span115[num]; QuestSequence obj71 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - Span span57 = CollectionsMarshal.AsSpan(list119); - ref QuestStep reference90 = ref span57[0]; + index2 = 3; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + ref QuestStep reference90 = ref span119[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1019320u, new Vector3(-435.29413f, 2.267429f, 582.2689f), 622); num3 = 6; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - Span span58 = CollectionsMarshal.AsSpan(list120); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span120 = CollectionsMarshal.AsSpan(list120); + num4 = 0; + span120[num4] = null; + num4++; + span120[num4] = null; + num4++; + span120[num4] = null; + num4++; + span120[num4] = null; + num4++; + span120[num4] = null; + num4++; + span120[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list120; reference90 = questStep19; - ref QuestStep reference91 = ref span57[1]; + num2++; + ref QuestStep reference91 = ref span119[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1019322u, new Vector3(-411.64264f, 2.2485201f, 617.1815f), 622); - num3 = 6; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span59 = CollectionsMarshal.AsSpan(list121); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list121 = new List(num4); + CollectionsMarshal.SetCount(list121, num4); + Span span121 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list121; reference91 = questStep20; - ref QuestStep reference92 = ref span57[2]; + num2++; + ref QuestStep reference92 = ref span119[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1019321u, new Vector3(-473.0144f, 2.320309f, 616.907f), 622); num3 = 6; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - Span span60 = CollectionsMarshal.AsSpan(list122); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span122 = CollectionsMarshal.AsSpan(list122); + num4 = 0; + span122[num4] = null; + num4++; + span122[num4] = null; + num4++; + span122[num4] = null; + num4++; + span122[num4] = null; + num4++; + span122[num4] = null; + num4++; + span122[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list122; reference92 = questStep21; obj71.Steps = list119; reference89 = obj71; - ref QuestSequence reference93 = ref span56[4]; + num++; + ref QuestSequence reference93 = ref span115[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -161522,7 +194613,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021615u, new Vector3(-399.0387f, 2.257562f, 599.26746f), 622); + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021615u, new Vector3(-399.0387f, 2.257562f, 599.26746f), 622); obj72.Steps = list123; reference93 = obj72; questRoot13.QuestSequence = list115; @@ -161532,24 +194625,30 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "JerryWester"; + Span span124 = CollectionsMarshal.AsSpan(list124); + index = 0; + span124[index] = "JerryWester"; questRoot14.Author = list124; - num = 4; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - Span span61 = CollectionsMarshal.AsSpan(list125); - ref QuestSequence reference94 = ref span61[0]; + index = 4; + List list125 = new List(index); + CollectionsMarshal.SetCount(list125, index); + Span span125 = CollectionsMarshal.AsSpan(list125); + num = 0; + ref QuestSequence reference94 = ref span125[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021615u, new Vector3(-399.0387f, 2.257562f, 599.26746f), 622); + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021615u, new Vector3(-399.0387f, 2.257562f, 599.26746f), 622); obj73.Steps = list126; reference94 = obj73; - ref QuestSequence reference95 = ref span61[1]; + num++; + ref QuestSequence reference95 = ref span125[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -161557,38 +194656,46 @@ public static class AssemblyQuestLoader num2 = 2; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span62 = CollectionsMarshal.AsSpan(list127); - span62[0] = new QuestStep(EInteractionType.AcceptQuest, 1023193u, new Vector3(-434.0429f, 2.5501096f, 650.01904f), 622) + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023193u, new Vector3(-434.0429f, 2.5501096f, 650.01904f), 622) { PickUpQuestId = new QuestId(2791) }; - span62[1] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622); + index2++; + span127[index2] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622); obj74.Steps = list127; reference95 = obj74; - ref QuestSequence reference96 = ref span61[2]; + num++; + ref QuestSequence reference96 = ref span125[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span63 = CollectionsMarshal.AsSpan(list128); - ref QuestStep reference97 = ref span63[0]; + index2 = 2; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + ref QuestStep reference97 = ref span128[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, null, new Vector3(-704.3717f, 6.362976f, 615.0759f), 622) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = 7529u; + num4 = 1; + List list129 = new List(num4); + CollectionsMarshal.SetCount(list129, num4); + Span span129 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span129[num3] = 7529u; obj76.KillEnemyDataIds = list129; reference97 = obj76; - span63[1] = new QuestStep(EInteractionType.Interact, 2008484u, new Vector3(-704.3717f, 6.362976f, 615.0759f), 622); + num2++; + span128[num2] = new QuestStep(EInteractionType.Interact, 2008484u, new Vector3(-704.3717f, 6.362976f, 615.0759f), 622); obj75.Steps = list128; reference96 = obj75; - ref QuestSequence reference98 = ref span61[3]; + num++; + ref QuestSequence reference98 = ref span125[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -161596,7 +194703,9 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021628u, new Vector3(-705.50085f, 6.554513f, 613.1837f), 622); + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span130[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021628u, new Vector3(-705.50085f, 6.554513f, 613.1837f), 622); obj77.Steps = list130; reference98 = obj77; questRoot14.QuestSequence = list125; @@ -161606,24 +194715,30 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "JerryWester"; + Span span131 = CollectionsMarshal.AsSpan(list131); + index = 0; + span131[index] = "JerryWester"; questRoot15.Author = list131; - num = 4; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span64 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference99 = ref span64[0]; + index = 4; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + Span span132 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference99 = ref span132[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021628u, new Vector3(-705.50085f, 6.554513f, 613.1837f), 622); + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021628u, new Vector3(-705.50085f, 6.554513f, 613.1837f), 622); obj78.Steps = list133; reference99 = obj78; - ref QuestSequence reference100 = ref span64[1]; + num++; + ref QuestSequence reference100 = ref span132[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -161631,29 +194746,35 @@ public static class AssemblyQuestLoader num2 = 2; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span65 = CollectionsMarshal.AsSpan(list134); - span65[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008022u, new Vector3(-693.8301f, 7.263198f, 658.8989f), 622) + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span134[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008022u, new Vector3(-693.8301f, 7.263198f, 658.8989f), 622) { AetherCurrentId = 2818215u }; - span65[1] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) + index2++; + span134[index2] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj79.Steps = list134; reference100 = obj79; - ref QuestSequence reference101 = ref span64[2]; + num++; + ref QuestSequence reference101 = ref span132[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1021630u, new Vector3(59.586426f, 114.90497f, 72.3125f), 622); + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span135[num2] = new QuestStep(EInteractionType.Interact, 1021630u, new Vector3(59.586426f, 114.90497f, 72.3125f), 622); obj80.Steps = list135; reference101 = obj80; - ref QuestSequence reference102 = ref span64[3]; + num++; + ref QuestSequence reference102 = ref span132[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -161661,13 +194782,16 @@ public static class AssemblyQuestLoader num2 = 3; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span66 = CollectionsMarshal.AsSpan(list136); - span66[0] = new QuestStep(EInteractionType.Interact, 1019424u, new Vector3(66.056274f, 114.904976f, -8.377258f), 622) + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span136[index2] = new QuestStep(EInteractionType.Interact, 1019424u, new Vector3(66.056274f, 114.904976f, -8.377258f), 622) { TargetTerritoryId = (ushort)622 }; - span66[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(202.73067f, 6.1036434f, 11.536863f), 622); - span66[2] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); + index2++; + span136[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(202.73067f, 6.1036434f, 11.536863f), 622); + index2++; + span136[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); obj81.Steps = list136; reference102 = obj81; questRoot15.QuestSequence = list132; @@ -161677,24 +194801,30 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "JerryWester"; + Span span137 = CollectionsMarshal.AsSpan(list137); + index = 0; + span137[index] = "JerryWester"; questRoot16.Author = list137; - num = 6; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span67 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference103 = ref span67[0]; + index = 6; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + Span span138 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference103 = ref span138[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + Span span139 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span139[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); obj82.Steps = list139; reference103 = obj82; - ref QuestSequence reference104 = ref span67[1]; + num++; + ref QuestSequence reference104 = ref span138[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -161702,8 +194832,9 @@ public static class AssemblyQuestLoader num2 = 4; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span68 = CollectionsMarshal.AsSpan(list140); - ref QuestStep reference105 = ref span68[0]; + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + ref QuestStep reference105 = ref span140[index2]; QuestStep obj84 = new QuestStep(EInteractionType.Interact, 1019386u, new Vector3(501.21313f, 40.836082f, -505.9129f), 622) { StopDistance = 7f @@ -161711,32 +194842,47 @@ public static class AssemblyQuestLoader num3 = 6; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - Span span69 = CollectionsMarshal.AsSpan(list141); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span141 = CollectionsMarshal.AsSpan(list141); + num4 = 0; + span141[num4] = null; + num4++; + span141[num4] = null; + num4++; + span141[num4] = null; + num4++; + span141[num4] = null; + num4++; + span141[num4] = null; + num4++; + span141[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj84.CompletionQuestVariablesFlags = list141; reference105 = obj84; - ref QuestStep reference106 = ref span68[1]; + index2++; + ref QuestStep reference106 = ref span140[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1019388u, new Vector3(508.04907f, 40.4257f, -482.7802f), 622); - num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span70 = CollectionsMarshal.AsSpan(list142); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list142 = new List(num4); + CollectionsMarshal.SetCount(list142, num4); + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list142; num3 = 1; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = new DialogueChoice + Span span143 = CollectionsMarshal.AsSpan(list143); + num4 = 0; + span143[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA416_02515_Q1_000_102"), @@ -161744,23 +194890,32 @@ public static class AssemblyQuestLoader }; questStep22.DialogueChoices = list143; reference106 = questStep22; - ref QuestStep reference107 = ref span68[2]; + index2++; + ref QuestStep reference107 = ref span140[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1021634u, new Vector3(547.0206f, 38.87306f, -484.2146f), 622); - num3 = 6; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - Span span71 = CollectionsMarshal.AsSpan(list144); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list144 = new List(num4); + CollectionsMarshal.SetCount(list144, num4); + Span span144 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span144[num3] = null; + num3++; + span144[num3] = null; + num3++; + span144[num3] = null; + num3++; + span144[num3] = null; + num3++; + span144[num3] = null; + num3++; + span144[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list144; num3 = 1; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - CollectionsMarshal.AsSpan(list145)[0] = new DialogueChoice + Span span145 = CollectionsMarshal.AsSpan(list145); + num4 = 0; + span145[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA416_02515_Q1_100_070"), @@ -161768,34 +194923,45 @@ public static class AssemblyQuestLoader }; questStep23.DialogueChoices = list145; reference107 = questStep23; - ref QuestStep reference108 = ref span68[3]; + index2++; + ref QuestStep reference108 = ref span140[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1019396u, new Vector3(542.1378f, 40.425697f, -500.54172f), 622); - num3 = 6; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span72 = CollectionsMarshal.AsSpan(list146); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list146 = new List(num4); + CollectionsMarshal.SetCount(list146, num4); + Span span146 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list146; reference108 = questStep24; obj83.Steps = list140; reference104 = obj83; - ref QuestSequence reference109 = ref span67[2]; + num++; + ref QuestSequence reference109 = ref span138[num]; QuestSequence obj85 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); obj85.Steps = list147; reference109 = obj85; - ref QuestSequence reference110 = ref span67[3]; + num++; + ref QuestSequence reference110 = ref span138[num]; QuestSequence obj86 = new QuestSequence { Sequence = 3 @@ -161803,7 +194969,9 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span148[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -161812,19 +194980,23 @@ public static class AssemblyQuestLoader }; obj86.Steps = list148; reference110 = obj86; - span67[4] = new QuestSequence + num++; + span138[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference111 = ref span67[5]; + num++; + ref QuestSequence reference111 = ref span138[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020540u, new Vector3(486.6864f, 40.08099f, -465.72064f), 622); + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020540u, new Vector3(486.6864f, 40.08099f, -465.72064f), 622); obj87.Steps = list149; reference111 = obj87; questRoot16.QuestSequence = list138; @@ -161834,13 +195006,16 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "JerryWester"; + Span span150 = CollectionsMarshal.AsSpan(list150); + index = 0; + span150[index] = "JerryWester"; questRoot17.Author = list150; - num = 5; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span73 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference112 = ref span73[0]; + index = 5; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + Span span151 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference112 = ref span151[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -161848,21 +195023,27 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020540u, new Vector3(486.6864f, 40.08099f, -465.72064f), 622); + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span152[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020540u, new Vector3(486.6864f, 40.08099f, -465.72064f), 622); obj88.Steps = list152; reference112 = obj88; - ref QuestSequence reference113 = ref span73[1]; + num++; + ref QuestSequence reference113 = ref span151[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span153[num2] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); obj89.Steps = list153; reference113 = obj89; - ref QuestSequence reference114 = ref span73[2]; + num++; + ref QuestSequence reference114 = ref span151[num]; QuestSequence obj90 = new QuestSequence { Sequence = 2 @@ -161870,25 +195051,31 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1021634u, new Vector3(547.0206f, 38.87306f, -484.2146f), 622); + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.Interact, 1021634u, new Vector3(547.0206f, 38.87306f, -484.2146f), 622); obj90.Steps = list154; reference114 = obj90; - ref QuestSequence reference115 = ref span73[3]; + num++; + ref QuestSequence reference115 = ref span151[num]; QuestSequence obj91 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Emote, null, new Vector3(545.6276f, 38.841972f, -482.91553f), 622) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span155[num2] = new QuestStep(EInteractionType.Emote, null, new Vector3(545.6276f, 38.841972f, -482.91553f), 622) { StopDistance = 0.25f, Emote = EEmote.VictoryPose }; obj91.Steps = list155; reference115 = obj91; - ref QuestSequence reference116 = ref span73[4]; + num++; + ref QuestSequence reference116 = ref span151[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -161896,7 +195083,9 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); obj92.Steps = list156; reference116 = obj92; questRoot17.QuestSequence = list151; @@ -161906,27 +195095,33 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "JerryWester"; + Span span157 = CollectionsMarshal.AsSpan(list157); + index = 0; + span157[index] = "JerryWester"; questRoot18.Author = list157; - num = 4; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span74 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference117 = ref span74[0]; + index = 4; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + Span span158 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestSequence reference117 = ref span158[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021633u, new Vector3(495.10938f, 40.836124f, -508.50693f), 622) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021633u, new Vector3(495.10938f, 40.836124f, -508.50693f), 622) { StopDistance = 7f }; obj93.Steps = list159; reference117 = obj93; - ref QuestSequence reference118 = ref span74[1]; + num++; + ref QuestSequence reference118 = ref span158[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -161934,28 +195129,33 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj94.Steps = list160; reference118 = obj94; - ref QuestSequence reference119 = ref span74[2]; + num++; + ref QuestSequence reference119 = ref span158[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - Span span75 = CollectionsMarshal.AsSpan(list161); - span75[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.142036f, 121f, 63.4195f), 622) + index2 = 3; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + Span span161 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span161[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.142036f, 121f, 63.4195f), 622) { Mount = true, Fly = true }; - span75[1] = new QuestStep(EInteractionType.Interact, 1019424u, new Vector3(66.056274f, 114.904976f, -8.377258f), 622) + num2++; + span161[num2] = new QuestStep(EInteractionType.Interact, 1019424u, new Vector3(66.056274f, 114.904976f, -8.377258f), 622) { TargetTerritoryId = (ushort)622, SkipConditions = new SkipConditions @@ -161966,13 +195166,15 @@ public static class AssemblyQuestLoader } } }; - span75[2] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) + num2++; + span161[num2] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) { Fly = true }; obj95.Steps = list161; reference119 = obj95; - ref QuestSequence reference120 = ref span74[3]; + num++; + ref QuestSequence reference120 = ref span158[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -161980,7 +195182,9 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021646u, new Vector3(-167.89502f, 0.88495153f, 816.8002f), 622) + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021646u, new Vector3(-167.89502f, 0.88495153f, 816.8002f), 622) { Fly = true }; @@ -161993,24 +195197,30 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "JerryWester"; + Span span163 = CollectionsMarshal.AsSpan(list163); + index = 0; + span163[index] = "JerryWester"; questRoot19.Author = list163; - num = 4; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span76 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference121 = ref span76[0]; + index = 4; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + Span span164 = CollectionsMarshal.AsSpan(list164); + num = 0; + ref QuestSequence reference121 = ref span164[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021647u, new Vector3(-169.482f, 0.9213525f, 817.0748f), 622); + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span165[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021647u, new Vector3(-169.482f, 0.9213525f, 817.0748f), 622); obj97.Steps = list165; reference121 = obj97; - ref QuestSequence reference122 = ref span76[1]; + num++; + ref QuestSequence reference122 = ref span164[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -162018,30 +195228,36 @@ public static class AssemblyQuestLoader num2 = 2; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span77 = CollectionsMarshal.AsSpan(list166); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-161.8687f, 0.59802794f, 855.427f), 622) + Span span166 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span166[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-161.8687f, 0.59802794f, 855.427f), 622) { TargetTerritoryId = (ushort)614, Mount = true }; - span77[1] = new QuestStep(EInteractionType.Interact, 1021652u, new Vector3(508.32373f, 14.072665f, -856.199f), 614); + index2++; + span166[index2] = new QuestStep(EInteractionType.Interact, 1021652u, new Vector3(508.32373f, 14.072665f, -856.199f), 614); obj98.Steps = list166; reference122 = obj98; - ref QuestSequence reference123 = ref span76[2]; + num++; + ref QuestSequence reference123 = ref span164[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1021692u, new Vector3(330.76978f, 23.266533f, -542.56506f), 614) + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.Interact, 1021692u, new Vector3(330.76978f, 23.266533f, -542.56506f), 614) { Fly = true }; obj99.Steps = list167; reference123 = obj99; - ref QuestSequence reference124 = ref span76[3]; + num++; + ref QuestSequence reference124 = ref span164[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -162049,7 +195265,9 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614); + Span span168 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span168[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614); obj100.Steps = list168; reference124 = obj100; questRoot19.QuestSequence = list164; @@ -162059,24 +195277,30 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "JerryWester"; + Span span169 = CollectionsMarshal.AsSpan(list169); + index = 0; + span169[index] = "JerryWester"; questRoot20.Author = list169; - num = 4; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span78 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference125 = ref span78[0]; + index = 4; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + Span span170 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference125 = ref span170[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614); + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + Span span171 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span171[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614); obj101.Steps = list171; reference125 = obj101; - ref QuestSequence reference126 = ref span78[1]; + num++; + ref QuestSequence reference126 = ref span170[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 @@ -162084,21 +195308,27 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614); + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.Interact, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614); obj102.Steps = list172; reference126 = obj102; - ref QuestSequence reference127 = ref span78[2]; + num++; + ref QuestSequence reference127 = ref span170[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.Interact, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614); obj103.Steps = list173; reference127 = obj103; - ref QuestSequence reference128 = ref span78[3]; + num++; + ref QuestSequence reference128 = ref span170[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue @@ -162106,12 +195336,14 @@ public static class AssemblyQuestLoader num2 = 3; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span79 = CollectionsMarshal.AsSpan(list174); - span79[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 614) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 614) { Aetheryte = EAetheryteLocation.YanxiaHouseOfTheFierce }; - span79[1] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + index2++; + span174[index2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -162121,7 +195353,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - span79[2] = new QuestStep(EInteractionType.CompleteQuest, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); + index2++; + span174[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); obj104.Steps = list174; reference128 = obj104; questRoot20.QuestSequence = list170; @@ -162131,21 +195364,26 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "JerryWester"; + Span span175 = CollectionsMarshal.AsSpan(list175); + index = 0; + span175[index] = "JerryWester"; questRoot21.Author = list175; - num = 9; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span80 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference129 = ref span80[0]; + index = 9; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + Span span176 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference129 = ref span176[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce, SkipConditions = new SkipConditions @@ -162158,7 +195396,8 @@ public static class AssemblyQuestLoader }; obj105.Steps = list177; reference129 = obj105; - ref QuestSequence reference130 = ref span80[1]; + num++; + ref QuestSequence reference130 = ref span176[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -162166,22 +195405,26 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1020520u, new Vector3(235.85864f, 4.456162f, -382.8031f), 614) + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.Interact, 1020520u, new Vector3(235.85864f, 4.456162f, -382.8031f), 614) { Fly = true }; obj106.Steps = list178; reference130 = obj106; - ref QuestSequence reference131 = ref span80[2]; + num++; + ref QuestSequence reference131 = ref span176[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - Span span81 = CollectionsMarshal.AsSpan(list179); - span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(331.6093f, 22.34645f, -545.8195f), 614) + index2 = 2; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(331.6093f, 22.34645f, -545.8195f), 614) { SkipConditions = new SkipConditions { @@ -162191,13 +195434,15 @@ public static class AssemblyQuestLoader } } }; - span81[1] = new QuestStep(EInteractionType.Interact, 2007923u, new Vector3(280.96436f, 16.006714f, -641.413f), 614) + num2++; + span179[num2] = new QuestStep(EInteractionType.Interact, 2007923u, new Vector3(280.96436f, 16.006714f, -641.413f), 614) { Fly = true }; obj107.Steps = list179; reference131 = obj107; - ref QuestSequence reference132 = ref span80[3]; + num++; + ref QuestSequence reference132 = ref span176[num]; QuestSequence obj108 = new QuestSequence { Sequence = 3 @@ -162205,21 +195450,26 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 2007924u, new Vector3(284.13818f, 6.729187f, -792.6604f), 614) + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span180[index2] = new QuestStep(EInteractionType.Interact, 2007924u, new Vector3(284.13818f, 6.729187f, -792.6604f), 614) { Fly = true }; obj108.Steps = list180; reference132 = obj108; - ref QuestSequence reference133 = ref span80[4]; + num++; + ref QuestSequence reference133 = ref span176[num]; QuestSequence obj109 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list181)[0]; + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + ref QuestStep reference134 = ref span181[num2]; QuestStep obj110 = new QuestStep(EInteractionType.Interact, 1020228u, new Vector3(462.6687f, -3.4607835f, -799.31335f), 614) { Fly = true @@ -162227,7 +195477,9 @@ public static class AssemblyQuestLoader num3 = 1; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - CollectionsMarshal.AsSpan(list182)[0] = new DialogueChoice + Span span182 = CollectionsMarshal.AsSpan(list182); + num4 = 0; + span182[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA502_02520_Q1_000_081"), @@ -162237,7 +195489,8 @@ public static class AssemblyQuestLoader reference134 = obj110; obj109.Steps = list181; reference133 = obj109; - ref QuestSequence reference135 = ref span80[5]; + num++; + ref QuestSequence reference135 = ref span176[num]; QuestSequence obj111 = new QuestSequence { Sequence = 5 @@ -162245,8 +195498,9 @@ public static class AssemblyQuestLoader num2 = 2; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span82 = CollectionsMarshal.AsSpan(list183); - span82[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.4046f, 22.617083f, -726.5077f), 614) + Span span183 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span183[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.4046f, 22.617083f, -726.5077f), 614) { SkipConditions = new SkipConditions { @@ -162256,34 +195510,41 @@ public static class AssemblyQuestLoader } } }; - span82[1] = new QuestStep(EInteractionType.Interact, 1020230u, new Vector3(552.1476f, 23.140884f, -690.486f), 614) + index2++; + span183[index2] = new QuestStep(EInteractionType.Interact, 1020230u, new Vector3(552.1476f, 23.140884f, -690.486f), 614) { Fly = true }; obj111.Steps = list183; reference135 = obj111; - ref QuestSequence reference136 = ref span80[6]; + num++; + ref QuestSequence reference136 = ref span176[num]; QuestSequence obj112 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - ref QuestStep reference137 = ref CollectionsMarshal.AsSpan(list184)[0]; + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + ref QuestStep reference137 = ref span184[num2]; QuestStep obj113 = new QuestStep(EInteractionType.Combat, null, new Vector3(551.98566f, 23.177525f, -691.4329f), 614) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = 7561u; + num4 = 1; + List list185 = new List(num4); + CollectionsMarshal.SetCount(list185, num4); + Span span185 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span185[num3] = 7561u; obj113.KillEnemyDataIds = list185; reference137 = obj113; obj112.Steps = list184; reference136 = obj112; - ref QuestSequence reference138 = ref span80[7]; + num++; + ref QuestSequence reference138 = ref span176[num]; QuestSequence obj114 = new QuestSequence { Sequence = 7 @@ -162291,21 +195552,26 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1020273u, new Vector3(498.83264f, 11.856819f, -838.34595f), 614) + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.Interact, 1020273u, new Vector3(498.83264f, 11.856819f, -838.34595f), 614) { Fly = true }; obj114.Steps = list186; reference138 = obj114; - ref QuestSequence reference139 = ref span80[8]; + num++; + ref QuestSequence reference139 = ref span176[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020520u, new Vector3(235.85864f, 4.456162f, -382.8031f), 614) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020520u, new Vector3(235.85864f, 4.456162f, -382.8031f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; @@ -162318,13 +195584,16 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "JerryWester"; + Span span188 = CollectionsMarshal.AsSpan(list188); + index = 0; + span188[index] = "JerryWester"; questRoot22.Author = list188; - num = 4; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span83 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference140 = ref span83[0]; + index = 4; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + Span span189 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference140 = ref span189[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 @@ -162332,7 +195601,9 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020520u, new Vector3(235.85864f, 4.456162f, -382.8031f), 614) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020520u, new Vector3(235.85864f, 4.456162f, -382.8031f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce, SkipConditions = new SkipConditions @@ -162345,21 +195616,25 @@ public static class AssemblyQuestLoader }; obj116.Steps = list190; reference140 = obj116; - ref QuestSequence reference141 = ref span83[1]; + num++; + ref QuestSequence reference141 = ref span189[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1020521u, new Vector3(188.34204f, 5.069492f, -414.99963f), 614) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.Interact, 1020521u, new Vector3(188.34204f, 5.069492f, -414.99963f), 614) { Fly = true }; obj117.Steps = list191; reference141 = obj117; - ref QuestSequence reference142 = ref span83[2]; + num++; + ref QuestSequence reference142 = ref span189[num]; QuestSequence obj118 = new QuestSequence { Sequence = 2 @@ -162367,22 +195642,27 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1023092u, new Vector3(442.64893f, 58.867764f, -171.31305f), 614) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.Interact, 1023092u, new Vector3(442.64893f, 58.867764f, -171.31305f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj118.Steps = list192; reference142 = obj118; - ref QuestSequence reference143 = ref span83[3]; + num++; + ref QuestSequence reference143 = ref span189[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020232u, new Vector3(337.27014f, 31.034986f, 206.43921f), 614) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020232u, new Vector3(337.27014f, 31.034986f, 206.43921f), 614) { Fly = true }; @@ -162395,13 +195675,16 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "JerryWester"; + Span span194 = CollectionsMarshal.AsSpan(list194); + index = 0; + span194[index] = "JerryWester"; questRoot23.Author = list194; - num = 7; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span84 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference144 = ref span84[0]; + index = 7; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + Span span195 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference144 = ref span195[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -162409,19 +195692,23 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020234u, new Vector3(336.93433f, 31.12357f, 203.479f), 614); + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span196[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020234u, new Vector3(336.93433f, 31.12357f, 203.479f), 614); obj120.Steps = list196; reference144 = obj120; - ref QuestSequence reference145 = ref span84[1]; + num++; + ref QuestSequence reference145 = ref span195[num]; QuestSequence obj121 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - Span span85 = CollectionsMarshal.AsSpan(list197); - ref QuestStep reference146 = ref span85[0]; + index2 = 3; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + ref QuestStep reference146 = ref span197[num2]; QuestStep obj122 = new QuestStep(EInteractionType.Interact, 1019286u, new Vector3(233.60034f, 5.2518563f, -425.3758f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce @@ -162429,46 +195716,67 @@ public static class AssemblyQuestLoader num3 = 6; List list198 = new List(num3); CollectionsMarshal.SetCount(list198, num3); - Span span86 = CollectionsMarshal.AsSpan(list198); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span198 = CollectionsMarshal.AsSpan(list198); + num4 = 0; + span198[num4] = null; + num4++; + span198[num4] = null; + num4++; + span198[num4] = null; + num4++; + span198[num4] = null; + num4++; + span198[num4] = null; + num4++; + span198[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj122.CompletionQuestVariablesFlags = list198; reference146 = obj122; - ref QuestStep reference147 = ref span85[1]; + num2++; + ref QuestStep reference147 = ref span197[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1019287u, new Vector3(196.55139f, 5.1694055f, -410.66608f), 614); - num3 = 6; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - Span span87 = CollectionsMarshal.AsSpan(list199); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list199 = new List(num4); + CollectionsMarshal.SetCount(list199, num4); + Span span199 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span199[num3] = null; + num3++; + span199[num3] = null; + num3++; + span199[num3] = null; + num3++; + span199[num3] = null; + num3++; + span199[num3] = null; + num3++; + span199[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list199; reference147 = questStep25; - ref QuestStep reference148 = ref span85[2]; + num2++; + ref QuestStep reference148 = ref span197[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1019285u, new Vector3(195.63586f, 5.16971f, -437.2473f), 614); num3 = 6; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - Span span88 = CollectionsMarshal.AsSpan(list200); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span200 = CollectionsMarshal.AsSpan(list200); + num4 = 0; + span200[num4] = null; + num4++; + span200[num4] = null; + num4++; + span200[num4] = null; + num4++; + span200[num4] = null; + num4++; + span200[num4] = null; + num4++; + span200[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list200; reference148 = questStep26; obj121.Steps = list197; reference145 = obj121; - ref QuestSequence reference149 = ref span84[2]; + num++; + ref QuestSequence reference149 = ref span195[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 @@ -162476,19 +195784,23 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1023083u, new Vector3(174.73096f, 5.196835f, -432.578f), 614); + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.Interact, 1023083u, new Vector3(174.73096f, 5.196835f, -432.578f), 614); obj123.Steps = list201; reference149 = obj123; - ref QuestSequence reference150 = ref span84[3]; + num++; + ref QuestSequence reference150 = ref span195[num]; QuestSequence obj124 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - Span span89 = CollectionsMarshal.AsSpan(list202); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.10266f, 24.931192f, -494.28577f), 614) + index2 = 2; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.10266f, 24.931192f, -494.28577f), 614) { SkipConditions = new SkipConditions { @@ -162498,13 +195810,15 @@ public static class AssemblyQuestLoader } } }; - span89[1] = new QuestStep(EInteractionType.Interact, 1020237u, new Vector3(-74.784485f, 53.217514f, -522.301f), 614) + num2++; + span202[num2] = new QuestStep(EInteractionType.Interact, 1020237u, new Vector3(-74.784485f, 53.217514f, -522.301f), 614) { Fly = true }; obj124.Steps = list202; reference150 = obj124; - ref QuestSequence reference151 = ref span84[4]; + num++; + ref QuestSequence reference151 = ref span195[num]; QuestSequence obj125 = new QuestSequence { Sequence = 4 @@ -162512,27 +195826,33 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1020238u, new Vector3(-156.23712f, 53.217514f, -621.912f), 614) + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span203[index2] = new QuestStep(EInteractionType.Interact, 1020238u, new Vector3(-156.23712f, 53.217514f, -621.912f), 614) { Fly = true }; obj125.Steps = list203; reference151 = obj125; - ref QuestSequence reference152 = ref span84[5]; + num++; + ref QuestSequence reference152 = ref span195[num]; QuestSequence obj126 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 2007931u, new Vector3(-246.26538f, 53.20813f, -515.95337f), 614) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.Interact, 2007931u, new Vector3(-246.26538f, 53.20813f, -515.95337f), 614) { Fly = true }; obj126.Steps = list204; reference152 = obj126; - ref QuestSequence reference153 = ref span84[6]; + num++; + ref QuestSequence reference153 = ref span195[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -162540,7 +195860,9 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020239u, new Vector3(-291.43213f, 53.21751f, -614.313f), 614) + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020239u, new Vector3(-291.43213f, 53.21751f, -614.313f), 614) { Fly = true }; @@ -162553,24 +195875,30 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "JerryWester"; + Span span206 = CollectionsMarshal.AsSpan(list206); + index = 0; + span206[index] = "JerryWester"; questRoot24.Author = list206; - num = 4; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span90 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference154 = ref span90[0]; + index = 4; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + Span span207 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference154 = ref span207[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020239u, new Vector3(-291.43213f, 53.21751f, -614.313f), 614); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020239u, new Vector3(-291.43213f, 53.21751f, -614.313f), 614); obj128.Steps = list208; reference154 = obj128; - ref QuestSequence reference155 = ref span90[1]; + num++; + ref QuestSequence reference155 = ref span207[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -162578,66 +195906,91 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614) + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new QuestStep(EInteractionType.Interact, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj129.Steps = list209; reference155 = obj129; - ref QuestSequence reference156 = ref span90[2]; + num++; + ref QuestSequence reference156 = ref span207[num]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span91 = CollectionsMarshal.AsSpan(list210); - ref QuestStep reference157 = ref span91[0]; + index2 = 3; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + ref QuestStep reference157 = ref span210[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1020523u, new Vector3(177.203f, 5.169708f, -416.15936f), 614); - num3 = 6; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - Span span92 = CollectionsMarshal.AsSpan(list211); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list211 = new List(num4); + CollectionsMarshal.SetCount(list211, num4); + Span span211 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + span211[num3] = null; + num3++; + span211[num3] = null; + num3++; + span211[num3] = null; + num3++; + span211[num3] = null; + num3++; + span211[num3] = null; + num3++; + span211[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list211; reference157 = questStep27; - ref QuestStep reference158 = ref span91[1]; + num2++; + ref QuestStep reference158 = ref span210[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1020521u, new Vector3(188.34204f, 5.069492f, -414.99963f), 614); num3 = 6; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - Span span93 = CollectionsMarshal.AsSpan(list212); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span212 = CollectionsMarshal.AsSpan(list212); + num4 = 0; + span212[num4] = null; + num4++; + span212[num4] = null; + num4++; + span212[num4] = null; + num4++; + span212[num4] = null; + num4++; + span212[num4] = null; + num4++; + span212[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep28.CompletionQuestVariablesFlags = list212; reference158 = questStep28; - ref QuestStep reference159 = ref span91[2]; + num2++; + ref QuestStep reference159 = ref span210[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1020240u, new Vector3(234.11914f, 5.6966333f, -427.1153f), 614); - num3 = 6; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - Span span94 = CollectionsMarshal.AsSpan(list213); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list213 = new List(num4); + CollectionsMarshal.SetCount(list213, num4); + Span span213 = CollectionsMarshal.AsSpan(list213); + num3 = 0; + span213[num3] = null; + num3++; + span213[num3] = null; + num3++; + span213[num3] = null; + num3++; + span213[num3] = null; + num3++; + span213[num3] = null; + num3++; + span213[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep29.CompletionQuestVariablesFlags = list213; reference159 = questStep29; obj130.Steps = list210; reference156 = obj130; - ref QuestSequence reference160 = ref span90[3]; + num++; + ref QuestSequence reference160 = ref span207[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -162645,17 +195998,21 @@ public static class AssemblyQuestLoader num2 = 2; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span95 = CollectionsMarshal.AsSpan(list214); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.34885f, 5.16971f, -419.04416f), 614) + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.34885f, 5.16971f, -419.04416f), 614) { Fly = true }; - ref QuestStep reference161 = ref span95[1]; + index2++; + ref QuestStep reference161 = ref span214[index2]; QuestStep questStep30 = new QuestStep(EInteractionType.CompleteQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614); num3 = 1; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = new DialogueChoice + Span span215 = CollectionsMarshal.AsSpan(list215); + num4 = 0; + span215[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA505_02523_Q1_000_122"), @@ -162672,21 +196029,26 @@ public static class AssemblyQuestLoader num = 1; List list216 = new List(num); CollectionsMarshal.SetCount(list216, num); - CollectionsMarshal.AsSpan(list216)[0] = "JerryWester"; + Span span216 = CollectionsMarshal.AsSpan(list216); + index = 0; + span216[index] = "JerryWester"; questRoot25.Author = list216; - num = 7; - List list217 = new List(num); - CollectionsMarshal.SetCount(list217, num); - Span span96 = CollectionsMarshal.AsSpan(list217); - ref QuestSequence reference162 = ref span96[0]; + index = 7; + List list217 = new List(index); + CollectionsMarshal.SetCount(list217, index); + Span span217 = CollectionsMarshal.AsSpan(list217); + num = 0; + ref QuestSequence reference162 = ref span217[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614) + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span218[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce, SkipConditions = new SkipConditions @@ -162699,7 +196061,8 @@ public static class AssemblyQuestLoader }; obj132.Steps = list218; reference162 = obj132; - ref QuestSequence reference163 = ref span96[1]; + num++; + ref QuestSequence reference163 = ref span217[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -162707,8 +196070,9 @@ public static class AssemblyQuestLoader num2 = 3; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span97 = CollectionsMarshal.AsSpan(list219); - span97[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.10266f, 24.931192f, -494.28577f), 614) + Span span219 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span219[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.10266f, 24.931192f, -494.28577f), 614) { SkipConditions = new SkipConditions { @@ -162718,7 +196082,8 @@ public static class AssemblyQuestLoader } } }; - span97[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(77.23522f, 32.751614f, -517.566f), 614) + index2++; + span219[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(77.23522f, 32.751614f, -517.566f), 614) { SkipConditions = new SkipConditions { @@ -162728,27 +196093,32 @@ public static class AssemblyQuestLoader } } }; - span97[2] = new QuestStep(EInteractionType.Interact, 2007932u, new Vector3(-162.70697f, 53.20813f, -558.80066f), 614) + index2++; + span219[index2] = new QuestStep(EInteractionType.Interact, 2007932u, new Vector3(-162.70697f, 53.20813f, -558.80066f), 614) { Fly = true }; obj133.Steps = list219; reference163 = obj133; - ref QuestSequence reference164 = ref span96[2]; + num++; + ref QuestSequence reference164 = ref span217[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1020244u, new Vector3(-241.99286f, 53.217506f, -653.193f), 614) + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span220[num2] = new QuestStep(EInteractionType.Interact, 1020244u, new Vector3(-241.99286f, 53.217506f, -653.193f), 614) { StopDistance = 5f }; obj134.Steps = list220; reference164 = obj134; - ref QuestSequence reference165 = ref span96[3]; + num++; + ref QuestSequence reference165 = ref span217[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -162756,23 +196126,28 @@ public static class AssemblyQuestLoader num2 = 2; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span98 = CollectionsMarshal.AsSpan(list221); - span98[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-364.42896f, 1.2300289f, -363.52563f), 614) + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span221[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-364.42896f, 1.2300289f, -363.52563f), 614) { Fly = true }; - span98[1] = new QuestStep(EInteractionType.Interact, 1020247u, new Vector3(-366.3844f, 1.2300524f, -362.5086f), 614); + index2++; + span221[index2] = new QuestStep(EInteractionType.Interact, 1020247u, new Vector3(-366.3844f, 1.2300524f, -362.5086f), 614); obj135.Steps = list221; reference165 = obj135; - ref QuestSequence reference166 = ref span96[4]; + num++; + ref QuestSequence reference166 = ref span217[num]; QuestSequence obj136 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Duty, null, null, 614) + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + Span span222 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span222[num2] = new QuestStep(EInteractionType.Duty, null, null, 614) { DutyOptions = new DutyOptions { @@ -162782,11 +196157,13 @@ public static class AssemblyQuestLoader }; obj136.Steps = list222; reference166 = obj136; - span96[5] = new QuestSequence + num++; + span217[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference167 = ref span96[6]; + num++; + ref QuestSequence reference167 = ref span217[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -162794,7 +196171,9 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020248u, new Vector3(-390.28003f, 30.646172f, -455.86328f), 614) + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span223[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020248u, new Vector3(-390.28003f, 30.646172f, -455.86328f), 614) { StopDistance = 7f }; @@ -162807,27 +196186,33 @@ public static class AssemblyQuestLoader num = 1; List list224 = new List(num); CollectionsMarshal.SetCount(list224, num); - CollectionsMarshal.AsSpan(list224)[0] = "JerryWester"; + Span span224 = CollectionsMarshal.AsSpan(list224); + index = 0; + span224[index] = "JerryWester"; questRoot26.Author = list224; - num = 6; - List list225 = new List(num); - CollectionsMarshal.SetCount(list225, num); - Span span99 = CollectionsMarshal.AsSpan(list225); - ref QuestSequence reference168 = ref span99[0]; + index = 6; + List list225 = new List(index); + CollectionsMarshal.SetCount(list225, index); + Span span225 = CollectionsMarshal.AsSpan(list225); + num = 0; + ref QuestSequence reference168 = ref span225[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020248u, new Vector3(-390.28003f, 30.646172f, -455.86328f), 614) + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + Span span226 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span226[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020248u, new Vector3(-390.28003f, 30.646172f, -455.86328f), 614) { StopDistance = 7f }; obj138.Steps = list226; reference168 = obj138; - ref QuestSequence reference169 = ref span99[1]; + num++; + ref QuestSequence reference169 = ref span225[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -162835,15 +196220,19 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list227)[0]; + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + ref QuestStep reference170 = ref span227[index2]; QuestStep obj140 = new QuestStep(EInteractionType.Interact, 1020255u, new Vector3(-349.05017f, 1.2300365f, -343.86212f), 614) { Fly = true }; - num3 = 1; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - CollectionsMarshal.AsSpan(list228)[0] = new DialogueChoice + num4 = 1; + List list228 = new List(num4); + CollectionsMarshal.SetCount(list228, num4); + Span span228 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span228[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA507_02525_Q1_000_092"), @@ -162853,27 +196242,32 @@ public static class AssemblyQuestLoader reference170 = obj140; obj139.Steps = list227; reference169 = obj139; - span99[2] = new QuestSequence + num++; + span225[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference171 = ref span99[3]; + num++; + ref QuestSequence reference171 = ref span225[num]; QuestSequence obj141 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - Span span100 = CollectionsMarshal.AsSpan(list229); - span100[0] = new QuestStep(EInteractionType.Interact, 1020644u, new Vector3(147.4784f, -4.1787133f, 50.5531f), 682) + index2 = 2; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + Span span229 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span229[num2] = new QuestStep(EInteractionType.Interact, 1020644u, new Vector3(147.4784f, -4.1787133f, 50.5531f), 682) { TargetTerritoryId = (ushort)614 }; - span100[1] = new QuestStep(EInteractionType.Interact, 1020258u, new Vector3(-462.39417f, 1.2300053f, 546.1356f), 614); + num2++; + span229[num2] = new QuestStep(EInteractionType.Interact, 1020258u, new Vector3(-462.39417f, 1.2300053f, 546.1356f), 614); obj141.Steps = list229; reference171 = obj141; - ref QuestSequence reference172 = ref span99[4]; + num++; + ref QuestSequence reference172 = ref span225[num]; QuestSequence obj142 = new QuestSequence { Sequence = 4 @@ -162881,7 +196275,9 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - ref QuestStep reference173 = ref CollectionsMarshal.AsSpan(list230)[0]; + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + ref QuestStep reference173 = ref span230[index2]; QuestStep obj143 = new QuestStep(EInteractionType.Interact, 1020263u, new Vector3(-472.12946f, 1.2306242f, 557.09155f), 614) { TargetTerritoryId = (ushort)628 @@ -162889,7 +196285,9 @@ public static class AssemblyQuestLoader num3 = 1; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - CollectionsMarshal.AsSpan(list231)[0] = new DialogueChoice + Span span231 = CollectionsMarshal.AsSpan(list231); + num4 = 0; + span231[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA507_02525_Q2_000_191"), @@ -162899,15 +196297,18 @@ public static class AssemblyQuestLoader reference173 = obj143; obj142.Steps = list230; reference172 = obj142; - ref QuestSequence reference174 = ref span99[5]; + num++; + ref QuestSequence reference174 = ref span225[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020265u, new Vector3(-175.92126f, -7.0001082f, 53.81848f), 628) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span232[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020265u, new Vector3(-175.92126f, -7.0001082f, 53.81848f), 628) { StopDistance = 4f }; @@ -162920,13 +196321,16 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "JerryWester"; + Span span233 = CollectionsMarshal.AsSpan(list233); + index = 0; + span233[index] = "JerryWester"; questRoot27.Author = list233; - num = 4; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span101 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference175 = ref span101[0]; + index = 4; + List list234 = new List(index); + CollectionsMarshal.SetCount(list234, index); + Span span234 = CollectionsMarshal.AsSpan(list234); + num = 0; + ref QuestSequence reference175 = ref span234[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 @@ -162934,21 +196338,26 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020267u, new Vector3(-171.55719f, -7.000024f, 55.527588f), 628) + Span span235 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span235[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020267u, new Vector3(-171.55719f, -7.000024f, 55.527588f), 628) { StopDistance = 7f }; obj145.Steps = list235; reference175 = obj145; - ref QuestSequence reference176 = ref span101[1]; + num++; + ref QuestSequence reference176 = ref span234[num]; QuestSequence obj146 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -162960,7 +196369,8 @@ public static class AssemblyQuestLoader }; obj146.Steps = list236; reference176 = obj146; - ref QuestSequence reference177 = ref span101[2]; + num++; + ref QuestSequence reference177 = ref span234[num]; QuestSequence obj147 = new QuestSequence { Sequence = 2 @@ -162968,12 +196378,14 @@ public static class AssemblyQuestLoader num2 = 2; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span102 = CollectionsMarshal.AsSpan(list237); - span102[0] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span237[index2] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) { TargetTerritoryId = (ushort)628 }; - span102[1] = new QuestStep(EInteractionType.Interact, 1020270u, new Vector3(-88.91437f, -6.999999f, -56.26001f), 628) + index2++; + span237[index2] = new QuestStep(EInteractionType.Interact, 1020270u, new Vector3(-88.91437f, -6.999999f, -56.26001f), 628) { TargetTerritoryId = (ushort)129, AethernetShortcut = new AethernetShortcut @@ -162984,15 +196396,18 @@ public static class AssemblyQuestLoader }; obj147.Steps = list237; reference177 = obj147; - ref QuestSequence reference178 = ref span101[3]; + num++; + ref QuestSequence reference178 = ref span234[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020441u, new Vector3(-355.58105f, 8.000015f, 40.787354f), 129); + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020441u, new Vector3(-355.58105f, 8.000015f, 40.787354f), 129); obj148.Steps = list238; reference178 = obj148; questRoot27.QuestSequence = list234; @@ -163002,13 +196417,16 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - CollectionsMarshal.AsSpan(list239)[0] = "JerryWester"; + Span span239 = CollectionsMarshal.AsSpan(list239); + index = 0; + span239[index] = "JerryWester"; questRoot28.Author = list239; - num = 4; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - Span span103 = CollectionsMarshal.AsSpan(list240); - ref QuestSequence reference179 = ref span103[0]; + index = 4; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + Span span240 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference179 = ref span240[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -163016,27 +196434,33 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020439u, new Vector3(-355.55048f, 7.9999094f, 38.712036f), 129) + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020439u, new Vector3(-355.55048f, 7.9999094f, 38.712036f), 129) { StopDistance = 6f }; obj149.Steps = list241; reference179 = obj149; - ref QuestSequence reference180 = ref span103[1]; + num++; + ref QuestSequence reference180 = ref span240[num]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1020553u, new Vector3(-612.66504f, 130.14716f, -480.36932f), 612) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.Interact, 1020553u, new Vector3(-612.66504f, 130.14716f, -480.36932f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj150.Steps = list242; reference180 = obj150; - ref QuestSequence reference181 = ref span103[2]; + num++; + ref QuestSequence reference181 = ref span240[num]; QuestSequence obj151 = new QuestSequence { Sequence = 2 @@ -163044,18 +196468,23 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1020401u, new Vector3(-473.16705f, 98.582886f, -349.05017f), 612); + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span243[index2] = new QuestStep(EInteractionType.Interact, 1020401u, new Vector3(-473.16705f, 98.582886f, -349.05017f), 612); obj151.Steps = list243; reference181 = obj151; - ref QuestSequence reference182 = ref span103[3]; + num++; + ref QuestSequence reference182 = ref span240[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020354u, new Vector3(-605.2186f, 130f, -506.2486f), 612); + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020354u, new Vector3(-605.2186f, 130f, -506.2486f), 612); obj152.Steps = list244; reference182 = obj152; questRoot28.QuestSequence = list240; @@ -163065,13 +196494,16 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "JerryWester"; + Span span245 = CollectionsMarshal.AsSpan(list245); + index = 0; + span245[index] = "JerryWester"; questRoot29.Author = list245; - num = 6; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span104 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference183 = ref span104[0]; + index = 6; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + Span span246 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference183 = ref span246[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 @@ -163079,7 +196511,9 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -163093,15 +196527,18 @@ public static class AssemblyQuestLoader }; obj153.Steps = list247; reference183 = obj153; - ref QuestSequence reference184 = ref span104[1]; + num++; + ref QuestSequence reference184 = ref span246[num]; QuestSequence obj154 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.Interact, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635) { AethernetShortcut = new AethernetShortcut { @@ -163111,7 +196548,8 @@ public static class AssemblyQuestLoader }; obj154.Steps = list248; reference184 = obj154; - ref QuestSequence reference185 = ref span104[2]; + num++; + ref QuestSequence reference185 = ref span246[num]; QuestSequence obj155 = new QuestSequence { Sequence = 2 @@ -163119,60 +196557,84 @@ public static class AssemblyQuestLoader num2 = 3; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span105 = CollectionsMarshal.AsSpan(list249); - ref QuestStep reference186 = ref span105[0]; + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + ref QuestStep reference186 = ref span249[index2]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1023762u, new Vector3(133.86731f, 0.65204144f, 8.926453f), 635); - num3 = 6; - List list250 = new List(num3); - CollectionsMarshal.SetCount(list250, num3); - Span span106 = CollectionsMarshal.AsSpan(list250); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list250 = new List(num4); + CollectionsMarshal.SetCount(list250, num4); + Span span250 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + span250[num3] = null; + num3++; + span250[num3] = null; + num3++; + span250[num3] = null; + num3++; + span250[num3] = null; + num3++; + span250[num3] = null; + num3++; + span250[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep31.CompletionQuestVariablesFlags = list250; reference186 = questStep31; - ref QuestStep reference187 = ref span105[1]; + index2++; + ref QuestStep reference187 = ref span249[index2]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 1023298u, new Vector3(22.354431f, -0.33829167f, 3.7384033f), 635); num3 = 6; List list251 = new List(num3); CollectionsMarshal.SetCount(list251, num3); - Span span107 = CollectionsMarshal.AsSpan(list251); - span107[0] = null; - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span251 = CollectionsMarshal.AsSpan(list251); + num4 = 0; + span251[num4] = null; + num4++; + span251[num4] = null; + num4++; + span251[num4] = null; + num4++; + span251[num4] = null; + num4++; + span251[num4] = null; + num4++; + span251[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep32.CompletionQuestVariablesFlags = list251; reference187 = questStep32; - ref QuestStep reference188 = ref span105[2]; + index2++; + ref QuestStep reference188 = ref span249[index2]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1023763u, new Vector3(13.504211f, -0.45803526f, 121.87378f), 635); - num3 = 6; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - Span span108 = CollectionsMarshal.AsSpan(list252); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list252 = new List(num4); + CollectionsMarshal.SetCount(list252, num4); + Span span252 = CollectionsMarshal.AsSpan(list252); + num3 = 0; + span252[num3] = null; + num3++; + span252[num3] = null; + num3++; + span252[num3] = null; + num3++; + span252[num3] = null; + num3++; + span252[num3] = null; + num3++; + span252[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep33.CompletionQuestVariablesFlags = list252; reference188 = questStep33; obj155.Steps = list249; reference185 = obj155; - ref QuestSequence reference189 = ref span104[3]; + num++; + ref QuestSequence reference189 = ref span246[num]; QuestSequence obj156 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635) + index2 = 1; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + Span span253 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span253[num2] = new QuestStep(EInteractionType.Interact, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635) { AethernetShortcut = new AethernetShortcut { @@ -163182,7 +196644,8 @@ public static class AssemblyQuestLoader }; obj156.Steps = list253; reference189 = obj156; - ref QuestSequence reference190 = ref span104[4]; + num++; + ref QuestSequence reference190 = ref span246[num]; QuestSequence obj157 = new QuestSequence { Sequence = 4 @@ -163190,7 +196653,9 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020559u, new Vector3(-188.86096f, 43.219845f, -149.58423f), 612) + Span span254 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span254[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020559u, new Vector3(-188.86096f, 43.219845f, -149.58423f), 612) { AethernetShortcut = new AethernetShortcut { @@ -163204,15 +196669,18 @@ public static class AssemblyQuestLoader }; obj157.Steps = list254; reference190 = obj157; - ref QuestSequence reference191 = ref span104[5]; + num++; + ref QuestSequence reference191 = ref span246[num]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020567u, new Vector3(-91.233765f, 50.004436f, 187.85376f), 612); + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span255 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span255[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020567u, new Vector3(-91.233765f, 50.004436f, 187.85376f), 612); obj158.Steps = list255; reference191 = obj158; questRoot29.QuestSequence = list246; @@ -163222,13 +196690,16 @@ public static class AssemblyQuestLoader num = 1; List list256 = new List(num); CollectionsMarshal.SetCount(list256, num); - CollectionsMarshal.AsSpan(list256)[0] = "JerryWester"; + Span span256 = CollectionsMarshal.AsSpan(list256); + index = 0; + span256[index] = "JerryWester"; questRoot30.Author = list256; - num = 4; - List list257 = new List(num); - CollectionsMarshal.SetCount(list257, num); - Span span109 = CollectionsMarshal.AsSpan(list257); - ref QuestSequence reference192 = ref span109[0]; + index = 4; + List list257 = new List(index); + CollectionsMarshal.SetCount(list257, index); + Span span257 = CollectionsMarshal.AsSpan(list257); + num = 0; + ref QuestSequence reference192 = ref span257[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 @@ -163236,22 +196707,26 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020568u, new Vector3(-92.42395f, 50.004436f, 185.6565f), 612) + Span span258 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span258[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020568u, new Vector3(-92.42395f, 50.004436f, 185.6565f), 612) { StopDistance = 7f }; obj159.Steps = list258; reference192 = obj159; - ref QuestSequence reference193 = ref span109[1]; + num++; + ref QuestSequence reference193 = ref span257[num]; QuestSequence obj160 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - Span span110 = CollectionsMarshal.AsSpan(list259); - ref QuestStep reference194 = ref span110[0]; + index2 = 2; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + Span span259 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + ref QuestStep reference194 = ref span259[num2]; QuestStep obj161 = new QuestStep(EInteractionType.Combat, null, new Vector3(-244.85674f, 52.147297f, 25.87217f), 612) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -163259,21 +196734,30 @@ public static class AssemblyQuestLoader num3 = 1; List list260 = new List(num3); CollectionsMarshal.SetCount(list260, num3); - CollectionsMarshal.AsSpan(list260)[0] = 8036u; + Span span260 = CollectionsMarshal.AsSpan(list260); + num4 = 0; + span260[num4] = 8036u; obj161.KillEnemyDataIds = list260; - num3 = 6; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - Span span111 = CollectionsMarshal.AsSpan(list261); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list261 = new List(num4); + CollectionsMarshal.SetCount(list261, num4); + Span span261 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span261[num3] = null; + num3++; + span261[num3] = null; + num3++; + span261[num3] = null; + num3++; + span261[num3] = null; + num3++; + span261[num3] = null; + num3++; + span261[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj161.CompletionQuestVariablesFlags = list261; reference194 = obj161; - ref QuestStep reference195 = ref span110[1]; + num2++; + ref QuestStep reference195 = ref span259[num2]; QuestStep obj162 = new QuestStep(EInteractionType.Combat, null, new Vector3(-506.97742f, 56.85329f, 174.75038f), 612) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -163281,25 +196765,34 @@ public static class AssemblyQuestLoader num3 = 2; List list262 = new List(num3); CollectionsMarshal.SetCount(list262, num3); - Span span112 = CollectionsMarshal.AsSpan(list262); - span112[0] = 8044u; - span112[1] = 8050u; + Span span262 = CollectionsMarshal.AsSpan(list262); + num4 = 0; + span262[num4] = 8044u; + num4++; + span262[num4] = 8050u; obj162.KillEnemyDataIds = list262; - num3 = 6; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - Span span113 = CollectionsMarshal.AsSpan(list263); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list263 = new List(num4); + CollectionsMarshal.SetCount(list263, num4); + Span span263 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span263[num3] = null; + num3++; + span263[num3] = null; + num3++; + span263[num3] = null; + num3++; + span263[num3] = null; + num3++; + span263[num3] = null; + num3++; + span263[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj162.CompletionQuestVariablesFlags = list263; reference195 = obj162; obj160.Steps = list259; reference193 = obj160; - ref QuestSequence reference196 = ref span109[2]; + num++; + ref QuestSequence reference196 = ref span257[num]; QuestSequence obj163 = new QuestSequence { Sequence = 2 @@ -163307,18 +196800,23 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1020574u, new Vector3(-386.28217f, 54.221977f, -27.17633f), 612); + Span span264 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span264[index2] = new QuestStep(EInteractionType.Interact, 1020574u, new Vector3(-386.28217f, 54.221977f, -27.17633f), 612); obj163.Steps = list264; reference196 = obj163; - ref QuestSequence reference197 = ref span109[3]; + num++; + ref QuestSequence reference197 = ref span257[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020568u, new Vector3(-92.42395f, 50.004436f, 185.6565f), 612); + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + Span span265 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span265[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020568u, new Vector3(-92.42395f, 50.004436f, 185.6565f), 612); obj164.Steps = list265; reference197 = obj164; questRoot30.QuestSequence = list257; @@ -163328,13 +196826,16 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "JerryWester"; + Span span266 = CollectionsMarshal.AsSpan(list266); + index = 0; + span266[index] = "JerryWester"; questRoot31.Author = list266; - num = 4; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span114 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference198 = ref span114[0]; + index = 4; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + Span span267 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference198 = ref span267[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 @@ -163342,18 +196843,23 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020568u, new Vector3(-92.42395f, 50.004436f, 185.6565f), 612); + Span span268 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span268[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020568u, new Vector3(-92.42395f, 50.004436f, 185.6565f), 612); obj165.Steps = list268; reference198 = obj165; - ref QuestSequence reference199 = ref span114[1]; + num++; + ref QuestSequence reference199 = ref span267[num]; QuestSequence obj166 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list269)[0]; + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + Span span269 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + ref QuestStep reference200 = ref span269[num2]; QuestStep obj167 = new QuestStep(EInteractionType.Interact, 1020573u, new Vector3(-90.68439f, 50.00444f, 210.46765f), 612) { StopDistance = 7f, @@ -163362,7 +196868,9 @@ public static class AssemblyQuestLoader num3 = 1; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - CollectionsMarshal.AsSpan(list270)[0] = new DialogueChoice + Span span270 = CollectionsMarshal.AsSpan(list270); + num4 = 0; + span270[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDA604_02530_WARP_YESNO_TITLE") @@ -163371,7 +196879,8 @@ public static class AssemblyQuestLoader reference200 = obj167; obj166.Steps = list269; reference199 = obj166; - ref QuestSequence reference201 = ref span114[2]; + num++; + ref QuestSequence reference201 = ref span267[num]; QuestSequence obj168 = new QuestSequence { Sequence = 2 @@ -163379,23 +196888,28 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1022327u, new Vector3(374.89893f, 44.793087f, 273.7621f), 612); + Span span271 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span271[index2] = new QuestStep(EInteractionType.Interact, 1022327u, new Vector3(374.89893f, 44.793087f, 273.7621f), 612); obj168.Steps = list271; reference201 = obj168; - ref QuestSequence reference202 = ref span114[3]; + num++; + ref QuestSequence reference202 = ref span267[num]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - Span span115 = CollectionsMarshal.AsSpan(list272); - span115[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 612) + index2 = 2; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + Span span272 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span272[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 612) { Aetheryte = EAetheryteLocation.FringesPeeringStones }; - span115[1] = new QuestStep(EInteractionType.CompleteQuest, 1020578u, new Vector3(426.56592f, 114.54993f, 221.7898f), 612); + num2++; + span272[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020578u, new Vector3(426.56592f, 114.54993f, 221.7898f), 612); obj169.Steps = list272; reference202 = obj169; questRoot31.QuestSequence = list267; @@ -163405,13 +196919,16 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "JerryWester"; + Span span273 = CollectionsMarshal.AsSpan(list273); + index = 0; + span273[index] = "JerryWester"; questRoot32.Author = list273; - num = 3; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span116 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference203 = ref span116[0]; + index = 3; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + Span span274 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference203 = ref span274[num]; QuestSequence obj170 = new QuestSequence { Sequence = 0 @@ -163419,35 +196936,43 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020580u, new Vector3(451.52966f, 114.37317f, 236.40796f), 612); + Span span275 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span275[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020580u, new Vector3(451.52966f, 114.37317f, 236.40796f), 612); obj170.Steps = list275; reference203 = obj170; - ref QuestSequence reference204 = ref span116[1]; + num++; + ref QuestSequence reference204 = ref span274[num]; QuestSequence obj171 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - Span span117 = CollectionsMarshal.AsSpan(list276); - span117[0] = new QuestStep(EInteractionType.AcceptQuest, 1020807u, new Vector3(433.9818f, 114.48304f, 233.29517f), 612) + index2 = 4; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + Span span276 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + span276[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020807u, new Vector3(433.9818f, 114.48304f, 233.29517f), 612) { PickUpQuestId = new QuestId(2821) }; - span117[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007971u, new Vector3(322.59094f, 88.97534f, 10.513428f), 612) + num2++; + span276[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007971u, new Vector3(322.59094f, 88.97534f, 10.513428f), 612) { AetherCurrentId = 2818139u }; - span117[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(328.29312f, 79.1903f, 2.052349f), 612) + num2++; + span276[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(328.29312f, 79.1903f, 2.052349f), 612) { DisableNavmesh = true, Mount = true }; - span117[3] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612); + num2++; + span276[num2] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612); obj171.Steps = list276; reference204 = obj171; - ref QuestSequence reference205 = ref span116[2]; + num++; + ref QuestSequence reference205 = ref span274[num]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue @@ -163455,7 +196980,9 @@ public static class AssemblyQuestLoader num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020827u, new Vector3(334.1267f, 82.94969f, -101.27417f), 612) + Span span277 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + span277[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020827u, new Vector3(334.1267f, 82.94969f, -101.27417f), 612) { StopDistance = 7f }; @@ -163468,27 +196995,33 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - CollectionsMarshal.AsSpan(list278)[0] = "JerryWester"; + Span span278 = CollectionsMarshal.AsSpan(list278); + index = 0; + span278[index] = "JerryWester"; questRoot33.Author = list278; - num = 8; - List list279 = new List(num); - CollectionsMarshal.SetCount(list279, num); - Span span118 = CollectionsMarshal.AsSpan(list279); - ref QuestSequence reference206 = ref span118[0]; + index = 8; + List list279 = new List(index); + CollectionsMarshal.SetCount(list279, index); + Span span279 = CollectionsMarshal.AsSpan(list279); + num = 0; + ref QuestSequence reference206 = ref span279[num]; QuestSequence obj173 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020827u, new Vector3(334.1267f, 82.94969f, -101.27417f), 612) + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span280 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span280[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020827u, new Vector3(334.1267f, 82.94969f, -101.27417f), 612) { StopDistance = 7f }; obj173.Steps = list280; reference206 = obj173; - ref QuestSequence reference207 = ref span118[1]; + num++; + ref QuestSequence reference207 = ref span279[num]; QuestSequence obj174 = new QuestSequence { Sequence = 1 @@ -163496,35 +197029,42 @@ public static class AssemblyQuestLoader num2 = 2; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span119 = CollectionsMarshal.AsSpan(list281); - span119[0] = new QuestStep(EInteractionType.AcceptQuest, 1020821u, new Vector3(276.7223f, 76.853935f, -23.51416f), 612) + Span span281 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span281[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020821u, new Vector3(276.7223f, 76.853935f, -23.51416f), 612) { PickUpQuestId = new QuestId(2816) }; - span119[1] = new QuestStep(EInteractionType.Interact, 1020589u, new Vector3(510.79578f, 122.30697f, -239.643f), 612); + index2++; + span281[index2] = new QuestStep(EInteractionType.Interact, 1020589u, new Vector3(510.79578f, 122.30697f, -239.643f), 612); obj174.Steps = list281; reference207 = obj174; - ref QuestSequence reference208 = ref span118[2]; + num++; + ref QuestSequence reference208 = ref span279[num]; QuestSequence obj175 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - Span span120 = CollectionsMarshal.AsSpan(list282); - span120[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007972u, new Vector3(743.00745f, 180.98718f, -214.06885f), 612) + index2 = 2; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + Span span282 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span282[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007972u, new Vector3(743.00745f, 180.98718f, -214.06885f), 612) { AetherCurrentId = 2818140u }; - span120[1] = new QuestStep(EInteractionType.Interact, 2008200u, new Vector3(804.5929f, 179.70544f, -304.70746f), 612); + num2++; + span282[num2] = new QuestStep(EInteractionType.Interact, 2008200u, new Vector3(804.5929f, 179.70544f, -304.70746f), 612); obj175.Steps = list282; reference208 = obj175; - span118[3] = new QuestSequence + num++; + span279[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference209 = ref span118[4]; + num++; + ref QuestSequence reference209 = ref span279[num]; QuestSequence obj176 = new QuestSequence { Sequence = 4 @@ -163532,12 +197072,16 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - ref QuestStep reference210 = ref CollectionsMarshal.AsSpan(list283)[0]; + Span span283 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + ref QuestStep reference210 = ref span283[index2]; QuestStep questStep34 = new QuestStep(EInteractionType.Interact, 1020593u, new Vector3(2.3651123f, -5.169945f, -13.260071f), 683); - num3 = 1; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = new DialogueChoice + num4 = 1; + List list284 = new List(num4); + CollectionsMarshal.SetCount(list284, num4); + Span span284 = CollectionsMarshal.AsSpan(list284); + num3 = 0; + span284[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA606_02532_Q1_000_150"), @@ -163547,15 +197091,18 @@ public static class AssemblyQuestLoader reference210 = questStep34; obj176.Steps = list283; reference209 = obj176; - ref QuestSequence reference211 = ref span118[5]; + num++; + ref QuestSequence reference211 = ref span279[num]; QuestSequence obj177 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Duty, null, null, 683) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span285 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span285[num2] = new QuestStep(EInteractionType.Duty, null, null, 683) { DutyOptions = new DutyOptions { @@ -163564,11 +197111,13 @@ public static class AssemblyQuestLoader }; obj177.Steps = list285; reference211 = obj177; - span118[6] = new QuestSequence + num++; + span279[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference212 = ref span118[7]; + num++; + ref QuestSequence reference212 = ref span279[num]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue @@ -163576,7 +197125,9 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020592u, new Vector3(509.39185f, 122.137985f, -242.14551f), 612) + Span span286 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + span286[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020592u, new Vector3(509.39185f, 122.137985f, -242.14551f), 612) { StopDistance = 5f }; @@ -163589,27 +197140,33 @@ public static class AssemblyQuestLoader num = 1; List list287 = new List(num); CollectionsMarshal.SetCount(list287, num); - CollectionsMarshal.AsSpan(list287)[0] = "JerryWester"; + Span span287 = CollectionsMarshal.AsSpan(list287); + index = 0; + span287[index] = "JerryWester"; questRoot34.Author = list287; - num = 5; - List list288 = new List(num); - CollectionsMarshal.SetCount(list288, num); - Span span121 = CollectionsMarshal.AsSpan(list288); - ref QuestSequence reference213 = ref span121[0]; + index = 5; + List list288 = new List(index); + CollectionsMarshal.SetCount(list288, index); + Span span288 = CollectionsMarshal.AsSpan(list288); + num = 0; + ref QuestSequence reference213 = ref span288[num]; QuestSequence obj179 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020589u, new Vector3(510.79578f, 122.30697f, -239.643f), 612) + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + Span span289 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span289[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020589u, new Vector3(510.79578f, 122.30697f, -239.643f), 612) { StopDistance = 7f }; obj179.Steps = list289; reference213 = obj179; - ref QuestSequence reference214 = ref span121[1]; + num++; + ref QuestSequence reference214 = ref span288[num]; QuestSequence obj180 = new QuestSequence { Sequence = 1 @@ -163617,24 +197174,30 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612); + Span span290 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span290[index2] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612); obj180.Steps = list290; reference214 = obj180; - ref QuestSequence reference215 = ref span121[2]; + num++; + ref QuestSequence reference215 = ref span288[num]; QuestSequence obj181 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.Interact, 1020578u, new Vector3(426.56592f, 114.54993f, 221.7898f), 612) + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + Span span291 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span291[num2] = new QuestStep(EInteractionType.Interact, 1020578u, new Vector3(426.56592f, 114.54993f, 221.7898f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj181.Steps = list291; reference215 = obj181; - ref QuestSequence reference216 = ref span121[3]; + num++; + ref QuestSequence reference216 = ref span288[num]; QuestSequence obj182 = new QuestSequence { Sequence = 3 @@ -163642,18 +197205,23 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 1020578u, new Vector3(426.56592f, 114.54993f, 221.7898f), 612); + Span span292 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span292[index2] = new QuestStep(EInteractionType.Interact, 1020578u, new Vector3(426.56592f, 114.54993f, 221.7898f), 612); obj182.Steps = list292; reference216 = obj182; - ref QuestSequence reference217 = ref span121[4]; + num++; + ref QuestSequence reference217 = ref span288[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020596u, new Vector3(424.73486f, 114.60925f, 222.18652f), 612); + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + Span span293 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span293[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020596u, new Vector3(424.73486f, 114.60925f, 222.18652f), 612); obj183.Steps = list293; reference217 = obj183; questRoot34.QuestSequence = list288; @@ -163663,13 +197231,16 @@ public static class AssemblyQuestLoader num = 1; List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - CollectionsMarshal.AsSpan(list294)[0] = "JerryWester"; + Span span294 = CollectionsMarshal.AsSpan(list294); + index = 0; + span294[index] = "JerryWester"; questRoot35.Author = list294; - num = 5; - List list295 = new List(num); - CollectionsMarshal.SetCount(list295, num); - Span span122 = CollectionsMarshal.AsSpan(list295); - ref QuestSequence reference218 = ref span122[0]; + index = 5; + List list295 = new List(index); + CollectionsMarshal.SetCount(list295, index); + Span span295 = CollectionsMarshal.AsSpan(list295); + num = 0; + ref QuestSequence reference218 = ref span295[num]; QuestSequence obj184 = new QuestSequence { Sequence = 0 @@ -163677,7 +197248,9 @@ public static class AssemblyQuestLoader num2 = 1; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020596u, new Vector3(424.73486f, 114.60925f, 222.18652f), 612) + Span span296 = CollectionsMarshal.AsSpan(list296); + index2 = 0; + span296[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020596u, new Vector3(424.73486f, 114.60925f, 222.18652f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones, SkipConditions = new SkipConditions @@ -163690,16 +197263,18 @@ public static class AssemblyQuestLoader }; obj184.Steps = list296; reference218 = obj184; - ref QuestSequence reference219 = ref span122[1]; + num++; + ref QuestSequence reference219 = ref span295[num]; QuestSequence obj185 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - Span span123 = CollectionsMarshal.AsSpan(list297); - span123[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(404.45657f, 73.72764f, 204.51974f), 612) + index2 = 2; + List list297 = new List(index2); + CollectionsMarshal.SetCount(list297, index2); + Span span297 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + span297[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(404.45657f, 73.72764f, 204.51974f), 612) { SkipConditions = new SkipConditions { @@ -163709,17 +197284,20 @@ public static class AssemblyQuestLoader } } }; - span123[1] = new QuestStep(EInteractionType.Interact, 1022334u, new Vector3(845.8839f, 86.0183f, 361.9287f), 612) + num2++; + span297[num2] = new QuestStep(EInteractionType.Interact, 1022334u, new Vector3(845.8839f, 86.0183f, 361.9287f), 612) { Fly = true }; obj185.Steps = list297; reference219 = obj185; - span122[2] = new QuestSequence + num++; + span295[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference220 = ref span122[3]; + num++; + ref QuestSequence reference220 = ref span295[num]; QuestSequence obj186 = new QuestSequence { Sequence = 3 @@ -163727,18 +197305,23 @@ public static class AssemblyQuestLoader num2 = 1; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.Interact, 1020599u, new Vector3(-601.4649f, 323.9936f, 179.70544f), 620); + Span span298 = CollectionsMarshal.AsSpan(list298); + index2 = 0; + span298[index2] = new QuestStep(EInteractionType.Interact, 1020599u, new Vector3(-601.4649f, 323.9936f, 179.70544f), 620); obj186.Steps = list298; reference220 = obj186; - ref QuestSequence reference221 = ref span122[4]; + num++; + ref QuestSequence reference221 = ref span295[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020600u, new Vector3(-286.7323f, 256.99963f, 696.22327f), 620); + index2 = 1; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + Span span299 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span299[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020600u, new Vector3(-286.7323f, 256.99963f, 696.22327f), 620); obj187.Steps = list299; reference221 = obj187; questRoot35.QuestSequence = list295; @@ -163748,13 +197331,16 @@ public static class AssemblyQuestLoader num = 1; List list300 = new List(num); CollectionsMarshal.SetCount(list300, num); - CollectionsMarshal.AsSpan(list300)[0] = "JerryWester"; + Span span300 = CollectionsMarshal.AsSpan(list300); + index = 0; + span300[index] = "JerryWester"; questRoot36.Author = list300; - num = 3; - List list301 = new List(num); - CollectionsMarshal.SetCount(list301, num); - Span span124 = CollectionsMarshal.AsSpan(list301); - ref QuestSequence reference222 = ref span124[0]; + index = 3; + List list301 = new List(index); + CollectionsMarshal.SetCount(list301, index); + Span span301 = CollectionsMarshal.AsSpan(list301); + num = 0; + ref QuestSequence reference222 = ref span301[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 @@ -163762,26 +197348,32 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020600u, new Vector3(-286.7323f, 256.99963f, 696.22327f), 620); + Span span302 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span302[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020600u, new Vector3(-286.7323f, 256.99963f, 696.22327f), 620); obj188.Steps = list302; reference222 = obj188; - ref QuestSequence reference223 = ref span124[1]; + num++; + ref QuestSequence reference223 = ref span301[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - Span span125 = CollectionsMarshal.AsSpan(list303); - span125[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 620) + index2 = 2; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + Span span303 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span303[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 620) { Aetheryte = EAetheryteLocation.PeaksAlaGhiri }; - span125[1] = new QuestStep(EInteractionType.Interact, 1020604u, new Vector3(-299.39728f, 257.52652f, 770.7484f), 620); + num2++; + span303[num2] = new QuestStep(EInteractionType.Interact, 1020604u, new Vector3(-299.39728f, 257.52652f, 770.7484f), 620); obj189.Steps = list303; reference223 = obj189; - ref QuestSequence reference224 = ref span124[2]; + num++; + ref QuestSequence reference224 = ref span301[num]; QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue @@ -163789,7 +197381,9 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020630u, new Vector3(-297.47473f, 257.52652f, 765.31616f), 620) + Span span304 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span304[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020630u, new Vector3(-297.47473f, 257.52652f, 765.31616f), 620) { StopDistance = 6f }; @@ -163802,23 +197396,28 @@ public static class AssemblyQuestLoader num = 2; List list305 = new List(num); CollectionsMarshal.SetCount(list305, num); - Span span126 = CollectionsMarshal.AsSpan(list305); - span126[0] = "JerryWester"; - span126[1] = "ewlame"; + Span span305 = CollectionsMarshal.AsSpan(list305); + index = 0; + span305[index] = "JerryWester"; + index++; + span305[index] = "ewlame"; questRoot37.Author = list305; - num = 3; - List list306 = new List(num); - CollectionsMarshal.SetCount(list306, num); - Span span127 = CollectionsMarshal.AsSpan(list306); - ref QuestSequence reference225 = ref span127[0]; + index = 3; + List list306 = new List(index); + CollectionsMarshal.SetCount(list306, index); + Span span306 = CollectionsMarshal.AsSpan(list306); + num = 0; + ref QuestSequence reference225 = ref span306[num]; QuestSequence obj191 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020630u, new Vector3(-297.47473f, 257.52652f, 765.31616f), 620) + index2 = 1; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + Span span307 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span307[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020630u, new Vector3(-297.47473f, 257.52652f, 765.31616f), 620) { StopDistance = 6f, AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, @@ -163832,7 +197431,8 @@ public static class AssemblyQuestLoader }; obj191.Steps = list307; reference225 = obj191; - ref QuestSequence reference226 = ref span127[1]; + num++; + ref QuestSequence reference226 = ref span306[num]; QuestSequence obj192 = new QuestSequence { Sequence = 1 @@ -163840,8 +197440,9 @@ public static class AssemblyQuestLoader num2 = 2; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - Span span128 = CollectionsMarshal.AsSpan(list308); - ref QuestStep reference227 = ref span128[0]; + Span span308 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + ref QuestStep reference227 = ref span308[index2]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, 2008202u, new Vector3(-549.7368f, 257.3739f, 557.6714f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -163849,23 +197450,32 @@ public static class AssemblyQuestLoader num3 = 2; List list309 = new List(num3); CollectionsMarshal.SetCount(list309, num3); - Span span129 = CollectionsMarshal.AsSpan(list309); - span129[0] = 8033u; - span129[1] = 8045u; + Span span309 = CollectionsMarshal.AsSpan(list309); + num4 = 0; + span309[num4] = 8033u; + num4++; + span309[num4] = 8045u; obj193.KillEnemyDataIds = list309; - num3 = 6; - List list310 = new List(num3); - CollectionsMarshal.SetCount(list310, num3); - Span span130 = CollectionsMarshal.AsSpan(list310); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list310 = new List(num4); + CollectionsMarshal.SetCount(list310, num4); + Span span310 = CollectionsMarshal.AsSpan(list310); + num3 = 0; + span310[num3] = null; + num3++; + span310[num3] = null; + num3++; + span310[num3] = null; + num3++; + span310[num3] = null; + num3++; + span310[num3] = null; + num3++; + span310[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj193.CompletionQuestVariablesFlags = list310; reference227 = obj193; - ref QuestStep reference228 = ref span128[1]; + index2++; + ref QuestStep reference228 = ref span308[index2]; QuestStep obj194 = new QuestStep(EInteractionType.Combat, 2008203u, new Vector3(-460.92932f, 295.58252f, 256.0005f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -163873,38 +197483,49 @@ public static class AssemblyQuestLoader num3 = 2; List list311 = new List(num3); CollectionsMarshal.SetCount(list311, num3); - Span span131 = CollectionsMarshal.AsSpan(list311); - span131[0] = 8031u; - span131[1] = 8032u; + Span span311 = CollectionsMarshal.AsSpan(list311); + num4 = 0; + span311[num4] = 8031u; + num4++; + span311[num4] = 8032u; obj194.KillEnemyDataIds = list311; - num3 = 6; - List list312 = new List(num3); - CollectionsMarshal.SetCount(list312, num3); - Span span132 = CollectionsMarshal.AsSpan(list312); - span132[0] = null; - span132[1] = null; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list312 = new List(num4); + CollectionsMarshal.SetCount(list312, num4); + Span span312 = CollectionsMarshal.AsSpan(list312); + num3 = 0; + span312[num3] = null; + num3++; + span312[num3] = null; + num3++; + span312[num3] = null; + num3++; + span312[num3] = null; + num3++; + span312[num3] = null; + num3++; + span312[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj194.CompletionQuestVariablesFlags = list312; reference228 = obj194; obj192.Steps = list308; reference226 = obj192; - ref QuestSequence reference229 = ref span127[2]; + num++; + ref QuestSequence reference229 = ref span306[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - Span span133 = CollectionsMarshal.AsSpan(list313); - span133[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007981u, new Vector3(-485.22168f, 304.46313f, 247.39441f), 620) + index2 = 2; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + Span span313 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span313[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007981u, new Vector3(-485.22168f, 304.46313f, 247.39441f), 620) { AetherCurrentId = 2818154u }; - span133[1] = new QuestStep(EInteractionType.CompleteQuest, 1020608u, new Vector3(-346.15094f, 305.93304f, 149.03479f), 620); + num2++; + span313[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020608u, new Vector3(-346.15094f, 305.93304f, 149.03479f), 620); obj195.Steps = list313; reference229 = obj195; questRoot37.QuestSequence = list306; @@ -163914,13 +197535,16 @@ public static class AssemblyQuestLoader num = 1; List list314 = new List(num); CollectionsMarshal.SetCount(list314, num); - CollectionsMarshal.AsSpan(list314)[0] = "JerryWester"; + Span span314 = CollectionsMarshal.AsSpan(list314); + index = 0; + span314[index] = "JerryWester"; questRoot38.Author = list314; - num = 7; - List list315 = new List(num); - CollectionsMarshal.SetCount(list315, num); - Span span134 = CollectionsMarshal.AsSpan(list315); - ref QuestSequence reference230 = ref span134[0]; + index = 7; + List list315 = new List(index); + CollectionsMarshal.SetCount(list315, index); + Span span315 = CollectionsMarshal.AsSpan(list315); + num = 0; + ref QuestSequence reference230 = ref span315[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -163928,21 +197552,27 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020608u, new Vector3(-346.15094f, 305.93304f, 149.03479f), 620); + Span span316 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span316[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020608u, new Vector3(-346.15094f, 305.93304f, 149.03479f), 620); obj196.Steps = list316; reference230 = obj196; - ref QuestSequence reference231 = ref span134[1]; + num++; + ref QuestSequence reference231 = ref span315[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.Interact, 1020609u, new Vector3(-134.26416f, 305.2497f, 187.79272f), 620); + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + Span span317 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span317[num2] = new QuestStep(EInteractionType.Interact, 1020609u, new Vector3(-134.26416f, 305.2497f, 187.79272f), 620); obj197.Steps = list317; reference231 = obj197; - ref QuestSequence reference232 = ref span134[2]; + num++; + ref QuestSequence reference232 = ref span315[num]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -163950,76 +197580,103 @@ public static class AssemblyQuestLoader num2 = 2; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - Span span135 = CollectionsMarshal.AsSpan(list318); - ref QuestStep reference233 = ref span135[0]; + Span span318 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + ref QuestStep reference233 = ref span318[index2]; QuestStep questStep35 = new QuestStep(EInteractionType.Interact, 2008944u, new Vector3(-128.98456f, 306.47742f, 188.58618f), 620); num3 = 1; List list319 = new List(num3); CollectionsMarshal.SetCount(list319, num3); - CollectionsMarshal.AsSpan(list319)[0] = new DialogueChoice + Span span319 = CollectionsMarshal.AsSpan(list319); + num4 = 0; + span319[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDA611_02537_AREA_WARP_YESNO_TITLE") }; questStep35.DialogueChoices = list319; reference233 = questStep35; - span135[1] = new QuestStep(EInteractionType.Interact, 1020610u, new Vector3(-77.25653f, 305.92664f, 154.00928f), 620); + index2++; + span318[index2] = new QuestStep(EInteractionType.Interact, 1020610u, new Vector3(-77.25653f, 305.92664f, 154.00928f), 620); obj198.Steps = list318; reference232 = obj198; - ref QuestSequence reference234 = ref span134[3]; + num++; + ref QuestSequence reference234 = ref span315[num]; QuestSequence obj199 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - Span span136 = CollectionsMarshal.AsSpan(list320); - ref QuestStep reference235 = ref span136[0]; + index2 = 3; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + Span span320 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + ref QuestStep reference235 = ref span320[num2]; QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 1020617u, new Vector3(-15.274292f, 317.61813f, 134.93542f), 620); - num3 = 6; - List list321 = new List(num3); - CollectionsMarshal.SetCount(list321, num3); - Span span137 = CollectionsMarshal.AsSpan(list321); - span137[0] = null; - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = null; - span137[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list321 = new List(num4); + CollectionsMarshal.SetCount(list321, num4); + Span span321 = CollectionsMarshal.AsSpan(list321); + num3 = 0; + span321[num3] = null; + num3++; + span321[num3] = null; + num3++; + span321[num3] = null; + num3++; + span321[num3] = null; + num3++; + span321[num3] = null; + num3++; + span321[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep36.CompletionQuestVariablesFlags = list321; reference235 = questStep36; - ref QuestStep reference236 = ref span136[1]; + num2++; + ref QuestStep reference236 = ref span320[num2]; QuestStep questStep37 = new QuestStep(EInteractionType.Interact, 1020618u, new Vector3(-17.502136f, 317.66766f, 114.39685f), 620); num3 = 6; List list322 = new List(num3); CollectionsMarshal.SetCount(list322, num3); - Span span138 = CollectionsMarshal.AsSpan(list322); - span138[0] = null; - span138[1] = null; - span138[2] = null; - span138[3] = null; - span138[4] = null; - span138[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span322 = CollectionsMarshal.AsSpan(list322); + num4 = 0; + span322[num4] = null; + num4++; + span322[num4] = null; + num4++; + span322[num4] = null; + num4++; + span322[num4] = null; + num4++; + span322[num4] = null; + num4++; + span322[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep37.CompletionQuestVariablesFlags = list322; reference236 = questStep37; - ref QuestStep reference237 = ref span136[2]; + num2++; + ref QuestStep reference237 = ref span320[num2]; QuestStep questStep38 = new QuestStep(EInteractionType.Interact, 1020619u, new Vector3(0.289917f, 317.56836f, 105.57703f), 620); - num3 = 6; - List list323 = new List(num3); - CollectionsMarshal.SetCount(list323, num3); - Span span139 = CollectionsMarshal.AsSpan(list323); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list323 = new List(num4); + CollectionsMarshal.SetCount(list323, num4); + Span span323 = CollectionsMarshal.AsSpan(list323); + num3 = 0; + span323[num3] = null; + num3++; + span323[num3] = null; + num3++; + span323[num3] = null; + num3++; + span323[num3] = null; + num3++; + span323[num3] = null; + num3++; + span323[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep38.CompletionQuestVariablesFlags = list323; reference237 = questStep38; obj199.Steps = list320; reference234 = obj199; - ref QuestSequence reference238 = ref span134[4]; + num++; + ref QuestSequence reference238 = ref span315[num]; QuestSequence obj200 = new QuestSequence { Sequence = 4 @@ -164027,21 +197684,27 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.Interact, 1022335u, new Vector3(-30.289246f, 317.56836f, 123.85742f), 620); + Span span324 = CollectionsMarshal.AsSpan(list324); + index2 = 0; + span324[index2] = new QuestStep(EInteractionType.Interact, 1022335u, new Vector3(-30.289246f, 317.56836f, 123.85742f), 620); obj200.Steps = list324; reference238 = obj200; - ref QuestSequence reference239 = ref span134[5]; + num++; + ref QuestSequence reference239 = ref span315[num]; QuestSequence obj201 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1020613u, new Vector3(7.7667847f, 317.61786f, 110.0022f), 620); + index2 = 1; + List list325 = new List(index2); + CollectionsMarshal.SetCount(list325, index2); + Span span325 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + span325[num2] = new QuestStep(EInteractionType.Interact, 1020613u, new Vector3(7.7667847f, 317.61786f, 110.0022f), 620); obj201.Steps = list325; reference239 = obj201; - ref QuestSequence reference240 = ref span134[6]; + num++; + ref QuestSequence reference240 = ref span315[num]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue @@ -164049,7 +197712,9 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020611u, new Vector3(7.827881f, 317.5509f, 112.41321f), 620); + Span span326 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span326[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020611u, new Vector3(7.827881f, 317.5509f, 112.41321f), 620); obj202.Steps = list326; reference240 = obj202; questRoot38.QuestSequence = list315; @@ -164059,24 +197724,30 @@ public static class AssemblyQuestLoader num = 1; List list327 = new List(num); CollectionsMarshal.SetCount(list327, num); - CollectionsMarshal.AsSpan(list327)[0] = "JerryWester"; + Span span327 = CollectionsMarshal.AsSpan(list327); + index = 0; + span327[index] = "JerryWester"; questRoot39.Author = list327; - num = 4; - List list328 = new List(num); - CollectionsMarshal.SetCount(list328, num); - Span span140 = CollectionsMarshal.AsSpan(list328); - ref QuestSequence reference241 = ref span140[0]; + index = 4; + List list328 = new List(index); + CollectionsMarshal.SetCount(list328, index); + Span span328 = CollectionsMarshal.AsSpan(list328); + num = 0; + ref QuestSequence reference241 = ref span328[num]; QuestSequence obj203 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020611u, new Vector3(7.827881f, 317.5509f, 112.41321f), 620); + index2 = 1; + List list329 = new List(index2); + CollectionsMarshal.SetCount(list329, index2); + Span span329 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + span329[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020611u, new Vector3(7.827881f, 317.5509f, 112.41321f), 620); obj203.Steps = list329; reference241 = obj203; - ref QuestSequence reference242 = ref span140[1]; + num++; + ref QuestSequence reference242 = ref span328[num]; QuestSequence obj204 = new QuestSequence { Sequence = 1 @@ -164084,67 +197755,93 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.Interact, 1019945u, new Vector3(7.9804688f, 306.56976f, 73.68579f), 620); + Span span330 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span330[index2] = new QuestStep(EInteractionType.Interact, 1019945u, new Vector3(7.9804688f, 306.56976f, 73.68579f), 620); obj204.Steps = list330; reference242 = obj204; - ref QuestSequence reference243 = ref span140[2]; + num++; + ref QuestSequence reference243 = ref span328[num]; QuestSequence obj205 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - Span span141 = CollectionsMarshal.AsSpan(list331); - ref QuestStep reference244 = ref span141[0]; + index2 = 4; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + Span span331 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + ref QuestStep reference244 = ref span331[num2]; QuestStep questStep39 = new QuestStep(EInteractionType.Interact, 1023835u, new Vector3(-150.04199f, 305.79913f, 82.871704f), 620); num3 = 6; List list332 = new List(num3); CollectionsMarshal.SetCount(list332, num3); - Span span142 = CollectionsMarshal.AsSpan(list332); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span332 = CollectionsMarshal.AsSpan(list332); + num4 = 0; + span332[num4] = null; + num4++; + span332[num4] = null; + num4++; + span332[num4] = null; + num4++; + span332[num4] = null; + num4++; + span332[num4] = null; + num4++; + span332[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep39.CompletionQuestVariablesFlags = list332; reference244 = questStep39; - span141[1] = new QuestStep(EInteractionType.Interact, 2008450u, new Vector3(-126.54315f, 306.50793f, 186.26685f), 620) + num2++; + span331[num2] = new QuestStep(EInteractionType.Interact, 2008450u, new Vector3(-126.54315f, 306.50793f, 186.26685f), 620) { TargetTerritoryId = (ushort)620 }; - ref QuestStep reference245 = ref span141[2]; + num2++; + ref QuestStep reference245 = ref span331[num2]; QuestStep questStep40 = new QuestStep(EInteractionType.Interact, 1023834u, new Vector3(-148.4856f, 300.39352f, 265.73584f), 620); - num3 = 6; - List list333 = new List(num3); - CollectionsMarshal.SetCount(list333, num3); - Span span143 = CollectionsMarshal.AsSpan(list333); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list333 = new List(num4); + CollectionsMarshal.SetCount(list333, num4); + Span span333 = CollectionsMarshal.AsSpan(list333); + num3 = 0; + span333[num3] = null; + num3++; + span333[num3] = null; + num3++; + span333[num3] = null; + num3++; + span333[num3] = null; + num3++; + span333[num3] = null; + num3++; + span333[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep40.CompletionQuestVariablesFlags = list333; reference245 = questStep40; - ref QuestStep reference246 = ref span141[3]; + num2++; + ref QuestStep reference246 = ref span331[num2]; QuestStep questStep41 = new QuestStep(EInteractionType.Interact, 1020623u, new Vector3(-212.63446f, 296.37332f, 297.04736f), 620); num3 = 6; List list334 = new List(num3); CollectionsMarshal.SetCount(list334, num3); - Span span144 = CollectionsMarshal.AsSpan(list334); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span334 = CollectionsMarshal.AsSpan(list334); + num4 = 0; + span334[num4] = null; + num4++; + span334[num4] = null; + num4++; + span334[num4] = null; + num4++; + span334[num4] = null; + num4++; + span334[num4] = null; + num4++; + span334[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep41.CompletionQuestVariablesFlags = list334; reference246 = questStep41; obj205.Steps = list331; reference243 = obj205; - ref QuestSequence reference247 = ref span140[3]; + num++; + ref QuestSequence reference247 = ref span328[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue @@ -164152,7 +197849,9 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020601u, new Vector3(-286.54926f, 256.8515f, 693.1411f), 620) + Span span335 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span335[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020601u, new Vector3(-286.54926f, 256.8515f, 693.1411f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; @@ -164165,21 +197864,26 @@ public static class AssemblyQuestLoader num = 1; List list336 = new List(num); CollectionsMarshal.SetCount(list336, num); - CollectionsMarshal.AsSpan(list336)[0] = "JerryWester"; + Span span336 = CollectionsMarshal.AsSpan(list336); + index = 0; + span336[index] = "JerryWester"; questRoot40.Author = list336; - num = 3; - List list337 = new List(num); - CollectionsMarshal.SetCount(list337, num); - Span span145 = CollectionsMarshal.AsSpan(list337); - ref QuestSequence reference248 = ref span145[0]; + index = 3; + List list337 = new List(index); + CollectionsMarshal.SetCount(list337, index); + Span span337 = CollectionsMarshal.AsSpan(list337); + num = 0; + ref QuestSequence reference248 = ref span337[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020601u, new Vector3(-286.54926f, 256.8515f, 693.1411f), 620) + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + Span span338 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span338[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020601u, new Vector3(-286.54926f, 256.8515f, 693.1411f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, SkipConditions = new SkipConditions @@ -164192,7 +197896,8 @@ public static class AssemblyQuestLoader }; obj207.Steps = list338; reference248 = obj207; - ref QuestSequence reference249 = ref span145[1]; + num++; + ref QuestSequence reference249 = ref span337[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 @@ -164200,18 +197905,23 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 1020604u, new Vector3(-299.39728f, 257.52652f, 770.7484f), 620); + Span span339 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span339[index2] = new QuestStep(EInteractionType.Interact, 1020604u, new Vector3(-299.39728f, 257.52652f, 770.7484f), 620); obj208.Steps = list339; reference249 = obj208; - ref QuestSequence reference250 = ref span145[2]; + num++; + ref QuestSequence reference250 = ref span337[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020631u, new Vector3(-300.49597f, 257.5265f, 765.0415f), 620) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + Span span340 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span340[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020631u, new Vector3(-300.49597f, 257.5265f, 765.0415f), 620) { StopDistance = 7f }; @@ -164224,13 +197934,16 @@ public static class AssemblyQuestLoader num = 1; List list341 = new List(num); CollectionsMarshal.SetCount(list341, num); - CollectionsMarshal.AsSpan(list341)[0] = "JerryWester"; + Span span341 = CollectionsMarshal.AsSpan(list341); + index = 0; + span341[index] = "JerryWester"; questRoot41.Author = list341; - num = 4; - List list342 = new List(num); - CollectionsMarshal.SetCount(list342, num); - Span span146 = CollectionsMarshal.AsSpan(list342); - ref QuestSequence reference251 = ref span146[0]; + index = 4; + List list342 = new List(index); + CollectionsMarshal.SetCount(list342, index); + Span span342 = CollectionsMarshal.AsSpan(list342); + num = 0; + ref QuestSequence reference251 = ref span342[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 @@ -164238,7 +197951,9 @@ public static class AssemblyQuestLoader num2 = 1; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020631u, new Vector3(-300.49597f, 257.5265f, 765.0415f), 620) + Span span343 = CollectionsMarshal.AsSpan(list343); + index2 = 0; + span343[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020631u, new Vector3(-300.49597f, 257.5265f, 765.0415f), 620) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, @@ -164252,28 +197967,34 @@ public static class AssemblyQuestLoader }; obj210.Steps = list343; reference251 = obj210; - ref QuestSequence reference252 = ref span146[1]; + num++; + ref QuestSequence reference252 = ref span342[num]; QuestSequence obj211 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - ref QuestStep reference253 = ref CollectionsMarshal.AsSpan(list344)[0]; + index2 = 1; + List list344 = new List(index2); + CollectionsMarshal.SetCount(list344, index2); + Span span344 = CollectionsMarshal.AsSpan(list344); + num2 = 0; + ref QuestStep reference253 = ref span344[num2]; QuestStep obj212 = new QuestStep(EInteractionType.Combat, 2009007u, new Vector3(-75.24231f, 262.4093f, 661.86f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list345 = new List(num3); - CollectionsMarshal.SetCount(list345, num3); - CollectionsMarshal.AsSpan(list345)[0] = 7534u; + num4 = 1; + List list345 = new List(num4); + CollectionsMarshal.SetCount(list345, num4); + Span span345 = CollectionsMarshal.AsSpan(list345); + num3 = 0; + span345[num3] = 7534u; obj212.KillEnemyDataIds = list345; reference253 = obj212; obj211.Steps = list344; reference252 = obj211; - ref QuestSequence reference254 = ref span146[2]; + num++; + ref QuestSequence reference254 = ref span342[num]; QuestSequence obj213 = new QuestSequence { Sequence = 2 @@ -164281,21 +198002,26 @@ public static class AssemblyQuestLoader num2 = 1; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 2008211u, new Vector3(-75.48645f, 262.4093f, 661.86f), 620) + Span span346 = CollectionsMarshal.AsSpan(list346); + index2 = 0; + span346[index2] = new QuestStep(EInteractionType.Interact, 2008211u, new Vector3(-75.48645f, 262.4093f, 661.86f), 620) { StopDistance = 4.25f }; obj213.Steps = list346; reference254 = obj213; - ref QuestSequence reference255 = ref span146[3]; + num++; + ref QuestSequence reference255 = ref span342[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020633u, new Vector3(-113.42035f, 263.73114f, 655.75635f), 620) + index2 = 1; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + Span span347 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + span347[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020633u, new Vector3(-113.42035f, 263.73114f, 655.75635f), 620) { StopDistance = 7f }; @@ -164308,13 +198034,16 @@ public static class AssemblyQuestLoader num = 1; List list348 = new List(num); CollectionsMarshal.SetCount(list348, num); - CollectionsMarshal.AsSpan(list348)[0] = "JerryWester"; + Span span348 = CollectionsMarshal.AsSpan(list348); + index = 0; + span348[index] = "JerryWester"; questRoot42.Author = list348; - num = 3; - List list349 = new List(num); - CollectionsMarshal.SetCount(list349, num); - Span span147 = CollectionsMarshal.AsSpan(list349); - ref QuestSequence reference256 = ref span147[0]; + index = 3; + List list349 = new List(index); + CollectionsMarshal.SetCount(list349, index); + Span span349 = CollectionsMarshal.AsSpan(list349); + num = 0; + ref QuestSequence reference256 = ref span349[num]; QuestSequence obj215 = new QuestSequence { Sequence = 0 @@ -164322,27 +198051,33 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020633u, new Vector3(-113.42035f, 263.73114f, 655.75635f), 620) + Span span350 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + span350[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020633u, new Vector3(-113.42035f, 263.73114f, 655.75635f), 620) { StopDistance = 7f }; obj215.Steps = list350; reference256 = obj215; - ref QuestSequence reference257 = ref span147[1]; + num++; + ref QuestSequence reference257 = ref span349[num]; QuestSequence obj216 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1020604u, new Vector3(-299.39728f, 257.52652f, 770.7484f), 620) + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + Span span351 = CollectionsMarshal.AsSpan(list351); + num2 = 0; + span351[num2] = new QuestStep(EInteractionType.Interact, 1020604u, new Vector3(-299.39728f, 257.52652f, 770.7484f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; obj216.Steps = list351; reference257 = obj216; - ref QuestSequence reference258 = ref span147[2]; + num++; + ref QuestSequence reference258 = ref span349[num]; QuestSequence obj217 = new QuestSequence { Sequence = byte.MaxValue @@ -164350,7 +198085,9 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020629u, new Vector3(-298.51227f, 257.52652f, 764.98047f), 620) + Span span352 = CollectionsMarshal.AsSpan(list352); + index2 = 0; + span352[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020629u, new Vector3(-298.51227f, 257.52652f, 764.98047f), 620) { StopDistance = 7f }; @@ -164363,21 +198100,26 @@ public static class AssemblyQuestLoader num = 1; List list353 = new List(num); CollectionsMarshal.SetCount(list353, num); - CollectionsMarshal.AsSpan(list353)[0] = "JerryWester"; + Span span353 = CollectionsMarshal.AsSpan(list353); + index = 0; + span353[index] = "JerryWester"; questRoot43.Author = list353; - num = 6; - List list354 = new List(num); - CollectionsMarshal.SetCount(list354, num); - Span span148 = CollectionsMarshal.AsSpan(list354); - ref QuestSequence reference259 = ref span148[0]; + index = 6; + List list354 = new List(index); + CollectionsMarshal.SetCount(list354, index); + Span span354 = CollectionsMarshal.AsSpan(list354); + num = 0; + ref QuestSequence reference259 = ref span354[num]; QuestSequence obj218 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020629u, new Vector3(-298.51227f, 257.52652f, 764.98047f), 620) + index2 = 1; + List list355 = new List(index2); + CollectionsMarshal.SetCount(list355, index2); + Span span355 = CollectionsMarshal.AsSpan(list355); + num2 = 0; + span355[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020629u, new Vector3(-298.51227f, 257.52652f, 764.98047f), 620) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, @@ -164391,7 +198133,8 @@ public static class AssemblyQuestLoader }; obj218.Steps = list355; reference259 = obj218; - ref QuestSequence reference260 = ref span148[1]; + num++; + ref QuestSequence reference260 = ref span354[num]; QuestSequence obj219 = new QuestSequence { Sequence = 1 @@ -164399,28 +198142,33 @@ public static class AssemblyQuestLoader num2 = 2; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - Span span149 = CollectionsMarshal.AsSpan(list356); - span149[0] = new QuestStep(EInteractionType.AcceptQuest, 1020873u, new Vector3(-327.96222f, 258.90652f, 757.3815f), 620) + Span span356 = CollectionsMarshal.AsSpan(list356); + index2 = 0; + span356[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020873u, new Vector3(-327.96222f, 258.90652f, 757.3815f), 620) { PickUpQuestId = new QuestId(2842) }; - span149[1] = new QuestStep(EInteractionType.Interact, 2009008u, new Vector3(-171.2215f, 294.5144f, 302.44897f), 620); + index2++; + span356[index2] = new QuestStep(EInteractionType.Interact, 2009008u, new Vector3(-171.2215f, 294.5144f, 302.44897f), 620); obj219.Steps = list356; reference260 = obj219; - ref QuestSequence reference261 = ref span148[2]; + num++; + ref QuestSequence reference261 = ref span354[num]; QuestSequence obj220 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - Span span150 = CollectionsMarshal.AsSpan(list357); - span150[0] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) + index2 = 2; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + Span span357 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span357[num2] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) { TargetTerritoryId = (ushort)620 }; - ref QuestStep reference262 = ref span150[1]; + num2++; + ref QuestStep reference262 = ref span357[num2]; QuestStep obj221 = new QuestStep(EInteractionType.Combat, 2009009u, new Vector3(-115.40399f, 305.47034f, 161.3031f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -164428,14 +198176,17 @@ public static class AssemblyQuestLoader num3 = 2; List list358 = new List(num3); CollectionsMarshal.SetCount(list358, num3); - Span span151 = CollectionsMarshal.AsSpan(list358); - span151[0] = 8032u; - span151[1] = 8045u; + Span span358 = CollectionsMarshal.AsSpan(list358); + num4 = 0; + span358[num4] = 8032u; + num4++; + span358[num4] = 8045u; obj221.KillEnemyDataIds = list358; reference262 = obj221; obj220.Steps = list357; reference261 = obj220; - ref QuestSequence reference263 = ref span148[3]; + num++; + ref QuestSequence reference263 = ref span354[num]; QuestSequence obj222 = new QuestSequence { Sequence = 3 @@ -164443,31 +198194,39 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.Interact, 1021616u, new Vector3(64.31665f, 305.92664f, 152.6665f), 620); + Span span359 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span359[index2] = new QuestStep(EInteractionType.Interact, 1021616u, new Vector3(64.31665f, 305.92664f, 152.6665f), 620); obj222.Steps = list359; reference263 = obj222; - ref QuestSequence reference264 = ref span148[4]; + num++; + ref QuestSequence reference264 = ref span354[num]; QuestSequence obj223 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - ref QuestStep reference265 = ref CollectionsMarshal.AsSpan(list360)[0]; + index2 = 1; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + Span span360 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + ref QuestStep reference265 = ref span360[num2]; QuestStep obj224 = new QuestStep(EInteractionType.Combat, 2009010u, new Vector3(148.82117f, 308.73572f, 166.58276f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list361 = new List(num3); - CollectionsMarshal.SetCount(list361, num3); - CollectionsMarshal.AsSpan(list361)[0] = 7569u; + num4 = 1; + List list361 = new List(num4); + CollectionsMarshal.SetCount(list361, num4); + Span span361 = CollectionsMarshal.AsSpan(list361); + num3 = 0; + span361[num3] = 7569u; obj224.KillEnemyDataIds = list361; reference265 = obj224; obj223.Steps = list360; reference264 = obj223; - ref QuestSequence reference266 = ref span148[5]; + num++; + ref QuestSequence reference266 = ref span354[num]; QuestSequence obj225 = new QuestSequence { Sequence = byte.MaxValue @@ -164475,7 +198234,9 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022344u, new Vector3(353.78027f, 323.77386f, 273.30432f), 620); + Span span362 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span362[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022344u, new Vector3(353.78027f, 323.77386f, 273.30432f), 620); obj225.Steps = list362; reference266 = obj225; questRoot43.QuestSequence = list354; @@ -164485,24 +198246,30 @@ public static class AssemblyQuestLoader num = 1; List list363 = new List(num); CollectionsMarshal.SetCount(list363, num); - CollectionsMarshal.AsSpan(list363)[0] = "JerryWester"; + Span span363 = CollectionsMarshal.AsSpan(list363); + index = 0; + span363[index] = "JerryWester"; questRoot44.Author = list363; - num = 3; - List list364 = new List(num); - CollectionsMarshal.SetCount(list364, num); - Span span152 = CollectionsMarshal.AsSpan(list364); - ref QuestSequence reference267 = ref span152[0]; + index = 3; + List list364 = new List(index); + CollectionsMarshal.SetCount(list364, index); + Span span364 = CollectionsMarshal.AsSpan(list364); + num = 0; + ref QuestSequence reference267 = ref span364[num]; QuestSequence obj226 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022344u, new Vector3(353.78027f, 323.77386f, 273.30432f), 620); + index2 = 1; + List list365 = new List(index2); + CollectionsMarshal.SetCount(list365, index2); + Span span365 = CollectionsMarshal.AsSpan(list365); + num2 = 0; + span365[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022344u, new Vector3(353.78027f, 323.77386f, 273.30432f), 620); obj226.Steps = list365; reference267 = obj226; - ref QuestSequence reference268 = ref span152[1]; + num++; + ref QuestSequence reference268 = ref span364[num]; QuestSequence obj227 = new QuestSequence { Sequence = 1 @@ -164510,12 +198277,16 @@ public static class AssemblyQuestLoader num2 = 1; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - ref QuestStep reference269 = ref CollectionsMarshal.AsSpan(list366)[0]; + Span span366 = CollectionsMarshal.AsSpan(list366); + index2 = 0; + ref QuestStep reference269 = ref span366[index2]; QuestStep questStep42 = new QuestStep(EInteractionType.Interact, 1020642u, new Vector3(302.93726f, 324.3033f, 383.04712f), 620); num3 = 1; List list367 = new List(num3); CollectionsMarshal.SetCount(list367, num3); - CollectionsMarshal.AsSpan(list367)[0] = new DialogueChoice + Span span367 = CollectionsMarshal.AsSpan(list367); + num4 = 0; + span367[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA617_02543_Q1_000_000"), @@ -164525,15 +198296,18 @@ public static class AssemblyQuestLoader reference269 = questStep42; obj227.Steps = list366; reference268 = obj227; - ref QuestSequence reference270 = ref span152[2]; + num++; + ref QuestSequence reference270 = ref span364[num]; QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list368 = new List(num2); - CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020645u, new Vector3(257.80115f, 314.40753f, 416.15918f), 620); + index2 = 1; + List list368 = new List(index2); + CollectionsMarshal.SetCount(list368, index2); + Span span368 = CollectionsMarshal.AsSpan(list368); + num2 = 0; + span368[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020645u, new Vector3(257.80115f, 314.40753f, 416.15918f), 620); obj228.Steps = list368; reference270 = obj228; questRoot44.QuestSequence = list364; @@ -164543,13 +198317,16 @@ public static class AssemblyQuestLoader num = 1; List list369 = new List(num); CollectionsMarshal.SetCount(list369, num); - CollectionsMarshal.AsSpan(list369)[0] = "JerryWester"; + Span span369 = CollectionsMarshal.AsSpan(list369); + index = 0; + span369[index] = "JerryWester"; questRoot45.Author = list369; - num = 9; - List list370 = new List(num); - CollectionsMarshal.SetCount(list370, num); - Span span153 = CollectionsMarshal.AsSpan(list370); - ref QuestSequence reference271 = ref span153[0]; + index = 9; + List list370 = new List(index); + CollectionsMarshal.SetCount(list370, index); + Span span370 = CollectionsMarshal.AsSpan(list370); + num = 0; + ref QuestSequence reference271 = ref span370[num]; QuestSequence obj229 = new QuestSequence { Sequence = 0 @@ -164557,36 +198334,44 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023606u, new Vector3(257.1908f, 314.22742f, 418.2954f), 620) + Span span371 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + span371[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023606u, new Vector3(257.1908f, 314.22742f, 418.2954f), 620) { StopDistance = 7f }; obj229.Steps = list371; reference271 = obj229; - ref QuestSequence reference272 = ref span153[1]; + num++; + ref QuestSequence reference272 = ref span370[num]; QuestSequence obj230 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list372 = new List(num2); - CollectionsMarshal.SetCount(list372, num2); - ref QuestStep reference273 = ref CollectionsMarshal.AsSpan(list372)[0]; + index2 = 1; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + Span span372 = CollectionsMarshal.AsSpan(list372); + num2 = 0; + ref QuestStep reference273 = ref span372[num2]; QuestStep obj231 = new QuestStep(EInteractionType.Combat, 2009011u, new Vector3(306.38586f, 318.5625f, 432.45593f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list373 = new List(num3); - CollectionsMarshal.SetCount(list373, num3); - Span span154 = CollectionsMarshal.AsSpan(list373); - span154[0] = 7553u; - span154[1] = 7554u; + num4 = 2; + List list373 = new List(num4); + CollectionsMarshal.SetCount(list373, num4); + Span span373 = CollectionsMarshal.AsSpan(list373); + num3 = 0; + span373[num3] = 7553u; + num3++; + span373[num3] = 7554u; obj231.KillEnemyDataIds = list373; reference273 = obj231; obj230.Steps = list372; reference272 = obj230; - ref QuestSequence reference274 = ref span153[2]; + num++; + ref QuestSequence reference274 = ref span370[num]; QuestSequence obj232 = new QuestSequence { Sequence = 2 @@ -164594,7 +198379,9 @@ public static class AssemblyQuestLoader num2 = 1; List list374 = new List(num2); CollectionsMarshal.SetCount(list374, num2); - ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list374)[0]; + Span span374 = CollectionsMarshal.AsSpan(list374); + index2 = 0; + ref QuestStep reference275 = ref span374[index2]; QuestStep obj233 = new QuestStep(EInteractionType.Combat, 2009012u, new Vector3(333.36377f, 322.0111f, 439.3529f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -164602,25 +198389,31 @@ public static class AssemblyQuestLoader num3 = 2; List list375 = new List(num3); CollectionsMarshal.SetCount(list375, num3); - Span span155 = CollectionsMarshal.AsSpan(list375); - span155[0] = 8033u; - span155[1] = 8045u; + Span span375 = CollectionsMarshal.AsSpan(list375); + num4 = 0; + span375[num4] = 8033u; + num4++; + span375[num4] = 8045u; obj233.KillEnemyDataIds = list375; reference275 = obj233; obj232.Steps = list374; reference274 = obj232; - ref QuestSequence reference276 = ref span153[3]; + num++; + ref QuestSequence reference276 = ref span370[num]; QuestSequence obj234 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.Interact, 1020646u, new Vector3(385.7633f, 332.03845f, 487.0526f), 620); + index2 = 1; + List list376 = new List(index2); + CollectionsMarshal.SetCount(list376, index2); + Span span376 = CollectionsMarshal.AsSpan(list376); + num2 = 0; + span376[num2] = new QuestStep(EInteractionType.Interact, 1020646u, new Vector3(385.7633f, 332.03845f, 487.0526f), 620); obj234.Steps = list376; reference276 = obj234; - ref QuestSequence reference277 = ref span153[4]; + num++; + ref QuestSequence reference277 = ref span370[num]; QuestSequence obj235 = new QuestSequence { Sequence = 4 @@ -164628,33 +198421,41 @@ public static class AssemblyQuestLoader num2 = 1; List list377 = new List(num2); CollectionsMarshal.SetCount(list377, num2); - ref QuestStep reference278 = ref CollectionsMarshal.AsSpan(list377)[0]; + Span span377 = CollectionsMarshal.AsSpan(list377); + index2 = 0; + ref QuestStep reference278 = ref span377[index2]; QuestStep obj236 = new QuestStep(EInteractionType.Combat, 2009013u, new Vector3(422.2323f, 335.46948f, 481.74243f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list378 = new List(num3); - CollectionsMarshal.SetCount(list378, num3); - Span span156 = CollectionsMarshal.AsSpan(list378); - span156[0] = 7568u; - span156[1] = 8040u; + num4 = 2; + List list378 = new List(num4); + CollectionsMarshal.SetCount(list378, num4); + Span span378 = CollectionsMarshal.AsSpan(list378); + num3 = 0; + span378[num3] = 7568u; + num3++; + span378[num3] = 8040u; obj236.KillEnemyDataIds = list378; reference278 = obj236; obj235.Steps = list377; reference277 = obj235; - ref QuestSequence reference279 = ref span153[5]; + num++; + ref QuestSequence reference279 = ref span370[num]; QuestSequence obj237 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list379 = new List(num2); - CollectionsMarshal.SetCount(list379, num2); - CollectionsMarshal.AsSpan(list379)[0] = new QuestStep(EInteractionType.Interact, 2008212u, new Vector3(431.11304f, 335.6526f, 487.17468f), 620); + index2 = 1; + List list379 = new List(index2); + CollectionsMarshal.SetCount(list379, index2); + Span span379 = CollectionsMarshal.AsSpan(list379); + num2 = 0; + span379[num2] = new QuestStep(EInteractionType.Interact, 2008212u, new Vector3(431.11304f, 335.6526f, 487.17468f), 620); obj237.Steps = list379; reference279 = obj237; - ref QuestSequence reference280 = ref span153[6]; + num++; + ref QuestSequence reference280 = ref span370[num]; QuestSequence obj238 = new QuestSequence { Sequence = 6 @@ -164662,7 +198463,9 @@ public static class AssemblyQuestLoader num2 = 1; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - ref QuestStep reference281 = ref CollectionsMarshal.AsSpan(list380)[0]; + Span span380 = CollectionsMarshal.AsSpan(list380); + index2 = 0; + ref QuestStep reference281 = ref span380[index2]; QuestStep questStep43 = new QuestStep(EInteractionType.Duty, null, null, 620); DutyOptions obj239 = new DutyOptions { @@ -164672,27 +198475,33 @@ public static class AssemblyQuestLoader num3 = 2; List list381 = new List(num3); CollectionsMarshal.SetCount(list381, num3); - Span span157 = CollectionsMarshal.AsSpan(list381); - span157[0] = "(before boss 2) AD doesn't attack magitek pods, but waits for enemies to spawn from them (even though it has explicit waypoints)"; - span157[1] = "(boss 2) VBM moves out of the towers before their mechanic is resolved, sometimes killing the NPC healer"; + Span span381 = CollectionsMarshal.AsSpan(list381); + num4 = 0; + span381[num4] = "(before boss 2) AD doesn't attack magitek pods, but waits for enemies to spawn from them (even though it has explicit waypoints)"; + num4++; + span381[num4] = "(boss 2) VBM moves out of the towers before their mechanic is resolved, sometimes killing the NPC healer"; obj239.Notes = list381; questStep43.DutyOptions = obj239; reference281 = questStep43; obj238.Steps = list380; reference280 = obj238; - span153[7] = new QuestSequence + num++; + span370[num] = new QuestSequence { Sequence = 7 }; - ref QuestSequence reference282 = ref span153[8]; + num++; + ref QuestSequence reference282 = ref span370[num]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list382 = new List(num2); - CollectionsMarshal.SetCount(list382, num2); - CollectionsMarshal.AsSpan(list382)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020647u, new Vector3(561.45557f, 344.11768f, 435.3551f), 620) + index2 = 1; + List list382 = new List(index2); + CollectionsMarshal.SetCount(list382, index2); + Span span382 = CollectionsMarshal.AsSpan(list382); + num2 = 0; + span382[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020647u, new Vector3(561.45557f, 344.11768f, 435.3551f), 620) { StopDistance = 5f }; @@ -164705,13 +198514,16 @@ public static class AssemblyQuestLoader num = 1; List list383 = new List(num); CollectionsMarshal.SetCount(list383, num); - CollectionsMarshal.AsSpan(list383)[0] = "JerryWester"; + Span span383 = CollectionsMarshal.AsSpan(list383); + index = 0; + span383[index] = "JerryWester"; questRoot46.Author = list383; - num = 2; - List list384 = new List(num); - CollectionsMarshal.SetCount(list384, num); - Span span158 = CollectionsMarshal.AsSpan(list384); - ref QuestSequence reference283 = ref span158[0]; + index = 2; + List list384 = new List(index); + CollectionsMarshal.SetCount(list384, index); + Span span384 = CollectionsMarshal.AsSpan(list384); + num = 0; + ref QuestSequence reference283 = ref span384[num]; QuestSequence obj241 = new QuestSequence { Sequence = 0 @@ -164719,18 +198531,23 @@ public static class AssemblyQuestLoader num2 = 1; List list385 = new List(num2); CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020648u, new Vector3(568.1697f, 344.1177f, 435.29407f), 620); + Span span385 = CollectionsMarshal.AsSpan(list385); + index2 = 0; + span385[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020648u, new Vector3(568.1697f, 344.1177f, 435.29407f), 620); obj241.Steps = list385; reference283 = obj241; - ref QuestSequence reference284 = ref span158[1]; + num++; + ref QuestSequence reference284 = ref span384[num]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list386 = new List(num2); - CollectionsMarshal.SetCount(list386, num2); - CollectionsMarshal.AsSpan(list386)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020656u, new Vector3(260.39514f, 322.83618f, 742.0309f), 620); + index2 = 1; + List list386 = new List(index2); + CollectionsMarshal.SetCount(list386, index2); + Span span386 = CollectionsMarshal.AsSpan(list386); + num2 = 0; + span386[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020656u, new Vector3(260.39514f, 322.83618f, 742.0309f), 620); obj242.Steps = list386; reference284 = obj242; questRoot46.QuestSequence = list384; @@ -164740,13 +198557,16 @@ public static class AssemblyQuestLoader num = 1; List list387 = new List(num); CollectionsMarshal.SetCount(list387, num); - CollectionsMarshal.AsSpan(list387)[0] = "JerryWester"; + Span span387 = CollectionsMarshal.AsSpan(list387); + index = 0; + span387[index] = "JerryWester"; questRoot47.Author = list387; - num = 7; - List list388 = new List(num); - CollectionsMarshal.SetCount(list388, num); - Span span159 = CollectionsMarshal.AsSpan(list388); - ref QuestSequence reference285 = ref span159[0]; + index = 7; + List list388 = new List(index); + CollectionsMarshal.SetCount(list388, index); + Span span388 = CollectionsMarshal.AsSpan(list388); + num = 0; + ref QuestSequence reference285 = ref span388[num]; QuestSequence obj243 = new QuestSequence { Sequence = 0 @@ -164754,24 +198574,30 @@ public static class AssemblyQuestLoader num2 = 1; List list389 = new List(num2); CollectionsMarshal.SetCount(list389, num2); - CollectionsMarshal.AsSpan(list389)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020656u, new Vector3(260.39514f, 322.83618f, 742.0309f), 620); + Span span389 = CollectionsMarshal.AsSpan(list389); + index2 = 0; + span389[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020656u, new Vector3(260.39514f, 322.83618f, 742.0309f), 620); obj243.Steps = list389; reference285 = obj243; - ref QuestSequence reference286 = ref span159[1]; + num++; + ref QuestSequence reference286 = ref span388[num]; QuestSequence obj244 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list390 = new List(num2); - CollectionsMarshal.SetCount(list390, num2); - CollectionsMarshal.AsSpan(list390)[0] = new QuestStep(EInteractionType.Interact, 1022370u, new Vector3(265.156f, 322.83618f, 746.94434f), 620) + index2 = 1; + List list390 = new List(index2); + CollectionsMarshal.SetCount(list390, index2); + Span span390 = CollectionsMarshal.AsSpan(list390); + num2 = 0; + span390[num2] = new QuestStep(EInteractionType.Interact, 1022370u, new Vector3(265.156f, 322.83618f, 746.94434f), 620) { StopDistance = 7f }; obj244.Steps = list390; reference286 = obj244; - ref QuestSequence reference287 = ref span159[2]; + num++; + ref QuestSequence reference287 = ref span388[num]; QuestSequence obj245 = new QuestSequence { Sequence = 2 @@ -164779,24 +198605,30 @@ public static class AssemblyQuestLoader num2 = 1; List list391 = new List(num2); CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.Interact, 1022371u, new Vector3(259.84583f, 322.83618f, 740.6881f), 620) + Span span391 = CollectionsMarshal.AsSpan(list391); + index2 = 0; + span391[index2] = new QuestStep(EInteractionType.Interact, 1022371u, new Vector3(259.84583f, 322.83618f, 740.6881f), 620) { StopDistance = 7f }; obj245.Steps = list391; reference287 = obj245; - ref QuestSequence reference288 = ref span159[3]; + num++; + ref QuestSequence reference288 = ref span388[num]; QuestSequence obj246 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list392 = new List(num2); - CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Interact, 1020653u, new Vector3(202.10571f, 311.14526f, 606.16455f), 620); + index2 = 1; + List list392 = new List(index2); + CollectionsMarshal.SetCount(list392, index2); + Span span392 = CollectionsMarshal.AsSpan(list392); + num2 = 0; + span392[num2] = new QuestStep(EInteractionType.Interact, 1020653u, new Vector3(202.10571f, 311.14526f, 606.16455f), 620); obj246.Steps = list392; reference288 = obj246; - ref QuestSequence reference289 = ref span159[4]; + num++; + ref QuestSequence reference289 = ref span388[num]; QuestSequence obj247 = new QuestSequence { Sequence = 4 @@ -164804,39 +198636,48 @@ public static class AssemblyQuestLoader num2 = 2; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - Span span160 = CollectionsMarshal.AsSpan(list393); - span160[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007984u, new Vector3(146.6239f, 303.7307f, 460.80713f), 620) + Span span393 = CollectionsMarshal.AsSpan(list393); + index2 = 0; + span393[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007984u, new Vector3(146.6239f, 303.7307f, 460.80713f), 620) { AetherCurrentId = 2818157u }; - ref QuestStep reference290 = ref span160[1]; + index2++; + ref QuestStep reference290 = ref span393[index2]; QuestStep obj248 = new QuestStep(EInteractionType.Combat, 1020657u, new Vector3(143.6637f, 298.43732f, 399.95422f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 3; - List list394 = new List(num3); - CollectionsMarshal.SetCount(list394, num3); - Span span161 = CollectionsMarshal.AsSpan(list394); - span161[0] = 7494u; - span161[1] = 7536u; - span161[2] = 7565u; + num4 = 3; + List list394 = new List(num4); + CollectionsMarshal.SetCount(list394, num4); + Span span394 = CollectionsMarshal.AsSpan(list394); + num3 = 0; + span394[num3] = 7494u; + num3++; + span394[num3] = 7536u; + num3++; + span394[num3] = 7565u; obj248.KillEnemyDataIds = list394; reference290 = obj248; obj247.Steps = list393; reference289 = obj247; - ref QuestSequence reference291 = ref span159[5]; + num++; + ref QuestSequence reference291 = ref span388[num]; QuestSequence obj249 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list395 = new List(num2); - CollectionsMarshal.SetCount(list395, num2); - CollectionsMarshal.AsSpan(list395)[0] = new QuestStep(EInteractionType.Interact, 1020658u, new Vector3(404.28784f, 334.2325f, 484.45862f), 620); + index2 = 1; + List list395 = new List(index2); + CollectionsMarshal.SetCount(list395, index2); + Span span395 = CollectionsMarshal.AsSpan(list395); + num2 = 0; + span395[num2] = new QuestStep(EInteractionType.Interact, 1020658u, new Vector3(404.28784f, 334.2325f, 484.45862f), 620); obj249.Steps = list395; reference291 = obj249; - ref QuestSequence reference292 = ref span159[6]; + num++; + ref QuestSequence reference292 = ref span388[num]; QuestSequence obj250 = new QuestSequence { Sequence = byte.MaxValue @@ -164844,7 +198685,9 @@ public static class AssemblyQuestLoader num2 = 1; List list396 = new List(num2); CollectionsMarshal.SetCount(list396, num2); - CollectionsMarshal.AsSpan(list396)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020660u, new Vector3(318.16577f, 324.3033f, 376.88245f), 620); + Span span396 = CollectionsMarshal.AsSpan(list396); + index2 = 0; + span396[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020660u, new Vector3(318.16577f, 324.3033f, 376.88245f), 620); obj250.Steps = list396; reference292 = obj250; questRoot47.QuestSequence = list388; @@ -164854,24 +198697,30 @@ public static class AssemblyQuestLoader num = 1; List list397 = new List(num); CollectionsMarshal.SetCount(list397, num); - CollectionsMarshal.AsSpan(list397)[0] = "JerryWester"; + Span span397 = CollectionsMarshal.AsSpan(list397); + index = 0; + span397[index] = "JerryWester"; questRoot48.Author = list397; - num = 4; - List list398 = new List(num); - CollectionsMarshal.SetCount(list398, num); - Span span162 = CollectionsMarshal.AsSpan(list398); - ref QuestSequence reference293 = ref span162[0]; + index = 4; + List list398 = new List(index); + CollectionsMarshal.SetCount(list398, index); + Span span398 = CollectionsMarshal.AsSpan(list398); + num = 0; + ref QuestSequence reference293 = ref span398[num]; QuestSequence obj251 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - CollectionsMarshal.AsSpan(list399)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020661u, new Vector3(316.823f, 324.3033f, 378.6526f), 620); + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + Span span399 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + span399[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020661u, new Vector3(316.823f, 324.3033f, 378.6526f), 620); obj251.Steps = list399; reference293 = obj251; - ref QuestSequence reference294 = ref span162[1]; + num++; + ref QuestSequence reference294 = ref span398[num]; QuestSequence obj252 = new QuestSequence { Sequence = 1 @@ -164879,7 +198728,9 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) + Span span400 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span400[index2] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -164890,18 +198741,22 @@ public static class AssemblyQuestLoader }; obj252.Steps = list400; reference294 = obj252; - ref QuestSequence reference295 = ref span162[2]; + num++; + ref QuestSequence reference295 = ref span398[num]; QuestSequence obj253 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list401 = new List(num2); - CollectionsMarshal.SetCount(list401, num2); - CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.Interact, 2008216u, new Vector3(-52.47583f, -0.015319824f, -23.39215f), 635); + index2 = 1; + List list401 = new List(index2); + CollectionsMarshal.SetCount(list401, index2); + Span span401 = CollectionsMarshal.AsSpan(list401); + num2 = 0; + span401[num2] = new QuestStep(EInteractionType.Interact, 2008216u, new Vector3(-52.47583f, -0.015319824f, -23.39215f), 635); obj253.Steps = list401; reference295 = obj253; - ref QuestSequence reference296 = ref span162[3]; + num++; + ref QuestSequence reference296 = ref span398[num]; QuestSequence obj254 = new QuestSequence { Sequence = byte.MaxValue @@ -164909,7 +198764,9 @@ public static class AssemblyQuestLoader num2 = 1; List list402 = new List(num2); CollectionsMarshal.SetCount(list402, num2); - CollectionsMarshal.AsSpan(list402)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020665u, new Vector3(-53.421875f, -0.11677644f, -28.610718f), 635) + Span span402 = CollectionsMarshal.AsSpan(list402); + index2 = 0; + span402[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020665u, new Vector3(-53.421875f, -0.11677644f, -28.610718f), 635) { StopDistance = 5f }; @@ -164922,21 +198779,26 @@ public static class AssemblyQuestLoader num = 1; List list403 = new List(num); CollectionsMarshal.SetCount(list403, num); - CollectionsMarshal.AsSpan(list403)[0] = "JerryWester"; + Span span403 = CollectionsMarshal.AsSpan(list403); + index = 0; + span403[index] = "JerryWester"; questRoot49.Author = list403; - num = 5; - List list404 = new List(num); - CollectionsMarshal.SetCount(list404, num); - Span span163 = CollectionsMarshal.AsSpan(list404); - ref QuestSequence reference297 = ref span163[0]; + index = 5; + List list404 = new List(index); + CollectionsMarshal.SetCount(list404, index); + Span span404 = CollectionsMarshal.AsSpan(list404); + num = 0; + ref QuestSequence reference297 = ref span404[num]; QuestSequence obj255 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list405 = new List(num2); - CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020665u, new Vector3(-53.421875f, -0.11677644f, -28.610718f), 635) + index2 = 1; + List list405 = new List(index2); + CollectionsMarshal.SetCount(list405, index2); + Span span405 = CollectionsMarshal.AsSpan(list405); + num2 = 0; + span405[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020665u, new Vector3(-53.421875f, -0.11677644f, -28.610718f), 635) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -164950,7 +198812,8 @@ public static class AssemblyQuestLoader }; obj255.Steps = list405; reference297 = obj255; - ref QuestSequence reference298 = ref span163[1]; + num++; + ref QuestSequence reference298 = ref span404[num]; QuestSequence obj256 = new QuestSequence { Sequence = 1 @@ -164958,24 +198821,29 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 1020412u, new Vector3(-137.74323f, 0.5980506f, -81.498474f), 635); + Span span406 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + span406[index2] = new QuestStep(EInteractionType.Interact, 1020412u, new Vector3(-137.74323f, 0.5980506f, -81.498474f), 635); obj256.Steps = list406; reference298 = obj256; - ref QuestSequence reference299 = ref span163[2]; + num++; + ref QuestSequence reference299 = ref span404[num]; QuestSequence obj257 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list407 = new List(num2); - CollectionsMarshal.SetCount(list407, num2); - Span span164 = CollectionsMarshal.AsSpan(list407); - span164[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.59692f, 257.52652f, 737.01855f), 620) + index2 = 4; + List list407 = new List(index2); + CollectionsMarshal.SetCount(list407, index2); + Span span407 = CollectionsMarshal.AsSpan(list407); + num2 = 0; + span407[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.59692f, 257.52652f, 737.01855f), 620) { Mount = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; - span164[1] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) + num2++; + span407[num2] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) { TargetTerritoryId = (ushort)620, SkipConditions = new SkipConditions @@ -164986,7 +198854,8 @@ public static class AssemblyQuestLoader } } }; - span164[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) + num2++; + span407[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) { SkipConditions = new SkipConditions { @@ -164996,13 +198865,15 @@ public static class AssemblyQuestLoader } } }; - span164[3] = new QuestStep(EInteractionType.Interact, 1020649u, new Vector3(570.94666f, 344.1177f, 422.17126f), 620) + num2++; + span407[num2] = new QuestStep(EInteractionType.Interact, 1020649u, new Vector3(570.94666f, 344.1177f, 422.17126f), 620) { Fly = true }; obj257.Steps = list407; reference299 = obj257; - ref QuestSequence reference300 = ref span163[3]; + num++; + ref QuestSequence reference300 = ref span404[num]; QuestSequence obj258 = new QuestSequence { Sequence = 3 @@ -165010,23 +198881,28 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(590.9373f, 344.0868f, 421.07693f), 620); + Span span408 = CollectionsMarshal.AsSpan(list408); + index2 = 0; + span408[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(590.9373f, 344.0868f, 421.07693f), 620); obj258.Steps = list408; reference300 = obj258; - ref QuestSequence reference301 = ref span163[4]; + num++; + ref QuestSequence reference301 = ref span404[num]; QuestSequence obj259 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list409 = new List(num2); - CollectionsMarshal.SetCount(list409, num2); - Span span165 = CollectionsMarshal.AsSpan(list409); - span165[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 621) + index2 = 2; + List list409 = new List(index2); + CollectionsMarshal.SetCount(list409, index2); + Span span409 = CollectionsMarshal.AsSpan(list409); + num2 = 0; + span409[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 621) { Aetheryte = EAetheryteLocation.LochsPortaPraetoria }; - span165[1] = new QuestStep(EInteractionType.CompleteQuest, 1021704u, new Vector3(-651.51447f, 50.000015f, -3.1281738f), 621); + num2++; + span409[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021704u, new Vector3(-651.51447f, 50.000015f, -3.1281738f), 621); obj259.Steps = list409; reference301 = obj259; questRoot49.QuestSequence = list404; @@ -165036,13 +198912,16 @@ public static class AssemblyQuestLoader num = 1; List list410 = new List(num); CollectionsMarshal.SetCount(list410, num); - CollectionsMarshal.AsSpan(list410)[0] = "JerryWester"; + Span span410 = CollectionsMarshal.AsSpan(list410); + index = 0; + span410[index] = "JerryWester"; questRoot50.Author = list410; - num = 3; - List list411 = new List(num); - CollectionsMarshal.SetCount(list411, num); - Span span166 = CollectionsMarshal.AsSpan(list411); - ref QuestSequence reference302 = ref span166[0]; + index = 3; + List list411 = new List(index); + CollectionsMarshal.SetCount(list411, index); + Span span411 = CollectionsMarshal.AsSpan(list411); + num = 0; + ref QuestSequence reference302 = ref span411[num]; QuestSequence obj260 = new QuestSequence { Sequence = 0 @@ -165050,7 +198929,9 @@ public static class AssemblyQuestLoader num2 = 1; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - CollectionsMarshal.AsSpan(list412)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021704u, new Vector3(-651.51447f, 50.000015f, -3.1281738f), 621) + Span span412 = CollectionsMarshal.AsSpan(list412); + index2 = 0; + span412[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021704u, new Vector3(-651.51447f, 50.000015f, -3.1281738f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -165063,16 +198944,18 @@ public static class AssemblyQuestLoader }; obj260.Steps = list412; reference302 = obj260; - ref QuestSequence reference303 = ref span166[1]; + num++; + ref QuestSequence reference303 = ref span411[num]; QuestSequence obj261 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - Span span167 = CollectionsMarshal.AsSpan(list413); - ref QuestStep reference304 = ref span167[0]; + index2 = 4; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + Span span413 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + ref QuestStep reference304 = ref span413[num2]; QuestStep obj262 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-791.2012f, 46.3994f, -15.904689f), 621) { TargetTerritoryId = (ushort)620 @@ -165082,25 +198965,32 @@ public static class AssemblyQuestLoader num3 = 1; List list414 = new List(num3); CollectionsMarshal.SetCount(list414, num3); - CollectionsMarshal.AsSpan(list414)[0] = 620; + Span span414 = CollectionsMarshal.AsSpan(list414); + num4 = 0; + span414[num4] = 620; skipStepConditions2.InTerritory = list414; - num3 = 1; - List list415 = new List(num3); - CollectionsMarshal.SetCount(list415, num3); - CollectionsMarshal.AsSpan(list415)[0] = new QuestId(2860); + num4 = 1; + List list415 = new List(num4); + CollectionsMarshal.SetCount(list415, num4); + Span span415 = CollectionsMarshal.AsSpan(list415); + num3 = 0; + span415[num3] = new QuestId(2860); skipStepConditions2.QuestsCompleted = list415; skipConditions2.StepIf = skipStepConditions2; obj262.SkipConditions = skipConditions2; reference304 = obj262; - span167[1] = new QuestStep(EInteractionType.AcceptQuest, 1023167u, new Vector3(313.28296f, 324.51355f, 362.4475f), 620) + num2++; + span413[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023167u, new Vector3(313.28296f, 324.51355f, 362.4475f), 620) { PickUpQuestId = new QuestId(2851) }; - span167[2] = new QuestStep(EInteractionType.AcceptQuest, 1020893u, new Vector3(283.77197f, 322.87146f, 752.34607f), 620) + num2++; + span413[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020893u, new Vector3(283.77197f, 322.87146f, 752.34607f), 620) { PickUpQuestId = new QuestId(2860) }; - ref QuestStep reference305 = ref span167[3]; + num2++; + ref QuestStep reference305 = ref span413[num2]; QuestStep obj263 = new QuestStep(EInteractionType.SinglePlayerDuty, 1021705u, new Vector3(-649.897f, 50.00002f, -1.9990234f), 621) { StopDistance = 7f, @@ -165110,13 +199000,16 @@ public static class AssemblyQuestLoader num3 = 1; List list416 = new List(num3); CollectionsMarshal.SetCount(list416, num3); - CollectionsMarshal.AsSpan(list416)[0] = "Navigation gets stuck in various places"; + Span span416 = CollectionsMarshal.AsSpan(list416); + num4 = 0; + span416[num4] = "Navigation gets stuck in various places"; singlePlayerDutyOptions.Notes = list416; obj263.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference305 = obj263; obj261.Steps = list413; reference303 = obj261; - ref QuestSequence reference306 = ref span166[2]; + num++; + ref QuestSequence reference306 = ref span411[num]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue @@ -165124,7 +199017,9 @@ public static class AssemblyQuestLoader num2 = 1; List list417 = new List(num2); CollectionsMarshal.SetCount(list417, num2); - CollectionsMarshal.AsSpan(list417)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021710u, new Vector3(66.544556f, 45.410225f, 766.47595f), 621) + Span span417 = CollectionsMarshal.AsSpan(list417); + index2 = 0; + span417[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021710u, new Vector3(66.544556f, 45.410225f, 766.47595f), 621) { StopDistance = 5f }; @@ -165141,13 +199036,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 7; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -165155,37 +199053,45 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021710u, new Vector3(66.544556f, 45.410225f, 766.47595f), 621) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021710u, new Vector3(66.544556f, 45.410225f, 766.47595f), 621) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007992u, new Vector3(109.60547f, 41.97754f, 788.63196f), 621) + index2 = 4; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007992u, new Vector3(109.60547f, 41.97754f, 788.63196f), 621) { AetherCurrentId = 2818170u }; - span2[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(93.08614f, 42.177456f, 772.668f), 621) + num2++; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(93.08614f, 42.177456f, 772.668f), 621) { Mount = true }; - span2[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(75.00177f, 45.410225f, 755.10895f), 621) + num2++; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(75.00177f, 45.410225f, 755.10895f), 621) { DisableNavmesh = true }; - span2[3] = new QuestStep(EInteractionType.Interact, 1021712u, new Vector3(210.98645f, -0.3f, 340.3219f), 621); + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 1021712u, new Vector3(210.98645f, -0.3f, 340.3219f), 621); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -165193,37 +199099,44 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(195.84085f, -0.6f, 315.3333f), 621) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(195.84085f, -0.6f, 315.3333f), 621) { StopDistance = 0.25f }; - span3[1] = new QuestStep(EInteractionType.Interact, 1021714u, new Vector3(317.03674f, -94.16345f, 350.91174f), 621); + index2++; + span5[index2] = new QuestStep(EInteractionType.Interact, 1021714u, new Vector3(317.03674f, -94.16345f, 350.91174f), 621); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(509.62668f, -21.210978f, 478.69604f), 621) + index2 = 3; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(509.62668f, -21.210978f, 478.69604f), 621) { StopDistance = 0.25f, RestartNavigationIfCancelled = false }; - span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(515.8843f, 0f, 468.1183f), 621) + num2++; + span6[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(515.8843f, 0f, 468.1183f), 621) { StopDistance = 0.25f, DisableNavmesh = true }; - span4[2] = new QuestStep(EInteractionType.Interact, 1021716u, new Vector3(675.95935f, 60f, 460.34937f), 621); + num2++; + span6[num2] = new QuestStep(EInteractionType.Interact, 1021716u, new Vector3(675.95935f, 60f, 460.34937f), 621); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -165231,7 +199144,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list7)[0]; + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + ref QuestStep reference6 = ref span7[index2]; QuestStep questStep = new QuestStep(EInteractionType.SinglePlayerDuty, 1021716u, new Vector3(675.95935f, 60f, 460.34937f), 621); SinglePlayerDutyOptions obj6 = new SinglePlayerDutyOptions { @@ -165240,25 +199155,31 @@ public static class AssemblyQuestLoader int num3 = 1; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = "(Fordola) Gets hit by AOEs due to moving into them before the mechanic resolves"; + Span span8 = CollectionsMarshal.AsSpan(list8); + int index3 = 0; + span8[index3] = "(Fordola) Gets hit by AOEs due to moving into them before the mechanic resolves"; obj6.Notes = list8; questStep.SinglePlayerDutyOptions = obj6; reference6 = questStep; obj5.Steps = list7; reference5 = obj5; - span[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference7 = ref span[6]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021717u, new Vector3(756.9542f, 70f, 445.45654f), 621); + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021717u, new Vector3(756.9542f, 70f, 445.45654f), 621); obj7.Steps = list9; reference7 = obj7; questRoot.QuestSequence = list2; @@ -165268,13 +199189,16 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "JerryWester"; + Span span10 = CollectionsMarshal.AsSpan(list10); + index = 0; + span10[index] = "JerryWester"; questRoot2.Author = list10; - num = 6; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - Span span5 = CollectionsMarshal.AsSpan(list11); - ref QuestSequence reference8 = ref span5[0]; + index = 6; + List list11 = new List(index); + CollectionsMarshal.SetCount(list11, index); + Span span11 = CollectionsMarshal.AsSpan(list11); + num = 0; + ref QuestSequence reference8 = ref span11[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -165282,30 +199206,37 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021717u, new Vector3(756.9542f, 70f, 445.45654f), 621); + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021717u, new Vector3(756.9542f, 70f, 445.45654f), 621); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span5[1]; + num++; + ref QuestSequence reference9 = ref span11[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - Span span6 = CollectionsMarshal.AsSpan(list13); - span6[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007994u, new Vector3(683.40576f, 69.99304f, 521.1719f), 621) + index2 = 3; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007994u, new Vector3(683.40576f, 69.99304f, 521.1719f), 621) { AetherCurrentId = 2818172u }; - span6[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 621) + num2++; + span13[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 621) { Aetheryte = EAetheryteLocation.LochsAlaMhiganQuarter }; - span6[2] = new QuestStep(EInteractionType.Interact, 1022733u, new Vector3(643.67126f, 80f, 654.16943f), 621); + num2++; + span13[num2] = new QuestStep(EInteractionType.Interact, 1022733u, new Vector3(643.67126f, 80f, 654.16943f), 621); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span5[2]; + num++; + ref QuestSequence reference10 = ref span11[num]; QuestSequence obj10 = new QuestSequence { Sequence = 2 @@ -165313,29 +199244,35 @@ public static class AssemblyQuestLoader num2 = 2; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span7 = CollectionsMarshal.AsSpan(list14); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-672.0402f, 49.99975f, 15.600315f), 621) + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-672.0402f, 49.99975f, 15.600315f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; - span7[1] = new QuestStep(EInteractionType.Interact, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621); + index2++; + span14[index2] = new QuestStep(EInteractionType.Interact, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621); obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span5[3]; + num++; + ref QuestSequence reference11 = ref span11[num]; QuestSequence obj11 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1021719u, new Vector3(-669.21497f, 50.01024f, 17.92926f), 621) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.Interact, 1021719u, new Vector3(-669.21497f, 50.01024f, 17.92926f), 621) { StopDistance = 5f }; obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference12 = ref span5[4]; + num++; + ref QuestSequence reference12 = ref span11[num]; QuestSequence obj12 = new QuestSequence { Sequence = 4 @@ -165343,60 +199280,84 @@ public static class AssemblyQuestLoader num2 = 3; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span8 = CollectionsMarshal.AsSpan(list16); - ref QuestStep reference13 = ref span8[0]; + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + ref QuestStep reference13 = ref span16[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1021703u, new Vector3(-631.4946f, 53.75f, 13.717773f), 621); - num3 = 6; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - Span span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list17 = new List(index3); + CollectionsMarshal.SetCount(list17, index3); + Span span17 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span17[num3] = null; + num3++; + span17[num3] = null; + num3++; + span17[num3] = null; + num3++; + span17[num3] = null; + num3++; + span17[num3] = null; + num3++; + span17[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list17; reference13 = questStep2; - ref QuestStep reference14 = ref span8[1]; + index2++; + ref QuestStep reference14 = ref span16[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1021701u, new Vector3(-599.38965f, 33.999783f, 0.5340576f), 621); num3 = 6; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span10 = CollectionsMarshal.AsSpan(list18); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span18 = CollectionsMarshal.AsSpan(list18); + index3 = 0; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list18; reference14 = questStep3; - ref QuestStep reference15 = ref span8[2]; + index2++; + ref QuestStep reference15 = ref span16[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1021702u, new Vector3(-589.9901f, 33.999954f, -4.043701f), 621); - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span11 = CollectionsMarshal.AsSpan(list19); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list19; reference15 = questStep4; obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference16 = ref span5[5]; + num++; + ref QuestSequence reference16 = ref span11[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621); + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621); obj13.Steps = list20; reference16 = obj13; questRoot2.QuestSequence = list11; @@ -165406,13 +199367,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "JerryWester"; + Span span21 = CollectionsMarshal.AsSpan(list21); + index = 0; + span21[index] = "JerryWester"; questRoot3.Author = list21; - num = 5; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span12 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference17 = ref span12[0]; + index = 5; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + Span span22 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference17 = ref span22[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -165420,7 +199384,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -165433,39 +199399,47 @@ public static class AssemblyQuestLoader }; obj14.Steps = list23; reference17 = obj14; - ref QuestSequence reference18 = ref span12[1]; + num++; + ref QuestSequence reference18 = ref span22[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span13 = CollectionsMarshal.AsSpan(list24); - span13[0] = new QuestStep(EInteractionType.AcceptQuest, 1022987u, new Vector3(-662.13477f, 49.999794f, -48.874695f), 621) + index2 = 6; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022987u, new Vector3(-662.13477f, 49.999794f, -48.874695f), 621) { PickUpQuestId = new QuestId(2881) }; - span13[1] = new QuestStep(EInteractionType.AcceptQuest, 1022992u, new Vector3(-506.6148f, 8.7f, -40.299072f), 621) + num2++; + span24[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022992u, new Vector3(-506.6148f, 8.7f, -40.299072f), 621) { PickUpQuestId = new QuestId(2877) }; - span13[2] = new QuestStep(EInteractionType.AcceptQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) + num2++; + span24[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) { PickUpQuestId = new QuestId(2880) }; - span13[3] = new QuestStep(EInteractionType.AcceptQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) + num2++; + span24[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) { PickUpQuestId = new QuestId(2883) }; - span13[4] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007993u, new Vector3(261.5243f, 78.3855f, 69.93213f), 621) + num2++; + span24[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007993u, new Vector3(261.5243f, 78.3855f, 69.93213f), 621) { AetherCurrentId = 2818171u }; - span13[5] = new QuestStep(EInteractionType.Interact, 1021722u, new Vector3(336.04932f, 78.00011f, 44.022217f), 621); + num2++; + span24[num2] = new QuestStep(EInteractionType.Interact, 1021722u, new Vector3(336.04932f, 78.00011f, 44.022217f), 621); obj15.Steps = list24; reference18 = obj15; - ref QuestSequence reference19 = ref span12[2]; + num++; + ref QuestSequence reference19 = ref span22[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -165473,7 +199447,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022738u, new Vector3(509.60547f, 111.16203f, -107.133606f), 621) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022738u, new Vector3(509.60547f, 111.16203f, -107.133606f), 621) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -165482,20 +199458,25 @@ public static class AssemblyQuestLoader }; obj16.Steps = list25; reference19 = obj16; - ref QuestSequence reference20 = ref span12[3]; + num++; + ref QuestSequence reference20 = ref span22[num]; QuestSequence obj17 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list26)[0]; + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + ref QuestStep reference21 = ref span26[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1022739u, new Vector3(509.72766f, 111.38903f, -110.826355f), 621); num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = new DialogueChoice + Span span27 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + span27[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA705_02552_Q1_000_075"), @@ -165505,7 +199486,8 @@ public static class AssemblyQuestLoader reference21 = questStep5; obj17.Steps = list26; reference20 = obj17; - ref QuestSequence reference22 = ref span12[4]; + num++; + ref QuestSequence reference22 = ref span22[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -165513,7 +199495,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021724u, new Vector3(560.0519f, 162f, 72.28198f), 621); + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021724u, new Vector3(560.0519f, 162f, 72.28198f), 621); obj18.Steps = list28; reference22 = obj18; questRoot3.QuestSequence = list22; @@ -165523,24 +199507,30 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + span29[index] = "JerryWester"; questRoot4.Author = list29; - num = 9; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span14 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference23 = ref span14[0]; + index = 9; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + Span span30 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference23 = ref span30[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021724u, new Vector3(560.0519f, 162f, 72.28198f), 621); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021724u, new Vector3(560.0519f, 162f, 72.28198f), 621); obj19.Steps = list31; reference23 = obj19; - ref QuestSequence reference24 = ref span14[1]; + num++; + ref QuestSequence reference24 = ref span30[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -165548,7 +199538,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Duty, null, null, 621) + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.Duty, null, null, 621) { DutyOptions = new DutyOptions { @@ -165557,19 +199549,23 @@ public static class AssemblyQuestLoader }; obj20.Steps = list32; reference24 = obj20; - span14[2] = new QuestSequence + num++; + span30[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference25 = ref span14[3]; + num++; + ref QuestSequence reference25 = ref span30[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Duty, null, null, 621) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.Duty, null, null, 621) { DutyOptions = new DutyOptions { @@ -165578,11 +199574,13 @@ public static class AssemblyQuestLoader }; obj21.Steps = list33; reference25 = obj21; - span14[4] = new QuestSequence + num++; + span30[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference26 = ref span14[5]; + num++; + ref QuestSequence reference26 = ref span30[num]; QuestSequence obj22 = new QuestSequence { Sequence = 5 @@ -165590,36 +199588,47 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1020356u, new Vector3(-584.4968f, 21.62428f, -11.947815f), 621) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.Interact, 1020356u, new Vector3(-584.4968f, 21.62428f, -11.947815f), 621) { StopDistance = 7f }; obj22.Steps = list34; reference26 = obj22; - ref QuestSequence reference27 = ref span14[6]; + num++; + ref QuestSequence reference27 = ref span30[num]; QuestSequence obj23 = new QuestSequence { Sequence = 6 }; - num2 = 5; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span15 = CollectionsMarshal.AsSpan(list35); - ref QuestStep reference28 = ref span15[0]; + index2 = 5; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + ref QuestStep reference28 = ref span35[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1021726u, new Vector3(-615.198f, 34.00002f, -7.1870728f), 621); - num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span16 = CollectionsMarshal.AsSpan(list36); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + Span span36 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list36; reference28 = questStep6; - ref QuestStep reference29 = ref span15[1]; + num2++; + ref QuestStep reference29 = ref span35[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1021704u, new Vector3(-651.51447f, 50.000015f, -3.1281738f), 621) { StopDistance = 1f @@ -165627,34 +199636,49 @@ public static class AssemblyQuestLoader num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span17 = CollectionsMarshal.AsSpan(list37); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span37 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj24.CompletionQuestVariablesFlags = list37; reference29 = obj24; - ref QuestStep reference30 = ref span15[2]; + num2++; + ref QuestStep reference30 = ref span35[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1022724u, new Vector3(-650.3243f, 50.00002f, 0.869751f), 621) { StopDistance = 7f }; - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span18 = CollectionsMarshal.AsSpan(list38); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj25.CompletionQuestVariablesFlags = list38; reference30 = obj25; - span15[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-668.1697f, 49.99959f, 10.722498f), 621); - ref QuestStep reference31 = ref span15[4]; + num2++; + span35[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-668.1697f, 49.99959f, 10.722498f), 621); + num2++; + ref QuestStep reference31 = ref span35[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621) { StopDistance = 7f @@ -165662,18 +199686,25 @@ public static class AssemblyQuestLoader num3 = 6; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - Span span19 = CollectionsMarshal.AsSpan(list39); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span39 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj26.CompletionQuestVariablesFlags = list39; reference31 = obj26; obj23.Steps = list35; reference27 = obj23; - ref QuestSequence reference32 = ref span14[7]; + num++; + ref QuestSequence reference32 = ref span30[num]; QuestSequence obj27 = new QuestSequence { Sequence = 7 @@ -165681,18 +199712,23 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1020356u, new Vector3(-584.4968f, 21.62428f, -11.947815f), 621); + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = new QuestStep(EInteractionType.Interact, 1020356u, new Vector3(-584.4968f, 21.62428f, -11.947815f), 621); obj27.Steps = list40; reference32 = obj27; - ref QuestSequence reference33 = ref span14[8]; + num++; + ref QuestSequence reference33 = ref span30[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021728u, new Vector3(65.384766f, -0.41614467f, -80.24719f), 635); + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021728u, new Vector3(65.384766f, -0.41614467f, -80.24719f), 635); obj28.Steps = list41; reference33 = obj28; questRoot4.QuestSequence = list30; @@ -165702,13 +199738,16 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "liza"; + Span span42 = CollectionsMarshal.AsSpan(list42); + index = 0; + span42[index] = "liza"; questRoot5.Author = list42; - num = 3; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span20 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference34 = ref span20[0]; + index = 3; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + Span span43 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference34 = ref span43[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -165716,7 +199755,9 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021829u, new Vector3(-98.435974f, 4f, -104.997375f), 130) + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021829u, new Vector3(-98.435974f, 4f, -104.997375f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -165729,15 +199770,18 @@ public static class AssemblyQuestLoader }; obj29.Steps = list44; reference34 = obj29; - ref QuestSequence reference35 = ref span20[1]; + num++; + ref QuestSequence reference35 = ref span43[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1021830u, new Vector3(-102.06769f, 6.9845653f, 12.008789f), 131) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span45[num2] = new QuestStep(EInteractionType.Interact, 1021830u, new Vector3(-102.06769f, 6.9845653f, 12.008789f), 131) { AethernetShortcut = new AethernetShortcut { @@ -165747,7 +199791,8 @@ public static class AssemblyQuestLoader }; obj30.Steps = list45; reference35 = obj30; - ref QuestSequence reference36 = ref span20[2]; + num++; + ref QuestSequence reference36 = ref span43[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -165755,7 +199800,9 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021834u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131) + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021834u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131) { NextQuestId = new QuestId(2560) }; @@ -165768,22 +199815,26 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "liza"; + Span span47 = CollectionsMarshal.AsSpan(list47); + index = 0; + span47[index] = "liza"; questRoot6.Author = list47; - num = 4; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span21 = CollectionsMarshal.AsSpan(list48); - ref QuestSequence reference37 = ref span21[0]; + index = 4; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + Span span48 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref QuestSequence reference37 = ref span48[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - num2 = 4; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span22 = CollectionsMarshal.AsSpan(list49); - ref QuestStep reference38 = ref span22[0]; + index2 = 4; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref QuestStep reference38 = ref span49[num2]; QuestStep obj33 = new QuestStep(EInteractionType.EquipItem, null, null, 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -165808,15 +199859,18 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = 131; + index3 = 1; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + Span span50 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span50[num3] = 131; obj35.InTerritory = list50; obj34.AetheryteShortcutIf = obj35; obj33.SkipConditions = obj34; reference38 = obj33; - span22[1] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131) + num2++; + span49[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131) { ItemId = 20620u, SkipConditions = new SkipConditions @@ -165830,11 +199884,14 @@ public static class AssemblyQuestLoader } } }; - span22[2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 131); - span22[3] = new QuestStep(EInteractionType.AcceptQuest, 1023637u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131); + num2++; + span49[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 131); + num2++; + span49[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023637u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131); obj32.Steps = list49; reference37 = obj32; - ref QuestSequence reference39 = ref span21[1]; + num++; + ref QuestSequence reference39 = ref span48[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -165842,18 +199899,23 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023637u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131); + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023637u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131); obj36.Steps = list51; reference39 = obj36; - ref QuestSequence reference40 = ref span21[2]; + num++; + ref QuestSequence reference40 = ref span48[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list52)[0]; + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + ref QuestStep reference41 = ref span52[num2]; QuestStep obj38 = new QuestStep(EInteractionType.Interact, 1023637u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131) { StopDistance = 5f @@ -165861,7 +199923,9 @@ public static class AssemblyQuestLoader num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice + Span span53 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span53[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBSAM501_02560_Q1_000_035") @@ -165870,7 +199934,8 @@ public static class AssemblyQuestLoader reference41 = obj38; obj37.Steps = list52; reference40 = obj37; - ref QuestSequence reference42 = ref span21[3]; + num++; + ref QuestSequence reference42 = ref span48[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -165878,7 +199943,9 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021835u, new Vector3(35.66028f, 6.9999986f, -82.993835f), 130) + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021835u, new Vector3(35.66028f, 6.9999986f, -82.993835f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -165897,21 +199964,26 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; + Span span55 = CollectionsMarshal.AsSpan(list55); + index = 0; + span55[index] = "liza"; questRoot7.Author = list55; - num = 8; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span23 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference43 = ref span23[0]; + index = 8; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + Span span56 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference43 = ref span56[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021835u, new Vector3(35.66028f, 6.9999986f, -82.993835f), 130) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021835u, new Vector3(35.66028f, 6.9999986f, -82.993835f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -165929,7 +200001,8 @@ public static class AssemblyQuestLoader }; obj40.Steps = list57; reference43 = obj40; - ref QuestSequence reference44 = ref span23[1]; + num++; + ref QuestSequence reference44 = ref span56[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 @@ -165937,8 +200010,9 @@ public static class AssemblyQuestLoader num2 = 4; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span24 = CollectionsMarshal.AsSpan(list58); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.90921f, 4.650242f, 238.56398f), 141) + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.90921f, 4.650242f, 238.56398f), 141) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -165947,62 +200021,87 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfNald } }; - ref QuestStep reference45 = ref span24[1]; + index2++; + ref QuestStep reference45 = ref span58[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1021843u, new Vector3(-164.3855f, 4.2354193f, 234.36328f), 141); - num3 = 6; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - Span span25 = CollectionsMarshal.AsSpan(list59); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list59 = new List(index3); + CollectionsMarshal.SetCount(list59, index3); + Span span59 = CollectionsMarshal.AsSpan(list59); + num3 = 0; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list59; reference45 = questStep7; - ref QuestStep reference46 = ref span24[2]; + index2++; + ref QuestStep reference46 = ref span58[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1021844u, new Vector3(-157.27478f, 4.2354183f, 205.46265f), 141); num3 = 6; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - Span span26 = CollectionsMarshal.AsSpan(list60); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span60 = CollectionsMarshal.AsSpan(list60); + index3 = 0; + span60[index3] = null; + index3++; + span60[index3] = null; + index3++; + span60[index3] = null; + index3++; + span60[index3] = null; + index3++; + span60[index3] = null; + index3++; + span60[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list60; reference46 = questStep8; - ref QuestStep reference47 = ref span24[3]; + index2++; + ref QuestStep reference47 = ref span58[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1021845u, new Vector3(-138.59778f, 4.211028f, 223.95667f), 141); - num3 = 6; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span27 = CollectionsMarshal.AsSpan(list61); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list61; reference47 = questStep9; obj41.Steps = list58; reference44 = obj41; - ref QuestSequence reference48 = ref span23[2]; + num++; + ref QuestSequence reference48 = ref span56[num]; QuestSequence obj42 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1021847u, new Vector3(-153.0633f, 4.2354183f, 226.55066f), 141); + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.Interact, 1021847u, new Vector3(-153.0633f, 4.2354183f, 226.55066f), 141); obj42.Steps = list62; reference48 = obj42; - ref QuestSequence reference49 = ref span23[3]; + num++; + ref QuestSequence reference49 = ref span56[num]; QuestSequence obj43 = new QuestSequence { Sequence = 3 @@ -166010,24 +200109,30 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1022092u, new Vector3(-132.31104f, 3.9113228f, 221.20996f), 141); + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.Interact, 1022092u, new Vector3(-132.31104f, 3.9113228f, 221.20996f), 141); obj43.Steps = list63; reference49 = obj43; - ref QuestSequence reference50 = ref span23[4]; + num++; + ref QuestSequence reference50 = ref span56[num]; QuestSequence obj44 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1021849u, new Vector3(91.17261f, 0.95918494f, 345.6931f), 141) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.Interact, 1021849u, new Vector3(91.17261f, 0.95918494f, 345.6931f), 141) { Fly = true }; obj44.Steps = list64; reference50 = obj44; - ref QuestSequence reference51 = ref span23[5]; + num++; + ref QuestSequence reference51 = ref span56[num]; QuestSequence obj45 = new QuestSequence { Sequence = 5 @@ -166035,7 +200140,9 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - ref QuestStep reference52 = ref CollectionsMarshal.AsSpan(list65)[0]; + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + ref QuestStep reference52 = ref span65[index2]; QuestStep obj46 = new QuestStep(EInteractionType.Combat, null, new Vector3(101.36345f, 1.4716027f, 356.92258f), 141) { StopDistance = 0.5f, @@ -166044,26 +200151,32 @@ public static class AssemblyQuestLoader num3 = 1; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = 7237u; + Span span66 = CollectionsMarshal.AsSpan(list66); + index3 = 0; + span66[index3] = 7237u; obj46.KillEnemyDataIds = list66; reference52 = obj46; obj45.Steps = list65; reference51 = obj45; - ref QuestSequence reference53 = ref span23[6]; + num++; + ref QuestSequence reference53 = ref span56[num]; QuestSequence obj47 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1021854u, new Vector3(106.06543f, 1.957012f, 360.15857f), 141) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.Interact, 1021854u, new Vector3(106.06543f, 1.957012f, 360.15857f), 141) { StopDistance = 7f }; obj47.Steps = list67; reference53 = obj47; - ref QuestSequence reference54 = ref span23[7]; + num++; + ref QuestSequence reference54 = ref span56[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -166071,7 +200184,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021858u, new Vector3(9.536865f, 40.00023f, -15.213318f), 128) + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021858u, new Vector3(9.536865f, 40.00023f, -15.213318f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -166090,21 +200205,26 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "liza"; + Span span69 = CollectionsMarshal.AsSpan(list69); + index = 0; + span69[index] = "liza"; questRoot8.Author = list69; - num = 7; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span28 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference55 = ref span28[0]; + index = 7; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + Span span70 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference55 = ref span70[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list71)[0]; + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + ref QuestStep reference56 = ref span71[num2]; QuestStep obj50 = new QuestStep(EInteractionType.AcceptQuest, 1021858u, new Vector3(9.536865f, 40.00023f, -15.213318f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -166119,17 +200239,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = 128; + index3 = 1; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + Span span72 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span72[num3] = 128; obj51.InTerritory = list72; skipConditions.AetheryteShortcutIf = obj51; obj50.SkipConditions = skipConditions; reference56 = obj50; obj49.Steps = list71; reference55 = obj49; - ref QuestSequence reference57 = ref span28[1]; + num++; + ref QuestSequence reference57 = ref span70[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -166137,8 +200260,9 @@ public static class AssemblyQuestLoader num2 = 3; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span29 = CollectionsMarshal.AsSpan(list73); - ref QuestStep reference58 = ref span29[0]; + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + ref QuestStep reference58 = ref span73[index2]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1001217u, new Vector3(-140.85602f, 18.199999f, 17.013733f), 129) { AethernetShortcut = new AethernetShortcut @@ -166150,57 +200274,81 @@ public static class AssemblyQuestLoader num3 = 6; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - Span span30 = CollectionsMarshal.AsSpan(list74); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span74 = CollectionsMarshal.AsSpan(list74); + index3 = 0; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj53.CompletionQuestVariablesFlags = list74; reference58 = obj53; - ref QuestStep reference59 = ref span29[1]; + index2++; + ref QuestStep reference59 = ref span73[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1001208u, new Vector3(-228.16821f, 16f, 50.644653f), 129); - num3 = 6; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - Span span31 = CollectionsMarshal.AsSpan(list75); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span75 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list75; reference59 = questStep10; - ref QuestStep reference60 = ref span29[2]; + index2++; + ref QuestStep reference60 = ref span73[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1003272u, new Vector3(-262.92822f, 16.2f, 51.407593f), 129); num3 = 6; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span32 = CollectionsMarshal.AsSpan(list76); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span76 = CollectionsMarshal.AsSpan(list76); + index3 = 0; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list76; reference60 = questStep11; obj52.Steps = list73; reference57 = obj52; - ref QuestSequence reference61 = ref span28[2]; + num++; + ref QuestSequence reference61 = ref span70[num]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1021860u, new Vector3(-205.70691f, 16f, 52.8114f), 129); + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.Interact, 1021860u, new Vector3(-205.70691f, 16f, 52.8114f), 129); obj54.Steps = list77; reference61 = obj54; - ref QuestSequence reference62 = ref span28[3]; + num++; + ref QuestSequence reference62 = ref span70[num]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -166208,7 +200356,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1021862u, new Vector3(-176.62323f, 4f, 181.65857f), 129) + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.Interact, 1021862u, new Vector3(-176.62323f, 4f, 181.65857f), 129) { StopDistance = 7f, AethernetShortcut = new AethernetShortcut @@ -166219,22 +200369,26 @@ public static class AssemblyQuestLoader }; obj55.Steps = list78; reference62 = obj55; - ref QuestSequence reference63 = ref span28[4]; + num++; + ref QuestSequence reference63 = ref span70[num]; QuestSequence obj56 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj56.Steps = list79; reference63 = obj56; - ref QuestSequence reference64 = ref span28[5]; + num++; + ref QuestSequence reference64 = ref span70[num]; QuestSequence obj57 = new QuestSequence { Sequence = 5 @@ -166242,21 +200396,26 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021866u, new Vector3(673.54834f, 11.594437f, 390.7378f), 137) + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021866u, new Vector3(673.54834f, 11.594437f, 390.7378f), 137) { Fly = true }; obj57.Steps = list80; reference64 = obj57; - ref QuestSequence reference65 = ref span28[6]; + num++; + ref QuestSequence reference65 = ref span70[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021869u, new Vector3(43.259277f, -8f, 99.19885f), 132) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021869u, new Vector3(43.259277f, -8f, 99.19885f), 132) { StopDistance = 1.5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -166271,13 +200430,16 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "liza"; + Span span82 = CollectionsMarshal.AsSpan(list82); + index = 0; + span82[index] = "liza"; questRoot9.Author = list82; - num = 9; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span33 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference66 = ref span33[0]; + index = 9; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + Span span83 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference66 = ref span83[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -166285,7 +200447,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021869u, new Vector3(43.259277f, -8f, 99.19885f), 132) + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021869u, new Vector3(43.259277f, -8f, 99.19885f), 132) { StopDistance = 1.5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -166299,60 +200463,83 @@ public static class AssemblyQuestLoader }; obj59.Steps = list84; reference66 = obj59; - ref QuestSequence reference67 = ref span33[1]; + num++; + ref QuestSequence reference67 = ref span83[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span34 = CollectionsMarshal.AsSpan(list85); - ref QuestStep reference68 = ref span34[0]; + index2 = 3; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference68 = ref span85[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1000146u, new Vector3(49.79016f, -1.4669685f, 51.743286f), 132); - num3 = 6; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span35 = CollectionsMarshal.AsSpan(list86); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list86 = new List(index3); + CollectionsMarshal.SetCount(list86, index3); + Span span86 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list86; reference68 = questStep12; - ref QuestStep reference69 = ref span34[1]; + num2++; + ref QuestStep reference69 = ref span85[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1000184u, new Vector3(12.130859f, -1.4203229f, 30.44165f), 132); num3 = 6; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - Span span36 = CollectionsMarshal.AsSpan(list87); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span87 = CollectionsMarshal.AsSpan(list87); + index3 = 0; + span87[index3] = null; + index3++; + span87[index3] = null; + index3++; + span87[index3] = null; + index3++; + span87[index3] = null; + index3++; + span87[index3] = null; + index3++; + span87[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list87; reference69 = questStep13; - ref QuestStep reference70 = ref span34[2]; + num2++; + ref QuestStep reference70 = ref span85[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1001276u, new Vector3(13.961914f, 0.1373291f, 2.090454f), 132); - num3 = 6; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span37 = CollectionsMarshal.AsSpan(list88); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list88 = new List(index3); + CollectionsMarshal.SetCount(list88, index3); + Span span88 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list88; reference70 = questStep14; obj60.Steps = list85; reference67 = obj60; - ref QuestSequence reference71 = ref span33[2]; + num++; + ref QuestSequence reference71 = ref span83[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 @@ -166360,21 +200547,27 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1021871u, new Vector3(-17.929382f, -3.5175722f, 8.895996f), 132); + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.Interact, 1021871u, new Vector3(-17.929382f, -3.5175722f, 8.895996f), 132); obj61.Steps = list89; reference71 = obj61; - ref QuestSequence reference72 = ref span33[3]; + num++; + ref QuestSequence reference72 = ref span83[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); obj62.Steps = list90; reference72 = obj62; - ref QuestSequence reference73 = ref span33[4]; + num++; + ref QuestSequence reference73 = ref span83[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -166382,7 +200575,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list91)[0]; + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + ref QuestStep reference74 = ref span91[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, null, new Vector3(16.415976f, -13.3742895f, 13.173157f), 154) { StopDistance = 0.5f, @@ -166393,25 +200588,31 @@ public static class AssemblyQuestLoader num3 = 2; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - Span span38 = CollectionsMarshal.AsSpan(list92); - span38[0] = 7492u; - span38[1] = 7493u; + Span span92 = CollectionsMarshal.AsSpan(list92); + index3 = 0; + span92[index3] = 7492u; + index3++; + span92[index3] = 7493u; obj64.KillEnemyDataIds = list92; reference74 = obj64; obj63.Steps = list91; reference73 = obj63; - ref QuestSequence reference75 = ref span33[5]; + num++; + ref QuestSequence reference75 = ref span83[num]; QuestSequence obj65 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1021873u, new Vector3(15.6710205f, -13.159564f, 14.572327f), 154); + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.Interact, 1021873u, new Vector3(15.6710205f, -13.159564f, 14.572327f), 154); obj65.Steps = list93; reference75 = obj65; - ref QuestSequence reference76 = ref span33[6]; + num++; + ref QuestSequence reference76 = ref span83[num]; QuestSequence obj66 = new QuestSequence { Sequence = 6 @@ -166419,21 +200620,27 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1021877u, new Vector3(72.03784f, -13.573448f, -6.790344f), 154); + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.Interact, 1021877u, new Vector3(72.03784f, -13.573448f, -6.790344f), 154); obj66.Steps = list94; reference76 = obj66; - ref QuestSequence reference77 = ref span33[7]; + num++; + ref QuestSequence reference77 = ref span83[num]; QuestSequence obj67 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1021923u, new Vector3(-16.739136f, -3.3721945f, 8.590759f), 132); + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.Interact, 1021923u, new Vector3(-16.739136f, -3.3721945f, 8.590759f), 132); obj67.Steps = list95; reference77 = obj67; - ref QuestSequence reference78 = ref span33[8]; + num++; + ref QuestSequence reference78 = ref span83[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -166441,7 +200648,9 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021878u, new Vector3(112.41321f, 3.6299734f, 62.302612f), 418) + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021878u, new Vector3(112.41321f, 3.6299734f, 62.302612f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -166460,21 +200669,26 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + Span span97 = CollectionsMarshal.AsSpan(list97); + index = 0; + span97[index] = "liza"; questRoot10.Author = list97; - num = 8; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span39 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference79 = ref span39[0]; + index = 8; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference79 = ref span98[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021878u, new Vector3(112.41321f, 3.6299734f, 62.302612f), 418) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021878u, new Vector3(112.41321f, 3.6299734f, 62.302612f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -166492,7 +200706,8 @@ public static class AssemblyQuestLoader }; obj69.Steps = list99; reference79 = obj69; - ref QuestSequence reference80 = ref span39[1]; + num++; + ref QuestSequence reference80 = ref span98[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -166500,70 +200715,97 @@ public static class AssemblyQuestLoader num2 = 5; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span40 = CollectionsMarshal.AsSpan(list100); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(89.911125f, 0.8319905f, 69.05516f), 418); - span40[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(79.70269f, -15.835008f, 69.00836f), 418) + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(89.911125f, 0.8319905f, 69.05516f), 418); + index2++; + span100[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(79.70269f, -15.835008f, 69.00836f), 418) { DisableNavmesh = true }; - ref QuestStep reference81 = ref span40[2]; + index2++; + ref QuestStep reference81 = ref span100[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1021882u, new Vector3(104.29541f, -20.020874f, 60.624023f), 418); - num3 = 6; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span41 = CollectionsMarshal.AsSpan(list101); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list101 = new List(index3); + CollectionsMarshal.SetCount(list101, index3); + Span span101 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span101[num3] = null; + num3++; + span101[num3] = null; + num3++; + span101[num3] = null; + num3++; + span101[num3] = null; + num3++; + span101[num3] = null; + num3++; + span101[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list101; reference81 = questStep15; - ref QuestStep reference82 = ref span40[3]; + index2++; + ref QuestStep reference82 = ref span100[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1021883u, new Vector3(35.202515f, -14.000005f, 34.74475f), 418); num3 = 6; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span42 = CollectionsMarshal.AsSpan(list102); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span102 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + span102[index3] = null; + index3++; + span102[index3] = null; + index3++; + span102[index3] = null; + index3++; + span102[index3] = null; + index3++; + span102[index3] = null; + index3++; + span102[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list102; reference82 = questStep16; - ref QuestStep reference83 = ref span40[4]; + index2++; + ref QuestStep reference83 = ref span100[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1021884u, new Vector3(20.645447f, -12.020878f, 37.79651f), 418); - num3 = 6; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - Span span43 = CollectionsMarshal.AsSpan(list103); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list103 = new List(index3); + CollectionsMarshal.SetCount(list103, index3); + Span span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list103; reference83 = questStep17; obj70.Steps = list100; reference80 = obj70; - ref QuestSequence reference84 = ref span39[2]; + num++; + ref QuestSequence reference84 = ref span98[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - Span span44 = CollectionsMarshal.AsSpan(list104); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.22194f, -12.020878f, 75.08158f), 418); - span44[1] = new QuestStep(EInteractionType.Interact, 1021885u, new Vector3(36.63684f, -6.947115f, 79.39258f), 418); + index2 = 2; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.22194f, -12.020878f, 75.08158f), 418); + num2++; + span104[num2] = new QuestStep(EInteractionType.Interact, 1021885u, new Vector3(36.63684f, -6.947115f, 79.39258f), 418); obj71.Steps = list104; reference84 = obj71; - ref QuestSequence reference85 = ref span39[3]; + num++; + ref QuestSequence reference85 = ref span98[num]; QuestSequence obj72 = new QuestSequence { Sequence = 3 @@ -166571,18 +200813,23 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1022094u, new Vector3(110.27698f, -20.000004f, 69.93213f), 418); + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.Interact, 1022094u, new Vector3(110.27698f, -20.000004f, 69.93213f), 418); obj72.Steps = list105; reference85 = obj72; - ref QuestSequence reference86 = ref span39[4]; + num++; + ref QuestSequence reference86 = ref span98[num]; QuestSequence obj73 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1021886u, new Vector3(0.015197754f, 13.46524f, 59.15918f), 419) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.Interact, 1021886u, new Vector3(0.015197754f, 13.46524f, 59.15918f), 419) { StopDistance = 7f, AethernetShortcut = new AethernetShortcut @@ -166593,7 +200840,8 @@ public static class AssemblyQuestLoader }; obj73.Steps = list106; reference86 = obj73; - ref QuestSequence reference87 = ref span39[5]; + num++; + ref QuestSequence reference87 = ref span98[num]; QuestSequence obj74 = new QuestSequence { Sequence = 5 @@ -166601,7 +200849,9 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list107)[0]; + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + ref QuestStep reference88 = ref span107[index2]; QuestStep obj75 = new QuestStep(EInteractionType.Combat, null, new Vector3(360.62927f, 161.10802f, 27.17857f), 397) { StopDistance = 0.5f, @@ -166612,25 +200862,31 @@ public static class AssemblyQuestLoader num3 = 2; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - Span span45 = CollectionsMarshal.AsSpan(list108); - span45[0] = 7237u; - span45[1] = 7494u; + Span span108 = CollectionsMarshal.AsSpan(list108); + index3 = 0; + span108[index3] = 7237u; + index3++; + span108[index3] = 7494u; obj75.KillEnemyDataIds = list108; reference88 = obj75; obj74.Steps = list107; reference87 = obj74; - ref QuestSequence reference89 = ref span39[6]; + num++; + ref QuestSequence reference89 = ref span98[num]; QuestSequence obj76 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1021888u, new Vector3(358.87683f, 161.108f, 26.5354f), 397); + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.Interact, 1021888u, new Vector3(358.87683f, 161.108f, 26.5354f), 397); obj76.Steps = list109; reference89 = obj76; - ref QuestSequence reference90 = ref span39[7]; + num++; + ref QuestSequence reference90 = ref span98[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -166638,7 +200894,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021879u, new Vector3(112.50476f, 3.6299736f, 60.837646f), 418) + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021879u, new Vector3(112.50476f, 3.6299736f, 60.837646f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -166657,21 +200915,26 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "liza"; + Span span111 = CollectionsMarshal.AsSpan(list111); + index = 0; + span111[index] = "liza"; questRoot11.Author = list111; - num = 6; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span46 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference91 = ref span46[0]; + index = 6; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + Span span112 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference91 = ref span112[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021879u, new Vector3(112.50476f, 3.6299736f, 60.837646f), 418) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021879u, new Vector3(112.50476f, 3.6299736f, 60.837646f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -166689,7 +200952,8 @@ public static class AssemblyQuestLoader }; obj78.Steps = list113; reference91 = obj78; - ref QuestSequence reference92 = ref span46[1]; + num++; + ref QuestSequence reference92 = ref span112[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -166697,21 +200961,27 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 2008327u, new Vector3(59.40332f, 23.971863f, -5.6000977f), 418); + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = new QuestStep(EInteractionType.Interact, 2008327u, new Vector3(59.40332f, 23.971863f, -5.6000977f), 418); obj79.Steps = list114; reference92 = obj79; - ref QuestSequence reference93 = ref span46[2]; + num++; + ref QuestSequence reference93 = ref span112[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 2008328u, new Vector3(-17.288513f, 5.4779663f, 29.709229f), 418); + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span115[num2] = new QuestStep(EInteractionType.Interact, 2008328u, new Vector3(-17.288513f, 5.4779663f, 29.709229f), 418); obj80.Steps = list115; reference93 = obj80; - ref QuestSequence reference94 = ref span46[3]; + num++; + ref QuestSequence reference94 = ref span112[num]; QuestSequence obj81 = new QuestSequence { Sequence = 3 @@ -166719,8 +200989,9 @@ public static class AssemblyQuestLoader num2 = 2; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span47 = CollectionsMarshal.AsSpan(list116); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(465.55804f, 203.43318f, 680.2831f), 397) + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(465.55804f, 203.43318f, 680.2831f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -166731,25 +201002,30 @@ public static class AssemblyQuestLoader } } }; - span47[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021894u, new Vector3(-217.82257f, 112.33306f, -243.94604f), 397) + index2++; + span116[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021894u, new Vector3(-217.82257f, 112.33306f, -243.94604f), 397) { Fly = true }; obj81.Steps = list116; reference94 = obj81; - span46[4] = new QuestSequence + num++; + span112[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference95 = ref span46[5]; + num++; + ref QuestSequence reference95 = ref span112[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) { NextQuestId = new QuestId(2566) }; @@ -166762,13 +201038,16 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "liza"; questRoot12.Author = list118; - num = 6; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span48 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference96 = ref span48[0]; + index = 6; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference96 = ref span119[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -166776,7 +201055,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -166794,18 +201075,22 @@ public static class AssemblyQuestLoader }; obj83.Steps = list120; reference96 = obj83; - ref QuestSequence reference97 = ref span48[1]; + num++; + ref QuestSequence reference97 = ref span119[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1022185u, new Vector3(39.04773f, 8f, -119.76807f), 130); + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span121[num2] = new QuestStep(EInteractionType.Interact, 1022185u, new Vector3(39.04773f, 8f, -119.76807f), 130); obj84.Steps = list121; reference97 = obj84; - ref QuestSequence reference98 = ref span48[2]; + num++; + ref QuestSequence reference98 = ref span119[num]; QuestSequence obj85 = new QuestSequence { Sequence = 2 @@ -166813,7 +201098,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list122)[0]; + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + ref QuestStep reference99 = ref span122[index2]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, null, new Vector3(-99.923485f, 49.52189f, 322.85992f), 140) { StopDistance = 0.5f, @@ -166825,29 +201112,35 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 7495u; + index3 = 1; + List list123 = new List(index3); + CollectionsMarshal.SetCount(list123, index3); + Span span123 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span123[num3] = 7495u; obj86.KillEnemyDataIds = list123; reference99 = obj86; obj85.Steps = list122; reference98 = obj85; - ref QuestSequence reference100 = ref span48[3]; + num++; + ref QuestSequence reference100 = ref span119[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1022186u, new Vector3(-98.95477f, 49.469913f, 317.83008f), 140) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.Interact, 1022186u, new Vector3(-98.95477f, 49.469913f, 317.83008f), 140) { StopDistance = 7f }; obj87.Steps = list124; reference100 = obj87; - ref QuestSequence reference101 = ref span48[4]; + num++; + ref QuestSequence reference101 = ref span119[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -166855,21 +201148,26 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1022189u, new Vector3(-312.67267f, 33.089348f, 446.5553f), 140) + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.Interact, 1022189u, new Vector3(-312.67267f, 33.089348f, 446.5553f), 140) { Fly = true }; obj88.Steps = list125; reference101 = obj88; - ref QuestSequence reference102 = ref span48[5]; + num++; + ref QuestSequence reference102 = ref span119[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -166888,13 +201186,16 @@ public static class AssemblyQuestLoader num = 1; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - CollectionsMarshal.AsSpan(list127)[0] = "liza"; + Span span127 = CollectionsMarshal.AsSpan(list127); + index = 0; + span127[index] = "liza"; questRoot13.Author = list127; - num = 5; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - Span span49 = CollectionsMarshal.AsSpan(list128); - ref QuestSequence reference103 = ref span49[0]; + index = 5; + List list128 = new List(index); + CollectionsMarshal.SetCount(list128, index); + Span span128 = CollectionsMarshal.AsSpan(list128); + num = 0; + ref QuestSequence reference103 = ref span128[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -166902,7 +201203,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -166920,15 +201223,18 @@ public static class AssemblyQuestLoader }; obj90.Steps = list129; reference103 = obj90; - ref QuestSequence reference104 = ref span49[1]; + num++; + ref QuestSequence reference104 = ref span128[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1022190u, new Vector3(128.61829f, 15f, -158.03778f), 628) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.Interact, 1022190u, new Vector3(128.61829f, 15f, -158.03778f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -166939,7 +201245,8 @@ public static class AssemblyQuestLoader }; obj91.Steps = list130; reference104 = obj91; - ref QuestSequence reference105 = ref span49[2]; + num++; + ref QuestSequence reference105 = ref span128[num]; QuestSequence obj92 = new QuestSequence { Sequence = 2 @@ -166947,14 +201254,16 @@ public static class AssemblyQuestLoader num2 = 2; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span50 = CollectionsMarshal.AsSpan(list131); - span50[0] = new QuestStep(EInteractionType.Interact, 1024622u, new Vector3(102.433716f, 0.2814351f, -550.9575f), 613) + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.Interact, 1024622u, new Vector3(102.433716f, 0.2814351f, -550.9575f), 613) { TargetTerritoryId = (ushort)613, Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - ref QuestStep reference106 = ref span50[1]; + index2++; + ref QuestStep reference106 = ref span131[index2]; QuestStep obj93 = new QuestStep(EInteractionType.Combat, null, new Vector3(568.7077f, 0.73303545f, 754.9407f), 613) { StopDistance = 0.5f, @@ -166964,23 +201273,29 @@ public static class AssemblyQuestLoader num3 = 1; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = 7496u; + Span span132 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span132[index3] = 7496u; obj93.KillEnemyDataIds = list132; reference106 = obj93; obj92.Steps = list131; reference105 = obj92; - ref QuestSequence reference107 = ref span49[3]; + num++; + ref QuestSequence reference107 = ref span128[num]; QuestSequence obj94 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1022191u, new Vector3(567.8645f, 0.73303545f, 755.1842f), 613); + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.Interact, 1022191u, new Vector3(567.8645f, 0.73303545f, 755.1842f), 613); obj94.Steps = list133; reference107 = obj94; - ref QuestSequence reference108 = ref span49[4]; + num++; + ref QuestSequence reference108 = ref span128[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -166988,7 +201303,9 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - ref QuestStep reference109 = ref CollectionsMarshal.AsSpan(list134)[0]; + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + ref QuestStep reference109 = ref span134[index2]; QuestStep obj96 = new QuestStep(EInteractionType.CompleteQuest, 1022190u, new Vector3(128.61829f, 15f, -158.03778f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -166998,10 +201315,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeSekiseigumiBarracks } }; - num3 = 1; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = new DialogueChoice + index3 = 1; + List list135 = new List(index3); + CollectionsMarshal.SetCount(list135, index3); + Span span135 = CollectionsMarshal.AsSpan(list135); + num3 = 0; + span135[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBSAM630_02567_Q1_000_054") @@ -167018,21 +201337,26 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - CollectionsMarshal.AsSpan(list136)[0] = "liza"; + Span span136 = CollectionsMarshal.AsSpan(list136); + index = 0; + span136[index] = "liza"; questRoot14.Author = list136; - num = 8; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - Span span51 = CollectionsMarshal.AsSpan(list137); - ref QuestSequence reference110 = ref span51[0]; + index = 8; + List list137 = new List(index); + CollectionsMarshal.SetCount(list137, index); + Span span137 = CollectionsMarshal.AsSpan(list137); + num = 0; + ref QuestSequence reference110 = ref span137[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -167050,7 +201374,8 @@ public static class AssemblyQuestLoader }; obj97.Steps = list138; reference110 = obj97; - ref QuestSequence reference111 = ref span51[1]; + num++; + ref QuestSequence reference111 = ref span137[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -167058,7 +201383,9 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 2008439u, new Vector3(-100.87744f, -6.0273438f, 67.03284f), 628) + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.Interact, 2008439u, new Vector3(-100.87744f, -6.0273438f, 67.03284f), 628) { AethernetShortcut = new AethernetShortcut { @@ -167068,18 +201395,22 @@ public static class AssemblyQuestLoader }; obj98.Steps = list139; reference111 = obj98; - ref QuestSequence reference112 = ref span51[2]; + num++; + ref QuestSequence reference112 = ref span137[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 2008440u, new Vector3(-140.36774f, -7.0649414f, 78.3551f), 628); + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.Interact, 2008440u, new Vector3(-140.36774f, -7.0649414f, 78.3551f), 628); obj99.Steps = list140; reference112 = obj99; - ref QuestSequence reference113 = ref span51[3]; + num++; + ref QuestSequence reference113 = ref span137[num]; QuestSequence obj100 = new QuestSequence { Sequence = 3 @@ -167087,21 +201418,27 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 2008441u, new Vector3(-140.33728f, -7.0039062f, 72.739746f), 628); + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.Interact, 2008441u, new Vector3(-140.33728f, -7.0039062f, 72.739746f), 628); obj100.Steps = list141; reference113 = obj100; - ref QuestSequence reference114 = ref span51[4]; + num++; + ref QuestSequence reference114 = ref span137[num]; QuestSequence obj101 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 1022196u, new Vector3(-22.293457f, -3f, 31.814941f), 628); + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.Interact, 1022196u, new Vector3(-22.293457f, -3f, 31.814941f), 628); obj101.Steps = list142; reference114 = obj101; - ref QuestSequence reference115 = ref span51[5]; + num++; + ref QuestSequence reference115 = ref span137[num]; QuestSequence obj102 = new QuestSequence { Sequence = 5 @@ -167109,7 +201446,9 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1022197u, new Vector3(46.219482f, 8.02f, 144.79285f), 628) + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.Interact, 1022197u, new Vector3(46.219482f, 8.02f, 144.79285f), 628) { AethernetShortcut = new AethernetShortcut { @@ -167119,15 +201458,18 @@ public static class AssemblyQuestLoader }; obj102.Steps = list143; reference115 = obj102; - ref QuestSequence reference116 = ref span51[6]; + num++; + ref QuestSequence reference116 = ref span137[num]; QuestSequence obj103 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022201u, new Vector3(37.338745f, 5.951233f, -133.95898f), 628) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022201u, new Vector3(37.338745f, 5.951233f, -133.95898f), 628) { AethernetShortcut = new AethernetShortcut { @@ -167137,7 +201479,8 @@ public static class AssemblyQuestLoader }; obj103.Steps = list144; reference116 = obj103; - ref QuestSequence reference117 = ref span51[7]; + num++; + ref QuestSequence reference117 = ref span137[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue @@ -167145,7 +201488,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022203u, new Vector3(128.55725f, 15f, -158.09875f), 628) + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022203u, new Vector3(128.55725f, 15f, -158.09875f), 628) { NextQuestId = new QuestId(2569) }; @@ -167158,21 +201503,26 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "liza"; + Span span146 = CollectionsMarshal.AsSpan(list146); + index = 0; + span146[index] = "liza"; questRoot15.Author = list146; - num = 8; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span52 = CollectionsMarshal.AsSpan(list147); - ref QuestSequence reference118 = ref span52[0]; + index = 8; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + Span span147 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference118 = ref span147[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -167191,7 +201541,8 @@ public static class AssemblyQuestLoader }; obj105.Steps = list148; reference118 = obj105; - ref QuestSequence reference119 = ref span52[1]; + num++; + ref QuestSequence reference119 = ref span147[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -167199,22 +201550,27 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1022204u, new Vector3(537.01074f, 70.39123f, 25.375732f), 614) + Span span149 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span149[index2] = new QuestStep(EInteractionType.Interact, 1022204u, new Vector3(537.01074f, 70.39123f, 25.375732f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj106.Steps = list149; reference119 = obj106; - ref QuestSequence reference120 = ref span52[2]; + num++; + ref QuestSequence reference120 = ref span147[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list150)[0]; + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + ref QuestStep reference121 = ref span150[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2008443u, new Vector3(255.02393f, 7.7667847f, 458.5182f), 614) { Fly = true, @@ -167223,12 +201579,15 @@ public static class AssemblyQuestLoader num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = 7497u; + Span span151 = CollectionsMarshal.AsSpan(list151); + index3 = 0; + span151[index3] = 7497u; obj108.KillEnemyDataIds = list151; reference121 = obj108; obj107.Steps = list150; reference120 = obj107; - ref QuestSequence reference122 = ref span52[3]; + num++; + ref QuestSequence reference122 = ref span147[num]; QuestSequence obj109 = new QuestSequence { Sequence = 3 @@ -167236,29 +201595,36 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list152)[0]; + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + ref QuestStep reference123 = ref span152[index2]; QuestStep obj110 = new QuestStep(EInteractionType.Combat, 2008444u, new Vector3(152.57495f, 13.626221f, 425.55872f), 614) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = 7498u; + index3 = 1; + List list153 = new List(index3); + CollectionsMarshal.SetCount(list153, index3); + Span span153 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span153[num3] = 7498u; obj110.KillEnemyDataIds = list153; reference123 = obj110; obj109.Steps = list152; reference122 = obj109; - ref QuestSequence reference124 = ref span52[4]; + num++; + ref QuestSequence reference124 = ref span147[num]; QuestSequence obj111 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list154)[0]; + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref QuestStep reference125 = ref span154[num2]; QuestStep obj112 = new QuestStep(EInteractionType.Combat, 2008445u, new Vector3(64.43884f, 10.788086f, 444.23596f), 614) { Fly = true, @@ -167267,12 +201633,15 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 7496u; + Span span155 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span155[index3] = 7496u; obj112.KillEnemyDataIds = list155; reference125 = obj112; obj111.Steps = list154; reference124 = obj111; - ref QuestSequence reference126 = ref span52[5]; + num++; + ref QuestSequence reference126 = ref span147[num]; QuestSequence obj113 = new QuestSequence { Sequence = 5 @@ -167280,26 +201649,33 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1022205u, new Vector3(175.2804f, 5.1901503f, 522.33154f), 614) + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new QuestStep(EInteractionType.Interact, 1022205u, new Vector3(175.2804f, 5.1901503f, 522.33154f), 614) { Fly = true }; obj113.Steps = list156; reference126 = obj113; - ref QuestSequence reference127 = ref span52[6]; + num++; + ref QuestSequence reference127 = ref span147[num]; QuestSequence obj114 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - ref QuestStep reference128 = ref CollectionsMarshal.AsSpan(list157)[0]; + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + ref QuestStep reference128 = ref span157[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1022205u, new Vector3(175.2804f, 5.1901503f, 522.33154f), 614); - num3 = 1; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - CollectionsMarshal.AsSpan(list158)[0] = new DialogueChoice + index3 = 1; + List list158 = new List(index3); + CollectionsMarshal.SetCount(list158, index3); + Span span158 = CollectionsMarshal.AsSpan(list158); + num3 = 0; + span158[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBSAM680_02569_Q1_000_041") @@ -167308,7 +201684,8 @@ public static class AssemblyQuestLoader reference128 = questStep18; obj114.Steps = list157; reference127 = obj114; - ref QuestSequence reference129 = ref span52[7]; + num++; + ref QuestSequence reference129 = ref span147[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -167316,7 +201693,9 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) { NextQuestId = new QuestId(2570) }; @@ -167329,21 +201708,26 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; + Span span160 = CollectionsMarshal.AsSpan(list160); + index = 0; + span160[index] = "liza"; questRoot16.Author = list160; - num = 5; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span53 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference130 = ref span53[0]; + index = 5; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + Span span161 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference130 = ref span161[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span162[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -167361,7 +201745,8 @@ public static class AssemblyQuestLoader }; obj116.Steps = list162; reference130 = obj116; - ref QuestSequence reference131 = ref span53[1]; + num++; + ref QuestSequence reference131 = ref span161[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 @@ -167369,8 +201754,9 @@ public static class AssemblyQuestLoader num2 = 3; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span54 = CollectionsMarshal.AsSpan(list163); - ref QuestStep reference132 = ref span54[0]; + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + ref QuestStep reference132 = ref span163[index2]; QuestStep obj118 = new QuestStep(EInteractionType.Interact, 1022208u, new Vector3(14.755432f, -6.558981E-11f, -66.88031f), 628) { AethernetShortcut = new AethernetShortcut @@ -167382,30 +201768,44 @@ public static class AssemblyQuestLoader num3 = 6; List list164 = new List(num3); CollectionsMarshal.SetCount(list164, num3); - Span span55 = CollectionsMarshal.AsSpan(list164); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span164 = CollectionsMarshal.AsSpan(list164); + index3 = 0; + span164[index3] = null; + index3++; + span164[index3] = null; + index3++; + span164[index3] = null; + index3++; + span164[index3] = null; + index3++; + span164[index3] = null; + index3++; + span164[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj118.CompletionQuestVariablesFlags = list164; reference132 = obj118; - ref QuestStep reference133 = ref span54[1]; + index2++; + ref QuestStep reference133 = ref span163[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1022207u, new Vector3(-59.861206f, -2.9000297f, -64.805115f), 628); - num3 = 6; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - Span span56 = CollectionsMarshal.AsSpan(list165); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list165 = new List(index3); + CollectionsMarshal.SetCount(list165, index3); + Span span165 = CollectionsMarshal.AsSpan(list165); + num3 = 0; + span165[num3] = null; + num3++; + span165[num3] = null; + num3++; + span165[num3] = null; + num3++; + span165[num3] = null; + num3++; + span165[num3] = null; + num3++; + span165[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list165; reference133 = questStep19; - ref QuestStep reference134 = ref span54[2]; + index2++; + ref QuestStep reference134 = ref span163[index2]; QuestStep obj119 = new QuestStep(EInteractionType.Interact, 1022209u, new Vector3(42.648926f, 4.0000005f, 54.97815f), 628) { AethernetShortcut = new AethernetShortcut @@ -167417,26 +201817,35 @@ public static class AssemblyQuestLoader num3 = 6; List list166 = new List(num3); CollectionsMarshal.SetCount(list166, num3); - Span span57 = CollectionsMarshal.AsSpan(list166); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span166 = CollectionsMarshal.AsSpan(list166); + index3 = 0; + span166[index3] = null; + index3++; + span166[index3] = null; + index3++; + span166[index3] = null; + index3++; + span166[index3] = null; + index3++; + span166[index3] = null; + index3++; + span166[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj119.CompletionQuestVariablesFlags = list166; reference134 = obj119; obj117.Steps = list163; reference131 = obj117; - ref QuestSequence reference135 = ref span53[2]; + num++; + ref QuestSequence reference135 = ref span161[num]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1022377u, new Vector3(124.6814f, 15f, -154.83331f), 628) + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.Interact, 1022377u, new Vector3(124.6814f, 15f, -154.83331f), 628) { AethernetShortcut = new AethernetShortcut { @@ -167446,7 +201855,8 @@ public static class AssemblyQuestLoader }; obj120.Steps = list167; reference135 = obj120; - ref QuestSequence reference136 = ref span53[3]; + num++; + ref QuestSequence reference136 = ref span161[num]; QuestSequence obj121 = new QuestSequence { Sequence = 3 @@ -167454,8 +201864,9 @@ public static class AssemblyQuestLoader num2 = 3; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span58 = CollectionsMarshal.AsSpan(list168); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(541.33655f, -61.59003f, -166.09608f), 613) + Span span168 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span168[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(541.33655f, -61.59003f, -166.09608f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, SkipConditions = new SkipConditions @@ -167466,7 +201877,8 @@ public static class AssemblyQuestLoader } } }; - span58[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(545.0479f, -61.943626f, -147.57167f), 613) + index2++; + span168[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(545.0479f, -61.943626f, -147.57167f), 613) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -167477,21 +201889,25 @@ public static class AssemblyQuestLoader } } }; - span58[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022215u, new Vector3(787.19763f, 1.5872339f, 80.03345f), 613) + index2++; + span168[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022215u, new Vector3(787.19763f, 1.5872339f, 80.03345f), 613) { Fly = true }; obj121.Steps = list168; reference136 = obj121; - ref QuestSequence reference137 = ref span53[4]; + num++; + ref QuestSequence reference137 = ref span161[num]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + Span span169 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span169[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -167509,13 +201925,16 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "liza"; + Span span170 = CollectionsMarshal.AsSpan(list170); + index = 0; + span170[index] = "liza"; questRoot17.Author = list170; - num = 4; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - Span span59 = CollectionsMarshal.AsSpan(list171); - ref QuestSequence reference138 = ref span59[0]; + index = 4; + List list171 = new List(index); + CollectionsMarshal.SetCount(list171, index); + Span span171 = CollectionsMarshal.AsSpan(list171); + num = 0; + ref QuestSequence reference138 = ref span171[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 @@ -167523,7 +201942,9 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - ref QuestStep reference139 = ref CollectionsMarshal.AsSpan(list172)[0]; + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + ref QuestStep reference139 = ref span172[index2]; QuestStep obj124 = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -167538,17 +201959,21 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - CollectionsMarshal.AsSpan(list173)[0] = 131; + index3 = 1; + List list173 = new List(index3); + CollectionsMarshal.SetCount(list173, index3); + Span span173 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span173[num3] = 131; obj125.InTerritory = list173; skipConditions2.AetheryteShortcutIf = obj125; obj124.SkipConditions = skipConditions2; num3 = 1; List list174 = new List(num3); CollectionsMarshal.SetCount(list174, num3); - CollectionsMarshal.AsSpan(list174)[0] = new DialogueChoice + Span span174 = CollectionsMarshal.AsSpan(list174); + index3 = 0; + span174[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBPLD601_02571_Q1_000_000"), @@ -167558,18 +201983,22 @@ public static class AssemblyQuestLoader reference139 = obj124; obj123.Steps = list172; reference138 = obj123; - ref QuestSequence reference140 = ref span59[1]; + num++; + ref QuestSequence reference140 = ref span171[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1021342u, new Vector3(-25.558899f, 38.010006f, 82.6886f), 131); + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.Interact, 1021342u, new Vector3(-25.558899f, 38.010006f, 82.6886f), 131); obj126.Steps = list175; reference140 = obj126; - ref QuestSequence reference141 = ref span59[2]; + num++; + ref QuestSequence reference141 = ref span171[num]; QuestSequence obj127 = new QuestSequence { Sequence = 2 @@ -167577,8 +202006,9 @@ public static class AssemblyQuestLoader num2 = 5; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span60 = CollectionsMarshal.AsSpan(list176); - ref QuestStep reference142 = ref span60[0]; + Span span176 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + ref QuestStep reference142 = ref span176[index2]; QuestStep obj128 = new QuestStep(EInteractionType.Interact, 1021343u, new Vector3(-75.60846f, 6.9845715f, 6.210388f), 131) { AethernetShortcut = new AethernetShortcut @@ -167587,85 +202017,122 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - num3 = 6; - List list177 = new List(num3); - CollectionsMarshal.SetCount(list177, num3); - Span span61 = CollectionsMarshal.AsSpan(list177); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list177 = new List(index3); + CollectionsMarshal.SetCount(list177, index3); + Span span177 = CollectionsMarshal.AsSpan(list177); + num3 = 0; + span177[num3] = null; + num3++; + span177[num3] = null; + num3++; + span177[num3] = null; + num3++; + span177[num3] = null; + num3++; + span177[num3] = null; + num3++; + span177[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj128.CompletionQuestVariablesFlags = list177; reference142 = obj128; - ref QuestStep reference143 = ref span60[1]; + index2++; + ref QuestStep reference143 = ref span176[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1021345u, new Vector3(-69.96271f, 7.0740614f, -10.696594f), 131); num3 = 6; List list178 = new List(num3); CollectionsMarshal.SetCount(list178, num3); - Span span62 = CollectionsMarshal.AsSpan(list178); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span178 = CollectionsMarshal.AsSpan(list178); + index3 = 0; + span178[index3] = null; + index3++; + span178[index3] = null; + index3++; + span178[index3] = null; + index3++; + span178[index3] = null; + index3++; + span178[index3] = null; + index3++; + span178[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list178; reference143 = questStep20; - ref QuestStep reference144 = ref span60[2]; + index2++; + ref QuestStep reference144 = ref span176[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1021346u, new Vector3(-96.69641f, 6.9845695f, -9.506409f), 131); - num3 = 6; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - Span span63 = CollectionsMarshal.AsSpan(list179); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list179 = new List(index3); + CollectionsMarshal.SetCount(list179, index3); + Span span179 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list179; reference144 = questStep21; - ref QuestStep reference145 = ref span60[3]; + index2++; + ref QuestStep reference145 = ref span176[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1021347u, new Vector3(-105.638245f, 6.9839897f, 3.0059814f), 131); num3 = 6; List list180 = new List(num3); CollectionsMarshal.SetCount(list180, num3); - Span span64 = CollectionsMarshal.AsSpan(list180); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span180 = CollectionsMarshal.AsSpan(list180); + index3 = 0; + span180[index3] = null; + index3++; + span180[index3] = null; + index3++; + span180[index3] = null; + index3++; + span180[index3] = null; + index3++; + span180[index3] = null; + index3++; + span180[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list180; reference145 = questStep22; - ref QuestStep reference146 = ref span60[4]; + index2++; + ref QuestStep reference146 = ref span176[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1021344u, new Vector3(-96.910095f, 6.984566f, 15.0911255f), 131); - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span65 = CollectionsMarshal.AsSpan(list181); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list181 = new List(index3); + CollectionsMarshal.SetCount(list181, index3); + Span span181 = CollectionsMarshal.AsSpan(list181); + num3 = 0; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list181; reference146 = questStep23; obj127.Steps = list176; reference141 = obj127; - ref QuestSequence reference147 = ref span59[3]; + num++; + ref QuestSequence reference147 = ref span171[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { NextQuestId = new QuestId(2572) }; @@ -167678,13 +202145,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + Span span183 = CollectionsMarshal.AsSpan(list183); + index = 0; + span183[index] = "liza"; questRoot18.Author = list183; - num = 6; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span66 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference148 = ref span66[0]; + index = 6; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + Span span184 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference148 = ref span184[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -167692,7 +202162,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - ref QuestStep reference149 = ref CollectionsMarshal.AsSpan(list185)[0]; + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + ref QuestStep reference149 = ref span185[index2]; QuestStep obj131 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -167710,25 +202182,31 @@ public static class AssemblyQuestLoader num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = 131; + Span span186 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span186[index3] = 131; obj132.InTerritory = list186; skipConditions3.AetheryteShortcutIf = obj132; obj131.SkipConditions = skipConditions3; reference149 = obj131; obj130.Steps = list185; reference148 = obj130; - ref QuestSequence reference150 = ref span66[1]; + num++; + ref QuestSequence reference150 = ref span184[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 2008101u, new Vector3(-82.44458f, 1.9378662f, 60.77661f), 131); + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.Interact, 2008101u, new Vector3(-82.44458f, 1.9378662f, 60.77661f), 131); obj133.Steps = list187; reference150 = obj133; - ref QuestSequence reference151 = ref span66[2]; + num++; + ref QuestSequence reference151 = ref span184[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 @@ -167736,28 +202214,35 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021271u, new Vector3(-87.174866f, 1.9499679f, 57.358643f), 131); + Span span188 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span188[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021271u, new Vector3(-87.174866f, 1.9499679f, 57.358643f), 131); obj134.Steps = list188; reference151 = obj134; - span66[3] = new QuestSequence + num++; + span184[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference152 = ref span66[4]; + num++; + ref QuestSequence reference152 = ref span184[num]; QuestSequence obj135 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1021275u, new Vector3(-84.67236f, 1.9500066f, 60.868164f), 131) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.Interact, 1021275u, new Vector3(-84.67236f, 1.9500066f, 60.868164f), 131) { StopDistance = 5f }; obj135.Steps = list189; reference152 = obj135; - ref QuestSequence reference153 = ref span66[5]; + num++; + ref QuestSequence reference153 = ref span184[num]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue @@ -167765,7 +202250,9 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { NextQuestId = new QuestId(2573) }; @@ -167778,21 +202265,26 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "liza"; + Span span191 = CollectionsMarshal.AsSpan(list191); + index = 0; + span191[index] = "liza"; questRoot19.Author = list191; - num = 6; - List list192 = new List(num); - CollectionsMarshal.SetCount(list192, num); - Span span67 = CollectionsMarshal.AsSpan(list192); - ref QuestSequence reference154 = ref span67[0]; + index = 6; + List list192 = new List(index); + CollectionsMarshal.SetCount(list192, index); + Span span192 = CollectionsMarshal.AsSpan(list192); + num = 0; + ref QuestSequence reference154 = ref span192[num]; QuestSequence obj137 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list193)[0]; + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + ref QuestStep reference155 = ref span193[num2]; QuestStep obj138 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -167807,17 +202299,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - CollectionsMarshal.AsSpan(list194)[0] = 131; + index3 = 1; + List list194 = new List(index3); + CollectionsMarshal.SetCount(list194, index3); + Span span194 = CollectionsMarshal.AsSpan(list194); + num3 = 0; + span194[num3] = 131; obj139.InTerritory = list194; skipConditions4.AetheryteShortcutIf = obj139; obj138.SkipConditions = skipConditions4; reference155 = obj138; obj137.Steps = list193; reference154 = obj137; - ref QuestSequence reference156 = ref span67[1]; + num++; + ref QuestSequence reference156 = ref span192[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -167825,12 +202320,16 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - ref QuestStep reference157 = ref CollectionsMarshal.AsSpan(list195)[0]; + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + ref QuestStep reference157 = ref span195[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1021364u, new Vector3(-84.36719f, 6.9845676f, 11.276367f), 131); num3 = 1; List list196 = new List(num3); CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = new DialogueChoice + Span span196 = CollectionsMarshal.AsSpan(list196); + index3 = 0; + span196[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBPLD650_02573_Q1_000_011") @@ -167839,46 +202338,62 @@ public static class AssemblyQuestLoader reference157 = questStep24; obj140.Steps = list195; reference156 = obj140; - ref QuestSequence reference158 = ref span67[2]; + num++; + ref QuestSequence reference158 = ref span192[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - Span span68 = CollectionsMarshal.AsSpan(list197); - ref QuestStep reference159 = ref span68[0]; + index2 = 2; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + ref QuestStep reference159 = ref span197[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1021365u, new Vector3(-94.010864f, 6.9845667f, 15.548889f), 131); - num3 = 6; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - Span span69 = CollectionsMarshal.AsSpan(list198); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list198 = new List(index3); + CollectionsMarshal.SetCount(list198, index3); + Span span198 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list198; reference159 = questStep25; - ref QuestStep reference160 = ref span68[1]; + num2++; + ref QuestStep reference160 = ref span197[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1021366u, new Vector3(-99.83978f, 6.9845657f, 14.297607f), 131); num3 = 6; List list199 = new List(num3); CollectionsMarshal.SetCount(list199, num3); - Span span70 = CollectionsMarshal.AsSpan(list199); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span199 = CollectionsMarshal.AsSpan(list199); + index3 = 0; + span199[index3] = null; + index3++; + span199[index3] = null; + index3++; + span199[index3] = null; + index3++; + span199[index3] = null; + index3++; + span199[index3] = null; + index3++; + span199[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list199; reference160 = questStep26; obj141.Steps = list197; reference158 = obj141; - ref QuestSequence reference161 = ref span67[3]; + num++; + ref QuestSequence reference161 = ref span192[num]; QuestSequence obj142 = new QuestSequence { Sequence = 3 @@ -167886,18 +202401,23 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131); + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span200[index2] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131); obj142.Steps = list200; reference161 = obj142; - ref QuestSequence reference162 = ref span67[4]; + num++; + ref QuestSequence reference162 = ref span192[num]; QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 2008187u, new Vector3(22.2323f, 7.1869507f, -101.24359f), 130) + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span201[num2] = new QuestStep(EInteractionType.Interact, 2008187u, new Vector3(22.2323f, 7.1869507f, -101.24359f), 130) { AethernetShortcut = new AethernetShortcut { @@ -167907,7 +202427,8 @@ public static class AssemblyQuestLoader }; obj143.Steps = list201; reference162 = obj143; - ref QuestSequence reference163 = ref span67[5]; + num++; + ref QuestSequence reference163 = ref span192[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -167915,7 +202436,9 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) + Span span202 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span202[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { AethernetShortcut = new AethernetShortcut { @@ -167933,21 +202456,26 @@ public static class AssemblyQuestLoader num = 1; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - CollectionsMarshal.AsSpan(list203)[0] = "liza"; + Span span203 = CollectionsMarshal.AsSpan(list203); + index = 0; + span203[index] = "liza"; questRoot20.Author = list203; - num = 9; - List list204 = new List(num); - CollectionsMarshal.SetCount(list204, num); - Span span71 = CollectionsMarshal.AsSpan(list204); - ref QuestSequence reference164 = ref span71[0]; + index = 9; + List list204 = new List(index); + CollectionsMarshal.SetCount(list204, index); + Span span204 = CollectionsMarshal.AsSpan(list204); + num = 0; + ref QuestSequence reference164 = ref span204[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list205)[0]; + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + Span span205 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + ref QuestStep reference165 = ref span205[num2]; QuestStep obj146 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -167962,17 +202490,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = 131; + index3 = 1; + List list206 = new List(index3); + CollectionsMarshal.SetCount(list206, index3); + Span span206 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span206[num3] = 131; obj147.InTerritory = list206; skipConditions5.AetheryteShortcutIf = obj147; obj146.SkipConditions = skipConditions5; reference165 = obj146; obj145.Steps = list205; reference164 = obj145; - ref QuestSequence reference166 = ref span71[1]; + num++; + ref QuestSequence reference166 = ref span204[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -167980,21 +202511,27 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131); + Span span207 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span207[index2] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131); obj148.Steps = list207; reference166 = obj148; - ref QuestSequence reference167 = ref span71[2]; + num++; + ref QuestSequence reference167 = ref span204[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1021271u, new Vector3(-87.174866f, 1.9499679f, 57.358643f), 131); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.Interact, 1021271u, new Vector3(-87.174866f, 1.9499679f, 57.358643f), 131); obj149.Steps = list208; reference167 = obj149; - ref QuestSequence reference168 = ref span71[3]; + num++; + ref QuestSequence reference168 = ref span204[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -168002,7 +202539,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(64.84746f, 7.9209166f, -37.27604f), 131) + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(64.84746f, 7.9209166f, -37.27604f), 131) { RestartNavigationIfCancelled = false, AethernetShortcut = new AethernetShortcut @@ -168013,60 +202552,83 @@ public static class AssemblyQuestLoader }; obj150.Steps = list209; reference168 = obj150; - ref QuestSequence reference169 = ref span71[4]; + num++; + ref QuestSequence reference169 = ref span204[num]; QuestSequence obj151 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span72 = CollectionsMarshal.AsSpan(list210); - ref QuestStep reference170 = ref span72[0]; + index2 = 3; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + ref QuestStep reference170 = ref span210[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1021379u, new Vector3(81.01013f, 8f, -73.624756f), 131); num3 = 6; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - Span span73 = CollectionsMarshal.AsSpan(list211); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span211 = CollectionsMarshal.AsSpan(list211); + index3 = 0; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list211; reference170 = questStep27; - ref QuestStep reference171 = ref span72[1]; + num2++; + ref QuestStep reference171 = ref span210[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1021378u, new Vector3(97.45935f, 7.9999995f, -11.947815f), 131); - num3 = 6; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - Span span74 = CollectionsMarshal.AsSpan(list212); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list212 = new List(index3); + CollectionsMarshal.SetCount(list212, index3); + Span span212 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span212[num3] = null; + num3++; + span212[num3] = null; + num3++; + span212[num3] = null; + num3++; + span212[num3] = null; + num3++; + span212[num3] = null; + num3++; + span212[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep28.CompletionQuestVariablesFlags = list212; reference171 = questStep28; - ref QuestStep reference172 = ref span72[2]; + num2++; + ref QuestStep reference172 = ref span210[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1021380u, new Vector3(105.6687f, 8f, 4.714966f), 131); num3 = 6; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - Span span75 = CollectionsMarshal.AsSpan(list213); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span213 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span213[index3] = null; + index3++; + span213[index3] = null; + index3++; + span213[index3] = null; + index3++; + span213[index3] = null; + index3++; + span213[index3] = null; + index3++; + span213[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep29.CompletionQuestVariablesFlags = list213; reference172 = questStep29; obj151.Steps = list210; reference169 = obj151; - ref QuestSequence reference173 = ref span71[5]; + num++; + ref QuestSequence reference173 = ref span204[num]; QuestSequence obj152 = new QuestSequence { Sequence = 5 @@ -168074,7 +202636,9 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Say, 1021381u, new Vector3(138.53662f, 4f, 51.377075f), 131) + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.Say, 1021381u, new Vector3(138.53662f, 4f, 51.377075f), 131) { ChatMessage = new ChatMessage { @@ -168083,28 +202647,33 @@ public static class AssemblyQuestLoader }; obj152.Steps = list214; reference173 = obj152; - ref QuestSequence reference174 = ref span71[6]; + num++; + ref QuestSequence reference174 = ref span204[num]; QuestSequence obj153 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - Span span76 = CollectionsMarshal.AsSpan(list215); - ref QuestStep reference175 = ref span76[0]; + index2 = 2; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + ref QuestStep reference175 = ref span215[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(165.3437f, 4.014847f, 46.210514f), 131); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - CollectionsMarshal.AsSpan(list216)[0] = 141; + index3 = 1; + List list216 = new List(index3); + CollectionsMarshal.SetCount(list216, index3); + Span span216 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span216[num3] = 141; skipStepConditions.InTerritory = list216; skipConditions6.StepIf = skipStepConditions; questStep30.SkipConditions = skipConditions6; reference175 = questStep30; - ref QuestStep reference176 = ref span76[1]; + num2++; + ref QuestStep reference176 = ref span215[num2]; QuestStep obj154 = new QuestStep(EInteractionType.Combat, 1021382u, new Vector3(282.39868f, 15.414177f, 513.1456f), 141) { Fly = true, @@ -168113,14 +202682,18 @@ public static class AssemblyQuestLoader num3 = 2; List list217 = new List(num3); CollectionsMarshal.SetCount(list217, num3); - Span span77 = CollectionsMarshal.AsSpan(list217); - span77[0] = 7237u; - span77[1] = 7238u; + Span span217 = CollectionsMarshal.AsSpan(list217); + index3 = 0; + span217[index3] = 7237u; + index3++; + span217[index3] = 7238u; obj154.KillEnemyDataIds = list217; - num3 = 1; - List list218 = new List(num3); - CollectionsMarshal.SetCount(list218, num3); - CollectionsMarshal.AsSpan(list218)[0] = new DialogueChoice + index3 = 1; + List list218 = new List(index3); + CollectionsMarshal.SetCount(list218, index3); + Span span218 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span218[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBPLD680_02574_Q1_000_000"), @@ -168130,7 +202703,8 @@ public static class AssemblyQuestLoader reference176 = obj154; obj153.Steps = list215; reference174 = obj153; - ref QuestSequence reference177 = ref span71[7]; + num++; + ref QuestSequence reference177 = ref span204[num]; QuestSequence obj155 = new QuestSequence { Sequence = 7 @@ -168138,21 +202712,26 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.Interact, 1021383u, new Vector3(284.71802f, 15.770843f, 512.5658f), 141) + Span span219 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span219[index2] = new QuestStep(EInteractionType.Interact, 1021383u, new Vector3(284.71802f, 15.770843f, 512.5658f), 141) { StopDistance = 7f }; obj155.Steps = list219; reference177 = obj155; - ref QuestSequence reference178 = ref span71[8]; + num++; + ref QuestSequence reference178 = ref span204[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span220[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -168171,13 +202750,16 @@ public static class AssemblyQuestLoader num = 1; List list221 = new List(num); CollectionsMarshal.SetCount(list221, num); - CollectionsMarshal.AsSpan(list221)[0] = "liza"; + Span span221 = CollectionsMarshal.AsSpan(list221); + index = 0; + span221[index] = "liza"; questRoot21.Author = list221; - num = 4; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - Span span78 = CollectionsMarshal.AsSpan(list222); - ref QuestSequence reference179 = ref span78[0]; + index = 4; + List list222 = new List(index); + CollectionsMarshal.SetCount(list222, index); + Span span222 = CollectionsMarshal.AsSpan(list222); + num = 0; + ref QuestSequence reference179 = ref span222[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 @@ -168185,7 +202767,9 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - ref QuestStep reference180 = ref CollectionsMarshal.AsSpan(list223)[0]; + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + ref QuestStep reference180 = ref span223[index2]; QuestStep obj158 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -168203,29 +202787,36 @@ public static class AssemblyQuestLoader num3 = 1; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = 131; + Span span224 = CollectionsMarshal.AsSpan(list224); + index3 = 0; + span224[index3] = 131; obj159.InTerritory = list224; skipConditions7.AetheryteShortcutIf = obj159; obj158.SkipConditions = skipConditions7; reference180 = obj158; obj157.Steps = list223; reference179 = obj157; - ref QuestSequence reference181 = ref span78[1]; + num++; + ref QuestSequence reference181 = ref span222[num]; QuestSequence obj160 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021271u, new Vector3(-87.174866f, 1.9499679f, 57.358643f), 131); + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021271u, new Vector3(-87.174866f, 1.9499679f, 57.358643f), 131); obj160.Steps = list225; reference181 = obj160; - span78[2] = new QuestSequence + num++; + span222[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference182 = ref span78[3]; + num++; + ref QuestSequence reference182 = ref span222[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue @@ -168233,9 +202824,11 @@ public static class AssemblyQuestLoader num2 = 2; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span79 = CollectionsMarshal.AsSpan(list226); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-95.62987f, 6.500003f, 41.749443f), 131); - span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131); + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span226[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-95.62987f, 6.500003f, 41.749443f), 131); + index2++; + span226[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131); obj161.Steps = list226; reference182 = obj161; questRoot21.QuestSequence = list222; @@ -168245,21 +202838,26 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - CollectionsMarshal.AsSpan(list227)[0] = "liza"; + Span span227 = CollectionsMarshal.AsSpan(list227); + index = 0; + span227[index] = "liza"; questRoot22.Author = list227; - num = 6; - List list228 = new List(num); - CollectionsMarshal.SetCount(list228, num); - Span span80 = CollectionsMarshal.AsSpan(list228); - ref QuestSequence reference183 = ref span80[0]; + index = 6; + List list228 = new List(index); + CollectionsMarshal.SetCount(list228, index); + Span span228 = CollectionsMarshal.AsSpan(list228); + num = 0; + ref QuestSequence reference183 = ref span228[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - ref QuestStep reference184 = ref CollectionsMarshal.AsSpan(list229)[0]; + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + Span span229 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + ref QuestStep reference184 = ref span229[num2]; QuestStep obj163 = new QuestStep(EInteractionType.AcceptQuest, 1021425u, new Vector3(146.1051f, 4f, 25.223145f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -168274,17 +202872,21 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list230 = new List(num3); - CollectionsMarshal.SetCount(list230, num3); - CollectionsMarshal.AsSpan(list230)[0] = 131; + index3 = 1; + List list230 = new List(index3); + CollectionsMarshal.SetCount(list230, index3); + Span span230 = CollectionsMarshal.AsSpan(list230); + num3 = 0; + span230[num3] = 131; obj164.InTerritory = list230; skipConditions8.AetheryteShortcutIf = obj164; obj163.SkipConditions = skipConditions8; num3 = 1; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - CollectionsMarshal.AsSpan(list231)[0] = new DialogueChoice + Span span231 = CollectionsMarshal.AsSpan(list231); + index3 = 0; + span231[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBRDM500_02576_Q1_000_010"), @@ -168294,7 +202896,8 @@ public static class AssemblyQuestLoader reference184 = obj163; obj162.Steps = list229; reference183 = obj162; - ref QuestSequence reference185 = ref span80[1]; + num++; + ref QuestSequence reference185 = ref span228[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 @@ -168302,29 +202905,35 @@ public static class AssemblyQuestLoader num2 = 2; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span81 = CollectionsMarshal.AsSpan(list232); - span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(166.65004f, 3.9997904f, 43.372593f), 131); - span81[1] = new QuestStep(EInteractionType.Interact, 1021426u, new Vector3(124.04053f, 5.292755f, 559.65515f), 141) + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span232[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(166.65004f, 3.9997904f, 43.372593f), 131); + index2++; + span232[index2] = new QuestStep(EInteractionType.Interact, 1021426u, new Vector3(124.04053f, 5.292755f, 559.65515f), 141) { Fly = true }; obj165.Steps = list232; reference185 = obj165; - ref QuestSequence reference186 = ref span80[2]; + num++; + ref QuestSequence reference186 = ref span228[num]; QuestSequence obj166 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1021434u, new Vector3(125.718994f, 5.2929487f, 558.9531f), 141) + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + Span span233 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span233[num2] = new QuestStep(EInteractionType.Interact, 1021434u, new Vector3(125.718994f, 5.2929487f, 558.9531f), 141) { StopDistance = 7f }; obj166.Steps = list233; reference186 = obj166; - ref QuestSequence reference187 = ref span80[3]; + num++; + ref QuestSequence reference187 = ref span228[num]; QuestSequence obj167 = new QuestSequence { Sequence = 3 @@ -168332,32 +202941,38 @@ public static class AssemblyQuestLoader num2 = 2; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - Span span82 = CollectionsMarshal.AsSpan(list234); - span82[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(8.849496f, 18.34012f, 562.2148f), 141) + Span span234 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + span234[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(8.849496f, 18.34012f, 562.2148f), 141) { Fly = true }; - span82[1] = new QuestStep(EInteractionType.Interact, 1021435u, new Vector3(145.73889f, 4f, 25.223145f), 131); + index2++; + span234[index2] = new QuestStep(EInteractionType.Interact, 1021435u, new Vector3(145.73889f, 4f, 25.223145f), 131); obj167.Steps = list234; reference187 = obj167; - ref QuestSequence reference188 = ref span80[4]; + num++; + ref QuestSequence reference188 = ref span228[num]; QuestSequence obj168 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - Span span83 = CollectionsMarshal.AsSpan(list235); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-77.95643f, -12.787907f, -45.044247f), 141) + index2 = 2; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + Span span235 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span235[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-77.95643f, -12.787907f, -45.044247f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - span83[1] = new QuestStep(EInteractionType.Interact, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141); + num2++; + span235[num2] = new QuestStep(EInteractionType.Interact, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141); obj168.Steps = list235; reference188 = obj168; - ref QuestSequence reference189 = ref span80[5]; + num++; + ref QuestSequence reference189 = ref span228[num]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue @@ -168365,12 +202980,16 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - ref QuestStep reference190 = ref CollectionsMarshal.AsSpan(list236)[0]; + Span span236 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + ref QuestStep reference190 = ref span236[index2]; QuestStep questStep31 = new QuestStep(EInteractionType.CompleteQuest, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141); - num3 = 1; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - CollectionsMarshal.AsSpan(list237)[0] = new DialogueChoice + index3 = 1; + List list237 = new List(index3); + CollectionsMarshal.SetCount(list237, index3); + Span span237 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span237[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBRDM500_02576_Q1_000_310") @@ -168387,22 +203006,26 @@ public static class AssemblyQuestLoader num = 1; List list238 = new List(num); CollectionsMarshal.SetCount(list238, num); - CollectionsMarshal.AsSpan(list238)[0] = "liza"; + Span span238 = CollectionsMarshal.AsSpan(list238); + index = 0; + span238[index] = "liza"; questRoot23.Author = list238; - num = 5; - List list239 = new List(num); - CollectionsMarshal.SetCount(list239, num); - Span span84 = CollectionsMarshal.AsSpan(list239); - ref QuestSequence reference191 = ref span84[0]; + index = 5; + List list239 = new List(index); + CollectionsMarshal.SetCount(list239, index); + Span span239 = CollectionsMarshal.AsSpan(list239); + num = 0; + ref QuestSequence reference191 = ref span239[num]; QuestSequence obj170 = new QuestSequence { Sequence = 0 }; - num2 = 4; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - Span span85 = CollectionsMarshal.AsSpan(list240); - span85[0] = new QuestStep(EInteractionType.EquipItem, null, null, 141) + index2 = 4; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, ItemId = 20389u, @@ -168421,7 +203044,8 @@ public static class AssemblyQuestLoader } } }; - span85[1] = new QuestStep(EInteractionType.UseItem, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141) + num2++; + span240[num2] = new QuestStep(EInteractionType.UseItem, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141) { ItemId = 20621u, SkipConditions = new SkipConditions @@ -168435,11 +203059,14 @@ public static class AssemblyQuestLoader } } }; - span85[2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 141); - span85[3] = new QuestStep(EInteractionType.AcceptQuest, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141); + num2++; + span240[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 141); + num2++; + span240[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141); obj170.Steps = list240; reference191 = obj170; - ref QuestSequence reference192 = ref span84[1]; + num++; + ref QuestSequence reference192 = ref span239[num]; QuestSequence obj171 = new QuestSequence { Sequence = 1 @@ -168447,27 +203074,33 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span86 = CollectionsMarshal.AsSpan(list241); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-508.00916f, -17.453016f, 16.0174f), 145) + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-508.00916f, -17.453016f, 16.0174f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - span86[1] = new QuestStep(EInteractionType.Interact, 1021439u, new Vector3(-513.7255f, -16.420002f, -6.668213f), 145); + index2++; + span241[index2] = new QuestStep(EInteractionType.Interact, 1021439u, new Vector3(-513.7255f, -16.420002f, -6.668213f), 145); obj171.Steps = list241; reference192 = obj171; - ref QuestSequence reference193 = ref span84[2]; + num++; + ref QuestSequence reference193 = ref span239[num]; QuestSequence obj172 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021440u, new Vector3(-505.6382f, -17.810839f, 28.702148f), 145); + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021440u, new Vector3(-505.6382f, -17.810839f, 28.702148f), 145); obj172.Steps = list242; reference193 = obj172; - ref QuestSequence reference194 = ref span84[3]; + num++; + ref QuestSequence reference194 = ref span239[num]; QuestSequence obj173 = new QuestSequence { Sequence = 3 @@ -168475,21 +203108,26 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1021441u, new Vector3(-428.58014f, -29.27635f, 24.826416f), 145) + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span243[index2] = new QuestStep(EInteractionType.Interact, 1021441u, new Vector3(-428.58014f, -29.27635f, 24.826416f), 145) { StopDistance = 5f }; obj173.Steps = list243; reference194 = obj173; - ref QuestSequence reference195 = ref span84[4]; + num++; + ref QuestSequence reference195 = ref span239[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021447u, new Vector3(-496.75748f, -17.41137f, 28.091797f), 145) + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021447u, new Vector3(-496.75748f, -17.41137f, 28.091797f), 145) { StopDistance = 1f, Fly = true, @@ -168504,13 +203142,16 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "liza"; + Span span245 = CollectionsMarshal.AsSpan(list245); + index = 0; + span245[index] = "liza"; questRoot24.Author = list245; - num = 10; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span87 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference196 = ref span87[0]; + index = 10; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + Span span246 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference196 = ref span246[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -168518,7 +203159,9 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021447u, new Vector3(-496.75748f, -17.41137f, 28.091797f), 145) + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021447u, new Vector3(-496.75748f, -17.41137f, 28.091797f), 145) { StopDistance = 1f, Fly = true, @@ -168533,18 +203176,22 @@ public static class AssemblyQuestLoader }; obj175.Steps = list247; reference196 = obj175; - ref QuestSequence reference197 = ref span87[1]; + num++; + ref QuestSequence reference197 = ref span246[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145); + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.Interact, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145); obj176.Steps = list248; reference197 = obj176; - ref QuestSequence reference198 = ref span87[2]; + num++; + ref QuestSequence reference198 = ref span246[num]; QuestSequence obj177 = new QuestSequence { Sequence = 2 @@ -168552,7 +203199,9 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1021448u, new Vector3(-56.717834f, -1.8104911E-06f, 102.708374f), 144) + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.Interact, 1021448u, new Vector3(-56.717834f, -1.8104911E-06f, 102.708374f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, AethernetShortcut = new AethernetShortcut @@ -168563,15 +203212,18 @@ public static class AssemblyQuestLoader }; obj177.Steps = list249; reference198 = obj177; - ref QuestSequence reference199 = ref span87[3]; + num++; + ref QuestSequence reference199 = ref span246[num]; QuestSequence obj178 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 2008218u, new Vector3(-0.07635498f, 20.98108f, 53.60486f), 144) + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span250 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span250[num2] = new QuestStep(EInteractionType.Interact, 2008218u, new Vector3(-0.07635498f, 20.98108f, 53.60486f), 144) { AethernetShortcut = new AethernetShortcut { @@ -168581,7 +203233,8 @@ public static class AssemblyQuestLoader }; obj178.Steps = list250; reference199 = obj178; - ref QuestSequence reference200 = ref span87[4]; + num++; + ref QuestSequence reference200 = ref span246[num]; QuestSequence obj179 = new QuestSequence { Sequence = 4 @@ -168589,27 +203242,33 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1021450u, new Vector3(-8.621399f, 20.99973f, 43.381348f), 144); + Span span251 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span251[index2] = new QuestStep(EInteractionType.Interact, 1021450u, new Vector3(-8.621399f, 20.99973f, 43.381348f), 144); obj179.Steps = list251; reference200 = obj179; - ref QuestSequence reference201 = ref span87[5]; + num++; + ref QuestSequence reference201 = ref span246[num]; QuestSequence obj180 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span88 = CollectionsMarshal.AsSpan(list252); - span88[0] = new QuestStep(EInteractionType.UseItem, null, null, 144) + index2 = 2; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.UseItem, null, null, 144) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span88[1] = new QuestStep(EInteractionType.Interact, 1021451u, new Vector3(-429.64832f, 23.743237f, -351.06433f), 140); + num2++; + span252[num2] = new QuestStep(EInteractionType.Interact, 1021451u, new Vector3(-429.64832f, 23.743237f, -351.06433f), 140); obj180.Steps = list252; reference201 = obj180; - ref QuestSequence reference202 = ref span87[6]; + num++; + ref QuestSequence reference202 = ref span246[num]; QuestSequence obj181 = new QuestSequence { Sequence = 6 @@ -168617,13 +203276,16 @@ public static class AssemblyQuestLoader num2 = 3; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span89 = CollectionsMarshal.AsSpan(list253); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140); - span89[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-375.8867f, 23f, -352.31714f), 140) + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140); + index2++; + span253[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-375.8867f, 23f, -352.31714f), 140) { DisableNavmesh = true }; - ref QuestStep reference203 = ref span89[2]; + index2++; + ref QuestStep reference203 = ref span253[index2]; QuestStep obj182 = new QuestStep(EInteractionType.Combat, 2008219u, new Vector3(-326.1311f, 22.9953f, -348.19562f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -168631,29 +203293,36 @@ public static class AssemblyQuestLoader num3 = 1; List list254 = new List(num3); CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = 7218u; + Span span254 = CollectionsMarshal.AsSpan(list254); + index3 = 0; + span254[index3] = 7218u; obj182.KillEnemyDataIds = list254; reference203 = obj182; obj181.Steps = list253; reference202 = obj181; - ref QuestSequence reference204 = ref span87[7]; + num++; + ref QuestSequence reference204 = ref span246[num]; QuestSequence obj183 = new QuestSequence { Sequence = 7 }; - num2 = 3; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - Span span90 = CollectionsMarshal.AsSpan(list255); - span90[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-375.8867f, 23f, -352.31714f), 140); - span90[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140) + index2 = 3; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span255 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span255[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-375.8867f, 23f, -352.31714f), 140); + num2++; + span255[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140) { DisableNavmesh = true }; - span90[2] = new QuestStep(EInteractionType.Interact, 1021453u, new Vector3(-407.98047f, 23.008799f, -320.36322f), 140); + num2++; + span255[num2] = new QuestStep(EInteractionType.Interact, 1021453u, new Vector3(-407.98047f, 23.008799f, -320.36322f), 140); obj183.Steps = list255; reference204 = obj183; - ref QuestSequence reference205 = ref span87[8]; + num++; + ref QuestSequence reference205 = ref span246[num]; QuestSequence obj184 = new QuestSequence { Sequence = 8 @@ -168661,23 +203330,28 @@ public static class AssemblyQuestLoader num2 = 2; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span91 = CollectionsMarshal.AsSpan(list256); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-405.64215f, 23.167034f, -350.37634f), 140); - span91[1] = new QuestStep(EInteractionType.Interact, 1021456u, new Vector3(-400.38147f, 23f, -348.13464f), 140) + Span span256 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span256[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-405.64215f, 23.167034f, -350.37634f), 140); + index2++; + span256[index2] = new QuestStep(EInteractionType.Interact, 1021456u, new Vector3(-400.38147f, 23f, -348.13464f), 140) { StopDistance = 7f }; obj184.Steps = list256; reference205 = obj184; - ref QuestSequence reference206 = ref span87[9]; + num++; + ref QuestSequence reference206 = ref span246[num]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021457u, new Vector3(-476.40198f, 23.228897f, -430.71643f), 140) + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span257 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span257[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021457u, new Vector3(-476.40198f, 23.228897f, -430.71643f), 140) { Fly = true, NextQuestId = new QuestId(2579) @@ -168691,13 +203365,16 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - CollectionsMarshal.AsSpan(list258)[0] = "liza"; + Span span258 = CollectionsMarshal.AsSpan(list258); + index = 0; + span258[index] = "liza"; questRoot25.Author = list258; - num = 9; - List list259 = new List(num); - CollectionsMarshal.SetCount(list259, num); - Span span92 = CollectionsMarshal.AsSpan(list259); - ref QuestSequence reference207 = ref span92[0]; + index = 9; + List list259 = new List(index); + CollectionsMarshal.SetCount(list259, index); + Span span259 = CollectionsMarshal.AsSpan(list259); + num = 0; + ref QuestSequence reference207 = ref span259[num]; QuestSequence obj186 = new QuestSequence { Sequence = 0 @@ -168705,7 +203382,9 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021457u, new Vector3(-476.40198f, 23.228897f, -430.71643f), 140) + Span span260 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span260[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021457u, new Vector3(-476.40198f, 23.228897f, -430.71643f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, @@ -168719,21 +203398,25 @@ public static class AssemblyQuestLoader }; obj186.Steps = list260; reference207 = obj186; - ref QuestSequence reference208 = ref span92[1]; + num++; + ref QuestSequence reference208 = ref span259[num]; QuestSequence obj187 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1021458u, new Vector3(282.5818f, -24.99566f, 243.7323f), 138) + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + Span span261 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span261[num2] = new QuestStep(EInteractionType.Interact, 1021458u, new Vector3(282.5818f, -24.99566f, 243.7323f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj187.Steps = list261; reference208 = obj187; - ref QuestSequence reference209 = ref span92[2]; + num++; + ref QuestSequence reference209 = ref span259[num]; QuestSequence obj188 = new QuestSequence { Sequence = 2 @@ -168741,67 +203424,92 @@ public static class AssemblyQuestLoader num2 = 3; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span93 = CollectionsMarshal.AsSpan(list262); - ref QuestStep reference210 = ref span93[0]; + Span span262 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + ref QuestStep reference210 = ref span262[index2]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 1021464u, new Vector3(327.77905f, -31.89878f, 275.59314f), 138); - num3 = 6; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - Span span94 = CollectionsMarshal.AsSpan(list263); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list263 = new List(index3); + CollectionsMarshal.SetCount(list263, index3); + Span span263 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span263[num3] = null; + num3++; + span263[num3] = null; + num3++; + span263[num3] = null; + num3++; + span263[num3] = null; + num3++; + span263[num3] = null; + num3++; + span263[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep32.CompletionQuestVariablesFlags = list263; reference210 = questStep32; - ref QuestStep reference211 = ref span93[1]; + index2++; + ref QuestStep reference211 = ref span262[index2]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1021463u, new Vector3(311.4823f, -36.325005f, 351.33887f), 138); num3 = 6; List list264 = new List(num3); CollectionsMarshal.SetCount(list264, num3); - Span span95 = CollectionsMarshal.AsSpan(list264); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span264 = CollectionsMarshal.AsSpan(list264); + index3 = 0; + span264[index3] = null; + index3++; + span264[index3] = null; + index3++; + span264[index3] = null; + index3++; + span264[index3] = null; + index3++; + span264[index3] = null; + index3++; + span264[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep33.CompletionQuestVariablesFlags = list264; reference211 = questStep33; - ref QuestStep reference212 = ref span93[2]; + index2++; + ref QuestStep reference212 = ref span262[index2]; QuestStep questStep34 = new QuestStep(EInteractionType.Interact, 1021465u, new Vector3(319.2339f, -40.425003f, 382.37573f), 138); - num3 = 6; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - Span span96 = CollectionsMarshal.AsSpan(list265); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list265 = new List(index3); + CollectionsMarshal.SetCount(list265, index3); + Span span265 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep34.CompletionQuestVariablesFlags = list265; reference212 = questStep34; obj188.Steps = list262; reference209 = obj188; - ref QuestSequence reference213 = ref span92[3]; + num++; + ref QuestSequence reference213 = ref span259[num]; QuestSequence obj189 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1021458u, new Vector3(282.5818f, -24.99566f, 243.7323f), 138) + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + Span span266 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span266[num2] = new QuestStep(EInteractionType.Interact, 1021458u, new Vector3(282.5818f, -24.99566f, 243.7323f), 138) { StopDistance = 1f, Fly = true }; obj189.Steps = list266; reference213 = obj189; - ref QuestSequence reference214 = ref span92[4]; + num++; + ref QuestSequence reference214 = ref span259[num]; QuestSequence obj190 = new QuestSequence { Sequence = 4 @@ -168809,7 +203517,9 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - ref QuestStep reference215 = ref CollectionsMarshal.AsSpan(list267)[0]; + Span span267 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + ref QuestStep reference215 = ref span267[index2]; QuestStep obj191 = new QuestStep(EInteractionType.Combat, 2008221u, new Vector3(200.09155f, -36.728516f, 276.17297f), 138) { Fly = true, @@ -168818,26 +203528,32 @@ public static class AssemblyQuestLoader num3 = 1; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = 7219u; + Span span268 = CollectionsMarshal.AsSpan(list268); + index3 = 0; + span268[index3] = 7219u; obj191.KillEnemyDataIds = list268; reference215 = obj191; obj190.Steps = list267; reference214 = obj190; - ref QuestSequence reference216 = ref span92[5]; + num++; + ref QuestSequence reference216 = ref span259[num]; QuestSequence obj192 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1021459u, new Vector3(207.35486f, -36.405907f, 328.11462f), 138) + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + Span span269 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span269[num2] = new QuestStep(EInteractionType.Interact, 1021459u, new Vector3(207.35486f, -36.405907f, 328.11462f), 138) { Fly = true }; obj192.Steps = list269; reference216 = obj192; - ref QuestSequence reference217 = ref span92[6]; + num++; + ref QuestSequence reference217 = ref span259[num]; QuestSequence obj193 = new QuestSequence { Sequence = 6 @@ -168845,29 +203561,35 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.UseItem, 2008924u, new Vector3(206.073f, -35.568848f, 329.21338f), 138) + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span270[index2] = new QuestStep(EInteractionType.UseItem, 2008924u, new Vector3(206.073f, -35.568848f, 329.21338f), 138) { ItemId = 2002182u }; obj193.Steps = list270; reference217 = obj193; - ref QuestSequence reference218 = ref span92[7]; + num++; + ref QuestSequence reference218 = ref span259[num]; QuestSequence obj194 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - Span span97 = CollectionsMarshal.AsSpan(list271); - span97[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.05298f, -36.405563f, 307.39264f), 138) + index2 = 2; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.05298f, -36.405563f, 307.39264f), 138) { Fly = true }; - span97[1] = new QuestStep(EInteractionType.Interact, 1021460u, new Vector3(319.44763f, -35.9496f, 305.6228f), 138); + num2++; + span271[num2] = new QuestStep(EInteractionType.Interact, 1021460u, new Vector3(319.44763f, -35.9496f, 305.6228f), 138); obj194.Steps = list271; reference218 = obj194; - ref QuestSequence reference219 = ref span92[8]; + num++; + ref QuestSequence reference219 = ref span259[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue @@ -168875,7 +203597,9 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021462u, new Vector3(307.36243f, -36.402996f, 309.98706f), 138) + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021462u, new Vector3(307.36243f, -36.402996f, 309.98706f), 138) { NextQuestId = new QuestId(2580) }; @@ -168888,21 +203612,26 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "liza"; + Span span273 = CollectionsMarshal.AsSpan(list273); + index = 0; + span273[index] = "liza"; questRoot26.Author = list273; - num = 8; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span98 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference220 = ref span98[0]; + index = 8; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + Span span274 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference220 = ref span274[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021462u, new Vector3(307.36243f, -36.402996f, 309.98706f), 138) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021462u, new Vector3(307.36243f, -36.402996f, 309.98706f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -168915,7 +203644,8 @@ public static class AssemblyQuestLoader }; obj196.Steps = list275; reference220 = obj196; - ref QuestSequence reference221 = ref span98[1]; + num++; + ref QuestSequence reference221 = ref span274[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 @@ -168923,39 +203653,47 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1021466u, new Vector3(320.54626f, -35.949726f, 306.11108f), 138); + Span span276 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span276[index2] = new QuestStep(EInteractionType.Interact, 1021466u, new Vector3(320.54626f, -35.949726f, 306.11108f), 138); obj197.Steps = list276; reference221 = obj197; - ref QuestSequence reference222 = ref span98[2]; + num++; + ref QuestSequence reference222 = ref span274[num]; QuestSequence obj198 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - Span span99 = CollectionsMarshal.AsSpan(list277); - span99[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(310.38196f, -35.96502f, 314.66306f), 138) + index2 = 3; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span277[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(310.38196f, -35.96502f, 314.66306f), 138) { Mount = true }; - span99[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(192.09558f, -17.541195f, 268.45526f), 138) + num2++; + span277[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(192.09558f, -17.541195f, 268.45526f), 138) { Fly = true }; - ref QuestStep reference223 = ref span99[2]; + num2++; + ref QuestStep reference223 = ref span277[num2]; QuestStep questStep35 = new QuestStep(EInteractionType.Interact, 1021467u, new Vector3(190.96667f, -17.339743f, 269.27588f), 138); - num3 = 2; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - Span span100 = CollectionsMarshal.AsSpan(list278); - span100[0] = new DialogueChoice + index3 = 2; + List list278 = new List(index3); + CollectionsMarshal.SetCount(list278, index3); + Span span278 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span278[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBRDM560_02580_Q1_000_100"), Answer = new ExcelRef("TEXT_JOBRDM560_02580_A1_000_101") }; - span100[1] = new DialogueChoice + num3++; + span278[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBRDM560_02580_Q2_000_131"), @@ -168965,7 +203703,8 @@ public static class AssemblyQuestLoader reference223 = questStep35; obj198.Steps = list277; reference222 = obj198; - ref QuestSequence reference224 = ref span98[3]; + num++; + ref QuestSequence reference224 = ref span274[num]; QuestSequence obj199 = new QuestSequence { Sequence = 3 @@ -168973,34 +203712,40 @@ public static class AssemblyQuestLoader num2 = 2; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span101 = CollectionsMarshal.AsSpan(list279); - span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.05298f, -36.405563f, 307.39264f), 138) + Span span279 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span279[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.05298f, -36.405563f, 307.39264f), 138) { Fly = true }; - span101[1] = new QuestStep(EInteractionType.Interact, 1021468u, new Vector3(319.44763f, -35.949703f, 306.90466f), 138); + index2++; + span279[index2] = new QuestStep(EInteractionType.Interact, 1021468u, new Vector3(319.44763f, -35.949703f, 306.90466f), 138); obj199.Steps = list279; reference224 = obj199; - ref QuestSequence reference225 = ref span98[4]; + num++; + ref QuestSequence reference225 = ref span274[num]; QuestSequence obj200 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - Span span102 = CollectionsMarshal.AsSpan(list280); - span102[0] = new QuestStep(EInteractionType.Interact, 1003584u, new Vector3(317.43335f, -36.325005f, 352.86487f), 138) + index2 = 2; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span280 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span280[num2] = new QuestStep(EInteractionType.Interact, 1003584u, new Vector3(317.43335f, -36.325005f, 352.86487f), 138) { TargetTerritoryId = (ushort)138 }; - span102[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021469u, new Vector3(-289.14325f, -40.63008f, 420.46228f), 138) + num2++; + span280[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021469u, new Vector3(-289.14325f, -40.63008f, 420.46228f), 138) { StopDistance = 7f }; obj200.Steps = list280; reference225 = obj200; - ref QuestSequence reference226 = ref span98[5]; + num++; + ref QuestSequence reference226 = ref span274[num]; QuestSequence obj201 = new QuestSequence { Sequence = 5 @@ -169008,21 +203753,27 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1021442u, new Vector3(-304.89056f, -40.172314f, 660.1815f), 138); + Span span281 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span281[index2] = new QuestStep(EInteractionType.Interact, 1021442u, new Vector3(-304.89056f, -40.172314f, 660.1815f), 138); obj201.Steps = list281; reference226 = obj201; - ref QuestSequence reference227 = ref span98[6]; + num++; + ref QuestSequence reference227 = ref span274[num]; QuestSequence obj202 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1021471u, new Vector3(320.88184f, -40.425003f, 369.77185f), 138); + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + Span span282 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span282[num2] = new QuestStep(EInteractionType.Interact, 1021471u, new Vector3(320.88184f, -40.425003f, 369.77185f), 138); obj202.Steps = list282; reference227 = obj202; - ref QuestSequence reference228 = ref span98[7]; + num++; + ref QuestSequence reference228 = ref span274[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -169030,7 +203781,9 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021473u, new Vector3(311.39075f, -25.002254f, 230.82312f), 138) + Span span283 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span283[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021473u, new Vector3(311.39075f, -25.002254f, 230.82312f), 138) { Fly = true, NextQuestId = new QuestId(2581) @@ -169044,21 +203797,26 @@ public static class AssemblyQuestLoader num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - CollectionsMarshal.AsSpan(list284)[0] = "liza"; + Span span284 = CollectionsMarshal.AsSpan(list284); + index = 0; + span284[index] = "liza"; questRoot27.Author = list284; - num = 7; - List list285 = new List(num); - CollectionsMarshal.SetCount(list285, num); - Span span103 = CollectionsMarshal.AsSpan(list285); - ref QuestSequence reference229 = ref span103[0]; + index = 7; + List list285 = new List(index); + CollectionsMarshal.SetCount(list285, index); + Span span285 = CollectionsMarshal.AsSpan(list285); + num = 0; + ref QuestSequence reference229 = ref span285[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021473u, new Vector3(311.39075f, -25.002254f, 230.82312f), 138) + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + Span span286 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span286[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021473u, new Vector3(311.39075f, -25.002254f, 230.82312f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -169071,7 +203829,8 @@ public static class AssemblyQuestLoader }; obj204.Steps = list286; reference229 = obj204; - ref QuestSequence reference230 = ref span103[1]; + num++; + ref QuestSequence reference230 = ref span285[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -169079,7 +203838,9 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - ref QuestStep reference231 = ref CollectionsMarshal.AsSpan(list287)[0]; + Span span287 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + ref QuestStep reference231 = ref span287[index2]; QuestStep obj206 = new QuestStep(EInteractionType.Interact, 1021475u, new Vector3(-196.94824f, 15.542886f, 37.582886f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -169092,7 +203853,9 @@ public static class AssemblyQuestLoader num3 = 1; List list288 = new List(num3); CollectionsMarshal.SetCount(list288, num3); - CollectionsMarshal.AsSpan(list288)[0] = new DialogueChoice + Span span288 = CollectionsMarshal.AsSpan(list288); + index3 = 0; + span288[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBRDM580_02581_Q1_000_100"), @@ -169102,15 +203865,18 @@ public static class AssemblyQuestLoader reference231 = obj206; obj205.Steps = list287; reference230 = obj205; - ref QuestSequence reference232 = ref span103[2]; + num++; + ref QuestSequence reference232 = ref span285[num]; QuestSequence obj207 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1021478u, new Vector3(-17.257996f, 40.000496f, -6.4240723f), 128) + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + Span span289 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span289[num2] = new QuestStep(EInteractionType.Interact, 1021478u, new Vector3(-17.257996f, 40.000496f, -6.4240723f), 128) { AethernetShortcut = new AethernetShortcut { @@ -169120,7 +203886,8 @@ public static class AssemblyQuestLoader }; obj207.Steps = list289; reference232 = obj207; - ref QuestSequence reference233 = ref span103[3]; + num++; + ref QuestSequence reference233 = ref span285[num]; QuestSequence obj208 = new QuestSequence { Sequence = 3 @@ -169128,38 +203895,46 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1021480u, new Vector3(-304.28015f, 78.854965f, -140.82556f), 147) + Span span290 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span290[index2] = new QuestStep(EInteractionType.Interact, 1021480u, new Vector3(-304.28015f, 78.854965f, -140.82556f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; obj208.Steps = list290; reference233 = obj208; - ref QuestSequence reference234 = ref span103[4]; + num++; + ref QuestSequence reference234 = ref span285[num]; QuestSequence obj209 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - ref QuestStep reference235 = ref CollectionsMarshal.AsSpan(list291)[0]; + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + Span span291 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + ref QuestStep reference235 = ref span291[num2]; QuestStep obj210 = new QuestStep(EInteractionType.Combat, 2008233u, new Vector3(-292.6833f, 84.4281f, -359.39575f), 147) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list292 = new List(num3); - CollectionsMarshal.SetCount(list292, num3); - Span span104 = CollectionsMarshal.AsSpan(list292); - span104[0] = 7221u; - span104[1] = 7222u; + index3 = 2; + List list292 = new List(index3); + CollectionsMarshal.SetCount(list292, index3); + Span span292 = CollectionsMarshal.AsSpan(list292); + num3 = 0; + span292[num3] = 7221u; + num3++; + span292[num3] = 7222u; obj210.KillEnemyDataIds = list292; reference235 = obj210; obj209.Steps = list291; reference234 = obj209; - ref QuestSequence reference236 = ref span103[5]; + num++; + ref QuestSequence reference236 = ref span285[num]; QuestSequence obj211 = new QuestSequence { Sequence = 5 @@ -169167,21 +203942,26 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1021480u, new Vector3(-304.28015f, 78.854965f, -140.82556f), 147) + Span span293 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span293[index2] = new QuestStep(EInteractionType.Interact, 1021480u, new Vector3(-304.28015f, 78.854965f, -140.82556f), 147) { Fly = true }; obj211.Steps = list293; reference236 = obj211; - ref QuestSequence reference237 = ref span103[6]; + num++; + ref QuestSequence reference237 = ref span285[num]; QuestSequence obj212 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021482u, new Vector3(-94.92645f, 48.01958f, -31.570984f), 147) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span294 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span294[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021482u, new Vector3(-94.92645f, 48.01958f, -31.570984f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -169196,13 +203976,16 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "liza"; + Span span295 = CollectionsMarshal.AsSpan(list295); + index = 0; + span295[index] = "liza"; questRoot28.Author = list295; - num = 8; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - Span span105 = CollectionsMarshal.AsSpan(list296); - ref QuestSequence reference238 = ref span105[0]; + index = 8; + List list296 = new List(index); + CollectionsMarshal.SetCount(list296, index); + Span span296 = CollectionsMarshal.AsSpan(list296); + num = 0; + ref QuestSequence reference238 = ref span296[num]; QuestSequence obj213 = new QuestSequence { Sequence = 0 @@ -169210,7 +203993,9 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021482u, new Vector3(-94.92645f, 48.01958f, -31.570984f), 147) + Span span297 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span297[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021482u, new Vector3(-94.92645f, 48.01958f, -31.570984f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -169224,22 +204009,26 @@ public static class AssemblyQuestLoader }; obj213.Steps = list297; reference238 = obj213; - ref QuestSequence reference239 = ref span105[1]; + num++; + ref QuestSequence reference239 = ref span296[num]; QuestSequence obj214 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.Interact, 1021484u, new Vector3(3.3721924f, 50.266228f, -770.1076f), 156) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + Span span298 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span298[num2] = new QuestStep(EInteractionType.Interact, 1021484u, new Vector3(3.3721924f, 50.266228f, -770.1076f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj214.Steps = list298; reference239 = obj214; - ref QuestSequence reference240 = ref span105[2]; + num++; + ref QuestSequence reference240 = ref span296[num]; QuestSequence obj215 = new QuestSequence { Sequence = 2 @@ -169247,27 +204036,33 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1021486u, new Vector3(54.642456f, 20.4949f, -671.3207f), 156) + Span span299 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span299[index2] = new QuestStep(EInteractionType.Interact, 1021486u, new Vector3(54.642456f, 20.4949f, -671.3207f), 156) { Fly = true }; obj215.Steps = list299; reference240 = obj215; - ref QuestSequence reference241 = ref span105[3]; + num++; + ref QuestSequence reference241 = ref span296[num]; QuestSequence obj216 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1021487u, new Vector3(94.56018f, 20.33949f, -609.4606f), 156) + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + Span span300 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span300[num2] = new QuestStep(EInteractionType.Interact, 1021487u, new Vector3(94.56018f, 20.33949f, -609.4606f), 156) { Fly = true }; obj216.Steps = list300; reference241 = obj216; - ref QuestSequence reference242 = ref span105[4]; + num++; + ref QuestSequence reference242 = ref span296[num]; QuestSequence obj217 = new QuestSequence { Sequence = 4 @@ -169275,8 +204070,9 @@ public static class AssemblyQuestLoader num2 = 2; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - Span span106 = CollectionsMarshal.AsSpan(list301); - ref QuestStep reference243 = ref span106[0]; + Span span301 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + ref QuestStep reference243 = ref span301[index2]; QuestStep obj218 = new QuestStep(EInteractionType.Combat, null, new Vector3(175.10304f, 10.336163f, -584.578f), 156) { StopDistance = 0.5f, @@ -169286,33 +204082,44 @@ public static class AssemblyQuestLoader num3 = 1; List list302 = new List(num3); CollectionsMarshal.SetCount(list302, num3); - CollectionsMarshal.AsSpan(list302)[0] = 7223u; + Span span302 = CollectionsMarshal.AsSpan(list302); + index3 = 0; + span302[index3] = 7223u; obj218.KillEnemyDataIds = list302; - num3 = 6; - List list303 = new List(num3); - CollectionsMarshal.SetCount(list303, num3); - Span span107 = CollectionsMarshal.AsSpan(list303); - span107[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = null; + index3 = 6; + List list303 = new List(index3); + CollectionsMarshal.SetCount(list303, index3); + Span span303 = CollectionsMarshal.AsSpan(list303); + num3 = 0; + span303[num3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num3++; + span303[num3] = null; + num3++; + span303[num3] = null; + num3++; + span303[num3] = null; + num3++; + span303[num3] = null; + num3++; + span303[num3] = null; obj218.CompletionQuestVariablesFlags = list303; reference243 = obj218; - span106[1] = new QuestStep(EInteractionType.Interact, 1021489u, new Vector3(176.3789f, 9.963035f, -583.64233f), 156); + index2++; + span301[index2] = new QuestStep(EInteractionType.Interact, 1021489u, new Vector3(176.3789f, 9.963035f, -583.64233f), 156); obj217.Steps = list301; reference242 = obj217; - ref QuestSequence reference244 = ref span105[5]; + num++; + ref QuestSequence reference244 = ref span296[num]; QuestSequence obj219 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - Span span108 = CollectionsMarshal.AsSpan(list304); - ref QuestStep reference245 = ref span108[0]; + index2 = 2; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + Span span304 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + ref QuestStep reference245 = ref span304[num2]; QuestStep obj220 = new QuestStep(EInteractionType.Combat, null, new Vector3(210.32977f, -17.479898f, -470.8124f), 156) { StopDistance = 0.5f, @@ -169322,24 +204129,34 @@ public static class AssemblyQuestLoader num3 = 1; List list305 = new List(num3); CollectionsMarshal.SetCount(list305, num3); - CollectionsMarshal.AsSpan(list305)[0] = 7224u; + Span span305 = CollectionsMarshal.AsSpan(list305); + index3 = 0; + span305[index3] = 7224u; obj220.KillEnemyDataIds = list305; - num3 = 6; - List list306 = new List(num3); - CollectionsMarshal.SetCount(list306, num3); - Span span109 = CollectionsMarshal.AsSpan(list306); - span109[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = null; + index3 = 6; + List list306 = new List(index3); + CollectionsMarshal.SetCount(list306, index3); + Span span306 = CollectionsMarshal.AsSpan(list306); + num3 = 0; + span306[num3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num3++; + span306[num3] = null; + num3++; + span306[num3] = null; + num3++; + span306[num3] = null; + num3++; + span306[num3] = null; + num3++; + span306[num3] = null; obj220.CompletionQuestVariablesFlags = list306; reference245 = obj220; - span108[1] = new QuestStep(EInteractionType.Interact, 1021490u, new Vector3(211.56628f, -17.612108f, -469.50488f), 156); + num2++; + span304[num2] = new QuestStep(EInteractionType.Interact, 1021490u, new Vector3(211.56628f, -17.612108f, -469.50488f), 156); obj219.Steps = list304; reference244 = obj219; - ref QuestSequence reference246 = ref span105[6]; + num++; + ref QuestSequence reference246 = ref span296[num]; QuestSequence obj221 = new QuestSequence { Sequence = 6 @@ -169347,21 +204164,26 @@ public static class AssemblyQuestLoader num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2008526u, new Vector3(376.82153f, -17.563171f, -343.67902f), 156) + Span span307 = CollectionsMarshal.AsSpan(list307); + index2 = 0; + span307[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2008526u, new Vector3(376.82153f, -17.563171f, -343.67902f), 156) { Fly = true }; obj221.Steps = list307; reference246 = obj221; - ref QuestSequence reference247 = ref span105[7]; + num++; + ref QuestSequence reference247 = ref span296[num]; QuestSequence obj222 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021493u, new Vector3(55.557983f, 20.485168f, -672.5719f), 156) + index2 = 1; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + Span span308 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span308[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021493u, new Vector3(55.557983f, 20.485168f, -672.5719f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, NextQuestId = new QuestId(2583) @@ -169375,13 +204197,16 @@ public static class AssemblyQuestLoader num = 1; List list309 = new List(num); CollectionsMarshal.SetCount(list309, num); - CollectionsMarshal.AsSpan(list309)[0] = "liza"; + Span span309 = CollectionsMarshal.AsSpan(list309); + index = 0; + span309[index] = "liza"; questRoot29.Author = list309; - num = 7; - List list310 = new List(num); - CollectionsMarshal.SetCount(list310, num); - Span span110 = CollectionsMarshal.AsSpan(list310); - ref QuestSequence reference248 = ref span110[0]; + index = 7; + List list310 = new List(index); + CollectionsMarshal.SetCount(list310, index); + Span span310 = CollectionsMarshal.AsSpan(list310); + num = 0; + ref QuestSequence reference248 = ref span310[num]; QuestSequence obj223 = new QuestSequence { Sequence = 0 @@ -169389,7 +204214,9 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021493u, new Vector3(55.557983f, 20.485168f, -672.5719f), 156) + Span span311 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + span311[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021493u, new Vector3(55.557983f, 20.485168f, -672.5719f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -169402,21 +204229,25 @@ public static class AssemblyQuestLoader }; obj223.Steps = list311; reference248 = obj223; - ref QuestSequence reference249 = ref span110[1]; + num++; + ref QuestSequence reference249 = ref span310[num]; QuestSequence obj224 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Interact, 1021772u, new Vector3(63.095947f, 207.82686f, -14.725037f), 478) + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + Span span312 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span312[num2] = new QuestStep(EInteractionType.Interact, 1021772u, new Vector3(63.095947f, 207.82686f, -14.725037f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj224.Steps = list312; reference249 = obj224; - ref QuestSequence reference250 = ref span110[2]; + num++; + ref QuestSequence reference250 = ref span310[num]; QuestSequence obj225 = new QuestSequence { Sequence = 2 @@ -169424,7 +204255,9 @@ public static class AssemblyQuestLoader num2 = 1; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - ref QuestStep reference251 = ref CollectionsMarshal.AsSpan(list313)[0]; + Span span313 = CollectionsMarshal.AsSpan(list313); + index2 = 0; + ref QuestStep reference251 = ref span313[index2]; QuestStep obj226 = new QuestStep(EInteractionType.Combat, 2008220u, new Vector3(385.9464f, 78.446655f, -114.488464f), 399) { Fly = true, @@ -169438,28 +204271,34 @@ public static class AssemblyQuestLoader num3 = 2; List list314 = new List(num3); CollectionsMarshal.SetCount(list314, num3); - Span span111 = CollectionsMarshal.AsSpan(list314); - span111[0] = 7225u; - span111[1] = 8039u; + Span span314 = CollectionsMarshal.AsSpan(list314); + index3 = 0; + span314[index3] = 7225u; + index3++; + span314[index3] = 8039u; obj226.KillEnemyDataIds = list314; reference251 = obj226; obj225.Steps = list313; reference250 = obj225; - ref QuestSequence reference252 = ref span110[3]; + num++; + ref QuestSequence reference252 = ref span310[num]; QuestSequence obj227 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1021774u, new Vector3(141.31372f, 66.09973f, -238.14758f), 399) + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + Span span315 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span315[num2] = new QuestStep(EInteractionType.Interact, 1021774u, new Vector3(141.31372f, 66.09973f, -238.14758f), 399) { Fly = true }; obj227.Steps = list315; reference252 = obj227; - ref QuestSequence reference253 = ref span110[4]; + num++; + ref QuestSequence reference253 = ref span310[num]; QuestSequence obj228 = new QuestSequence { Sequence = 4 @@ -169467,27 +204306,33 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1021775u, new Vector3(266.98706f, 78.3604f, -10.788147f), 399) + Span span316 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span316[index2] = new QuestStep(EInteractionType.Interact, 1021775u, new Vector3(266.98706f, 78.3604f, -10.788147f), 399) { Fly = true }; obj228.Steps = list316; reference253 = obj228; - ref QuestSequence reference254 = ref span110[5]; + num++; + ref QuestSequence reference254 = ref span310[num]; QuestSequence obj229 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.Interact, 1021778u, new Vector3(-4.135254f, 211f, -39.84137f), 478) + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + Span span317 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span317[num2] = new QuestStep(EInteractionType.Interact, 1021778u, new Vector3(-4.135254f, 211f, -39.84137f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj229.Steps = list317; reference254 = obj229; - ref QuestSequence reference255 = ref span110[6]; + num++; + ref QuestSequence reference255 = ref span310[num]; QuestSequence obj230 = new QuestSequence { Sequence = byte.MaxValue @@ -169495,7 +204340,9 @@ public static class AssemblyQuestLoader num2 = 1; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) + Span span318 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span318[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) { NextQuestId = new QuestId(2584) }; @@ -169508,21 +204355,26 @@ public static class AssemblyQuestLoader num = 1; List list319 = new List(num); CollectionsMarshal.SetCount(list319, num); - CollectionsMarshal.AsSpan(list319)[0] = "liza"; + Span span319 = CollectionsMarshal.AsSpan(list319); + index = 0; + span319[index] = "liza"; questRoot30.Author = list319; - num = 7; - List list320 = new List(num); - CollectionsMarshal.SetCount(list320, num); - Span span112 = CollectionsMarshal.AsSpan(list320); - ref QuestSequence reference256 = ref span112[0]; + index = 7; + List list320 = new List(index); + CollectionsMarshal.SetCount(list320, index); + Span span320 = CollectionsMarshal.AsSpan(list320); + num = 0; + ref QuestSequence reference256 = ref span320[num]; QuestSequence obj231 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - ref QuestStep reference257 = ref CollectionsMarshal.AsSpan(list321)[0]; + index2 = 1; + List list321 = new List(index2); + CollectionsMarshal.SetCount(list321, index2); + Span span321 = CollectionsMarshal.AsSpan(list321); + num2 = 0; + ref QuestStep reference257 = ref span321[num2]; QuestStep obj232 = new QuestStep(EInteractionType.AcceptQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -169534,10 +204386,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list322 = new List(num3); - CollectionsMarshal.SetCount(list322, num3); - CollectionsMarshal.AsSpan(list322)[0] = new DialogueChoice + index3 = 1; + List list322 = new List(index3); + CollectionsMarshal.SetCount(list322, index3); + Span span322 = CollectionsMarshal.AsSpan(list322); + num3 = 0; + span322[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBRDM630_02584_Q1_000_050"), @@ -169547,7 +204401,8 @@ public static class AssemblyQuestLoader reference257 = obj232; obj231.Steps = list321; reference256 = obj231; - ref QuestSequence reference258 = ref span112[1]; + num++; + ref QuestSequence reference258 = ref span320[num]; QuestSequence obj233 = new QuestSequence { Sequence = 1 @@ -169555,25 +204410,29 @@ public static class AssemblyQuestLoader num2 = 2; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span113 = CollectionsMarshal.AsSpan(list323); - span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-341.33426f, 94.733665f, -414.5643f), 620) + Span span323 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span323[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-341.33426f, 94.733665f, -414.5643f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; - span113[1] = new QuestStep(EInteractionType.Interact, 1021780u, new Vector3(-339.04022f, 94.94087f, -414.17566f), 620); + index2++; + span323[index2] = new QuestStep(EInteractionType.Interact, 1021780u, new Vector3(-339.04022f, 94.94087f, -414.17566f), 620); obj233.Steps = list323; reference258 = obj233; - ref QuestSequence reference259 = ref span112[2]; + num++; + ref QuestSequence reference259 = ref span320[num]; QuestSequence obj234 = new QuestSequence { Sequence = 2 }; - num2 = 8; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - Span span114 = CollectionsMarshal.AsSpan(list324); - ref QuestStep reference260 = ref span114[0]; + index2 = 8; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + Span span324 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + ref QuestStep reference260 = ref span324[num2]; QuestStep obj235 = new QuestStep(EInteractionType.Interact, 2008291u, new Vector3(-299.48883f, 200.7019f, -240.55853f), 620) { Fly = true @@ -169581,16 +204440,23 @@ public static class AssemblyQuestLoader num3 = 6; List list325 = new List(num3); CollectionsMarshal.SetCount(list325, num3); - Span span115 = CollectionsMarshal.AsSpan(list325); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span325 = CollectionsMarshal.AsSpan(list325); + index3 = 0; + span325[index3] = null; + index3++; + span325[index3] = null; + index3++; + span325[index3] = null; + index3++; + span325[index3] = null; + index3++; + span325[index3] = null; + index3++; + span325[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj235.CompletionQuestVariablesFlags = list325; reference260 = obj235; - ref QuestStep reference261 = ref span114[1]; + num2++; + ref QuestStep reference261 = ref span324[num2]; QuestStep obj236 = new QuestStep(EInteractionType.Jump, null, new Vector3(-299.41455f, 200.71986f, -238.0671f), 620) { StopDistance = 0.5f, @@ -169601,22 +204467,29 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list326 = new List(num3); - CollectionsMarshal.SetCount(list326, num3); - Span span116 = CollectionsMarshal.AsSpan(list326); - span116[0] = null; - span116[1] = null; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list326 = new List(index3); + CollectionsMarshal.SetCount(list326, index3); + Span span326 = CollectionsMarshal.AsSpan(list326); + num3 = 0; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list326; skipStepConditions2.Flying = ELockedSkipCondition.Unlocked; skipConditions9.StepIf = skipStepConditions2; obj236.SkipConditions = skipConditions9; reference261 = obj236; - ref QuestStep reference262 = ref span114[2]; + num2++; + ref QuestStep reference262 = ref span324[num2]; QuestStep obj237 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-292.9197f, 203.25142f, -222.20459f), 620) { DisableNavmesh = true @@ -169626,19 +204499,26 @@ public static class AssemblyQuestLoader num3 = 6; List list327 = new List(num3); CollectionsMarshal.SetCount(list327, num3); - Span span117 = CollectionsMarshal.AsSpan(list327); - span117[0] = null; - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span327 = CollectionsMarshal.AsSpan(list327); + index3 = 0; + span327[index3] = null; + index3++; + span327[index3] = null; + index3++; + span327[index3] = null; + index3++; + span327[index3] = null; + index3++; + span327[index3] = null; + index3++; + span327[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list327; skipStepConditions3.Flying = ELockedSkipCondition.Unlocked; skipConditions10.StepIf = skipStepConditions3; obj237.SkipConditions = skipConditions10; reference262 = obj237; - ref QuestStep reference263 = ref span114[3]; + num2++; + ref QuestStep reference263 = ref span324[num2]; QuestStep obj238 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-262.3789f, 106.614746f, -206.86658f), 620) { DisableNavmesh = true, @@ -169646,22 +204526,29 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list328 = new List(num3); - CollectionsMarshal.SetCount(list328, num3); - Span span118 = CollectionsMarshal.AsSpan(list328); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list328 = new List(index3); + CollectionsMarshal.SetCount(list328, index3); + Span span328 = CollectionsMarshal.AsSpan(list328); + num3 = 0; + span328[num3] = null; + num3++; + span328[num3] = null; + num3++; + span328[num3] = null; + num3++; + span328[num3] = null; + num3++; + span328[num3] = null; + num3++; + span328[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list328; skipStepConditions4.Flying = ELockedSkipCondition.Unlocked; skipConditions11.StepIf = skipStepConditions4; obj238.SkipConditions = skipConditions11; reference263 = obj238; - ref QuestStep reference264 = ref span114[4]; + num2++; + ref QuestStep reference264 = ref span324[num2]; QuestStep obj239 = new QuestStep(EInteractionType.Interact, 2008292u, new Vector3(-262.3789f, 106.614746f, -206.86658f), 620) { Fly = true @@ -169669,38 +204556,52 @@ public static class AssemblyQuestLoader num3 = 6; List list329 = new List(num3); CollectionsMarshal.SetCount(list329, num3); - Span span119 = CollectionsMarshal.AsSpan(list329); - span119[0] = null; - span119[1] = null; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span329 = CollectionsMarshal.AsSpan(list329); + index3 = 0; + span329[index3] = null; + index3++; + span329[index3] = null; + index3++; + span329[index3] = null; + index3++; + span329[index3] = null; + index3++; + span329[index3] = null; + index3++; + span329[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj239.CompletionQuestVariablesFlags = list329; reference264 = obj239; - ref QuestStep reference265 = ref span114[5]; + num2++; + ref QuestStep reference265 = ref span324[num2]; QuestStep obj240 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-207.53746f, 108.3858f, -304.68738f), 620) { StopDistance = 0.5f }; SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list330 = new List(num3); - CollectionsMarshal.SetCount(list330, num3); - Span span120 = CollectionsMarshal.AsSpan(list330); - span120[0] = null; - span120[1] = null; - span120[2] = null; - span120[3] = null; - span120[4] = null; - span120[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list330 = new List(index3); + CollectionsMarshal.SetCount(list330, index3); + Span span330 = CollectionsMarshal.AsSpan(list330); + num3 = 0; + span330[num3] = null; + num3++; + span330[num3] = null; + num3++; + span330[num3] = null; + num3++; + span330[num3] = null; + num3++; + span330[num3] = null; + num3++; + span330[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list330; skipStepConditions5.Flying = ELockedSkipCondition.Unlocked; skipConditions12.StepIf = skipStepConditions5; obj240.SkipConditions = skipConditions12; reference265 = obj240; - ref QuestStep reference266 = ref span114[6]; + num2++; + ref QuestStep reference266 = ref span324[num2]; QuestStep obj241 = new QuestStep(EInteractionType.Jump, null, new Vector3(-207.53746f, 108.3858f, -304.68738f), 620) { StopDistance = 0.5f, @@ -169717,39 +204618,53 @@ public static class AssemblyQuestLoader num3 = 6; List list331 = new List(num3); CollectionsMarshal.SetCount(list331, num3); - Span span121 = CollectionsMarshal.AsSpan(list331); - span121[0] = null; - span121[1] = null; - span121[2] = null; - span121[3] = null; - span121[4] = null; - span121[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span331 = CollectionsMarshal.AsSpan(list331); + index3 = 0; + span331[index3] = null; + index3++; + span331[index3] = null; + index3++; + span331[index3] = null; + index3++; + span331[index3] = null; + index3++; + span331[index3] = null; + index3++; + span331[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list331; skipStepConditions6.Flying = ELockedSkipCondition.Unlocked; skipConditions13.StepIf = skipStepConditions6; obj241.SkipConditions = skipConditions13; reference266 = obj241; - ref QuestStep reference267 = ref span114[7]; + num2++; + ref QuestStep reference267 = ref span324[num2]; QuestStep obj242 = new QuestStep(EInteractionType.Interact, 2008293u, new Vector3(-210.40668f, 109.666504f, -299.794f), 620) { StopDistance = 1f, Fly = true }; - num3 = 6; - List list332 = new List(num3); - CollectionsMarshal.SetCount(list332, num3); - Span span122 = CollectionsMarshal.AsSpan(list332); - span122[0] = null; - span122[1] = null; - span122[2] = null; - span122[3] = null; - span122[4] = null; - span122[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list332 = new List(index3); + CollectionsMarshal.SetCount(list332, index3); + Span span332 = CollectionsMarshal.AsSpan(list332); + num3 = 0; + span332[num3] = null; + num3++; + span332[num3] = null; + num3++; + span332[num3] = null; + num3++; + span332[num3] = null; + num3++; + span332[num3] = null; + num3++; + span332[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj242.CompletionQuestVariablesFlags = list332; reference267 = obj242; obj234.Steps = list324; reference259 = obj234; - ref QuestSequence reference268 = ref span112[3]; + num++; + ref QuestSequence reference268 = ref span320[num]; QuestSequence obj243 = new QuestSequence { Sequence = 3 @@ -169757,8 +204672,9 @@ public static class AssemblyQuestLoader num2 = 2; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span123 = CollectionsMarshal.AsSpan(list333); - span123[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-213.96315f, 107.1167f, -305.87753f), 620) + Span span333 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span333[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-213.96315f, 107.1167f, -305.87753f), 620) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -169769,21 +204685,25 @@ public static class AssemblyQuestLoader } } }; - span123[1] = new QuestStep(EInteractionType.Interact, 1021781u, new Vector3(-308.43066f, 102.62436f, -372.2744f), 620) + index2++; + span333[index2] = new QuestStep(EInteractionType.Interact, 1021781u, new Vector3(-308.43066f, 102.62436f, -372.2744f), 620) { Fly = true }; obj243.Steps = list333; reference268 = obj243; - ref QuestSequence reference269 = ref span112[4]; + num++; + ref QuestSequence reference269 = ref span320[num]; QuestSequence obj244 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - ref QuestStep reference270 = ref CollectionsMarshal.AsSpan(list334)[0]; + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + Span span334 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + ref QuestStep reference270 = ref span334[num2]; QuestStep obj245 = new QuestStep(EInteractionType.Combat, 2008294u, new Vector3(782.6809f, 256.91602f, -388.29633f), 620) { Fly = true, @@ -169792,12 +204712,15 @@ public static class AssemblyQuestLoader num3 = 1; List list335 = new List(num3); CollectionsMarshal.SetCount(list335, num3); - CollectionsMarshal.AsSpan(list335)[0] = 7822u; + Span span335 = CollectionsMarshal.AsSpan(list335); + index3 = 0; + span335[index3] = 7822u; obj245.KillEnemyDataIds = list335; reference270 = obj245; obj244.Steps = list334; reference269 = obj244; - ref QuestSequence reference271 = ref span112[5]; + num++; + ref QuestSequence reference271 = ref span320[num]; QuestSequence obj246 = new QuestSequence { Sequence = 5 @@ -169805,21 +204728,26 @@ public static class AssemblyQuestLoader num2 = 1; List list336 = new List(num2); CollectionsMarshal.SetCount(list336, num2); - CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Interact, 1021782u, new Vector3(120.74463f, 118.383255f, -732.57043f), 620) + Span span336 = CollectionsMarshal.AsSpan(list336); + index2 = 0; + span336[index2] = new QuestStep(EInteractionType.Interact, 1021782u, new Vector3(120.74463f, 118.383255f, -732.57043f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj246.Steps = list336; reference271 = obj246; - ref QuestSequence reference272 = ref span112[6]; + num++; + ref QuestSequence reference272 = ref span320[num]; QuestSequence obj247 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021778u, new Vector3(-4.135254f, 211f, -39.84137f), 478) + index2 = 1; + List list337 = new List(index2); + CollectionsMarshal.SetCount(list337, index2); + Span span337 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + span337[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021778u, new Vector3(-4.135254f, 211f, -39.84137f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, NextQuestId = new QuestId(2585) @@ -169833,13 +204761,16 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - CollectionsMarshal.AsSpan(list338)[0] = "liza"; + Span span338 = CollectionsMarshal.AsSpan(list338); + index = 0; + span338[index] = "liza"; questRoot31.Author = list338; - num = 6; - List list339 = new List(num); - CollectionsMarshal.SetCount(list339, num); - Span span124 = CollectionsMarshal.AsSpan(list339); - ref QuestSequence reference273 = ref span124[0]; + index = 6; + List list339 = new List(index); + CollectionsMarshal.SetCount(list339, index); + Span span339 = CollectionsMarshal.AsSpan(list339); + num = 0; + ref QuestSequence reference273 = ref span339[num]; QuestSequence obj248 = new QuestSequence { Sequence = 0 @@ -169847,7 +204778,9 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) + Span span340 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + span340[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -169861,27 +204794,32 @@ public static class AssemblyQuestLoader }; obj248.Steps = list340; reference273 = obj248; - ref QuestSequence reference274 = ref span124[1]; + num++; + ref QuestSequence reference274 = ref span339[num]; QuestSequence obj249 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - Span span125 = CollectionsMarshal.AsSpan(list341); - span125[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.853794f, 210.99998f, 3.6528845f), 478) + index2 = 3; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + Span span341 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span341[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.853794f, 210.99998f, 3.6528845f), 478) { Mount = true }; - span125[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-20.601719f, 205.82156f, 23.937931f), 478) + num2++; + span341[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-20.601719f, 205.82156f, 23.937931f), 478) { DisableNavmesh = true }; - span125[2] = new QuestStep(EInteractionType.Interact, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478); + num2++; + span341[num2] = new QuestStep(EInteractionType.Interact, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478); obj249.Steps = list341; reference274 = obj249; - ref QuestSequence reference275 = ref span124[2]; + num++; + ref QuestSequence reference275 = ref span339[num]; QuestSequence obj250 = new QuestSequence { Sequence = 2 @@ -169889,18 +204827,23 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478); + Span span342 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span342[index2] = new QuestStep(EInteractionType.Interact, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478); obj250.Steps = list342; reference275 = obj250; - ref QuestSequence reference276 = ref span124[3]; + num++; + ref QuestSequence reference276 = ref span339[num]; QuestSequence obj251 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021783u, new Vector3(277.11902f, 232.541f, 785.5801f), 399) + index2 = 1; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + Span span343 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span343[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021783u, new Vector3(277.11902f, 232.541f, 785.5801f), 399) { Fly = true, Comment = "TODO Navigation doesn't work if flying is locked", @@ -169912,7 +204855,8 @@ public static class AssemblyQuestLoader }; obj251.Steps = list343; reference276 = obj251; - ref QuestSequence reference277 = ref span124[4]; + num++; + ref QuestSequence reference277 = ref span339[num]; QuestSequence obj252 = new QuestSequence { Sequence = 4 @@ -169920,21 +204864,26 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1021783u, new Vector3(277.11902f, 232.54102f, 785.5801f), 399) + Span span344 = CollectionsMarshal.AsSpan(list344); + index2 = 0; + span344[index2] = new QuestStep(EInteractionType.Interact, 1021783u, new Vector3(277.11902f, 232.54102f, 785.5801f), 399) { StopDistance = 7f }; obj252.Steps = list344; reference277 = obj252; - ref QuestSequence reference278 = ref span124[5]; + num++; + ref QuestSequence reference278 = ref span339[num]; QuestSequence obj253 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) + index2 = 1; + List list345 = new List(index2); + CollectionsMarshal.SetCount(list345, index2); + Span span345 = CollectionsMarshal.AsSpan(list345); + num2 = 0; + span345[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, NextQuestId = new QuestId(2586) @@ -169948,13 +204897,16 @@ public static class AssemblyQuestLoader num = 1; List list346 = new List(num); CollectionsMarshal.SetCount(list346, num); - CollectionsMarshal.AsSpan(list346)[0] = "liza"; + Span span346 = CollectionsMarshal.AsSpan(list346); + index = 0; + span346[index] = "liza"; questRoot32.Author = list346; - num = 9; - List list347 = new List(num); - CollectionsMarshal.SetCount(list347, num); - Span span126 = CollectionsMarshal.AsSpan(list347); - ref QuestSequence reference279 = ref span126[0]; + index = 9; + List list347 = new List(index); + CollectionsMarshal.SetCount(list347, index); + Span span347 = CollectionsMarshal.AsSpan(list347); + num = 0; + ref QuestSequence reference279 = ref span347[num]; QuestSequence obj254 = new QuestSequence { Sequence = 0 @@ -169962,7 +204914,9 @@ public static class AssemblyQuestLoader num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) + Span span348 = CollectionsMarshal.AsSpan(list348); + index2 = 0; + span348[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -169976,15 +204930,18 @@ public static class AssemblyQuestLoader }; obj254.Steps = list348; reference279 = obj254; - ref QuestSequence reference280 = ref span126[1]; + num++; + ref QuestSequence reference280 = ref span347[num]; QuestSequence obj255 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list349 = new List(num2); - CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.Interact, 1021785u, new Vector3(115.19031f, 14.631312f, -165.11792f), 419) + index2 = 1; + List list349 = new List(index2); + CollectionsMarshal.SetCount(list349, index2); + Span span349 = CollectionsMarshal.AsSpan(list349); + num2 = 0; + span349[num2] = new QuestStep(EInteractionType.Interact, 1021785u, new Vector3(115.19031f, 14.631312f, -165.11792f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -169995,7 +204952,8 @@ public static class AssemblyQuestLoader }; obj255.Steps = list349; reference280 = obj255; - ref QuestSequence reference281 = ref span126[2]; + num++; + ref QuestSequence reference281 = ref span347[num]; QuestSequence obj256 = new QuestSequence { Sequence = 2 @@ -170003,7 +204961,9 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.Interact, 1021788u, new Vector3(34.042847f, 11.965077f, 48.355713f), 419) + Span span350 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + span350[index2] = new QuestStep(EInteractionType.Interact, 1021788u, new Vector3(34.042847f, 11.965077f, 48.355713f), 419) { AethernetShortcut = new AethernetShortcut { @@ -170013,22 +204973,26 @@ public static class AssemblyQuestLoader }; obj256.Steps = list350; reference281 = obj256; - ref QuestSequence reference282 = ref span126[3]; + num++; + ref QuestSequence reference282 = ref span347[num]; QuestSequence obj257 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1021789u, new Vector3(455.5885f, 300.37985f, -349.32483f), 155) + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + Span span351 = CollectionsMarshal.AsSpan(list351); + num2 = 0; + span351[num2] = new QuestStep(EInteractionType.Interact, 1021789u, new Vector3(455.5885f, 300.37985f, -349.32483f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj257.Steps = list351; reference282 = obj257; - ref QuestSequence reference283 = ref span126[4]; + num++; + ref QuestSequence reference283 = ref span347[num]; QuestSequence obj258 = new QuestSequence { Sequence = 4 @@ -170036,35 +205000,43 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - ref QuestStep reference284 = ref CollectionsMarshal.AsSpan(list352)[0]; + Span span352 = CollectionsMarshal.AsSpan(list352); + index2 = 0; + ref QuestStep reference284 = ref span352[index2]; QuestStep obj259 = new QuestStep(EInteractionType.Combat, 2008997u, new Vector3(299.2141f, 239.12415f, -312.76422f), 155) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list353 = new List(num3); - CollectionsMarshal.SetCount(list353, num3); - CollectionsMarshal.AsSpan(list353)[0] = 7226u; + index3 = 1; + List list353 = new List(index3); + CollectionsMarshal.SetCount(list353, index3); + Span span353 = CollectionsMarshal.AsSpan(list353); + num3 = 0; + span353[num3] = 7226u; obj259.KillEnemyDataIds = list353; reference284 = obj259; obj258.Steps = list352; reference283 = obj258; - ref QuestSequence reference285 = ref span126[5]; + num++; + ref QuestSequence reference285 = ref span347[num]; QuestSequence obj260 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1021791u, new Vector3(445.94482f, 250.97905f, -309.25464f), 155) + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + Span span354 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span354[num2] = new QuestStep(EInteractionType.Interact, 1021791u, new Vector3(445.94482f, 250.97905f, -309.25464f), 155) { Fly = true }; obj260.Steps = list354; reference285 = obj260; - ref QuestSequence reference286 = ref span126[6]; + num++; + ref QuestSequence reference286 = ref span347[num]; QuestSequence obj261 = new QuestSequence { Sequence = 6 @@ -170072,24 +205044,30 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.Interact, 1021794u, new Vector3(295.9486f, 238.09589f, -317.34192f), 155) + Span span355 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + span355[index2] = new QuestStep(EInteractionType.Interact, 1021794u, new Vector3(295.9486f, 238.09589f, -317.34192f), 155) { Fly = true }; obj261.Steps = list355; reference286 = obj261; - ref QuestSequence reference287 = ref span126[7]; + num++; + ref QuestSequence reference287 = ref span347[num]; QuestSequence obj262 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list356 = new List(num2); - CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.Interact, 1021793u, new Vector3(295.24683f, 238.25597f, -315.78546f), 155); + index2 = 1; + List list356 = new List(index2); + CollectionsMarshal.SetCount(list356, index2); + Span span356 = CollectionsMarshal.AsSpan(list356); + num2 = 0; + span356[num2] = new QuestStep(EInteractionType.Interact, 1021793u, new Vector3(295.24683f, 238.25597f, -315.78546f), 155); obj262.Steps = list356; reference287 = obj262; - ref QuestSequence reference288 = ref span126[8]; + num++; + ref QuestSequence reference288 = ref span347[num]; QuestSequence obj263 = new QuestSequence { Sequence = byte.MaxValue @@ -170097,7 +205075,9 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021795u, new Vector3(-19.638367f, 15.965051f, -37.247314f), 419) + Span span357 = CollectionsMarshal.AsSpan(list357); + index2 = 0; + span357[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021795u, new Vector3(-19.638367f, 15.965051f, -37.247314f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -170116,21 +205096,26 @@ public static class AssemblyQuestLoader num = 1; List list358 = new List(num); CollectionsMarshal.SetCount(list358, num); - CollectionsMarshal.AsSpan(list358)[0] = "liza"; + Span span358 = CollectionsMarshal.AsSpan(list358); + index = 0; + span358[index] = "liza"; questRoot33.Author = list358; - num = 8; - List list359 = new List(num); - CollectionsMarshal.SetCount(list359, num); - Span span127 = CollectionsMarshal.AsSpan(list359); - ref QuestSequence reference289 = ref span127[0]; + index = 8; + List list359 = new List(index); + CollectionsMarshal.SetCount(list359, index); + Span span359 = CollectionsMarshal.AsSpan(list359); + num = 0; + ref QuestSequence reference289 = ref span359[num]; QuestSequence obj264 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - ref QuestStep reference290 = ref CollectionsMarshal.AsSpan(list360)[0]; + index2 = 1; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + Span span360 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + ref QuestStep reference290 = ref span360[num2]; QuestStep obj265 = new QuestStep(EInteractionType.AcceptQuest, 1021795u, new Vector3(-19.638367f, 15.965051f, -37.247314f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -170148,14 +205133,17 @@ public static class AssemblyQuestLoader num3 = 1; List list361 = new List(num3); CollectionsMarshal.SetCount(list361, num3); - CollectionsMarshal.AsSpan(list361)[0] = 419; + Span span361 = CollectionsMarshal.AsSpan(list361); + index3 = 0; + span361[index3] = 419; obj266.InTerritory = list361; skipConditions14.AetheryteShortcutIf = obj266; obj265.SkipConditions = skipConditions14; reference290 = obj265; obj264.Steps = list360; reference289 = obj264; - ref QuestSequence reference291 = ref span127[1]; + num++; + ref QuestSequence reference291 = ref span359[num]; QuestSequence obj267 = new QuestSequence { Sequence = 1 @@ -170163,7 +205151,9 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.Interact, 1021796u, new Vector3(-198.71832f, 18f, 61.08191f), 130) + Span span362 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span362[index2] = new QuestStep(EInteractionType.Interact, 1021796u, new Vector3(-198.71832f, 18f, 61.08191f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -170174,18 +205164,22 @@ public static class AssemblyQuestLoader }; obj267.Steps = list362; reference291 = obj267; - ref QuestSequence reference292 = ref span127[2]; + num++; + ref QuestSequence reference292 = ref span359[num]; QuestSequence obj268 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.Interact, 1021798u, new Vector3(-198.71832f, 18f, 61.08191f), 130); + index2 = 1; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + Span span363 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + span363[num2] = new QuestStep(EInteractionType.Interact, 1021798u, new Vector3(-198.71832f, 18f, 61.08191f), 130); obj268.Steps = list363; reference292 = obj268; - ref QuestSequence reference293 = ref span127[3]; + num++; + ref QuestSequence reference293 = ref span359[num]; QuestSequence obj269 = new QuestSequence { Sequence = 3 @@ -170193,31 +205187,38 @@ public static class AssemblyQuestLoader num2 = 1; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Interact, 1021799u, new Vector3(54.520386f, 20.411621f, -676.6614f), 156) + Span span364 = CollectionsMarshal.AsSpan(list364); + index2 = 0; + span364[index2] = new QuestStep(EInteractionType.Interact, 1021799u, new Vector3(54.520386f, 20.411621f, -676.6614f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj269.Steps = list364; reference293 = obj269; - ref QuestSequence reference294 = ref span127[4]; + num++; + ref QuestSequence reference294 = ref span359[num]; QuestSequence obj270 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021801u, new Vector3(367.87964f, -16.467955f, -335.86633f), 156) + index2 = 1; + List list365 = new List(index2); + CollectionsMarshal.SetCount(list365, index2); + Span span365 = CollectionsMarshal.AsSpan(list365); + num2 = 0; + span365[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021801u, new Vector3(367.87964f, -16.467955f, -335.86633f), 156) { Fly = true }; obj270.Steps = list365; reference294 = obj270; - span127[5] = new QuestSequence + num++; + span359[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference295 = ref span127[6]; + num++; + ref QuestSequence reference295 = ref span359[num]; QuestSequence obj271 = new QuestSequence { Sequence = 6 @@ -170225,21 +205226,26 @@ public static class AssemblyQuestLoader num2 = 1; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.Interact, 1021804u, new Vector3(368.1543f, -16.339586f, -331.44128f), 156) + Span span366 = CollectionsMarshal.AsSpan(list366); + index2 = 0; + span366[index2] = new QuestStep(EInteractionType.Interact, 1021804u, new Vector3(368.1543f, -16.339586f, -331.44128f), 156) { StopDistance = 5f }; obj271.Steps = list366; reference295 = obj271; - ref QuestSequence reference296 = ref span127[7]; + num++; + ref QuestSequence reference296 = ref span359[num]; QuestSequence obj272 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021800u, new Vector3(55.557983f, 20.411068f, -675.5627f), 156) + index2 = 1; + List list367 = new List(index2); + CollectionsMarshal.SetCount(list367, index2); + Span span367 = CollectionsMarshal.AsSpan(list367); + num2 = 0; + span367[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021800u, new Vector3(55.557983f, 20.411068f, -675.5627f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -170252,13 +205258,16 @@ public static class AssemblyQuestLoader num = 1; List list368 = new List(num); CollectionsMarshal.SetCount(list368, num); - CollectionsMarshal.AsSpan(list368)[0] = "liza"; + Span span368 = CollectionsMarshal.AsSpan(list368); + index = 0; + span368[index] = "liza"; questRoot34.Author = list368; - num = 3; - List list369 = new List(num); - CollectionsMarshal.SetCount(list369, num); - Span span128 = CollectionsMarshal.AsSpan(list369); - ref QuestSequence reference297 = ref span128[0]; + index = 3; + List list369 = new List(index); + CollectionsMarshal.SetCount(list369, index); + Span span369 = CollectionsMarshal.AsSpan(list369); + num = 0; + ref QuestSequence reference297 = ref span369[num]; QuestSequence obj273 = new QuestSequence { Sequence = 0 @@ -170266,7 +205275,9 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - ref QuestStep reference298 = ref CollectionsMarshal.AsSpan(list370)[0]; + Span span370 = CollectionsMarshal.AsSpan(list370); + index2 = 0; + ref QuestStep reference298 = ref span370[index2]; QuestStep obj274 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -170281,35 +205292,41 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list371 = new List(num3); - CollectionsMarshal.SetCount(list371, num3); - CollectionsMarshal.AsSpan(list371)[0] = 131; + index3 = 1; + List list371 = new List(index3); + CollectionsMarshal.SetCount(list371, index3); + Span span371 = CollectionsMarshal.AsSpan(list371); + num3 = 0; + span371[num3] = 131; obj275.InTerritory = list371; skipConditions15.AetheryteShortcutIf = obj275; obj274.SkipConditions = skipConditions15; reference298 = obj274; obj273.Steps = list370; reference297 = obj273; - ref QuestSequence reference299 = ref span128[1]; + num++; + ref QuestSequence reference299 = ref span369[num]; QuestSequence obj276 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list372 = new List(num2); - CollectionsMarshal.SetCount(list372, num2); - Span span129 = CollectionsMarshal.AsSpan(list372); - span129[0] = new QuestStep(EInteractionType.Interact, 1004597u, new Vector3(-292.10345f, -2.910112f, 245.59387f), 146) + index2 = 2; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + Span span372 = CollectionsMarshal.AsSpan(list372); + num2 = 0; + span372[num2] = new QuestStep(EInteractionType.Interact, 1004597u, new Vector3(-292.10345f, -2.910112f, 245.59387f), 146) { TargetTerritoryId = (ushort)146, Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; - span129[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020959u, new Vector3(-463.1571f, -3.164927f, 61.264893f), 146); + num2++; + span372[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020959u, new Vector3(-463.1571f, -3.164927f, 61.264893f), 146); obj276.Steps = list372; reference299 = obj276; - ref QuestSequence reference300 = ref span128[2]; + num++; + ref QuestSequence reference300 = ref span369[num]; QuestSequence obj277 = new QuestSequence { Sequence = byte.MaxValue @@ -170317,7 +205334,9 @@ public static class AssemblyQuestLoader num2 = 1; List list373 = new List(num2); CollectionsMarshal.SetCount(list373, num2); - CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + Span span373 = CollectionsMarshal.AsSpan(list373); + index2 = 0; + span373[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -170336,21 +205355,26 @@ public static class AssemblyQuestLoader num = 1; List list374 = new List(num); CollectionsMarshal.SetCount(list374, num); - CollectionsMarshal.AsSpan(list374)[0] = "liza"; + Span span374 = CollectionsMarshal.AsSpan(list374); + index = 0; + span374[index] = "liza"; questRoot35.Author = list374; - num = 5; - List list375 = new List(num); - CollectionsMarshal.SetCount(list375, num); - Span span130 = CollectionsMarshal.AsSpan(list375); - ref QuestSequence reference301 = ref span130[0]; + index = 5; + List list375 = new List(index); + CollectionsMarshal.SetCount(list375, index); + Span span375 = CollectionsMarshal.AsSpan(list375); + num = 0; + ref QuestSequence reference301 = ref span375[num]; QuestSequence obj278 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - ref QuestStep reference302 = ref CollectionsMarshal.AsSpan(list376)[0]; + index2 = 1; + List list376 = new List(index2); + CollectionsMarshal.SetCount(list376, index2); + Span span376 = CollectionsMarshal.AsSpan(list376); + num2 = 0; + ref QuestStep reference302 = ref span376[num2]; QuestStep obj279 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -170368,14 +205392,17 @@ public static class AssemblyQuestLoader num3 = 1; List list377 = new List(num3); CollectionsMarshal.SetCount(list377, num3); - CollectionsMarshal.AsSpan(list377)[0] = 131; + Span span377 = CollectionsMarshal.AsSpan(list377); + index3 = 0; + span377[index3] = 131; obj280.InTerritory = list377; skipConditions16.AetheryteShortcutIf = obj280; obj279.SkipConditions = skipConditions16; reference302 = obj279; obj278.Steps = list376; reference301 = obj278; - ref QuestSequence reference303 = ref span130[1]; + num++; + ref QuestSequence reference303 = ref span375[num]; QuestSequence obj281 = new QuestSequence { Sequence = 1 @@ -170383,95 +205410,126 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Interact, 1008543u, new Vector3(-360.00616f, 1.2644191f, 459.83057f), 153) + Span span378 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + span378[index2] = new QuestStep(EInteractionType.Interact, 1008543u, new Vector3(-360.00616f, 1.2644191f, 459.83057f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj281.Steps = list378; reference303 = obj281; - ref QuestSequence reference304 = ref span130[2]; + num++; + ref QuestSequence reference304 = ref span375[num]; QuestSequence obj282 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list379 = new List(num2); - CollectionsMarshal.SetCount(list379, num2); - Span span131 = CollectionsMarshal.AsSpan(list379); - ref QuestStep reference305 = ref span131[0]; + index2 = 3; + List list379 = new List(index2); + CollectionsMarshal.SetCount(list379, index2); + Span span379 = CollectionsMarshal.AsSpan(list379); + num2 = 0; + ref QuestStep reference305 = ref span379[num2]; QuestStep obj283 = new QuestStep(EInteractionType.Combat, 2007872u, new Vector3(-275.62378f, 4.8675537f, 523.76587f), 153) { Fly = true, Action = EAction.Fire3, EnemySpawnType = EEnemySpawnType.AfterAction }; - num3 = 1; - List list380 = new List(num3); - CollectionsMarshal.SetCount(list380, num3); - CollectionsMarshal.AsSpan(list380)[0] = 7232u; + index3 = 1; + List list380 = new List(index3); + CollectionsMarshal.SetCount(list380, index3); + Span span380 = CollectionsMarshal.AsSpan(list380); + num3 = 0; + span380[num3] = 7232u; obj283.KillEnemyDataIds = list380; num3 = 6; List list381 = new List(num3); CollectionsMarshal.SetCount(list381, num3); - Span span132 = CollectionsMarshal.AsSpan(list381); - span132[0] = null; - span132[1] = null; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span381 = CollectionsMarshal.AsSpan(list381); + index3 = 0; + span381[index3] = null; + index3++; + span381[index3] = null; + index3++; + span381[index3] = null; + index3++; + span381[index3] = null; + index3++; + span381[index3] = null; + index3++; + span381[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj283.CompletionQuestVariablesFlags = list381; reference305 = obj283; - ref QuestStep reference306 = ref span131[1]; + num2++; + ref QuestStep reference306 = ref span379[num2]; QuestStep obj284 = new QuestStep(EInteractionType.Combat, 2007873u, new Vector3(-298.909f, 11.825684f, 567.46765f), 153) { Action = EAction.Fire3, EnemySpawnType = EEnemySpawnType.AfterAction }; - num3 = 1; - List list382 = new List(num3); - CollectionsMarshal.SetCount(list382, num3); - CollectionsMarshal.AsSpan(list382)[0] = 7232u; + index3 = 1; + List list382 = new List(index3); + CollectionsMarshal.SetCount(list382, index3); + Span span382 = CollectionsMarshal.AsSpan(list382); + num3 = 0; + span382[num3] = 7232u; obj284.KillEnemyDataIds = list382; num3 = 6; List list383 = new List(num3); CollectionsMarshal.SetCount(list383, num3); - Span span133 = CollectionsMarshal.AsSpan(list383); - span133[0] = null; - span133[1] = null; - span133[2] = null; - span133[3] = null; - span133[4] = null; - span133[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span383 = CollectionsMarshal.AsSpan(list383); + index3 = 0; + span383[index3] = null; + index3++; + span383[index3] = null; + index3++; + span383[index3] = null; + index3++; + span383[index3] = null; + index3++; + span383[index3] = null; + index3++; + span383[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj284.CompletionQuestVariablesFlags = list383; reference306 = obj284; - ref QuestStep reference307 = ref span131[2]; + num2++; + ref QuestStep reference307 = ref span379[num2]; QuestStep obj285 = new QuestStep(EInteractionType.Combat, 2007874u, new Vector3(-310.5974f, 12.344482f, 645.777f), 153) { Action = EAction.Fire3, EnemySpawnType = EEnemySpawnType.AfterAction }; - num3 = 1; - List list384 = new List(num3); - CollectionsMarshal.SetCount(list384, num3); - CollectionsMarshal.AsSpan(list384)[0] = 7232u; + index3 = 1; + List list384 = new List(index3); + CollectionsMarshal.SetCount(list384, index3); + Span span384 = CollectionsMarshal.AsSpan(list384); + num3 = 0; + span384[num3] = 7232u; obj285.KillEnemyDataIds = list384; num3 = 6; List list385 = new List(num3); CollectionsMarshal.SetCount(list385, num3); - Span span134 = CollectionsMarshal.AsSpan(list385); - span134[0] = null; - span134[1] = null; - span134[2] = null; - span134[3] = null; - span134[4] = null; - span134[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span385 = CollectionsMarshal.AsSpan(list385); + index3 = 0; + span385[index3] = null; + index3++; + span385[index3] = null; + index3++; + span385[index3] = null; + index3++; + span385[index3] = null; + index3++; + span385[index3] = null; + index3++; + span385[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj285.CompletionQuestVariablesFlags = list385; reference307 = obj285; obj282.Steps = list379; reference304 = obj282; - ref QuestSequence reference308 = ref span130[3]; + num++; + ref QuestSequence reference308 = ref span375[num]; QuestSequence obj286 = new QuestSequence { Sequence = 3 @@ -170479,21 +205537,26 @@ public static class AssemblyQuestLoader num2 = 1; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - CollectionsMarshal.AsSpan(list386)[0] = new QuestStep(EInteractionType.Interact, 1020964u, new Vector3(-348.50085f, 0.22347936f, 454.45935f), 153) + Span span386 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + span386[index2] = new QuestStep(EInteractionType.Interact, 1020964u, new Vector3(-348.50085f, 0.22347936f, 454.45935f), 153) { Fly = true }; obj286.Steps = list386; reference308 = obj286; - ref QuestSequence reference309 = ref span130[4]; + num++; + ref QuestSequence reference309 = ref span375[num]; QuestSequence obj287 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list387 = new List(num2); - CollectionsMarshal.SetCount(list387, num2); - CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020966u, new Vector3(87.47986f, 18f, 113.69495f), 131) + index2 = 1; + List list387 = new List(index2); + CollectionsMarshal.SetCount(list387, index2); + Span span387 = CollectionsMarshal.AsSpan(list387); + num2 = 0; + span387[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020966u, new Vector3(87.47986f, 18f, 113.69495f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -170512,13 +205575,16 @@ public static class AssemblyQuestLoader num = 1; List list388 = new List(num); CollectionsMarshal.SetCount(list388, num); - CollectionsMarshal.AsSpan(list388)[0] = "liza"; + Span span388 = CollectionsMarshal.AsSpan(list388); + index = 0; + span388[index] = "liza"; questRoot36.Author = list388; - num = 7; - List list389 = new List(num); - CollectionsMarshal.SetCount(list389, num); - Span span135 = CollectionsMarshal.AsSpan(list389); - ref QuestSequence reference310 = ref span135[0]; + index = 7; + List list389 = new List(index); + CollectionsMarshal.SetCount(list389, index); + Span span389 = CollectionsMarshal.AsSpan(list389); + num = 0; + ref QuestSequence reference310 = ref span389[num]; QuestSequence obj288 = new QuestSequence { Sequence = 0 @@ -170526,7 +205592,9 @@ public static class AssemblyQuestLoader num2 = 1; List list390 = new List(num2); CollectionsMarshal.SetCount(list390, num2); - ref QuestStep reference311 = ref CollectionsMarshal.AsSpan(list390)[0]; + Span span390 = CollectionsMarshal.AsSpan(list390); + index2 = 0; + ref QuestStep reference311 = ref span390[index2]; QuestStep obj289 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -170541,31 +205609,37 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list391 = new List(num3); - CollectionsMarshal.SetCount(list391, num3); - CollectionsMarshal.AsSpan(list391)[0] = 131; + index3 = 1; + List list391 = new List(index3); + CollectionsMarshal.SetCount(list391, index3); + Span span391 = CollectionsMarshal.AsSpan(list391); + num3 = 0; + span391[num3] = 131; obj290.InTerritory = list391; skipConditions17.AetheryteShortcutIf = obj290; obj289.SkipConditions = skipConditions17; reference311 = obj289; obj288.Steps = list390; reference310 = obj288; - ref QuestSequence reference312 = ref span135[1]; + num++; + ref QuestSequence reference312 = ref span389[num]; QuestSequence obj291 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list392 = new List(num2); - CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Interact, 1021051u, new Vector3(-36.91156f, 20.090933f, -679.07227f), 156) + index2 = 1; + List list392 = new List(index2); + CollectionsMarshal.SetCount(list392, index2); + Span span392 = CollectionsMarshal.AsSpan(list392); + num2 = 0; + span392[num2] = new QuestStep(EInteractionType.Interact, 1021051u, new Vector3(-36.91156f, 20.090933f, -679.07227f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj291.Steps = list392; reference312 = obj291; - ref QuestSequence reference313 = ref span135[2]; + num++; + ref QuestSequence reference313 = ref span389[num]; QuestSequence obj292 = new QuestSequence { Sequence = 2 @@ -170573,29 +205647,35 @@ public static class AssemblyQuestLoader num2 = 2; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - Span span136 = CollectionsMarshal.AsSpan(list393); - span136[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.20407f, -15.94506f, -491.67297f), 156) + Span span393 = CollectionsMarshal.AsSpan(list393); + index2 = 0; + span393[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.20407f, -15.94506f, -491.67297f), 156) { Fly = true }; - span136[1] = new QuestStep(EInteractionType.Interact, 1021052u, new Vector3(-334.00476f, -16.18119f, -490.1961f), 156); + index2++; + span393[index2] = new QuestStep(EInteractionType.Interact, 1021052u, new Vector3(-334.00476f, -16.18119f, -490.1961f), 156); obj292.Steps = list393; reference313 = obj292; - ref QuestSequence reference314 = ref span135[3]; + num++; + ref QuestSequence reference314 = ref span389[num]; QuestSequence obj293 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list394 = new List(num2); - CollectionsMarshal.SetCount(list394, num2); - CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.Interact, 2007907u, new Vector3(-321.21765f, -16.922302f, -361.6236f), 156) + index2 = 1; + List list394 = new List(index2); + CollectionsMarshal.SetCount(list394, index2); + Span span394 = CollectionsMarshal.AsSpan(list394); + num2 = 0; + span394[num2] = new QuestStep(EInteractionType.Interact, 2007907u, new Vector3(-321.21765f, -16.922302f, -361.6236f), 156) { Fly = true }; obj293.Steps = list394; reference314 = obj293; - ref QuestSequence reference315 = ref span135[4]; + num++; + ref QuestSequence reference315 = ref span389[num]; QuestSequence obj294 = new QuestSequence { Sequence = 4 @@ -170603,7 +205683,9 @@ public static class AssemblyQuestLoader num2 = 1; List list395 = new List(num2); CollectionsMarshal.SetCount(list395, num2); - ref QuestStep reference316 = ref CollectionsMarshal.AsSpan(list395)[0]; + Span span395 = CollectionsMarshal.AsSpan(list395); + index2 = 0; + ref QuestStep reference316 = ref span395[index2]; QuestStep obj295 = new QuestStep(EInteractionType.Combat, null, new Vector3(-412.69736f, -17.148405f, -361.9313f), 156) { StopDistance = 0.5f, @@ -170613,23 +205695,29 @@ public static class AssemblyQuestLoader num3 = 1; List list396 = new List(num3); CollectionsMarshal.SetCount(list396, num3); - CollectionsMarshal.AsSpan(list396)[0] = 7233u; + Span span396 = CollectionsMarshal.AsSpan(list396); + index3 = 0; + span396[index3] = 7233u; obj295.KillEnemyDataIds = list396; reference316 = obj295; obj294.Steps = list395; reference315 = obj294; - ref QuestSequence reference317 = ref span135[5]; + num++; + ref QuestSequence reference317 = ref span389[num]; QuestSequence obj296 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list397 = new List(num2); - CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.Interact, 1021059u, new Vector3(-413.80945f, -17.148407f, -362.23395f), 156); + index2 = 1; + List list397 = new List(index2); + CollectionsMarshal.SetCount(list397, index2); + Span span397 = CollectionsMarshal.AsSpan(list397); + num2 = 0; + span397[num2] = new QuestStep(EInteractionType.Interact, 1021059u, new Vector3(-413.80945f, -17.148407f, -362.23395f), 156); obj296.Steps = list397; reference317 = obj296; - ref QuestSequence reference318 = ref span135[6]; + num++; + ref QuestSequence reference318 = ref span389[num]; QuestSequence obj297 = new QuestSequence { Sequence = byte.MaxValue @@ -170637,7 +205725,9 @@ public static class AssemblyQuestLoader num2 = 1; List list398 = new List(num2); CollectionsMarshal.SetCount(list398, num2); - ref QuestStep reference319 = ref CollectionsMarshal.AsSpan(list398)[0]; + Span span398 = CollectionsMarshal.AsSpan(list398); + index2 = 0; + ref QuestStep reference319 = ref span398[index2]; QuestStep obj298 = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -170647,10 +205737,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - num3 = 1; - List list399 = new List(num3); - CollectionsMarshal.SetCount(list399, num3); - CollectionsMarshal.AsSpan(list399)[0] = new DialogueChoice + index3 = 1; + List list399 = new List(index3); + CollectionsMarshal.SetCount(list399, index3); + Span span399 = CollectionsMarshal.AsSpan(list399); + num3 = 0; + span399[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBLM650_02590_Q2_000_000"), @@ -170668,21 +205760,26 @@ public static class AssemblyQuestLoader num = 1; List list400 = new List(num); CollectionsMarshal.SetCount(list400, num); - CollectionsMarshal.AsSpan(list400)[0] = "liza"; + Span span400 = CollectionsMarshal.AsSpan(list400); + index = 0; + span400[index] = "liza"; questRoot37.Author = list400; - num = 7; - List list401 = new List(num); - CollectionsMarshal.SetCount(list401, num); - Span span137 = CollectionsMarshal.AsSpan(list401); - ref QuestSequence reference320 = ref span137[0]; + index = 7; + List list401 = new List(index); + CollectionsMarshal.SetCount(list401, index); + Span span401 = CollectionsMarshal.AsSpan(list401); + num = 0; + ref QuestSequence reference320 = ref span401[num]; QuestSequence obj299 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list402 = new List(num2); - CollectionsMarshal.SetCount(list402, num2); - ref QuestStep reference321 = ref CollectionsMarshal.AsSpan(list402)[0]; + index2 = 1; + List list402 = new List(index2); + CollectionsMarshal.SetCount(list402, index2); + Span span402 = CollectionsMarshal.AsSpan(list402); + num2 = 0; + ref QuestStep reference321 = ref span402[num2]; QuestStep obj300 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -170700,14 +205797,17 @@ public static class AssemblyQuestLoader num3 = 1; List list403 = new List(num3); CollectionsMarshal.SetCount(list403, num3); - CollectionsMarshal.AsSpan(list403)[0] = 131; + Span span403 = CollectionsMarshal.AsSpan(list403); + index3 = 0; + span403[index3] = 131; obj301.InTerritory = list403; skipConditions18.AetheryteShortcutIf = obj301; obj300.SkipConditions = skipConditions18; reference321 = obj300; obj299.Steps = list402; reference320 = obj299; - ref QuestSequence reference322 = ref span137[1]; + num++; + ref QuestSequence reference322 = ref span401[num]; QuestSequence obj302 = new QuestSequence { Sequence = 1 @@ -170715,22 +205815,27 @@ public static class AssemblyQuestLoader num2 = 1; List list404 = new List(num2); CollectionsMarshal.SetCount(list404, num2); - CollectionsMarshal.AsSpan(list404)[0] = new QuestStep(EInteractionType.Interact, 1021086u, new Vector3(326.10046f, 11.181234f, -8.743469f), 145) + Span span404 = CollectionsMarshal.AsSpan(list404); + index2 = 0; + span404[index2] = new QuestStep(EInteractionType.Interact, 1021086u, new Vector3(326.10046f, 11.181234f, -8.743469f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj302.Steps = list404; reference322 = obj302; - ref QuestSequence reference323 = ref span137[2]; + num++; + ref QuestSequence reference323 = ref span401[num]; QuestSequence obj303 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list405 = new List(num2); - CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.Interact, 1021090u, new Vector3(7.2174683f, 115.514336f, -720.7599f), 620) + index2 = 1; + List list405 = new List(index2); + CollectionsMarshal.SetCount(list405, index2); + Span span405 = CollectionsMarshal.AsSpan(list405); + num2 = 0; + span405[num2] = new QuestStep(EInteractionType.Interact, 1021090u, new Vector3(7.2174683f, 115.514336f, -720.7599f), 620) { StopDistance = 0.5f, Fly = true, @@ -170738,7 +205843,8 @@ public static class AssemblyQuestLoader }; obj303.Steps = list405; reference323 = obj303; - ref QuestSequence reference324 = ref span137[3]; + num++; + ref QuestSequence reference324 = ref span401[num]; QuestSequence obj304 = new QuestSequence { Sequence = 3 @@ -170746,35 +205852,43 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - ref QuestStep reference325 = ref CollectionsMarshal.AsSpan(list406)[0]; + Span span406 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + ref QuestStep reference325 = ref span406[index2]; QuestStep obj305 = new QuestStep(EInteractionType.Combat, 2007936u, new Vector3(-284.93176f, 66.20886f, -679.07227f), 620) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list407 = new List(num3); - CollectionsMarshal.SetCount(list407, num3); - CollectionsMarshal.AsSpan(list407)[0] = 7234u; + index3 = 1; + List list407 = new List(index3); + CollectionsMarshal.SetCount(list407, index3); + Span span407 = CollectionsMarshal.AsSpan(list407); + num3 = 0; + span407[num3] = 7234u; obj305.KillEnemyDataIds = list407; reference325 = obj305; obj304.Steps = list406; reference324 = obj304; - ref QuestSequence reference326 = ref span137[4]; + num++; + ref QuestSequence reference326 = ref span401[num]; QuestSequence obj306 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list408 = new List(num2); - CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.Interact, 1021092u, new Vector3(-266.4073f, 76.297005f, -623.1022f), 620) + index2 = 1; + List list408 = new List(index2); + CollectionsMarshal.SetCount(list408, index2); + Span span408 = CollectionsMarshal.AsSpan(list408); + num2 = 0; + span408[num2] = new QuestStep(EInteractionType.Interact, 1021092u, new Vector3(-266.4073f, 76.297005f, -623.1022f), 620) { Fly = true }; obj306.Steps = list408; reference326 = obj306; - ref QuestSequence reference327 = ref span137[5]; + num++; + ref QuestSequence reference327 = ref span401[num]; QuestSequence obj307 = new QuestSequence { Sequence = 5 @@ -170782,22 +205896,27 @@ public static class AssemblyQuestLoader num2 = 1; List list409 = new List(num2); CollectionsMarshal.SetCount(list409, num2); - CollectionsMarshal.AsSpan(list409)[0] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + Span span409 = CollectionsMarshal.AsSpan(list409); + index2 = 0; + span409[index2] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj307.Steps = list409; reference327 = obj307; - ref QuestSequence reference328 = ref span137[6]; + num++; + ref QuestSequence reference328 = ref span401[num]; QuestSequence obj308 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list410 = new List(num2); - CollectionsMarshal.SetCount(list410, num2); - CollectionsMarshal.AsSpan(list410)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + index2 = 1; + List list410 = new List(index2); + CollectionsMarshal.SetCount(list410, index2); + Span span410 = CollectionsMarshal.AsSpan(list410); + num2 = 0; + span410[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -170816,13 +205935,16 @@ public static class AssemblyQuestLoader num = 1; List list411 = new List(num); CollectionsMarshal.SetCount(list411, num); - CollectionsMarshal.AsSpan(list411)[0] = "liza"; + Span span411 = CollectionsMarshal.AsSpan(list411); + index = 0; + span411[index] = "liza"; questRoot38.Author = list411; - num = 7; - List list412 = new List(num); - CollectionsMarshal.SetCount(list412, num); - Span span138 = CollectionsMarshal.AsSpan(list412); - ref QuestSequence reference329 = ref span138[0]; + index = 7; + List list412 = new List(index); + CollectionsMarshal.SetCount(list412, index); + Span span412 = CollectionsMarshal.AsSpan(list412); + num = 0; + ref QuestSequence reference329 = ref span412[num]; QuestSequence obj309 = new QuestSequence { Sequence = 0 @@ -170830,7 +205952,9 @@ public static class AssemblyQuestLoader num2 = 1; List list413 = new List(num2); CollectionsMarshal.SetCount(list413, num2); - ref QuestStep reference330 = ref CollectionsMarshal.AsSpan(list413)[0]; + Span span413 = CollectionsMarshal.AsSpan(list413); + index2 = 0; + ref QuestStep reference330 = ref span413[index2]; QuestStep obj310 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -170848,29 +205972,35 @@ public static class AssemblyQuestLoader num3 = 1; List list414 = new List(num3); CollectionsMarshal.SetCount(list414, num3); - CollectionsMarshal.AsSpan(list414)[0] = 131; + Span span414 = CollectionsMarshal.AsSpan(list414); + index3 = 0; + span414[index3] = 131; obj311.InTerritory = list414; skipConditions19.AetheryteShortcutIf = obj311; obj310.SkipConditions = skipConditions19; reference330 = obj310; obj309.Steps = list413; reference329 = obj309; - ref QuestSequence reference331 = ref span138[1]; + num++; + ref QuestSequence reference331 = ref span412[num]; QuestSequence obj312 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list415 = new List(num2); - CollectionsMarshal.SetCount(list415, num2); - CollectionsMarshal.AsSpan(list415)[0] = new QuestStep(EInteractionType.Interact, 1021097u, new Vector3(-270.37463f, -29.998833f, 111.92493f), 398) + index2 = 1; + List list415 = new List(index2); + CollectionsMarshal.SetCount(list415, index2); + Span span415 = CollectionsMarshal.AsSpan(list415); + num2 = 0; + span415[num2] = new QuestStep(EInteractionType.Interact, 1021097u, new Vector3(-270.37463f, -29.998833f, 111.92493f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj312.Steps = list415; reference331 = obj312; - ref QuestSequence reference332 = ref span138[2]; + num++; + ref QuestSequence reference332 = ref span412[num]; QuestSequence obj313 = new QuestSequence { Sequence = 2 @@ -170878,28 +206008,35 @@ public static class AssemblyQuestLoader num2 = 1; List list416 = new List(num2); CollectionsMarshal.SetCount(list416, num2); - CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + Span span416 = CollectionsMarshal.AsSpan(list416); + index2 = 0; + span416[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { Fly = true }; obj313.Steps = list416; reference332 = obj313; - ref QuestSequence reference333 = ref span138[3]; + num++; + ref QuestSequence reference333 = ref span412[num]; QuestSequence obj314 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list417 = new List(num2); - CollectionsMarshal.SetCount(list417, num2); - CollectionsMarshal.AsSpan(list417)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021102u, new Vector3(-287.19012f, 39.04307f, 44.47998f), 398); + index2 = 1; + List list417 = new List(index2); + CollectionsMarshal.SetCount(list417, index2); + Span span417 = CollectionsMarshal.AsSpan(list417); + num2 = 0; + span417[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021102u, new Vector3(-287.19012f, 39.04307f, 44.47998f), 398); obj314.Steps = list417; reference333 = obj314; - span138[4] = new QuestSequence + num++; + span412[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference334 = ref span138[5]; + num++; + ref QuestSequence reference334 = ref span412[num]; QuestSequence obj315 = new QuestSequence { Sequence = 5 @@ -170907,21 +206044,26 @@ public static class AssemblyQuestLoader num2 = 1; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - CollectionsMarshal.AsSpan(list418)[0] = new QuestStep(EInteractionType.Interact, 1021104u, new Vector3(-267.17023f, -30.09441f, 117.54016f), 398) + Span span418 = CollectionsMarshal.AsSpan(list418); + index2 = 0; + span418[index2] = new QuestStep(EInteractionType.Interact, 1021104u, new Vector3(-267.17023f, -30.09441f, 117.54016f), 398) { Fly = true }; obj315.Steps = list418; reference334 = obj315; - ref QuestSequence reference335 = ref span138[6]; + num++; + ref QuestSequence reference335 = ref span412[num]; QuestSequence obj316 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list419 = new List(num2); - CollectionsMarshal.SetCount(list419, num2); - CollectionsMarshal.AsSpan(list419)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + index2 = 1; + List list419 = new List(index2); + CollectionsMarshal.SetCount(list419, index2); + Span span419 = CollectionsMarshal.AsSpan(list419); + num2 = 0; + span419[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -170943,13 +206085,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 7; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -170957,7 +206102,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -170975,15 +206122,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -170994,7 +206144,8 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -171002,8 +206153,9 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - ref QuestStep reference4 = ref span2[0]; + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + ref QuestStep reference4 = ref span5[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 1002659u, new Vector3(532.8297f, 88.99998f, -72.09894f), 135) { Fly = true, @@ -171019,53 +206171,72 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = 135; + Span span6 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span6[index3] = 135; skipAetheryteCondition.InTerritory = list6; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj4.SkipConditions = skipConditions; - num3 = 6; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list7; reference4 = obj4; - ref QuestStep reference5 = ref span2[1]; + index2++; + ref QuestStep reference5 = ref span5[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1002657u, new Vector3(540.52026f, 89f, -74.02161f), 135); num3 = 6; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span4 = CollectionsMarshal.AsSpan(list8); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span8 = CollectionsMarshal.AsSpan(list8); + index3 = 0; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = null; + index3++; + span8[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list8; reference5 = questStep; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference6 = ref span[3]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1021353u, new Vector3(564.17163f, 84.45213f, -100.328125f), 135) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.Interact, 1021353u, new Vector3(564.17163f, 84.45213f, -100.328125f), 135) { Fly = true }; obj5.Steps = list9; reference6 = obj5; - ref QuestSequence reference7 = ref span[4]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -171073,8 +206244,9 @@ public static class AssemblyQuestLoader num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span5 = CollectionsMarshal.AsSpan(list10); - ref QuestStep reference8 = ref span5[0]; + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + ref QuestStep reference8 = ref span10[index2]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 1019064u, new Vector3(59.220215f, 4f, 67.70422f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -171091,50 +206263,67 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span6 = CollectionsMarshal.AsSpan(list11); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list11 = new List(index3); + CollectionsMarshal.SetCount(list11, index3); + Span span11 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj7.CompletionQuestVariablesFlags = list11; reference8 = obj7; - ref QuestStep reference9 = ref span5[1]; + index2++; + ref QuestStep reference9 = ref span10[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1019065u, new Vector3(80.49133f, 4f, 56.443115f), 628); num3 = 6; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span7 = CollectionsMarshal.AsSpan(list12); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span12 = CollectionsMarshal.AsSpan(list12); + index3 = 0; + span12[index3] = null; + index3++; + span12[index3] = null; + index3++; + span12[index3] = null; + index3++; + span12[index3] = null; + index3++; + span12[index3] = null; + index3++; + span12[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list12; reference9 = questStep2; obj6.Steps = list10; reference7 = obj6; - ref QuestSequence reference10 = ref span[5]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1019233u, new Vector3(-734.15735f, 1.9602847f, -611.38324f), 613) + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.Interact, 1019233u, new Vector3(-734.15735f, 1.9602847f, -611.38324f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj8.Steps = list13; reference10 = obj8; - ref QuestSequence reference11 = ref span[6]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -171142,20 +206331,24 @@ public static class AssemblyQuestLoader num2 = 2; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span8 = CollectionsMarshal.AsSpan(list14); - ref QuestStep reference12 = ref span8[0]; + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + ref QuestStep reference12 = ref span14[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 478); - num3 = 1; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - CollectionsMarshal.AsSpan(list15)[0] = new GatheredItem + index3 = 1; + List list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + Span span15 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span15[num3] = new GatheredItem { ItemId = 17946u, ItemCount = 20 }; questStep3.ItemsToGather = list15; reference12 = questStep3; - span8[1] = new QuestStep(EInteractionType.CompleteQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) + index2++; + span14[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -171174,21 +206367,26 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + Span span16 = CollectionsMarshal.AsSpan(list16); + index = 0; + span16[index] = "liza"; questRoot2.Author = list16; - num = 8; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span9 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference13 = ref span9[0]; + index = 8; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + Span span17 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference13 = ref span17[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -171206,7 +206404,8 @@ public static class AssemblyQuestLoader }; obj10.Steps = list18; reference13 = obj10; - ref QuestSequence reference14 = ref span9[1]; + num++; + ref QuestSequence reference14 = ref span17[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -171214,7 +206413,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.Interact, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -171225,15 +206426,18 @@ public static class AssemblyQuestLoader }; obj11.Steps = list19; reference14 = obj11; - ref QuestSequence reference15 = ref span9[2]; + num++; + ref QuestSequence reference15 = ref span17[num]; QuestSequence obj12 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 2008181u, new Vector3(-46.31122f, 209.49109f, -86.35089f), 478) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.Interact, 2008181u, new Vector3(-46.31122f, 209.49109f, -86.35089f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -171244,7 +206448,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list20; reference15 = obj12; - ref QuestSequence reference16 = ref span9[3]; + num++; + ref QuestSequence reference16 = ref span17[num]; QuestSequence obj13 = new QuestSequence { Sequence = 3 @@ -171252,23 +206457,30 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 2008181u, new Vector3(-46.31122f, 209.49109f, -86.35089f), 478); + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span21[index2] = new QuestStep(EInteractionType.Interact, 2008181u, new Vector3(-46.31122f, 209.49109f, -86.35089f), 478); obj13.Steps = list21; reference16 = obj13; - ref QuestSequence reference17 = ref span9[4]; + num++; + ref QuestSequence reference17 = ref span17[num]; QuestSequence obj14 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list22)[0]; + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref QuestStep reference18 = ref span22[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478); num3 = 1; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new DialogueChoice + Span span23 = CollectionsMarshal.AsSpan(list23); + index3 = 0; + span23[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSHRV680_02623_Q1_000_000"), @@ -171278,7 +206490,8 @@ public static class AssemblyQuestLoader reference18 = questStep4; obj14.Steps = list22; reference17 = obj14; - ref QuestSequence reference19 = ref span9[5]; + num++; + ref QuestSequence reference19 = ref span17[num]; QuestSequence obj15 = new QuestSequence { Sequence = 5 @@ -171286,37 +206499,45 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1017106u, new Vector3(73.99097f, 214.12f, -92.57648f), 478); + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.Interact, 1017106u, new Vector3(73.99097f, 214.12f, -92.57648f), 478); obj15.Steps = list24; reference19 = obj15; - ref QuestSequence reference20 = ref span9[6]; + num++; + ref QuestSequence reference20 = ref span17[num]; QuestSequence obj16 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - Span span10 = CollectionsMarshal.AsSpan(list25); - ref QuestStep reference21 = ref span10[0]; + index2 = 2; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + ref QuestStep reference21 = ref span25[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Gather, null, null, 478); - num3 = 1; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = new GatheredItem + index3 = 1; + List list26 = new List(index3); + CollectionsMarshal.SetCount(list26, index3); + Span span26 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span26[num3] = new GatheredItem { ItemId = 17947u, ItemCount = 20 }; questStep5.ItemsToGather = list26; reference21 = questStep5; - span10[1] = new QuestStep(EInteractionType.Interact, 1017106u, new Vector3(73.99097f, 214.12f, -92.57648f), 478) + num2++; + span25[num2] = new QuestStep(EInteractionType.Interact, 1017106u, new Vector3(73.99097f, 214.12f, -92.57648f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj16.Steps = list25; reference20 = obj16; - ref QuestSequence reference22 = ref span9[7]; + num++; + ref QuestSequence reference22 = ref span17[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -171324,7 +206545,9 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478); + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478); obj17.Steps = list27; reference22 = obj17; questRoot2.QuestSequence = list17; @@ -171334,21 +206557,26 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + Span span28 = CollectionsMarshal.AsSpan(list28); + index = 0; + span28[index] = "liza"; questRoot3.Author = list28; - num = 7; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span11 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference23 = ref span11[0]; + index = 7; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + Span span29 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference23 = ref span29[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span30[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -171366,7 +206594,8 @@ public static class AssemblyQuestLoader }; obj18.Steps = list30; reference23 = obj18; - ref QuestSequence reference24 = ref span11[1]; + num++; + ref QuestSequence reference24 = ref span29[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -171374,7 +206603,9 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span31[index2] = new QuestStep(EInteractionType.Interact, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -171385,21 +206616,25 @@ public static class AssemblyQuestLoader }; obj19.Steps = list31; reference24 = obj19; - ref QuestSequence reference25 = ref span11[2]; + num++; + ref QuestSequence reference25 = ref span29[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1021358u, new Vector3(-599.54224f, 130f, -483.32953f), 612) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.Interact, 1021358u, new Vector3(-599.54224f, 130f, -483.32953f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj20.Steps = list32; reference25 = obj20; - ref QuestSequence reference26 = ref span11[3]; + num++; + ref QuestSequence reference26 = ref span29[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 @@ -171407,66 +206642,91 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1021359u, new Vector3(-262.25684f, 256.97177f, 695.52136f), 620) + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.Interact, 1021359u, new Vector3(-262.25684f, 256.97177f, 695.52136f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; obj21.Steps = list33; reference26 = obj21; - ref QuestSequence reference27 = ref span11[4]; + num++; + ref QuestSequence reference27 = ref span29[num]; QuestSequence obj22 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span12 = CollectionsMarshal.AsSpan(list34); - ref QuestStep reference28 = ref span12[0]; + index2 = 3; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref QuestStep reference28 = ref span34[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1021591u, new Vector3(-277.82104f, 258.90652f, 782.77246f), 620); num3 = 6; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span13 = CollectionsMarshal.AsSpan(list35); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span35 = CollectionsMarshal.AsSpan(list35); + index3 = 0; + span35[index3] = null; + index3++; + span35[index3] = null; + index3++; + span35[index3] = null; + index3++; + span35[index3] = null; + index3++; + span35[index3] = null; + index3++; + span35[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list35; reference28 = questStep6; - ref QuestStep reference29 = ref span12[1]; + num2++; + ref QuestStep reference29 = ref span34[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1021595u, new Vector3(-232.50171f, 258.90652f, 783.505f), 620); - num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span14 = CollectionsMarshal.AsSpan(list36); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + Span span36 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list36; reference29 = questStep7; - ref QuestStep reference30 = ref span12[2]; + num2++; + ref QuestStep reference30 = ref span34[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1020870u, new Vector3(-218.61603f, 257.52652f, 737.1786f), 620); num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span15 = CollectionsMarshal.AsSpan(list37); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span37 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list37; reference30 = questStep8; obj22.Steps = list34; reference27 = obj22; - ref QuestSequence reference31 = ref span11[5]; + num++; + ref QuestSequence reference31 = ref span29[num]; QuestSequence obj23 = new QuestSequence { Sequence = 5 @@ -171474,31 +206734,38 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1022381u, new Vector3(-243.12207f, 257.52652f, 744.0145f), 620); + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.Interact, 1022381u, new Vector3(-243.12207f, 257.52652f, 744.0145f), 620); obj23.Steps = list38; reference31 = obj23; - ref QuestSequence reference32 = ref span11[6]; + num++; + ref QuestSequence reference32 = ref span29[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - Span span16 = CollectionsMarshal.AsSpan(list39); - ref QuestStep reference33 = ref span16[0]; + index2 = 2; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + ref QuestStep reference33 = ref span39[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 478); - num3 = 1; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = new GatheredItem + index3 = 1; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + Span span40 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span40[num3] = new GatheredItem { ItemId = 17948u, ItemCount = 5 }; questStep9.ItemsToGather = list40; reference33 = questStep9; - span16[1] = new QuestStep(EInteractionType.CompleteQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) + num2++; + span39[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) { Comment = "Eorzean Time: 4:00-5:59 AM/PM", AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -171517,13 +206784,16 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + Span span41 = CollectionsMarshal.AsSpan(list41); + index = 0; + span41[index] = "liza"; questRoot4.Author = list41; - num = 6; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span17 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference34 = ref span17[0]; + index = 6; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + Span span42 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference34 = ref span42[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -171531,7 +206801,9 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list43)[0]; + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + ref QuestStep reference35 = ref span43[index2]; QuestStep obj26 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -171549,29 +206821,35 @@ public static class AssemblyQuestLoader num3 = 1; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = 133; + Span span44 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span44[index3] = 133; obj27.InTerritory = list44; skipConditions2.AetheryteShortcutIf = obj27; obj26.SkipConditions = skipConditions2; reference35 = obj26; obj25.Steps = list43; reference34 = obj25; - ref QuestSequence reference36 = ref span17[1]; + num++; + ref QuestSequence reference36 = ref span42[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span45[num2] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj28.Steps = list45; reference36 = obj28; - ref QuestSequence reference37 = ref span17[2]; + num++; + ref QuestSequence reference37 = ref span42[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -171579,35 +206857,43 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1022761u, new Vector3(5.996765f, 20.712559f, -659.26605f), 156) + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.Interact, 1022761u, new Vector3(5.996765f, 20.712559f, -659.26605f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj29.Steps = list46; reference37 = obj29; - ref QuestSequence reference38 = ref span17[3]; + num++; + ref QuestSequence reference38 = ref span42[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list47)[0]; + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + ref QuestStep reference39 = ref span47[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, 1022762u, new Vector3(385.39697f, 23.711746f, -712.7031f), 156) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = 7227u; + index3 = 1; + List list48 = new List(index3); + CollectionsMarshal.SetCount(list48, index3); + Span span48 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span48[num3] = 7227u; obj31.KillEnemyDataIds = list48; reference39 = obj31; obj30.Steps = list47; reference38 = obj30; - ref QuestSequence reference40 = ref span17[4]; + num++; + ref QuestSequence reference40 = ref span42[num]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -171615,18 +206901,23 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1022763u, new Vector3(384.0542f, 23.602556f, -711.20776f), 156); + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span49[index2] = new QuestStep(EInteractionType.Interact, 1022763u, new Vector3(384.0542f, 23.602556f, -711.20776f), 156); obj32.Steps = list49; reference40 = obj32; - ref QuestSequence reference41 = ref span17[5]; + num++; + ref QuestSequence reference41 = ref span42[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -171645,13 +206936,16 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "liza"; + Span span51 = CollectionsMarshal.AsSpan(list51); + index = 0; + span51[index] = "liza"; questRoot5.Author = list51; - num = 7; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span18 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference42 = ref span18[0]; + index = 7; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + Span span52 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference42 = ref span52[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -171659,7 +206953,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - ref QuestStep reference43 = ref CollectionsMarshal.AsSpan(list53)[0]; + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + ref QuestStep reference43 = ref span53[index2]; QuestStep obj35 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -171677,28 +206973,34 @@ public static class AssemblyQuestLoader num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = 133; + Span span54 = CollectionsMarshal.AsSpan(list54); + index3 = 0; + span54[index3] = 133; obj36.InTerritory = list54; skipConditions3.AetheryteShortcutIf = obj36; obj35.SkipConditions = skipConditions3; reference43 = obj35; obj34.Steps = list53; reference42 = obj34; - ref QuestSequence reference44 = ref span18[1]; + num++; + ref QuestSequence reference44 = ref span52[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1022765u, new Vector3(49.66809f, 3.9999626f, 429.22095f), 147) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.Interact, 1022765u, new Vector3(49.66809f, 3.9999626f, 429.22095f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog }; obj37.Steps = list55; reference44 = obj37; - ref QuestSequence reference45 = ref span18[2]; + num++; + ref QuestSequence reference45 = ref span52[num]; QuestSequence obj38 = new QuestSequence { Sequence = 2 @@ -171706,29 +207008,36 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list56)[0]; + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + ref QuestStep reference46 = ref span56[index2]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, 1022770u, new Vector3(82.38342f, 14.362329f, 221.20996f), 147) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = 7228u; + index3 = 1; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + Span span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span57[num3] = 7228u; obj39.KillEnemyDataIds = list57; reference46 = obj39; obj38.Steps = list56; reference45 = obj38; - ref QuestSequence reference47 = ref span18[3]; + num++; + ref QuestSequence reference47 = ref span52[num]; QuestSequence obj40 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list58)[0]; + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + ref QuestStep reference48 = ref span58[num2]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, 1022772u, new Vector3(87.907104f, 14.713098f, 222.03394f), 147) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -171736,12 +207045,15 @@ public static class AssemblyQuestLoader num3 = 1; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = 7229u; + Span span59 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span59[index3] = 7229u; obj41.KillEnemyDataIds = list59; reference48 = obj41; obj40.Steps = list58; reference47 = obj40; - ref QuestSequence reference49 = ref span18[4]; + num++; + ref QuestSequence reference49 = ref span52[num]; QuestSequence obj42 = new QuestSequence { Sequence = 4 @@ -171749,31 +207061,39 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list60)[0]; + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + ref QuestStep reference50 = ref span60[index2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, 1022772u, new Vector3(87.907104f, 14.713098f, 222.03394f), 147) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - CollectionsMarshal.AsSpan(list61)[0] = 7230u; + index3 = 1; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = 7230u; obj43.KillEnemyDataIds = list61; reference50 = obj43; obj42.Steps = list60; reference49 = obj42; - ref QuestSequence reference51 = ref span18[5]; + num++; + ref QuestSequence reference51 = ref span52[num]; QuestSequence obj44 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1022773u, new Vector3(74.66235f, 14.033362f, 228.5343f), 147); + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.Interact, 1022773u, new Vector3(74.66235f, 14.033362f, 228.5343f), 147); obj44.Steps = list62; reference51 = obj44; - ref QuestSequence reference52 = ref span18[6]; + num++; + ref QuestSequence reference52 = ref span52[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -171781,7 +207101,9 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -171800,21 +207122,26 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + Span span64 = CollectionsMarshal.AsSpan(list64); + index = 0; + span64[index] = "liza"; questRoot6.Author = list64; - num = 6; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span19 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference53 = ref span19[0]; + index = 6; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + Span span65 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference53 = ref span65[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list66)[0]; + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + ref QuestStep reference54 = ref span66[num2]; QuestStep obj47 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -171832,14 +207159,17 @@ public static class AssemblyQuestLoader num3 = 1; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = 133; + Span span67 = CollectionsMarshal.AsSpan(list67); + index3 = 0; + span67[index3] = 133; obj48.InTerritory = list67; skipConditions4.AetheryteShortcutIf = obj48; obj47.SkipConditions = skipConditions4; reference54 = obj47; obj46.Steps = list66; reference53 = obj46; - ref QuestSequence reference55 = ref span19[1]; + num++; + ref QuestSequence reference55 = ref span65[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 @@ -171847,7 +207177,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1014039u, new Vector3(-17.990417f, 83.19999f, 0.6560669f), 130) + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.Interact, 1014039u, new Vector3(-17.990417f, 83.19999f, 0.6560669f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -171858,25 +207190,30 @@ public static class AssemblyQuestLoader }; obj49.Steps = list68; reference55 = obj49; - ref QuestSequence reference56 = ref span19[2]; + num++; + ref QuestSequence reference56 = ref span65[num]; QuestSequence obj50 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014038u, new Vector3(-20.24878f, 83.19998f, -1.4801636f), 130) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014038u, new Vector3(-20.24878f, 83.19998f, -1.4801636f), 130) { StopDistance = 7f }; obj50.Steps = list69; reference56 = obj50; - span19[3] = new QuestSequence + num++; + span65[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference57 = ref span19[4]; + num++; + ref QuestSequence reference57 = ref span65[num]; QuestSequence obj51 = new QuestSequence { Sequence = 4 @@ -171884,21 +207221,26 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1014040u, new Vector3(-19.028076f, 83.19999f, 0.10675049f), 130) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.Interact, 1014040u, new Vector3(-19.028076f, 83.19999f, 0.10675049f), 130) { StopDistance = 7f }; obj51.Steps = list70; reference57 = obj51; - ref QuestSequence reference58 = ref span19[5]; + num++; + ref QuestSequence reference58 = ref span65[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -171917,13 +207259,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "liza"; + Span span72 = CollectionsMarshal.AsSpan(list72); + index = 0; + span72[index] = "liza"; questRoot7.Author = list72; - num = 6; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span20 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference59 = ref span20[0]; + index = 6; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + Span span73 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference59 = ref span73[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -171931,7 +207276,9 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list74)[0]; + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + ref QuestStep reference60 = ref span74[index2]; QuestStep obj54 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -171946,32 +207293,38 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = 133; + index3 = 1; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span75 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span75[num3] = 133; obj55.InTerritory = list75; skipConditions5.AetheryteShortcutIf = obj55; obj54.SkipConditions = skipConditions5; reference60 = obj54; obj53.Steps = list74; reference59 = obj53; - ref QuestSequence reference61 = ref span20[1]; + num++; + ref QuestSequence reference61 = ref span73[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj56.Steps = list76; reference61 = obj56; - ref QuestSequence reference62 = ref span20[2]; + num++; + ref QuestSequence reference62 = ref span73[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -171979,33 +207332,40 @@ public static class AssemblyQuestLoader num2 = 3; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span21 = CollectionsMarshal.AsSpan(list77); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span21[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); - span21[2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); + index2++; + span77[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.629164f, 28.999998f, -823.2204f), 156); + index2++; + span77[index2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); obj57.Steps = list77; reference62 = obj57; - ref QuestSequence reference63 = ref span20[3]; + num++; + ref QuestSequence reference63 = ref span73[num]; QuestSequence obj58 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span22 = CollectionsMarshal.AsSpan(list78); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156); - span22[1] = new QuestStep(EInteractionType.Interact, 1023894u, new Vector3(8.346619f, 20.717896f, -657.49603f), 156) + index2 = 2; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156); + num2++; + span78[num2] = new QuestStep(EInteractionType.Interact, 1023894u, new Vector3(8.346619f, 20.717896f, -657.49603f), 156) { Fly = true }; obj58.Steps = list78; reference63 = obj58; - ref QuestSequence reference64 = ref span20[4]; + num++; + ref QuestSequence reference64 = ref span73[num]; QuestSequence obj59 = new QuestSequence { Sequence = 4 @@ -172013,21 +207373,26 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1022780u, new Vector3(412.5581f, -5.7435417f, -436.39276f), 156) + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.Interact, 1022780u, new Vector3(412.5581f, -5.7435417f, -436.39276f), 156) { Fly = true }; obj59.Steps = list79; reference64 = obj59; - ref QuestSequence reference65 = ref span20[5]; + num++; + ref QuestSequence reference65 = ref span73[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -172046,13 +207411,16 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "liza"; + Span span81 = CollectionsMarshal.AsSpan(list81); + index = 0; + span81[index] = "liza"; questRoot8.Author = list81; - num = 7; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span23 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference66 = ref span23[0]; + index = 7; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + Span span82 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference66 = ref span82[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -172060,7 +207428,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list83)[0]; + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + ref QuestStep reference67 = ref span83[index2]; QuestStep obj62 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -172078,29 +207448,35 @@ public static class AssemblyQuestLoader num3 = 1; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = 133; + Span span84 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span84[index3] = 133; obj63.InTerritory = list84; skipConditions6.AetheryteShortcutIf = obj63; obj62.SkipConditions = skipConditions6; reference67 = obj62; obj61.Steps = list83; reference66 = obj61; - ref QuestSequence reference68 = ref span23[1]; + num++; + ref QuestSequence reference68 = ref span82[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1022785u, new Vector3(-624.6891f, -176.4502f, -565.0874f), 402) + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span85[num2] = new QuestStep(EInteractionType.Interact, 1022785u, new Vector3(-624.6891f, -176.4502f, -565.0874f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj64.Steps = list85; reference68 = obj64; - ref QuestSequence reference69 = ref span23[2]; + num++; + ref QuestSequence reference69 = ref span82[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -172108,33 +207484,41 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list86)[0]; + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + ref QuestStep reference70 = ref span86[index2]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, null, new Vector3(20.176798f, 293.97687f, -0.15623161f), 402) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = 7231u; + index3 = 1; + List list87 = new List(index3); + CollectionsMarshal.SetCount(list87, index3); + Span span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = 7231u; obj66.KillEnemyDataIds = list87; reference70 = obj66; obj65.Steps = list86; reference69 = obj65; - ref QuestSequence reference71 = ref span23[3]; + num++; + ref QuestSequence reference71 = ref span82[num]; QuestSequence obj67 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 2008640u, new Vector3(16.617004f, 293.8734f, 0.07623291f), 402); + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Interact, 2008640u, new Vector3(16.617004f, 293.8734f, 0.07623291f), 402); obj67.Steps = list88; reference71 = obj67; - ref QuestSequence reference72 = ref span23[4]; + num++; + ref QuestSequence reference72 = ref span82[num]; QuestSequence obj68 = new QuestSequence { Sequence = 4 @@ -172142,24 +207526,30 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023595u, new Vector3(21.98816f, 293.97577f, 0.41192627f), 402); + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023595u, new Vector3(21.98816f, 293.97577f, 0.41192627f), 402); obj68.Steps = list89; reference72 = obj68; - ref QuestSequence reference73 = ref span23[5]; + num++; + ref QuestSequence reference73 = ref span82[num]; QuestSequence obj69 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1022790u, new Vector3(21.957703f, 293.9787f, -1.0529175f), 402) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.Interact, 1022790u, new Vector3(21.957703f, 293.9787f, -1.0529175f), 402) { StopDistance = 5f }; obj69.Steps = list90; reference73 = obj69; - ref QuestSequence reference74 = ref span23[6]; + num++; + ref QuestSequence reference74 = ref span82[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -172167,7 +207557,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -172185,21 +207577,26 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "JerryWester"; + Span span92 = CollectionsMarshal.AsSpan(list92); + index = 0; + span92[index] = "JerryWester"; questRoot9.Author = list92; - num = 5; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span24 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference75 = ref span24[0]; + index = 5; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + Span span93 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference75 = ref span93[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020068u, new Vector3(444.41882f, 68.028534f, -76.951294f), 614) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020068u, new Vector3(444.41882f, 68.028534f, -76.951294f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -172212,7 +207609,8 @@ public static class AssemblyQuestLoader }; obj71.Steps = list94; reference75 = obj71; - ref QuestSequence reference76 = ref span24[1]; + num++; + ref QuestSequence reference76 = ref span93[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -172220,36 +207618,42 @@ public static class AssemblyQuestLoader num2 = 2; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span25 = CollectionsMarshal.AsSpan(list95); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(839.0091f, 99.60754f, -427.17267f), 614) + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(839.0091f, 99.60754f, -427.17267f), 614) { StopDistance = 0.25f, TargetTerritoryId = (ushort)613, Fly = true }; - span25[1] = new QuestStep(EInteractionType.Interact, 1020073u, new Vector3(-762.1119f, 4.763445f, -453.4829f), 613) + index2++; + span95[index2] = new QuestStep(EInteractionType.Interact, 1020073u, new Vector3(-762.1119f, 4.763445f, -453.4829f), 613) { StopDistance = 0.25f, Fly = true }; obj72.Steps = list95; reference76 = obj72; - ref QuestSequence reference77 = ref span24[2]; + num++; + ref QuestSequence reference77 = ref span93[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-743.88257f, -2.4347913f, -871.06934f), 613) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-743.88257f, -2.4347913f, -871.06934f), 613) { TargetTerritoryId = (ushort)622, Fly = true }; obj73.Steps = list96; reference77 = obj73; - ref QuestSequence reference78 = ref span24[3]; + num++; + ref QuestSequence reference78 = ref span93[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -172257,23 +207661,28 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1020076u, new Vector3(540.3677f, -19.793196f, 636.6216f), 622); + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.Interact, 1020076u, new Vector3(540.3677f, -19.793196f, 636.6216f), 622); obj74.Steps = list97; reference78 = obj74; - ref QuestSequence reference79 = ref span24[4]; + num++; + ref QuestSequence reference79 = ref span93[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - Span span26 = CollectionsMarshal.AsSpan(list98); - span26[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008015u, new Vector3(570.27527f, -19.516357f, 438.16272f), 622) + index2 = 2; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008015u, new Vector3(570.27527f, -19.516357f, 438.16272f), 622) { AetherCurrentId = 2818208u }; - span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1020079u, new Vector3(560.235f, -19.505638f, 408.68237f), 622); + num2++; + span98[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020079u, new Vector3(560.235f, -19.505638f, 408.68237f), 622); obj75.Steps = list98; reference79 = obj75; questRoot9.QuestSequence = list93; @@ -172283,13 +207692,16 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; + Span span99 = CollectionsMarshal.AsSpan(list99); + index = 0; + span99[index] = "liza"; questRoot10.Author = list99; - num = 5; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span27 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference80 = ref span27[0]; + index = 5; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + Span span100 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference80 = ref span100[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 @@ -172297,7 +207709,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022628u, new Vector3(38.651123f, 2.99999f, -66.7583f), 628) + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022628u, new Vector3(38.651123f, 2.99999f, -66.7583f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -172310,15 +207724,18 @@ public static class AssemblyQuestLoader }; obj76.Steps = list101; reference80 = obj76; - ref QuestSequence reference81 = ref span27[1]; + num++; + ref QuestSequence reference81 = ref span100[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1023604u, new Vector3(-113.96973f, -7.010037f, -39.292053f), 628) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.Interact, 1023604u, new Vector3(-113.96973f, -7.010037f, -39.292053f), 628) { AethernetShortcut = new AethernetShortcut { @@ -172328,7 +207745,8 @@ public static class AssemblyQuestLoader }; obj77.Steps = list102; reference81 = obj77; - ref QuestSequence reference82 = ref span27[2]; + num++; + ref QuestSequence reference82 = ref span100[num]; QuestSequence obj78 = new QuestSequence { Sequence = 2 @@ -172336,7 +207754,9 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list103)[0]; + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + ref QuestStep reference83 = ref span103[index2]; QuestStep obj79 = new QuestStep(EInteractionType.Interact, 1019006u, new Vector3(-116.80786f, -7.0101376f, -39.108948f), 628) { StopDistance = 7f, @@ -172345,7 +207765,9 @@ public static class AssemblyQuestLoader num3 = 1; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new DialogueChoice + Span span104 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span104[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -172356,18 +207778,22 @@ public static class AssemblyQuestLoader reference83 = obj79; obj78.Steps = list103; reference82 = obj78; - ref QuestSequence reference84 = ref span27[3]; + num++; + ref QuestSequence reference84 = ref span100[num]; QuestSequence obj80 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1023605u, new Vector3(-99.99243f, 2.1199996f, 117.57068f), 641); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.Interact, 1023605u, new Vector3(-99.99243f, 2.1199996f, 117.57068f), 641); obj80.Steps = list105; reference84 = obj80; - ref QuestSequence reference85 = ref span27[4]; + num++; + ref QuestSequence reference85 = ref span100[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -172375,7 +207801,9 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022628u, new Vector3(38.651123f, 2.99999f, -66.7583f), 628) + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022628u, new Vector3(38.651123f, 2.99999f, -66.7583f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane }; @@ -172388,26 +207816,33 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "JerryWester"; + Span span107 = CollectionsMarshal.AsSpan(list107); + index = 0; + span107[index] = "JerryWester"; questRoot11.Author = list107; - num = 6; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span28 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference86 = ref span28[0]; + index = 6; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + Span span108 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference86 = ref span108[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list109)[0]; + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + ref QuestStep reference87 = ref span109[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); - num3 = 1; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = new DialogueChoice + index3 = 1; + List list110 = new List(index3); + CollectionsMarshal.SetCount(list110, index3); + Span span110 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span110[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY001_02632_Q1_000_050"), @@ -172417,7 +207852,8 @@ public static class AssemblyQuestLoader reference87 = questStep10; obj82.Steps = list109; reference86 = obj82; - ref QuestSequence reference88 = ref span28[1]; + num++; + ref QuestSequence reference88 = ref span108[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -172425,30 +207861,37 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1019197u, new Vector3(-8.926575f, -187.08374f, -95.018005f), 613); + Span span111 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span111[index2] = new QuestStep(EInteractionType.Interact, 1019197u, new Vector3(-8.926575f, -187.08374f, -95.018005f), 613); obj83.Steps = list111; reference88 = obj83; - ref QuestSequence reference89 = ref span28[2]; + num++; + ref QuestSequence reference89 = ref span108[num]; QuestSequence obj84 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span29 = CollectionsMarshal.AsSpan(list112); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(21.067955f, -197.78902f, -155.23956f), 613) + index2 = 3; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(21.067955f, -197.78902f, -155.23956f), 613) { RestartNavigationIfCancelled = false }; - span29[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-238.47687f, -192.81738f, 329.51413f), 613); - span29[2] = new QuestStep(EInteractionType.Interact, 1023293u, new Vector3(-957.15265f, -895.9945f, 756.83215f), 613) + num2++; + span112[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-238.47687f, -192.81738f, 329.51413f), 613); + num2++; + span112[num2] = new QuestStep(EInteractionType.Interact, 1023293u, new Vector3(-957.15265f, -895.9945f, 756.83215f), 613) { Fly = true }; obj84.Steps = list112; reference89 = obj84; - ref QuestSequence reference90 = ref span28[3]; + num++; + ref QuestSequence reference90 = ref span108[num]; QuestSequence obj85 = new QuestSequence { Sequence = 3 @@ -172456,7 +207899,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Duty, null, null, 613) + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.Duty, null, null, 613) { DutyOptions = new DutyOptions { @@ -172466,21 +207911,25 @@ public static class AssemblyQuestLoader }; obj85.Steps = list113; reference90 = obj85; - ref QuestSequence reference91 = ref span28[4]; + num++; + ref QuestSequence reference91 = ref span108[num]; QuestSequence obj86 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1023293u, new Vector3(-957.15265f, -895.9945f, 756.83215f), 613) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.Interact, 1023293u, new Vector3(-957.15265f, -895.9945f, 756.83215f), 613) { StopDistance = 8f }; obj86.Steps = list114; reference91 = obj86; - ref QuestSequence reference92 = ref span28[5]; + num++; + ref QuestSequence reference92 = ref span108[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -172488,17 +207937,20 @@ public static class AssemblyQuestLoader num2 = 3; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span30 = CollectionsMarshal.AsSpan(list115); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span30[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) + index2++; + span115[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) { RestartNavigationIfCancelled = false }; - span30[2] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); + index2++; + span115[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); obj87.Steps = list115; reference92 = obj87; questRoot11.QuestSequence = list108; @@ -172508,21 +207960,26 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "JerryWester"; + Span span116 = CollectionsMarshal.AsSpan(list116); + index = 0; + span116[index] = "JerryWester"; questRoot12.Author = list116; - num = 3; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span31 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference93 = ref span31[0]; + index = 3; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + Span span117 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference93 = ref span117[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019470u, new Vector3(152.11719f, 13.1533165f, -118.48633f), 635) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019470u, new Vector3(152.11719f, 13.1533165f, -118.48633f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -172535,7 +207992,8 @@ public static class AssemblyQuestLoader }; obj88.Steps = list118; reference93 = obj88; - ref QuestSequence reference94 = ref span31[1]; + num++; + ref QuestSequence reference94 = ref span117[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -172543,118 +208001,163 @@ public static class AssemblyQuestLoader num2 = 6; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span32 = CollectionsMarshal.AsSpan(list119); - ref QuestStep reference95 = ref span32[0]; + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + ref QuestStep reference95 = ref span119[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1019473u, new Vector3(51.285522f, 23.640764f, -288.96008f), 635); num3 = 6; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - Span span33 = CollectionsMarshal.AsSpan(list120); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span120 = CollectionsMarshal.AsSpan(list120); + index3 = 0; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list120; reference95 = questStep11; - ref QuestStep reference96 = ref span32[1]; + index2++; + ref QuestStep reference96 = ref span119[index2]; QuestStep obj90 = new QuestStep(EInteractionType.Interact, 1019476u, new Vector3(77.25635f, 0f, -14.175659f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; - num3 = 6; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span34 = CollectionsMarshal.AsSpan(list121); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + Span span121 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj90.CompletionQuestVariablesFlags = list121; reference96 = obj90; - ref QuestStep reference97 = ref span32[2]; + index2++; + ref QuestStep reference97 = ref span119[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.3239292f, -2.1258624f, 5.0789523f), 635); SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - Span span35 = CollectionsMarshal.AsSpan(list122); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span122 = CollectionsMarshal.AsSpan(list122); + index3 = 0; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list122; skipConditions7.StepIf = skipStepConditions; questStep12.SkipConditions = skipConditions7; reference97 = questStep12; - ref QuestStep reference98 = ref span32[3]; + index2++; + ref QuestStep reference98 = ref span119[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635); - num3 = 6; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - Span span36 = CollectionsMarshal.AsSpan(list123); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list123 = new List(index3); + CollectionsMarshal.SetCount(list123, index3); + Span span123 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span123[num3] = null; + num3++; + span123[num3] = null; + num3++; + span123[num3] = null; + num3++; + span123[num3] = null; + num3++; + span123[num3] = null; + num3++; + span123[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list123; reference98 = questStep13; - ref QuestStep reference99 = ref span32[4]; + index2++; + ref QuestStep reference99 = ref span119[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-42.27211f, -0.059376776f, -115.03399f), 635); SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - Span span37 = CollectionsMarshal.AsSpan(list124); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span124 = CollectionsMarshal.AsSpan(list124); + index3 = 0; + span124[index3] = null; + index3++; + span124[index3] = null; + index3++; + span124[index3] = null; + index3++; + span124[index3] = null; + index3++; + span124[index3] = null; + index3++; + span124[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list124; skipConditions8.StepIf = skipStepConditions2; questStep14.SkipConditions = skipConditions8; reference99 = questStep14; - ref QuestStep reference100 = ref span32[5]; + index2++; + ref QuestStep reference100 = ref span119[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1019490u, new Vector3(-6.240967f, -0.036807638f, -119.18823f), 635); - num3 = 6; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span38 = CollectionsMarshal.AsSpan(list125); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list125 = new List(index3); + CollectionsMarshal.SetCount(list125, index3); + Span span125 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list125; reference100 = questStep15; obj89.Steps = list119; reference94 = obj89; - ref QuestSequence reference101 = ref span31[2]; + num++; + ref QuestSequence reference101 = ref span117[num]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - Span span39 = CollectionsMarshal.AsSpan(list126); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(79.89871f, -0.38368523f, -108.87432f), 635) + index2 = 2; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(79.89871f, -0.38368523f, -108.87432f), 635) { Mount = false }; - span39[1] = new QuestStep(EInteractionType.CompleteQuest, 1019470u, new Vector3(152.11719f, 13.1533165f, -118.48633f), 635); + num2++; + span126[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019470u, new Vector3(152.11719f, 13.1533165f, -118.48633f), 635); obj91.Steps = list126; reference101 = obj91; questRoot12.QuestSequence = list117; @@ -172664,13 +208167,16 @@ public static class AssemblyQuestLoader num = 1; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - CollectionsMarshal.AsSpan(list127)[0] = "JerryWester"; + Span span127 = CollectionsMarshal.AsSpan(list127); + index = 0; + span127[index] = "JerryWester"; questRoot13.Author = list127; - num = 4; - List list128 = new List(num); - CollectionsMarshal.SetCount(list128, num); - Span span40 = CollectionsMarshal.AsSpan(list128); - ref QuestSequence reference102 = ref span40[0]; + index = 4; + List list128 = new List(index); + CollectionsMarshal.SetCount(list128, index); + Span span128 = CollectionsMarshal.AsSpan(list128); + num = 0; + ref QuestSequence reference102 = ref span128[num]; QuestSequence obj92 = new QuestSequence { Sequence = 0 @@ -172678,7 +208184,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019476u, new Vector3(77.25635f, 0f, -14.175659f), 635) + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019476u, new Vector3(77.25635f, 0f, -14.175659f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -172691,18 +208199,22 @@ public static class AssemblyQuestLoader }; obj92.Steps = list129; reference102 = obj92; - ref QuestSequence reference103 = ref span40[1]; + num++; + ref QuestSequence reference103 = ref span128[num]; QuestSequence obj93 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1019471u, new Vector3(149.49255f, 12.918162f, -137.07184f), 635); + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.Interact, 1019471u, new Vector3(149.49255f, 12.918162f, -137.07184f), 635); obj93.Steps = list130; reference103 = obj93; - ref QuestSequence reference104 = ref span40[2]; + num++; + ref QuestSequence reference104 = ref span128[num]; QuestSequence obj94 = new QuestSequence { Sequence = 2 @@ -172710,100 +208222,138 @@ public static class AssemblyQuestLoader num2 = 5; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span41 = CollectionsMarshal.AsSpan(list131); - ref QuestStep reference105 = ref span41[0]; + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + ref QuestStep reference105 = ref span131[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2007954u, new Vector3(89.52466f, 0.5340576f, -96.23871f), 635); num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span42 = CollectionsMarshal.AsSpan(list132); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span132 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list132; reference105 = questStep16; - ref QuestStep reference106 = ref span41[1]; + index2++; + ref QuestStep reference106 = ref span131[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(35.282135f, -2.2715392f, -115.13004f), 635); SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - Span span43 = CollectionsMarshal.AsSpan(list133); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list133 = new List(index3); + CollectionsMarshal.SetCount(list133, index3); + Span span133 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list133; skipConditions9.StepIf = skipStepConditions3; questStep17.SkipConditions = skipConditions9; reference106 = questStep17; - ref QuestStep reference107 = ref span41[2]; + index2++; + ref QuestStep reference107 = ref span131[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2007951u, new Vector3(24.887451f, -0.3204956f, -119.85962f), 635); num3 = 6; List list134 = new List(num3); CollectionsMarshal.SetCount(list134, num3); - Span span44 = CollectionsMarshal.AsSpan(list134); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span134 = CollectionsMarshal.AsSpan(list134); + index3 = 0; + span134[index3] = null; + index3++; + span134[index3] = null; + index3++; + span134[index3] = null; + index3++; + span134[index3] = null; + index3++; + span134[index3] = null; + index3++; + span134[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list134; reference107 = questStep18; - ref QuestStep reference108 = ref span41[3]; + index2++; + ref QuestStep reference108 = ref span131[index2]; QuestStep obj95 = new QuestStep(EInteractionType.Interact, 2007953u, new Vector3(-35.568848f, 9.262146f, 100.20593f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; - num3 = 6; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - Span span45 = CollectionsMarshal.AsSpan(list135); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list135 = new List(index3); + CollectionsMarshal.SetCount(list135, index3); + Span span135 = CollectionsMarshal.AsSpan(list135); + num3 = 0; + span135[num3] = null; + num3++; + span135[num3] = null; + num3++; + span135[num3] = null; + num3++; + span135[num3] = null; + num3++; + span135[num3] = null; + num3++; + span135[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj95.CompletionQuestVariablesFlags = list135; reference108 = obj95; - ref QuestStep reference109 = ref span41[4]; + index2++; + ref QuestStep reference109 = ref span131[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2007952u, new Vector3(-33.40204f, -0.16790771f, -16.800232f), 635); num3 = 6; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - Span span46 = CollectionsMarshal.AsSpan(list136); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span136 = CollectionsMarshal.AsSpan(list136); + index3 = 0; + span136[index3] = null; + index3++; + span136[index3] = null; + index3++; + span136[index3] = null; + index3++; + span136[index3] = null; + index3++; + span136[index3] = null; + index3++; + span136[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list136; reference109 = questStep19; obj94.Steps = list131; reference104 = obj94; - ref QuestSequence reference110 = ref span40[3]; + num++; + ref QuestSequence reference110 = ref span128[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - Span span47 = CollectionsMarshal.AsSpan(list137); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.3266226f, -2.281856f, -3.879818f), 635) + index2 = 2; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span137[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.3266226f, -2.281856f, -3.879818f), 635) { Mount = true }; - span47[1] = new QuestStep(EInteractionType.CompleteQuest, 1019476u, new Vector3(77.25635f, 0f, -14.175659f), 635); + num2++; + span137[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019476u, new Vector3(77.25635f, 0f, -14.175659f), 635); obj96.Steps = list137; reference110 = obj96; questRoot13.QuestSequence = list128; @@ -172813,13 +208363,16 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "JerryWester"; + Span span138 = CollectionsMarshal.AsSpan(list138); + index = 0; + span138[index] = "JerryWester"; questRoot14.Author = list138; - num = 3; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span48 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference111 = ref span48[0]; + index = 3; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + Span span139 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference111 = ref span139[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -172827,12 +208380,14 @@ public static class AssemblyQuestLoader num2 = 2; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span49 = CollectionsMarshal.AsSpan(list140); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.3266226f, -2.281856f, -3.879818f), 635) + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.3266226f, -2.281856f, -3.879818f), 635) { Mount = true }; - span49[1] = new QuestStep(EInteractionType.AcceptQuest, 1021167u, new Vector3(-43.961243f, 0f, -15.030151f), 635) + index2++; + span140[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021167u, new Vector3(-43.961243f, 0f, -15.030151f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -172845,88 +208400,125 @@ public static class AssemblyQuestLoader }; obj97.Steps = list140; reference111 = obj97; - ref QuestSequence reference112 = ref span48[1]; + num++; + ref QuestSequence reference112 = ref span139[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - Span span50 = CollectionsMarshal.AsSpan(list141); - ref QuestStep reference113 = ref span50[0]; + index2 = 5; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + ref QuestStep reference113 = ref span141[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1021168u, new Vector3(-160.38757f, -4.5343585f, -149.95044f), 635); - num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span51 = CollectionsMarshal.AsSpan(list142); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list142 = new List(index3); + CollectionsMarshal.SetCount(list142, index3); + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list142; reference113 = questStep20; - ref QuestStep reference114 = ref span50[1]; + num2++; + ref QuestStep reference114 = ref span141[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1021169u, new Vector3(19.485779f, -0.9195468f, 98.5885f), 635); num3 = 6; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span52 = CollectionsMarshal.AsSpan(list143); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span143 = CollectionsMarshal.AsSpan(list143); + index3 = 0; + span143[index3] = null; + index3++; + span143[index3] = null; + index3++; + span143[index3] = null; + index3++; + span143[index3] = null; + index3++; + span143[index3] = null; + index3++; + span143[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list143; reference114 = questStep21; - ref QuestStep reference115 = ref span50[2]; + num2++; + ref QuestStep reference115 = ref span141[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1021171u, new Vector3(79.78931f, -0.19127949f, 56.809326f), 635); - num3 = 6; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - Span span53 = CollectionsMarshal.AsSpan(list144); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list144 = new List(index3); + CollectionsMarshal.SetCount(list144, index3); + Span span144 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span144[num3] = null; + num3++; + span144[num3] = null; + num3++; + span144[num3] = null; + num3++; + span144[num3] = null; + num3++; + span144[num3] = null; + num3++; + span144[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list144; reference115 = questStep22; - ref QuestStep reference116 = ref span50[3]; + num2++; + ref QuestStep reference116 = ref span141[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1021170u, new Vector3(76.21875f, 0f, -12.466675f), 635); num3 = 6; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - Span span54 = CollectionsMarshal.AsSpan(list145); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span145 = CollectionsMarshal.AsSpan(list145); + index3 = 0; + span145[index3] = null; + index3++; + span145[index3] = null; + index3++; + span145[index3] = null; + index3++; + span145[index3] = null; + index3++; + span145[index3] = null; + index3++; + span145[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list145; reference116 = questStep23; - ref QuestStep reference117 = ref span50[4]; + num2++; + ref QuestStep reference117 = ref span141[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1021172u, new Vector3(179.85803f, 13.567484f, -144.15204f), 635); - num3 = 6; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span55 = CollectionsMarshal.AsSpan(list146); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + Span span146 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list146; reference117 = questStep24; obj98.Steps = list141; reference112 = obj98; - ref QuestSequence reference118 = ref span48[2]; + num++; + ref QuestSequence reference118 = ref span139[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -172934,7 +208526,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021167u, new Vector3(-43.961243f, 0f, -15.030151f), 635) + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021167u, new Vector3(-43.961243f, 0f, -15.030151f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -172952,21 +208546,26 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; + Span span148 = CollectionsMarshal.AsSpan(list148); + index = 0; + span148[index] = "JerryWester"; questRoot15.Author = list148; - num = 3; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span56 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference119 = ref span56[0]; + index = 3; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + Span span149 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference119 = ref span149[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023298u, new Vector3(22.354431f, -0.33829167f, 3.7384033f), 635) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023298u, new Vector3(22.354431f, -0.33829167f, 3.7384033f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -172979,7 +208578,8 @@ public static class AssemblyQuestLoader }; obj100.Steps = list150; reference119 = obj100; - ref QuestSequence reference120 = ref span56[1]; + num++; + ref QuestSequence reference120 = ref span149[num]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -172987,7 +208587,9 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 2008813u, new Vector3(143.5415f, 14.206055f, -164.72119f), 635) + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.Interact, 2008813u, new Vector3(143.5415f, 14.206055f, -164.72119f), 635) { AethernetShortcut = new AethernetShortcut { @@ -172997,15 +208599,18 @@ public static class AssemblyQuestLoader }; obj101.Steps = list151; reference120 = obj101; - ref QuestSequence reference121 = ref span56[2]; + num++; + ref QuestSequence reference121 = ref span149[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023638u, new Vector3(152.84961f, 13.097335f, -94.16345f), 635); + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023638u, new Vector3(152.84961f, 13.097335f, -94.16345f), 635); obj102.Steps = list152; reference121 = obj102; questRoot15.QuestSequence = list149; @@ -173015,13 +208620,16 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - CollectionsMarshal.AsSpan(list153)[0] = "JerryWester"; + Span span153 = CollectionsMarshal.AsSpan(list153); + index = 0; + span153[index] = "JerryWester"; questRoot16.Author = list153; - num = 5; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - Span span57 = CollectionsMarshal.AsSpan(list154); - ref QuestSequence reference122 = ref span57[0]; + index = 5; + List list154 = new List(index); + CollectionsMarshal.SetCount(list154, index); + Span span154 = CollectionsMarshal.AsSpan(list154); + num = 0; + ref QuestSequence reference122 = ref span154[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -173029,7 +208637,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019517u, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612) + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019517u, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -173042,18 +208652,22 @@ public static class AssemblyQuestLoader }; obj103.Steps = list155; reference122 = obj103; - ref QuestSequence reference123 = ref span57[1]; + num++; + ref QuestSequence reference123 = ref span154[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1019523u, new Vector3(-623.74304f, 130f, -483.7873f), 612); + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.Interact, 1019523u, new Vector3(-623.74304f, 130f, -483.7873f), 612); obj104.Steps = list156; reference123 = obj104; - ref QuestSequence reference124 = ref span57[2]; + num++; + ref QuestSequence reference124 = ref span154[num]; QuestSequence obj105 = new QuestSequence { Sequence = 2 @@ -173061,7 +208675,9 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list157)[0]; + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + ref QuestStep reference125 = ref span157[index2]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, null, new Vector3(-449.52835f, 105.07213f, -401.3476f), 612) { StopDistance = 0.5f, @@ -173070,34 +208686,42 @@ public static class AssemblyQuestLoader num3 = 1; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - CollectionsMarshal.AsSpan(list158)[0] = 7504u; + Span span158 = CollectionsMarshal.AsSpan(list158); + index3 = 0; + span158[index3] = 7504u; obj106.KillEnemyDataIds = list158; reference125 = obj106; obj105.Steps = list157; reference124 = obj105; - ref QuestSequence reference126 = ref span57[3]; + num++; + ref QuestSequence reference126 = ref span154[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list159)[0]; + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + ref QuestStep reference127 = ref span159[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, null, new Vector3(-232.26196f, 64.93323f, -676.26465f), 612) { StopDistance = 2f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - CollectionsMarshal.AsSpan(list160)[0] = 7505u; + index3 = 1; + List list160 = new List(index3); + CollectionsMarshal.SetCount(list160, index3); + Span span160 = CollectionsMarshal.AsSpan(list160); + num3 = 0; + span160[num3] = 7505u; obj108.KillEnemyDataIds = list160; reference127 = obj108; obj107.Steps = list159; reference126 = obj107; - ref QuestSequence reference128 = ref span57[4]; + num++; + ref QuestSequence reference128 = ref span154[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -173105,9 +208729,11 @@ public static class AssemblyQuestLoader num2 = 2; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span58 = CollectionsMarshal.AsSpan(list161); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612); - span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1019517u, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612) + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612); + index2++; + span161[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019517u, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612) { Mount = false, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens @@ -173125,13 +208751,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -173139,7 +208768,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, SkipConditions = new SkipConditions @@ -173152,18 +208783,22 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1021752u, new Vector3(14.724915f, 118.08588f, -776.82153f), 620); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1021752u, new Vector3(14.724915f, 118.08588f, -776.82153f), 620); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -173171,18 +208806,23 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1021752u, new Vector3(14.724915f, 118.08588f, -776.82153f), 620); + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1021752u, new Vector3(14.724915f, 118.08588f, -776.82153f), 620); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref QuestStep reference5 = ref span6[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Combat, null, new Vector3(656.90076f, 231.05865f, -611.2172f), 620) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -173190,7 +208830,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = new ComplexCombatData + Span span7 = CollectionsMarshal.AsSpan(list7); + int index3 = 0; + span7[index3] = new ComplexCombatData { DataId = 6609u, MinimumKillCount = 2u, @@ -173201,7 +208843,8 @@ public static class AssemblyQuestLoader reference5 = obj5; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -173209,7 +208852,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021752u, new Vector3(14.724915f, 118.08588f, -776.82153f), 620) + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021752u, new Vector3(14.724915f, 118.08588f, -776.82153f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -173222,21 +208867,26 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "JerryWester"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "JerryWester"; questRoot2.Author = list9; - num = 6; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span2 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span2[0]; + index = 6; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span10[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -173249,7 +208899,8 @@ public static class AssemblyQuestLoader }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span2[1]; + num++; + ref QuestSequence reference8 = ref span10[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -173257,21 +208908,27 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1023142u, new Vector3(-642.9083f, 130.25946f, -538.29254f), 612); + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.Interact, 1023142u, new Vector3(-642.9083f, 130.25946f, -538.29254f), 612); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span2[2]; + num++; + ref QuestSequence reference9 = ref span10[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1023143u, new Vector3(-631.0674f, 130.30254f, -465.96478f), 612); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.Interact, 1023143u, new Vector3(-631.0674f, 130.30254f, -465.96478f), 612); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span2[3]; + num++; + ref QuestSequence reference10 = ref span10[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 @@ -173279,36 +208936,44 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - ref QuestStep reference11 = ref CollectionsMarshal.AsSpan(list14)[0]; + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + ref QuestStep reference11 = ref span14[index2]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, 1023147u, new Vector3(-429.4652f, 75.3867f, -124.712036f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span3 = CollectionsMarshal.AsSpan(list15); - span3[0] = 7217u; - span3[1] = 7553u; + index3 = 2; + List list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + Span span15 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span15[num3] = 7217u; + num3++; + span15[num3] = 7553u; obj11.KillEnemyDataIds = list15; reference11 = obj11; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference12 = ref span2[4]; + num++; + ref QuestSequence reference12 = ref span10[num]; QuestSequence obj12 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1023148u, new Vector3(-429.89246f, 74.88393f, -118.30322f), 612) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.Interact, 1023148u, new Vector3(-429.89246f, 74.88393f, -118.30322f), 612) { StopDistance = 5f }; obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference13 = ref span2[5]; + num++; + ref QuestSequence reference13 = ref span10[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -173316,7 +208981,9 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023147u, new Vector3(-429.4652f, 75.3867f, -124.712036f), 612) + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023147u, new Vector3(-429.4652f, 75.3867f, -124.712036f), 612) { StopDistance = 7f }; @@ -173329,21 +208996,26 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "liza"; + Span span18 = CollectionsMarshal.AsSpan(list18); + index = 0; + span18[index] = "liza"; questRoot3.Author = list18; - num = 4; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span4 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference14 = ref span4[0]; + index = 4; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + Span span19 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference14 = ref span19[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023754u, new Vector3(-429.4652f, 75.3867f, -124.712036f), 612) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023754u, new Vector3(-429.4652f, 75.3867f, -124.712036f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -173357,7 +209029,8 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span4[1]; + num++; + ref QuestSequence reference15 = ref span19[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -173365,66 +209038,91 @@ public static class AssemblyQuestLoader num2 = 3; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span5 = CollectionsMarshal.AsSpan(list21); - ref QuestStep reference16 = ref span5[0]; + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + ref QuestStep reference16 = ref span21[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2008756u, new Vector3(-417.8073f, 76.8291f, -98.46649f), 612); num3 = 6; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - Span span6 = CollectionsMarshal.AsSpan(list22); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span22 = CollectionsMarshal.AsSpan(list22); + index3 = 0; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list22; reference16 = questStep; - ref QuestStep reference17 = ref span5[1]; + index2++; + ref QuestStep reference17 = ref span21[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2008758u, new Vector3(-411.88678f, 71.82422f, -85.46582f), 612); - num3 = 6; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span7 = CollectionsMarshal.AsSpan(list23); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + Span span23 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list23; reference17 = questStep2; - ref QuestStep reference18 = ref span5[2]; + index2++; + ref QuestStep reference18 = ref span21[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2008757u, new Vector3(-423.6057f, 66.056274f, -33.463074f), 612); num3 = 6; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - Span span8 = CollectionsMarshal.AsSpan(list24); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span24 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list24; reference18 = questStep3; obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference19 = ref span4[2]; + num++; + ref QuestSequence reference19 = ref span19[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 2008759u, new Vector3(-426.50494f, 75.028564f, -121.90442f), 612) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.Interact, 2008759u, new Vector3(-426.50494f, 75.028564f, -121.90442f), 612) { Fly = true }; obj16.Steps = list25; reference19 = obj16; - ref QuestSequence reference20 = ref span4[3]; + num++; + ref QuestSequence reference20 = ref span19[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -173432,7 +209130,9 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, NextQuestId = new QuestId(2663) @@ -173446,24 +209146,30 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "liza"; + Span span27 = CollectionsMarshal.AsSpan(list27); + index = 0; + span27[index] = "liza"; questRoot4.Author = list27; - num = 6; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span9 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference21 = ref span9[0]; + index = 6; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + Span span28 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference21 = ref span28[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612); + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612); obj18.Steps = list29; reference21 = obj18; - ref QuestSequence reference22 = ref span9[1]; + num++; + ref QuestSequence reference22 = ref span28[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -173471,24 +209177,30 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1023142u, new Vector3(-642.9083f, 130.25946f, -538.29254f), 612) + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new QuestStep(EInteractionType.Interact, 1023142u, new Vector3(-642.9083f, 130.25946f, -538.29254f), 612) { StopDistance = 1f }; obj19.Steps = list30; reference22 = obj19; - ref QuestSequence reference23 = ref span9[2]; + num++; + ref QuestSequence reference23 = ref span28[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.Interact, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612); obj20.Steps = list31; reference23 = obj20; - ref QuestSequence reference24 = ref span9[3]; + num++; + ref QuestSequence reference24 = ref span28[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 @@ -173496,27 +209208,33 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1023153u, new Vector3(-680.10986f, 120.11875f, -241.13837f), 612) + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.Interact, 1023153u, new Vector3(-680.10986f, 120.11875f, -241.13837f), 612) { Fly = true }; obj21.Steps = list32; reference24 = obj21; - ref QuestSequence reference25 = ref span9[4]; + num++; + ref QuestSequence reference25 = ref span28[num]; QuestSequence obj22 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1023154u, new Vector3(-736.56824f, 110.02372f, -176.13495f), 612) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.Interact, 1023154u, new Vector3(-736.56824f, 110.02372f, -176.13495f), 612) { Fly = true }; obj22.Steps = list33; reference25 = obj22; - ref QuestSequence reference26 = ref span9[5]; + num++; + ref QuestSequence reference26 = ref span28[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -173524,7 +209242,9 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -173539,24 +209259,30 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "liza"; + Span span35 = CollectionsMarshal.AsSpan(list35); + index = 0; + span35[index] = "liza"; questRoot5.Author = list35; - num = 8; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span10 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference27 = ref span10[0]; + index = 8; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + Span span36 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference27 = ref span36[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612); + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612); obj24.Steps = list37; reference27 = obj24; - ref QuestSequence reference28 = ref span10[1]; + num++; + ref QuestSequence reference28 = ref span36[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -173564,24 +209290,30 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1023144u, new Vector3(-631.7998f, 130.39117f, -467.67383f), 612) + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.Interact, 1023144u, new Vector3(-631.7998f, 130.39117f, -467.67383f), 612) { Fly = true }; obj25.Steps = list38; reference28 = obj25; - ref QuestSequence reference29 = ref span10[2]; + num++; + ref QuestSequence reference29 = ref span36[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 2008786u, new Vector3(-630.45703f, 130.3883f, -466.75824f), 612); + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.Interact, 2008786u, new Vector3(-630.45703f, 130.3883f, -466.75824f), 612); obj26.Steps = list39; reference29 = obj26; - ref QuestSequence reference30 = ref span10[3]; + num++; + ref QuestSequence reference30 = ref span36[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 @@ -173589,24 +209321,30 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1023144u, new Vector3(-631.7998f, 130.39117f, -467.67383f), 612); + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = new QuestStep(EInteractionType.Interact, 1023144u, new Vector3(-631.7998f, 130.39117f, -467.67383f), 612); obj27.Steps = list40; reference30 = obj27; - ref QuestSequence reference31 = ref span10[4]; + num++; + ref QuestSequence reference31 = ref span36[num]; QuestSequence obj28 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1023157u, new Vector3(-427.26788f, 74.15582f, -103.56299f), 612) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.Interact, 1023157u, new Vector3(-427.26788f, 74.15582f, -103.56299f), 612) { Fly = true }; obj28.Steps = list41; reference31 = obj28; - ref QuestSequence reference32 = ref span10[5]; + num++; + ref QuestSequence reference32 = ref span36[num]; QuestSequence obj29 = new QuestSequence { Sequence = 5 @@ -173614,35 +209352,42 @@ public static class AssemblyQuestLoader num2 = 2; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span11 = CollectionsMarshal.AsSpan(list42); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-397.5847f, 73.92399f, -104.41468f), 612) + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-397.5847f, 73.92399f, -104.41468f), 612) { Fly = true }; - span11[1] = new QuestStep(EInteractionType.Interact, 2008761u, new Vector3(-398.30627f, 74.23511f, -106.70636f), 612); + index2++; + span42[index2] = new QuestStep(EInteractionType.Interact, 2008761u, new Vector3(-398.30627f, 74.23511f, -106.70636f), 612); obj29.Steps = list42; reference32 = obj29; - ref QuestSequence reference33 = ref span10[6]; + num++; + ref QuestSequence reference33 = ref span36[num]; QuestSequence obj30 = new QuestSequence { Sequence = 6 }; - num2 = 3; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span12 = CollectionsMarshal.AsSpan(list43); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-391.48306f, 73.52123f, -100.069016f), 612) + index2 = 3; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-391.48306f, 73.52123f, -100.069016f), 612) { Mount = true }; - span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.38403f, 62.880836f, -28.616083f), 612) + num2++; + span43[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.38403f, 62.880836f, -28.616083f), 612) { Fly = true }; - span12[2] = new QuestStep(EInteractionType.Interact, 1023158u, new Vector3(-426.71857f, 63.23476f, -28.82434f), 612); + num2++; + span43[num2] = new QuestStep(EInteractionType.Interact, 1023158u, new Vector3(-426.71857f, 63.23476f, -28.82434f), 612); obj30.Steps = list43; reference33 = obj30; - ref QuestSequence reference34 = ref span10[7]; + num++; + ref QuestSequence reference34 = ref span36[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -173650,7 +209395,9 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -173665,24 +209412,30 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; + Span span45 = CollectionsMarshal.AsSpan(list45); + index = 0; + span45[index] = "liza"; questRoot6.Author = list45; - num = 3; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span13 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference35 = ref span13[0]; + index = 3; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + Span span46 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference35 = ref span46[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022958u, new Vector3(25.253662f, 7.9999995f, 159.47205f), 628); + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022958u, new Vector3(25.253662f, 7.9999995f, 159.47205f), 628); obj32.Steps = list47; reference35 = obj32; - ref QuestSequence reference36 = ref span13[1]; + num++; + ref QuestSequence reference36 = ref span46[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 @@ -173690,8 +209443,9 @@ public static class AssemblyQuestLoader num2 = 6; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span14 = CollectionsMarshal.AsSpan(list48); - ref QuestStep reference37 = ref span14[0]; + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + ref QuestStep reference37 = ref span48[index2]; QuestStep obj34 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-59.62348f, 7.999999f, -59.427254f), 628) { RestartNavigationIfCancelled = false, @@ -173701,19 +209455,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeShiokazeHostelry } }; - num3 = 6; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - Span span15 = CollectionsMarshal.AsSpan(list49); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list49 = new List(index3); + CollectionsMarshal.SetCount(list49, index3); + Span span49 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span49[num3] = null; + num3++; + span49[num3] = null; + num3++; + span49[num3] = null; + num3++; + span49[num3] = null; + num3++; + span49[num3] = null; + num3++; + span49[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj34.CompletionQuestVariablesFlags = list49; reference37 = obj34; - span14[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-74.28216f, 18f, -164.39622f), 628) + index2++; + span48[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-74.28216f, 18f, -164.39622f), 628) { AethernetShortcut = new AethernetShortcut { @@ -173727,8 +209488,10 @@ public static class AssemblyQuestLoader Type = EJumpType.RepeatedJumps } }; - span14[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-37.85175f, 20.196363f, -163.43034f), 628); - span14[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-37.806847f, 21.332985f, -161.45049f), 628) + index2++; + span48[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-37.85175f, 20.196363f, -163.43034f), 628); + index2++; + span48[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-37.806847f, 21.332985f, -161.45049f), 628) { StopDistance = 1f, JumpDestination = new JumpDestination @@ -173736,7 +209499,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-31.778416f, 23.141376f, -159.92921f) } }; - span14[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(-32.529102f, 23.164635f, -159.86409f), 628) + index2++; + span48[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-32.529102f, 23.164635f, -159.86409f), 628) { StopDistance = 0.5f, JumpDestination = new JumpDestination @@ -173744,7 +209508,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-28.255697f, 24.146992f, -159.81477f) } }; - ref QuestStep reference38 = ref span14[5]; + index2++; + ref QuestStep reference38 = ref span48[index2]; QuestStep obj35 = new QuestStep(EInteractionType.Jump, null, new Vector3(-28.255697f, 24.146992f, -159.81477f), 628) { StopDistance = 0.5f, @@ -173758,26 +209523,35 @@ public static class AssemblyQuestLoader num3 = 6; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - Span span16 = CollectionsMarshal.AsSpan(list50); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span50 = CollectionsMarshal.AsSpan(list50); + index3 = 0; + span50[index3] = null; + index3++; + span50[index3] = null; + index3++; + span50[index3] = null; + index3++; + span50[index3] = null; + index3++; + span50[index3] = null; + index3++; + span50[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj35.CompletionQuestVariablesFlags = list50; reference38 = obj35; obj33.Steps = list48; reference36 = obj33; - ref QuestSequence reference39 = ref span13[2]; + num++; + ref QuestSequence reference39 = ref span46[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022958u, new Vector3(25.253662f, 7.9999995f, 159.47205f), 628) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022958u, new Vector3(25.253662f, 7.9999995f, 159.47205f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -173795,13 +209569,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + Span span52 = CollectionsMarshal.AsSpan(list52); + index = 0; + span52[index] = "liza"; questRoot7.Author = list52; - num = 4; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span17 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference40 = ref span17[0]; + index = 4; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + Span span53 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference40 = ref span53[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -173809,21 +209586,27 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023304u, new Vector3(2.7008667f, 2.0507723E-06f, -52.84204f), 628); + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023304u, new Vector3(2.7008667f, 2.0507723E-06f, -52.84204f), 628); obj37.Steps = list54; reference40 = obj37; - ref QuestSequence reference41 = ref span17[1]; + num++; + ref QuestSequence reference41 = ref span53[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1023306u, new Vector3(-80.338745f, -6.9700804f, -49.118835f), 628); + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.Interact, 1023306u, new Vector3(-80.338745f, -6.9700804f, -49.118835f), 628); obj38.Steps = list55; reference41 = obj38; - ref QuestSequence reference42 = ref span17[2]; + num++; + ref QuestSequence reference42 = ref span53[num]; QuestSequence obj39 = new QuestSequence { Sequence = 2 @@ -173831,21 +209614,26 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.UseItem, 1023305u, new Vector3(4.409851f, 2.100081E-06f, -52.903076f), 628) + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.UseItem, 1023305u, new Vector3(4.409851f, 2.100081E-06f, -52.903076f), 628) { ItemId = 2002339u }; obj39.Steps = list56; reference42 = obj39; - ref QuestSequence reference43 = ref span17[3]; + num++; + ref QuestSequence reference43 = ref span53[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023304u, new Vector3(2.7008667f, 2.0507723E-06f, -52.84204f), 628); + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023304u, new Vector3(2.7008667f, 2.0507723E-06f, -52.84204f), 628); obj40.Steps = list57; reference43 = obj40; questRoot7.QuestSequence = list53; @@ -173855,13 +209643,16 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "JerryWester"; + Span span58 = CollectionsMarshal.AsSpan(list58); + index = 0; + span58[index] = "JerryWester"; questRoot8.Author = list58; - num = 4; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span18 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference44 = ref span18[0]; + index = 4; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + Span span59 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference44 = ref span59[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -173869,18 +209660,23 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019168u, new Vector3(501.33508f, 34.0062f, 781.70435f), 613); + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019168u, new Vector3(501.33508f, 34.0062f, 781.70435f), 613); obj41.Steps = list60; reference44 = obj41; - ref QuestSequence reference45 = ref span18[1]; + num++; + ref QuestSequence reference45 = ref span59[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1019154u, new Vector3(829.1294f, 5.9230084f, 859.739f), 613) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.Interact, 1019154u, new Vector3(829.1294f, 5.9230084f, 859.739f), 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -173891,7 +209687,8 @@ public static class AssemblyQuestLoader }; obj42.Steps = list61; reference45 = obj42; - ref QuestSequence reference46 = ref span18[2]; + num++; + ref QuestSequence reference46 = ref span59[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -173899,31 +209696,39 @@ public static class AssemblyQuestLoader num2 = 3; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span19 = CollectionsMarshal.AsSpan(list62); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(595.4312f, -0.26869023f, 800.52985f), 613); - span19[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(459.92212f, -0.19133466f, 672.5903f), 613); - ref QuestStep reference47 = ref span19[2]; + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(595.4312f, -0.26869023f, 800.52985f), 613); + index2++; + span62[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(459.92212f, -0.19133466f, 672.5903f), 613); + index2++; + ref QuestStep reference47 = ref span62[index2]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, 1022745u, new Vector3(288.6853f, -0.5f, 393.78955f), 613) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - CollectionsMarshal.AsSpan(list63)[0] = 7497u; + index3 = 1; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + Span span63 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span63[num3] = 7497u; obj44.KillEnemyDataIds = list63; reference47 = obj44; obj43.Steps = list62; reference46 = obj43; - ref QuestSequence reference48 = ref span18[3]; + num++; + ref QuestSequence reference48 = ref span59[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019154u, new Vector3(829.1294f, 5.9230084f, 859.739f), 613) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019154u, new Vector3(829.1294f, 5.9230084f, 859.739f), 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -173941,13 +209746,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "JerryWester"; + Span span65 = CollectionsMarshal.AsSpan(list65); + index = 0; + span65[index] = "JerryWester"; questRoot9.Author = list65; - num = 4; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span20 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference49 = ref span20[0]; + index = 4; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + Span span66 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference49 = ref span66[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -173955,7 +209763,9 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021509u, new Vector3(107.80493f, 0.80715245f, -574.548f), 613) + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021509u, new Vector3(107.80493f, 0.80715245f, -574.548f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -173968,18 +209778,22 @@ public static class AssemblyQuestLoader }; obj46.Steps = list67; reference49 = obj46; - ref QuestSequence reference50 = ref span20[1]; + num++; + ref QuestSequence reference50 = ref span66[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 2008475u, new Vector3(-103.01367f, 2.2124634f, -856.199f), 613); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.Interact, 2008475u, new Vector3(-103.01367f, 2.2124634f, -856.199f), 613); obj47.Steps = list68; reference50 = obj47; - ref QuestSequence reference51 = ref span20[2]; + num++; + ref QuestSequence reference51 = ref span66[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -173987,18 +209801,23 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1022401u, new Vector3(-158.89221f, -0.5f, -898.0087f), 613); + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.Interact, 1022401u, new Vector3(-158.89221f, -0.5f, -898.0087f), 613); obj48.Steps = list69; reference51 = obj48; - ref QuestSequence reference52 = ref span20[3]; + num++; + ref QuestSequence reference52 = ref span66[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021509u, new Vector3(107.80493f, 0.80715245f, -574.548f), 613) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021509u, new Vector3(107.80493f, 0.80715245f, -574.548f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -174011,13 +209830,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "JerryWester"; + Span span71 = CollectionsMarshal.AsSpan(list71); + index = 0; + span71[index] = "JerryWester"; questRoot10.Author = list71; - num = 4; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span21 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference53 = ref span21[0]; + index = 4; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + Span span72 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference53 = ref span72[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -174025,7 +209847,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021517u, new Vector3(85.09949f, 41.112656f, -717.89124f), 613) + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021517u, new Vector3(85.09949f, 41.112656f, -717.89124f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -174038,18 +209862,22 @@ public static class AssemblyQuestLoader }; obj50.Steps = list73; reference53 = obj50; - ref QuestSequence reference54 = ref span21[1]; + num++; + ref QuestSequence reference54 = ref span72[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1021513u, new Vector3(41.000854f, 21.22528f, -634.0276f), 613); + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.Interact, 1021513u, new Vector3(41.000854f, 21.22528f, -634.0276f), 613); obj51.Steps = list74; reference54 = obj51; - ref QuestSequence reference55 = ref span21[2]; + num++; + ref QuestSequence reference55 = ref span72[num]; QuestSequence obj52 = new QuestSequence { Sequence = 2 @@ -174057,20 +209885,25 @@ public static class AssemblyQuestLoader num2 = 2; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span22 = CollectionsMarshal.AsSpan(list75); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(97.741745f, 0.95900655f, -790.4652f), 613); - span22[1] = new QuestStep(EInteractionType.Interact, 1022959u, new Vector3(88.36499f, 5.006782f, -862.3331f), 613); + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(97.741745f, 0.95900655f, -790.4652f), 613); + index2++; + span75[index2] = new QuestStep(EInteractionType.Interact, 1022959u, new Vector3(88.36499f, 5.006782f, -862.3331f), 613); obj52.Steps = list75; reference55 = obj52; - ref QuestSequence reference56 = ref span21[3]; + num++; + ref QuestSequence reference56 = ref span72[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021517u, new Vector3(85.09949f, 41.112656f, -717.89124f), 613) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021517u, new Vector3(85.09949f, 41.112656f, -717.89124f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -174083,13 +209916,16 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "JerryWester"; + Span span77 = CollectionsMarshal.AsSpan(list77); + index = 0; + span77[index] = "JerryWester"; questRoot11.Author = list77; - num = 5; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span23 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference57 = ref span23[0]; + index = 5; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + Span span78 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference57 = ref span78[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -174097,7 +209933,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022102u, new Vector3(97.8866f, 2.096308f, -617.79205f), 613) + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022102u, new Vector3(97.8866f, 2.096308f, -617.79205f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -174110,18 +209948,22 @@ public static class AssemblyQuestLoader }; obj54.Steps = list79; reference57 = obj54; - ref QuestSequence reference58 = ref span23[1]; + num++; + ref QuestSequence reference58 = ref span78[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1022103u, new Vector3(-47.135193f, 2.8637304f, -636.286f), 613); + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.Interact, 1022103u, new Vector3(-47.135193f, 2.8637304f, -636.286f), 613); obj55.Steps = list80; reference58 = obj55; - ref QuestSequence reference59 = ref span23[2]; + num++; + ref QuestSequence reference59 = ref span78[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -174129,7 +209971,9 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1022122u, new Vector3(134.66089f, 12.000001f, 69.047f), 628) + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.Interact, 1022122u, new Vector3(134.66089f, 12.000001f, 69.047f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -174140,15 +209984,18 @@ public static class AssemblyQuestLoader }; obj56.Steps = list81; reference59 = obj56; - ref QuestSequence reference60 = ref span23[3]; + num++; + ref QuestSequence reference60 = ref span78[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1019049u, new Vector3(-130.87665f, -5.000044f, 140.82544f), 628) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.Interact, 1019049u, new Vector3(-130.87665f, -5.000044f, 140.82544f), 628) { AethernetShortcut = new AethernetShortcut { @@ -174158,7 +210005,8 @@ public static class AssemblyQuestLoader }; obj57.Steps = list82; reference60 = obj57; - ref QuestSequence reference61 = ref span23[4]; + num++; + ref QuestSequence reference61 = ref span78[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -174166,7 +210014,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022117u, new Vector3(-49.515564f, 2.6587384f, -636.56067f), 613) + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022117u, new Vector3(-49.515564f, 2.6587384f, -636.56067f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -174179,24 +210029,30 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "JerryWester"; + Span span84 = CollectionsMarshal.AsSpan(list84); + index = 0; + span84[index] = "JerryWester"; questRoot12.Author = list84; - num = 5; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span24 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference62 = ref span24[0]; + index = 5; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference62 = ref span85[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023357u, new Vector3(565.0873f, -62.272896f, -147.84473f), 613); + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023357u, new Vector3(565.0873f, -62.272896f, -147.84473f), 613); obj59.Steps = list86; reference62 = obj59; - ref QuestSequence reference63 = ref span24[1]; + num++; + ref QuestSequence reference63 = ref span85[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -174204,19 +210060,23 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1023358u, new Vector3(608.5145f, -3.4784377f, -92.82062f), 613); + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.Interact, 1023358u, new Vector3(608.5145f, -3.4784377f, -92.82062f), 613); obj60.Steps = list87; reference63 = obj60; - ref QuestSequence reference64 = ref span24[2]; + num++; + ref QuestSequence reference64 = ref span85[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span25 = CollectionsMarshal.AsSpan(list88); - span25[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(611.58606f, -1.6943853f, -91.26402f), 613) + index2 = 2; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(611.58606f, -1.6943853f, -91.26402f), 613) { StopDistance = 0.25f, Mount = false, @@ -174225,7 +210085,8 @@ public static class AssemblyQuestLoader Position = new Vector3(617.04565f, -17.818226f, -108.994415f) } }; - span25[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(617.01825f, -18.570948f, -114.45003f), 613) + num2++; + span88[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(617.01825f, -18.570948f, -114.45003f), 613) { StopDistance = 0.25f, Mount = false, @@ -174236,7 +210097,8 @@ public static class AssemblyQuestLoader }; obj61.Steps = list88; reference64 = obj61; - ref QuestSequence reference65 = ref span24[3]; + num++; + ref QuestSequence reference65 = ref span85[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -174244,8 +210106,9 @@ public static class AssemblyQuestLoader num2 = 3; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span26 = CollectionsMarshal.AsSpan(list89); - span26[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(617.17053f, -29.302427f, -130.22484f), 613) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(617.17053f, -29.302427f, -130.22484f), 613) { StopDistance = 0.25f, Mount = false, @@ -174254,7 +210117,8 @@ public static class AssemblyQuestLoader Position = new Vector3(604.2836f, -34.756268f, -136.64783f) } }; - span26[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(601.5953f, -36.643044f, -144.1365f), 613) + index2++; + span89[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(601.5953f, -36.643044f, -144.1365f), 613) { StopDistance = 0.25f, Mount = false, @@ -174263,23 +210127,27 @@ public static class AssemblyQuestLoader Position = new Vector3(598.6192f, -43.845043f, -154.23668f) } }; - span26[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(594.64703f, -43.869747f, -156.01822f), 613); + index2++; + span89[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(594.64703f, -43.869747f, -156.01822f), 613); obj62.Steps = list89; reference65 = obj62; - ref QuestSequence reference66 = ref span24[4]; + num++; + ref QuestSequence reference66 = ref span85[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span27 = CollectionsMarshal.AsSpan(list90); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(570.09125f, -62.583626f, -145.46727f), 613) + index2 = 2; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(570.09125f, -62.583626f, -145.46727f), 613) { DisableNavmesh = true }; - span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1023358u, new Vector3(608.5145f, -3.4784377f, -92.82062f), 613); + num2++; + span90[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023358u, new Vector3(608.5145f, -3.4784377f, -92.82062f), 613); obj63.Steps = list90; reference66 = obj63; questRoot12.QuestSequence = list85; @@ -174293,13 +210161,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -174307,37 +210178,44 @@ public static class AssemblyQuestLoader int num2 = 3; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span2 = CollectionsMarshal.AsSpan(list3); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + Span span3 = CollectionsMarshal.AsSpan(list3); + int num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span2[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) + num3++; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) { RestartNavigationIfCancelled = false }; - span2[2] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) { Fly = true }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1023281u, new Vector3(-9.597961f, -196.98103f, -82.383545f), 613) + num3 = 1; + List list4 = new List(num3); + CollectionsMarshal.SetCount(list4, num3); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1023281u, new Vector3(-9.597961f, -196.98103f, -82.383545f), 613) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -174345,7 +210223,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) + Span span5 = CollectionsMarshal.AsSpan(list5); + num3 = 0; + span5[num3] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) { Fly = true, NextQuestId = new QuestId(2705) @@ -174359,24 +210239,30 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; + Span span6 = CollectionsMarshal.AsSpan(list6); + index = 0; + span6[index] = "liza"; questRoot2.Author = list6; - num = 4; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span3 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span3[0]; + index = 4; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + Span span7 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span7[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); + num3 = 1; + List list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span3[1]; + num++; + ref QuestSequence reference5 = ref span7[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -174384,16 +210270,20 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list9)[0]; + Span span9 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + ref QuestStep reference6 = ref span9[num3]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1023282u, new Vector3(-32.791687f, 0.5718597f, -554.7723f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - int num3 = 1; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = new DialogueChoice + int num4 = 1; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + Span span10 = CollectionsMarshal.AsSpan(list10); + int index2 = 0; + span10[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ309_02705_Q1_100_091"), @@ -174403,23 +210293,28 @@ public static class AssemblyQuestLoader reference6 = obj6; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference7 = ref span3[2]; + num++; + ref QuestSequence reference7 = ref span7[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + num3 = 1; + List list11 = new List(num3); + CollectionsMarshal.SetCount(list11, num3); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference8 = ref span11[num2]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 1023285u, new Vector3(119.493286f, 5.006782f, -862.6078f), 613) { Fly = true }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span12[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ309_02705_Q2_100_151"), @@ -174429,7 +210324,8 @@ public static class AssemblyQuestLoader reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference9 = ref span3[3]; + num++; + ref QuestSequence reference9 = ref span7[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -174437,17 +210333,20 @@ public static class AssemblyQuestLoader num2 = 3; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span4 = CollectionsMarshal.AsSpan(list13); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + Span span13 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span13[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) + num3++; + span13[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) { RestartNavigationIfCancelled = false }; - span4[2] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) + num3++; + span13[num3] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) { Fly = true, NextQuestId = new QuestId(2706) @@ -174461,24 +210360,30 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "liza"; + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = "liza"; questRoot3.Author = list14; - num = 7; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference10 = ref span5[0]; + index = 7; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference10 = ref span15[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span5[1]; + num++; + ref QuestSequence reference11 = ref span15[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -174486,16 +210391,20 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; + Span span17 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + ref QuestStep reference12 = ref span17[num3]; QuestStep obj12 = new QuestStep(EInteractionType.Interact, 1023287u, new Vector3(422.11023f, -98.96063f, -223.22424f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new DialogueChoice + num4 = 1; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ310_02706_Q1_000_100"), @@ -174505,30 +210414,35 @@ public static class AssemblyQuestLoader reference12 = obj12; obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference13 = ref span5[2]; + num++; + ref QuestSequence reference13 = ref span15[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + num3 = 1; + List list19 = new List(num3); + CollectionsMarshal.SetCount(list19, num3); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + ref QuestStep reference14 = ref span19[num2]; QuestStep obj14 = new QuestStep(EInteractionType.Interact, 1023288u, new Vector3(350.515f, -120.581055f, -316.76202f), 613) { Fly = true }; - num3 = 2; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span6 = CollectionsMarshal.AsSpan(list20); - span6[0] = new DialogueChoice + index2 = 2; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num4 = 0; + span20[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ310_02706_Q2_000_160"), Answer = new ExcelRef("TEXT_STMBDZ310_02706_A2_000_161") }; - span6[1] = new DialogueChoice + num4++; + span20[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ310_02706_Q3_000_200"), @@ -174538,7 +210452,8 @@ public static class AssemblyQuestLoader reference14 = obj14; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference15 = ref span5[3]; + num++; + ref QuestSequence reference15 = ref span15[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 @@ -174546,44 +210461,53 @@ public static class AssemblyQuestLoader num2 = 3; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span7 = CollectionsMarshal.AsSpan(list21); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + Span span21 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span21[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { Mount = true, RestartNavigationIfCancelled = false }; - span7[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.4342f, -162.28119f, 115.91883f), 613) + num3++; + span21[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.4342f, -162.28119f, 115.91883f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - span7[2] = new QuestStep(EInteractionType.Interact, 1023290u, new Vector3(222.33911f, -165.19557f, 137.89575f), 613); + num3++; + span21[num3] = new QuestStep(EInteractionType.Interact, 1023290u, new Vector3(222.33911f, -165.19557f, 137.89575f), 613); obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference16 = ref span5[4]; + num++; + ref QuestSequence reference16 = ref span15[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list22)[0]; + num3 = 1; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref QuestStep reference17 = ref span22[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, 2008809u, new Vector3(163.43933f, -172.01501f, 262.0736f), 613) { Fly = true, ItemId = 2002332u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = 7824u; + num4 = 1; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = 7824u; obj17.KillEnemyDataIds = list23; reference17 = obj17; obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference18 = ref span5[5]; + num++; + ref QuestSequence reference18 = ref span15[num]; QuestSequence obj18 = new QuestSequence { Sequence = 5 @@ -174591,37 +210515,44 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1023290u, new Vector3(222.33911f, -165.19557f, 137.89575f), 613) + Span span24 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span24[num3] = new QuestStep(EInteractionType.Interact, 1023290u, new Vector3(222.33911f, -165.19557f, 137.89575f), 613) { Fly = true }; obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference19 = ref span5[6]; + num++; + ref QuestSequence reference19 = ref span15[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - Span span8 = CollectionsMarshal.AsSpan(list25); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(200.64441f, -165.55836f, 116.97804f), 613) + num3 = 4; + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(200.64441f, -165.55836f, 116.97804f), 613) { Mount = true, RestartNavigationIfCancelled = false }; - span8[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(163.43794f, -133.31677f, 79.0077f), 613) + num2++; + span25[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(163.43794f, -133.31677f, 79.0077f), 613) { DelaySecondsAtStart = 2f, DisableNavmesh = true }; - span8[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-96.41638f, -199.01863f, -68.85027f), 613) + num2++; + span25[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-96.41638f, -199.01863f, -68.85027f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - span8[3] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) + num2++; + span25[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) { NextQuestId = new QuestId(2707) }; @@ -174634,13 +210565,16 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "liza"; + Span span26 = CollectionsMarshal.AsSpan(list26); + index = 0; + span26[index] = "liza"; questRoot4.Author = list26; - num = 3; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span9 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span9[0]; + index = 3; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + Span span27 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span27[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -174648,24 +210582,30 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span28[num3] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); obj20.Steps = list28; reference20 = obj20; - ref QuestSequence reference21 = ref span9[1]; + num++; + ref QuestSequence reference21 = ref span27[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1023281u, new Vector3(-9.597961f, -196.98103f, -82.383545f), 613) + num3 = 1; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.Interact, 1023281u, new Vector3(-9.597961f, -196.98103f, -82.383545f), 613) { Fly = true }; obj21.Steps = list29; reference21 = obj21; - ref QuestSequence reference22 = ref span9[2]; + num++; + ref QuestSequence reference22 = ref span27[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -174673,15 +210613,19 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list30)[0]; + Span span30 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + ref QuestStep reference23 = ref span30[num3]; QuestStep obj23 = new QuestStep(EInteractionType.CompleteQuest, 1023291u, new Vector3(8.46875f, -198.34206f, -157.15265f), 613) { Fly = true }; - num3 = 1; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = new DialogueChoice + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + span31[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ311_02707_Q1_000_160"), @@ -174699,21 +210643,26 @@ public static class AssemblyQuestLoader num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - CollectionsMarshal.AsSpan(list32)[0] = "JerryWester"; + Span span32 = CollectionsMarshal.AsSpan(list32); + index = 0; + span32[index] = "JerryWester"; questRoot5.Author = list32; - num = 3; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - Span span10 = CollectionsMarshal.AsSpan(list33); - ref QuestSequence reference24 = ref span10[0]; + index = 3; + List list33 = new List(index); + CollectionsMarshal.SetCount(list33, index); + Span span33 = CollectionsMarshal.AsSpan(list33); + num = 0; + ref QuestSequence reference24 = ref span33[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019314u, new Vector3(421.77454f, -0.3000138f, -293.9651f), 614) + num3 = 1; + List list34 = new List(num3); + CollectionsMarshal.SetCount(list34, num3); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019314u, new Vector3(421.77454f, -0.3000138f, -293.9651f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -174726,7 +210675,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list34; reference24 = obj24; - ref QuestSequence reference25 = ref span10[1]; + num++; + ref QuestSequence reference25 = ref span33[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -174734,125 +210684,171 @@ public static class AssemblyQuestLoader num2 = 7; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span11 = CollectionsMarshal.AsSpan(list35); - ref QuestStep reference26 = ref span11[0]; + Span span35 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + ref QuestStep reference26 = ref span35[num3]; QuestStep obj26 = new QuestStep(EInteractionType.UseItem, 2008461u, new Vector3(474.2351f, 28.824219f, -212.23773f), 614) { ItemId = 2002241u }; - num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span12 = CollectionsMarshal.AsSpan(list36); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list36 = new List(num4); + CollectionsMarshal.SetCount(list36, num4); + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = null; + index2++; + span36[index2] = null; + index2++; + span36[index2] = null; + index2++; + span36[index2] = null; + index2++; + span36[index2] = null; + index2++; + span36[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj26.CompletionQuestVariablesFlags = list36; reference26 = obj26; - ref QuestStep reference27 = ref span11[1]; + num3++; + ref QuestStep reference27 = ref span35[num3]; QuestStep obj27 = new QuestStep(EInteractionType.UseItem, 2008462u, new Vector3(569.6649f, 43.930664f, -145.22015f), 614) { ItemId = 2002241u }; - num3 = 6; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - Span span13 = CollectionsMarshal.AsSpan(list37); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num4 = 0; + span37[num4] = null; + num4++; + span37[num4] = null; + num4++; + span37[num4] = null; + num4++; + span37[num4] = null; + num4++; + span37[num4] = null; + num4++; + span37[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj27.CompletionQuestVariablesFlags = list37; reference27 = obj27; - ref QuestStep reference28 = ref span11[2]; + num3++; + ref QuestStep reference28 = ref span35[num3]; QuestStep obj28 = new QuestStep(EInteractionType.UseItem, 2008463u, new Vector3(531.18164f, 85.40466f, -303.33417f), 614) { ItemId = 2002241u }; - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span14 = CollectionsMarshal.AsSpan(list38); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list38 = new List(num4); + CollectionsMarshal.SetCount(list38, num4); + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = null; + index2++; + span38[index2] = null; + index2++; + span38[index2] = null; + index2++; + span38[index2] = null; + index2++; + span38[index2] = null; + index2++; + span38[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj28.CompletionQuestVariablesFlags = list38; reference28 = obj28; - ref QuestStep reference29 = ref span11[3]; + num3++; + ref QuestStep reference29 = ref span35[num3]; QuestStep obj29 = new QuestStep(EInteractionType.UseItem, 2008464u, new Vector3(537.8042f, 61.57019f, -10.269409f), 614) { ItemId = 2002241u }; - num3 = 6; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - Span span15 = CollectionsMarshal.AsSpan(list39); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num4 = 0; + span39[num4] = null; + num4++; + span39[num4] = null; + num4++; + span39[num4] = null; + num4++; + span39[num4] = null; + num4++; + span39[num4] = null; + num4++; + span39[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj29.CompletionQuestVariablesFlags = list39; reference29 = obj29; - ref QuestStep reference30 = ref span11[4]; + num3++; + ref QuestStep reference30 = ref span35[num3]; QuestStep obj30 = new QuestStep(EInteractionType.UseItem, 2008466u, new Vector3(487.0221f, 65.537476f, -23.361572f), 614) { ItemId = 2002241u }; - num3 = 6; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span16 = CollectionsMarshal.AsSpan(list40); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list40 = new List(num4); + CollectionsMarshal.SetCount(list40, num4); + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = null; + index2++; + span40[index2] = null; + index2++; + span40[index2] = null; + index2++; + span40[index2] = null; + index2++; + span40[index2] = null; + index2++; + span40[index2] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj30.CompletionQuestVariablesFlags = list40; reference30 = obj30; - span11[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.11514f, 40.55606f, -51.57855f), 614) + num3++; + span35[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.11514f, 40.55606f, -51.57855f), 614) { DisableNavmesh = true, Mount = true }; - ref QuestStep reference31 = ref span11[6]; + num3++; + ref QuestStep reference31 = ref span35[num3]; QuestStep obj31 = new QuestStep(EInteractionType.UseItem, 2008465u, new Vector3(380.84985f, 41.031494f, -29.892456f), 614) { ItemId = 2002241u }; - num3 = 6; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - Span span17 = CollectionsMarshal.AsSpan(list41); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index2 = 6; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num4 = 0; + span41[num4] = null; + num4++; + span41[num4] = null; + num4++; + span41[num4] = null; + num4++; + span41[num4] = null; + num4++; + span41[num4] = null; + num4++; + span41[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj31.CompletionQuestVariablesFlags = list41; reference31 = obj31; obj25.Steps = list35; reference25 = obj25; - ref QuestSequence reference32 = ref span10[2]; + num++; + ref QuestSequence reference32 = ref span33[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019314u, new Vector3(421.77454f, -0.3000138f, -293.9651f), 614); + num3 = 1; + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019314u, new Vector3(421.77454f, -0.3000138f, -293.9651f), 614); obj32.Steps = list42; reference32 = obj32; questRoot5.QuestSequence = list33; @@ -174862,13 +210858,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; + Span span43 = CollectionsMarshal.AsSpan(list43); + index = 0; + span43[index] = "JerryWester"; questRoot6.Author = list43; - num = 8; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span18 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference33 = ref span18[0]; + index = 8; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + Span span44 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference33 = ref span44[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -174876,7 +210875,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614) + Span span45 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span45[num3] = new QuestStep(EInteractionType.AcceptQuest, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -174889,18 +210890,22 @@ public static class AssemblyQuestLoader }; obj33.Steps = list45; reference33 = obj33; - ref QuestSequence reference34 = ref span18[1]; + num++; + ref QuestSequence reference34 = ref span44[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1019264u, new Vector3(362.35596f, 90.70435f, -164.72119f), 614); + num3 = 1; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.Interact, 1019264u, new Vector3(362.35596f, 90.70435f, -164.72119f), 614); obj34.Steps = list46; reference34 = obj34; - ref QuestSequence reference35 = ref span18[2]; + num++; + ref QuestSequence reference35 = ref span44[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -174908,66 +210913,91 @@ public static class AssemblyQuestLoader num2 = 3; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span19 = CollectionsMarshal.AsSpan(list47); - ref QuestStep reference36 = ref span19[0]; + Span span47 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + ref QuestStep reference36 = ref span47[num3]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2008352u, new Vector3(379.23242f, 90.684326f, -134.72198f), 614); - num3 = 6; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - Span span20 = CollectionsMarshal.AsSpan(list48); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list48 = new List(num4); + CollectionsMarshal.SetCount(list48, num4); + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = null; + index2++; + span48[index2] = null; + index2++; + span48[index2] = null; + index2++; + span48[index2] = null; + index2++; + span48[index2] = null; + index2++; + span48[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list48; reference36 = questStep; - ref QuestStep reference37 = ref span19[1]; + num3++; + ref QuestStep reference37 = ref span47[num3]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2008354u, new Vector3(369.5276f, 97.61194f, -102.92212f), 614); - num3 = 6; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - Span span21 = CollectionsMarshal.AsSpan(list49); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num4 = 0; + span49[num4] = null; + num4++; + span49[num4] = null; + num4++; + span49[num4] = null; + num4++; + span49[num4] = null; + num4++; + span49[num4] = null; + num4++; + span49[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list49; reference37 = questStep2; - ref QuestStep reference38 = ref span19[2]; + num3++; + ref QuestStep reference38 = ref span47[num3]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2008353u, new Vector3(352.34607f, 97.61194f, -134.99658f), 614); - num3 = 6; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - Span span22 = CollectionsMarshal.AsSpan(list50); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list50 = new List(num4); + CollectionsMarshal.SetCount(list50, num4); + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = null; + index2++; + span50[index2] = null; + index2++; + span50[index2] = null; + index2++; + span50[index2] = null; + index2++; + span50[index2] = null; + index2++; + span50[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list50; reference38 = questStep3; obj35.Steps = list47; reference35 = obj35; - ref QuestSequence reference39 = ref span18[3]; + num++; + ref QuestSequence reference39 = ref span44[num]; QuestSequence obj36 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1019264u, new Vector3(362.35596f, 90.70435f, -164.72119f), 614) + num3 = 1; + List list51 = new List(num3); + CollectionsMarshal.SetCount(list51, num3); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.Interact, 1019264u, new Vector3(362.35596f, 90.70435f, -164.72119f), 614) { Mount = true }; obj36.Steps = list51; reference39 = obj36; - ref QuestSequence reference40 = ref span18[4]; + num++; + ref QuestSequence reference40 = ref span44[num]; QuestSequence obj37 = new QuestSequence { Sequence = 4 @@ -174975,27 +211005,33 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.UseItem, 2008355u, new Vector3(332.96704f, 100.87732f, -109.14783f), 614) + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span52[num3] = new QuestStep(EInteractionType.UseItem, 2008355u, new Vector3(332.96704f, 100.87732f, -109.14783f), 614) { ItemId = 2002213u }; obj37.Steps = list52; reference40 = obj37; - ref QuestSequence reference41 = ref span18[5]; + num++; + ref QuestSequence reference41 = ref span44[num]; QuestSequence obj38 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Emote, 1022071u, new Vector3(332.93652f, 100.91828f, -109.75824f), 614) + num3 = 1; + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.Emote, 1022071u, new Vector3(332.93652f, 100.91828f, -109.75824f), 614) { Emote = EEmote.Clap }; obj38.Steps = list53; reference41 = obj38; - ref QuestSequence reference42 = ref span18[6]; + num++; + ref QuestSequence reference42 = ref span44[num]; QuestSequence obj39 = new QuestSequence { Sequence = 6 @@ -175003,18 +211039,23 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1019264u, new Vector3(362.35596f, 90.70435f, -164.72119f), 614); + Span span54 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span54[num3] = new QuestStep(EInteractionType.Interact, 1019264u, new Vector3(362.35596f, 90.70435f, -164.72119f), 614); obj39.Steps = list54; reference42 = obj39; - ref QuestSequence reference43 = ref span18[7]; + num++; + ref QuestSequence reference43 = ref span44[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614); + num3 = 1; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614); obj40.Steps = list55; reference43 = obj40; questRoot6.QuestSequence = list44; @@ -175024,13 +211065,16 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "JerryWester"; + Span span56 = CollectionsMarshal.AsSpan(list56); + index = 0; + span56[index] = "JerryWester"; questRoot7.Author = list56; - num = 3; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span23 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference44 = ref span23[0]; + index = 3; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + Span span57 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference44 = ref span57[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -175038,7 +211082,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019313u, new Vector3(465.26282f, 58.52148f, -171.09949f), 614) + Span span58 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + span58[num3] = new QuestStep(EInteractionType.AcceptQuest, 1019313u, new Vector3(465.26282f, 58.52148f, -171.09949f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -175051,23 +211097,28 @@ public static class AssemblyQuestLoader }; obj41.Steps = list58; reference44 = obj41; - ref QuestSequence reference45 = ref span23[1]; + num++; + ref QuestSequence reference45 = ref span57[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list59)[0]; + num3 = 1; + List list59 = new List(num3); + CollectionsMarshal.SetCount(list59, num3); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + ref QuestStep reference46 = ref span59[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(151.29321f, -0.2997286f, 229.44983f), 614) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = new ComplexCombatData + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span60[num4] = new ComplexCombatData { DataId = 6682u, MinimumKillCount = 3u, @@ -175078,7 +211129,8 @@ public static class AssemblyQuestLoader reference46 = obj43; obj42.Steps = list59; reference45 = obj42; - ref QuestSequence reference47 = ref span23[2]; + num++; + ref QuestSequence reference47 = ref span57[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -175086,7 +211138,9 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019295u, new Vector3(756.3439f, 98.04659f, -229.93823f), 614) + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = new QuestStep(EInteractionType.CompleteQuest, 1019295u, new Vector3(756.3439f, 98.04659f, -229.93823f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; @@ -175099,21 +211153,26 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "JerryWester"; + Span span62 = CollectionsMarshal.AsSpan(list62); + index = 0; + span62[index] = "JerryWester"; questRoot8.Author = list62; - num = 8; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span24 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference48 = ref span24[0]; + index = 8; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + Span span63 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference48 = ref span63[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019316u, new Vector3(434.89734f, 68.02076f, -125.01721f), 614) + num3 = 1; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019316u, new Vector3(434.89734f, 68.02076f, -125.01721f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -175126,7 +211185,8 @@ public static class AssemblyQuestLoader }; obj45.Steps = list64; reference48 = obj45; - ref QuestSequence reference49 = ref span24[1]; + num++; + ref QuestSequence reference49 = ref span63[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -175134,43 +211194,52 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1022457u, new Vector3(529.56433f, 19.872318f, 350.24023f), 614); + Span span65 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span65[num3] = new QuestStep(EInteractionType.Interact, 1022457u, new Vector3(529.56433f, 19.872318f, 350.24023f), 614); obj46.Steps = list65; reference49 = obj46; - ref QuestSequence reference50 = ref span24[2]; + num++; + ref QuestSequence reference50 = ref span63[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - Span span25 = CollectionsMarshal.AsSpan(list66); - span25[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008007u, new Vector3(497.27625f, 16.342407f, 402.48718f), 614) + num3 = 3; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008007u, new Vector3(497.27625f, 16.342407f, 402.48718f), 614) { AetherCurrentId = 2818195u }; - span25[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(439.41403f, -0.3f, 464.3263f), 614) + num2++; + span66[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(439.41403f, -0.3f, 464.3263f), 614) { DisableNavmesh = true, Mount = true }; - ref QuestStep reference51 = ref span25[2]; + num2++; + ref QuestStep reference51 = ref span66[num2]; QuestStep obj48 = new QuestStep(EInteractionType.Combat, 1022458u, new Vector3(210.95593f, 7.398857f, 500.26697f), 614) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - Span span26 = CollectionsMarshal.AsSpan(list67); - span26[0] = 7524u; - span26[1] = 7525u; + num4 = 2; + List list67 = new List(num4); + CollectionsMarshal.SetCount(list67, num4); + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = 7524u; + index2++; + span67[index2] = 7525u; obj48.KillEnemyDataIds = list67; reference51 = obj48; obj47.Steps = list66; reference50 = obj47; - ref QuestSequence reference52 = ref span24[3]; + num++; + ref QuestSequence reference52 = ref span63[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -175178,23 +211247,29 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 2008518u, new Vector3(211.4137f, 8.255066f, 501.97595f), 614); + Span span68 = CollectionsMarshal.AsSpan(list68); + num3 = 0; + span68[num3] = new QuestStep(EInteractionType.Interact, 2008518u, new Vector3(211.4137f, 8.255066f, 501.97595f), 614); obj49.Steps = list68; reference52 = obj49; - ref QuestSequence reference53 = ref span24[4]; + num++; + ref QuestSequence reference53 = ref span63[num]; QuestSequence obj50 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - Span span27 = CollectionsMarshal.AsSpan(list69); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(439.41403f, -0.3f, 464.3263f), 614); - span27[1] = new QuestStep(EInteractionType.Interact, 1022457u, new Vector3(529.56433f, 19.872318f, 350.24023f), 614); + num3 = 2; + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(439.41403f, -0.3f, 464.3263f), 614); + num2++; + span69[num2] = new QuestStep(EInteractionType.Interact, 1022457u, new Vector3(529.56433f, 19.872318f, 350.24023f), 614); obj50.Steps = list69; reference53 = obj50; - ref QuestSequence reference54 = ref span24[5]; + num++; + ref QuestSequence reference54 = ref span63[num]; QuestSequence obj51 = new QuestSequence { Sequence = 5 @@ -175202,41 +211277,48 @@ public static class AssemblyQuestLoader num2 = 2; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span28 = CollectionsMarshal.AsSpan(list70); - span28[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(605.15845f, -0.5999999f, 499.43237f), 614) + Span span70 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span70[num3] = new QuestStep(EInteractionType.Dive, null, new Vector3(605.15845f, -0.5999999f, 499.43237f), 614) { StopDistance = 0.25f }; - span28[1] = new QuestStep(EInteractionType.Interact, 2008519u, new Vector3(619.8672f, -48.66101f, 559.83826f), 614) + num3++; + span70[num3] = new QuestStep(EInteractionType.Interact, 2008519u, new Vector3(619.8672f, -48.66101f, 559.83826f), 614) { DisableNavmesh = true, Mount = true }; obj51.Steps = list70; reference54 = obj51; - ref QuestSequence reference55 = ref span24[6]; + num++; + ref QuestSequence reference55 = ref span63[num]; QuestSequence obj52 = new QuestSequence { Sequence = 6 }; - num2 = 3; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - Span span29 = CollectionsMarshal.AsSpan(list71); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(605.15845f, -0.5999999f, 499.43237f), 614) + num3 = 3; + List list71 = new List(num3); + CollectionsMarshal.SetCount(list71, num3); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(605.15845f, -0.5999999f, 499.43237f), 614) { StopDistance = 0.25f, DisableNavmesh = true, Mount = true }; - span29[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(617.7405f, -0.3f, 493.613f), 614) + num2++; + span71[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(617.7405f, -0.3f, 493.613f), 614) { StopDistance = 0.25f }; - span29[2] = new QuestStep(EInteractionType.Interact, 1022457u, new Vector3(529.56433f, 19.872318f, 350.24023f), 614); + num2++; + span71[num2] = new QuestStep(EInteractionType.Interact, 1022457u, new Vector3(529.56433f, 19.872318f, 350.24023f), 614); obj52.Steps = list71; reference55 = obj52; - ref QuestSequence reference56 = ref span24[7]; + num++; + ref QuestSequence reference56 = ref span63[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -175244,7 +211326,9 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019316u, new Vector3(434.89734f, 68.02076f, -125.01721f), 614) + Span span72 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span72[num3] = new QuestStep(EInteractionType.CompleteQuest, 1019316u, new Vector3(434.89734f, 68.02076f, -125.01721f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; @@ -175257,21 +211341,26 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "Theo"; + Span span73 = CollectionsMarshal.AsSpan(list73); + index = 0; + span73[index] = "Theo"; questRoot9.Author = list73; - num = 3; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span30 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference57 = ref span30[0]; + index = 3; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + Span span74 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference57 = ref span74[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019262u, new Vector3(445.76172f, 58.67623f, -155.62683f), 614) + num3 = 1; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019262u, new Vector3(445.76172f, 58.67623f, -155.62683f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -175290,7 +211379,8 @@ public static class AssemblyQuestLoader }; obj54.Steps = list75; reference57 = obj54; - ref QuestSequence reference58 = ref span30[1]; + num++; + ref QuestSequence reference58 = ref span74[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -175298,49 +211388,66 @@ public static class AssemblyQuestLoader num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span31 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference59 = ref span31[0]; + Span span76 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + ref QuestStep reference59 = ref span76[num3]; QuestStep obj56 = new QuestStep(EInteractionType.Interact, 2008520u, new Vector3(476.85962f, 58.304688f, -178.08807f), 614) { Mount = true }; - num3 = 6; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - Span span32 = CollectionsMarshal.AsSpan(list77); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num4 = 0; + span77[num4] = null; + num4++; + span77[num4] = null; + num4++; + span77[num4] = null; + num4++; + span77[num4] = null; + num4++; + span77[num4] = null; + num4++; + span77[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj56.CompletionQuestVariablesFlags = list77; reference59 = obj56; - ref QuestStep reference60 = ref span31[1]; + num3++; + ref QuestStep reference60 = ref span76[num3]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2008521u, new Vector3(477.8667f, 59.098145f, -177.66083f), 614); - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span33 = CollectionsMarshal.AsSpan(list78); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list78 = new List(num4); + CollectionsMarshal.SetCount(list78, num4); + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = null; + index2++; + span78[index2] = null; + index2++; + span78[index2] = null; + index2++; + span78[index2] = null; + index2++; + span78[index2] = null; + index2++; + span78[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list78; reference60 = questStep4; obj55.Steps = list76; reference58 = obj55; - ref QuestSequence reference61 = ref span30[2]; + num++; + ref QuestSequence reference61 = ref span74[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019302u, new Vector3(-279.347f, 17.31996f, 498.49683f), 614) + num3 = 1; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019302u, new Vector3(-279.347f, 17.31996f, 498.49683f), 614) { Fly = true, NextQuestId = new QuestId(2748) @@ -175354,13 +211461,16 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "Theo"; + Span span80 = CollectionsMarshal.AsSpan(list80); + index = 0; + span80[index] = "Theo"; questRoot10.Author = list80; - num = 6; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span34 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference62 = ref span34[0]; + index = 6; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + Span span81 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference62 = ref span81[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 @@ -175368,7 +211478,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) + Span span82 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span82[num3] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -175387,21 +211499,25 @@ public static class AssemblyQuestLoader }; obj58.Steps = list82; reference62 = obj58; - ref QuestSequence reference63 = ref span34[1]; + num++; + ref QuestSequence reference63 = ref span81[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 2008459u, new Vector3(394.5525f, 80.88806f, -194.17108f), 614) + num3 = 1; + List list83 = new List(num3); + CollectionsMarshal.SetCount(list83, num3); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.Interact, 2008459u, new Vector3(394.5525f, 80.88806f, -194.17108f), 614) { Fly = true }; obj59.Steps = list83; reference63 = obj59; - ref QuestSequence reference64 = ref span34[2]; + num++; + ref QuestSequence reference64 = ref span81[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -175409,35 +211525,43 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Emote, 1022399u, new Vector3(392.69092f, 80.90235f, -194.9035f), 614) + Span span84 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span84[num3] = new QuestStep(EInteractionType.Emote, 1022399u, new Vector3(392.69092f, 80.90235f, -194.9035f), 614) { Emote = EEmote.Rally }; obj60.Steps = list84; reference64 = obj60; - ref QuestSequence reference65 = ref span34[3]; + num++; + ref QuestSequence reference65 = ref span81[num]; QuestSequence obj61 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference66 = ref CollectionsMarshal.AsSpan(list85)[0]; + num3 = 1; + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference66 = ref span85[num2]; QuestStep obj62 = new QuestStep(EInteractionType.Combat, null, new Vector3(497.38757f, 55.17306f, 191.36812f), 614) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = 7539u; + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num4 = 0; + span86[num4] = 7539u; obj62.KillEnemyDataIds = list86; reference66 = obj62; obj61.Steps = list85; reference65 = obj61; - ref QuestSequence reference67 = ref span34[4]; + num++; + ref QuestSequence reference67 = ref span81[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -175445,18 +211569,23 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1022400u, new Vector3(499.9618f, 55.28981f, 191.18018f), 614); + Span span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = new QuestStep(EInteractionType.Interact, 1022400u, new Vector3(499.9618f, 55.28981f, 191.18018f), 614); obj63.Steps = list87; reference67 = obj63; - ref QuestSequence reference68 = ref span34[5]; + num++; + ref QuestSequence reference68 = ref span81[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list88)[0]; + num3 = 1; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + ref QuestStep reference69 = ref span88[num2]; QuestStep obj65 = new QuestStep(EInteractionType.CompleteQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, @@ -175474,10 +211603,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - CollectionsMarshal.AsSpan(list89)[0] = new DialogueChoice + num4 = 1; + List list89 = new List(num4); + CollectionsMarshal.SetCount(list89, num4); + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ413_02736_Q1_000_000"), @@ -175495,13 +211626,16 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "Theo"; + Span span90 = CollectionsMarshal.AsSpan(list90); + index = 0; + span90[index] = "Theo"; questRoot11.Author = list90; - num = 6; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span35 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference70 = ref span35[0]; + index = 6; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + Span span91 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference70 = ref span91[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -175509,7 +211643,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) + Span span92 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span92[num3] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -175528,21 +211664,25 @@ public static class AssemblyQuestLoader }; obj66.Steps = list92; reference70 = obj66; - ref QuestSequence reference71 = ref span35[1]; + num++; + ref QuestSequence reference71 = ref span91[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1022399u, new Vector3(392.69092f, 80.90235f, -194.9035f), 614) + num3 = 1; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.Interact, 1022399u, new Vector3(392.69092f, 80.90235f, -194.9035f), 614) { Fly = true }; obj67.Steps = list93; reference71 = obj67; - ref QuestSequence reference72 = ref span35[2]; + num++; + ref QuestSequence reference72 = ref span91[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -175550,28 +211690,34 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1022421u, new Vector3(634.5464f, 86.07644f, -146.74603f), 614) + Span span94 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span94[num3] = new QuestStep(EInteractionType.Interact, 1022421u, new Vector3(634.5464f, 86.07644f, -146.74603f), 614) { Fly = true }; obj68.Steps = list94; reference72 = obj68; - ref QuestSequence reference73 = ref span35[3]; + num++; + ref QuestSequence reference73 = ref span91[num]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Emote, 1022423u, new Vector3(499.71765f, 66.36111f, -16.586609f), 614) + num3 = 1; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.Emote, 1022423u, new Vector3(499.71765f, 66.36111f, -16.586609f), 614) { Fly = true, Emote = EEmote.Psych }; obj69.Steps = list95; reference73 = obj69; - ref QuestSequence reference74 = ref span35[4]; + num++; + ref QuestSequence reference74 = ref span91[num]; QuestSequence obj70 = new QuestSequence { Sequence = 4 @@ -175579,21 +211725,26 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1022424u, new Vector3(475.51685f, 68.02852f, -106.30963f), 614) + Span span96 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span96[num3] = new QuestStep(EInteractionType.Interact, 1022424u, new Vector3(475.51685f, 68.02852f, -106.30963f), 614) { Fly = true }; obj70.Steps = list96; reference74 = obj70; - ref QuestSequence reference75 = ref span35[5]; + num++; + ref QuestSequence reference75 = ref span91[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) + num3 = 1; + List list97 = new List(num3); + CollectionsMarshal.SetCount(list97, num3); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span97[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -175620,13 +211771,16 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "Theo"; + Span span98 = CollectionsMarshal.AsSpan(list98); + index = 0; + span98[index] = "Theo"; questRoot12.Author = list98; - num = 5; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span36 = CollectionsMarshal.AsSpan(list99); - ref QuestSequence reference76 = ref span36[0]; + index = 5; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + Span span99 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference76 = ref span99[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -175634,7 +211788,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) + Span span100 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span100[num3] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -175653,23 +211809,28 @@ public static class AssemblyQuestLoader }; obj72.Steps = list100; reference76 = obj72; - ref QuestSequence reference77 = ref span36[1]; + num++; + ref QuestSequence reference77 = ref span99[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list101)[0]; + num3 = 1; + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + ref QuestStep reference78 = ref span101[num2]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 1022414u, new Vector3(605.249f, 67.79578f, -137.49908f), 614) { Fly = true }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = new DialogueChoice + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num4 = 0; + span102[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ415_02738_Q1_000_000"), @@ -175679,7 +211840,8 @@ public static class AssemblyQuestLoader reference78 = obj74; obj73.Steps = list101; reference77 = obj73; - ref QuestSequence reference79 = ref span36[2]; + num++; + ref QuestSequence reference79 = ref span99[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 @@ -175687,75 +211849,100 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span37 = CollectionsMarshal.AsSpan(list103); - ref QuestStep reference80 = ref span37[0]; + Span span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + ref QuestStep reference80 = ref span103[num3]; QuestStep obj76 = new QuestStep(EInteractionType.Interact, 2008490u, new Vector3(627.8019f, 84.97742f, -98.49707f), 614) { Fly = true }; - num3 = 6; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - Span span38 = CollectionsMarshal.AsSpan(list104); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list104 = new List(num4); + CollectionsMarshal.SetCount(list104, num4); + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = null; + index2++; + span104[index2] = null; + index2++; + span104[index2] = null; + index2++; + span104[index2] = null; + index2++; + span104[index2] = null; + index2++; + span104[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj76.CompletionQuestVariablesFlags = list104; reference80 = obj76; - ref QuestStep reference81 = ref span37[1]; + num3++; + ref QuestStep reference81 = ref span103[num3]; QuestStep obj77 = new QuestStep(EInteractionType.Interact, 2008491u, new Vector3(664.8203f, 92.088135f, -107.774536f), 614) { Mount = true }; - num3 = 6; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span39 = CollectionsMarshal.AsSpan(list105); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num4 = 0; + span105[num4] = null; + num4++; + span105[num4] = null; + num4++; + span105[num4] = null; + num4++; + span105[num4] = null; + num4++; + span105[num4] = null; + num4++; + span105[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj77.CompletionQuestVariablesFlags = list105; reference81 = obj77; - ref QuestStep reference82 = ref span37[2]; + num3++; + ref QuestStep reference82 = ref span103[num3]; QuestStep obj78 = new QuestStep(EInteractionType.Interact, 2008492u, new Vector3(657.98413f, 85.22156f, -150.56079f), 614) { Mount = true }; - num3 = 6; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span40 = CollectionsMarshal.AsSpan(list106); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list106 = new List(num4); + CollectionsMarshal.SetCount(list106, num4); + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = null; + index2++; + span106[index2] = null; + index2++; + span106[index2] = null; + index2++; + span106[index2] = null; + index2++; + span106[index2] = null; + index2++; + span106[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj78.CompletionQuestVariablesFlags = list106; reference82 = obj78; obj75.Steps = list103; reference79 = obj75; - ref QuestSequence reference83 = ref span36[3]; + num++; + ref QuestSequence reference83 = ref span99[num]; QuestSequence obj79 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1022414u, new Vector3(605.249f, 67.79578f, -137.49908f), 614) + num3 = 1; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.Interact, 1022414u, new Vector3(605.249f, 67.79578f, -137.49908f), 614) { Fly = true }; obj79.Steps = list107; reference83 = obj79; - ref QuestSequence reference84 = ref span36[4]; + num++; + ref QuestSequence reference84 = ref span99[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue @@ -175763,7 +211950,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) + Span span108 = CollectionsMarshal.AsSpan(list108); + num3 = 0; + span108[num3] = new QuestStep(EInteractionType.CompleteQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -175790,21 +211979,26 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "Theo"; + Span span109 = CollectionsMarshal.AsSpan(list109); + index = 0; + span109[index] = "Theo"; questRoot13.Author = list109; - num = 7; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span41 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference85 = ref span41[0]; + index = 7; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + Span span110 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference85 = ref span110[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022425u, new Vector3(473.3806f, 58.51295f, -180.95679f), 614) + num3 = 1; + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022425u, new Vector3(473.3806f, 58.51295f, -180.95679f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -175823,7 +212017,8 @@ public static class AssemblyQuestLoader }; obj81.Steps = list111; reference85 = obj81; - ref QuestSequence reference86 = ref span41[1]; + num++; + ref QuestSequence reference86 = ref span110[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 @@ -175831,28 +212026,34 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1022417u, new Vector3(365.6825f, 100.83898f, -93.91931f), 614) + Span span112 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span112[num3] = new QuestStep(EInteractionType.Interact, 1022417u, new Vector3(365.6825f, 100.83898f, -93.91931f), 614) { StopDistance = 0.5f, Fly = true }; obj82.Steps = list112; reference86 = obj82; - ref QuestSequence reference87 = ref span41[2]; + num++; + ref QuestSequence reference87 = ref span110[num]; QuestSequence obj83 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1022416u, new Vector3(675.92883f, 98.45921f, -103.80713f), 614) + num3 = 1; + List list113 = new List(num3); + CollectionsMarshal.SetCount(list113, num3); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.Interact, 1022416u, new Vector3(675.92883f, 98.45921f, -103.80713f), 614) { Fly = true }; obj83.Steps = list113; reference87 = obj83; - ref QuestSequence reference88 = ref span41[3]; + num++; + ref QuestSequence reference88 = ref span110[num]; QuestSequence obj84 = new QuestSequence { Sequence = 3 @@ -175860,35 +212061,43 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1022418u, new Vector3(734.5845f, 119.698425f, -35.05005f), 614) + Span span114 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span114[num3] = new QuestStep(EInteractionType.Interact, 1022418u, new Vector3(734.5845f, 119.698425f, -35.05005f), 614) { Fly = true }; obj84.Steps = list114; reference88 = obj84; - ref QuestSequence reference89 = ref span41[4]; + num++; + ref QuestSequence reference89 = ref span110[num]; QuestSequence obj85 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - ref QuestStep reference90 = ref CollectionsMarshal.AsSpan(list115)[0]; + num3 = 1; + List list115 = new List(num3); + CollectionsMarshal.SetCount(list115, num3); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + ref QuestStep reference90 = ref span115[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, null, new Vector3(720.75977f, 116.93192f, -60.349487f), 614) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = 7540u; + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num4 = 0; + span116[num4] = 7540u; obj86.KillEnemyDataIds = list116; reference90 = obj86; obj85.Steps = list115; reference89 = obj85; - ref QuestSequence reference91 = ref span41[5]; + num++; + ref QuestSequence reference91 = ref span110[num]; QuestSequence obj87 = new QuestSequence { Sequence = 5 @@ -175896,21 +212105,26 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1022418u, new Vector3(734.5845f, 119.698425f, -35.05005f), 614) + Span span117 = CollectionsMarshal.AsSpan(list117); + num3 = 0; + span117[num3] = new QuestStep(EInteractionType.Interact, 1022418u, new Vector3(734.5845f, 119.698425f, -35.05005f), 614) { Fly = true }; obj87.Steps = list117; reference91 = obj87; - ref QuestSequence reference92 = ref span41[6]; + num++; + ref QuestSequence reference92 = ref span110[num]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) + num3 = 1; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -175937,13 +212151,16 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "Theo"; + Span span119 = CollectionsMarshal.AsSpan(list119); + index = 0; + span119[index] = "Theo"; questRoot14.Author = list119; - num = 5; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span42 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference93 = ref span42[0]; + index = 5; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + Span span120 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference93 = ref span120[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -175951,24 +212168,30 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022399u, new Vector3(392.69092f, 80.90235f, -194.9035f), 614); + Span span121 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span121[num3] = new QuestStep(EInteractionType.AcceptQuest, 1022399u, new Vector3(392.69092f, 80.90235f, -194.9035f), 614); obj89.Steps = list121; reference93 = obj89; - ref QuestSequence reference94 = ref span42[1]; + num++; + ref QuestSequence reference94 = ref span120[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) + num3 = 1; + List list122 = new List(num3); + CollectionsMarshal.SetCount(list122, num3); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) { Fly = true }; obj90.Steps = list122; reference94 = obj90; - ref QuestSequence reference95 = ref span42[2]; + num++; + ref QuestSequence reference95 = ref span120[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -175976,25 +212199,31 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); + Span span123 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span123[num3] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); obj91.Steps = list123; reference95 = obj91; - ref QuestSequence reference96 = ref span42[3]; + num++; + ref QuestSequence reference96 = ref span120[num]; QuestSequence obj92 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1023463u, new Vector3(563.8666f, 68.09528f, -11.306946f), 614) + num3 = 1; + List list124 = new List(num3); + CollectionsMarshal.SetCount(list124, num3); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.Interact, 1023463u, new Vector3(563.8666f, 68.09528f, -11.306946f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj92.Steps = list124; reference96 = obj92; - ref QuestSequence reference97 = ref span42[4]; + num++; + ref QuestSequence reference97 = ref span120[num]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue @@ -176002,7 +212231,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023465u, new Vector3(462.76025f, 68.01855f, -106.55377f), 614) + Span span125 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span125[num3] = new QuestStep(EInteractionType.CompleteQuest, 1023465u, new Vector3(462.76025f, 68.01855f, -106.55377f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -176028,32 +212259,38 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "Theo"; + Span span126 = CollectionsMarshal.AsSpan(list126); + index = 0; + span126[index] = "Theo"; questRoot15.Author = list126; - num = 4; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span43 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference98 = ref span43[0]; + index = 4; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + Span span127 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference98 = ref span127[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span44 = CollectionsMarshal.AsSpan(list128); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-297.51367f, 17.31996f, 508.2195f), 614) + num3 = 2; + List list128 = new List(num3); + CollectionsMarshal.SetCount(list128, num3); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-297.51367f, 17.31996f, 508.2195f), 614) { Fly = true }; - span44[1] = new QuestStep(EInteractionType.AcceptQuest, 1019298u, new Vector3(-318.87692f, 17.974895f, 508.29004f), 614) + num2++; + span128[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019298u, new Vector3(-318.87692f, 17.974895f, 508.29004f), 614) { StopDistance = 0.25f }; obj94.Steps = list128; reference98 = obj94; - ref QuestSequence reference99 = ref span43[1]; + num++; + ref QuestSequence reference99 = ref span127[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 @@ -176061,33 +212298,39 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1019261u, new Vector3(403.00586f, 76.169815f, -148.8518f), 614) + Span span129 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span129[num3] = new QuestStep(EInteractionType.Interact, 1019261u, new Vector3(403.00586f, 76.169815f, -148.8518f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj95.Steps = list129; reference99 = obj95; - ref QuestSequence reference100 = ref span43[2]; + num++; + ref QuestSequence reference100 = ref span127[num]; QuestSequence obj96 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span45 = CollectionsMarshal.AsSpan(list130); - span45[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-297.51367f, 17.31996f, 508.2195f), 614) + num3 = 2; + List list130 = new List(num3); + CollectionsMarshal.SetCount(list130, num3); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-297.51367f, 17.31996f, 508.2195f), 614) { Fly = true }; - span45[1] = new QuestStep(EInteractionType.Interact, 1019298u, new Vector3(-318.87692f, 17.974895f, 508.29004f), 614) + num2++; + span130[num2] = new QuestStep(EInteractionType.Interact, 1019298u, new Vector3(-318.87692f, 17.974895f, 508.29004f), 614) { StopDistance = 0.25f }; obj96.Steps = list130; reference100 = obj96; - ref QuestSequence reference101 = ref span43[3]; + num++; + ref QuestSequence reference101 = ref span127[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue @@ -176095,7 +212338,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019261u, new Vector3(403.00586f, 76.169815f, -148.8518f), 614) + Span span131 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span131[num3] = new QuestStep(EInteractionType.CompleteQuest, 1019261u, new Vector3(403.00586f, 76.169815f, -148.8518f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -176110,27 +212355,33 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "liza"; + Span span132 = CollectionsMarshal.AsSpan(list132); + index = 0; + span132[index] = "liza"; questRoot16.Author = list132; - num = 6; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span46 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference102 = ref span46[0]; + index = 6; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + Span span133 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference102 = ref span133[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023236u, new Vector3(-300.06866f, 16.806112f, 539.45215f), 614) + num3 = 1; + List list134 = new List(num3); + CollectionsMarshal.SetCount(list134, num3); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023236u, new Vector3(-300.06866f, 16.806112f, 539.45215f), 614) { Fly = true }; obj98.Steps = list134; reference102 = obj98; - ref QuestSequence reference103 = ref span46[1]; + num++; + ref QuestSequence reference103 = ref span133[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 @@ -176138,29 +212389,35 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) + Span span135 = CollectionsMarshal.AsSpan(list135); + num3 = 0; + span135[num3] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) { Fly = true }; obj99.Steps = list135; reference103 = obj99; - ref QuestSequence reference104 = ref span46[2]; + num++; + ref QuestSequence reference104 = ref span133[num]; QuestSequence obj100 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span47 = CollectionsMarshal.AsSpan(list136); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-463.34363f, 1.3011811f, 578.3476f), 614) + num3 = 2; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-463.34363f, 1.3011811f, 578.3476f), 614) { Fly = true }; - span47[1] = new QuestStep(EInteractionType.Interact, 1023238u, new Vector3(-464.49988f, 1.3011812f, 577.32495f), 614); + num2++; + span136[num2] = new QuestStep(EInteractionType.Interact, 1023238u, new Vector3(-464.49988f, 1.3011812f, 577.32495f), 614); obj100.Steps = list136; reference104 = obj100; - ref QuestSequence reference105 = ref span46[3]; + num++; + ref QuestSequence reference105 = ref span133[num]; QuestSequence obj101 = new QuestSequence { Sequence = 3 @@ -176168,40 +212425,47 @@ public static class AssemblyQuestLoader num2 = 2; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span48 = CollectionsMarshal.AsSpan(list137); - span48[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(-487.5986f, -0.5999999f, 578.5466f), 614) + Span span137 = CollectionsMarshal.AsSpan(list137); + num3 = 0; + span137[num3] = new QuestStep(EInteractionType.Dive, null, new Vector3(-487.5986f, -0.5999999f, 578.5466f), 614) { DisableNavmesh = true }; - span48[1] = new QuestStep(EInteractionType.Interact, 2008799u, new Vector3(-549.7063f, -109.51398f, 569.32935f), 614) + num3++; + span137[num3] = new QuestStep(EInteractionType.Interact, 2008799u, new Vector3(-549.7063f, -109.51398f, 569.32935f), 614) { Mount = true, Fly = true }; obj101.Steps = list137; reference105 = obj101; - ref QuestSequence reference106 = ref span46[4]; + num++; + ref QuestSequence reference106 = ref span133[num]; QuestSequence obj102 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - Span span49 = CollectionsMarshal.AsSpan(list138); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-487.5986f, -0.5999999f, 578.5466f), 614) + num3 = 3; + List list138 = new List(num3); + CollectionsMarshal.SetCount(list138, num3); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-487.5986f, -0.5999999f, 578.5466f), 614) { DisableNavmesh = true, RestartNavigationIfCancelled = false }; - span49[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-463.34363f, 1.3011811f, 578.3476f), 614) + num2++; + span138[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-463.34363f, 1.3011811f, 578.3476f), 614) { Fly = true }; - span49[2] = new QuestStep(EInteractionType.Interact, 1023238u, new Vector3(-464.49988f, 1.3011812f, 577.32495f), 614); + num2++; + span138[num2] = new QuestStep(EInteractionType.Interact, 1023238u, new Vector3(-464.49988f, 1.3011812f, 577.32495f), 614); obj102.Steps = list138; reference106 = obj102; - ref QuestSequence reference107 = ref span46[5]; + num++; + ref QuestSequence reference107 = ref span133[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue @@ -176209,7 +212473,9 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) + Span span139 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span139[num3] = new QuestStep(EInteractionType.CompleteQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) { Fly = true, NextQuestId = new QuestId(2749) @@ -176223,24 +212489,30 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - CollectionsMarshal.AsSpan(list140)[0] = "Theo"; + Span span140 = CollectionsMarshal.AsSpan(list140); + index = 0; + span140[index] = "Theo"; questRoot17.Author = list140; - num = 7; - List list141 = new List(num); - CollectionsMarshal.SetCount(list141, num); - Span span50 = CollectionsMarshal.AsSpan(list141); - ref QuestSequence reference108 = ref span50[0]; + index = 7; + List list141 = new List(index); + CollectionsMarshal.SetCount(list141, index); + Span span141 = CollectionsMarshal.AsSpan(list141); + num = 0; + ref QuestSequence reference108 = ref span141[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); + num3 = 1; + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); obj104.Steps = list142; reference108 = obj104; - ref QuestSequence reference109 = ref span50[1]; + num++; + ref QuestSequence reference109 = ref span141[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 @@ -176248,23 +212520,27 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1023239u, new Vector3(-392.72144f, 46.670254f, 452.93335f), 614) + Span span143 = CollectionsMarshal.AsSpan(list143); + num3 = 0; + span143[num3] = new QuestStep(EInteractionType.Interact, 1023239u, new Vector3(-392.72144f, 46.670254f, 452.93335f), 614) { StopDistance = 0.5f, Fly = true }; obj105.Steps = list143; reference109 = obj105; - ref QuestSequence reference110 = ref span50[2]; + num++; + ref QuestSequence reference110 = ref span141[num]; QuestSequence obj106 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - Span span51 = CollectionsMarshal.AsSpan(list144); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-239.56377f, 49.354053f, 284.94565f), 614) + num3 = 2; + List list144 = new List(num3); + CollectionsMarshal.SetCount(list144, num3); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-239.56377f, 49.354053f, 284.94565f), 614) { Fly = true, SkipConditions = new SkipConditions @@ -176275,13 +212551,15 @@ public static class AssemblyQuestLoader } } }; - span51[1] = new QuestStep(EInteractionType.Interact, 1023240u, new Vector3(-258.6557f, 38.181896f, 217.9751f), 614) + num2++; + span144[num2] = new QuestStep(EInteractionType.Interact, 1023240u, new Vector3(-258.6557f, 38.181896f, 217.9751f), 614) { Fly = true }; obj106.Steps = list144; reference110 = obj106; - ref QuestSequence reference111 = ref span50[3]; + num++; + ref QuestSequence reference111 = ref span141[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 @@ -176289,36 +212567,44 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list145)[0]; + Span span145 = CollectionsMarshal.AsSpan(list145); + num3 = 0; + ref QuestStep reference112 = ref span145[num3]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, null, new Vector3(-287.37323f, 39.150906f, 206.95801f), 614) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = 7541u; + num4 = 1; + List list146 = new List(num4); + CollectionsMarshal.SetCount(list146, num4); + Span span146 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span146[index2] = 7541u; obj108.KillEnemyDataIds = list146; reference112 = obj108; obj107.Steps = list145; reference111 = obj107; - ref QuestSequence reference113 = ref span50[4]; + num++; + ref QuestSequence reference113 = ref span141[num]; QuestSequence obj109 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1023240u, new Vector3(-258.6557f, 38.181896f, 217.9751f), 614) + num3 = 1; + List list147 = new List(num3); + CollectionsMarshal.SetCount(list147, num3); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.Interact, 1023240u, new Vector3(-258.6557f, 38.181896f, 217.9751f), 614) { Fly = true }; obj109.Steps = list147; reference113 = obj109; - ref QuestSequence reference114 = ref span50[5]; + num++; + ref QuestSequence reference114 = ref span141[num]; QuestSequence obj110 = new QuestSequence { Sequence = 5 @@ -176326,21 +212612,26 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 2008801u, new Vector3(-234.24127f, 17.593567f, 486.9917f), 614) + Span span148 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span148[num3] = new QuestStep(EInteractionType.Interact, 2008801u, new Vector3(-234.24127f, 17.593567f, 486.9917f), 614) { Fly = true }; obj110.Steps = list148; reference114 = obj110; - ref QuestSequence reference115 = ref span50[6]; + num++; + ref QuestSequence reference115 = ref span141[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) + num3 = 1; + List list149 = new List(num3); + CollectionsMarshal.SetCount(list149, num3); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) { Fly = true, NextQuestId = new QuestId(2750) @@ -176358,13 +212649,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Theo"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Theo"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -176372,18 +212666,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, null, new Vector3(151.29321f, -0.2997286f, 229.44983f), 614) { Fly = true, @@ -176392,7 +212691,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new ComplexCombatData + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = new ComplexCombatData { DataId = 6682u, MinimumKillCount = 3u @@ -176401,7 +212702,8 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -176409,24 +212711,30 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) { Fly = true }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 2008802u, new Vector3(-235.03479f, 17.654663f, 487.32727f), 614); + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.Interact, 2008802u, new Vector3(-235.03479f, 17.654663f, 487.32727f), 614); obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -176434,21 +212742,26 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1023243u, new Vector3(-88.85327f, -0.35101318f, 654.4442f), 614) + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.Interact, 1023243u, new Vector3(-88.85327f, -0.35101318f, 654.4442f), 614) { Fly = true }; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[5]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) { Fly = true, NextQuestId = new QuestId(2751) @@ -176462,13 +212775,16 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "Theo"; + Span span10 = CollectionsMarshal.AsSpan(list10); + index = 0; + span10[index] = "Theo"; questRoot2.Author = list10; - num = 7; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - Span span2 = CollectionsMarshal.AsSpan(list11); - ref QuestSequence reference8 = ref span2[0]; + index = 7; + List list11 = new List(index); + CollectionsMarshal.SetCount(list11, index); + Span span11 = CollectionsMarshal.AsSpan(list11); + num = 0; + ref QuestSequence reference8 = ref span11[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -176476,24 +212792,30 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span2[1]; + num++; + ref QuestSequence reference9 = ref span11[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1023244u, new Vector3(-290.15033f, 17.31996f, 490.86743f), 614) + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.Interact, 1023244u, new Vector3(-290.15033f, 17.31996f, 490.86743f), 614) { Fly = true }; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span2[2]; + num++; + ref QuestSequence reference10 = ref span11[num]; QuestSequence obj10 = new QuestSequence { Sequence = 2 @@ -176501,27 +212823,33 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1023245u, new Vector3(133.1654f, 13.172864f, 483.7871f), 614) + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.Interact, 1023245u, new Vector3(133.1654f, 13.172864f, 483.7871f), 614) { Fly = true }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[3]; + num++; + ref QuestSequence reference11 = ref span11[num]; QuestSequence obj11 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1023246u, new Vector3(401.3275f, 14.6418705f, 630.15173f), 614) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.Interact, 1023246u, new Vector3(401.3275f, 14.6418705f, 630.15173f), 614) { Fly = true }; obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference12 = ref span2[4]; + num++; + ref QuestSequence reference12 = ref span11[num]; QuestSequence obj12 = new QuestSequence { Sequence = 4 @@ -176529,35 +212857,43 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list16)[0]; + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + ref QuestStep reference13 = ref span16[index2]; QuestStep obj13 = new QuestStep(EInteractionType.Combat, null, new Vector3(447.20697f, 14.621715f, 673.4272f), 614) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = 7525u; + index3 = 1; + List list17 = new List(index3); + CollectionsMarshal.SetCount(list17, index3); + Span span17 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span17[num3] = 7525u; obj13.KillEnemyDataIds = list17; reference13 = obj13; obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference14 = ref span2[5]; + num++; + ref QuestSequence reference14 = ref span11[num]; QuestSequence obj14 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1023246u, new Vector3(401.3275f, 14.6418705f, 630.15173f), 614) + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.Interact, 1023246u, new Vector3(401.3275f, 14.6418705f, 630.15173f), 614) { Fly = true }; obj14.Steps = list18; reference14 = obj14; - ref QuestSequence reference15 = ref span2[6]; + num++; + ref QuestSequence reference15 = ref span11[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -176565,7 +212901,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023244u, new Vector3(-290.15033f, 17.31996f, 490.86743f), 614) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023244u, new Vector3(-290.15033f, 17.31996f, 490.86743f), 614) { Fly = true, NextQuestId = new QuestId(2747) @@ -176579,21 +212917,26 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + Span span20 = CollectionsMarshal.AsSpan(list20); + index = 0; + span20[index] = "liza"; questRoot3.Author = list20; - num = 3; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span3 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference16 = ref span3[0]; + index = 3; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + Span span21 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference16 = ref span21[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023253u, new Vector3(594.44556f, -19.505789f, 285.60303f), 622) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023253u, new Vector3(594.44556f, -19.505789f, 285.60303f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -176606,7 +212949,8 @@ public static class AssemblyQuestLoader }; obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span3[1]; + num++; + ref QuestSequence reference17 = ref span21[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -176614,7 +212958,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list23)[0]; + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + ref QuestStep reference18 = ref span23[index2]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(659.4403f, -0.7996712f, -28.710917f), 622) { Fly = true, @@ -176623,7 +212969,9 @@ public static class AssemblyQuestLoader num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - ref ComplexCombatData reference19 = ref CollectionsMarshal.AsSpan(list24)[0]; + Span span24 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + ref ComplexCombatData reference19 = ref span24[index3]; ComplexCombatData obj19 = new ComplexCombatData { DataId = 6692u, @@ -176632,28 +212980,37 @@ public static class AssemblyQuestLoader int num4 = 6; List list25 = new List(num4); CollectionsMarshal.SetCount(list25, num4); - Span span4 = CollectionsMarshal.AsSpan(list25); - span4[0] = null; - span4[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = null; + Span span25 = CollectionsMarshal.AsSpan(list25); + int num5 = 0; + span25[num5] = null; + num5++; + span25[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span25[num5] = null; + num5++; + span25[num5] = null; + num5++; + span25[num5] = null; + num5++; + span25[num5] = null; obj19.CompletionQuestVariablesFlags = list25; reference19 = obj19; obj18.ComplexCombatData = list24; reference18 = obj18; obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference20 = ref span3[2]; + num++; + ref QuestSequence reference20 = ref span21[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023253u, new Vector3(594.44556f, -19.505789f, 285.60303f), 622) + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023253u, new Vector3(594.44556f, -19.505789f, 285.60303f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; @@ -176666,13 +213023,16 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "JerryWester"; + Span span27 = CollectionsMarshal.AsSpan(list27); + index = 0; + span27[index] = "JerryWester"; questRoot4.Author = list27; - num = 3; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span5 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference21 = ref span5[0]; + index = 3; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + Span span28 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference21 = ref span28[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -176680,7 +213040,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019347u, new Vector3(575.2803f, -19.505632f, 343.74f), 622) + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019347u, new Vector3(575.2803f, -19.505632f, 343.74f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -176693,18 +213055,22 @@ public static class AssemblyQuestLoader }; obj21.Steps = list29; reference21 = obj21; - ref QuestSequence reference22 = ref span5[1]; + num++; + ref QuestSequence reference22 = ref span28[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1022127u, new Vector3(606.3783f, -14.991949f, 328.542f), 622); + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span30[num2] = new QuestStep(EInteractionType.Interact, 1022127u, new Vector3(606.3783f, -14.991949f, 328.542f), 622); obj22.Steps = list30; reference22 = obj22; - ref QuestSequence reference23 = ref span5[2]; + num++; + ref QuestSequence reference23 = ref span28[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -176712,7 +213078,9 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022128u, new Vector3(588.00635f, -19.505651f, 316.57886f), 622); + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span31[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022128u, new Vector3(588.00635f, -19.505651f, 316.57886f), 622); obj23.Steps = list31; reference23 = obj23; questRoot4.QuestSequence = list28; @@ -176722,24 +213090,30 @@ public static class AssemblyQuestLoader num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - CollectionsMarshal.AsSpan(list32)[0] = "JerryWester"; + Span span32 = CollectionsMarshal.AsSpan(list32); + index = 0; + span32[index] = "JerryWester"; questRoot5.Author = list32; - num = 4; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - Span span6 = CollectionsMarshal.AsSpan(list33); - ref QuestSequence reference24 = ref span6[0]; + index = 4; + List list33 = new List(index); + CollectionsMarshal.SetCount(list33, index); + Span span33 = CollectionsMarshal.AsSpan(list33); + num = 0; + ref QuestSequence reference24 = ref span33[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019405u, new Vector3(343.58728f, 26.261887f, -326.55835f), 622); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019405u, new Vector3(343.58728f, 26.261887f, -326.55835f), 622); obj24.Steps = list34; reference24 = obj24; - ref QuestSequence reference25 = ref span6[1]; + num++; + ref QuestSequence reference25 = ref span33[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -176747,24 +213121,30 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Snipe, 2008318u, new Vector3(-83.48212f, 33.21875f, -210.22363f), 622) + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.Snipe, 2008318u, new Vector3(-83.48212f, 33.21875f, -210.22363f), 622) { Comment = "Snipe sheep" }; obj25.Steps = list35; reference25 = obj25; - ref QuestSequence reference26 = ref span6[2]; + num++; + ref QuestSequence reference26 = ref span33[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1021900u, new Vector3(-83.36011f, 27.540436f, -146.44086f), 622); + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.Interact, 1021900u, new Vector3(-83.36011f, 27.540436f, -146.44086f), 622); obj26.Steps = list36; reference26 = obj26; - ref QuestSequence reference27 = ref span6[3]; + num++; + ref QuestSequence reference27 = ref span33[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -176772,7 +213152,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019405u, new Vector3(343.58728f, 26.261887f, -326.55835f), 622); + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019405u, new Vector3(343.58728f, 26.261887f, -326.55835f), 622); obj27.Steps = list37; reference27 = obj27; questRoot5.QuestSequence = list33; @@ -176782,21 +213164,26 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "JerryWester"; + Span span38 = CollectionsMarshal.AsSpan(list38); + index = 0; + span38[index] = "JerryWester"; questRoot6.Author = list38; - num = 4; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span7 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference28 = ref span7[0]; + index = 4; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + Span span39 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference28 = ref span39[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023348u, new Vector3(79.24011f, 114.90497f, 95.994385f), 622) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023348u, new Vector3(79.24011f, 114.90497f, 95.994385f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, SkipConditions = new SkipConditions @@ -176814,7 +213201,8 @@ public static class AssemblyQuestLoader }; obj28.Steps = list40; reference28 = obj28; - ref QuestSequence reference29 = ref span7[1]; + num++; + ref QuestSequence reference29 = ref span39[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 @@ -176822,66 +213210,91 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1019430u, new Vector3(33.98181f, 114.90497f, -40.69586f), 622); + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.Interact, 1019430u, new Vector3(33.98181f, 114.90497f, -40.69586f), 622); obj29.Steps = list41; reference29 = obj29; - ref QuestSequence reference30 = ref span7[2]; + num++; + ref QuestSequence reference30 = ref span39[num]; QuestSequence obj30 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - Span span8 = CollectionsMarshal.AsSpan(list42); - ref QuestStep reference31 = ref span8[0]; + index2 = 3; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + ref QuestStep reference31 = ref span42[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2008925u, new Vector3(26.962646f, 115.464966f, -44.419067f), 622); - num3 = 6; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - Span span9 = CollectionsMarshal.AsSpan(list43); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list43; reference31 = questStep; - ref QuestStep reference32 = ref span8[1]; + num2++; + ref QuestStep reference32 = ref span42[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2008927u, new Vector3(28.915894f, 115.464966f, -49.5766f), 622); num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span10 = CollectionsMarshal.AsSpan(list44); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span44 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list44; reference32 = questStep2; - ref QuestStep reference33 = ref span8[2]; + num2++; + ref QuestStep reference33 = ref span42[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 2008926u, new Vector3(27.634033f, 115.464966f, -48.05072f), 622) { StopDistance = 4f }; - num3 = 6; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - Span span11 = CollectionsMarshal.AsSpan(list45); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + Span span45 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj31.CompletionQuestVariablesFlags = list45; reference33 = obj31; obj30.Steps = list42; reference30 = obj30; - ref QuestSequence reference34 = ref span7[3]; + num++; + ref QuestSequence reference34 = ref span39[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -176889,7 +213302,9 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023348u, new Vector3(79.24011f, 114.90497f, 95.994385f), 622); + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023348u, new Vector3(79.24011f, 114.90497f, 95.994385f), 622); obj32.Steps = list46; reference34 = obj32; questRoot6.QuestSequence = list39; @@ -176899,24 +213314,30 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "JerryWester"; + Span span47 = CollectionsMarshal.AsSpan(list47); + index = 0; + span47[index] = "JerryWester"; questRoot7.Author = list47; - num = 3; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span12 = CollectionsMarshal.AsSpan(list48); - ref QuestSequence reference35 = ref span12[0]; + index = 3; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + Span span48 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref QuestSequence reference35 = ref span48[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023193u, new Vector3(-434.0429f, 2.5501096f, 650.01904f), 622); + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023193u, new Vector3(-434.0429f, 2.5501096f, 650.01904f), 622); obj33.Steps = list49; reference35 = obj33; - ref QuestSequence reference36 = ref span12[1]; + num++; + ref QuestSequence reference36 = ref span48[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -176924,65 +213345,91 @@ public static class AssemblyQuestLoader num2 = 3; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span13 = CollectionsMarshal.AsSpan(list50); - ref QuestStep reference37 = ref span13[0]; + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + ref QuestStep reference37 = ref span50[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1019321u, new Vector3(-473.0144f, 2.320309f, 616.907f), 622); num3 = 6; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - Span span14 = CollectionsMarshal.AsSpan(list51); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span51 = CollectionsMarshal.AsSpan(list51); + index3 = 0; + span51[index3] = null; + index3++; + span51[index3] = null; + index3++; + span51[index3] = null; + index3++; + span51[index3] = null; + index3++; + span51[index3] = null; + index3++; + span51[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list51; reference37 = questStep3; - ref QuestStep reference38 = ref span13[1]; + index2++; + ref QuestStep reference38 = ref span50[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1022222u, new Vector3(-485.22168f, 2.6499166f, 609.94885f), 622); - num3 = 6; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span15 = CollectionsMarshal.AsSpan(list52); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list52; reference38 = questStep4; - ref QuestStep reference39 = ref span13[2]; + index2++; + ref QuestStep reference39 = ref span50[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1022228u, new Vector3(-436.72852f, 2.253339f, 573.4187f), 622); num3 = 6; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span16 = CollectionsMarshal.AsSpan(list53); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span53 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list53; reference39 = questStep5; obj34.Steps = list50; reference36 = obj34; - ref QuestSequence reference40 = ref span12[2]; + num++; + ref QuestSequence reference40 = ref span48[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list54)[0]; + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + ref QuestStep reference41 = ref span54[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.CompleteQuest, 1023193u, new Vector3(-434.0429f, 2.5501096f, 650.01904f), 622); - num3 = 1; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = new DialogueChoice + index3 = 1; + List list55 = new List(index3); + CollectionsMarshal.SetCount(list55, index3); + Span span55 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span55[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ613_02791_Q1_000_000"), @@ -177003,13 +213450,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -177017,33 +213467,44 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022620u, new Vector3(-4.7455444f, 0.022830343f, -113.96973f), 628); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022620u, new Vector3(-4.7455444f, 0.022830343f, -113.96973f), 628); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 6; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1023127u, new Vector3(-102.9527f, 11.80004f, -114.76312f), 628); int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span5 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1023131u, new Vector3(-88.304016f, -6.9999995f, -63.09613f), 628) { AethernetShortcut = new AethernetShortcut @@ -177052,19 +213513,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeShiokazeHostelry } }; - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj3.CompletionQuestVariablesFlags = list6; reference4 = obj3; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span4[num2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 1023126u, new Vector3(32.60852f, 2.9999993f, -49.881836f), 628) { AethernetShortcut = new AethernetShortcut @@ -177076,16 +213544,23 @@ public static class AssemblyQuestLoader num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list7; reference5 = obj4; - ref QuestStep reference6 = ref span2[3]; + num2++; + ref QuestStep reference6 = ref span4[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 1023130u, new Vector3(80.460815f, 4.000001f, 71.488525f), 628) { AethernetShortcut = new AethernetShortcut @@ -177094,33 +213569,47 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeMarkets } }; - num3 = 6; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span6 = CollectionsMarshal.AsSpan(list8); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); + Span span8 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = null; + num3++; + span8[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj5.CompletionQuestVariablesFlags = list8; reference6 = obj5; - ref QuestStep reference7 = ref span2[4]; + num2++; + ref QuestStep reference7 = ref span4[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1023128u, new Vector3(-34.103943f, 15.000004f, 68.86389f), 628); num3 = 6; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span7 = CollectionsMarshal.AsSpan(list9); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span9 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list9; reference7 = questStep2; - ref QuestStep reference8 = ref span2[5]; + num2++; + ref QuestStep reference8 = ref span4[num2]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1023129u, new Vector3(17.593567f, 11.44387f, 174.45642f), 628) { AethernetShortcut = new AethernetShortcut @@ -177129,21 +213618,28 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeThavnairianConsulate } }; - num3 = 6; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - Span span8 = CollectionsMarshal.AsSpan(list10); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + Span span10 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj6.CompletionQuestVariablesFlags = list10; reference8 = obj6; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference9 = ref span[2]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue @@ -177151,7 +213647,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference10 = ref CollectionsMarshal.AsSpan(list11)[0]; + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + ref QuestStep reference10 = ref span11[index2]; QuestStep obj8 = new QuestStep(EInteractionType.CompleteQuest, 1022620u, new Vector3(-4.7455444f, 0.022830343f, -113.96973f), 628) { AethernetShortcut = new AethernetShortcut @@ -177163,7 +213661,9 @@ public static class AssemblyQuestLoader num3 = 1; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice + Span span12 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span12[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ710_02813_Q1_000_031"), @@ -177180,24 +213680,30 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "JerryWester"; + Span span13 = CollectionsMarshal.AsSpan(list13); + index = 0; + span13[index] = "JerryWester"; questRoot2.Author = list13; - num = 5; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span9 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference11 = ref span9[0]; + index = 5; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference11 = ref span14[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020821u, new Vector3(276.7223f, 76.853935f, -23.51416f), 612); + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020821u, new Vector3(276.7223f, 76.853935f, -23.51416f), 612); obj9.Steps = list15; reference11 = obj9; - ref QuestSequence reference12 = ref span9[1]; + num++; + ref QuestSequence reference12 = ref span14[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 @@ -177205,34 +213711,43 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list16)[0]; + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + ref QuestStep reference13 = ref span16[index2]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, null, new Vector3(566.8916f, 72.80687f, 138.84087f), 612) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - Span span10 = CollectionsMarshal.AsSpan(list17); - span10[0] = 7224u; - span10[1] = 7237u; - span10[2] = 7512u; + num4 = 3; + List list17 = new List(num4); + CollectionsMarshal.SetCount(list17, num4); + Span span17 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span17[num3] = 7224u; + num3++; + span17[num3] = 7237u; + num3++; + span17[num3] = 7512u; obj11.KillEnemyDataIds = list17; reference13 = obj11; obj10.Steps = list16; reference12 = obj10; - ref QuestSequence reference14 = ref span9[2]; + num++; + ref QuestSequence reference14 = ref span14[num]; QuestSequence obj12 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1021227u, new Vector3(567.0709f, 72.83738f, 138.93335f), 612); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.Interact, 1021227u, new Vector3(567.0709f, 72.83738f, 138.93335f), 612); obj12.Steps = list18; reference14 = obj12; - ref QuestSequence reference15 = ref span9[3]; + num++; + ref QuestSequence reference15 = ref span14[num]; QuestSequence obj13 = new QuestSequence { Sequence = 3 @@ -177240,18 +213755,23 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1021948u, new Vector3(608.97217f, 49.31076f, 327.10767f), 612); + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.Interact, 1021948u, new Vector3(608.97217f, 49.31076f, 327.10767f), 612); obj13.Steps = list19; reference15 = obj13; - ref QuestSequence reference16 = ref span9[4]; + num++; + ref QuestSequence reference16 = ref span14[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020821u, new Vector3(276.7223f, 76.853935f, -23.51416f), 612); + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020821u, new Vector3(276.7223f, 76.853935f, -23.51416f), 612); obj14.Steps = list20; reference16 = obj14; questRoot2.QuestSequence = list14; @@ -177261,13 +213781,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "JerryWester"; + Span span21 = CollectionsMarshal.AsSpan(list21); + index = 0; + span21[index] = "JerryWester"; questRoot3.Author = list21; - num = 3; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span11 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference17 = ref span11[0]; + index = 3; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + Span span22 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference17 = ref span22[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -177275,7 +213798,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020807u, new Vector3(433.9818f, 114.48304f, 233.29517f), 612) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020807u, new Vector3(433.9818f, 114.48304f, 233.29517f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones, SkipConditions = new SkipConditions @@ -177288,15 +213813,18 @@ public static class AssemblyQuestLoader }; obj15.Steps = list23; reference17 = obj15; - ref QuestSequence reference18 = ref span11[1]; + num++; + ref QuestSequence reference18 = ref span22[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list24)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference19 = ref span24[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(385.1642f, 74.01643f, 135.44316f), 612) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -177304,7 +213832,9 @@ public static class AssemblyQuestLoader num3 = 1; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = 6655u; + Span span25 = CollectionsMarshal.AsSpan(list25); + num4 = 0; + span25[num4] = 6655u; obj17.KillEnemyDataIds = list25; obj17.CombatItemUse = new CombatItemUse { @@ -177315,7 +213845,8 @@ public static class AssemblyQuestLoader reference19 = obj17; obj16.Steps = list24; reference18 = obj16; - ref QuestSequence reference20 = ref span11[2]; + num++; + ref QuestSequence reference20 = ref span22[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -177323,7 +213854,9 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020807u, new Vector3(433.9818f, 114.48304f, 233.29517f), 612) + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020807u, new Vector3(433.9818f, 114.48304f, 233.29517f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; @@ -177336,27 +213869,33 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "liza"; + Span span27 = CollectionsMarshal.AsSpan(list27); + index = 0; + span27[index] = "liza"; questRoot4.Author = list27; - num = 4; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span12 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference21 = ref span12[0]; + index = 4; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + Span span28 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference21 = ref span28[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj19.Steps = list29; reference21 = obj19; - ref QuestSequence reference22 = ref span12[1]; + num++; + ref QuestSequence reference22 = ref span28[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -177364,34 +213903,42 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1023160u, new Vector3(303.12048f, 46.087757f, 493.0647f), 612) + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new QuestStep(EInteractionType.Interact, 1023160u, new Vector3(303.12048f, 46.087757f, 493.0647f), 612) { Fly = true }; obj20.Steps = list30; reference22 = obj20; - ref QuestSequence reference23 = ref span12[2]; + num++; + ref QuestSequence reference23 = ref span28[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list31)[0]; + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref QuestStep reference24 = ref span31[num2]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, 2008763u, new Vector3(465.7511f, 77.56152f, 118.08948f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = 7545u; + num4 = 1; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + Span span32 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span32[num3] = 7545u; obj22.KillEnemyDataIds = list32; reference24 = obj22; obj21.Steps = list31; reference23 = obj21; - ref QuestSequence reference25 = ref span12[3]; + num++; + ref QuestSequence reference25 = ref span28[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -177399,7 +213946,9 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023161u, new Vector3(465.62903f, 77.67306f, 114.854614f), 612) + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023161u, new Vector3(465.62903f, 77.67306f, 114.854614f), 612) { StopDistance = 7f, NextQuestId = new QuestId(2825) @@ -177413,27 +213962,33 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; + Span span34 = CollectionsMarshal.AsSpan(list34); + index = 0; + span34[index] = "liza"; questRoot5.Author = list34; - num = 3; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span13 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference26 = ref span13[0]; + index = 3; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + Span span35 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference26 = ref span35[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023161u, new Vector3(465.62903f, 77.67306f, 114.854614f), 612) + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023161u, new Vector3(465.62903f, 77.67306f, 114.854614f), 612) { StopDistance = 7f }; obj24.Steps = list36; reference26 = obj24; - ref QuestSequence reference27 = ref span13[1]; + num++; + ref QuestSequence reference27 = ref span35[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -177441,21 +213996,26 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1023162u, new Vector3(403.8911f, 114.18445f, 212.32922f), 612) + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.Interact, 1023162u, new Vector3(403.8911f, 114.18445f, 212.32922f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj25.Steps = list37; reference27 = obj25; - ref QuestSequence reference28 = ref span13[2]; + num++; + ref QuestSequence reference28 = ref span35[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023163u, new Vector3(305.16516f, 45.654415f, 491.59985f), 612) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023163u, new Vector3(305.16516f, 45.654415f, 491.59985f), 612) { Fly = true, NextQuestId = new QuestId(2826) @@ -177469,13 +214029,16 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "liza"; + Span span39 = CollectionsMarshal.AsSpan(list39); + index = 0; + span39[index] = "liza"; questRoot6.Author = list39; - num = 6; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span14 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference29 = ref span14[0]; + index = 6; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + Span span40 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference29 = ref span40[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -177483,19 +214046,23 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023163u, new Vector3(305.16516f, 45.654415f, 491.59985f), 612); + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023163u, new Vector3(305.16516f, 45.654415f, 491.59985f), 612); obj27.Steps = list41; reference29 = obj27; - ref QuestSequence reference30 = ref span14[1]; + num++; + ref QuestSequence reference30 = ref span40[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - Span span15 = CollectionsMarshal.AsSpan(list42); - span15[0] = new QuestStep(EInteractionType.Interact, 1019531u, new Vector3(-70.2984f, 56.0216f, 210.22351f), 612) + index2 = 2; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.Interact, 1019531u, new Vector3(-70.2984f, 56.0216f, 210.22351f), 612) { TargetTerritoryId = (ushort)612, SkipConditions = new SkipConditions @@ -177506,13 +214073,15 @@ public static class AssemblyQuestLoader } } }; - span15[1] = new QuestStep(EInteractionType.Interact, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + num2++; + span42[num2] = new QuestStep(EInteractionType.Interact, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { Fly = true }; obj28.Steps = list42; reference30 = obj28; - ref QuestSequence reference31 = ref span14[2]; + num++; + ref QuestSequence reference31 = ref span40[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -177520,29 +214089,35 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.UseItem, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.UseItem, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { ItemId = 2002274u, GroundTarget = true }; obj29.Steps = list43; reference31 = obj29; - ref QuestSequence reference32 = ref span14[3]; + num++; + ref QuestSequence reference32 = ref span40[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.UseItem, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.UseItem, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { ItemId = 2002274u, GroundTarget = true }; obj30.Steps = list44; reference32 = obj30; - ref QuestSequence reference33 = ref span14[4]; + num++; + ref QuestSequence reference33 = ref span40[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -177550,22 +214125,27 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.UseItem, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.UseItem, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { ItemId = 2002274u, GroundTarget = true }; obj31.Steps = list45; reference33 = obj31; - ref QuestSequence reference34 = ref span14[5]; + num++; + ref QuestSequence reference34 = ref span40[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { NextQuestId = new QuestId(2827) }; @@ -177578,13 +214158,16 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "liza"; + Span span47 = CollectionsMarshal.AsSpan(list47); + index = 0; + span47[index] = "liza"; questRoot7.Author = list47; - num = 5; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span16 = CollectionsMarshal.AsSpan(list48); - ref QuestSequence reference35 = ref span16[0]; + index = 5; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + Span span48 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref QuestSequence reference35 = ref span48[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -177592,24 +214175,30 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612); + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span49[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612); obj33.Steps = list49; reference35 = obj33; - ref QuestSequence reference36 = ref span16[1]; + num++; + ref QuestSequence reference36 = ref span48[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.Interact, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj34.Steps = list50; reference36 = obj34; - ref QuestSequence reference37 = ref span16[2]; + num++; + ref QuestSequence reference37 = ref span48[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -177617,27 +214206,33 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 2008764u, new Vector3(608.1482f, 48.02002f, 362.6306f), 612) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.Interact, 2008764u, new Vector3(608.1482f, 48.02002f, 362.6306f), 612) { Fly = true }; obj35.Steps = list51; reference37 = obj35; - ref QuestSequence reference38 = ref span16[3]; + num++; + ref QuestSequence reference38 = ref span48[num]; QuestSequence obj36 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1023166u, new Vector3(607.3242f, 48.087296f, 364.79736f), 612) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.Interact, 1023166u, new Vector3(607.3242f, 48.087296f, 364.79736f), 612) { StopDistance = 5f }; obj36.Steps = list52; reference38 = obj36; - ref QuestSequence reference39 = ref span16[4]; + num++; + ref QuestSequence reference39 = ref span48[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -177645,7 +214240,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones, NextQuestId = new QuestId(2828) @@ -177659,24 +214256,30 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "liza"; + Span span54 = CollectionsMarshal.AsSpan(list54); + index = 0; + span54[index] = "liza"; questRoot8.Author = list54; - num = 5; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span17 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference40 = ref span17[0]; + index = 5; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + Span span55 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference40 = ref span55[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612); + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612); obj38.Steps = list56; reference40 = obj38; - ref QuestSequence reference41 = ref span17[1]; + num++; + ref QuestSequence reference41 = ref span55[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -177684,8 +214287,9 @@ public static class AssemblyQuestLoader num2 = 2; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span18 = CollectionsMarshal.AsSpan(list57); - span18[0] = new QuestStep(EInteractionType.Interact, 1019531u, new Vector3(-70.2984f, 56.0216f, 210.22351f), 612) + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.Interact, 1019531u, new Vector3(-70.2984f, 56.0216f, 210.22351f), 612) { TargetTerritoryId = (ushort)612, SkipConditions = new SkipConditions @@ -177696,7 +214300,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference42 = ref span18[1]; + index2++; + ref QuestStep reference42 = ref span57[index2]; QuestStep obj40 = new QuestStep(EInteractionType.Combat, null, new Vector3(-641.61725f, 78.03014f, 118.72834f), 612) { StopDistance = 0.5f, @@ -177705,26 +214310,33 @@ public static class AssemblyQuestLoader num3 = 3; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span19 = CollectionsMarshal.AsSpan(list58); - span19[0] = 7825u; - span19[1] = 7826u; - span19[2] = 7827u; + Span span58 = CollectionsMarshal.AsSpan(list58); + num4 = 0; + span58[num4] = 7825u; + num4++; + span58[num4] = 7826u; + num4++; + span58[num4] = 7827u; obj40.KillEnemyDataIds = list58; reference42 = obj40; obj39.Steps = list57; reference41 = obj39; - ref QuestSequence reference43 = ref span17[2]; + num++; + ref QuestSequence reference43 = ref span55[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1023409u, new Vector3(-642.7558f, 77.98847f, 117.631714f), 612); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.Interact, 1023409u, new Vector3(-642.7558f, 77.98847f, 117.631714f), 612); obj41.Steps = list59; reference43 = obj41; - ref QuestSequence reference44 = ref span17[3]; + num++; + ref QuestSequence reference44 = ref span55[num]; QuestSequence obj42 = new QuestSequence { Sequence = 3 @@ -177732,21 +214344,26 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 2008893u, new Vector3(-648.49316f, 48.41687f, 245.89917f), 612) + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.Interact, 2008893u, new Vector3(-648.49316f, 48.41687f, 245.89917f), 612) { Fly = true }; obj42.Steps = list60; reference44 = obj42; - ref QuestSequence reference45 = ref span17[4]; + num++; + ref QuestSequence reference45 = ref span55[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; @@ -177759,13 +214376,16 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "JerryWester"; + Span span62 = CollectionsMarshal.AsSpan(list62); + index = 0; + span62[index] = "JerryWester"; questRoot9.Author = list62; - num = 4; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span20 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference46 = ref span20[0]; + index = 4; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + Span span63 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference46 = ref span63[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -177773,7 +214393,9 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020873u, new Vector3(-327.96222f, 258.90652f, 757.3815f), 620) + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020873u, new Vector3(-327.96222f, 258.90652f, 757.3815f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, SkipConditions = new SkipConditions @@ -177786,18 +214408,22 @@ public static class AssemblyQuestLoader }; obj44.Steps = list64; reference46 = obj44; - ref QuestSequence reference47 = ref span20[1]; + num++; + ref QuestSequence reference47 = ref span63[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1023258u, new Vector3(-232.3186f, 258.90652f, 799.46594f), 620); + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span65[num2] = new QuestStep(EInteractionType.Interact, 1023258u, new Vector3(-232.3186f, 258.90652f, 799.46594f), 620); obj45.Steps = list65; reference47 = obj45; - ref QuestSequence reference48 = ref span20[2]; + num++; + ref QuestSequence reference48 = ref span63[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -177805,64 +214431,89 @@ public static class AssemblyQuestLoader num2 = 4; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span21 = CollectionsMarshal.AsSpan(list66); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.80753f, 258.90652f, 786.1918f), 620) + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span66[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.80753f, 258.90652f, 786.1918f), 620) { Mount = true }; - ref QuestStep reference49 = ref span21[1]; + index2++; + ref QuestStep reference49 = ref span66[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1023259u, new Vector3(-293.41577f, 258.9065f, 788.63196f), 620); - num3 = 6; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - Span span22 = CollectionsMarshal.AsSpan(list67); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list67 = new List(num4); + CollectionsMarshal.SetCount(list67, num4); + Span span67 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list67; reference49 = questStep3; - ref QuestStep reference50 = ref span21[2]; + index2++; + ref QuestStep reference50 = ref span66[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1020871u, new Vector3(-237.90344f, 257.71973f, 741.5731f), 620); num3 = 6; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - Span span23 = CollectionsMarshal.AsSpan(list68); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span68 = CollectionsMarshal.AsSpan(list68); + num4 = 0; + span68[num4] = null; + num4++; + span68[num4] = null; + num4++; + span68[num4] = null; + num4++; + span68[num4] = null; + num4++; + span68[num4] = null; + num4++; + span68[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list68; reference50 = questStep4; - ref QuestStep reference51 = ref span21[3]; + index2++; + ref QuestStep reference51 = ref span66[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1020870u, new Vector3(-218.61603f, 257.52652f, 737.1786f), 620); - num3 = 6; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - Span span24 = CollectionsMarshal.AsSpan(list69); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list69 = new List(num4); + CollectionsMarshal.SetCount(list69, num4); + Span span69 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span69[num3] = null; + num3++; + span69[num3] = null; + num3++; + span69[num3] = null; + num3++; + span69[num3] = null; + num3++; + span69[num3] = null; + num3++; + span69[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list69; reference51 = questStep5; obj46.Steps = list66; reference48 = obj46; - ref QuestSequence reference52 = ref span20[3]; + num++; + ref QuestSequence reference52 = ref span63[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023258u, new Vector3(-232.3186f, 258.90652f, 799.46594f), 620); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023258u, new Vector3(-232.3186f, 258.90652f, 799.46594f), 620); obj47.Steps = list70; reference52 = obj47; questRoot9.QuestSequence = list63; @@ -177876,13 +214527,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "JerryWester"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -177890,21 +214544,27 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023167u, new Vector3(313.28296f, 324.51355f, 362.4475f), 620); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023167u, new Vector3(313.28296f, 324.51355f, 362.4475f), 620); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1023168u, new Vector3(357.07642f, 325.1959f, 333.5775f), 620); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1023168u, new Vector3(357.07642f, 325.1959f, 333.5775f), 620); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -177912,22 +214572,26 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1023169u, new Vector3(-199.35913f, 258.90652f, 780.9109f), 620) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1023169u, new Vector3(-199.35913f, 258.90652f, 780.9109f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span2 = CollectionsMarshal.AsSpan(list6); - span2[0] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) + index2 = 4; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) { TargetTerritoryId = (ushort)620, SkipConditions = new SkipConditions @@ -177938,7 +214602,8 @@ public static class AssemblyQuestLoader } } }; - span2[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) + num2++; + span6[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) { SkipConditions = new SkipConditions { @@ -177948,7 +214613,8 @@ public static class AssemblyQuestLoader } } }; - span2[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-791.2012f, 46.3994f, -15.904689f), 621) + num2++; + span6[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-791.2012f, 46.3994f, -15.904689f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -177963,10 +214629,12 @@ public static class AssemblyQuestLoader } } }; - span2[3] = new QuestStep(EInteractionType.Interact, 1023168u, new Vector3(357.07642f, 325.1959f, 333.5775f), 620); + num2++; + span6[num2] = new QuestStep(EInteractionType.Interact, 1023168u, new Vector3(357.07642f, 325.1959f, 333.5775f), 620); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -177974,9 +214642,11 @@ public static class AssemblyQuestLoader num2 = 2; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(364.314f, 326.0898f, 338.17725f), 620); - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1023167u, new Vector3(313.28296f, 324.51355f, 362.4475f), 620); + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(364.314f, 326.0898f, 338.17725f), 620); + index2++; + span7[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023167u, new Vector3(313.28296f, 324.51355f, 362.4475f), 620); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -177986,24 +214656,30 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "JerryWester"; + Span span8 = CollectionsMarshal.AsSpan(list8); + index = 0; + span8[index] = "JerryWester"; questRoot2.Author = list8; - num = 4; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span4 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span4[0]; + index = 4; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + Span span9 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span9[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020893u, new Vector3(283.77197f, 322.87146f, 752.34607f), 620); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020893u, new Vector3(283.77197f, 322.87146f, 752.34607f), 620); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[1]; + num++; + ref QuestSequence reference7 = ref span9[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -178011,66 +214687,91 @@ public static class AssemblyQuestLoader num2 = 3; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span5 = CollectionsMarshal.AsSpan(list11); - ref QuestStep reference8 = ref span5[0]; + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + ref QuestStep reference8 = ref span11[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1020888u, new Vector3(321.21765f, 324.3033f, 390.70715f), 620); int num3 = 6; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span6 = CollectionsMarshal.AsSpan(list12); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span12 = CollectionsMarshal.AsSpan(list12); + int num4 = 0; + span12[num4] = null; + num4++; + span12[num4] = null; + num4++; + span12[num4] = null; + num4++; + span12[num4] = null; + num4++; + span12[num4] = null; + num4++; + span12[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list12; reference8 = questStep; - ref QuestStep reference9 = ref span5[1]; + index2++; + ref QuestStep reference9 = ref span11[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1020886u, new Vector3(342.70227f, 325.54596f, 359.54822f), 620); - num3 = 6; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - Span span7 = CollectionsMarshal.AsSpan(list13); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list13 = new List(num4); + CollectionsMarshal.SetCount(list13, num4); + Span span13 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list13; reference9 = questStep2; - ref QuestStep reference10 = ref span5[2]; + index2++; + ref QuestStep reference10 = ref span11[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1020887u, new Vector3(337.20898f, 324.30093f, 328.51135f), 620); num3 = 6; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - Span span8 = CollectionsMarshal.AsSpan(list14); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span14 = CollectionsMarshal.AsSpan(list14); + num4 = 0; + span14[num4] = null; + num4++; + span14[num4] = null; + num4++; + span14[num4] = null; + num4++; + span14[num4] = null; + num4++; + span14[num4] = null; + num4++; + span14[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list14; reference10 = questStep3; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference11 = ref span4[2]; + num++; + ref QuestSequence reference11 = ref span9[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1020870u, new Vector3(-218.61603f, 257.52652f, 737.1786f), 620) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.Interact, 1020870u, new Vector3(-218.61603f, 257.52652f, 737.1786f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; obj8.Steps = list15; reference11 = obj8; - ref QuestSequence reference12 = ref span4[3]; + num++; + ref QuestSequence reference12 = ref span9[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -178078,8 +214779,9 @@ public static class AssemblyQuestLoader num2 = 4; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span9 = CollectionsMarshal.AsSpan(list16); - span9[0] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) { TargetTerritoryId = (ushort)620, SkipConditions = new SkipConditions @@ -178090,7 +214792,8 @@ public static class AssemblyQuestLoader } } }; - span9[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) + index2++; + span16[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) { SkipConditions = new SkipConditions { @@ -178100,7 +214803,8 @@ public static class AssemblyQuestLoader } } }; - span9[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-791.2012f, 46.3994f, -15.904689f), 621) + index2++; + span16[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-791.2012f, 46.3994f, -15.904689f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -178115,7 +214819,8 @@ public static class AssemblyQuestLoader } } }; - span9[3] = new QuestStep(EInteractionType.CompleteQuest, 1020893u, new Vector3(283.77197f, 322.87146f, 752.34607f), 620); + index2++; + span16[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020893u, new Vector3(283.77197f, 322.87146f, 752.34607f), 620); obj9.Steps = list16; reference12 = obj9; questRoot2.QuestSequence = list9; @@ -178125,21 +214830,26 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "JerryWester"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "JerryWester"; questRoot3.Author = list17; - num = 3; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span10 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span10[0]; + index = 3; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span18[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022992u, new Vector3(-506.6148f, 8.7f, -40.299072f), 621) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022992u, new Vector3(-506.6148f, 8.7f, -40.299072f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -178152,7 +214862,8 @@ public static class AssemblyQuestLoader }; obj10.Steps = list19; reference13 = obj10; - ref QuestSequence reference14 = ref span10[1]; + num++; + ref QuestSequence reference14 = ref span18[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -178160,28 +214871,35 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + ref QuestStep reference15 = ref span20[index2]; QuestStep obj12 = new QuestStep(EInteractionType.Combat, null, new Vector3(-257.40616f, 98.88382f, -488.98062f), 621) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = 7849u; + num4 = 1; + List list21 = new List(num4); + CollectionsMarshal.SetCount(list21, num4); + Span span21 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span21[num3] = 7849u; obj12.KillEnemyDataIds = list21; reference15 = obj12; obj11.Steps = list20; reference14 = obj11; - ref QuestSequence reference16 = ref span10[2]; + num++; + ref QuestSequence reference16 = ref span18[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022992u, new Vector3(-506.6148f, 8.7f, -40.299072f), 621) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022992u, new Vector3(-506.6148f, 8.7f, -40.299072f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; @@ -178194,13 +214912,16 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "JerryWester"; + Span span23 = CollectionsMarshal.AsSpan(list23); + index = 0; + span23[index] = "JerryWester"; questRoot4.Author = list23; - num = 3; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span11 = CollectionsMarshal.AsSpan(list24); - ref QuestSequence reference17 = ref span11[0]; + index = 3; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + Span span24 = CollectionsMarshal.AsSpan(list24); + num = 0; + ref QuestSequence reference17 = ref span24[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -178208,7 +214929,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -178221,18 +214944,22 @@ public static class AssemblyQuestLoader }; obj14.Steps = list25; reference17 = obj14; - ref QuestSequence reference18 = ref span11[1]; + num++; + ref QuestSequence reference18 = ref span24[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - Span span12 = CollectionsMarshal.AsSpan(list26); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-64.335396f, -0.3f, -341.21475f), 621); - span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.4417508f, 0.14104319f, -387.06744f), 621); - ref QuestStep reference19 = ref span12[2]; + index2 = 3; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-64.335396f, -0.3f, -341.21475f), 621); + num2++; + span26[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.4417508f, 0.14104319f, -387.06744f), 621); + num2++; + ref QuestStep reference19 = ref span26[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, null, new Vector3(-89.3111f, 42.999996f, -677.6074f), 621) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -178240,7 +214967,9 @@ public static class AssemblyQuestLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = new ComplexCombatData + Span span27 = CollectionsMarshal.AsSpan(list27); + num4 = 0; + span27[num4] = new ComplexCombatData { DataId = 6651u, MinimumKillCount = 4u @@ -178249,7 +214978,8 @@ public static class AssemblyQuestLoader reference19 = obj16; obj15.Steps = list26; reference18 = obj15; - ref QuestSequence reference20 = ref span11[2]; + num++; + ref QuestSequence reference20 = ref span24[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -178257,7 +214987,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; @@ -178270,21 +215002,26 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + span29[index] = "JerryWester"; questRoot5.Author = list29; - num = 5; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span13 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference21 = ref span13[0]; + index = 5; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + Span span30 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference21 = ref span30[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022987u, new Vector3(-662.13477f, 49.999794f, -48.874695f), 621) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022987u, new Vector3(-662.13477f, 49.999794f, -48.874695f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -178297,7 +215034,8 @@ public static class AssemblyQuestLoader }; obj18.Steps = list31; reference21 = obj18; - ref QuestSequence reference22 = ref span13[1]; + num++; + ref QuestSequence reference22 = ref span30[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -178305,26 +215043,32 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1023174u, new Vector3(-82.29199f, 1.134715f, -297.56616f), 621); + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.Interact, 1023174u, new Vector3(-82.29199f, 1.134715f, -297.56616f), 621); obj19.Steps = list32; reference22 = obj19; - ref QuestSequence reference23 = ref span13[2]; + num++; + ref QuestSequence reference23 = ref span30[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span14 = CollectionsMarshal.AsSpan(list33); - span14[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(-90.963715f, -0.6f, -263.12756f), 621) + index2 = 2; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-90.963715f, -0.6f, -263.12756f), 621) { StopDistance = 0.5f }; - span14[1] = new QuestStep(EInteractionType.Interact, 2008779u, new Vector3(-56.229553f, -339.04022f, -103.89868f), 621); + num2++; + span33[num2] = new QuestStep(EInteractionType.Interact, 2008779u, new Vector3(-56.229553f, -339.04022f, -103.89868f), 621); obj20.Steps = list33; reference23 = obj20; - ref QuestSequence reference24 = ref span13[3]; + num++; + ref QuestSequence reference24 = ref span30[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 @@ -178332,26 +215076,31 @@ public static class AssemblyQuestLoader num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span15 = CollectionsMarshal.AsSpan(list34); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-90.963715f, -0.6f, -263.12756f), 621) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-90.963715f, -0.6f, -263.12756f), 621) { StopDistance = 0.5f, DisableNavmesh = true, Mount = true, RestartNavigationIfCancelled = false }; - span15[1] = new QuestStep(EInteractionType.Interact, 1023174u, new Vector3(-82.29199f, 1.134715f, -297.56616f), 621); + index2++; + span34[index2] = new QuestStep(EInteractionType.Interact, 1023174u, new Vector3(-82.29199f, 1.134715f, -297.56616f), 621); obj21.Steps = list34; reference24 = obj21; - ref QuestSequence reference25 = ref span13[4]; + num++; + ref QuestSequence reference25 = ref span30[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022987u, new Vector3(-662.13477f, 49.999794f, -48.874695f), 621) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022987u, new Vector3(-662.13477f, 49.999794f, -48.874695f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; @@ -178364,13 +215113,16 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "JerryWester"; + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "JerryWester"; questRoot6.Author = list36; - num = 3; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span16 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference26 = ref span16[0]; + index = 3; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference26 = ref span37[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -178378,7 +215130,9 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -178391,28 +215145,33 @@ public static class AssemblyQuestLoader }; obj23.Steps = list38; reference26 = obj23; - ref QuestSequence reference27 = ref span16[1]; + num++; + ref QuestSequence reference27 = ref span37[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - Span span17 = CollectionsMarshal.AsSpan(list39); - span17[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007987u, new Vector3(-380.2091f, 10.055664f, 16.891724f), 621) + index2 = 2; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007987u, new Vector3(-380.2091f, 10.055664f, 16.891724f), 621) { AetherCurrentId = 2818165u }; - ref QuestStep reference28 = ref span17[1]; + num2++; + ref QuestStep reference28 = ref span39[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, null, new Vector3(-197.38828f, 3.820687f, 288.09766f), 621) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = 6599u; + num4 = 1; + List list40 = new List(num4); + CollectionsMarshal.SetCount(list40, num4); + Span span40 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span40[num3] = 6599u; obj25.KillEnemyDataIds = list40; obj25.CombatItemUse = new CombatItemUse { @@ -178423,7 +215182,8 @@ public static class AssemblyQuestLoader reference28 = obj25; obj24.Steps = list39; reference27 = obj24; - ref QuestSequence reference29 = ref span16[2]; + num++; + ref QuestSequence reference29 = ref span37[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -178431,7 +215191,9 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; @@ -178444,21 +215206,26 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "liza"; + Span span42 = CollectionsMarshal.AsSpan(list42); + index = 0; + span42[index] = "liza"; questRoot7.Author = list42; - num = 5; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span18 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference30 = ref span18[0]; + index = 5; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + Span span43 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference30 = ref span43[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -178472,7 +215239,8 @@ public static class AssemblyQuestLoader }; obj27.Steps = list44; reference30 = obj27; - ref QuestSequence reference31 = ref span18[1]; + num++; + ref QuestSequence reference31 = ref span43[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -178480,7 +215248,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1022505u, new Vector3(192.46204f, -2.5453281f, 73.746826f), 132) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.Interact, 1022505u, new Vector3(192.46204f, -2.5453281f, 73.746826f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -178491,15 +215261,18 @@ public static class AssemblyQuestLoader }; obj28.Steps = list45; reference31 = obj28; - ref QuestSequence reference32 = ref span18[2]; + num++; + ref QuestSequence reference32 = ref span43[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AethernetShortcut = new AethernetShortcut { @@ -178509,7 +215282,8 @@ public static class AssemblyQuestLoader }; obj29.Steps = list46; reference32 = obj29; - ref QuestSequence reference33 = ref span18[3]; + num++; + ref QuestSequence reference33 = ref span43[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -178517,22 +215291,27 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1022508u, new Vector3(-71.33594f, -7.877128f, 240.34485f), 152) + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.Interact, 1022508u, new Vector3(-71.33594f, -7.877128f, 240.34485f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj30.Steps = list47; reference33 = obj30; - ref QuestSequence reference34 = ref span18[4]; + num++; + ref QuestSequence reference34 = ref span43[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022511u, new Vector3(-653.13196f, 130f, -523.827f), 612) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022511u, new Vector3(-653.13196f, 130f, -523.827f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, NextQuestId = new QuestId(2891) @@ -178546,13 +215325,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "liza"; questRoot8.Author = list49; - num = 5; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span19 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference35 = ref span19[0]; + index = 5; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference35 = ref span50[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -178560,7 +215342,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022512u, new Vector3(-653.04034f, 130f, -522.1485f), 612) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022512u, new Vector3(-653.04034f, 130f, -522.1485f), 612) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -178574,21 +215358,25 @@ public static class AssemblyQuestLoader }; obj32.Steps = list51; reference35 = obj32; - ref QuestSequence reference36 = ref span19[1]; + num++; + ref QuestSequence reference36 = ref span50[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1022514u, new Vector3(-586.0533f, 130.0406f, -534.59985f), 612) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.Interact, 1022514u, new Vector3(-586.0533f, 130.0406f, -534.59985f), 612) { Fly = true }; obj33.Steps = list52; reference36 = obj33; - ref QuestSequence reference37 = ref span19[2]; + num++; + ref QuestSequence reference37 = ref span50[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -178596,7 +215384,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - ref QuestStep reference38 = ref CollectionsMarshal.AsSpan(list53)[0]; + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + ref QuestStep reference38 = ref span53[index2]; QuestStep obj35 = new QuestStep(EInteractionType.Combat, null, new Vector3(-247.82184f, 61.395123f, -484.64178f), 612) { Fly = true, @@ -178605,28 +215395,34 @@ public static class AssemblyQuestLoader num3 = 2; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - Span span20 = CollectionsMarshal.AsSpan(list54); - span20[0] = 7494u; - span20[1] = 7499u; + Span span54 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span54[num4] = 7494u; + num4++; + span54[num4] = 7499u; obj35.KillEnemyDataIds = list54; reference38 = obj35; obj34.Steps = list53; reference37 = obj34; - ref QuestSequence reference39 = ref span19[3]; + num++; + ref QuestSequence reference39 = ref span50[num]; QuestSequence obj36 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1022515u, new Vector3(-247.82184f, 61.395123f, -484.64178f), 612) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.Interact, 1022515u, new Vector3(-247.82184f, 61.395123f, -484.64178f), 612) { StopDistance = 5f }; obj36.Steps = list55; reference39 = obj36; - ref QuestSequence reference40 = ref span19[4]; + num++; + ref QuestSequence reference40 = ref span50[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -178634,7 +215430,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022513u, new Vector3(-650.9041f, 130f, -520.8667f), 612) + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022513u, new Vector3(-650.9041f, 130f, -520.8667f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, NextQuestId = new QuestId(2892) @@ -178648,21 +215446,26 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "liza"; + Span span57 = CollectionsMarshal.AsSpan(list57); + index = 0; + span57[index] = "liza"; questRoot9.Author = list57; - num = 5; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span21 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference41 = ref span21[0]; + index = 5; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + Span span58 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference41 = ref span58[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022512u, new Vector3(-653.04034f, 130f, -522.1485f), 612) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022512u, new Vector3(-653.04034f, 130f, -522.1485f), 612) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -178676,7 +215479,8 @@ public static class AssemblyQuestLoader }; obj38.Steps = list59; reference41 = obj38; - ref QuestSequence reference42 = ref span21[1]; + num++; + ref QuestSequence reference42 = ref span58[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -178684,27 +215488,33 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1022519u, new Vector3(-616.8155f, 130.14346f, -469.41333f), 612) + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.Interact, 1022519u, new Vector3(-616.8155f, 130.14346f, -469.41333f), 612) { Fly = true }; obj39.Steps = list60; reference42 = obj39; - ref QuestSequence reference43 = ref span21[2]; + num++; + ref QuestSequence reference43 = ref span58[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1022520u, new Vector3(-610.956f, 125.92732f, -424.58234f), 612) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.Interact, 1022520u, new Vector3(-610.956f, 125.92732f, -424.58234f), 612) { Fly = true }; obj40.Steps = list61; reference43 = obj40; - ref QuestSequence reference44 = ref span21[3]; + num++; + ref QuestSequence reference44 = ref span58[num]; QuestSequence obj41 = new QuestSequence { Sequence = 3 @@ -178712,23 +215522,28 @@ public static class AssemblyQuestLoader num2 = 2; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span22 = CollectionsMarshal.AsSpan(list62); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.37027f, 45.90861f, -362.9656f), 612) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.37027f, 45.90861f, -362.9656f), 612) { Fly = true }; - span22[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022522u, new Vector3(214.86218f, 45.93671f, -360.61652f), 612); + index2++; + span62[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022522u, new Vector3(214.86218f, 45.93671f, -360.61652f), 612); obj41.Steps = list62; reference44 = obj41; - ref QuestSequence reference45 = ref span21[4]; + num++; + ref QuestSequence reference45 = ref span58[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022523u, new Vector3(-653.04034f, 130f, -522.17896f), 612) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022523u, new Vector3(-653.04034f, 130f, -522.17896f), 612) { StopDistance = 5f, NextQuestId = new QuestId(2893) @@ -178742,13 +215557,16 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + Span span64 = CollectionsMarshal.AsSpan(list64); + index = 0; + span64[index] = "liza"; questRoot10.Author = list64; - num = 6; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span23 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference46 = ref span23[0]; + index = 6; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + Span span65 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference46 = ref span65[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -178756,7 +215574,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list66)[0]; + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + ref QuestStep reference47 = ref span66[index2]; QuestStep obj44 = new QuestStep(EInteractionType.AcceptQuest, 1022523u, new Vector3(-653.04034f, 130f, -522.17896f), 612) { StopDistance = 5f, @@ -178769,10 +215589,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new DialogueChoice + num4 = 1; + List list67 = new List(num4); + CollectionsMarshal.SetCount(list67, num4); + Span span67 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span67[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBRD680_02893_Q1_000_000"), @@ -178782,21 +215604,25 @@ public static class AssemblyQuestLoader reference47 = obj44; obj43.Steps = list66; reference46 = obj43; - ref QuestSequence reference48 = ref span23[1]; + num++; + ref QuestSequence reference48 = ref span65[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1022514u, new Vector3(-586.0533f, 130.0406f, -534.59985f), 612) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.Interact, 1022514u, new Vector3(-586.0533f, 130.0406f, -534.59985f), 612) { Fly = true }; obj45.Steps = list68; reference48 = obj45; - ref QuestSequence reference49 = ref span23[2]; + num++; + ref QuestSequence reference49 = ref span65[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -178804,7 +215630,9 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list69)[0]; + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + ref QuestStep reference50 = ref span69[index2]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, 2008682u, new Vector3(-610.2846f, 42.801514f, 290.79114f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -178812,29 +215640,35 @@ public static class AssemblyQuestLoader num3 = 2; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span24 = CollectionsMarshal.AsSpan(list70); - span24[0] = 7494u; - span24[1] = 7499u; + Span span70 = CollectionsMarshal.AsSpan(list70); + num4 = 0; + span70[num4] = 7494u; + num4++; + span70[num4] = 7499u; obj47.KillEnemyDataIds = list70; reference50 = obj47; obj46.Steps = list69; reference49 = obj46; - ref QuestSequence reference51 = ref span23[3]; + num++; + ref QuestSequence reference51 = ref span65[num]; QuestSequence obj48 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1022514u, new Vector3(-586.0533f, 130.0406f, -534.59985f), 612) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.Interact, 1022514u, new Vector3(-586.0533f, 130.0406f, -534.59985f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj48.Steps = list71; reference51 = obj48; - ref QuestSequence reference52 = ref span23[4]; + num++; + ref QuestSequence reference52 = ref span65[num]; QuestSequence obj49 = new QuestSequence { Sequence = 4 @@ -178842,12 +215676,16 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list72)[0]; + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + ref QuestStep reference53 = ref span72[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1022527u, new Vector3(-555.871f, 91.035034f, -185.8396f), 612); - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = new DialogueChoice + num4 = 1; + List list73 = new List(num4); + CollectionsMarshal.SetCount(list73, num4); + Span span73 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span73[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBRD680_02893_Q2_000_000"), @@ -178857,15 +215695,18 @@ public static class AssemblyQuestLoader reference53 = questStep4; obj49.Steps = list72; reference52 = obj49; - ref QuestSequence reference54 = ref span23[5]; + num++; + ref QuestSequence reference54 = ref span65[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022528u, new Vector3(-52.35376f, -3.326972f, 20.58435f), 132) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022528u, new Vector3(-52.35376f, -3.326972f, 20.58435f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(2894) @@ -178879,13 +215720,16 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "liza"; + Span span75 = CollectionsMarshal.AsSpan(list75); + index = 0; + span75[index] = "liza"; questRoot11.Author = list75; - num = 8; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span25 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference55 = ref span25[0]; + index = 8; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + Span span76 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference55 = ref span76[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -178893,7 +215737,9 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022528u, new Vector3(-52.35376f, -3.326972f, 20.58435f), 132) + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022528u, new Vector3(-52.35376f, -3.326972f, 20.58435f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -178906,16 +215752,18 @@ public static class AssemblyQuestLoader }; obj51.Steps = list77; reference55 = obj51; - ref QuestSequence reference56 = ref span25[1]; + num++; + ref QuestSequence reference56 = ref span76[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span26 = CollectionsMarshal.AsSpan(list78); - ref QuestStep reference57 = ref span26[0]; + index2 = 2; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + ref QuestStep reference57 = ref span78[num2]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AethernetShortcut = new AethernetShortcut @@ -178927,16 +215775,23 @@ public static class AssemblyQuestLoader num3 = 6; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - Span span27 = CollectionsMarshal.AsSpan(list79); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span79 = CollectionsMarshal.AsSpan(list79); + num4 = 0; + span79[num4] = null; + num4++; + span79[num4] = null; + num4++; + span79[num4] = null; + num4++; + span79[num4] = null; + num4++; + span79[num4] = null; + num4++; + span79[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj53.CompletionQuestVariablesFlags = list79; reference57 = obj53; - ref QuestStep reference58 = ref span26[1]; + num2++; + ref QuestStep reference58 = ref span78[num2]; QuestStep obj54 = new QuestStep(EInteractionType.Interact, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 5f, @@ -178946,21 +215801,28 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - num3 = 6; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span28 = CollectionsMarshal.AsSpan(list80); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list80 = new List(num4); + CollectionsMarshal.SetCount(list80, num4); + Span span80 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span80[num3] = null; + num3++; + span80[num3] = null; + num3++; + span80[num3] = null; + num3++; + span80[num3] = null; + num3++; + span80[num3] = null; + num3++; + span80[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj54.CompletionQuestVariablesFlags = list80; reference58 = obj54; obj52.Steps = list78; reference56 = obj52; - ref QuestSequence reference59 = ref span25[2]; + num++; + ref QuestSequence reference59 = ref span76[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -178968,7 +215830,9 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AethernetShortcut = new AethernetShortcut { @@ -178978,32 +215842,38 @@ public static class AssemblyQuestLoader }; obj55.Steps = list81; reference59 = obj55; - ref QuestSequence reference60 = ref span25[3]; + num++; + ref QuestSequence reference60 = ref span76[num]; QuestSequence obj56 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - Span span29 = CollectionsMarshal.AsSpan(list82); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.93188f, -53.111656f, 330.18417f), 154) + index2 = 3; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.93188f, -53.111656f, 330.18417f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - span29[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-248.3785f, -74.95606f, 424.39832f), 154) + num2++; + span82[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-248.3785f, -74.95606f, 424.39832f), 154) { Fly = true }; - span29[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022529u, new Vector3(-248.52368f, -75.63651f, 426.9015f), 154); + num2++; + span82[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022529u, new Vector3(-248.52368f, -75.63651f, 426.9015f), 154); obj56.Steps = list82; reference60 = obj56; - span25[4] = new QuestSequence + num++; + span76[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference61 = ref span25[5]; + num++; + ref QuestSequence reference61 = ref span76[num]; QuestSequence obj57 = new QuestSequence { Sequence = 5 @@ -179011,27 +215881,33 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1022530u, new Vector3(-246.93683f, -75.542496f, 426.5354f), 154) + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.Interact, 1022530u, new Vector3(-246.93683f, -75.542496f, 426.5354f), 154) { StopDistance = 5f }; obj57.Steps = list83; reference61 = obj57; - ref QuestSequence reference62 = ref span25[6]; + num++; + ref QuestSequence reference62 = ref span76[num]; QuestSequence obj58 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj58.Steps = list84; reference62 = obj58; - ref QuestSequence reference63 = ref span25[7]; + num++; + ref QuestSequence reference63 = ref span76[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -179039,7 +215915,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill @@ -179057,13 +215935,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -179071,7 +215952,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -179085,15 +215968,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -179103,11 +215989,13 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - span[2] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference3 = ref span[3]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -179115,7 +216003,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { StopDistance = 5f, NextQuestId = new QuestId(2901) @@ -179129,21 +216019,26 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; + Span span6 = CollectionsMarshal.AsSpan(list6); + index = 0; + span6[index] = "liza"; questRoot2.Author = list6; - num = 6; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span2 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span2[0]; + index = 6; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + Span span7 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span7[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -179157,7 +216052,8 @@ public static class AssemblyQuestLoader }; obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span2[1]; + num++; + ref QuestSequence reference5 = ref span7[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -179165,22 +216061,27 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1022806u, new Vector3(-164.5686f, 81.072655f, -294.33136f), 180) + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.Interact, 1022806u, new Vector3(-164.5686f, 81.072655f, -294.33136f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[2]; + num++; + ref QuestSequence reference6 = ref span7[num]; QuestSequence obj6 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list10)[0]; + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + ref QuestStep reference7 = ref span10[num2]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, 2008649u, new Vector3(-295.85718f, 53.20813f, -283.98572f), 180) { Fly = true, @@ -179189,14 +216090,17 @@ public static class AssemblyQuestLoader int num3 = 2; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - Span span3 = CollectionsMarshal.AsSpan(list11); - span3[0] = 7500u; - span3[1] = 7501u; + Span span11 = CollectionsMarshal.AsSpan(list11); + int num4 = 0; + span11[num4] = 7500u; + num4++; + span11[num4] = 7501u; obj7.KillEnemyDataIds = list11; reference7 = obj7; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference8 = ref span2[3]; + num++; + ref QuestSequence reference8 = ref span7[num]; QuestSequence obj8 = new QuestSequence { Sequence = 3 @@ -179204,37 +216108,45 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list12)[0]; + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + ref QuestStep reference9 = ref span12[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, 2008650u, new Vector3(-408.9876f, 46.860474f, -305.43988f), 180) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - Span span4 = CollectionsMarshal.AsSpan(list13); - span4[0] = 7500u; - span4[1] = 7501u; + num4 = 2; + List list13 = new List(num4); + CollectionsMarshal.SetCount(list13, num4); + Span span13 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span13[num3] = 7500u; + num3++; + span13[num3] = 7501u; obj9.KillEnemyDataIds = list13; reference9 = obj9; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference10 = ref span2[4]; + num++; + ref QuestSequence reference10 = ref span7[num]; QuestSequence obj10 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1022811u, new Vector3(-359.9756f, 58.723488f, -365.37732f), 180) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.Interact, 1022811u, new Vector3(-359.9756f, 58.723488f, -365.37732f), 180) { Fly = true }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[5]; + num++; + ref QuestSequence reference11 = ref span7[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -179242,7 +216154,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -179257,21 +216171,26 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + Span span16 = CollectionsMarshal.AsSpan(list16); + index = 0; + span16[index] = "liza"; questRoot3.Author = list16; - num = 8; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span5 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span5[0]; + index = 8; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + Span span17 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span17[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -179285,7 +216204,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span5[1]; + num++; + ref QuestSequence reference13 = ref span17[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -179293,22 +216213,27 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1022816u, new Vector3(-4.3183594f, 39.78392f, 197.52808f), 137) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.Interact, 1022816u, new Vector3(-4.3183594f, 39.78392f, 197.52808f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span5[2]; + num++; + ref QuestSequence reference14 = ref span17[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span20[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, 2008651u, new Vector3(-4.8066406f, 39.475098f, 348.2871f), 137) { Fly = true, @@ -179317,14 +216242,17 @@ public static class AssemblyQuestLoader num3 = 2; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span6 = CollectionsMarshal.AsSpan(list21); - span6[0] = 7500u; - span6[1] = 7501u; + Span span21 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span21[num4] = 7500u; + num4++; + span21[num4] = 7501u; obj15.KillEnemyDataIds = list21; reference15 = obj15; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference16 = ref span5[3]; + num++; + ref QuestSequence reference16 = ref span17[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -179332,31 +216260,38 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list22)[0]; + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref QuestStep reference17 = ref span22[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, 2008652u, new Vector3(-82.59711f, 38.437378f, 501.42664f), 137) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span7 = CollectionsMarshal.AsSpan(list23); - span7[0] = 7502u; - span7[1] = 7503u; + num4 = 2; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + Span span23 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span23[num3] = 7502u; + num3++; + span23[num3] = 7503u; obj17.KillEnemyDataIds = list23; reference17 = obj17; obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference18 = ref span5[4]; + num++; + ref QuestSequence reference18 = ref span17[num]; QuestSequence obj18 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list24)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference19 = ref span24[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, 2008653u, new Vector3(-115.70923f, 49.66809f, 603.02124f), 137) { Fly = true, @@ -179365,14 +216300,17 @@ public static class AssemblyQuestLoader num3 = 2; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span8 = CollectionsMarshal.AsSpan(list25); - span8[0] = 7502u; - span8[1] = 7503u; + Span span25 = CollectionsMarshal.AsSpan(list25); + num4 = 0; + span25[num4] = 7502u; + num4++; + span25[num4] = 7503u; obj19.KillEnemyDataIds = list25; reference19 = obj19; obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference20 = ref span5[5]; + num++; + ref QuestSequence reference20 = ref span17[num]; QuestSequence obj20 = new QuestSequence { Sequence = 5 @@ -179380,27 +216318,33 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1022821u, new Vector3(-149.85895f, 55.805172f, 642.7251f), 137) + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.Interact, 1022821u, new Vector3(-149.85895f, 55.805172f, 642.7251f), 137) { Fly = true }; obj20.Steps = list26; reference20 = obj20; - ref QuestSequence reference21 = ref span5[6]; + num++; + ref QuestSequence reference21 = ref span17[num]; QuestSequence obj21 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1022825u, new Vector3(-208.08728f, 46.619385f, 467.73462f), 137) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.Interact, 1022825u, new Vector3(-208.08728f, 46.619385f, 467.73462f), 137) { Fly = true }; obj21.Steps = list27; reference21 = obj21; - ref QuestSequence reference22 = ref span5[7]; + num++; + ref QuestSequence reference22 = ref span17[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -179408,7 +216352,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -179423,21 +216369,26 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "liza"; + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + span29[index] = "liza"; questRoot4.Author = list29; - num = 6; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span9 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference23 = ref span9[0]; + index = 6; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + Span span30 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference23 = ref span30[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -179451,7 +216402,8 @@ public static class AssemblyQuestLoader }; obj23.Steps = list31; reference23 = obj23; - ref QuestSequence reference24 = ref span9[1]; + num++; + ref QuestSequence reference24 = ref span30[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 @@ -179459,26 +216411,34 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span10 = CollectionsMarshal.AsSpan(list32); - ref QuestStep reference25 = ref span10[0]; + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference25 = ref span32[index2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1019355u, new Vector3(556.8779f, -19.505642f, 397.14648f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; - num3 = 6; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span11 = CollectionsMarshal.AsSpan(list33); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj25.CompletionQuestVariablesFlags = list33; reference25 = obj25; - ref QuestStep reference26 = ref span10[1]; + index2++; + ref QuestStep reference26 = ref span32[index2]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 1019347u, new Vector3(575.2803f, -19.505632f, 343.74f), 622) { Fly = true @@ -179486,43 +216446,59 @@ public static class AssemblyQuestLoader num3 = 6; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span12 = CollectionsMarshal.AsSpan(list34); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span34 = CollectionsMarshal.AsSpan(list34); + num4 = 0; + span34[num4] = null; + num4++; + span34[num4] = null; + num4++; + span34[num4] = null; + num4++; + span34[num4] = null; + num4++; + span34[num4] = null; + num4++; + span34[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj26.CompletionQuestVariablesFlags = list34; reference26 = obj26; - ref QuestStep reference27 = ref span10[2]; + index2++; + ref QuestStep reference27 = ref span32[index2]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 1019354u, new Vector3(573.6323f, -19.505655f, 311.6654f), 622) { Fly = true }; - num3 = 6; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - Span span13 = CollectionsMarshal.AsSpan(list35); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list35 = new List(num4); + CollectionsMarshal.SetCount(list35, num4); + Span span35 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj27.CompletionQuestVariablesFlags = list35; reference27 = obj27; obj24.Steps = list32; reference24 = obj24; - ref QuestSequence reference28 = ref span9[2]; + num++; + ref QuestSequence reference28 = ref span30[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list36)[0]; + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + ref QuestStep reference29 = ref span36[num2]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, null, new Vector3(-186.52919f, 2.935472f, 369.28806f), 622) { StopDistance = 0.5f, @@ -179532,12 +216508,15 @@ public static class AssemblyQuestLoader num3 = 1; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = 6641u; + Span span37 = CollectionsMarshal.AsSpan(list37); + num4 = 0; + span37[num4] = 6641u; obj29.KillEnemyDataIds = list37; reference29 = obj29; obj28.Steps = list36; reference28 = obj28; - ref QuestSequence reference30 = ref span9[3]; + num++; + ref QuestSequence reference30 = ref span30[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -179545,27 +216524,33 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1022832u, new Vector3(-183.76447f, 2.8128173f, 370.3822f), 622) + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.Interact, 1022832u, new Vector3(-183.76447f, 2.8128173f, 370.3822f), 622) { StopDistance = 5f }; obj30.Steps = list38; reference30 = obj30; - ref QuestSequence reference31 = ref span9[4]; + num++; + ref QuestSequence reference31 = ref span30[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1022834u, new Vector3(-339.25385f, 21.774029f, 268.6045f), 622) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.Interact, 1022834u, new Vector3(-339.25385f, 21.774029f, 268.6045f), 622) { Fly = true }; obj31.Steps = list39; reference31 = obj31; - ref QuestSequence reference32 = ref span9[5]; + num++; + ref QuestSequence reference32 = ref span30[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -179573,16 +216558,20 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - ref QuestStep reference33 = ref CollectionsMarshal.AsSpan(list40)[0]; + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + ref QuestStep reference33 = ref span40[index2]; QuestStep obj33 = new QuestStep(EInteractionType.CompleteQuest, 1022836u, new Vector3(525.10876f, -19.50681f, 403.3722f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; - num3 = 1; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = new DialogueChoice + num4 = 1; + List list41 = new List(num4); + CollectionsMarshal.SetCount(list41, num4); + Span span41 = CollectionsMarshal.AsSpan(list41); + num3 = 0; + span41[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBWAR680_02903_Q1_000_075"), @@ -179600,21 +216589,26 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "liza"; + Span span42 = CollectionsMarshal.AsSpan(list42); + index = 0; + span42[index] = "liza"; questRoot5.Author = list42; - num = 10; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span14 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference34 = ref span14[0]; + index = 10; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + Span span43 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference34 = ref span43[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022836u, new Vector3(525.10876f, -19.50681f, 403.3722f), 622) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022836u, new Vector3(525.10876f, -19.50681f, 403.3722f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -179632,7 +216626,8 @@ public static class AssemblyQuestLoader }; obj34.Steps = list44; reference34 = obj34; - ref QuestSequence reference35 = ref span14[1]; + num++; + ref QuestSequence reference35 = ref span43[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -179640,24 +216635,30 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1022837u, new Vector3(548.97375f, -19.503174f, 277.57678f), 622) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.Interact, 1022837u, new Vector3(548.97375f, -19.503174f, 277.57678f), 622) { Fly = true }; obj35.Steps = list45; reference35 = obj35; - ref QuestSequence reference36 = ref span14[2]; + num++; + ref QuestSequence reference36 = ref span43[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(534.11285f, 38.830116f, -473.95575f), 622); + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(534.11285f, 38.830116f, -473.95575f), 622); obj36.Steps = list46; reference36 = obj36; - ref QuestSequence reference37 = ref span14[3]; + num++; + ref QuestSequence reference37 = ref span43[num]; QuestSequence obj37 = new QuestSequence { Sequence = 3 @@ -179665,28 +216666,34 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1022839u, new Vector3(467.46008f, 39.964607f, -440.8484f), 622) + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.Interact, 1022839u, new Vector3(467.46008f, 39.964607f, -440.8484f), 622) { Fly = true }; obj37.Steps = list47; reference37 = obj37; - ref QuestSequence reference38 = ref span14[4]; + num++; + ref QuestSequence reference38 = ref span43[num]; QuestSequence obj38 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1022836u, new Vector3(525.10876f, -19.50681f, 403.3722f), 622) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.Interact, 1022836u, new Vector3(525.10876f, -19.50681f, 403.3722f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj38.Steps = list48; reference38 = obj38; - ref QuestSequence reference39 = ref span14[5]; + num++; + ref QuestSequence reference39 = ref span43[num]; QuestSequence obj39 = new QuestSequence { Sequence = 5 @@ -179694,21 +216701,26 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Emote, 1022836u, new Vector3(525.10876f, -19.50681f, 403.3722f), 622) + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span49[index2] = new QuestStep(EInteractionType.Emote, 1022836u, new Vector3(525.10876f, -19.50681f, 403.3722f), 622) { Emote = EEmote.Slap }; obj39.Steps = list49; reference39 = obj39; - ref QuestSequence reference40 = ref span14[6]; + num++; + ref QuestSequence reference40 = ref span43[num]; QuestSequence obj40 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list50)[0]; + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + ref QuestStep reference41 = ref span50[num2]; QuestStep obj41 = new QuestStep(EInteractionType.SinglePlayerDuty, 1022840u, new Vector3(233.38672f, 23.094816f, -234.57697f), 622) { Fly = true @@ -179717,17 +216729,21 @@ public static class AssemblyQuestLoader num3 = 1; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = "Keeps attacking the invulnerable boss instead of the mammoths, thus letting your allied NPC die"; + Span span51 = CollectionsMarshal.AsSpan(list51); + num4 = 0; + span51[num4] = "Keeps attacking the invulnerable boss instead of the mammoths, thus letting your allied NPC die"; singlePlayerDutyOptions.Notes = list51; obj41.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference41 = obj41; obj40.Steps = list50; reference40 = obj40; - span14[7] = new QuestSequence + num++; + span43[num] = new QuestSequence { Sequence = 7 }; - ref QuestSequence reference42 = ref span14[8]; + num++; + ref QuestSequence reference42 = ref span43[num]; QuestSequence obj42 = new QuestSequence { Sequence = 8 @@ -179735,18 +216751,23 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1022841u, new Vector3(233.17297f, 23.085413f, -234.42438f), 622); + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.Interact, 1022841u, new Vector3(233.17297f, 23.085413f, -234.42438f), 622); obj42.Steps = list52; reference42 = obj42; - ref QuestSequence reference43 = ref span14[9]; + num++; + ref QuestSequence reference43 = ref span43[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks @@ -179760,13 +216781,16 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "liza"; + Span span54 = CollectionsMarshal.AsSpan(list54); + index = 0; + span54[index] = "liza"; questRoot6.Author = list54; - num = 5; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span15 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference44 = ref span15[0]; + index = 5; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + Span span55 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference44 = ref span55[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -179774,7 +216798,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -179792,21 +216818,25 @@ public static class AssemblyQuestLoader }; obj44.Steps = list56; reference44 = obj44; - ref QuestSequence reference45 = ref span15[1]; + num++; + ref QuestSequence reference45 = ref span55[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1022146u, new Vector3(56.321045f, 207.33994f, -31.937195f), 478) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.Interact, 1022146u, new Vector3(56.321045f, 207.33994f, -31.937195f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj45.Steps = list57; reference45 = obj45; - ref QuestSequence reference46 = ref span15[2]; + num++; + ref QuestSequence reference46 = ref span55[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -179814,63 +216844,88 @@ public static class AssemblyQuestLoader num2 = 3; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span16 = CollectionsMarshal.AsSpan(list58); - ref QuestStep reference47 = ref span16[0]; + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + ref QuestStep reference47 = ref span58[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1017656u, new Vector3(70.7561f, 207.28993f, 0.59503174f), 478); - num3 = 6; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - Span span17 = CollectionsMarshal.AsSpan(list59); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list59 = new List(num4); + CollectionsMarshal.SetCount(list59, num4); + Span span59 = CollectionsMarshal.AsSpan(list59); + num3 = 0; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list59; reference47 = questStep; - ref QuestStep reference48 = ref span16[1]; + index2++; + ref QuestStep reference48 = ref span58[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1013721u, new Vector3(17.380005f, 205.38686f, 37.491333f), 478); num3 = 6; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - Span span18 = CollectionsMarshal.AsSpan(list60); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span60 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span60[num4] = null; + num4++; + span60[num4] = null; + num4++; + span60[num4] = null; + num4++; + span60[num4] = null; + num4++; + span60[num4] = null; + num4++; + span60[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list60; reference48 = questStep2; - ref QuestStep reference49 = ref span16[2]; + index2++; + ref QuestStep reference49 = ref span58[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478); - num3 = 6; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span19 = CollectionsMarshal.AsSpan(list61); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list61 = new List(num4); + CollectionsMarshal.SetCount(list61, num4); + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list61; reference49 = questStep3; obj46.Steps = list58; reference46 = obj46; - ref QuestSequence reference50 = ref span15[3]; + num++; + ref QuestSequence reference50 = ref span55[num]; QuestSequence obj47 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1022148u, new Vector3(-78.965515f, 206.50021f, 23.575134f), 478); + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.Interact, 1022148u, new Vector3(-78.965515f, 206.50021f, 23.575134f), 478); obj47.Steps = list62; reference50 = obj47; - ref QuestSequence reference51 = ref span15[4]; + num++; + ref QuestSequence reference51 = ref span55[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -179878,7 +216933,9 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -179896,21 +216953,26 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + Span span64 = CollectionsMarshal.AsSpan(list64); + index = 0; + span64[index] = "liza"; questRoot7.Author = list64; - num = 7; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span20 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference52 = ref span20[0]; + index = 7; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + Span span65 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference52 = ref span65[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -179928,7 +216990,8 @@ public static class AssemblyQuestLoader }; obj49.Steps = list66; reference52 = obj49; - ref QuestSequence reference53 = ref span20[1]; + num++; + ref QuestSequence reference53 = ref span65[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 @@ -179936,7 +216999,9 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1022151u, new Vector3(115.098755f, 24.398598f, 2.822876f), 418) + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.Interact, 1022151u, new Vector3(115.098755f, 24.398598f, 2.822876f), 418) { AethernetShortcut = new AethernetShortcut { @@ -179946,15 +217011,18 @@ public static class AssemblyQuestLoader }; obj50.Steps = list67; reference53 = obj50; - ref QuestSequence reference54 = ref span20[2]; + num++; + ref QuestSequence reference54 = ref span65[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1022152u, new Vector3(3.9215698f, 27.790508f, -150.83551f), 419) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.Interact, 1022152u, new Vector3(3.9215698f, 27.790508f, -150.83551f), 419) { AethernetShortcut = new AethernetShortcut { @@ -179964,7 +217032,8 @@ public static class AssemblyQuestLoader }; obj51.Steps = list68; reference54 = obj51; - ref QuestSequence reference55 = ref span20[3]; + num++; + ref QuestSequence reference55 = ref span65[num]; QuestSequence obj52 = new QuestSequence { Sequence = 3 @@ -179972,7 +217041,9 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AethernetShortcut = new AethernetShortcut { @@ -179982,15 +217053,18 @@ public static class AssemblyQuestLoader }; obj52.Steps = list69; reference55 = obj52; - ref QuestSequence reference56 = ref span20[4]; + num++; + ref QuestSequence reference56 = ref span65[num]; QuestSequence obj53 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list70)[0]; + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref QuestStep reference57 = ref span70[num2]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, null, new Vector3(660.36426f, 202.54167f, -180.60214f), 397) { StopDistance = 1f, @@ -180001,12 +217075,15 @@ public static class AssemblyQuestLoader num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = 7486u; + Span span71 = CollectionsMarshal.AsSpan(list71); + num4 = 0; + span71[num4] = 7486u; obj54.KillEnemyDataIds = list71; reference57 = obj54; obj53.Steps = list70; reference56 = obj53; - ref QuestSequence reference58 = ref span20[5]; + num++; + ref QuestSequence reference58 = ref span65[num]; QuestSequence obj55 = new QuestSequence { Sequence = 5 @@ -180014,21 +217091,26 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1022153u, new Vector3(662.95874f, 202.59106f, -177.14203f), 397) + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span72[index2] = new QuestStep(EInteractionType.Interact, 1022153u, new Vector3(662.95874f, 202.59106f, -177.14203f), 397) { StopDistance = 7f }; obj55.Steps = list72; reference58 = obj55; - ref QuestSequence reference59 = ref span20[6]; + num++; + ref QuestSequence reference59 = ref span65[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180046,13 +217128,16 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "UcanPatates"; + Span span74 = CollectionsMarshal.AsSpan(list74); + index = 0; + span74[index] = "UcanPatates"; questRoot8.Author = list74; - num = 6; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span21 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference60 = ref span21[0]; + index = 6; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + Span span75 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference60 = ref span75[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -180060,7 +217145,9 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180078,15 +217165,18 @@ public static class AssemblyQuestLoader }; obj57.Steps = list76; reference60 = obj57; - ref QuestSequence reference61 = ref span21[1]; + num++; + ref QuestSequence reference61 = ref span75[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1022157u, new Vector3(-323.9643f, 239.9684f, 372.91516f), 155) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.Interact, 1022157u, new Vector3(-323.9643f, 239.9684f, 372.91516f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -180100,7 +217190,8 @@ public static class AssemblyQuestLoader }; obj58.Steps = list77; reference61 = obj58; - ref QuestSequence reference62 = ref span21[2]; + num++; + ref QuestSequence reference62 = ref span75[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 @@ -180108,7 +217199,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022163u, new Vector3(-395.95636f, 240.14958f, 340.59656f), 155) + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022163u, new Vector3(-395.95636f, 240.14958f, 340.59656f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -180122,19 +217215,23 @@ public static class AssemblyQuestLoader }; obj59.Steps = list78; reference62 = obj59; - span21[3] = new QuestSequence + num++; + span75[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference63 = ref span21[4]; + num++; + ref QuestSequence reference63 = ref span75[num]; QuestSequence obj60 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1022167u, new Vector3(-385.36664f, 232.23338f, 314.65625f), 155) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.Interact, 1022167u, new Vector3(-385.36664f, 232.23338f, 314.65625f), 155) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -180148,7 +217245,8 @@ public static class AssemblyQuestLoader }; obj60.Steps = list79; reference63 = obj60; - ref QuestSequence reference64 = ref span21[5]; + num++; + ref QuestSequence reference64 = ref span75[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -180156,7 +217254,9 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180181,21 +217281,26 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "UcanPatates"; + Span span81 = CollectionsMarshal.AsSpan(list81); + index = 0; + span81[index] = "UcanPatates"; questRoot9.Author = list81; - num = 7; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span22 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference65 = ref span22[0]; + index = 7; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + Span span82 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference65 = ref span82[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180213,7 +217318,8 @@ public static class AssemblyQuestLoader }; obj62.Steps = list83; reference65 = obj62; - ref QuestSequence reference66 = ref span22[1]; + num++; + ref QuestSequence reference66 = ref span82[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -180221,7 +217327,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1022169u, new Vector3(-58.854065f, 20.000334f, 42.83203f), 129) + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.Interact, 1022169u, new Vector3(-58.854065f, 20.000334f, 42.83203f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -180234,15 +217342,18 @@ public static class AssemblyQuestLoader }; obj63.Steps = list84; reference66 = obj63; - ref QuestSequence reference67 = ref span22[2]; + num++; + ref QuestSequence reference67 = ref span82[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list85)[0]; + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference68 = ref span85[num2]; QuestStep obj65 = new QuestStep(EInteractionType.Interact, 1022170u, new Vector3(-172.6253f, 41.10136f, 175.89062f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -180257,10 +217368,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = 128; + num4 = 1; + List list86 = new List(num4); + CollectionsMarshal.SetCount(list86, num4); + Span span86 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span86[num3] = 128; obj66.InTerritory = list86; skipConditions.AetheryteShortcutIf = obj66; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition @@ -180271,7 +217384,9 @@ public static class AssemblyQuestLoader num3 = 1; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = new DialogueChoice + Span span87 = CollectionsMarshal.AsSpan(list87); + num4 = 0; + span87[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMCH680_02908_Q1_000_000"), @@ -180281,7 +217396,8 @@ public static class AssemblyQuestLoader reference68 = obj65; obj64.Steps = list85; reference67 = obj64; - ref QuestSequence reference69 = ref span22[3]; + num++; + ref QuestSequence reference69 = ref span82[num]; QuestSequence obj67 = new QuestSequence { Sequence = 3 @@ -180289,17 +217405,21 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list88)[0]; + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + ref QuestStep reference70 = ref span88[index2]; QuestStep obj68 = new QuestStep(EInteractionType.Combat, 1022173u, new Vector3(356.5575f, 351.0862f, -545.2201f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - CollectionsMarshal.AsSpan(list89)[0] = new ComplexCombatData + num4 = 1; + List list89 = new List(num4); + CollectionsMarshal.SetCount(list89, num4); + Span span89 = CollectionsMarshal.AsSpan(list89); + num3 = 0; + span89[num3] = new ComplexCombatData { DataId = 7487u, MinimumKillCount = 2u @@ -180315,18 +217435,22 @@ public static class AssemblyQuestLoader reference70 = obj68; obj67.Steps = list88; reference69 = obj67; - ref QuestSequence reference71 = ref span22[4]; + num++; + ref QuestSequence reference71 = ref span82[num]; QuestSequence obj69 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1022173u, new Vector3(356.5575f, 351.0862f, -545.2201f), 155); + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.Interact, 1022173u, new Vector3(356.5575f, 351.0862f, -545.2201f), 155); obj69.Steps = list90; reference71 = obj69; - ref QuestSequence reference72 = ref span22[5]; + num++; + ref QuestSequence reference72 = ref span82[num]; QuestSequence obj70 = new QuestSequence { Sequence = 5 @@ -180334,7 +217458,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1022151u, new Vector3(115.098755f, 24.398598f, 2.822876f), 418) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.Interact, 1022151u, new Vector3(115.098755f, 24.398598f, 2.822876f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180352,15 +217478,18 @@ public static class AssemblyQuestLoader }; obj70.Steps = list91; reference72 = obj70; - ref QuestSequence reference73 = ref span22[6]; + num++; + ref QuestSequence reference73 = ref span82[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180385,13 +217514,16 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "UcanPatates"; + Span span93 = CollectionsMarshal.AsSpan(list93); + index = 0; + span93[index] = "UcanPatates"; questRoot10.Author = list93; - num = 4; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span23 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference74 = ref span23[0]; + index = 4; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + Span span94 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference74 = ref span94[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -180399,7 +217531,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180417,15 +217551,18 @@ public static class AssemblyQuestLoader }; obj72.Steps = list95; reference74 = obj72; - ref QuestSequence reference75 = ref span23[1]; + num++; + ref QuestSequence reference75 = ref span94[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180443,7 +217580,8 @@ public static class AssemblyQuestLoader }; obj73.Steps = list96; reference75 = obj73; - ref QuestSequence reference76 = ref span23[2]; + num++; + ref QuestSequence reference76 = ref span94[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -180451,7 +217589,9 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180469,15 +217609,18 @@ public static class AssemblyQuestLoader }; obj74.Steps = list97; reference76 = obj74; - ref QuestSequence reference77 = ref span23[3]; + num++; + ref QuestSequence reference77 = ref span94[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -180497,13 +217640,16 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; + Span span99 = CollectionsMarshal.AsSpan(list99); + index = 0; + span99[index] = "liza"; questRoot11.Author = list99; - num = 3; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span24 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference78 = ref span24[0]; + index = 3; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + Span span100 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference78 = ref span100[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 @@ -180511,8 +217657,9 @@ public static class AssemblyQuestLoader num2 = 2; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span25 = CollectionsMarshal.AsSpan(list101); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -180524,25 +217671,30 @@ public static class AssemblyQuestLoader } } }; - span25[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + index2++; + span101[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj76.Steps = list101; reference78 = obj76; - ref QuestSequence reference79 = ref span24[1]; + num++; + ref QuestSequence reference79 = ref span100[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 2008547u, new Vector3(47.592896f, -37.003174f, -297.71887f), 398) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.Interact, 2008547u, new Vector3(47.592896f, -37.003174f, -297.71887f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj77.Steps = list102; reference79 = obj77; - ref QuestSequence reference80 = ref span24[2]; + num++; + ref QuestSequence reference80 = ref span100[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -180550,13 +217702,15 @@ public static class AssemblyQuestLoader num2 = 2; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span26 = CollectionsMarshal.AsSpan(list103); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span103[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + index2++; + span103[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(2911) }; @@ -180569,22 +217723,26 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "liza"; + Span span104 = CollectionsMarshal.AsSpan(list104); + index = 0; + span104[index] = "liza"; questRoot12.Author = list104; - num = 6; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span27 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference81 = ref span27[0]; + index = 6; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + Span span105 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference81 = ref span105[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - Span span28 = CollectionsMarshal.AsSpan(list106); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + index2 = 2; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -180596,10 +217754,12 @@ public static class AssemblyQuestLoader } } }; - span28[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span106[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj79.Steps = list106; reference81 = obj79; - ref QuestSequence reference82 = ref span27[1]; + num++; + ref QuestSequence reference82 = ref span105[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -180607,22 +217767,27 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1022543u, new Vector3(46.951904f, -37.000004f, -298.48175f), 398) + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new QuestStep(EInteractionType.Interact, 1022543u, new Vector3(46.951904f, -37.000004f, -298.48175f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj80.Steps = list107; reference82 = obj80; - ref QuestSequence reference83 = ref span27[2]; + num++; + ref QuestSequence reference83 = ref span105[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 2008548u, new Vector3(80.91858f, 68.16199f, -696.00977f), 612) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.Interact, 2008548u, new Vector3(80.91858f, 68.16199f, -696.00977f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -180634,7 +217799,8 @@ public static class AssemblyQuestLoader }; obj81.Steps = list108; reference83 = obj81; - ref QuestSequence reference84 = ref span27[3]; + num++; + ref QuestSequence reference84 = ref span105[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -180642,7 +217808,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - ref QuestStep reference85 = ref CollectionsMarshal.AsSpan(list109)[0]; + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + ref QuestStep reference85 = ref span109[index2]; QuestStep obj83 = new QuestStep(EInteractionType.Combat, null, new Vector3(91.50208f, 68.1708f, -722.4152f), 612) { StopDistance = 0.5f, @@ -180651,23 +217819,29 @@ public static class AssemblyQuestLoader num3 = 1; List list110 = new List(num3); CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = 8046u; + Span span110 = CollectionsMarshal.AsSpan(list110); + num4 = 0; + span110[num4] = 8046u; obj83.KillEnemyDataIds = list110; reference85 = obj83; obj82.Steps = list109; reference84 = obj82; - ref QuestSequence reference86 = ref span27[4]; + num++; + ref QuestSequence reference86 = ref span105[num]; QuestSequence obj84 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1022547u, new Vector3(92.39331f, 68.1708f, -712.8557f), 612); + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.Interact, 1022547u, new Vector3(92.39331f, 68.1708f, -712.8557f), 612); obj84.Steps = list111; reference86 = obj84; - ref QuestSequence reference87 = ref span27[5]; + num++; + ref QuestSequence reference87 = ref span105[num]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue @@ -180675,13 +217849,15 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span29 = CollectionsMarshal.AsSpan(list112); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span29[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + index2++; + span112[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(2912) }; @@ -180694,22 +217870,26 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - CollectionsMarshal.AsSpan(list113)[0] = "liza"; + Span span113 = CollectionsMarshal.AsSpan(list113); + index = 0; + span113[index] = "liza"; questRoot13.Author = list113; - num = 8; - List list114 = new List(num); - CollectionsMarshal.SetCount(list114, num); - Span span30 = CollectionsMarshal.AsSpan(list114); - ref QuestSequence reference88 = ref span30[0]; + index = 8; + List list114 = new List(index); + CollectionsMarshal.SetCount(list114, index); + Span span114 = CollectionsMarshal.AsSpan(list114); + num = 0; + ref QuestSequence reference88 = ref span114[num]; QuestSequence obj86 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - Span span31 = CollectionsMarshal.AsSpan(list115); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + index2 = 2; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span115[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -180721,10 +217901,12 @@ public static class AssemblyQuestLoader } } }; - span31[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span115[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj86.Steps = list115; reference88 = obj86; - ref QuestSequence reference89 = ref span30[1]; + num++; + ref QuestSequence reference89 = ref span114[num]; QuestSequence obj87 = new QuestSequence { Sequence = 1 @@ -180732,7 +217914,9 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1018982u, new Vector3(-83.08539f, 18.05f, -191.14978f), 628) + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.Interact, 1018982u, new Vector3(-83.08539f, 18.05f, -191.14978f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -180743,22 +217927,26 @@ public static class AssemblyQuestLoader }; obj87.Steps = list116; reference89 = obj87; - ref QuestSequence reference90 = ref span30[2]; + num++; + ref QuestSequence reference90 = ref span114[num]; QuestSequence obj88 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1022550u, new Vector3(-728.9082f, 0.34026724f, -427.9698f), 613) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.Interact, 1022550u, new Vector3(-728.9082f, 0.34026724f, -427.9698f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj88.Steps = list117; reference90 = obj88; - ref QuestSequence reference91 = ref span30[3]; + num++; + ref QuestSequence reference91 = ref span114[num]; QuestSequence obj89 = new QuestSequence { Sequence = 3 @@ -180766,27 +217954,33 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1022551u, new Vector3(-772.549f, 4.7634416f, -504.29544f), 613) + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span118[index2] = new QuestStep(EInteractionType.Interact, 1022551u, new Vector3(-772.549f, 4.7634416f, -504.29544f), 613) { Fly = true }; obj89.Steps = list118; reference91 = obj89; - ref QuestSequence reference92 = ref span30[4]; + num++; + ref QuestSequence reference92 = ref span114[num]; QuestSequence obj90 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 2008550u, new Vector3(-711.20776f, 0.44250488f, -545.4337f), 613) + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span119[num2] = new QuestStep(EInteractionType.Interact, 2008550u, new Vector3(-711.20776f, 0.44250488f, -545.4337f), 613) { Fly = true }; obj90.Steps = list119; reference92 = obj90; - ref QuestSequence reference93 = ref span30[5]; + num++; + ref QuestSequence reference93 = ref span114[num]; QuestSequence obj91 = new QuestSequence { Sequence = 5 @@ -180794,37 +217988,45 @@ public static class AssemblyQuestLoader num2 = 2; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span32 = CollectionsMarshal.AsSpan(list120); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(657.20935f, 1.1933115f, -799.82635f), 613) + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(657.20935f, 1.1933115f, -799.82635f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - ref QuestStep reference94 = ref span32[1]; + index2++; + ref QuestStep reference94 = ref span120[index2]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, 1022552u, new Vector3(657.7401f, 1.0385457f, -797.8485f), 613) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = 7488u; + num4 = 1; + List list121 = new List(num4); + CollectionsMarshal.SetCount(list121, num4); + Span span121 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span121[num3] = 7488u; obj92.KillEnemyDataIds = list121; reference94 = obj92; obj91.Steps = list120; reference93 = obj91; - ref QuestSequence reference95 = ref span30[6]; + num++; + ref QuestSequence reference95 = ref span114[num]; QuestSequence obj93 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1022552u, new Vector3(657.7401f, 1.0385457f, -797.8485f), 613); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.Interact, 1022552u, new Vector3(657.7401f, 1.0385457f, -797.8485f), 613); obj93.Steps = list122; reference95 = obj93; - ref QuestSequence reference96 = ref span30[7]; + num++; + ref QuestSequence reference96 = ref span114[num]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue @@ -180832,7 +218034,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list123)[0]; + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + ref QuestStep reference97 = ref span123[index2]; QuestStep obj95 = new QuestStep(EInteractionType.CompleteQuest, 1022553u, new Vector3(-92.607056f, 18.9999f, -194.41522f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -180845,7 +218049,9 @@ public static class AssemblyQuestLoader num3 = 1; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice + Span span124 = CollectionsMarshal.AsSpan(list124); + num4 = 0; + span124[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRG650_02912_Q1_000_000"), @@ -180863,21 +218069,26 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "liza"; + Span span125 = CollectionsMarshal.AsSpan(list125); + index = 0; + span125[index] = "liza"; questRoot14.Author = list125; - num = 9; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span33 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference98 = ref span33[0]; + index = 9; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + Span span126 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference98 = ref span126[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022553u, new Vector3(-92.607056f, 18.9999f, -194.41522f), 628) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022553u, new Vector3(-92.607056f, 18.9999f, -194.41522f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -180895,7 +218106,8 @@ public static class AssemblyQuestLoader }; obj96.Steps = list127; reference98 = obj96; - ref QuestSequence reference99 = ref span33[1]; + num++; + ref QuestSequence reference99 = ref span126[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -180903,7 +218115,9 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1022748u, new Vector3(13.046387f, -7.961876f, -99.77875f), 628) + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span128[index2] = new QuestStep(EInteractionType.Interact, 1022748u, new Vector3(13.046387f, -7.961876f, -99.77875f), 628) { AethernetShortcut = new AethernetShortcut { @@ -180913,22 +218127,26 @@ public static class AssemblyQuestLoader }; obj97.Steps = list128; reference99 = obj97; - ref QuestSequence reference100 = ref span33[2]; + num++; + ref QuestSequence reference100 = ref span126[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span129[num2] = new QuestStep(EInteractionType.Interact, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj98.Steps = list129; reference100 = obj98; - ref QuestSequence reference101 = ref span33[3]; + num++; + ref QuestSequence reference101 = ref span126[num]; QuestSequence obj99 = new QuestSequence { Sequence = 3 @@ -180936,63 +218154,88 @@ public static class AssemblyQuestLoader num2 = 3; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span34 = CollectionsMarshal.AsSpan(list130); - ref QuestStep reference102 = ref span34[0]; + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + ref QuestStep reference102 = ref span130[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1022554u, new Vector3(554.9553f, -19.411264f, 274.92175f), 622); - num3 = 6; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span35 = CollectionsMarshal.AsSpan(list131); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list131 = new List(num4); + CollectionsMarshal.SetCount(list131, num4); + Span span131 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list131; reference102 = questStep4; - ref QuestStep reference103 = ref span34[1]; + index2++; + ref QuestStep reference103 = ref span130[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1022555u, new Vector3(545.4337f, -19.505648f, 309.68176f), 622); num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span36 = CollectionsMarshal.AsSpan(list132); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span132 = CollectionsMarshal.AsSpan(list132); + num4 = 0; + span132[num4] = null; + num4++; + span132[num4] = null; + num4++; + span132[num4] = null; + num4++; + span132[num4] = null; + num4++; + span132[num4] = null; + num4++; + span132[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list132; reference103 = questStep5; - ref QuestStep reference104 = ref span34[2]; + index2++; + ref QuestStep reference104 = ref span130[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1022556u, new Vector3(570.3364f, -19.50564f, 319.11182f), 622); - num3 = 6; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - Span span37 = CollectionsMarshal.AsSpan(list133); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list133 = new List(num4); + CollectionsMarshal.SetCount(list133, num4); + Span span133 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list133; reference104 = questStep6; obj99.Steps = list130; reference101 = obj99; - ref QuestSequence reference105 = ref span33[4]; + num++; + ref QuestSequence reference105 = ref span126[num]; QuestSequence obj100 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622); + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.Interact, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622); obj100.Steps = list134; reference105 = obj100; - ref QuestSequence reference106 = ref span33[5]; + num++; + ref QuestSequence reference106 = ref span126[num]; QuestSequence obj101 = new QuestSequence { Sequence = 5 @@ -181000,28 +218243,35 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022561u, new Vector3(-288.4718f, 60.053967f, -328.1148f), 622) + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022561u, new Vector3(-288.4718f, 60.053967f, -328.1148f), 622) { Fly = true }; obj101.Steps = list135; reference106 = obj101; - span33[6] = new QuestSequence + num++; + span126[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference107 = ref span33[7]; + num++; + ref QuestSequence reference107 = ref span126[num]; QuestSequence obj102 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1022569u, new Vector3(-309.5293f, 61.288292f, -319.50867f), 622); + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.Interact, 1022569u, new Vector3(-309.5293f, 61.288292f, -319.50867f), 622); obj102.Steps = list136; reference107 = obj102; - ref QuestSequence reference108 = ref span33[8]; + num++; + ref QuestSequence reference108 = ref span126[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue @@ -181029,7 +218279,9 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622) + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -181044,21 +218296,26 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "liza"; + Span span138 = CollectionsMarshal.AsSpan(list138); + index = 0; + span138[index] = "liza"; questRoot15.Author = list138; - num = 3; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span38 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference109 = ref span38[0]; + index = 3; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + Span span139 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference109 = ref span139[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -181071,7 +218328,8 @@ public static class AssemblyQuestLoader }; obj104.Steps = list140; reference109 = obj104; - ref QuestSequence reference110 = ref span38[1]; + num++; + ref QuestSequence reference110 = ref span139[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 @@ -181079,21 +218337,26 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022562u, new Vector3(-494.3466f, 71.278076f, -509.51404f), 622) + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022562u, new Vector3(-494.3466f, 71.278076f, -509.51404f), 622) { Fly = true }; obj105.Steps = list141; reference110 = obj105; - ref QuestSequence reference111 = ref span38[2]; + num++; + ref QuestSequence reference111 = ref span139[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022562u, new Vector3(-494.3466f, 71.278076f, -509.51404f), 622) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022562u, new Vector3(-494.3466f, 71.278076f, -509.51404f), 622) { StopDistance = 7f }; @@ -181106,13 +218369,16 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; + Span span143 = CollectionsMarshal.AsSpan(list143); + index = 0; + span143[index] = "liza"; questRoot16.Author = list143; - num = 10; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span39 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference112 = ref span39[0]; + index = 10; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + Span span144 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference112 = ref span144[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -181120,7 +218386,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list145)[0]; + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + ref QuestStep reference113 = ref span145[index2]; QuestStep obj108 = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -181140,7 +218408,9 @@ public static class AssemblyQuestLoader num3 = 1; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new DialogueChoice + Span span146 = CollectionsMarshal.AsSpan(list146); + num4 = 0; + span146[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK601_02915_Q0_000_004"), @@ -181150,15 +218420,18 @@ public static class AssemblyQuestLoader reference113 = obj108; obj107.Steps = list145; reference112 = obj107; - ref QuestSequence reference114 = ref span39[1]; + num++; + ref QuestSequence reference114 = ref span144[num]; QuestSequence obj109 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 2008659u, new Vector3(2.5177002f, 11.947815f, 37.00305f), 419) + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.Interact, 2008659u, new Vector3(2.5177002f, 11.947815f, 37.00305f), 419) { AethernetShortcut = new AethernetShortcut { @@ -181168,7 +218441,8 @@ public static class AssemblyQuestLoader }; obj109.Steps = list147; reference114 = obj109; - ref QuestSequence reference115 = ref span39[2]; + num++; + ref QuestSequence reference115 = ref span144[num]; QuestSequence obj110 = new QuestSequence { Sequence = 2 @@ -181176,7 +218450,9 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1022855u, new Vector3(75.394775f, 24.071722f, -13.595825f), 418) + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span148[index2] = new QuestStep(EInteractionType.Interact, 1022855u, new Vector3(75.394775f, 24.071722f, -13.595825f), 418) { AethernetShortcut = new AethernetShortcut { @@ -181186,18 +218462,22 @@ public static class AssemblyQuestLoader }; obj110.Steps = list148; reference115 = obj110; - ref QuestSequence reference116 = ref span39[3]; + num++; + ref QuestSequence reference116 = ref span144[num]; QuestSequence obj111 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1022859u, new Vector3(3.6774292f, 5.46805f, 26.596436f), 418); + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.Interact, 1022859u, new Vector3(3.6774292f, 5.46805f, 26.596436f), 418); obj111.Steps = list149; reference116 = obj111; - ref QuestSequence reference117 = ref span39[4]; + num++; + ref QuestSequence reference117 = ref span144[num]; QuestSequence obj112 = new QuestSequence { Sequence = 4 @@ -181205,18 +218485,23 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1022855u, new Vector3(75.394775f, 24.071722f, -13.595825f), 418); + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new QuestStep(EInteractionType.Interact, 1022855u, new Vector3(75.394775f, 24.071722f, -13.595825f), 418); obj112.Steps = list150; reference117 = obj112; - ref QuestSequence reference118 = ref span39[5]; + num++; + ref QuestSequence reference118 = ref span144[num]; QuestSequence obj113 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 2008660u, new Vector3(31.906494f, 15.945618f, -65.07977f), 419) + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span151[num2] = new QuestStep(EInteractionType.Interact, 2008660u, new Vector3(31.906494f, 15.945618f, -65.07977f), 419) { AethernetShortcut = new AethernetShortcut { @@ -181226,7 +218511,8 @@ public static class AssemblyQuestLoader }; obj113.Steps = list151; reference118 = obj113; - ref QuestSequence reference119 = ref span39[6]; + num++; + ref QuestSequence reference119 = ref span144[num]; QuestSequence obj114 = new QuestSequence { Sequence = 6 @@ -181234,28 +218520,34 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1022862u, new Vector3(482.29187f, 203.4332f, 683.25305f), 397) + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span152[index2] = new QuestStep(EInteractionType.Interact, 1022862u, new Vector3(482.29187f, 203.4332f, 683.25305f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj114.Steps = list152; reference119 = obj114; - ref QuestSequence reference120 = ref span39[7]; + num++; + ref QuestSequence reference120 = ref span144[num]; QuestSequence obj115 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1022863u, new Vector3(384.2068f, 170.07738f, 419.7909f), 397) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span153[num2] = new QuestStep(EInteractionType.Interact, 1022863u, new Vector3(384.2068f, 170.07738f, 419.7909f), 397) { Fly = true }; obj115.Steps = list153; reference120 = obj115; - ref QuestSequence reference121 = ref span39[8]; + num++; + ref QuestSequence reference121 = ref span144[num]; QuestSequence obj116 = new QuestSequence { Sequence = 8 @@ -181263,21 +218555,26 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Action, 2008661u, new Vector3(380.02588f, 169.78711f, 416.5559f), 397) + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.Action, 2008661u, new Vector3(380.02588f, 169.78711f, 416.5559f), 397) { Action = EAction.Souleater }; obj116.Steps = list154; reference121 = obj116; - ref QuestSequence reference122 = ref span39[9]; + num++; + ref QuestSequence reference122 = ref span144[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022866u, new Vector3(482.07825f, 203.4332f, 680.7506f), 397) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span155[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022866u, new Vector3(482.07825f, 203.4332f, 680.7506f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -181292,13 +218589,16 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - CollectionsMarshal.AsSpan(list156)[0] = "liza"; + Span span156 = CollectionsMarshal.AsSpan(list156); + index = 0; + span156[index] = "liza"; questRoot17.Author = list156; - num = 8; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - Span span40 = CollectionsMarshal.AsSpan(list157); - ref QuestSequence reference123 = ref span40[0]; + index = 8; + List list157 = new List(index); + CollectionsMarshal.SetCount(list157, index); + Span span157 = CollectionsMarshal.AsSpan(list157); + num = 0; + ref QuestSequence reference123 = ref span157[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 @@ -181306,29 +218606,35 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022866u, new Vector3(482.07825f, 203.4332f, 680.7506f), 397) + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022866u, new Vector3(482.07825f, 203.4332f, 680.7506f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj118.Steps = list158; reference123 = obj118; - ref QuestSequence reference124 = ref span40[1]; + num++; + ref QuestSequence reference124 = ref span157[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1022870u, new Vector3(464.53027f, -51.1414f, 44.47998f), 398) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.Interact, 1022870u, new Vector3(464.53027f, -51.1414f, 44.47998f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj119.Steps = list159; reference124 = obj119; - ref QuestSequence reference125 = ref span40[2]; + num++; + ref QuestSequence reference125 = ref span157[num]; QuestSequence obj120 = new QuestSequence { Sequence = 2 @@ -181336,39 +218642,47 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 2008662u, new Vector3(436.94202f, -51.163513f, 98.68005f), 398) + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.Interact, 2008662u, new Vector3(436.94202f, -51.163513f, 98.68005f), 398) { StopDistance = 1f, Fly = true }; obj120.Steps = list160; reference125 = obj120; - ref QuestSequence reference126 = ref span40[3]; + num++; + ref QuestSequence reference126 = ref span157[num]; QuestSequence obj121 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list161)[0]; + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + Span span161 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + ref QuestStep reference127 = ref span161[num2]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 1022879u, new Vector3(503.4713f, -45.078712f, -116.92993f), 398) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - Span span41 = CollectionsMarshal.AsSpan(list162); - span41[0] = 7489u; - span41[1] = 7490u; + num4 = 2; + List list162 = new List(num4); + CollectionsMarshal.SetCount(list162, num4); + Span span162 = CollectionsMarshal.AsSpan(list162); + num3 = 0; + span162[num3] = 7489u; + num3++; + span162[num3] = 7490u; obj122.KillEnemyDataIds = list162; reference127 = obj122; obj121.Steps = list161; reference126 = obj121; - ref QuestSequence reference128 = ref span40[4]; + num++; + ref QuestSequence reference128 = ref span157[num]; QuestSequence obj123 = new QuestSequence { Sequence = 4 @@ -181376,27 +218690,33 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1022880u, new Vector3(612.8175f, -26.250998f, -436.45386f), 398) + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span163[index2] = new QuestStep(EInteractionType.Interact, 1022880u, new Vector3(612.8175f, -26.250998f, -436.45386f), 398) { Fly = true }; obj123.Steps = list163; reference128 = obj123; - ref QuestSequence reference129 = ref span40[5]; + num++; + ref QuestSequence reference129 = ref span157[num]; QuestSequence obj124 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Action, 2008663u, new Vector3(622.8275f, -25.467346f, -446.43323f), 398) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.Action, 2008663u, new Vector3(622.8275f, -25.467346f, -446.43323f), 398) { Action = EAction.Souleater }; obj124.Steps = list164; reference129 = obj124; - ref QuestSequence reference130 = ref span40[6]; + num++; + ref QuestSequence reference130 = ref span157[num]; QuestSequence obj125 = new QuestSequence { Sequence = 6 @@ -181404,18 +218724,23 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1023414u, new Vector3(617.8529f, -25.577927f, -446.61633f), 398); + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.Interact, 1023414u, new Vector3(617.8529f, -25.577927f, -446.61633f), 398); obj125.Steps = list165; reference130 = obj125; - ref QuestSequence reference131 = ref span40[7]; + num++; + ref QuestSequence reference131 = ref span157[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022885u, new Vector3(461.41748f, -51.141403f, 43.4729f), 398) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022885u, new Vector3(461.41748f, -51.141403f, 43.4729f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, @@ -181430,13 +218755,16 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "liza"; + Span span167 = CollectionsMarshal.AsSpan(list167); + index = 0; + span167[index] = "liza"; questRoot18.Author = list167; - num = 10; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span42 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference132 = ref span42[0]; + index = 10; + List list168 = new List(index); + CollectionsMarshal.SetCount(list168, index); + Span span168 = CollectionsMarshal.AsSpan(list168); + num = 0; + ref QuestSequence reference132 = ref span168[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -181444,7 +218772,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022885u, new Vector3(461.41748f, -51.141403f, 43.4729f), 398) + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022885u, new Vector3(461.41748f, -51.141403f, 43.4729f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, @@ -181458,21 +218788,25 @@ public static class AssemblyQuestLoader }; obj127.Steps = list169; reference132 = obj127; - ref QuestSequence reference133 = ref span42[1]; + num++; + ref QuestSequence reference133 = ref span168[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1022888u, new Vector3(252.58252f, -43.12347f, 627.06946f), 400) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.Interact, 1022888u, new Vector3(252.58252f, -43.12347f, 627.06946f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj128.Steps = list170; reference133 = obj128; - ref QuestSequence reference134 = ref span42[2]; + num++; + ref QuestSequence reference134 = ref span168[num]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -181480,7 +218814,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list171)[0]; + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + ref QuestStep reference135 = ref span171[index2]; QuestStep obj130 = new QuestStep(EInteractionType.Interact, 1022891u, new Vector3(154.25342f, -64.449585f, 678.06506f), 400) { Fly = true @@ -181488,7 +218824,9 @@ public static class AssemblyQuestLoader num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = new DialogueChoice + Span span172 = CollectionsMarshal.AsSpan(list172); + num4 = 0; + span172[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK650_02917_Q1_000_052"), @@ -181498,21 +218836,25 @@ public static class AssemblyQuestLoader reference135 = obj130; obj129.Steps = list171; reference134 = obj129; - ref QuestSequence reference136 = ref span42[3]; + num++; + ref QuestSequence reference136 = ref span168[num]; QuestSequence obj131 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1022888u, new Vector3(252.58252f, -43.12347f, 627.06946f), 400) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.Interact, 1022888u, new Vector3(252.58252f, -43.12347f, 627.06946f), 400) { Fly = true }; obj131.Steps = list173; reference136 = obj131; - ref QuestSequence reference137 = ref span42[4]; + num++; + ref QuestSequence reference137 = ref span168[num]; QuestSequence obj132 = new QuestSequence { Sequence = 4 @@ -181520,31 +218862,38 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1022893u, new Vector3(418.53967f, -28.947046f, 89.25f), 400) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.Interact, 1022893u, new Vector3(418.53967f, -28.947046f, 89.25f), 400) { Fly = true }; obj132.Steps = list174; reference137 = obj132; - ref QuestSequence reference138 = ref span42[5]; + num++; + ref QuestSequence reference138 = ref span168[num]; QuestSequence obj133 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022897u, new Vector3(-166.24707f, -22.88001f, 289.38733f), 400) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022897u, new Vector3(-166.24707f, -22.88001f, 289.38733f), 400) { Fly = true }; obj133.Steps = list175; reference138 = obj133; - span42[6] = new QuestSequence + num++; + span168[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference139 = ref span42[7]; + num++; + ref QuestSequence reference139 = ref span168[num]; QuestSequence obj134 = new QuestSequence { Sequence = 7 @@ -181552,27 +218901,33 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Action, 2008665u, new Vector3(-160.02142f, -22.995422f, 283.6194f), 400) + Span span176 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span176[index2] = new QuestStep(EInteractionType.Action, 2008665u, new Vector3(-160.02142f, -22.995422f, 283.6194f), 400) { Action = EAction.Souleater }; obj134.Steps = list176; reference139 = obj134; - ref QuestSequence reference140 = ref span42[8]; + num++; + ref QuestSequence reference140 = ref span168[num]; QuestSequence obj135 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1022900u, new Vector3(-164.5686f, -22.88756f, 285.7556f), 400) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.Interact, 1022900u, new Vector3(-164.5686f, -22.88756f, 285.7556f), 400) { StopDistance = 5f }; obj135.Steps = list177; reference140 = obj135; - ref QuestSequence reference141 = ref span42[9]; + num++; + ref QuestSequence reference141 = ref span168[num]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue @@ -181580,7 +218935,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022953u, new Vector3(253.0708f, -43.136364f, 626.88635f), 400) + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022953u, new Vector3(253.0708f, -43.136364f, 626.88635f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; @@ -181593,21 +218950,26 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "liza"; + Span span179 = CollectionsMarshal.AsSpan(list179); + index = 0; + span179[index] = "liza"; questRoot19.Author = list179; - num = 11; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span43 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference142 = ref span43[0]; + index = 11; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + Span span180 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference142 = ref span180[num]; QuestSequence obj137 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022892u, new Vector3(252.64355f, -43.032913f, 625.0857f), 400) + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span181[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022892u, new Vector3(252.64355f, -43.032913f, 625.0857f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, SkipConditions = new SkipConditions @@ -181620,7 +218982,8 @@ public static class AssemblyQuestLoader }; obj137.Steps = list181; reference142 = obj137; - ref QuestSequence reference143 = ref span43[1]; + num++; + ref QuestSequence reference143 = ref span180[num]; QuestSequence obj138 = new QuestSequence { Sequence = 1 @@ -181628,29 +218991,35 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1022890u, new Vector3(-620.5692f, 130f, -527.5807f), 612) + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.Interact, 1022890u, new Vector3(-620.5692f, 130f, -527.5807f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj138.Steps = list182; reference143 = obj138; - ref QuestSequence reference144 = ref span43[2]; + num++; + ref QuestSequence reference144 = ref span180[num]; QuestSequence obj139 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - Span span44 = CollectionsMarshal.AsSpan(list183); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-284.4574f, 73.94617f, -692.77094f), 612) + index2 = 2; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span183[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-284.4574f, 73.94617f, -692.77094f), 612) { Fly = true }; - span44[1] = new QuestStep(EInteractionType.Interact, 1022902u, new Vector3(-359.51782f, 63.3675f, -727.93164f), 612); + num2++; + span183[num2] = new QuestStep(EInteractionType.Interact, 1022902u, new Vector3(-359.51782f, 63.3675f, -727.93164f), 612); obj139.Steps = list183; reference144 = obj139; - ref QuestSequence reference145 = ref span43[3]; + num++; + ref QuestSequence reference145 = ref span180[num]; QuestSequence obj140 = new QuestSequence { Sequence = 3 @@ -181658,46 +219027,60 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1022904u, new Vector3(-276.75293f, 74.50722f, -695.8572f), 612); + Span span184 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span184[index2] = new QuestStep(EInteractionType.Interact, 1022904u, new Vector3(-276.75293f, 74.50722f, -695.8572f), 612); obj140.Steps = list184; reference145 = obj140; - ref QuestSequence reference146 = ref span43[4]; + num++; + ref QuestSequence reference146 = ref span180[num]; QuestSequence obj141 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - Span span45 = CollectionsMarshal.AsSpan(list185); - ref QuestStep reference147 = ref span45[0]; + index2 = 2; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + ref QuestStep reference147 = ref span185[num2]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, null, new Vector3(25.767f, 54.715424f, -532.3533f), 612) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = 7491u; + num4 = 1; + List list186 = new List(num4); + CollectionsMarshal.SetCount(list186, num4); + Span span186 = CollectionsMarshal.AsSpan(list186); + num3 = 0; + span186[num3] = 7491u; obj142.KillEnemyDataIds = list186; num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - Span span46 = CollectionsMarshal.AsSpan(list187); - span46[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = null; + Span span187 = CollectionsMarshal.AsSpan(list187); + num4 = 0; + span187[num4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = null; obj142.CompletionQuestVariablesFlags = list187; reference147 = obj142; - span45[1] = new QuestStep(EInteractionType.Interact, 1022905u, new Vector3(25.101074f, 54.83547f, -533.04346f), 612); + num2++; + span185[num2] = new QuestStep(EInteractionType.Interact, 1022905u, new Vector3(25.101074f, 54.83547f, -533.04346f), 612); obj141.Steps = list185; reference146 = obj141; - ref QuestSequence reference148 = ref span43[5]; + num++; + ref QuestSequence reference148 = ref span180[num]; QuestSequence obj143 = new QuestSequence { Sequence = 5 @@ -181705,27 +219088,33 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1022908u, new Vector3(182.8794f, 54.52025f, -491.56943f), 612) + Span span188 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span188[index2] = new QuestStep(EInteractionType.Interact, 1022908u, new Vector3(182.8794f, 54.52025f, -491.56943f), 612) { Fly = true }; obj143.Steps = list188; reference148 = obj143; - ref QuestSequence reference149 = ref span43[6]; + num++; + ref QuestSequence reference149 = ref span180[num]; QuestSequence obj144 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1022910u, new Vector3(301.31982f, 56.419365f, -470.08472f), 612) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.Interact, 1022910u, new Vector3(301.31982f, 56.419365f, -470.08472f), 612) { Fly = true }; obj144.Steps = list189; reference149 = obj144; - ref QuestSequence reference150 = ref span43[7]; + num++; + ref QuestSequence reference150 = ref span180[num]; QuestSequence obj145 = new QuestSequence { Sequence = 7 @@ -181733,27 +219122,33 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1022911u, new Vector3(383.65747f, 65.514336f, -539.4217f), 612) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.Interact, 1022911u, new Vector3(383.65747f, 65.514336f, -539.4217f), 612) { Fly = true }; obj145.Steps = list190; reference150 = obj145; - ref QuestSequence reference151 = ref span43[8]; + num++; + ref QuestSequence reference151 = ref span180[num]; QuestSequence obj146 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Action, 2008667u, new Vector3(386.95337f, 65.537476f, -540.9171f), 612) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.Action, 2008667u, new Vector3(386.95337f, 65.537476f, -540.9171f), 612) { Action = EAction.Souleater }; obj146.Steps = list191; reference151 = obj146; - ref QuestSequence reference152 = ref span43[9]; + num++; + ref QuestSequence reference152 = ref span180[num]; QuestSequence obj147 = new QuestSequence { Sequence = 9 @@ -181761,22 +219156,27 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Emote, 2008668u, new Vector3(-0.045776367f, 5.3864136f, -77.592224f), 635) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.Emote, 2008668u, new Vector3(-0.045776367f, 5.3864136f, -77.592224f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, Emote = EEmote.Respect }; obj147.Steps = list192; reference152 = obj147; - ref QuestSequence reference153 = ref span43[10]; + num++; + ref QuestSequence reference153 = ref span180[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -181795,13 +219195,16 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "liza"; + Span span194 = CollectionsMarshal.AsSpan(list194); + index = 0; + span194[index] = "liza"; questRoot20.Author = list194; - num = 9; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span47 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference154 = ref span47[0]; + index = 9; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + Span span195 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference154 = ref span195[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -181809,7 +219212,9 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span196[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -181827,16 +219232,18 @@ public static class AssemblyQuestLoader }; obj149.Steps = list196; reference154 = obj149; - ref QuestSequence reference155 = ref span47[1]; + num++; + ref QuestSequence reference155 = ref span195[num]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - Span span48 = CollectionsMarshal.AsSpan(list197); - ref QuestStep reference156 = ref span48[0]; + index2 = 3; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + ref QuestStep reference156 = ref span197[num2]; QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1022916u, new Vector3(-57.724915f, -0.071196444f, -40.146484f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -181846,49 +219253,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RhalgrsReachWest } }; - num3 = 6; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - Span span49 = CollectionsMarshal.AsSpan(list198); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list198 = new List(num4); + CollectionsMarshal.SetCount(list198, num4); + Span span198 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj151.CompletionQuestVariablesFlags = list198; reference156 = obj151; - ref QuestStep reference157 = ref span48[1]; + num2++; + ref QuestStep reference157 = ref span197[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635); num3 = 6; List list199 = new List(num3); CollectionsMarshal.SetCount(list199, num3); - Span span50 = CollectionsMarshal.AsSpan(list199); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span199 = CollectionsMarshal.AsSpan(list199); + num4 = 0; + span199[num4] = null; + num4++; + span199[num4] = null; + num4++; + span199[num4] = null; + num4++; + span199[num4] = null; + num4++; + span199[num4] = null; + num4++; + span199[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list199; reference157 = questStep7; - ref QuestStep reference158 = ref span48[2]; + num2++; + ref QuestStep reference158 = ref span197[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1022915u, new Vector3(-38.773254f, 18.82157f, 146.807f), 635); - num3 = 6; - List list200 = new List(num3); - CollectionsMarshal.SetCount(list200, num3); - Span span51 = CollectionsMarshal.AsSpan(list200); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list200 = new List(num4); + CollectionsMarshal.SetCount(list200, num4); + Span span200 = CollectionsMarshal.AsSpan(list200); + num3 = 0; + span200[num3] = null; + num3++; + span200[num3] = null; + num3++; + span200[num3] = null; + num3++; + span200[num3] = null; + num3++; + span200[num3] = null; + num3++; + span200[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list200; reference158 = questStep8; obj150.Steps = list197; reference155 = obj150; - ref QuestSequence reference159 = ref span47[2]; + num++; + ref QuestSequence reference159 = ref span195[num]; QuestSequence obj152 = new QuestSequence { Sequence = 2 @@ -181896,29 +219324,35 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1022914u, new Vector3(112.7489f, 0.6520417f, -9.414856f), 635); + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.Interact, 1022914u, new Vector3(112.7489f, 0.6520417f, -9.414856f), 635); obj152.Steps = list201; reference159 = obj152; - ref QuestSequence reference160 = ref span47[3]; + num++; + ref QuestSequence reference160 = ref span195[num]; QuestSequence obj153 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - Span span52 = CollectionsMarshal.AsSpan(list202); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(132.40436f, -0.5395956f, -3.4915996f), 635) + index2 = 2; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(132.40436f, -0.5395956f, -3.4915996f), 635) { TargetTerritoryId = (ushort)620 }; - span52[1] = new QuestStep(EInteractionType.Interact, 1022922u, new Vector3(-553.70416f, 46.755432f, -669.9474f), 620) + num2++; + span202[num2] = new QuestStep(EInteractionType.Interact, 1022922u, new Vector3(-553.70416f, 46.755432f, -669.9474f), 620) { Fly = true }; obj153.Steps = list202; reference160 = obj153; - ref QuestSequence reference161 = ref span47[4]; + num++; + ref QuestSequence reference161 = ref span195[num]; QuestSequence obj154 = new QuestSequence { Sequence = 4 @@ -181926,28 +219360,35 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 2008669u, new Vector3(-387.9607f, 51.93484f, -626.3676f), 620) + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span203[index2] = new QuestStep(EInteractionType.Interact, 2008669u, new Vector3(-387.9607f, 51.93484f, -626.3676f), 620) { Fly = true }; obj154.Steps = list203; reference161 = obj154; - ref QuestSequence reference162 = ref span47[5]; + num++; + ref QuestSequence reference162 = ref span195[num]; QuestSequence obj155 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023073u, new Vector3(-624.7196f, 58.3448f, -484.48926f), 620); + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023073u, new Vector3(-624.7196f, 58.3448f, -484.48926f), 620); obj155.Steps = list204; reference162 = obj155; - span47[6] = new QuestSequence + num++; + span195[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference163 = ref span47[7]; + num++; + ref QuestSequence reference163 = ref span195[num]; QuestSequence obj156 = new QuestSequence { Sequence = 7 @@ -181955,7 +219396,9 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.Interact, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -181966,15 +219409,18 @@ public static class AssemblyQuestLoader }; obj156.Steps = list205; reference163 = obj156; - ref QuestSequence reference164 = ref span47[8]; + num++; + ref QuestSequence reference164 = ref span195[num]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.CompleteQuest, 2008885u, new Vector3(2.670288f, 11.947815f, 36.972534f), 419) + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.CompleteQuest, 2008885u, new Vector3(2.670288f, 11.947815f, 36.972534f), 419) { AethernetShortcut = new AethernetShortcut { @@ -181991,12 +219437,16 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "JerryWester"; + Span span207 = CollectionsMarshal.AsSpan(list207); + index = 0; + span207[index] = "JerryWester"; questRoot21.Author = list207; - num = 1; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - ref QuestSequence reference165 = ref CollectionsMarshal.AsSpan(list208)[0]; + index = 1; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + Span span208 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference165 = ref span208[num]; QuestSequence obj158 = new QuestSequence { Sequence = 0 @@ -182004,7 +219454,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019464u, new Vector3(-33.096924f, 7.9693108f, 95.109375f), 635) + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019464u, new Vector3(-33.096924f, 7.9693108f, 95.109375f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -182024,20 +219476,26 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "liza"; + Span span210 = CollectionsMarshal.AsSpan(list210); + index = 0; + span210[index] = "liza"; questRoot22.Author = list210; - num = 1; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - ref QuestSequence reference166 = ref CollectionsMarshal.AsSpan(list211)[0]; + index = 1; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + Span span211 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference166 = ref span211[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018997u, new Vector3(20.492798f, -8.014721E-11f, -80.94916f), 628) + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span212[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018997u, new Vector3(20.492798f, -8.014721E-11f, -80.94916f), 628) { StopDistance = 5f }; @@ -182050,13 +219508,16 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - CollectionsMarshal.AsSpan(list213)[0] = "liza"; + Span span213 = CollectionsMarshal.AsSpan(list213); + index = 0; + span213[index] = "liza"; questRoot23.Author = list213; - num = 5; - List list214 = new List(num); - CollectionsMarshal.SetCount(list214, num); - Span span53 = CollectionsMarshal.AsSpan(list214); - ref QuestSequence reference167 = ref span53[0]; + index = 5; + List list214 = new List(index); + CollectionsMarshal.SetCount(list214, index); + Span span214 = CollectionsMarshal.AsSpan(list214); + num = 0; + ref QuestSequence reference167 = ref span214[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 @@ -182064,7 +219525,9 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - ref QuestStep reference168 = ref CollectionsMarshal.AsSpan(list215)[0]; + Span span215 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + ref QuestStep reference168 = ref span215[index2]; QuestStep obj161 = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -182082,31 +219545,37 @@ public static class AssemblyQuestLoader num3 = 1; List list216 = new List(num3); CollectionsMarshal.SetCount(list216, num3); - CollectionsMarshal.AsSpan(list216)[0] = 128; + Span span216 = CollectionsMarshal.AsSpan(list216); + num4 = 0; + span216[num4] = 128; obj162.InTerritory = list216; skipConditions2.AetheryteShortcutIf = obj162; obj161.SkipConditions = skipConditions2; reference168 = obj161; obj160.Steps = list215; reference167 = obj160; - ref QuestSequence reference169 = ref span53[1]; + num++; + ref QuestSequence reference169 = ref span214[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - Span span54 = CollectionsMarshal.AsSpan(list217); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + index2 = 2; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + Span span217 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span217[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span54[1] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + num2++; + span217[num2] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj163.Steps = list217; reference169 = obj163; - ref QuestSequence reference170 = ref span53[2]; + num++; + ref QuestSequence reference170 = ref span214[num]; QuestSequence obj164 = new QuestSequence { Sequence = 2 @@ -182114,7 +219583,9 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1009552u, new Vector3(96.025024f, 40.247147f, 60.68506f), 128) + Span span218 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + span218[index2] = new QuestStep(EInteractionType.Interact, 1009552u, new Vector3(96.025024f, 40.247147f, 60.68506f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -182125,24 +219596,28 @@ public static class AssemblyQuestLoader }; obj164.Steps = list218; reference170 = obj164; - ref QuestSequence reference171 = ref span53[3]; + num++; + ref QuestSequence reference171 = ref span214[num]; QuestSequence obj165 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - Span span55 = CollectionsMarshal.AsSpan(list219); - span55[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) + index2 = 2; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + Span span219 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span219[num2] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span55[1] = new QuestStep(EInteractionType.Interact, 1021904u, new Vector3(-480.5829f, 23.11398f, -315.81604f), 140); + num2++; + span219[num2] = new QuestStep(EInteractionType.Interact, 1021904u, new Vector3(-480.5829f, 23.11398f, -315.81604f), 140); obj165.Steps = list219; reference171 = obj165; - ref QuestSequence reference172 = ref span53[4]; + num++; + ref QuestSequence reference172 = ref span214[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue @@ -182150,13 +219625,15 @@ public static class AssemblyQuestLoader num2 = 2; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span56 = CollectionsMarshal.AsSpan(list220); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span220[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span56[1] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) + index2++; + span220[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) { NextQuestId = new QuestId(2924) }; @@ -182169,22 +219646,26 @@ public static class AssemblyQuestLoader num = 1; List list221 = new List(num); CollectionsMarshal.SetCount(list221, num); - CollectionsMarshal.AsSpan(list221)[0] = "liza"; + Span span221 = CollectionsMarshal.AsSpan(list221); + index = 0; + span221[index] = "liza"; questRoot24.Author = list221; - num = 9; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - Span span57 = CollectionsMarshal.AsSpan(list222); - ref QuestSequence reference173 = ref span57[0]; + index = 9; + List list222 = new List(index); + CollectionsMarshal.SetCount(list222, index); + Span span222 = CollectionsMarshal.AsSpan(list222); + num = 0; + ref QuestSequence reference173 = ref span222[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - Span span58 = CollectionsMarshal.AsSpan(list223); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + index2 = 2; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + Span span223 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span223[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -182196,10 +219677,12 @@ public static class AssemblyQuestLoader } } }; - span58[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + num2++; + span223[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj167.Steps = list223; reference173 = obj167; - ref QuestSequence reference174 = ref span57[1]; + num++; + ref QuestSequence reference174 = ref span222[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 @@ -182207,7 +219690,9 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new QuestStep(EInteractionType.Interact, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -182218,21 +219703,25 @@ public static class AssemblyQuestLoader }; obj168.Steps = list224; reference174 = obj168; - ref QuestSequence reference175 = ref span57[2]; + num++; + ref QuestSequence reference175 = ref span222[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1021905u, new Vector3(-220.17242f, 20.83071f, 353.16992f), 153) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.Interact, 1021905u, new Vector3(-220.17242f, 20.83071f, 353.16992f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj169.Steps = list225; reference175 = obj169; - ref QuestSequence reference176 = ref span57[3]; + num++; + ref QuestSequence reference176 = ref span222[num]; QuestSequence obj170 = new QuestSequence { Sequence = 3 @@ -182240,27 +219729,33 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 2008554u, new Vector3(-230.18237f, 1.3274536f, 406.3629f), 153) + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span226[index2] = new QuestStep(EInteractionType.Interact, 2008554u, new Vector3(-230.18237f, 1.3274536f, 406.3629f), 153) { Fly = true }; obj170.Steps = list226; reference176 = obj170; - ref QuestSequence reference177 = ref span57[4]; + num++; + ref QuestSequence reference177 = ref span222[num]; QuestSequence obj171 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 2008555u, new Vector3(-182.8794f, 0.3508911f, 463.76733f), 153) + index2 = 1; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + Span span227 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span227[num2] = new QuestStep(EInteractionType.Interact, 2008555u, new Vector3(-182.8794f, 0.3508911f, 463.76733f), 153) { Fly = true }; obj171.Steps = list227; reference177 = obj171; - ref QuestSequence reference178 = ref span57[5]; + num++; + ref QuestSequence reference178 = ref span222[num]; QuestSequence obj172 = new QuestSequence { Sequence = 5 @@ -182268,37 +219763,46 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 2008556u, new Vector3(-81.71216f, 1.2054443f, 395.71216f), 153) + Span span228 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span228[index2] = new QuestStep(EInteractionType.Interact, 2008556u, new Vector3(-81.71216f, 1.2054443f, 395.71216f), 153) { Fly = true }; obj172.Steps = list228; reference178 = obj172; - ref QuestSequence reference179 = ref span57[6]; + num++; + ref QuestSequence reference179 = ref span222[num]; QuestSequence obj173 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - ref QuestStep reference180 = ref CollectionsMarshal.AsSpan(list229)[0]; + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + Span span229 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + ref QuestStep reference180 = ref span229[num2]; QuestStep obj174 = new QuestStep(EInteractionType.Combat, null, new Vector3(-69.98173f, 0.9259782f, 361.20602f), 153) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list230 = new List(num3); - CollectionsMarshal.SetCount(list230, num3); - Span span59 = CollectionsMarshal.AsSpan(list230); - span59[0] = 7237u; - span59[1] = 7494u; - span59[2] = 7499u; + num4 = 3; + List list230 = new List(num4); + CollectionsMarshal.SetCount(list230, num4); + Span span230 = CollectionsMarshal.AsSpan(list230); + num3 = 0; + span230[num3] = 7237u; + num3++; + span230[num3] = 7494u; + num3++; + span230[num3] = 7499u; obj174.KillEnemyDataIds = list230; reference180 = obj174; obj173.Steps = list229; reference179 = obj173; - ref QuestSequence reference181 = ref span57[7]; + num++; + ref QuestSequence reference181 = ref span222[num]; QuestSequence obj175 = new QuestSequence { Sequence = 7 @@ -182306,21 +219810,26 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Action, 1021910u, new Vector3(-70.115234f, 0.94099265f, 360.3723f), 153) + Span span231 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span231[index2] = new QuestStep(EInteractionType.Action, 1021910u, new Vector3(-70.115234f, 0.94099265f, 360.3723f), 153) { Action = EAction.Adloquium }; obj175.Steps = list231; reference181 = obj175; - ref QuestSequence reference182 = ref span57[8]; + num++; + ref QuestSequence reference182 = ref span222[num]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span232[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) { Fly = true, NextQuestId = new QuestId(2925) @@ -182334,13 +219843,16 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "liza"; + Span span233 = CollectionsMarshal.AsSpan(list233); + index = 0; + span233[index] = "liza"; questRoot25.Author = list233; - num = 3; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span60 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference183 = ref span60[0]; + index = 3; + List list234 = new List(index); + CollectionsMarshal.SetCount(list234, index); + Span span234 = CollectionsMarshal.AsSpan(list234); + num = 0; + ref QuestSequence reference183 = ref span234[num]; QuestSequence obj177 = new QuestSequence { Sequence = 0 @@ -182348,7 +219860,9 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) + Span span235 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span235[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, SkipConditions = new SkipConditions @@ -182361,21 +219875,25 @@ public static class AssemblyQuestLoader }; obj177.Steps = list235; reference183 = obj177; - ref QuestSequence reference184 = ref span60[1]; + num++; + ref QuestSequence reference184 = ref span234[num]; QuestSequence obj178 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021913u, new Vector3(161.39453f, 37.625904f, 169.17664f), 153) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021913u, new Vector3(161.39453f, 37.625904f, 169.17664f), 153) { Fly = true }; obj178.Steps = list236; reference184 = obj178; - ref QuestSequence reference185 = ref span60[2]; + num++; + ref QuestSequence reference185 = ref span234[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -182383,7 +219901,9 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span237[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) { StopDistance = 5f, NextQuestId = new QuestId(2926) @@ -182397,21 +219917,26 @@ public static class AssemblyQuestLoader num = 1; List list238 = new List(num); CollectionsMarshal.SetCount(list238, num); - CollectionsMarshal.AsSpan(list238)[0] = "liza"; + Span span238 = CollectionsMarshal.AsSpan(list238); + index = 0; + span238[index] = "liza"; questRoot26.Author = list238; - num = 7; - List list239 = new List(num); - CollectionsMarshal.SetCount(list239, num); - Span span61 = CollectionsMarshal.AsSpan(list239); - ref QuestSequence reference186 = ref span61[0]; + index = 7; + List list239 = new List(index); + CollectionsMarshal.SetCount(list239, index); + Span span239 = CollectionsMarshal.AsSpan(list239); + num = 0; + ref QuestSequence reference186 = ref span239[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -182425,7 +219950,8 @@ public static class AssemblyQuestLoader }; obj180.Steps = list240; reference186 = obj180; - ref QuestSequence reference187 = ref span61[1]; + num++; + ref QuestSequence reference187 = ref span239[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -182433,30 +219959,36 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span62 = CollectionsMarshal.AsSpan(list241); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span62[1] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + index2++; + span241[index2] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj181.Steps = list241; reference187 = obj181; - ref QuestSequence reference188 = ref span61[2]; + num++; + ref QuestSequence reference188 = ref span239[num]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.Interact, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj182.Steps = list242; reference188 = obj182; - ref QuestSequence reference189 = ref span61[3]; + num++; + ref QuestSequence reference189 = ref span239[num]; QuestSequence obj183 = new QuestSequence { Sequence = 3 @@ -182464,27 +219996,33 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 2008557u, new Vector3(-160.08246f, 1.9683228f, 175.52454f), 153) + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span243[index2] = new QuestStep(EInteractionType.Interact, 2008557u, new Vector3(-160.08246f, 1.9683228f, 175.52454f), 153) { Fly = true }; obj183.Steps = list243; reference189 = obj183; - ref QuestSequence reference190 = ref span61[4]; + num++; + ref QuestSequence reference190 = ref span239[num]; QuestSequence obj184 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 2008558u, new Vector3(-150.19464f, 4.714966f, 52.109497f), 153) + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.Interact, 2008558u, new Vector3(-150.19464f, 4.714966f, 52.109497f), 153) { Fly = true }; obj184.Steps = list244; reference190 = obj184; - ref QuestSequence reference191 = ref span61[5]; + num++; + ref QuestSequence reference191 = ref span239[num]; QuestSequence obj185 = new QuestSequence { Sequence = 5 @@ -182492,7 +220030,9 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - ref QuestStep reference192 = ref CollectionsMarshal.AsSpan(list245)[0]; + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + ref QuestStep reference192 = ref span245[index2]; QuestStep obj186 = new QuestStep(EInteractionType.Combat, 2008559u, new Vector3(-250.5379f, 16.830688f, 19.21106f), 153) { Fly = true, @@ -182501,20 +220041,25 @@ public static class AssemblyQuestLoader num3 = 1; List list246 = new List(num3); CollectionsMarshal.SetCount(list246, num3); - CollectionsMarshal.AsSpan(list246)[0] = 6621u; + Span span246 = CollectionsMarshal.AsSpan(list246); + num4 = 0; + span246[num4] = 6621u; obj186.KillEnemyDataIds = list246; reference192 = obj186; obj185.Steps = list245; reference191 = obj185; - ref QuestSequence reference193 = ref span61[6]; + num++; + ref QuestSequence reference193 = ref span239[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + Span span247 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span247[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, NextQuestId = new QuestId(2927) @@ -182528,13 +220073,16 @@ public static class AssemblyQuestLoader num = 1; List list248 = new List(num); CollectionsMarshal.SetCount(list248, num); - CollectionsMarshal.AsSpan(list248)[0] = "liza"; + Span span248 = CollectionsMarshal.AsSpan(list248); + index = 0; + span248[index] = "liza"; questRoot27.Author = list248; - num = 7; - List list249 = new List(num); - CollectionsMarshal.SetCount(list249, num); - Span span63 = CollectionsMarshal.AsSpan(list249); - ref QuestSequence reference194 = ref span63[0]; + index = 7; + List list249 = new List(index); + CollectionsMarshal.SetCount(list249, index); + Span span249 = CollectionsMarshal.AsSpan(list249); + num = 0; + ref QuestSequence reference194 = ref span249[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 @@ -182542,7 +220090,9 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) + Span span250 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span250[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, SkipConditions = new SkipConditions @@ -182555,25 +220105,30 @@ public static class AssemblyQuestLoader }; obj188.Steps = list250; reference194 = obj188; - ref QuestSequence reference195 = ref span63[1]; + num++; + ref QuestSequence reference195 = ref span249[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021917u, new Vector3(-343.80103f, -0.3600377f, 448.1117f), 153) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + Span span251 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span251[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021917u, new Vector3(-343.80103f, -0.3600377f, 448.1117f), 153) { Fly = true }; obj189.Steps = list251; reference195 = obj189; - span63[2] = new QuestSequence + num++; + span249[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference196 = ref span63[3]; + num++; + ref QuestSequence reference196 = ref span249[num]; QuestSequence obj190 = new QuestSequence { Sequence = 3 @@ -182581,27 +220136,33 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.Interact, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153); + Span span252 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span252[index2] = new QuestStep(EInteractionType.Interact, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153); obj190.Steps = list252; reference196 = obj190; - ref QuestSequence reference197 = ref span63[4]; + num++; + ref QuestSequence reference197 = ref span249[num]; QuestSequence obj191 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - Span span64 = CollectionsMarshal.AsSpan(list253); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + index2 = 2; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + Span span253 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span253[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span64[1] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + num2++; + span253[num2] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj191.Steps = list253; reference197 = obj191; - ref QuestSequence reference198 = ref span63[5]; + num++; + ref QuestSequence reference198 = ref span249[num]; QuestSequence obj192 = new QuestSequence { Sequence = 5 @@ -182609,46 +220170,63 @@ public static class AssemblyQuestLoader num2 = 2; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span65 = CollectionsMarshal.AsSpan(list254); - ref QuestStep reference199 = ref span65[0]; + Span span254 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + ref QuestStep reference199 = ref span254[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); - num3 = 6; - List list255 = new List(num3); - CollectionsMarshal.SetCount(list255, num3); - Span span66 = CollectionsMarshal.AsSpan(list255); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list255 = new List(num4); + CollectionsMarshal.SetCount(list255, num4); + Span span255 = CollectionsMarshal.AsSpan(list255); + num3 = 0; + span255[num3] = null; + num3++; + span255[num3] = null; + num3++; + span255[num3] = null; + num3++; + span255[num3] = null; + num3++; + span255[num3] = null; + num3++; + span255[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list255; reference199 = questStep9; - ref QuestStep reference200 = ref span65[1]; + index2++; + ref QuestStep reference200 = ref span254[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1021919u, new Vector3(207.53784f, -3.049824f, 43.22876f), 139); num3 = 6; List list256 = new List(num3); CollectionsMarshal.SetCount(list256, num3); - Span span67 = CollectionsMarshal.AsSpan(list256); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span256 = CollectionsMarshal.AsSpan(list256); + num4 = 0; + span256[num4] = null; + num4++; + span256[num4] = null; + num4++; + span256[num4] = null; + num4++; + span256[num4] = null; + num4++; + span256[num4] = null; + num4++; + span256[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list256; reference200 = questStep10; obj192.Steps = list254; reference198 = obj192; - ref QuestSequence reference201 = ref span63[6]; + num++; + ref QuestSequence reference201 = ref span249[num]; QuestSequence obj193 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021918u, new Vector3(206.80542f, -3.065022f, 43.83911f), 139); + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span257 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span257[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021918u, new Vector3(206.80542f, -3.065022f, 43.83911f), 139); obj193.Steps = list257; reference201 = obj193; questRoot27.QuestSequence = list249; @@ -182658,13 +220236,16 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - CollectionsMarshal.AsSpan(list258)[0] = "liza"; + Span span258 = CollectionsMarshal.AsSpan(list258); + index = 0; + span258[index] = "liza"; questRoot28.Author = list258; - num = 6; - List list259 = new List(num); - CollectionsMarshal.SetCount(list259, num); - Span span68 = CollectionsMarshal.AsSpan(list259); - ref QuestSequence reference202 = ref span68[0]; + index = 6; + List list259 = new List(index); + CollectionsMarshal.SetCount(list259, index); + Span span259 = CollectionsMarshal.AsSpan(list259); + num = 0; + ref QuestSequence reference202 = ref span259[num]; QuestSequence obj194 = new QuestSequence { Sequence = 0 @@ -182672,7 +220253,9 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021926u, new Vector3(71.06128f, -0.10695544f, 59.372803f), 635) + Span span260 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span260[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021926u, new Vector3(71.06128f, -0.10695544f, 59.372803f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -182685,18 +220268,22 @@ public static class AssemblyQuestLoader }; obj194.Steps = list260; reference202 = obj194; - ref QuestSequence reference203 = ref span68[1]; + num++; + ref QuestSequence reference203 = ref span259[num]; QuestSequence obj195 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1021930u, new Vector3(112.41321f, 0.65204173f, 56.290405f), 635); + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + Span span261 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span261[num2] = new QuestStep(EInteractionType.Interact, 1021930u, new Vector3(112.41321f, 0.65204173f, 56.290405f), 635); obj195.Steps = list261; reference203 = obj195; - ref QuestSequence reference204 = ref span68[2]; + num++; + ref QuestSequence reference204 = ref span259[num]; QuestSequence obj196 = new QuestSequence { Sequence = 2 @@ -182704,25 +220291,31 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1021933u, new Vector3(466.20886f, 69.27097f, 525.7495f), 612) + Span span262 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span262[index2] = new QuestStep(EInteractionType.Interact, 1021933u, new Vector3(466.20886f, 69.27097f, 525.7495f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj196.Steps = list262; reference204 = obj196; - ref QuestSequence reference205 = ref span68[3]; + num++; + ref QuestSequence reference205 = ref span259[num]; QuestSequence obj197 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1021941u, new Vector3(467.00232f, 69.270096f, 521.14136f), 612); + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + Span span263 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span263[num2] = new QuestStep(EInteractionType.Interact, 1021941u, new Vector3(467.00232f, 69.270096f, 521.14136f), 612); obj197.Steps = list263; reference205 = obj197; - ref QuestSequence reference206 = ref span68[4]; + num++; + ref QuestSequence reference206 = ref span259[num]; QuestSequence obj198 = new QuestSequence { Sequence = 4 @@ -182730,21 +220323,26 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021937u, new Vector3(465.5984f, 69.25287f, 518.88293f), 612) + Span span264 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span264[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021937u, new Vector3(465.5984f, 69.25287f, 518.88293f), 612) { StopDistance = 7f }; obj198.Steps = list264; reference206 = obj198; - ref QuestSequence reference207 = ref span68[5]; + num++; + ref QuestSequence reference207 = ref span259[num]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + Span span265 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span265[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) { NextQuestId = new QuestId(2929) }; @@ -182757,13 +220355,16 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "liza"; + Span span266 = CollectionsMarshal.AsSpan(list266); + index = 0; + span266[index] = "liza"; questRoot29.Author = list266; - num = 4; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span69 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference208 = ref span69[0]; + index = 4; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + Span span267 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference208 = ref span267[num]; QuestSequence obj200 = new QuestSequence { Sequence = 0 @@ -182771,24 +220372,30 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724); + Span span268 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span268[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724); obj200.Steps = list268; reference208 = obj200; - ref QuestSequence reference209 = ref span69[1]; + num++; + ref QuestSequence reference209 = ref span267[num]; QuestSequence obj201 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1021946u, new Vector3(-211.01703f, -223.25f, -117.021484f), 724) + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + Span span269 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span269[num2] = new QuestStep(EInteractionType.Interact, 1021946u, new Vector3(-211.01703f, -223.25f, -117.021484f), 724) { StopDistance = 6f }; obj201.Steps = list269; reference209 = obj201; - ref QuestSequence reference210 = ref span69[2]; + num++; + ref QuestSequence reference210 = ref span267[num]; QuestSequence obj202 = new QuestSequence { Sequence = 2 @@ -182796,7 +220403,9 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.Duty, null, null, 724) + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span270[index2] = new QuestStep(EInteractionType.Duty, null, null, 724) { DutyOptions = new DutyOptions { @@ -182805,15 +220414,18 @@ public static class AssemblyQuestLoader }; obj202.Steps = list270; reference210 = obj202; - ref QuestSequence reference211 = ref span69[3]; + num++; + ref QuestSequence reference211 = ref span267[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) { NextQuestId = new QuestId(2930) }; @@ -182826,13 +220438,16 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - CollectionsMarshal.AsSpan(list272)[0] = "liza"; + Span span272 = CollectionsMarshal.AsSpan(list272); + index = 0; + span272[index] = "liza"; questRoot30.Author = list272; - num = 4; - List list273 = new List(num); - CollectionsMarshal.SetCount(list273, num); - Span span70 = CollectionsMarshal.AsSpan(list273); - ref QuestSequence reference212 = ref span70[0]; + index = 4; + List list273 = new List(index); + CollectionsMarshal.SetCount(list273, index); + Span span273 = CollectionsMarshal.AsSpan(list273); + num = 0; + ref QuestSequence reference212 = ref span273[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 @@ -182840,24 +220455,30 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724); + Span span274 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span274[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724); obj204.Steps = list274; reference212 = obj204; - ref QuestSequence reference213 = ref span70[1]; + num++; + ref QuestSequence reference213 = ref span273[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1021946u, new Vector3(-211.01703f, -223.25f, -117.021484f), 724) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.Interact, 1021946u, new Vector3(-211.01703f, -223.25f, -117.021484f), 724) { StopDistance = 6f }; obj205.Steps = list275; reference213 = obj205; - ref QuestSequence reference214 = ref span70[2]; + num++; + ref QuestSequence reference214 = ref span273[num]; QuestSequence obj206 = new QuestSequence { Sequence = 2 @@ -182865,7 +220486,9 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Duty, null, null, 724) + Span span276 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span276[index2] = new QuestStep(EInteractionType.Duty, null, null, 724) { DutyOptions = new DutyOptions { @@ -182874,15 +220497,18 @@ public static class AssemblyQuestLoader }; obj206.Steps = list276; reference214 = obj206; - ref QuestSequence reference215 = ref span70[3]; + num++; + ref QuestSequence reference215 = ref span273[num]; QuestSequence obj207 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021943u, new Vector3(-207.20227f, -223.50002f, -124.95618f), 724) + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span277[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021943u, new Vector3(-207.20227f, -223.50002f, -124.95618f), 724) { StopDistance = 7f, NextQuestId = new QuestId(2931) @@ -182896,13 +220522,16 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - CollectionsMarshal.AsSpan(list278)[0] = "liza"; + Span span278 = CollectionsMarshal.AsSpan(list278); + index = 0; + span278[index] = "liza"; questRoot31.Author = list278; - num = 4; - List list279 = new List(num); - CollectionsMarshal.SetCount(list279, num); - Span span71 = CollectionsMarshal.AsSpan(list279); - ref QuestSequence reference216 = ref span71[0]; + index = 4; + List list279 = new List(index); + CollectionsMarshal.SetCount(list279, index); + Span span279 = CollectionsMarshal.AsSpan(list279); + num = 0; + ref QuestSequence reference216 = ref span279[num]; QuestSequence obj208 = new QuestSequence { Sequence = 0 @@ -182910,27 +220539,33 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) + Span span280 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span280[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) { StopDistance = 7f }; obj208.Steps = list280; reference216 = obj208; - ref QuestSequence reference217 = ref span71[1]; + num++; + ref QuestSequence reference217 = ref span279[num]; QuestSequence obj209 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1021946u, new Vector3(-211.01703f, -223.25f, -117.021484f), 724) + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + Span span281 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span281[num2] = new QuestStep(EInteractionType.Interact, 1021946u, new Vector3(-211.01703f, -223.25f, -117.021484f), 724) { StopDistance = 6f }; obj209.Steps = list281; reference217 = obj209; - ref QuestSequence reference218 = ref span71[2]; + num++; + ref QuestSequence reference218 = ref span279[num]; QuestSequence obj210 = new QuestSequence { Sequence = 2 @@ -182938,7 +220573,9 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Duty, null, null, 724) + Span span282 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span282[index2] = new QuestStep(EInteractionType.Duty, null, null, 724) { DutyOptions = new DutyOptions { @@ -182947,15 +220584,18 @@ public static class AssemblyQuestLoader }; obj210.Steps = list282; reference218 = obj210; - ref QuestSequence reference219 = ref span71[3]; + num++; + ref QuestSequence reference219 = ref span279[num]; QuestSequence obj211 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + Span span283 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span283[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) { StopDistance = 6f, NextQuestId = new QuestId(2932) @@ -182969,13 +220609,16 @@ public static class AssemblyQuestLoader num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - CollectionsMarshal.AsSpan(list284)[0] = "liza"; + Span span284 = CollectionsMarshal.AsSpan(list284); + index = 0; + span284[index] = "liza"; questRoot32.Author = list284; - num = 4; - List list285 = new List(num); - CollectionsMarshal.SetCount(list285, num); - Span span72 = CollectionsMarshal.AsSpan(list285); - ref QuestSequence reference220 = ref span72[0]; + index = 4; + List list285 = new List(index); + CollectionsMarshal.SetCount(list285, index); + Span span285 = CollectionsMarshal.AsSpan(list285); + num = 0; + ref QuestSequence reference220 = ref span285[num]; QuestSequence obj212 = new QuestSequence { Sequence = 0 @@ -182983,27 +220626,33 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) + Span span286 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + span286[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) { StopDistance = 7f }; obj212.Steps = list286; reference220 = obj212; - ref QuestSequence reference221 = ref span72[1]; + num++; + ref QuestSequence reference221 = ref span285[num]; QuestSequence obj213 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1021946u, new Vector3(-211.01703f, -223.25f, -117.021484f), 724) + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + Span span287 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + span287[num2] = new QuestStep(EInteractionType.Interact, 1021946u, new Vector3(-211.01703f, -223.25f, -117.021484f), 724) { StopDistance = 6f }; obj213.Steps = list287; reference221 = obj213; - ref QuestSequence reference222 = ref span72[2]; + num++; + ref QuestSequence reference222 = ref span285[num]; QuestSequence obj214 = new QuestSequence { Sequence = 2 @@ -183011,7 +220660,9 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Duty, null, null, 724) + Span span288 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span288[index2] = new QuestStep(EInteractionType.Duty, null, null, 724) { DutyOptions = new DutyOptions { @@ -183020,15 +220671,18 @@ public static class AssemblyQuestLoader }; obj214.Steps = list288; reference222 = obj214; - ref QuestSequence reference223 = ref span72[3]; + num++; + ref QuestSequence reference223 = ref span285[num]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021949u, new Vector3(462.6687f, 69.02547f, 515.06824f), 612) + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + Span span289 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span289[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021949u, new Vector3(462.6687f, 69.02547f, 515.06824f), 612) { StopDistance = 5f, NextQuestId = new QuestId(2933) @@ -183042,13 +220696,16 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - CollectionsMarshal.AsSpan(list290)[0] = "liza"; + Span span290 = CollectionsMarshal.AsSpan(list290); + index = 0; + span290[index] = "liza"; questRoot33.Author = list290; - num = 6; - List list291 = new List(num); - CollectionsMarshal.SetCount(list291, num); - Span span73 = CollectionsMarshal.AsSpan(list291); - ref QuestSequence reference224 = ref span73[0]; + index = 6; + List list291 = new List(index); + CollectionsMarshal.SetCount(list291, index); + Span span291 = CollectionsMarshal.AsSpan(list291); + num = 0; + ref QuestSequence reference224 = ref span291[num]; QuestSequence obj216 = new QuestSequence { Sequence = 0 @@ -183056,27 +220713,33 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021949u, new Vector3(462.6687f, 69.02547f, 515.06824f), 612) + Span span292 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span292[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021949u, new Vector3(462.6687f, 69.02547f, 515.06824f), 612) { StopDistance = 5f }; obj216.Steps = list292; reference224 = obj216; - ref QuestSequence reference225 = ref span73[1]; + num++; + ref QuestSequence reference225 = ref span291[num]; QuestSequence obj217 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + Span span293 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span293[num2] = new QuestStep(EInteractionType.Interact, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj217.Steps = list293; reference225 = obj217; - ref QuestSequence reference226 = ref span73[2]; + num++; + ref QuestSequence reference226 = ref span291[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 @@ -183084,7 +220747,9 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1021952u, new Vector3(40.146484f, -19.000002f, 94.92627f), 132) + Span span294 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span294[index2] = new QuestStep(EInteractionType.Interact, 1021952u, new Vector3(40.146484f, -19.000002f, 94.92627f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -183095,18 +220760,22 @@ public static class AssemblyQuestLoader }; obj218.Steps = list294; reference226 = obj218; - ref QuestSequence reference227 = ref span73[3]; + num++; + ref QuestSequence reference227 = ref span291[num]; QuestSequence obj219 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1021956u, new Vector3(4.257263f, 0.002998305f, -0.4730835f), 636); + index2 = 1; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + Span span295 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + span295[num2] = new QuestStep(EInteractionType.Interact, 1021956u, new Vector3(4.257263f, 0.002998305f, -0.4730835f), 636); obj219.Steps = list295; reference227 = obj219; - ref QuestSequence reference228 = ref span73[4]; + num++; + ref QuestSequence reference228 = ref span291[num]; QuestSequence obj220 = new QuestSequence { Sequence = 4 @@ -183114,18 +220783,23 @@ public static class AssemblyQuestLoader num2 = 1; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.Interact, 1021953u, new Vector3(41.550293f, -19.000004f, 95.26196f), 132); + Span span296 = CollectionsMarshal.AsSpan(list296); + index2 = 0; + span296[index2] = new QuestStep(EInteractionType.Interact, 1021953u, new Vector3(41.550293f, -19.000004f, 95.26196f), 132); obj220.Steps = list296; reference228 = obj220; - ref QuestSequence reference229 = ref span73[5]; + num++; + ref QuestSequence reference229 = ref span291[num]; QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) + index2 = 1; + List list297 = new List(index2); + CollectionsMarshal.SetCount(list297, index2); + Span span297 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + span297[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, NextQuestId = new QuestId(3031) @@ -183139,13 +220813,16 @@ public static class AssemblyQuestLoader num = 1; List list298 = new List(num); CollectionsMarshal.SetCount(list298, num); - CollectionsMarshal.AsSpan(list298)[0] = "JerryWester"; + Span span298 = CollectionsMarshal.AsSpan(list298); + index = 0; + span298[index] = "JerryWester"; questRoot34.Author = list298; - num = 4; - List list299 = new List(num); - CollectionsMarshal.SetCount(list299, num); - Span span74 = CollectionsMarshal.AsSpan(list299); - ref QuestSequence reference230 = ref span74[0]; + index = 4; + List list299 = new List(index); + CollectionsMarshal.SetCount(list299, index); + Span span299 = CollectionsMarshal.AsSpan(list299); + num = 0; + ref QuestSequence reference230 = ref span299[num]; QuestSequence obj222 = new QuestSequence { Sequence = 0 @@ -183153,70 +220830,96 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020004u, new Vector3(276.35608f, 3.6584158f, -377.5235f), 614) + Span span300 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span300[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020004u, new Vector3(276.35608f, 3.6584158f, -377.5235f), 614) { StopDistance = 5f }; obj222.Steps = list300; reference230 = obj222; - span74[1] = new QuestSequence + num++; + span299[num] = new QuestSequence { Sequence = 1 }; - ref QuestSequence reference231 = ref span74[2]; + num++; + ref QuestSequence reference231 = ref span299[num]; QuestSequence obj223 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - Span span75 = CollectionsMarshal.AsSpan(list301); - ref QuestStep reference232 = ref span75[0]; + index2 = 3; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + Span span301 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + ref QuestStep reference232 = ref span301[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1020008u, new Vector3(5.996765f, -0.5066767f, 2.5177002f), 681); - num3 = 6; - List list302 = new List(num3); - CollectionsMarshal.SetCount(list302, num3); - Span span76 = CollectionsMarshal.AsSpan(list302); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list302 = new List(num4); + CollectionsMarshal.SetCount(list302, num4); + Span span302 = CollectionsMarshal.AsSpan(list302); + num3 = 0; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list302; reference232 = questStep11; - ref QuestStep reference233 = ref span75[1]; + num2++; + ref QuestStep reference233 = ref span301[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1020010u, new Vector3(-30.014526f, -0.24868584f, -2.822998f), 681); num3 = 6; List list303 = new List(num3); CollectionsMarshal.SetCount(list303, num3); - Span span77 = CollectionsMarshal.AsSpan(list303); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span303 = CollectionsMarshal.AsSpan(list303); + num4 = 0; + span303[num4] = null; + num4++; + span303[num4] = null; + num4++; + span303[num4] = null; + num4++; + span303[num4] = null; + num4++; + span303[num4] = null; + num4++; + span303[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list303; reference233 = questStep12; - ref QuestStep reference234 = ref span75[2]; + num2++; + ref QuestStep reference234 = ref span301[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1020009u, new Vector3(-45.243042f, -0.2509899f, -31.845642f), 681); - num3 = 6; - List list304 = new List(num3); - CollectionsMarshal.SetCount(list304, num3); - Span span78 = CollectionsMarshal.AsSpan(list304); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list304 = new List(num4); + CollectionsMarshal.SetCount(list304, num4); + Span span304 = CollectionsMarshal.AsSpan(list304); + num3 = 0; + span304[num3] = null; + num3++; + span304[num3] = null; + num3++; + span304[num3] = null; + num3++; + span304[num3] = null; + num3++; + span304[num3] = null; + num3++; + span304[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list304; reference234 = questStep13; obj223.Steps = list301; reference231 = obj223; - ref QuestSequence reference235 = ref span74[3]; + num++; + ref QuestSequence reference235 = ref span299[num]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue @@ -183224,12 +220927,16 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - ref QuestStep reference236 = ref CollectionsMarshal.AsSpan(list305)[0]; + Span span305 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + ref QuestStep reference236 = ref span305[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.CompleteQuest, 1020011u, new Vector3(-49.881836f, -0.26051223f, -12.893921f), 681); num3 = 1; List list306 = new List(num3); CollectionsMarshal.SetCount(list306, num3); - CollectionsMarshal.AsSpan(list306)[0] = new DialogueChoice + Span span306 = CollectionsMarshal.AsSpan(list306); + num4 = 0; + span306[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA325_02934_Q1_000_064"), @@ -183246,27 +220953,33 @@ public static class AssemblyQuestLoader num = 1; List list307 = new List(num); CollectionsMarshal.SetCount(list307, num); - CollectionsMarshal.AsSpan(list307)[0] = "JerryWester"; + Span span307 = CollectionsMarshal.AsSpan(list307); + index = 0; + span307[index] = "JerryWester"; questRoot35.Author = list307; - num = 3; - List list308 = new List(num); - CollectionsMarshal.SetCount(list308, num); - Span span79 = CollectionsMarshal.AsSpan(list308); - ref QuestSequence reference237 = ref span79[0]; + index = 3; + List list308 = new List(index); + CollectionsMarshal.SetCount(list308, index); + Span span308 = CollectionsMarshal.AsSpan(list308); + num = 0; + ref QuestSequence reference237 = ref span308[num]; QuestSequence obj225 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020052u, new Vector3(-52.47583f, -0.2509899f, -25.742065f), 681) + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + Span span309 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span309[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020052u, new Vector3(-52.47583f, -0.2509899f, -25.742065f), 681) { StopDistance = 7f }; obj225.Steps = list309; reference237 = obj225; - ref QuestSequence reference238 = ref span79[1]; + num++; + ref QuestSequence reference238 = ref span308[num]; QuestSequence obj226 = new QuestSequence { Sequence = 1 @@ -183274,27 +220987,33 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1020053u, new Vector3(456.01575f, 41.2719f, -43.320435f), 614) + Span span310 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span310[index2] = new QuestStep(EInteractionType.Interact, 1020053u, new Vector3(456.01575f, 41.2719f, -43.320435f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj226.Steps = list310; reference238 = obj226; - ref QuestSequence reference239 = ref span79[2]; + num++; + ref QuestSequence reference239 = ref span308[num]; QuestSequence obj227 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - Span span80 = CollectionsMarshal.AsSpan(list311); - span80[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.05653f, -0.299994f, 191.03581f), 614); - span80[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008013u, new Vector3(-97.428955f, 13.260071f, 563.714f), 614) + index2 = 3; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + Span span311 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span311[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.05653f, -0.299994f, 191.03581f), 614); + num2++; + span311[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008013u, new Vector3(-97.428955f, 13.260071f, 563.714f), 614) { AetherCurrentId = 2818201u }; - span80[2] = new QuestStep(EInteractionType.CompleteQuest, 1020055u, new Vector3(-463.21814f, 1.2300053f, 535.6068f), 614); + num2++; + span311[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020055u, new Vector3(-463.21814f, 1.2300053f, 535.6068f), 614); obj227.Steps = list311; reference239 = obj227; questRoot35.QuestSequence = list308; @@ -183304,13 +221023,16 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - CollectionsMarshal.AsSpan(list312)[0] = "liza"; + Span span312 = CollectionsMarshal.AsSpan(list312); + index = 0; + span312[index] = "liza"; questRoot36.Author = list312; - num = 2; - List list313 = new List(num); - CollectionsMarshal.SetCount(list313, num); - Span span81 = CollectionsMarshal.AsSpan(list313); - ref QuestSequence reference240 = ref span81[0]; + index = 2; + List list313 = new List(index); + CollectionsMarshal.SetCount(list313, index); + Span span313 = CollectionsMarshal.AsSpan(list313); + num = 0; + ref QuestSequence reference240 = ref span313[num]; QuestSequence obj228 = new QuestSequence { Sequence = 0 @@ -183318,7 +221040,9 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) + Span span314 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span314[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -183332,15 +221056,18 @@ public static class AssemblyQuestLoader }; obj228.Steps = list314; reference240 = obj228; - ref QuestSequence reference241 = ref span81[1]; + num++; + ref QuestSequence reference241 = ref span313[num]; QuestSequence obj229 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019009u, new Vector3(-29.160034f, 0.09999966f, -46.189087f), 628) + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + Span span315 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span315[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019009u, new Vector3(-29.160034f, 0.09999966f, -46.189087f), 628) { NextQuestId = new QuestId(2937) }; @@ -183353,13 +221080,16 @@ public static class AssemblyQuestLoader num = 1; List list316 = new List(num); CollectionsMarshal.SetCount(list316, num); - CollectionsMarshal.AsSpan(list316)[0] = "liza"; + Span span316 = CollectionsMarshal.AsSpan(list316); + index = 0; + span316[index] = "liza"; questRoot37.Author = list316; - num = 2; - List list317 = new List(num); - CollectionsMarshal.SetCount(list317, num); - Span span82 = CollectionsMarshal.AsSpan(list317); - ref QuestSequence reference242 = ref span82[0]; + index = 2; + List list317 = new List(index); + CollectionsMarshal.SetCount(list317, index); + Span span317 = CollectionsMarshal.AsSpan(list317); + num = 0; + ref QuestSequence reference242 = ref span317[num]; QuestSequence obj230 = new QuestSequence { Sequence = 0 @@ -183367,7 +221097,9 @@ public static class AssemblyQuestLoader num2 = 1; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) + Span span318 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span318[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -183381,15 +221113,18 @@ public static class AssemblyQuestLoader }; obj230.Steps = list318; reference242 = obj230; - ref QuestSequence reference243 = ref span82[1]; + num++; + ref QuestSequence reference243 = ref span317[num]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019009u, new Vector3(-29.160034f, 0.09999966f, -46.189087f), 628) + index2 = 1; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + Span span319 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + span319[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019009u, new Vector3(-29.160034f, 0.09999966f, -46.189087f), 628) { NextQuestId = new QuestId(2938) }; @@ -183402,13 +221137,16 @@ public static class AssemblyQuestLoader num = 1; List list320 = new List(num); CollectionsMarshal.SetCount(list320, num); - CollectionsMarshal.AsSpan(list320)[0] = "liza"; + Span span320 = CollectionsMarshal.AsSpan(list320); + index = 0; + span320[index] = "liza"; questRoot38.Author = list320; - num = 2; - List list321 = new List(num); - CollectionsMarshal.SetCount(list321, num); - Span span83 = CollectionsMarshal.AsSpan(list321); - ref QuestSequence reference244 = ref span83[0]; + index = 2; + List list321 = new List(index); + CollectionsMarshal.SetCount(list321, index); + Span span321 = CollectionsMarshal.AsSpan(list321); + num = 0; + ref QuestSequence reference244 = ref span321[num]; QuestSequence obj232 = new QuestSequence { Sequence = 0 @@ -183416,7 +221154,9 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) + Span span322 = CollectionsMarshal.AsSpan(list322); + index2 = 0; + span322[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -183430,15 +221170,18 @@ public static class AssemblyQuestLoader }; obj232.Steps = list322; reference244 = obj232; - ref QuestSequence reference245 = ref span83[1]; + num++; + ref QuestSequence reference245 = ref span321[num]; QuestSequence obj233 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019009u, new Vector3(-29.160034f, 0.09999966f, -46.189087f), 628) + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + Span span323 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span323[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019009u, new Vector3(-29.160034f, 0.09999966f, -46.189087f), 628) { NextQuestId = new QuestId(2939) }; @@ -183451,13 +221194,16 @@ public static class AssemblyQuestLoader num = 1; List list324 = new List(num); CollectionsMarshal.SetCount(list324, num); - CollectionsMarshal.AsSpan(list324)[0] = "liza"; + Span span324 = CollectionsMarshal.AsSpan(list324); + index = 0; + span324[index] = "liza"; questRoot39.Author = list324; - num = 2; - List list325 = new List(num); - CollectionsMarshal.SetCount(list325, num); - Span span84 = CollectionsMarshal.AsSpan(list325); - ref QuestSequence reference246 = ref span84[0]; + index = 2; + List list325 = new List(index); + CollectionsMarshal.SetCount(list325, index); + Span span325 = CollectionsMarshal.AsSpan(list325); + num = 0; + ref QuestSequence reference246 = ref span325[num]; QuestSequence obj234 = new QuestSequence { Sequence = 0 @@ -183465,7 +221211,9 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) + Span span326 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span326[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -183479,15 +221227,18 @@ public static class AssemblyQuestLoader }; obj234.Steps = list326; reference246 = obj234; - ref QuestSequence reference247 = ref span84[1]; + num++; + ref QuestSequence reference247 = ref span325[num]; QuestSequence obj235 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019009u, new Vector3(-29.160034f, 0.09999966f, -46.189087f), 628) + index2 = 1; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + Span span327 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span327[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019009u, new Vector3(-29.160034f, 0.09999966f, -46.189087f), 628) { NextQuestId = new QuestId(3597) }; @@ -183500,13 +221251,16 @@ public static class AssemblyQuestLoader num = 1; List list328 = new List(num); CollectionsMarshal.SetCount(list328, num); - CollectionsMarshal.AsSpan(list328)[0] = "liza"; + Span span328 = CollectionsMarshal.AsSpan(list328); + index = 0; + span328[index] = "liza"; questRoot40.Author = list328; - num = 2; - List list329 = new List(num); - CollectionsMarshal.SetCount(list329, num); - Span span85 = CollectionsMarshal.AsSpan(list329); - ref QuestSequence reference248 = ref span85[0]; + index = 2; + List list329 = new List(index); + CollectionsMarshal.SetCount(list329, index); + Span span329 = CollectionsMarshal.AsSpan(list329); + num = 0; + ref QuestSequence reference248 = ref span329[num]; QuestSequence obj236 = new QuestSequence { Sequence = 0 @@ -183514,7 +221268,9 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023642u, new Vector3(53.787964f, 0f, 93.0647f), 635) + Span span330 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span330[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023642u, new Vector3(53.787964f, 0f, 93.0647f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -183527,15 +221283,18 @@ public static class AssemblyQuestLoader }; obj236.Steps = list330; reference248 = obj236; - ref QuestSequence reference249 = ref span85[1]; + num++; + ref QuestSequence reference249 = ref span329[num]; QuestSequence obj237 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022849u, new Vector3(429.37354f, 60.51156f, -506.82846f), 612) + index2 = 1; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + Span span331 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + span331[num2] = new QuestStep(EInteractionType.CompleteQuest, 1022849u, new Vector3(429.37354f, 60.51156f, -506.82846f), 612) { AethernetShortcut = new AethernetShortcut { @@ -183553,12 +221312,16 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - CollectionsMarshal.AsSpan(list332)[0] = "liza"; + Span span332 = CollectionsMarshal.AsSpan(list332); + index = 0; + span332[index] = "liza"; questRoot41.Author = list332; - num = 1; - List list333 = new List(num); - CollectionsMarshal.SetCount(list333, num); - ref QuestSequence reference250 = ref CollectionsMarshal.AsSpan(list333)[0]; + index = 1; + List list333 = new List(index); + CollectionsMarshal.SetCount(list333, index); + Span span333 = CollectionsMarshal.AsSpan(list333); + num = 0; + ref QuestSequence reference250 = ref span333[num]; QuestSequence obj238 = new QuestSequence { Sequence = 0 @@ -183566,8 +221329,9 @@ public static class AssemblyQuestLoader num2 = 2; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - Span span86 = CollectionsMarshal.AsSpan(list334); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-69.61145f, 0.00999999f, 62.405437f), 635) + Span span334 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span334[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-69.61145f, 0.00999999f, 62.405437f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -183578,7 +221342,8 @@ public static class AssemblyQuestLoader } } }; - span86[1] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); + index2++; + span334[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); obj238.Steps = list334; reference250 = obj238; questRoot41.QuestSequence = list333; @@ -183588,20 +221353,26 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - CollectionsMarshal.AsSpan(list335)[0] = "liza"; + Span span335 = CollectionsMarshal.AsSpan(list335); + index = 0; + span335[index] = "liza"; questRoot42.Author = list335; - num = 1; - List list336 = new List(num); - CollectionsMarshal.SetCount(list336, num); - ref QuestSequence reference251 = ref CollectionsMarshal.AsSpan(list336)[0]; + index = 1; + List list336 = new List(index); + CollectionsMarshal.SetCount(list336, index); + Span span336 = CollectionsMarshal.AsSpan(list336); + num = 0; + ref QuestSequence reference251 = ref span336[num]; QuestSequence obj239 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022622u, new Vector3(18.08191f, 4.0559936f, 70.02356f), 628); + index2 = 1; + List list337 = new List(index2); + CollectionsMarshal.SetCount(list337, index2); + Span span337 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + span337[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022622u, new Vector3(18.08191f, 4.0559936f, 70.02356f), 628); obj239.Steps = list337; reference251 = obj239; questRoot42.QuestSequence = list336; @@ -183611,13 +221382,16 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - CollectionsMarshal.AsSpan(list338)[0] = "JerryWester"; + Span span338 = CollectionsMarshal.AsSpan(list338); + index = 0; + span338[index] = "JerryWester"; questRoot43.Author = list338; - num = 4; - List list339 = new List(num); - CollectionsMarshal.SetCount(list339, num); - Span span87 = CollectionsMarshal.AsSpan(list339); - ref QuestSequence reference252 = ref span87[0]; + index = 4; + List list339 = new List(index); + CollectionsMarshal.SetCount(list339, index); + Span span339 = CollectionsMarshal.AsSpan(list339); + num = 0; + ref QuestSequence reference252 = ref span339[num]; QuestSequence obj240 = new QuestSequence { Sequence = 0 @@ -183625,23 +221399,28 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); + Span span340 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + span340[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); obj240.Steps = list340; reference252 = obj240; - ref QuestSequence reference253 = ref span87[1]; + num++; + ref QuestSequence reference253 = ref span339[num]; QuestSequence obj241 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - Span span88 = CollectionsMarshal.AsSpan(list341); - span88[0] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) + index2 = 2; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + Span span341 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span341[num2] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) { TargetTerritoryId = (ushort)628 }; - span88[1] = new QuestStep(EInteractionType.Interact, 1020222u, new Vector3(-9.781128f, 5.982579f, -172.53375f), 628) + num2++; + span341[num2] = new QuestStep(EInteractionType.Interact, 1020222u, new Vector3(-9.781128f, 5.982579f, -172.53375f), 628) { AethernetShortcut = new AethernetShortcut { @@ -183651,7 +221430,8 @@ public static class AssemblyQuestLoader }; obj241.Steps = list341; reference253 = obj241; - ref QuestSequence reference254 = ref span87[2]; + num++; + ref QuestSequence reference254 = ref span339[num]; QuestSequence obj242 = new QuestSequence { Sequence = 2 @@ -183659,8 +221439,9 @@ public static class AssemblyQuestLoader num2 = 2; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span89 = CollectionsMarshal.AsSpan(list342); - span89[0] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + Span span342 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span342[index2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AethernetShortcut = new AethernetShortcut @@ -183669,18 +221450,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - span89[1] = new QuestStep(EInteractionType.Interact, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); + index2++; + span342[index2] = new QuestStep(EInteractionType.Interact, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); obj242.Steps = list342; reference254 = obj242; - ref QuestSequence reference255 = ref span87[3]; + num++; + ref QuestSequence reference255 = ref span339[num]; QuestSequence obj243 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614) + index2 = 1; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + Span span343 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span343[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce @@ -183694,13 +221479,16 @@ public static class AssemblyQuestLoader num = 1; List list344 = new List(num); CollectionsMarshal.SetCount(list344, num); - CollectionsMarshal.AsSpan(list344)[0] = "JerryWester"; + Span span344 = CollectionsMarshal.AsSpan(list344); + index = 0; + span344[index] = "JerryWester"; questRoot44.Author = list344; - num = 6; - List list345 = new List(num); - CollectionsMarshal.SetCount(list345, num); - Span span90 = CollectionsMarshal.AsSpan(list345); - ref QuestSequence reference256 = ref span90[0]; + index = 6; + List list345 = new List(index); + CollectionsMarshal.SetCount(list345, index); + Span span345 = CollectionsMarshal.AsSpan(list345); + num = 0; + ref QuestSequence reference256 = ref span345[num]; QuestSequence obj244 = new QuestSequence { Sequence = 0 @@ -183708,19 +221496,23 @@ public static class AssemblyQuestLoader num2 = 1; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020232u, new Vector3(337.27014f, 31.034986f, 206.43921f), 614); + Span span346 = CollectionsMarshal.AsSpan(list346); + index2 = 0; + span346[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020232u, new Vector3(337.27014f, 31.034986f, 206.43921f), 614); obj244.Steps = list346; reference256 = obj244; - ref QuestSequence reference257 = ref span90[1]; + num++; + ref QuestSequence reference257 = ref span345[num]; QuestSequence obj245 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - Span span91 = CollectionsMarshal.AsSpan(list347); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(163.68964f, -0.29980254f, 228.32257f), 614) + index2 = 3; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + Span span347 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + span347[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(163.68964f, -0.29980254f, 228.32257f), 614) { SkipConditions = new SkipConditions { @@ -183730,7 +221522,8 @@ public static class AssemblyQuestLoader } } }; - span91[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.4086f, -0.3000002f, 271.62607f), 614) + num2++; + span347[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.4086f, -0.3000002f, 271.62607f), 614) { SkipConditions = new SkipConditions { @@ -183740,7 +221533,8 @@ public static class AssemblyQuestLoader } } }; - span91[2] = new QuestStep(EInteractionType.UseItem, 2007926u, new Vector3(164.99573f, 6.2713623f, 357.80872f), 614) + num2++; + span347[num2] = new QuestStep(EInteractionType.UseItem, 2007926u, new Vector3(164.99573f, 6.2713623f, 357.80872f), 614) { Fly = true, ItemId = 2002176u, @@ -183748,7 +221542,8 @@ public static class AssemblyQuestLoader }; obj245.Steps = list347; reference257 = obj245; - ref QuestSequence reference258 = ref span90[2]; + num++; + ref QuestSequence reference258 = ref span345[num]; QuestSequence obj246 = new QuestSequence { Sequence = 2 @@ -183756,60 +221551,84 @@ public static class AssemblyQuestLoader num2 = 3; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - Span span92 = CollectionsMarshal.AsSpan(list348); - ref QuestStep reference259 = ref span92[0]; + Span span348 = CollectionsMarshal.AsSpan(list348); + index2 = 0; + ref QuestStep reference259 = ref span348[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2007928u, new Vector3(170.55005f, 6.6376343f, 360.12805f), 614); - num3 = 6; - List list349 = new List(num3); - CollectionsMarshal.SetCount(list349, num3); - Span span93 = CollectionsMarshal.AsSpan(list349); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list349 = new List(num4); + CollectionsMarshal.SetCount(list349, num4); + Span span349 = CollectionsMarshal.AsSpan(list349); + num3 = 0; + span349[num3] = null; + num3++; + span349[num3] = null; + num3++; + span349[num3] = null; + num3++; + span349[num3] = null; + num3++; + span349[num3] = null; + num3++; + span349[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list349; reference259 = questStep15; - ref QuestStep reference260 = ref span92[1]; + index2++; + ref QuestStep reference260 = ref span348[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2007930u, new Vector3(165.6062f, 4.348816f, 349.38574f), 614); num3 = 6; List list350 = new List(num3); CollectionsMarshal.SetCount(list350, num3); - Span span94 = CollectionsMarshal.AsSpan(list350); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span350 = CollectionsMarshal.AsSpan(list350); + num4 = 0; + span350[num4] = null; + num4++; + span350[num4] = null; + num4++; + span350[num4] = null; + num4++; + span350[num4] = null; + num4++; + span350[num4] = null; + num4++; + span350[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list350; reference260 = questStep16; - ref QuestStep reference261 = ref span92[2]; + index2++; + ref QuestStep reference261 = ref span348[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2007929u, new Vector3(157.61035f, 6.6376343f, 357.01526f), 614); - num3 = 6; - List list351 = new List(num3); - CollectionsMarshal.SetCount(list351, num3); - Span span95 = CollectionsMarshal.AsSpan(list351); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list351 = new List(num4); + CollectionsMarshal.SetCount(list351, num4); + Span span351 = CollectionsMarshal.AsSpan(list351); + num3 = 0; + span351[num3] = null; + num3++; + span351[num3] = null; + num3++; + span351[num3] = null; + num3++; + span351[num3] = null; + num3++; + span351[num3] = null; + num3++; + span351[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list351; reference261 = questStep17; obj246.Steps = list348; reference258 = obj246; - ref QuestSequence reference262 = ref span90[3]; + num++; + ref QuestSequence reference262 = ref span345[num]; QuestSequence obj247 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.UseItem, 2007927u, new Vector3(40.72632f, 5.4473877f, 301.07568f), 614) + index2 = 1; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + Span span352 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span352[num2] = new QuestStep(EInteractionType.UseItem, 2007927u, new Vector3(40.72632f, 5.4473877f, 301.07568f), 614) { Fly = true, ItemId = 2002176u, @@ -183817,7 +221636,8 @@ public static class AssemblyQuestLoader }; obj247.Steps = list352; reference262 = obj247; - ref QuestSequence reference263 = ref span90[4]; + num++; + ref QuestSequence reference263 = ref span345[num]; QuestSequence obj248 = new QuestSequence { Sequence = 4 @@ -183825,103 +221645,147 @@ public static class AssemblyQuestLoader num2 = 6; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span96 = CollectionsMarshal.AsSpan(list353); - ref QuestStep reference264 = ref span96[0]; + Span span353 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + ref QuestStep reference264 = ref span353[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2008192u, new Vector3(37.67456f, 5.0201416f, 295.1858f), 614); num3 = 6; List list354 = new List(num3); CollectionsMarshal.SetCount(list354, num3); - Span span97 = CollectionsMarshal.AsSpan(list354); - span97[0] = null; - span97[1] = null; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span354 = CollectionsMarshal.AsSpan(list354); + num4 = 0; + span354[num4] = null; + num4++; + span354[num4] = null; + num4++; + span354[num4] = null; + num4++; + span354[num4] = null; + num4++; + span354[num4] = null; + num4++; + span354[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list354; reference264 = questStep18; - ref QuestStep reference265 = ref span96[1]; + index2++; + ref QuestStep reference265 = ref span353[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2008193u, new Vector3(44.87671f, 5.3864136f, 293.59875f), 614); - num3 = 6; - List list355 = new List(num3); - CollectionsMarshal.SetCount(list355, num3); - Span span98 = CollectionsMarshal.AsSpan(list355); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list355 = new List(num4); + CollectionsMarshal.SetCount(list355, num4); + Span span355 = CollectionsMarshal.AsSpan(list355); + num3 = 0; + span355[num3] = null; + num3++; + span355[num3] = null; + num3++; + span355[num3] = null; + num3++; + span355[num3] = null; + num3++; + span355[num3] = null; + num3++; + span355[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list355; reference265 = questStep19; - ref QuestStep reference266 = ref span96[2]; + index2++; + ref QuestStep reference266 = ref span353[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2008189u, new Vector3(48.78308f, 5.5999756f, 294.02612f), 614); num3 = 6; List list356 = new List(num3); CollectionsMarshal.SetCount(list356, num3); - Span span99 = CollectionsMarshal.AsSpan(list356); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span356 = CollectionsMarshal.AsSpan(list356); + num4 = 0; + span356[num4] = null; + num4++; + span356[num4] = null; + num4++; + span356[num4] = null; + num4++; + span356[num4] = null; + num4++; + span356[num4] = null; + num4++; + span356[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list356; reference266 = questStep20; - ref QuestStep reference267 = ref span96[3]; + index2++; + ref QuestStep reference267 = ref span353[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 2008188u, new Vector3(49.759644f, 5.9662476f, 301.07568f), 614); - num3 = 6; - List list357 = new List(num3); - CollectionsMarshal.SetCount(list357, num3); - Span span100 = CollectionsMarshal.AsSpan(list357); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list357 = new List(num4); + CollectionsMarshal.SetCount(list357, num4); + Span span357 = CollectionsMarshal.AsSpan(list357); + num3 = 0; + span357[num3] = null; + num3++; + span357[num3] = null; + num3++; + span357[num3] = null; + num3++; + span357[num3] = null; + num3++; + span357[num3] = null; + num3++; + span357[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list357; reference267 = questStep21; - ref QuestStep reference268 = ref span96[4]; + index2++; + ref QuestStep reference268 = ref span353[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 2008191u, new Vector3(41.672363f, 5.416931f, 308.91882f), 614); num3 = 6; List list358 = new List(num3); CollectionsMarshal.SetCount(list358, num3); - Span span101 = CollectionsMarshal.AsSpan(list358); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span358 = CollectionsMarshal.AsSpan(list358); + num4 = 0; + span358[num4] = null; + num4++; + span358[num4] = null; + num4++; + span358[num4] = null; + num4++; + span358[num4] = null; + num4++; + span358[num4] = null; + num4++; + span358[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list358; reference268 = questStep22; - ref QuestStep reference269 = ref span96[5]; + index2++; + ref QuestStep reference269 = ref span353[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 2008190u, new Vector3(33.829224f, 4.8065186f, 308.5221f), 614); - num3 = 6; - List list359 = new List(num3); - CollectionsMarshal.SetCount(list359, num3); - Span span102 = CollectionsMarshal.AsSpan(list359); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list359 = new List(num4); + CollectionsMarshal.SetCount(list359, num4); + Span span359 = CollectionsMarshal.AsSpan(list359); + num3 = 0; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list359; reference269 = questStep23; obj248.Steps = list353; reference263 = obj248; - ref QuestSequence reference270 = ref span90[5]; + num++; + ref QuestSequence reference270 = ref span345[num]; QuestSequence obj249 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - Span span103 = CollectionsMarshal.AsSpan(list360); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(163.68964f, -0.29980254f, 228.32257f), 614) + index2 = 2; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + Span span360 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + span360[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(163.68964f, -0.29980254f, 228.32257f), 614) { SkipConditions = new SkipConditions { @@ -183931,7 +221795,8 @@ public static class AssemblyQuestLoader } } }; - span103[1] = new QuestStep(EInteractionType.CompleteQuest, 1020232u, new Vector3(337.27014f, 31.034986f, 206.43921f), 614) + num2++; + span360[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020232u, new Vector3(337.27014f, 31.034986f, 206.43921f), 614) { Fly = true }; @@ -183944,13 +221809,16 @@ public static class AssemblyQuestLoader num = 1; List list361 = new List(num); CollectionsMarshal.SetCount(list361, num); - CollectionsMarshal.AsSpan(list361)[0] = "xan"; + Span span361 = CollectionsMarshal.AsSpan(list361); + index = 0; + span361[index] = "xan"; questRoot45.Author = list361; - num = 8; - List list362 = new List(num); - CollectionsMarshal.SetCount(list362, num); - Span span104 = CollectionsMarshal.AsSpan(list362); - ref QuestSequence reference271 = ref span104[0]; + index = 8; + List list362 = new List(index); + CollectionsMarshal.SetCount(list362, index); + Span span362 = CollectionsMarshal.AsSpan(list362); + num = 0; + ref QuestSequence reference271 = ref span362[num]; QuestSequence obj250 = new QuestSequence { Sequence = 0 @@ -183958,8 +221826,9 @@ public static class AssemblyQuestLoader num2 = 2; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - Span span105 = CollectionsMarshal.AsSpan(list363); - span105[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span363 = CollectionsMarshal.AsSpan(list363); + index2 = 0; + span363[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -183975,19 +221844,22 @@ public static class AssemblyQuestLoader } } }; - span105[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span363[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj250.Steps = list363; reference271 = obj250; - ref QuestSequence reference272 = ref span104[1]; + num++; + ref QuestSequence reference272 = ref span362[num]; QuestSequence obj251 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - Span span106 = CollectionsMarshal.AsSpan(list364); - span106[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + index2 = 2; + List list364 = new List(index2); + CollectionsMarshal.SetCount(list364, index2); + Span span364 = CollectionsMarshal.AsSpan(list364); + num2 = 0; + span364[num2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -184018,10 +221890,12 @@ public static class AssemblyQuestLoader } } }; - span106[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); + num2++; + span364[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); obj251.Steps = list364; reference272 = obj251; - ref QuestSequence reference273 = ref span104[2]; + num++; + ref QuestSequence reference273 = ref span362[num]; QuestSequence obj252 = new QuestSequence { Sequence = 2 @@ -184029,7 +221903,9 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - ref QuestStep reference274 = ref CollectionsMarshal.AsSpan(list365)[0]; + Span span365 = CollectionsMarshal.AsSpan(list365); + index2 = 0; + ref QuestStep reference274 = ref span365[index2]; QuestStep obj253 = new QuestStep(EInteractionType.Interact, 1005411u, new Vector3(13.412659f, 40.2f, -13.260071f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -184042,7 +221918,9 @@ public static class AssemblyQuestLoader num3 = 1; List list366 = new List(num3); CollectionsMarshal.SetCount(list366, num3); - CollectionsMarshal.AsSpan(list366)[0] = new DialogueChoice + Span span366 = CollectionsMarshal.AsSpan(list366); + num4 = 0; + span366[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN601_02948_Q1_000_031"), @@ -184052,34 +221930,40 @@ public static class AssemblyQuestLoader reference274 = obj253; obj252.Steps = list365; reference273 = obj252; - ref QuestSequence reference275 = ref span104[3]; + num++; + ref QuestSequence reference275 = ref span362[num]; QuestSequence obj254 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - Span span107 = CollectionsMarshal.AsSpan(list367); - ref QuestStep reference276 = ref span107[0]; + index2 = 2; + List list367 = new List(index2); + CollectionsMarshal.SetCount(list367, index2); + Span span367 = CollectionsMarshal.AsSpan(list367); + num2 = 0; + ref QuestStep reference276 = ref span367[num2]; QuestStep obj255 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list368 = new List(num3); - CollectionsMarshal.SetCount(list368, num3); - CollectionsMarshal.AsSpan(list368)[0] = 129; + num4 = 1; + List list368 = new List(num4); + CollectionsMarshal.SetCount(list368, num4); + Span span368 = CollectionsMarshal.AsSpan(list368); + num3 = 0; + span368[num3] = 129; skipStepConditions.InTerritory = list368; skipConditions3.StepIf = skipStepConditions; obj255.SkipConditions = skipConditions3; reference276 = obj255; - span107[1] = new QuestStep(EInteractionType.Interact, 1023751u, new Vector3(0.62561035f, 20.333344f, 5.935669f), 129); + num2++; + span367[num2] = new QuestStep(EInteractionType.Interact, 1023751u, new Vector3(0.62561035f, 20.333344f, 5.935669f), 129); obj254.Steps = list367; reference275 = obj254; - ref QuestSequence reference277 = ref span104[4]; + num++; + ref QuestSequence reference277 = ref span362[num]; QuestSequence obj256 = new QuestSequence { Sequence = 4 @@ -184087,21 +221971,26 @@ public static class AssemblyQuestLoader num2 = 1; List list369 = new List(num2); CollectionsMarshal.SetCount(list369, num2); - CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.Interact, 1023545u, new Vector3(-3.8911133f, 66.760155f, 45.303955f), 137) + Span span369 = CollectionsMarshal.AsSpan(list369); + index2 = 0; + span369[index2] = new QuestStep(EInteractionType.Interact, 1023545u, new Vector3(-3.8911133f, 66.760155f, 45.303955f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj256.Steps = list369; reference277 = obj256; - ref QuestSequence reference278 = ref span104[5]; + num++; + ref QuestSequence reference278 = ref span362[num]; QuestSequence obj257 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - ref QuestStep reference279 = ref CollectionsMarshal.AsSpan(list370)[0]; + index2 = 1; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + Span span370 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + ref QuestStep reference279 = ref span370[num2]; QuestStep obj258 = new QuestStep(EInteractionType.Combat, 1023547u, new Vector3(468.80298f, 10.538202f, 774.13586f), 137) { Fly = true, @@ -184111,12 +222000,15 @@ public static class AssemblyQuestLoader num3 = 1; List list371 = new List(num3); CollectionsMarshal.SetCount(list371, num3); - CollectionsMarshal.AsSpan(list371)[0] = 7496u; + Span span371 = CollectionsMarshal.AsSpan(list371); + num4 = 0; + span371[num4] = 7496u; obj258.KillEnemyDataIds = list371; reference279 = obj258; obj257.Steps = list370; reference278 = obj257; - ref QuestSequence reference280 = ref span104[6]; + num++; + ref QuestSequence reference280 = ref span362[num]; QuestSequence obj259 = new QuestSequence { Sequence = 6 @@ -184124,22 +222016,26 @@ public static class AssemblyQuestLoader num2 = 1; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - CollectionsMarshal.AsSpan(list372)[0] = new QuestStep(EInteractionType.Interact, 1023550u, new Vector3(477.10376f, 11.543927f, 232.28796f), 137) + Span span372 = CollectionsMarshal.AsSpan(list372); + index2 = 0; + span372[index2] = new QuestStep(EInteractionType.Interact, 1023550u, new Vector3(477.10376f, 11.543927f, 232.28796f), 137) { Fly = true }; obj259.Steps = list372; reference280 = obj259; - ref QuestSequence reference281 = ref span104[7]; + num++; + ref QuestSequence reference281 = ref span362[num]; QuestSequence obj260 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - Span span108 = CollectionsMarshal.AsSpan(list373); - span108[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list373 = new List(index2); + CollectionsMarshal.SetCount(list373, index2); + Span span373 = CollectionsMarshal.AsSpan(list373); + num2 = 0; + span373[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -184151,7 +222047,8 @@ public static class AssemblyQuestLoader } } }; - span108[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + num2++; + span373[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(2949) }; @@ -184164,13 +222061,16 @@ public static class AssemblyQuestLoader num = 1; List list374 = new List(num); CollectionsMarshal.SetCount(list374, num); - CollectionsMarshal.AsSpan(list374)[0] = "xan"; + Span span374 = CollectionsMarshal.AsSpan(list374); + index = 0; + span374[index] = "xan"; questRoot46.Author = list374; - num = 9; - List list375 = new List(num); - CollectionsMarshal.SetCount(list375, num); - Span span109 = CollectionsMarshal.AsSpan(list375); - ref QuestSequence reference282 = ref span109[0]; + index = 9; + List list375 = new List(index); + CollectionsMarshal.SetCount(list375, index); + Span span375 = CollectionsMarshal.AsSpan(list375); + num = 0; + ref QuestSequence reference282 = ref span375[num]; QuestSequence obj261 = new QuestSequence { Sequence = 0 @@ -184178,8 +222078,9 @@ public static class AssemblyQuestLoader num2 = 2; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - Span span110 = CollectionsMarshal.AsSpan(list376); - span110[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span376 = CollectionsMarshal.AsSpan(list376); + index2 = 0; + span376[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -184195,18 +222096,22 @@ public static class AssemblyQuestLoader } } }; - span110[1] = new QuestStep(EInteractionType.AcceptQuest, 1010778u, new Vector3(-28.854858f, -24.773243f, 265.3086f), 137); + index2++; + span376[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010778u, new Vector3(-28.854858f, -24.773243f, 265.3086f), 137); obj261.Steps = list376; reference282 = obj261; - ref QuestSequence reference283 = ref span109[1]; + num++; + ref QuestSequence reference283 = ref span375[num]; QuestSequence obj262 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.Interact, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) + index2 = 1; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + Span span377 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span377[num2] = new QuestStep(EInteractionType.Interact, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -184217,7 +222122,8 @@ public static class AssemblyQuestLoader }; obj262.Steps = list377; reference283 = obj262; - ref QuestSequence reference284 = ref span109[2]; + num++; + ref QuestSequence reference284 = ref span375[num]; QuestSequence obj263 = new QuestSequence { Sequence = 2 @@ -184225,8 +222131,9 @@ public static class AssemblyQuestLoader num2 = 5; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - Span span111 = CollectionsMarshal.AsSpan(list378); - ref QuestStep reference285 = ref span111[0]; + Span span378 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + ref QuestStep reference285 = ref span378[index2]; QuestStep obj264 = new QuestStep(EInteractionType.Action, null, new Vector3(-22.793612f, 2.2649765E-06f, -60.22008f), 628) { AethernetShortcut = new AethernetShortcut @@ -184238,59 +222145,78 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list379 = new List(num3); - CollectionsMarshal.SetCount(list379, num3); - Span span112 = CollectionsMarshal.AsSpan(list379); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list379 = new List(num4); + CollectionsMarshal.SetCount(list379, num4); + Span span379 = CollectionsMarshal.AsSpan(list379); + num3 = 0; + span379[num3] = null; + num3++; + span379[num3] = null; + num3++; + span379[num3] = null; + num3++; + span379[num3] = null; + num3++; + span379[num3] = null; + num3++; + span379[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list379; skipConditions4.StepIf = skipStepConditions2; obj264.SkipConditions = skipConditions4; reference285 = obj264; - ref QuestStep reference286 = ref span111[1]; + index2++; + ref QuestStep reference286 = ref span378[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-46.572186f, 3.0135043f, -71.70311f), 628); num3 = 6; List list380 = new List(num3); CollectionsMarshal.SetCount(list380, num3); - Span span113 = CollectionsMarshal.AsSpan(list380); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span380 = CollectionsMarshal.AsSpan(list380); + num4 = 0; + span380[num4] = null; + num4++; + span380[num4] = null; + num4++; + span380[num4] = null; + num4++; + span380[num4] = null; + num4++; + span380[num4] = null; + num4++; + span380[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list380; reference286 = questStep24; - span111[2] = new QuestStep(EInteractionType.StatusOff, null, null, 628) + index2++; + span378[index2] = new QuestStep(EInteractionType.StatusOff, null, null, 628) { Status = EStatus.Hidden }; - span111[3] = new QuestStep(EInteractionType.Action, null, new Vector3(-53.864307f, -2.1307263f, -106.929726f), 628) + index2++; + span378[index2] = new QuestStep(EInteractionType.Action, null, new Vector3(-53.864307f, -2.1307263f, -106.929726f), 628) { Action = EAction.Hide }; - span111[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.41595f, -7.300003f, -111.459076f), 628); + index2++; + span378[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.41595f, -7.300003f, -111.459076f), 628); obj263.Steps = list378; reference284 = obj263; - ref QuestSequence reference287 = ref span109[3]; + num++; + ref QuestSequence reference287 = ref span375[num]; QuestSequence obj265 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - Span span114 = CollectionsMarshal.AsSpan(list381); - span114[0] = new QuestStep(EInteractionType.StatusOff, null, null, 628) + index2 = 2; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + Span span381 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span381[num2] = new QuestStep(EInteractionType.StatusOff, null, null, 628) { Status = EStatus.Hidden }; - span114[1] = new QuestStep(EInteractionType.Interact, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) + num2++; + span381[num2] = new QuestStep(EInteractionType.Interact, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) { AethernetShortcut = new AethernetShortcut { @@ -184300,7 +222226,8 @@ public static class AssemblyQuestLoader }; obj265.Steps = list381; reference287 = obj265; - ref QuestSequence reference288 = ref span109[4]; + num++; + ref QuestSequence reference288 = ref span375[num]; QuestSequence obj266 = new QuestSequence { Sequence = 4 @@ -184308,8 +222235,9 @@ public static class AssemblyQuestLoader num2 = 5; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - Span span115 = CollectionsMarshal.AsSpan(list382); - span115[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-75.76606f, 18f, -164.78288f), 628) + Span span382 = CollectionsMarshal.AsSpan(list382); + index2 = 0; + span382[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-75.76606f, 18f, -164.78288f), 628) { AethernetShortcut = new AethernetShortcut { @@ -184321,47 +222249,55 @@ public static class AssemblyQuestLoader Position = new Vector3(-70.46664f, 19.583387f, -163.98515f) } }; - span115[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-70.54904f, 19.550425f, -163.96664f), 628) + index2++; + span382[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-70.54904f, 19.550425f, -163.96664f), 628) { JumpDestination = new JumpDestination { Position = new Vector3(-67.09049f, 20.600859f, -163.70255f) } }; - span115[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-68.15528f, 20.696194f, -163.4804f), 628) + index2++; + span382[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-68.15528f, 20.696194f, -163.4804f), 628) { JumpDestination = new JumpDestination { Position = new Vector3(-67.90176f, 24.143099f, -159.9363f) } }; - span115[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-39.38211f, 20.545578f, -156.03827f), 628) + index2++; + span382[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-39.38211f, 20.545578f, -156.03827f), 628) { DisableNavmesh = true }; - span115[4] = new QuestStep(EInteractionType.Interact, 2008933u, new Vector3(-40.05493f, 18.783813f, -143.3891f), 628) + index2++; + span382[index2] = new QuestStep(EInteractionType.Interact, 2008933u, new Vector3(-40.05493f, 18.783813f, -143.3891f), 628) { DisableNavmesh = true }; obj266.Steps = list382; reference288 = obj266; - ref QuestSequence reference289 = ref span109[5]; + num++; + ref QuestSequence reference289 = ref span375[num]; QuestSequence obj267 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list383 = new List(num2); - CollectionsMarshal.SetCount(list383, num2); - Span span116 = CollectionsMarshal.AsSpan(list383); - span116[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-55.23437f, 5.9548235f, -144.91388f), 628) + index2 = 2; + List list383 = new List(index2); + CollectionsMarshal.SetCount(list383, index2); + Span span383 = CollectionsMarshal.AsSpan(list383); + num2 = 0; + span383[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-55.23437f, 5.9548235f, -144.91388f), 628) { DisableNavmesh = true }; - span116[1] = new QuestStep(EInteractionType.Interact, 2008934u, new Vector3(-117.5708f, 13.412659f, -134.35571f), 628); + num2++; + span383[num2] = new QuestStep(EInteractionType.Interact, 2008934u, new Vector3(-117.5708f, 13.412659f, -134.35571f), 628); obj267.Steps = list383; reference289 = obj267; - ref QuestSequence reference290 = ref span109[6]; + num++; + ref QuestSequence reference290 = ref span375[num]; QuestSequence obj268 = new QuestSequence { Sequence = 6 @@ -184369,21 +222305,27 @@ public static class AssemblyQuestLoader num2 = 1; List list384 = new List(num2); CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.Interact, 2008935u, new Vector3(-118.18121f, 13.199036f, -143.14496f), 628); + Span span384 = CollectionsMarshal.AsSpan(list384); + index2 = 0; + span384[index2] = new QuestStep(EInteractionType.Interact, 2008935u, new Vector3(-118.18121f, 13.199036f, -143.14496f), 628); obj268.Steps = list384; reference290 = obj268; - ref QuestSequence reference291 = ref span109[7]; + num++; + ref QuestSequence reference291 = ref span375[num]; QuestSequence obj269 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list385 = new List(num2); - CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.Interact, 2008936u, new Vector3(-107.49988f, 19.241516f, -201.31226f), 628); + index2 = 1; + List list385 = new List(index2); + CollectionsMarshal.SetCount(list385, index2); + Span span385 = CollectionsMarshal.AsSpan(list385); + num2 = 0; + span385[num2] = new QuestStep(EInteractionType.Interact, 2008936u, new Vector3(-107.49988f, 19.241516f, -201.31226f), 628); obj269.Steps = list385; reference291 = obj269; - ref QuestSequence reference292 = ref span109[8]; + num++; + ref QuestSequence reference292 = ref span375[num]; QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue @@ -184391,7 +222333,9 @@ public static class AssemblyQuestLoader num2 = 1; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - CollectionsMarshal.AsSpan(list386)[0] = new QuestStep(EInteractionType.CompleteQuest, 2008937u, new Vector3(116.80774f, 11.9782715f, -38.345947f), 628) + Span span386 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + span386[index2] = new QuestStep(EInteractionType.CompleteQuest, 2008937u, new Vector3(116.80774f, 11.9782715f, -38.345947f), 628) { AethernetShortcut = new AethernetShortcut { @@ -184413,13 +222357,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "xan"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "xan"; questRoot.Author = list; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 7; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -184427,7 +222374,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -184440,15 +222389,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1023565u, new Vector3(60.77661f, 2.011992f, 34.042847f), 628) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1023565u, new Vector3(60.77661f, 2.011992f, 34.042847f), 628) { AethernetShortcut = new AethernetShortcut { @@ -184458,7 +222410,8 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -184466,21 +222419,27 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1023566u, new Vector3(8.682312f, 4f, 49.881714f), 628); + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1023566u, new Vector3(8.682312f, 4f, 49.881714f), 628); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1023565u, new Vector3(60.77661f, 2.011992f, 34.042847f), 628); + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Interact, 1023565u, new Vector3(60.77661f, 2.011992f, 34.042847f), 628); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -184488,7 +222447,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.Interact, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) { AethernetShortcut = new AethernetShortcut { @@ -184498,15 +222459,18 @@ public static class AssemblyQuestLoader }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023567u, new Vector3(696.681f, -0.051437557f, 22.659607f), 613) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023567u, new Vector3(696.681f, -0.051437557f, 22.659607f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, @@ -184525,7 +222489,8 @@ public static class AssemblyQuestLoader }; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[6]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue @@ -184533,7 +222498,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614) + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -184554,21 +222521,26 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "xan"; + Span span10 = CollectionsMarshal.AsSpan(list10); + index = 0; + span10[index] = "xan"; questRoot2.Author = list10; - num = 9; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - Span span2 = CollectionsMarshal.AsSpan(list11); - ref QuestSequence reference8 = ref span2[0]; + index = 9; + List list11 = new List(index); + CollectionsMarshal.SetCount(list11, index); + Span span11 = CollectionsMarshal.AsSpan(list11); + num = 0; + ref QuestSequence reference8 = ref span11[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list12)[0]; + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + ref QuestStep reference9 = ref span12[num2]; QuestStep obj9 = new QuestStep(EInteractionType.AcceptQuest, 1023571u, new Vector3(413.0769f, 68.02851f, -99.321045f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -184583,7 +222555,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = new DialogueChoice + Span span13 = CollectionsMarshal.AsSpan(list13); + int index3 = 0; + span13[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN680_02951_Q1_000_003"), @@ -184593,7 +222567,8 @@ public static class AssemblyQuestLoader reference9 = obj9; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference10 = ref span2[1]; + num++; + ref QuestSequence reference10 = ref span11[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 @@ -184601,26 +222576,33 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1023573u, new Vector3(703.24243f, 107.83904f, -341.45117f), 614) + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.Interact, 1023573u, new Vector3(703.24243f, 107.83904f, -341.45117f), 614) { Fly = true }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[2]; + num++; + ref QuestSequence reference11 = ref span11[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + ref QuestStep reference12 = ref span15[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614); - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice + index3 = 1; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span16[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBNIN680_02951_SYSTEM_100_049") @@ -184629,7 +222611,8 @@ public static class AssemblyQuestLoader reference12 = questStep; obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference13 = ref span2[3]; + num++; + ref QuestSequence reference13 = ref span11[num]; QuestSequence obj12 = new QuestSequence { Sequence = 3 @@ -184637,21 +222620,27 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1023577u, new Vector3(693.2936f, 171.37398f, 84.82483f), 614); + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.Interact, 1023577u, new Vector3(693.2936f, 171.37398f, 84.82483f), 614); obj12.Steps = list17; reference13 = obj12; - ref QuestSequence reference14 = ref span2[4]; + num++; + ref QuestSequence reference14 = ref span11[num]; QuestSequence obj13 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.Interact, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614); obj13.Steps = list18; reference14 = obj13; - ref QuestSequence reference15 = ref span2[5]; + num++; + ref QuestSequence reference15 = ref span11[num]; QuestSequence obj14 = new QuestSequence { Sequence = 5 @@ -184659,7 +222648,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list19)[0]; + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref QuestStep reference16 = ref span19[index2]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, null, new Vector3(555.4114f, 16.160986f, 390.68732f), 614) { StopDistance = 1f, @@ -184669,28 +222660,35 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = 6641u; + Span span20 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span20[index3] = 6641u; obj15.KillEnemyDataIds = list20; reference16 = obj15; obj14.Steps = list19; reference15 = obj14; - ref QuestSequence reference17 = ref span2[6]; + num++; + ref QuestSequence reference17 = ref span11[num]; QuestSequence obj16 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list21)[0]; + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + ref QuestStep reference18 = ref span21[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = new DialogueChoice + index3 = 1; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBNIN680_02951_SYSTEM_100_049") @@ -184699,7 +222697,8 @@ public static class AssemblyQuestLoader reference18 = obj17; obj16.Steps = list21; reference17 = obj16; - ref QuestSequence reference19 = ref span2[7]; + num++; + ref QuestSequence reference19 = ref span11[num]; QuestSequence obj18 = new QuestSequence { Sequence = 7 @@ -184707,18 +222706,23 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1023577u, new Vector3(693.2936f, 171.37398f, 84.82483f), 614); + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.Interact, 1023577u, new Vector3(693.2936f, 171.37398f, 84.82483f), 614); obj18.Steps = list23; reference19 = obj18; - ref QuestSequence reference20 = ref span2[8]; + num++; + ref QuestSequence reference20 = ref span11[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614) + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614) { NextQuestId = new QuestId(2952) }; @@ -184731,13 +222735,16 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "xan"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "xan"; questRoot3.Author = list25; - num = 3; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span3 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference21 = ref span3[0]; + index = 3; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference21 = ref span26[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -184745,7 +222752,9 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - ref QuestStep reference22 = ref CollectionsMarshal.AsSpan(list27)[0]; + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + ref QuestStep reference22 = ref span27[index2]; QuestStep obj21 = new QuestStep(EInteractionType.AcceptQuest, 1023570u, new Vector3(413.0769f, 68.02851f, -99.321045f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -184760,7 +222769,9 @@ public static class AssemblyQuestLoader num3 = 1; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = new DialogueChoice + Span span28 = CollectionsMarshal.AsSpan(list28); + index3 = 0; + span28[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN700_02952_Q1_100_004"), @@ -184770,15 +222781,18 @@ public static class AssemblyQuestLoader reference22 = obj21; obj20.Steps = list27; reference21 = obj20; - ref QuestSequence reference23 = ref span3[1]; + num++; + ref QuestSequence reference23 = ref span26[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2008939u, new Vector3(-174.60901f, 1.1138916f, 767.5134f), 622) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2008939u, new Vector3(-174.60901f, 1.1138916f, 767.5134f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -184797,7 +222811,8 @@ public static class AssemblyQuestLoader }; obj22.Steps = list29; reference23 = obj22; - ref QuestSequence reference24 = ref span3[2]; + num++; + ref QuestSequence reference24 = ref span26[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -184805,8 +222820,9 @@ public static class AssemblyQuestLoader num2 = 2; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span4 = CollectionsMarshal.AsSpan(list30); - span4[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -184818,7 +222834,8 @@ public static class AssemblyQuestLoader } } }; - span4[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + index2++; + span30[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(2949) }; @@ -184831,22 +222848,26 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "JerryWester"; + Span span31 = CollectionsMarshal.AsSpan(list31); + index = 0; + span31[index] = "JerryWester"; questRoot4.Author = list31; - num = 5; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span5 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference25 = ref span5[0]; + index = 5; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + Span span32 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference25 = ref span32[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span6 = CollectionsMarshal.AsSpan(list33); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.668243f, 4.323245f, -600.21014f), 613) + index2 = 2; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.668243f, 4.323245f, -600.21014f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -184857,13 +222878,15 @@ public static class AssemblyQuestLoader } } }; - span6[1] = new QuestStep(EInteractionType.AcceptQuest, 1021507u, new Vector3(57.236572f, 1.575162f, -578.24066f), 613) + num2++; + span33[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021507u, new Vector3(57.236572f, 1.575162f, -578.24066f), 613) { DisableNavmesh = true }; obj24.Steps = list33; reference25 = obj24; - ref QuestSequence reference26 = ref span5[1]; + num++; + ref QuestSequence reference26 = ref span32[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -184871,34 +222894,42 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list34)[0]; + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + ref QuestStep reference27 = ref span34[index2]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(-371.42313f, 3.2183487f, -537.3274f), 613) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = 8029u; + index3 = 1; + List list35 = new List(index3); + CollectionsMarshal.SetCount(list35, index3); + Span span35 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span35[num3] = 8029u; obj26.KillEnemyDataIds = list35; reference27 = obj26; obj25.Steps = list34; reference26 = obj25; - ref QuestSequence reference28 = ref span5[2]; + num++; + ref QuestSequence reference28 = ref span32[num]; QuestSequence obj27 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1023682u, new Vector3(-367.9713f, 3.3707767f, -534.4778f), 613) + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.Interact, 1023682u, new Vector3(-367.9713f, 3.3707767f, -534.4778f), 613) { StopDistance = 7f }; obj27.Steps = list36; reference28 = obj27; - ref QuestSequence reference29 = ref span5[3]; + num++; + ref QuestSequence reference29 = ref span32[num]; QuestSequence obj28 = new QuestSequence { Sequence = 3 @@ -184906,21 +222937,26 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1023682u, new Vector3(-367.9713f, 3.3707767f, -534.4778f), 613) + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.Interact, 1023682u, new Vector3(-367.9713f, 3.3707767f, -534.4778f), 613) { StopDistance = 7f }; obj28.Steps = list37; reference29 = obj28; - ref QuestSequence reference30 = ref span5[4]; + num++; + ref QuestSequence reference30 = ref span32[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021507u, new Vector3(57.236572f, 1.575162f, -578.24066f), 613) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021507u, new Vector3(57.236572f, 1.575162f, -578.24066f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -184933,13 +222969,16 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "JerryWester"; + Span span39 = CollectionsMarshal.AsSpan(list39); + index = 0; + span39[index] = "JerryWester"; questRoot5.Author = list39; - num = 3; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span7 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference31 = ref span7[0]; + index = 3; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + Span span40 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference31 = ref span40[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -184947,7 +222986,9 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020842u, new Vector3(81.55945f, 118.15579f, -717.89124f), 620) + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020842u, new Vector3(81.55945f, 118.15579f, -717.89124f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, SkipConditions = new SkipConditions @@ -184960,16 +223001,18 @@ public static class AssemblyQuestLoader }; obj30.Steps = list41; reference31 = obj30; - ref QuestSequence reference32 = ref span7[1]; + num++; + ref QuestSequence reference32 = ref span40[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - Span span8 = CollectionsMarshal.AsSpan(list42); - ref QuestStep reference33 = ref span8[0]; + index2 = 2; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + ref QuestStep reference33 = ref span42[num2]; QuestStep obj32 = new QuestStep(EInteractionType.Combat, null, new Vector3(-53.208252f, 104.518814f, -739.1928f), 620) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -184977,7 +223020,9 @@ public static class AssemblyQuestLoader num3 = 1; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new ComplexCombatData + Span span43 = CollectionsMarshal.AsSpan(list43); + index3 = 0; + span43[index3] = new ComplexCombatData { DataId = 7447u, MinimumKillCount = 1u, @@ -184986,15 +223031,18 @@ public static class AssemblyQuestLoader }; obj32.ComplexCombatData = list43; reference33 = obj32; - ref QuestStep reference34 = ref span8[1]; + num2++; + ref QuestStep reference34 = ref span42[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, null, new Vector3(-476.92078f, 48.885674f, -732.2957f), 620) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = new ComplexCombatData + index3 = 1; + List list44 = new List(index3); + CollectionsMarshal.SetCount(list44, index3); + Span span44 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span44[num3] = new ComplexCombatData { DataId = 7450u, MinimumKillCount = 1u, @@ -185005,7 +223053,8 @@ public static class AssemblyQuestLoader reference34 = obj33; obj31.Steps = list42; reference32 = obj31; - ref QuestSequence reference35 = ref span7[2]; + num++; + ref QuestSequence reference35 = ref span40[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -185013,7 +223062,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020842u, new Vector3(81.55945f, 118.15579f, -717.89124f), 620) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020842u, new Vector3(81.55945f, 118.15579f, -717.89124f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -185026,21 +223077,26 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "JerryWester"; + Span span46 = CollectionsMarshal.AsSpan(list46); + index = 0; + span46[index] = "JerryWester"; questRoot6.Author = list46; - num = 4; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span9 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference36 = ref span9[0]; + index = 4; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + Span span47 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference36 = ref span47[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020848u, new Vector3(113.725464f, 118.15579f, -715.6634f), 620) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020848u, new Vector3(113.725464f, 118.15579f, -715.6634f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, SkipConditions = new SkipConditions @@ -185053,7 +223109,8 @@ public static class AssemblyQuestLoader }; obj35.Steps = list48; reference36 = obj35; - ref QuestSequence reference37 = ref span9[1]; + num++; + ref QuestSequence reference37 = ref span47[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -185061,7 +223118,9 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1020857u, new Vector3(-768.91736f, 81.467896f, -300.8011f), 620) + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span49[index2] = new QuestStep(EInteractionType.Interact, 1020857u, new Vector3(-768.91736f, 81.467896f, -300.8011f), 620) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -185072,18 +223131,22 @@ public static class AssemblyQuestLoader }; obj36.Steps = list49; reference37 = obj36; - ref QuestSequence reference38 = ref span9[2]; + num++; + ref QuestSequence reference38 = ref span47[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 2008680u, new Vector3(-763.97345f, 81.89514f, -298.3902f), 620); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.Interact, 2008680u, new Vector3(-763.97345f, 81.89514f, -298.3902f), 620); obj37.Steps = list50; reference38 = obj37; - ref QuestSequence reference39 = ref span9[3]; + num++; + ref QuestSequence reference39 = ref span47[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -185091,7 +223154,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020848u, new Vector3(113.725464f, 118.15579f, -715.6634f), 620) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020848u, new Vector3(113.725464f, 118.15579f, -715.6634f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -185104,21 +223169,26 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "JerryWester"; + Span span52 = CollectionsMarshal.AsSpan(list52); + index = 0; + span52[index] = "JerryWester"; questRoot7.Author = list52; - num = 3; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span10 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference40 = ref span10[0]; + index = 3; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + Span span53 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference40 = ref span53[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -185131,7 +223201,8 @@ public static class AssemblyQuestLoader }; obj39.Steps = list54; reference40 = obj39; - ref QuestSequence reference41 = ref span10[1]; + num++; + ref QuestSequence reference41 = ref span53[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -185139,20 +223210,25 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1024136u, new Vector3(-29.34314f, -0.1424195f, -124.52893f), 635); + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.Interact, 1024136u, new Vector3(-29.34314f, -0.1424195f, -124.52893f), 635); obj40.Steps = list55; reference41 = obj40; - ref QuestSequence reference42 = ref span10[2]; + num++; + ref QuestSequence reference42 = ref span53[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span11 = CollectionsMarshal.AsSpan(list56); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-63.63005f, -0.0012056828f, -101.09714f), 635); - span11[1] = new QuestStep(EInteractionType.CompleteQuest, 2009050u, new Vector3(49.66809f, -0.015319824f, 58.182617f), 635) + index2 = 2; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-63.63005f, -0.0012056828f, -101.09714f), 635); + num2++; + span56[num2] = new QuestStep(EInteractionType.CompleteQuest, 2009050u, new Vector3(49.66809f, -0.015319824f, 58.182617f), 635) { AethernetShortcut = new AethernetShortcut { @@ -185169,13 +223245,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "JerryWester"; + Span span57 = CollectionsMarshal.AsSpan(list57); + index = 0; + span57[index] = "JerryWester"; questRoot8.Author = list57; - num = 4; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span12 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference43 = ref span12[0]; + index = 4; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + Span span58 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference43 = ref span58[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -185183,7 +223262,9 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024137u, new Vector3(47.77588f, 0f, 58.64038f), 635) + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024137u, new Vector3(47.77588f, 0f, 58.64038f), 635) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -185197,16 +223278,18 @@ public static class AssemblyQuestLoader }; obj42.Steps = list59; reference43 = obj42; - ref QuestSequence reference44 = ref span12[1]; + num++; + ref QuestSequence reference44 = ref span58[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - Span span13 = CollectionsMarshal.AsSpan(list60); - ref QuestStep reference45 = ref span13[0]; + index2 = 4; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + ref QuestStep reference45 = ref span60[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 1024130u, new Vector3(614.61804f, 80.000015f, 624.567f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter @@ -185214,53 +223297,75 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span14 = CollectionsMarshal.AsSpan(list61); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span61 = CollectionsMarshal.AsSpan(list61); + index3 = 0; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj44.CompletionQuestVariablesFlags = list61; reference45 = obj44; - ref QuestStep reference46 = ref span13[1]; + num2++; + ref QuestStep reference46 = ref span60[num2]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1024131u, new Vector3(585.3512f, 70f, 564.0801f), 621) { Fly = true }; - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span15 = CollectionsMarshal.AsSpan(list62); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list62 = new List(index3); + CollectionsMarshal.SetCount(list62, index3); + Span span62 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj45.CompletionQuestVariablesFlags = list62; reference46 = obj45; - span13[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(682.593f, 69.99999f, 538.1847f), 621) + num2++; + span60[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(682.593f, 69.99999f, 538.1847f), 621) { Fly = true }; - ref QuestStep reference47 = ref span13[3]; + num2++; + ref QuestStep reference47 = ref span60[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1024132u, new Vector3(683.71094f, 70f, 540.5508f), 621); num3 = 6; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span16 = CollectionsMarshal.AsSpan(list63); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span63 = CollectionsMarshal.AsSpan(list63); + index3 = 0; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list63; reference47 = questStep2; obj43.Steps = list60; reference44 = obj43; - ref QuestSequence reference48 = ref span12[2]; + num++; + ref QuestSequence reference48 = ref span58[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -185268,18 +223373,23 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1024133u, new Vector3(745.20483f, 69.99999f, 489.76868f), 621); + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.Interact, 1024133u, new Vector3(745.20483f, 69.99999f, 489.76868f), 621); obj46.Steps = list64; reference48 = obj46; - ref QuestSequence reference49 = ref span12[3]; + num++; + ref QuestSequence reference49 = ref span58[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024103u, new Vector3(532.494f, 70f, 576.1653f), 621) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span65[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024103u, new Vector3(532.494f, 70f, 576.1653f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter @@ -185293,13 +223403,16 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "JerryWester"; + Span span66 = CollectionsMarshal.AsSpan(list66); + index = 0; + span66[index] = "JerryWester"; questRoot9.Author = list66; - num = 7; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span17 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference50 = ref span17[0]; + index = 7; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + Span span67 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference50 = ref span67[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -185307,7 +223420,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024104u, new Vector3(530.81555f, 70f, 576.0128f), 621) + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024104u, new Vector3(530.81555f, 70f, 576.0128f), 621) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -185321,27 +223436,31 @@ public static class AssemblyQuestLoader }; obj48.Steps = list68; reference50 = obj48; - ref QuestSequence reference51 = ref span17[1]; + num++; + ref QuestSequence reference51 = ref span67[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - Span span18 = CollectionsMarshal.AsSpan(list69); - span18[0] = new QuestStep(EInteractionType.Interact, 1023048u, new Vector3(497.76453f, 69.99941f, 583.7339f), 621) + index2 = 2; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.Interact, 1023048u, new Vector3(497.76453f, 69.99941f, 583.7339f), 621) { TargetTerritoryId = (ushort)621, Fly = true }; - span18[1] = new QuestStep(EInteractionType.Interact, 1024134u, new Vector3(207.84314f, -0.3f, 338.55188f), 621) + num2++; + span69[num2] = new QuestStep(EInteractionType.Interact, 1024134u, new Vector3(207.84314f, -0.3f, 338.55188f), 621) { Fly = true }; obj49.Steps = list69; reference51 = obj49; - ref QuestSequence reference52 = ref span17[2]; + num++; + ref QuestSequence reference52 = ref span67[num]; QuestSequence obj50 = new QuestSequence { Sequence = 2 @@ -185349,26 +223468,32 @@ public static class AssemblyQuestLoader num2 = 2; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span19 = CollectionsMarshal.AsSpan(list70); - span19[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(196.67705f, -0.6f, 318.12054f), 621) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(196.67705f, -0.6f, 318.12054f), 621) { StopDistance = 0.25f }; - span19[1] = new QuestStep(EInteractionType.Interact, 2009052u, new Vector3(144.97595f, -270.98505f, -12.283508f), 621); + index2++; + span70[index2] = new QuestStep(EInteractionType.Interact, 2009052u, new Vector3(144.97595f, -270.98505f, -12.283508f), 621); obj50.Steps = list70; reference52 = obj50; - ref QuestSequence reference53 = ref span17[3]; + num++; + ref QuestSequence reference53 = ref span67[num]; QuestSequence obj51 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 2009054u, new Vector3(258.19788f, -274.06738f, -12.588745f), 621); + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.Interact, 2009054u, new Vector3(258.19788f, -274.06738f, -12.588745f), 621); obj51.Steps = list71; reference53 = obj51; - ref QuestSequence reference54 = ref span17[4]; + num++; + ref QuestSequence reference54 = ref span67[num]; QuestSequence obj52 = new QuestSequence { Sequence = 4 @@ -185376,7 +223501,9 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Duty, null, null, 621) + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span72[index2] = new QuestStep(EInteractionType.Duty, null, null, 621) { DutyOptions = new DutyOptions { @@ -185386,19 +223513,23 @@ public static class AssemblyQuestLoader }; obj52.Steps = list72; reference54 = obj52; - span17[5] = new QuestSequence + num++; + span67[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference55 = ref span17[6]; + num++; + ref QuestSequence reference55 = ref span67[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024104u, new Vector3(530.81555f, 70f, 576.0128f), 621) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024104u, new Vector3(530.81555f, 70f, 576.0128f), 621) { StopDistance = 6f }; @@ -185411,13 +223542,16 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "JerryWester"; + Span span74 = CollectionsMarshal.AsSpan(list74); + index = 0; + span74[index] = "JerryWester"; questRoot10.Author = list74; - num = 4; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span20 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference56 = ref span20[0]; + index = 4; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + Span span75 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference56 = ref span75[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -185425,7 +223559,9 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024103u, new Vector3(532.494f, 70f, 576.1653f), 621) + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024103u, new Vector3(532.494f, 70f, 576.1653f), 621) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -185439,21 +223575,25 @@ public static class AssemblyQuestLoader }; obj54.Steps = list76; reference56 = obj54; - ref QuestSequence reference57 = ref span20[1]; + num++; + ref QuestSequence reference57 = ref span75[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1024105u, new Vector3(739.22327f, 70f, 537.6515f), 621) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.Interact, 1024105u, new Vector3(739.22327f, 70f, 537.6515f), 621) { Fly = true }; obj55.Steps = list77; reference57 = obj55; - ref QuestSequence reference58 = ref span20[2]; + num++; + ref QuestSequence reference58 = ref span75[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -185461,29 +223601,36 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1024107u, new Vector3(788.3878f, 69.999916f, 637.3845f), 621) + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.Interact, 1024107u, new Vector3(788.3878f, 69.999916f, 637.3845f), 621) { StopDistance = 5f }; obj56.Steps = list78; reference58 = obj56; - ref QuestSequence reference59 = ref span20[3]; + num++; + ref QuestSequence reference59 = ref span75[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list79)[0]; + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + ref QuestStep reference60 = ref span79[num2]; QuestStep obj58 = new QuestStep(EInteractionType.CompleteQuest, 1024112u, new Vector3(796.933f, 69.9999f, 634.76f), 621) { StopDistance = 7f }; - num3 = 1; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new DialogueChoice + index3 = 1; + List list80 = new List(index3); + CollectionsMarshal.SetCount(list80, index3); + Span span80 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span80[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDB104_02965_Q1_000_000") @@ -185499,13 +223646,16 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "JerryWester"; + Span span81 = CollectionsMarshal.AsSpan(list81); + index = 0; + span81[index] = "JerryWester"; questRoot11.Author = list81; - num = 6; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span21 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference61 = ref span21[0]; + index = 6; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + Span span82 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference61 = ref span82[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -185513,7 +223663,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024125u, new Vector3(775.6007f, 69.99993f, 639.4292f), 621) + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024125u, new Vector3(775.6007f, 69.99993f, 639.4292f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, SkipConditions = new SkipConditions @@ -185526,15 +223678,18 @@ public static class AssemblyQuestLoader }; obj59.Steps = list83; reference61 = obj59; - ref QuestSequence reference62 = ref span21[1]; + num++; + ref QuestSequence reference62 = ref span82[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list84)[0]; + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + ref QuestStep reference63 = ref span84[num2]; QuestStep obj61 = new QuestStep(EInteractionType.Interact, 1024113u, new Vector3(754.26855f, 70f, 424.70435f), 621) { Fly = true @@ -185542,7 +223697,9 @@ public static class AssemblyQuestLoader num3 = 1; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = new DialogueChoice + Span span85 = CollectionsMarshal.AsSpan(list85); + index3 = 0; + span85[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDB105_02966_Q1_000_000") @@ -185551,7 +223708,8 @@ public static class AssemblyQuestLoader reference63 = obj61; obj60.Steps = list84; reference62 = obj60; - ref QuestSequence reference64 = ref span21[2]; + num++; + ref QuestSequence reference64 = ref span82[num]; QuestSequence obj62 = new QuestSequence { Sequence = 2 @@ -185559,19 +223717,23 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1024114u, new Vector3(5.2338257f, 0.054396715f, -3.3417358f), 738); + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.Interact, 1024114u, new Vector3(5.2338257f, 0.054396715f, -3.3417358f), 738); obj62.Steps = list86; reference64 = obj62; - ref QuestSequence reference65 = ref span21[3]; + num++; + ref QuestSequence reference65 = ref span82[num]; QuestSequence obj63 = new QuestSequence { Sequence = 3 }; - num2 = 5; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span22 = CollectionsMarshal.AsSpan(list87); - span22[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-2.9216702f, -2.0000002f, -34.863174f), 738) + index2 = 5; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-2.9216702f, -2.0000002f, -34.863174f), 738) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -185580,7 +223742,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span22[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-2.9769177f, -1.3092512f, -36.29651f), 738) + num2++; + span87[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-2.9769177f, -1.3092512f, -36.29651f), 738) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -185589,19 +223752,23 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span22[2] = new QuestStep(EInteractionType.Interact, 2009058u, new Vector3(-2.8188858f, 0.16235979f, -38.626305f), 738) + num2++; + span87[num2] = new QuestStep(EInteractionType.Interact, 2009058u, new Vector3(-2.8188858f, 0.16235979f, -38.626305f), 738) { StopDistance = 4f, DelaySecondsAtStart = 3f }; - span22[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.01923807f, -2.0000002f, -35.31207f), 738) + num2++; + span87[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.01923807f, -2.0000002f, -35.31207f), 738) { DisableNavmesh = true }; - span22[4] = new QuestStep(EInteractionType.Interact, 1024118u, new Vector3(24.612793f, -0.3670061f, 5.0201416f), 738); + num2++; + span87[num2] = new QuestStep(EInteractionType.Interact, 1024118u, new Vector3(24.612793f, -0.3670061f, 5.0201416f), 738); obj63.Steps = list87; reference65 = obj63; - ref QuestSequence reference66 = ref span21[4]; + num++; + ref QuestSequence reference66 = ref span82[num]; QuestSequence obj64 = new QuestSequence { Sequence = 4 @@ -185609,18 +223776,23 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1024114u, new Vector3(5.2338257f, 0.054396715f, -3.3417358f), 738); + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.Interact, 1024114u, new Vector3(5.2338257f, 0.054396715f, -3.3417358f), 738); obj64.Steps = list88; reference66 = obj64; - ref QuestSequence reference67 = ref span21[5]; + num++; + ref QuestSequence reference67 = ref span82[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024119u, new Vector3(758.6632f, 70f, 446.31104f), 621); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024119u, new Vector3(758.6632f, 70f, 446.31104f), 621); obj65.Steps = list89; reference67 = obj65; questRoot11.QuestSequence = list82; @@ -185630,13 +223802,16 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "JerryWester"; + Span span90 = CollectionsMarshal.AsSpan(list90); + index = 0; + span90[index] = "JerryWester"; questRoot12.Author = list90; - num = 7; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span23 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference68 = ref span23[0]; + index = 7; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + Span span91 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference68 = ref span91[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -185644,7 +223819,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024120u, new Vector3(757.68665f, 70f, 444.3275f), 621) + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024120u, new Vector3(757.68665f, 70f, 444.3275f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, SkipConditions = new SkipConditions @@ -185657,24 +223834,28 @@ public static class AssemblyQuestLoader }; obj66.Steps = list92; reference68 = obj66; - ref QuestSequence reference69 = ref span23[1]; + num++; + ref QuestSequence reference69 = ref span91[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span24 = CollectionsMarshal.AsSpan(list93); - span24[0] = new QuestStep(EInteractionType.None, null, null, 131) + index2 = 3; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.None, null, null, 131) { AetheryteShortcut = EAetheryteLocation.Uldah }; - span24[1] = new QuestStep(EInteractionType.AcceptQuest, 1011565u, new Vector3(-78.8739f, 4f, -110.429565f), 130) + num2++; + span93[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011565u, new Vector3(-78.8739f, 4f, -110.429565f), 130) { PickUpQuestId = new QuestId(434) }; - span24[2] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) + num2++; + span93[num2] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -185692,7 +223873,8 @@ public static class AssemblyQuestLoader }; obj67.Steps = list93; reference69 = obj67; - ref QuestSequence reference70 = ref span23[2]; + num++; + ref QuestSequence reference70 = ref span91[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -185700,7 +223882,9 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1024122u, new Vector3(57.968994f, 4f, -121.53815f), 130) + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.Interact, 1024122u, new Vector3(57.968994f, 4f, -121.53815f), 130) { AethernetShortcut = new AethernetShortcut { @@ -185710,15 +223894,18 @@ public static class AssemblyQuestLoader }; obj68.Steps = list94; reference70 = obj68; - ref QuestSequence reference71 = ref span23[3]; + num++; + ref QuestSequence reference71 = ref span91[num]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list95)[0]; + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + ref QuestStep reference72 = ref span95[num2]; QuestStep obj70 = new QuestStep(EInteractionType.Interact, 1024123u, new Vector3(-132.9519f, 4.590753f, 238.7273f), 141) { Fly = true, @@ -185728,10 +223915,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfNald } }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = new DialogueChoice + index3 = 1; + List list96 = new List(index3); + CollectionsMarshal.SetCount(list96, index3); + Span span96 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span96[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDB106_02967_Q1_000_000"), @@ -185741,7 +223930,8 @@ public static class AssemblyQuestLoader reference72 = obj70; obj69.Steps = list95; reference71 = obj69; - ref QuestSequence reference73 = ref span23[4]; + num++; + ref QuestSequence reference73 = ref span91[num]; QuestSequence obj71 = new QuestSequence { Sequence = 4 @@ -185749,22 +223939,27 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1024124u, new Vector3(254.35254f, -6.26633f, -152.36133f), 141) + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.Interact, 1024124u, new Vector3(254.35254f, -6.26633f, -152.36133f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj71.Steps = list97; reference73 = obj71; - ref QuestSequence reference74 = ref span23[5]; + num++; + ref QuestSequence reference74 = ref span91[num]; QuestSequence obj72 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1024102u, new Vector3(-105.7298f, 6.9839897f, -4.135254f), 131) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.Interact, 1024102u, new Vector3(-105.7298f, 6.9839897f, -4.135254f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -185775,7 +223970,8 @@ public static class AssemblyQuestLoader }; obj72.Steps = list98; reference74 = obj72; - ref QuestSequence reference75 = ref span23[6]; + num++; + ref QuestSequence reference75 = ref span91[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -185783,7 +223979,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024102u, new Vector3(-105.7298f, 6.9839897f, -4.135254f), 131); + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024102u, new Vector3(-105.7298f, 6.9839897f, -4.135254f), 131); obj73.Steps = list99; reference75 = obj73; questRoot12.QuestSequence = list91; @@ -185793,24 +223991,30 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "JerryWester"; + Span span100 = CollectionsMarshal.AsSpan(list100); + index = 0; + span100[index] = "JerryWester"; questRoot13.Author = list100; - num = 5; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span25 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference76 = ref span25[0]; + index = 5; + List list101 = new List(index); + CollectionsMarshal.SetCount(list101, index); + Span span101 = CollectionsMarshal.AsSpan(list101); + num = 0; + ref QuestSequence reference76 = ref span101[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024102u, new Vector3(-105.7298f, 6.9839897f, -4.135254f), 131); + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024102u, new Vector3(-105.7298f, 6.9839897f, -4.135254f), 131); obj74.Steps = list102; reference76 = obj74; - ref QuestSequence reference77 = ref span25[1]; + num++; + ref QuestSequence reference77 = ref span101[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 @@ -185818,7 +224022,9 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1024040u, new Vector3(-201.06812f, 18f, 78.62964f), 130) + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span103[index2] = new QuestStep(EInteractionType.Interact, 1024040u, new Vector3(-201.06812f, 18f, 78.62964f), 130) { AethernetShortcut = new AethernetShortcut { @@ -185828,15 +224034,18 @@ public static class AssemblyQuestLoader }; obj75.Steps = list103; reference77 = obj75; - ref QuestSequence reference78 = ref span25[2]; + num++; + ref QuestSequence reference78 = ref span101[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1024041u, new Vector3(-22.781738f, 83.19999f, -7.5532227f), 130) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.Interact, 1024041u, new Vector3(-22.781738f, 83.19999f, -7.5532227f), 130) { AethernetShortcut = new AethernetShortcut { @@ -185846,7 +224055,8 @@ public static class AssemblyQuestLoader }; obj76.Steps = list104; reference78 = obj76; - ref QuestSequence reference79 = ref span25[3]; + num++; + ref QuestSequence reference79 = ref span101[num]; QuestSequence obj77 = new QuestSequence { Sequence = 3 @@ -185854,24 +224064,28 @@ public static class AssemblyQuestLoader num2 = 2; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span26 = CollectionsMarshal.AsSpan(list105); - span26[0] = new QuestStep(EInteractionType.Interact, 1004433u, new Vector3(-23.605713f, 83.19999f, -2.3041382f), 130) + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.Interact, 1004433u, new Vector3(-23.605713f, 83.19999f, -2.3041382f), 130) { TargetTerritoryId = (ushort)144 }; - span26[1] = new QuestStep(EInteractionType.Interact, 1024042u, new Vector3(-51.682373f, 0.04428002f, 53.94055f), 144); + index2++; + span105[index2] = new QuestStep(EInteractionType.Interact, 1024042u, new Vector3(-51.682373f, 0.04428002f, 53.94055f), 144); obj77.Steps = list105; reference79 = obj77; - ref QuestSequence reference80 = ref span25[4]; + num++; + ref QuestSequence reference80 = ref span101[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - Span span27 = CollectionsMarshal.AsSpan(list106); - span27[0] = new QuestStep(EInteractionType.None, null, null, 144) + index2 = 2; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.None, null, null, 144) { AethernetShortcut = new AethernetShortcut { @@ -185879,7 +224093,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucerWonderSquareWest } }; - span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1024043u, new Vector3(-12.77179f, 20.999727f, 47.837036f), 144); + num2++; + span106[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024043u, new Vector3(-12.77179f, 20.999727f, 47.837036f), 144); obj78.Steps = list106; reference80 = obj78; questRoot13.QuestSequence = list101; @@ -185889,13 +224104,16 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "JerryWester"; + Span span107 = CollectionsMarshal.AsSpan(list107); + index = 0; + span107[index] = "JerryWester"; questRoot14.Author = list107; - num = 5; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span28 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference81 = ref span28[0]; + index = 5; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + Span span108 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference81 = ref span108[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -185903,7 +224121,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024043u, new Vector3(-12.77179f, 20.999727f, 47.837036f), 144) + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024043u, new Vector3(-12.77179f, 20.999727f, 47.837036f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, SkipConditions = new SkipConditions @@ -185916,16 +224136,18 @@ public static class AssemblyQuestLoader }; obj79.Steps = list109; reference81 = obj79; - ref QuestSequence reference82 = ref span28[1]; + num++; + ref QuestSequence reference82 = ref span108[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span29 = CollectionsMarshal.AsSpan(list110); - span29[0] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + index2 = 2; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span110[num2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -185935,10 +224157,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - span29[1] = new QuestStep(EInteractionType.Interact, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); + num2++; + span110[num2] = new QuestStep(EInteractionType.Interact, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); obj80.Steps = list110; reference82 = obj80; - ref QuestSequence reference83 = ref span28[2]; + num++; + ref QuestSequence reference83 = ref span108[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 @@ -185946,27 +224170,33 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1024044u, new Vector3(-110.36853f, 4f, -114.00018f), 130) + Span span111 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span111[index2] = new QuestStep(EInteractionType.Interact, 1024044u, new Vector3(-110.36853f, 4f, -114.00018f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj81.Steps = list111; reference83 = obj81; - ref QuestSequence reference84 = ref span28[3]; + num++; + ref QuestSequence reference84 = ref span108[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1024045u, new Vector3(-2.822998f, -2.0000012f, -17.166443f), 212) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.Interact, 1024045u, new Vector3(-2.822998f, -2.0000012f, -17.166443f), 212) { StopDistance = 5f }; obj82.Steps = list112; reference84 = obj82; - ref QuestSequence reference85 = ref span28[4]; + num++; + ref QuestSequence reference85 = ref span108[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -185974,7 +224204,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024045u, new Vector3(-2.822998f, -2.0000012f, -17.166443f), 212) + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024045u, new Vector3(-2.822998f, -2.0000012f, -17.166443f), 212) { StopDistance = 5f }; @@ -185987,27 +224219,33 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "JerryWester"; + Span span114 = CollectionsMarshal.AsSpan(list114); + index = 0; + span114[index] = "JerryWester"; questRoot15.Author = list114; - num = 8; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span30 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference86 = ref span30[0]; + index = 8; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + Span span115 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference86 = ref span115[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024045u, new Vector3(-2.822998f, -2.0000012f, -17.166443f), 212) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024045u, new Vector3(-2.822998f, -2.0000012f, -17.166443f), 212) { StopDistance = 5f }; obj84.Steps = list116; reference86 = obj84; - ref QuestSequence reference87 = ref span30[1]; + num++; + ref QuestSequence reference87 = ref span115[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -186015,28 +224253,34 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1024046u, new Vector3(592.70605f, 80.00001f, 618.6465f), 621) + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.Interact, 1024046u, new Vector3(592.70605f, 80.00001f, 618.6465f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj85.Steps = list117; reference87 = obj85; - ref QuestSequence reference88 = ref span30[2]; + num++; + ref QuestSequence reference88 = ref span115[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1023036u, new Vector3(-285.23688f, 11.183244f, 188.83032f), 621) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.Interact, 1023036u, new Vector3(-285.23688f, 11.183244f, 188.83032f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; obj86.Steps = list118; reference88 = obj86; - ref QuestSequence reference89 = ref span30[3]; + num++; + ref QuestSequence reference89 = ref span115[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 @@ -186044,28 +224288,34 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Snipe, 1024052u, new Vector3(-238.54431f, 0.9244179f, 196.55139f), 621) + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.Snipe, 1024052u, new Vector3(-238.54431f, 0.9244179f, 196.55139f), 621) { Fly = true, Comment = "Aim at jaw" }; obj87.Steps = list119; reference89 = obj87; - ref QuestSequence reference90 = ref span30[4]; + num++; + ref QuestSequence reference90 = ref span115[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1024340u, new Vector3(-208.20941f, -0.3f, 207.6294f), 621) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.Interact, 1024340u, new Vector3(-208.20941f, -0.3f, 207.6294f), 621) { StopDistance = 5f }; obj88.Steps = list120; reference90 = obj88; - ref QuestSequence reference91 = ref span30[5]; + num++; + ref QuestSequence reference91 = ref span115[num]; QuestSequence obj89 = new QuestSequence { Sequence = 5 @@ -186073,28 +224323,34 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Snipe, 1024053u, new Vector3(8.590759f, 5.3881354f, 282.7954f), 621) + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.Snipe, 1024053u, new Vector3(8.590759f, 5.3881354f, 282.7954f), 621) { Fly = true, Comment = "Aim at nearest eye" }; obj89.Steps = list121; reference91 = obj89; - ref QuestSequence reference92 = ref span30[6]; + num++; + ref QuestSequence reference92 = ref span115[num]; QuestSequence obj90 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1024341u, new Vector3(-3.5248413f, 3.1742485f, 249.34766f), 621) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.Interact, 1024341u, new Vector3(-3.5248413f, 3.1742485f, 249.34766f), 621) { StopDistance = 6f }; obj90.Steps = list122; reference92 = obj90; - ref QuestSequence reference93 = ref span30[7]; + num++; + ref QuestSequence reference93 = ref span115[num]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue @@ -186102,7 +224358,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023036u, new Vector3(-285.23688f, 11.183244f, 188.83032f), 621) + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023036u, new Vector3(-285.23688f, 11.183244f, 188.83032f), 621) { Fly = true }; @@ -186115,27 +224373,33 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "JerryWester"; + Span span124 = CollectionsMarshal.AsSpan(list124); + index = 0; + span124[index] = "JerryWester"; questRoot16.Author = list124; - num = 4; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - Span span31 = CollectionsMarshal.AsSpan(list125); - ref QuestSequence reference94 = ref span31[0]; + index = 4; + List list125 = new List(index); + CollectionsMarshal.SetCount(list125, index); + Span span125 = CollectionsMarshal.AsSpan(list125); + num = 0; + ref QuestSequence reference94 = ref span125[num]; QuestSequence obj92 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024051u, new Vector3(-285.29797f, 11.183233f, 187.02979f), 621) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024051u, new Vector3(-285.29797f, 11.183233f, 187.02979f), 621) { StopDistance = 5f }; obj92.Steps = list126; reference94 = obj92; - ref QuestSequence reference95 = ref span31[1]; + num++; + ref QuestSequence reference95 = ref span125[num]; QuestSequence obj93 = new QuestSequence { Sequence = 1 @@ -186143,33 +224407,39 @@ public static class AssemblyQuestLoader num2 = 2; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span32 = CollectionsMarshal.AsSpan(list127); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.8298f, 70f, 580.3701f), 621) + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.8298f, 70f, 580.3701f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; - span32[1] = new QuestStep(EInteractionType.Interact, 2009047u, new Vector3(526.8176f, 69.962524f, 577.3861f), 621) + index2++; + span127[index2] = new QuestStep(EInteractionType.Interact, 2009047u, new Vector3(526.8176f, 69.962524f, 577.3861f), 621) { StopDistance = 4f }; obj93.Steps = list127; reference95 = obj93; - ref QuestSequence reference96 = ref span31[2]; + num++; + ref QuestSequence reference96 = ref span125[num]; QuestSequence obj94 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1024055u, new Vector3(525.0781f, 70f, 574.6699f), 621) + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.Interact, 1024055u, new Vector3(525.0781f, 70f, 574.6699f), 621) { StopDistance = 7f }; obj94.Steps = list128; reference96 = obj94; - ref QuestSequence reference97 = ref span31[3]; + num++; + ref QuestSequence reference97 = ref span125[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -186177,8 +224447,9 @@ public static class AssemblyQuestLoader num2 = 2; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span33 = CollectionsMarshal.AsSpan(list129); - span33[0] = new QuestStep(EInteractionType.Interact, 1023048u, new Vector3(497.76453f, 69.99941f, 583.7339f), 621) + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.Interact, 1023048u, new Vector3(497.76453f, 69.99941f, 583.7339f), 621) { TargetTerritoryId = (ushort)621, SkipConditions = new SkipConditions @@ -186189,7 +224460,8 @@ public static class AssemblyQuestLoader } } }; - span33[1] = new QuestStep(EInteractionType.CompleteQuest, 1024057u, new Vector3(340.23022f, 74.00002f, 70.66455f), 621) + index2++; + span129[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024057u, new Vector3(340.23022f, 74.00002f, 70.66455f), 621) { Fly = true }; @@ -186202,21 +224474,26 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "JerryWester"; + Span span130 = CollectionsMarshal.AsSpan(list130); + index = 0; + span130[index] = "JerryWester"; questRoot17.Author = list130; - num = 9; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span34 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference98 = ref span34[0]; + index = 9; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + Span span131 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference98 = ref span131[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list132)[0]; + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + ref QuestStep reference99 = ref span132[num2]; QuestStep obj97 = new QuestStep(EInteractionType.AcceptQuest, 1024063u, new Vector3(339.62f, 74.00002f, 75.48633f), 621) { StopDistance = 5f @@ -186224,7 +224501,9 @@ public static class AssemblyQuestLoader num3 = 1; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = new DialogueChoice + Span span133 = CollectionsMarshal.AsSpan(list133); + index3 = 0; + span133[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDB111_02972_Q1_000_000"), @@ -186234,7 +224513,8 @@ public static class AssemblyQuestLoader reference99 = obj97; obj96.Steps = list132; reference98 = obj96; - ref QuestSequence reference100 = ref span34[1]; + num++; + ref QuestSequence reference100 = ref span131[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -186242,29 +224522,36 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2009048u, new Vector3(593.56055f, 79.972534f, 621.9425f), 621) + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span134[index2] = new QuestStep(EInteractionType.Interact, 2009048u, new Vector3(593.56055f, 79.972534f, 621.9425f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj98.Steps = list134; reference100 = obj98; - ref QuestSequence reference101 = ref span34[2]; + num++; + ref QuestSequence reference101 = ref span131[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - ref QuestStep reference102 = ref CollectionsMarshal.AsSpan(list135)[0]; + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref QuestStep reference102 = ref span135[num2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621) { Fly = true }; - num3 = 1; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - CollectionsMarshal.AsSpan(list136)[0] = new DialogueChoice + index3 = 1; + List list136 = new List(index3); + CollectionsMarshal.SetCount(list136, index3); + Span span136 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span136[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDB111_02972_Q2_000_000") @@ -186273,7 +224560,8 @@ public static class AssemblyQuestLoader reference102 = obj100; obj99.Steps = list135; reference101 = obj99; - ref QuestSequence reference103 = ref span34[3]; + num++; + ref QuestSequence reference103 = ref span131[num]; QuestSequence obj101 = new QuestSequence { Sequence = 3 @@ -186281,7 +224569,9 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024066u, new Vector3(245.07507f, 122f, -349.0807f), 737) + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024066u, new Vector3(245.07507f, 122f, -349.0807f), 737) { StopDistance = 5f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -186291,22 +224581,27 @@ public static class AssemblyQuestLoader }; obj101.Steps = list137; reference103 = obj101; - span34[4] = new QuestSequence + num++; + span131[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference104 = ref span34[5]; + num++; + ref QuestSequence reference104 = ref span131[num]; QuestSequence obj102 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1024206u, new Vector3(251.69751f, 122f, -345.5406f), 737); + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.Interact, 1024206u, new Vector3(251.69751f, 122f, -345.5406f), 737); obj102.Steps = list138; reference104 = obj102; - ref QuestSequence reference105 = ref span34[6]; + num++; + ref QuestSequence reference105 = ref span131[num]; QuestSequence obj103 = new QuestSequence { Sequence = 6 @@ -186314,27 +224609,33 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1024068u, new Vector3(741.1764f, 70f, 525.5055f), 621) + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.Interact, 1024068u, new Vector3(741.1764f, 70f, 525.5055f), 621) { StopDistance = 6f }; obj103.Steps = list139; reference105 = obj103; - ref QuestSequence reference106 = ref span34[7]; + num++; + ref QuestSequence reference106 = ref span131[num]; QuestSequence obj104 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1024068u, new Vector3(741.1764f, 70f, 525.5055f), 621) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.Interact, 1024068u, new Vector3(741.1764f, 70f, 525.5055f), 621) { StopDistance = 6f }; obj104.Steps = list140; reference106 = obj104; - ref QuestSequence reference107 = ref span34[8]; + num++; + ref QuestSequence reference107 = ref span131[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -186342,7 +224643,9 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -186360,24 +224663,30 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - CollectionsMarshal.AsSpan(list142)[0] = "plogon_enjoyer"; + Span span142 = CollectionsMarshal.AsSpan(list142); + index = 0; + span142[index] = "plogon_enjoyer"; questRoot18.Author = list142; - num = 7; - List list143 = new List(num); - CollectionsMarshal.SetCount(list143, num); - Span span35 = CollectionsMarshal.AsSpan(list143); - ref QuestSequence reference108 = ref span35[0]; + index = 7; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + Span span143 = CollectionsMarshal.AsSpan(list143); + num = 0; + ref QuestSequence reference108 = ref span143[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); obj106.Steps = list144; reference108 = obj106; - ref QuestSequence reference109 = ref span35[1]; + num++; + ref QuestSequence reference109 = ref span143[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -186385,7 +224694,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list145)[0]; + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + ref QuestStep reference110 = ref span145[index2]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 1024231u, new Vector3(463.40125f, 56.86197f, -157.94617f), 614) { Fly = true, @@ -186394,7 +224705,9 @@ public static class AssemblyQuestLoader num3 = 1; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new DialogueChoice + Span span146 = CollectionsMarshal.AsSpan(list146); + index3 = 0; + span146[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN002_02974_Q1_000_000"), @@ -186404,22 +224717,26 @@ public static class AssemblyQuestLoader reference110 = obj108; obj107.Steps = list145; reference109 = obj107; - ref QuestSequence reference111 = ref span35[2]; + num++; + ref QuestSequence reference111 = ref span143[num]; QuestSequence obj109 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Snipe, 2009169u, new Vector3(145.922f, 26.352295f, 456.9314f), 614) + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.Snipe, 2009169u, new Vector3(145.922f, 26.352295f, 456.9314f), 614) { Fly = true, Comment = "Snipe Namazu" }; obj109.Steps = list147; reference111 = obj109; - ref QuestSequence reference112 = ref span35[3]; + num++; + ref QuestSequence reference112 = ref span143[num]; QuestSequence obj110 = new QuestSequence { Sequence = 3 @@ -186427,28 +224744,34 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Snipe, 2009170u, new Vector3(205.31006f, 14.297607f, 712.76404f), 614) + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span148[index2] = new QuestStep(EInteractionType.Snipe, 2009170u, new Vector3(205.31006f, 14.297607f, 712.76404f), 614) { Fly = true, Comment = "Snipe Namazu" }; obj110.Steps = list148; reference112 = obj110; - ref QuestSequence reference113 = ref span35[4]; + num++; + ref QuestSequence reference113 = ref span143[num]; QuestSequence obj111 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1024238u, new Vector3(302.72363f, 2.8619597f, 731.44116f), 614) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.Interact, 1024238u, new Vector3(302.72363f, 2.8619597f, 731.44116f), 614) { Fly = true }; obj111.Steps = list149; reference113 = obj111; - ref QuestSequence reference114 = ref span35[5]; + num++; + ref QuestSequence reference114 = ref span143[num]; QuestSequence obj112 = new QuestSequence { Sequence = 5 @@ -186456,30 +224779,37 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1024244u, new Vector3(181.10925f, 6.1105657f, 553.2462f), 614) + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new QuestStep(EInteractionType.Interact, 1024244u, new Vector3(181.10925f, 6.1105657f, 553.2462f), 614) { Fly = true }; obj112.Steps = list150; reference114 = obj112; - ref QuestSequence reference115 = ref span35[6]; + num++; + ref QuestSequence reference115 = ref span143[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list151)[0]; + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + ref QuestStep reference116 = ref span151[num2]; QuestStep obj114 = new QuestStep(EInteractionType.CompleteQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = new DialogueChoice + index3 = 1; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + Span span152 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span152[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN002_02974_Q3_000_000"), @@ -186496,13 +224826,16 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - CollectionsMarshal.AsSpan(list153)[0] = "plogon_enjoyer"; + Span span153 = CollectionsMarshal.AsSpan(list153); + index = 0; + span153[index] = "plogon_enjoyer"; questRoot19.Author = list153; - num = 8; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - Span span36 = CollectionsMarshal.AsSpan(list154); - ref QuestSequence reference117 = ref span36[0]; + index = 8; + List list154 = new List(index); + CollectionsMarshal.SetCount(list154, index); + Span span154 = CollectionsMarshal.AsSpan(list154); + num = 0; + ref QuestSequence reference117 = ref span154[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -186510,25 +224843,31 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); obj115.Steps = list155; reference117 = obj115; - ref QuestSequence reference118 = ref span36[1]; + num++; + ref QuestSequence reference118 = ref span154[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1024248u, new Vector3(539.48267f, -19.505934f, 416.09827f), 622) + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.Interact, 1024248u, new Vector3(539.48267f, -19.505934f, 416.09827f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj116.Steps = list156; reference118 = obj116; - ref QuestSequence reference119 = ref span36[2]; + num++; + ref QuestSequence reference119 = ref span154[num]; QuestSequence obj117 = new QuestSequence { Sequence = 2 @@ -186536,30 +224875,36 @@ public static class AssemblyQuestLoader num2 = 3; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span37 = CollectionsMarshal.AsSpan(list157); - span37[0] = new QuestStep(EInteractionType.Interact, 1024250u, new Vector3(561.21155f, -19.505632f, 365.28564f), 622) + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.Interact, 1024250u, new Vector3(561.21155f, -19.505632f, 365.28564f), 622) { Fly = true }; - span37[1] = new QuestStep(EInteractionType.Interact, 1024251u, new Vector3(553.6124f, -19.505638f, 314.7478f), 622) + index2++; + span157[index2] = new QuestStep(EInteractionType.Interact, 1024251u, new Vector3(553.6124f, -19.505638f, 314.7478f), 622) { Fly = true }; - span37[2] = new QuestStep(EInteractionType.Interact, 1024252u, new Vector3(571.2213f, -19.505638f, 296.46753f), 622) + index2++; + span157[index2] = new QuestStep(EInteractionType.Interact, 1024252u, new Vector3(571.2213f, -19.505638f, 296.46753f), 622) { Fly = true }; obj117.Steps = list157; reference119 = obj117; - ref QuestSequence reference120 = ref span36[3]; + num++; + ref QuestSequence reference120 = ref span154[num]; QuestSequence obj118 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list158)[0]; + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + ref QuestStep reference121 = ref span158[num2]; QuestStep obj119 = new QuestStep(EInteractionType.Interact, 1024248u, new Vector3(539.48267f, -19.505934f, 416.09827f), 622) { Fly = true @@ -186567,7 +224912,9 @@ public static class AssemblyQuestLoader num3 = 1; List list159 = new List(num3); CollectionsMarshal.SetCount(list159, num3); - CollectionsMarshal.AsSpan(list159)[0] = new DialogueChoice + Span span159 = CollectionsMarshal.AsSpan(list159); + index3 = 0; + span159[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN003_02975_Q1_000_000"), @@ -186577,7 +224924,8 @@ public static class AssemblyQuestLoader reference121 = obj119; obj118.Steps = list158; reference120 = obj118; - ref QuestSequence reference122 = ref span36[4]; + num++; + ref QuestSequence reference122 = ref span154[num]; QuestSequence obj120 = new QuestSequence { Sequence = 4 @@ -186585,15 +224933,19 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list160)[0]; + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + ref QuestStep reference123 = ref span160[index2]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1024253u, new Vector3(355.30627f, -13.019889f, 471.1222f), 622) { Fly = true }; - num3 = 1; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - CollectionsMarshal.AsSpan(list161)[0] = new DialogueChoice + index3 = 1; + List list161 = new List(index3); + CollectionsMarshal.SetCount(list161, index3); + Span span161 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + span161[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN003_02975_Q2_000_000"), @@ -186603,15 +224955,18 @@ public static class AssemblyQuestLoader reference123 = obj121; obj120.Steps = list160; reference122 = obj120; - ref QuestSequence reference124 = ref span36[5]; + num++; + ref QuestSequence reference124 = ref span154[num]; QuestSequence obj122 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list162)[0]; + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + ref QuestStep reference125 = ref span162[num2]; QuestStep obj123 = new QuestStep(EInteractionType.Combat, null, new Vector3(474.09186f, -25.232485f, 550.5908f), 622) { Fly = true, @@ -186620,15 +224975,19 @@ public static class AssemblyQuestLoader num3 = 3; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - Span span38 = CollectionsMarshal.AsSpan(list163); - span38[0] = 8251u; - span38[1] = 8252u; - span38[2] = 8253u; + Span span163 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span163[index3] = 8251u; + index3++; + span163[index3] = 8252u; + index3++; + span163[index3] = 8253u; obj123.KillEnemyDataIds = list163; reference125 = obj123; obj122.Steps = list162; reference124 = obj122; - ref QuestSequence reference126 = ref span36[6]; + num++; + ref QuestSequence reference126 = ref span154[num]; QuestSequence obj124 = new QuestSequence { Sequence = 6 @@ -186636,30 +224995,37 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1024256u, new Vector3(355.79456f, -12.957703f, 470.29822f), 622) + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span164[index2] = new QuestStep(EInteractionType.Interact, 1024256u, new Vector3(355.79456f, -12.957703f, 470.29822f), 622) { Fly = true }; obj124.Steps = list164; reference126 = obj124; - ref QuestSequence reference127 = ref span36[7]; + num++; + ref QuestSequence reference127 = ref span154[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - ref QuestStep reference128 = ref CollectionsMarshal.AsSpan(list165)[0]; + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + ref QuestStep reference128 = ref span165[num2]; QuestStep obj126 = new QuestStep(EInteractionType.CompleteQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num3 = 1; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - CollectionsMarshal.AsSpan(list166)[0] = new DialogueChoice + index3 = 1; + List list166 = new List(index3); + CollectionsMarshal.SetCount(list166, index3); + Span span166 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + span166[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN003_02975_Q3_000_000"), @@ -186676,13 +225042,16 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "plogon_enjoyer"; + Span span167 = CollectionsMarshal.AsSpan(list167); + index = 0; + span167[index] = "plogon_enjoyer"; questRoot20.Author = list167; - num = 6; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span39 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference129 = ref span39[0]; + index = 6; + List list168 = new List(index); + CollectionsMarshal.SetCount(list168, index); + Span span168 = CollectionsMarshal.AsSpan(list168); + num = 0; + ref QuestSequence reference129 = ref span168[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -186690,18 +225059,23 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); obj127.Steps = list169; reference129 = obj127; - ref QuestSequence reference130 = ref span39[1]; + num++; + ref QuestSequence reference130 = ref span168[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1024260u, new Vector3(-131.9143f, -4.999999f, 181.75012f), 628) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.Interact, 1024260u, new Vector3(-131.9143f, -4.999999f, 181.75012f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -186712,7 +225086,8 @@ public static class AssemblyQuestLoader }; obj128.Steps = list170; reference130 = obj128; - ref QuestSequence reference131 = ref span39[2]; + num++; + ref QuestSequence reference131 = ref span168[num]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -186720,7 +225095,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - ref QuestStep reference132 = ref CollectionsMarshal.AsSpan(list171)[0]; + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + ref QuestStep reference132 = ref span171[index2]; QuestStep obj130 = new QuestStep(EInteractionType.Combat, null, new Vector3(246.58658f, 6.193447f, 651.3461f), 613) { Fly = true, @@ -186734,25 +225111,31 @@ public static class AssemblyQuestLoader num3 = 2; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - Span span40 = CollectionsMarshal.AsSpan(list172); - span40[0] = 8244u; - span40[1] = 8246u; + Span span172 = CollectionsMarshal.AsSpan(list172); + index3 = 0; + span172[index3] = 8244u; + index3++; + span172[index3] = 8246u; obj130.KillEnemyDataIds = list172; reference132 = obj130; obj129.Steps = list171; reference131 = obj129; - ref QuestSequence reference133 = ref span39[3]; + num++; + ref QuestSequence reference133 = ref span168[num]; QuestSequence obj131 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1024264u, new Vector3(246.90613f, 6.054259f, 649.2561f), 613); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.Interact, 1024264u, new Vector3(246.90613f, 6.054259f, 649.2561f), 613); obj131.Steps = list173; reference133 = obj131; - ref QuestSequence reference134 = ref span39[4]; + num++; + ref QuestSequence reference134 = ref span168[num]; QuestSequence obj132 = new QuestSequence { Sequence = 4 @@ -186760,7 +225143,9 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1024267u, new Vector3(-130.57153f, -4.999999f, 183.36768f), 628) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.Interact, 1024267u, new Vector3(-130.57153f, -4.999999f, 183.36768f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -186771,15 +225156,18 @@ public static class AssemblyQuestLoader }; obj132.Steps = list174; reference134 = obj132; - ref QuestSequence reference135 = ref span39[5]; + num++; + ref QuestSequence reference135 = ref span168[num]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu @@ -186793,13 +225181,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "Theo"; + Span span176 = CollectionsMarshal.AsSpan(list176); + index = 0; + span176[index] = "Theo"; questRoot21.Author = list176; - num = 5; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span41 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference136 = ref span41[0]; + index = 5; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + Span span177 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference136 = ref span177[num]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -186807,21 +225198,27 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); obj134.Steps = list178; reference136 = obj134; - ref QuestSequence reference137 = ref span41[1]; + num++; + ref QuestSequence reference137 = ref span177[num]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1024269u, new Vector3(330.64758f, -116.86714f, -202.47198f), 613); + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.Interact, 1024269u, new Vector3(330.64758f, -116.86714f, -202.47198f), 613); obj135.Steps = list179; reference137 = obj135; - ref QuestSequence reference138 = ref span41[2]; + num++; + ref QuestSequence reference138 = ref span177[num]; QuestSequence obj136 = new QuestSequence { Sequence = 2 @@ -186829,19 +225226,23 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 2009174u, new Vector3(321.9806f, -120.042725f, -250.4159f), 613); + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span180[index2] = new QuestStep(EInteractionType.Interact, 2009174u, new Vector3(321.9806f, -120.042725f, -250.4159f), 613); obj136.Steps = list180; reference138 = obj136; - ref QuestSequence reference139 = ref span41[3]; + num++; + ref QuestSequence reference139 = ref span177[num]; QuestSequence obj137 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - Span span42 = CollectionsMarshal.AsSpan(list181); - span42[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.06195f, -83.027016f, -226.5931f), 613) + index2 = 2; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span181[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.06195f, -83.027016f, -226.5931f), 613) { Fly = true, RestartNavigationIfCancelled = false, @@ -186853,13 +225254,15 @@ public static class AssemblyQuestLoader } } }; - span42[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024270u, new Vector3(-666.89557f, -33.707214f, 268.17725f), 613) + num2++; + span181[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024270u, new Vector3(-666.89557f, -33.707214f, 268.17725f), 613) { Fly = true }; obj137.Steps = list181; reference139 = obj137; - ref QuestSequence reference140 = ref span41[4]; + num++; + ref QuestSequence reference140 = ref span177[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -186867,7 +225270,9 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); obj138.Steps = list182; reference140 = obj138; questRoot21.QuestSequence = list177; @@ -186877,24 +225282,30 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "Theo"; + Span span183 = CollectionsMarshal.AsSpan(list183); + index = 0; + span183[index] = "Theo"; questRoot22.Author = list183; - num = 5; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span43 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference141 = ref span43[0]; + index = 5; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + Span span184 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference141 = ref span184[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024220u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span185[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024220u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); obj139.Steps = list185; reference141 = obj139; - ref QuestSequence reference142 = ref span43[1]; + num++; + ref QuestSequence reference142 = ref span184[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -186902,7 +225313,9 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - ref QuestStep reference143 = ref CollectionsMarshal.AsSpan(list186)[0]; + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + ref QuestStep reference143 = ref span186[index2]; QuestStep obj141 = new QuestStep(EInteractionType.Interact, 1024423u, new Vector3(-272.57196f, 17.31996f, 490.01294f), 614) { Fly = true, @@ -186915,10 +225328,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list187 = new List(num3); - CollectionsMarshal.SetCount(list187, num3); - CollectionsMarshal.AsSpan(list187)[0] = new DialogueChoice + index3 = 1; + List list187 = new List(index3); + CollectionsMarshal.SetCount(list187, index3); + Span span187 = CollectionsMarshal.AsSpan(list187); + num3 = 0; + span187[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN006_02978_Q1_000_000"), @@ -186928,15 +225343,18 @@ public static class AssemblyQuestLoader reference143 = obj141; obj140.Steps = list186; reference142 = obj140; - ref QuestSequence reference144 = ref span43[2]; + num++; + ref QuestSequence reference144 = ref span184[num]; QuestSequence obj142 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1024425u, new Vector3(533.8063f, -19.505651f, 316.15173f), 622) + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + Span span188 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span188[num2] = new QuestStep(EInteractionType.Interact, 1024425u, new Vector3(533.8063f, -19.505651f, 316.15173f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -186949,7 +225367,8 @@ public static class AssemblyQuestLoader }; obj142.Steps = list188; reference144 = obj142; - ref QuestSequence reference145 = ref span43[3]; + num++; + ref QuestSequence reference145 = ref span184[num]; QuestSequence obj143 = new QuestSequence { Sequence = 3 @@ -186957,7 +225376,9 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1024428u, new Vector3(-130.57153f, -4.999999f, 183.36768f), 628) + Span span189 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span189[index2] = new QuestStep(EInteractionType.Interact, 1024428u, new Vector3(-130.57153f, -4.999999f, 183.36768f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -186975,15 +225396,18 @@ public static class AssemblyQuestLoader }; obj143.Steps = list189; reference145 = obj143; - ref QuestSequence reference146 = ref span43[4]; + num++; + ref QuestSequence reference146 = ref span184[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span190[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; @@ -186996,13 +225420,16 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "plogon_enjoyer"; + Span span191 = CollectionsMarshal.AsSpan(list191); + index = 0; + span191[index] = "plogon_enjoyer"; questRoot23.Author = list191; - num = 4; - List list192 = new List(num); - CollectionsMarshal.SetCount(list192, num); - Span span44 = CollectionsMarshal.AsSpan(list192); - ref QuestSequence reference147 = ref span44[0]; + index = 4; + List list192 = new List(index); + CollectionsMarshal.SetCount(list192, index); + Span span192 = CollectionsMarshal.AsSpan(list192); + num = 0; + ref QuestSequence reference147 = ref span192[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 @@ -187010,24 +225437,30 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + Span span193 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span193[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj145.Steps = list193; reference147 = obj145; - ref QuestSequence reference148 = ref span44[1]; + num++; + ref QuestSequence reference148 = ref span192[num]; QuestSequence obj146 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1024538u, new Vector3(703.7003f, 0.73878324f, -26.077698f), 613) + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.Interact, 1024538u, new Vector3(703.7003f, 0.73878324f, -26.077698f), 613) { Fly = true }; obj146.Steps = list194; reference148 = obj146; - ref QuestSequence reference149 = ref span44[2]; + num++; + ref QuestSequence reference149 = ref span192[num]; QuestSequence obj147 = new QuestSequence { Sequence = 2 @@ -187035,8 +225468,9 @@ public static class AssemblyQuestLoader num2 = 6; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span45 = CollectionsMarshal.AsSpan(list195); - ref QuestStep reference150 = ref span45[0]; + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + ref QuestStep reference150 = ref span195[index2]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, 2009241u, new Vector3(532.6465f, 0.99176025f, -201.2818f), 613) { Fly = true, @@ -187045,28 +225479,39 @@ public static class AssemblyQuestLoader num3 = 1; List list196 = new List(num3); CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = 8234u; + Span span196 = CollectionsMarshal.AsSpan(list196); + index3 = 0; + span196[index3] = 8234u; obj148.KillEnemyDataIds = list196; - num3 = 6; - List> list197 = new List>(num3); - CollectionsMarshal.SetCount(list197, num3); - Span> span46 = CollectionsMarshal.AsSpan(list197); - span46[0] = null; - span46[1] = null; - ref List reference151 = ref span46[2]; + index3 = 6; + List> list197 = new List>(index3); + CollectionsMarshal.SetCount(list197, index3); + Span> span197 = CollectionsMarshal.AsSpan(list197); + num3 = 0; + span197[num3] = null; + num3++; + span197[num3] = null; + num3++; + ref List reference151 = ref span197[num3]; int num4 = 2; List list198 = new List(num4); CollectionsMarshal.SetCount(list198, num4); - Span span47 = CollectionsMarshal.AsSpan(list198); - span47[0] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span47[1] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + Span span198 = CollectionsMarshal.AsSpan(list198); + int num5 = 0; + span198[num5] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span198[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); reference151 = list198; - span46[3] = null; - span46[4] = null; - span46[5] = null; + num3++; + span197[num3] = null; + num3++; + span197[num3] = null; + num3++; + span197[num3] = null; obj148.RequiredQuestVariables = list197; reference150 = obj148; - ref QuestStep reference152 = ref span45[1]; + index2++; + ref QuestStep reference152 = ref span195[index2]; QuestStep obj149 = new QuestStep(EInteractionType.UseItem, 8234u, new Vector3(534.78296f, 1f, -193.164f), 613) { ItemId = 2002398u @@ -187074,77 +225519,106 @@ public static class AssemblyQuestLoader num3 = 6; List> list199 = new List>(num3); CollectionsMarshal.SetCount(list199, num3); - Span> span48 = CollectionsMarshal.AsSpan(list199); - span48[0] = null; - span48[1] = null; - ref List reference153 = ref span48[2]; - num4 = 2; - List list200 = new List(num4); - CollectionsMarshal.SetCount(list200, num4); - Span span49 = CollectionsMarshal.AsSpan(list200); - span49[0] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span49[1] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + Span> span199 = CollectionsMarshal.AsSpan(list199); + index3 = 0; + span199[index3] = null; + index3++; + span199[index3] = null; + index3++; + ref List reference153 = ref span199[index3]; + num5 = 2; + List list200 = new List(num5); + CollectionsMarshal.SetCount(list200, num5); + Span span200 = CollectionsMarshal.AsSpan(list200); + num4 = 0; + span200[num4] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span200[num4] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); reference153 = list200; - span48[3] = null; - span48[4] = null; - span48[5] = null; + index3++; + span199[index3] = null; + index3++; + span199[index3] = null; + index3++; + span199[index3] = null; obj149.RequiredQuestVariables = list199; reference152 = obj149; - ref QuestStep reference154 = ref span45[2]; + index2++; + ref QuestStep reference154 = ref span195[index2]; QuestStep obj150 = new QuestStep(EInteractionType.Combat, 2009240u, new Vector3(620.2334f, 0.10675049f, -315.9076f), 613) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - CollectionsMarshal.AsSpan(list201)[0] = 8233u; + index3 = 1; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + Span span201 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span201[num3] = 8233u; obj150.KillEnemyDataIds = list201; num3 = 6; List> list202 = new List>(num3); CollectionsMarshal.SetCount(list202, num3); - Span> span50 = CollectionsMarshal.AsSpan(list202); - span50[0] = null; - span50[1] = null; - ref List reference155 = ref span50[2]; + Span> span202 = CollectionsMarshal.AsSpan(list202); + index3 = 0; + span202[index3] = null; + index3++; + span202[index3] = null; + index3++; + ref List reference155 = ref span202[index3]; num4 = 2; List list203 = new List(num4); CollectionsMarshal.SetCount(list203, num4); - Span span51 = CollectionsMarshal.AsSpan(list203); - span51[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span51[1] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + Span span203 = CollectionsMarshal.AsSpan(list203); + num5 = 0; + span203[num5] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span203[num5] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); reference155 = list203; - span50[3] = null; - span50[4] = null; - span50[5] = null; + index3++; + span202[index3] = null; + index3++; + span202[index3] = null; + index3++; + span202[index3] = null; obj150.RequiredQuestVariables = list202; reference154 = obj150; - ref QuestStep reference156 = ref span45[3]; + index2++; + ref QuestStep reference156 = ref span195[index2]; QuestStep obj151 = new QuestStep(EInteractionType.UseItem, 8233u, new Vector3(616.9984f, 0.04129504f, -318.1964f), 613) { ItemId = 2002398u }; - num3 = 6; - List> list204 = new List>(num3); - CollectionsMarshal.SetCount(list204, num3); - Span> span52 = CollectionsMarshal.AsSpan(list204); - span52[0] = null; - span52[1] = null; - ref List reference157 = ref span52[2]; - num4 = 2; - List list205 = new List(num4); - CollectionsMarshal.SetCount(list205, num4); - Span span53 = CollectionsMarshal.AsSpan(list205); - span53[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span53[1] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + index3 = 6; + List> list204 = new List>(index3); + CollectionsMarshal.SetCount(list204, index3); + Span> span204 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span204[num3] = null; + num3++; + span204[num3] = null; + num3++; + ref List reference157 = ref span204[num3]; + num5 = 2; + List list205 = new List(num5); + CollectionsMarshal.SetCount(list205, num5); + Span span205 = CollectionsMarshal.AsSpan(list205); + num4 = 0; + span205[num4] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span205[num4] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); reference157 = list205; - span52[3] = null; - span52[4] = null; - span52[5] = null; + num3++; + span204[num3] = null; + num3++; + span204[num3] = null; + num3++; + span204[num3] = null; obj151.RequiredQuestVariables = list204; reference156 = obj151; - ref QuestStep reference158 = ref span45[4]; + index2++; + ref QuestStep reference158 = ref span195[index2]; QuestStep obj152 = new QuestStep(EInteractionType.Combat, 2009239u, new Vector3(762.9358f, 0.44250488f, -286.7323f), 613) { Fly = true, @@ -187153,28 +225627,39 @@ public static class AssemblyQuestLoader num3 = 1; List list206 = new List(num3); CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = 8232u; + Span span206 = CollectionsMarshal.AsSpan(list206); + index3 = 0; + span206[index3] = 8232u; obj152.KillEnemyDataIds = list206; - num3 = 6; - List> list207 = new List>(num3); - CollectionsMarshal.SetCount(list207, num3); - Span> span54 = CollectionsMarshal.AsSpan(list207); - span54[0] = null; - span54[1] = null; - ref List reference159 = ref span54[2]; + index3 = 6; + List> list207 = new List>(index3); + CollectionsMarshal.SetCount(list207, index3); + Span> span207 = CollectionsMarshal.AsSpan(list207); + num3 = 0; + span207[num3] = null; + num3++; + span207[num3] = null; + num3++; + ref List reference159 = ref span207[num3]; num4 = 2; List list208 = new List(num4); CollectionsMarshal.SetCount(list208, num4); - Span span55 = CollectionsMarshal.AsSpan(list208); - span55[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span55[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + Span span208 = CollectionsMarshal.AsSpan(list208); + num5 = 0; + span208[num5] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span208[num5] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); reference159 = list208; - span54[3] = null; - span54[4] = null; - span54[5] = null; + num3++; + span207[num3] = null; + num3++; + span207[num3] = null; + num3++; + span207[num3] = null; obj152.RequiredQuestVariables = list207; reference158 = obj152; - ref QuestStep reference160 = ref span45[5]; + index2++; + ref QuestStep reference160 = ref span195[index2]; QuestStep obj153 = new QuestStep(EInteractionType.UseItem, 8232u, new Vector3(760.98267f, 0.36481446f, -290.0893f), 613) { ItemId = 2002398u @@ -187182,39 +225667,50 @@ public static class AssemblyQuestLoader num3 = 6; List> list209 = new List>(num3); CollectionsMarshal.SetCount(list209, num3); - Span> span56 = CollectionsMarshal.AsSpan(list209); - span56[0] = null; - span56[1] = null; - ref List reference161 = ref span56[2]; - num4 = 2; - List list210 = new List(num4); - CollectionsMarshal.SetCount(list210, num4); - Span span57 = CollectionsMarshal.AsSpan(list210); - span57[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span57[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + Span> span209 = CollectionsMarshal.AsSpan(list209); + index3 = 0; + span209[index3] = null; + index3++; + span209[index3] = null; + index3++; + ref List reference161 = ref span209[index3]; + num5 = 2; + List list210 = new List(num5); + CollectionsMarshal.SetCount(list210, num5); + Span span210 = CollectionsMarshal.AsSpan(list210); + num4 = 0; + span210[num4] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span210[num4] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); reference161 = list210; - span56[3] = null; - span56[4] = null; - span56[5] = null; + index3++; + span209[index3] = null; + index3++; + span209[index3] = null; + index3++; + span209[index3] = null; obj153.RequiredQuestVariables = list209; reference160 = obj153; obj147.Steps = list195; reference149 = obj147; - ref QuestSequence reference162 = ref span44[3]; + num++; + ref QuestSequence reference162 = ref span192[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - Span span58 = CollectionsMarshal.AsSpan(list211); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) + index2 = 2; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + Span span211 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + span211[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span211[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj154.Steps = list211; reference162 = obj154; questRoot23.QuestSequence = list192; @@ -187224,13 +225720,16 @@ public static class AssemblyQuestLoader num = 1; List list212 = new List(num); CollectionsMarshal.SetCount(list212, num); - CollectionsMarshal.AsSpan(list212)[0] = "plogon_enjoyer"; + Span span212 = CollectionsMarshal.AsSpan(list212); + index = 0; + span212[index] = "plogon_enjoyer"; questRoot24.Author = list212; - num = 4; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - Span span59 = CollectionsMarshal.AsSpan(list213); - ref QuestSequence reference163 = ref span59[0]; + index = 4; + List list213 = new List(index); + CollectionsMarshal.SetCount(list213, index); + Span span213 = CollectionsMarshal.AsSpan(list213); + num = 0; + ref QuestSequence reference163 = ref span213[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -187238,52 +225737,70 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj155.Steps = list214; reference163 = obj155; - ref QuestSequence reference164 = ref span59[1]; + num++; + ref QuestSequence reference164 = ref span213[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - num2 = 9; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - Span span60 = CollectionsMarshal.AsSpan(list215); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.06195f, -83.027016f, -226.5931f), 613) + index2 = 9; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.06195f, -83.027016f, -226.5931f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - ref QuestStep reference165 = ref span60[1]; + num2++; + ref QuestStep reference165 = ref span215[num2]; QuestStep obj157 = new QuestStep(EInteractionType.Interact, 2009094u, new Vector3(211.078f, -135.14917f, 56.168457f), 613) { Fly = true }; - num3 = 6; - List> list216 = new List>(num3); - CollectionsMarshal.SetCount(list216, num3); - Span> span61 = CollectionsMarshal.AsSpan(list216); - span61[0] = null; - ref List reference166 = ref span61[1]; + index3 = 6; + List> list216 = new List>(index3); + CollectionsMarshal.SetCount(list216, index3); + Span> span216 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span216[num3] = null; + num3++; + ref List reference166 = ref span216[num3]; num4 = 6; List list217 = new List(num4); CollectionsMarshal.SetCount(list217, num4); - Span span62 = CollectionsMarshal.AsSpan(list217); - span62[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span62[1] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span62[2] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); - span62[3] = new QuestWorkValue(0, (byte)6, EQuestWorkMode.Bitwise); - span62[4] = new QuestWorkValue(0, (byte)7, EQuestWorkMode.Bitwise); - span62[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span217 = CollectionsMarshal.AsSpan(list217); + num5 = 0; + span217[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span217[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span217[num5] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span217[num5] = new QuestWorkValue(0, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span217[num5] = new QuestWorkValue(0, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span217[num5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); reference166 = list217; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = null; + num3++; + span216[num3] = null; + num3++; + span216[num3] = null; + num3++; + span216[num3] = null; + num3++; + span216[num3] = null; obj157.RequiredQuestVariables = list216; reference165 = obj157; - ref QuestStep reference167 = ref span60[2]; + num2++; + ref QuestStep reference167 = ref span215[num2]; QuestStep obj158 = new QuestStep(EInteractionType.Interact, 2009095u, new Vector3(163.0426f, -148.05829f, 72.28198f), 613) { Fly = true @@ -187291,48 +225808,67 @@ public static class AssemblyQuestLoader num3 = 6; List> list218 = new List>(num3); CollectionsMarshal.SetCount(list218, num3); - Span> span63 = CollectionsMarshal.AsSpan(list218); - span63[0] = null; - ref List reference168 = ref span63[1]; - num4 = 3; - List list219 = new List(num4); - CollectionsMarshal.SetCount(list219, num4); - Span span64 = CollectionsMarshal.AsSpan(list219); - span64[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span64[1] = new QuestWorkValue(0, (byte)9, EQuestWorkMode.Bitwise); - span64[2] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); + Span> span218 = CollectionsMarshal.AsSpan(list218); + index3 = 0; + span218[index3] = null; + index3++; + ref List reference168 = ref span218[index3]; + num5 = 3; + List list219 = new List(num5); + CollectionsMarshal.SetCount(list219, num5); + Span span219 = CollectionsMarshal.AsSpan(list219); + num4 = 0; + span219[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span219[num4] = new QuestWorkValue(0, (byte)9, EQuestWorkMode.Bitwise); + num4++; + span219[num4] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); reference168 = list219; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = null; + index3++; + span218[index3] = null; + index3++; + span218[index3] = null; + index3++; + span218[index3] = null; + index3++; + span218[index3] = null; obj158.RequiredQuestVariables = list218; reference167 = obj158; - ref QuestStep reference169 = ref span60[3]; + num2++; + ref QuestStep reference169 = ref span215[num2]; QuestStep obj159 = new QuestStep(EInteractionType.Interact, 2009096u, new Vector3(134.23352f, -161.21161f, 70.450806f), 613) { Fly = true }; - num3 = 6; - List> list220 = new List>(num3); - CollectionsMarshal.SetCount(list220, num3); - Span> span65 = CollectionsMarshal.AsSpan(list220); - span65[0] = null; - ref List reference170 = ref span65[1]; + index3 = 6; + List> list220 = new List>(index3); + CollectionsMarshal.SetCount(list220, index3); + Span> span220 = CollectionsMarshal.AsSpan(list220); + num3 = 0; + span220[num3] = null; + num3++; + ref List reference170 = ref span220[num3]; num4 = 2; List list221 = new List(num4); CollectionsMarshal.SetCount(list221, num4); - Span span66 = CollectionsMarshal.AsSpan(list221); - span66[0] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); - span66[1] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); + Span span221 = CollectionsMarshal.AsSpan(list221); + num5 = 0; + span221[num5] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span221[num5] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); reference170 = list221; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = null; + num3++; + span220[num3] = null; + num3++; + span220[num3] = null; + num3++; + span220[num3] = null; + num3++; + span220[num3] = null; obj159.RequiredQuestVariables = list220; reference169 = obj159; - ref QuestStep reference171 = ref span60[4]; + num2++; + ref QuestStep reference171 = ref span215[num2]; QuestStep obj160 = new QuestStep(EInteractionType.Interact, 2009080u, new Vector3(196.27673f, -146.685f, 40.45166f), 613) { Fly = true @@ -187340,48 +225876,67 @@ public static class AssemblyQuestLoader num3 = 6; List> list222 = new List>(num3); CollectionsMarshal.SetCount(list222, num3); - Span> span67 = CollectionsMarshal.AsSpan(list222); - span67[0] = null; - ref List reference172 = ref span67[1]; - num4 = 2; - List list223 = new List(num4); - CollectionsMarshal.SetCount(list223, num4); - Span span68 = CollectionsMarshal.AsSpan(list223); - span68[0] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span68[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + Span> span222 = CollectionsMarshal.AsSpan(list222); + index3 = 0; + span222[index3] = null; + index3++; + ref List reference172 = ref span222[index3]; + num5 = 2; + List list223 = new List(num5); + CollectionsMarshal.SetCount(list223, num5); + Span span223 = CollectionsMarshal.AsSpan(list223); + num4 = 0; + span223[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span223[num4] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); reference172 = list223; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = null; + index3++; + span222[index3] = null; + index3++; + span222[index3] = null; + index3++; + span222[index3] = null; + index3++; + span222[index3] = null; obj160.RequiredQuestVariables = list222; reference171 = obj160; - ref QuestStep reference173 = ref span60[5]; + num2++; + ref QuestStep reference173 = ref span215[num2]; QuestStep obj161 = new QuestStep(EInteractionType.Interact, 2009081u, new Vector3(151.56775f, -168.1087f, 49.454468f), 613) { Fly = true }; - num3 = 6; - List> list224 = new List>(num3); - CollectionsMarshal.SetCount(list224, num3); - Span> span69 = CollectionsMarshal.AsSpan(list224); - span69[0] = null; - ref List reference174 = ref span69[1]; + index3 = 6; + List> list224 = new List>(index3); + CollectionsMarshal.SetCount(list224, index3); + Span> span224 = CollectionsMarshal.AsSpan(list224); + num3 = 0; + span224[num3] = null; + num3++; + ref List reference174 = ref span224[num3]; num4 = 3; List list225 = new List(num4); CollectionsMarshal.SetCount(list225, num4); - Span span70 = CollectionsMarshal.AsSpan(list225); - span70[0] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); - span70[1] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); - span70[2] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); + Span span225 = CollectionsMarshal.AsSpan(list225); + num5 = 0; + span225[num5] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span225[num5] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span225[num5] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); reference174 = list225; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = null; + num3++; + span224[num3] = null; + num3++; + span224[num3] = null; + num3++; + span224[num3] = null; + num3++; + span224[num3] = null; obj161.RequiredQuestVariables = list224; reference173 = obj161; - ref QuestStep reference175 = ref span60[6]; + num2++; + ref QuestStep reference175 = ref span215[num2]; QuestStep obj162 = new QuestStep(EInteractionType.Interact, 2009082u, new Vector3(141.86316f, -170.30597f, 96.75745f), 613) { Fly = true @@ -187389,52 +225944,75 @@ public static class AssemblyQuestLoader num3 = 6; List> list226 = new List>(num3); CollectionsMarshal.SetCount(list226, num3); - Span> span71 = CollectionsMarshal.AsSpan(list226); - span71[0] = null; - ref List reference176 = ref span71[1]; - num4 = 5; - List list227 = new List(num4); - CollectionsMarshal.SetCount(list227, num4); - Span span72 = CollectionsMarshal.AsSpan(list227); - span72[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span72[1] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span72[2] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); - span72[3] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); - span72[4] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); + Span> span226 = CollectionsMarshal.AsSpan(list226); + index3 = 0; + span226[index3] = null; + index3++; + ref List reference176 = ref span226[index3]; + num5 = 5; + List list227 = new List(num5); + CollectionsMarshal.SetCount(list227, num5); + Span span227 = CollectionsMarshal.AsSpan(list227); + num4 = 0; + span227[num4] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span227[num4] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span227[num4] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span227[num4] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span227[num4] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); reference176 = list227; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = null; + index3++; + span226[index3] = null; + index3++; + span226[index3] = null; + index3++; + span226[index3] = null; + index3++; + span226[index3] = null; obj162.RequiredQuestVariables = list226; reference175 = obj162; - ref QuestStep reference177 = ref span60[7]; + num2++; + ref QuestStep reference177 = ref span215[num2]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 2009083u, new Vector3(165.08728f, -143.54169f, 116.227905f), 613) { Fly = true }; - num3 = 6; - List> list228 = new List>(num3); - CollectionsMarshal.SetCount(list228, num3); - Span> span73 = CollectionsMarshal.AsSpan(list228); - span73[0] = null; - ref List reference178 = ref span73[1]; + index3 = 6; + List> list228 = new List>(index3); + CollectionsMarshal.SetCount(list228, index3); + Span> span228 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span228[num3] = null; + num3++; + ref List reference178 = ref span228[num3]; num4 = 4; List list229 = new List(num4); CollectionsMarshal.SetCount(list229, num4); - Span span74 = CollectionsMarshal.AsSpan(list229); - span74[0] = new QuestWorkValue((byte)1, (byte)9, EQuestWorkMode.Bitwise); - span74[1] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span74[2] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); - span74[3] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); + Span span229 = CollectionsMarshal.AsSpan(list229); + num5 = 0; + span229[num5] = new QuestWorkValue((byte)1, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span229[num5] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span229[num5] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span229[num5] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); reference178 = list229; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = null; + num3++; + span228[num3] = null; + num3++; + span228[num3] = null; + num3++; + span228[num3] = null; + num3++; + span228[num3] = null; obj163.RequiredQuestVariables = list228; reference177 = obj163; - ref QuestStep reference179 = ref span60[8]; + num2++; + ref QuestStep reference179 = ref span215[num2]; QuestStep obj164 = new QuestStep(EInteractionType.Interact, 2009084u, new Vector3(173.81543f, -167.3457f, 114.61047f), 613) { Fly = true @@ -187442,25 +226020,34 @@ public static class AssemblyQuestLoader num3 = 6; List> list230 = new List>(num3); CollectionsMarshal.SetCount(list230, num3); - Span> span75 = CollectionsMarshal.AsSpan(list230); - span75[0] = null; - ref List reference180 = ref span75[1]; - num4 = 2; - List list231 = new List(num4); - CollectionsMarshal.SetCount(list231, num4); - Span span76 = CollectionsMarshal.AsSpan(list231); - span76[0] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); - span76[1] = new QuestWorkValue((byte)2, (byte)9, EQuestWorkMode.Bitwise); + Span> span230 = CollectionsMarshal.AsSpan(list230); + index3 = 0; + span230[index3] = null; + index3++; + ref List reference180 = ref span230[index3]; + num5 = 2; + List list231 = new List(num5); + CollectionsMarshal.SetCount(list231, num5); + Span span231 = CollectionsMarshal.AsSpan(list231); + num4 = 0; + span231[num4] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span231[num4] = new QuestWorkValue((byte)2, (byte)9, EQuestWorkMode.Bitwise); reference180 = list231; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = null; + index3++; + span230[index3] = null; + index3++; + span230[index3] = null; + index3++; + span230[index3] = null; + index3++; + span230[index3] = null; obj164.RequiredQuestVariables = list230; reference179 = obj164; obj156.Steps = list215; reference164 = obj156; - ref QuestSequence reference181 = ref span59[2]; + num++; + ref QuestSequence reference181 = ref span213[num]; QuestSequence obj165 = new QuestSequence { Sequence = 2 @@ -187468,7 +226055,9 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1024460u, new Vector3(873.9298f, 1.1792068f, 851.9568f), 613) + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span232[index2] = new QuestStep(EInteractionType.Interact, 1024460u, new Vector3(873.9298f, 1.1792068f, 851.9568f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -187480,21 +226069,24 @@ public static class AssemblyQuestLoader }; obj165.Steps = list232; reference181 = obj165; - ref QuestSequence reference182 = ref span59[3]; + num++; + ref QuestSequence reference182 = ref span213[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - Span span77 = CollectionsMarshal.AsSpan(list233); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + index2 = 2; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + Span span233 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span233[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span77[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span233[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj166.Steps = list233; reference182 = obj166; questRoot24.QuestSequence = list213; @@ -187504,13 +226096,16 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "plogon_enjoyer"; + Span span234 = CollectionsMarshal.AsSpan(list234); + index = 0; + span234[index] = "plogon_enjoyer"; questRoot25.Author = list234; - num = 5; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span78 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference183 = ref span78[0]; + index = 5; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + Span span235 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference183 = ref span235[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 @@ -187518,35 +226113,42 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + Span span236 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span236[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj167.Steps = list236; reference183 = obj167; - ref QuestSequence reference184 = ref span78[1]; + num++; + ref QuestSequence reference184 = ref span235[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - Span span79 = CollectionsMarshal.AsSpan(list237); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.60394f, -83.29468f, -227.42934f), 613) + index2 = 3; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + Span span237 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span237[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.60394f, -83.29468f, -227.42934f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - span79[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-3.8817294f, -146.96666f, -155.70833f), 613) + num2++; + span237[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-3.8817294f, -146.96666f, -155.70833f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - span79[2] = new QuestStep(EInteractionType.Interact, 1024294u, new Vector3(-24.765442f, -190.38937f, -137.10236f), 613) + num2++; + span237[num2] = new QuestStep(EInteractionType.Interact, 1024294u, new Vector3(-24.765442f, -190.38937f, -137.10236f), 613) { Fly = true }; obj168.Steps = list237; reference184 = obj168; - ref QuestSequence reference185 = ref span78[2]; + num++; + ref QuestSequence reference185 = ref span235[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -187554,7 +226156,9 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(367.17773f, -119.94679f, -292.3781f), 613) + Span span238 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span238[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(367.17773f, -119.94679f, -292.3781f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, @@ -187562,21 +226166,25 @@ public static class AssemblyQuestLoader }; obj169.Steps = list238; reference185 = obj169; - ref QuestSequence reference186 = ref span78[3]; + num++; + ref QuestSequence reference186 = ref span235[num]; QuestSequence obj170 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Emote, 2009085u, new Vector3(367.18176f, -119.93892f, -291.77762f), 613) + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + Span span239 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span239[num2] = new QuestStep(EInteractionType.Emote, 2009085u, new Vector3(367.18176f, -119.93892f, -291.77762f), 613) { Emote = EEmote.Pray }; obj170.Steps = list239; reference186 = obj170; - ref QuestSequence reference187 = ref span78[4]; + num++; + ref QuestSequence reference187 = ref span235[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -187584,12 +226192,14 @@ public static class AssemblyQuestLoader num2 = 2; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span80 = CollectionsMarshal.AsSpan(list240); - span80[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + Span span240 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span240[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true }; - span80[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span240[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj171.Steps = list240; reference187 = obj171; questRoot25.QuestSequence = list235; @@ -187599,24 +226209,30 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "plogon_enjoyer"; + Span span241 = CollectionsMarshal.AsSpan(list241); + index = 0; + span241[index] = "plogon_enjoyer"; questRoot26.Author = list241; - num = 4; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span81 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference188 = ref span81[0]; + index = 4; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + Span span242 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference188 = ref span242[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + Span span243 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span243[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj172.Steps = list243; reference188 = obj172; - ref QuestSequence reference189 = ref span81[1]; + num++; + ref QuestSequence reference189 = ref span242[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -187624,52 +226240,67 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span244[index2] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) { Fly = true }; obj173.Steps = list244; reference189 = obj173; - ref QuestSequence reference190 = ref span81[2]; + num++; + ref QuestSequence reference190 = ref span242[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - Span span82 = CollectionsMarshal.AsSpan(list245); - span82[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.60294f, -83.18693f, -227.16872f), 613) + index2 = 6; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + Span span245 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span245[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.60294f, -83.18693f, -227.16872f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - ref QuestStep reference191 = ref span82[1]; + num2++; + ref QuestStep reference191 = ref span245[num2]; QuestStep obj175 = new QuestStep(EInteractionType.Action, 2009233u, new Vector3(81.19324f, -197.77222f, -266.8651f), 613) { Action = EAction.Inhale }; - num3 = 6; - List> list246 = new List>(num3); - CollectionsMarshal.SetCount(list246, num3); - Span> span83 = CollectionsMarshal.AsSpan(list246); - span83[0] = null; - span83[1] = null; - span83[2] = null; - ref List reference192 = ref span83[3]; + index3 = 6; + List> list246 = new List>(index3); + CollectionsMarshal.SetCount(list246, index3); + Span> span246 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + ref List reference192 = ref span246[num3]; num4 = 3; List list247 = new List(num4); CollectionsMarshal.SetCount(list247, num4); - Span span84 = CollectionsMarshal.AsSpan(list247); - span84[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span84[1] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span84[2] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + Span span247 = CollectionsMarshal.AsSpan(list247); + num5 = 0; + span247[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span247[num5] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num5++; + span247[num5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference192 = list247; - span83[4] = null; - span83[5] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = null; obj175.RequiredQuestVariables = list246; reference191 = obj175; - ref QuestStep reference193 = ref span82[2]; + num2++; + ref QuestStep reference193 = ref span245[num2]; QuestStep obj176 = new QuestStep(EInteractionType.Action, 2009234u, new Vector3(195.05603f, -183.30664f, -346.6087f), 613) { Action = EAction.Inhale @@ -187677,50 +226308,71 @@ public static class AssemblyQuestLoader num3 = 6; List> list248 = new List>(num3); CollectionsMarshal.SetCount(list248, num3); - Span> span85 = CollectionsMarshal.AsSpan(list248); - span85[0] = null; - span85[1] = null; - span85[2] = null; - ref List reference194 = ref span85[3]; - num4 = 4; - List list249 = new List(num4); - CollectionsMarshal.SetCount(list249, num4); - Span span86 = CollectionsMarshal.AsSpan(list249); - span86[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span86[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span86[2] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span86[3] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + Span> span248 = CollectionsMarshal.AsSpan(list248); + index3 = 0; + span248[index3] = null; + index3++; + span248[index3] = null; + index3++; + span248[index3] = null; + index3++; + ref List reference194 = ref span248[index3]; + num5 = 4; + List list249 = new List(num5); + CollectionsMarshal.SetCount(list249, num5); + Span span249 = CollectionsMarshal.AsSpan(list249); + num4 = 0; + span249[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4++; + span249[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4++; + span249[num4] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num4++; + span249[num4] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference194 = list249; - span85[4] = null; - span85[5] = null; + index3++; + span248[index3] = null; + index3++; + span248[index3] = null; obj176.RequiredQuestVariables = list248; reference193 = obj176; - ref QuestStep reference195 = ref span82[3]; + num2++; + ref QuestStep reference195 = ref span245[num2]; QuestStep obj177 = new QuestStep(EInteractionType.Action, 2009235u, new Vector3(50.980347f, -139.42175f, -280.96442f), 613) { Action = EAction.Inhale }; - num3 = 6; - List> list250 = new List>(num3); - CollectionsMarshal.SetCount(list250, num3); - Span> span87 = CollectionsMarshal.AsSpan(list250); - span87[0] = null; - span87[1] = null; - span87[2] = null; - ref List reference196 = ref span87[3]; + index3 = 6; + List> list250 = new List>(index3); + CollectionsMarshal.SetCount(list250, index3); + Span> span250 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + span250[num3] = null; + num3++; + span250[num3] = null; + num3++; + span250[num3] = null; + num3++; + ref List reference196 = ref span250[num3]; num4 = 3; List list251 = new List(num4); CollectionsMarshal.SetCount(list251, num4); - Span span88 = CollectionsMarshal.AsSpan(list251); - span88[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span88[1] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span88[2] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + Span span251 = CollectionsMarshal.AsSpan(list251); + num5 = 0; + span251[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span251[num5] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num5++; + span251[num5] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); reference196 = list251; - span87[4] = null; - span87[5] = null; + num3++; + span250[num3] = null; + num3++; + span250[num3] = null; obj177.RequiredQuestVariables = list250; reference195 = obj177; - ref QuestStep reference197 = ref span82[4]; + num2++; + ref QuestStep reference197 = ref span245[num2]; QuestStep obj178 = new QuestStep(EInteractionType.Action, 2009236u, new Vector3(192.0653f, -172.80847f, -247.63867f), 613) { Action = EAction.Inhale @@ -187728,53 +226380,75 @@ public static class AssemblyQuestLoader num3 = 6; List> list252 = new List>(num3); CollectionsMarshal.SetCount(list252, num3); - Span> span89 = CollectionsMarshal.AsSpan(list252); - span89[0] = null; - span89[1] = null; - span89[2] = null; - ref List reference198 = ref span89[3]; - num4 = 4; - List list253 = new List(num4); - CollectionsMarshal.SetCount(list253, num4); - Span span90 = CollectionsMarshal.AsSpan(list253); - span90[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span90[1] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span90[2] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span90[3] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + Span> span252 = CollectionsMarshal.AsSpan(list252); + index3 = 0; + span252[index3] = null; + index3++; + span252[index3] = null; + index3++; + span252[index3] = null; + index3++; + ref List reference198 = ref span252[index3]; + num5 = 4; + List list253 = new List(num5); + CollectionsMarshal.SetCount(list253, num5); + Span span253 = CollectionsMarshal.AsSpan(list253); + num4 = 0; + span253[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4++; + span253[num4] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num4++; + span253[num4] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num4++; + span253[num4] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); reference198 = list253; - span89[4] = null; - span89[5] = null; + index3++; + span252[index3] = null; + index3++; + span252[index3] = null; obj178.RequiredQuestVariables = list252; reference197 = obj178; - ref QuestStep reference199 = ref span82[5]; + num2++; + ref QuestStep reference199 = ref span245[num2]; QuestStep obj179 = new QuestStep(EInteractionType.Action, 2009237u, new Vector3(173.99854f, -161.85254f, -190.29535f), 613) { Action = EAction.Inhale }; - num3 = 6; - List> list254 = new List>(num3); - CollectionsMarshal.SetCount(list254, num3); - Span> span91 = CollectionsMarshal.AsSpan(list254); - span91[0] = null; - span91[1] = null; - span91[2] = null; - ref List reference200 = ref span91[3]; + index3 = 6; + List> list254 = new List>(index3); + CollectionsMarshal.SetCount(list254, index3); + Span> span254 = CollectionsMarshal.AsSpan(list254); + num3 = 0; + span254[num3] = null; + num3++; + span254[num3] = null; + num3++; + span254[num3] = null; + num3++; + ref List reference200 = ref span254[num3]; num4 = 4; List list255 = new List(num4); CollectionsMarshal.SetCount(list255, num4); - Span span92 = CollectionsMarshal.AsSpan(list255); - span92[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span92[1] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span92[2] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span92[3] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + Span span255 = CollectionsMarshal.AsSpan(list255); + num5 = 0; + span255[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5++; + span255[num5] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num5++; + span255[num5] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num5++; + span255[num5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference200 = list255; - span91[4] = null; - span91[5] = null; + num3++; + span254[num3] = null; + num3++; + span254[num3] = null; obj179.RequiredQuestVariables = list254; reference199 = obj179; obj174.Steps = list245; reference190 = obj174; - ref QuestSequence reference201 = ref span81[3]; + num++; + ref QuestSequence reference201 = ref span242[num]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue @@ -187782,13 +226456,15 @@ public static class AssemblyQuestLoader num2 = 2; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span93 = CollectionsMarshal.AsSpan(list256); - span93[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + Span span256 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span256[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span93[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span256[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj180.Steps = list256; reference201 = obj180; questRoot26.QuestSequence = list242; @@ -187798,24 +226474,30 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "plogon_enjoyer"; + Span span257 = CollectionsMarshal.AsSpan(list257); + index = 0; + span257[index] = "plogon_enjoyer"; questRoot27.Author = list257; - num = 3; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span94 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference202 = ref span94[0]; + index = 3; + List list258 = new List(index); + CollectionsMarshal.SetCount(list258, index); + Span span258 = CollectionsMarshal.AsSpan(list258); + num = 0; + ref QuestSequence reference202 = ref span258[num]; QuestSequence obj181 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + Span span259 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span259[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj181.Steps = list259; reference202 = obj181; - ref QuestSequence reference203 = ref span94[1]; + num++; + ref QuestSequence reference203 = ref span258[num]; QuestSequence obj182 = new QuestSequence { Sequence = 1 @@ -187823,8 +226505,9 @@ public static class AssemblyQuestLoader num2 = 4; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - Span span95 = CollectionsMarshal.AsSpan(list260); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(840.90247f, 5.923009f, 842.75916f), 613) + Span span260 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span260[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(840.90247f, 5.923009f, 842.75916f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -187834,7 +226517,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - ref QuestStep reference204 = ref span95[1]; + index2++; + ref QuestStep reference204 = ref span260[index2]; QuestStep obj183 = new QuestStep(EInteractionType.Combat, 2009092u, new Vector3(38.864624f, 18.20398f, 712.7947f), 613) { Fly = true, @@ -187844,28 +226528,39 @@ public static class AssemblyQuestLoader num3 = 1; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - CollectionsMarshal.AsSpan(list261)[0] = 8236u; + Span span261 = CollectionsMarshal.AsSpan(list261); + index3 = 0; + span261[index3] = 8236u; obj183.KillEnemyDataIds = list261; - num3 = 6; - List> list262 = new List>(num3); - CollectionsMarshal.SetCount(list262, num3); - Span> span96 = CollectionsMarshal.AsSpan(list262); - span96[0] = null; - span96[1] = null; - span96[2] = null; - ref List reference205 = ref span96[3]; - num4 = 2; - List list263 = new List(num4); - CollectionsMarshal.SetCount(list263, num4); - Span span97 = CollectionsMarshal.AsSpan(list263); - span97[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span97[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list262 = new List>(index3); + CollectionsMarshal.SetCount(list262, index3); + Span> span262 = CollectionsMarshal.AsSpan(list262); + num3 = 0; + span262[num3] = null; + num3++; + span262[num3] = null; + num3++; + span262[num3] = null; + num3++; + ref List reference205 = ref span262[num3]; + num5 = 2; + List list263 = new List(num5); + CollectionsMarshal.SetCount(list263, num5); + Span span263 = CollectionsMarshal.AsSpan(list263); + num4 = 0; + span263[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4++; + span263[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference205 = list263; - span96[4] = null; - span96[5] = null; + num3++; + span262[num3] = null; + num3++; + span262[num3] = null; obj183.RequiredQuestVariables = list262; reference204 = obj183; - ref QuestStep reference206 = ref span95[2]; + index2++; + ref QuestStep reference206 = ref span260[index2]; QuestStep obj184 = new QuestStep(EInteractionType.Combat, 2009091u, new Vector3(-72.58722f, 10.513428f, 632.41016f), 613) { Fly = true, @@ -187875,26 +226570,37 @@ public static class AssemblyQuestLoader num3 = 1; List list264 = new List(num3); CollectionsMarshal.SetCount(list264, num3); - CollectionsMarshal.AsSpan(list264)[0] = 8236u; + Span span264 = CollectionsMarshal.AsSpan(list264); + index3 = 0; + span264[index3] = 8236u; obj184.KillEnemyDataIds = list264; - num3 = 6; - List> list265 = new List>(num3); - CollectionsMarshal.SetCount(list265, num3); - Span> span98 = CollectionsMarshal.AsSpan(list265); - span98[0] = null; - span98[1] = null; - span98[2] = null; - ref List reference207 = ref span98[3]; + index3 = 6; + List> list265 = new List>(index3); + CollectionsMarshal.SetCount(list265, index3); + Span> span265 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + ref List reference207 = ref span265[num3]; num4 = 1; List list266 = new List(num4); CollectionsMarshal.SetCount(list266, num4); - CollectionsMarshal.AsSpan(list266)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span266 = CollectionsMarshal.AsSpan(list266); + num5 = 0; + span266[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference207 = list266; - span98[4] = null; - span98[5] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = null; obj184.RequiredQuestVariables = list265; reference206 = obj184; - ref QuestStep reference208 = ref span95[3]; + index2++; + ref QuestStep reference208 = ref span260[index2]; QuestStep obj185 = new QuestStep(EInteractionType.Combat, 2009093u, new Vector3(29.495605f, 3.0059814f, 527.7637f), 613) { Fly = true, @@ -187904,42 +226610,55 @@ public static class AssemblyQuestLoader num3 = 1; List list267 = new List(num3); CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = 8236u; + Span span267 = CollectionsMarshal.AsSpan(list267); + index3 = 0; + span267[index3] = 8236u; obj185.KillEnemyDataIds = list267; - num3 = 6; - List> list268 = new List>(num3); - CollectionsMarshal.SetCount(list268, num3); - Span> span99 = CollectionsMarshal.AsSpan(list268); - span99[0] = null; - span99[1] = null; - span99[2] = null; - ref List reference209 = ref span99[3]; - num4 = 1; - List list269 = new List(num4); - CollectionsMarshal.SetCount(list269, num4); - CollectionsMarshal.AsSpan(list269)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list268 = new List>(index3); + CollectionsMarshal.SetCount(list268, index3); + Span> span268 = CollectionsMarshal.AsSpan(list268); + num3 = 0; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + ref List reference209 = ref span268[num3]; + num5 = 1; + List list269 = new List(num5); + CollectionsMarshal.SetCount(list269, num5); + Span span269 = CollectionsMarshal.AsSpan(list269); + num4 = 0; + span269[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference209 = list269; - span99[4] = null; - span99[5] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = null; obj185.RequiredQuestVariables = list268; reference208 = obj185; obj182.Steps = list260; reference203 = obj182; - ref QuestSequence reference210 = ref span94[2]; + num++; + ref QuestSequence reference210 = ref span258[num]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - Span span100 = CollectionsMarshal.AsSpan(list270); - span100[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) + index2 = 2; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + Span span270 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span270[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span100[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span270[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj186.Steps = list270; reference210 = obj186; questRoot27.QuestSequence = list258; @@ -187949,13 +226668,16 @@ public static class AssemblyQuestLoader num = 1; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - CollectionsMarshal.AsSpan(list271)[0] = "plogon_enjoyer"; + Span span271 = CollectionsMarshal.AsSpan(list271); + index = 0; + span271[index] = "plogon_enjoyer"; questRoot28.Author = list271; - num = 3; - List list272 = new List(num); - CollectionsMarshal.SetCount(list272, num); - Span span101 = CollectionsMarshal.AsSpan(list272); - ref QuestSequence reference211 = ref span101[0]; + index = 3; + List list272 = new List(index); + CollectionsMarshal.SetCount(list272, index); + Span span272 = CollectionsMarshal.AsSpan(list272); + num = 0; + ref QuestSequence reference211 = ref span272[num]; QuestSequence obj187 = new QuestSequence { Sequence = 0 @@ -187963,19 +226685,23 @@ public static class AssemblyQuestLoader num2 = 1; List list273 = new List(num2); CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + Span span273 = CollectionsMarshal.AsSpan(list273); + index2 = 0; + span273[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj187.Steps = list273; reference211 = obj187; - ref QuestSequence reference212 = ref span101[1]; + num++; + ref QuestSequence reference212 = ref span272[num]; QuestSequence obj188 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - Span span102 = CollectionsMarshal.AsSpan(list274); - ref QuestStep reference213 = ref span102[0]; + index2 = 3; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + Span span274 = CollectionsMarshal.AsSpan(list274); + num2 = 0; + ref QuestStep reference213 = ref span274[num2]; QuestStep obj189 = new QuestStep(EInteractionType.Interact, 1019249u, new Vector3(537.1328f, 33.655228f, -811.1849f), 613) { Fly = true, @@ -187984,45 +226710,63 @@ public static class AssemblyQuestLoader num3 = 6; List> list275 = new List>(num3); CollectionsMarshal.SetCount(list275, num3); - Span> span103 = CollectionsMarshal.AsSpan(list275); - span103[0] = null; - span103[1] = null; - ref List reference214 = ref span103[2]; + Span> span275 = CollectionsMarshal.AsSpan(list275); + index3 = 0; + span275[index3] = null; + index3++; + span275[index3] = null; + index3++; + ref List reference214 = ref span275[index3]; num4 = 2; List list276 = new List(num4); CollectionsMarshal.SetCount(list276, num4); - Span span104 = CollectionsMarshal.AsSpan(list276); - span104[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span104[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span276 = CollectionsMarshal.AsSpan(list276); + num5 = 0; + span276[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span276[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference214 = list276; - span103[3] = null; - span103[4] = null; - span103[5] = null; + index3++; + span275[index3] = null; + index3++; + span275[index3] = null; + index3++; + span275[index3] = null; obj189.RequiredQuestVariables = list275; reference213 = obj189; - ref QuestStep reference215 = ref span102[1]; + num2++; + ref QuestStep reference215 = ref span274[num2]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 1024348u, new Vector3(724.8187f, 1.3691645f, -814.4198f), 613) { Fly = true }; - num3 = 6; - List> list277 = new List>(num3); - CollectionsMarshal.SetCount(list277, num3); - Span> span105 = CollectionsMarshal.AsSpan(list277); - span105[0] = null; - span105[1] = null; - ref List reference216 = ref span105[2]; - num4 = 1; - List list278 = new List(num4); - CollectionsMarshal.SetCount(list278, num4); - CollectionsMarshal.AsSpan(list278)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list277 = new List>(index3); + CollectionsMarshal.SetCount(list277, index3); + Span> span277 = CollectionsMarshal.AsSpan(list277); + num3 = 0; + span277[num3] = null; + num3++; + span277[num3] = null; + num3++; + ref List reference216 = ref span277[num3]; + num5 = 1; + List list278 = new List(num5); + CollectionsMarshal.SetCount(list278, num5); + Span span278 = CollectionsMarshal.AsSpan(list278); + num4 = 0; + span278[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference216 = list278; - span105[3] = null; - span105[4] = null; - span105[5] = null; + num3++; + span277[num3] = null; + num3++; + span277[num3] = null; + num3++; + span277[num3] = null; obj190.RequiredQuestVariables = list277; reference215 = obj190; - ref QuestStep reference217 = ref span102[2]; + num2++; + ref QuestStep reference217 = ref span274[num2]; QuestStep obj191 = new QuestStep(EInteractionType.Interact, 1024420u, new Vector3(577.3556f, 9.866471f, -733.79114f), 613) { Fly = true @@ -188030,23 +226774,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list279 = new List>(num3); CollectionsMarshal.SetCount(list279, num3); - Span> span106 = CollectionsMarshal.AsSpan(list279); - span106[0] = null; - span106[1] = null; - ref List reference218 = ref span106[2]; + Span> span279 = CollectionsMarshal.AsSpan(list279); + index3 = 0; + span279[index3] = null; + index3++; + span279[index3] = null; + index3++; + ref List reference218 = ref span279[index3]; num4 = 1; List list280 = new List(num4); CollectionsMarshal.SetCount(list280, num4); - CollectionsMarshal.AsSpan(list280)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span280 = CollectionsMarshal.AsSpan(list280); + num5 = 0; + span280[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference218 = list280; - span106[3] = null; - span106[4] = null; - span106[5] = null; + index3++; + span279[index3] = null; + index3++; + span279[index3] = null; + index3++; + span279[index3] = null; obj191.RequiredQuestVariables = list279; reference217 = obj191; obj188.Steps = list274; reference212 = obj188; - ref QuestSequence reference219 = ref span101[2]; + num++; + ref QuestSequence reference219 = ref span272[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue @@ -188054,13 +226807,15 @@ public static class AssemblyQuestLoader num2 = 2; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span107 = CollectionsMarshal.AsSpan(list281); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + Span span281 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span281[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span281[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj192.Steps = list281; reference219 = obj192; questRoot28.QuestSequence = list272; @@ -188070,24 +226825,30 @@ public static class AssemblyQuestLoader num = 1; List list282 = new List(num); CollectionsMarshal.SetCount(list282, num); - CollectionsMarshal.AsSpan(list282)[0] = "plogon_enjoyer"; + Span span282 = CollectionsMarshal.AsSpan(list282); + index = 0; + span282[index] = "plogon_enjoyer"; questRoot29.Author = list282; - num = 4; - List list283 = new List(num); - CollectionsMarshal.SetCount(list283, num); - Span span108 = CollectionsMarshal.AsSpan(list283); - ref QuestSequence reference220 = ref span108[0]; + index = 4; + List list283 = new List(index); + CollectionsMarshal.SetCount(list283, index); + Span span283 = CollectionsMarshal.AsSpan(list283); + num = 0; + ref QuestSequence reference220 = ref span283[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + Span span284 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + span284[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj193.Steps = list284; reference220 = obj193; - ref QuestSequence reference221 = ref span108[1]; + num++; + ref QuestSequence reference221 = ref span283[num]; QuestSequence obj194 = new QuestSequence { Sequence = 1 @@ -188095,13 +226856,15 @@ public static class AssemblyQuestLoader num2 = 2; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span109 = CollectionsMarshal.AsSpan(list285); - span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(324.734f, -118.16611f, -310.65613f), 613) + Span span285 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span285[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(324.734f, -118.16611f, -310.65613f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - span109[1] = new QuestStep(EInteractionType.Say, 2009099u, new Vector3(829.0073f, -122.179016f, -768.91736f), 613) + index2++; + span285[index2] = new QuestStep(EInteractionType.Say, 2009099u, new Vector3(829.0073f, -122.179016f, -768.91736f), 613) { Fly = true, ChatMessage = new ChatMessage @@ -188111,38 +226874,49 @@ public static class AssemblyQuestLoader }; obj194.Steps = list285; reference221 = obj194; - ref QuestSequence reference222 = ref span108[2]; + num++; + ref QuestSequence reference222 = ref span283[num]; QuestSequence obj195 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - Span span110 = CollectionsMarshal.AsSpan(list286); - ref QuestStep reference223 = ref span110[0]; + index2 = 3; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + Span span286 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + ref QuestStep reference223 = ref span286[num2]; QuestStep obj196 = new QuestStep(EInteractionType.Interact, 1024295u, new Vector3(861.6616f, -108.659546f, -546.4103f), 613) { Fly = true }; - num3 = 6; - List> list287 = new List>(num3); - CollectionsMarshal.SetCount(list287, num3); - Span> span111 = CollectionsMarshal.AsSpan(list287); - span111[0] = null; - ref List reference224 = ref span111[1]; - num4 = 1; - List list288 = new List(num4); - CollectionsMarshal.SetCount(list288, num4); - CollectionsMarshal.AsSpan(list288)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list287 = new List>(index3); + CollectionsMarshal.SetCount(list287, index3); + Span> span287 = CollectionsMarshal.AsSpan(list287); + num3 = 0; + span287[num3] = null; + num3++; + ref List reference224 = ref span287[num3]; + num5 = 1; + List list288 = new List(num5); + CollectionsMarshal.SetCount(list288, num5); + Span span288 = CollectionsMarshal.AsSpan(list288); + num4 = 0; + span288[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference224 = list288; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = null; + num3++; + span287[num3] = null; + num3++; + span287[num3] = null; + num3++; + span287[num3] = null; + num3++; + span287[num3] = null; obj196.RequiredQuestVariables = list287; reference223 = obj196; - ref QuestStep reference225 = ref span110[1]; + num2++; + ref QuestStep reference225 = ref span286[num2]; QuestStep obj197 = new QuestStep(EInteractionType.Interact, 1024345u, new Vector3(891.78296f, -140.61188f, -794.36945f), 613) { Fly = true @@ -188150,45 +226924,63 @@ public static class AssemblyQuestLoader num3 = 6; List> list289 = new List>(num3); CollectionsMarshal.SetCount(list289, num3); - Span> span112 = CollectionsMarshal.AsSpan(list289); - span112[0] = null; - ref List reference226 = ref span112[1]; + Span> span289 = CollectionsMarshal.AsSpan(list289); + index3 = 0; + span289[index3] = null; + index3++; + ref List reference226 = ref span289[index3]; num4 = 1; List list290 = new List(num4); CollectionsMarshal.SetCount(list290, num4); - CollectionsMarshal.AsSpan(list290)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span290 = CollectionsMarshal.AsSpan(list290); + num5 = 0; + span290[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference226 = list290; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = null; + index3++; + span289[index3] = null; + index3++; + span289[index3] = null; + index3++; + span289[index3] = null; + index3++; + span289[index3] = null; obj197.RequiredQuestVariables = list289; reference225 = obj197; - ref QuestStep reference227 = ref span110[2]; + num2++; + ref QuestStep reference227 = ref span286[num2]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1024344u, new Vector3(836.14856f, -127.85541f, -910.7042f), 613) { Fly = true }; - num3 = 6; - List> list291 = new List>(num3); - CollectionsMarshal.SetCount(list291, num3); - Span> span113 = CollectionsMarshal.AsSpan(list291); - span113[0] = null; - ref List reference228 = ref span113[1]; - num4 = 1; - List list292 = new List(num4); - CollectionsMarshal.SetCount(list292, num4); - CollectionsMarshal.AsSpan(list292)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list291 = new List>(index3); + CollectionsMarshal.SetCount(list291, index3); + Span> span291 = CollectionsMarshal.AsSpan(list291); + num3 = 0; + span291[num3] = null; + num3++; + ref List reference228 = ref span291[num3]; + num5 = 1; + List list292 = new List(num5); + CollectionsMarshal.SetCount(list292, num5); + Span span292 = CollectionsMarshal.AsSpan(list292); + num4 = 0; + span292[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference228 = list292; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = null; + num3++; + span291[num3] = null; + num3++; + span291[num3] = null; + num3++; + span291[num3] = null; + num3++; + span291[num3] = null; obj198.RequiredQuestVariables = list291; reference227 = obj198; obj195.Steps = list286; reference222 = obj195; - ref QuestSequence reference229 = ref span108[3]; + num++; + ref QuestSequence reference229 = ref span283[num]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue @@ -188196,13 +226988,15 @@ public static class AssemblyQuestLoader num2 = 2; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span114 = CollectionsMarshal.AsSpan(list293); - span114[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + Span span293 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span293[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span114[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span293[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj199.Steps = list293; reference229 = obj199; questRoot29.QuestSequence = list283; @@ -188212,24 +227006,30 @@ public static class AssemblyQuestLoader num = 1; List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - CollectionsMarshal.AsSpan(list294)[0] = "plogon_enjoyer"; + Span span294 = CollectionsMarshal.AsSpan(list294); + index = 0; + span294[index] = "plogon_enjoyer"; questRoot30.Author = list294; - num = 3; - List list295 = new List(num); - CollectionsMarshal.SetCount(list295, num); - Span span115 = CollectionsMarshal.AsSpan(list295); - ref QuestSequence reference230 = ref span115[0]; + index = 3; + List list295 = new List(index); + CollectionsMarshal.SetCount(list295, index); + Span span295 = CollectionsMarshal.AsSpan(list295); + num = 0; + ref QuestSequence reference230 = ref span295[num]; QuestSequence obj200 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span296 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span296[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj200.Steps = list296; reference230 = obj200; - ref QuestSequence reference231 = ref span115[1]; + num++; + ref QuestSequence reference231 = ref span295[num]; QuestSequence obj201 = new QuestSequence { Sequence = 1 @@ -188237,8 +227037,9 @@ public static class AssemblyQuestLoader num2 = 3; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span116 = CollectionsMarshal.AsSpan(list297); - ref QuestStep reference232 = ref span116[0]; + Span span297 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + ref QuestStep reference232 = ref span297[index2]; QuestStep obj202 = new QuestStep(EInteractionType.Combat, null, new Vector3(-305.79498f, -0.5f, -517.7326f), 613) { Fly = true, @@ -188249,26 +227050,37 @@ public static class AssemblyQuestLoader num3 = 1; List list298 = new List(num3); CollectionsMarshal.SetCount(list298, num3); - CollectionsMarshal.AsSpan(list298)[0] = 8237u; + Span span298 = CollectionsMarshal.AsSpan(list298); + index3 = 0; + span298[index3] = 8237u; obj202.KillEnemyDataIds = list298; - num3 = 6; - List> list299 = new List>(num3); - CollectionsMarshal.SetCount(list299, num3); - Span> span117 = CollectionsMarshal.AsSpan(list299); - span117[0] = null; - span117[1] = null; - ref List reference233 = ref span117[2]; + index3 = 6; + List> list299 = new List>(index3); + CollectionsMarshal.SetCount(list299, index3); + Span> span299 = CollectionsMarshal.AsSpan(list299); + num3 = 0; + span299[num3] = null; + num3++; + span299[num3] = null; + num3++; + ref List reference233 = ref span299[num3]; num4 = 1; List list300 = new List(num4); CollectionsMarshal.SetCount(list300, num4); - CollectionsMarshal.AsSpan(list300)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + Span span300 = CollectionsMarshal.AsSpan(list300); + num5 = 0; + span300[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference233 = list300; - span117[3] = null; - span117[4] = null; - span117[5] = null; + num3++; + span299[num3] = null; + num3++; + span299[num3] = null; + num3++; + span299[num3] = null; obj202.RequiredQuestVariables = list299; reference232 = obj202; - ref QuestStep reference234 = ref span116[1]; + index2++; + ref QuestStep reference234 = ref span297[index2]; QuestStep obj203 = new QuestStep(EInteractionType.Combat, null, new Vector3(166.64561f, -0.4983238f, -751.1739f), 613) { Fly = true, @@ -188279,26 +227091,37 @@ public static class AssemblyQuestLoader num3 = 1; List list301 = new List(num3); CollectionsMarshal.SetCount(list301, num3); - CollectionsMarshal.AsSpan(list301)[0] = 8237u; + Span span301 = CollectionsMarshal.AsSpan(list301); + index3 = 0; + span301[index3] = 8237u; obj203.KillEnemyDataIds = list301; - num3 = 6; - List> list302 = new List>(num3); - CollectionsMarshal.SetCount(list302, num3); - Span> span118 = CollectionsMarshal.AsSpan(list302); - span118[0] = null; - span118[1] = null; - ref List reference235 = ref span118[2]; - num4 = 1; - List list303 = new List(num4); - CollectionsMarshal.SetCount(list303, num4); - CollectionsMarshal.AsSpan(list303)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + index3 = 6; + List> list302 = new List>(index3); + CollectionsMarshal.SetCount(list302, index3); + Span> span302 = CollectionsMarshal.AsSpan(list302); + num3 = 0; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + ref List reference235 = ref span302[num3]; + num5 = 1; + List list303 = new List(num5); + CollectionsMarshal.SetCount(list303, num5); + Span span303 = CollectionsMarshal.AsSpan(list303); + num4 = 0; + span303[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference235 = list303; - span118[3] = null; - span118[4] = null; - span118[5] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = null; obj203.RequiredQuestVariables = list302; reference234 = obj203; - ref QuestStep reference236 = ref span116[2]; + index2++; + ref QuestStep reference236 = ref span297[index2]; QuestStep obj204 = new QuestStep(EInteractionType.Combat, null, new Vector3(-135.29268f, -0.06343824f, -805.9451f), 613) { Fly = true, @@ -188309,42 +227132,55 @@ public static class AssemblyQuestLoader num3 = 1; List list304 = new List(num3); CollectionsMarshal.SetCount(list304, num3); - CollectionsMarshal.AsSpan(list304)[0] = 8237u; + Span span304 = CollectionsMarshal.AsSpan(list304); + index3 = 0; + span304[index3] = 8237u; obj204.KillEnemyDataIds = list304; - num3 = 6; - List> list305 = new List>(num3); - CollectionsMarshal.SetCount(list305, num3); - Span> span119 = CollectionsMarshal.AsSpan(list305); - span119[0] = null; - span119[1] = null; - ref List reference237 = ref span119[2]; + index3 = 6; + List> list305 = new List>(index3); + CollectionsMarshal.SetCount(list305, index3); + Span> span305 = CollectionsMarshal.AsSpan(list305); + num3 = 0; + span305[num3] = null; + num3++; + span305[num3] = null; + num3++; + ref List reference237 = ref span305[num3]; num4 = 1; List list306 = new List(num4); CollectionsMarshal.SetCount(list306, num4); - CollectionsMarshal.AsSpan(list306)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + Span span306 = CollectionsMarshal.AsSpan(list306); + num5 = 0; + span306[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference237 = list306; - span119[3] = null; - span119[4] = null; - span119[5] = null; + num3++; + span305[num3] = null; + num3++; + span305[num3] = null; + num3++; + span305[num3] = null; obj204.RequiredQuestVariables = list305; reference236 = obj204; obj201.Steps = list297; reference231 = obj201; - ref QuestSequence reference238 = ref span115[2]; + num++; + ref QuestSequence reference238 = ref span295[num]; QuestSequence obj205 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - Span span120 = CollectionsMarshal.AsSpan(list307); - span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + index2 = 2; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + Span span307 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span307[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span120[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span307[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj205.Steps = list307; reference238 = obj205; questRoot30.QuestSequence = list295; @@ -188354,13 +227190,16 @@ public static class AssemblyQuestLoader num = 1; List list308 = new List(num); CollectionsMarshal.SetCount(list308, num); - CollectionsMarshal.AsSpan(list308)[0] = "plogon_enjoyer"; + Span span308 = CollectionsMarshal.AsSpan(list308); + index = 0; + span308[index] = "plogon_enjoyer"; questRoot31.Author = list308; - num = 4; - List list309 = new List(num); - CollectionsMarshal.SetCount(list309, num); - Span span121 = CollectionsMarshal.AsSpan(list309); - ref QuestSequence reference239 = ref span121[0]; + index = 4; + List list309 = new List(index); + CollectionsMarshal.SetCount(list309, index); + Span span309 = CollectionsMarshal.AsSpan(list309); + num = 0; + ref QuestSequence reference239 = ref span309[num]; QuestSequence obj206 = new QuestSequence { Sequence = 0 @@ -188368,25 +227207,31 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + Span span310 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span310[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj206.Steps = list310; reference239 = obj206; - ref QuestSequence reference240 = ref span121[1]; + num++; + ref QuestSequence reference240 = ref span309[num]; QuestSequence obj207 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Interact, 1024300u, new Vector3(139.60474f, -0.17411774f, -578.1796f), 613) + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + Span span311 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span311[num2] = new QuestStep(EInteractionType.Interact, 1024300u, new Vector3(139.60474f, -0.17411774f, -578.1796f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj207.Steps = list311; reference240 = obj207; - ref QuestSequence reference241 = ref span121[2]; + num++; + ref QuestSequence reference241 = ref span309[num]; QuestSequence obj208 = new QuestSequence { Sequence = 2 @@ -188394,8 +227239,9 @@ public static class AssemblyQuestLoader num2 = 3; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span122 = CollectionsMarshal.AsSpan(list312); - ref QuestStep reference242 = ref span122[0]; + Span span312 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + ref QuestStep reference242 = ref span312[index2]; QuestStep obj209 = new QuestStep(EInteractionType.Interact, 1024305u, new Vector3(30.71643f, 1.1855971f, -529.778f), 613) { Fly = true @@ -188403,47 +227249,65 @@ public static class AssemblyQuestLoader num3 = 6; List> list313 = new List>(num3); CollectionsMarshal.SetCount(list313, num3); - Span> span123 = CollectionsMarshal.AsSpan(list313); - span123[0] = null; - span123[1] = null; - ref List reference243 = ref span123[2]; - num4 = 2; - List list314 = new List(num4); - CollectionsMarshal.SetCount(list314, num4); - Span span124 = CollectionsMarshal.AsSpan(list314); - span124[0] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span124[1] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + Span> span313 = CollectionsMarshal.AsSpan(list313); + index3 = 0; + span313[index3] = null; + index3++; + span313[index3] = null; + index3++; + ref List reference243 = ref span313[index3]; + num5 = 2; + List list314 = new List(num5); + CollectionsMarshal.SetCount(list314, num5); + Span span314 = CollectionsMarshal.AsSpan(list314); + num4 = 0; + span314[num4] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span314[num4] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); reference243 = list314; - span123[3] = null; - span123[4] = null; - span123[5] = null; + index3++; + span313[index3] = null; + index3++; + span313[index3] = null; + index3++; + span313[index3] = null; obj209.RequiredQuestVariables = list313; reference242 = obj209; - ref QuestStep reference244 = ref span122[1]; + index2++; + ref QuestStep reference244 = ref span312[index2]; QuestStep obj210 = new QuestStep(EInteractionType.Interact, 1024303u, new Vector3(43.503418f, 3.6636734f, -619.379f), 613) { Fly = true }; - num3 = 6; - List> list315 = new List>(num3); - CollectionsMarshal.SetCount(list315, num3); - Span> span125 = CollectionsMarshal.AsSpan(list315); - span125[0] = null; - span125[1] = null; - ref List reference245 = ref span125[2]; + index3 = 6; + List> list315 = new List>(index3); + CollectionsMarshal.SetCount(list315, index3); + Span> span315 = CollectionsMarshal.AsSpan(list315); + num3 = 0; + span315[num3] = null; + num3++; + span315[num3] = null; + num3++; + ref List reference245 = ref span315[num3]; num4 = 2; List list316 = new List(num4); CollectionsMarshal.SetCount(list316, num4); - Span span126 = CollectionsMarshal.AsSpan(list316); - span126[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span126[1] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + Span span316 = CollectionsMarshal.AsSpan(list316); + num5 = 0; + span316[num5] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span316[num5] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); reference245 = list316; - span125[3] = null; - span125[4] = null; - span125[5] = null; + num3++; + span315[num3] = null; + num3++; + span315[num3] = null; + num3++; + span315[num3] = null; obj210.RequiredQuestVariables = list315; reference244 = obj210; - ref QuestStep reference246 = ref span122[2]; + index2++; + ref QuestStep reference246 = ref span312[index2]; QuestStep obj211 = new QuestStep(EInteractionType.Interact, 1024301u, new Vector3(-11.886841f, 3.194641f, -622.88855f), 613) { Fly = true @@ -188451,39 +227315,50 @@ public static class AssemblyQuestLoader num3 = 6; List> list317 = new List>(num3); CollectionsMarshal.SetCount(list317, num3); - Span> span127 = CollectionsMarshal.AsSpan(list317); - span127[0] = null; - span127[1] = null; - ref List reference247 = ref span127[2]; - num4 = 2; - List list318 = new List(num4); - CollectionsMarshal.SetCount(list318, num4); - Span span128 = CollectionsMarshal.AsSpan(list318); - span128[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span128[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + Span> span317 = CollectionsMarshal.AsSpan(list317); + index3 = 0; + span317[index3] = null; + index3++; + span317[index3] = null; + index3++; + ref List reference247 = ref span317[index3]; + num5 = 2; + List list318 = new List(num5); + CollectionsMarshal.SetCount(list318, num5); + Span span318 = CollectionsMarshal.AsSpan(list318); + num4 = 0; + span318[num4] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span318[num4] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); reference247 = list318; - span127[3] = null; - span127[4] = null; - span127[5] = null; + index3++; + span317[index3] = null; + index3++; + span317[index3] = null; + index3++; + span317[index3] = null; obj211.RequiredQuestVariables = list317; reference246 = obj211; obj208.Steps = list312; reference241 = obj208; - ref QuestSequence reference248 = ref span121[3]; + num++; + ref QuestSequence reference248 = ref span309[num]; QuestSequence obj212 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - Span span129 = CollectionsMarshal.AsSpan(list319); - span129[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + index2 = 2; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + Span span319 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + span319[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span129[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span319[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj212.Steps = list319; reference248 = obj212; questRoot31.QuestSequence = list309; @@ -188493,13 +227368,16 @@ public static class AssemblyQuestLoader num = 1; List list320 = new List(num); CollectionsMarshal.SetCount(list320, num); - CollectionsMarshal.AsSpan(list320)[0] = "plogon_enjoyer"; + Span span320 = CollectionsMarshal.AsSpan(list320); + index = 0; + span320[index] = "plogon_enjoyer"; questRoot32.Author = list320; - num = 4; - List list321 = new List(num); - CollectionsMarshal.SetCount(list321, num); - Span span130 = CollectionsMarshal.AsSpan(list321); - ref QuestSequence reference249 = ref span130[0]; + index = 4; + List list321 = new List(index); + CollectionsMarshal.SetCount(list321, index); + Span span321 = CollectionsMarshal.AsSpan(list321); + num = 0; + ref QuestSequence reference249 = ref span321[num]; QuestSequence obj213 = new QuestSequence { Sequence = 0 @@ -188507,46 +227385,60 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + Span span322 = CollectionsMarshal.AsSpan(list322); + index2 = 0; + span322[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj213.Steps = list322; reference249 = obj213; - ref QuestSequence reference250 = ref span130[1]; + num++; + ref QuestSequence reference250 = ref span321[num]; QuestSequence obj214 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - Span span131 = CollectionsMarshal.AsSpan(list323); - span131[0] = new QuestStep(EInteractionType.None, null, null, 613) + index2 = 4; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + Span span323 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span323[num2] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - ref QuestStep reference251 = ref span131[1]; + num2++; + ref QuestStep reference251 = ref span323[num2]; QuestStep obj215 = new QuestStep(EInteractionType.UseItem, 2009104u, new Vector3(399.89307f, -0.10687256f, -347.21906f), 613) { Fly = true, ItemId = 2002405u }; - num3 = 6; - List> list324 = new List>(num3); - CollectionsMarshal.SetCount(list324, num3); - Span> span132 = CollectionsMarshal.AsSpan(list324); - span132[0] = null; - span132[1] = null; - ref List reference252 = ref span132[2]; + index3 = 6; + List> list324 = new List>(index3); + CollectionsMarshal.SetCount(list324, index3); + Span> span324 = CollectionsMarshal.AsSpan(list324); + num3 = 0; + span324[num3] = null; + num3++; + span324[num3] = null; + num3++; + ref List reference252 = ref span324[num3]; num4 = 1; List list325 = new List(num4); CollectionsMarshal.SetCount(list325, num4); - CollectionsMarshal.AsSpan(list325)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span325 = CollectionsMarshal.AsSpan(list325); + num5 = 0; + span325[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference252 = list325; - span132[3] = null; - span132[4] = null; - span132[5] = null; + num3++; + span324[num3] = null; + num3++; + span324[num3] = null; + num3++; + span324[num3] = null; obj215.RequiredQuestVariables = list324; reference251 = obj215; - ref QuestStep reference253 = ref span131[2]; + num2++; + ref QuestStep reference253 = ref span323[num2]; QuestStep obj216 = new QuestStep(EInteractionType.UseItem, 2009103u, new Vector3(187.24341f, -0.10687256f, -477.71423f), 613) { Fly = true, @@ -188555,46 +227447,64 @@ public static class AssemblyQuestLoader num3 = 6; List> list326 = new List>(num3); CollectionsMarshal.SetCount(list326, num3); - Span> span133 = CollectionsMarshal.AsSpan(list326); - span133[0] = null; - span133[1] = null; - ref List reference254 = ref span133[2]; - num4 = 1; - List list327 = new List(num4); - CollectionsMarshal.SetCount(list327, num4); - CollectionsMarshal.AsSpan(list327)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span> span326 = CollectionsMarshal.AsSpan(list326); + index3 = 0; + span326[index3] = null; + index3++; + span326[index3] = null; + index3++; + ref List reference254 = ref span326[index3]; + num5 = 1; + List list327 = new List(num5); + CollectionsMarshal.SetCount(list327, num5); + Span span327 = CollectionsMarshal.AsSpan(list327); + num4 = 0; + span327[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference254 = list327; - span133[3] = null; - span133[4] = null; - span133[5] = null; + index3++; + span326[index3] = null; + index3++; + span326[index3] = null; + index3++; + span326[index3] = null; obj216.RequiredQuestVariables = list326; reference253 = obj216; - ref QuestStep reference255 = ref span131[3]; + num2++; + ref QuestStep reference255 = ref span323[num2]; QuestStep obj217 = new QuestStep(EInteractionType.UseItem, 2009102u, new Vector3(379.07983f, -0.07635498f, -494.31604f), 613) { Fly = true, ItemId = 2002405u }; - num3 = 6; - List> list328 = new List>(num3); - CollectionsMarshal.SetCount(list328, num3); - Span> span134 = CollectionsMarshal.AsSpan(list328); - span134[0] = null; - span134[1] = null; - ref List reference256 = ref span134[2]; + index3 = 6; + List> list328 = new List>(index3); + CollectionsMarshal.SetCount(list328, index3); + Span> span328 = CollectionsMarshal.AsSpan(list328); + num3 = 0; + span328[num3] = null; + num3++; + span328[num3] = null; + num3++; + ref List reference256 = ref span328[num3]; num4 = 1; List list329 = new List(num4); CollectionsMarshal.SetCount(list329, num4); - CollectionsMarshal.AsSpan(list329)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + Span span329 = CollectionsMarshal.AsSpan(list329); + num5 = 0; + span329[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference256 = list329; - span134[3] = null; - span134[4] = null; - span134[5] = null; + num3++; + span328[num3] = null; + num3++; + span328[num3] = null; + num3++; + span328[num3] = null; obj217.RequiredQuestVariables = list328; reference255 = obj217; obj214.Steps = list323; reference250 = obj214; - ref QuestSequence reference257 = ref span130[2]; + num++; + ref QuestSequence reference257 = ref span321[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 @@ -188602,27 +227512,32 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) + Span span330 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span330[index2] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; obj218.Steps = list330; reference257 = obj218; - ref QuestSequence reference258 = ref span130[3]; + num++; + ref QuestSequence reference258 = ref span321[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - Span span135 = CollectionsMarshal.AsSpan(list331); - span135[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + index2 = 2; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + Span span331 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + span331[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true }; - span135[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span331[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj219.Steps = list331; reference258 = obj219; questRoot32.QuestSequence = list321; @@ -188632,13 +227547,16 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - CollectionsMarshal.AsSpan(list332)[0] = "plogon_enjoyer"; + Span span332 = CollectionsMarshal.AsSpan(list332); + index = 0; + span332[index] = "plogon_enjoyer"; questRoot33.Author = list332; - num = 3; - List list333 = new List(num); - CollectionsMarshal.SetCount(list333, num); - Span span136 = CollectionsMarshal.AsSpan(list333); - ref QuestSequence reference259 = ref span136[0]; + index = 3; + List list333 = new List(index); + CollectionsMarshal.SetCount(list333, index); + Span span333 = CollectionsMarshal.AsSpan(list333); + num = 0; + ref QuestSequence reference259 = ref span333[num]; QuestSequence obj220 = new QuestSequence { Sequence = 0 @@ -188646,19 +227564,23 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + Span span334 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span334[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj220.Steps = list334; reference259 = obj220; - ref QuestSequence reference260 = ref span136[1]; + num++; + ref QuestSequence reference260 = ref span333[num]; QuestSequence obj221 = new QuestSequence { Sequence = 1 }; - num2 = 10; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - Span span137 = CollectionsMarshal.AsSpan(list335); - span137[0] = new QuestStep(EInteractionType.None, null, null, 613) + index2 = 10; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + Span span335 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + span335[num2] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -188667,7 +227589,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - ref QuestStep reference261 = ref span137[1]; + num2++; + ref QuestStep reference261 = ref span335[num2]; QuestStep obj222 = new QuestStep(EInteractionType.Combat, 2009161u, new Vector3(52.262085f, 18.844849f, 576.43994f), 613) { Fly = true, @@ -188676,26 +227599,37 @@ public static class AssemblyQuestLoader num3 = 1; List list336 = new List(num3); CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = 8238u; + Span span336 = CollectionsMarshal.AsSpan(list336); + index3 = 0; + span336[index3] = 8238u; obj222.KillEnemyDataIds = list336; - num3 = 6; - List> list337 = new List>(num3); - CollectionsMarshal.SetCount(list337, num3); - Span> span138 = CollectionsMarshal.AsSpan(list337); - span138[0] = null; - span138[1] = null; - ref List reference262 = ref span138[2]; - num4 = 1; - List list338 = new List(num4); - CollectionsMarshal.SetCount(list338, num4); - CollectionsMarshal.AsSpan(list338)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list337 = new List>(index3); + CollectionsMarshal.SetCount(list337, index3); + Span> span337 = CollectionsMarshal.AsSpan(list337); + num3 = 0; + span337[num3] = null; + num3++; + span337[num3] = null; + num3++; + ref List reference262 = ref span337[num3]; + num5 = 1; + List list338 = new List(num5); + CollectionsMarshal.SetCount(list338, num5); + Span span338 = CollectionsMarshal.AsSpan(list338); + num4 = 0; + span338[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference262 = list338; - span138[3] = null; - span138[4] = null; - span138[5] = null; + num3++; + span337[num3] = null; + num3++; + span337[num3] = null; + num3++; + span337[num3] = null; obj222.RequiredQuestVariables = list337; reference261 = obj222; - ref QuestStep reference263 = ref span137[2]; + num2++; + ref QuestStep reference263 = ref span335[num2]; QuestStep obj223 = new QuestStep(EInteractionType.Combat, null, new Vector3(52.262085f, 18.844849f, 576.43994f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -188703,26 +227637,37 @@ public static class AssemblyQuestLoader num3 = 1; List list339 = new List(num3); CollectionsMarshal.SetCount(list339, num3); - CollectionsMarshal.AsSpan(list339)[0] = 8239u; + Span span339 = CollectionsMarshal.AsSpan(list339); + index3 = 0; + span339[index3] = 8239u; obj223.KillEnemyDataIds = list339; - num3 = 6; - List> list340 = new List>(num3); - CollectionsMarshal.SetCount(list340, num3); - Span> span139 = CollectionsMarshal.AsSpan(list340); - span139[0] = null; - span139[1] = null; - ref List reference264 = ref span139[2]; + index3 = 6; + List> list340 = new List>(index3); + CollectionsMarshal.SetCount(list340, index3); + Span> span340 = CollectionsMarshal.AsSpan(list340); + num3 = 0; + span340[num3] = null; + num3++; + span340[num3] = null; + num3++; + ref List reference264 = ref span340[num3]; num4 = 1; List list341 = new List(num4); CollectionsMarshal.SetCount(list341, num4); - CollectionsMarshal.AsSpan(list341)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span341 = CollectionsMarshal.AsSpan(list341); + num5 = 0; + span341[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference264 = list341; - span139[3] = null; - span139[4] = null; - span139[5] = null; + num3++; + span340[num3] = null; + num3++; + span340[num3] = null; + num3++; + span340[num3] = null; obj223.RequiredQuestVariables = list340; reference263 = obj223; - ref QuestStep reference265 = ref span137[3]; + num2++; + ref QuestStep reference265 = ref span335[num2]; QuestStep obj224 = new QuestStep(EInteractionType.Combat, null, new Vector3(52.262085f, 18.844849f, 576.43994f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -188730,26 +227675,37 @@ public static class AssemblyQuestLoader num3 = 1; List list342 = new List(num3); CollectionsMarshal.SetCount(list342, num3); - CollectionsMarshal.AsSpan(list342)[0] = 8240u; + Span span342 = CollectionsMarshal.AsSpan(list342); + index3 = 0; + span342[index3] = 8240u; obj224.KillEnemyDataIds = list342; - num3 = 6; - List> list343 = new List>(num3); - CollectionsMarshal.SetCount(list343, num3); - Span> span140 = CollectionsMarshal.AsSpan(list343); - span140[0] = null; - span140[1] = null; - ref List reference266 = ref span140[2]; - num4 = 1; - List list344 = new List(num4); - CollectionsMarshal.SetCount(list344, num4); - CollectionsMarshal.AsSpan(list344)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list343 = new List>(index3); + CollectionsMarshal.SetCount(list343, index3); + Span> span343 = CollectionsMarshal.AsSpan(list343); + num3 = 0; + span343[num3] = null; + num3++; + span343[num3] = null; + num3++; + ref List reference266 = ref span343[num3]; + num5 = 1; + List list344 = new List(num5); + CollectionsMarshal.SetCount(list344, num5); + Span span344 = CollectionsMarshal.AsSpan(list344); + num4 = 0; + span344[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference266 = list344; - span140[3] = null; - span140[4] = null; - span140[5] = null; + num3++; + span343[num3] = null; + num3++; + span343[num3] = null; + num3++; + span343[num3] = null; obj224.RequiredQuestVariables = list343; reference265 = obj224; - ref QuestStep reference267 = ref span137[4]; + num2++; + ref QuestStep reference267 = ref span335[num2]; QuestStep obj225 = new QuestStep(EInteractionType.Combat, 2009162u, new Vector3(29.587158f, 51.407593f, 771.35876f), 613) { Fly = true, @@ -188758,26 +227714,37 @@ public static class AssemblyQuestLoader num3 = 1; List list345 = new List(num3); CollectionsMarshal.SetCount(list345, num3); - CollectionsMarshal.AsSpan(list345)[0] = 8238u; + Span span345 = CollectionsMarshal.AsSpan(list345); + index3 = 0; + span345[index3] = 8238u; obj225.KillEnemyDataIds = list345; - num3 = 6; - List> list346 = new List>(num3); - CollectionsMarshal.SetCount(list346, num3); - Span> span141 = CollectionsMarshal.AsSpan(list346); - span141[0] = null; - span141[1] = null; - ref List reference268 = ref span141[2]; + index3 = 6; + List> list346 = new List>(index3); + CollectionsMarshal.SetCount(list346, index3); + Span> span346 = CollectionsMarshal.AsSpan(list346); + num3 = 0; + span346[num3] = null; + num3++; + span346[num3] = null; + num3++; + ref List reference268 = ref span346[num3]; num4 = 1; List list347 = new List(num4); CollectionsMarshal.SetCount(list347, num4); - CollectionsMarshal.AsSpan(list347)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span347 = CollectionsMarshal.AsSpan(list347); + num5 = 0; + span347[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference268 = list347; - span141[3] = null; - span141[4] = null; - span141[5] = null; + num3++; + span346[num3] = null; + num3++; + span346[num3] = null; + num3++; + span346[num3] = null; obj225.RequiredQuestVariables = list346; reference267 = obj225; - ref QuestStep reference269 = ref span137[5]; + num2++; + ref QuestStep reference269 = ref span335[num2]; QuestStep obj226 = new QuestStep(EInteractionType.Combat, null, new Vector3(29.587158f, 51.407593f, 771.35876f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -188785,26 +227752,37 @@ public static class AssemblyQuestLoader num3 = 1; List list348 = new List(num3); CollectionsMarshal.SetCount(list348, num3); - CollectionsMarshal.AsSpan(list348)[0] = 8239u; + Span span348 = CollectionsMarshal.AsSpan(list348); + index3 = 0; + span348[index3] = 8239u; obj226.KillEnemyDataIds = list348; - num3 = 6; - List> list349 = new List>(num3); - CollectionsMarshal.SetCount(list349, num3); - Span> span142 = CollectionsMarshal.AsSpan(list349); - span142[0] = null; - span142[1] = null; - ref List reference270 = ref span142[2]; - num4 = 1; - List list350 = new List(num4); - CollectionsMarshal.SetCount(list350, num4); - CollectionsMarshal.AsSpan(list350)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list349 = new List>(index3); + CollectionsMarshal.SetCount(list349, index3); + Span> span349 = CollectionsMarshal.AsSpan(list349); + num3 = 0; + span349[num3] = null; + num3++; + span349[num3] = null; + num3++; + ref List reference270 = ref span349[num3]; + num5 = 1; + List list350 = new List(num5); + CollectionsMarshal.SetCount(list350, num5); + Span span350 = CollectionsMarshal.AsSpan(list350); + num4 = 0; + span350[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference270 = list350; - span142[3] = null; - span142[4] = null; - span142[5] = null; + num3++; + span349[num3] = null; + num3++; + span349[num3] = null; + num3++; + span349[num3] = null; obj226.RequiredQuestVariables = list349; reference269 = obj226; - ref QuestStep reference271 = ref span137[6]; + num2++; + ref QuestStep reference271 = ref span335[num2]; QuestStep obj227 = new QuestStep(EInteractionType.Combat, null, new Vector3(29.587158f, 51.407593f, 771.35876f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -188812,26 +227790,37 @@ public static class AssemblyQuestLoader num3 = 1; List list351 = new List(num3); CollectionsMarshal.SetCount(list351, num3); - CollectionsMarshal.AsSpan(list351)[0] = 8240u; + Span span351 = CollectionsMarshal.AsSpan(list351); + index3 = 0; + span351[index3] = 8240u; obj227.KillEnemyDataIds = list351; - num3 = 6; - List> list352 = new List>(num3); - CollectionsMarshal.SetCount(list352, num3); - Span> span143 = CollectionsMarshal.AsSpan(list352); - span143[0] = null; - span143[1] = null; - ref List reference272 = ref span143[2]; + index3 = 6; + List> list352 = new List>(index3); + CollectionsMarshal.SetCount(list352, index3); + Span> span352 = CollectionsMarshal.AsSpan(list352); + num3 = 0; + span352[num3] = null; + num3++; + span352[num3] = null; + num3++; + ref List reference272 = ref span352[num3]; num4 = 1; List list353 = new List(num4); CollectionsMarshal.SetCount(list353, num4); - CollectionsMarshal.AsSpan(list353)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span353 = CollectionsMarshal.AsSpan(list353); + num5 = 0; + span353[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference272 = list353; - span143[3] = null; - span143[4] = null; - span143[5] = null; + num3++; + span352[num3] = null; + num3++; + span352[num3] = null; + num3++; + span352[num3] = null; obj227.RequiredQuestVariables = list352; reference271 = obj227; - ref QuestStep reference273 = ref span137[7]; + num2++; + ref QuestStep reference273 = ref span335[num2]; QuestStep obj228 = new QuestStep(EInteractionType.Combat, 2009163u, new Vector3(337.84998f, 5.8136597f, 685.26733f), 613) { Fly = true, @@ -188840,26 +227829,37 @@ public static class AssemblyQuestLoader num3 = 1; List list354 = new List(num3); CollectionsMarshal.SetCount(list354, num3); - CollectionsMarshal.AsSpan(list354)[0] = 8238u; + Span span354 = CollectionsMarshal.AsSpan(list354); + index3 = 0; + span354[index3] = 8238u; obj228.KillEnemyDataIds = list354; - num3 = 6; - List> list355 = new List>(num3); - CollectionsMarshal.SetCount(list355, num3); - Span> span144 = CollectionsMarshal.AsSpan(list355); - span144[0] = null; - span144[1] = null; - ref List reference274 = ref span144[2]; - num4 = 1; - List list356 = new List(num4); - CollectionsMarshal.SetCount(list356, num4); - CollectionsMarshal.AsSpan(list356)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list355 = new List>(index3); + CollectionsMarshal.SetCount(list355, index3); + Span> span355 = CollectionsMarshal.AsSpan(list355); + num3 = 0; + span355[num3] = null; + num3++; + span355[num3] = null; + num3++; + ref List reference274 = ref span355[num3]; + num5 = 1; + List list356 = new List(num5); + CollectionsMarshal.SetCount(list356, num5); + Span span356 = CollectionsMarshal.AsSpan(list356); + num4 = 0; + span356[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference274 = list356; - span144[3] = null; - span144[4] = null; - span144[5] = null; + num3++; + span355[num3] = null; + num3++; + span355[num3] = null; + num3++; + span355[num3] = null; obj228.RequiredQuestVariables = list355; reference273 = obj228; - ref QuestStep reference275 = ref span137[8]; + num2++; + ref QuestStep reference275 = ref span335[num2]; QuestStep obj229 = new QuestStep(EInteractionType.Combat, null, new Vector3(337.84998f, 5.8136597f, 685.26733f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -188867,26 +227867,37 @@ public static class AssemblyQuestLoader num3 = 1; List list357 = new List(num3); CollectionsMarshal.SetCount(list357, num3); - CollectionsMarshal.AsSpan(list357)[0] = 8239u; + Span span357 = CollectionsMarshal.AsSpan(list357); + index3 = 0; + span357[index3] = 8239u; obj229.KillEnemyDataIds = list357; - num3 = 6; - List> list358 = new List>(num3); - CollectionsMarshal.SetCount(list358, num3); - Span> span145 = CollectionsMarshal.AsSpan(list358); - span145[0] = null; - span145[1] = null; - ref List reference276 = ref span145[2]; + index3 = 6; + List> list358 = new List>(index3); + CollectionsMarshal.SetCount(list358, index3); + Span> span358 = CollectionsMarshal.AsSpan(list358); + num3 = 0; + span358[num3] = null; + num3++; + span358[num3] = null; + num3++; + ref List reference276 = ref span358[num3]; num4 = 1; List list359 = new List(num4); CollectionsMarshal.SetCount(list359, num4); - CollectionsMarshal.AsSpan(list359)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + Span span359 = CollectionsMarshal.AsSpan(list359); + num5 = 0; + span359[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference276 = list359; - span145[3] = null; - span145[4] = null; - span145[5] = null; + num3++; + span358[num3] = null; + num3++; + span358[num3] = null; + num3++; + span358[num3] = null; obj229.RequiredQuestVariables = list358; reference275 = obj229; - ref QuestStep reference277 = ref span137[9]; + num2++; + ref QuestStep reference277 = ref span335[num2]; QuestStep obj230 = new QuestStep(EInteractionType.Combat, null, new Vector3(337.84998f, 5.8136597f, 685.26733f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -188894,28 +227905,39 @@ public static class AssemblyQuestLoader num3 = 1; List list360 = new List(num3); CollectionsMarshal.SetCount(list360, num3); - CollectionsMarshal.AsSpan(list360)[0] = 8240u; + Span span360 = CollectionsMarshal.AsSpan(list360); + index3 = 0; + span360[index3] = 8240u; obj230.KillEnemyDataIds = list360; - num3 = 6; - List> list361 = new List>(num3); - CollectionsMarshal.SetCount(list361, num3); - Span> span146 = CollectionsMarshal.AsSpan(list361); - span146[0] = null; - span146[1] = null; - ref List reference278 = ref span146[2]; - num4 = 1; - List list362 = new List(num4); - CollectionsMarshal.SetCount(list362, num4); - CollectionsMarshal.AsSpan(list362)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list361 = new List>(index3); + CollectionsMarshal.SetCount(list361, index3); + Span> span361 = CollectionsMarshal.AsSpan(list361); + num3 = 0; + span361[num3] = null; + num3++; + span361[num3] = null; + num3++; + ref List reference278 = ref span361[num3]; + num5 = 1; + List list362 = new List(num5); + CollectionsMarshal.SetCount(list362, num5); + Span span362 = CollectionsMarshal.AsSpan(list362); + num4 = 0; + span362[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference278 = list362; - span146[3] = null; - span146[4] = null; - span146[5] = null; + num3++; + span361[num3] = null; + num3++; + span361[num3] = null; + num3++; + span361[num3] = null; obj230.RequiredQuestVariables = list361; reference277 = obj230; obj221.Steps = list335; reference260 = obj221; - ref QuestSequence reference279 = ref span136[2]; + num++; + ref QuestSequence reference279 = ref span333[num]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue @@ -188923,13 +227945,15 @@ public static class AssemblyQuestLoader num2 = 2; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - Span span147 = CollectionsMarshal.AsSpan(list363); - span147[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + Span span363 = CollectionsMarshal.AsSpan(list363); + index2 = 0; + span363[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span147[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span363[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj231.Steps = list363; reference279 = obj231; questRoot33.QuestSequence = list333; @@ -188939,24 +227963,30 @@ public static class AssemblyQuestLoader num = 1; List list364 = new List(num); CollectionsMarshal.SetCount(list364, num); - CollectionsMarshal.AsSpan(list364)[0] = "plogon_enjoyer"; + Span span364 = CollectionsMarshal.AsSpan(list364); + index = 0; + span364[index] = "plogon_enjoyer"; questRoot34.Author = list364; - num = 4; - List list365 = new List(num); - CollectionsMarshal.SetCount(list365, num); - Span span148 = CollectionsMarshal.AsSpan(list365); - ref QuestSequence reference280 = ref span148[0]; + index = 4; + List list365 = new List(index); + CollectionsMarshal.SetCount(list365, index); + Span span365 = CollectionsMarshal.AsSpan(list365); + num = 0; + ref QuestSequence reference280 = ref span365[num]; QuestSequence obj232 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + Span span366 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + span366[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj232.Steps = list366; reference280 = obj232; - ref QuestSequence reference281 = ref span148[1]; + num++; + ref QuestSequence reference281 = ref span365[num]; QuestSequence obj233 = new QuestSequence { Sequence = 1 @@ -188964,27 +227994,32 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) + Span span367 = CollectionsMarshal.AsSpan(list367); + index2 = 0; + span367[index2] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) { Fly = true }; obj233.Steps = list367; reference281 = obj233; - ref QuestSequence reference282 = ref span148[2]; + num++; + ref QuestSequence reference282 = ref span365[num]; QuestSequence obj234 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list368 = new List(num2); - CollectionsMarshal.SetCount(list368, num2); - Span span149 = CollectionsMarshal.AsSpan(list368); - span149[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.45865f, -121.24298f, -314.65158f), 613) + index2 = 6; + List list368 = new List(index2); + CollectionsMarshal.SetCount(list368, index2); + Span span368 = CollectionsMarshal.AsSpan(list368); + num2 = 0; + span368[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.45865f, -121.24298f, -314.65158f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - ref QuestStep reference283 = ref span149[1]; + num2++; + ref QuestStep reference283 = ref span368[num2]; QuestStep obj235 = new QuestStep(EInteractionType.Action, 2009109u, new Vector3(239.18518f, -74.99817f, -464.95764f), 613) { Fly = true, @@ -188993,52 +228028,74 @@ public static class AssemblyQuestLoader num3 = 6; List> list369 = new List>(num3); CollectionsMarshal.SetCount(list369, num3); - Span> span150 = CollectionsMarshal.AsSpan(list369); - span150[0] = null; - span150[1] = null; - span150[2] = null; - ref List reference284 = ref span150[3]; + Span> span369 = CollectionsMarshal.AsSpan(list369); + index3 = 0; + span369[index3] = null; + index3++; + span369[index3] = null; + index3++; + span369[index3] = null; + index3++; + ref List reference284 = ref span369[index3]; num4 = 4; List list370 = new List(num4); CollectionsMarshal.SetCount(list370, num4); - Span span151 = CollectionsMarshal.AsSpan(list370); - span151[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span151[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span151[2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span151[3] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + Span span370 = CollectionsMarshal.AsSpan(list370); + num5 = 0; + span370[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span370[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num5++; + span370[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5++; + span370[num5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference284 = list370; - span150[4] = null; - span150[5] = null; + index3++; + span369[index3] = null; + index3++; + span369[index3] = null; obj235.RequiredQuestVariables = list369; reference283 = obj235; - ref QuestStep reference285 = ref span149[2]; + num2++; + ref QuestStep reference285 = ref span368[num2]; QuestStep obj236 = new QuestStep(EInteractionType.Action, 2009108u, new Vector3(286.33557f, -74.60144f, -499.01584f), 613) { Fly = true, Action = EAction.Inhale }; - num3 = 6; - List> list371 = new List>(num3); - CollectionsMarshal.SetCount(list371, num3); - Span> span152 = CollectionsMarshal.AsSpan(list371); - span152[0] = null; - span152[1] = null; - span152[2] = null; - ref List reference286 = ref span152[3]; - num4 = 4; - List list372 = new List(num4); - CollectionsMarshal.SetCount(list372, num4); - Span span153 = CollectionsMarshal.AsSpan(list372); - span153[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span153[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span153[2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span153[3] = new QuestWorkValue((byte)10, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list371 = new List>(index3); + CollectionsMarshal.SetCount(list371, index3); + Span> span371 = CollectionsMarshal.AsSpan(list371); + num3 = 0; + span371[num3] = null; + num3++; + span371[num3] = null; + num3++; + span371[num3] = null; + num3++; + ref List reference286 = ref span371[num3]; + num5 = 4; + List list372 = new List(num5); + CollectionsMarshal.SetCount(list372, num5); + Span span372 = CollectionsMarshal.AsSpan(list372); + num4 = 0; + span372[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4++; + span372[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num4++; + span372[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4++; + span372[num4] = new QuestWorkValue((byte)10, 0, EQuestWorkMode.Bitwise); reference286 = list372; - span152[4] = null; - span152[5] = null; + num3++; + span371[num3] = null; + num3++; + span371[num3] = null; obj236.RequiredQuestVariables = list371; reference285 = obj236; - ref QuestStep reference287 = ref span149[3]; + num2++; + ref QuestStep reference287 = ref span368[num2]; QuestStep obj237 = new QuestStep(EInteractionType.Action, 2009106u, new Vector3(539.2385f, -56.26001f, -364.88904f), 613) { Fly = true, @@ -189047,51 +228104,72 @@ public static class AssemblyQuestLoader num3 = 6; List> list373 = new List>(num3); CollectionsMarshal.SetCount(list373, num3); - Span> span154 = CollectionsMarshal.AsSpan(list373); - span154[0] = null; - span154[1] = null; - span154[2] = null; - ref List reference288 = ref span154[3]; + Span> span373 = CollectionsMarshal.AsSpan(list373); + index3 = 0; + span373[index3] = null; + index3++; + span373[index3] = null; + index3++; + span373[index3] = null; + index3++; + ref List reference288 = ref span373[index3]; num4 = 3; List list374 = new List(num4); CollectionsMarshal.SetCount(list374, num4); - Span span155 = CollectionsMarshal.AsSpan(list374); - span155[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span155[1] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span155[2] = new QuestWorkValue((byte)10, 0, EQuestWorkMode.Bitwise); + Span span374 = CollectionsMarshal.AsSpan(list374); + num5 = 0; + span374[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span374[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5++; + span374[num5] = new QuestWorkValue((byte)10, 0, EQuestWorkMode.Bitwise); reference288 = list374; - span154[4] = null; - span154[5] = null; + index3++; + span373[index3] = null; + index3++; + span373[index3] = null; obj237.RequiredQuestVariables = list373; reference287 = obj237; - ref QuestStep reference289 = ref span149[4]; + num2++; + ref QuestStep reference289 = ref span368[num2]; QuestStep obj238 = new QuestStep(EInteractionType.Action, 2009107u, new Vector3(560.14343f, -75.547424f, -410.81866f), 613) { Fly = true, Action = EAction.Inhale }; - num3 = 6; - List> list375 = new List>(num3); - CollectionsMarshal.SetCount(list375, num3); - Span> span156 = CollectionsMarshal.AsSpan(list375); - span156[0] = null; - span156[1] = null; - span156[2] = null; - ref List reference290 = ref span156[3]; - num4 = 4; - List list376 = new List(num4); - CollectionsMarshal.SetCount(list376, num4); - Span span157 = CollectionsMarshal.AsSpan(list376); - span157[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span157[1] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span157[2] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); - span157[3] = new QuestWorkValue((byte)10, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list375 = new List>(index3); + CollectionsMarshal.SetCount(list375, index3); + Span> span375 = CollectionsMarshal.AsSpan(list375); + num3 = 0; + span375[num3] = null; + num3++; + span375[num3] = null; + num3++; + span375[num3] = null; + num3++; + ref List reference290 = ref span375[num3]; + num5 = 4; + List list376 = new List(num5); + CollectionsMarshal.SetCount(list376, num5); + Span span376 = CollectionsMarshal.AsSpan(list376); + num4 = 0; + span376[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num4++; + span376[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4++; + span376[num4] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + num4++; + span376[num4] = new QuestWorkValue((byte)10, 0, EQuestWorkMode.Bitwise); reference290 = list376; - span156[4] = null; - span156[5] = null; + num3++; + span375[num3] = null; + num3++; + span375[num3] = null; obj238.RequiredQuestVariables = list375; reference289 = obj238; - ref QuestStep reference291 = ref span149[5]; + num2++; + ref QuestStep reference291 = ref span368[num2]; QuestStep obj239 = new QuestStep(EInteractionType.Action, 2009105u, new Vector3(613.94666f, -74.57086f, -400.04578f), 613) { Fly = true, @@ -189100,26 +228178,36 @@ public static class AssemblyQuestLoader num3 = 6; List> list377 = new List>(num3); CollectionsMarshal.SetCount(list377, num3); - Span> span158 = CollectionsMarshal.AsSpan(list377); - span158[0] = null; - span158[1] = null; - span158[2] = null; - ref List reference292 = ref span158[3]; + Span> span377 = CollectionsMarshal.AsSpan(list377); + index3 = 0; + span377[index3] = null; + index3++; + span377[index3] = null; + index3++; + span377[index3] = null; + index3++; + ref List reference292 = ref span377[index3]; num4 = 3; List list378 = new List(num4); CollectionsMarshal.SetCount(list378, num4); - Span span159 = CollectionsMarshal.AsSpan(list378); - span159[0] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span159[1] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span159[2] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + Span span378 = CollectionsMarshal.AsSpan(list378); + num5 = 0; + span378[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5++; + span378[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5++; + span378[num5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference292 = list378; - span158[4] = null; - span158[5] = null; + index3++; + span377[index3] = null; + index3++; + span377[index3] = null; obj239.RequiredQuestVariables = list377; reference291 = obj239; obj234.Steps = list368; reference282 = obj234; - ref QuestSequence reference293 = ref span148[3]; + num++; + ref QuestSequence reference293 = ref span365[num]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue @@ -189127,13 +228215,15 @@ public static class AssemblyQuestLoader num2 = 2; List list379 = new List(num2); CollectionsMarshal.SetCount(list379, num2); - Span span160 = CollectionsMarshal.AsSpan(list379); - span160[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + Span span379 = CollectionsMarshal.AsSpan(list379); + index2 = 0; + span379[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span160[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span379[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj240.Steps = list379; reference293 = obj240; questRoot34.QuestSequence = list365; @@ -189143,24 +228233,30 @@ public static class AssemblyQuestLoader num = 1; List list380 = new List(num); CollectionsMarshal.SetCount(list380, num); - CollectionsMarshal.AsSpan(list380)[0] = "plogon_enjoyer"; + Span span380 = CollectionsMarshal.AsSpan(list380); + index = 0; + span380[index] = "plogon_enjoyer"; questRoot35.Author = list380; - num = 3; - List list381 = new List(num); - CollectionsMarshal.SetCount(list381, num); - Span span161 = CollectionsMarshal.AsSpan(list381); - ref QuestSequence reference294 = ref span161[0]; + index = 3; + List list381 = new List(index); + CollectionsMarshal.SetCount(list381, index); + Span span381 = CollectionsMarshal.AsSpan(list381); + num = 0; + ref QuestSequence reference294 = ref span381[num]; QuestSequence obj241 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list382 = new List(num2); - CollectionsMarshal.SetCount(list382, num2); - CollectionsMarshal.AsSpan(list382)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list382 = new List(index2); + CollectionsMarshal.SetCount(list382, index2); + Span span382 = CollectionsMarshal.AsSpan(list382); + num2 = 0; + span382[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj241.Steps = list382; reference294 = obj241; - ref QuestSequence reference295 = ref span161[1]; + num++; + ref QuestSequence reference295 = ref span381[num]; QuestSequence obj242 = new QuestSequence { Sequence = 1 @@ -189168,33 +228264,38 @@ public static class AssemblyQuestLoader num2 = 2; List list383 = new List(num2); CollectionsMarshal.SetCount(list383, num2); - Span span162 = CollectionsMarshal.AsSpan(list383); - span162[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(314.92435f, -78.61959f, -226.5322f), 613) + Span span383 = CollectionsMarshal.AsSpan(list383); + index2 = 0; + span383[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(314.92435f, -78.61959f, -226.5322f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - span162[1] = new QuestStep(EInteractionType.Interact, 1024307u, new Vector3(29.617676f, -86.167725f, -26.962769f), 613) + index2++; + span383[index2] = new QuestStep(EInteractionType.Interact, 1024307u, new Vector3(29.617676f, -86.167725f, -26.962769f), 613) { Fly = true }; obj242.Steps = list383; reference295 = obj242; - ref QuestSequence reference296 = ref span161[2]; + num++; + ref QuestSequence reference296 = ref span381[num]; QuestSequence obj243 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list384 = new List(num2); - CollectionsMarshal.SetCount(list384, num2); - Span span163 = CollectionsMarshal.AsSpan(list384); - span163[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + index2 = 2; + List list384 = new List(index2); + CollectionsMarshal.SetCount(list384, index2); + Span span384 = CollectionsMarshal.AsSpan(list384); + num2 = 0; + span384[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span163[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span384[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj243.Steps = list384; reference296 = obj243; questRoot35.QuestSequence = list381; @@ -189204,13 +228305,16 @@ public static class AssemblyQuestLoader num = 1; List list385 = new List(num); CollectionsMarshal.SetCount(list385, num); - CollectionsMarshal.AsSpan(list385)[0] = "plogon_enjoyer"; + Span span385 = CollectionsMarshal.AsSpan(list385); + index = 0; + span385[index] = "plogon_enjoyer"; questRoot36.Author = list385; - num = 3; - List list386 = new List(num); - CollectionsMarshal.SetCount(list386, num); - Span span164 = CollectionsMarshal.AsSpan(list386); - ref QuestSequence reference297 = ref span164[0]; + index = 3; + List list386 = new List(index); + CollectionsMarshal.SetCount(list386, index); + Span span386 = CollectionsMarshal.AsSpan(list386); + num = 0; + ref QuestSequence reference297 = ref span386[num]; QuestSequence obj244 = new QuestSequence { Sequence = 0 @@ -189218,47 +228322,61 @@ public static class AssemblyQuestLoader num2 = 1; List list387 = new List(num2); CollectionsMarshal.SetCount(list387, num2); - CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + Span span387 = CollectionsMarshal.AsSpan(list387); + index2 = 0; + span387[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj244.Steps = list387; reference297 = obj244; - ref QuestSequence reference298 = ref span164[1]; + num++; + ref QuestSequence reference298 = ref span386[num]; QuestSequence obj245 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list388 = new List(num2); - CollectionsMarshal.SetCount(list388, num2); - Span span165 = CollectionsMarshal.AsSpan(list388); - span165[0] = new QuestStep(EInteractionType.None, null, null, 613) + index2 = 7; + List list388 = new List(index2); + CollectionsMarshal.SetCount(list388, index2); + Span span388 = CollectionsMarshal.AsSpan(list388); + num2 = 0; + span388[num2] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - ref QuestStep reference299 = ref span165[1]; + num2++; + ref QuestStep reference299 = ref span388[num2]; QuestStep obj246 = new QuestStep(EInteractionType.Interact, 2009114u, new Vector3(558.5259f, -0.015319824f, -516.92993f), 613) { Fly = true }; - num3 = 6; - List> list389 = new List>(num3); - CollectionsMarshal.SetCount(list389, num3); - Span> span166 = CollectionsMarshal.AsSpan(list389); - span166[0] = null; - span166[1] = null; - span166[2] = null; - span166[3] = null; - ref List reference300 = ref span166[4]; - num4 = 2; - List list390 = new List(num4); - CollectionsMarshal.SetCount(list390, num4); - Span span167 = CollectionsMarshal.AsSpan(list390); - span167[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span167[1] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + index3 = 6; + List> list389 = new List>(index3); + CollectionsMarshal.SetCount(list389, index3); + Span> span389 = CollectionsMarshal.AsSpan(list389); + num3 = 0; + span389[num3] = null; + num3++; + span389[num3] = null; + num3++; + span389[num3] = null; + num3++; + span389[num3] = null; + num3++; + ref List reference300 = ref span389[num3]; + num5 = 2; + List list390 = new List(num5); + CollectionsMarshal.SetCount(list390, num5); + Span span390 = CollectionsMarshal.AsSpan(list390); + num4 = 0; + span390[num4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span390[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference300 = list390; - span166[5] = null; + num3++; + span389[num3] = null; obj246.RequiredQuestVariables = list389; reference299 = obj246; - ref QuestStep reference301 = ref span165[2]; + num2++; + ref QuestStep reference301 = ref span388[num2]; QuestStep obj247 = new QuestStep(EInteractionType.Combat, 2009116u, new Vector3(558.5259f, -0.015319824f, -516.92993f), 613) { Fly = true, @@ -189267,29 +228385,41 @@ public static class AssemblyQuestLoader num3 = 1; List list391 = new List(num3); CollectionsMarshal.SetCount(list391, num3); - CollectionsMarshal.AsSpan(list391)[0] = 8241u; + Span span391 = CollectionsMarshal.AsSpan(list391); + index3 = 0; + span391[index3] = 8241u; obj247.KillEnemyDataIds = list391; - num3 = 6; - List> list392 = new List>(num3); - CollectionsMarshal.SetCount(list392, num3); - Span> span168 = CollectionsMarshal.AsSpan(list392); - span168[0] = null; - span168[1] = null; - span168[2] = null; - span168[3] = null; - ref List reference302 = ref span168[4]; + index3 = 6; + List> list392 = new List>(index3); + CollectionsMarshal.SetCount(list392, index3); + Span> span392 = CollectionsMarshal.AsSpan(list392); + num3 = 0; + span392[num3] = null; + num3++; + span392[num3] = null; + num3++; + span392[num3] = null; + num3++; + span392[num3] = null; + num3++; + ref List reference302 = ref span392[num3]; num4 = 3; List list393 = new List(num4); CollectionsMarshal.SetCount(list393, num4); - Span span169 = CollectionsMarshal.AsSpan(list393); - span169[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span169[1] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span169[2] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + Span span393 = CollectionsMarshal.AsSpan(list393); + num5 = 0; + span393[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span393[num5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span393[num5] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference302 = list393; - span168[5] = null; + num3++; + span392[num3] = null; obj247.RequiredQuestVariables = list392; reference301 = obj247; - ref QuestStep reference303 = ref span165[3]; + num2++; + ref QuestStep reference303 = ref span388[num2]; QuestStep obj248 = new QuestStep(EInteractionType.Interact, 2009113u, new Vector3(633.1731f, -0.015319824f, -497.79507f), 613) { Fly = true @@ -189297,79 +228427,110 @@ public static class AssemblyQuestLoader num3 = 6; List> list394 = new List>(num3); CollectionsMarshal.SetCount(list394, num3); - Span> span170 = CollectionsMarshal.AsSpan(list394); - span170[0] = null; - span170[1] = null; - span170[2] = null; - span170[3] = null; - ref List reference304 = ref span170[4]; - num4 = 2; - List list395 = new List(num4); - CollectionsMarshal.SetCount(list395, num4); - Span span171 = CollectionsMarshal.AsSpan(list395); - span171[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span171[1] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + Span> span394 = CollectionsMarshal.AsSpan(list394); + index3 = 0; + span394[index3] = null; + index3++; + span394[index3] = null; + index3++; + span394[index3] = null; + index3++; + span394[index3] = null; + index3++; + ref List reference304 = ref span394[index3]; + num5 = 2; + List list395 = new List(num5); + CollectionsMarshal.SetCount(list395, num5); + Span span395 = CollectionsMarshal.AsSpan(list395); + num4 = 0; + span395[num4] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span395[num4] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); reference304 = list395; - span170[5] = null; + index3++; + span394[index3] = null; obj248.RequiredQuestVariables = list394; reference303 = obj248; - ref QuestStep reference305 = ref span165[4]; + num2++; + ref QuestStep reference305 = ref span388[num2]; QuestStep obj249 = new QuestStep(EInteractionType.Combat, 2009111u, new Vector3(633.1731f, -0.015319824f, -497.79507f), 613) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list396 = new List(num3); - CollectionsMarshal.SetCount(list396, num3); - CollectionsMarshal.AsSpan(list396)[0] = 8241u; + index3 = 1; + List list396 = new List(index3); + CollectionsMarshal.SetCount(list396, index3); + Span span396 = CollectionsMarshal.AsSpan(list396); + num3 = 0; + span396[num3] = 8241u; obj249.KillEnemyDataIds = list396; num3 = 6; List> list397 = new List>(num3); CollectionsMarshal.SetCount(list397, num3); - Span> span172 = CollectionsMarshal.AsSpan(list397); - span172[0] = null; - span172[1] = null; - span172[2] = null; - span172[3] = null; - ref List reference306 = ref span172[4]; + Span> span397 = CollectionsMarshal.AsSpan(list397); + index3 = 0; + span397[index3] = null; + index3++; + span397[index3] = null; + index3++; + span397[index3] = null; + index3++; + span397[index3] = null; + index3++; + ref List reference306 = ref span397[index3]; num4 = 3; List list398 = new List(num4); CollectionsMarshal.SetCount(list398, num4); - Span span173 = CollectionsMarshal.AsSpan(list398); - span173[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span173[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); - span173[2] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); + Span span398 = CollectionsMarshal.AsSpan(list398); + num5 = 0; + span398[num5] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span398[num5] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span398[num5] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); reference306 = list398; - span172[5] = null; + index3++; + span397[index3] = null; obj249.RequiredQuestVariables = list397; reference305 = obj249; - ref QuestStep reference307 = ref span165[5]; + num2++; + ref QuestStep reference307 = ref span388[num2]; QuestStep obj250 = new QuestStep(EInteractionType.Interact, 2009110u, new Vector3(694.08704f, -0.015319824f, -611.017f), 613) { Fly = true }; - num3 = 6; - List> list399 = new List>(num3); - CollectionsMarshal.SetCount(list399, num3); - Span> span174 = CollectionsMarshal.AsSpan(list399); - span174[0] = null; - span174[1] = null; - span174[2] = null; - span174[3] = null; - ref List reference308 = ref span174[4]; - num4 = 3; - List list400 = new List(num4); - CollectionsMarshal.SetCount(list400, num4); - Span span175 = CollectionsMarshal.AsSpan(list400); - span175[0] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span175[1] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); - span175[2] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); + index3 = 6; + List> list399 = new List>(index3); + CollectionsMarshal.SetCount(list399, index3); + Span> span399 = CollectionsMarshal.AsSpan(list399); + num3 = 0; + span399[num3] = null; + num3++; + span399[num3] = null; + num3++; + span399[num3] = null; + num3++; + span399[num3] = null; + num3++; + ref List reference308 = ref span399[num3]; + num5 = 3; + List list400 = new List(num5); + CollectionsMarshal.SetCount(list400, num5); + Span span400 = CollectionsMarshal.AsSpan(list400); + num4 = 0; + span400[num4] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span400[num4] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span400[num4] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); reference308 = list400; - span174[5] = null; + num3++; + span399[num3] = null; obj250.RequiredQuestVariables = list399; reference307 = obj250; - ref QuestStep reference309 = ref span165[6]; + num2++; + ref QuestStep reference309 = ref span388[num2]; QuestStep obj251 = new QuestStep(EInteractionType.Combat, 2009117u, new Vector3(694.08704f, -0.015319824f, -611.017f), 613) { Fly = true, @@ -189378,30 +228539,41 @@ public static class AssemblyQuestLoader num3 = 1; List list401 = new List(num3); CollectionsMarshal.SetCount(list401, num3); - CollectionsMarshal.AsSpan(list401)[0] = 8241u; + Span span401 = CollectionsMarshal.AsSpan(list401); + index3 = 0; + span401[index3] = 8241u; obj251.KillEnemyDataIds = list401; - num3 = 6; - List> list402 = new List>(num3); - CollectionsMarshal.SetCount(list402, num3); - Span> span176 = CollectionsMarshal.AsSpan(list402); - span176[0] = null; - span176[1] = null; - span176[2] = null; - span176[3] = null; - ref List reference310 = ref span176[4]; + index3 = 6; + List> list402 = new List>(index3); + CollectionsMarshal.SetCount(list402, index3); + Span> span402 = CollectionsMarshal.AsSpan(list402); + num3 = 0; + span402[num3] = null; + num3++; + span402[num3] = null; + num3++; + span402[num3] = null; + num3++; + span402[num3] = null; + num3++; + ref List reference310 = ref span402[num3]; num4 = 2; List list403 = new List(num4); CollectionsMarshal.SetCount(list403, num4); - Span span177 = CollectionsMarshal.AsSpan(list403); - span177[0] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); - span177[1] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + Span span403 = CollectionsMarshal.AsSpan(list403); + num5 = 0; + span403[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span403[num5] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); reference310 = list403; - span176[5] = null; + num3++; + span402[num3] = null; obj251.RequiredQuestVariables = list402; reference309 = obj251; obj245.Steps = list388; reference298 = obj245; - ref QuestSequence reference311 = ref span164[2]; + num++; + ref QuestSequence reference311 = ref span386[num]; QuestSequence obj252 = new QuestSequence { Sequence = byte.MaxValue @@ -189409,13 +228581,15 @@ public static class AssemblyQuestLoader num2 = 2; List list404 = new List(num2); CollectionsMarshal.SetCount(list404, num2); - Span span178 = CollectionsMarshal.AsSpan(list404); - span178[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + Span span404 = CollectionsMarshal.AsSpan(list404); + index2 = 0; + span404[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span178[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span404[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj252.Steps = list404; reference311 = obj252; questRoot36.QuestSequence = list386; @@ -189425,24 +228599,30 @@ public static class AssemblyQuestLoader num = 1; List list405 = new List(num); CollectionsMarshal.SetCount(list405, num); - CollectionsMarshal.AsSpan(list405)[0] = "plogon_enjoyer"; + Span span405 = CollectionsMarshal.AsSpan(list405); + index = 0; + span405[index] = "plogon_enjoyer"; questRoot37.Author = list405; - num = 3; - List list406 = new List(num); - CollectionsMarshal.SetCount(list406, num); - Span span179 = CollectionsMarshal.AsSpan(list406); - ref QuestSequence reference312 = ref span179[0]; + index = 3; + List list406 = new List(index); + CollectionsMarshal.SetCount(list406, index); + Span span406 = CollectionsMarshal.AsSpan(list406); + num = 0; + ref QuestSequence reference312 = ref span406[num]; QuestSequence obj253 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list407 = new List(num2); - CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list407 = new List(index2); + CollectionsMarshal.SetCount(list407, index2); + Span span407 = CollectionsMarshal.AsSpan(list407); + num2 = 0; + span407[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj253.Steps = list407; reference312 = obj253; - ref QuestSequence reference313 = ref span179[1]; + num++; + ref QuestSequence reference313 = ref span406[num]; QuestSequence obj254 = new QuestSequence { Sequence = 1 @@ -189450,12 +228630,14 @@ public static class AssemblyQuestLoader num2 = 7; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - Span span180 = CollectionsMarshal.AsSpan(list408); - span180[0] = new QuestStep(EInteractionType.None, null, null, 613) + Span span408 = CollectionsMarshal.AsSpan(list408); + index2 = 0; + span408[index2] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - ref QuestStep reference314 = ref span180[1]; + index2++; + ref QuestStep reference314 = ref span408[index2]; QuestStep obj255 = new QuestStep(EInteractionType.Interact, 1024310u, new Vector3(-795.0103f, 21.373795f, -466.20892f), 613) { Fly = true @@ -189463,46 +228645,65 @@ public static class AssemblyQuestLoader num3 = 6; List> list409 = new List>(num3); CollectionsMarshal.SetCount(list409, num3); - Span> span181 = CollectionsMarshal.AsSpan(list409); - span181[0] = null; - span181[1] = null; - span181[2] = null; - span181[3] = null; - ref List reference315 = ref span181[4]; - num4 = 1; - List list410 = new List(num4); - CollectionsMarshal.SetCount(list410, num4); - CollectionsMarshal.AsSpan(list410)[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + Span> span409 = CollectionsMarshal.AsSpan(list409); + index3 = 0; + span409[index3] = null; + index3++; + span409[index3] = null; + index3++; + span409[index3] = null; + index3++; + span409[index3] = null; + index3++; + ref List reference315 = ref span409[index3]; + num5 = 1; + List list410 = new List(num5); + CollectionsMarshal.SetCount(list410, num5); + Span span410 = CollectionsMarshal.AsSpan(list410); + num4 = 0; + span410[num4] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); reference315 = list410; - span181[5] = null; + index3++; + span409[index3] = null; obj255.RequiredQuestVariables = list409; reference314 = obj255; - ref QuestStep reference316 = ref span180[2]; + index2++; + ref QuestStep reference316 = ref span408[index2]; QuestStep obj256 = new QuestStep(EInteractionType.Interact, 1024311u, new Vector3(-750.39294f, 1.6679686f, -479.33167f), 613) { Fly = true }; - num3 = 6; - List> list411 = new List>(num3); - CollectionsMarshal.SetCount(list411, num3); - Span> span182 = CollectionsMarshal.AsSpan(list411); - span182[0] = null; - span182[1] = null; - span182[2] = null; - span182[3] = null; - ref List reference317 = ref span182[4]; + index3 = 6; + List> list411 = new List>(index3); + CollectionsMarshal.SetCount(list411, index3); + Span> span411 = CollectionsMarshal.AsSpan(list411); + num3 = 0; + span411[num3] = null; + num3++; + span411[num3] = null; + num3++; + span411[num3] = null; + num3++; + span411[num3] = null; + num3++; + ref List reference317 = ref span411[num3]; num4 = 3; List list412 = new List(num4); CollectionsMarshal.SetCount(list412, num4); - Span span183 = CollectionsMarshal.AsSpan(list412); - span183[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span183[1] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span183[2] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + Span span412 = CollectionsMarshal.AsSpan(list412); + num5 = 0; + span412[num5] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span412[num5] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span412[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); reference317 = list412; - span182[5] = null; + num3++; + span411[num3] = null; obj256.RequiredQuestVariables = list411; reference316 = obj256; - ref QuestStep reference318 = ref span180[3]; + index2++; + ref QuestStep reference318 = ref span408[index2]; QuestStep obj257 = new QuestStep(EInteractionType.Interact, 1024312u, new Vector3(-792.08057f, 8.039127f, -444.419f), 613) { Fly = true @@ -189510,47 +228711,65 @@ public static class AssemblyQuestLoader num3 = 6; List> list413 = new List>(num3); CollectionsMarshal.SetCount(list413, num3); - Span> span184 = CollectionsMarshal.AsSpan(list413); - span184[0] = null; - span184[1] = null; - span184[2] = null; - span184[3] = null; - ref List reference319 = ref span184[4]; - num4 = 2; - List list414 = new List(num4); - CollectionsMarshal.SetCount(list414, num4); - Span span185 = CollectionsMarshal.AsSpan(list414); - span185[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span185[1] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + Span> span413 = CollectionsMarshal.AsSpan(list413); + index3 = 0; + span413[index3] = null; + index3++; + span413[index3] = null; + index3++; + span413[index3] = null; + index3++; + span413[index3] = null; + index3++; + ref List reference319 = ref span413[index3]; + num5 = 2; + List list414 = new List(num5); + CollectionsMarshal.SetCount(list414, num5); + Span span414 = CollectionsMarshal.AsSpan(list414); + num4 = 0; + span414[num4] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span414[num4] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); reference319 = list414; - span184[5] = null; + index3++; + span413[index3] = null; obj257.RequiredQuestVariables = list413; reference318 = obj257; - ref QuestStep reference320 = ref span180[4]; + index2++; + ref QuestStep reference320 = ref span408[index2]; QuestStep obj258 = new QuestStep(EInteractionType.Interact, 1024313u, new Vector3(-764.12604f, 4.763445f, -441.51984f), 613) { Fly = true }; - num3 = 6; - List> list415 = new List>(num3); - CollectionsMarshal.SetCount(list415, num3); - Span> span186 = CollectionsMarshal.AsSpan(list415); - span186[0] = null; - span186[1] = null; - span186[2] = null; - span186[3] = null; - ref List reference321 = ref span186[4]; + index3 = 6; + List> list415 = new List>(index3); + CollectionsMarshal.SetCount(list415, index3); + Span> span415 = CollectionsMarshal.AsSpan(list415); + num3 = 0; + span415[num3] = null; + num3++; + span415[num3] = null; + num3++; + span415[num3] = null; + num3++; + span415[num3] = null; + num3++; + ref List reference321 = ref span415[num3]; num4 = 2; List list416 = new List(num4); CollectionsMarshal.SetCount(list416, num4); - Span span187 = CollectionsMarshal.AsSpan(list416); - span187[0] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span187[1] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + Span span416 = CollectionsMarshal.AsSpan(list416); + num5 = 0; + span416[num5] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span416[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); reference321 = list416; - span186[5] = null; + num3++; + span415[num3] = null; obj258.RequiredQuestVariables = list415; reference320 = obj258; - ref QuestStep reference322 = ref span180[5]; + index2++; + ref QuestStep reference322 = ref span408[index2]; QuestStep obj259 = new QuestStep(EInteractionType.Interact, 1024314u, new Vector3(-784.48157f, 7.7091823f, -456.9925f), 613) { Fly = true @@ -189558,63 +228777,83 @@ public static class AssemblyQuestLoader num3 = 6; List> list417 = new List>(num3); CollectionsMarshal.SetCount(list417, num3); - Span> span188 = CollectionsMarshal.AsSpan(list417); - span188[0] = null; - span188[1] = null; - span188[2] = null; - span188[3] = null; - ref List reference323 = ref span188[4]; - num4 = 2; - List list418 = new List(num4); - CollectionsMarshal.SetCount(list418, num4); - Span span189 = CollectionsMarshal.AsSpan(list418); - span189[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span189[1] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + Span> span417 = CollectionsMarshal.AsSpan(list417); + index3 = 0; + span417[index3] = null; + index3++; + span417[index3] = null; + index3++; + span417[index3] = null; + index3++; + span417[index3] = null; + index3++; + ref List reference323 = ref span417[index3]; + num5 = 2; + List list418 = new List(num5); + CollectionsMarshal.SetCount(list418, num5); + Span span418 = CollectionsMarshal.AsSpan(list418); + num4 = 0; + span418[num4] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span418[num4] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); reference323 = list418; - span188[5] = null; + index3++; + span417[index3] = null; obj259.RequiredQuestVariables = list417; reference322 = obj259; - ref QuestStep reference324 = ref span180[6]; + index2++; + ref QuestStep reference324 = ref span408[index2]; QuestStep obj260 = new QuestStep(EInteractionType.Interact, 1024315u, new Vector3(-797.4823f, 8.045045f, -417.56317f), 613) { Fly = true }; - num3 = 6; - List> list419 = new List>(num3); - CollectionsMarshal.SetCount(list419, num3); - Span> span190 = CollectionsMarshal.AsSpan(list419); - span190[0] = null; - span190[1] = null; - span190[2] = null; - span190[3] = null; - ref List reference325 = ref span190[4]; + index3 = 6; + List> list419 = new List>(index3); + CollectionsMarshal.SetCount(list419, index3); + Span> span419 = CollectionsMarshal.AsSpan(list419); + num3 = 0; + span419[num3] = null; + num3++; + span419[num3] = null; + num3++; + span419[num3] = null; + num3++; + span419[num3] = null; + num3++; + ref List reference325 = ref span419[num3]; num4 = 2; List list420 = new List(num4); CollectionsMarshal.SetCount(list420, num4); - Span span191 = CollectionsMarshal.AsSpan(list420); - span191[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span191[1] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + Span span420 = CollectionsMarshal.AsSpan(list420); + num5 = 0; + span420[num5] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span420[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); reference325 = list420; - span190[5] = null; + num3++; + span419[num3] = null; obj260.RequiredQuestVariables = list419; reference324 = obj260; obj254.Steps = list408; reference313 = obj254; - ref QuestSequence reference326 = ref span179[2]; + num++; + ref QuestSequence reference326 = ref span406[num]; QuestSequence obj261 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list421 = new List(num2); - CollectionsMarshal.SetCount(list421, num2); - Span span192 = CollectionsMarshal.AsSpan(list421); - span192[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + index2 = 2; + List list421 = new List(index2); + CollectionsMarshal.SetCount(list421, index2); + Span span421 = CollectionsMarshal.AsSpan(list421); + num2 = 0; + span421[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span192[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span421[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj261.Steps = list421; reference326 = obj261; questRoot37.QuestSequence = list406; @@ -189624,13 +228863,16 @@ public static class AssemblyQuestLoader num = 1; List list422 = new List(num); CollectionsMarshal.SetCount(list422, num); - CollectionsMarshal.AsSpan(list422)[0] = "plogon_enjoyer"; + Span span422 = CollectionsMarshal.AsSpan(list422); + index = 0; + span422[index] = "plogon_enjoyer"; questRoot38.Author = list422; - num = 3; - List list423 = new List(num); - CollectionsMarshal.SetCount(list423, num); - Span span193 = CollectionsMarshal.AsSpan(list423); - ref QuestSequence reference327 = ref span193[0]; + index = 3; + List list423 = new List(index); + CollectionsMarshal.SetCount(list423, index); + Span span423 = CollectionsMarshal.AsSpan(list423); + num = 0; + ref QuestSequence reference327 = ref span423[num]; QuestSequence obj262 = new QuestSequence { Sequence = 0 @@ -189638,24 +228880,29 @@ public static class AssemblyQuestLoader num2 = 1; List list424 = new List(num2); CollectionsMarshal.SetCount(list424, num2); - CollectionsMarshal.AsSpan(list424)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + Span span424 = CollectionsMarshal.AsSpan(list424); + index2 = 0; + span424[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj262.Steps = list424; reference327 = obj262; - ref QuestSequence reference328 = ref span193[1]; + num++; + ref QuestSequence reference328 = ref span423[num]; QuestSequence obj263 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list425 = new List(num2); - CollectionsMarshal.SetCount(list425, num2); - Span span194 = CollectionsMarshal.AsSpan(list425); - span194[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.03552f, -82.86303f, -227.4517f), 613) + index2 = 6; + List list425 = new List(index2); + CollectionsMarshal.SetCount(list425, index2); + Span span425 = CollectionsMarshal.AsSpan(list425); + num2 = 0; + span425[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.03552f, -82.86303f, -227.4517f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - ref QuestStep reference329 = ref span194[1]; + num2++; + ref QuestStep reference329 = ref span425[num2]; QuestStep obj264 = new QuestStep(EInteractionType.Interact, 2009119u, new Vector3(-229.26678f, -308.73578f, 449.485f), 613) { Fly = true @@ -189663,43 +228910,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list426 = new List>(num3); CollectionsMarshal.SetCount(list426, num3); - Span> span195 = CollectionsMarshal.AsSpan(list426); - span195[0] = null; - ref List reference330 = ref span195[1]; - num4 = 1; - List list427 = new List(num4); - CollectionsMarshal.SetCount(list427, num4); - CollectionsMarshal.AsSpan(list427)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + Span> span426 = CollectionsMarshal.AsSpan(list426); + index3 = 0; + span426[index3] = null; + index3++; + ref List reference330 = ref span426[index3]; + num5 = 1; + List list427 = new List(num5); + CollectionsMarshal.SetCount(list427, num5); + Span span427 = CollectionsMarshal.AsSpan(list427); + num4 = 0; + span427[num4] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference330 = list427; - span195[2] = null; - span195[3] = null; - span195[4] = null; - span195[5] = null; + index3++; + span426[index3] = null; + index3++; + span426[index3] = null; + index3++; + span426[index3] = null; + index3++; + span426[index3] = null; obj264.RequiredQuestVariables = list426; reference329 = obj264; - ref QuestStep reference331 = ref span194[2]; + num2++; + ref QuestStep reference331 = ref span425[num2]; QuestStep obj265 = new QuestStep(EInteractionType.Interact, 2009120u, new Vector3(-233.9361f, -411.3985f, 372.8236f), 613) { Fly = true }; - num3 = 6; - List> list428 = new List>(num3); - CollectionsMarshal.SetCount(list428, num3); - Span> span196 = CollectionsMarshal.AsSpan(list428); - span196[0] = null; - ref List reference332 = ref span196[1]; + index3 = 6; + List> list428 = new List>(index3); + CollectionsMarshal.SetCount(list428, index3); + Span> span428 = CollectionsMarshal.AsSpan(list428); + num3 = 0; + span428[num3] = null; + num3++; + ref List reference332 = ref span428[num3]; num4 = 1; List list429 = new List(num4); CollectionsMarshal.SetCount(list429, num4); - CollectionsMarshal.AsSpan(list429)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span span429 = CollectionsMarshal.AsSpan(list429); + num5 = 0; + span429[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference332 = list429; - span196[2] = null; - span196[3] = null; - span196[4] = null; - span196[5] = null; + num3++; + span428[num3] = null; + num3++; + span428[num3] = null; + num3++; + span428[num3] = null; + num3++; + span428[num3] = null; obj265.RequiredQuestVariables = list428; reference331 = obj265; - ref QuestStep reference333 = ref span194[3]; + num2++; + ref QuestStep reference333 = ref span425[num2]; QuestStep obj266 = new QuestStep(EInteractionType.Interact, 2009121u, new Vector3(-279.62158f, -366.81165f, 408.68237f), 613) { Fly = true @@ -189707,45 +228972,63 @@ public static class AssemblyQuestLoader num3 = 6; List> list430 = new List>(num3); CollectionsMarshal.SetCount(list430, num3); - Span> span197 = CollectionsMarshal.AsSpan(list430); - span197[0] = null; - ref List reference334 = ref span197[1]; - num4 = 2; - List list431 = new List(num4); - CollectionsMarshal.SetCount(list431, num4); - Span span198 = CollectionsMarshal.AsSpan(list431); - span198[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span198[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + Span> span430 = CollectionsMarshal.AsSpan(list430); + index3 = 0; + span430[index3] = null; + index3++; + ref List reference334 = ref span430[index3]; + num5 = 2; + List list431 = new List(num5); + CollectionsMarshal.SetCount(list431, num5); + Span span431 = CollectionsMarshal.AsSpan(list431); + num4 = 0; + span431[num4] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span431[num4] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); reference334 = list431; - span197[2] = null; - span197[3] = null; - span197[4] = null; - span197[5] = null; + index3++; + span430[index3] = null; + index3++; + span430[index3] = null; + index3++; + span430[index3] = null; + index3++; + span430[index3] = null; obj266.RequiredQuestVariables = list430; reference333 = obj266; - ref QuestStep reference335 = ref span194[4]; + num2++; + ref QuestStep reference335 = ref span425[num2]; QuestStep obj267 = new QuestStep(EInteractionType.Interact, 2009122u, new Vector3(-286.09143f, -367.422f, 390.2494f), 613) { Fly = true }; - num3 = 6; - List> list432 = new List>(num3); - CollectionsMarshal.SetCount(list432, num3); - Span> span199 = CollectionsMarshal.AsSpan(list432); - span199[0] = null; - ref List reference336 = ref span199[1]; + index3 = 6; + List> list432 = new List>(index3); + CollectionsMarshal.SetCount(list432, index3); + Span> span432 = CollectionsMarshal.AsSpan(list432); + num3 = 0; + span432[num3] = null; + num3++; + ref List reference336 = ref span432[num3]; num4 = 1; List list433 = new List(num4); CollectionsMarshal.SetCount(list433, num4); - CollectionsMarshal.AsSpan(list433)[0] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + Span span433 = CollectionsMarshal.AsSpan(list433); + num5 = 0; + span433[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); reference336 = list433; - span199[2] = null; - span199[3] = null; - span199[4] = null; - span199[5] = null; + num3++; + span432[num3] = null; + num3++; + span432[num3] = null; + num3++; + span432[num3] = null; + num3++; + span432[num3] = null; obj267.RequiredQuestVariables = list432; reference335 = obj267; - ref QuestStep reference337 = ref span194[5]; + num2++; + ref QuestStep reference337 = ref span425[num2]; QuestStep obj268 = new QuestStep(EInteractionType.Interact, 2009123u, new Vector3(-249.59192f, -325.948f, 472.70923f), 613) { Fly = true @@ -189753,23 +229036,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list434 = new List>(num3); CollectionsMarshal.SetCount(list434, num3); - Span> span200 = CollectionsMarshal.AsSpan(list434); - span200[0] = null; - ref List reference338 = ref span200[1]; - num4 = 1; - List list435 = new List(num4); - CollectionsMarshal.SetCount(list435, num4); - CollectionsMarshal.AsSpan(list435)[0] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + Span> span434 = CollectionsMarshal.AsSpan(list434); + index3 = 0; + span434[index3] = null; + index3++; + ref List reference338 = ref span434[index3]; + num5 = 1; + List list435 = new List(num5); + CollectionsMarshal.SetCount(list435, num5); + Span span435 = CollectionsMarshal.AsSpan(list435); + num4 = 0; + span435[num4] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); reference338 = list435; - span200[2] = null; - span200[3] = null; - span200[4] = null; - span200[5] = null; + index3++; + span434[index3] = null; + index3++; + span434[index3] = null; + index3++; + span434[index3] = null; + index3++; + span434[index3] = null; obj268.RequiredQuestVariables = list434; reference337 = obj268; obj263.Steps = list425; reference328 = obj263; - ref QuestSequence reference339 = ref span193[2]; + num++; + ref QuestSequence reference339 = ref span423[num]; QuestSequence obj269 = new QuestSequence { Sequence = byte.MaxValue @@ -189777,13 +229069,15 @@ public static class AssemblyQuestLoader num2 = 2; List list436 = new List(num2); CollectionsMarshal.SetCount(list436, num2); - Span span201 = CollectionsMarshal.AsSpan(list436); - span201[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) + Span span436 = CollectionsMarshal.AsSpan(list436); + index2 = 0; + span436[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span201[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span436[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj269.Steps = list436; reference339 = obj269; questRoot38.QuestSequence = list423; @@ -189793,24 +229087,30 @@ public static class AssemblyQuestLoader num = 1; List list437 = new List(num); CollectionsMarshal.SetCount(list437, num); - CollectionsMarshal.AsSpan(list437)[0] = "plogon_enjoyer"; + Span span437 = CollectionsMarshal.AsSpan(list437); + index = 0; + span437[index] = "plogon_enjoyer"; questRoot39.Author = list437; - num = 5; - List list438 = new List(num); - CollectionsMarshal.SetCount(list438, num); - Span span202 = CollectionsMarshal.AsSpan(list438); - ref QuestSequence reference340 = ref span202[0]; + index = 5; + List list438 = new List(index); + CollectionsMarshal.SetCount(list438, index); + Span span438 = CollectionsMarshal.AsSpan(list438); + num = 0; + ref QuestSequence reference340 = ref span438[num]; QuestSequence obj270 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list439 = new List(num2); - CollectionsMarshal.SetCount(list439, num2); - CollectionsMarshal.AsSpan(list439)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list439 = new List(index2); + CollectionsMarshal.SetCount(list439, index2); + Span span439 = CollectionsMarshal.AsSpan(list439); + num2 = 0; + span439[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj270.Steps = list439; reference340 = obj270; - ref QuestSequence reference341 = ref span202[1]; + num++; + ref QuestSequence reference341 = ref span438[num]; QuestSequence obj271 = new QuestSequence { Sequence = 1 @@ -189818,48 +229118,62 @@ public static class AssemblyQuestLoader num2 = 1; List list440 = new List(num2); CollectionsMarshal.SetCount(list440, num2); - CollectionsMarshal.AsSpan(list440)[0] = new QuestStep(EInteractionType.Interact, 1024316u, new Vector3(714.9614f, -0.3f, 140.3982f), 613) + Span span440 = CollectionsMarshal.AsSpan(list440); + index2 = 0; + span440[index2] = new QuestStep(EInteractionType.Interact, 1024316u, new Vector3(714.9614f, -0.3f, 140.3982f), 613) { Fly = true }; obj271.Steps = list440; reference341 = obj271; - ref QuestSequence reference342 = ref span202[2]; + num++; + ref QuestSequence reference342 = ref span438[num]; QuestSequence obj272 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list441 = new List(num2); - CollectionsMarshal.SetCount(list441, num2); - Span span203 = CollectionsMarshal.AsSpan(list441); - ref QuestStep reference343 = ref span203[0]; + index2 = 5; + List list441 = new List(index2); + CollectionsMarshal.SetCount(list441, index2); + Span span441 = CollectionsMarshal.AsSpan(list441); + num2 = 0; + ref QuestStep reference343 = ref span441[num2]; QuestStep obj273 = new QuestStep(EInteractionType.UseItem, 2009124u, new Vector3(753.56665f, 0.41192627f, 121.72119f), 613) { Fly = true, ItemId = 2002414u }; - num3 = 6; - List> list442 = new List>(num3); - CollectionsMarshal.SetCount(list442, num3); - Span> span204 = CollectionsMarshal.AsSpan(list442); - span204[0] = null; - span204[1] = null; - span204[2] = null; - ref List reference344 = ref span204[3]; + index3 = 6; + List> list442 = new List>(index3); + CollectionsMarshal.SetCount(list442, index3); + Span> span442 = CollectionsMarshal.AsSpan(list442); + num3 = 0; + span442[num3] = null; + num3++; + span442[num3] = null; + num3++; + span442[num3] = null; + num3++; + ref List reference344 = ref span442[num3]; num4 = 3; List list443 = new List(num4); CollectionsMarshal.SetCount(list443, num4); - Span span205 = CollectionsMarshal.AsSpan(list443); - span205[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span205[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); - span205[2] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + Span span443 = CollectionsMarshal.AsSpan(list443); + num5 = 0; + span443[num5] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span443[num5] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span443[num5] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); reference344 = list443; - span204[4] = null; - span204[5] = null; + num3++; + span442[num3] = null; + num3++; + span442[num3] = null; obj273.RequiredQuestVariables = list442; reference343 = obj273; - ref QuestStep reference345 = ref span203[1]; + num2++; + ref QuestStep reference345 = ref span441[num2]; QuestStep obj274 = new QuestStep(EInteractionType.UseItem, 2009126u, new Vector3(745.41846f, 0.16778564f, 95.750244f), 613) { Fly = true, @@ -189868,46 +229182,64 @@ public static class AssemblyQuestLoader num3 = 6; List> list444 = new List>(num3); CollectionsMarshal.SetCount(list444, num3); - Span> span206 = CollectionsMarshal.AsSpan(list444); - span206[0] = null; - span206[1] = null; - span206[2] = null; - ref List reference346 = ref span206[3]; - num4 = 1; - List list445 = new List(num4); - CollectionsMarshal.SetCount(list445, num4); - CollectionsMarshal.AsSpan(list445)[0] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + Span> span444 = CollectionsMarshal.AsSpan(list444); + index3 = 0; + span444[index3] = null; + index3++; + span444[index3] = null; + index3++; + span444[index3] = null; + index3++; + ref List reference346 = ref span444[index3]; + num5 = 1; + List list445 = new List(num5); + CollectionsMarshal.SetCount(list445, num5); + Span span445 = CollectionsMarshal.AsSpan(list445); + num4 = 0; + span445[num4] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); reference346 = list445; - span206[4] = null; - span206[5] = null; + index3++; + span444[index3] = null; + index3++; + span444[index3] = null; obj274.RequiredQuestVariables = list444; reference345 = obj274; - ref QuestStep reference347 = ref span203[2]; + num2++; + ref QuestStep reference347 = ref span441[num2]; QuestStep obj275 = new QuestStep(EInteractionType.UseItem, 2009127u, new Vector3(745.44885f, 0.16778564f, 95.78088f), 613) { Fly = true, ItemId = 2002414u }; - num3 = 6; - List> list446 = new List>(num3); - CollectionsMarshal.SetCount(list446, num3); - Span> span207 = CollectionsMarshal.AsSpan(list446); - span207[0] = null; - span207[1] = null; - span207[2] = null; - ref List reference348 = ref span207[3]; + index3 = 6; + List> list446 = new List>(index3); + CollectionsMarshal.SetCount(list446, index3); + Span> span446 = CollectionsMarshal.AsSpan(list446); + num3 = 0; + span446[num3] = null; + num3++; + span446[num3] = null; + num3++; + span446[num3] = null; + num3++; + ref List reference348 = ref span446[num3]; num4 = 2; List list447 = new List(num4); CollectionsMarshal.SetCount(list447, num4); - Span span208 = CollectionsMarshal.AsSpan(list447); - span208[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span208[1] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + Span span447 = CollectionsMarshal.AsSpan(list447); + num5 = 0; + span447[num5] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span447[num5] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); reference348 = list447; - span207[4] = null; - span207[5] = null; + num3++; + span446[num3] = null; + num3++; + span446[num3] = null; obj275.RequiredQuestVariables = list446; reference347 = obj275; - ref QuestStep reference349 = ref span203[3]; + num2++; + ref QuestStep reference349 = ref span441[num2]; QuestStep obj276 = new QuestStep(EInteractionType.UseItem, 2009128u, new Vector3(777.1571f, 1.2054443f, 110.36853f), 613) { Fly = true, @@ -189916,48 +229248,66 @@ public static class AssemblyQuestLoader num3 = 6; List> list448 = new List>(num3); CollectionsMarshal.SetCount(list448, num3); - Span> span209 = CollectionsMarshal.AsSpan(list448); - span209[0] = null; - span209[1] = null; - span209[2] = null; - ref List reference350 = ref span209[3]; - num4 = 2; - List list449 = new List(num4); - CollectionsMarshal.SetCount(list449, num4); - Span span210 = CollectionsMarshal.AsSpan(list449); - span210[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span210[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + Span> span448 = CollectionsMarshal.AsSpan(list448); + index3 = 0; + span448[index3] = null; + index3++; + span448[index3] = null; + index3++; + span448[index3] = null; + index3++; + ref List reference350 = ref span448[index3]; + num5 = 2; + List list449 = new List(num5); + CollectionsMarshal.SetCount(list449, num5); + Span span449 = CollectionsMarshal.AsSpan(list449); + num4 = 0; + span449[num4] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span449[num4] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); reference350 = list449; - span209[4] = null; - span209[5] = null; + index3++; + span448[index3] = null; + index3++; + span448[index3] = null; obj276.RequiredQuestVariables = list448; reference349 = obj276; - ref QuestStep reference351 = ref span203[4]; + num2++; + ref QuestStep reference351 = ref span441[num2]; QuestStep obj277 = new QuestStep(EInteractionType.UseItem, 2009227u, new Vector3(777.1876f, 1.2359009f, 110.36853f), 613) { Fly = true, ItemId = 2002414u }; - num3 = 6; - List> list450 = new List>(num3); - CollectionsMarshal.SetCount(list450, num3); - Span> span211 = CollectionsMarshal.AsSpan(list450); - span211[0] = null; - span211[1] = null; - span211[2] = null; - ref List reference352 = ref span211[3]; + index3 = 6; + List> list450 = new List>(index3); + CollectionsMarshal.SetCount(list450, index3); + Span> span450 = CollectionsMarshal.AsSpan(list450); + num3 = 0; + span450[num3] = null; + num3++; + span450[num3] = null; + num3++; + span450[num3] = null; + num3++; + ref List reference352 = ref span450[num3]; num4 = 1; List list451 = new List(num4); CollectionsMarshal.SetCount(list451, num4); - CollectionsMarshal.AsSpan(list451)[0] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + Span span451 = CollectionsMarshal.AsSpan(list451); + num5 = 0; + span451[num5] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); reference352 = list451; - span211[4] = null; - span211[5] = null; + num3++; + span450[num3] = null; + num3++; + span450[num3] = null; obj277.RequiredQuestVariables = list450; reference351 = obj277; obj272.Steps = list441; reference342 = obj272; - ref QuestSequence reference353 = ref span202[3]; + num++; + ref QuestSequence reference353 = ref span438[num]; QuestSequence obj278 = new QuestSequence { Sequence = 3 @@ -189965,26 +229315,31 @@ public static class AssemblyQuestLoader num2 = 1; List list452 = new List(num2); CollectionsMarshal.SetCount(list452, num2); - CollectionsMarshal.AsSpan(list452)[0] = new QuestStep(EInteractionType.Interact, 1024316u, new Vector3(714.9614f, -0.3f, 140.3982f), 613) + Span span452 = CollectionsMarshal.AsSpan(list452); + index2 = 0; + span452[index2] = new QuestStep(EInteractionType.Interact, 1024316u, new Vector3(714.9614f, -0.3f, 140.3982f), 613) { Fly = true }; obj278.Steps = list452; reference353 = obj278; - ref QuestSequence reference354 = ref span202[4]; + num++; + ref QuestSequence reference354 = ref span438[num]; QuestSequence obj279 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list453 = new List(num2); - CollectionsMarshal.SetCount(list453, num2); - Span span212 = CollectionsMarshal.AsSpan(list453); - span212[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) + index2 = 2; + List list453 = new List(index2); + CollectionsMarshal.SetCount(list453, index2); + Span span453 = CollectionsMarshal.AsSpan(list453); + num2 = 0; + span453[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) { Fly = true }; - span212[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span453[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj279.Steps = list453; reference354 = obj279; questRoot39.QuestSequence = list438; @@ -189994,13 +229349,16 @@ public static class AssemblyQuestLoader num = 1; List list454 = new List(num); CollectionsMarshal.SetCount(list454, num); - CollectionsMarshal.AsSpan(list454)[0] = "plogon_enjoyer"; + Span span454 = CollectionsMarshal.AsSpan(list454); + index = 0; + span454[index] = "plogon_enjoyer"; questRoot40.Author = list454; - num = 3; - List list455 = new List(num); - CollectionsMarshal.SetCount(list455, num); - Span span213 = CollectionsMarshal.AsSpan(list455); - ref QuestSequence reference355 = ref span213[0]; + index = 3; + List list455 = new List(index); + CollectionsMarshal.SetCount(list455, index); + Span span455 = CollectionsMarshal.AsSpan(list455); + num = 0; + ref QuestSequence reference355 = ref span455[num]; QuestSequence obj280 = new QuestSequence { Sequence = 0 @@ -190008,64 +229366,87 @@ public static class AssemblyQuestLoader num2 = 1; List list456 = new List(num2); CollectionsMarshal.SetCount(list456, num2); - CollectionsMarshal.AsSpan(list456)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + Span span456 = CollectionsMarshal.AsSpan(list456); + index2 = 0; + span456[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj280.Steps = list456; reference355 = obj280; - ref QuestSequence reference356 = ref span213[1]; + num++; + ref QuestSequence reference356 = ref span455[num]; QuestSequence obj281 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list457 = new List(num2); - CollectionsMarshal.SetCount(list457, num2); - Span span214 = CollectionsMarshal.AsSpan(list457); - ref QuestStep reference357 = ref span214[0]; + index2 = 6; + List list457 = new List(index2); + CollectionsMarshal.SetCount(list457, index2); + Span span457 = CollectionsMarshal.AsSpan(list457); + num2 = 0; + ref QuestStep reference357 = ref span457[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2009129u, new Vector3(320.39355f, -0.07635498f, 2.7313232f), 613); num3 = 6; List> list458 = new List>(num3); CollectionsMarshal.SetCount(list458, num3); - Span> span215 = CollectionsMarshal.AsSpan(list458); - span215[0] = null; - ref List reference358 = ref span215[1]; - num4 = 1; - List list459 = new List(num4); - CollectionsMarshal.SetCount(list459, num4); - CollectionsMarshal.AsSpan(list459)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span> span458 = CollectionsMarshal.AsSpan(list458); + index3 = 0; + span458[index3] = null; + index3++; + ref List reference358 = ref span458[index3]; + num5 = 1; + List list459 = new List(num5); + CollectionsMarshal.SetCount(list459, num5); + Span span459 = CollectionsMarshal.AsSpan(list459); + num4 = 0; + span459[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference358 = list459; - span215[2] = null; - span215[3] = null; - span215[4] = null; - span215[5] = null; + index3++; + span458[index3] = null; + index3++; + span458[index3] = null; + index3++; + span458[index3] = null; + index3++; + span458[index3] = null; questStep3.RequiredQuestVariables = list458; reference357 = questStep3; - ref QuestStep reference359 = ref span214[1]; + num2++; + ref QuestStep reference359 = ref span457[num2]; QuestStep obj282 = new QuestStep(EInteractionType.Interact, 2009130u, new Vector3(14.572327f, -0.07635498f, -352.86487f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - num3 = 6; - List> list460 = new List>(num3); - CollectionsMarshal.SetCount(list460, num3); - Span> span216 = CollectionsMarshal.AsSpan(list460); - span216[0] = null; - ref List reference360 = ref span216[1]; + index3 = 6; + List> list460 = new List>(index3); + CollectionsMarshal.SetCount(list460, index3); + Span> span460 = CollectionsMarshal.AsSpan(list460); + num3 = 0; + span460[num3] = null; + num3++; + ref List reference360 = ref span460[num3]; num4 = 3; List list461 = new List(num4); CollectionsMarshal.SetCount(list461, num4); - Span span217 = CollectionsMarshal.AsSpan(list461); - span217[0] = new QuestWorkValue(0, (byte)6, EQuestWorkMode.Bitwise); - span217[1] = new QuestWorkValue(0, (byte)7, EQuestWorkMode.Bitwise); - span217[2] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span461 = CollectionsMarshal.AsSpan(list461); + num5 = 0; + span461[num5] = new QuestWorkValue(0, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span461[num5] = new QuestWorkValue(0, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span461[num5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); reference360 = list461; - span216[2] = null; - span216[3] = null; - span216[4] = null; - span216[5] = null; + num3++; + span460[num3] = null; + num3++; + span460[num3] = null; + num3++; + span460[num3] = null; + num3++; + span460[num3] = null; obj282.RequiredQuestVariables = list460; reference359 = obj282; - ref QuestStep reference361 = ref span214[2]; + num2++; + ref QuestStep reference361 = ref span457[num2]; QuestStep obj283 = new QuestStep(EInteractionType.Interact, 2009131u, new Vector3(90.13501f, -0.045776367f, 177.50818f), 613) { Fly = true @@ -190073,47 +229454,65 @@ public static class AssemblyQuestLoader num3 = 6; List> list462 = new List>(num3); CollectionsMarshal.SetCount(list462, num3); - Span> span218 = CollectionsMarshal.AsSpan(list462); - span218[0] = null; - ref List reference362 = ref span218[1]; - num4 = 2; - List list463 = new List(num4); - CollectionsMarshal.SetCount(list463, num4); - Span span219 = CollectionsMarshal.AsSpan(list463); - span219[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span219[1] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); + Span> span462 = CollectionsMarshal.AsSpan(list462); + index3 = 0; + span462[index3] = null; + index3++; + ref List reference362 = ref span462[index3]; + num5 = 2; + List list463 = new List(num5); + CollectionsMarshal.SetCount(list463, num5); + Span span463 = CollectionsMarshal.AsSpan(list463); + num4 = 0; + span463[num4] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span463[num4] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); reference362 = list463; - span218[2] = null; - span218[3] = null; - span218[4] = null; - span218[5] = null; + index3++; + span462[index3] = null; + index3++; + span462[index3] = null; + index3++; + span462[index3] = null; + index3++; + span462[index3] = null; obj283.RequiredQuestVariables = list462; reference361 = obj283; - ref QuestStep reference363 = ref span214[3]; + num2++; + ref QuestStep reference363 = ref span457[num2]; QuestStep obj284 = new QuestStep(EInteractionType.Interact, 2009132u, new Vector3(-48.69159f, -0.045776367f, -312.1844f), 613) { Fly = true }; - num3 = 6; - List> list464 = new List>(num3); - CollectionsMarshal.SetCount(list464, num3); - Span> span220 = CollectionsMarshal.AsSpan(list464); - span220[0] = null; - ref List reference364 = ref span220[1]; + index3 = 6; + List> list464 = new List>(index3); + CollectionsMarshal.SetCount(list464, index3); + Span> span464 = CollectionsMarshal.AsSpan(list464); + num3 = 0; + span464[num3] = null; + num3++; + ref List reference364 = ref span464[num3]; num4 = 2; List list465 = new List(num4); CollectionsMarshal.SetCount(list465, num4); - Span span221 = CollectionsMarshal.AsSpan(list465); - span221[0] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); - span221[1] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); + Span span465 = CollectionsMarshal.AsSpan(list465); + num5 = 0; + span465[num5] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span465[num5] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); reference364 = list465; - span220[2] = null; - span220[3] = null; - span220[4] = null; - span220[5] = null; + num3++; + span464[num3] = null; + num3++; + span464[num3] = null; + num3++; + span464[num3] = null; + num3++; + span464[num3] = null; obj284.RequiredQuestVariables = list464; reference363 = obj284; - ref QuestStep reference365 = ref span214[4]; + num2++; + ref QuestStep reference365 = ref span457[num2]; QuestStep obj285 = new QuestStep(EInteractionType.Interact, 2009133u, new Vector3(23.941406f, -0.19836426f, 192.70618f), 613) { Fly = true @@ -190121,48 +229520,67 @@ public static class AssemblyQuestLoader num3 = 6; List> list466 = new List>(num3); CollectionsMarshal.SetCount(list466, num3); - Span> span222 = CollectionsMarshal.AsSpan(list466); - span222[0] = null; - ref List reference366 = ref span222[1]; - num4 = 1; - List list467 = new List(num4); - CollectionsMarshal.SetCount(list467, num4); - CollectionsMarshal.AsSpan(list467)[0] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); + Span> span466 = CollectionsMarshal.AsSpan(list466); + index3 = 0; + span466[index3] = null; + index3++; + ref List reference366 = ref span466[index3]; + num5 = 1; + List list467 = new List(num5); + CollectionsMarshal.SetCount(list467, num5); + Span span467 = CollectionsMarshal.AsSpan(list467); + num4 = 0; + span467[num4] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); reference366 = list467; - span222[2] = null; - span222[3] = null; - span222[4] = null; - span222[5] = null; + index3++; + span466[index3] = null; + index3++; + span466[index3] = null; + index3++; + span466[index3] = null; + index3++; + span466[index3] = null; obj285.RequiredQuestVariables = list466; reference365 = obj285; - ref QuestStep reference367 = ref span214[5]; + num2++; + ref QuestStep reference367 = ref span457[num2]; QuestStep obj286 = new QuestStep(EInteractionType.Interact, 2009134u, new Vector3(284.99268f, -0.19836426f, -28.000305f), 613) { Fly = true }; - num3 = 6; - List> list468 = new List>(num3); - CollectionsMarshal.SetCount(list468, num3); - Span> span223 = CollectionsMarshal.AsSpan(list468); - span223[0] = null; - ref List reference368 = ref span223[1]; + index3 = 6; + List> list468 = new List>(index3); + CollectionsMarshal.SetCount(list468, index3); + Span> span468 = CollectionsMarshal.AsSpan(list468); + num3 = 0; + span468[num3] = null; + num3++; + ref List reference368 = ref span468[num3]; num4 = 3; List list469 = new List(num4); CollectionsMarshal.SetCount(list469, num4); - Span span224 = CollectionsMarshal.AsSpan(list469); - span224[0] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); - span224[1] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); - span224[2] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); + Span span469 = CollectionsMarshal.AsSpan(list469); + num5 = 0; + span469[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span469[num5] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span469[num5] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); reference368 = list469; - span223[2] = null; - span223[3] = null; - span223[4] = null; - span223[5] = null; + num3++; + span468[num3] = null; + num3++; + span468[num3] = null; + num3++; + span468[num3] = null; + num3++; + span468[num3] = null; obj286.RequiredQuestVariables = list468; reference367 = obj286; obj281.Steps = list457; reference356 = obj281; - ref QuestSequence reference369 = ref span213[2]; + num++; + ref QuestSequence reference369 = ref span455[num]; QuestSequence obj287 = new QuestSequence { Sequence = byte.MaxValue @@ -190170,13 +229588,15 @@ public static class AssemblyQuestLoader num2 = 2; List list470 = new List(num2); CollectionsMarshal.SetCount(list470, num2); - Span span225 = CollectionsMarshal.AsSpan(list470); - span225[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) + Span span470 = CollectionsMarshal.AsSpan(list470); + index2 = 0; + span470[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span225[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span470[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj287.Steps = list470; reference369 = obj287; questRoot40.QuestSequence = list455; @@ -190186,24 +229606,30 @@ public static class AssemblyQuestLoader num = 1; List list471 = new List(num); CollectionsMarshal.SetCount(list471, num); - CollectionsMarshal.AsSpan(list471)[0] = "Theo"; + Span span471 = CollectionsMarshal.AsSpan(list471); + index = 0; + span471[index] = "Theo"; questRoot41.Author = list471; - num = 3; - List list472 = new List(num); - CollectionsMarshal.SetCount(list472, num); - Span span226 = CollectionsMarshal.AsSpan(list472); - ref QuestSequence reference370 = ref span226[0]; + index = 3; + List list472 = new List(index); + CollectionsMarshal.SetCount(list472, index); + Span span472 = CollectionsMarshal.AsSpan(list472); + num = 0; + ref QuestSequence reference370 = ref span472[num]; QuestSequence obj288 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list473 = new List(num2); - CollectionsMarshal.SetCount(list473, num2); - CollectionsMarshal.AsSpan(list473)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list473 = new List(index2); + CollectionsMarshal.SetCount(list473, index2); + Span span473 = CollectionsMarshal.AsSpan(list473); + num2 = 0; + span473[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj288.Steps = list473; reference370 = obj288; - ref QuestSequence reference371 = ref span226[1]; + num++; + ref QuestSequence reference371 = ref span472[num]; QuestSequence obj289 = new QuestSequence { Sequence = 1 @@ -190211,13 +229637,15 @@ public static class AssemblyQuestLoader num2 = 5; List list474 = new List(num2); CollectionsMarshal.SetCount(list474, num2); - Span span227 = CollectionsMarshal.AsSpan(list474); - span227[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.06195f, -83.027016f, -226.5931f), 613) + Span span474 = CollectionsMarshal.AsSpan(list474); + index2 = 0; + span474[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.06195f, -83.027016f, -226.5931f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - ref QuestStep reference372 = ref span227[1]; + index2++; + ref QuestStep reference372 = ref span474[index2]; QuestStep obj290 = new QuestStep(EInteractionType.Interact, 2009135u, new Vector3(-77.74481f, -180.6211f, 33.157837f), 613) { Fly = true @@ -190225,43 +229653,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list475 = new List>(num3); CollectionsMarshal.SetCount(list475, num3); - Span> span228 = CollectionsMarshal.AsSpan(list475); - span228[0] = null; - span228[1] = null; - span228[2] = null; - ref List reference373 = ref span228[3]; - num4 = 1; - List list476 = new List(num4); - CollectionsMarshal.SetCount(list476, num4); - CollectionsMarshal.AsSpan(list476)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + Span> span475 = CollectionsMarshal.AsSpan(list475); + index3 = 0; + span475[index3] = null; + index3++; + span475[index3] = null; + index3++; + span475[index3] = null; + index3++; + ref List reference373 = ref span475[index3]; + num5 = 1; + List list476 = new List(num5); + CollectionsMarshal.SetCount(list476, num5); + Span span476 = CollectionsMarshal.AsSpan(list476); + num4 = 0; + span476[num4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference373 = list476; - span228[4] = null; - span228[5] = null; + index3++; + span475[index3] = null; + index3++; + span475[index3] = null; obj290.RequiredQuestVariables = list475; reference372 = obj290; - ref QuestStep reference374 = ref span227[2]; + index2++; + ref QuestStep reference374 = ref span474[index2]; QuestStep obj291 = new QuestStep(EInteractionType.Interact, 2009136u, new Vector3(-150.10309f, -167.01001f, 87.60205f), 613) { Fly = true }; - num3 = 6; - List> list477 = new List>(num3); - CollectionsMarshal.SetCount(list477, num3); - Span> span229 = CollectionsMarshal.AsSpan(list477); - span229[0] = null; - span229[1] = null; - span229[2] = null; - ref List reference375 = ref span229[3]; + index3 = 6; + List> list477 = new List>(index3); + CollectionsMarshal.SetCount(list477, index3); + Span> span477 = CollectionsMarshal.AsSpan(list477); + num3 = 0; + span477[num3] = null; + num3++; + span477[num3] = null; + num3++; + span477[num3] = null; + num3++; + ref List reference375 = ref span477[num3]; num4 = 1; List list478 = new List(num4); CollectionsMarshal.SetCount(list478, num4); - CollectionsMarshal.AsSpan(list478)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + Span span478 = CollectionsMarshal.AsSpan(list478); + num5 = 0; + span478[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference375 = list478; - span229[4] = null; - span229[5] = null; + num3++; + span477[num3] = null; + num3++; + span477[num3] = null; obj291.RequiredQuestVariables = list477; reference374 = obj291; - ref QuestStep reference376 = ref span227[3]; + index2++; + ref QuestStep reference376 = ref span474[index2]; QuestStep obj292 = new QuestStep(EInteractionType.Interact, 2009137u, new Vector3(-141.68011f, -149.34009f, -214.64868f), 613) { Fly = true @@ -190269,59 +229715,79 @@ public static class AssemblyQuestLoader num3 = 6; List> list479 = new List>(num3); CollectionsMarshal.SetCount(list479, num3); - Span> span230 = CollectionsMarshal.AsSpan(list479); - span230[0] = null; - span230[1] = null; - span230[2] = null; - ref List reference377 = ref span230[3]; - num4 = 1; - List list480 = new List(num4); - CollectionsMarshal.SetCount(list480, num4); - CollectionsMarshal.AsSpan(list480)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + Span> span479 = CollectionsMarshal.AsSpan(list479); + index3 = 0; + span479[index3] = null; + index3++; + span479[index3] = null; + index3++; + span479[index3] = null; + index3++; + ref List reference377 = ref span479[index3]; + num5 = 1; + List list480 = new List(num5); + CollectionsMarshal.SetCount(list480, num5); + Span span480 = CollectionsMarshal.AsSpan(list480); + num4 = 0; + span480[num4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference377 = list480; - span230[4] = null; - span230[5] = null; + index3++; + span479[index3] = null; + index3++; + span479[index3] = null; obj292.RequiredQuestVariables = list479; reference376 = obj292; - ref QuestStep reference378 = ref span227[4]; + index2++; + ref QuestStep reference378 = ref span474[index2]; QuestStep obj293 = new QuestStep(EInteractionType.Interact, 2009139u, new Vector3(-131.7312f, -191.97375f, -6.1189575f), 613) { Fly = true }; - num3 = 6; - List> list481 = new List>(num3); - CollectionsMarshal.SetCount(list481, num3); - Span> span231 = CollectionsMarshal.AsSpan(list481); - span231[0] = null; - span231[1] = null; - span231[2] = null; - ref List reference379 = ref span231[3]; + index3 = 6; + List> list481 = new List>(index3); + CollectionsMarshal.SetCount(list481, index3); + Span> span481 = CollectionsMarshal.AsSpan(list481); + num3 = 0; + span481[num3] = null; + num3++; + span481[num3] = null; + num3++; + span481[num3] = null; + num3++; + ref List reference379 = ref span481[num3]; num4 = 1; List list482 = new List(num4); CollectionsMarshal.SetCount(list482, num4); - CollectionsMarshal.AsSpan(list482)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + Span span482 = CollectionsMarshal.AsSpan(list482); + num5 = 0; + span482[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference379 = list482; - span231[4] = null; - span231[5] = null; + num3++; + span481[num3] = null; + num3++; + span481[num3] = null; obj293.RequiredQuestVariables = list481; reference378 = obj293; obj289.Steps = list474; reference371 = obj289; - ref QuestSequence reference380 = ref span226[2]; + num++; + ref QuestSequence reference380 = ref span472[num]; QuestSequence obj294 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list483 = new List(num2); - CollectionsMarshal.SetCount(list483, num2); - Span span232 = CollectionsMarshal.AsSpan(list483); - span232[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) + index2 = 2; + List list483 = new List(index2); + CollectionsMarshal.SetCount(list483, index2); + Span span483 = CollectionsMarshal.AsSpan(list483); + num2 = 0; + span483[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span232[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span483[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj294.Steps = list483; reference380 = obj294; questRoot41.QuestSequence = list472; @@ -190331,13 +229797,16 @@ public static class AssemblyQuestLoader num = 1; List list484 = new List(num); CollectionsMarshal.SetCount(list484, num); - CollectionsMarshal.AsSpan(list484)[0] = "plogon_enjoyer"; + Span span484 = CollectionsMarshal.AsSpan(list484); + index = 0; + span484[index] = "plogon_enjoyer"; questRoot42.Author = list484; - num = 4; - List list485 = new List(num); - CollectionsMarshal.SetCount(list485, num); - Span span233 = CollectionsMarshal.AsSpan(list485); - ref QuestSequence reference381 = ref span233[0]; + index = 4; + List list485 = new List(index); + CollectionsMarshal.SetCount(list485, index); + Span span485 = CollectionsMarshal.AsSpan(list485); + num = 0; + ref QuestSequence reference381 = ref span485[num]; QuestSequence obj295 = new QuestSequence { Sequence = 0 @@ -190345,19 +229814,23 @@ public static class AssemblyQuestLoader num2 = 1; List list486 = new List(num2); CollectionsMarshal.SetCount(list486, num2); - CollectionsMarshal.AsSpan(list486)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + Span span486 = CollectionsMarshal.AsSpan(list486); + index2 = 0; + span486[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj295.Steps = list486; reference381 = obj295; - ref QuestSequence reference382 = ref span233[1]; + num++; + ref QuestSequence reference382 = ref span485[num]; QuestSequence obj296 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list487 = new List(num2); - CollectionsMarshal.SetCount(list487, num2); - Span span234 = CollectionsMarshal.AsSpan(list487); - span234[0] = new QuestStep(EInteractionType.None, null, null, 613) + index2 = 6; + List list487 = new List(index2); + CollectionsMarshal.SetCount(list487, index2); + Span span487 = CollectionsMarshal.AsSpan(list487); + num2 = 0; + span487[num2] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -190366,7 +229839,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - ref QuestStep reference383 = ref span234[1]; + num2++; + ref QuestStep reference383 = ref span487[num2]; QuestStep obj297 = new QuestStep(EInteractionType.Combat, 2009100u, new Vector3(394.7661f, 16.983276f, 845.9448f), 613) { Fly = true, @@ -190376,30 +229850,43 @@ public static class AssemblyQuestLoader num3 = 1; List list488 = new List(num3); CollectionsMarshal.SetCount(list488, num3); - CollectionsMarshal.AsSpan(list488)[0] = 8242u; + Span span488 = CollectionsMarshal.AsSpan(list488); + index3 = 0; + span488[index3] = 8242u; obj297.KillEnemyDataIds = list488; - num3 = 6; - List> list489 = new List>(num3); - CollectionsMarshal.SetCount(list489, num3); - Span> span235 = CollectionsMarshal.AsSpan(list489); - span235[0] = null; - span235[1] = null; - span235[2] = null; - span235[3] = null; - ref List reference384 = ref span235[4]; - num4 = 4; - List list490 = new List(num4); - CollectionsMarshal.SetCount(list490, num4); - Span span236 = CollectionsMarshal.AsSpan(list490); - span236[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span236[1] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span236[2] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span236[3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list489 = new List>(index3); + CollectionsMarshal.SetCount(list489, index3); + Span> span489 = CollectionsMarshal.AsSpan(list489); + num3 = 0; + span489[num3] = null; + num3++; + span489[num3] = null; + num3++; + span489[num3] = null; + num3++; + span489[num3] = null; + num3++; + ref List reference384 = ref span489[num3]; + num5 = 4; + List list490 = new List(num5); + CollectionsMarshal.SetCount(list490, num5); + Span span490 = CollectionsMarshal.AsSpan(list490); + num4 = 0; + span490[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num4++; + span490[num4] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num4++; + span490[num4] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num4++; + span490[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference384 = list490; - span235[5] = null; + num3++; + span489[num3] = null; obj297.RequiredQuestVariables = list489; reference383 = obj297; - ref QuestStep reference385 = ref span234[2]; + num2++; + ref QuestStep reference385 = ref span487[num2]; QuestStep obj298 = new QuestStep(EInteractionType.Combat, 2009101u, new Vector3(460.99023f, 0.56451416f, 889.494f), 613) { Fly = true, @@ -190409,29 +229896,41 @@ public static class AssemblyQuestLoader num3 = 1; List list491 = new List(num3); CollectionsMarshal.SetCount(list491, num3); - CollectionsMarshal.AsSpan(list491)[0] = 8242u; + Span span491 = CollectionsMarshal.AsSpan(list491); + index3 = 0; + span491[index3] = 8242u; obj298.KillEnemyDataIds = list491; - num3 = 6; - List> list492 = new List>(num3); - CollectionsMarshal.SetCount(list492, num3); - Span> span237 = CollectionsMarshal.AsSpan(list492); - span237[0] = null; - span237[1] = null; - span237[2] = null; - span237[3] = null; - ref List reference386 = ref span237[4]; + index3 = 6; + List> list492 = new List>(index3); + CollectionsMarshal.SetCount(list492, index3); + Span> span492 = CollectionsMarshal.AsSpan(list492); + num3 = 0; + span492[num3] = null; + num3++; + span492[num3] = null; + num3++; + span492[num3] = null; + num3++; + span492[num3] = null; + num3++; + ref List reference386 = ref span492[num3]; num4 = 3; List list493 = new List(num4); CollectionsMarshal.SetCount(list493, num4); - Span span238 = CollectionsMarshal.AsSpan(list493); - span238[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span238[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span238[2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span493 = CollectionsMarshal.AsSpan(list493); + num5 = 0; + span493[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span493[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5++; + span493[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference386 = list493; - span237[5] = null; + num3++; + span492[num3] = null; obj298.RequiredQuestVariables = list492; reference385 = obj298; - ref QuestStep reference387 = ref span234[3]; + num2++; + ref QuestStep reference387 = ref span487[num2]; QuestStep obj299 = new QuestStep(EInteractionType.Combat, 2009142u, new Vector3(480.4607f, 3.829956f, 841.3672f), 613) { Fly = true, @@ -190441,30 +229940,43 @@ public static class AssemblyQuestLoader num3 = 1; List list494 = new List(num3); CollectionsMarshal.SetCount(list494, num3); - CollectionsMarshal.AsSpan(list494)[0] = 8242u; + Span span494 = CollectionsMarshal.AsSpan(list494); + index3 = 0; + span494[index3] = 8242u; obj299.KillEnemyDataIds = list494; - num3 = 6; - List> list495 = new List>(num3); - CollectionsMarshal.SetCount(list495, num3); - Span> span239 = CollectionsMarshal.AsSpan(list495); - span239[0] = null; - span239[1] = null; - span239[2] = null; - span239[3] = null; - ref List reference388 = ref span239[4]; - num4 = 4; - List list496 = new List(num4); - CollectionsMarshal.SetCount(list496, num4); - Span span240 = CollectionsMarshal.AsSpan(list496); - span240[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span240[1] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span240[2] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span240[3] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list495 = new List>(index3); + CollectionsMarshal.SetCount(list495, index3); + Span> span495 = CollectionsMarshal.AsSpan(list495); + num3 = 0; + span495[num3] = null; + num3++; + span495[num3] = null; + num3++; + span495[num3] = null; + num3++; + span495[num3] = null; + num3++; + ref List reference388 = ref span495[num3]; + num5 = 4; + List list496 = new List(num5); + CollectionsMarshal.SetCount(list496, num5); + Span span496 = CollectionsMarshal.AsSpan(list496); + num4 = 0; + span496[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4++; + span496[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4++; + span496[num4] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num4++; + span496[num4] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); reference388 = list496; - span239[5] = null; + num3++; + span495[num3] = null; obj299.RequiredQuestVariables = list495; reference387 = obj299; - ref QuestStep reference389 = ref span234[4]; + num2++; + ref QuestStep reference389 = ref span487[num2]; QuestStep obj300 = new QuestStep(EInteractionType.Combat, 2009140u, new Vector3(543.1753f, -0.015319824f, 685.7251f), 613) { Fly = true, @@ -190474,30 +229986,41 @@ public static class AssemblyQuestLoader num3 = 2; List list497 = new List(num3); CollectionsMarshal.SetCount(list497, num3); - Span span241 = CollectionsMarshal.AsSpan(list497); - span241[0] = 8243u; - span241[1] = 8243u; + Span span497 = CollectionsMarshal.AsSpan(list497); + index3 = 0; + span497[index3] = 8243u; + index3++; + span497[index3] = 8243u; obj300.KillEnemyDataIds = list497; - num3 = 6; - List> list498 = new List>(num3); - CollectionsMarshal.SetCount(list498, num3); - Span> span242 = CollectionsMarshal.AsSpan(list498); - span242[0] = null; - span242[1] = null; - span242[2] = null; - span242[3] = null; - ref List reference390 = ref span242[4]; + index3 = 6; + List> list498 = new List>(index3); + CollectionsMarshal.SetCount(list498, index3); + Span> span498 = CollectionsMarshal.AsSpan(list498); + num3 = 0; + span498[num3] = null; + num3++; + span498[num3] = null; + num3++; + span498[num3] = null; + num3++; + span498[num3] = null; + num3++; + ref List reference390 = ref span498[num3]; num4 = 2; List list499 = new List(num4); CollectionsMarshal.SetCount(list499, num4); - Span span243 = CollectionsMarshal.AsSpan(list499); - span243[0] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span243[1] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + Span span499 = CollectionsMarshal.AsSpan(list499); + num5 = 0; + span499[num5] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num5++; + span499[num5] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); reference390 = list499; - span242[5] = null; + num3++; + span498[num3] = null; obj300.RequiredQuestVariables = list498; reference389 = obj300; - ref QuestStep reference391 = ref span234[5]; + num2++; + ref QuestStep reference391 = ref span487[num2]; QuestStep obj301 = new QuestStep(EInteractionType.Combat, 2009141u, new Vector3(352.1018f, -0.015319824f, 860.31885f), 613) { Fly = true, @@ -190507,33 +230030,45 @@ public static class AssemblyQuestLoader num3 = 2; List list500 = new List(num3); CollectionsMarshal.SetCount(list500, num3); - Span span244 = CollectionsMarshal.AsSpan(list500); - span244[0] = 8243u; - span244[1] = 8243u; + Span span500 = CollectionsMarshal.AsSpan(list500); + index3 = 0; + span500[index3] = 8243u; + index3++; + span500[index3] = 8243u; obj301.KillEnemyDataIds = list500; - num3 = 6; - List> list501 = new List>(num3); - CollectionsMarshal.SetCount(list501, num3); - Span> span245 = CollectionsMarshal.AsSpan(list501); - span245[0] = null; - span245[1] = null; - span245[2] = null; - span245[3] = null; - ref List reference392 = ref span245[4]; - num4 = 3; - List list502 = new List(num4); - CollectionsMarshal.SetCount(list502, num4); - Span span246 = CollectionsMarshal.AsSpan(list502); - span246[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span246[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span246[2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list501 = new List>(index3); + CollectionsMarshal.SetCount(list501, index3); + Span> span501 = CollectionsMarshal.AsSpan(list501); + num3 = 0; + span501[num3] = null; + num3++; + span501[num3] = null; + num3++; + span501[num3] = null; + num3++; + span501[num3] = null; + num3++; + ref List reference392 = ref span501[num3]; + num5 = 3; + List list502 = new List(num5); + CollectionsMarshal.SetCount(list502, num5); + Span span502 = CollectionsMarshal.AsSpan(list502); + num4 = 0; + span502[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4++; + span502[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num4++; + span502[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); reference392 = list502; - span245[5] = null; + num3++; + span501[num3] = null; obj301.RequiredQuestVariables = list501; reference391 = obj301; obj296.Steps = list487; reference382 = obj296; - ref QuestSequence reference393 = ref span233[2]; + num++; + ref QuestSequence reference393 = ref span485[num]; QuestSequence obj302 = new QuestSequence { Sequence = 2 @@ -190541,27 +230076,32 @@ public static class AssemblyQuestLoader num2 = 1; List list503 = new List(num2); CollectionsMarshal.SetCount(list503, num2); - CollectionsMarshal.AsSpan(list503)[0] = new QuestStep(EInteractionType.Interact, 1024317u, new Vector3(823.3004f, 5.9230013f, 866.6361f), 613) + Span span503 = CollectionsMarshal.AsSpan(list503); + index2 = 0; + span503[index2] = new QuestStep(EInteractionType.Interact, 1024317u, new Vector3(823.3004f, 5.9230013f, 866.6361f), 613) { Fly = true }; obj302.Steps = list503; reference393 = obj302; - ref QuestSequence reference394 = ref span233[3]; + num++; + ref QuestSequence reference394 = ref span485[num]; QuestSequence obj303 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list504 = new List(num2); - CollectionsMarshal.SetCount(list504, num2); - Span span247 = CollectionsMarshal.AsSpan(list504); - span247[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + index2 = 2; + List list504 = new List(index2); + CollectionsMarshal.SetCount(list504, index2); + Span span504 = CollectionsMarshal.AsSpan(list504); + num2 = 0; + span504[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span247[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span504[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj303.Steps = list504; reference394 = obj303; questRoot42.QuestSequence = list485; @@ -190571,13 +230111,16 @@ public static class AssemblyQuestLoader num = 1; List list505 = new List(num); CollectionsMarshal.SetCount(list505, num); - CollectionsMarshal.AsSpan(list505)[0] = "plogon_enjoyer"; + Span span505 = CollectionsMarshal.AsSpan(list505); + index = 0; + span505[index] = "plogon_enjoyer"; questRoot43.Author = list505; - num = 3; - List list506 = new List(num); - CollectionsMarshal.SetCount(list506, num); - Span span248 = CollectionsMarshal.AsSpan(list506); - ref QuestSequence reference395 = ref span248[0]; + index = 3; + List list506 = new List(index); + CollectionsMarshal.SetCount(list506, index); + Span span506 = CollectionsMarshal.AsSpan(list506); + num = 0; + ref QuestSequence reference395 = ref span506[num]; QuestSequence obj304 = new QuestSequence { Sequence = 0 @@ -190585,35 +230128,42 @@ public static class AssemblyQuestLoader num2 = 1; List list507 = new List(num2); CollectionsMarshal.SetCount(list507, num2); - CollectionsMarshal.AsSpan(list507)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + Span span507 = CollectionsMarshal.AsSpan(list507); + index2 = 0; + span507[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj304.Steps = list507; reference395 = obj304; - ref QuestSequence reference396 = ref span248[1]; + num++; + ref QuestSequence reference396 = ref span506[num]; QuestSequence obj305 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list508 = new List(num2); - CollectionsMarshal.SetCount(list508, num2); - Span span249 = CollectionsMarshal.AsSpan(list508); - span249[0] = new QuestStep(EInteractionType.None, null, null, 613) + index2 = 4; + List list508 = new List(index2); + CollectionsMarshal.SetCount(list508, index2); + Span span508 = CollectionsMarshal.AsSpan(list508); + num2 = 0; + span508[num2] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - span249[1] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-848.8846f, 36.0507f, 300.73306f), 613) + num2++; + span508[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-848.8846f, 36.0507f, 300.73306f), 613) { Fly = true, ItemId = 2002422u, GroundTarget = true }; - span249[2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-842.2923f, 36.053864f, 319.94763f), 613) + num2++; + span508[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-842.2923f, 36.053864f, 319.94763f), 613) { Fly = true, ItemId = 2002422u, GroundTarget = true }; - span249[3] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-873.57074f, 36.01944f, 318.8049f), 613) + num2++; + span508[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-873.57074f, 36.01944f, 318.8049f), 613) { Fly = true, ItemId = 2002422u, @@ -190621,7 +230171,8 @@ public static class AssemblyQuestLoader }; obj305.Steps = list508; reference396 = obj305; - ref QuestSequence reference397 = ref span248[2]; + num++; + ref QuestSequence reference397 = ref span506[num]; QuestSequence obj306 = new QuestSequence { Sequence = byte.MaxValue @@ -190629,13 +230180,15 @@ public static class AssemblyQuestLoader num2 = 2; List list509 = new List(num2); CollectionsMarshal.SetCount(list509, num2); - Span span250 = CollectionsMarshal.AsSpan(list509); - span250[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) + Span span509 = CollectionsMarshal.AsSpan(list509); + index2 = 0; + span509[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span250[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span509[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj306.Steps = list509; reference397 = obj306; questRoot43.QuestSequence = list506; @@ -190649,13 +230202,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "plogon_enjoyer"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "plogon_enjoyer"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -190663,24 +230219,29 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 10; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.37f, -83.39401f, -227.2903f), 613) + index2 = 10; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.37f, -83.39401f, -227.2903f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - ref QuestStep reference3 = ref span2[1]; + num2++; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 2009216u, new Vector3(-154.40613f, -179.3393f, 187.97583f), 613) { Fly = true @@ -190688,43 +230249,61 @@ public static class AssemblyQuestLoader int num3 = 6; List> list5 = new List>(num3); CollectionsMarshal.SetCount(list5, num3); - Span> span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - ref List reference4 = ref span3[2]; - int num4 = 1; - List list6 = new List(num4); - CollectionsMarshal.SetCount(list6, num4); - CollectionsMarshal.AsSpan(list6)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span> span5 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + ref List reference4 = ref span5[num4]; + int num5 = 1; + List list6 = new List(num5); + CollectionsMarshal.SetCount(list6, num5); + Span span6 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span6[index3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference4 = list6; - span3[3] = null; - span3[4] = null; - span3[5] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; obj3.RequiredQuestVariables = list5; reference3 = obj3; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span4[num2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 2009217u, new Vector3(-245.80762f, -194.50684f, 219.98926f), 613) { Fly = true }; - num3 = 6; - List> list7 = new List>(num3); - CollectionsMarshal.SetCount(list7, num3); - Span> span4 = CollectionsMarshal.AsSpan(list7); - span4[0] = null; - span4[1] = null; - ref List reference6 = ref span4[2]; - num4 = 1; - List list8 = new List(num4); - CollectionsMarshal.SetCount(list8, num4); - CollectionsMarshal.AsSpan(list8)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list7 = new List>(num4); + CollectionsMarshal.SetCount(list7, num4); + Span> span7 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + ref List reference6 = ref span7[num3]; + index3 = 1; + List list8 = new List(index3); + CollectionsMarshal.SetCount(list8, index3); + Span span8 = CollectionsMarshal.AsSpan(list8); + num5 = 0; + span8[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference6 = list8; - span4[3] = null; - span4[4] = null; - span4[5] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; obj4.RequiredQuestVariables = list7; reference5 = obj4; - ref QuestStep reference7 = ref span2[3]; + num2++; + ref QuestStep reference7 = ref span4[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 2009218u, new Vector3(-162.8291f, -192.52313f, 255.6344f), 613) { Fly = true @@ -190732,43 +230311,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list9 = new List>(num3); CollectionsMarshal.SetCount(list9, num3); - Span> span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = null; - span5[1] = null; - ref List reference8 = ref span5[2]; - num4 = 1; - List list10 = new List(num4); - CollectionsMarshal.SetCount(list10, num4); - CollectionsMarshal.AsSpan(list10)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + Span> span9 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + ref List reference8 = ref span9[num4]; + num5 = 1; + List list10 = new List(num5); + CollectionsMarshal.SetCount(list10, num5); + Span span10 = CollectionsMarshal.AsSpan(list10); + index3 = 0; + span10[index3] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference8 = list10; - span5[3] = null; - span5[4] = null; - span5[5] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; obj5.RequiredQuestVariables = list9; reference7 = obj5; - ref QuestStep reference9 = ref span2[4]; + num2++; + ref QuestStep reference9 = ref span4[num2]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 2009146u, new Vector3(-154.40613f, -179.3393f, 187.97583f), 613) { Fly = true }; - num3 = 6; - List> list11 = new List>(num3); - CollectionsMarshal.SetCount(list11, num3); - Span> span6 = CollectionsMarshal.AsSpan(list11); - span6[0] = null; - span6[1] = null; - ref List reference10 = ref span6[2]; - num4 = 1; - List list12 = new List(num4); - CollectionsMarshal.SetCount(list12, num4); - CollectionsMarshal.AsSpan(list12)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4 = 6; + List> list11 = new List>(num4); + CollectionsMarshal.SetCount(list11, num4); + Span> span11 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + ref List reference10 = ref span11[num3]; + index3 = 1; + List list12 = new List(index3); + CollectionsMarshal.SetCount(list12, index3); + Span span12 = CollectionsMarshal.AsSpan(list12); + num5 = 0; + span12[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference10 = list12; - span6[3] = null; - span6[4] = null; - span6[5] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; obj6.RequiredQuestVariables = list11; reference9 = obj6; - ref QuestStep reference11 = ref span2[5]; + num2++; + ref QuestStep reference11 = ref span4[num2]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 2009147u, new Vector3(-154.40613f, -179.3393f, 187.97583f), 613) { Fly = true @@ -190776,43 +230373,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list13 = new List>(num3); CollectionsMarshal.SetCount(list13, num3); - Span> span7 = CollectionsMarshal.AsSpan(list13); - span7[0] = null; - span7[1] = null; - ref List reference12 = ref span7[2]; - num4 = 1; - List list14 = new List(num4); - CollectionsMarshal.SetCount(list14, num4); - CollectionsMarshal.AsSpan(list14)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + Span> span13 = CollectionsMarshal.AsSpan(list13); + num4 = 0; + span13[num4] = null; + num4++; + span13[num4] = null; + num4++; + ref List reference12 = ref span13[num4]; + num5 = 1; + List list14 = new List(num5); + CollectionsMarshal.SetCount(list14, num5); + Span span14 = CollectionsMarshal.AsSpan(list14); + index3 = 0; + span14[index3] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference12 = list14; - span7[3] = null; - span7[4] = null; - span7[5] = null; + num4++; + span13[num4] = null; + num4++; + span13[num4] = null; + num4++; + span13[num4] = null; obj7.RequiredQuestVariables = list13; reference11 = obj7; - ref QuestStep reference13 = ref span2[6]; + num2++; + ref QuestStep reference13 = ref span4[num2]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 2009148u, new Vector3(-245.80762f, -194.50684f, 219.98926f), 613) { Fly = true }; - num3 = 6; - List> list15 = new List>(num3); - CollectionsMarshal.SetCount(list15, num3); - Span> span8 = CollectionsMarshal.AsSpan(list15); - span8[0] = null; - span8[1] = null; - ref List reference14 = ref span8[2]; - num4 = 1; - List list16 = new List(num4); - CollectionsMarshal.SetCount(list16, num4); - CollectionsMarshal.AsSpan(list16)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num4 = 6; + List> list15 = new List>(num4); + CollectionsMarshal.SetCount(list15, num4); + Span> span15 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + ref List reference14 = ref span15[num3]; + index3 = 1; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num5 = 0; + span16[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference14 = list16; - span8[3] = null; - span8[4] = null; - span8[5] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; obj8.RequiredQuestVariables = list15; reference13 = obj8; - ref QuestStep reference15 = ref span2[7]; + num2++; + ref QuestStep reference15 = ref span4[num2]; QuestStep obj9 = new QuestStep(EInteractionType.Interact, 2009149u, new Vector3(-245.80762f, -194.50684f, 219.98926f), 613) { Fly = true @@ -190820,43 +230435,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list17 = new List>(num3); CollectionsMarshal.SetCount(list17, num3); - Span> span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = null; - span9[1] = null; - ref List reference16 = ref span9[2]; - num4 = 1; - List list18 = new List(num4); - CollectionsMarshal.SetCount(list18, num4); - CollectionsMarshal.AsSpan(list18)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + Span> span17 = CollectionsMarshal.AsSpan(list17); + num4 = 0; + span17[num4] = null; + num4++; + span17[num4] = null; + num4++; + ref List reference16 = ref span17[num4]; + num5 = 1; + List list18 = new List(num5); + CollectionsMarshal.SetCount(list18, num5); + Span span18 = CollectionsMarshal.AsSpan(list18); + index3 = 0; + span18[index3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference16 = list18; - span9[3] = null; - span9[4] = null; - span9[5] = null; + num4++; + span17[num4] = null; + num4++; + span17[num4] = null; + num4++; + span17[num4] = null; obj9.RequiredQuestVariables = list17; reference15 = obj9; - ref QuestStep reference17 = ref span2[8]; + num2++; + ref QuestStep reference17 = ref span4[num2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2009150u, new Vector3(-162.8291f, -192.52313f, 255.6344f), 613) { Fly = true }; - num3 = 6; - List> list19 = new List>(num3); - CollectionsMarshal.SetCount(list19, num3); - Span> span10 = CollectionsMarshal.AsSpan(list19); - span10[0] = null; - span10[1] = null; - ref List reference18 = ref span10[2]; - num4 = 1; - List list20 = new List(num4); - CollectionsMarshal.SetCount(list20, num4); - CollectionsMarshal.AsSpan(list20)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list19 = new List>(num4); + CollectionsMarshal.SetCount(list19, num4); + Span> span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + ref List reference18 = ref span19[num3]; + index3 = 1; + List list20 = new List(index3); + CollectionsMarshal.SetCount(list20, index3); + Span span20 = CollectionsMarshal.AsSpan(list20); + num5 = 0; + span20[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference18 = list20; - span10[3] = null; - span10[4] = null; - span10[5] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; obj10.RequiredQuestVariables = list19; reference17 = obj10; - ref QuestStep reference19 = ref span2[9]; + num2++; + ref QuestStep reference19 = ref span4[num2]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 2009151u, new Vector3(-162.8291f, -192.52313f, 255.6344f), 613) { Fly = true @@ -190864,23 +230497,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list21 = new List>(num3); CollectionsMarshal.SetCount(list21, num3); - Span> span11 = CollectionsMarshal.AsSpan(list21); - span11[0] = null; - span11[1] = null; - ref List reference20 = ref span11[2]; - num4 = 1; - List list22 = new List(num4); - CollectionsMarshal.SetCount(list22, num4); - CollectionsMarshal.AsSpan(list22)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + Span> span21 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span21[num4] = null; + num4++; + span21[num4] = null; + num4++; + ref List reference20 = ref span21[num4]; + num5 = 1; + List list22 = new List(num5); + CollectionsMarshal.SetCount(list22, num5); + Span span22 = CollectionsMarshal.AsSpan(list22); + index3 = 0; + span22[index3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference20 = list22; - span11[3] = null; - span11[4] = null; - span11[5] = null; + num4++; + span21[num4] = null; + num4++; + span21[num4] = null; + num4++; + span21[num4] = null; obj11.RequiredQuestVariables = list21; reference19 = obj11; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference21 = ref span[2]; + num++; + ref QuestSequence reference21 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -190888,13 +230530,15 @@ public static class AssemblyQuestLoader num2 = 2; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span12 = CollectionsMarshal.AsSpan(list23); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.55026f, -119.58932f, -234.19606f), 613) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.55026f, -119.58932f, -234.19606f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span12[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span23[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj12.Steps = list23; reference21 = obj12; questRoot.QuestSequence = list2; @@ -190904,24 +230548,30 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "plogon_enjoyer"; + Span span24 = CollectionsMarshal.AsSpan(list24); + index = 0; + span24[index] = "plogon_enjoyer"; questRoot2.Author = list24; - num = 3; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span13 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference22 = ref span13[0]; + index = 3; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + Span span25 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference22 = ref span25[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj13.Steps = list26; reference22 = obj13; - ref QuestSequence reference23 = ref span13[1]; + num++; + ref QuestSequence reference23 = ref span25[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -190929,61 +230579,83 @@ public static class AssemblyQuestLoader num2 = 7; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span14 = CollectionsMarshal.AsSpan(list27); - span14[0] = new QuestStep(EInteractionType.None, null, null, 613) + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - ref QuestStep reference24 = ref span14[1]; + index2++; + ref QuestStep reference24 = ref span27[index2]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, null, new Vector3(-727.74854f, 4.2885633f, 188.58618f), 613) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span15 = CollectionsMarshal.AsSpan(list28); - span15[0] = 8245u; - span15[1] = 8246u; + num4 = 2; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span28[num3] = 8245u; + num3++; + span28[num3] = 8246u; obj15.KillEnemyDataIds = list28; num3 = 6; List> list29 = new List>(num3); CollectionsMarshal.SetCount(list29, num3); - Span> span16 = CollectionsMarshal.AsSpan(list29); - span16[0] = null; - span16[1] = null; - ref List reference25 = ref span16[2]; - num4 = 1; - List list30 = new List(num4); - CollectionsMarshal.SetCount(list30, num4); - CollectionsMarshal.AsSpan(list30)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span> span29 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + ref List reference25 = ref span29[num4]; + index3 = 1; + List list30 = new List(index3); + CollectionsMarshal.SetCount(list30, index3); + Span span30 = CollectionsMarshal.AsSpan(list30); + num5 = 0; + span30[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference25 = list30; - span16[3] = null; - span16[4] = null; - span16[5] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; obj15.RequiredQuestVariables = list29; reference24 = obj15; - ref QuestStep reference26 = ref span14[2]; + index2++; + ref QuestStep reference26 = ref span27[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1024320u, new Vector3(-727.74854f, 4.2885633f, 188.58618f), 613); - num3 = 6; - List> list31 = new List>(num3); - CollectionsMarshal.SetCount(list31, num3); - Span> span17 = CollectionsMarshal.AsSpan(list31); - span17[0] = null; - span17[1] = null; - ref List reference27 = ref span17[2]; - num4 = 1; - List list32 = new List(num4); - CollectionsMarshal.SetCount(list32, num4); - CollectionsMarshal.AsSpan(list32)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list31 = new List>(num4); + CollectionsMarshal.SetCount(list31, num4); + Span> span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + ref List reference27 = ref span31[num3]; + num5 = 1; + List list32 = new List(num5); + CollectionsMarshal.SetCount(list32, num5); + Span span32 = CollectionsMarshal.AsSpan(list32); + index3 = 0; + span32[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference27 = list32; - span17[3] = null; - span17[4] = null; - span17[5] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; questStep.RequiredQuestVariables = list31; reference26 = questStep; - ref QuestStep reference28 = ref span14[3]; + index2++; + ref QuestStep reference28 = ref span27[index2]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, null, new Vector3(-869.9321f, 36.052956f, 280.29297f), 613) { Fly = true, @@ -190992,113 +230664,156 @@ public static class AssemblyQuestLoader num3 = 3; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - Span span18 = CollectionsMarshal.AsSpan(list33); - span18[0] = 8247u; - span18[1] = 8248u; - span18[2] = 8249u; + Span span33 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span33[num4] = 8247u; + num4++; + span33[num4] = 8248u; + num4++; + span33[num4] = 8249u; obj16.KillEnemyDataIds = list33; - num3 = 6; - List> list34 = new List>(num3); - CollectionsMarshal.SetCount(list34, num3); - Span> span19 = CollectionsMarshal.AsSpan(list34); - span19[0] = null; - span19[1] = null; - ref List reference29 = ref span19[2]; - num4 = 1; - List list35 = new List(num4); - CollectionsMarshal.SetCount(list35, num4); - CollectionsMarshal.AsSpan(list35)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list34 = new List>(num4); + CollectionsMarshal.SetCount(list34, num4); + Span> span34 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + ref List reference29 = ref span34[num3]; + index3 = 1; + List list35 = new List(index3); + CollectionsMarshal.SetCount(list35, index3); + Span span35 = CollectionsMarshal.AsSpan(list35); + num5 = 0; + span35[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference29 = list35; - span19[3] = null; - span19[4] = null; - span19[5] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = null; obj16.RequiredQuestVariables = list34; reference28 = obj16; - ref QuestStep reference30 = ref span14[4]; + index2++; + ref QuestStep reference30 = ref span27[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1024322u, new Vector3(-869.9321f, 36.052956f, 280.29297f), 613); num3 = 6; List> list36 = new List>(num3); CollectionsMarshal.SetCount(list36, num3); - Span> span20 = CollectionsMarshal.AsSpan(list36); - span20[0] = null; - span20[1] = null; - ref List reference31 = ref span20[2]; - num4 = 1; - List list37 = new List(num4); - CollectionsMarshal.SetCount(list37, num4); - CollectionsMarshal.AsSpan(list37)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span> span36 = CollectionsMarshal.AsSpan(list36); + num4 = 0; + span36[num4] = null; + num4++; + span36[num4] = null; + num4++; + ref List reference31 = ref span36[num4]; + num5 = 1; + List list37 = new List(num5); + CollectionsMarshal.SetCount(list37, num5); + Span span37 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span37[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference31 = list37; - span20[3] = null; - span20[4] = null; - span20[5] = null; + num4++; + span36[num4] = null; + num4++; + span36[num4] = null; + num4++; + span36[num4] = null; questStep2.RequiredQuestVariables = list36; reference30 = questStep2; - ref QuestStep reference32 = ref span14[5]; + index2++; + ref QuestStep reference32 = ref span27[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(-607.43207f, 7.033699f, 184.71848f), 613) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span21 = CollectionsMarshal.AsSpan(list38); - span21[0] = 8244u; - span21[1] = 8246u; + num4 = 2; + List list38 = new List(num4); + CollectionsMarshal.SetCount(list38, num4); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = 8244u; + num3++; + span38[num3] = 8246u; obj17.KillEnemyDataIds = list38; num3 = 6; List> list39 = new List>(num3); CollectionsMarshal.SetCount(list39, num3); - Span> span22 = CollectionsMarshal.AsSpan(list39); - span22[0] = null; - span22[1] = null; - ref List reference33 = ref span22[2]; - num4 = 1; - List list40 = new List(num4); - CollectionsMarshal.SetCount(list40, num4); - CollectionsMarshal.AsSpan(list40)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + Span> span39 = CollectionsMarshal.AsSpan(list39); + num4 = 0; + span39[num4] = null; + num4++; + span39[num4] = null; + num4++; + ref List reference33 = ref span39[num4]; + index3 = 1; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + Span span40 = CollectionsMarshal.AsSpan(list40); + num5 = 0; + span40[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference33 = list40; - span22[3] = null; - span22[4] = null; - span22[5] = null; + num4++; + span39[num4] = null; + num4++; + span39[num4] = null; + num4++; + span39[num4] = null; obj17.RequiredQuestVariables = list39; reference32 = obj17; - ref QuestStep reference34 = ref span14[6]; + index2++; + ref QuestStep reference34 = ref span27[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1024318u, new Vector3(-607.7821f, 7.029549f, 184.83252f), 613); - num3 = 6; - List> list41 = new List>(num3); - CollectionsMarshal.SetCount(list41, num3); - Span> span23 = CollectionsMarshal.AsSpan(list41); - span23[0] = null; - span23[1] = null; - ref List reference35 = ref span23[2]; - num4 = 1; - List list42 = new List(num4); - CollectionsMarshal.SetCount(list42, num4); - CollectionsMarshal.AsSpan(list42)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list41 = new List>(num4); + CollectionsMarshal.SetCount(list41, num4); + Span> span41 = CollectionsMarshal.AsSpan(list41); + num3 = 0; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + ref List reference35 = ref span41[num3]; + num5 = 1; + List list42 = new List(num5); + CollectionsMarshal.SetCount(list42, num5); + Span span42 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span42[index3] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference35 = list42; - span23[3] = null; - span23[4] = null; - span23[5] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = null; questStep3.RequiredQuestVariables = list41; reference34 = questStep3; obj14.Steps = list27; reference23 = obj14; - ref QuestSequence reference36 = ref span13[2]; + num++; + ref QuestSequence reference36 = ref span25[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span24 = CollectionsMarshal.AsSpan(list43); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.55026f, -119.58932f, -234.19606f), 613) + index2 = 2; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.55026f, -119.58932f, -234.19606f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span24[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + num2++; + span43[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj18.Steps = list43; reference36 = obj18; questRoot2.QuestSequence = list25; @@ -191108,13 +230823,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "pot0to"; + Span span44 = CollectionsMarshal.AsSpan(list44); + index = 0; + span44[index] = "pot0to"; questRoot3.Author = list44; - num = 3; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span25 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference37 = ref span25[0]; + index = 3; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + Span span45 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference37 = ref span45[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -191122,19 +230840,23 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj19.Steps = list46; reference37 = obj19; - ref QuestSequence reference38 = ref span25[1]; + num++; + ref QuestSequence reference38 = ref span45[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span26 = CollectionsMarshal.AsSpan(list47); - ref QuestStep reference39 = ref span26[0]; + index2 = 5; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + ref QuestStep reference39 = ref span47[num2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 8250u, new Vector3(429.41656f, -0.5f, 506.90598f), 613) { Fly = true, @@ -191143,49 +230865,76 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = 8250u; + Span span48 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span48[num4] = 8250u; obj21.KillEnemyDataIds = list48; obj21.CombatItemUse = new CombatItemUse { ItemId = 2002424u, Condition = ECombatItemUseCondition.Incapacitated }; - num3 = 6; - List> list49 = new List>(num3); - CollectionsMarshal.SetCount(list49, num3); - Span> span27 = CollectionsMarshal.AsSpan(list49); - span27[0] = null; - span27[1] = null; - span27[2] = null; - ref List reference40 = ref span27[3]; - num4 = 18; - List list50 = new List(num4); - CollectionsMarshal.SetCount(list50, num4); - Span span28 = CollectionsMarshal.AsSpan(list50); - span28[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span28[1] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span28[2] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); - span28[3] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); - span28[4] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); - span28[5] = new QuestWorkValue((byte)1, (byte)10, EQuestWorkMode.Bitwise); - span28[6] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span28[7] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); - span28[8] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); - span28[9] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); - span28[10] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); - span28[11] = new QuestWorkValue((byte)2, (byte)10, EQuestWorkMode.Bitwise); - span28[12] = new QuestWorkValue((byte)3, (byte)1, EQuestWorkMode.Bitwise); - span28[13] = new QuestWorkValue((byte)3, (byte)2, EQuestWorkMode.Bitwise); - span28[14] = new QuestWorkValue((byte)3, (byte)5, EQuestWorkMode.Bitwise); - span28[15] = new QuestWorkValue((byte)3, (byte)7, EQuestWorkMode.Bitwise); - span28[16] = new QuestWorkValue((byte)3, (byte)8, EQuestWorkMode.Bitwise); - span28[17] = new QuestWorkValue((byte)3, (byte)10, EQuestWorkMode.Bitwise); + num4 = 6; + List> list49 = new List>(num4); + CollectionsMarshal.SetCount(list49, num4); + Span> span49 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span49[num3] = null; + num3++; + span49[num3] = null; + num3++; + span49[num3] = null; + num3++; + ref List reference40 = ref span49[num3]; + index3 = 18; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + Span span50 = CollectionsMarshal.AsSpan(list50); + num5 = 0; + span50[num5] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue((byte)1, (byte)10, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue((byte)2, (byte)10, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue((byte)3, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue((byte)3, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue((byte)3, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue((byte)3, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue((byte)3, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue((byte)3, (byte)10, EQuestWorkMode.Bitwise); reference40 = list50; - span27[4] = null; - span27[5] = null; + num3++; + span49[num3] = null; + num3++; + span49[num3] = null; obj21.RequiredQuestVariables = list49; reference39 = obj21; - ref QuestStep reference41 = ref span26[1]; + num2++; + ref QuestStep reference41 = ref span47[num2]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, 8250u, new Vector3(253.2539f, -0.5f, 479.6062f), 613) { Fly = true, @@ -191194,49 +230943,76 @@ public static class AssemblyQuestLoader num3 = 1; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = 8250u; + Span span51 = CollectionsMarshal.AsSpan(list51); + num4 = 0; + span51[num4] = 8250u; obj22.KillEnemyDataIds = list51; obj22.CombatItemUse = new CombatItemUse { ItemId = 2002424u, Condition = ECombatItemUseCondition.Incapacitated }; - num3 = 6; - List> list52 = new List>(num3); - CollectionsMarshal.SetCount(list52, num3); - Span> span29 = CollectionsMarshal.AsSpan(list52); - span29[0] = null; - span29[1] = null; - span29[2] = null; - ref List reference42 = ref span29[3]; - num4 = 18; - List list53 = new List(num4); - CollectionsMarshal.SetCount(list53, num4); - Span span30 = CollectionsMarshal.AsSpan(list53); - span30[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span30[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); - span30[2] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); - span30[3] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); - span30[4] = new QuestWorkValue((byte)1, (byte)9, EQuestWorkMode.Bitwise); - span30[5] = new QuestWorkValue((byte)1, (byte)10, EQuestWorkMode.Bitwise); - span30[6] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span30[7] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); - span30[8] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); - span30[9] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); - span30[10] = new QuestWorkValue((byte)2, (byte)9, EQuestWorkMode.Bitwise); - span30[11] = new QuestWorkValue((byte)2, (byte)10, EQuestWorkMode.Bitwise); - span30[12] = new QuestWorkValue((byte)3, (byte)1, EQuestWorkMode.Bitwise); - span30[13] = new QuestWorkValue((byte)3, (byte)3, EQuestWorkMode.Bitwise); - span30[14] = new QuestWorkValue((byte)3, (byte)6, EQuestWorkMode.Bitwise); - span30[15] = new QuestWorkValue((byte)3, (byte)8, EQuestWorkMode.Bitwise); - span30[16] = new QuestWorkValue((byte)3, (byte)9, EQuestWorkMode.Bitwise); - span30[17] = new QuestWorkValue((byte)3, (byte)10, EQuestWorkMode.Bitwise); + num4 = 6; + List> list52 = new List>(num4); + CollectionsMarshal.SetCount(list52, num4); + Span> span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + ref List reference42 = ref span52[num3]; + num5 = 18; + List list53 = new List(num5); + CollectionsMarshal.SetCount(list53, num5); + Span span53 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span53[index3] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = new QuestWorkValue((byte)1, (byte)9, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = new QuestWorkValue((byte)1, (byte)10, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = new QuestWorkValue((byte)2, (byte)9, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = new QuestWorkValue((byte)2, (byte)10, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = new QuestWorkValue((byte)3, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = new QuestWorkValue((byte)3, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = new QuestWorkValue((byte)3, (byte)6, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = new QuestWorkValue((byte)3, (byte)8, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = new QuestWorkValue((byte)3, (byte)9, EQuestWorkMode.Bitwise); + index3++; + span53[index3] = new QuestWorkValue((byte)3, (byte)10, EQuestWorkMode.Bitwise); reference42 = list53; - span29[4] = null; - span29[5] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = null; obj22.RequiredQuestVariables = list52; reference41 = obj22; - ref QuestStep reference43 = ref span26[2]; + num2++; + ref QuestStep reference43 = ref span47[num2]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 8250u, new Vector3(94.01074f, -0.5f, 491.844f), 613) { Fly = true, @@ -191245,49 +231021,76 @@ public static class AssemblyQuestLoader num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = 8250u; + Span span54 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span54[num4] = 8250u; obj23.KillEnemyDataIds = list54; obj23.CombatItemUse = new CombatItemUse { ItemId = 2002424u, Condition = ECombatItemUseCondition.Incapacitated }; - num3 = 6; - List> list55 = new List>(num3); - CollectionsMarshal.SetCount(list55, num3); - Span> span31 = CollectionsMarshal.AsSpan(list55); - span31[0] = null; - span31[1] = null; - span31[2] = null; - ref List reference44 = ref span31[3]; - num4 = 18; - List list56 = new List(num4); - CollectionsMarshal.SetCount(list56, num4); - Span span32 = CollectionsMarshal.AsSpan(list56); - span32[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span32[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); - span32[2] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); - span32[3] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); - span32[4] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); - span32[5] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); - span32[6] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); - span32[7] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); - span32[8] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); - span32[9] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); - span32[10] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); - span32[11] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); - span32[12] = new QuestWorkValue((byte)3, (byte)2, EQuestWorkMode.Bitwise); - span32[13] = new QuestWorkValue((byte)3, (byte)3, EQuestWorkMode.Bitwise); - span32[14] = new QuestWorkValue((byte)3, (byte)4, EQuestWorkMode.Bitwise); - span32[15] = new QuestWorkValue((byte)3, (byte)5, EQuestWorkMode.Bitwise); - span32[16] = new QuestWorkValue((byte)3, (byte)6, EQuestWorkMode.Bitwise); - span32[17] = new QuestWorkValue((byte)3, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List> list55 = new List>(num4); + CollectionsMarshal.SetCount(list55, num4); + Span> span55 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span55[num3] = null; + num3++; + span55[num3] = null; + num3++; + span55[num3] = null; + num3++; + ref List reference44 = ref span55[num3]; + index3 = 18; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + Span span56 = CollectionsMarshal.AsSpan(list56); + num5 = 0; + span56[num5] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span56[num5] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span56[num5] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span56[num5] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span56[num5] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span56[num5] = new QuestWorkValue((byte)1, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span56[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span56[num5] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span56[num5] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span56[num5] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span56[num5] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span56[num5] = new QuestWorkValue((byte)2, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span56[num5] = new QuestWorkValue((byte)3, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span56[num5] = new QuestWorkValue((byte)3, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span56[num5] = new QuestWorkValue((byte)3, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span56[num5] = new QuestWorkValue((byte)3, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span56[num5] = new QuestWorkValue((byte)3, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span56[num5] = new QuestWorkValue((byte)3, (byte)8, EQuestWorkMode.Bitwise); reference44 = list56; - span31[4] = null; - span31[5] = null; + num3++; + span55[num3] = null; + num3++; + span55[num3] = null; obj23.RequiredQuestVariables = list55; reference43 = obj23; - ref QuestStep reference45 = ref span26[3]; + num2++; + ref QuestStep reference45 = ref span47[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, null, new Vector3(-192.0653f, -0.5f, 628.25964f), 613) { Fly = true, @@ -191296,49 +231099,76 @@ public static class AssemblyQuestLoader num3 = 1; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = 8250u; + Span span57 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span57[num4] = 8250u; obj24.KillEnemyDataIds = list57; obj24.CombatItemUse = new CombatItemUse { ItemId = 2002424u, Condition = ECombatItemUseCondition.Incapacitated }; - num3 = 6; - List> list58 = new List>(num3); - CollectionsMarshal.SetCount(list58, num3); - Span> span33 = CollectionsMarshal.AsSpan(list58); - span33[0] = null; - span33[1] = null; - span33[2] = null; - ref List reference46 = ref span33[3]; - num4 = 18; - List list59 = new List(num4); - CollectionsMarshal.SetCount(list59, num4); - Span span34 = CollectionsMarshal.AsSpan(list59); - span34[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); - span34[1] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); - span34[2] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); - span34[3] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); - span34[4] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); - span34[5] = new QuestWorkValue((byte)1, (byte)9, EQuestWorkMode.Bitwise); - span34[6] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); - span34[7] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); - span34[8] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); - span34[9] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); - span34[10] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); - span34[11] = new QuestWorkValue((byte)2, (byte)9, EQuestWorkMode.Bitwise); - span34[12] = new QuestWorkValue((byte)3, (byte)1, EQuestWorkMode.Bitwise); - span34[13] = new QuestWorkValue((byte)3, (byte)4, EQuestWorkMode.Bitwise); - span34[14] = new QuestWorkValue((byte)3, (byte)5, EQuestWorkMode.Bitwise); - span34[15] = new QuestWorkValue((byte)3, (byte)6, EQuestWorkMode.Bitwise); - span34[16] = new QuestWorkValue((byte)3, (byte)7, EQuestWorkMode.Bitwise); - span34[17] = new QuestWorkValue((byte)3, (byte)9, EQuestWorkMode.Bitwise); + num4 = 6; + List> list58 = new List>(num4); + CollectionsMarshal.SetCount(list58, num4); + Span> span58 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + span58[num3] = null; + num3++; + span58[num3] = null; + num3++; + span58[num3] = null; + num3++; + ref List reference46 = ref span58[num3]; + num5 = 18; + List list59 = new List(num5); + CollectionsMarshal.SetCount(list59, num5); + Span span59 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span59[index3] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = new QuestWorkValue((byte)1, (byte)5, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = new QuestWorkValue((byte)1, (byte)6, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = new QuestWorkValue((byte)1, (byte)9, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = new QuestWorkValue((byte)2, (byte)5, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = new QuestWorkValue((byte)2, (byte)6, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = new QuestWorkValue((byte)2, (byte)9, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = new QuestWorkValue((byte)3, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = new QuestWorkValue((byte)3, (byte)4, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = new QuestWorkValue((byte)3, (byte)5, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = new QuestWorkValue((byte)3, (byte)6, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = new QuestWorkValue((byte)3, (byte)7, EQuestWorkMode.Bitwise); + index3++; + span59[index3] = new QuestWorkValue((byte)3, (byte)9, EQuestWorkMode.Bitwise); reference46 = list59; - span33[4] = null; - span33[5] = null; + num3++; + span58[num3] = null; + num3++; + span58[num3] = null; obj24.RequiredQuestVariables = list58; reference45 = obj24; - ref QuestStep reference47 = ref span26[4]; + num2++; + ref QuestStep reference47 = ref span47[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, null, new Vector3(-370.41278f, -0.5f, 863.64526f), 613) { Fly = true, @@ -191347,51 +231177,78 @@ public static class AssemblyQuestLoader num3 = 1; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = 8250u; + Span span60 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span60[num4] = 8250u; obj25.KillEnemyDataIds = list60; obj25.CombatItemUse = new CombatItemUse { ItemId = 2002424u, Condition = ECombatItemUseCondition.Incapacitated }; - num3 = 6; - List> list61 = new List>(num3); - CollectionsMarshal.SetCount(list61, num3); - Span> span35 = CollectionsMarshal.AsSpan(list61); - span35[0] = null; - span35[1] = null; - span35[2] = null; - ref List reference48 = ref span35[3]; - num4 = 18; - List list62 = new List(num4); - CollectionsMarshal.SetCount(list62, num4); - Span span36 = CollectionsMarshal.AsSpan(list62); - span36[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); - span36[1] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); - span36[2] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); - span36[3] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); - span36[4] = new QuestWorkValue((byte)1, (byte)9, EQuestWorkMode.Bitwise); - span36[5] = new QuestWorkValue((byte)1, (byte)10, EQuestWorkMode.Bitwise); - span36[6] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); - span36[7] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); - span36[8] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); - span36[9] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); - span36[10] = new QuestWorkValue((byte)2, (byte)9, EQuestWorkMode.Bitwise); - span36[11] = new QuestWorkValue((byte)2, (byte)10, EQuestWorkMode.Bitwise); - span36[12] = new QuestWorkValue((byte)3, (byte)2, EQuestWorkMode.Bitwise); - span36[13] = new QuestWorkValue((byte)3, (byte)3, EQuestWorkMode.Bitwise); - span36[14] = new QuestWorkValue((byte)3, (byte)4, EQuestWorkMode.Bitwise); - span36[15] = new QuestWorkValue((byte)3, (byte)7, EQuestWorkMode.Bitwise); - span36[16] = new QuestWorkValue((byte)3, (byte)9, EQuestWorkMode.Bitwise); - span36[17] = new QuestWorkValue((byte)3, (byte)10, EQuestWorkMode.Bitwise); + num4 = 6; + List> list61 = new List>(num4); + CollectionsMarshal.SetCount(list61, num4); + Span> span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + ref List reference48 = ref span61[num3]; + index3 = 18; + List list62 = new List(index3); + CollectionsMarshal.SetCount(list62, index3); + Span span62 = CollectionsMarshal.AsSpan(list62); + num5 = 0; + span62[num5] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span62[num5] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span62[num5] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span62[num5] = new QuestWorkValue((byte)1, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span62[num5] = new QuestWorkValue((byte)1, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span62[num5] = new QuestWorkValue((byte)1, (byte)10, EQuestWorkMode.Bitwise); + num5++; + span62[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span62[num5] = new QuestWorkValue((byte)2, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span62[num5] = new QuestWorkValue((byte)2, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span62[num5] = new QuestWorkValue((byte)2, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span62[num5] = new QuestWorkValue((byte)2, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span62[num5] = new QuestWorkValue((byte)2, (byte)10, EQuestWorkMode.Bitwise); + num5++; + span62[num5] = new QuestWorkValue((byte)3, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span62[num5] = new QuestWorkValue((byte)3, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span62[num5] = new QuestWorkValue((byte)3, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span62[num5] = new QuestWorkValue((byte)3, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span62[num5] = new QuestWorkValue((byte)3, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span62[num5] = new QuestWorkValue((byte)3, (byte)10, EQuestWorkMode.Bitwise); reference48 = list62; - span35[4] = null; - span35[5] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; obj25.RequiredQuestVariables = list61; reference47 = obj25; obj20.Steps = list47; reference38 = obj20; - ref QuestSequence reference49 = ref span25[2]; + num++; + ref QuestSequence reference49 = ref span45[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -191399,13 +231256,15 @@ public static class AssemblyQuestLoader num2 = 2; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span37 = CollectionsMarshal.AsSpan(list63); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.55026f, -119.58932f, -234.19606f), 613) + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.55026f, -119.58932f, -234.19606f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - span37[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + index2++; + span63[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj26.Steps = list63; reference49 = obj26; questRoot3.QuestSequence = list45; @@ -191415,21 +231274,26 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + Span span64 = CollectionsMarshal.AsSpan(list64); + index = 0; + span64[index] = "liza"; questRoot4.Author = list64; - num = 5; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span38 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference50 = ref span38[0]; + index = 5; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + Span span65 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference50 = ref span65[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018994u, new Vector3(49.240845f, 4.0000005f, 55.77173f), 628) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018994u, new Vector3(49.240845f, 4.0000005f, 55.77173f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -191447,7 +231311,8 @@ public static class AssemblyQuestLoader }; obj27.Steps = list66; reference50 = obj27; - ref QuestSequence reference51 = ref span38[1]; + num++; + ref QuestSequence reference51 = ref span65[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -191455,21 +231320,27 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1024140u, new Vector3(-40.665344f, 15.000004f, 42.22168f), 628); + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.Interact, 1024140u, new Vector3(-40.665344f, 15.000004f, 42.22168f), 628); obj28.Steps = list67; reference51 = obj28; - ref QuestSequence reference52 = ref span38[2]; + num++; + ref QuestSequence reference52 = ref span65[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1024155u, new Vector3(-58.18268f, 79.05602f, 43.9917f), 628); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.Interact, 1024155u, new Vector3(-58.18268f, 79.05602f, 43.9917f), 628); obj29.Steps = list68; reference52 = obj29; - ref QuestSequence reference53 = ref span38[3]; + num++; + ref QuestSequence reference53 = ref span65[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -191477,18 +231348,23 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1024160u, new Vector3(-11.581665f, 0.04687078f, -3.7385254f), 735); + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.Interact, 1024160u, new Vector3(-11.581665f, 0.04687078f, -3.7385254f), 735); obj30.Steps = list69; reference53 = obj30; - ref QuestSequence reference54 = ref span38[4]; + num++; + ref QuestSequence reference54 = ref span65[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024142u, new Vector3(-15.365906f, -1.1998292f, -4.837158f), 736) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024142u, new Vector3(-15.365906f, -1.1998292f, -4.837158f), 736) { NextQuestId = new QuestId(3004) }; @@ -191501,13 +231377,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + Span span71 = CollectionsMarshal.AsSpan(list71); + index = 0; + span71[index] = "liza"; questRoot5.Author = list71; - num = 6; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span39 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference55 = ref span39[0]; + index = 6; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + Span span72 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference55 = ref span72[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -191515,22 +231394,28 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024142u, new Vector3(-15.365906f, -1.1998292f, -4.837158f), 736); + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024142u, new Vector3(-15.365906f, -1.1998292f, -4.837158f), 736); obj32.Steps = list73; reference55 = obj32; - span39[1] = new QuestSequence + num++; + span72[num] = new QuestSequence { Sequence = 1 }; - ref QuestSequence reference56 = ref span39[2]; + num++; + ref QuestSequence reference56 = ref span72[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Duty, null, null, 736) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.Duty, null, null, 736) { DutyOptions = new DutyOptions { @@ -191539,11 +231424,13 @@ public static class AssemblyQuestLoader }; obj33.Steps = list74; reference56 = obj33; - span39[3] = new QuestSequence + num++; + span72[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference57 = ref span39[4]; + num++; + ref QuestSequence reference57 = ref span72[num]; QuestSequence obj34 = new QuestSequence { Sequence = 4 @@ -191551,18 +231438,23 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1024146u, new Vector3(-11.001831f, -3.094841E-06f, -6.8513794f), 735); + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.Interact, 1024146u, new Vector3(-11.001831f, -3.094841E-06f, -6.8513794f), 735); obj34.Steps = list75; reference57 = obj34; - ref QuestSequence reference58 = ref span39[5]; + num++; + ref QuestSequence reference58 = ref span72[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) { StopDistance = 7f, NextQuestId = new QuestId(3089) @@ -191576,13 +231468,16 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "liza"; + Span span77 = CollectionsMarshal.AsSpan(list77); + index = 0; + span77[index] = "liza"; questRoot6.Author = list77; - num = 2; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span40 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference59 = ref span40[0]; + index = 2; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + Span span78 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference59 = ref span78[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -191590,8 +231485,9 @@ public static class AssemblyQuestLoader num2 = 2; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span41 = CollectionsMarshal.AsSpan(list79); - span41[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-69.61145f, 0.00999999f, 62.405437f), 635) + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-69.61145f, 0.00999999f, 62.405437f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -191602,18 +231498,22 @@ public static class AssemblyQuestLoader } } }; - span41[1] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); + index2++; + span79[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); obj36.Steps = list79; reference59 = obj36; - ref QuestSequence reference60 = ref span40[1]; + num++; + ref QuestSequence reference60 = ref span78[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020337u, new Vector3(171.31299f, 13.02367f, -89.951965f), 635) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020337u, new Vector3(171.31299f, 13.02367f, -89.951965f), 635) { AethernetShortcut = new AethernetShortcut { @@ -191630,13 +231530,16 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "liza"; + Span span81 = CollectionsMarshal.AsSpan(list81); + index = 0; + span81[index] = "liza"; questRoot7.Author = list81; - num = 7; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span42 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference61 = ref span42[0]; + index = 7; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + Span span82 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference61 = ref span82[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -191644,7 +231547,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024349u, new Vector3(-27.054321f, -1.3048761E-05f, -69.596436f), 628) + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024349u, new Vector3(-27.054321f, -1.3048761E-05f, -69.596436f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -191657,18 +231562,22 @@ public static class AssemblyQuestLoader }; obj38.Steps = list83; reference61 = obj38; - ref QuestSequence reference62 = ref span42[1]; + num++; + ref QuestSequence reference62 = ref span82[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1024350u, new Vector3(-36.02661f, 14.001708f, -45.39563f), 628); + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.Interact, 1024350u, new Vector3(-36.02661f, 14.001708f, -45.39563f), 628); obj39.Steps = list84; reference62 = obj39; - ref QuestSequence reference63 = ref span42[2]; + num++; + ref QuestSequence reference63 = ref span82[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -191676,12 +231585,16 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list85)[0]; + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + ref QuestStep reference64 = ref span85[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1024350u, new Vector3(-36.02661f, 14.001708f, -45.39563f), 628); num3 = 1; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = new DialogueChoice + Span span86 = CollectionsMarshal.AsSpan(list86); + num4 = 0; + span86[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB711_03008_Q1_000_000"), @@ -191691,78 +231604,108 @@ public static class AssemblyQuestLoader reference64 = questStep4; obj40.Steps = list85; reference63 = obj40; - ref QuestSequence reference65 = ref span42[3]; + num++; + ref QuestSequence reference65 = ref span82[num]; QuestSequence obj41 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span43 = CollectionsMarshal.AsSpan(list87); - ref QuestStep reference66 = ref span43[0]; + index2 = 4; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + ref QuestStep reference66 = ref span87[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1019000u, new Vector3(39.414062f, 4.49998f, -43.47296f), 628); - num3 = 6; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span44 = CollectionsMarshal.AsSpan(list88); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list88 = new List(num4); + CollectionsMarshal.SetCount(list88, num4); + Span span88 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = null; + num3++; + span88[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list88; reference66 = questStep5; - ref QuestStep reference67 = ref span43[1]; + num2++; + ref QuestStep reference67 = ref span87[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-93.72425f, 11.799999f, -147.28041f), 628); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - Span span45 = CollectionsMarshal.AsSpan(list89); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span89 = CollectionsMarshal.AsSpan(list89); + num4 = 0; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list89; skipConditions.StepIf = skipStepConditions; questStep6.SkipConditions = skipConditions; reference67 = questStep6; - ref QuestStep reference68 = ref span43[2]; + num2++; + ref QuestStep reference68 = ref span87[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1019034u, new Vector3(-95.84198f, 11.8f, -147.29541f), 628); - num3 = 6; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - Span span46 = CollectionsMarshal.AsSpan(list90); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list90 = new List(num4); + CollectionsMarshal.SetCount(list90, num4); + Span span90 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = null; + num3++; + span90[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list90; reference68 = questStep7; - ref QuestStep reference69 = ref span43[3]; + num2++; + ref QuestStep reference69 = ref span87[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1024409u, new Vector3(-20.920166f, 6.019962f, -133.31812f), 628); num3 = 6; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - Span span47 = CollectionsMarshal.AsSpan(list91); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span91 = CollectionsMarshal.AsSpan(list91); + num4 = 0; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list91; reference69 = questStep8; obj41.Steps = list87; reference65 = obj41; - ref QuestSequence reference70 = ref span42[4]; + num++; + ref QuestSequence reference70 = ref span82[num]; QuestSequence obj42 = new QuestSequence { Sequence = 4 @@ -191770,12 +231713,16 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list92)[0]; + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + ref QuestStep reference71 = ref span92[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1024351u, new Vector3(-36.270752f, 5.9819617f, -152.36133f), 628); - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new DialogueChoice + num4 = 1; + List list93 = new List(num4); + CollectionsMarshal.SetCount(list93, num4); + Span span93 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span93[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB711_03008_Q2_000_000"), @@ -191785,18 +231732,22 @@ public static class AssemblyQuestLoader reference71 = questStep9; obj42.Steps = list92; reference70 = obj42; - ref QuestSequence reference72 = ref span42[5]; + num++; + ref QuestSequence reference72 = ref span82[num]; QuestSequence obj43 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1024352u, new Vector3(24.093994f, 6.025086f, -134.02002f), 628); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.Interact, 1024352u, new Vector3(24.093994f, 6.025086f, -134.02002f), 628); obj43.Steps = list94; reference72 = obj43; - ref QuestSequence reference73 = ref span42[6]; + num++; + ref QuestSequence reference73 = ref span82[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -191804,7 +231755,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024355u, new Vector3(25.375732f, 6.0313134f, -119.432434f), 628) + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024355u, new Vector3(25.375732f, 6.0313134f, -119.432434f), 628) { NextQuestId = new QuestId(3020) }; @@ -191817,28 +231770,34 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + span96[index] = "liza"; questRoot8.Author = list96; - num = 13; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span48 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference74 = ref span48[0]; + index = 13; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + Span span97 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference74 = ref span97[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024836u, new Vector3(-788.2658f, 11.709066f, -283.0091f), 613) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024836u, new Vector3(-788.2658f, 11.709066f, -283.0091f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj45.Steps = list98; reference74 = obj45; - ref QuestSequence reference75 = ref span48[1]; + num++; + ref QuestSequence reference75 = ref span97[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -191846,28 +231805,33 @@ public static class AssemblyQuestLoader num2 = 2; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span49 = CollectionsMarshal.AsSpan(list99); - span49[0] = new QuestStep(EInteractionType.Interact, 1024622u, new Vector3(102.433716f, 0.2814351f, -550.9575f), 613) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.Interact, 1024622u, new Vector3(102.433716f, 0.2814351f, -550.9575f), 613) { TargetTerritoryId = (ushort)613, Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - span49[1] = new QuestStep(EInteractionType.Interact, 2009398u, new Vector3(279.4994f, 16.55597f, 844.541f), 613) + index2++; + span99[index2] = new QuestStep(EInteractionType.Interact, 2009398u, new Vector3(279.4994f, 16.55597f, 844.541f), 613) { Fly = true }; obj46.Steps = list99; reference75 = obj46; - ref QuestSequence reference76 = ref span48[2]; + num++; + ref QuestSequence reference76 = ref span97[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Duty, null, null, 613) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.Duty, null, null, 613) { DutyOptions = new DutyOptions { @@ -191876,11 +231840,13 @@ public static class AssemblyQuestLoader }; obj47.Steps = list100; reference76 = obj47; - span48[3] = new QuestSequence + num++; + span97[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference77 = ref span48[4]; + num++; + ref QuestSequence reference77 = ref span97[num]; QuestSequence obj48 = new QuestSequence { Sequence = 4 @@ -191888,63 +231854,88 @@ public static class AssemblyQuestLoader num2 = 3; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span50 = CollectionsMarshal.AsSpan(list101); - ref QuestStep reference78 = ref span50[0]; + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + ref QuestStep reference78 = ref span101[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1025142u, new Vector3(51.5907f, -90.000015f, -492.51547f), 764); num3 = 6; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span51 = CollectionsMarshal.AsSpan(list102); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span102 = CollectionsMarshal.AsSpan(list102); + num4 = 0; + span102[num4] = null; + num4++; + span102[num4] = null; + num4++; + span102[num4] = null; + num4++; + span102[num4] = null; + num4++; + span102[num4] = null; + num4++; + span102[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list102; reference78 = questStep10; - ref QuestStep reference79 = ref span50[1]; + index2++; + ref QuestStep reference79 = ref span101[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1025141u, new Vector3(55.161255f, -89.90002f, -459.0982f), 764); - num3 = 6; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - Span span52 = CollectionsMarshal.AsSpan(list103); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list103 = new List(num4); + CollectionsMarshal.SetCount(list103, num4); + Span span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list103; reference79 = questStep11; - ref QuestStep reference80 = ref span50[2]; + index2++; + ref QuestStep reference80 = ref span101[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1025143u, new Vector3(97.67297f, -89.90002f, -480.36932f), 764); num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span53 = CollectionsMarshal.AsSpan(list104); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span104 = CollectionsMarshal.AsSpan(list104); + num4 = 0; + span104[num4] = null; + num4++; + span104[num4] = null; + num4++; + span104[num4] = null; + num4++; + span104[num4] = null; + num4++; + span104[num4] = null; + num4++; + span104[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list104; reference80 = questStep12; obj48.Steps = list101; reference77 = obj48; - ref QuestSequence reference81 = ref span48[5]; + num++; + ref QuestSequence reference81 = ref span97[num]; QuestSequence obj49 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.Interact, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj49.Steps = list105; reference81 = obj49; - ref QuestSequence reference82 = ref span48[6]; + num++; + ref QuestSequence reference82 = ref span97[num]; QuestSequence obj50 = new QuestSequence { Sequence = 6 @@ -191952,25 +231943,31 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1025144u, new Vector3(8.804443f, -90f, -470.63403f), 764); + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.Interact, 1025144u, new Vector3(8.804443f, -90f, -470.63403f), 764); obj50.Steps = list106; reference82 = obj50; - ref QuestSequence reference83 = ref span48[7]; + num++; + ref QuestSequence reference83 = ref span97[num]; QuestSequence obj51 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1025148u, new Vector3(509.17822f, 23.72771f, -764.0345f), 614) + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.Interact, 1025148u, new Vector3(509.17822f, 23.72771f, -764.0345f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj51.Steps = list107; reference83 = obj51; - ref QuestSequence reference84 = ref span48[8]; + num++; + ref QuestSequence reference84 = ref span97[num]; QuestSequence obj52 = new QuestSequence { Sequence = 8 @@ -191978,7 +231975,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Duty, null, null, 614) + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.Duty, null, null, 614) { DutyOptions = new DutyOptions { @@ -191987,18 +231986,22 @@ public static class AssemblyQuestLoader }; obj52.Steps = list108; reference84 = obj52; - ref QuestSequence reference85 = ref span48[9]; + num++; + ref QuestSequence reference85 = ref span97[num]; QuestSequence obj53 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1025469u, new Vector3(505.5161f, 23.265062f, -768.6732f), 614); + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.Interact, 1025469u, new Vector3(505.5161f, 23.265062f, -768.6732f), 614); obj53.Steps = list109; reference85 = obj53; - ref QuestSequence reference86 = ref span48[10]; + num++; + ref QuestSequence reference86 = ref span97[num]; QuestSequence obj54 = new QuestSequence { Sequence = 10 @@ -192006,7 +232009,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list110)[0]; + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + ref QuestStep reference87 = ref span110[index2]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) { Fly = true, @@ -192017,10 +232022,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - num3 = 1; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = new DialogueChoice + num4 = 1; + List list111 = new List(num4); + CollectionsMarshal.SetCount(list111, num4); + Span span111 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span111[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDY301_03015_Q7_000_000") @@ -192029,18 +232036,22 @@ public static class AssemblyQuestLoader reference87 = obj55; obj54.Steps = list110; reference86 = obj54; - ref QuestSequence reference88 = ref span48[11]; + num++; + ref QuestSequence reference88 = ref span97[num]; QuestSequence obj56 = new QuestSequence { Sequence = 11 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1025168u, new Vector3(75.638916f, -89.90002f, -503.95975f), 764); + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.Interact, 1025168u, new Vector3(75.638916f, -89.90002f, -503.95975f), 764); obj56.Steps = list112; reference88 = obj56; - ref QuestSequence reference89 = ref span48[12]; + num++; + ref QuestSequence reference89 = ref span97[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -192048,7 +232059,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, NextQuestId = new QuestId(3016) @@ -192062,24 +232075,30 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "liza"; + Span span114 = CollectionsMarshal.AsSpan(list114); + index = 0; + span114[index] = "liza"; questRoot9.Author = list114; - num = 9; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span54 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference90 = ref span54[0]; + index = 9; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + Span span115 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference90 = ref span115[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); obj58.Steps = list116; reference90 = obj58; - ref QuestSequence reference91 = ref span54[1]; + num++; + ref QuestSequence reference91 = ref span115[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 @@ -192087,8 +232106,9 @@ public static class AssemblyQuestLoader num2 = 2; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span55 = CollectionsMarshal.AsSpan(list117); - span55[0] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) { TargetTerritoryId = (ushort)764, Fly = true, @@ -192099,18 +232119,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - span55[1] = new QuestStep(EInteractionType.Interact, 1025559u, new Vector3(61.753174f, -90.00002f, -478.11096f), 764); + index2++; + span117[index2] = new QuestStep(EInteractionType.Interact, 1025559u, new Vector3(61.753174f, -90.00002f, -478.11096f), 764); obj59.Steps = list117; reference91 = obj59; - ref QuestSequence reference92 = ref span54[2]; + num++; + ref QuestSequence reference92 = ref span115[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1025563u, new Vector3(-485.19116f, 68.82959f, 273.2738f), 614) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.Interact, 1025563u, new Vector3(-485.19116f, 68.82959f, 273.2738f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.DomanEnclave, @@ -192122,7 +232146,8 @@ public static class AssemblyQuestLoader }; obj60.Steps = list118; reference92 = obj60; - ref QuestSequence reference93 = ref span54[3]; + num++; + ref QuestSequence reference93 = ref span115[num]; QuestSequence obj61 = new QuestSequence { Sequence = 3 @@ -192130,7 +232155,9 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Duty, null, null, 614) + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.Duty, null, null, 614) { DutyOptions = new DutyOptions { @@ -192139,16 +232166,18 @@ public static class AssemblyQuestLoader }; obj61.Steps = list119; reference93 = obj61; - ref QuestSequence reference94 = ref span54[4]; + num++; + ref QuestSequence reference94 = ref span115[num]; QuestSequence obj62 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - Span span56 = CollectionsMarshal.AsSpan(list120); - span56[0] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) + index2 = 2; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) { TargetTerritoryId = (ushort)764, Fly = true, @@ -192159,10 +232188,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - span56[1] = new QuestStep(EInteractionType.Interact, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + num2++; + span120[num2] = new QuestStep(EInteractionType.Interact, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj62.Steps = list120; reference94 = obj62; - ref QuestSequence reference95 = ref span54[5]; + num++; + ref QuestSequence reference95 = ref span115[num]; QuestSequence obj63 = new QuestSequence { Sequence = 5 @@ -192170,25 +232201,32 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj63.Steps = list121; reference95 = obj63; - span54[6] = new QuestSequence + num++; + span115[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference96 = ref span54[7]; + num++; + ref QuestSequence reference96 = ref span115[num]; QuestSequence obj64 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.Interact, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj64.Steps = list122; reference96 = obj64; - ref QuestSequence reference97 = ref span54[8]; + num++; + ref QuestSequence reference97 = ref span115[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -192196,7 +232234,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, NextQuestId = new QuestId(3152) @@ -192210,21 +232250,26 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "WigglyMuffin"; + Span span124 = CollectionsMarshal.AsSpan(list124); + index = 0; + span124[index] = "WigglyMuffin"; questRoot10.Author = list124; - num = 3; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - Span span57 = CollectionsMarshal.AsSpan(list125); - ref QuestSequence reference98 = ref span57[0]; + index = 3; + List list125 = new List(index); + CollectionsMarshal.SetCount(list125, index); + Span span125 = CollectionsMarshal.AsSpan(list125); + num = 0; + ref QuestSequence reference98 = ref span125[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.AcceptQuest, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SkipConditions = new SkipConditions @@ -192237,7 +232282,8 @@ public static class AssemblyQuestLoader }; obj66.Steps = list126; reference98 = obj66; - ref QuestSequence reference99 = ref span57[1]; + num++; + ref QuestSequence reference99 = ref span125[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 @@ -192245,18 +232291,23 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 1004096u, new Vector3(-444.75476f, 25f, -324.26947f), 140); + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.Interact, 1004096u, new Vector3(-444.75476f, 25f, -324.26947f), 140); obj67.Steps = list127; reference99 = obj67; - ref QuestSequence reference100 = ref span57[2]; + num++; + ref QuestSequence reference100 = ref span125[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140) + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.CompleteQuest, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140) { NextQuestId = new QuestId(3018) }; @@ -192269,13 +232320,16 @@ public static class AssemblyQuestLoader num = 1; List list129 = new List(num); CollectionsMarshal.SetCount(list129, num); - CollectionsMarshal.AsSpan(list129)[0] = "WigglyMuffin"; + Span span129 = CollectionsMarshal.AsSpan(list129); + index = 0; + span129[index] = "WigglyMuffin"; questRoot11.Author = list129; - num = 4; - List list130 = new List(num); - CollectionsMarshal.SetCount(list130, num); - Span span58 = CollectionsMarshal.AsSpan(list130); - ref QuestSequence reference101 = ref span58[0]; + index = 4; + List list130 = new List(index); + CollectionsMarshal.SetCount(list130, index); + Span span130 = CollectionsMarshal.AsSpan(list130); + num = 0; + ref QuestSequence reference101 = ref span130[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -192283,7 +232337,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140) + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SkipConditions = new SkipConditions @@ -192296,18 +232352,22 @@ public static class AssemblyQuestLoader }; obj69.Steps = list131; reference101 = obj69; - ref QuestSequence reference102 = ref span58[1]; + num++; + ref QuestSequence reference102 = ref span130[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1004096u, new Vector3(-444.75476f, 25f, -324.26947f), 140); + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.Interact, 1004096u, new Vector3(-444.75476f, 25f, -324.26947f), 140); obj70.Steps = list132; reference102 = obj70; - ref QuestSequence reference103 = ref span58[2]; + num++; + ref QuestSequence reference103 = ref span130[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -192315,18 +232375,23 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140); + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.Interact, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140); obj71.Steps = list133; reference103 = obj71; - ref QuestSequence reference104 = ref span58[3]; + num++; + ref QuestSequence reference104 = ref span130[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024586u, new Vector3(-464.31683f, 23.008799f, -321.1872f), 140); + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024586u, new Vector3(-464.31683f, 23.008799f, -321.1872f), 140); obj72.Steps = list134; reference104 = obj72; questRoot11.QuestSequence = list130; @@ -192336,13 +232401,16 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "liza"; + Span span135 = CollectionsMarshal.AsSpan(list135); + index = 0; + span135[index] = "liza"; questRoot12.Author = list135; - num = 6; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span59 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference105 = ref span59[0]; + index = 6; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + Span span136 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference105 = ref span136[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 @@ -192350,7 +232418,9 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - ref QuestStep reference106 = ref CollectionsMarshal.AsSpan(list137)[0]; + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + ref QuestStep reference106 = ref span137[index2]; QuestStep obj74 = new QuestStep(EInteractionType.AcceptQuest, 1024355u, new Vector3(25.375732f, 6.0313134f, -119.432434f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -192365,7 +232435,9 @@ public static class AssemblyQuestLoader num3 = 1; List list138 = new List(num3); CollectionsMarshal.SetCount(list138, num3); - CollectionsMarshal.AsSpan(list138)[0] = new DialogueChoice + Span span138 = CollectionsMarshal.AsSpan(list138); + num4 = 0; + span138[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB721_03020_Q1_000_004"), @@ -192375,16 +232447,18 @@ public static class AssemblyQuestLoader reference106 = obj74; obj73.Steps = list137; reference105 = obj73; - ref QuestSequence reference107 = ref span59[1]; + num++; + ref QuestSequence reference107 = ref span136[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - Span span60 = CollectionsMarshal.AsSpan(list139); - ref QuestStep reference108 = ref span60[0]; + index2 = 3; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + Span span139 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + ref QuestStep reference108 = ref span139[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Interact, 1024711u, new Vector3(136.21729f, 12.000006f, -69.87109f), 628) { AethernetShortcut = new AethernetShortcut @@ -192393,19 +232467,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeSekiseigumiBarracks } }; - num3 = 6; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - Span span61 = CollectionsMarshal.AsSpan(list140); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list140 = new List(num4); + CollectionsMarshal.SetCount(list140, num4); + Span span140 = CollectionsMarshal.AsSpan(list140); + num3 = 0; + span140[num3] = null; + num3++; + span140[num3] = null; + num3++; + span140[num3] = null; + num3++; + span140[num3] = null; + num3++; + span140[num3] = null; + num3++; + span140[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj76.CompletionQuestVariablesFlags = list140; reference108 = obj76; - ref QuestStep reference109 = ref span60[1]; + num2++; + ref QuestStep reference109 = ref span139[num2]; QuestStep obj77 = new QuestStep(EInteractionType.Interact, 1019063u, new Vector3(3.3416748f, -6.6541724E-11f, -67.73486f), 628) { AethernetShortcut = new AethernetShortcut @@ -192417,32 +232498,46 @@ public static class AssemblyQuestLoader num3 = 6; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - Span span62 = CollectionsMarshal.AsSpan(list141); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span141 = CollectionsMarshal.AsSpan(list141); + num4 = 0; + span141[num4] = null; + num4++; + span141[num4] = null; + num4++; + span141[num4] = null; + num4++; + span141[num4] = null; + num4++; + span141[num4] = null; + num4++; + span141[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj77.CompletionQuestVariablesFlags = list141; reference109 = obj77; - ref QuestStep reference110 = ref span60[2]; + num2++; + ref QuestStep reference110 = ref span139[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1019039u, new Vector3(-35.111023f, 13.999897f, -64.042114f), 628); - num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span63 = CollectionsMarshal.AsSpan(list142); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list142 = new List(num4); + CollectionsMarshal.SetCount(list142, num4); + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list142; reference110 = questStep13; obj75.Steps = list139; reference107 = obj75; - ref QuestSequence reference111 = ref span59[2]; + num++; + ref QuestSequence reference111 = ref span136[num]; QuestSequence obj78 = new QuestSequence { Sequence = 2 @@ -192450,21 +232545,27 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1024705u, new Vector3(8.590759f, 4f, 35.171997f), 628); + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.Interact, 1024705u, new Vector3(8.590759f, 4f, 35.171997f), 628); obj78.Steps = list143; reference111 = obj78; - ref QuestSequence reference112 = ref span59[3]; + num++; + ref QuestSequence reference112 = ref span136[num]; QuestSequence obj79 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1024708u, new Vector3(98.83264f, 4.0000014f, 103.471436f), 628); + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.Interact, 1024708u, new Vector3(98.83264f, 4.0000014f, 103.471436f), 628); obj79.Steps = list144; reference112 = obj79; - ref QuestSequence reference113 = ref span59[4]; + num++; + ref QuestSequence reference113 = ref span136[num]; QuestSequence obj80 = new QuestSequence { Sequence = 4 @@ -192472,18 +232573,23 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1024709u, new Vector3(-108.01868f, -5.999997f, 70.23718f), 628); + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.Interact, 1024709u, new Vector3(-108.01868f, -5.999997f, 70.23718f), 628); obj80.Steps = list145; reference113 = obj80; - ref QuestSequence reference114 = ref span59[5]; + num++; + ref QuestSequence reference114 = ref span136[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024710u, new Vector3(835.5382f, 5.9230075f, 834.6837f), 613) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024710u, new Vector3(835.5382f, 5.9230075f, 834.6837f), 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -192502,13 +232608,16 @@ public static class AssemblyQuestLoader num = 1; List list147 = new List(num); CollectionsMarshal.SetCount(list147, num); - CollectionsMarshal.AsSpan(list147)[0] = "liza"; + Span span147 = CollectionsMarshal.AsSpan(list147); + index = 0; + span147[index] = "liza"; questRoot13.Author = list147; - num = 8; - List list148 = new List(num); - CollectionsMarshal.SetCount(list148, num); - Span span64 = CollectionsMarshal.AsSpan(list148); - ref QuestSequence reference115 = ref span64[0]; + index = 8; + List list148 = new List(index); + CollectionsMarshal.SetCount(list148, index); + Span span148 = CollectionsMarshal.AsSpan(list148); + num = 0; + ref QuestSequence reference115 = ref span148[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 @@ -192516,24 +232625,30 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024710u, new Vector3(835.5382f, 5.9230075f, 834.6837f), 613); + Span span149 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span149[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024710u, new Vector3(835.5382f, 5.9230075f, 834.6837f), 613); obj82.Steps = list149; reference115 = obj82; - ref QuestSequence reference116 = ref span64[1]; + num++; + ref QuestSequence reference116 = ref span148[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1019166u, new Vector3(495.6587f, 29.394592f, 722.0111f), 613) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.Interact, 1019166u, new Vector3(495.6587f, 29.394592f, 722.0111f), 613) { Fly = true }; obj83.Steps = list150; reference116 = obj83; - ref QuestSequence reference117 = ref span64[2]; + num++; + ref QuestSequence reference117 = ref span148[num]; QuestSequence obj84 = new QuestSequence { Sequence = 2 @@ -192541,24 +232656,30 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1024717u, new Vector3(503.44092f, 28.738373f, 737.4226f), 613); + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.Interact, 1024717u, new Vector3(503.44092f, 28.738373f, 737.4226f), 613); obj84.Steps = list151; reference117 = obj84; - ref QuestSequence reference118 = ref span64[3]; + num++; + ref QuestSequence reference118 = ref span148[num]; QuestSequence obj85 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 2008628u, new Vector3(633.81384f, 1.4800415f, 216.26611f), 613) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.Interact, 2008628u, new Vector3(633.81384f, 1.4800415f, 216.26611f), 613) { Fly = true }; obj85.Steps = list152; reference118 = obj85; - ref QuestSequence reference119 = ref span64[4]; + num++; + ref QuestSequence reference119 = ref span148[num]; QuestSequence obj86 = new QuestSequence { Sequence = 4 @@ -192566,27 +232687,33 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1024722u, new Vector3(615.4115f, 69.10424f, -79.88104f), 613) + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.Interact, 1024722u, new Vector3(615.4115f, 69.10424f, -79.88104f), 613) { Fly = true }; obj86.Steps = list153; reference119 = obj86; - ref QuestSequence reference120 = ref span64[5]; + num++; + ref QuestSequence reference120 = ref span148[num]; QuestSequence obj87 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1024723u, new Vector3(534.2031f, 0.004061999f, -252.58258f), 613) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.Interact, 1024723u, new Vector3(534.2031f, 0.004061999f, -252.58258f), 613) { Fly = true }; obj87.Steps = list154; reference120 = obj87; - ref QuestSequence reference121 = ref span64[6]; + num++; + ref QuestSequence reference121 = ref span148[num]; QuestSequence obj88 = new QuestSequence { Sequence = 6 @@ -192594,7 +232721,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1024725u, new Vector3(100.02283f, 4.0000014f, 99.25989f), 628) + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new QuestStep(EInteractionType.Interact, 1024725u, new Vector3(100.02283f, 4.0000014f, 99.25989f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -192605,15 +232734,18 @@ public static class AssemblyQuestLoader }; obj88.Steps = list155; reference121 = obj88; - ref QuestSequence reference122 = ref span64[7]; + num++; + ref QuestSequence reference122 = ref span148[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024708u, new Vector3(98.83264f, 4.0000014f, 103.471436f), 628) + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024708u, new Vector3(98.83264f, 4.0000014f, 103.471436f), 628) { NextQuestId = new QuestId(3094) }; @@ -192626,13 +232758,16 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "JerryWester"; + Span span157 = CollectionsMarshal.AsSpan(list157); + index = 0; + span157[index] = "JerryWester"; questRoot14.Author = list157; - num = 3; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span65 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference123 = ref span65[0]; + index = 3; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + Span span158 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestSequence reference123 = ref span158[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -192640,7 +232775,9 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -192653,15 +232790,18 @@ public static class AssemblyQuestLoader }; obj90.Steps = list159; reference123 = obj90; - ref QuestSequence reference124 = ref span65[1]; + num++; + ref QuestSequence reference124 = ref span158[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1020463u, new Vector3(151.20166f, 14.7757225f, 95.750244f), 628) + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.Interact, 1020463u, new Vector3(151.20166f, 14.7757225f, 95.750244f), 628) { TargetTerritoryId = (ushort)639, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -192673,7 +232813,8 @@ public static class AssemblyQuestLoader }; obj91.Steps = list160; reference124 = obj91; - ref QuestSequence reference125 = ref span65[2]; + num++; + ref QuestSequence reference125 = ref span158[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -192681,7 +232822,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024726u, new Vector3(-11.367981f, 10.503965f, -212.75659f), 628) + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024726u, new Vector3(-11.367981f, 10.503965f, -212.75659f), 628) { AethernetShortcut = new AethernetShortcut { @@ -192698,21 +232841,26 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "JerryWester"; + Span span162 = CollectionsMarshal.AsSpan(list162); + index = 0; + span162[index] = "JerryWester"; questRoot15.Author = list162; - num = 3; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span66 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference126 = ref span66[0]; + index = 3; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + Span span163 = CollectionsMarshal.AsSpan(list163); + num = 0; + ref QuestSequence reference126 = ref span163[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024727u, new Vector3(-12.375122f, 10.503965f, -213.76367f), 628) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024727u, new Vector3(-12.375122f, 10.503965f, -213.76367f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -192726,7 +232874,8 @@ public static class AssemblyQuestLoader }; obj93.Steps = list164; reference126 = obj93; - ref QuestSequence reference127 = ref span66[1]; + num++; + ref QuestSequence reference127 = ref span163[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -192734,7 +232883,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1024731u, new Vector3(89.92139f, 3.9999497f, 52.262085f), 628) + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.Interact, 1024731u, new Vector3(89.92139f, 3.9999497f, 52.262085f), 628) { AethernetShortcut = new AethernetShortcut { @@ -192744,15 +232895,18 @@ public static class AssemblyQuestLoader }; obj94.Steps = list165; reference127 = obj94; - ref QuestSequence reference128 = ref span66[2]; + num++; + ref QuestSequence reference128 = ref span163[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019061u, new Vector3(-0.045776367f, -7.9738514E-11f, -80.857605f), 628) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019061u, new Vector3(-0.045776367f, -7.9738514E-11f, -80.857605f), 628) { AethernetShortcut = new AethernetShortcut { @@ -192769,13 +232923,16 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "JerryWester"; + Span span167 = CollectionsMarshal.AsSpan(list167); + index = 0; + span167[index] = "JerryWester"; questRoot16.Author = list167; - num = 7; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span67 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference129 = ref span67[0]; + index = 7; + List list168 = new List(index); + CollectionsMarshal.SetCount(list168, index); + Span span168 = CollectionsMarshal.AsSpan(list168); + num = 0; + ref QuestSequence reference129 = ref span168[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -192783,7 +232940,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024738u, new Vector3(1.3884888f, -7.717861E-11f, -78.14148f), 628) + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024738u, new Vector3(1.3884888f, -7.717861E-11f, -78.14148f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -192796,18 +232955,22 @@ public static class AssemblyQuestLoader }; obj96.Steps = list169; reference129 = obj96; - ref QuestSequence reference130 = ref span67[1]; + num++; + ref QuestSequence reference130 = ref span168[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1024743u, new Vector3(-123.1861f, -6.9999976f, -58.854065f), 628); + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.Interact, 1024743u, new Vector3(-123.1861f, -6.9999976f, -58.854065f), 628); obj97.Steps = list170; reference130 = obj97; - ref QuestSequence reference131 = ref span67[2]; + num++; + ref QuestSequence reference131 = ref span168[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 @@ -192815,7 +232978,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024822u, new Vector3(885.0995f, 1.1792068f, 861.38696f), 613) + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span171[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024822u, new Vector3(885.0995f, 1.1792068f, 861.38696f), 613) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -192824,22 +232989,27 @@ public static class AssemblyQuestLoader }; obj98.Steps = list171; reference131 = obj98; - span67[3] = new QuestSequence + num++; + span168[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference132 = ref span67[4]; + num++; + ref QuestSequence reference132 = ref span168[num]; QuestSequence obj99 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1024826u, new Vector3(458.94556f, 30.580631f, 748.74475f), 613); + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span172[num2] = new QuestStep(EInteractionType.Interact, 1024826u, new Vector3(458.94556f, 30.580631f, 748.74475f), 613); obj99.Steps = list172; reference132 = obj99; - ref QuestSequence reference133 = ref span67[5]; + num++; + ref QuestSequence reference133 = ref span168[num]; QuestSequence obj100 = new QuestSequence { Sequence = 5 @@ -192847,21 +233017,26 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1024830u, new Vector3(577.26404f, 0.93538165f, 852.7809f), 613) + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.Interact, 1024830u, new Vector3(577.26404f, 0.93538165f, 852.7809f), 613) { Fly = true }; obj100.Steps = list173; reference133 = obj100; - ref QuestSequence reference134 = ref span67[6]; + num++; + ref QuestSequence reference134 = ref span168[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024836u, new Vector3(-788.2658f, 11.709066f, -283.0091f), 613) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024836u, new Vector3(-788.2658f, 11.709066f, -283.0091f), 613) { StopDistance = 7f }; @@ -192874,13 +233049,16 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "JerryWester"; + Span span175 = CollectionsMarshal.AsSpan(list175); + index = 0; + span175[index] = "JerryWester"; questRoot17.Author = list175; - num = 7; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span68 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference135 = ref span68[0]; + index = 7; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + Span span176 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference135 = ref span176[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -192888,33 +233066,39 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024837u, new Vector3(-791.04297f, 12.349811f, -283.8026f), 613) + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span177[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024837u, new Vector3(-791.04297f, 12.349811f, -283.8026f), 613) { StopDistance = 7f }; obj102.Steps = list177; reference135 = obj102; - ref QuestSequence reference136 = ref span68[1]; + num++; + ref QuestSequence reference136 = ref span176[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - Span span69 = CollectionsMarshal.AsSpan(list178); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-831.06116f, 20.168653f, -266.25217f), 613) + index2 = 2; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + Span span178 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span178[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-831.06116f, 20.168653f, -266.25217f), 613) { TargetTerritoryId = (ushort)614, Mount = true }; - span69[1] = new QuestStep(EInteractionType.Interact, 1024842u, new Vector3(789.6085f, 99.21144f, -288.5329f), 614) + num2++; + span178[num2] = new QuestStep(EInteractionType.Interact, 1024842u, new Vector3(789.6085f, 99.21144f, -288.5329f), 614) { Fly = true }; obj103.Steps = list178; reference136 = obj103; - ref QuestSequence reference137 = ref span68[2]; + num++; + ref QuestSequence reference137 = ref span176[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 @@ -192922,49 +233106,67 @@ public static class AssemblyQuestLoader num2 = 2; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span70 = CollectionsMarshal.AsSpan(list179); - ref QuestStep reference138 = ref span70[0]; + Span span179 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + ref QuestStep reference138 = ref span179[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1019285u, new Vector3(195.63586f, 5.16971f, -437.2473f), 614); num3 = 6; List list180 = new List(num3); CollectionsMarshal.SetCount(list180, num3); - Span span71 = CollectionsMarshal.AsSpan(list180); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span180 = CollectionsMarshal.AsSpan(list180); + num4 = 0; + span180[num4] = null; + num4++; + span180[num4] = null; + num4++; + span180[num4] = null; + num4++; + span180[num4] = null; + num4++; + span180[num4] = null; + num4++; + span180[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list180; reference138 = questStep14; - ref QuestStep reference139 = ref span70[1]; + index2++; + ref QuestStep reference139 = ref span179[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1019286u, new Vector3(233.60034f, 5.2518563f, -425.3758f), 614); - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span72 = CollectionsMarshal.AsSpan(list181); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list181 = new List(num4); + CollectionsMarshal.SetCount(list181, num4); + Span span181 = CollectionsMarshal.AsSpan(list181); + num3 = 0; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list181; reference139 = questStep15; obj104.Steps = list179; reference137 = obj104; - ref QuestSequence reference140 = ref span68[3]; + num++; + ref QuestSequence reference140 = ref span176[num]; QuestSequence obj105 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1024846u, new Vector3(309.46814f, 17.755785f, -445.97546f), 614); + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = new QuestStep(EInteractionType.Interact, 1024846u, new Vector3(309.46814f, 17.755785f, -445.97546f), 614); obj105.Steps = list182; reference140 = obj105; - ref QuestSequence reference141 = ref span68[4]; + num++; + ref QuestSequence reference141 = ref span176[num]; QuestSequence obj106 = new QuestSequence { Sequence = 4 @@ -192972,27 +233174,33 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1024847u, new Vector3(59.067627f, 37.21815f, -529.1676f), 614) + Span span183 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span183[index2] = new QuestStep(EInteractionType.Interact, 1024847u, new Vector3(59.067627f, 37.21815f, -529.1676f), 614) { Fly = true }; obj106.Steps = list183; reference141 = obj106; - ref QuestSequence reference142 = ref span68[5]; + num++; + ref QuestSequence reference142 = ref span176[num]; QuestSequence obj107 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1024849u, new Vector3(57.328125f, 36.90612f, -524.71204f), 614) + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span184[num2] = new QuestStep(EInteractionType.Interact, 1024849u, new Vector3(57.328125f, 36.90612f, -524.71204f), 614) { StopDistance = 4f }; obj107.Steps = list184; reference142 = obj107; - ref QuestSequence reference143 = ref span68[6]; + num++; + ref QuestSequence reference143 = ref span176[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue @@ -193000,7 +233208,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614) + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce @@ -193014,21 +233224,26 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "JerryWester"; + Span span186 = CollectionsMarshal.AsSpan(list186); + index = 0; + span186[index] = "JerryWester"; questRoot18.Author = list186; - num = 9; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span73 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference144 = ref span73[0]; + index = 9; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + Span span187 = CollectionsMarshal.AsSpan(list187); + num = 0; + ref QuestSequence reference144 = ref span187[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614) + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + Span span188 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span188[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce, SkipConditions = new SkipConditions @@ -193041,7 +233256,8 @@ public static class AssemblyQuestLoader }; obj109.Steps = list188; reference144 = obj109; - ref QuestSequence reference145 = ref span73[1]; + num++; + ref QuestSequence reference145 = ref span187[num]; QuestSequence obj110 = new QuestSequence { Sequence = 1 @@ -193049,28 +233265,34 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1024955u, new Vector3(350.14868f, 26.448109f, 609.1859f), 614) + Span span189 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span189[index2] = new QuestStep(EInteractionType.Interact, 1024955u, new Vector3(350.14868f, 26.448109f, 609.1859f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj110.Steps = list189; reference145 = obj110; - ref QuestSequence reference146 = ref span73[2]; + num++; + ref QuestSequence reference146 = ref span187[num]; QuestSequence obj111 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1024957u, new Vector3(365.9265f, 1.7862457f, 738.9486f), 614) + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span190[num2] = new QuestStep(EInteractionType.Interact, 1024957u, new Vector3(365.9265f, 1.7862457f, 738.9486f), 614) { StopDistance = 5f }; obj111.Steps = list190; reference146 = obj111; - ref QuestSequence reference147 = ref span73[3]; + num++; + ref QuestSequence reference147 = ref span187[num]; QuestSequence obj112 = new QuestSequence { Sequence = 3 @@ -193078,42 +233300,51 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1024966u, new Vector3(-472.3125f, 1.2300053f, 537.77356f), 614) + Span span191 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span191[index2] = new QuestStep(EInteractionType.Interact, 1024966u, new Vector3(-472.3125f, 1.2300053f, 537.77356f), 614) { Fly = true }; obj112.Steps = list191; reference147 = obj112; - ref QuestSequence reference148 = ref span73[4]; + num++; + ref QuestSequence reference148 = ref span187[num]; QuestSequence obj113 = new QuestSequence { Sequence = 4 }; - num2 = 6; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - Span span74 = CollectionsMarshal.AsSpan(list192); - span74[0] = new QuestStep(EInteractionType.Interact, 1024794u, new Vector3(-493.98032f, 1.3011811f, 542.90063f), 614) + index2 = 6; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span192[num2] = new QuestStep(EInteractionType.Interact, 1024794u, new Vector3(-493.98032f, 1.3011811f, 542.90063f), 614) { TargetTerritoryId = (ushort)759 }; - span74[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + num2++; + span192[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveDocks }; - span74[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + num2++; + span192[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveSouthern }; - span74[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 759) + num2++; + span192[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 759) { Aetheryte = EAetheryteLocation.DomanEnclave }; - span74[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + num2++; + span192[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveNorthern }; - ref QuestStep reference149 = ref span74[5]; + num2++; + ref QuestStep reference149 = ref span192[num2]; QuestStep obj114 = new QuestStep(EInteractionType.Interact, 1024970u, new Vector3(40.238037f, 0f, 5.874695f), 759) { AethernetShortcut = new AethernetShortcut @@ -193125,7 +233356,9 @@ public static class AssemblyQuestLoader num3 = 1; List list193 = new List(num3); CollectionsMarshal.SetCount(list193, num3); - CollectionsMarshal.AsSpan(list193)[0] = new DialogueChoice + Span span193 = CollectionsMarshal.AsSpan(list193); + num4 = 0; + span193[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDC105_03026_Q1_000_000"), @@ -193135,7 +233368,8 @@ public static class AssemblyQuestLoader reference149 = obj114; obj113.Steps = list192; reference148 = obj113; - ref QuestSequence reference150 = ref span73[5]; + num++; + ref QuestSequence reference150 = ref span187[num]; QuestSequence obj115 = new QuestSequence { Sequence = 5 @@ -193143,15 +233377,19 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - ref QuestStep reference151 = ref CollectionsMarshal.AsSpan(list194)[0]; + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + ref QuestStep reference151 = ref span194[index2]; QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744 }; - num3 = 1; - List list195 = new List(num3); - CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = new DialogueChoice + num4 = 1; + List list195 = new List(num4); + CollectionsMarshal.SetCount(list195, num4); + Span span195 = CollectionsMarshal.AsSpan(list195); + num3 = 0; + span195[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDC105_03026_EVENTAREA_WARP_000_000") @@ -193160,25 +233398,30 @@ public static class AssemblyQuestLoader reference151 = obj116; obj115.Steps = list194; reference150 = obj115; - span73[6] = new QuestSequence + num++; + span187[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference152 = ref span73[7]; + num++; + ref QuestSequence reference152 = ref span187[num]; QuestSequence obj117 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1025049u, new Vector3(-0.015319824f, 0.19999999f, -4.837158f), 744) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.Interact, 1025049u, new Vector3(-0.015319824f, 0.19999999f, -4.837158f), 744) { StopDistance = 7f }; obj117.Steps = list196; reference152 = obj117; - ref QuestSequence reference153 = ref span73[8]; + num++; + ref QuestSequence reference153 = ref span187[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -193186,12 +233429,14 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span75 = CollectionsMarshal.AsSpan(list197); - span75[0] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) { TargetTerritoryId = (ushort)759 }; - span75[1] = new QuestStep(EInteractionType.CompleteQuest, 1024971u, new Vector3(6.0272217f, 0f, 18.631226f), 759); + index2++; + span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024971u, new Vector3(6.0272217f, 0f, 18.631226f), 759); obj118.Steps = list197; reference153 = obj118; questRoot18.QuestSequence = list187; @@ -193201,21 +233446,26 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "JerryWester"; + Span span198 = CollectionsMarshal.AsSpan(list198); + index = 0; + span198[index] = "JerryWester"; questRoot19.Author = list198; - num = 5; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span76 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference154 = ref span76[0]; + index = 5; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + Span span199 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference154 = ref span199[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024971u, new Vector3(6.0272217f, 0f, 18.631226f), 759) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024971u, new Vector3(6.0272217f, 0f, 18.631226f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -193228,7 +233478,8 @@ public static class AssemblyQuestLoader }; obj119.Steps = list200; reference154 = obj119; - ref QuestSequence reference155 = ref span76[1]; + num++; + ref QuestSequence reference155 = ref span199[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -193236,28 +233487,34 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1024980u, new Vector3(-276.26465f, 53.240116f, -368.8869f), 614) + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.Interact, 1024980u, new Vector3(-276.26465f, 53.240116f, -368.8869f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj120.Steps = list201; reference155 = obj120; - ref QuestSequence reference156 = ref span76[2]; + num++; + ref QuestSequence reference156 = ref span199[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1024983u, new Vector3(-260.60883f, 53.217503f, -645.594f), 614) + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.Interact, 1024983u, new Vector3(-260.60883f, 53.217503f, -645.594f), 614) { Fly = true }; obj121.Steps = list202; reference156 = obj121; - ref QuestSequence reference157 = ref span76[3]; + num++; + ref QuestSequence reference157 = ref span199[num]; QuestSequence obj122 = new QuestSequence { Sequence = 3 @@ -193265,12 +233522,14 @@ public static class AssemblyQuestLoader num2 = 2; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span77 = CollectionsMarshal.AsSpan(list203); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.07507f, 1.2300062f, -345.90344f), 614) + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span203[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.07507f, 1.2300062f, -345.90344f), 614) { Fly = true }; - span77[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024986u, new Vector3(-348.9281f, 1.230035f, -344.13672f), 614) + index2++; + span203[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024986u, new Vector3(-348.9281f, 1.230035f, -344.13672f), 614) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -193279,15 +233538,18 @@ public static class AssemblyQuestLoader }; obj122.Steps = list203; reference157 = obj122; - ref QuestSequence reference158 = ref span76[4]; + num++; + ref QuestSequence reference158 = ref span199[num]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024989u, new Vector3(464.10315f, 17.720512f, 301.59448f), 614) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024989u, new Vector3(464.10315f, 17.720512f, 301.59448f), 614) { StopDistance = 5f }; @@ -193300,13 +233562,16 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "JerryWester"; + Span span205 = CollectionsMarshal.AsSpan(list205); + index = 0; + span205[index] = "JerryWester"; questRoot20.Author = list205; - num = 3; - List list206 = new List(num); - CollectionsMarshal.SetCount(list206, num); - Span span78 = CollectionsMarshal.AsSpan(list206); - ref QuestSequence reference159 = ref span78[0]; + index = 3; + List list206 = new List(index); + CollectionsMarshal.SetCount(list206, index); + Span span206 = CollectionsMarshal.AsSpan(list206); + num = 0; + ref QuestSequence reference159 = ref span206[num]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -193314,27 +233579,33 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024989u, new Vector3(464.10315f, 17.720512f, 301.59448f), 614) + Span span207 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span207[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024989u, new Vector3(464.10315f, 17.720512f, 301.59448f), 614) { StopDistance = 5f }; obj124.Steps = list207; reference159 = obj124; - ref QuestSequence reference160 = ref span78[1]; + num++; + ref QuestSequence reference160 = ref span206[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1025026u, new Vector3(3.7078857f, 0f, 17.471558f), 759) + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.Interact, 1025026u, new Vector3(3.7078857f, 0f, 17.471558f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave }; obj125.Steps = list208; reference160 = obj125; - ref QuestSequence reference161 = ref span78[2]; + num++; + ref QuestSequence reference161 = ref span206[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -193342,8 +233613,9 @@ public static class AssemblyQuestLoader num2 = 2; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span79 = CollectionsMarshal.AsSpan(list209); - ref QuestStep reference162 = ref span79[0]; + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + ref QuestStep reference162 = ref span209[index2]; QuestStep obj127 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744 @@ -193351,14 +233623,17 @@ public static class AssemblyQuestLoader num3 = 1; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice + Span span210 = CollectionsMarshal.AsSpan(list210); + num4 = 0; + span210[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDC107_03028_EVENTAREA_WARP_000_056") }; obj127.DialogueChoices = list210; reference162 = obj127; - span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); + index2++; + span209[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); obj126.Steps = list209; reference161 = obj126; questRoot20.QuestSequence = list206; @@ -193368,28 +233643,34 @@ public static class AssemblyQuestLoader num = 1; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - CollectionsMarshal.AsSpan(list211)[0] = "JerryWester"; + Span span211 = CollectionsMarshal.AsSpan(list211); + index = 0; + span211[index] = "JerryWester"; questRoot21.Author = list211; - num = 5; - List list212 = new List(num); - CollectionsMarshal.SetCount(list212, num); - Span span80 = CollectionsMarshal.AsSpan(list212); - ref QuestSequence reference163 = ref span80[0]; + index = 5; + List list212 = new List(index); + CollectionsMarshal.SetCount(list212, index); + Span span212 = CollectionsMarshal.AsSpan(list212); + num = 0; + ref QuestSequence reference163 = ref span212[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025008u, new Vector3(-0.19836426f, 0.021091364f, -2.7619019f), 744) + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span213 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span213[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025008u, new Vector3(-0.19836426f, 0.021091364f, -2.7619019f), 744) { StopDistance = 1f, DelaySecondsAtStart = 3f }; obj128.Steps = list213; reference163 = obj128; - ref QuestSequence reference164 = ref span80[1]; + num++; + ref QuestSequence reference164 = ref span212[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -193397,33 +233678,40 @@ public static class AssemblyQuestLoader num2 = 2; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span81 = CollectionsMarshal.AsSpan(list214); - span81[0] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) { TargetTerritoryId = (ushort)759 }; - span81[1] = new QuestStep(EInteractionType.Interact, 1025012u, new Vector3(1.5715942f, 0f, 18.631226f), 759); + index2++; + span214[index2] = new QuestStep(EInteractionType.Interact, 1025012u, new Vector3(1.5715942f, 0f, 18.631226f), 759); obj129.Steps = list214; reference164 = obj129; - span80[2] = new QuestSequence + num++; + span212[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference165 = ref span80[3]; + num++; + ref QuestSequence reference165 = ref span212[num]; QuestSequence obj130 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1025019u, new Vector3(366.53687f, 1.286227f, 746.2118f), 614) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.Interact, 1025019u, new Vector3(366.53687f, 1.286227f, 746.2118f), 614) { StopDistance = 5f }; obj130.Steps = list215; reference165 = obj130; - ref QuestSequence reference166 = ref span80[4]; + num++; + ref QuestSequence reference166 = ref span212[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -193431,8 +233719,9 @@ public static class AssemblyQuestLoader num2 = 2; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span82 = CollectionsMarshal.AsSpan(list216); - span82[0] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span216[index2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -193442,7 +233731,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - span82[1] = new QuestStep(EInteractionType.CompleteQuest, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); + index2++; + span216[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); obj131.Steps = list216; reference166 = obj131; questRoot21.QuestSequence = list212; @@ -193452,24 +233742,30 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "liza"; + Span span217 = CollectionsMarshal.AsSpan(list217); + index = 0; + span217[index] = "liza"; questRoot22.Author = list217; - num = 3; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - Span span83 = CollectionsMarshal.AsSpan(list218); - ref QuestSequence reference167 = ref span83[0]; + index = 3; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + Span span218 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference167 = ref span218[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635); + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + Span span219 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span219[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635); obj132.Steps = list219; reference167 = obj132; - ref QuestSequence reference168 = ref span83[1]; + num++; + ref QuestSequence reference168 = ref span218[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -193477,22 +233773,27 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021933u, new Vector3(466.20886f, 69.27097f, 525.7495f), 612) + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span220[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021933u, new Vector3(466.20886f, 69.27097f, 525.7495f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj133.Steps = list220; reference168 = obj133; - ref QuestSequence reference169 = ref span83[2]; + num++; + ref QuestSequence reference169 = ref span218[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span221[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) { StopDistance = 7f, NextQuestId = new QuestId(3032) @@ -193506,13 +233807,16 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "liza"; + Span span222 = CollectionsMarshal.AsSpan(list222); + index = 0; + span222[index] = "liza"; questRoot23.Author = list222; - num = 4; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span84 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference170 = ref span84[0]; + index = 4; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + Span span223 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference170 = ref span223[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -193520,27 +233824,33 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) { StopDistance = 7f }; obj135.Steps = list224; reference170 = obj135; - ref QuestSequence reference171 = ref span84[1]; + num++; + ref QuestSequence reference171 = ref span223[num]; QuestSequence obj136 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1024747u, new Vector3(-88.304016f, -72.25f, 169.17664f), 756) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.Interact, 1024747u, new Vector3(-88.304016f, -72.25f, 169.17664f), 756) { StopDistance = 6f }; obj136.Steps = list225; reference171 = obj136; - ref QuestSequence reference172 = ref span84[2]; + num++; + ref QuestSequence reference172 = ref span223[num]; QuestSequence obj137 = new QuestSequence { Sequence = 2 @@ -193548,7 +233858,9 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Duty, null, null, 756) + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span226[index2] = new QuestStep(EInteractionType.Duty, null, null, 756) { DutyOptions = new DutyOptions { @@ -193557,15 +233869,18 @@ public static class AssemblyQuestLoader }; obj137.Steps = list226; reference172 = obj137; - ref QuestSequence reference173 = ref span84[3]; + num++; + ref QuestSequence reference173 = ref span223[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) + index2 = 1; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + Span span227 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span227[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) { StopDistance = 7f, NextQuestId = new QuestId(3033) @@ -193579,13 +233894,16 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - CollectionsMarshal.AsSpan(list228)[0] = "liza"; + Span span228 = CollectionsMarshal.AsSpan(list228); + index = 0; + span228[index] = "liza"; questRoot24.Author = list228; - num = 5; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - Span span85 = CollectionsMarshal.AsSpan(list229); - ref QuestSequence reference174 = ref span85[0]; + index = 5; + List list229 = new List(index); + CollectionsMarshal.SetCount(list229, index); + Span span229 = CollectionsMarshal.AsSpan(list229); + num = 0; + ref QuestSequence reference174 = ref span229[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -193593,27 +233911,33 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span230[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) { StopDistance = 7f }; obj139.Steps = list230; reference174 = obj139; - ref QuestSequence reference175 = ref span85[1]; + num++; + ref QuestSequence reference175 = ref span229[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1024790u, new Vector3(-81.92572f, -72.25f, 172.7168f), 756) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.Interact, 1024790u, new Vector3(-81.92572f, -72.25f, 172.7168f), 756) { StopDistance = 5f }; obj140.Steps = list231; reference175 = obj140; - ref QuestSequence reference176 = ref span85[2]; + num++; + ref QuestSequence reference176 = ref span229[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 @@ -193621,7 +233945,9 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Duty, null, null, 756) + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span232[index2] = new QuestStep(EInteractionType.Duty, null, null, 756) { DutyOptions = new DutyOptions { @@ -193630,21 +233956,25 @@ public static class AssemblyQuestLoader }; obj141.Steps = list232; reference176 = obj141; - ref QuestSequence reference177 = ref span85[3]; + num++; + ref QuestSequence reference177 = ref span229[num]; QuestSequence obj142 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + Span span233 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span233[num2] = new QuestStep(EInteractionType.Interact, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) { StopDistance = 7f }; obj142.Steps = list233; reference177 = obj142; - ref QuestSequence reference178 = ref span85[4]; + num++; + ref QuestSequence reference178 = ref span229[num]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -193652,7 +233982,9 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024749u, new Vector3(463.79797f, 69.36809f, 520.31726f), 612) + Span span234 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + span234[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024749u, new Vector3(463.79797f, 69.36809f, 520.31726f), 612) { NextQuestId = new QuestId(3034) }; @@ -193665,27 +233997,33 @@ public static class AssemblyQuestLoader num = 1; List list235 = new List(num); CollectionsMarshal.SetCount(list235, num); - CollectionsMarshal.AsSpan(list235)[0] = "liza"; + Span span235 = CollectionsMarshal.AsSpan(list235); + index = 0; + span235[index] = "liza"; questRoot25.Author = list235; - num = 5; - List list236 = new List(num); - CollectionsMarshal.SetCount(list236, num); - Span span86 = CollectionsMarshal.AsSpan(list236); - ref QuestSequence reference179 = ref span86[0]; + index = 5; + List list236 = new List(index); + CollectionsMarshal.SetCount(list236, index); + Span span236 = CollectionsMarshal.AsSpan(list236); + num = 0; + ref QuestSequence reference179 = ref span236[num]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024750u, new Vector3(464.28625f, 69.317245f, 519.3103f), 612) + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + Span span237 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span237[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024750u, new Vector3(464.28625f, 69.317245f, 519.3103f), 612) { StopDistance = 5f }; obj144.Steps = list237; reference179 = obj144; - ref QuestSequence reference180 = ref span86[1]; + num++; + ref QuestSequence reference180 = ref span236[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -193693,40 +234031,48 @@ public static class AssemblyQuestLoader num2 = 2; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span87 = CollectionsMarshal.AsSpan(list238); - ref QuestStep reference181 = ref span87[0]; + Span span238 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + ref QuestStep reference181 = ref span238[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1021947u, new Vector3(476.73767f, 69.83099f, 526.604f), 612); - num3 = 1; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = new DialogueChoice + num4 = 1; + List list239 = new List(num4); + CollectionsMarshal.SetCount(list239, num4); + Span span239 = CollectionsMarshal.AsSpan(list239); + num3 = 0; + span239[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDR204_03034_SYSTEM_000_026") }; questStep16.DialogueChoices = list239; reference181 = questStep16; - span87[1] = new QuestStep(EInteractionType.Interact, 1024853u, new Vector3(-86.71704f, -72.25f, 179.58337f), 756) + index2++; + span238[index2] = new QuestStep(EInteractionType.Interact, 1024853u, new Vector3(-86.71704f, -72.25f, 179.58337f), 756) { StopDistance = 7f }; obj145.Steps = list238; reference180 = obj145; - ref QuestSequence reference182 = ref span86[2]; + num++; + ref QuestSequence reference182 = ref span236[num]; QuestSequence obj146 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1024747u, new Vector3(-88.304016f, -72.25f, 169.17664f), 756) + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.Interact, 1024747u, new Vector3(-88.304016f, -72.25f, 169.17664f), 756) { StopDistance = 7f }; obj146.Steps = list240; reference182 = obj146; - ref QuestSequence reference183 = ref span86[3]; + num++; + ref QuestSequence reference183 = ref span236[num]; QuestSequence obj147 = new QuestSequence { Sequence = 3 @@ -193734,7 +234080,9 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Duty, null, null, 756) + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.Duty, null, null, 756) { DutyOptions = new DutyOptions { @@ -193743,15 +234091,18 @@ public static class AssemblyQuestLoader }; obj147.Steps = list241; reference183 = obj147; - ref QuestSequence reference184 = ref span86[4]; + num++; + ref QuestSequence reference184 = ref span236[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) { StopDistance = 7f, NextQuestId = new QuestId(3035) @@ -193765,13 +234116,16 @@ public static class AssemblyQuestLoader num = 1; List list243 = new List(num); CollectionsMarshal.SetCount(list243, num); - CollectionsMarshal.AsSpan(list243)[0] = "liza"; + Span span243 = CollectionsMarshal.AsSpan(list243); + index = 0; + span243[index] = "liza"; questRoot26.Author = list243; - num = 6; - List list244 = new List(num); - CollectionsMarshal.SetCount(list244, num); - Span span88 = CollectionsMarshal.AsSpan(list244); - ref QuestSequence reference185 = ref span88[0]; + index = 6; + List list244 = new List(index); + CollectionsMarshal.SetCount(list244, index); + Span span244 = CollectionsMarshal.AsSpan(list244); + num = 0; + ref QuestSequence reference185 = ref span244[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -193779,27 +234133,33 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024853u, new Vector3(-86.71704f, -72.25f, 179.58337f), 756) + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024853u, new Vector3(-86.71704f, -72.25f, 179.58337f), 756) { StopDistance = 7f }; obj149.Steps = list245; reference185 = obj149; - ref QuestSequence reference186 = ref span88[1]; + num++; + ref QuestSequence reference186 = ref span244[num]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 1024747u, new Vector3(-88.304016f, -72.25f, 169.17664f), 756) + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.Interact, 1024747u, new Vector3(-88.304016f, -72.25f, 169.17664f), 756) { StopDistance = 7f }; obj150.Steps = list246; reference186 = obj150; - ref QuestSequence reference187 = ref span88[2]; + num++; + ref QuestSequence reference187 = ref span244[num]; QuestSequence obj151 = new QuestSequence { Sequence = 2 @@ -193807,7 +234167,9 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Duty, null, null, 756) + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.Duty, null, null, 756) { DutyOptions = new DutyOptions { @@ -193816,22 +234178,27 @@ public static class AssemblyQuestLoader }; obj151.Steps = list247; reference187 = obj151; - span88[3] = new QuestSequence + num++; + span244[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference188 = ref span88[4]; + num++; + ref QuestSequence reference188 = ref span244[num]; QuestSequence obj152 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1021947u, new Vector3(476.73767f, 69.83099f, 526.604f), 612); + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.Interact, 1021947u, new Vector3(476.73767f, 69.83099f, 526.604f), 612); obj152.Steps = list248; reference188 = obj152; - ref QuestSequence reference189 = ref span88[5]; + num++; + ref QuestSequence reference189 = ref span244[num]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue @@ -193839,7 +234206,9 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, NextQuestId = new QuestId(3154) @@ -193853,21 +234222,26 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "liza"; + Span span250 = CollectionsMarshal.AsSpan(list250); + index = 0; + span250[index] = "liza"; questRoot27.Author = list250; - num = 4; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span89 = CollectionsMarshal.AsSpan(list251); - ref QuestSequence reference190 = ref span89[0]; + index = 4; + List list251 = new List(index); + CollectionsMarshal.SetCount(list251, index); + Span span251 = CollectionsMarshal.AsSpan(list251); + num = 0; + ref QuestSequence reference190 = ref span251[num]; QuestSequence obj154 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones, SkipConditions = new SkipConditions @@ -193880,7 +234254,8 @@ public static class AssemblyQuestLoader }; obj154.Steps = list252; reference190 = obj154; - ref QuestSequence reference191 = ref span89[1]; + num++; + ref QuestSequence reference191 = ref span251[num]; QuestSequence obj155 = new QuestSequence { Sequence = 1 @@ -193888,27 +234263,33 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612) + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612) { Fly = true }; obj155.Steps = list253; reference191 = obj155; - ref QuestSequence reference192 = ref span89[2]; + num++; + ref QuestSequence reference192 = ref span251[num]; QuestSequence obj156 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1024894u, new Vector3(21.744019f, -0.05840592f, 13.01593f), 635) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.Interact, 1024894u, new Vector3(21.744019f, -0.05840592f, 13.01593f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj156.Steps = list254; reference192 = obj156; - ref QuestSequence reference193 = ref span89[3]; + num++; + ref QuestSequence reference193 = ref span251[num]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue @@ -193916,7 +234297,9 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - ref QuestStep reference194 = ref CollectionsMarshal.AsSpan(list255)[0]; + Span span255 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + ref QuestStep reference194 = ref span255[index2]; QuestStep obj158 = new QuestStep(EInteractionType.CompleteQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true, @@ -193925,14 +234308,16 @@ public static class AssemblyQuestLoader num3 = 2; List list256 = new List(num3); CollectionsMarshal.SetCount(list256, num3); - Span span90 = CollectionsMarshal.AsSpan(list256); - span90[0] = new DialogueChoice + Span span256 = CollectionsMarshal.AsSpan(list256); + num4 = 0; + span256[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA001_03036_Q2_000_000"), Answer = new ExcelRef("TEXT_BANANA001_03036_A2_000_001") }; - span90[1] = new DialogueChoice + num4++; + span256[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA001_03036_Q3_000_000"), @@ -193949,24 +234334,30 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "plogon_enjoyer"; + Span span257 = CollectionsMarshal.AsSpan(list257); + index = 0; + span257[index] = "plogon_enjoyer"; questRoot28.Author = list257; - num = 9; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span91 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference195 = ref span91[0]; + index = 9; + List list258 = new List(index); + CollectionsMarshal.SetCount(list258, index); + Span span258 = CollectionsMarshal.AsSpan(list258); + num = 0; + ref QuestSequence reference195 = ref span258[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + Span span259 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span259[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); obj159.Steps = list259; reference195 = obj159; - ref QuestSequence reference196 = ref span91[1]; + num++; + ref QuestSequence reference196 = ref span258[num]; QuestSequence obj160 = new QuestSequence { Sequence = 1 @@ -193974,22 +234365,27 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1024896u, new Vector3(-630.2129f, 130.26343f, -452.20117f), 612) + Span span260 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span260[index2] = new QuestStep(EInteractionType.Interact, 1024896u, new Vector3(-630.2129f, 130.26343f, -452.20117f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj160.Steps = list260; reference196 = obj160; - ref QuestSequence reference197 = ref span91[2]; + num++; + ref QuestSequence reference197 = ref span258[num]; QuestSequence obj161 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1024897u, new Vector3(-76.40198f, -5.32758E-12f, -48.233826f), 635) + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + Span span261 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span261[num2] = new QuestStep(EInteractionType.Interact, 1024897u, new Vector3(-76.40198f, -5.32758E-12f, -48.233826f), 635) { Mount = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -194001,7 +234397,8 @@ public static class AssemblyQuestLoader }; obj161.Steps = list261; reference197 = obj161; - ref QuestSequence reference198 = ref span91[3]; + num++; + ref QuestSequence reference198 = ref span258[num]; QuestSequence obj162 = new QuestSequence { Sequence = 3 @@ -194009,28 +234406,34 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) + Span span262 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span262[index2] = new QuestStep(EInteractionType.Interact, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj162.Steps = list262; reference198 = obj162; - ref QuestSequence reference199 = ref span91[4]; + num++; + ref QuestSequence reference199 = ref span258[num]; QuestSequence obj163 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1024900u, new Vector3(-50.980408f, 56.02146f, 218.46338f), 612) + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + Span span263 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span263[num2] = new QuestStep(EInteractionType.Interact, 1024900u, new Vector3(-50.980408f, 56.02146f, 218.46338f), 612) { Fly = true }; obj163.Steps = list263; reference199 = obj163; - ref QuestSequence reference200 = ref span91[5]; + num++; + ref QuestSequence reference200 = ref span258[num]; QuestSequence obj164 = new QuestSequence { Sequence = 5 @@ -194038,29 +234441,35 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Action, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) + Span span264 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span264[index2] = new QuestStep(EInteractionType.Action, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) { Fly = true, Action = EAction.BuffetGriffin }; obj164.Steps = list264; reference200 = obj164; - ref QuestSequence reference201 = ref span91[6]; + num++; + ref QuestSequence reference201 = ref span258[num]; QuestSequence obj165 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Action, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + Span span265 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span265[num2] = new QuestStep(EInteractionType.Action, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) { Fly = true, Action = EAction.BuffetGriffin }; obj165.Steps = list265; reference201 = obj165; - ref QuestSequence reference202 = ref span91[7]; + num++; + ref QuestSequence reference202 = ref span258[num]; QuestSequence obj166 = new QuestSequence { Sequence = 7 @@ -194068,22 +234477,27 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Action, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) + Span span266 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span266[index2] = new QuestStep(EInteractionType.Action, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) { Fly = true, Action = EAction.BuffetGriffin }; obj166.Steps = list266; reference202 = obj166; - ref QuestSequence reference203 = ref span91[8]; + num++; + ref QuestSequence reference203 = ref span258[num]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span267[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) { Mount = false }; @@ -194096,13 +234510,16 @@ public static class AssemblyQuestLoader num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - CollectionsMarshal.AsSpan(list268)[0] = "plogon_enjoyer"; + Span span268 = CollectionsMarshal.AsSpan(list268); + index = 0; + span268[index] = "plogon_enjoyer"; questRoot29.Author = list268; - num = 9; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - Span span92 = CollectionsMarshal.AsSpan(list269); - ref QuestSequence reference204 = ref span92[0]; + index = 9; + List list269 = new List(index); + CollectionsMarshal.SetCount(list269, index); + Span span269 = CollectionsMarshal.AsSpan(list269); + num = 0; + ref QuestSequence reference204 = ref span269[num]; QuestSequence obj168 = new QuestSequence { Sequence = 0 @@ -194110,24 +234527,30 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span270[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); obj168.Steps = list270; reference204 = obj168; - ref QuestSequence reference205 = ref span92[1]; + num++; + ref QuestSequence reference205 = ref span269[num]; QuestSequence obj169 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1024903u, new Vector3(111.31445f, 39.096542f, 296.34546f), 612) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.Interact, 1024903u, new Vector3(111.31445f, 39.096542f, 296.34546f), 612) { Fly = true }; obj169.Steps = list271; reference205 = obj169; - ref QuestSequence reference206 = ref span92[2]; + num++; + ref QuestSequence reference206 = ref span269[num]; QuestSequence obj170 = new QuestSequence { Sequence = 2 @@ -194135,37 +234558,44 @@ public static class AssemblyQuestLoader num2 = 3; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span93 = CollectionsMarshal.AsSpan(list272); - span93[0] = new QuestStep(EInteractionType.Interact, 1021591u, new Vector3(-277.82104f, 258.90652f, 782.77246f), 620) + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.Interact, 1021591u, new Vector3(-277.82104f, 258.90652f, 782.77246f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; - span93[1] = new QuestStep(EInteractionType.Interact, 1020871u, new Vector3(-237.90344f, 257.71973f, 741.5731f), 620) + index2++; + span272[index2] = new QuestStep(EInteractionType.Interact, 1020871u, new Vector3(-237.90344f, 257.71973f, 741.5731f), 620) { Fly = true }; - span93[2] = new QuestStep(EInteractionType.Interact, 1021587u, new Vector3(-210.68134f, 257.8064f, 767.4829f), 620) + index2++; + span272[index2] = new QuestStep(EInteractionType.Interact, 1021587u, new Vector3(-210.68134f, 257.8064f, 767.4829f), 620) { Fly = true }; obj170.Steps = list272; reference206 = obj170; - ref QuestSequence reference207 = ref span92[3]; + num++; + ref QuestSequence reference207 = ref span269[num]; QuestSequence obj171 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 1024906u, new Vector3(-239.12415f, 258.90652f, 782.62f), 620) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span273[num2] = new QuestStep(EInteractionType.Interact, 1024906u, new Vector3(-239.12415f, 258.90652f, 782.62f), 620) { Fly = true }; obj171.Steps = list273; reference207 = obj171; - ref QuestSequence reference208 = ref span92[4]; + num++; + ref QuestSequence reference208 = ref span269[num]; QuestSequence obj172 = new QuestSequence { Sequence = 4 @@ -194173,28 +234603,34 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1024908u, new Vector3(-238.91058f, 266.39832f, 508.14062f), 620) + Span span274 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span274[index2] = new QuestStep(EInteractionType.Interact, 1024908u, new Vector3(-238.91058f, 266.39832f, 508.14062f), 620) { Fly = true }; obj172.Steps = list274; reference208 = obj172; - ref QuestSequence reference209 = ref span92[5]; + num++; + ref QuestSequence reference209 = ref span269[num]; QuestSequence obj173 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1024911u, new Vector3(10.971252f, 55.943913f, 239.88696f), 612) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.Interact, 1024911u, new Vector3(10.971252f, 55.943913f, 239.88696f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj173.Steps = list275; reference209 = obj173; - ref QuestSequence reference210 = ref span92[6]; + num++; + ref QuestSequence reference210 = ref span269[num]; QuestSequence obj174 = new QuestSequence { Sequence = 6 @@ -194202,33 +234638,39 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1024912u, new Vector3(-92.27136f, 50.00444f, 186.29736f), 612) + Span span276 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span276[index2] = new QuestStep(EInteractionType.Interact, 1024912u, new Vector3(-92.27136f, 50.00444f, 186.29736f), 612) { Fly = true }; obj174.Steps = list276; reference210 = obj174; - ref QuestSequence reference211 = ref span92[7]; + num++; + ref QuestSequence reference211 = ref span269[num]; QuestSequence obj175 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - Span span94 = CollectionsMarshal.AsSpan(list277); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-212.2359f, 43.672523f, -133.15985f), 612) + index2 = 2; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span277[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-212.2359f, 43.672523f, -133.15985f), 612) { Fly = true }; - span94[1] = new QuestStep(EInteractionType.Action, 2009281u, new Vector3(-209.79633f, 42.70996f, -153.85675f), 612) + num2++; + span277[num2] = new QuestStep(EInteractionType.Action, 2009281u, new Vector3(-209.79633f, 42.70996f, -153.85675f), 612) { Land = true, Action = EAction.Trample }; obj175.Steps = list277; reference211 = obj175; - ref QuestSequence reference212 = ref span92[8]; + num++; + ref QuestSequence reference212 = ref span269[num]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue @@ -194236,12 +234678,14 @@ public static class AssemblyQuestLoader num2 = 2; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span95 = CollectionsMarshal.AsSpan(list278); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.853586f, 55.943962f, 237.26181f), 612) + Span span278 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span278[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.853586f, 55.943962f, 237.26181f), 612) { Fly = true }; - span95[1] = new QuestStep(EInteractionType.CompleteQuest, 1024911u, new Vector3(10.971252f, 55.943913f, 239.88696f), 612) + index2++; + span278[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024911u, new Vector3(10.971252f, 55.943913f, 239.88696f), 612) { Mount = false }; @@ -194254,24 +234698,30 @@ public static class AssemblyQuestLoader num = 1; List list279 = new List(num); CollectionsMarshal.SetCount(list279, num); - CollectionsMarshal.AsSpan(list279)[0] = "plogon_enjoyer"; + Span span279 = CollectionsMarshal.AsSpan(list279); + index = 0; + span279[index] = "plogon_enjoyer"; questRoot30.Author = list279; - num = 9; - List list280 = new List(num); - CollectionsMarshal.SetCount(list280, num); - Span span96 = CollectionsMarshal.AsSpan(list280); - ref QuestSequence reference213 = ref span96[0]; + index = 9; + List list280 = new List(index); + CollectionsMarshal.SetCount(list280, index); + Span span280 = CollectionsMarshal.AsSpan(list280); + num = 0; + ref QuestSequence reference213 = ref span280[num]; QuestSequence obj177 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + Span span281 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span281[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); obj177.Steps = list281; reference213 = obj177; - ref QuestSequence reference214 = ref span96[1]; + num++; + ref QuestSequence reference214 = ref span280[num]; QuestSequence obj178 = new QuestSequence { Sequence = 1 @@ -194279,28 +234729,34 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + Span span282 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span282[index2] = new QuestStep(EInteractionType.Interact, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { Fly = true }; obj178.Steps = list282; reference214 = obj178; - ref QuestSequence reference215 = ref span96[2]; + num++; + ref QuestSequence reference215 = ref span280[num]; QuestSequence obj179 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.UseItem, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + Span span283 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span283[num2] = new QuestStep(EInteractionType.UseItem, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { ItemId = 2002429u, GroundTarget = true }; obj179.Steps = list283; reference215 = obj179; - ref QuestSequence reference216 = ref span96[3]; + num++; + ref QuestSequence reference216 = ref span280[num]; QuestSequence obj180 = new QuestSequence { Sequence = 3 @@ -194308,29 +234764,35 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.UseItem, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span284[index2] = new QuestStep(EInteractionType.UseItem, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { ItemId = 2002429u, GroundTarget = true }; obj180.Steps = list284; reference216 = obj180; - ref QuestSequence reference217 = ref span96[4]; + num++; + ref QuestSequence reference217 = ref span280[num]; QuestSequence obj181 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.UseItem, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span285 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span285[num2] = new QuestStep(EInteractionType.UseItem, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { ItemId = 2002429u, GroundTarget = true }; obj181.Steps = list285; reference217 = obj181; - ref QuestSequence reference218 = ref span96[5]; + num++; + ref QuestSequence reference218 = ref span280[num]; QuestSequence obj182 = new QuestSequence { Sequence = 5 @@ -194338,7 +234800,9 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) + Span span286 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + span286[index2] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) { Mount = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -194350,15 +234814,18 @@ public static class AssemblyQuestLoader }; obj182.Steps = list286; reference218 = obj182; - ref QuestSequence reference219 = ref span96[6]; + num++; + ref QuestSequence reference219 = ref span280[num]; QuestSequence obj183 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - ref QuestStep reference220 = ref CollectionsMarshal.AsSpan(list287)[0]; + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + Span span287 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + ref QuestStep reference220 = ref span287[num2]; QuestStep obj184 = new QuestStep(EInteractionType.Combat, null, new Vector3(-496.6736f, 118.65279f, -424.7939f), 612) { Fly = true, @@ -194366,15 +234833,18 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list288 = new List(num3); - CollectionsMarshal.SetCount(list288, num3); - CollectionsMarshal.AsSpan(list288)[0] = 8577u; + num4 = 1; + List list288 = new List(num4); + CollectionsMarshal.SetCount(list288, num4); + Span span288 = CollectionsMarshal.AsSpan(list288); + num3 = 0; + span288[num3] = 8577u; obj184.KillEnemyDataIds = list288; reference220 = obj184; obj183.Steps = list287; reference219 = obj183; - ref QuestSequence reference221 = ref span96[7]; + num++; + ref QuestSequence reference221 = ref span280[num]; QuestSequence obj185 = new QuestSequence { Sequence = 7 @@ -194382,18 +234852,23 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1024920u, new Vector3(-495.01794f, 118.79865f, -427.1153f), 612); + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span289[index2] = new QuestStep(EInteractionType.Interact, 1024920u, new Vector3(-495.01794f, 118.79865f, -427.1153f), 612); obj185.Steps = list289; reference221 = obj185; - ref QuestSequence reference222 = ref span96[8]; + num++; + ref QuestSequence reference222 = ref span280[num]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) + index2 = 1; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + Span span290 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span290[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones @@ -194407,13 +234882,16 @@ public static class AssemblyQuestLoader num = 1; List list291 = new List(num); CollectionsMarshal.SetCount(list291, num); - CollectionsMarshal.AsSpan(list291)[0] = "skiaz"; + Span span291 = CollectionsMarshal.AsSpan(list291); + index = 0; + span291[index] = "skiaz"; questRoot31.Author = list291; - num = 6; - List list292 = new List(num); - CollectionsMarshal.SetCount(list292, num); - Span span97 = CollectionsMarshal.AsSpan(list292); - ref QuestSequence reference223 = ref span97[0]; + index = 6; + List list292 = new List(index); + CollectionsMarshal.SetCount(list292, index); + Span span292 = CollectionsMarshal.AsSpan(list292); + num = 0; + ref QuestSequence reference223 = ref span292[num]; QuestSequence obj187 = new QuestSequence { Sequence = 0 @@ -194421,27 +234899,33 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) + Span span293 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span293[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true }; obj187.Steps = list293; reference223 = obj187; - ref QuestSequence reference224 = ref span97[1]; + num++; + ref QuestSequence reference224 = ref span292[num]; QuestSequence obj188 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1024924u, new Vector3(143.26697f, 40.296085f, 410.23877f), 612) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span294 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span294[num2] = new QuestStep(EInteractionType.Interact, 1024924u, new Vector3(143.26697f, 40.296085f, 410.23877f), 612) { Fly = true }; obj188.Steps = list294; reference224 = obj188; - ref QuestSequence reference225 = ref span97[2]; + num++; + ref QuestSequence reference225 = ref span292[num]; QuestSequence obj189 = new QuestSequence { Sequence = 2 @@ -194449,27 +234933,33 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1024929u, new Vector3(120.46985f, 48.569233f, 596.15466f), 612) + Span span295 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span295[index2] = new QuestStep(EInteractionType.Interact, 1024929u, new Vector3(120.46985f, 48.569233f, 596.15466f), 612) { Fly = true }; obj189.Steps = list295; reference225 = obj189; - ref QuestSequence reference226 = ref span97[3]; + num++; + ref QuestSequence reference226 = ref span292[num]; QuestSequence obj190 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.Interact, 1024934u, new Vector3(274.95227f, 38.278767f, 343.00745f), 612) + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span296 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span296[num2] = new QuestStep(EInteractionType.Interact, 1024934u, new Vector3(274.95227f, 38.278767f, 343.00745f), 612) { Fly = true }; obj190.Steps = list296; reference226 = obj190; - ref QuestSequence reference227 = ref span97[4]; + num++; + ref QuestSequence reference227 = ref span292[num]; QuestSequence obj191 = new QuestSequence { Sequence = 4 @@ -194477,27 +234967,32 @@ public static class AssemblyQuestLoader num2 = 2; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span98 = CollectionsMarshal.AsSpan(list297); - span98[0] = new QuestStep(EInteractionType.Interact, 1024934u, new Vector3(274.95227f, 38.278767f, 343.00745f), 612) + Span span297 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span297[index2] = new QuestStep(EInteractionType.Interact, 1024934u, new Vector3(274.95227f, 38.278767f, 343.00745f), 612) { Fly = true }; - span98[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024934u, new Vector3(274.95227f, 38.278767f, 343.00745f), 612) + index2++; + span297[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024934u, new Vector3(274.95227f, 38.278767f, 343.00745f), 612) { Comment = "Solo Duty", SinglePlayerDutyOptions = new SinglePlayerDutyOptions() }; obj191.Steps = list297; reference227 = obj191; - ref QuestSequence reference228 = ref span97[5]; + num++; + ref QuestSequence reference228 = ref span292[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + Span span298 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span298[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true }; @@ -194510,13 +235005,16 @@ public static class AssemblyQuestLoader num = 1; List list299 = new List(num); CollectionsMarshal.SetCount(list299, num); - CollectionsMarshal.AsSpan(list299)[0] = "plogon_enjoyer"; + Span span299 = CollectionsMarshal.AsSpan(list299); + index = 0; + span299[index] = "plogon_enjoyer"; questRoot32.Author = list299; - num = 5; - List list300 = new List(num); - CollectionsMarshal.SetCount(list300, num); - Span span99 = CollectionsMarshal.AsSpan(list300); - ref QuestSequence reference229 = ref span99[0]; + index = 5; + List list300 = new List(index); + CollectionsMarshal.SetCount(list300, index); + Span span300 = CollectionsMarshal.AsSpan(list300); + num = 0; + ref QuestSequence reference229 = ref span300[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -194524,31 +235022,37 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); + Span span301 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + span301[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); obj193.Steps = list301; reference229 = obj193; - ref QuestSequence reference230 = ref span99[1]; + num++; + ref QuestSequence reference230 = ref span300[num]; QuestSequence obj194 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - Span span100 = CollectionsMarshal.AsSpan(list302); - span100[0] = new QuestStep(EInteractionType.Interact, 1023142u, new Vector3(-642.9083f, 130.25946f, -538.29254f), 612) + index2 = 2; + List list302 = new List(index2); + CollectionsMarshal.SetCount(list302, index2); + Span span302 = CollectionsMarshal.AsSpan(list302); + num2 = 0; + span302[num2] = new QuestStep(EInteractionType.Interact, 1023142u, new Vector3(-642.9083f, 130.25946f, -538.29254f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; - span100[1] = new QuestStep(EInteractionType.Interact, 1024937u, new Vector3(450.88867f, 114.36421f, 235.91968f), 612) + num2++; + span302[num2] = new QuestStep(EInteractionType.Interact, 1024937u, new Vector3(450.88867f, 114.36421f, 235.91968f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj194.Steps = list302; reference230 = obj194; - ref QuestSequence reference231 = ref span99[2]; + num++; + ref QuestSequence reference231 = ref span300[num]; QuestSequence obj195 = new QuestSequence { Sequence = 2 @@ -194556,27 +235060,33 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.Interact, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) + Span span303 = CollectionsMarshal.AsSpan(list303); + index2 = 0; + span303[index2] = new QuestStep(EInteractionType.Interact, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true }; obj195.Steps = list303; reference231 = obj195; - ref QuestSequence reference232 = ref span99[3]; + num++; + ref QuestSequence reference232 = ref span300[num]; QuestSequence obj196 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.Interact, 1025235u, new Vector3(-155.2301f, 39.096687f, 159.0448f), 612) + index2 = 1; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + Span span304 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + span304[num2] = new QuestStep(EInteractionType.Interact, 1025235u, new Vector3(-155.2301f, 39.096687f, 159.0448f), 612) { Fly = true }; obj196.Steps = list304; reference232 = obj196; - ref QuestSequence reference233 = ref span99[4]; + num++; + ref QuestSequence reference233 = ref span300[num]; QuestSequence obj197 = new QuestSequence { Sequence = byte.MaxValue @@ -194584,7 +235094,9 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) + Span span305 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span305[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true }; @@ -194597,27 +235109,33 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - CollectionsMarshal.AsSpan(list306)[0] = "liza"; + Span span306 = CollectionsMarshal.AsSpan(list306); + index = 0; + span306[index] = "liza"; questRoot33.Author = list306; - num = 4; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - Span span101 = CollectionsMarshal.AsSpan(list307); - ref QuestSequence reference234 = ref span101[0]; + index = 4; + List list307 = new List(index); + CollectionsMarshal.SetCount(list307, index); + Span span307 = CollectionsMarshal.AsSpan(list307); + num = 0; + ref QuestSequence reference234 = ref span307[num]; QuestSequence obj198 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + Span span308 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span308[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj198.Steps = list308; reference234 = obj198; - ref QuestSequence reference235 = ref span101[1]; + num++; + ref QuestSequence reference235 = ref span307[num]; QuestSequence obj199 = new QuestSequence { Sequence = 1 @@ -194625,8 +235143,9 @@ public static class AssemblyQuestLoader num2 = 5; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span102 = CollectionsMarshal.AsSpan(list309); - ref QuestStep reference236 = ref span102[0]; + Span span309 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + ref QuestStep reference236 = ref span309[index2]; QuestStep obj200 = new QuestStep(EInteractionType.Interact, 2009315u, new Vector3(-213.15332f, 40.390625f, 228.38171f), 612) { StopDistance = 0.5f, @@ -194635,56 +235154,82 @@ public static class AssemblyQuestLoader num3 = 6; List> list310 = new List>(num3); CollectionsMarshal.SetCount(list310, num3); - Span> span103 = CollectionsMarshal.AsSpan(list310); - span103[0] = null; - ref List reference237 = ref span103[1]; - num4 = 6; - List list311 = new List(num4); - CollectionsMarshal.SetCount(list311, num4); - Span span104 = CollectionsMarshal.AsSpan(list311); - span104[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span104[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span104[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span104[3] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span104[4] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); - span104[5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + Span> span310 = CollectionsMarshal.AsSpan(list310); + num4 = 0; + span310[num4] = null; + num4++; + ref List reference237 = ref span310[num4]; + num5 = 6; + List list311 = new List(num5); + CollectionsMarshal.SetCount(list311, num5); + Span span311 = CollectionsMarshal.AsSpan(list311); + index3 = 0; + span311[index3] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span311[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span311[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span311[index3] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + index3++; + span311[index3] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + index3++; + span311[index3] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference237 = list311; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = null; + num4++; + span310[num4] = null; + num4++; + span310[num4] = null; + num4++; + span310[num4] = null; + num4++; + span310[num4] = null; obj200.RequiredQuestVariables = list310; reference236 = obj200; - ref QuestStep reference238 = ref span102[1]; + index2++; + ref QuestStep reference238 = ref span309[index2]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 2009316u, new Vector3(-340.16937f, 51.71277f, 285.7556f), 612) { StopDistance = 0.5f, Fly = true }; - num3 = 6; - List> list312 = new List>(num3); - CollectionsMarshal.SetCount(list312, num3); - Span> span105 = CollectionsMarshal.AsSpan(list312); - span105[0] = null; - ref List reference239 = ref span105[1]; num4 = 6; - List list313 = new List(num4); - CollectionsMarshal.SetCount(list313, num4); - Span span106 = CollectionsMarshal.AsSpan(list313); - span106[0] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span106[1] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span106[2] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span106[3] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span106[4] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); - span106[5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + List> list312 = new List>(num4); + CollectionsMarshal.SetCount(list312, num4); + Span> span312 = CollectionsMarshal.AsSpan(list312); + num3 = 0; + span312[num3] = null; + num3++; + ref List reference239 = ref span312[num3]; + index3 = 6; + List list313 = new List(index3); + CollectionsMarshal.SetCount(list313, index3); + Span span313 = CollectionsMarshal.AsSpan(list313); + num5 = 0; + span313[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span313[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span313[num5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span313[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span313[num5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span313[num5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference239 = list313; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = null; + num3++; + span312[num3] = null; + num3++; + span312[num3] = null; + num3++; + span312[num3] = null; + num3++; + span312[num3] = null; obj201.RequiredQuestVariables = list312; reference238 = obj201; - ref QuestStep reference240 = ref span102[2]; + index2++; + ref QuestStep reference240 = ref span309[index2]; QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2009317u, new Vector3(-347.34113f, 46.066895f, 216.99854f), 612) { StopDistance = 0.5f, @@ -194693,56 +235238,82 @@ public static class AssemblyQuestLoader num3 = 6; List> list314 = new List>(num3); CollectionsMarshal.SetCount(list314, num3); - Span> span107 = CollectionsMarshal.AsSpan(list314); - span107[0] = null; - ref List reference241 = ref span107[1]; - num4 = 6; - List list315 = new List(num4); - CollectionsMarshal.SetCount(list315, num4); - Span span108 = CollectionsMarshal.AsSpan(list315); - span108[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span108[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span108[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span108[3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span108[4] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span108[5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + Span> span314 = CollectionsMarshal.AsSpan(list314); + num4 = 0; + span314[num4] = null; + num4++; + ref List reference241 = ref span314[num4]; + num5 = 6; + List list315 = new List(num5); + CollectionsMarshal.SetCount(list315, num5); + Span span315 = CollectionsMarshal.AsSpan(list315); + index3 = 0; + span315[index3] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span315[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span315[index3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + index3++; + span315[index3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + index3++; + span315[index3] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + index3++; + span315[index3] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); reference241 = list315; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = null; + num4++; + span314[num4] = null; + num4++; + span314[num4] = null; + num4++; + span314[num4] = null; + num4++; + span314[num4] = null; obj202.RequiredQuestVariables = list314; reference240 = obj202; - ref QuestStep reference242 = ref span102[3]; + index2++; + ref QuestStep reference242 = ref span309[index2]; QuestStep obj203 = new QuestStep(EInteractionType.Interact, 2009313u, new Vector3(-297.65778f, 57.114502f, 354.42126f), 612) { StopDistance = 0.5f, Fly = true }; - num3 = 6; - List> list316 = new List>(num3); - CollectionsMarshal.SetCount(list316, num3); - Span> span109 = CollectionsMarshal.AsSpan(list316); - span109[0] = null; - ref List reference243 = ref span109[1]; num4 = 6; - List list317 = new List(num4); - CollectionsMarshal.SetCount(list317, num4); - Span span110 = CollectionsMarshal.AsSpan(list317); - span110[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span110[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span110[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span110[3] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span110[4] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span110[5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + List> list316 = new List>(num4); + CollectionsMarshal.SetCount(list316, num4); + Span> span316 = CollectionsMarshal.AsSpan(list316); + num3 = 0; + span316[num3] = null; + num3++; + ref List reference243 = ref span316[num3]; + index3 = 6; + List list317 = new List(index3); + CollectionsMarshal.SetCount(list317, index3); + Span span317 = CollectionsMarshal.AsSpan(list317); + num5 = 0; + span317[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span317[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span317[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span317[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span317[num5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span317[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); reference243 = list317; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = null; + num3++; + span316[num3] = null; + num3++; + span316[num3] = null; + num3++; + span316[num3] = null; + num3++; + span316[num3] = null; obj203.RequiredQuestVariables = list316; reference242 = obj203; - ref QuestStep reference244 = ref span102[4]; + index2++; + ref QuestStep reference244 = ref span309[index2]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 2009314u, new Vector3(-253.10144f, 60.715576f, 363.08838f), 612) { StopDistance = 0.5f, @@ -194751,43 +235322,59 @@ public static class AssemblyQuestLoader num3 = 6; List> list318 = new List>(num3); CollectionsMarshal.SetCount(list318, num3); - Span> span111 = CollectionsMarshal.AsSpan(list318); - span111[0] = null; - ref List reference245 = ref span111[1]; - num4 = 6; - List list319 = new List(num4); - CollectionsMarshal.SetCount(list319, num4); - Span span112 = CollectionsMarshal.AsSpan(list319); - span112[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span112[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span112[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span112[3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span112[4] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span112[5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + Span> span318 = CollectionsMarshal.AsSpan(list318); + num4 = 0; + span318[num4] = null; + num4++; + ref List reference245 = ref span318[num4]; + num5 = 6; + List list319 = new List(num5); + CollectionsMarshal.SetCount(list319, num5); + Span span319 = CollectionsMarshal.AsSpan(list319); + index3 = 0; + span319[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span319[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span319[index3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + index3++; + span319[index3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + index3++; + span319[index3] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + index3++; + span319[index3] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference245 = list319; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = null; + num4++; + span318[num4] = null; + num4++; + span318[num4] = null; + num4++; + span318[num4] = null; + num4++; + span318[num4] = null; obj204.RequiredQuestVariables = list318; reference244 = obj204; obj199.Steps = list309; reference235 = obj199; - ref QuestSequence reference246 = ref span101[2]; + num++; + ref QuestSequence reference246 = ref span307[num]; QuestSequence obj205 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.Interact, 1025051u, new Vector3(50.858276f, 50.004295f, 299.94653f), 612) + index2 = 1; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + Span span320 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + span320[num2] = new QuestStep(EInteractionType.Interact, 1025051u, new Vector3(50.858276f, 50.004295f, 299.94653f), 612) { Fly = true }; obj205.Steps = list320; reference246 = obj205; - ref QuestSequence reference247 = ref span101[3]; + num++; + ref QuestSequence reference247 = ref span307[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue @@ -194795,12 +235382,14 @@ public static class AssemblyQuestLoader num2 = 2; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - Span span113 = CollectionsMarshal.AsSpan(list321); - span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span321 = CollectionsMarshal.AsSpan(list321); + index2 = 0; + span321[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span113[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span321[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -194814,27 +235403,33 @@ public static class AssemblyQuestLoader num = 1; List list322 = new List(num); CollectionsMarshal.SetCount(list322, num); - CollectionsMarshal.AsSpan(list322)[0] = "liza"; + Span span322 = CollectionsMarshal.AsSpan(list322); + index = 0; + span322[index] = "liza"; questRoot34.Author = list322; - num = 3; - List list323 = new List(num); - CollectionsMarshal.SetCount(list323, num); - Span span114 = CollectionsMarshal.AsSpan(list323); - ref QuestSequence reference248 = ref span114[0]; + index = 3; + List list323 = new List(index); + CollectionsMarshal.SetCount(list323, index); + Span span323 = CollectionsMarshal.AsSpan(list323); + num = 0; + ref QuestSequence reference248 = ref span323[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + Span span324 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span324[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj207.Steps = list324; reference248 = obj207; - ref QuestSequence reference249 = ref span114[1]; + num++; + ref QuestSequence reference249 = ref span323[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 @@ -194842,36 +235437,50 @@ public static class AssemblyQuestLoader num2 = 5; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - Span span115 = CollectionsMarshal.AsSpan(list325); - ref QuestStep reference250 = ref span115[0]; + Span span325 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + ref QuestStep reference250 = ref span325[index2]; QuestStep obj209 = new QuestStep(EInteractionType.Interact, 2009318u, new Vector3(-229.66364f, 37.827026f, 171.46558f), 612) { Fly = true }; - num3 = 6; - List> list326 = new List>(num3); - CollectionsMarshal.SetCount(list326, num3); - Span> span116 = CollectionsMarshal.AsSpan(list326); - span116[0] = null; - ref List reference251 = ref span116[1]; num4 = 6; - List list327 = new List(num4); - CollectionsMarshal.SetCount(list327, num4); - Span span117 = CollectionsMarshal.AsSpan(list327); - span117[0] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span117[1] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span117[2] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span117[3] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span117[4] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); - span117[5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + List> list326 = new List>(num4); + CollectionsMarshal.SetCount(list326, num4); + Span> span326 = CollectionsMarshal.AsSpan(list326); + num3 = 0; + span326[num3] = null; + num3++; + ref List reference251 = ref span326[num3]; + index3 = 6; + List list327 = new List(index3); + CollectionsMarshal.SetCount(list327, index3); + Span span327 = CollectionsMarshal.AsSpan(list327); + num5 = 0; + span327[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span327[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span327[num5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span327[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span327[num5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span327[num5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference251 = list327; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = null; obj209.RequiredQuestVariables = list326; reference250 = obj209; - ref QuestStep reference252 = ref span115[1]; + index2++; + ref QuestStep reference252 = ref span325[index2]; QuestStep obj210 = new QuestStep(EInteractionType.Interact, 2009319u, new Vector3(-287.5868f, 40.360107f, 173.72388f), 612) { Fly = true @@ -194879,55 +235488,81 @@ public static class AssemblyQuestLoader num3 = 6; List> list328 = new List>(num3); CollectionsMarshal.SetCount(list328, num3); - Span> span118 = CollectionsMarshal.AsSpan(list328); - span118[0] = null; - ref List reference253 = ref span118[1]; - num4 = 6; - List list329 = new List(num4); - CollectionsMarshal.SetCount(list329, num4); - Span span119 = CollectionsMarshal.AsSpan(list329); - span119[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span119[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span119[2] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span119[3] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span119[4] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span119[5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + Span> span328 = CollectionsMarshal.AsSpan(list328); + num4 = 0; + span328[num4] = null; + num4++; + ref List reference253 = ref span328[num4]; + num5 = 6; + List list329 = new List(num5); + CollectionsMarshal.SetCount(list329, num5); + Span span329 = CollectionsMarshal.AsSpan(list329); + index3 = 0; + span329[index3] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span329[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span329[index3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + index3++; + span329[index3] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + index3++; + span329[index3] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + index3++; + span329[index3] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference253 = list329; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = null; + num4++; + span328[num4] = null; + num4++; + span328[num4] = null; + num4++; + span328[num4] = null; + num4++; + span328[num4] = null; obj210.RequiredQuestVariables = list328; reference252 = obj210; - ref QuestStep reference254 = ref span115[2]; + index2++; + ref QuestStep reference254 = ref span325[index2]; QuestStep obj211 = new QuestStep(EInteractionType.Interact, 2009320u, new Vector3(-209.33856f, 44.510498f, -18.96698f), 612) { Fly = true }; - num3 = 6; - List> list330 = new List>(num3); - CollectionsMarshal.SetCount(list330, num3); - Span> span120 = CollectionsMarshal.AsSpan(list330); - span120[0] = null; - ref List reference255 = ref span120[1]; num4 = 6; - List list331 = new List(num4); - CollectionsMarshal.SetCount(list331, num4); - Span span121 = CollectionsMarshal.AsSpan(list331); - span121[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span121[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span121[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span121[3] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span121[4] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span121[5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + List> list330 = new List>(num4); + CollectionsMarshal.SetCount(list330, num4); + Span> span330 = CollectionsMarshal.AsSpan(list330); + num3 = 0; + span330[num3] = null; + num3++; + ref List reference255 = ref span330[num3]; + index3 = 6; + List list331 = new List(index3); + CollectionsMarshal.SetCount(list331, index3); + Span span331 = CollectionsMarshal.AsSpan(list331); + num5 = 0; + span331[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span331[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span331[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span331[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span331[num5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span331[num5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); reference255 = list331; - span120[2] = null; - span120[3] = null; - span120[4] = null; - span120[5] = null; + num3++; + span330[num3] = null; + num3++; + span330[num3] = null; + num3++; + span330[num3] = null; + num3++; + span330[num3] = null; obj211.RequiredQuestVariables = list330; reference254 = obj211; - ref QuestStep reference256 = ref span115[3]; + index2++; + ref QuestStep reference256 = ref span325[index2]; QuestStep obj212 = new QuestStep(EInteractionType.Interact, 2009322u, new Vector3(-169.78723f, 42.160645f, -101.1521f), 612) { Fly = true @@ -194935,70 +235570,98 @@ public static class AssemblyQuestLoader num3 = 6; List> list332 = new List>(num3); CollectionsMarshal.SetCount(list332, num3); - Span> span122 = CollectionsMarshal.AsSpan(list332); - span122[0] = null; - ref List reference257 = ref span122[1]; - num4 = 6; - List list333 = new List(num4); - CollectionsMarshal.SetCount(list333, num4); - Span span123 = CollectionsMarshal.AsSpan(list333); - span123[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span123[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span123[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span123[3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span123[4] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span123[5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + Span> span332 = CollectionsMarshal.AsSpan(list332); + num4 = 0; + span332[num4] = null; + num4++; + ref List reference257 = ref span332[num4]; + num5 = 6; + List list333 = new List(num5); + CollectionsMarshal.SetCount(list333, num5); + Span span333 = CollectionsMarshal.AsSpan(list333); + index3 = 0; + span333[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span333[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span333[index3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + index3++; + span333[index3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + index3++; + span333[index3] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + index3++; + span333[index3] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference257 = list333; - span122[2] = null; - span122[3] = null; - span122[4] = null; - span122[5] = null; + num4++; + span332[num4] = null; + num4++; + span332[num4] = null; + num4++; + span332[num4] = null; + num4++; + span332[num4] = null; obj212.RequiredQuestVariables = list332; reference256 = obj212; - ref QuestStep reference258 = ref span115[4]; + index2++; + ref QuestStep reference258 = ref span325[index2]; QuestStep obj213 = new QuestStep(EInteractionType.Interact, 2009321u, new Vector3(-201.2207f, 45.51758f, -122.42316f), 612) { Fly = true }; - num3 = 6; - List> list334 = new List>(num3); - CollectionsMarshal.SetCount(list334, num3); - Span> span124 = CollectionsMarshal.AsSpan(list334); - span124[0] = null; - ref List reference259 = ref span124[1]; num4 = 6; - List list335 = new List(num4); - CollectionsMarshal.SetCount(list335, num4); - Span span125 = CollectionsMarshal.AsSpan(list335); - span125[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span125[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span125[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span125[3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span125[4] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span125[5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + List> list334 = new List>(num4); + CollectionsMarshal.SetCount(list334, num4); + Span> span334 = CollectionsMarshal.AsSpan(list334); + num3 = 0; + span334[num3] = null; + num3++; + ref List reference259 = ref span334[num3]; + index3 = 6; + List list335 = new List(index3); + CollectionsMarshal.SetCount(list335, index3); + Span span335 = CollectionsMarshal.AsSpan(list335); + num5 = 0; + span335[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span335[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span335[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span335[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span335[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span335[num5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); reference259 = list335; - span124[2] = null; - span124[3] = null; - span124[4] = null; - span124[5] = null; + num3++; + span334[num3] = null; + num3++; + span334[num3] = null; + num3++; + span334[num3] = null; + num3++; + span334[num3] = null; obj213.RequiredQuestVariables = list334; reference258 = obj213; obj208.Steps = list325; reference249 = obj208; - ref QuestSequence reference260 = ref span114[2]; + num++; + ref QuestSequence reference260 = ref span323[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - Span span126 = CollectionsMarshal.AsSpan(list336); - span126[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + Span span336 = CollectionsMarshal.AsSpan(list336); + num2 = 0; + span336[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span126[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span336[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -195012,13 +235675,16 @@ public static class AssemblyQuestLoader num = 1; List list337 = new List(num); CollectionsMarshal.SetCount(list337, num); - CollectionsMarshal.AsSpan(list337)[0] = "liza"; + Span span337 = CollectionsMarshal.AsSpan(list337); + index = 0; + span337[index] = "liza"; questRoot35.Author = list337; - num = 3; - List list338 = new List(num); - CollectionsMarshal.SetCount(list338, num); - Span span127 = CollectionsMarshal.AsSpan(list338); - ref QuestSequence reference261 = ref span127[0]; + index = 3; + List list338 = new List(index); + CollectionsMarshal.SetCount(list338, index); + Span span338 = CollectionsMarshal.AsSpan(list338); + num = 0; + ref QuestSequence reference261 = ref span338[num]; QuestSequence obj215 = new QuestSequence { Sequence = 0 @@ -195026,21 +235692,26 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + Span span339 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span339[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj215.Steps = list339; reference261 = obj215; - ref QuestSequence reference262 = ref span127[1]; + num++; + ref QuestSequence reference262 = ref span338[num]; QuestSequence obj216 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - ref QuestStep reference263 = ref CollectionsMarshal.AsSpan(list340)[0]; + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + Span span340 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + ref QuestStep reference263 = ref span340[num2]; QuestStep obj217 = new QuestStep(EInteractionType.Combat, 2009323u, new Vector3(-498.92426f, 39.352905f, 492.57642f), 612) { Fly = true, @@ -195049,15 +235720,19 @@ public static class AssemblyQuestLoader num3 = 3; List list341 = new List(num3); CollectionsMarshal.SetCount(list341, num3); - Span span128 = CollectionsMarshal.AsSpan(list341); - span128[0] = 8578u; - span128[1] = 8579u; - span128[2] = 8580u; + Span span341 = CollectionsMarshal.AsSpan(list341); + num4 = 0; + span341[num4] = 8578u; + num4++; + span341[num4] = 8579u; + num4++; + span341[num4] = 8580u; obj217.KillEnemyDataIds = list341; reference263 = obj217; obj216.Steps = list340; reference262 = obj216; - ref QuestSequence reference264 = ref span127[2]; + num++; + ref QuestSequence reference264 = ref span338[num]; QuestSequence obj218 = new QuestSequence { Sequence = byte.MaxValue @@ -195065,12 +235740,14 @@ public static class AssemblyQuestLoader num2 = 2; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span129 = CollectionsMarshal.AsSpan(list342); - span129[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span342 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span342[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span129[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span342[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -195084,27 +235761,33 @@ public static class AssemblyQuestLoader num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - CollectionsMarshal.AsSpan(list343)[0] = "liza"; + Span span343 = CollectionsMarshal.AsSpan(list343); + index = 0; + span343[index] = "liza"; questRoot36.Author = list343; - num = 3; - List list344 = new List(num); - CollectionsMarshal.SetCount(list344, num); - Span span130 = CollectionsMarshal.AsSpan(list344); - ref QuestSequence reference265 = ref span130[0]; + index = 3; + List list344 = new List(index); + CollectionsMarshal.SetCount(list344, index); + Span span344 = CollectionsMarshal.AsSpan(list344); + num = 0; + ref QuestSequence reference265 = ref span344[num]; QuestSequence obj219 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list345 = new List(index2); + CollectionsMarshal.SetCount(list345, index2); + Span span345 = CollectionsMarshal.AsSpan(list345); + num2 = 0; + span345[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj219.Steps = list345; reference265 = obj219; - ref QuestSequence reference266 = ref span130[1]; + num++; + ref QuestSequence reference266 = ref span344[num]; QuestSequence obj220 = new QuestSequence { Sequence = 1 @@ -195112,131 +235795,179 @@ public static class AssemblyQuestLoader num2 = 3; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - Span span131 = CollectionsMarshal.AsSpan(list346); - ref QuestStep reference267 = ref span131[0]; + Span span346 = CollectionsMarshal.AsSpan(list346); + index2 = 0; + ref QuestStep reference267 = ref span346[index2]; QuestStep obj221 = new QuestStep(EInteractionType.UseItem, 2009325u, new Vector3(-606.1647f, 53.238647f, 233.26453f), 612) { Fly = true, ItemId = 2002433u }; - num3 = 6; - List> list347 = new List>(num3); - CollectionsMarshal.SetCount(list347, num3); - Span> span132 = CollectionsMarshal.AsSpan(list347); - span132[0] = null; - ref List reference268 = ref span132[1]; - num4 = 2; - List list348 = new List(num4); - CollectionsMarshal.SetCount(list348, num4); - Span span133 = CollectionsMarshal.AsSpan(list348); - span133[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span133[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4 = 6; + List> list347 = new List>(num4); + CollectionsMarshal.SetCount(list347, num4); + Span> span347 = CollectionsMarshal.AsSpan(list347); + num3 = 0; + span347[num3] = null; + num3++; + ref List reference268 = ref span347[num3]; + num5 = 2; + List list348 = new List(num5); + CollectionsMarshal.SetCount(list348, num5); + Span span348 = CollectionsMarshal.AsSpan(list348); + index3 = 0; + span348[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span348[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference268 = list348; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = null; + num3++; + span347[num3] = null; + num3++; + span347[num3] = null; + num3++; + span347[num3] = null; + num3++; + span347[num3] = null; obj221.RequiredQuestVariables = list347; num3 = 6; List list349 = new List(num3); CollectionsMarshal.SetCount(list349, num3); - Span span134 = CollectionsMarshal.AsSpan(list349); - span134[0] = null; - span134[1] = null; - span134[2] = null; - span134[3] = null; - span134[4] = null; - span134[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span349 = CollectionsMarshal.AsSpan(list349); + num4 = 0; + span349[num4] = null; + num4++; + span349[num4] = null; + num4++; + span349[num4] = null; + num4++; + span349[num4] = null; + num4++; + span349[num4] = null; + num4++; + span349[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj221.CompletionQuestVariablesFlags = list349; reference267 = obj221; - ref QuestStep reference269 = ref span131[1]; + index2++; + ref QuestStep reference269 = ref span346[index2]; QuestStep obj222 = new QuestStep(EInteractionType.UseItem, 2009326u, new Vector3(-619.31793f, 45.181885f, 267.81104f), 612) { Fly = true, ItemId = 2002433u }; - num3 = 6; - List> list350 = new List>(num3); - CollectionsMarshal.SetCount(list350, num3); - Span> span135 = CollectionsMarshal.AsSpan(list350); - span135[0] = null; - ref List reference270 = ref span135[1]; - num4 = 2; - List list351 = new List(num4); - CollectionsMarshal.SetCount(list351, num4); - Span span136 = CollectionsMarshal.AsSpan(list351); - span136[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span136[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list350 = new List>(num4); + CollectionsMarshal.SetCount(list350, num4); + Span> span350 = CollectionsMarshal.AsSpan(list350); + num3 = 0; + span350[num3] = null; + num3++; + ref List reference270 = ref span350[num3]; + index3 = 2; + List list351 = new List(index3); + CollectionsMarshal.SetCount(list351, index3); + Span span351 = CollectionsMarshal.AsSpan(list351); + num5 = 0; + span351[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span351[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference270 = list351; - span135[2] = null; - span135[3] = null; - span135[4] = null; - span135[5] = null; + num3++; + span350[num3] = null; + num3++; + span350[num3] = null; + num3++; + span350[num3] = null; + num3++; + span350[num3] = null; obj222.RequiredQuestVariables = list350; num3 = 6; List list352 = new List(num3); CollectionsMarshal.SetCount(list352, num3); - Span span137 = CollectionsMarshal.AsSpan(list352); - span137[0] = null; - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = null; - span137[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span352 = CollectionsMarshal.AsSpan(list352); + num4 = 0; + span352[num4] = null; + num4++; + span352[num4] = null; + num4++; + span352[num4] = null; + num4++; + span352[num4] = null; + num4++; + span352[num4] = null; + num4++; + span352[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj222.CompletionQuestVariablesFlags = list352; reference269 = obj222; - ref QuestStep reference271 = ref span131[2]; + index2++; + ref QuestStep reference271 = ref span346[index2]; QuestStep obj223 = new QuestStep(EInteractionType.UseItem, 2009324u, new Vector3(-631.70825f, 44.785156f, 306.14172f), 612) { Fly = true, ItemId = 2002433u }; - num3 = 6; - List> list353 = new List>(num3); - CollectionsMarshal.SetCount(list353, num3); - Span> span138 = CollectionsMarshal.AsSpan(list353); - span138[0] = null; - ref List reference272 = ref span138[1]; - num4 = 2; - List list354 = new List(num4); - CollectionsMarshal.SetCount(list354, num4); - Span span139 = CollectionsMarshal.AsSpan(list354); - span139[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span139[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4 = 6; + List> list353 = new List>(num4); + CollectionsMarshal.SetCount(list353, num4); + Span> span353 = CollectionsMarshal.AsSpan(list353); + num3 = 0; + span353[num3] = null; + num3++; + ref List reference272 = ref span353[num3]; + num5 = 2; + List list354 = new List(num5); + CollectionsMarshal.SetCount(list354, num5); + Span span354 = CollectionsMarshal.AsSpan(list354); + index3 = 0; + span354[index3] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span354[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference272 = list354; - span138[2] = null; - span138[3] = null; - span138[4] = null; - span138[5] = null; + num3++; + span353[num3] = null; + num3++; + span353[num3] = null; + num3++; + span353[num3] = null; + num3++; + span353[num3] = null; obj223.RequiredQuestVariables = list353; num3 = 6; List list355 = new List(num3); CollectionsMarshal.SetCount(list355, num3); - Span span140 = CollectionsMarshal.AsSpan(list355); - span140[0] = null; - span140[1] = null; - span140[2] = null; - span140[3] = null; - span140[4] = null; - span140[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span355 = CollectionsMarshal.AsSpan(list355); + num4 = 0; + span355[num4] = null; + num4++; + span355[num4] = null; + num4++; + span355[num4] = null; + num4++; + span355[num4] = null; + num4++; + span355[num4] = null; + num4++; + span355[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj223.CompletionQuestVariablesFlags = list355; reference271 = obj223; obj220.Steps = list346; reference266 = obj220; - ref QuestSequence reference273 = ref span130[2]; + num++; + ref QuestSequence reference273 = ref span344[num]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list356 = new List(num2); - CollectionsMarshal.SetCount(list356, num2); - Span span141 = CollectionsMarshal.AsSpan(list356); - span141[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list356 = new List(index2); + CollectionsMarshal.SetCount(list356, index2); + Span span356 = CollectionsMarshal.AsSpan(list356); + num2 = 0; + span356[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span141[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span356[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -195250,13 +235981,16 @@ public static class AssemblyQuestLoader num = 1; List list357 = new List(num); CollectionsMarshal.SetCount(list357, num); - CollectionsMarshal.AsSpan(list357)[0] = "liza"; + Span span357 = CollectionsMarshal.AsSpan(list357); + index = 0; + span357[index] = "liza"; questRoot37.Author = list357; - num = 3; - List list358 = new List(num); - CollectionsMarshal.SetCount(list358, num); - Span span142 = CollectionsMarshal.AsSpan(list358); - ref QuestSequence reference274 = ref span142[0]; + index = 3; + List list358 = new List(index); + CollectionsMarshal.SetCount(list358, index); + Span span358 = CollectionsMarshal.AsSpan(list358); + num = 0; + ref QuestSequence reference274 = ref span358[num]; QuestSequence obj225 = new QuestSequence { Sequence = 0 @@ -195264,106 +235998,141 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + Span span359 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span359[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj225.Steps = list359; reference274 = obj225; - ref QuestSequence reference275 = ref span142[1]; + num++; + ref QuestSequence reference275 = ref span358[num]; QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - Span span143 = CollectionsMarshal.AsSpan(list360); - ref QuestStep reference276 = ref span143[0]; + index2 = 4; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + Span span360 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + ref QuestStep reference276 = ref span360[num2]; QuestStep obj227 = new QuestStep(EInteractionType.Combat, 2009327u, new Vector3(-542.2294f, 44.052734f, 202.99072f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list361 = new List(num3); - CollectionsMarshal.SetCount(list361, num3); - CollectionsMarshal.AsSpan(list361)[0] = 8581u; + num4 = 1; + List list361 = new List(num4); + CollectionsMarshal.SetCount(list361, num4); + Span span361 = CollectionsMarshal.AsSpan(list361); + num3 = 0; + span361[num3] = 8581u; obj227.KillEnemyDataIds = list361; num3 = 6; List> list362 = new List>(num3); CollectionsMarshal.SetCount(list362, num3); - Span> span144 = CollectionsMarshal.AsSpan(list362); - span144[0] = null; - span144[1] = null; - ref List reference277 = ref span144[2]; - num4 = 2; - List list363 = new List(num4); - CollectionsMarshal.SetCount(list363, num4); - Span span145 = CollectionsMarshal.AsSpan(list363); - span145[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span145[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + Span> span362 = CollectionsMarshal.AsSpan(list362); + num4 = 0; + span362[num4] = null; + num4++; + span362[num4] = null; + num4++; + ref List reference277 = ref span362[num4]; + index3 = 2; + List list363 = new List(index3); + CollectionsMarshal.SetCount(list363, index3); + Span span363 = CollectionsMarshal.AsSpan(list363); + num5 = 0; + span363[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span363[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference277 = list363; - span144[3] = null; - span144[4] = null; - span144[5] = null; + num4++; + span362[num4] = null; + num4++; + span362[num4] = null; + num4++; + span362[num4] = null; obj227.RequiredQuestVariables = list362; reference276 = obj227; - ref QuestStep reference278 = ref span143[1]; + num2++; + ref QuestStep reference278 = ref span360[num2]; QuestStep obj228 = new QuestStep(EInteractionType.Combat, 2009328u, new Vector3(-491.72202f, 55.252808f, -17.746277f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list364 = new List(num3); - CollectionsMarshal.SetCount(list364, num3); - CollectionsMarshal.AsSpan(list364)[0] = 8581u; + num4 = 1; + List list364 = new List(num4); + CollectionsMarshal.SetCount(list364, num4); + Span span364 = CollectionsMarshal.AsSpan(list364); + num3 = 0; + span364[num3] = 8581u; obj228.KillEnemyDataIds = list364; num3 = 6; List> list365 = new List>(num3); CollectionsMarshal.SetCount(list365, num3); - Span> span146 = CollectionsMarshal.AsSpan(list365); - span146[0] = null; - span146[1] = null; - ref List reference279 = ref span146[2]; - num4 = 2; - List list366 = new List(num4); - CollectionsMarshal.SetCount(list366, num4); - Span span147 = CollectionsMarshal.AsSpan(list366); - span147[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span147[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + Span> span365 = CollectionsMarshal.AsSpan(list365); + num4 = 0; + span365[num4] = null; + num4++; + span365[num4] = null; + num4++; + ref List reference279 = ref span365[num4]; + num5 = 2; + List list366 = new List(num5); + CollectionsMarshal.SetCount(list366, num5); + Span span366 = CollectionsMarshal.AsSpan(list366); + index3 = 0; + span366[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span366[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference279 = list366; - span146[3] = null; - span146[4] = null; - span146[5] = null; + num4++; + span365[num4] = null; + num4++; + span365[num4] = null; + num4++; + span365[num4] = null; obj228.RequiredQuestVariables = list365; reference278 = obj228; - ref QuestStep reference280 = ref span143[2]; + num2++; + ref QuestStep reference280 = ref span360[num2]; QuestStep obj229 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-502.02115f, 71.42156f, -162.12122f), 612) { Fly = true }; - num3 = 6; - List> list367 = new List>(num3); - CollectionsMarshal.SetCount(list367, num3); - Span> span148 = CollectionsMarshal.AsSpan(list367); - span148[0] = null; - span148[1] = null; - ref List reference281 = ref span148[2]; - num4 = 2; - List list368 = new List(num4); - CollectionsMarshal.SetCount(list368, num4); - Span span149 = CollectionsMarshal.AsSpan(list368); - span149[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span149[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4 = 6; + List> list367 = new List>(num4); + CollectionsMarshal.SetCount(list367, num4); + Span> span367 = CollectionsMarshal.AsSpan(list367); + num3 = 0; + span367[num3] = null; + num3++; + span367[num3] = null; + num3++; + ref List reference281 = ref span367[num3]; + index3 = 2; + List list368 = new List(index3); + CollectionsMarshal.SetCount(list368, index3); + Span span368 = CollectionsMarshal.AsSpan(list368); + num5 = 0; + span368[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span368[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference281 = list368; - span148[3] = null; - span148[4] = null; - span148[5] = null; + num3++; + span367[num3] = null; + num3++; + span367[num3] = null; + num3++; + span367[num3] = null; obj229.RequiredQuestVariables = list367; reference280 = obj229; - ref QuestStep reference282 = ref span143[3]; + num2++; + ref QuestStep reference282 = ref span360[num2]; QuestStep obj230 = new QuestStep(EInteractionType.Combat, 2009329u, new Vector3(-500.05344f, 72.129395f, -162.43237f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -195371,30 +236140,41 @@ public static class AssemblyQuestLoader num3 = 1; List list369 = new List(num3); CollectionsMarshal.SetCount(list369, num3); - CollectionsMarshal.AsSpan(list369)[0] = 8581u; + Span span369 = CollectionsMarshal.AsSpan(list369); + num4 = 0; + span369[num4] = 8581u; obj230.KillEnemyDataIds = list369; - num3 = 6; - List> list370 = new List>(num3); - CollectionsMarshal.SetCount(list370, num3); - Span> span150 = CollectionsMarshal.AsSpan(list370); - span150[0] = null; - span150[1] = null; - ref List reference283 = ref span150[2]; - num4 = 2; - List list371 = new List(num4); - CollectionsMarshal.SetCount(list371, num4); - Span span151 = CollectionsMarshal.AsSpan(list371); - span151[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span151[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4 = 6; + List> list370 = new List>(num4); + CollectionsMarshal.SetCount(list370, num4); + Span> span370 = CollectionsMarshal.AsSpan(list370); + num3 = 0; + span370[num3] = null; + num3++; + span370[num3] = null; + num3++; + ref List reference283 = ref span370[num3]; + num5 = 2; + List list371 = new List(num5); + CollectionsMarshal.SetCount(list371, num5); + Span span371 = CollectionsMarshal.AsSpan(list371); + index3 = 0; + span371[index3] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span371[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference283 = list371; - span150[3] = null; - span150[4] = null; - span150[5] = null; + num3++; + span370[num3] = null; + num3++; + span370[num3] = null; + num3++; + span370[num3] = null; obj230.RequiredQuestVariables = list370; reference282 = obj230; obj226.Steps = list360; reference275 = obj226; - ref QuestSequence reference284 = ref span142[2]; + num++; + ref QuestSequence reference284 = ref span358[num]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue @@ -195402,12 +236182,14 @@ public static class AssemblyQuestLoader num2 = 2; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - Span span152 = CollectionsMarshal.AsSpan(list372); - span152[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span372 = CollectionsMarshal.AsSpan(list372); + index2 = 0; + span372[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span152[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span372[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -195421,27 +236203,33 @@ public static class AssemblyQuestLoader num = 1; List list373 = new List(num); CollectionsMarshal.SetCount(list373, num); - CollectionsMarshal.AsSpan(list373)[0] = "liza"; + Span span373 = CollectionsMarshal.AsSpan(list373); + index = 0; + span373[index] = "liza"; questRoot38.Author = list373; - num = 3; - List list374 = new List(num); - CollectionsMarshal.SetCount(list374, num); - Span span153 = CollectionsMarshal.AsSpan(list374); - ref QuestSequence reference285 = ref span153[0]; + index = 3; + List list374 = new List(index); + CollectionsMarshal.SetCount(list374, index); + Span span374 = CollectionsMarshal.AsSpan(list374); + num = 0; + ref QuestSequence reference285 = ref span374[num]; QuestSequence obj232 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list375 = new List(num2); - CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list375 = new List(index2); + CollectionsMarshal.SetCount(list375, index2); + Span span375 = CollectionsMarshal.AsSpan(list375); + num2 = 0; + span375[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj232.Steps = list375; reference285 = obj232; - ref QuestSequence reference286 = ref span153[1]; + num++; + ref QuestSequence reference286 = ref span374[num]; QuestSequence obj233 = new QuestSequence { Sequence = 1 @@ -195449,8 +236237,9 @@ public static class AssemblyQuestLoader num2 = 6; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - Span span154 = CollectionsMarshal.AsSpan(list376); - ref QuestStep reference287 = ref span154[0]; + Span span376 = CollectionsMarshal.AsSpan(list376); + index2 = 0; + ref QuestStep reference287 = ref span376[index2]; QuestStep obj234 = new QuestStep(EInteractionType.Combat, null, new Vector3(-269.18445f, 63.10759f, -378.01178f), 612) { StopDistance = 1f, @@ -195461,61 +236250,87 @@ public static class AssemblyQuestLoader num3 = 1; List list377 = new List(num3); CollectionsMarshal.SetCount(list377, num3); - ref ComplexCombatData reference288 = ref CollectionsMarshal.AsSpan(list377)[0]; + Span span377 = CollectionsMarshal.AsSpan(list377); + num4 = 0; + ref ComplexCombatData reference288 = ref span377[num4]; ComplexCombatData obj235 = new ComplexCombatData { DataId = 8582u }; - num4 = 6; - List list378 = new List(num4); - CollectionsMarshal.SetCount(list378, num4); - Span span155 = CollectionsMarshal.AsSpan(list378); - span155[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span155[1] = null; - span155[2] = null; - span155[3] = null; - span155[4] = null; - span155[5] = null; + index3 = 6; + List list378 = new List(index3); + CollectionsMarshal.SetCount(list378, index3); + Span span378 = CollectionsMarshal.AsSpan(list378); + num5 = 0; + span378[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span378[num5] = null; + num5++; + span378[num5] = null; + num5++; + span378[num5] = null; + num5++; + span378[num5] = null; + num5++; + span378[num5] = null; obj235.CompletionQuestVariablesFlags = list378; reference288 = obj235; obj234.ComplexCombatData = list377; - num3 = 6; - List> list379 = new List>(num3); - CollectionsMarshal.SetCount(list379, num3); - Span> span156 = CollectionsMarshal.AsSpan(list379); - span156[0] = null; - span156[1] = null; - ref List reference289 = ref span156[2]; - num4 = 1; - List list380 = new List(num4); - CollectionsMarshal.SetCount(list380, num4); - CollectionsMarshal.AsSpan(list380)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list379 = new List>(num4); + CollectionsMarshal.SetCount(list379, num4); + Span> span379 = CollectionsMarshal.AsSpan(list379); + num3 = 0; + span379[num3] = null; + num3++; + span379[num3] = null; + num3++; + ref List reference289 = ref span379[num3]; + num5 = 1; + List list380 = new List(num5); + CollectionsMarshal.SetCount(list380, num5); + Span span380 = CollectionsMarshal.AsSpan(list380); + index3 = 0; + span380[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference289 = list380; - span156[3] = null; - span156[4] = null; - span156[5] = null; + num3++; + span379[num3] = null; + num3++; + span379[num3] = null; + num3++; + span379[num3] = null; obj234.RequiredQuestVariables = list379; reference287 = obj234; - ref QuestStep reference290 = ref span154[1]; + index2++; + ref QuestStep reference290 = ref span376[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1025054u, new Vector3(-269.18445f, 63.10759f, -378.01178f), 612); num3 = 6; List> list381 = new List>(num3); CollectionsMarshal.SetCount(list381, num3); - Span> span157 = CollectionsMarshal.AsSpan(list381); - span157[0] = null; - span157[1] = null; - ref List reference291 = ref span157[2]; - num4 = 1; - List list382 = new List(num4); - CollectionsMarshal.SetCount(list382, num4); - CollectionsMarshal.AsSpan(list382)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span> span381 = CollectionsMarshal.AsSpan(list381); + num4 = 0; + span381[num4] = null; + num4++; + span381[num4] = null; + num4++; + ref List reference291 = ref span381[num4]; + index3 = 1; + List list382 = new List(index3); + CollectionsMarshal.SetCount(list382, index3); + Span span382 = CollectionsMarshal.AsSpan(list382); + num5 = 0; + span382[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference291 = list382; - span157[3] = null; - span157[4] = null; - span157[5] = null; + num4++; + span381[num4] = null; + num4++; + span381[num4] = null; + num4++; + span381[num4] = null; questStep17.RequiredQuestVariables = list381; reference290 = questStep17; - ref QuestStep reference292 = ref span154[2]; + index2++; + ref QuestStep reference292 = ref span376[index2]; QuestStep obj236 = new QuestStep(EInteractionType.Combat, null, new Vector3(-489.06693f, 94.91285f, -332.41785f), 612) { StopDistance = 1f, @@ -195523,64 +236338,90 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list383 = new List(num3); - CollectionsMarshal.SetCount(list383, num3); - ref ComplexCombatData reference293 = ref CollectionsMarshal.AsSpan(list383)[0]; + num4 = 1; + List list383 = new List(num4); + CollectionsMarshal.SetCount(list383, num4); + Span span383 = CollectionsMarshal.AsSpan(list383); + num3 = 0; + ref ComplexCombatData reference293 = ref span383[num3]; ComplexCombatData obj237 = new ComplexCombatData { DataId = 8582u }; - num4 = 6; - List list384 = new List(num4); - CollectionsMarshal.SetCount(list384, num4); - Span span158 = CollectionsMarshal.AsSpan(list384); - span158[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span158[1] = null; - span158[2] = null; - span158[3] = null; - span158[4] = null; - span158[5] = null; + num5 = 6; + List list384 = new List(num5); + CollectionsMarshal.SetCount(list384, num5); + Span span384 = CollectionsMarshal.AsSpan(list384); + index3 = 0; + span384[index3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span384[index3] = null; + index3++; + span384[index3] = null; + index3++; + span384[index3] = null; + index3++; + span384[index3] = null; + index3++; + span384[index3] = null; obj237.CompletionQuestVariablesFlags = list384; reference293 = obj237; obj236.ComplexCombatData = list383; num3 = 6; List> list385 = new List>(num3); CollectionsMarshal.SetCount(list385, num3); - Span> span159 = CollectionsMarshal.AsSpan(list385); - span159[0] = null; - span159[1] = null; - ref List reference294 = ref span159[2]; - num4 = 1; - List list386 = new List(num4); - CollectionsMarshal.SetCount(list386, num4); - CollectionsMarshal.AsSpan(list386)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span> span385 = CollectionsMarshal.AsSpan(list385); + num4 = 0; + span385[num4] = null; + num4++; + span385[num4] = null; + num4++; + ref List reference294 = ref span385[num4]; + index3 = 1; + List list386 = new List(index3); + CollectionsMarshal.SetCount(list386, index3); + Span span386 = CollectionsMarshal.AsSpan(list386); + num5 = 0; + span386[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference294 = list386; - span159[3] = null; - span159[4] = null; - span159[5] = null; + num4++; + span385[num4] = null; + num4++; + span385[num4] = null; + num4++; + span385[num4] = null; obj236.RequiredQuestVariables = list385; reference292 = obj236; - ref QuestStep reference295 = ref span154[3]; + index2++; + ref QuestStep reference295 = ref span376[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1025053u, new Vector3(-489.06693f, 94.91285f, -332.41785f), 612); - num3 = 6; - List> list387 = new List>(num3); - CollectionsMarshal.SetCount(list387, num3); - Span> span160 = CollectionsMarshal.AsSpan(list387); - span160[0] = null; - span160[1] = null; - ref List reference296 = ref span160[2]; - num4 = 1; - List list388 = new List(num4); - CollectionsMarshal.SetCount(list388, num4); - CollectionsMarshal.AsSpan(list388)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list387 = new List>(num4); + CollectionsMarshal.SetCount(list387, num4); + Span> span387 = CollectionsMarshal.AsSpan(list387); + num3 = 0; + span387[num3] = null; + num3++; + span387[num3] = null; + num3++; + ref List reference296 = ref span387[num3]; + num5 = 1; + List list388 = new List(num5); + CollectionsMarshal.SetCount(list388, num5); + Span span388 = CollectionsMarshal.AsSpan(list388); + index3 = 0; + span388[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference296 = list388; - span160[3] = null; - span160[4] = null; - span160[5] = null; + num3++; + span387[num3] = null; + num3++; + span387[num3] = null; + num3++; + span387[num3] = null; questStep18.RequiredQuestVariables = list387; reference295 = questStep18; - ref QuestStep reference297 = ref span154[4]; + index2++; + ref QuestStep reference297 = ref span376[index2]; QuestStep obj238 = new QuestStep(EInteractionType.Combat, null, new Vector3(-440.3601f, 50.476315f, 144.06042f), 612) { Fly = true, @@ -195589,76 +236430,104 @@ public static class AssemblyQuestLoader num3 = 1; List list389 = new List(num3); CollectionsMarshal.SetCount(list389, num3); - ref ComplexCombatData reference298 = ref CollectionsMarshal.AsSpan(list389)[0]; + Span span389 = CollectionsMarshal.AsSpan(list389); + num4 = 0; + ref ComplexCombatData reference298 = ref span389[num4]; ComplexCombatData obj239 = new ComplexCombatData { DataId = 8583u }; - num4 = 6; - List list390 = new List(num4); - CollectionsMarshal.SetCount(list390, num4); - Span span161 = CollectionsMarshal.AsSpan(list390); - span161[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span161[1] = null; - span161[2] = null; - span161[3] = null; - span161[4] = null; - span161[5] = null; + index3 = 6; + List list390 = new List(index3); + CollectionsMarshal.SetCount(list390, index3); + Span span390 = CollectionsMarshal.AsSpan(list390); + num5 = 0; + span390[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span390[num5] = null; + num5++; + span390[num5] = null; + num5++; + span390[num5] = null; + num5++; + span390[num5] = null; + num5++; + span390[num5] = null; obj239.CompletionQuestVariablesFlags = list390; reference298 = obj239; obj238.ComplexCombatData = list389; - num3 = 6; - List> list391 = new List>(num3); - CollectionsMarshal.SetCount(list391, num3); - Span> span162 = CollectionsMarshal.AsSpan(list391); - span162[0] = null; - span162[1] = null; - ref List reference299 = ref span162[2]; - num4 = 1; - List list392 = new List(num4); - CollectionsMarshal.SetCount(list392, num4); - CollectionsMarshal.AsSpan(list392)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list391 = new List>(num4); + CollectionsMarshal.SetCount(list391, num4); + Span> span391 = CollectionsMarshal.AsSpan(list391); + num3 = 0; + span391[num3] = null; + num3++; + span391[num3] = null; + num3++; + ref List reference299 = ref span391[num3]; + num5 = 1; + List list392 = new List(num5); + CollectionsMarshal.SetCount(list392, num5); + Span span392 = CollectionsMarshal.AsSpan(list392); + index3 = 0; + span392[index3] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference299 = list392; - span162[3] = null; - span162[4] = null; - span162[5] = null; + num3++; + span391[num3] = null; + num3++; + span391[num3] = null; + num3++; + span391[num3] = null; obj238.RequiredQuestVariables = list391; reference297 = obj238; - ref QuestStep reference300 = ref span154[5]; + index2++; + ref QuestStep reference300 = ref span376[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1025052u, new Vector3(-440.3601f, 50.476315f, 144.06042f), 612); num3 = 6; List> list393 = new List>(num3); CollectionsMarshal.SetCount(list393, num3); - Span> span163 = CollectionsMarshal.AsSpan(list393); - span163[0] = null; - span163[1] = null; - ref List reference301 = ref span163[2]; - num4 = 1; - List list394 = new List(num4); - CollectionsMarshal.SetCount(list394, num4); - CollectionsMarshal.AsSpan(list394)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + Span> span393 = CollectionsMarshal.AsSpan(list393); + num4 = 0; + span393[num4] = null; + num4++; + span393[num4] = null; + num4++; + ref List reference301 = ref span393[num4]; + index3 = 1; + List list394 = new List(index3); + CollectionsMarshal.SetCount(list394, index3); + Span span394 = CollectionsMarshal.AsSpan(list394); + num5 = 0; + span394[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference301 = list394; - span163[3] = null; - span163[4] = null; - span163[5] = null; + num4++; + span393[num4] = null; + num4++; + span393[num4] = null; + num4++; + span393[num4] = null; questStep19.RequiredQuestVariables = list393; reference300 = questStep19; obj233.Steps = list376; reference286 = obj233; - ref QuestSequence reference302 = ref span153[2]; + num++; + ref QuestSequence reference302 = ref span374[num]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list395 = new List(num2); - CollectionsMarshal.SetCount(list395, num2); - Span span164 = CollectionsMarshal.AsSpan(list395); - span164[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list395 = new List(index2); + CollectionsMarshal.SetCount(list395, index2); + Span span395 = CollectionsMarshal.AsSpan(list395); + num2 = 0; + span395[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span164[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span395[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -195672,13 +236541,16 @@ public static class AssemblyQuestLoader num = 1; List list396 = new List(num); CollectionsMarshal.SetCount(list396, num); - CollectionsMarshal.AsSpan(list396)[0] = "liza"; + Span span396 = CollectionsMarshal.AsSpan(list396); + index = 0; + span396[index] = "liza"; questRoot39.Author = list396; - num = 4; - List list397 = new List(num); - CollectionsMarshal.SetCount(list397, num); - Span span165 = CollectionsMarshal.AsSpan(list397); - ref QuestSequence reference303 = ref span165[0]; + index = 4; + List list397 = new List(index); + CollectionsMarshal.SetCount(list397, index); + Span span397 = CollectionsMarshal.AsSpan(list397); + num = 0; + ref QuestSequence reference303 = ref span397[num]; QuestSequence obj241 = new QuestSequence { Sequence = 0 @@ -195686,120 +236558,166 @@ public static class AssemblyQuestLoader num2 = 1; List list398 = new List(num2); CollectionsMarshal.SetCount(list398, num2); - CollectionsMarshal.AsSpan(list398)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + Span span398 = CollectionsMarshal.AsSpan(list398); + index2 = 0; + span398[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj241.Steps = list398; reference303 = obj241; - ref QuestSequence reference304 = ref span165[1]; + num++; + ref QuestSequence reference304 = ref span397[num]; QuestSequence obj242 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - Span span166 = CollectionsMarshal.AsSpan(list399); - ref QuestStep reference305 = ref span166[0]; + index2 = 5; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + Span span399 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + ref QuestStep reference305 = ref span399[num2]; QuestStep obj243 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.82968f, 45.361248f, 453.55005f), 612) { Fly = true }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list400 = new List(num3); - CollectionsMarshal.SetCount(list400, num3); - Span span167 = CollectionsMarshal.AsSpan(list400); - span167[0] = null; - span167[1] = null; - span167[2] = null; - span167[3] = null; - span167[4] = null; - span167[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list400 = new List(num4); + CollectionsMarshal.SetCount(list400, num4); + Span span400 = CollectionsMarshal.AsSpan(list400); + num3 = 0; + span400[num3] = null; + num3++; + span400[num3] = null; + num3++; + span400[num3] = null; + num3++; + span400[num3] = null; + num3++; + span400[num3] = null; + num3++; + span400[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list400; skipConditions2.StepIf = skipStepConditions2; obj243.SkipConditions = skipConditions2; num3 = 6; List> list401 = new List>(num3); CollectionsMarshal.SetCount(list401, num3); - Span> span168 = CollectionsMarshal.AsSpan(list401); - span168[0] = null; - ref List reference306 = ref span168[1]; - num4 = 3; - List list402 = new List(num4); - CollectionsMarshal.SetCount(list402, num4); - Span span169 = CollectionsMarshal.AsSpan(list402); - span169[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span169[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span169[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + Span> span401 = CollectionsMarshal.AsSpan(list401); + num4 = 0; + span401[num4] = null; + num4++; + ref List reference306 = ref span401[num4]; + num5 = 3; + List list402 = new List(num5); + CollectionsMarshal.SetCount(list402, num5); + Span span402 = CollectionsMarshal.AsSpan(list402); + index3 = 0; + span402[index3] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span402[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span402[index3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); reference306 = list402; - span168[2] = null; - span168[3] = null; - span168[4] = null; - span168[5] = null; + num4++; + span401[num4] = null; + num4++; + span401[num4] = null; + num4++; + span401[num4] = null; + num4++; + span401[num4] = null; obj243.RequiredQuestVariables = list401; reference305 = obj243; - ref QuestStep reference307 = ref span166[1]; + num2++; + ref QuestStep reference307 = ref span399[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2009333u, new Vector3(180.4989f, 45.609253f, 452.78088f), 612); - num3 = 6; - List> list403 = new List>(num3); - CollectionsMarshal.SetCount(list403, num3); - Span> span170 = CollectionsMarshal.AsSpan(list403); - span170[0] = null; - ref List reference308 = ref span170[1]; - num4 = 3; - List list404 = new List(num4); - CollectionsMarshal.SetCount(list404, num4); - Span span171 = CollectionsMarshal.AsSpan(list404); - span171[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span171[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span171[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List> list403 = new List>(num4); + CollectionsMarshal.SetCount(list403, num4); + Span> span403 = CollectionsMarshal.AsSpan(list403); + num3 = 0; + span403[num3] = null; + num3++; + ref List reference308 = ref span403[num3]; + index3 = 3; + List list404 = new List(index3); + CollectionsMarshal.SetCount(list404, index3); + Span span404 = CollectionsMarshal.AsSpan(list404); + num5 = 0; + span404[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span404[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span404[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); reference308 = list404; - span170[2] = null; - span170[3] = null; - span170[4] = null; - span170[5] = null; + num3++; + span403[num3] = null; + num3++; + span403[num3] = null; + num3++; + span403[num3] = null; + num3++; + span403[num3] = null; questStep20.RequiredQuestVariables = list403; num3 = 6; List list405 = new List(num3); CollectionsMarshal.SetCount(list405, num3); - Span span172 = CollectionsMarshal.AsSpan(list405); - span172[0] = null; - span172[1] = null; - span172[2] = null; - span172[3] = null; - span172[4] = null; - span172[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span405 = CollectionsMarshal.AsSpan(list405); + num4 = 0; + span405[num4] = null; + num4++; + span405[num4] = null; + num4++; + span405[num4] = null; + num4++; + span405[num4] = null; + num4++; + span405[num4] = null; + num4++; + span405[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list405; reference307 = questStep20; - ref QuestStep reference309 = ref span166[2]; + num2++; + ref QuestStep reference309 = ref span399[num2]; QuestStep obj244 = new QuestStep(EInteractionType.Interact, 2009334u, new Vector3(261.21912f, 46.036377f, 369.98547f), 612) { Fly = true }; - num3 = 6; - List> list406 = new List>(num3); - CollectionsMarshal.SetCount(list406, num3); - Span> span173 = CollectionsMarshal.AsSpan(list406); - span173[0] = null; - ref List reference310 = ref span173[1]; - num4 = 3; - List list407 = new List(num4); - CollectionsMarshal.SetCount(list407, num4); - Span span174 = CollectionsMarshal.AsSpan(list407); - span174[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span174[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span174[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List> list406 = new List>(num4); + CollectionsMarshal.SetCount(list406, num4); + Span> span406 = CollectionsMarshal.AsSpan(list406); + num3 = 0; + span406[num3] = null; + num3++; + ref List reference310 = ref span406[num3]; + num5 = 3; + List list407 = new List(num5); + CollectionsMarshal.SetCount(list407, num5); + Span span407 = CollectionsMarshal.AsSpan(list407); + index3 = 0; + span407[index3] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span407[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span407[index3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); reference310 = list407; - span173[2] = null; - span173[3] = null; - span173[4] = null; - span173[5] = null; + num3++; + span406[num3] = null; + num3++; + span406[num3] = null; + num3++; + span406[num3] = null; + num3++; + span406[num3] = null; obj244.RequiredQuestVariables = list406; reference309 = obj244; - ref QuestStep reference311 = ref span166[3]; + num2++; + ref QuestStep reference311 = ref span399[num2]; QuestStep obj245 = new QuestStep(EInteractionType.Interact, 2009335u, new Vector3(239.45972f, 41.275635f, 293.6903f), 612) { Fly = true @@ -195807,51 +236725,71 @@ public static class AssemblyQuestLoader num3 = 6; List> list408 = new List>(num3); CollectionsMarshal.SetCount(list408, num3); - Span> span175 = CollectionsMarshal.AsSpan(list408); - span175[0] = null; - ref List reference312 = ref span175[1]; - num4 = 3; - List list409 = new List(num4); - CollectionsMarshal.SetCount(list409, num4); - Span span176 = CollectionsMarshal.AsSpan(list409); - span176[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span176[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span176[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + Span> span408 = CollectionsMarshal.AsSpan(list408); + num4 = 0; + span408[num4] = null; + num4++; + ref List reference312 = ref span408[num4]; + index3 = 3; + List list409 = new List(index3); + CollectionsMarshal.SetCount(list409, index3); + Span span409 = CollectionsMarshal.AsSpan(list409); + num5 = 0; + span409[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span409[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span409[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference312 = list409; - span175[2] = null; - span175[3] = null; - span175[4] = null; - span175[5] = null; + num4++; + span408[num4] = null; + num4++; + span408[num4] = null; + num4++; + span408[num4] = null; + num4++; + span408[num4] = null; obj245.RequiredQuestVariables = list408; reference311 = obj245; - ref QuestStep reference313 = ref span166[4]; + num2++; + ref QuestStep reference313 = ref span399[num2]; QuestStep obj246 = new QuestStep(EInteractionType.Interact, 2009336u, new Vector3(331.6853f, 73.3501f, 142.96167f), 612) { Fly = true }; - num3 = 6; - List> list410 = new List>(num3); - CollectionsMarshal.SetCount(list410, num3); - Span> span177 = CollectionsMarshal.AsSpan(list410); - span177[0] = null; - ref List reference314 = ref span177[1]; - num4 = 3; - List list411 = new List(num4); - CollectionsMarshal.SetCount(list411, num4); - Span span178 = CollectionsMarshal.AsSpan(list411); - span178[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span178[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span178[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List> list410 = new List>(num4); + CollectionsMarshal.SetCount(list410, num4); + Span> span410 = CollectionsMarshal.AsSpan(list410); + num3 = 0; + span410[num3] = null; + num3++; + ref List reference314 = ref span410[num3]; + num5 = 3; + List list411 = new List(num5); + CollectionsMarshal.SetCount(list411, num5); + Span span411 = CollectionsMarshal.AsSpan(list411); + index3 = 0; + span411[index3] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3++; + span411[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span411[index3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); reference314 = list411; - span177[2] = null; - span177[3] = null; - span177[4] = null; - span177[5] = null; + num3++; + span410[num3] = null; + num3++; + span410[num3] = null; + num3++; + span410[num3] = null; + num3++; + span410[num3] = null; obj246.RequiredQuestVariables = list410; reference313 = obj246; obj242.Steps = list399; reference304 = obj242; - ref QuestSequence reference315 = ref span165[2]; + num++; + ref QuestSequence reference315 = ref span397[num]; QuestSequence obj247 = new QuestSequence { Sequence = 2 @@ -195859,26 +236797,31 @@ public static class AssemblyQuestLoader num2 = 1; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - CollectionsMarshal.AsSpan(list412)[0] = new QuestStep(EInteractionType.Interact, 1025058u, new Vector3(12.344482f, 56.02146f, 260.76135f), 612) + Span span412 = CollectionsMarshal.AsSpan(list412); + index2 = 0; + span412[index2] = new QuestStep(EInteractionType.Interact, 1025058u, new Vector3(12.344482f, 56.02146f, 260.76135f), 612) { Fly = true }; obj247.Steps = list412; reference315 = obj247; - ref QuestSequence reference316 = ref span165[3]; + num++; + ref QuestSequence reference316 = ref span397[num]; QuestSequence obj248 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - Span span179 = CollectionsMarshal.AsSpan(list413); - span179[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + Span span413 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + span413[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span179[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span413[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -195892,13 +236835,16 @@ public static class AssemblyQuestLoader num = 1; List list414 = new List(num); CollectionsMarshal.SetCount(list414, num); - CollectionsMarshal.AsSpan(list414)[0] = "plogon_enjoyer"; + Span span414 = CollectionsMarshal.AsSpan(list414); + index = 0; + span414[index] = "plogon_enjoyer"; questRoot40.Author = list414; - num = 3; - List list415 = new List(num); - CollectionsMarshal.SetCount(list415, num); - Span span180 = CollectionsMarshal.AsSpan(list415); - ref QuestSequence reference317 = ref span180[0]; + index = 3; + List list415 = new List(index); + CollectionsMarshal.SetCount(list415, index); + Span span415 = CollectionsMarshal.AsSpan(list415); + num = 0; + ref QuestSequence reference317 = ref span415[num]; QuestSequence obj249 = new QuestSequence { Sequence = 0 @@ -195906,22 +236852,26 @@ public static class AssemblyQuestLoader num2 = 1; List list416 = new List(num2); CollectionsMarshal.SetCount(list416, num2); - CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + Span span416 = CollectionsMarshal.AsSpan(list416); + index2 = 0; + span416[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj249.Steps = list416; reference317 = obj249; - ref QuestSequence reference318 = ref span180[1]; + num++; + ref QuestSequence reference318 = ref span415[num]; QuestSequence obj250 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list417 = new List(num2); - CollectionsMarshal.SetCount(list417, num2); - Span span181 = CollectionsMarshal.AsSpan(list417); - ref QuestStep reference319 = ref span181[0]; + index2 = 3; + List list417 = new List(index2); + CollectionsMarshal.SetCount(list417, index2); + Span span417 = CollectionsMarshal.AsSpan(list417); + num2 = 0; + ref QuestStep reference319 = ref span417[num2]; QuestStep obj251 = new QuestStep(EInteractionType.Combat, 2009337u, new Vector3(94.95691f, 49.05774f, 575.2803f), 612) { Fly = true, @@ -195930,28 +236880,39 @@ public static class AssemblyQuestLoader num3 = 1; List list418 = new List(num3); CollectionsMarshal.SetCount(list418, num3); - CollectionsMarshal.AsSpan(list418)[0] = 8584u; + Span span418 = CollectionsMarshal.AsSpan(list418); + num4 = 0; + span418[num4] = 8584u; obj251.KillEnemyDataIds = list418; - num3 = 6; - List> list419 = new List>(num3); - CollectionsMarshal.SetCount(list419, num3); - Span> span182 = CollectionsMarshal.AsSpan(list419); - span182[0] = null; - span182[1] = null; - ref List reference320 = ref span182[2]; - num4 = 2; - List list420 = new List(num4); - CollectionsMarshal.SetCount(list420, num4); - Span span183 = CollectionsMarshal.AsSpan(list420); - span183[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span183[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list419 = new List>(num4); + CollectionsMarshal.SetCount(list419, num4); + Span> span419 = CollectionsMarshal.AsSpan(list419); + num3 = 0; + span419[num3] = null; + num3++; + span419[num3] = null; + num3++; + ref List reference320 = ref span419[num3]; + index3 = 2; + List list420 = new List(index3); + CollectionsMarshal.SetCount(list420, index3); + Span span420 = CollectionsMarshal.AsSpan(list420); + num5 = 0; + span420[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span420[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference320 = list420; - span182[3] = null; - span182[4] = null; - span182[5] = null; + num3++; + span419[num3] = null; + num3++; + span419[num3] = null; + num3++; + span419[num3] = null; obj251.RequiredQuestVariables = list419; reference319 = obj251; - ref QuestStep reference321 = ref span181[1]; + num2++; + ref QuestStep reference321 = ref span417[num2]; QuestStep obj252 = new QuestStep(EInteractionType.Combat, 2009338u, new Vector3(180.07166f, 47.470703f, 546.1051f), 612) { Fly = true, @@ -195960,28 +236921,39 @@ public static class AssemblyQuestLoader num3 = 1; List list421 = new List(num3); CollectionsMarshal.SetCount(list421, num3); - CollectionsMarshal.AsSpan(list421)[0] = 8584u; + Span span421 = CollectionsMarshal.AsSpan(list421); + num4 = 0; + span421[num4] = 8584u; obj252.KillEnemyDataIds = list421; - num3 = 6; - List> list422 = new List>(num3); - CollectionsMarshal.SetCount(list422, num3); - Span> span184 = CollectionsMarshal.AsSpan(list422); - span184[0] = null; - span184[1] = null; - ref List reference322 = ref span184[2]; - num4 = 2; - List list423 = new List(num4); - CollectionsMarshal.SetCount(list423, num4); - Span span185 = CollectionsMarshal.AsSpan(list423); - span185[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span185[1] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num4 = 6; + List> list422 = new List>(num4); + CollectionsMarshal.SetCount(list422, num4); + Span> span422 = CollectionsMarshal.AsSpan(list422); + num3 = 0; + span422[num3] = null; + num3++; + span422[num3] = null; + num3++; + ref List reference322 = ref span422[num3]; + num5 = 2; + List list423 = new List(num5); + CollectionsMarshal.SetCount(list423, num5); + Span span423 = CollectionsMarshal.AsSpan(list423); + index3 = 0; + span423[index3] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3++; + span423[index3] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); reference322 = list423; - span184[3] = null; - span184[4] = null; - span184[5] = null; + num3++; + span422[num3] = null; + num3++; + span422[num3] = null; + num3++; + span422[num3] = null; obj252.RequiredQuestVariables = list422; reference321 = obj252; - ref QuestStep reference323 = ref span181[2]; + num2++; + ref QuestStep reference323 = ref span417[num2]; QuestStep obj253 = new QuestStep(EInteractionType.Combat, 2009339u, new Vector3(291.21838f, 47.501343f, 496.75732f), 612) { Fly = true, @@ -195990,30 +236962,41 @@ public static class AssemblyQuestLoader num3 = 1; List list424 = new List(num3); CollectionsMarshal.SetCount(list424, num3); - CollectionsMarshal.AsSpan(list424)[0] = 8584u; + Span span424 = CollectionsMarshal.AsSpan(list424); + num4 = 0; + span424[num4] = 8584u; obj253.KillEnemyDataIds = list424; - num3 = 6; - List> list425 = new List>(num3); - CollectionsMarshal.SetCount(list425, num3); - Span> span186 = CollectionsMarshal.AsSpan(list425); - span186[0] = null; - span186[1] = null; - ref List reference324 = ref span186[2]; - num4 = 2; - List list426 = new List(num4); - CollectionsMarshal.SetCount(list426, num4); - Span span187 = CollectionsMarshal.AsSpan(list426); - span187[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span187[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4 = 6; + List> list425 = new List>(num4); + CollectionsMarshal.SetCount(list425, num4); + Span> span425 = CollectionsMarshal.AsSpan(list425); + num3 = 0; + span425[num3] = null; + num3++; + span425[num3] = null; + num3++; + ref List reference324 = ref span425[num3]; + index3 = 2; + List list426 = new List(index3); + CollectionsMarshal.SetCount(list426, index3); + Span span426 = CollectionsMarshal.AsSpan(list426); + num5 = 0; + span426[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span426[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference324 = list426; - span186[3] = null; - span186[4] = null; - span186[5] = null; + num3++; + span425[num3] = null; + num3++; + span425[num3] = null; + num3++; + span425[num3] = null; obj253.RequiredQuestVariables = list425; reference323 = obj253; obj250.Steps = list417; reference318 = obj250; - ref QuestSequence reference325 = ref span180[2]; + num++; + ref QuestSequence reference325 = ref span415[num]; QuestSequence obj254 = new QuestSequence { Sequence = byte.MaxValue @@ -196021,12 +237004,14 @@ public static class AssemblyQuestLoader num2 = 2; List list427 = new List(num2); CollectionsMarshal.SetCount(list427, num2); - Span span188 = CollectionsMarshal.AsSpan(list427); - span188[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span427 = CollectionsMarshal.AsSpan(list427); + index2 = 0; + span427[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span188[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span427[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -196044,13 +237029,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "plogon_enjoyer"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "plogon_enjoyer"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -196058,22 +237046,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.UseItem, 2009341u, new Vector3(333.1808f, 61.17334f, -362.41705f), 612) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.UseItem, 2009341u, new Vector3(333.1808f, 61.17334f, -362.41705f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -196084,14 +237076,16 @@ public static class AssemblyQuestLoader }, ItemId = 2002437u }; - span2[1] = new QuestStep(EInteractionType.UseItem, 2009340u, new Vector3(90.01294f, 74.44873f, -566.03345f), 612) + num2++; + span4[num2] = new QuestStep(EInteractionType.UseItem, 2009340u, new Vector3(90.01294f, 74.44873f, -566.03345f), 612) { Fly = true, ItemId = 2002437u }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -196099,13 +237093,15 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -196119,21 +237115,26 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "plogon_enjoyer"; + Span span6 = CollectionsMarshal.AsSpan(list6); + index = 0; + span6[index] = "plogon_enjoyer"; questRoot2.Author = list6; - num = 3; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span4 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span4[0]; + index = 3; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + Span span7 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span7[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones, @@ -196147,7 +237148,8 @@ public static class AssemblyQuestLoader }; obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span4[1]; + num++; + ref QuestSequence reference5 = ref span7[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -196155,8 +237157,9 @@ public static class AssemblyQuestLoader num2 = 6; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span5 = CollectionsMarshal.AsSpan(list9); - ref QuestStep reference6 = ref span5[0]; + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + ref QuestStep reference6 = ref span9[index2]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1025120u, new Vector3(-333.66907f, 43.042835f, -22.201904f), 612) { Fly = true @@ -196164,25 +237167,35 @@ public static class AssemblyQuestLoader int num3 = 6; List> list10 = new List>(num3); CollectionsMarshal.SetCount(list10, num3); - Span> span6 = CollectionsMarshal.AsSpan(list10); - span6[0] = null; - span6[1] = null; - span6[2] = null; - ref List reference7 = ref span6[3]; - int num4 = 2; - List list11 = new List(num4); - CollectionsMarshal.SetCount(list11, num4); - Span span7 = CollectionsMarshal.AsSpan(list11); - span7[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span7[1] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + Span> span10 = CollectionsMarshal.AsSpan(list10); + int num4 = 0; + span10[num4] = null; + num4++; + span10[num4] = null; + num4++; + span10[num4] = null; + num4++; + ref List reference7 = ref span10[num4]; + int num5 = 2; + List list11 = new List(num5); + CollectionsMarshal.SetCount(list11, num5); + Span span11 = CollectionsMarshal.AsSpan(list11); + int num6 = 0; + span11[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span11[num6] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference7 = list11; - span6[4] = null; - span6[5] = null; + num4++; + span10[num4] = null; + num4++; + span10[num4] = null; obj6.RequiredQuestVariables = list10; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice + num4 = 1; + List list12 = new List(num4); + CollectionsMarshal.SetCount(list12, num4); + Span span12 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span12[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -196190,7 +237203,8 @@ public static class AssemblyQuestLoader }; obj6.DialogueChoices = list12; reference6 = obj6; - ref QuestStep reference8 = ref span5[1]; + index2++; + ref QuestStep reference8 = ref span9[index2]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, 1025062u, new Vector3(-345.7237f, 43.09622f, 177.84387f), 612) { Fly = true, @@ -196199,31 +237213,44 @@ public static class AssemblyQuestLoader num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 8587u; + Span span13 = CollectionsMarshal.AsSpan(list13); + num4 = 0; + span13[num4] = 8587u; obj7.KillEnemyDataIds = list13; - num3 = 6; - List> list14 = new List>(num3); - CollectionsMarshal.SetCount(list14, num3); - Span> span8 = CollectionsMarshal.AsSpan(list14); - span8[0] = null; - span8[1] = null; - span8[2] = null; - ref List reference9 = ref span8[3]; - num4 = 3; - List list15 = new List(num4); - CollectionsMarshal.SetCount(list15, num4); - Span span9 = CollectionsMarshal.AsSpan(list15); - span9[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span9[1] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span9[2] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list14 = new List>(num4); + CollectionsMarshal.SetCount(list14, num4); + Span> span14 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span14[num3] = null; + num3++; + span14[num3] = null; + num3++; + span14[num3] = null; + num3++; + ref List reference9 = ref span14[num3]; + num6 = 3; + List list15 = new List(num6); + CollectionsMarshal.SetCount(list15, num6); + Span span15 = CollectionsMarshal.AsSpan(list15); + num5 = 0; + span15[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span15[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span15[num5] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference9 = list15; - span8[4] = null; - span8[5] = null; + num3++; + span14[num3] = null; + num3++; + span14[num3] = null; obj7.RequiredQuestVariables = list14; num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice + Span span16 = CollectionsMarshal.AsSpan(list16); + num4 = 0; + span16[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -196231,34 +237258,46 @@ public static class AssemblyQuestLoader }; obj7.DialogueChoices = list16; reference8 = obj7; - ref QuestStep reference10 = ref span5[2]; + index2++; + ref QuestStep reference10 = ref span9[index2]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 1025119u, new Vector3(-488.18192f, 81.128265f, -191.33289f), 612) { Fly = true }; - num3 = 6; - List> list17 = new List>(num3); - CollectionsMarshal.SetCount(list17, num3); - Span> span10 = CollectionsMarshal.AsSpan(list17); - span10[0] = null; - span10[1] = null; - span10[2] = null; - ref List reference11 = ref span10[3]; - num4 = 3; - List list18 = new List(num4); - CollectionsMarshal.SetCount(list18, num4); - Span span11 = CollectionsMarshal.AsSpan(list18); - span11[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span11[1] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span11[2] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list17 = new List>(num4); + CollectionsMarshal.SetCount(list17, num4); + Span> span17 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span17[num3] = null; + num3++; + span17[num3] = null; + num3++; + span17[num3] = null; + num3++; + ref List reference11 = ref span17[num3]; + num5 = 3; + List list18 = new List(num5); + CollectionsMarshal.SetCount(list18, num5); + Span span18 = CollectionsMarshal.AsSpan(list18); + num6 = 0; + span18[num6] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span18[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span18[num6] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference11 = list18; - span10[4] = null; - span10[5] = null; + num3++; + span17[num3] = null; + num3++; + span17[num3] = null; obj8.RequiredQuestVariables = list17; num3 = 1; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - CollectionsMarshal.AsSpan(list19)[0] = new DialogueChoice + Span span19 = CollectionsMarshal.AsSpan(list19); + num4 = 0; + span19[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -196266,39 +237305,52 @@ public static class AssemblyQuestLoader }; obj8.DialogueChoices = list19; reference10 = obj8; - ref QuestStep reference12 = ref span5[3]; + index2++; + ref QuestStep reference12 = ref span9[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, 1025061u, new Vector3(-488.18192f, 81.128265f, -191.33289f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = 8586u; + num4 = 1; + List list20 = new List(num4); + CollectionsMarshal.SetCount(list20, num4); + Span span20 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + span20[num3] = 8586u; obj9.KillEnemyDataIds = list20; num3 = 6; List> list21 = new List>(num3); CollectionsMarshal.SetCount(list21, num3); - Span> span12 = CollectionsMarshal.AsSpan(list21); - span12[0] = null; - span12[1] = null; - span12[2] = null; - ref List reference13 = ref span12[3]; - num4 = 2; - List list22 = new List(num4); - CollectionsMarshal.SetCount(list22, num4); - Span span13 = CollectionsMarshal.AsSpan(list22); - span13[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span13[1] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + Span> span21 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span21[num4] = null; + num4++; + span21[num4] = null; + num4++; + span21[num4] = null; + num4++; + ref List reference13 = ref span21[num4]; + num6 = 2; + List list22 = new List(num6); + CollectionsMarshal.SetCount(list22, num6); + Span span22 = CollectionsMarshal.AsSpan(list22); + num5 = 0; + span22[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span22[num5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference13 = list22; - span12[4] = null; - span12[5] = null; + num4++; + span21[num4] = null; + num4++; + span21[num4] = null; obj9.RequiredQuestVariables = list21; - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new DialogueChoice + num4 = 1; + List list23 = new List(num4); + CollectionsMarshal.SetCount(list23, num4); + Span span23 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span23[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -196306,7 +237358,8 @@ public static class AssemblyQuestLoader }; obj9.DialogueChoices = list23; reference12 = obj9; - ref QuestStep reference14 = ref span5[4]; + index2++; + ref QuestStep reference14 = ref span9[index2]; QuestStep obj10 = new QuestStep(EInteractionType.Combat, 1025060u, new Vector3(-572.9916f, 112.44218f, -229.32788f), 612) { Fly = true, @@ -196315,30 +237368,42 @@ public static class AssemblyQuestLoader num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = 8585u; + Span span24 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span24[num4] = 8585u; obj10.KillEnemyDataIds = list24; - num3 = 6; - List> list25 = new List>(num3); - CollectionsMarshal.SetCount(list25, num3); - Span> span14 = CollectionsMarshal.AsSpan(list25); - span14[0] = null; - span14[1] = null; - span14[2] = null; - ref List reference15 = ref span14[3]; - num4 = 2; - List list26 = new List(num4); - CollectionsMarshal.SetCount(list26, num4); - Span span15 = CollectionsMarshal.AsSpan(list26); - span15[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span15[1] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List> list25 = new List>(num4); + CollectionsMarshal.SetCount(list25, num4); + Span> span25 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + ref List reference15 = ref span25[num3]; + num5 = 2; + List list26 = new List(num5); + CollectionsMarshal.SetCount(list26, num5); + Span span26 = CollectionsMarshal.AsSpan(list26); + num6 = 0; + span26[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span26[num6] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference15 = list26; - span14[4] = null; - span14[5] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; obj10.RequiredQuestVariables = list25; num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = new DialogueChoice + Span span27 = CollectionsMarshal.AsSpan(list27); + num4 = 0; + span27[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -196346,34 +237411,46 @@ public static class AssemblyQuestLoader }; obj10.DialogueChoices = list27; reference14 = obj10; - ref QuestStep reference16 = ref span5[5]; + index2++; + ref QuestStep reference16 = ref span9[index2]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 1025118u, new Vector3(-572.96106f, 112.436066f, -229.29736f), 612) { Fly = true }; - num3 = 6; - List> list28 = new List>(num3); - CollectionsMarshal.SetCount(list28, num3); - Span> span16 = CollectionsMarshal.AsSpan(list28); - span16[0] = null; - span16[1] = null; - span16[2] = null; - ref List reference17 = ref span16[3]; - num4 = 3; - List list29 = new List(num4); - CollectionsMarshal.SetCount(list29, num4); - Span span17 = CollectionsMarshal.AsSpan(list29); - span17[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span17[1] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span17[2] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list28 = new List>(num4); + CollectionsMarshal.SetCount(list28, num4); + Span> span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + ref List reference17 = ref span28[num3]; + num6 = 3; + List list29 = new List(num6); + CollectionsMarshal.SetCount(list29, num6); + Span span29 = CollectionsMarshal.AsSpan(list29); + num5 = 0; + span29[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span29[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span29[num5] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference17 = list29; - span16[4] = null; - span16[5] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; obj11.RequiredQuestVariables = list28; num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new DialogueChoice + Span span30 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span30[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -196383,21 +237460,24 @@ public static class AssemblyQuestLoader reference16 = obj11; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference18 = ref span4[2]; + num++; + ref QuestSequence reference18 = ref span7[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span18 = CollectionsMarshal.AsSpan(list31); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; - span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span31[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -196411,13 +237491,16 @@ public static class AssemblyQuestLoader num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - CollectionsMarshal.AsSpan(list32)[0] = "plogon_enjoyer"; + Span span32 = CollectionsMarshal.AsSpan(list32); + index = 0; + span32[index] = "plogon_enjoyer"; questRoot3.Author = list32; - num = 3; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - Span span19 = CollectionsMarshal.AsSpan(list33); - ref QuestSequence reference19 = ref span19[0]; + index = 3; + List list33 = new List(index); + CollectionsMarshal.SetCount(list33, index); + Span span33 = CollectionsMarshal.AsSpan(list33); + num = 0; + ref QuestSequence reference19 = ref span33[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -196425,45 +237508,58 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj13.Steps = list34; reference19 = obj13; - ref QuestSequence reference20 = ref span19[1]; + num++; + ref QuestSequence reference20 = ref span33[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span20 = CollectionsMarshal.AsSpan(list35); - ref QuestStep reference21 = ref span20[0]; + index2 = 4; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + ref QuestStep reference21 = ref span35[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Emote, 1025066u, new Vector3(-155.90149f, 66.2623f, -366.93372f), 612) { Fly = true, Emote = EEmote.Rally }; - num3 = 6; - List> list36 = new List>(num3); - CollectionsMarshal.SetCount(list36, num3); - Span> span21 = CollectionsMarshal.AsSpan(list36); - span21[0] = null; - span21[1] = null; - ref List reference22 = ref span21[2]; - num4 = 1; - List list37 = new List(num4); - CollectionsMarshal.SetCount(list37, num4); - CollectionsMarshal.AsSpan(list37)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list36 = new List>(num4); + CollectionsMarshal.SetCount(list36, num4); + Span> span36 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + ref List reference22 = ref span36[num3]; + num5 = 1; + List list37 = new List(num5); + CollectionsMarshal.SetCount(list37, num5); + Span span37 = CollectionsMarshal.AsSpan(list37); + num6 = 0; + span37[num6] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference22 = list37; - span21[3] = null; - span21[4] = null; - span21[5] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; obj15.RequiredQuestVariables = list36; reference21 = obj15; - ref QuestStep reference23 = ref span20[1]; + num2++; + ref QuestStep reference23 = ref span35[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Emote, 1025064u, new Vector3(185.62585f, 68.93902f, -372.15234f), 612) { Fly = true, @@ -196472,44 +237568,62 @@ public static class AssemblyQuestLoader num3 = 6; List> list38 = new List>(num3); CollectionsMarshal.SetCount(list38, num3); - Span> span22 = CollectionsMarshal.AsSpan(list38); - span22[0] = null; - ref List reference24 = ref span22[1]; - num4 = 1; - List list39 = new List(num4); - CollectionsMarshal.SetCount(list39, num4); - CollectionsMarshal.AsSpan(list39)[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + Span> span38 = CollectionsMarshal.AsSpan(list38); + num4 = 0; + span38[num4] = null; + num4++; + ref List reference24 = ref span38[num4]; + num6 = 1; + List list39 = new List(num6); + CollectionsMarshal.SetCount(list39, num6); + Span span39 = CollectionsMarshal.AsSpan(list39); + num5 = 0; + span39[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); reference24 = list39; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = null; + num4++; + span38[num4] = null; + num4++; + span38[num4] = null; + num4++; + span38[num4] = null; + num4++; + span38[num4] = null; obj16.RequiredQuestVariables = list38; reference23 = obj16; - ref QuestStep reference25 = ref span20[2]; + num2++; + ref QuestStep reference25 = ref span35[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Emote, 1025063u, new Vector3(291.73718f, 73.622604f, -496.87955f), 612) { Fly = true, Emote = EEmote.Soothe }; - num3 = 6; - List> list40 = new List>(num3); - CollectionsMarshal.SetCount(list40, num3); - Span> span23 = CollectionsMarshal.AsSpan(list40); - span23[0] = null; - ref List reference26 = ref span23[1]; - num4 = 1; - List list41 = new List(num4); - CollectionsMarshal.SetCount(list41, num4); - CollectionsMarshal.AsSpan(list41)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list40 = new List>(num4); + CollectionsMarshal.SetCount(list40, num4); + Span> span40 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span40[num3] = null; + num3++; + ref List reference26 = ref span40[num3]; + num5 = 1; + List list41 = new List(num5); + CollectionsMarshal.SetCount(list41, num5); + Span span41 = CollectionsMarshal.AsSpan(list41); + num6 = 0; + span41[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference26 = list41; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; obj17.RequiredQuestVariables = list40; reference25 = obj17; - ref QuestStep reference27 = ref span20[3]; + num2++; + ref QuestStep reference27 = ref span35[num2]; QuestStep obj18 = new QuestStep(EInteractionType.Emote, 1025065u, new Vector3(-73.04492f, 62.044453f, -878.78235f), 612) { Fly = true, @@ -196518,23 +237632,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list42 = new List>(num3); CollectionsMarshal.SetCount(list42, num3); - Span> span24 = CollectionsMarshal.AsSpan(list42); - span24[0] = null; - span24[1] = null; - ref List reference28 = ref span24[2]; - num4 = 1; - List list43 = new List(num4); - CollectionsMarshal.SetCount(list43, num4); - CollectionsMarshal.AsSpan(list43)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + Span> span42 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span42[num4] = null; + num4++; + span42[num4] = null; + num4++; + ref List reference28 = ref span42[num4]; + num6 = 1; + List list43 = new List(num6); + CollectionsMarshal.SetCount(list43, num6); + Span span43 = CollectionsMarshal.AsSpan(list43); + num5 = 0; + span43[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference28 = list43; - span24[3] = null; - span24[4] = null; - span24[5] = null; + num4++; + span42[num4] = null; + num4++; + span42[num4] = null; + num4++; + span42[num4] = null; obj18.RequiredQuestVariables = list42; reference27 = obj18; obj14.Steps = list35; reference20 = obj14; - ref QuestSequence reference29 = ref span19[2]; + num++; + ref QuestSequence reference29 = ref span33[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -196542,13 +237665,15 @@ public static class AssemblyQuestLoader num2 = 2; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span25 = CollectionsMarshal.AsSpan(list44); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; - span25[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span44[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -196562,27 +237687,33 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "plogon_enjoyer"; + Span span45 = CollectionsMarshal.AsSpan(list45); + index = 0; + span45[index] = "plogon_enjoyer"; questRoot4.Author = list45; - num = 4; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span26 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference30 = ref span26[0]; + index = 4; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + Span span46 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference30 = ref span46[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj20.Steps = list47; reference30 = obj20; - ref QuestSequence reference31 = ref span26[1]; + num++; + ref QuestSequence reference31 = ref span46[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -196590,32 +237721,40 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - ref QuestStep reference32 = ref CollectionsMarshal.AsSpan(list48)[0]; + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + ref QuestStep reference32 = ref span48[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, 1025067u, new Vector3(39.04773f, 43.373318f, -221.9425f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = 8588u; + num4 = 1; + List list49 = new List(num4); + CollectionsMarshal.SetCount(list49, num4); + Span span49 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span49[num3] = 8588u; obj22.KillEnemyDataIds = list49; reference32 = obj22; obj21.Steps = list48; reference31 = obj21; - ref QuestSequence reference33 = ref span26[2]; + num++; + ref QuestSequence reference33 = ref span46[num]; QuestSequence obj23 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1025247u, new Vector3(41.45874f, 42.875717f, -218.28033f), 612); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.Interact, 1025247u, new Vector3(41.45874f, 42.875717f, -218.28033f), 612); obj23.Steps = list50; reference33 = obj23; - ref QuestSequence reference34 = ref span26[3]; + num++; + ref QuestSequence reference34 = ref span46[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue @@ -196623,12 +237762,14 @@ public static class AssemblyQuestLoader num2 = 2; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span27 = CollectionsMarshal.AsSpan(list51); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span51[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -196642,27 +237783,33 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "plogon_enjoyer"; + Span span52 = CollectionsMarshal.AsSpan(list52); + index = 0; + span52[index] = "plogon_enjoyer"; questRoot5.Author = list52; - num = 3; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span28 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference35 = ref span28[0]; + index = 3; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + Span span53 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference35 = ref span53[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj25.Steps = list54; reference35 = obj25; - ref QuestSequence reference36 = ref span28[1]; + num++; + ref QuestSequence reference36 = ref span53[num]; QuestSequence obj26 = new QuestSequence { Sequence = 1 @@ -196670,8 +237817,9 @@ public static class AssemblyQuestLoader num2 = 3; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span29 = CollectionsMarshal.AsSpan(list55); - ref QuestStep reference37 = ref span29[0]; + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + ref QuestStep reference37 = ref span55[index2]; QuestStep obj27 = new QuestStep(EInteractionType.Combat, null, new Vector3(-169.52124f, 41.96321f, -23.855082f), 612) { Fly = true, @@ -196681,27 +237829,38 @@ public static class AssemblyQuestLoader num3 = 1; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = 8589u; + Span span56 = CollectionsMarshal.AsSpan(list56); + num4 = 0; + span56[num4] = 8589u; obj27.KillEnemyDataIds = list56; obj27.CombatDelaySecondsAtStart = 1f; - num3 = 6; - List> list57 = new List>(num3); - CollectionsMarshal.SetCount(list57, num3); - Span> span30 = CollectionsMarshal.AsSpan(list57); - span30[0] = null; - span30[1] = null; - ref List reference38 = ref span30[2]; - num4 = 1; - List list58 = new List(num4); - CollectionsMarshal.SetCount(list58, num4); - CollectionsMarshal.AsSpan(list58)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list57 = new List>(num4); + CollectionsMarshal.SetCount(list57, num4); + Span> span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + ref List reference38 = ref span57[num3]; + num5 = 1; + List list58 = new List(num5); + CollectionsMarshal.SetCount(list58, num5); + Span span58 = CollectionsMarshal.AsSpan(list58); + num6 = 0; + span58[num6] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference38 = list58; - span30[3] = null; - span30[4] = null; - span30[5] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; obj27.RequiredQuestVariables = list57; reference37 = obj27; - ref QuestStep reference39 = ref span29[1]; + index2++; + ref QuestStep reference39 = ref span55[index2]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(-259.28268f, 49.18244f, 33.798065f), 612) { Fly = true, @@ -196711,27 +237870,38 @@ public static class AssemblyQuestLoader num3 = 1; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = 8589u; + Span span59 = CollectionsMarshal.AsSpan(list59); + num4 = 0; + span59[num4] = 8589u; obj28.KillEnemyDataIds = list59; obj28.CombatDelaySecondsAtStart = 1f; - num3 = 6; - List> list60 = new List>(num3); - CollectionsMarshal.SetCount(list60, num3); - Span> span31 = CollectionsMarshal.AsSpan(list60); - span31[0] = null; - span31[1] = null; - ref List reference40 = ref span31[2]; - num4 = 1; - List list61 = new List(num4); - CollectionsMarshal.SetCount(list61, num4); - CollectionsMarshal.AsSpan(list61)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list60 = new List>(num4); + CollectionsMarshal.SetCount(list60, num4); + Span> span60 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + ref List reference40 = ref span60[num3]; + num6 = 1; + List list61 = new List(num6); + CollectionsMarshal.SetCount(list61, num6); + Span span61 = CollectionsMarshal.AsSpan(list61); + num5 = 0; + span61[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference40 = list61; - span31[3] = null; - span31[4] = null; - span31[5] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = null; obj28.RequiredQuestVariables = list60; reference39 = obj28; - ref QuestStep reference41 = ref span29[2]; + index2++; + ref QuestStep reference41 = ref span55[index2]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, null, new Vector3(-219.26901f, 43.36f, 90.7601f), 612) { Fly = true, @@ -196741,42 +237911,55 @@ public static class AssemblyQuestLoader num3 = 1; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - CollectionsMarshal.AsSpan(list62)[0] = 8589u; + Span span62 = CollectionsMarshal.AsSpan(list62); + num4 = 0; + span62[num4] = 8589u; obj29.KillEnemyDataIds = list62; obj29.CombatDelaySecondsAtStart = 1f; - num3 = 6; - List> list63 = new List>(num3); - CollectionsMarshal.SetCount(list63, num3); - Span> span32 = CollectionsMarshal.AsSpan(list63); - span32[0] = null; - span32[1] = null; - ref List reference42 = ref span32[2]; - num4 = 1; - List list64 = new List(num4); - CollectionsMarshal.SetCount(list64, num4); - CollectionsMarshal.AsSpan(list64)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list63 = new List>(num4); + CollectionsMarshal.SetCount(list63, num4); + Span> span63 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + ref List reference42 = ref span63[num3]; + num5 = 1; + List list64 = new List(num5); + CollectionsMarshal.SetCount(list64, num5); + Span span64 = CollectionsMarshal.AsSpan(list64); + num6 = 0; + span64[num6] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference42 = list64; - span32[3] = null; - span32[4] = null; - span32[5] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; obj29.RequiredQuestVariables = list63; reference41 = obj29; obj26.Steps = list55; reference36 = obj26; - ref QuestSequence reference43 = ref span28[2]; + num++; + ref QuestSequence reference43 = ref span53[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - Span span33 = CollectionsMarshal.AsSpan(list65); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span65[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span33[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span65[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -196790,13 +237973,16 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "liza"; + Span span66 = CollectionsMarshal.AsSpan(list66); + index = 0; + span66[index] = "liza"; questRoot6.Author = list66; - num = 4; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span34 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference44 = ref span34[0]; + index = 4; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + Span span67 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference44 = ref span67[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -196804,24 +237990,30 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj31.Steps = list68; reference44 = obj31; - ref QuestSequence reference45 = ref span34[1]; + num++; + ref QuestSequence reference45 = ref span67[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1024775u, new Vector3(-35.599304f, 55.9782f, 214.58752f), 612); + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.Interact, 1024775u, new Vector3(-35.599304f, 55.9782f, 214.58752f), 612); obj32.Steps = list69; reference45 = obj32; - ref QuestSequence reference46 = ref span34[2]; + num++; + ref QuestSequence reference46 = ref span67[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -196829,8 +238021,9 @@ public static class AssemblyQuestLoader num2 = 2; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span35 = CollectionsMarshal.AsSpan(list70); - ref QuestStep reference47 = ref span35[0]; + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + ref QuestStep reference47 = ref span70[index2]; QuestStep obj34 = new QuestStep(EInteractionType.Action, 1025170u, new Vector3(253.10132f, 45.434376f, 416.98328f), 612) { Fly = true, @@ -196839,49 +238032,65 @@ public static class AssemblyQuestLoader num3 = 6; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span36 = CollectionsMarshal.AsSpan(list71); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span71 = CollectionsMarshal.AsSpan(list71); + num4 = 0; + span71[num4] = null; + num4++; + span71[num4] = null; + num4++; + span71[num4] = null; + num4++; + span71[num4] = null; + num4++; + span71[num4] = null; + num4++; + span71[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj34.CompletionQuestVariablesFlags = list71; reference47 = obj34; - ref QuestStep reference48 = ref span35[1]; + index2++; + ref QuestStep reference48 = ref span70[index2]; QuestStep obj35 = new QuestStep(EInteractionType.Action, 1025171u, new Vector3(349.8435f, 51.839485f, 229.66345f), 612) { Fly = true, Action = EAction.BuffetGriffin }; - num3 = 6; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span37 = CollectionsMarshal.AsSpan(list72); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list72 = new List(num4); + CollectionsMarshal.SetCount(list72, num4); + Span span72 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj35.CompletionQuestVariablesFlags = list72; reference48 = obj35; obj33.Steps = list70; reference46 = obj33; - ref QuestSequence reference49 = ref span34[3]; + num++; + ref QuestSequence reference49 = ref span67[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - Span span38 = CollectionsMarshal.AsSpan(list73); - span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span73[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Mount = false @@ -196895,13 +238104,16 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "liza"; + Span span74 = CollectionsMarshal.AsSpan(list74); + index = 0; + span74[index] = "liza"; questRoot7.Author = list74; - num = 3; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span39 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference50 = ref span39[0]; + index = 3; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + Span span75 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference50 = ref span75[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -196909,21 +238121,26 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj37.Steps = list76; reference50 = obj37; - ref QuestSequence reference51 = ref span39[1]; + num++; + ref QuestSequence reference51 = ref span75[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - ref QuestStep reference52 = ref CollectionsMarshal.AsSpan(list77)[0]; + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + ref QuestStep reference52 = ref span77[num2]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, 8590u, new Vector3(-50.436653f, 41.158955f, -264.4358f), 612) { Fly = true, @@ -196934,7 +238151,9 @@ public static class AssemblyQuestLoader num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new ComplexCombatData + Span span78 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span78[num4] = new ComplexCombatData { DataId = 7030u }; @@ -196948,7 +238167,8 @@ public static class AssemblyQuestLoader reference52 = obj39; obj38.Steps = list77; reference51 = obj38; - ref QuestSequence reference53 = ref span39[2]; + num++; + ref QuestSequence reference53 = ref span75[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -196956,12 +238176,14 @@ public static class AssemblyQuestLoader num2 = 2; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span40 = CollectionsMarshal.AsSpan(list79); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span40[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span79[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -196975,27 +238197,33 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + Span span80 = CollectionsMarshal.AsSpan(list80); + index = 0; + span80[index] = "liza"; questRoot8.Author = list80; - num = 3; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span41 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference54 = ref span41[0]; + index = 3; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + Span span81 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference54 = ref span81[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj41.Steps = list82; reference54 = obj41; - ref QuestSequence reference55 = ref span41[1]; + num++; + ref QuestSequence reference55 = ref span81[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -197003,221 +238231,302 @@ public static class AssemblyQuestLoader num2 = 6; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span42 = CollectionsMarshal.AsSpan(list83); - ref QuestStep reference56 = ref span42[0]; + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + ref QuestStep reference56 = ref span83[index2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, 2009344u, new Vector3(101.304565f, 41.031494f, -180.89569f), 612) { Fly = true, Comment = "Kill enemy, then use item", EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = 8591u; + num4 = 1; + List list84 = new List(num4); + CollectionsMarshal.SetCount(list84, num4); + Span span84 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span84[num3] = 8591u; obj43.KillEnemyDataIds = list84; num3 = 6; List> list85 = new List>(num3); CollectionsMarshal.SetCount(list85, num3); - Span> span43 = CollectionsMarshal.AsSpan(list85); - span43[0] = null; - span43[1] = null; - ref List reference57 = ref span43[2]; - num4 = 2; - List list86 = new List(num4); - CollectionsMarshal.SetCount(list86, num4); - Span span44 = CollectionsMarshal.AsSpan(list86); - span44[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span44[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + Span> span85 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span85[num4] = null; + num4++; + span85[num4] = null; + num4++; + ref List reference57 = ref span85[num4]; + num6 = 2; + List list86 = new List(num6); + CollectionsMarshal.SetCount(list86, num6); + Span span86 = CollectionsMarshal.AsSpan(list86); + num5 = 0; + span86[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span86[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference57 = list86; - span43[3] = null; - span43[4] = null; - span43[5] = null; + num4++; + span85[num4] = null; + num4++; + span85[num4] = null; + num4++; + span85[num4] = null; obj43.RequiredQuestVariables = list85; reference56 = obj43; - ref QuestStep reference58 = ref span42[1]; + index2++; + ref QuestStep reference58 = ref span83[index2]; QuestStep obj44 = new QuestStep(EInteractionType.UseItem, 8591u, new Vector3(101.304565f, 41.031494f, -180.89569f), 612) { ItemId = 2002439u }; - num3 = 6; - List> list87 = new List>(num3); - CollectionsMarshal.SetCount(list87, num3); - Span> span45 = CollectionsMarshal.AsSpan(list87); - span45[0] = null; - span45[1] = null; - ref List reference59 = ref span45[2]; - num4 = 2; - List list88 = new List(num4); - CollectionsMarshal.SetCount(list88, num4); - Span span46 = CollectionsMarshal.AsSpan(list88); - span46[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span46[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4 = 6; + List> list87 = new List>(num4); + CollectionsMarshal.SetCount(list87, num4); + Span> span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + ref List reference59 = ref span87[num3]; + num5 = 2; + List list88 = new List(num5); + CollectionsMarshal.SetCount(list88, num5); + Span span88 = CollectionsMarshal.AsSpan(list88); + num6 = 0; + span88[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span88[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference59 = list88; - span45[3] = null; - span45[4] = null; - span45[5] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; obj44.RequiredQuestVariables = list87; num3 = 6; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - Span span47 = CollectionsMarshal.AsSpan(list89); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span89 = CollectionsMarshal.AsSpan(list89); + num4 = 0; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = null; + num4++; + span89[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj44.CompletionQuestVariablesFlags = list89; reference58 = obj44; - ref QuestStep reference60 = ref span42[2]; + index2++; + ref QuestStep reference60 = ref span83[index2]; QuestStep obj45 = new QuestStep(EInteractionType.Combat, 2009345u, new Vector3(136.40039f, 50.369995f, -397.69592f), 612) { Fly = true, Comment = "Kill enemy, then use item", EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = 8591u; + num4 = 1; + List list90 = new List(num4); + CollectionsMarshal.SetCount(list90, num4); + Span span90 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span90[num3] = 8591u; obj45.KillEnemyDataIds = list90; num3 = 6; List> list91 = new List>(num3); CollectionsMarshal.SetCount(list91, num3); - Span> span48 = CollectionsMarshal.AsSpan(list91); - span48[0] = null; - span48[1] = null; - ref List reference61 = ref span48[2]; - num4 = 2; - List list92 = new List(num4); - CollectionsMarshal.SetCount(list92, num4); - Span span49 = CollectionsMarshal.AsSpan(list92); - span49[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span49[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + Span> span91 = CollectionsMarshal.AsSpan(list91); + num4 = 0; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + ref List reference61 = ref span91[num4]; + num6 = 2; + List list92 = new List(num6); + CollectionsMarshal.SetCount(list92, num6); + Span span92 = CollectionsMarshal.AsSpan(list92); + num5 = 0; + span92[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span92[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference61 = list92; - span48[3] = null; - span48[4] = null; - span48[5] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = null; obj45.RequiredQuestVariables = list91; reference60 = obj45; - ref QuestStep reference62 = ref span42[3]; + index2++; + ref QuestStep reference62 = ref span83[index2]; QuestStep obj46 = new QuestStep(EInteractionType.UseItem, 8591u, new Vector3(136.40039f, 50.369995f, -397.69592f), 612) { ItemId = 2002439u }; - num3 = 6; - List> list93 = new List>(num3); - CollectionsMarshal.SetCount(list93, num3); - Span> span50 = CollectionsMarshal.AsSpan(list93); - span50[0] = null; - span50[1] = null; - ref List reference63 = ref span50[2]; - num4 = 2; - List list94 = new List(num4); - CollectionsMarshal.SetCount(list94, num4); - Span span51 = CollectionsMarshal.AsSpan(list94); - span51[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span51[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4 = 6; + List> list93 = new List>(num4); + CollectionsMarshal.SetCount(list93, num4); + Span> span93 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span93[num3] = null; + num3++; + span93[num3] = null; + num3++; + ref List reference63 = ref span93[num3]; + num5 = 2; + List list94 = new List(num5); + CollectionsMarshal.SetCount(list94, num5); + Span span94 = CollectionsMarshal.AsSpan(list94); + num6 = 0; + span94[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span94[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference63 = list94; - span50[3] = null; - span50[4] = null; - span50[5] = null; + num3++; + span93[num3] = null; + num3++; + span93[num3] = null; + num3++; + span93[num3] = null; obj46.RequiredQuestVariables = list93; num3 = 6; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - Span span52 = CollectionsMarshal.AsSpan(list95); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span95 = CollectionsMarshal.AsSpan(list95); + num4 = 0; + span95[num4] = null; + num4++; + span95[num4] = null; + num4++; + span95[num4] = null; + num4++; + span95[num4] = null; + num4++; + span95[num4] = null; + num4++; + span95[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj46.CompletionQuestVariablesFlags = list95; reference62 = obj46; - ref QuestStep reference64 = ref span42[4]; + index2++; + ref QuestStep reference64 = ref span83[index2]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, 2009346u, new Vector3(12.588623f, 41.672363f, -294.02612f), 612) { Fly = true, Comment = "Kill enemy, then use item", EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = 8591u; + num4 = 1; + List list96 = new List(num4); + CollectionsMarshal.SetCount(list96, num4); + Span span96 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span96[num3] = 8591u; obj47.KillEnemyDataIds = list96; num3 = 6; List> list97 = new List>(num3); CollectionsMarshal.SetCount(list97, num3); - Span> span53 = CollectionsMarshal.AsSpan(list97); - span53[0] = null; - span53[1] = null; - ref List reference65 = ref span53[2]; - num4 = 2; - List list98 = new List(num4); - CollectionsMarshal.SetCount(list98, num4); - Span span54 = CollectionsMarshal.AsSpan(list98); - span54[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span54[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + Span> span97 = CollectionsMarshal.AsSpan(list97); + num4 = 0; + span97[num4] = null; + num4++; + span97[num4] = null; + num4++; + ref List reference65 = ref span97[num4]; + num6 = 2; + List list98 = new List(num6); + CollectionsMarshal.SetCount(list98, num6); + Span span98 = CollectionsMarshal.AsSpan(list98); + num5 = 0; + span98[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span98[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference65 = list98; - span53[3] = null; - span53[4] = null; - span53[5] = null; + num4++; + span97[num4] = null; + num4++; + span97[num4] = null; + num4++; + span97[num4] = null; obj47.RequiredQuestVariables = list97; reference64 = obj47; - ref QuestStep reference66 = ref span42[5]; + index2++; + ref QuestStep reference66 = ref span83[index2]; QuestStep obj48 = new QuestStep(EInteractionType.UseItem, 8591u, new Vector3(12.588623f, 41.672363f, -294.02612f), 612) { ItemId = 2002439u }; - num3 = 6; - List> list99 = new List>(num3); - CollectionsMarshal.SetCount(list99, num3); - Span> span55 = CollectionsMarshal.AsSpan(list99); - span55[0] = null; - span55[1] = null; - ref List reference67 = ref span55[2]; - num4 = 2; - List list100 = new List(num4); - CollectionsMarshal.SetCount(list100, num4); - Span span56 = CollectionsMarshal.AsSpan(list100); - span56[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span56[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list99 = new List>(num4); + CollectionsMarshal.SetCount(list99, num4); + Span> span99 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + ref List reference67 = ref span99[num3]; + num5 = 2; + List list100 = new List(num5); + CollectionsMarshal.SetCount(list100, num5); + Span span100 = CollectionsMarshal.AsSpan(list100); + num6 = 0; + span100[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span100[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference67 = list100; - span55[3] = null; - span55[4] = null; - span55[5] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = null; obj48.RequiredQuestVariables = list99; num3 = 6; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span57 = CollectionsMarshal.AsSpan(list101); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span101 = CollectionsMarshal.AsSpan(list101); + num4 = 0; + span101[num4] = null; + num4++; + span101[num4] = null; + num4++; + span101[num4] = null; + num4++; + span101[num4] = null; + num4++; + span101[num4] = null; + num4++; + span101[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj48.CompletionQuestVariablesFlags = list101; reference66 = obj48; obj42.Steps = list83; reference55 = obj42; - ref QuestSequence reference68 = ref span41[2]; + num++; + ref QuestSequence reference68 = ref span81[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span58 = CollectionsMarshal.AsSpan(list102); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span102[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -197231,13 +238540,16 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "plogon_enjoyer"; + Span span103 = CollectionsMarshal.AsSpan(list103); + index = 0; + span103[index] = "plogon_enjoyer"; questRoot9.Author = list103; - num = 6; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span59 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference69 = ref span59[0]; + index = 6; + List list104 = new List(index); + CollectionsMarshal.SetCount(list104, index); + Span span104 = CollectionsMarshal.AsSpan(list104); + num = 0; + ref QuestSequence reference69 = ref span104[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -197245,27 +238557,33 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj50.Steps = list105; reference69 = obj50; - ref QuestSequence reference70 = ref span59[1]; + num++; + ref QuestSequence reference70 = ref span104[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 2009347u, new Vector3(35.965454f, 51.255005f, 292.37805f), 612) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.Interact, 2009347u, new Vector3(35.965454f, 51.255005f, 292.37805f), 612) { Fly = true }; obj51.Steps = list106; reference70 = obj51; - ref QuestSequence reference71 = ref span59[2]; + num++; + ref QuestSequence reference71 = ref span104[num]; QuestSequence obj52 = new QuestSequence { Sequence = 2 @@ -197273,27 +238591,33 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1025072u, new Vector3(94.04126f, 41.171764f, 376.57727f), 612) + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new QuestStep(EInteractionType.Interact, 1025072u, new Vector3(94.04126f, 41.171764f, 376.57727f), 612) { Fly = true }; obj52.Steps = list107; reference71 = obj52; - ref QuestSequence reference72 = ref span59[3]; + num++; + ref QuestSequence reference72 = ref span104[num]; QuestSequence obj53 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 2009347u, new Vector3(35.965454f, 51.255005f, 292.37805f), 612) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.Interact, 2009347u, new Vector3(35.965454f, 51.255005f, 292.37805f), 612) { Fly = true }; obj53.Steps = list108; reference72 = obj53; - ref QuestSequence reference73 = ref span59[4]; + num++; + ref QuestSequence reference73 = ref span104[num]; QuestSequence obj54 = new QuestSequence { Sequence = 4 @@ -197301,26 +238625,31 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1025072u, new Vector3(94.04126f, 41.171764f, 376.57727f), 612) + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.Interact, 1025072u, new Vector3(94.04126f, 41.171764f, 376.57727f), 612) { Fly = true }; obj54.Steps = list109; reference73 = obj54; - ref QuestSequence reference74 = ref span59[5]; + num++; + ref QuestSequence reference74 = ref span104[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span60 = CollectionsMarshal.AsSpan(list110); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span110[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span60[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span110[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -197334,13 +238663,16 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "plogon_enjoyer"; + Span span111 = CollectionsMarshal.AsSpan(list111); + index = 0; + span111[index] = "plogon_enjoyer"; questRoot10.Author = list111; - num = 4; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span61 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference75 = ref span61[0]; + index = 4; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + Span span112 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference75 = ref span112[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -197348,28 +238680,34 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj56.Steps = list113; reference75 = obj56; - ref QuestSequence reference76 = ref span61[1]; + num++; + ref QuestSequence reference76 = ref span112[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.UseItem, 2009348u, new Vector3(798.2451f, 78.93494f, 345.26575f), 612) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.UseItem, 2009348u, new Vector3(798.2451f, 78.93494f, 345.26575f), 612) { Fly = true, ItemId = 2002441u }; obj57.Steps = list114; reference76 = obj57; - ref QuestSequence reference77 = ref span61[2]; + num++; + ref QuestSequence reference77 = ref span112[num]; QuestSequence obj58 = new QuestSequence { Sequence = 2 @@ -197377,33 +238715,40 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list115)[0]; + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + ref QuestStep reference78 = ref span115[index2]; QuestStep obj59 = new QuestStep(EInteractionType.Combat, 2009349u, new Vector3(798.2451f, 78.93494f, 345.26575f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = 8592u; + num4 = 1; + List list116 = new List(num4); + CollectionsMarshal.SetCount(list116, num4); + Span span116 = CollectionsMarshal.AsSpan(list116); + num3 = 0; + span116[num3] = 8592u; obj59.KillEnemyDataIds = list116; reference78 = obj59; obj58.Steps = list115; reference77 = obj58; - ref QuestSequence reference79 = ref span61[3]; + num++; + ref QuestSequence reference79 = ref span112[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - Span span62 = CollectionsMarshal.AsSpan(list117); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span62[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span117[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -197417,13 +238762,16 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "plogon_enjoyer"; + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "plogon_enjoyer"; questRoot11.Author = list118; - num = 5; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span63 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference80 = ref span63[0]; + index = 5; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference80 = ref span119[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -197431,27 +238779,33 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj61.Steps = list120; reference80 = obj61; - ref QuestSequence reference81 = ref span63[1]; + num++; + ref QuestSequence reference81 = ref span119[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1025092u, new Vector3(693.6294f, 76.575005f, 479.51465f), 612) + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span121[num2] = new QuestStep(EInteractionType.Interact, 1025092u, new Vector3(693.6294f, 76.575005f, 479.51465f), 612) { Fly = true }; obj62.Steps = list121; reference81 = obj62; - ref QuestSequence reference82 = ref span63[2]; + num++; + ref QuestSequence reference82 = ref span119[num]; QuestSequence obj63 = new QuestSequence { Sequence = 2 @@ -197459,28 +238813,34 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Snipe, 2009350u, new Vector3(620.29456f, 48.599854f, 349.87402f), 612) + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.Snipe, 2009350u, new Vector3(620.29456f, 48.599854f, 349.87402f), 612) { Fly = true, Comment = "Shoot the Crazed Dharas" }; obj63.Steps = list122; reference82 = obj63; - ref QuestSequence reference83 = ref span63[3]; + num++; + ref QuestSequence reference83 = ref span119[num]; QuestSequence obj64 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1025092u, new Vector3(693.6294f, 76.575005f, 479.51465f), 612) + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span123[num2] = new QuestStep(EInteractionType.Interact, 1025092u, new Vector3(693.6294f, 76.575005f, 479.51465f), 612) { Fly = true }; obj64.Steps = list123; reference83 = obj64; - ref QuestSequence reference84 = ref span63[4]; + num++; + ref QuestSequence reference84 = ref span119[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -197488,12 +238848,14 @@ public static class AssemblyQuestLoader num2 = 2; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span64 = CollectionsMarshal.AsSpan(list124); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span124[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span64[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span124[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -197507,27 +238869,33 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "liza"; + Span span125 = CollectionsMarshal.AsSpan(list125); + index = 0; + span125[index] = "liza"; questRoot12.Author = list125; - num = 4; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span65 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference85 = ref span65[0]; + index = 4; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + Span span126 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference85 = ref span126[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj66.Steps = list127; reference85 = obj66; - ref QuestSequence reference86 = ref span65[1]; + num++; + ref QuestSequence reference86 = ref span126[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 @@ -197535,18 +238903,23 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1024777u, new Vector3(-41.641907f, 55.97816f, 211.38318f), 612); + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span128[index2] = new QuestStep(EInteractionType.Interact, 1024777u, new Vector3(-41.641907f, 55.97816f, 211.38318f), 612); obj67.Steps = list128; reference86 = obj67; - ref QuestSequence reference87 = ref span65[2]; + num++; + ref QuestSequence reference87 = ref span126[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list129)[0]; + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + ref QuestStep reference88 = ref span129[num2]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, null, new Vector3(482.93036f, 42.43753f, 350.85095f), 612) { StopDistance = 0.5f, @@ -197557,12 +238930,15 @@ public static class AssemblyQuestLoader num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = 8593u; + Span span130 = CollectionsMarshal.AsSpan(list130); + num4 = 0; + span130[num4] = 8593u; obj69.KillEnemyDataIds = list130; reference88 = obj69; obj68.Steps = list129; reference87 = obj68; - ref QuestSequence reference89 = ref span65[3]; + num++; + ref QuestSequence reference89 = ref span126[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -197570,12 +238946,14 @@ public static class AssemblyQuestLoader num2 = 2; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span66 = CollectionsMarshal.AsSpan(list131); - span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span66[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span131[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -197589,27 +238967,33 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "liza"; + Span span132 = CollectionsMarshal.AsSpan(list132); + index = 0; + span132[index] = "liza"; questRoot13.Author = list132; - num = 5; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span67 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference90 = ref span67[0]; + index = 5; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + Span span133 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference90 = ref span133[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj71.Steps = list134; reference90 = obj71; - ref QuestSequence reference91 = ref span67[1]; + num++; + ref QuestSequence reference91 = ref span133[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -197617,24 +239001,30 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 2009353u, new Vector3(269.1233f, 39.78015f, -202.01422f), 612) + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.Interact, 2009353u, new Vector3(269.1233f, 39.78015f, -202.01422f), 612) { Fly = true }; obj72.Steps = list135; reference91 = obj72; - ref QuestSequence reference92 = ref span67[2]; + num++; + ref QuestSequence reference92 = ref span133[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 2009353u, new Vector3(269.1233f, 39.78015f, -202.01422f), 612); + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.Interact, 2009353u, new Vector3(269.1233f, 39.78015f, -202.01422f), 612); obj73.Steps = list136; reference92 = obj73; - ref QuestSequence reference93 = ref span67[3]; + num++; + ref QuestSequence reference93 = ref span133[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -197642,23 +239032,28 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 2009353u, new Vector3(269.1233f, 39.78015f, -202.01422f), 612); + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.Interact, 2009353u, new Vector3(269.1233f, 39.78015f, -202.01422f), 612); obj74.Steps = list137; reference93 = obj74; - ref QuestSequence reference94 = ref span67[4]; + num++; + ref QuestSequence reference94 = ref span133[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - Span span68 = CollectionsMarshal.AsSpan(list138); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span68[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span138[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -197672,13 +239067,16 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; + Span span139 = CollectionsMarshal.AsSpan(list139); + index = 0; + span139[index] = "liza"; questRoot14.Author = list139; - num = 3; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span69 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference95 = ref span69[0]; + index = 3; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + Span span140 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference95 = ref span140[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 @@ -197686,65 +239084,87 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj76.Steps = list141; reference95 = obj76; - ref QuestSequence reference96 = ref span69[1]; + num++; + ref QuestSequence reference96 = ref span140[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span70 = CollectionsMarshal.AsSpan(list142); - ref QuestStep reference97 = ref span70[0]; + index2 = 4; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + ref QuestStep reference97 = ref span142[num2]; QuestStep obj78 = new QuestStep(EInteractionType.Combat, 2009357u, new Vector3(-173.3883f, 58.1521f, -449.48505f), 612) { Fly = true, ItemId = 2002446u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = 8594u; + num4 = 1; + List list143 = new List(num4); + CollectionsMarshal.SetCount(list143, num4); + Span span143 = CollectionsMarshal.AsSpan(list143); + num3 = 0; + span143[num3] = 8594u; obj78.KillEnemyDataIds = list143; num3 = 6; List> list144 = new List>(num3); CollectionsMarshal.SetCount(list144, num3); - Span> span71 = CollectionsMarshal.AsSpan(list144); - span71[0] = null; - span71[1] = null; - span71[2] = null; - ref List reference98 = ref span71[3]; - num4 = 3; - List list145 = new List(num4); - CollectionsMarshal.SetCount(list145, num4); - Span span72 = CollectionsMarshal.AsSpan(list145); - span72[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span72[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span72[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + Span> span144 = CollectionsMarshal.AsSpan(list144); + num4 = 0; + span144[num4] = null; + num4++; + span144[num4] = null; + num4++; + span144[num4] = null; + num4++; + ref List reference98 = ref span144[num4]; + num6 = 3; + List list145 = new List(num6); + CollectionsMarshal.SetCount(list145, num6); + Span span145 = CollectionsMarshal.AsSpan(list145); + num5 = 0; + span145[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span145[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span145[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); reference98 = list145; - span71[4] = null; - span71[5] = null; + num4++; + span144[num4] = null; + num4++; + span144[num4] = null; obj78.RequiredQuestVariables = list144; - num3 = 6; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span73 = CollectionsMarshal.AsSpan(list146); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list146 = new List(num4); + CollectionsMarshal.SetCount(list146, num4); + Span span146 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj78.CompletionQuestVariablesFlags = list146; reference97 = obj78; - ref QuestStep reference99 = ref span70[1]; + num2++; + ref QuestStep reference99 = ref span142[num2]; QuestStep obj79 = new QuestStep(EInteractionType.Combat, 2009356u, new Vector3(-210.2846f, 59.250732f, -512.0775f), 612) { Fly = true, @@ -197754,83 +239174,119 @@ public static class AssemblyQuestLoader num3 = 1; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - CollectionsMarshal.AsSpan(list147)[0] = 8594u; + Span span147 = CollectionsMarshal.AsSpan(list147); + num4 = 0; + span147[num4] = 8594u; obj79.KillEnemyDataIds = list147; - num3 = 6; - List> list148 = new List>(num3); - CollectionsMarshal.SetCount(list148, num3); - Span> span74 = CollectionsMarshal.AsSpan(list148); - span74[0] = null; - span74[1] = null; - span74[2] = null; - ref List reference100 = ref span74[3]; - num4 = 3; - List list149 = new List(num4); - CollectionsMarshal.SetCount(list149, num4); - Span span75 = CollectionsMarshal.AsSpan(list149); - span75[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span75[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span75[2] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num4 = 6; + List> list148 = new List>(num4); + CollectionsMarshal.SetCount(list148, num4); + Span> span148 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + ref List reference100 = ref span148[num3]; + num5 = 3; + List list149 = new List(num5); + CollectionsMarshal.SetCount(list149, num5); + Span span149 = CollectionsMarshal.AsSpan(list149); + num6 = 0; + span149[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span149[num6] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num6++; + span149[num6] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); reference100 = list149; - span74[4] = null; - span74[5] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; obj79.RequiredQuestVariables = list148; num3 = 6; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - Span span76 = CollectionsMarshal.AsSpan(list150); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span150 = CollectionsMarshal.AsSpan(list150); + num4 = 0; + span150[num4] = null; + num4++; + span150[num4] = null; + num4++; + span150[num4] = null; + num4++; + span150[num4] = null; + num4++; + span150[num4] = null; + num4++; + span150[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj79.CompletionQuestVariablesFlags = list150; reference99 = obj79; - ref QuestStep reference101 = ref span70[2]; + num2++; + ref QuestStep reference101 = ref span142[num2]; QuestStep obj80 = new QuestStep(EInteractionType.Combat, 2009355u, new Vector3(-210.98651f, 59.28125f, -668.6351f), 612) { Fly = true, ItemId = 2002446u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = 8594u; + num4 = 1; + List list151 = new List(num4); + CollectionsMarshal.SetCount(list151, num4); + Span span151 = CollectionsMarshal.AsSpan(list151); + num3 = 0; + span151[num3] = 8594u; obj80.KillEnemyDataIds = list151; num3 = 6; List> list152 = new List>(num3); CollectionsMarshal.SetCount(list152, num3); - Span> span77 = CollectionsMarshal.AsSpan(list152); - span77[0] = null; - span77[1] = null; - span77[2] = null; - ref List reference102 = ref span77[3]; - num4 = 3; - List list153 = new List(num4); - CollectionsMarshal.SetCount(list153, num4); - Span span78 = CollectionsMarshal.AsSpan(list153); - span78[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span78[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span78[2] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + Span> span152 = CollectionsMarshal.AsSpan(list152); + num4 = 0; + span152[num4] = null; + num4++; + span152[num4] = null; + num4++; + span152[num4] = null; + num4++; + ref List reference102 = ref span152[num4]; + num6 = 3; + List list153 = new List(num6); + CollectionsMarshal.SetCount(list153, num6); + Span span153 = CollectionsMarshal.AsSpan(list153); + num5 = 0; + span153[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span153[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span153[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); reference102 = list153; - span77[4] = null; - span77[5] = null; + num4++; + span152[num4] = null; + num4++; + span152[num4] = null; obj80.RequiredQuestVariables = list152; - num3 = 6; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - Span span79 = CollectionsMarshal.AsSpan(list154); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list154 = new List(num4); + CollectionsMarshal.SetCount(list154, num4); + Span span154 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span154[num3] = null; + num3++; + span154[num3] = null; + num3++; + span154[num3] = null; + num3++; + span154[num3] = null; + num3++; + span154[num3] = null; + num3++; + span154[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj80.CompletionQuestVariablesFlags = list154; reference101 = obj80; - ref QuestStep reference103 = ref span70[3]; + num2++; + ref QuestStep reference103 = ref span142[num2]; QuestStep obj81 = new QuestStep(EInteractionType.Combat, 2009358u, new Vector3(-171.03839f, 59.098145f, -750.3014f), 612) { Fly = true, @@ -197840,42 +239296,60 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 8594u; + Span span155 = CollectionsMarshal.AsSpan(list155); + num4 = 0; + span155[num4] = 8594u; obj81.KillEnemyDataIds = list155; - num3 = 6; - List> list156 = new List>(num3); - CollectionsMarshal.SetCount(list156, num3); - Span> span80 = CollectionsMarshal.AsSpan(list156); - span80[0] = null; - span80[1] = null; - span80[2] = null; - ref List reference104 = ref span80[3]; - num4 = 3; - List list157 = new List(num4); - CollectionsMarshal.SetCount(list157, num4); - Span span81 = CollectionsMarshal.AsSpan(list157); - span81[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span81[1] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span81[2] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num4 = 6; + List> list156 = new List>(num4); + CollectionsMarshal.SetCount(list156, num4); + Span> span156 = CollectionsMarshal.AsSpan(list156); + num3 = 0; + span156[num3] = null; + num3++; + span156[num3] = null; + num3++; + span156[num3] = null; + num3++; + ref List reference104 = ref span156[num3]; + num5 = 3; + List list157 = new List(num5); + CollectionsMarshal.SetCount(list157, num5); + Span span157 = CollectionsMarshal.AsSpan(list157); + num6 = 0; + span157[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span157[num6] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num6++; + span157[num6] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); reference104 = list157; - span80[4] = null; - span80[5] = null; + num3++; + span156[num3] = null; + num3++; + span156[num3] = null; obj81.RequiredQuestVariables = list156; num3 = 6; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - Span span82 = CollectionsMarshal.AsSpan(list158); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span158 = CollectionsMarshal.AsSpan(list158); + num4 = 0; + span158[num4] = null; + num4++; + span158[num4] = null; + num4++; + span158[num4] = null; + num4++; + span158[num4] = null; + num4++; + span158[num4] = null; + num4++; + span158[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj81.CompletionQuestVariablesFlags = list158; reference103 = obj81; obj77.Steps = list142; reference96 = obj77; - ref QuestSequence reference105 = ref span69[2]; + num++; + ref QuestSequence reference105 = ref span140[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue @@ -197883,12 +239357,14 @@ public static class AssemblyQuestLoader num2 = 2; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span83 = CollectionsMarshal.AsSpan(list159); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span83[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span159[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -197902,27 +239378,33 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; + Span span160 = CollectionsMarshal.AsSpan(list160); + index = 0; + span160[index] = "liza"; questRoot15.Author = list160; - num = 4; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span84 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference106 = ref span84[0]; + index = 4; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + Span span161 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference106 = ref span161[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span162[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj83.Steps = list162; reference106 = obj83; - ref QuestSequence reference107 = ref span84[1]; + num++; + ref QuestSequence reference107 = ref span161[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 @@ -197930,8 +239412,9 @@ public static class AssemblyQuestLoader num2 = 12; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span85 = CollectionsMarshal.AsSpan(list163); - ref QuestStep reference108 = ref span85[0]; + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + ref QuestStep reference108 = ref span163[index2]; QuestStep obj85 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-524.1742f, 122.74836f, -452.27313f), 612) { Fly = true, @@ -197939,499 +239422,738 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - Span span86 = CollectionsMarshal.AsSpan(list164); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list164 = new List(num4); + CollectionsMarshal.SetCount(list164, num4); + Span span164 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list164; skipConditions.StepIf = skipStepConditions; obj85.SkipConditions = skipConditions; num3 = 6; List> list165 = new List>(num3); CollectionsMarshal.SetCount(list165, num3); - Span> span87 = CollectionsMarshal.AsSpan(list165); - span87[0] = null; - ref List reference109 = ref span87[1]; - num4 = 8; - List list166 = new List(num4); - CollectionsMarshal.SetCount(list166, num4); - Span span88 = CollectionsMarshal.AsSpan(list166); - span88[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span88[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span88[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span88[3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span88[4] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span88[5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span88[6] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); - span88[7] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + Span> span165 = CollectionsMarshal.AsSpan(list165); + num4 = 0; + span165[num4] = null; + num4++; + ref List reference109 = ref span165[num4]; + num6 = 8; + List list166 = new List(num6); + CollectionsMarshal.SetCount(list166, num6); + Span span166 = CollectionsMarshal.AsSpan(list166); + num5 = 0; + span166[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span166[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span166[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span166[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span166[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span166[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span166[num5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span166[num5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference109 = list166; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = null; + num4++; + span165[num4] = null; + num4++; + span165[num4] = null; + num4++; + span165[num4] = null; + num4++; + span165[num4] = null; obj85.RequiredQuestVariables = list165; reference108 = obj85; - ref QuestStep reference110 = ref span85[1]; + index2++; + ref QuestStep reference110 = ref span163[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2009361u, new Vector3(-522.6368f, 122.72827f, -452.14008f), 612); - num3 = 6; - List> list167 = new List>(num3); - CollectionsMarshal.SetCount(list167, num3); - Span> span89 = CollectionsMarshal.AsSpan(list167); - span89[0] = null; - ref List reference111 = ref span89[1]; - num4 = 8; - List list168 = new List(num4); - CollectionsMarshal.SetCount(list168, num4); - Span span90 = CollectionsMarshal.AsSpan(list168); - span90[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span90[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span90[2] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span90[3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span90[4] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span90[5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span90[6] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); - span90[7] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + num4 = 6; + List> list167 = new List>(num4); + CollectionsMarshal.SetCount(list167, num4); + Span> span167 = CollectionsMarshal.AsSpan(list167); + num3 = 0; + span167[num3] = null; + num3++; + ref List reference111 = ref span167[num3]; + num5 = 8; + List list168 = new List(num5); + CollectionsMarshal.SetCount(list168, num5); + Span span168 = CollectionsMarshal.AsSpan(list168); + num6 = 0; + span168[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span168[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span168[num6] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num6++; + span168[num6] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num6++; + span168[num6] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num6++; + span168[num6] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num6++; + span168[num6] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + num6++; + span168[num6] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference111 = list168; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = null; + num3++; + span167[num3] = null; + num3++; + span167[num3] = null; + num3++; + span167[num3] = null; + num3++; + span167[num3] = null; questStep.RequiredQuestVariables = list167; num3 = 6; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - Span span91 = CollectionsMarshal.AsSpan(list169); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span169 = CollectionsMarshal.AsSpan(list169); + num4 = 0; + span169[num4] = null; + num4++; + span169[num4] = null; + num4++; + span169[num4] = null; + num4++; + span169[num4] = null; + num4++; + span169[num4] = null; + num4++; + span169[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list169; reference110 = questStep; - ref QuestStep reference112 = ref span85[2]; + index2++; + ref QuestStep reference112 = ref span163[index2]; QuestStep obj86 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-411.28598f, 131.97496f, -481.9826f), 612) { Fly = true }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - Span span92 = CollectionsMarshal.AsSpan(list170); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list170 = new List(num4); + CollectionsMarshal.SetCount(list170, num4); + Span span170 = CollectionsMarshal.AsSpan(list170); + num3 = 0; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list170; skipConditions2.StepIf = skipStepConditions2; obj86.SkipConditions = skipConditions2; num3 = 6; List> list171 = new List>(num3); CollectionsMarshal.SetCount(list171, num3); - Span> span93 = CollectionsMarshal.AsSpan(list171); - span93[0] = null; - ref List reference113 = ref span93[1]; - num4 = 6; - List list172 = new List(num4); - CollectionsMarshal.SetCount(list172, num4); - Span span94 = CollectionsMarshal.AsSpan(list172); - span94[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span94[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span94[2] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span94[3] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span94[4] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span94[5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + Span> span171 = CollectionsMarshal.AsSpan(list171); + num4 = 0; + span171[num4] = null; + num4++; + ref List reference113 = ref span171[num4]; + num6 = 6; + List list172 = new List(num6); + CollectionsMarshal.SetCount(list172, num6); + Span span172 = CollectionsMarshal.AsSpan(list172); + num5 = 0; + span172[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span172[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span172[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span172[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span172[num5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span172[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); reference113 = list172; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = null; + num4++; + span171[num4] = null; + num4++; + span171[num4] = null; + num4++; + span171[num4] = null; + num4++; + span171[num4] = null; obj86.RequiredQuestVariables = list171; reference112 = obj86; - ref QuestStep reference114 = ref span85[3]; + index2++; + ref QuestStep reference114 = ref span163[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2009360u, new Vector3(-410.66608f, 131.85315f, -481.62054f), 612); - num3 = 6; - List> list173 = new List>(num3); - CollectionsMarshal.SetCount(list173, num3); - Span> span95 = CollectionsMarshal.AsSpan(list173); - span95[0] = null; - ref List reference115 = ref span95[1]; num4 = 6; - List list174 = new List(num4); - CollectionsMarshal.SetCount(list174, num4); - Span span96 = CollectionsMarshal.AsSpan(list174); - span96[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span96[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span96[2] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span96[3] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span96[4] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span96[5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + List> list173 = new List>(num4); + CollectionsMarshal.SetCount(list173, num4); + Span> span173 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span173[num3] = null; + num3++; + ref List reference115 = ref span173[num3]; + num5 = 6; + List list174 = new List(num5); + CollectionsMarshal.SetCount(list174, num5); + Span span174 = CollectionsMarshal.AsSpan(list174); + num6 = 0; + span174[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span174[num6] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num6++; + span174[num6] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num6++; + span174[num6] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num6++; + span174[num6] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num6++; + span174[num6] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); reference115 = list174; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = null; + num3++; + span173[num3] = null; + num3++; + span173[num3] = null; + num3++; + span173[num3] = null; + num3++; + span173[num3] = null; questStep2.RequiredQuestVariables = list173; num3 = 6; List list175 = new List(num3); CollectionsMarshal.SetCount(list175, num3); - Span span97 = CollectionsMarshal.AsSpan(list175); - span97[0] = null; - span97[1] = null; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span175 = CollectionsMarshal.AsSpan(list175); + num4 = 0; + span175[num4] = null; + num4++; + span175[num4] = null; + num4++; + span175[num4] = null; + num4++; + span175[num4] = null; + num4++; + span175[num4] = null; + num4++; + span175[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list175; reference114 = questStep2; - ref QuestStep reference116 = ref span85[4]; + index2++; + ref QuestStep reference116 = ref span163[index2]; QuestStep obj87 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-394.2737f, 128.53287f, -511.0367f), 612) { Fly = true }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - Span span98 = CollectionsMarshal.AsSpan(list176); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list176 = new List(num4); + CollectionsMarshal.SetCount(list176, num4); + Span span176 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span176[num3] = null; + num3++; + span176[num3] = null; + num3++; + span176[num3] = null; + num3++; + span176[num3] = null; + num3++; + span176[num3] = null; + num3++; + span176[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list176; skipConditions3.StepIf = skipStepConditions3; obj87.SkipConditions = skipConditions3; num3 = 6; List> list177 = new List>(num3); CollectionsMarshal.SetCount(list177, num3); - Span> span99 = CollectionsMarshal.AsSpan(list177); - span99[0] = null; - ref List reference117 = ref span99[1]; - num4 = 7; - List list178 = new List(num4); - CollectionsMarshal.SetCount(list178, num4); - Span span100 = CollectionsMarshal.AsSpan(list178); - span100[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span100[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span100[2] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span100[3] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span100[4] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span100[5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); - span100[6] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + Span> span177 = CollectionsMarshal.AsSpan(list177); + num4 = 0; + span177[num4] = null; + num4++; + ref List reference117 = ref span177[num4]; + num6 = 7; + List list178 = new List(num6); + CollectionsMarshal.SetCount(list178, num6); + Span span178 = CollectionsMarshal.AsSpan(list178); + num5 = 0; + span178[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span178[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span178[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span178[num5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span178[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span178[num5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span178[num5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference117 = list178; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = null; + num4++; + span177[num4] = null; + num4++; + span177[num4] = null; + num4++; + span177[num4] = null; + num4++; + span177[num4] = null; obj87.RequiredQuestVariables = list177; reference116 = obj87; - ref QuestStep reference118 = ref span85[5]; + index2++; + ref QuestStep reference118 = ref span163[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2009359u, new Vector3(-395.62067f, 128.83191f, -509.72766f), 612); - num3 = 6; - List> list179 = new List>(num3); - CollectionsMarshal.SetCount(list179, num3); - Span> span101 = CollectionsMarshal.AsSpan(list179); - span101[0] = null; - ref List reference119 = ref span101[1]; - num4 = 7; - List list180 = new List(num4); - CollectionsMarshal.SetCount(list180, num4); - Span span102 = CollectionsMarshal.AsSpan(list180); - span102[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span102[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span102[2] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span102[3] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span102[4] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span102[5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); - span102[6] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + num4 = 6; + List> list179 = new List>(num4); + CollectionsMarshal.SetCount(list179, num4); + Span> span179 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span179[num3] = null; + num3++; + ref List reference119 = ref span179[num3]; + num5 = 7; + List list180 = new List(num5); + CollectionsMarshal.SetCount(list180, num5); + Span span180 = CollectionsMarshal.AsSpan(list180); + num6 = 0; + span180[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span180[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span180[num6] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num6++; + span180[num6] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num6++; + span180[num6] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num6++; + span180[num6] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + num6++; + span180[num6] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference119 = list180; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = null; questStep3.RequiredQuestVariables = list179; num3 = 6; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - Span span103 = CollectionsMarshal.AsSpan(list181); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span181 = CollectionsMarshal.AsSpan(list181); + num4 = 0; + span181[num4] = null; + num4++; + span181[num4] = null; + num4++; + span181[num4] = null; + num4++; + span181[num4] = null; + num4++; + span181[num4] = null; + num4++; + span181[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list181; reference118 = questStep3; - ref QuestStep reference120 = ref span85[6]; + index2++; + ref QuestStep reference120 = ref span163[index2]; QuestStep obj88 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-476.37286f, 97.33316f, -344.84885f), 612) { Fly = true }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - Span span104 = CollectionsMarshal.AsSpan(list182); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list182 = new List(num4); + CollectionsMarshal.SetCount(list182, num4); + Span span182 = CollectionsMarshal.AsSpan(list182); + num3 = 0; + span182[num3] = null; + num3++; + span182[num3] = null; + num3++; + span182[num3] = null; + num3++; + span182[num3] = null; + num3++; + span182[num3] = null; + num3++; + span182[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list182; skipConditions4.StepIf = skipStepConditions4; obj88.SkipConditions = skipConditions4; num3 = 6; List> list183 = new List>(num3); CollectionsMarshal.SetCount(list183, num3); - Span> span105 = CollectionsMarshal.AsSpan(list183); - span105[0] = null; - ref List reference121 = ref span105[1]; - num4 = 6; - List list184 = new List(num4); - CollectionsMarshal.SetCount(list184, num4); - Span span106 = CollectionsMarshal.AsSpan(list184); - span106[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span106[1] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span106[2] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span106[3] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span106[4] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); - span106[5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + Span> span183 = CollectionsMarshal.AsSpan(list183); + num4 = 0; + span183[num4] = null; + num4++; + ref List reference121 = ref span183[num4]; + num6 = 6; + List list184 = new List(num6); + CollectionsMarshal.SetCount(list184, num6); + Span span184 = CollectionsMarshal.AsSpan(list184); + num5 = 0; + span184[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span184[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span184[num5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span184[num5] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num5++; + span184[num5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + num5++; + span184[num5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference121 = list184; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = null; + num4++; + span183[num4] = null; + num4++; + span183[num4] = null; + num4++; + span183[num4] = null; + num4++; + span183[num4] = null; obj88.RequiredQuestVariables = list183; reference120 = obj88; - ref QuestStep reference122 = ref span85[7]; + index2++; + ref QuestStep reference122 = ref span163[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2009364u, new Vector3(-475.21173f, 97.58142f, -344.0147f), 612); - num3 = 6; - List> list185 = new List>(num3); - CollectionsMarshal.SetCount(list185, num3); - Span> span107 = CollectionsMarshal.AsSpan(list185); - span107[0] = null; - ref List reference123 = ref span107[1]; num4 = 6; - List list186 = new List(num4); - CollectionsMarshal.SetCount(list186, num4); - Span span108 = CollectionsMarshal.AsSpan(list186); - span108[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span108[1] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span108[2] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span108[3] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); - span108[4] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); - span108[5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + List> list185 = new List>(num4); + CollectionsMarshal.SetCount(list185, num4); + Span> span185 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span185[num3] = null; + num3++; + ref List reference123 = ref span185[num3]; + num5 = 6; + List list186 = new List(num5); + CollectionsMarshal.SetCount(list186, num5); + Span span186 = CollectionsMarshal.AsSpan(list186); + num6 = 0; + span186[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span186[num6] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num6++; + span186[num6] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num6++; + span186[num6] = new QuestWorkValue(null, (byte)8, EQuestWorkMode.Bitwise); + num6++; + span186[num6] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + num6++; + span186[num6] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference123 = list186; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = null; + num3++; + span185[num3] = null; + num3++; + span185[num3] = null; + num3++; + span185[num3] = null; + num3++; + span185[num3] = null; questStep4.RequiredQuestVariables = list185; num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - Span span109 = CollectionsMarshal.AsSpan(list187); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + Span span187 = CollectionsMarshal.AsSpan(list187); + num4 = 0; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list187; reference122 = questStep4; - ref QuestStep reference124 = ref span85[8]; + index2++; + ref QuestStep reference124 = ref span163[index2]; QuestStep obj89 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-473.84753f, 93.84488f, -326.1048f), 612) { Fly = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span110 = CollectionsMarshal.AsSpan(list188); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list188 = new List(num4); + CollectionsMarshal.SetCount(list188, num4); + Span span188 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list188; skipConditions5.StepIf = skipStepConditions5; obj89.SkipConditions = skipConditions5; num3 = 6; List> list189 = new List>(num3); CollectionsMarshal.SetCount(list189, num3); - Span> span111 = CollectionsMarshal.AsSpan(list189); - span111[0] = null; - ref List reference125 = ref span111[1]; - num4 = 6; - List list190 = new List(num4); - CollectionsMarshal.SetCount(list190, num4); - Span span112 = CollectionsMarshal.AsSpan(list190); - span112[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span112[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span112[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span112[3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span112[4] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span112[5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + Span> span189 = CollectionsMarshal.AsSpan(list189); + num4 = 0; + span189[num4] = null; + num4++; + ref List reference125 = ref span189[num4]; + num6 = 6; + List list190 = new List(num6); + CollectionsMarshal.SetCount(list190, num6); + Span span190 = CollectionsMarshal.AsSpan(list190); + num5 = 0; + span190[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span190[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span190[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span190[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span190[num5] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num5++; + span190[num5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); reference125 = list190; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = null; + num4++; + span189[num4] = null; + num4++; + span189[num4] = null; + num4++; + span189[num4] = null; + num4++; + span189[num4] = null; obj89.RequiredQuestVariables = list189; reference124 = obj89; - ref QuestStep reference126 = ref span85[9]; + index2++; + ref QuestStep reference126 = ref span163[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2009363u, new Vector3(-472.43463f, 93.43091f, -325.76483f), 612); - num3 = 6; - List> list191 = new List>(num3); - CollectionsMarshal.SetCount(list191, num3); - Span> span113 = CollectionsMarshal.AsSpan(list191); - span113[0] = null; - ref List reference127 = ref span113[1]; num4 = 6; - List list192 = new List(num4); - CollectionsMarshal.SetCount(list192, num4); - Span span114 = CollectionsMarshal.AsSpan(list192); - span114[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span114[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span114[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span114[3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span114[4] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); - span114[5] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); + List> list191 = new List>(num4); + CollectionsMarshal.SetCount(list191, num4); + Span> span191 = CollectionsMarshal.AsSpan(list191); + num3 = 0; + span191[num3] = null; + num3++; + ref List reference127 = ref span191[num3]; + num5 = 6; + List list192 = new List(num5); + CollectionsMarshal.SetCount(list192, num5); + Span span192 = CollectionsMarshal.AsSpan(list192); + num6 = 0; + span192[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span192[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span192[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span192[num6] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num6++; + span192[num6] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + num6++; + span192[num6] = new QuestWorkValue(null, (byte)9, EQuestWorkMode.Bitwise); reference127 = list192; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = null; + num3++; + span191[num3] = null; + num3++; + span191[num3] = null; + num3++; + span191[num3] = null; + num3++; + span191[num3] = null; questStep5.RequiredQuestVariables = list191; num3 = 6; List list193 = new List(num3); CollectionsMarshal.SetCount(list193, num3); - Span span115 = CollectionsMarshal.AsSpan(list193); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span193 = CollectionsMarshal.AsSpan(list193); + num4 = 0; + span193[num4] = null; + num4++; + span193[num4] = null; + num4++; + span193[num4] = null; + num4++; + span193[num4] = null; + num4++; + span193[num4] = null; + num4++; + span193[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list193; reference126 = questStep5; - ref QuestStep reference128 = ref span85[10]; + index2++; + ref QuestStep reference128 = ref span163[index2]; QuestStep obj90 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-556.22284f, 104.33577f, -310.49774f), 612) { Fly = true }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 6; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - Span span116 = CollectionsMarshal.AsSpan(list194); - span116[0] = null; - span116[1] = null; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list194 = new List(num4); + CollectionsMarshal.SetCount(list194, num4); + Span span194 = CollectionsMarshal.AsSpan(list194); + num3 = 0; + span194[num3] = null; + num3++; + span194[num3] = null; + num3++; + span194[num3] = null; + num3++; + span194[num3] = null; + num3++; + span194[num3] = null; + num3++; + span194[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list194; skipConditions6.StepIf = skipStepConditions6; obj90.SkipConditions = skipConditions6; num3 = 6; List> list195 = new List>(num3); CollectionsMarshal.SetCount(list195, num3); - Span> span117 = CollectionsMarshal.AsSpan(list195); - span117[0] = null; - ref List reference129 = ref span117[1]; - num4 = 7; - List list196 = new List(num4); - CollectionsMarshal.SetCount(list196, num4); - Span span118 = CollectionsMarshal.AsSpan(list196); - span118[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span118[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span118[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span118[3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span118[4] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span118[5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span118[6] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + Span> span195 = CollectionsMarshal.AsSpan(list195); + num4 = 0; + span195[num4] = null; + num4++; + ref List reference129 = ref span195[num4]; + num6 = 7; + List list196 = new List(num6); + CollectionsMarshal.SetCount(list196, num6); + Span span196 = CollectionsMarshal.AsSpan(list196); + num5 = 0; + span196[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span196[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span196[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span196[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num5++; + span196[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span196[num5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num5++; + span196[num5] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference129 = list196; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = null; + num4++; + span195[num4] = null; + num4++; + span195[num4] = null; + num4++; + span195[num4] = null; + num4++; + span195[num4] = null; obj90.RequiredQuestVariables = list195; reference128 = obj90; - ref QuestStep reference130 = ref span85[11]; + index2++; + ref QuestStep reference130 = ref span163[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2009362u, new Vector3(-554.00934f, 103.471436f, -310.10913f), 612); - num3 = 6; - List> list197 = new List>(num3); - CollectionsMarshal.SetCount(list197, num3); - Span> span119 = CollectionsMarshal.AsSpan(list197); - span119[0] = null; - ref List reference131 = ref span119[1]; - num4 = 7; - List list198 = new List(num4); - CollectionsMarshal.SetCount(list198, num4); - Span span120 = CollectionsMarshal.AsSpan(list198); - span120[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span120[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span120[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span120[3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span120[4] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span120[5] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); - span120[6] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); + num4 = 6; + List> list197 = new List>(num4); + CollectionsMarshal.SetCount(list197, num4); + Span> span197 = CollectionsMarshal.AsSpan(list197); + num3 = 0; + span197[num3] = null; + num3++; + ref List reference131 = ref span197[num3]; + num5 = 7; + List list198 = new List(num5); + CollectionsMarshal.SetCount(list198, num5); + Span span198 = CollectionsMarshal.AsSpan(list198); + num6 = 0; + span198[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span198[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span198[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span198[num6] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num6++; + span198[num6] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num6++; + span198[num6] = new QuestWorkValue(null, (byte)7, EQuestWorkMode.Bitwise); + num6++; + span198[num6] = new QuestWorkValue(null, (byte)10, EQuestWorkMode.Bitwise); reference131 = list198; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = null; + num3++; + span197[num3] = null; + num3++; + span197[num3] = null; + num3++; + span197[num3] = null; + num3++; + span197[num3] = null; questStep6.RequiredQuestVariables = list197; num3 = 6; List list199 = new List(num3); CollectionsMarshal.SetCount(list199, num3); - Span span121 = CollectionsMarshal.AsSpan(list199); - span121[0] = null; - span121[1] = null; - span121[2] = null; - span121[3] = null; - span121[4] = null; - span121[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span199 = CollectionsMarshal.AsSpan(list199); + num4 = 0; + span199[num4] = null; + num4++; + span199[num4] = null; + num4++; + span199[num4] = null; + num4++; + span199[num4] = null; + num4++; + span199[num4] = null; + num4++; + span199[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list199; reference130 = questStep6; obj84.Steps = list163; reference107 = obj84; - ref QuestSequence reference132 = ref span84[2]; + num++; + ref QuestSequence reference132 = ref span161[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1025073u, new Vector3(-4.1047363f, 56.137817f, 246.1737f), 612) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.Interact, 1025073u, new Vector3(-4.1047363f, 56.137817f, 246.1737f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj91.Steps = list200; reference132 = obj91; - ref QuestSequence reference133 = ref span84[3]; + num++; + ref QuestSequence reference133 = ref span161[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -198439,9 +240161,11 @@ public static class AssemblyQuestLoader num2 = 2; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span122 = CollectionsMarshal.AsSpan(list201); - span122[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612); - span122[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612); + index2++; + span201[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -198455,27 +240179,33 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "liza"; + Span span202 = CollectionsMarshal.AsSpan(list202); + index = 0; + span202[index] = "liza"; questRoot16.Author = list202; - num = 3; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span123 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference134 = ref span123[0]; + index = 3; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + Span span203 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference134 = ref span203[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj93.Steps = list204; reference134 = obj93; - ref QuestSequence reference135 = ref span123[1]; + num++; + ref QuestSequence reference135 = ref span203[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -198483,208 +240213,291 @@ public static class AssemblyQuestLoader num2 = 5; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span124 = CollectionsMarshal.AsSpan(list205); - ref QuestStep reference136 = ref span124[0]; + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + ref QuestStep reference136 = ref span205[index2]; QuestStep obj95 = new QuestStep(EInteractionType.UseItem, 2009369u, new Vector3(186.38892f, 103.25781f, 15.854065f), 612) { Fly = true, ItemId = 2002450u }; - num3 = 6; - List> list206 = new List>(num3); - CollectionsMarshal.SetCount(list206, num3); - Span> span125 = CollectionsMarshal.AsSpan(list206); - span125[0] = null; - span125[1] = null; - ref List reference137 = ref span125[2]; - num4 = 3; - List list207 = new List(num4); - CollectionsMarshal.SetCount(list207, num4); - Span span126 = CollectionsMarshal.AsSpan(list207); - span126[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span126[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span126[2] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list206 = new List>(num4); + CollectionsMarshal.SetCount(list206, num4); + Span> span206 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + ref List reference137 = ref span206[num3]; + num6 = 3; + List list207 = new List(num6); + CollectionsMarshal.SetCount(list207, num6); + Span span207 = CollectionsMarshal.AsSpan(list207); + num5 = 0; + span207[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num5++; + span207[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span207[num5] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); reference137 = list207; - span125[3] = null; - span125[4] = null; - span125[5] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = null; obj95.RequiredQuestVariables = list206; num3 = 6; List list208 = new List(num3); CollectionsMarshal.SetCount(list208, num3); - Span span127 = CollectionsMarshal.AsSpan(list208); - span127[0] = null; - span127[1] = null; - span127[2] = null; - span127[3] = null; - span127[4] = null; - span127[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span208 = CollectionsMarshal.AsSpan(list208); + num4 = 0; + span208[num4] = null; + num4++; + span208[num4] = null; + num4++; + span208[num4] = null; + num4++; + span208[num4] = null; + num4++; + span208[num4] = null; + num4++; + span208[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj95.CompletionQuestVariablesFlags = list208; reference136 = obj95; - ref QuestStep reference138 = ref span124[1]; + index2++; + ref QuestStep reference138 = ref span205[index2]; QuestStep obj96 = new QuestStep(EInteractionType.UseItem, 2009368u, new Vector3(170.06177f, 103.53235f, 17.776672f), 612) { Fly = true, ItemId = 2002450u }; - num3 = 6; - List> list209 = new List>(num3); - CollectionsMarshal.SetCount(list209, num3); - Span> span128 = CollectionsMarshal.AsSpan(list209); - span128[0] = null; - span128[1] = null; - ref List reference139 = ref span128[2]; - num4 = 2; - List list210 = new List(num4); - CollectionsMarshal.SetCount(list210, num4); - Span span129 = CollectionsMarshal.AsSpan(list210); - span129[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span129[1] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list209 = new List>(num4); + CollectionsMarshal.SetCount(list209, num4); + Span> span209 = CollectionsMarshal.AsSpan(list209); + num3 = 0; + span209[num3] = null; + num3++; + span209[num3] = null; + num3++; + ref List reference139 = ref span209[num3]; + num5 = 2; + List list210 = new List(num5); + CollectionsMarshal.SetCount(list210, num5); + Span span210 = CollectionsMarshal.AsSpan(list210); + num6 = 0; + span210[num6] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num6++; + span210[num6] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); reference139 = list210; - span128[3] = null; - span128[4] = null; - span128[5] = null; + num3++; + span209[num3] = null; + num3++; + span209[num3] = null; + num3++; + span209[num3] = null; obj96.RequiredQuestVariables = list209; num3 = 6; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - Span span130 = CollectionsMarshal.AsSpan(list211); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span211 = CollectionsMarshal.AsSpan(list211); + num4 = 0; + span211[num4] = null; + num4++; + span211[num4] = null; + num4++; + span211[num4] = null; + num4++; + span211[num4] = null; + num4++; + span211[num4] = null; + num4++; + span211[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list211; reference138 = obj96; - ref QuestStep reference140 = ref span124[2]; + index2++; + ref QuestStep reference140 = ref span205[index2]; QuestStep obj97 = new QuestStep(EInteractionType.UseItem, 2009367u, new Vector3(171.61816f, 113.725464f, -0.13739014f), 612) { Fly = true, ItemId = 2002450u }; - num3 = 6; - List> list212 = new List>(num3); - CollectionsMarshal.SetCount(list212, num3); - Span> span131 = CollectionsMarshal.AsSpan(list212); - span131[0] = null; - span131[1] = null; - ref List reference141 = ref span131[2]; - num4 = 4; - List list213 = new List(num4); - CollectionsMarshal.SetCount(list213, num4); - Span span132 = CollectionsMarshal.AsSpan(list213); - span132[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span132[1] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - span132[2] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); - span132[3] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list212 = new List>(num4); + CollectionsMarshal.SetCount(list212, num4); + Span> span212 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span212[num3] = null; + num3++; + span212[num3] = null; + num3++; + ref List reference141 = ref span212[num3]; + num6 = 4; + List list213 = new List(num6); + CollectionsMarshal.SetCount(list213, num6); + Span span213 = CollectionsMarshal.AsSpan(list213); + num5 = 0; + span213[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num5++; + span213[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num5++; + span213[num5] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); + num5++; + span213[num5] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); reference141 = list213; - span131[3] = null; - span131[4] = null; - span131[5] = null; + num3++; + span212[num3] = null; + num3++; + span212[num3] = null; + num3++; + span212[num3] = null; obj97.RequiredQuestVariables = list212; num3 = 6; List list214 = new List(num3); CollectionsMarshal.SetCount(list214, num3); - Span span133 = CollectionsMarshal.AsSpan(list214); - span133[0] = null; - span133[1] = null; - span133[2] = null; - span133[3] = null; - span133[4] = null; - span133[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span214 = CollectionsMarshal.AsSpan(list214); + num4 = 0; + span214[num4] = null; + num4++; + span214[num4] = null; + num4++; + span214[num4] = null; + num4++; + span214[num4] = null; + num4++; + span214[num4] = null; + num4++; + span214[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj97.CompletionQuestVariablesFlags = list214; reference140 = obj97; - ref QuestStep reference142 = ref span124[3]; + index2++; + ref QuestStep reference142 = ref span205[index2]; QuestStep obj98 = new QuestStep(EInteractionType.UseItem, 2009366u, new Vector3(170.27539f, 111.46704f, -31.693054f), 612) { Fly = true, ItemId = 2002450u }; - num3 = 6; - List> list215 = new List>(num3); - CollectionsMarshal.SetCount(list215, num3); - Span> span134 = CollectionsMarshal.AsSpan(list215); - span134[0] = null; - span134[1] = null; - ref List reference143 = ref span134[2]; - num4 = 3; - List list216 = new List(num4); - CollectionsMarshal.SetCount(list216, num4); - Span span135 = CollectionsMarshal.AsSpan(list216); - span135[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - span135[1] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); - span135[2] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list215 = new List>(num4); + CollectionsMarshal.SetCount(list215, num4); + Span> span215 = CollectionsMarshal.AsSpan(list215); + num3 = 0; + span215[num3] = null; + num3++; + span215[num3] = null; + num3++; + ref List reference143 = ref span215[num3]; + num5 = 3; + List list216 = new List(num5); + CollectionsMarshal.SetCount(list216, num5); + Span span216 = CollectionsMarshal.AsSpan(list216); + num6 = 0; + span216[num6] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num6++; + span216[num6] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); + num6++; + span216[num6] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); reference143 = list216; - span134[3] = null; - span134[4] = null; - span134[5] = null; + num3++; + span215[num3] = null; + num3++; + span215[num3] = null; + num3++; + span215[num3] = null; obj98.RequiredQuestVariables = list215; num3 = 6; List list217 = new List(num3); CollectionsMarshal.SetCount(list217, num3); - Span span136 = CollectionsMarshal.AsSpan(list217); - span136[0] = null; - span136[1] = null; - span136[2] = null; - span136[3] = null; - span136[4] = null; - span136[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span217 = CollectionsMarshal.AsSpan(list217); + num4 = 0; + span217[num4] = null; + num4++; + span217[num4] = null; + num4++; + span217[num4] = null; + num4++; + span217[num4] = null; + num4++; + span217[num4] = null; + num4++; + span217[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj98.CompletionQuestVariablesFlags = list217; reference142 = obj98; - ref QuestStep reference144 = ref span124[4]; + index2++; + ref QuestStep reference144 = ref span205[index2]; QuestStep obj99 = new QuestStep(EInteractionType.UseItem, 2009365u, new Vector3(150.2251f, 108.140625f, -42.191284f), 612) { Fly = true, ItemId = 2002450u }; - num3 = 6; - List> list218 = new List>(num3); - CollectionsMarshal.SetCount(list218, num3); - Span> span137 = CollectionsMarshal.AsSpan(list218); - span137[0] = null; - span137[1] = null; - ref List reference145 = ref span137[2]; - num4 = 3; - List list219 = new List(num4); - CollectionsMarshal.SetCount(list219, num4); - Span span138 = CollectionsMarshal.AsSpan(list219); - span138[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span138[1] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - span138[2] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list218 = new List>(num4); + CollectionsMarshal.SetCount(list218, num4); + Span> span218 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span218[num3] = null; + num3++; + span218[num3] = null; + num3++; + ref List reference145 = ref span218[num3]; + num6 = 3; + List list219 = new List(num6); + CollectionsMarshal.SetCount(list219, num6); + Span span219 = CollectionsMarshal.AsSpan(list219); + num5 = 0; + span219[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num5++; + span219[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num5++; + span219[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference145 = list219; - span137[3] = null; - span137[4] = null; - span137[5] = null; + num3++; + span218[num3] = null; + num3++; + span218[num3] = null; + num3++; + span218[num3] = null; obj99.RequiredQuestVariables = list218; num3 = 6; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - Span span139 = CollectionsMarshal.AsSpan(list220); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span220 = CollectionsMarshal.AsSpan(list220); + num4 = 0; + span220[num4] = null; + num4++; + span220[num4] = null; + num4++; + span220[num4] = null; + num4++; + span220[num4] = null; + num4++; + span220[num4] = null; + num4++; + span220[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj99.CompletionQuestVariablesFlags = list220; reference144 = obj99; obj94.Steps = list205; reference135 = obj94; - ref QuestSequence reference146 = ref span123[2]; + num++; + ref QuestSequence reference146 = ref span203[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - Span span140 = CollectionsMarshal.AsSpan(list221); - span140[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span221[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span140[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span221[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -198698,13 +240511,16 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "liza"; + Span span222 = CollectionsMarshal.AsSpan(list222); + index = 0; + span222[index] = "liza"; questRoot17.Author = list222; - num = 5; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span141 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference147 = ref span141[0]; + index = 5; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + Span span223 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference147 = ref span223[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -198712,27 +240528,33 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj101.Steps = list224; reference147 = obj101; - ref QuestSequence reference148 = ref span141[1]; + num++; + ref QuestSequence reference148 = ref span223[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1025084u, new Vector3(135.27112f, 39.096554f, 302.23535f), 612) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.Interact, 1025084u, new Vector3(135.27112f, 39.096554f, 302.23535f), 612) { Fly = true }; obj102.Steps = list225; reference148 = obj102; - ref QuestSequence reference149 = ref span141[2]; + num++; + ref QuestSequence reference149 = ref span223[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 @@ -198740,21 +240562,27 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 2008303u, new Vector3(135.69836f, 40.512573f, 300.7705f), 612); + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span226[index2] = new QuestStep(EInteractionType.Interact, 2008303u, new Vector3(135.69836f, 40.512573f, 300.7705f), 612); obj103.Steps = list226; reference149 = obj103; - ref QuestSequence reference150 = ref span141[3]; + num++; + ref QuestSequence reference150 = ref span223[num]; QuestSequence obj104 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1025074u, new Vector3(396.90234f, 74.061035f, 186.11426f), 612); + index2 = 1; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + Span span227 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span227[num2] = new QuestStep(EInteractionType.Interact, 1025074u, new Vector3(396.90234f, 74.061035f, 186.11426f), 612); obj104.Steps = list227; reference150 = obj104; - ref QuestSequence reference151 = ref span141[4]; + num++; + ref QuestSequence reference151 = ref span223[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -198762,12 +240590,14 @@ public static class AssemblyQuestLoader num2 = 2; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - Span span142 = CollectionsMarshal.AsSpan(list228); - span142[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span228 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span228[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span142[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span228[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -198781,27 +240611,33 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "liza"; + Span span229 = CollectionsMarshal.AsSpan(list229); + index = 0; + span229[index] = "liza"; questRoot18.Author = list229; - num = 3; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span143 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference152 = ref span143[0]; + index = 3; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + Span span230 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference152 = ref span230[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj106.Steps = list231; reference152 = obj106; - ref QuestSequence reference153 = ref span143[1]; + num++; + ref QuestSequence reference153 = ref span230[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -198809,131 +240645,179 @@ public static class AssemblyQuestLoader num2 = 3; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span144 = CollectionsMarshal.AsSpan(list232); - ref QuestStep reference154 = ref span144[0]; + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + ref QuestStep reference154 = ref span232[index2]; QuestStep obj108 = new QuestStep(EInteractionType.UseItem, 1025077u, new Vector3(274.8302f, 76.49585f, 96.849f), 612) { Fly = true, ItemId = 2002453u }; - num3 = 6; - List> list233 = new List>(num3); - CollectionsMarshal.SetCount(list233, num3); - Span> span145 = CollectionsMarshal.AsSpan(list233); - span145[0] = null; - ref List reference155 = ref span145[1]; - num4 = 2; - List list234 = new List(num4); - CollectionsMarshal.SetCount(list234, num4); - Span span146 = CollectionsMarshal.AsSpan(list234); - span146[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span146[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4 = 6; + List> list233 = new List>(num4); + CollectionsMarshal.SetCount(list233, num4); + Span> span233 = CollectionsMarshal.AsSpan(list233); + num3 = 0; + span233[num3] = null; + num3++; + ref List reference155 = ref span233[num3]; + num5 = 2; + List list234 = new List(num5); + CollectionsMarshal.SetCount(list234, num5); + Span span234 = CollectionsMarshal.AsSpan(list234); + num6 = 0; + span234[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span234[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference155 = list234; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = null; obj108.RequiredQuestVariables = list233; num3 = 6; List list235 = new List(num3); CollectionsMarshal.SetCount(list235, num3); - Span span147 = CollectionsMarshal.AsSpan(list235); - span147[0] = null; - span147[1] = null; - span147[2] = null; - span147[3] = null; - span147[4] = null; - span147[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span235 = CollectionsMarshal.AsSpan(list235); + num4 = 0; + span235[num4] = null; + num4++; + span235[num4] = null; + num4++; + span235[num4] = null; + num4++; + span235[num4] = null; + num4++; + span235[num4] = null; + num4++; + span235[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj108.CompletionQuestVariablesFlags = list235; reference154 = obj108; - ref QuestStep reference156 = ref span144[1]; + index2++; + ref QuestStep reference156 = ref span232[index2]; QuestStep obj109 = new QuestStep(EInteractionType.UseItem, 1025076u, new Vector3(364.3396f, 91.624985f, 75.150635f), 612) { Fly = true, ItemId = 2002453u }; - num3 = 6; - List> list236 = new List>(num3); - CollectionsMarshal.SetCount(list236, num3); - Span> span148 = CollectionsMarshal.AsSpan(list236); - span148[0] = null; - ref List reference157 = ref span148[1]; - num4 = 2; - List list237 = new List(num4); - CollectionsMarshal.SetCount(list237, num4); - Span span149 = CollectionsMarshal.AsSpan(list237); - span149[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span149[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num4 = 6; + List> list236 = new List>(num4); + CollectionsMarshal.SetCount(list236, num4); + Span> span236 = CollectionsMarshal.AsSpan(list236); + num3 = 0; + span236[num3] = null; + num3++; + ref List reference157 = ref span236[num3]; + num6 = 2; + List list237 = new List(num6); + CollectionsMarshal.SetCount(list237, num6); + Span span237 = CollectionsMarshal.AsSpan(list237); + num5 = 0; + span237[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span237[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference157 = list237; - span148[2] = null; - span148[3] = null; - span148[4] = null; - span148[5] = null; + num3++; + span236[num3] = null; + num3++; + span236[num3] = null; + num3++; + span236[num3] = null; + num3++; + span236[num3] = null; obj109.RequiredQuestVariables = list236; num3 = 6; List list238 = new List(num3); CollectionsMarshal.SetCount(list238, num3); - Span span150 = CollectionsMarshal.AsSpan(list238); - span150[0] = null; - span150[1] = null; - span150[2] = null; - span150[3] = null; - span150[4] = null; - span150[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span238 = CollectionsMarshal.AsSpan(list238); + num4 = 0; + span238[num4] = null; + num4++; + span238[num4] = null; + num4++; + span238[num4] = null; + num4++; + span238[num4] = null; + num4++; + span238[num4] = null; + num4++; + span238[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj109.CompletionQuestVariablesFlags = list238; reference156 = obj109; - ref QuestStep reference158 = ref span144[2]; + index2++; + ref QuestStep reference158 = ref span232[index2]; QuestStep obj110 = new QuestStep(EInteractionType.UseItem, 1025075u, new Vector3(553.6736f, 73.847404f, 10.635498f), 612) { Fly = true, ItemId = 2002453u }; - num3 = 6; - List> list239 = new List>(num3); - CollectionsMarshal.SetCount(list239, num3); - Span> span151 = CollectionsMarshal.AsSpan(list239); - span151[0] = null; - ref List reference159 = ref span151[1]; - num4 = 2; - List list240 = new List(num4); - CollectionsMarshal.SetCount(list240, num4); - Span span152 = CollectionsMarshal.AsSpan(list240); - span152[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span152[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list239 = new List>(num4); + CollectionsMarshal.SetCount(list239, num4); + Span> span239 = CollectionsMarshal.AsSpan(list239); + num3 = 0; + span239[num3] = null; + num3++; + ref List reference159 = ref span239[num3]; + num5 = 2; + List list240 = new List(num5); + CollectionsMarshal.SetCount(list240, num5); + Span span240 = CollectionsMarshal.AsSpan(list240); + num6 = 0; + span240[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span240[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference159 = list240; - span151[2] = null; - span151[3] = null; - span151[4] = null; - span151[5] = null; + num3++; + span239[num3] = null; + num3++; + span239[num3] = null; + num3++; + span239[num3] = null; + num3++; + span239[num3] = null; obj110.RequiredQuestVariables = list239; num3 = 6; List list241 = new List(num3); CollectionsMarshal.SetCount(list241, num3); - Span span153 = CollectionsMarshal.AsSpan(list241); - span153[0] = null; - span153[1] = null; - span153[2] = null; - span153[3] = null; - span153[4] = null; - span153[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span241 = CollectionsMarshal.AsSpan(list241); + num4 = 0; + span241[num4] = null; + num4++; + span241[num4] = null; + num4++; + span241[num4] = null; + num4++; + span241[num4] = null; + num4++; + span241[num4] = null; + num4++; + span241[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj110.CompletionQuestVariablesFlags = list241; reference158 = obj110; obj107.Steps = list232; reference153 = obj107; - ref QuestSequence reference160 = ref span143[2]; + num++; + ref QuestSequence reference160 = ref span230[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - Span span154 = CollectionsMarshal.AsSpan(list242); - span154[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span154[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span242[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -198947,13 +240831,16 @@ public static class AssemblyQuestLoader num = 1; List list243 = new List(num); CollectionsMarshal.SetCount(list243, num); - CollectionsMarshal.AsSpan(list243)[0] = "liza"; + Span span243 = CollectionsMarshal.AsSpan(list243); + index = 0; + span243[index] = "liza"; questRoot19.Author = list243; - num = 3; - List list244 = new List(num); - CollectionsMarshal.SetCount(list244, num); - Span span155 = CollectionsMarshal.AsSpan(list244); - ref QuestSequence reference161 = ref span155[0]; + index = 3; + List list244 = new List(index); + CollectionsMarshal.SetCount(list244, index); + Span span244 = CollectionsMarshal.AsSpan(list244); + num = 0; + ref QuestSequence reference161 = ref span244[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 @@ -198961,22 +240848,26 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj112.Steps = list245; reference161 = obj112; - ref QuestSequence reference162 = ref span155[1]; + num++; + ref QuestSequence reference162 = ref span244[num]; QuestSequence obj113 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span156 = CollectionsMarshal.AsSpan(list246); - ref QuestStep reference163 = ref span156[0]; + index2 = 5; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + ref QuestStep reference163 = ref span246[num2]; QuestStep obj114 = new QuestStep(EInteractionType.Interact, 2009370u, new Vector3(424.30762f, 59.952637f, -472.3736f), 612) { Fly = true, @@ -198987,184 +240878,264 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RhalgrsReachFringesGate } }; - num3 = 6; - List> list247 = new List>(num3); - CollectionsMarshal.SetCount(list247, num3); - Span> span157 = CollectionsMarshal.AsSpan(list247); - span157[0] = null; - ref List reference164 = ref span157[1]; - num4 = 2; - List list248 = new List(num4); - CollectionsMarshal.SetCount(list248, num4); - Span span158 = CollectionsMarshal.AsSpan(list248); - span158[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span158[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List> list247 = new List>(num4); + CollectionsMarshal.SetCount(list247, num4); + Span> span247 = CollectionsMarshal.AsSpan(list247); + num3 = 0; + span247[num3] = null; + num3++; + ref List reference164 = ref span247[num3]; + num6 = 2; + List list248 = new List(num6); + CollectionsMarshal.SetCount(list248, num6); + Span span248 = CollectionsMarshal.AsSpan(list248); + num5 = 0; + span248[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span248[num5] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); reference164 = list248; - span157[2] = null; - span157[3] = null; - span157[4] = null; - span157[5] = null; + num3++; + span247[num3] = null; + num3++; + span247[num3] = null; + num3++; + span247[num3] = null; + num3++; + span247[num3] = null; obj114.RequiredQuestVariables = list247; num3 = 6; List list249 = new List(num3); CollectionsMarshal.SetCount(list249, num3); - Span span159 = CollectionsMarshal.AsSpan(list249); - span159[0] = null; - span159[1] = null; - span159[2] = null; - span159[3] = null; - span159[4] = null; - span159[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span249 = CollectionsMarshal.AsSpan(list249); + num4 = 0; + span249[num4] = null; + num4++; + span249[num4] = null; + num4++; + span249[num4] = null; + num4++; + span249[num4] = null; + num4++; + span249[num4] = null; + num4++; + span249[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj114.CompletionQuestVariablesFlags = list249; reference163 = obj114; - ref QuestStep reference165 = ref span156[1]; + num2++; + ref QuestStep reference165 = ref span246[num2]; QuestStep obj115 = new QuestStep(EInteractionType.Interact, 2009371u, new Vector3(364.73633f, 50.858276f, -356.00824f), 612) { Fly = true }; - num3 = 6; - List> list250 = new List>(num3); - CollectionsMarshal.SetCount(list250, num3); - Span> span160 = CollectionsMarshal.AsSpan(list250); - span160[0] = null; - ref List reference166 = ref span160[1]; - num4 = 3; - List list251 = new List(num4); - CollectionsMarshal.SetCount(list251, num4); - Span span161 = CollectionsMarshal.AsSpan(list251); - span161[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span161[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span161[2] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list250 = new List>(num4); + CollectionsMarshal.SetCount(list250, num4); + Span> span250 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + span250[num3] = null; + num3++; + ref List reference166 = ref span250[num3]; + num5 = 3; + List list251 = new List(num5); + CollectionsMarshal.SetCount(list251, num5); + Span span251 = CollectionsMarshal.AsSpan(list251); + num6 = 0; + span251[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span251[num6] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num6++; + span251[num6] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); reference166 = list251; - span160[2] = null; - span160[3] = null; - span160[4] = null; - span160[5] = null; + num3++; + span250[num3] = null; + num3++; + span250[num3] = null; + num3++; + span250[num3] = null; + num3++; + span250[num3] = null; obj115.RequiredQuestVariables = list250; num3 = 6; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - Span span162 = CollectionsMarshal.AsSpan(list252); - span162[0] = null; - span162[1] = null; - span162[2] = null; - span162[3] = null; - span162[4] = null; - span162[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span252 = CollectionsMarshal.AsSpan(list252); + num4 = 0; + span252[num4] = null; + num4++; + span252[num4] = null; + num4++; + span252[num4] = null; + num4++; + span252[num4] = null; + num4++; + span252[num4] = null; + num4++; + span252[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj115.CompletionQuestVariablesFlags = list252; reference165 = obj115; - ref QuestStep reference167 = ref span156[2]; + num2++; + ref QuestStep reference167 = ref span246[num2]; QuestStep obj116 = new QuestStep(EInteractionType.Interact, 2009372u, new Vector3(345.6931f, 42.83203f, -306.20282f), 612) { Fly = true }; - num3 = 6; - List> list253 = new List>(num3); - CollectionsMarshal.SetCount(list253, num3); - Span> span163 = CollectionsMarshal.AsSpan(list253); - span163[0] = null; - ref List reference168 = ref span163[1]; - num4 = 4; - List list254 = new List(num4); - CollectionsMarshal.SetCount(list254, num4); - Span span164 = CollectionsMarshal.AsSpan(list254); - span164[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span164[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span164[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span164[3] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list253 = new List>(num4); + CollectionsMarshal.SetCount(list253, num4); + Span> span253 = CollectionsMarshal.AsSpan(list253); + num3 = 0; + span253[num3] = null; + num3++; + ref List reference168 = ref span253[num3]; + num6 = 4; + List list254 = new List(num6); + CollectionsMarshal.SetCount(list254, num6); + Span span254 = CollectionsMarshal.AsSpan(list254); + num5 = 0; + span254[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span254[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span254[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span254[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); reference168 = list254; - span163[2] = null; - span163[3] = null; - span163[4] = null; - span163[5] = null; + num3++; + span253[num3] = null; + num3++; + span253[num3] = null; + num3++; + span253[num3] = null; + num3++; + span253[num3] = null; obj116.RequiredQuestVariables = list253; num3 = 6; List list255 = new List(num3); CollectionsMarshal.SetCount(list255, num3); - Span span165 = CollectionsMarshal.AsSpan(list255); - span165[0] = null; - span165[1] = null; - span165[2] = null; - span165[3] = null; - span165[4] = null; - span165[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span255 = CollectionsMarshal.AsSpan(list255); + num4 = 0; + span255[num4] = null; + num4++; + span255[num4] = null; + num4++; + span255[num4] = null; + num4++; + span255[num4] = null; + num4++; + span255[num4] = null; + num4++; + span255[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj116.CompletionQuestVariablesFlags = list255; reference167 = obj116; - ref QuestStep reference169 = ref span156[3]; + num2++; + ref QuestStep reference169 = ref span246[num2]; QuestStep obj117 = new QuestStep(EInteractionType.Interact, 2009373u, new Vector3(169.90918f, 39.53601f, -133.10449f), 612) { Fly = true }; - num3 = 6; - List> list256 = new List>(num3); - CollectionsMarshal.SetCount(list256, num3); - Span> span166 = CollectionsMarshal.AsSpan(list256); - span166[0] = null; - ref List reference170 = ref span166[1]; - num4 = 4; - List list257 = new List(num4); - CollectionsMarshal.SetCount(list257, num4); - Span span167 = CollectionsMarshal.AsSpan(list257); - span167[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span167[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span167[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span167[3] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List> list256 = new List>(num4); + CollectionsMarshal.SetCount(list256, num4); + Span> span256 = CollectionsMarshal.AsSpan(list256); + num3 = 0; + span256[num3] = null; + num3++; + ref List reference170 = ref span256[num3]; + num5 = 4; + List list257 = new List(num5); + CollectionsMarshal.SetCount(list257, num5); + Span span257 = CollectionsMarshal.AsSpan(list257); + num6 = 0; + span257[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span257[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span257[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + num6++; + span257[num6] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); reference170 = list257; - span166[2] = null; - span166[3] = null; - span166[4] = null; - span166[5] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = null; obj117.RequiredQuestVariables = list256; num3 = 6; List list258 = new List(num3); CollectionsMarshal.SetCount(list258, num3); - Span span168 = CollectionsMarshal.AsSpan(list258); - span168[0] = null; - span168[1] = null; - span168[2] = null; - span168[3] = null; - span168[4] = null; - span168[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span258 = CollectionsMarshal.AsSpan(list258); + num4 = 0; + span258[num4] = null; + num4++; + span258[num4] = null; + num4++; + span258[num4] = null; + num4++; + span258[num4] = null; + num4++; + span258[num4] = null; + num4++; + span258[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj117.CompletionQuestVariablesFlags = list258; reference169 = obj117; - ref QuestStep reference171 = ref span156[4]; + num2++; + ref QuestStep reference171 = ref span246[num2]; QuestStep obj118 = new QuestStep(EInteractionType.Interact, 2009374u, new Vector3(130.23572f, 39.444458f, -131.88379f), 612) { Fly = true }; - num3 = 6; - List> list259 = new List>(num3); - CollectionsMarshal.SetCount(list259, num3); - Span> span169 = CollectionsMarshal.AsSpan(list259); - span169[0] = null; - ref List reference172 = ref span169[1]; - num4 = 2; - List list260 = new List(num4); - CollectionsMarshal.SetCount(list260, num4); - Span span170 = CollectionsMarshal.AsSpan(list260); - span170[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span170[1] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + num4 = 6; + List> list259 = new List>(num4); + CollectionsMarshal.SetCount(list259, num4); + Span> span259 = CollectionsMarshal.AsSpan(list259); + num3 = 0; + span259[num3] = null; + num3++; + ref List reference172 = ref span259[num3]; + num6 = 2; + List list260 = new List(num6); + CollectionsMarshal.SetCount(list260, num6); + Span span260 = CollectionsMarshal.AsSpan(list260); + num5 = 0; + span260[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span260[num5] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); reference172 = list260; - span169[2] = null; - span169[3] = null; - span169[4] = null; - span169[5] = null; + num3++; + span259[num3] = null; + num3++; + span259[num3] = null; + num3++; + span259[num3] = null; + num3++; + span259[num3] = null; obj118.RequiredQuestVariables = list259; num3 = 6; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - Span span171 = CollectionsMarshal.AsSpan(list261); - span171[0] = null; - span171[1] = null; - span171[2] = null; - span171[3] = null; - span171[4] = null; - span171[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span261 = CollectionsMarshal.AsSpan(list261); + num4 = 0; + span261[num4] = null; + num4++; + span261[num4] = null; + num4++; + span261[num4] = null; + num4++; + span261[num4] = null; + num4++; + span261[num4] = null; + num4++; + span261[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj118.CompletionQuestVariablesFlags = list261; reference171 = obj118; obj113.Steps = list246; reference162 = obj113; - ref QuestSequence reference173 = ref span155[2]; + num++; + ref QuestSequence reference173 = ref span244[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue @@ -199172,12 +241143,14 @@ public static class AssemblyQuestLoader num2 = 2; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span172 = CollectionsMarshal.AsSpan(list262); - span172[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span262 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span262[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span172[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2++; + span262[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -199191,27 +241164,33 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - CollectionsMarshal.AsSpan(list263)[0] = "liza"; + Span span263 = CollectionsMarshal.AsSpan(list263); + index = 0; + span263[index] = "liza"; questRoot20.Author = list263; - num = 3; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - Span span173 = CollectionsMarshal.AsSpan(list264); - ref QuestSequence reference174 = ref span173[0]; + index = 3; + List list264 = new List(index); + CollectionsMarshal.SetCount(list264, index); + Span span264 = CollectionsMarshal.AsSpan(list264); + num = 0; + ref QuestSequence reference174 = ref span264[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + Span span265 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span265[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj120.Steps = list265; reference174 = obj120; - ref QuestSequence reference175 = ref span173[1]; + num++; + ref QuestSequence reference175 = ref span264[num]; QuestSequence obj121 = new QuestSequence { Sequence = 1 @@ -199219,17 +241198,20 @@ public static class AssemblyQuestLoader num2 = 3; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span174 = CollectionsMarshal.AsSpan(list266); - ref QuestStep reference176 = ref span174[0]; + Span span266 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + ref QuestStep reference176 = ref span266[index2]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 2009375u, new Vector3(153.85669f, 61.020752f, -631.22f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = new ComplexCombatData + num4 = 1; + List list267 = new List(num4); + CollectionsMarshal.SetCount(list267, num4); + Span span267 = CollectionsMarshal.AsSpan(list267); + num3 = 0; + span267[num3] = new ComplexCombatData { DataId = 8595u, MinimumKillCount = 1u @@ -199238,34 +241220,49 @@ public static class AssemblyQuestLoader num3 = 6; List> list268 = new List>(num3); CollectionsMarshal.SetCount(list268, num3); - Span> span175 = CollectionsMarshal.AsSpan(list268); - span175[0] = null; - span175[1] = null; - ref List reference177 = ref span175[2]; - num4 = 2; - List list269 = new List(num4); - CollectionsMarshal.SetCount(list269, num4); - Span span176 = CollectionsMarshal.AsSpan(list269); - span176[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span176[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + Span> span268 = CollectionsMarshal.AsSpan(list268); + num4 = 0; + span268[num4] = null; + num4++; + span268[num4] = null; + num4++; + ref List reference177 = ref span268[num4]; + num5 = 2; + List list269 = new List(num5); + CollectionsMarshal.SetCount(list269, num5); + Span span269 = CollectionsMarshal.AsSpan(list269); + num6 = 0; + span269[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span269[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference177 = list269; - span175[3] = null; - span175[4] = null; - span175[5] = null; + num4++; + span268[num4] = null; + num4++; + span268[num4] = null; + num4++; + span268[num4] = null; obj122.RequiredQuestVariables = list268; - num3 = 6; - List list270 = new List(num3); - CollectionsMarshal.SetCount(list270, num3); - Span span177 = CollectionsMarshal.AsSpan(list270); - span177[0] = null; - span177[1] = null; - span177[2] = null; - span177[3] = null; - span177[4] = null; - span177[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list270 = new List(num4); + CollectionsMarshal.SetCount(list270, num4); + Span span270 = CollectionsMarshal.AsSpan(list270); + num3 = 0; + span270[num3] = null; + num3++; + span270[num3] = null; + num3++; + span270[num3] = null; + num3++; + span270[num3] = null; + num3++; + span270[num3] = null; + num3++; + span270[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj122.CompletionQuestVariablesFlags = list270; reference176 = obj122; - ref QuestStep reference178 = ref span174[1]; + index2++; + ref QuestStep reference178 = ref span266[index2]; QuestStep obj123 = new QuestStep(EInteractionType.Combat, 2009377u, new Vector3(-41.09259f, 69.38269f, -650.35474f), 612) { Fly = true, @@ -199274,52 +241271,71 @@ public static class AssemblyQuestLoader num3 = 1; List list271 = new List(num3); CollectionsMarshal.SetCount(list271, num3); - CollectionsMarshal.AsSpan(list271)[0] = new ComplexCombatData + Span span271 = CollectionsMarshal.AsSpan(list271); + num4 = 0; + span271[num4] = new ComplexCombatData { DataId = 8595u, MinimumKillCount = 1u }; obj123.ComplexCombatData = list271; - num3 = 6; - List> list272 = new List>(num3); - CollectionsMarshal.SetCount(list272, num3); - Span> span178 = CollectionsMarshal.AsSpan(list272); - span178[0] = null; - span178[1] = null; - ref List reference179 = ref span178[2]; - num4 = 2; - List list273 = new List(num4); - CollectionsMarshal.SetCount(list273, num4); - Span span179 = CollectionsMarshal.AsSpan(list273); - span179[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span179[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list272 = new List>(num4); + CollectionsMarshal.SetCount(list272, num4); + Span> span272 = CollectionsMarshal.AsSpan(list272); + num3 = 0; + span272[num3] = null; + num3++; + span272[num3] = null; + num3++; + ref List reference179 = ref span272[num3]; + num6 = 2; + List list273 = new List(num6); + CollectionsMarshal.SetCount(list273, num6); + Span span273 = CollectionsMarshal.AsSpan(list273); + num5 = 0; + span273[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span273[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference179 = list273; - span178[3] = null; - span178[4] = null; - span178[5] = null; + num3++; + span272[num3] = null; + num3++; + span272[num3] = null; + num3++; + span272[num3] = null; obj123.RequiredQuestVariables = list272; num3 = 6; List list274 = new List(num3); CollectionsMarshal.SetCount(list274, num3); - Span span180 = CollectionsMarshal.AsSpan(list274); - span180[0] = null; - span180[1] = null; - span180[2] = null; - span180[3] = null; - span180[4] = null; - span180[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span274 = CollectionsMarshal.AsSpan(list274); + num4 = 0; + span274[num4] = null; + num4++; + span274[num4] = null; + num4++; + span274[num4] = null; + num4++; + span274[num4] = null; + num4++; + span274[num4] = null; + num4++; + span274[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj123.CompletionQuestVariablesFlags = list274; reference178 = obj123; - ref QuestStep reference180 = ref span174[2]; + index2++; + ref QuestStep reference180 = ref span266[index2]; QuestStep obj124 = new QuestStep(EInteractionType.Combat, 2009376u, new Vector3(74.41821f, 53.391357f, -484.42816f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list275 = new List(num3); - CollectionsMarshal.SetCount(list275, num3); - CollectionsMarshal.AsSpan(list275)[0] = new ComplexCombatData + num4 = 1; + List list275 = new List(num4); + CollectionsMarshal.SetCount(list275, num4); + Span span275 = CollectionsMarshal.AsSpan(list275); + num3 = 0; + span275[num3] = new ComplexCombatData { DataId = 8595u, MinimumKillCount = 1u @@ -199328,49 +241344,66 @@ public static class AssemblyQuestLoader num3 = 6; List> list276 = new List>(num3); CollectionsMarshal.SetCount(list276, num3); - Span> span181 = CollectionsMarshal.AsSpan(list276); - span181[0] = null; - span181[1] = null; - ref List reference181 = ref span181[2]; - num4 = 2; - List list277 = new List(num4); - CollectionsMarshal.SetCount(list277, num4); - Span span182 = CollectionsMarshal.AsSpan(list277); - span182[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span182[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + Span> span276 = CollectionsMarshal.AsSpan(list276); + num4 = 0; + span276[num4] = null; + num4++; + span276[num4] = null; + num4++; + ref List reference181 = ref span276[num4]; + num5 = 2; + List list277 = new List(num5); + CollectionsMarshal.SetCount(list277, num5); + Span span277 = CollectionsMarshal.AsSpan(list277); + num6 = 0; + span277[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span277[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference181 = list277; - span181[3] = null; - span181[4] = null; - span181[5] = null; + num4++; + span276[num4] = null; + num4++; + span276[num4] = null; + num4++; + span276[num4] = null; obj124.RequiredQuestVariables = list276; - num3 = 6; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - Span span183 = CollectionsMarshal.AsSpan(list278); - span183[0] = null; - span183[1] = null; - span183[2] = null; - span183[3] = null; - span183[4] = null; - span183[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list278 = new List(num4); + CollectionsMarshal.SetCount(list278, num4); + Span span278 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span278[num3] = null; + num3++; + span278[num3] = null; + num3++; + span278[num3] = null; + num3++; + span278[num3] = null; + num3++; + span278[num3] = null; + num3++; + span278[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj124.CompletionQuestVariablesFlags = list278; reference180 = obj124; obj121.Steps = list266; reference175 = obj121; - ref QuestSequence reference182 = ref span173[2]; + num++; + ref QuestSequence reference182 = ref span264[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - Span span184 = CollectionsMarshal.AsSpan(list279); - span184[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + index2 = 2; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + Span span279 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span279[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - span184[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + num2++; + span279[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -199384,13 +241417,16 @@ public static class AssemblyQuestLoader num = 1; List list280 = new List(num); CollectionsMarshal.SetCount(list280, num); - CollectionsMarshal.AsSpan(list280)[0] = "JerryWester"; + Span span280 = CollectionsMarshal.AsSpan(list280); + index = 0; + span280[index] = "JerryWester"; questRoot21.Author = list280; - num = 3; - List list281 = new List(num); - CollectionsMarshal.SetCount(list281, num); - Span span185 = CollectionsMarshal.AsSpan(list281); - ref QuestSequence reference183 = ref span185[0]; + index = 3; + List list281 = new List(index); + CollectionsMarshal.SetCount(list281, index); + Span span281 = CollectionsMarshal.AsSpan(list281); + num = 0; + ref QuestSequence reference183 = ref span281[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 @@ -199398,19 +241434,23 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025023u, new Vector3(-1.7853394f, 0.024148807f, -0.015319824f), 639); + Span span282 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span282[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025023u, new Vector3(-1.7853394f, 0.024148807f, -0.015319824f), 639); obj126.Steps = list282; reference183 = obj126; - ref QuestSequence reference184 = ref span185[1]; + num++; + ref QuestSequence reference184 = ref span281[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - Span span186 = CollectionsMarshal.AsSpan(list283); - ref QuestStep reference185 = ref span186[0]; + index2 = 2; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + Span span283 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + ref QuestStep reference185 = ref span283[num2]; QuestStep obj128 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, @@ -199419,17 +241459,21 @@ public static class AssemblyQuestLoader num3 = 1; List list284 = new List(num3); CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = new DialogueChoice + Span span284 = CollectionsMarshal.AsSpan(list284); + num4 = 0; + span284[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDD101_03070_EVENTAREA_WARP_100_027") }; obj128.DialogueChoices = list284; reference185 = obj128; - span186[1] = new QuestStep(EInteractionType.Interact, 1025552u, new Vector3(0.045776367f, 0.021091362f, -2.9145508f), 744); + num2++; + span283[num2] = new QuestStep(EInteractionType.Interact, 1025552u, new Vector3(0.045776367f, 0.021091362f, -2.9145508f), 744); obj127.Steps = list283; reference184 = obj127; - ref QuestSequence reference186 = ref span185[2]; + num++; + ref QuestSequence reference186 = ref span281[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue @@ -199437,12 +241481,14 @@ public static class AssemblyQuestLoader num2 = 2; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span187 = CollectionsMarshal.AsSpan(list285); - span187[0] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) + Span span285 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span285[index2] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) { TargetTerritoryId = (ushort)759 }; - span187[1] = new QuestStep(EInteractionType.CompleteQuest, 1025555u, new Vector3(148.05823f, -4.178815f, 60.135742f), 759) + index2++; + span285[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025555u, new Vector3(148.05823f, -4.178815f, 60.135742f), 759) { AethernetShortcut = new AethernetShortcut { @@ -199459,21 +241505,26 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "JerryWester"; + Span span286 = CollectionsMarshal.AsSpan(list286); + index = 0; + span286[index] = "JerryWester"; questRoot22.Author = list286; - num = 6; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span188 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference187 = ref span188[0]; + index = 6; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + Span span287 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference187 = ref span287[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025557u, new Vector3(146.37976f, -4.178755f, 60.135742f), 759) + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + Span span288 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span288[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025557u, new Vector3(146.37976f, -4.178755f, 60.135742f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -199486,7 +241537,8 @@ public static class AssemblyQuestLoader }; obj130.Steps = list288; reference187 = obj130; - ref QuestSequence reference188 = ref span188[1]; + num++; + ref QuestSequence reference188 = ref span287[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 @@ -199494,55 +241546,73 @@ public static class AssemblyQuestLoader num2 = 2; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span189 = CollectionsMarshal.AsSpan(list289); - ref QuestStep reference189 = ref span189[0]; + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + ref QuestStep reference189 = ref span289[index2]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 1019297u, new Vector3(-275.9289f, 17.31996f, 512.9625f), 614) { Fly = true }; - num3 = 6; - List list290 = new List(num3); - CollectionsMarshal.SetCount(list290, num3); - Span span190 = CollectionsMarshal.AsSpan(list290); - span190[0] = null; - span190[1] = null; - span190[2] = null; - span190[3] = null; - span190[4] = null; - span190[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list290 = new List(num4); + CollectionsMarshal.SetCount(list290, num4); + Span span290 = CollectionsMarshal.AsSpan(list290); + num3 = 0; + span290[num3] = null; + num3++; + span290[num3] = null; + num3++; + span290[num3] = null; + num3++; + span290[num3] = null; + num3++; + span290[num3] = null; + num3++; + span290[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj132.CompletionQuestVariablesFlags = list290; reference189 = obj132; - ref QuestStep reference190 = ref span189[1]; + index2++; + ref QuestStep reference190 = ref span289[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1019303u, new Vector3(-308.94946f, 17.73554f, 512.47424f), 614); num3 = 6; List list291 = new List(num3); CollectionsMarshal.SetCount(list291, num3); - Span span191 = CollectionsMarshal.AsSpan(list291); - span191[0] = null; - span191[1] = null; - span191[2] = null; - span191[3] = null; - span191[4] = null; - span191[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span291 = CollectionsMarshal.AsSpan(list291); + num4 = 0; + span291[num4] = null; + num4++; + span291[num4] = null; + num4++; + span291[num4] = null; + num4++; + span291[num4] = null; + num4++; + span291[num4] = null; + num4++; + span291[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list291; reference190 = questStep7; obj131.Steps = list289; reference188 = obj131; - ref QuestSequence reference191 = ref span188[2]; + num++; + ref QuestSequence reference191 = ref span287[num]; QuestSequence obj133 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 2009474u, new Vector3(67.185425f, 17.440979f, 349.3247f), 614) + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + Span span292 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span292[num2] = new QuestStep(EInteractionType.Interact, 2009474u, new Vector3(67.185425f, 17.440979f, 349.3247f), 614) { Fly = true }; obj133.Steps = list292; reference191 = obj133; - ref QuestSequence reference192 = ref span188[3]; + num++; + ref QuestSequence reference192 = ref span287[num]; QuestSequence obj134 = new QuestSequence { Sequence = 3 @@ -199550,27 +241620,33 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 2009527u, new Vector3(457.26697f, 31.265625f, 234.79053f), 614) + Span span293 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span293[index2] = new QuestStep(EInteractionType.Interact, 2009527u, new Vector3(457.26697f, 31.265625f, 234.79053f), 614) { Fly = true }; obj134.Steps = list293; reference192 = obj134; - ref QuestSequence reference193 = ref span188[4]; + num++; + ref QuestSequence reference193 = ref span287[num]; QuestSequence obj135 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 2009528u, new Vector3(545.3727f, 84.70276f, 126.32947f), 614) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span294 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span294[num2] = new QuestStep(EInteractionType.Interact, 2009528u, new Vector3(545.3727f, 84.70276f, 126.32947f), 614) { Fly = true }; obj135.Steps = list294; reference193 = obj135; - ref QuestSequence reference194 = ref span188[5]; + num++; + ref QuestSequence reference194 = ref span287[num]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue @@ -199578,7 +241654,9 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.CompleteQuest, 2009475u, new Vector3(546.9595f, 72.129395f, 39.78015f), 614) + Span span295 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span295[index2] = new QuestStep(EInteractionType.CompleteQuest, 2009475u, new Vector3(546.9595f, 72.129395f, 39.78015f), 614) { Fly = true }; @@ -199591,21 +241669,26 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = "JerryWester"; + Span span296 = CollectionsMarshal.AsSpan(list296); + index = 0; + span296[index] = "JerryWester"; questRoot23.Author = list296; - num = 4; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - Span span192 = CollectionsMarshal.AsSpan(list297); - ref QuestSequence reference195 = ref span192[0]; + index = 4; + List list297 = new List(index); + CollectionsMarshal.SetCount(list297, index); + Span span297 = CollectionsMarshal.AsSpan(list297); + num = 0; + ref QuestSequence reference195 = ref span297[num]; QuestSequence obj137 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025095u, new Vector3(466.23938f, 70.27501f, -58.701477f), 614) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + Span span298 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span298[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025095u, new Vector3(466.23938f, 70.27501f, -58.701477f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -199618,7 +241701,8 @@ public static class AssemblyQuestLoader }; obj137.Steps = list298; reference195 = obj137; - ref QuestSequence reference196 = ref span192[1]; + num++; + ref QuestSequence reference196 = ref span297[num]; QuestSequence obj138 = new QuestSequence { Sequence = 1 @@ -199626,24 +241710,30 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1025104u, new Vector3(408.71277f, 14.6418705f, 622.8275f), 614) + Span span299 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span299[index2] = new QuestStep(EInteractionType.Interact, 1025104u, new Vector3(408.71277f, 14.6418705f, 622.8275f), 614) { Fly = true }; obj138.Steps = list299; reference196 = obj138; - ref QuestSequence reference197 = ref span192[2]; + num++; + ref QuestSequence reference197 = ref span297[num]; QuestSequence obj139 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + Span span300 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span300[num2] = new QuestStep(EInteractionType.Interact, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); obj139.Steps = list300; reference197 = obj139; - ref QuestSequence reference198 = ref span192[3]; + num++; + ref QuestSequence reference198 = ref span297[num]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -199651,7 +241741,9 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); + Span span301 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + span301[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); obj140.Steps = list301; reference198 = obj140; questRoot23.QuestSequence = list297; @@ -199661,24 +241753,30 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - CollectionsMarshal.AsSpan(list302)[0] = "JerryWester"; + Span span302 = CollectionsMarshal.AsSpan(list302); + index = 0; + span302[index] = "JerryWester"; questRoot24.Author = list302; - num = 5; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - Span span193 = CollectionsMarshal.AsSpan(list303); - ref QuestSequence reference199 = ref span193[0]; + index = 5; + List list303 = new List(index); + CollectionsMarshal.SetCount(list303, index); + Span span303 = CollectionsMarshal.AsSpan(list303); + num = 0; + ref QuestSequence reference199 = ref span303[num]; QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); + index2 = 1; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + Span span304 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + span304[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); obj141.Steps = list304; reference199 = obj141; - ref QuestSequence reference200 = ref span193[1]; + num++; + ref QuestSequence reference200 = ref span303[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -199686,42 +241784,50 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) + Span span305 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span305[index2] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj142.Steps = list305; reference200 = obj142; - ref QuestSequence reference201 = ref span193[2]; + num++; + ref QuestSequence reference201 = ref span303[num]; QuestSequence obj143 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - Span span194 = CollectionsMarshal.AsSpan(list306); - span194[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(116.05634f, 3.799895f, -868.98865f), 613) + index2 = 4; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + Span span306 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + span306[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(116.05634f, 3.799895f, -868.98865f), 613) { Fly = true }; - span194[1] = new QuestStep(EInteractionType.Interact, 2009420u, new Vector3(106.30957f, 0.47296143f, -874.38776f), 613) + num2++; + span306[num2] = new QuestStep(EInteractionType.Interact, 2009420u, new Vector3(106.30957f, 0.47296143f, -874.38776f), 613) { DisableNavmesh = true, Fly = true }; - span194[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(63.579952f, -1.1090306f, -869.52625f), 613) + num2++; + span306[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(63.579952f, -1.1090306f, -869.52625f), 613) { Fly = true }; - span194[3] = new QuestStep(EInteractionType.Interact, 2009469u, new Vector3(78.20239f, 0.47296143f, -870.66455f), 613) + num2++; + span306[num2] = new QuestStep(EInteractionType.Interact, 2009469u, new Vector3(78.20239f, 0.47296143f, -870.66455f), 613) { Mount = true }; obj143.Steps = list306; reference201 = obj143; - ref QuestSequence reference202 = ref span193[3]; + num++; + ref QuestSequence reference202 = ref span303[num]; QuestSequence obj144 = new QuestSequence { Sequence = 3 @@ -199729,38 +241835,45 @@ public static class AssemblyQuestLoader num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1025106u, new Vector3(97.00159f, 5.1987257f, -877.0428f), 613) + Span span307 = CollectionsMarshal.AsSpan(list307); + index2 = 0; + span307[index2] = new QuestStep(EInteractionType.Interact, 1025106u, new Vector3(97.00159f, 5.1987257f, -877.0428f), 613) { Fly = true }; obj144.Steps = list307; reference202 = obj144; - ref QuestSequence reference203 = ref span193[4]; + num++; + ref QuestSequence reference203 = ref span303[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - Span span195 = CollectionsMarshal.AsSpan(list308); - ref QuestStep reference204 = ref span195[0]; + index2 = 2; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + Span span308 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + ref QuestStep reference204 = ref span308[num2]; QuestStep obj146 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, AetheryteShortcut = EAetheryteLocation.DomanEnclave }; - num3 = 1; - List list309 = new List(num3); - CollectionsMarshal.SetCount(list309, num3); - CollectionsMarshal.AsSpan(list309)[0] = new DialogueChoice + num4 = 1; + List list309 = new List(num4); + CollectionsMarshal.SetCount(list309, num4); + Span span309 = CollectionsMarshal.AsSpan(list309); + num3 = 0; + span309[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDD104_03073_EVENTAREA_WARP_100_004") }; obj146.DialogueChoices = list309; reference204 = obj146; - span195[1] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); + num2++; + span308[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); obj145.Steps = list308; reference203 = obj145; questRoot24.QuestSequence = list303; @@ -199770,13 +241883,16 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - CollectionsMarshal.AsSpan(list310)[0] = "JerryWester"; + Span span310 = CollectionsMarshal.AsSpan(list310); + index = 0; + span310[index] = "JerryWester"; questRoot25.Author = list310; - num = 9; - List list311 = new List(num); - CollectionsMarshal.SetCount(list311, num); - Span span196 = CollectionsMarshal.AsSpan(list311); - ref QuestSequence reference205 = ref span196[0]; + index = 9; + List list311 = new List(index); + CollectionsMarshal.SetCount(list311, index); + Span span311 = CollectionsMarshal.AsSpan(list311); + num = 0; + ref QuestSequence reference205 = ref span311[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 @@ -199784,29 +241900,36 @@ public static class AssemblyQuestLoader num2 = 1; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); + Span span312 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + span312[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); obj147.Steps = list312; reference205 = obj147; - ref QuestSequence reference206 = ref span196[1]; + num++; + ref QuestSequence reference206 = ref span311[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1025523u, new Vector3(239.12415f, 0.9334852f, 754.1161f), 614) + index2 = 1; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + Span span313 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span313[num2] = new QuestStep(EInteractionType.Interact, 1025523u, new Vector3(239.12415f, 0.9334852f, 754.1161f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj148.Steps = list313; reference206 = obj148; - span196[2] = new QuestSequence + num++; + span311[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference207 = ref span196[3]; + num++; + ref QuestSequence reference207 = ref span311[num]; QuestSequence obj149 = new QuestSequence { Sequence = 3 @@ -199814,7 +241937,9 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Duty, null, null, 786) + Span span314 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span314[index2] = new QuestStep(EInteractionType.Duty, null, null, 786) { DutyOptions = new DutyOptions { @@ -199823,29 +241948,35 @@ public static class AssemblyQuestLoader }; obj149.Steps = list314; reference207 = obj149; - span196[4] = new QuestSequence + num++; + span311[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference208 = ref span196[5]; + num++; + ref QuestSequence reference208 = ref span311[num]; QuestSequence obj150 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1025528u, new Vector3(4.3182373f, -8.000055f, 44.327393f), 786) + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + Span span315 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span315[num2] = new QuestStep(EInteractionType.Interact, 1025528u, new Vector3(4.3182373f, -8.000055f, 44.327393f), 786) { StopDistance = 5f }; obj150.Steps = list315; reference208 = obj150; - span196[6] = new QuestSequence + num++; + span311[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference209 = ref span196[7]; + num++; + ref QuestSequence reference209 = ref span311[num]; QuestSequence obj151 = new QuestSequence { Sequence = 7 @@ -199853,19 +241984,23 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1025538u, new Vector3(4.7455444f, 0f, 16.067688f), 759); + Span span316 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span316[index2] = new QuestStep(EInteractionType.Interact, 1025538u, new Vector3(4.7455444f, 0f, 16.067688f), 759); obj151.Steps = list316; reference209 = obj151; - ref QuestSequence reference210 = ref span196[8]; + num++; + ref QuestSequence reference210 = ref span311[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - Span span197 = CollectionsMarshal.AsSpan(list317); - ref QuestStep reference211 = ref span197[0]; + index2 = 2; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + Span span317 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + ref QuestStep reference211 = ref span317[num2]; QuestStep obj153 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744 @@ -199873,14 +242008,17 @@ public static class AssemblyQuestLoader num3 = 1; List list318 = new List(num3); CollectionsMarshal.SetCount(list318, num3); - CollectionsMarshal.AsSpan(list318)[0] = new DialogueChoice + Span span318 = CollectionsMarshal.AsSpan(list318); + num4 = 0; + span318[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDD105_03074_EVENTAREA_WARP_100_004") }; obj153.DialogueChoices = list318; reference211 = obj153; - span197[1] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); + num2++; + span317[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); obj152.Steps = list317; reference210 = obj152; questRoot25.QuestSequence = list311; @@ -199890,13 +242028,16 @@ public static class AssemblyQuestLoader num = 1; List list319 = new List(num); CollectionsMarshal.SetCount(list319, num); - CollectionsMarshal.AsSpan(list319)[0] = "JerryWester"; + Span span319 = CollectionsMarshal.AsSpan(list319); + index = 0; + span319[index] = "JerryWester"; questRoot26.Author = list319; - num = 4; - List list320 = new List(num); - CollectionsMarshal.SetCount(list320, num); - Span span198 = CollectionsMarshal.AsSpan(list320); - ref QuestSequence reference212 = ref span198[0]; + index = 4; + List list320 = new List(index); + CollectionsMarshal.SetCount(list320, index); + Span span320 = CollectionsMarshal.AsSpan(list320); + num = 0; + ref QuestSequence reference212 = ref span320[num]; QuestSequence obj154 = new QuestSequence { Sequence = 0 @@ -199904,18 +242045,23 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025009u, new Vector3(1.3274536f, 0.021091362f, 0.59503174f), 744); + Span span321 = CollectionsMarshal.AsSpan(list321); + index2 = 0; + span321[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025009u, new Vector3(1.3274536f, 0.021091362f, 0.59503174f), 744); obj154.Steps = list321; reference212 = obj154; - ref QuestSequence reference213 = ref span198[1]; + num++; + ref QuestSequence reference213 = ref span320[num]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.Interact, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) + index2 = 1; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + Span span322 = CollectionsMarshal.AsSpan(list322); + num2 = 0; + span322[num2] = new QuestStep(EInteractionType.Interact, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -199926,7 +242072,8 @@ public static class AssemblyQuestLoader }; obj155.Steps = list322; reference213 = obj155; - ref QuestSequence reference214 = ref span198[2]; + num++; + ref QuestSequence reference214 = ref span320[num]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -199934,24 +242081,29 @@ public static class AssemblyQuestLoader num2 = 2; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span199 = CollectionsMarshal.AsSpan(list323); - span199[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.965355f, 26.085297f, -607.26685f), 621) + Span span323 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span323[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.965355f, 26.085297f, -607.26685f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; - span199[1] = new QuestStep(EInteractionType.Interact, 1025546u, new Vector3(70.87805f, 26.199663f, -609.43005f), 621); + index2++; + span323[index2] = new QuestStep(EInteractionType.Interact, 1025546u, new Vector3(70.87805f, 26.199663f, -609.43005f), 621); obj156.Steps = list323; reference214 = obj156; - ref QuestSequence reference215 = ref span198[3]; + num++; + ref QuestSequence reference215 = ref span320[num]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + Span span324 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span324[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); obj157.Steps = list324; reference215 = obj157; questRoot26.QuestSequence = list320; @@ -199961,13 +242113,16 @@ public static class AssemblyQuestLoader num = 1; List list325 = new List(num); CollectionsMarshal.SetCount(list325, num); - CollectionsMarshal.AsSpan(list325)[0] = "JerryWester"; + Span span325 = CollectionsMarshal.AsSpan(list325); + index = 0; + span325[index] = "JerryWester"; questRoot27.Author = list325; - num = 4; - List list326 = new List(num); - CollectionsMarshal.SetCount(list326, num); - Span span200 = CollectionsMarshal.AsSpan(list326); - ref QuestSequence reference216 = ref span200[0]; + index = 4; + List list326 = new List(index); + CollectionsMarshal.SetCount(list326, index); + Span span326 = CollectionsMarshal.AsSpan(list326); + num = 0; + ref QuestSequence reference216 = ref span326[num]; QuestSequence obj158 = new QuestSequence { Sequence = 0 @@ -199975,18 +242130,23 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); + Span span327 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span327[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); obj158.Steps = list327; reference216 = obj158; - ref QuestSequence reference217 = ref span200[1]; + num++; + ref QuestSequence reference217 = ref span326[num]; QuestSequence obj159 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - ref QuestStep reference218 = ref CollectionsMarshal.AsSpan(list328)[0]; + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + Span span328 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + ref QuestStep reference218 = ref span328[num2]; QuestStep obj160 = new QuestStep(EInteractionType.SinglePlayerDuty, 2009467u, new Vector3(-5.189492f, 0.4746897f, 0.3689831f), 351) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -199994,10 +242154,12 @@ public static class AssemblyQuestLoader Enabled = true } }; - num3 = 1; - List list329 = new List(num3); - CollectionsMarshal.SetCount(list329, num3); - CollectionsMarshal.AsSpan(list329)[0] = new DialogueChoice + num4 = 1; + List list329 = new List(num4); + CollectionsMarshal.SetCount(list329, num4); + Span span329 = CollectionsMarshal.AsSpan(list329); + num3 = 0; + span329[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDD107_03076_Q1_100_012") @@ -200006,11 +242168,13 @@ public static class AssemblyQuestLoader reference218 = obj160; obj159.Steps = list328; reference217 = obj159; - span200[2] = new QuestSequence + num++; + span326[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference219 = ref span200[3]; + num++; + ref QuestSequence reference219 = ref span326[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue @@ -200018,7 +242182,9 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351) + Span span330 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span330[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351) { StopDistance = 5f }; @@ -200031,22 +242197,26 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "liza"; + Span span331 = CollectionsMarshal.AsSpan(list331); + index = 0; + span331[index] = "liza"; questRoot28.Author = list331; - num = 3; - List list332 = new List(num); - CollectionsMarshal.SetCount(list332, num); - Span span201 = CollectionsMarshal.AsSpan(list332); - ref QuestSequence reference220 = ref span201[0]; + index = 3; + List list332 = new List(index); + CollectionsMarshal.SetCount(list332, index); + Span span332 = CollectionsMarshal.AsSpan(list332); + num = 0; + ref QuestSequence reference220 = ref span332[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - Span span202 = CollectionsMarshal.AsSpan(list333); - span202[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-69.61145f, 0.00999999f, 62.405437f), 635) + index2 = 2; + List list333 = new List(index2); + CollectionsMarshal.SetCount(list333, index2); + Span span333 = CollectionsMarshal.AsSpan(list333); + num2 = 0; + span333[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-69.61145f, 0.00999999f, 62.405437f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -200057,10 +242227,12 @@ public static class AssemblyQuestLoader } } }; - span202[1] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); + num2++; + span333[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); obj162.Steps = list333; reference220 = obj162; - ref QuestSequence reference221 = ref span201[1]; + num++; + ref QuestSequence reference221 = ref span332[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 @@ -200068,21 +242240,26 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1019002u, new Vector3(-48.05072f, -2.9f, -50.247986f), 628) + Span span334 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span334[index2] = new QuestStep(EInteractionType.Interact, 1019002u, new Vector3(-48.05072f, -2.9f, -50.247986f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane }; obj163.Steps = list334; reference221 = obj163; - ref QuestSequence reference222 = ref span201[2]; + num++; + ref QuestSequence reference222 = ref span332[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025233u, new Vector3(-129.19812f, -4.999999f, 145.37268f), 628) + index2 = 1; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + Span span335 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + span335[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025233u, new Vector3(-129.19812f, -4.999999f, 145.37268f), 628) { AethernetShortcut = new AethernetShortcut { @@ -200099,13 +242276,16 @@ public static class AssemblyQuestLoader num = 1; List list336 = new List(num); CollectionsMarshal.SetCount(list336, num); - CollectionsMarshal.AsSpan(list336)[0] = "Starr"; + Span span336 = CollectionsMarshal.AsSpan(list336); + index = 0; + span336[index] = "Starr"; questRoot29.Author = list336; - num = 2; - List list337 = new List(num); - CollectionsMarshal.SetCount(list337, num); - Span span203 = CollectionsMarshal.AsSpan(list337); - ref QuestSequence reference223 = ref span203[0]; + index = 2; + List list337 = new List(index); + CollectionsMarshal.SetCount(list337, index); + Span span337 = CollectionsMarshal.AsSpan(list337); + num = 0; + ref QuestSequence reference223 = ref span337[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 @@ -200113,7 +242293,9 @@ public static class AssemblyQuestLoader num2 = 1; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011145u, new Vector3(-65.38495f, 0.06979119f, 0.8086548f), 144) + Span span338 = CollectionsMarshal.AsSpan(list338); + index2 = 0; + span338[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011145u, new Vector3(-65.38495f, 0.06979119f, 0.8086548f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, SkipConditions = new SkipConditions @@ -200126,15 +242308,18 @@ public static class AssemblyQuestLoader }; obj165.Steps = list338; reference223 = obj165; - ref QuestSequence reference224 = ref span203[1]; + num++; + ref QuestSequence reference224 = ref span337[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list339 = new List(num2); - CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025176u, new Vector3(57.99951f, 3.9997258f, 64.774536f), 144); + index2 = 1; + List list339 = new List(index2); + CollectionsMarshal.SetCount(list339, index2); + Span span339 = CollectionsMarshal.AsSpan(list339); + num2 = 0; + span339[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025176u, new Vector3(57.99951f, 3.9997258f, 64.774536f), 144); obj166.Steps = list339; reference224 = obj166; questRoot29.QuestSequence = list337; @@ -200144,13 +242329,16 @@ public static class AssemblyQuestLoader num = 1; List list340 = new List(num); CollectionsMarshal.SetCount(list340, num); - CollectionsMarshal.AsSpan(list340)[0] = "liza"; + Span span340 = CollectionsMarshal.AsSpan(list340); + index = 0; + span340[index] = "liza"; questRoot30.Author = list340; - num = 4; - List list341 = new List(num); - CollectionsMarshal.SetCount(list341, num); - Span span204 = CollectionsMarshal.AsSpan(list341); - ref QuestSequence reference225 = ref span204[0]; + index = 4; + List list341 = new List(index); + CollectionsMarshal.SetCount(list341, index); + Span span341 = CollectionsMarshal.AsSpan(list341); + num = 0; + ref QuestSequence reference225 = ref span341[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 @@ -200158,7 +242346,9 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) + Span span342 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span342[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -200171,21 +242361,25 @@ public static class AssemblyQuestLoader }; obj167.Steps = list342; reference225 = obj167; - ref QuestSequence reference226 = ref span204[1]; + num++; + ref QuestSequence reference226 = ref span341[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + index2 = 1; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + Span span343 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span343[num2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj168.Steps = list343; reference226 = obj168; - ref QuestSequence reference227 = ref span204[2]; + num++; + ref QuestSequence reference227 = ref span341[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -200193,21 +242387,26 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1025287u, new Vector3(64.34729f, 31.199963f, -754.0246f), 156) + Span span344 = CollectionsMarshal.AsSpan(list344); + index2 = 0; + span344[index2] = new QuestStep(EInteractionType.Interact, 1025287u, new Vector3(64.34729f, 31.199963f, -754.0246f), 156) { Fly = true }; obj169.Steps = list344; reference227 = obj169; - ref QuestSequence reference228 = ref span204[3]; + num++; + ref QuestSequence reference228 = ref span341[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - ref QuestStep reference229 = ref CollectionsMarshal.AsSpan(list345)[0]; + index2 = 1; + List list345 = new List(index2); + CollectionsMarshal.SetCount(list345, index2); + Span span345 = CollectionsMarshal.AsSpan(list345); + num2 = 0; + ref QuestStep reference229 = ref span345[num2]; QuestStep obj171 = new QuestStep(EInteractionType.CompleteQuest, 2009436u, new Vector3(70.05408f, 30.746826f, -722.86566f), 156) { Fly = true @@ -200215,31 +242414,36 @@ public static class AssemblyQuestLoader num3 = 5; List list346 = new List(num3); CollectionsMarshal.SetCount(list346, num3); - Span span205 = CollectionsMarshal.AsSpan(list346); - span205[0] = new DialogueChoice + Span span346 = CollectionsMarshal.AsSpan(list346); + num4 = 0; + span346[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDY501_03086_Q1_000_091") }; - span205[1] = new DialogueChoice + num4++; + span346[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY501_03086_Q2_000_097"), Answer = new ExcelRef("TEXT_STMBDY501_03086_A2_000_100") }; - span205[2] = new DialogueChoice + num4++; + span346[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY501_03086_Q3_000_118"), Answer = new ExcelRef("TEXT_STMBDY501_03086_A3_000_119") }; - span205[3] = new DialogueChoice + num4++; + span346[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY501_03086_Q4_000_134"), Answer = new ExcelRef("TEXT_STMBDY501_03086_A4_000_136") }; - span205[4] = new DialogueChoice + num4++; + span346[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY501_03086_Q5_000_156"), @@ -200257,13 +242461,16 @@ public static class AssemblyQuestLoader num = 1; List list347 = new List(num); CollectionsMarshal.SetCount(list347, num); - CollectionsMarshal.AsSpan(list347)[0] = "liza"; + Span span347 = CollectionsMarshal.AsSpan(list347); + index = 0; + span347[index] = "liza"; questRoot31.Author = list347; - num = 6; - List list348 = new List(num); - CollectionsMarshal.SetCount(list348, num); - Span span206 = CollectionsMarshal.AsSpan(list348); - ref QuestSequence reference230 = ref span206[0]; + index = 6; + List list348 = new List(index); + CollectionsMarshal.SetCount(list348, index); + Span span348 = CollectionsMarshal.AsSpan(list348); + num = 0; + ref QuestSequence reference230 = ref span348[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -200271,7 +242478,9 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025330u, new Vector3(64.83557f, 30.6188f, -722.3774f), 156) + Span span349 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + span349[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025330u, new Vector3(64.83557f, 30.6188f, -722.3774f), 156) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -200285,21 +242494,25 @@ public static class AssemblyQuestLoader }; obj172.Steps = list349; reference230 = obj172; - ref QuestSequence reference231 = ref span206[1]; + num++; + ref QuestSequence reference231 = ref span348[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + index2 = 1; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + Span span350 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span350[num2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { Fly = true }; obj173.Steps = list350; reference231 = obj173; - ref QuestSequence reference232 = ref span206[2]; + num++; + ref QuestSequence reference232 = ref span348[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 @@ -200307,29 +242520,35 @@ public static class AssemblyQuestLoader num2 = 1; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) + Span span351 = CollectionsMarshal.AsSpan(list351); + index2 = 0; + span351[index2] = new QuestStep(EInteractionType.Interact, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) { Fly = true }; obj174.Steps = list351; reference232 = obj174; - ref QuestSequence reference233 = ref span206[3]; + num++; + ref QuestSequence reference233 = ref span348[num]; QuestSequence obj175 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - Span span207 = CollectionsMarshal.AsSpan(list352); - span207[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(51.799374f, 50f, -774.0067f), 156) + index2 = 2; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + Span span352 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span352[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(51.799374f, 50f, -774.0067f), 156) { Fly = true }; - span207[1] = new QuestStep(EInteractionType.Interact, 1018433u, new Vector3(50.766724f, 50f, -772.3964f), 156); + num2++; + span352[num2] = new QuestStep(EInteractionType.Interact, 1018433u, new Vector3(50.766724f, 50f, -772.3964f), 156); obj175.Steps = list352; reference233 = obj175; - ref QuestSequence reference234 = ref span206[4]; + num++; + ref QuestSequence reference234 = ref span348[num]; QuestSequence obj176 = new QuestSequence { Sequence = 4 @@ -200337,21 +242556,26 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.Interact, 1025287u, new Vector3(64.34729f, 31.199963f, -754.0246f), 156) + Span span353 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span353[index2] = new QuestStep(EInteractionType.Interact, 1025287u, new Vector3(64.34729f, 31.199963f, -754.0246f), 156) { Fly = true }; obj176.Steps = list353; reference234 = obj176; - ref QuestSequence reference235 = ref span206[5]; + num++; + ref QuestSequence reference235 = ref span348[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + Span span354 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span354[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, NextQuestId = new QuestId(3141) @@ -200365,13 +242589,16 @@ public static class AssemblyQuestLoader num = 1; List list355 = new List(num); CollectionsMarshal.SetCount(list355, num); - CollectionsMarshal.AsSpan(list355)[0] = "liza"; + Span span355 = CollectionsMarshal.AsSpan(list355); + index = 0; + span355[index] = "liza"; questRoot32.Author = list355; - num = 10; - List list356 = new List(num); - CollectionsMarshal.SetCount(list356, num); - Span span208 = CollectionsMarshal.AsSpan(list356); - ref QuestSequence reference236 = ref span208[0]; + index = 10; + List list356 = new List(index); + CollectionsMarshal.SetCount(list356, index); + Span span356 = CollectionsMarshal.AsSpan(list356); + num = 0; + ref QuestSequence reference236 = ref span356[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 @@ -200379,7 +242606,9 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) + Span span357 = CollectionsMarshal.AsSpan(list357); + index2 = 0; + span357[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -200398,29 +242627,34 @@ public static class AssemblyQuestLoader }; obj178.Steps = list357; reference236 = obj178; - ref QuestSequence reference237 = ref span208[1]; + num++; + ref QuestSequence reference237 = ref span356[num]; QuestSequence obj179 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - Span span209 = CollectionsMarshal.AsSpan(list358); - span209[0] = new QuestStep(EInteractionType.Interact, 1019043u, new Vector3(-43.656128f, 15.000004f, 46.52478f), 628) + index2 = 2; + List list358 = new List(index2); + CollectionsMarshal.SetCount(list358, index2); + Span span358 = CollectionsMarshal.AsSpan(list358); + num2 = 0; + span358[num2] = new QuestStep(EInteractionType.Interact, 1019043u, new Vector3(-43.656128f, 15.000004f, 46.52478f), 628) { TargetTerritoryId = (ushort)628 }; - ref QuestStep reference238 = ref span209[1]; + num2++; + ref QuestStep reference238 = ref span358[num2]; QuestStep obj180 = new QuestStep(EInteractionType.Interact, 1024157u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 7f, TargetTerritoryId = (ushort)735 }; - num3 = 1; - List list359 = new List(num3); - CollectionsMarshal.SetCount(list359, num3); - CollectionsMarshal.AsSpan(list359)[0] = new DialogueChoice + num4 = 1; + List list359 = new List(num4); + CollectionsMarshal.SetCount(list359, num4); + Span span359 = CollectionsMarshal.AsSpan(list359); + num3 = 0; + span359[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDI201_03089_Q1_000_000") @@ -200429,11 +242663,13 @@ public static class AssemblyQuestLoader reference238 = obj180; obj179.Steps = list358; reference237 = obj179; - span208[2] = new QuestSequence + num++; + span356[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference239 = ref span208[3]; + num++; + ref QuestSequence reference239 = ref span356[num]; QuestSequence obj181 = new QuestSequence { Sequence = 3 @@ -200441,27 +242677,33 @@ public static class AssemblyQuestLoader num2 = 1; List list360 = new List(num2); CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.Interact, 1025590u, new Vector3(-8.98761f, 0.05124536f, -3.768982f), 735) + Span span360 = CollectionsMarshal.AsSpan(list360); + index2 = 0; + span360[index2] = new QuestStep(EInteractionType.Interact, 1025590u, new Vector3(-8.98761f, 0.05124536f, -3.768982f), 735) { StopDistance = 7f }; obj181.Steps = list360; reference239 = obj181; - ref QuestSequence reference240 = ref span208[4]; + num++; + ref QuestSequence reference240 = ref span356[num]; QuestSequence obj182 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list361 = new List(num2); - CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.Interact, 1025651u, new Vector3(-10.391418f, 0.046870887f, -3.7080078f), 735) + index2 = 1; + List list361 = new List(index2); + CollectionsMarshal.SetCount(list361, index2); + Span span361 = CollectionsMarshal.AsSpan(list361); + num2 = 0; + span361[num2] = new QuestStep(EInteractionType.Interact, 1025651u, new Vector3(-10.391418f, 0.046870887f, -3.7080078f), 735) { StopDistance = 7f }; obj182.Steps = list361; reference240 = obj182; - ref QuestSequence reference241 = ref span208[5]; + num++; + ref QuestSequence reference241 = ref span356[num]; QuestSequence obj183 = new QuestSequence { Sequence = 5 @@ -200469,7 +242711,9 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.Interact, 1025499u, new Vector3(-117.17407f, -7.000125f, -67.826416f), 628) + Span span362 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span362[index2] = new QuestStep(EInteractionType.Interact, 1025499u, new Vector3(-117.17407f, -7.000125f, -67.826416f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -200480,15 +242724,18 @@ public static class AssemblyQuestLoader }; obj183.Steps = list362; reference241 = obj183; - ref QuestSequence reference242 = ref span208[6]; + num++; + ref QuestSequence reference242 = ref span356[num]; QuestSequence obj184 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - ref QuestStep reference243 = ref CollectionsMarshal.AsSpan(list363)[0]; + index2 = 1; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + Span span363 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + ref QuestStep reference243 = ref span363[num2]; QuestStep obj185 = new QuestStep(EInteractionType.Combat, null, new Vector3(-399.64905f, 9.982385f, 551.7814f), 614) { StopDistance = 0.5f, @@ -200499,12 +242746,15 @@ public static class AssemblyQuestLoader num3 = 1; List list364 = new List(num3); CollectionsMarshal.SetCount(list364, num3); - CollectionsMarshal.AsSpan(list364)[0] = 8801u; + Span span364 = CollectionsMarshal.AsSpan(list364); + num4 = 0; + span364[num4] = 8801u; obj185.KillEnemyDataIds = list364; reference243 = obj185; obj184.Steps = list363; reference242 = obj184; - ref QuestSequence reference244 = ref span208[7]; + num++; + ref QuestSequence reference244 = ref span356[num]; QuestSequence obj186 = new QuestSequence { Sequence = 7 @@ -200512,18 +242762,23 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.Interact, 1025587u, new Vector3(-399.64905f, 9.982385f, 551.7814f), 614); + Span span365 = CollectionsMarshal.AsSpan(list365); + index2 = 0; + span365[index2] = new QuestStep(EInteractionType.Interact, 1025587u, new Vector3(-399.64905f, 9.982385f, 551.7814f), 614); obj186.Steps = list365; reference244 = obj186; - ref QuestSequence reference245 = ref span208[8]; + num++; + ref QuestSequence reference245 = ref span356[num]; QuestSequence obj187 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) + index2 = 1; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + Span span366 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + span366[num2] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 7f, TargetTerritoryId = (ushort)735, @@ -200536,7 +242791,8 @@ public static class AssemblyQuestLoader }; obj187.Steps = list366; reference245 = obj187; - ref QuestSequence reference246 = ref span208[9]; + num++; + ref QuestSequence reference246 = ref span356[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue @@ -200544,7 +242800,9 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025729u, new Vector3(-12.222534f, 0.046870727f, -3.2197266f), 735) + Span span367 = CollectionsMarshal.AsSpan(list367); + index2 = 0; + span367[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025729u, new Vector3(-12.222534f, 0.046870727f, -3.2197266f), 735) { NextQuestId = new QuestId(3091) }; @@ -200557,24 +242815,30 @@ public static class AssemblyQuestLoader num = 1; List list368 = new List(num); CollectionsMarshal.SetCount(list368, num); - CollectionsMarshal.AsSpan(list368)[0] = "liza"; + Span span368 = CollectionsMarshal.AsSpan(list368); + index = 0; + span368[index] = "liza"; questRoot33.Author = list368; - num = 13; - List list369 = new List(num); - CollectionsMarshal.SetCount(list369, num); - Span span210 = CollectionsMarshal.AsSpan(list369); - ref QuestSequence reference247 = ref span210[0]; + index = 13; + List list369 = new List(index); + CollectionsMarshal.SetCount(list369, index); + Span span369 = CollectionsMarshal.AsSpan(list369); + num = 0; + ref QuestSequence reference247 = ref span369[num]; QuestSequence obj189 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); + index2 = 1; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + Span span370 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + span370[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); obj189.Steps = list370; reference247 = obj189; - ref QuestSequence reference248 = ref span210[1]; + num++; + ref QuestSequence reference248 = ref span369[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 @@ -200582,24 +242846,30 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + Span span371 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + span371[index2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj190.Steps = list371; reference248 = obj190; - ref QuestSequence reference249 = ref span210[2]; + num++; + ref QuestSequence reference249 = ref span369[num]; QuestSequence obj191 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list372 = new List(num2); - CollectionsMarshal.SetCount(list372, num2); - CollectionsMarshal.AsSpan(list372)[0] = new QuestStep(EInteractionType.Interact, 1006306u, new Vector3(-25.864075f, 71.787285f, -36.78955f), 137); + index2 = 1; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + Span span372 = CollectionsMarshal.AsSpan(list372); + num2 = 0; + span372[num2] = new QuestStep(EInteractionType.Interact, 1006306u, new Vector3(-25.864075f, 71.787285f, -36.78955f), 137); obj191.Steps = list372; reference249 = obj191; - ref QuestSequence reference250 = ref span210[3]; + num++; + ref QuestSequence reference250 = ref span369[num]; QuestSequence obj192 = new QuestSequence { Sequence = 3 @@ -200607,28 +242877,34 @@ public static class AssemblyQuestLoader num2 = 1; List list373 = new List(num2); CollectionsMarshal.SetCount(list373, num2); - CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) + Span span373 = CollectionsMarshal.AsSpan(list373); + index2 = 0; + span373[index2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj192.Steps = list373; reference250 = obj192; - ref QuestSequence reference251 = ref span210[4]; + num++; + ref QuestSequence reference251 = ref span369[num]; QuestSequence obj193 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list374 = new List(num2); - CollectionsMarshal.SetCount(list374, num2); - CollectionsMarshal.AsSpan(list374)[0] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + index2 = 1; + List list374 = new List(index2); + CollectionsMarshal.SetCount(list374, index2); + Span span374 = CollectionsMarshal.AsSpan(list374); + num2 = 0; + span374[num2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj193.Steps = list374; reference251 = obj193; - ref QuestSequence reference252 = ref span210[5]; + num++; + ref QuestSequence reference252 = ref span369[num]; QuestSequence obj194 = new QuestSequence { Sequence = 5 @@ -200636,29 +242912,35 @@ public static class AssemblyQuestLoader num2 = 2; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - Span span211 = CollectionsMarshal.AsSpan(list375); - span211[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) + Span span375 = CollectionsMarshal.AsSpan(list375); + index2 = 0; + span375[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) { Fly = true }; - span211[1] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + index2++; + span375[index2] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj194.Steps = list375; reference252 = obj194; - ref QuestSequence reference253 = ref span210[6]; + num++; + ref QuestSequence reference253 = ref span369[num]; QuestSequence obj195 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.Emote, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) + index2 = 1; + List list376 = new List(index2); + CollectionsMarshal.SetCount(list376, index2); + Span span376 = CollectionsMarshal.AsSpan(list376); + num2 = 0; + span376[num2] = new QuestStep(EInteractionType.Emote, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) { Emote = EEmote.Soothe }; obj195.Steps = list376; reference253 = obj195; - ref QuestSequence reference254 = ref span210[7]; + num++; + ref QuestSequence reference254 = ref span369[num]; QuestSequence obj196 = new QuestSequence { Sequence = 7 @@ -200666,27 +242948,33 @@ public static class AssemblyQuestLoader num2 = 1; List list377 = new List(num2); CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.Emote, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) + Span span377 = CollectionsMarshal.AsSpan(list377); + index2 = 0; + span377[index2] = new QuestStep(EInteractionType.Emote, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) { Emote = EEmote.Comfort }; obj196.Steps = list377; reference254 = obj196; - ref QuestSequence reference255 = ref span210[8]; + num++; + ref QuestSequence reference255 = ref span369[num]; QuestSequence obj197 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list378 = new List(num2); - CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Interact, 2009478u, new Vector3(-372.12183f, 48.874634f, 431.75403f), 137) + index2 = 1; + List list378 = new List(index2); + CollectionsMarshal.SetCount(list378, index2); + Span span378 = CollectionsMarshal.AsSpan(list378); + num2 = 0; + span378[num2] = new QuestStep(EInteractionType.Interact, 2009478u, new Vector3(-372.12183f, 48.874634f, 431.75403f), 137) { Mount = true }; obj197.Steps = list378; reference255 = obj197; - ref QuestSequence reference256 = ref span210[9]; + num++; + ref QuestSequence reference256 = ref span369[num]; QuestSequence obj198 = new QuestSequence { Sequence = 9 @@ -200694,28 +242982,34 @@ public static class AssemblyQuestLoader num2 = 1; List list379 = new List(num2); CollectionsMarshal.SetCount(list379, num2); - CollectionsMarshal.AsSpan(list379)[0] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + Span span379 = CollectionsMarshal.AsSpan(list379); + index2 = 0; + span379[index2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj198.Steps = list379; reference256 = obj198; - ref QuestSequence reference257 = ref span210[10]; + num++; + ref QuestSequence reference257 = ref span369[num]; QuestSequence obj199 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list380 = new List(num2); - CollectionsMarshal.SetCount(list380, num2); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) + index2 = 1; + List list380 = new List(index2); + CollectionsMarshal.SetCount(list380, index2); + Span span380 = CollectionsMarshal.AsSpan(list380); + num2 = 0; + span380[num2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj199.Steps = list380; reference257 = obj199; - ref QuestSequence reference258 = ref span210[11]; + num++; + ref QuestSequence reference258 = ref span369[num]; QuestSequence obj200 = new QuestSequence { Sequence = 11 @@ -200723,8 +243017,9 @@ public static class AssemblyQuestLoader num2 = 2; List list381 = new List(num2); CollectionsMarshal.SetCount(list381, num2); - Span span212 = CollectionsMarshal.AsSpan(list381); - span212[0] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) + Span span381 = CollectionsMarshal.AsSpan(list381); + index2 = 0; + span381[index2] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 7f, TargetTerritoryId = (ushort)735, @@ -200735,18 +243030,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeAirship } }; - span212[1] = new QuestStep(EInteractionType.Interact, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); + index2++; + span381[index2] = new QuestStep(EInteractionType.Interact, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); obj200.Steps = list381; reference258 = obj200; - ref QuestSequence reference259 = ref span210[12]; + num++; + ref QuestSequence reference259 = ref span369[num]; QuestSequence obj201 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list382 = new List(num2); - CollectionsMarshal.SetCount(list382, num2); - CollectionsMarshal.AsSpan(list382)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735) + index2 = 1; + List list382 = new List(index2); + CollectionsMarshal.SetCount(list382, index2); + Span span382 = CollectionsMarshal.AsSpan(list382); + num2 = 0; + span382[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735) { NextQuestId = new QuestId(3190) }; @@ -200759,13 +243058,16 @@ public static class AssemblyQuestLoader num = 1; List list383 = new List(num); CollectionsMarshal.SetCount(list383, num); - CollectionsMarshal.AsSpan(list383)[0] = "liza"; + Span span383 = CollectionsMarshal.AsSpan(list383); + index = 0; + span383[index] = "liza"; questRoot34.Author = list383; - num = 5; - List list384 = new List(num); - CollectionsMarshal.SetCount(list384, num); - Span span213 = CollectionsMarshal.AsSpan(list384); - ref QuestSequence reference260 = ref span213[0]; + index = 5; + List list384 = new List(index); + CollectionsMarshal.SetCount(list384, index); + Span span384 = CollectionsMarshal.AsSpan(list384); + num = 0; + ref QuestSequence reference260 = ref span384[num]; QuestSequence obj202 = new QuestSequence { Sequence = 0 @@ -200773,26 +243075,33 @@ public static class AssemblyQuestLoader num2 = 1; List list385 = new List(num2); CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025729u, new Vector3(-12.222534f, 0.046870727f, -3.2197266f), 735); + Span span385 = CollectionsMarshal.AsSpan(list385); + index2 = 0; + span385[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025729u, new Vector3(-12.222534f, 0.046870727f, -3.2197266f), 735); obj202.Steps = list385; reference260 = obj202; - ref QuestSequence reference261 = ref span213[1]; + num++; + ref QuestSequence reference261 = ref span384[num]; QuestSequence obj203 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list386 = new List(num2); - CollectionsMarshal.SetCount(list386, num2); - ref QuestStep reference262 = ref CollectionsMarshal.AsSpan(list386)[0]; + index2 = 1; + List list386 = new List(index2); + CollectionsMarshal.SetCount(list386, index2); + Span span386 = CollectionsMarshal.AsSpan(list386); + num2 = 0; + ref QuestStep reference262 = ref span386[num2]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 1025652u, new Vector3(-10.8797f, 0.046870843f, -4.3793945f), 735) { StopDistance = 7f }; - num3 = 1; - List list387 = new List(num3); - CollectionsMarshal.SetCount(list387, num3); - CollectionsMarshal.AsSpan(list387)[0] = new DialogueChoice + num4 = 1; + List list387 = new List(num4); + CollectionsMarshal.SetCount(list387, num4); + Span span387 = CollectionsMarshal.AsSpan(list387); + num3 = 0; + span387[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDI203_03091_Q1_000_000"), @@ -200802,11 +243111,13 @@ public static class AssemblyQuestLoader reference262 = obj204; obj203.Steps = list386; reference261 = obj203; - span213[2] = new QuestSequence + num++; + span384[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference263 = ref span213[3]; + num++; + ref QuestSequence reference263 = ref span384[num]; QuestSequence obj205 = new QuestSequence { Sequence = 3 @@ -200814,21 +243125,26 @@ public static class AssemblyQuestLoader num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.Snipe, 2009477u, new Vector3(-198.6877f, 17.56311f, 208.484f), 787) + Span span388 = CollectionsMarshal.AsSpan(list388); + index2 = 0; + span388[index2] = new QuestStep(EInteractionType.Snipe, 2009477u, new Vector3(-198.6877f, 17.56311f, 208.484f), 787) { Comment = "Far on the left" }; obj205.Steps = list388; reference263 = obj205; - ref QuestSequence reference264 = ref span213[4]; + num++; + ref QuestSequence reference264 = ref span384[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list389 = new List(num2); - CollectionsMarshal.SetCount(list389, num2); - CollectionsMarshal.AsSpan(list389)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025741u, new Vector3(1.449585f, -2.256812E-06f, -9.658997f), 736) + index2 = 1; + List list389 = new List(index2); + CollectionsMarshal.SetCount(list389, index2); + Span span389 = CollectionsMarshal.AsSpan(list389); + num2 = 0; + span389[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025741u, new Vector3(1.449585f, -2.256812E-06f, -9.658997f), 736) { StopDistance = 5f, NextQuestId = new QuestId(3092) @@ -200842,13 +243158,16 @@ public static class AssemblyQuestLoader num = 1; List list390 = new List(num); CollectionsMarshal.SetCount(list390, num); - CollectionsMarshal.AsSpan(list390)[0] = "liza"; + Span span390 = CollectionsMarshal.AsSpan(list390); + index = 0; + span390[index] = "liza"; questRoot35.Author = list390; - num = 4; - List list391 = new List(num); - CollectionsMarshal.SetCount(list391, num); - Span span214 = CollectionsMarshal.AsSpan(list391); - ref QuestSequence reference265 = ref span214[0]; + index = 4; + List list391 = new List(index); + CollectionsMarshal.SetCount(list391, index); + Span span391 = CollectionsMarshal.AsSpan(list391); + num = 0; + ref QuestSequence reference265 = ref span391[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -200856,21 +243175,26 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025741u, new Vector3(1.449585f, -2.256812E-06f, -9.658997f), 736) + Span span392 = CollectionsMarshal.AsSpan(list392); + index2 = 0; + span392[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025741u, new Vector3(1.449585f, -2.256812E-06f, -9.658997f), 736) { StopDistance = 5f }; obj207.Steps = list392; reference265 = obj207; - ref QuestSequence reference266 = ref span214[1]; + num++; + ref QuestSequence reference266 = ref span391[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list393 = new List(num2); - CollectionsMarshal.SetCount(list393, num2); - CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.Duty, null, null, 736) + index2 = 1; + List list393 = new List(index2); + CollectionsMarshal.SetCount(list393, index2); + Span span393 = CollectionsMarshal.AsSpan(list393); + num2 = 0; + span393[num2] = new QuestStep(EInteractionType.Duty, null, null, 736) { DutyOptions = new DutyOptions { @@ -200879,11 +243203,13 @@ public static class AssemblyQuestLoader }; obj208.Steps = list393; reference266 = obj208; - span214[2] = new QuestSequence + num++; + span391[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference267 = ref span214[3]; + num++; + ref QuestSequence reference267 = ref span391[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -200891,7 +243217,9 @@ public static class AssemblyQuestLoader num2 = 1; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) + Span span394 = CollectionsMarshal.AsSpan(list394); + index2 = 0; + span394[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) { StopDistance = 7f, NextQuestId = new QuestId(3187) @@ -200905,24 +243233,30 @@ public static class AssemblyQuestLoader num = 1; List list395 = new List(num); CollectionsMarshal.SetCount(list395, num); - CollectionsMarshal.AsSpan(list395)[0] = "liza"; + Span span395 = CollectionsMarshal.AsSpan(list395); + index = 0; + span395[index] = "liza"; questRoot36.Author = list395; - num = 6; - List list396 = new List(num); - CollectionsMarshal.SetCount(list396, num); - Span span215 = CollectionsMarshal.AsSpan(list396); - ref QuestSequence reference268 = ref span215[0]; + index = 6; + List list396 = new List(index); + CollectionsMarshal.SetCount(list396, index); + Span span396 = CollectionsMarshal.AsSpan(list396); + num = 0; + ref QuestSequence reference268 = ref span396[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list397 = new List(num2); - CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024708u, new Vector3(98.83264f, 4.0000014f, 103.471436f), 628); + index2 = 1; + List list397 = new List(index2); + CollectionsMarshal.SetCount(list397, index2); + Span span397 = CollectionsMarshal.AsSpan(list397); + num2 = 0; + span397[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024708u, new Vector3(98.83264f, 4.0000014f, 103.471436f), 628); obj210.Steps = list397; reference268 = obj210; - ref QuestSequence reference269 = ref span215[1]; + num++; + ref QuestSequence reference269 = ref span396[num]; QuestSequence obj211 = new QuestSequence { Sequence = 1 @@ -200930,7 +243264,9 @@ public static class AssemblyQuestLoader num2 = 1; List list398 = new List(num2); CollectionsMarshal.SetCount(list398, num2); - CollectionsMarshal.AsSpan(list398)[0] = new QuestStep(EInteractionType.Interact, 1025885u, new Vector3(26.443848f, 6.024561f, -118.57788f), 628) + Span span398 = CollectionsMarshal.AsSpan(list398); + index2 = 0; + span398[index2] = new QuestStep(EInteractionType.Interact, 1025885u, new Vector3(26.443848f, 6.024561f, -118.57788f), 628) { AethernetShortcut = new AethernetShortcut { @@ -200940,18 +243276,22 @@ public static class AssemblyQuestLoader }; obj211.Steps = list398; reference269 = obj211; - ref QuestSequence reference270 = ref span215[2]; + num++; + ref QuestSequence reference270 = ref span396[num]; QuestSequence obj212 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - CollectionsMarshal.AsSpan(list399)[0] = new QuestStep(EInteractionType.Interact, 1025887u, new Vector3(-62.790894f, 6.0295854f, -171.19104f), 628); + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + Span span399 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + span399[num2] = new QuestStep(EInteractionType.Interact, 1025887u, new Vector3(-62.790894f, 6.0295854f, -171.19104f), 628); obj212.Steps = list399; reference270 = obj212; - ref QuestSequence reference271 = ref span215[3]; + num++; + ref QuestSequence reference271 = ref span396[num]; QuestSequence obj213 = new QuestSequence { Sequence = 3 @@ -200959,21 +243299,27 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.Interact, 1025891u, new Vector3(-45.059937f, 10.503964f, -191.79071f), 628); + Span span400 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span400[index2] = new QuestStep(EInteractionType.Interact, 1025891u, new Vector3(-45.059937f, 10.503964f, -191.79071f), 628); obj213.Steps = list400; reference271 = obj213; - ref QuestSequence reference272 = ref span215[4]; + num++; + ref QuestSequence reference272 = ref span396[num]; QuestSequence obj214 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list401 = new List(num2); - CollectionsMarshal.SetCount(list401, num2); - CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.Interact, 1025887u, new Vector3(-62.790894f, 6.0295854f, -171.19104f), 628); + index2 = 1; + List list401 = new List(index2); + CollectionsMarshal.SetCount(list401, index2); + Span span401 = CollectionsMarshal.AsSpan(list401); + num2 = 0; + span401[num2] = new QuestStep(EInteractionType.Interact, 1025887u, new Vector3(-62.790894f, 6.0295854f, -171.19104f), 628); obj214.Steps = list401; reference272 = obj214; - ref QuestSequence reference273 = ref span215[5]; + num++; + ref QuestSequence reference273 = ref span396[num]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue @@ -200981,7 +243327,9 @@ public static class AssemblyQuestLoader num2 = 1; List list402 = new List(num2); CollectionsMarshal.SetCount(list402, num2); - CollectionsMarshal.AsSpan(list402)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025893u, new Vector3(-60.41046f, 6.0110765f, -168.41382f), 628) + Span span402 = CollectionsMarshal.AsSpan(list402); + index2 = 0; + span402[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025893u, new Vector3(-60.41046f, 6.0110765f, -168.41382f), 628) { NextQuestId = new QuestId(3095) }; @@ -200994,24 +243342,30 @@ public static class AssemblyQuestLoader num = 1; List list403 = new List(num); CollectionsMarshal.SetCount(list403, num); - CollectionsMarshal.AsSpan(list403)[0] = "liza"; + Span span403 = CollectionsMarshal.AsSpan(list403); + index = 0; + span403[index] = "liza"; questRoot37.Author = list403; - num = 9; - List list404 = new List(num); - CollectionsMarshal.SetCount(list404, num); - Span span216 = CollectionsMarshal.AsSpan(list404); - ref QuestSequence reference274 = ref span216[0]; + index = 9; + List list404 = new List(index); + CollectionsMarshal.SetCount(list404, index); + Span span404 = CollectionsMarshal.AsSpan(list404); + num = 0; + ref QuestSequence reference274 = ref span404[num]; QuestSequence obj216 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list405 = new List(num2); - CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025893u, new Vector3(-60.41046f, 6.0110765f, -168.41382f), 628); + index2 = 1; + List list405 = new List(index2); + CollectionsMarshal.SetCount(list405, index2); + Span span405 = CollectionsMarshal.AsSpan(list405); + num2 = 0; + span405[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025893u, new Vector3(-60.41046f, 6.0110765f, -168.41382f), 628); obj216.Steps = list405; reference274 = obj216; - ref QuestSequence reference275 = ref span216[1]; + num++; + ref QuestSequence reference275 = ref span404[num]; QuestSequence obj217 = new QuestSequence { Sequence = 1 @@ -201019,28 +243373,34 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 1025896u, new Vector3(248.09644f, 17.471375f, -664.9729f), 614) + Span span406 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + span406[index2] = new QuestStep(EInteractionType.Interact, 1025896u, new Vector3(248.09644f, 17.471375f, -664.9729f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj217.Steps = list406; reference275 = obj217; - ref QuestSequence reference276 = ref span216[2]; + num++; + ref QuestSequence reference276 = ref span404[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list407 = new List(num2); - CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.Interact, 1025901u, new Vector3(-93.70575f, 53.144028f, -530.2663f), 614) + index2 = 1; + List list407 = new List(index2); + CollectionsMarshal.SetCount(list407, index2); + Span span407 = CollectionsMarshal.AsSpan(list407); + num2 = 0; + span407[num2] = new QuestStep(EInteractionType.Interact, 1025901u, new Vector3(-93.70575f, 53.144028f, -530.2663f), 614) { Fly = true }; obj218.Steps = list407; reference276 = obj218; - ref QuestSequence reference277 = ref span216[3]; + num++; + ref QuestSequence reference277 = ref span404[num]; QuestSequence obj219 = new QuestSequence { Sequence = 3 @@ -201048,27 +243408,33 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.Interact, 1025906u, new Vector3(-208.8808f, 53.217514f, -581.3535f), 614) + Span span408 = CollectionsMarshal.AsSpan(list408); + index2 = 0; + span408[index2] = new QuestStep(EInteractionType.Interact, 1025906u, new Vector3(-208.8808f, 53.217514f, -581.3535f), 614) { Fly = true }; obj219.Steps = list408; reference277 = obj219; - ref QuestSequence reference278 = ref span216[4]; + num++; + ref QuestSequence reference278 = ref span404[num]; QuestSequence obj220 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list409 = new List(num2); - CollectionsMarshal.SetCount(list409, num2); - CollectionsMarshal.AsSpan(list409)[0] = new QuestStep(EInteractionType.Interact, 2009533u, new Vector3(-220.11145f, 53.20813f, -597.80273f), 614) + index2 = 1; + List list409 = new List(index2); + CollectionsMarshal.SetCount(list409, index2); + Span span409 = CollectionsMarshal.AsSpan(list409); + num2 = 0; + span409[num2] = new QuestStep(EInteractionType.Interact, 2009533u, new Vector3(-220.11145f, 53.20813f, -597.80273f), 614) { Fly = true }; obj220.Steps = list409; reference278 = obj220; - ref QuestSequence reference279 = ref span216[5]; + num++; + ref QuestSequence reference279 = ref span404[num]; QuestSequence obj221 = new QuestSequence { Sequence = 5 @@ -201076,27 +243442,33 @@ public static class AssemblyQuestLoader num2 = 1; List list410 = new List(num2); CollectionsMarshal.SetCount(list410, num2); - CollectionsMarshal.AsSpan(list410)[0] = new QuestStep(EInteractionType.Interact, 1025910u, new Vector3(-125.41394f, 53.217514f, -648.4321f), 614) + Span span410 = CollectionsMarshal.AsSpan(list410); + index2 = 0; + span410[index2] = new QuestStep(EInteractionType.Interact, 1025910u, new Vector3(-125.41394f, 53.217514f, -648.4321f), 614) { Fly = true }; obj221.Steps = list410; reference279 = obj221; - ref QuestSequence reference280 = ref span216[6]; + num++; + ref QuestSequence reference280 = ref span404[num]; QuestSequence obj222 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list411 = new List(num2); - CollectionsMarshal.SetCount(list411, num2); - CollectionsMarshal.AsSpan(list411)[0] = new QuestStep(EInteractionType.Interact, 1025911u, new Vector3(-126.237915f, 53.217514f, -650.6905f), 614) + index2 = 1; + List list411 = new List(index2); + CollectionsMarshal.SetCount(list411, index2); + Span span411 = CollectionsMarshal.AsSpan(list411); + num2 = 0; + span411[num2] = new QuestStep(EInteractionType.Interact, 1025911u, new Vector3(-126.237915f, 53.217514f, -650.6905f), 614) { StopDistance = 5f }; obj222.Steps = list411; reference280 = obj222; - ref QuestSequence reference281 = ref span216[7]; + num++; + ref QuestSequence reference281 = ref span404[num]; QuestSequence obj223 = new QuestSequence { Sequence = 7 @@ -201104,21 +243476,26 @@ public static class AssemblyQuestLoader num2 = 1; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - CollectionsMarshal.AsSpan(list412)[0] = new QuestStep(EInteractionType.Interact, 1019030u, new Vector3(65.72058f, 10.503965f, -167.1626f), 628) + Span span412 = CollectionsMarshal.AsSpan(list412); + index2 = 0; + span412[index2] = new QuestStep(EInteractionType.Interact, 1019030u, new Vector3(65.72058f, 10.503965f, -167.1626f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane }; obj223.Steps = list412; reference281 = obj223; - ref QuestSequence reference282 = ref span216[8]; + num++; + ref QuestSequence reference282 = ref span404[num]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - CollectionsMarshal.AsSpan(list413)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025912u, new Vector3(66.57507f, 10.503965f, -155.59625f), 628) + index2 = 1; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + Span span413 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + span413[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025912u, new Vector3(66.57507f, 10.503965f, -155.59625f), 628) { StopDistance = 5f, NextQuestId = new QuestId(3150) @@ -201132,13 +243509,16 @@ public static class AssemblyQuestLoader num = 1; List list414 = new List(num); CollectionsMarshal.SetCount(list414, num); - CollectionsMarshal.AsSpan(list414)[0] = "Censored"; + Span span414 = CollectionsMarshal.AsSpan(list414); + index = 0; + span414[index] = "Censored"; questRoot38.Author = list414; - num = 6; - List list415 = new List(num); - CollectionsMarshal.SetCount(list415, num); - Span span217 = CollectionsMarshal.AsSpan(list415); - ref QuestSequence reference283 = ref span217[0]; + index = 6; + List list415 = new List(index); + CollectionsMarshal.SetCount(list415, index); + Span span415 = CollectionsMarshal.AsSpan(list415); + num = 0; + ref QuestSequence reference283 = ref span415[num]; QuestSequence obj225 = new QuestSequence { Sequence = 0 @@ -201146,7 +243526,9 @@ public static class AssemblyQuestLoader num2 = 1; List list416 = new List(num2); CollectionsMarshal.SetCount(list416, num2); - CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025693u, new Vector3(-200.18317f, 1.7223222f, 801.75464f), 622) + Span span416 = CollectionsMarshal.AsSpan(list416); + index2 = 0; + span416[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025693u, new Vector3(-200.18317f, 1.7223222f, 801.75464f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -201160,15 +243542,18 @@ public static class AssemblyQuestLoader }; obj225.Steps = list416; reference283 = obj225; - ref QuestSequence reference284 = ref span217[1]; + num++; + ref QuestSequence reference284 = ref span415[num]; QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list417 = new List(num2); - CollectionsMarshal.SetCount(list417, num2); - CollectionsMarshal.AsSpan(list417)[0] = new QuestStep(EInteractionType.Interact, 1025694u, new Vector3(-290.11975f, 17.31996f, 511.98596f), 614) + index2 = 1; + List list417 = new List(index2); + CollectionsMarshal.SetCount(list417, index2); + Span span417 = CollectionsMarshal.AsSpan(list417); + num2 = 0; + span417[num2] = new QuestStep(EInteractionType.Interact, 1025694u, new Vector3(-290.11975f, 17.31996f, 511.98596f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -201182,7 +243567,8 @@ public static class AssemblyQuestLoader }; obj226.Steps = list417; reference284 = obj226; - ref QuestSequence reference285 = ref span217[2]; + num++; + ref QuestSequence reference285 = ref span415[num]; QuestSequence obj227 = new QuestSequence { Sequence = 2 @@ -201190,19 +243576,23 @@ public static class AssemblyQuestLoader num2 = 1; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - CollectionsMarshal.AsSpan(list418)[0] = new QuestStep(EInteractionType.Interact, 1025695u, new Vector3(-284.16876f, 17.31996f, 513.6643f), 614); + Span span418 = CollectionsMarshal.AsSpan(list418); + index2 = 0; + span418[index2] = new QuestStep(EInteractionType.Interact, 1025695u, new Vector3(-284.16876f, 17.31996f, 513.6643f), 614); obj227.Steps = list418; reference285 = obj227; - ref QuestSequence reference286 = ref span217[3]; + num++; + ref QuestSequence reference286 = ref span415[num]; QuestSequence obj228 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list419 = new List(num2); - CollectionsMarshal.SetCount(list419, num2); - Span span218 = CollectionsMarshal.AsSpan(list419); - span218[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(494.13614f, 40.921455f, -482.27777f), 622) + index2 = 2; + List list419 = new List(index2); + CollectionsMarshal.SetCount(list419, index2); + Span span419 = CollectionsMarshal.AsSpan(list419); + num2 = 0; + span419[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(494.13614f, 40.921455f, -482.27777f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -201214,10 +243604,12 @@ public static class AssemblyQuestLoader } } }; - span218[1] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); + num2++; + span419[num2] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); obj228.Steps = list419; reference286 = obj228; - ref QuestSequence reference287 = ref span217[4]; + num++; + ref QuestSequence reference287 = ref span415[num]; QuestSequence obj229 = new QuestSequence { Sequence = 4 @@ -201225,7 +243617,9 @@ public static class AssemblyQuestLoader num2 = 1; List list420 = new List(num2); CollectionsMarshal.SetCount(list420, num2); - ref QuestStep reference288 = ref CollectionsMarshal.AsSpan(list420)[0]; + Span span420 = CollectionsMarshal.AsSpan(list420); + index2 = 0; + ref QuestStep reference288 = ref span420[index2]; QuestStep obj230 = new QuestStep(EInteractionType.Interact, 1025697u, new Vector3(-627.83246f, 40.01948f, 100.20593f), 622) { Fly = true, @@ -201246,7 +243640,9 @@ public static class AssemblyQuestLoader num3 = 1; List list421 = new List(num3); CollectionsMarshal.SetCount(list421, num3); - CollectionsMarshal.AsSpan(list421)[0] = new DialogueChoice + Span span421 = CollectionsMarshal.AsSpan(list421); + num4 = 0; + span421[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANNAM000_03096_Q4_000_000") @@ -201255,15 +243651,18 @@ public static class AssemblyQuestLoader reference288 = obj230; obj229.Steps = list420; reference287 = obj229; - ref QuestSequence reference289 = ref span217[5]; + num++; + ref QuestSequence reference289 = ref span415[num]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list422 = new List(num2); - CollectionsMarshal.SetCount(list422, num2); - CollectionsMarshal.AsSpan(list422)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025698u, new Vector3(-766.7201f, 127.43861f, 91.23364f), 622) + index2 = 1; + List list422 = new List(index2); + CollectionsMarshal.SetCount(list422, index2); + Span span422 = CollectionsMarshal.AsSpan(list422); + num2 = 0; + span422[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025698u, new Vector3(-766.7201f, 127.43861f, 91.23364f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -201289,13 +243688,16 @@ public static class AssemblyQuestLoader num = 1; List list423 = new List(num); CollectionsMarshal.SetCount(list423, num); - CollectionsMarshal.AsSpan(list423)[0] = "Censored"; + Span span423 = CollectionsMarshal.AsSpan(list423); + index = 0; + span423[index] = "Censored"; questRoot39.Author = list423; - num = 2; - List list424 = new List(num); - CollectionsMarshal.SetCount(list424, num); - Span span219 = CollectionsMarshal.AsSpan(list424); - ref QuestSequence reference290 = ref span219[0]; + index = 2; + List list424 = new List(index); + CollectionsMarshal.SetCount(list424, index); + Span span424 = CollectionsMarshal.AsSpan(list424); + num = 0; + ref QuestSequence reference290 = ref span424[num]; QuestSequence obj232 = new QuestSequence { Sequence = 0 @@ -201303,7 +243705,9 @@ public static class AssemblyQuestLoader num2 = 1; List list425 = new List(num2); CollectionsMarshal.SetCount(list425, num2); - CollectionsMarshal.AsSpan(list425)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025700u, new Vector3(-767.2999f, 127.43303f, 92.48486f), 622) + Span span425 = CollectionsMarshal.AsSpan(list425); + index2 = 0; + span425[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025700u, new Vector3(-767.2999f, 127.43303f, 92.48486f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -201317,24 +243721,29 @@ public static class AssemblyQuestLoader }; obj232.Steps = list425; reference290 = obj232; - ref QuestSequence reference291 = ref span219[1]; + num++; + ref QuestSequence reference291 = ref span424[num]; QuestSequence obj233 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 6; - List list426 = new List(num2); - CollectionsMarshal.SetCount(list426, num2); - Span span220 = CollectionsMarshal.AsSpan(list426); - ref QuestStep reference292 = ref span220[0]; + index2 = 6; + List list426 = new List(index2); + CollectionsMarshal.SetCount(list426, index2); + Span span426 = CollectionsMarshal.AsSpan(list426); + num2 = 0; + ref QuestStep reference292 = ref span426[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1025609u, new Vector3(-770.4738f, 127.42798f, 85.28259f), 622); - num3 = 1; - List list427 = new List(num3); - CollectionsMarshal.SetCount(list427, num3); - CollectionsMarshal.AsSpan(list427)[0] = EExtendedClassJob.DoH; + num4 = 1; + List list427 = new List(num4); + CollectionsMarshal.SetCount(list427, num4); + Span span427 = CollectionsMarshal.AsSpan(list427); + num3 = 0; + span427[num3] = EExtendedClassJob.DoH; questStep8.RequiredQuestAcceptedJob = list427; reference292 = questStep8; - ref QuestStep reference293 = ref span220[1]; + num2++; + ref QuestStep reference293 = ref span426[num2]; QuestStep obj234 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22720u, @@ -201343,61 +243752,79 @@ public static class AssemblyQuestLoader num3 = 1; List list428 = new List(num3); CollectionsMarshal.SetCount(list428, num3); - CollectionsMarshal.AsSpan(list428)[0] = EExtendedClassJob.DoH; + Span span428 = CollectionsMarshal.AsSpan(list428); + num4 = 0; + span428[num4] = EExtendedClassJob.DoH; obj234.RequiredQuestAcceptedJob = list428; reference293 = obj234; - ref QuestStep reference294 = ref span220[2]; + num2++; + ref QuestStep reference294 = ref span426[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list429 = new List(num3); - CollectionsMarshal.SetCount(list429, num3); - CollectionsMarshal.AsSpan(list429)[0] = EExtendedClassJob.Miner; + num4 = 1; + List list429 = new List(num4); + CollectionsMarshal.SetCount(list429, num4); + Span span429 = CollectionsMarshal.AsSpan(list429); + num3 = 0; + span429[num3] = EExtendedClassJob.Miner; questStep9.RequiredQuestAcceptedJob = list429; num3 = 1; List list430 = new List(num3); CollectionsMarshal.SetCount(list430, num3); - CollectionsMarshal.AsSpan(list430)[0] = new GatheredItem + Span span430 = CollectionsMarshal.AsSpan(list430); + num4 = 0; + span430[num4] = new GatheredItem { ItemId = 22616u, ItemCount = 3 }; questStep9.ItemsToGather = list430; reference294 = questStep9; - ref QuestStep reference295 = ref span220[3]; + num2++; + ref QuestStep reference295 = ref span426[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list431 = new List(num3); - CollectionsMarshal.SetCount(list431, num3); - CollectionsMarshal.AsSpan(list431)[0] = EExtendedClassJob.Botanist; + num4 = 1; + List list431 = new List(num4); + CollectionsMarshal.SetCount(list431, num4); + Span span431 = CollectionsMarshal.AsSpan(list431); + num3 = 0; + span431[num3] = EExtendedClassJob.Botanist; questStep10.RequiredQuestAcceptedJob = list431; num3 = 1; List list432 = new List(num3); CollectionsMarshal.SetCount(list432, num3); - CollectionsMarshal.AsSpan(list432)[0] = new GatheredItem + Span span432 = CollectionsMarshal.AsSpan(list432); + num4 = 0; + span432[num4] = new GatheredItem { ItemId = 22642u, ItemCount = 3 }; questStep10.ItemsToGather = list432; reference295 = questStep10; - ref QuestStep reference296 = ref span220[4]; + num2++; + ref QuestStep reference296 = ref span426[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list433 = new List(num3); - CollectionsMarshal.SetCount(list433, num3); - CollectionsMarshal.AsSpan(list433)[0] = EExtendedClassJob.Fisher; + num4 = 1; + List list433 = new List(num4); + CollectionsMarshal.SetCount(list433, num4); + Span span433 = CollectionsMarshal.AsSpan(list433); + num3 = 0; + span433[num3] = EExtendedClassJob.Fisher; questStep11.RequiredQuestAcceptedJob = list433; num3 = 1; List list434 = new List(num3); CollectionsMarshal.SetCount(list434, num3); - CollectionsMarshal.AsSpan(list434)[0] = new GatheredItem + Span span434 = CollectionsMarshal.AsSpan(list434); + num4 = 0; + span434[num4] = new GatheredItem { ItemId = 22668u, ItemCount = 1 }; questStep11.ItemsToGather = list434; reference296 = questStep11; - span220[5] = new QuestStep(EInteractionType.CompleteQuest, 1025699u, new Vector3(-765.3163f, 127.441086f, 90.92847f), 622); + num2++; + span426[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025699u, new Vector3(-765.3163f, 127.441086f, 90.92847f), 622); obj233.Steps = list426; reference291 = obj233; questRoot39.QuestSequence = list424; @@ -201407,13 +243834,16 @@ public static class AssemblyQuestLoader num = 1; List list435 = new List(num); CollectionsMarshal.SetCount(list435, num); - CollectionsMarshal.AsSpan(list435)[0] = "Theo"; + Span span435 = CollectionsMarshal.AsSpan(list435); + index = 0; + span435[index] = "Theo"; questRoot40.Author = list435; - num = 5; - List list436 = new List(num); - CollectionsMarshal.SetCount(list436, num); - Span span221 = CollectionsMarshal.AsSpan(list436); - ref QuestSequence reference297 = ref span221[0]; + index = 5; + List list436 = new List(index); + CollectionsMarshal.SetCount(list436, index); + Span span436 = CollectionsMarshal.AsSpan(list436); + num = 0; + ref QuestSequence reference297 = ref span436[num]; QuestSequence obj235 = new QuestSequence { Sequence = 0 @@ -201421,8 +243851,9 @@ public static class AssemblyQuestLoader num2 = 2; List list437 = new List(num2); CollectionsMarshal.SetCount(list437, num2); - Span span222 = CollectionsMarshal.AsSpan(list437); - span222[0] = new QuestStep(EInteractionType.WalkTo, 1025605u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) + Span span437 = CollectionsMarshal.AsSpan(list437); + index2 = 0; + span437[index2] = new QuestStep(EInteractionType.WalkTo, 1025605u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -201439,68 +243870,93 @@ public static class AssemblyQuestLoader } } }; - span222[1] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622); + index2++; + span437[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622); obj235.Steps = list437; reference297 = obj235; - ref QuestSequence reference298 = ref span221[1]; + num++; + ref QuestSequence reference298 = ref span436[num]; QuestSequence obj236 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list438 = new List(num2); - CollectionsMarshal.SetCount(list438, num2); - Span span223 = CollectionsMarshal.AsSpan(list438); - span223[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-283.0104f, 17.31996f, 508.54376f), 614) + index2 = 4; + List list438 = new List(index2); + CollectionsMarshal.SetCount(list438, index2); + Span span438 = CollectionsMarshal.AsSpan(list438); + num2 = 0; + span438[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-283.0104f, 17.31996f, 508.54376f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; - ref QuestStep reference299 = ref span223[1]; + num2++; + ref QuestStep reference299 = ref span438[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1025702u, new Vector3(-279.25543f, 17.31996f, 489.2804f), 614); - num3 = 6; - List list439 = new List(num3); - CollectionsMarshal.SetCount(list439, num3); - Span span224 = CollectionsMarshal.AsSpan(list439); - span224[0] = null; - span224[1] = null; - span224[2] = null; - span224[3] = null; - span224[4] = null; - span224[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list439 = new List(num4); + CollectionsMarshal.SetCount(list439, num4); + Span span439 = CollectionsMarshal.AsSpan(list439); + num3 = 0; + span439[num3] = null; + num3++; + span439[num3] = null; + num3++; + span439[num3] = null; + num3++; + span439[num3] = null; + num3++; + span439[num3] = null; + num3++; + span439[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list439; reference299 = questStep12; - ref QuestStep reference300 = ref span223[2]; + num2++; + ref QuestStep reference300 = ref span438[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1025768u, new Vector3(-292.2561f, 17.31996f, 489.76868f), 614); num3 = 6; List list440 = new List(num3); CollectionsMarshal.SetCount(list440, num3); - Span span225 = CollectionsMarshal.AsSpan(list440); - span225[0] = null; - span225[1] = null; - span225[2] = null; - span225[3] = null; - span225[4] = null; - span225[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span440 = CollectionsMarshal.AsSpan(list440); + num4 = 0; + span440[num4] = null; + num4++; + span440[num4] = null; + num4++; + span440[num4] = null; + num4++; + span440[num4] = null; + num4++; + span440[num4] = null; + num4++; + span440[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list440; reference300 = questStep13; - ref QuestStep reference301 = ref span223[3]; + num2++; + ref QuestStep reference301 = ref span438[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1025701u, new Vector3(-280.81183f, 17.31996f, 524.52893f), 614); - num3 = 6; - List list441 = new List(num3); - CollectionsMarshal.SetCount(list441, num3); - Span span226 = CollectionsMarshal.AsSpan(list441); - span226[0] = null; - span226[1] = null; - span226[2] = null; - span226[3] = null; - span226[4] = null; - span226[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list441 = new List(num4); + CollectionsMarshal.SetCount(list441, num4); + Span span441 = CollectionsMarshal.AsSpan(list441); + num3 = 0; + span441[num3] = null; + num3++; + span441[num3] = null; + num3++; + span441[num3] = null; + num3++; + span441[num3] = null; + num3++; + span441[num3] = null; + num3++; + span441[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list441; reference301 = questStep14; obj236.Steps = list438; reference298 = obj236; - ref QuestSequence reference302 = ref span221[2]; + num++; + ref QuestSequence reference302 = ref span436[num]; QuestSequence obj237 = new QuestSequence { Sequence = 2 @@ -201508,24 +243964,30 @@ public static class AssemblyQuestLoader num2 = 1; List list442 = new List(num2); CollectionsMarshal.SetCount(list442, num2); - CollectionsMarshal.AsSpan(list442)[0] = new QuestStep(EInteractionType.Interact, 1025605u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) + Span span442 = CollectionsMarshal.AsSpan(list442); + index2 = 0; + span442[index2] = new QuestStep(EInteractionType.Interact, 1025605u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh }; obj237.Steps = list442; reference302 = obj237; - ref QuestSequence reference303 = ref span221[3]; + num++; + ref QuestSequence reference303 = ref span436[num]; QuestSequence obj238 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list443 = new List(num2); - CollectionsMarshal.SetCount(list443, num2); - CollectionsMarshal.AsSpan(list443)[0] = new QuestStep(EInteractionType.Interact, 1025703u, new Vector3(-734.0658f, 127.41788f, 100.8468f), 622); + index2 = 1; + List list443 = new List(index2); + CollectionsMarshal.SetCount(list443, index2); + Span span443 = CollectionsMarshal.AsSpan(list443); + num2 = 0; + span443[num2] = new QuestStep(EInteractionType.Interact, 1025703u, new Vector3(-734.0658f, 127.41788f, 100.8468f), 622); obj238.Steps = list443; reference303 = obj238; - ref QuestSequence reference304 = ref span221[4]; + num++; + ref QuestSequence reference304 = ref span436[num]; QuestSequence obj239 = new QuestSequence { Sequence = byte.MaxValue @@ -201533,62 +243995,79 @@ public static class AssemblyQuestLoader num2 = 5; List list444 = new List(num2); CollectionsMarshal.SetCount(list444, num2); - Span span227 = CollectionsMarshal.AsSpan(list444); - ref QuestStep reference305 = ref span227[0]; + Span span444 = CollectionsMarshal.AsSpan(list444); + index2 = 0; + ref QuestStep reference305 = ref span444[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1025609u, new Vector3(-770.4738f, 127.42798f, 85.28259f), 622); num3 = 1; List list445 = new List(num3); CollectionsMarshal.SetCount(list445, num3); - CollectionsMarshal.AsSpan(list445)[0] = EExtendedClassJob.DoH; + Span span445 = CollectionsMarshal.AsSpan(list445); + num4 = 0; + span445[num4] = EExtendedClassJob.DoH; questStep15.RequiredQuestAcceptedJob = list445; reference305 = questStep15; - ref QuestStep reference306 = ref span227[1]; + index2++; + ref QuestStep reference306 = ref span444[index2]; QuestStep obj240 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22721u, ItemCount = 2 }; - num3 = 1; - List list446 = new List(num3); - CollectionsMarshal.SetCount(list446, num3); - CollectionsMarshal.AsSpan(list446)[0] = EExtendedClassJob.DoH; + num4 = 1; + List list446 = new List(num4); + CollectionsMarshal.SetCount(list446, num4); + Span span446 = CollectionsMarshal.AsSpan(list446); + num3 = 0; + span446[num3] = EExtendedClassJob.DoH; obj240.RequiredQuestAcceptedJob = list446; reference306 = obj240; - ref QuestStep reference307 = ref span227[2]; + index2++; + ref QuestStep reference307 = ref span444[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list447 = new List(num3); CollectionsMarshal.SetCount(list447, num3); - CollectionsMarshal.AsSpan(list447)[0] = EExtendedClassJob.Miner; + Span span447 = CollectionsMarshal.AsSpan(list447); + num4 = 0; + span447[num4] = EExtendedClassJob.Miner; questStep16.RequiredQuestAcceptedJob = list447; - num3 = 1; - List list448 = new List(num3); - CollectionsMarshal.SetCount(list448, num3); - CollectionsMarshal.AsSpan(list448)[0] = new GatheredItem + num4 = 1; + List list448 = new List(num4); + CollectionsMarshal.SetCount(list448, num4); + Span span448 = CollectionsMarshal.AsSpan(list448); + num3 = 0; + span448[num3] = new GatheredItem { ItemId = 22617u, ItemCount = 3 }; questStep16.ItemsToGather = list448; reference307 = questStep16; - ref QuestStep reference308 = ref span227[3]; + index2++; + ref QuestStep reference308 = ref span444[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list449 = new List(num3); CollectionsMarshal.SetCount(list449, num3); - CollectionsMarshal.AsSpan(list449)[0] = EExtendedClassJob.Botanist; + Span span449 = CollectionsMarshal.AsSpan(list449); + num4 = 0; + span449[num4] = EExtendedClassJob.Botanist; questStep17.RequiredQuestAcceptedJob = list449; - num3 = 1; - List list450 = new List(num3); - CollectionsMarshal.SetCount(list450, num3); - CollectionsMarshal.AsSpan(list450)[0] = new GatheredItem + num4 = 1; + List list450 = new List(num4); + CollectionsMarshal.SetCount(list450, num4); + Span span450 = CollectionsMarshal.AsSpan(list450); + num3 = 0; + span450[num3] = new GatheredItem { ItemId = 22643u, ItemCount = 3 }; questStep17.ItemsToGather = list450; reference308 = questStep17; - span227[4] = new QuestStep(EInteractionType.CompleteQuest, 1025704u, new Vector3(-734.8898f, 127.42169f, 99.99231f), 622) + index2++; + span444[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025704u, new Vector3(-734.8898f, 127.42169f, 99.99231f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -201614,21 +244093,26 @@ public static class AssemblyQuestLoader num = 1; List list451 = new List(num); CollectionsMarshal.SetCount(list451, num); - CollectionsMarshal.AsSpan(list451)[0] = "Theo"; + Span span451 = CollectionsMarshal.AsSpan(list451); + index = 0; + span451[index] = "Theo"; questRoot41.Author = list451; - num = 8; - List list452 = new List(num); - CollectionsMarshal.SetCount(list452, num); - Span span228 = CollectionsMarshal.AsSpan(list452); - ref QuestSequence reference309 = ref span228[0]; + index = 8; + List list452 = new List(index); + CollectionsMarshal.SetCount(list452, index); + Span span452 = CollectionsMarshal.AsSpan(list452); + num = 0; + ref QuestSequence reference309 = ref span452[num]; QuestSequence obj241 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list453 = new List(num2); - CollectionsMarshal.SetCount(list453, num2); - CollectionsMarshal.AsSpan(list453)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) + index2 = 1; + List list453 = new List(index2); + CollectionsMarshal.SetCount(list453, index2); + Span span453 = CollectionsMarshal.AsSpan(list453); + num2 = 0; + span453[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -201647,7 +244131,8 @@ public static class AssemblyQuestLoader }; obj241.Steps = list453; reference309 = obj241; - ref QuestSequence reference310 = ref span228[1]; + num++; + ref QuestSequence reference310 = ref span452[num]; QuestSequence obj242 = new QuestSequence { Sequence = 1 @@ -201655,7 +244140,9 @@ public static class AssemblyQuestLoader num2 = 1; List list454 = new List(num2); CollectionsMarshal.SetCount(list454, num2); - CollectionsMarshal.AsSpan(list454)[0] = new QuestStep(EInteractionType.UseItem, 2009487u, new Vector3(9.048584f, 10.788086f, -0.015319824f), 628) + Span span454 = CollectionsMarshal.AsSpan(list454); + index2 = 0; + span454[index2] = new QuestStep(EInteractionType.UseItem, 2009487u, new Vector3(9.048584f, 10.788086f, -0.015319824f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, ItemId = 2002473u, @@ -201674,18 +244161,22 @@ public static class AssemblyQuestLoader }; obj242.Steps = list454; reference310 = obj242; - ref QuestSequence reference311 = ref span228[2]; + num++; + ref QuestSequence reference311 = ref span452[num]; QuestSequence obj243 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list455 = new List(num2); - CollectionsMarshal.SetCount(list455, num2); - CollectionsMarshal.AsSpan(list455)[0] = new QuestStep(EInteractionType.Interact, 1025705u, new Vector3(-40.116028f, -2.2548056f, 44.693604f), 628); + index2 = 1; + List list455 = new List(index2); + CollectionsMarshal.SetCount(list455, index2); + Span span455 = CollectionsMarshal.AsSpan(list455); + num2 = 0; + span455[num2] = new QuestStep(EInteractionType.Interact, 1025705u, new Vector3(-40.116028f, -2.2548056f, 44.693604f), 628); obj243.Steps = list455; reference311 = obj243; - ref QuestSequence reference312 = ref span228[3]; + num++; + ref QuestSequence reference312 = ref span452[num]; QuestSequence obj244 = new QuestSequence { Sequence = 3 @@ -201693,7 +244184,9 @@ public static class AssemblyQuestLoader num2 = 1; List list456 = new List(num2); CollectionsMarshal.SetCount(list456, num2); - CollectionsMarshal.AsSpan(list456)[0] = new QuestStep(EInteractionType.Interact, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622) + Span span456 = CollectionsMarshal.AsSpan(list456); + index2 = 0; + span456[index2] = new QuestStep(EInteractionType.Interact, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -201711,36 +244204,44 @@ public static class AssemblyQuestLoader }; obj244.Steps = list456; reference312 = obj244; - ref QuestSequence reference313 = ref span228[4]; + num++; + ref QuestSequence reference313 = ref span452[num]; QuestSequence obj245 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list457 = new List(num2); - CollectionsMarshal.SetCount(list457, num2); - Span span229 = CollectionsMarshal.AsSpan(list457); - ref QuestStep reference314 = ref span229[0]; + index2 = 5; + List list457 = new List(index2); + CollectionsMarshal.SetCount(list457, index2); + Span span457 = CollectionsMarshal.AsSpan(list457); + num2 = 0; + ref QuestStep reference314 = ref span457[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1025609u, new Vector3(-770.4738f, 127.42798f, 85.28259f), 622); num3 = 1; List list458 = new List(num3); CollectionsMarshal.SetCount(list458, num3); - CollectionsMarshal.AsSpan(list458)[0] = EExtendedClassJob.DoH; + Span span458 = CollectionsMarshal.AsSpan(list458); + num4 = 0; + span458[num4] = EExtendedClassJob.DoH; questStep18.RequiredQuestAcceptedJob = list458; reference314 = questStep18; - ref QuestStep reference315 = ref span229[1]; + num2++; + ref QuestStep reference315 = ref span457[num2]; QuestStep obj246 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22722u, ItemCount = 2 }; - num3 = 1; - List list459 = new List(num3); - CollectionsMarshal.SetCount(list459, num3); - CollectionsMarshal.AsSpan(list459)[0] = EExtendedClassJob.DoH; + num4 = 1; + List list459 = new List(num4); + CollectionsMarshal.SetCount(list459, num4); + Span span459 = CollectionsMarshal.AsSpan(list459); + num3 = 0; + span459[num3] = EExtendedClassJob.DoH; obj246.RequiredQuestAcceptedJob = list459; reference315 = obj246; - ref QuestStep reference316 = ref span229[2]; + num2++; + ref QuestStep reference316 = ref span457[num2]; QuestStep obj247 = new QuestStep(EInteractionType.Gather, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -201760,19 +244261,24 @@ public static class AssemblyQuestLoader num3 = 1; List list460 = new List(num3); CollectionsMarshal.SetCount(list460, num3); - CollectionsMarshal.AsSpan(list460)[0] = EExtendedClassJob.Miner; + Span span460 = CollectionsMarshal.AsSpan(list460); + num4 = 0; + span460[num4] = EExtendedClassJob.Miner; obj247.RequiredQuestAcceptedJob = list460; - num3 = 1; - List list461 = new List(num3); - CollectionsMarshal.SetCount(list461, num3); - CollectionsMarshal.AsSpan(list461)[0] = new GatheredItem + num4 = 1; + List list461 = new List(num4); + CollectionsMarshal.SetCount(list461, num4); + Span span461 = CollectionsMarshal.AsSpan(list461); + num3 = 0; + span461[num3] = new GatheredItem { ItemId = 22618u, ItemCount = 2 }; obj247.ItemsToGather = list461; reference316 = obj247; - ref QuestStep reference317 = ref span229[3]; + num2++; + ref QuestStep reference317 = ref span457[num2]; QuestStep obj248 = new QuestStep(EInteractionType.Gather, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -201792,19 +244298,24 @@ public static class AssemblyQuestLoader num3 = 1; List list462 = new List(num3); CollectionsMarshal.SetCount(list462, num3); - CollectionsMarshal.AsSpan(list462)[0] = EExtendedClassJob.Botanist; + Span span462 = CollectionsMarshal.AsSpan(list462); + num4 = 0; + span462[num4] = EExtendedClassJob.Botanist; obj248.RequiredQuestAcceptedJob = list462; - num3 = 1; - List list463 = new List(num3); - CollectionsMarshal.SetCount(list463, num3); - CollectionsMarshal.AsSpan(list463)[0] = new GatheredItem + num4 = 1; + List list463 = new List(num4); + CollectionsMarshal.SetCount(list463, num4); + Span span463 = CollectionsMarshal.AsSpan(list463); + num3 = 0; + span463[num3] = new GatheredItem { ItemId = 22644u, ItemCount = 2 }; obj248.ItemsToGather = list463; reference317 = obj248; - span229[4] = new QuestStep(EInteractionType.Interact, 1025708u, new Vector3(-746.6392f, 127.458954f, 91.63037f), 622) + num2++; + span457[num2] = new QuestStep(EInteractionType.Interact, 1025708u, new Vector3(-746.6392f, 127.458954f, 91.63037f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -201822,7 +244333,8 @@ public static class AssemblyQuestLoader }; obj245.Steps = list457; reference313 = obj245; - ref QuestSequence reference318 = ref span228[5]; + num++; + ref QuestSequence reference318 = ref span452[num]; QuestSequence obj249 = new QuestSequence { Sequence = 5 @@ -201830,19 +244342,23 @@ public static class AssemblyQuestLoader num2 = 1; List list464 = new List(num2); CollectionsMarshal.SetCount(list464, num2); - CollectionsMarshal.AsSpan(list464)[0] = new QuestStep(EInteractionType.Interact, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622); + Span span464 = CollectionsMarshal.AsSpan(list464); + index2 = 0; + span464[index2] = new QuestStep(EInteractionType.Interact, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622); obj249.Steps = list464; reference318 = obj249; - ref QuestSequence reference319 = ref span228[6]; + num++; + ref QuestSequence reference319 = ref span452[num]; QuestSequence obj250 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list465 = new List(num2); - CollectionsMarshal.SetCount(list465, num2); - Span span230 = CollectionsMarshal.AsSpan(list465); - ref QuestStep reference320 = ref span230[0]; + index2 = 2; + List list465 = new List(index2); + CollectionsMarshal.SetCount(list465, index2); + Span span465 = CollectionsMarshal.AsSpan(list465); + num2 = 0; + ref QuestStep reference320 = ref span465[num2]; QuestStep obj251 = new QuestStep(EInteractionType.Action, 1026018u, new Vector3(-728.2368f, 127.378174f, 110.7041f), 622) { Action = EAction.Wasshoi @@ -201850,35 +244366,49 @@ public static class AssemblyQuestLoader num3 = 6; List list466 = new List(num3); CollectionsMarshal.SetCount(list466, num3); - Span span231 = CollectionsMarshal.AsSpan(list466); - span231[0] = null; - span231[1] = null; - span231[2] = null; - span231[3] = null; - span231[4] = null; - span231[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span466 = CollectionsMarshal.AsSpan(list466); + num4 = 0; + span466[num4] = null; + num4++; + span466[num4] = null; + num4++; + span466[num4] = null; + num4++; + span466[num4] = null; + num4++; + span466[num4] = null; + num4++; + span466[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj251.CompletionQuestVariablesFlags = list466; reference320 = obj251; - ref QuestStep reference321 = ref span230[1]; + num2++; + ref QuestStep reference321 = ref span465[num2]; QuestStep obj252 = new QuestStep(EInteractionType.Action, 1025709u, new Vector3(-761.86774f, 127.25556f, 137.52954f), 622) { Action = EAction.Wasshoi }; - num3 = 6; - List list467 = new List(num3); - CollectionsMarshal.SetCount(list467, num3); - Span span232 = CollectionsMarshal.AsSpan(list467); - span232[0] = null; - span232[1] = null; - span232[2] = null; - span232[3] = null; - span232[4] = null; - span232[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list467 = new List(num4); + CollectionsMarshal.SetCount(list467, num4); + Span span467 = CollectionsMarshal.AsSpan(list467); + num3 = 0; + span467[num3] = null; + num3++; + span467[num3] = null; + num3++; + span467[num3] = null; + num3++; + span467[num3] = null; + num3++; + span467[num3] = null; + num3++; + span467[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj252.CompletionQuestVariablesFlags = list467; reference321 = obj252; obj250.Steps = list465; reference319 = obj250; - ref QuestSequence reference322 = ref span228[7]; + num++; + ref QuestSequence reference322 = ref span452[num]; QuestSequence obj253 = new QuestSequence { Sequence = byte.MaxValue @@ -201886,7 +244416,9 @@ public static class AssemblyQuestLoader num2 = 1; List list468 = new List(num2); CollectionsMarshal.SetCount(list468, num2); - CollectionsMarshal.AsSpan(list468)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622) + Span span468 = CollectionsMarshal.AsSpan(list468); + index2 = 0; + span468[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622) { Mount = false, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -201916,13 +244448,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Theo"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Theo"; questRoot.Author = list; - num = 8; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 8; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -201930,7 +244465,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -201949,26 +244486,30 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(493.82428f, 40.425697f, -479.13782f), 622) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(493.82428f, 40.425697f, -479.13782f), 622) { Fly = true }; - span2[1] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) { Fly = false }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -201976,7 +244517,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -201995,21 +244538,25 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) { Fly = true }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -202017,7 +244564,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1025843u, new Vector3(-743.9536f, 127.27266f, 138.23145f), 622) + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.Interact, 1025843u, new Vector3(-743.9536f, 127.27266f, 138.23145f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -202036,36 +244585,44 @@ public static class AssemblyQuestLoader }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - num2 = 5; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span3 = CollectionsMarshal.AsSpan(list8); - ref QuestStep reference7 = ref span3[0]; + index2 = 5; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference7 = ref span8[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1025609u, new Vector3(-770.4738f, 127.42798f, 85.28259f), 622); int num3 = 1; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = EExtendedClassJob.DoH; + Span span9 = CollectionsMarshal.AsSpan(list9); + int index3 = 0; + span9[index3] = EExtendedClassJob.DoH; questStep.RequiredCurrentJob = list9; reference7 = questStep; - ref QuestStep reference8 = ref span3[1]; + num2++; + ref QuestStep reference8 = ref span8[num2]; QuestStep obj7 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22723u, ItemCount = 1 }; - num3 = 1; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list10 = new List(index3); + CollectionsMarshal.SetCount(list10, index3); + Span span10 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span10[num3] = EExtendedClassJob.DoH; obj7.RequiredCurrentJob = list10; reference8 = obj7; - ref QuestStep reference9 = ref span3[2]; + num2++; + ref QuestStep reference9 = ref span8[num2]; QuestStep obj8 = new QuestStep(EInteractionType.Gather, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -202085,19 +244642,24 @@ public static class AssemblyQuestLoader num3 = 1; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = EExtendedClassJob.Miner; + Span span11 = CollectionsMarshal.AsSpan(list11); + index3 = 0; + span11[index3] = EExtendedClassJob.Miner; obj8.RequiredQuestAcceptedJob = list11; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new GatheredItem + index3 = 1; + List list12 = new List(index3); + CollectionsMarshal.SetCount(list12, index3); + Span span12 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span12[num3] = new GatheredItem { ItemId = 22619u, ItemCount = 1 }; obj8.ItemsToGather = list12; reference9 = obj8; - ref QuestStep reference10 = ref span3[3]; + num2++; + ref QuestStep reference10 = ref span8[num2]; QuestStep obj9 = new QuestStep(EInteractionType.Gather, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -202117,19 +244679,24 @@ public static class AssemblyQuestLoader num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = EExtendedClassJob.Botanist; + Span span13 = CollectionsMarshal.AsSpan(list13); + index3 = 0; + span13[index3] = EExtendedClassJob.Botanist; obj9.RequiredQuestAcceptedJob = list13; - num3 = 1; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = new GatheredItem + index3 = 1; + List list14 = new List(index3); + CollectionsMarshal.SetCount(list14, index3); + Span span14 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span14[num3] = new GatheredItem { ItemId = 22645u, ItemCount = 1 }; obj9.ItemsToGather = list14; reference10 = obj9; - span3[4] = new QuestStep(EInteractionType.Interact, 1025842u, new Vector3(-742.855f, 127.275314f, 137.59058f), 622) + num2++; + span8[num2] = new QuestStep(EInteractionType.Interact, 1025842u, new Vector3(-742.855f, 127.275314f, 137.59058f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -202148,7 +244715,8 @@ public static class AssemblyQuestLoader }; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference11 = ref span[6]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 6 @@ -202156,21 +244724,26 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1025715u, new Vector3(-799.13025f, 127.50203f, 57.236572f), 622) + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.Interact, 1025715u, new Vector3(-799.13025f, 127.50203f, 57.236572f), 622) { Fly = true }; obj10.Steps = list15; reference11 = obj10; - ref QuestSequence reference12 = ref span[7]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025716u, new Vector3(-800.9613f, 127.411125f, 39.902344f), 622); + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025716u, new Vector3(-800.9613f, 127.411125f, 39.902344f), 622); obj11.Steps = list16; reference12 = obj11; questRoot.QuestSequence = list2; @@ -202180,13 +244753,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "Theo"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "Theo"; questRoot2.Author = list17; - num = 5; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span4 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span4[0]; + index = 5; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span18[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -202194,7 +244770,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -202213,16 +244791,18 @@ public static class AssemblyQuestLoader }; obj12.Steps = list19; reference13 = obj12; - ref QuestSequence reference14 = ref span4[1]; + num++; + ref QuestSequence reference14 = ref span18[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span5 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference15 = ref span5[0]; + index2 = 4; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span20[num2]; QuestStep obj14 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(73.05273f, 205f, 143.30833f), 478) { Mount = true, @@ -202233,24 +244813,30 @@ public static class AssemblyQuestLoader num3 = 2; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span6 = CollectionsMarshal.AsSpan(list21); - span6[0] = 399; - span6[1] = 463; + Span span21 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span21[index3] = 399; + index3++; + span21[index3] = 463; skipStepConditions.InTerritory = list21; skipConditions.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 3; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span7 = CollectionsMarshal.AsSpan(list22); - span7[0] = 478; - span7[1] = 399; - span7[2] = 463; + index3 = 3; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = 478; + num3++; + span22[num3] = 399; + num3++; + span22[num3] = 463; skipAetheryteCondition.InTerritory = list22; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj14.SkipConditions = skipConditions; reference15 = obj14; - ref QuestStep reference16 = ref span5[1]; + num2++; + ref QuestStep reference16 = ref span20[num2]; QuestStep obj15 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-488.692f, 139.95807f, 734.253f), 399) { Fly = true @@ -202260,12 +244846,15 @@ public static class AssemblyQuestLoader num3 = 1; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = 463; + Span span23 = CollectionsMarshal.AsSpan(list23); + index3 = 0; + span23[index3] = 463; skipStepConditions2.InTerritory = list23; skipConditions2.StepIf = skipStepConditions2; obj15.SkipConditions = skipConditions2; reference16 = obj15; - ref QuestStep reference17 = ref span5[2]; + num2++; + ref QuestStep reference17 = ref span20[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) { TargetTerritoryId = (ushort)463, @@ -202273,21 +244862,25 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = 463; + index3 = 1; + List list24 = new List(index3); + CollectionsMarshal.SetCount(list24, index3); + Span span24 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span24[num3] = 463; skipStepConditions3.InTerritory = list24; skipConditions3.StepIf = skipStepConditions3; obj16.SkipConditions = skipConditions3; reference17 = obj16; - span5[3] = new QuestStep(EInteractionType.UseItem, 2009488u, new Vector3(17.837708f, 38.406982f, 15.030029f), 463) + num2++; + span20[num2] = new QuestStep(EInteractionType.UseItem, 2009488u, new Vector3(17.837708f, 38.406982f, 15.030029f), 463) { ItemId = 2002474u }; obj13.Steps = list20; reference14 = obj13; - ref QuestSequence reference18 = ref span4[2]; + num++; + ref QuestSequence reference18 = ref span18[num]; QuestSequence obj17 = new QuestSequence { Sequence = 2 @@ -202295,28 +244888,34 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.UseItem, 2009510u, new Vector3(-736.5072f, 127.39758f, 101.548706f), 622) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.UseItem, 2009510u, new Vector3(-736.5072f, 127.39758f, 101.548706f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, ItemId = 2002474u }; obj17.Steps = list25; reference18 = obj17; - ref QuestSequence reference19 = ref span4[3]; + num++; + ref QuestSequence reference19 = ref span18[num]; QuestSequence obj18 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1025844u, new Vector3(-790.82935f, 127.2799f, 123.948975f), 622) + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.Interact, 1025844u, new Vector3(-790.82935f, 127.2799f, 123.948975f), 622) { Mount = true }; obj18.Steps = list26; reference19 = obj18; - ref QuestSequence reference20 = ref span4[4]; + num++; + ref QuestSequence reference20 = ref span18[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -202324,62 +244923,79 @@ public static class AssemblyQuestLoader num2 = 5; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span8 = CollectionsMarshal.AsSpan(list27); - ref QuestStep reference21 = ref span8[0]; + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + ref QuestStep reference21 = ref span27[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1025609u, new Vector3(-770.4738f, 127.42798f, 85.28259f), 622); num3 = 1; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = EExtendedClassJob.DoH; + Span span28 = CollectionsMarshal.AsSpan(list28); + index3 = 0; + span28[index3] = EExtendedClassJob.DoH; questStep2.RequiredQuestAcceptedJob = list28; reference21 = questStep2; - ref QuestStep reference22 = ref span8[1]; + index2++; + ref QuestStep reference22 = ref span27[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22724u, ItemCount = 1 }; - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span29[num3] = EExtendedClassJob.DoH; obj20.RequiredQuestAcceptedJob = list29; reference22 = obj20; - ref QuestStep reference23 = ref span8[2]; + index2++; + ref QuestStep reference23 = ref span27[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = EExtendedClassJob.Miner; + Span span30 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span30[index3] = EExtendedClassJob.Miner; questStep3.RequiredQuestAcceptedJob = list30; - num3 = 1; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = new GatheredItem + index3 = 1; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = new GatheredItem { ItemId = 22620u, ItemCount = 1 }; questStep3.ItemsToGather = list31; reference23 = questStep3; - ref QuestStep reference24 = ref span8[3]; + index2++; + ref QuestStep reference24 = ref span27[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = EExtendedClassJob.Botanist; + Span span32 = CollectionsMarshal.AsSpan(list32); + index3 = 0; + span32[index3] = EExtendedClassJob.Botanist; questStep4.RequiredQuestAcceptedJob = list32; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new GatheredItem + index3 = 1; + List list33 = new List(index3); + CollectionsMarshal.SetCount(list33, index3); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = new GatheredItem { ItemId = 22646u, ItemCount = 1 }; questStep4.ItemsToGather = list33; reference24 = questStep4; - span8[4] = new QuestStep(EInteractionType.CompleteQuest, 1025845u, new Vector3(-790.98193f, 127.28478f, 122.697754f), 622) + index2++; + span27[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025845u, new Vector3(-790.98193f, 127.28478f, 122.697754f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -202404,21 +245020,26 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "Censored"; + Span span34 = CollectionsMarshal.AsSpan(list34); + index = 0; + span34[index] = "Censored"; questRoot3.Author = list34; - num = 5; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span9 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference25 = ref span9[0]; + index = 5; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + Span span35 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference25 = ref span35[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -202436,7 +245057,8 @@ public static class AssemblyQuestLoader }; obj21.Steps = list36; reference25 = obj21; - ref QuestSequence reference26 = ref span9[1]; + num++; + ref QuestSequence reference26 = ref span35[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 @@ -202444,27 +245066,33 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) { Fly = true }; obj22.Steps = list37; reference26 = obj22; - ref QuestSequence reference27 = ref span9[2]; + num++; + ref QuestSequence reference27 = ref span35[num]; QuestSequence obj23 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj23.Steps = list38; reference27 = obj23; - ref QuestSequence reference28 = ref span9[3]; + num++; + ref QuestSequence reference28 = ref span35[num]; QuestSequence obj24 = new QuestSequence { Sequence = 3 @@ -202472,21 +245100,26 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) { Fly = true }; obj24.Steps = list39; reference28 = obj24; - ref QuestSequence reference29 = ref span9[4]; + num++; + ref QuestSequence reference29 = ref span35[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025844u, new Vector3(-790.82935f, 127.2799f, 123.948975f), 622) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025844u, new Vector3(-790.82935f, 127.2799f, 123.948975f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh }; @@ -202499,13 +245132,16 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "Theo"; + Span span41 = CollectionsMarshal.AsSpan(list41); + index = 0; + span41[index] = "Theo"; questRoot4.Author = list41; - num = 4; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span10 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference30 = ref span10[0]; + index = 4; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + Span span42 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference30 = ref span42[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -202513,27 +245149,33 @@ public static class AssemblyQuestLoader num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span11 = CollectionsMarshal.AsSpan(list43); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span11[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2++; + span43[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj26.Steps = list43; reference30 = obj26; - ref QuestSequence reference31 = ref span10[1]; + num++; + ref QuestSequence reference31 = ref span42[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Interact, 1025769u, new Vector3(511.43652f, 29.907833f, -404.9287f), 622) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.Interact, 1025769u, new Vector3(511.43652f, 29.907833f, -404.9287f), 622) { StopDistance = 5f, Fly = true }; obj27.Steps = list44; reference31 = obj27; - ref QuestSequence reference32 = ref span10[2]; + num++; + ref QuestSequence reference32 = ref span42[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -202541,76 +245183,96 @@ public static class AssemblyQuestLoader num2 = 5; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span12 = CollectionsMarshal.AsSpan(list45); - ref QuestStep reference33 = ref span12[0]; + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + ref QuestStep reference33 = ref span45[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1025770u, new Vector3(511.65015f, 30.105957f, -407.24805f), 622); num3 = 1; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = EExtendedClassJob.DoH; + Span span46 = CollectionsMarshal.AsSpan(list46); + index3 = 0; + span46[index3] = EExtendedClassJob.DoH; questStep5.RequiredQuestAcceptedJob = list46; reference33 = questStep5; - ref QuestStep reference34 = ref span12[1]; + index2++; + ref QuestStep reference34 = ref span45[index2]; QuestStep obj29 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22725u, ItemCount = 2 }; - num3 = 1; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list47 = new List(index3); + CollectionsMarshal.SetCount(list47, index3); + Span span47 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + span47[num3] = EExtendedClassJob.DoH; obj29.RequiredQuestAcceptedJob = list47; reference34 = obj29; - ref QuestStep reference35 = ref span12[2]; + index2++; + ref QuestStep reference35 = ref span45[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = EExtendedClassJob.Miner; + Span span48 = CollectionsMarshal.AsSpan(list48); + index3 = 0; + span48[index3] = EExtendedClassJob.Miner; questStep6.RequiredQuestAcceptedJob = list48; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = new GatheredItem + index3 = 1; + List list49 = new List(index3); + CollectionsMarshal.SetCount(list49, index3); + Span span49 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span49[num3] = new GatheredItem { ItemId = 22621u, ItemCount = 3 }; questStep6.ItemsToGather = list49; reference35 = questStep6; - ref QuestStep reference36 = ref span12[3]; + index2++; + ref QuestStep reference36 = ref span45[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = EExtendedClassJob.Botanist; + Span span50 = CollectionsMarshal.AsSpan(list50); + index3 = 0; + span50[index3] = EExtendedClassJob.Botanist; questStep7.RequiredQuestAcceptedJob = list50; - num3 = 1; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = new GatheredItem + index3 = 1; + List list51 = new List(index3); + CollectionsMarshal.SetCount(list51, index3); + Span span51 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span51[num3] = new GatheredItem { ItemId = 22647u, ItemCount = 3 }; questStep7.ItemsToGather = list51; reference36 = questStep7; - span12[4] = new QuestStep(EInteractionType.Interact, 1025769u, new Vector3(511.43652f, 29.907833f, -404.9287f), 622) + index2++; + span45[index2] = new QuestStep(EInteractionType.Interact, 1025769u, new Vector3(511.43652f, 29.907833f, -404.9287f), 622) { Fly = true }; obj28.Steps = list45; reference32 = obj28; - ref QuestSequence reference37 = ref span10[3]; + num++; + ref QuestSequence reference37 = ref span42[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -202636,13 +245298,16 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "Theo"; + Span span53 = CollectionsMarshal.AsSpan(list53); + index = 0; + span53[index] = "Theo"; questRoot5.Author = list53; - num = 3; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span13 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference38 = ref span13[0]; + index = 3; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + Span span54 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference38 = ref span54[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -202650,21 +245315,25 @@ public static class AssemblyQuestLoader num2 = 2; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span14 = CollectionsMarshal.AsSpan(list55); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span14[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2++; + span55[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj31.Steps = list55; reference38 = obj31; - ref QuestSequence reference39 = ref span13[1]; + num++; + ref QuestSequence reference39 = ref span54[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span15 = CollectionsMarshal.AsSpan(list56); - ref QuestStep reference40 = ref span15[0]; + index2 = 2; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + ref QuestStep reference40 = ref span56[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Say, 2009491u, new Vector3(-70.81714f, 66.9718f, -421.89673f), 622) { Fly = true, @@ -202676,16 +245345,23 @@ public static class AssemblyQuestLoader num3 = 6; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span16 = CollectionsMarshal.AsSpan(list57); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span57 = CollectionsMarshal.AsSpan(list57); + index3 = 0; + span57[index3] = null; + index3++; + span57[index3] = null; + index3++; + span57[index3] = null; + index3++; + span57[index3] = null; + index3++; + span57[index3] = null; + index3++; + span57[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj33.CompletionQuestVariablesFlags = list57; reference40 = obj33; - ref QuestStep reference41 = ref span15[1]; + num2++; + ref QuestStep reference41 = ref span56[num2]; QuestStep obj34 = new QuestStep(EInteractionType.Say, 2009492u, new Vector3(725.307f, -1.5717163f, -423.81934f), 622) { Fly = true, @@ -202694,21 +245370,28 @@ public static class AssemblyQuestLoader Key = "TEXT_BANNAM302_03104_SAYTODO_000_050" } }; - num3 = 6; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - Span span17 = CollectionsMarshal.AsSpan(list58); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list58 = new List(index3); + CollectionsMarshal.SetCount(list58, index3); + Span span58 = CollectionsMarshal.AsSpan(list58); + num3 = 0; + span58[num3] = null; + num3++; + span58[num3] = null; + num3++; + span58[num3] = null; + num3++; + span58[num3] = null; + num3++; + span58[num3] = null; + num3++; + span58[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj34.CompletionQuestVariablesFlags = list58; reference41 = obj34; obj32.Steps = list56; reference39 = obj32; - ref QuestSequence reference42 = ref span13[2]; + num++; + ref QuestSequence reference42 = ref span54[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -202716,7 +245399,9 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -202742,26 +245427,32 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "Theo"; + Span span60 = CollectionsMarshal.AsSpan(list60); + index = 0; + span60[index] = "Theo"; questRoot6.Author = list60; - num = 3; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span18 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference43 = ref span18[0]; + index = 3; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference43 = ref span61[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - Span span19 = CollectionsMarshal.AsSpan(list62); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span19[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2 = 2; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + num2++; + span62[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj36.Steps = list62; reference43 = obj36; - ref QuestSequence reference44 = ref span18[1]; + num++; + ref QuestSequence reference44 = ref span61[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 @@ -202769,43 +245460,53 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1025641u, new Vector3(-54.398438f, 76.83682f, -560.8148f), 622) + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.Interact, 1025641u, new Vector3(-54.398438f, 76.83682f, -560.8148f), 622) { StopDistance = 5f, Fly = true }; obj37.Steps = list63; reference44 = obj37; - ref QuestSequence reference45 = ref span18[2]; + num++; + ref QuestSequence reference45 = ref span61[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span20 = CollectionsMarshal.AsSpan(list64); - ref QuestStep reference46 = ref span20[0]; + index2 = 3; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + ref QuestStep reference46 = ref span64[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1025642u, new Vector3(-50.370117f, 76.798584f, -558.77014f), 622); num3 = 1; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = EExtendedClassJob.DoH; + Span span65 = CollectionsMarshal.AsSpan(list65); + index3 = 0; + span65[index3] = EExtendedClassJob.DoH; questStep8.RequiredQuestAcceptedJob = list65; reference46 = questStep8; - ref QuestStep reference47 = ref span20[1]; + num2++; + ref QuestStep reference47 = ref span64[num2]; QuestStep obj39 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22726u, ItemCount = 1 }; - num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list66 = new List(index3); + CollectionsMarshal.SetCount(list66, index3); + Span span66 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span66[num3] = EExtendedClassJob.DoH; obj39.RequiredQuestAcceptedJob = list66; reference47 = obj39; - span20[2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + num2++; + span64[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -202831,13 +245532,16 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "Theo"; + Span span67 = CollectionsMarshal.AsSpan(list67); + index = 0; + span67[index] = "Theo"; questRoot7.Author = list67; - num = 3; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span21 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference48 = ref span21[0]; + index = 3; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + Span span68 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference48 = ref span68[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -202845,27 +245549,33 @@ public static class AssemblyQuestLoader num2 = 2; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span22 = CollectionsMarshal.AsSpan(list69); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span22[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2++; + span69[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj40.Steps = list69; reference48 = obj40; - ref QuestSequence reference49 = ref span21[1]; + num++; + ref QuestSequence reference49 = ref span68[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1025773u, new Vector3(-311.29932f, 50.549908f, -225.8183f), 622) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.Interact, 1025773u, new Vector3(-311.29932f, 50.549908f, -225.8183f), 622) { StopDistance = 5f, Fly = true }; obj41.Steps = list70; reference49 = obj41; - ref QuestSequence reference50 = ref span21[2]; + num++; + ref QuestSequence reference50 = ref span68[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -202873,28 +245583,35 @@ public static class AssemblyQuestLoader num2 = 3; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span23 = CollectionsMarshal.AsSpan(list71); - ref QuestStep reference51 = ref span23[0]; + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + ref QuestStep reference51 = ref span71[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1025774u, new Vector3(-308.73578f, 50.247925f, -226.09296f), 622); num3 = 1; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = EExtendedClassJob.DoH; + Span span72 = CollectionsMarshal.AsSpan(list72); + index3 = 0; + span72[index3] = EExtendedClassJob.DoH; questStep9.RequiredQuestAcceptedJob = list72; reference51 = questStep9; - ref QuestStep reference52 = ref span23[1]; + index2++; + ref QuestStep reference52 = ref span71[index2]; QuestStep obj43 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22727u, ItemCount = 2 }; - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + Span span73 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span73[num3] = EExtendedClassJob.DoH; obj43.RequiredQuestAcceptedJob = list73; reference52 = obj43; - span23[2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2++; + span71[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -202920,26 +245637,32 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "Theo"; + Span span74 = CollectionsMarshal.AsSpan(list74); + index = 0; + span74[index] = "Theo"; questRoot8.Author = list74; - num = 4; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span24 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference53 = ref span24[0]; + index = 4; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + Span span75 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference53 = ref span75[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span25 = CollectionsMarshal.AsSpan(list76); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span25[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2 = 2; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + num2++; + span76[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj44.Steps = list76; reference53 = obj44; - ref QuestSequence reference54 = ref span24[1]; + num++; + ref QuestSequence reference54 = ref span75[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 @@ -202947,81 +245670,102 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1025775u, new Vector3(-145.4032f, 27.922167f, -36.05713f), 622) + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.Interact, 1025775u, new Vector3(-145.4032f, 27.922167f, -36.05713f), 622) { StopDistance = 5f, Fly = true }; obj45.Steps = list77; reference54 = obj45; - span24[2] = new QuestSequence + num++; + span75[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference55 = ref span24[3]; + num++; + ref QuestSequence reference55 = ref span75[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - Span span26 = CollectionsMarshal.AsSpan(list78); - ref QuestStep reference56 = ref span26[0]; + index2 = 5; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + ref QuestStep reference56 = ref span78[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1025776u, new Vector3(-143.45007f, 27.66455f, -39.139465f), 622); num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = EExtendedClassJob.DoH; + Span span79 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span79[index3] = EExtendedClassJob.DoH; questStep10.RequiredQuestAcceptedJob = list79; reference56 = questStep10; - ref QuestStep reference57 = ref span26[1]; + num2++; + ref QuestStep reference57 = ref span78[num2]; QuestStep obj47 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22728u, ItemCount = 3 }; - num3 = 1; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list80 = new List(index3); + CollectionsMarshal.SetCount(list80, index3); + Span span80 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span80[num3] = EExtendedClassJob.DoH; obj47.RequiredQuestAcceptedJob = list80; reference57 = obj47; - ref QuestStep reference58 = ref span26[2]; + num2++; + ref QuestStep reference58 = ref span78[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list81 = new List(num3); CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = EExtendedClassJob.Miner; + Span span81 = CollectionsMarshal.AsSpan(list81); + index3 = 0; + span81[index3] = EExtendedClassJob.Miner; questStep11.RequiredQuestAcceptedJob = list81; - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = new GatheredItem + index3 = 1; + List list82 = new List(index3); + CollectionsMarshal.SetCount(list82, index3); + Span span82 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span82[num3] = new GatheredItem { ItemId = 22624u, ItemCount = 3 }; questStep11.ItemsToGather = list82; reference58 = questStep11; - ref QuestStep reference59 = ref span26[3]; + num2++; + ref QuestStep reference59 = ref span78[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list83 = new List(num3); CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = EExtendedClassJob.Botanist; + Span span83 = CollectionsMarshal.AsSpan(list83); + index3 = 0; + span83[index3] = EExtendedClassJob.Botanist; questStep12.RequiredQuestAcceptedJob = list83; - num3 = 1; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = new GatheredItem + index3 = 1; + List list84 = new List(index3); + CollectionsMarshal.SetCount(list84, index3); + Span span84 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span84[num3] = new GatheredItem { ItemId = 22650u, ItemCount = 3 }; questStep12.ItemsToGather = list84; reference59 = questStep12; - span26[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + num2++; + span78[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -203047,13 +245791,16 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "Theo"; + Span span85 = CollectionsMarshal.AsSpan(list85); + index = 0; + span85[index] = "Theo"; questRoot9.Author = list85; - num = 5; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span27 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference60 = ref span27[0]; + index = 5; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + Span span86 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference60 = ref span86[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -203061,27 +245808,33 @@ public static class AssemblyQuestLoader num2 = 2; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span28 = CollectionsMarshal.AsSpan(list87); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span28[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2++; + span87[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj48.Steps = list87; reference60 = obj48; - ref QuestSequence reference61 = ref span27[1]; + num++; + ref QuestSequence reference61 = ref span86[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1025777u, new Vector3(-596.9177f, 64.000984f, -285.0843f), 622) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Interact, 1025777u, new Vector3(-596.9177f, 64.000984f, -285.0843f), 622) { StopDistance = 5f, Fly = true }; obj49.Steps = list88; reference61 = obj49; - ref QuestSequence reference62 = ref span27[2]; + num++; + ref QuestSequence reference62 = ref span86[num]; QuestSequence obj50 = new QuestSequence { Sequence = 2 @@ -203089,88 +245842,109 @@ public static class AssemblyQuestLoader num2 = 5; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span29 = CollectionsMarshal.AsSpan(list89); - ref QuestStep reference63 = ref span29[0]; + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + ref QuestStep reference63 = ref span89[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1025778u, new Vector3(-597.0398f, 63.82837f, -288.65497f), 622); num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = EExtendedClassJob.DoH; + Span span90 = CollectionsMarshal.AsSpan(list90); + index3 = 0; + span90[index3] = EExtendedClassJob.DoH; questStep13.RequiredQuestAcceptedJob = list90; reference63 = questStep13; - ref QuestStep reference64 = ref span29[1]; + index2++; + ref QuestStep reference64 = ref span89[index2]; QuestStep obj51 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22729u, ItemCount = 1 }; - num3 = 1; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list91 = new List(index3); + CollectionsMarshal.SetCount(list91, index3); + Span span91 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + span91[num3] = EExtendedClassJob.DoH; obj51.RequiredQuestAcceptedJob = list91; reference64 = obj51; - ref QuestStep reference65 = ref span29[2]; + index2++; + ref QuestStep reference65 = ref span89[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = EExtendedClassJob.Miner; + Span span92 = CollectionsMarshal.AsSpan(list92); + index3 = 0; + span92[index3] = EExtendedClassJob.Miner; questStep14.RequiredQuestAcceptedJob = list92; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new GatheredItem + index3 = 1; + List list93 = new List(index3); + CollectionsMarshal.SetCount(list93, index3); + Span span93 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span93[num3] = new GatheredItem { ItemId = 22625u, ItemCount = 3 }; questStep14.ItemsToGather = list93; reference65 = questStep14; - ref QuestStep reference66 = ref span29[3]; + index2++; + ref QuestStep reference66 = ref span89[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = EExtendedClassJob.Botanist; + Span span94 = CollectionsMarshal.AsSpan(list94); + index3 = 0; + span94[index3] = EExtendedClassJob.Botanist; questStep15.RequiredQuestAcceptedJob = list94; - num3 = 1; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new GatheredItem + index3 = 1; + List list95 = new List(index3); + CollectionsMarshal.SetCount(list95, index3); + Span span95 = CollectionsMarshal.AsSpan(list95); + num3 = 0; + span95[num3] = new GatheredItem { ItemId = 22651u, ItemCount = 3 }; questStep15.ItemsToGather = list95; reference66 = questStep15; - span29[4] = new QuestStep(EInteractionType.Interact, 1025777u, new Vector3(-596.9177f, 64.000984f, -285.0843f), 622) + index2++; + span89[index2] = new QuestStep(EInteractionType.Interact, 1025777u, new Vector3(-596.9177f, 64.000984f, -285.0843f), 622) { Fly = true }; obj50.Steps = list89; reference62 = obj50; - ref QuestSequence reference67 = ref span27[3]; + num++; + ref QuestSequence reference67 = ref span86[num]; QuestSequence obj52 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - Span span30 = CollectionsMarshal.AsSpan(list96); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-642.094f, 18.562637f, 399.83704f), 622) + index2 = 2; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-642.094f, 18.562637f, 399.83704f), 622) { Fly = true }; - span30[1] = new QuestStep(EInteractionType.Interact, 1019330u, new Vector3(-746.7918f, 7.8459983f, 398.27563f), 622) + num2++; + span96[num2] = new QuestStep(EInteractionType.Interact, 1019330u, new Vector3(-746.7918f, 7.8459983f, 398.27563f), 622) { StopDistance = 5f, Fly = true }; obj52.Steps = list96; reference67 = obj52; - ref QuestSequence reference68 = ref span27[4]; + num++; + ref QuestSequence reference68 = ref span86[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -203178,7 +245952,9 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -203204,26 +245980,32 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "Theo"; + Span span98 = CollectionsMarshal.AsSpan(list98); + index = 0; + span98[index] = "Theo"; questRoot10.Author = list98; - num = 4; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span31 = CollectionsMarshal.AsSpan(list99); - ref QuestSequence reference69 = ref span31[0]; + index = 4; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + Span span99 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference69 = ref span99[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span32 = CollectionsMarshal.AsSpan(list100); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span32[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2 = 2; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + num2++; + span100[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj54.Steps = list100; reference69 = obj54; - ref QuestSequence reference70 = ref span31[1]; + num++; + ref QuestSequence reference70 = ref span99[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -203231,7 +246013,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1025779u, new Vector3(194.04845f, 13.27476f, 121.84426f), 622) + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.Interact, 1025779u, new Vector3(194.04845f, 13.27476f, 121.84426f), 622) { StopDistance = 0.5f, Fly = true, @@ -203239,76 +246023,95 @@ public static class AssemblyQuestLoader }; obj55.Steps = list101; reference70 = obj55; - ref QuestSequence reference71 = ref span31[2]; + num++; + ref QuestSequence reference71 = ref span99[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span33 = CollectionsMarshal.AsSpan(list102); - ref QuestStep reference72 = ref span33[0]; + index2 = 5; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + ref QuestStep reference72 = ref span102[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1025780u, new Vector3(192.30945f, 13.260071f, 122.545166f), 622); num3 = 1; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = EExtendedClassJob.DoH; + Span span103 = CollectionsMarshal.AsSpan(list103); + index3 = 0; + span103[index3] = EExtendedClassJob.DoH; questStep16.RequiredQuestAcceptedJob = list103; reference72 = questStep16; - ref QuestStep reference73 = ref span33[1]; + num2++; + ref QuestStep reference73 = ref span102[num2]; QuestStep obj57 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22730u, ItemCount = 2 }; - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list104 = new List(index3); + CollectionsMarshal.SetCount(list104, index3); + Span span104 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span104[num3] = EExtendedClassJob.DoH; obj57.RequiredQuestAcceptedJob = list104; reference73 = obj57; - ref QuestStep reference74 = ref span33[2]; + num2++; + ref QuestStep reference74 = ref span102[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = EExtendedClassJob.Miner; + Span span105 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span105[index3] = EExtendedClassJob.Miner; questStep17.RequiredQuestAcceptedJob = list105; - num3 = 1; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = new GatheredItem + index3 = 1; + List list106 = new List(index3); + CollectionsMarshal.SetCount(list106, index3); + Span span106 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span106[num3] = new GatheredItem { ItemId = 22626u, ItemCount = 3 }; questStep17.ItemsToGather = list106; reference74 = questStep17; - ref QuestStep reference75 = ref span33[3]; + num2++; + ref QuestStep reference75 = ref span102[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = EExtendedClassJob.Botanist; + Span span107 = CollectionsMarshal.AsSpan(list107); + index3 = 0; + span107[index3] = EExtendedClassJob.Botanist; questStep18.RequiredQuestAcceptedJob = list107; - num3 = 1; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new GatheredItem + index3 = 1; + List list108 = new List(index3); + CollectionsMarshal.SetCount(list108, index3); + Span span108 = CollectionsMarshal.AsSpan(list108); + num3 = 0; + span108[num3] = new GatheredItem { ItemId = 22652u, ItemCount = 3 }; questStep18.ItemsToGather = list108; reference75 = questStep18; - span33[4] = new QuestStep(EInteractionType.Interact, 1025779u, new Vector3(193.04187f, 13.040566f, 120.19531f), 622) + num2++; + span102[num2] = new QuestStep(EInteractionType.Interact, 1025779u, new Vector3(193.04187f, 13.040566f, 120.19531f), 622) { Fly = true }; obj56.Steps = list102; reference71 = obj56; - ref QuestSequence reference76 = ref span31[3]; + num++; + ref QuestSequence reference76 = ref span99[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -203316,7 +246119,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -203342,21 +246147,26 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "Theo"; + Span span110 = CollectionsMarshal.AsSpan(list110); + index = 0; + span110[index] = "Theo"; questRoot11.Author = list110; - num = 5; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span34 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference77 = ref span34[0]; + index = 5; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + Span span111 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference77 = ref span111[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -203374,7 +246184,8 @@ public static class AssemblyQuestLoader }; obj59.Steps = list112; reference77 = obj59; - ref QuestSequence reference78 = ref span34[1]; + num++; + ref QuestSequence reference78 = ref span111[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -203382,82 +246193,103 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1025781u, new Vector3(573.96814f, -19.505817f, 427.66455f), 622) + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.Interact, 1025781u, new Vector3(573.96814f, -19.505817f, 427.66455f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj60.Steps = list113; reference78 = obj60; - ref QuestSequence reference79 = ref span34[2]; + num++; + ref QuestSequence reference79 = ref span111[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span35 = CollectionsMarshal.AsSpan(list114); - ref QuestStep reference80 = ref span35[0]; + index2 = 5; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + ref QuestStep reference80 = ref span114[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1025782u, new Vector3(573.7544f, -19.516357f, 430.10596f), 622); num3 = 1; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = EExtendedClassJob.DoH; + Span span115 = CollectionsMarshal.AsSpan(list115); + index3 = 0; + span115[index3] = EExtendedClassJob.DoH; questStep19.RequiredQuestAcceptedJob = list115; reference80 = questStep19; - ref QuestStep reference81 = ref span35[1]; + num2++; + ref QuestStep reference81 = ref span114[num2]; QuestStep obj62 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22731u, ItemCount = 1 }; - num3 = 1; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list116 = new List(index3); + CollectionsMarshal.SetCount(list116, index3); + Span span116 = CollectionsMarshal.AsSpan(list116); + num3 = 0; + span116[num3] = EExtendedClassJob.DoH; obj62.RequiredQuestAcceptedJob = list116; reference81 = obj62; - ref QuestStep reference82 = ref span35[2]; + num2++; + ref QuestStep reference82 = ref span114[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = EExtendedClassJob.Miner; + Span span117 = CollectionsMarshal.AsSpan(list117); + index3 = 0; + span117[index3] = EExtendedClassJob.Miner; questStep20.RequiredQuestAcceptedJob = list117; - num3 = 1; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = new GatheredItem + index3 = 1; + List list118 = new List(index3); + CollectionsMarshal.SetCount(list118, index3); + Span span118 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span118[num3] = new GatheredItem { ItemId = 22627u, ItemCount = 3 }; questStep20.ItemsToGather = list118; reference82 = questStep20; - ref QuestStep reference83 = ref span35[3]; + num2++; + ref QuestStep reference83 = ref span114[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = EExtendedClassJob.Botanist; + Span span119 = CollectionsMarshal.AsSpan(list119); + index3 = 0; + span119[index3] = EExtendedClassJob.Botanist; questStep21.RequiredQuestAcceptedJob = list119; - num3 = 1; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - CollectionsMarshal.AsSpan(list120)[0] = new GatheredItem + index3 = 1; + List list120 = new List(index3); + CollectionsMarshal.SetCount(list120, index3); + Span span120 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + span120[num3] = new GatheredItem { ItemId = 22653u, ItemCount = 3 }; questStep21.ItemsToGather = list120; reference83 = questStep21; - span35[4] = new QuestStep(EInteractionType.Interact, 1025781u, new Vector3(573.96814f, -19.505817f, 427.66455f), 622) + num2++; + span114[num2] = new QuestStep(EInteractionType.Interact, 1025781u, new Vector3(573.96814f, -19.505817f, 427.66455f), 622) { Fly = true }; obj61.Steps = list114; reference79 = obj61; - ref QuestSequence reference84 = ref span34[3]; + num++; + ref QuestSequence reference84 = ref span111[num]; QuestSequence obj63 = new QuestSequence { Sequence = 3 @@ -203465,18 +246297,23 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 2009494u, new Vector3(575.09717f, -19.272217f, 424.97888f), 622); + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.Interact, 2009494u, new Vector3(575.09717f, -19.272217f, 424.97888f), 622); obj63.Steps = list121; reference84 = obj63; - ref QuestSequence reference85 = ref span34[4]; + num++; + ref QuestSequence reference85 = ref span111[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -203502,13 +246339,16 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "Theo"; + Span span123 = CollectionsMarshal.AsSpan(list123); + index = 0; + span123[index] = "Theo"; questRoot12.Author = list123; - num = 3; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span36 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference86 = ref span36[0]; + index = 3; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + Span span124 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference86 = ref span124[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -203516,7 +246356,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -203534,15 +246376,18 @@ public static class AssemblyQuestLoader }; obj65.Steps = list125; reference86 = obj65; - ref QuestSequence reference87 = ref span36[1]; + num++; + ref QuestSequence reference87 = ref span124[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1025783u, new Vector3(122.6062f, 39.55857f, -336.5683f), 622) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.Interact, 1025783u, new Vector3(122.6062f, 39.55857f, -336.5683f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -203561,7 +246406,8 @@ public static class AssemblyQuestLoader }; obj66.Steps = list126; reference87 = obj66; - ref QuestSequence reference88 = ref span36[2]; + num++; + ref QuestSequence reference88 = ref span124[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -203569,62 +246415,79 @@ public static class AssemblyQuestLoader num2 = 5; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span37 = CollectionsMarshal.AsSpan(list127); - ref QuestStep reference89 = ref span37[0]; + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + ref QuestStep reference89 = ref span127[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1025784u, new Vector3(125.68848f, 39.96338f, -335.8969f), 622); num3 = 1; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = EExtendedClassJob.DoH; + Span span128 = CollectionsMarshal.AsSpan(list128); + index3 = 0; + span128[index3] = EExtendedClassJob.DoH; questStep22.RequiredQuestAcceptedJob = list128; reference89 = questStep22; - ref QuestStep reference90 = ref span37[1]; + index2++; + ref QuestStep reference90 = ref span127[index2]; QuestStep obj68 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22732u, ItemCount = 2 }; - num3 = 1; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list129 = new List(index3); + CollectionsMarshal.SetCount(list129, index3); + Span span129 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span129[num3] = EExtendedClassJob.DoH; obj68.RequiredQuestAcceptedJob = list129; reference90 = obj68; - ref QuestStep reference91 = ref span37[2]; + index2++; + ref QuestStep reference91 = ref span127[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = EExtendedClassJob.Miner; + Span span130 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span130[index3] = EExtendedClassJob.Miner; questStep23.RequiredQuestAcceptedJob = list130; - num3 = 1; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - CollectionsMarshal.AsSpan(list131)[0] = new GatheredItem + index3 = 1; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + Span span131 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span131[num3] = new GatheredItem { ItemId = 22628u, ItemCount = 3 }; questStep23.ItemsToGather = list131; reference91 = questStep23; - ref QuestStep reference92 = ref span37[3]; + index2++; + ref QuestStep reference92 = ref span127[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = EExtendedClassJob.Botanist; + Span span132 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span132[index3] = EExtendedClassJob.Botanist; questStep24.RequiredQuestAcceptedJob = list132; - num3 = 1; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = new GatheredItem + index3 = 1; + List list133 = new List(index3); + CollectionsMarshal.SetCount(list133, index3); + Span span133 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span133[num3] = new GatheredItem { ItemId = 22654u, ItemCount = 3 }; questStep24.ItemsToGather = list133; reference92 = questStep24; - span37[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2++; + span127[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -203650,21 +246513,26 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "Theo"; + Span span134 = CollectionsMarshal.AsSpan(list134); + index = 0; + span134[index] = "Theo"; questRoot13.Author = list134; - num = 4; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span38 = CollectionsMarshal.AsSpan(list135); - ref QuestSequence reference93 = ref span38[0]; + index = 4; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + Span span135 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref QuestSequence reference93 = ref span135[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -203683,7 +246551,8 @@ public static class AssemblyQuestLoader }; obj69.Steps = list136; reference93 = obj69; - ref QuestSequence reference94 = ref span38[1]; + num++; + ref QuestSequence reference94 = ref span135[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -203691,83 +246560,104 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1025785u, new Vector3(76.58496f, 114.904976f, -6.363098f), 622) + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.Interact, 1025785u, new Vector3(76.58496f, 114.904976f, -6.363098f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj70.Steps = list137; reference94 = obj70; - ref QuestSequence reference95 = ref span38[2]; + num++; + ref QuestSequence reference95 = ref span135[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - Span span39 = CollectionsMarshal.AsSpan(list138); - ref QuestStep reference96 = ref span39[0]; + index2 = 5; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + ref QuestStep reference96 = ref span138[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1025786u, new Vector3(75.42529f, 114.88513f, -9.475891f), 622); num3 = 1; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - CollectionsMarshal.AsSpan(list139)[0] = EExtendedClassJob.DoH; + Span span139 = CollectionsMarshal.AsSpan(list139); + index3 = 0; + span139[index3] = EExtendedClassJob.DoH; questStep25.RequiredQuestAcceptedJob = list139; reference96 = questStep25; - ref QuestStep reference97 = ref span39[1]; + num2++; + ref QuestStep reference97 = ref span138[num2]; QuestStep obj72 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22733u, ItemCount = 1 }; - num3 = 1; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - CollectionsMarshal.AsSpan(list140)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list140 = new List(index3); + CollectionsMarshal.SetCount(list140, index3); + Span span140 = CollectionsMarshal.AsSpan(list140); + num3 = 0; + span140[num3] = EExtendedClassJob.DoH; obj72.RequiredQuestAcceptedJob = list140; reference97 = obj72; - ref QuestStep reference98 = ref span39[2]; + num2++; + ref QuestStep reference98 = ref span138[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = EExtendedClassJob.Miner; + Span span141 = CollectionsMarshal.AsSpan(list141); + index3 = 0; + span141[index3] = EExtendedClassJob.Miner; questStep26.RequiredQuestAcceptedJob = list141; - num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = new GatheredItem + index3 = 1; + List list142 = new List(index3); + CollectionsMarshal.SetCount(list142, index3); + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span142[num3] = new GatheredItem { ItemId = 22629u, ItemCount = 3 }; questStep26.ItemsToGather = list142; reference98 = questStep26; - ref QuestStep reference99 = ref span39[3]; + num2++; + ref QuestStep reference99 = ref span138[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = EExtendedClassJob.Botanist; + Span span143 = CollectionsMarshal.AsSpan(list143); + index3 = 0; + span143[index3] = EExtendedClassJob.Botanist; questStep27.RequiredQuestAcceptedJob = list143; - num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new GatheredItem + index3 = 1; + List list144 = new List(index3); + CollectionsMarshal.SetCount(list144, index3); + Span span144 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span144[num3] = new GatheredItem { ItemId = 22655u, ItemCount = 3 }; questStep27.ItemsToGather = list144; reference99 = questStep27; - span39[4] = new QuestStep(EInteractionType.Interact, 1025785u, new Vector3(76.58496f, 114.904976f, -6.363098f), 622) + num2++; + span138[num2] = new QuestStep(EInteractionType.Interact, 1025785u, new Vector3(76.58496f, 114.904976f, -6.363098f), 622) { Fly = true }; obj71.Steps = list138; reference95 = obj71; - ref QuestSequence reference100 = ref span38[3]; + num++; + ref QuestSequence reference100 = ref span135[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -203775,7 +246665,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = false, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -203801,26 +246693,32 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "Theo"; + Span span146 = CollectionsMarshal.AsSpan(list146); + index = 0; + span146[index] = "Theo"; questRoot14.Author = list146; - num = 4; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span40 = CollectionsMarshal.AsSpan(list147); - ref QuestSequence reference101 = ref span40[0]; + index = 4; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + Span span147 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference101 = ref span147[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - Span span41 = CollectionsMarshal.AsSpan(list148); - span41[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span41[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2 = 2; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + num2++; + span148[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj74.Steps = list148; reference101 = obj74; - ref QuestSequence reference102 = ref span40[1]; + num++; + ref QuestSequence reference102 = ref span147[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 @@ -203828,83 +246726,104 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1025787u, new Vector3(389.70007f, -8.514979f, 487.93762f), 622) + Span span149 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span149[index2] = new QuestStep(EInteractionType.Interact, 1025787u, new Vector3(389.70007f, -8.514979f, 487.93762f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj75.Steps = list149; reference102 = obj75; - ref QuestSequence reference103 = ref span40[2]; + num++; + ref QuestSequence reference103 = ref span147[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - Span span42 = CollectionsMarshal.AsSpan(list150); - ref QuestStep reference104 = ref span42[0]; + index2 = 5; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + ref QuestStep reference104 = ref span150[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1025788u, new Vector3(391.9889f, -8.529846f, 489.55518f), 622); num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = EExtendedClassJob.DoH; + Span span151 = CollectionsMarshal.AsSpan(list151); + index3 = 0; + span151[index3] = EExtendedClassJob.DoH; questStep28.RequiredQuestAcceptedJob = list151; reference104 = questStep28; - ref QuestStep reference105 = ref span42[1]; + num2++; + ref QuestStep reference105 = ref span150[num2]; QuestStep obj77 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22734u, ItemCount = 2 }; - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + Span span152 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span152[num3] = EExtendedClassJob.DoH; obj77.RequiredQuestAcceptedJob = list152; reference105 = obj77; - ref QuestStep reference106 = ref span42[2]; + num2++; + ref QuestStep reference106 = ref span150[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = EExtendedClassJob.Miner; + Span span153 = CollectionsMarshal.AsSpan(list153); + index3 = 0; + span153[index3] = EExtendedClassJob.Miner; questStep29.RequiredQuestAcceptedJob = list153; - num3 = 1; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = new GatheredItem + index3 = 1; + List list154 = new List(index3); + CollectionsMarshal.SetCount(list154, index3); + Span span154 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span154[num3] = new GatheredItem { ItemId = 22630u, ItemCount = 3 }; questStep29.ItemsToGather = list154; reference106 = questStep29; - ref QuestStep reference107 = ref span42[3]; + num2++; + ref QuestStep reference107 = ref span150[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = EExtendedClassJob.Botanist; + Span span155 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span155[index3] = EExtendedClassJob.Botanist; questStep30.RequiredQuestAcceptedJob = list155; - num3 = 1; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = new GatheredItem + index3 = 1; + List list156 = new List(index3); + CollectionsMarshal.SetCount(list156, index3); + Span span156 = CollectionsMarshal.AsSpan(list156); + num3 = 0; + span156[num3] = new GatheredItem { ItemId = 22656u, ItemCount = 3 }; questStep30.ItemsToGather = list156; reference107 = questStep30; - span42[4] = new QuestStep(EInteractionType.Interact, 1025787u, new Vector3(389.70007f, -8.514979f, 487.93762f), 622) + num2++; + span150[num2] = new QuestStep(EInteractionType.Interact, 1025787u, new Vector3(389.70007f, -8.514979f, 487.93762f), 622) { Fly = true }; obj76.Steps = list150; reference103 = obj76; - ref QuestSequence reference108 = ref span40[3]; + num++; + ref QuestSequence reference108 = ref span147[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -203912,7 +246831,9 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -203938,26 +246859,32 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - CollectionsMarshal.AsSpan(list158)[0] = "Theo"; + Span span158 = CollectionsMarshal.AsSpan(list158); + index = 0; + span158[index] = "Theo"; questRoot15.Author = list158; - num = 4; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - Span span43 = CollectionsMarshal.AsSpan(list159); - ref QuestSequence reference109 = ref span43[0]; + index = 4; + List list159 = new List(index); + CollectionsMarshal.SetCount(list159, index); + Span span159 = CollectionsMarshal.AsSpan(list159); + num = 0; + ref QuestSequence reference109 = ref span159[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span44 = CollectionsMarshal.AsSpan(list160); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span44[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + num2++; + span160[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj79.Steps = list160; reference109 = obj79; - ref QuestSequence reference110 = ref span43[1]; + num++; + ref QuestSequence reference110 = ref span159[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -203965,83 +246892,104 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1025789u, new Vector3(594.93384f, 23.164816f, -421.80518f), 622) + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.Interact, 1025789u, new Vector3(594.93384f, 23.164816f, -421.80518f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj80.Steps = list161; reference110 = obj80; - ref QuestSequence reference111 = ref span43[2]; + num++; + ref QuestSequence reference111 = ref span159[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span45 = CollectionsMarshal.AsSpan(list162); - ref QuestStep reference112 = ref span45[0]; + index2 = 5; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + ref QuestStep reference112 = ref span162[num2]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1025790u, new Vector3(594.41516f, 23.208984f, -423.81934f), 622); num3 = 1; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = EExtendedClassJob.DoH; + Span span163 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span163[index3] = EExtendedClassJob.DoH; questStep31.RequiredQuestAcceptedJob = list163; reference112 = questStep31; - ref QuestStep reference113 = ref span45[1]; + num2++; + ref QuestStep reference113 = ref span162[num2]; QuestStep obj82 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22735u, ItemCount = 3 }; - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + Span span164 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span164[num3] = EExtendedClassJob.DoH; obj82.RequiredQuestAcceptedJob = list164; reference113 = obj82; - ref QuestStep reference114 = ref span45[2]; + num2++; + ref QuestStep reference114 = ref span162[num2]; QuestStep questStep32 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list165 = new List(num3); CollectionsMarshal.SetCount(list165, num3); - CollectionsMarshal.AsSpan(list165)[0] = EExtendedClassJob.Miner; + Span span165 = CollectionsMarshal.AsSpan(list165); + index3 = 0; + span165[index3] = EExtendedClassJob.Miner; questStep32.RequiredQuestAcceptedJob = list165; - num3 = 1; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - CollectionsMarshal.AsSpan(list166)[0] = new GatheredItem + index3 = 1; + List list166 = new List(index3); + CollectionsMarshal.SetCount(list166, index3); + Span span166 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + span166[num3] = new GatheredItem { ItemId = 22631u, ItemCount = 3 }; questStep32.ItemsToGather = list166; reference114 = questStep32; - ref QuestStep reference115 = ref span45[3]; + num2++; + ref QuestStep reference115 = ref span162[num2]; QuestStep questStep33 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - CollectionsMarshal.AsSpan(list167)[0] = EExtendedClassJob.Botanist; + Span span167 = CollectionsMarshal.AsSpan(list167); + index3 = 0; + span167[index3] = EExtendedClassJob.Botanist; questStep33.RequiredQuestAcceptedJob = list167; - num3 = 1; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = new GatheredItem + index3 = 1; + List list168 = new List(index3); + CollectionsMarshal.SetCount(list168, index3); + Span span168 = CollectionsMarshal.AsSpan(list168); + num3 = 0; + span168[num3] = new GatheredItem { ItemId = 22657u, ItemCount = 3 }; questStep33.ItemsToGather = list168; reference115 = questStep33; - span45[4] = new QuestStep(EInteractionType.Interact, 1025789u, new Vector3(594.93384f, 23.164816f, -421.80518f), 622) + num2++; + span162[num2] = new QuestStep(EInteractionType.Interact, 1025789u, new Vector3(594.93384f, 23.164816f, -421.80518f), 622) { Fly = true }; obj81.Steps = list162; reference111 = obj81; - ref QuestSequence reference116 = ref span43[3]; + num++; + ref QuestSequence reference116 = ref span159[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -204049,7 +246997,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204075,21 +247025,26 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "Theo"; + Span span170 = CollectionsMarshal.AsSpan(list170); + index = 0; + span170[index] = "Theo"; questRoot16.Author = list170; - num = 5; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - Span span46 = CollectionsMarshal.AsSpan(list171); - ref QuestSequence reference117 = ref span46[0]; + index = 5; + List list171 = new List(index); + CollectionsMarshal.SetCount(list171, index); + Span span171 = CollectionsMarshal.AsSpan(list171); + num = 0; + ref QuestSequence reference117 = ref span171[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span172[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204108,7 +247063,8 @@ public static class AssemblyQuestLoader }; obj84.Steps = list172; reference117 = obj84; - ref QuestSequence reference118 = ref span46[1]; + num++; + ref QuestSequence reference118 = ref span171[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -204116,21 +247072,26 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1025610u, new Vector3(-739.43695f, 127.45824f, 90.62329f), 622) + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.Interact, 1025610u, new Vector3(-739.43695f, 127.45824f, 90.62329f), 622) { Mount = true }; obj85.Steps = list173; reference118 = obj85; - ref QuestSequence reference119 = ref span46[2]; + num++; + ref QuestSequence reference119 = ref span171[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Action, 2009498u, new Vector3(-161.57782f, 5.142273f, 554.46704f), 622) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.Action, 2009498u, new Vector3(-161.57782f, 5.142273f, 554.46704f), 622) { Fly = true, Land = true, @@ -204138,7 +247099,8 @@ public static class AssemblyQuestLoader }; obj86.Steps = list174; reference119 = obj86; - ref QuestSequence reference120 = ref span46[3]; + num++; + ref QuestSequence reference120 = ref span171[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 @@ -204146,7 +247108,9 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Action, 2009499u, new Vector3(176.34851f, 4.135132f, 20.645447f), 622) + Span span175 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span175[index2] = new QuestStep(EInteractionType.Action, 2009499u, new Vector3(176.34851f, 4.135132f, 20.645447f), 622) { Fly = true, Land = true, @@ -204154,15 +247118,18 @@ public static class AssemblyQuestLoader }; obj87.Steps = list175; reference120 = obj87; - ref QuestSequence reference121 = ref span46[4]; + num++; + ref QuestSequence reference121 = ref span171[num]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + Span span176 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span176[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = false, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204188,13 +247155,16 @@ public static class AssemblyQuestLoader num = 1; List list177 = new List(num); CollectionsMarshal.SetCount(list177, num); - CollectionsMarshal.AsSpan(list177)[0] = "plogon_enjoyer"; + Span span177 = CollectionsMarshal.AsSpan(list177); + index = 0; + span177[index] = "plogon_enjoyer"; questRoot17.Author = list177; - num = 3; - List list178 = new List(num); - CollectionsMarshal.SetCount(list178, num); - Span span47 = CollectionsMarshal.AsSpan(list178); - ref QuestSequence reference122 = ref span47[0]; + index = 3; + List list178 = new List(index); + CollectionsMarshal.SetCount(list178, index); + Span span178 = CollectionsMarshal.AsSpan(list178); + num = 0; + ref QuestSequence reference122 = ref span178[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -204202,7 +247172,9 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + Span span179 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span179[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204221,16 +247193,18 @@ public static class AssemblyQuestLoader }; obj89.Steps = list179; reference122 = obj89; - ref QuestSequence reference123 = ref span47[1]; + num++; + ref QuestSequence reference123 = ref span178[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - Span span48 = CollectionsMarshal.AsSpan(list180); - span48[0] = new QuestStep(EInteractionType.Interact, 1025925u, new Vector3(-702.17444f, 127.5686f, 112.291016f), 622) + index2 = 3; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.Interact, 1025925u, new Vector3(-702.17444f, 127.5686f, 112.291016f), 622) { TargetTerritoryId = (ushort)622, Mount = true, @@ -204242,7 +247216,8 @@ public static class AssemblyQuestLoader } } }; - span48[1] = new QuestStep(EInteractionType.Interact, 1025797u, new Vector3(-364.7975f, 76.98169f, -579.2172f), 622) + num2++; + span180[num2] = new QuestStep(EInteractionType.Interact, 1025797u, new Vector3(-364.7975f, 76.98169f, -579.2172f), 622) { Mount = true, SkipConditions = new SkipConditions @@ -204253,7 +247228,8 @@ public static class AssemblyQuestLoader } } }; - span48[2] = new QuestStep(EInteractionType.Interact, 1025797u, new Vector3(-364.7975f, 76.98169f, -579.2172f), 622) + num2++; + span180[num2] = new QuestStep(EInteractionType.Interact, 1025797u, new Vector3(-364.7975f, 76.98169f, -579.2172f), 622) { Fly = true, SkipConditions = new SkipConditions @@ -204266,7 +247242,8 @@ public static class AssemblyQuestLoader }; obj90.Steps = list180; reference123 = obj90; - ref QuestSequence reference124 = ref span47[2]; + num++; + ref QuestSequence reference124 = ref span178[num]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue @@ -204274,62 +247251,79 @@ public static class AssemblyQuestLoader num2 = 5; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span49 = CollectionsMarshal.AsSpan(list181); - ref QuestStep reference125 = ref span49[0]; + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + ref QuestStep reference125 = ref span181[index2]; QuestStep questStep34 = new QuestStep(EInteractionType.Interact, 1025798u, new Vector3(-366.2318f, 76.98169f, -580.31586f), 622); num3 = 1; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - CollectionsMarshal.AsSpan(list182)[0] = EExtendedClassJob.DoH; + Span span182 = CollectionsMarshal.AsSpan(list182); + index3 = 0; + span182[index3] = EExtendedClassJob.DoH; questStep34.RequiredQuestAcceptedJob = list182; reference125 = questStep34; - ref QuestStep reference126 = ref span49[1]; + index2++; + ref QuestStep reference126 = ref span181[index2]; QuestStep obj92 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22736u, ItemCount = 2 }; - num3 = 1; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - CollectionsMarshal.AsSpan(list183)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list183 = new List(index3); + CollectionsMarshal.SetCount(list183, index3); + Span span183 = CollectionsMarshal.AsSpan(list183); + num3 = 0; + span183[num3] = EExtendedClassJob.DoH; obj92.RequiredQuestAcceptedJob = list183; reference126 = obj92; - ref QuestStep reference127 = ref span49[2]; + index2++; + ref QuestStep reference127 = ref span181[index2]; QuestStep questStep35 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list184 = new List(num3); CollectionsMarshal.SetCount(list184, num3); - CollectionsMarshal.AsSpan(list184)[0] = EExtendedClassJob.Miner; + Span span184 = CollectionsMarshal.AsSpan(list184); + index3 = 0; + span184[index3] = EExtendedClassJob.Miner; questStep35.RequiredQuestAcceptedJob = list184; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new GatheredItem + index3 = 1; + List list185 = new List(index3); + CollectionsMarshal.SetCount(list185, index3); + Span span185 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span185[num3] = new GatheredItem { ItemId = 22632u, ItemCount = 1 }; questStep35.ItemsToGather = list185; reference127 = questStep35; - ref QuestStep reference128 = ref span49[3]; + index2++; + ref QuestStep reference128 = ref span181[index2]; QuestStep questStep36 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = EExtendedClassJob.Botanist; + Span span186 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span186[index3] = EExtendedClassJob.Botanist; questStep36.RequiredQuestAcceptedJob = list186; - num3 = 1; - List list187 = new List(num3); - CollectionsMarshal.SetCount(list187, num3); - CollectionsMarshal.AsSpan(list187)[0] = new GatheredItem + index3 = 1; + List list187 = new List(index3); + CollectionsMarshal.SetCount(list187, index3); + Span span187 = CollectionsMarshal.AsSpan(list187); + num3 = 0; + span187[num3] = new GatheredItem { ItemId = 22658u, ItemCount = 1 }; questStep36.ItemsToGather = list187; reference128 = questStep36; - span49[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2++; + span181[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204355,21 +247349,26 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "plogon_enjoyer"; + Span span188 = CollectionsMarshal.AsSpan(list188); + index = 0; + span188[index] = "plogon_enjoyer"; questRoot18.Author = list188; - num = 3; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span50 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference129 = ref span50[0]; + index = 3; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + Span span189 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference129 = ref span189[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span190[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204388,7 +247387,8 @@ public static class AssemblyQuestLoader }; obj93.Steps = list190; reference129 = obj93; - ref QuestSequence reference130 = ref span50[1]; + num++; + ref QuestSequence reference130 = ref span189[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -204396,8 +247396,9 @@ public static class AssemblyQuestLoader num2 = 3; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - Span span51 = CollectionsMarshal.AsSpan(list191); - span51[0] = new QuestStep(EInteractionType.Interact, 1025925u, new Vector3(-702.17444f, 127.5686f, 112.291016f), 622) + Span span191 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span191[index2] = new QuestStep(EInteractionType.Interact, 1025925u, new Vector3(-702.17444f, 127.5686f, 112.291016f), 622) { TargetTerritoryId = (ushort)622, Mount = true, @@ -204409,7 +247410,8 @@ public static class AssemblyQuestLoader } } }; - span51[1] = new QuestStep(EInteractionType.Interact, 1025799u, new Vector3(-175.03625f, 66.81902f, -437.43042f), 622) + index2++; + span191[index2] = new QuestStep(EInteractionType.Interact, 1025799u, new Vector3(-175.03625f, 66.81902f, -437.43042f), 622) { Mount = true, SkipConditions = new SkipConditions @@ -204420,7 +247422,8 @@ public static class AssemblyQuestLoader } } }; - span51[2] = new QuestStep(EInteractionType.Interact, 1025799u, new Vector3(-175.03625f, 66.81902f, -437.43042f), 622) + index2++; + span191[index2] = new QuestStep(EInteractionType.Interact, 1025799u, new Vector3(-175.03625f, 66.81902f, -437.43042f), 622) { Fly = true, SkipConditions = new SkipConditions @@ -204433,70 +247436,88 @@ public static class AssemblyQuestLoader }; obj94.Steps = list191; reference130 = obj94; - ref QuestSequence reference131 = ref span50[2]; + num++; + ref QuestSequence reference131 = ref span189[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 5; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - Span span52 = CollectionsMarshal.AsSpan(list192); - ref QuestStep reference132 = ref span52[0]; + index2 = 5; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + ref QuestStep reference132 = ref span192[num2]; QuestStep questStep37 = new QuestStep(EInteractionType.Interact, 1025800u, new Vector3(-172.74744f, 67.39905f, -436.60645f), 622); num3 = 1; List list193 = new List(num3); CollectionsMarshal.SetCount(list193, num3); - CollectionsMarshal.AsSpan(list193)[0] = EExtendedClassJob.DoH; + Span span193 = CollectionsMarshal.AsSpan(list193); + index3 = 0; + span193[index3] = EExtendedClassJob.DoH; questStep37.RequiredCurrentJob = list193; reference132 = questStep37; - ref QuestStep reference133 = ref span52[1]; + num2++; + ref QuestStep reference133 = ref span192[num2]; QuestStep obj96 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22737u, ItemCount = 1 }; - num3 = 1; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - CollectionsMarshal.AsSpan(list194)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list194 = new List(index3); + CollectionsMarshal.SetCount(list194, index3); + Span span194 = CollectionsMarshal.AsSpan(list194); + num3 = 0; + span194[num3] = EExtendedClassJob.DoH; obj96.RequiredCurrentJob = list194; reference133 = obj96; - ref QuestStep reference134 = ref span52[2]; + num2++; + ref QuestStep reference134 = ref span192[num2]; QuestStep questStep38 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = EExtendedClassJob.Miner; + Span span195 = CollectionsMarshal.AsSpan(list195); + index3 = 0; + span195[index3] = EExtendedClassJob.Miner; questStep38.RequiredQuestAcceptedJob = list195; - num3 = 1; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = new GatheredItem + index3 = 1; + List list196 = new List(index3); + CollectionsMarshal.SetCount(list196, index3); + Span span196 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + span196[num3] = new GatheredItem { ItemId = 22633u, ItemCount = 2 }; questStep38.ItemsToGather = list196; reference134 = questStep38; - ref QuestStep reference135 = ref span52[3]; + num2++; + ref QuestStep reference135 = ref span192[num2]; QuestStep questStep39 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = EExtendedClassJob.Botanist; + Span span197 = CollectionsMarshal.AsSpan(list197); + index3 = 0; + span197[index3] = EExtendedClassJob.Botanist; questStep39.RequiredQuestAcceptedJob = list197; - num3 = 1; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = new GatheredItem + index3 = 1; + List list198 = new List(index3); + CollectionsMarshal.SetCount(list198, index3); + Span span198 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span198[num3] = new GatheredItem { ItemId = 22659u, ItemCount = 2 }; questStep39.ItemsToGather = list198; reference135 = questStep39; - span52[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + num2++; + span192[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204522,13 +247543,16 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "plogon_enjoyer"; + Span span199 = CollectionsMarshal.AsSpan(list199); + index = 0; + span199[index] = "plogon_enjoyer"; questRoot19.Author = list199; - num = 4; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span53 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference136 = ref span53[0]; + index = 4; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + Span span200 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference136 = ref span200[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -204536,7 +247560,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204555,27 +247581,31 @@ public static class AssemblyQuestLoader }; obj97.Steps = list201; reference136 = obj97; - ref QuestSequence reference137 = ref span53[1]; + num++; + ref QuestSequence reference137 = ref span200[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - Span span54 = CollectionsMarshal.AsSpan(list202); - span54[0] = new QuestStep(EInteractionType.Interact, 1025925u, new Vector3(-702.17444f, 127.5686f, 112.291016f), 622) + index2 = 2; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.Interact, 1025925u, new Vector3(-702.17444f, 127.5686f, 112.291016f), 622) { TargetTerritoryId = (ushort)622, Mount = true }; - span54[1] = new QuestStep(EInteractionType.Interact, 1025801u, new Vector3(-609.49115f, 41.834953f, 139.75732f), 622) + num2++; + span202[num2] = new QuestStep(EInteractionType.Interact, 1025801u, new Vector3(-609.49115f, 41.834953f, 139.75732f), 622) { Mount = true }; obj98.Steps = list202; reference137 = obj98; - ref QuestSequence reference138 = ref span53[2]; + num++; + ref QuestSequence reference138 = ref span200[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 @@ -204583,18 +247613,23 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1025802u, new Vector3(-232.89844f, 55.466682f, -329.15234f), 622); + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span203[index2] = new QuestStep(EInteractionType.Interact, 1025802u, new Vector3(-232.89844f, 55.466682f, -329.15234f), 622); obj99.Steps = list203; reference138 = obj99; - ref QuestSequence reference139 = ref span53[3]; + num++; + ref QuestSequence reference139 = ref span200[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204620,13 +247655,16 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "Theo"; + Span span205 = CollectionsMarshal.AsSpan(list205); + index = 0; + span205[index] = "Theo"; questRoot20.Author = list205; - num = 4; - List list206 = new List(num); - CollectionsMarshal.SetCount(list206, num); - Span span55 = CollectionsMarshal.AsSpan(list206); - ref QuestSequence reference140 = ref span55[0]; + index = 4; + List list206 = new List(index); + CollectionsMarshal.SetCount(list206, index); + Span span206 = CollectionsMarshal.AsSpan(list206); + num = 0; + ref QuestSequence reference140 = ref span206[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -204634,7 +247672,9 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + Span span207 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span207[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204653,15 +247693,18 @@ public static class AssemblyQuestLoader }; obj101.Steps = list207; reference140 = obj101; - ref QuestSequence reference141 = ref span55[1]; + num++; + ref QuestSequence reference141 = ref span206[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1025803u, new Vector3(275.59314f, 2.410636f, 279.31628f), 622) + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.Interact, 1025803u, new Vector3(275.59314f, 2.410636f, 279.31628f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -204680,7 +247723,8 @@ public static class AssemblyQuestLoader }; obj102.Steps = list208; reference141 = obj102; - ref QuestSequence reference142 = ref span55[2]; + num++; + ref QuestSequence reference142 = ref span206[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 @@ -204688,76 +247732,96 @@ public static class AssemblyQuestLoader num2 = 5; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span56 = CollectionsMarshal.AsSpan(list209); - ref QuestStep reference143 = ref span56[0]; + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + ref QuestStep reference143 = ref span209[index2]; QuestStep questStep40 = new QuestStep(EInteractionType.Interact, 1025804u, new Vector3(272.9076f, 2.39563f, 280.8423f), 622); num3 = 1; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = EExtendedClassJob.DoH; + Span span210 = CollectionsMarshal.AsSpan(list210); + index3 = 0; + span210[index3] = EExtendedClassJob.DoH; questStep40.RequiredQuestAcceptedJob = list210; reference143 = questStep40; - ref QuestStep reference144 = ref span56[1]; + index2++; + ref QuestStep reference144 = ref span209[index2]; QuestStep obj104 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22738u, ItemCount = 3 }; - num3 = 1; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list211 = new List(index3); + CollectionsMarshal.SetCount(list211, index3); + Span span211 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + span211[num3] = EExtendedClassJob.DoH; obj104.RequiredQuestAcceptedJob = list211; reference144 = obj104; - ref QuestStep reference145 = ref span56[2]; + index2++; + ref QuestStep reference145 = ref span209[index2]; QuestStep questStep41 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = EExtendedClassJob.Miner; + Span span212 = CollectionsMarshal.AsSpan(list212); + index3 = 0; + span212[index3] = EExtendedClassJob.Miner; questStep41.RequiredQuestAcceptedJob = list212; - num3 = 1; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = new GatheredItem + index3 = 1; + List list213 = new List(index3); + CollectionsMarshal.SetCount(list213, index3); + Span span213 = CollectionsMarshal.AsSpan(list213); + num3 = 0; + span213[num3] = new GatheredItem { ItemId = 22634u, ItemCount = 2 }; questStep41.ItemsToGather = list213; reference145 = questStep41; - ref QuestStep reference146 = ref span56[3]; + index2++; + ref QuestStep reference146 = ref span209[index2]; QuestStep questStep42 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list214 = new List(num3); CollectionsMarshal.SetCount(list214, num3); - CollectionsMarshal.AsSpan(list214)[0] = EExtendedClassJob.Botanist; + Span span214 = CollectionsMarshal.AsSpan(list214); + index3 = 0; + span214[index3] = EExtendedClassJob.Botanist; questStep42.RequiredQuestAcceptedJob = list214; - num3 = 1; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = new GatheredItem + index3 = 1; + List list215 = new List(index3); + CollectionsMarshal.SetCount(list215, index3); + Span span215 = CollectionsMarshal.AsSpan(list215); + num3 = 0; + span215[num3] = new GatheredItem { ItemId = 22660u, ItemCount = 2 }; questStep42.ItemsToGather = list215; reference146 = questStep42; - span56[4] = new QuestStep(EInteractionType.Interact, 1025803u, new Vector3(275.59314f, 2.410636f, 279.31628f), 622) + index2++; + span209[index2] = new QuestStep(EInteractionType.Interact, 1025803u, new Vector3(275.59314f, 2.410636f, 279.31628f), 622) { Fly = true }; obj103.Steps = list209; reference142 = obj103; - ref QuestSequence reference147 = ref span55[3]; + num++; + ref QuestSequence reference147 = ref span206[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + Span span216 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span216[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204783,13 +247847,16 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "Theo"; + Span span217 = CollectionsMarshal.AsSpan(list217); + index = 0; + span217[index] = "Theo"; questRoot21.Author = list217; - num = 3; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - Span span57 = CollectionsMarshal.AsSpan(list218); - ref QuestSequence reference148 = ref span57[0]; + index = 3; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + Span span218 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference148 = ref span218[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -204797,27 +247864,33 @@ public static class AssemblyQuestLoader num2 = 2; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span58 = CollectionsMarshal.AsSpan(list219); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); - span58[1] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + Span span219 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span219[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + index2++; + span219[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); obj106.Steps = list219; reference148 = obj106; - ref QuestSequence reference149 = ref span57[1]; + num++; + ref QuestSequence reference149 = ref span218[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1025805u, new Vector3(733.6079f, 0.64432836f, -164.78223f), 622) + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span220[num2] = new QuestStep(EInteractionType.Interact, 1025805u, new Vector3(733.6079f, 0.64432836f, -164.78223f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj107.Steps = list220; reference149 = obj107; - ref QuestSequence reference150 = ref span57[2]; + num++; + ref QuestSequence reference150 = ref span218[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue @@ -204825,62 +247898,79 @@ public static class AssemblyQuestLoader num2 = 5; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span59 = CollectionsMarshal.AsSpan(list221); - ref QuestStep reference151 = ref span59[0]; + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + ref QuestStep reference151 = ref span221[index2]; QuestStep questStep43 = new QuestStep(EInteractionType.Interact, 1025806u, new Vector3(733.15015f, 0.5340576f, -162.21869f), 622); num3 = 1; List list222 = new List(num3); CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = EExtendedClassJob.DoH; + Span span222 = CollectionsMarshal.AsSpan(list222); + index3 = 0; + span222[index3] = EExtendedClassJob.DoH; questStep43.RequiredQuestAcceptedJob = list222; reference151 = questStep43; - ref QuestStep reference152 = ref span59[1]; + index2++; + ref QuestStep reference152 = ref span221[index2]; QuestStep obj109 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22739u, ItemCount = 1 }; - num3 = 1; - List list223 = new List(num3); - CollectionsMarshal.SetCount(list223, num3); - CollectionsMarshal.AsSpan(list223)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list223 = new List(index3); + CollectionsMarshal.SetCount(list223, index3); + Span span223 = CollectionsMarshal.AsSpan(list223); + num3 = 0; + span223[num3] = EExtendedClassJob.DoH; obj109.RequiredQuestAcceptedJob = list223; reference152 = obj109; - ref QuestStep reference153 = ref span59[2]; + index2++; + ref QuestStep reference153 = ref span221[index2]; QuestStep questStep44 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = EExtendedClassJob.Miner; + Span span224 = CollectionsMarshal.AsSpan(list224); + index3 = 0; + span224[index3] = EExtendedClassJob.Miner; questStep44.RequiredQuestAcceptedJob = list224; - num3 = 1; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - CollectionsMarshal.AsSpan(list225)[0] = new GatheredItem + index3 = 1; + List list225 = new List(index3); + CollectionsMarshal.SetCount(list225, index3); + Span span225 = CollectionsMarshal.AsSpan(list225); + num3 = 0; + span225[num3] = new GatheredItem { ItemId = 22635u, ItemCount = 3 }; questStep44.ItemsToGather = list225; reference153 = questStep44; - ref QuestStep reference154 = ref span59[3]; + index2++; + ref QuestStep reference154 = ref span221[index2]; QuestStep questStep45 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = EExtendedClassJob.Botanist; + Span span226 = CollectionsMarshal.AsSpan(list226); + index3 = 0; + span226[index3] = EExtendedClassJob.Botanist; questStep45.RequiredQuestAcceptedJob = list226; - num3 = 1; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = new GatheredItem + index3 = 1; + List list227 = new List(index3); + CollectionsMarshal.SetCount(list227, index3); + Span span227 = CollectionsMarshal.AsSpan(list227); + num3 = 0; + span227[num3] = new GatheredItem { ItemId = 22661u, ItemCount = 3 }; questStep45.ItemsToGather = list227; reference154 = questStep45; - span59[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2++; + span221[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204906,23 +247996,28 @@ public static class AssemblyQuestLoader num = 2; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - Span span60 = CollectionsMarshal.AsSpan(list228); - span60[0] = "Theo"; - span60[1] = "pot0to"; + Span span228 = CollectionsMarshal.AsSpan(list228); + index = 0; + span228[index] = "Theo"; + index++; + span228[index] = "pot0to"; questRoot22.Author = list228; - num = 4; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - Span span61 = CollectionsMarshal.AsSpan(list229); - ref QuestSequence reference155 = ref span61[0]; + index = 4; + List list229 = new List(index); + CollectionsMarshal.SetCount(list229, index); + Span span229 = CollectionsMarshal.AsSpan(list229); + num = 0; + ref QuestSequence reference155 = ref span229[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span230[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -204941,7 +248036,8 @@ public static class AssemblyQuestLoader }; obj110.Steps = list230; reference155 = obj110; - ref QuestSequence reference156 = ref span61[1]; + num++; + ref QuestSequence reference156 = ref span229[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 @@ -204949,19 +248045,23 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1025610u, new Vector3(-739.43695f, 127.45824f, 90.62329f), 622); + Span span231 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span231[index2] = new QuestStep(EInteractionType.Interact, 1025610u, new Vector3(-739.43695f, 127.45824f, 90.62329f), 622); obj111.Steps = list231; reference156 = obj111; - ref QuestSequence reference157 = ref span61[2]; + num++; + ref QuestSequence reference157 = ref span229[num]; QuestSequence obj112 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - Span span62 = CollectionsMarshal.AsSpan(list232); - ref QuestStep reference158 = ref span62[0]; + index2 = 4; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + ref QuestStep reference158 = ref span232[num2]; QuestStep obj113 = new QuestStep(EInteractionType.Action, 2009501u, new Vector3(-73.80792f, -3.7385254f, 345.3269f), 622) { Fly = true, @@ -204971,51 +248071,71 @@ public static class AssemblyQuestLoader num3 = 6; List> list233 = new List>(num3); CollectionsMarshal.SetCount(list233, num3); - Span> span63 = CollectionsMarshal.AsSpan(list233); - span63[0] = null; - span63[1] = null; - ref List reference159 = ref span63[2]; + Span> span233 = CollectionsMarshal.AsSpan(list233); + index3 = 0; + span233[index3] = null; + index3++; + span233[index3] = null; + index3++; + ref List reference159 = ref span233[index3]; int num4 = 3; List list234 = new List(num4); CollectionsMarshal.SetCount(list234, num4); - Span span64 = CollectionsMarshal.AsSpan(list234); - span64[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span64[1] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); - span64[2] = new QuestWorkValue(0, (byte)6, EQuestWorkMode.Bitwise); + Span span234 = CollectionsMarshal.AsSpan(list234); + int num5 = 0; + span234[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span234[num5] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + num5++; + span234[num5] = new QuestWorkValue(0, (byte)6, EQuestWorkMode.Bitwise); reference159 = list234; - span63[3] = null; - span63[4] = null; - span63[5] = null; + index3++; + span233[index3] = null; + index3++; + span233[index3] = null; + index3++; + span233[index3] = null; obj113.RequiredQuestVariables = list233; reference158 = obj113; - ref QuestStep reference160 = ref span62[1]; + num2++; + ref QuestStep reference160 = ref span232[num2]; QuestStep obj114 = new QuestStep(EInteractionType.Action, 2009542u, new Vector3(20.736938f, -0.015319824f, 559.9298f), 622) { Fly = true, Land = true, Action = EAction.Wasshoi }; - num3 = 6; - List> list235 = new List>(num3); - CollectionsMarshal.SetCount(list235, num3); - Span> span65 = CollectionsMarshal.AsSpan(list235); - span65[0] = null; - span65[1] = null; - ref List reference161 = ref span65[2]; - num4 = 3; - List list236 = new List(num4); - CollectionsMarshal.SetCount(list236, num4); - Span span66 = CollectionsMarshal.AsSpan(list236); - span66[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span66[1] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span66[2] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + index3 = 6; + List> list235 = new List>(index3); + CollectionsMarshal.SetCount(list235, index3); + Span> span235 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + span235[num3] = null; + num3++; + span235[num3] = null; + num3++; + ref List reference161 = ref span235[num3]; + num5 = 3; + List list236 = new List(num5); + CollectionsMarshal.SetCount(list236, num5); + Span span236 = CollectionsMarshal.AsSpan(list236); + num4 = 0; + span236[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span236[num4] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num4++; + span236[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); reference161 = list236; - span65[3] = null; - span65[4] = null; - span65[5] = null; + num3++; + span235[num3] = null; + num3++; + span235[num3] = null; + num3++; + span235[num3] = null; obj114.RequiredQuestVariables = list235; reference160 = obj114; - ref QuestStep reference162 = ref span62[2]; + num2++; + ref QuestStep reference162 = ref span232[num2]; QuestStep obj115 = new QuestStep(EInteractionType.Action, 2009502u, new Vector3(95.47571f, -12.619263f, 699.1836f), 622) { Fly = true, @@ -205025,53 +248145,73 @@ public static class AssemblyQuestLoader num3 = 6; List> list237 = new List>(num3); CollectionsMarshal.SetCount(list237, num3); - Span> span67 = CollectionsMarshal.AsSpan(list237); - span67[0] = null; - span67[1] = null; - ref List reference163 = ref span67[2]; + Span> span237 = CollectionsMarshal.AsSpan(list237); + index3 = 0; + span237[index3] = null; + index3++; + span237[index3] = null; + index3++; + ref List reference163 = ref span237[index3]; num4 = 3; List list238 = new List(num4); CollectionsMarshal.SetCount(list238, num4); - Span span68 = CollectionsMarshal.AsSpan(list238); - span68[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span68[1] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); - span68[2] = new QuestWorkValue(0, (byte)6, EQuestWorkMode.Bitwise); + Span span238 = CollectionsMarshal.AsSpan(list238); + num5 = 0; + span238[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span238[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + num5++; + span238[num5] = new QuestWorkValue(0, (byte)6, EQuestWorkMode.Bitwise); reference163 = list238; - span67[3] = null; - span67[4] = null; - span67[5] = null; + index3++; + span237[index3] = null; + index3++; + span237[index3] = null; + index3++; + span237[index3] = null; obj115.RequiredQuestVariables = list237; reference162 = obj115; - ref QuestStep reference164 = ref span62[3]; + num2++; + ref QuestStep reference164 = ref span232[num2]; QuestStep obj116 = new QuestStep(EInteractionType.Action, 2009500u, new Vector3(-701.2894f, 6.9122925f, 569.9701f), 622) { Fly = true, Land = true, Action = EAction.Wasshoi }; - num3 = 6; - List> list239 = new List>(num3); - CollectionsMarshal.SetCount(list239, num3); - Span> span69 = CollectionsMarshal.AsSpan(list239); - span69[0] = null; - span69[1] = null; - ref List reference165 = ref span69[2]; - num4 = 3; - List list240 = new List(num4); - CollectionsMarshal.SetCount(list240, num4); - Span span70 = CollectionsMarshal.AsSpan(list240); - span70[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span70[1] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span70[2] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); + index3 = 6; + List> list239 = new List>(index3); + CollectionsMarshal.SetCount(list239, index3); + Span> span239 = CollectionsMarshal.AsSpan(list239); + num3 = 0; + span239[num3] = null; + num3++; + span239[num3] = null; + num3++; + ref List reference165 = ref span239[num3]; + num5 = 3; + List list240 = new List(num5); + CollectionsMarshal.SetCount(list240, num5); + Span span240 = CollectionsMarshal.AsSpan(list240); + num4 = 0; + span240[num4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span240[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span240[num4] = new QuestWorkValue(0, (byte)5, EQuestWorkMode.Bitwise); reference165 = list240; - span69[3] = null; - span69[4] = null; - span69[5] = null; + num3++; + span239[num3] = null; + num3++; + span239[num3] = null; + num3++; + span239[num3] = null; obj116.RequiredQuestVariables = list239; reference164 = obj116; obj112.Steps = list232; reference157 = obj112; - ref QuestSequence reference166 = ref span61[3]; + num++; + ref QuestSequence reference166 = ref span229[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -205079,12 +248219,14 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span71 = CollectionsMarshal.AsSpan(list241); - span71[0] = new QuestStep(EInteractionType.None, null, null, 622) + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.None, null, null, 622) { Mount = false }; - span71[1] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2++; + span241[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205110,21 +248252,26 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "Theo"; + Span span242 = CollectionsMarshal.AsSpan(list242); + index = 0; + span242[index] = "Theo"; questRoot23.Author = list242; - num = 5; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span72 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference167 = ref span72[0]; + index = 5; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + Span span243 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference167 = ref span243[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205143,7 +248290,8 @@ public static class AssemblyQuestLoader }; obj118.Steps = list244; reference167 = obj118; - ref QuestSequence reference168 = ref span72[1]; + num++; + ref QuestSequence reference168 = ref span243[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -205151,7 +248299,9 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1025814u, new Vector3(584.4967f, -12.093235f, 225.57397f), 622) + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.Interact, 1025814u, new Vector3(584.4967f, -12.093235f, 225.57397f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -205170,76 +248320,95 @@ public static class AssemblyQuestLoader }; obj119.Steps = list245; reference168 = obj119; - ref QuestSequence reference169 = ref span72[2]; + num++; + ref QuestSequence reference169 = ref span243[num]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span73 = CollectionsMarshal.AsSpan(list246); - ref QuestStep reference170 = ref span73[0]; + index2 = 5; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + ref QuestStep reference170 = ref span246[num2]; QuestStep questStep46 = new QuestStep(EInteractionType.Interact, 1025815u, new Vector3(580.74304f, -12.40564f, 224.56702f), 622); num3 = 1; List list247 = new List(num3); CollectionsMarshal.SetCount(list247, num3); - CollectionsMarshal.AsSpan(list247)[0] = EExtendedClassJob.DoH; + Span span247 = CollectionsMarshal.AsSpan(list247); + index3 = 0; + span247[index3] = EExtendedClassJob.DoH; questStep46.RequiredQuestAcceptedJob = list247; reference170 = questStep46; - ref QuestStep reference171 = ref span73[1]; + num2++; + ref QuestStep reference171 = ref span246[num2]; QuestStep obj121 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22740u, ItemCount = 2 }; - num3 = 1; - List list248 = new List(num3); - CollectionsMarshal.SetCount(list248, num3); - CollectionsMarshal.AsSpan(list248)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list248 = new List(index3); + CollectionsMarshal.SetCount(list248, index3); + Span span248 = CollectionsMarshal.AsSpan(list248); + num3 = 0; + span248[num3] = EExtendedClassJob.DoH; obj121.RequiredQuestAcceptedJob = list248; reference171 = obj121; - ref QuestStep reference172 = ref span73[2]; + num2++; + ref QuestStep reference172 = ref span246[num2]; QuestStep questStep47 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list249 = new List(num3); CollectionsMarshal.SetCount(list249, num3); - CollectionsMarshal.AsSpan(list249)[0] = EExtendedClassJob.Miner; + Span span249 = CollectionsMarshal.AsSpan(list249); + index3 = 0; + span249[index3] = EExtendedClassJob.Miner; questStep47.RequiredQuestAcceptedJob = list249; - num3 = 1; - List list250 = new List(num3); - CollectionsMarshal.SetCount(list250, num3); - CollectionsMarshal.AsSpan(list250)[0] = new GatheredItem + index3 = 1; + List list250 = new List(index3); + CollectionsMarshal.SetCount(list250, index3); + Span span250 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + span250[num3] = new GatheredItem { ItemId = 22636u, ItemCount = 2 }; questStep47.ItemsToGather = list250; reference172 = questStep47; - ref QuestStep reference173 = ref span73[3]; + num2++; + ref QuestStep reference173 = ref span246[num2]; QuestStep questStep48 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list251 = new List(num3); CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = EExtendedClassJob.Botanist; + Span span251 = CollectionsMarshal.AsSpan(list251); + index3 = 0; + span251[index3] = EExtendedClassJob.Botanist; questStep48.RequiredQuestAcceptedJob = list251; - num3 = 1; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - CollectionsMarshal.AsSpan(list252)[0] = new GatheredItem + index3 = 1; + List list252 = new List(index3); + CollectionsMarshal.SetCount(list252, index3); + Span span252 = CollectionsMarshal.AsSpan(list252); + num3 = 0; + span252[num3] = new GatheredItem { ItemId = 22662u, ItemCount = 2 }; questStep48.ItemsToGather = list252; reference173 = questStep48; - span73[4] = new QuestStep(EInteractionType.Interact, 1025814u, new Vector3(584.4967f, -12.093235f, 225.57397f), 622) + num2++; + span246[num2] = new QuestStep(EInteractionType.Interact, 1025814u, new Vector3(584.4967f, -12.093235f, 225.57397f), 622) { Fly = true }; obj120.Steps = list246; reference169 = obj120; - ref QuestSequence reference174 = ref span72[3]; + num++; + ref QuestSequence reference174 = ref span243[num]; QuestSequence obj122 = new QuestSequence { Sequence = 3 @@ -205247,21 +248416,26 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1019353u, new Vector3(544.0298f, -19.505642f, 391.68372f), 622) + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.Interact, 1019353u, new Vector3(544.0298f, -19.505642f, 391.68372f), 622) { Fly = true }; obj122.Steps = list253; reference174 = obj122; - ref QuestSequence reference175 = ref span72[4]; + num++; + ref QuestSequence reference175 = ref span243[num]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205287,13 +248461,16 @@ public static class AssemblyQuestLoader num = 1; List list255 = new List(num); CollectionsMarshal.SetCount(list255, num); - CollectionsMarshal.AsSpan(list255)[0] = "Theo"; + Span span255 = CollectionsMarshal.AsSpan(list255); + index = 0; + span255[index] = "Theo"; questRoot24.Author = list255; - num = 3; - List list256 = new List(num); - CollectionsMarshal.SetCount(list256, num); - Span span74 = CollectionsMarshal.AsSpan(list256); - ref QuestSequence reference176 = ref span74[0]; + index = 3; + List list256 = new List(index); + CollectionsMarshal.SetCount(list256, index); + Span span256 = CollectionsMarshal.AsSpan(list256); + num = 0; + ref QuestSequence reference176 = ref span256[num]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -205301,7 +248478,9 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205320,15 +248499,18 @@ public static class AssemblyQuestLoader }; obj124.Steps = list257; reference176 = obj124; - ref QuestSequence reference177 = ref span74[1]; + num++; + ref QuestSequence reference177 = ref span256[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1025817u, new Vector3(544.9148f, 10.034876f, -193.40814f), 622) + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span258[num2] = new QuestStep(EInteractionType.Interact, 1025817u, new Vector3(544.9148f, 10.034876f, -193.40814f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -205347,7 +248529,8 @@ public static class AssemblyQuestLoader }; obj125.Steps = list258; reference177 = obj125; - ref QuestSequence reference178 = ref span74[2]; + num++; + ref QuestSequence reference178 = ref span256[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -205355,62 +248538,79 @@ public static class AssemblyQuestLoader num2 = 5; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span75 = CollectionsMarshal.AsSpan(list259); - ref QuestStep reference179 = ref span75[0]; + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + ref QuestStep reference179 = ref span259[index2]; QuestStep questStep49 = new QuestStep(EInteractionType.Interact, 1025818u, new Vector3(543.93823f, 9.964111f, -190.53949f), 622); num3 = 1; List list260 = new List(num3); CollectionsMarshal.SetCount(list260, num3); - CollectionsMarshal.AsSpan(list260)[0] = EExtendedClassJob.DoH; + Span span260 = CollectionsMarshal.AsSpan(list260); + index3 = 0; + span260[index3] = EExtendedClassJob.DoH; questStep49.RequiredQuestAcceptedJob = list260; reference179 = questStep49; - ref QuestStep reference180 = ref span75[1]; + index2++; + ref QuestStep reference180 = ref span259[index2]; QuestStep obj127 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22741u, ItemCount = 1 }; - num3 = 1; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - CollectionsMarshal.AsSpan(list261)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list261 = new List(index3); + CollectionsMarshal.SetCount(list261, index3); + Span span261 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span261[num3] = EExtendedClassJob.DoH; obj127.RequiredQuestAcceptedJob = list261; reference180 = obj127; - ref QuestStep reference181 = ref span75[2]; + index2++; + ref QuestStep reference181 = ref span259[index2]; QuestStep questStep50 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list262 = new List(num3); CollectionsMarshal.SetCount(list262, num3); - CollectionsMarshal.AsSpan(list262)[0] = EExtendedClassJob.Miner; + Span span262 = CollectionsMarshal.AsSpan(list262); + index3 = 0; + span262[index3] = EExtendedClassJob.Miner; questStep50.RequiredQuestAcceptedJob = list262; - num3 = 1; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = new GatheredItem + index3 = 1; + List list263 = new List(index3); + CollectionsMarshal.SetCount(list263, index3); + Span span263 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span263[num3] = new GatheredItem { ItemId = 22637u, ItemCount = 1 }; questStep50.ItemsToGather = list263; reference181 = questStep50; - ref QuestStep reference182 = ref span75[3]; + index2++; + ref QuestStep reference182 = ref span259[index2]; QuestStep questStep51 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list264 = new List(num3); CollectionsMarshal.SetCount(list264, num3); - CollectionsMarshal.AsSpan(list264)[0] = EExtendedClassJob.Botanist; + Span span264 = CollectionsMarshal.AsSpan(list264); + index3 = 0; + span264[index3] = EExtendedClassJob.Botanist; questStep51.RequiredQuestAcceptedJob = list264; - num3 = 1; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - CollectionsMarshal.AsSpan(list265)[0] = new GatheredItem + index3 = 1; + List list265 = new List(index3); + CollectionsMarshal.SetCount(list265, index3); + Span span265 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span265[num3] = new GatheredItem { ItemId = 22663u, ItemCount = 1 }; questStep51.ItemsToGather = list265; reference182 = questStep51; - span75[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2++; + span259[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205436,21 +248636,26 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "Theo"; + Span span266 = CollectionsMarshal.AsSpan(list266); + index = 0; + span266[index] = "Theo"; questRoot25.Author = list266; - num = 4; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span76 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference183 = ref span76[0]; + index = 4; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + Span span267 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference183 = ref span267[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + Span span268 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span268[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205469,7 +248674,8 @@ public static class AssemblyQuestLoader }; obj128.Steps = list268; reference183 = obj128; - ref QuestSequence reference184 = ref span76[1]; + num++; + ref QuestSequence reference184 = ref span267[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -205477,23 +248683,30 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1025819u, new Vector3(-815.4269f, 127.910385f, 55.77173f), 622); + Span span269 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span269[index2] = new QuestStep(EInteractionType.Interact, 1025819u, new Vector3(-815.4269f, 127.910385f, 55.77173f), 622); obj129.Steps = list269; reference184 = obj129; - ref QuestSequence reference185 = ref span76[2]; + num++; + ref QuestSequence reference185 = ref span267[num]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - ref QuestStep reference186 = ref CollectionsMarshal.AsSpan(list270)[0]; + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + Span span270 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + ref QuestStep reference186 = ref span270[num2]; QuestStep questStep52 = new QuestStep(EInteractionType.Interact, 1025819u, new Vector3(-815.4269f, 127.910385f, 55.77173f), 622); num3 = 1; List list271 = new List(num3); CollectionsMarshal.SetCount(list271, num3); - CollectionsMarshal.AsSpan(list271)[0] = new DialogueChoice + Span span271 = CollectionsMarshal.AsSpan(list271); + index3 = 0; + span271[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANNAM602_03124_Q1_000_000"), @@ -205503,7 +248716,8 @@ public static class AssemblyQuestLoader reference186 = questStep52; obj130.Steps = list270; reference185 = obj130; - ref QuestSequence reference187 = ref span76[3]; + num++; + ref QuestSequence reference187 = ref span267[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -205511,7 +248725,9 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205537,21 +248753,26 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "Theo"; + Span span273 = CollectionsMarshal.AsSpan(list273); + index = 0; + span273[index] = "Theo"; questRoot26.Author = list273; - num = 5; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span77 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference188 = ref span77[0]; + index = 5; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + Span span274 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference188 = ref span274[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205570,7 +248791,8 @@ public static class AssemblyQuestLoader }; obj132.Steps = list275; reference188 = obj132; - ref QuestSequence reference189 = ref span77[1]; + num++; + ref QuestSequence reference189 = ref span274[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -205578,7 +248800,9 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1025820u, new Vector3(94.2854f, 116.043f, 143.48047f), 622) + Span span276 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span276[index2] = new QuestStep(EInteractionType.Interact, 1025820u, new Vector3(94.2854f, 116.043f, 143.48047f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -205597,24 +248821,29 @@ public static class AssemblyQuestLoader }; obj133.Steps = list276; reference189 = obj133; - ref QuestSequence reference190 = ref span77[2]; + num++; + ref QuestSequence reference190 = ref span274[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - Span span78 = CollectionsMarshal.AsSpan(list277); - ref QuestStep reference191 = ref span78[0]; + index2 = 5; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + ref QuestStep reference191 = ref span277[num2]; QuestStep questStep53 = new QuestStep(EInteractionType.Interact, 1025821u, new Vector3(95.26196f, 116.01428f, 141.74097f), 622); - num3 = 1; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - CollectionsMarshal.AsSpan(list278)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list278 = new List(index3); + CollectionsMarshal.SetCount(list278, index3); + Span span278 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span278[num3] = EExtendedClassJob.DoH; questStep53.RequiredQuestAcceptedJob = list278; reference191 = questStep53; - ref QuestStep reference192 = ref span78[1]; + num2++; + ref QuestStep reference192 = ref span277[num2]; QuestStep obj135 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22742u, @@ -205623,50 +248852,64 @@ public static class AssemblyQuestLoader num3 = 1; List list279 = new List(num3); CollectionsMarshal.SetCount(list279, num3); - CollectionsMarshal.AsSpan(list279)[0] = EExtendedClassJob.DoH; + Span span279 = CollectionsMarshal.AsSpan(list279); + index3 = 0; + span279[index3] = EExtendedClassJob.DoH; obj135.RequiredQuestAcceptedJob = list279; reference192 = obj135; - ref QuestStep reference193 = ref span78[2]; + num2++; + ref QuestStep reference193 = ref span277[num2]; QuestStep questStep54 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list280 = new List(num3); - CollectionsMarshal.SetCount(list280, num3); - CollectionsMarshal.AsSpan(list280)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list280 = new List(index3); + CollectionsMarshal.SetCount(list280, index3); + Span span280 = CollectionsMarshal.AsSpan(list280); + num3 = 0; + span280[num3] = EExtendedClassJob.Miner; questStep54.RequiredQuestAcceptedJob = list280; num3 = 1; List list281 = new List(num3); CollectionsMarshal.SetCount(list281, num3); - CollectionsMarshal.AsSpan(list281)[0] = new GatheredItem + Span span281 = CollectionsMarshal.AsSpan(list281); + index3 = 0; + span281[index3] = new GatheredItem { ItemId = 22638u, ItemCount = 1 }; questStep54.ItemsToGather = list281; reference193 = questStep54; - ref QuestStep reference194 = ref span78[3]; + num2++; + ref QuestStep reference194 = ref span277[num2]; QuestStep questStep55 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list282 = new List(index3); + CollectionsMarshal.SetCount(list282, index3); + Span span282 = CollectionsMarshal.AsSpan(list282); + num3 = 0; + span282[num3] = EExtendedClassJob.Botanist; questStep55.RequiredQuestAcceptedJob = list282; num3 = 1; List list283 = new List(num3); CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = new GatheredItem + Span span283 = CollectionsMarshal.AsSpan(list283); + index3 = 0; + span283[index3] = new GatheredItem { ItemId = 22664u, ItemCount = 1 }; questStep55.ItemsToGather = list283; reference194 = questStep55; - span78[4] = new QuestStep(EInteractionType.Interact, 1025820u, new Vector3(94.2854f, 116.043f, 143.48047f), 622) + num2++; + span277[num2] = new QuestStep(EInteractionType.Interact, 1025820u, new Vector3(94.2854f, 116.043f, 143.48047f), 622) { Fly = true }; obj134.Steps = list277; reference190 = obj134; - ref QuestSequence reference195 = ref span77[3]; + num++; + ref QuestSequence reference195 = ref span274[num]; QuestSequence obj136 = new QuestSequence { Sequence = 3 @@ -205674,30 +248917,40 @@ public static class AssemblyQuestLoader num2 = 3; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span79 = CollectionsMarshal.AsSpan(list284); - ref QuestStep reference196 = ref span79[0]; + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + ref QuestStep reference196 = ref span284[index2]; QuestStep obj137 = new QuestStep(EInteractionType.Interact, 1025823u, new Vector3(-0.19836426f, 2.1311574f, 224.07861f), 622) { Fly = true }; - num3 = 6; - List> list285 = new List>(num3); - CollectionsMarshal.SetCount(list285, num3); - Span> span80 = CollectionsMarshal.AsSpan(list285); - span80[0] = null; - span80[1] = null; - ref List reference197 = ref span80[2]; + index3 = 6; + List> list285 = new List>(index3); + CollectionsMarshal.SetCount(list285, index3); + Span> span285 = CollectionsMarshal.AsSpan(list285); + num3 = 0; + span285[num3] = null; + num3++; + span285[num3] = null; + num3++; + ref List reference197 = ref span285[num3]; num4 = 1; List list286 = new List(num4); CollectionsMarshal.SetCount(list286, num4); - CollectionsMarshal.AsSpan(list286)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span286 = CollectionsMarshal.AsSpan(list286); + num5 = 0; + span286[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference197 = list286; - span80[3] = null; - span80[4] = null; - span80[5] = null; + num3++; + span285[num3] = null; + num3++; + span285[num3] = null; + num3++; + span285[num3] = null; obj137.RequiredQuestVariables = list285; reference196 = obj137; - ref QuestStep reference198 = ref span79[1]; + index2++; + ref QuestStep reference198 = ref span284[index2]; QuestStep obj138 = new QuestStep(EInteractionType.Interact, 1021491u, new Vector3(199.38953f, 1.9158756f, 41.153564f), 622) { Fly = true @@ -205705,53 +248958,73 @@ public static class AssemblyQuestLoader num3 = 6; List> list287 = new List>(num3); CollectionsMarshal.SetCount(list287, num3); - Span> span81 = CollectionsMarshal.AsSpan(list287); - span81[0] = null; - span81[1] = null; - ref List reference199 = ref span81[2]; - num4 = 1; - List list288 = new List(num4); - CollectionsMarshal.SetCount(list288, num4); - CollectionsMarshal.AsSpan(list288)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span> span287 = CollectionsMarshal.AsSpan(list287); + index3 = 0; + span287[index3] = null; + index3++; + span287[index3] = null; + index3++; + ref List reference199 = ref span287[index3]; + num5 = 1; + List list288 = new List(num5); + CollectionsMarshal.SetCount(list288, num5); + Span span288 = CollectionsMarshal.AsSpan(list288); + num4 = 0; + span288[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference199 = list288; - span81[3] = null; - span81[4] = null; - span81[5] = null; + index3++; + span287[index3] = null; + index3++; + span287[index3] = null; + index3++; + span287[index3] = null; obj138.RequiredQuestVariables = list287; reference198 = obj138; - ref QuestStep reference200 = ref span79[2]; + index2++; + ref QuestStep reference200 = ref span284[index2]; QuestStep obj139 = new QuestStep(EInteractionType.Interact, 1025835u, new Vector3(-145.92206f, 1.8999462f, 239.73438f), 622) { Fly = true }; - num3 = 6; - List> list289 = new List>(num3); - CollectionsMarshal.SetCount(list289, num3); - Span> span82 = CollectionsMarshal.AsSpan(list289); - span82[0] = null; - span82[1] = null; - ref List reference201 = ref span82[2]; + index3 = 6; + List> list289 = new List>(index3); + CollectionsMarshal.SetCount(list289, index3); + Span> span289 = CollectionsMarshal.AsSpan(list289); + num3 = 0; + span289[num3] = null; + num3++; + span289[num3] = null; + num3++; + ref List reference201 = ref span289[num3]; num4 = 1; List list290 = new List(num4); CollectionsMarshal.SetCount(list290, num4); - CollectionsMarshal.AsSpan(list290)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + Span span290 = CollectionsMarshal.AsSpan(list290); + num5 = 0; + span290[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference201 = list290; - span82[3] = null; - span82[4] = null; - span82[5] = null; + num3++; + span289[num3] = null; + num3++; + span289[num3] = null; + num3++; + span289[num3] = null; obj139.RequiredQuestVariables = list289; reference200 = obj139; obj136.Steps = list284; reference195 = obj136; - ref QuestSequence reference202 = ref span77[4]; + num++; + ref QuestSequence reference202 = ref span274[num]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + Span span291 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span291[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205777,13 +249050,16 @@ public static class AssemblyQuestLoader num = 1; List list292 = new List(num); CollectionsMarshal.SetCount(list292, num); - CollectionsMarshal.AsSpan(list292)[0] = "Censored"; + Span span292 = CollectionsMarshal.AsSpan(list292); + index = 0; + span292[index] = "Censored"; questRoot27.Author = list292; - num = 3; - List list293 = new List(num); - CollectionsMarshal.SetCount(list293, num); - Span span83 = CollectionsMarshal.AsSpan(list293); - ref QuestSequence reference203 = ref span83[0]; + index = 3; + List list293 = new List(index); + CollectionsMarshal.SetCount(list293, index); + Span span293 = CollectionsMarshal.AsSpan(list293); + num = 0; + ref QuestSequence reference203 = ref span293[num]; QuestSequence obj141 = new QuestSequence { Sequence = 0 @@ -205791,7 +249067,9 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + Span span294 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span294[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -205809,16 +249087,18 @@ public static class AssemblyQuestLoader }; obj141.Steps = list294; reference203 = obj141; - ref QuestSequence reference204 = ref span83[1]; + num++; + ref QuestSequence reference204 = ref span293[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - Span span84 = CollectionsMarshal.AsSpan(list295); - ref QuestStep reference205 = ref span84[0]; + index2 = 3; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + Span span295 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + ref QuestStep reference205 = ref span295[num2]; QuestStep obj143 = new QuestStep(EInteractionType.UseItem, 1025827u, new Vector3(435.32446f, 5.107297f, 18.234497f), 622) { Fly = true, @@ -205840,44 +249120,62 @@ public static class AssemblyQuestLoader num3 = 6; List> list296 = new List>(num3); CollectionsMarshal.SetCount(list296, num3); - Span> span85 = CollectionsMarshal.AsSpan(list296); - span85[0] = null; - ref List reference206 = ref span85[1]; - num4 = 1; - List list297 = new List(num4); - CollectionsMarshal.SetCount(list297, num4); - CollectionsMarshal.AsSpan(list297)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + Span> span296 = CollectionsMarshal.AsSpan(list296); + index3 = 0; + span296[index3] = null; + index3++; + ref List reference206 = ref span296[index3]; + num5 = 1; + List list297 = new List(num5); + CollectionsMarshal.SetCount(list297, num5); + Span span297 = CollectionsMarshal.AsSpan(list297); + num4 = 0; + span297[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference206 = list297; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = null; + index3++; + span296[index3] = null; + index3++; + span296[index3] = null; + index3++; + span296[index3] = null; + index3++; + span296[index3] = null; obj143.RequiredQuestVariables = list296; reference205 = obj143; - ref QuestStep reference207 = ref span84[1]; + num2++; + ref QuestStep reference207 = ref span295[num2]; QuestStep obj144 = new QuestStep(EInteractionType.UseItem, 1025825u, new Vector3(432.02856f, 20.099669f, -22.38501f), 622) { Fly = true, ItemId = 2002479u }; - num3 = 6; - List> list298 = new List>(num3); - CollectionsMarshal.SetCount(list298, num3); - Span> span86 = CollectionsMarshal.AsSpan(list298); - span86[0] = null; - ref List reference208 = ref span86[1]; + index3 = 6; + List> list298 = new List>(index3); + CollectionsMarshal.SetCount(list298, index3); + Span> span298 = CollectionsMarshal.AsSpan(list298); + num3 = 0; + span298[num3] = null; + num3++; + ref List reference208 = ref span298[num3]; num4 = 1; List list299 = new List(num4); CollectionsMarshal.SetCount(list299, num4); - CollectionsMarshal.AsSpan(list299)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span299 = CollectionsMarshal.AsSpan(list299); + num5 = 0; + span299[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference208 = list299; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = null; + num3++; + span298[num3] = null; + num3++; + span298[num3] = null; + num3++; + span298[num3] = null; + num3++; + span298[num3] = null; obj144.RequiredQuestVariables = list298; reference207 = obj144; - ref QuestStep reference209 = ref span84[2]; + num2++; + ref QuestStep reference209 = ref span295[num2]; QuestStep obj145 = new QuestStep(EInteractionType.UseItem, 1025826u, new Vector3(411.58154f, 2.814907f, -44.327515f), 622) { Fly = true, @@ -205886,23 +249184,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list300 = new List>(num3); CollectionsMarshal.SetCount(list300, num3); - Span> span87 = CollectionsMarshal.AsSpan(list300); - span87[0] = null; - ref List reference210 = ref span87[1]; - num4 = 1; - List list301 = new List(num4); - CollectionsMarshal.SetCount(list301, num4); - CollectionsMarshal.AsSpan(list301)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span> span300 = CollectionsMarshal.AsSpan(list300); + index3 = 0; + span300[index3] = null; + index3++; + ref List reference210 = ref span300[index3]; + num5 = 1; + List list301 = new List(num5); + CollectionsMarshal.SetCount(list301, num5); + Span span301 = CollectionsMarshal.AsSpan(list301); + num4 = 0; + span301[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference210 = list301; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = null; + index3++; + span300[index3] = null; + index3++; + span300[index3] = null; + index3++; + span300[index3] = null; + index3++; + span300[index3] = null; obj145.RequiredQuestVariables = list300; reference209 = obj145; obj142.Steps = list295; reference204 = obj142; - ref QuestSequence reference211 = ref span83[2]; + num++; + ref QuestSequence reference211 = ref span293[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -205910,7 +249217,9 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + Span span302 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span302[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205936,21 +249245,26 @@ public static class AssemblyQuestLoader num = 1; List list303 = new List(num); CollectionsMarshal.SetCount(list303, num); - CollectionsMarshal.AsSpan(list303)[0] = "Theo"; + Span span303 = CollectionsMarshal.AsSpan(list303); + index = 0; + span303[index] = "Theo"; questRoot28.Author = list303; - num = 4; - List list304 = new List(num); - CollectionsMarshal.SetCount(list304, num); - Span span88 = CollectionsMarshal.AsSpan(list304); - ref QuestSequence reference212 = ref span88[0]; + index = 4; + List list304 = new List(index); + CollectionsMarshal.SetCount(list304, index); + Span span304 = CollectionsMarshal.AsSpan(list304); + num = 0; + ref QuestSequence reference212 = ref span304[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + Span span305 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span305[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -205969,7 +249283,8 @@ public static class AssemblyQuestLoader }; obj147.Steps = list305; reference212 = obj147; - ref QuestSequence reference213 = ref span88[1]; + num++; + ref QuestSequence reference213 = ref span304[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -205977,7 +249292,9 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.Interact, 1025828u, new Vector3(-55.985413f, 114.904976f, -19.089111f), 622) + Span span306 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span306[index2] = new QuestStep(EInteractionType.Interact, 1025828u, new Vector3(-55.985413f, 114.904976f, -19.089111f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -205996,24 +249313,29 @@ public static class AssemblyQuestLoader }; obj148.Steps = list306; reference213 = obj148; - ref QuestSequence reference214 = ref span88[2]; + num++; + ref QuestSequence reference214 = ref span304[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - Span span89 = CollectionsMarshal.AsSpan(list307); - ref QuestStep reference215 = ref span89[0]; + index2 = 5; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + Span span307 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + ref QuestStep reference215 = ref span307[num2]; QuestStep questStep56 = new QuestStep(EInteractionType.Interact, 1025832u, new Vector3(-57.1756f, 114.88513f, -16.464539f), 622); - num3 = 1; - List list308 = new List(num3); - CollectionsMarshal.SetCount(list308, num3); - CollectionsMarshal.AsSpan(list308)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list308 = new List(index3); + CollectionsMarshal.SetCount(list308, index3); + Span span308 = CollectionsMarshal.AsSpan(list308); + num3 = 0; + span308[num3] = EExtendedClassJob.DoH; questStep56.RequiredQuestAcceptedJob = list308; reference215 = questStep56; - ref QuestStep reference216 = ref span89[1]; + num2++; + ref QuestStep reference216 = ref span307[num2]; QuestStep obj150 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22744u, @@ -206022,50 +249344,64 @@ public static class AssemblyQuestLoader num3 = 1; List list309 = new List(num3); CollectionsMarshal.SetCount(list309, num3); - CollectionsMarshal.AsSpan(list309)[0] = EExtendedClassJob.DoH; + Span span309 = CollectionsMarshal.AsSpan(list309); + index3 = 0; + span309[index3] = EExtendedClassJob.DoH; obj150.RequiredQuestAcceptedJob = list309; reference216 = obj150; - ref QuestStep reference217 = ref span89[2]; + num2++; + ref QuestStep reference217 = ref span307[num2]; QuestStep questStep57 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list310 = new List(num3); - CollectionsMarshal.SetCount(list310, num3); - CollectionsMarshal.AsSpan(list310)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list310 = new List(index3); + CollectionsMarshal.SetCount(list310, index3); + Span span310 = CollectionsMarshal.AsSpan(list310); + num3 = 0; + span310[num3] = EExtendedClassJob.Miner; questStep57.RequiredQuestAcceptedJob = list310; num3 = 1; List list311 = new List(num3); CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = new GatheredItem + Span span311 = CollectionsMarshal.AsSpan(list311); + index3 = 0; + span311[index3] = new GatheredItem { ItemId = 22640u, ItemCount = 1 }; questStep57.ItemsToGather = list311; reference217 = questStep57; - ref QuestStep reference218 = ref span89[3]; + num2++; + ref QuestStep reference218 = ref span307[num2]; QuestStep questStep58 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list312 = new List(num3); - CollectionsMarshal.SetCount(list312, num3); - CollectionsMarshal.AsSpan(list312)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list312 = new List(index3); + CollectionsMarshal.SetCount(list312, index3); + Span span312 = CollectionsMarshal.AsSpan(list312); + num3 = 0; + span312[num3] = EExtendedClassJob.Botanist; questStep58.RequiredQuestAcceptedJob = list312; num3 = 1; List list313 = new List(num3); CollectionsMarshal.SetCount(list313, num3); - CollectionsMarshal.AsSpan(list313)[0] = new GatheredItem + Span span313 = CollectionsMarshal.AsSpan(list313); + index3 = 0; + span313[index3] = new GatheredItem { ItemId = 22666u, ItemCount = 1 }; questStep58.ItemsToGather = list313; reference218 = questStep58; - span89[4] = new QuestStep(EInteractionType.Interact, 1025831u, new Vector3(-50.980408f, 114.90497f, -23.178528f), 622) + num2++; + span307[num2] = new QuestStep(EInteractionType.Interact, 1025831u, new Vector3(-50.980408f, 114.90497f, -23.178528f), 622) { Fly = true }; obj149.Steps = list307; reference214 = obj149; - ref QuestSequence reference219 = ref span88[3]; + num++; + ref QuestSequence reference219 = ref span304[num]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue @@ -206073,7 +249409,9 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + Span span314 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span314[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -206099,21 +249437,26 @@ public static class AssemblyQuestLoader num = 1; List list315 = new List(num); CollectionsMarshal.SetCount(list315, num); - CollectionsMarshal.AsSpan(list315)[0] = "Theo"; + Span span315 = CollectionsMarshal.AsSpan(list315); + index = 0; + span315[index] = "Theo"; questRoot29.Author = list315; - num = 4; - List list316 = new List(num); - CollectionsMarshal.SetCount(list316, num); - Span span90 = CollectionsMarshal.AsSpan(list316); - ref QuestSequence reference220 = ref span90[0]; + index = 4; + List list316 = new List(index); + CollectionsMarshal.SetCount(list316, index); + Span span316 = CollectionsMarshal.AsSpan(list316); + num = 0; + ref QuestSequence reference220 = ref span316[num]; QuestSequence obj152 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + Span span317 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span317[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -206132,7 +249475,8 @@ public static class AssemblyQuestLoader }; obj152.Steps = list317; reference220 = obj152; - ref QuestSequence reference221 = ref span90[1]; + num++; + ref QuestSequence reference221 = ref span316[num]; QuestSequence obj153 = new QuestSequence { Sequence = 1 @@ -206140,30 +249484,37 @@ public static class AssemblyQuestLoader num2 = 1; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.Interact, 1025858u, new Vector3(-534.7219f, 66.33932f, -409.75055f), 622) + Span span318 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span318[index2] = new QuestStep(EInteractionType.Interact, 1025858u, new Vector3(-534.7219f, 66.33932f, -409.75055f), 622) { Fly = true }; obj153.Steps = list318; reference221 = obj153; - ref QuestSequence reference222 = ref span90[2]; + num++; + ref QuestSequence reference222 = ref span316[num]; QuestSequence obj154 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - Span span91 = CollectionsMarshal.AsSpan(list319); - ref QuestStep reference223 = ref span91[0]; + index2 = 5; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + Span span319 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + ref QuestStep reference223 = ref span319[num2]; QuestStep questStep59 = new QuestStep(EInteractionType.Interact, 1025816u, new Vector3(-535.3323f, 66.453f, -412.71082f), 622); - num3 = 1; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - CollectionsMarshal.AsSpan(list320)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list320 = new List(index3); + CollectionsMarshal.SetCount(list320, index3); + Span span320 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span320[num3] = EExtendedClassJob.DoH; questStep59.RequiredQuestAcceptedJob = list320; reference223 = questStep59; - ref QuestStep reference224 = ref span91[1]; + num2++; + ref QuestStep reference224 = ref span319[num2]; QuestStep obj155 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22745u, @@ -206172,44 +249523,57 @@ public static class AssemblyQuestLoader num3 = 1; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - CollectionsMarshal.AsSpan(list321)[0] = EExtendedClassJob.DoH; + Span span321 = CollectionsMarshal.AsSpan(list321); + index3 = 0; + span321[index3] = EExtendedClassJob.DoH; obj155.RequiredQuestAcceptedJob = list321; reference224 = obj155; - ref QuestStep reference225 = ref span91[2]; + num2++; + ref QuestStep reference225 = ref span319[num2]; QuestStep questStep60 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list322 = new List(num3); - CollectionsMarshal.SetCount(list322, num3); - CollectionsMarshal.AsSpan(list322)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list322 = new List(index3); + CollectionsMarshal.SetCount(list322, index3); + Span span322 = CollectionsMarshal.AsSpan(list322); + num3 = 0; + span322[num3] = EExtendedClassJob.Miner; questStep60.RequiredQuestAcceptedJob = list322; num3 = 1; List list323 = new List(num3); CollectionsMarshal.SetCount(list323, num3); - CollectionsMarshal.AsSpan(list323)[0] = new GatheredItem + Span span323 = CollectionsMarshal.AsSpan(list323); + index3 = 0; + span323[index3] = new GatheredItem { ItemId = 22641u, ItemCount = 1 }; questStep60.ItemsToGather = list323; reference225 = questStep60; - ref QuestStep reference226 = ref span91[3]; + num2++; + ref QuestStep reference226 = ref span319[num2]; QuestStep questStep61 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list324 = new List(num3); - CollectionsMarshal.SetCount(list324, num3); - CollectionsMarshal.AsSpan(list324)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list324 = new List(index3); + CollectionsMarshal.SetCount(list324, index3); + Span span324 = CollectionsMarshal.AsSpan(list324); + num3 = 0; + span324[num3] = EExtendedClassJob.Botanist; questStep61.RequiredQuestAcceptedJob = list324; num3 = 1; List list325 = new List(num3); CollectionsMarshal.SetCount(list325, num3); - CollectionsMarshal.AsSpan(list325)[0] = new GatheredItem + Span span325 = CollectionsMarshal.AsSpan(list325); + index3 = 0; + span325[index3] = new GatheredItem { ItemId = 22667u, ItemCount = 1 }; questStep61.ItemsToGather = list325; reference226 = questStep61; - span91[4] = new QuestStep(EInteractionType.Interact, 1021784u, new Vector3(-750.05725f, 127.240875f, 143.72461f), 622) + num2++; + span319[num2] = new QuestStep(EInteractionType.Interact, 1021784u, new Vector3(-750.05725f, 127.240875f, 143.72461f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -206228,7 +249592,8 @@ public static class AssemblyQuestLoader }; obj154.Steps = list319; reference222 = obj154; - ref QuestSequence reference227 = ref span90[3]; + num++; + ref QuestSequence reference227 = ref span316[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -206236,7 +249601,9 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + Span span326 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span326[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -206262,21 +249629,26 @@ public static class AssemblyQuestLoader num = 1; List list327 = new List(num); CollectionsMarshal.SetCount(list327, num); - CollectionsMarshal.AsSpan(list327)[0] = "Theo"; + Span span327 = CollectionsMarshal.AsSpan(list327); + index = 0; + span327[index] = "Theo"; questRoot30.Author = list327; - num = 5; - List list328 = new List(num); - CollectionsMarshal.SetCount(list328, num); - Span span92 = CollectionsMarshal.AsSpan(list328); - ref QuestSequence reference228 = ref span92[0]; + index = 5; + List list328 = new List(index); + CollectionsMarshal.SetCount(list328, index); + Span span328 = CollectionsMarshal.AsSpan(list328); + num = 0; + ref QuestSequence reference228 = ref span328[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list329 = new List(index2); + CollectionsMarshal.SetCount(list329, index2); + Span span329 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + span329[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -206295,7 +249667,8 @@ public static class AssemblyQuestLoader }; obj157.Steps = list329; reference228 = obj157; - ref QuestSequence reference229 = ref span92[1]; + num++; + ref QuestSequence reference229 = ref span328[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -206303,7 +249676,9 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.Interact, 1025837u, new Vector3(239.2461f, 1.2024078f, 12.466553f), 622) + Span span330 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span330[index2] = new QuestStep(EInteractionType.Interact, 1025837u, new Vector3(239.2461f, 1.2024078f, 12.466553f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -206322,24 +249697,29 @@ public static class AssemblyQuestLoader }; obj158.Steps = list330; reference229 = obj158; - ref QuestSequence reference230 = ref span92[2]; + num++; + ref QuestSequence reference230 = ref span328[num]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - Span span93 = CollectionsMarshal.AsSpan(list331); - ref QuestStep reference231 = ref span93[0]; + index2 = 5; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + Span span331 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + ref QuestStep reference231 = ref span331[num2]; QuestStep questStep62 = new QuestStep(EInteractionType.Interact, 1025841u, new Vector3(241.77905f, 2.4261475f, 14.419739f), 622); - num3 = 1; - List list332 = new List(num3); - CollectionsMarshal.SetCount(list332, num3); - CollectionsMarshal.AsSpan(list332)[0] = EExtendedClassJob.DoH; + index3 = 1; + List list332 = new List(index3); + CollectionsMarshal.SetCount(list332, index3); + Span span332 = CollectionsMarshal.AsSpan(list332); + num3 = 0; + span332[num3] = EExtendedClassJob.DoH; questStep62.RequiredQuestAcceptedJob = list332; reference231 = questStep62; - ref QuestStep reference232 = ref span93[1]; + num2++; + ref QuestStep reference232 = ref span331[num2]; QuestStep obj160 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 23173u, @@ -206348,50 +249728,64 @@ public static class AssemblyQuestLoader num3 = 1; List list333 = new List(num3); CollectionsMarshal.SetCount(list333, num3); - CollectionsMarshal.AsSpan(list333)[0] = EExtendedClassJob.DoH; + Span span333 = CollectionsMarshal.AsSpan(list333); + index3 = 0; + span333[index3] = EExtendedClassJob.DoH; obj160.RequiredQuestAcceptedJob = list333; reference232 = obj160; - ref QuestStep reference233 = ref span93[2]; + num2++; + ref QuestStep reference233 = ref span331[num2]; QuestStep questStep63 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list334 = new List(num3); - CollectionsMarshal.SetCount(list334, num3); - CollectionsMarshal.AsSpan(list334)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list334 = new List(index3); + CollectionsMarshal.SetCount(list334, index3); + Span span334 = CollectionsMarshal.AsSpan(list334); + num3 = 0; + span334[num3] = EExtendedClassJob.Miner; questStep63.RequiredQuestAcceptedJob = list334; num3 = 1; List list335 = new List(num3); CollectionsMarshal.SetCount(list335, num3); - CollectionsMarshal.AsSpan(list335)[0] = new GatheredItem + Span span335 = CollectionsMarshal.AsSpan(list335); + index3 = 0; + span335[index3] = new GatheredItem { ItemId = 23169u, ItemCount = 1 }; questStep63.ItemsToGather = list335; reference233 = questStep63; - ref QuestStep reference234 = ref span93[3]; + num2++; + ref QuestStep reference234 = ref span331[num2]; QuestStep questStep64 = new QuestStep(EInteractionType.Gather, null, null, 622); - num3 = 1; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list336 = new List(index3); + CollectionsMarshal.SetCount(list336, index3); + Span span336 = CollectionsMarshal.AsSpan(list336); + num3 = 0; + span336[num3] = EExtendedClassJob.Botanist; questStep64.RequiredQuestAcceptedJob = list336; num3 = 1; List list337 = new List(num3); CollectionsMarshal.SetCount(list337, num3); - CollectionsMarshal.AsSpan(list337)[0] = new GatheredItem + Span span337 = CollectionsMarshal.AsSpan(list337); + index3 = 0; + span337[index3] = new GatheredItem { ItemId = 23170u, ItemCount = 1 }; questStep64.ItemsToGather = list337; reference234 = questStep64; - span93[4] = new QuestStep(EInteractionType.Interact, 1025837u, new Vector3(239.2461f, 1.2024078f, 12.466553f), 622) + num2++; + span331[num2] = new QuestStep(EInteractionType.Interact, 1025837u, new Vector3(239.2461f, 1.2024078f, 12.466553f), 622) { Fly = true }; obj159.Steps = list331; reference230 = obj159; - ref QuestSequence reference235 = ref span92[3]; + num++; + ref QuestSequence reference235 = ref span328[num]; QuestSequence obj161 = new QuestSequence { Sequence = 3 @@ -206399,8 +249793,9 @@ public static class AssemblyQuestLoader num2 = 4; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - Span span94 = CollectionsMarshal.AsSpan(list338); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(50.48796f, 114.90777f, 9.264265f), 622) + Span span338 = CollectionsMarshal.AsSpan(list338); + index2 = 0; + span338[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(50.48796f, 114.90777f, 9.264265f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, SkipConditions = new SkipConditions @@ -206411,62 +249806,86 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference236 = ref span94[1]; + index2++; + ref QuestStep reference236 = ref span338[index2]; QuestStep obj162 = new QuestStep(EInteractionType.Interact, 1025836u, new Vector3(46.158447f, 114.904976f, 10.849121f), 622) { Fly = true }; - num3 = 6; - List list339 = new List(num3); - CollectionsMarshal.SetCount(list339, num3); - Span span95 = CollectionsMarshal.AsSpan(list339); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list339 = new List(index3); + CollectionsMarshal.SetCount(list339, index3); + Span span339 = CollectionsMarshal.AsSpan(list339); + num3 = 0; + span339[num3] = null; + num3++; + span339[num3] = null; + num3++; + span339[num3] = null; + num3++; + span339[num3] = null; + num3++; + span339[num3] = null; + num3++; + span339[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj162.CompletionQuestVariablesFlags = list339; reference236 = obj162; - ref QuestStep reference237 = ref span94[2]; + index2++; + ref QuestStep reference237 = ref span338[index2]; QuestStep questStep65 = new QuestStep(EInteractionType.Interact, 1025838u, new Vector3(46.12793f, 114.904976f, 8.132996f), 622); num3 = 6; List list340 = new List(num3); CollectionsMarshal.SetCount(list340, num3); - Span span96 = CollectionsMarshal.AsSpan(list340); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span340 = CollectionsMarshal.AsSpan(list340); + index3 = 0; + span340[index3] = null; + index3++; + span340[index3] = null; + index3++; + span340[index3] = null; + index3++; + span340[index3] = null; + index3++; + span340[index3] = null; + index3++; + span340[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep65.CompletionQuestVariablesFlags = list340; reference237 = questStep65; - ref QuestStep reference238 = ref span94[3]; + index2++; + ref QuestStep reference238 = ref span338[index2]; QuestStep questStep66 = new QuestStep(EInteractionType.Interact, 1025840u, new Vector3(43.289795f, 114.90497f, 7.9193726f), 622); - num3 = 6; - List list341 = new List(num3); - CollectionsMarshal.SetCount(list341, num3); - Span span97 = CollectionsMarshal.AsSpan(list341); - span97[0] = null; - span97[1] = null; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list341 = new List(index3); + CollectionsMarshal.SetCount(list341, index3); + Span span341 = CollectionsMarshal.AsSpan(list341); + num3 = 0; + span341[num3] = null; + num3++; + span341[num3] = null; + num3++; + span341[num3] = null; + num3++; + span341[num3] = null; + num3++; + span341[num3] = null; + num3++; + span341[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep66.CompletionQuestVariablesFlags = list341; reference238 = questStep66; obj161.Steps = list338; reference235 = obj161; - ref QuestSequence reference239 = ref span92[4]; + num++; + ref QuestSequence reference239 = ref span328[num]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + index2 = 1; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + Span span342 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span342[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -206492,13 +249911,16 @@ public static class AssemblyQuestLoader num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - CollectionsMarshal.AsSpan(list343)[0] = "liza"; + Span span343 = CollectionsMarshal.AsSpan(list343); + index = 0; + span343[index] = "liza"; questRoot31.Author = list343; - num = 2; - List list344 = new List(num); - CollectionsMarshal.SetCount(list344, num); - Span span98 = CollectionsMarshal.AsSpan(list344); - ref QuestSequence reference240 = ref span98[0]; + index = 2; + List list344 = new List(index); + CollectionsMarshal.SetCount(list344, index); + Span span344 = CollectionsMarshal.AsSpan(list344); + num = 0; + ref QuestSequence reference240 = ref span344[num]; QuestSequence obj164 = new QuestSequence { Sequence = 0 @@ -206506,7 +249928,9 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025965u, new Vector3(-52.0791f, -2.9f, -64.4389f), 628) + Span span345 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + span345[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025965u, new Vector3(-52.0791f, -2.9f, -64.4389f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -206517,15 +249941,18 @@ public static class AssemblyQuestLoader }; obj164.Steps = list345; reference240 = obj164; - ref QuestSequence reference241 = ref span98[1]; + num++; + ref QuestSequence reference241 = ref span344[num]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613) + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + Span span346 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span346[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; @@ -206538,13 +249965,16 @@ public static class AssemblyQuestLoader num = 1; List list347 = new List(num); CollectionsMarshal.SetCount(list347, num); - CollectionsMarshal.AsSpan(list347)[0] = "liza"; + Span span347 = CollectionsMarshal.AsSpan(list347); + index = 0; + span347[index] = "liza"; questRoot32.Author = list347; - num = 5; - List list348 = new List(num); - CollectionsMarshal.SetCount(list348, num); - Span span99 = CollectionsMarshal.AsSpan(list348); - ref QuestSequence reference242 = ref span99[0]; + index = 5; + List list348 = new List(index); + CollectionsMarshal.SetCount(list348, index); + Span span348 = CollectionsMarshal.AsSpan(list348); + num = 0; + ref QuestSequence reference242 = ref span348[num]; QuestSequence obj166 = new QuestSequence { Sequence = 0 @@ -206552,34 +249982,41 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613); + Span span349 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + span349[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613); obj166.Steps = list349; reference242 = obj166; - ref QuestSequence reference243 = ref span99[1]; + num++; + ref QuestSequence reference243 = ref span348[num]; QuestSequence obj167 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - Span span100 = CollectionsMarshal.AsSpan(list350); - span100[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + index2 = 3; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + Span span350 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span350[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { Mount = true, RestartNavigationIfCancelled = false }; - span100[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) + num2++; + span350[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) { RestartNavigationIfCancelled = false }; - span100[2] = new QuestStep(EInteractionType.Interact, 1025966u, new Vector3(-10.51355f, -187.08374f, -95.07898f), 613) + num2++; + span350[num2] = new QuestStep(EInteractionType.Interact, 1025966u, new Vector3(-10.51355f, -187.08374f, -95.07898f), 613) { Fly = true }; obj167.Steps = list350; reference243 = obj167; - ref QuestSequence reference244 = ref span99[2]; + num++; + ref QuestSequence reference244 = ref span348[num]; QuestSequence obj168 = new QuestSequence { Sequence = 2 @@ -206587,7 +250024,9 @@ public static class AssemblyQuestLoader num2 = 1; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 2009560u, new Vector3(855.1002f, 1.1749268f, 876.0051f), 613) + Span span351 = CollectionsMarshal.AsSpan(list351); + index2 = 0; + span351[index2] = new QuestStep(EInteractionType.Interact, 2009560u, new Vector3(855.1002f, 1.1749268f, 876.0051f), 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -206598,15 +250037,18 @@ public static class AssemblyQuestLoader }; obj168.Steps = list351; reference244 = obj168; - ref QuestSequence reference245 = ref span99[3]; + num++; + ref QuestSequence reference245 = ref span348[num]; QuestSequence obj169 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1025968u, new Vector3(35.477173f, 5.9422755f, -143.63324f), 628) + index2 = 1; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + Span span352 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span352[num2] = new QuestStep(EInteractionType.Interact, 1025968u, new Vector3(35.477173f, 5.9422755f, -143.63324f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -206617,7 +250059,8 @@ public static class AssemblyQuestLoader }; obj169.Steps = list352; reference245 = obj169; - ref QuestSequence reference246 = ref span99[4]; + num++; + ref QuestSequence reference246 = ref span348[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue @@ -206625,7 +250068,9 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613) + Span span353 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span353[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; @@ -206638,21 +250083,26 @@ public static class AssemblyQuestLoader num = 1; List list354 = new List(num); CollectionsMarshal.SetCount(list354, num); - CollectionsMarshal.AsSpan(list354)[0] = "liza"; + Span span354 = CollectionsMarshal.AsSpan(list354); + index = 0; + span354[index] = "liza"; questRoot33.Author = list354; - num = 3; - List list355 = new List(num); - CollectionsMarshal.SetCount(list355, num); - Span span101 = CollectionsMarshal.AsSpan(list355); - ref QuestSequence reference247 = ref span101[0]; + index = 3; + List list355 = new List(index); + CollectionsMarshal.SetCount(list355, index); + Span span355 = CollectionsMarshal.AsSpan(list355); + num = 0; + ref QuestSequence reference247 = ref span355[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list356 = new List(num2); - CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) + index2 = 1; + List list356 = new List(index2); + CollectionsMarshal.SetCount(list356, index2); + Span span356 = CollectionsMarshal.AsSpan(list356); + num2 = 0; + span356[num2] = new QuestStep(EInteractionType.AcceptQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -206665,7 +250115,8 @@ public static class AssemblyQuestLoader }; obj171.Steps = list356; reference247 = obj171; - ref QuestSequence reference248 = ref span101[1]; + num++; + ref QuestSequence reference248 = ref span355[num]; QuestSequence obj172 = new QuestSequence { Sequence = 1 @@ -206673,18 +250124,23 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.Interact, 1024793u, new Vector3(66.666626f, -7.579447E-09f, -59.67804f), 759); + Span span357 = CollectionsMarshal.AsSpan(list357); + index2 = 0; + span357[index2] = new QuestStep(EInteractionType.Interact, 1024793u, new Vector3(66.666626f, -7.579447E-09f, -59.67804f), 759); obj172.Steps = list357; reference248 = obj172; - ref QuestSequence reference249 = ref span101[2]; + num++; + ref QuestSequence reference249 = ref span355[num]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759); + index2 = 1; + List list358 = new List(index2); + CollectionsMarshal.SetCount(list358, index2); + Span span358 = CollectionsMarshal.AsSpan(list358); + num2 = 0; + span358[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759); obj173.Steps = list358; reference249 = obj173; questRoot33.QuestSequence = list355; @@ -206694,13 +250150,16 @@ public static class AssemblyQuestLoader num = 1; List list359 = new List(num); CollectionsMarshal.SetCount(list359, num); - CollectionsMarshal.AsSpan(list359)[0] = "Thaksin"; + Span span359 = CollectionsMarshal.AsSpan(list359); + index = 0; + span359[index] = "Thaksin"; questRoot34.Author = list359; - num = 4; - List list360 = new List(num); - CollectionsMarshal.SetCount(list360, num); - Span span102 = CollectionsMarshal.AsSpan(list360); - ref QuestSequence reference250 = ref span102[0]; + index = 4; + List list360 = new List(index); + CollectionsMarshal.SetCount(list360, index); + Span span360 = CollectionsMarshal.AsSpan(list360); + num = 0; + ref QuestSequence reference250 = ref span360[num]; QuestSequence obj174 = new QuestSequence { Sequence = 0 @@ -206708,19 +250167,23 @@ public static class AssemblyQuestLoader num2 = 1; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026200u, new Vector3(26.901611f, 0f, 36.362183f), 635); + Span span361 = CollectionsMarshal.AsSpan(list361); + index2 = 0; + span361[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026200u, new Vector3(26.901611f, 0f, 36.362183f), 635); obj174.Steps = list361; reference250 = obj174; - ref QuestSequence reference251 = ref span102[1]; + num++; + ref QuestSequence reference251 = ref span360[num]; QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - Span span103 = CollectionsMarshal.AsSpan(list362); - ref QuestStep reference252 = ref span103[0]; + index2 = 2; + List list362 = new List(index2); + CollectionsMarshal.SetCount(list362, index2); + Span span362 = CollectionsMarshal.AsSpan(list362); + num2 = 0; + ref QuestStep reference252 = ref span362[num2]; QuestStep obj176 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-516.5388f, 146.04834f, -357.0811f), 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -206735,18 +250198,22 @@ public static class AssemblyQuestLoader num3 = 1; List list363 = new List(num3); CollectionsMarshal.SetCount(list363, num3); - CollectionsMarshal.AsSpan(list363)[0] = 399; + Span span363 = CollectionsMarshal.AsSpan(list363); + index3 = 0; + span363[index3] = 399; skipAetheryteCondition2.InTerritory = list363; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition2; obj176.SkipConditions = skipConditions4; reference252 = obj176; - span103[1] = new QuestStep(EInteractionType.Interact, 1026201u, new Vector3(-617.2427f, 146.86842f, 62.150024f), 399) + num2++; + span362[num2] = new QuestStep(EInteractionType.Interact, 1026201u, new Vector3(-617.2427f, 146.86842f, 62.150024f), 399) { Fly = true }; obj175.Steps = list362; reference251 = obj175; - ref QuestSequence reference253 = ref span102[2]; + num++; + ref QuestSequence reference253 = ref span360[num]; QuestSequence obj177 = new QuestSequence { Sequence = 2 @@ -206754,7 +250221,9 @@ public static class AssemblyQuestLoader num2 = 1; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + Span span364 = CollectionsMarshal.AsSpan(list364); + index2 = 0; + span364[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -206763,15 +250232,18 @@ public static class AssemblyQuestLoader }; obj177.Steps = list364; reference253 = obj177; - ref QuestSequence reference254 = ref span102[3]; + num++; + ref QuestSequence reference254 = ref span360[num]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026202u, new Vector3(-611.6274f, 146.86842f, 57.87744f), 399); + index2 = 1; + List list365 = new List(index2); + CollectionsMarshal.SetCount(list365, index2); + Span span365 = CollectionsMarshal.AsSpan(list365); + num2 = 0; + span365[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026202u, new Vector3(-611.6274f, 146.86842f, 57.87744f), 399); obj178.Steps = list365; reference254 = obj178; questRoot34.QuestSequence = list360; @@ -206781,13 +250253,16 @@ public static class AssemblyQuestLoader num = 1; List list366 = new List(num); CollectionsMarshal.SetCount(list366, num); - CollectionsMarshal.AsSpan(list366)[0] = "JerryWester"; + Span span366 = CollectionsMarshal.AsSpan(list366); + index = 0; + span366[index] = "JerryWester"; questRoot35.Author = list366; - num = 5; - List list367 = new List(num); - CollectionsMarshal.SetCount(list367, num); - Span span104 = CollectionsMarshal.AsSpan(list367); - ref QuestSequence reference255 = ref span104[0]; + index = 5; + List list367 = new List(index); + CollectionsMarshal.SetCount(list367, index); + Span span367 = CollectionsMarshal.AsSpan(list367); + num = 0; + ref QuestSequence reference255 = ref span367[num]; QuestSequence obj179 = new QuestSequence { Sequence = 0 @@ -206795,28 +250270,34 @@ public static class AssemblyQuestLoader num2 = 1; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351) + Span span368 = CollectionsMarshal.AsSpan(list368); + index2 = 0; + span368[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351) { StopDistance = 5f }; obj179.Steps = list368; reference255 = obj179; - ref QuestSequence reference256 = ref span104[1]; + num++; + ref QuestSequence reference256 = ref span367[num]; QuestSequence obj180 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list369 = new List(num2); - CollectionsMarshal.SetCount(list369, num2); - CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.Interact, 1026253u, new Vector3(650.87354f, 70f, 546.89856f), 621) + index2 = 1; + List list369 = new List(index2); + CollectionsMarshal.SetCount(list369, index2); + Span span369 = CollectionsMarshal.AsSpan(list369); + num2 = 0; + span369[num2] = new QuestStep(EInteractionType.Interact, 1026253u, new Vector3(650.87354f, 70f, 546.89856f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj180.Steps = list369; reference256 = obj180; - ref QuestSequence reference257 = ref span104[2]; + num++; + ref QuestSequence reference257 = ref span367[num]; QuestSequence obj181 = new QuestSequence { Sequence = 2 @@ -206824,24 +250305,30 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.Interact, 1026256u, new Vector3(648.1575f, 70f, 548.24133f), 621); + Span span370 = CollectionsMarshal.AsSpan(list370); + index2 = 0; + span370[index2] = new QuestStep(EInteractionType.Interact, 1026256u, new Vector3(648.1575f, 70f, 548.24133f), 621); obj181.Steps = list370; reference257 = obj181; - ref QuestSequence reference258 = ref span104[3]; + num++; + ref QuestSequence reference258 = ref span367[num]; QuestSequence obj182 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list371 = new List(num2); - CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1026257u, new Vector3(-7.950012f, -3.2583127E-12f, -16.31195f), 759) + index2 = 1; + List list371 = new List(index2); + CollectionsMarshal.SetCount(list371, index2); + Span span371 = CollectionsMarshal.AsSpan(list371); + num2 = 0; + span371[num2] = new QuestStep(EInteractionType.Interact, 1026257u, new Vector3(-7.950012f, -3.2583127E-12f, -16.31195f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave }; obj182.Steps = list371; reference258 = obj182; - ref QuestSequence reference259 = ref span104[4]; + num++; + ref QuestSequence reference259 = ref span367[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue @@ -206849,23 +250336,27 @@ public static class AssemblyQuestLoader num2 = 2; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - Span span105 = CollectionsMarshal.AsSpan(list372); - ref QuestStep reference260 = ref span105[0]; + Span span372 = CollectionsMarshal.AsSpan(list372); + index2 = 0; + ref QuestStep reference260 = ref span372[index2]; QuestStep obj184 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744 }; - num3 = 1; - List list373 = new List(num3); - CollectionsMarshal.SetCount(list373, num3); - CollectionsMarshal.AsSpan(list373)[0] = new DialogueChoice + index3 = 1; + List list373 = new List(index3); + CollectionsMarshal.SetCount(list373, index3); + Span span373 = CollectionsMarshal.AsSpan(list373); + num3 = 0; + span373[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDE101_03143_EVENTAREA_WARP_100_004") }; obj184.DialogueChoices = list373; reference260 = obj184; - span105[1] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); + index2++; + span372[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); obj183.Steps = list372; reference259 = obj183; questRoot35.QuestSequence = list367; @@ -206875,24 +250366,30 @@ public static class AssemblyQuestLoader num = 1; List list374 = new List(num); CollectionsMarshal.SetCount(list374, num); - CollectionsMarshal.AsSpan(list374)[0] = "JerryWester"; + Span span374 = CollectionsMarshal.AsSpan(list374); + index = 0; + span374[index] = "JerryWester"; questRoot36.Author = list374; - num = 5; - List list375 = new List(num); - CollectionsMarshal.SetCount(list375, num); - Span span106 = CollectionsMarshal.AsSpan(list375); - ref QuestSequence reference261 = ref span106[0]; + index = 5; + List list375 = new List(index); + CollectionsMarshal.SetCount(list375, index); + Span span375 = CollectionsMarshal.AsSpan(list375); + num = 0; + ref QuestSequence reference261 = ref span375[num]; QuestSequence obj185 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); + index2 = 1; + List list376 = new List(index2); + CollectionsMarshal.SetCount(list376, index2); + Span span376 = CollectionsMarshal.AsSpan(list376); + num2 = 0; + span376[num2] = new QuestStep(EInteractionType.AcceptQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); obj185.Steps = list376; reference261 = obj185; - ref QuestSequence reference262 = ref span106[1]; + num++; + ref QuestSequence reference262 = ref span375[num]; QuestSequence obj186 = new QuestSequence { Sequence = 1 @@ -206900,22 +250397,27 @@ public static class AssemblyQuestLoader num2 = 1; List list377 = new List(num2); CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.Interact, 1026261u, new Vector3(337.78882f, 54.860683f, -531.2734f), 614) + Span span377 = CollectionsMarshal.AsSpan(list377); + index2 = 0; + span377[index2] = new QuestStep(EInteractionType.Interact, 1026261u, new Vector3(337.78882f, 54.860683f, -531.2734f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj186.Steps = list377; reference262 = obj186; - ref QuestSequence reference263 = ref span106[2]; + num++; + ref QuestSequence reference263 = ref span375[num]; QuestSequence obj187 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list378 = new List(num2); - CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Duty, null, null, 614) + index2 = 1; + List list378 = new List(index2); + CollectionsMarshal.SetCount(list378, index2); + Span span378 = CollectionsMarshal.AsSpan(list378); + num2 = 0; + span378[num2] = new QuestStep(EInteractionType.Duty, null, null, 614) { DutyOptions = new DutyOptions { @@ -206925,11 +250427,13 @@ public static class AssemblyQuestLoader }; obj187.Steps = list378; reference263 = obj187; - span106[3] = new QuestSequence + num++; + span375[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference264 = ref span106[4]; + num++; + ref QuestSequence reference264 = ref span375[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue @@ -206937,7 +250441,9 @@ public static class AssemblyQuestLoader num2 = 1; List list379 = new List(num2); CollectionsMarshal.SetCount(list379, num2); - CollectionsMarshal.AsSpan(list379)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026268u, new Vector3(117.7843f, -4.178714f, 87.296875f), 759) + Span span379 = CollectionsMarshal.AsSpan(list379); + index2 = 0; + span379[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026268u, new Vector3(117.7843f, -4.178714f, 87.296875f), 759) { StopDistance = 7f }; @@ -206950,21 +250456,26 @@ public static class AssemblyQuestLoader num = 1; List list380 = new List(num); CollectionsMarshal.SetCount(list380, num); - CollectionsMarshal.AsSpan(list380)[0] = "JerryWester"; + Span span380 = CollectionsMarshal.AsSpan(list380); + index = 0; + span380[index] = "JerryWester"; questRoot37.Author = list380; - num = 5; - List list381 = new List(num); - CollectionsMarshal.SetCount(list381, num); - Span span107 = CollectionsMarshal.AsSpan(list381); - ref QuestSequence reference265 = ref span107[0]; + index = 5; + List list381 = new List(index); + CollectionsMarshal.SetCount(list381, index); + Span span381 = CollectionsMarshal.AsSpan(list381); + num = 0; + ref QuestSequence reference265 = ref span381[num]; QuestSequence obj189 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list382 = new List(num2); - CollectionsMarshal.SetCount(list382, num2); - CollectionsMarshal.AsSpan(list382)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026268u, new Vector3(117.7843f, -4.178714f, 87.296875f), 759) + index2 = 1; + List list382 = new List(index2); + CollectionsMarshal.SetCount(list382, index2); + Span span382 = CollectionsMarshal.AsSpan(list382); + num2 = 0; + span382[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026268u, new Vector3(117.7843f, -4.178714f, 87.296875f), 759) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.DomanEnclave, @@ -206978,7 +250489,8 @@ public static class AssemblyQuestLoader }; obj189.Steps = list382; reference265 = obj189; - ref QuestSequence reference266 = ref span107[1]; + num++; + ref QuestSequence reference266 = ref span381[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 @@ -206986,7 +250498,9 @@ public static class AssemblyQuestLoader num2 = 1; List list383 = new List(num2); CollectionsMarshal.SetCount(list383, num2); - ref QuestStep reference267 = ref CollectionsMarshal.AsSpan(list383)[0]; + Span span383 = CollectionsMarshal.AsSpan(list383); + index2 = 0; + ref QuestStep reference267 = ref span383[index2]; QuestStep obj191 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, @@ -206999,7 +250513,9 @@ public static class AssemblyQuestLoader num3 = 1; List list384 = new List(num3); CollectionsMarshal.SetCount(list384, num3); - CollectionsMarshal.AsSpan(list384)[0] = new DialogueChoice + Span span384 = CollectionsMarshal.AsSpan(list384); + index3 = 0; + span384[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDE103_03145_EVENTAREA_WARP_100_004") @@ -207008,21 +250524,25 @@ public static class AssemblyQuestLoader reference267 = obj191; obj190.Steps = list383; reference266 = obj190; - ref QuestSequence reference268 = ref span107[2]; + num++; + ref QuestSequence reference268 = ref span381[num]; QuestSequence obj192 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list385 = new List(num2); - CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.Interact, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744) + index2 = 1; + List list385 = new List(index2); + CollectionsMarshal.SetCount(list385, index2); + Span span385 = CollectionsMarshal.AsSpan(list385); + num2 = 0; + span385[num2] = new QuestStep(EInteractionType.Interact, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744) { StopDistance = 7f }; obj192.Steps = list385; reference268 = obj192; - ref QuestSequence reference269 = ref span107[3]; + num++; + ref QuestSequence reference269 = ref span381[num]; QuestSequence obj193 = new QuestSequence { Sequence = 3 @@ -207030,12 +250550,14 @@ public static class AssemblyQuestLoader num2 = 2; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - Span span108 = CollectionsMarshal.AsSpan(list386); - span108[0] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) + Span span386 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + span386[index2] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) { TargetTerritoryId = (ushort)759 }; - span108[1] = new QuestStep(EInteractionType.Interact, 1026276u, new Vector3(119.035645f, -4.1787133f, 65.384766f), 759) + index2++; + span386[index2] = new QuestStep(EInteractionType.Interact, 1026276u, new Vector3(119.035645f, -4.1787133f, 65.384766f), 759) { AethernetShortcut = new AethernetShortcut { @@ -207045,16 +250567,18 @@ public static class AssemblyQuestLoader }; obj193.Steps = list386; reference269 = obj193; - ref QuestSequence reference270 = ref span107[4]; + num++; + ref QuestSequence reference270 = ref span381[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list387 = new List(num2); - CollectionsMarshal.SetCount(list387, num2); - Span span109 = CollectionsMarshal.AsSpan(list387); - ref QuestStep reference271 = ref span109[0]; + index2 = 2; + List list387 = new List(index2); + CollectionsMarshal.SetCount(list387, index2); + Span span387 = CollectionsMarshal.AsSpan(list387); + num2 = 0; + ref QuestStep reference271 = ref span387[num2]; QuestStep obj195 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, @@ -207064,17 +250588,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.DomanEnclave } }; - num3 = 1; - List list388 = new List(num3); - CollectionsMarshal.SetCount(list388, num3); - CollectionsMarshal.AsSpan(list388)[0] = new DialogueChoice + index3 = 1; + List list388 = new List(index3); + CollectionsMarshal.SetCount(list388, index3); + Span span388 = CollectionsMarshal.AsSpan(list388); + num3 = 0; + span388[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDE103_03145_EVENTAREA_WARP_100_004") }; obj195.DialogueChoices = list388; reference271 = obj195; - span109[1] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); + num2++; + span387[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); obj194.Steps = list387; reference270 = obj194; questRoot37.QuestSequence = list381; @@ -207084,13 +250611,16 @@ public static class AssemblyQuestLoader num = 1; List list389 = new List(num); CollectionsMarshal.SetCount(list389, num); - CollectionsMarshal.AsSpan(list389)[0] = "JerryWester"; + Span span389 = CollectionsMarshal.AsSpan(list389); + index = 0; + span389[index] = "JerryWester"; questRoot38.Author = list389; - num = 4; - List list390 = new List(num); - CollectionsMarshal.SetCount(list390, num); - Span span110 = CollectionsMarshal.AsSpan(list390); - ref QuestSequence reference272 = ref span110[0]; + index = 4; + List list390 = new List(index); + CollectionsMarshal.SetCount(list390, index); + Span span390 = CollectionsMarshal.AsSpan(list390); + num = 0; + ref QuestSequence reference272 = ref span390[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -207098,12 +250628,16 @@ public static class AssemblyQuestLoader num2 = 1; List list391 = new List(num2); CollectionsMarshal.SetCount(list391, num2); - ref QuestStep reference273 = ref CollectionsMarshal.AsSpan(list391)[0]; + Span span391 = CollectionsMarshal.AsSpan(list391); + index2 = 0; + ref QuestStep reference273 = ref span391[index2]; QuestStep questStep67 = new QuestStep(EInteractionType.AcceptQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); num3 = 1; List list392 = new List(num3); CollectionsMarshal.SetCount(list392, num3); - CollectionsMarshal.AsSpan(list392)[0] = new DialogueChoice + Span span392 = CollectionsMarshal.AsSpan(list392); + index3 = 0; + span392[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDE104_03146_Q1_000_000"), @@ -207113,22 +250647,26 @@ public static class AssemblyQuestLoader reference273 = questStep67; obj196.Steps = list391; reference272 = obj196; - ref QuestSequence reference274 = ref span110[1]; + num++; + ref QuestSequence reference274 = ref span390[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list393 = new List(num2); - CollectionsMarshal.SetCount(list393, num2); - CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.Interact, 1026280u, new Vector3(561.4862f, -19.50564f, 409.17065f), 622) + index2 = 1; + List list393 = new List(index2); + CollectionsMarshal.SetCount(list393, index2); + Span span393 = CollectionsMarshal.AsSpan(list393); + num2 = 0; + span393[num2] = new QuestStep(EInteractionType.Interact, 1026280u, new Vector3(561.4862f, -19.50564f, 409.17065f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj197.Steps = list393; reference274 = obj197; - ref QuestSequence reference275 = ref span110[2]; + num++; + ref QuestSequence reference275 = ref span390[num]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -207136,21 +250674,26 @@ public static class AssemblyQuestLoader num2 = 1; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.Interact, 1026281u, new Vector3(561.7302f, -19.30375f, 271.99194f), 622) + Span span394 = CollectionsMarshal.AsSpan(list394); + index2 = 0; + span394[index2] = new QuestStep(EInteractionType.Interact, 1026281u, new Vector3(561.7302f, -19.30375f, 271.99194f), 622) { StopDistance = 6f }; obj198.Steps = list394; reference275 = obj198; - ref QuestSequence reference276 = ref span110[3]; + num++; + ref QuestSequence reference276 = ref span390[num]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list395 = new List(num2); - CollectionsMarshal.SetCount(list395, num2); - CollectionsMarshal.AsSpan(list395)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) + index2 = 1; + List list395 = new List(index2); + CollectionsMarshal.SetCount(list395, index2); + Span span395 = CollectionsMarshal.AsSpan(list395); + num2 = 0; + span395[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) { Fly = true }; @@ -207163,13 +250706,16 @@ public static class AssemblyQuestLoader num = 1; List list396 = new List(num); CollectionsMarshal.SetCount(list396, num); - CollectionsMarshal.AsSpan(list396)[0] = "JerryWester"; + Span span396 = CollectionsMarshal.AsSpan(list396); + index = 0; + span396[index] = "JerryWester"; questRoot39.Author = list396; - num = 7; - List list397 = new List(num); - CollectionsMarshal.SetCount(list397, num); - Span span111 = CollectionsMarshal.AsSpan(list397); - ref QuestSequence reference277 = ref span111[0]; + index = 7; + List list397 = new List(index); + CollectionsMarshal.SetCount(list397, index); + Span span397 = CollectionsMarshal.AsSpan(list397); + num = 0; + ref QuestSequence reference277 = ref span397[num]; QuestSequence obj200 = new QuestSequence { Sequence = 0 @@ -207177,27 +250723,33 @@ public static class AssemblyQuestLoader num2 = 1; List list398 = new List(num2); CollectionsMarshal.SetCount(list398, num2); - CollectionsMarshal.AsSpan(list398)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026284u, new Vector3(498.2832f, 40.86853f, -503.37988f), 622) + Span span398 = CollectionsMarshal.AsSpan(list398); + index2 = 0; + span398[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026284u, new Vector3(498.2832f, 40.86853f, -503.37988f), 622) { StopDistance = 5f }; obj200.Steps = list398; reference277 = obj200; - ref QuestSequence reference278 = ref span111[1]; + num++; + ref QuestSequence reference278 = ref span397[num]; QuestSequence obj201 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - CollectionsMarshal.AsSpan(list399)[0] = new QuestStep(EInteractionType.Interact, 1025874u, new Vector3(351.12524f, 118.66239f, -692.53076f), 622) + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + Span span399 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + span399[num2] = new QuestStep(EInteractionType.Interact, 1025874u, new Vector3(351.12524f, 118.66239f, -692.53076f), 622) { Fly = true }; obj201.Steps = list399; reference278 = obj201; - ref QuestSequence reference279 = ref span111[2]; + num++; + ref QuestSequence reference279 = ref span397[num]; QuestSequence obj202 = new QuestSequence { Sequence = 2 @@ -207205,30 +250757,36 @@ public static class AssemblyQuestLoader num2 = 2; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - Span span112 = CollectionsMarshal.AsSpan(list400); - span112[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(493.77588f, 40.425697f, -475.4643f), 622) + Span span400 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span400[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(493.77588f, 40.425697f, -475.4643f), 622) { Fly = true }; - span112[1] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); + index2++; + span400[index2] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); obj202.Steps = list400; reference279 = obj202; - ref QuestSequence reference280 = ref span111[3]; + num++; + ref QuestSequence reference280 = ref span397[num]; QuestSequence obj203 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list401 = new List(num2); - CollectionsMarshal.SetCount(list401, num2); - CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) + index2 = 1; + List list401 = new List(index2); + CollectionsMarshal.SetCount(list401, index2); + Span span401 = CollectionsMarshal.AsSpan(list401); + num2 = 0; + span401[num2] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj203.Steps = list401; reference280 = obj203; - ref QuestSequence reference281 = ref span111[4]; + num++; + ref QuestSequence reference281 = ref span397[num]; QuestSequence obj204 = new QuestSequence { Sequence = 4 @@ -207236,34 +250794,42 @@ public static class AssemblyQuestLoader num2 = 1; List list402 = new List(num2); CollectionsMarshal.SetCount(list402, num2); - ref QuestStep reference282 = ref CollectionsMarshal.AsSpan(list402)[0]; + Span span402 = CollectionsMarshal.AsSpan(list402); + index2 = 0; + ref QuestStep reference282 = ref span402[index2]; QuestStep obj205 = new QuestStep(EInteractionType.SinglePlayerDuty, 2009591u, new Vector3(-210.34564f, 2.6397705f, 519.27966f), 622) { Fly = true }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 1; - List list403 = new List(num3); - CollectionsMarshal.SetCount(list403, num3); - CollectionsMarshal.AsSpan(list403)[0] = "(Magnai) Keeps focussing the boss instead of the axes, thus getting killed by the AOEs"; + index3 = 1; + List list403 = new List(index3); + CollectionsMarshal.SetCount(list403, index3); + Span span403 = CollectionsMarshal.AsSpan(list403); + num3 = 0; + span403[num3] = "(Magnai) Keeps focussing the boss instead of the axes, thus getting killed by the AOEs"; singlePlayerDutyOptions.Notes = list403; obj205.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference282 = obj205; obj204.Steps = list402; reference281 = obj204; - span111[5] = new QuestSequence + num++; + span397[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference283 = ref span111[6]; + num++; + ref QuestSequence reference283 = ref span397[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list404 = new List(num2); - CollectionsMarshal.SetCount(list404, num2); - CollectionsMarshal.AsSpan(list404)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) + index2 = 1; + List list404 = new List(index2); + CollectionsMarshal.SetCount(list404, index2); + Span span404 = CollectionsMarshal.AsSpan(list404); + num2 = 0; + span404[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) { StopDistance = 5f }; @@ -207276,13 +250842,16 @@ public static class AssemblyQuestLoader num = 1; List list405 = new List(num); CollectionsMarshal.SetCount(list405, num); - CollectionsMarshal.AsSpan(list405)[0] = "JerryWester"; + Span span405 = CollectionsMarshal.AsSpan(list405); + index = 0; + span405[index] = "JerryWester"; questRoot40.Author = list405; - num = 7; - List list406 = new List(num); - CollectionsMarshal.SetCount(list406, num); - Span span113 = CollectionsMarshal.AsSpan(list406); - ref QuestSequence reference284 = ref span113[0]; + index = 7; + List list406 = new List(index); + CollectionsMarshal.SetCount(list406, index); + Span span406 = CollectionsMarshal.AsSpan(list406); + num = 0; + ref QuestSequence reference284 = ref span406[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -207290,24 +250859,30 @@ public static class AssemblyQuestLoader num2 = 1; List list407 = new List(num2); CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026284u, new Vector3(498.2832f, 40.86853f, -503.37988f), 622); + Span span407 = CollectionsMarshal.AsSpan(list407); + index2 = 0; + span407[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026284u, new Vector3(498.2832f, 40.86853f, -503.37988f), 622); obj207.Steps = list407; reference284 = obj207; - ref QuestSequence reference285 = ref span113[1]; + num++; + ref QuestSequence reference285 = ref span406[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list408 = new List(num2); - CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.Interact, 1025874u, new Vector3(351.12524f, 118.66239f, -692.53076f), 622) + index2 = 1; + List list408 = new List(index2); + CollectionsMarshal.SetCount(list408, index2); + Span span408 = CollectionsMarshal.AsSpan(list408); + num2 = 0; + span408[num2] = new QuestStep(EInteractionType.Interact, 1025874u, new Vector3(351.12524f, 118.66239f, -692.53076f), 622) { Fly = true }; obj208.Steps = list408; reference285 = obj208; - ref QuestSequence reference286 = ref span113[2]; + num++; + ref QuestSequence reference286 = ref span406[num]; QuestSequence obj209 = new QuestSequence { Sequence = 2 @@ -207315,19 +250890,23 @@ public static class AssemblyQuestLoader num2 = 1; List list409 = new List(num2); CollectionsMarshal.SetCount(list409, num2); - CollectionsMarshal.AsSpan(list409)[0] = new QuestStep(EInteractionType.Interact, 1026239u, new Vector3(348.53125f, 118.662384f, -691.92035f), 622); + Span span409 = CollectionsMarshal.AsSpan(list409); + index2 = 0; + span409[index2] = new QuestStep(EInteractionType.Interact, 1026239u, new Vector3(348.53125f, 118.662384f, -691.92035f), 622); obj209.Steps = list409; reference286 = obj209; - ref QuestSequence reference287 = ref span113[3]; + num++; + ref QuestSequence reference287 = ref span406[num]; QuestSequence obj210 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list410 = new List(num2); - CollectionsMarshal.SetCount(list410, num2); - Span span114 = CollectionsMarshal.AsSpan(list410); - ref QuestStep reference288 = ref span114[0]; + index2 = 2; + List list410 = new List(index2); + CollectionsMarshal.SetCount(list410, index2); + Span span410 = CollectionsMarshal.AsSpan(list410); + num2 = 0; + ref QuestStep reference288 = ref span410[num2]; QuestStep obj211 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, @@ -207336,17 +250915,21 @@ public static class AssemblyQuestLoader num3 = 1; List list411 = new List(num3); CollectionsMarshal.SetCount(list411, num3); - CollectionsMarshal.AsSpan(list411)[0] = new DialogueChoice + Span span411 = CollectionsMarshal.AsSpan(list411); + index3 = 0; + span411[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDE106_03148_EVENTAREA_WARP_100_004") }; obj211.DialogueChoices = list411; reference288 = obj211; - span114[1] = new QuestStep(EInteractionType.Interact, 1026469u, new Vector3(-1.8463745f, 0.02109136f, -1.4191895f), 744); + num2++; + span410[num2] = new QuestStep(EInteractionType.Interact, 1026469u, new Vector3(-1.8463745f, 0.02109136f, -1.4191895f), 744); obj210.Steps = list410; reference287 = obj210; - ref QuestSequence reference289 = ref span113[4]; + num++; + ref QuestSequence reference289 = ref span406[num]; QuestSequence obj212 = new QuestSequence { Sequence = 4 @@ -207354,27 +250937,34 @@ public static class AssemblyQuestLoader num2 = 1; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - CollectionsMarshal.AsSpan(list412)[0] = new QuestStep(EInteractionType.Interact, 1026241u, new Vector3(747.00525f, 69.99995f, 526.36f), 621) + Span span412 = CollectionsMarshal.AsSpan(list412); + index2 = 0; + span412[index2] = new QuestStep(EInteractionType.Interact, 1026241u, new Vector3(747.00525f, 69.99995f, 526.36f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj212.Steps = list412; reference289 = obj212; - ref QuestSequence reference290 = ref span113[5]; + num++; + ref QuestSequence reference290 = ref span406[num]; QuestSequence obj213 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - ref QuestStep reference291 = ref CollectionsMarshal.AsSpan(list413)[0]; + index2 = 1; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + Span span413 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + ref QuestStep reference291 = ref span413[num2]; QuestStep questStep68 = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621); - num3 = 1; - List list414 = new List(num3); - CollectionsMarshal.SetCount(list414, num3); - CollectionsMarshal.AsSpan(list414)[0] = new DialogueChoice + index3 = 1; + List list414 = new List(index3); + CollectionsMarshal.SetCount(list414, index3); + Span span414 = CollectionsMarshal.AsSpan(list414); + num3 = 0; + span414[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDE106_03148_Q1_000_000") @@ -207383,7 +250973,8 @@ public static class AssemblyQuestLoader reference291 = questStep68; obj213.Steps = list413; reference290 = obj213; - ref QuestSequence reference292 = ref span113[6]; + num++; + ref QuestSequence reference292 = ref span406[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue @@ -207391,7 +250982,9 @@ public static class AssemblyQuestLoader num2 = 1; List list415 = new List(num2); CollectionsMarshal.SetCount(list415, num2); - CollectionsMarshal.AsSpan(list415)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026242u, new Vector3(773.3424f, 80f, 437.70496f), 621) + Span span415 = CollectionsMarshal.AsSpan(list415); + index2 = 0; + span415[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026242u, new Vector3(773.3424f, 80f, 437.70496f), 621) { StopDistance = 5f }; @@ -207404,21 +250997,26 @@ public static class AssemblyQuestLoader num = 1; List list416 = new List(num); CollectionsMarshal.SetCount(list416, num); - CollectionsMarshal.AsSpan(list416)[0] = "JerryWester"; + Span span416 = CollectionsMarshal.AsSpan(list416); + index = 0; + span416[index] = "JerryWester"; questRoot41.Author = list416; - num = 5; - List list417 = new List(num); - CollectionsMarshal.SetCount(list417, num); - Span span115 = CollectionsMarshal.AsSpan(list417); - ref QuestSequence reference293 = ref span115[0]; + index = 5; + List list417 = new List(index); + CollectionsMarshal.SetCount(list417, index); + Span span417 = CollectionsMarshal.AsSpan(list417); + num = 0; + ref QuestSequence reference293 = ref span417[num]; QuestSequence obj215 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list418 = new List(num2); - CollectionsMarshal.SetCount(list418, num2); - CollectionsMarshal.AsSpan(list418)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026242u, new Vector3(773.3424f, 80f, 437.70496f), 621) + index2 = 1; + List list418 = new List(index2); + CollectionsMarshal.SetCount(list418, index2); + Span span418 = CollectionsMarshal.AsSpan(list418); + num2 = 0; + span418[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026242u, new Vector3(773.3424f, 80f, 437.70496f), 621) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -207432,7 +251030,8 @@ public static class AssemblyQuestLoader }; obj215.Steps = list418; reference293 = obj215; - ref QuestSequence reference294 = ref span115[1]; + num++; + ref QuestSequence reference294 = ref span417[num]; QuestSequence obj216 = new QuestSequence { Sequence = 1 @@ -207440,18 +251039,23 @@ public static class AssemblyQuestLoader num2 = 1; List list419 = new List(num2); CollectionsMarshal.SetCount(list419, num2); - CollectionsMarshal.AsSpan(list419)[0] = new QuestStep(EInteractionType.Interact, 1026247u, new Vector3(-9.201294f, 0f, -5.44751f), 351); + Span span419 = CollectionsMarshal.AsSpan(list419); + index2 = 0; + span419[index2] = new QuestStep(EInteractionType.Interact, 1026247u, new Vector3(-9.201294f, 0f, -5.44751f), 351); obj216.Steps = list419; reference294 = obj216; - ref QuestSequence reference295 = ref span115[2]; + num++; + ref QuestSequence reference295 = ref span417[num]; QuestSequence obj217 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list420 = new List(num2); - CollectionsMarshal.SetCount(list420, num2); - CollectionsMarshal.AsSpan(list420)[0] = new QuestStep(EInteractionType.Interact, 1026249u, new Vector3(66.20886f, 40f, 69.93213f), 128) + index2 = 1; + List list420 = new List(index2); + CollectionsMarshal.SetCount(list420, index2); + Span span420 = CollectionsMarshal.AsSpan(list420); + num2 = 0; + span420[num2] = new QuestStep(EInteractionType.Interact, 1026249u, new Vector3(66.20886f, 40f, 69.93213f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -207462,7 +251066,8 @@ public static class AssemblyQuestLoader }; obj217.Steps = list420; reference295 = obj217; - ref QuestSequence reference296 = ref span115[3]; + num++; + ref QuestSequence reference296 = ref span417[num]; QuestSequence obj218 = new QuestSequence { Sequence = 3 @@ -207470,24 +251075,29 @@ public static class AssemblyQuestLoader num2 = 1; List list421 = new List(num2); CollectionsMarshal.SetCount(list421, num2); - CollectionsMarshal.AsSpan(list421)[0] = new QuestStep(EInteractionType.Interact, 1026249u, new Vector3(66.20886f, 40f, 69.93213f), 128); + Span span421 = CollectionsMarshal.AsSpan(list421); + index2 = 0; + span421[index2] = new QuestStep(EInteractionType.Interact, 1026249u, new Vector3(66.20886f, 40f, 69.93213f), 128); obj218.Steps = list421; reference296 = obj218; - ref QuestSequence reference297 = ref span115[4]; + num++; + ref QuestSequence reference297 = ref span417[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list422 = new List(num2); - CollectionsMarshal.SetCount(list422, num2); - Span span116 = CollectionsMarshal.AsSpan(list422); - span116[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 2; + List list422 = new List(index2); + CollectionsMarshal.SetCount(list422, index2); + Span span422 = CollectionsMarshal.AsSpan(list422); + num2 = 0; + span422[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span116[1] = new QuestStep(EInteractionType.CompleteQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); + num2++; + span422[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); obj219.Steps = list422; reference297 = obj219; questRoot41.QuestSequence = list417; @@ -207501,13 +251111,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -207515,66 +251128,91 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025912u, new Vector3(66.57507f, 10.503965f, -155.59625f), 628) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025912u, new Vector3(66.57507f, 10.503965f, -155.59625f), 628) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1022620u, new Vector3(-4.7455444f, 0.022830343f, -113.96973f), 628); int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span5 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span4[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1019063u, new Vector3(3.3416748f, -6.6541724E-11f, -67.73486f), 628); - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list6; reference4 = questStep2; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span4[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1022628u, new Vector3(38.651123f, 2.99999f, -66.7583f), 628); num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list7; reference5 = questStep3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -207582,24 +251220,30 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1025912u, new Vector3(66.57507f, 10.503965f, -155.59625f), 628); + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.Interact, 1025912u, new Vector3(66.57507f, 10.503965f, -155.59625f), 628); obj3.Steps = list8; reference6 = obj3; - ref QuestSequence reference7 = ref span[3]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1026349u, new Vector3(62.18042f, 5.991543f, -106.126526f), 628) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.Interact, 1026349u, new Vector3(62.18042f, 5.991543f, -106.126526f), 628) { StopDistance = 5f }; obj4.Steps = list9; reference7 = obj4; - ref QuestSequence reference8 = ref span[4]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -207607,24 +251251,30 @@ public static class AssemblyQuestLoader num2 = 3; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span6 = CollectionsMarshal.AsSpan(list10); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.39469f, 5.8110533f, -121.784775f), 628); - span6[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.780495f, -8.000002f, -127.28816f), 628) + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.39469f, 5.8110533f, -121.784775f), 628); + index2++; + span10[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.780495f, -8.000002f, -127.28816f), 628) { DisableNavmesh = true }; - span6[2] = new QuestStep(EInteractionType.Interact, 1026457u, new Vector3(62.271973f, -8.0999975f, -225.2995f), 628); + index2++; + span10[index2] = new QuestStep(EInteractionType.Interact, 1026457u, new Vector3(62.271973f, -8.0999975f, -225.2995f), 628); obj5.Steps = list10; reference8 = obj5; - ref QuestSequence reference9 = ref span[5]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026353u, new Vector3(45.456543f, -7.470526f, -261.34125f), 628) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026353u, new Vector3(45.456543f, -7.470526f, -261.34125f), 628) { NextQuestId = new QuestId(3151) }; @@ -207637,13 +251287,16 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "liza"; + Span span12 = CollectionsMarshal.AsSpan(list12); + index = 0; + span12[index] = "liza"; questRoot2.Author = list12; - num = 6; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span7 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference10 = ref span7[0]; + index = 6; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference10 = ref span13[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -207651,21 +251304,26 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026351u, new Vector3(45.090332f, -7.469796f, -262.7146f), 628) + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026351u, new Vector3(45.090332f, -7.469796f, -262.7146f), 628) { StopDistance = 5f }; obj7.Steps = list14; reference10 = obj7; - ref QuestSequence reference11 = ref span7[1]; + num++; + ref QuestSequence reference11 = ref span13[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1026355u, new Vector3(841.27563f, 1.1792023f, 861.90576f), 613) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.Interact, 1026355u, new Vector3(841.27563f, 1.1792023f, 861.90576f), 613) { Mount = true, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -207677,7 +251335,8 @@ public static class AssemblyQuestLoader }; obj8.Steps = list15; reference11 = obj8; - ref QuestSequence reference12 = ref span7[2]; + num++; + ref QuestSequence reference12 = ref span13[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 @@ -207685,27 +251344,33 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1019166u, new Vector3(495.6587f, 29.394592f, 722.0111f), 613) + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.Interact, 1019166u, new Vector3(495.6587f, 29.394592f, 722.0111f), 613) { Fly = true }; obj9.Steps = list16; reference12 = obj9; - ref QuestSequence reference13 = ref span7[3]; + num++; + ref QuestSequence reference13 = ref span13[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1026366u, new Vector3(433.73767f, 30.29471f, 780.69727f), 613) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.Interact, 1026366u, new Vector3(433.73767f, 30.29471f, 780.69727f), 613) { Fly = true }; obj10.Steps = list17; reference13 = obj10; - ref QuestSequence reference14 = ref span7[4]; + num++; + ref QuestSequence reference14 = ref span13[num]; QuestSequence obj11 = new QuestSequence { Sequence = 4 @@ -207713,18 +251378,23 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1026367u, new Vector3(297.32202f, 0.35283074f, 470.51184f), 613); + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.Interact, 1026367u, new Vector3(297.32202f, 0.35283074f, 470.51184f), 613); obj11.Steps = list18; reference14 = obj11; - ref QuestSequence reference15 = ref span7[5]; + num++; + ref QuestSequence reference15 = ref span13[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026369u, new Vector3(-35.080566f, 5.983372f, -152.23932f), 628) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026369u, new Vector3(-35.080566f, 5.983372f, -152.23932f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -207743,13 +251413,16 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + Span span20 = CollectionsMarshal.AsSpan(list20); + index = 0; + span20[index] = "liza"; questRoot3.Author = list20; - num = 7; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span8 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference16 = ref span8[0]; + index = 7; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + Span span21 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference16 = ref span21[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -207757,19 +251430,23 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); obj13.Steps = list22; reference16 = obj13; - ref QuestSequence reference17 = ref span8[1]; + num++; + ref QuestSequence reference17 = ref span21[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span9 = CollectionsMarshal.AsSpan(list23); - span9[0] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) + index2 = 2; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) { TargetTerritoryId = (ushort)764, Fly = true, @@ -207780,10 +251457,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - span9[1] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + num2++; + span23[num2] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj14.Steps = list23; reference17 = obj14; - ref QuestSequence reference18 = ref span8[2]; + num++; + ref QuestSequence reference18 = ref span21[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 @@ -207791,18 +251470,23 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1026204u, new Vector3(74.23511f, -90.00003f, -457.3587f), 764); + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.Interact, 1026204u, new Vector3(74.23511f, -90.00003f, -457.3587f), 764); obj15.Steps = list24; reference18 = obj15; - ref QuestSequence reference19 = ref span8[3]; + num++; + ref QuestSequence reference19 = ref span21[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Duty, null, null, 764) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.Duty, null, null, 764) { DutyOptions = new DutyOptions { @@ -207811,11 +251495,13 @@ public static class AssemblyQuestLoader }; obj16.Steps = list25; reference19 = obj16; - span8[4] = new QuestSequence + num++; + span21[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference20 = ref span8[5]; + num++; + ref QuestSequence reference20 = ref span21[num]; QuestSequence obj17 = new QuestSequence { Sequence = 5 @@ -207823,18 +251509,23 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj17.Steps = list26; reference20 = obj17; - ref QuestSequence reference21 = ref span8[6]; + num++; + ref QuestSequence reference21 = ref span21[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, NextQuestId = new QuestId(3165) @@ -207848,13 +251539,16 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "CryoTechnic"; + Span span28 = CollectionsMarshal.AsSpan(list28); + index = 0; + span28[index] = "CryoTechnic"; questRoot4.Author = list28; - num = 4; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span10 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference22 = ref span10[0]; + index = 4; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + Span span29 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference22 = ref span29[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -207862,7 +251556,9 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -207875,17 +251571,20 @@ public static class AssemblyQuestLoader }; obj19.Steps = list30; reference22 = obj19; - ref QuestSequence reference23 = ref span10[1]; + num++; + ref QuestSequence reference23 = ref span29[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span11 = CollectionsMarshal.AsSpan(list31); - span11[0] = new QuestStep(EInteractionType.Interact, 1025757u, new Vector3(65.35437f, -8.7688285E-08f, -67.91791f), 759); - span11[1] = new QuestStep(EInteractionType.Interact, 1026314u, new Vector3(-92.02722f, 1.674677f, 145.09802f), 759) + index2 = 2; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.Interact, 1025757u, new Vector3(65.35437f, -8.7688285E-08f, -67.91791f), 759); + num2++; + span31[num2] = new QuestStep(EInteractionType.Interact, 1026314u, new Vector3(-92.02722f, 1.674677f, 145.09802f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, AethernetShortcut = new AethernetShortcut @@ -207896,7 +251595,8 @@ public static class AssemblyQuestLoader }; obj20.Steps = list31; reference23 = obj20; - ref QuestSequence reference24 = ref span10[2]; + num++; + ref QuestSequence reference24 = ref span29[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -207904,7 +251604,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1025755u, new Vector3(16.850666f, -5.9723854E-05f, -84.3385f), 759) + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.Interact, 1025755u, new Vector3(16.850666f, -5.9723854E-05f, -84.3385f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, AethernetShortcut = new AethernetShortcut @@ -207915,15 +251617,18 @@ public static class AssemblyQuestLoader }; obj21.Steps = list32; reference24 = obj21; - ref QuestSequence reference25 = ref span10[3]; + num++; + ref QuestSequence reference25 = ref span29[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024791u, new Vector3(31.60144f, 0.26581275f, 28.915894f), 759) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024791u, new Vector3(31.60144f, 0.26581275f, 28.915894f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, AethernetShortcut = new AethernetShortcut @@ -207941,13 +251646,16 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; + Span span34 = CollectionsMarshal.AsSpan(list34); + index = 0; + span34[index] = "liza"; questRoot5.Author = list34; - num = 6; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span12 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference26 = ref span12[0]; + index = 6; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + Span span35 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference26 = ref span35[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -207955,27 +251663,34 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635); + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635); obj23.Steps = list36; reference26 = obj23; - ref QuestSequence reference27 = ref span12[1]; + num++; + ref QuestSequence reference27 = ref span35[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list37)[0]; + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + ref QuestStep reference28 = ref span37[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1021937u, new Vector3(465.5984f, 69.25287f, 518.88293f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice + num4 = 1; + List list38 = new List(num4); + CollectionsMarshal.SetCount(list38, num4); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDR301_03154_Q2_000_051"), @@ -207985,11 +251700,13 @@ public static class AssemblyQuestLoader reference28 = obj25; obj24.Steps = list37; reference27 = obj24; - span12[2] = new QuestSequence + num++; + span35[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference29 = ref span12[3]; + num++; + ref QuestSequence reference29 = ref span35[num]; QuestSequence obj26 = new QuestSequence { Sequence = 3 @@ -207997,18 +251714,23 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1026450u, new Vector3(-35.01947f, -16.150002f, 156.20654f), 807); + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.Interact, 1026450u, new Vector3(-35.01947f, -16.150002f, 156.20654f), 807); obj26.Steps = list39; reference29 = obj26; - ref QuestSequence reference30 = ref span12[4]; + num++; + ref QuestSequence reference30 = ref span35[num]; QuestSequence obj27 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Duty, null, null, 807) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.Duty, null, null, 807) { DutyOptions = new DutyOptions { @@ -208017,7 +251739,8 @@ public static class AssemblyQuestLoader }; obj27.Steps = list40; reference30 = obj27; - ref QuestSequence reference31 = ref span12[5]; + num++; + ref QuestSequence reference31 = ref span35[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -208025,7 +251748,9 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026453u, new Vector3(-34.836426f, -16.15f, 153.8872f), 807) + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026453u, new Vector3(-34.836426f, -16.15f, 153.8872f), 807) { StopDistance = 5f, NextQuestId = new QuestId(3155) @@ -208039,27 +251764,33 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "liza"; + Span span42 = CollectionsMarshal.AsSpan(list42); + index = 0; + span42[index] = "liza"; questRoot6.Author = list42; - num = 3; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span13 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference32 = ref span13[0]; + index = 3; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + Span span43 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference32 = ref span43[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026452u, new Vector3(-35.01947f, -16.150002f, 156.11499f), 807) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026452u, new Vector3(-35.01947f, -16.150002f, 156.11499f), 807) { StopDistance = 7f }; obj29.Steps = list44; reference32 = obj29; - ref QuestSequence reference33 = ref span13[1]; + num++; + ref QuestSequence reference33 = ref span43[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 @@ -208067,7 +251798,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Duty, null, null, 807) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.Duty, null, null, 807) { DutyOptions = new DutyOptions { @@ -208076,15 +251809,18 @@ public static class AssemblyQuestLoader }; obj30.Steps = list45; reference33 = obj30; - ref QuestSequence reference34 = ref span13[2]; + num++; + ref QuestSequence reference34 = ref span43[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026450u, new Vector3(-35.01947f, -16.150002f, 156.20654f), 807) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026450u, new Vector3(-35.01947f, -16.150002f, 156.20654f), 807) { StopDistance = 7f, NextQuestId = new QuestId(3156) @@ -208098,13 +251834,16 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - CollectionsMarshal.AsSpan(list47)[0] = "liza"; + Span span47 = CollectionsMarshal.AsSpan(list47); + index = 0; + span47[index] = "liza"; questRoot7.Author = list47; - num = 9; - List list48 = new List(num); - CollectionsMarshal.SetCount(list48, num); - Span span14 = CollectionsMarshal.AsSpan(list48); - ref QuestSequence reference35 = ref span14[0]; + index = 9; + List list48 = new List(index); + CollectionsMarshal.SetCount(list48, index); + Span span48 = CollectionsMarshal.AsSpan(list48); + num = 0; + ref QuestSequence reference35 = ref span48[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -208112,27 +251851,33 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026450u, new Vector3(-35.01947f, -16.150002f, 156.20654f), 807) + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span49[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026450u, new Vector3(-35.01947f, -16.150002f, 156.20654f), 807) { StopDistance = 7f }; obj32.Steps = list49; reference35 = obj32; - ref QuestSequence reference36 = ref span14[1]; + num++; + ref QuestSequence reference36 = ref span48[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1021937u, new Vector3(465.5984f, 69.25287f, 518.88293f), 612) + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.Interact, 1021937u, new Vector3(465.5984f, 69.25287f, 518.88293f), 612) { StopDistance = 7f }; obj33.Steps = list50; reference36 = obj33; - ref QuestSequence reference37 = ref span14[2]; + num++; + ref QuestSequence reference37 = ref span48[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -208140,24 +251885,30 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 2009608u, new Vector3(103.07471f, 0.62561035f, 41.794434f), 635) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.Interact, 2009608u, new Vector3(103.07471f, 0.62561035f, 41.794434f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj34.Steps = list51; reference37 = obj34; - ref QuestSequence reference38 = ref span14[3]; + num++; + ref QuestSequence reference38 = ref span48[num]; QuestSequence obj35 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1026472u, new Vector3(116.50256f, 0.6520418f, 43.9917f), 635); + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.Interact, 1026472u, new Vector3(116.50256f, 0.6520418f, 43.9917f), 635); obj35.Steps = list52; reference38 = obj35; - ref QuestSequence reference39 = ref span14[4]; + num++; + ref QuestSequence reference39 = ref span48[num]; QuestSequence obj36 = new QuestSequence { Sequence = 4 @@ -208165,8 +251916,9 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span15 = CollectionsMarshal.AsSpan(list53); - ref QuestStep reference40 = ref span15[0]; + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + ref QuestStep reference40 = ref span53[index2]; QuestStep obj37 = new QuestStep(EInteractionType.Interact, 1021947u, new Vector3(476.73767f, 69.83099f, 526.604f), 612) { Fly = true, @@ -208175,25 +251927,31 @@ public static class AssemblyQuestLoader num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new DialogueChoice + Span span54 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span54[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDR303_03156_SYSTEM_000_006") }; obj37.DialogueChoices = list54; reference40 = obj37; - span15[1] = new QuestStep(EInteractionType.Interact, 1026456u, new Vector3(-19.638367f, -16.65f, 144.06042f), 812); + index2++; + span53[index2] = new QuestStep(EInteractionType.Interact, 1026456u, new Vector3(-19.638367f, -16.65f, 144.06042f), 812); obj36.Steps = list53; reference39 = obj36; - ref QuestSequence reference41 = ref span14[5]; + num++; + ref QuestSequence reference41 = ref span48[num]; QuestSequence obj38 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Duty, null, null, 812) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.Duty, null, null, 812) { DutyOptions = new DutyOptions { @@ -208202,11 +251960,13 @@ public static class AssemblyQuestLoader }; obj38.Steps = list55; reference41 = obj38; - span14[6] = new QuestSequence + num++; + span48[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference42 = ref span14[7]; + num++; + ref QuestSequence reference42 = ref span48[num]; QuestSequence obj39 = new QuestSequence { Sequence = 7 @@ -208214,7 +251974,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Duty, null, null, 812) + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.Duty, null, null, 812) { DutyOptions = new DutyOptions { @@ -208223,15 +251985,18 @@ public static class AssemblyQuestLoader }; obj39.Steps = list56; reference42 = obj39; - ref QuestSequence reference43 = ref span14[8]; + num++; + ref QuestSequence reference43 = ref span48[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021937u, new Vector3(465.5984f, 69.25287f, 518.88293f), 612) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021937u, new Vector3(465.5984f, 69.25287f, 518.88293f), 612) { StopDistance = 7f, NextQuestId = new QuestId(3157) @@ -208245,13 +252010,16 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "liza"; + Span span58 = CollectionsMarshal.AsSpan(list58); + index = 0; + span58[index] = "liza"; questRoot8.Author = list58; - num = 10; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span16 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference44 = ref span16[0]; + index = 10; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + Span span59 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference44 = ref span59[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -208259,27 +252027,33 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021939u, new Vector3(464.98804f, 69.34f, 522.4231f), 612) + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021939u, new Vector3(464.98804f, 69.34f, 522.4231f), 612) { StopDistance = 5f }; obj41.Steps = list60; reference44 = obj41; - ref QuestSequence reference45 = ref span16[1]; + num++; + ref QuestSequence reference45 = ref span59[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1024746u, new Vector3(462.8518f, 69.31414f, 525.9021f), 612) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.Interact, 1024746u, new Vector3(462.8518f, 69.31414f, 525.9021f), 612) { StopDistance = 6f }; obj42.Steps = list61; reference45 = obj42; - ref QuestSequence reference46 = ref span16[2]; + num++; + ref QuestSequence reference46 = ref span59[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -208287,26 +252061,33 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.Interact, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj43.Steps = list62; reference46 = obj43; - ref QuestSequence reference47 = ref span16[3]; + num++; + ref QuestSequence reference47 = ref span59[num]; QuestSequence obj44 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list63)[0]; + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference48 = ref span63[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1026712u, new Vector3(113.23718f, 0.6520417f, 56.839844f), 635); - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice + num4 = 1; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + Span span64 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span64[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDR304_03157_Q1_000_102"), @@ -208316,7 +252097,8 @@ public static class AssemblyQuestLoader reference48 = questStep4; obj44.Steps = list63; reference47 = obj44; - ref QuestSequence reference49 = ref span16[4]; + num++; + ref QuestSequence reference49 = ref span59[num]; QuestSequence obj45 = new QuestSequence { Sequence = 4 @@ -208324,21 +252106,27 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1026465u, new Vector3(-38.92578f, -0.0364509f, -3.7385254f), 635); + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.Interact, 1026465u, new Vector3(-38.92578f, -0.0364509f, -3.7385254f), 635); obj45.Steps = list65; reference49 = obj45; - ref QuestSequence reference50 = ref span16[5]; + num++; + ref QuestSequence reference50 = ref span59[num]; QuestSequence obj46 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1026466u, new Vector3(-114.58002f, 0.5980477f, -33.829346f), 635); + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.Interact, 1026466u, new Vector3(-114.58002f, 0.5980477f, -33.829346f), 635); obj46.Steps = list66; reference50 = obj46; - ref QuestSequence reference51 = ref span16[6]; + num++; + ref QuestSequence reference51 = ref span59[num]; QuestSequence obj47 = new QuestSequence { Sequence = 6 @@ -208346,24 +252134,30 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1026467u, new Vector3(-150.4082f, -2.7350852f, -139.20807f), 635); + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.Interact, 1026467u, new Vector3(-150.4082f, -2.7350852f, -139.20807f), 635); obj47.Steps = list67; reference51 = obj47; - ref QuestSequence reference52 = ref span16[7]; + num++; + ref QuestSequence reference52 = ref span59[num]; QuestSequence obj48 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Emote, 1026467u, new Vector3(-150.4082f, -2.7350852f, -139.20807f), 635) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.Emote, 1026467u, new Vector3(-150.4082f, -2.7350852f, -139.20807f), 635) { Emote = EEmote.Pet }; obj48.Steps = list68; reference52 = obj48; - ref QuestSequence reference53 = ref span16[8]; + num++; + ref QuestSequence reference53 = ref span59[num]; QuestSequence obj49 = new QuestSequence { Sequence = 8 @@ -208371,18 +252165,23 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1026468u, new Vector3(-13.778931f, 0.98160696f, 70.54236f), 635); + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.Interact, 1026468u, new Vector3(-13.778931f, 0.98160696f, 70.54236f), 635); obj49.Steps = list69; reference53 = obj49; - ref QuestSequence reference54 = ref span16[9]; + num++; + ref QuestSequence reference54 = ref span59[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635); obj50.Steps = list70; reference54 = obj50; questRoot8.QuestSequence = list59; @@ -208392,13 +252191,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "plogon_enjoyer"; + Span span71 = CollectionsMarshal.AsSpan(list71); + index = 0; + span71[index] = "plogon_enjoyer"; questRoot9.Author = list71; - num = 10; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span17 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference55 = ref span17[0]; + index = 10; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + Span span72 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference55 = ref span72[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -208406,7 +252208,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026380u, new Vector3(94.22449f, 12.000005f, -72.55664f), 628) + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026380u, new Vector3(94.22449f, 12.000005f, -72.55664f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -208419,15 +252223,18 @@ public static class AssemblyQuestLoader }; obj51.Steps = list73; reference55 = obj51; - ref QuestSequence reference56 = ref span17[1]; + num++; + ref QuestSequence reference56 = ref span72[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 2009604u, new Vector3(-85.19116f, -7.0039062f, -52.84204f), 628) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.Interact, 2009604u, new Vector3(-85.19116f, -7.0039062f, -52.84204f), 628) { AethernetShortcut = new AethernetShortcut { @@ -208437,7 +252244,8 @@ public static class AssemblyQuestLoader }; obj52.Steps = list74; reference56 = obj52; - ref QuestSequence reference57 = ref span17[2]; + num++; + ref QuestSequence reference57 = ref span72[num]; QuestSequence obj53 = new QuestSequence { Sequence = 2 @@ -208445,18 +252253,23 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1026381u, new Vector3(139.33008f, 25f, -7.0039062f), 628); + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.Interact, 1026381u, new Vector3(139.33008f, 25f, -7.0039062f), 628); obj53.Steps = list75; reference57 = obj53; - ref QuestSequence reference58 = ref span17[3]; + num++; + ref QuestSequence reference58 = ref span72[num]; QuestSequence obj54 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1026383u, new Vector3(-79.14862f, 17.999998f, -176.47064f), 628) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.Interact, 1026383u, new Vector3(-79.14862f, 17.999998f, -176.47064f), 628) { AethernetShortcut = new AethernetShortcut { @@ -208466,7 +252279,8 @@ public static class AssemblyQuestLoader }; obj54.Steps = list76; reference58 = obj54; - ref QuestSequence reference59 = ref span17[4]; + num++; + ref QuestSequence reference59 = ref span72[num]; QuestSequence obj55 = new QuestSequence { Sequence = 4 @@ -208474,12 +252288,16 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list77)[0]; + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + ref QuestStep reference60 = ref span77[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1026384u, new Vector3(-107.71344f, 11.902365f, -140.73401f), 628); num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new DialogueChoice + Span span78 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span78[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANALL210_03161_Q3_000_000") @@ -208488,18 +252306,22 @@ public static class AssemblyQuestLoader reference60 = questStep5; obj55.Steps = list77; reference59 = obj55; - ref QuestSequence reference61 = ref span17[5]; + num++; + ref QuestSequence reference61 = ref span72[num]; QuestSequence obj56 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1026385u, new Vector3(-108.14075f, 11.902366f, -140.58142f), 628); + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.Interact, 1026385u, new Vector3(-108.14075f, 11.902366f, -140.58142f), 628); obj56.Steps = list79; reference61 = obj56; - ref QuestSequence reference62 = ref span17[6]; + num++; + ref QuestSequence reference62 = ref span72[num]; QuestSequence obj57 = new QuestSequence { Sequence = 6 @@ -208507,7 +252329,9 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1026386u, new Vector3(-4.989685f, 0.25f, -103.50195f), 628) + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.Interact, 1026386u, new Vector3(-4.989685f, 0.25f, -103.50195f), 628) { AethernetShortcut = new AethernetShortcut { @@ -208517,15 +252341,18 @@ public static class AssemblyQuestLoader }; obj57.Steps = list80; reference62 = obj57; - ref QuestSequence reference63 = ref span17[7]; + num++; + ref QuestSequence reference63 = ref span72[num]; QuestSequence obj58 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1026388u, new Vector3(-82.414f, -2.9999976f, 62.42456f), 628) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.Interact, 1026388u, new Vector3(-82.414f, -2.9999976f, 62.42456f), 628) { AethernetShortcut = new AethernetShortcut { @@ -208535,7 +252362,8 @@ public static class AssemblyQuestLoader }; obj58.Steps = list81; reference63 = obj58; - ref QuestSequence reference64 = ref span17[8]; + num++; + ref QuestSequence reference64 = ref span72[num]; QuestSequence obj59 = new QuestSequence { Sequence = 8 @@ -208543,18 +252371,23 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1026389u, new Vector3(-84.763916f, -2.9999986f, 62.91284f), 628); + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.Interact, 1026389u, new Vector3(-84.763916f, -2.9999986f, 62.91284f), 628); obj59.Steps = list82; reference64 = obj59; - ref QuestSequence reference65 = ref span17[9]; + num++; + ref QuestSequence reference65 = ref span72[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026389u, new Vector3(-84.763916f, -2.9999986f, 62.91284f), 628) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026389u, new Vector3(-84.763916f, -2.9999986f, 62.91284f), 628) { ItemId = 2002488u, GroundTarget = true, @@ -208569,13 +252402,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "plogon_enjoyer"; + Span span84 = CollectionsMarshal.AsSpan(list84); + index = 0; + span84[index] = "plogon_enjoyer"; questRoot10.Author = list84; - num = 7; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span18 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference66 = ref span18[0]; + index = 7; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference66 = ref span85[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -208583,7 +252419,9 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026388u, new Vector3(-82.414f, -2.9999976f, 62.42456f), 628) + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026388u, new Vector3(-82.414f, -2.9999976f, 62.42456f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -208605,15 +252443,18 @@ public static class AssemblyQuestLoader }; obj61.Steps = list86; reference66 = obj61; - ref QuestSequence reference67 = ref span18[1]; + num++; + ref QuestSequence reference67 = ref span85[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1026395u, new Vector3(857.4501f, 6.9450293f, 804.7455f), 613) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.Interact, 1026395u, new Vector3(857.4501f, 6.9450293f, 804.7455f), 613) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -208624,7 +252465,8 @@ public static class AssemblyQuestLoader }; obj62.Steps = list87; reference67 = obj62; - ref QuestSequence reference68 = ref span18[2]; + num++; + ref QuestSequence reference68 = ref span85[num]; QuestSequence obj63 = new QuestSequence { Sequence = 2 @@ -208632,32 +252474,38 @@ public static class AssemblyQuestLoader num2 = 2; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span19 = CollectionsMarshal.AsSpan(list88); - span19[0] = new QuestStep(EInteractionType.Interact, 1026398u, new Vector3(840.3906f, 6.9450293f, 819.6688f), 613) + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.Interact, 1026398u, new Vector3(840.3906f, 6.9450293f, 819.6688f), 613) { Fly = true }; - span19[1] = new QuestStep(EInteractionType.Interact, 1026397u, new Vector3(848.6304f, 1.1792068f, 863.8589f), 613) + index2++; + span88[index2] = new QuestStep(EInteractionType.Interact, 1026397u, new Vector3(848.6304f, 1.1792068f, 863.8589f), 613) { Fly = true }; obj63.Steps = list88; reference68 = obj63; - ref QuestSequence reference69 = ref span18[3]; + num++; + ref QuestSequence reference69 = ref span85[num]; QuestSequence obj64 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1026399u, new Vector3(867.42944f, 1.1792068f, 844.75464f), 613) + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.Interact, 1026399u, new Vector3(867.42944f, 1.1792068f, 844.75464f), 613) { Fly = true }; obj64.Steps = list89; reference69 = obj64; - ref QuestSequence reference70 = ref span18[4]; + num++; + ref QuestSequence reference70 = ref span85[num]; QuestSequence obj65 = new QuestSequence { Sequence = 4 @@ -208665,37 +252513,44 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1026401u, new Vector3(-773.1289f, 2.941284f, -360.9217f), 613) + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.Interact, 1026401u, new Vector3(-773.1289f, 2.941284f, -360.9217f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj65.Steps = list90; reference70 = obj65; - ref QuestSequence reference71 = ref span18[5]; + num++; + ref QuestSequence reference71 = ref span85[num]; QuestSequence obj66 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - Span span20 = CollectionsMarshal.AsSpan(list91); - span20[0] = new QuestStep(EInteractionType.Interact, 1026406u, new Vector3(-722.9267f, 1.2855811f, -568.5359f), 613) + index2 = 3; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span91[num2] = new QuestStep(EInteractionType.Interact, 1026406u, new Vector3(-722.9267f, 1.2855811f, -568.5359f), 613) { Fly = true }; - span20[1] = new QuestStep(EInteractionType.Interact, 1026404u, new Vector3(-716.09064f, 1.2506801f, -593.62177f), 613) + num2++; + span91[num2] = new QuestStep(EInteractionType.Interact, 1026404u, new Vector3(-716.09064f, 1.2506801f, -593.62177f), 613) { Fly = true }; - span20[2] = new QuestStep(EInteractionType.Interact, 1026405u, new Vector3(-739.98627f, 1.960285f, -611.2917f), 613) + num2++; + span91[num2] = new QuestStep(EInteractionType.Interact, 1026405u, new Vector3(-739.98627f, 1.960285f, -611.2917f), 613) { Fly = true }; obj66.Steps = list91; reference71 = obj66; - ref QuestSequence reference72 = ref span18[6]; + num++; + ref QuestSequence reference72 = ref span85[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -208703,7 +252558,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026401u, new Vector3(-773.1289f, 2.941284f, -360.9217f), 613) + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026401u, new Vector3(-773.1289f, 2.941284f, -360.9217f), 613) { Fly = true, NextQuestId = new QuestId(3163) @@ -208717,21 +252574,26 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "plogon_enjoyer"; + Span span93 = CollectionsMarshal.AsSpan(list93); + index = 0; + span93[index] = "plogon_enjoyer"; questRoot11.Author = list93; - num = 5; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span21 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference73 = ref span21[0]; + index = 5; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + Span span94 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference73 = ref span94[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list95)[0]; + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + ref QuestStep reference74 = ref span95[num2]; QuestStep obj69 = new QuestStep(EInteractionType.AcceptQuest, 1026401u, new Vector3(-773.1289f, 2.941284f, -360.9217f), 613) { Fly = true, @@ -208744,10 +252606,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = new DialogueChoice + num4 = 1; + List list96 = new List(num4); + CollectionsMarshal.SetCount(list96, num4); + Span span96 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span96[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL230_03163_Q1_000_000"), @@ -208757,7 +252621,8 @@ public static class AssemblyQuestLoader reference74 = obj69; obj68.Steps = list95; reference73 = obj68; - ref QuestSequence reference75 = ref span21[1]; + num++; + ref QuestSequence reference75 = ref span94[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -208765,28 +252630,34 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1026414u, new Vector3(-778.28644f, 127.27075f, 129.74744f), 622) + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.Interact, 1026414u, new Vector3(-778.28644f, 127.27075f, 129.74744f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh }; obj70.Steps = list97; reference75 = obj70; - ref QuestSequence reference76 = ref span21[2]; + num++; + ref QuestSequence reference76 = ref span94[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 2009605u, new Vector3(27.17627f, 114.88513f, -15.030151f), 622) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.Interact, 2009605u, new Vector3(27.17627f, 114.88513f, -15.030151f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj71.Steps = list98; reference76 = obj71; - ref QuestSequence reference77 = ref span21[3]; + num++; + ref QuestSequence reference77 = ref span94[num]; QuestSequence obj72 = new QuestSequence { Sequence = 3 @@ -208794,18 +252665,23 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1026420u, new Vector3(-102.73901f, 116.043f, -48.142273f), 622); + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.Interact, 1026420u, new Vector3(-102.73901f, 116.043f, -48.142273f), 622); obj72.Steps = list99; reference77 = obj72; - ref QuestSequence reference78 = ref span21[4]; + num++; + ref QuestSequence reference78 = ref span94[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026422u, new Vector3(-779.0799f, 127.277245f, 127.91626f), 622) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026422u, new Vector3(-779.0799f, 127.277245f, 127.91626f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -208820,13 +252696,16 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "plogon_enjoyer"; + Span span101 = CollectionsMarshal.AsSpan(list101); + index = 0; + span101[index] = "plogon_enjoyer"; questRoot12.Author = list101; - num = 5; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span22 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference79 = ref span22[0]; + index = 5; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + Span span102 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference79 = ref span102[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -208834,7 +252713,9 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026421u, new Vector3(-779.7818f, 127.269035f, 129.74744f), 622) + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span103[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026421u, new Vector3(-779.7818f, 127.269035f, 129.74744f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -208852,15 +252733,18 @@ public static class AssemblyQuestLoader }; obj74.Steps = list103; reference79 = obj74; - ref QuestSequence reference80 = ref span22[1]; + num++; + ref QuestSequence reference80 = ref span102[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 2009606u, new Vector3(-77.62268f, 11.825684f, -155.169f), 628) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.Interact, 2009606u, new Vector3(-77.62268f, 11.825684f, -155.169f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -208871,7 +252755,8 @@ public static class AssemblyQuestLoader }; obj75.Steps = list104; reference80 = obj75; - ref QuestSequence reference81 = ref span22[2]; + num++; + ref QuestSequence reference81 = ref span102[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 @@ -208879,7 +252764,9 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1026425u, new Vector3(-72.129456f, 15.000005f, 70.450806f), 628) + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.Interact, 1026425u, new Vector3(-72.129456f, 15.000005f, 70.450806f), 628) { AethernetShortcut = new AethernetShortcut { @@ -208889,18 +252776,22 @@ public static class AssemblyQuestLoader }; obj76.Steps = list105; reference81 = obj76; - ref QuestSequence reference82 = ref span22[3]; + num++; + ref QuestSequence reference82 = ref span102[num]; QuestSequence obj77 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 2009607u, new Vector3(-31.47937f, 14.999573f, 61.08191f), 628); + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.Interact, 2009607u, new Vector3(-31.47937f, 14.999573f, 61.08191f), 628); obj77.Steps = list106; reference82 = obj77; - ref QuestSequence reference83 = ref span22[4]; + num++; + ref QuestSequence reference83 = ref span102[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -208908,7 +252799,9 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list107)[0]; + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + ref QuestStep reference84 = ref span107[index2]; QuestStep obj79 = new QuestStep(EInteractionType.CompleteQuest, 1026426u, new Vector3(-81.498474f, 11.82907f, -155.53528f), 628) { AethernetShortcut = new AethernetShortcut @@ -208920,7 +252813,9 @@ public static class AssemblyQuestLoader num3 = 1; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new DialogueChoice + Span span108 = CollectionsMarshal.AsSpan(list108); + num4 = 0; + span108[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANALL240_03164_Q1_000_000") @@ -208936,24 +252831,30 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + Span span109 = CollectionsMarshal.AsSpan(list109); + index = 0; + span109[index] = "liza"; questRoot13.Author = list109; - num = 5; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span23 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference85 = ref span23[0]; + index = 5; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + Span span110 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference85 = ref span110[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); obj80.Steps = list111; reference85 = obj80; - ref QuestSequence reference86 = ref span23[1]; + num++; + ref QuestSequence reference86 = ref span110[num]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -208961,8 +252862,9 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span24 = CollectionsMarshal.AsSpan(list112); - span24[0] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) { TargetTerritoryId = (ushort)764, Fly = true, @@ -208973,25 +252875,30 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - span24[1] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + index2++; + span112[index2] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj81.Steps = list112; reference86 = obj81; - ref QuestSequence reference87 = ref span23[2]; + num++; + ref QuestSequence reference87 = ref span110[num]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1026581u, new Vector3(798.4894f, -0.079232015f, -300.67908f), 613) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.Interact, 1026581u, new Vector3(798.4894f, -0.079232015f, -300.67908f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; obj82.Steps = list113; reference87 = obj82; - ref QuestSequence reference88 = ref span23[3]; + num++; + ref QuestSequence reference88 = ref span110[num]; QuestSequence obj83 = new QuestSequence { Sequence = 3 @@ -208999,7 +252906,9 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Duty, null, null, 613) + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = new QuestStep(EInteractionType.Duty, null, null, 613) { DutyOptions = new DutyOptions { @@ -209008,15 +252917,18 @@ public static class AssemblyQuestLoader }; obj83.Steps = list114; reference88 = obj83; - ref QuestSequence reference89 = ref span23[4]; + num++; + ref QuestSequence reference89 = ref span110[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026581u, new Vector3(798.4894f, -0.079232015f, -300.67908f), 613) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span115[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026581u, new Vector3(798.4894f, -0.079232015f, -300.67908f), 613) { StopDistance = 6f, NextQuestId = new QuestId(3166) @@ -209030,13 +252942,16 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "liza"; + Span span116 = CollectionsMarshal.AsSpan(list116); + index = 0; + span116[index] = "liza"; questRoot14.Author = list116; - num = 6; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span25 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference90 = ref span25[0]; + index = 6; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + Span span117 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference90 = ref span117[num]; QuestSequence obj85 = new QuestSequence { Sequence = 0 @@ -209044,22 +252959,26 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026581u, new Vector3(798.4894f, -0.079232015f, -300.67908f), 613) + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span118[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026581u, new Vector3(798.4894f, -0.079232015f, -300.67908f), 613) { StopDistance = 6f }; obj85.Steps = list118; reference90 = obj85; - ref QuestSequence reference91 = ref span25[1]; + num++; + ref QuestSequence reference91 = ref span117[num]; QuestSequence obj86 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - Span span26 = CollectionsMarshal.AsSpan(list119); - span26[0] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) + index2 = 2; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span119[num2] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) { TargetTerritoryId = (ushort)764, Fly = true, @@ -209070,10 +252989,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - span26[1] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + num2++; + span119[num2] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj86.Steps = list119; reference91 = obj86; - ref QuestSequence reference92 = ref span25[2]; + num++; + ref QuestSequence reference92 = ref span117[num]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -209081,49 +253002,68 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj87.Steps = list120; reference92 = obj87; - ref QuestSequence reference93 = ref span25[3]; + num++; + ref QuestSequence reference93 = ref span117[num]; QuestSequence obj88 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span27 = CollectionsMarshal.AsSpan(list121); - ref QuestStep reference94 = ref span27[0]; + index2 = 3; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + ref QuestStep reference94 = ref span121[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1028803u, new Vector3(8.804443f, -90f, -470.63403f), 764); - num3 = 6; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - Span span28 = CollectionsMarshal.AsSpan(list122); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list122 = new List(num4); + CollectionsMarshal.SetCount(list122, num4); + Span span122 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + span122[num3] = null; + num3++; + span122[num3] = null; + num3++; + span122[num3] = null; + num3++; + span122[num3] = null; + num3++; + span122[num3] = null; + num3++; + span122[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list122; reference94 = questStep6; - ref QuestStep reference95 = ref span27[1]; + num2++; + ref QuestStep reference95 = ref span121[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1028804u, new Vector3(74.23511f, -90.00003f, -457.3587f), 764); num3 = 6; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - Span span29 = CollectionsMarshal.AsSpan(list123); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span123 = CollectionsMarshal.AsSpan(list123); + num4 = 0; + span123[num4] = null; + num4++; + span123[num4] = null; + num4++; + span123[num4] = null; + num4++; + span123[num4] = null; + num4++; + span123[num4] = null; + num4++; + span123[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list123; - num3 = 1; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice + num4 = 1; + List list124 = new List(num4); + CollectionsMarshal.SetCount(list124, num4); + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span124[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY332_03166_Q2_000_000"), @@ -209131,23 +253071,31 @@ public static class AssemblyQuestLoader }; questStep7.DialogueChoices = list124; reference95 = questStep7; - ref QuestStep reference96 = ref span27[2]; + num2++; + ref QuestStep reference96 = ref span121[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1028805u, new Vector3(115.83118f, -90f, -470.81714f), 764); num3 = 6; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - Span span30 = CollectionsMarshal.AsSpan(list125); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span125 = CollectionsMarshal.AsSpan(list125); + num4 = 0; + span125[num4] = null; + num4++; + span125[num4] = null; + num4++; + span125[num4] = null; + num4++; + span125[num4] = null; + num4++; + span125[num4] = null; + num4++; + span125[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list125; reference96 = questStep8; obj88.Steps = list121; reference93 = obj88; - ref QuestSequence reference97 = ref span25[4]; + num++; + ref QuestSequence reference97 = ref span117[num]; QuestSequence obj89 = new QuestSequence { Sequence = 4 @@ -209155,18 +253103,23 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1028806u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span126[index2] = new QuestStep(EInteractionType.Interact, 1028806u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj89.Steps = list126; reference97 = obj89; - ref QuestSequence reference98 = ref span25[5]; + num++; + ref QuestSequence reference98 = ref span117[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, NextQuestId = new QuestId(3165) @@ -209180,13 +253133,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + Span span128 = CollectionsMarshal.AsSpan(list128); + index = 0; + span128[index] = "liza"; questRoot15.Author = list128; - num = 8; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span31 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference99 = ref span31[0]; + index = 8; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + Span span129 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference99 = ref span129[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -209194,21 +253150,26 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024351u, new Vector3(-36.270752f, 5.9819617f, -152.36133f), 628) + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span130[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024351u, new Vector3(-36.270752f, 5.9819617f, -152.36133f), 628) { StopDistance = 5f }; obj91.Steps = list130; reference99 = obj91; - ref QuestSequence reference100 = ref span31[1]; + num++; + ref QuestSequence reference100 = ref span129[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1026363u, new Vector3(54.61206f, 7.999999f, 192.401f), 628) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span131[num2] = new QuestStep(EInteractionType.Interact, 1026363u, new Vector3(54.61206f, 7.999999f, 192.401f), 628) { AethernetShortcut = new AethernetShortcut { @@ -209218,7 +253179,8 @@ public static class AssemblyQuestLoader }; obj92.Steps = list131; reference100 = obj92; - ref QuestSequence reference101 = ref span31[2]; + num++; + ref QuestSequence reference101 = ref span129[num]; QuestSequence obj93 = new QuestSequence { Sequence = 2 @@ -209226,7 +253188,9 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Duty, null, null, 628) + Span span132 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span132[index2] = new QuestStep(EInteractionType.Duty, null, null, 628) { DutyOptions = new DutyOptions { @@ -209235,15 +253199,18 @@ public static class AssemblyQuestLoader }; obj93.Steps = list132; reference101 = obj93; - ref QuestSequence reference102 = ref span31[3]; + num++; + ref QuestSequence reference102 = ref span129[num]; QuestSequence obj94 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1026364u, new Vector3(52.536743f, 8.02f, 192.49243f), 628) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.Interact, 1026364u, new Vector3(52.536743f, 8.02f, 192.49243f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -209256,7 +253223,8 @@ public static class AssemblyQuestLoader }; obj94.Steps = list133; reference102 = obj94; - ref QuestSequence reference103 = ref span31[4]; + num++; + ref QuestSequence reference103 = ref span129[num]; QuestSequence obj95 = new QuestSequence { Sequence = 4 @@ -209264,7 +253232,9 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1024351u, new Vector3(-36.270752f, 5.9819617f, -152.36133f), 628) + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span134[index2] = new QuestStep(EInteractionType.Interact, 1024351u, new Vector3(-36.270752f, 5.9819617f, -152.36133f), 628) { AethernetShortcut = new AethernetShortcut { @@ -209274,30 +253244,39 @@ public static class AssemblyQuestLoader }; obj95.Steps = list134; reference103 = obj95; - ref QuestSequence reference104 = ref span31[5]; + num++; + ref QuestSequence reference104 = ref span129[num]; QuestSequence obj96 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - Span span32 = CollectionsMarshal.AsSpan(list135); - ref QuestStep reference105 = ref span32[0]; + index2 = 2; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref QuestStep reference105 = ref span135[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1019063u, new Vector3(3.3416748f, -6.6541724E-11f, -67.73486f), 628); - num3 = 6; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span33 = CollectionsMarshal.AsSpan(list136); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list136 = new List(num4); + CollectionsMarshal.SetCount(list136, num4); + Span span136 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list136; reference105 = questStep9; - ref QuestStep reference106 = ref span32[1]; + num2++; + ref QuestStep reference106 = ref span135[num2]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1018994u, new Vector3(49.240845f, 4.0000005f, 55.77173f), 628) { AethernetShortcut = new AethernetShortcut @@ -209309,18 +253288,25 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - Span span34 = CollectionsMarshal.AsSpan(list137); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span137 = CollectionsMarshal.AsSpan(list137); + num4 = 0; + span137[num4] = null; + num4++; + span137[num4] = null; + num4++; + span137[num4] = null; + num4++; + span137[num4] = null; + num4++; + span137[num4] = null; + num4++; + span137[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj97.CompletionQuestVariablesFlags = list137; reference106 = obj97; obj96.Steps = list135; reference104 = obj96; - ref QuestSequence reference107 = ref span31[6]; + num++; + ref QuestSequence reference107 = ref span129[num]; QuestSequence obj98 = new QuestSequence { Sequence = 6 @@ -209328,7 +253314,9 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list138)[0]; + Span span138 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + ref QuestStep reference108 = ref span138[index2]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 1026369u, new Vector3(-35.080566f, 5.983372f, -152.23932f), 628) { AethernetShortcut = new AethernetShortcut @@ -209337,10 +253325,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRakuzaDistrict } }; - num3 = 1; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - CollectionsMarshal.AsSpan(list139)[0] = new DialogueChoice + num4 = 1; + List list139 = new List(num4); + CollectionsMarshal.SetCount(list139, num4); + Span span139 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span139[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB751_03167_Q1_000_000"), @@ -209350,15 +253340,18 @@ public static class AssemblyQuestLoader reference108 = obj99; obj98.Steps = list138; reference107 = obj98; - ref QuestSequence reference109 = ref span31[7]; + num++; + ref QuestSequence reference109 = ref span129[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025885u, new Vector3(26.443848f, 6.024561f, -118.57788f), 628) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025885u, new Vector3(26.443848f, 6.024561f, -118.57788f), 628) { StopDistance = 5f, NextQuestId = new QuestId(3168) @@ -209372,13 +253365,16 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "liza"; + Span span141 = CollectionsMarshal.AsSpan(list141); + index = 0; + span141[index] = "liza"; questRoot16.Author = list141; - num = 7; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span35 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference110 = ref span35[0]; + index = 7; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + Span span142 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference110 = ref span142[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -209386,32 +253382,40 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025885u, new Vector3(26.443848f, 6.024561f, -118.57788f), 628) + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025885u, new Vector3(26.443848f, 6.024561f, -118.57788f), 628) { StopDistance = 5f }; obj101.Steps = list143; reference110 = obj101; - ref QuestSequence reference111 = ref span35[1]; + num++; + ref QuestSequence reference111 = ref span142[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - Span span36 = CollectionsMarshal.AsSpan(list144); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.39469f, 5.8110533f, -121.784775f), 628); - span36[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.780495f, -8.000002f, -127.28816f), 628) + index2 = 3; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.39469f, 5.8110533f, -121.784775f), 628); + num2++; + span144[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.780495f, -8.000002f, -127.28816f), 628) { DisableNavmesh = true }; - ref QuestStep reference112 = ref span36[2]; + num2++; + ref QuestStep reference112 = ref span144[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1019068u, new Vector3(42.191162f, -7.463482f, -264.75934f), 628); num3 = 1; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - CollectionsMarshal.AsSpan(list145)[0] = new DialogueChoice + Span span145 = CollectionsMarshal.AsSpan(list145); + num4 = 0; + span145[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB752_03168_Q1_000_000"), @@ -209421,7 +253425,8 @@ public static class AssemblyQuestLoader reference112 = questStep10; obj102.Steps = list144; reference111 = obj102; - ref QuestSequence reference113 = ref span35[2]; + num++; + ref QuestSequence reference113 = ref span142[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 @@ -209429,7 +253434,9 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1019033u, new Vector3(52.048462f, 8.02f, 140.55078f), 628) + Span span146 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span146[index2] = new QuestStep(EInteractionType.Interact, 1019033u, new Vector3(52.048462f, 8.02f, 140.55078f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -209440,17 +253447,20 @@ public static class AssemblyQuestLoader }; obj103.Steps = list146; reference113 = obj103; - ref QuestSequence reference114 = ref span35[3]; + num++; + ref QuestSequence reference114 = ref span142[num]; QuestSequence obj104 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - Span span37 = CollectionsMarshal.AsSpan(list147); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(16.635633f, 11.441568f, 174.71848f), 628); - span37[1] = new QuestStep(EInteractionType.Interact, 1026764u, new Vector3(24.917969f, 6.0124164f, -123.979614f), 628) + index2 = 2; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(16.635633f, 11.441568f, 174.71848f), 628); + num2++; + span147[num2] = new QuestStep(EInteractionType.Interact, 1026764u, new Vector3(24.917969f, 6.0124164f, -123.979614f), 628) { AethernetShortcut = new AethernetShortcut { @@ -209460,7 +253470,8 @@ public static class AssemblyQuestLoader }; obj104.Steps = list147; reference114 = obj104; - ref QuestSequence reference115 = ref span35[4]; + num++; + ref QuestSequence reference115 = ref span142[num]; QuestSequence obj105 = new QuestSequence { Sequence = 4 @@ -209468,7 +253479,9 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1026350u, new Vector3(512.90137f, 0.8484344f, 148.91272f), 613) + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span148[index2] = new QuestStep(EInteractionType.Interact, 1026350u, new Vector3(512.90137f, 0.8484344f, 148.91272f), 613) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -209479,21 +253492,25 @@ public static class AssemblyQuestLoader }; obj105.Steps = list148; reference115 = obj105; - ref QuestSequence reference116 = ref span35[5]; + num++; + ref QuestSequence reference116 = ref span142[num]; QuestSequence obj106 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1026765u, new Vector3(495.10938f, 1.611506f, 149.49255f), 613) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.Interact, 1026765u, new Vector3(495.10938f, 1.611506f, 149.49255f), 613) { StopDistance = 5f }; obj106.Steps = list149; reference116 = obj106; - ref QuestSequence reference117 = ref span35[6]; + num++; + ref QuestSequence reference117 = ref span142[num]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue @@ -209501,7 +253518,9 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026766u, new Vector3(52.384155f, 10.503965f, -154.03986f), 628) + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026766u, new Vector3(52.384155f, 10.503965f, -154.03986f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, NextQuestId = new QuestId(4542) @@ -209515,21 +253534,26 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "liza"; + Span span151 = CollectionsMarshal.AsSpan(list151); + index = 0; + span151[index] = "liza"; questRoot17.Author = list151; - num = 2; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span38 = CollectionsMarshal.AsSpan(list152); - ref QuestSequence reference118 = ref span38[0]; + index = 2; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + Span span152 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref QuestSequence reference118 = ref span152[num]; QuestSequence obj108 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span153[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -209542,7 +253566,8 @@ public static class AssemblyQuestLoader }; obj108.Steps = list153; reference118 = obj108; - ref QuestSequence reference119 = ref span38[1]; + num++; + ref QuestSequence reference119 = ref span152[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -209550,7 +253575,9 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018393u, new Vector3(-60.380005f, 206.50021f, 26.16919f), 478); + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018393u, new Vector3(-60.380005f, 206.50021f, 26.16919f), 478); obj109.Steps = list154; reference119 = obj109; questRoot17.QuestSequence = list152; @@ -209560,24 +253587,30 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "liza"; + Span span155 = CollectionsMarshal.AsSpan(list155); + index = 0; + span155[index] = "liza"; questRoot18.Author = list155; - num = 3; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span39 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference120 = ref span39[0]; + index = 3; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + Span span156 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference120 = ref span156[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026746u, new Vector3(-55.588684f, 206.50021f, 18.57019f), 478); + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span157[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026746u, new Vector3(-55.588684f, 206.50021f, 18.57019f), 478); obj110.Steps = list157; reference120 = obj110; - ref QuestSequence reference121 = ref span39[1]; + num++; + ref QuestSequence reference121 = ref span156[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 @@ -209585,18 +253618,23 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1026747u, new Vector3(63.126587f, 205.63266f, 22.049255f), 478); + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.Interact, 1026747u, new Vector3(63.126587f, 205.63266f, 22.049255f), 478); obj111.Steps = list158; reference121 = obj111; - ref QuestSequence reference122 = ref span39[2]; + num++; + ref QuestSequence reference122 = ref span156[num]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026750u, new Vector3(-62.6994f, 206.50021f, 16.617004f), 478); + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026750u, new Vector3(-62.6994f, 206.50021f, 16.617004f), 478); obj112.Steps = list159; reference122 = obj112; questRoot18.QuestSequence = list156; @@ -209606,13 +253644,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "JerryWester"; + Span span160 = CollectionsMarshal.AsSpan(list160); + index = 0; + span160[index] = "JerryWester"; questRoot19.Author = list160; - num = 3; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span40 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference123 = ref span40[0]; + index = 3; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + Span span161 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference123 = ref span161[num]; QuestSequence obj113 = new QuestSequence { Sequence = 0 @@ -209620,18 +253661,23 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); obj113.Steps = list162; reference123 = obj113; - ref QuestSequence reference124 = ref span40[1]; + num++; + ref QuestSequence reference124 = ref span161[num]; QuestSequence obj114 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1026781u, new Vector3(-478.41614f, 137.42972f, 696.9557f), 399) + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span163[num2] = new QuestStep(EInteractionType.Interact, 1026781u, new Vector3(-478.41614f, 137.42972f, 696.9557f), 399) { Fly = true, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -209643,7 +253689,8 @@ public static class AssemblyQuestLoader }; obj114.Steps = list163; reference124 = obj114; - ref QuestSequence reference125 = ref span40[2]; + num++; + ref QuestSequence reference125 = ref span161[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -209651,7 +253698,9 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026781u, new Vector3(-478.41614f, 137.42972f, 696.9557f), 399); + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span164[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026781u, new Vector3(-478.41614f, 137.42972f, 696.9557f), 399); obj115.Steps = list164; reference125 = obj115; questRoot19.QuestSequence = list161; @@ -209661,24 +253710,30 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "JerryWester"; + Span span165 = CollectionsMarshal.AsSpan(list165); + index = 0; + span165[index] = "JerryWester"; questRoot20.Author = list165; - num = 4; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span41 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference126 = ref span41[0]; + index = 4; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + Span span166 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference126 = ref span166[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026781u, new Vector3(-478.41614f, 137.42972f, 696.9557f), 399); + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026781u, new Vector3(-478.41614f, 137.42972f, 696.9557f), 399); obj116.Steps = list167; reference126 = obj116; - ref QuestSequence reference127 = ref span41[1]; + num++; + ref QuestSequence reference127 = ref span166[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 @@ -209686,16 +253741,20 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - ref QuestStep reference128 = ref CollectionsMarshal.AsSpan(list168)[0]; + Span span168 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + ref QuestStep reference128 = ref span168[index2]; QuestStep obj118 = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; - num3 = 1; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - CollectionsMarshal.AsSpan(list169)[0] = new DialogueChoice + num4 = 1; + List list169 = new List(num4); + CollectionsMarshal.SetCount(list169, num4); + Span span169 = CollectionsMarshal.AsSpan(list169); + num3 = 0; + span169[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDF102_03180_Q1_000_021") @@ -209704,21 +253763,25 @@ public static class AssemblyQuestLoader reference128 = obj118; obj117.Steps = list168; reference127 = obj117; - ref QuestSequence reference129 = ref span41[2]; + num++; + ref QuestSequence reference129 = ref span166[num]; QuestSequence obj119 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1026783u, new Vector3(747.12744f, 69.99995f, 521.599f), 621) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.Interact, 1026783u, new Vector3(747.12744f, 69.99995f, 521.599f), 621) { StopDistance = 5f }; obj119.Steps = list170; reference129 = obj119; - ref QuestSequence reference130 = ref span41[3]; + num++; + ref QuestSequence reference130 = ref span166[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -209726,8 +253789,9 @@ public static class AssemblyQuestLoader num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span42 = CollectionsMarshal.AsSpan(list171); - ref QuestStep reference131 = ref span42[0]; + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + ref QuestStep reference131 = ref span171[index2]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, @@ -209736,14 +253800,17 @@ public static class AssemblyQuestLoader num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = new DialogueChoice + Span span172 = CollectionsMarshal.AsSpan(list172); + num4 = 0; + span172[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDF102_03180_EVENTAREA_WARP_000_043") }; obj121.DialogueChoices = list172; reference131 = obj121; - span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1026784u, new Vector3(-0.015319824f, 0.021091362f, -3.0060425f), 744); + index2++; + span171[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026784u, new Vector3(-0.015319824f, 0.021091362f, -3.0060425f), 744); obj120.Steps = list171; reference130 = obj120; questRoot20.QuestSequence = list166; @@ -209753,24 +253820,30 @@ public static class AssemblyQuestLoader num = 1; List list173 = new List(num); CollectionsMarshal.SetCount(list173, num); - CollectionsMarshal.AsSpan(list173)[0] = "JerryWester"; + Span span173 = CollectionsMarshal.AsSpan(list173); + index = 0; + span173[index] = "JerryWester"; questRoot21.Author = list173; - num = 3; - List list174 = new List(num); - CollectionsMarshal.SetCount(list174, num); - Span span43 = CollectionsMarshal.AsSpan(list174); - ref QuestSequence reference132 = ref span43[0]; + index = 3; + List list174 = new List(index); + CollectionsMarshal.SetCount(list174, index); + Span span174 = CollectionsMarshal.AsSpan(list174); + num = 0; + ref QuestSequence reference132 = ref span174[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026784u, new Vector3(-0.015319824f, 0.021091362f, -3.0060425f), 744); + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026784u, new Vector3(-0.015319824f, 0.021091362f, -3.0060425f), 744); obj122.Steps = list175; reference132 = obj122; - ref QuestSequence reference133 = ref span43[1]; + num++; + ref QuestSequence reference133 = ref span174[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 @@ -209778,16 +253851,20 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list176)[0]; + Span span176 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + ref QuestStep reference134 = ref span176[index2]; QuestStep obj124 = new QuestStep(EInteractionType.Interact, 1026261u, new Vector3(337.78882f, 54.860683f, -531.2734f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; - num3 = 1; - List list177 = new List(num3); - CollectionsMarshal.SetCount(list177, num3); - CollectionsMarshal.AsSpan(list177)[0] = new DialogueChoice + num4 = 1; + List list177 = new List(num4); + CollectionsMarshal.SetCount(list177, num4); + Span span177 = CollectionsMarshal.AsSpan(list177); + num3 = 0; + span177[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDF103_03181_Q1_000_031") @@ -209796,15 +253873,18 @@ public static class AssemblyQuestLoader reference134 = obj124; obj123.Steps = list176; reference133 = obj123; - ref QuestSequence reference135 = ref span43[2]; + num++; + ref QuestSequence reference135 = ref span174[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + Span span178 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span178[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); obj125.Steps = list178; reference135 = obj125; questRoot21.QuestSequence = list174; @@ -209814,13 +253894,16 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "JerryWester"; + Span span179 = CollectionsMarshal.AsSpan(list179); + index = 0; + span179[index] = "JerryWester"; questRoot22.Author = list179; - num = 8; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span44 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference136 = ref span44[0]; + index = 8; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + Span span180 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference136 = ref span180[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 @@ -209828,18 +253911,23 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span181[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); obj126.Steps = list181; reference136 = obj126; - ref QuestSequence reference137 = ref span44[1]; + num++; + ref QuestSequence reference137 = ref span180[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - ref QuestStep reference138 = ref CollectionsMarshal.AsSpan(list182)[0]; + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + ref QuestStep reference138 = ref span182[num2]; QuestStep obj128 = new QuestStep(EInteractionType.Interact, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) { Fly = true, @@ -209848,7 +253936,9 @@ public static class AssemblyQuestLoader num3 = 1; List list183 = new List(num3); CollectionsMarshal.SetCount(list183, num3); - CollectionsMarshal.AsSpan(list183)[0] = new DialogueChoice + Span span183 = CollectionsMarshal.AsSpan(list183); + num4 = 0; + span183[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDF104_03182_Q1_000_021") @@ -209857,11 +253947,13 @@ public static class AssemblyQuestLoader reference138 = obj128; obj127.Steps = list182; reference137 = obj127; - span44[2] = new QuestSequence + num++; + span180[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference139 = ref span44[3]; + num++; + ref QuestSequence reference139 = ref span180[num]; QuestSequence obj129 = new QuestSequence { Sequence = 3 @@ -209869,15 +253961,19 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - ref QuestStep reference140 = ref CollectionsMarshal.AsSpan(list184)[0]; + Span span184 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + ref QuestStep reference140 = ref span184[index2]; QuestStep obj130 = new QuestStep(EInteractionType.Interact, 1026805u, new Vector3(-477.77527f, 107.62999f, 102.433716f), 829) { StopDistance = 7f }; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new DialogueChoice + num4 = 1; + List list185 = new List(num4); + CollectionsMarshal.SetCount(list185, num4); + Span span185 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span185[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDF104_03182_Q1_000_031") @@ -209886,18 +253982,22 @@ public static class AssemblyQuestLoader reference140 = obj130; obj129.Steps = list184; reference139 = obj129; - ref QuestSequence reference141 = ref span44[4]; + num++; + ref QuestSequence reference141 = ref span180[num]; QuestSequence obj131 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1026815u, new Vector3(-0.7172241f, 0.014375329f, 3.2807007f), 829); + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span186[num2] = new QuestStep(EInteractionType.Interact, 1026815u, new Vector3(-0.7172241f, 0.014375329f, 3.2807007f), 829); obj131.Steps = list186; reference141 = obj131; - ref QuestSequence reference142 = ref span44[5]; + num++; + ref QuestSequence reference142 = ref span180[num]; QuestSequence obj132 = new QuestSequence { Sequence = 5 @@ -209905,8 +254005,9 @@ public static class AssemblyQuestLoader num2 = 3; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span45 = CollectionsMarshal.AsSpan(list187); - ref QuestStep reference143 = ref span45[0]; + Span span187 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + ref QuestStep reference143 = ref span187[index2]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 1026821u, new Vector3(4.2266846f, -3.7252903E-09f, 5.1116943f), 829) { StopDistance = 4f @@ -209914,18 +254015,26 @@ public static class AssemblyQuestLoader num3 = 6; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - Span span46 = CollectionsMarshal.AsSpan(list188); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span188 = CollectionsMarshal.AsSpan(list188); + num4 = 0; + span188[num4] = null; + num4++; + span188[num4] = null; + num4++; + span188[num4] = null; + num4++; + span188[num4] = null; + num4++; + span188[num4] = null; + num4++; + span188[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj133.CompletionQuestVariablesFlags = list188; - num3 = 1; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = new DialogueChoice + num4 = 1; + List list189 = new List(num4); + CollectionsMarshal.SetCount(list189, num4); + Span span189 = CollectionsMarshal.AsSpan(list189); + num3 = 0; + span189[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDF104_03182_Q3_000_000"), @@ -209933,7 +254042,8 @@ public static class AssemblyQuestLoader }; obj133.DialogueChoices = list189; reference143 = obj133; - ref QuestStep reference144 = ref span45[1]; + index2++; + ref QuestStep reference144 = ref span187[index2]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 1026817u, new Vector3(-3.7080078f, -1.1059713E-09f, 5.2643433f), 829) { StopDistance = 5f @@ -209941,18 +254051,26 @@ public static class AssemblyQuestLoader num3 = 6; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - Span span47 = CollectionsMarshal.AsSpan(list190); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span190 = CollectionsMarshal.AsSpan(list190); + num4 = 0; + span190[num4] = null; + num4++; + span190[num4] = null; + num4++; + span190[num4] = null; + num4++; + span190[num4] = null; + num4++; + span190[num4] = null; + num4++; + span190[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj134.CompletionQuestVariablesFlags = list190; - num3 = 1; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = new DialogueChoice + num4 = 1; + List list191 = new List(num4); + CollectionsMarshal.SetCount(list191, num4); + Span span191 = CollectionsMarshal.AsSpan(list191); + num3 = 0; + span191[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDF104_03182_Q2_000_000"), @@ -209960,23 +254078,32 @@ public static class AssemblyQuestLoader }; obj134.DialogueChoices = list191; reference144 = obj134; - ref QuestStep reference145 = ref span45[2]; + index2++; + ref QuestStep reference145 = ref span187[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1026818u, new Vector3(-1.9990234f, -1.8626451E-09f, 12.344482f), 829); num3 = 6; List list192 = new List(num3); CollectionsMarshal.SetCount(list192, num3); - Span span48 = CollectionsMarshal.AsSpan(list192); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span192 = CollectionsMarshal.AsSpan(list192); + num4 = 0; + span192[num4] = null; + num4++; + span192[num4] = null; + num4++; + span192[num4] = null; + num4++; + span192[num4] = null; + num4++; + span192[num4] = null; + num4++; + span192[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list192; - num3 = 1; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - CollectionsMarshal.AsSpan(list193)[0] = new DialogueChoice + num4 = 1; + List list193 = new List(num4); + CollectionsMarshal.SetCount(list193, num4); + Span span193 = CollectionsMarshal.AsSpan(list193); + num3 = 0; + span193[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDF104_03182_Q1_000_000"), @@ -209986,21 +254113,25 @@ public static class AssemblyQuestLoader reference145 = questStep11; obj132.Steps = list187; reference142 = obj132; - ref QuestSequence reference146 = ref span44[6]; + num++; + ref QuestSequence reference146 = ref span180[num]; QuestSequence obj135 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1026815u, new Vector3(-0.7172241f, 0.014375329f, 3.2807007f), 829) + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.Interact, 1026815u, new Vector3(-0.7172241f, 0.014375329f, 3.2807007f), 829) { StopDistance = 7f }; obj135.Steps = list194; reference146 = obj135; - ref QuestSequence reference147 = ref span44[7]; + num++; + ref QuestSequence reference147 = ref span180[num]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue @@ -210008,7 +254139,9 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026823u, new Vector3(-468.925f, 107.62999f, 130.9071f), 829) + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span195[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026823u, new Vector3(-468.925f, 107.62999f, 130.9071f), 829) { StopDistance = 6f }; @@ -210021,29 +254154,35 @@ public static class AssemblyQuestLoader num = 2; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - Span span49 = CollectionsMarshal.AsSpan(list196); - span49[0] = "liza"; - span49[1] = "JerryWester"; + Span span196 = CollectionsMarshal.AsSpan(list196); + index = 0; + span196[index] = "liza"; + index++; + span196[index] = "JerryWester"; questRoot23.Author = list196; - num = 5; - List list197 = new List(num); - CollectionsMarshal.SetCount(list197, num); - Span span50 = CollectionsMarshal.AsSpan(list197); - ref QuestSequence reference148 = ref span50[0]; + index = 5; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + Span span197 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference148 = ref span197[num]; QuestSequence obj137 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026823u, new Vector3(-468.925f, 107.62999f, 130.9071f), 829) + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span198 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span198[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026823u, new Vector3(-468.925f, 107.62999f, 130.9071f), 829) { StopDistance = 6f }; obj137.Steps = list198; reference148 = obj137; - ref QuestSequence reference149 = ref span50[1]; + num++; + ref QuestSequence reference149 = ref span197[num]; QuestSequence obj138 = new QuestSequence { Sequence = 1 @@ -210051,7 +254190,9 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Duty, null, null, 829) + Span span199 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span199[index2] = new QuestStep(EInteractionType.Duty, null, null, 829) { DutyOptions = new DutyOptions { @@ -210061,25 +254202,30 @@ public static class AssemblyQuestLoader }; obj138.Steps = list199; reference149 = obj138; - span50[2] = new QuestSequence + num++; + span197[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference150 = ref span50[3]; + num++; + ref QuestSequence reference150 = ref span197[num]; QuestSequence obj139 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1026845u, new Vector3(-476.67664f, 107.63f, 103.74609f), 829) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.Interact, 1026845u, new Vector3(-476.67664f, 107.63f, 103.74609f), 829) { StopDistance = 7f }; obj139.Steps = list200; reference150 = obj139; - ref QuestSequence reference151 = ref span50[4]; + num++; + ref QuestSequence reference151 = ref span197[num]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -210087,13 +254233,15 @@ public static class AssemblyQuestLoader num2 = 2; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span51 = CollectionsMarshal.AsSpan(list201); - span51[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span51[1] = new QuestStep(EInteractionType.CompleteQuest, 1026846u, new Vector3(-1.6022339f, 0f, -9.658997f), 351); + index2++; + span201[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026846u, new Vector3(-1.6022339f, 0f, -9.658997f), 351); obj140.Steps = list201; reference151 = obj140; questRoot23.QuestSequence = list197; @@ -210103,24 +254251,30 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "liza"; + Span span202 = CollectionsMarshal.AsSpan(list202); + index = 0; + span202[index] = "liza"; questRoot24.Author = list202; - num = 3; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span52 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference152 = ref span52[0]; + index = 3; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + Span span203 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference152 = ref span203[num]; QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026846u, new Vector3(-1.6022339f, 0f, -9.658997f), 351); + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.AcceptQuest, 1026846u, new Vector3(-1.6022339f, 0f, -9.658997f), 351); obj141.Steps = list204; reference152 = obj141; - ref QuestSequence reference153 = ref span52[1]; + num++; + ref QuestSequence reference153 = ref span203[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -210128,30 +254282,36 @@ public static class AssemblyQuestLoader num2 = 3; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span53 = CollectionsMarshal.AsSpan(list205); - span53[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - span53[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + index2++; + span205[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - span53[2] = new QuestStep(EInteractionType.Interact, 1026794u, new Vector3(124.193115f, -15.239566f, -424.30762f), 156) + index2++; + span205[index2] = new QuestStep(EInteractionType.Interact, 1026794u, new Vector3(124.193115f, -15.239566f, -424.30762f), 156) { Fly = true }; obj142.Steps = list205; reference153 = obj142; - ref QuestSequence reference154 = ref span52[2]; + num++; + ref QuestSequence reference154 = ref span203[num]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026797u, new Vector3(-528.2521f, 8.691104f, -13.53479f), 621); + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026797u, new Vector3(-528.2521f, 8.691104f, -13.53479f), 621); obj143.Steps = list206; reference154 = obj143; questRoot24.QuestSequence = list203; @@ -210161,13 +254321,16 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "liza"; + Span span207 = CollectionsMarshal.AsSpan(list207); + index = 0; + span207[index] = "liza"; questRoot25.Author = list207; - num = 5; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span54 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference155 = ref span54[0]; + index = 5; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + Span span208 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference155 = ref span208[num]; QuestSequence obj144 = new QuestSequence { Sequence = 0 @@ -210175,22 +254338,26 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) { StopDistance = 7f }; obj144.Steps = list209; reference155 = obj144; - ref QuestSequence reference156 = ref span54[1]; + num++; + ref QuestSequence reference156 = ref span208[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span55 = CollectionsMarshal.AsSpan(list210); - ref QuestStep reference157 = ref span55[0]; + index2 = 2; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + ref QuestStep reference157 = ref span210[num2]; QuestStep obj146 = new QuestStep(EInteractionType.Interact, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) { StopDistance = 7f, @@ -210199,34 +254366,43 @@ public static class AssemblyQuestLoader num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new DialogueChoice + Span span211 = CollectionsMarshal.AsSpan(list211); + num4 = 0; + span211[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDG102_03185_Q1_000_002") }; obj146.DialogueChoices = list211; reference157 = obj146; - ref QuestStep reference158 = ref span55[1]; + num2++; + ref QuestStep reference158 = ref span210[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.SinglePlayerDuty, 1026845u, new Vector3(-476.67664f, 107.63f, 103.74609f), 829); SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 4; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - Span span56 = CollectionsMarshal.AsSpan(list212); - span56[0] = "(phase 1) Need to manually move in range to trigger combat"; - span56[1] = "(phase 1) VBM doesn't know about some AOEs (e.g. Vein Splitter)"; - span56[2] = "(phase 1) VBM ignores markers to stack on Lyse (she still survives)"; - span56[3] = "(phase 2) AI can walk outside the arena to get a bleed + damage down when dodging mechanics"; + num4 = 4; + List list212 = new List(num4); + CollectionsMarshal.SetCount(list212, num4); + Span span212 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span212[num3] = "(phase 1) Need to manually move in range to trigger combat"; + num3++; + span212[num3] = "(phase 1) VBM doesn't know about some AOEs (e.g. Vein Splitter)"; + num3++; + span212[num3] = "(phase 1) VBM ignores markers to stack on Lyse (she still survives)"; + num3++; + span212[num3] = "(phase 2) AI can walk outside the arena to get a bleed + damage down when dodging mechanics"; singlePlayerDutyOptions.Notes = list212; questStep12.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference158 = questStep12; obj145.Steps = list210; reference156 = obj145; - span54[2] = new QuestSequence + num++; + span208[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference159 = ref span54[3]; + num++; + ref QuestSequence reference159 = ref span208[num]; QuestSequence obj147 = new QuestSequence { Sequence = 3 @@ -210234,22 +254410,27 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span213 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span213[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj147.Steps = list213; reference159 = obj147; - ref QuestSequence reference160 = ref span54[4]; + num++; + ref QuestSequence reference160 = ref span208[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026990u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + Span span214 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span214[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026990u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) { StopDistance = 7f }; @@ -210262,13 +254443,16 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - CollectionsMarshal.AsSpan(list215)[0] = "liza"; + Span span215 = CollectionsMarshal.AsSpan(list215); + index = 0; + span215[index] = "liza"; questRoot26.Author = list215; - num = 7; - List list216 = new List(num); - CollectionsMarshal.SetCount(list216, num); - Span span57 = CollectionsMarshal.AsSpan(list216); - ref QuestSequence reference161 = ref span57[0]; + index = 7; + List list216 = new List(index); + CollectionsMarshal.SetCount(list216, index); + Span span216 = CollectionsMarshal.AsSpan(list216); + num = 0; + ref QuestSequence reference161 = ref span216[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -210276,7 +254460,9 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -210290,20 +254476,23 @@ public static class AssemblyQuestLoader }; obj149.Steps = list217; reference161 = obj149; - ref QuestSequence reference162 = ref span57[1]; + num++; + ref QuestSequence reference162 = ref span216[num]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - Span span58 = CollectionsMarshal.AsSpan(list218); - span58[0] = new QuestStep(EInteractionType.Interact, 1019043u, new Vector3(-43.656128f, 15.000004f, 46.52478f), 628) + index2 = 2; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span218[num2] = new QuestStep(EInteractionType.Interact, 1019043u, new Vector3(-43.656128f, 15.000004f, 46.52478f), 628) { TargetTerritoryId = (ushort)628 }; - ref QuestStep reference163 = ref span58[1]; + num2++; + ref QuestStep reference163 = ref span218[num2]; QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1024157u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 7f @@ -210311,7 +254500,9 @@ public static class AssemblyQuestLoader num3 = 1; List list219 = new List(num3); CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = new DialogueChoice + Span span219 = CollectionsMarshal.AsSpan(list219); + num4 = 0; + span219[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDI301_03187_Q1_000_000") @@ -210320,11 +254511,13 @@ public static class AssemblyQuestLoader reference163 = obj151; obj150.Steps = list218; reference162 = obj150; - span57[2] = new QuestSequence + num++; + span216[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference164 = ref span57[3]; + num++; + ref QuestSequence reference164 = ref span216[num]; QuestSequence obj152 = new QuestSequence { Sequence = 3 @@ -210332,32 +254525,38 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1026968u, new Vector3(-10.635559f, 0.026214104f, 12.924377f), 735) + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span220[index2] = new QuestStep(EInteractionType.Interact, 1026968u, new Vector3(-10.635559f, 0.026214104f, 12.924377f), 735) { StopDistance = 7f }; obj152.Steps = list220; reference164 = obj152; - ref QuestSequence reference165 = ref span57[4]; + num++; + ref QuestSequence reference165 = ref span216[num]; QuestSequence obj153 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - Span span59 = CollectionsMarshal.AsSpan(list221); - span59[0] = new QuestStep(EInteractionType.Interact, 2009044u, new Vector3(-28.763306f, 0.56451416f, -0.015319824f), 735) + index2 = 2; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span221[num2] = new QuestStep(EInteractionType.Interact, 2009044u, new Vector3(-28.763306f, 0.56451416f, -0.015319824f), 735) { TargetTerritoryId = (ushort)628 }; - span59[1] = new QuestStep(EInteractionType.Interact, 1026969u, new Vector3(-55.985413f, 79.05602f, 43.656006f), 628) + num2++; + span221[num2] = new QuestStep(EInteractionType.Interact, 1026969u, new Vector3(-55.985413f, 79.05602f, 43.656006f), 628) { StopDistance = 7f }; obj153.Steps = list221; reference165 = obj153; - ref QuestSequence reference166 = ref span57[5]; + num++; + ref QuestSequence reference166 = ref span216[num]; QuestSequence obj154 = new QuestSequence { Sequence = 5 @@ -210365,15 +254564,19 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - ref QuestStep reference167 = ref CollectionsMarshal.AsSpan(list222)[0]; + Span span222 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + ref QuestStep reference167 = ref span222[index2]; QuestStep obj155 = new QuestStep(EInteractionType.Interact, 1026969u, new Vector3(-55.985413f, 79.05602f, 43.656006f), 628) { StopDistance = 7f }; - num3 = 1; - List list223 = new List(num3); - CollectionsMarshal.SetCount(list223, num3); - CollectionsMarshal.AsSpan(list223)[0] = new DialogueChoice + num4 = 1; + List list223 = new List(num4); + CollectionsMarshal.SetCount(list223, num4); + Span span223 = CollectionsMarshal.AsSpan(list223); + num3 = 0; + span223[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDI301_03187_Q5_000_000") @@ -210382,15 +254585,18 @@ public static class AssemblyQuestLoader reference167 = obj155; obj154.Steps = list222; reference166 = obj154; - ref QuestSequence reference168 = ref span57[6]; + num++; + ref QuestSequence reference168 = ref span216[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026970u, new Vector3(-58.457336f, 79.05602f, 43.686523f), 628) + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span224[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026970u, new Vector3(-58.457336f, 79.05602f, 43.686523f), 628) { StopDistance = 7f, NextQuestId = new QuestId(3188) @@ -210404,13 +254610,16 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - CollectionsMarshal.AsSpan(list225)[0] = "liza"; + Span span225 = CollectionsMarshal.AsSpan(list225); + index = 0; + span225[index] = "liza"; questRoot27.Author = list225; - num = 8; - List list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - Span span60 = CollectionsMarshal.AsSpan(list226); - ref QuestSequence reference169 = ref span60[0]; + index = 8; + List list226 = new List(index); + CollectionsMarshal.SetCount(list226, index); + Span span226 = CollectionsMarshal.AsSpan(list226); + num = 0; + ref QuestSequence reference169 = ref span226[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 @@ -210418,22 +254627,26 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026970u, new Vector3(-58.457336f, 79.05602f, 43.686523f), 628) + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026970u, new Vector3(-58.457336f, 79.05602f, 43.686523f), 628) { StopDistance = 7f }; obj157.Steps = list227; reference169 = obj157; - ref QuestSequence reference170 = ref span60[1]; + num++; + ref QuestSequence reference170 = ref span226[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span61 = CollectionsMarshal.AsSpan(list228); - ref QuestStep reference171 = ref span61[0]; + index2 = 2; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + ref QuestStep reference171 = ref span228[num2]; QuestStep obj159 = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 7f, @@ -210444,15 +254657,19 @@ public static class AssemblyQuestLoader num3 = 1; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - CollectionsMarshal.AsSpan(list229)[0] = 735; + Span span229 = CollectionsMarshal.AsSpan(list229); + num4 = 0; + span229[num4] = 735; skipStepConditions.InTerritory = list229; skipConditions.StepIf = skipStepConditions; obj159.SkipConditions = skipConditions; reference171 = obj159; - span61[1] = new QuestStep(EInteractionType.Interact, 1026973u, new Vector3(-10.025269f, 0.046870913f, -2.5482788f), 735); + num2++; + span228[num2] = new QuestStep(EInteractionType.Interact, 1026973u, new Vector3(-10.025269f, 0.046870913f, -2.5482788f), 735); obj158.Steps = list228; reference170 = obj158; - ref QuestSequence reference172 = ref span60[2]; + num++; + ref QuestSequence reference172 = ref span226[num]; QuestSequence obj160 = new QuestSequence { Sequence = 2 @@ -210460,43 +254677,51 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1026974u, new Vector3(-10.788147f, 0.04687085f, -4.4404297f), 735) + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span230[index2] = new QuestStep(EInteractionType.Interact, 1026974u, new Vector3(-10.788147f, 0.04687085f, -4.4404297f), 735) { StopDistance = 5f }; obj160.Steps = list230; reference172 = obj160; - ref QuestSequence reference173 = ref span60[3]; + num++; + ref QuestSequence reference173 = ref span226[num]; QuestSequence obj161 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - Span span62 = CollectionsMarshal.AsSpan(list231); - ref QuestStep reference174 = ref span62[0]; + index2 = 2; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + ref QuestStep reference174 = ref span231[num2]; QuestStep obj162 = new QuestStep(EInteractionType.Interact, 2009044u, new Vector3(-28.763306f, 0.56451416f, -0.015319824f), 735) { TargetTerritoryId = (ushort)628 }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list232 = new List(num3); - CollectionsMarshal.SetCount(list232, num3); - CollectionsMarshal.AsSpan(list232)[0] = 628; + num4 = 1; + List list232 = new List(num4); + CollectionsMarshal.SetCount(list232, num4); + Span span232 = CollectionsMarshal.AsSpan(list232); + num3 = 0; + span232[num3] = 628; skipStepConditions2.InTerritory = list232; skipConditions2.StepIf = skipStepConditions2; obj162.SkipConditions = skipConditions2; reference174 = obj162; - span62[1] = new QuestStep(EInteractionType.Interact, 1026969u, new Vector3(-55.985413f, 79.05602f, 43.656006f), 628) + num2++; + span231[num2] = new QuestStep(EInteractionType.Interact, 1026969u, new Vector3(-55.985413f, 79.05602f, 43.656006f), 628) { StopDistance = 7f }; obj161.Steps = list231; reference173 = obj161; - ref QuestSequence reference175 = ref span60[4]; + num++; + ref QuestSequence reference175 = ref span226[num]; QuestSequence obj163 = new QuestSequence { Sequence = 4 @@ -210504,7 +254729,9 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list233)[0]; + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + ref QuestStep reference176 = ref span233[index2]; QuestStep obj164 = new QuestStep(EInteractionType.Interact, 1026976u, new Vector3(115.12927f, 12.000001f, 71.000244f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -210517,7 +254744,9 @@ public static class AssemblyQuestLoader num3 = 1; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = new DialogueChoice + Span span234 = CollectionsMarshal.AsSpan(list234); + num4 = 0; + span234[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDI302_03188_Q3_000_000") @@ -210526,15 +254755,18 @@ public static class AssemblyQuestLoader reference176 = obj164; obj163.Steps = list233; reference175 = obj163; - ref QuestSequence reference177 = ref span60[5]; + num++; + ref QuestSequence reference177 = ref span226[num]; QuestSequence obj165 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + Span span235 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span235[num2] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 5f, TargetTerritoryId = (ushort)735, @@ -210546,7 +254778,8 @@ public static class AssemblyQuestLoader }; obj165.Steps = list235; reference177 = obj165; - ref QuestSequence reference178 = ref span60[6]; + num++; + ref QuestSequence reference178 = ref span226[num]; QuestSequence obj166 = new QuestSequence { Sequence = 6 @@ -210554,12 +254787,16 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - ref QuestStep reference179 = ref CollectionsMarshal.AsSpan(list236)[0]; + Span span236 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + ref QuestStep reference179 = ref span236[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1026977u, new Vector3(-4.3793945f, -2.5159047E-06f, -6.3325195f), 735); - num3 = 1; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - CollectionsMarshal.AsSpan(list237)[0] = new DialogueChoice + num4 = 1; + List list237 = new List(num4); + CollectionsMarshal.SetCount(list237, num4); + Span span237 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span237[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDI302_03188_Q1_000_000"), @@ -210569,15 +254806,18 @@ public static class AssemblyQuestLoader reference179 = questStep13; obj166.Steps = list236; reference178 = obj166; - ref QuestSequence reference180 = ref span60[7]; + num++; + ref QuestSequence reference180 = ref span226[num]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026978u, new Vector3(-9.10968f, -2.9294104E-06f, -7.309082f), 735) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026978u, new Vector3(-9.10968f, -2.9294104E-06f, -7.309082f), 735) { NextQuestId = new QuestId(3189) }; @@ -210590,13 +254830,16 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - CollectionsMarshal.AsSpan(list239)[0] = "liza"; + Span span239 = CollectionsMarshal.AsSpan(list239); + index = 0; + span239[index] = "liza"; questRoot28.Author = list239; - num = 5; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - Span span63 = CollectionsMarshal.AsSpan(list240); - ref QuestSequence reference181 = ref span63[0]; + index = 5; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + Span span240 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference181 = ref span240[num]; QuestSequence obj168 = new QuestSequence { Sequence = 0 @@ -210604,18 +254847,23 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026978u, new Vector3(-9.10968f, -2.9294104E-06f, -7.309082f), 735); + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026978u, new Vector3(-9.10968f, -2.9294104E-06f, -7.309082f), 735); obj168.Steps = list241; reference181 = obj168; - ref QuestSequence reference182 = ref span63[1]; + num++; + ref QuestSequence reference182 = ref span240[num]; QuestSequence obj169 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Duty, null, null, 735) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.Duty, null, null, 735) { DutyOptions = new DutyOptions { @@ -210624,11 +254872,13 @@ public static class AssemblyQuestLoader }; obj169.Steps = list242; reference182 = obj169; - span63[2] = new QuestSequence + num++; + span240[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference183 = ref span63[3]; + num++; + ref QuestSequence reference183 = ref span240[num]; QuestSequence obj170 = new QuestSequence { Sequence = 3 @@ -210636,31 +254886,37 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1026979u, new Vector3(-12.008911f, 0.046870746f, -1.1750488f), 735) + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span243[index2] = new QuestStep(EInteractionType.Interact, 1026979u, new Vector3(-12.008911f, 0.046870746f, -1.1750488f), 735) { StopDistance = 5f }; obj170.Steps = list243; reference183 = obj170; - ref QuestSequence reference184 = ref span63[4]; + num++; + ref QuestSequence reference184 = ref span240[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - Span span64 = CollectionsMarshal.AsSpan(list244); - span64[0] = new QuestStep(EInteractionType.Interact, 2009044u, new Vector3(-28.73708f, 0.5811821f, 0.01279204f), 735) + index2 = 3; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.Interact, 2009044u, new Vector3(-28.73708f, 0.5811821f, 0.01279204f), 735) { TargetTerritoryId = (ushort)628 }; - span64[1] = new QuestStep(EInteractionType.Interact, 1019044u, new Vector3(-51.71283f, 79.05602f, 45.48706f), 628) + num2++; + span244[num2] = new QuestStep(EInteractionType.Interact, 1019044u, new Vector3(-51.71283f, 79.05602f, 45.48706f), 628) { StopDistance = 7f, TargetTerritoryId = (ushort)628 }; - span64[2] = new QuestStep(EInteractionType.CompleteQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) + num2++; + span244[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) { StopDistance = 7f }; @@ -210673,13 +254929,16 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "liza"; + Span span245 = CollectionsMarshal.AsSpan(list245); + index = 0; + span245[index] = "liza"; questRoot29.Author = list245; - num = 7; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span65 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference185 = ref span65[0]; + index = 7; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + Span span246 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference185 = ref span246[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -210687,25 +254946,32 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); obj172.Steps = list247; reference185 = obj172; - span65[1] = new QuestSequence + num++; + span246[num] = new QuestSequence { Sequence = 1 }; - ref QuestSequence reference186 = ref span65[2]; + num++; + ref QuestSequence reference186 = ref span246[num]; QuestSequence obj173 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.Interact, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); obj173.Steps = list248; reference186 = obj173; - ref QuestSequence reference187 = ref span65[3]; + num++; + ref QuestSequence reference187 = ref span246[num]; QuestSequence obj174 = new QuestSequence { Sequence = 3 @@ -210713,24 +254979,30 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj174.Steps = list249; reference187 = obj174; - ref QuestSequence reference188 = ref span65[4]; + num++; + ref QuestSequence reference188 = ref span246[num]; QuestSequence obj175 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span250 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span250[num2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); obj175.Steps = list250; reference188 = obj175; - ref QuestSequence reference189 = ref span65[5]; + num++; + ref QuestSequence reference189 = ref span246[num]; QuestSequence obj176 = new QuestSequence { Sequence = 5 @@ -210738,24 +255010,28 @@ public static class AssemblyQuestLoader num2 = 2; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - Span span66 = CollectionsMarshal.AsSpan(list251); - span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) + Span span251 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span251[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) { Fly = true }; - span66[1] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + index2++; + span251[index2] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj176.Steps = list251; reference189 = obj176; - ref QuestSequence reference190 = ref span65[6]; + num++; + ref QuestSequence reference190 = ref span246[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span67 = CollectionsMarshal.AsSpan(list252); - span67[0] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) + index2 = 2; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 7f, TargetTerritoryId = (ushort)735, @@ -210766,7 +255042,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeAirship } }; - span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); + num2++; + span252[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); obj177.Steps = list252; reference190 = obj177; questRoot29.QuestSequence = list246; @@ -210776,13 +255053,16 @@ public static class AssemblyQuestLoader num = 1; List list253 = new List(num); CollectionsMarshal.SetCount(list253, num); - CollectionsMarshal.AsSpan(list253)[0] = "liza"; + Span span253 = CollectionsMarshal.AsSpan(list253); + index = 0; + span253[index] = "liza"; questRoot30.Author = list253; - num = 6; - List list254 = new List(num); - CollectionsMarshal.SetCount(list254, num); - Span span68 = CollectionsMarshal.AsSpan(list254); - ref QuestSequence reference191 = ref span68[0]; + index = 6; + List list254 = new List(index); + CollectionsMarshal.SetCount(list254, index); + Span span254 = CollectionsMarshal.AsSpan(list254); + num = 0; + ref QuestSequence reference191 = ref span254[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 @@ -210790,7 +255070,9 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026928u, new Vector3(-64.34735f, 18.000334f, -11.032288f), 129) + Span span255 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span255[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026928u, new Vector3(-64.34735f, 18.000334f, -11.032288f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -210803,15 +255085,18 @@ public static class AssemblyQuestLoader }; obj178.Steps = list255; reference191 = obj178; - ref QuestSequence reference192 = ref span68[1]; + num++; + ref QuestSequence reference192 = ref span254[num]; QuestSequence obj179 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1026929u, new Vector3(-69.87109f, 43.83883f, -5.661133f), 134) + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.Interact, 1026929u, new Vector3(-69.87109f, 43.83883f, -5.661133f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -210822,7 +255107,8 @@ public static class AssemblyQuestLoader }; obj179.Steps = list256; reference192 = obj179; - ref QuestSequence reference193 = ref span68[2]; + num++; + ref QuestSequence reference193 = ref span254[num]; QuestSequence obj180 = new QuestSequence { Sequence = 2 @@ -210830,24 +255116,30 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1026936u, new Vector3(170.85522f, 62.765503f, 275.25745f), 134); + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = new QuestStep(EInteractionType.Interact, 1026936u, new Vector3(170.85522f, 62.765503f, 275.25745f), 134); obj180.Steps = list257; reference193 = obj180; - ref QuestSequence reference194 = ref span68[3]; + num++; + ref QuestSequence reference194 = ref span254[num]; QuestSequence obj181 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1028430u, new Vector3(156.63379f, 12.126303f, 649.37805f), 135) + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span258[num2] = new QuestStep(EInteractionType.Interact, 1028430u, new Vector3(156.63379f, 12.126303f, 649.37805f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj181.Steps = list258; reference194 = obj181; - ref QuestSequence reference195 = ref span68[4]; + num++; + ref QuestSequence reference195 = ref span254[num]; QuestSequence obj182 = new QuestSequence { Sequence = 4 @@ -210855,21 +255147,26 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1026930u, new Vector3(-85.404785f, 2.5427969f, 728.542f), 135) + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span259[index2] = new QuestStep(EInteractionType.Interact, 1026930u, new Vector3(-85.404785f, 2.5427969f, 728.542f), 135) { Fly = true }; obj182.Steps = list259; reference195 = obj182; - ref QuestSequence reference196 = ref span68[5]; + num++; + ref QuestSequence reference196 = ref span254[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026932u, new Vector3(-105.9129f, 1.5723714f, 750.0571f), 135) + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span260[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026932u, new Vector3(-105.9129f, 1.5723714f, 750.0571f), 135) { StopDistance = 7f, NextQuestId = new QuestId(3193) @@ -210883,13 +255180,16 @@ public static class AssemblyQuestLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - CollectionsMarshal.AsSpan(list261)[0] = "liza"; + Span span261 = CollectionsMarshal.AsSpan(list261); + index = 0; + span261[index] = "liza"; questRoot31.Author = list261; - num = 3; - List list262 = new List(num); - CollectionsMarshal.SetCount(list262, num); - Span span69 = CollectionsMarshal.AsSpan(list262); - ref QuestSequence reference197 = ref span69[0]; + index = 3; + List list262 = new List(index); + CollectionsMarshal.SetCount(list262, index); + Span span262 = CollectionsMarshal.AsSpan(list262); + num = 0; + ref QuestSequence reference197 = ref span262[num]; QuestSequence obj184 = new QuestSequence { Sequence = 0 @@ -210897,8 +255197,9 @@ public static class AssemblyQuestLoader num2 = 4; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span70 = CollectionsMarshal.AsSpan(list263); - span70[0] = new QuestStep(EInteractionType.EquipItem, null, null, 135) + Span span263 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span263[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, ItemId = 22746u, @@ -210917,7 +255218,8 @@ public static class AssemblyQuestLoader } } }; - span70[1] = new QuestStep(EInteractionType.EquipItem, null, null, 135) + index2++; + span263[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 135) { ItemId = 24587u, SkipConditions = new SkipConditions @@ -210931,29 +255233,35 @@ public static class AssemblyQuestLoader } } }; - span70[2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 135); - span70[3] = new QuestStep(EInteractionType.AcceptQuest, 1026932u, new Vector3(-105.9129f, 1.5723714f, 750.0571f), 135) + index2++; + span263[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 135); + index2++; + span263[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026932u, new Vector3(-105.9129f, 1.5723714f, 750.0571f), 135) { StopDistance = 7f, Fly = true }; obj184.Steps = list263; reference197 = obj184; - ref QuestSequence reference198 = ref span69[1]; + num++; + ref QuestSequence reference198 = ref span262[num]; QuestSequence obj185 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Action, 1026934u, new Vector3(-108.04913f, 1.5026048f, 749.1415f), 135) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.Action, 1026934u, new Vector3(-108.04913f, 1.5026048f, 749.1415f), 135) { Action = EAction.WaterCannon }; obj185.Steps = list264; reference198 = obj185; - ref QuestSequence reference199 = ref span69[2]; + num++; + ref QuestSequence reference199 = ref span262[num]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue @@ -210961,7 +255269,9 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list265)[0]; + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + ref QuestStep reference200 = ref span265[index2]; QuestStep obj187 = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -210974,7 +255284,9 @@ public static class AssemblyQuestLoader num3 = 1; List list266 = new List(num3); CollectionsMarshal.SetCount(list266, num3); - CollectionsMarshal.AsSpan(list266)[0] = new DialogueChoice + Span span266 = CollectionsMarshal.AsSpan(list266); + num4 = 0; + span266[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBAOZ010_03193_Q1_100_002") @@ -210991,21 +255303,26 @@ public static class AssemblyQuestLoader num = 1; List list267 = new List(num); CollectionsMarshal.SetCount(list267, num); - CollectionsMarshal.AsSpan(list267)[0] = "liza"; + Span span267 = CollectionsMarshal.AsSpan(list267); + index = 0; + span267[index] = "liza"; questRoot32.Author = list267; - num = 5; - List list268 = new List(num); - CollectionsMarshal.SetCount(list268, num); - Span span71 = CollectionsMarshal.AsSpan(list268); - ref QuestSequence reference201 = ref span71[0]; + index = 5; + List list268 = new List(index); + CollectionsMarshal.SetCount(list268, index); + Span span268 = CollectionsMarshal.AsSpan(list268); + num = 0; + ref QuestSequence reference201 = ref span268[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - ref QuestStep reference202 = ref CollectionsMarshal.AsSpan(list269)[0]; + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + Span span269 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + ref QuestStep reference202 = ref span269[num2]; QuestStep obj189 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -211021,17 +255338,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list270 = new List(num3); - CollectionsMarshal.SetCount(list270, num3); - CollectionsMarshal.AsSpan(list270)[0] = 131; + num4 = 1; + List list270 = new List(num4); + CollectionsMarshal.SetCount(list270, num4); + Span span270 = CollectionsMarshal.AsSpan(list270); + num3 = 0; + span270[num3] = 131; obj190.InTerritory = list270; skipConditions3.AetheryteShortcutIf = obj190; obj189.SkipConditions = skipConditions3; reference202 = obj189; obj188.Steps = list269; reference201 = obj188; - ref QuestSequence reference203 = ref span71[1]; + num++; + ref QuestSequence reference203 = ref span268[num]; QuestSequence obj191 = new QuestSequence { Sequence = 1 @@ -211039,7 +255359,9 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1026938u, new Vector3(101.27405f, 7.3536396f, 600.2135f), 141) + Span span271 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span271[index2] = new QuestStep(EInteractionType.Interact, 1026938u, new Vector3(101.27405f, 7.3536396f, 600.2135f), 141) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -211050,15 +255372,18 @@ public static class AssemblyQuestLoader }; obj191.Steps = list271; reference203 = obj191; - ref QuestSequence reference204 = ref span71[2]; + num++; + ref QuestSequence reference204 = ref span268[num]; QuestSequence obj192 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list272)[0]; + index2 = 1; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + Span span272 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + ref QuestStep reference205 = ref span272[num2]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, 2009670u, new Vector3(163.59192f, 3.7078857f, 657.0991f), 141) { StopDistance = 0.5f, @@ -211068,12 +255393,15 @@ public static class AssemblyQuestLoader num3 = 1; List list273 = new List(num3); CollectionsMarshal.SetCount(list273, num3); - CollectionsMarshal.AsSpan(list273)[0] = 9836u; + Span span273 = CollectionsMarshal.AsSpan(list273); + num4 = 0; + span273[num4] = 9836u; obj193.KillEnemyDataIds = list273; reference205 = obj193; obj192.Steps = list272; reference204 = obj192; - ref QuestSequence reference206 = ref span71[3]; + num++; + ref QuestSequence reference206 = ref span268[num]; QuestSequence obj194 = new QuestSequence { Sequence = 3 @@ -211081,21 +255409,26 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1026938u, new Vector3(101.27405f, 7.3536396f, 600.2135f), 141) + Span span274 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span274[index2] = new QuestStep(EInteractionType.Interact, 1026938u, new Vector3(101.27405f, 7.3536396f, 600.2135f), 141) { Fly = true }; obj194.Steps = list274; reference206 = obj194; - ref QuestSequence reference207 = ref span71[4]; + num++; + ref QuestSequence reference207 = ref span268[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -211114,13 +255447,16 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "liza"; + Span span276 = CollectionsMarshal.AsSpan(list276); + index = 0; + span276[index] = "liza"; questRoot33.Author = list276; - num = 5; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span72 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference208 = ref span72[0]; + index = 5; + List list277 = new List(index); + CollectionsMarshal.SetCount(list277, index); + Span span277 = CollectionsMarshal.AsSpan(list277); + num = 0; + ref QuestSequence reference208 = ref span277[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -211128,7 +255464,9 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - ref QuestStep reference209 = ref CollectionsMarshal.AsSpan(list278)[0]; + Span span278 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + ref QuestStep reference209 = ref span278[index2]; QuestStep obj197 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -211143,25 +255481,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list279 = new List(num3); - CollectionsMarshal.SetCount(list279, num3); - CollectionsMarshal.AsSpan(list279)[0] = 131; + num4 = 1; + List list279 = new List(num4); + CollectionsMarshal.SetCount(list279, num4); + Span span279 = CollectionsMarshal.AsSpan(list279); + num3 = 0; + span279[num3] = 131; obj198.InTerritory = list279; skipConditions4.AetheryteShortcutIf = obj198; obj197.SkipConditions = skipConditions4; reference209 = obj197; obj196.Steps = list278; reference208 = obj196; - ref QuestSequence reference210 = ref span72[1]; + num++; + ref QuestSequence reference210 = ref span277[num]; QuestSequence obj199 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1026941u, new Vector3(105.02783f, 4.0333576f, 451.0719f), 141) + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span280 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span280[num2] = new QuestStep(EInteractionType.Interact, 1026941u, new Vector3(105.02783f, 4.0333576f, 451.0719f), 141) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -211172,7 +255515,8 @@ public static class AssemblyQuestLoader }; obj199.Steps = list280; reference210 = obj199; - ref QuestSequence reference211 = ref span72[2]; + num++; + ref QuestSequence reference211 = ref span277[num]; QuestSequence obj200 = new QuestSequence { Sequence = 2 @@ -211180,7 +255524,9 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - ref QuestStep reference212 = ref CollectionsMarshal.AsSpan(list281)[0]; + Span span281 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + ref QuestStep reference212 = ref span281[index2]; QuestStep obj201 = new QuestStep(EInteractionType.Combat, 2009671u, new Vector3(145.52527f, 9.567322f, 391.10388f), 141) { Fly = true, @@ -211189,23 +255535,29 @@ public static class AssemblyQuestLoader num3 = 1; List list282 = new List(num3); CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = 9837u; + Span span282 = CollectionsMarshal.AsSpan(list282); + num4 = 0; + span282[num4] = 9837u; obj201.KillEnemyDataIds = list282; reference212 = obj201; obj200.Steps = list281; reference211 = obj200; - ref QuestSequence reference213 = ref span72[3]; + num++; + ref QuestSequence reference213 = ref span277[num]; QuestSequence obj202 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1026941u, new Vector3(105.02783f, 4.0333576f, 451.0719f), 141); + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + Span span283 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span283[num2] = new QuestStep(EInteractionType.Interact, 1026941u, new Vector3(105.02783f, 4.0333576f, 451.0719f), 141); obj202.Steps = list283; reference213 = obj202; - ref QuestSequence reference214 = ref span72[4]; + num++; + ref QuestSequence reference214 = ref span277[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -211213,7 +255565,9 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span284[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -211232,21 +255586,26 @@ public static class AssemblyQuestLoader num = 1; List list285 = new List(num); CollectionsMarshal.SetCount(list285, num); - CollectionsMarshal.AsSpan(list285)[0] = "liza"; + Span span285 = CollectionsMarshal.AsSpan(list285); + index = 0; + span285[index] = "liza"; questRoot34.Author = list285; - num = 6; - List list286 = new List(num); - CollectionsMarshal.SetCount(list286, num); - Span span73 = CollectionsMarshal.AsSpan(list286); - ref QuestSequence reference215 = ref span73[0]; + index = 6; + List list286 = new List(index); + CollectionsMarshal.SetCount(list286, index); + Span span286 = CollectionsMarshal.AsSpan(list286); + num = 0; + ref QuestSequence reference215 = ref span286[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - ref QuestStep reference216 = ref CollectionsMarshal.AsSpan(list287)[0]; + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + Span span287 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + ref QuestStep reference216 = ref span287[num2]; QuestStep obj205 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -211261,17 +255620,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list288 = new List(num3); - CollectionsMarshal.SetCount(list288, num3); - CollectionsMarshal.AsSpan(list288)[0] = 131; + num4 = 1; + List list288 = new List(num4); + CollectionsMarshal.SetCount(list288, num4); + Span span288 = CollectionsMarshal.AsSpan(list288); + num3 = 0; + span288[num3] = 131; obj206.InTerritory = list288; skipConditions5.AetheryteShortcutIf = obj206; obj205.SkipConditions = skipConditions5; reference216 = obj205; obj204.Steps = list287; reference215 = obj204; - ref QuestSequence reference217 = ref span73[1]; + num++; + ref QuestSequence reference217 = ref span286[num]; QuestSequence obj207 = new QuestSequence { Sequence = 1 @@ -211279,7 +255641,9 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1026945u, new Vector3(-108.415405f, 41f, 76.06616f), 131) + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span289[index2] = new QuestStep(EInteractionType.Interact, 1026945u, new Vector3(-108.415405f, 41f, 76.06616f), 131) { AethernetShortcut = new AethernetShortcut { @@ -211289,15 +255653,18 @@ public static class AssemblyQuestLoader }; obj207.Steps = list289; reference217 = obj207; - ref QuestSequence reference218 = ref span73[2]; + num++; + ref QuestSequence reference218 = ref span286[num]; QuestSequence obj208 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1026946u, new Vector3(392.69092f, 87.19347f, 98.10022f), 140) + index2 = 1; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + Span span290 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span290[num2] = new QuestStep(EInteractionType.Interact, 1026946u, new Vector3(392.69092f, 87.19347f, 98.10022f), 140) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -211308,7 +255675,8 @@ public static class AssemblyQuestLoader }; obj208.Steps = list290; reference218 = obj208; - ref QuestSequence reference219 = ref span73[3]; + num++; + ref QuestSequence reference219 = ref span286[num]; QuestSequence obj209 = new QuestSequence { Sequence = 3 @@ -211316,7 +255684,9 @@ public static class AssemblyQuestLoader num2 = 1; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - ref QuestStep reference220 = ref CollectionsMarshal.AsSpan(list291)[0]; + Span span291 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + ref QuestStep reference220 = ref span291[index2]; QuestStep obj210 = new QuestStep(EInteractionType.Combat, null, new Vector3(363.6008f, 83.40785f, 92.904495f), 140) { StopDistance = 0.5f, @@ -211325,28 +255695,34 @@ public static class AssemblyQuestLoader num3 = 2; List list292 = new List(num3); CollectionsMarshal.SetCount(list292, num3); - Span span74 = CollectionsMarshal.AsSpan(list292); - span74[0] = 9838u; - span74[1] = 9839u; + Span span292 = CollectionsMarshal.AsSpan(list292); + num4 = 0; + span292[num4] = 9838u; + num4++; + span292[num4] = 9839u; obj210.KillEnemyDataIds = list292; reference220 = obj210; obj209.Steps = list291; reference219 = obj209; - ref QuestSequence reference221 = ref span73[4]; + num++; + ref QuestSequence reference221 = ref span286[num]; QuestSequence obj211 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1026948u, new Vector3(359.63977f, 83.013695f, 92.24072f), 140) + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + Span span293 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span293[num2] = new QuestStep(EInteractionType.Interact, 1026948u, new Vector3(359.63977f, 83.013695f, 92.24072f), 140) { StopDistance = 5f }; obj211.Steps = list293; reference221 = obj211; - ref QuestSequence reference222 = ref span73[5]; + num++; + ref QuestSequence reference222 = ref span286[num]; QuestSequence obj212 = new QuestSequence { Sequence = byte.MaxValue @@ -211354,7 +255730,9 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + Span span294 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span294[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -211373,21 +255751,26 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "liza"; + Span span295 = CollectionsMarshal.AsSpan(list295); + index = 0; + span295[index] = "liza"; questRoot35.Author = list295; - num = 4; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - Span span75 = CollectionsMarshal.AsSpan(list296); - ref QuestSequence reference223 = ref span75[0]; + index = 4; + List list296 = new List(index); + CollectionsMarshal.SetCount(list296, index); + Span span296 = CollectionsMarshal.AsSpan(list296); + num = 0; + ref QuestSequence reference223 = ref span296[num]; QuestSequence obj213 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - ref QuestStep reference224 = ref CollectionsMarshal.AsSpan(list297)[0]; + index2 = 1; + List list297 = new List(index2); + CollectionsMarshal.SetCount(list297, index2); + Span span297 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + ref QuestStep reference224 = ref span297[num2]; QuestStep obj214 = new QuestStep(EInteractionType.AcceptQuest, 1026924u, new Vector3(64.46936f, 14.005002f, 88.70068f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -211402,17 +255785,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list298 = new List(num3); - CollectionsMarshal.SetCount(list298, num3); - CollectionsMarshal.AsSpan(list298)[0] = 131; + num4 = 1; + List list298 = new List(num4); + CollectionsMarshal.SetCount(list298, num4); + Span span298 = CollectionsMarshal.AsSpan(list298); + num3 = 0; + span298[num3] = 131; obj215.InTerritory = list298; skipConditions6.AetheryteShortcutIf = obj215; obj214.SkipConditions = skipConditions6; reference224 = obj214; obj213.Steps = list297; reference223 = obj213; - ref QuestSequence reference225 = ref span75[1]; + num++; + ref QuestSequence reference225 = ref span296[num]; QuestSequence obj216 = new QuestSequence { Sequence = 1 @@ -211420,7 +255806,9 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - ref QuestStep reference226 = ref CollectionsMarshal.AsSpan(list299)[0]; + Span span299 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + ref QuestStep reference226 = ref span299[index2]; QuestStep obj217 = new QuestStep(EInteractionType.Combat, 1026951u, new Vector3(196.67346f, 52.774567f, -38.895264f), 140) { Fly = true, @@ -211430,12 +255818,16 @@ public static class AssemblyQuestLoader num3 = 1; List list300 = new List(num3); CollectionsMarshal.SetCount(list300, num3); - CollectionsMarshal.AsSpan(list300)[0] = 9840u; + Span span300 = CollectionsMarshal.AsSpan(list300); + num4 = 0; + span300[num4] = 9840u; obj217.KillEnemyDataIds = list300; - num3 = 1; - List list301 = new List(num3); - CollectionsMarshal.SetCount(list301, num3); - CollectionsMarshal.AsSpan(list301)[0] = new DialogueChoice + num4 = 1; + List list301 = new List(num4); + CollectionsMarshal.SetCount(list301, num4); + Span span301 = CollectionsMarshal.AsSpan(list301); + num3 = 0; + span301[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBAOZ400_03197_Q1_000_013") @@ -211444,18 +255836,22 @@ public static class AssemblyQuestLoader reference226 = obj217; obj216.Steps = list299; reference225 = obj216; - ref QuestSequence reference227 = ref span75[2]; + num++; + ref QuestSequence reference227 = ref span296[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1026951u, new Vector3(196.67346f, 52.774567f, -38.895264f), 140); + index2 = 1; + List list302 = new List(index2); + CollectionsMarshal.SetCount(list302, index2); + Span span302 = CollectionsMarshal.AsSpan(list302); + num2 = 0; + span302[num2] = new QuestStep(EInteractionType.Interact, 1026951u, new Vector3(196.67346f, 52.774567f, -38.895264f), 140); obj218.Steps = list302; reference227 = obj218; - ref QuestSequence reference228 = ref span75[3]; + num++; + ref QuestSequence reference228 = ref span296[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue @@ -211463,7 +255859,9 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026953u, new Vector3(65.59851f, 14.005001f, 91.75244f), 131) + Span span303 = CollectionsMarshal.AsSpan(list303); + index2 = 0; + span303[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026953u, new Vector3(65.59851f, 14.005001f, 91.75244f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -211482,21 +255880,26 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - CollectionsMarshal.AsSpan(list304)[0] = "liza"; + Span span304 = CollectionsMarshal.AsSpan(list304); + index = 0; + span304[index] = "liza"; questRoot36.Author = list304; - num = 4; - List list305 = new List(num); - CollectionsMarshal.SetCount(list305, num); - Span span76 = CollectionsMarshal.AsSpan(list305); - ref QuestSequence reference229 = ref span76[0]; + index = 4; + List list305 = new List(index); + CollectionsMarshal.SetCount(list305, index); + Span span305 = CollectionsMarshal.AsSpan(list305); + num = 0; + ref QuestSequence reference229 = ref span305[num]; QuestSequence obj220 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - ref QuestStep reference230 = ref CollectionsMarshal.AsSpan(list306)[0]; + index2 = 1; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + Span span306 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + ref QuestStep reference230 = ref span306[num2]; QuestStep obj221 = new QuestStep(EInteractionType.AcceptQuest, 1026924u, new Vector3(64.46936f, 14.005002f, 88.70068f), 131) { StopDistance = 5f, @@ -211515,14 +255918,17 @@ public static class AssemblyQuestLoader num3 = 1; List list307 = new List(num3); CollectionsMarshal.SetCount(list307, num3); - CollectionsMarshal.AsSpan(list307)[0] = 131; + Span span307 = CollectionsMarshal.AsSpan(list307); + num4 = 0; + span307[num4] = 131; obj222.InTerritory = list307; skipConditions7.AetheryteShortcutIf = obj222; obj221.SkipConditions = skipConditions7; reference230 = obj221; obj220.Steps = list306; reference229 = obj220; - ref QuestSequence reference231 = ref span76[1]; + num++; + ref QuestSequence reference231 = ref span305[num]; QuestSequence obj223 = new QuestSequence { Sequence = 1 @@ -211530,21 +255936,26 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1026955u, new Vector3(-10.055725f, 47f, -29.800903f), 147) + Span span308 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span308[index2] = new QuestStep(EInteractionType.Interact, 1026955u, new Vector3(-10.055725f, 47f, -29.800903f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; obj223.Steps = list308; reference231 = obj223; - ref QuestSequence reference232 = ref span76[2]; + num++; + ref QuestSequence reference232 = ref span305[num]; QuestSequence obj224 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + Span span309 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span309[num2] = new QuestStep(EInteractionType.Interact, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -211555,7 +255966,8 @@ public static class AssemblyQuestLoader }; obj224.Steps = list309; reference232 = obj224; - ref QuestSequence reference233 = ref span76[3]; + num++; + ref QuestSequence reference233 = ref span305[num]; QuestSequence obj225 = new QuestSequence { Sequence = byte.MaxValue @@ -211563,7 +255975,9 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) + Span span310 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span310[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) { NextQuestId = new QuestId(3199) }; @@ -211576,21 +255990,26 @@ public static class AssemblyQuestLoader num = 1; List list311 = new List(num); CollectionsMarshal.SetCount(list311, num); - CollectionsMarshal.AsSpan(list311)[0] = "liza"; + Span span311 = CollectionsMarshal.AsSpan(list311); + index = 0; + span311[index] = "liza"; questRoot37.Author = list311; - num = 2; - List list312 = new List(num); - CollectionsMarshal.SetCount(list312, num); - Span span77 = CollectionsMarshal.AsSpan(list312); - ref QuestSequence reference234 = ref span77[0]; + index = 2; + List list312 = new List(index); + CollectionsMarshal.SetCount(list312, index); + Span span312 = CollectionsMarshal.AsSpan(list312); + num = 0; + ref QuestSequence reference234 = ref span312[num]; QuestSequence obj226 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - ref QuestStep reference235 = ref CollectionsMarshal.AsSpan(list313)[0]; + index2 = 1; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + Span span313 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + ref QuestStep reference235 = ref span313[num2]; QuestStep obj227 = new QuestStep(EInteractionType.AcceptQuest, 1026924u, new Vector3(64.46936f, 14.005002f, 88.70068f), 131) { StopDistance = 5f, @@ -211606,17 +256025,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list314 = new List(num3); - CollectionsMarshal.SetCount(list314, num3); - CollectionsMarshal.AsSpan(list314)[0] = 131; + num4 = 1; + List list314 = new List(num4); + CollectionsMarshal.SetCount(list314, num4); + Span span314 = CollectionsMarshal.AsSpan(list314); + num3 = 0; + span314[num3] = 131; obj228.InTerritory = list314; skipConditions8.AetheryteShortcutIf = obj228; obj227.SkipConditions = skipConditions8; reference235 = obj227; obj226.Steps = list313; reference234 = obj226; - ref QuestSequence reference236 = ref span77[1]; + num++; + ref QuestSequence reference236 = ref span312[num]; QuestSequence obj229 = new QuestSequence { Sequence = byte.MaxValue @@ -211624,7 +256046,9 @@ public static class AssemblyQuestLoader num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + Span span315 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span315[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, NextQuestId = new QuestId(3732) @@ -211642,13 +256066,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Starr"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Starr"; questRoot.Author = list; - num = 2; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 2; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -211656,7 +256083,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011145u, new Vector3(-65.38495f, 0.06979119f, 0.8086548f), 144) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011145u, new Vector3(-65.38495f, 0.06979119f, 0.8086548f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, SkipConditions = new SkipConditions @@ -211669,15 +256098,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016307u, new Vector3(57.14502f, 20.99973f, 83.57361f), 144) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016307u, new Vector3(57.14502f, 20.99973f, 83.57361f), 144) { AethernetShortcut = new AethernetShortcut { @@ -211694,13 +256126,16 @@ public static class AssemblyQuestLoader num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - CollectionsMarshal.AsSpan(list5)[0] = "plogon_enjoyer"; + Span span5 = CollectionsMarshal.AsSpan(list5); + index = 0; + span5[index] = "plogon_enjoyer"; questRoot2.Author = list5; - num = 4; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - Span span2 = CollectionsMarshal.AsSpan(list6); - ref QuestSequence reference3 = ref span2[0]; + index = 4; + List list6 = new List(index); + CollectionsMarshal.SetCount(list6, index); + Span span6 = CollectionsMarshal.AsSpan(list6); + num = 0; + ref QuestSequence reference3 = ref span6[num]; QuestSequence obj3 = new QuestSequence { Sequence = 0 @@ -211708,7 +256143,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list7)[0]; + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + ref QuestStep reference4 = ref span7[index2]; QuestStep obj4 = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -211723,9 +256160,11 @@ public static class AssemblyQuestLoader int num3 = 2; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span3 = CollectionsMarshal.AsSpan(list8); - span3[0] = 130; - span3[1] = 131; + Span span8 = CollectionsMarshal.AsSpan(list8); + int num4 = 0; + span8[num4] = 130; + num4++; + span8[num4] = 131; skipAetheryteCondition.InTerritory = list8; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition @@ -211736,15 +256175,18 @@ public static class AssemblyQuestLoader reference4 = obj4; obj3.Steps = list7; reference3 = obj3; - ref QuestSequence reference5 = ref span2[1]; + num++; + ref QuestSequence reference5 = ref span6[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AethernetShortcut = new AethernetShortcut { @@ -211754,7 +256196,8 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[2]; + num++; + ref QuestSequence reference6 = ref span6[num]; QuestSequence obj6 = new QuestSequence { Sequence = 2 @@ -211762,7 +256205,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1028092u, new Vector3(213.58044f, 54.47546f, 228.19861f), 140) + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.Interact, 1028092u, new Vector3(213.58044f, 54.47546f, 228.19861f), 140) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -211773,15 +256218,18 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[3]; + num++; + ref QuestSequence reference7 = ref span6[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -211799,13 +256247,16 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "plogon_enjoyer"; + Span span12 = CollectionsMarshal.AsSpan(list12); + index = 0; + span12[index] = "plogon_enjoyer"; questRoot3.Author = list12; - num = 5; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span4 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference8 = ref span4[0]; + index = 5; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference8 = ref span13[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -211813,7 +256264,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list14)[0]; + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + ref QuestStep reference9 = ref span14[index2]; QuestStep obj9 = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -211825,12 +256278,14 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 2; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span5 = CollectionsMarshal.AsSpan(list15); - span5[0] = 130; - span5[1] = 131; + num4 = 2; + List list15 = new List(num4); + CollectionsMarshal.SetCount(list15, num4); + Span span15 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span15[num3] = 130; + num3++; + span15[num3] = 131; skipAetheryteCondition2.InTerritory = list15; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; skipConditions2.AethernetShortcutIf = new SkipAetheryteCondition @@ -211841,31 +256296,36 @@ public static class AssemblyQuestLoader reference9 = obj9; obj8.Steps = list14; reference8 = obj8; - ref QuestSequence reference10 = ref span4[1]; + num++; + ref QuestSequence reference10 = ref span13[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span6 = CollectionsMarshal.AsSpan(list16); - span6[0] = new QuestStep(EInteractionType.Interact, 1028409u, new Vector3(103.4104f, 118.31935f, -706.1417f), 620) + index2 = 3; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.Interact, 1028409u, new Vector3(103.4104f, 118.31935f, -706.1417f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; - span6[1] = new QuestStep(EInteractionType.Interact, 1028410u, new Vector3(38.010254f, 118.13663f, -750.57605f), 620) + num2++; + span16[num2] = new QuestStep(EInteractionType.Interact, 1028410u, new Vector3(38.010254f, 118.13663f, -750.57605f), 620) { Mount = true }; - span6[2] = new QuestStep(EInteractionType.Interact, 1028408u, new Vector3(55.649536f, 118.16888f, -784.2069f), 620) + num2++; + span16[num2] = new QuestStep(EInteractionType.Interact, 1028408u, new Vector3(55.649536f, 118.16888f, -784.2069f), 620) { Fly = true }; obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span4[2]; + num++; + ref QuestSequence reference11 = ref span13[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -211873,22 +256333,27 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1028411u, new Vector3(-140.67297f, 27.29529f, -408.16364f), 146) + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.Interact, 1028411u, new Vector3(-140.67297f, 27.29529f, -408.16364f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span4[3]; + num++; + ref QuestSequence reference12 = ref span13[num]; QuestSequence obj12 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 2009755u, new Vector3(64.86609f, -0.38153076f, -83.32953f), 635) + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.Interact, 2009755u, new Vector3(64.86609f, -0.38153076f, -83.32953f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -211899,7 +256364,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span4[4]; + num++; + ref QuestSequence reference13 = ref span13[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -211907,7 +256373,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref QuestStep reference14 = ref span19[index2]; QuestStep obj14 = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -211922,9 +256390,11 @@ public static class AssemblyQuestLoader num3 = 2; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span7 = CollectionsMarshal.AsSpan(list20); - span7[0] = 130; - span7[1] = 131; + Span span20 = CollectionsMarshal.AsSpan(list20); + num4 = 0; + span20[num4] = 130; + num4++; + span20[num4] = 131; skipAetheryteCondition3.InTerritory = list20; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition3; skipConditions3.AethernetShortcutIf = new SkipAetheryteCondition @@ -211942,21 +256412,26 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "plogon_enjoyer"; + Span span21 = CollectionsMarshal.AsSpan(list21); + index = 0; + span21[index] = "plogon_enjoyer"; questRoot4.Author = list21; - num = 8; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span8 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference15 = ref span8[0]; + index = 8; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + Span span22 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference15 = ref span22[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list23)[0]; + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + ref QuestStep reference16 = ref span23[num2]; QuestStep obj16 = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, @@ -211969,10 +256444,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = new DialogueChoice + num4 = 1; + List list24 = new List(num4); + CollectionsMarshal.SetCount(list24, num4); + Span span24 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span24[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC003_03212_Q1_000_000"), @@ -211982,7 +256459,8 @@ public static class AssemblyQuestLoader reference16 = obj16; obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference17 = ref span8[1]; + num++; + ref QuestSequence reference17 = ref span22[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -211990,32 +256468,38 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.Interact, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj17.Steps = list25; reference17 = obj17; - ref QuestSequence reference18 = ref span8[2]; + num++; + ref QuestSequence reference18 = ref span22[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - Span span9 = CollectionsMarshal.AsSpan(list26); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(226.71358f, 8.000019f, 671.0062f), 135) + index2 = 2; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(226.71358f, 8.000019f, 671.0062f), 135) { Mount = true }; - span9[1] = new QuestStep(EInteractionType.Interact, 1030042u, new Vector3(425.10107f, 61.22168f, -42.404846f), 135) + num2++; + span26[num2] = new QuestStep(EInteractionType.Interact, 1030042u, new Vector3(425.10107f, 61.22168f, -42.404846f), 135) { Fly = true }; obj18.Steps = list26; reference18 = obj18; - ref QuestSequence reference19 = ref span8[3]; + num++; + ref QuestSequence reference19 = ref span22[num]; QuestSequence obj19 = new QuestSequence { Sequence = 3 @@ -212023,8 +256507,9 @@ public static class AssemblyQuestLoader num2 = 3; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span10 = CollectionsMarshal.AsSpan(list27); - ref QuestStep reference20 = ref span10[0]; + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + ref QuestStep reference20 = ref span27[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Action, 2010149u, new Vector3(345.3573f, 58.457275f, -63.523376f), 135) { Fly = true, @@ -212033,34 +256518,48 @@ public static class AssemblyQuestLoader num3 = 6; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - Span span11 = CollectionsMarshal.AsSpan(list28); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span28 = CollectionsMarshal.AsSpan(list28); + num4 = 0; + span28[num4] = null; + num4++; + span28[num4] = null; + num4++; + span28[num4] = null; + num4++; + span28[num4] = null; + num4++; + span28[num4] = null; + num4++; + span28[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj20.CompletionQuestVariablesFlags = list28; reference20 = obj20; - ref QuestStep reference21 = ref span10[1]; + index2++; + ref QuestStep reference21 = ref span27[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Action, 2010150u, new Vector3(369.43604f, 64.59143f, -88.85327f), 135) { Fly = true, Action = EAction.HeavySwing }; - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span12 = CollectionsMarshal.AsSpan(list29); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list29; reference21 = obj21; - ref QuestStep reference22 = ref span10[2]; + index2++; + ref QuestStep reference22 = ref span27[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Action, 2010151u, new Vector3(360.95215f, 69.90149f, -119.06616f), 135) { Fly = true, @@ -212069,32 +256568,42 @@ public static class AssemblyQuestLoader num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span13 = CollectionsMarshal.AsSpan(list30); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span30 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj22.CompletionQuestVariablesFlags = list30; reference22 = obj22; obj19.Steps = list27; reference19 = obj19; - ref QuestSequence reference23 = ref span8[4]; + num++; + ref QuestSequence reference23 = ref span22[num]; QuestSequence obj23 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1030042u, new Vector3(425.10107f, 61.22168f, -42.404846f), 135) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.Interact, 1030042u, new Vector3(425.10107f, 61.22168f, -42.404846f), 135) { Fly = true }; obj23.Steps = list31; reference23 = obj23; - ref QuestSequence reference24 = ref span8[5]; + num++; + ref QuestSequence reference24 = ref span22[num]; QuestSequence obj24 = new QuestSequence { Sequence = 5 @@ -212102,28 +256611,34 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1030044u, new Vector3(435.8739f, 66.317635f, -276.56976f), 135) + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.Interact, 1030044u, new Vector3(435.8739f, 66.317635f, -276.56976f), 135) { Fly = true }; obj24.Steps = list32; reference24 = obj24; - ref QuestSequence reference25 = ref span8[6]; + num++; + ref QuestSequence reference25 = ref span22[num]; QuestSequence obj25 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Action, 1030046u, new Vector3(433.9818f, 66.317635f, -277.48535f), 135) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.Action, 1030046u, new Vector3(433.9818f, 66.317635f, -277.48535f), 135) { DelaySecondsAtStart = 2f, Action = EAction.HeavySwing }; obj25.Steps = list33; reference25 = obj25; - ref QuestSequence reference26 = ref span8[7]; + num++; + ref QuestSequence reference26 = ref span22[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -212131,7 +256646,9 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol @@ -212145,22 +256662,26 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "plogon_enjoyer"; + Span span35 = CollectionsMarshal.AsSpan(list35); + index = 0; + span35[index] = "plogon_enjoyer"; questRoot5.Author = list35; - num = 6; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span14 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference27 = ref span14[0]; + index = 6; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + Span span36 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference27 = ref span36[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span15 = CollectionsMarshal.AsSpan(list37); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + index2 = 2; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -212172,10 +256693,12 @@ public static class AssemblyQuestLoader } } }; - span15[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + num2++; + span37[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj27.Steps = list37; reference27 = obj27; - ref QuestSequence reference28 = ref span14[1]; + num++; + ref QuestSequence reference28 = ref span36[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -212183,29 +256706,35 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1029861u, new Vector3(-753.78046f, 123.728714f, 206.43921f), 400) + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.Interact, 1029861u, new Vector3(-753.78046f, 123.728714f, 206.43921f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj28.Steps = list38; reference28 = obj28; - ref QuestSequence reference29 = ref span14[2]; + num++; + ref QuestSequence reference29 = ref span36[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 2009923u, new Vector3(-114.0307f, 145.09802f, -553.2159f), 400) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.Interact, 2009923u, new Vector3(-114.0307f, 145.09802f, -553.2159f), 400) { Fly = true, Land = true }; obj29.Steps = list39; reference29 = obj29; - ref QuestSequence reference30 = ref span14[3]; + num++; + ref QuestSequence reference30 = ref span36[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -212213,28 +256742,34 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1029862u, new Vector3(-93.27844f, 137.46214f, -534.44727f), 400) + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = new QuestStep(EInteractionType.Interact, 1029862u, new Vector3(-93.27844f, 137.46214f, -534.44727f), 400) { Fly = true }; obj30.Steps = list40; reference30 = obj30; - ref QuestSequence reference31 = ref span14[4]; + num++; + ref QuestSequence reference31 = ref span36[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1029863u, new Vector3(746.6697f, 69.99995f, 533.135f), 621) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.Interact, 1029863u, new Vector3(746.6697f, 69.99995f, 533.135f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj31.Steps = list41; reference31 = obj31; - ref QuestSequence reference32 = ref span14[5]; + num++; + ref QuestSequence reference32 = ref span36[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -212242,13 +256777,15 @@ public static class AssemblyQuestLoader num2 = 2; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span16 = CollectionsMarshal.AsSpan(list42); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(213.22748f, 222.08781f, 342.82468f), 155) + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(213.22748f, 222.08781f, 342.82468f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span16[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + index2++; + span42[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj32.Steps = list42; reference32 = obj32; questRoot5.QuestSequence = list36; @@ -212258,21 +256795,26 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "plogon_enjoyer"; + Span span43 = CollectionsMarshal.AsSpan(list43); + index = 0; + span43[index] = "plogon_enjoyer"; questRoot6.Author = list43; - num = 7; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span17 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference33 = ref span17[0]; + index = 7; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + Span span44 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference33 = ref span44[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span45[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -212286,7 +256828,8 @@ public static class AssemblyQuestLoader }; obj33.Steps = list45; reference33 = obj33; - ref QuestSequence reference34 = ref span17[1]; + num++; + ref QuestSequence reference34 = ref span44[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -212294,7 +256837,9 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1030074u, new Vector3(192.58398f, -2.539064f, 73.59424f), 132) + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.Interact, 1030074u, new Vector3(192.58398f, -2.539064f, 73.59424f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -212305,22 +256850,26 @@ public static class AssemblyQuestLoader }; obj34.Steps = list46; reference34 = obj34; - ref QuestSequence reference35 = ref span17[2]; + num++; + ref QuestSequence reference35 = ref span44[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1030078u, new Vector3(-180.34644f, -1.2285838f, 341.6953f), 152) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.Interact, 1030078u, new Vector3(-180.34644f, -1.2285838f, 341.6953f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj35.Steps = list47; reference35 = obj35; - ref QuestSequence reference36 = ref span17[3]; + num++; + ref QuestSequence reference36 = ref span44[num]; QuestSequence obj36 = new QuestSequence { Sequence = 3 @@ -212328,7 +256877,9 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Say, 2010182u, new Vector3(-85.160645f, 6.0578003f, 398.64185f), 152) + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.Say, 2010182u, new Vector3(-85.160645f, 6.0578003f, 398.64185f), 152) { Fly = true, ChatMessage = new ChatMessage @@ -212338,15 +256889,18 @@ public static class AssemblyQuestLoader }; obj36.Steps = list48; reference36 = obj36; - ref QuestSequence reference37 = ref span17[4]; + num++; + ref QuestSequence reference37 = ref span44[num]; QuestSequence obj37 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Say, 2010183u, new Vector3(38.376343f, 7.2785034f, 430.28906f), 152) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.Say, 2010183u, new Vector3(38.376343f, 7.2785034f, 430.28906f), 152) { Fly = true, ChatMessage = new ChatMessage @@ -212356,7 +256910,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list49; reference37 = obj37; - ref QuestSequence reference38 = ref span17[5]; + num++; + ref QuestSequence reference38 = ref span44[num]; QuestSequence obj38 = new QuestSequence { Sequence = 5 @@ -212364,7 +256919,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1030081u, new Vector3(29.648315f, -18.800003f, 95.26196f), 132) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.Interact, 1030081u, new Vector3(29.648315f, -18.800003f, 95.26196f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -212376,15 +256933,18 @@ public static class AssemblyQuestLoader }; obj38.Steps = list50; reference38 = obj38; - ref QuestSequence reference39 = ref span17[6]; + num++; + ref QuestSequence reference39 = ref span44[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030081u, new Vector3(29.648315f, -18.800003f, 95.26196f), 132) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030081u, new Vector3(29.648315f, -18.800003f, 95.26196f), 132) { StopDistance = 7f }; @@ -212397,13 +256957,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "plogon_enjoyer"; + Span span52 = CollectionsMarshal.AsSpan(list52); + index = 0; + span52[index] = "plogon_enjoyer"; questRoot7.Author = list52; - num = 6; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span18 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference40 = ref span18[0]; + index = 6; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + Span span53 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference40 = ref span53[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -212411,27 +256974,32 @@ public static class AssemblyQuestLoader num2 = 2; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span19 = CollectionsMarshal.AsSpan(list54); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.7745f, 10.010047f, 278.79453f), 153) + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.7745f, 10.010047f, 278.79453f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; - span19[1] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + index2++; + span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { StopDistance = 4f }; obj40.Steps = list54; reference40 = obj40; - ref QuestSequence reference41 = ref span18[1]; + num++; + ref QuestSequence reference41 = ref span53[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1028418u, new Vector3(-242.26752f, -4f, 1.2054443f), 133) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.Interact, 1028418u, new Vector3(-242.26752f, -4f, 1.2054443f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -212442,7 +257010,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list55; reference41 = obj41; - ref QuestSequence reference42 = ref span18[2]; + num++; + ref QuestSequence reference42 = ref span53[num]; QuestSequence obj42 = new QuestSequence { Sequence = 2 @@ -212450,28 +257019,34 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1028419u, new Vector3(-19.058533f, -32.58833f, 307.1488f), 148) + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.Interact, 1028419u, new Vector3(-19.058533f, -32.58833f, 307.1488f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj42.Steps = list56; reference42 = obj42; - ref QuestSequence reference43 = ref span18[3]; + num++; + ref QuestSequence reference43 = ref span53[num]; QuestSequence obj43 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1028423u, new Vector3(-62.974f, -36.839226f, 473.3806f), 148) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.Interact, 1028423u, new Vector3(-62.974f, -36.839226f, 473.3806f), 148) { Fly = true }; obj43.Steps = list57; reference43 = obj43; - ref QuestSequence reference44 = ref span18[4]; + num++; + ref QuestSequence reference44 = ref span53[num]; QuestSequence obj44 = new QuestSequence { Sequence = 4 @@ -212479,27 +257054,32 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1028424u, new Vector3(-19.85205f, -34.365856f, 416.76965f), 148) + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.Interact, 1028424u, new Vector3(-19.85205f, -34.365856f, 416.76965f), 148) { StopDistance = 7f }; obj44.Steps = list58; reference44 = obj44; - ref QuestSequence reference45 = ref span18[5]; + num++; + ref QuestSequence reference45 = ref span53[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - Span span20 = CollectionsMarshal.AsSpan(list59); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.7745f, 10.010047f, 278.79453f), 153) + index2 = 2; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.7745f, 10.010047f, 278.79453f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; - span20[1] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + num2++; + span59[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { StopDistance = 4f }; @@ -212512,13 +257092,16 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "plogon_enjoyer"; + Span span60 = CollectionsMarshal.AsSpan(list60); + index = 0; + span60[index] = "plogon_enjoyer"; questRoot8.Author = list60; - num = 8; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span21 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference46 = ref span21[0]; + index = 8; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference46 = ref span61[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -212526,7 +257109,9 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -212537,15 +257122,18 @@ public static class AssemblyQuestLoader }; obj46.Steps = list62; reference46 = obj46; - ref QuestSequence reference47 = ref span21[1]; + num++; + ref QuestSequence reference47 = ref span61[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list63)[0]; + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference48 = ref span63[num2]; QuestStep obj48 = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AethernetShortcut = new AethernetShortcut @@ -212554,17 +257142,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - num3 = 2; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span22 = CollectionsMarshal.AsSpan(list64); - span22[0] = new DialogueChoice + num4 = 2; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + Span span64 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span64[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC007_03216_Q1_000_300"), Answer = new ExcelRef("TEXT_LUCKBC007_03216_A1_000_301") }; - span22[1] = new DialogueChoice + num3++; + span64[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC007_03216_Q1_000_100"), @@ -212574,7 +257164,8 @@ public static class AssemblyQuestLoader reference48 = obj48; obj47.Steps = list63; reference47 = obj47; - ref QuestSequence reference49 = ref span21[2]; + num++; + ref QuestSequence reference49 = ref span61[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -212582,21 +257173,27 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); obj49.Steps = list65; reference49 = obj49; - ref QuestSequence reference50 = ref span21[3]; + num++; + ref QuestSequence reference50 = ref span61[num]; QuestSequence obj50 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1029866u, new Vector3(-173.08313f, 17.999998f, 74.906494f), 130); + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.Interact, 1029866u, new Vector3(-173.08313f, 17.999998f, 74.906494f), 130); obj50.Steps = list66; reference50 = obj50; - ref QuestSequence reference51 = ref span21[4]; + num++; + ref QuestSequence reference51 = ref span61[num]; QuestSequence obj51 = new QuestSequence { Sequence = 4 @@ -212604,21 +257201,26 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1029868u, new Vector3(-89.21954f, 39.99999f, 106.98096f), 131) + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.Interact, 1029868u, new Vector3(-89.21954f, 39.99999f, 106.98096f), 131) { StopDistance = 4f }; obj51.Steps = list67; reference51 = obj51; - ref QuestSequence reference52 = ref span21[5]; + num++; + ref QuestSequence reference52 = ref span61[num]; QuestSequence obj52 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AethernetShortcut = new AethernetShortcut { @@ -212628,7 +257230,8 @@ public static class AssemblyQuestLoader }; obj52.Steps = list68; reference52 = obj52; - ref QuestSequence reference53 = ref span21[6]; + num++; + ref QuestSequence reference53 = ref span61[num]; QuestSequence obj53 = new QuestSequence { Sequence = 6 @@ -212636,18 +257239,23 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); obj53.Steps = list69; reference53 = obj53; - ref QuestSequence reference54 = ref span21[7]; + num++; + ref QuestSequence reference54 = ref span61[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AethernetShortcut = new AethernetShortcut { @@ -212664,13 +257272,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "plogon_enjoyer"; + Span span71 = CollectionsMarshal.AsSpan(list71); + index = 0; + span71[index] = "plogon_enjoyer"; questRoot9.Author = list71; - num = 10; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span23 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference55 = ref span23[0]; + index = 10; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + Span span72 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference55 = ref span72[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -212678,7 +257289,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -212689,24 +257302,28 @@ public static class AssemblyQuestLoader }; obj55.Steps = list73; reference55 = obj55; - ref QuestSequence reference56 = ref span23[1]; + num++; + ref QuestSequence reference56 = ref span72[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - Span span24 = CollectionsMarshal.AsSpan(list74); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.67957f, -3.224134f, 42.683086f), 139) + index2 = 2; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.67957f, -3.224134f, 42.683086f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span24[1] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + num2++; + span74[num2] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj56.Steps = list74; reference56 = obj56; - ref QuestSequence reference57 = ref span23[2]; + num++; + ref QuestSequence reference57 = ref span72[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -212714,7 +257331,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list75)[0]; + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + ref QuestStep reference58 = ref span75[index2]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, 2009742u, new Vector3(69.565796f, 17.807251f, 234.88208f), 153) { Fly = true, @@ -212724,29 +257343,35 @@ public static class AssemblyQuestLoader num3 = 1; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = 10832u; + Span span76 = CollectionsMarshal.AsSpan(list76); + num4 = 0; + span76[num4] = 10832u; obj58.KillEnemyDataIds = list76; reference58 = obj58; obj57.Steps = list75; reference57 = obj57; - ref QuestSequence reference59 = ref span23[3]; + num++; + ref QuestSequence reference59 = ref span72[num]; QuestSequence obj59 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - Span span25 = CollectionsMarshal.AsSpan(list77); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.67957f, -3.224134f, 42.683086f), 139) + index2 = 2; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.67957f, -3.224134f, 42.683086f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span25[1] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + num2++; + span77[num2] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj59.Steps = list77; reference59 = obj59; - ref QuestSequence reference60 = ref span23[4]; + num++; + ref QuestSequence reference60 = ref span72[num]; QuestSequence obj60 = new QuestSequence { Sequence = 4 @@ -212754,27 +257379,33 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1031208u, new Vector3(206.80542f, -3.065022f, 43.83911f), 139); + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.Interact, 1031208u, new Vector3(206.80542f, -3.065022f, 43.83911f), 139); obj60.Steps = list78; reference60 = obj60; - ref QuestSequence reference61 = ref span23[5]; + num++; + ref QuestSequence reference61 = ref span72[num]; QuestSequence obj61 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span26 = CollectionsMarshal.AsSpan(list79); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-277.67575f, 64.18076f, -163.79219f), 180) + index2 = 2; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-277.67575f, 64.18076f, -163.79219f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; - span26[1] = new QuestStep(EInteractionType.Interact, 1028097u, new Vector3(-276.56976f, 64.43479f, -161.18109f), 180); + num2++; + span79[num2] = new QuestStep(EInteractionType.Interact, 1028097u, new Vector3(-276.56976f, 64.43479f, -161.18109f), 180); obj61.Steps = list79; reference61 = obj61; - ref QuestSequence reference62 = ref span23[6]; + num++; + ref QuestSequence reference62 = ref span72[num]; QuestSequence obj62 = new QuestSequence { Sequence = 6 @@ -212782,27 +257413,33 @@ public static class AssemblyQuestLoader num2 = 2; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span27 = CollectionsMarshal.AsSpan(list80); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.67957f, -3.224134f, 42.683086f), 139) + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.67957f, -3.224134f, 42.683086f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - span27[1] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + index2++; + span80[index2] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj62.Steps = list80; reference62 = obj62; - ref QuestSequence reference63 = ref span23[7]; + num++; + ref QuestSequence reference63 = ref span72[num]; QuestSequence obj63 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1031208u, new Vector3(206.80542f, -3.065022f, 43.83911f), 139); + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.Interact, 1031208u, new Vector3(206.80542f, -3.065022f, 43.83911f), 139); obj63.Steps = list81; reference63 = obj63; - ref QuestSequence reference64 = ref span23[8]; + num++; + ref QuestSequence reference64 = ref span72[num]; QuestSequence obj64 = new QuestSequence { Sequence = 8 @@ -212810,18 +257447,23 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1028373u, new Vector3(207.53784f, -3.049824f, 43.22876f), 139); + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.Interact, 1028373u, new Vector3(207.53784f, -3.049824f, 43.22876f), 139); obj64.Steps = list82; reference64 = obj64; - ref QuestSequence reference65 = ref span23[9]; + num++; + ref QuestSequence reference65 = ref span72[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj65.Steps = list83; reference65 = obj65; questRoot9.QuestSequence = list72; @@ -212831,13 +257473,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "plogon_enjoyer"; + Span span84 = CollectionsMarshal.AsSpan(list84); + index = 0; + span84[index] = "plogon_enjoyer"; questRoot10.Author = list84; - num = 8; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span28 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference66 = ref span28[0]; + index = 8; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference66 = ref span85[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -212845,31 +257490,37 @@ public static class AssemblyQuestLoader num2 = 2; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span29 = CollectionsMarshal.AsSpan(list86); - span29[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - span29[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + index2++; + span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj66.Steps = list86; reference66 = obj66; - ref QuestSequence reference67 = ref span28[1]; + num++; + ref QuestSequence reference67 = ref span85[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1030049u, new Vector3(-349.50793f, 57.270435f, -393.0572f), 180) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.Interact, 1030049u, new Vector3(-349.50793f, 57.270435f, -393.0572f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj67.Steps = list87; reference67 = obj67; - ref QuestSequence reference68 = ref span28[2]; + num++; + ref QuestSequence reference68 = ref span85[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -212877,33 +257528,40 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 2010173u, new Vector3(-310.0786f, 5.5999756f, -564.0803f), 180) + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.Interact, 2010173u, new Vector3(-310.0786f, 5.5999756f, -564.0803f), 180) { Fly = true }; obj68.Steps = list88; reference68 = obj68; - ref QuestSequence reference69 = ref span28[3]; + num++; + ref QuestSequence reference69 = ref span85[num]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - Span span30 = CollectionsMarshal.AsSpan(list89); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-302.34204f, 4.9819174f, -570.3643f), 180) + index2 = 3; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-302.34204f, 4.9819174f, -570.3643f), 180) { Mount = true }; - span30[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-308.3169f, 5.7642717f, -571.4899f), 180); - span30[2] = new QuestStep(EInteractionType.Interact, 2010175u, new Vector3(-302.72375f, 9.750427f, -578.02704f), 180) + num2++; + span89[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-308.3169f, 5.7642717f, -571.4899f), 180); + num2++; + span89[num2] = new QuestStep(EInteractionType.Interact, 2010175u, new Vector3(-302.72375f, 9.750427f, -578.02704f), 180) { Fly = true }; obj69.Steps = list89; reference69 = obj69; - ref QuestSequence reference70 = ref span28[4]; + num++; + ref QuestSequence reference70 = ref span85[num]; QuestSequence obj70 = new QuestSequence { Sequence = 4 @@ -212911,33 +257569,40 @@ public static class AssemblyQuestLoader num2 = 3; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span31 = CollectionsMarshal.AsSpan(list90); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-306.7621f, 5.7733507f, -570.97736f), 180); - span31[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-302.3223f, 4.976821f, -570.7108f), 180); - span31[2] = new QuestStep(EInteractionType.Interact, 2010180u, new Vector3(-349.50793f, 57.236572f, -393.0572f), 180) + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-306.7621f, 5.7733507f, -570.97736f), 180); + index2++; + span90[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-302.3223f, 4.976821f, -570.7108f), 180); + index2++; + span90[index2] = new QuestStep(EInteractionType.Interact, 2010180u, new Vector3(-349.50793f, 57.236572f, -393.0572f), 180) { Fly = true }; obj70.Steps = list90; reference70 = obj70; - ref QuestSequence reference71 = ref span28[5]; + num++; + ref QuestSequence reference71 = ref span85[num]; QuestSequence obj71 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - Span span32 = CollectionsMarshal.AsSpan(list91); - span32[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + index2 = 2; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span91[num2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - span32[1] = new QuestStep(EInteractionType.Interact, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + num2++; + span91[num2] = new QuestStep(EInteractionType.Interact, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj71.Steps = list91; reference71 = obj71; - ref QuestSequence reference72 = ref span28[6]; + num++; + ref QuestSequence reference72 = ref span85[num]; QuestSequence obj72 = new QuestSequence { Sequence = 6 @@ -212945,7 +257610,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 2010181u, new Vector3(-77.28699f, 40.97046f, -138.78088f), 128) + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.Interact, 2010181u, new Vector3(-77.28699f, 40.97046f, -138.78088f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -212956,15 +257623,18 @@ public static class AssemblyQuestLoader }; obj72.Steps = list92; reference72 = obj72; - ref QuestSequence reference73 = ref span28[7]; + num++; + ref QuestSequence reference73 = ref span85[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030053u, new Vector3(-153.67358f, -129.4397f, 264.60657f), 129); + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030053u, new Vector3(-153.67358f, -129.4397f, 264.60657f), 129); obj73.Steps = list93; reference73 = obj73; questRoot10.QuestSequence = list85; @@ -212974,13 +257644,16 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "plogon_enjoyer"; + Span span94 = CollectionsMarshal.AsSpan(list94); + index = 0; + span94[index] = "plogon_enjoyer"; questRoot11.Author = list94; - num = 8; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span33 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference74 = ref span33[0]; + index = 8; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + Span span95 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference74 = ref span95[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -212988,7 +257661,9 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -213006,18 +257681,22 @@ public static class AssemblyQuestLoader }; obj74.Steps = list96; reference74 = obj74; - ref QuestSequence reference75 = ref span33[1]; + num++; + ref QuestSequence reference75 = ref span95[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 2009739u, new Vector3(-116.44165f, 15.121643f, -53.574463f), 418); + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span97[num2] = new QuestStep(EInteractionType.Interact, 2009739u, new Vector3(-116.44165f, 15.121643f, -53.574463f), 418); obj75.Steps = list97; reference75 = obj75; - ref QuestSequence reference76 = ref span33[2]; + num++; + ref QuestSequence reference76 = ref span95[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 @@ -213025,24 +257704,30 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span98[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); obj76.Steps = list98; reference76 = obj76; - ref QuestSequence reference77 = ref span33[3]; + num++; + ref QuestSequence reference77 = ref span95[num]; QuestSequence obj77 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1014803u, new Vector3(484.39758f, 212.5841f, 724.2999f), 397) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.Interact, 1014803u, new Vector3(484.39758f, 212.5841f, 724.2999f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj77.Steps = list99; reference77 = obj77; - ref QuestSequence reference78 = ref span33[4]; + num++; + ref QuestSequence reference78 = ref span95[num]; QuestSequence obj78 = new QuestSequence { Sequence = 4 @@ -213050,35 +257735,43 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 2009740u, new Vector3(348.01245f, 158.34277f, 153.03271f), 397) + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.Interact, 2009740u, new Vector3(348.01245f, 158.34277f, 153.03271f), 397) { Fly = true }; obj78.Steps = list100; reference78 = obj78; - ref QuestSequence reference79 = ref span33[5]; + num++; + ref QuestSequence reference79 = ref span95[num]; QuestSequence obj79 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - ref QuestStep reference80 = ref CollectionsMarshal.AsSpan(list101)[0]; + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + ref QuestStep reference80 = ref span101[num2]; QuestStep obj80 = new QuestStep(EInteractionType.Combat, 2009741u, new Vector3(504.72266f, 121.62964f, 162.005f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = 10833u; + num4 = 1; + List list102 = new List(num4); + CollectionsMarshal.SetCount(list102, num4); + Span span102 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span102[num3] = 10833u; obj80.KillEnemyDataIds = list102; reference80 = obj80; obj79.Steps = list101; reference79 = obj79; - ref QuestSequence reference81 = ref span33[6]; + num++; + ref QuestSequence reference81 = ref span95[num]; QuestSequence obj81 = new QuestSequence { Sequence = 6 @@ -213086,21 +257779,26 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1028096u, new Vector3(343.00745f, 158.52606f, 152.75806f), 397) + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span103[index2] = new QuestStep(EInteractionType.Interact, 1028096u, new Vector3(343.00745f, 158.52606f, 152.75806f), 397) { Fly = true }; obj81.Steps = list103; reference81 = obj81; - ref QuestSequence reference82 = ref span33[7]; + num++; + ref QuestSequence reference82 = ref span95[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -213118,13 +257816,16 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - CollectionsMarshal.AsSpan(list105)[0] = "plogon_enjoyer"; + Span span105 = CollectionsMarshal.AsSpan(list105); + index = 0; + span105[index] = "plogon_enjoyer"; questRoot12.Author = list105; - num = 9; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - Span span34 = CollectionsMarshal.AsSpan(list106); - ref QuestSequence reference83 = ref span34[0]; + index = 9; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + Span span106 = CollectionsMarshal.AsSpan(list106); + num = 0; + ref QuestSequence reference83 = ref span106[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -213132,7 +257833,9 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list107)[0]; + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + ref QuestStep reference84 = ref span107[index2]; QuestStep obj84 = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -213152,7 +257855,9 @@ public static class AssemblyQuestLoader num3 = 1; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new DialogueChoice + Span span108 = CollectionsMarshal.AsSpan(list108); + num4 = 0; + span108[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC012_03221_Q1_000_002"), @@ -213162,18 +257867,22 @@ public static class AssemblyQuestLoader reference84 = obj84; obj83.Steps = list107; reference83 = obj83; - ref QuestSequence reference85 = ref span34[1]; + num++; + ref QuestSequence reference85 = ref span106[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 2009976u, new Vector3(102.92212f, 15.915161f, 39.414062f), 418); + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.Interact, 2009976u, new Vector3(102.92212f, 15.915161f, 39.414062f), 418); obj85.Steps = list109; reference85 = obj85; - ref QuestSequence reference86 = ref span34[2]; + num++; + ref QuestSequence reference86 = ref span106[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -213181,7 +257890,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1030087u, new Vector3(-182.51324f, 2.0332975f, -5.56958f), 418) + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.Interact, 1030087u, new Vector3(-182.51324f, 2.0332975f, -5.56958f), 418) { AethernetShortcut = new AethernetShortcut { @@ -213191,15 +257902,18 @@ public static class AssemblyQuestLoader }; obj86.Steps = list110; reference86 = obj86; - ref QuestSequence reference87 = ref span34[3]; + num++; + ref QuestSequence reference87 = ref span106[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1030088u, new Vector3(104.93628f, 34.72381f, 10.208252f), 418) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.Interact, 1030088u, new Vector3(104.93628f, 34.72381f, 10.208252f), 418) { AethernetShortcut = new AethernetShortcut { @@ -213209,7 +257923,8 @@ public static class AssemblyQuestLoader }; obj87.Steps = list111; reference87 = obj87; - ref QuestSequence reference88 = ref span34[4]; + num++; + ref QuestSequence reference88 = ref span106[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -213217,7 +257932,9 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -213228,21 +257945,25 @@ public static class AssemblyQuestLoader }; obj88.Steps = list112; reference88 = obj88; - ref QuestSequence reference89 = ref span34[5]; + num++; + ref QuestSequence reference89 = ref span106[num]; QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj89.Steps = list113; reference89 = obj89; - ref QuestSequence reference90 = ref span34[6]; + num++; + ref QuestSequence reference90 = ref span106[num]; QuestSequence obj90 = new QuestSequence { Sequence = 6 @@ -213250,7 +257971,9 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1030089u, new Vector3(433.31042f, 68.09681f, -184.2832f), 135) + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = new QuestStep(EInteractionType.Interact, 1030089u, new Vector3(433.31042f, 68.09681f, -184.2832f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -213262,15 +257985,18 @@ public static class AssemblyQuestLoader }; obj90.Steps = list114; reference90 = obj90; - ref QuestSequence reference91 = ref span34[7]; + num++; + ref QuestSequence reference91 = ref span106[num]; QuestSequence obj91 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Say, 2009979u, new Vector3(-95.10956f, 298.63428f, -212.54297f), 155) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span115[num2] = new QuestStep(EInteractionType.Say, 2009979u, new Vector3(-95.10956f, 298.63428f, -212.54297f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -213286,7 +258012,8 @@ public static class AssemblyQuestLoader }; obj91.Steps = list115; reference91 = obj91; - ref QuestSequence reference92 = ref span34[8]; + num++; + ref QuestSequence reference92 = ref span106[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -213294,7 +258021,9 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list116)[0]; + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + ref QuestStep reference93 = ref span116[index2]; QuestStep obj93 = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -213304,10 +258033,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num3 = 1; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = new DialogueChoice + num4 = 1; + List list117 = new List(num4); + CollectionsMarshal.SetCount(list117, num4); + Span span117 = CollectionsMarshal.AsSpan(list117); + num3 = 0; + span117[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC012_03221_Q3_000_192"), @@ -213324,21 +258055,26 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "plogon_enjoyer"; + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "plogon_enjoyer"; questRoot13.Author = list118; - num = 8; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span35 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference94 = ref span35[0]; + index = 8; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference94 = ref span119[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -213349,7 +258085,8 @@ public static class AssemblyQuestLoader }; obj94.Steps = list120; reference94 = obj94; - ref QuestSequence reference95 = ref span35[1]; + num++; + ref QuestSequence reference95 = ref span119[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 @@ -213357,7 +258094,9 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1021255u, new Vector3(-0.35101318f, 11.965101f, 45.029297f), 419) + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.Interact, 1021255u, new Vector3(-0.35101318f, 11.965101f, 45.029297f), 419) { AethernetShortcut = new AethernetShortcut { @@ -213367,15 +258106,18 @@ public static class AssemblyQuestLoader }; obj95.Steps = list121; reference95 = obj95; - ref QuestSequence reference96 = ref span35[2]; + num++; + ref QuestSequence reference96 = ref span119[num]; QuestSequence obj96 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1028385u, new Vector3(-48.17273f, 8.05915f, 15.762573f), 418) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.Interact, 1028385u, new Vector3(-48.17273f, 8.05915f, 15.762573f), 418) { AethernetShortcut = new AethernetShortcut { @@ -213385,7 +258127,8 @@ public static class AssemblyQuestLoader }; obj96.Steps = list122; reference96 = obj96; - ref QuestSequence reference97 = ref span35[3]; + num++; + ref QuestSequence reference97 = ref span119[num]; QuestSequence obj97 = new QuestSequence { Sequence = 3 @@ -213393,7 +258136,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1028386u, new Vector3(199.17603f, -5.3999653f, -57.38922f), 419) + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.Interact, 1028386u, new Vector3(199.17603f, -5.3999653f, -57.38922f), 419) { AethernetShortcut = new AethernetShortcut { @@ -213403,15 +258148,18 @@ public static class AssemblyQuestLoader }; obj97.Steps = list123; reference97 = obj97; - ref QuestSequence reference98 = ref span35[4]; + num++; + ref QuestSequence reference98 = ref span119[num]; QuestSequence obj98 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1028388u, new Vector3(-4.989685f, 27.716667f, -130.9682f), 419) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.Interact, 1028388u, new Vector3(-4.989685f, 27.716667f, -130.9682f), 419) { AethernetShortcut = new AethernetShortcut { @@ -213421,7 +258169,8 @@ public static class AssemblyQuestLoader }; obj98.Steps = list124; reference98 = obj98; - ref QuestSequence reference99 = ref span35[5]; + num++; + ref QuestSequence reference99 = ref span119[num]; QuestSequence obj99 = new QuestSequence { Sequence = 5 @@ -213429,31 +258178,37 @@ public static class AssemblyQuestLoader num2 = 2; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span36 = CollectionsMarshal.AsSpan(list125); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(243.48306f, 324.1f, -301.10074f), 155) + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(243.48306f, 324.1f, -301.10074f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span36[1] = new QuestStep(EInteractionType.Interact, 1028390u, new Vector3(244.64783f, 323.99997f, -303.3036f), 155); + index2++; + span125[index2] = new QuestStep(EInteractionType.Interact, 1028390u, new Vector3(244.64783f, 323.99997f, -303.3036f), 155); obj99.Steps = list125; reference99 = obj99; - ref QuestSequence reference100 = ref span35[6]; + num++; + ref QuestSequence reference100 = ref span119[num]; QuestSequence obj100 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Action, 1028390u, new Vector3(244.64783f, 323.99997f, -303.3036f), 155) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.Action, 1028390u, new Vector3(244.64783f, 323.99997f, -303.3036f), 155) { DelaySecondsAtStart = 2f, Action = EAction.AspectedBenefic }; obj100.Steps = list126; reference100 = obj100; - ref QuestSequence reference101 = ref span35[7]; + num++; + ref QuestSequence reference101 = ref span119[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -213461,7 +258216,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028391u, new Vector3(199.4812f, -5.3999653f, -60.44104f), 419) + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028391u, new Vector3(199.4812f, -5.3999653f, -60.44104f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -213479,21 +258236,26 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "plogon_enjoyer"; + Span span128 = CollectionsMarshal.AsSpan(list128); + index = 0; + span128[index] = "plogon_enjoyer"; questRoot14.Author = list128; - num = 6; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span37 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference102 = ref span37[0]; + index = 6; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + Span span129 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference102 = ref span129[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -213504,7 +258266,8 @@ public static class AssemblyQuestLoader }; obj102.Steps = list130; reference102 = obj102; - ref QuestSequence reference103 = ref span37[1]; + num++; + ref QuestSequence reference103 = ref span129[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -213512,7 +258275,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1030622u, new Vector3(39.04773f, 8f, -119.76807f), 130) + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.Interact, 1030622u, new Vector3(39.04773f, 8f, -119.76807f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -213523,15 +258288,18 @@ public static class AssemblyQuestLoader }; obj103.Steps = list131; reference103 = obj103; - ref QuestSequence reference104 = ref span37[2]; + num++; + ref QuestSequence reference104 = ref span129[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1030057u, new Vector3(-218.15833f, 31.684015f, 380.51416f), 140) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.Interact, 1030057u, new Vector3(-218.15833f, 31.684015f, 380.51416f), 140) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -213542,7 +258310,8 @@ public static class AssemblyQuestLoader }; obj104.Steps = list132; reference104 = obj104; - ref QuestSequence reference105 = ref span37[3]; + num++; + ref QuestSequence reference105 = ref span129[num]; QuestSequence obj105 = new QuestSequence { Sequence = 3 @@ -213550,27 +258319,33 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1022189u, new Vector3(-312.67267f, 33.089348f, 446.5553f), 140) + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.Interact, 1022189u, new Vector3(-312.67267f, 33.089348f, 446.5553f), 140) { Fly = true }; obj105.Steps = list133; reference105 = obj105; - ref QuestSequence reference106 = ref span37[4]; + num++; + ref QuestSequence reference106 = ref span129[num]; QuestSequence obj106 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1030058u, new Vector3(-301.04523f, 13.9837475f, 292.8053f), 140) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.Interact, 1030058u, new Vector3(-301.04523f, 13.9837475f, 292.8053f), 140) { Fly = true }; obj106.Steps = list134; reference106 = obj106; - ref QuestSequence reference107 = ref span37[5]; + num++; + ref QuestSequence reference107 = ref span129[num]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue @@ -213578,7 +258353,9 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030622u, new Vector3(39.04773f, 8f, -119.76807f), 130) + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030622u, new Vector3(39.04773f, 8f, -119.76807f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -213596,27 +258373,33 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - CollectionsMarshal.AsSpan(list136)[0] = "plogon_enjoyer"; + Span span136 = CollectionsMarshal.AsSpan(list136); + index = 0; + span136[index] = "plogon_enjoyer"; questRoot15.Author = list136; - num = 10; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - Span span38 = CollectionsMarshal.AsSpan(list137); - ref QuestSequence reference108 = ref span38[0]; + index = 10; + List list137 = new List(index); + CollectionsMarshal.SetCount(list137, index); + Span span137 = CollectionsMarshal.AsSpan(list137); + num = 0; + ref QuestSequence reference108 = ref span137[num]; QuestSequence obj108 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023610u, new Vector3(55.313843f, 20.397943f, -676.3562f), 156) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023610u, new Vector3(55.313843f, 20.397943f, -676.3562f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj108.Steps = list138; reference108 = obj108; - ref QuestSequence reference109 = ref span38[1]; + num++; + ref QuestSequence reference109 = ref span137[num]; QuestSequence obj109 = new QuestSequence { Sequence = 1 @@ -213624,28 +258407,34 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1028372u, new Vector3(599.23694f, 80.00001f, 623.07153f), 621) + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.Interact, 1028372u, new Vector3(599.23694f, 80.00001f, 623.07153f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj109.Steps = list139; reference109 = obj109; - ref QuestSequence reference110 = ref span38[2]; + num++; + ref QuestSequence reference110 = ref span137[num]; QuestSequence obj110 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1028374u, new Vector3(274.76917f, 10.572342f, -543.05334f), 621) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.Interact, 1028374u, new Vector3(274.76917f, 10.572342f, -543.05334f), 621) { Fly = true }; obj110.Steps = list140; reference110 = obj110; - ref QuestSequence reference111 = ref span38[3]; + num++; + ref QuestSequence reference111 = ref span137[num]; QuestSequence obj111 = new QuestSequence { Sequence = 3 @@ -213653,7 +258442,9 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list141)[0]; + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + ref QuestStep reference112 = ref span141[index2]; QuestStep obj112 = new QuestStep(EInteractionType.Interact, 1028379u, new Vector3(81.49841f, 10f, -574.2123f), 621) { Fly = true @@ -213661,7 +258452,9 @@ public static class AssemblyQuestLoader num3 = 1; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = new DialogueChoice + Span span142 = CollectionsMarshal.AsSpan(list142); + num4 = 0; + span142[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC015_03224_Q1_000_100"), @@ -213671,31 +258464,37 @@ public static class AssemblyQuestLoader reference112 = obj112; obj111.Steps = list141; reference111 = obj111; - ref QuestSequence reference113 = ref span38[4]; + num++; + ref QuestSequence reference113 = ref span137[num]; QuestSequence obj113 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - ref QuestStep reference114 = ref CollectionsMarshal.AsSpan(list143)[0]; + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + Span span143 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + ref QuestStep reference114 = ref span143[num2]; QuestStep obj114 = new QuestStep(EInteractionType.Combat, 1030849u, new Vector3(124.40674f, 10f, -515.58716f), 621) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - Span span39 = CollectionsMarshal.AsSpan(list144); - span39[0] = 10834u; - span39[1] = 10835u; + num4 = 2; + List list144 = new List(num4); + CollectionsMarshal.SetCount(list144, num4); + Span span144 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span144[num3] = 10834u; + num3++; + span144[num3] = 10835u; obj114.KillEnemyDataIds = list144; reference114 = obj114; obj113.Steps = list143; reference113 = obj113; - ref QuestSequence reference115 = ref span38[5]; + num++; + ref QuestSequence reference115 = ref span137[num]; QuestSequence obj115 = new QuestSequence { Sequence = 5 @@ -213703,28 +258502,34 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1028374u, new Vector3(274.76917f, 10.572342f, -543.05334f), 621) + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.Interact, 1028374u, new Vector3(274.76917f, 10.572342f, -543.05334f), 621) { Fly = true }; obj115.Steps = list145; reference115 = obj115; - ref QuestSequence reference116 = ref span38[6]; + num++; + ref QuestSequence reference116 = ref span137[num]; QuestSequence obj116 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1028376u, new Vector3(-790.7988f, 78.22368f, -699.5804f), 621) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.Interact, 1028376u, new Vector3(-790.7988f, 78.22368f, -699.5804f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; obj116.Steps = list146; reference116 = obj116; - ref QuestSequence reference117 = ref span38[7]; + num++; + ref QuestSequence reference117 = ref span137[num]; QuestSequence obj117 = new QuestSequence { Sequence = 7 @@ -213732,24 +258537,30 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1028377u, new Vector3(51.346558f, 24.662476f, -787.9301f), 621) + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.Interact, 1028377u, new Vector3(51.346558f, 24.662476f, -787.9301f), 621) { Fly = true }; obj117.Steps = list147; reference117 = obj117; - ref QuestSequence reference118 = ref span38[8]; + num++; + ref QuestSequence reference118 = ref span137[num]; QuestSequence obj118 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1028377u, new Vector3(51.346558f, 24.662476f, -787.9301f), 621); + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.Interact, 1028377u, new Vector3(51.346558f, 24.662476f, -787.9301f), 621); obj118.Steps = list148; reference118 = obj118; - ref QuestSequence reference119 = ref span38[9]; + num++; + ref QuestSequence reference119 = ref span137[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue @@ -213757,7 +258568,9 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030677u, new Vector3(55.313843f, 20.397943f, -676.3562f), 156) + Span span149 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span149[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030677u, new Vector3(55.313843f, 20.397943f, -676.3562f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -213770,21 +258583,26 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "liza"; + Span span150 = CollectionsMarshal.AsSpan(list150); + index = 0; + span150[index] = "liza"; questRoot16.Author = list150; - num = 7; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span40 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference120 = ref span40[0]; + index = 7; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + Span span151 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference120 = ref span151[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list152)[0]; + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + ref QuestStep reference121 = ref span152[num2]; QuestStep obj121 = new QuestStep(EInteractionType.AcceptQuest, 1029122u, new Vector3(17.746216f, 20.687263f, -660.12054f), 156) { StopDistance = 5f, @@ -213800,7 +258618,9 @@ public static class AssemblyQuestLoader num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = new DialogueChoice + Span span153 = CollectionsMarshal.AsSpan(list153); + num4 = 0; + span153[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC016_03225_Q1_000_000"), @@ -213810,7 +258630,8 @@ public static class AssemblyQuestLoader reference121 = obj121; obj120.Steps = list152; reference120 = obj120; - ref QuestSequence reference122 = ref span40[1]; + num++; + ref QuestSequence reference122 = ref span151[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -213818,7 +258639,9 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -213829,15 +258652,18 @@ public static class AssemblyQuestLoader }; obj122.Steps = list154; reference122 = obj122; - ref QuestSequence reference123 = ref span40[2]; + num++; + ref QuestSequence reference123 = ref span151[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1029127u, new Vector3(154.68066f, 4.0999947f, 31.662354f), 131) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span155[num2] = new QuestStep(EInteractionType.Interact, 1029127u, new Vector3(154.68066f, 4.0999947f, 31.662354f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -213848,7 +258674,8 @@ public static class AssemblyQuestLoader }; obj123.Steps = list155; reference123 = obj123; - ref QuestSequence reference124 = ref span40[3]; + num++; + ref QuestSequence reference124 = ref span151[num]; QuestSequence obj124 = new QuestSequence { Sequence = 3 @@ -213856,21 +258683,26 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1029078u, new Vector3(-0.07635498f, 20.333344f, -6.3935547f), 129) + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new QuestStep(EInteractionType.Interact, 1029078u, new Vector3(-0.07635498f, 20.333344f, -6.3935547f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; obj124.Steps = list156; reference124 = obj124; - ref QuestSequence reference125 = ref span40[4]; + num++; + ref QuestSequence reference125 = ref span151[num]; QuestSequence obj125 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1029103u, new Vector3(-151.59845f, 23.14059f, -75.60846f), 418) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span157[num2] = new QuestStep(EInteractionType.Interact, 1029103u, new Vector3(-151.59845f, 23.14059f, -75.60846f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -213881,7 +258713,8 @@ public static class AssemblyQuestLoader }; obj125.Steps = list157; reference125 = obj125; - ref QuestSequence reference126 = ref span40[5]; + num++; + ref QuestSequence reference126 = ref span151[num]; QuestSequence obj126 = new QuestSequence { Sequence = 5 @@ -213889,22 +258722,27 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1029128u, new Vector3(134.844f, 350.86508f, -386.1906f), 155) + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.Interact, 1029128u, new Vector3(134.844f, 350.86508f, -386.1906f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj126.Steps = list158; reference126 = obj126; - ref QuestSequence reference127 = ref span40[6]; + num++; + ref QuestSequence reference127 = ref span151[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029122u, new Vector3(17.746216f, 20.687263f, -660.12054f), 156) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029122u, new Vector3(17.746216f, 20.687263f, -660.12054f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -213917,13 +258755,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; + Span span160 = CollectionsMarshal.AsSpan(list160); + index = 0; + span160[index] = "liza"; questRoot17.Author = list160; - num = 6; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span41 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference128 = ref span41[0]; + index = 6; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + Span span161 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference128 = ref span161[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 @@ -213931,7 +258772,9 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list162)[0]; + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + ref QuestStep reference129 = ref span162[index2]; QuestStep obj129 = new QuestStep(EInteractionType.AcceptQuest, 1028738u, new Vector3(-104.32593f, 5.999999f, 195.97156f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -213943,10 +258786,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list163 = new List(num3); - CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = new DialogueChoice + num4 = 1; + List list163 = new List(num4); + CollectionsMarshal.SetCount(list163, num4); + Span span163 = CollectionsMarshal.AsSpan(list163); + num3 = 0; + span163[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC017_03226_Q1_000_500"), @@ -213956,22 +258801,26 @@ public static class AssemblyQuestLoader reference129 = obj129; obj128.Steps = list162; reference128 = obj128; - ref QuestSequence reference130 = ref span41[1]; + num++; + ref QuestSequence reference130 = ref span161[num]; QuestSequence obj130 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1028795u, new Vector3(-187.73181f, 46.387943f, -75.33386f), 134) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.Interact, 1028795u, new Vector3(-187.73181f, 46.387943f, -75.33386f), 134) { Fly = true, AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; obj130.Steps = list164; reference130 = obj130; - ref QuestSequence reference131 = ref span41[2]; + num++; + ref QuestSequence reference131 = ref span161[num]; QuestSequence obj131 = new QuestSequence { Sequence = 2 @@ -213979,23 +258828,30 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1028797u, new Vector3(-187.73181f, 46.394768f, -75.39484f), 134); + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.Interact, 1028797u, new Vector3(-187.73181f, 46.394768f, -75.39484f), 134); obj131.Steps = list165; reference131 = obj131; - ref QuestSequence reference132 = ref span41[3]; + num++; + ref QuestSequence reference132 = ref span161[num]; QuestSequence obj132 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list166)[0]; + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + ref QuestStep reference133 = ref span166[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1028797u, new Vector3(-187.73181f, 46.394768f, -75.39484f), 134); num3 = 1; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - CollectionsMarshal.AsSpan(list167)[0] = new DialogueChoice + Span span167 = CollectionsMarshal.AsSpan(list167); + num4 = 0; + span167[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC017_03226_Q1_000_100"), @@ -214005,7 +258861,8 @@ public static class AssemblyQuestLoader reference133 = questStep; obj132.Steps = list166; reference132 = obj132; - ref QuestSequence reference134 = ref span41[4]; + num++; + ref QuestSequence reference134 = ref span161[num]; QuestSequence obj133 = new QuestSequence { Sequence = 4 @@ -214013,15 +258870,19 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list168)[0]; + Span span168 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + ref QuestStep reference135 = ref span168[index2]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 1028798u, new Vector3(-70.38995f, 20.000332f, 45.334473f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; - num3 = 1; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - CollectionsMarshal.AsSpan(list169)[0] = new DialogueChoice + num4 = 1; + List list169 = new List(num4); + CollectionsMarshal.SetCount(list169, num4); + Span span169 = CollectionsMarshal.AsSpan(list169); + num3 = 0; + span169[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC017_03226_Q1_000_200"), @@ -214031,15 +258892,18 @@ public static class AssemblyQuestLoader reference135 = obj134; obj133.Steps = list168; reference134 = obj133; - ref QuestSequence reference136 = ref span41[5]; + num++; + ref QuestSequence reference136 = ref span161[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031099u, new Vector3(-104.631165f, 5.999999f, 197.4364f), 129); + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031099u, new Vector3(-104.631165f, 5.999999f, 197.4364f), 129); obj135.Steps = list170; reference136 = obj135; questRoot17.QuestSequence = list161; @@ -214049,13 +258913,16 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "plogon_enjoyer"; + Span span171 = CollectionsMarshal.AsSpan(list171); + index = 0; + span171[index] = "plogon_enjoyer"; questRoot18.Author = list171; - num = 6; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span42 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference137 = ref span42[0]; + index = 6; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + Span span172 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference137 = ref span172[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 @@ -214063,7 +258930,9 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - ref QuestStep reference138 = ref CollectionsMarshal.AsSpan(list173)[0]; + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + ref QuestStep reference138 = ref span173[index2]; QuestStep obj137 = new QuestStep(EInteractionType.AcceptQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -214087,14 +258956,16 @@ public static class AssemblyQuestLoader num3 = 2; List list174 = new List(num3); CollectionsMarshal.SetCount(list174, num3); - Span span43 = CollectionsMarshal.AsSpan(list174); - span43[0] = new DialogueChoice + Span span174 = CollectionsMarshal.AsSpan(list174); + num4 = 0; + span174[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKLA102_03228_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKLA102_03228_A1_000_001") }; - span43[1] = new DialogueChoice + num4++; + span174[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKLA102_03228_Q2_000_000"), @@ -214104,22 +258975,26 @@ public static class AssemblyQuestLoader reference138 = obj137; obj136.Steps = list173; reference137 = obj136; - ref QuestSequence reference139 = ref span42[1]; + num++; + ref QuestSequence reference139 = ref span172[num]; QuestSequence obj138 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1028450u, new Vector3(-311.94025f, 113.85077f, -824.4602f), 813) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.Interact, 1028450u, new Vector3(-311.94025f, 113.85077f, -824.4602f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; obj138.Steps = list175; reference139 = obj138; - ref QuestSequence reference140 = ref span42[2]; + num++; + ref QuestSequence reference140 = ref span172[num]; QuestSequence obj139 = new QuestSequence { Sequence = 2 @@ -214127,28 +259002,34 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1028451u, new Vector3(-138.96393f, 58.34806f, -670.6798f), 816) + Span span176 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span176[index2] = new QuestStep(EInteractionType.Interact, 1028451u, new Vector3(-138.96393f, 58.34806f, -670.6798f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; obj139.Steps = list176; reference140 = obj139; - ref QuestSequence reference141 = ref span42[3]; + num++; + ref QuestSequence reference141 = ref span172[num]; QuestSequence obj140 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1028452u, new Vector3(-14.511353f, 104.487236f, -861.6312f), 816) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.Interact, 1028452u, new Vector3(-14.511353f, 104.487236f, -861.6312f), 816) { Fly = true }; obj140.Steps = list177; reference141 = obj140; - ref QuestSequence reference142 = ref span42[4]; + num++; + ref QuestSequence reference142 = ref span172[num]; QuestSequence obj141 = new QuestSequence { Sequence = 4 @@ -214156,7 +259037,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.Interact, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -214167,21 +259050,24 @@ public static class AssemblyQuestLoader }; obj141.Steps = list178; reference142 = obj141; - ref QuestSequence reference143 = ref span42[5]; + num++; + ref QuestSequence reference143 = ref span172[num]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - Span span44 = CollectionsMarshal.AsSpan(list179); - span44[0] = new QuestStep(EInteractionType.Craft, null, null, 819) + index2 = 2; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.Craft, null, null, 819) { ItemId = 27237u, ItemCount = 1 }; - span44[1] = new QuestStep(EInteractionType.CompleteQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819); + num2++; + span179[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819); obj142.Steps = list179; reference143 = obj142; questRoot18.QuestSequence = list172; @@ -214191,13 +259077,16 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "plogon_enjoyer"; + Span span180 = CollectionsMarshal.AsSpan(list180); + index = 0; + span180[index] = "plogon_enjoyer"; questRoot19.Author = list180; - num = 6; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - Span span45 = CollectionsMarshal.AsSpan(list181); - ref QuestSequence reference144 = ref span45[0]; + index = 6; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + Span span181 = CollectionsMarshal.AsSpan(list181); + num = 0; + ref QuestSequence reference144 = ref span181[num]; QuestSequence obj143 = new QuestSequence { Sequence = 0 @@ -214205,7 +259094,9 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -214227,15 +259118,18 @@ public static class AssemblyQuestLoader }; obj143.Steps = list182; reference144 = obj143; - ref QuestSequence reference145 = ref span45[1]; + num++; + ref QuestSequence reference145 = ref span181[num]; QuestSequence obj144 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1028454u, new Vector3(-17.441101f, 3.9998174f, 191.94324f), 819) + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span183[num2] = new QuestStep(EInteractionType.Interact, 1028454u, new Vector3(-17.441101f, 3.9998174f, 191.94324f), 819) { AethernetShortcut = new AethernetShortcut { @@ -214245,7 +259139,8 @@ public static class AssemblyQuestLoader }; obj144.Steps = list183; reference145 = obj144; - ref QuestSequence reference146 = ref span45[2]; + num++; + ref QuestSequence reference146 = ref span181[num]; QuestSequence obj145 = new QuestSequence { Sequence = 2 @@ -214253,27 +259148,33 @@ public static class AssemblyQuestLoader num2 = 2; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span46 = CollectionsMarshal.AsSpan(list184); - span46[0] = new QuestStep(EInteractionType.Craft, null, null, 819) + Span span184 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span184[index2] = new QuestStep(EInteractionType.Craft, null, null, 819) { ItemId = 27239u, ItemCount = 1 }; - span46[1] = new QuestStep(EInteractionType.Interact, 1028454u, new Vector3(-17.441101f, 3.9998174f, 191.94324f), 819); + index2++; + span184[index2] = new QuestStep(EInteractionType.Interact, 1028454u, new Vector3(-17.441101f, 3.9998174f, 191.94324f), 819); obj145.Steps = list184; reference146 = obj145; - ref QuestSequence reference147 = ref span45[3]; + num++; + ref QuestSequence reference147 = ref span181[num]; QuestSequence obj146 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1028458u, new Vector3(-96.665955f, -4.200001f, 133.1654f), 819); + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span185[num2] = new QuestStep(EInteractionType.Interact, 1028458u, new Vector3(-96.665955f, -4.200001f, 133.1654f), 819); obj146.Steps = list185; reference147 = obj146; - ref QuestSequence reference148 = ref span45[4]; + num++; + ref QuestSequence reference148 = ref span181[num]; QuestSequence obj147 = new QuestSequence { Sequence = 4 @@ -214281,18 +259182,23 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1028454u, new Vector3(-17.441101f, 3.9998174f, 191.94324f), 819); + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.Interact, 1028454u, new Vector3(-17.441101f, 3.9998174f, 191.94324f), 819); obj147.Steps = list186; reference148 = obj147; - ref QuestSequence reference149 = ref span45[5]; + num++; + ref QuestSequence reference149 = ref span181[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) { AethernetShortcut = new AethernetShortcut { @@ -214309,13 +259215,16 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "plogon_enjoyer"; + Span span188 = CollectionsMarshal.AsSpan(list188); + index = 0; + span188[index] = "plogon_enjoyer"; questRoot20.Author = list188; - num = 6; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span47 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference150 = ref span47[0]; + index = 6; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + Span span189 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference150 = ref span189[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -214323,23 +259232,30 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027234u, new Vector3(10.2387085f, 20.185999f, -138.2315f), 819); + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027234u, new Vector3(10.2387085f, 20.185999f, -138.2315f), 819); obj149.Steps = list190; reference150 = obj149; - ref QuestSequence reference151 = ref span47[1]; + num++; + ref QuestSequence reference151 = ref span189[num]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list191)[0]; + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + ref QuestStep reference152 = ref span191[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1028326u, new Vector3(10.940674f, 20.186f, -142.53455f), 819); - num3 = 1; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - CollectionsMarshal.AsSpan(list192)[0] = new DialogueChoice + num4 = 1; + List list192 = new List(num4); + CollectionsMarshal.SetCount(list192, num4); + Span span192 = CollectionsMarshal.AsSpan(list192); + num3 = 0; + span192[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKLA203_03232_Q1_000_000"), @@ -214349,7 +259265,8 @@ public static class AssemblyQuestLoader reference152 = questStep2; obj150.Steps = list191; reference151 = obj150; - ref QuestSequence reference153 = ref span47[2]; + num++; + ref QuestSequence reference153 = ref span189[num]; QuestSequence obj151 = new QuestSequence { Sequence = 2 @@ -214357,24 +259274,29 @@ public static class AssemblyQuestLoader num2 = 2; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span48 = CollectionsMarshal.AsSpan(list193); - span48[0] = new QuestStep(EInteractionType.Craft, null, null, 819) + Span span193 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span193[index2] = new QuestStep(EInteractionType.Craft, null, null, 819) { ItemId = 27247u, ItemCount = 1 }; - span48[1] = new QuestStep(EInteractionType.Interact, 1027234u, new Vector3(10.2387085f, 20.185999f, -138.2315f), 819); + index2++; + span193[index2] = new QuestStep(EInteractionType.Interact, 1027234u, new Vector3(10.2387085f, 20.185999f, -138.2315f), 819); obj151.Steps = list193; reference153 = obj151; - ref QuestSequence reference154 = ref span47[3]; + num++; + ref QuestSequence reference154 = ref span189[num]; QuestSequence obj152 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1028438u, new Vector3(-55.832825f, 3.9998174f, 198.6571f), 819) + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.Interact, 1028438u, new Vector3(-55.832825f, 3.9998174f, 198.6571f), 819) { AethernetShortcut = new AethernetShortcut { @@ -214384,7 +259306,8 @@ public static class AssemblyQuestLoader }; obj152.Steps = list194; reference154 = obj152; - ref QuestSequence reference155 = ref span47[4]; + num++; + ref QuestSequence reference155 = ref span189[num]; QuestSequence obj153 = new QuestSequence { Sequence = 4 @@ -214392,18 +259315,23 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1028438u, new Vector3(-55.832825f, 3.9998174f, 198.6571f), 819); + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span195[index2] = new QuestStep(EInteractionType.Interact, 1028438u, new Vector3(-55.832825f, 3.9998174f, 198.6571f), 819); obj153.Steps = list195; reference155 = obj153; - ref QuestSequence reference156 = ref span47[5]; + num++; + ref QuestSequence reference156 = ref span189[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027234u, new Vector3(10.2387085f, 20.185999f, -138.2315f), 819) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027234u, new Vector3(10.2387085f, 20.185999f, -138.2315f), 819) { AethernetShortcut = new AethernetShortcut { @@ -214420,13 +259348,16 @@ public static class AssemblyQuestLoader num = 1; List list197 = new List(num); CollectionsMarshal.SetCount(list197, num); - CollectionsMarshal.AsSpan(list197)[0] = "plogon_enjoyer"; + Span span197 = CollectionsMarshal.AsSpan(list197); + index = 0; + span197[index] = "plogon_enjoyer"; questRoot21.Author = list197; - num = 7; - List list198 = new List(num); - CollectionsMarshal.SetCount(list198, num); - Span span49 = CollectionsMarshal.AsSpan(list198); - ref QuestSequence reference157 = ref span49[0]; + index = 7; + List list198 = new List(index); + CollectionsMarshal.SetCount(list198, index); + Span span198 = CollectionsMarshal.AsSpan(list198); + num = 0; + ref QuestSequence reference157 = ref span198[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -214434,18 +259365,23 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819); + Span span199 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span199[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819); obj155.Steps = list199; reference157 = obj155; - ref QuestSequence reference158 = ref span49[1]; + num++; + ref QuestSequence reference158 = ref span198[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1028484u, new Vector3(-129.35083f, 0f, -62.912964f), 819) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.Interact, 1028484u, new Vector3(-129.35083f, 0f, -62.912964f), 819) { AethernetShortcut = new AethernetShortcut { @@ -214455,7 +259391,8 @@ public static class AssemblyQuestLoader }; obj156.Steps = list200; reference158 = obj156; - ref QuestSequence reference159 = ref span49[2]; + num++; + ref QuestSequence reference159 = ref span198[num]; QuestSequence obj157 = new QuestSequence { Sequence = 2 @@ -214463,7 +259400,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Say, 1028484u, new Vector3(-129.35083f, 0f, -62.912964f), 819) + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.Say, 1028484u, new Vector3(-129.35083f, 0f, -62.912964f), 819) { ChatMessage = new ChatMessage { @@ -214472,24 +259411,28 @@ public static class AssemblyQuestLoader }; obj157.Steps = list201; reference159 = obj157; - ref QuestSequence reference160 = ref span49[3]; + num++; + ref QuestSequence reference160 = ref span198[num]; QuestSequence obj158 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - Span span50 = CollectionsMarshal.AsSpan(list202); - span50[0] = new QuestStep(EInteractionType.Craft, null, null, 819) + index2 = 2; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.Craft, null, null, 819) { ItemId = 27253u, ItemCount = 1 }; - span50[1] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819); + num2++; + span202[num2] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819); obj158.Steps = list202; reference160 = obj158; - ref QuestSequence reference161 = ref span49[4]; + num++; + ref QuestSequence reference161 = ref span198[num]; QuestSequence obj159 = new QuestSequence { Sequence = 4 @@ -214497,29 +259440,35 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1028485u, new Vector3(-492.3934f, 69.70277f, 570.18384f), 816) + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span203[index2] = new QuestStep(EInteractionType.Interact, 1028485u, new Vector3(-492.3934f, 69.70277f, 570.18384f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj159.Steps = list203; reference161 = obj159; - ref QuestSequence reference162 = ref span49[5]; + num++; + ref QuestSequence reference162 = ref span198[num]; QuestSequence obj160 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1028487u, new Vector3(337.84998f, 87.30014f, -710.65845f), 816) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.Interact, 1028487u, new Vector3(337.84998f, 87.30014f, -710.65845f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; obj160.Steps = list204; reference162 = obj160; - ref QuestSequence reference163 = ref span49[6]; + num++; + ref QuestSequence reference163 = ref span198[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue @@ -214527,7 +259476,9 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819) + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -214545,24 +259496,30 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "plogon_enjoyer"; + Span span206 = CollectionsMarshal.AsSpan(list206); + index = 0; + span206[index] = "plogon_enjoyer"; questRoot22.Author = list206; - num = 7; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span51 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference164 = ref span51[0]; + index = 7; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + Span span207 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference164 = ref span207[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819); obj162.Steps = list208; reference164 = obj162; - ref QuestSequence reference165 = ref span51[1]; + num++; + ref QuestSequence reference165 = ref span207[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 @@ -214570,7 +259527,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819) + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819) { AethernetShortcut = new AethernetShortcut { @@ -214580,24 +259539,28 @@ public static class AssemblyQuestLoader }; obj163.Steps = list209; reference165 = obj163; - ref QuestSequence reference166 = ref span51[2]; + num++; + ref QuestSequence reference166 = ref span207[num]; QuestSequence obj164 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span52 = CollectionsMarshal.AsSpan(list210); - span52[0] = new QuestStep(EInteractionType.Craft, null, null, 819) + index2 = 2; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span210[num2] = new QuestStep(EInteractionType.Craft, null, null, 819) { ItemId = 27255u, ItemCount = 1 }; - span52[1] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819); + num2++; + span210[num2] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819); obj164.Steps = list210; reference166 = obj164; - ref QuestSequence reference167 = ref span51[3]; + num++; + ref QuestSequence reference167 = ref span207[num]; QuestSequence obj165 = new QuestSequence { Sequence = 3 @@ -214605,25 +259568,31 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1028489u, new Vector3(355.42847f, 3.8289368f, 224.17017f), 813) + Span span211 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span211[index2] = new QuestStep(EInteractionType.Interact, 1028489u, new Vector3(355.42847f, 3.8289368f, 224.17017f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj165.Steps = list211; reference167 = obj165; - ref QuestSequence reference168 = ref span51[4]; + num++; + ref QuestSequence reference168 = ref span207[num]; QuestSequence obj166 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1028491u, new Vector3(29.251465f, 36.20521f, -207.38544f), 819); + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span212[num2] = new QuestStep(EInteractionType.Interact, 1028491u, new Vector3(29.251465f, 36.20521f, -207.38544f), 819); obj166.Steps = list212; reference168 = obj166; - ref QuestSequence reference169 = ref span51[5]; + num++; + ref QuestSequence reference169 = ref span207[num]; QuestSequence obj167 = new QuestSequence { Sequence = 5 @@ -214631,7 +259600,9 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819) + Span span213 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span213[index2] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819) { AethernetShortcut = new AethernetShortcut { @@ -214641,15 +259612,18 @@ public static class AssemblyQuestLoader }; obj167.Steps = list213; reference169 = obj167; - ref QuestSequence reference170 = ref span51[6]; + num++; + ref QuestSequence reference170 = ref span207[num]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819) + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + Span span214 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span214[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819) { AethernetShortcut = new AethernetShortcut { @@ -214666,13 +259640,16 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - CollectionsMarshal.AsSpan(list215)[0] = "liza"; + Span span215 = CollectionsMarshal.AsSpan(list215); + index = 0; + span215[index] = "liza"; questRoot23.Author = list215; - num = 7; - List list216 = new List(num); - CollectionsMarshal.SetCount(list216, num); - Span span53 = CollectionsMarshal.AsSpan(list216); - ref QuestSequence reference171 = ref span53[0]; + index = 7; + List list216 = new List(index); + CollectionsMarshal.SetCount(list216, index); + Span span216 = CollectionsMarshal.AsSpan(list216); + num = 0; + ref QuestSequence reference171 = ref span216[num]; QuestSequence obj169 = new QuestSequence { Sequence = 0 @@ -214680,7 +259657,9 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029900u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029900u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -214698,15 +259677,18 @@ public static class AssemblyQuestLoader }; obj169.Steps = list217; reference171 = obj169; - ref QuestSequence reference172 = ref span53[1]; + num++; + ref QuestSequence reference172 = ref span216[num]; QuestSequence obj170 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1029890u, new Vector3(738.796f, 22.936495f, 406.21033f), 813) + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span218[num2] = new QuestStep(EInteractionType.Interact, 1029890u, new Vector3(738.796f, 22.936495f, 406.21033f), 813) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -214717,7 +259699,8 @@ public static class AssemblyQuestLoader }; obj170.Steps = list218; reference172 = obj170; - ref QuestSequence reference173 = ref span53[2]; + num++; + ref QuestSequence reference173 = ref span216[num]; QuestSequence obj171 = new QuestSequence { Sequence = 2 @@ -214725,8 +259708,9 @@ public static class AssemblyQuestLoader num2 = 2; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span54 = CollectionsMarshal.AsSpan(list219); - span54[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(447.0961f, 13.008003f, 210.91484f), 813) + Span span219 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span219[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(447.0961f, 13.008003f, 210.91484f), 813) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -214741,7 +259725,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference174 = ref span54[1]; + index2++; + ref QuestStep reference174 = ref span219[index2]; QuestStep obj172 = new QuestStep(EInteractionType.Combat, 2009942u, new Vector3(453.4828f, 13.626221f, 189.44067f), 813) { Fly = true, @@ -214750,23 +259735,29 @@ public static class AssemblyQuestLoader num3 = 1; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - CollectionsMarshal.AsSpan(list220)[0] = 10853u; + Span span220 = CollectionsMarshal.AsSpan(list220); + num4 = 0; + span220[num4] = 10853u; obj172.KillEnemyDataIds = list220; reference174 = obj172; obj171.Steps = list219; reference173 = obj171; - ref QuestSequence reference175 = ref span53[3]; + num++; + ref QuestSequence reference175 = ref span216[num]; QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1029891u, new Vector3(445.27344f, 13.409448f, 204.42505f), 813); + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span221[num2] = new QuestStep(EInteractionType.Interact, 1029891u, new Vector3(445.27344f, 13.409448f, 204.42505f), 813); obj173.Steps = list221; reference175 = obj173; - ref QuestSequence reference176 = ref span53[4]; + num++; + ref QuestSequence reference176 = ref span216[num]; QuestSequence obj174 = new QuestSequence { Sequence = 4 @@ -214774,8 +259765,9 @@ public static class AssemblyQuestLoader num2 = 2; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span55 = CollectionsMarshal.AsSpan(list222); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(412.249f, 7.472949f, 187.34154f), 813) + Span span222 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span222[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(412.249f, 7.472949f, 187.34154f), 813) { DisableNavmesh = true, Mount = true, @@ -214787,32 +259779,39 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference177 = ref span55[1]; + index2++; + ref QuestStep reference177 = ref span222[index2]; QuestStep obj175 = new QuestStep(EInteractionType.Combat, 2009943u, new Vector3(633.6614f, 21.377869f, -267.93323f), 813) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list223 = new List(num3); - CollectionsMarshal.SetCount(list223, num3); - CollectionsMarshal.AsSpan(list223)[0] = 10854u; + num4 = 1; + List list223 = new List(num4); + CollectionsMarshal.SetCount(list223, num4); + Span span223 = CollectionsMarshal.AsSpan(list223); + num3 = 0; + span223[num3] = 10854u; obj175.KillEnemyDataIds = list223; reference177 = obj175; obj174.Steps = list222; reference176 = obj174; - ref QuestSequence reference178 = ref span53[5]; + num++; + ref QuestSequence reference178 = ref span216[num]; QuestSequence obj176 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1029892u, new Vector3(635.1262f, 20.257477f, -249.22565f), 813); + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span224[num2] = new QuestStep(EInteractionType.Interact, 1029892u, new Vector3(635.1262f, 20.257477f, -249.22565f), 813); obj176.Steps = list224; reference178 = obj176; - ref QuestSequence reference179 = ref span53[6]; + num++; + ref QuestSequence reference179 = ref span216[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -214820,7 +259819,9 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029889u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) + Span span225 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span225[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029889u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -214839,21 +259840,26 @@ public static class AssemblyQuestLoader num = 1; List list226 = new List(num); CollectionsMarshal.SetCount(list226, num); - CollectionsMarshal.AsSpan(list226)[0] = "liza"; + Span span226 = CollectionsMarshal.AsSpan(list226); + index = 0; + span226[index] = "liza"; questRoot24.Author = list226; - num = 4; - List list227 = new List(num); - CollectionsMarshal.SetCount(list227, num); - Span span56 = CollectionsMarshal.AsSpan(list227); - ref QuestSequence reference180 = ref span56[0]; + index = 4; + List list227 = new List(index); + CollectionsMarshal.SetCount(list227, index); + Span span227 = CollectionsMarshal.AsSpan(list227); + num = 0; + ref QuestSequence reference180 = ref span227[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029889u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029889u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -214871,7 +259877,8 @@ public static class AssemblyQuestLoader }; obj178.Steps = list228; reference180 = obj178; - ref QuestSequence reference181 = ref span56[1]; + num++; + ref QuestSequence reference181 = ref span227[num]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -214879,22 +259886,26 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span229[index2] = new QuestStep(EInteractionType.Interact, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj179.Steps = list229; reference181 = obj179; - ref QuestSequence reference182 = ref span56[2]; + num++; + ref QuestSequence reference182 = ref span227[num]; QuestSequence obj180 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - Span span57 = CollectionsMarshal.AsSpan(list230); - ref QuestStep reference183 = ref span57[0]; + index2 = 2; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + ref QuestStep reference183 = ref span230[num2]; QuestStep obj181 = new QuestStep(EInteractionType.Interact, 1029895u, new Vector3(-317.43347f, 19.407524f, 404.3794f), 814) { Fly = true @@ -214902,36 +259913,50 @@ public static class AssemblyQuestLoader num3 = 6; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - Span span58 = CollectionsMarshal.AsSpan(list231); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span231 = CollectionsMarshal.AsSpan(list231); + num4 = 0; + span231[num4] = null; + num4++; + span231[num4] = null; + num4++; + span231[num4] = null; + num4++; + span231[num4] = null; + num4++; + span231[num4] = null; + num4++; + span231[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj181.CompletionQuestVariablesFlags = list231; reference183 = obj181; - ref QuestStep reference184 = ref span57[1]; + num2++; + ref QuestStep reference184 = ref span230[num2]; QuestStep obj182 = new QuestStep(EInteractionType.Interact, 1029896u, new Vector3(-311.57397f, 17.772081f, 443.8086f), 814) { Mount = true, Fly = true }; - num3 = 6; - List list232 = new List(num3); - CollectionsMarshal.SetCount(list232, num3); - Span span59 = CollectionsMarshal.AsSpan(list232); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list232 = new List(num4); + CollectionsMarshal.SetCount(list232, num4); + Span span232 = CollectionsMarshal.AsSpan(list232); + num3 = 0; + span232[num3] = null; + num3++; + span232[num3] = null; + num3++; + span232[num3] = null; + num3++; + span232[num3] = null; + num3++; + span232[num3] = null; + num3++; + span232[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj182.CompletionQuestVariablesFlags = list232; reference184 = obj182; obj180.Steps = list230; reference182 = obj180; - ref QuestSequence reference185 = ref span56[3]; + num++; + ref QuestSequence reference185 = ref span227[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue @@ -214939,7 +259964,9 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span233[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) { Fly = true, NextQuestId = new QuestId(3245) @@ -214953,21 +259980,26 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "liza"; + Span span234 = CollectionsMarshal.AsSpan(list234); + index = 0; + span234[index] = "liza"; questRoot25.Author = list234; - num = 10; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span60 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference186 = ref span60[0]; + index = 10; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + Span span235 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference186 = ref span235[num]; QuestSequence obj184 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -214985,7 +260017,8 @@ public static class AssemblyQuestLoader }; obj184.Steps = list236; reference186 = obj184; - ref QuestSequence reference187 = ref span60[1]; + num++; + ref QuestSequence reference187 = ref span235[num]; QuestSequence obj185 = new QuestSequence { Sequence = 1 @@ -214993,8 +260026,9 @@ public static class AssemblyQuestLoader num2 = 2; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span61 = CollectionsMarshal.AsSpan(list237); - ref QuestStep reference188 = ref span61[0]; + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + ref QuestStep reference188 = ref span237[index2]; QuestStep obj186 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(173.40976f, 58.977684f, 883.3417f), 814) { Fly = true @@ -215004,13 +260038,16 @@ public static class AssemblyQuestLoader num3 = 1; List list238 = new List(num3); CollectionsMarshal.SetCount(list238, num3); - CollectionsMarshal.AsSpan(list238)[0] = 820; + Span span238 = CollectionsMarshal.AsSpan(list238); + num4 = 0; + span238[num4] = 820; skipStepConditions.InTerritory = list238; skipStepConditions.AetheryteUnlocked = EAetheryteLocation.Eulmore; skipConditions4.StepIf = skipStepConditions; obj186.SkipConditions = skipConditions4; reference188 = obj186; - span61[1] = new QuestStep(EInteractionType.Interact, 1029899u, new Vector3(34.561646f, 83.001076f, -67.00244f), 820) + index2++; + span237[index2] = new QuestStep(EInteractionType.Interact, 1029899u, new Vector3(34.561646f, 83.001076f, -67.00244f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore, SkipConditions = new SkipConditions @@ -215023,21 +260060,25 @@ public static class AssemblyQuestLoader }; obj185.Steps = list237; reference187 = obj185; - ref QuestSequence reference189 = ref span60[2]; + num++; + ref QuestSequence reference189 = ref span235[num]; QuestSequence obj187 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + Span span239 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span239[num2] = new QuestStep(EInteractionType.Interact, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj187.Steps = list239; reference189 = obj187; - ref QuestSequence reference190 = ref span60[3]; + num++; + ref QuestSequence reference190 = ref span235[num]; QuestSequence obj188 = new QuestSequence { Sequence = 3 @@ -215045,54 +260086,72 @@ public static class AssemblyQuestLoader num2 = 2; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span62 = CollectionsMarshal.AsSpan(list240); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(271.6878f, 7.1558237f, -197.58272f), 815) + Span span240 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span240[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(271.6878f, 7.1558237f, -197.58272f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - span62[1] = new QuestStep(EInteractionType.Interact, 1029898u, new Vector3(270.37463f, 7.1558247f, -196.30737f), 815); + index2++; + span240[index2] = new QuestStep(EInteractionType.Interact, 1029898u, new Vector3(270.37463f, 7.1558247f, -196.30737f), 815); obj188.Steps = list240; reference190 = obj188; - ref QuestSequence reference191 = ref span60[4]; + num++; + ref QuestSequence reference191 = ref span235[num]; QuestSequence obj189 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - Span span63 = CollectionsMarshal.AsSpan(list241); - ref QuestStep reference192 = ref span63[0]; + index2 = 2; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + Span span241 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + ref QuestStep reference192 = ref span241[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1027876u, new Vector3(314.16797f, 1.4912677f, -255.60394f), 815); - num3 = 6; - List list242 = new List(num3); - CollectionsMarshal.SetCount(list242, num3); - Span span64 = CollectionsMarshal.AsSpan(list242); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list242 = new List(num4); + CollectionsMarshal.SetCount(list242, num4); + Span span242 = CollectionsMarshal.AsSpan(list242); + num3 = 0; + span242[num3] = null; + num3++; + span242[num3] = null; + num3++; + span242[num3] = null; + num3++; + span242[num3] = null; + num3++; + span242[num3] = null; + num3++; + span242[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list242; reference192 = questStep3; - ref QuestStep reference193 = ref span63[1]; + num2++; + ref QuestStep reference193 = ref span241[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1029951u, new Vector3(303.82227f, 1.4685826f, -292.89697f), 815); num3 = 6; List list243 = new List(num3); CollectionsMarshal.SetCount(list243, num3); - Span span65 = CollectionsMarshal.AsSpan(list243); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span243 = CollectionsMarshal.AsSpan(list243); + num4 = 0; + span243[num4] = null; + num4++; + span243[num4] = null; + num4++; + span243[num4] = null; + num4++; + span243[num4] = null; + num4++; + span243[num4] = null; + num4++; + span243[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list243; reference193 = questStep4; obj189.Steps = list241; reference191 = obj189; - ref QuestSequence reference194 = ref span60[5]; + num++; + ref QuestSequence reference194 = ref span235[num]; QuestSequence obj190 = new QuestSequence { Sequence = 5 @@ -215100,25 +260159,31 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1029953u, new Vector3(241.19922f, 4.0297f, -289.601f), 815); + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span244[index2] = new QuestStep(EInteractionType.Interact, 1029953u, new Vector3(241.19922f, 4.0297f, -289.601f), 815); obj190.Steps = list244; reference194 = obj190; - ref QuestSequence reference195 = ref span60[6]; + num++; + ref QuestSequence reference195 = ref span235[num]; QuestSequence obj191 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 2009944u, new Vector3(476.18823f, -44.87683f, 229.96863f), 815) + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + Span span245 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span245[num2] = new QuestStep(EInteractionType.Interact, 2009944u, new Vector3(476.18823f, -44.87683f, 229.96863f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj191.Steps = list245; reference195 = obj191; - ref QuestSequence reference196 = ref span60[7]; + num++; + ref QuestSequence reference196 = ref span235[num]; QuestSequence obj192 = new QuestSequence { Sequence = 7 @@ -215126,35 +260191,43 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - ref QuestStep reference197 = ref CollectionsMarshal.AsSpan(list246)[0]; + Span span246 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + ref QuestStep reference197 = ref span246[index2]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, null, new Vector3(555.85315f, -50.899147f, 322.2599f), 815) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list247 = new List(num3); - CollectionsMarshal.SetCount(list247, num3); - CollectionsMarshal.AsSpan(list247)[0] = 10855u; + num4 = 1; + List list247 = new List(num4); + CollectionsMarshal.SetCount(list247, num4); + Span span247 = CollectionsMarshal.AsSpan(list247); + num3 = 0; + span247[num3] = 10855u; obj193.KillEnemyDataIds = list247; reference197 = obj193; obj192.Steps = list246; reference196 = obj192; - ref QuestSequence reference198 = ref span60[8]; + num++; + ref QuestSequence reference198 = ref span235[num]; QuestSequence obj194 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1029957u, new Vector3(293.04944f, -42.796906f, 251.75854f), 815) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.Interact, 1029957u, new Vector3(293.04944f, -42.796906f, 251.75854f), 815) { Fly = true }; obj194.Steps = list248; reference198 = obj194; - ref QuestSequence reference199 = ref span60[9]; + num++; + ref QuestSequence reference199 = ref span235[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue @@ -215162,13 +260235,15 @@ public static class AssemblyQuestLoader num2 = 2; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span66 = CollectionsMarshal.AsSpan(list249); - span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(296.43002f, 1.4685829f, -289.11447f), 815) + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(296.43002f, 1.4685829f, -289.11447f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - span66[1] = new QuestStep(EInteractionType.CompleteQuest, 1029959u, new Vector3(295.27722f, 1.4685827f, -290.18085f), 815) + index2++; + span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029959u, new Vector3(295.27722f, 1.4685827f, -290.18085f), 815) { NextQuestId = new QuestId(3246) }; @@ -215181,22 +260256,26 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "liza"; + Span span250 = CollectionsMarshal.AsSpan(list250); + index = 0; + span250[index] = "liza"; questRoot26.Author = list250; - num = 7; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span67 = CollectionsMarshal.AsSpan(list251); - ref QuestSequence reference200 = ref span67[0]; + index = 7; + List list251 = new List(index); + CollectionsMarshal.SetCount(list251, index); + Span span251 = CollectionsMarshal.AsSpan(list251); + num = 0; + ref QuestSequence reference200 = ref span251[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span68 = CollectionsMarshal.AsSpan(list252); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(296.43002f, 1.4685829f, -289.11447f), 815) + index2 = 2; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(296.43002f, 1.4685829f, -289.11447f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, @@ -215213,10 +260292,12 @@ public static class AssemblyQuestLoader } } }; - span68[1] = new QuestStep(EInteractionType.AcceptQuest, 1029959u, new Vector3(295.27722f, 1.4685827f, -290.18085f), 815); + num2++; + span252[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029959u, new Vector3(295.27722f, 1.4685827f, -290.18085f), 815); obj196.Steps = list252; reference200 = obj196; - ref QuestSequence reference201 = ref span67[1]; + num++; + ref QuestSequence reference201 = ref span251[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 @@ -215224,7 +260305,9 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - ref QuestStep reference202 = ref CollectionsMarshal.AsSpan(list253)[0]; + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + ref QuestStep reference202 = ref span253[index2]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1029960u, new Vector3(-393.66754f, 52.333755f, 497.15417f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -215232,7 +260315,9 @@ public static class AssemblyQuestLoader num3 = 1; List list254 = new List(num3); CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = new DialogueChoice + Span span254 = CollectionsMarshal.AsSpan(list254); + num4 = 0; + span254[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBA131_03246_Q2_000_000"), @@ -215242,34 +260327,43 @@ public static class AssemblyQuestLoader reference202 = obj198; obj197.Steps = list253; reference201 = obj197; - ref QuestSequence reference203 = ref span67[2]; + num++; + ref QuestSequence reference203 = ref span251[num]; QuestSequence obj199 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - Span span69 = CollectionsMarshal.AsSpan(list255); - ref QuestStep reference204 = ref span69[0]; + index2 = 2; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span255 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + ref QuestStep reference204 = ref span255[num2]; QuestStep obj200 = new QuestStep(EInteractionType.Interact, 1027671u, new Vector3(-33.12738f, 105.68533f, -879.9115f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; - num3 = 6; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - Span span70 = CollectionsMarshal.AsSpan(list256); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list256 = new List(num4); + CollectionsMarshal.SetCount(list256, num4); + Span span256 = CollectionsMarshal.AsSpan(list256); + num3 = 0; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj200.CompletionQuestVariablesFlags = list256; reference204 = obj200; - ref QuestStep reference205 = ref span69[1]; + num2++; + ref QuestStep reference205 = ref span255[num2]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 1027670u, new Vector3(32.028687f, 101.900696f, -857.87744f), 816) { Fly = true @@ -215277,18 +260371,25 @@ public static class AssemblyQuestLoader num3 = 6; List list257 = new List(num3); CollectionsMarshal.SetCount(list257, num3); - Span span71 = CollectionsMarshal.AsSpan(list257); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span257 = CollectionsMarshal.AsSpan(list257); + num4 = 0; + span257[num4] = null; + num4++; + span257[num4] = null; + num4++; + span257[num4] = null; + num4++; + span257[num4] = null; + num4++; + span257[num4] = null; + num4++; + span257[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj201.CompletionQuestVariablesFlags = list257; reference205 = obj201; obj199.Steps = list255; reference203 = obj199; - ref QuestSequence reference206 = ref span67[3]; + num++; + ref QuestSequence reference206 = ref span251[num]; QuestSequence obj202 = new QuestSequence { Sequence = 3 @@ -215296,27 +260397,33 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1029961u, new Vector3(-93.736206f, 101.44155f, -834.9279f), 816) + Span span258 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span258[index2] = new QuestStep(EInteractionType.Interact, 1029961u, new Vector3(-93.736206f, 101.44155f, -834.9279f), 816) { Fly = true }; obj202.Steps = list258; reference206 = obj202; - ref QuestSequence reference207 = ref span67[4]; + num++; + ref QuestSequence reference207 = ref span251[num]; QuestSequence obj203 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + Span span259 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span259[num2] = new QuestStep(EInteractionType.Interact, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) { Fly = true }; obj203.Steps = list259; reference207 = obj203; - ref QuestSequence reference208 = ref span67[5]; + num++; + ref QuestSequence reference208 = ref span251[num]; QuestSequence obj204 = new QuestSequence { Sequence = 5 @@ -215324,30 +260431,37 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - ref QuestStep reference209 = ref CollectionsMarshal.AsSpan(list260)[0]; + Span span260 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + ref QuestStep reference209 = ref span260[index2]; QuestStep obj205 = new QuestStep(EInteractionType.Combat, 2009946u, new Vector3(395.16284f, 62.05847f, -516.22797f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list261 = new List(num3); - CollectionsMarshal.SetCount(list261, num3); - CollectionsMarshal.AsSpan(list261)[0] = 10856u; + num4 = 1; + List list261 = new List(num4); + CollectionsMarshal.SetCount(list261, num4); + Span span261 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span261[num3] = 10856u; obj205.KillEnemyDataIds = list261; reference209 = obj205; obj204.Steps = list260; reference208 = obj204; - ref QuestSequence reference210 = ref span67[6]; + num++; + ref QuestSequence reference210 = ref span251[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni, @@ -215362,13 +260476,16 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - CollectionsMarshal.AsSpan(list263)[0] = "liza"; + Span span263 = CollectionsMarshal.AsSpan(list263); + index = 0; + span263[index] = "liza"; questRoot27.Author = list263; - num = 3; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - Span span72 = CollectionsMarshal.AsSpan(list264); - ref QuestSequence reference211 = ref span72[0]; + index = 3; + List list264 = new List(index); + CollectionsMarshal.SetCount(list264, index); + Span span264 = CollectionsMarshal.AsSpan(list264); + num = 0; + ref QuestSequence reference211 = ref span264[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -215376,7 +260493,9 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span265[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni, @@ -215395,15 +260514,18 @@ public static class AssemblyQuestLoader }; obj207.Steps = list265; reference211 = obj207; - ref QuestSequence reference212 = ref span72[1]; + num++; + ref QuestSequence reference212 = ref span264[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - ref QuestStep reference213 = ref CollectionsMarshal.AsSpan(list266)[0]; + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + Span span266 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + ref QuestStep reference213 = ref span266[num2]; QuestStep obj209 = new QuestStep(EInteractionType.SinglePlayerDuty, 1029967u, new Vector3(-68.40625f, 105.29414f, -251.88074f), 816) { Fly = true @@ -215412,13 +260534,16 @@ public static class AssemblyQuestLoader num3 = 1; List list267 = new List(num3); CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = "AI doesn't pull enemies when spawning into the instance"; + Span span267 = CollectionsMarshal.AsSpan(list267); + num4 = 0; + span267[num4] = "AI doesn't pull enemies when spawning into the instance"; singlePlayerDutyOptions.Notes = list267; obj209.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference213 = obj209; obj208.Steps = list266; reference212 = obj208; - ref QuestSequence reference214 = ref span72[2]; + num++; + ref QuestSequence reference214 = ref span264[num]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue @@ -215426,7 +260551,9 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) + Span span268 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span268[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni @@ -215440,21 +260567,26 @@ public static class AssemblyQuestLoader num = 1; List list269 = new List(num); CollectionsMarshal.SetCount(list269, num); - CollectionsMarshal.AsSpan(list269)[0] = "liza"; + Span span269 = CollectionsMarshal.AsSpan(list269); + index = 0; + span269[index] = "liza"; questRoot28.Author = list269; - num = 5; - List list270 = new List(num); - CollectionsMarshal.SetCount(list270, num); - Span span73 = CollectionsMarshal.AsSpan(list270); - ref QuestSequence reference215 = ref span73[0]; + index = 5; + List list270 = new List(index); + CollectionsMarshal.SetCount(list270, index); + Span span270 = CollectionsMarshal.AsSpan(list270); + num = 0; + ref QuestSequence reference215 = ref span270[num]; QuestSequence obj211 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni, @@ -215473,7 +260605,8 @@ public static class AssemblyQuestLoader }; obj211.Steps = list271; reference215 = obj211; - ref QuestSequence reference216 = ref span73[1]; + num++; + ref QuestSequence reference216 = ref span270[num]; QuestSequence obj212 = new QuestSequence { Sequence = 1 @@ -215481,12 +260614,14 @@ public static class AssemblyQuestLoader num2 = 2; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span74 = CollectionsMarshal.AsSpan(list272); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-823.0134f, 22.900805f, -55.223766f), 816) + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-823.0134f, 22.900805f, -55.223766f), 816) { Fly = true }; - span74[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2009948u, new Vector3(-824.88745f, 23.11737f, -56.443176f), 816) + index2++; + span272[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2009948u, new Vector3(-824.88745f, 23.11737f, -56.443176f), 816) { ItemId = 2002569u, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -215496,26 +260631,31 @@ public static class AssemblyQuestLoader }; obj212.Steps = list272; reference216 = obj212; - span73[2] = new QuestSequence + num++; + span270[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference217 = ref span73[3]; + num++; + ref QuestSequence reference217 = ref span270[num]; QuestSequence obj213 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span273[num2] = new QuestStep(EInteractionType.Interact, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; obj213.Steps = list273; reference217 = obj213; - ref QuestSequence reference218 = ref span73[4]; + num++; + ref QuestSequence reference218 = ref span270[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue @@ -215523,7 +260663,9 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029889u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) + Span span274 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span274[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029889u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -215541,21 +260683,26 @@ public static class AssemblyQuestLoader num = 1; List list275 = new List(num); CollectionsMarshal.SetCount(list275, num); - CollectionsMarshal.AsSpan(list275)[0] = "Fifi"; + Span span275 = CollectionsMarshal.AsSpan(list275); + index = 0; + span275[index] = "Fifi"; questRoot29.Author = list275; - num = 4; - List list276 = new List(num); - CollectionsMarshal.SetCount(list276, num); - Span span75 = CollectionsMarshal.AsSpan(list276); - ref QuestSequence reference219 = ref span75[0]; + index = 4; + List list276 = new List(index); + CollectionsMarshal.SetCount(list276, index); + Span span276 = CollectionsMarshal.AsSpan(list276); + num = 0; + ref QuestSequence reference219 = ref span276[num]; QuestSequence obj215 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028721u, new Vector3(-70.54254f, 20.000334f, 42.160645f), 129) + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span277[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028721u, new Vector3(-70.54254f, 20.000334f, 42.160645f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -215568,7 +260715,8 @@ public static class AssemblyQuestLoader }; obj215.Steps = list277; reference219 = obj215; - ref QuestSequence reference220 = ref span75[1]; + num++; + ref QuestSequence reference220 = ref span276[num]; QuestSequence obj216 = new QuestSequence { Sequence = 1 @@ -215576,21 +260724,27 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.Interact, 1028723u, new Vector3(-112.13861f, 5.9999995f, 189.68481f), 129); + Span span278 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span278[index2] = new QuestStep(EInteractionType.Interact, 1028723u, new Vector3(-112.13861f, 5.9999995f, 189.68481f), 129); obj216.Steps = list278; reference220 = obj216; - ref QuestSequence reference221 = ref span75[2]; + num++; + ref QuestSequence reference221 = ref span276[num]; QuestSequence obj217 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 2009763u, new Vector3(-112.01648f, 6.0272217f, 184.86304f), 129); + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + Span span279 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span279[num2] = new QuestStep(EInteractionType.Interact, 2009763u, new Vector3(-112.01648f, 6.0272217f, 184.86304f), 129); obj217.Steps = list279; reference221 = obj217; - ref QuestSequence reference222 = ref span75[3]; + num++; + ref QuestSequence reference222 = ref span276[num]; QuestSequence obj218 = new QuestSequence { Sequence = byte.MaxValue @@ -215598,12 +260752,16 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - ref QuestStep reference223 = ref CollectionsMarshal.AsSpan(list280)[0]; + Span span280 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + ref QuestStep reference223 = ref span280[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.CompleteQuest, 1028724u, new Vector3(-104.32593f, 5.999999f, 195.94104f), 129); - num3 = 1; - List list281 = new List(num3); - CollectionsMarshal.SetCount(list281, num3); - CollectionsMarshal.AsSpan(list281)[0] = new DialogueChoice + num4 = 1; + List list281 = new List(num4); + CollectionsMarshal.SetCount(list281, num4); + Span span281 = CollectionsMarshal.AsSpan(list281); + num3 = 0; + span281[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKBB201_03249_Q1_000_000") @@ -215624,13 +260782,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Fifi"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Fifi"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -215638,7 +260799,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028724u, new Vector3(-104.32593f, 5.999999f, 195.94104f), 129) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028724u, new Vector3(-104.32593f, 5.999999f, 195.94104f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -215651,22 +260814,26 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1028730u, new Vector3(594.3236f, 23.968584f, 457.69434f), 137) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1028730u, new Vector3(594.3236f, 23.968584f, 457.69434f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -215674,18 +260841,23 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1028736u, new Vector3(481.65088f, 16.414907f, 447.95898f), 137); + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1028736u, new Vector3(481.65088f, 16.414907f, 447.95898f), 137); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028735u, new Vector3(480.18604f, 16.432398f, 447.8064f), 137) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.CompleteQuest, 1028735u, new Vector3(480.18604f, 16.432398f, 447.8064f), 137) { NextQuestId = new QuestId(3251) }; @@ -215699,14 +260871,17 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "Fifi"; + Span span7 = CollectionsMarshal.AsSpan(list7); + index = 0; + span7[index] = "Fifi"; questRoot3.Author = list7; QuestRoot questRoot4 = questRoot2; - num = 9; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span2[0]; + index = 9; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span8[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -215714,7 +260889,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028735u, new Vector3(480.18604f, 16.432398f, 447.8064f), 137) + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028735u, new Vector3(480.18604f, 16.432398f, 447.8064f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -215727,21 +260904,25 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[1]; + num++; + ref QuestSequence reference6 = ref span8[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) { Fly = true }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[2]; + num++; + ref QuestSequence reference7 = ref span8[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 @@ -215749,7 +260930,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1028741u, new Vector3(47.62329f, 8f, -118.669495f), 130) + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.Interact, 1028741u, new Vector3(47.62329f, 8f, -118.669495f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -215760,15 +260943,18 @@ public static class AssemblyQuestLoader }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span2[3]; + num++; + ref QuestSequence reference8 = ref span8[num]; QuestSequence obj8 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1028746u, new Vector3(-148.39398f, 15.2938f, 286.82385f), 141) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.Interact, 1028746u, new Vector3(-148.39398f, 15.2938f, 286.82385f), 141) { AethernetShortcut = new AethernetShortcut { @@ -215778,7 +260964,8 @@ public static class AssemblyQuestLoader }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span2[4]; + num++; + ref QuestSequence reference9 = ref span8[num]; QuestSequence obj9 = new QuestSequence { Sequence = 4 @@ -215786,32 +260973,38 @@ public static class AssemblyQuestLoader num2 = 2; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span3 = CollectionsMarshal.AsSpan(list13); - span3[0] = new QuestStep(EInteractionType.Interact, 1028747u, new Vector3(-73.47223f, 15.825686f, 323.35388f), 141) + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.Interact, 1028747u, new Vector3(-73.47223f, 15.825686f, 323.35388f), 141) { Fly = true }; - span3[1] = new QuestStep(EInteractionType.Interact, 1028748u, new Vector3(-52.414795f, 15.300566f, 332.96704f), 141) + index2++; + span13[index2] = new QuestStep(EInteractionType.Interact, 1028748u, new Vector3(-52.414795f, 15.300566f, 332.96704f), 141) { Fly = true }; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span2[5]; + num++; + ref QuestSequence reference10 = ref span8[num]; QuestSequence obj10 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 2009765u, new Vector3(-151.68994f, 15.6710205f, 289.66187f), 141) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.Interact, 2009765u, new Vector3(-151.68994f, 15.6710205f, 289.66187f), 141) { Fly = true }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[6]; + num++; + ref QuestSequence reference11 = ref span8[num]; QuestSequence obj11 = new QuestSequence { Sequence = 6 @@ -215819,7 +261012,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref QuestStep reference12 = ref span15[index2]; QuestStep obj12 = new QuestStep(EInteractionType.Combat, null, new Vector3(-73.36467f, -1.5503908f, 105.86304f), 141) { StopDistance = 0.5f, @@ -215829,23 +261024,29 @@ public static class AssemblyQuestLoader int num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = 10849u; + Span span16 = CollectionsMarshal.AsSpan(list16); + int index3 = 0; + span16[index3] = 10849u; obj12.KillEnemyDataIds = list16; reference12 = obj12; obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference13 = ref span2[7]; + num++; + ref QuestSequence reference13 = ref span8[num]; QuestSequence obj13 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1028752u, new Vector3(-73.258606f, -1.5171797f, 105.241455f), 141); + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.Interact, 1028752u, new Vector3(-73.258606f, -1.5171797f, 105.241455f), 141); obj13.Steps = list17; reference13 = obj13; - ref QuestSequence reference14 = ref span2[8]; + num++; + ref QuestSequence reference14 = ref span8[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -215853,7 +261054,9 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028741u, new Vector3(47.62329f, 8f, -118.669495f), 130) + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028741u, new Vector3(47.62329f, 8f, -118.669495f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -215872,21 +261075,26 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "Fifi"; + Span span19 = CollectionsMarshal.AsSpan(list19); + index = 0; + span19[index] = "Fifi"; questRoot5.Author = list19; - num = 7; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span4 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference15 = ref span4[0]; + index = 7; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + Span span20 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference15 = ref span20[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028741u, new Vector3(47.62329f, 8f, -118.669495f), 130) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028741u, new Vector3(47.62329f, 8f, -118.669495f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -215904,7 +261112,8 @@ public static class AssemblyQuestLoader }; obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference16 = ref span4[1]; + num++; + ref QuestSequence reference16 = ref span20[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -215912,28 +261121,34 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1028756u, new Vector3(-57.358704f, -2.8249152f, 28.42749f), 132) + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.Interact, 1028756u, new Vector3(-57.358704f, -2.8249152f, 28.42749f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span4[2]; + num++; + ref QuestSequence reference17 = ref span20[num]; QuestSequence obj17 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1028762u, new Vector3(-184.49689f, 9.204633f, -34.958435f), 153) + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.Interact, 1028762u, new Vector3(-184.49689f, 9.204633f, -34.958435f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span4[3]; + num++; + ref QuestSequence reference18 = ref span20[num]; QuestSequence obj18 = new QuestSequence { Sequence = 3 @@ -215941,34 +261156,42 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 2009767u, new Vector3(-128.80145f, 9.964111f, -114.30542f), 153) + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.Interact, 2009767u, new Vector3(-128.80145f, 9.964111f, -114.30542f), 153) { Fly = true }; obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference19 = ref span4[4]; + num++; + ref QuestSequence reference19 = ref span20[num]; QuestSequence obj19 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - ref QuestStep reference20 = ref CollectionsMarshal.AsSpan(list25)[0]; + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + ref QuestStep reference20 = ref span25[num2]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(-90.14485f, 1.276046f, -112.51637f), 153) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = 10851u; + index3 = 1; + List list26 = new List(index3); + CollectionsMarshal.SetCount(list26, index3); + Span span26 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span26[num3] = 10851u; obj20.KillEnemyDataIds = list26; reference20 = obj20; obj19.Steps = list25; reference19 = obj19; - ref QuestSequence reference21 = ref span4[5]; + num++; + ref QuestSequence reference21 = ref span20[num]; QuestSequence obj21 = new QuestSequence { Sequence = 5 @@ -215976,21 +261199,26 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1028769u, new Vector3(-91.17267f, 0.92901844f, -121.38556f), 153) + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.Interact, 1028769u, new Vector3(-91.17267f, 0.92901844f, -121.38556f), 153) { StopDistance = 7f }; obj21.Steps = list27; reference21 = obj21; - ref QuestSequence reference22 = ref span4[6]; + num++; + ref QuestSequence reference22 = ref span20[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000193u, new Vector3(-56.77887f, -1.7171853f, 7.888855f), 132) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000193u, new Vector3(-56.77887f, -1.7171853f, 7.888855f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(3253) @@ -216004,13 +261232,16 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "Fifi"; + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + span29[index] = "Fifi"; questRoot6.Author = list29; - num = 7; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span5 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference23 = ref span5[0]; + index = 7; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + Span span30 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference23 = ref span30[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -216018,7 +261249,9 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028756u, new Vector3(-57.358704f, -2.8249152f, 28.42749f), 132) + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span31[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028756u, new Vector3(-57.358704f, -2.8249152f, 28.42749f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -216031,15 +261264,18 @@ public static class AssemblyQuestLoader }; obj23.Steps = list31; reference23 = obj23; - ref QuestSequence reference24 = ref span5[1]; + num++; + ref QuestSequence reference24 = ref span30[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list32)[0]; + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + ref QuestStep reference25 = ref span32[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1028773u, new Vector3(-6.7597656f, 5.4756656f, 47.53174f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard @@ -216047,7 +261283,9 @@ public static class AssemblyQuestLoader num3 = 1; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new DialogueChoice + Span span33 = CollectionsMarshal.AsSpan(list33); + index3 = 0; + span33[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBB231_03253_Q1_000_000"), @@ -216057,7 +261295,8 @@ public static class AssemblyQuestLoader reference25 = obj25; obj24.Steps = list32; reference24 = obj24; - ref QuestSequence reference26 = ref span5[2]; + num++; + ref QuestSequence reference26 = ref span30[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 @@ -216065,25 +261304,31 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418); + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418); obj26.Steps = list34; reference26 = obj26; - ref QuestSequence reference27 = ref span5[3]; + num++; + ref QuestSequence reference27 = ref span30[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1028774u, new Vector3(-53.055664f, 298.9f, -229.51093f), 155) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.Interact, 1028774u, new Vector3(-53.055664f, 298.9f, -229.51093f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj27.Steps = list35; reference27 = obj27; - ref QuestSequence reference28 = ref span5[4]; + num++; + ref QuestSequence reference28 = ref span30[num]; QuestSequence obj28 = new QuestSequence { Sequence = 4 @@ -216091,34 +261336,42 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list36)[0]; + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + ref QuestStep reference29 = ref span36[index2]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, 10852u, new Vector3(-48.600037f, 298.9f, -235.24835f), 155) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = 10852u; + index3 = 1; + List list37 = new List(index3); + CollectionsMarshal.SetCount(list37, index3); + Span span37 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span37[num3] = 10852u; obj29.KillEnemyDataIds = list37; reference29 = obj29; obj28.Steps = list36; reference28 = obj28; - ref QuestSequence reference30 = ref span5[5]; + num++; + ref QuestSequence reference30 = ref span30[num]; QuestSequence obj30 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1028774u, new Vector3(-53.055664f, 298.9f, -229.51093f), 155) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.Interact, 1028774u, new Vector3(-53.055664f, 298.9f, -229.51093f), 155) { StopDistance = 7f }; obj30.Steps = list38; reference30 = obj30; - ref QuestSequence reference31 = ref span5[6]; + num++; + ref QuestSequence reference31 = ref span30[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -216126,7 +261379,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028757u, new Vector3(-58.213196f, -2.8447464f, 28.915894f), 132) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028757u, new Vector3(-58.213196f, -2.8447464f, 28.915894f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(3254) @@ -216140,21 +261395,26 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "Fifi"; + Span span40 = CollectionsMarshal.AsSpan(list40); + index = 0; + span40[index] = "Fifi"; questRoot7.Author = list40; - num = 6; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span6 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference32 = ref span6[0]; + index = 6; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + Span span41 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference32 = ref span41[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028757u, new Vector3(-58.213196f, -2.8447464f, 28.915894f), 132) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028757u, new Vector3(-58.213196f, -2.8447464f, 28.915894f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -216167,7 +261427,8 @@ public static class AssemblyQuestLoader }; obj32.Steps = list42; reference32 = obj32; - ref QuestSequence reference33 = ref span6[1]; + num++; + ref QuestSequence reference33 = ref span41[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 @@ -216175,24 +261436,30 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1028782u, new Vector3(50.492065f, 118.30926f, -760.1587f), 620) + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.Interact, 1028782u, new Vector3(50.492065f, 118.30926f, -760.1587f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj33.Steps = list43; reference33 = obj33; - ref QuestSequence reference34 = ref span6[2]; + num++; + ref QuestSequence reference34 = ref span41[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1028782u, new Vector3(50.492065f, 118.30926f, -760.1587f), 620); + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1028782u, new Vector3(50.492065f, 118.30926f, -760.1587f), 620); obj34.Steps = list44; reference34 = obj34; - ref QuestSequence reference35 = ref span6[3]; + num++; + ref QuestSequence reference35 = ref span41[num]; QuestSequence obj35 = new QuestSequence { Sequence = 3 @@ -216200,21 +261467,27 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1028787u, new Vector3(91.081055f, 118.15579f, -739.92523f), 620); + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.Interact, 1028787u, new Vector3(91.081055f, 118.15579f, -739.92523f), 620); obj35.Steps = list45; reference35 = obj35; - ref QuestSequence reference36 = ref span6[4]; + num++; + ref QuestSequence reference36 = ref span41[num]; QuestSequence obj36 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1028787u, new Vector3(91.081055f, 118.15579f, -739.92523f), 620); + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.Interact, 1028787u, new Vector3(91.081055f, 118.15579f, -739.92523f), 620); obj36.Steps = list46; reference36 = obj36; - ref QuestSequence reference37 = ref span6[5]; + num++; + ref QuestSequence reference37 = ref span41[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -216222,7 +261495,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028792u, new Vector3(-104.631165f, 5.999999f, 197.4364f), 129) + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028792u, new Vector3(-104.631165f, 5.999999f, 197.4364f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -216243,24 +261518,30 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + Span span48 = CollectionsMarshal.AsSpan(list48); + index = 0; + span48[index] = "liza"; questRoot8.Author = list48; - num = 4; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span7 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference38 = ref span7[0]; + index = 4; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + Span span49 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference38 = ref span49[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030090u, new Vector3(-73.35016f, 1.5753315E-08f, 55.954834f), 819); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030090u, new Vector3(-73.35016f, 1.5753315E-08f, 55.954834f), 819); obj38.Steps = list50; reference38 = obj38; - ref QuestSequence reference39 = ref span7[1]; + num++; + ref QuestSequence reference39 = ref span49[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -216268,27 +261549,34 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj39.Steps = list51; reference39 = obj39; - ref QuestSequence reference40 = ref span7[2]; + num++; + ref QuestSequence reference40 = ref span49[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list52)[0]; + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + ref QuestStep reference41 = ref span52[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815); num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice + Span span53 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span53[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKRA101_03255_YESNO_001") @@ -216297,7 +261585,8 @@ public static class AssemblyQuestLoader reference41 = questStep; obj40.Steps = list52; reference40 = obj40; - ref QuestSequence reference42 = ref span7[3]; + num++; + ref QuestSequence reference42 = ref span49[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -216305,7 +261594,9 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030095u, new Vector3(-0.56463623f, -2.028786f, -17.807312f), 878) + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030095u, new Vector3(-0.56463623f, -2.028786f, -17.807312f), 878) { NextQuestId = new QuestId(3256) }; @@ -216318,24 +261609,30 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; + Span span55 = CollectionsMarshal.AsSpan(list55); + index = 0; + span55[index] = "liza"; questRoot9.Author = list55; - num = 4; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span8 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference43 = ref span8[0]; + index = 4; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + Span span56 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference43 = ref span56[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030095u, new Vector3(-0.56463623f, -2.028786f, -17.807312f), 878); + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030095u, new Vector3(-0.56463623f, -2.028786f, -17.807312f), 878); obj42.Steps = list57; reference43 = obj42; - ref QuestSequence reference44 = ref span8[1]; + num++; + ref QuestSequence reference44 = ref span56[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 @@ -216343,7 +261640,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Duty, null, null, 878) + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.Duty, null, null, 878) { DutyOptions = new DutyOptions { @@ -216352,18 +261651,22 @@ public static class AssemblyQuestLoader }; obj43.Steps = list58; reference44 = obj43; - ref QuestSequence reference45 = ref span8[2]; + num++; + ref QuestSequence reference45 = ref span56[num]; QuestSequence obj44 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1030101u, new Vector3(-8.712891f, -2.498f, 13.137939f), 878); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.Interact, 1030101u, new Vector3(-8.712891f, -2.498f, 13.137939f), 878); obj44.Steps = list59; reference45 = obj44; - ref QuestSequence reference46 = ref span8[3]; + num++; + ref QuestSequence reference46 = ref span56[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -216371,12 +261674,14 @@ public static class AssemblyQuestLoader num2 = 2; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span9 = CollectionsMarshal.AsSpan(list60); - span9[0] = new QuestStep(EInteractionType.Interact, 2009981u, new Vector3(-14.66394f, -2.609314f, 23.819275f), 878) + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.Interact, 2009981u, new Vector3(-14.66394f, -2.609314f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - span9[1] = new QuestStep(EInteractionType.CompleteQuest, 1030104u, new Vector3(101.57922f, -2.8675152E-14f, 94.346436f), 857) + index2++; + span60[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030104u, new Vector3(101.57922f, -2.8675152E-14f, 94.346436f), 857) { NextQuestId = new QuestId(3257) }; @@ -216389,27 +261694,33 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + Span span61 = CollectionsMarshal.AsSpan(list61); + index = 0; + span61[index] = "liza"; questRoot10.Author = list61; - num = 3; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span10 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference47 = ref span10[0]; + index = 3; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + Span span62 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference47 = ref span62[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f }; obj46.Steps = list63; reference47 = obj46; - ref QuestSequence reference48 = ref span10[1]; + num++; + ref QuestSequence reference48 = ref span62[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -216417,7 +261728,9 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Duty, null, null, 878) + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.Duty, null, null, 878) { DutyOptions = new DutyOptions { @@ -216426,15 +261739,18 @@ public static class AssemblyQuestLoader }; obj47.Steps = list64; reference48 = obj47; - ref QuestSequence reference49 = ref span10[2]; + num++; + ref QuestSequence reference49 = ref span62[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span65[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f, NextQuestId = new QuestId(3258) @@ -216448,13 +261764,16 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "liza"; + Span span66 = CollectionsMarshal.AsSpan(list66); + index = 0; + span66[index] = "liza"; questRoot11.Author = list66; - num = 5; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span11 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference50 = ref span11[0]; + index = 5; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + Span span67 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference50 = ref span67[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -216462,24 +261781,30 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f }; obj49.Steps = list68; reference50 = obj49; - ref QuestSequence reference51 = ref span11[1]; + num++; + ref QuestSequence reference51 = ref span67[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1030117u, new Vector3(-1.3580933f, -2.0308912f, -16.647583f), 878); + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.Interact, 1030117u, new Vector3(-1.3580933f, -2.0308912f, -16.647583f), 878); obj50.Steps = list69; reference51 = obj50; - ref QuestSequence reference52 = ref span11[2]; + num++; + ref QuestSequence reference52 = ref span67[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -216487,23 +261812,28 @@ public static class AssemblyQuestLoader num2 = 2; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span12 = CollectionsMarshal.AsSpan(list70); - span12[0] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - span12[1] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); + index2++; + span70[index2] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); obj51.Steps = list70; reference52 = obj51; - ref QuestSequence reference53 = ref span11[3]; + num++; + ref QuestSequence reference53 = ref span67[num]; QuestSequence obj52 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Duty, null, null, 878) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.Duty, null, null, 878) { DutyOptions = new DutyOptions { @@ -216512,7 +261842,8 @@ public static class AssemblyQuestLoader }; obj52.Steps = list71; reference53 = obj52; - ref QuestSequence reference54 = ref span11[4]; + num++; + ref QuestSequence reference54 = ref span67[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -216520,7 +261851,9 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span72[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f, NextQuestId = new QuestId(3259) @@ -216534,27 +261867,33 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "liza"; + Span span73 = CollectionsMarshal.AsSpan(list73); + index = 0; + span73[index] = "liza"; questRoot12.Author = list73; - num = 4; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span13 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference55 = ref span13[0]; + index = 4; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + Span span74 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference55 = ref span74[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030113u, new Vector3(-2.1210327f, -2.4980056f, 18.142944f), 878) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030113u, new Vector3(-2.1210327f, -2.4980056f, 18.142944f), 878) { StopDistance = 5f }; obj54.Steps = list75; reference55 = obj54; - ref QuestSequence reference56 = ref span13[1]; + num++; + ref QuestSequence reference56 = ref span74[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -216562,23 +261901,28 @@ public static class AssemblyQuestLoader num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span14 = CollectionsMarshal.AsSpan(list76); - span14[0] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - span14[1] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); + index2++; + span76[index2] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); obj55.Steps = list76; reference56 = obj55; - ref QuestSequence reference57 = ref span13[2]; + num++; + ref QuestSequence reference57 = ref span74[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Duty, null, null, 878) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.Duty, null, null, 878) { DutyOptions = new DutyOptions { @@ -216587,7 +261931,8 @@ public static class AssemblyQuestLoader }; obj56.Steps = list77; reference57 = obj56; - ref QuestSequence reference58 = ref span13[3]; + num++; + ref QuestSequence reference58 = ref span74[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -216595,15 +261940,19 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list78)[0]; + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + ref QuestStep reference59 = ref span78[index2]; QuestStep obj58 = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f }; - num3 = 1; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new DialogueChoice + index3 = 1; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + Span span79 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span79[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKRA105_03259_Q2_000_000"), @@ -216621,27 +261970,33 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + Span span80 = CollectionsMarshal.AsSpan(list80); + index = 0; + span80[index] = "liza"; questRoot13.Author = list80; - num = 4; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span15 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference60 = ref span15[0]; + index = 4; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + Span span81 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference60 = ref span81[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030118u, new Vector3(-3.8605957f, -2.497989f, 19.119507f), 878) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030118u, new Vector3(-3.8605957f, -2.497989f, 19.119507f), 878) { StopDistance = 5f }; obj59.Steps = list82; reference60 = obj59; - ref QuestSequence reference61 = ref span15[1]; + num++; + ref QuestSequence reference61 = ref span81[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -216649,21 +262004,27 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1030387u, new Vector3(31.967651f, 4.929005f, -9.10968f), 878); + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.Interact, 1030387u, new Vector3(31.967651f, 4.929005f, -9.10968f), 878); obj60.Steps = list83; reference61 = obj60; - ref QuestSequence reference62 = ref span15[2]; + num++; + ref QuestSequence reference62 = ref span81[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815); + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815); obj61.Steps = list84; reference62 = obj61; - ref QuestSequence reference63 = ref span15[3]; + num++; + ref QuestSequence reference63 = ref span81[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -216671,12 +262032,14 @@ public static class AssemblyQuestLoader num2 = 2; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span16 = CollectionsMarshal.AsSpan(list85); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(270.40494f, 7.1558266f, -234.46175f), 815) + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(270.40494f, 7.1558266f, -234.46175f), 815) { Fly = true }; - span16[1] = new QuestStep(EInteractionType.CompleteQuest, 1030121u, new Vector3(268.8181f, 7.1558256f, -233.66144f), 815) + index2++; + span85[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030121u, new Vector3(268.8181f, 7.1558256f, -233.66144f), 815) { NextQuestId = new QuestId(3787) }; @@ -216689,21 +262052,26 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; + Span span86 = CollectionsMarshal.AsSpan(list86); + index = 0; + span86[index] = "liza"; questRoot14.Author = list86; - num = 5; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span17 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference64 = ref span17[0]; + index = 5; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + Span span87 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference64 = ref span87[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029028u, new Vector3(15.6710205f, -1.5911946f, 37.704956f), 132) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029028u, new Vector3(15.6710205f, -1.5911946f, 37.704956f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -216716,7 +262084,8 @@ public static class AssemblyQuestLoader }; obj63.Steps = list88; reference64 = obj63; - ref QuestSequence reference65 = ref span17[1]; + num++; + ref QuestSequence reference65 = ref span87[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 @@ -216724,22 +262093,27 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 2010237u, new Vector3(-244.1596f, 5.935669f, 80.03345f), 152) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.Interact, 2010237u, new Vector3(-244.1596f, 5.935669f, 80.03345f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj64.Steps = list89; reference65 = obj64; - ref QuestSequence reference66 = ref span17[2]; + num++; + ref QuestSequence reference66 = ref span87[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list90)[0]; + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + ref QuestStep reference67 = ref span90[num2]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, null, new Vector3(-218.21523f, 11.806735f, 18.429258f), 152) { StopDistance = 0.5f, @@ -216748,12 +262122,15 @@ public static class AssemblyQuestLoader num3 = 1; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = 11125u; + Span span91 = CollectionsMarshal.AsSpan(list91); + index3 = 0; + span91[index3] = 11125u; obj66.KillEnemyDataIds = list91; reference67 = obj66; obj65.Steps = list90; reference66 = obj65; - ref QuestSequence reference68 = ref span17[3]; + num++; + ref QuestSequence reference68 = ref span87[num]; QuestSequence obj67 = new QuestSequence { Sequence = 3 @@ -216761,29 +262138,36 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1029029u, new Vector3(-214.64868f, 11.980015f, 25.40625f), 152) + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.Interact, 1029029u, new Vector3(-214.64868f, 11.980015f, 25.40625f), 152) { StopDistance = 7f }; obj67.Steps = list92; reference68 = obj67; - ref QuestSequence reference69 = ref span17[4]; + num++; + ref QuestSequence reference69 = ref span87[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list93)[0]; + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + ref QuestStep reference70 = ref span93[num2]; QuestStep obj69 = new QuestStep(EInteractionType.CompleteQuest, 1029033u, new Vector3(-214.67926f, 11.971041f, 25.192627f), 152) { StopDistance = 7f }; - num3 = 1; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = new DialogueChoice + index3 = 1; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + Span span94 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span94[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKBB101_03261_Q1_000_081") @@ -216801,14 +262185,17 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = "liza"; + Span span95 = CollectionsMarshal.AsSpan(list95); + index = 0; + span95[index] = "liza"; questRoot15.Author = list95; QuestRoot questRoot16 = questRoot2; - num = 9; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span18 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference71 = ref span18[0]; + index = 9; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span96 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference71 = ref span96[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 @@ -216816,8 +262203,9 @@ public static class AssemblyQuestLoader num2 = 4; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span19 = CollectionsMarshal.AsSpan(list96); - span19[0] = new QuestStep(EInteractionType.EquipItem, null, null, 152) + Span span97 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, ItemId = 27357u, @@ -216836,7 +262224,8 @@ public static class AssemblyQuestLoader } } }; - span19[1] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-214.67926f, 11.971041f, 25.192627f), 152) + index2++; + span97[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-214.67926f, 11.971041f, 25.192627f), 152) { StopDistance = 7f, Fly = true, @@ -216852,28 +262241,34 @@ public static class AssemblyQuestLoader } } }; - span19[2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 152); - span19[3] = new QuestStep(EInteractionType.AcceptQuest, 1029033u, new Vector3(-214.67926f, 11.971041f, 25.192627f), 152) + index2++; + span97[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 152); + index2++; + span97[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029033u, new Vector3(-214.67926f, 11.971041f, 25.192627f), 152) { StopDistance = 7f }; obj70.Steps = list96; reference71 = obj70; - ref QuestSequence reference72 = ref span18[1]; + num++; + ref QuestSequence reference72 = ref span96[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1029035u, new Vector3(35.50769f, -8f, 115.31238f), 132) + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span98 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.Interact, 1029035u, new Vector3(35.50769f, -8f, 115.31238f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj71.Steps = list97; reference72 = obj71; - ref QuestSequence reference73 = ref span18[2]; + num++; + ref QuestSequence reference73 = ref span96[num]; QuestSequence obj72 = new QuestSequence { Sequence = 2 @@ -216881,7 +262276,9 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1029037u, new Vector3(73.65515f, 13.994091f, -270.83246f), 133) + Span span99 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.Interact, 1029037u, new Vector3(73.65515f, 13.994091f, -270.83246f), 133) { AethernetShortcut = new AethernetShortcut { @@ -216891,16 +262288,18 @@ public static class AssemblyQuestLoader }; obj72.Steps = list98; reference73 = obj72; - ref QuestSequence reference74 = ref span18[3]; + num++; + ref QuestSequence reference74 = ref span96[num]; QuestSequence obj73 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - Span span20 = CollectionsMarshal.AsSpan(list99); - ref QuestStep reference75 = ref span20[0]; + index2 = 3; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span100 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + ref QuestStep reference75 = ref span100[num2]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 1000288u, new Vector3(-62.028015f, 7.175424f, -117.60132f), 133) { AethernetShortcut = new AethernetShortcut @@ -216912,46 +262311,67 @@ public static class AssemblyQuestLoader num3 = 6; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - Span span21 = CollectionsMarshal.AsSpan(list100); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span101 = CollectionsMarshal.AsSpan(list100); + index3 = 0; + span101[index3] = null; + index3++; + span101[index3] = null; + index3++; + span101[index3] = null; + index3++; + span101[index3] = null; + index3++; + span101[index3] = null; + index3++; + span101[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj74.CompletionQuestVariablesFlags = list100; reference75 = obj74; - ref QuestStep reference76 = ref span20[1]; + num2++; + ref QuestStep reference76 = ref span100[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1000286u, new Vector3(-53.574463f, 7.2025366f, -118.36426f), 133); - num3 = 6; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span22 = CollectionsMarshal.AsSpan(list101); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list101 = new List(index3); + CollectionsMarshal.SetCount(list101, index3); + Span span102 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = null; + num3++; + span102[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list101; reference76 = questStep2; - ref QuestStep reference77 = ref span20[2]; + num2++; + ref QuestStep reference77 = ref span100[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1003063u, new Vector3(-37.979797f, 7.439375f, -139.60486f), 133); num3 = 6; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span23 = CollectionsMarshal.AsSpan(list102); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span103 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list102; reference77 = questStep3; obj73.Steps = list99; reference74 = obj73; - ref QuestSequence reference78 = ref span18[4]; + num++; + ref QuestSequence reference78 = ref span96[num]; QuestSequence obj75 = new QuestSequence { Sequence = 4 @@ -216959,18 +262379,23 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1029041u, new Vector3(-93.98035f, 7.1111856f, -131.33447f), 133); + Span span104 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.Interact, 1029041u, new Vector3(-93.98035f, 7.1111856f, -131.33447f), 133); obj75.Steps = list103; reference78 = obj75; - ref QuestSequence reference79 = ref span18[5]; + num++; + ref QuestSequence reference79 = ref span96[num]; QuestSequence obj76 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1029089u, new Vector3(73.65515f, 13.994091f, -270.83246f), 133) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span105 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1029089u, new Vector3(73.65515f, 13.994091f, -270.83246f), 133) { AethernetShortcut = new AethernetShortcut { @@ -216980,11 +262405,13 @@ public static class AssemblyQuestLoader }; obj76.Steps = list104; reference79 = obj76; - span18[6] = new QuestSequence + num++; + span96[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference80 = ref span18[7]; + num++; + ref QuestSequence reference80 = ref span96[num]; QuestSequence obj77 = new QuestSequence { Sequence = 7 @@ -216992,8 +262419,9 @@ public static class AssemblyQuestLoader num2 = 2; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span24 = CollectionsMarshal.AsSpan(list105); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-232.38095f, 2.3337264f, -205.92738f), 133) + Span span106 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-232.38095f, 2.3337264f, -205.92738f), 133) { AethernetShortcut = new AethernetShortcut { @@ -217001,21 +262429,25 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaBotanist } }; - span24[1] = new QuestStep(EInteractionType.Interact, 1029043u, new Vector3(-232.25757f, 2.4186904f, -210.98651f), 133) + index2++; + span106[index2] = new QuestStep(EInteractionType.Interact, 1029043u, new Vector3(-232.25757f, 2.4186904f, -210.98651f), 133) { StopDistance = 7f }; obj77.Steps = list105; reference80 = obj77; - ref QuestSequence reference81 = ref span18[8]; + num++; + ref QuestSequence reference81 = ref span96[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029044u, new Vector3(18.44812f, 7.9999833f, -115.31244f), 130) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span107 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029044u, new Vector3(18.44812f, 7.9999833f, -115.31244f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -217035,14 +262467,17 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + Span span108 = CollectionsMarshal.AsSpan(list107); + index = 0; + span108[index] = "liza"; questRoot17.Author = list107; QuestRoot questRoot18 = questRoot2; - num = 7; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span25 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference82 = ref span25[0]; + index = 7; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span109 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference82 = ref span109[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -217050,7 +262485,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029044u, new Vector3(18.44812f, 7.9999833f, -115.31244f), 130) + Span span110 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029044u, new Vector3(18.44812f, 7.9999833f, -115.31244f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -217068,15 +262505,18 @@ public static class AssemblyQuestLoader }; obj79.Steps = list108; reference82 = obj79; - ref QuestSequence reference83 = ref span25[1]; + num++; + ref QuestSequence reference83 = ref span109[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1029054u, new Vector3(154.68066f, 4.0999947f, 31.662354f), 131) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span111 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.Interact, 1029054u, new Vector3(154.68066f, 4.0999947f, 31.662354f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -217087,7 +262527,8 @@ public static class AssemblyQuestLoader }; obj80.Steps = list109; reference83 = obj80; - ref QuestSequence reference84 = ref span25[2]; + num++; + ref QuestSequence reference84 = ref span109[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 @@ -217095,32 +262536,38 @@ public static class AssemblyQuestLoader num2 = 2; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span26 = CollectionsMarshal.AsSpan(list110); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(165.96822f, 4.0220823f, 44.280655f), 131); - span26[1] = new QuestStep(EInteractionType.Interact, 1029058u, new Vector3(17.898804f, 15.620378f, 418.66174f), 141) + Span span112 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(165.96822f, 4.0220823f, 44.280655f), 131); + index2++; + span112[index2] = new QuestStep(EInteractionType.Interact, 1029058u, new Vector3(17.898804f, 15.620378f, 418.66174f), 141) { Fly = true }; obj81.Steps = list110; reference84 = obj81; - ref QuestSequence reference85 = ref span25[3]; + num++; + ref QuestSequence reference85 = ref span109[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span27 = CollectionsMarshal.AsSpan(list111); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-306.12845f, -31.54935f, 173.07193f), 145) + index2 = 2; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span113 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-306.12845f, -31.54935f, 173.07193f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - span27[1] = new QuestStep(EInteractionType.Interact, 1029062u, new Vector3(-306.11127f, -31.525063f, 171.6792f), 145); + num2++; + span113[num2] = new QuestStep(EInteractionType.Interact, 1029062u, new Vector3(-306.11127f, -31.525063f, 171.6792f), 145); obj82.Steps = list111; reference85 = obj82; - ref QuestSequence reference86 = ref span25[4]; + num++; + ref QuestSequence reference86 = ref span109[num]; QuestSequence obj83 = new QuestSequence { Sequence = 4 @@ -217128,34 +262575,42 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list112)[0]; + Span span114 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + ref QuestStep reference87 = ref span114[index2]; QuestStep obj84 = new QuestStep(EInteractionType.Combat, null, new Vector3(-292.66827f, -32.554207f, 158.0957f), 145) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - Span span28 = CollectionsMarshal.AsSpan(list113); - span28[0] = 11126u; - span28[1] = 11127u; + index3 = 2; + List list113 = new List(index3); + CollectionsMarshal.SetCount(list113, index3); + Span span115 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span115[num3] = 11126u; + num3++; + span115[num3] = 11127u; obj84.KillEnemyDataIds = list113; reference87 = obj84; obj83.Steps = list112; reference86 = obj83; - ref QuestSequence reference88 = ref span25[5]; + num++; + ref QuestSequence reference88 = ref span109[num]; QuestSequence obj85 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1029070u, new Vector3(-293.2937f, -32.53709f, 157.88501f), 145); + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span116 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.Interact, 1029070u, new Vector3(-293.2937f, -32.53709f, 157.88501f), 145); obj85.Steps = list114; reference88 = obj85; - ref QuestSequence reference89 = ref span25[6]; + num++; + ref QuestSequence reference89 = ref span109[num]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -217163,7 +262618,9 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029073u, new Vector3(-17.380127f, 40.000565f, -0.3204956f), 128) + Span span117 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029073u, new Vector3(-17.380127f, 40.000565f, -0.3204956f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -217183,22 +262640,27 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "liza"; + Span span118 = CollectionsMarshal.AsSpan(list116); + index = 0; + span118[index] = "liza"; questRoot19.Author = list116; QuestRoot questRoot20 = questRoot2; - num = 10; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span29 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference90 = ref span29[0]; + index = 10; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span119 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference90 = ref span119[num]; QuestSequence obj87 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - ref QuestStep reference91 = ref CollectionsMarshal.AsSpan(list117)[0]; + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span120 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + ref QuestStep reference91 = ref span120[num2]; QuestStep obj88 = new QuestStep(EInteractionType.AcceptQuest, 1029073u, new Vector3(-17.380127f, 40.000565f, -0.3204956f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -217216,14 +262678,17 @@ public static class AssemblyQuestLoader num3 = 1; List list118 = new List(num3); CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = 128; + Span span121 = CollectionsMarshal.AsSpan(list118); + index3 = 0; + span121[index3] = 128; obj89.InTerritory = list118; skipConditions.AetheryteShortcutIf = obj89; obj88.SkipConditions = skipConditions; reference91 = obj88; obj87.Steps = list117; reference90 = obj87; - ref QuestSequence reference92 = ref span29[1]; + num++; + ref QuestSequence reference92 = ref span119[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 @@ -217231,68 +262696,93 @@ public static class AssemblyQuestLoader num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span30 = CollectionsMarshal.AsSpan(list119); - span30[0] = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) + Span span122 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 }; - span30[1] = new QuestStep(EInteractionType.Interact, 1029078u, new Vector3(-0.07635498f, 20.333344f, -6.3935547f), 129); + index2++; + span122[index2] = new QuestStep(EInteractionType.Interact, 1029078u, new Vector3(-0.07635498f, 20.333344f, -6.3935547f), 129); obj90.Steps = list119; reference92 = obj90; - ref QuestSequence reference93 = ref span29[2]; + num++; + ref QuestSequence reference93 = ref span119[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - Span span31 = CollectionsMarshal.AsSpan(list120); - ref QuestStep reference94 = ref span31[0]; + index2 = 3; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span123 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + ref QuestStep reference94 = ref span123[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129); - num3 = 6; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span32 = CollectionsMarshal.AsSpan(list121); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + Span span124 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list121; reference94 = questStep4; - ref QuestStep reference95 = ref span31[1]; + num2++; + ref QuestStep reference95 = ref span123[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1003604u, new Vector3(-60.44104f, 18.00033f, -4.348877f), 129); num3 = 6; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - Span span33 = CollectionsMarshal.AsSpan(list122); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span125 = CollectionsMarshal.AsSpan(list122); + index3 = 0; + span125[index3] = null; + index3++; + span125[index3] = null; + index3++; + span125[index3] = null; + index3++; + span125[index3] = null; + index3++; + span125[index3] = null; + index3++; + span125[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list122; reference95 = questStep5; - ref QuestStep reference96 = ref span31[2]; + num2++; + ref QuestStep reference96 = ref span123[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1001023u, new Vector3(-78.62976f, 18.000334f, -22.62915f), 129); - num3 = 6; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - Span span34 = CollectionsMarshal.AsSpan(list123); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list123 = new List(index3); + CollectionsMarshal.SetCount(list123, index3); + Span span126 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list123; reference96 = questStep6; obj91.Steps = list120; reference93 = obj91; - ref QuestSequence reference97 = ref span29[3]; + num++; + ref QuestSequence reference97 = ref span119[num]; QuestSequence obj92 = new QuestSequence { Sequence = 3 @@ -217300,25 +262790,31 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1029081u, new Vector3(-153.8263f, 18.2f, 22.842712f), 129); + Span span127 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.Interact, 1029081u, new Vector3(-153.8263f, 18.2f, 22.842712f), 129); obj92.Steps = list124; reference97 = obj92; - ref QuestSequence reference98 = ref span29[4]; + num++; + ref QuestSequence reference98 = ref span119[num]; QuestSequence obj93 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1029085u, new Vector3(111.10095f, 22.880848f, 635.7976f), 135) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span128 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.Interact, 1029085u, new Vector3(111.10095f, 22.880848f, 635.7976f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj93.Steps = list125; reference98 = obj93; - ref QuestSequence reference99 = ref span29[5]; + num++; + ref QuestSequence reference99 = ref span119[num]; QuestSequence obj94 = new QuestSequence { Sequence = 5 @@ -217326,8 +262822,9 @@ public static class AssemblyQuestLoader num2 = 2; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span35 = CollectionsMarshal.AsSpan(list126); - ref QuestStep reference100 = ref span35[0]; + Span span129 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + ref QuestStep reference100 = ref span129[index2]; QuestStep obj95 = new QuestStep(EInteractionType.Combat, 2010241u, new Vector3(-34.53119f, 46.92151f, 541.22217f), 135) { StopDistance = 0.5f, @@ -217337,21 +262834,30 @@ public static class AssemblyQuestLoader num3 = 1; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - CollectionsMarshal.AsSpan(list127)[0] = 11128u; + Span span130 = CollectionsMarshal.AsSpan(list127); + index3 = 0; + span130[index3] = 11128u; obj95.KillEnemyDataIds = list127; - num3 = 6; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - Span span36 = CollectionsMarshal.AsSpan(list128); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list128 = new List(index3); + CollectionsMarshal.SetCount(list128, index3); + Span span131 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj95.CompletionQuestVariablesFlags = list128; reference100 = obj95; - ref QuestStep reference101 = ref span35[1]; + index2++; + ref QuestStep reference101 = ref span129[index2]; QuestStep obj96 = new QuestStep(EInteractionType.Combat, 2010242u, new Vector3(-59.006653f, 57.297607f, 492.14917f), 135) { Fly = true, @@ -217360,39 +262866,51 @@ public static class AssemblyQuestLoader num3 = 2; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span37 = CollectionsMarshal.AsSpan(list129); - span37[0] = 11129u; - span37[1] = 11130u; + Span span132 = CollectionsMarshal.AsSpan(list129); + index3 = 0; + span132[index3] = 11129u; + index3++; + span132[index3] = 11130u; obj96.KillEnemyDataIds = list129; - num3 = 6; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - Span span38 = CollectionsMarshal.AsSpan(list130); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list130 = new List(index3); + CollectionsMarshal.SetCount(list130, index3); + Span span133 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list130; reference101 = obj96; obj94.Steps = list126; reference99 = obj94; - ref QuestSequence reference102 = ref span29[6]; + num++; + ref QuestSequence reference102 = ref span119[num]; QuestSequence obj97 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 2010243u, new Vector3(-15.6710205f, 66.36145f, 431.63184f), 135) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span134 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.Interact, 2010243u, new Vector3(-15.6710205f, 66.36145f, 431.63184f), 135) { Fly = true }; obj97.Steps = list131; reference102 = obj97; - ref QuestSequence reference103 = ref span29[7]; + num++; + ref QuestSequence reference103 = ref span119[num]; QuestSequence obj98 = new QuestSequence { Sequence = 7 @@ -217400,24 +262918,30 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1029092u, new Vector3(322.37732f, 75.949196f, -322.43848f), 135) + Span span135 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.Interact, 1029092u, new Vector3(322.37732f, 75.949196f, -322.43848f), 135) { Fly = true }; obj98.Steps = list132; reference103 = obj98; - ref QuestSequence reference104 = ref span29[8]; + num++; + ref QuestSequence reference104 = ref span119[num]; QuestSequence obj99 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1029094u, new Vector3(-35.81299f, 71.33129f, 124.6814f), 135); + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span136 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.Interact, 1029094u, new Vector3(-35.81299f, 71.33129f, 124.6814f), 135); obj99.Steps = list133; reference104 = obj99; - ref QuestSequence reference105 = ref span29[9]; + num++; + ref QuestSequence reference105 = ref span119[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -217425,7 +262949,9 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029098u, new Vector3(53.97119f, 23.979126f, 8.102478f), 418) + Span span137 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029098u, new Vector3(53.97119f, 23.979126f, 8.102478f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -217445,22 +262971,27 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "liza"; + Span span138 = CollectionsMarshal.AsSpan(list135); + index = 0; + span138[index] = "liza"; questRoot21.Author = list135; QuestRoot questRoot22 = questRoot2; - num = 8; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span39 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference106 = ref span39[0]; + index = 8; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span139 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference106 = ref span139[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029098u, new Vector3(53.97119f, 23.979126f, 8.102478f), 418) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span140 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029098u, new Vector3(53.97119f, 23.979126f, 8.102478f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -217478,7 +263009,8 @@ public static class AssemblyQuestLoader }; obj101.Steps = list136; reference106 = obj101; - ref QuestSequence reference107 = ref span39[1]; + num++; + ref QuestSequence reference107 = ref span139[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 @@ -217486,7 +263018,9 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1029103u, new Vector3(-151.59845f, 23.14059f, -75.60846f), 418) + Span span141 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.Interact, 1029103u, new Vector3(-151.59845f, 23.14059f, -75.60846f), 418) { AethernetShortcut = new AethernetShortcut { @@ -217496,22 +263030,26 @@ public static class AssemblyQuestLoader }; obj102.Steps = list137; reference107 = obj102; - ref QuestSequence reference108 = ref span39[2]; + num++; + ref QuestSequence reference108 = ref span139[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1029106u, new Vector3(207.35486f, 307.86218f, 424.6432f), 155) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span142 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.Interact, 1029106u, new Vector3(207.35486f, 307.86218f, 424.6432f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj103.Steps = list138; reference108 = obj103; - ref QuestSequence reference109 = ref span39[3]; + num++; + ref QuestSequence reference109 = ref span139[num]; QuestSequence obj104 = new QuestSequence { Sequence = 3 @@ -217519,22 +263057,26 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1029109u, new Vector3(213.09216f, 222.50911f, 291.73718f), 155) + Span span143 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.Interact, 1029109u, new Vector3(213.09216f, 222.50911f, 291.73718f), 155) { Fly = true }; obj104.Steps = list139; reference109 = obj104; - ref QuestSequence reference110 = ref span39[4]; + num++; + ref QuestSequence reference110 = ref span139[num]; QuestSequence obj105 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - Span span40 = CollectionsMarshal.AsSpan(list140); - ref QuestStep reference111 = ref span40[0]; + index2 = 3; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span144 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + ref QuestStep reference111 = ref span144[num2]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, 2010298u, new Vector3(252.64355f, 246.96729f, 189.53223f), 155) { Fly = true, @@ -217543,21 +263085,30 @@ public static class AssemblyQuestLoader num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = 11131u; + Span span145 = CollectionsMarshal.AsSpan(list141); + index3 = 0; + span145[index3] = 11131u; obj106.KillEnemyDataIds = list141; - num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span41 = CollectionsMarshal.AsSpan(list142); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list142 = new List(index3); + CollectionsMarshal.SetCount(list142, index3); + Span span146 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj106.CompletionQuestVariablesFlags = list142; reference111 = obj106; - ref QuestStep reference112 = ref span40[1]; + num2++; + ref QuestStep reference112 = ref span144[num2]; QuestStep obj107 = new QuestStep(EInteractionType.Combat, 2010299u, new Vector3(163.25623f, 274.3114f, 5.2643433f), 155) { Fly = true, @@ -217566,23 +263117,32 @@ public static class AssemblyQuestLoader num3 = 2; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span42 = CollectionsMarshal.AsSpan(list143); - span42[0] = 11132u; - span42[1] = 11133u; + Span span147 = CollectionsMarshal.AsSpan(list143); + index3 = 0; + span147[index3] = 11132u; + index3++; + span147[index3] = 11133u; obj107.KillEnemyDataIds = list143; - num3 = 6; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - Span span43 = CollectionsMarshal.AsSpan(list144); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list144 = new List(index3); + CollectionsMarshal.SetCount(list144, index3); + Span span148 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj107.CompletionQuestVariablesFlags = list144; reference112 = obj107; - ref QuestStep reference113 = ref span40[2]; + num2++; + ref QuestStep reference113 = ref span144[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2010300u, new Vector3(285.3894f, 299.97705f, -78.66034f), 155) { Fly = true, @@ -217591,26 +263151,36 @@ public static class AssemblyQuestLoader num3 = 3; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - Span span44 = CollectionsMarshal.AsSpan(list145); - span44[0] = 11134u; - span44[1] = 11135u; - span44[2] = 11136u; + Span span149 = CollectionsMarshal.AsSpan(list145); + index3 = 0; + span149[index3] = 11134u; + index3++; + span149[index3] = 11135u; + index3++; + span149[index3] = 11136u; obj108.KillEnemyDataIds = list145; - num3 = 6; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span45 = CollectionsMarshal.AsSpan(list146); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + Span span150 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj108.CompletionQuestVariablesFlags = list146; reference113 = obj108; obj105.Steps = list140; reference110 = obj105; - ref QuestSequence reference114 = ref span39[5]; + num++; + ref QuestSequence reference114 = ref span139[num]; QuestSequence obj109 = new QuestSequence { Sequence = 5 @@ -217618,27 +263188,33 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 2010301u, new Vector3(240.28369f, 302.02173f, -174.88367f), 155) + Span span151 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.Interact, 2010301u, new Vector3(240.28369f, 302.02173f, -174.88367f), 155) { Fly = true }; obj109.Steps = list147; reference114 = obj109; - ref QuestSequence reference115 = ref span39[6]; + num++; + ref QuestSequence reference115 = ref span139[num]; QuestSequence obj110 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 2010302u, new Vector3(-653.3761f, 224.26172f, -40.421204f), 155) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span152 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.Interact, 2010302u, new Vector3(-653.3761f, 224.26172f, -40.421204f), 155) { Fly = true }; obj110.Steps = list148; reference115 = obj110; - ref QuestSequence reference116 = ref span39[7]; + num++; + ref QuestSequence reference116 = ref span139[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue @@ -217646,7 +263222,9 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029099u, new Vector3(54.917114f, 23.979126f, 8.926453f), 418) + Span span153 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029099u, new Vector3(54.917114f, 23.979126f, 8.926453f), 418) { NextQuestId = new QuestId(3266) }; @@ -217659,21 +263237,26 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "liza"; + Span span154 = CollectionsMarshal.AsSpan(list150); + index = 0; + span154[index] = "liza"; questRoot23.Author = list150; - num = 6; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span46 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference117 = ref span46[0]; + index = 6; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + Span span155 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference117 = ref span155[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029099u, new Vector3(54.917114f, 23.979126f, 8.926453f), 418) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span156 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029099u, new Vector3(54.917114f, 23.979126f, 8.926453f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -217691,7 +263274,8 @@ public static class AssemblyQuestLoader }; obj112.Steps = list152; reference117 = obj112; - ref QuestSequence reference118 = ref span46[1]; + num++; + ref QuestSequence reference118 = ref span155[num]; QuestSequence obj113 = new QuestSequence { Sequence = 1 @@ -217699,7 +263283,9 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1029120u, new Vector3(-56.01587f, 15.140585f, -35.324707f), 418) + Span span157 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.Interact, 1029120u, new Vector3(-56.01587f, 15.140585f, -35.324707f), 418) { AethernetShortcut = new AethernetShortcut { @@ -217709,26 +263295,31 @@ public static class AssemblyQuestLoader }; obj113.Steps = list153; reference118 = obj113; - ref QuestSequence reference119 = ref span46[2]; + num++; + ref QuestSequence reference119 = ref span155[num]; QuestSequence obj114 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1029121u, new Vector3(-266.4378f, 92.16852f, -501.854f), 397) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span158 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span158[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1029121u, new Vector3(-266.4378f, 92.16852f, -501.854f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj114.Steps = list154; reference119 = obj114; - span46[3] = new QuestSequence + num++; + span155[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference120 = ref span46[4]; + num++; + ref QuestSequence reference120 = ref span155[num]; QuestSequence obj115 = new QuestSequence { Sequence = 4 @@ -217736,7 +263327,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1029113u, new Vector3(55.649536f, 23.979126f, 9.689453f), 418) + Span span159 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.Interact, 1029113u, new Vector3(55.649536f, 23.979126f, 9.689453f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -217747,15 +263340,18 @@ public static class AssemblyQuestLoader }; obj115.Steps = list155; reference120 = obj115; - ref QuestSequence reference121 = ref span46[5]; + num++; + ref QuestSequence reference121 = ref span155[num]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029122u, new Vector3(17.746216f, 20.687263f, -660.12054f), 156) + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span160 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029122u, new Vector3(17.746216f, 20.687263f, -660.12054f), 156) { StopDistance = 5f }; @@ -217768,13 +263364,16 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "Cacahuetes"; + Span span161 = CollectionsMarshal.AsSpan(list157); + index = 0; + span161[index] = "Cacahuetes"; questRoot24.Author = list157; - num = 5; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span47 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference122 = ref span47[0]; + index = 5; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + Span span162 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestSequence reference122 = ref span162[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 @@ -217782,7 +263381,9 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029998u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + Span span163 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span163[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029998u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -217800,22 +263401,26 @@ public static class AssemblyQuestLoader }; obj117.Steps = list159; reference122 = obj117; - ref QuestSequence reference123 = ref span47[1]; + num++; + ref QuestSequence reference123 = ref span162[num]; QuestSequence obj118 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1029999u, new Vector3(346.66968f, 3.2878497f, 177.17249f), 813) + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span164 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.Interact, 1029999u, new Vector3(346.66968f, 3.2878497f, 177.17249f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj118.Steps = list160; reference123 = obj118; - ref QuestSequence reference124 = ref span47[2]; + num++; + ref QuestSequence reference124 = ref span162[num]; QuestSequence obj119 = new QuestSequence { Sequence = 2 @@ -217823,7 +263428,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list161)[0]; + Span span165 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + ref QuestStep reference125 = ref span165[index2]; QuestStep obj120 = new QuestStep(EInteractionType.Combat, null, new Vector3(340.6667f, 3.0521033f, 208.3552f), 813) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -217831,23 +263438,29 @@ public static class AssemblyQuestLoader num3 = 1; List list162 = new List(num3); CollectionsMarshal.SetCount(list162, num3); - CollectionsMarshal.AsSpan(list162)[0] = 10865u; + Span span166 = CollectionsMarshal.AsSpan(list162); + index3 = 0; + span166[index3] = 10865u; obj120.KillEnemyDataIds = list162; reference125 = obj120; obj119.Steps = list161; reference124 = obj119; - ref QuestSequence reference126 = ref span47[3]; + num++; + ref QuestSequence reference126 = ref span162[num]; QuestSequence obj121 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1030000u, new Vector3(341.02393f, 3.5819468f, 198.32141f), 813); + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span167 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.Interact, 1030000u, new Vector3(341.02393f, 3.5819468f, 198.32141f), 813); obj121.Steps = list163; reference126 = obj121; - ref QuestSequence reference127 = ref span47[4]; + num++; + ref QuestSequence reference127 = ref span162[num]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue @@ -217855,7 +263468,9 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + Span span168 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span168[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -217881,21 +263496,26 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "Cacahuetes"; + Span span169 = CollectionsMarshal.AsSpan(list165); + index = 0; + span169[index] = "Cacahuetes"; questRoot25.Author = list165; - num = 6; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span48 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference128 = ref span48[0]; + index = 6; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + Span span170 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference128 = ref span170[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span171 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span171[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -217913,7 +263533,8 @@ public static class AssemblyQuestLoader }; obj123.Steps = list167; reference128 = obj123; - ref QuestSequence reference129 = ref span48[1]; + num++; + ref QuestSequence reference129 = ref span170[num]; QuestSequence obj124 = new QuestSequence { Sequence = 1 @@ -217921,35 +263542,43 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1030004u, new Vector3(689.1127f, 30.11682f, 278.85852f), 814) + Span span172 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.Interact, 1030004u, new Vector3(689.1127f, 30.11682f, 278.85852f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaStilltide }; obj124.Steps = list168; reference129 = obj124; - ref QuestSequence reference130 = ref span48[2]; + num++; + ref QuestSequence reference130 = ref span170[num]; QuestSequence obj125 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list169)[0]; + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + Span span173 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + ref QuestStep reference131 = ref span173[num2]; QuestStep obj126 = new QuestStep(EInteractionType.Combat, 2009999u, new Vector3(529.3812f, 11.9782715f, 370.83997f), 814) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - CollectionsMarshal.AsSpan(list170)[0] = 10866u; + index3 = 1; + List list170 = new List(index3); + CollectionsMarshal.SetCount(list170, index3); + Span span174 = CollectionsMarshal.AsSpan(list170); + num3 = 0; + span174[num3] = 10866u; obj126.KillEnemyDataIds = list170; reference131 = obj126; obj125.Steps = list169; reference130 = obj125; - ref QuestSequence reference132 = ref span48[3]; + num++; + ref QuestSequence reference132 = ref span170[num]; QuestSequence obj127 = new QuestSequence { Sequence = 3 @@ -217957,7 +263586,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list171)[0]; + Span span175 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + ref QuestStep reference133 = ref span175[index2]; QuestStep obj128 = new QuestStep(EInteractionType.Combat, 2010000u, new Vector3(342.48877f, 16.55597f, 454.24573f), 814) { Fly = true, @@ -217966,26 +263597,32 @@ public static class AssemblyQuestLoader num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = 10867u; + Span span176 = CollectionsMarshal.AsSpan(list172); + index3 = 0; + span176[index3] = 10867u; obj128.KillEnemyDataIds = list172; reference133 = obj128; obj127.Steps = list171; reference132 = obj127; - ref QuestSequence reference134 = ref span48[4]; + num++; + ref QuestSequence reference134 = ref span170[num]; QuestSequence obj129 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1030006u, new Vector3(181.59753f, 33.636906f, 177.47766f), 814) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span177 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.Interact, 1030006u, new Vector3(181.59753f, 33.636906f, 177.47766f), 814) { Fly = true }; obj129.Steps = list173; reference134 = obj129; - ref QuestSequence reference135 = ref span48[5]; + num++; + ref QuestSequence reference135 = ref span170[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -217993,7 +263630,9 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + Span span178 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218019,21 +263658,26 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "Cacahuetes"; + Span span179 = CollectionsMarshal.AsSpan(list175); + index = 0; + span179[index] = "Cacahuetes"; questRoot26.Author = list175; - num = 6; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span49 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference136 = ref span49[0]; + index = 6; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + Span span180 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference136 = ref span180[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span181 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span181[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218051,7 +263695,8 @@ public static class AssemblyQuestLoader }; obj131.Steps = list177; reference136 = obj131; - ref QuestSequence reference137 = ref span49[1]; + num++; + ref QuestSequence reference137 = ref span180[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 @@ -218059,29 +263704,36 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1030012u, new Vector3(279.469f, 1.4685827f, -281.94098f), 815) + Span span182 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.Interact, 1030012u, new Vector3(279.469f, 1.4685827f, -281.94098f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; obj132.Steps = list178; reference137 = obj132; - ref QuestSequence reference138 = ref span49[2]; + num++; + ref QuestSequence reference138 = ref span180[num]; QuestSequence obj133 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - ref QuestStep reference139 = ref CollectionsMarshal.AsSpan(list179)[0]; + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span183 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + ref QuestStep reference139 = ref span183[num2]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 2010002u, new Vector3(279.65198f, 1.4800415f, -282.7345f), 815) { StopDistance = 4f }; - num3 = 1; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - CollectionsMarshal.AsSpan(list180)[0] = new DialogueChoice + index3 = 1; + List list180 = new List(index3); + CollectionsMarshal.SetCount(list180, index3); + Span span184 = CollectionsMarshal.AsSpan(list180); + num3 = 0; + span184[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBA221_03269_Q1_000_000"), @@ -218091,7 +263743,8 @@ public static class AssemblyQuestLoader reference139 = obj134; obj133.Steps = list179; reference138 = obj133; - ref QuestSequence reference140 = ref span49[3]; + num++; + ref QuestSequence reference140 = ref span180[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -218099,27 +263752,33 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1030013u, new Vector3(612.3292f, -25.655535f, -36.66742f), 815) + Span span185 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.Interact, 1030013u, new Vector3(612.3292f, -25.655535f, -36.66742f), 815) { Fly = true }; obj135.Steps = list181; reference140 = obj135; - ref QuestSequence reference141 = ref span49[4]; + num++; + ref QuestSequence reference141 = ref span180[num]; QuestSequence obj136 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1030014u, new Vector3(614.46545f, -25.7535f, -35.6604f), 815) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span186 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span186[num2] = new QuestStep(EInteractionType.Interact, 1030014u, new Vector3(614.46545f, -25.7535f, -35.6604f), 815) { StopDistance = 4f }; obj136.Steps = list182; reference141 = obj136; - ref QuestSequence reference142 = ref span49[5]; + num++; + ref QuestSequence reference142 = ref span180[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -218127,7 +263786,9 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + Span span187 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span187[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218153,21 +263814,26 @@ public static class AssemblyQuestLoader num = 1; List list184 = new List(num); CollectionsMarshal.SetCount(list184, num); - CollectionsMarshal.AsSpan(list184)[0] = "AUTHOR"; + Span span188 = CollectionsMarshal.AsSpan(list184); + index = 0; + span188[index] = "AUTHOR"; questRoot27.Author = list184; - num = 7; - List list185 = new List(num); - CollectionsMarshal.SetCount(list185, num); - Span span50 = CollectionsMarshal.AsSpan(list185); - ref QuestSequence reference143 = ref span50[0]; + index = 7; + List list185 = new List(index); + CollectionsMarshal.SetCount(list185, index); + Span span189 = CollectionsMarshal.AsSpan(list185); + num = 0; + ref QuestSequence reference143 = ref span189[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span190 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span190[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218185,7 +263851,8 @@ public static class AssemblyQuestLoader }; obj138.Steps = list186; reference143 = obj138; - ref QuestSequence reference144 = ref span50[1]; + num++; + ref QuestSequence reference144 = ref span189[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -218193,21 +263860,26 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1030015u, new Vector3(-83.05487f, -19.061518f, 309.83435f), 817) + Span span191 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span191[index2] = new QuestStep(EInteractionType.Interact, 1030015u, new Vector3(-83.05487f, -19.061518f, 309.83435f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj139.Steps = list187; reference144 = obj139; - ref QuestSequence reference145 = ref span50[2]; + num++; + ref QuestSequence reference145 = ref span189[num]; QuestSequence obj140 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - ref QuestStep reference146 = ref CollectionsMarshal.AsSpan(list188)[0]; + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + Span span192 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + ref QuestStep reference146 = ref span192[num2]; QuestStep obj141 = new QuestStep(EInteractionType.Combat, 2010003u, new Vector3(263.9048f, 12.436096f, 103.990234f), 817) { Fly = true, @@ -218216,12 +263888,15 @@ public static class AssemblyQuestLoader num3 = 1; List list189 = new List(num3); CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = 10950u; + Span span193 = CollectionsMarshal.AsSpan(list189); + index3 = 0; + span193[index3] = 10950u; obj141.KillEnemyDataIds = list189; reference146 = obj141; obj140.Steps = list188; reference145 = obj140; - ref QuestSequence reference147 = ref span50[3]; + num++; + ref QuestSequence reference147 = ref span189[num]; QuestSequence obj142 = new QuestSequence { Sequence = 3 @@ -218229,39 +263904,48 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list190)[0]; + Span span194 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + ref QuestStep reference148 = ref span194[index2]; QuestStep obj143 = new QuestStep(EInteractionType.Combat, 2010004u, new Vector3(446.0669f, 8.041443f, 123.03345f), 817) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = 10869u; + index3 = 1; + List list191 = new List(index3); + CollectionsMarshal.SetCount(list191, index3); + Span span195 = CollectionsMarshal.AsSpan(list191); + num3 = 0; + span195[num3] = 10869u; obj143.KillEnemyDataIds = list191; reference148 = obj143; obj142.Steps = list190; reference147 = obj142; - ref QuestSequence reference149 = ref span50[4]; + num++; + ref QuestSequence reference149 = ref span189[num]; QuestSequence obj144 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030017u, new Vector3(633.99695f, 24.12675f, 59.861084f), 817) + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span196 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030017u, new Vector3(633.99695f, 24.12675f, 59.861084f), 817) { Fly = true }; obj144.Steps = list192; reference149 = obj144; - span50[5] = new QuestSequence + num++; + span189[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference150 = ref span50[6]; + num++; + ref QuestSequence reference150 = ref span189[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue @@ -218269,7 +263953,9 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + Span span197 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218295,21 +263981,26 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "AUTHOR"; + Span span198 = CollectionsMarshal.AsSpan(list194); + index = 0; + span198[index] = "AUTHOR"; questRoot28.Author = list194; - num = 4; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span51 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference151 = ref span51[0]; + index = 4; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + Span span199 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference151 = ref span199[num]; QuestSequence obj146 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span200 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218327,7 +264018,8 @@ public static class AssemblyQuestLoader }; obj146.Steps = list196; reference151 = obj146; - ref QuestSequence reference152 = ref span51[1]; + num++; + ref QuestSequence reference152 = ref span199[num]; QuestSequence obj147 = new QuestSequence { Sequence = 1 @@ -218335,27 +264027,33 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1030021u, new Vector3(-456.6568f, 417.12558f, -597.1008f), 814) + Span span201 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.Interact, 1030021u, new Vector3(-456.6568f, 417.12558f, -597.1008f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra }; obj147.Steps = list197; reference152 = obj147; - ref QuestSequence reference153 = ref span51[2]; + num++; + ref QuestSequence reference153 = ref span199[num]; QuestSequence obj148 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1030022u, new Vector3(-355.55048f, 415.2497f, -677.9431f), 814) + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span202 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.Interact, 1030022u, new Vector3(-355.55048f, 415.2497f, -677.9431f), 814) { Fly = true }; obj148.Steps = list198; reference153 = obj148; - ref QuestSequence reference154 = ref span51[3]; + num++; + ref QuestSequence reference154 = ref span199[num]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue @@ -218363,7 +264061,9 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030021u, new Vector3(-456.6568f, 417.12558f, -597.1008f), 814) + Span span203 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span203[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030021u, new Vector3(-456.6568f, 417.12558f, -597.1008f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, NextQuestId = new QuestId(3272) @@ -218378,22 +264078,27 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - CollectionsMarshal.AsSpan(list200)[0] = "Cacahuetes"; + Span span204 = CollectionsMarshal.AsSpan(list200); + index = 0; + span204[index] = "Cacahuetes"; questRoot29.Author = list200; QuestRoot questRoot30 = questRoot2; - num = 7; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span52 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference155 = ref span52[0]; + index = 7; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span205 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference155 = ref span205[num]; QuestSequence obj150 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030021u, new Vector3(-456.6568f, 417.12558f, -597.1008f), 814) + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span206 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030021u, new Vector3(-456.6568f, 417.12558f, -597.1008f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, SkipConditions = new SkipConditions @@ -218406,7 +264111,8 @@ public static class AssemblyQuestLoader }; obj150.Steps = list201; reference155 = obj150; - ref QuestSequence reference156 = ref span52[1]; + num++; + ref QuestSequence reference156 = ref span205[num]; QuestSequence obj151 = new QuestSequence { Sequence = 1 @@ -218414,7 +264120,9 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - ref QuestStep reference157 = ref CollectionsMarshal.AsSpan(list202)[0]; + Span span207 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + ref QuestStep reference157 = ref span207[index2]; QuestStep obj152 = new QuestStep(EInteractionType.Combat, 2010006u, new Vector3(-115.31244f, 428.18335f, -621.4542f), 814) { Fly = true, @@ -218423,34 +264131,42 @@ public static class AssemblyQuestLoader num3 = 1; List list203 = new List(num3); CollectionsMarshal.SetCount(list203, num3); - CollectionsMarshal.AsSpan(list203)[0] = 10870u; + Span span208 = CollectionsMarshal.AsSpan(list203); + index3 = 0; + span208[index3] = 10870u; obj152.KillEnemyDataIds = list203; reference157 = obj152; obj151.Steps = list202; reference156 = obj151; - ref QuestSequence reference158 = ref span52[2]; + num++; + ref QuestSequence reference158 = ref span205[num]; QuestSequence obj153 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list204)[0]; + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span209 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + ref QuestStep reference159 = ref span209[num2]; QuestStep obj154 = new QuestStep(EInteractionType.Combat, 2010007u, new Vector3(21.194763f, 348.89746f, -251.88074f), 814) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = 10871u; + index3 = 1; + List list205 = new List(index3); + CollectionsMarshal.SetCount(list205, index3); + Span span210 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + span210[num3] = 10871u; obj154.KillEnemyDataIds = list205; reference159 = obj154; obj153.Steps = list204; reference158 = obj153; - ref QuestSequence reference160 = ref span52[3]; + num++; + ref QuestSequence reference160 = ref span205[num]; QuestSequence obj155 = new QuestSequence { Sequence = 3 @@ -218458,7 +264174,9 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list206)[0]; + Span span211 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + ref QuestStep reference161 = ref span211[index2]; QuestStep obj156 = new QuestStep(EInteractionType.SinglePlayerDuty, 1030035u, new Vector3(-650.35474f, 352.45102f, -129.01508f), 814) { Fly = true @@ -218467,24 +264185,30 @@ public static class AssemblyQuestLoader num3 = 1; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - CollectionsMarshal.AsSpan(list207)[0] = "Currently it won't work, because the logic is missing NPC healing."; + Span span212 = CollectionsMarshal.AsSpan(list207); + index3 = 0; + span212[index3] = "Currently it won't work, because the logic is missing NPC healing."; singlePlayerDutyOptions.Notes = list207; obj156.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference161 = obj156; obj155.Steps = list206; reference160 = obj155; - ref QuestSequence reference162 = ref span52[4]; + num++; + ref QuestSequence reference162 = ref span205[num]; QuestSequence obj157 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1030038u, new Vector3(-650.35474f, 352.45102f, -129.01508f), 814); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span213 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span213[num2] = new QuestStep(EInteractionType.Interact, 1030038u, new Vector3(-650.35474f, 352.45102f, -129.01508f), 814); obj157.Steps = list208; reference162 = obj157; - ref QuestSequence reference163 = ref span52[5]; + num++; + ref QuestSequence reference163 = ref span205[num]; QuestSequence obj158 = new QuestSequence { Sequence = 5 @@ -218492,18 +264216,23 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1030038u, new Vector3(-650.35474f, 352.45102f, -129.01508f), 814); + Span span214 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.Interact, 1030038u, new Vector3(-650.35474f, 352.45102f, -129.01508f), 814); obj158.Steps = list209; reference163 = obj158; - ref QuestSequence reference164 = ref span52[6]; + num++; + ref QuestSequence reference164 = ref span205[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030039u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span215 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030039u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218528,13 +264257,16 @@ public static class AssemblyQuestLoader num = 1; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - CollectionsMarshal.AsSpan(list211)[0] = "Fifi"; + Span span216 = CollectionsMarshal.AsSpan(list211); + index = 0; + span216[index] = "Fifi"; questRoot31.Author = list211; - num = 6; - List list212 = new List(num); - CollectionsMarshal.SetCount(list212, num); - Span span53 = CollectionsMarshal.AsSpan(list212); - ref QuestSequence reference165 = ref span53[0]; + index = 6; + List list212 = new List(index); + CollectionsMarshal.SetCount(list212, index); + Span span217 = CollectionsMarshal.AsSpan(list212); + num = 0; + ref QuestSequence reference165 = ref span217[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 @@ -218542,7 +264274,9 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030126u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) + Span span218 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span218[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030126u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218560,15 +264294,18 @@ public static class AssemblyQuestLoader }; obj160.Steps = list213; reference165 = obj160; - ref QuestSequence reference166 = ref span53[1]; + num++; + ref QuestSequence reference166 = ref span217[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1030127u, new Vector3(200.12195f, -0.39141315f, 389.45593f), 813) + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + Span span219 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span219[num2] = new QuestStep(EInteractionType.Interact, 1030127u, new Vector3(200.12195f, -0.39141315f, 389.45593f), 813) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -218579,7 +264316,8 @@ public static class AssemblyQuestLoader }; obj161.Steps = list214; reference166 = obj161; - ref QuestSequence reference167 = ref span53[2]; + num++; + ref QuestSequence reference167 = ref span217[num]; QuestSequence obj162 = new QuestSequence { Sequence = 2 @@ -218587,34 +264325,42 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.UseItem, 2010396u, new Vector3(195.48328f, -0.7477417f, 370.93152f), 813) + Span span220 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span220[index2] = new QuestStep(EInteractionType.UseItem, 2010396u, new Vector3(195.48328f, -0.7477417f, 370.93152f), 813) { ItemId = 2002718u }; obj162.Steps = list215; reference167 = obj162; - ref QuestSequence reference168 = ref span53[3]; + num++; + ref QuestSequence reference168 = ref span217[num]; QuestSequence obj163 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - ref QuestStep reference169 = ref CollectionsMarshal.AsSpan(list216)[0]; + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + Span span221 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + ref QuestStep reference169 = ref span221[num2]; QuestStep obj164 = new QuestStep(EInteractionType.Combat, 2010397u, new Vector3(203.90625f, -0.5340576f, 389.82214f), 813) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = 10872u; + index3 = 1; + List list217 = new List(index3); + CollectionsMarshal.SetCount(list217, index3); + Span span222 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span222[num3] = 10872u; obj164.KillEnemyDataIds = list217; reference169 = obj164; obj163.Steps = list216; reference168 = obj163; - ref QuestSequence reference170 = ref span53[4]; + num++; + ref QuestSequence reference170 = ref span217[num]; QuestSequence obj165 = new QuestSequence { Sequence = 4 @@ -218622,21 +264368,26 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1031013u, new Vector3(200.09155f, -0.39049676f, 389.4254f), 813) + Span span223 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + span223[index2] = new QuestStep(EInteractionType.Interact, 1031013u, new Vector3(200.09155f, -0.39049676f, 389.4254f), 813) { StopDistance = 5f }; obj165.Steps = list218; reference170 = obj165; - ref QuestSequence reference171 = ref span53[5]; + num++; + ref QuestSequence reference171 = ref span217[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + Span span224 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span224[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218655,13 +264406,16 @@ public static class AssemblyQuestLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - CollectionsMarshal.AsSpan(list220)[0] = "Fifi"; + Span span225 = CollectionsMarshal.AsSpan(list220); + index = 0; + span225[index] = "Fifi"; questRoot32.Author = list220; - num = 6; - List list221 = new List(num); - CollectionsMarshal.SetCount(list221, num); - Span span54 = CollectionsMarshal.AsSpan(list221); - ref QuestSequence reference172 = ref span54[0]; + index = 6; + List list221 = new List(index); + CollectionsMarshal.SetCount(list221, index); + Span span226 = CollectionsMarshal.AsSpan(list221); + num = 0; + ref QuestSequence reference172 = ref span226[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 @@ -218669,7 +264423,9 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) + Span span227 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218687,22 +264443,26 @@ public static class AssemblyQuestLoader }; obj167.Steps = list222; reference172 = obj167; - ref QuestSequence reference173 = ref span54[1]; + num++; + ref QuestSequence reference173 = ref span226[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 1030130u, new Vector3(469.0775f, -32.782784f, -288.44135f), 815) + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + Span span228 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.Interact, 1030130u, new Vector3(469.0775f, -32.782784f, -288.44135f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; obj168.Steps = list223; reference173 = obj168; - ref QuestSequence reference174 = ref span54[2]; + num++; + ref QuestSequence reference174 = ref span226[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -218710,21 +264470,26 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 2010399u, new Vector3(613.39734f, -33.585205f, -180.95679f), 815) + Span span229 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span229[index2] = new QuestStep(EInteractionType.Interact, 2010399u, new Vector3(613.39734f, -33.585205f, -180.95679f), 815) { Fly = true }; obj169.Steps = list224; reference174 = obj169; - ref QuestSequence reference175 = ref span54[3]; + num++; + ref QuestSequence reference175 = ref span226[num]; QuestSequence obj170 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list225)[0]; + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span230 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + ref QuestStep reference176 = ref span230[num2]; QuestStep obj171 = new QuestStep(EInteractionType.Combat, 2010400u, new Vector3(536.9192f, -33.737732f, 38.83423f), 815) { Fly = true, @@ -218733,12 +264498,15 @@ public static class AssemblyQuestLoader num3 = 1; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = 10873u; + Span span231 = CollectionsMarshal.AsSpan(list226); + index3 = 0; + span231[index3] = 10873u; obj171.KillEnemyDataIds = list226; reference176 = obj171; obj170.Steps = list225; reference175 = obj170; - ref QuestSequence reference177 = ref span54[4]; + num++; + ref QuestSequence reference177 = ref span226[num]; QuestSequence obj172 = new QuestSequence { Sequence = 4 @@ -218746,21 +264514,26 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 2010401u, new Vector3(469.0775f, -32.791687f, -288.44135f), 815) + Span span232 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span232[index2] = new QuestStep(EInteractionType.Interact, 2010401u, new Vector3(469.0775f, -32.791687f, -288.44135f), 815) { Fly = true }; obj172.Steps = list227; reference177 = obj172; - ref QuestSequence reference178 = ref span54[5]; + num++; + ref QuestSequence reference178 = ref span226[num]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span233 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span233[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218775,19 +264548,20 @@ public static class AssemblyQuestLoader questRoot32.QuestSequence = list221; AddQuest(questId25, questRoot32); QuestId questId26 = new QuestId(3275); - questRoot2 = new QuestRoot(); - QuestRoot questRoot33 = questRoot2; + QuestRoot questRoot33 = new QuestRoot(); num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "Fifi"; + Span span234 = CollectionsMarshal.AsSpan(list229); + index = 0; + span234[index] = "Fifi"; questRoot33.Author = list229; - QuestRoot questRoot34 = questRoot2; - num = 7; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span55 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference179 = ref span55[0]; + index = 7; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + Span span235 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference179 = ref span235[num]; QuestSequence obj174 = new QuestSequence { Sequence = 0 @@ -218795,7 +264569,9 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) + Span span236 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span236[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218813,22 +264589,26 @@ public static class AssemblyQuestLoader }; obj174.Steps = list231; reference179 = obj174; - ref QuestSequence reference180 = ref span55[1]; + num++; + ref QuestSequence reference180 = ref span235[num]; QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1030135u, new Vector3(-251.42291f, 22.19962f, 325.7953f), 814) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span237 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span237[num2] = new QuestStep(EInteractionType.Interact, 1030135u, new Vector3(-251.42291f, 22.19962f, 325.7953f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj175.Steps = list232; reference180 = obj175; - ref QuestSequence reference181 = ref span55[2]; + num++; + ref QuestSequence reference181 = ref span235[num]; QuestSequence obj176 = new QuestSequence { Sequence = 2 @@ -218836,27 +264616,33 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 2010402u, new Vector3(-550.7744f, 29.160034f, 363.4851f), 814) + Span span238 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span238[index2] = new QuestStep(EInteractionType.Interact, 2010402u, new Vector3(-550.7744f, 29.160034f, 363.4851f), 814) { Fly = true }; obj176.Steps = list233; reference181 = obj176; - ref QuestSequence reference182 = ref span55[3]; + num++; + ref QuestSequence reference182 = ref span235[num]; QuestSequence obj177 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 2010403u, new Vector3(-550.98804f, 41.33667f, 252.24683f), 814) + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + Span span239 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span239[num2] = new QuestStep(EInteractionType.Interact, 2010403u, new Vector3(-550.98804f, 41.33667f, 252.24683f), 814) { Fly = true }; obj177.Steps = list234; reference182 = obj177; - ref QuestSequence reference183 = ref span55[4]; + num++; + ref QuestSequence reference183 = ref span235[num]; QuestSequence obj178 = new QuestSequence { Sequence = 4 @@ -218864,27 +264650,33 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1030136u, new Vector3(-192.58417f, 26.771265f, 248.46265f), 814) + Span span240 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span240[index2] = new QuestStep(EInteractionType.Interact, 1030136u, new Vector3(-192.58417f, 26.771265f, 248.46265f), 814) { Fly = true }; obj178.Steps = list235; reference183 = obj178; - ref QuestSequence reference184 = ref span55[5]; + num++; + ref QuestSequence reference184 = ref span235[num]; QuestSequence obj179 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1030140u, new Vector3(67.64319f, 82.001656f, -53.330322f), 820) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span241 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span241[num2] = new QuestStep(EInteractionType.Interact, 1030140u, new Vector3(67.64319f, 82.001656f, -53.330322f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj179.Steps = list236; reference184 = obj179; - ref QuestSequence reference185 = ref span55[6]; + num++; + ref QuestSequence reference185 = ref span235[num]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue @@ -218892,7 +264684,9 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - ref QuestStep reference186 = ref CollectionsMarshal.AsSpan(list237)[0]; + Span span242 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + ref QuestStep reference186 = ref span242[index2]; QuestStep obj181 = new QuestStep(EInteractionType.CompleteQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -218902,10 +264696,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - num3 = 1; - List list238 = new List(num3); - CollectionsMarshal.SetCount(list238, num3); - CollectionsMarshal.AsSpan(list238)[0] = new DialogueChoice + index3 = 1; + List list238 = new List(index3); + CollectionsMarshal.SetCount(list238, index3); + Span span243 = CollectionsMarshal.AsSpan(list238); + num3 = 0; + span243[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBA321_03275_Q1_000_000"), @@ -218916,28 +264712,33 @@ public static class AssemblyQuestLoader reference186 = obj181; obj180.Steps = list237; reference185 = obj180; - questRoot34.QuestSequence = list230; - AddQuest(questId26, questRoot2); + questRoot33.QuestSequence = list230; + AddQuest(questId26, questRoot33); QuestId questId27 = new QuestId(3276); - QuestRoot questRoot35 = new QuestRoot(); + QuestRoot questRoot34 = new QuestRoot(); num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - CollectionsMarshal.AsSpan(list239)[0] = "Fifi"; - questRoot35.Author = list239; - num = 5; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - Span span56 = CollectionsMarshal.AsSpan(list240); - ref QuestSequence reference187 = ref span56[0]; + Span span244 = CollectionsMarshal.AsSpan(list239); + index = 0; + span244[index] = "Fifi"; + questRoot34.Author = list239; + index = 5; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + Span span245 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference187 = ref span245[num]; QuestSequence obj182 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + Span span246 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -218955,7 +264756,8 @@ public static class AssemblyQuestLoader }; obj182.Steps = list241; reference187 = obj182; - ref QuestSequence reference188 = ref span56[1]; + num++; + ref QuestSequence reference188 = ref span245[num]; QuestSequence obj183 = new QuestSequence { Sequence = 1 @@ -218963,33 +264765,40 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) + Span span247 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.Interact, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj183.Steps = list242; reference188 = obj183; - ref QuestSequence reference189 = ref span56[2]; + num++; + ref QuestSequence reference189 = ref span245[num]; QuestSequence obj184 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030146u, new Vector3(-190.1427f, 12.748831f, 591.6686f), 817) + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + Span span248 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030146u, new Vector3(-190.1427f, 12.748831f, 591.6686f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj184.Steps = list243; reference189 = obj184; - span56[3] = new QuestSequence + num++; + span245[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference190 = ref span56[4]; + num++; + ref QuestSequence reference190 = ref span245[num]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -218997,7 +264806,9 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) + Span span249 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright, @@ -219005,28 +264816,33 @@ public static class AssemblyQuestLoader }; obj185.Steps = list244; reference190 = obj185; - questRoot35.QuestSequence = list240; - AddQuest(questId27, questRoot35); + questRoot34.QuestSequence = list240; + AddQuest(questId27, questRoot34); QuestId questId28 = new QuestId(3277); - QuestRoot questRoot36 = new QuestRoot(); + QuestRoot questRoot35 = new QuestRoot(); num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "Fifi"; - questRoot36.Author = list245; - num = 5; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span57 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference191 = ref span57[0]; + Span span250 = CollectionsMarshal.AsSpan(list245); + index = 0; + span250[index] = "Fifi"; + questRoot35.Author = list245; + index = 5; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + Span span251 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference191 = ref span251[num]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030145u, new Vector3(93.461426f, 37.43559f, 611.50525f), 814) + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + Span span252 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030145u, new Vector3(93.461426f, 37.43559f, 611.50525f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright, @@ -219040,7 +264856,8 @@ public static class AssemblyQuestLoader }; obj186.Steps = list247; reference191 = obj186; - ref QuestSequence reference192 = ref span57[1]; + num++; + ref QuestSequence reference192 = ref span251[num]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -219048,7 +264865,9 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 2010405u, new Vector3(-33.707214f, 3.982544f, 205.70679f), 819) + Span span253 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.Interact, 2010405u, new Vector3(-33.707214f, 3.982544f, 205.70679f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -219059,21 +264878,26 @@ public static class AssemblyQuestLoader }; obj187.Steps = list248; reference192 = obj187; - ref QuestSequence reference193 = ref span57[2]; + num++; + ref QuestSequence reference193 = ref span251[num]; QuestSequence obj188 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - Span span58 = CollectionsMarshal.AsSpan(list249); - span58[0] = new QuestStep(EInteractionType.Interact, 1027323u, new Vector3(-42.893127f, 3.9998171f, 242.08435f), 819); - span58[1] = new QuestStep(EInteractionType.Interact, 1027238u, new Vector3(-15.487976f, 3.9998171f, 215.3811f), 819); - span58[2] = new QuestStep(EInteractionType.Interact, 1030147u, new Vector3(0.59503174f, 3.9998174f, 209.27734f), 819); + index2 = 3; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + Span span254 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.Interact, 1027323u, new Vector3(-42.893127f, 3.9998171f, 242.08435f), 819); + num2++; + span254[num2] = new QuestStep(EInteractionType.Interact, 1027238u, new Vector3(-15.487976f, 3.9998171f, 215.3811f), 819); + num2++; + span254[num2] = new QuestStep(EInteractionType.Interact, 1030147u, new Vector3(0.59503174f, 3.9998174f, 209.27734f), 819); obj188.Steps = list249; reference193 = obj188; - ref QuestSequence reference194 = ref span57[3]; + num++; + ref QuestSequence reference194 = ref span251[num]; QuestSequence obj189 = new QuestSequence { Sequence = 3 @@ -219081,22 +264905,27 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1030148u, new Vector3(-246.57056f, 10.152376f, 678.21765f), 817) + Span span255 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span255[index2] = new QuestStep(EInteractionType.Interact, 1030148u, new Vector3(-246.57056f, 10.152376f, 678.21765f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj189.Steps = list250; reference194 = obj189; - ref QuestSequence reference195 = ref span57[4]; + num++; + ref QuestSequence reference195 = ref span251[num]; QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030145u, new Vector3(93.461426f, 37.43559f, 611.50525f), 814) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + Span span256 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030145u, new Vector3(93.461426f, 37.43559f, 611.50525f), 814) { StopDistance = 1f, Fly = true, @@ -219105,20 +264934,23 @@ public static class AssemblyQuestLoader }; obj190.Steps = list251; reference195 = obj190; - questRoot36.QuestSequence = list246; - AddQuest(questId28, questRoot36); + questRoot35.QuestSequence = list246; + AddQuest(questId28, questRoot35); QuestId questId29 = new QuestId(3278); - QuestRoot questRoot37 = new QuestRoot(); + QuestRoot questRoot36 = new QuestRoot(); num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - CollectionsMarshal.AsSpan(list252)[0] = "Fifi"; - questRoot37.Author = list252; - num = 7; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - Span span59 = CollectionsMarshal.AsSpan(list253); - ref QuestSequence reference196 = ref span59[0]; + Span span257 = CollectionsMarshal.AsSpan(list252); + index = 0; + span257[index] = "Fifi"; + questRoot36.Author = list252; + index = 7; + List list253 = new List(index); + CollectionsMarshal.SetCount(list253, index); + Span span258 = CollectionsMarshal.AsSpan(list253); + num = 0; + ref QuestSequence reference196 = ref span258[num]; QuestSequence obj191 = new QuestSequence { Sequence = 0 @@ -219126,7 +264958,9 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) + Span span259 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span259[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright, @@ -219140,15 +264974,18 @@ public static class AssemblyQuestLoader }; obj191.Steps = list254; reference196 = obj191; - ref QuestSequence reference197 = ref span59[1]; + num++; + ref QuestSequence reference197 = ref span258[num]; QuestSequence obj192 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1027253u, new Vector3(17.502075f, 19.999794f, -190.41736f), 819) + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span260 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span260[num2] = new QuestStep(EInteractionType.Interact, 1027253u, new Vector3(17.502075f, 19.999794f, -190.41736f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -219159,7 +264996,8 @@ public static class AssemblyQuestLoader }; obj192.Steps = list255; reference197 = obj192; - ref QuestSequence reference198 = ref span59[2]; + num++; + ref QuestSequence reference198 = ref span258[num]; QuestSequence obj193 = new QuestSequence { Sequence = 2 @@ -219167,7 +265005,9 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 2010406u, new Vector3(-17.013855f, 4.470825f, 234.97363f), 819) + Span span261 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span261[index2] = new QuestStep(EInteractionType.Interact, 2010406u, new Vector3(-17.013855f, 4.470825f, 234.97363f), 819) { AethernetShortcut = new AethernetShortcut { @@ -219177,26 +265017,31 @@ public static class AssemblyQuestLoader }; obj193.Steps = list256; reference198 = obj193; - ref QuestSequence reference199 = ref span59[3]; + num++; + ref QuestSequence reference199 = ref span258[num]; QuestSequence obj194 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030990u, new Vector3(-246.57056f, 10.152376f, 678.21765f), 817) + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span262 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030990u, new Vector3(-246.57056f, 10.152376f, 678.21765f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj194.Steps = list257; reference199 = obj194; - span59[4] = new QuestSequence + num++; + span258[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference200 = ref span59[5]; + num++; + ref QuestSequence reference200 = ref span258[num]; QuestSequence obj195 = new QuestSequence { Sequence = 5 @@ -219204,22 +265049,27 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1030145u, new Vector3(93.461426f, 37.43559f, 611.50525f), 814) + Span span263 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span263[index2] = new QuestStep(EInteractionType.Interact, 1030145u, new Vector3(93.461426f, 37.43559f, 611.50525f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj195.Steps = list258; reference200 = obj195; - ref QuestSequence reference201 = ref span59[6]; + num++; + ref QuestSequence reference201 = ref span258[num]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + Span span264 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -219230,20 +265080,23 @@ public static class AssemblyQuestLoader }; obj196.Steps = list259; reference201 = obj196; - questRoot37.QuestSequence = list253; - AddQuest(questId29, questRoot37); + questRoot36.QuestSequence = list253; + AddQuest(questId29, questRoot36); QuestId questId30 = new QuestId(3279); - QuestRoot questRoot38 = new QuestRoot(); + QuestRoot questRoot37 = new QuestRoot(); num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - CollectionsMarshal.AsSpan(list260)[0] = "liza"; - questRoot38.Author = list260; - num = 6; - List list261 = new List(num); - CollectionsMarshal.SetCount(list261, num); - Span span60 = CollectionsMarshal.AsSpan(list261); - ref QuestSequence reference202 = ref span60[0]; + Span span265 = CollectionsMarshal.AsSpan(list260); + index = 0; + span265[index] = "liza"; + questRoot37.Author = list260; + index = 6; + List list261 = new List(index); + CollectionsMarshal.SetCount(list261, index); + Span span266 = CollectionsMarshal.AsSpan(list261); + num = 0; + ref QuestSequence reference202 = ref span266[num]; QuestSequence obj197 = new QuestSequence { Sequence = 0 @@ -219251,30 +265104,36 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026990u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) + Span span267 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span267[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026990u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) { StopDistance = 7f }; obj197.Steps = list262; reference202 = obj197; - ref QuestSequence reference203 = ref span60[1]; + num++; + ref QuestSequence reference203 = ref span266[num]; QuestSequence obj198 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - Span span61 = CollectionsMarshal.AsSpan(list263); - span61[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + index2 = 3; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + Span span268 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span268[num2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + num2++; + span268[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - ref QuestStep reference204 = ref span61[2]; + num2++; + ref QuestStep reference204 = ref span268[num2]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1029791u, new Vector3(351.49158f, -26.424099f, -370.8095f), 156) { Fly = true @@ -219282,7 +265141,9 @@ public static class AssemblyQuestLoader num3 = 1; List list264 = new List(num3); CollectionsMarshal.SetCount(list264, num3); - CollectionsMarshal.AsSpan(list264)[0] = new DialogueChoice + Span span269 = CollectionsMarshal.AsSpan(list264); + index3 = 0; + span269[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA101_03279_Q2_000_021") @@ -219291,7 +265152,8 @@ public static class AssemblyQuestLoader reference204 = obj199; obj198.Steps = list263; reference203 = obj198; - ref QuestSequence reference205 = ref span60[2]; + num++; + ref QuestSequence reference205 = ref span266[num]; QuestSequence obj200 = new QuestSequence { Sequence = 2 @@ -219299,28 +265161,35 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1029792u, new Vector3(-47.074158f, 1.7201422f, 45.97534f), 842); + Span span270 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span270[index2] = new QuestStep(EInteractionType.Interact, 1029792u, new Vector3(-47.074158f, 1.7201422f, 45.97534f), 842); obj200.Steps = list265; reference205 = obj200; - span60[3] = new QuestSequence + num++; + span266[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference206 = ref span60[4]; + num++; + ref QuestSequence reference206 = ref span266[num]; QuestSequence obj201 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(549.9286f, 8.932568f, 335.04544f), 877) + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + Span span271 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(549.9286f, 8.932568f, 335.04544f), 877) { RestartNavigationIfCancelled = false }; obj201.Steps = list266; reference206 = obj201; - ref QuestSequence reference207 = ref span60[5]; + num++; + ref QuestSequence reference207 = ref span266[num]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue @@ -219328,41 +265197,49 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028924u, new Vector3(-176.5622f, 0f, 1.6326294f), 819) + Span span272 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028924u, new Vector3(-176.5622f, 0f, 1.6326294f), 819) { StopDistance = 5f, DisableNavmesh = true }; obj202.Steps = list267; reference207 = obj202; - questRoot38.QuestSequence = list261; - AddQuest(questId30, questRoot38); + questRoot37.QuestSequence = list261; + AddQuest(questId30, questRoot37); QuestId questId31 = new QuestId(3280); - QuestRoot questRoot39 = new QuestRoot(); + QuestRoot questRoot38 = new QuestRoot(); num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - CollectionsMarshal.AsSpan(list268)[0] = "liza"; - questRoot39.Author = list268; - num = 4; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - Span span62 = CollectionsMarshal.AsSpan(list269); - ref QuestSequence reference208 = ref span62[0]; + Span span273 = CollectionsMarshal.AsSpan(list268); + index = 0; + span273[index] = "liza"; + questRoot38.Author = list268; + index = 4; + List list269 = new List(index); + CollectionsMarshal.SetCount(list269, index); + Span span274 = CollectionsMarshal.AsSpan(list269); + num = 0; + ref QuestSequence reference208 = ref span274[num]; QuestSequence obj203 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028924u, new Vector3(-176.5622f, 0f, 1.6326294f), 819) + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + Span span275 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028924u, new Vector3(-176.5622f, 0f, 1.6326294f), 819) { StopDistance = 5f }; obj203.Steps = list270; reference208 = obj203; - ref QuestSequence reference209 = ref span62[1]; + num++; + ref QuestSequence reference209 = ref span274[num]; QuestSequence obj204 = new QuestSequence { Sequence = 1 @@ -219370,7 +265247,9 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 819) + Span span276 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span276[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 819) { Aetheryte = EAetheryteLocation.Crystarium, SkipConditions = new SkipConditions @@ -219383,38 +265262,49 @@ public static class AssemblyQuestLoader }; obj204.Steps = list271; reference209 = obj204; - ref QuestSequence reference210 = ref span62[2]; + num++; + ref QuestSequence reference210 = ref span274[num]; QuestSequence obj205 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - Span span63 = CollectionsMarshal.AsSpan(list272); - span63[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + index2 = 6; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + Span span277 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span277[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumCrystallineMean }; - ref QuestStep reference211 = ref span63[1]; + num2++; + ref QuestStep reference211 = ref span277[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819); - num3 = 6; - List list273 = new List(num3); - CollectionsMarshal.SetCount(list273, num3); - Span span64 = CollectionsMarshal.AsSpan(list273); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list273 = new List(index3); + CollectionsMarshal.SetCount(list273, index3); + Span span278 = CollectionsMarshal.AsSpan(list273); + num3 = 0; + span278[num3] = null; + num3++; + span278[num3] = null; + num3++; + span278[num3] = null; + num3++; + span278[num3] = null; + num3++; + span278[num3] = null; + num3++; + span278[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list273; reference211 = questStep7; - span63[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span277[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumAmaroLaunch }; - span63[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + num2++; + span277[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumCabinetOfCuriosity, AethernetShortcut = new AethernetShortcut @@ -219423,8 +265313,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Crystarium } }; - span63[4] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819); - span63[5] = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819) + num2++; + span277[num2] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819); + num2++; + span277[num2] = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819) { AethernetShortcut = new AethernetShortcut { @@ -219434,7 +265326,8 @@ public static class AssemblyQuestLoader }; obj205.Steps = list272; reference210 = obj205; - ref QuestSequence reference212 = ref span62[3]; + num++; + ref QuestSequence reference212 = ref span274[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue @@ -219442,12 +265335,14 @@ public static class AssemblyQuestLoader num2 = 3; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span65 = CollectionsMarshal.AsSpan(list274); - span65[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + Span span279 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span279[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumMarkets }; - span65[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + index2++; + span279[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumDossalGate, AethernetShortcut = new AethernetShortcut @@ -219456,38 +265351,46 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Crystarium } }; - span65[2] = new QuestStep(EInteractionType.CompleteQuest, 1028925u, new Vector3(60.105225f, -3.047831E-07f, 1.6021729f), 819); + index2++; + span279[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028925u, new Vector3(60.105225f, -3.047831E-07f, 1.6021729f), 819); obj206.Steps = list274; reference212 = obj206; - questRoot39.QuestSequence = list269; - AddQuest(questId31, questRoot39); + questRoot38.QuestSequence = list269; + AddQuest(questId31, questRoot38); QuestId questId32 = new QuestId(3281); questRoot2 = new QuestRoot(); - QuestRoot questRoot40 = questRoot2; + QuestRoot questRoot39 = questRoot2; num = 1; List list275 = new List(num); CollectionsMarshal.SetCount(list275, num); - CollectionsMarshal.AsSpan(list275)[0] = "liza"; - questRoot40.Author = list275; - QuestRoot questRoot41 = questRoot2; - num = 7; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span66 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference213 = ref span66[0]; + Span span280 = CollectionsMarshal.AsSpan(list275); + index = 0; + span280[index] = "liza"; + questRoot39.Author = list275; + QuestRoot questRoot40 = questRoot2; + index = 7; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span281 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference213 = ref span281[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list276)[0]; + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + Span span282 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + ref QuestStep reference214 = ref span282[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.AcceptQuest, 1028925u, new Vector3(60.105225f, -3.047831E-07f, 1.6021729f), 819); num3 = 1; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = new DialogueChoice + Span span283 = CollectionsMarshal.AsSpan(list277); + index3 = 0; + span283[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA103_03281_Q1_000_002"), @@ -219497,7 +265400,8 @@ public static class AssemblyQuestLoader reference214 = questStep8; obj207.Steps = list276; reference213 = obj207; - ref QuestSequence reference215 = ref span66[1]; + num++; + ref QuestSequence reference215 = ref span281[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 @@ -219505,12 +265409,16 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - ref QuestStep reference216 = ref CollectionsMarshal.AsSpan(list278)[0]; + Span span284 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + ref QuestStep reference216 = ref span284[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819); - num3 = 1; - List list279 = new List(num3); - CollectionsMarshal.SetCount(list279, num3); - CollectionsMarshal.AsSpan(list279)[0] = new DialogueChoice + index3 = 1; + List list279 = new List(index3); + CollectionsMarshal.SetCount(list279, index3); + Span span285 = CollectionsMarshal.AsSpan(list279); + num3 = 0; + span285[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA103_03281_Q2_000_011") @@ -219519,18 +265427,22 @@ public static class AssemblyQuestLoader reference216 = questStep9; obj208.Steps = list278; reference215 = obj208; - ref QuestSequence reference217 = ref span66[2]; + num++; + ref QuestSequence reference217 = ref span281[num]; QuestSequence obj209 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1028925u, new Vector3(60.105225f, -3.047831E-07f, 1.6021729f), 819); + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span286 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span286[num2] = new QuestStep(EInteractionType.Interact, 1028925u, new Vector3(60.105225f, -3.047831E-07f, 1.6021729f), 819); obj209.Steps = list280; reference217 = obj209; - ref QuestSequence reference218 = ref span66[3]; + num++; + ref QuestSequence reference218 = ref span281[num]; QuestSequence obj210 = new QuestSequence { Sequence = 3 @@ -219538,7 +265450,9 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1028926u, new Vector3(-4.1047363f, -7.700001f, 138.47559f), 819) + Span span287 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span287[index2] = new QuestStep(EInteractionType.Interact, 1028926u, new Vector3(-4.1047363f, -7.700001f, 138.47559f), 819) { AethernetShortcut = new AethernetShortcut { @@ -219548,24 +265462,29 @@ public static class AssemblyQuestLoader }; obj210.Steps = list281; reference218 = obj210; - ref QuestSequence reference219 = ref span66[4]; + num++; + ref QuestSequence reference219 = ref span281[num]; QuestSequence obj211 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - Span span67 = CollectionsMarshal.AsSpan(list282); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(16.119648f, -4.2178187f, 176.1683f), 819); - span67[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + index2 = 3; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + Span span288 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span288[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(16.119648f, -4.2178187f, 176.1683f), 819); + num2++; + span288[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumPendants }; - span67[2] = new QuestStep(EInteractionType.Interact, 1028927u, new Vector3(62.546753f, 1.716012f, 249.13391f), 819); + num2++; + span288[num2] = new QuestStep(EInteractionType.Interact, 1028927u, new Vector3(62.546753f, 1.716012f, 249.13391f), 819); obj211.Steps = list282; reference219 = obj211; - ref QuestSequence reference220 = ref span66[5]; + num++; + ref QuestSequence reference220 = ref span281[num]; QuestSequence obj212 = new QuestSequence { Sequence = 5 @@ -219573,7 +265492,9 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - ref QuestStep reference221 = ref CollectionsMarshal.AsSpan(list283)[0]; + Span span289 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + ref QuestStep reference221 = ref span289[index2]; QuestStep obj213 = new QuestStep(EInteractionType.Interact, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 7f @@ -219581,7 +265502,9 @@ public static class AssemblyQuestLoader num3 = 1; List list284 = new List(num3); CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = new DialogueChoice + Span span290 = CollectionsMarshal.AsSpan(list284); + index3 = 0; + span290[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA103_03281_Q3_000_062") @@ -219590,16 +265513,18 @@ public static class AssemblyQuestLoader reference221 = obj213; obj212.Steps = list283; reference220 = obj212; - ref QuestSequence reference222 = ref span66[6]; + num++; + ref QuestSequence reference222 = ref span281[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - Span span68 = CollectionsMarshal.AsSpan(list285); - ref QuestStep reference223 = ref span68[0]; + index2 = 2; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span291 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + ref QuestStep reference223 = ref span291[num2]; QuestStep obj215 = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { AethernetShortcut = new AethernetShortcut @@ -219608,33 +265533,39 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - num3 = 1; - List list286 = new List(num3); - CollectionsMarshal.SetCount(list286, num3); - CollectionsMarshal.AsSpan(list286)[0] = new DialogueChoice + index3 = 1; + List list286 = new List(index3); + CollectionsMarshal.SetCount(list286, index3); + Span span292 = CollectionsMarshal.AsSpan(list286); + num3 = 0; + span292[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA103_03281_Q4_000_071") }; obj215.DialogueChoices = list286; reference223 = obj215; - span68[1] = new QuestStep(EInteractionType.CompleteQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); + num2++; + span291[num2] = new QuestStep(EInteractionType.CompleteQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); obj214.Steps = list285; reference222 = obj214; - questRoot41.QuestSequence = list8; + questRoot40.QuestSequence = list8; AddQuest(questId32, questRoot2); QuestId questId33 = new QuestId(3282); - QuestRoot questRoot42 = new QuestRoot(); + QuestRoot questRoot41 = new QuestRoot(); num = 1; List list287 = new List(num); CollectionsMarshal.SetCount(list287, num); - CollectionsMarshal.AsSpan(list287)[0] = "liza"; - questRoot42.Author = list287; - num = 4; - List list288 = new List(num); - CollectionsMarshal.SetCount(list288, num); - Span span69 = CollectionsMarshal.AsSpan(list288); - ref QuestSequence reference224 = ref span69[0]; + Span span293 = CollectionsMarshal.AsSpan(list287); + index = 0; + span293[index] = "liza"; + questRoot41.Author = list287; + index = 4; + List list288 = new List(index); + CollectionsMarshal.SetCount(list288, index); + Span span294 = CollectionsMarshal.AsSpan(list288); + num = 0; + ref QuestSequence reference224 = ref span294[num]; QuestSequence obj216 = new QuestSequence { Sequence = 0 @@ -219642,29 +265573,36 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); + Span span295 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span295[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); obj216.Steps = list289; reference224 = obj216; - ref QuestSequence reference225 = ref span69[1]; + num++; + ref QuestSequence reference225 = ref span294[num]; QuestSequence obj217 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - Span span70 = CollectionsMarshal.AsSpan(list290); - span70[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + index2 = 2; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + Span span296 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span296[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumTemenosRookery, AetheryteShortcut = EAetheryteLocation.Crystarium }; - ref QuestStep reference226 = ref span70[1]; + num2++; + ref QuestStep reference226 = ref span296[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1027246u, new Vector3(-136.98022f, 0f, -73.777466f), 819); num3 = 1; List list291 = new List(num3); CollectionsMarshal.SetCount(list291, num3); - CollectionsMarshal.AsSpan(list291)[0] = new DialogueChoice + Span span297 = CollectionsMarshal.AsSpan(list291); + index3 = 0; + span297[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA201_03282_Q1_000_013"), @@ -219674,7 +265612,8 @@ public static class AssemblyQuestLoader reference226 = questStep10; obj217.Steps = list290; reference225 = obj217; - ref QuestSequence reference227 = ref span69[2]; + num++; + ref QuestSequence reference227 = ref span294[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 @@ -219682,7 +265621,9 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 1029806u, new Vector3(62.394165f, 36.247692f, -169.39038f), 819) + Span span298 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span298[index2] = new QuestStep(EInteractionType.Interact, 1029806u, new Vector3(62.394165f, 36.247692f, -169.39038f), 819) { AethernetShortcut = new AethernetShortcut { @@ -219692,36 +265633,42 @@ public static class AssemblyQuestLoader }; obj218.Steps = list292; reference227 = obj218; - ref QuestSequence reference228 = ref span69[3]; + num++; + ref QuestSequence reference228 = ref span294[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029807u, new Vector3(802.2124f, 1.2725923f, 253.00977f), 814) + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + Span span299 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span299[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029807u, new Vector3(802.2124f, 1.2725923f, 253.00977f), 814) { DisableNavmesh = true }; obj219.Steps = list293; reference228 = obj219; - questRoot42.QuestSequence = list288; - AddQuest(questId33, questRoot42); + questRoot41.QuestSequence = list288; + AddQuest(questId33, questRoot41); QuestId questId34 = new QuestId(3283); questRoot2 = new QuestRoot(); - QuestRoot questRoot43 = questRoot2; + QuestRoot questRoot42 = questRoot2; num = 1; List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - CollectionsMarshal.AsSpan(list294)[0] = "liza"; - questRoot43.Author = list294; - QuestRoot questRoot44 = questRoot2; - num = 8; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span71 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference229 = ref span71[0]; + Span span300 = CollectionsMarshal.AsSpan(list294); + index = 0; + span300[index] = "liza"; + questRoot42.Author = list294; + QuestRoot questRoot43 = questRoot2; + index = 8; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span301 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference229 = ref span301[num]; QuestSequence obj220 = new QuestSequence { Sequence = 0 @@ -219729,30 +265676,37 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029807u, new Vector3(802.2124f, 1.2725923f, 253.00977f), 814) + Span span302 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span302[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029807u, new Vector3(802.2124f, 1.2725923f, 253.00977f), 814) { DisableNavmesh = true }; obj220.Steps = list295; reference229 = obj220; - ref QuestSequence reference230 = ref span71[1]; + num++; + ref QuestSequence reference230 = ref span301[num]; QuestSequence obj221 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - Span span72 = CollectionsMarshal.AsSpan(list296); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(639.3296f, 0.52189386f, 533.5061f), 814); - span72[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010034u, new Vector3(650.5377f, 0.3508911f, 556.38965f), 814) + index2 = 3; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span303 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span303[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(639.3296f, 0.52189386f, 533.5061f), 814); + num2++; + span303[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010034u, new Vector3(650.5377f, 0.3508911f, 556.38965f), 814) { AetherCurrentId = 2818238u }; - span72[2] = new QuestStep(EInteractionType.Interact, 1027286u, new Vector3(626.1234f, 3.237296f, 471.97668f), 814); + num2++; + span303[num2] = new QuestStep(EInteractionType.Interact, 1027286u, new Vector3(626.1234f, 3.237296f, 471.97668f), 814); obj221.Steps = list296; reference230 = obj221; - ref QuestSequence reference231 = ref span71[2]; + num++; + ref QuestSequence reference231 = ref span301[num]; QuestSequence obj222 = new QuestSequence { Sequence = 2 @@ -219760,18 +265714,23 @@ public static class AssemblyQuestLoader num2 = 3; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span73 = CollectionsMarshal.AsSpan(list297); - span73[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) + Span span304 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span304[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) { Aetheryte = EAetheryteLocation.KholusiaStilltide }; - span73[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(683.3415f, 30.116053f, 276.70578f), 814); - ref QuestStep reference232 = ref span73[2]; + index2++; + span304[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(683.3415f, 30.116053f, 276.70578f), 814); + index2++; + ref QuestStep reference232 = ref span304[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2009956u, new Vector3(687.9225f, 30.07544f, 279.40784f), 814); - num3 = 1; - List list298 = new List(num3); - CollectionsMarshal.SetCount(list298, num3); - CollectionsMarshal.AsSpan(list298)[0] = new DialogueChoice + index3 = 1; + List list298 = new List(index3); + CollectionsMarshal.SetCount(list298, index3); + Span span305 = CollectionsMarshal.AsSpan(list298); + num3 = 0; + span305[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA202_03283_Q1_000_031"), @@ -219781,16 +265740,18 @@ public static class AssemblyQuestLoader reference232 = questStep11; obj222.Steps = list297; reference231 = obj222; - ref QuestSequence reference233 = ref span71[3]; + num++; + ref QuestSequence reference233 = ref span301[num]; QuestSequence obj223 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - Span span74 = CollectionsMarshal.AsSpan(list299); - ref QuestStep reference234 = ref span74[0]; + index2 = 2; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + Span span306 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + ref QuestStep reference234 = ref span306[num2]; QuestStep obj224 = new QuestStep(EInteractionType.Combat, 2009957u, new Vector3(663.17236f, 53.635498f, 60.28833f), 814) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -219798,21 +265759,30 @@ public static class AssemblyQuestLoader num3 = 1; List list300 = new List(num3); CollectionsMarshal.SetCount(list300, num3); - CollectionsMarshal.AsSpan(list300)[0] = 10857u; + Span span307 = CollectionsMarshal.AsSpan(list300); + index3 = 0; + span307[index3] = 10857u; obj224.KillEnemyDataIds = list300; - num3 = 6; - List list301 = new List(num3); - CollectionsMarshal.SetCount(list301, num3); - Span span75 = CollectionsMarshal.AsSpan(list301); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list301 = new List(index3); + CollectionsMarshal.SetCount(list301, index3); + Span span308 = CollectionsMarshal.AsSpan(list301); + num3 = 0; + span308[num3] = null; + num3++; + span308[num3] = null; + num3++; + span308[num3] = null; + num3++; + span308[num3] = null; + num3++; + span308[num3] = null; + num3++; + span308[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj224.CompletionQuestVariablesFlags = list301; reference234 = obj224; - ref QuestStep reference235 = ref span74[1]; + num2++; + ref QuestStep reference235 = ref span306[num2]; QuestStep obj225 = new QuestStep(EInteractionType.Combat, 2009958u, new Vector3(694.026f, 53.757446f, 12.924377f), 814) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -219820,23 +265790,32 @@ public static class AssemblyQuestLoader num3 = 1; List list302 = new List(num3); CollectionsMarshal.SetCount(list302, num3); - CollectionsMarshal.AsSpan(list302)[0] = 10858u; + Span span309 = CollectionsMarshal.AsSpan(list302); + index3 = 0; + span309[index3] = 10858u; obj225.KillEnemyDataIds = list302; - num3 = 6; - List list303 = new List(num3); - CollectionsMarshal.SetCount(list303, num3); - Span span76 = CollectionsMarshal.AsSpan(list303); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list303 = new List(index3); + CollectionsMarshal.SetCount(list303, index3); + Span span310 = CollectionsMarshal.AsSpan(list303); + num3 = 0; + span310[num3] = null; + num3++; + span310[num3] = null; + num3++; + span310[num3] = null; + num3++; + span310[num3] = null; + num3++; + span310[num3] = null; + num3++; + span310[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj225.CompletionQuestVariablesFlags = list303; reference235 = obj225; obj223.Steps = list299; reference233 = obj223; - ref QuestSequence reference236 = ref span71[4]; + num++; + ref QuestSequence reference236 = ref span301[num]; QuestSequence obj226 = new QuestSequence { Sequence = 4 @@ -219844,21 +265823,27 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.Interact, 2009959u, new Vector3(703.5171f, 53.757446f, 52.140015f), 814); + Span span311 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span311[index2] = new QuestStep(EInteractionType.Interact, 2009959u, new Vector3(703.5171f, 53.757446f, 52.140015f), 814); obj226.Steps = list304; reference236 = obj226; - ref QuestSequence reference237 = ref span71[5]; + num++; + ref QuestSequence reference237 = ref span301[num]; QuestSequence obj227 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.Interact, 2009959u, new Vector3(703.5171f, 53.757446f, 52.140015f), 814); + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + Span span312 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span312[num2] = new QuestStep(EInteractionType.Interact, 2009959u, new Vector3(703.5171f, 53.757446f, 52.140015f), 814); obj227.Steps = list305; reference237 = obj227; - ref QuestSequence reference238 = ref span71[6]; + num++; + ref QuestSequence reference238 = ref span301[num]; QuestSequence obj228 = new QuestSequence { Sequence = 6 @@ -219866,36 +265851,44 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.Interact, 2009959u, new Vector3(703.5171f, 53.757446f, 52.140015f), 814); + Span span313 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span313[index2] = new QuestStep(EInteractionType.Interact, 2009959u, new Vector3(703.5171f, 53.757446f, 52.140015f), 814); obj228.Steps = list306; reference238 = obj228; - ref QuestSequence reference239 = ref span71[7]; + num++; + ref QuestSequence reference239 = ref span301[num]; QuestSequence obj229 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027313u, new Vector3(691.0658f, 30.11709f, 279.62158f), 814); + index2 = 1; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + Span span314 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span314[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027313u, new Vector3(691.0658f, 30.11709f, 279.62158f), 814); obj229.Steps = list307; reference239 = obj229; - questRoot44.QuestSequence = list8; + questRoot43.QuestSequence = list8; AddQuest(questId34, questRoot2); QuestId questId35 = new QuestId(3284); questRoot2 = new QuestRoot(); - QuestRoot questRoot45 = questRoot2; + QuestRoot questRoot44 = questRoot2; num = 1; List list308 = new List(num); CollectionsMarshal.SetCount(list308, num); - CollectionsMarshal.AsSpan(list308)[0] = "liza"; - questRoot45.Author = list308; - QuestRoot questRoot46 = questRoot2; - num = 9; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span77 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference240 = ref span77[0]; + Span span315 = CollectionsMarshal.AsSpan(list308); + index = 0; + span315[index] = "liza"; + questRoot44.Author = list308; + QuestRoot questRoot45 = questRoot2; + index = 9; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span316 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference240 = ref span316[num]; QuestSequence obj230 = new QuestSequence { Sequence = 0 @@ -219903,24 +265896,30 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029809u, new Vector3(687.1289f, 30.118057f, 282.73438f), 814) + Span span317 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span317[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029809u, new Vector3(687.1289f, 30.118057f, 282.73438f), 814) { StopDistance = 7f }; obj230.Steps = list309; reference240 = obj230; - ref QuestSequence reference241 = ref span77[1]; + num++; + ref QuestSequence reference241 = ref span316[num]; QuestSequence obj231 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1029810u, new Vector3(377.24878f, 6.8162985f, 306.56897f), 814); + index2 = 1; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + Span span318 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + span318[num2] = new QuestStep(EInteractionType.Interact, 1029810u, new Vector3(377.24878f, 6.8162985f, 306.56897f), 814); obj231.Steps = list310; reference241 = obj231; - ref QuestSequence reference242 = ref span77[2]; + num++; + ref QuestSequence reference242 = ref span316[num]; QuestSequence obj232 = new QuestSequence { Sequence = 2 @@ -219928,21 +265927,26 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(338.49463f, 31.93622f, 203.53125f), 814) + Span span319 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + span319[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(338.49463f, 31.93622f, 203.53125f), 814) { StopDistance = 1f }; obj232.Steps = list311; reference242 = obj232; - ref QuestSequence reference243 = ref span77[3]; + num++; + ref QuestSequence reference243 = ref span316[num]; QuestSequence obj233 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - ref QuestStep reference244 = ref CollectionsMarshal.AsSpan(list312)[0]; + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + Span span320 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + ref QuestStep reference244 = ref span320[num2]; QuestStep obj234 = new QuestStep(EInteractionType.Combat, null, new Vector3(338.49463f, 31.93622f, 203.53125f), 814) { StopDistance = 1f, @@ -219951,12 +265955,15 @@ public static class AssemblyQuestLoader num3 = 1; List list313 = new List(num3); CollectionsMarshal.SetCount(list313, num3); - CollectionsMarshal.AsSpan(list313)[0] = 10859u; + Span span321 = CollectionsMarshal.AsSpan(list313); + index3 = 0; + span321[index3] = 10859u; obj234.KillEnemyDataIds = list313; reference244 = obj234; obj233.Steps = list312; reference243 = obj233; - ref QuestSequence reference245 = ref span77[4]; + num++; + ref QuestSequence reference245 = ref span316[num]; QuestSequence obj235 = new QuestSequence { Sequence = 4 @@ -219964,24 +265971,30 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 1029811u, new Vector3(341.75623f, 31.93621f, 202.01416f), 814) + Span span322 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span322[index2] = new QuestStep(EInteractionType.Interact, 1029811u, new Vector3(341.75623f, 31.93621f, 202.01416f), 814) { StopDistance = 7f }; obj235.Steps = list314; reference245 = obj235; - ref QuestSequence reference246 = ref span77[5]; + num++; + ref QuestSequence reference246 = ref span316[num]; QuestSequence obj236 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 2009961u, new Vector3(168.3833f, 40.115967f, 567.1931f), 814); + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + Span span323 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span323[num2] = new QuestStep(EInteractionType.Interact, 2009961u, new Vector3(168.3833f, 40.115967f, 567.1931f), 814); obj236.Steps = list315; reference246 = obj236; - ref QuestSequence reference247 = ref span77[6]; + num++; + ref QuestSequence reference247 = ref span316[num]; QuestSequence obj237 = new QuestSequence { Sequence = 6 @@ -219989,66 +266002,91 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1029814u, new Vector3(165.78918f, 41.141296f, 676.9663f), 814) + Span span324 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span324[index2] = new QuestStep(EInteractionType.Interact, 1029814u, new Vector3(165.78918f, 41.141296f, 676.9663f), 814) { StopDistance = 7f }; obj237.Steps = list316; reference247 = obj237; - ref QuestSequence reference248 = ref span77[7]; + num++; + ref QuestSequence reference248 = ref span316[num]; QuestSequence obj238 = new QuestSequence { Sequence = 7 }; - num2 = 3; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - Span span78 = CollectionsMarshal.AsSpan(list317); - ref QuestStep reference249 = ref span78[0]; + index2 = 3; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + Span span325 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + ref QuestStep reference249 = ref span325[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2009962u, new Vector3(175.73816f, 50.003784f, 771.4807f), 814); - num3 = 6; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - Span span79 = CollectionsMarshal.AsSpan(list318); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list318 = new List(index3); + CollectionsMarshal.SetCount(list318, index3); + Span span326 = CollectionsMarshal.AsSpan(list318); + num3 = 0; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list318; reference249 = questStep12; - ref QuestStep reference250 = ref span78[1]; + num2++; + ref QuestStep reference250 = ref span325[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1029816u, new Vector3(112.65735f, 54.873238f, 833.4934f), 814); num3 = 6; List list319 = new List(num3); CollectionsMarshal.SetCount(list319, num3); - Span span80 = CollectionsMarshal.AsSpan(list319); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span327 = CollectionsMarshal.AsSpan(list319); + index3 = 0; + span327[index3] = null; + index3++; + span327[index3] = null; + index3++; + span327[index3] = null; + index3++; + span327[index3] = null; + index3++; + span327[index3] = null; + index3++; + span327[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list319; reference250 = questStep13; - ref QuestStep reference251 = ref span78[2]; + num2++; + ref QuestStep reference251 = ref span325[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1029815u, new Vector3(184.40515f, 40.039566f, 592.0653f), 814); - num3 = 6; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - Span span81 = CollectionsMarshal.AsSpan(list320); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list320 = new List(index3); + CollectionsMarshal.SetCount(list320, index3); + Span span328 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span328[num3] = null; + num3++; + span328[num3] = null; + num3++; + span328[num3] = null; + num3++; + span328[num3] = null; + num3++; + span328[num3] = null; + num3++; + span328[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list320; reference251 = questStep14; obj238.Steps = list317; reference248 = obj238; - ref QuestSequence reference252 = ref span77[8]; + num++; + ref QuestSequence reference252 = ref span316[num]; QuestSequence obj239 = new QuestSequence { Sequence = byte.MaxValue @@ -220056,34 +266094,42 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029814u, new Vector3(165.78918f, 41.141296f, 676.9663f), 814); + Span span329 = CollectionsMarshal.AsSpan(list321); + index2 = 0; + span329[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029814u, new Vector3(165.78918f, 41.141296f, 676.9663f), 814); obj239.Steps = list321; reference252 = obj239; - questRoot46.QuestSequence = list8; + questRoot45.QuestSequence = list8; AddQuest(questId35, questRoot2); QuestId questId36 = new QuestId(3285); - QuestRoot questRoot47 = new QuestRoot(); + QuestRoot questRoot46 = new QuestRoot(); num = 1; List list322 = new List(num); CollectionsMarshal.SetCount(list322, num); - CollectionsMarshal.AsSpan(list322)[0] = "liza"; - questRoot47.Author = list322; - num = 7; - List list323 = new List(num); - CollectionsMarshal.SetCount(list323, num); - Span span82 = CollectionsMarshal.AsSpan(list323); - ref QuestSequence reference253 = ref span82[0]; + Span span330 = CollectionsMarshal.AsSpan(list322); + index = 0; + span330[index] = "liza"; + questRoot46.Author = list322; + index = 7; + List list323 = new List(index); + CollectionsMarshal.SetCount(list323, index); + Span span331 = CollectionsMarshal.AsSpan(list323); + num = 0; + ref QuestSequence reference253 = ref span331[num]; QuestSequence obj240 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029814u, new Vector3(165.78918f, 41.141296f, 676.9663f), 814); + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + Span span332 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span332[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029814u, new Vector3(165.78918f, 41.141296f, 676.9663f), 814); obj240.Steps = list324; reference253 = obj240; - ref QuestSequence reference254 = ref span82[1]; + num++; + ref QuestSequence reference254 = ref span331[num]; QuestSequence obj241 = new QuestSequence { Sequence = 1 @@ -220091,29 +266137,35 @@ public static class AssemblyQuestLoader num2 = 2; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - Span span83 = CollectionsMarshal.AsSpan(list325); - span83[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) + Span span333 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span333[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) { Aetheryte = EAetheryteLocation.KholusiaWright }; - span83[1] = new QuestStep(EInteractionType.Interact, 1027516u, new Vector3(-266.0716f, 21.746891f, 376.7909f), 814); + index2++; + span333[index2] = new QuestStep(EInteractionType.Interact, 1027516u, new Vector3(-266.0716f, 21.746891f, 376.7909f), 814); obj241.Steps = list325; reference254 = obj241; - ref QuestSequence reference255 = ref span82[2]; + num++; + ref QuestSequence reference255 = ref span331[num]; QuestSequence obj242 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.Snipe, 2009963u, new Vector3(-276.17303f, 17.807251f, 656.9772f), 814) + index2 = 1; + List list326 = new List(index2); + CollectionsMarshal.SetCount(list326, index2); + Span span334 = CollectionsMarshal.AsSpan(list326); + num2 = 0; + span334[num2] = new QuestStep(EInteractionType.Snipe, 2009963u, new Vector3(-276.17303f, 17.807251f, 656.9772f), 814) { Comment = "Click the guy in front of (or near) the light house stairs" }; obj242.Steps = list326; reference255 = obj242; - ref QuestSequence reference256 = ref span82[3]; + num++; + ref QuestSequence reference256 = ref span331[num]; QuestSequence obj243 = new QuestSequence { Sequence = 3 @@ -220121,26 +266173,32 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 1029818u, new Vector3(-322.46893f, 21.33508f, 777.4623f), 814); + Span span335 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span335[index2] = new QuestStep(EInteractionType.Interact, 1029818u, new Vector3(-322.46893f, 21.33508f, 777.4623f), 814); obj243.Steps = list327; reference256 = obj243; - ref QuestSequence reference257 = ref span82[4]; + num++; + ref QuestSequence reference257 = ref span331[num]; QuestSequence obj244 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - Span span84 = CollectionsMarshal.AsSpan(list328); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-617.37683f, 17.524837f, 544.3568f), 814); - span84[1] = new QuestStep(EInteractionType.Interact, 1029819u, new Vector3(-635.6756f, 0.22940278f, 571.313f), 814) + index2 = 2; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + Span span336 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span336[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-617.37683f, 17.524837f, 544.3568f), 814); + num2++; + span336[num2] = new QuestStep(EInteractionType.Interact, 1029819u, new Vector3(-635.6756f, 0.22940278f, 571.313f), 814) { DisableNavmesh = true }; obj244.Steps = list328; reference257 = obj244; - ref QuestSequence reference258 = ref span82[5]; + num++; + ref QuestSequence reference258 = ref span331[num]; QuestSequence obj245 = new QuestSequence { Sequence = 5 @@ -220148,47 +266206,55 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 1029844u, new Vector3(-638.11707f, 0.2956289f, 571.5265f), 814) + Span span337 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + span337[index2] = new QuestStep(EInteractionType.Interact, 1029844u, new Vector3(-638.11707f, 0.2956289f, 571.5265f), 814) { StopDistance = 7f }; obj245.Steps = list329; reference258 = obj245; - ref QuestSequence reference259 = ref span82[6]; + num++; + ref QuestSequence reference259 = ref span331[num]; QuestSequence obj246 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - Span span85 = CollectionsMarshal.AsSpan(list330); - span85[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010038u, new Vector3(-651.1788f, -0.015319824f, 588.4031f), 814) + index2 = 2; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + Span span338 = CollectionsMarshal.AsSpan(list330); + num2 = 0; + span338[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010038u, new Vector3(-651.1788f, -0.015319824f, 588.4031f), 814) { AetherCurrentId = 2818242u }; - span85[1] = new QuestStep(EInteractionType.CompleteQuest, 1029823u, new Vector3(-330.40363f, 19.081778f, 389.27283f), 814) + num2++; + span338[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029823u, new Vector3(-330.40363f, 19.081778f, 389.27283f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj246.Steps = list330; reference259 = obj246; - questRoot47.QuestSequence = list323; - AddQuest(questId36, questRoot47); + questRoot46.QuestSequence = list323; + AddQuest(questId36, questRoot46); QuestId questId37 = new QuestId(3286); questRoot2 = new QuestRoot(); - QuestRoot questRoot48 = questRoot2; + QuestRoot questRoot47 = questRoot2; num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "liza"; - questRoot48.Author = list331; - QuestRoot questRoot49 = questRoot2; - num = 11; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span86 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference260 = ref span86[0]; + Span span339 = CollectionsMarshal.AsSpan(list331); + index = 0; + span339[index] = "liza"; + questRoot47.Author = list331; + QuestRoot questRoot48 = questRoot2; + index = 11; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span340 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference260 = ref span340[num]; QuestSequence obj247 = new QuestSequence { Sequence = 0 @@ -220196,34 +266262,42 @@ public static class AssemblyQuestLoader num2 = 1; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029822u, new Vector3(-328.6031f, 19.317894f, 390.00525f), 814); + Span span341 = CollectionsMarshal.AsSpan(list332); + index2 = 0; + span341[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029822u, new Vector3(-328.6031f, 19.317894f, 390.00525f), 814); obj247.Steps = list332; reference260 = obj247; - ref QuestSequence reference261 = ref span86[1]; + num++; + ref QuestSequence reference261 = ref span340[num]; QuestSequence obj248 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - Span span87 = CollectionsMarshal.AsSpan(list333); - span87[0] = new QuestStep(EInteractionType.AcceptQuest, 1027452u, new Vector3(-310.62793f, 19.405178f, 405.2948f), 814) + index2 = 3; + List list333 = new List(index2); + CollectionsMarshal.SetCount(list333, index2); + Span span342 = CollectionsMarshal.AsSpan(list333); + num2 = 0; + span342[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027452u, new Vector3(-310.62793f, 19.405178f, 405.2948f), 814) { PickUpQuestId = new QuestId(3360) }; - span87[1] = new QuestStep(EInteractionType.AcceptQuest, 1030763u, new Vector3(-306.2334f, 20.956566f, 358.41907f), 814) + num2++; + span342[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030763u, new Vector3(-306.2334f, 20.956566f, 358.41907f), 814) { PickUpQuestId = new QuestId(3371) }; - span87[2] = new QuestStep(EInteractionType.Interact, 2009964u, new Vector3(168.96313f, 41.000854f, 677.3021f), 814); + num2++; + span342[num2] = new QuestStep(EInteractionType.Interact, 2009964u, new Vector3(168.96313f, 41.000854f, 677.3021f), 814); obj248.Steps = list333; reference261 = obj248; - span86[2] = new QuestSequence + num++; + span340[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference262 = ref span86[3]; + num++; + ref QuestSequence reference262 = ref span340[num]; QuestSequence obj249 = new QuestSequence { Sequence = 3 @@ -220231,26 +266305,32 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1029824u, new Vector3(0.6866455f, -5.0951424f, -104.112366f), 820); + Span span343 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span343[index2] = new QuestStep(EInteractionType.Interact, 1029824u, new Vector3(0.6866455f, -5.0951424f, -104.112366f), 820); obj249.Steps = list334; reference262 = obj249; - ref QuestSequence reference263 = ref span86[4]; + num++; + ref QuestSequence reference263 = ref span340[num]; QuestSequence obj250 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - Span span88 = CollectionsMarshal.AsSpan(list335); - span88[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + index2 = 2; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + Span span344 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + span344[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreGloryGate }; - span88[1] = new QuestStep(EInteractionType.Interact, 1027524u, new Vector3(17.410522f, 6f, -0.16790771f), 820); + num2++; + span344[num2] = new QuestStep(EInteractionType.Interact, 1027524u, new Vector3(17.410522f, 6f, -0.16790771f), 820); obj250.Steps = list335; reference263 = obj250; - ref QuestSequence reference264 = ref span86[5]; + num++; + ref QuestSequence reference264 = ref span340[num]; QuestSequence obj251 = new QuestSequence { Sequence = 5 @@ -220258,27 +266338,34 @@ public static class AssemblyQuestLoader num2 = 1; List list336 = new List(num2); CollectionsMarshal.SetCount(list336, num2); - CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Interact, 1027526u, new Vector3(17.410522f, 6f, 16.983276f), 820); + Span span345 = CollectionsMarshal.AsSpan(list336); + index2 = 0; + span345[index2] = new QuestStep(EInteractionType.Interact, 1027526u, new Vector3(17.410522f, 6f, 16.983276f), 820); obj251.Steps = list336; reference264 = obj251; - ref QuestSequence reference265 = ref span86[6]; + num++; + ref QuestSequence reference265 = ref span340[num]; QuestSequence obj252 = new QuestSequence { Sequence = 6 }; - num2 = 3; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - Span span89 = CollectionsMarshal.AsSpan(list337); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(14.658053f, 5.9974756f, 37.953873f), 820); - span89[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.513058f, 6.0829277f, 38.194153f), 820) + index2 = 3; + List list337 = new List(index2); + CollectionsMarshal.SetCount(list337, index2); + Span span346 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + span346[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(14.658053f, 5.9974756f, 37.953873f), 820); + num2++; + span346[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.513058f, 6.0829277f, 38.194153f), 820) { DisableNavmesh = true }; - span89[2] = new QuestStep(EInteractionType.Interact, 2009967u, new Vector3(18.20398f, 7.522644f, 38.223755f), 820); + num2++; + span346[num2] = new QuestStep(EInteractionType.Interact, 2009967u, new Vector3(18.20398f, 7.522644f, 38.223755f), 820); obj252.Steps = list337; reference265 = obj252; - ref QuestSequence reference266 = ref span86[7]; + num++; + ref QuestSequence reference266 = ref span340[num]; QuestSequence obj253 = new QuestSequence { Sequence = 7 @@ -220286,7 +266373,9 @@ public static class AssemblyQuestLoader num2 = 1; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(10.609789f, 6f, 33.17366f), 820) + Span span347 = CollectionsMarshal.AsSpan(list338); + index2 = 0; + span347[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(10.609789f, 6f, 33.17366f), 820) { StopDistance = 0.25f, DelaySecondsAtStart = 3f, @@ -220294,15 +266383,18 @@ public static class AssemblyQuestLoader }; obj253.Steps = list338; reference266 = obj253; - ref QuestSequence reference267 = ref span86[8]; + num++; + ref QuestSequence reference267 = ref span340[num]; QuestSequence obj254 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list339 = new List(num2); - CollectionsMarshal.SetCount(list339, num2); - ref QuestStep reference268 = ref CollectionsMarshal.AsSpan(list339)[0]; + index2 = 1; + List list339 = new List(index2); + CollectionsMarshal.SetCount(list339, index2); + Span span348 = CollectionsMarshal.AsSpan(list339); + num2 = 0; + ref QuestStep reference268 = ref span348[num2]; QuestStep obj255 = new QuestStep(EInteractionType.Interact, 1029827u, new Vector3(4.1046753f, 5.9999995f, 29.770264f), 820) { StopDistance = 1f @@ -220310,7 +266402,9 @@ public static class AssemblyQuestLoader num3 = 1; List list340 = new List(num3); CollectionsMarshal.SetCount(list340, num3); - CollectionsMarshal.AsSpan(list340)[0] = new DialogueChoice + Span span349 = CollectionsMarshal.AsSpan(list340); + index3 = 0; + span349[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA205_03286_Q1_000_152"), @@ -220320,7 +266414,8 @@ public static class AssemblyQuestLoader reference268 = obj255; obj254.Steps = list339; reference267 = obj254; - ref QuestSequence reference269 = ref span86[9]; + num++; + ref QuestSequence reference269 = ref span340[num]; QuestSequence obj256 = new QuestSequence { Sequence = 9 @@ -220328,40 +266423,48 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1029990u, new Vector3(11.36792f, 5.999995f, -38.651123f), 820); + Span span350 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span350[index2] = new QuestStep(EInteractionType.Interact, 1029990u, new Vector3(11.36792f, 5.999995f, -38.651123f), 820); obj256.Steps = list341; reference269 = obj256; - ref QuestSequence reference270 = ref span86[10]; + num++; + ref QuestSequence reference270 = ref span340[num]; QuestSequence obj257 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - Span span90 = CollectionsMarshal.AsSpan(list342); - span90[0] = new QuestStep(EInteractionType.Interact, 1027527u, new Vector3(-2.1820679f, 7.191099f, 58.060547f), 820) + index2 = 2; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + Span span351 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span351[num2] = new QuestStep(EInteractionType.Interact, 1027527u, new Vector3(-2.1820679f, 7.191099f, 58.060547f), 820) { TargetTerritoryId = (ushort)820, Sprint = true }; - span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1029830u, new Vector3(28.396973f, 82.78207f, 26.5354f), 820); + num2++; + span351[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029830u, new Vector3(28.396973f, 82.78207f, 26.5354f), 820); obj257.Steps = list342; reference270 = obj257; - questRoot49.QuestSequence = list8; + questRoot48.QuestSequence = list8; AddQuest(questId37, questRoot2); QuestId questId38 = new QuestId(3287); - QuestRoot questRoot50 = new QuestRoot(); + QuestRoot questRoot49 = new QuestRoot(); num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - CollectionsMarshal.AsSpan(list343)[0] = "liza"; - questRoot50.Author = list343; - num = 4; - List list344 = new List(num); - CollectionsMarshal.SetCount(list344, num); - Span span91 = CollectionsMarshal.AsSpan(list344); - ref QuestSequence reference271 = ref span91[0]; + Span span352 = CollectionsMarshal.AsSpan(list343); + index = 0; + span352[index] = "liza"; + questRoot49.Author = list343; + index = 4; + List list344 = new List(index); + CollectionsMarshal.SetCount(list344, index); + Span span353 = CollectionsMarshal.AsSpan(list344); + num = 0; + ref QuestSequence reference271 = ref span353[num]; QuestSequence obj258 = new QuestSequence { Sequence = 0 @@ -220369,24 +266472,30 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029832u, new Vector3(28.793701f, 82.78206f, 24.917969f), 820) + Span span354 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + span354[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029832u, new Vector3(28.793701f, 82.78206f, 24.917969f), 820) { StopDistance = 5f }; obj258.Steps = list345; reference271 = obj258; - ref QuestSequence reference272 = ref span91[1]; + num++; + ref QuestSequence reference272 = ref span353[num]; QuestSequence obj259 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 1029833u, new Vector3(-24.887512f, 82.2726f, -19.058533f), 820); + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + Span span355 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span355[num2] = new QuestStep(EInteractionType.Interact, 1029833u, new Vector3(-24.887512f, 82.2726f, -19.058533f), 820); obj259.Steps = list346; reference272 = obj259; - ref QuestSequence reference273 = ref span91[2]; + num++; + ref QuestSequence reference273 = ref span353[num]; QuestSequence obj260 = new QuestSequence { Sequence = 2 @@ -220394,23 +266503,30 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1029834u, new Vector3(-18.35669f, 82.597046f, -52.99463f), 820); + Span span356 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span356[index2] = new QuestStep(EInteractionType.Interact, 1029834u, new Vector3(-18.35669f, 82.597046f, -52.99463f), 820); obj260.Steps = list347; reference273 = obj260; - ref QuestSequence reference274 = ref span91[3]; + num++; + ref QuestSequence reference274 = ref span353[num]; QuestSequence obj261 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list348)[0]; + index2 = 1; + List list348 = new List(index2); + CollectionsMarshal.SetCount(list348, index2); + Span span357 = CollectionsMarshal.AsSpan(list348); + num2 = 0; + ref QuestStep reference275 = ref span357[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.CompleteQuest, 1029833u, new Vector3(-24.887512f, 82.2726f, -19.058533f), 820); - num3 = 1; - List list349 = new List(num3); - CollectionsMarshal.SetCount(list349, num3); - CollectionsMarshal.AsSpan(list349)[0] = new DialogueChoice + index3 = 1; + List list349 = new List(index3); + CollectionsMarshal.SetCount(list349, index3); + Span span358 = CollectionsMarshal.AsSpan(list349); + num3 = 0; + span358[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA206_03287_Q2_000_081"), @@ -220420,22 +266536,25 @@ public static class AssemblyQuestLoader reference275 = questStep15; obj261.Steps = list348; reference274 = obj261; - questRoot50.QuestSequence = list344; - AddQuest(questId38, questRoot50); + questRoot49.QuestSequence = list344; + AddQuest(questId38, questRoot49); QuestId questId39 = new QuestId(3288); questRoot2 = new QuestRoot(); - QuestRoot questRoot51 = questRoot2; + QuestRoot questRoot50 = questRoot2; num = 1; List list350 = new List(num); CollectionsMarshal.SetCount(list350, num); - CollectionsMarshal.AsSpan(list350)[0] = "liza"; - questRoot51.Author = list350; - QuestRoot questRoot52 = questRoot2; - num = 8; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span92 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference276 = ref span92[0]; + Span span359 = CollectionsMarshal.AsSpan(list350); + index = 0; + span359[index] = "liza"; + questRoot50.Author = list350; + QuestRoot questRoot51 = questRoot2; + index = 8; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span360 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference276 = ref span360[num]; QuestSequence obj262 = new QuestSequence { Sequence = 0 @@ -220443,21 +266562,27 @@ public static class AssemblyQuestLoader num2 = 1; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029833u, new Vector3(-24.887512f, 82.2726f, -19.058533f), 820); + Span span361 = CollectionsMarshal.AsSpan(list351); + index2 = 0; + span361[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029833u, new Vector3(-24.887512f, 82.2726f, -19.058533f), 820); obj262.Steps = list351; reference276 = obj262; - ref QuestSequence reference277 = ref span92[1]; + num++; + ref QuestSequence reference277 = ref span360[num]; QuestSequence obj263 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1027575u, new Vector3(59.128662f, 83.00107f, -70.08472f), 820); + index2 = 1; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + Span span362 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span362[num2] = new QuestStep(EInteractionType.Interact, 1027575u, new Vector3(59.128662f, 83.00107f, -70.08472f), 820); obj263.Steps = list352; reference277 = obj263; - ref QuestSequence reference278 = ref span92[2]; + num++; + ref QuestSequence reference278 = ref span360[num]; QuestSequence obj264 = new QuestSequence { Sequence = 2 @@ -220465,25 +266590,30 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - ref QuestStep reference279 = ref CollectionsMarshal.AsSpan(list353)[0]; + Span span363 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + ref QuestStep reference279 = ref span363[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1027575u, new Vector3(59.128662f, 83.00107f, -70.08472f), 820); num3 = 3; List list354 = new List(num3); CollectionsMarshal.SetCount(list354, num3); - Span span93 = CollectionsMarshal.AsSpan(list354); - span93[0] = new DialogueChoice + Span span364 = CollectionsMarshal.AsSpan(list354); + index3 = 0; + span364[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_Q1_000_041"), Answer = new ExcelRef("TEXT_LUCKMA207_03288_A1_000_042") }; - span93[1] = new DialogueChoice + index3++; + span364[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_Q2_000_052"), Answer = new ExcelRef("TEXT_LUCKMA207_03288_A2_000_054") }; - span93[2] = new DialogueChoice + index3++; + span364[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_TISTABIE_000_060") @@ -220492,33 +266622,39 @@ public static class AssemblyQuestLoader reference279 = questStep16; obj264.Steps = list353; reference278 = obj264; - ref QuestSequence reference280 = ref span92[3]; + num++; + ref QuestSequence reference280 = ref span360[num]; QuestSequence obj265 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - ref QuestStep reference281 = ref CollectionsMarshal.AsSpan(list355)[0]; + index2 = 1; + List list355 = new List(index2); + CollectionsMarshal.SetCount(list355, index2); + Span span365 = CollectionsMarshal.AsSpan(list355); + num2 = 0; + ref QuestStep reference281 = ref span365[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1027575u, new Vector3(59.128662f, 83.00107f, -70.08472f), 820); - num3 = 3; - List list356 = new List(num3); - CollectionsMarshal.SetCount(list356, num3); - Span span94 = CollectionsMarshal.AsSpan(list356); - span94[0] = new DialogueChoice + index3 = 3; + List list356 = new List(index3); + CollectionsMarshal.SetCount(list356, index3); + Span span366 = CollectionsMarshal.AsSpan(list356); + num3 = 0; + span366[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_Q1_000_041"), Answer = new ExcelRef("TEXT_LUCKMA207_03288_A1_000_042") }; - span94[1] = new DialogueChoice + num3++; + span366[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_Q2_000_052"), Answer = new ExcelRef("TEXT_LUCKMA207_03288_A2_000_054") }; - span94[2] = new DialogueChoice + num3++; + span366[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_TISTABIE_000_060") @@ -220527,7 +266663,8 @@ public static class AssemblyQuestLoader reference281 = questStep17; obj265.Steps = list355; reference280 = obj265; - ref QuestSequence reference282 = ref span92[4]; + num++; + ref QuestSequence reference282 = ref span360[num]; QuestSequence obj266 = new QuestSequence { Sequence = 4 @@ -220535,32 +266672,40 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.Interact, 1027574u, new Vector3(54.154175f, 82.00165f, -50.888855f), 820); + Span span367 = CollectionsMarshal.AsSpan(list357); + index2 = 0; + span367[index2] = new QuestStep(EInteractionType.Interact, 1027574u, new Vector3(54.154175f, 82.00165f, -50.888855f), 820); obj266.Steps = list357; reference282 = obj266; - ref QuestSequence reference283 = ref span92[5]; + num++; + ref QuestSequence reference283 = ref span360[num]; QuestSequence obj267 = new QuestSequence { Sequence = 5 }; - num2 = 5; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - Span span95 = CollectionsMarshal.AsSpan(list358); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(60.480736f, 82.909546f, -37.52441f), 820); - span95[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(63.647987f, 84.80449f, -36.65881f), 820) + index2 = 5; + List list358 = new List(index2); + CollectionsMarshal.SetCount(list358, index2); + Span span368 = CollectionsMarshal.AsSpan(list358); + num2 = 0; + span368[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(60.480736f, 82.909546f, -37.52441f), 820); + num2++; + span368[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(63.647987f, 84.80449f, -36.65881f), 820) { DisableNavmesh = true }; - span95[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.76068f, 86.70241f, -39.688606f), 820) + num2++; + span368[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.76068f, 86.70241f, -39.688606f), 820) { DisableNavmesh = true }; - span95[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(64.27692f, 86.7024f, -40.825073f), 820) + num2++; + span368[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(64.27692f, 86.7024f, -40.825073f), 820) { DisableNavmesh = true }; - span95[4] = new QuestStep(EInteractionType.Emote, null, new Vector3(61.212788f, 86.7f, -40.65704f), 820) + num2++; + span368[num2] = new QuestStep(EInteractionType.Emote, null, new Vector3(61.212788f, 86.7f, -40.65704f), 820) { StopDistance = 0.5f, DisableNavmesh = true, @@ -220568,7 +266713,8 @@ public static class AssemblyQuestLoader }; obj267.Steps = list358; reference283 = obj267; - ref QuestSequence reference284 = ref span92[6]; + num++; + ref QuestSequence reference284 = ref span360[num]; QuestSequence obj268 = new QuestSequence { Sequence = 6 @@ -220576,34 +266722,42 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.Interact, 1027574u, new Vector3(54.154175f, 82.00165f, -50.888855f), 820); + Span span369 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span369[index2] = new QuestStep(EInteractionType.Interact, 1027574u, new Vector3(54.154175f, 82.00165f, -50.888855f), 820); obj268.Steps = list359; reference284 = obj268; - ref QuestSequence reference285 = ref span92[7]; + num++; + ref QuestSequence reference285 = ref span360[num]; QuestSequence obj269 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029830u, new Vector3(28.396973f, 82.78207f, 26.5354f), 820); + index2 = 1; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + Span span370 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + span370[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029830u, new Vector3(28.396973f, 82.78207f, 26.5354f), 820); obj269.Steps = list360; reference285 = obj269; - questRoot52.QuestSequence = list8; + questRoot51.QuestSequence = list8; AddQuest(questId39, questRoot2); QuestId questId40 = new QuestId(3289); - QuestRoot questRoot53 = new QuestRoot(); + QuestRoot questRoot52 = new QuestRoot(); num = 1; List list361 = new List(num); CollectionsMarshal.SetCount(list361, num); - CollectionsMarshal.AsSpan(list361)[0] = "liza"; - questRoot53.Author = list361; - num = 5; - List list362 = new List(num); - CollectionsMarshal.SetCount(list362, num); - Span span96 = CollectionsMarshal.AsSpan(list362); - ref QuestSequence reference286 = ref span96[0]; + Span span371 = CollectionsMarshal.AsSpan(list361); + index = 0; + span371[index] = "liza"; + questRoot52.Author = list361; + index = 5; + List list362 = new List(index); + CollectionsMarshal.SetCount(list362, index); + Span span372 = CollectionsMarshal.AsSpan(list362); + num = 0; + ref QuestSequence reference286 = ref span372[num]; QuestSequence obj270 = new QuestSequence { Sequence = 0 @@ -220611,27 +266765,34 @@ public static class AssemblyQuestLoader num2 = 1; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029837u, new Vector3(26.810059f, 82.78224f, 23.819275f), 820); + Span span373 = CollectionsMarshal.AsSpan(list363); + index2 = 0; + span373[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029837u, new Vector3(26.810059f, 82.78224f, 23.819275f), 820); obj270.Steps = list363; reference286 = obj270; - ref QuestSequence reference287 = ref span96[1]; + num++; + ref QuestSequence reference287 = ref span372[num]; QuestSequence obj271 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - Span span97 = CollectionsMarshal.AsSpan(list364); - span97[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-16.370012f, 51.01856f, 18.119207f), 820); - span97[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-18.53454f, 23.1f, 4.258671f), 820) + index2 = 3; + List list364 = new List(index2); + CollectionsMarshal.SetCount(list364, index2); + Span span374 = CollectionsMarshal.AsSpan(list364); + num2 = 0; + span374[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-16.370012f, 51.01856f, 18.119207f), 820); + num2++; + span374[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-18.53454f, 23.1f, 4.258671f), 820) { DisableNavmesh = true }; - span97[2] = new QuestStep(EInteractionType.Interact, 1029838u, new Vector3(-18.387146f, 23.1f, -8.712891f), 820); + num2++; + span374[num2] = new QuestStep(EInteractionType.Interact, 1029838u, new Vector3(-18.387146f, 23.1f, -8.712891f), 820); obj271.Steps = list364; reference287 = obj271; - ref QuestSequence reference288 = ref span96[2]; + num++; + ref QuestSequence reference288 = ref span372[num]; QuestSequence obj272 = new QuestSequence { Sequence = 2 @@ -220639,12 +266800,14 @@ public static class AssemblyQuestLoader num2 = 3; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - Span span98 = CollectionsMarshal.AsSpan(list365); - span98[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + Span span375 = CollectionsMarshal.AsSpan(list365); + index2 = 0; + span375[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreMainstay }; - span98[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + index2++; + span375[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreSoutheastDerelict, AethernetShortcut = new AethernetShortcut @@ -220653,23 +266816,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreGloryGate } }; - span98[2] = new QuestStep(EInteractionType.Interact, 1027588u, new Vector3(-50.247986f, -0.10068311f, 61.32605f), 820); + index2++; + span375[index2] = new QuestStep(EInteractionType.Interact, 1027588u, new Vector3(-50.247986f, -0.10068311f, 61.32605f), 820); obj272.Steps = list365; reference288 = obj272; - ref QuestSequence reference289 = ref span96[3]; + num++; + ref QuestSequence reference289 = ref span372[num]; QuestSequence obj273 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - Span span99 = CollectionsMarshal.AsSpan(list366); - span99[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + index2 = 2; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + Span span376 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + span376[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreNightsoilPots }; - span99[1] = new QuestStep(EInteractionType.Interact, 1029838u, new Vector3(-18.387146f, 23.1f, -8.712891f), 820) + num2++; + span376[num2] = new QuestStep(EInteractionType.Interact, 1029838u, new Vector3(-18.387146f, 23.1f, -8.712891f), 820) { AethernetShortcut = new AethernetShortcut { @@ -220679,7 +266846,8 @@ public static class AssemblyQuestLoader }; obj273.Steps = list366; reference289 = obj273; - ref QuestSequence reference290 = ref span96[4]; + num++; + ref QuestSequence reference290 = ref span372[num]; QuestSequence obj274 = new QuestSequence { Sequence = byte.MaxValue @@ -220687,34 +266855,42 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028990u, new Vector3(26.810059f, 82.78224f, 23.819275f), 820); + Span span377 = CollectionsMarshal.AsSpan(list367); + index2 = 0; + span377[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028990u, new Vector3(26.810059f, 82.78224f, 23.819275f), 820); obj274.Steps = list367; reference290 = obj274; - questRoot53.QuestSequence = list362; - AddQuest(questId40, questRoot53); + questRoot52.QuestSequence = list362; + AddQuest(questId40, questRoot52); QuestId questId41 = new QuestId(3290); - QuestRoot questRoot54 = new QuestRoot(); + QuestRoot questRoot53 = new QuestRoot(); num = 1; List list368 = new List(num); CollectionsMarshal.SetCount(list368, num); - CollectionsMarshal.AsSpan(list368)[0] = "liza"; - questRoot54.Author = list368; - num = 5; - List list369 = new List(num); - CollectionsMarshal.SetCount(list369, num); - Span span100 = CollectionsMarshal.AsSpan(list369); - ref QuestSequence reference291 = ref span100[0]; + Span span378 = CollectionsMarshal.AsSpan(list368); + index = 0; + span378[index] = "liza"; + questRoot53.Author = list368; + index = 5; + List list369 = new List(index); + CollectionsMarshal.SetCount(list369, index); + Span span379 = CollectionsMarshal.AsSpan(list369); + num = 0; + ref QuestSequence reference291 = ref span379[num]; QuestSequence obj275 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028990u, new Vector3(26.810059f, 82.78224f, 23.819275f), 820); + index2 = 1; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + Span span380 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + span380[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028990u, new Vector3(26.810059f, 82.78224f, 23.819275f), 820); obj275.Steps = list370; reference291 = obj275; - ref QuestSequence reference292 = ref span100[1]; + num++; + ref QuestSequence reference292 = ref span379[num]; QuestSequence obj276 = new QuestSequence { Sequence = 1 @@ -220722,12 +266898,16 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - ref QuestStep reference293 = ref CollectionsMarshal.AsSpan(list371)[0]; + Span span381 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + ref QuestStep reference293 = ref span381[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1027549u, new Vector3(2.029419f, 83.195244f, 57.846924f), 820); num3 = 1; List list372 = new List(num3); CollectionsMarshal.SetCount(list372, num3); - CollectionsMarshal.AsSpan(list372)[0] = new DialogueChoice + Span span382 = CollectionsMarshal.AsSpan(list372); + index3 = 0; + span382[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA209_03290_Q1_000_041") @@ -220736,18 +266916,22 @@ public static class AssemblyQuestLoader reference293 = questStep18; obj276.Steps = list371; reference292 = obj276; - ref QuestSequence reference294 = ref span100[2]; + num++; + ref QuestSequence reference294 = ref span379[num]; QuestSequence obj277 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.Interact, 1029839u, new Vector3(5.722107f, -5.1046004f, -106.126526f), 820); + index2 = 1; + List list373 = new List(index2); + CollectionsMarshal.SetCount(list373, index2); + Span span383 = CollectionsMarshal.AsSpan(list373); + num2 = 0; + span383[num2] = new QuestStep(EInteractionType.Interact, 1029839u, new Vector3(5.722107f, -5.1046004f, -106.126526f), 820); obj277.Steps = list373; reference294 = obj277; - ref QuestSequence reference295 = ref span100[3]; + num++; + ref QuestSequence reference295 = ref span379[num]; QuestSequence obj278 = new QuestSequence { Sequence = 3 @@ -220755,8 +266939,9 @@ public static class AssemblyQuestLoader num2 = 2; List list374 = new List(num2); CollectionsMarshal.SetCount(list374, num2); - Span span101 = CollectionsMarshal.AsSpan(list374); - span101[0] = new QuestStep(EInteractionType.Interact, 1027225u, new Vector3(61.905884f, 36.247692f, -169.17682f), 819) + Span span384 = CollectionsMarshal.AsSpan(list374); + index2 = 0; + span384[index2] = new QuestStep(EInteractionType.Interact, 1027225u, new Vector3(61.905884f, 36.247692f, -169.17682f), 819) { TargetTerritoryId = (ushort)814, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -220766,22 +266951,25 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - span101[1] = new QuestStep(EInteractionType.Interact, 1029841u, new Vector3(800.0458f, 1.4174876f, 255.9701f), 814) + index2++; + span384[index2] = new QuestStep(EInteractionType.Interact, 1029841u, new Vector3(800.0458f, 1.4174876f, 255.9701f), 814) { StopDistance = 7f }; obj278.Steps = list374; reference295 = obj278; - ref QuestSequence reference296 = ref span100[4]; + num++; + ref QuestSequence reference296 = ref span379[num]; QuestSequence obj279 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list375 = new List(num2); - CollectionsMarshal.SetCount(list375, num2); - Span span102 = CollectionsMarshal.AsSpan(list375); - span102[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + index2 = 2; + List list375 = new List(index2); + CollectionsMarshal.SetCount(list375, index2); + Span span385 = CollectionsMarshal.AsSpan(list375); + num2 = 0; + span385[num2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -220790,23 +266978,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span102[1] = new QuestStep(EInteractionType.CompleteQuest, 1029842u, new Vector3(-2.02948f, -4.7436786E-14f, -4.196289f), 844); + num2++; + span385[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029842u, new Vector3(-2.02948f, -4.7436786E-14f, -4.196289f), 844); obj279.Steps = list375; reference296 = obj279; - questRoot54.QuestSequence = list369; - AddQuest(questId41, questRoot54); + questRoot53.QuestSequence = list369; + AddQuest(questId41, questRoot53); QuestId questId42 = new QuestId(3291); - QuestRoot questRoot55 = new QuestRoot(); + QuestRoot questRoot54 = new QuestRoot(); num = 1; List list376 = new List(num); CollectionsMarshal.SetCount(list376, num); - CollectionsMarshal.AsSpan(list376)[0] = "liza"; - questRoot55.Author = list376; - num = 8; - List list377 = new List(num); - CollectionsMarshal.SetCount(list377, num); - Span span103 = CollectionsMarshal.AsSpan(list377); - ref QuestSequence reference297 = ref span103[0]; + Span span386 = CollectionsMarshal.AsSpan(list376); + index = 0; + span386[index] = "liza"; + questRoot54.Author = list376; + index = 8; + List list377 = new List(index); + CollectionsMarshal.SetCount(list377, index); + Span span387 = CollectionsMarshal.AsSpan(list377); + num = 0; + ref QuestSequence reference297 = ref span387[num]; QuestSequence obj280 = new QuestSequence { Sequence = 0 @@ -220814,21 +267006,26 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844) + Span span388 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + span388[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844) { StopDistance = 7f }; obj280.Steps = list378; reference297 = obj280; - ref QuestSequence reference298 = ref span103[1]; + num++; + ref QuestSequence reference298 = ref span387[num]; QuestSequence obj281 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list379 = new List(num2); - CollectionsMarshal.SetCount(list379, num2); - CollectionsMarshal.AsSpan(list379)[0] = new QuestStep(EInteractionType.Interact, 1027854u, new Vector3(40.57373f, 36.197685f, -160.23505f), 819) + index2 = 1; + List list379 = new List(index2); + CollectionsMarshal.SetCount(list379, index2); + Span span389 = CollectionsMarshal.AsSpan(list379); + num2 = 0; + span389[num2] = new QuestStep(EInteractionType.Interact, 1027854u, new Vector3(40.57373f, 36.197685f, -160.23505f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -220839,7 +267036,8 @@ public static class AssemblyQuestLoader }; obj281.Steps = list379; reference298 = obj281; - ref QuestSequence reference299 = ref span103[2]; + num++; + ref QuestSequence reference299 = ref span387[num]; QuestSequence obj282 = new QuestSequence { Sequence = 2 @@ -220847,29 +267045,36 @@ public static class AssemblyQuestLoader num2 = 1; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.Interact, 1027854u, new Vector3(40.57373f, 36.197685f, -160.23505f), 819); + Span span390 = CollectionsMarshal.AsSpan(list380); + index2 = 0; + span390[index2] = new QuestStep(EInteractionType.Interact, 1027854u, new Vector3(40.57373f, 36.197685f, -160.23505f), 819); obj282.Steps = list380; reference299 = obj282; - span103[3] = new QuestSequence + num++; + span387[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference300 = ref span103[4]; + num++; + ref QuestSequence reference300 = ref span387[num]; QuestSequence obj283 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.Interact, 1028961u, new Vector3(662.50085f, -48.533764f, -652.8573f), 815) + index2 = 1; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + Span span391 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span391[num2] = new QuestStep(EInteractionType.Interact, 1028961u, new Vector3(662.50085f, -48.533764f, -652.8573f), 815) { StopDistance = 7f, DisableNavmesh = true }; obj283.Steps = list381; reference300 = obj283; - ref QuestSequence reference301 = ref span103[5]; + num++; + ref QuestSequence reference301 = ref span387[num]; QuestSequence obj284 = new QuestSequence { Sequence = 5 @@ -220877,26 +267082,32 @@ public static class AssemblyQuestLoader num2 = 2; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - Span span104 = CollectionsMarshal.AsSpan(list382); - span104[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010044u, new Vector3(446.0669f, -60.56305f, -523.7049f), 815) + Span span392 = CollectionsMarshal.AsSpan(list382); + index2 = 0; + span392[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010044u, new Vector3(446.0669f, -60.56305f, -523.7049f), 815) { AetherCurrentId = 2818253u }; - span104[1] = new QuestStep(EInteractionType.Interact, 1028962u, new Vector3(477.71423f, -50.54957f, -509.88025f), 815); + index2++; + span392[index2] = new QuestStep(EInteractionType.Interact, 1028962u, new Vector3(477.71423f, -50.54957f, -509.88025f), 815); obj284.Steps = list382; reference301 = obj284; - ref QuestSequence reference302 = ref span103[6]; + num++; + ref QuestSequence reference302 = ref span387[num]; QuestSequence obj285 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list383 = new List(num2); - CollectionsMarshal.SetCount(list383, num2); - CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.Interact, 2009842u, new Vector3(484.2754f, -51.95703f, -512.50476f), 815); + index2 = 1; + List list383 = new List(index2); + CollectionsMarshal.SetCount(list383, index2); + Span span393 = CollectionsMarshal.AsSpan(list383); + num2 = 0; + span393[num2] = new QuestStep(EInteractionType.Interact, 2009842u, new Vector3(484.2754f, -51.95703f, -512.50476f), 815); obj285.Steps = list383; reference302 = obj285; - ref QuestSequence reference303 = ref span103[7]; + num++; + ref QuestSequence reference303 = ref span387[num]; QuestSequence obj286 = new QuestSequence { Sequence = byte.MaxValue @@ -220904,34 +267115,42 @@ public static class AssemblyQuestLoader num2 = 1; List list384 = new List(num2); CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028963u, new Vector3(327.0465f, 1.4685787f, -296.4676f), 815); + Span span394 = CollectionsMarshal.AsSpan(list384); + index2 = 0; + span394[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028963u, new Vector3(327.0465f, 1.4685787f, -296.4676f), 815); obj286.Steps = list384; reference303 = obj286; - questRoot55.QuestSequence = list377; - AddQuest(questId42, questRoot55); + questRoot54.QuestSequence = list377; + AddQuest(questId42, questRoot54); QuestId questId43 = new QuestId(3292); - QuestRoot questRoot56 = new QuestRoot(); + QuestRoot questRoot55 = new QuestRoot(); num = 1; List list385 = new List(num); CollectionsMarshal.SetCount(list385, num); - CollectionsMarshal.AsSpan(list385)[0] = "liza"; - questRoot56.Author = list385; - num = 4; - List list386 = new List(num); - CollectionsMarshal.SetCount(list386, num); - Span span105 = CollectionsMarshal.AsSpan(list386); - ref QuestSequence reference304 = ref span105[0]; + Span span395 = CollectionsMarshal.AsSpan(list385); + index = 0; + span395[index] = "liza"; + questRoot55.Author = list385; + index = 4; + List list386 = new List(index); + CollectionsMarshal.SetCount(list386, index); + Span span396 = CollectionsMarshal.AsSpan(list386); + num = 0; + ref QuestSequence reference304 = ref span396[num]; QuestSequence obj287 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list387 = new List(num2); - CollectionsMarshal.SetCount(list387, num2); - CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028963u, new Vector3(327.0465f, 1.4685787f, -296.4676f), 815); + index2 = 1; + List list387 = new List(index2); + CollectionsMarshal.SetCount(list387, index2); + Span span397 = CollectionsMarshal.AsSpan(list387); + num2 = 0; + span397[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028963u, new Vector3(327.0465f, 1.4685787f, -296.4676f), 815); obj287.Steps = list387; reference304 = obj287; - ref QuestSequence reference305 = ref span105[1]; + num++; + ref QuestSequence reference305 = ref span396[num]; QuestSequence obj288 = new QuestSequence { Sequence = 1 @@ -220939,29 +267158,35 @@ public static class AssemblyQuestLoader num2 = 2; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - Span span106 = CollectionsMarshal.AsSpan(list388); - span106[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 815) + Span span398 = CollectionsMarshal.AsSpan(list388); + index2 = 0; + span398[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 815) { Aetheryte = EAetheryteLocation.AmhAraengMordSouq }; - span106[1] = new QuestStep(EInteractionType.Interact, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815); + index2++; + span398[index2] = new QuestStep(EInteractionType.Interact, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815); obj288.Steps = list388; reference305 = obj288; - ref QuestSequence reference306 = ref span105[2]; + num++; + ref QuestSequence reference306 = ref span396[num]; QuestSequence obj289 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list389 = new List(num2); - CollectionsMarshal.SetCount(list389, num2); - CollectionsMarshal.AsSpan(list389)[0] = new QuestStep(EInteractionType.Snipe, 1027873u, new Vector3(312.24524f, 1.4685826f, -186.14484f), 815) + index2 = 1; + List list389 = new List(index2); + CollectionsMarshal.SetCount(list389, index2); + Span span399 = CollectionsMarshal.AsSpan(list389); + num2 = 0; + span399[num2] = new QuestStep(EInteractionType.Snipe, 1027873u, new Vector3(312.24524f, 1.4685826f, -186.14484f), 815) { Comment = "Click all four foods" }; obj289.Steps = list389; reference306 = obj289; - ref QuestSequence reference307 = ref span105[3]; + num++; + ref QuestSequence reference307 = ref span396[num]; QuestSequence obj290 = new QuestSequence { Sequence = byte.MaxValue @@ -220969,37 +267194,45 @@ public static class AssemblyQuestLoader num2 = 1; List list390 = new List(num2); CollectionsMarshal.SetCount(list390, num2); - CollectionsMarshal.AsSpan(list390)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815); + Span span400 = CollectionsMarshal.AsSpan(list390); + index2 = 0; + span400[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815); obj290.Steps = list390; reference307 = obj290; - questRoot56.QuestSequence = list386; - AddQuest(questId43, questRoot56); + questRoot55.QuestSequence = list386; + AddQuest(questId43, questRoot55); QuestId questId44 = new QuestId(3293); - QuestRoot questRoot57 = new QuestRoot(); + QuestRoot questRoot56 = new QuestRoot(); num = 1; List list391 = new List(num); CollectionsMarshal.SetCount(list391, num); - CollectionsMarshal.AsSpan(list391)[0] = "liza"; - questRoot57.Author = list391; - num = 3; - List list392 = new List(num); - CollectionsMarshal.SetCount(list392, num); - Span span107 = CollectionsMarshal.AsSpan(list392); - ref QuestSequence reference308 = ref span107[0]; + Span span401 = CollectionsMarshal.AsSpan(list391); + index = 0; + span401[index] = "liza"; + questRoot56.Author = list391; + index = 3; + List list392 = new List(index); + CollectionsMarshal.SetCount(list392, index); + Span span402 = CollectionsMarshal.AsSpan(list392); + num = 0; + ref QuestSequence reference308 = ref span402[num]; QuestSequence obj291 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list393 = new List(num2); - CollectionsMarshal.SetCount(list393, num2); - CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028974u, new Vector3(265.79688f, 4.0297f, -145.76947f), 815) + index2 = 1; + List list393 = new List(index2); + CollectionsMarshal.SetCount(list393, index2); + Span span403 = CollectionsMarshal.AsSpan(list393); + num2 = 0; + span403[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028974u, new Vector3(265.79688f, 4.0297f, -145.76947f), 815) { StopDistance = 5f }; obj291.Steps = list393; reference308 = obj291; - ref QuestSequence reference309 = ref span107[1]; + num++; + ref QuestSequence reference309 = ref span402[num]; QuestSequence obj292 = new QuestSequence { Sequence = 1 @@ -221007,24 +267240,33 @@ public static class AssemblyQuestLoader num2 = 3; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - Span span108 = CollectionsMarshal.AsSpan(list394); - ref QuestStep reference310 = ref span108[0]; + Span span404 = CollectionsMarshal.AsSpan(list394); + index2 = 0; + ref QuestStep reference310 = ref span404[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2009935u, new Vector3(328.48096f, 1.449585f, -289.5705f), 815); - num3 = 6; - List list395 = new List(num3); - CollectionsMarshal.SetCount(list395, num3); - Span span109 = CollectionsMarshal.AsSpan(list395); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list395 = new List(index3); + CollectionsMarshal.SetCount(list395, index3); + Span span405 = CollectionsMarshal.AsSpan(list395); + num3 = 0; + span405[num3] = null; + num3++; + span405[num3] = null; + num3++; + span405[num3] = null; + num3++; + span405[num3] = null; + num3++; + span405[num3] = null; + num3++; + span405[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list395; num3 = 1; List list396 = new List(num3); CollectionsMarshal.SetCount(list396, num3); - CollectionsMarshal.AsSpan(list396)[0] = new DialogueChoice + Span span406 = CollectionsMarshal.AsSpan(list396); + index3 = 0; + span406[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA303_03293_Q1_000_000"), @@ -221032,61 +267274,81 @@ public static class AssemblyQuestLoader }; questStep19.DialogueChoices = list396; reference310 = questStep19; - ref QuestStep reference311 = ref span108[1]; + index2++; + ref QuestStep reference311 = ref span404[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2009934u, new Vector3(231.15894f, 4.0131226f, -300.55695f), 815); - num3 = 6; - List list397 = new List(num3); - CollectionsMarshal.SetCount(list397, num3); - Span span110 = CollectionsMarshal.AsSpan(list397); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list397 = new List(index3); + CollectionsMarshal.SetCount(list397, index3); + Span span407 = CollectionsMarshal.AsSpan(list397); + num3 = 0; + span407[num3] = null; + num3++; + span407[num3] = null; + num3++; + span407[num3] = null; + num3++; + span407[num3] = null; + num3++; + span407[num3] = null; + num3++; + span407[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list397; reference311 = questStep20; - ref QuestStep reference312 = ref span108[2]; + index2++; + ref QuestStep reference312 = ref span404[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 2009936u, new Vector3(205.40161f, 4.0131226f, -293.59882f), 815); num3 = 6; List list398 = new List(num3); CollectionsMarshal.SetCount(list398, num3); - Span span111 = CollectionsMarshal.AsSpan(list398); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span408 = CollectionsMarshal.AsSpan(list398); + index3 = 0; + span408[index3] = null; + index3++; + span408[index3] = null; + index3++; + span408[index3] = null; + index3++; + span408[index3] = null; + index3++; + span408[index3] = null; + index3++; + span408[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list398; reference312 = questStep21; obj292.Steps = list394; reference309 = obj292; - ref QuestSequence reference313 = ref span107[2]; + num++; + ref QuestSequence reference313 = ref span402[num]; QuestSequence obj293 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - CollectionsMarshal.AsSpan(list399)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028976u, new Vector3(313.2218f, 1.4685826f, -154.40613f), 815); + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + Span span409 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + span409[num2] = new QuestStep(EInteractionType.CompleteQuest, 1028976u, new Vector3(313.2218f, 1.4685826f, -154.40613f), 815); obj293.Steps = list399; reference313 = obj293; - questRoot57.QuestSequence = list392; - AddQuest(questId44, questRoot57); + questRoot56.QuestSequence = list392; + AddQuest(questId44, questRoot56); QuestId questId45 = new QuestId(3294); - QuestRoot questRoot58 = new QuestRoot(); + QuestRoot questRoot57 = new QuestRoot(); num = 1; List list400 = new List(num); CollectionsMarshal.SetCount(list400, num); - CollectionsMarshal.AsSpan(list400)[0] = "liza"; - questRoot58.Author = list400; - num = 7; - List list401 = new List(num); - CollectionsMarshal.SetCount(list401, num); - Span span112 = CollectionsMarshal.AsSpan(list401); - ref QuestSequence reference314 = ref span112[0]; + Span span410 = CollectionsMarshal.AsSpan(list400); + index = 0; + span410[index] = "liza"; + questRoot57.Author = list400; + index = 7; + List list401 = new List(index); + CollectionsMarshal.SetCount(list401, index); + Span span411 = CollectionsMarshal.AsSpan(list401); + num = 0; + ref QuestSequence reference314 = ref span411[num]; QuestSequence obj294 = new QuestSequence { Sequence = 0 @@ -221094,29 +267356,35 @@ public static class AssemblyQuestLoader num2 = 1; List list402 = new List(num2); CollectionsMarshal.SetCount(list402, num2); - CollectionsMarshal.AsSpan(list402)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028977u, new Vector3(313.8933f, 1.4685827f, -156.81696f), 815); + Span span412 = CollectionsMarshal.AsSpan(list402); + index2 = 0; + span412[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028977u, new Vector3(313.8933f, 1.4685827f, -156.81696f), 815); obj294.Steps = list402; reference314 = obj294; - ref QuestSequence reference315 = ref span112[1]; + num++; + ref QuestSequence reference315 = ref span411[num]; QuestSequence obj295 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list403 = new List(num2); - CollectionsMarshal.SetCount(list403, num2); - Span span113 = CollectionsMarshal.AsSpan(list403); - span113[0] = new QuestStep(EInteractionType.AcceptQuest, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815) + index2 = 2; + List list403 = new List(index2); + CollectionsMarshal.SetCount(list403, index2); + Span span413 = CollectionsMarshal.AsSpan(list403); + num2 = 0; + span413[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815) { PickUpQuestId = new QuestId(3375) }; - span113[1] = new QuestStep(EInteractionType.Interact, 1030606u, new Vector3(347.15796f, -8.423396f, -117.93707f), 815) + num2++; + span413[num2] = new QuestStep(EInteractionType.Interact, 1030606u, new Vector3(347.15796f, -8.423396f, -117.93707f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; obj295.Steps = list403; reference315 = obj295; - ref QuestSequence reference316 = ref span112[2]; + num++; + ref QuestSequence reference316 = ref span411[num]; QuestSequence obj296 = new QuestSequence { Sequence = 2 @@ -221124,32 +267392,40 @@ public static class AssemblyQuestLoader num2 = 1; List list404 = new List(num2); CollectionsMarshal.SetCount(list404, num2); - ref QuestStep reference317 = ref CollectionsMarshal.AsSpan(list404)[0]; + Span span414 = CollectionsMarshal.AsSpan(list404); + index2 = 0; + ref QuestStep reference317 = ref span414[index2]; QuestStep obj297 = new QuestStep(EInteractionType.Combat, null, new Vector3(443.3203f, -23.82671f, -44.724243f), 815) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list405 = new List(num3); - CollectionsMarshal.SetCount(list405, num3); - CollectionsMarshal.AsSpan(list405)[0] = 10874u; + index3 = 1; + List list405 = new List(index3); + CollectionsMarshal.SetCount(list405, index3); + Span span415 = CollectionsMarshal.AsSpan(list405); + num3 = 0; + span415[num3] = 10874u; obj297.KillEnemyDataIds = list405; reference317 = obj297; obj296.Steps = list404; reference316 = obj296; - ref QuestSequence reference318 = ref span112[3]; + num++; + ref QuestSequence reference318 = ref span411[num]; QuestSequence obj298 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list406 = new List(num2); - CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 1028978u, new Vector3(443.3203f, -23.82671f, -44.724243f), 815); + index2 = 1; + List list406 = new List(index2); + CollectionsMarshal.SetCount(list406, index2); + Span span416 = CollectionsMarshal.AsSpan(list406); + num2 = 0; + span416[num2] = new QuestStep(EInteractionType.Interact, 1028978u, new Vector3(443.3203f, -23.82671f, -44.724243f), 815); obj298.Steps = list406; reference318 = obj298; - ref QuestSequence reference319 = ref span112[4]; + num++; + ref QuestSequence reference319 = ref span411[num]; QuestSequence obj299 = new QuestSequence { Sequence = 4 @@ -221157,7 +267433,9 @@ public static class AssemblyQuestLoader num2 = 1; List list407 = new List(num2); CollectionsMarshal.SetCount(list407, num2); - ref QuestStep reference320 = ref CollectionsMarshal.AsSpan(list407)[0]; + Span span417 = CollectionsMarshal.AsSpan(list407); + index2 = 0; + ref QuestStep reference320 = ref span417[index2]; QuestStep obj300 = new QuestStep(EInteractionType.Combat, 2009848u, new Vector3(487.51038f, -37.979797f, 56.10742f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -221165,23 +267443,29 @@ public static class AssemblyQuestLoader num3 = 1; List list408 = new List(num3); CollectionsMarshal.SetCount(list408, num3); - CollectionsMarshal.AsSpan(list408)[0] = 10875u; + Span span418 = CollectionsMarshal.AsSpan(list408); + index3 = 0; + span418[index3] = 10875u; obj300.KillEnemyDataIds = list408; reference320 = obj300; obj299.Steps = list407; reference319 = obj299; - ref QuestSequence reference321 = ref span112[5]; + num++; + ref QuestSequence reference321 = ref span411[num]; QuestSequence obj301 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list409 = new List(num2); - CollectionsMarshal.SetCount(list409, num2); - CollectionsMarshal.AsSpan(list409)[0] = new QuestStep(EInteractionType.Interact, 1028978u, new Vector3(443.3203f, -23.82671f, -44.724243f), 815); + index2 = 1; + List list409 = new List(index2); + CollectionsMarshal.SetCount(list409, index2); + Span span419 = CollectionsMarshal.AsSpan(list409); + num2 = 0; + span419[num2] = new QuestStep(EInteractionType.Interact, 1028978u, new Vector3(443.3203f, -23.82671f, -44.724243f), 815); obj301.Steps = list409; reference321 = obj301; - ref QuestSequence reference322 = ref span112[6]; + num++; + ref QuestSequence reference322 = ref span411[num]; QuestSequence obj302 = new QuestSequence { Sequence = byte.MaxValue @@ -221189,37 +267473,45 @@ public static class AssemblyQuestLoader num2 = 1; List list410 = new List(num2); CollectionsMarshal.SetCount(list410, num2); - CollectionsMarshal.AsSpan(list410)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028980u, new Vector3(388.93713f, -33.327938f, 233.20361f), 815); + Span span420 = CollectionsMarshal.AsSpan(list410); + index2 = 0; + span420[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028980u, new Vector3(388.93713f, -33.327938f, 233.20361f), 815); obj302.Steps = list410; reference322 = obj302; - questRoot58.QuestSequence = list401; - AddQuest(questId45, questRoot58); + questRoot57.QuestSequence = list401; + AddQuest(questId45, questRoot57); QuestId questId46 = new QuestId(3295); - QuestRoot questRoot59 = new QuestRoot(); + QuestRoot questRoot58 = new QuestRoot(); num = 1; List list411 = new List(num); CollectionsMarshal.SetCount(list411, num); - CollectionsMarshal.AsSpan(list411)[0] = "liza"; - questRoot59.Author = list411; - num = 7; - List list412 = new List(num); - CollectionsMarshal.SetCount(list412, num); - Span span114 = CollectionsMarshal.AsSpan(list412); - ref QuestSequence reference323 = ref span114[0]; + Span span421 = CollectionsMarshal.AsSpan(list411); + index = 0; + span421[index] = "liza"; + questRoot58.Author = list411; + index = 7; + List list412 = new List(index); + CollectionsMarshal.SetCount(list412, index); + Span span422 = CollectionsMarshal.AsSpan(list412); + num = 0; + ref QuestSequence reference323 = ref span422[num]; QuestSequence obj303 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - CollectionsMarshal.AsSpan(list413)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815) + index2 = 1; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + Span span423 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + span423[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815) { StopDistance = 7f }; obj303.Steps = list413; reference323 = obj303; - ref QuestSequence reference324 = ref span114[1]; + num++; + ref QuestSequence reference324 = ref span422[num]; QuestSequence obj304 = new QuestSequence { Sequence = 1 @@ -221227,33 +267519,40 @@ public static class AssemblyQuestLoader num2 = 3; List list414 = new List(num2); CollectionsMarshal.SetCount(list414, num2); - Span span115 = CollectionsMarshal.AsSpan(list414); - span115[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 815) + Span span424 = CollectionsMarshal.AsSpan(list414); + index2 = 0; + span424[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 815) { Aetheryte = EAetheryteLocation.AmhAraengInnAtJourneysHead }; - span115[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010047u, new Vector3(344.6554f, -66.54462f, 538.9332f), 815) + index2++; + span424[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010047u, new Vector3(344.6554f, -66.54462f, 538.9332f), 815) { AetherCurrentId = 2818256u }; - span115[2] = new QuestStep(EInteractionType.Interact, 2009849u, new Vector3(362.50854f, -63.95056f, 503.65454f), 815); + index2++; + span424[index2] = new QuestStep(EInteractionType.Interact, 2009849u, new Vector3(362.50854f, -63.95056f, 503.65454f), 815); obj304.Steps = list414; reference324 = obj304; - ref QuestSequence reference325 = ref span114[2]; + num++; + ref QuestSequence reference325 = ref span422[num]; QuestSequence obj305 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list415 = new List(num2); - CollectionsMarshal.SetCount(list415, num2); - CollectionsMarshal.AsSpan(list415)[0] = new QuestStep(EInteractionType.Interact, 2009850u, new Vector3(357.04578f, -63.34027f, 497.79492f), 815) + index2 = 1; + List list415 = new List(index2); + CollectionsMarshal.SetCount(list415, index2); + Span span425 = CollectionsMarshal.AsSpan(list415); + num2 = 0; + span425[num2] = new QuestStep(EInteractionType.Interact, 2009850u, new Vector3(357.04578f, -63.34027f, 497.79492f), 815) { DisableNavmesh = true }; obj305.Steps = list415; reference325 = obj305; - ref QuestSequence reference326 = ref span114[3]; + num++; + ref QuestSequence reference326 = ref span422[num]; QuestSequence obj306 = new QuestSequence { Sequence = 3 @@ -221261,24 +267560,30 @@ public static class AssemblyQuestLoader num2 = 1; List list416 = new List(num2); CollectionsMarshal.SetCount(list416, num2); - CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.Interact, 2009851u, new Vector3(329.57947f, -72.15991f, 463.3401f), 815) + Span span426 = CollectionsMarshal.AsSpan(list416); + index2 = 0; + span426[index2] = new QuestStep(EInteractionType.Interact, 2009851u, new Vector3(329.57947f, -72.15991f, 463.3401f), 815) { DisableNavmesh = true }; obj306.Steps = list416; reference326 = obj306; - ref QuestSequence reference327 = ref span114[4]; + num++; + ref QuestSequence reference327 = ref span422[num]; QuestSequence obj307 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list417 = new List(num2); - CollectionsMarshal.SetCount(list417, num2); - CollectionsMarshal.AsSpan(list417)[0] = new QuestStep(EInteractionType.Interact, 2009852u, new Vector3(285.60303f, -66.88031f, 404.2572f), 815); + index2 = 1; + List list417 = new List(index2); + CollectionsMarshal.SetCount(list417, index2); + Span span427 = CollectionsMarshal.AsSpan(list417); + num2 = 0; + span427[num2] = new QuestStep(EInteractionType.Interact, 2009852u, new Vector3(285.60303f, -66.88031f, 404.2572f), 815); obj307.Steps = list417; reference327 = obj307; - ref QuestSequence reference328 = ref span114[5]; + num++; + ref QuestSequence reference328 = ref span422[num]; QuestSequence obj308 = new QuestSequence { Sequence = 5 @@ -221286,151 +267591,198 @@ public static class AssemblyQuestLoader num2 = 1; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - CollectionsMarshal.AsSpan(list418)[0] = new QuestStep(EInteractionType.Interact, 2009853u, new Vector3(200.79346f, -82.29199f, 384.32886f), 815); + Span span428 = CollectionsMarshal.AsSpan(list418); + index2 = 0; + span428[index2] = new QuestStep(EInteractionType.Interact, 2009853u, new Vector3(200.79346f, -82.29199f, 384.32886f), 815); obj308.Steps = list418; reference328 = obj308; - ref QuestSequence reference329 = ref span114[6]; + num++; + ref QuestSequence reference329 = ref span422[num]; QuestSequence obj309 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list419 = new List(num2); - CollectionsMarshal.SetCount(list419, num2); - CollectionsMarshal.AsSpan(list419)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029002u, new Vector3(271.3512f, -45.269566f, 334.46252f), 815); + index2 = 1; + List list419 = new List(index2); + CollectionsMarshal.SetCount(list419, index2); + Span span429 = CollectionsMarshal.AsSpan(list419); + num2 = 0; + span429[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029002u, new Vector3(271.3512f, -45.269566f, 334.46252f), 815); obj309.Steps = list419; reference329 = obj309; - questRoot59.QuestSequence = list412; - AddQuest(questId46, questRoot59); + questRoot58.QuestSequence = list412; + AddQuest(questId46, questRoot58); QuestId questId47 = new QuestId(3296); - QuestRoot questRoot60 = new QuestRoot(); + questRoot2 = new QuestRoot(); + QuestRoot questRoot59 = questRoot2; num = 1; List list420 = new List(num); CollectionsMarshal.SetCount(list420, num); - CollectionsMarshal.AsSpan(list420)[0] = "liza"; - questRoot60.Author = list420; - num = 4; - List list421 = new List(num); - CollectionsMarshal.SetCount(list421, num); - Span span116 = CollectionsMarshal.AsSpan(list421); - ref QuestSequence reference330 = ref span116[0]; + Span span430 = CollectionsMarshal.AsSpan(list420); + index = 0; + span430[index] = "liza"; + questRoot59.Author = list420; + QuestRoot questRoot60 = questRoot2; + index = 4; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span431 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference330 = ref span431[num]; QuestSequence obj310 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list422 = new List(num2); - CollectionsMarshal.SetCount(list422, num2); - CollectionsMarshal.AsSpan(list422)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029002u, new Vector3(271.3512f, -45.269566f, 334.46252f), 815); - obj310.Steps = list422; + List list421 = new List(num2); + CollectionsMarshal.SetCount(list421, num2); + Span span432 = CollectionsMarshal.AsSpan(list421); + index2 = 0; + span432[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029002u, new Vector3(271.3512f, -45.269566f, 334.46252f), 815); + obj310.Steps = list421; reference330 = obj310; - ref QuestSequence reference331 = ref span116[1]; + num++; + ref QuestSequence reference331 = ref span431[num]; QuestSequence obj311 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list423 = new List(num2); - CollectionsMarshal.SetCount(list423, num2); - Span span117 = CollectionsMarshal.AsSpan(list423); - ref QuestStep reference332 = ref span117[0]; + index2 = 3; + List list422 = new List(index2); + CollectionsMarshal.SetCount(list422, index2); + Span span433 = CollectionsMarshal.AsSpan(list422); + num2 = 0; + ref QuestStep reference332 = ref span433[num2]; QuestStep obj312 = new QuestStep(EInteractionType.Combat, 2009854u, new Vector3(215.44214f, -58.609924f, 262.745f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list424 = new List(num3); + index3 = 1; + List list423 = new List(index3); + CollectionsMarshal.SetCount(list423, index3); + Span span434 = CollectionsMarshal.AsSpan(list423); + num3 = 0; + span434[num3] = 10876u; + obj312.KillEnemyDataIds = list423; + num3 = 6; + List list424 = new List(num3); CollectionsMarshal.SetCount(list424, num3); - CollectionsMarshal.AsSpan(list424)[0] = 10876u; - obj312.KillEnemyDataIds = list424; - num3 = 6; - List list425 = new List(num3); - CollectionsMarshal.SetCount(list425, num3); - Span span118 = CollectionsMarshal.AsSpan(list425); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj312.CompletionQuestVariablesFlags = list425; + Span span435 = CollectionsMarshal.AsSpan(list424); + index3 = 0; + span435[index3] = null; + index3++; + span435[index3] = null; + index3++; + span435[index3] = null; + index3++; + span435[index3] = null; + index3++; + span435[index3] = null; + index3++; + span435[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj312.CompletionQuestVariablesFlags = list424; reference332 = obj312; - ref QuestStep reference333 = ref span117[1]; + num2++; + ref QuestStep reference333 = ref span433[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 2009855u, new Vector3(259.20496f, -44.571655f, 159.74658f), 815); - num3 = 6; - List list426 = new List(num3); - CollectionsMarshal.SetCount(list426, num3); - Span span119 = CollectionsMarshal.AsSpan(list426); - span119[0] = null; - span119[1] = null; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep22.CompletionQuestVariablesFlags = list426; + index3 = 6; + List list425 = new List(index3); + CollectionsMarshal.SetCount(list425, index3); + Span span436 = CollectionsMarshal.AsSpan(list425); + num3 = 0; + span436[num3] = null; + num3++; + span436[num3] = null; + num3++; + span436[num3] = null; + num3++; + span436[num3] = null; + num3++; + span436[num3] = null; + num3++; + span436[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep22.CompletionQuestVariablesFlags = list425; reference333 = questStep22; - ref QuestStep reference334 = ref span117[2]; + num2++; + ref QuestStep reference334 = ref span433[num2]; QuestStep obj313 = new QuestStep(EInteractionType.Combat, 2009856u, new Vector3(337.08704f, -35.01947f, 42.313232f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list427 = new List(num3); - CollectionsMarshal.SetCount(list427, num3); - CollectionsMarshal.AsSpan(list427)[0] = 10876u; - obj313.KillEnemyDataIds = list427; - num3 = 6; - List list428 = new List(num3); - CollectionsMarshal.SetCount(list428, num3); - Span span120 = CollectionsMarshal.AsSpan(list428); - span120[0] = null; - span120[1] = null; - span120[2] = null; - span120[3] = null; - span120[4] = null; - span120[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj313.CompletionQuestVariablesFlags = list428; + List list426 = new List(num3); + CollectionsMarshal.SetCount(list426, num3); + Span span437 = CollectionsMarshal.AsSpan(list426); + index3 = 0; + span437[index3] = 10876u; + obj313.KillEnemyDataIds = list426; + index3 = 6; + List list427 = new List(index3); + CollectionsMarshal.SetCount(list427, index3); + Span span438 = CollectionsMarshal.AsSpan(list427); + num3 = 0; + span438[num3] = null; + num3++; + span438[num3] = null; + num3++; + span438[num3] = null; + num3++; + span438[num3] = null; + num3++; + span438[num3] = null; + num3++; + span438[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj313.CompletionQuestVariablesFlags = list427; reference334 = obj313; - obj311.Steps = list423; + obj311.Steps = list422; reference331 = obj311; - ref QuestSequence reference335 = ref span116[2]; + num++; + ref QuestSequence reference335 = ref span431[num]; QuestSequence obj314 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list429 = new List(num2); - CollectionsMarshal.SetCount(list429, num2); - CollectionsMarshal.AsSpan(list429)[0] = new QuestStep(EInteractionType.Interact, 1029003u, new Vector3(392.4773f, -33.87629f, 229.54138f), 815); - obj314.Steps = list429; + List list428 = new List(num2); + CollectionsMarshal.SetCount(list428, num2); + Span span439 = CollectionsMarshal.AsSpan(list428); + index2 = 0; + span439[index2] = new QuestStep(EInteractionType.Interact, 1029003u, new Vector3(392.4773f, -33.87629f, 229.54138f), 815); + obj314.Steps = list428; reference335 = obj314; - ref QuestSequence reference336 = ref span116[3]; + num++; + ref QuestSequence reference336 = ref span431[num]; QuestSequence obj315 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list430 = new List(num2); - CollectionsMarshal.SetCount(list430, num2); - CollectionsMarshal.AsSpan(list430)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); - obj315.Steps = list430; + index2 = 1; + List list429 = new List(index2); + CollectionsMarshal.SetCount(list429, index2); + Span span440 = CollectionsMarshal.AsSpan(list429); + num2 = 0; + span440[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); + obj315.Steps = list429; reference336 = obj315; - questRoot60.QuestSequence = list421; - AddQuest(questId47, questRoot60); + questRoot60.QuestSequence = list8; + AddQuest(questId47, questRoot2); QuestId questId48 = new QuestId(3297); questRoot2 = new QuestRoot(); QuestRoot questRoot61 = questRoot2; num = 1; - List list431 = new List(num); - CollectionsMarshal.SetCount(list431, num); - CollectionsMarshal.AsSpan(list431)[0] = "liza"; - questRoot61.Author = list431; + List list430 = new List(num); + CollectionsMarshal.SetCount(list430, num); + Span span441 = CollectionsMarshal.AsSpan(list430); + index = 0; + span441[index] = "liza"; + questRoot61.Author = list430; QuestRoot questRoot62 = questRoot2; - num = 9; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span121 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference337 = ref span121[0]; + index = 9; + List list431 = new List(index); + CollectionsMarshal.SetCount(list431, index); + Span span442 = CollectionsMarshal.AsSpan(list431); + num = 0; + ref QuestSequence reference337 = ref span442[num]; QuestSequence obj316 = new QuestSequence { Sequence = 0 @@ -221438,21 +267790,27 @@ public static class AssemblyQuestLoader num2 = 1; List list432 = new List(num2); CollectionsMarshal.SetCount(list432, num2); - CollectionsMarshal.AsSpan(list432)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); + Span span443 = CollectionsMarshal.AsSpan(list432); + index2 = 0; + span443[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); obj316.Steps = list432; reference337 = obj316; - ref QuestSequence reference338 = ref span121[1]; + num++; + ref QuestSequence reference338 = ref span442[num]; QuestSequence obj317 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list433 = new List(num2); - CollectionsMarshal.SetCount(list433, num2); - CollectionsMarshal.AsSpan(list433)[0] = new QuestStep(EInteractionType.Interact, 1027909u, new Vector3(357.47314f, -27.145874f, 317.28076f), 815); + index2 = 1; + List list433 = new List(index2); + CollectionsMarshal.SetCount(list433, index2); + Span span444 = CollectionsMarshal.AsSpan(list433); + num2 = 0; + span444[num2] = new QuestStep(EInteractionType.Interact, 1027909u, new Vector3(357.47314f, -27.145874f, 317.28076f), 815); obj317.Steps = list433; reference338 = obj317; - ref QuestSequence reference339 = ref span121[2]; + num++; + ref QuestSequence reference339 = ref span442[num]; QuestSequence obj318 = new QuestSequence { Sequence = 2 @@ -221460,29 +267818,35 @@ public static class AssemblyQuestLoader num2 = 1; List list434 = new List(num2); CollectionsMarshal.SetCount(list434, num2); - CollectionsMarshal.AsSpan(list434)[0] = new QuestStep(EInteractionType.Interact, 1027910u, new Vector3(356.71008f, -27.8172f, 310.04797f), 815) + Span span445 = CollectionsMarshal.AsSpan(list434); + index2 = 0; + span445[index2] = new QuestStep(EInteractionType.Interact, 1027910u, new Vector3(356.71008f, -27.8172f, 310.04797f), 815) { StopDistance = 7f }; obj318.Steps = list434; reference339 = obj318; - ref QuestSequence reference340 = ref span121[3]; + num++; + ref QuestSequence reference340 = ref span442[num]; QuestSequence obj319 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list435 = new List(num2); - CollectionsMarshal.SetCount(list435, num2); - Span span122 = CollectionsMarshal.AsSpan(list435); - span122[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(362.283f, -27.966003f, 304.85144f), 815); - span122[1] = new QuestStep(EInteractionType.Interact, 1030386u, new Vector3(363.4851f, -27.966003f, 301.2893f), 815) + index2 = 2; + List list435 = new List(index2); + CollectionsMarshal.SetCount(list435, index2); + Span span446 = CollectionsMarshal.AsSpan(list435); + num2 = 0; + span446[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(362.283f, -27.966003f, 304.85144f), 815); + num2++; + span446[num2] = new QuestStep(EInteractionType.Interact, 1030386u, new Vector3(363.4851f, -27.966003f, 301.2893f), 815) { StopDistance = 5f }; obj319.Steps = list435; reference340 = obj319; - ref QuestSequence reference341 = ref span121[4]; + num++; + ref QuestSequence reference341 = ref span442[num]; QuestSequence obj320 = new QuestSequence { Sequence = 4 @@ -221490,24 +267854,30 @@ public static class AssemblyQuestLoader num2 = 1; List list436 = new List(num2); CollectionsMarshal.SetCount(list436, num2); - CollectionsMarshal.AsSpan(list436)[0] = new QuestStep(EInteractionType.Interact, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); + Span span447 = CollectionsMarshal.AsSpan(list436); + index2 = 0; + span447[index2] = new QuestStep(EInteractionType.Interact, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); obj320.Steps = list436; reference341 = obj320; - ref QuestSequence reference342 = ref span121[5]; + num++; + ref QuestSequence reference342 = ref span442[num]; QuestSequence obj321 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list437 = new List(num2); - CollectionsMarshal.SetCount(list437, num2); - CollectionsMarshal.AsSpan(list437)[0] = new QuestStep(EInteractionType.Interact, 1027873u, new Vector3(312.24524f, 1.4685826f, -186.14484f), 815) + index2 = 1; + List list437 = new List(index2); + CollectionsMarshal.SetCount(list437, index2); + Span span448 = CollectionsMarshal.AsSpan(list437); + num2 = 0; + span448[num2] = new QuestStep(EInteractionType.Interact, 1027873u, new Vector3(312.24524f, 1.4685826f, -186.14484f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; obj321.Steps = list437; reference342 = obj321; - ref QuestSequence reference343 = ref span121[6]; + num++; + ref QuestSequence reference343 = ref span442[num]; QuestSequence obj322 = new QuestSequence { Sequence = 6 @@ -221515,21 +267885,27 @@ public static class AssemblyQuestLoader num2 = 1; List list438 = new List(num2); CollectionsMarshal.SetCount(list438, num2); - CollectionsMarshal.AsSpan(list438)[0] = new QuestStep(EInteractionType.Interact, 1029007u, new Vector3(215.13696f, 7.1558266f, -214.3435f), 815); + Span span449 = CollectionsMarshal.AsSpan(list438); + index2 = 0; + span449[index2] = new QuestStep(EInteractionType.Interact, 1029007u, new Vector3(215.13696f, 7.1558266f, -214.3435f), 815); obj322.Steps = list438; reference343 = obj322; - ref QuestSequence reference344 = ref span121[7]; + num++; + ref QuestSequence reference344 = ref span442[num]; QuestSequence obj323 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list439 = new List(num2); - CollectionsMarshal.SetCount(list439, num2); - CollectionsMarshal.AsSpan(list439)[0] = new QuestStep(EInteractionType.Interact, 1029007u, new Vector3(215.13696f, 7.1558266f, -214.3435f), 815); + index2 = 1; + List list439 = new List(index2); + CollectionsMarshal.SetCount(list439, index2); + Span span450 = CollectionsMarshal.AsSpan(list439); + num2 = 0; + span450[num2] = new QuestStep(EInteractionType.Interact, 1029007u, new Vector3(215.13696f, 7.1558266f, -214.3435f), 815); obj323.Steps = list439; reference344 = obj323; - ref QuestSequence reference345 = ref span121[8]; + num++; + ref QuestSequence reference345 = ref span442[num]; QuestSequence obj324 = new QuestSequence { Sequence = byte.MaxValue @@ -221537,13 +267913,15 @@ public static class AssemblyQuestLoader num2 = 1; List list440 = new List(num2); CollectionsMarshal.SetCount(list440, num2); - CollectionsMarshal.AsSpan(list440)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815) + Span span451 = CollectionsMarshal.AsSpan(list440); + index2 = 0; + span451[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj324.Steps = list440; reference345 = obj324; - questRoot62.QuestSequence = list8; + questRoot62.QuestSequence = list431; AddQuest(questId48, questRoot2); QuestId questId49 = new QuestId(3298); questRoot2 = new QuestRoot(); @@ -221551,25 +267929,31 @@ public static class AssemblyQuestLoader num = 1; List list441 = new List(num); CollectionsMarshal.SetCount(list441, num); - CollectionsMarshal.AsSpan(list441)[0] = "liza"; + Span span452 = CollectionsMarshal.AsSpan(list441); + index = 0; + span452[index] = "liza"; questRoot63.Author = list441; QuestRoot questRoot64 = questRoot2; - num = 8; - list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span123 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference346 = ref span123[0]; + index = 8; + list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span453 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference346 = ref span453[num]; QuestSequence obj325 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list442 = new List(num2); - CollectionsMarshal.SetCount(list442, num2); - CollectionsMarshal.AsSpan(list442)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); + index2 = 1; + List list442 = new List(index2); + CollectionsMarshal.SetCount(list442, index2); + Span span454 = CollectionsMarshal.AsSpan(list442); + num2 = 0; + span454[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); obj325.Steps = list442; reference346 = obj325; - ref QuestSequence reference347 = ref span123[1]; + num++; + ref QuestSequence reference347 = ref span453[num]; QuestSequence obj326 = new QuestSequence { Sequence = 1 @@ -221577,24 +267961,30 @@ public static class AssemblyQuestLoader num2 = 1; List list443 = new List(num2); CollectionsMarshal.SetCount(list443, num2); - CollectionsMarshal.AsSpan(list443)[0] = new QuestStep(EInteractionType.Interact, 1029008u, new Vector3(399.64905f, -28.357803f, 349.813f), 815) + Span span455 = CollectionsMarshal.AsSpan(list443); + index2 = 0; + span455[index2] = new QuestStep(EInteractionType.Interact, 1029008u, new Vector3(399.64905f, -28.357803f, 349.813f), 815) { StopDistance = 7f }; obj326.Steps = list443; reference347 = obj326; - ref QuestSequence reference348 = ref span123[2]; + num++; + ref QuestSequence reference348 = ref span453[num]; QuestSequence obj327 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list444 = new List(num2); - CollectionsMarshal.SetCount(list444, num2); - CollectionsMarshal.AsSpan(list444)[0] = new QuestStep(EInteractionType.Interact, 2009858u, new Vector3(473.50256f, -72.67877f, 487.57153f), 815); + index2 = 1; + List list444 = new List(index2); + CollectionsMarshal.SetCount(list444, index2); + Span span456 = CollectionsMarshal.AsSpan(list444); + num2 = 0; + span456[num2] = new QuestStep(EInteractionType.Interact, 2009858u, new Vector3(473.50256f, -72.67877f, 487.57153f), 815); obj327.Steps = list444; reference348 = obj327; - ref QuestSequence reference349 = ref span123[3]; + num++; + ref QuestSequence reference349 = ref span453[num]; QuestSequence obj328 = new QuestSequence { Sequence = 3 @@ -221602,7 +267992,9 @@ public static class AssemblyQuestLoader num2 = 1; List list445 = new List(num2); CollectionsMarshal.SetCount(list445, num2); - ref QuestStep reference350 = ref CollectionsMarshal.AsSpan(list445)[0]; + Span span457 = CollectionsMarshal.AsSpan(list445); + index2 = 0; + ref QuestStep reference350 = ref span457[index2]; QuestStep obj329 = new QuestStep(EInteractionType.Combat, 2009859u, new Vector3(317.28076f, -76.554565f, 476.64612f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -221610,23 +268002,29 @@ public static class AssemblyQuestLoader num3 = 1; List list446 = new List(num3); CollectionsMarshal.SetCount(list446, num3); - CollectionsMarshal.AsSpan(list446)[0] = 10877u; + Span span458 = CollectionsMarshal.AsSpan(list446); + index3 = 0; + span458[index3] = 10877u; obj329.KillEnemyDataIds = list446; reference350 = obj329; obj328.Steps = list445; reference349 = obj328; - ref QuestSequence reference351 = ref span123[4]; + num++; + ref QuestSequence reference351 = ref span453[num]; QuestSequence obj330 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list447 = new List(num2); - CollectionsMarshal.SetCount(list447, num2); - CollectionsMarshal.AsSpan(list447)[0] = new QuestStep(EInteractionType.Interact, 2009860u, new Vector3(284.26025f, -43.90027f, 302.2965f), 815); + index2 = 1; + List list447 = new List(index2); + CollectionsMarshal.SetCount(list447, index2); + Span span459 = CollectionsMarshal.AsSpan(list447); + num2 = 0; + span459[num2] = new QuestStep(EInteractionType.Interact, 2009860u, new Vector3(284.26025f, -43.90027f, 302.2965f), 815); obj330.Steps = list447; reference351 = obj330; - ref QuestSequence reference352 = ref span123[5]; + num++; + ref QuestSequence reference352 = ref span453[num]; QuestSequence obj331 = new QuestSequence { Sequence = 5 @@ -221634,49 +268032,67 @@ public static class AssemblyQuestLoader num2 = 1; List list448 = new List(num2); CollectionsMarshal.SetCount(list448, num2); - CollectionsMarshal.AsSpan(list448)[0] = new QuestStep(EInteractionType.Interact, 1029010u, new Vector3(401.3275f, -28.80457f, 260.21204f), 815); + Span span460 = CollectionsMarshal.AsSpan(list448); + index2 = 0; + span460[index2] = new QuestStep(EInteractionType.Interact, 1029010u, new Vector3(401.3275f, -28.80457f, 260.21204f), 815); obj331.Steps = list448; reference352 = obj331; - ref QuestSequence reference353 = ref span123[6]; + num++; + ref QuestSequence reference353 = ref span453[num]; QuestSequence obj332 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list449 = new List(num2); - CollectionsMarshal.SetCount(list449, num2); - Span span124 = CollectionsMarshal.AsSpan(list449); - ref QuestStep reference354 = ref span124[0]; + index2 = 2; + List list449 = new List(index2); + CollectionsMarshal.SetCount(list449, index2); + Span span461 = CollectionsMarshal.AsSpan(list449); + num2 = 0; + ref QuestStep reference354 = ref span461[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1027906u, new Vector3(423.14795f, -26.83098f, 294.6974f), 815); - num3 = 6; - List list450 = new List(num3); - CollectionsMarshal.SetCount(list450, num3); - Span span125 = CollectionsMarshal.AsSpan(list450); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list450 = new List(index3); + CollectionsMarshal.SetCount(list450, index3); + Span span462 = CollectionsMarshal.AsSpan(list450); + num3 = 0; + span462[num3] = null; + num3++; + span462[num3] = null; + num3++; + span462[num3] = null; + num3++; + span462[num3] = null; + num3++; + span462[num3] = null; + num3++; + span462[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list450; reference354 = questStep23; - ref QuestStep reference355 = ref span124[1]; + num2++; + ref QuestStep reference355 = ref span461[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1027911u, new Vector3(378.71362f, -28.255466f, 324.97144f), 815); num3 = 6; List list451 = new List(num3); CollectionsMarshal.SetCount(list451, num3); - Span span126 = CollectionsMarshal.AsSpan(list451); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span463 = CollectionsMarshal.AsSpan(list451); + index3 = 0; + span463[index3] = null; + index3++; + span463[index3] = null; + index3++; + span463[index3] = null; + index3++; + span463[index3] = null; + index3++; + span463[index3] = null; + index3++; + span463[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list451; reference355 = questStep24; obj332.Steps = list449; reference353 = obj332; - ref QuestSequence reference356 = ref span123[7]; + num++; + ref QuestSequence reference356 = ref span453[num]; QuestSequence obj333 = new QuestSequence { Sequence = byte.MaxValue @@ -221684,7 +268100,9 @@ public static class AssemblyQuestLoader num2 = 1; List list452 = new List(num2); CollectionsMarshal.SetCount(list452, num2); - CollectionsMarshal.AsSpan(list452)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029012u, new Vector3(400.80872f, -28.75819f, 257.28235f), 815); + Span span464 = CollectionsMarshal.AsSpan(list452); + index2 = 0; + span464[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029012u, new Vector3(400.80872f, -28.75819f, 257.28235f), 815); obj333.Steps = list452; reference356 = obj333; questRoot64.QuestSequence = list8; @@ -221694,24 +268112,30 @@ public static class AssemblyQuestLoader num = 1; List list453 = new List(num); CollectionsMarshal.SetCount(list453, num); - CollectionsMarshal.AsSpan(list453)[0] = "liza"; + Span span465 = CollectionsMarshal.AsSpan(list453); + index = 0; + span465[index] = "liza"; questRoot65.Author = list453; - num = 4; - List list454 = new List(num); - CollectionsMarshal.SetCount(list454, num); - Span span127 = CollectionsMarshal.AsSpan(list454); - ref QuestSequence reference357 = ref span127[0]; + index = 4; + List list454 = new List(index); + CollectionsMarshal.SetCount(list454, index); + Span span466 = CollectionsMarshal.AsSpan(list454); + num = 0; + ref QuestSequence reference357 = ref span466[num]; QuestSequence obj334 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list455 = new List(num2); - CollectionsMarshal.SetCount(list455, num2); - CollectionsMarshal.AsSpan(list455)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029010u, new Vector3(401.3275f, -28.80457f, 260.21204f), 815); + index2 = 1; + List list455 = new List(index2); + CollectionsMarshal.SetCount(list455, index2); + Span span467 = CollectionsMarshal.AsSpan(list455); + num2 = 0; + span467[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029010u, new Vector3(401.3275f, -28.80457f, 260.21204f), 815); obj334.Steps = list455; reference357 = obj334; - ref QuestSequence reference358 = ref span127[1]; + num++; + ref QuestSequence reference358 = ref span466[num]; QuestSequence obj335 = new QuestSequence { Sequence = 1 @@ -221719,8 +268143,9 @@ public static class AssemblyQuestLoader num2 = 3; List list456 = new List(num2); CollectionsMarshal.SetCount(list456, num2); - Span span128 = CollectionsMarshal.AsSpan(list456); - span128[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.63951f, 36.19769f, -170.36603f), 819) + Span span468 = CollectionsMarshal.AsSpan(list456); + index2 = 0; + span468[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.63951f, 36.19769f, -170.36603f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -221729,25 +268154,31 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - span128[1] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) + index2++; + span468[index2] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) { TargetTerritoryId = (ushort)815 }; - span128[2] = new QuestStep(EInteractionType.Interact, 1029013u, new Vector3(664.4236f, -48.865906f, -651.3619f), 815); + index2++; + span468[index2] = new QuestStep(EInteractionType.Interact, 1029013u, new Vector3(664.4236f, -48.865906f, -651.3619f), 815); obj335.Steps = list456; reference358 = obj335; - ref QuestSequence reference359 = ref span127[2]; + num++; + ref QuestSequence reference359 = ref span466[num]; QuestSequence obj336 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list457 = new List(num2); - CollectionsMarshal.SetCount(list457, num2); - CollectionsMarshal.AsSpan(list457)[0] = new QuestStep(EInteractionType.Interact, 1029014u, new Vector3(46.707764f, 36.197685f, -167.43726f), 819); + index2 = 1; + List list457 = new List(index2); + CollectionsMarshal.SetCount(list457, index2); + Span span469 = CollectionsMarshal.AsSpan(list457); + num2 = 0; + span469[num2] = new QuestStep(EInteractionType.Interact, 1029014u, new Vector3(46.707764f, 36.197685f, -167.43726f), 819); obj336.Steps = list457; reference359 = obj336; - ref QuestSequence reference360 = ref span127[3]; + num++; + ref QuestSequence reference360 = ref span466[num]; QuestSequence obj337 = new QuestSequence { Sequence = byte.MaxValue @@ -221755,8 +268186,9 @@ public static class AssemblyQuestLoader num2 = 2; List list458 = new List(num2); CollectionsMarshal.SetCount(list458, num2); - Span span129 = CollectionsMarshal.AsSpan(list458); - span129[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + Span span470 = CollectionsMarshal.AsSpan(list458); + index2 = 0; + span470[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -221765,7 +268197,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span129[1] = new QuestStep(EInteractionType.CompleteQuest, 1029015u, new Vector3(2.243042f, 0f, -4.1047363f), 844); + index2++; + span470[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029015u, new Vector3(2.243042f, 0f, -4.1047363f), 844); obj337.Steps = list458; reference360 = obj337; questRoot65.QuestSequence = list454; @@ -221779,13 +268212,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 7; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -221793,27 +268229,33 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844) { StopDistance = 7f }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -221821,8 +268263,9 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010024u, new Vector3(554.2534f, 17.92926f, 352.1018f), 813) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010024u, new Vector3(554.2534f, 17.92926f, 352.1018f), 813) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -221832,32 +268275,40 @@ public static class AssemblyQuestLoader }, AetherCurrentId = 2818223u }; - span2[1] = new QuestStep(EInteractionType.Interact, 1028928u, new Vector3(347.98206f, 3.5166266f, 167.89502f), 813); + index2++; + span5[index2] = new QuestStep(EInteractionType.Interact, 1028928u, new Vector3(347.98206f, 3.5166266f, 167.89502f), 813); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 5; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - Span span3 = CollectionsMarshal.AsSpan(list6); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(697.40857f, 21.402163f, -28.658777f), 813); - span3[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 813) + index2 = 5; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(697.40857f, 21.402163f, -28.658777f), 813); + num2++; + span6[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 813) { Aetheryte = EAetheryteLocation.LakelandFortJobb }; - span3[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(601.42426f, 23.210327f, -223.36815f), 813); - span3[3] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010028u, new Vector3(613.24475f, 24.002441f, -231.15894f), 813) + num2++; + span6[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(601.42426f, 23.210327f, -223.36815f), 813); + num2++; + span6[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010028u, new Vector3(613.24475f, 24.002441f, -231.15894f), 813) { AetherCurrentId = 2818227u }; - span3[4] = new QuestStep(EInteractionType.Interact, 1029846u, new Vector3(682.33765f, 101.7017f, -710.3533f), 813); + num2++; + span6[num2] = new QuestStep(EInteractionType.Interact, 1029846u, new Vector3(682.33765f, 101.7017f, -710.3533f), 813); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -221865,7 +268316,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Duty, null, null, 813) + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.Duty, null, null, 813) { DutyOptions = new DutyOptions { @@ -221875,19 +268328,23 @@ public static class AssemblyQuestLoader }; obj5.Steps = list7; reference5 = obj5; - span[5] = new QuestSequence + num++; + span2[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference6 = ref span[6]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029846u, new Vector3(682.33765f, 101.7017f, -710.3533f), 813); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029846u, new Vector3(682.33765f, 101.7017f, -710.3533f), 813); obj6.Steps = list8; reference6 = obj6; questRoot.QuestSequence = list2; @@ -221897,13 +268354,16 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "liza"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "liza"; questRoot2.Author = list9; - num = 5; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span4 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span4[0]; + index = 5; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span10[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -221911,24 +268371,30 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029846u, new Vector3(682.33765f, 101.7017f, -710.3533f), 813); + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029846u, new Vector3(682.33765f, 101.7017f, -710.3533f), 813); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span4[1]; + num++; + ref QuestSequence reference8 = ref span10[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1028929u, new Vector3(-4.501404f, -2.4866313E-07f, -7.370178f), 819) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.Interact, 1028929u, new Vector3(-4.501404f, -2.4866313E-07f, -7.370178f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span4[2]; + num++; + ref QuestSequence reference9 = ref span10[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 @@ -221936,24 +268402,30 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819); + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span4[3]; + num++; + ref QuestSequence reference10 = ref span10[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1027322u, new Vector3(-20.126648f, 3.9998171f, 204.24194f), 819) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.Interact, 1027322u, new Vector3(-20.126648f, 3.9998171f, 204.24194f), 819) { StopDistance = 4f }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span4[4]; + num++; + ref QuestSequence reference11 = ref span10[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -221961,7 +268433,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref QuestStep reference12 = ref span15[index2]; QuestStep obj12 = new QuestStep(EInteractionType.CompleteQuest, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 5f @@ -221969,7 +268443,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice + Span span16 = CollectionsMarshal.AsSpan(list16); + int index3 = 0; + span16[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA402_03301_Q1_000_000") @@ -221985,24 +268461,30 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "liza"; questRoot3.Author = list17; - num = 6; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span5 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span5[0]; + index = 6; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span18[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819); + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819); obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span5[1]; + num++; + ref QuestSequence reference14 = ref span18[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -222010,12 +268492,14 @@ public static class AssemblyQuestLoader num2 = 2; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span6 = CollectionsMarshal.AsSpan(list20); - span6[0] = new QuestStep(EInteractionType.AcceptQuest, 1027948u, new Vector3(40.42102f, 2.232896f, 261.49377f), 819) + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027948u, new Vector3(40.42102f, 2.232896f, 261.49377f), 819) { PickUpQuestId = new QuestId(3380) }; - span6[1] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + index2++; + span20[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -222034,15 +268518,18 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span5[2]; + num++; + ref QuestSequence reference15 = ref span18[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -222053,7 +268540,8 @@ public static class AssemblyQuestLoader }; obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference16 = ref span5[3]; + num++; + ref QuestSequence reference16 = ref span18[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -222061,21 +268549,27 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 2009809u, new Vector3(-62.638306f, -35.446716f, -275.83734f), 819); + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.Interact, 2009809u, new Vector3(-62.638306f, -35.446716f, -275.83734f), 819); obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span5[4]; + num++; + ref QuestSequence reference17 = ref span18[num]; QuestSequence obj17 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819); + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819); obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span5[5]; + num++; + ref QuestSequence reference18 = ref span18[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -222083,7 +268577,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028941u, new Vector3(-67.0329f, -37.700005f, -209.15546f), 819); + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028941u, new Vector3(-67.0329f, -37.700005f, -209.15546f), 819); obj18.Steps = list24; reference18 = obj18; questRoot3.QuestSequence = list18; @@ -222093,27 +268589,33 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "liza"; questRoot4.Author = list25; - num = 6; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span7 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference19 = ref span7[0]; + index = 6; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference19 = ref span26[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028943u, new Vector3(-65.4765f, -37.7f, -209.0028f), 819) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028943u, new Vector3(-65.4765f, -37.7f, -209.0028f), 819) { StopDistance = 5f }; obj19.Steps = list27; reference19 = obj19; - ref QuestSequence reference20 = ref span7[1]; + num++; + ref QuestSequence reference20 = ref span26[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -222121,21 +268623,26 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1028944u, new Vector3(-63.767517f, -37.7f, -210.2846f), 819) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.Interact, 1028944u, new Vector3(-63.767517f, -37.7f, -210.2846f), 819) { StopDistance = 5f }; obj20.Steps = list28; reference20 = obj20; - ref QuestSequence reference21 = ref span7[2]; + num++; + ref QuestSequence reference21 = ref span26[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.Interact, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819) { AethernetShortcut = new AethernetShortcut { @@ -222145,7 +268652,8 @@ public static class AssemblyQuestLoader }; obj21.Steps = list29; reference21 = obj21; - ref QuestSequence reference22 = ref span7[3]; + num++; + ref QuestSequence reference22 = ref span26[num]; QuestSequence obj22 = new QuestSequence { Sequence = 3 @@ -222153,7 +268661,9 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) { AethernetShortcut = new AethernetShortcut { @@ -222163,21 +268673,25 @@ public static class AssemblyQuestLoader }; obj22.Steps = list30; reference22 = obj22; - ref QuestSequence reference23 = ref span7[4]; + num++; + ref QuestSequence reference23 = ref span26[num]; QuestSequence obj23 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-28.545706f, -0.65f, -49.711563f), 819) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-28.545706f, -0.65f, -49.711563f), 819) { ItemId = 2002531u }; obj23.Steps = list31; reference23 = obj23; - ref QuestSequence reference24 = ref span7[5]; + num++; + ref QuestSequence reference24 = ref span26[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue @@ -222185,7 +268699,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027246u, new Vector3(-136.98022f, 0f, -73.777466f), 819) + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027246u, new Vector3(-136.98022f, 0f, -73.777466f), 819) { AethernetShortcut = new AethernetShortcut { @@ -222202,24 +268718,30 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; + Span span33 = CollectionsMarshal.AsSpan(list33); + index = 0; + span33[index] = "liza"; questRoot5.Author = list33; - num = 6; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span8 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference25 = ref span8[0]; + index = 6; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + Span span34 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference25 = ref span34[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027246u, new Vector3(-136.98022f, 0f, -73.777466f), 819); + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027246u, new Vector3(-136.98022f, 0f, -73.777466f), 819); obj25.Steps = list35; reference25 = obj25; - ref QuestSequence reference26 = ref span8[1]; + num++; + ref QuestSequence reference26 = ref span34[num]; QuestSequence obj26 = new QuestSequence { Sequence = 1 @@ -222227,24 +268749,30 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1028945u, new Vector3(588.55554f, 9.151089f, 342.7328f), 813); + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.Interact, 1028945u, new Vector3(588.55554f, 9.151089f, 342.7328f), 813); obj26.Steps = list36; reference26 = obj26; - ref QuestSequence reference27 = ref span8[2]; + num++; + ref QuestSequence reference27 = ref span34[num]; QuestSequence obj27 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-163.7502f, 5.7616043f, -84.08555f), 813) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-163.7502f, 5.7616043f, -84.08555f), 813) { Fly = true }; obj27.Steps = list37; reference27 = obj27; - ref QuestSequence reference28 = ref span8[3]; + num++; + ref QuestSequence reference28 = ref span34[num]; QuestSequence obj28 = new QuestSequence { Sequence = 3 @@ -222252,27 +268780,33 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-621.27985f, 56.75789f, -151.14738f), 813) + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-621.27985f, 56.75789f, -151.14738f), 813) { Fly = true }; obj28.Steps = list38; reference28 = obj28; - ref QuestSequence reference29 = ref span8[4]; + num++; + ref QuestSequence reference29 = ref span34[num]; QuestSequence obj29 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1027395u, new Vector3(-618.06665f, 56.75789f, -148.24146f), 813) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.Interact, 1027395u, new Vector3(-618.06665f, 56.75789f, -148.24146f), 813) { StopDistance = 5f }; obj29.Steps = list39; reference29 = obj29; - ref QuestSequence reference30 = ref span8[5]; + num++; + ref QuestSequence reference30 = ref span34[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -222280,23 +268814,29 @@ public static class AssemblyQuestLoader num2 = 6; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span9 = CollectionsMarshal.AsSpan(list40); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-655.08356f, 52.60457f, -186.09218f), 813); - span9[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-628.89685f, 52.60457f, -190.31772f), 813) + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-655.08356f, 52.60457f, -186.09218f), 813); + index2++; + span40[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-628.89685f, 52.60457f, -190.31772f), 813) { DisableNavmesh = true }; - span9[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010032u, new Vector3(-619.6537f, 51.499146f, -199.11499f), 813) + index2++; + span40[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010032u, new Vector3(-619.6537f, 51.499146f, -199.11499f), 813) { DisableNavmesh = true, AetherCurrentId = 2818231u }; - span9[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 813) + index2++; + span40[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 813) { Aetheryte = EAetheryteLocation.LakelandOstallImperative }; - span9[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-694.6047f, 50.939487f, -270.97464f), 813); - span9[5] = new QuestStep(EInteractionType.CompleteQuest, 1028947u, new Vector3(-648.9509f, 64.32663f, -271.65643f), 813) + index2++; + span40[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-694.6047f, 50.939487f, -270.97464f), 813); + index2++; + span40[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028947u, new Vector3(-648.9509f, 64.32663f, -271.65643f), 813) { DisableNavmesh = true }; @@ -222309,24 +268849,30 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + Span span41 = CollectionsMarshal.AsSpan(list41); + index = 0; + span41[index] = "liza"; questRoot6.Author = list41; - num = 7; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span10 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference31 = ref span10[0]; + index = 7; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + Span span42 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference31 = ref span42[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028947u, new Vector3(-648.9509f, 64.32663f, -271.65643f), 813); + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028947u, new Vector3(-648.9509f, 64.32663f, -271.65643f), 813); obj31.Steps = list43; reference31 = obj31; - ref QuestSequence reference32 = ref span10[1]; + num++; + ref QuestSequence reference32 = ref span42[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -222334,67 +268880,92 @@ public static class AssemblyQuestLoader num2 = 2; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span11 = CollectionsMarshal.AsSpan(list44); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-635.37024f, 56.201702f, -142.69623f), 813); - span11[1] = new QuestStep(EInteractionType.Interact, 2009814u, new Vector3(-636.16394f, 57.358643f, -137.62122f), 813); + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-635.37024f, 56.201702f, -142.69623f), 813); + index2++; + span44[index2] = new QuestStep(EInteractionType.Interact, 2009814u, new Vector3(-636.16394f, 57.358643f, -137.62122f), 813); obj32.Steps = list44; reference32 = obj32; - ref QuestSequence reference33 = ref span10[2]; + num++; + ref QuestSequence reference33 = ref span42[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - Span span12 = CollectionsMarshal.AsSpan(list45); - ref QuestStep reference34 = ref span12[0]; + index2 = 5; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + ref QuestStep reference34 = ref span45[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1028951u, new Vector3(-639.0631f, 56.95372f, -167.71198f), 813); - num3 = 6; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - Span span13 = CollectionsMarshal.AsSpan(list46); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list46 = new List(index3); + CollectionsMarshal.SetCount(list46, index3); + Span span46 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span46[num3] = null; + num3++; + span46[num3] = null; + num3++; + span46[num3] = null; + num3++; + span46[num3] = null; + num3++; + span46[num3] = null; + num3++; + span46[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list46; reference34 = questStep; - ref QuestStep reference35 = ref span12[1]; + num2++; + ref QuestStep reference35 = ref span45[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-679.40436f, 52.60457f, -153.66644f), 813); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - Span span14 = CollectionsMarshal.AsSpan(list47); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span47 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span47[index3] = null; + index3++; + span47[index3] = null; + index3++; + span47[index3] = null; + index3++; + span47[index3] = null; + index3++; + span47[index3] = null; + index3++; + span47[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list47; skipConditions.StepIf = skipStepConditions; questStep2.SkipConditions = skipConditions; reference35 = questStep2; - ref QuestStep reference36 = ref span12[2]; + num2++; + ref QuestStep reference36 = ref span45[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1028952u, new Vector3(-750.20984f, 66.442f, -194.32367f), 813); - num3 = 6; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - Span span15 = CollectionsMarshal.AsSpan(list48); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list48 = new List(index3); + CollectionsMarshal.SetCount(list48, index3); + Span span48 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list48; reference36 = questStep3; - ref QuestStep reference37 = ref span12[3]; + num2++; + ref QuestStep reference37 = ref span45[num2]; QuestStep obj34 = new QuestStep(EInteractionType.Interact, 1028953u, new Vector3(-776.51636f, 51.56758f, -243.57977f), 813) { DisableNavmesh = true, @@ -222403,36 +268974,50 @@ public static class AssemblyQuestLoader num3 = 6; List list49 = new List(num3); CollectionsMarshal.SetCount(list49, num3); - Span span16 = CollectionsMarshal.AsSpan(list49); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span49 = CollectionsMarshal.AsSpan(list49); + index3 = 0; + span49[index3] = null; + index3++; + span49[index3] = null; + index3++; + span49[index3] = null; + index3++; + span49[index3] = null; + index3++; + span49[index3] = null; + index3++; + span49[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj34.CompletionQuestVariablesFlags = list49; reference37 = obj34; - ref QuestStep reference38 = ref span12[4]; + num2++; + ref QuestStep reference38 = ref span45[num2]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 1028954u, new Vector3(-715.78546f, 51.50113f, -265.49176f), 813) { DisableNavmesh = true, Mount = true }; - num3 = 6; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - Span span17 = CollectionsMarshal.AsSpan(list50); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + Span span50 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span50[num3] = null; + num3++; + span50[num3] = null; + num3++; + span50[num3] = null; + num3++; + span50[num3] = null; + num3++; + span50[num3] = null; + num3++; + span50[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj35.CompletionQuestVariablesFlags = list50; reference38 = obj35; obj33.Steps = list45; reference33 = obj33; - ref QuestSequence reference39 = ref span10[3]; + num++; + ref QuestSequence reference39 = ref span42[num]; QuestSequence obj36 = new QuestSequence { Sequence = 3 @@ -222440,31 +269025,38 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1028947u, new Vector3(-648.9509f, 64.32663f, -271.65643f), 813); + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.Interact, 1028947u, new Vector3(-648.9509f, 64.32663f, -271.65643f), 813); obj36.Steps = list51; reference39 = obj36; - ref QuestSequence reference40 = ref span10[4]; + num++; + ref QuestSequence reference40 = ref span42[num]; QuestSequence obj37 = new QuestSequence { Sequence = 4 }; - num2 = 16; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - Span span18 = CollectionsMarshal.AsSpan(list52); - span18[0] = new QuestStep(EInteractionType.AcceptQuest, 1031212u, new Vector3(-673.0907f, 51.157936f, -219.50104f), 813) + index2 = 16; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031212u, new Vector3(-673.0907f, 51.157936f, -219.50104f), 813) { PickUpQuestId = new QuestId(3385) }; - span18[1] = new QuestStep(EInteractionType.AcceptQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813) + num2++; + span52[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813) { PickUpQuestId = new QuestId(3384) }; - span18[2] = new QuestStep(EInteractionType.AcceptQuest, 1027419u, new Vector3(-700.7401f, 61.993748f, -353.62787f), 813) + num2++; + span52[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027419u, new Vector3(-700.7401f, 61.993748f, -353.62787f), 813) { PickUpQuestId = new QuestId(3386) }; - span18[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-724.9727f, 54.379677f, -289.8897f), 813) + num2++; + span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-724.9727f, 54.379677f, -289.8897f), 813) { Comment = "Tower Bottom", AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -222476,7 +269068,8 @@ public static class AssemblyQuestLoader } } }; - span18[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-757.78326f, 97.68395f, -372.66458f), 813) + num2++; + span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-757.78326f, 97.68395f, -372.66458f), 813) { DisableNavmesh = true, Comment = "Tower Bottom Platform 1", @@ -222488,7 +269081,8 @@ public static class AssemblyQuestLoader } } }; - span18[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.0622f, 149.62582f, -337.95224f), 813) + num2++; + span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.0622f, 149.62582f, -337.95224f), 813) { Comment = "Wooden Skywalk Bottom", SkipConditions = new SkipConditions @@ -222499,7 +269093,8 @@ public static class AssemblyQuestLoader } } }; - span18[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-765.9982f, 155.44612f, -338.81696f), 813) + num2++; + span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-765.9982f, 155.44612f, -338.81696f), 813) { DisableNavmesh = true, Comment = "Wooden Skywalk Platform 1", @@ -222511,7 +269106,8 @@ public static class AssemblyQuestLoader } } }; - span18[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-754.08276f, 168.09683f, -308.96964f), 813) + num2++; + span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-754.08276f, 168.09683f, -308.96964f), 813) { DisableNavmesh = true, Comment = "Wooden Skywalk Platform 2", @@ -222523,7 +269119,8 @@ public static class AssemblyQuestLoader } } }; - span18[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-785.5669f, 180.77463f, -297.20663f), 813) + num2++; + span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-785.5669f, 180.77463f, -297.20663f), 813) { DisableNavmesh = true, Comment = "Wooden Skywalk Platform 3", @@ -222535,7 +269132,8 @@ public static class AssemblyQuestLoader } } }; - span18[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-797.36646f, 193.39963f, -328.5602f), 813) + num2++; + span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-797.36646f, 193.39963f, -328.5602f), 813) { DisableNavmesh = true, Comment = "Wooden Skywalk Platform 4", @@ -222547,7 +269145,8 @@ public static class AssemblyQuestLoader } } }; - span18[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-778.27325f, 200.46912f, -335.60287f), 813) + num2++; + span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-778.27325f, 200.46912f, -335.60287f), 813) { DisableNavmesh = true, Comment = "Wooden Skywalk Top", @@ -222559,7 +269158,8 @@ public static class AssemblyQuestLoader } } }; - span18[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-773.5372f, 200.21283f, -331.92017f), 813) + num2++; + span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-773.5372f, 200.21283f, -331.92017f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -222570,7 +269170,8 @@ public static class AssemblyQuestLoader } } }; - span18[12] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-764.10376f, 200.22963f, -332.95276f), 813) + num2++; + span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-764.10376f, 200.22963f, -332.95276f), 813) { SkipConditions = new SkipConditions { @@ -222580,7 +269181,8 @@ public static class AssemblyQuestLoader } } }; - span18[13] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-757.3483f, 200.13994f, -312.77927f), 813) + num2++; + span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-757.3483f, 200.13994f, -312.77927f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -222591,7 +269193,8 @@ public static class AssemblyQuestLoader } } }; - span18[14] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-756.9433f, 200.1388f, -295.38437f), 813) + num2++; + span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-756.9433f, 200.1388f, -295.38437f), 813) { Fly = true, SkipConditions = new SkipConditions @@ -222602,7 +269205,8 @@ public static class AssemblyQuestLoader } } }; - span18[15] = new QuestStep(EInteractionType.SinglePlayerDuty, 1028955u, new Vector3(-755.67255f, 200.19878f, -293.87354f), 813) + num2++; + span52[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1028955u, new Vector3(-755.67255f, 200.19878f, -293.87354f), 813) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -222611,11 +269215,13 @@ public static class AssemblyQuestLoader }; obj37.Steps = list52; reference40 = obj37; - span10[5] = new QuestSequence + num++; + span42[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference41 = ref span10[6]; + num++; + ref QuestSequence reference41 = ref span42[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -222623,7 +269229,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028956u, new Vector3(-635.76715f, 126.0163f, 697.444f), 816) + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028956u, new Vector3(-635.76715f, 126.0163f, 697.444f), 816) { DisableNavmesh = true }; @@ -222636,27 +269244,33 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "liza"; + Span span54 = CollectionsMarshal.AsSpan(list54); + index = 0; + span54[index] = "liza"; questRoot7.Author = list54; - num = 4; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span19 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference42 = ref span19[0]; + index = 4; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + Span span55 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference42 = ref span55[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028956u, new Vector3(-635.76715f, 126.0163f, 697.444f), 816) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028956u, new Vector3(-635.76715f, 126.0163f, 697.444f), 816) { DisableNavmesh = true }; obj39.Steps = list56; reference42 = obj39; - ref QuestSequence reference43 = ref span19[1]; + num++; + ref QuestSequence reference43 = ref span55[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -222664,35 +269278,42 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1028970u, new Vector3(-370.41278f, 47.988583f, 497.3982f), 816); + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.Interact, 1028970u, new Vector3(-370.41278f, 47.988583f, 497.3982f), 816); obj40.Steps = list57; reference43 = obj40; - ref QuestSequence reference44 = ref span19[2]; + num++; + ref QuestSequence reference44 = ref span55[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - Span span20 = CollectionsMarshal.AsSpan(list58); - span20[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 816) + index2 = 2; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 816) { Aetheryte = EAetheryteLocation.IlMhegLydhaLran }; - ref QuestStep reference45 = ref span20[1]; + num2++; + ref QuestStep reference45 = ref span58[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2009816u, new Vector3(-382.8031f, 60.746094f, 530.5714f), 816); num3 = 2; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span21 = CollectionsMarshal.AsSpan(list59); - span21[0] = new DialogueChoice + Span span59 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span59[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMB105_03306_Q3_000_000"), Answer = new ExcelRef("TEXT_LUCKMB105_03306_A3_000_002") }; - span21[1] = new DialogueChoice + index3++; + span59[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMB105_03306_Q4_000_000"), @@ -222702,7 +269323,8 @@ public static class AssemblyQuestLoader reference45 = questStep4; obj41.Steps = list58; reference44 = obj41; - ref QuestSequence reference46 = ref span19[3]; + num++; + ref QuestSequence reference46 = ref span55[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -222710,7 +269332,9 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028970u, new Vector3(-370.41278f, 47.988583f, 497.3982f), 816); + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028970u, new Vector3(-370.41278f, 47.988583f, 497.3982f), 816); obj42.Steps = list60; reference46 = obj42; questRoot7.QuestSequence = list55; @@ -222720,24 +269344,30 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + Span span61 = CollectionsMarshal.AsSpan(list61); + index = 0; + span61[index] = "liza"; questRoot8.Author = list61; - num = 3; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span22 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference47 = ref span22[0]; + index = 3; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + Span span62 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference47 = ref span62[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027654u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816); + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027654u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816); obj43.Steps = list63; reference47 = obj43; - ref QuestSequence reference48 = ref span22[1]; + num++; + ref QuestSequence reference48 = ref span62[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -222745,30 +269375,39 @@ public static class AssemblyQuestLoader num2 = 6; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span23 = CollectionsMarshal.AsSpan(list64); - span23[0] = new QuestStep(EInteractionType.AcceptQuest, 1030266u, new Vector3(-367.66614f, 66.863594f, 557.1526f), 816) + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030266u, new Vector3(-367.66614f, 66.863594f, 557.1526f), 816) { PickUpQuestId = new QuestId(3395) }; - ref QuestStep reference49 = ref span23[1]; + index2++; + ref QuestStep reference49 = ref span64[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-359.70227f, 69.40222f, 546.2372f), 816); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span24 = CollectionsMarshal.AsSpan(list65); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list65 = new List(index3); + CollectionsMarshal.SetCount(list65, index3); + Span span65 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list65; skipConditions2.StepIf = skipStepConditions2; questStep5.SkipConditions = skipConditions2; reference49 = questStep5; - ref QuestStep reference50 = ref span23[2]; + index2++; + ref QuestStep reference50 = ref span64[index2]; QuestStep obj45 = new QuestStep(EInteractionType.UseItem, 2009820u, new Vector3(-375.29565f, 76.06616f, 550.4386f), 816) { DisableNavmesh = true, @@ -222777,37 +269416,51 @@ public static class AssemblyQuestLoader num3 = 6; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - Span span25 = CollectionsMarshal.AsSpan(list66); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span66 = CollectionsMarshal.AsSpan(list66); + index3 = 0; + span66[index3] = null; + index3++; + span66[index3] = null; + index3++; + span66[index3] = null; + index3++; + span66[index3] = null; + index3++; + span66[index3] = null; + index3++; + span66[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj45.CompletionQuestVariablesFlags = list66; reference50 = obj45; - ref QuestStep reference51 = ref span23[3]; + index2++; + ref QuestStep reference51 = ref span64[index2]; QuestStep obj46 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-391.67172f, 58.587833f, 553.26294f), 816) { DisableNavmesh = true }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - Span span26 = CollectionsMarshal.AsSpan(list67); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list67 = new List(index3); + CollectionsMarshal.SetCount(list67, index3); + Span span67 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list67; skipConditions3.StepIf = skipStepConditions3; obj46.SkipConditions = skipConditions3; reference51 = obj46; - ref QuestStep reference52 = ref span23[4]; + index2++; + ref QuestStep reference52 = ref span64[index2]; QuestStep obj47 = new QuestStep(EInteractionType.UseItem, 2009819u, new Vector3(-454.88672f, 80.125f, 593.469f), 816) { ItemId = 2002534u @@ -222815,43 +269468,59 @@ public static class AssemblyQuestLoader num3 = 6; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - Span span27 = CollectionsMarshal.AsSpan(list68); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span68 = CollectionsMarshal.AsSpan(list68); + index3 = 0; + span68[index3] = null; + index3++; + span68[index3] = null; + index3++; + span68[index3] = null; + index3++; + span68[index3] = null; + index3++; + span68[index3] = null; + index3++; + span68[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj47.CompletionQuestVariablesFlags = list68; reference52 = obj47; - ref QuestStep reference53 = ref span23[5]; + index2++; + ref QuestStep reference53 = ref span64[index2]; QuestStep obj48 = new QuestStep(EInteractionType.UseItem, 2009821u, new Vector3(-280.32355f, 56.22937f, 474.08252f), 816) { ItemId = 2002534u }; - num3 = 6; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - Span span28 = CollectionsMarshal.AsSpan(list69); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list69 = new List(index3); + CollectionsMarshal.SetCount(list69, index3); + Span span69 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span69[num3] = null; + num3++; + span69[num3] = null; + num3++; + span69[num3] = null; + num3++; + span69[num3] = null; + num3++; + span69[num3] = null; + num3++; + span69[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj48.CompletionQuestVariablesFlags = list69; reference53 = obj48; obj44.Steps = list64; reference48 = obj44; - ref QuestSequence reference54 = ref span22[2]; + num++; + ref QuestSequence reference54 = ref span62[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027654u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027654u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816); obj49.Steps = list70; reference54 = obj49; questRoot8.QuestSequence = list62; @@ -222861,13 +269530,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + Span span71 = CollectionsMarshal.AsSpan(list71); + index = 0; + span71[index] = "liza"; questRoot9.Author = list71; - num = 3; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span29 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference55 = ref span29[0]; + index = 3; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + Span span72 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference55 = ref span72[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -222875,19 +269547,23 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027655u, new Vector3(-424.6739f, 60.46432f, 490.07385f), 816); + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027655u, new Vector3(-424.6739f, 60.46432f, 490.07385f), 816); obj50.Steps = list73; reference55 = obj50; - ref QuestSequence reference56 = ref span29[1]; + num++; + ref QuestSequence reference56 = ref span72[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - Span span30 = CollectionsMarshal.AsSpan(list74); - ref QuestStep reference57 = ref span30[0]; + index2 = 2; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + ref QuestStep reference57 = ref span74[num2]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, 2009822u, new Vector3(-211.10858f, 38.895264f, 356.77112f), 816) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -222895,21 +269571,30 @@ public static class AssemblyQuestLoader num3 = 1; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = 10840u; + Span span75 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span75[index3] = 10840u; obj52.KillEnemyDataIds = list75; - num3 = 6; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - Span span31 = CollectionsMarshal.AsSpan(list76); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + Span span76 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj52.CompletionQuestVariablesFlags = list76; reference57 = obj52; - ref QuestStep reference58 = ref span30[1]; + num2++; + ref QuestStep reference58 = ref span74[num2]; QuestStep obj53 = new QuestStep(EInteractionType.Combat, 2009823u, new Vector3(-260.24268f, 38.986816f, 289.05164f), 816) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -222917,23 +269602,32 @@ public static class AssemblyQuestLoader num3 = 1; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = 10840u; + Span span77 = CollectionsMarshal.AsSpan(list77); + index3 = 0; + span77[index3] = 10840u; obj53.KillEnemyDataIds = list77; - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span32 = CollectionsMarshal.AsSpan(list78); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list78 = new List(index3); + CollectionsMarshal.SetCount(list78, index3); + Span span78 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj53.CompletionQuestVariablesFlags = list78; reference58 = obj53; obj51.Steps = list74; reference56 = obj51; - ref QuestSequence reference59 = ref span29[2]; + num++; + ref QuestSequence reference59 = ref span72[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -222941,7 +269635,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027655u, new Vector3(-424.6739f, 60.46432f, 490.07385f), 816); + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027655u, new Vector3(-424.6739f, 60.46432f, 490.07385f), 816); obj54.Steps = list79; reference59 = obj54; questRoot9.QuestSequence = list72; @@ -222951,24 +269647,30 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + Span span80 = CollectionsMarshal.AsSpan(list80); + index = 0; + span80[index] = "liza"; questRoot10.Author = list80; - num = 4; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span33 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference60 = ref span33[0]; + index = 4; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + Span span81 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference60 = ref span81[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027656u, new Vector3(-291.61517f, 40.324036f, 456.65674f), 816); + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027656u, new Vector3(-291.61517f, 40.324036f, 456.65674f), 816); obj55.Steps = list82; reference60 = obj55; - ref QuestSequence reference61 = ref span33[1]; + num++; + ref QuestSequence reference61 = ref span81[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -222976,19 +269678,23 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 2009824u, new Vector3(-59.250793f, 0.47296143f, 279.95728f), 816); + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.Interact, 2009824u, new Vector3(-59.250793f, 0.47296143f, 279.95728f), 816); obj56.Steps = list83; reference61 = obj56; - ref QuestSequence reference62 = ref span33[2]; + num++; + ref QuestSequence reference62 = ref span81[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - Span span34 = CollectionsMarshal.AsSpan(list84); - ref QuestStep reference63 = ref span34[0]; + index2 = 2; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + ref QuestStep reference63 = ref span84[num2]; QuestStep obj58 = new QuestStep(EInteractionType.UseItem, 2009825u, new Vector3(-122.30109f, 17.807251f, 413.2295f), 816) { ItemId = 2002536u @@ -222996,35 +269702,49 @@ public static class AssemblyQuestLoader num3 = 6; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - Span span35 = CollectionsMarshal.AsSpan(list85); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span85 = CollectionsMarshal.AsSpan(list85); + index3 = 0; + span85[index3] = null; + index3++; + span85[index3] = null; + index3++; + span85[index3] = null; + index3++; + span85[index3] = null; + index3++; + span85[index3] = null; + index3++; + span85[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj58.CompletionQuestVariablesFlags = list85; reference63 = obj58; - ref QuestStep reference64 = ref span34[1]; + num2++; + ref QuestStep reference64 = ref span84[num2]; QuestStep obj59 = new QuestStep(EInteractionType.UseItem, 2009826u, new Vector3(-263.17236f, 41.85547f, 469.5963f), 816) { ItemId = 2002536u }; - num3 = 6; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span36 = CollectionsMarshal.AsSpan(list86); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list86 = new List(index3); + CollectionsMarshal.SetCount(list86, index3); + Span span86 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj59.CompletionQuestVariablesFlags = list86; reference64 = obj59; obj57.Steps = list84; reference62 = obj57; - ref QuestSequence reference65 = ref span33[3]; + num++; + ref QuestSequence reference65 = ref span81[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -223032,7 +269752,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027656u, new Vector3(-291.61517f, 40.324036f, 456.65674f), 816); + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027656u, new Vector3(-291.61517f, 40.324036f, 456.65674f), 816); obj60.Steps = list87; reference65 = obj60; questRoot10.QuestSequence = list81; @@ -223042,24 +269764,30 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "liza"; + Span span88 = CollectionsMarshal.AsSpan(list88); + index = 0; + span88[index] = "liza"; questRoot11.Author = list88; - num = 6; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span37 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference66 = ref span37[0]; + index = 6; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + Span span89 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference66 = ref span89[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028981u, new Vector3(-405.17285f, 57.405117f, 440.45154f), 816); + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028981u, new Vector3(-405.17285f, 57.405117f, 440.45154f), 816); obj61.Steps = list90; reference66 = obj61; - ref QuestSequence reference67 = ref span37[1]; + num++; + ref QuestSequence reference67 = ref span89[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -223067,7 +269795,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Say, 2009827u, new Vector3(-408.6214f, 57.99951f, 408.1941f), 816) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.Say, 2009827u, new Vector3(-408.6214f, 57.99951f, 408.1941f), 816) { ChatMessage = new ChatMessage { @@ -223076,15 +269806,18 @@ public static class AssemblyQuestLoader }; obj62.Steps = list91; reference67 = obj62; - ref QuestSequence reference68 = ref span37[2]; + num++; + ref QuestSequence reference68 = ref span89[num]; QuestSequence obj63 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Say, 2009827u, new Vector3(-408.6214f, 57.99951f, 408.1941f), 816) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.Say, 2009827u, new Vector3(-408.6214f, 57.99951f, 408.1941f), 816) { DelaySecondsAtStart = 6f, ChatMessage = new ChatMessage @@ -223094,7 +269827,8 @@ public static class AssemblyQuestLoader }; obj63.Steps = list92; reference68 = obj63; - ref QuestSequence reference69 = ref span37[3]; + num++; + ref QuestSequence reference69 = ref span89[num]; QuestSequence obj64 = new QuestSequence { Sequence = 3 @@ -223102,7 +269836,9 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Say, 2009827u, new Vector3(-408.6214f, 57.99951f, 408.1941f), 816) + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.Say, 2009827u, new Vector3(-408.6214f, 57.99951f, 408.1941f), 816) { DelaySecondsAtStart = 8f, ChatMessage = new ChatMessage @@ -223112,21 +269848,25 @@ public static class AssemblyQuestLoader }; obj64.Steps = list93; reference69 = obj64; - ref QuestSequence reference70 = ref span37[4]; + num++; + ref QuestSequence reference70 = ref span89[num]; QuestSequence obj65 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1028995u, new Vector3(-360.70807f, 45.90706f, 470.72546f), 816) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.Interact, 1028995u, new Vector3(-360.70807f, 45.90706f, 470.72546f), 816) { StopDistance = 7f }; obj65.Steps = list94; reference70 = obj65; - ref QuestSequence reference71 = ref span37[5]; + num++; + ref QuestSequence reference71 = ref span89[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -223134,7 +269874,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028999u, new Vector3(-603.1434f, 36.117786f, -230.0603f), 816); + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028999u, new Vector3(-603.1434f, 36.117786f, -230.0603f), 816); obj66.Steps = list95; reference71 = obj66; questRoot11.QuestSequence = list89; @@ -223144,21 +269886,26 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + span96[index] = "liza"; questRoot12.Author = list96; - num = 4; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span38 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference72 = ref span38[0]; + index = 4; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + Span span97 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference72 = ref span97[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - ref QuestStep reference73 = ref CollectionsMarshal.AsSpan(list98)[0]; + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + ref QuestStep reference73 = ref span98[num2]; QuestStep obj68 = new QuestStep(EInteractionType.AcceptQuest, 1029017u, new Vector3(-645.01416f, 35.86156f, -223.10223f), 816) { StopDistance = 5f @@ -223166,7 +269913,9 @@ public static class AssemblyQuestLoader num3 = 1; List list99 = new List(num3); CollectionsMarshal.SetCount(list99, num3); - CollectionsMarshal.AsSpan(list99)[0] = new DialogueChoice + Span span99 = CollectionsMarshal.AsSpan(list99); + index3 = 0; + span99[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMB110_03311_Q1_000_000"), @@ -223176,7 +269925,8 @@ public static class AssemblyQuestLoader reference73 = obj68; obj67.Steps = list98; reference72 = obj67; - ref QuestSequence reference74 = ref span38[1]; + num++; + ref QuestSequence reference74 = ref span97[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 @@ -223184,20 +269934,24 @@ public static class AssemblyQuestLoader num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span39 = CollectionsMarshal.AsSpan(list100); - span39[0] = new QuestStep(EInteractionType.AcceptQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816) + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816) { PickUpQuestId = new QuestId(3398) }; - ref QuestStep reference75 = ref span39[1]; + index2++; + ref QuestStep reference75 = ref span100[index2]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, null, new Vector3(-629.64935f, 35.484062f, -173.54001f), 816) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = 10258u; + index3 = 1; + List list101 = new List(index3); + CollectionsMarshal.SetCount(list101, index3); + Span span101 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span101[num3] = 10258u; obj70.KillEnemyDataIds = list101; obj70.CombatItemUse = new CombatItemUse { @@ -223208,18 +269962,22 @@ public static class AssemblyQuestLoader reference75 = obj70; obj69.Steps = list100; reference74 = obj69; - ref QuestSequence reference76 = ref span38[2]; + num++; + ref QuestSequence reference76 = ref span97[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1029017u, new Vector3(-645.01416f, 35.86156f, -223.10223f), 816); + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.Interact, 1029017u, new Vector3(-645.01416f, 35.86156f, -223.10223f), 816); obj71.Steps = list102; reference76 = obj71; - ref QuestSequence reference77 = ref span38[3]; + num++; + ref QuestSequence reference77 = ref span97[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -223227,7 +269985,9 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030535u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816) + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span103[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030535u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; @@ -223240,24 +270000,30 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "liza"; + Span span104 = CollectionsMarshal.AsSpan(list104); + index = 0; + span104[index] = "liza"; questRoot13.Author = list104; - num = 5; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span40 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference78 = ref span40[0]; + index = 5; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + Span span105 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference78 = ref span105[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030535u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816); + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030535u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816); obj73.Steps = list106; reference78 = obj73; - ref QuestSequence reference79 = ref span40[1]; + num++; + ref QuestSequence reference79 = ref span105[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -223265,23 +270031,28 @@ public static class AssemblyQuestLoader num2 = 2; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span41 = CollectionsMarshal.AsSpan(list107); - span41[0] = new QuestStep(EInteractionType.AcceptQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816) + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816) { PickUpQuestId = new QuestId(3404) }; - span41[1] = new QuestStep(EInteractionType.Interact, 2009828u, new Vector3(133.40955f, -0.015319824f, 455.9242f), 816); + index2++; + span107[index2] = new QuestStep(EInteractionType.Interact, 2009828u, new Vector3(133.40955f, -0.015319824f, 455.9242f), 816); obj74.Steps = list107; reference79 = obj74; - ref QuestSequence reference80 = ref span40[2]; + num++; + ref QuestSequence reference80 = ref span105[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Duty, null, null, 816) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.Duty, null, null, 816) { DutyOptions = new DutyOptions { @@ -223291,11 +270062,13 @@ public static class AssemblyQuestLoader }; obj75.Steps = list108; reference80 = obj75; - span40[3] = new QuestSequence + num++; + span105[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference81 = ref span40[4]; + num++; + ref QuestSequence reference81 = ref span105[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue @@ -223303,12 +270076,14 @@ public static class AssemblyQuestLoader num2 = 2; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span42 = CollectionsMarshal.AsSpan(list109); - span42[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010056u, new Vector3(-231.4141f, 4.701926f, 160.8437f), 816) + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010056u, new Vector3(-231.4141f, 4.701926f, 160.8437f), 816) { AetherCurrentId = 2818270u }; - span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1031669u, new Vector3(-300.0077f, 1.4994799f, 182.8794f), 816) + index2++; + span109[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031669u, new Vector3(-300.0077f, 1.4994799f, 182.8794f), 816) { Mount = false }; @@ -223321,27 +270096,33 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "liza"; + Span span110 = CollectionsMarshal.AsSpan(list110); + index = 0; + span110[index] = "liza"; questRoot14.Author = list110; - num = 6; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span43 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference82 = ref span43[0]; + index = 6; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + Span span111 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference82 = ref span111[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029162u, new Vector3(-300.67908f, 1.528771f, 182.2384f), 816) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029162u, new Vector3(-300.67908f, 1.528771f, 182.2384f), 816) { StopDistance = 5f }; obj77.Steps = list112; reference82 = obj77; - ref QuestSequence reference83 = ref span43[1]; + num++; + ref QuestSequence reference83 = ref span111[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 @@ -223349,21 +270130,27 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1030577u, new Vector3(-547.57f, 26.358929f, -229.11426f), 816); + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.Interact, 1030577u, new Vector3(-547.57f, 26.358929f, -229.11426f), 816); obj78.Steps = list113; reference83 = obj78; - ref QuestSequence reference84 = ref span43[2]; + num++; + ref QuestSequence reference84 = ref span111[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1030578u, new Vector3(-413.99255f, 86.60777f, -444.5716f), 816); + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.Interact, 1030578u, new Vector3(-413.99255f, 86.60777f, -444.5716f), 816); obj79.Steps = list114; reference84 = obj79; - ref QuestSequence reference85 = ref span43[3]; + num++; + ref QuestSequence reference85 = ref span111[num]; QuestSequence obj80 = new QuestSequence { Sequence = 3 @@ -223371,21 +270158,27 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1030579u, new Vector3(-517.2656f, 76.02325f, -416.67816f), 816); + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.Interact, 1030579u, new Vector3(-517.2656f, 76.02325f, -416.67816f), 816); obj80.Steps = list115; reference85 = obj80; - ref QuestSequence reference86 = ref span43[4]; + num++; + ref QuestSequence reference86 = ref span111[num]; QuestSequence obj81 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-214.34406f, 55.06957f, -562.23914f), 816); + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-214.34406f, 55.06957f, -562.23914f), 816); obj81.Steps = list116; reference86 = obj81; - ref QuestSequence reference87 = ref span43[5]; + num++; + ref QuestSequence reference87 = ref span111[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue @@ -223393,7 +270186,9 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029562u, new Vector3(-130.69354f, 58.754936f, -680.4761f), 816); + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029562u, new Vector3(-130.69354f, 58.754936f, -680.4761f), 816); obj82.Steps = list117; reference87 = obj82; questRoot14.QuestSequence = list111; @@ -223403,27 +270198,33 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "liza"; questRoot15.Author = list118; - num = 4; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span44 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference88 = ref span44[0]; + index = 4; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference88 = ref span119[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029564u, new Vector3(-143.26697f, 100.184166f, -848.90515f), 816) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029564u, new Vector3(-143.26697f, 100.184166f, -848.90515f), 816) { StopDistance = 7f }; obj83.Steps = list120; reference88 = obj83; - ref QuestSequence reference89 = ref span44[1]; + num++; + ref QuestSequence reference89 = ref span119[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 @@ -223431,23 +270232,28 @@ public static class AssemblyQuestLoader num2 = 2; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span45 = CollectionsMarshal.AsSpan(list121); - span45[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 816) + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 816) { Aetheryte = EAetheryteLocation.IlMhegPlaEnni }; - span45[1] = new QuestStep(EInteractionType.Interact, 1029572u, new Vector3(-44.022278f, 104.915054f, -856.53467f), 816); + index2++; + span121[index2] = new QuestStep(EInteractionType.Interact, 1029572u, new Vector3(-44.022278f, 104.915054f, -856.53467f), 816); obj84.Steps = list121; reference89 = obj84; - ref QuestSequence reference90 = ref span44[2]; + num++; + ref QuestSequence reference90 = ref span119[num]; QuestSequence obj85 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - ref QuestStep reference91 = ref CollectionsMarshal.AsSpan(list122)[0]; + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + ref QuestStep reference91 = ref span122[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, null, new Vector3(-121.60927f, 57.405594f, -669.88385f), 816) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -223455,12 +270261,15 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 10255u; + Span span123 = CollectionsMarshal.AsSpan(list123); + index3 = 0; + span123[index3] = 10255u; obj86.KillEnemyDataIds = list123; reference91 = obj86; obj85.Steps = list122; reference90 = obj85; - ref QuestSequence reference92 = ref span44[3]; + num++; + ref QuestSequence reference92 = ref span119[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -223468,7 +270277,9 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029572u, new Vector3(-44.022278f, 104.915054f, -856.53467f), 816); + Span span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span124[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029572u, new Vector3(-44.022278f, 104.915054f, -856.53467f), 816); obj87.Steps = list124; reference92 = obj87; questRoot15.QuestSequence = list119; @@ -223478,24 +270289,30 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "liza"; + Span span125 = CollectionsMarshal.AsSpan(list125); + index = 0; + span125[index] = "liza"; questRoot16.Author = list125; - num = 6; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span46 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference93 = ref span46[0]; + index = 6; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + Span span126 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference93 = ref span126[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029573u, new Vector3(-85.83203f, 101.65893f, -866.0563f), 816); + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029573u, new Vector3(-85.83203f, 101.65893f, -866.0563f), 816); obj88.Steps = list127; reference93 = obj88; - ref QuestSequence reference94 = ref span46[1]; + num++; + ref QuestSequence reference94 = ref span126[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -223503,107 +270320,147 @@ public static class AssemblyQuestLoader num2 = 6; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span47 = CollectionsMarshal.AsSpan(list128); - ref QuestStep reference95 = ref span47[0]; + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + ref QuestStep reference95 = ref span128[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2009830u, new Vector3(-111.77234f, 103.1051f, -865.7816f), 816); - num3 = 6; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - Span span48 = CollectionsMarshal.AsSpan(list129); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list129 = new List(index3); + CollectionsMarshal.SetCount(list129, index3); + Span span129 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span129[num3] = null; + num3++; + span129[num3] = null; + num3++; + span129[num3] = null; + num3++; + span129[num3] = null; + num3++; + span129[num3] = null; + num3++; + span129[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list129; reference95 = questStep6; - ref QuestStep reference96 = ref span47[1]; + index2++; + ref QuestStep reference96 = ref span128[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.83761f, 104.5973f, -856.61725f), 816); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 6; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span49 = CollectionsMarshal.AsSpan(list130); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span130 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span130[index3] = null; + index3++; + span130[index3] = null; + index3++; + span130[index3] = null; + index3++; + span130[index3] = null; + index3++; + span130[index3] = null; + index3++; + span130[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list130; skipConditions4.StepIf = skipStepConditions4; questStep7.SkipConditions = skipConditions4; reference96 = questStep7; - ref QuestStep reference97 = ref span47[2]; + index2++; + ref QuestStep reference97 = ref span128[index2]; QuestStep obj90 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-53.266403f, 110.45701f, -847.4861f), 816) { DisableNavmesh = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span50 = CollectionsMarshal.AsSpan(list131); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + Span span131 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list131; skipConditions5.StepIf = skipStepConditions5; obj90.SkipConditions = skipConditions5; reference97 = obj90; - ref QuestStep reference98 = ref span47[3]; + index2++; + ref QuestStep reference98 = ref span128[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2009831u, new Vector3(-39.84137f, 116.227905f, -839.292f), 816); num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span51 = CollectionsMarshal.AsSpan(list132); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span132 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list132; reference98 = questStep8; - span47[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-35.223904f, 107.18862f, -860.6854f), 816) + index2++; + span128[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-35.223904f, 107.18862f, -860.6854f), 816) { DisableNavmesh = true, Mount = true }; - ref QuestStep reference99 = ref span47[5]; + index2++; + ref QuestStep reference99 = ref span128[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2009832u, new Vector3(25.436768f, 100.694214f, -902.31177f), 816); - num3 = 6; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - Span span52 = CollectionsMarshal.AsSpan(list133); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list133 = new List(index3); + CollectionsMarshal.SetCount(list133, index3); + Span span133 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list133; reference99 = questStep9; obj89.Steps = list128; reference94 = obj89; - ref QuestSequence reference100 = ref span46[2]; + num++; + ref QuestSequence reference100 = ref span126[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1029573u, new Vector3(-85.83203f, 101.65893f, -866.0563f), 816); + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.Interact, 1029573u, new Vector3(-85.83203f, 101.65893f, -866.0563f), 816); obj91.Steps = list134; reference100 = obj91; - ref QuestSequence reference101 = ref span46[3]; + num++; + ref QuestSequence reference101 = ref span126[num]; QuestSequence obj92 = new QuestSequence { Sequence = 3 @@ -223611,21 +270468,27 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 2009833u, new Vector3(-181.13983f, 84.09241f, -786.2211f), 816); + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.Interact, 2009833u, new Vector3(-181.13983f, 84.09241f, -786.2211f), 816); obj92.Steps = list135; reference101 = obj92; - ref QuestSequence reference102 = ref span46[4]; + num++; + ref QuestSequence reference102 = ref span126[num]; QuestSequence obj93 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1029574u, new Vector3(-164.62964f, 82.303215f, -751.97986f), 816); + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.Interact, 1029574u, new Vector3(-164.62964f, 82.303215f, -751.97986f), 816); obj93.Steps = list136; reference102 = obj93; - ref QuestSequence reference103 = ref span46[5]; + num++; + ref QuestSequence reference103 = ref span126[num]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue @@ -223633,7 +270496,9 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029573u, new Vector3(-85.83203f, 101.65893f, -866.0563f), 816); + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029573u, new Vector3(-85.83203f, 101.65893f, -866.0563f), 816); obj94.Steps = list137; reference103 = obj94; questRoot16.QuestSequence = list126; @@ -223643,24 +270508,30 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "liza"; + Span span138 = CollectionsMarshal.AsSpan(list138); + index = 0; + span138[index] = "liza"; questRoot17.Author = list138; - num = 5; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span53 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference104 = ref span53[0]; + index = 5; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + Span span139 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference104 = ref span139[num]; QuestSequence obj95 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027672u, new Vector3(-101.51831f, 101.86012f, -838.49854f), 816); + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027672u, new Vector3(-101.51831f, 101.86012f, -838.49854f), 816); obj95.Steps = list140; reference104 = obj95; - ref QuestSequence reference105 = ref span53[1]; + num++; + ref QuestSequence reference105 = ref span139[num]; QuestSequence obj96 = new QuestSequence { Sequence = 1 @@ -223668,9 +270539,11 @@ public static class AssemblyQuestLoader num2 = 9; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span54 = CollectionsMarshal.AsSpan(list141); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(33.10641f, 106.830055f, -842.54065f), 816); - span54[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(33.10641f, 106.830055f, -842.54065f), 816) + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(33.10641f, 106.830055f, -842.54065f), 816); + index2++; + span141[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(33.10641f, 106.830055f, -842.54065f), 816) { StopDistance = 0.25f, Mount = false, @@ -223680,7 +270553,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span54[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(27.701914f, 108.983986f, -844.172f), 816) + index2++; + span141[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(27.701914f, 108.983986f, -844.172f), 816) { JumpDestination = new JumpDestination { @@ -223688,7 +270562,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span54[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(25.056326f, 110.28013f, -846.34796f), 816) + index2++; + span141[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(25.056326f, 110.28013f, -846.34796f), 816) { JumpDestination = new JumpDestination { @@ -223696,7 +270571,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span54[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(21.853422f, 111.3742f, -847.6101f), 816) + index2++; + span141[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(21.853422f, 111.3742f, -847.6101f), 816) { JumpDestination = new JumpDestination { @@ -223704,86 +270580,113 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span54[5] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010059u, new Vector3(12.832764f, 110.73462f, -851.25507f), 816) + index2++; + span141[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010059u, new Vector3(12.832764f, 110.73462f, -851.25507f), 816) { DisableNavmesh = true, AetherCurrentId = 2818273u }; - span54[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.588793f, 102.26027f, -859.4154f), 816) + index2++; + span141[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.588793f, 102.26027f, -859.4154f), 816) { DisableNavmesh = true, Mount = true }; - span54[7] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 816) + index2++; + span141[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 816) { Aetheryte = EAetheryteLocation.IlMhegWolekdorf }; - span54[8] = new QuestStep(EInteractionType.Interact, 1029575u, new Vector3(477.46997f, 90.93466f, -328.5725f), 816); + index2++; + span141[index2] = new QuestStep(EInteractionType.Interact, 1029575u, new Vector3(477.46997f, 90.93466f, -328.5725f), 816); obj96.Steps = list141; reference105 = obj96; - ref QuestSequence reference106 = ref span53[2]; + num++; + ref QuestSequence reference106 = ref span139[num]; QuestSequence obj97 = new QuestSequence { Sequence = 2 }; - num2 = 9; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span55 = CollectionsMarshal.AsSpan(list142); - ref QuestStep reference107 = ref span55[0]; + index2 = 9; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + ref QuestStep reference107 = ref span142[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(519.60034f, 110.94924f, -171.57602f), 816); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); num3 = 6; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span56 = CollectionsMarshal.AsSpan(list143); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span143 = CollectionsMarshal.AsSpan(list143); + index3 = 0; + span143[index3] = null; + index3++; + span143[index3] = null; + index3++; + span143[index3] = null; + index3++; + span143[index3] = null; + index3++; + span143[index3] = null; + index3++; + span143[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list143; skipConditions6.StepIf = skipStepConditions6; questStep10.SkipConditions = skipConditions6; reference107 = questStep10; - ref QuestStep reference108 = ref span55[1]; + num2++; + ref QuestStep reference108 = ref span142[num2]; QuestStep obj98 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(524.02466f, 117.10437f, -161.2614f), 816) { DisableNavmesh = true }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - Span span57 = CollectionsMarshal.AsSpan(list144); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list144 = new List(index3); + CollectionsMarshal.SetCount(list144, index3); + Span span144 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span144[num3] = null; + num3++; + span144[num3] = null; + num3++; + span144[num3] = null; + num3++; + span144[num3] = null; + num3++; + span144[num3] = null; + num3++; + span144[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list144; skipConditions7.StepIf = skipStepConditions7; obj98.SkipConditions = skipConditions7; reference108 = obj98; - ref QuestStep reference109 = ref span55[2]; + num2++; + ref QuestStep reference109 = ref span142[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2009836u, new Vector3(514.45776f, 122.45361f, -158.28192f), 816); num3 = 6; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - Span span58 = CollectionsMarshal.AsSpan(list145); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span145 = CollectionsMarshal.AsSpan(list145); + index3 = 0; + span145[index3] = null; + index3++; + span145[index3] = null; + index3++; + span145[index3] = null; + index3++; + span145[index3] = null; + index3++; + span145[index3] = null; + index3++; + span145[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list145; reference109 = questStep11; - ref QuestStep reference110 = ref span55[3]; + num2++; + ref QuestStep reference110 = ref span142[num2]; QuestStep obj99 = new QuestStep(EInteractionType.Jump, null, new Vector3(533.1536f, 109.112404f, -154.17346f), 816) { StopDistance = 0.25f, @@ -223797,21 +270700,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 6; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span59 = CollectionsMarshal.AsSpan(list146); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + Span span146 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list146; skipConditions8.StepIf = skipStepConditions8; obj99.SkipConditions = skipConditions8; reference110 = obj99; - ref QuestStep reference111 = ref span55[4]; + num2++; + ref QuestStep reference111 = ref span142[num2]; QuestStep obj100 = new QuestStep(EInteractionType.Jump, null, new Vector3(536.68494f, 111.31597f, -155.06671f), 816) { StopDistance = 0.5f, @@ -223827,18 +270737,25 @@ public static class AssemblyQuestLoader num3 = 6; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - Span span60 = CollectionsMarshal.AsSpan(list147); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span147 = CollectionsMarshal.AsSpan(list147); + index3 = 0; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = null; + index3++; + span147[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list147; skipConditions9.StepIf = skipStepConditions9; obj100.SkipConditions = skipConditions9; reference111 = obj100; - ref QuestStep reference112 = ref span55[5]; + num2++; + ref QuestStep reference112 = ref span142[num2]; QuestStep obj101 = new QuestStep(EInteractionType.Jump, null, new Vector3(539.31104f, 113.00041f, -155.02728f), 816) { StopDistance = 0.5f, @@ -223851,21 +270768,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 6; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - Span span61 = CollectionsMarshal.AsSpan(list148); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + Span span148 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = null; + num3++; + span148[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions10.CompletionQuestVariablesFlags = list148; skipConditions10.StepIf = skipStepConditions10; obj101.SkipConditions = skipConditions10; reference112 = obj101; - ref QuestStep reference113 = ref span55[6]; + num2++; + ref QuestStep reference113 = ref span142[num2]; QuestStep obj102 = new QuestStep(EInteractionType.Jump, null, new Vector3(542.8287f, 114.6852f, -154.211f), 816) { StopDistance = 0.5f, @@ -223881,35 +270805,50 @@ public static class AssemblyQuestLoader num3 = 6; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - Span span62 = CollectionsMarshal.AsSpan(list149); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span149 = CollectionsMarshal.AsSpan(list149); + index3 = 0; + span149[index3] = null; + index3++; + span149[index3] = null; + index3++; + span149[index3] = null; + index3++; + span149[index3] = null; + index3++; + span149[index3] = null; + index3++; + span149[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions11.CompletionQuestVariablesFlags = list149; skipConditions11.StepIf = skipStepConditions11; obj102.SkipConditions = skipConditions11; reference113 = obj102; - ref QuestStep reference114 = ref span55[7]; + num2++; + ref QuestStep reference114 = ref span142[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2009835u, new Vector3(570.00073f, 119.15759f, -145.70844f), 816); - num3 = 6; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - Span span63 = CollectionsMarshal.AsSpan(list150); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list150 = new List(index3); + CollectionsMarshal.SetCount(list150, index3); + Span span150 = CollectionsMarshal.AsSpan(list150); + num3 = 0; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = null; + num3++; + span150[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list150; reference114 = questStep12; - span55[8] = new QuestStep(EInteractionType.Interact, 2009834u, new Vector3(496.75732f, 103.95972f, -116.41113f), 816); + num2++; + span142[num2] = new QuestStep(EInteractionType.Interact, 2009834u, new Vector3(496.75732f, 103.95972f, -116.41113f), 816); obj97.Steps = list142; reference106 = obj97; - ref QuestSequence reference115 = ref span53[3]; + num++; + ref QuestSequence reference115 = ref span139[num]; QuestSequence obj103 = new QuestSequence { Sequence = 3 @@ -223917,20 +270856,25 @@ public static class AssemblyQuestLoader num2 = 2; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span64 = CollectionsMarshal.AsSpan(list151); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(433.92883f, 88.121765f, -352.8274f), 816); - span64[1] = new QuestStep(EInteractionType.Interact, 1029576u, new Vector3(292.92737f, 67.604f, -408.13312f), 816); + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(433.92883f, 88.121765f, -352.8274f), 816); + index2++; + span151[index2] = new QuestStep(EInteractionType.Interact, 1029576u, new Vector3(292.92737f, 67.604f, -408.13312f), 816); obj103.Steps = list151; reference115 = obj103; - ref QuestSequence reference116 = ref span53[4]; + num++; + ref QuestSequence reference116 = ref span139[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027672u, new Vector3(-101.51831f, 101.86012f, -838.49854f), 816) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027672u, new Vector3(-101.51831f, 101.86012f, -838.49854f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; @@ -223943,13 +270887,16 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - CollectionsMarshal.AsSpan(list153)[0] = "liza"; + Span span153 = CollectionsMarshal.AsSpan(list153); + index = 0; + span153[index] = "liza"; questRoot18.Author = list153; - num = 7; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - Span span65 = CollectionsMarshal.AsSpan(list154); - ref QuestSequence reference117 = ref span65[0]; + index = 7; + List list154 = new List(index); + CollectionsMarshal.SetCount(list154, index); + Span span154 = CollectionsMarshal.AsSpan(list154); + num = 0; + ref QuestSequence reference117 = ref span154[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 @@ -223957,21 +270904,27 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027672u, new Vector3(-101.51831f, 101.86012f, -838.49854f), 816); + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027672u, new Vector3(-101.51831f, 101.86012f, -838.49854f), 816); obj105.Steps = list155; reference117 = obj105; - ref QuestSequence reference118 = ref span65[1]; + num++; + ref QuestSequence reference118 = ref span154[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1027666u, new Vector3(13.839905f, 100.161f, -886.3508f), 816); + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.Interact, 1027666u, new Vector3(13.839905f, 100.161f, -886.3508f), 816); obj106.Steps = list156; reference118 = obj106; - ref QuestSequence reference119 = ref span65[2]; + num++; + ref QuestSequence reference119 = ref span154[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 @@ -223979,7 +270932,9 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - ref QuestStep reference120 = ref CollectionsMarshal.AsSpan(list157)[0]; + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + ref QuestStep reference120 = ref span157[index2]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 1029580u, new Vector3(453.05554f, 87.4745f, -691.9509f), 816) { StopDistance = 9f, @@ -223988,7 +270943,9 @@ public static class AssemblyQuestLoader num3 = 1; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - CollectionsMarshal.AsSpan(list158)[0] = new DialogueChoice + Span span158 = CollectionsMarshal.AsSpan(list158); + index3 = 0; + span158[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMB116_03317_Q1_000_000"), @@ -223998,21 +270955,25 @@ public static class AssemblyQuestLoader reference120 = obj108; obj107.Steps = list157; reference119 = obj107; - ref QuestSequence reference121 = ref span65[3]; + num++; + ref QuestSequence reference121 = ref span154[num]; QuestSequence obj109 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Emote, 1027691u, new Vector3(416.80017f, 87.947784f, -751.09485f), 816) + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.Emote, 1027691u, new Vector3(416.80017f, 87.947784f, -751.09485f), 816) { Emote = EEmote.Pet }; obj109.Steps = list159; reference121 = obj109; - ref QuestSequence reference122 = ref span65[4]; + num++; + ref QuestSequence reference122 = ref span154[num]; QuestSequence obj110 = new QuestSequence { Sequence = 4 @@ -224020,27 +270981,33 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Emote, 1027692u, new Vector3(382.1317f, 86.5506f, -617.0901f), 816) + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.Emote, 1027692u, new Vector3(382.1317f, 86.5506f, -617.0901f), 816) { Emote = EEmote.Pet }; obj110.Steps = list160; reference122 = obj110; - ref QuestSequence reference123 = ref span65[5]; + num++; + ref QuestSequence reference123 = ref span154[num]; QuestSequence obj111 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Emote, 1027693u, new Vector3(364.27856f, 87.00109f, -715.41925f), 816) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + Span span161 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span161[num2] = new QuestStep(EInteractionType.Emote, 1027693u, new Vector3(364.27856f, 87.00109f, -715.41925f), 816) { Emote = EEmote.Pet }; obj111.Steps = list161; reference123 = obj111; - ref QuestSequence reference124 = ref span65[6]; + num++; + ref QuestSequence reference124 = ref span154[num]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue @@ -224048,7 +271015,9 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029577u, new Vector3(456.83984f, 86.13955f, -710.0176f), 816); + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029577u, new Vector3(456.83984f, 86.13955f, -710.0176f), 816); obj112.Steps = list162; reference124 = obj112; questRoot18.QuestSequence = list154; @@ -224058,24 +271027,30 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "liza"; + Span span163 = CollectionsMarshal.AsSpan(list163); + index = 0; + span163[index] = "liza"; questRoot19.Author = list163; - num = 6; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span66 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference125 = ref span66[0]; + index = 6; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + Span span164 = CollectionsMarshal.AsSpan(list164); + num = 0; + ref QuestSequence reference125 = ref span164[num]; QuestSequence obj113 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029577u, new Vector3(456.83984f, 86.13955f, -710.0176f), 816); + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span165[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029577u, new Vector3(456.83984f, 86.13955f, -710.0176f), 816); obj113.Steps = list165; reference125 = obj113; - ref QuestSequence reference126 = ref span66[1]; + num++; + ref QuestSequence reference126 = ref span164[num]; QuestSequence obj114 = new QuestSequence { Sequence = 1 @@ -224083,32 +271058,38 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) + Span span166 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span166[index2] = new QuestStep(EInteractionType.Interact, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) { StopDistance = 9f }; obj114.Steps = list166; reference126 = obj114; - ref QuestSequence reference127 = ref span66[2]; + num++; + ref QuestSequence reference127 = ref span164[num]; QuestSequence obj115 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - Span span67 = CollectionsMarshal.AsSpan(list167); - span67[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010062u, new Vector3(432.45593f, 90.440186f, -770.4128f), 816) + index2 = 2; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010062u, new Vector3(432.45593f, 90.440186f, -770.4128f), 816) { AetherCurrentId = 2818276u }; - span67[1] = new QuestStep(EInteractionType.Interact, 1030874u, new Vector3(658.442f, 102.799385f, -608.91125f), 816) + num2++; + span167[num2] = new QuestStep(EInteractionType.Interact, 1030874u, new Vector3(658.442f, 102.799385f, -608.91125f), 816) { StopDistance = 9f }; obj115.Steps = list167; reference127 = obj115; - ref QuestSequence reference128 = ref span66[3]; + num++; + ref QuestSequence reference128 = ref span164[num]; QuestSequence obj116 = new QuestSequence { Sequence = 3 @@ -224116,38 +271097,47 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list168)[0]; + Span span168 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + ref QuestStep reference129 = ref span168[index2]; QuestStep obj117 = new QuestStep(EInteractionType.Combat, 1030874u, new Vector3(658.442f, 102.799385f, -608.91125f), 816) { StopDistance = 9f, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 3; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - Span span68 = CollectionsMarshal.AsSpan(list169); - span68[0] = 10841u; - span68[1] = 10842u; - span68[2] = 10843u; + index3 = 3; + List list169 = new List(index3); + CollectionsMarshal.SetCount(list169, index3); + Span span169 = CollectionsMarshal.AsSpan(list169); + num3 = 0; + span169[num3] = 10841u; + num3++; + span169[num3] = 10842u; + num3++; + span169[num3] = 10843u; obj117.KillEnemyDataIds = list169; reference129 = obj117; obj116.Steps = list168; reference128 = obj116; - ref QuestSequence reference130 = ref span66[4]; + num++; + ref QuestSequence reference130 = ref span164[num]; QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1030874u, new Vector3(658.442f, 102.799385f, -608.91125f), 816) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.Interact, 1030874u, new Vector3(658.442f, 102.799385f, -608.91125f), 816) { StopDistance = 9f }; obj118.Steps = list170; reference130 = obj118; - ref QuestSequence reference131 = ref span66[5]; + num++; + ref QuestSequence reference131 = ref span164[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue @@ -224155,7 +271145,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span171[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) { StopDistance = 9f }; @@ -224168,27 +271160,33 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - CollectionsMarshal.AsSpan(list172)[0] = "liza"; + Span span172 = CollectionsMarshal.AsSpan(list172); + index = 0; + span172[index] = "liza"; questRoot20.Author = list172; - num = 3; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - Span span69 = CollectionsMarshal.AsSpan(list173); - ref QuestSequence reference132 = ref span69[0]; + index = 3; + List list173 = new List(index); + CollectionsMarshal.SetCount(list173, index); + Span span173 = CollectionsMarshal.AsSpan(list173); + num = 0; + ref QuestSequence reference132 = ref span173[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) { StopDistance = 9f }; obj120.Steps = list174; reference132 = obj120; - ref QuestSequence reference133 = ref span69[1]; + num++; + ref QuestSequence reference133 = ref span173[num]; QuestSequence obj121 = new QuestSequence { Sequence = 1 @@ -224196,24 +271194,30 @@ public static class AssemblyQuestLoader num2 = 3; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span70 = CollectionsMarshal.AsSpan(list175); - span70[0] = new QuestStep(EInteractionType.AcceptQuest, 1027695u, new Vector3(441.64185f, 89.80711f, -653.43713f), 816) + Span span175 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span175[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027695u, new Vector3(441.64185f, 89.80711f, -653.43713f), 816) { PickUpQuestId = new QuestId(3427) }; - span70[1] = new QuestStep(EInteractionType.Dive, null, new Vector3(57.868374f, -0.6f, -431.17603f), 816); - span70[2] = new QuestStep(EInteractionType.Interact, 2009837u, new Vector3(-361.9593f, -52.506348f, -302.41858f), 816); + index2++; + span175[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(57.868374f, -0.6f, -431.17603f), 816); + index2++; + span175[index2] = new QuestStep(EInteractionType.Interact, 2009837u, new Vector3(-361.9593f, -52.506348f, -302.41858f), 816); obj121.Steps = list175; reference133 = obj121; - ref QuestSequence reference134 = ref span69[2]; + num++; + ref QuestSequence reference134 = ref span173[num]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) + index2 = 1; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + Span span176 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span176[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) { StopDistance = 9f, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf @@ -224227,13 +271231,16 @@ public static class AssemblyQuestLoader num = 1; List list177 = new List(num); CollectionsMarshal.SetCount(list177, num); - CollectionsMarshal.AsSpan(list177)[0] = "liza"; + Span span177 = CollectionsMarshal.AsSpan(list177); + index = 0; + span177[index] = "liza"; questRoot21.Author = list177; - num = 4; - List list178 = new List(num); - CollectionsMarshal.SetCount(list178, num); - Span span71 = CollectionsMarshal.AsSpan(list178); - ref QuestSequence reference135 = ref span71[0]; + index = 4; + List list178 = new List(index); + CollectionsMarshal.SetCount(list178, index); + Span span178 = CollectionsMarshal.AsSpan(list178); + num = 0; + ref QuestSequence reference135 = ref span178[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 @@ -224241,30 +271248,37 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) + Span span179 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span179[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) { StopDistance = 9f }; obj123.Steps = list179; reference135 = obj123; - ref QuestSequence reference136 = ref span71[1]; + num++; + ref QuestSequence reference136 = ref span178[num]; QuestSequence obj124 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - Span span72 = CollectionsMarshal.AsSpan(list180); - span72[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010063u, new Vector3(-9.018127f, 89.28052f, -247.66925f), 816) + index2 = 3; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010063u, new Vector3(-9.018127f, 89.28052f, -247.66925f), 816) { AetherCurrentId = 2818277u }; - span72[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-88.91068f, 109.10638f, -282.8004f), 816); - span72[2] = new QuestStep(EInteractionType.Interact, 2009840u, new Vector3(-143.32806f, 116.868774f, -274.15887f), 816); + num2++; + span180[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-88.91068f, 109.10638f, -282.8004f), 816); + num2++; + span180[num2] = new QuestStep(EInteractionType.Interact, 2009840u, new Vector3(-143.32806f, 116.868774f, -274.15887f), 816); obj124.Steps = list180; reference136 = obj124; - ref QuestSequence reference137 = ref span71[2]; + num++; + ref QuestSequence reference137 = ref span178[num]; QuestSequence obj125 = new QuestSequence { Sequence = 2 @@ -224272,7 +271286,9 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Duty, null, null, 816) + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span181[index2] = new QuestStep(EInteractionType.Duty, null, null, 816) { DutyOptions = new DutyOptions { @@ -224281,15 +271297,18 @@ public static class AssemblyQuestLoader }; obj125.Steps = list181; reference137 = obj125; - ref QuestSequence reference138 = ref span71[3]; + num++; + ref QuestSequence reference138 = ref span178[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029583u, new Vector3(-378.50006f, 49.038586f, 468.65027f), 816) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029583u, new Vector3(-378.50006f, 49.038586f, 468.65027f), 816) { StopDistance = 7f }; @@ -224302,13 +271321,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + Span span183 = CollectionsMarshal.AsSpan(list183); + index = 0; + span183[index] = "liza"; questRoot22.Author = list183; - num = 4; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span73 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference139 = ref span73[0]; + index = 4; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + Span span184 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference139 = ref span184[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -224316,27 +271338,33 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029584u, new Vector3(-373.55615f, 48.181767f, 474.32666f), 816) + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029584u, new Vector3(-373.55615f, 48.181767f, 474.32666f), 816) { StopDistance = 7f }; obj127.Steps = list185; reference139 = obj127; - ref QuestSequence reference140 = ref span73[1]; + num++; + ref QuestSequence reference140 = ref span184[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1029595u, new Vector3(20.675903f, 0.0058916546f, 0.7171631f), 819) + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span186[num2] = new QuestStep(EInteractionType.Interact, 1029595u, new Vector3(20.675903f, 0.0058916546f, 0.7171631f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj128.Steps = list186; reference140 = obj128; - ref QuestSequence reference141 = ref span73[2]; + num++; + ref QuestSequence reference141 = ref span184[num]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -224344,21 +271372,26 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1029595u, new Vector3(20.675903f, 0.0058916546f, 0.7171631f), 819) + Span span187 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span187[index2] = new QuestStep(EInteractionType.Interact, 1029595u, new Vector3(20.675903f, 0.0058916546f, 0.7171631f), 819) { StopDistance = 5f }; obj129.Steps = list187; reference141 = obj129; - ref QuestSequence reference142 = ref span73[3]; + num++; + ref QuestSequence reference142 = ref span184[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - ref QuestStep reference143 = ref CollectionsMarshal.AsSpan(list188)[0]; + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + Span span188 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + ref QuestStep reference143 = ref span188[num2]; QuestStep obj131 = new QuestStep(EInteractionType.CompleteQuest, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 5f, @@ -224371,7 +271404,9 @@ public static class AssemblyQuestLoader num3 = 1; List list189 = new List(num3); CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = new DialogueChoice + Span span189 = CollectionsMarshal.AsSpan(list189); + index3 = 0; + span189[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMB120_03321_Q1_000_000") @@ -224387,13 +271422,16 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "liza"; + Span span190 = CollectionsMarshal.AsSpan(list190); + index = 0; + span190[index] = "liza"; questRoot23.Author = list190; - num = 4; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - Span span74 = CollectionsMarshal.AsSpan(list191); - ref QuestSequence reference144 = ref span74[0]; + index = 4; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + Span span191 = CollectionsMarshal.AsSpan(list191); + num = 0; + ref QuestSequence reference144 = ref span191[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 @@ -224401,21 +271439,26 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) { StopDistance = 5f }; obj132.Steps = list192; reference144 = obj132; - ref QuestSequence reference145 = ref span74[1]; + num++; + ref QuestSequence reference145 = ref span191[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -224426,7 +271469,8 @@ public static class AssemblyQuestLoader }; obj133.Steps = list193; reference145 = obj133; - ref QuestSequence reference146 = ref span74[2]; + num++; + ref QuestSequence reference146 = ref span191[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 @@ -224434,21 +271478,26 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1030883u, new Vector3(-0.015319824f, 0f, 4.2877197f), 844) + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = new QuestStep(EInteractionType.Interact, 1030883u, new Vector3(-0.015319824f, 0f, 4.2877197f), 844) { StopDistance = 7f }; obj134.Steps = list194; reference146 = obj134; - ref QuestSequence reference147 = ref span74[3]; + num++; + ref QuestSequence reference147 = ref span191[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029167u, new Vector3(751.46094f, 21.38111f, -2.7314453f), 813) + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029167u, new Vector3(751.46094f, 21.38111f, -2.7314453f), 813) { AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; @@ -224461,13 +271510,16 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - CollectionsMarshal.AsSpan(list196)[0] = "liza"; + Span span196 = CollectionsMarshal.AsSpan(list196); + index = 0; + span196[index] = "liza"; questRoot24.Author = list196; - num = 4; - List list197 = new List(num); - CollectionsMarshal.SetCount(list197, num); - Span span75 = CollectionsMarshal.AsSpan(list197); - ref QuestSequence reference148 = ref span75[0]; + index = 4; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + Span span197 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference148 = ref span197[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 @@ -224475,7 +271527,9 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029167u, new Vector3(751.46094f, 21.38111f, -2.7314453f), 813) + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span198[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029167u, new Vector3(751.46094f, 21.38111f, -2.7314453f), 813) { AetheryteShortcut = EAetheryteLocation.LakelandFortJobb, SkipConditions = new SkipConditions @@ -224488,16 +271542,18 @@ public static class AssemblyQuestLoader }; obj136.Steps = list198; reference148 = obj136; - ref QuestSequence reference149 = ref span75[1]; + num++; + ref QuestSequence reference149 = ref span197[num]; QuestSequence obj137 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - Span span76 = CollectionsMarshal.AsSpan(list199); - span76[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(789.16504f, 21.14688f, -93.24946f), 813) + index2 = 5; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + Span span199 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span199[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(789.16504f, 21.14688f, -93.24946f), 813) { SkipConditions = new SkipConditions { @@ -224507,7 +271563,8 @@ public static class AssemblyQuestLoader } } }; - span76[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(731.32855f, 13.078317f, -147.50694f), 813) + num2++; + span199[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(731.32855f, 13.078317f, -147.50694f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -224518,7 +271575,8 @@ public static class AssemblyQuestLoader } } }; - span76[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(731.32855f, 13.078317f, -147.50694f), 813) + num2++; + span199[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(731.32855f, 13.078317f, -147.50694f), 813) { Fly = true, SkipConditions = new SkipConditions @@ -224529,15 +271587,18 @@ public static class AssemblyQuestLoader } } }; - span76[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(730.8644f, -1.99367f, -104.45362f), 813); - span76[4] = new QuestStep(EInteractionType.Interact, 2009861u, new Vector3(725.39856f, -1.9990234f, -93.33948f), 813) + num2++; + span199[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(730.8644f, -1.99367f, -104.45362f), 813); + num2++; + span199[num2] = new QuestStep(EInteractionType.Interact, 2009861u, new Vector3(725.39856f, -1.9990234f, -93.33948f), 813) { StopDistance = 0.5f, DisableNavmesh = true }; obj137.Steps = list199; reference149 = obj137; - ref QuestSequence reference150 = ref span75[2]; + num++; + ref QuestSequence reference150 = ref span197[num]; QuestSequence obj138 = new QuestSequence { Sequence = 2 @@ -224545,21 +271606,26 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Snipe, 2010512u, new Vector3(721.7975f, -1.9990234f, -92.97333f), 813) + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span200[index2] = new QuestStep(EInteractionType.Snipe, 2010512u, new Vector3(721.7975f, -1.9990234f, -92.97333f), 813) { Comment = "Tablet is on the right middle shelf of the table" }; obj138.Steps = list200; reference150 = obj138; - ref QuestSequence reference151 = ref span75[3]; + num++; + ref QuestSequence reference151 = ref span197[num]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030889u, new Vector3(699.42773f, -1.7076154f, -94.529724f), 813); + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span201[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030889u, new Vector3(699.42773f, -1.7076154f, -94.529724f), 813); obj139.Steps = list201; reference151 = obj139; questRoot24.QuestSequence = list197; @@ -224569,13 +271635,16 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "liza"; + Span span202 = CollectionsMarshal.AsSpan(list202); + index = 0; + span202[index] = "liza"; questRoot25.Author = list202; - num = 8; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span77 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference152 = ref span77[0]; + index = 8; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + Span span203 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference152 = ref span203[num]; QuestSequence obj140 = new QuestSequence { Sequence = 0 @@ -224583,19 +271652,23 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030889u, new Vector3(699.42773f, -1.7076154f, -94.529724f), 813); + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span204[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030889u, new Vector3(699.42773f, -1.7076154f, -94.529724f), 813); obj140.Steps = list204; reference152 = obj140; - ref QuestSequence reference153 = ref span77[1]; + num++; + ref QuestSequence reference153 = ref span203[num]; QuestSequence obj141 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - Span span78 = CollectionsMarshal.AsSpan(list205); - span78[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(695.94904f, 25.850925f, -269.87207f), 813) + index2 = 2; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + Span span205 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span205[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(695.94904f, 25.850925f, -269.87207f), 813) { SkipConditions = new SkipConditions { @@ -224605,17 +271678,20 @@ public static class AssemblyQuestLoader } } }; - span78[1] = new QuestStep(EInteractionType.Interact, 1028303u, new Vector3(872.7396f, 42.18195f, -281.26953f), 813) + num2++; + span205[num2] = new QuestStep(EInteractionType.Interact, 1028303u, new Vector3(872.7396f, 42.18195f, -281.26953f), 813) { Fly = true }; obj141.Steps = list205; reference153 = obj141; - span77[2] = new QuestSequence + num++; + span203[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference154 = ref span77[3]; + num++; + ref QuestSequence reference154 = ref span203[num]; QuestSequence obj142 = new QuestSequence { Sequence = 3 @@ -224623,24 +271699,30 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1029180u, new Vector3(-718.44055f, 9.072795f, 682.6123f), 817) + Span span206 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span206[index2] = new QuestStep(EInteractionType.Interact, 1029180u, new Vector3(-718.44055f, 9.072795f, 682.6123f), 817) { DisableNavmesh = true }; obj142.Steps = list206; reference154 = obj142; - ref QuestSequence reference155 = ref span77[4]; + num++; + ref QuestSequence reference155 = ref span203[num]; QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 2009862u, new Vector3(-424.49078f, 1.6021729f, 594.5371f), 817); + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + Span span207 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + span207[num2] = new QuestStep(EInteractionType.Interact, 2009862u, new Vector3(-424.49078f, 1.6021729f, 594.5371f), 817); obj143.Steps = list207; reference155 = obj143; - ref QuestSequence reference156 = ref span77[5]; + num++; + ref QuestSequence reference156 = ref span203[num]; QuestSequence obj144 = new QuestSequence { Sequence = 5 @@ -224648,43 +271730,55 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1029188u, new Vector3(-421.1643f, 1.6214006f, 594.72034f), 817) + Span span208 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span208[index2] = new QuestStep(EInteractionType.Interact, 1029188u, new Vector3(-421.1643f, 1.6214006f, 594.72034f), 817) { StopDistance = 5f }; obj144.Steps = list208; reference156 = obj144; - ref QuestSequence reference157 = ref span77[6]; + num++; + ref QuestSequence reference157 = ref span203[num]; QuestSequence obj145 = new QuestSequence { Sequence = 6 }; - num2 = 8; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span79 = CollectionsMarshal.AsSpan(list209); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-385.29327f, 1.622011f, 516.6794f), 817); - span79[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-390.73163f, 3.5300047f, 512.3785f), 817); - span79[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-384.37488f, 6.260351f, 512.5016f), 817); - span79[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-391.96292f, 6.3778677f, 509.45285f), 817); - span79[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-398.71173f, 6.5935116f, 505.39233f), 817) + index2 = 8; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + Span span209 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span209[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-385.29327f, 1.622011f, 516.6794f), 817); + num2++; + span209[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-390.73163f, 3.5300047f, 512.3785f), 817); + num2++; + span209[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-384.37488f, 6.260351f, 512.5016f), 817); + num2++; + span209[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-391.96292f, 6.3778677f, 509.45285f), 817); + num2++; + span209[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-398.71173f, 6.5935116f, 505.39233f), 817) { DisableNavmesh = true }; - span79[5] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010064u, new Vector3(-405.9548f, 7.1691f, 506.5442f), 817) + num2++; + span209[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010064u, new Vector3(-405.9548f, 7.1691f, 506.5442f), 817) { DisableNavmesh = true, AetherCurrentId = 2818283u }; - span79[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-405.7318f, 1.622011f, 512.249f), 817) + num2++; + span209[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-405.7318f, 1.622011f, 512.249f), 817) { DisableNavmesh = true, Mount = true }; - span79[7] = new QuestStep(EInteractionType.Interact, 1029189u, new Vector3(-234.51593f, -3.1024718f, 332.02112f), 817); + num2++; + span209[num2] = new QuestStep(EInteractionType.Interact, 1029189u, new Vector3(-234.51593f, -3.1024718f, 332.02112f), 817); obj145.Steps = list209; reference157 = obj145; - ref QuestSequence reference158 = ref span77[7]; + num++; + ref QuestSequence reference158 = ref span203[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -224692,7 +271786,9 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029190u, new Vector3(-121.90442f, -18.975767f, 297.23047f), 817); + Span span210 = CollectionsMarshal.AsSpan(list210); + index2 = 0; + span210[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029190u, new Vector3(-121.90442f, -18.975767f, 297.23047f), 817); obj146.Steps = list210; reference158 = obj146; questRoot25.QuestSequence = list203; @@ -224702,26 +271798,33 @@ public static class AssemblyQuestLoader num = 1; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - CollectionsMarshal.AsSpan(list211)[0] = "liza"; + Span span211 = CollectionsMarshal.AsSpan(list211); + index = 0; + span211[index] = "liza"; questRoot26.Author = list211; - num = 6; - List list212 = new List(num); - CollectionsMarshal.SetCount(list212, num); - Span span80 = CollectionsMarshal.AsSpan(list212); - ref QuestSequence reference159 = ref span80[0]; + index = 6; + List list212 = new List(index); + CollectionsMarshal.SetCount(list212, index); + Span span212 = CollectionsMarshal.AsSpan(list212); + num = 0; + ref QuestSequence reference159 = ref span212[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - ref QuestStep reference160 = ref CollectionsMarshal.AsSpan(list213)[0]; + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span213 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + ref QuestStep reference160 = ref span213[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.AcceptQuest, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817); - num3 = 1; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - CollectionsMarshal.AsSpan(list214)[0] = new DialogueChoice + index3 = 1; + List list214 = new List(index3); + CollectionsMarshal.SetCount(list214, index3); + Span span214 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span214[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMC104_03325_Q1_000_000"), @@ -224731,7 +271834,8 @@ public static class AssemblyQuestLoader reference160 = questStep13; obj147.Steps = list213; reference159 = obj147; - ref QuestSequence reference161 = ref span80[1]; + num++; + ref QuestSequence reference161 = ref span212[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -224739,26 +271843,32 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817); + Span span215 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span215[index2] = new QuestStep(EInteractionType.Interact, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817); obj148.Steps = list215; reference161 = obj148; - ref QuestSequence reference162 = ref span80[2]; + num++; + ref QuestSequence reference162 = ref span212[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - Span span81 = CollectionsMarshal.AsSpan(list216); - span81[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 817) + index2 = 2; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + Span span216 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span216[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 817) { Aetheryte = EAetheryteLocation.RaktikaSlitherbough }; - span81[1] = new QuestStep(EInteractionType.Interact, 1029198u, new Vector3(-118.18121f, -19.713022f, 385.51917f), 817); + num2++; + span216[num2] = new QuestStep(EInteractionType.Interact, 1029198u, new Vector3(-118.18121f, -19.713022f, 385.51917f), 817); obj149.Steps = list216; reference162 = obj149; - ref QuestSequence reference163 = ref span80[3]; + num++; + ref QuestSequence reference163 = ref span212[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -224766,22 +271876,26 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Emote, 1029198u, new Vector3(-118.18121f, -19.713022f, 385.51917f), 817) + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new QuestStep(EInteractionType.Emote, 1029198u, new Vector3(-118.18121f, -19.713022f, 385.51917f), 817) { Emote = EEmote.Kneel }; obj150.Steps = list217; reference163 = obj150; - ref QuestSequence reference164 = ref span80[4]; + num++; + ref QuestSequence reference164 = ref span212[num]; QuestSequence obj151 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - Span span82 = CollectionsMarshal.AsSpan(list218); - ref QuestStep reference165 = ref span82[0]; + index2 = 3; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + ref QuestStep reference165 = ref span218[num2]; QuestStep obj152 = new QuestStep(EInteractionType.Say, 1030382u, new Vector3(-113.11517f, -18.484627f, 324.20837f), 817) { ChatMessage = new ChatMessage @@ -224792,16 +271906,23 @@ public static class AssemblyQuestLoader num3 = 6; List list219 = new List(num3); CollectionsMarshal.SetCount(list219, num3); - Span span83 = CollectionsMarshal.AsSpan(list219); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span219 = CollectionsMarshal.AsSpan(list219); + index3 = 0; + span219[index3] = null; + index3++; + span219[index3] = null; + index3++; + span219[index3] = null; + index3++; + span219[index3] = null; + index3++; + span219[index3] = null; + index3++; + span219[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj152.CompletionQuestVariablesFlags = list219; reference165 = obj152; - ref QuestStep reference166 = ref span82[1]; + num2++; + ref QuestStep reference166 = ref span218[num2]; QuestStep obj153 = new QuestStep(EInteractionType.Say, 1027463u, new Vector3(-130.26636f, -18.486685f, 246.57043f), 817) { ChatMessage = new ChatMessage @@ -224809,19 +271930,26 @@ public static class AssemblyQuestLoader Key = "TEXT_LUCKMC104_03325_SYSTEM_000_110" } }; - num3 = 6; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - Span span84 = CollectionsMarshal.AsSpan(list220); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list220 = new List(index3); + CollectionsMarshal.SetCount(list220, index3); + Span span220 = CollectionsMarshal.AsSpan(list220); + num3 = 0; + span220[num3] = null; + num3++; + span220[num3] = null; + num3++; + span220[num3] = null; + num3++; + span220[num3] = null; + num3++; + span220[num3] = null; + num3++; + span220[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj153.CompletionQuestVariablesFlags = list220; reference166 = obj153; - ref QuestStep reference167 = ref span82[2]; + num2++; + ref QuestStep reference167 = ref span218[num2]; QuestStep obj154 = new QuestStep(EInteractionType.Say, 1027750u, new Vector3(-24.734924f, -25.324257f, 305.5924f), 817) { ChatMessage = new ChatMessage @@ -224832,18 +271960,25 @@ public static class AssemblyQuestLoader num3 = 6; List list221 = new List(num3); CollectionsMarshal.SetCount(list221, num3); - Span span85 = CollectionsMarshal.AsSpan(list221); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span221 = CollectionsMarshal.AsSpan(list221); + index3 = 0; + span221[index3] = null; + index3++; + span221[index3] = null; + index3++; + span221[index3] = null; + index3++; + span221[index3] = null; + index3++; + span221[index3] = null; + index3++; + span221[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj154.CompletionQuestVariablesFlags = list221; reference167 = obj154; obj151.Steps = list218; reference164 = obj151; - ref QuestSequence reference168 = ref span80[5]; + num++; + ref QuestSequence reference168 = ref span212[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue @@ -224851,7 +271986,9 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029199u, new Vector3(-116.71625f, -19.706732f, 386.49573f), 817); + Span span222 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span222[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029199u, new Vector3(-116.71625f, -19.706732f, 386.49573f), 817); obj155.Steps = list222; reference168 = obj155; questRoot26.QuestSequence = list212; @@ -224861,21 +271998,26 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - CollectionsMarshal.AsSpan(list223)[0] = "liza"; + Span span223 = CollectionsMarshal.AsSpan(list223); + index = 0; + span223[index] = "liza"; questRoot27.Author = list223; - num = 6; - List list224 = new List(num); - CollectionsMarshal.SetCount(list224, num); - Span span86 = CollectionsMarshal.AsSpan(list224); - ref QuestSequence reference169 = ref span86[0]; + index = 6; + List list224 = new List(index); + CollectionsMarshal.SetCount(list224, index); + Span span224 = CollectionsMarshal.AsSpan(list224); + num = 0; + ref QuestSequence reference169 = ref span224[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029198u, new Vector3(-118.18121f, -19.713022f, 385.51917f), 817) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029198u, new Vector3(-118.18121f, -19.713022f, 385.51917f), 817) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough, @@ -224889,7 +272031,8 @@ public static class AssemblyQuestLoader }; obj156.Steps = list225; reference169 = obj156; - ref QuestSequence reference170 = ref span86[1]; + num++; + ref QuestSequence reference170 = ref span224[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 @@ -224897,24 +272040,30 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 1029200u, new Vector3(-112.90161f, -19.59217f, 388.84558f), 817) + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span226[index2] = new QuestStep(EInteractionType.Interact, 1029200u, new Vector3(-112.90161f, -19.59217f, 388.84558f), 817) { StopDistance = 7f }; obj157.Steps = list226; reference170 = obj157; - ref QuestSequence reference171 = ref span86[2]; + num++; + ref QuestSequence reference171 = ref span224[num]; QuestSequence obj158 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 2009863u, new Vector3(-71.78751f, -19.33637f, 302.1084f), 817); + index2 = 1; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + Span span227 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span227[num2] = new QuestStep(EInteractionType.Interact, 2009863u, new Vector3(-71.78751f, -19.33637f, 302.1084f), 817); obj158.Steps = list227; reference171 = obj158; - ref QuestSequence reference172 = ref span86[3]; + num++; + ref QuestSequence reference172 = ref span224[num]; QuestSequence obj159 = new QuestSequence { Sequence = 3 @@ -224922,24 +272071,30 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1029200u, new Vector3(-112.90161f, -19.59217f, 388.84558f), 817) + Span span228 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span228[index2] = new QuestStep(EInteractionType.Interact, 1029200u, new Vector3(-112.90161f, -19.59217f, 388.84558f), 817) { StopDistance = 7f }; obj159.Steps = list228; reference172 = obj159; - ref QuestSequence reference173 = ref span86[4]; + num++; + ref QuestSequence reference173 = ref span224[num]; QuestSequence obj160 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 2009864u, new Vector3(-71.03082f, -19.394226f, 293.47668f), 817); + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + Span span229 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span229[num2] = new QuestStep(EInteractionType.Interact, 2009864u, new Vector3(-71.03082f, -19.394226f, 293.47668f), 817); obj160.Steps = list229; reference173 = obj160; - ref QuestSequence reference174 = ref span86[5]; + num++; + ref QuestSequence reference174 = ref span224[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue @@ -224947,7 +272102,9 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027741u, new Vector3(-80.338745f, -19.101032f, 299.82446f), 817); + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span230[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027741u, new Vector3(-80.338745f, -19.101032f, 299.82446f), 817); obj161.Steps = list230; reference174 = obj161; questRoot27.QuestSequence = list224; @@ -224957,24 +272114,30 @@ public static class AssemblyQuestLoader num = 1; List list231 = new List(num); CollectionsMarshal.SetCount(list231, num); - CollectionsMarshal.AsSpan(list231)[0] = "liza"; + Span span231 = CollectionsMarshal.AsSpan(list231); + index = 0; + span231[index] = "liza"; questRoot28.Author = list231; - num = 7; - List list232 = new List(num); - CollectionsMarshal.SetCount(list232, num); - Span span87 = CollectionsMarshal.AsSpan(list232); - ref QuestSequence reference175 = ref span87[0]; + index = 7; + List list232 = new List(index); + CollectionsMarshal.SetCount(list232, index); + Span span232 = CollectionsMarshal.AsSpan(list232); + num = 0; + ref QuestSequence reference175 = ref span232[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817); + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + Span span233 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span233[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817); obj162.Steps = list233; reference175 = obj162; - ref QuestSequence reference176 = ref span87[1]; + num++; + ref QuestSequence reference176 = ref span232[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 @@ -224982,37 +272145,45 @@ public static class AssemblyQuestLoader num2 = 2; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - Span span88 = CollectionsMarshal.AsSpan(list234); - span88[0] = new QuestStep(EInteractionType.AcceptQuest, 1029023u, new Vector3(-131.36493f, -16.477911f, 316.3042f), 817) + Span span234 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + span234[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029023u, new Vector3(-131.36493f, -16.477911f, 316.3042f), 817) { PickUpQuestId = new QuestId(3444) }; - span88[1] = new QuestStep(EInteractionType.Interact, 2009866u, new Vector3(-260.73096f, 13.656799f, 554.68054f), 817); + index2++; + span234[index2] = new QuestStep(EInteractionType.Interact, 2009866u, new Vector3(-260.73096f, 13.656799f, 554.68054f), 817); obj163.Steps = list234; reference176 = obj163; - ref QuestSequence reference177 = ref span87[2]; + num++; + ref QuestSequence reference177 = ref span232[num]; QuestSequence obj164 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - ref QuestStep reference178 = ref CollectionsMarshal.AsSpan(list235)[0]; + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + Span span235 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + ref QuestStep reference178 = ref span235[num2]; QuestStep obj165 = new QuestStep(EInteractionType.Combat, null, new Vector3(-284.9141f, 8.7010765f, 603.8272f), 817) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list236 = new List(num3); - CollectionsMarshal.SetCount(list236, num3); - CollectionsMarshal.AsSpan(list236)[0] = 10878u; + index3 = 1; + List list236 = new List(index3); + CollectionsMarshal.SetCount(list236, index3); + Span span236 = CollectionsMarshal.AsSpan(list236); + num3 = 0; + span236[num3] = 10878u; obj165.KillEnemyDataIds = list236; reference178 = obj165; obj164.Steps = list235; reference177 = obj164; - ref QuestSequence reference179 = ref span87[3]; + num++; + ref QuestSequence reference179 = ref span232[num]; QuestSequence obj166 = new QuestSequence { Sequence = 3 @@ -225020,21 +272191,27 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1029206u, new Vector3(-243.18304f, 13.323829f, 778.9883f), 817); + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span237[index2] = new QuestStep(EInteractionType.Interact, 1029206u, new Vector3(-243.18304f, 13.323829f, 778.9883f), 817); obj166.Steps = list237; reference179 = obj166; - ref QuestSequence reference180 = ref span87[4]; + num++; + ref QuestSequence reference180 = ref span232[num]; QuestSequence obj167 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 2009869u, new Vector3(-309.3156f, 7.095398f, 702.2355f), 817); + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.Interact, 2009869u, new Vector3(-309.3156f, 7.095398f, 702.2355f), 817); obj167.Steps = list238; reference180 = obj167; - ref QuestSequence reference181 = ref span87[5]; + num++; + ref QuestSequence reference181 = ref span232[num]; QuestSequence obj168 = new QuestSequence { Sequence = 5 @@ -225042,18 +272219,23 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1029207u, new Vector3(-213.61108f, 10.207863f, 712.6116f), 817); + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new QuestStep(EInteractionType.Interact, 1029207u, new Vector3(-213.61108f, 10.207863f, 712.6116f), 817); obj168.Steps = list239; reference181 = obj168; - ref QuestSequence reference182 = ref span87[6]; + num++; + ref QuestSequence reference182 = ref span232[num]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; @@ -225066,13 +272248,16 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "liza"; + Span span241 = CollectionsMarshal.AsSpan(list241); + index = 0; + span241[index] = "liza"; questRoot29.Author = list241; - num = 6; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span89 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference183 = ref span89[0]; + index = 6; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + Span span242 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference183 = ref span242[num]; QuestSequence obj170 = new QuestSequence { Sequence = 0 @@ -225080,21 +272265,27 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817); + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span243[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817); obj170.Steps = list243; reference183 = obj170; - ref QuestSequence reference184 = ref span89[1]; + num++; + ref QuestSequence reference184 = ref span242[num]; QuestSequence obj171 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1029209u, new Vector3(-92.484924f, -19.11198f, 307.1183f), 817); + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.Interact, 1029209u, new Vector3(-92.484924f, -19.11198f, 307.1183f), 817); obj171.Steps = list244; reference184 = obj171; - ref QuestSequence reference185 = ref span89[2]; + num++; + ref QuestSequence reference185 = ref span242[num]; QuestSequence obj172 = new QuestSequence { Sequence = 2 @@ -225102,24 +272293,30 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1028989u, new Vector3(-77.86682f, -28.632244f, 423.6056f), 817); + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.Interact, 1028989u, new Vector3(-77.86682f, -28.632244f, 423.6056f), 817); obj172.Steps = list245; reference185 = obj172; - ref QuestSequence reference186 = ref span89[3]; + num++; + ref QuestSequence reference186 = ref span242[num]; QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.UseItem, 2009871u, new Vector3(-89.49426f, -28.641174f, 416.06763f), 817) + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.UseItem, 2009871u, new Vector3(-89.49426f, -28.641174f, 416.06763f), 817) { ItemId = 2002546u }; obj173.Steps = list246; reference186 = obj173; - ref QuestSequence reference187 = ref span89[4]; + num++; + ref QuestSequence reference187 = ref span242[num]; QuestSequence obj174 = new QuestSequence { Sequence = 4 @@ -225127,18 +272324,23 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 2009872u, new Vector3(-69.65747f, -28.641174f, 409.4757f), 817); + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.Interact, 2009872u, new Vector3(-69.65747f, -28.641174f, 409.4757f), 817); obj174.Steps = list247; reference187 = obj174; - ref QuestSequence reference188 = ref span89[5]; + num++; + ref QuestSequence reference188 = ref span242[num]; QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817) { StopDistance = 5f }; @@ -225151,13 +272353,16 @@ public static class AssemblyQuestLoader num = 1; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - CollectionsMarshal.AsSpan(list249)[0] = "liza"; + Span span249 = CollectionsMarshal.AsSpan(list249); + index = 0; + span249[index] = "liza"; questRoot30.Author = list249; - num = 10; - List list250 = new List(num); - CollectionsMarshal.SetCount(list250, num); - Span span90 = CollectionsMarshal.AsSpan(list250); - ref QuestSequence reference189 = ref span90[0]; + index = 10; + List list250 = new List(index); + CollectionsMarshal.SetCount(list250, index); + Span span250 = CollectionsMarshal.AsSpan(list250); + num = 0; + ref QuestSequence reference189 = ref span250[num]; QuestSequence obj176 = new QuestSequence { Sequence = 0 @@ -225165,24 +272370,30 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817) + Span span251 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span251[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817) { StopDistance = 5f }; obj176.Steps = list251; reference189 = obj176; - ref QuestSequence reference190 = ref span90[1]; + num++; + ref QuestSequence reference190 = ref span250[num]; QuestSequence obj177 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.Interact, 1029212u, new Vector3(-313.5882f, 5.156485f, 285.60303f), 817); + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.Interact, 1029212u, new Vector3(-313.5882f, 5.156485f, 285.60303f), 817); obj177.Steps = list252; reference190 = obj177; - ref QuestSequence reference191 = ref span90[2]; + num++; + ref QuestSequence reference191 = ref span250[num]; QuestSequence obj178 = new QuestSequence { Sequence = 2 @@ -225190,14 +272401,17 @@ public static class AssemblyQuestLoader num2 = 3; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span91 = CollectionsMarshal.AsSpan(list253); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-138.85619f, -3.036951f, 54.482983f), 817); - span91[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010066u, new Vector3(-141.58856f, -0.9003296f, 49.759644f), 817) + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-138.85619f, -3.036951f, 54.482983f), 817); + index2++; + span253[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010066u, new Vector3(-141.58856f, -0.9003296f, 49.759644f), 817) { DisableNavmesh = true, AetherCurrentId = 2818285u }; - ref QuestStep reference192 = ref span91[2]; + index2++; + ref QuestStep reference192 = ref span253[index2]; QuestStep obj179 = new QuestStep(EInteractionType.Combat, 1029214u, new Vector3(-157.64093f, 7.3982058f, -13.351685f), 817) { StopDistance = 2f, @@ -225206,23 +272420,29 @@ public static class AssemblyQuestLoader num3 = 1; List list254 = new List(num3); CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = 10879u; + Span span254 = CollectionsMarshal.AsSpan(list254); + index3 = 0; + span254[index3] = 10879u; obj179.KillEnemyDataIds = list254; reference192 = obj179; obj178.Steps = list253; reference191 = obj178; - ref QuestSequence reference193 = ref span90[3]; + num++; + ref QuestSequence reference193 = ref span250[num]; QuestSequence obj180 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1029214u, new Vector3(-157.64093f, 7.3982058f, -13.351685f), 817); + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span255 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span255[num2] = new QuestStep(EInteractionType.Interact, 1029214u, new Vector3(-157.64093f, 7.3982058f, -13.351685f), 817); obj180.Steps = list255; reference193 = obj180; - ref QuestSequence reference194 = ref span90[4]; + num++; + ref QuestSequence reference194 = ref span250[num]; QuestSequence obj181 = new QuestSequence { Sequence = 4 @@ -225230,32 +272450,40 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 2009874u, new Vector3(-231.8609f, 21.713562f, -49.302002f), 817); + Span span256 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span256[index2] = new QuestStep(EInteractionType.Interact, 2009874u, new Vector3(-231.8609f, 21.713562f, -49.302002f), 817); obj181.Steps = list256; reference194 = obj181; - ref QuestSequence reference195 = ref span90[5]; + num++; + ref QuestSequence reference195 = ref span250[num]; QuestSequence obj182 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - ref QuestStep reference196 = ref CollectionsMarshal.AsSpan(list257)[0]; + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span257 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + ref QuestStep reference196 = ref span257[num2]; QuestStep obj183 = new QuestStep(EInteractionType.Combat, 2009875u, new Vector3(-292.2561f, 23.5141f, -182.75739f), 817) { ItemId = 2002547u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - CollectionsMarshal.AsSpan(list258)[0] = 10880u; + index3 = 1; + List list258 = new List(index3); + CollectionsMarshal.SetCount(list258, index3); + Span span258 = CollectionsMarshal.AsSpan(list258); + num3 = 0; + span258[num3] = 10880u; obj183.KillEnemyDataIds = list258; reference196 = obj183; obj182.Steps = list257; reference195 = obj182; - ref QuestSequence reference197 = ref span90[6]; + num++; + ref QuestSequence reference197 = ref span250[num]; QuestSequence obj184 = new QuestSequence { Sequence = 6 @@ -225263,21 +272491,26 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.UseItem, 2010501u, new Vector3(-292.28656f, 23.483582f, -182.78784f), 817) + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span259[index2] = new QuestStep(EInteractionType.UseItem, 2010501u, new Vector3(-292.28656f, 23.483582f, -182.78784f), 817) { ItemId = 2002548u }; obj184.Steps = list259; reference197 = obj184; - ref QuestSequence reference198 = ref span90[7]; + num++; + ref QuestSequence reference198 = ref span250[num]; QuestSequence obj185 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - ref QuestStep reference199 = ref CollectionsMarshal.AsSpan(list260)[0]; + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + ref QuestStep reference199 = ref span260[num2]; QuestStep obj186 = new QuestStep(EInteractionType.Combat, 2009876u, new Vector3(-190.44794f, 3.036438f, 2.5787354f), 817) { ItemId = 2002547u, @@ -225286,12 +272519,15 @@ public static class AssemblyQuestLoader num3 = 1; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - CollectionsMarshal.AsSpan(list261)[0] = 10881u; + Span span261 = CollectionsMarshal.AsSpan(list261); + index3 = 0; + span261[index3] = 10881u; obj186.KillEnemyDataIds = list261; reference199 = obj186; obj185.Steps = list260; reference198 = obj185; - ref QuestSequence reference200 = ref span90[8]; + num++; + ref QuestSequence reference200 = ref span250[num]; QuestSequence obj187 = new QuestSequence { Sequence = 8 @@ -225299,21 +272535,26 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.UseItem, 2010502u, new Vector3(-190.44794f, 3.036438f, 2.5787354f), 817) + Span span262 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span262[index2] = new QuestStep(EInteractionType.UseItem, 2010502u, new Vector3(-190.44794f, 3.036438f, 2.5787354f), 817) { ItemId = 2002548u }; obj187.Steps = list262; reference200 = obj187; - ref QuestSequence reference201 = ref span90[9]; + num++; + ref QuestSequence reference201 = ref span250[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029216u, new Vector3(-235.09583f, 19.22425f, -70.72565f), 817); + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + Span span263 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span263[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029216u, new Vector3(-235.09583f, 19.22425f, -70.72565f), 817); obj188.Steps = list263; reference201 = obj188; questRoot30.QuestSequence = list250; @@ -225323,13 +272564,16 @@ public static class AssemblyQuestLoader num = 1; List list264 = new List(num); CollectionsMarshal.SetCount(list264, num); - CollectionsMarshal.AsSpan(list264)[0] = "liza"; + Span span264 = CollectionsMarshal.AsSpan(list264); + index = 0; + span264[index] = "liza"; questRoot31.Author = list264; - num = 6; - List list265 = new List(num); - CollectionsMarshal.SetCount(list265, num); - Span span92 = CollectionsMarshal.AsSpan(list265); - ref QuestSequence reference202 = ref span92[0]; + index = 6; + List list265 = new List(index); + CollectionsMarshal.SetCount(list265, index); + Span span265 = CollectionsMarshal.AsSpan(list265); + num = 0; + ref QuestSequence reference202 = ref span265[num]; QuestSequence obj189 = new QuestSequence { Sequence = 0 @@ -225337,21 +272581,27 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029216u, new Vector3(-235.09583f, 19.22425f, -70.72565f), 817); + Span span266 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span266[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029216u, new Vector3(-235.09583f, 19.22425f, -70.72565f), 817); obj189.Steps = list266; reference202 = obj189; - ref QuestSequence reference203 = ref span92[1]; + num++; + ref QuestSequence reference203 = ref span265[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.Interact, 1029218u, new Vector3(-704.43274f, 14.656629f, -45.5177f), 817); + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span267[num2] = new QuestStep(EInteractionType.Interact, 1029218u, new Vector3(-704.43274f, 14.656629f, -45.5177f), 817); obj190.Steps = list267; reference203 = obj190; - ref QuestSequence reference204 = ref span92[2]; + num++; + ref QuestSequence reference204 = ref span265[num]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -225359,29 +272609,35 @@ public static class AssemblyQuestLoader num2 = 2; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - Span span93 = CollectionsMarshal.AsSpan(list268); - span93[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-761.0279f, 36.49958f, -337.04126f), 817) + Span span268 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span268[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-761.0279f, 36.49958f, -337.04126f), 817) { Comment = "Moves out of aggro range of the door guard" }; - span93[1] = new QuestStep(EInteractionType.Interact, 1029764u, new Vector3(-763.79034f, 36.49958f, -332.29572f), 817) + index2++; + span268[index2] = new QuestStep(EInteractionType.Interact, 1029764u, new Vector3(-763.79034f, 36.49958f, -332.29572f), 817) { StopDistance = 7f }; obj191.Steps = list268; reference204 = obj191; - ref QuestSequence reference205 = ref span92[3]; + num++; + ref QuestSequence reference205 = ref span265[num]; QuestSequence obj192 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1029220u, new Vector3(-801.4496f, 40.021206f, -393.6065f), 817); + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + Span span269 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span269[num2] = new QuestStep(EInteractionType.Interact, 1029220u, new Vector3(-801.4496f, 40.021206f, -393.6065f), 817); obj192.Steps = list269; reference205 = obj192; - ref QuestSequence reference206 = ref span92[4]; + num++; + ref QuestSequence reference206 = ref span265[num]; QuestSequence obj193 = new QuestSequence { Sequence = 4 @@ -225389,21 +272645,26 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.Snipe, 2009877u, new Vector3(-820.6455f, 38.376343f, -359.4873f), 817) + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span270[index2] = new QuestStep(EInteractionType.Snipe, 2009877u, new Vector3(-820.6455f, 38.376343f, -359.4873f), 817) { Comment = "Click murals" }; obj193.Steps = list270; reference206 = obj193; - ref QuestSequence reference207 = ref span92[5]; + num++; + ref QuestSequence reference207 = ref span265[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029221u, new Vector3(-523.09454f, 2.9589303f, -35.629883f), 817) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029221u, new Vector3(-523.09454f, 2.9589303f, -35.629883f), 817) { StopDistance = 7f }; @@ -225416,13 +272677,16 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - CollectionsMarshal.AsSpan(list272)[0] = "liza"; + Span span272 = CollectionsMarshal.AsSpan(list272); + index = 0; + span272[index] = "liza"; questRoot32.Author = list272; - num = 4; - List list273 = new List(num); - CollectionsMarshal.SetCount(list273, num); - Span span94 = CollectionsMarshal.AsSpan(list273); - ref QuestSequence reference208 = ref span94[0]; + index = 4; + List list273 = new List(index); + CollectionsMarshal.SetCount(list273, index); + Span span273 = CollectionsMarshal.AsSpan(list273); + num = 0; + ref QuestSequence reference208 = ref span273[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -225430,27 +272694,33 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029221u, new Vector3(-523.09454f, 2.9589303f, -35.629883f), 817) + Span span274 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span274[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029221u, new Vector3(-523.09454f, 2.9589303f, -35.629883f), 817) { StopDistance = 7f }; obj195.Steps = list274; reference208 = obj195; - ref QuestSequence reference209 = ref span94[1]; + num++; + ref QuestSequence reference209 = ref span273[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.Interact, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj196.Steps = list275; reference209 = obj196; - ref QuestSequence reference210 = ref span94[2]; + num++; + ref QuestSequence reference210 = ref span273[num]; QuestSequence obj197 = new QuestSequence { Sequence = 2 @@ -225458,20 +272728,25 @@ public static class AssemblyQuestLoader num2 = 2; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span95 = CollectionsMarshal.AsSpan(list276); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.65787f, -19.038322f, 309.5947f), 817); - span95[1] = new QuestStep(EInteractionType.Interact, 2009878u, new Vector3(-78.90448f, -19.272217f, 312.4895f), 817); + Span span276 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span276[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.65787f, -19.038322f, 309.5947f), 817); + index2++; + span276[index2] = new QuestStep(EInteractionType.Interact, 2009878u, new Vector3(-78.90448f, -19.272217f, 312.4895f), 817); obj197.Steps = list276; reference210 = obj197; - ref QuestSequence reference211 = ref span94[3]; + num++; + ref QuestSequence reference211 = ref span273[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029195u, new Vector3(-35.751892f, -18.919392f, 335.71375f), 817) + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span277[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029195u, new Vector3(-35.751892f, -18.919392f, 335.71375f), 817) { StopDistance = 5f }; @@ -225484,13 +272759,16 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - CollectionsMarshal.AsSpan(list278)[0] = "liza"; + Span span278 = CollectionsMarshal.AsSpan(list278); + index = 0; + span278[index] = "liza"; questRoot33.Author = list278; - num = 7; - List list279 = new List(num); - CollectionsMarshal.SetCount(list279, num); - Span span96 = CollectionsMarshal.AsSpan(list279); - ref QuestSequence reference212 = ref span96[0]; + index = 7; + List list279 = new List(index); + CollectionsMarshal.SetCount(list279, index); + Span span279 = CollectionsMarshal.AsSpan(list279); + num = 0; + ref QuestSequence reference212 = ref span279[num]; QuestSequence obj199 = new QuestSequence { Sequence = 0 @@ -225498,29 +272776,35 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029195u, new Vector3(-35.751892f, -18.919392f, 335.71375f), 817) + Span span280 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span280[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029195u, new Vector3(-35.751892f, -18.919392f, 335.71375f), 817) { StopDistance = 5f }; obj199.Steps = list280; reference212 = obj199; - ref QuestSequence reference213 = ref span96[1]; + num++; + ref QuestSequence reference213 = ref span279[num]; QuestSequence obj200 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - Span span97 = CollectionsMarshal.AsSpan(list281); - span97[0] = new QuestStep(EInteractionType.AcceptQuest, 1030747u, new Vector3(-81.28485f, -19.061882f, 307.20984f), 817) + index2 = 2; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + Span span281 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span281[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030747u, new Vector3(-81.28485f, -19.061882f, 307.20984f), 817) { PickUpQuestId = new QuestId(3656) }; - span97[1] = new QuestStep(EInteractionType.Interact, 1029223u, new Vector3(-470.96973f, 2.3035004f, 301.4724f), 817); + num2++; + span281[num2] = new QuestStep(EInteractionType.Interact, 1029223u, new Vector3(-470.96973f, 2.3035004f, 301.4724f), 817); obj200.Steps = list281; reference213 = obj200; - ref QuestSequence reference214 = ref span96[2]; + num++; + ref QuestSequence reference214 = ref span279[num]; QuestSequence obj201 = new QuestSequence { Sequence = 2 @@ -225528,17 +272812,21 @@ public static class AssemblyQuestLoader num2 = 2; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span98 = CollectionsMarshal.AsSpan(list282); - span98[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(-528.96277f, -0.6f, 341.0297f), 817); - ref QuestStep reference215 = ref span98[1]; + Span span282 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span282[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-528.96277f, -0.6f, 341.0297f), 817); + index2++; + ref QuestStep reference215 = ref span282[index2]; QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2009879u, new Vector3(-591.97375f, -90.56238f, 291.6151f), 817) { Fly = true }; - num3 = 1; - List list283 = new List(num3); - CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = new DialogueChoice + index3 = 1; + List list283 = new List(index3); + CollectionsMarshal.SetCount(list283, index3); + Span span283 = CollectionsMarshal.AsSpan(list283); + num3 = 0; + span283[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMC111_03332_Q2_000_071") @@ -225547,15 +272835,18 @@ public static class AssemblyQuestLoader reference215 = obj202; obj201.Steps = list282; reference214 = obj201; - ref QuestSequence reference216 = ref span96[3]; + num++; + ref QuestSequence reference216 = ref span279[num]; QuestSequence obj203 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - ref QuestStep reference217 = ref CollectionsMarshal.AsSpan(list284)[0]; + index2 = 1; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + Span span284 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + ref QuestStep reference217 = ref span284[num2]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 2009880u, new Vector3(-670.25256f, -90.68439f, 449.94275f), 817) { Fly = true @@ -225563,7 +272854,9 @@ public static class AssemblyQuestLoader num3 = 1; List list285 = new List(num3); CollectionsMarshal.SetCount(list285, num3); - CollectionsMarshal.AsSpan(list285)[0] = new DialogueChoice + Span span285 = CollectionsMarshal.AsSpan(list285); + index3 = 0; + span285[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMC111_03332_Q3_000_081") @@ -225572,7 +272865,8 @@ public static class AssemblyQuestLoader reference217 = obj204; obj203.Steps = list284; reference216 = obj203; - ref QuestSequence reference218 = ref span96[4]; + num++; + ref QuestSequence reference218 = ref span279[num]; QuestSequence obj205 = new QuestSequence { Sequence = 4 @@ -225580,12 +272874,16 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - ref QuestStep reference219 = ref CollectionsMarshal.AsSpan(list286)[0]; + Span span286 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + ref QuestStep reference219 = ref span286[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2009882u, new Vector3(-880.15564f, -90.68439f, 289.99768f), 817); - num3 = 1; - List list287 = new List(num3); - CollectionsMarshal.SetCount(list287, num3); - CollectionsMarshal.AsSpan(list287)[0] = new DialogueChoice + index3 = 1; + List list287 = new List(index3); + CollectionsMarshal.SetCount(list287, index3); + Span span287 = CollectionsMarshal.AsSpan(list287); + num3 = 0; + span287[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMC111_03332_Q5_000_091") @@ -225594,27 +272892,31 @@ public static class AssemblyQuestLoader reference219 = questStep14; obj205.Steps = list286; reference218 = obj205; - ref QuestSequence reference220 = ref span96[5]; + num++; + ref QuestSequence reference220 = ref span279[num]; QuestSequence obj206 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - Span span99 = CollectionsMarshal.AsSpan(list288); - span99[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-591.7246f, -92.929955f, 279.56708f), 817) + index2 = 2; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + Span span288 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span288[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-591.7246f, -92.929955f, 279.56708f), 817) { Fly = true }; - span99[1] = new QuestStep(EInteractionType.Interact, 2009884u, new Vector3(-593.164f, -95.23157f, 256.0005f), 817) + num2++; + span288[num2] = new QuestStep(EInteractionType.Interact, 2009884u, new Vector3(-593.164f, -95.23157f, 256.0005f), 817) { DisableNavmesh = true, Fly = true }; obj206.Steps = list288; reference220 = obj206; - ref QuestSequence reference221 = ref span96[6]; + num++; + ref QuestSequence reference221 = ref span279[num]; QuestSequence obj207 = new QuestSequence { Sequence = byte.MaxValue @@ -225622,27 +272924,32 @@ public static class AssemblyQuestLoader num2 = 5; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span100 = CollectionsMarshal.AsSpan(list289); - span100[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-591.7246f, -92.929955f, 279.56708f), 817) + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span289[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-591.7246f, -92.929955f, 279.56708f), 817) { DisableNavmesh = true, Mount = true, Fly = true }; - span100[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-594.93475f, -77.64466f, 341.04385f), 817) + index2++; + span289[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-594.93475f, -77.64466f, 341.04385f), 817) { Fly = true }; - span100[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-537.1801f, -0.6f, 340.31f), 817) + index2++; + span289[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-537.1801f, -0.6f, 340.31f), 817) { DisableNavmesh = true, RestartNavigationIfCancelled = false }; - span100[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-509.11002f, -0.3000083f, 324.28143f), 817) + index2++; + span289[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-509.11002f, -0.3000083f, 324.28143f), 817) { DisableNavmesh = true }; - span100[4] = new QuestStep(EInteractionType.CompleteQuest, 1029223u, new Vector3(-470.96973f, 2.3035004f, 301.4724f), 817); + index2++; + span289[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029223u, new Vector3(-470.96973f, 2.3035004f, 301.4724f), 817); obj207.Steps = list289; reference221 = obj207; questRoot33.QuestSequence = list279; @@ -225652,24 +272959,30 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - CollectionsMarshal.AsSpan(list290)[0] = "liza"; + Span span290 = CollectionsMarshal.AsSpan(list290); + index = 0; + span290[index] = "liza"; questRoot34.Author = list290; - num = 4; - List list291 = new List(num); - CollectionsMarshal.SetCount(list291, num); - Span span101 = CollectionsMarshal.AsSpan(list291); - ref QuestSequence reference222 = ref span101[0]; + index = 4; + List list291 = new List(index); + CollectionsMarshal.SetCount(list291, index); + Span span291 = CollectionsMarshal.AsSpan(list291); + num = 0; + ref QuestSequence reference222 = ref span291[num]; QuestSequence obj208 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029223u, new Vector3(-470.96973f, 2.3035004f, 301.4724f), 817); + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + Span span292 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span292[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029223u, new Vector3(-470.96973f, 2.3035004f, 301.4724f), 817); obj208.Steps = list292; reference222 = obj208; - ref QuestSequence reference223 = ref span101[1]; + num++; + ref QuestSequence reference223 = ref span291[num]; QuestSequence obj209 = new QuestSequence { Sequence = 1 @@ -225677,43 +272990,52 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1029224u, new Vector3(-7.4921875f, 0.74753714f, 205.40161f), 817) + Span span293 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span293[index2] = new QuestStep(EInteractionType.Interact, 1029224u, new Vector3(-7.4921875f, 0.74753714f, 205.40161f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj209.Steps = list293; reference223 = obj209; - ref QuestSequence reference224 = ref span101[2]; + num++; + ref QuestSequence reference224 = ref span291[num]; QuestSequence obj210 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - Span span102 = CollectionsMarshal.AsSpan(list294); - span102[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(66.71601f, 0.675326f, 231.57246f), 817) + index2 = 5; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span294 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span294[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(66.71601f, 0.675326f, 231.57246f), 817) { DisableNavmesh = true, Mount = true }; - span102[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(252.46225f, -0.91537976f, 257.19345f), 817); - span102[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(334.33804f, 23.86952f, 271.9542f), 817) + num2++; + span294[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(252.46225f, -0.91537976f, 257.19345f), 817); + num2++; + span294[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(334.33804f, 23.86952f, 271.9542f), 817) { DisableNavmesh = true }; - span102[3] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010069u, new Vector3(338.6129f, 24.12439f, 203.17383f), 817) + num2++; + span294[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010069u, new Vector3(338.6129f, 24.12439f, 203.17383f), 817) { AetherCurrentId = 2818288u }; - span102[4] = new QuestStep(EInteractionType.Interact, 2009886u, new Vector3(288.19702f, -0.10687256f, 221.66772f), 817) + num2++; + span294[num2] = new QuestStep(EInteractionType.Interact, 2009886u, new Vector3(288.19702f, -0.10687256f, 221.66772f), 817) { DisableNavmesh = true, Mount = true }; obj210.Steps = list294; reference224 = obj210; - ref QuestSequence reference225 = ref span101[3]; + num++; + ref QuestSequence reference225 = ref span291[num]; QuestSequence obj211 = new QuestSequence { Sequence = byte.MaxValue @@ -225721,9 +273043,11 @@ public static class AssemblyQuestLoader num2 = 2; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span103 = CollectionsMarshal.AsSpan(list295); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(434.4612f, 4.434532f, -7.1864815f), 817); - span103[1] = new QuestStep(EInteractionType.CompleteQuest, 1029228u, new Vector3(454.88672f, 18.97871f, -57.14508f), 817); + Span span295 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span295[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(434.4612f, 4.434532f, -7.1864815f), 817); + index2++; + span295[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029228u, new Vector3(454.88672f, 18.97871f, -57.14508f), 817); obj211.Steps = list295; reference225 = obj211; questRoot34.QuestSequence = list291; @@ -225733,27 +273057,33 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = "liza"; + Span span296 = CollectionsMarshal.AsSpan(list296); + index = 0; + span296[index] = "liza"; questRoot35.Author = list296; - num = 4; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - Span span104 = CollectionsMarshal.AsSpan(list297); - ref QuestSequence reference226 = ref span104[0]; + index = 4; + List list297 = new List(index); + CollectionsMarshal.SetCount(list297, index); + Span span297 = CollectionsMarshal.AsSpan(list297); + num = 0; + ref QuestSequence reference226 = ref span297[num]; QuestSequence obj212 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030374u, new Vector3(452.93335f, 18.97871f, -56.961975f), 817) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + Span span298 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span298[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030374u, new Vector3(452.93335f, 18.97871f, -56.961975f), 817) { StopDistance = 5f }; obj212.Steps = list298; reference226 = obj212; - ref QuestSequence reference227 = ref span104[1]; + num++; + ref QuestSequence reference227 = ref span297[num]; QuestSequence obj213 = new QuestSequence { Sequence = 1 @@ -225761,81 +273091,114 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817); + Span span299 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span299[index2] = new QuestStep(EInteractionType.Interact, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817); obj213.Steps = list299; reference227 = obj213; - ref QuestSequence reference228 = ref span104[2]; + num++; + ref QuestSequence reference228 = ref span297[num]; QuestSequence obj214 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - Span span105 = CollectionsMarshal.AsSpan(list300); - ref QuestStep reference229 = ref span105[0]; + index2 = 5; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + Span span300 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + ref QuestStep reference229 = ref span300[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1027711u, new Vector3(429.86182f, 34.051743f, -114.85474f), 817); num3 = 6; List list301 = new List(num3); CollectionsMarshal.SetCount(list301, num3); - Span span106 = CollectionsMarshal.AsSpan(list301); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span301 = CollectionsMarshal.AsSpan(list301); + index3 = 0; + span301[index3] = null; + index3++; + span301[index3] = null; + index3++; + span301[index3] = null; + index3++; + span301[index3] = null; + index3++; + span301[index3] = null; + index3++; + span301[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list301; reference229 = questStep15; - ref QuestStep reference230 = ref span105[1]; + num2++; + ref QuestStep reference230 = ref span300[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1027717u, new Vector3(334.18774f, 7.960762f, -141.46643f), 817); - num3 = 6; - List list302 = new List(num3); - CollectionsMarshal.SetCount(list302, num3); - Span span107 = CollectionsMarshal.AsSpan(list302); - span107[0] = null; - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list302 = new List(index3); + CollectionsMarshal.SetCount(list302, index3); + Span span302 = CollectionsMarshal.AsSpan(list302); + num3 = 0; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list302; reference230 = questStep16; - span105[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 817) + num2++; + span300[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 817) { Aetheryte = EAetheryteLocation.RaktikaFanow }; - ref QuestStep reference231 = ref span105[3]; + num2++; + ref QuestStep reference231 = ref span300[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1027719u, new Vector3(303.5172f, 34.242825f, -146.65448f), 817); num3 = 6; List list303 = new List(num3); CollectionsMarshal.SetCount(list303, num3); - Span span108 = CollectionsMarshal.AsSpan(list303); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span303 = CollectionsMarshal.AsSpan(list303); + index3 = 0; + span303[index3] = null; + index3++; + span303[index3] = null; + index3++; + span303[index3] = null; + index3++; + span303[index3] = null; + index3++; + span303[index3] = null; + index3++; + span303[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list303; reference231 = questStep17; - ref QuestStep reference232 = ref span105[4]; + num2++; + ref QuestStep reference232 = ref span300[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1027712u, new Vector3(454.1847f, 6.955061f, -193.07245f), 817); - num3 = 6; - List list304 = new List(num3); - CollectionsMarshal.SetCount(list304, num3); - Span span109 = CollectionsMarshal.AsSpan(list304); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list304 = new List(index3); + CollectionsMarshal.SetCount(list304, index3); + Span span304 = CollectionsMarshal.AsSpan(list304); + num3 = 0; + span304[num3] = null; + num3++; + span304[num3] = null; + num3++; + span304[num3] = null; + num3++; + span304[num3] = null; + num3++; + span304[num3] = null; + num3++; + span304[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list304; reference232 = questStep18; obj214.Steps = list300; reference228 = obj214; - ref QuestSequence reference233 = ref span104[3]; + num++; + ref QuestSequence reference233 = ref span297[num]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue @@ -225843,7 +273206,9 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817); + Span span305 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span305[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817); obj215.Steps = list305; reference233 = obj215; questRoot35.QuestSequence = list297; @@ -225853,24 +273218,30 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - CollectionsMarshal.AsSpan(list306)[0] = "liza"; + Span span306 = CollectionsMarshal.AsSpan(list306); + index = 0; + span306[index] = "liza"; questRoot36.Author = list306; - num = 7; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - Span span110 = CollectionsMarshal.AsSpan(list307); - ref QuestSequence reference234 = ref span110[0]; + index = 7; + List list307 = new List(index); + CollectionsMarshal.SetCount(list307, index); + Span span307 = CollectionsMarshal.AsSpan(list307); + num = 0; + ref QuestSequence reference234 = ref span307[num]; QuestSequence obj216 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817); + index2 = 1; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + Span span308 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span308[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817); obj216.Steps = list308; reference234 = obj216; - ref QuestSequence reference235 = ref span110[1]; + num++; + ref QuestSequence reference235 = ref span307[num]; QuestSequence obj217 = new QuestSequence { Sequence = 1 @@ -225878,28 +273249,34 @@ public static class AssemblyQuestLoader num2 = 2; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span111 = CollectionsMarshal.AsSpan(list309); - span111[0] = new QuestStep(EInteractionType.AcceptQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817) + Span span309 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span309[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817) { PickUpQuestId = new QuestId(3467) }; - span111[1] = new QuestStep(EInteractionType.Interact, 1029238u, new Vector3(206.56128f, -6.300962f, -352.4682f), 817); + index2++; + span309[index2] = new QuestStep(EInteractionType.Interact, 1029238u, new Vector3(206.56128f, -6.300962f, -352.4682f), 817); obj217.Steps = list309; reference235 = obj217; - ref QuestSequence reference236 = ref span110[2]; + num++; + ref QuestSequence reference236 = ref span307[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - Span span112 = CollectionsMarshal.AsSpan(list310); - span112[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(188.16484f, -19.576328f, -435.14563f), 817); - span112[1] = new QuestStep(EInteractionType.Interact, 1030944u, new Vector3(169.604f, -19.98162f, -455.5276f), 817); + index2 = 2; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + Span span310 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + span310[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(188.16484f, -19.576328f, -435.14563f), 817); + num2++; + span310[num2] = new QuestStep(EInteractionType.Interact, 1030944u, new Vector3(169.604f, -19.98162f, -455.5276f), 817); obj218.Steps = list310; reference236 = obj218; - ref QuestSequence reference237 = ref span110[3]; + num++; + ref QuestSequence reference237 = ref span307[num]; QuestSequence obj219 = new QuestSequence { Sequence = 3 @@ -225907,8 +273284,9 @@ public static class AssemblyQuestLoader num2 = 9; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - Span span113 = CollectionsMarshal.AsSpan(list311); - ref QuestStep reference238 = ref span113[0]; + Span span311 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + ref QuestStep reference238 = ref span311[index2]; QuestStep obj220 = new QuestStep(EInteractionType.Jump, null, new Vector3(194.89655f, -18.734356f, -426.63055f), 817) { StopDistance = 0.25f, @@ -225926,35 +273304,49 @@ public static class AssemblyQuestLoader num3 = 6; List list312 = new List(num3); CollectionsMarshal.SetCount(list312, num3); - Span span114 = CollectionsMarshal.AsSpan(list312); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span312 = CollectionsMarshal.AsSpan(list312); + index3 = 0; + span312[index3] = null; + index3++; + span312[index3] = null; + index3++; + span312[index3] = null; + index3++; + span312[index3] = null; + index3++; + span312[index3] = null; + index3++; + span312[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions12.CompletionQuestVariablesFlags = list312; skipConditions12.StepIf = skipStepConditions12; obj220.SkipConditions = skipConditions12; reference238 = obj220; - ref QuestStep reference239 = ref span113[1]; + index2++; + ref QuestStep reference239 = ref span311[index2]; QuestStep obj221 = new QuestStep(EInteractionType.UseItem, 2009890u, new Vector3(218.46338f, 10.574402f, -425.25372f), 817) { ItemId = 2002552u }; - num3 = 6; - List list313 = new List(num3); - CollectionsMarshal.SetCount(list313, num3); - Span span115 = CollectionsMarshal.AsSpan(list313); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list313 = new List(index3); + CollectionsMarshal.SetCount(list313, index3); + Span span313 = CollectionsMarshal.AsSpan(list313); + num3 = 0; + span313[num3] = null; + num3++; + span313[num3] = null; + num3++; + span313[num3] = null; + num3++; + span313[num3] = null; + num3++; + span313[num3] = null; + num3++; + span313[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj221.CompletionQuestVariablesFlags = list313; reference239 = obj221; - ref QuestStep reference240 = ref span113[2]; + index2++; + ref QuestStep reference240 = ref span311[index2]; QuestStep obj222 = new QuestStep(EInteractionType.Jump, null, new Vector3(149.22699f, -19.278904f, -427.7278f), 817) { StopDistance = 0.25f, @@ -225973,35 +273365,49 @@ public static class AssemblyQuestLoader num3 = 6; List list314 = new List(num3); CollectionsMarshal.SetCount(list314, num3); - Span span116 = CollectionsMarshal.AsSpan(list314); - span116[0] = null; - span116[1] = null; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span314 = CollectionsMarshal.AsSpan(list314); + index3 = 0; + span314[index3] = null; + index3++; + span314[index3] = null; + index3++; + span314[index3] = null; + index3++; + span314[index3] = null; + index3++; + span314[index3] = null; + index3++; + span314[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions13.CompletionQuestVariablesFlags = list314; skipConditions13.StepIf = skipStepConditions13; obj222.SkipConditions = skipConditions13; reference240 = obj222; - ref QuestStep reference241 = ref span113[3]; + index2++; + ref QuestStep reference241 = ref span311[index2]; QuestStep obj223 = new QuestStep(EInteractionType.UseItem, 2009887u, new Vector3(124.37622f, 10.879639f, -429.43463f), 817) { ItemId = 2002552u }; - num3 = 6; - List list315 = new List(num3); - CollectionsMarshal.SetCount(list315, num3); - Span span117 = CollectionsMarshal.AsSpan(list315); - span117[0] = null; - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list315 = new List(index3); + CollectionsMarshal.SetCount(list315, index3); + Span span315 = CollectionsMarshal.AsSpan(list315); + num3 = 0; + span315[num3] = null; + num3++; + span315[num3] = null; + num3++; + span315[num3] = null; + num3++; + span315[num3] = null; + num3++; + span315[num3] = null; + num3++; + span315[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj223.CompletionQuestVariablesFlags = list315; reference241 = obj223; - ref QuestStep reference242 = ref span113[4]; + index2++; + ref QuestStep reference242 = ref span311[index2]; QuestStep obj224 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(154.42946f, -19.372574f, -430.77545f), 817) { DisableNavmesh = true, @@ -226012,18 +273418,25 @@ public static class AssemblyQuestLoader num3 = 6; List list316 = new List(num3); CollectionsMarshal.SetCount(list316, num3); - Span span118 = CollectionsMarshal.AsSpan(list316); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span316 = CollectionsMarshal.AsSpan(list316); + index3 = 0; + span316[index3] = null; + index3++; + span316[index3] = null; + index3++; + span316[index3] = null; + index3++; + span316[index3] = null; + index3++; + span316[index3] = null; + index3++; + span316[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions14.CompletionQuestVariablesFlags = list316; skipConditions14.StepIf = skipStepConditions14; obj224.SkipConditions = skipConditions14; reference242 = obj224; - ref QuestStep reference243 = ref span113[5]; + index2++; + ref QuestStep reference243 = ref span311[index2]; QuestStep obj225 = new QuestStep(EInteractionType.Jump, null, new Vector3(145.00993f, -20f, -509.06528f), 817) { StopDistance = 0.25f, @@ -226038,21 +273451,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions15 = new SkipConditions(); SkipStepConditions skipStepConditions15 = new SkipStepConditions(); - num3 = 6; - List list317 = new List(num3); - CollectionsMarshal.SetCount(list317, num3); - Span span119 = CollectionsMarshal.AsSpan(list317); - span119[0] = null; - span119[1] = null; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list317 = new List(index3); + CollectionsMarshal.SetCount(list317, index3); + Span span317 = CollectionsMarshal.AsSpan(list317); + num3 = 0; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions15.CompletionQuestVariablesFlags = list317; skipConditions15.StepIf = skipStepConditions15; obj225.SkipConditions = skipConditions15; reference243 = obj225; - ref QuestStep reference244 = ref span113[6]; + index2++; + ref QuestStep reference244 = ref span311[index2]; QuestStep obj226 = new QuestStep(EInteractionType.UseItem, 2009888u, new Vector3(119.920654f, 10.696533f, -510.52112f), 817) { ItemId = 2002552u @@ -226060,16 +273480,23 @@ public static class AssemblyQuestLoader num3 = 6; List list318 = new List(num3); CollectionsMarshal.SetCount(list318, num3); - Span span120 = CollectionsMarshal.AsSpan(list318); - span120[0] = null; - span120[1] = null; - span120[2] = null; - span120[3] = null; - span120[4] = null; - span120[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span318 = CollectionsMarshal.AsSpan(list318); + index3 = 0; + span318[index3] = null; + index3++; + span318[index3] = null; + index3++; + span318[index3] = null; + index3++; + span318[index3] = null; + index3++; + span318[index3] = null; + index3++; + span318[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj226.CompletionQuestVariablesFlags = list318; reference244 = obj226; - ref QuestStep reference245 = ref span113[7]; + index2++; + ref QuestStep reference245 = ref span311[index2]; QuestStep obj227 = new QuestStep(EInteractionType.Jump, null, new Vector3(195.20181f, -19.677738f, -516.0344f), 817) { StopDistance = 0.25f, @@ -226085,21 +273512,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions16 = new SkipConditions(); SkipStepConditions skipStepConditions16 = new SkipStepConditions(); - num3 = 6; - List list319 = new List(num3); - CollectionsMarshal.SetCount(list319, num3); - Span span121 = CollectionsMarshal.AsSpan(list319); - span121[0] = null; - span121[1] = null; - span121[2] = null; - span121[3] = null; - span121[4] = null; - span121[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list319 = new List(index3); + CollectionsMarshal.SetCount(list319, index3); + Span span319 = CollectionsMarshal.AsSpan(list319); + num3 = 0; + span319[num3] = null; + num3++; + span319[num3] = null; + num3++; + span319[num3] = null; + num3++; + span319[num3] = null; + num3++; + span319[num3] = null; + num3++; + span319[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions16.CompletionQuestVariablesFlags = list319; skipConditions16.StepIf = skipStepConditions16; obj227.SkipConditions = skipConditions16; reference245 = obj227; - ref QuestStep reference246 = ref span113[8]; + index2++; + ref QuestStep reference246 = ref span311[index2]; QuestStep obj228 = new QuestStep(EInteractionType.UseItem, 2009889u, new Vector3(218.92114f, 8.957031f, -514.45795f), 817) { ItemId = 2002552u @@ -226107,35 +273541,45 @@ public static class AssemblyQuestLoader num3 = 6; List list320 = new List(num3); CollectionsMarshal.SetCount(list320, num3); - Span span122 = CollectionsMarshal.AsSpan(list320); - span122[0] = null; - span122[1] = null; - span122[2] = null; - span122[3] = null; - span122[4] = null; - span122[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span320 = CollectionsMarshal.AsSpan(list320); + index3 = 0; + span320[index3] = null; + index3++; + span320[index3] = null; + index3++; + span320[index3] = null; + index3++; + span320[index3] = null; + index3++; + span320[index3] = null; + index3++; + span320[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj228.CompletionQuestVariablesFlags = list320; reference246 = obj228; obj219.Steps = list311; reference237 = obj219; - ref QuestSequence reference247 = ref span110[4]; + num++; + ref QuestSequence reference247 = ref span307[num]; QuestSequence obj229 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - Span span123 = CollectionsMarshal.AsSpan(list321); - span123[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(192.24295f, -19.743376f, -515.7917f), 817) + index2 = 2; + List list321 = new List(index2); + CollectionsMarshal.SetCount(list321, index2); + Span span321 = CollectionsMarshal.AsSpan(list321); + num2 = 0; + span321[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(192.24295f, -19.743376f, -515.7917f), 817) { DisableNavmesh = true, Mount = true }; - span123[1] = new QuestStep(EInteractionType.Interact, 1029241u, new Vector3(177.203f, -19.544508f, -533.53174f), 817); + num2++; + span321[num2] = new QuestStep(EInteractionType.Interact, 1029241u, new Vector3(177.203f, -19.544508f, -533.53174f), 817); obj229.Steps = list321; reference247 = obj229; - ref QuestSequence reference248 = ref span110[5]; + num++; + ref QuestSequence reference248 = ref span307[num]; QuestSequence obj230 = new QuestSequence { Sequence = 5 @@ -226143,21 +273587,25 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - ref QuestStep reference249 = ref CollectionsMarshal.AsSpan(list322)[0]; + Span span322 = CollectionsMarshal.AsSpan(list322); + index2 = 0; + ref QuestStep reference249 = ref span322[index2]; QuestStep obj231 = new QuestStep(EInteractionType.Interact, 1030946u, new Vector3(175.37183f, -19.521969f, -536.0647f), 817) { StopDistance = 7f }; - num3 = 2; - List list323 = new List(num3); - CollectionsMarshal.SetCount(list323, num3); - Span span124 = CollectionsMarshal.AsSpan(list323); - span124[0] = new DialogueChoice + index3 = 2; + List list323 = new List(index3); + CollectionsMarshal.SetCount(list323, index3); + Span span323 = CollectionsMarshal.AsSpan(list323); + num3 = 0; + span323[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMC114_03335_Q1_000_000") }; - span124[1] = new DialogueChoice + num3++; + span323[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMC114_03335_Q2_000_000"), @@ -226167,15 +273615,18 @@ public static class AssemblyQuestLoader reference249 = obj231; obj230.Steps = list322; reference248 = obj230; - ref QuestSequence reference250 = ref span110[6]; + num++; + ref QuestSequence reference250 = ref span307[num]; QuestSequence obj232 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029240u, new Vector3(173.2356f, -19.585392f, -536.82764f), 817); + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + Span span324 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span324[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029240u, new Vector3(173.2356f, -19.585392f, -536.82764f), 817); obj232.Steps = list324; reference250 = obj232; questRoot36.QuestSequence = list307; @@ -226185,13 +273636,16 @@ public static class AssemblyQuestLoader num = 1; List list325 = new List(num); CollectionsMarshal.SetCount(list325, num); - CollectionsMarshal.AsSpan(list325)[0] = "liza"; + Span span325 = CollectionsMarshal.AsSpan(list325); + index = 0; + span325[index] = "liza"; questRoot37.Author = list325; - num = 5; - List list326 = new List(num); - CollectionsMarshal.SetCount(list326, num); - Span span125 = CollectionsMarshal.AsSpan(list326); - ref QuestSequence reference251 = ref span125[0]; + index = 5; + List list326 = new List(index); + CollectionsMarshal.SetCount(list326, index); + Span span326 = CollectionsMarshal.AsSpan(list326); + num = 0; + ref QuestSequence reference251 = ref span326[num]; QuestSequence obj233 = new QuestSequence { Sequence = 0 @@ -226199,24 +273653,31 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029240u, new Vector3(173.2356f, -19.585392f, -536.82764f), 817); + Span span327 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span327[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029240u, new Vector3(173.2356f, -19.585392f, -536.82764f), 817); obj233.Steps = list327; reference251 = obj233; - ref QuestSequence reference252 = ref span125[1]; + num++; + ref QuestSequence reference252 = ref span326[num]; QuestSequence obj234 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - Span span126 = CollectionsMarshal.AsSpan(list328); - span126[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(104.577484f, -18.78201f, -710.81934f), 817); - span126[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.32005f, -11.506357f, -869.2572f), 817); - span126[2] = new QuestStep(EInteractionType.Interact, 1029242u, new Vector3(122.697754f, -8.781986f, -891.4168f), 817); + index2 = 3; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + Span span328 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span328[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(104.577484f, -18.78201f, -710.81934f), 817); + num2++; + span328[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.32005f, -11.506357f, -869.2572f), 817); + num2++; + span328[num2] = new QuestStep(EInteractionType.Interact, 1029242u, new Vector3(122.697754f, -8.781986f, -891.4168f), 817); obj234.Steps = list328; reference252 = obj234; - ref QuestSequence reference253 = ref span125[2]; + num++; + ref QuestSequence reference253 = ref span326[num]; QuestSequence obj235 = new QuestSequence { Sequence = 2 @@ -226224,28 +273685,33 @@ public static class AssemblyQuestLoader num2 = 3; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - Span span127 = CollectionsMarshal.AsSpan(list329); - span127[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.20982f, -4.4171376f, -842.7409f), 817); - span127[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.5321f, 11.218012f, -713.26447f), 817) + Span span329 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + span329[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.20982f, -4.4171376f, -842.7409f), 817); + index2++; + span329[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.5321f, 11.218012f, -713.26447f), 817) { DisableNavmesh = true }; - span127[2] = new QuestStep(EInteractionType.Interact, 2010218u, new Vector3(220.17236f, 12.436096f, -711.9707f), 817) + index2++; + span329[index2] = new QuestStep(EInteractionType.Interact, 2010218u, new Vector3(220.17236f, 12.436096f, -711.9707f), 817) { DisableNavmesh = true }; obj235.Steps = list329; reference253 = obj235; - ref QuestSequence reference254 = ref span125[3]; + num++; + ref QuestSequence reference254 = ref span326[num]; QuestSequence obj236 = new QuestSequence { Sequence = 3 }; - num2 = 11; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - Span span128 = CollectionsMarshal.AsSpan(list330); - span128[0] = new QuestStep(EInteractionType.Interact, 2010218u, new Vector3(220.17236f, 12.436096f, -711.9707f), 817) + index2 = 11; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + Span span330 = CollectionsMarshal.AsSpan(list330); + num2 = 0; + span330[num2] = new QuestStep(EInteractionType.Interact, 2010218u, new Vector3(220.17236f, 12.436096f, -711.9707f), 817) { Comment = "Retry point", SkipConditions = new SkipConditions @@ -226256,34 +273722,45 @@ public static class AssemblyQuestLoader } } }; - span128[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(179.29196f, 11.218012f, -716.2551f), 817); - span128[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.56311f, 1.2180231f, -760.07153f), 817) + num2++; + span330[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(179.29196f, 11.218012f, -716.2551f), 817); + num2++; + span330[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.56311f, 1.2180231f, -760.07153f), 817) { DisableNavmesh = true }; - span128[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(190.72441f, 1.2180231f, -774.9509f), 817); - span128[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(182.27933f, 1.2180231f, -794.6802f), 817); - span128[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.54279f, 0.4118718f, -831.1932f), 817) + num2++; + span330[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(190.72441f, 1.2180231f, -774.9509f), 817); + num2++; + span330[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(182.27933f, 1.2180231f, -794.6802f), 817); + num2++; + span330[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.54279f, 0.4118718f, -831.1932f), 817) { DisableNavmesh = true }; - span128[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(170.7773f, -8.781983f, -864.8363f), 817) + num2++; + span330[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(170.7773f, -8.781983f, -864.8363f), 817) { DisableNavmesh = true }; - span128[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(128.05794f, -8.781985f, -861.96173f), 817); - span128[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(104.804436f, -8.781986f, -852.4725f), 817); - span128[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(104.83191f, -8.781986f, -882.98535f), 817) + num2++; + span330[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(128.05794f, -8.781985f, -861.96173f), 817); + num2++; + span330[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(104.804436f, -8.781986f, -852.4725f), 817); + num2++; + span330[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(104.83191f, -8.781986f, -882.98535f), 817) { DisableNavmesh = true }; - span128[10] = new QuestStep(EInteractionType.Interact, 2010217u, new Vector3(115.43445f, -7.400635f, -895.4757f), 817) + num2++; + span330[num2] = new QuestStep(EInteractionType.Interact, 2010217u, new Vector3(115.43445f, -7.400635f, -895.4757f), 817) { DisableNavmesh = true }; obj236.Steps = list330; reference254 = obj236; - ref QuestSequence reference255 = ref span125[4]; + num++; + ref QuestSequence reference255 = ref span326[num]; QuestSequence obj237 = new QuestSequence { Sequence = byte.MaxValue @@ -226291,7 +273768,9 @@ public static class AssemblyQuestLoader num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029242u, new Vector3(122.697754f, -8.781986f, -891.4168f), 817); + Span span331 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span331[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029242u, new Vector3(122.697754f, -8.781986f, -891.4168f), 817); obj237.Steps = list331; reference255 = obj237; questRoot37.QuestSequence = list326; @@ -226301,24 +273780,30 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - CollectionsMarshal.AsSpan(list332)[0] = "liza"; + Span span332 = CollectionsMarshal.AsSpan(list332); + index = 0; + span332[index] = "liza"; questRoot38.Author = list332; - num = 3; - List list333 = new List(num); - CollectionsMarshal.SetCount(list333, num); - Span span129 = CollectionsMarshal.AsSpan(list333); - ref QuestSequence reference256 = ref span129[0]; + index = 3; + List list333 = new List(index); + CollectionsMarshal.SetCount(list333, index); + Span span333 = CollectionsMarshal.AsSpan(list333); + num = 0; + ref QuestSequence reference256 = ref span333[num]; QuestSequence obj238 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029242u, new Vector3(122.697754f, -8.781986f, -891.4168f), 817); + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + Span span334 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span334[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029242u, new Vector3(122.697754f, -8.781986f, -891.4168f), 817); obj238.Steps = list334; reference256 = obj238; - ref QuestSequence reference257 = ref span129[1]; + num++; + ref QuestSequence reference257 = ref span333[num]; QuestSequence obj239 = new QuestSequence { Sequence = 1 @@ -226326,27 +273811,34 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - ref QuestStep reference258 = ref CollectionsMarshal.AsSpan(list335)[0]; + Span span335 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + ref QuestStep reference258 = ref span335[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.SinglePlayerDuty, 1029243u, new Vector3(121.3855f, -8.781985f, -890.62335f), 817); SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); num3 = 1; List list336 = new List(num3); CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = "(room 2) AI tries to walk straight to the next door, ignoring all walls"; + Span span336 = CollectionsMarshal.AsSpan(list336); + index3 = 0; + span336[index3] = "(room 2) AI tries to walk straight to the next door, ignoring all walls"; singlePlayerDutyOptions.Notes = list336; questStep19.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference258 = questStep19; obj239.Steps = list335; reference257 = obj239; - ref QuestSequence reference259 = ref span129[2]; + num++; + ref QuestSequence reference259 = ref span333[num]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029244u, new Vector3(171.19092f, -19.76173f, -534.05054f), 817); + index2 = 1; + List list337 = new List(index2); + CollectionsMarshal.SetCount(list337, index2); + Span span337 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + span337[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029244u, new Vector3(171.19092f, -19.76173f, -534.05054f), 817); obj240.Steps = list337; reference259 = obj240; questRoot38.QuestSequence = list333; @@ -226356,13 +273848,16 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - CollectionsMarshal.AsSpan(list338)[0] = "liza"; + Span span338 = CollectionsMarshal.AsSpan(list338); + index = 0; + span338[index] = "liza"; questRoot39.Author = list338; - num = 6; - List list339 = new List(num); - CollectionsMarshal.SetCount(list339, num); - Span span130 = CollectionsMarshal.AsSpan(list339); - ref QuestSequence reference260 = ref span130[0]; + index = 6; + List list339 = new List(index); + CollectionsMarshal.SetCount(list339, index); + Span span339 = CollectionsMarshal.AsSpan(list339); + num = 0; + ref QuestSequence reference260 = ref span339[num]; QuestSequence obj241 = new QuestSequence { Sequence = 0 @@ -226370,27 +273865,33 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029247u, new Vector3(166.91846f, -19.856256f, -535.1797f), 817) + Span span340 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + span340[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029247u, new Vector3(166.91846f, -19.856256f, -535.1797f), 817) { StopDistance = 5f }; obj241.Steps = list340; reference260 = obj241; - ref QuestSequence reference261 = ref span130[1]; + num++; + ref QuestSequence reference261 = ref span339[num]; QuestSequence obj242 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1029249u, new Vector3(449.8817f, 6.955061f, -208.75867f), 817) + index2 = 1; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + Span span341 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span341[num2] = new QuestStep(EInteractionType.Interact, 1029249u, new Vector3(449.8817f, 6.955061f, -208.75867f), 817) { StopDistance = 2f }; obj242.Steps = list341; reference261 = obj242; - ref QuestSequence reference262 = ref span130[2]; + num++; + ref QuestSequence reference262 = ref span339[num]; QuestSequence obj243 = new QuestSequence { Sequence = 2 @@ -226398,24 +273899,30 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.UseItem, 1029250u, new Vector3(448.2948f, 7.479239f, -208.14838f), 817) + Span span342 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span342[index2] = new QuestStep(EInteractionType.UseItem, 1029250u, new Vector3(448.2948f, 7.479239f, -208.14838f), 817) { ItemId = 2002553u }; obj243.Steps = list342; reference262 = obj243; - ref QuestSequence reference263 = ref span130[3]; + num++; + ref QuestSequence reference263 = ref span339[num]; QuestSequence obj244 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.Interact, 1029250u, new Vector3(448.2948f, 7.479239f, -208.14838f), 817); + index2 = 1; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + Span span343 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span343[num2] = new QuestStep(EInteractionType.Interact, 1029250u, new Vector3(448.2948f, 7.479239f, -208.14838f), 817); obj244.Steps = list343; reference263 = obj244; - ref QuestSequence reference264 = ref span130[4]; + num++; + ref QuestSequence reference264 = ref span339[num]; QuestSequence obj245 = new QuestSequence { Sequence = 4 @@ -226423,18 +273930,23 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1029250u, new Vector3(448.2948f, 7.479239f, -208.14838f), 817); + Span span344 = CollectionsMarshal.AsSpan(list344); + index2 = 0; + span344[index2] = new QuestStep(EInteractionType.Interact, 1029250u, new Vector3(448.2948f, 7.479239f, -208.14838f), 817); obj245.Steps = list344; reference264 = obj245; - ref QuestSequence reference265 = ref span130[5]; + num++; + ref QuestSequence reference265 = ref span339[num]; QuestSequence obj246 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029249u, new Vector3(449.8817f, 6.955061f, -208.75867f), 817); + index2 = 1; + List list345 = new List(index2); + CollectionsMarshal.SetCount(list345, index2); + Span span345 = CollectionsMarshal.AsSpan(list345); + num2 = 0; + span345[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029249u, new Vector3(449.8817f, 6.955061f, -208.75867f), 817); obj246.Steps = list345; reference265 = obj246; questRoot39.QuestSequence = list339; @@ -226444,13 +273956,16 @@ public static class AssemblyQuestLoader num = 1; List list346 = new List(num); CollectionsMarshal.SetCount(list346, num); - CollectionsMarshal.AsSpan(list346)[0] = "liza"; + Span span346 = CollectionsMarshal.AsSpan(list346); + index = 0; + span346[index] = "liza"; questRoot40.Author = list346; - num = 6; - List list347 = new List(num); - CollectionsMarshal.SetCount(list347, num); - Span span131 = CollectionsMarshal.AsSpan(list347); - ref QuestSequence reference266 = ref span131[0]; + index = 6; + List list347 = new List(index); + CollectionsMarshal.SetCount(list347, index); + Span span347 = CollectionsMarshal.AsSpan(list347); + num = 0; + ref QuestSequence reference266 = ref span347[num]; QuestSequence obj247 = new QuestSequence { Sequence = 0 @@ -226458,24 +273973,30 @@ public static class AssemblyQuestLoader num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029249u, new Vector3(449.8817f, 6.955061f, -208.75867f), 817); + Span span348 = CollectionsMarshal.AsSpan(list348); + index2 = 0; + span348[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029249u, new Vector3(449.8817f, 6.955061f, -208.75867f), 817); obj247.Steps = list348; reference266 = obj247; - ref QuestSequence reference267 = ref span131[1]; + num++; + ref QuestSequence reference267 = ref span347[num]; QuestSequence obj248 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list349 = new List(num2); - CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.Interact, 1029251u, new Vector3(450.00366f, 6.955061f, -202.38043f), 817) + index2 = 1; + List list349 = new List(index2); + CollectionsMarshal.SetCount(list349, index2); + Span span349 = CollectionsMarshal.AsSpan(list349); + num2 = 0; + span349[num2] = new QuestStep(EInteractionType.Interact, 1029251u, new Vector3(450.00366f, 6.955061f, -202.38043f), 817) { StopDistance = 7f }; obj248.Steps = list349; reference267 = obj248; - ref QuestSequence reference268 = ref span131[2]; + num++; + ref QuestSequence reference268 = ref span347[num]; QuestSequence obj249 = new QuestSequence { Sequence = 2 @@ -226483,25 +274004,31 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(580.9263f, 18.753235f, -43.01526f), 817) + Span span350 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + span350[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(580.9263f, 18.753235f, -43.01526f), 817) { StopDistance = 1f, ItemId = 2002554u }; obj249.Steps = list350; reference268 = obj249; - ref QuestSequence reference269 = ref span131[3]; + num++; + ref QuestSequence reference269 = ref span347[num]; QuestSequence obj250 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 2009892u, new Vector3(580.9263f, 18.753235f, -43.01526f), 817); + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + Span span351 = CollectionsMarshal.AsSpan(list351); + num2 = 0; + span351[num2] = new QuestStep(EInteractionType.Interact, 2009892u, new Vector3(580.9263f, 18.753235f, -43.01526f), 817); obj250.Steps = list351; reference269 = obj250; - ref QuestSequence reference270 = ref span131[4]; + num++; + ref QuestSequence reference270 = ref span347[num]; QuestSequence obj251 = new QuestSequence { Sequence = 4 @@ -226509,12 +274036,16 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - ref QuestStep reference271 = ref CollectionsMarshal.AsSpan(list352)[0]; + Span span352 = CollectionsMarshal.AsSpan(list352); + index2 = 0; + ref QuestStep reference271 = ref span352[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1029554u, new Vector3(585.7174f, 18.386158f, -59.18976f), 817); - num3 = 1; - List list353 = new List(num3); - CollectionsMarshal.SetCount(list353, num3); - CollectionsMarshal.AsSpan(list353)[0] = new DialogueChoice + index3 = 1; + List list353 = new List(index3); + CollectionsMarshal.SetCount(list353, index3); + Span span353 = CollectionsMarshal.AsSpan(list353); + num3 = 0; + span353[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMC118_03339_Q1_000_000"), @@ -226524,15 +274055,18 @@ public static class AssemblyQuestLoader reference271 = questStep20; obj251.Steps = list352; reference270 = obj251; - ref QuestSequence reference272 = ref span131[5]; + num++; + ref QuestSequence reference272 = ref span347[num]; QuestSequence obj252 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029555u, new Vector3(453.26917f, 6.955061f, -204.39465f), 817) + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + Span span354 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span354[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029555u, new Vector3(453.26917f, 6.955061f, -204.39465f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; @@ -226545,13 +274079,16 @@ public static class AssemblyQuestLoader num = 1; List list355 = new List(num); CollectionsMarshal.SetCount(list355, num); - CollectionsMarshal.AsSpan(list355)[0] = "liza"; + Span span355 = CollectionsMarshal.AsSpan(list355); + index = 0; + span355[index] = "liza"; questRoot41.Author = list355; - num = 5; - List list356 = new List(num); - CollectionsMarshal.SetCount(list356, num); - Span span132 = CollectionsMarshal.AsSpan(list356); - ref QuestSequence reference273 = ref span132[0]; + index = 5; + List list356 = new List(index); + CollectionsMarshal.SetCount(list356, index); + Span span356 = CollectionsMarshal.AsSpan(list356); + num = 0; + ref QuestSequence reference273 = ref span356[num]; QuestSequence obj253 = new QuestSequence { Sequence = 0 @@ -226559,33 +274096,40 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029255u, new Vector3(453.6964f, 6.955061f, -201.15973f), 817) + Span span357 = CollectionsMarshal.AsSpan(list357); + index2 = 0; + span357[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029255u, new Vector3(453.6964f, 6.955061f, -201.15973f), 817) { StopDistance = 7f }; obj253.Steps = list357; reference273 = obj253; - ref QuestSequence reference274 = ref span132[1]; + num++; + ref QuestSequence reference274 = ref span356[num]; QuestSequence obj254 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - Span span133 = CollectionsMarshal.AsSpan(list358); - span133[0] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + index2 = 3; + List list358 = new List(index2); + CollectionsMarshal.SetCount(list358, index2); + Span span358 = CollectionsMarshal.AsSpan(list358); + num2 = 0; + span358[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { PickUpQuestId = new QuestId(3478) }; - span133[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010073u, new Vector3(681.1168f, -39.2005f, -262.77563f), 817) + num2++; + span358[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010073u, new Vector3(681.1168f, -39.2005f, -262.77563f), 817) { AetherCurrentId = 2818292u }; - span133[2] = new QuestStep(EInteractionType.Interact, 2009893u, new Vector3(854.39844f, -63.85907f, -394.43048f), 817); + num2++; + span358[num2] = new QuestStep(EInteractionType.Interact, 2009893u, new Vector3(854.39844f, -63.85907f, -394.43048f), 817); obj254.Steps = list358; reference274 = obj254; - ref QuestSequence reference275 = ref span132[2]; + num++; + ref QuestSequence reference275 = ref span356[num]; QuestSequence obj255 = new QuestSequence { Sequence = 2 @@ -226593,7 +274137,9 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.Duty, null, null, 817) + Span span359 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span359[index2] = new QuestStep(EInteractionType.Duty, null, null, 817) { DutyOptions = new DutyOptions { @@ -226603,19 +274149,23 @@ public static class AssemblyQuestLoader }; obj255.Steps = list359; reference275 = obj255; - span132[3] = new QuestSequence + num++; + span356[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference276 = ref span132[4]; + num++; + ref QuestSequence reference276 = ref span356[num]; QuestSequence obj256 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029557u, new Vector3(848.7831f, -65.42493f, -394.67462f), 817) + index2 = 1; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + Span span360 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + span360[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029557u, new Vector3(848.7831f, -65.42493f, -394.67462f), 817) { StopDistance = 5f }; @@ -226628,13 +274178,16 @@ public static class AssemblyQuestLoader num = 1; List list361 = new List(num); CollectionsMarshal.SetCount(list361, num); - CollectionsMarshal.AsSpan(list361)[0] = "liza"; + Span span361 = CollectionsMarshal.AsSpan(list361); + index = 0; + span361[index] = "liza"; questRoot42.Author = list361; - num = 3; - List list362 = new List(num); - CollectionsMarshal.SetCount(list362, num); - Span span134 = CollectionsMarshal.AsSpan(list362); - ref QuestSequence reference277 = ref span134[0]; + index = 3; + List list362 = new List(index); + CollectionsMarshal.SetCount(list362, index); + Span span362 = CollectionsMarshal.AsSpan(list362); + num = 0; + ref QuestSequence reference277 = ref span362[num]; QuestSequence obj257 = new QuestSequence { Sequence = 0 @@ -226642,28 +274195,34 @@ public static class AssemblyQuestLoader num2 = 1; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029557u, new Vector3(848.7831f, -65.42493f, -394.67462f), 817) + Span span363 = CollectionsMarshal.AsSpan(list363); + index2 = 0; + span363[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029557u, new Vector3(848.7831f, -65.42493f, -394.67462f), 817) { StopDistance = 5f }; obj257.Steps = list363; reference277 = obj257; - ref QuestSequence reference278 = ref span134[1]; + num++; + ref QuestSequence reference278 = ref span362[num]; QuestSequence obj258 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Interact, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817) + index2 = 1; + List list364 = new List(index2); + CollectionsMarshal.SetCount(list364, index2); + Span span364 = CollectionsMarshal.AsSpan(list364); + num2 = 0; + span364[num2] = new QuestStep(EInteractionType.Interact, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj258.Steps = list364; reference278 = obj258; - ref QuestSequence reference279 = ref span134[2]; + num++; + ref QuestSequence reference279 = ref span362[num]; QuestSequence obj259 = new QuestSequence { Sequence = byte.MaxValue @@ -226671,7 +274230,9 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) + Span span365 = CollectionsMarshal.AsSpan(list365); + index2 = 0; + span365[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; @@ -226684,27 +274245,33 @@ public static class AssemblyQuestLoader num = 1; List list366 = new List(num); CollectionsMarshal.SetCount(list366, num); - CollectionsMarshal.AsSpan(list366)[0] = "liza"; + Span span366 = CollectionsMarshal.AsSpan(list366); + index = 0; + span366[index] = "liza"; questRoot43.Author = list366; - num = 5; - List list367 = new List(num); - CollectionsMarshal.SetCount(list367, num); - Span span135 = CollectionsMarshal.AsSpan(list367); - ref QuestSequence reference280 = ref span135[0]; + index = 5; + List list367 = new List(index); + CollectionsMarshal.SetCount(list367, index); + Span span367 = CollectionsMarshal.AsSpan(list367); + num = 0; + ref QuestSequence reference280 = ref span367[num]; QuestSequence obj260 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list368 = new List(num2); - CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029011u, new Vector3(-88.822815f, -19.053196f, 296.65063f), 817) + index2 = 1; + List list368 = new List(index2); + CollectionsMarshal.SetCount(list368, index2); + Span span368 = CollectionsMarshal.AsSpan(list368); + num2 = 0; + span368[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029011u, new Vector3(-88.822815f, -19.053196f, 296.65063f), 817) { StopDistance = 5f }; obj260.Steps = list368; reference280 = obj260; - ref QuestSequence reference281 = ref span135[1]; + num++; + ref QuestSequence reference281 = ref span367[num]; QuestSequence obj261 = new QuestSequence { Sequence = 1 @@ -226712,26 +274279,32 @@ public static class AssemblyQuestLoader num2 = 1; List list369 = new List(num2); CollectionsMarshal.SetCount(list369, num2); - CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.Interact, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817); + Span span369 = CollectionsMarshal.AsSpan(list369); + index2 = 0; + span369[index2] = new QuestStep(EInteractionType.Interact, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817); obj261.Steps = list369; reference281 = obj261; - ref QuestSequence reference282 = ref span135[2]; + num++; + ref QuestSequence reference282 = ref span367[num]; QuestSequence obj262 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - Span span136 = CollectionsMarshal.AsSpan(list370); - span136[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-64.28227f, -19.16186f, 319.19778f), 817); - span136[1] = new QuestStep(EInteractionType.Interact, 2009894u, new Vector3(-259.51025f, -2.395752f, 332.81445f), 817) + index2 = 2; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + Span span370 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + span370[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-64.28227f, -19.16186f, 319.19778f), 817); + num2++; + span370[num2] = new QuestStep(EInteractionType.Interact, 2009894u, new Vector3(-259.51025f, -2.395752f, 332.81445f), 817) { Fly = true }; obj262.Steps = list370; reference282 = obj262; - ref QuestSequence reference283 = ref span135[3]; + num++; + ref QuestSequence reference283 = ref span367[num]; QuestSequence obj263 = new QuestSequence { Sequence = 3 @@ -226739,22 +274312,27 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1029558u, new Vector3(28.732666f, 0f, 1.87677f), 819) + Span span371 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + span371[index2] = new QuestStep(EInteractionType.Interact, 1029558u, new Vector3(28.732666f, 0f, 1.87677f), 819) { Sprint = true, AetheryteShortcut = EAetheryteLocation.Crystarium }; obj263.Steps = list371; reference283 = obj263; - ref QuestSequence reference284 = ref span135[4]; + num++; + ref QuestSequence reference284 = ref span367[num]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list372 = new List(num2); - CollectionsMarshal.SetCount(list372, num2); - ref QuestStep reference285 = ref CollectionsMarshal.AsSpan(list372)[0]; + index2 = 1; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + Span span372 = CollectionsMarshal.AsSpan(list372); + num2 = 0; + ref QuestStep reference285 = ref span372[num2]; QuestStep obj265 = new QuestStep(EInteractionType.CompleteQuest, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 7f, @@ -226767,7 +274345,9 @@ public static class AssemblyQuestLoader num3 = 1; List list373 = new List(num3); CollectionsMarshal.SetCount(list373, num3); - CollectionsMarshal.AsSpan(list373)[0] = new DialogueChoice + Span span373 = CollectionsMarshal.AsSpan(list373); + index3 = 0; + span373[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMC121_03342_Q1_000_000") @@ -226783,13 +274363,16 @@ public static class AssemblyQuestLoader num = 1; List list374 = new List(num); CollectionsMarshal.SetCount(list374, num); - CollectionsMarshal.AsSpan(list374)[0] = "liza"; + Span span374 = CollectionsMarshal.AsSpan(list374); + index = 0; + span374[index] = "liza"; questRoot44.Author = list374; - num = 5; - List list375 = new List(num); - CollectionsMarshal.SetCount(list375, num); - Span span137 = CollectionsMarshal.AsSpan(list375); - ref QuestSequence reference286 = ref span137[0]; + index = 5; + List list375 = new List(index); + CollectionsMarshal.SetCount(list375, index); + Span span375 = CollectionsMarshal.AsSpan(list375); + num = 0; + ref QuestSequence reference286 = ref span375[num]; QuestSequence obj266 = new QuestSequence { Sequence = 0 @@ -226797,21 +274380,27 @@ public static class AssemblyQuestLoader num2 = 1; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027827u, new Vector3(105.02783f, 0.49999997f, -145.70844f), 819); + Span span376 = CollectionsMarshal.AsSpan(list376); + index2 = 0; + span376[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027827u, new Vector3(105.02783f, 0.49999997f, -145.70844f), 819); obj266.Steps = list376; reference286 = obj266; - ref QuestSequence reference287 = ref span137[1]; + num++; + ref QuestSequence reference287 = ref span375[num]; QuestSequence obj267 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.Interact, 1027254u, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819); + index2 = 1; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + Span span377 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span377[num2] = new QuestStep(EInteractionType.Interact, 1027254u, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819); obj267.Steps = list377; reference287 = obj267; - ref QuestSequence reference288 = ref span137[2]; + num++; + ref QuestSequence reference288 = ref span375[num]; QuestSequence obj268 = new QuestSequence { Sequence = 2 @@ -226819,7 +274408,9 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Interact, 1027817u, new Vector3(-118.425354f, -47.50666f, -181.17041f), 819) + Span span378 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + span378[index2] = new QuestStep(EInteractionType.Interact, 1027817u, new Vector3(-118.425354f, -47.50666f, -181.17041f), 819) { AethernetShortcut = new AethernetShortcut { @@ -226829,46 +274420,62 @@ public static class AssemblyQuestLoader }; obj268.Steps = list378; reference288 = obj268; - ref QuestSequence reference289 = ref span137[3]; + num++; + ref QuestSequence reference289 = ref span375[num]; QuestSequence obj269 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list379 = new List(num2); - CollectionsMarshal.SetCount(list379, num2); - Span span138 = CollectionsMarshal.AsSpan(list379); - ref QuestStep reference290 = ref span138[0]; + index2 = 2; + List list379 = new List(index2); + CollectionsMarshal.SetCount(list379, index2); + Span span379 = CollectionsMarshal.AsSpan(list379); + num2 = 0; + ref QuestStep reference290 = ref span379[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 2010022u, new Vector3(-152.08673f, -45.88391f, -185.0462f), 819); - num3 = 6; - List list380 = new List(num3); - CollectionsMarshal.SetCount(list380, num3); - Span span139 = CollectionsMarshal.AsSpan(list380); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list380 = new List(index3); + CollectionsMarshal.SetCount(list380, index3); + Span span380 = CollectionsMarshal.AsSpan(list380); + num3 = 0; + span380[num3] = null; + num3++; + span380[num3] = null; + num3++; + span380[num3] = null; + num3++; + span380[num3] = null; + num3++; + span380[num3] = null; + num3++; + span380[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list380; reference290 = questStep21; - ref QuestStep reference291 = ref span138[1]; + num2++; + ref QuestStep reference291 = ref span379[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1030257u, new Vector3(-169.3294f, -45.8779f, -209.85736f), 819); num3 = 6; List list381 = new List(num3); CollectionsMarshal.SetCount(list381, num3); - Span span140 = CollectionsMarshal.AsSpan(list381); - span140[0] = null; - span140[1] = null; - span140[2] = null; - span140[3] = null; - span140[4] = null; - span140[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span381 = CollectionsMarshal.AsSpan(list381); + index3 = 0; + span381[index3] = null; + index3++; + span381[index3] = null; + index3++; + span381[index3] = null; + index3++; + span381[index3] = null; + index3++; + span381[index3] = null; + index3++; + span381[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list381; reference291 = questStep22; obj269.Steps = list379; reference289 = obj269; - ref QuestSequence reference292 = ref span137[4]; + num++; + ref QuestSequence reference292 = ref span375[num]; QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue @@ -226876,7 +274483,9 @@ public static class AssemblyQuestLoader num2 = 1; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - CollectionsMarshal.AsSpan(list382)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027254u, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819) + Span span382 = CollectionsMarshal.AsSpan(list382); + index2 = 0; + span382[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027254u, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819) { AethernetShortcut = new AethernetShortcut { @@ -226893,24 +274502,30 @@ public static class AssemblyQuestLoader num = 1; List list383 = new List(num); CollectionsMarshal.SetCount(list383, num); - CollectionsMarshal.AsSpan(list383)[0] = "liza"; + Span span383 = CollectionsMarshal.AsSpan(list383); + index = 0; + span383[index] = "liza"; questRoot45.Author = list383; - num = 3; - List list384 = new List(num); - CollectionsMarshal.SetCount(list384, num); - Span span141 = CollectionsMarshal.AsSpan(list384); - ref QuestSequence reference293 = ref span141[0]; + index = 3; + List list384 = new List(index); + CollectionsMarshal.SetCount(list384, index); + Span span384 = CollectionsMarshal.AsSpan(list384); + num = 0; + ref QuestSequence reference293 = ref span384[num]; QuestSequence obj271 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list385 = new List(num2); - CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027244u, new Vector3(76.157715f, 0.0889954f, -44.26648f), 819); + index2 = 1; + List list385 = new List(index2); + CollectionsMarshal.SetCount(list385, index2); + Span span385 = CollectionsMarshal.AsSpan(list385); + num2 = 0; + span385[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027244u, new Vector3(76.157715f, 0.0889954f, -44.26648f), 819); obj271.Steps = list385; reference293 = obj271; - ref QuestSequence reference294 = ref span141[1]; + num++; + ref QuestSequence reference294 = ref span384[num]; QuestSequence obj272 = new QuestSequence { Sequence = 1 @@ -226918,8 +274533,9 @@ public static class AssemblyQuestLoader num2 = 5; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - Span span142 = CollectionsMarshal.AsSpan(list386); - ref QuestStep reference295 = ref span142[0]; + Span span386 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + ref QuestStep reference295 = ref span386[index2]; QuestStep obj273 = new QuestStep(EInteractionType.Interact, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819) { AethernetShortcut = new AethernetShortcut @@ -226928,19 +274544,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTemenosRookery } }; - num3 = 6; - List list387 = new List(num3); - CollectionsMarshal.SetCount(list387, num3); - Span span143 = CollectionsMarshal.AsSpan(list387); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list387 = new List(index3); + CollectionsMarshal.SetCount(list387, index3); + Span span387 = CollectionsMarshal.AsSpan(list387); + num3 = 0; + span387[num3] = null; + num3++; + span387[num3] = null; + num3++; + span387[num3] = null; + num3++; + span387[num3] = null; + num3++; + span387[num3] = null; + num3++; + span387[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj273.CompletionQuestVariablesFlags = list387; reference295 = obj273; - ref QuestStep reference296 = ref span142[1]; + index2++; + ref QuestStep reference296 = ref span386[index2]; QuestStep obj274 = new QuestStep(EInteractionType.Interact, 1027227u, new Vector3(-65.78168f, -27.23603f, -272.99915f), 819) { AethernetShortcut = new AethernetShortcut @@ -226952,16 +274575,23 @@ public static class AssemblyQuestLoader num3 = 6; List list388 = new List(num3); CollectionsMarshal.SetCount(list388, num3); - Span span144 = CollectionsMarshal.AsSpan(list388); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span388 = CollectionsMarshal.AsSpan(list388); + index3 = 0; + span388[index3] = null; + index3++; + span388[index3] = null; + index3++; + span388[index3] = null; + index3++; + span388[index3] = null; + index3++; + span388[index3] = null; + index3++; + span388[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj274.CompletionQuestVariablesFlags = list388; reference296 = obj274; - ref QuestStep reference297 = ref span142[2]; + index2++; + ref QuestStep reference297 = ref span386[index2]; QuestStep obj275 = new QuestStep(EInteractionType.Interact, 1030258u, new Vector3(65.659546f, 36.197685f, -148.54657f), 819) { AethernetShortcut = new AethernetShortcut @@ -226970,19 +274600,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - num3 = 6; - List list389 = new List(num3); - CollectionsMarshal.SetCount(list389, num3); - Span span145 = CollectionsMarshal.AsSpan(list389); - span145[0] = null; - span145[1] = null; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list389 = new List(index3); + CollectionsMarshal.SetCount(list389, index3); + Span span389 = CollectionsMarshal.AsSpan(list389); + num3 = 0; + span389[num3] = null; + num3++; + span389[num3] = null; + num3++; + span389[num3] = null; + num3++; + span389[num3] = null; + num3++; + span389[num3] = null; + num3++; + span389[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj275.CompletionQuestVariablesFlags = list389; reference297 = obj275; - span142[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(80.6178f, 35.999687f, -146.81993f), 819) + index2++; + span386[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(80.6178f, 35.999687f, -146.81993f), 819) { StopDistance = 0.5f, JumpDestination = new JumpDestination @@ -226990,36 +274627,48 @@ public static class AssemblyQuestLoader Position = new Vector3(98.63616f, 0.5f, -153.71947f) } }; - ref QuestStep reference298 = ref span142[4]; + index2++; + ref QuestStep reference298 = ref span386[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1027826u, new Vector3(89.15845f, 0.49999997f, -145.4643f), 819); num3 = 6; List list390 = new List(num3); CollectionsMarshal.SetCount(list390, num3); - Span span146 = CollectionsMarshal.AsSpan(list390); - span146[0] = null; - span146[1] = null; - span146[2] = null; - span146[3] = null; - span146[4] = null; - span146[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span390 = CollectionsMarshal.AsSpan(list390); + index3 = 0; + span390[index3] = null; + index3++; + span390[index3] = null; + index3++; + span390[index3] = null; + index3++; + span390[index3] = null; + index3++; + span390[index3] = null; + index3++; + span390[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list390; reference298 = questStep23; obj272.Steps = list386; reference294 = obj272; - ref QuestSequence reference299 = ref span141[2]; + num++; + ref QuestSequence reference299 = ref span384[num]; QuestSequence obj276 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list391 = new List(num2); - CollectionsMarshal.SetCount(list391, num2); - ref QuestStep reference300 = ref CollectionsMarshal.AsSpan(list391)[0]; + index2 = 1; + List list391 = new List(index2); + CollectionsMarshal.SetCount(list391, index2); + Span span391 = CollectionsMarshal.AsSpan(list391); + num2 = 0; + ref QuestStep reference300 = ref span391[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.CompleteQuest, 1027244u, new Vector3(76.157715f, 0.0889954f, -44.26648f), 819); - num3 = 1; - List list392 = new List(num3); - CollectionsMarshal.SetCount(list392, num3); - CollectionsMarshal.AsSpan(list392)[0] = new DialogueChoice + index3 = 1; + List list392 = new List(index3); + CollectionsMarshal.SetCount(list392, index3); + Span span392 = CollectionsMarshal.AsSpan(list392); + num3 = 0; + span392[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZA002_03344_Q1_000_051"), @@ -227036,13 +274685,16 @@ public static class AssemblyQuestLoader num = 1; List list393 = new List(num); CollectionsMarshal.SetCount(list393, num); - CollectionsMarshal.AsSpan(list393)[0] = "liza"; + Span span393 = CollectionsMarshal.AsSpan(list393); + index = 0; + span393[index] = "liza"; questRoot46.Author = list393; - num = 4; - List list394 = new List(num); - CollectionsMarshal.SetCount(list394, num); - Span span147 = CollectionsMarshal.AsSpan(list394); - ref QuestSequence reference301 = ref span147[0]; + index = 4; + List list394 = new List(index); + CollectionsMarshal.SetCount(list394, index); + Span span394 = CollectionsMarshal.AsSpan(list394); + num = 0; + ref QuestSequence reference301 = ref span394[num]; QuestSequence obj277 = new QuestSequence { Sequence = 0 @@ -227050,23 +274702,29 @@ public static class AssemblyQuestLoader num2 = 2; List list395 = new List(num2); CollectionsMarshal.SetCount(list395, num2); - Span span148 = CollectionsMarshal.AsSpan(list395); - span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.33571f, 3.9998171f, 239.88663f), 819); - span148[1] = new QuestStep(EInteractionType.AcceptQuest, 1027323u, new Vector3(-42.893127f, 3.9998171f, 242.08435f), 819); + Span span395 = CollectionsMarshal.AsSpan(list395); + index2 = 0; + span395[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.33571f, 3.9998171f, 239.88663f), 819); + index2++; + span395[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027323u, new Vector3(-42.893127f, 3.9998171f, 242.08435f), 819); obj277.Steps = list395; reference301 = obj277; - ref QuestSequence reference302 = ref span147[1]; + num++; + ref QuestSequence reference302 = ref span394[num]; QuestSequence obj278 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list396 = new List(num2); - CollectionsMarshal.SetCount(list396, num2); - CollectionsMarshal.AsSpan(list396)[0] = new QuestStep(EInteractionType.Interact, 1027816u, new Vector3(-20.676025f, -7.700001f, 111.77234f), 819); + index2 = 1; + List list396 = new List(index2); + CollectionsMarshal.SetCount(list396, index2); + Span span396 = CollectionsMarshal.AsSpan(list396); + num2 = 0; + span396[num2] = new QuestStep(EInteractionType.Interact, 1027816u, new Vector3(-20.676025f, -7.700001f, 111.77234f), 819); obj278.Steps = list396; reference302 = obj278; - ref QuestSequence reference303 = ref span147[2]; + num++; + ref QuestSequence reference303 = ref span394[num]; QuestSequence obj279 = new QuestSequence { Sequence = 2 @@ -227074,20 +274732,25 @@ public static class AssemblyQuestLoader num2 = 1; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.Interact, 1029146u, new Vector3(86.74744f, 0.74016255f, 147.11218f), 819); + Span span397 = CollectionsMarshal.AsSpan(list397); + index2 = 0; + span397[index2] = new QuestStep(EInteractionType.Interact, 1029146u, new Vector3(86.74744f, 0.74016255f, 147.11218f), 819); obj279.Steps = list397; reference303 = obj279; - ref QuestSequence reference304 = ref span147[3]; + num++; + ref QuestSequence reference304 = ref span394[num]; QuestSequence obj280 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list398 = new List(num2); - CollectionsMarshal.SetCount(list398, num2); - Span span149 = CollectionsMarshal.AsSpan(list398); - span149[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.33571f, 3.9998171f, 239.88663f), 819); - span149[1] = new QuestStep(EInteractionType.CompleteQuest, 1027323u, new Vector3(-42.893127f, 3.9998171f, 242.08435f), 819); + index2 = 2; + List list398 = new List(index2); + CollectionsMarshal.SetCount(list398, index2); + Span span398 = CollectionsMarshal.AsSpan(list398); + num2 = 0; + span398[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.33571f, 3.9998171f, 239.88663f), 819); + num2++; + span398[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027323u, new Vector3(-42.893127f, 3.9998171f, 242.08435f), 819); obj280.Steps = list398; reference304 = obj280; questRoot46.QuestSequence = list394; @@ -227097,13 +274760,16 @@ public static class AssemblyQuestLoader num = 1; List list399 = new List(num); CollectionsMarshal.SetCount(list399, num); - CollectionsMarshal.AsSpan(list399)[0] = "liza"; + Span span399 = CollectionsMarshal.AsSpan(list399); + index = 0; + span399[index] = "liza"; questRoot47.Author = list399; - num = 5; - List list400 = new List(num); - CollectionsMarshal.SetCount(list400, num); - Span span150 = CollectionsMarshal.AsSpan(list400); - ref QuestSequence reference305 = ref span150[0]; + index = 5; + List list400 = new List(index); + CollectionsMarshal.SetCount(list400, index); + Span span400 = CollectionsMarshal.AsSpan(list400); + num = 0; + ref QuestSequence reference305 = ref span400[num]; QuestSequence obj281 = new QuestSequence { Sequence = 0 @@ -227111,63 +274777,88 @@ public static class AssemblyQuestLoader num2 = 1; List list401 = new List(num2); CollectionsMarshal.SetCount(list401, num2); - CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); + Span span401 = CollectionsMarshal.AsSpan(list401); + index2 = 0; + span401[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); obj281.Steps = list401; reference305 = obj281; - ref QuestSequence reference306 = ref span150[1]; + num++; + ref QuestSequence reference306 = ref span400[num]; QuestSequence obj282 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list402 = new List(num2); - CollectionsMarshal.SetCount(list402, num2); - Span span151 = CollectionsMarshal.AsSpan(list402); - ref QuestStep reference307 = ref span151[0]; + index2 = 3; + List list402 = new List(index2); + CollectionsMarshal.SetCount(list402, index2); + Span span402 = CollectionsMarshal.AsSpan(list402); + num2 = 0; + ref QuestStep reference307 = ref span402[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 2009995u, new Vector3(-130.38837f, 1.1138916f, -82.84125f), 819); num3 = 6; List list403 = new List(num3); CollectionsMarshal.SetCount(list403, num3); - Span span152 = CollectionsMarshal.AsSpan(list403); - span152[0] = null; - span152[1] = null; - span152[2] = null; - span152[3] = null; - span152[4] = null; - span152[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span403 = CollectionsMarshal.AsSpan(list403); + index3 = 0; + span403[index3] = null; + index3++; + span403[index3] = null; + index3++; + span403[index3] = null; + index3++; + span403[index3] = null; + index3++; + span403[index3] = null; + index3++; + span403[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list403; reference307 = questStep25; - ref QuestStep reference308 = ref span151[1]; + num2++; + ref QuestStep reference308 = ref span402[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 2009994u, new Vector3(-155.29114f, -0.015319824f, -99.38208f), 819); - num3 = 6; - List list404 = new List(num3); - CollectionsMarshal.SetCount(list404, num3); - Span span153 = CollectionsMarshal.AsSpan(list404); - span153[0] = null; - span153[1] = null; - span153[2] = null; - span153[3] = null; - span153[4] = null; - span153[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list404 = new List(index3); + CollectionsMarshal.SetCount(list404, index3); + Span span404 = CollectionsMarshal.AsSpan(list404); + num3 = 0; + span404[num3] = null; + num3++; + span404[num3] = null; + num3++; + span404[num3] = null; + num3++; + span404[num3] = null; + num3++; + span404[num3] = null; + num3++; + span404[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list404; reference308 = questStep26; - ref QuestStep reference309 = ref span151[2]; + num2++; + ref QuestStep reference309 = ref span402[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 2009996u, new Vector3(-145.00653f, -0.045776367f, -130.5105f), 819); num3 = 6; List list405 = new List(num3); CollectionsMarshal.SetCount(list405, num3); - Span span154 = CollectionsMarshal.AsSpan(list405); - span154[0] = null; - span154[1] = null; - span154[2] = null; - span154[3] = null; - span154[4] = null; - span154[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span405 = CollectionsMarshal.AsSpan(list405); + index3 = 0; + span405[index3] = null; + index3++; + span405[index3] = null; + index3++; + span405[index3] = null; + index3++; + span405[index3] = null; + index3++; + span405[index3] = null; + index3++; + span405[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list405; reference309 = questStep27; obj282.Steps = list402; reference306 = obj282; - ref QuestSequence reference310 = ref span150[2]; + num++; + ref QuestSequence reference310 = ref span400[num]; QuestSequence obj283 = new QuestSequence { Sequence = 2 @@ -227175,21 +274866,27 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); + Span span406 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + span406[index2] = new QuestStep(EInteractionType.Interact, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); obj283.Steps = list406; reference310 = obj283; - ref QuestSequence reference311 = ref span150[3]; + num++; + ref QuestSequence reference311 = ref span400[num]; QuestSequence obj284 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list407 = new List(num2); - CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.Interact, 1028334u, new Vector3(-135.33228f, -6.193295E-07f, 59.464355f), 819); + index2 = 1; + List list407 = new List(index2); + CollectionsMarshal.SetCount(list407, index2); + Span span407 = CollectionsMarshal.AsSpan(list407); + num2 = 0; + span407[num2] = new QuestStep(EInteractionType.Interact, 1028334u, new Vector3(-135.33228f, -6.193295E-07f, 59.464355f), 819); obj284.Steps = list407; reference311 = obj284; - ref QuestSequence reference312 = ref span150[4]; + num++; + ref QuestSequence reference312 = ref span400[num]; QuestSequence obj285 = new QuestSequence { Sequence = byte.MaxValue @@ -227197,7 +274894,9 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); + Span span408 = CollectionsMarshal.AsSpan(list408); + index2 = 0; + span408[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); obj285.Steps = list408; reference312 = obj285; questRoot47.QuestSequence = list400; @@ -227207,24 +274906,30 @@ public static class AssemblyQuestLoader num = 1; List list409 = new List(num); CollectionsMarshal.SetCount(list409, num); - CollectionsMarshal.AsSpan(list409)[0] = "liza"; + Span span409 = CollectionsMarshal.AsSpan(list409); + index = 0; + span409[index] = "liza"; questRoot48.Author = list409; - num = 3; - List list410 = new List(num); - CollectionsMarshal.SetCount(list410, num); - Span span155 = CollectionsMarshal.AsSpan(list410); - ref QuestSequence reference313 = ref span155[0]; + index = 3; + List list410 = new List(index); + CollectionsMarshal.SetCount(list410, index); + Span span410 = CollectionsMarshal.AsSpan(list410); + num = 0; + ref QuestSequence reference313 = ref span410[num]; QuestSequence obj286 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list411 = new List(num2); - CollectionsMarshal.SetCount(list411, num2); - CollectionsMarshal.AsSpan(list411)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027846u, new Vector3(-68.65039f, -36.750023f, -264.39313f), 819); + index2 = 1; + List list411 = new List(index2); + CollectionsMarshal.SetCount(list411, index2); + Span span411 = CollectionsMarshal.AsSpan(list411); + num2 = 0; + span411[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027846u, new Vector3(-68.65039f, -36.750023f, -264.39313f), 819); obj286.Steps = list411; reference313 = obj286; - ref QuestSequence reference314 = ref span155[1]; + num++; + ref QuestSequence reference314 = ref span410[num]; QuestSequence obj287 = new QuestSequence { Sequence = 1 @@ -227232,25 +274937,30 @@ public static class AssemblyQuestLoader num2 = 1; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - ref QuestStep reference315 = ref CollectionsMarshal.AsSpan(list412)[0]; + Span span412 = CollectionsMarshal.AsSpan(list412); + index2 = 0; + ref QuestStep reference315 = ref span412[index2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1030259u, new Vector3(-68.55884f, -27.236004f, -269.58118f), 819); - num3 = 3; - List list413 = new List(num3); - CollectionsMarshal.SetCount(list413, num3); - Span span156 = CollectionsMarshal.AsSpan(list413); - span156[0] = new DialogueChoice + index3 = 3; + List list413 = new List(index3); + CollectionsMarshal.SetCount(list413, index3); + Span span413 = CollectionsMarshal.AsSpan(list413); + num3 = 0; + span413[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZA005_03347_Q1_000_012"), Answer = new ExcelRef("TEXT_LUCKZA005_03347_A1_000_013") }; - span156[1] = new DialogueChoice + num3++; + span413[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZA005_03347_Q2_000_017"), Answer = new ExcelRef("TEXT_LUCKZA005_03347_A2_000_019") }; - span156[2] = new DialogueChoice + num3++; + span413[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZA005_03347_Q3_000_022"), @@ -227260,15 +274970,18 @@ public static class AssemblyQuestLoader reference315 = questStep28; obj287.Steps = list412; reference314 = obj287; - ref QuestSequence reference316 = ref span155[2]; + num++; + ref QuestSequence reference316 = ref span410[num]; QuestSequence obj288 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list414 = new List(num2); - CollectionsMarshal.SetCount(list414, num2); - CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027846u, new Vector3(-68.65039f, -36.750023f, -264.39313f), 819); + index2 = 1; + List list414 = new List(index2); + CollectionsMarshal.SetCount(list414, index2); + Span span414 = CollectionsMarshal.AsSpan(list414); + num2 = 0; + span414[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027846u, new Vector3(-68.65039f, -36.750023f, -264.39313f), 819); obj288.Steps = list414; reference316 = obj288; questRoot48.QuestSequence = list410; @@ -227278,13 +274991,16 @@ public static class AssemblyQuestLoader num = 1; List list415 = new List(num); CollectionsMarshal.SetCount(list415, num); - CollectionsMarshal.AsSpan(list415)[0] = "liza"; + Span span415 = CollectionsMarshal.AsSpan(list415); + index = 0; + span415[index] = "liza"; questRoot49.Author = list415; - num = 3; - List list416 = new List(num); - CollectionsMarshal.SetCount(list416, num); - Span span157 = CollectionsMarshal.AsSpan(list416); - ref QuestSequence reference317 = ref span157[0]; + index = 3; + List list416 = new List(index); + CollectionsMarshal.SetCount(list416, index); + Span span416 = CollectionsMarshal.AsSpan(list416); + num = 0; + ref QuestSequence reference317 = ref span416[num]; QuestSequence obj289 = new QuestSequence { Sequence = 0 @@ -227292,24 +275008,30 @@ public static class AssemblyQuestLoader num2 = 1; List list417 = new List(num2); CollectionsMarshal.SetCount(list417, num2); - CollectionsMarshal.AsSpan(list417)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029884u, new Vector3(52.96399f, 35.999683f, -109.14783f), 819); + Span span417 = CollectionsMarshal.AsSpan(list417); + index2 = 0; + span417[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029884u, new Vector3(52.96399f, 35.999683f, -109.14783f), 819); obj289.Steps = list417; reference317 = obj289; - ref QuestSequence reference318 = ref span157[1]; + num++; + ref QuestSequence reference318 = ref span416[num]; QuestSequence obj290 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list418 = new List(num2); - CollectionsMarshal.SetCount(list418, num2); - CollectionsMarshal.AsSpan(list418)[0] = new QuestStep(EInteractionType.Emote, 1029884u, new Vector3(52.96399f, 35.999683f, -109.14783f), 819) + index2 = 1; + List list418 = new List(index2); + CollectionsMarshal.SetCount(list418, index2); + Span span418 = CollectionsMarshal.AsSpan(list418); + num2 = 0; + span418[num2] = new QuestStep(EInteractionType.Emote, 1029884u, new Vector3(52.96399f, 35.999683f, -109.14783f), 819) { Emote = EEmote.BattleStance }; obj290.Steps = list418; reference318 = obj290; - ref QuestSequence reference319 = ref span157[2]; + num++; + ref QuestSequence reference319 = ref span416[num]; QuestSequence obj291 = new QuestSequence { Sequence = byte.MaxValue @@ -227317,7 +275039,9 @@ public static class AssemblyQuestLoader num2 = 1; List list419 = new List(num2); CollectionsMarshal.SetCount(list419, num2); - CollectionsMarshal.AsSpan(list419)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029884u, new Vector3(52.96399f, 35.999683f, -109.14783f), 819) + Span span419 = CollectionsMarshal.AsSpan(list419); + index2 = 0; + span419[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029884u, new Vector3(52.96399f, 35.999683f, -109.14783f), 819) { Emote = EEmote.Box }; @@ -227334,13 +275058,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -227348,26 +275075,32 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027452u, new Vector3(-310.62793f, 19.405178f, 405.2948f), 814); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027452u, new Vector3(-310.62793f, 19.405178f, 405.2948f), 814); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-451.1456f, 8.987026f, 532.7527f), 814); - span2[1] = new QuestStep(EInteractionType.Interact, 1030741u, new Vector3(-446.28064f, 7.6579986f, 536.15625f), 814) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-451.1456f, 8.987026f, 532.7527f), 814); + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 1030741u, new Vector3(-446.28064f, 7.6579986f, 536.15625f), 814) { StopDistance = 7f }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -227375,8 +275108,9 @@ public static class AssemblyQuestLoader num2 = 7; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-447.98965f, 7.657998f, 532.0151f), 814) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-447.98965f, 7.657998f, 532.0151f), 814) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -227385,7 +275119,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - ref QuestStep reference4 = ref span3[1]; + index2++; + ref QuestStep reference4 = ref span5[index2]; QuestStep obj4 = new QuestStep(EInteractionType.UseItem, 2010260u, new Vector3(-444.38855f, 8.987488f, 532.6771f), 814) { DelaySecondsAtStart = 1f, @@ -227394,34 +275129,48 @@ public static class AssemblyQuestLoader int num3 = 6; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span6 = CollectionsMarshal.AsSpan(list6); + int num4 = 0; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = null; + num4++; + span6[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list6; reference4 = obj4; - ref QuestStep reference5 = ref span3[2]; + index2++; + ref QuestStep reference5 = ref span5[index2]; QuestStep obj5 = new QuestStep(EInteractionType.UseItem, 2010286u, new Vector3(-443.0152f, 8.773865f, 535.97314f), 814) { DelaySecondsAtStart = 1f, ItemId = 2002688u }; - num3 = 6; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list7 = new List(num4); + CollectionsMarshal.SetCount(list7, num4); + Span span7 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj5.CompletionQuestVariablesFlags = list7; reference5 = obj5; - ref QuestStep reference6 = ref span3[3]; + index2++; + ref QuestStep reference6 = ref span5[index2]; QuestStep obj6 = new QuestStep(EInteractionType.UseItem, 2010287u, new Vector3(-442.92365f, 8.895996f, 538.6892f), 814) { DelaySecondsAtStart = 1f, @@ -227430,34 +275179,48 @@ public static class AssemblyQuestLoader num3 = 6; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span6 = CollectionsMarshal.AsSpan(list8); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span8 = CollectionsMarshal.AsSpan(list8); + num4 = 0; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = null; + num4++; + span8[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj6.CompletionQuestVariablesFlags = list8; reference6 = obj6; - ref QuestStep reference7 = ref span3[4]; + index2++; + ref QuestStep reference7 = ref span5[index2]; QuestStep obj7 = new QuestStep(EInteractionType.UseItem, 2010288u, new Vector3(-441.88605f, 8.590759f, 542.3513f), 814) { DelaySecondsAtStart = 1f, ItemId = 2002688u }; - num3 = 6; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span7 = CollectionsMarshal.AsSpan(list9); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list9 = new List(num4); + CollectionsMarshal.SetCount(list9, num4); + Span span9 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj7.CompletionQuestVariablesFlags = list9; reference7 = obj7; - ref QuestStep reference8 = ref span3[5]; + index2++; + ref QuestStep reference8 = ref span5[index2]; QuestStep obj8 = new QuestStep(EInteractionType.UseItem, 2010261u, new Vector3(-444.6327f, 8.804443f, 544.51807f), 814) { DelaySecondsAtStart = 1f, @@ -227466,47 +275229,64 @@ public static class AssemblyQuestLoader num3 = 6; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - Span span8 = CollectionsMarshal.AsSpan(list10); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span10 = CollectionsMarshal.AsSpan(list10); + num4 = 0; + span10[num4] = null; + num4++; + span10[num4] = null; + num4++; + span10[num4] = null; + num4++; + span10[num4] = null; + num4++; + span10[num4] = null; + num4++; + span10[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj8.CompletionQuestVariablesFlags = list10; reference8 = obj8; - ref QuestStep reference9 = ref span3[6]; + index2++; + ref QuestStep reference9 = ref span5[index2]; QuestStep obj9 = new QuestStep(EInteractionType.UseItem, 2010289u, new Vector3(-443.47296f, 8.499207f, 548.30237f), 814) { DelaySecondsAtStart = 1f, ItemId = 2002688u }; - num3 = 6; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span9 = CollectionsMarshal.AsSpan(list11); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + Span span11 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj9.CompletionQuestVariablesFlags = list11; reference9 = obj9; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference10 = ref span[3]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1030741u, new Vector3(-446.28064f, 7.6579986f, 536.15625f), 814); + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.Interact, 1030741u, new Vector3(-446.28064f, 7.6579986f, 536.15625f), 814); obj10.Steps = list12; reference10 = obj10; - ref QuestSequence reference11 = ref span[4]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -227514,7 +275294,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027452u, new Vector3(-310.62793f, 19.405178f, 405.2948f), 814) + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027452u, new Vector3(-310.62793f, 19.405178f, 405.2948f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; @@ -227527,24 +275309,30 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "liza"; + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = "liza"; questRoot2.Author = list14; - num = 6; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span10 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference12 = ref span10[0]; + index = 6; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference12 = ref span15[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030763u, new Vector3(-306.2334f, 20.956566f, 358.41907f), 814); + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030763u, new Vector3(-306.2334f, 20.956566f, 358.41907f), 814); obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference13 = ref span10[1]; + num++; + ref QuestSequence reference13 = ref span15[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -227552,7 +275340,9 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list17)[0]; + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + ref QuestStep reference14 = ref span17[index2]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, null, new Vector3(-226.82605f, 21.612165f, 298.9232f), 814) { StopDistance = 1f, @@ -227561,26 +275351,32 @@ public static class AssemblyQuestLoader num3 = 1; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = 11151u; + Span span18 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span18[num4] = 11151u; obj14.KillEnemyDataIds = list18; reference14 = obj14; obj13.Steps = list17; reference13 = obj13; - ref QuestSequence reference15 = ref span10[2]; + num++; + ref QuestSequence reference15 = ref span15[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1030764u, new Vector3(-226.42871f, 21.592747f, 297.8407f), 814) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.Interact, 1030764u, new Vector3(-226.42871f, 21.592747f, 297.8407f), 814) { StopDistance = 7f }; obj15.Steps = list19; reference15 = obj15; - ref QuestSequence reference16 = ref span10[3]; + num++; + ref QuestSequence reference16 = ref span15[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -227588,21 +275384,27 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814); + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new QuestStep(EInteractionType.Interact, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814); obj16.Steps = list20; reference16 = obj16; - ref QuestSequence reference17 = ref span10[4]; + num++; + ref QuestSequence reference17 = ref span15[num]; QuestSequence obj17 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 1030794u, new Vector3(-317.2503f, 21.045609f, 349.17212f), 814); + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.Interact, 1030794u, new Vector3(-317.2503f, 21.045609f, 349.17212f), 814); obj17.Steps = list21; reference17 = obj17; - ref QuestSequence reference18 = ref span10[5]; + num++; + ref QuestSequence reference18 = ref span15[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -227610,9 +275412,11 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span11 = CollectionsMarshal.AsSpan(list22); - span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-283.69812f, 35.330315f, 205.46227f), 814); - span11[1] = new QuestStep(EInteractionType.CompleteQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814); + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-283.69812f, 35.330315f, 205.46227f), 814); + index2++; + span22[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814); obj18.Steps = list22; reference18 = obj18; questRoot2.QuestSequence = list15; @@ -227622,21 +275426,26 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "alydev"; + Span span23 = CollectionsMarshal.AsSpan(list23); + index = 0; + span23[index] = "alydev"; questRoot3.Author = list23; - num = 4; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span12 = CollectionsMarshal.AsSpan(list24); - ref QuestSequence reference19 = ref span12[0]; + index = 4; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + Span span24 = CollectionsMarshal.AsSpan(list24); + num = 0; + ref QuestSequence reference19 = ref span24[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -227654,7 +275463,8 @@ public static class AssemblyQuestLoader }; obj19.Steps = list25; reference19 = obj19; - ref QuestSequence reference20 = ref span12[1]; + num++; + ref QuestSequence reference20 = ref span24[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -227662,32 +275472,40 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list26)[0]; + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + ref QuestStep reference21 = ref span26[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 2010303u, new Vector3(-481.529f, 26.108154f, 333.27222f), 814) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = 11152u; + num4 = 1; + List list27 = new List(num4); + CollectionsMarshal.SetCount(list27, num4); + Span span27 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + span27[num3] = 11152u; obj21.KillEnemyDataIds = list27; reference21 = obj21; obj20.Steps = list26; reference20 = obj20; - ref QuestSequence reference22 = ref span12[2]; + num++; + ref QuestSequence reference22 = ref span24[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1030769u, new Vector3(-474.72345f, 24.51279f, 337.27014f), 814); + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.Interact, 1030769u, new Vector3(-474.72345f, 24.51279f, 337.27014f), 814); obj22.Steps = list28; reference22 = obj22; - ref QuestSequence reference23 = ref span12[3]; + num++; + ref QuestSequence reference23 = ref span24[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -227695,7 +275513,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) { Fly = true, NextQuestId = new QuestId(3373) @@ -227709,21 +275529,26 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "alydev"; + Span span30 = CollectionsMarshal.AsSpan(list30); + index = 0; + span30[index] = "alydev"; questRoot4.Author = list30; - num = 5; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span13 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference24 = ref span13[0]; + index = 5; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + Span span31 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference24 = ref span31[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -227741,7 +275566,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list32; reference24 = obj24; - ref QuestSequence reference25 = ref span13[1]; + num++; + ref QuestSequence reference25 = ref span31[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -227749,12 +275575,16 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - ref QuestStep reference26 = ref CollectionsMarshal.AsSpan(list33)[0]; + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + ref QuestStep reference26 = ref span33[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1030770u, new Vector3(-547.87524f, 37.722652f, 532.4635f), 814); num3 = 1; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - CollectionsMarshal.AsSpan(list34)[0] = new DialogueChoice + Span span34 = CollectionsMarshal.AsSpan(list34); + num4 = 0; + span34[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZA103_03373_Q1_000_000"), @@ -227764,21 +275594,26 @@ public static class AssemblyQuestLoader reference26 = questStep; obj25.Steps = list33; reference25 = obj25; - ref QuestSequence reference27 = ref span13[2]; + num++; + ref QuestSequence reference27 = ref span31[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span14 = CollectionsMarshal.AsSpan(list35); - span14[0] = new QuestStep(EInteractionType.Interact, 2010304u, new Vector3(-546.685f, 62.119385f, 681.9713f), 814); - span14[1] = new QuestStep(EInteractionType.Interact, 2010305u, new Vector3(-532.1889f, 62.790894f, 693.38513f), 814); - span14[2] = new QuestStep(EInteractionType.Interact, 2010306u, new Vector3(-524.07117f, 61.53955f, 674.464f), 814); + index2 = 3; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.Interact, 2010304u, new Vector3(-546.685f, 62.119385f, 681.9713f), 814); + num2++; + span35[num2] = new QuestStep(EInteractionType.Interact, 2010305u, new Vector3(-532.1889f, 62.790894f, 693.38513f), 814); + num2++; + span35[num2] = new QuestStep(EInteractionType.Interact, 2010306u, new Vector3(-524.07117f, 61.53955f, 674.464f), 814); obj26.Steps = list35; reference27 = obj26; - ref QuestSequence reference28 = ref span13[3]; + num++; + ref QuestSequence reference28 = ref span31[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 @@ -227786,18 +275621,23 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1030771u, new Vector3(-532.4636f, 62.522995f, 684.0161f), 814); + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.Interact, 1030771u, new Vector3(-532.4636f, 62.522995f, 684.0161f), 814); obj27.Steps = list36; reference28 = obj27; - ref QuestSequence reference29 = ref span13[4]; + num++; + ref QuestSequence reference29 = ref span31[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) { NextQuestId = new QuestId(3374) }; @@ -227810,13 +275650,16 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "alydev"; + Span span38 = CollectionsMarshal.AsSpan(list38); + index = 0; + span38[index] = "alydev"; questRoot5.Author = list38; - num = 5; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span15 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference30 = ref span15[0]; + index = 5; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + Span span39 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference30 = ref span39[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -227824,7 +275667,9 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -227842,21 +275687,25 @@ public static class AssemblyQuestLoader }; obj29.Steps = list40; reference30 = obj29; - ref QuestSequence reference31 = ref span15[1]; + num++; + ref QuestSequence reference31 = ref span39[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1030772u, new Vector3(-240.22284f, 20.521734f, 352.19336f), 814) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.Interact, 1030772u, new Vector3(-240.22284f, 20.521734f, 352.19336f), 814) { Fly = true }; obj30.Steps = list41; reference31 = obj30; - ref QuestSequence reference32 = ref span15[2]; + num++; + ref QuestSequence reference32 = ref span39[num]; QuestSequence obj31 = new QuestSequence { Sequence = 2 @@ -227864,24 +275713,30 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1030773u, new Vector3(-259.78485f, 21.732246f, 362.14233f), 814); + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.Interact, 1030773u, new Vector3(-259.78485f, 21.732246f, 362.14233f), 814); obj31.Steps = list42; reference32 = obj31; - ref QuestSequence reference33 = ref span15[3]; + num++; + ref QuestSequence reference33 = ref span39[num]; QuestSequence obj32 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1030774u, new Vector3(-290.27246f, 17.772081f, 442.86243f), 814) + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.Interact, 1030774u, new Vector3(-290.27246f, 17.772081f, 442.86243f), 814) { Fly = true }; obj32.Steps = list43; reference33 = obj32; - ref QuestSequence reference34 = ref span15[4]; + num++; + ref QuestSequence reference34 = ref span39[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -227889,7 +275744,9 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030774u, new Vector3(-290.27246f, 17.772081f, 442.86243f), 814) + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030774u, new Vector3(-290.27246f, 17.772081f, 442.86243f), 814) { NextQuestId = new QuestId(3560) }; @@ -227902,24 +275759,30 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; + Span span45 = CollectionsMarshal.AsSpan(list45); + index = 0; + span45[index] = "liza"; questRoot6.Author = list45; - num = 4; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span16 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference35 = ref span16[0]; + index = 4; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + Span span46 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference35 = ref span46[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815); + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815); obj34.Steps = list47; reference35 = obj34; - ref QuestSequence reference36 = ref span16[1]; + num++; + ref QuestSequence reference36 = ref span46[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -227927,8 +275790,9 @@ public static class AssemblyQuestLoader num2 = 2; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span17 = CollectionsMarshal.AsSpan(list48); - span17[0] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) { StopDistance = 7f, TargetTerritoryId = (ushort)815, @@ -227939,63 +275803,87 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - span17[1] = new QuestStep(EInteractionType.Interact, 1030391u, new Vector3(579.9801f, -46.38523f, -684.90125f), 815); + index2++; + span48[index2] = new QuestStep(EInteractionType.Interact, 1030391u, new Vector3(579.9801f, -46.38523f, -684.90125f), 815); obj35.Steps = list48; reference36 = obj35; - ref QuestSequence reference37 = ref span16[2]; + num++; + ref QuestSequence reference37 = ref span46[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span18 = CollectionsMarshal.AsSpan(list49); - ref QuestStep reference38 = ref span18[0]; + index2 = 3; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref QuestStep reference38 = ref span49[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2010010u, new Vector3(651.8806f, -54.062744f, -594.5068f), 815); - num3 = 6; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - Span span19 = CollectionsMarshal.AsSpan(list50); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list50 = new List(num4); + CollectionsMarshal.SetCount(list50, num4); + Span span50 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span50[num3] = null; + num3++; + span50[num3] = null; + num3++; + span50[num3] = null; + num3++; + span50[num3] = null; + num3++; + span50[num3] = null; + num3++; + span50[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list50; reference38 = questStep2; - ref QuestStep reference39 = ref span18[1]; + num2++; + ref QuestStep reference39 = ref span49[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2010011u, new Vector3(665.0338f, -58.9151f, -575.9518f), 815); num3 = 6; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - Span span20 = CollectionsMarshal.AsSpan(list51); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span51 = CollectionsMarshal.AsSpan(list51); + num4 = 0; + span51[num4] = null; + num4++; + span51[num4] = null; + num4++; + span51[num4] = null; + num4++; + span51[num4] = null; + num4++; + span51[num4] = null; + num4++; + span51[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list51; reference39 = questStep3; - ref QuestStep reference40 = ref span18[2]; + num2++; + ref QuestStep reference40 = ref span49[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2010012u, new Vector3(674.5249f, -60.654602f, -566.03345f), 815); - num3 = 6; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span21 = CollectionsMarshal.AsSpan(list52); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list52 = new List(num4); + CollectionsMarshal.SetCount(list52, num4); + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = null; + num3++; + span52[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list52; reference40 = questStep4; obj36.Steps = list49; reference37 = obj36; - ref QuestSequence reference41 = ref span16[3]; + num++; + ref QuestSequence reference41 = ref span46[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -228003,7 +275891,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030391u, new Vector3(579.9801f, -46.38523f, -684.90125f), 815); + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030391u, new Vector3(579.9801f, -46.38523f, -684.90125f), 815); obj37.Steps = list53; reference41 = obj37; questRoot6.QuestSequence = list46; @@ -228013,24 +275903,30 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "liza"; + Span span54 = CollectionsMarshal.AsSpan(list54); + index = 0; + span54[index] = "liza"; questRoot7.Author = list54; - num = 3; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span22 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference42 = ref span22[0]; + index = 3; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + Span span55 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference42 = ref span55[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031104u, new Vector3(41.397705f, 1.7633697f, 268.635f), 819); + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031104u, new Vector3(41.397705f, 1.7633697f, 268.635f), 819); obj38.Steps = list56; reference42 = obj38; - ref QuestSequence reference43 = ref span22[1]; + num++; + ref QuestSequence reference43 = ref span55[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -228038,22 +275934,27 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 2010499u, new Vector3(655.1765f, 57.724854f, -436.51483f), 813) + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.Interact, 2010499u, new Vector3(655.1765f, 57.724854f, -436.51483f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj39.Steps = list57; reference43 = obj39; - ref QuestSequence reference44 = ref span22[2]; + num++; + ref QuestSequence reference44 = ref span55[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031104u, new Vector3(41.397705f, 1.7633697f, 268.635f), 819) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031104u, new Vector3(41.397705f, 1.7633697f, 268.635f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -228071,13 +275972,16 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "liza"; + Span span59 = CollectionsMarshal.AsSpan(list59); + index = 0; + span59[index] = "liza"; questRoot8.Author = list59; - num = 4; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span23 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference45 = ref span23[0]; + index = 4; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + Span span60 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference45 = ref span60[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -228085,24 +275989,30 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027948u, new Vector3(40.42102f, 2.232896f, 261.49377f), 819); + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027948u, new Vector3(40.42102f, 2.232896f, 261.49377f), 819); obj41.Steps = list61; reference45 = obj41; - ref QuestSequence reference46 = ref span23[1]; + num++; + ref QuestSequence reference46 = ref span60[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1028280u, new Vector3(784.0542f, 21.414852f, -9.414856f), 813) + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.Interact, 1028280u, new Vector3(784.0542f, 21.414852f, -9.414856f), 813) { AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj42.Steps = list62; reference46 = obj42; - ref QuestSequence reference47 = ref span23[2]; + num++; + ref QuestSequence reference47 = ref span60[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -228110,43 +276020,58 @@ public static class AssemblyQuestLoader num2 = 12; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span24 = CollectionsMarshal.AsSpan(list63); - ref QuestStep reference48 = ref span24[0]; + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + ref QuestStep reference48 = ref span63[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1028279u, new Vector3(715.053f, 21.41357f, -26.93219f), 813); num3 = 6; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span25 = CollectionsMarshal.AsSpan(list64); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span64 = CollectionsMarshal.AsSpan(list64); + num4 = 0; + span64[num4] = null; + num4++; + span64[num4] = null; + num4++; + span64[num4] = null; + num4++; + span64[num4] = null; + num4++; + span64[num4] = null; + num4++; + span64[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list64; reference48 = questStep5; - ref QuestStep reference49 = ref span24[1]; + index2++; + ref QuestStep reference49 = ref span63[index2]; QuestStep obj44 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(703.03595f, 21.400166f, -29.025133f), 813) { Mount = true }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span26 = CollectionsMarshal.AsSpan(list65); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list65 = new List(num4); + CollectionsMarshal.SetCount(list65, num4); + Span span65 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list65; skipConditions.StepIf = skipStepConditions; obj44.SkipConditions = skipConditions; reference49 = obj44; - ref QuestStep reference50 = ref span24[2]; + index2++; + ref QuestStep reference50 = ref span63[index2]; QuestStep obj45 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(704.28827f, 24.192482f, -17.380848f), 813) { DisableNavmesh = true @@ -228156,121 +276081,168 @@ public static class AssemblyQuestLoader num3 = 6; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - Span span27 = CollectionsMarshal.AsSpan(list66); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span66 = CollectionsMarshal.AsSpan(list66); + num4 = 0; + span66[num4] = null; + num4++; + span66[num4] = null; + num4++; + span66[num4] = null; + num4++; + span66[num4] = null; + num4++; + span66[num4] = null; + num4++; + span66[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list66; skipConditions2.StepIf = skipStepConditions2; obj45.SkipConditions = skipConditions2; reference50 = obj45; - ref QuestStep reference51 = ref span24[3]; + index2++; + ref QuestStep reference51 = ref span63[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1027339u, new Vector3(709.6819f, 24.19248f, 1.8157349f), 813); - num3 = 6; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - Span span28 = CollectionsMarshal.AsSpan(list67); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list67 = new List(num4); + CollectionsMarshal.SetCount(list67, num4); + Span span67 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list67; reference51 = questStep6; - ref QuestStep reference52 = ref span24[4]; + index2++; + ref QuestStep reference52 = ref span63[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(702.572f, 21.395899f, -29.691013f), 813); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); num3 = 6; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - Span span29 = CollectionsMarshal.AsSpan(list68); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span68 = CollectionsMarshal.AsSpan(list68); + num4 = 0; + span68[num4] = null; + num4++; + span68[num4] = null; + num4++; + span68[num4] = null; + num4++; + span68[num4] = null; + num4++; + span68[num4] = null; + num4++; + span68[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list68; skipConditions3.StepIf = skipStepConditions3; questStep7.SkipConditions = skipConditions3; reference52 = questStep7; - ref QuestStep reference53 = ref span24[5]; + index2++; + ref QuestStep reference53 = ref span63[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(681.9016f, 32.510292f, -62.020554f), 813); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - Span span30 = CollectionsMarshal.AsSpan(list69); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list69 = new List(num4); + CollectionsMarshal.SetCount(list69, num4); + Span span69 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span69[num3] = null; + num3++; + span69[num3] = null; + num3++; + span69[num3] = null; + num3++; + span69[num3] = null; + num3++; + span69[num3] = null; + num3++; + span69[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list69; skipConditions4.StepIf = skipStepConditions4; questStep8.SkipConditions = skipConditions4; reference53 = questStep8; - ref QuestStep reference54 = ref span24[6]; + index2++; + ref QuestStep reference54 = ref span63[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(700.8876f, 21.146883f, -86.96297f), 813); SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); num3 = 6; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span31 = CollectionsMarshal.AsSpan(list70); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span70 = CollectionsMarshal.AsSpan(list70); + num4 = 0; + span70[num4] = null; + num4++; + span70[num4] = null; + num4++; + span70[num4] = null; + num4++; + span70[num4] = null; + num4++; + span70[num4] = null; + num4++; + span70[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list70; skipConditions5.StepIf = skipStepConditions5; questStep9.SkipConditions = skipConditions5; reference54 = questStep9; - ref QuestStep reference55 = ref span24[7]; + index2++; + ref QuestStep reference55 = ref span63[index2]; QuestStep obj46 = new QuestStep(EInteractionType.Interact, 1027420u, new Vector3(702.38794f, 21.798542f, -81.34589f), 813) { StopDistance = 7f }; - num3 = 6; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - Span span32 = CollectionsMarshal.AsSpan(list71); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list71 = new List(num4); + CollectionsMarshal.SetCount(list71, num4); + Span span71 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj46.CompletionQuestVariablesFlags = list71; reference55 = obj46; - span24[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(735.5528f, 21.146883f, -88.66971f), 813) + index2++; + span63[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(735.5528f, 21.146883f, -88.66971f), 813) { DisableNavmesh = true }; - span24[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(781.0609f, 23.037855f, -51.803383f), 813); - span24[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(805.13293f, 23.037834f, -45.432808f), 813); - span24[11] = new QuestStep(EInteractionType.Interact, 1027341u, new Vector3(805.35596f, 30.86825f, 7.9804688f), 813); + index2++; + span63[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(781.0609f, 23.037855f, -51.803383f), 813); + index2++; + span63[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(805.13293f, 23.037834f, -45.432808f), 813); + index2++; + span63[index2] = new QuestStep(EInteractionType.Interact, 1027341u, new Vector3(805.35596f, 30.86825f, 7.9804688f), 813); obj43.Steps = list63; reference47 = obj43; - ref QuestSequence reference56 = ref span23[3]; + num++; + ref QuestSequence reference56 = ref span60[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span33 = CollectionsMarshal.AsSpan(list72); - span33[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(794.2938f, 33.028008f, 6.1403913f), 813) + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(794.2938f, 33.028008f, 6.1403913f), 813) { JumpDestination = new JumpDestination { @@ -228278,7 +276250,8 @@ public static class AssemblyQuestLoader StopDistance = 0.25f } }; - span33[1] = new QuestStep(EInteractionType.CompleteQuest, 1028280u, new Vector3(784.0542f, 21.414852f, -9.414856f), 813); + num2++; + span72[num2] = new QuestStep(EInteractionType.CompleteQuest, 1028280u, new Vector3(784.0542f, 21.414852f, -9.414856f), 813); obj47.Steps = list72; reference56 = obj47; questRoot8.QuestSequence = list60; @@ -228288,13 +276261,16 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "liza"; + Span span73 = CollectionsMarshal.AsSpan(list73); + index = 0; + span73[index] = "liza"; questRoot9.Author = list73; - num = 3; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span34 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference57 = ref span34[0]; + index = 3; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + Span span74 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference57 = ref span74[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -228302,19 +276278,23 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813); + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813); obj48.Steps = list75; reference57 = obj48; - ref QuestSequence reference58 = ref span34[1]; + num++; + ref QuestSequence reference58 = ref span74[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span35 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference59 = ref span35[0]; + index2 = 6; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + ref QuestStep reference59 = ref span76[num2]; QuestStep obj50 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-724.9727f, 54.379677f, -289.8897f), 813) { Comment = "Tower Bottom" @@ -228324,18 +276304,25 @@ public static class AssemblyQuestLoader num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - Span span36 = CollectionsMarshal.AsSpan(list77); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span77 = CollectionsMarshal.AsSpan(list77); + num4 = 0; + span77[num4] = null; + num4++; + span77[num4] = null; + num4++; + span77[num4] = null; + num4++; + span77[num4] = null; + num4++; + span77[num4] = null; + num4++; + span77[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list77; skipConditions6.StepIf = skipStepConditions6; obj50.SkipConditions = skipConditions6; reference59 = obj50; - ref QuestStep reference60 = ref span35[1]; + num2++; + ref QuestStep reference60 = ref span76[num2]; QuestStep obj51 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-757.78326f, 97.68395f, -372.66458f), 813) { DisableNavmesh = true, @@ -228343,21 +276330,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span37 = CollectionsMarshal.AsSpan(list78); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list78 = new List(num4); + CollectionsMarshal.SetCount(list78, num4); + Span span78 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list78; skipConditions7.StepIf = skipStepConditions7; obj51.SkipConditions = skipConditions7; reference60 = obj51; - ref QuestStep reference61 = ref span35[2]; + num2++; + ref QuestStep reference61 = ref span76[num2]; QuestStep obj52 = new QuestStep(EInteractionType.UseItem, 2010618u, new Vector3(-792.1111f, 115.15979f, -346.4256f), 813) { ItemId = 2002831u @@ -228365,33 +276359,47 @@ public static class AssemblyQuestLoader num3 = 6; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - Span span38 = CollectionsMarshal.AsSpan(list79); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span79 = CollectionsMarshal.AsSpan(list79); + num4 = 0; + span79[num4] = null; + num4++; + span79[num4] = null; + num4++; + span79[num4] = null; + num4++; + span79[num4] = null; + num4++; + span79[num4] = null; + num4++; + span79[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj52.CompletionQuestVariablesFlags = list79; reference61 = obj52; - ref QuestStep reference62 = ref span35[3]; + num2++; + ref QuestStep reference62 = ref span76[num2]; QuestStep obj53 = new QuestStep(EInteractionType.UseItem, 2010619u, new Vector3(-798.27576f, 115.15979f, -320.05798f), 813) { ItemId = 2002831u }; - num3 = 6; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span39 = CollectionsMarshal.AsSpan(list80); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list80 = new List(num4); + CollectionsMarshal.SetCount(list80, num4); + Span span80 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span80[num3] = null; + num3++; + span80[num3] = null; + num3++; + span80[num3] = null; + num3++; + span80[num3] = null; + num3++; + span80[num3] = null; + num3++; + span80[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj53.CompletionQuestVariablesFlags = list80; reference62 = obj53; - ref QuestStep reference63 = ref span35[4]; + num2++; + ref QuestStep reference63 = ref span76[num2]; QuestStep obj54 = new QuestStep(EInteractionType.UseItem, 2010613u, new Vector3(-794.73566f, 115.15979f, -310.32275f), 813) { ItemId = 2002831u @@ -228399,35 +276407,49 @@ public static class AssemblyQuestLoader num3 = 6; List list81 = new List(num3); CollectionsMarshal.SetCount(list81, num3); - Span span40 = CollectionsMarshal.AsSpan(list81); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span81 = CollectionsMarshal.AsSpan(list81); + num4 = 0; + span81[num4] = null; + num4++; + span81[num4] = null; + num4++; + span81[num4] = null; + num4++; + span81[num4] = null; + num4++; + span81[num4] = null; + num4++; + span81[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj54.CompletionQuestVariablesFlags = list81; reference63 = obj54; - ref QuestStep reference64 = ref span35[5]; + num2++; + ref QuestStep reference64 = ref span76[num2]; QuestStep obj55 = new QuestStep(EInteractionType.UseItem, 2010620u, new Vector3(-789.05927f, 146.77649f, -344.1673f), 813) { ItemId = 2002831u }; - num3 = 6; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - Span span41 = CollectionsMarshal.AsSpan(list82); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list82 = new List(num4); + CollectionsMarshal.SetCount(list82, num4); + Span span82 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span82[num3] = null; + num3++; + span82[num3] = null; + num3++; + span82[num3] = null; + num3++; + span82[num3] = null; + num3++; + span82[num3] = null; + num3++; + span82[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj55.CompletionQuestVariablesFlags = list82; reference64 = obj55; obj49.Steps = list76; reference58 = obj49; - ref QuestSequence reference65 = ref span34[2]; + num++; + ref QuestSequence reference65 = ref span74[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue @@ -228435,7 +276457,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813) + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813) { AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; @@ -228448,24 +276472,30 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "liza"; + Span span84 = CollectionsMarshal.AsSpan(list84); + index = 0; + span84[index] = "liza"; questRoot10.Author = list84; - num = 5; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span42 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference66 = ref span42[0]; + index = 5; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference66 = ref span85[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031212u, new Vector3(-673.0907f, 51.157936f, -219.50104f), 813); + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031212u, new Vector3(-673.0907f, 51.157936f, -219.50104f), 813); obj57.Steps = list86; reference66 = obj57; - ref QuestSequence reference67 = ref span42[1]; + num++; + ref QuestSequence reference67 = ref span85[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 @@ -228473,21 +276503,27 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1031214u, new Vector3(-425.2232f, 7.8791666f, -120.83624f), 813); + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.Interact, 1031214u, new Vector3(-425.2232f, 7.8791666f, -120.83624f), 813); obj58.Steps = list87; reference67 = obj58; - ref QuestSequence reference68 = ref span42[2]; + num++; + ref QuestSequence reference68 = ref span85[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1031216u, new Vector3(-460.44104f, 0.94062716f, 79.39258f), 813); + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Interact, 1031216u, new Vector3(-460.44104f, 0.94062716f, 79.39258f), 813); obj59.Steps = list88; reference68 = obj59; - ref QuestSequence reference69 = ref span42[3]; + num++; + ref QuestSequence reference69 = ref span85[num]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -228495,21 +276531,26 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.UseItem, 1031213u, new Vector3(-465.1103f, 1.231928f, 77.927734f), 813) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.UseItem, 1031213u, new Vector3(-465.1103f, 1.231928f, 77.927734f), 813) { ItemId = 2002832u }; obj60.Steps = list89; reference69 = obj60; - ref QuestSequence reference70 = ref span42[4]; + num++; + ref QuestSequence reference70 = ref span85[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031212u, new Vector3(-673.0907f, 51.157936f, -219.50104f), 813) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031212u, new Vector3(-673.0907f, 51.157936f, -219.50104f), 813) { AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; @@ -228522,13 +276563,16 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "liza"; + Span span91 = CollectionsMarshal.AsSpan(list91); + index = 0; + span91[index] = "liza"; questRoot11.Author = list91; - num = 4; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span43 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference71 = ref span43[0]; + index = 4; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + Span span92 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference71 = ref span92[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -228536,23 +276580,28 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027419u, new Vector3(-700.7401f, 61.993748f, -353.62787f), 813); + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027419u, new Vector3(-700.7401f, 61.993748f, -353.62787f), 813); obj62.Steps = list93; reference71 = obj62; - ref QuestSequence reference72 = ref span43[1]; + num++; + ref QuestSequence reference72 = ref span92[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span44 = CollectionsMarshal.AsSpan(list94); - span44[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010031u, new Vector3(-149.82837f, 15.27417f, -102.49487f), 813) + index2 = 2; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010031u, new Vector3(-149.82837f, 15.27417f, -102.49487f), 813) { AetherCurrentId = 2818230u }; - ref QuestStep reference73 = ref span44[1]; + num2++; + ref QuestStep reference73 = ref span94[num2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1027353u, new Vector3(-146.31879f, 28.47206f, -128.83197f), 813) { Mount = true @@ -228560,7 +276609,9 @@ public static class AssemblyQuestLoader num3 = 1; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice + Span span95 = CollectionsMarshal.AsSpan(list95); + num4 = 0; + span95[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZC003_03386_Q1_000_000"), @@ -228570,7 +276621,8 @@ public static class AssemblyQuestLoader reference73 = obj64; obj63.Steps = list94; reference72 = obj63; - ref QuestSequence reference74 = ref span43[2]; + num++; + ref QuestSequence reference74 = ref span92[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -228578,79 +276630,107 @@ public static class AssemblyQuestLoader num2 = 6; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span45 = CollectionsMarshal.AsSpan(list96); - span45[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.60991f, 28.47209f, -130.60031f), 813) + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.60991f, 28.47209f, -130.60031f), 813) { Mount = true }; - span45[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.76884f, 32.30582f, -122.91172f), 813) + index2++; + span96[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.76884f, 32.30582f, -122.91172f), 813) { DisableNavmesh = true }; - ref QuestStep reference75 = ref span45[2]; + index2++; + ref QuestStep reference75 = ref span96[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1028317u, new Vector3(-157.64093f, 49.13476f, -137.3465f), 813); - num3 = 6; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - Span span46 = CollectionsMarshal.AsSpan(list97); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list97 = new List(num4); + CollectionsMarshal.SetCount(list97, num4); + Span span97 = CollectionsMarshal.AsSpan(list97); + num3 = 0; + span97[num3] = null; + num3++; + span97[num3] = null; + num3++; + span97[num3] = null; + num3++; + span97[num3] = null; + num3++; + span97[num3] = null; + num3++; + span97[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list97; reference75 = questStep10; - span45[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-156.64954f, 5.779213f, -158.39209f), 813) + index2++; + span96[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-156.64954f, 5.779213f, -158.39209f), 813) { DisableNavmesh = true, Mount = true }; - ref QuestStep reference76 = ref span45[4]; + index2++; + ref QuestStep reference76 = ref span96[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1027368u, new Vector3(-120.65314f, 5.761645f, -159.77728f), 813); num3 = 6; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - Span span47 = CollectionsMarshal.AsSpan(list98); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span98 = CollectionsMarshal.AsSpan(list98); + num4 = 0; + span98[num4] = null; + num4++; + span98[num4] = null; + num4++; + span98[num4] = null; + num4++; + span98[num4] = null; + num4++; + span98[num4] = null; + num4++; + span98[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list98; reference76 = questStep11; - ref QuestStep reference77 = ref span45[5]; + index2++; + ref QuestStep reference77 = ref span96[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1031559u, new Vector3(-194.17108f, 5.761844f, -153.79572f), 813); - num3 = 6; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span48 = CollectionsMarshal.AsSpan(list99); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list99 = new List(num4); + CollectionsMarshal.SetCount(list99, num4); + Span span99 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list99; reference77 = questStep12; obj65.Steps = list96; reference74 = obj65; - ref QuestSequence reference78 = ref span43[3]; + num++; + ref QuestSequence reference78 = ref span92[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span49 = CollectionsMarshal.AsSpan(list100); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.97934f, 14.623874f, -136.3065f), 813); - span49[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.54897f, 14.623859f, -121.3416f), 813) + index2 = 3; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.97934f, 14.623874f, -136.3065f), 813); + num2++; + span100[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.54897f, 14.623859f, -121.3416f), 813) { DisableNavmesh = true }; - span49[2] = new QuestStep(EInteractionType.CompleteQuest, 1027353u, new Vector3(-146.31879f, 28.47206f, -128.83197f), 813); + num2++; + span100[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027353u, new Vector3(-146.31879f, 28.47206f, -128.83197f), 813); obj66.Steps = list100; reference78 = obj66; questRoot11.QuestSequence = list92; @@ -228660,13 +276740,16 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "liza"; + Span span101 = CollectionsMarshal.AsSpan(list101); + index = 0; + span101[index] = "liza"; questRoot12.Author = list101; - num = 4; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span50 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference79 = ref span50[0]; + index = 4; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + Span span102 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference79 = ref span102[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -228674,21 +276757,27 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030266u, new Vector3(-367.66614f, 66.863594f, 557.1526f), 816); + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span103[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030266u, new Vector3(-367.66614f, 66.863594f, 557.1526f), 816); obj67.Steps = list103; reference79 = obj67; - ref QuestSequence reference80 = ref span50[1]; + num++; + ref QuestSequence reference80 = ref span102[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1030267u, new Vector3(-161.30316f, 34.21811f, 607.38525f), 816); + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.Interact, 1030267u, new Vector3(-161.30316f, 34.21811f, 607.38525f), 816); obj68.Steps = list104; reference80 = obj68; - ref QuestSequence reference81 = ref span50[2]; + num++; + ref QuestSequence reference81 = ref span102[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -228696,7 +276785,9 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Say, 2009997u, new Vector3(-40.116028f, 24.063354f, 739.25366f), 816) + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.Say, 2009997u, new Vector3(-40.116028f, 24.063354f, 739.25366f), 816) { ChatMessage = new ChatMessage { @@ -228705,15 +276796,18 @@ public static class AssemblyQuestLoader }; obj69.Steps = list105; reference81 = obj69; - ref QuestSequence reference82 = ref span50[3]; + num++; + ref QuestSequence reference82 = ref span102[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030266u, new Vector3(-367.66614f, 66.863594f, 557.1526f), 816) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030266u, new Vector3(-367.66614f, 66.863594f, 557.1526f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; @@ -228726,13 +276820,16 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + Span span107 = CollectionsMarshal.AsSpan(list107); + index = 0; + span107[index] = "liza"; questRoot13.Author = list107; - num = 5; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span51 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference83 = ref span51[0]; + index = 5; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + Span span108 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference83 = ref span108[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -228740,78 +276837,111 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); obj71.Steps = list109; reference83 = obj71; - ref QuestSequence reference84 = ref span51[1]; + num++; + ref QuestSequence reference84 = ref span108[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span52 = CollectionsMarshal.AsSpan(list110); - span52[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(-469.05124f, -0.60001665f, -194.937f), 816); - ref QuestStep reference85 = ref span52[1]; + index2 = 5; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span110[num2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-469.05124f, -0.60001665f, -194.937f), 816); + num2++; + ref QuestStep reference85 = ref span110[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2010160u, new Vector3(-456.80933f, -41.153625f, -232.01343f), 816); num3 = 6; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - Span span53 = CollectionsMarshal.AsSpan(list111); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span111 = CollectionsMarshal.AsSpan(list111); + num4 = 0; + span111[num4] = null; + num4++; + span111[num4] = null; + num4++; + span111[num4] = null; + num4++; + span111[num4] = null; + num4++; + span111[num4] = null; + num4++; + span111[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list111; reference85 = questStep13; - ref QuestStep reference86 = ref span52[2]; + num2++; + ref QuestStep reference86 = ref span110[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2010161u, new Vector3(-341.02393f, -34.62274f, -211.4748f), 816); - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span54 = CollectionsMarshal.AsSpan(list112); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list112 = new List(num4); + CollectionsMarshal.SetCount(list112, num4); + Span span112 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list112; reference86 = questStep14; - ref QuestStep reference87 = ref span52[3]; + num2++; + ref QuestStep reference87 = ref span110[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2010159u, new Vector3(-341.78687f, -56.992493f, -159.96033f), 816); num3 = 6; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - Span span55 = CollectionsMarshal.AsSpan(list113); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span113 = CollectionsMarshal.AsSpan(list113); + num4 = 0; + span113[num4] = null; + num4++; + span113[num4] = null; + num4++; + span113[num4] = null; + num4++; + span113[num4] = null; + num4++; + span113[num4] = null; + num4++; + span113[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list113; reference87 = questStep15; - ref QuestStep reference88 = ref span52[4]; + num2++; + ref QuestStep reference88 = ref span110[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2010158u, new Vector3(-347.43274f, -48.264343f, -120.3479f), 816); - num3 = 6; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span56 = CollectionsMarshal.AsSpan(list114); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list114 = new List(num4); + CollectionsMarshal.SetCount(list114, num4); + Span span114 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list114; reference88 = questStep16; obj72.Steps = list110; reference84 = obj72; - ref QuestSequence reference89 = ref span51[2]; + num++; + ref QuestSequence reference89 = ref span108[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 @@ -228819,29 +276949,34 @@ public static class AssemblyQuestLoader num2 = 3; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span57 = CollectionsMarshal.AsSpan(list115); - span57[0] = new QuestStep(EInteractionType.WalkTo, 2010158u, new Vector3(-347.43274f, 0f, -120.3479f), 816) + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.WalkTo, 2010158u, new Vector3(-347.43274f, 0f, -120.3479f), 816) { DisableNavmesh = true, Mount = true }; - span57[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-438.7658f, 0.09470785f, -86.849434f), 816) + index2++; + span115[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-438.7658f, 0.09470785f, -86.849434f), 816) { DisableNavmesh = true }; - span57[2] = new QuestStep(EInteractionType.Interact, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); + index2++; + span115[index2] = new QuestStep(EInteractionType.Interact, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); obj73.Steps = list115; reference89 = obj73; - ref QuestSequence reference90 = ref span51[3]; + num++; + ref QuestSequence reference90 = ref span108[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - Span span58 = CollectionsMarshal.AsSpan(list116); - ref QuestStep reference91 = ref span58[0]; + index2 = 3; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + ref QuestStep reference91 = ref span116[num2]; QuestStep obj75 = new QuestStep(EInteractionType.UseItem, 2010163u, new Vector3(-659.9985f, 38.864624f, -227.25269f), 816) { ItemId = 2002637u @@ -228849,33 +276984,47 @@ public static class AssemblyQuestLoader num3 = 6; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - Span span59 = CollectionsMarshal.AsSpan(list117); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span117 = CollectionsMarshal.AsSpan(list117); + num4 = 0; + span117[num4] = null; + num4++; + span117[num4] = null; + num4++; + span117[num4] = null; + num4++; + span117[num4] = null; + num4++; + span117[num4] = null; + num4++; + span117[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj75.CompletionQuestVariablesFlags = list117; reference91 = obj75; - ref QuestStep reference92 = ref span58[1]; + num2++; + ref QuestStep reference92 = ref span116[num2]; QuestStep obj76 = new QuestStep(EInteractionType.UseItem, 2010164u, new Vector3(-664.02686f, 40.66516f, -225.08588f), 816) { ItemId = 2002637u }; - num3 = 6; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - Span span60 = CollectionsMarshal.AsSpan(list118); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list118 = new List(num4); + CollectionsMarshal.SetCount(list118, num4); + Span span118 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj76.CompletionQuestVariablesFlags = list118; reference92 = obj76; - ref QuestStep reference93 = ref span58[2]; + num2++; + ref QuestStep reference93 = ref span116[num2]; QuestStep obj77 = new QuestStep(EInteractionType.UseItem, 2010162u, new Vector3(-667.6585f, 42.74048f, -228.62598f), 816) { ItemId = 2002637u @@ -228883,18 +277032,25 @@ public static class AssemblyQuestLoader num3 = 6; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - Span span61 = CollectionsMarshal.AsSpan(list119); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span119 = CollectionsMarshal.AsSpan(list119); + num4 = 0; + span119[num4] = null; + num4++; + span119[num4] = null; + num4++; + span119[num4] = null; + num4++; + span119[num4] = null; + num4++; + span119[num4] = null; + num4++; + span119[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj77.CompletionQuestVariablesFlags = list119; reference93 = obj77; obj74.Steps = list116; reference90 = obj74; - ref QuestSequence reference94 = ref span51[4]; + num++; + ref QuestSequence reference94 = ref span108[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -228902,7 +277058,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); obj78.Steps = list120; reference94 = obj78; questRoot13.QuestSequence = list108; @@ -228916,13 +277074,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -228930,63 +277091,88 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2010362u, new Vector3(-622.4308f, 37.369263f, -232.3797f), 816); int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span5 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span4[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2010363u, new Vector3(-621.8815f, 37.338745f, -234.33282f), 816); - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list6; reference4 = questStep2; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span4[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2010364u, new Vector3(-627.7409f, 37.094604f, -245.65503f), 816); num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list7; reference5 = questStep3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -228994,24 +277180,30 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1030839u, new Vector3(-628.1377f, 35.861557f, -238.20862f), 816); + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.Interact, 1030839u, new Vector3(-628.1377f, 35.861557f, -238.20862f), 816); obj3.Steps = list8; reference6 = obj3; - ref QuestSequence reference7 = ref span[3]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.Interact, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj4.Steps = list9; reference7 = obj4; - ref QuestSequence reference8 = ref span[4]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -229019,7 +277211,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816); + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816); obj5.Steps = list10; reference8 = obj5; questRoot.QuestSequence = list2; @@ -229029,24 +277223,30 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "liza"; + Span span11 = CollectionsMarshal.AsSpan(list11); + index = 0; + span11[index] = "liza"; questRoot2.Author = list11; - num = 5; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span6 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference9 = ref span6[0]; + index = 5; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + Span span12 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference9 = ref span12[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027695u, new Vector3(441.64185f, 89.80711f, -653.43713f), 816); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027695u, new Vector3(441.64185f, 89.80711f, -653.43713f), 816); obj6.Steps = list13; reference9 = obj6; - ref QuestSequence reference10 = ref span6[1]; + num++; + ref QuestSequence reference10 = ref span12[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -229054,21 +277254,27 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 2010481u, new Vector3(238.7273f, 72.95337f, -723.72015f), 816); + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.Interact, 2010481u, new Vector3(238.7273f, 72.95337f, -723.72015f), 816); obj7.Steps = list14; reference10 = obj7; - ref QuestSequence reference11 = ref span6[2]; + num++; + ref QuestSequence reference11 = ref span12[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 2010482u, new Vector3(156.63379f, 55.588623f, -629.8467f), 816); + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.Interact, 2010482u, new Vector3(156.63379f, 55.588623f, -629.8467f), 816); obj8.Steps = list15; reference11 = obj8; - ref QuestSequence reference12 = ref span6[3]; + num++; + ref QuestSequence reference12 = ref span12[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 @@ -229076,23 +277282,30 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 2010483u, new Vector3(34.1344f, 39.902344f, -622.18665f), 816); + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.Interact, 2010483u, new Vector3(34.1344f, 39.902344f, -622.18665f), 816); obj9.Steps = list16; reference12 = obj9; - ref QuestSequence reference13 = ref span6[4]; + num++; + ref QuestSequence reference13 = ref span12[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list17)[0]; + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + ref QuestStep reference14 = ref span17[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.CompleteQuest, 1031025u, new Vector3(-79.75891f, 37.968338f, -531.8532f), 816); - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new DialogueChoice + num4 = 1; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + Span span18 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span18[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZD101_03427_Q1_000_000"), @@ -229109,13 +277322,16 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "liza"; + Span span19 = CollectionsMarshal.AsSpan(list19); + index = 0; + span19[index] = "liza"; questRoot3.Author = list19; - num = 4; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span7 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference15 = ref span7[0]; + index = 4; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + Span span20 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference15 = ref span20[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -229123,18 +277339,23 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029023u, new Vector3(-131.36493f, -16.477911f, 316.3042f), 817); + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span21[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029023u, new Vector3(-131.36493f, -16.477911f, 316.3042f), 817); obj11.Steps = list21; reference15 = obj11; - ref QuestSequence reference16 = ref span7[1]; + num++; + ref QuestSequence reference16 = ref span20[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Say, 1029024u, new Vector3(-301.5335f, 8.681433f, 711.2992f), 817) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.Say, 1029024u, new Vector3(-301.5335f, 8.681433f, 711.2992f), 817) { ChatMessage = new ChatMessage { @@ -229143,7 +277364,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list22; reference16 = obj12; - ref QuestSequence reference17 = ref span7[2]; + num++; + ref QuestSequence reference17 = ref span20[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -229151,18 +277373,23 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 2009776u, new Vector3(-375.38727f, 10.0251465f, 451.65173f), 817); + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.Interact, 2009776u, new Vector3(-375.38727f, 10.0251465f, 451.65173f), 817); obj13.Steps = list23; reference17 = obj13; - ref QuestSequence reference18 = ref span7[3]; + num++; + ref QuestSequence reference18 = ref span20[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029024u, new Vector3(-301.5335f, 8.681433f, 711.2992f), 817); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029024u, new Vector3(-301.5335f, 8.681433f, 711.2992f), 817); obj14.Steps = list24; reference18 = obj14; questRoot3.QuestSequence = list20; @@ -229176,13 +277403,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -229190,63 +277420,88 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1031383u, new Vector3(569.51245f, 27.331062f, 143.69421f), 817); int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span5 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span4[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1031381u, new Vector3(558.64795f, 27.378386f, 152.42236f), 817); - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list6; reference4 = questStep2; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span4[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1031382u, new Vector3(575.1887f, 27.872107f, 161.39453f), 817); num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list7; reference5 = questStep3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -229254,7 +277509,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817) + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; @@ -229267,24 +277524,30 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "liza"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "liza"; questRoot2.Author = list9; - num = 5; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span6[0]; + index = 5; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span10[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817); obj4.Steps = list11; reference7 = obj4; - ref QuestSequence reference8 = ref span6[1]; + num++; + ref QuestSequence reference8 = ref span10[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -229292,34 +277555,42 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817); + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817); obj5.Steps = list12; reference8 = obj5; - ref QuestSequence reference9 = ref span6[2]; + num++; + ref QuestSequence reference9 = ref span10[num]; QuestSequence obj6 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - ref QuestStep reference10 = ref CollectionsMarshal.AsSpan(list13)[0]; + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + ref QuestStep reference10 = ref span13[num2]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, null, new Vector3(168.35954f, -20f, -483.02176f), 817) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - Span span7 = CollectionsMarshal.AsSpan(list14); - span7[0] = 11163u; - span7[1] = 11164u; + num4 = 2; + List list14 = new List(num4); + CollectionsMarshal.SetCount(list14, num4); + Span span14 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span14[num3] = 11163u; + num3++; + span14[num3] = 11164u; obj7.KillEnemyDataIds = list14; reference10 = obj7; obj6.Steps = list13; reference9 = obj6; - ref QuestSequence reference11 = ref span6[3]; + num++; + ref QuestSequence reference11 = ref span10[num]; QuestSequence obj8 = new QuestSequence { Sequence = 3 @@ -229327,21 +277598,26 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) { StopDistance = 7f }; obj8.Steps = list15; reference11 = obj8; - ref QuestSequence reference12 = ref span6[4]; + num++; + ref QuestSequence reference12 = ref span10[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; @@ -229354,13 +277630,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "liza"; questRoot3.Author = list17; - num = 3; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span8 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span8[0]; + index = 3; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span18[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -229368,19 +277647,23 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817); + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817); obj10.Steps = list19; reference13 = obj10; - ref QuestSequence reference14 = ref span8[1]; + num++; + ref QuestSequence reference14 = ref span18[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span9 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference15 = ref span9[0]; + index2 = 4; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span20[num2]; QuestStep obj12 = new QuestStep(EInteractionType.Interact, 1031012u, new Vector3(395.01025f, 20.422523f, -211.81049f), 817) { Fly = true @@ -229388,64 +277671,92 @@ public static class AssemblyQuestLoader num3 = 6; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span10 = CollectionsMarshal.AsSpan(list21); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span21 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span21[num4] = null; + num4++; + span21[num4] = null; + num4++; + span21[num4] = null; + num4++; + span21[num4] = null; + num4++; + span21[num4] = null; + num4++; + span21[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj12.CompletionQuestVariablesFlags = list21; reference15 = obj12; - ref QuestStep reference16 = ref span9[1]; + num2++; + ref QuestStep reference16 = ref span20[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(432.72134f, 34.13806f, -146.49078f), 817); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span11 = CollectionsMarshal.AsSpan(list22); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list22; skipConditions.StepIf = skipStepConditions; questStep4.SkipConditions = skipConditions; reference16 = questStep4; - ref QuestStep reference17 = ref span9[2]; + num2++; + ref QuestStep reference17 = ref span20[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1031150u, new Vector3(433.85962f, 34.138065f, -145.37274f), 817); num3 = 6; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - Span span12 = CollectionsMarshal.AsSpan(list23); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span23 = CollectionsMarshal.AsSpan(list23); + num4 = 0; + span23[num4] = null; + num4++; + span23[num4] = null; + num4++; + span23[num4] = null; + num4++; + span23[num4] = null; + num4++; + span23[num4] = null; + num4++; + span23[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list23; reference17 = questStep5; - ref QuestStep reference18 = ref span9[3]; + num2++; + ref QuestStep reference18 = ref span20[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1031151u, new Vector3(401.20544f, 33.63778f, -104.32593f), 817); - num3 = 6; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - Span span13 = CollectionsMarshal.AsSpan(list24); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list24 = new List(num4); + CollectionsMarshal.SetCount(list24, num4); + Span span24 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span24[num3] = null; + num3++; + span24[num3] = null; + num3++; + span24[num3] = null; + num3++; + span24[num3] = null; + num3++; + span24[num3] = null; + num3++; + span24[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list24; reference18 = questStep6; obj11.Steps = list20; reference14 = obj11; - ref QuestSequence reference19 = ref span8[2]; + num++; + ref QuestSequence reference19 = ref span18[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -229453,7 +277764,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, NextQuestId = new QuestId(3480) @@ -229467,24 +277780,30 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "liza"; + Span span26 = CollectionsMarshal.AsSpan(list26); + index = 0; + span26[index] = "liza"; questRoot4.Author = list26; - num = 10; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span14 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span14[0]; + index = 10; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + Span span27 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span27[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817); + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817); obj14.Steps = list28; reference20 = obj14; - ref QuestSequence reference21 = ref span14[1]; + num++; + ref QuestSequence reference21 = ref span27[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -229492,21 +277811,26 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1031007u, new Vector3(566.27747f, 26.783415f, 133.77576f), 817) + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.Interact, 1031007u, new Vector3(566.27747f, 26.783415f, 133.77576f), 817) { Fly = true }; obj15.Steps = list29; reference21 = obj15; - ref QuestSequence reference22 = ref span14[2]; + num++; + ref QuestSequence reference22 = ref span27[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list30)[0]; + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + ref QuestStep reference23 = ref span30[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(591.2435f, 22.702421f, 85.20056f), 817) { Fly = true, @@ -229515,29 +277839,38 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - ref ComplexCombatData reference24 = ref CollectionsMarshal.AsSpan(list31)[0]; + Span span31 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + ref ComplexCombatData reference24 = ref span31[num4]; ComplexCombatData obj18 = new ComplexCombatData { DataId = 10285u, MinimumKillCount = 3u }; - int num4 = 6; - List list32 = new List(num4); - CollectionsMarshal.SetCount(list32, num4); - Span span15 = CollectionsMarshal.AsSpan(list32); - span15[0] = null; - span15[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = null; + int num5 = 6; + List list32 = new List(num5); + CollectionsMarshal.SetCount(list32, num5); + Span span32 = CollectionsMarshal.AsSpan(list32); + int num6 = 0; + span32[num6] = null; + num6++; + span32[num6] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num6++; + span32[num6] = null; + num6++; + span32[num6] = null; + num6++; + span32[num6] = null; + num6++; + span32[num6] = null; obj18.CompletionQuestVariablesFlags = list32; reference24 = obj18; obj17.ComplexCombatData = list31; reference23 = obj17; obj16.Steps = list30; reference22 = obj16; - ref QuestSequence reference25 = ref span14[3]; + num++; + ref QuestSequence reference25 = ref span27[num]; QuestSequence obj19 = new QuestSequence { Sequence = 3 @@ -229545,27 +277878,33 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1031007u, new Vector3(566.27747f, 26.783415f, 133.77576f), 817) + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.Interact, 1031007u, new Vector3(566.27747f, 26.783415f, 133.77576f), 817) { Fly = true }; obj19.Steps = list33; reference25 = obj19; - ref QuestSequence reference26 = ref span14[4]; + num++; + ref QuestSequence reference26 = ref span27[num]; QuestSequence obj20 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1031008u, new Vector3(269.97778f, 13.099541f, 134.59973f), 817) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.Interact, 1031008u, new Vector3(269.97778f, 13.099541f, 134.59973f), 817) { Fly = true }; obj20.Steps = list34; reference26 = obj20; - ref QuestSequence reference27 = ref span14[5]; + num++; + ref QuestSequence reference27 = ref span27[num]; QuestSequence obj21 = new QuestSequence { Sequence = 5 @@ -229573,25 +277912,33 @@ public static class AssemblyQuestLoader num2 = 3; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span16 = CollectionsMarshal.AsSpan(list35); - ref QuestStep reference28 = ref span16[0]; + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + ref QuestStep reference28 = ref span35[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 2010451u, new Vector3(265.03394f, 11.306824f, 73.899414f), 817) { Fly = true }; - num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span17 = CollectionsMarshal.AsSpan(list36); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list36 = new List(num4); + CollectionsMarshal.SetCount(list36, num4); + Span span36 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj22.CompletionQuestVariablesFlags = list36; reference28 = obj22; - ref QuestStep reference29 = ref span16[1]; + index2++; + ref QuestStep reference29 = ref span35[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 2010450u, new Vector3(267.20068f, 11.184814f, 30.502686f), 817) { StopDistance = 0.5f, @@ -229600,50 +277947,67 @@ public static class AssemblyQuestLoader num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span18 = CollectionsMarshal.AsSpan(list37); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span37 = CollectionsMarshal.AsSpan(list37); + num4 = 0; + span37[num4] = null; + num4++; + span37[num4] = null; + num4++; + span37[num4] = null; + num4++; + span37[num4] = null; + num4++; + span37[num4] = null; + num4++; + span37[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj23.CompletionQuestVariablesFlags = list37; reference29 = obj23; - ref QuestStep reference30 = ref span16[2]; + index2++; + ref QuestStep reference30 = ref span35[index2]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 2010449u, new Vector3(242.14539f, 21.86615f, -20.004639f), 817) { StopDistance = 0.5f, Fly = true }; - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span19 = CollectionsMarshal.AsSpan(list38); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list38 = new List(num4); + CollectionsMarshal.SetCount(list38, num4); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj24.CompletionQuestVariablesFlags = list38; reference30 = obj24; obj21.Steps = list35; reference27 = obj21; - ref QuestSequence reference31 = ref span14[6]; + num++; + ref QuestSequence reference31 = ref span27[num]; QuestSequence obj25 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1031008u, new Vector3(269.97778f, 13.099541f, 134.59973f), 817) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.Interact, 1031008u, new Vector3(269.97778f, 13.099541f, 134.59973f), 817) { Fly = true }; obj25.Steps = list39; reference31 = obj25; - ref QuestSequence reference32 = ref span14[7]; + num++; + ref QuestSequence reference32 = ref span27[num]; QuestSequence obj26 = new QuestSequence { Sequence = 7 @@ -229651,7 +278015,9 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - ref QuestStep reference33 = ref CollectionsMarshal.AsSpan(list40)[0]; + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + ref QuestStep reference33 = ref span40[index2]; QuestStep obj27 = new QuestStep(EInteractionType.Combat, null, new Vector3(441.3478f, 11.8605385f, 172.98285f), 817) { StopDistance = 0.5f, @@ -229660,23 +278026,29 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = 11165u; + Span span41 = CollectionsMarshal.AsSpan(list41); + num4 = 0; + span41[num4] = 11165u; obj27.KillEnemyDataIds = list41; reference33 = obj27; obj26.Steps = list40; reference32 = obj26; - ref QuestSequence reference34 = ref span14[8]; + num++; + ref QuestSequence reference34 = ref span27[num]; QuestSequence obj28 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1031010u, new Vector3(441.062f, 11.948165f, 173.87659f), 817); + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.Interact, 1031010u, new Vector3(441.062f, 11.948165f, 173.87659f), 817); obj28.Steps = list42; reference34 = obj28; - ref QuestSequence reference35 = ref span14[9]; + num++; + ref QuestSequence reference35 = ref span27[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -229684,7 +278056,9 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, NextQuestId = new QuestId(3481) @@ -229698,27 +278072,33 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + Span span44 = CollectionsMarshal.AsSpan(list44); + index = 0; + span44[index] = "liza"; questRoot5.Author = list44; - num = 5; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span20 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference36 = ref span20[0]; + index = 5; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + Span span45 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference36 = ref span45[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031006u, new Vector3(493.55298f, -6.5553393f, -226.30658f), 817) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031006u, new Vector3(493.55298f, -6.5553393f, -226.30658f), 817) { StopDistance = 7f }; obj30.Steps = list46; reference36 = obj30; - ref QuestSequence reference37 = ref span20[1]; + num++; + ref QuestSequence reference37 = ref span45[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -229726,35 +278106,43 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) { Fly = true }; obj31.Steps = list47; reference37 = obj31; - ref QuestSequence reference38 = ref span20[2]; + num++; + ref QuestSequence reference38 = ref span45[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list48)[0]; + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + ref QuestStep reference39 = ref span48[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, null, new Vector3(168.50095f, -20f, -481.85556f), 817) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = 11166u; + num4 = 1; + List list49 = new List(num4); + CollectionsMarshal.SetCount(list49, num4); + Span span49 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span49[num3] = 11166u; obj33.KillEnemyDataIds = list49; reference39 = obj33; obj32.Steps = list48; reference38 = obj32; - ref QuestSequence reference40 = ref span20[3]; + num++; + ref QuestSequence reference40 = ref span45[num]; QuestSequence obj34 = new QuestSequence { Sequence = 3 @@ -229762,21 +278150,26 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) { StopDistance = 5f }; obj34.Steps = list50; reference40 = obj34; - ref QuestSequence reference41 = ref span20[4]; + num++; + ref QuestSequence reference41 = ref span45[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, NextQuestId = new QuestId(3482) @@ -229790,13 +278183,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + Span span52 = CollectionsMarshal.AsSpan(list52); + index = 0; + span52[index] = "liza"; questRoot6.Author = list52; - num = 8; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span21 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference42 = ref span21[0]; + index = 8; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + Span span53 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference42 = ref span53[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -229804,27 +278200,33 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031152u, new Vector3(465.7511f, 18.97871f, -61.08191f), 817) + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031152u, new Vector3(465.7511f, 18.97871f, -61.08191f), 817) { Fly = true }; obj36.Steps = list54; reference42 = obj36; - ref QuestSequence reference43 = ref span21[1]; + num++; + ref QuestSequence reference43 = ref span53[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1031156u, new Vector3(160.14343f, -4.7555914f, 297.26086f), 817) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.Interact, 1031156u, new Vector3(160.14343f, -4.7555914f, 297.26086f), 817) { Fly = true }; obj37.Steps = list55; reference43 = obj37; - ref QuestSequence reference44 = ref span21[2]; + num++; + ref QuestSequence reference44 = ref span53[num]; QuestSequence obj38 = new QuestSequence { Sequence = 2 @@ -229832,7 +278234,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list56)[0]; + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + ref QuestStep reference45 = ref span56[index2]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, null, new Vector3(180.39362f, -26.65495f, 784.1922f), 817) { StopDistance = 0.5f, @@ -229841,26 +278245,32 @@ public static class AssemblyQuestLoader num3 = 1; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = 11167u; + Span span57 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span57[num4] = 11167u; obj39.KillEnemyDataIds = list57; reference45 = obj39; obj38.Steps = list56; reference44 = obj38; - ref QuestSequence reference46 = ref span21[3]; + num++; + ref QuestSequence reference46 = ref span53[num]; QuestSequence obj40 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1031160u, new Vector3(179.76648f, -26.785097f, 785.3054f), 817) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.Interact, 1031160u, new Vector3(179.76648f, -26.785097f, 785.3054f), 817) { StopDistance = 5f }; obj40.Steps = list58; reference46 = obj40; - ref QuestSequence reference47 = ref span21[4]; + num++; + ref QuestSequence reference47 = ref span53[num]; QuestSequence obj41 = new QuestSequence { Sequence = 4 @@ -229868,40 +278278,51 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj41.Steps = list59; reference47 = obj41; - ref QuestSequence reference48 = ref span21[5]; + num++; + ref QuestSequence reference48 = ref span53[num]; QuestSequence obj42 = new QuestSequence { Sequence = 5 }; - num2 = 4; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - Span span22 = CollectionsMarshal.AsSpan(list60); - ref QuestStep reference49 = ref span22[0]; + index2 = 4; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + ref QuestStep reference49 = ref span60[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Interact, 2010458u, new Vector3(101.15198f, -18.783936f, -672.2057f), 817) { Fly = true }; - num3 = 6; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span23 = CollectionsMarshal.AsSpan(list61); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list61 = new List(num4); + CollectionsMarshal.SetCount(list61, num4); + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj43.CompletionQuestVariablesFlags = list61; reference49 = obj43; - ref QuestStep reference50 = ref span22[1]; + num2++; + ref QuestStep reference50 = ref span60[num2]; QuestStep obj44 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(216.41074f, 11.20001f, -712.12494f), 817) { Fly = true @@ -229911,48 +278332,69 @@ public static class AssemblyQuestLoader num3 = 6; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - Span span24 = CollectionsMarshal.AsSpan(list62); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span62 = CollectionsMarshal.AsSpan(list62); + num4 = 0; + span62[num4] = null; + num4++; + span62[num4] = null; + num4++; + span62[num4] = null; + num4++; + span62[num4] = null; + num4++; + span62[num4] = null; + num4++; + span62[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list62; skipConditions2.StepIf = skipStepConditions2; obj44.SkipConditions = skipConditions2; reference50 = obj44; - ref QuestStep reference51 = ref span22[2]; + num2++; + ref QuestStep reference51 = ref span60[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2010457u, new Vector3(221.30151f, 11.184814f, -721.24817f), 817); - num3 = 6; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - Span span25 = CollectionsMarshal.AsSpan(list63); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list63 = new List(num4); + CollectionsMarshal.SetCount(list63, num4); + Span span63 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list63; reference51 = questStep7; - ref QuestStep reference52 = ref span22[3]; + num2++; + ref QuestStep reference52 = ref span60[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2010456u, new Vector3(229.11414f, 12.802246f, -706.8437f), 817); num3 = 6; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span26 = CollectionsMarshal.AsSpan(list64); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span64 = CollectionsMarshal.AsSpan(list64); + num4 = 0; + span64[num4] = null; + num4++; + span64[num4] = null; + num4++; + span64[num4] = null; + num4++; + span64[num4] = null; + num4++; + span64[num4] = null; + num4++; + span64[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list64; reference52 = questStep8; obj42.Steps = list60; reference48 = obj42; - ref QuestSequence reference53 = ref span21[6]; + num++; + ref QuestSequence reference53 = ref span53[num]; QuestSequence obj45 = new QuestSequence { Sequence = 6 @@ -229960,21 +278402,26 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1031164u, new Vector3(169.05469f, -19.903002f, -530.2052f), 817) + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.Interact, 1031164u, new Vector3(169.05469f, -19.903002f, -530.2052f), 817) { Fly = true }; obj45.Steps = list65; reference53 = obj45; - ref QuestSequence reference54 = ref span21[7]; + num++; + ref QuestSequence reference54 = ref span53[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow @@ -229992,13 +278439,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -230006,18 +278456,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030979u, new Vector3(-424.61285f, 31.900826f, -226.64227f), 815); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030979u, new Vector3(-424.61285f, 31.900826f, -226.64227f), 815); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, null, new Vector3(-51.720833f, -17.25763f, 37.377193f), 815) { StopDistance = 1f, @@ -230026,12 +278481,15 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 11103u; + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = 11103u; obj3.KillEnemyDataIds = list5; reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -230039,35 +278497,43 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1030980u, new Vector3(-53.75763f, -17.25763f, 35.416138f), 815) + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.Interact, 1030980u, new Vector3(-53.75763f, -17.25763f, 35.416138f), 815) { StopDistance = 5f }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list7)[0]; + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + ref QuestStep reference6 = ref span7[num2]; QuestStep obj6 = new QuestStep(EInteractionType.Combat, null, new Vector3(56.450626f, -30.337545f, 103.22127f), 815) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = 11103u; + index3 = 1; + List list8 = new List(index3); + CollectionsMarshal.SetCount(list8, index3); + Span span8 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + span8[num3] = 11103u; obj6.KillEnemyDataIds = list8; reference6 = obj6; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference7 = ref span[4]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 4 @@ -230075,21 +278541,26 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1030981u, new Vector3(56.443115f, -30.173006f, 101.76245f), 815) + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.Interact, 1030981u, new Vector3(56.443115f, -30.173006f, 101.76245f), 815) { StopDistance = 5f }; obj7.Steps = list9; reference7 = obj7; - ref QuestSequence reference8 = ref span[5]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030982u, new Vector3(13.961914f, -47.887844f, 169.78711f), 815); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030982u, new Vector3(13.961914f, -47.887844f, 169.78711f), 815); obj8.Steps = list10; reference8 = obj8; questRoot.QuestSequence = list2; @@ -230099,13 +278570,16 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "liza"; + Span span11 = CollectionsMarshal.AsSpan(list11); + index = 0; + span11[index] = "liza"; questRoot2.Author = list11; - num = 3; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span2 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference9 = ref span2[0]; + index = 3; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + Span span12 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference9 = ref span12[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -230113,21 +278587,27 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027927u, new Vector3(-476.95123f, 47.78906f, -200.61041f), 815); + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027927u, new Vector3(-476.95123f, 47.78906f, -200.61041f), 815); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span2[1]; + num++; + ref QuestSequence reference10 = ref span12[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1030759u, new Vector3(-558.9227f, 52.408985f, -188.79993f), 815); + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.Interact, 1030759u, new Vector3(-558.9227f, 52.408985f, -188.79993f), 815); obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[2]; + num++; + ref QuestSequence reference11 = ref span12[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -230135,12 +278615,14 @@ public static class AssemblyQuestLoader num2 = 2; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span3 = CollectionsMarshal.AsSpan(list15); - span3[0] = new QuestStep(EInteractionType.AcceptQuest, 1030979u, new Vector3(-424.61285f, 31.900826f, -226.64227f), 815) + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030979u, new Vector3(-424.61285f, 31.900826f, -226.64227f), 815) { PickUpQuestId = new QuestId(3503) }; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1030807u, new Vector3(-336.6903f, 19.24816f, 75.913574f), 815); + index2++; + span15[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030807u, new Vector3(-336.6903f, 19.24816f, 75.913574f), 815); obj11.Steps = list15; reference11 = obj11; questRoot2.QuestSequence = list12; @@ -230150,24 +278632,30 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + Span span16 = CollectionsMarshal.AsSpan(list16); + index = 0; + span16[index] = "liza"; questRoot3.Author = list16; - num = 4; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span4 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span4[0]; + index = 4; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + Span span17 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span17[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030455u, new Vector3(54.09314f, 83.001076f, -74.540344f), 820); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030455u, new Vector3(54.09314f, 83.001076f, -74.540344f), 820); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span4[1]; + num++; + ref QuestSequence reference13 = ref span17[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -230175,7 +278663,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1030456u, new Vector3(63.279175f, -4.0096626f, 145.28113f), 820) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.Interact, 1030456u, new Vector3(63.279175f, -4.0096626f, 145.28113f), 820) { AethernetShortcut = new AethernetShortcut { @@ -230185,15 +278675,18 @@ public static class AssemblyQuestLoader }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span4[2]; + num++; + ref QuestSequence reference14 = ref span17[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1030455u, new Vector3(54.09314f, 83.001076f, -74.540344f), 820) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.Interact, 1030455u, new Vector3(54.09314f, 83.001076f, -74.540344f), 820) { AethernetShortcut = new AethernetShortcut { @@ -230203,7 +278696,8 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span4[3]; + num++; + ref QuestSequence reference15 = ref span17[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -230211,7 +278705,9 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030457u, new Vector3(63.370728f, -4.158061f, 143.93835f), 820) + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span21[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030457u, new Vector3(63.370728f, -4.158061f, 143.93835f), 820) { AethernetShortcut = new AethernetShortcut { @@ -230229,24 +278725,30 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + Span span22 = CollectionsMarshal.AsSpan(list22); + index = 0; + span22[index] = "liza"; questRoot4.Author = list22; - num = 4; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span5 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference16 = ref span5[0]; + index = 4; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + Span span23 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference16 = ref span23[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030456u, new Vector3(63.279175f, -4.0096626f, 145.28113f), 820); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030456u, new Vector3(63.279175f, -4.0096626f, 145.28113f), 820); obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference17 = ref span5[1]; + num++; + ref QuestSequence reference17 = ref span23[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -230254,7 +278756,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list25)[0]; + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + ref QuestStep reference18 = ref span25[index2]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(383.55106f, 4.5417395f, 602.9981f), 814) { StopDistance = 0.5f, @@ -230265,26 +278769,32 @@ public static class AssemblyQuestLoader num3 = 1; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = 11087u; + Span span26 = CollectionsMarshal.AsSpan(list26); + index3 = 0; + span26[index3] = 11087u; obj18.KillEnemyDataIds = list26; reference18 = obj18; obj17.Steps = list25; reference17 = obj17; - ref QuestSequence reference19 = ref span5[2]; + num++; + ref QuestSequence reference19 = ref span23[num]; QuestSequence obj19 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1030458u, new Vector3(379.84277f, 5.363723f, 600.3967f), 814) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.Interact, 1030458u, new Vector3(379.84277f, 5.363723f, 600.3967f), 814) { StopDistance = 7f }; obj19.Steps = list27; reference19 = obj19; - ref QuestSequence reference20 = ref span5[3]; + num++; + ref QuestSequence reference20 = ref span23[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -230292,7 +278802,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030463u, new Vector3(-14.847046f, -6.9869757f, -124.4068f), 820) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030463u, new Vector3(-14.847046f, -6.9869757f, -124.4068f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore, AethernetShortcut = new AethernetShortcut @@ -230310,24 +278822,30 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "liza"; + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + span29[index] = "liza"; questRoot5.Author = list29; - num = 3; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span6 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference21 = ref span6[0]; + index = 3; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + Span span30 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference21 = ref span30[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029983u, new Vector3(-56.565247f, -4.821f, -88.059875f), 820); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029983u, new Vector3(-56.565247f, -4.821f, -88.059875f), 820); obj21.Steps = list31; reference21 = obj21; - ref QuestSequence reference22 = ref span6[1]; + num++; + ref QuestSequence reference22 = ref span30[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 @@ -230335,39 +278853,54 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span7 = CollectionsMarshal.AsSpan(list32); - ref QuestStep reference23 = ref span7[0]; + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference23 = ref span32[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1027606u, new Vector3(-50.247986f, -4.820967f, -94.65173f), 820) { StopDistance = 7f }; - num3 = 6; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span8 = CollectionsMarshal.AsSpan(list33); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list33 = new List(index3); + CollectionsMarshal.SetCount(list33, index3); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj23.CompletionQuestVariablesFlags = list33; reference23 = obj23; - ref QuestStep reference24 = ref span7[1]; + index2++; + ref QuestStep reference24 = ref span32[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1029980u, new Vector3(-81.59003f, -0.80081946f, 40.878906f), 820); num3 = 6; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span9 = CollectionsMarshal.AsSpan(list34); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span34 = CollectionsMarshal.AsSpan(list34); + index3 = 0; + span34[index3] = null; + index3++; + span34[index3] = null; + index3++; + span34[index3] = null; + index3++; + span34[index3] = null; + index3++; + span34[index3] = null; + index3++; + span34[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list34; reference24 = questStep; - ref QuestStep reference25 = ref span7[2]; + index2++; + ref QuestStep reference25 = ref span32[index2]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1027604u, new Vector3(76.3103f, -8.115f, -46.219604f), 820) { AethernetShortcut = new AethernetShortcut @@ -230376,34 +278909,45 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreGloryGate } }; - num3 = 6; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - Span span10 = CollectionsMarshal.AsSpan(list35); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list35 = new List(index3); + CollectionsMarshal.SetCount(list35, index3); + Span span35 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj24.CompletionQuestVariablesFlags = list35; reference25 = obj24; obj22.Steps = list32; reference22 = obj22; - ref QuestSequence reference26 = ref span6[2]; + num++; + ref QuestSequence reference26 = ref span30[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list36)[0]; + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + ref QuestStep reference27 = ref span36[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.CompleteQuest, 1029983u, new Vector3(-56.565247f, -4.821f, -88.059875f), 820); num3 = 1; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = new DialogueChoice + Span span37 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span37[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZH008_03518_Q1_000_000"), @@ -230420,13 +278964,16 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "liza"; + Span span38 = CollectionsMarshal.AsSpan(list38); + index = 0; + span38[index] = "liza"; questRoot6.Author = list38; - num = 3; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span11 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference28 = ref span11[0]; + index = 3; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + Span span39 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference28 = ref span39[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -230434,19 +278981,23 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027550u, new Vector3(52.536743f, 82.8351f, 13.595764f), 820); + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027550u, new Vector3(52.536743f, 82.8351f, 13.595764f), 820); obj26.Steps = list40; reference28 = obj26; - ref QuestSequence reference29 = ref span11[1]; + num++; + ref QuestSequence reference29 = ref span39[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span12 = CollectionsMarshal.AsSpan(list41); - ref QuestStep reference30 = ref span12[0]; + index2 = 3; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + ref QuestStep reference30 = ref span41[num2]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 2010114u, new Vector3(81.19324f, -10.421997f, 48.8136f), 820) { AethernetShortcut = new AethernetShortcut @@ -230455,49 +279006,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreSoutheastDerelict } }; - num3 = 6; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span13 = CollectionsMarshal.AsSpan(list42); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list42 = new List(index3); + CollectionsMarshal.SetCount(list42, index3); + Span span42 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj28.CompletionQuestVariablesFlags = list42; reference30 = obj28; - ref QuestStep reference31 = ref span12[1]; + num2++; + ref QuestStep reference31 = ref span41[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2010116u, new Vector3(94.40759f, -8.377258f, -57.358704f), 820); num3 = 6; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - Span span14 = CollectionsMarshal.AsSpan(list43); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span43 = CollectionsMarshal.AsSpan(list43); + index3 = 0; + span43[index3] = null; + index3++; + span43[index3] = null; + index3++; + span43[index3] = null; + index3++; + span43[index3] = null; + index3++; + span43[index3] = null; + index3++; + span43[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list43; reference31 = questStep3; - ref QuestStep reference32 = ref span12[2]; + num2++; + ref QuestStep reference32 = ref span41[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2010115u, new Vector3(-30.167114f, -11.917358f, 106.43164f), 820); - num3 = 6; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span15 = CollectionsMarshal.AsSpan(list44); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list44 = new List(index3); + CollectionsMarshal.SetCount(list44, index3); + Span span44 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span44[num3] = null; + num3++; + span44[num3] = null; + num3++; + span44[num3] = null; + num3++; + span44[num3] = null; + num3++; + span44[num3] = null; + num3++; + span44[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list44; reference32 = questStep4; obj27.Steps = list41; reference29 = obj27; - ref QuestSequence reference33 = ref span11[2]; + num++; + ref QuestSequence reference33 = ref span39[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -230505,7 +279077,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027550u, new Vector3(52.536743f, 82.8351f, 13.595764f), 820) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027550u, new Vector3(52.536743f, 82.8351f, 13.595764f), 820) { AethernetShortcut = new AethernetShortcut { @@ -230522,24 +279096,30 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "liza"; + Span span46 = CollectionsMarshal.AsSpan(list46); + index = 0; + span46[index] = "liza"; questRoot7.Author = list46; - num = 3; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span16 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference34 = ref span16[0]; + index = 3; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + Span span47 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference34 = ref span47[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030465u, new Vector3(19.272095f, 36f, -4.409851f), 820); + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030465u, new Vector3(19.272095f, 36f, -4.409851f), 820); obj30.Steps = list48; reference34 = obj30; - ref QuestSequence reference35 = ref span16[1]; + num++; + ref QuestSequence reference35 = ref span47[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -230547,40 +279127,55 @@ public static class AssemblyQuestLoader num2 = 3; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span17 = CollectionsMarshal.AsSpan(list49); - ref QuestStep reference36 = ref span17[0]; + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + ref QuestStep reference36 = ref span49[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1027537u, new Vector3(-3.982666f, 23.1f, 27.145752f), 820); num3 = 6; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - Span span18 = CollectionsMarshal.AsSpan(list50); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span50 = CollectionsMarshal.AsSpan(list50); + index3 = 0; + span50[index3] = null; + index3++; + span50[index3] = null; + index3++; + span50[index3] = null; + index3++; + span50[index3] = null; + index3++; + span50[index3] = null; + index3++; + span50[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list50; reference36 = questStep5; - ref QuestStep reference37 = ref span17[1]; + index2++; + ref QuestStep reference37 = ref span49[index2]; QuestStep obj32 = new QuestStep(EInteractionType.Interact, 1027554u, new Vector3(27.54248f, 82.78693f, 32.303345f), 820) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Eulmore }; - num3 = 6; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - Span span19 = CollectionsMarshal.AsSpan(list51); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list51 = new List(index3); + CollectionsMarshal.SetCount(list51, index3); + Span span51 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span51[num3] = null; + num3++; + span51[num3] = null; + num3++; + span51[num3] = null; + num3++; + span51[num3] = null; + num3++; + span51[num3] = null; + num3++; + span51[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj32.CompletionQuestVariablesFlags = list51; reference37 = obj32; - ref QuestStep reference38 = ref span17[2]; + index2++; + ref QuestStep reference38 = ref span49[index2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1027593u, new Vector3(78.11096f, -10.682121f, 73.28906f), 820) { AethernetShortcut = new AethernetShortcut @@ -230592,31 +279187,42 @@ public static class AssemblyQuestLoader num3 = 6; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - Span span20 = CollectionsMarshal.AsSpan(list52); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span52 = CollectionsMarshal.AsSpan(list52); + index3 = 0; + span52[index3] = null; + index3++; + span52[index3] = null; + index3++; + span52[index3] = null; + index3++; + span52[index3] = null; + index3++; + span52[index3] = null; + index3++; + span52[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj33.CompletionQuestVariablesFlags = list52; reference38 = obj33; obj31.Steps = list49; reference35 = obj31; - ref QuestSequence reference39 = ref span16[2]; + num++; + ref QuestSequence reference39 = ref span47[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list53)[0]; + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + ref QuestStep reference40 = ref span53[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.CompleteQuest, 1030465u, new Vector3(19.272095f, 36f, -4.409851f), 820); - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new DialogueChoice + index3 = 1; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + Span span54 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span54[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZH010_03520_Q1_000_000"), @@ -230633,13 +279239,16 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; + Span span55 = CollectionsMarshal.AsSpan(list55); + index = 0; + span55[index] = "liza"; questRoot8.Author = list55; - num = 3; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span21 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference41 = ref span21[0]; + index = 3; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + Span span56 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference41 = ref span56[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -230647,18 +279256,23 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030467u, new Vector3(-4.348877f, 6f, -30.319702f), 820); + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030467u, new Vector3(-4.348877f, 6f, -30.319702f), 820); obj35.Steps = list57; reference41 = obj35; - ref QuestSequence reference42 = ref span21[1]; + num++; + ref QuestSequence reference42 = ref span56[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1030466u, new Vector3(40.05493f, -10.468191f, 73.258545f), 820) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.Interact, 1030466u, new Vector3(40.05493f, -10.468191f, 73.258545f), 820) { AethernetShortcut = new AethernetShortcut { @@ -230668,7 +279282,8 @@ public static class AssemblyQuestLoader }; obj36.Steps = list58; reference42 = obj36; - ref QuestSequence reference43 = ref span21[2]; + num++; + ref QuestSequence reference43 = ref span56[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -230676,7 +279291,9 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030467u, new Vector3(-4.348877f, 6f, -30.319702f), 820) + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030467u, new Vector3(-4.348877f, 6f, -30.319702f), 820) { AethernetShortcut = new AethernetShortcut { @@ -230693,24 +279310,30 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "liza"; + Span span60 = CollectionsMarshal.AsSpan(list60); + index = 0; + span60[index] = "liza"; questRoot9.Author = list60; - num = 3; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span22 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference44 = ref span22[0]; + index = 3; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference44 = ref span61[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027617u, new Vector3(45.944946f, -13.795549f, -118.0896f), 820); + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027617u, new Vector3(45.944946f, -13.795549f, -118.0896f), 820); obj38.Steps = list62; reference44 = obj38; - ref QuestSequence reference45 = ref span22[1]; + num++; + ref QuestSequence reference45 = ref span61[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -230718,50 +279341,72 @@ public static class AssemblyQuestLoader num2 = 4; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span23 = CollectionsMarshal.AsSpan(list63); - ref QuestStep reference46 = ref span23[0]; + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + ref QuestStep reference46 = ref span63[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1030471u, new Vector3(88.05969f, -7.2009244f, -73.71637f), 820); num3 = 6; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span24 = CollectionsMarshal.AsSpan(list64); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span64 = CollectionsMarshal.AsSpan(list64); + index3 = 0; + span64[index3] = null; + index3++; + span64[index3] = null; + index3++; + span64[index3] = null; + index3++; + span64[index3] = null; + index3++; + span64[index3] = null; + index3++; + span64[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list64; reference46 = questStep7; - ref QuestStep reference47 = ref span23[1]; + index2++; + ref QuestStep reference47 = ref span63[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1030470u, new Vector3(98.039185f, -17.955051f, -77.10382f), 820); - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span25 = CollectionsMarshal.AsSpan(list65); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list65 = new List(index3); + CollectionsMarshal.SetCount(list65, index3); + Span span65 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list65; reference47 = questStep8; - ref QuestStep reference48 = ref span23[2]; + index2++; + ref QuestStep reference48 = ref span63[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1030468u, new Vector3(39.53601f, -23.440458f, 102.4032f), 820); num3 = 6; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - Span span26 = CollectionsMarshal.AsSpan(list66); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span66 = CollectionsMarshal.AsSpan(list66); + index3 = 0; + span66[index3] = null; + index3++; + span66[index3] = null; + index3++; + span66[index3] = null; + index3++; + span66[index3] = null; + index3++; + span66[index3] = null; + index3++; + span66[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list66; reference48 = questStep9; - ref QuestStep reference49 = ref span23[3]; + index2++; + ref QuestStep reference49 = ref span63[index2]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 1030469u, new Vector3(-112.16907f, -14.506645f, -49.515564f), 820) { AethernetShortcut = new AethernetShortcut @@ -230770,29 +279415,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreNightsoilPots } }; - num3 = 6; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - Span span27 = CollectionsMarshal.AsSpan(list67); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list67 = new List(index3); + CollectionsMarshal.SetCount(list67, index3); + Span span67 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj40.CompletionQuestVariablesFlags = list67; reference49 = obj40; obj39.Steps = list63; reference45 = obj39; - ref QuestSequence reference50 = ref span22[2]; + num++; + ref QuestSequence reference50 = ref span61[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027617u, new Vector3(45.944946f, -13.795549f, -118.0896f), 820); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027617u, new Vector3(45.944946f, -13.795549f, -118.0896f), 820); obj41.Steps = list68; reference50 = obj41; questRoot9.QuestSequence = list61; @@ -230802,13 +279456,16 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "liza"; + Span span69 = CollectionsMarshal.AsSpan(list69); + index = 0; + span69[index] = "liza"; questRoot10.Author = list69; - num = 3; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span28 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference51 = ref span28[0]; + index = 3; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + Span span70 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference51 = ref span70[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -230816,19 +279473,23 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027595u, new Vector3(41.58081f, -7.639986f, -109.57507f), 820); + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027595u, new Vector3(41.58081f, -7.639986f, -109.57507f), 820); obj42.Steps = list71; reference51 = obj42; - ref QuestSequence reference52 = ref span28[1]; + num++; + ref QuestSequence reference52 = ref span70[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span29 = CollectionsMarshal.AsSpan(list72); - ref QuestStep reference53 = ref span29[0]; + index2 = 4; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + ref QuestStep reference53 = ref span72[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 2010119u, new Vector3(23.697266f, -23.361572f, 121.23291f), 820) { AethernetShortcut = new AethernetShortcut @@ -230840,60 +279501,88 @@ public static class AssemblyQuestLoader num3 = 6; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - Span span30 = CollectionsMarshal.AsSpan(list73); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span73 = CollectionsMarshal.AsSpan(list73); + index3 = 0; + span73[index3] = null; + index3++; + span73[index3] = null; + index3++; + span73[index3] = null; + index3++; + span73[index3] = null; + index3++; + span73[index3] = null; + index3++; + span73[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj44.CompletionQuestVariablesFlags = list73; reference53 = obj44; - ref QuestStep reference54 = ref span29[1]; + num2++; + ref QuestStep reference54 = ref span72[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2010117u, new Vector3(26.596436f, -21.957764f, 130.81555f), 820); - num3 = 6; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - Span span31 = CollectionsMarshal.AsSpan(list74); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list74 = new List(index3); + CollectionsMarshal.SetCount(list74, index3); + Span span74 = CollectionsMarshal.AsSpan(list74); + num3 = 0; + span74[num3] = null; + num3++; + span74[num3] = null; + num3++; + span74[num3] = null; + num3++; + span74[num3] = null; + num3++; + span74[num3] = null; + num3++; + span74[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list74; reference54 = questStep10; - ref QuestStep reference55 = ref span29[2]; + num2++; + ref QuestStep reference55 = ref span72[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2010118u, new Vector3(46.860474f, -15.884705f, 132.21936f), 820); num3 = 6; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - Span span32 = CollectionsMarshal.AsSpan(list75); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span75 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span75[index3] = null; + index3++; + span75[index3] = null; + index3++; + span75[index3] = null; + index3++; + span75[index3] = null; + index3++; + span75[index3] = null; + index3++; + span75[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list75; reference55 = questStep11; - ref QuestStep reference56 = ref span29[3]; + num2++; + ref QuestStep reference56 = ref span72[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2010120u, new Vector3(45.76172f, -8.773987f, 139.05542f), 820); - num3 = 6; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - Span span33 = CollectionsMarshal.AsSpan(list76); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + Span span76 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list76; reference56 = questStep12; obj43.Steps = list72; reference52 = obj43; - ref QuestSequence reference57 = ref span28[2]; + num++; + ref QuestSequence reference57 = ref span70[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -230901,7 +279590,9 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027595u, new Vector3(41.58081f, -7.639986f, -109.57507f), 820) + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027595u, new Vector3(41.58081f, -7.639986f, -109.57507f), 820) { AethernetShortcut = new AethernetShortcut { @@ -230918,24 +279609,30 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - CollectionsMarshal.AsSpan(list78)[0] = "liza"; + Span span78 = CollectionsMarshal.AsSpan(list78); + index = 0; + span78[index] = "liza"; questRoot11.Author = list78; - num = 3; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - Span span34 = CollectionsMarshal.AsSpan(list79); - ref QuestSequence reference58 = ref span34[0]; + index = 3; + List list79 = new List(index); + CollectionsMarshal.SetCount(list79, index); + Span span79 = CollectionsMarshal.AsSpan(list79); + num = 0; + ref QuestSequence reference58 = ref span79[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030472u, new Vector3(-3.55542f, 6.800003f, 47.501343f), 820); + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030472u, new Vector3(-3.55542f, 6.800003f, 47.501343f), 820); obj46.Steps = list80; reference58 = obj46; - ref QuestSequence reference59 = ref span34[1]; + num++; + ref QuestSequence reference59 = ref span79[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -230943,22 +279640,30 @@ public static class AssemblyQuestLoader num2 = 3; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span35 = CollectionsMarshal.AsSpan(list81); - ref QuestStep reference60 = ref span35[0]; + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + ref QuestStep reference60 = ref span81[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2010123u, new Vector3(-56.199036f, -5.2339478f, -28.122437f), 820); num3 = 6; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - Span span36 = CollectionsMarshal.AsSpan(list82); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span82 = CollectionsMarshal.AsSpan(list82); + index3 = 0; + span82[index3] = null; + index3++; + span82[index3] = null; + index3++; + span82[index3] = null; + index3++; + span82[index3] = null; + index3++; + span82[index3] = null; + index3++; + span82[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list82; reference60 = questStep13; - ref QuestStep reference61 = ref span35[1]; + index2++; + ref QuestStep reference61 = ref span81[index2]; QuestStep obj48 = new QuestStep(EInteractionType.Interact, 2010121u, new Vector3(-5.56958f, 82.90222f, -35.446716f), 820) { AethernetShortcut = new AethernetShortcut @@ -230967,43 +279672,59 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Eulmore } }; - num3 = 6; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - Span span37 = CollectionsMarshal.AsSpan(list83); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list83 = new List(index3); + CollectionsMarshal.SetCount(list83, index3); + Span span83 = CollectionsMarshal.AsSpan(list83); + num3 = 0; + span83[num3] = null; + num3++; + span83[num3] = null; + num3++; + span83[num3] = null; + num3++; + span83[num3] = null; + num3++; + span83[num3] = null; + num3++; + span83[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj48.CompletionQuestVariablesFlags = list83; reference61 = obj48; - ref QuestStep reference62 = ref span35[2]; + index2++; + ref QuestStep reference62 = ref span81[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2010122u, new Vector3(-14.114624f, 50.980347f, 33.920776f), 820); num3 = 6; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - Span span38 = CollectionsMarshal.AsSpan(list84); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span84 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span84[index3] = null; + index3++; + span84[index3] = null; + index3++; + span84[index3] = null; + index3++; + span84[index3] = null; + index3++; + span84[index3] = null; + index3++; + span84[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list84; reference62 = questStep14; obj47.Steps = list81; reference59 = obj47; - ref QuestSequence reference63 = ref span34[2]; + num++; + ref QuestSequence reference63 = ref span79[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030472u, new Vector3(-3.55542f, 6.800003f, 47.501343f), 820); + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span85[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030472u, new Vector3(-3.55542f, 6.800003f, 47.501343f), 820); obj49.Steps = list85; reference63 = obj49; questRoot11.QuestSequence = list79; @@ -231013,13 +279734,16 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; + Span span86 = CollectionsMarshal.AsSpan(list86); + index = 0; + span86[index] = "liza"; questRoot12.Author = list86; - num = 4; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span39 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference64 = ref span39[0]; + index = 4; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + Span span87 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference64 = ref span87[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -231027,21 +279751,27 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030419u, new Vector3(-506.6148f, 45.614502f, -194.50684f), 815); + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030419u, new Vector3(-506.6148f, 45.614502f, -194.50684f), 815); obj50.Steps = list88; reference64 = obj50; - ref QuestSequence reference65 = ref span39[1]; + num++; + ref QuestSequence reference65 = ref span87[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1030720u, new Vector3(-464.65253f, 45.508167f, -270.4662f), 815); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.Interact, 1030720u, new Vector3(-464.65253f, 45.508167f, -270.4662f), 815); obj51.Steps = list89; reference65 = obj51; - ref QuestSequence reference66 = ref span39[2]; + num++; + ref QuestSequence reference66 = ref span87[num]; QuestSequence obj52 = new QuestSequence { Sequence = 2 @@ -231049,29 +279779,36 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list90)[0]; + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + ref QuestStep reference67 = ref span90[index2]; QuestStep obj53 = new QuestStep(EInteractionType.Combat, null, new Vector3(-478.15445f, 10.344208f, 191.1135f), 815) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = 11106u; + index3 = 1; + List list91 = new List(index3); + CollectionsMarshal.SetCount(list91, index3); + Span span91 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + span91[num3] = 11106u; obj53.KillEnemyDataIds = list91; reference67 = obj53; obj52.Steps = list90; reference66 = obj52; - ref QuestSequence reference68 = ref span39[3]; + num++; + ref QuestSequence reference68 = ref span87[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030718u, new Vector3(-478.2025f, 10.549525f, 193.13342f), 815) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030718u, new Vector3(-478.2025f, 10.549525f, 193.13342f), 815) { StopDistance = 7f }; @@ -231084,13 +279821,16 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - CollectionsMarshal.AsSpan(list93)[0] = "liza"; + Span span93 = CollectionsMarshal.AsSpan(list93); + index = 0; + span93[index] = "liza"; questRoot13.Author = list93; - num = 4; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - Span span40 = CollectionsMarshal.AsSpan(list94); - ref QuestSequence reference69 = ref span40[0]; + index = 4; + List list94 = new List(index); + CollectionsMarshal.SetCount(list94, index); + Span span94 = CollectionsMarshal.AsSpan(list94); + num = 0; + ref QuestSequence reference69 = ref span94[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -231098,25 +279838,31 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030679u, new Vector3(64.07251f, 1.7078f, 231.40308f), 819); + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030679u, new Vector3(64.07251f, 1.7078f, 231.40308f), 819); obj55.Steps = list95; reference69 = obj55; - ref QuestSequence reference70 = ref span40[1]; + num++; + ref QuestSequence reference70 = ref span94[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1030689u, new Vector3(-657.5875f, 50.950245f, -217.76147f), 813) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.Interact, 1030689u, new Vector3(-657.5875f, 50.950245f, -217.76147f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; obj56.Steps = list96; reference70 = obj56; - ref QuestSequence reference71 = ref span40[2]; + num++; + ref QuestSequence reference71 = ref span94[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -231124,8 +279870,9 @@ public static class AssemblyQuestLoader num2 = 2; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span41 = CollectionsMarshal.AsSpan(list97); - ref QuestStep reference72 = ref span41[0]; + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + ref QuestStep reference72 = ref span97[index2]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1027411u, new Vector3(-771.1452f, 51.501152f, -212.32928f), 813) { Fly = true @@ -231133,43 +279880,59 @@ public static class AssemblyQuestLoader num3 = 6; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - Span span42 = CollectionsMarshal.AsSpan(list98); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span98 = CollectionsMarshal.AsSpan(list98); + index3 = 0; + span98[index3] = null; + index3++; + span98[index3] = null; + index3++; + span98[index3] = null; + index3++; + span98[index3] = null; + index3++; + span98[index3] = null; + index3++; + span98[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj58.CompletionQuestVariablesFlags = list98; reference72 = obj58; - ref QuestStep reference73 = ref span41[1]; + index2++; + ref QuestStep reference73 = ref span97[index2]; QuestStep obj59 = new QuestStep(EInteractionType.Interact, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813) { Fly = true }; - num3 = 6; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span43 = CollectionsMarshal.AsSpan(list99); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list99 = new List(index3); + CollectionsMarshal.SetCount(list99, index3); + Span span99 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = null; + num3++; + span99[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj59.CompletionQuestVariablesFlags = list99; reference73 = obj59; obj57.Steps = list97; reference71 = obj57; - ref QuestSequence reference74 = ref span40[3]; + num++; + ref QuestSequence reference74 = ref span94[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030689u, new Vector3(-657.5875f, 50.950245f, -217.76147f), 813) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030689u, new Vector3(-657.5875f, 50.950245f, -217.76147f), 813) { Fly = true, NextQuestId = new QuestId(3534) @@ -231183,13 +279946,16 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "liza"; + Span span101 = CollectionsMarshal.AsSpan(list101); + index = 0; + span101[index] = "liza"; questRoot14.Author = list101; - num = 4; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span44 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference75 = ref span44[0]; + index = 4; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + Span span102 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference75 = ref span102[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -231197,18 +279963,23 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030689u, new Vector3(-657.5875f, 50.950245f, -217.76147f), 813); + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span103[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030689u, new Vector3(-657.5875f, 50.950245f, -217.76147f), 813); obj61.Steps = list103; reference75 = obj61; - ref QuestSequence reference76 = ref span44[1]; + num++; + ref QuestSequence reference76 = ref span102[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - ref QuestStep reference77 = ref CollectionsMarshal.AsSpan(list104)[0]; + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + ref QuestStep reference77 = ref span104[num2]; QuestStep obj63 = new QuestStep(EInteractionType.Combat, null, new Vector3(-506.45068f, 3.7609627f, -19.921053f), 813) { StopDistance = 0.5f, @@ -231218,12 +279989,15 @@ public static class AssemblyQuestLoader num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = 11147u; + Span span105 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span105[index3] = 11147u; obj63.KillEnemyDataIds = list105; reference77 = obj63; obj62.Steps = list104; reference76 = obj62; - ref QuestSequence reference78 = ref span44[2]; + num++; + ref QuestSequence reference78 = ref span102[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -231231,15 +280005,19 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list106)[0]; + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + ref QuestStep reference79 = ref span106[index2]; QuestStep obj65 = new QuestStep(EInteractionType.Interact, 1030682u, new Vector3(-506.4317f, 3.7609625f, -22.01886f), 813) { StopDistance = 7f }; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new DialogueChoice + index3 = 1; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + Span span107 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span107[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZH302_03534_Q1_000_000"), @@ -231249,15 +280027,18 @@ public static class AssemblyQuestLoader reference79 = obj65; obj64.Steps = list106; reference78 = obj64; - ref QuestSequence reference80 = ref span44[3]; + num++; + ref QuestSequence reference80 = ref span102[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030681u, new Vector3(-641.1383f, 55.757515f, -141.92426f), 813) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030681u, new Vector3(-641.1383f, 55.757515f, -141.92426f), 813) { Fly = true, NextQuestId = new QuestId(3535) @@ -231271,13 +280052,16 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + Span span109 = CollectionsMarshal.AsSpan(list109); + index = 0; + span109[index] = "liza"; questRoot15.Author = list109; - num = 5; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span45 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference81 = ref span45[0]; + index = 5; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + Span span110 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference81 = ref span110[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -231285,24 +280069,30 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030681u, new Vector3(-641.1383f, 55.757515f, -141.92426f), 813); + Span span111 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span111[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030681u, new Vector3(-641.1383f, 55.757515f, -141.92426f), 813); obj67.Steps = list111; reference81 = obj67; - ref QuestSequence reference82 = ref span45[1]; + num++; + ref QuestSequence reference82 = ref span110[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1030683u, new Vector3(-689.6925f, 52.037113f, -168.5664f), 813) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.Interact, 1030683u, new Vector3(-689.6925f, 52.037113f, -168.5664f), 813) { Fly = true }; obj68.Steps = list112; reference82 = obj68; - ref QuestSequence reference83 = ref span45[2]; + num++; + ref QuestSequence reference83 = ref span110[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -231310,22 +280100,27 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1030706u, new Vector3(-375.32617f, 105.92186f, -618.92126f), 813) + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.Interact, 1030706u, new Vector3(-375.32617f, 105.92186f, -618.92126f), 813) { StopDistance = 2f, Fly = true }; obj69.Steps = list113; reference83 = obj69; - ref QuestSequence reference84 = ref span45[3]; + num++; + ref QuestSequence reference84 = ref span110[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - ref QuestStep reference85 = ref CollectionsMarshal.AsSpan(list114)[0]; + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + ref QuestStep reference85 = ref span114[num2]; QuestStep obj71 = new QuestStep(EInteractionType.Interact, 2010210u, new Vector3(-370.38226f, 103.37976f, -661.1887f), 813) { Fly = true @@ -231333,7 +280128,9 @@ public static class AssemblyQuestLoader num3 = 1; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = new DialogueChoice + Span span115 = CollectionsMarshal.AsSpan(list115); + index3 = 0; + span115[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKZH303_03535_Q3_000_000") @@ -231342,7 +280139,8 @@ public static class AssemblyQuestLoader reference85 = obj71; obj70.Steps = list114; reference84 = obj70; - ref QuestSequence reference86 = ref span45[4]; + num++; + ref QuestSequence reference86 = ref span110[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -231350,7 +280148,9 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030684u, new Vector3(-351.91882f, 100.1054f, -629.0227f), 813) + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030684u, new Vector3(-351.91882f, 100.1054f, -629.0227f), 813) { NextQuestId = new QuestId(3536) }; @@ -231363,24 +280163,30 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "liza"; + Span span117 = CollectionsMarshal.AsSpan(list117); + index = 0; + span117[index] = "liza"; questRoot16.Author = list117; - num = 6; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span46 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference87 = ref span46[0]; + index = 6; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + Span span118 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference87 = ref span118[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030684u, new Vector3(-351.91882f, 100.1054f, -629.0227f), 813); + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span119[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030684u, new Vector3(-351.91882f, 100.1054f, -629.0227f), 813); obj73.Steps = list119; reference87 = obj73; - ref QuestSequence reference88 = ref span46[1]; + num++; + ref QuestSequence reference88 = ref span118[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -231388,36 +280194,44 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1030685u, new Vector3(-443.68658f, 9.218739f, -150.53027f), 813) + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.Interact, 1030685u, new Vector3(-443.68658f, 9.218739f, -150.53027f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; obj74.Steps = list120; reference88 = obj74; - ref QuestSequence reference89 = ref span46[2]; + num++; + ref QuestSequence reference89 = ref span118[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - ref QuestStep reference90 = ref CollectionsMarshal.AsSpan(list121)[0]; + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + ref QuestStep reference90 = ref span121[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, 2010212u, new Vector3(-395.8648f, 6.210388f, -51.895935f), 813) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = 11148u; + index3 = 1; + List list122 = new List(index3); + CollectionsMarshal.SetCount(list122, index3); + Span span122 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + span122[num3] = 11148u; obj76.KillEnemyDataIds = list122; reference90 = obj76; obj75.Steps = list121; reference89 = obj75; - ref QuestSequence reference91 = ref span46[3]; + num++; + ref QuestSequence reference91 = ref span118[num]; QuestSequence obj77 = new QuestSequence { Sequence = 3 @@ -231425,28 +280239,34 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 2010213u, new Vector3(-298.11554f, 4.348816f, 16.189758f), 813) + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.Interact, 2010213u, new Vector3(-298.11554f, 4.348816f, 16.189758f), 813) { StopDistance = 0.5f, Fly = true }; obj77.Steps = list123; reference91 = obj77; - ref QuestSequence reference92 = ref span46[4]; + num++; + ref QuestSequence reference92 = ref span118[num]; QuestSequence obj78 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 2010510u, new Vector3(-239.9787f, 15.030029f, -196.73462f), 813) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.Interact, 2010510u, new Vector3(-239.9787f, 15.030029f, -196.73462f), 813) { Fly = true }; obj78.Steps = list124; reference92 = obj78; - ref QuestSequence reference93 = ref span46[5]; + num++; + ref QuestSequence reference93 = ref span118[num]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue @@ -231454,7 +280274,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030688u, new Vector3(-659.26605f, 51.002872f, -217.30377f), 813) + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030688u, new Vector3(-659.26605f, 51.002872f, -217.30377f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative @@ -231468,24 +280290,30 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "liza"; + Span span126 = CollectionsMarshal.AsSpan(list126); + index = 0; + span126[index] = "liza"; questRoot17.Author = list126; - num = 5; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span47 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference94 = ref span47[0]; + index = 5; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + Span span127 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference94 = ref span127[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027956u, new Vector3(-128.77094f, 354.35815f, -179.18677f), 814); + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027956u, new Vector3(-128.77094f, 354.35815f, -179.18677f), 814); obj80.Steps = list128; reference94 = obj80; - ref QuestSequence reference95 = ref span47[1]; + num++; + ref QuestSequence reference95 = ref span127[num]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -231493,30 +280321,37 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1030748u, new Vector3(-514.8852f, 334.116f, -9.262268f), 814); + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.Interact, 1030748u, new Vector3(-514.8852f, 334.116f, -9.262268f), 814); obj81.Steps = list129; reference95 = obj81; - ref QuestSequence reference96 = ref span47[2]; + num++; + ref QuestSequence reference96 = ref span127[num]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span48 = CollectionsMarshal.AsSpan(list130); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-515.5618f, 334.116f, -15.381194f), 814) + index2 = 3; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-515.5618f, 334.116f, -15.381194f), 814) { Mount = true }; - span48[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-518.69183f, 331.39224f, -23.225534f), 814) + num2++; + span130[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-518.69183f, 331.39224f, -23.225534f), 814) { DisableNavmesh = true }; - span48[2] = new QuestStep(EInteractionType.Interact, 1030749u, new Vector3(-504.5701f, 332.93307f, -112.077515f), 814); + num2++; + span130[num2] = new QuestStep(EInteractionType.Interact, 1030749u, new Vector3(-504.5701f, 332.93307f, -112.077515f), 814); obj82.Steps = list130; reference96 = obj82; - ref QuestSequence reference97 = ref span47[3]; + num++; + ref QuestSequence reference97 = ref span127[num]; QuestSequence obj83 = new QuestSequence { Sequence = 3 @@ -231524,7 +280359,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list131)[0]; + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + ref QuestStep reference98 = ref span131[index2]; QuestStep obj84 = new QuestStep(EInteractionType.Emote, 1030749u, new Vector3(-504.5701f, 332.93307f, -112.077515f), 814) { Emote = EEmote.Soothe @@ -231532,7 +280369,9 @@ public static class AssemblyQuestLoader num3 = 1; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = new DialogueChoice + Span span132 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span132[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI001_03537_Q1_000_000"), @@ -231542,15 +280381,18 @@ public static class AssemblyQuestLoader reference98 = obj84; obj83.Steps = list131; reference97 = obj83; - ref QuestSequence reference99 = ref span47[4]; + num++; + ref QuestSequence reference99 = ref span127[num]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027956u, new Vector3(-128.77094f, 354.35815f, -179.18677f), 814); + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027956u, new Vector3(-128.77094f, 354.35815f, -179.18677f), 814); obj85.Steps = list133; reference99 = obj85; questRoot17.QuestSequence = list127; @@ -231564,13 +280406,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -231578,12 +280423,16 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.AcceptQuest, 1030776u, new Vector3(-450.85834f, 417.1344f, -610.8644f), 814); int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI101_03556_Q1_000_000"), @@ -231593,18 +280442,22 @@ public static class AssemblyQuestLoader reference2 = questStep; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1030778u, new Vector3(-429.31256f, 417.29797f, -677.2107f), 814); + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span5[num2] = new QuestStep(EInteractionType.Interact, 1030778u, new Vector3(-429.31256f, 417.29797f, -677.2107f), 814); obj2.Steps = list5; reference3 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -231612,12 +280465,16 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + ref QuestStep reference5 = ref span6[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1030779u, new Vector3(-436.48438f, 417.21954f, -641.38245f), 814); - num3 = 1; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = new DialogueChoice + index3 = 1; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span7[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI101_03556_Q3_000_000"), @@ -231627,20 +280484,25 @@ public static class AssemblyQuestLoader reference5 = questStep2; obj3.Steps = list6; reference4 = obj3; - ref QuestSequence reference6 = ref span[3]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list8)[0]; + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference7 = ref span8[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1030780u, new Vector3(-493.2479f, 417.1531f, -610.9866f), 814); num3 = 1; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new DialogueChoice + Span span9 = CollectionsMarshal.AsSpan(list9); + index3 = 0; + span9[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI101_03556_Q4_000_000"), @@ -231650,7 +280512,8 @@ public static class AssemblyQuestLoader reference7 = questStep3; obj4.Steps = list8; reference6 = obj4; - ref QuestSequence reference8 = ref span[4]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -231658,7 +280521,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814); + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814); obj5.Steps = list10; reference8 = obj5; questRoot.QuestSequence = list2; @@ -231668,24 +280533,30 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "alydev"; + Span span11 = CollectionsMarshal.AsSpan(list11); + index = 0; + span11[index] = "alydev"; questRoot2.Author = list11; - num = 5; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span2 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference9 = ref span2[0]; + index = 5; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + Span span12 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference9 = ref span12[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814); obj6.Steps = list13; reference9 = obj6; - ref QuestSequence reference10 = ref span2[1]; + num++; + ref QuestSequence reference10 = ref span12[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -231693,27 +280564,33 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1030781u, new Vector3(-408.83502f, 417.21606f, -633.1731f), 814) + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.Interact, 1030781u, new Vector3(-408.83502f, 417.21606f, -633.1731f), 814) { Fly = true }; obj7.Steps = list14; reference10 = obj7; - ref QuestSequence reference11 = ref span2[2]; + num++; + ref QuestSequence reference11 = ref span12[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.UseItem, 2010336u, new Vector3(-407.1565f, 417.8683f, -633.2036f), 814) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.UseItem, 2010336u, new Vector3(-407.1565f, 417.8683f, -633.2036f), 814) { ItemId = 2002690u }; obj8.Steps = list15; reference11 = obj8; - ref QuestSequence reference12 = ref span2[3]; + num++; + ref QuestSequence reference12 = ref span12[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 @@ -231721,18 +280598,23 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1030781u, new Vector3(-408.83502f, 417.21606f, -633.1731f), 814); + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.Interact, 1030781u, new Vector3(-408.83502f, 417.21606f, -633.1731f), 814); obj9.Steps = list16; reference12 = obj9; - ref QuestSequence reference13 = ref span2[4]; + num++; + ref QuestSequence reference13 = ref span12[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814) { Fly = true, NextQuestId = new QuestId(3558) @@ -231746,13 +280628,16 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "alydev"; + Span span18 = CollectionsMarshal.AsSpan(list18); + index = 0; + span18[index] = "alydev"; questRoot3.Author = list18; - num = 5; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span3 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference14 = ref span3[0]; + index = 5; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + Span span19 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference14 = ref span19[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -231760,19 +280645,23 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + ref QuestStep reference15 = ref span20[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.AcceptQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814); - num3 = 2; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - Span span4 = CollectionsMarshal.AsSpan(list21); - span4[0] = new DialogueChoice + index3 = 2; + List list21 = new List(index3); + CollectionsMarshal.SetCount(list21, index3); + Span span21 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span21[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI103_03558_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKZI103_03558_A1_000_001") }; - span4[1] = new DialogueChoice + num3++; + span21[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI103_03558_Q2_000_000"), @@ -231782,21 +280671,25 @@ public static class AssemblyQuestLoader reference15 = questStep4; obj11.Steps = list20; reference14 = obj11; - ref QuestSequence reference16 = ref span3[1]; + num++; + ref QuestSequence reference16 = ref span19[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1030782u, new Vector3(-191.18036f, 362.9854f, -292.83594f), 814) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.Interact, 1030782u, new Vector3(-191.18036f, 362.9854f, -292.83594f), 814) { Fly = true }; obj12.Steps = list22; reference16 = obj12; - ref QuestSequence reference17 = ref span3[2]; + num++; + ref QuestSequence reference17 = ref span19[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -231804,7 +280697,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list23)[0]; + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + ref QuestStep reference18 = ref span23[index2]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, 1030784u, new Vector3(-407.8584f, 362.59058f, -289.5705f), 814) { Fly = true, @@ -231813,23 +280708,29 @@ public static class AssemblyQuestLoader num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = 11142u; + Span span24 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + span24[index3] = 11142u; obj14.KillEnemyDataIds = list24; reference18 = obj14; obj13.Steps = list23; reference17 = obj13; - ref QuestSequence reference19 = ref span3[3]; + num++; + ref QuestSequence reference19 = ref span19[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1030784u, new Vector3(-407.8584f, 362.59058f, -289.5705f), 814); + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.Interact, 1030784u, new Vector3(-407.8584f, 362.59058f, -289.5705f), 814); obj15.Steps = list25; reference19 = obj15; - ref QuestSequence reference20 = ref span3[4]; + num++; + ref QuestSequence reference20 = ref span19[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -231837,7 +280738,9 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030786u, new Vector3(-519.646f, 392.919f, -482.71918f), 814) + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030786u, new Vector3(-519.646f, 392.919f, -482.71918f), 814) { Fly = true, Emote = EEmote.Rally, @@ -231852,24 +280755,30 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "alydev"; + Span span27 = CollectionsMarshal.AsSpan(list27); + index = 0; + span27[index] = "alydev"; questRoot4.Author = list27; - num = 5; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span5 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference21 = ref span5[0]; + index = 5; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + Span span28 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference21 = ref span28[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030786u, new Vector3(-519.646f, 392.919f, -482.71918f), 814); + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030786u, new Vector3(-519.646f, 392.919f, -482.71918f), 814); obj17.Steps = list29; reference21 = obj17; - ref QuestSequence reference22 = ref span5[1]; + num++; + ref QuestSequence reference22 = ref span28[num]; QuestSequence obj18 = new QuestSequence { Sequence = 1 @@ -231877,24 +280786,30 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1030775u, new Vector3(-436.72852f, 417.2178f, -640.4364f), 814) + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new QuestStep(EInteractionType.Interact, 1030775u, new Vector3(-436.72852f, 417.2178f, -640.4364f), 814) { Fly = true }; obj18.Steps = list30; reference22 = obj18; - ref QuestSequence reference23 = ref span5[2]; + num++; + ref QuestSequence reference23 = ref span28[num]; QuestSequence obj19 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1030795u, new Vector3(-493.82776f, 417.15173f, -610.3761f), 814); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.Interact, 1030795u, new Vector3(-493.82776f, 417.15173f, -610.3761f), 814); obj19.Steps = list31; reference23 = obj19; - ref QuestSequence reference24 = ref span5[3]; + num++; + ref QuestSequence reference24 = ref span28[num]; QuestSequence obj20 = new QuestSequence { Sequence = 3 @@ -231902,18 +280817,23 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1030787u, new Vector3(-408.80444f, 417.2132f, -631.7388f), 814); + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.Interact, 1030787u, new Vector3(-408.80444f, 417.2132f, -631.7388f), 814); obj20.Steps = list32; reference24 = obj20; - ref QuestSequence reference25 = ref span5[4]; + num++; + ref QuestSequence reference25 = ref span28[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030776u, new Vector3(-450.85834f, 417.1344f, -610.8644f), 814) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030776u, new Vector3(-450.85834f, 417.1344f, -610.8644f), 814) { NextQuestId = new QuestId(3560) }; @@ -231926,13 +280846,16 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "alydev"; + Span span34 = CollectionsMarshal.AsSpan(list34); + index = 0; + span34[index] = "alydev"; questRoot5.Author = list34; - num = 8; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span6 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference26 = ref span6[0]; + index = 8; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + Span span35 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference26 = ref span35[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -231940,7 +280863,9 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814) + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, SkipConditions = new SkipConditions @@ -231958,15 +280883,18 @@ public static class AssemblyQuestLoader }; obj22.Steps = list36; reference26 = obj22; - ref QuestSequence reference27 = ref span6[1]; + num++; + ref QuestSequence reference27 = ref span35[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1030789u, new Vector3(-262.83667f, 21.717266f, 369.64978f), 814) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.Interact, 1030789u, new Vector3(-262.83667f, 21.717266f, 369.64978f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -231984,7 +280912,8 @@ public static class AssemblyQuestLoader }; obj23.Steps = list37; reference27 = obj23; - ref QuestSequence reference28 = ref span6[2]; + num++; + ref QuestSequence reference28 = ref span35[num]; QuestSequence obj24 = new QuestSequence { Sequence = 2 @@ -231992,7 +280921,9 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1030787u, new Vector3(-408.80444f, 417.2132f, -631.7388f), 814) + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.Interact, 1030787u, new Vector3(-408.80444f, 417.2132f, -631.7388f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, SkipConditions = new SkipConditions @@ -232010,21 +280941,25 @@ public static class AssemblyQuestLoader }; obj24.Steps = list38; reference28 = obj24; - ref QuestSequence reference29 = ref span6[3]; + num++; + ref QuestSequence reference29 = ref span35[num]; QuestSequence obj25 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1030791u, new Vector3(-165.27051f, 352.35822f, -206.16473f), 814) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.Interact, 1030791u, new Vector3(-165.27051f, 352.35822f, -206.16473f), 814) { Fly = true }; obj25.Steps = list39; reference29 = obj25; - ref QuestSequence reference30 = ref span6[4]; + num++; + ref QuestSequence reference30 = ref span35[num]; QuestSequence obj26 = new QuestSequence { Sequence = 4 @@ -232032,24 +280967,30 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 2010309u, new Vector3(-109.69714f, 353.50574f, -181.65869f), 814); + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = new QuestStep(EInteractionType.Interact, 2010309u, new Vector3(-109.69714f, 353.50574f, -181.65869f), 814); obj26.Steps = list40; reference30 = obj26; - ref QuestSequence reference31 = ref span6[5]; + num++; + ref QuestSequence reference31 = ref span35[num]; QuestSequence obj27 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1030803u, new Vector3(-149.46216f, 352.35822f, -199.29816f), 814) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.Interact, 1030803u, new Vector3(-149.46216f, 352.35822f, -199.29816f), 814) { Fly = true }; obj27.Steps = list41; reference31 = obj27; - ref QuestSequence reference32 = ref span6[6]; + num++; + ref QuestSequence reference32 = ref span35[num]; QuestSequence obj28 = new QuestSequence { Sequence = 6 @@ -232057,7 +280998,9 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1030789u, new Vector3(-262.83667f, 21.717266f, 369.64978f), 814) + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.Interact, 1030789u, new Vector3(-262.83667f, 21.717266f, 369.64978f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -232075,15 +281018,18 @@ public static class AssemblyQuestLoader }; obj28.Steps = list42; reference32 = obj28; - ref QuestSequence reference33 = ref span6[7]; + num++; + ref QuestSequence reference33 = ref span35[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030788u, new Vector3(-531.02924f, 415.2066f, -567.4983f), 814) + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030788u, new Vector3(-531.02924f, 415.2066f, -567.4983f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaTomra, @@ -232109,13 +281055,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + Span span44 = CollectionsMarshal.AsSpan(list44); + index = 0; + span44[index] = "liza"; questRoot6.Author = list44; - num = 3; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span7 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference34 = ref span7[0]; + index = 3; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + Span span45 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference34 = ref span45[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -232123,19 +281072,23 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028024u, new Vector3(78.96533f, 35.999687f, -153.27692f), 819); + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028024u, new Vector3(78.96533f, 35.999687f, -153.27692f), 819); obj30.Steps = list46; reference34 = obj30; - ref QuestSequence reference35 = ref span7[1]; + num++; + ref QuestSequence reference35 = ref span45[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span8 = CollectionsMarshal.AsSpan(list47); - ref QuestStep reference36 = ref span8[0]; + index2 = 3; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + ref QuestStep reference36 = ref span47[num2]; QuestStep obj32 = new QuestStep(EInteractionType.Interact, 1031119u, new Vector3(80.125f, 1.4901161E-08f, 190.44775f), 819) { AethernetShortcut = new AethernetShortcut @@ -232144,49 +281097,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - num3 = 6; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - Span span9 = CollectionsMarshal.AsSpan(list48); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list48 = new List(index3); + CollectionsMarshal.SetCount(list48, index3); + Span span48 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj32.CompletionQuestVariablesFlags = list48; reference36 = obj32; - ref QuestStep reference37 = ref span8[1]; + num2++; + ref QuestStep reference37 = ref span47[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1027799u, new Vector3(-74.6319f, -4.200001f, 170.00073f), 819); num3 = 6; List list49 = new List(num3); CollectionsMarshal.SetCount(list49, num3); - Span span10 = CollectionsMarshal.AsSpan(list49); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span49 = CollectionsMarshal.AsSpan(list49); + index3 = 0; + span49[index3] = null; + index3++; + span49[index3] = null; + index3++; + span49[index3] = null; + index3++; + span49[index3] = null; + index3++; + span49[index3] = null; + index3++; + span49[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list49; reference37 = questStep5; - ref QuestStep reference38 = ref span8[2]; + num2++; + ref QuestStep reference38 = ref span47[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1028333u, new Vector3(-168.07812f, 1.490116E-08f, 96.14697f), 819); - num3 = 6; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - Span span11 = CollectionsMarshal.AsSpan(list50); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + Span span50 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span50[num3] = null; + num3++; + span50[num3] = null; + num3++; + span50[num3] = null; + num3++; + span50[num3] = null; + num3++; + span50[num3] = null; + num3++; + span50[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list50; reference38 = questStep6; obj31.Steps = list47; reference35 = obj31; - ref QuestSequence reference39 = ref span7[2]; + num++; + ref QuestSequence reference39 = ref span45[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -232194,7 +281168,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028024u, new Vector3(78.96533f, 35.999687f, -153.27692f), 819) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028024u, new Vector3(78.96533f, 35.999687f, -153.27692f), 819) { AethernetShortcut = new AethernetShortcut { @@ -232211,24 +281187,30 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + Span span52 = CollectionsMarshal.AsSpan(list52); + index = 0; + span52[index] = "liza"; questRoot7.Author = list52; - num = 4; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span12 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference40 = ref span12[0]; + index = 4; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + Span span53 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference40 = ref span53[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027263u, new Vector3(-69.5354f, -36.726383f, -282.79547f), 819); + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027263u, new Vector3(-69.5354f, -36.726383f, -282.79547f), 819); obj34.Steps = list54; reference40 = obj34; - ref QuestSequence reference41 = ref span12[1]; + num++; + ref QuestSequence reference41 = ref span53[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -232236,7 +281218,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1027254u, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819) + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.Interact, 1027254u, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819) { AethernetShortcut = new AethernetShortcut { @@ -232246,21 +281230,25 @@ public static class AssemblyQuestLoader }; obj35.Steps = list55; reference41 = obj35; - ref QuestSequence reference42 = ref span12[2]; + num++; + ref QuestSequence reference42 = ref span53[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819) { ItemId = 2002756u }; obj36.Steps = list56; reference42 = obj36; - ref QuestSequence reference43 = ref span12[3]; + num++; + ref QuestSequence reference43 = ref span53[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -232268,7 +281256,9 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list57)[0]; + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + ref QuestStep reference44 = ref span57[index2]; QuestStep obj38 = new QuestStep(EInteractionType.CompleteQuest, 1027263u, new Vector3(-69.5354f, -36.726383f, -282.79547f), 819) { AethernetShortcut = new AethernetShortcut @@ -232280,7 +281270,9 @@ public static class AssemblyQuestLoader num3 = 1; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - CollectionsMarshal.AsSpan(list58)[0] = new DialogueChoice + Span span58 = CollectionsMarshal.AsSpan(list58); + index3 = 0; + span58[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZJ002_03565_Q1_000_000"), @@ -232297,24 +281289,30 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "liza"; + Span span59 = CollectionsMarshal.AsSpan(list59); + index = 0; + span59[index] = "liza"; questRoot8.Author = list59; - num = 4; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span13 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference45 = ref span13[0]; + index = 4; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + Span span60 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference45 = ref span60[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031036u, new Vector3(35.721313f, -4.2178183f, 150.80493f), 819); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031036u, new Vector3(35.721313f, -4.2178183f, 150.80493f), 819); obj39.Steps = list61; reference45 = obj39; - ref QuestSequence reference46 = ref span13[1]; + num++; + ref QuestSequence reference46 = ref span60[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -232322,24 +281320,30 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1031037u, new Vector3(65.32385f, 31.22887f, 151.7815f), 819); + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.Interact, 1031037u, new Vector3(65.32385f, 31.22887f, 151.7815f), 819); obj40.Steps = list62; reference46 = obj40; - ref QuestSequence reference47 = ref span13[2]; + num++; + ref QuestSequence reference47 = ref span60[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Emote, null, new Vector3(65.23219f, 31.253508f, 150.2689f), 819) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.Emote, null, new Vector3(65.23219f, 31.253508f, 150.2689f), 819) { Emote = EEmote.Welcome }; obj41.Steps = list63; reference47 = obj41; - ref QuestSequence reference48 = ref span13[3]; + num++; + ref QuestSequence reference48 = ref span60[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -232347,7 +281351,9 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031038u, new Vector3(71.30542f, 30.758999f, 141.95471f), 819); + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031038u, new Vector3(71.30542f, 30.758999f, 141.95471f), 819); obj42.Steps = list64; reference48 = obj42; questRoot8.QuestSequence = list60; @@ -232357,24 +281363,30 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + Span span65 = CollectionsMarshal.AsSpan(list65); + index = 0; + span65[index] = "liza"; questRoot9.Author = list65; - num = 3; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span14 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference49 = ref span14[0]; + index = 3; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + Span span66 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference49 = ref span66[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031059u, new Vector3(108.781494f, -3.1728092E-11f, -105.760315f), 819); + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031059u, new Vector3(108.781494f, -3.1728092E-11f, -105.760315f), 819); obj43.Steps = list67; reference49 = obj43; - ref QuestSequence reference50 = ref span14[1]; + num++; + ref QuestSequence reference50 = ref span66[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -232382,7 +281394,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list68)[0]; + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + ref QuestStep reference51 = ref span68[index2]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1031060u, new Vector3(-148.36353f, 1.4901161E-08f, 200.42712f), 819) { AethernetShortcut = new AethernetShortcut @@ -232391,10 +281405,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = new DialogueChoice + index3 = 1; + List list69 = new List(index3); + CollectionsMarshal.SetCount(list69, index3); + Span span69 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span69[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZJ004_03567_Q1_000_000"), @@ -232404,15 +281420,18 @@ public static class AssemblyQuestLoader reference51 = obj45; obj44.Steps = list68; reference50 = obj44; - ref QuestSequence reference52 = ref span14[2]; + num++; + ref QuestSequence reference52 = ref span66[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031059u, new Vector3(108.781494f, -3.1728092E-11f, -105.760315f), 819) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031059u, new Vector3(108.781494f, -3.1728092E-11f, -105.760315f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -232430,13 +281449,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + Span span71 = CollectionsMarshal.AsSpan(list71); + index = 0; + span71[index] = "liza"; questRoot10.Author = list71; - num = 4; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span15 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference53 = ref span15[0]; + index = 4; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + Span span72 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference53 = ref span72[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -232444,19 +281466,23 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031064u, new Vector3(62.42456f, 27.999973f, -113.75604f), 819); + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031064u, new Vector3(62.42456f, 27.999973f, -113.75604f), 819); obj47.Steps = list73; reference53 = obj47; - ref QuestSequence reference54 = ref span15[1]; + num++; + ref QuestSequence reference54 = ref span72[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - Span span16 = CollectionsMarshal.AsSpan(list74); - ref QuestStep reference55 = ref span16[0]; + index2 = 3; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + ref QuestStep reference55 = ref span74[num2]; QuestStep obj49 = new QuestStep(EInteractionType.Interact, 1031427u, new Vector3(10.8185425f, -1.4707987E-11f, -56.26001f), 819) { AethernetShortcut = new AethernetShortcut @@ -232468,16 +281494,23 @@ public static class AssemblyQuestLoader num3 = 6; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - Span span17 = CollectionsMarshal.AsSpan(list75); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span75 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span75[index3] = null; + index3++; + span75[index3] = null; + index3++; + span75[index3] = null; + index3++; + span75[index3] = null; + index3++; + span75[index3] = null; + index3++; + span75[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj49.CompletionQuestVariablesFlags = list75; reference55 = obj49; - ref QuestStep reference56 = ref span16[1]; + num2++; + ref QuestStep reference56 = ref span74[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Interact, 1027252u, new Vector3(-117.60132f, 38.614765f, 236.04175f), 819) { AethernetShortcut = new AethernetShortcut @@ -232486,19 +281519,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - num3 = 6; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - Span span18 = CollectionsMarshal.AsSpan(list76); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + Span span76 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj50.CompletionQuestVariablesFlags = list76; reference56 = obj50; - span16[2] = new QuestStep(EInteractionType.Interact, 1027260u, new Vector3(-49.515564f, -36.72638f, -271.4123f), 819) + num2++; + span74[num2] = new QuestStep(EInteractionType.Interact, 1027260u, new Vector3(-49.515564f, -36.72638f, -271.4123f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -232509,7 +281549,8 @@ public static class AssemblyQuestLoader }; obj48.Steps = list74; reference54 = obj48; - ref QuestSequence reference57 = ref span15[2]; + num++; + ref QuestSequence reference57 = ref span72[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -232517,7 +281558,9 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1031064u, new Vector3(62.42456f, 27.999973f, -113.75604f), 819) + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.Interact, 1031064u, new Vector3(62.42456f, 27.999973f, -113.75604f), 819) { AethernetShortcut = new AethernetShortcut { @@ -232527,15 +281570,18 @@ public static class AssemblyQuestLoader }; obj51.Steps = list77; reference57 = obj51; - ref QuestSequence reference58 = ref span15[3]; + num++; + ref QuestSequence reference58 = ref span72[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031065u, new Vector3(101.426636f, 20.728992f, 101.8844f), 819) + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031065u, new Vector3(101.426636f, 20.728992f, 101.8844f), 819) { AethernetShortcut = new AethernetShortcut { @@ -232552,13 +281598,16 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + Span span79 = CollectionsMarshal.AsSpan(list79); + index = 0; + span79[index] = "liza"; questRoot11.Author = list79; - num = 6; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span19 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference59 = ref span19[0]; + index = 6; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + Span span80 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference59 = ref span80[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -232566,21 +281615,27 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031015u, new Vector3(530.51025f, 353.54364f, -244.00702f), 818); + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031015u, new Vector3(530.51025f, 353.54364f, -244.00702f), 818); obj53.Steps = list81; reference59 = obj53; - ref QuestSequence reference60 = ref span19[1]; + num++; + ref QuestSequence reference60 = ref span80[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1031016u, new Vector3(344.04517f, 342.69537f, -310.53644f), 818); + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.Interact, 1031016u, new Vector3(344.04517f, 342.69537f, -310.53644f), 818); obj54.Steps = list82; reference60 = obj54; - ref QuestSequence reference61 = ref span19[2]; + num++; + ref QuestSequence reference61 = ref span80[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -232588,24 +281643,33 @@ public static class AssemblyQuestLoader num2 = 2; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span20 = CollectionsMarshal.AsSpan(list83); - ref QuestStep reference62 = ref span20[0]; + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + ref QuestStep reference62 = ref span83[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2010463u, new Vector3(340.93237f, 342.67188f, -310.47534f), 818); num3 = 6; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - Span span21 = CollectionsMarshal.AsSpan(list84); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span84 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span84[index3] = null; + index3++; + span84[index3] = null; + index3++; + span84[index3] = null; + index3++; + span84[index3] = null; + index3++; + span84[index3] = null; + index3++; + span84[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list84; - num3 = 1; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = new DialogueChoice + index3 = 1; + List list85 = new List(index3); + CollectionsMarshal.SetCount(list85, index3); + Span span85 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span85[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZJ101_03588_Q2_000_000"), @@ -232613,23 +281677,32 @@ public static class AssemblyQuestLoader }; questStep7.DialogueChoices = list85; reference62 = questStep7; - ref QuestStep reference63 = ref span20[1]; + index2++; + ref QuestStep reference63 = ref span83[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2010464u, new Vector3(341.5426f, 342.76343f, -308.70532f), 818); num3 = 6; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span22 = CollectionsMarshal.AsSpan(list86); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span86 = CollectionsMarshal.AsSpan(list86); + index3 = 0; + span86[index3] = null; + index3++; + span86[index3] = null; + index3++; + span86[index3] = null; + index3++; + span86[index3] = null; + index3++; + span86[index3] = null; + index3++; + span86[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list86; - num3 = 1; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = new DialogueChoice + index3 = 1; + List list87 = new List(index3); + CollectionsMarshal.SetCount(list87, index3); + Span span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZJ101_03588_Q1_000_000"), @@ -232639,18 +281712,22 @@ public static class AssemblyQuestLoader reference63 = questStep8; obj55.Steps = list83; reference61 = obj55; - ref QuestSequence reference64 = ref span19[3]; + num++; + ref QuestSequence reference64 = ref span80[num]; QuestSequence obj56 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1031016u, new Vector3(344.04517f, 342.69537f, -310.53644f), 818); + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Interact, 1031016u, new Vector3(344.04517f, 342.69537f, -310.53644f), 818); obj56.Steps = list88; reference64 = obj56; - ref QuestSequence reference65 = ref span19[4]; + num++; + ref QuestSequence reference65 = ref span80[num]; QuestSequence obj57 = new QuestSequence { Sequence = 4 @@ -232658,21 +281735,26 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1031017u, new Vector3(603.02124f, 348.01245f, -165.30103f), 818) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.Interact, 1031017u, new Vector3(603.02124f, 348.01245f, -165.30103f), 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; obj57.Steps = list89; reference65 = obj57; - ref QuestSequence reference66 = ref span19[5]; + num++; + ref QuestSequence reference66 = ref span80[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031019u, new Vector3(505.88232f, 371.189f, -342.79395f), 818); + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031019u, new Vector3(505.88232f, 371.189f, -342.79395f), 818); obj58.Steps = list90; reference66 = obj58; questRoot11.QuestSequence = list80; @@ -232682,13 +281764,16 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "liza"; + Span span91 = CollectionsMarshal.AsSpan(list91); + index = 0; + span91[index] = "liza"; questRoot12.Author = list91; - num = 6; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span23 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference67 = ref span23[0]; + index = 6; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + Span span92 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference67 = ref span92[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -232696,21 +281781,27 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027775u, new Vector3(-390.85986f, -260.17664f, 308.46106f), 818); + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027775u, new Vector3(-390.85986f, -260.17664f, 308.46106f), 818); obj59.Steps = list93; reference67 = obj59; - ref QuestSequence reference68 = ref span23[1]; + num++; + ref QuestSequence reference68 = ref span92[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1030473u, new Vector3(-410.1778f, -260.17664f, 256.09204f), 818); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.Interact, 1030473u, new Vector3(-410.1778f, -260.17664f, 256.09204f), 818); obj60.Steps = list94; reference68 = obj60; - ref QuestSequence reference69 = ref span23[2]; + num++; + ref QuestSequence reference69 = ref span92[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 @@ -232718,21 +281809,27 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1027774u, new Vector3(-365.59094f, -260.1766f, 276.9359f), 818); + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.Interact, 1027774u, new Vector3(-365.59094f, -260.1766f, 276.9359f), 818); obj61.Steps = list95; reference69 = obj61; - ref QuestSequence reference70 = ref span23[3]; + num++; + ref QuestSequence reference70 = ref span92[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1030474u, new Vector3(-390.9209f, -260.1766f, 284.93164f), 818); + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.Interact, 1030474u, new Vector3(-390.9209f, -260.1766f, 284.93164f), 818); obj62.Steps = list96; reference70 = obj62; - ref QuestSequence reference71 = ref span23[4]; + num++; + ref QuestSequence reference71 = ref span92[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -232740,7 +281837,9 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list97)[0]; + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + ref QuestStep reference72 = ref span97[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, 2010125u, new Vector3(-502.7085f, -250.93463f, 449.97327f), 818) { ItemId = 2002612u, @@ -232749,23 +281848,29 @@ public static class AssemblyQuestLoader num3 = 3; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - Span span24 = CollectionsMarshal.AsSpan(list98); - span24[0] = 10846u; - span24[1] = 10847u; - span24[2] = 10848u; + Span span98 = CollectionsMarshal.AsSpan(list98); + index3 = 0; + span98[index3] = 10846u; + index3++; + span98[index3] = 10847u; + index3++; + span98[index3] = 10848u; obj64.KillEnemyDataIds = list98; reference72 = obj64; obj63.Steps = list97; reference71 = obj63; - ref QuestSequence reference73 = ref span23[5]; + num++; + ref QuestSequence reference73 = ref span92[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030474u, new Vector3(-390.9209f, -260.1766f, 284.93164f), 818); + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030474u, new Vector3(-390.9209f, -260.1766f, 284.93164f), 818); obj65.Steps = list99; reference73 = obj65; questRoot12.QuestSequence = list92; @@ -232775,13 +281880,16 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "liza"; + Span span100 = CollectionsMarshal.AsSpan(list100); + index = 0; + span100[index] = "liza"; questRoot13.Author = list100; - num = 6; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span25 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference74 = ref span25[0]; + index = 6; + List list101 = new List(index); + CollectionsMarshal.SetCount(list101, index); + Span span101 = CollectionsMarshal.AsSpan(list101); + num = 0; + ref QuestSequence reference74 = ref span101[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -232789,21 +281897,27 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818); + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span102[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818); obj66.Steps = list102; reference74 = obj66; - ref QuestSequence reference75 = ref span25[1]; + num++; + ref QuestSequence reference75 = ref span101[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1030475u, new Vector3(-627.7715f, -250.75601f, 550.65234f), 818); + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span103[num2] = new QuestStep(EInteractionType.Interact, 1030475u, new Vector3(-627.7715f, -250.75601f, 550.65234f), 818); obj67.Steps = list103; reference75 = obj67; - ref QuestSequence reference76 = ref span25[2]; + num++; + ref QuestSequence reference76 = ref span101[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -232811,21 +281925,27 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1030475u, new Vector3(-627.7715f, -250.75601f, 550.65234f), 818); + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.Interact, 1030475u, new Vector3(-627.7715f, -250.75601f, 550.65234f), 818); obj68.Steps = list104; reference76 = obj68; - ref QuestSequence reference77 = ref span25[3]; + num++; + ref QuestSequence reference77 = ref span101[num]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1030475u, new Vector3(-627.7715f, -250.75601f, 550.65234f), 818); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.Interact, 1030475u, new Vector3(-627.7715f, -250.75601f, 550.65234f), 818); obj69.Steps = list105; reference77 = obj69; - ref QuestSequence reference78 = ref span25[4]; + num++; + ref QuestSequence reference78 = ref span101[num]; QuestSequence obj70 = new QuestSequence { Sequence = 4 @@ -232833,18 +281953,23 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818); + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.Interact, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818); obj70.Steps = list106; reference78 = obj70; - ref QuestSequence reference79 = ref span25[5]; + num++; + ref QuestSequence reference79 = ref span101[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818); + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818); obj71.Steps = list107; reference79 = obj71; questRoot13.QuestSequence = list101; @@ -232854,13 +281979,16 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; + Span span108 = CollectionsMarshal.AsSpan(list108); + index = 0; + span108[index] = "liza"; questRoot14.Author = list108; - num = 5; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span26 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference80 = ref span26[0]; + index = 5; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + Span span109 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference80 = ref span109[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -232868,21 +281996,27 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030477u, new Vector3(-594.6593f, -266.7698f, 338.70447f), 818); + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030477u, new Vector3(-594.6593f, -266.7698f, 338.70447f), 818); obj72.Steps = list110; reference80 = obj72; - ref QuestSequence reference81 = ref span26[1]; + num++; + ref QuestSequence reference81 = ref span109[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1030478u, new Vector3(-654.35266f, -250.89601f, 475.76086f), 818); + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.Interact, 1030478u, new Vector3(-654.35266f, -250.89601f, 475.76086f), 818); obj73.Steps = list111; reference81 = obj73; - ref QuestSequence reference82 = ref span26[2]; + num++; + ref QuestSequence reference82 = ref span109[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -232890,32 +282024,40 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span27 = CollectionsMarshal.AsSpan(list112); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-450.6779f, -250.89601f, 400.94394f), 818); - span27[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-361.26102f, -260.1766f, 280.9178f), 818); - span27[2] = new QuestStep(EInteractionType.Interact, 1027777u, new Vector3(-355.2453f, -260.17664f, 278.6754f), 818) + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-450.6779f, -250.89601f, 400.94394f), 818); + index2++; + span112[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-361.26102f, -260.1766f, 280.9178f), 818); + index2++; + span112[index2] = new QuestStep(EInteractionType.Interact, 1027777u, new Vector3(-355.2453f, -260.17664f, 278.6754f), 818) { StopDistance = 7f }; obj74.Steps = list112; reference82 = obj74; - ref QuestSequence reference83 = ref span26[3]; + num++; + ref QuestSequence reference83 = ref span109[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list113)[0]; + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + ref QuestStep reference84 = ref span113[num2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, null, new Vector3(-85.3181f, -281.24854f, 423.48425f), 818) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = 10304u; + index3 = 1; + List list114 = new List(index3); + CollectionsMarshal.SetCount(list114, index3); + Span span114 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span114[num3] = 10304u; obj76.KillEnemyDataIds = list114; obj76.CombatItemUse = new CombatItemUse { @@ -232926,7 +282068,8 @@ public static class AssemblyQuestLoader reference84 = obj76; obj75.Steps = list113; reference83 = obj75; - ref QuestSequence reference85 = ref span26[4]; + num++; + ref QuestSequence reference85 = ref span109[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -232934,9 +282077,11 @@ public static class AssemblyQuestLoader num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span28 = CollectionsMarshal.AsSpan(list115); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-361.26102f, -260.1766f, 280.9178f), 818); - span28[1] = new QuestStep(EInteractionType.CompleteQuest, 1027777u, new Vector3(-355.2453f, -260.17664f, 278.6754f), 818) + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-361.26102f, -260.1766f, 280.9178f), 818); + index2++; + span115[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027777u, new Vector3(-355.2453f, -260.17664f, 278.6754f), 818) { StopDistance = 7f }; @@ -232949,24 +282094,30 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "liza"; + Span span116 = CollectionsMarshal.AsSpan(list116); + index = 0; + span116[index] = "liza"; questRoot15.Author = list116; - num = 4; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span29 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference86 = ref span29[0]; + index = 4; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + Span span117 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference86 = ref span117[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028898u, new Vector3(-132.58563f, 0f, -14.023071f), 819); + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.AcceptQuest, 1028898u, new Vector3(-132.58563f, 0f, -14.023071f), 819); obj78.Steps = list118; reference86 = obj78; - ref QuestSequence reference87 = ref span29[1]; + num++; + ref QuestSequence reference87 = ref span117[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -232974,7 +282125,9 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1028899u, new Vector3(77.04285f, 0.0889954f, -31.784546f), 819) + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.Interact, 1028899u, new Vector3(77.04285f, 0.0889954f, -31.784546f), 819) { AethernetShortcut = new AethernetShortcut { @@ -232984,15 +282137,18 @@ public static class AssemblyQuestLoader }; obj79.Steps = list119; reference87 = obj79; - ref QuestSequence reference88 = ref span29[2]; + num++; + ref QuestSequence reference88 = ref span117[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Duty, null, null, 819) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.Duty, null, null, 819) { DutyOptions = new DutyOptions { @@ -233001,7 +282157,8 @@ public static class AssemblyQuestLoader }; obj80.Steps = list120; reference88 = obj80; - ref QuestSequence reference89 = ref span29[3]; + num++; + ref QuestSequence reference89 = ref span117[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -233009,7 +282166,9 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028899u, new Vector3(77.04285f, 0.0889954f, -31.784546f), 819); + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028899u, new Vector3(77.04285f, 0.0889954f, -31.784546f), 819); obj81.Steps = list121; reference89 = obj81; questRoot15.QuestSequence = list117; @@ -233019,24 +282178,30 @@ public static class AssemblyQuestLoader num = 1; List list122 = new List(num); CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = "liza"; + Span span122 = CollectionsMarshal.AsSpan(list122); + index = 0; + span122[index] = "liza"; questRoot16.Author = list122; - num = 6; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - Span span30 = CollectionsMarshal.AsSpan(list123); - ref QuestSequence reference90 = ref span30[0]; + index = 6; + List list123 = new List(index); + CollectionsMarshal.SetCount(list123, index); + Span span123 = CollectionsMarshal.AsSpan(list123); + num = 0; + ref QuestSequence reference90 = ref span123[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031144u, new Vector3(84.33655f, -10.490669f, 59.494873f), 820); + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031144u, new Vector3(84.33655f, -10.490669f, 59.494873f), 820); obj82.Steps = list124; reference90 = obj82; - ref QuestSequence reference91 = ref span30[1]; + num++; + ref QuestSequence reference91 = ref span123[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -233044,38 +282209,44 @@ public static class AssemblyQuestLoader num2 = 2; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span31 = CollectionsMarshal.AsSpan(list125); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.41547322f, -276.906f, 269.2778f), 818) + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.41547322f, -276.906f, 269.2778f), 818) { Fly = true, AetheryteShortcut = EAetheryteLocation.TempestMacarensesAngle }; - span31[1] = new QuestStep(EInteractionType.Interact, 1027772u, new Vector3(5.3864136f, -276.906f, 271.59534f), 818) + index2++; + span125[index2] = new QuestStep(EInteractionType.Interact, 1027772u, new Vector3(5.3864136f, -276.906f, 271.59534f), 818) { StopDistance = 7f }; obj83.Steps = list125; reference91 = obj83; - ref QuestSequence reference92 = ref span30[2]; + num++; + ref QuestSequence reference92 = ref span123[num]; QuestSequence obj84 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - Span span32 = CollectionsMarshal.AsSpan(list126); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.42122f, -274.33163f, 584.8395f), 818) + index2 = 2; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.42122f, -274.33163f, 584.8395f), 818) { Fly = true }; - span32[1] = new QuestStep(EInteractionType.Interact, 1028056u, new Vector3(-68.37573f, -274.33163f, 579.33923f), 818) + num2++; + span126[num2] = new QuestStep(EInteractionType.Interact, 1028056u, new Vector3(-68.37573f, -274.33163f, 579.33923f), 818) { StopDistance = 7f }; obj84.Steps = list126; reference92 = obj84; - ref QuestSequence reference93 = ref span30[3]; + num++; + ref QuestSequence reference93 = ref span123[num]; QuestSequence obj85 = new QuestSequence { Sequence = 3 @@ -233083,7 +282254,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Duty, null, null, 818) + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.Duty, null, null, 818) { DutyOptions = new DutyOptions { @@ -233092,23 +282265,27 @@ public static class AssemblyQuestLoader }; obj85.Steps = list127; reference93 = obj85; - ref QuestSequence reference94 = ref span30[4]; + num++; + ref QuestSequence reference94 = ref span123[num]; QuestSequence obj86 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span33 = CollectionsMarshal.AsSpan(list128); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.42122f, -274.33163f, 584.8395f), 818); - span33[1] = new QuestStep(EInteractionType.Interact, 1028056u, new Vector3(-68.37573f, -274.33163f, 579.33923f), 818) + index2 = 2; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.42122f, -274.33163f, 584.8395f), 818); + num2++; + span128[num2] = new QuestStep(EInteractionType.Interact, 1028056u, new Vector3(-68.37573f, -274.33163f, 579.33923f), 818) { StopDistance = 7f }; obj86.Steps = list128; reference94 = obj86; - ref QuestSequence reference95 = ref span30[5]; + num++; + ref QuestSequence reference95 = ref span123[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -233116,7 +282293,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031144u, new Vector3(84.33655f, -10.490669f, 59.494873f), 820) + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031144u, new Vector3(84.33655f, -10.490669f, 59.494873f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore, AethernetShortcut = new AethernetShortcut @@ -233134,21 +282313,26 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + Span span130 = CollectionsMarshal.AsSpan(list130); + index = 0; + span130[index] = "liza"; questRoot17.Author = list130; - num = 3; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span34 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference96 = ref span34[0]; + index = 3; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + Span span131 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference96 = ref span131[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031348u, new Vector3(47.13501f, 1.4901161E-08f, 191.5769f), 819) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031348u, new Vector3(47.13501f, 1.4901161E-08f, 191.5769f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -233159,7 +282343,8 @@ public static class AssemblyQuestLoader }; obj88.Steps = list132; reference96 = obj88; - ref QuestSequence reference97 = ref span34[1]; + num++; + ref QuestSequence reference97 = ref span131[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -233167,7 +282352,9 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.Interact, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -233178,15 +282365,18 @@ public static class AssemblyQuestLoader }; obj89.Steps = list133; reference97 = obj89; - ref QuestSequence reference98 = ref span34[2]; + num++; + ref QuestSequence reference98 = ref span131[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027988u, new Vector3(-88.578674f, 0.07107824f, -83.66528f), 819) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027988u, new Vector3(-88.578674f, 0.07107824f, -83.66528f), 819) { StopDistance = 7f, NextQuestId = new QuestId(3598) @@ -233200,13 +282390,16 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "liza"; + Span span135 = CollectionsMarshal.AsSpan(list135); + index = 0; + span135[index] = "liza"; questRoot18.Author = list135; - num = 2; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span35 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference99 = ref span35[0]; + index = 2; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + Span span136 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference99 = ref span136[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -233214,7 +282407,9 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -233228,15 +282423,18 @@ public static class AssemblyQuestLoader }; obj91.Steps = list137; reference99 = obj91; - ref QuestSequence reference100 = ref span35[1]; + num++; + ref QuestSequence reference100 = ref span136[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027988u, new Vector3(-88.578674f, 0.07107824f, -83.66528f), 819) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027988u, new Vector3(-88.578674f, 0.07107824f, -83.66528f), 819) { StopDistance = 7f, NextQuestId = new QuestId(3599) @@ -233250,13 +282448,16 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; + Span span139 = CollectionsMarshal.AsSpan(list139); + index = 0; + span139[index] = "liza"; questRoot19.Author = list139; - num = 2; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span36 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference101 = ref span36[0]; + index = 2; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + Span span140 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference101 = ref span140[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -233264,7 +282465,9 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -233278,15 +282481,18 @@ public static class AssemblyQuestLoader }; obj93.Steps = list141; reference101 = obj93; - ref QuestSequence reference102 = ref span36[1]; + num++; + ref QuestSequence reference102 = ref span140[num]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027988u, new Vector3(-88.578674f, 0.07107824f, -83.66528f), 819) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027988u, new Vector3(-88.578674f, 0.07107824f, -83.66528f), 819) { StopDistance = 7f, NextQuestId = new QuestId(3600) @@ -233304,13 +282510,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 2; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 2; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -233318,7 +282527,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -233332,15 +282543,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027988u, new Vector3(-88.578674f, 0.07107824f, -83.66528f), 819) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027988u, new Vector3(-88.578674f, 0.07107824f, -83.66528f), 819) { StopDistance = 7f, NextQuestId = new QuestId(4176) @@ -233354,13 +282568,16 @@ public static class AssemblyQuestLoader num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - CollectionsMarshal.AsSpan(list5)[0] = "liza"; + Span span5 = CollectionsMarshal.AsSpan(list5); + index = 0; + span5[index] = "liza"; questRoot2.Author = list5; - num = 2; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - Span span2 = CollectionsMarshal.AsSpan(list6); - ref QuestSequence reference3 = ref span2[0]; + index = 2; + List list6 = new List(index); + CollectionsMarshal.SetCount(list6, index); + Span span6 = CollectionsMarshal.AsSpan(list6); + num = 0; + ref QuestSequence reference3 = ref span6[num]; QuestSequence obj3 = new QuestSequence { Sequence = 0 @@ -233368,7 +282585,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030408u, new Vector3(-101.12158f, -9.99916f, -62.82141f), 820) + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030408u, new Vector3(-101.12158f, -9.99916f, -62.82141f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore, AethernetShortcut = new AethernetShortcut @@ -233386,15 +282605,18 @@ public static class AssemblyQuestLoader }; obj3.Steps = list7; reference3 = obj3; - ref QuestSequence reference4 = ref span2[1]; + num++; + ref QuestSequence reference4 = ref span6[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030409u, new Vector3(116.53308f, 55.329205f, 816.7085f), 814) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030409u, new Vector3(116.53308f, 55.329205f, 816.7085f), 814) { AethernetShortcut = new AethernetShortcut { @@ -233412,12 +282634,16 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "liza"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "liza"; questRoot3.Author = list9; - num = 1; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - ref QuestSequence reference5 = ref CollectionsMarshal.AsSpan(list10)[0]; + index = 1; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference5 = ref span10[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -233425,7 +282651,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027847u, new Vector3(-76.34094f, 20.04979f, -110.97894f), 819) + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027847u, new Vector3(-76.34094f, 20.04979f, -110.97894f), 819) { StopDistance = 5f }; @@ -233438,20 +282666,26 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "liza"; + Span span12 = CollectionsMarshal.AsSpan(list12); + index = 0; + span12[index] = "liza"; questRoot4.Author = list12; - num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - ref QuestSequence reference6 = ref CollectionsMarshal.AsSpan(list13)[0]; + index = 1; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference6 = ref span13[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027544u, new Vector3(12.985352f, 82.05f, -25.223206f), 820); + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027544u, new Vector3(12.985352f, 82.05f, -25.223206f), 820); obj6.Steps = list14; reference6 = obj6; questRoot4.QuestSequence = list13; @@ -233461,12 +282695,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; + Span span15 = CollectionsMarshal.AsSpan(list15); + index = 0; + span15[index] = "liza"; questRoot5.Author = list15; - num = 1; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - ref QuestSequence reference7 = ref CollectionsMarshal.AsSpan(list16)[0]; + index = 1; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + Span span16 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference7 = ref span16[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -233474,7 +282712,9 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031106u, new Vector3(-8.255188f, -3.1851232E-07f, 10.543945f), 819); + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031106u, new Vector3(-8.255188f, -3.1851232E-07f, 10.543945f), 819); obj7.Steps = list17; reference7 = obj7; questRoot5.QuestSequence = list16; @@ -233484,27 +282724,33 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "liza"; + Span span18 = CollectionsMarshal.AsSpan(list18); + index = 0; + span18[index] = "liza"; questRoot6.Author = list18; - num = 6; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span3 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference8 = ref span3[0]; + index = 6; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + Span span19 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference8 = ref span19[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) { StopDistance = 7f }; obj8.Steps = list20; reference8 = obj8; - ref QuestSequence reference9 = ref span3[1]; + num++; + ref QuestSequence reference9 = ref span19[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 @@ -233512,24 +282758,30 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 2009895u, new Vector3(26.04712f, -0.015319824f, 73.92993f), 819); + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span21[index2] = new QuestStep(EInteractionType.Interact, 2009895u, new Vector3(26.04712f, -0.015319824f, 73.92993f), 819); obj9.Steps = list21; reference9 = obj9; - ref QuestSequence reference10 = ref span3[2]; + num++; + ref QuestSequence reference10 = ref span19[num]; QuestSequence obj10 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 2009896u, new Vector3(-224.445f, 21.377869f, -58.06067f), 819) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.Interact, 2009896u, new Vector3(-224.445f, 21.377869f, -58.06067f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj10.Steps = list22; reference10 = obj10; - ref QuestSequence reference11 = ref span3[3]; + num++; + ref QuestSequence reference11 = ref span19[num]; QuestSequence obj11 = new QuestSequence { Sequence = 3 @@ -233537,18 +282789,23 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 2009897u, new Vector3(-224.47546f, 21.22528f, 58.03003f), 819); + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.Interact, 2009897u, new Vector3(-224.47546f, 21.22528f, 58.03003f), 819); obj11.Steps = list23; reference11 = obj11; - ref QuestSequence reference12 = ref span3[4]; + num++; + ref QuestSequence reference12 = ref span19[num]; QuestSequence obj12 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list24)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference13 = ref span24[num2]; QuestStep obj13 = new QuestStep(EInteractionType.SinglePlayerDuty, 1029599u, new Vector3(-107.0116f, 20f, 12.619202f), 819) { StopDistance = 5f @@ -233557,16 +282814,20 @@ public static class AssemblyQuestLoader int num3 = 3; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span4 = CollectionsMarshal.AsSpan(list25); - span4[0] = "(phase 1) AI gets stuck on trees/posts/walls."; - span4[1] = "(phase 1) AI will never reach the Ostall Imperative, it instead walks circles around Radisca's Round even with all enemies dead."; - span4[2] = "(phase 2) AI will still try to walk to Radisca's Round, but (usually) prioritizes fighting enemies."; + Span span25 = CollectionsMarshal.AsSpan(list25); + int num4 = 0; + span25[num4] = "(phase 1) AI gets stuck on trees/posts/walls."; + num4++; + span25[num4] = "(phase 1) AI will never reach the Ostall Imperative, it instead walks circles around Radisca's Round even with all enemies dead."; + num4++; + span25[num4] = "(phase 2) AI will still try to walk to Radisca's Round, but (usually) prioritizes fighting enemies."; singlePlayerDutyOptions.Notes = list25; obj13.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference13 = obj13; obj12.Steps = list24; reference12 = obj12; - ref QuestSequence reference14 = ref span3[5]; + num++; + ref QuestSequence reference14 = ref span19[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -233574,7 +282835,9 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029601u, new Vector3(-707.5456f, 51.501152f, -241.56561f), 813); + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029601u, new Vector3(-707.5456f, 51.501152f, -241.56561f), 813); obj14.Steps = list26; reference14 = obj14; questRoot6.QuestSequence = list19; @@ -233584,24 +282847,30 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "liza"; + Span span27 = CollectionsMarshal.AsSpan(list27); + index = 0; + span27[index] = "liza"; questRoot7.Author = list27; - num = 3; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span5 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference15 = ref span5[0]; + index = 3; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + Span span28 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference15 = ref span28[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029601u, new Vector3(-707.5456f, 51.501152f, -241.56561f), 813); + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029601u, new Vector3(-707.5456f, 51.501152f, -241.56561f), 813); obj15.Steps = list29; reference15 = obj15; - ref QuestSequence reference16 = ref span5[1]; + num++; + ref QuestSequence reference16 = ref span28[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -233609,25 +282878,33 @@ public static class AssemblyQuestLoader num2 = 3; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span6 = CollectionsMarshal.AsSpan(list30); - ref QuestStep reference17 = ref span6[0]; + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + ref QuestStep reference17 = ref span30[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1030314u, new Vector3(-690.0587f, 52.7832f, -302.20496f), 813) { Fly = true }; - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span7 = CollectionsMarshal.AsSpan(list31); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list31 = new List(num4); + CollectionsMarshal.SetCount(list31, num4); + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list31; reference17 = obj17; - ref QuestStep reference18 = ref span6[1]; + index2++; + ref QuestStep reference18 = ref span30[index2]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1030313u, new Vector3(-649.13403f, 53.2081f, -178.08807f), 813) { Fly = true @@ -233635,45 +282912,61 @@ public static class AssemblyQuestLoader num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span8 = CollectionsMarshal.AsSpan(list32); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span32 = CollectionsMarshal.AsSpan(list32); + num4 = 0; + span32[num4] = null; + num4++; + span32[num4] = null; + num4++; + span32[num4] = null; + num4++; + span32[num4] = null; + num4++; + span32[num4] = null; + num4++; + span32[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj18.CompletionQuestVariablesFlags = list32; reference18 = obj18; - ref QuestStep reference19 = ref span6[2]; + index2++; + ref QuestStep reference19 = ref span30[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1030312u, new Vector3(-694.0261f, 52.60457f, -124.74249f), 813); - num3 = 6; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span9 = CollectionsMarshal.AsSpan(list33); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list33; reference19 = questStep; obj16.Steps = list30; reference16 = obj16; - ref QuestSequence reference20 = ref span5[2]; + num++; + ref QuestSequence reference20 = ref span28[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span10 = CollectionsMarshal.AsSpan(list34); - span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-694.03015f, 52.60457f, -139.54802f), 813) + index2 = 2; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-694.03015f, 52.60457f, -139.54802f), 813) { Mount = true }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1029606u, new Vector3(-734.5541f, 52.60457f, -147.1123f), 813) + num2++; + span34[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029606u, new Vector3(-734.5541f, 52.60457f, -147.1123f), 813) { Fly = true }; @@ -233686,13 +282979,16 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "liza"; + Span span35 = CollectionsMarshal.AsSpan(list35); + index = 0; + span35[index] = "liza"; questRoot8.Author = list35; - num = 6; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span11 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference21 = ref span11[0]; + index = 6; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + Span span36 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference21 = ref span36[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -233700,27 +282996,33 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030587u, new Vector3(-728.0537f, 52.604565f, -146.3493f), 813) + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030587u, new Vector3(-728.0537f, 52.604565f, -146.3493f), 813) { StopDistance = 5f }; obj20.Steps = list37; reference21 = obj20; - ref QuestSequence reference22 = ref span11[1]; + num++; + ref QuestSequence reference22 = ref span36[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1029607u, new Vector3(-32.791687f, -0.6250627f, -44.663208f), 819) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.Interact, 1029607u, new Vector3(-32.791687f, -0.6250627f, -44.663208f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj21.Steps = list38; reference22 = obj21; - ref QuestSequence reference23 = ref span11[2]; + num++; + ref QuestSequence reference23 = ref span36[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 @@ -233728,7 +283030,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1029608u, new Vector3(-120.83624f, -47.55994f, -166.15558f), 819) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.Interact, 1029608u, new Vector3(-120.83624f, -47.55994f, -166.15558f), 819) { AethernetShortcut = new AethernetShortcut { @@ -233738,15 +283042,18 @@ public static class AssemblyQuestLoader }; obj22.Steps = list39; reference23 = obj22; - ref QuestSequence reference24 = ref span11[3]; + num++; + ref QuestSequence reference24 = ref span36[num]; QuestSequence obj23 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list40)[0]; + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref QuestStep reference25 = ref span40[num2]; QuestStep obj24 = new QuestStep(EInteractionType.Emote, 1029608u, new Vector3(-120.83624f, -47.55994f, -166.15558f), 819) { Emote = EEmote.Poke @@ -233754,7 +283061,9 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = new DialogueChoice + Span span41 = CollectionsMarshal.AsSpan(list41); + num4 = 0; + span41[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD103_03608_Q1_000_000"), @@ -233764,7 +283073,8 @@ public static class AssemblyQuestLoader reference25 = obj24; obj23.Steps = list40; reference24 = obj23; - ref QuestSequence reference26 = ref span11[4]; + num++; + ref QuestSequence reference26 = ref span36[num]; QuestSequence obj25 = new QuestSequence { Sequence = 4 @@ -233772,46 +283082,63 @@ public static class AssemblyQuestLoader num2 = 2; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span12 = CollectionsMarshal.AsSpan(list42); - ref QuestStep reference27 = ref span12[0]; + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + ref QuestStep reference27 = ref span42[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2009900u, new Vector3(-136.64453f, -46.00598f, -183.67291f), 819); - num3 = 6; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - Span span13 = CollectionsMarshal.AsSpan(list43); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list43 = new List(num4); + CollectionsMarshal.SetCount(list43, num4); + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list43; reference27 = questStep2; - ref QuestStep reference28 = ref span12[1]; + index2++; + ref QuestStep reference28 = ref span42[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2009899u, new Vector3(-140.97815f, -44.75476f, -156.66437f), 819); num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span14 = CollectionsMarshal.AsSpan(list44); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span44 = CollectionsMarshal.AsSpan(list44); + num4 = 0; + span44[num4] = null; + num4++; + span44[num4] = null; + num4++; + span44[num4] = null; + num4++; + span44[num4] = null; + num4++; + span44[num4] = null; + num4++; + span44[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list44; reference28 = questStep3; obj25.Steps = list42; reference26 = obj25; - ref QuestSequence reference29 = ref span11[5]; + num++; + ref QuestSequence reference29 = ref span36[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span45[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; @@ -233824,13 +283151,16 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "liza"; + Span span46 = CollectionsMarshal.AsSpan(list46); + index = 0; + span46[index] = "liza"; questRoot9.Author = list46; - num = 7; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span15 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference30 = ref span15[0]; + index = 7; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + Span span47 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference30 = ref span47[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -233838,28 +283168,35 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029853u, new Vector3(-30.991089f, -0.6499998f, -49.69867f), 819); + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029853u, new Vector3(-30.991089f, -0.6499998f, -49.69867f), 819); obj27.Steps = list48; reference30 = obj27; - ref QuestSequence reference31 = ref span15[1]; + num++; + ref QuestSequence reference31 = ref span47[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span16 = CollectionsMarshal.AsSpan(list49); - span16[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + index2 = 2; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844 }; - ref QuestStep reference32 = ref span16[1]; + num2++; + ref QuestStep reference32 = ref span49[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = new DialogueChoice + num4 = 1; + List list50 = new List(num4); + CollectionsMarshal.SetCount(list50, num4); + Span span50 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span50[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD104_03609_Q1_000_000"), @@ -233869,7 +283206,8 @@ public static class AssemblyQuestLoader reference32 = questStep4; obj28.Steps = list49; reference31 = obj28; - ref QuestSequence reference33 = ref span15[2]; + num++; + ref QuestSequence reference33 = ref span47[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -233877,27 +283215,33 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1029597u, new Vector3(2.4871826f, 0f, 1.5106201f), 844) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.Interact, 1029597u, new Vector3(2.4871826f, 0f, 1.5106201f), 844) { StopDistance = 7f }; obj29.Steps = list51; reference33 = obj29; - ref QuestSequence reference34 = ref span15[3]; + num++; + ref QuestSequence reference34 = ref span47[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 2009903u, new Vector3(-177.56934f, -0.015319824f, -0.38153076f), 819) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.Interact, 2009903u, new Vector3(-177.56934f, -0.015319824f, -0.38153076f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj30.Steps = list52; reference34 = obj30; - ref QuestSequence reference35 = ref span15[4]; + num++; + ref QuestSequence reference35 = ref span47[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -233905,29 +283249,35 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span17 = CollectionsMarshal.AsSpan(list53); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.00786f, -3.0897782f, -0.36405885f), 819); - span17[1] = new QuestStep(EInteractionType.Interact, 1029611u, new Vector3(576.95886f, 6.6976085f, 636.71313f), 813) + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.00786f, -3.0897782f, -0.36405885f), 819); + index2++; + span53[index2] = new QuestStep(EInteractionType.Interact, 1029611u, new Vector3(576.95886f, 6.6976085f, 636.71313f), 813) { Fly = true }; obj31.Steps = list53; reference35 = obj31; - ref QuestSequence reference36 = ref span15[5]; + num++; + ref QuestSequence reference36 = ref span47[num]; QuestSequence obj32 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1028305u, new Vector3(525.65796f, -5.2326922f, 854.2457f), 813) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.Interact, 1028305u, new Vector3(525.65796f, -5.2326922f, 854.2457f), 813) { Fly = true }; obj32.Steps = list54; reference36 = obj32; - ref QuestSequence reference37 = ref span15[6]; + num++; + ref QuestSequence reference37 = ref span47[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -233935,7 +283285,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029614u, new Vector3(-554.1314f, 35.800797f, -669.70325f), 815); + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029614u, new Vector3(-554.1314f, 35.800797f, -669.70325f), 815); obj33.Steps = list55; reference37 = obj33; questRoot9.QuestSequence = list47; @@ -233945,24 +283297,30 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "liza"; + Span span56 = CollectionsMarshal.AsSpan(list56); + index = 0; + span56[index] = "liza"; questRoot10.Author = list56; - num = 4; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span18 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference38 = ref span18[0]; + index = 4; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + Span span57 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference38 = ref span57[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029615u, new Vector3(-556.69495f, 36.586422f, -670.06946f), 815); + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029615u, new Vector3(-556.69495f, 36.586422f, -670.06946f), 815); obj34.Steps = list58; reference38 = obj34; - ref QuestSequence reference39 = ref span18[1]; + num++; + ref QuestSequence reference39 = ref span57[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -233970,63 +283328,88 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1030438u, new Vector3(-403.67743f, -20.21407f, -589.9901f), 815); + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.Interact, 1030438u, new Vector3(-403.67743f, -20.21407f, -589.9901f), 815); obj35.Steps = list59; reference39 = obj35; - ref QuestSequence reference40 = ref span18[2]; + num++; + ref QuestSequence reference40 = ref span57[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - Span span19 = CollectionsMarshal.AsSpan(list60); - ref QuestStep reference41 = ref span19[0]; + index2 = 3; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + ref QuestStep reference41 = ref span60[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1027918u, new Vector3(-389.76123f, -17.724838f, -586.1448f), 815); num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span20 = CollectionsMarshal.AsSpan(list61); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span61 = CollectionsMarshal.AsSpan(list61); + num4 = 0; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list61; reference41 = questStep5; - ref QuestStep reference42 = ref span19[1]; + num2++; + ref QuestStep reference42 = ref span60[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1027919u, new Vector3(-404.50146f, -17.85281f, -549.95044f), 815); - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span21 = CollectionsMarshal.AsSpan(list62); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + Span span62 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list62; reference42 = questStep6; - ref QuestStep reference43 = ref span19[2]; + num2++; + ref QuestStep reference43 = ref span60[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1027917u, new Vector3(-448.3559f, -20.016521f, -554.6807f), 815); num3 = 6; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span22 = CollectionsMarshal.AsSpan(list63); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span63 = CollectionsMarshal.AsSpan(list63); + num4 = 0; + span63[num4] = null; + num4++; + span63[num4] = null; + num4++; + span63[num4] = null; + num4++; + span63[num4] = null; + num4++; + span63[num4] = null; + num4++; + span63[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list63; reference43 = questStep7; obj36.Steps = list60; reference40 = obj36; - ref QuestSequence reference44 = ref span18[3]; + num++; + ref QuestSequence reference44 = ref span57[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -234034,12 +283417,16 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list64)[0]; + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + ref QuestStep reference45 = ref span64[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.CompleteQuest, 1029617u, new Vector3(-419.39423f, -20.145794f, -578.88153f), 815); - num3 = 1; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = new DialogueChoice + num4 = 1; + List list65 = new List(num4); + CollectionsMarshal.SetCount(list65, num4); + Span span65 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span65[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD105_03610_Q1_000_000"), @@ -234056,24 +283443,30 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "liza"; + Span span66 = CollectionsMarshal.AsSpan(list66); + index = 0; + span66[index] = "liza"; questRoot11.Author = list66; - num = 7; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span23 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference46 = ref span23[0]; + index = 7; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + Span span67 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference46 = ref span67[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030438u, new Vector3(-403.67743f, -20.21407f, -589.9901f), 815); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030438u, new Vector3(-403.67743f, -20.21407f, -589.9901f), 815); obj38.Steps = list68; reference46 = obj38; - ref QuestSequence reference47 = ref span23[1]; + num++; + ref QuestSequence reference47 = ref span67[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -234081,21 +283474,27 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1030947u, new Vector3(-461.9364f, -1.2183915f, -372.06073f), 815); + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.Interact, 1030947u, new Vector3(-461.9364f, -1.2183915f, -372.06073f), 815); obj39.Steps = list69; reference47 = obj39; - ref QuestSequence reference48 = ref span23[2]; + num++; + ref QuestSequence reference48 = ref span67[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1029620u, new Vector3(-2.0905762f, 45.61908f, -583.48975f), 815); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.Interact, 1029620u, new Vector3(-2.0905762f, 45.61908f, -583.48975f), 815); obj40.Steps = list70; reference48 = obj40; - ref QuestSequence reference49 = ref span23[3]; + num++; + ref QuestSequence reference49 = ref span67[num]; QuestSequence obj41 = new QuestSequence { Sequence = 3 @@ -234103,63 +283502,88 @@ public static class AssemblyQuestLoader num2 = 3; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span24 = CollectionsMarshal.AsSpan(list71); - ref QuestStep reference50 = ref span24[0]; + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + ref QuestStep reference50 = ref span71[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2009906u, new Vector3(-0.7172241f, 48.722046f, -529.80853f), 815); num3 = 6; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - Span span25 = CollectionsMarshal.AsSpan(list72); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span72 = CollectionsMarshal.AsSpan(list72); + num4 = 0; + span72[num4] = null; + num4++; + span72[num4] = null; + num4++; + span72[num4] = null; + num4++; + span72[num4] = null; + num4++; + span72[num4] = null; + num4++; + span72[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list72; reference50 = questStep9; - ref QuestStep reference51 = ref span24[1]; + index2++; + ref QuestStep reference51 = ref span71[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2009904u, new Vector3(19.821411f, 46.189087f, -575.0973f), 815); - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span26 = CollectionsMarshal.AsSpan(list73); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list73 = new List(num4); + CollectionsMarshal.SetCount(list73, num4); + Span span73 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list73; reference51 = questStep10; - ref QuestStep reference52 = ref span24[2]; + index2++; + ref QuestStep reference52 = ref span71[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2009905u, new Vector3(13.443176f, 47.89807f, -618.12775f), 815); num3 = 6; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - Span span27 = CollectionsMarshal.AsSpan(list74); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span74 = CollectionsMarshal.AsSpan(list74); + num4 = 0; + span74[num4] = null; + num4++; + span74[num4] = null; + num4++; + span74[num4] = null; + num4++; + span74[num4] = null; + num4++; + span74[num4] = null; + num4++; + span74[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list74; reference52 = questStep11; obj41.Steps = list71; reference49 = obj41; - ref QuestSequence reference53 = ref span23[4]; + num++; + ref QuestSequence reference53 = ref span67[num]; QuestSequence obj42 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1029622u, new Vector3(80.338745f, 45.622585f, -641.5351f), 815); + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.Interact, 1029622u, new Vector3(80.338745f, 45.622585f, -641.5351f), 815); obj42.Steps = list75; reference53 = obj42; - ref QuestSequence reference54 = ref span23[5]; + num++; + ref QuestSequence reference54 = ref span67[num]; QuestSequence obj43 = new QuestSequence { Sequence = 5 @@ -234167,28 +283591,35 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list76)[0]; + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + ref QuestStep reference55 = ref span76[index2]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, 1029623u, new Vector3(-62.760437f, 45.619083f, -606.3783f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = 10882u; + num4 = 1; + List list77 = new List(num4); + CollectionsMarshal.SetCount(list77, num4); + Span span77 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + span77[num3] = 10882u; obj44.KillEnemyDataIds = list77; reference55 = obj44; obj43.Steps = list76; reference54 = obj43; - ref QuestSequence reference56 = ref span23[6]; + num++; + ref QuestSequence reference56 = ref span67[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029624u, new Vector3(90.196045f, 45.72853f, -598.90137f), 815); + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029624u, new Vector3(90.196045f, 45.72853f, -598.90137f), 815); obj45.Steps = list78; reference56 = obj45; questRoot11.QuestSequence = list67; @@ -234198,13 +283629,16 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + Span span79 = CollectionsMarshal.AsSpan(list79); + index = 0; + span79[index] = "liza"; questRoot12.Author = list79; - num = 8; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span28 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference57 = ref span28[0]; + index = 8; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + Span span80 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference57 = ref span80[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -234212,24 +283646,30 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029629u, new Vector3(88.48706f, 45.737045f, -595.9106f), 815) + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029629u, new Vector3(88.48706f, 45.737045f, -595.9106f), 815) { StopDistance = 7f }; obj46.Steps = list81; reference57 = obj46; - ref QuestSequence reference58 = ref span28[1]; + num++; + ref QuestSequence reference58 = ref span80[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1029631u, new Vector3(-94.65173f, 41.257984f, -537.59064f), 815); + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.Interact, 1029631u, new Vector3(-94.65173f, 41.257984f, -537.59064f), 815); obj47.Steps = list82; reference58 = obj47; - ref QuestSequence reference59 = ref span28[2]; + num++; + ref QuestSequence reference59 = ref span80[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -234237,23 +283677,28 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1029632u, new Vector3(-136.36993f, 28.480484f, -374.99048f), 815); + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.Interact, 1029632u, new Vector3(-136.36993f, 28.480484f, -374.99048f), 815); obj48.Steps = list83; reference59 = obj48; - ref QuestSequence reference60 = ref span28[3]; + num++; + ref QuestSequence reference60 = ref span80[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - Span span29 = CollectionsMarshal.AsSpan(list84); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-158.38751f, 25.202963f, -285.0746f), 815) + index2 = 2; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-158.38751f, 25.202963f, -285.0746f), 815) { Sprint = true }; - ref QuestStep reference61 = ref span29[1]; + num2++; + ref QuestStep reference61 = ref span84[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(-276.48285f, 18.86909f, -244.22473f), 815) { StopDistance = 1f, @@ -234262,12 +283707,15 @@ public static class AssemblyQuestLoader num3 = 1; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = 11138u; + Span span85 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span85[num4] = 11138u; obj50.KillEnemyDataIds = list85; reference61 = obj50; obj49.Steps = list84; reference60 = obj49; - ref QuestSequence reference62 = ref span28[4]; + num++; + ref QuestSequence reference62 = ref span80[num]; QuestSequence obj51 = new QuestSequence { Sequence = 4 @@ -234275,24 +283723,30 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1029633u, new Vector3(-278.03473f, 19.067781f, -249.19507f), 815) + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.Interact, 1029633u, new Vector3(-278.03473f, 19.067781f, -249.19507f), 815) { StopDistance = 7f }; obj51.Steps = list86; reference62 = obj51; - ref QuestSequence reference63 = ref span28[5]; + num++; + ref QuestSequence reference63 = ref span80[num]; QuestSequence obj52 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1029634u, new Vector3(-479.7895f, 45.16138f, -213.6416f), 815); + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.Interact, 1029634u, new Vector3(-479.7895f, 45.16138f, -213.6416f), 815); obj52.Steps = list87; reference63 = obj52; - ref QuestSequence reference64 = ref span28[6]; + num++; + ref QuestSequence reference64 = ref span80[num]; QuestSequence obj53 = new QuestSequence { Sequence = 6 @@ -234300,18 +283754,23 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1029635u, new Vector3(-479.45374f, 47.777702f, -189.77649f), 815); + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.Interact, 1029635u, new Vector3(-479.45374f, 47.777702f, -189.77649f), 815); obj53.Steps = list88; reference64 = obj53; - ref QuestSequence reference65 = ref span28[7]; + num++; + ref QuestSequence reference65 = ref span80[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029637u, new Vector3(-483.23798f, 45.473377f, -211.3222f), 815); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029637u, new Vector3(-483.23798f, 45.473377f, -211.3222f), 815); obj54.Steps = list89; reference65 = obj54; questRoot12.QuestSequence = list80; @@ -234321,13 +283780,16 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "liza"; + Span span90 = CollectionsMarshal.AsSpan(list90); + index = 0; + span90[index] = "liza"; questRoot13.Author = list90; - num = 7; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span30 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference66 = ref span30[0]; + index = 7; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + Span span91 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference66 = ref span91[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -234335,26 +283797,32 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029637u, new Vector3(-483.23798f, 45.473377f, -211.3222f), 815); + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029637u, new Vector3(-483.23798f, 45.473377f, -211.3222f), 815); obj55.Steps = list92; reference66 = obj55; - ref QuestSequence reference67 = ref span30[1]; + num++; + ref QuestSequence reference67 = ref span91[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span31 = CollectionsMarshal.AsSpan(list93); - span31[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 815) + index2 = 2; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 815) { Aetheryte = EAetheryteLocation.AmhAraengTwine }; - span31[1] = new QuestStep(EInteractionType.Interact, 1029640u, new Vector3(-545.31165f, 45.512848f, -230.6402f), 815); + num2++; + span93[num2] = new QuestStep(EInteractionType.Interact, 1029640u, new Vector3(-545.31165f, 45.512848f, -230.6402f), 815); obj56.Steps = list93; reference67 = obj56; - ref QuestSequence reference68 = ref span30[2]; + num++; + ref QuestSequence reference68 = ref span91[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -234362,16 +283830,20 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list94)[0]; + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + ref QuestStep reference69 = ref span94[index2]; QuestStep obj58 = new QuestStep(EInteractionType.UseItem, null, new Vector3(-410.60504f, 46.19129f, -245.38031f), 815) { StopDistance = 2f, ItemId = 2002559u }; - num3 = 1; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice + num4 = 1; + List list95 = new List(num4); + CollectionsMarshal.SetCount(list95, num4); + Span span95 = CollectionsMarshal.AsSpan(list95); + num3 = 0; + span95[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD108_03613_Q1_000_000"), @@ -234381,26 +283853,31 @@ public static class AssemblyQuestLoader reference69 = obj58; obj57.Steps = list94; reference68 = obj57; - ref QuestSequence reference70 = ref span30[3]; + num++; + ref QuestSequence reference70 = ref span91[num]; QuestSequence obj59 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - Span span32 = CollectionsMarshal.AsSpan(list96); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-341.64484f, 46.191288f, -244.7952f), 815); - span32[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010050u, new Vector3(-343.80103f, 46.98242f, -235.43152f), 815) + index2 = 4; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-341.64484f, 46.191288f, -244.7952f), 815); + num2++; + span96[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010050u, new Vector3(-343.80103f, 46.98242f, -235.43152f), 815) { DisableNavmesh = true, AetherCurrentId = 2818259u }; - span32[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-341.64484f, 46.191288f, -244.7952f), 815) + num2++; + span96[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-341.64484f, 46.191288f, -244.7952f), 815) { DisableNavmesh = true }; - ref QuestStep reference71 = ref span32[3]; + num2++; + ref QuestStep reference71 = ref span96[num2]; QuestStep obj60 = new QuestStep(EInteractionType.UseItem, null, new Vector3(-226.30658f, 46.19127f, -247.21143f), 815) { StopDistance = 2f, @@ -234409,7 +283886,9 @@ public static class AssemblyQuestLoader num3 = 1; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - CollectionsMarshal.AsSpan(list97)[0] = new DialogueChoice + Span span97 = CollectionsMarshal.AsSpan(list97); + num4 = 0; + span97[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD108_03613_Q2_000_000"), @@ -234419,7 +283898,8 @@ public static class AssemblyQuestLoader reference71 = obj60; obj59.Steps = list96; reference70 = obj59; - ref QuestSequence reference72 = ref span30[4]; + num++; + ref QuestSequence reference72 = ref span91[num]; QuestSequence obj61 = new QuestSequence { Sequence = 4 @@ -234427,87 +283907,118 @@ public static class AssemblyQuestLoader num2 = 3; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span33 = CollectionsMarshal.AsSpan(list98); - ref QuestStep reference73 = ref span33[0]; + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + ref QuestStep reference73 = ref span98[index2]; QuestStep obj62 = new QuestStep(EInteractionType.Combat, 2009910u, new Vector3(-170.48907f, 46.189087f, -279.56055f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - CollectionsMarshal.AsSpan(list99)[0] = 10883u; + num4 = 1; + List list99 = new List(num4); + CollectionsMarshal.SetCount(list99, num4); + Span span99 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span99[num3] = 10883u; obj62.KillEnemyDataIds = list99; num3 = 6; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - Span span34 = CollectionsMarshal.AsSpan(list100); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span100 = CollectionsMarshal.AsSpan(list100); + num4 = 0; + span100[num4] = null; + num4++; + span100[num4] = null; + num4++; + span100[num4] = null; + num4++; + span100[num4] = null; + num4++; + span100[num4] = null; + num4++; + span100[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj62.CompletionQuestVariablesFlags = list100; reference73 = obj62; - ref QuestStep reference74 = ref span33[1]; + index2++; + ref QuestStep reference74 = ref span98[index2]; QuestStep obj63 = new QuestStep(EInteractionType.Combat, 2009911u, new Vector3(-181.5061f, 46.189087f, -362.6917f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = 10883u; + num4 = 1; + List list101 = new List(num4); + CollectionsMarshal.SetCount(list101, num4); + Span span101 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span101[num3] = 10883u; obj63.KillEnemyDataIds = list101; num3 = 6; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span35 = CollectionsMarshal.AsSpan(list102); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span102 = CollectionsMarshal.AsSpan(list102); + num4 = 0; + span102[num4] = null; + num4++; + span102[num4] = null; + num4++; + span102[num4] = null; + num4++; + span102[num4] = null; + num4++; + span102[num4] = null; + num4++; + span102[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj63.CompletionQuestVariablesFlags = list102; reference74 = obj63; - ref QuestStep reference75 = ref span33[2]; + index2++; + ref QuestStep reference75 = ref span98[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, 2009912u, new Vector3(-127.58075f, 45.914307f, -456.59576f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = 10883u; + num4 = 1; + List list103 = new List(num4); + CollectionsMarshal.SetCount(list103, num4); + Span span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span103[num3] = 10883u; obj64.KillEnemyDataIds = list103; num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span36 = CollectionsMarshal.AsSpan(list104); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span104 = CollectionsMarshal.AsSpan(list104); + num4 = 0; + span104[num4] = null; + num4++; + span104[num4] = null; + num4++; + span104[num4] = null; + num4++; + span104[num4] = null; + num4++; + span104[num4] = null; + num4++; + span104[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj64.CompletionQuestVariablesFlags = list104; reference75 = obj64; obj61.Steps = list98; reference72 = obj61; - ref QuestSequence reference76 = ref span30[5]; + num++; + ref QuestSequence reference76 = ref span91[num]; QuestSequence obj65 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1029642u, new Vector3(-226.30658f, 46.19127f, -247.21143f), 815); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.Interact, 1029642u, new Vector3(-226.30658f, 46.19127f, -247.21143f), 815); obj65.Steps = list105; reference76 = obj65; - ref QuestSequence reference77 = ref span30[6]; + num++; + ref QuestSequence reference77 = ref span91[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -234515,7 +284026,9 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029643u, new Vector3(-453.60498f, 45.48443f, -236.86578f), 815) + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029643u, new Vector3(-453.60498f, 45.48443f, -236.86578f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; @@ -234528,24 +284041,30 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + Span span107 = CollectionsMarshal.AsSpan(list107); + index = 0; + span107[index] = "liza"; questRoot14.Author = list107; - num = 4; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span37 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference78 = ref span37[0]; + index = 4; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + Span span108 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference78 = ref span108[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029643u, new Vector3(-453.60498f, 45.48443f, -236.86578f), 815); + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029643u, new Vector3(-453.60498f, 45.48443f, -236.86578f), 815); obj67.Steps = list109; reference78 = obj67; - ref QuestSequence reference79 = ref span37[1]; + num++; + ref QuestSequence reference79 = ref span108[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -234553,26 +284072,33 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1029645u, new Vector3(-503.16626f, 45.71098f, -258.32f), 815); + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.Interact, 1029645u, new Vector3(-503.16626f, 45.71098f, -258.32f), 815); obj68.Steps = list110; reference79 = obj68; - ref QuestSequence reference80 = ref span37[2]; + num++; + ref QuestSequence reference80 = ref span108[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list111)[0]; + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + ref QuestStep reference81 = ref span111[num2]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, null, new Vector3(-395.11795f, 24.01915f, -200.26707f), 815) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - CollectionsMarshal.AsSpan(list112)[0] = new ComplexCombatData + num4 = 1; + List list112 = new List(num4); + CollectionsMarshal.SetCount(list112, num4); + Span span112 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span112[num3] = new ComplexCombatData { DataId = 10347u, MinimumKillCount = 3u, @@ -234583,7 +284109,8 @@ public static class AssemblyQuestLoader reference81 = obj70; obj69.Steps = list111; reference80 = obj69; - ref QuestSequence reference82 = ref span37[3]; + num++; + ref QuestSequence reference82 = ref span108[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -234591,7 +284118,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029761u, new Vector3(-503.19678f, 45.72556f, -254.01697f), 815); + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029761u, new Vector3(-503.19678f, 45.72556f, -254.01697f), 815); obj71.Steps = list113; reference82 = obj71; questRoot14.QuestSequence = list108; @@ -234601,27 +284130,33 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "liza"; + Span span114 = CollectionsMarshal.AsSpan(list114); + index = 0; + span114[index] = "liza"; questRoot15.Author = list114; - num = 4; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span38 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference83 = ref span38[0]; + index = 4; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + Span span115 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference83 = ref span115[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030569u, new Vector3(-504.47852f, 45.822144f, -250.44635f), 815) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030569u, new Vector3(-504.47852f, 45.822144f, -250.44635f), 815) { StopDistance = 5f }; obj72.Steps = list116; reference83 = obj72; - ref QuestSequence reference84 = ref span38[1]; + num++; + ref QuestSequence reference84 = ref span115[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -234629,24 +284164,30 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1029639u, new Vector3(-478.6908f, 47.777702f, -191.36346f), 815); + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.Interact, 1029639u, new Vector3(-478.6908f, 47.777702f, -191.36346f), 815); obj73.Steps = list117; reference84 = obj73; - ref QuestSequence reference85 = ref span38[2]; + num++; + ref QuestSequence reference85 = ref span115[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1029649u, new Vector3(-549.5842f, 49.964603f, -189.04407f), 815) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.Interact, 1029649u, new Vector3(-549.5842f, 49.964603f, -189.04407f), 815) { StopDistance = 5f }; obj74.Steps = list118; reference85 = obj74; - ref QuestSequence reference86 = ref span38[3]; + num++; + ref QuestSequence reference86 = ref span115[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -234654,7 +284195,9 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029755u, new Vector3(-462.54675f, 45.367775f, -205.31018f), 815); + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029755u, new Vector3(-462.54675f, 45.367775f, -205.31018f), 815); obj75.Steps = list119; reference86 = obj75; questRoot15.QuestSequence = list115; @@ -234664,24 +284207,30 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "liza"; + Span span120 = CollectionsMarshal.AsSpan(list120); + index = 0; + span120[index] = "liza"; questRoot16.Author = list120; - num = 7; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - Span span39 = CollectionsMarshal.AsSpan(list121); - ref QuestSequence reference87 = ref span39[0]; + index = 7; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + Span span121 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference87 = ref span121[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029755u, new Vector3(-462.54675f, 45.367775f, -205.31018f), 815); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029755u, new Vector3(-462.54675f, 45.367775f, -205.31018f), 815); obj76.Steps = list122; reference87 = obj76; - ref QuestSequence reference88 = ref span39[1]; + num++; + ref QuestSequence reference88 = ref span121[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -234689,26 +284238,32 @@ public static class AssemblyQuestLoader num2 = 2; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span40 = CollectionsMarshal.AsSpan(list123); - span40[0] = new QuestStep(EInteractionType.AcceptQuest, 1027927u, new Vector3(-476.95123f, 47.78906f, -200.61041f), 815) + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027927u, new Vector3(-476.95123f, 47.78906f, -200.61041f), 815) { PickUpQuestId = new QuestId(3511) }; - span40[1] = new QuestStep(EInteractionType.Interact, 1029756u, new Vector3(-344.96075f, 18.147886f, 40.66516f), 815); + index2++; + span123[index2] = new QuestStep(EInteractionType.Interact, 1029756u, new Vector3(-344.96075f, 18.147886f, 40.66516f), 815); obj77.Steps = list123; reference88 = obj77; - ref QuestSequence reference89 = ref span39[2]; + num++; + ref QuestSequence reference89 = ref span121[num]; QuestSequence obj78 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1029757u, new Vector3(-595.72754f, 5.317615f, 38.16284f), 815); + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.Interact, 1029757u, new Vector3(-595.72754f, 5.317615f, 38.16284f), 815); obj78.Steps = list124; reference89 = obj78; - ref QuestSequence reference90 = ref span39[3]; + num++; + ref QuestSequence reference90 = ref span121[num]; QuestSequence obj79 = new QuestSequence { Sequence = 3 @@ -234716,24 +284271,30 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1029758u, new Vector3(-594.81195f, 5.3112187f, 41.45874f), 815) + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.Interact, 1029758u, new Vector3(-594.81195f, 5.3112187f, 41.45874f), 815) { StopDistance = 7f }; obj79.Steps = list125; reference90 = obj79; - ref QuestSequence reference91 = ref span39[4]; + num++; + ref QuestSequence reference91 = ref span121[num]; QuestSequence obj80 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 2009913u, new Vector3(-641.4435f, -1.4191895f, 147.29529f), 815); + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.Interact, 2009913u, new Vector3(-641.4435f, -1.4191895f, 147.29529f), 815); obj80.Steps = list126; reference91 = obj80; - ref QuestSequence reference92 = ref span39[5]; + num++; + ref QuestSequence reference92 = ref span121[num]; QuestSequence obj81 = new QuestSequence { Sequence = 5 @@ -234741,12 +284302,16 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list127)[0]; + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + ref QuestStep reference93 = ref span127[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1029758u, new Vector3(-594.81195f, 5.3112187f, 41.45874f), 815); num3 = 1; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = new DialogueChoice + Span span128 = CollectionsMarshal.AsSpan(list128); + num4 = 0; + span128[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD111_03616_Q1_000_001"), @@ -234756,15 +284321,18 @@ public static class AssemblyQuestLoader reference93 = questStep12; obj81.Steps = list127; reference92 = obj81; - ref QuestSequence reference94 = ref span39[6]; + num++; + ref QuestSequence reference94 = ref span121[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029757u, new Vector3(-595.72754f, 5.317615f, 38.16284f), 815) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span129[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029757u, new Vector3(-595.72754f, 5.317615f, 38.16284f), 815) { StopDistance = 7f }; @@ -234777,13 +284345,16 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + Span span130 = CollectionsMarshal.AsSpan(list130); + index = 0; + span130[index] = "liza"; questRoot17.Author = list130; - num = 6; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span41 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference95 = ref span41[0]; + index = 6; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + Span span131 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference95 = ref span131[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -234791,24 +284362,30 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029757u, new Vector3(-595.72754f, 5.317615f, 38.16284f), 815) + Span span132 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span132[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029757u, new Vector3(-595.72754f, 5.317615f, 38.16284f), 815) { StopDistance = 7f }; obj83.Steps = list132; reference95 = obj83; - ref QuestSequence reference96 = ref span41[1]; + num++; + ref QuestSequence reference96 = ref span131[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1029759u, new Vector3(-342.33618f, 19.004045f, 77.04285f), 815); + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.Interact, 1029759u, new Vector3(-342.33618f, 19.004045f, 77.04285f), 815); obj84.Steps = list133; reference96 = obj84; - ref QuestSequence reference97 = ref span41[2]; + num++; + ref QuestSequence reference97 = ref span131[num]; QuestSequence obj85 = new QuestSequence { Sequence = 2 @@ -234816,36 +284393,47 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2010009u, new Vector3(-321.3092f, 20.004517f, 99.83972f), 815); + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span134[index2] = new QuestStep(EInteractionType.Interact, 2010009u, new Vector3(-321.3092f, 20.004517f, 99.83972f), 815); obj85.Steps = list134; reference97 = obj85; - ref QuestSequence reference98 = ref span41[3]; + num++; + ref QuestSequence reference98 = ref span131[num]; QuestSequence obj86 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - Span span42 = CollectionsMarshal.AsSpan(list135); - ref QuestStep reference99 = ref span42[0]; + index2 = 3; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref QuestStep reference99 = ref span135[num2]; QuestStep obj87 = new QuestStep(EInteractionType.UseItem, 2009918u, new Vector3(-453.08612f, 11.703674f, 185.5039f), 815) { ItemId = 2002562u }; - num3 = 6; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span43 = CollectionsMarshal.AsSpan(list136); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list136 = new List(num4); + CollectionsMarshal.SetCount(list136, num4); + Span span136 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj87.CompletionQuestVariablesFlags = list136; reference99 = obj87; - ref QuestStep reference100 = ref span42[1]; + num2++; + ref QuestStep reference100 = ref span135[num2]; QuestStep obj88 = new QuestStep(EInteractionType.UseItem, 2009916u, new Vector3(-610.4677f, -0.65618896f, 135.9425f), 815) { ItemId = 2002562u @@ -234853,35 +284441,49 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - Span span44 = CollectionsMarshal.AsSpan(list137); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span137 = CollectionsMarshal.AsSpan(list137); + num4 = 0; + span137[num4] = null; + num4++; + span137[num4] = null; + num4++; + span137[num4] = null; + num4++; + span137[num4] = null; + num4++; + span137[num4] = null; + num4++; + span137[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj88.CompletionQuestVariablesFlags = list137; reference100 = obj88; - ref QuestStep reference101 = ref span42[2]; + num2++; + ref QuestStep reference101 = ref span135[num2]; QuestStep obj89 = new QuestStep(EInteractionType.UseItem, 2009917u, new Vector3(-426.65753f, 17.196838f, 5.142273f), 815) { ItemId = 2002562u }; - num3 = 6; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span45 = CollectionsMarshal.AsSpan(list138); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list138 = new List(num4); + CollectionsMarshal.SetCount(list138, num4); + Span span138 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj89.CompletionQuestVariablesFlags = list138; reference101 = obj89; obj86.Steps = list135; reference98 = obj86; - ref QuestSequence reference102 = ref span41[4]; + num++; + ref QuestSequence reference102 = ref span131[num]; QuestSequence obj90 = new QuestSequence { Sequence = 4 @@ -234889,8 +284491,9 @@ public static class AssemblyQuestLoader num2 = 7; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span46 = CollectionsMarshal.AsSpan(list139); - ref QuestStep reference103 = ref span46[0]; + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + ref QuestStep reference103 = ref span139[index2]; QuestStep obj91 = new QuestStep(EInteractionType.Combat, 2010277u, new Vector3(-411.0628f, 16.891724f, 9.536865f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -234898,21 +284501,30 @@ public static class AssemblyQuestLoader num3 = 1; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - CollectionsMarshal.AsSpan(list140)[0] = 10884u; + Span span140 = CollectionsMarshal.AsSpan(list140); + num4 = 0; + span140[num4] = 10884u; obj91.KillEnemyDataIds = list140; - num3 = 6; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - Span span47 = CollectionsMarshal.AsSpan(list141); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list141 = new List(num4); + CollectionsMarshal.SetCount(list141, num4); + Span span141 = CollectionsMarshal.AsSpan(list141); + num3 = 0; + span141[num3] = null; + num3++; + span141[num3] = null; + num3++; + span141[num3] = null; + num3++; + span141[num3] = null; + num3++; + span141[num3] = null; + num3++; + span141[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj91.CompletionQuestVariablesFlags = list141; reference103 = obj91; - ref QuestStep reference104 = ref span46[1]; + index2++; + ref QuestStep reference104 = ref span139[index2]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, 2010279u, new Vector3(-492.8512f, 10.574402f, 9.4453125f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -234920,21 +284532,30 @@ public static class AssemblyQuestLoader num3 = 1; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = 10884u; + Span span142 = CollectionsMarshal.AsSpan(list142); + num4 = 0; + span142[num4] = 10884u; obj92.KillEnemyDataIds = list142; - num3 = 6; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - Span span48 = CollectionsMarshal.AsSpan(list143); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list143 = new List(num4); + CollectionsMarshal.SetCount(list143, num4); + Span span143 = CollectionsMarshal.AsSpan(list143); + num3 = 0; + span143[num3] = null; + num3++; + span143[num3] = null; + num3++; + span143[num3] = null; + num3++; + span143[num3] = null; + num3++; + span143[num3] = null; + num3++; + span143[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj92.CompletionQuestVariablesFlags = list143; reference104 = obj92; - ref QuestStep reference105 = ref span46[2]; + index2++; + ref QuestStep reference105 = ref span139[index2]; QuestStep obj93 = new QuestStep(EInteractionType.Combat, 2010276u, new Vector3(-580.89575f, 6.088318f, 119.79846f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -234942,21 +284563,30 @@ public static class AssemblyQuestLoader num3 = 1; List list144 = new List(num3); CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = 10884u; + Span span144 = CollectionsMarshal.AsSpan(list144); + num4 = 0; + span144[num4] = 10884u; obj93.KillEnemyDataIds = list144; - num3 = 6; - List list145 = new List(num3); - CollectionsMarshal.SetCount(list145, num3); - Span span49 = CollectionsMarshal.AsSpan(list145); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list145 = new List(num4); + CollectionsMarshal.SetCount(list145, num4); + Span span145 = CollectionsMarshal.AsSpan(list145); + num3 = 0; + span145[num3] = null; + num3++; + span145[num3] = null; + num3++; + span145[num3] = null; + num3++; + span145[num3] = null; + num3++; + span145[num3] = null; + num3++; + span145[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj93.CompletionQuestVariablesFlags = list145; reference105 = obj93; - ref QuestStep reference106 = ref span46[3]; + index2++; + ref QuestStep reference106 = ref span139[index2]; QuestStep obj94 = new QuestStep(EInteractionType.Combat, 2010275u, new Vector3(-589.1356f, 1.7547607f, 179.18665f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -234964,21 +284594,30 @@ public static class AssemblyQuestLoader num3 = 1; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = 10884u; + Span span146 = CollectionsMarshal.AsSpan(list146); + num4 = 0; + span146[num4] = 10884u; obj94.KillEnemyDataIds = list146; - num3 = 6; - List list147 = new List(num3); - CollectionsMarshal.SetCount(list147, num3); - Span span50 = CollectionsMarshal.AsSpan(list147); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List list147 = new List(num4); + CollectionsMarshal.SetCount(list147, num4); + Span span147 = CollectionsMarshal.AsSpan(list147); + num3 = 0; + span147[num3] = null; + num3++; + span147[num3] = null; + num3++; + span147[num3] = null; + num3++; + span147[num3] = null; + num3++; + span147[num3] = null; + num3++; + span147[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); obj94.CompletionQuestVariablesFlags = list147; reference106 = obj94; - ref QuestStep reference107 = ref span46[4]; + index2++; + ref QuestStep reference107 = ref span139[index2]; QuestStep obj95 = new QuestStep(EInteractionType.Combat, 2010274u, new Vector3(-627.039f, 0.93078613f, 131.45642f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -234986,21 +284625,30 @@ public static class AssemblyQuestLoader num3 = 1; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - CollectionsMarshal.AsSpan(list148)[0] = 10884u; + Span span148 = CollectionsMarshal.AsSpan(list148); + num4 = 0; + span148[num4] = 10884u; obj95.KillEnemyDataIds = list148; - num3 = 6; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - Span span51 = CollectionsMarshal.AsSpan(list149); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + num4 = 6; + List list149 = new List(num4); + CollectionsMarshal.SetCount(list149, num4); + Span span149 = CollectionsMarshal.AsSpan(list149); + num3 = 0; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj95.CompletionQuestVariablesFlags = list149; reference107 = obj95; - ref QuestStep reference108 = ref span46[5]; + index2++; + ref QuestStep reference108 = ref span139[index2]; QuestStep obj96 = new QuestStep(EInteractionType.Combat, 2010281u, new Vector3(-503.0747f, 10.666016f, 191.85156f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -235008,21 +284656,30 @@ public static class AssemblyQuestLoader num3 = 1; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = 10884u; + Span span150 = CollectionsMarshal.AsSpan(list150); + num4 = 0; + span150[num4] = 10884u; obj96.KillEnemyDataIds = list150; - num3 = 6; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - Span span52 = CollectionsMarshal.AsSpan(list151); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list151 = new List(num4); + CollectionsMarshal.SetCount(list151, num4); + Span span151 = CollectionsMarshal.AsSpan(list151); + num3 = 0; + span151[num3] = null; + num3++; + span151[num3] = null; + num3++; + span151[num3] = null; + num3++; + span151[num3] = null; + num3++; + span151[num3] = null; + num3++; + span151[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list151; reference108 = obj96; - ref QuestStep reference109 = ref span46[6]; + index2++; + ref QuestStep reference109 = ref span139[index2]; QuestStep obj97 = new QuestStep(EInteractionType.Combat, 2010283u, new Vector3(-419.21112f, 11.9782715f, 181.41443f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -235030,31 +284687,42 @@ public static class AssemblyQuestLoader num3 = 1; List list152 = new List(num3); CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = 10884u; + Span span152 = CollectionsMarshal.AsSpan(list152); + num4 = 0; + span152[num4] = 10884u; obj97.KillEnemyDataIds = list152; - num3 = 6; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - Span span53 = CollectionsMarshal.AsSpan(list153); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list153 = new List(num4); + CollectionsMarshal.SetCount(list153, num4); + Span span153 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj97.CompletionQuestVariablesFlags = list153; reference109 = obj97; obj90.Steps = list139; reference102 = obj90; - ref QuestSequence reference110 = ref span41[5]; + num++; + ref QuestSequence reference110 = ref span131[num]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029759u, new Vector3(-342.33618f, 19.004045f, 77.04285f), 815); + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029759u, new Vector3(-342.33618f, 19.004045f, 77.04285f), 815); obj98.Steps = list154; reference110 = obj98; questRoot17.QuestSequence = list131; @@ -235064,13 +284732,16 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "liza"; + Span span155 = CollectionsMarshal.AsSpan(list155); + index = 0; + span155[index] = "liza"; questRoot18.Author = list155; - num = 4; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span54 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference111 = ref span54[0]; + index = 4; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + Span span156 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference111 = ref span156[num]; QuestSequence obj99 = new QuestSequence { Sequence = 0 @@ -235078,24 +284749,30 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029759u, new Vector3(-342.33618f, 19.004045f, 77.04285f), 815); + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029759u, new Vector3(-342.33618f, 19.004045f, 77.04285f), 815); obj99.Steps = list157; reference111 = obj99; - ref QuestSequence reference112 = ref span54[1]; + num++; + ref QuestSequence reference112 = ref span156[num]; QuestSequence obj100 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1029754u, new Vector3(-543.6942f, 49.964603f, -172.47278f), 815) + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span158[num2] = new QuestStep(EInteractionType.Interact, 1029754u, new Vector3(-543.6942f, 49.964603f, -172.47278f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; obj100.Steps = list158; reference112 = obj100; - ref QuestSequence reference113 = ref span54[2]; + num++; + ref QuestSequence reference113 = ref span156[num]; QuestSequence obj101 = new QuestSequence { Sequence = 2 @@ -235103,18 +284780,23 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1029761u, new Vector3(-503.19678f, 45.72556f, -254.01697f), 815); + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.Interact, 1029761u, new Vector3(-503.19678f, 45.72556f, -254.01697f), 815); obj101.Steps = list159; reference113 = obj101; - ref QuestSequence reference114 = ref span54[3]; + num++; + ref QuestSequence reference114 = ref span156[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029638u, new Vector3(-484.48926f, 45.553265f, -212.29883f), 815); + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029638u, new Vector3(-484.48926f, 45.553265f, -212.29883f), 815); obj102.Steps = list160; reference114 = obj102; questRoot18.QuestSequence = list156; @@ -235124,13 +284806,16 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "liza"; + Span span161 = CollectionsMarshal.AsSpan(list161); + index = 0; + span161[index] = "liza"; questRoot19.Author = list161; - num = 4; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span55 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference115 = ref span55[0]; + index = 4; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + Span span162 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference115 = ref span162[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -235138,29 +284823,35 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029765u, new Vector3(-455.40552f, 45.692944f, -240.52802f), 815); + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span163[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029765u, new Vector3(-455.40552f, 45.692944f, -240.52802f), 815); obj103.Steps = list163; reference115 = obj103; - ref QuestSequence reference116 = ref span55[1]; + num++; + ref QuestSequence reference116 = ref span162[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - Span span56 = CollectionsMarshal.AsSpan(list164); - span56[0] = new QuestStep(EInteractionType.AcceptQuest, 1030419u, new Vector3(-506.6148f, 45.614502f, -194.50684f), 815) + index2 = 2; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030419u, new Vector3(-506.6148f, 45.614502f, -194.50684f), 815) { PickUpQuestId = new QuestId(3525) }; - span56[1] = new QuestStep(EInteractionType.Interact, 1029768u, new Vector3(7.9804688f, 45.619083f, -583.7339f), 815) + num2++; + span164[num2] = new QuestStep(EInteractionType.Interact, 1029768u, new Vector3(7.9804688f, 45.619083f, -583.7339f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; obj104.Steps = list164; reference116 = obj104; - ref QuestSequence reference117 = ref span55[2]; + num++; + ref QuestSequence reference117 = ref span162[num]; QuestSequence obj105 = new QuestSequence { Sequence = 2 @@ -235168,27 +284859,34 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - ref QuestStep reference118 = ref CollectionsMarshal.AsSpan(list165)[0]; + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + ref QuestStep reference118 = ref span165[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.SinglePlayerDuty, 1029771u, new Vector3(5.8136597f, 45.61908f, -591.577f), 815); SinglePlayerDutyOptions singlePlayerDutyOptions2 = new SinglePlayerDutyOptions(); num3 = 1; List list166 = new List(num3); CollectionsMarshal.SetCount(list166, num3); - CollectionsMarshal.AsSpan(list166)[0] = "(before Ran'jit wears the veil) AI doesn't pull, doesn't attack and VBM doesn't recognize any AOEs."; + Span span166 = CollectionsMarshal.AsSpan(list166); + num4 = 0; + span166[num4] = "(before Ran'jit wears the veil) AI doesn't pull, doesn't attack and VBM doesn't recognize any AOEs."; singlePlayerDutyOptions2.Notes = list166; questStep13.SinglePlayerDutyOptions = singlePlayerDutyOptions2; reference118 = questStep13; obj105.Steps = list165; reference117 = obj105; - ref QuestSequence reference119 = ref span55[3]; + num++; + ref QuestSequence reference119 = ref span162[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029775u, new Vector3(20.675903f, -91.19236f, 509.78857f), 815); + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029775u, new Vector3(20.675903f, -91.19236f, 509.78857f), 815); obj106.Steps = list167; reference119 = obj106; questRoot19.QuestSequence = list162; @@ -235198,13 +284896,16 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - CollectionsMarshal.AsSpan(list168)[0] = "liza"; + Span span168 = CollectionsMarshal.AsSpan(list168); + index = 0; + span168[index] = "liza"; questRoot20.Author = list168; - num = 4; - List list169 = new List(num); - CollectionsMarshal.SetCount(list169, num); - Span span57 = CollectionsMarshal.AsSpan(list169); - ref QuestSequence reference120 = ref span57[0]; + index = 4; + List list169 = new List(index); + CollectionsMarshal.SetCount(list169, index); + Span span169 = CollectionsMarshal.AsSpan(list169); + num = 0; + ref QuestSequence reference120 = ref span169[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -235212,21 +284913,27 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029775u, new Vector3(20.675903f, -91.19236f, 509.78857f), 815); + Span span170 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span170[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029775u, new Vector3(20.675903f, -91.19236f, 509.78857f), 815); obj107.Steps = list170; reference120 = obj107; - ref QuestSequence reference121 = ref span57[1]; + num++; + ref QuestSequence reference121 = ref span169[num]; QuestSequence obj108 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 2009921u, new Vector3(138.96387f, -77.836365f, 621.3627f), 815); + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + Span span171 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span171[num2] = new QuestStep(EInteractionType.Interact, 2009921u, new Vector3(138.96387f, -77.836365f, 621.3627f), 815); obj108.Steps = list171; reference121 = obj108; - ref QuestSequence reference122 = ref span57[2]; + num++; + ref QuestSequence reference122 = ref span169[num]; QuestSequence obj109 = new QuestSequence { Sequence = 2 @@ -235234,23 +284941,28 @@ public static class AssemblyQuestLoader num2 = 2; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span58 = CollectionsMarshal.AsSpan(list172); - span58[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010052u, new Vector3(158.804f, -61.09476f, 674.8915f), 815) + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010052u, new Vector3(158.804f, -61.09476f, 674.8915f), 815) { AetherCurrentId = 2818261u }; - span58[1] = new QuestStep(EInteractionType.Interact, 1029777u, new Vector3(147.93616f, -75.016464f, 642.359f), 815); + index2++; + span172[index2] = new QuestStep(EInteractionType.Interact, 1029777u, new Vector3(147.93616f, -75.016464f, 642.359f), 815); obj109.Steps = list172; reference122 = obj109; - ref QuestSequence reference123 = ref span57[3]; + num++; + ref QuestSequence reference123 = ref span169[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029778u, new Vector3(-282.1546f, -62.57727f, 380.14795f), 815); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029778u, new Vector3(-282.1546f, -62.57727f, 380.14795f), 815); obj110.Steps = list173; reference123 = obj110; questRoot20.QuestSequence = list169; @@ -235260,13 +284972,16 @@ public static class AssemblyQuestLoader num = 1; List list174 = new List(num); CollectionsMarshal.SetCount(list174, num); - CollectionsMarshal.AsSpan(list174)[0] = "liza"; + Span span174 = CollectionsMarshal.AsSpan(list174); + index = 0; + span174[index] = "liza"; questRoot21.Author = list174; - num = 5; - List list175 = new List(num); - CollectionsMarshal.SetCount(list175, num); - Span span59 = CollectionsMarshal.AsSpan(list175); - ref QuestSequence reference124 = ref span59[0]; + index = 5; + List list175 = new List(index); + CollectionsMarshal.SetCount(list175, index); + Span span175 = CollectionsMarshal.AsSpan(list175); + num = 0; + ref QuestSequence reference124 = ref span175[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -235274,21 +284989,27 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029783u, new Vector3(-281.36108f, -62.86976f, 382.62f), 815); + Span span176 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span176[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029783u, new Vector3(-281.36108f, -62.86976f, 382.62f), 815); obj111.Steps = list176; reference124 = obj111; - ref QuestSequence reference125 = ref span59[1]; + num++; + ref QuestSequence reference125 = ref span175[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 2009922u, new Vector3(-507.59137f, -95.99457f, 490.07385f), 815); + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.Interact, 2009922u, new Vector3(-507.59137f, -95.99457f, 490.07385f), 815); obj112.Steps = list177; reference125 = obj112; - ref QuestSequence reference126 = ref span59[2]; + num++; + ref QuestSequence reference126 = ref span175[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -235296,7 +285017,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Duty, null, null, 815) + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.Duty, null, null, 815) { DutyOptions = new DutyOptions { @@ -235305,19 +285028,23 @@ public static class AssemblyQuestLoader }; obj113.Steps = list178; reference126 = obj113; - span59[3] = new QuestSequence + num++; + span175[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference127 = ref span59[4]; + num++; + ref QuestSequence reference127 = ref span175[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029784u, new Vector3(-429.92297f, -86.054756f, 464.59143f), 815) + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029784u, new Vector3(-429.92297f, -86.054756f, 464.59143f), 815) { StopDistance = 5f }; @@ -235330,13 +285057,16 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - CollectionsMarshal.AsSpan(list180)[0] = "liza"; + Span span180 = CollectionsMarshal.AsSpan(list180); + index = 0; + span180[index] = "liza"; questRoot22.Author = list180; - num = 3; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - Span span60 = CollectionsMarshal.AsSpan(list181); - ref QuestSequence reference128 = ref span60[0]; + index = 3; + List list181 = new List(index); + CollectionsMarshal.SetCount(list181, index); + Span span181 = CollectionsMarshal.AsSpan(list181); + num = 0; + ref QuestSequence reference128 = ref span181[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -235344,21 +285074,26 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029786u, new Vector3(-431.08264f, -86.381516f, 462.33313f), 815) + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029786u, new Vector3(-431.08264f, -86.381516f, 462.33313f), 815) { StopDistance = 5f }; obj115.Steps = list182; reference128 = obj115; - ref QuestSequence reference129 = ref span60[1]; + num++; + ref QuestSequence reference129 = ref span181[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1029558u, new Vector3(28.732666f, 0f, 1.87677f), 819) + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span183[num2] = new QuestStep(EInteractionType.Interact, 1029558u, new Vector3(28.732666f, 0f, 1.87677f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -235369,7 +285104,8 @@ public static class AssemblyQuestLoader }; obj116.Steps = list183; reference129 = obj116; - ref QuestSequence reference130 = ref span60[2]; + num++; + ref QuestSequence reference130 = ref span181[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -235377,7 +285113,9 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list184)[0]; + Span span184 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + ref QuestStep reference131 = ref span184[index2]; QuestStep obj118 = new QuestStep(EInteractionType.CompleteQuest, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 7f, @@ -235387,10 +285125,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new DialogueChoice + num4 = 1; + List list185 = new List(num4); + CollectionsMarshal.SetCount(list185, num4); + Span span185 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span185[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMD117_03622_Q2_000_000") @@ -235406,21 +285146,26 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "liza"; + Span span186 = CollectionsMarshal.AsSpan(list186); + index = 0; + span186[index] = "liza"; questRoot23.Author = list186; - num = 5; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span61 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference132 = ref span61[0]; + index = 5; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + Span span187 = CollectionsMarshal.AsSpan(list187); + num = 0; + ref QuestSequence reference132 = ref span187[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819) + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + Span span188 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span188[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -235438,7 +285183,8 @@ public static class AssemblyQuestLoader }; obj119.Steps = list188; reference132 = obj119; - ref QuestSequence reference133 = ref span61[1]; + num++; + ref QuestSequence reference133 = ref span187[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -235446,8 +285192,9 @@ public static class AssemblyQuestLoader num2 = 2; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span62 = CollectionsMarshal.AsSpan(list189); - span62[0] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) + Span span189 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span189[index2] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) { TargetTerritoryId = (ushort)815, AethernetShortcut = new AethernetShortcut @@ -235456,21 +285203,25 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - span62[1] = new QuestStep(EInteractionType.Interact, 1030623u, new Vector3(665.6748f, -50.355476f, -641.5351f), 815) + index2++; + span189[index2] = new QuestStep(EInteractionType.Interact, 1030623u, new Vector3(665.6748f, -50.355476f, -641.5351f), 815) { Fly = true }; obj120.Steps = list189; reference133 = obj120; - ref QuestSequence reference134 = ref span61[2]; + num++; + ref QuestSequence reference134 = ref span187[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list190)[0]; + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + ref QuestStep reference135 = ref span190[num2]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 2010165u, new Vector3(483.48206f, -50.46167f, -631.52515f), 815) { Fly = true, @@ -235479,12 +285230,15 @@ public static class AssemblyQuestLoader num3 = 1; List list191 = new List(num3); CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = 10836u; + Span span191 = CollectionsMarshal.AsSpan(list191); + num4 = 0; + span191[num4] = 10836u; obj122.KillEnemyDataIds = list191; reference135 = obj122; obj121.Steps = list190; reference134 = obj121; - ref QuestSequence reference136 = ref span61[3]; + num++; + ref QuestSequence reference136 = ref span187[num]; QuestSequence obj123 = new QuestSequence { Sequence = 3 @@ -235492,18 +285246,23 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1030624u, new Vector3(500.54163f, -50.72601f, -647.5471f), 815); + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.Interact, 1030624u, new Vector3(500.54163f, -50.72601f, -647.5471f), 815); obj123.Steps = list192; reference136 = obj123; - ref QuestSequence reference137 = ref span61[4]; + num++; + ref QuestSequence reference137 = ref span187[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, NextQuestId = new QuestId(3624) @@ -235517,13 +285276,16 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "liza"; + Span span194 = CollectionsMarshal.AsSpan(list194); + index = 0; + span194[index] = "liza"; questRoot24.Author = list194; - num = 5; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span63 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference138 = ref span63[0]; + index = 5; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + Span span195 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference138 = ref span195[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -235531,7 +285293,9 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span196[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, SkipConditions = new SkipConditions @@ -235549,29 +285313,35 @@ public static class AssemblyQuestLoader }; obj125.Steps = list196; reference138 = obj125; - ref QuestSequence reference139 = ref span63[1]; + num++; + ref QuestSequence reference139 = ref span195[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - ref QuestStep reference140 = ref CollectionsMarshal.AsSpan(list197)[0]; + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + ref QuestStep reference140 = ref span197[num2]; QuestStep obj127 = new QuestStep(EInteractionType.Combat, 2010166u, new Vector3(599.115f, -33.61566f, -304.49384f), 815) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = 10837u; + num4 = 1; + List list198 = new List(num4); + CollectionsMarshal.SetCount(list198, num4); + Span span198 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span198[num3] = 10837u; obj127.KillEnemyDataIds = list198; reference140 = obj127; obj126.Steps = list197; reference139 = obj126; - ref QuestSequence reference141 = ref span63[2]; + num++; + ref QuestSequence reference141 = ref span195[num]; QuestSequence obj128 = new QuestSequence { Sequence = 2 @@ -235579,27 +285349,33 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + Span span199 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span199[index2] = new QuestStep(EInteractionType.Interact, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { Fly = true }; obj128.Steps = list199; reference141 = obj128; - ref QuestSequence reference142 = ref span63[3]; + num++; + ref QuestSequence reference142 = ref span195[num]; QuestSequence obj129 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 2010214u, new Vector3(488.85327f, -26.16925f, -12.008911f), 815) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.Interact, 2010214u, new Vector3(488.85327f, -26.16925f, -12.008911f), 815) { Fly = true }; obj129.Steps = list200; reference142 = obj129; - ref QuestSequence reference143 = ref span63[4]; + num++; + ref QuestSequence reference143 = ref span195[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -235607,7 +285383,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list201)[0]; + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + ref QuestStep reference144 = ref span201[index2]; QuestStep obj131 = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { Fly = true @@ -235615,7 +285393,9 @@ public static class AssemblyQuestLoader num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = new DialogueChoice + Span span202 = CollectionsMarshal.AsSpan(list202); + num4 = 0; + span202[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBA411_03624_Q1_000_100"), @@ -235633,21 +285413,26 @@ public static class AssemblyQuestLoader num = 1; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - CollectionsMarshal.AsSpan(list203)[0] = "liza"; + Span span203 = CollectionsMarshal.AsSpan(list203); + index = 0; + span203[index] = "liza"; questRoot25.Author = list203; - num = 9; - List list204 = new List(num); - CollectionsMarshal.SetCount(list204, num); - Span span64 = CollectionsMarshal.AsSpan(list204); - ref QuestSequence reference145 = ref span64[0]; + index = 9; + List list204 = new List(index); + CollectionsMarshal.SetCount(list204, index); + Span span204 = CollectionsMarshal.AsSpan(list204); + num = 0; + ref QuestSequence reference145 = ref span204[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + Span span205 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span205[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, SkipConditions = new SkipConditions @@ -235665,7 +285450,8 @@ public static class AssemblyQuestLoader }; obj132.Steps = list205; reference145 = obj132; - ref QuestSequence reference146 = ref span64[1]; + num++; + ref QuestSequence reference146 = ref span204[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -235673,27 +285459,33 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1030626u, new Vector3(331.62415f, 1.4685826f, -244.95312f), 815) + Span span206 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span206[index2] = new QuestStep(EInteractionType.Interact, 1030626u, new Vector3(331.62415f, 1.4685826f, -244.95312f), 815) { Fly = true }; obj133.Steps = list206; reference146 = obj133; - ref QuestSequence reference147 = ref span64[2]; + num++; + ref QuestSequence reference147 = ref span204[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1030627u, new Vector3(330.06775f, 1.4685818f, -164.0498f), 815) + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + Span span207 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + span207[num2] = new QuestStep(EInteractionType.Interact, 1030627u, new Vector3(330.06775f, 1.4685818f, -164.0498f), 815) { Fly = true }; obj134.Steps = list207; reference147 = obj134; - ref QuestSequence reference148 = ref span64[3]; + num++; + ref QuestSequence reference148 = ref span204[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -235701,28 +285493,34 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1030628u, new Vector3(407.6753f, -28.443933f, 260.8224f), 815) + Span span208 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span208[index2] = new QuestStep(EInteractionType.Interact, 1030628u, new Vector3(407.6753f, -28.443933f, 260.8224f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj135.Steps = list208; reference148 = obj135; - ref QuestSequence reference149 = ref span64[4]; + num++; + ref QuestSequence reference149 = ref span204[num]; QuestSequence obj136 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1030630u, new Vector3(368.39856f, -28.620693f, 353.78027f), 815) + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + Span span209 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span209[num2] = new QuestStep(EInteractionType.Interact, 1030630u, new Vector3(368.39856f, -28.620693f, 353.78027f), 815) { Fly = true }; obj136.Steps = list209; reference149 = obj136; - ref QuestSequence reference150 = ref span64[5]; + num++; + ref QuestSequence reference150 = ref span204[num]; QuestSequence obj137 = new QuestSequence { Sequence = 5 @@ -235730,33 +285528,41 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - ref QuestStep reference151 = ref CollectionsMarshal.AsSpan(list210)[0]; + Span span210 = CollectionsMarshal.AsSpan(list210); + index2 = 0; + ref QuestStep reference151 = ref span210[index2]; QuestStep obj138 = new QuestStep(EInteractionType.Combat, 1030632u, new Vector3(550.225f, -45.678886f, 282.82593f), 815) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = 10838u; + num4 = 1; + List list211 = new List(num4); + CollectionsMarshal.SetCount(list211, num4); + Span span211 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + span211[num3] = 10838u; obj138.KillEnemyDataIds = list211; reference151 = obj138; obj137.Steps = list210; reference150 = obj137; - ref QuestSequence reference152 = ref span64[6]; + num++; + ref QuestSequence reference152 = ref span204[num]; QuestSequence obj139 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1030632u, new Vector3(550.225f, -45.678886f, 282.82593f), 815); + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span212[num2] = new QuestStep(EInteractionType.Interact, 1030632u, new Vector3(550.225f, -45.678886f, 282.82593f), 815); obj139.Steps = list212; reference152 = obj139; - ref QuestSequence reference153 = ref span64[7]; + num++; + ref QuestSequence reference153 = ref span204[num]; QuestSequence obj140 = new QuestSequence { Sequence = 7 @@ -235764,21 +285570,26 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1030631u, new Vector3(367.72717f, -28.562725f, 356.19116f), 815) + Span span213 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span213[index2] = new QuestStep(EInteractionType.Interact, 1030631u, new Vector3(367.72717f, -28.562725f, 356.19116f), 815) { Fly = true }; obj140.Steps = list213; reference153 = obj140; - ref QuestSequence reference154 = ref span64[8]; + num++; + ref QuestSequence reference154 = ref span204[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + Span span214 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span214[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, @@ -235793,13 +285604,16 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - CollectionsMarshal.AsSpan(list215)[0] = "liza"; + Span span215 = CollectionsMarshal.AsSpan(list215); + index = 0; + span215[index] = "liza"; questRoot26.Author = list215; - num = 4; - List list216 = new List(num); - CollectionsMarshal.SetCount(list216, num); - Span span65 = CollectionsMarshal.AsSpan(list216); - ref QuestSequence reference155 = ref span65[0]; + index = 4; + List list216 = new List(index); + CollectionsMarshal.SetCount(list216, index); + Span span216 = CollectionsMarshal.AsSpan(list216); + num = 0; + ref QuestSequence reference155 = ref span216[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -235807,7 +285621,9 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, SkipConditions = new SkipConditions @@ -235825,15 +285641,18 @@ public static class AssemblyQuestLoader }; obj142.Steps = list217; reference155 = obj142; - ref QuestSequence reference156 = ref span65[1]; + num++; + ref QuestSequence reference156 = ref span216[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - ref QuestStep reference157 = ref CollectionsMarshal.AsSpan(list218)[0]; + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + ref QuestStep reference157 = ref span218[num2]; QuestStep obj144 = new QuestStep(EInteractionType.SinglePlayerDuty, 1030636u, new Vector3(342.8855f, -35.843185f, 76.58496f), 815) { Fly = true, @@ -235846,17 +285665,21 @@ public static class AssemblyQuestLoader num3 = 1; List list219 = new List(num3); CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = "Sometimes the movement is the cause of a duty failing."; + Span span219 = CollectionsMarshal.AsSpan(list219); + num4 = 0; + span219[num4] = "Sometimes the movement is the cause of a duty failing."; obj145.Notes = list219; obj144.SinglePlayerDutyOptions = obj145; reference157 = obj144; obj143.Steps = list218; reference156 = obj143; - span65[2] = new QuestSequence + num++; + span216[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference158 = ref span65[3]; + num++; + ref QuestSequence reference158 = ref span216[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -235864,7 +285687,9 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span220[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, @@ -235879,21 +285704,26 @@ public static class AssemblyQuestLoader num = 1; List list221 = new List(num); CollectionsMarshal.SetCount(list221, num); - CollectionsMarshal.AsSpan(list221)[0] = "liza"; + Span span221 = CollectionsMarshal.AsSpan(list221); + index = 0; + span221[index] = "liza"; questRoot27.Author = list221; - num = 7; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - Span span66 = CollectionsMarshal.AsSpan(list222); - ref QuestSequence reference159 = ref span66[0]; + index = 7; + List list222 = new List(index); + CollectionsMarshal.SetCount(list222, index); + Span span222 = CollectionsMarshal.AsSpan(list222); + num = 0; + ref QuestSequence reference159 = ref span222[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + Span span223 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span223[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, SkipConditions = new SkipConditions @@ -235911,7 +285741,8 @@ public static class AssemblyQuestLoader }; obj147.Steps = list223; reference159 = obj147; - ref QuestSequence reference160 = ref span66[1]; + num++; + ref QuestSequence reference160 = ref span222[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -235919,7 +285750,9 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list224)[0]; + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + ref QuestStep reference161 = ref span224[index2]; QuestStep obj149 = new QuestStep(EInteractionType.Interact, 1030638u, new Vector3(543.8773f, -6.503428f, 811.7036f), 813) { Fly = true, @@ -235932,25 +285765,30 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - CollectionsMarshal.AsSpan(list225)[0] = 813; + num4 = 1; + List list225 = new List(num4); + CollectionsMarshal.SetCount(list225, num4); + Span span225 = CollectionsMarshal.AsSpan(list225); + num3 = 0; + span225[num3] = 813; skipAetheryteCondition.InTerritory = list225; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj149.SkipConditions = skipConditions; reference161 = obj149; obj148.Steps = list224; reference160 = obj148; - ref QuestSequence reference162 = ref span66[2]; + num++; + ref QuestSequence reference162 = ref span222[num]; QuestSequence obj150 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - ref QuestStep reference163 = ref CollectionsMarshal.AsSpan(list226)[0]; + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + Span span226 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + ref QuestStep reference163 = ref span226[num2]; QuestStep obj151 = new QuestStep(EInteractionType.Combat, 2010215u, new Vector3(523.9795f, -2.0599976f, 795.1018f), 813) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -235958,12 +285796,15 @@ public static class AssemblyQuestLoader num3 = 1; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = 10839u; + Span span227 = CollectionsMarshal.AsSpan(list227); + num4 = 0; + span227[num4] = 10839u; obj151.KillEnemyDataIds = list227; reference163 = obj151; obj150.Steps = list226; reference162 = obj150; - ref QuestSequence reference164 = ref span66[3]; + num++; + ref QuestSequence reference164 = ref span222[num]; QuestSequence obj152 = new QuestSequence { Sequence = 3 @@ -235971,21 +285812,27 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1030639u, new Vector3(542.8092f, -6.489782f, 811.79517f), 813); + Span span228 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span228[index2] = new QuestStep(EInteractionType.Interact, 1030639u, new Vector3(542.8092f, -6.489782f, 811.79517f), 813); obj152.Steps = list228; reference164 = obj152; - ref QuestSequence reference165 = ref span66[4]; + num++; + ref QuestSequence reference165 = ref span222[num]; QuestSequence obj153 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1031033u, new Vector3(540.6727f, -6.4392195f, 801.87683f), 813); + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + Span span229 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span229[num2] = new QuestStep(EInteractionType.Interact, 1031033u, new Vector3(540.6727f, -6.4392195f, 801.87683f), 813); obj153.Steps = list229; reference165 = obj153; - ref QuestSequence reference166 = ref span66[5]; + num++; + ref QuestSequence reference166 = ref span222[num]; QuestSequence obj154 = new QuestSequence { Sequence = 5 @@ -235993,18 +285840,23 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1031033u, new Vector3(540.6727f, -6.4392195f, 801.87683f), 813); + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span230[index2] = new QuestStep(EInteractionType.Interact, 1031033u, new Vector3(540.6727f, -6.4392195f, 801.87683f), 813); obj154.Steps = list230; reference166 = obj154; - ref QuestSequence reference167 = ref span66[6]; + num++; + ref QuestSequence reference167 = ref span222[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, @@ -236019,13 +285871,16 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - CollectionsMarshal.AsSpan(list232)[0] = "liza"; + Span span232 = CollectionsMarshal.AsSpan(list232); + index = 0; + span232[index] = "liza"; questRoot28.Author = list232; - num = 8; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - Span span67 = CollectionsMarshal.AsSpan(list233); - ref QuestSequence reference168 = ref span67[0]; + index = 8; + List list233 = new List(index); + CollectionsMarshal.SetCount(list233, index); + Span span233 = CollectionsMarshal.AsSpan(list233); + num = 0; + ref QuestSequence reference168 = ref span233[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 @@ -236033,7 +285888,9 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + Span span234 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + span234[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, SkipConditions = new SkipConditions @@ -236051,21 +285908,25 @@ public static class AssemblyQuestLoader }; obj156.Steps = list234; reference168 = obj156; - ref QuestSequence reference169 = ref span67[1]; + num++; + ref QuestSequence reference169 = ref span233[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1030697u, new Vector3(288.74634f, 7.1558266f, -219.2569f), 815) + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + Span span235 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span235[num2] = new QuestStep(EInteractionType.Interact, 1030697u, new Vector3(288.74634f, 7.1558266f, -219.2569f), 815) { Fly = true }; obj157.Steps = list235; reference169 = obj157; - ref QuestSequence reference170 = ref span67[2]; + num++; + ref QuestSequence reference170 = ref span233[num]; QuestSequence obj158 = new QuestSequence { Sequence = 2 @@ -236073,21 +285934,26 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + Span span236 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span236[index2] = new QuestStep(EInteractionType.Interact, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { Fly = true }; obj158.Steps = list236; reference170 = obj158; - ref QuestSequence reference171 = ref span67[3]; + num++; + ref QuestSequence reference171 = ref span233[num]; QuestSequence obj159 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030641u, new Vector3(-255.8786f, 23.447075f, -288.4718f), 815) + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + Span span237 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span237[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030641u, new Vector3(-255.8786f, 23.447075f, -288.4718f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengTwine, @@ -236098,11 +285964,13 @@ public static class AssemblyQuestLoader }; obj159.Steps = list237; reference171 = obj159; - span67[4] = new QuestSequence + num++; + span233[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference172 = ref span67[5]; + num++; + ref QuestSequence reference172 = ref span233[num]; QuestSequence obj160 = new QuestSequence { Sequence = 5 @@ -236110,24 +285978,30 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1030641u, new Vector3(-255.8786f, 23.447075f, -288.4718f), 815); + Span span238 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span238[index2] = new QuestStep(EInteractionType.Interact, 1030641u, new Vector3(-255.8786f, 23.447075f, -288.4718f), 815); obj160.Steps = list238; reference172 = obj160; - ref QuestSequence reference173 = ref span67[6]; + num++; + ref QuestSequence reference173 = ref span233[num]; QuestSequence obj161 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + Span span239 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span239[num2] = new QuestStep(EInteractionType.Interact, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; obj161.Steps = list239; reference173 = obj161; - ref QuestSequence reference174 = ref span67[7]; + num++; + ref QuestSequence reference174 = ref span233[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue @@ -236135,7 +286009,9 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819) + Span span240 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span240[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -236153,24 +286029,30 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "plogon_enjoyer"; + Span span241 = CollectionsMarshal.AsSpan(list241); + index = 0; + span241[index] = "plogon_enjoyer"; questRoot29.Author = list241; - num = 9; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span68 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference175 = ref span68[0]; + index = 9; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + Span span242 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference175 = ref span242[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027322u, new Vector3(-20.126648f, 3.9998171f, 204.24194f), 819); + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + Span span243 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span243[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027322u, new Vector3(-20.126648f, 3.9998171f, 204.24194f), 819); obj163.Steps = list243; reference175 = obj163; - ref QuestSequence reference176 = ref span68[1]; + num++; + ref QuestSequence reference176 = ref span242[num]; QuestSequence obj164 = new QuestSequence { Sequence = 1 @@ -236178,7 +286060,9 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1030831u, new Vector3(26.260742f, 35.999687f, -129.2287f), 819) + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span244[index2] = new QuestStep(EInteractionType.Interact, 1030831u, new Vector3(26.260742f, 35.999687f, -129.2287f), 819) { AethernetShortcut = new AethernetShortcut { @@ -236188,22 +286072,26 @@ public static class AssemblyQuestLoader }; obj164.Steps = list244; reference176 = obj164; - ref QuestSequence reference177 = ref span68[2]; + num++; + ref QuestSequence reference177 = ref span242[num]; QuestSequence obj165 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1030832u, new Vector3(171.8623f, 33.4924f, 185.77856f), 814) + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + Span span245 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span245[num2] = new QuestStep(EInteractionType.Interact, 1030832u, new Vector3(171.8623f, 33.4924f, 185.77856f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj165.Steps = list245; reference177 = obj165; - ref QuestSequence reference178 = ref span68[3]; + num++; + ref QuestSequence reference178 = ref span242[num]; QuestSequence obj166 = new QuestSequence { Sequence = 3 @@ -236211,29 +286099,35 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 1030833u, new Vector3(340.90173f, -35.861984f, 74.23511f), 815) + Span span246 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span246[index2] = new QuestStep(EInteractionType.Interact, 1030833u, new Vector3(340.90173f, -35.861984f, 74.23511f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj166.Steps = list246; reference178 = obj166; - ref QuestSequence reference179 = ref span68[4]; + num++; + ref QuestSequence reference179 = ref span242[num]; QuestSequence obj167 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1030834u, new Vector3(-185.13776f, 11.4709015f, 608.57544f), 817) + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + Span span247 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span247[num2] = new QuestStep(EInteractionType.Interact, 1030834u, new Vector3(-185.13776f, 11.4709015f, 608.57544f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj167.Steps = list247; reference179 = obj167; - ref QuestSequence reference180 = ref span68[5]; + num++; + ref QuestSequence reference180 = ref span242[num]; QuestSequence obj168 = new QuestSequence { Sequence = 5 @@ -236241,29 +286135,35 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1030835u, new Vector3(-67.826416f, 105.29415f, -252.94885f), 816) + Span span248 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span248[index2] = new QuestStep(EInteractionType.Interact, 1030835u, new Vector3(-67.826416f, 105.29415f, -252.94885f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; obj168.Steps = list248; reference180 = obj168; - ref QuestSequence reference181 = ref span68[6]; + num++; + ref QuestSequence reference181 = ref span242[num]; QuestSequence obj169 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1030836u, new Vector3(-456.59576f, 417.12573f, -597.16187f), 814) + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + Span span249 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span249[num2] = new QuestStep(EInteractionType.Interact, 1030836u, new Vector3(-456.59576f, 417.12573f, -597.16187f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaTomra }; obj169.Steps = list249; reference181 = obj169; - ref QuestSequence reference182 = ref span68[7]; + num++; + ref QuestSequence reference182 = ref span242[num]; QuestSequence obj170 = new QuestSequence { Sequence = 7 @@ -236271,22 +286171,27 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 2010361u, new Vector3(55.61914f, 165.42297f, -302.66272f), 813) + Span span250 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span250[index2] = new QuestStep(EInteractionType.Interact, 2010361u, new Vector3(55.61914f, 165.42297f, -302.66272f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj170.Steps = list250; reference182 = obj170; - ref QuestSequence reference183 = ref span68[8]; + num++; + ref QuestSequence reference183 = ref span242[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + Span span251 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span251[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -236305,13 +286210,16 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - CollectionsMarshal.AsSpan(list252)[0] = "liza"; + Span span252 = CollectionsMarshal.AsSpan(list252); + index = 0; + span252[index] = "liza"; questRoot30.Author = list252; - num = 5; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - Span span69 = CollectionsMarshal.AsSpan(list253); - ref QuestSequence reference184 = ref span69[0]; + index = 5; + List list253 = new List(index); + CollectionsMarshal.SetCount(list253, index); + Span span253 = CollectionsMarshal.AsSpan(list253); + num = 0; + ref QuestSequence reference184 = ref span253[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -236319,21 +286227,26 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) + Span span254 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span254[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) { StopDistance = 7f }; obj172.Steps = list254; reference184 = obj172; - ref QuestSequence reference185 = ref span69[1]; + num++; + ref QuestSequence reference185 = ref span253[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span255 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span255[num2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -236344,7 +286257,8 @@ public static class AssemblyQuestLoader }; obj173.Steps = list255; reference185 = obj173; - ref QuestSequence reference186 = ref span69[2]; + num++; + ref QuestSequence reference186 = ref span253[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 @@ -236352,36 +286266,47 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1030165u, new Vector3(-249.28668f, 18.603912f, 399.31323f), 814) + Span span256 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span256[index2] = new QuestStep(EInteractionType.Interact, 1030165u, new Vector3(-249.28668f, 18.603912f, 399.31323f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj174.Steps = list256; reference186 = obj174; - ref QuestSequence reference187 = ref span69[3]; + num++; + ref QuestSequence reference187 = ref span253[num]; QuestSequence obj175 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - Span span70 = CollectionsMarshal.AsSpan(list257); - ref QuestStep reference188 = ref span70[0]; + index2 = 3; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span257 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + ref QuestStep reference188 = ref span257[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1030170u, new Vector3(-87.32745f, 11.115211f, 312.09277f), 814); - num3 = 6; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - Span span71 = CollectionsMarshal.AsSpan(list258); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list258 = new List(num4); + CollectionsMarshal.SetCount(list258, num4); + Span span258 = CollectionsMarshal.AsSpan(list258); + num3 = 0; + span258[num3] = null; + num3++; + span258[num3] = null; + num3++; + span258[num3] = null; + num3++; + span258[num3] = null; + num3++; + span258[num3] = null; + num3++; + span258[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list258; reference188 = questStep14; - ref QuestStep reference189 = ref span70[1]; + num2++; + ref QuestStep reference189 = ref span257[num2]; QuestStep obj176 = new QuestStep(EInteractionType.Combat, 1030167u, new Vector3(-37.644104f, 7.0351543f, 372.42688f), 814) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -236389,39 +286314,55 @@ public static class AssemblyQuestLoader num3 = 2; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - Span span72 = CollectionsMarshal.AsSpan(list259); - span72[0] = 10860u; - span72[1] = 10861u; + Span span259 = CollectionsMarshal.AsSpan(list259); + num4 = 0; + span259[num4] = 10860u; + num4++; + span259[num4] = 10861u; obj176.KillEnemyDataIds = list259; - num3 = 6; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - Span span73 = CollectionsMarshal.AsSpan(list260); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list260 = new List(num4); + CollectionsMarshal.SetCount(list260, num4); + Span span260 = CollectionsMarshal.AsSpan(list260); + num3 = 0; + span260[num3] = null; + num3++; + span260[num3] = null; + num3++; + span260[num3] = null; + num3++; + span260[num3] = null; + num3++; + span260[num3] = null; + num3++; + span260[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj176.CompletionQuestVariablesFlags = list260; reference189 = obj176; - ref QuestStep reference190 = ref span70[2]; + num2++; + ref QuestStep reference190 = ref span257[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1030169u, new Vector3(144.57922f, 13.26848f, 356.83215f), 814); num3 = 6; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - Span span74 = CollectionsMarshal.AsSpan(list261); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span261 = CollectionsMarshal.AsSpan(list261); + num4 = 0; + span261[num4] = null; + num4++; + span261[num4] = null; + num4++; + span261[num4] = null; + num4++; + span261[num4] = null; + num4++; + span261[num4] = null; + num4++; + span261[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list261; reference190 = questStep15; obj175.Steps = list257; reference187 = obj175; - ref QuestSequence reference191 = ref span69[4]; + num++; + ref QuestSequence reference191 = ref span253[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -236429,7 +286370,9 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030171u, new Vector3(164.4159f, 39.902184f, 564.9957f), 814); + Span span262 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span262[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030171u, new Vector3(164.4159f, 39.902184f, 564.9957f), 814); obj177.Steps = list262; reference191 = obj177; questRoot30.QuestSequence = list253; @@ -236439,27 +286382,33 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - CollectionsMarshal.AsSpan(list263)[0] = "liza"; + Span span263 = CollectionsMarshal.AsSpan(list263); + index = 0; + span263[index] = "liza"; questRoot31.Author = list263; - num = 3; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - Span span75 = CollectionsMarshal.AsSpan(list264); - ref QuestSequence reference192 = ref span75[0]; + index = 3; + List list264 = new List(index); + CollectionsMarshal.SetCount(list264, index); + Span span264 = CollectionsMarshal.AsSpan(list264); + num = 0; + ref QuestSequence reference192 = ref span264[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030172u, new Vector3(165.85034f, 40.02784f, 566.21655f), 814) + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + Span span265 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span265[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030172u, new Vector3(165.85034f, 40.02784f, 566.21655f), 814) { StopDistance = 7f }; obj178.Steps = list265; reference192 = obj178; - ref QuestSequence reference193 = ref span75[1]; + num++; + ref QuestSequence reference193 = ref span264[num]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -236467,21 +286416,26 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030179u, new Vector3(167.65088f, 40.011803f, 563.1647f), 814) + Span span266 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span266[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030179u, new Vector3(167.65088f, 40.011803f, 563.1647f), 814) { StopDistance = 7f }; obj179.Steps = list266; reference193 = obj179; - ref QuestSequence reference194 = ref span75[2]; + num++; + ref QuestSequence reference194 = ref span264[num]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030184u, new Vector3(4.257263f, 82.8f, 44.663086f), 820) + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span267[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030184u, new Vector3(4.257263f, 82.8f, 44.663086f), 820) { StopDistance = 7f }; @@ -236494,13 +286448,16 @@ public static class AssemblyQuestLoader num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - CollectionsMarshal.AsSpan(list268)[0] = "liza"; + Span span268 = CollectionsMarshal.AsSpan(list268); + index = 0; + span268[index] = "liza"; questRoot32.Author = list268; - num = 8; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - Span span76 = CollectionsMarshal.AsSpan(list269); - ref QuestSequence reference195 = ref span76[0]; + index = 8; + List list269 = new List(index); + CollectionsMarshal.SetCount(list269, index); + Span span269 = CollectionsMarshal.AsSpan(list269); + num = 0; + ref QuestSequence reference195 = ref span269[num]; QuestSequence obj181 = new QuestSequence { Sequence = 0 @@ -236508,26 +286465,31 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030184u, new Vector3(4.257263f, 82.8f, 44.663086f), 820) + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span270[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030184u, new Vector3(4.257263f, 82.8f, 44.663086f), 820) { StopDistance = 7f }; obj181.Steps = list270; reference195 = obj181; - ref QuestSequence reference196 = ref span76[1]; + num++; + ref QuestSequence reference196 = ref span269[num]; QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - Span span77 = CollectionsMarshal.AsSpan(list271); - span77[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 820) + index2 = 2; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 820) { Aetheryte = EAetheryteLocation.Eulmore }; - span77[1] = new QuestStep(EInteractionType.Interact, 1030190u, new Vector3(-71.39697f, -0.8649193f, 66.11731f), 820) + num2++; + span271[num2] = new QuestStep(EInteractionType.Interact, 1030190u, new Vector3(-71.39697f, -0.8649193f, 66.11731f), 820) { AethernetShortcut = new AethernetShortcut { @@ -236537,7 +286499,8 @@ public static class AssemblyQuestLoader }; obj182.Steps = list271; reference196 = obj182; - ref QuestSequence reference197 = ref span76[2]; + num++; + ref QuestSequence reference197 = ref span269[num]; QuestSequence obj183 = new QuestSequence { Sequence = 2 @@ -236545,21 +286508,26 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.UseItem, 1030190u, new Vector3(-71.39697f, -0.8649193f, 66.11731f), 820) + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.UseItem, 1030190u, new Vector3(-71.39697f, -0.8649193f, 66.11731f), 820) { ItemId = 2002609u }; obj183.Steps = list272; reference197 = obj183; - ref QuestSequence reference198 = ref span76[3]; + num++; + ref QuestSequence reference198 = ref span269[num]; QuestSequence obj184 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 1030191u, new Vector3(-6.729248f, 44.999493f, -22.537598f), 820) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span273[num2] = new QuestStep(EInteractionType.Interact, 1030191u, new Vector3(-6.729248f, 44.999493f, -22.537598f), 820) { AethernetShortcut = new AethernetShortcut { @@ -236569,7 +286537,8 @@ public static class AssemblyQuestLoader }; obj184.Steps = list273; reference198 = obj184; - ref QuestSequence reference199 = ref span76[4]; + num++; + ref QuestSequence reference199 = ref span269[num]; QuestSequence obj185 = new QuestSequence { Sequence = 4 @@ -236577,21 +286546,26 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.UseItem, 1030191u, new Vector3(-6.729248f, 44.999493f, -22.537598f), 820) + Span span274 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span274[index2] = new QuestStep(EInteractionType.UseItem, 1030191u, new Vector3(-6.729248f, 44.999493f, -22.537598f), 820) { ItemId = 2002609u }; obj185.Steps = list274; reference199 = obj185; - ref QuestSequence reference200 = ref span76[5]; + num++; + ref QuestSequence reference200 = ref span269[num]; QuestSequence obj186 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1030193u, new Vector3(20.950623f, 82.835106f, -49.607117f), 820) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.Interact, 1030193u, new Vector3(20.950623f, 82.835106f, -49.607117f), 820) { AethernetShortcut = new AethernetShortcut { @@ -236601,7 +286575,8 @@ public static class AssemblyQuestLoader }; obj186.Steps = list275; reference200 = obj186; - ref QuestSequence reference201 = ref span76[6]; + num++; + ref QuestSequence reference201 = ref span269[num]; QuestSequence obj187 = new QuestSequence { Sequence = 6 @@ -236609,26 +286584,33 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.UseItem, 1030193u, new Vector3(20.950623f, 82.835106f, -49.607117f), 820) + Span span276 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span276[index2] = new QuestStep(EInteractionType.UseItem, 1030193u, new Vector3(20.950623f, 82.835106f, -49.607117f), 820) { ItemId = 2002609u }; obj187.Steps = list276; reference201 = obj187; - ref QuestSequence reference202 = ref span76[7]; + num++; + ref QuestSequence reference202 = ref span269[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - ref QuestStep reference203 = ref CollectionsMarshal.AsSpan(list277)[0]; + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + ref QuestStep reference203 = ref span277[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.CompleteQuest, 1030194u, new Vector3(27.359375f, 82.903946f, 22.384888f), 820); - num3 = 1; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - CollectionsMarshal.AsSpan(list278)[0] = new DialogueChoice + num4 = 1; + List list278 = new List(num4); + CollectionsMarshal.SetCount(list278, num4); + Span span278 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span278[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME103_03632_Q1_000_000"), @@ -236645,13 +286627,16 @@ public static class AssemblyQuestLoader num = 1; List list279 = new List(num); CollectionsMarshal.SetCount(list279, num); - CollectionsMarshal.AsSpan(list279)[0] = "liza"; + Span span279 = CollectionsMarshal.AsSpan(list279); + index = 0; + span279[index] = "liza"; questRoot33.Author = list279; - num = 6; - List list280 = new List(num); - CollectionsMarshal.SetCount(list280, num); - Span span78 = CollectionsMarshal.AsSpan(list280); - ref QuestSequence reference204 = ref span78[0]; + index = 6; + List list280 = new List(index); + CollectionsMarshal.SetCount(list280, index); + Span span280 = CollectionsMarshal.AsSpan(list280); + num = 0; + ref QuestSequence reference204 = ref span280[num]; QuestSequence obj189 = new QuestSequence { Sequence = 0 @@ -236659,27 +286644,33 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030196u, new Vector3(21.377869f, 82.782265f, 25.009521f), 820) + Span span281 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span281[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030196u, new Vector3(21.377869f, 82.782265f, 25.009521f), 820) { StopDistance = 7f }; obj189.Steps = list281; reference204 = obj189; - ref QuestSequence reference205 = ref span78[1]; + num++; + ref QuestSequence reference205 = ref span280[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1030197u, new Vector3(-456.68726f, 65.77815f, 79.9115f), 814) + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + Span span282 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span282[num2] = new QuestStep(EInteractionType.Interact, 1030197u, new Vector3(-456.68726f, 65.77815f, 79.9115f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj190.Steps = list282; reference205 = obj190; - ref QuestSequence reference206 = ref span78[2]; + num++; + ref QuestSequence reference206 = ref span280[num]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -236687,102 +286678,141 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1027288u, new Vector3(-457.3587f, 8.987028f, 537.04126f), 814); + Span span283 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span283[index2] = new QuestStep(EInteractionType.Interact, 1027288u, new Vector3(-457.3587f, 8.987028f, 537.04126f), 814); obj191.Steps = list283; reference206 = obj191; - ref QuestSequence reference207 = ref span78[3]; + num++; + ref QuestSequence reference207 = ref span280[num]; QuestSequence obj192 = new QuestSequence { Sequence = 3 }; - num2 = 5; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - Span span79 = CollectionsMarshal.AsSpan(list284); - ref QuestStep reference208 = ref span79[0]; + index2 = 5; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + Span span284 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + ref QuestStep reference208 = ref span284[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-450.89993f, 8.987026f, 545.4605f), 814); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list285 = new List(num3); CollectionsMarshal.SetCount(list285, num3); - Span span80 = CollectionsMarshal.AsSpan(list285); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span285 = CollectionsMarshal.AsSpan(list285); + num4 = 0; + span285[num4] = null; + num4++; + span285[num4] = null; + num4++; + span285[num4] = null; + num4++; + span285[num4] = null; + num4++; + span285[num4] = null; + num4++; + span285[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list285; skipConditions2.StepIf = skipStepConditions; questStep17.SkipConditions = skipConditions2; reference208 = questStep17; - ref QuestStep reference209 = ref span79[1]; + num2++; + ref QuestStep reference209 = ref span284[num2]; QuestStep obj193 = new QuestStep(EInteractionType.Interact, 2010088u, new Vector3(-448.2033f, 8.316162f, 546.25757f), 814) { StopDistance = 4f }; - num3 = 6; - List list286 = new List(num3); - CollectionsMarshal.SetCount(list286, num3); - Span span81 = CollectionsMarshal.AsSpan(list286); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list286 = new List(num4); + CollectionsMarshal.SetCount(list286, num4); + Span span286 = CollectionsMarshal.AsSpan(list286); + num3 = 0; + span286[num3] = null; + num3++; + span286[num3] = null; + num3++; + span286[num3] = null; + num3++; + span286[num3] = null; + num3++; + span286[num3] = null; + num3++; + span286[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj193.CompletionQuestVariablesFlags = list286; reference209 = obj193; - ref QuestStep reference210 = ref span79[2]; + num2++; + ref QuestStep reference210 = ref span284[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1027441u, new Vector3(-465.32385f, 8.987028f, 555.4131f), 814); num3 = 6; List list287 = new List(num3); CollectionsMarshal.SetCount(list287, num3); - Span span82 = CollectionsMarshal.AsSpan(list287); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span287 = CollectionsMarshal.AsSpan(list287); + num4 = 0; + span287[num4] = null; + num4++; + span287[num4] = null; + num4++; + span287[num4] = null; + num4++; + span287[num4] = null; + num4++; + span287[num4] = null; + num4++; + span287[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list287; reference210 = questStep18; - ref QuestStep reference211 = ref span79[3]; + num2++; + ref QuestStep reference211 = ref span284[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-458.26974f, 18.818102f, 479.86996f), 814); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list288 = new List(num3); - CollectionsMarshal.SetCount(list288, num3); - Span span83 = CollectionsMarshal.AsSpan(list288); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list288 = new List(num4); + CollectionsMarshal.SetCount(list288, num4); + Span span288 = CollectionsMarshal.AsSpan(list288); + num3 = 0; + span288[num3] = null; + num3++; + span288[num3] = null; + num3++; + span288[num3] = null; + num3++; + span288[num3] = null; + num3++; + span288[num3] = null; + num3++; + span288[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list288; skipConditions3.StepIf = skipStepConditions2; questStep19.SkipConditions = skipConditions3; reference211 = questStep19; - ref QuestStep reference212 = ref span79[4]; + num2++; + ref QuestStep reference212 = ref span284[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2010089u, new Vector3(-458.2437f, 20.004517f, 481.58997f), 814); num3 = 6; List list289 = new List(num3); CollectionsMarshal.SetCount(list289, num3); - Span span84 = CollectionsMarshal.AsSpan(list289); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span289 = CollectionsMarshal.AsSpan(list289); + num4 = 0; + span289[num4] = null; + num4++; + span289[num4] = null; + num4++; + span289[num4] = null; + num4++; + span289[num4] = null; + num4++; + span289[num4] = null; + num4++; + span289[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list289; reference212 = questStep20; obj192.Steps = list284; reference207 = obj192; - ref QuestSequence reference213 = ref span78[4]; + num++; + ref QuestSequence reference213 = ref span280[num]; QuestSequence obj194 = new QuestSequence { Sequence = 4 @@ -236790,19 +286820,23 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list290)[0]; + Span span290 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + ref QuestStep reference214 = ref span290[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1027288u, new Vector3(-457.3587f, 8.987028f, 537.04126f), 814); - num3 = 2; - List list291 = new List(num3); - CollectionsMarshal.SetCount(list291, num3); - Span span85 = CollectionsMarshal.AsSpan(list291); - span85[0] = new DialogueChoice + num4 = 2; + List list291 = new List(num4); + CollectionsMarshal.SetCount(list291, num4); + Span span291 = CollectionsMarshal.AsSpan(list291); + num3 = 0; + span291[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME104_03633_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKME104_03633_A1_000_006") }; - span85[1] = new DialogueChoice + num3++; + span291[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME104_03633_Q2_000_000"), @@ -236812,15 +286846,18 @@ public static class AssemblyQuestLoader reference214 = questStep21; obj194.Steps = list290; reference213 = obj194; - ref QuestSequence reference215 = ref span78[5]; + num++; + ref QuestSequence reference215 = ref span280[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030197u, new Vector3(-456.68726f, 65.77815f, 79.9115f), 814); + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + Span span292 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span292[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030197u, new Vector3(-456.68726f, 65.77815f, 79.9115f), 814); obj195.Steps = list292; reference215 = obj195; questRoot33.QuestSequence = list280; @@ -236830,13 +286867,16 @@ public static class AssemblyQuestLoader num = 1; List list293 = new List(num); CollectionsMarshal.SetCount(list293, num); - CollectionsMarshal.AsSpan(list293)[0] = "liza"; + Span span293 = CollectionsMarshal.AsSpan(list293); + index = 0; + span293[index] = "liza"; questRoot34.Author = list293; - num = 7; - List list294 = new List(num); - CollectionsMarshal.SetCount(list294, num); - Span span86 = CollectionsMarshal.AsSpan(list294); - ref QuestSequence reference216 = ref span86[0]; + index = 7; + List list294 = new List(index); + CollectionsMarshal.SetCount(list294, index); + Span span294 = CollectionsMarshal.AsSpan(list294); + num = 0; + ref QuestSequence reference216 = ref span294[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -236844,21 +286884,27 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030197u, new Vector3(-456.68726f, 65.77815f, 79.9115f), 814); + Span span295 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span295[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030197u, new Vector3(-456.68726f, 65.77815f, 79.9115f), 814); obj196.Steps = list295; reference216 = obj196; - ref QuestSequence reference217 = ref span86[1]; + num++; + ref QuestSequence reference217 = ref span294[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.Interact, 2010124u, new Vector3(-482.0783f, 65.7511f, 93.12573f), 814); + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span296 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span296[num2] = new QuestStep(EInteractionType.Interact, 2010124u, new Vector3(-482.0783f, 65.7511f, 93.12573f), 814); obj197.Steps = list296; reference217 = obj197; - ref QuestSequence reference218 = ref span86[2]; + num++; + ref QuestSequence reference218 = ref span294[num]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -236866,21 +286912,27 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 1030207u, new Vector3(-448.661f, 334.0526f, -36.91156f), 814); + Span span297 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span297[index2] = new QuestStep(EInteractionType.Interact, 1030207u, new Vector3(-448.661f, 334.0526f, -36.91156f), 814); obj198.Steps = list297; reference218 = obj198; - ref QuestSequence reference219 = ref span86[3]; + num++; + ref QuestSequence reference219 = ref span294[num]; QuestSequence obj199 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.Interact, 1030208u, new Vector3(-418.38715f, 354.3414f, 25.284058f), 814); + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + Span span298 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span298[num2] = new QuestStep(EInteractionType.Interact, 1030208u, new Vector3(-418.38715f, 354.3414f, 25.284058f), 814); obj199.Steps = list298; reference219 = obj199; - ref QuestSequence reference220 = ref span86[4]; + num++; + ref QuestSequence reference220 = ref span294[num]; QuestSequence obj200 = new QuestSequence { Sequence = 4 @@ -236888,66 +286940,91 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Snipe, 2010090u, new Vector3(-416.28143f, 354.3297f, 22.47644f), 814) + Span span299 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span299[index2] = new QuestStep(EInteractionType.Snipe, 2010090u, new Vector3(-416.28143f, 354.3297f, 22.47644f), 814) { Comment = "Click on the guy left of the the rock" }; obj200.Steps = list299; reference220 = obj200; - ref QuestSequence reference221 = ref span86[5]; + num++; + ref QuestSequence reference221 = ref span294[num]; QuestSequence obj201 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - Span span87 = CollectionsMarshal.AsSpan(list300); - ref QuestStep reference222 = ref span87[0]; + index2 = 3; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + Span span300 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + ref QuestStep reference222 = ref span300[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 2010091u, new Vector3(-120.0733f, 353.4751f, -206.71399f), 814); num3 = 6; List list301 = new List(num3); CollectionsMarshal.SetCount(list301, num3); - Span span88 = CollectionsMarshal.AsSpan(list301); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span301 = CollectionsMarshal.AsSpan(list301); + num4 = 0; + span301[num4] = null; + num4++; + span301[num4] = null; + num4++; + span301[num4] = null; + num4++; + span301[num4] = null; + num4++; + span301[num4] = null; + num4++; + span301[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list301; reference222 = questStep22; - ref QuestStep reference223 = ref span87[1]; + num2++; + ref QuestStep reference223 = ref span300[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 2010093u, new Vector3(-132.52466f, 355.24524f, -176.25696f), 814); - num3 = 6; - List list302 = new List(num3); - CollectionsMarshal.SetCount(list302, num3); - Span span89 = CollectionsMarshal.AsSpan(list302); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list302 = new List(num4); + CollectionsMarshal.SetCount(list302, num4); + Span span302 = CollectionsMarshal.AsSpan(list302); + num3 = 0; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list302; reference223 = questStep23; - ref QuestStep reference224 = ref span87[2]; + num2++; + ref QuestStep reference224 = ref span300[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 2010092u, new Vector3(-151.41534f, 353.53625f, -188.89148f), 814); num3 = 6; List list303 = new List(num3); CollectionsMarshal.SetCount(list303, num3); - Span span90 = CollectionsMarshal.AsSpan(list303); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span303 = CollectionsMarshal.AsSpan(list303); + num4 = 0; + span303[num4] = null; + num4++; + span303[num4] = null; + num4++; + span303[num4] = null; + num4++; + span303[num4] = null; + num4++; + span303[num4] = null; + num4++; + span303[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list303; reference224 = questStep24; obj201.Steps = list300; reference221 = obj201; - ref QuestSequence reference225 = ref span86[6]; + num++; + ref QuestSequence reference225 = ref span294[num]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue @@ -236955,7 +287032,9 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030211u, new Vector3(-137.3465f, 352.35822f, -188.03699f), 814); + Span span304 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span304[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030211u, new Vector3(-137.3465f, 352.35822f, -188.03699f), 814); obj202.Steps = list304; reference225 = obj202; questRoot34.QuestSequence = list294; @@ -236965,24 +287044,30 @@ public static class AssemblyQuestLoader num = 1; List list305 = new List(num); CollectionsMarshal.SetCount(list305, num); - CollectionsMarshal.AsSpan(list305)[0] = "liza"; + Span span305 = CollectionsMarshal.AsSpan(list305); + index = 0; + span305[index] = "liza"; questRoot35.Author = list305; - num = 6; - List list306 = new List(num); - CollectionsMarshal.SetCount(list306, num); - Span span91 = CollectionsMarshal.AsSpan(list306); - ref QuestSequence reference226 = ref span91[0]; + index = 6; + List list306 = new List(index); + CollectionsMarshal.SetCount(list306, index); + Span span306 = CollectionsMarshal.AsSpan(list306); + num = 0; + ref QuestSequence reference226 = ref span306[num]; QuestSequence obj203 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030213u, new Vector3(-124.62048f, 352.35822f, -192.27899f), 814); + index2 = 1; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + Span span307 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span307[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030213u, new Vector3(-124.62048f, 352.35822f, -192.27899f), 814); obj203.Steps = list307; reference226 = obj203; - ref QuestSequence reference227 = ref span91[1]; + num++; + ref QuestSequence reference227 = ref span306[num]; QuestSequence obj204 = new QuestSequence { Sequence = 1 @@ -236990,31 +287075,39 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1030214u, new Vector3(-119.73761f, 362.56046f, -346.15094f), 814); + Span span308 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span308[index2] = new QuestStep(EInteractionType.Interact, 1030214u, new Vector3(-119.73761f, 362.56046f, -346.15094f), 814); obj204.Steps = list308; reference227 = obj204; - ref QuestSequence reference228 = ref span91[2]; + num++; + ref QuestSequence reference228 = ref span306[num]; QuestSequence obj205 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - ref QuestStep reference229 = ref CollectionsMarshal.AsSpan(list309)[0]; + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + Span span309 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + ref QuestStep reference229 = ref span309[num2]; QuestStep obj206 = new QuestStep(EInteractionType.Combat, 2010094u, new Vector3(-279.07227f, 378.6831f, -404.37933f), 814) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list310 = new List(num3); - CollectionsMarshal.SetCount(list310, num3); - CollectionsMarshal.AsSpan(list310)[0] = 10862u; + num4 = 1; + List list310 = new List(num4); + CollectionsMarshal.SetCount(list310, num4); + Span span310 = CollectionsMarshal.AsSpan(list310); + num3 = 0; + span310[num3] = 10862u; obj206.KillEnemyDataIds = list310; reference229 = obj206; obj205.Steps = list309; reference228 = obj205; - ref QuestSequence reference230 = ref span91[3]; + num++; + ref QuestSequence reference230 = ref span306[num]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -237022,7 +287115,9 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - ref QuestStep reference231 = ref CollectionsMarshal.AsSpan(list311)[0]; + Span span311 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + ref QuestStep reference231 = ref span311[index2]; QuestStep obj208 = new QuestStep(EInteractionType.Combat, 2010095u, new Vector3(-168.9021f, 396.8108f, -468.31464f), 814) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -237030,25 +287125,31 @@ public static class AssemblyQuestLoader num3 = 2; List list312 = new List(num3); CollectionsMarshal.SetCount(list312, num3); - Span span92 = CollectionsMarshal.AsSpan(list312); - span92[0] = 10862u; - span92[1] = 10864u; + Span span312 = CollectionsMarshal.AsSpan(list312); + num4 = 0; + span312[num4] = 10862u; + num4++; + span312[num4] = 10864u; obj208.KillEnemyDataIds = list312; reference231 = obj208; obj207.Steps = list311; reference230 = obj207; - ref QuestSequence reference232 = ref span91[4]; + num++; + ref QuestSequence reference232 = ref span306[num]; QuestSequence obj209 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1030215u, new Vector3(-160.54016f, 455.2343f, -740.261f), 814); + index2 = 1; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + Span span313 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span313[num2] = new QuestStep(EInteractionType.Interact, 1030215u, new Vector3(-160.54016f, 455.2343f, -740.261f), 814); obj209.Steps = list313; reference232 = obj209; - ref QuestSequence reference233 = ref span91[5]; + num++; + ref QuestSequence reference233 = ref span306[num]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue @@ -237056,12 +287157,14 @@ public static class AssemblyQuestLoader num2 = 2; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span93 = CollectionsMarshal.AsSpan(list314); - span93[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) + Span span314 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span314[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) { Aetheryte = EAetheryteLocation.KholusiaTomra }; - span93[1] = new QuestStep(EInteractionType.CompleteQuest, 1030216u, new Vector3(-445.48718f, 334.0526f, -55.40558f), 814); + index2++; + span314[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030216u, new Vector3(-445.48718f, 334.0526f, -55.40558f), 814); obj210.Steps = list314; reference233 = obj210; questRoot35.QuestSequence = list306; @@ -237071,24 +287174,30 @@ public static class AssemblyQuestLoader num = 1; List list315 = new List(num); CollectionsMarshal.SetCount(list315, num); - CollectionsMarshal.AsSpan(list315)[0] = "liza"; + Span span315 = CollectionsMarshal.AsSpan(list315); + index = 0; + span315[index] = "liza"; questRoot36.Author = list315; - num = 4; - List list316 = new List(num); - CollectionsMarshal.SetCount(list316, num); - Span span94 = CollectionsMarshal.AsSpan(list316); - ref QuestSequence reference234 = ref span94[0]; + index = 4; + List list316 = new List(index); + CollectionsMarshal.SetCount(list316, index); + Span span316 = CollectionsMarshal.AsSpan(list316); + num = 0; + ref QuestSequence reference234 = ref span316[num]; QuestSequence obj211 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030216u, new Vector3(-445.48718f, 334.0526f, -55.40558f), 814); + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + Span span317 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span317[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030216u, new Vector3(-445.48718f, 334.0526f, -55.40558f), 814); obj211.Steps = list317; reference234 = obj211; - ref QuestSequence reference235 = ref span94[1]; + num++; + ref QuestSequence reference235 = ref span316[num]; QuestSequence obj212 = new QuestSequence { Sequence = 1 @@ -237096,45 +287205,54 @@ public static class AssemblyQuestLoader num2 = 1; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.Interact, 1030224u, new Vector3(-437.46094f, 334.0526f, -45.059937f), 814); + Span span318 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span318[index2] = new QuestStep(EInteractionType.Interact, 1030224u, new Vector3(-437.46094f, 334.0526f, -45.059937f), 814); obj212.Steps = list318; reference235 = obj212; - ref QuestSequence reference236 = ref span94[2]; + num++; + ref QuestSequence reference236 = ref span316[num]; QuestSequence obj213 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - ref QuestStep reference237 = ref CollectionsMarshal.AsSpan(list319)[0]; + index2 = 1; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + Span span319 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + ref QuestStep reference237 = ref span319[num2]; QuestStep obj214 = new QuestStep(EInteractionType.Interact, 1030223u, new Vector3(-436.5454f, 334.0526f, -46.707886f), 814) { StopDistance = 5f }; - num3 = 4; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - Span span95 = CollectionsMarshal.AsSpan(list320); - span95[0] = new DialogueChoice + num4 = 4; + List list320 = new List(num4); + CollectionsMarshal.SetCount(list320, num4); + Span span320 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span320[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME107_03636_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKME107_03636_A1_000_002") }; - span95[1] = new DialogueChoice + num3++; + span320[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME107_03636_Q2_000_000"), Answer = new ExcelRef("TEXT_LUCKME107_03636_A2_000_003") }; - span95[2] = new DialogueChoice + num3++; + span320[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME107_03636_Q3_000_000"), Answer = new ExcelRef("TEXT_LUCKME107_03636_A3_000_002") }; - span95[3] = new DialogueChoice + num3++; + span320[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME107_03636_Q4_000_000"), @@ -237144,7 +287262,8 @@ public static class AssemblyQuestLoader reference237 = obj214; obj213.Steps = list319; reference236 = obj213; - ref QuestSequence reference238 = ref span94[3]; + num++; + ref QuestSequence reference238 = ref span316[num]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue @@ -237152,7 +287271,9 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027462u, new Vector3(-121.87384f, 352.35822f, -191.08875f), 814); + Span span321 = CollectionsMarshal.AsSpan(list321); + index2 = 0; + span321[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027462u, new Vector3(-121.87384f, 352.35822f, -191.08875f), 814); obj215.Steps = list321; reference238 = obj215; questRoot36.QuestSequence = list316; @@ -237162,24 +287283,30 @@ public static class AssemblyQuestLoader num = 1; List list322 = new List(num); CollectionsMarshal.SetCount(list322, num); - CollectionsMarshal.AsSpan(list322)[0] = "liza"; + Span span322 = CollectionsMarshal.AsSpan(list322); + index = 0; + span322[index] = "liza"; questRoot37.Author = list322; - num = 6; - List list323 = new List(num); - CollectionsMarshal.SetCount(list323, num); - Span span96 = CollectionsMarshal.AsSpan(list323); - ref QuestSequence reference239 = ref span96[0]; + index = 6; + List list323 = new List(index); + CollectionsMarshal.SetCount(list323, index); + Span span323 = CollectionsMarshal.AsSpan(list323); + num = 0; + ref QuestSequence reference239 = ref span323[num]; QuestSequence obj216 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027462u, new Vector3(-121.87384f, 352.35822f, -191.08875f), 814); + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + Span span324 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span324[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027462u, new Vector3(-121.87384f, 352.35822f, -191.08875f), 814); obj216.Steps = list324; reference239 = obj216; - ref QuestSequence reference240 = ref span96[1]; + num++; + ref QuestSequence reference240 = ref span323[num]; QuestSequence obj217 = new QuestSequence { Sequence = 1 @@ -237187,24 +287314,30 @@ public static class AssemblyQuestLoader num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1030229u, new Vector3(-425.80304f, 416.76733f, -586.2974f), 814) + Span span325 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span325[index2] = new QuestStep(EInteractionType.Interact, 1030229u, new Vector3(-425.80304f, 416.76733f, -586.2974f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra }; obj217.Steps = list325; reference240 = obj217; - ref QuestSequence reference241 = ref span96[2]; + num++; + ref QuestSequence reference241 = ref span323[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.Interact, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814); + index2 = 1; + List list326 = new List(index2); + CollectionsMarshal.SetCount(list326, index2); + Span span326 = CollectionsMarshal.AsSpan(list326); + num2 = 0; + span326[num2] = new QuestStep(EInteractionType.Interact, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814); obj218.Steps = list326; reference241 = obj218; - ref QuestSequence reference242 = ref span96[3]; + num++; + ref QuestSequence reference242 = ref span323[num]; QuestSequence obj219 = new QuestSequence { Sequence = 3 @@ -237212,27 +287345,33 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Snipe, 1030231u, new Vector3(-443.7171f, 417.16812f, -616.47974f), 814) + Span span327 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span327[index2] = new QuestStep(EInteractionType.Snipe, 1030231u, new Vector3(-443.7171f, 417.16812f, -616.47974f), 814) { Comment = "Click red hat dwarf (always shows up in the same location)" }; obj219.Steps = list327; reference242 = obj219; - ref QuestSequence reference243 = ref span96[4]; + num++; + ref QuestSequence reference243 = ref span323[num]; QuestSequence obj220 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Snipe, 1030231u, new Vector3(-443.7171f, 417.16812f, -616.47974f), 814) + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + Span span328 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span328[num2] = new QuestStep(EInteractionType.Snipe, 1030231u, new Vector3(-443.7171f, 417.16812f, -616.47974f), 814) { Comment = "Click red hat dwarf" }; obj220.Steps = list328; reference243 = obj220; - ref QuestSequence reference244 = ref span96[5]; + num++; + ref QuestSequence reference244 = ref span323[num]; QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue @@ -237240,7 +287379,9 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814); + Span span329 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + span329[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814); obj221.Steps = list329; reference244 = obj221; questRoot37.QuestSequence = list323; @@ -237250,24 +287391,30 @@ public static class AssemblyQuestLoader num = 1; List list330 = new List(num); CollectionsMarshal.SetCount(list330, num); - CollectionsMarshal.AsSpan(list330)[0] = "liza"; + Span span330 = CollectionsMarshal.AsSpan(list330); + index = 0; + span330[index] = "liza"; questRoot38.Author = list330; - num = 3; - List list331 = new List(num); - CollectionsMarshal.SetCount(list331, num); - Span span97 = CollectionsMarshal.AsSpan(list331); - ref QuestSequence reference245 = ref span97[0]; + index = 3; + List list331 = new List(index); + CollectionsMarshal.SetCount(list331, index); + Span span331 = CollectionsMarshal.AsSpan(list331); + num = 0; + ref QuestSequence reference245 = ref span331[num]; QuestSequence obj222 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list332 = new List(num2); - CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814); + index2 = 1; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + Span span332 = CollectionsMarshal.AsSpan(list332); + num2 = 0; + span332[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814); obj222.Steps = list332; reference245 = obj222; - ref QuestSequence reference246 = ref span97[1]; + num++; + ref QuestSequence reference246 = ref span331[num]; QuestSequence obj223 = new QuestSequence { Sequence = 1 @@ -237275,7 +287422,9 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030239u, new Vector3(-467.76532f, 417.22897f, -648.85944f), 814) + Span span333 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span333[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030239u, new Vector3(-467.76532f, 417.22897f, -648.85944f), 814) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -237284,15 +287433,18 @@ public static class AssemblyQuestLoader }; obj223.Steps = list333; reference246 = obj223; - ref QuestSequence reference247 = ref span97[2]; + num++; + ref QuestSequence reference247 = ref span331[num]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030233u, new Vector3(349.2942f, 315.2037f, -373.25098f), 814); + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + Span span334 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span334[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030233u, new Vector3(349.2942f, 315.2037f, -373.25098f), 814); obj224.Steps = list334; reference247 = obj224; questRoot38.QuestSequence = list331; @@ -237302,13 +287454,16 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - CollectionsMarshal.AsSpan(list335)[0] = "liza"; + Span span335 = CollectionsMarshal.AsSpan(list335); + index = 0; + span335[index] = "liza"; questRoot39.Author = list335; - num = 5; - List list336 = new List(num); - CollectionsMarshal.SetCount(list336, num); - Span span98 = CollectionsMarshal.AsSpan(list336); - ref QuestSequence reference248 = ref span98[0]; + index = 5; + List list336 = new List(index); + CollectionsMarshal.SetCount(list336, index); + Span span336 = CollectionsMarshal.AsSpan(list336); + num = 0; + ref QuestSequence reference248 = ref span336[num]; QuestSequence obj225 = new QuestSequence { Sequence = 0 @@ -237316,21 +287471,27 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030233u, new Vector3(349.2942f, 315.2037f, -373.25098f), 814); + Span span337 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span337[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030233u, new Vector3(349.2942f, 315.2037f, -373.25098f), 814); obj225.Steps = list337; reference248 = obj225; - ref QuestSequence reference249 = ref span98[1]; + num++; + ref QuestSequence reference249 = ref span336[num]; QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.Interact, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + Span span338 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span338[num2] = new QuestStep(EInteractionType.Interact, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); obj226.Steps = list338; reference249 = obj226; - ref QuestSequence reference250 = ref span98[2]; + num++; + ref QuestSequence reference250 = ref span336[num]; QuestSequence obj227 = new QuestSequence { Sequence = 2 @@ -237338,23 +287499,28 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); + Span span339 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span339[index2] = new QuestStep(EInteractionType.Interact, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); obj227.Steps = list339; reference250 = obj227; - ref QuestSequence reference251 = ref span98[3]; + num++; + ref QuestSequence reference251 = ref span336[num]; QuestSequence obj228 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - Span span99 = CollectionsMarshal.AsSpan(list340); - span99[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010041u, new Vector3(623.7429f, 285.93872f, -555.26056f), 814) + index2 = 4; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + Span span340 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span340[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010041u, new Vector3(623.7429f, 285.93872f, -555.26056f), 814) { AetherCurrentId = 2818245u }; - ref QuestStep reference252 = ref span99[1]; + num2++; + ref QuestStep reference252 = ref span340[num2]; QuestStep obj229 = new QuestStep(EInteractionType.UseItem, 1030235u, new Vector3(705.0431f, 270.07697f, -492.9122f), 814) { ItemId = 2002610u @@ -237362,33 +287528,47 @@ public static class AssemblyQuestLoader num3 = 6; List list341 = new List(num3); CollectionsMarshal.SetCount(list341, num3); - Span span100 = CollectionsMarshal.AsSpan(list341); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span341 = CollectionsMarshal.AsSpan(list341); + num4 = 0; + span341[num4] = null; + num4++; + span341[num4] = null; + num4++; + span341[num4] = null; + num4++; + span341[num4] = null; + num4++; + span341[num4] = null; + num4++; + span341[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj229.CompletionQuestVariablesFlags = list341; reference252 = obj229; - ref QuestStep reference253 = ref span99[2]; + num2++; + ref QuestStep reference253 = ref span340[num2]; QuestStep obj230 = new QuestStep(EInteractionType.UseItem, 1030236u, new Vector3(744.53345f, 269.99976f, -515.49554f), 814) { ItemId = 2002610u }; - num3 = 6; - List list342 = new List(num3); - CollectionsMarshal.SetCount(list342, num3); - Span span101 = CollectionsMarshal.AsSpan(list342); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list342 = new List(num4); + CollectionsMarshal.SetCount(list342, num4); + Span span342 = CollectionsMarshal.AsSpan(list342); + num3 = 0; + span342[num3] = null; + num3++; + span342[num3] = null; + num3++; + span342[num3] = null; + num3++; + span342[num3] = null; + num3++; + span342[num3] = null; + num3++; + span342[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj230.CompletionQuestVariablesFlags = list342; reference253 = obj230; - ref QuestStep reference254 = ref span99[3]; + num2++; + ref QuestStep reference254 = ref span340[num2]; QuestStep obj231 = new QuestStep(EInteractionType.UseItem, 1030237u, new Vector3(747.12744f, 270f, -477.4395f), 814) { ItemId = 2002610u @@ -237396,18 +287576,25 @@ public static class AssemblyQuestLoader num3 = 6; List list343 = new List(num3); CollectionsMarshal.SetCount(list343, num3); - Span span102 = CollectionsMarshal.AsSpan(list343); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span343 = CollectionsMarshal.AsSpan(list343); + num4 = 0; + span343[num4] = null; + num4++; + span343[num4] = null; + num4++; + span343[num4] = null; + num4++; + span343[num4] = null; + num4++; + span343[num4] = null; + num4++; + span343[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj231.CompletionQuestVariablesFlags = list343; reference254 = obj231; obj228.Steps = list340; reference251 = obj228; - ref QuestSequence reference255 = ref span98[4]; + num++; + ref QuestSequence reference255 = ref span336[num]; QuestSequence obj232 = new QuestSequence { Sequence = byte.MaxValue @@ -237415,7 +287602,9 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); + Span span344 = CollectionsMarshal.AsSpan(list344); + index2 = 0; + span344[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); obj232.Steps = list344; reference255 = obj232; questRoot39.QuestSequence = list336; @@ -237425,24 +287614,30 @@ public static class AssemblyQuestLoader num = 1; List list345 = new List(num); CollectionsMarshal.SetCount(list345, num); - CollectionsMarshal.AsSpan(list345)[0] = "liza"; + Span span345 = CollectionsMarshal.AsSpan(list345); + index = 0; + span345[index] = "liza"; questRoot40.Author = list345; - num = 5; - List list346 = new List(num); - CollectionsMarshal.SetCount(list346, num); - Span span103 = CollectionsMarshal.AsSpan(list346); - ref QuestSequence reference256 = ref span103[0]; + index = 5; + List list346 = new List(index); + CollectionsMarshal.SetCount(list346, index); + Span span346 = CollectionsMarshal.AsSpan(list346); + num = 0; + ref QuestSequence reference256 = ref span346[num]; QuestSequence obj233 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); + index2 = 1; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + Span span347 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + span347[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); obj233.Steps = list347; reference256 = obj233; - ref QuestSequence reference257 = ref span103[1]; + num++; + ref QuestSequence reference257 = ref span346[num]; QuestSequence obj234 = new QuestSequence { Sequence = 1 @@ -237450,27 +287645,33 @@ public static class AssemblyQuestLoader num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.Interact, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814) + Span span348 = CollectionsMarshal.AsSpan(list348); + index2 = 0; + span348[index2] = new QuestStep(EInteractionType.Interact, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra }; obj234.Steps = list348; reference257 = obj234; - ref QuestSequence reference258 = ref span103[2]; + num++; + ref QuestSequence reference258 = ref span346[num]; QuestSequence obj235 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list349 = new List(num2); - CollectionsMarshal.SetCount(list349, num2); - Span span104 = CollectionsMarshal.AsSpan(list349); - ref QuestStep reference259 = ref span104[0]; + index2 = 2; + List list349 = new List(index2); + CollectionsMarshal.SetCount(list349, index2); + Span span349 = CollectionsMarshal.AsSpan(list349); + num2 = 0; + ref QuestStep reference259 = ref span349[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.AcceptQuest, 1030776u, new Vector3(-450.85834f, 417.1344f, -610.8644f), 814); - num3 = 1; - List list350 = new List(num3); - CollectionsMarshal.SetCount(list350, num3); - CollectionsMarshal.AsSpan(list350)[0] = new DialogueChoice + num4 = 1; + List list350 = new List(num4); + CollectionsMarshal.SetCount(list350, num4); + Span span350 = CollectionsMarshal.AsSpan(list350); + num3 = 0; + span350[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/035/LucKzi101_03556", @@ -237480,10 +287681,12 @@ public static class AssemblyQuestLoader questStep25.DialogueChoices = list350; questStep25.PickUpQuestId = new QuestId(3556); reference259 = questStep25; - span104[1] = new QuestStep(EInteractionType.Interact, 1030292u, new Vector3(-463.73694f, 334.0526f, -81.04071f), 814); + num2++; + span349[num2] = new QuestStep(EInteractionType.Interact, 1030292u, new Vector3(-463.73694f, 334.0526f, -81.04071f), 814); obj235.Steps = list349; reference258 = obj235; - ref QuestSequence reference260 = ref span103[3]; + num++; + ref QuestSequence reference260 = ref span346[num]; QuestSequence obj236 = new QuestSequence { Sequence = 3 @@ -237491,60 +287694,84 @@ public static class AssemblyQuestLoader num2 = 3; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - Span span105 = CollectionsMarshal.AsSpan(list351); - ref QuestStep reference261 = ref span105[0]; + Span span351 = CollectionsMarshal.AsSpan(list351); + index2 = 0; + ref QuestStep reference261 = ref span351[index2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1030243u, new Vector3(-473.4417f, 334.0526f, -71.15283f), 814); num3 = 6; List list352 = new List(num3); CollectionsMarshal.SetCount(list352, num3); - Span span106 = CollectionsMarshal.AsSpan(list352); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span352 = CollectionsMarshal.AsSpan(list352); + num4 = 0; + span352[num4] = null; + num4++; + span352[num4] = null; + num4++; + span352[num4] = null; + num4++; + span352[num4] = null; + num4++; + span352[num4] = null; + num4++; + span352[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list352; reference261 = questStep26; - ref QuestStep reference262 = ref span105[1]; + index2++; + ref QuestStep reference262 = ref span351[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1030240u, new Vector3(-464.49988f, 334.0526f, -65.53754f), 814); - num3 = 6; - List list353 = new List(num3); - CollectionsMarshal.SetCount(list353, num3); - Span span107 = CollectionsMarshal.AsSpan(list353); - span107[0] = null; - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list353 = new List(num4); + CollectionsMarshal.SetCount(list353, num4); + Span span353 = CollectionsMarshal.AsSpan(list353); + num3 = 0; + span353[num3] = null; + num3++; + span353[num3] = null; + num3++; + span353[num3] = null; + num3++; + span353[num3] = null; + num3++; + span353[num3] = null; + num3++; + span353[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list353; reference262 = questStep27; - ref QuestStep reference263 = ref span105[2]; + index2++; + ref QuestStep reference263 = ref span351[index2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1030244u, new Vector3(-453.23877f, 334.0526f, -76.27985f), 814); num3 = 6; List list354 = new List(num3); CollectionsMarshal.SetCount(list354, num3); - Span span108 = CollectionsMarshal.AsSpan(list354); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span354 = CollectionsMarshal.AsSpan(list354); + num4 = 0; + span354[num4] = null; + num4++; + span354[num4] = null; + num4++; + span354[num4] = null; + num4++; + span354[num4] = null; + num4++; + span354[num4] = null; + num4++; + span354[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep28.CompletionQuestVariablesFlags = list354; reference263 = questStep28; obj236.Steps = list351; reference260 = obj236; - ref QuestSequence reference264 = ref span103[4]; + num++; + ref QuestSequence reference264 = ref span346[num]; QuestSequence obj237 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030292u, new Vector3(-463.73694f, 334.0526f, -81.04071f), 814); + index2 = 1; + List list355 = new List(index2); + CollectionsMarshal.SetCount(list355, index2); + Span span355 = CollectionsMarshal.AsSpan(list355); + num2 = 0; + span355[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030292u, new Vector3(-463.73694f, 334.0526f, -81.04071f), 814); obj237.Steps = list355; reference264 = obj237; questRoot40.QuestSequence = list346; @@ -237554,13 +287781,16 @@ public static class AssemblyQuestLoader num = 1; List list356 = new List(num); CollectionsMarshal.SetCount(list356, num); - CollectionsMarshal.AsSpan(list356)[0] = "liza"; + Span span356 = CollectionsMarshal.AsSpan(list356); + index = 0; + span356[index] = "liza"; questRoot41.Author = list356; - num = 5; - List list357 = new List(num); - CollectionsMarshal.SetCount(list357, num); - Span span109 = CollectionsMarshal.AsSpan(list357); - ref QuestSequence reference265 = ref span109[0]; + index = 5; + List list357 = new List(index); + CollectionsMarshal.SetCount(list357, index); + Span span357 = CollectionsMarshal.AsSpan(list357); + num = 0; + ref QuestSequence reference265 = ref span357[num]; QuestSequence obj238 = new QuestSequence { Sequence = 0 @@ -237568,24 +287798,30 @@ public static class AssemblyQuestLoader num2 = 1; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030238u, new Vector3(-466.08685f, 334.0526f, -81.13226f), 814) + Span span358 = CollectionsMarshal.AsSpan(list358); + index2 = 0; + span358[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030238u, new Vector3(-466.08685f, 334.0526f, -81.13226f), 814) { StopDistance = 7f }; obj238.Steps = list358; reference265 = obj238; - ref QuestSequence reference266 = ref span109[1]; + num++; + ref QuestSequence reference266 = ref span357[num]; QuestSequence obj239 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list359 = new List(num2); - CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.Interact, 1030250u, new Vector3(-137.59064f, 352.35822f, -190.90564f), 814); + index2 = 1; + List list359 = new List(index2); + CollectionsMarshal.SetCount(list359, index2); + Span span359 = CollectionsMarshal.AsSpan(list359); + num2 = 0; + span359[num2] = new QuestStep(EInteractionType.Interact, 1030250u, new Vector3(-137.59064f, 352.35822f, -190.90564f), 814); obj239.Steps = list359; reference266 = obj239; - ref QuestSequence reference267 = ref span109[2]; + num++; + ref QuestSequence reference267 = ref span357[num]; QuestSequence obj240 = new QuestSequence { Sequence = 2 @@ -237593,21 +287829,27 @@ public static class AssemblyQuestLoader num2 = 1; List list360 = new List(num2); CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.Interact, 1030250u, new Vector3(-137.59064f, 352.35822f, -190.90564f), 814); + Span span360 = CollectionsMarshal.AsSpan(list360); + index2 = 0; + span360[index2] = new QuestStep(EInteractionType.Interact, 1030250u, new Vector3(-137.59064f, 352.35822f, -190.90564f), 814); obj240.Steps = list360; reference267 = obj240; - ref QuestSequence reference268 = ref span109[3]; + num++; + ref QuestSequence reference268 = ref span357[num]; QuestSequence obj241 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list361 = new List(num2); - CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.Interact, 2010098u, new Vector3(-137.59064f, 353.53625f, -192.52313f), 814); + index2 = 1; + List list361 = new List(index2); + CollectionsMarshal.SetCount(list361, index2); + Span span361 = CollectionsMarshal.AsSpan(list361); + num2 = 0; + span361[num2] = new QuestStep(EInteractionType.Interact, 2010098u, new Vector3(-137.59064f, 353.53625f, -192.52313f), 814); obj241.Steps = list361; reference268 = obj241; - ref QuestSequence reference269 = ref span109[4]; + num++; + ref QuestSequence reference269 = ref span357[num]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue @@ -237615,7 +287857,9 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030253u, new Vector3(-141.22229f, 352.35822f, -188.95251f), 814) + Span span362 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span362[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030253u, new Vector3(-141.22229f, 352.35822f, -188.95251f), 814) { StopDistance = 7f }; @@ -237628,27 +287872,33 @@ public static class AssemblyQuestLoader num = 1; List list363 = new List(num); CollectionsMarshal.SetCount(list363, num); - CollectionsMarshal.AsSpan(list363)[0] = "liza"; + Span span363 = CollectionsMarshal.AsSpan(list363); + index = 0; + span363[index] = "liza"; questRoot42.Author = list363; - num = 4; - List list364 = new List(num); - CollectionsMarshal.SetCount(list364, num); - Span span110 = CollectionsMarshal.AsSpan(list364); - ref QuestSequence reference270 = ref span110[0]; + index = 4; + List list364 = new List(index); + CollectionsMarshal.SetCount(list364, index); + Span span364 = CollectionsMarshal.AsSpan(list364); + num = 0; + ref QuestSequence reference270 = ref span364[num]; QuestSequence obj243 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030253u, new Vector3(-141.22229f, 352.35822f, -188.95251f), 814) + index2 = 1; + List list365 = new List(index2); + CollectionsMarshal.SetCount(list365, index2); + Span span365 = CollectionsMarshal.AsSpan(list365); + num2 = 0; + span365[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030253u, new Vector3(-141.22229f, 352.35822f, -188.95251f), 814) { StopDistance = 7f }; obj243.Steps = list365; reference270 = obj243; - ref QuestSequence reference271 = ref span110[1]; + num++; + ref QuestSequence reference271 = ref span364[num]; QuestSequence obj244 = new QuestSequence { Sequence = 1 @@ -237656,24 +287906,29 @@ public static class AssemblyQuestLoader num2 = 1; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.Interact, 1030254u, new Vector3(-132.82983f, 354.35815f, -177.20306f), 814); + Span span366 = CollectionsMarshal.AsSpan(list366); + index2 = 0; + span366[index2] = new QuestStep(EInteractionType.Interact, 1030254u, new Vector3(-132.82983f, 354.35815f, -177.20306f), 814); obj244.Steps = list366; reference271 = obj244; - ref QuestSequence reference272 = ref span110[2]; + num++; + ref QuestSequence reference272 = ref span364[num]; QuestSequence obj245 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - Span span111 = CollectionsMarshal.AsSpan(list367); - span111[0] = new QuestStep(EInteractionType.AcceptQuest, 1027956u, new Vector3(-128.77094f, 354.35815f, -179.18677f), 814) + index2 = 5; + List list367 = new List(index2); + CollectionsMarshal.SetCount(list367, index2); + Span span367 = CollectionsMarshal.AsSpan(list367); + num2 = 0; + span367[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027956u, new Vector3(-128.77094f, 354.35815f, -179.18677f), 814) { StopDistance = 5f, PickUpQuestId = new QuestId(3537) }; - span111[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-122.537926f, 352.3582f, -173.26604f), 814) + num2++; + span367[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-122.537926f, 352.3582f, -173.26604f), 814) { StopDistance = 0.5f, Mount = true, @@ -237682,19 +287937,23 @@ public static class AssemblyQuestLoader Position = new Vector3(-119.30471f, 349.90027f, -158.2842f) } }; - span111[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010042u, new Vector3(-62.912964f, 345.11328f, -16.556091f), 814) + num2++; + span367[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010042u, new Vector3(-62.912964f, 345.11328f, -16.556091f), 814) { AetherCurrentId = 2818246u }; - span111[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.071743f, 324.03458f, 14.810446f), 814) + num2++; + span367[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.071743f, 324.03458f, 14.810446f), 814) { DisableNavmesh = true, Mount = true }; - span111[4] = new QuestStep(EInteractionType.Interact, 1030293u, new Vector3(-5.1728516f, 324.3521f, 190.50879f), 814); + num2++; + span367[num2] = new QuestStep(EInteractionType.Interact, 1030293u, new Vector3(-5.1728516f, 324.3521f, 190.50879f), 814); obj245.Steps = list367; reference272 = obj245; - ref QuestSequence reference273 = ref span110[3]; + num++; + ref QuestSequence reference273 = ref span364[num]; QuestSequence obj246 = new QuestSequence { Sequence = byte.MaxValue @@ -237702,8 +287961,9 @@ public static class AssemblyQuestLoader num2 = 2; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - Span span112 = CollectionsMarshal.AsSpan(list368); - span112[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-92.20083f, 351.37643f, -192.06285f), 814) + Span span368 = CollectionsMarshal.AsSpan(list368); + index2 = 0; + span368[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-92.20083f, 351.37643f, -192.06285f), 814) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -237711,7 +287971,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-106.80138f, 352.33783f, -196.68427f) } }; - span112[1] = new QuestStep(EInteractionType.CompleteQuest, 1030294u, new Vector3(-142.13782f, 352.3582f, -189.47137f), 814); + index2++; + span368[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030294u, new Vector3(-142.13782f, 352.3582f, -189.47137f), 814); obj246.Steps = list368; reference273 = obj246; questRoot42.QuestSequence = list364; @@ -237721,27 +287982,33 @@ public static class AssemblyQuestLoader num = 1; List list369 = new List(num); CollectionsMarshal.SetCount(list369, num); - CollectionsMarshal.AsSpan(list369)[0] = "liza"; + Span span369 = CollectionsMarshal.AsSpan(list369); + index = 0; + span369[index] = "liza"; questRoot43.Author = list369; - num = 7; - List list370 = new List(num); - CollectionsMarshal.SetCount(list370, num); - Span span113 = CollectionsMarshal.AsSpan(list370); - ref QuestSequence reference274 = ref span113[0]; + index = 7; + List list370 = new List(index); + CollectionsMarshal.SetCount(list370, index); + Span span370 = CollectionsMarshal.AsSpan(list370); + num = 0; + ref QuestSequence reference274 = ref span370[num]; QuestSequence obj247 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list371 = new List(num2); - CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030295u, new Vector3(-140.00159f, 352.35822f, -187.91486f), 814) + index2 = 1; + List list371 = new List(index2); + CollectionsMarshal.SetCount(list371, index2); + Span span371 = CollectionsMarshal.AsSpan(list371); + num2 = 0; + span371[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030295u, new Vector3(-140.00159f, 352.35822f, -187.91486f), 814) { StopDistance = 5f }; obj247.Steps = list371; reference274 = obj247; - ref QuestSequence reference275 = ref span113[1]; + num++; + ref QuestSequence reference275 = ref span370[num]; QuestSequence obj248 = new QuestSequence { Sequence = 1 @@ -237749,12 +288016,16 @@ public static class AssemblyQuestLoader num2 = 1; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - ref QuestStep reference276 = ref CollectionsMarshal.AsSpan(list372)[0]; + Span span372 = CollectionsMarshal.AsSpan(list372); + index2 = 0; + ref QuestStep reference276 = ref span372[index2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1030294u, new Vector3(-142.13782f, 352.3582f, -189.47137f), 814); - num3 = 1; - List list373 = new List(num3); - CollectionsMarshal.SetCount(list373, num3); - CollectionsMarshal.AsSpan(list373)[0] = new DialogueChoice + num4 = 1; + List list373 = new List(num4); + CollectionsMarshal.SetCount(list373, num4); + Span span373 = CollectionsMarshal.AsSpan(list373); + num3 = 0; + span373[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME114_03643_Q1_000_000"), @@ -237764,21 +288035,25 @@ public static class AssemblyQuestLoader reference276 = questStep29; obj248.Steps = list372; reference275 = obj248; - ref QuestSequence reference277 = ref span113[2]; + num++; + ref QuestSequence reference277 = ref span370[num]; QuestSequence obj249 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list374 = new List(num2); - CollectionsMarshal.SetCount(list374, num2); - CollectionsMarshal.AsSpan(list374)[0] = new QuestStep(EInteractionType.Interact, 1030302u, new Vector3(-173.44934f, 460.47067f, -797.3602f), 814) + index2 = 1; + List list374 = new List(index2); + CollectionsMarshal.SetCount(list374, index2); + Span span374 = CollectionsMarshal.AsSpan(list374); + num2 = 0; + span374[num2] = new QuestStep(EInteractionType.Interact, 1030302u, new Vector3(-173.44934f, 460.47067f, -797.3602f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra }; obj249.Steps = list374; reference277 = obj249; - ref QuestSequence reference278 = ref span113[3]; + num++; + ref QuestSequence reference278 = ref span370[num]; QuestSequence obj250 = new QuestSequence { Sequence = 3 @@ -237786,7 +288061,9 @@ public static class AssemblyQuestLoader num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.Duty, null, null, 814) + Span span375 = CollectionsMarshal.AsSpan(list375); + index2 = 0; + span375[index2] = new QuestStep(EInteractionType.Duty, null, null, 814) { DutyOptions = new DutyOptions { @@ -237796,19 +288073,23 @@ public static class AssemblyQuestLoader }; obj250.Steps = list375; reference278 = obj250; - span113[4] = new QuestSequence + num++; + span370[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference279 = ref span113[5]; + num++; + ref QuestSequence reference279 = ref span370[num]; QuestSequence obj251 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.Duty, null, null, 880) + index2 = 1; + List list376 = new List(index2); + CollectionsMarshal.SetCount(list376, index2); + Span span376 = CollectionsMarshal.AsSpan(list376); + num2 = 0; + span376[num2] = new QuestStep(EInteractionType.Duty, null, null, 880) { DutyOptions = new DutyOptions { @@ -237817,7 +288098,8 @@ public static class AssemblyQuestLoader }; obj251.Steps = list376; reference279 = obj251; - ref QuestSequence reference280 = ref span113[6]; + num++; + ref QuestSequence reference280 = ref span370[num]; QuestSequence obj252 = new QuestSequence { Sequence = byte.MaxValue @@ -237825,7 +288107,9 @@ public static class AssemblyQuestLoader num2 = 1; List list377 = new List(num2); CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030303u, new Vector3(109.23926f, 0.0140714925f, 108.72046f), 880); + Span span377 = CollectionsMarshal.AsSpan(list377); + index2 = 0; + span377[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030303u, new Vector3(109.23926f, 0.0140714925f, 108.72046f), 880); obj252.Steps = list377; reference280 = obj252; questRoot43.QuestSequence = list370; @@ -237835,27 +288119,33 @@ public static class AssemblyQuestLoader num = 1; List list378 = new List(num); CollectionsMarshal.SetCount(list378, num); - CollectionsMarshal.AsSpan(list378)[0] = "liza"; + Span span378 = CollectionsMarshal.AsSpan(list378); + index = 0; + span378[index] = "liza"; questRoot44.Author = list378; - num = 5; - List list379 = new List(num); - CollectionsMarshal.SetCount(list379, num); - Span span114 = CollectionsMarshal.AsSpan(list379); - ref QuestSequence reference281 = ref span114[0]; + index = 5; + List list379 = new List(index); + CollectionsMarshal.SetCount(list379, index); + Span span379 = CollectionsMarshal.AsSpan(list379); + num = 0; + ref QuestSequence reference281 = ref span379[num]; QuestSequence obj253 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list380 = new List(num2); - CollectionsMarshal.SetCount(list380, num2); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) + index2 = 1; + List list380 = new List(index2); + CollectionsMarshal.SetCount(list380, index2); + Span span380 = CollectionsMarshal.AsSpan(list380); + num2 = 0; + span380[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) { StopDistance = 7f }; obj253.Steps = list380; reference281 = obj253; - ref QuestSequence reference282 = ref span114[1]; + num++; + ref QuestSequence reference282 = ref span379[num]; QuestSequence obj254 = new QuestSequence { Sequence = 1 @@ -237863,7 +288153,9 @@ public static class AssemblyQuestLoader num2 = 1; List list381 = new List(num2); CollectionsMarshal.SetCount(list381, num2); - CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819) + Span span381 = CollectionsMarshal.AsSpan(list381); + index2 = 0; + span381[index2] = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819) { AethernetShortcut = new AethernetShortcut { @@ -237873,18 +288165,22 @@ public static class AssemblyQuestLoader }; obj254.Steps = list381; reference282 = obj254; - ref QuestSequence reference283 = ref span114[2]; + num++; + ref QuestSequence reference283 = ref span379[num]; QuestSequence obj255 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list382 = new List(num2); - CollectionsMarshal.SetCount(list382, num2); - CollectionsMarshal.AsSpan(list382)[0] = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819); + index2 = 1; + List list382 = new List(index2); + CollectionsMarshal.SetCount(list382, index2); + Span span382 = CollectionsMarshal.AsSpan(list382); + num2 = 0; + span382[num2] = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819); obj255.Steps = list382; reference283 = obj255; - ref QuestSequence reference284 = ref span114[3]; + num++; + ref QuestSequence reference284 = ref span379[num]; QuestSequence obj256 = new QuestSequence { Sequence = 3 @@ -237892,7 +288188,9 @@ public static class AssemblyQuestLoader num2 = 1; List list383 = new List(num2); CollectionsMarshal.SetCount(list383, num2); - CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) + Span span383 = CollectionsMarshal.AsSpan(list383); + index2 = 0; + span383[index2] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) { AethernetShortcut = new AethernetShortcut { @@ -237902,15 +288200,18 @@ public static class AssemblyQuestLoader }; obj256.Steps = list383; reference284 = obj256; - ref QuestSequence reference285 = ref span114[4]; + num++; + ref QuestSequence reference285 = ref span379[num]; QuestSequence obj257 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list384 = new List(num2); - CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819) + index2 = 1; + List list384 = new List(index2); + CollectionsMarshal.SetCount(list384, index2); + Span span384 = CollectionsMarshal.AsSpan(list384); + num2 = 0; + span384[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -237928,13 +288229,16 @@ public static class AssemblyQuestLoader num = 1; List list385 = new List(num); CollectionsMarshal.SetCount(list385, num); - CollectionsMarshal.AsSpan(list385)[0] = "liza"; + Span span385 = CollectionsMarshal.AsSpan(list385); + index = 0; + span385[index] = "liza"; questRoot45.Author = list385; - num = 4; - List list386 = new List(num); - CollectionsMarshal.SetCount(list386, num); - Span span115 = CollectionsMarshal.AsSpan(list386); - ref QuestSequence reference286 = ref span115[0]; + index = 4; + List list386 = new List(index); + CollectionsMarshal.SetCount(list386, index); + Span span386 = CollectionsMarshal.AsSpan(list386); + num = 0; + ref QuestSequence reference286 = ref span386[num]; QuestSequence obj258 = new QuestSequence { Sequence = 0 @@ -237942,18 +288246,23 @@ public static class AssemblyQuestLoader num2 = 1; List list387 = new List(num2); CollectionsMarshal.SetCount(list387, num2); - CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819); + Span span387 = CollectionsMarshal.AsSpan(list387); + index2 = 0; + span387[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819); obj258.Steps = list387; reference286 = obj258; - ref QuestSequence reference287 = ref span115[1]; + num++; + ref QuestSequence reference287 = ref span386[num]; QuestSequence obj259 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list388 = new List(num2); - CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.Interact, 2010136u, new Vector3(-223.46838f, 38.590088f, -86.86963f), 819) + index2 = 1; + List list388 = new List(index2); + CollectionsMarshal.SetCount(list388, index2); + Span span388 = CollectionsMarshal.AsSpan(list388); + num2 = 0; + span388[num2] = new QuestStep(EInteractionType.Interact, 2010136u, new Vector3(-223.46838f, 38.590088f, -86.86963f), 819) { AethernetShortcut = new AethernetShortcut { @@ -237963,7 +288272,8 @@ public static class AssemblyQuestLoader }; obj259.Steps = list388; reference287 = obj259; - ref QuestSequence reference288 = ref span115[2]; + num++; + ref QuestSequence reference288 = ref span386[num]; QuestSequence obj260 = new QuestSequence { Sequence = 2 @@ -237971,8 +288281,9 @@ public static class AssemblyQuestLoader num2 = 4; List list389 = new List(num2); CollectionsMarshal.SetCount(list389, num2); - Span span116 = CollectionsMarshal.AsSpan(list389); - ref QuestStep reference289 = ref span116[0]; + Span span389 = CollectionsMarshal.AsSpan(list389); + index2 = 0; + ref QuestStep reference289 = ref span389[index2]; QuestStep obj261 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.1477f, 0f, -78.01033f), 819) { DisableNavmesh = true @@ -237982,32 +288293,46 @@ public static class AssemblyQuestLoader num3 = 6; List list390 = new List(num3); CollectionsMarshal.SetCount(list390, num3); - Span span117 = CollectionsMarshal.AsSpan(list390); - span117[0] = null; - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span390 = CollectionsMarshal.AsSpan(list390); + num4 = 0; + span390[num4] = null; + num4++; + span390[num4] = null; + num4++; + span390[num4] = null; + num4++; + span390[num4] = null; + num4++; + span390[num4] = null; + num4++; + span390[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list390; skipConditions4.StepIf = skipStepConditions3; obj261.SkipConditions = skipConditions4; reference289 = obj261; - ref QuestStep reference290 = ref span116[1]; + index2++; + ref QuestStep reference290 = ref span389[index2]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1027246u, new Vector3(-136.98022f, 0f, -73.777466f), 819); - num3 = 6; - List list391 = new List(num3); - CollectionsMarshal.SetCount(list391, num3); - Span span118 = CollectionsMarshal.AsSpan(list391); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list391 = new List(num4); + CollectionsMarshal.SetCount(list391, num4); + Span span391 = CollectionsMarshal.AsSpan(list391); + num3 = 0; + span391[num3] = null; + num3++; + span391[num3] = null; + num3++; + span391[num3] = null; + num3++; + span391[num3] = null; + num3++; + span391[num3] = null; + num3++; + span391[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep30.CompletionQuestVariablesFlags = list391; reference290 = questStep30; - ref QuestStep reference291 = ref span116[2]; + index2++; + ref QuestStep reference291 = ref span389[index2]; QuestStep obj262 = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) { AethernetShortcut = new AethernetShortcut @@ -238019,16 +288344,23 @@ public static class AssemblyQuestLoader num3 = 6; List list392 = new List(num3); CollectionsMarshal.SetCount(list392, num3); - Span span119 = CollectionsMarshal.AsSpan(list392); - span119[0] = null; - span119[1] = null; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span392 = CollectionsMarshal.AsSpan(list392); + num4 = 0; + span392[num4] = null; + num4++; + span392[num4] = null; + num4++; + span392[num4] = null; + num4++; + span392[num4] = null; + num4++; + span392[num4] = null; + num4++; + span392[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj262.CompletionQuestVariablesFlags = list392; reference291 = obj262; - ref QuestStep reference292 = ref span116[3]; + index2++; + ref QuestStep reference292 = ref span389[index2]; QuestStep obj263 = new QuestStep(EInteractionType.Interact, 1027854u, new Vector3(40.57373f, 36.197685f, -160.23505f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -238038,30 +288370,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - num3 = 6; - List list393 = new List(num3); - CollectionsMarshal.SetCount(list393, num3); - Span span120 = CollectionsMarshal.AsSpan(list393); - span120[0] = null; - span120[1] = null; - span120[2] = null; - span120[3] = null; - span120[4] = null; - span120[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list393 = new List(num4); + CollectionsMarshal.SetCount(list393, num4); + Span span393 = CollectionsMarshal.AsSpan(list393); + num3 = 0; + span393[num3] = null; + num3++; + span393[num3] = null; + num3++; + span393[num3] = null; + num3++; + span393[num3] = null; + num3++; + span393[num3] = null; + num3++; + span393[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj263.CompletionQuestVariablesFlags = list393; reference292 = obj263; obj260.Steps = list389; reference288 = obj260; - ref QuestSequence reference293 = ref span115[3]; + num++; + ref QuestSequence reference293 = ref span386[num]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list394 = new List(num2); - CollectionsMarshal.SetCount(list394, num2); - Span span121 = CollectionsMarshal.AsSpan(list394); - span121[0] = new QuestStep(EInteractionType.None, null, null, 819) + index2 = 3; + List list394 = new List(index2); + CollectionsMarshal.SetCount(list394, index2); + Span span394 = CollectionsMarshal.AsSpan(list394); + num2 = 0; + span394[num2] = new QuestStep(EInteractionType.None, null, null, 819) { AethernetShortcut = new AethernetShortcut { @@ -238069,7 +288409,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - span121[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(608.7031f, 12.602462f, 311.77286f), 813) + num2++; + span394[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(608.7031f, 12.602462f, 311.77286f), 813) { Fly = true, SkipConditions = new SkipConditions @@ -238080,7 +288421,8 @@ public static class AssemblyQuestLoader } } }; - span121[2] = new QuestStep(EInteractionType.CompleteQuest, 1030369u, new Vector3(614.4961f, 13.3097515f, 305.80603f), 813); + num2++; + span394[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030369u, new Vector3(614.4961f, 13.3097515f, 305.80603f), 813); obj264.Steps = list394; reference293 = obj264; questRoot45.QuestSequence = list386; @@ -238090,13 +288432,16 @@ public static class AssemblyQuestLoader num = 1; List list395 = new List(num); CollectionsMarshal.SetCount(list395, num); - CollectionsMarshal.AsSpan(list395)[0] = "liza"; + Span span395 = CollectionsMarshal.AsSpan(list395); + index = 0; + span395[index] = "liza"; questRoot46.Author = list395; - num = 5; - List list396 = new List(num); - CollectionsMarshal.SetCount(list396, num); - Span span122 = CollectionsMarshal.AsSpan(list396); - ref QuestSequence reference294 = ref span122[0]; + index = 5; + List list396 = new List(index); + CollectionsMarshal.SetCount(list396, index); + Span span396 = CollectionsMarshal.AsSpan(list396); + num = 0; + ref QuestSequence reference294 = ref span396[num]; QuestSequence obj265 = new QuestSequence { Sequence = 0 @@ -238104,18 +288449,23 @@ public static class AssemblyQuestLoader num2 = 1; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030369u, new Vector3(614.4961f, 13.3097515f, 305.80603f), 813); + Span span397 = CollectionsMarshal.AsSpan(list397); + index2 = 0; + span397[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030369u, new Vector3(614.4961f, 13.3097515f, 305.80603f), 813); obj265.Steps = list397; reference294 = obj265; - ref QuestSequence reference295 = ref span122[1]; + num++; + ref QuestSequence reference295 = ref span396[num]; QuestSequence obj266 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list398 = new List(num2); - CollectionsMarshal.SetCount(list398, num2); - ref QuestStep reference296 = ref CollectionsMarshal.AsSpan(list398)[0]; + index2 = 1; + List list398 = new List(index2); + CollectionsMarshal.SetCount(list398, index2); + Span span398 = CollectionsMarshal.AsSpan(list398); + num2 = 0; + ref QuestStep reference296 = ref span398[num2]; QuestStep obj267 = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -238135,7 +288485,9 @@ public static class AssemblyQuestLoader num3 = 1; List list399 = new List(num3); CollectionsMarshal.SetCount(list399, num3); - CollectionsMarshal.AsSpan(list399)[0] = new DialogueChoice + Span span399 = CollectionsMarshal.AsSpan(list399); + num4 = 0; + span399[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMF103_03646_Q0_000_006") @@ -238144,7 +288496,8 @@ public static class AssemblyQuestLoader reference296 = obj267; obj266.Steps = list398; reference295 = obj266; - ref QuestSequence reference297 = ref span122[2]; + num++; + ref QuestSequence reference297 = ref span396[num]; QuestSequence obj268 = new QuestSequence { Sequence = 2 @@ -238152,12 +288505,16 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - ref QuestStep reference298 = ref CollectionsMarshal.AsSpan(list400)[0]; + Span span400 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + ref QuestStep reference298 = ref span400[index2]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1030370u, new Vector3(66.84973f, -2.9802322E-07f, 13.321045f), 819); - num3 = 1; - List list401 = new List(num3); - CollectionsMarshal.SetCount(list401, num3); - CollectionsMarshal.AsSpan(list401)[0] = new DialogueChoice + num4 = 1; + List list401 = new List(num4); + CollectionsMarshal.SetCount(list401, num4); + Span span401 = CollectionsMarshal.AsSpan(list401); + num3 = 0; + span401[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMF103_03646_Q1_000_000"), @@ -238167,16 +288524,18 @@ public static class AssemblyQuestLoader reference298 = questStep31; obj268.Steps = list400; reference297 = obj268; - ref QuestSequence reference299 = ref span122[3]; + num++; + ref QuestSequence reference299 = ref span396[num]; QuestSequence obj269 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list402 = new List(num2); - CollectionsMarshal.SetCount(list402, num2); - Span span123 = CollectionsMarshal.AsSpan(list402); - span123[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(59.71554f, 36.19769f, -167.87686f), 819) + index2 = 2; + List list402 = new List(index2); + CollectionsMarshal.SetCount(list402, index2); + Span span402 = CollectionsMarshal.AsSpan(list402); + num2 = 0; + span402[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(59.71554f, 36.19769f, -167.87686f), 819) { AethernetShortcut = new AethernetShortcut { @@ -238184,13 +288543,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - span123[1] = new QuestStep(EInteractionType.Interact, 1027225u, new Vector3(61.905884f, 36.247692f, -169.17682f), 819) + num2++; + span402[num2] = new QuestStep(EInteractionType.Interact, 1027225u, new Vector3(61.905884f, 36.247692f, -169.17682f), 819) { StopDistance = 7f }; obj269.Steps = list402; reference299 = obj269; - ref QuestSequence reference300 = ref span122[4]; + num++; + ref QuestSequence reference300 = ref span396[num]; QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue @@ -238198,7 +288559,9 @@ public static class AssemblyQuestLoader num2 = 1; List list403 = new List(num2); CollectionsMarshal.SetCount(list403, num2); - CollectionsMarshal.AsSpan(list403)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030327u, new Vector3(58.426758f, 36.19769f, -162.4018f), 819) + Span span403 = CollectionsMarshal.AsSpan(list403); + index2 = 0; + span403[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030327u, new Vector3(58.426758f, 36.19769f, -162.4018f), 819) { StopDistance = 7f }; @@ -238211,27 +288574,33 @@ public static class AssemblyQuestLoader num = 1; List list404 = new List(num); CollectionsMarshal.SetCount(list404, num); - CollectionsMarshal.AsSpan(list404)[0] = "liza"; + Span span404 = CollectionsMarshal.AsSpan(list404); + index = 0; + span404[index] = "liza"; questRoot47.Author = list404; - num = 5; - List list405 = new List(num); - CollectionsMarshal.SetCount(list405, num); - Span span124 = CollectionsMarshal.AsSpan(list405); - ref QuestSequence reference301 = ref span124[0]; + index = 5; + List list405 = new List(index); + CollectionsMarshal.SetCount(list405, index); + Span span405 = CollectionsMarshal.AsSpan(list405); + num = 0; + ref QuestSequence reference301 = ref span405[num]; QuestSequence obj271 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list406 = new List(num2); - CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030327u, new Vector3(58.426758f, 36.19769f, -162.4018f), 819) + index2 = 1; + List list406 = new List(index2); + CollectionsMarshal.SetCount(list406, index2); + Span span406 = CollectionsMarshal.AsSpan(list406); + num2 = 0; + span406[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030327u, new Vector3(58.426758f, 36.19769f, -162.4018f), 819) { StopDistance = 7f }; obj271.Steps = list406; reference301 = obj271; - ref QuestSequence reference302 = ref span124[1]; + num++; + ref QuestSequence reference302 = ref span405[num]; QuestSequence obj272 = new QuestSequence { Sequence = 1 @@ -238239,8 +288608,9 @@ public static class AssemblyQuestLoader num2 = 5; List list407 = new List(num2); CollectionsMarshal.SetCount(list407, num2); - Span span125 = CollectionsMarshal.AsSpan(list407); - span125[0] = new QuestStep(EInteractionType.None, null, null, 819) + Span span407 = CollectionsMarshal.AsSpan(list407); + index2 = 0; + span407[index2] = new QuestStep(EInteractionType.None, null, null, 819) { AethernetShortcut = new AethernetShortcut { @@ -238248,7 +288618,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - span125[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + index2++; + span407[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { Comment = "these bridges have navmesh problems", SkipConditions = new SkipConditions @@ -238259,7 +288630,8 @@ public static class AssemblyQuestLoader } } }; - span125[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) + index2++; + span407[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -238270,7 +288642,8 @@ public static class AssemblyQuestLoader } } }; - span125[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) + index2++; + span407[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) { SkipConditions = new SkipConditions { @@ -238280,32 +288653,37 @@ public static class AssemblyQuestLoader } } }; - span125[4] = new QuestStep(EInteractionType.Interact, 1030346u, new Vector3(-145.09808f, 9.572956f, 704.6769f), 813) + index2++; + span407[index2] = new QuestStep(EInteractionType.Interact, 1030346u, new Vector3(-145.09808f, 9.572956f, 704.6769f), 813) { StopDistance = 1f, Fly = true }; obj272.Steps = list407; reference302 = obj272; - ref QuestSequence reference303 = ref span124[2]; + num++; + ref QuestSequence reference303 = ref span405[num]; QuestSequence obj273 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list408 = new List(num2); - CollectionsMarshal.SetCount(list408, num2); - Span span126 = CollectionsMarshal.AsSpan(list408); - span126[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(-164.90442f, -1.9743931f, 688.2283f), 813) + index2 = 4; + List list408 = new List(index2); + CollectionsMarshal.SetCount(list408, index2); + Span span408 = CollectionsMarshal.AsSpan(list408); + num2 = 0; + span408[num2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-164.90442f, -1.9743931f, 688.2283f), 813) { StopDistance = 0.5f, DisableNavmesh = true }; - span126[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-578.07544f, -28.413673f, 749.037f), 813) + num2++; + span408[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-578.07544f, -28.413673f, 749.037f), 813) { DisableNavmesh = true }; - ref QuestStep reference304 = ref span126[2]; + num2++; + ref QuestStep reference304 = ref span408[num2]; QuestStep obj274 = new QuestStep(EInteractionType.Interact, 2010138u, new Vector3(-606.46985f, -28.183472f, 768.6731f), 813) { DisableNavmesh = true @@ -238313,32 +288691,46 @@ public static class AssemblyQuestLoader num3 = 6; List list409 = new List(num3); CollectionsMarshal.SetCount(list409, num3); - Span span127 = CollectionsMarshal.AsSpan(list409); - span127[0] = null; - span127[1] = null; - span127[2] = null; - span127[3] = null; - span127[4] = null; - span127[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span409 = CollectionsMarshal.AsSpan(list409); + num4 = 0; + span409[num4] = null; + num4++; + span409[num4] = null; + num4++; + span409[num4] = null; + num4++; + span409[num4] = null; + num4++; + span409[num4] = null; + num4++; + span409[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj274.CompletionQuestVariablesFlags = list409; reference304 = obj274; - ref QuestStep reference305 = ref span126[3]; + num2++; + ref QuestStep reference305 = ref span408[num2]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 2010137u, new Vector3(-687.83093f, -40.299072f, 729.36584f), 813); - num3 = 6; - List list410 = new List(num3); - CollectionsMarshal.SetCount(list410, num3); - Span span128 = CollectionsMarshal.AsSpan(list410); - span128[0] = null; - span128[1] = null; - span128[2] = null; - span128[3] = null; - span128[4] = null; - span128[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list410 = new List(num4); + CollectionsMarshal.SetCount(list410, num4); + Span span410 = CollectionsMarshal.AsSpan(list410); + num3 = 0; + span410[num3] = null; + num3++; + span410[num3] = null; + num3++; + span410[num3] = null; + num3++; + span410[num3] = null; + num3++; + span410[num3] = null; + num3++; + span410[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep32.CompletionQuestVariablesFlags = list410; reference305 = questStep32; obj273.Steps = list408; reference303 = obj273; - ref QuestSequence reference306 = ref span124[3]; + num++; + ref QuestSequence reference306 = ref span405[num]; QuestSequence obj275 = new QuestSequence { Sequence = 3 @@ -238346,13 +288738,15 @@ public static class AssemblyQuestLoader num2 = 4; List list411 = new List(num2); CollectionsMarshal.SetCount(list411, num2); - Span span129 = CollectionsMarshal.AsSpan(list411); - span129[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-667.5838f, -1.974393f, 698.4002f), 813) + Span span411 = CollectionsMarshal.AsSpan(list411); + index2 = 0; + span411[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-667.5838f, -1.974393f, 698.4002f), 813) { DisableNavmesh = true, Mount = true }; - span129[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.45654f, 0.39776123f, 810.7269f), 813) + index2++; + span411[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.45654f, 0.39776123f, 810.7269f), 813) { SkipConditions = new SkipConditions { @@ -238362,7 +288756,8 @@ public static class AssemblyQuestLoader } } }; - span129[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-619.98676f, 24.866888f, 794.4714f), 813) + index2++; + span411[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-619.98676f, 24.866888f, 794.4714f), 813) { Mount = true, SkipConditions = new SkipConditions @@ -238373,7 +288768,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference307 = ref span129[3]; + index2++; + ref QuestStep reference307 = ref span411[index2]; QuestStep obj276 = new QuestStep(EInteractionType.Interact, 1030333u, new Vector3(-612.23773f, 27.728632f, 817.65466f), 813) { Fly = true @@ -238381,7 +288777,9 @@ public static class AssemblyQuestLoader num3 = 1; List list412 = new List(num3); CollectionsMarshal.SetCount(list412, num3); - CollectionsMarshal.AsSpan(list412)[0] = new DialogueChoice + Span span412 = CollectionsMarshal.AsSpan(list412); + num4 = 0; + span412[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMF104_03647_Q1_000_000"), @@ -238391,15 +288789,18 @@ public static class AssemblyQuestLoader reference307 = obj276; obj275.Steps = list411; reference306 = obj275; - ref QuestSequence reference308 = ref span124[4]; + num++; + ref QuestSequence reference308 = ref span405[num]; QuestSequence obj277 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - CollectionsMarshal.AsSpan(list413)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030339u, new Vector3(282.4292f, 414.78137f, -857.02295f), 818) + index2 = 1; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + Span span413 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + span413[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030339u, new Vector3(282.4292f, 414.78137f, -857.02295f), 818) { StopDistance = 5f, DisableNavmesh = true @@ -238413,13 +288814,16 @@ public static class AssemblyQuestLoader num = 1; List list414 = new List(num); CollectionsMarshal.SetCount(list414, num); - CollectionsMarshal.AsSpan(list414)[0] = "liza"; + Span span414 = CollectionsMarshal.AsSpan(list414); + index = 0; + span414[index] = "liza"; questRoot48.Author = list414; - num = 6; - List list415 = new List(num); - CollectionsMarshal.SetCount(list415, num); - Span span130 = CollectionsMarshal.AsSpan(list415); - ref QuestSequence reference309 = ref span130[0]; + index = 6; + List list415 = new List(index); + CollectionsMarshal.SetCount(list415, index); + Span span415 = CollectionsMarshal.AsSpan(list415); + num = 0; + ref QuestSequence reference309 = ref span415[num]; QuestSequence obj278 = new QuestSequence { Sequence = 0 @@ -238427,29 +288831,35 @@ public static class AssemblyQuestLoader num2 = 1; List list416 = new List(num2); CollectionsMarshal.SetCount(list416, num2); - CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030336u, new Vector3(278.7976f, 414.807f, -851.2856f), 818) + Span span416 = CollectionsMarshal.AsSpan(list416); + index2 = 0; + span416[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030336u, new Vector3(278.7976f, 414.807f, -851.2856f), 818) { DisableNavmesh = true }; obj278.Steps = list416; reference309 = obj278; - ref QuestSequence reference310 = ref span130[1]; + num++; + ref QuestSequence reference310 = ref span415[num]; QuestSequence obj279 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list417 = new List(num2); - CollectionsMarshal.SetCount(list417, num2); - Span span131 = CollectionsMarshal.AsSpan(list417); - span131[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010074u, new Vector3(358.20544f, 396.536f, -715.90753f), 818) + index2 = 2; + List list417 = new List(index2); + CollectionsMarshal.SetCount(list417, index2); + Span span417 = CollectionsMarshal.AsSpan(list417); + num2 = 0; + span417[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010074u, new Vector3(358.20544f, 396.536f, -715.90753f), 818) { AetherCurrentId = 2818298u }; - span131[1] = new QuestStep(EInteractionType.Interact, 1030514u, new Vector3(479.5758f, 368.87827f, -340.99335f), 818); + num2++; + span417[num2] = new QuestStep(EInteractionType.Interact, 1030514u, new Vector3(479.5758f, 368.87827f, -340.99335f), 818); obj279.Steps = list417; reference310 = obj279; - ref QuestSequence reference311 = ref span130[2]; + num++; + ref QuestSequence reference311 = ref span415[num]; QuestSequence obj280 = new QuestSequence { Sequence = 2 @@ -238457,26 +288867,32 @@ public static class AssemblyQuestLoader num2 = 2; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - Span span132 = CollectionsMarshal.AsSpan(list418); - span132[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 818) + Span span418 = CollectionsMarshal.AsSpan(list418); + index2 = 0; + span418[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 818) { Aetheryte = EAetheryteLocation.TempestOndoCups }; - span132[1] = new QuestStep(EInteractionType.Interact, 1030515u, new Vector3(605.3711f, 350.3518f, -196.91772f), 818); + index2++; + span418[index2] = new QuestStep(EInteractionType.Interact, 1030515u, new Vector3(605.3711f, 350.3518f, -196.91772f), 818); obj280.Steps = list418; reference311 = obj280; - ref QuestSequence reference312 = ref span130[3]; + num++; + ref QuestSequence reference312 = ref span415[num]; QuestSequence obj281 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list419 = new List(num2); - CollectionsMarshal.SetCount(list419, num2); - CollectionsMarshal.AsSpan(list419)[0] = new QuestStep(EInteractionType.Interact, 1030516u, new Vector3(569.4209f, 350.03647f, -227.95453f), 818); + index2 = 1; + List list419 = new List(index2); + CollectionsMarshal.SetCount(list419, index2); + Span span419 = CollectionsMarshal.AsSpan(list419); + num2 = 0; + span419[num2] = new QuestStep(EInteractionType.Interact, 1030516u, new Vector3(569.4209f, 350.03647f, -227.95453f), 818); obj281.Steps = list419; reference312 = obj281; - ref QuestSequence reference313 = ref span130[4]; + num++; + ref QuestSequence reference313 = ref span415[num]; QuestSequence obj282 = new QuestSequence { Sequence = 4 @@ -238484,15 +288900,19 @@ public static class AssemblyQuestLoader num2 = 1; List list420 = new List(num2); CollectionsMarshal.SetCount(list420, num2); - ref QuestStep reference314 = ref CollectionsMarshal.AsSpan(list420)[0]; + Span span420 = CollectionsMarshal.AsSpan(list420); + index2 = 0; + ref QuestStep reference314 = ref span420[index2]; QuestStep obj283 = new QuestStep(EInteractionType.Combat, null, new Vector3(796.1852f, 449.08664f, -710.04565f), 818) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list421 = new List(num3); - CollectionsMarshal.SetCount(list421, num3); - CollectionsMarshal.AsSpan(list421)[0] = new ComplexCombatData + num4 = 1; + List list421 = new List(num4); + CollectionsMarshal.SetCount(list421, num4); + Span span421 = CollectionsMarshal.AsSpan(list421); + num3 = 0; + span421[num3] = new ComplexCombatData { DataId = 10316u, MinimumKillCount = 3u @@ -238501,15 +288921,18 @@ public static class AssemblyQuestLoader reference314 = obj283; obj282.Steps = list420; reference313 = obj282; - ref QuestSequence reference315 = ref span130[5]; + num++; + ref QuestSequence reference315 = ref span415[num]; QuestSequence obj284 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list422 = new List(num2); - CollectionsMarshal.SetCount(list422, num2); - CollectionsMarshal.AsSpan(list422)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027758u, new Vector3(568.1085f, 350.2004f, -230.36548f), 818) + index2 = 1; + List list422 = new List(index2); + CollectionsMarshal.SetCount(list422, index2); + Span span422 = CollectionsMarshal.AsSpan(list422); + num2 = 0; + span422[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027758u, new Vector3(568.1085f, 350.2004f, -230.36548f), 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; @@ -238522,13 +288945,16 @@ public static class AssemblyQuestLoader num = 1; List list423 = new List(num); CollectionsMarshal.SetCount(list423, num); - CollectionsMarshal.AsSpan(list423)[0] = "liza"; + Span span423 = CollectionsMarshal.AsSpan(list423); + index = 0; + span423[index] = "liza"; questRoot49.Author = list423; - num = 6; - List list424 = new List(num); - CollectionsMarshal.SetCount(list424, num); - Span span133 = CollectionsMarshal.AsSpan(list424); - ref QuestSequence reference316 = ref span133[0]; + index = 6; + List list424 = new List(index); + CollectionsMarshal.SetCount(list424, index); + Span span424 = CollectionsMarshal.AsSpan(list424); + num = 0; + ref QuestSequence reference316 = ref span424[num]; QuestSequence obj285 = new QuestSequence { Sequence = 0 @@ -238536,26 +288962,32 @@ public static class AssemblyQuestLoader num2 = 1; List list425 = new List(num2); CollectionsMarshal.SetCount(list425, num2); - CollectionsMarshal.AsSpan(list425)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030517u, new Vector3(578.7594f, 349.86563f, -231.00635f), 818); + Span span425 = CollectionsMarshal.AsSpan(list425); + index2 = 0; + span425[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030517u, new Vector3(578.7594f, 349.86563f, -231.00635f), 818); obj285.Steps = list425; reference316 = obj285; - ref QuestSequence reference317 = ref span133[1]; + num++; + ref QuestSequence reference317 = ref span424[num]; QuestSequence obj286 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list426 = new List(num2); - CollectionsMarshal.SetCount(list426, num2); - Span span134 = CollectionsMarshal.AsSpan(list426); - span134[0] = new QuestStep(EInteractionType.AcceptQuest, 1031015u, new Vector3(530.51025f, 353.54364f, -244.00702f), 818) + index2 = 2; + List list426 = new List(index2); + CollectionsMarshal.SetCount(list426, index2); + Span span426 = CollectionsMarshal.AsSpan(list426); + num2 = 0; + span426[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031015u, new Vector3(530.51025f, 353.54364f, -244.00702f), 818) { PickUpQuestId = new QuestId(3588) }; - span134[1] = new QuestStep(EInteractionType.Interact, 1030518u, new Vector3(400.38135f, 363.65552f, -439.6582f), 818); + num2++; + span426[num2] = new QuestStep(EInteractionType.Interact, 1030518u, new Vector3(400.38135f, 363.65552f, -439.6582f), 818); obj286.Steps = list426; reference317 = obj286; - ref QuestSequence reference318 = ref span133[2]; + num++; + ref QuestSequence reference318 = ref span424[num]; QuestSequence obj287 = new QuestSequence { Sequence = 2 @@ -238563,8 +288995,9 @@ public static class AssemblyQuestLoader num2 = 3; List list427 = new List(num2); CollectionsMarshal.SetCount(list427, num2); - Span span135 = CollectionsMarshal.AsSpan(list427); - ref QuestStep reference319 = ref span135[0]; + Span span427 = CollectionsMarshal.AsSpan(list427); + index2 = 0; + ref QuestStep reference319 = ref span427[index2]; QuestStep obj288 = new QuestStep(EInteractionType.Snipe, 2010141u, new Vector3(405.38635f, 361.22668f, -414.38928f), 818) { Comment = "Click top left (broken) window" @@ -238572,48 +289005,66 @@ public static class AssemblyQuestLoader num3 = 6; List list428 = new List(num3); CollectionsMarshal.SetCount(list428, num3); - Span span136 = CollectionsMarshal.AsSpan(list428); - span136[0] = null; - span136[1] = null; - span136[2] = null; - span136[3] = null; - span136[4] = null; - span136[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span428 = CollectionsMarshal.AsSpan(list428); + num4 = 0; + span428[num4] = null; + num4++; + span428[num4] = null; + num4++; + span428[num4] = null; + num4++; + span428[num4] = null; + num4++; + span428[num4] = null; + num4++; + span428[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj288.CompletionQuestVariablesFlags = list428; reference319 = obj288; - span135[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(324.9114f, 353.76694f, -475.44562f), 818); - ref QuestStep reference320 = ref span135[2]; + index2++; + span427[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(324.9114f, 353.76694f, -475.44562f), 818); + index2++; + ref QuestStep reference320 = ref span427[index2]; QuestStep obj289 = new QuestStep(EInteractionType.UseItem, 2010142u, new Vector3(326.8329f, 355.79456f, -477.53113f), 818) { StopDistance = 4f, ItemId = 2002673u }; - num3 = 6; - List list429 = new List(num3); - CollectionsMarshal.SetCount(list429, num3); - Span span137 = CollectionsMarshal.AsSpan(list429); - span137[0] = null; - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = null; - span137[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list429 = new List(num4); + CollectionsMarshal.SetCount(list429, num4); + Span span429 = CollectionsMarshal.AsSpan(list429); + num3 = 0; + span429[num3] = null; + num3++; + span429[num3] = null; + num3++; + span429[num3] = null; + num3++; + span429[num3] = null; + num3++; + span429[num3] = null; + num3++; + span429[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj289.CompletionQuestVariablesFlags = list429; reference320 = obj289; obj287.Steps = list427; reference318 = obj287; - ref QuestSequence reference321 = ref span133[3]; + num++; + ref QuestSequence reference321 = ref span424[num]; QuestSequence obj290 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list430 = new List(num2); - CollectionsMarshal.SetCount(list430, num2); - CollectionsMarshal.AsSpan(list430)[0] = new QuestStep(EInteractionType.Interact, 1030518u, new Vector3(400.38135f, 363.65552f, -439.6582f), 818); + index2 = 1; + List list430 = new List(index2); + CollectionsMarshal.SetCount(list430, index2); + Span span430 = CollectionsMarshal.AsSpan(list430); + num2 = 0; + span430[num2] = new QuestStep(EInteractionType.Interact, 1030518u, new Vector3(400.38135f, 363.65552f, -439.6582f), 818); obj290.Steps = list430; reference321 = obj290; - ref QuestSequence reference322 = ref span133[4]; + num++; + ref QuestSequence reference322 = ref span424[num]; QuestSequence obj291 = new QuestSequence { Sequence = 4 @@ -238621,23 +289072,28 @@ public static class AssemblyQuestLoader num2 = 2; List list431 = new List(num2); CollectionsMarshal.SetCount(list431, num2); - Span span138 = CollectionsMarshal.AsSpan(list431); - span138[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010076u, new Vector3(50.18689f, 380.0868f, -512.0775f), 818) + Span span431 = CollectionsMarshal.AsSpan(list431); + index2 = 0; + span431[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010076u, new Vector3(50.18689f, 380.0868f, -512.0775f), 818) { AetherCurrentId = 2818300u }; - span138[1] = new QuestStep(EInteractionType.Interact, 2010143u, new Vector3(25.711426f, 381.6128f, -522.3316f), 818); + index2++; + span431[index2] = new QuestStep(EInteractionType.Interact, 2010143u, new Vector3(25.711426f, 381.6128f, -522.3316f), 818); obj291.Steps = list431; reference322 = obj291; - ref QuestSequence reference323 = ref span133[5]; + num++; + ref QuestSequence reference323 = ref span424[num]; QuestSequence obj292 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list432 = new List(num2); - CollectionsMarshal.SetCount(list432, num2); - CollectionsMarshal.AsSpan(list432)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030225u, new Vector3(28.824219f, 381.81906f, -524.4374f), 818) + index2 = 1; + List list432 = new List(index2); + CollectionsMarshal.SetCount(list432, index2); + Span span432 = CollectionsMarshal.AsSpan(list432); + num2 = 0; + span432[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030225u, new Vector3(28.824219f, 381.81906f, -524.4374f), 818) { StopDistance = 5f }; @@ -238654,13 +289110,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -238668,21 +289127,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030225u, new Vector3(28.824219f, 381.81906f, -524.4374f), 818) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030225u, new Vector3(28.824219f, 381.81906f, -524.4374f), 818) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1027758u, new Vector3(568.1085f, 350.2004f, -230.36548f), 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups @@ -238690,7 +289154,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMF107_03650_Q1_000_000"), @@ -238700,7 +289166,8 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -238708,24 +289175,30 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1030519u, new Vector3(638.97156f, 402.23993f, 212.78699f), 818); + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.Interact, 1030519u, new Vector3(638.97156f, 402.23993f, 212.78699f), 818); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Emote, 1030519u, new Vector3(638.97156f, 402.23993f, 212.78699f), 818) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.Emote, 1030519u, new Vector3(638.97156f, 402.23993f, 212.78699f), 818) { Emote = EEmote.Psych }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -238733,12 +289206,16 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list8)[0]; + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference7 = ref span8[index2]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 1030586u, new Vector3(638.97156f, 402.23993f, 212.78699f), 818); - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new DialogueChoice + index3 = 1; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + Span span9 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span9[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMF107_03650_A3_000_000") @@ -238754,24 +289231,30 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "liza"; + Span span10 = CollectionsMarshal.AsSpan(list10); + index = 0; + span10[index] = "liza"; questRoot2.Author = list10; - num = 10; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - Span span2 = CollectionsMarshal.AsSpan(list11); - ref QuestSequence reference8 = ref span2[0]; + index = 10; + List list11 = new List(index); + CollectionsMarshal.SetCount(list11, index); + Span span11 = CollectionsMarshal.AsSpan(list11); + num = 0; + ref QuestSequence reference8 = ref span11[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030586u, new Vector3(638.97156f, 402.23993f, 212.78699f), 818); + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030586u, new Vector3(638.97156f, 402.23993f, 212.78699f), 818); obj7.Steps = list12; reference8 = obj7; - ref QuestSequence reference9 = ref span2[1]; + num++; + ref QuestSequence reference9 = ref span11[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -238779,24 +289262,30 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.Interact, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference10 = ref span2[2]; + num++; + ref QuestSequence reference10 = ref span11[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1031279u, new Vector3(514.6715f, 356.58453f, -268.51306f), 818); + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.Interact, 1031279u, new Vector3(514.6715f, 356.58453f, -268.51306f), 818); obj9.Steps = list14; reference10 = obj9; - ref QuestSequence reference11 = ref span2[3]; + num++; + ref QuestSequence reference11 = ref span11[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 @@ -238804,48 +289293,58 @@ public static class AssemblyQuestLoader num2 = 3; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span3 = CollectionsMarshal.AsSpan(list15); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(486.2212f, 316.451f, -300.7331f), 818) + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(486.2212f, 316.451f, -300.7331f), 818) { StopDistance = 1f }; - span3[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(474.52316f, 313.60648f, -294.83905f), 818) + index2++; + span15[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(474.52316f, 313.60648f, -294.83905f), 818) { StopDistance = 1f, DisableNavmesh = true }; - span3[2] = new QuestStep(EInteractionType.Interact, 1030570u, new Vector3(400.59497f, 303.51035f, -245.10571f), 818); + index2++; + span15[index2] = new QuestStep(EInteractionType.Interact, 1030570u, new Vector3(400.59497f, 303.51035f, -245.10571f), 818); obj10.Steps = list15; reference11 = obj10; - ref QuestSequence reference12 = ref span2[4]; + num++; + ref QuestSequence reference12 = ref span11[num]; QuestSequence obj11 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - Span span4 = CollectionsMarshal.AsSpan(list16); - span4[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010079u, new Vector3(339.1012f, 298.6953f, -280.01837f), 818) + index2 = 5; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010079u, new Vector3(339.1012f, 298.6953f, -280.01837f), 818) { AetherCurrentId = 2818303u }; - span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(291.3423f, 268.31516f, -346.18488f), 818); - span4[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(277.46622f, 262.43375f, -328.6956f), 818) + num2++; + span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(291.3423f, 268.31516f, -346.18488f), 818); + num2++; + span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(277.46622f, 262.43375f, -328.6956f), 818) { StopDistance = 1f, DisableNavmesh = true, Mount = false }; - span4[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.40463f, 235.09933f, -321.0536f), 818) + num2++; + span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.40463f, 235.09933f, -321.0536f), 818) { DisableNavmesh = true, Mount = false }; - span4[4] = new QuestStep(EInteractionType.Interact, 1030532u, new Vector3(302.02173f, 238.75215f, -346.15094f), 818); + num2++; + span16[num2] = new QuestStep(EInteractionType.Interact, 1030532u, new Vector3(302.02173f, 238.75215f, -346.15094f), 818); obj11.Steps = list16; reference12 = obj11; - ref QuestSequence reference13 = ref span2[5]; + num++; + ref QuestSequence reference13 = ref span11[num]; QuestSequence obj12 = new QuestSequence { Sequence = 5 @@ -238853,21 +289352,27 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1030527u, new Vector3(87.937744f, 199.56166f, -143.0534f), 818); + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.Interact, 1030527u, new Vector3(87.937744f, 199.56166f, -143.0534f), 818); obj12.Steps = list17; reference13 = obj12; - ref QuestSequence reference14 = ref span2[6]; + num++; + ref QuestSequence reference14 = ref span11[num]; QuestSequence obj13 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1030528u, new Vector3(-182.66577f, 139.76859f, -220.93542f), 818); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.Interact, 1030528u, new Vector3(-182.66577f, 139.76859f, -220.93542f), 818); obj13.Steps = list18; reference14 = obj13; - ref QuestSequence reference15 = ref span2[7]; + num++; + ref QuestSequence reference15 = ref span11[num]; QuestSequence obj14 = new QuestSequence { Sequence = 7 @@ -238875,23 +289380,29 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1030534u, new Vector3(-501.915f, 127.18983f, -257.435f), 818); + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.Interact, 1030534u, new Vector3(-501.915f, 127.18983f, -257.435f), 818); obj14.Steps = list19; reference15 = obj14; - ref QuestSequence reference16 = ref span2[8]; + num++; + ref QuestSequence reference16 = ref span11[num]; QuestSequence obj15 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span5 = CollectionsMarshal.AsSpan(list20); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-634.109f, 98.06235f, -336.91452f), 818); - span5[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-789.7743f, 73.83459f, -217.70619f), 818); + index2 = 2; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-634.109f, 98.06235f, -336.91452f), 818); + num2++; + span20[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-789.7743f, 73.83459f, -217.70619f), 818); obj15.Steps = list20; reference16 = obj15; - ref QuestSequence reference17 = ref span2[9]; + num++; + ref QuestSequence reference17 = ref span11[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -238899,7 +289410,9 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030344u, new Vector3(-792.9656f, 73.244484f, -211.62744f), 818) + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span21[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030344u, new Vector3(-792.9656f, 73.244484f, -211.62744f), 818) { StopDistance = 7f }; @@ -238912,24 +289425,30 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + Span span22 = CollectionsMarshal.AsSpan(list22); + index = 0; + span22[index] = "liza"; questRoot3.Author = list22; - num = 5; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span6 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference18 = ref span6[0]; + index = 5; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + Span span23 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference18 = ref span23[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030341u, new Vector3(-794.91876f, 72.44565f, -203.05182f), 818); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030341u, new Vector3(-794.91876f, 72.44565f, -203.05182f), 818); obj17.Steps = list24; reference18 = obj17; - ref QuestSequence reference19 = ref span6[1]; + num++; + ref QuestSequence reference19 = ref span23[num]; QuestSequence obj18 = new QuestSequence { Sequence = 1 @@ -238937,26 +289456,32 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span7 = CollectionsMarshal.AsSpan(list25); - span7[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010083u, new Vector3(-774.25806f, 63.1875f, -97.73407f), 818) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010083u, new Vector3(-774.25806f, 63.1875f, -97.73407f), 818) { AetherCurrentId = 2818307u }; - span7[1] = new QuestStep(EInteractionType.Interact, 2010144u, new Vector3(-610.5898f, 46.341675f, 94.01074f), 818); + index2++; + span25[index2] = new QuestStep(EInteractionType.Interact, 2010144u, new Vector3(-610.5898f, 46.341675f, 94.01074f), 818); obj18.Steps = list25; reference19 = obj18; - ref QuestSequence reference20 = ref span6[2]; + num++; + ref QuestSequence reference20 = ref span23[num]; QuestSequence obj19 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1030546u, new Vector3(-592.9503f, -288.06882f, 151.20166f), 818); + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.Interact, 1030546u, new Vector3(-592.9503f, -288.06882f, 151.20166f), 818); obj19.Steps = list26; reference20 = obj19; - ref QuestSequence reference21 = ref span6[3]; + num++; + ref QuestSequence reference21 = ref span23[num]; QuestSequence obj20 = new QuestSequence { Sequence = 3 @@ -238964,60 +289489,84 @@ public static class AssemblyQuestLoader num2 = 3; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span8 = CollectionsMarshal.AsSpan(list27); - ref QuestStep reference22 = ref span8[0]; + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + ref QuestStep reference22 = ref span27[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1030551u, new Vector3(-703.60876f, -245.36801f, 509.14783f), 818); num3 = 6; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - Span span9 = CollectionsMarshal.AsSpan(list28); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span28 = CollectionsMarshal.AsSpan(list28); + index3 = 0; + span28[index3] = null; + index3++; + span28[index3] = null; + index3++; + span28[index3] = null; + index3++; + span28[index3] = null; + index3++; + span28[index3] = null; + index3++; + span28[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list28; reference22 = questStep2; - ref QuestStep reference23 = ref span8[1]; + index2++; + ref QuestStep reference23 = ref span27[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1030552u, new Vector3(-494.16345f, -250.89603f, 365.7129f), 818); - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span10 = CollectionsMarshal.AsSpan(list29); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list29; reference23 = questStep3; - ref QuestStep reference24 = ref span8[2]; + index2++; + ref QuestStep reference24 = ref span27[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1030553u, new Vector3(-364.27863f, -260.1766f, 291.0963f), 818); num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span11 = CollectionsMarshal.AsSpan(list30); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span30 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list30; reference24 = questStep4; obj20.Steps = list27; reference21 = obj20; - ref QuestSequence reference25 = ref span6[4]; + num++; + ref QuestSequence reference25 = ref span23[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030554u, new Vector3(-633.99713f, -288.06885f, 251.60596f), 818); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030554u, new Vector3(-633.99713f, -288.06885f, 251.60596f), 818); obj21.Steps = list31; reference25 = obj21; questRoot3.QuestSequence = list23; @@ -239027,13 +289576,16 @@ public static class AssemblyQuestLoader num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - CollectionsMarshal.AsSpan(list32)[0] = "liza"; + Span span32 = CollectionsMarshal.AsSpan(list32); + index = 0; + span32[index] = "liza"; questRoot4.Author = list32; - num = 8; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - Span span12 = CollectionsMarshal.AsSpan(list33); - ref QuestSequence reference26 = ref span12[0]; + index = 8; + List list33 = new List(index); + CollectionsMarshal.SetCount(list33, index); + Span span33 = CollectionsMarshal.AsSpan(list33); + num = 0; + ref QuestSequence reference26 = ref span33[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -239041,42 +289593,52 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030554u, new Vector3(-633.99713f, -288.06885f, 251.60596f), 818); + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030554u, new Vector3(-633.99713f, -288.06885f, 251.60596f), 818); obj22.Steps = list34; reference26 = obj22; - ref QuestSequence reference27 = ref span12[1]; + num++; + ref QuestSequence reference27 = ref span33[num]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span13 = CollectionsMarshal.AsSpan(list35); - span13[0] = new QuestStep(EInteractionType.AcceptQuest, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818) + index2 = 6; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818) { PickUpQuestId = new QuestId(3593) }; - span13[1] = new QuestStep(EInteractionType.AcceptQuest, 1030477u, new Vector3(-594.6593f, -266.7698f, 338.70447f), 818) + num2++; + span35[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030477u, new Vector3(-594.6593f, -266.7698f, 338.70447f), 818) { PickUpQuestId = new QuestId(3594) }; - span13[2] = new QuestStep(EInteractionType.AcceptQuest, 1027775u, new Vector3(-390.85986f, -260.17664f, 308.46106f), 818) + num2++; + span35[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027775u, new Vector3(-390.85986f, -260.17664f, 308.46106f), 818) { PickUpQuestId = new QuestId(3592) }; - span13[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 818) + num2++; + span35[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 818) { Aetheryte = EAetheryteLocation.TempestMacarensesAngle }; - span13[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.41547322f, -276.906f, 269.2778f), 818); - span13[5] = new QuestStep(EInteractionType.Interact, 1027772u, new Vector3(5.3864136f, -276.906f, 271.59534f), 818) + num2++; + span35[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.41547322f, -276.906f, 269.2778f), 818); + num2++; + span35[num2] = new QuestStep(EInteractionType.Interact, 1027772u, new Vector3(5.3864136f, -276.906f, 271.59534f), 818) { StopDistance = 7f }; obj23.Steps = list35; reference27 = obj23; - ref QuestSequence reference28 = ref span12[2]; + num++; + ref QuestSequence reference28 = ref span33[num]; QuestSequence obj24 = new QuestSequence { Sequence = 2 @@ -239084,26 +289646,32 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 2010147u, new Vector3(1.5106201f, -276.93604f, 261.64636f), 818); + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.Interact, 2010147u, new Vector3(1.5106201f, -276.93604f, 261.64636f), 818); obj24.Steps = list36; reference28 = obj24; - ref QuestSequence reference29 = ref span12[3]; + num++; + ref QuestSequence reference29 = ref span33[num]; QuestSequence obj25 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span14 = CollectionsMarshal.AsSpan(list37); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.41547322f, -276.906f, 269.2778f), 818); - span14[1] = new QuestStep(EInteractionType.Interact, 1027772u, new Vector3(5.3864136f, -276.906f, 271.59534f), 818) + index2 = 2; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.41547322f, -276.906f, 269.2778f), 818); + num2++; + span37[num2] = new QuestStep(EInteractionType.Interact, 1027772u, new Vector3(5.3864136f, -276.906f, 271.59534f), 818) { StopDistance = 7f }; obj25.Steps = list37; reference29 = obj25; - ref QuestSequence reference30 = ref span12[4]; + num++; + ref QuestSequence reference30 = ref span33[num]; QuestSequence obj26 = new QuestSequence { Sequence = 4 @@ -239111,26 +289679,32 @@ public static class AssemblyQuestLoader num2 = 2; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span15 = CollectionsMarshal.AsSpan(list38); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(314.43127f, -274.1735f, 659.203f), 818); - span15[1] = new QuestStep(EInteractionType.Interact, 1027773u, new Vector3(316.4568f, -274.1735f, 653.65063f), 818) + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(314.43127f, -274.1735f, 659.203f), 818); + index2++; + span38[index2] = new QuestStep(EInteractionType.Interact, 1027773u, new Vector3(316.4568f, -274.1735f, 653.65063f), 818) { StopDistance = 7f }; obj26.Steps = list38; reference30 = obj26; - ref QuestSequence reference31 = ref span12[5]; + num++; + ref QuestSequence reference31 = ref span33[num]; QuestSequence obj27 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 2010148u, new Vector3(285.69458f, -272.78558f, 672.02246f), 818); + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.Interact, 2010148u, new Vector3(285.69458f, -272.78558f, 672.02246f), 818); obj27.Steps = list39; reference31 = obj27; - ref QuestSequence reference32 = ref span12[6]; + num++; + ref QuestSequence reference32 = ref span33[num]; QuestSequence obj28 = new QuestSequence { Sequence = 6 @@ -239138,28 +289712,33 @@ public static class AssemblyQuestLoader num2 = 2; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span16 = CollectionsMarshal.AsSpan(list40); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(314.43127f, -274.1735f, 659.203f), 818); - span16[1] = new QuestStep(EInteractionType.Interact, 1027773u, new Vector3(316.4568f, -274.1735f, 653.65063f), 818) + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(314.43127f, -274.1735f, 659.203f), 818); + index2++; + span40[index2] = new QuestStep(EInteractionType.Interact, 1027773u, new Vector3(316.4568f, -274.1735f, 653.65063f), 818) { StopDistance = 7f }; obj28.Steps = list40; reference32 = obj28; - ref QuestSequence reference33 = ref span12[7]; + num++; + ref QuestSequence reference33 = ref span33[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span17 = CollectionsMarshal.AsSpan(list41); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-244.05957f, -266.0001f, 444.7069f), 818) + index2 = 2; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-244.05957f, -266.0001f, 444.7069f), 818) { AetheryteShortcut = EAetheryteLocation.TempestMacarensesAngle }; - span17[1] = new QuestStep(EInteractionType.CompleteQuest, 1030558u, new Vector3(-241.32147f, -266.0001f, 444.08325f), 818); + num2++; + span41[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030558u, new Vector3(-241.32147f, -266.0001f, 444.08325f), 818); obj29.Steps = list41; reference33 = obj29; questRoot4.QuestSequence = list33; @@ -239169,13 +289748,16 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "liza"; + Span span42 = CollectionsMarshal.AsSpan(list42); + index = 0; + span42[index] = "liza"; questRoot5.Author = list42; - num = 13; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span18 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference34 = ref span18[0]; + index = 13; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + Span span43 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference34 = ref span43[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -239183,27 +289765,33 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030557u, new Vector3(-244.70898f, -266.0001f, 448.3557f), 818) + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030557u, new Vector3(-244.70898f, -266.0001f, 448.3557f), 818) { StopDistance = 5f }; obj30.Steps = list44; reference34 = obj30; - ref QuestSequence reference35 = ref span18[1]; + num++; + ref QuestSequence reference35 = ref span43[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1030556u, new Vector3(-246.2959f, -266.0001f, 446.1891f), 818) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span45[num2] = new QuestStep(EInteractionType.Interact, 1030556u, new Vector3(-246.2959f, -266.0001f, 446.1891f), 818) { StopDistance = 5f }; obj31.Steps = list45; reference35 = obj31; - ref QuestSequence reference36 = ref span18[2]; + num++; + ref QuestSequence reference36 = ref span43[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -239211,27 +289799,33 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1030561u, new Vector3(-243.39667f, -266.0001f, 442.4657f), 818) + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.Interact, 1030561u, new Vector3(-243.39667f, -266.0001f, 442.4657f), 818) { StopDistance = 5f }; obj32.Steps = list46; reference36 = obj32; - ref QuestSequence reference37 = ref span18[3]; + num++; + ref QuestSequence reference37 = ref span43[num]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1030560u, new Vector3(-246.02124f, -266.0001f, 443.4729f), 818) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.Interact, 1030560u, new Vector3(-246.02124f, -266.0001f, 443.4729f), 818) { StopDistance = 5f }; obj33.Steps = list47; reference37 = obj33; - ref QuestSequence reference38 = ref span18[4]; + num++; + ref QuestSequence reference38 = ref span43[num]; QuestSequence obj34 = new QuestSequence { Sequence = 4 @@ -239239,27 +289833,33 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1030558u, new Vector3(-241.32147f, -266.0001f, 444.08325f), 818) + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.Interact, 1030558u, new Vector3(-241.32147f, -266.0001f, 444.08325f), 818) { StopDistance = 5f }; obj34.Steps = list48; reference38 = obj34; - ref QuestSequence reference39 = ref span18[5]; + num++; + ref QuestSequence reference39 = ref span43[num]; QuestSequence obj35 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1030559u, new Vector3(-242.66425f, -266.0001f, 447.83704f), 818) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.Interact, 1030559u, new Vector3(-242.66425f, -266.0001f, 447.83704f), 818) { StopDistance = 5f }; obj35.Steps = list49; reference39 = obj35; - ref QuestSequence reference40 = ref span18[6]; + num++; + ref QuestSequence reference40 = ref span43[num]; QuestSequence obj36 = new QuestSequence { Sequence = 6 @@ -239267,21 +289867,26 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1030562u, new Vector3(-356.8628f, -229.0648f, 700.34326f), 818) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.Interact, 1030562u, new Vector3(-356.8628f, -229.0648f, 700.34326f), 818) { Fly = true }; obj36.Steps = list50; reference40 = obj36; - ref QuestSequence reference41 = ref span18[7]; + num++; + ref QuestSequence reference41 = ref span43[num]; QuestSequence obj37 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Duty, null, null, 818) + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.Duty, null, null, 818) { DutyOptions = new DutyOptions { @@ -239290,11 +289895,13 @@ public static class AssemblyQuestLoader }; obj37.Steps = list51; reference41 = obj37; - span18[8] = new QuestSequence + num++; + span43[num] = new QuestSequence { Sequence = 8 }; - ref QuestSequence reference42 = ref span18[9]; + num++; + ref QuestSequence reference42 = ref span43[num]; QuestSequence obj38 = new QuestSequence { Sequence = 9 @@ -239302,7 +289909,9 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Duty, null, null, 881) + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.Duty, null, null, 881) { DutyOptions = new DutyOptions { @@ -239311,22 +289920,27 @@ public static class AssemblyQuestLoader }; obj38.Steps = list52; reference42 = obj38; - span18[10] = new QuestSequence + num++; + span43[num] = new QuestSequence { Sequence = 10 }; - ref QuestSequence reference43 = ref span18[11]; + num++; + ref QuestSequence reference43 = ref span43[num]; QuestSequence obj39 = new QuestSequence { Sequence = 11 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1030576u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.Interact, 1030576u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); obj39.Steps = list53; reference43 = obj39; - ref QuestSequence reference44 = ref span18[12]; + num++; + ref QuestSequence reference44 = ref span43[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -239334,13 +289948,15 @@ public static class AssemblyQuestLoader num2 = 2; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span19 = CollectionsMarshal.AsSpan(list54); - span19[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span19[1] = new QuestStep(EInteractionType.CompleteQuest, 1031257u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); + index2++; + span54[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031257u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); obj40.Steps = list54; reference44 = obj40; questRoot5.QuestSequence = list43; @@ -239350,24 +289966,30 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; + Span span55 = CollectionsMarshal.AsSpan(list55); + index = 0; + span55[index] = "liza"; questRoot6.Author = list55; - num = 4; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span20 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference45 = ref span20[0]; + index = 4; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + Span span56 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference45 = ref span56[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030747u, new Vector3(-81.28485f, -19.061882f, 307.20984f), 817); + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030747u, new Vector3(-81.28485f, -19.061882f, 307.20984f), 817); obj41.Steps = list57; reference45 = obj41; - ref QuestSequence reference46 = ref span20[1]; + num++; + ref QuestSequence reference46 = ref span56[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -239375,21 +289997,27 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817); + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.Interact, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817); obj42.Steps = list58; reference46 = obj42; - ref QuestSequence reference47 = ref span20[2]; + num++; + ref QuestSequence reference47 = ref span56[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 2010348u, new Vector3(-354.5739f, 7.3395386f, 266.65137f), 817); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.Interact, 2010348u, new Vector3(-354.5739f, 7.3395386f, 266.65137f), 817); obj43.Steps = list59; reference47 = obj43; - ref QuestSequence reference48 = ref span20[3]; + num++; + ref QuestSequence reference48 = ref span56[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -239397,7 +290025,9 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030821u, new Vector3(-524.4679f, 0.08425587f, 227.00842f), 817); + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030821u, new Vector3(-524.4679f, 0.08425587f, 227.00842f), 817); obj44.Steps = list60; reference48 = obj44; questRoot6.QuestSequence = list56; @@ -239407,24 +290037,30 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + Span span61 = CollectionsMarshal.AsSpan(list61); + index = 0; + span61[index] = "liza"; questRoot7.Author = list61; - num = 4; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span21 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference49 = ref span21[0]; + index = 4; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + Span span62 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference49 = ref span62[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029876u, new Vector3(-524.71204f, 0.08067314f, 227.03894f), 817); + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029876u, new Vector3(-524.71204f, 0.08067314f, 227.03894f), 817); obj45.Steps = list63; reference49 = obj45; - ref QuestSequence reference50 = ref span21[1]; + num++; + ref QuestSequence reference50 = ref span62[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -239432,21 +290068,27 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1029876u, new Vector3(-524.71204f, 0.08067314f, 227.03894f), 817); + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.Interact, 1029876u, new Vector3(-524.71204f, 0.08067314f, 227.03894f), 817); obj46.Steps = list64; reference50 = obj46; - ref QuestSequence reference51 = ref span21[2]; + num++; + ref QuestSequence reference51 = ref span62[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1030819u, new Vector3(-27.390015f, -24.5606f, 320.11902f), 817); + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span65[num2] = new QuestStep(EInteractionType.Interact, 1030819u, new Vector3(-27.390015f, -24.5606f, 320.11902f), 817); obj47.Steps = list65; reference51 = obj47; - ref QuestSequence reference52 = ref span21[3]; + num++; + ref QuestSequence reference52 = ref span62[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -239454,7 +290096,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030824u, new Vector3(-28.732727f, -23.695421f, 320.39355f), 817) + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span66[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030824u, new Vector3(-28.732727f, -23.695421f, 320.39355f), 817) { StopDistance = 5f, NextQuestId = new QuestId(3658) @@ -239468,24 +290112,30 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "liza"; + Span span67 = CollectionsMarshal.AsSpan(list67); + index = 0; + span67[index] = "liza"; questRoot8.Author = list67; - num = 3; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span22 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference53 = ref span22[0]; + index = 3; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + Span span68 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference53 = ref span68[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030819u, new Vector3(-27.390015f, -24.5606f, 320.11902f), 817); + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030819u, new Vector3(-27.390015f, -24.5606f, 320.11902f), 817); obj49.Steps = list69; reference53 = obj49; - ref QuestSequence reference54 = ref span22[1]; + num++; + ref QuestSequence reference54 = ref span68[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 @@ -239493,21 +290143,26 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 2010352u, new Vector3(-322.65204f, 14.90802f, -181.53668f), 817) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.Interact, 2010352u, new Vector3(-322.65204f, 14.90802f, -181.53668f), 817) { Fly = true }; obj50.Steps = list70; reference54 = obj50; - ref QuestSequence reference55 = ref span22[2]; + num++; + ref QuestSequence reference55 = ref span68[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough, NextQuestId = new QuestId(3659) @@ -239521,13 +290176,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "liza"; + Span span72 = CollectionsMarshal.AsSpan(list72); + index = 0; + span72[index] = "liza"; questRoot9.Author = list72; - num = 6; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span23 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference56 = ref span23[0]; + index = 6; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + Span span73 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference56 = ref span73[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -239535,32 +290193,40 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817); + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817); obj52.Steps = list74; reference56 = obj52; - ref QuestSequence reference57 = ref span23[1]; + num++; + ref QuestSequence reference57 = ref span73[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list75)[0]; + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + ref QuestStep reference58 = ref span75[num2]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, 1030827u, new Vector3(-438.46802f, -0.3f, 725.1239f), 817) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = 11153u; + index3 = 1; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + Span span76 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span76[num3] = 11153u; obj54.KillEnemyDataIds = list76; reference58 = obj54; obj53.Steps = list75; reference57 = obj53; - ref QuestSequence reference59 = ref span23[2]; + num++; + ref QuestSequence reference59 = ref span73[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -239568,18 +290234,23 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1030827u, new Vector3(-438.46802f, -0.3f, 725.1239f), 817); + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.Interact, 1030827u, new Vector3(-438.46802f, -0.3f, 725.1239f), 817); obj55.Steps = list77; reference59 = obj55; - ref QuestSequence reference60 = ref span23[3]; + num++; + ref QuestSequence reference60 = ref span73[num]; QuestSequence obj56 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list78)[0]; + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + ref QuestStep reference61 = ref span78[num2]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, null, new Vector3(-500.49435f, 7.3168135f, 93.674324f), 817) { StopDistance = 0.5f, @@ -239589,12 +290260,15 @@ public static class AssemblyQuestLoader num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = 11154u; + Span span79 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span79[index3] = 11154u; obj57.KillEnemyDataIds = list79; reference61 = obj57; obj56.Steps = list78; reference60 = obj56; - ref QuestSequence reference62 = ref span23[4]; + num++; + ref QuestSequence reference62 = ref span73[num]; QuestSequence obj58 = new QuestSequence { Sequence = 4 @@ -239602,21 +290276,26 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 2010522u, new Vector3(-501.5488f, 7.461609f, 96.94055f), 817) + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.Interact, 2010522u, new Vector3(-501.5488f, 7.461609f, 96.94055f), 817) { StopDistance = 4f }; obj58.Steps = list80; reference62 = obj58; - ref QuestSequence reference63 = ref span23[5]; + num++; + ref QuestSequence reference63 = ref span73[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; @@ -239629,13 +290308,16 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "liza"; + Span span82 = CollectionsMarshal.AsSpan(list82); + index = 0; + span82[index] = "liza"; questRoot10.Author = list82; - num = 9; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span24 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference64 = ref span24[0]; + index = 9; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + Span span83 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference64 = ref span83[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -239643,7 +290325,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814) + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, SkipConditions = new SkipConditions @@ -239656,24 +290340,29 @@ public static class AssemblyQuestLoader }; obj60.Steps = list84; reference64 = obj60; - ref QuestSequence reference65 = ref span24[1]; + num++; + ref QuestSequence reference65 = ref span83[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference66 = ref CollectionsMarshal.AsSpan(list85)[0]; + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference66 = ref span85[num2]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 1031578u, new Vector3(737.48376f, 285.0224f, -84.97754f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide }; - num3 = 1; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = new DialogueChoice + index3 = 1; + List list86 = new List(index3); + CollectionsMarshal.SetCount(list86, index3); + Span span86 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span86[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYA003_03671_Q1_000_000") @@ -239682,7 +290371,8 @@ public static class AssemblyQuestLoader reference66 = obj62; obj61.Steps = list85; reference65 = obj61; - ref QuestSequence reference67 = ref span24[2]; + num++; + ref QuestSequence reference67 = ref span83[num]; QuestSequence obj63 = new QuestSequence { Sequence = 2 @@ -239690,7 +290380,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list87)[0]; + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + ref QuestStep reference68 = ref span87[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1031579u, new Vector3(735.89685f, 285.08194f, -82.35297f), 814) { StopDistance = 5f @@ -239698,7 +290390,9 @@ public static class AssemblyQuestLoader num3 = 1; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - CollectionsMarshal.AsSpan(list88)[0] = new DialogueChoice + Span span88 = CollectionsMarshal.AsSpan(list88); + index3 = 0; + span88[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKYA003_03671_Q2_000_000"), @@ -239708,21 +290402,25 @@ public static class AssemblyQuestLoader reference68 = obj64; obj63.Steps = list87; reference67 = obj63; - ref QuestSequence reference69 = ref span24[3]; + num++; + ref QuestSequence reference69 = ref span83[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1031580u, new Vector3(665.21704f, 297.47797f, -159.77728f), 814) + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.Interact, 1031580u, new Vector3(665.21704f, 297.47797f, -159.77728f), 814) { Fly = true }; obj65.Steps = list89; reference69 = obj65; - ref QuestSequence reference70 = ref span24[4]; + num++; + ref QuestSequence reference70 = ref span83[num]; QuestSequence obj66 = new QuestSequence { Sequence = 4 @@ -239730,29 +290428,36 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 2010753u, new Vector3(631.9523f, 325.82593f, -228.68695f), 814) + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.Interact, 2010753u, new Vector3(631.9523f, 325.82593f, -228.68695f), 814) { Fly = true }; obj66.Steps = list90; reference70 = obj66; - ref QuestSequence reference71 = ref span24[5]; + num++; + ref QuestSequence reference71 = ref span83[num]; QuestSequence obj67 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list91)[0]; + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + ref QuestStep reference72 = ref span91[num2]; QuestStep obj68 = new QuestStep(EInteractionType.Interact, 1031580u, new Vector3(665.21704f, 297.47797f, -159.77728f), 814) { Fly = true }; - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = new DialogueChoice + index3 = 1; + List list92 = new List(index3); + CollectionsMarshal.SetCount(list92, index3); + Span span92 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span92[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKYA003_03671_Q5_000_000"), @@ -239762,7 +290467,8 @@ public static class AssemblyQuestLoader reference72 = obj68; obj67.Steps = list91; reference71 = obj67; - ref QuestSequence reference73 = ref span24[6]; + num++; + ref QuestSequence reference73 = ref span83[num]; QuestSequence obj69 = new QuestSequence { Sequence = 6 @@ -239770,29 +290476,35 @@ public static class AssemblyQuestLoader num2 = 2; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span25 = CollectionsMarshal.AsSpan(list93); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(544.0766f, 295.72742f, -218.72057f), 814) + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(544.0766f, 295.72742f, -218.72057f), 814) { Fly = true }; - span25[1] = new QuestStep(EInteractionType.Interact, 2010754u, new Vector3(542.9313f, 296.19275f, -217.02905f), 814); + index2++; + span93[index2] = new QuestStep(EInteractionType.Interact, 2010754u, new Vector3(542.9313f, 296.19275f, -217.02905f), 814); obj69.Steps = list93; reference73 = obj69; - ref QuestSequence reference74 = ref span24[7]; + num++; + ref QuestSequence reference74 = ref span83[num]; QuestSequence obj70 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1031579u, new Vector3(735.89685f, 285.08194f, -82.35297f), 814) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.Interact, 1031579u, new Vector3(735.89685f, 285.08194f, -82.35297f), 814) { Fly = true }; obj70.Steps = list94; reference74 = obj70; - ref QuestSequence reference75 = ref span24[8]; + num++; + ref QuestSequence reference75 = ref span83[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -239800,7 +290512,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814) + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, NextQuestId = new QuestId(3717) @@ -239814,21 +290528,26 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "JerryWester"; + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + span96[index] = "JerryWester"; questRoot11.Author = list96; - num = 6; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span26 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference76 = ref span26[0]; + index = 6; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + Span span97 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference76 = ref span97[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 2010850u, new Vector3(-74.540344f, 10.696533f, 16.739136f), 418) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.AcceptQuest, 2010850u, new Vector3(-74.540344f, 10.696533f, 16.739136f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -239841,7 +290560,8 @@ public static class AssemblyQuestLoader }; obj72.Steps = list98; reference76 = obj72; - ref QuestSequence reference77 = ref span26[1]; + num++; + ref QuestSequence reference77 = ref span97[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -239849,7 +290569,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1031682u, new Vector3(152.97156f, -20.000004f, 63.767456f), 418) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.Interact, 1031682u, new Vector3(152.97156f, -20.000004f, 63.767456f), 418) { AethernetShortcut = new AethernetShortcut { @@ -239859,15 +290581,18 @@ public static class AssemblyQuestLoader }; obj73.Steps = list99; reference77 = obj73; - ref QuestSequence reference78 = ref span26[2]; + num++; + ref QuestSequence reference78 = ref span97[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list100)[0]; + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference79 = ref span100[num2]; QuestStep obj75 = new QuestStep(EInteractionType.Interact, 2010920u, new Vector3(-141.13074f, -12.64978f, -33.585205f), 419) { AethernetShortcut = new AethernetShortcut @@ -239879,7 +290604,9 @@ public static class AssemblyQuestLoader num3 = 1; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = new DialogueChoice + Span span101 = CollectionsMarshal.AsSpan(list101); + index3 = 0; + span101[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKHA001_03672_Q3_000_000") @@ -239888,7 +290615,8 @@ public static class AssemblyQuestLoader reference79 = obj75; obj74.Steps = list100; reference78 = obj74; - ref QuestSequence reference80 = ref span26[3]; + num++; + ref QuestSequence reference80 = ref span97[num]; QuestSequence obj76 = new QuestSequence { Sequence = 3 @@ -239896,21 +290624,26 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1031989u, new Vector3(-139.17761f, -12.634913f, -33.951355f), 419) + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span102[index2] = new QuestStep(EInteractionType.Interact, 1031989u, new Vector3(-139.17761f, -12.634913f, -33.951355f), 419) { StopDistance = 7f }; obj76.Steps = list102; reference80 = obj76; - ref QuestSequence reference81 = ref span26[4]; + num++; + ref QuestSequence reference81 = ref span97[num]; QuestSequence obj77 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list103)[0]; + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + ref QuestStep reference82 = ref span103[num2]; QuestStep obj78 = new QuestStep(EInteractionType.Interact, 1031682u, new Vector3(152.97156f, -20.000004f, 63.767456f), 418) { AethernetShortcut = new AethernetShortcut @@ -239919,10 +290652,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardBrume } }; - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new DialogueChoice + index3 = 1; + List list104 = new List(index3); + CollectionsMarshal.SetCount(list104, index3); + Span span104 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span104[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKHA001_03672_EVENTAREA_WARP_000_117") @@ -239931,7 +290666,8 @@ public static class AssemblyQuestLoader reference82 = obj78; obj77.Steps = list103; reference81 = obj77; - ref QuestSequence reference83 = ref span26[5]; + num++; + ref QuestSequence reference83 = ref span97[num]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue @@ -239939,7 +290675,9 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031684u, new Vector3(-7.156494f, -16f, 163.46985f), 886) + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031684u, new Vector3(-7.156494f, -16f, 163.46985f), 886) { NextQuestId = new QuestId(3725) }; @@ -239952,26 +290690,33 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "liza"; + Span span106 = CollectionsMarshal.AsSpan(list106); + index = 0; + span106[index] = "liza"; questRoot12.Author = list106; - num = 4; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - Span span27 = CollectionsMarshal.AsSpan(list107); - ref QuestSequence reference84 = ref span27[0]; + index = 4; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + Span span107 = CollectionsMarshal.AsSpan(list107); + num = 0; + ref QuestSequence reference84 = ref span107[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - ref QuestStep reference85 = ref CollectionsMarshal.AsSpan(list108)[0]; + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + ref QuestStep reference85 = ref span108[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.AcceptQuest, 1031257u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); num3 = 1; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - CollectionsMarshal.AsSpan(list109)[0] = new DialogueChoice + Span span109 = CollectionsMarshal.AsSpan(list109); + index3 = 0; + span109[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMG101_03673_Q1_000_500"), @@ -239981,7 +290726,8 @@ public static class AssemblyQuestLoader reference85 = questStep5; obj80.Steps = list108; reference84 = obj80; - ref QuestSequence reference86 = ref span27[1]; + num++; + ref QuestSequence reference86 = ref span107[num]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -239989,42 +290735,50 @@ public static class AssemblyQuestLoader num2 = 3; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span28 = CollectionsMarshal.AsSpan(list110); - span28[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - span28[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + index2++; + span110[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - span28[2] = new QuestStep(EInteractionType.Interact, 1018433u, new Vector3(50.766724f, 50f, -772.3964f), 156) + index2++; + span110[index2] = new QuestStep(EInteractionType.Interact, 1018433u, new Vector3(50.766724f, 50f, -772.3964f), 156) { Fly = true }; obj81.Steps = list110; reference86 = obj81; - ref QuestSequence reference87 = ref span27[2]; + num++; + ref QuestSequence reference87 = ref span107[num]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span29 = CollectionsMarshal.AsSpan(list111); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + index2 = 3; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Fly = true }; - span29[1] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + num2++; + span111[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - span29[2] = new QuestStep(EInteractionType.Interact, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); + num2++; + span111[num2] = new QuestStep(EInteractionType.Interact, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); obj82.Steps = list111; reference87 = obj82; - ref QuestSequence reference88 = ref span27[3]; + num++; + ref QuestSequence reference88 = ref span107[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -240032,8 +290786,9 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span30 = CollectionsMarshal.AsSpan(list112); - span30[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -240043,7 +290798,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); + index2++; + span112[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); obj83.Steps = list112; reference88 = obj83; questRoot12.QuestSequence = list107; @@ -240053,24 +290809,30 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - CollectionsMarshal.AsSpan(list113)[0] = "liza"; + Span span113 = CollectionsMarshal.AsSpan(list113); + index = 0; + span113[index] = "liza"; questRoot13.Author = list113; - num = 5; - List list114 = new List(num); - CollectionsMarshal.SetCount(list114, num); - Span span31 = CollectionsMarshal.AsSpan(list114); - ref QuestSequence reference89 = ref span31[0]; + index = 5; + List list114 = new List(index); + CollectionsMarshal.SetCount(list114, index); + Span span114 = CollectionsMarshal.AsSpan(list114); + num = 0; + ref QuestSequence reference89 = ref span114[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span115[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); obj84.Steps = list115; reference89 = obj84; - ref QuestSequence reference90 = ref span31[1]; + num++; + ref QuestSequence reference90 = ref span114[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -240078,8 +290840,9 @@ public static class AssemblyQuestLoader num2 = 6; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span32 = CollectionsMarshal.AsSpan(list116); - span32[0] = new QuestStep(EInteractionType.None, null, null, 819) + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.None, null, null, 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -240088,7 +290851,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - span32[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + index2++; + span116[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { Comment = "these bridges have navmesh problems", SkipConditions = new SkipConditions @@ -240099,7 +290863,8 @@ public static class AssemblyQuestLoader } } }; - span32[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) + index2++; + span116[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -240110,7 +290875,8 @@ public static class AssemblyQuestLoader } } }; - span32[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-54.93826f, 3.1323283f, 690.1962f), 813) + index2++; + span116[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-54.93826f, 3.1323283f, 690.1962f), 813) { SkipConditions = new SkipConditions { @@ -240120,23 +290886,28 @@ public static class AssemblyQuestLoader } } }; - span32[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-115.65658f, -0.67464465f, 653.1527f), 813) + index2++; + span116[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-115.65658f, -0.67464465f, 653.1527f), 813) { StopDistance = 0.5f, Fly = true }; - span32[5] = new QuestStep(EInteractionType.Interact, 1031726u, new Vector3(-116.80786f, -0.6811354f, 651.026f), 813); + index2++; + span116[index2] = new QuestStep(EInteractionType.Interact, 1031726u, new Vector3(-116.80786f, -0.6811354f, 651.026f), 813); obj85.Steps = list116; reference90 = obj85; - ref QuestSequence reference91 = ref span31[2]; + num++; + ref QuestSequence reference91 = ref span114[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Duty, null, null, 813) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.Duty, null, null, 813) { DutyOptions = new DutyOptions { @@ -240145,11 +290916,13 @@ public static class AssemblyQuestLoader }; obj86.Steps = list117; reference91 = obj86; - span31[3] = new QuestSequence + num++; + span114[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference92 = ref span31[4]; + num++; + ref QuestSequence reference92 = ref span114[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -240157,7 +290930,9 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032451u, new Vector3(-113.359314f, -0.6671539f, 656.79407f), 813) + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span118[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032451u, new Vector3(-113.359314f, -0.6671539f, 656.79407f), 813) { StopDistance = 5f }; @@ -240170,24 +290945,30 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "liza"; + Span span119 = CollectionsMarshal.AsSpan(list119); + index = 0; + span119[index] = "liza"; questRoot14.Author = list119; - num = 6; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span33 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference93 = ref span33[0]; + index = 6; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + Span span120 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference93 = ref span120[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032451u, new Vector3(-113.359314f, -0.6671539f, 656.79407f), 813); + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span121[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032451u, new Vector3(-113.359314f, -0.6671539f, 656.79407f), 813); obj88.Steps = list121; reference93 = obj88; - ref QuestSequence reference94 = ref span33[1]; + num++; + ref QuestSequence reference94 = ref span120[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -240195,7 +290976,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -240207,21 +290990,25 @@ public static class AssemblyQuestLoader }; obj89.Steps = list122; reference94 = obj89; - ref QuestSequence reference95 = ref span33[2]; + num++; + ref QuestSequence reference95 = ref span120[num]; QuestSequence obj90 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1032122u, new Vector3(2.1820068f, 0f, -5.142395f), 844) + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span123[num2] = new QuestStep(EInteractionType.Interact, 1032122u, new Vector3(2.1820068f, 0f, -5.142395f), 844) { StopDistance = 7f }; obj90.Steps = list123; reference95 = obj90; - ref QuestSequence reference96 = ref span33[3]; + num++; + ref QuestSequence reference96 = ref span120[num]; QuestSequence obj91 = new QuestSequence { Sequence = 3 @@ -240229,39 +291016,50 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815) + Span span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span124[index2] = new QuestStep(EInteractionType.Interact, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj91.Steps = list124; reference96 = obj91; - ref QuestSequence reference97 = ref span33[4]; + num++; + ref QuestSequence reference97 = ref span120[num]; QuestSequence obj92 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - Span span34 = CollectionsMarshal.AsSpan(list125); - ref QuestStep reference98 = ref span34[0]; + index2 = 3; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + ref QuestStep reference98 = ref span125[num2]; QuestStep obj93 = new QuestStep(EInteractionType.UseItem, 1027910u, new Vector3(356.71008f, -27.8172f, 310.04797f), 815) { ItemId = 2002904u }; - num3 = 6; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - Span span35 = CollectionsMarshal.AsSpan(list126); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list126 = new List(index3); + CollectionsMarshal.SetCount(list126, index3); + Span span126 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj93.CompletionQuestVariablesFlags = list126; reference98 = obj93; - ref QuestStep reference99 = ref span34[1]; + num2++; + ref QuestStep reference99 = ref span125[num2]; QuestStep obj94 = new QuestStep(EInteractionType.UseItem, 1027909u, new Vector3(357.47314f, -27.145874f, 317.28076f), 815) { ItemId = 2002904u @@ -240269,35 +291067,49 @@ public static class AssemblyQuestLoader num3 = 6; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - Span span36 = CollectionsMarshal.AsSpan(list127); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span127 = CollectionsMarshal.AsSpan(list127); + index3 = 0; + span127[index3] = null; + index3++; + span127[index3] = null; + index3++; + span127[index3] = null; + index3++; + span127[index3] = null; + index3++; + span127[index3] = null; + index3++; + span127[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj94.CompletionQuestVariablesFlags = list127; reference99 = obj94; - ref QuestStep reference100 = ref span34[2]; + num2++; + ref QuestStep reference100 = ref span125[num2]; QuestStep obj95 = new QuestStep(EInteractionType.UseItem, 1027939u, new Vector3(415.854f, -28.357805f, 335.4391f), 815) { ItemId = 2002904u }; - num3 = 6; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - Span span37 = CollectionsMarshal.AsSpan(list128); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list128 = new List(index3); + CollectionsMarshal.SetCount(list128, index3); + Span span128 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj95.CompletionQuestVariablesFlags = list128; reference100 = obj95; obj92.Steps = list125; reference97 = obj92; - ref QuestSequence reference101 = ref span33[5]; + num++; + ref QuestSequence reference101 = ref span120[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -240305,7 +291117,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815); + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815); obj96.Steps = list129; reference101 = obj96; questRoot14.QuestSequence = list120; @@ -240315,24 +291129,30 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + Span span130 = CollectionsMarshal.AsSpan(list130); + index = 0; + span130[index] = "liza"; questRoot15.Author = list130; - num = 6; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span38 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference102 = ref span38[0]; + index = 6; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + Span span131 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference102 = ref span131[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815); + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815); obj97.Steps = list132; reference102 = obj97; - ref QuestSequence reference103 = ref span38[1]; + num++; + ref QuestSequence reference103 = ref span131[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -240340,12 +291160,16 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - ref QuestStep reference104 = ref CollectionsMarshal.AsSpan(list133)[0]; + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + ref QuestStep reference104 = ref span133[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815); num3 = 1; List list134 = new List(num3); CollectionsMarshal.SetCount(list134, num3); - CollectionsMarshal.AsSpan(list134)[0] = new DialogueChoice + Span span134 = CollectionsMarshal.AsSpan(list134); + index3 = 0; + span134[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMG104_03676_Q2_000_100"), @@ -240355,21 +291179,25 @@ public static class AssemblyQuestLoader reference104 = questStep6; obj98.Steps = list133; reference103 = obj98; - ref QuestSequence reference105 = ref span38[2]; + num++; + ref QuestSequence reference105 = ref span131[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1031792u, new Vector3(-483.7873f, 45.58319f, -235.46198f), 815) + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span135[num2] = new QuestStep(EInteractionType.Interact, 1031792u, new Vector3(-483.7873f, 45.58319f, -235.46198f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; obj99.Steps = list135; reference105 = obj99; - ref QuestSequence reference106 = ref span38[3]; + num++; + ref QuestSequence reference106 = ref span131[num]; QuestSequence obj100 = new QuestSequence { Sequence = 3 @@ -240377,8 +291205,9 @@ public static class AssemblyQuestLoader num2 = 4; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span39 = CollectionsMarshal.AsSpan(list136); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.96634f, 41.707367f, -482.99057f), 815) + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span136[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.96634f, 41.707367f, -482.99057f), 815) { SkipConditions = new SkipConditions { @@ -240388,71 +291217,95 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference107 = ref span39[1]; + index2++; + ref QuestStep reference107 = ref span136[index2]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 2010811u, new Vector3(-16.922302f, 42.282715f, -470.48145f), 815) { StopDistance = 1f, Fly = true }; - num3 = 6; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - Span span40 = CollectionsMarshal.AsSpan(list137); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list137 = new List(index3); + CollectionsMarshal.SetCount(list137, index3); + Span span137 = CollectionsMarshal.AsSpan(list137); + num3 = 0; + span137[num3] = null; + num3++; + span137[num3] = null; + num3++; + span137[num3] = null; + num3++; + span137[num3] = null; + num3++; + span137[num3] = null; + num3++; + span137[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj101.CompletionQuestVariablesFlags = list137; reference107 = obj101; - ref QuestStep reference108 = ref span39[2]; + index2++; + ref QuestStep reference108 = ref span136[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2010810u, new Vector3(8.682312f, 42.130127f, -471.9463f), 815); num3 = 6; List list138 = new List(num3); CollectionsMarshal.SetCount(list138, num3); - Span span41 = CollectionsMarshal.AsSpan(list138); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span138 = CollectionsMarshal.AsSpan(list138); + index3 = 0; + span138[index3] = null; + index3++; + span138[index3] = null; + index3++; + span138[index3] = null; + index3++; + span138[index3] = null; + index3++; + span138[index3] = null; + index3++; + span138[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list138; reference108 = questStep7; - ref QuestStep reference109 = ref span39[3]; + index2++; + ref QuestStep reference109 = ref span136[index2]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 2010809u, new Vector3(19.760376f, 42.130127f, -463.3402f), 815) { Comment = "Combat not necessary to progress quest" }; - num3 = 6; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - Span span42 = CollectionsMarshal.AsSpan(list139); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list139 = new List(index3); + CollectionsMarshal.SetCount(list139, index3); + Span span139 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span139[num3] = null; + num3++; + span139[num3] = null; + num3++; + span139[num3] = null; + num3++; + span139[num3] = null; + num3++; + span139[num3] = null; + num3++; + span139[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj102.CompletionQuestVariablesFlags = list139; reference109 = obj102; obj100.Steps = list136; reference106 = obj100; - ref QuestSequence reference110 = ref span38[4]; + num++; + ref QuestSequence reference110 = ref span131[num]; QuestSequence obj103 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - Span span43 = CollectionsMarshal.AsSpan(list140); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.593674f, 42.681213f, -511.2799f), 815) + index2 = 2; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.593674f, 42.681213f, -511.2799f), 815) { Comment = "Should be far enough to reset combat" }; - ref QuestStep reference111 = ref span43[1]; + num2++; + ref QuestStep reference111 = ref span140[num2]; QuestStep obj104 = new QuestStep(EInteractionType.Interact, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead @@ -240460,7 +291313,9 @@ public static class AssemblyQuestLoader num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = new DialogueChoice + Span span141 = CollectionsMarshal.AsSpan(list141); + index3 = 0; + span141[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMG104_03676_Q3_000_200"), @@ -240470,7 +291325,8 @@ public static class AssemblyQuestLoader reference111 = obj104; obj103.Steps = list140; reference110 = obj103; - ref QuestSequence reference112 = ref span38[5]; + num++; + ref QuestSequence reference112 = ref span131[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -240478,7 +291334,9 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031734u, new Vector3(364.58374f, -27.966003f, 304.12744f), 815) + Span span142 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span142[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031734u, new Vector3(364.58374f, -27.966003f, 304.12744f), 815) { StopDistance = 6f }; @@ -240491,27 +291349,33 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; + Span span143 = CollectionsMarshal.AsSpan(list143); + index = 0; + span143[index] = "liza"; questRoot16.Author = list143; - num = 3; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span44 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference113 = ref span44[0]; + index = 3; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + Span span144 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference113 = ref span144[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031736u, new Vector3(368.1848f, -27.966003f, 302.3269f), 815) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span145[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031736u, new Vector3(368.1848f, -27.966003f, 302.3269f), 815) { StopDistance = 5f }; obj106.Steps = list145; reference113 = obj106; - ref QuestSequence reference114 = ref span44[1]; + num++; + ref QuestSequence reference114 = ref span144[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -240519,21 +291383,26 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1031737u, new Vector3(20.950623f, 82.05f, 17.837708f), 820) + Span span146 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span146[index2] = new QuestStep(EInteractionType.Interact, 1031737u, new Vector3(20.950623f, 82.05f, 17.837708f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj107.Steps = list146; reference114 = obj107; - ref QuestSequence reference115 = ref span44[2]; + num++; + ref QuestSequence reference115 = ref span144[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031739u, new Vector3(-19.36377f, 82.83509f, -50.55316f), 820); + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031739u, new Vector3(-19.36377f, 82.83509f, -50.55316f), 820); obj108.Steps = list147; reference115 = obj108; questRoot16.QuestSequence = list144; @@ -240543,13 +291412,16 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "liza"; + Span span148 = CollectionsMarshal.AsSpan(list148); + index = 0; + span148[index] = "liza"; questRoot17.Author = list148; - num = 3; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span45 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference116 = ref span45[0]; + index = 3; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + Span span149 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference116 = ref span149[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -240557,33 +291429,44 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031742u, new Vector3(-18.60083f, 82.84981f, -48.29486f), 820); + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031742u, new Vector3(-18.60083f, 82.84981f, -48.29486f), 820); obj109.Steps = list150; reference116 = obj109; - ref QuestSequence reference117 = ref span45[1]; + num++; + ref QuestSequence reference117 = ref span149[num]; QuestSequence obj110 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - Span span46 = CollectionsMarshal.AsSpan(list151); - ref QuestStep reference118 = ref span46[0]; + index2 = 3; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + ref QuestStep reference118 = ref span151[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1027544u, new Vector3(12.985352f, 82.05f, -25.223206f), 820); - num3 = 6; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - Span span47 = CollectionsMarshal.AsSpan(list152); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + Span span152 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span152[num3] = null; + num3++; + span152[num3] = null; + num3++; + span152[num3] = null; + num3++; + span152[num3] = null; + num3++; + span152[num3] = null; + num3++; + span152[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list152; reference118 = questStep8; - ref QuestStep reference119 = ref span46[1]; + num2++; + ref QuestStep reference119 = ref span151[num2]; QuestStep obj111 = new QuestStep(EInteractionType.Interact, 1027602u, new Vector3(74.35718f, -10.320814f, 4.8981323f), 820) { AethernetShortcut = new AethernetShortcut @@ -240595,16 +291478,23 @@ public static class AssemblyQuestLoader num3 = 6; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - Span span48 = CollectionsMarshal.AsSpan(list153); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span153 = CollectionsMarshal.AsSpan(list153); + index3 = 0; + span153[index3] = null; + index3++; + span153[index3] = null; + index3++; + span153[index3] = null; + index3++; + span153[index3] = null; + index3++; + span153[index3] = null; + index3++; + span153[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj111.CompletionQuestVariablesFlags = list153; reference119 = obj111; - ref QuestStep reference120 = ref span46[2]; + num2++; + ref QuestStep reference120 = ref span151[num2]; QuestStep obj112 = new QuestStep(EInteractionType.Interact, 1029990u, new Vector3(11.36792f, 5.999995f, -38.651123f), 820) { AethernetShortcut = new AethernetShortcut @@ -240613,21 +291503,28 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreGloryGate } }; - num3 = 6; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - Span span49 = CollectionsMarshal.AsSpan(list154); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list154 = new List(index3); + CollectionsMarshal.SetCount(list154, index3); + Span span154 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span154[num3] = null; + num3++; + span154[num3] = null; + num3++; + span154[num3] = null; + num3++; + span154[num3] = null; + num3++; + span154[num3] = null; + num3++; + span154[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj112.CompletionQuestVariablesFlags = list154; reference120 = obj112; obj110.Steps = list151; reference117 = obj110; - ref QuestSequence reference121 = ref span45[2]; + num++; + ref QuestSequence reference121 = ref span149[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -240635,7 +291532,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031746u, new Vector3(-4.043701f, -5.091193f, -98.19183f), 820); + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031746u, new Vector3(-4.043701f, -5.091193f, -98.19183f), 820); obj113.Steps = list155; reference121 = obj113; questRoot17.QuestSequence = list149; @@ -240645,24 +291544,30 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - CollectionsMarshal.AsSpan(list156)[0] = "liza"; + Span span156 = CollectionsMarshal.AsSpan(list156); + index = 0; + span156[index] = "liza"; questRoot18.Author = list156; - num = 7; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - Span span50 = CollectionsMarshal.AsSpan(list157); - ref QuestSequence reference122 = ref span50[0]; + index = 7; + List list157 = new List(index); + CollectionsMarshal.SetCount(list157, index); + Span span157 = CollectionsMarshal.AsSpan(list157); + num = 0; + ref QuestSequence reference122 = ref span157[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031746u, new Vector3(-4.043701f, -5.091193f, -98.19183f), 820); + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span158[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031746u, new Vector3(-4.043701f, -5.091193f, -98.19183f), 820); obj114.Steps = list158; reference122 = obj114; - ref QuestSequence reference123 = ref span50[1]; + num++; + ref QuestSequence reference123 = ref span157[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 @@ -240670,22 +291575,26 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1027306u, new Vector3(-294.94165f, 18.10139f, 403.5553f), 814) + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.Interact, 1027306u, new Vector3(-294.94165f, 18.10139f, 403.5553f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj115.Steps = list159; reference123 = obj115; - ref QuestSequence reference124 = ref span50[2]; + num++; + ref QuestSequence reference124 = ref span157[num]; QuestSequence obj116 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span51 = CollectionsMarshal.AsSpan(list160); - span51[0] = new QuestStep(EInteractionType.Interact, 1028319u, new Vector3(-454.7036f, 65.77815f, 58.27417f), 814) + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.Interact, 1028319u, new Vector3(-454.7036f, 65.77815f, 58.27417f), 814) { TargetTerritoryId = (ushort)814, SkipConditions = new SkipConditions @@ -240696,13 +291605,15 @@ public static class AssemblyQuestLoader } } }; - span51[1] = new QuestStep(EInteractionType.Interact, 1031751u, new Vector3(-468.77246f, 334.0526f, -35.05005f), 814) + num2++; + span160[num2] = new QuestStep(EInteractionType.Interact, 1031751u, new Vector3(-468.77246f, 334.0526f, -35.05005f), 814) { Fly = true }; obj116.Steps = list160; reference124 = obj116; - ref QuestSequence reference125 = ref span50[3]; + num++; + ref QuestSequence reference125 = ref span157[num]; QuestSequence obj117 = new QuestSequence { Sequence = 3 @@ -240710,24 +291621,30 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1031753u, new Vector3(-159.19745f, 352.35825f, -212.51245f), 814) + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.Interact, 1031753u, new Vector3(-159.19745f, 352.35825f, -212.51245f), 814) { Fly = true }; obj117.Steps = list161; reference125 = obj117; - ref QuestSequence reference126 = ref span50[4]; + num++; + ref QuestSequence reference126 = ref span157[num]; QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 1027462u, new Vector3(-121.87384f, 352.35822f, -191.08875f), 814); + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span162[num2] = new QuestStep(EInteractionType.Interact, 1027462u, new Vector3(-121.87384f, 352.35822f, -191.08875f), 814); obj118.Steps = list162; reference126 = obj118; - ref QuestSequence reference127 = ref span50[5]; + num++; + ref QuestSequence reference127 = ref span157[num]; QuestSequence obj119 = new QuestSequence { Sequence = 5 @@ -240735,21 +291652,26 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1031748u, new Vector3(-61.417603f, 378.34897f, -454.03223f), 814) + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span163[index2] = new QuestStep(EInteractionType.Interact, 1031748u, new Vector3(-61.417603f, 378.34897f, -454.03223f), 814) { Fly = true }; obj119.Steps = list163; reference127 = obj119; - ref QuestSequence reference128 = ref span50[6]; + num++; + ref QuestSequence reference128 = ref span157[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031760u, new Vector3(-60.04431f, 377.92743f, -451.6518f), 814); + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031760u, new Vector3(-60.04431f, 377.92743f, -451.6518f), 814); obj120.Steps = list164; reference128 = obj120; questRoot18.QuestSequence = list157; @@ -240759,13 +291681,16 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "liza"; + Span span165 = CollectionsMarshal.AsSpan(list165); + index = 0; + span165[index] = "liza"; questRoot19.Author = list165; - num = 5; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span52 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference129 = ref span52[0]; + index = 5; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + Span span166 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference129 = ref span166[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -240773,24 +291698,30 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031760u, new Vector3(-60.04431f, 377.92743f, -451.6518f), 814); + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031760u, new Vector3(-60.04431f, 377.92743f, -451.6518f), 814); obj121.Steps = list167; reference129 = obj121; - ref QuestSequence reference130 = ref span52[1]; + num++; + ref QuestSequence reference130 = ref span166[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1031761u, new Vector3(-423.78882f, 334.0526f, -26.199768f), 814) + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.Interact, 1031761u, new Vector3(-423.78882f, 334.0526f, -26.199768f), 814) { Fly = true }; obj122.Steps = list168; reference130 = obj122; - ref QuestSequence reference131 = ref span52[2]; + num++; + ref QuestSequence reference131 = ref span166[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 @@ -240798,27 +291729,33 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Snipe, 2010813u, new Vector3(-421.71362f, 339.62f, -161.45575f), 814) + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.Snipe, 2010813u, new Vector3(-421.71362f, 339.62f, -161.45575f), 814) { Comment = "Help Master Chai dodge enemies" }; obj123.Steps = list169; reference131 = obj123; - ref QuestSequence reference132 = ref span52[3]; + num++; + ref QuestSequence reference132 = ref span166[num]; QuestSequence obj124 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1031765u, new Vector3(-418.90594f, 339.968f, -162.03558f), 814) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.Interact, 1031765u, new Vector3(-418.90594f, 339.968f, -162.03558f), 814) { StopDistance = 7f }; obj124.Steps = list170; reference132 = obj124; - ref QuestSequence reference133 = ref span52[4]; + num++; + ref QuestSequence reference133 = ref span166[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -240826,7 +291763,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031769u, new Vector3(168.5968f, 39.939266f, 585.90063f), 814) + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span171[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031769u, new Vector3(168.5968f, 39.939266f, 585.90063f), 814) { StopDistance = 7f }; @@ -240839,27 +291778,33 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - CollectionsMarshal.AsSpan(list172)[0] = "liza"; + Span span172 = CollectionsMarshal.AsSpan(list172); + index = 0; + span172[index] = "liza"; questRoot20.Author = list172; - num = 4; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - Span span53 = CollectionsMarshal.AsSpan(list173); - ref QuestSequence reference134 = ref span53[0]; + index = 4; + List list173 = new List(index); + CollectionsMarshal.SetCount(list173, index); + Span span173 = CollectionsMarshal.AsSpan(list173); + num = 0; + ref QuestSequence reference134 = ref span173[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031770u, new Vector3(170.4585f, 39.973778f, 586.1753f), 814) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031770u, new Vector3(170.4585f, 39.973778f, 586.1753f), 814) { StopDistance = 7f }; obj126.Steps = list174; reference134 = obj126; - ref QuestSequence reference135 = ref span53[1]; + num++; + ref QuestSequence reference135 = ref span173[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 @@ -240867,24 +291812,30 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1027549u, new Vector3(2.029419f, 83.195244f, 57.846924f), 820) + Span span175 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span175[index2] = new QuestStep(EInteractionType.Interact, 1027549u, new Vector3(2.029419f, 83.195244f, 57.846924f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj127.Steps = list175; reference135 = obj127; - ref QuestSequence reference136 = ref span53[2]; + num++; + ref QuestSequence reference136 = ref span173[num]; QuestSequence obj128 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1031777u, new Vector3(25.864014f, 82.78213f, 24.734863f), 820); + index2 = 1; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + Span span176 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span176[num2] = new QuestStep(EInteractionType.Interact, 1031777u, new Vector3(25.864014f, 82.78213f, 24.734863f), 820); obj128.Steps = list176; reference136 = obj128; - ref QuestSequence reference137 = ref span53[3]; + num++; + ref QuestSequence reference137 = ref span173[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue @@ -240892,7 +291843,9 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031781u, new Vector3(24.246582f, 82.78206f, 25.77246f), 820); + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span177[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031781u, new Vector3(24.246582f, 82.78206f, 25.77246f), 820); obj129.Steps = list177; reference137 = obj129; questRoot20.QuestSequence = list173; @@ -240902,24 +291855,30 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "liza"; + Span span178 = CollectionsMarshal.AsSpan(list178); + index = 0; + span178[index] = "liza"; questRoot21.Author = list178; - num = 4; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span54 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference138 = ref span54[0]; + index = 4; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + Span span179 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference138 = ref span179[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031777u, new Vector3(25.864014f, 82.78213f, 24.734863f), 820); + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031777u, new Vector3(25.864014f, 82.78213f, 24.734863f), 820); obj130.Steps = list180; reference138 = obj130; - ref QuestSequence reference139 = ref span54[1]; + num++; + ref QuestSequence reference139 = ref span179[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 @@ -240927,8 +291886,9 @@ public static class AssemblyQuestLoader num2 = 2; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span55 = CollectionsMarshal.AsSpan(list181); - span55[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span181[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -240938,19 +291898,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span55[1] = new QuestStep(EInteractionType.Interact, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); + index2++; + span181[index2] = new QuestStep(EInteractionType.Interact, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); obj131.Steps = list181; reference139 = obj131; - ref QuestSequence reference140 = ref span54[2]; + num++; + ref QuestSequence reference140 = ref span179[num]; QuestSequence obj132 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - Span span56 = CollectionsMarshal.AsSpan(list182); - ref QuestStep reference141 = ref span56[0]; + index2 = 2; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + ref QuestStep reference141 = ref span182[num2]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -240961,19 +291924,24 @@ public static class AssemblyQuestLoader num3 = 1; List list183 = new List(num3); CollectionsMarshal.SetCount(list183, num3); - CollectionsMarshal.AsSpan(list183)[0] = 351; + Span span183 = CollectionsMarshal.AsSpan(list183); + index3 = 0; + span183[index3] = 351; skipStepConditions.InTerritory = list183; skipConditions.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - CollectionsMarshal.AsSpan(list184)[0] = 351; + index3 = 1; + List list184 = new List(index3); + CollectionsMarshal.SetCount(list184, index3); + Span span184 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span184[num3] = 351; skipAetheryteCondition.InTerritory = list184; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj133.SkipConditions = skipConditions; reference141 = obj133; - ref QuestStep reference142 = ref span56[1]; + num2++; + ref QuestStep reference142 = ref span182[num2]; QuestStep obj134 = new QuestStep(EInteractionType.SinglePlayerDuty, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) { Comment = "Estinien vs. Arch Ultima" @@ -240982,17 +291950,22 @@ public static class AssemblyQuestLoader num3 = 4; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - Span span57 = CollectionsMarshal.AsSpan(list185); - span57[0] = "AI doesn't move automatically for the first boss"; - span57[1] = "AI doesn't move automatically for the dialogue with gaius on the bridge"; - span57[2] = "After walking downstairs automatically, AI tries to run back towards the stairs (ignoring the arena boudnary)"; - span57[3] = "After moving from the arena boundary, AI doesn't move into melee range and stops too far away when initially attacking"; + Span span185 = CollectionsMarshal.AsSpan(list185); + index3 = 0; + span185[index3] = "AI doesn't move automatically for the first boss"; + index3++; + span185[index3] = "AI doesn't move automatically for the dialogue with gaius on the bridge"; + index3++; + span185[index3] = "After walking downstairs automatically, AI tries to run back towards the stairs (ignoring the arena boudnary)"; + index3++; + span185[index3] = "After moving from the arena boundary, AI doesn't move into melee range and stops too far away when initially attacking"; singlePlayerDutyOptions.Notes = list185; obj134.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference142 = obj134; obj132.Steps = list182; reference140 = obj132; - ref QuestSequence reference143 = ref span54[3]; + num++; + ref QuestSequence reference143 = ref span179[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue @@ -241000,7 +291973,9 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) { StopDistance = 5f }; @@ -241013,24 +291988,30 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - CollectionsMarshal.AsSpan(list187)[0] = "liza"; + Span span187 = CollectionsMarshal.AsSpan(list187); + index = 0; + span187[index] = "liza"; questRoot22.Author = list187; - num = 12; - List list188 = new List(num); - CollectionsMarshal.SetCount(list188, num); - Span span58 = CollectionsMarshal.AsSpan(list188); - ref QuestSequence reference144 = ref span58[0]; + index = 12; + List list188 = new List(index); + CollectionsMarshal.SetCount(list188, index); + Span span188 = CollectionsMarshal.AsSpan(list188); + num = 0; + ref QuestSequence reference144 = ref span188[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031839u, new Vector3(95.628296f, 1.490116E-08f, 204.11987f), 819); + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031839u, new Vector3(95.628296f, 1.490116E-08f, 204.11987f), 819); obj136.Steps = list189; reference144 = obj136; - ref QuestSequence reference145 = ref span58[1]; + num++; + ref QuestSequence reference145 = ref span188[num]; QuestSequence obj137 = new QuestSequence { Sequence = 1 @@ -241038,28 +292019,34 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1031843u, new Vector3(152.48328f, 0.21766767f, 655.4512f), 813) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.Interact, 1031843u, new Vector3(152.48328f, 0.21766767f, 655.4512f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj137.Steps = list190; reference145 = obj137; - ref QuestSequence reference146 = ref span58[2]; + num++; + ref QuestSequence reference146 = ref span188[num]; QuestSequence obj138 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1031845u, new Vector3(-200.09155f, 2.2048368f, 737.8804f), 813) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.Interact, 1031845u, new Vector3(-200.09155f, 2.2048368f, 737.8804f), 813) { Fly = true }; obj138.Steps = list191; reference146 = obj138; - ref QuestSequence reference147 = ref span58[3]; + num++; + ref QuestSequence reference147 = ref span188[num]; QuestSequence obj139 = new QuestSequence { Sequence = 3 @@ -241067,36 +292054,44 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list192)[0]; + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + ref QuestStep reference148 = ref span192[index2]; QuestStep obj140 = new QuestStep(EInteractionType.Combat, null, new Vector3(234.24565f, 10.83118f, 738.46594f), 813) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - CollectionsMarshal.AsSpan(list193)[0] = 11437u; + index3 = 1; + List list193 = new List(index3); + CollectionsMarshal.SetCount(list193, index3); + Span span193 = CollectionsMarshal.AsSpan(list193); + num3 = 0; + span193[num3] = 11437u; obj140.KillEnemyDataIds = list193; reference148 = obj140; obj139.Steps = list192; reference147 = obj139; - ref QuestSequence reference149 = ref span58[4]; + num++; + ref QuestSequence reference149 = ref span188[num]; QuestSequence obj141 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1031847u, new Vector3(231.92188f, 9.887029f, 726.74133f), 813) + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.Interact, 1031847u, new Vector3(231.92188f, 9.887029f, 726.74133f), 813) { StopDistance = 7f }; obj141.Steps = list194; reference149 = obj141; - ref QuestSequence reference150 = ref span58[5]; + num++; + ref QuestSequence reference150 = ref span188[num]; QuestSequence obj142 = new QuestSequence { Sequence = 5 @@ -241104,21 +292099,26 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1031846u, new Vector3(-204.76086f, 2.4649847f, 739.9557f), 813) + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span195[index2] = new QuestStep(EInteractionType.Interact, 1031846u, new Vector3(-204.76086f, 2.4649847f, 739.9557f), 813) { Fly = true }; obj142.Steps = list195; reference150 = obj142; - ref QuestSequence reference151 = ref span58[6]; + num++; + ref QuestSequence reference151 = ref span188[num]; QuestSequence obj143 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list196)[0]; + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + ref QuestStep reference152 = ref span196[num2]; QuestStep obj144 = new QuestStep(EInteractionType.Interact, 1031808u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) { Fly = true, @@ -241127,7 +292127,9 @@ public static class AssemblyQuestLoader num3 = 1; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new DialogueChoice + Span span197 = CollectionsMarshal.AsSpan(list197); + index3 = 0; + span197[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANPIX001_03683_EVENTAREA_WARP_000_133") @@ -241136,11 +292138,13 @@ public static class AssemblyQuestLoader reference152 = obj144; obj143.Steps = list196; reference151 = obj143; - span58[7] = new QuestSequence + num++; + span188[num] = new QuestSequence { Sequence = 7 }; - ref QuestSequence reference153 = ref span58[8]; + num++; + ref QuestSequence reference153 = ref span188[num]; QuestSequence obj145 = new QuestSequence { Sequence = 8 @@ -241148,25 +292152,32 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1031850u, new Vector3(55.588623f, -1.6532946f, 48.599854f), 889); + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span198[index2] = new QuestStep(EInteractionType.Interact, 1031850u, new Vector3(55.588623f, -1.6532946f, 48.599854f), 889); obj145.Steps = list198; reference153 = obj145; - span58[9] = new QuestSequence + num++; + span188[num] = new QuestSequence { Sequence = 9 }; - ref QuestSequence reference154 = ref span58[10]; + num++; + ref QuestSequence reference154 = ref span188[num]; QuestSequence obj146 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1032348u, new Vector3(-18.295654f, 6.8822618f, -67.338135f), 890); + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + Span span199 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span199[num2] = new QuestStep(EInteractionType.Interact, 1032348u, new Vector3(-18.295654f, 6.8822618f, -67.338135f), 890); obj146.Steps = list199; reference154 = obj146; - ref QuestSequence reference155 = ref span58[11]; + num++; + ref QuestSequence reference155 = ref span188[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -241174,16 +292185,20 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - ref QuestStep reference156 = ref CollectionsMarshal.AsSpan(list200)[0]; + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + ref QuestStep reference156 = ref span200[index2]; QuestStep obj148 = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - num3 = 1; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - CollectionsMarshal.AsSpan(list201)[0] = new DialogueChoice + index3 = 1; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + Span span201 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span201[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPIX001_03683_Q3_000_000"), @@ -241200,24 +292215,30 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "liza"; + Span span202 = CollectionsMarshal.AsSpan(list202); + index = 0; + span202[index] = "liza"; questRoot23.Author = list202; - num = 13; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span59 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference157 = ref span59[0]; + index = 13; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + Span span203 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference157 = ref span203[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); obj149.Steps = list204; reference157 = obj149; - ref QuestSequence reference158 = ref span59[1]; + num++; + ref QuestSequence reference158 = ref span203[num]; QuestSequence obj150 = new QuestSequence { Sequence = 1 @@ -241225,26 +292246,32 @@ public static class AssemblyQuestLoader num2 = 2; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span60 = CollectionsMarshal.AsSpan(list205); - span60[0] = new QuestStep(EInteractionType.Interact, 1031891u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.Interact, 1031891u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) { TargetTerritoryId = (ushort)890 }; - span60[1] = new QuestStep(EInteractionType.Interact, 1031853u, new Vector3(60.471436f, -1.6051313f, 53.543823f), 890); + index2++; + span205[index2] = new QuestStep(EInteractionType.Interact, 1031853u, new Vector3(60.471436f, -1.6051313f, 53.543823f), 890); obj150.Steps = list205; reference158 = obj150; - ref QuestSequence reference159 = ref span59[2]; + num++; + ref QuestSequence reference159 = ref span203[num]; QuestSequence obj151 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1031852u, new Vector3(59.03711f, -1.7997739f, 56.565186f), 890); + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.Interact, 1031852u, new Vector3(59.03711f, -1.7997739f, 56.565186f), 890); obj151.Steps = list206; reference159 = obj151; - ref QuestSequence reference160 = ref span59[3]; + num++; + ref QuestSequence reference160 = ref span203[num]; QuestSequence obj152 = new QuestSequence { Sequence = 3 @@ -241252,22 +292279,27 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1031855u, new Vector3(74.784424f, 98.85967f, -820.88965f), 816) + Span span207 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span207[index2] = new QuestStep(EInteractionType.Interact, 1031855u, new Vector3(74.784424f, 98.85967f, -820.88965f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; obj152.Steps = list207; reference160 = obj152; - ref QuestSequence reference161 = ref span59[4]; + num++; + ref QuestSequence reference161 = ref span203[num]; QuestSequence obj153 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - ref QuestStep reference162 = ref CollectionsMarshal.AsSpan(list208)[0]; + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + ref QuestStep reference162 = ref span208[num2]; QuestStep obj154 = new QuestStep(EInteractionType.Interact, 1031858u, new Vector3(-211.35272f, 16.63259f, 427.32886f), 814) { Fly = true, @@ -241276,7 +292308,9 @@ public static class AssemblyQuestLoader num3 = 1; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = new DialogueChoice + Span span209 = CollectionsMarshal.AsSpan(list209); + index3 = 0; + span209[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPIX002_03684_Q1_000_000"), @@ -241286,7 +292320,8 @@ public static class AssemblyQuestLoader reference162 = obj154; obj153.Steps = list208; reference161 = obj153; - ref QuestSequence reference163 = ref span59[5]; + num++; + ref QuestSequence reference163 = ref span203[num]; QuestSequence obj155 = new QuestSequence { Sequence = 5 @@ -241294,34 +292329,42 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1031860u, new Vector3(-217.45636f, 21.481304f, 356.9237f), 814) + Span span210 = CollectionsMarshal.AsSpan(list210); + index2 = 0; + span210[index2] = new QuestStep(EInteractionType.Interact, 1031860u, new Vector3(-217.45636f, 21.481304f, 356.9237f), 814) { Fly = true }; obj155.Steps = list210; reference163 = obj155; - ref QuestSequence reference164 = ref span59[6]; + num++; + ref QuestSequence reference164 = ref span203[num]; QuestSequence obj156 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list211)[0]; + index2 = 1; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + Span span211 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + ref QuestStep reference165 = ref span211[num2]; QuestStep obj157 = new QuestStep(EInteractionType.Combat, null, new Vector3(-137.7369f, 11.939666f, 336.4078f), 814) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = 11438u; + index3 = 1; + List list212 = new List(index3); + CollectionsMarshal.SetCount(list212, index3); + Span span212 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span212[num3] = 11438u; obj157.KillEnemyDataIds = list212; reference165 = obj157; obj156.Steps = list211; reference164 = obj156; - ref QuestSequence reference166 = ref span59[7]; + num++; + ref QuestSequence reference166 = ref span203[num]; QuestSequence obj158 = new QuestSequence { Sequence = 7 @@ -241329,24 +292372,30 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1031861u, new Vector3(-149.85895f, 13.084818f, 341.1764f), 814); + Span span213 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span213[index2] = new QuestStep(EInteractionType.Interact, 1031861u, new Vector3(-149.85895f, 13.084818f, 341.1764f), 814); obj158.Steps = list213; reference166 = obj158; - ref QuestSequence reference167 = ref span59[8]; + num++; + ref QuestSequence reference167 = ref span203[num]; QuestSequence obj159 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1031860u, new Vector3(-217.45636f, 21.481304f, 356.9237f), 814) + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + Span span214 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span214[num2] = new QuestStep(EInteractionType.Interact, 1031860u, new Vector3(-217.45636f, 21.481304f, 356.9237f), 814) { Fly = true }; obj159.Steps = list214; reference167 = obj159; - ref QuestSequence reference168 = ref span59[9]; + num++; + ref QuestSequence reference168 = ref span203[num]; QuestSequence obj160 = new QuestSequence { Sequence = 9 @@ -241354,32 +292403,39 @@ public static class AssemblyQuestLoader num2 = 2; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - Span span61 = CollectionsMarshal.AsSpan(list215); - span61[0] = new QuestStep(EInteractionType.Interact, 1031891u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) + Span span215 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span215[index2] = new QuestStep(EInteractionType.Interact, 1031891u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) { TargetTerritoryId = (ushort)890, Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - span61[1] = new QuestStep(EInteractionType.Interact, 1031863u, new Vector3(60.379883f, 31.0353f, -110.76526f), 890); + index2++; + span215[index2] = new QuestStep(EInteractionType.Interact, 1031863u, new Vector3(60.379883f, 31.0353f, -110.76526f), 890); obj160.Steps = list215; reference168 = obj160; - span59[10] = new QuestSequence + num++; + span203[num] = new QuestSequence { Sequence = 10 }; - ref QuestSequence reference169 = ref span59[11]; + num++; + ref QuestSequence reference169 = ref span203[num]; QuestSequence obj161 = new QuestSequence { Sequence = 11 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 1032350u, new Vector3(63.797974f, 30.266184f, -103.4715f), 891); + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + Span span216 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span216[num2] = new QuestStep(EInteractionType.Interact, 1032350u, new Vector3(63.797974f, 30.266184f, -103.4715f), 891); obj161.Steps = list216; reference169 = obj161; - ref QuestSequence reference170 = ref span59[12]; + num++; + ref QuestSequence reference170 = ref span203[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue @@ -241387,7 +292443,9 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -241401,26 +292459,33 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; + Span span218 = CollectionsMarshal.AsSpan(list218); + index = 0; + span218[index] = "liza"; questRoot24.Author = list218; - num = 11; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span62 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference171 = ref span62[0]; + index = 11; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + Span span219 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference171 = ref span219[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - ref QuestStep reference172 = ref CollectionsMarshal.AsSpan(list220)[0]; + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + ref QuestStep reference172 = ref span220[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); num3 = 1; List list221 = new List(num3); CollectionsMarshal.SetCount(list221, num3); - CollectionsMarshal.AsSpan(list221)[0] = new DialogueChoice + Span span221 = CollectionsMarshal.AsSpan(list221); + index3 = 0; + span221[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPIX003_03685_Q1_000_000"), @@ -241430,7 +292495,8 @@ public static class AssemblyQuestLoader reference172 = questStep9; obj163.Steps = list220; reference171 = obj163; - ref QuestSequence reference173 = ref span62[1]; + num++; + ref QuestSequence reference173 = ref span219[num]; QuestSequence obj164 = new QuestSequence { Sequence = 1 @@ -241438,26 +292504,32 @@ public static class AssemblyQuestLoader num2 = 2; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span63 = CollectionsMarshal.AsSpan(list222); - span63[0] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) + Span span222 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span222[index2] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) { TargetTerritoryId = (ushort)891 }; - span63[1] = new QuestStep(EInteractionType.Interact, 1031866u, new Vector3(78.690796f, 0.15887591f, 50.0343f), 891); + index2++; + span222[index2] = new QuestStep(EInteractionType.Interact, 1031866u, new Vector3(78.690796f, 0.15887591f, 50.0343f), 891); obj164.Steps = list222; reference173 = obj164; - ref QuestSequence reference174 = ref span62[2]; + num++; + ref QuestSequence reference174 = ref span219[num]; QuestSequence obj165 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 1031865u, new Vector3(76.37134f, 0.15887591f, 51.987427f), 891); + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + Span span223 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span223[num2] = new QuestStep(EInteractionType.Interact, 1031865u, new Vector3(76.37134f, 0.15887591f, 51.987427f), 891); obj165.Steps = list223; reference174 = obj165; - ref QuestSequence reference175 = ref span62[3]; + num++; + ref QuestSequence reference175 = ref span219[num]; QuestSequence obj166 = new QuestSequence { Sequence = 3 @@ -241465,30 +292537,36 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1031867u, new Vector3(303.15088f, 1.4685827f, -313.34406f), 815) + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new QuestStep(EInteractionType.Interact, 1031867u, new Vector3(303.15088f, 1.4685827f, -313.34406f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; obj166.Steps = list224; reference175 = obj166; - ref QuestSequence reference176 = ref span62[4]; + num++; + ref QuestSequence reference176 = ref span219[num]; QuestSequence obj167 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - Span span64 = CollectionsMarshal.AsSpan(list225); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(201.67809f, 7.1558266f, -137.17564f), 815) + index2 = 2; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(201.67809f, 7.1558266f, -137.17564f), 815) { Fly = true }; - span64[1] = new QuestStep(EInteractionType.Interact, 1031869u, new Vector3(201.06812f, 7.1558266f, -138.81134f), 815); + num2++; + span225[num2] = new QuestStep(EInteractionType.Interact, 1031869u, new Vector3(201.06812f, 7.1558266f, -138.81134f), 815); obj167.Steps = list225; reference176 = obj167; - ref QuestSequence reference177 = ref span62[5]; + num++; + ref QuestSequence reference177 = ref span219[num]; QuestSequence obj168 = new QuestSequence { Sequence = 5 @@ -241496,35 +292574,43 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - ref QuestStep reference178 = ref CollectionsMarshal.AsSpan(list226)[0]; + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + ref QuestStep reference178 = ref span226[index2]; QuestStep obj169 = new QuestStep(EInteractionType.Combat, null, new Vector3(355.25076f, -19.54202f, -4.2170615f), 815) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = 11439u; + index3 = 1; + List list227 = new List(index3); + CollectionsMarshal.SetCount(list227, index3); + Span span227 = CollectionsMarshal.AsSpan(list227); + num3 = 0; + span227[num3] = 11439u; obj169.KillEnemyDataIds = list227; reference178 = obj169; obj168.Steps = list226; reference177 = obj168; - ref QuestSequence reference179 = ref span62[6]; + num++; + ref QuestSequence reference179 = ref span219[num]; QuestSequence obj170 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1031871u, new Vector3(350.05713f, -18.544811f, -15.793152f), 815) + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.Interact, 1031871u, new Vector3(350.05713f, -18.544811f, -15.793152f), 815) { StopDistance = 7f }; obj170.Steps = list228; reference179 = obj170; - ref QuestSequence reference180 = ref span62[7]; + num++; + ref QuestSequence reference180 = ref span219[num]; QuestSequence obj171 = new QuestSequence { Sequence = 7 @@ -241532,33 +292618,39 @@ public static class AssemblyQuestLoader num2 = 2; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span65 = CollectionsMarshal.AsSpan(list229); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(201.67809f, 7.1558266f, -137.17564f), 815) + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span229[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(201.67809f, 7.1558266f, -137.17564f), 815) { Fly = true }; - span65[1] = new QuestStep(EInteractionType.Interact, 1031869u, new Vector3(201.06812f, 7.1558266f, -138.81134f), 815); + index2++; + span229[index2] = new QuestStep(EInteractionType.Interact, 1031869u, new Vector3(201.06812f, 7.1558266f, -138.81134f), 815); obj171.Steps = list229; reference180 = obj171; - ref QuestSequence reference181 = ref span62[8]; + num++; + ref QuestSequence reference181 = ref span219[num]; QuestSequence obj172 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - Span span66 = CollectionsMarshal.AsSpan(list230); - span66[0] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) + index2 = 2; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span230[num2] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) { TargetTerritoryId = (ushort)891, Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - span66[1] = new QuestStep(EInteractionType.Interact, 1032030u, new Vector3(90.40967f, 40.45613f, -105.48566f), 891); + num2++; + span230[num2] = new QuestStep(EInteractionType.Interact, 1032030u, new Vector3(90.40967f, 40.45613f, -105.48566f), 891); obj172.Steps = list230; reference181 = obj172; - ref QuestSequence reference182 = ref span62[9]; + num++; + ref QuestSequence reference182 = ref span219[num]; QuestSequence obj173 = new QuestSequence { Sequence = 9 @@ -241566,18 +292658,23 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1032352u, new Vector3(95.994385f, 38.906254f, -89.37213f), 891); + Span span231 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span231[index2] = new QuestStep(EInteractionType.Interact, 1032352u, new Vector3(95.994385f, 38.906254f, -89.37213f), 891); obj173.Steps = list231; reference182 = obj173; - ref QuestSequence reference183 = ref span62[10]; + num++; + ref QuestSequence reference183 = ref span219[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span232[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -241591,13 +292688,16 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "liza"; + Span span233 = CollectionsMarshal.AsSpan(list233); + index = 0; + span233[index] = "liza"; questRoot25.Author = list233; - num = 11; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span67 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference184 = ref span67[0]; + index = 11; + List list234 = new List(index); + CollectionsMarshal.SetCount(list234, index); + Span span234 = CollectionsMarshal.AsSpan(list234); + num = 0; + ref QuestSequence reference184 = ref span234[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -241605,26 +292705,32 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); + Span span235 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span235[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); obj175.Steps = list235; reference184 = obj175; - ref QuestSequence reference185 = ref span67[1]; + num++; + ref QuestSequence reference185 = ref span234[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - Span span68 = CollectionsMarshal.AsSpan(list236); - span68[0] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) + index2 = 2; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) { TargetTerritoryId = (ushort)891 }; - span68[1] = new QuestStep(EInteractionType.Interact, 1031875u, new Vector3(63.553833f, -6.2561507f, -4.6845703f), 891); + num2++; + span236[num2] = new QuestStep(EInteractionType.Interact, 1031875u, new Vector3(63.553833f, -6.2561507f, -4.6845703f), 891); obj176.Steps = list236; reference185 = obj176; - ref QuestSequence reference186 = ref span67[2]; + num++; + ref QuestSequence reference186 = ref span234[num]; QuestSequence obj177 = new QuestSequence { Sequence = 2 @@ -241632,24 +292738,30 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1031873u, new Vector3(62.57715f, -6.26951f, -1.2970581f), 891); + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span237[index2] = new QuestStep(EInteractionType.Interact, 1031873u, new Vector3(62.57715f, -6.26951f, -1.2970581f), 891); obj177.Steps = list237; reference186 = obj177; - ref QuestSequence reference187 = ref span67[3]; + num++; + ref QuestSequence reference187 = ref span234[num]; QuestSequence obj178 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1031876u, new Vector3(-143.99939f, -18.519604f, 300.52637f), 817) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.Interact, 1031876u, new Vector3(-143.99939f, -18.519604f, 300.52637f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj178.Steps = list238; reference187 = obj178; - ref QuestSequence reference188 = ref span67[4]; + num++; + ref QuestSequence reference188 = ref span234[num]; QuestSequence obj179 = new QuestSequence { Sequence = 4 @@ -241657,18 +292769,23 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1031878u, new Vector3(-42.648987f, -18.509216f, 270.31348f), 817); + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new QuestStep(EInteractionType.Interact, 1031878u, new Vector3(-42.648987f, -18.509216f, 270.31348f), 817); obj179.Steps = list239; reference188 = obj179; - ref QuestSequence reference189 = ref span67[5]; + num++; + ref QuestSequence reference189 = ref span234[num]; QuestSequence obj180 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - ref QuestStep reference190 = ref CollectionsMarshal.AsSpan(list240)[0]; + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + ref QuestStep reference190 = ref span240[num2]; QuestStep obj181 = new QuestStep(EInteractionType.Combat, null, new Vector3(-277.1741f, 16.288988f, 251.72075f), 817) { StopDistance = 1f, @@ -241677,12 +292794,15 @@ public static class AssemblyQuestLoader num3 = 1; List list241 = new List(num3); CollectionsMarshal.SetCount(list241, num3); - CollectionsMarshal.AsSpan(list241)[0] = 11440u; + Span span241 = CollectionsMarshal.AsSpan(list241); + index3 = 0; + span241[index3] = 11440u; obj181.KillEnemyDataIds = list241; reference190 = obj181; obj180.Steps = list240; reference189 = obj180; - ref QuestSequence reference191 = ref span67[6]; + num++; + ref QuestSequence reference191 = ref span234[num]; QuestSequence obj182 = new QuestSequence { Sequence = 6 @@ -241690,26 +292810,32 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1031879u, new Vector3(-276.93604f, 15.250552f, 263.20276f), 817); + Span span242 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + span242[index2] = new QuestStep(EInteractionType.Interact, 1031879u, new Vector3(-276.93604f, 15.250552f, 263.20276f), 817); obj182.Steps = list242; reference191 = obj182; - ref QuestSequence reference192 = ref span67[7]; + num++; + ref QuestSequence reference192 = ref span234[num]; QuestSequence obj183 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - Span span69 = CollectionsMarshal.AsSpan(list243); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.90031f, -19.300228f, 286.6684f), 817) + index2 = 2; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + Span span243 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span243[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.90031f, -19.300228f, 286.6684f), 817) { Fly = true }; - span69[1] = new QuestStep(EInteractionType.Interact, 1032280u, new Vector3(-42.038635f, -18.997498f, 270.58813f), 817); + num2++; + span243[num2] = new QuestStep(EInteractionType.Interact, 1032280u, new Vector3(-42.038635f, -18.997498f, 270.58813f), 817); obj183.Steps = list243; reference192 = obj183; - ref QuestSequence reference193 = ref span67[8]; + num++; + ref QuestSequence reference193 = ref span234[num]; QuestSequence obj184 = new QuestSequence { Sequence = 8 @@ -241717,28 +292843,34 @@ public static class AssemblyQuestLoader num2 = 2; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span70 = CollectionsMarshal.AsSpan(list244); - span70[0] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span244[index2] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) { TargetTerritoryId = (ushort)891, Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - span70[1] = new QuestStep(EInteractionType.Interact, 1032032u, new Vector3(-2.5177612f, 25.887014f, -107.07257f), 891); + index2++; + span244[index2] = new QuestStep(EInteractionType.Interact, 1032032u, new Vector3(-2.5177612f, 25.887014f, -107.07257f), 891); obj184.Steps = list244; reference193 = obj184; - ref QuestSequence reference194 = ref span67[9]; + num++; + ref QuestSequence reference194 = ref span234[num]; QuestSequence obj185 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1032032u, new Vector3(-2.5177612f, 25.887014f, -107.07257f), 891); + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + Span span245 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span245[num2] = new QuestStep(EInteractionType.Interact, 1032032u, new Vector3(-2.5177612f, 25.887014f, -107.07257f), 891); obj185.Steps = list245; reference194 = obj185; - ref QuestSequence reference195 = ref span67[10]; + num++; + ref QuestSequence reference195 = ref span234[num]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue @@ -241746,7 +292878,9 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) + Span span246 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span246[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -241760,24 +292894,30 @@ public static class AssemblyQuestLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - CollectionsMarshal.AsSpan(list247)[0] = "plogon_enjoyer"; + Span span247 = CollectionsMarshal.AsSpan(list247); + index = 0; + span247[index] = "plogon_enjoyer"; questRoot26.Author = list247; - num = 10; - List list248 = new List(num); - CollectionsMarshal.SetCount(list248, num); - Span span71 = CollectionsMarshal.AsSpan(list248); - ref QuestSequence reference196 = ref span71[0]; + index = 10; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + Span span248 = CollectionsMarshal.AsSpan(list248); + num = 0; + ref QuestSequence reference196 = ref span248[num]; QuestSequence obj187 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + Span span249 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span249[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); obj187.Steps = list249; reference196 = obj187; - ref QuestSequence reference197 = ref span71[1]; + num++; + ref QuestSequence reference197 = ref span248[num]; QuestSequence obj188 = new QuestSequence { Sequence = 1 @@ -241785,26 +292925,32 @@ public static class AssemblyQuestLoader num2 = 2; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span72 = CollectionsMarshal.AsSpan(list250); - span72[0] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) + Span span250 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span250[index2] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) { TargetTerritoryId = (ushort)891 }; - span72[1] = new QuestStep(EInteractionType.Interact, 1031883u, new Vector3(-116.07544f, 9.440084f, -41.428284f), 891); + index2++; + span250[index2] = new QuestStep(EInteractionType.Interact, 1031883u, new Vector3(-116.07544f, 9.440084f, -41.428284f), 891); obj188.Steps = list250; reference197 = obj188; - ref QuestSequence reference198 = ref span71[2]; + num++; + ref QuestSequence reference198 = ref span248[num]; QuestSequence obj189 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1031881u, new Vector3(-115.03784f, 9.440084f, -38.651123f), 891); + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + Span span251 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span251[num2] = new QuestStep(EInteractionType.Interact, 1031881u, new Vector3(-115.03784f, 9.440084f, -38.651123f), 891); obj189.Steps = list251; reference198 = obj189; - ref QuestSequence reference199 = ref span71[3]; + num++; + ref QuestSequence reference199 = ref span248[num]; QuestSequence obj190 = new QuestSequence { Sequence = 3 @@ -241812,40 +292958,48 @@ public static class AssemblyQuestLoader num2 = 4; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span73 = CollectionsMarshal.AsSpan(list252); - span73[0] = new QuestStep(EInteractionType.Interact, 1031204u, new Vector3(481.95605f, 90.43779f, -656.09216f), 816) + Span span252 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span252[index2] = new QuestStep(EInteractionType.Interact, 1031204u, new Vector3(481.95605f, 90.43779f, -656.09216f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; - span73[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-107.78667f, 108.39998f, -840.88965f), 816) + index2++; + span252[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-107.78667f, 108.39998f, -840.88965f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; - span73[2] = new QuestStep(EInteractionType.Interact, 1027673u, new Vector3(-106.06549f, 108.39998f, -841.7639f), 816); - span73[3] = new QuestStep(EInteractionType.Interact, 1027656u, new Vector3(-291.61517f, 40.324036f, 456.65674f), 816) + index2++; + span252[index2] = new QuestStep(EInteractionType.Interact, 1027673u, new Vector3(-106.06549f, 108.39998f, -841.7639f), 816); + index2++; + span252[index2] = new QuestStep(EInteractionType.Interact, 1027656u, new Vector3(-291.61517f, 40.324036f, 456.65674f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj190.Steps = list252; reference199 = obj190; - ref QuestSequence reference200 = ref span71[4]; + num++; + ref QuestSequence reference200 = ref span248[num]; QuestSequence obj191 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1031807u, new Vector3(-465.93427f, 71.48343f, 571.8623f), 816) + index2 = 1; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + Span span253 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span253[num2] = new QuestStep(EInteractionType.Interact, 1031807u, new Vector3(-465.93427f, 71.48343f, 571.8623f), 816) { Fly = true }; obj191.Steps = list253; reference200 = obj191; - ref QuestSequence reference201 = ref span71[5]; + num++; + ref QuestSequence reference201 = ref span248[num]; QuestSequence obj192 = new QuestSequence { Sequence = 5 @@ -241853,28 +293007,35 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1031808u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) + Span span254 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span254[index2] = new QuestStep(EInteractionType.Interact, 1031808u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) { Fly = true }; obj192.Steps = list254; reference201 = obj192; - ref QuestSequence reference202 = ref span71[6]; + num++; + ref QuestSequence reference202 = ref span248[num]; QuestSequence obj193 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1031808u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816); + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span255 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span255[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1031808u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816); obj193.Steps = list255; reference202 = obj193; - span71[7] = new QuestSequence + num++; + span248[num] = new QuestSequence { Sequence = 7 }; - ref QuestSequence reference203 = ref span71[8]; + num++; + ref QuestSequence reference203 = ref span248[num]; QuestSequence obj194 = new QuestSequence { Sequence = 8 @@ -241882,23 +293043,28 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1031886u, new Vector3(38.345825f, -4.6399317f, 24.76538f), 892); + Span span256 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span256[index2] = new QuestStep(EInteractionType.Interact, 1031886u, new Vector3(38.345825f, -4.6399317f, 24.76538f), 892); obj194.Steps = list256; reference203 = obj194; - ref QuestSequence reference204 = ref span71[9]; + num++; + ref QuestSequence reference204 = ref span248[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - Span span74 = CollectionsMarshal.AsSpan(list257); - span74[0] = new QuestStep(EInteractionType.Interact, 1032365u, new Vector3(56.412598f, 5.5911026f, 116.16687f), 892) + index2 = 2; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span257 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span257[num2] = new QuestStep(EInteractionType.Interact, 1032365u, new Vector3(56.412598f, 5.5911026f, 116.16687f), 892) { TargetTerritoryId = (ushort)816 }; - span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); + num2++; + span257[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); obj195.Steps = list257; reference204 = obj195; questRoot26.QuestSequence = list248; @@ -241908,13 +293074,16 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - CollectionsMarshal.AsSpan(list258)[0] = "plogon_enjoyer"; + Span span258 = CollectionsMarshal.AsSpan(list258); + index = 0; + span258[index] = "plogon_enjoyer"; questRoot27.Author = list258; - num = 3; - List list259 = new List(num); - CollectionsMarshal.SetCount(list259, num); - Span span75 = CollectionsMarshal.AsSpan(list259); - ref QuestSequence reference205 = ref span75[0]; + index = 3; + List list259 = new List(index); + CollectionsMarshal.SetCount(list259, index); + Span span259 = CollectionsMarshal.AsSpan(list259); + num = 0; + ref QuestSequence reference205 = ref span259[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -241922,26 +293091,32 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); + Span span260 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span260[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); obj196.Steps = list260; reference205 = obj196; - ref QuestSequence reference206 = ref span75[1]; + num++; + ref QuestSequence reference206 = ref span259[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - Span span76 = CollectionsMarshal.AsSpan(list261); - span76[0] = new QuestStep(EInteractionType.Interact, 1031893u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) + index2 = 2; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + Span span261 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span261[num2] = new QuestStep(EInteractionType.Interact, 1031893u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) { TargetTerritoryId = (ushort)892 }; - span76[1] = new QuestStep(EInteractionType.Interact, 1031890u, new Vector3(55.649536f, -6.167951f, 8.041443f), 892); + num2++; + span261[num2] = new QuestStep(EInteractionType.Interact, 1031890u, new Vector3(55.649536f, -6.167951f, 8.041443f), 892); obj197.Steps = list261; reference206 = obj197; - ref QuestSequence reference207 = ref span75[2]; + num++; + ref QuestSequence reference207 = ref span259[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue @@ -241949,12 +293124,14 @@ public static class AssemblyQuestLoader num2 = 2; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span77 = CollectionsMarshal.AsSpan(list262); - span77[0] = new QuestStep(EInteractionType.Interact, 1032365u, new Vector3(56.412598f, 5.5911026f, 116.16687f), 892) + Span span262 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span262[index2] = new QuestStep(EInteractionType.Interact, 1032365u, new Vector3(56.412598f, 5.5911026f, 116.16687f), 892) { TargetTerritoryId = (ushort)816 }; - span77[1] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); + index2++; + span262[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); obj198.Steps = list262; reference207 = obj198; questRoot27.QuestSequence = list259; @@ -241964,24 +293141,30 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - CollectionsMarshal.AsSpan(list263)[0] = "liza"; + Span span263 = CollectionsMarshal.AsSpan(list263); + index = 0; + span263[index] = "liza"; questRoot28.Author = list263; - num = 3; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - Span span78 = CollectionsMarshal.AsSpan(list264); - ref QuestSequence reference208 = ref span78[0]; + index = 3; + List list264 = new List(index); + CollectionsMarshal.SetCount(list264, index); + Span span264 = CollectionsMarshal.AsSpan(list264); + num = 0; + ref QuestSequence reference208 = ref span264[num]; QuestSequence obj199 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + Span span265 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span265[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj199.Steps = list265; reference208 = obj199; - ref QuestSequence reference209 = ref span78[1]; + num++; + ref QuestSequence reference209 = ref span264[num]; QuestSequence obj200 = new QuestSequence { Sequence = 1 @@ -241989,29 +293172,37 @@ public static class AssemblyQuestLoader num2 = 5; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span79 = CollectionsMarshal.AsSpan(list266); - ref QuestStep reference210 = ref span79[0]; + Span span266 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + ref QuestStep reference210 = ref span266[index2]; QuestStep obj201 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.48618f, 54.663364f, 605.60834f), 816) { Fly = true }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - Span span80 = CollectionsMarshal.AsSpan(list267); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list267 = new List(index3); + CollectionsMarshal.SetCount(list267, index3); + Span span267 = CollectionsMarshal.AsSpan(list267); + num3 = 0; + span267[num3] = null; + num3++; + span267[num3] = null; + num3++; + span267[num3] = null; + num3++; + span267[num3] = null; + num3++; + span267[num3] = null; + num3++; + span267[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list267; skipConditions2.StepIf = skipStepConditions2; obj201.SkipConditions = skipConditions2; reference210 = obj201; - ref QuestStep reference211 = ref span79[1]; + index2++; + ref QuestStep reference211 = ref span266[index2]; QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2010856u, new Vector3(-271.29016f, 52.96399f, 605.9204f), 816) { DisableNavmesh = true @@ -242019,76 +293210,106 @@ public static class AssemblyQuestLoader num3 = 6; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - Span span81 = CollectionsMarshal.AsSpan(list268); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span268 = CollectionsMarshal.AsSpan(list268); + index3 = 0; + span268[index3] = null; + index3++; + span268[index3] = null; + index3++; + span268[index3] = null; + index3++; + span268[index3] = null; + index3++; + span268[index3] = null; + index3++; + span268[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj202.CompletionQuestVariablesFlags = list268; reference211 = obj202; - ref QuestStep reference212 = ref span79[2]; + index2++; + ref QuestStep reference212 = ref span266[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2010858u, new Vector3(-250.62946f, 50.94983f, 597.7416f), 816); - num3 = 6; - List list269 = new List(num3); - CollectionsMarshal.SetCount(list269, num3); - Span span82 = CollectionsMarshal.AsSpan(list269); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list269 = new List(index3); + CollectionsMarshal.SetCount(list269, index3); + Span span269 = CollectionsMarshal.AsSpan(list269); + num3 = 0; + span269[num3] = null; + num3++; + span269[num3] = null; + num3++; + span269[num3] = null; + num3++; + span269[num3] = null; + num3++; + span269[num3] = null; + num3++; + span269[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list269; reference212 = questStep10; - ref QuestStep reference213 = ref span79[3]; + index2++; + ref QuestStep reference213 = ref span266[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-261.1694f, 50.977943f, 589.3572f), 816); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); num3 = 6; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - Span span83 = CollectionsMarshal.AsSpan(list270); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span270 = CollectionsMarshal.AsSpan(list270); + index3 = 0; + span270[index3] = null; + index3++; + span270[index3] = null; + index3++; + span270[index3] = null; + index3++; + span270[index3] = null; + index3++; + span270[index3] = null; + index3++; + span270[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list270; skipConditions3.StepIf = skipStepConditions3; questStep11.SkipConditions = skipConditions3; reference213 = questStep11; - ref QuestStep reference214 = ref span79[4]; + index2++; + ref QuestStep reference214 = ref span266[index2]; QuestStep obj203 = new QuestStep(EInteractionType.Interact, 2010857u, new Vector3(-261.1277f, 50.94983f, 585.2903f), 816) { StopDistance = 4.5f, DisableNavmesh = true }; - num3 = 6; - List list271 = new List(num3); - CollectionsMarshal.SetCount(list271, num3); - Span span84 = CollectionsMarshal.AsSpan(list271); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list271 = new List(index3); + CollectionsMarshal.SetCount(list271, index3); + Span span271 = CollectionsMarshal.AsSpan(list271); + num3 = 0; + span271[num3] = null; + num3++; + span271[num3] = null; + num3++; + span271[num3] = null; + num3++; + span271[num3] = null; + num3++; + span271[num3] = null; + num3++; + span271[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj203.CompletionQuestVariablesFlags = list271; reference214 = obj203; obj200.Steps = list266; reference209 = obj200; - ref QuestSequence reference215 = ref span78[2]; + num++; + ref QuestSequence reference215 = ref span264[num]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + Span span272 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span272[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -242101,13 +293322,16 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "liza"; + Span span273 = CollectionsMarshal.AsSpan(list273); + index = 0; + span273[index] = "liza"; questRoot29.Author = list273; - num = 3; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span85 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference216 = ref span85[0]; + index = 3; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + Span span274 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference216 = ref span274[num]; QuestSequence obj205 = new QuestSequence { Sequence = 0 @@ -242115,18 +293339,23 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + Span span275 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span275[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj205.Steps = list275; reference216 = obj205; - ref QuestSequence reference217 = ref span85[1]; + num++; + ref QuestSequence reference217 = ref span274[num]; QuestSequence obj206 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - ref QuestStep reference218 = ref CollectionsMarshal.AsSpan(list276)[0]; + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + Span span276 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + ref QuestStep reference218 = ref span276[num2]; QuestStep obj207 = new QuestStep(EInteractionType.Combat, 2010859u, new Vector3(-743.86206f, 78.96533f, 457.14502f), 816) { Fly = true, @@ -242135,12 +293364,15 @@ public static class AssemblyQuestLoader num3 = 1; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = 11443u; + Span span277 = CollectionsMarshal.AsSpan(list277); + index3 = 0; + span277[index3] = 11443u; obj207.KillEnemyDataIds = list277; reference218 = obj207; obj206.Steps = list276; reference217 = obj206; - ref QuestSequence reference219 = ref span85[2]; + num++; + ref QuestSequence reference219 = ref span274[num]; QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue @@ -242148,7 +293380,9 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + Span span278 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span278[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -242161,24 +293395,30 @@ public static class AssemblyQuestLoader num = 1; List list279 = new List(num); CollectionsMarshal.SetCount(list279, num); - CollectionsMarshal.AsSpan(list279)[0] = "liza"; + Span span279 = CollectionsMarshal.AsSpan(list279); + index = 0; + span279[index] = "liza"; questRoot30.Author = list279; - num = 3; - List list280 = new List(num); - CollectionsMarshal.SetCount(list280, num); - Span span86 = CollectionsMarshal.AsSpan(list280); - ref QuestSequence reference220 = ref span86[0]; + index = 3; + List list280 = new List(index); + CollectionsMarshal.SetCount(list280, index); + Span span280 = CollectionsMarshal.AsSpan(list280); + num = 0; + ref QuestSequence reference220 = ref span280[num]; QuestSequence obj209 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + Span span281 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span281[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj209.Steps = list281; reference220 = obj209; - ref QuestSequence reference221 = ref span86[1]; + num++; + ref QuestSequence reference221 = ref span280[num]; QuestSequence obj210 = new QuestSequence { Sequence = 1 @@ -242186,8 +293426,9 @@ public static class AssemblyQuestLoader num2 = 3; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span87 = CollectionsMarshal.AsSpan(list282); - ref QuestStep reference222 = ref span87[0]; + Span span282 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + ref QuestStep reference222 = ref span282[index2]; QuestStep obj211 = new QuestStep(EInteractionType.Say, 1032140u, new Vector3(-459.89166f, 42.65948f, -305.71454f), 816) { Fly = true, @@ -242196,24 +293437,33 @@ public static class AssemblyQuestLoader Key = "TEXT_BANPIX103_03691_SAYTODO_000_030" } }; - num3 = 6; - List> list283 = new List>(num3); - CollectionsMarshal.SetCount(list283, num3); - Span> span88 = CollectionsMarshal.AsSpan(list283); - span88[0] = null; - span88[1] = null; - span88[2] = null; - ref List reference223 = ref span88[3]; + index3 = 6; + List> list283 = new List>(index3); + CollectionsMarshal.SetCount(list283, index3); + Span> span283 = CollectionsMarshal.AsSpan(list283); + num3 = 0; + span283[num3] = null; + num3++; + span283[num3] = null; + num3++; + span283[num3] = null; + num3++; + ref List reference223 = ref span283[num3]; int num4 = 1; List list284 = new List(num4); CollectionsMarshal.SetCount(list284, num4); - CollectionsMarshal.AsSpan(list284)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + Span span284 = CollectionsMarshal.AsSpan(list284); + int index4 = 0; + span284[index4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference223 = list284; - span88[4] = null; - span88[5] = null; + num3++; + span283[num3] = null; + num3++; + span283[num3] = null; obj211.RequiredQuestVariables = list283; reference222 = obj211; - ref QuestStep reference224 = ref span87[1]; + index2++; + ref QuestStep reference224 = ref span282[index2]; QuestStep obj212 = new QuestStep(EInteractionType.Say, 1032141u, new Vector3(-473.47223f, 45.390854f, -311.6656f), 816) { Fly = true, @@ -242225,21 +293475,30 @@ public static class AssemblyQuestLoader num3 = 6; List> list285 = new List>(num3); CollectionsMarshal.SetCount(list285, num3); - Span> span89 = CollectionsMarshal.AsSpan(list285); - span89[0] = null; - span89[1] = null; - span89[2] = null; - ref List reference225 = ref span89[3]; - num4 = 1; - List list286 = new List(num4); - CollectionsMarshal.SetCount(list286, num4); - CollectionsMarshal.AsSpan(list286)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + Span> span285 = CollectionsMarshal.AsSpan(list285); + index3 = 0; + span285[index3] = null; + index3++; + span285[index3] = null; + index3++; + span285[index3] = null; + index3++; + ref List reference225 = ref span285[index3]; + index4 = 1; + List list286 = new List(index4); + CollectionsMarshal.SetCount(list286, index4); + Span span286 = CollectionsMarshal.AsSpan(list286); + num4 = 0; + span286[num4] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference225 = list286; - span89[4] = null; - span89[5] = null; + index3++; + span285[index3] = null; + index3++; + span285[index3] = null; obj212.RequiredQuestVariables = list285; reference224 = obj212; - ref QuestStep reference226 = ref span87[2]; + index2++; + ref QuestStep reference226 = ref span282[index2]; QuestStep obj213 = new QuestStep(EInteractionType.Say, 1032142u, new Vector3(-472.7398f, 50.10258f, -328.26733f), 816) { Fly = true, @@ -242248,34 +293507,45 @@ public static class AssemblyQuestLoader Key = "TEXT_BANPIX103_03691_SAYTODO_000_030" } }; - num3 = 6; - List> list287 = new List>(num3); - CollectionsMarshal.SetCount(list287, num3); - Span> span90 = CollectionsMarshal.AsSpan(list287); - span90[0] = null; - span90[1] = null; - span90[2] = null; - ref List reference227 = ref span90[3]; + index3 = 6; + List> list287 = new List>(index3); + CollectionsMarshal.SetCount(list287, index3); + Span> span287 = CollectionsMarshal.AsSpan(list287); + num3 = 0; + span287[num3] = null; + num3++; + span287[num3] = null; + num3++; + span287[num3] = null; + num3++; + ref List reference227 = ref span287[num3]; num4 = 1; List list288 = new List(num4); CollectionsMarshal.SetCount(list288, num4); - CollectionsMarshal.AsSpan(list288)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span span288 = CollectionsMarshal.AsSpan(list288); + index4 = 0; + span288[index4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference227 = list288; - span90[4] = null; - span90[5] = null; + num3++; + span287[num3] = null; + num3++; + span287[num3] = null; obj213.RequiredQuestVariables = list287; reference226 = obj213; obj210.Steps = list282; reference221 = obj210; - ref QuestSequence reference228 = ref span86[2]; + num++; + ref QuestSequence reference228 = ref span280[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + Span span289 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span289[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -242289,13 +293559,16 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - CollectionsMarshal.AsSpan(list290)[0] = "liza"; + Span span290 = CollectionsMarshal.AsSpan(list290); + index = 0; + span290[index] = "liza"; questRoot31.Author = list290; - num = 3; - List list291 = new List(num); - CollectionsMarshal.SetCount(list291, num); - Span span91 = CollectionsMarshal.AsSpan(list291); - ref QuestSequence reference229 = ref span91[0]; + index = 3; + List list291 = new List(index); + CollectionsMarshal.SetCount(list291, index); + Span span291 = CollectionsMarshal.AsSpan(list291); + num = 0; + ref QuestSequence reference229 = ref span291[num]; QuestSequence obj215 = new QuestSequence { Sequence = 0 @@ -242303,19 +293576,23 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + Span span292 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span292[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj215.Steps = list292; reference229 = obj215; - ref QuestSequence reference230 = ref span91[1]; + num++; + ref QuestSequence reference230 = ref span291[num]; QuestSequence obj216 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - Span span92 = CollectionsMarshal.AsSpan(list293); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-344.05838f, 45.450672f, 456.10266f), 816) + index2 = 5; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + Span span293 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span293[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-344.05838f, 45.450672f, 456.10266f), 816) { Fly = true, SkipConditions = new SkipConditions @@ -242326,51 +293603,72 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference231 = ref span92[1]; + num2++; + ref QuestStep reference231 = ref span293[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2010860u, new Vector3(-340.38306f, 38.77307f, 434.07336f), 816); num3 = 6; List> list294 = new List>(num3); CollectionsMarshal.SetCount(list294, num3); - Span> span93 = CollectionsMarshal.AsSpan(list294); - span93[0] = null; - ref List reference232 = ref span93[1]; - num4 = 3; - List list295 = new List(num4); - CollectionsMarshal.SetCount(list295, num4); - Span span94 = CollectionsMarshal.AsSpan(list295); - span94[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span94[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span94[2] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + Span> span294 = CollectionsMarshal.AsSpan(list294); + index3 = 0; + span294[index3] = null; + index3++; + ref List reference232 = ref span294[index3]; + index4 = 3; + List list295 = new List(index4); + CollectionsMarshal.SetCount(list295, index4); + Span span295 = CollectionsMarshal.AsSpan(list295); + num4 = 0; + span295[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span295[num4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num4++; + span295[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference232 = list295; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = null; + index3++; + span294[index3] = null; + index3++; + span294[index3] = null; + index3++; + span294[index3] = null; + index3++; + span294[index3] = null; questStep12.RequiredQuestVariables = list294; reference231 = questStep12; - ref QuestStep reference233 = ref span92[2]; + num2++; + ref QuestStep reference233 = ref span293[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2010861u, new Vector3(-332.44836f, 44.47998f, 462.15002f), 816); - num3 = 6; - List> list296 = new List>(num3); - CollectionsMarshal.SetCount(list296, num3); - Span> span95 = CollectionsMarshal.AsSpan(list296); - span95[0] = null; - ref List reference234 = ref span95[1]; + index3 = 6; + List> list296 = new List>(index3); + CollectionsMarshal.SetCount(list296, index3); + Span> span296 = CollectionsMarshal.AsSpan(list296); + num3 = 0; + span296[num3] = null; + num3++; + ref List reference234 = ref span296[num3]; num4 = 3; List list297 = new List(num4); CollectionsMarshal.SetCount(list297, num4); - Span span96 = CollectionsMarshal.AsSpan(list297); - span96[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); - span96[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span96[2] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + Span span297 = CollectionsMarshal.AsSpan(list297); + index4 = 0; + span297[index4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index4++; + span297[index4] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + index4++; + span297[index4] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); reference234 = list297; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = null; + num3++; + span296[num3] = null; + num3++; + span296[num3] = null; + num3++; + span296[num3] = null; + num3++; + span296[num3] = null; questStep13.RequiredQuestVariables = list296; reference233 = questStep13; - ref QuestStep reference235 = ref span92[3]; + num2++; + ref QuestStep reference235 = ref span293[num2]; QuestStep obj217 = new QuestStep(EInteractionType.Interact, 2010863u, new Vector3(-293.08008f, 42.70996f, 463.61487f), 816) { IgnoreDistanceToObject = true @@ -242378,51 +293676,71 @@ public static class AssemblyQuestLoader num3 = 6; List> list298 = new List>(num3); CollectionsMarshal.SetCount(list298, num3); - Span> span97 = CollectionsMarshal.AsSpan(list298); - span97[0] = null; - ref List reference236 = ref span97[1]; - num4 = 3; - List list299 = new List(num4); - CollectionsMarshal.SetCount(list299, num4); - Span span98 = CollectionsMarshal.AsSpan(list299); - span98[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span98[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); - span98[2] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + Span> span298 = CollectionsMarshal.AsSpan(list298); + index3 = 0; + span298[index3] = null; + index3++; + ref List reference236 = ref span298[index3]; + index4 = 3; + List list299 = new List(index4); + CollectionsMarshal.SetCount(list299, index4); + Span span299 = CollectionsMarshal.AsSpan(list299); + num4 = 0; + span299[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span299[num4] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + num4++; + span299[num4] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); reference236 = list299; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = null; + index3++; + span298[index3] = null; + index3++; + span298[index3] = null; + index3++; + span298[index3] = null; + index3++; + span298[index3] = null; obj217.RequiredQuestVariables = list298; reference235 = obj217; - ref QuestStep reference237 = ref span92[4]; + num2++; + ref QuestStep reference237 = ref span293[num2]; QuestStep obj218 = new QuestStep(EInteractionType.Interact, 2010862u, new Vector3(-276.96655f, 42.893066f, 453.6659f), 816) { IgnoreDistanceToObject = true }; - num3 = 6; - List> list300 = new List>(num3); - CollectionsMarshal.SetCount(list300, num3); - Span> span99 = CollectionsMarshal.AsSpan(list300); - span99[0] = null; - ref List reference238 = ref span99[1]; + index3 = 6; + List> list300 = new List>(index3); + CollectionsMarshal.SetCount(list300, index3); + Span> span300 = CollectionsMarshal.AsSpan(list300); + num3 = 0; + span300[num3] = null; + num3++; + ref List reference238 = ref span300[num3]; num4 = 3; List list301 = new List(num4); CollectionsMarshal.SetCount(list301, num4); - Span span100 = CollectionsMarshal.AsSpan(list301); - span100[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span100[1] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); - span100[2] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); + Span span301 = CollectionsMarshal.AsSpan(list301); + index4 = 0; + span301[index4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index4++; + span301[index4] = new QuestWorkValue(null, (byte)5, EQuestWorkMode.Bitwise); + index4++; + span301[index4] = new QuestWorkValue(null, (byte)6, EQuestWorkMode.Bitwise); reference238 = list301; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = null; + num3++; + span300[num3] = null; + num3++; + span300[num3] = null; + num3++; + span300[num3] = null; + num3++; + span300[num3] = null; obj218.RequiredQuestVariables = list300; reference237 = obj218; obj216.Steps = list293; reference230 = obj216; - ref QuestSequence reference239 = ref span91[2]; + num++; + ref QuestSequence reference239 = ref span291[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue @@ -242430,7 +293748,9 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + Span span302 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span302[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -242443,24 +293763,30 @@ public static class AssemblyQuestLoader num = 1; List list303 = new List(num); CollectionsMarshal.SetCount(list303, num); - CollectionsMarshal.AsSpan(list303)[0] = "liza"; + Span span303 = CollectionsMarshal.AsSpan(list303); + index = 0; + span303[index] = "liza"; questRoot32.Author = list303; - num = 3; - List list304 = new List(num); - CollectionsMarshal.SetCount(list304, num); - Span span101 = CollectionsMarshal.AsSpan(list304); - ref QuestSequence reference240 = ref span101[0]; + index = 3; + List list304 = new List(index); + CollectionsMarshal.SetCount(list304, index); + Span span304 = CollectionsMarshal.AsSpan(list304); + num = 0; + ref QuestSequence reference240 = ref span304[num]; QuestSequence obj220 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + Span span305 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span305[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj220.Steps = list305; reference240 = obj220; - ref QuestSequence reference241 = ref span101[1]; + num++; + ref QuestSequence reference241 = ref span304[num]; QuestSequence obj221 = new QuestSequence { Sequence = 1 @@ -242468,7 +293794,9 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - ref QuestStep reference242 = ref CollectionsMarshal.AsSpan(list306)[0]; + Span span306 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + ref QuestStep reference242 = ref span306[index2]; QuestStep obj222 = new QuestStep(EInteractionType.Combat, 2010864u, new Vector3(3.8909912f, 13.90094f, 637.23206f), 816) { Fly = true, @@ -242477,20 +293805,25 @@ public static class AssemblyQuestLoader num3 = 1; List list307 = new List(num3); CollectionsMarshal.SetCount(list307, num3); - CollectionsMarshal.AsSpan(list307)[0] = 11444u; + Span span307 = CollectionsMarshal.AsSpan(list307); + index3 = 0; + span307[index3] = 11444u; obj222.KillEnemyDataIds = list307; reference242 = obj222; obj221.Steps = list306; reference241 = obj221; - ref QuestSequence reference243 = ref span101[2]; + num++; + ref QuestSequence reference243 = ref span304[num]; QuestSequence obj223 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + Span span308 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span308[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -242503,13 +293836,16 @@ public static class AssemblyQuestLoader num = 1; List list309 = new List(num); CollectionsMarshal.SetCount(list309, num); - CollectionsMarshal.AsSpan(list309)[0] = "liza"; + Span span309 = CollectionsMarshal.AsSpan(list309); + index = 0; + span309[index] = "liza"; questRoot33.Author = list309; - num = 3; - List list310 = new List(num); - CollectionsMarshal.SetCount(list310, num); - Span span102 = CollectionsMarshal.AsSpan(list310); - ref QuestSequence reference244 = ref span102[0]; + index = 3; + List list310 = new List(index); + CollectionsMarshal.SetCount(list310, index); + Span span310 = CollectionsMarshal.AsSpan(list310); + num = 0; + ref QuestSequence reference244 = ref span310[num]; QuestSequence obj224 = new QuestSequence { Sequence = 0 @@ -242517,50 +293853,65 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + Span span311 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + span311[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj224.Steps = list311; reference244 = obj224; - ref QuestSequence reference245 = ref span102[1]; + num++; + ref QuestSequence reference245 = ref span310[num]; QuestSequence obj225 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - Span span103 = CollectionsMarshal.AsSpan(list312); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-338.70084f, 9.922639f, -181.90271f), 816) + index2 = 5; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + Span span312 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span312[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-338.70084f, 9.922639f, -181.90271f), 816) { Fly = true }; - span103[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-332.49713f, -44.52391f, -242.4296f), 816) + num2++; + span312[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-332.49713f, -44.52391f, -242.4296f), 816) { DisableNavmesh = true, Fly = true }; - ref QuestStep reference246 = ref span103[2]; + num2++; + ref QuestStep reference246 = ref span312[num2]; QuestStep obj226 = new QuestStep(EInteractionType.Interact, 2010865u, new Vector3(-335.59174f, -53.75763f, -277.9126f), 816) { Fly = true }; - num3 = 6; - List> list313 = new List>(num3); - CollectionsMarshal.SetCount(list313, num3); - Span> span104 = CollectionsMarshal.AsSpan(list313); - span104[0] = null; - span104[1] = null; - span104[2] = null; - ref List reference247 = ref span104[3]; - num4 = 1; - List list314 = new List(num4); - CollectionsMarshal.SetCount(list314, num4); - CollectionsMarshal.AsSpan(list314)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index3 = 6; + List> list313 = new List>(index3); + CollectionsMarshal.SetCount(list313, index3); + Span> span313 = CollectionsMarshal.AsSpan(list313); + num3 = 0; + span313[num3] = null; + num3++; + span313[num3] = null; + num3++; + span313[num3] = null; + num3++; + ref List reference247 = ref span313[num3]; + index4 = 1; + List list314 = new List(index4); + CollectionsMarshal.SetCount(list314, index4); + Span span314 = CollectionsMarshal.AsSpan(list314); + num4 = 0; + span314[num4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference247 = list314; - span104[4] = null; - span104[5] = null; + num3++; + span313[num3] = null; + num3++; + span313[num3] = null; obj226.RequiredQuestVariables = list313; reference246 = obj226; - ref QuestStep reference248 = ref span103[3]; + num2++; + ref QuestStep reference248 = ref span312[num2]; QuestStep obj227 = new QuestStep(EInteractionType.Interact, 2010866u, new Vector3(-335.59174f, -54.154297f, -293.41577f), 816) { Fly = true @@ -242568,45 +293919,63 @@ public static class AssemblyQuestLoader num3 = 6; List> list315 = new List>(num3); CollectionsMarshal.SetCount(list315, num3); - Span> span105 = CollectionsMarshal.AsSpan(list315); - span105[0] = null; - span105[1] = null; - span105[2] = null; - ref List reference249 = ref span105[3]; + Span> span315 = CollectionsMarshal.AsSpan(list315); + index3 = 0; + span315[index3] = null; + index3++; + span315[index3] = null; + index3++; + span315[index3] = null; + index3++; + ref List reference249 = ref span315[index3]; num4 = 1; List list316 = new List(num4); CollectionsMarshal.SetCount(list316, num4); - CollectionsMarshal.AsSpan(list316)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span span316 = CollectionsMarshal.AsSpan(list316); + index4 = 0; + span316[index4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference249 = list316; - span105[4] = null; - span105[5] = null; + index3++; + span315[index3] = null; + index3++; + span315[index3] = null; obj227.RequiredQuestVariables = list315; reference248 = obj227; - ref QuestStep reference250 = ref span103[4]; + num2++; + ref QuestStep reference250 = ref span312[num2]; QuestStep obj228 = new QuestStep(EInteractionType.Interact, 2010867u, new Vector3(-351.64417f, -53.635498f, -295.73517f), 816) { Fly = true }; - num3 = 6; - List> list317 = new List>(num3); - CollectionsMarshal.SetCount(list317, num3); - Span> span106 = CollectionsMarshal.AsSpan(list317); - span106[0] = null; - span106[1] = null; - span106[2] = null; - ref List reference251 = ref span106[3]; - num4 = 1; - List list318 = new List(num4); - CollectionsMarshal.SetCount(list318, num4); - CollectionsMarshal.AsSpan(list318)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + index3 = 6; + List> list317 = new List>(index3); + CollectionsMarshal.SetCount(list317, index3); + Span> span317 = CollectionsMarshal.AsSpan(list317); + num3 = 0; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + ref List reference251 = ref span317[num3]; + index4 = 1; + List list318 = new List(index4); + CollectionsMarshal.SetCount(list318, index4); + Span span318 = CollectionsMarshal.AsSpan(list318); + num4 = 0; + span318[num4] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference251 = list318; - span106[4] = null; - span106[5] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = null; obj228.RequiredQuestVariables = list317; reference250 = obj228; obj225.Steps = list312; reference245 = obj225; - ref QuestSequence reference252 = ref span102[2]; + num++; + ref QuestSequence reference252 = ref span310[num]; QuestSequence obj229 = new QuestSequence { Sequence = byte.MaxValue @@ -242614,7 +293983,9 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + Span span319 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + span319[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -242628,24 +293999,30 @@ public static class AssemblyQuestLoader num = 1; List list320 = new List(num); CollectionsMarshal.SetCount(list320, num); - CollectionsMarshal.AsSpan(list320)[0] = "liza"; + Span span320 = CollectionsMarshal.AsSpan(list320); + index = 0; + span320[index] = "liza"; questRoot34.Author = list320; - num = 3; - List list321 = new List(num); - CollectionsMarshal.SetCount(list321, num); - Span span107 = CollectionsMarshal.AsSpan(list321); - ref QuestSequence reference253 = ref span107[0]; + index = 3; + List list321 = new List(index); + CollectionsMarshal.SetCount(list321, index); + Span span321 = CollectionsMarshal.AsSpan(list321); + num = 0; + ref QuestSequence reference253 = ref span321[num]; QuestSequence obj230 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + Span span322 = CollectionsMarshal.AsSpan(list322); + num2 = 0; + span322[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj230.Steps = list322; reference253 = obj230; - ref QuestSequence reference254 = ref span107[1]; + num++; + ref QuestSequence reference254 = ref span321[num]; QuestSequence obj231 = new QuestSequence { Sequence = 1 @@ -242653,7 +294030,9 @@ public static class AssemblyQuestLoader num2 = 1; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - ref QuestStep reference255 = ref CollectionsMarshal.AsSpan(list323)[0]; + Span span323 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + ref QuestStep reference255 = ref span323[index2]; QuestStep obj232 = new QuestStep(EInteractionType.Combat, 2010868u, new Vector3(-504.32596f, 77.22583f, -410.11676f), 816) { Fly = true, @@ -242662,20 +294041,25 @@ public static class AssemblyQuestLoader num3 = 1; List list324 = new List(num3); CollectionsMarshal.SetCount(list324, num3); - CollectionsMarshal.AsSpan(list324)[0] = 11445u; + Span span324 = CollectionsMarshal.AsSpan(list324); + index3 = 0; + span324[index3] = 11445u; obj232.KillEnemyDataIds = list324; reference255 = obj232; obj231.Steps = list323; reference254 = obj231; - ref QuestSequence reference256 = ref span107[2]; + num++; + ref QuestSequence reference256 = ref span321[num]; QuestSequence obj233 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list325 = new List(index2); + CollectionsMarshal.SetCount(list325, index2); + Span span325 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + span325[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -242689,13 +294073,16 @@ public static class AssemblyQuestLoader num = 1; List list326 = new List(num); CollectionsMarshal.SetCount(list326, num); - CollectionsMarshal.AsSpan(list326)[0] = "liza"; + Span span326 = CollectionsMarshal.AsSpan(list326); + index = 0; + span326[index] = "liza"; questRoot35.Author = list326; - num = 3; - List list327 = new List(num); - CollectionsMarshal.SetCount(list327, num); - Span span108 = CollectionsMarshal.AsSpan(list327); - ref QuestSequence reference257 = ref span108[0]; + index = 3; + List list327 = new List(index); + CollectionsMarshal.SetCount(list327, index); + Span span327 = CollectionsMarshal.AsSpan(list327); + num = 0; + ref QuestSequence reference257 = ref span327[num]; QuestSequence obj234 = new QuestSequence { Sequence = 0 @@ -242703,36 +294090,47 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + Span span328 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + span328[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj234.Steps = list328; reference257 = obj234; - ref QuestSequence reference258 = ref span108[1]; + num++; + ref QuestSequence reference258 = ref span327[num]; QuestSequence obj235 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - Span span109 = CollectionsMarshal.AsSpan(list329); - ref QuestStep reference259 = ref span109[0]; + index2 = 2; + List list329 = new List(index2); + CollectionsMarshal.SetCount(list329, index2); + Span span329 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + ref QuestStep reference259 = ref span329[num2]; QuestStep obj236 = new QuestStep(EInteractionType.Interact, 2010888u, new Vector3(-171.58777f, 5.2338257f, -252.88782f), 816) { Fly = true }; - num3 = 6; - List list330 = new List(num3); - CollectionsMarshal.SetCount(list330, num3); - Span span110 = CollectionsMarshal.AsSpan(list330); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list330 = new List(index3); + CollectionsMarshal.SetCount(list330, index3); + Span span330 = CollectionsMarshal.AsSpan(list330); + num3 = 0; + span330[num3] = null; + num3++; + span330[num3] = null; + num3++; + span330[num3] = null; + num3++; + span330[num3] = null; + num3++; + span330[num3] = null; + num3++; + span330[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj236.CompletionQuestVariablesFlags = list330; reference259 = obj236; - ref QuestStep reference260 = ref span109[1]; + num2++; + ref QuestStep reference260 = ref span329[num2]; QuestStep obj237 = new QuestStep(EInteractionType.Interact, 2010889u, new Vector3(-170.1839f, 4.9591064f, -283.0396f), 816) { Fly = true @@ -242740,18 +294138,25 @@ public static class AssemblyQuestLoader num3 = 6; List list331 = new List(num3); CollectionsMarshal.SetCount(list331, num3); - Span span111 = CollectionsMarshal.AsSpan(list331); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span331 = CollectionsMarshal.AsSpan(list331); + index3 = 0; + span331[index3] = null; + index3++; + span331[index3] = null; + index3++; + span331[index3] = null; + index3++; + span331[index3] = null; + index3++; + span331[index3] = null; + index3++; + span331[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj237.CompletionQuestVariablesFlags = list331; reference260 = obj237; obj235.Steps = list329; reference258 = obj235; - ref QuestSequence reference261 = ref span108[2]; + num++; + ref QuestSequence reference261 = ref span327[num]; QuestSequence obj238 = new QuestSequence { Sequence = byte.MaxValue @@ -242759,7 +294164,9 @@ public static class AssemblyQuestLoader num2 = 1; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + Span span332 = CollectionsMarshal.AsSpan(list332); + index2 = 0; + span332[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -242773,24 +294180,30 @@ public static class AssemblyQuestLoader num = 1; List list333 = new List(num); CollectionsMarshal.SetCount(list333, num); - CollectionsMarshal.AsSpan(list333)[0] = "liza"; + Span span333 = CollectionsMarshal.AsSpan(list333); + index = 0; + span333[index] = "liza"; questRoot36.Author = list333; - num = 3; - List list334 = new List(num); - CollectionsMarshal.SetCount(list334, num); - Span span112 = CollectionsMarshal.AsSpan(list334); - ref QuestSequence reference262 = ref span112[0]; + index = 3; + List list334 = new List(index); + CollectionsMarshal.SetCount(list334, index); + Span span334 = CollectionsMarshal.AsSpan(list334); + num = 0; + ref QuestSequence reference262 = ref span334[num]; QuestSequence obj239 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + Span span335 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + span335[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj239.Steps = list335; reference262 = obj239; - ref QuestSequence reference263 = ref span112[1]; + num++; + ref QuestSequence reference263 = ref span334[num]; QuestSequence obj240 = new QuestSequence { Sequence = 1 @@ -242798,30 +294211,37 @@ public static class AssemblyQuestLoader num2 = 1; List list336 = new List(num2); CollectionsMarshal.SetCount(list336, num2); - ref QuestStep reference264 = ref CollectionsMarshal.AsSpan(list336)[0]; + Span span336 = CollectionsMarshal.AsSpan(list336); + index2 = 0; + ref QuestStep reference264 = ref span336[index2]; QuestStep obj241 = new QuestStep(EInteractionType.Combat, 2010890u, new Vector3(10.0251465f, 32.944214f, -608.6061f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list337 = new List(num3); - CollectionsMarshal.SetCount(list337, num3); - CollectionsMarshal.AsSpan(list337)[0] = 11446u; + index3 = 1; + List list337 = new List(index3); + CollectionsMarshal.SetCount(list337, index3); + Span span337 = CollectionsMarshal.AsSpan(list337); + num3 = 0; + span337[num3] = 11446u; obj241.KillEnemyDataIds = list337; reference264 = obj241; obj240.Steps = list336; reference263 = obj240; - ref QuestSequence reference265 = ref span112[2]; + num++; + ref QuestSequence reference265 = ref span334[num]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + Span span338 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span338[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -242835,13 +294255,16 @@ public static class AssemblyQuestLoader num = 1; List list339 = new List(num); CollectionsMarshal.SetCount(list339, num); - CollectionsMarshal.AsSpan(list339)[0] = "liza"; + Span span339 = CollectionsMarshal.AsSpan(list339); + index = 0; + span339[index] = "liza"; questRoot37.Author = list339; - num = 4; - List list340 = new List(num); - CollectionsMarshal.SetCount(list340, num); - Span span113 = CollectionsMarshal.AsSpan(list340); - ref QuestSequence reference266 = ref span113[0]; + index = 4; + List list340 = new List(index); + CollectionsMarshal.SetCount(list340, index); + Span span340 = CollectionsMarshal.AsSpan(list340); + num = 0; + ref QuestSequence reference266 = ref span340[num]; QuestSequence obj243 = new QuestSequence { Sequence = 0 @@ -242849,21 +294272,27 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + Span span341 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span341[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj243.Steps = list341; reference266 = obj243; - ref QuestSequence reference267 = ref span113[1]; + num++; + ref QuestSequence reference267 = ref span340[num]; QuestSequence obj244 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 1031811u, new Vector3(-442.46588f, 70.686165f, 573.69336f), 816); + index2 = 1; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + Span span342 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span342[num2] = new QuestStep(EInteractionType.Interact, 1031811u, new Vector3(-442.46588f, 70.686165f, 573.69336f), 816); obj244.Steps = list342; reference267 = obj244; - ref QuestSequence reference268 = ref span113[2]; + num++; + ref QuestSequence reference268 = ref span340[num]; QuestSequence obj245 = new QuestSequence { Sequence = 2 @@ -242871,8 +294300,9 @@ public static class AssemblyQuestLoader num2 = 3; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - Span span114 = CollectionsMarshal.AsSpan(list343); - ref QuestStep reference269 = ref span114[0]; + Span span343 = CollectionsMarshal.AsSpan(list343); + index2 = 0; + ref QuestStep reference269 = ref span343[index2]; QuestStep obj246 = new QuestStep(EInteractionType.Action, 2010891u, new Vector3(-852.0485f, 37.67456f, 298.11548f), 816) { Fly = true, @@ -242881,48 +294311,66 @@ public static class AssemblyQuestLoader num3 = 6; List> list344 = new List>(num3); CollectionsMarshal.SetCount(list344, num3); - Span> span115 = CollectionsMarshal.AsSpan(list344); - span115[0] = null; - span115[1] = null; - ref List reference270 = ref span115[2]; + Span> span344 = CollectionsMarshal.AsSpan(list344); + index3 = 0; + span344[index3] = null; + index3++; + span344[index3] = null; + index3++; + ref List reference270 = ref span344[index3]; num4 = 2; List list345 = new List(num4); CollectionsMarshal.SetCount(list345, num4); - Span span116 = CollectionsMarshal.AsSpan(list345); - span116[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span116[1] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + Span span345 = CollectionsMarshal.AsSpan(list345); + index4 = 0; + span345[index4] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + index4++; + span345[index4] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference270 = list345; - span115[3] = null; - span115[4] = null; - span115[5] = null; + index3++; + span344[index3] = null; + index3++; + span344[index3] = null; + index3++; + span344[index3] = null; obj246.RequiredQuestVariables = list344; reference269 = obj246; - ref QuestStep reference271 = ref span114[1]; + index2++; + ref QuestStep reference271 = ref span343[index2]; QuestStep obj247 = new QuestStep(EInteractionType.Action, 2010892u, new Vector3(-774.44116f, 54.520386f, 102.61682f), 816) { Fly = true, Action = EAction.SiphonSnout }; - num3 = 6; - List> list346 = new List>(num3); - CollectionsMarshal.SetCount(list346, num3); - Span> span117 = CollectionsMarshal.AsSpan(list346); - span117[0] = null; - span117[1] = null; - ref List reference272 = ref span117[2]; - num4 = 2; - List list347 = new List(num4); - CollectionsMarshal.SetCount(list347, num4); - Span span118 = CollectionsMarshal.AsSpan(list347); - span118[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span118[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3 = 6; + List> list346 = new List>(index3); + CollectionsMarshal.SetCount(list346, index3); + Span> span346 = CollectionsMarshal.AsSpan(list346); + num3 = 0; + span346[num3] = null; + num3++; + span346[num3] = null; + num3++; + ref List reference272 = ref span346[num3]; + index4 = 2; + List list347 = new List(index4); + CollectionsMarshal.SetCount(list347, index4); + Span span347 = CollectionsMarshal.AsSpan(list347); + num4 = 0; + span347[num4] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num4++; + span347[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference272 = list347; - span117[3] = null; - span117[4] = null; - span117[5] = null; + num3++; + span346[num3] = null; + num3++; + span346[num3] = null; + num3++; + span346[num3] = null; obj247.RequiredQuestVariables = list346; reference271 = obj247; - ref QuestStep reference273 = ref span114[2]; + index2++; + ref QuestStep reference273 = ref span343[index2]; QuestStep obj248 = new QuestStep(EInteractionType.Action, 2010893u, new Vector3(-802.30414f, 27.115234f, -108.44586f), 816) { Fly = true, @@ -242931,40 +294379,51 @@ public static class AssemblyQuestLoader num3 = 6; List> list348 = new List>(num3); CollectionsMarshal.SetCount(list348, num3); - Span> span119 = CollectionsMarshal.AsSpan(list348); - span119[0] = null; - span119[1] = null; - ref List reference274 = ref span119[2]; + Span> span348 = CollectionsMarshal.AsSpan(list348); + index3 = 0; + span348[index3] = null; + index3++; + span348[index3] = null; + index3++; + ref List reference274 = ref span348[index3]; num4 = 2; List list349 = new List(num4); CollectionsMarshal.SetCount(list349, num4); - Span span120 = CollectionsMarshal.AsSpan(list349); - span120[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - span120[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + Span span349 = CollectionsMarshal.AsSpan(list349); + index4 = 0; + span349[index4] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + index4++; + span349[index4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference274 = list349; - span119[3] = null; - span119[4] = null; - span119[5] = null; + index3++; + span348[index3] = null; + index3++; + span348[index3] = null; + index3++; + span348[index3] = null; obj248.RequiredQuestVariables = list348; reference273 = obj248; obj245.Steps = list343; reference268 = obj245; - ref QuestSequence reference275 = ref span113[3]; + num++; + ref QuestSequence reference275 = ref span340[num]; QuestSequence obj249 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - Span span121 = CollectionsMarshal.AsSpan(list350); - span121[0] = new QuestStep(EInteractionType.WalkTo, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 2; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + Span span350 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span350[num2] = new QuestStep(EInteractionType.WalkTo, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { StopDistance = 3f, Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - span121[1] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + num2++; + span350[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Mount = false }; @@ -242977,13 +294436,16 @@ public static class AssemblyQuestLoader num = 1; List list351 = new List(num); CollectionsMarshal.SetCount(list351, num); - CollectionsMarshal.AsSpan(list351)[0] = "liza"; + Span span351 = CollectionsMarshal.AsSpan(list351); + index = 0; + span351[index] = "liza"; questRoot38.Author = list351; - num = 3; - List list352 = new List(num); - CollectionsMarshal.SetCount(list352, num); - Span span122 = CollectionsMarshal.AsSpan(list352); - ref QuestSequence reference276 = ref span122[0]; + index = 3; + List list352 = new List(index); + CollectionsMarshal.SetCount(list352, index); + Span span352 = CollectionsMarshal.AsSpan(list352); + num = 0; + ref QuestSequence reference276 = ref span352[num]; QuestSequence obj250 = new QuestSequence { Sequence = 0 @@ -242991,42 +294453,55 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + Span span353 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span353[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj250.Steps = list353; reference276 = obj250; - ref QuestSequence reference277 = ref span122[1]; + num++; + ref QuestSequence reference277 = ref span352[num]; QuestSequence obj251 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - Span span123 = CollectionsMarshal.AsSpan(list354); - ref QuestStep reference278 = ref span123[0]; + index2 = 3; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + Span span354 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + ref QuestStep reference278 = ref span354[num2]; QuestStep obj252 = new QuestStep(EInteractionType.Interact, 1032183u, new Vector3(-105.60773f, 110.29838f, -196.97876f), 816) { StopDistance = 1f, Fly = true }; - num3 = 6; - List> list355 = new List>(num3); - CollectionsMarshal.SetCount(list355, num3); - Span> span124 = CollectionsMarshal.AsSpan(list355); - span124[0] = null; - span124[1] = null; - ref List reference279 = ref span124[2]; - num4 = 1; - List list356 = new List(num4); - CollectionsMarshal.SetCount(list356, num4); - CollectionsMarshal.AsSpan(list356)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list355 = new List>(index3); + CollectionsMarshal.SetCount(list355, index3); + Span> span355 = CollectionsMarshal.AsSpan(list355); + num3 = 0; + span355[num3] = null; + num3++; + span355[num3] = null; + num3++; + ref List reference279 = ref span355[num3]; + index4 = 1; + List list356 = new List(index4); + CollectionsMarshal.SetCount(list356, index4); + Span span356 = CollectionsMarshal.AsSpan(list356); + num4 = 0; + span356[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference279 = list356; - span124[3] = null; - span124[4] = null; - span124[5] = null; + num3++; + span355[num3] = null; + num3++; + span355[num3] = null; + num3++; + span355[num3] = null; obj252.RequiredQuestVariables = list355; reference278 = obj252; - ref QuestStep reference280 = ref span123[1]; + num2++; + ref QuestStep reference280 = ref span354[num2]; QuestStep obj253 = new QuestStep(EInteractionType.Interact, 1032185u, new Vector3(-185.29034f, 154.79187f, -262.89777f), 816) { Fly = true @@ -243034,45 +294509,63 @@ public static class AssemblyQuestLoader num3 = 6; List> list357 = new List>(num3); CollectionsMarshal.SetCount(list357, num3); - Span> span125 = CollectionsMarshal.AsSpan(list357); - span125[0] = null; - span125[1] = null; - ref List reference281 = ref span125[2]; + Span> span357 = CollectionsMarshal.AsSpan(list357); + index3 = 0; + span357[index3] = null; + index3++; + span357[index3] = null; + index3++; + ref List reference281 = ref span357[index3]; num4 = 1; List list358 = new List(num4); CollectionsMarshal.SetCount(list358, num4); - CollectionsMarshal.AsSpan(list358)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span358 = CollectionsMarshal.AsSpan(list358); + index4 = 0; + span358[index4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference281 = list358; - span125[3] = null; - span125[4] = null; - span125[5] = null; + index3++; + span357[index3] = null; + index3++; + span357[index3] = null; + index3++; + span357[index3] = null; obj253.RequiredQuestVariables = list357; reference280 = obj253; - ref QuestStep reference282 = ref span123[2]; + num2++; + ref QuestStep reference282 = ref span354[num2]; QuestStep obj254 = new QuestStep(EInteractionType.Interact, 1032184u, new Vector3(-226.27612f, 114.61068f, -305.6535f), 816) { Fly = true }; - num3 = 6; - List> list359 = new List>(num3); - CollectionsMarshal.SetCount(list359, num3); - Span> span126 = CollectionsMarshal.AsSpan(list359); - span126[0] = null; - span126[1] = null; - ref List reference283 = ref span126[2]; - num4 = 1; - List list360 = new List(num4); - CollectionsMarshal.SetCount(list360, num4); - CollectionsMarshal.AsSpan(list360)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list359 = new List>(index3); + CollectionsMarshal.SetCount(list359, index3); + Span> span359 = CollectionsMarshal.AsSpan(list359); + num3 = 0; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + ref List reference283 = ref span359[num3]; + index4 = 1; + List list360 = new List(index4); + CollectionsMarshal.SetCount(list360, index4); + Span span360 = CollectionsMarshal.AsSpan(list360); + num4 = 0; + span360[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference283 = list360; - span126[3] = null; - span126[4] = null; - span126[5] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = null; obj254.RequiredQuestVariables = list359; reference282 = obj254; obj251.Steps = list354; reference277 = obj251; - ref QuestSequence reference284 = ref span122[2]; + num++; + ref QuestSequence reference284 = ref span352[num]; QuestSequence obj255 = new QuestSequence { Sequence = byte.MaxValue @@ -243080,7 +294573,9 @@ public static class AssemblyQuestLoader num2 = 1; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + Span span361 = CollectionsMarshal.AsSpan(list361); + index2 = 0; + span361[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -243098,13 +294593,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -243112,18 +294610,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, 2010894u, new Vector3(268.51294f, 33.707153f, -78.14148f), 816) { Fly = true, @@ -243132,12 +294635,15 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 11448u; + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = 11448u; obj3.KillEnemyDataIds = list5; reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -243145,7 +294651,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -243159,24 +294667,30 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + Span span7 = CollectionsMarshal.AsSpan(list7); + index = 0; + span7[index] = "liza"; questRoot2.Author = list7; - num = 5; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span2[0]; + index = 5; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span8[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[1]; + num++; + ref QuestSequence reference6 = ref span8[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -243184,46 +294698,59 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1032261u, new Vector3(-258.38104f, 50.977943f, 601.2206f), 816) + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.Interact, 1032261u, new Vector3(-258.38104f, 50.977943f, 601.2206f), 816) { Fly = true }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[2]; + num++; + ref QuestSequence reference7 = ref span8[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - Span span3 = CollectionsMarshal.AsSpan(list11); - ref QuestStep reference8 = ref span3[0]; + index2 = 3; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference8 = ref span11[num2]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 2010895u, new Vector3(718.28796f, 188.06738f, 296.77258f), 816) { Fly = true }; - num3 = 6; - List> list12 = new List>(num3); - CollectionsMarshal.SetCount(list12, num3); - Span> span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = null; - ref List reference9 = ref span4[1]; + index3 = 6; + List> list12 = new List>(index3); + CollectionsMarshal.SetCount(list12, index3); + Span> span12 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span12[num3] = null; + num3++; + ref List reference9 = ref span12[num3]; int num4 = 2; List list13 = new List(num4); CollectionsMarshal.SetCount(list13, num4); - Span span5 = CollectionsMarshal.AsSpan(list13); - span5[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span5[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + Span span13 = CollectionsMarshal.AsSpan(list13); + int num5 = 0; + span13[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num5++; + span13[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference9 = list13; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = null; + num3++; + span12[num3] = null; + num3++; + span12[num3] = null; + num3++; + span12[num3] = null; + num3++; + span12[num3] = null; obj8.RequiredQuestVariables = list12; reference8 = obj8; - ref QuestStep reference10 = ref span3[1]; + num2++; + ref QuestStep reference10 = ref span11[num2]; QuestStep obj9 = new QuestStep(EInteractionType.Interact, 2010896u, new Vector3(743.5569f, 189.83752f, 260.4867f), 816) { Fly = true @@ -243231,49 +294758,67 @@ public static class AssemblyQuestLoader num3 = 6; List> list14 = new List>(num3); CollectionsMarshal.SetCount(list14, num3); - Span> span6 = CollectionsMarshal.AsSpan(list14); - span6[0] = null; - ref List reference11 = ref span6[1]; - num4 = 2; - List list15 = new List(num4); - CollectionsMarshal.SetCount(list15, num4); - Span span7 = CollectionsMarshal.AsSpan(list15); - span7[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span7[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + Span> span14 = CollectionsMarshal.AsSpan(list14); + index3 = 0; + span14[index3] = null; + index3++; + ref List reference11 = ref span14[index3]; + num5 = 2; + List list15 = new List(num5); + CollectionsMarshal.SetCount(list15, num5); + Span span15 = CollectionsMarshal.AsSpan(list15); + num4 = 0; + span15[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span15[num4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference11 = list15; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = null; + index3++; + span14[index3] = null; + index3++; + span14[index3] = null; + index3++; + span14[index3] = null; + index3++; + span14[index3] = null; obj9.RequiredQuestVariables = list14; reference10 = obj9; - ref QuestStep reference12 = ref span3[2]; + num2++; + ref QuestStep reference12 = ref span11[num2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2010897u, new Vector3(769.0698f, 191.60742f, 251.88062f), 816) { Fly = true }; - num3 = 6; - List> list16 = new List>(num3); - CollectionsMarshal.SetCount(list16, num3); - Span> span8 = CollectionsMarshal.AsSpan(list16); - span8[0] = null; - ref List reference13 = ref span8[1]; + index3 = 6; + List> list16 = new List>(index3); + CollectionsMarshal.SetCount(list16, index3); + Span> span16 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span16[num3] = null; + num3++; + ref List reference13 = ref span16[num3]; num4 = 2; List list17 = new List(num4); CollectionsMarshal.SetCount(list17, num4); - Span span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span9[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + Span span17 = CollectionsMarshal.AsSpan(list17); + num5 = 0; + span17[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span17[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference13 = list17; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = null; + num3++; + span16[num3] = null; + num3++; + span16[num3] = null; + num3++; + span16[num3] = null; + num3++; + span16[num3] = null; obj10.RequiredQuestVariables = list16; reference12 = obj10; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference14 = ref span2[3]; + num++; + ref QuestSequence reference14 = ref span8[num]; QuestSequence obj11 = new QuestSequence { Sequence = 3 @@ -243281,22 +294826,27 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1032261u, new Vector3(-258.38104f, 50.977943f, 601.2206f), 816) + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.Interact, 1032261u, new Vector3(-258.38104f, 50.977943f, 601.2206f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj11.Steps = list18; reference14 = obj11; - ref QuestSequence reference15 = ref span2[4]; + num++; + ref QuestSequence reference15 = ref span8[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -243309,13 +294859,16 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + Span span20 = CollectionsMarshal.AsSpan(list20); + index = 0; + span20[index] = "liza"; questRoot3.Author = list20; - num = 3; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span10 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference16 = ref span10[0]; + index = 3; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + Span span21 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference16 = ref span21[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -243323,19 +294876,23 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj13.Steps = list22; reference16 = obj13; - ref QuestSequence reference17 = ref span10[1]; + num++; + ref QuestSequence reference17 = ref span21[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span11 = CollectionsMarshal.AsSpan(list23); - ref QuestStep reference18 = ref span11[0]; + index2 = 3; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + ref QuestStep reference18 = ref span23[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 2010900u, new Vector3(787.92993f, 187.33496f, 174.33423f), 816) { Fly = true @@ -243343,43 +294900,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list24 = new List>(num3); CollectionsMarshal.SetCount(list24, num3); - Span> span12 = CollectionsMarshal.AsSpan(list24); - span12[0] = null; - span12[1] = null; - span12[2] = null; - ref List reference19 = ref span12[3]; - num4 = 1; - List list25 = new List(num4); - CollectionsMarshal.SetCount(list25, num4); - CollectionsMarshal.AsSpan(list25)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span> span24 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + ref List reference19 = ref span24[index3]; + num5 = 1; + List list25 = new List(num5); + CollectionsMarshal.SetCount(list25, num5); + Span span25 = CollectionsMarshal.AsSpan(list25); + num4 = 0; + span25[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference19 = list25; - span12[4] = null; - span12[5] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = null; obj15.RequiredQuestVariables = list24; reference18 = obj15; - ref QuestStep reference20 = ref span11[1]; + num2++; + ref QuestStep reference20 = ref span23[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 2010899u, new Vector3(783.2302f, 187.30444f, 151.995f), 816) { Fly = true }; - num3 = 6; - List> list26 = new List>(num3); - CollectionsMarshal.SetCount(list26, num3); - Span> span13 = CollectionsMarshal.AsSpan(list26); - span13[0] = null; - span13[1] = null; - span13[2] = null; - ref List reference21 = ref span13[3]; + index3 = 6; + List> list26 = new List>(index3); + CollectionsMarshal.SetCount(list26, index3); + Span> span26 = CollectionsMarshal.AsSpan(list26); + num3 = 0; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; + num3++; + ref List reference21 = ref span26[num3]; num4 = 1; List list27 = new List(num4); CollectionsMarshal.SetCount(list27, num4); - CollectionsMarshal.AsSpan(list27)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + Span span27 = CollectionsMarshal.AsSpan(list27); + num5 = 0; + span27[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference21 = list27; - span13[4] = null; - span13[5] = null; + num3++; + span26[num3] = null; + num3++; + span26[num3] = null; obj16.RequiredQuestVariables = list26; reference20 = obj16; - ref QuestStep reference22 = ref span11[2]; + num2++; + ref QuestStep reference22 = ref span23[num2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 2010898u, new Vector3(765.8655f, 187.30444f, 163.53088f), 816) { Fly = true @@ -243387,23 +294962,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list28 = new List>(num3); CollectionsMarshal.SetCount(list28, num3); - Span> span14 = CollectionsMarshal.AsSpan(list28); - span14[0] = null; - span14[1] = null; - span14[2] = null; - ref List reference23 = ref span14[3]; - num4 = 1; - List list29 = new List(num4); - CollectionsMarshal.SetCount(list29, num4); - CollectionsMarshal.AsSpan(list29)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + Span> span28 = CollectionsMarshal.AsSpan(list28); + index3 = 0; + span28[index3] = null; + index3++; + span28[index3] = null; + index3++; + span28[index3] = null; + index3++; + ref List reference23 = ref span28[index3]; + num5 = 1; + List list29 = new List(num5); + CollectionsMarshal.SetCount(list29, num5); + Span span29 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span29[num4] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference23 = list29; - span14[4] = null; - span14[5] = null; + index3++; + span28[index3] = null; + index3++; + span28[index3] = null; obj17.RequiredQuestVariables = list28; reference22 = obj17; obj14.Steps = list23; reference17 = obj14; - ref QuestSequence reference24 = ref span10[2]; + num++; + ref QuestSequence reference24 = ref span21[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -243411,12 +294995,14 @@ public static class AssemblyQuestLoader num2 = 2; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span15 = CollectionsMarshal.AsSpan(list30); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(743.3476f, 186.89098f, 193.8602f), 816) + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(743.3476f, 186.89098f, 193.8602f), 816) { Mount = false }; - span15[1] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2++; + span30[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -243430,24 +295016,30 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "liza"; + Span span31 = CollectionsMarshal.AsSpan(list31); + index = 0; + span31[index] = "liza"; questRoot4.Author = list31; - num = 3; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span16 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference25 = ref span16[0]; + index = 3; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + Span span32 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference25 = ref span32[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj19.Steps = list33; reference25 = obj19; - ref QuestSequence reference26 = ref span16[1]; + num++; + ref QuestSequence reference26 = ref span32[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -243455,30 +295047,40 @@ public static class AssemblyQuestLoader num2 = 3; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span17 = CollectionsMarshal.AsSpan(list34); - ref QuestStep reference27 = ref span17[0]; + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + ref QuestStep reference27 = ref span34[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1032169u, new Vector3(-423.33105f, 25.599815f, 265.94946f), 816) { Fly = true }; - num3 = 6; - List> list35 = new List>(num3); - CollectionsMarshal.SetCount(list35, num3); - Span> span18 = CollectionsMarshal.AsSpan(list35); - span18[0] = null; - ref List reference28 = ref span18[1]; + index3 = 6; + List> list35 = new List>(index3); + CollectionsMarshal.SetCount(list35, index3); + Span> span35 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span35[num3] = null; + num3++; + ref List reference28 = ref span35[num3]; num4 = 1; List list36 = new List(num4); CollectionsMarshal.SetCount(list36, num4); - CollectionsMarshal.AsSpan(list36)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + Span span36 = CollectionsMarshal.AsSpan(list36); + num5 = 0; + span36[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference28 = list36; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = null; + num3++; + span35[num3] = null; obj21.RequiredQuestVariables = list35; reference27 = obj21; - ref QuestStep reference29 = ref span17[1]; + index2++; + ref QuestStep reference29 = ref span34[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1032168u, new Vector3(-431.3573f, 24.720499f, 251.60596f), 816) { Fly = true @@ -243486,53 +295088,73 @@ public static class AssemblyQuestLoader num3 = 6; List> list37 = new List>(num3); CollectionsMarshal.SetCount(list37, num3); - Span> span19 = CollectionsMarshal.AsSpan(list37); - span19[0] = null; - ref List reference30 = ref span19[1]; - num4 = 1; - List list38 = new List(num4); - CollectionsMarshal.SetCount(list38, num4); - CollectionsMarshal.AsSpan(list38)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span> span37 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span37[index3] = null; + index3++; + ref List reference30 = ref span37[index3]; + num5 = 1; + List list38 = new List(num5); + CollectionsMarshal.SetCount(list38, num5); + Span span38 = CollectionsMarshal.AsSpan(list38); + num4 = 0; + span38[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference30 = list38; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; obj22.RequiredQuestVariables = list37; reference29 = obj22; - ref QuestStep reference31 = ref span17[2]; + index2++; + ref QuestStep reference31 = ref span34[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1032167u, new Vector3(-416.52557f, 20.303928f, 221.75928f), 816) { Fly = true }; - num3 = 6; - List> list39 = new List>(num3); - CollectionsMarshal.SetCount(list39, num3); - Span> span20 = CollectionsMarshal.AsSpan(list39); - span20[0] = null; - ref List reference32 = ref span20[1]; + index3 = 6; + List> list39 = new List>(index3); + CollectionsMarshal.SetCount(list39, index3); + Span> span39 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + span39[num3] = null; + num3++; + ref List reference32 = ref span39[num3]; num4 = 1; List list40 = new List(num4); CollectionsMarshal.SetCount(list40, num4); - CollectionsMarshal.AsSpan(list40)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span40 = CollectionsMarshal.AsSpan(list40); + num5 = 0; + span40[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference32 = list40; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = null; + num3++; + span39[num3] = null; + num3++; + span39[num3] = null; + num3++; + span39[num3] = null; + num3++; + span39[num3] = null; obj23.RequiredQuestVariables = list39; reference31 = obj23; obj20.Steps = list34; reference26 = obj20; - ref QuestSequence reference33 = ref span16[2]; + num++; + ref QuestSequence reference33 = ref span32[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -243545,13 +295167,16 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "liza"; + Span span42 = CollectionsMarshal.AsSpan(list42); + index = 0; + span42[index] = "liza"; questRoot5.Author = list42; - num = 3; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span21 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference34 = ref span21[0]; + index = 3; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + Span span43 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference34 = ref span43[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -243559,19 +295184,23 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj25.Steps = list44; reference34 = obj25; - ref QuestSequence reference35 = ref span21[1]; + num++; + ref QuestSequence reference35 = ref span43[num]; QuestSequence obj26 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - Span span22 = CollectionsMarshal.AsSpan(list45); - ref QuestStep reference36 = ref span22[0]; + index2 = 3; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + ref QuestStep reference36 = ref span45[num2]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 2010901u, new Vector3(-413.96204f, -0.10687256f, -55.77173f), 816) { Fly = true @@ -243579,43 +295208,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list46 = new List>(num3); CollectionsMarshal.SetCount(list46, num3); - Span> span23 = CollectionsMarshal.AsSpan(list46); - span23[0] = null; - span23[1] = null; - ref List reference37 = ref span23[2]; - num4 = 1; - List list47 = new List(num4); - CollectionsMarshal.SetCount(list47, num4); - CollectionsMarshal.AsSpan(list47)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + Span> span46 = CollectionsMarshal.AsSpan(list46); + index3 = 0; + span46[index3] = null; + index3++; + span46[index3] = null; + index3++; + ref List reference37 = ref span46[index3]; + num5 = 1; + List list47 = new List(num5); + CollectionsMarshal.SetCount(list47, num5); + Span span47 = CollectionsMarshal.AsSpan(list47); + num4 = 0; + span47[num4] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference37 = list47; - span23[3] = null; - span23[4] = null; - span23[5] = null; + index3++; + span46[index3] = null; + index3++; + span46[index3] = null; + index3++; + span46[index3] = null; obj27.RequiredQuestVariables = list46; reference36 = obj27; - ref QuestStep reference38 = ref span22[1]; + num2++; + ref QuestStep reference38 = ref span45[num2]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 2010902u, new Vector3(-405.9358f, -0.07635498f, -28.397034f), 816) { Fly = true }; - num3 = 6; - List> list48 = new List>(num3); - CollectionsMarshal.SetCount(list48, num3); - Span> span24 = CollectionsMarshal.AsSpan(list48); - span24[0] = null; - span24[1] = null; - ref List reference39 = ref span24[2]; + index3 = 6; + List> list48 = new List>(index3); + CollectionsMarshal.SetCount(list48, index3); + Span> span48 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + ref List reference39 = ref span48[num3]; num4 = 1; List list49 = new List(num4); CollectionsMarshal.SetCount(list49, num4); - CollectionsMarshal.AsSpan(list49)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + Span span49 = CollectionsMarshal.AsSpan(list49); + num5 = 0; + span49[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference39 = list49; - span24[3] = null; - span24[4] = null; - span24[5] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = null; obj28.RequiredQuestVariables = list48; reference38 = obj28; - ref QuestStep reference40 = ref span22[2]; + num2++; + ref QuestStep reference40 = ref span45[num2]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 2010903u, new Vector3(-395.46808f, -0.07635498f, -0.16790771f), 816) { Fly = true @@ -243623,23 +295270,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list50 = new List>(num3); CollectionsMarshal.SetCount(list50, num3); - Span> span25 = CollectionsMarshal.AsSpan(list50); - span25[0] = null; - span25[1] = null; - ref List reference41 = ref span25[2]; - num4 = 1; - List list51 = new List(num4); - CollectionsMarshal.SetCount(list51, num4); - CollectionsMarshal.AsSpan(list51)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span> span50 = CollectionsMarshal.AsSpan(list50); + index3 = 0; + span50[index3] = null; + index3++; + span50[index3] = null; + index3++; + ref List reference41 = ref span50[index3]; + num5 = 1; + List list51 = new List(num5); + CollectionsMarshal.SetCount(list51, num5); + Span span51 = CollectionsMarshal.AsSpan(list51); + num4 = 0; + span51[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference41 = list51; - span25[3] = null; - span25[4] = null; - span25[5] = null; + index3++; + span50[index3] = null; + index3++; + span50[index3] = null; + index3++; + span50[index3] = null; obj29.RequiredQuestVariables = list50; reference40 = obj29; obj26.Steps = list45; reference35 = obj26; - ref QuestSequence reference42 = ref span21[2]; + num++; + ref QuestSequence reference42 = ref span43[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -243647,13 +295303,15 @@ public static class AssemblyQuestLoader num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span26 = CollectionsMarshal.AsSpan(list52); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-427.47775f, 5.0289116f, 18.171812f), 816) + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-427.47775f, 5.0289116f, 18.171812f), 816) { DisableNavmesh = true, Mount = false }; - span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2++; + span52[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -243667,24 +295325,30 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "liza"; + Span span53 = CollectionsMarshal.AsSpan(list53); + index = 0; + span53[index] = "liza"; questRoot6.Author = list53; - num = 3; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span27 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference43 = ref span27[0]; + index = 3; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + Span span54 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference43 = ref span54[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj31.Steps = list55; reference43 = obj31; - ref QuestSequence reference44 = ref span27[1]; + num++; + ref QuestSequence reference44 = ref span54[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -243692,34 +295356,45 @@ public static class AssemblyQuestLoader num2 = 4; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span28 = CollectionsMarshal.AsSpan(list56); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-115.77283f, 7.1942587f, 130.61378f), 816) + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-115.77283f, 7.1942587f, 130.61378f), 816) { Fly = true }; - ref QuestStep reference45 = ref span28[1]; + index2++; + ref QuestStep reference45 = ref span56[index2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 2010911u, new Vector3(-113.93915f, -36.087585f, 87.6936f), 816) { DisableNavmesh = true }; - num3 = 6; - List> list57 = new List>(num3); - CollectionsMarshal.SetCount(list57, num3); - Span> span29 = CollectionsMarshal.AsSpan(list57); - span29[0] = null; - ref List reference46 = ref span29[1]; + index3 = 6; + List> list57 = new List>(index3); + CollectionsMarshal.SetCount(list57, index3); + Span> span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span57[num3] = null; + num3++; + ref List reference46 = ref span57[num3]; num4 = 1; List list58 = new List(num4); CollectionsMarshal.SetCount(list58, num4); - CollectionsMarshal.AsSpan(list58)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span span58 = CollectionsMarshal.AsSpan(list58); + num5 = 0; + span58[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference46 = list58; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; obj33.RequiredQuestVariables = list57; reference45 = obj33; - ref QuestStep reference47 = ref span28[2]; + index2++; + ref QuestStep reference47 = ref span56[index2]; QuestStep obj34 = new QuestStep(EInteractionType.Interact, 2010904u, new Vector3(-164.93481f, -50.919373f, 71.15283f), 816) { DisableNavmesh = true @@ -243727,53 +295402,73 @@ public static class AssemblyQuestLoader num3 = 6; List> list59 = new List>(num3); CollectionsMarshal.SetCount(list59, num3); - Span> span30 = CollectionsMarshal.AsSpan(list59); - span30[0] = null; - ref List reference48 = ref span30[1]; - num4 = 1; - List list60 = new List(num4); - CollectionsMarshal.SetCount(list60, num4); - CollectionsMarshal.AsSpan(list60)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + Span> span59 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span59[index3] = null; + index3++; + ref List reference48 = ref span59[index3]; + num5 = 1; + List list60 = new List(num5); + CollectionsMarshal.SetCount(list60, num5); + Span span60 = CollectionsMarshal.AsSpan(list60); + num4 = 0; + span60[num4] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference48 = list60; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; + index3++; + span59[index3] = null; obj34.RequiredQuestVariables = list59; reference47 = obj34; - ref QuestStep reference49 = ref span28[3]; + index2++; + ref QuestStep reference49 = ref span56[index2]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 2010910u, new Vector3(-189.86804f, -66.941345f, 13.046387f), 816) { DisableNavmesh = true }; - num3 = 6; - List> list61 = new List>(num3); - CollectionsMarshal.SetCount(list61, num3); - Span> span31 = CollectionsMarshal.AsSpan(list61); - span31[0] = null; - ref List reference50 = ref span31[1]; + index3 = 6; + List> list61 = new List>(index3); + CollectionsMarshal.SetCount(list61, index3); + Span> span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = null; + num3++; + ref List reference50 = ref span61[num3]; num4 = 1; List list62 = new List(num4); CollectionsMarshal.SetCount(list62, num4); - CollectionsMarshal.AsSpan(list62)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + Span span62 = CollectionsMarshal.AsSpan(list62); + num5 = 0; + span62[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference50 = list62; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; + num3++; + span61[num3] = null; obj35.RequiredQuestVariables = list61; reference49 = obj35; obj32.Steps = list56; reference44 = obj32; - ref QuestSequence reference51 = ref span27[2]; + num++; + ref QuestSequence reference51 = ref span54[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -243787,13 +295482,16 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + Span span64 = CollectionsMarshal.AsSpan(list64); + index = 0; + span64[index] = "liza"; questRoot7.Author = list64; - num = 3; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span32 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference52 = ref span32[0]; + index = 3; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + Span span65 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference52 = ref span65[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -243801,18 +295499,23 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span66[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj37.Steps = list66; reference52 = obj37; - ref QuestSequence reference53 = ref span32[1]; + num++; + ref QuestSequence reference53 = ref span65[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list67)[0]; + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + ref QuestStep reference54 = ref span67[num2]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, 2010905u, new Vector3(164.01917f, 0.289917f, 640.2228f), 816) { Fly = true, @@ -243821,12 +295524,15 @@ public static class AssemblyQuestLoader num3 = 1; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = 11449u; + Span span68 = CollectionsMarshal.AsSpan(list68); + index3 = 0; + span68[index3] = 11449u; obj39.KillEnemyDataIds = list68; reference54 = obj39; obj38.Steps = list67; reference53 = obj38; - ref QuestSequence reference55 = ref span32[2]; + num++; + ref QuestSequence reference55 = ref span65[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -243834,7 +295540,9 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -243847,24 +295555,30 @@ public static class AssemblyQuestLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - CollectionsMarshal.AsSpan(list70)[0] = "liza"; + Span span70 = CollectionsMarshal.AsSpan(list70); + index = 0; + span70[index] = "liza"; questRoot8.Author = list70; - num = 3; - List list71 = new List(num); - CollectionsMarshal.SetCount(list71, num); - Span span33 = CollectionsMarshal.AsSpan(list71); - ref QuestSequence reference56 = ref span33[0]; + index = 3; + List list71 = new List(index); + CollectionsMarshal.SetCount(list71, index); + Span span71 = CollectionsMarshal.AsSpan(list71); + num = 0; + ref QuestSequence reference56 = ref span71[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj41.Steps = list72; reference56 = obj41; - ref QuestSequence reference57 = ref span33[1]; + num++; + ref QuestSequence reference57 = ref span71[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -243872,31 +295586,38 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Snipe, 1032170u, new Vector3(25.070557f, 13.914338f, 755.58093f), 816) + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.Snipe, 1032170u, new Vector3(25.070557f, 13.914338f, 755.58093f), 816) { Fly = true, Comment = "Throw Porxies at Beavers" }; obj42.Steps = list73; reference57 = obj42; - ref QuestSequence reference58 = ref span33[2]; + num++; + ref QuestSequence reference58 = ref span71[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list74)[0]; + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + ref QuestStep reference59 = ref span74[num2]; QuestStep obj44 = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = new DialogueChoice + index3 = 1; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span75 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span75[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPIX119_03707_Q1_000_000"), @@ -243913,13 +295634,16 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "liza"; + Span span76 = CollectionsMarshal.AsSpan(list76); + index = 0; + span76[index] = "liza"; questRoot9.Author = list76; - num = 3; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span34 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference60 = ref span34[0]; + index = 3; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + Span span77 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference60 = ref span77[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -243927,19 +295651,23 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj45.Steps = list78; reference60 = obj45; - ref QuestSequence reference61 = ref span34[1]; + num++; + ref QuestSequence reference61 = ref span77[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span35 = CollectionsMarshal.AsSpan(list79); - ref QuestStep reference62 = ref span35[0]; + index2 = 3; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + ref QuestStep reference62 = ref span79[num2]; QuestStep obj47 = new QuestStep(EInteractionType.Interact, 2010906u, new Vector3(60.135742f, 5.7526245f, 404.34875f), 816) { Fly = true @@ -243947,46 +295675,67 @@ public static class AssemblyQuestLoader num3 = 6; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - Span span36 = CollectionsMarshal.AsSpan(list80); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span80 = CollectionsMarshal.AsSpan(list80); + index3 = 0; + span80[index3] = null; + index3++; + span80[index3] = null; + index3++; + span80[index3] = null; + index3++; + span80[index3] = null; + index3++; + span80[index3] = null; + index3++; + span80[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj47.CompletionQuestVariablesFlags = list80; reference62 = obj47; - ref QuestStep reference63 = ref span35[1]; + num2++; + ref QuestStep reference63 = ref span79[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2010907u, new Vector3(50.858276f, 6.94281f, 406.51562f), 816); - num3 = 6; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - Span span37 = CollectionsMarshal.AsSpan(list81); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list81 = new List(index3); + CollectionsMarshal.SetCount(list81, index3); + Span span81 = CollectionsMarshal.AsSpan(list81); + num3 = 0; + span81[num3] = null; + num3++; + span81[num3] = null; + num3++; + span81[num3] = null; + num3++; + span81[num3] = null; + num3++; + span81[num3] = null; + num3++; + span81[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list81; reference63 = questStep; - ref QuestStep reference64 = ref span35[2]; + num2++; + ref QuestStep reference64 = ref span79[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2010908u, new Vector3(42.893066f, 6.668152f, 397.26855f), 816); num3 = 6; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - Span span38 = CollectionsMarshal.AsSpan(list82); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span82 = CollectionsMarshal.AsSpan(list82); + index3 = 0; + span82[index3] = null; + index3++; + span82[index3] = null; + index3++; + span82[index3] = null; + index3++; + span82[index3] = null; + index3++; + span82[index3] = null; + index3++; + span82[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list82; reference64 = questStep2; obj46.Steps = list79; reference61 = obj46; - ref QuestSequence reference65 = ref span34[2]; + num++; + ref QuestSequence reference65 = ref span77[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -243994,7 +295743,9 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -244008,24 +295759,30 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "liza"; + Span span84 = CollectionsMarshal.AsSpan(list84); + index = 0; + span84[index] = "liza"; questRoot10.Author = list84; - num = 3; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span39 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference66 = ref span39[0]; + index = 3; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference66 = ref span85[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj49.Steps = list86; reference66 = obj49; - ref QuestSequence reference67 = ref span39[1]; + num++; + ref QuestSequence reference67 = ref span85[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 @@ -244033,29 +295790,36 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list87)[0]; + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + ref QuestStep reference68 = ref span87[index2]; QuestStep obj51 = new QuestStep(EInteractionType.Combat, 2010909u, new Vector3(-242.08441f, 0.83917236f, 223.80408f), 816) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - CollectionsMarshal.AsSpan(list88)[0] = 11450u; + index3 = 1; + List list88 = new List(index3); + CollectionsMarshal.SetCount(list88, index3); + Span span88 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span88[num3] = 11450u; obj51.KillEnemyDataIds = list88; reference68 = obj51; obj50.Steps = list87; reference67 = obj50; - ref QuestSequence reference69 = ref span39[2]; + num++; + ref QuestSequence reference69 = ref span85[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -244068,13 +295832,16 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "liza"; + Span span90 = CollectionsMarshal.AsSpan(list90); + index = 0; + span90[index] = "liza"; questRoot11.Author = list90; - num = 4; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span40 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference70 = ref span40[0]; + index = 4; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + Span span91 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference70 = ref span91[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -244082,25 +295849,31 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj53.Steps = list92; reference70 = obj53; - ref QuestSequence reference71 = ref span40[1]; + num++; + ref QuestSequence reference71 = ref span91[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.UseItem, 1032204u, new Vector3(-81.864685f, 88.12085f, -175.06683f), 816) + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.UseItem, 1032204u, new Vector3(-81.864685f, 88.12085f, -175.06683f), 816) { Fly = true, ItemId = 2002945u }; obj54.Steps = list93; reference71 = obj54; - ref QuestSequence reference72 = ref span40[2]; + num++; + ref QuestSequence reference72 = ref span91[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -244108,22 +295881,27 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.UseItem, 1032205u, new Vector3(-114.21387f, 112.903015f, -350.57605f), 816) + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.UseItem, 1032205u, new Vector3(-114.21387f, 112.903015f, -350.57605f), 816) { Fly = true, ItemId = 2002945u }; obj55.Steps = list94; reference72 = obj55; - ref QuestSequence reference73 = ref span40[3]; + num++; + ref QuestSequence reference73 = ref span91[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list95)[0]; + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + ref QuestStep reference74 = ref span95[num2]; QuestStep obj57 = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, @@ -244132,7 +295910,9 @@ public static class AssemblyQuestLoader num3 = 1; List list96 = new List(num3); CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = new DialogueChoice + Span span96 = CollectionsMarshal.AsSpan(list96); + index3 = 0; + span96[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPIX122_03710_Q1_000_000"), @@ -244149,13 +295929,16 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + Span span97 = CollectionsMarshal.AsSpan(list97); + index = 0; + span97[index] = "liza"; questRoot12.Author = list97; - num = 3; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span41 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference75 = ref span41[0]; + index = 3; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference75 = ref span98[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 @@ -244163,25 +295946,31 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj58.Steps = list99; reference75 = obj58; - ref QuestSequence reference76 = ref span41[1]; + num++; + ref QuestSequence reference76 = ref span98[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 2010786u, new Vector3(514.94617f, 97.61194f, -256.70258f), 816) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.Interact, 2010786u, new Vector3(514.94617f, 97.61194f, -256.70258f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; obj59.Steps = list100; reference76 = obj59; - ref QuestSequence reference77 = ref span41[2]; + num++; + ref QuestSequence reference77 = ref span98[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -244189,9 +295978,11 @@ public static class AssemblyQuestLoader num2 = 2; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span42 = CollectionsMarshal.AsSpan(list101); - span42[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(486.33374f, 90.93466f, -316.85287f), 816); - span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(486.33374f, 90.93466f, -316.85287f), 816); + index2++; + span101[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -244205,24 +295996,30 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "liza"; + Span span102 = CollectionsMarshal.AsSpan(list102); + index = 0; + span102[index] = "liza"; questRoot13.Author = list102; - num = 3; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span43 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference78 = ref span43[0]; + index = 3; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + Span span103 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference78 = ref span103[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj61.Steps = list104; reference78 = obj61; - ref QuestSequence reference79 = ref span43[1]; + num++; + ref QuestSequence reference79 = ref span103[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -244230,13 +296027,15 @@ public static class AssemblyQuestLoader num2 = 2; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span44 = CollectionsMarshal.AsSpan(list105); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(67.35126f, 102.935814f, -799.43896f), 816) + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(67.35126f, 102.935814f, -799.43896f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; - span44[1] = new QuestStep(EInteractionType.Say, 1032208u, new Vector3(68.89441f, 103.07577f, -797.05505f), 816) + index2++; + span105[index2] = new QuestStep(EInteractionType.Say, 1032208u, new Vector3(68.89441f, 103.07577f, -797.05505f), 816) { ChatMessage = new ChatMessage { @@ -244245,15 +296044,18 @@ public static class AssemblyQuestLoader }; obj62.Steps = list105; reference79 = obj62; - ref QuestSequence reference80 = ref span43[2]; + num++; + ref QuestSequence reference80 = ref span103[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -244267,13 +296069,16 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + Span span107 = CollectionsMarshal.AsSpan(list107); + index = 0; + span107[index] = "liza"; questRoot14.Author = list107; - num = 4; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span45 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference81 = ref span45[0]; + index = 4; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + Span span108 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference81 = ref span108[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -244281,18 +296086,23 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj64.Steps = list109; reference81 = obj64; - ref QuestSequence reference82 = ref span45[1]; + num++; + ref QuestSequence reference82 = ref span108[num]; QuestSequence obj65 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list110)[0]; + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + ref QuestStep reference83 = ref span110[num2]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, null, new Vector3(218.93869f, 30.646347f, -487.75848f), 816) { StopDistance = 0.5f, @@ -244300,17 +296110,20 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - Span span46 = CollectionsMarshal.AsSpan(list111); - span46[0] = 11455u; - span46[1] = 11456u; + index3 = 2; + List list111 = new List(index3); + CollectionsMarshal.SetCount(list111, index3); + Span span111 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span111[num3] = 11455u; + num3++; + span111[num3] = 11456u; obj66.KillEnemyDataIds = list111; reference83 = obj66; obj65.Steps = list110; reference82 = obj65; - ref QuestSequence reference84 = ref span45[2]; + num++; + ref QuestSequence reference84 = ref span108[num]; QuestSequence obj67 = new QuestSequence { Sequence = 2 @@ -244318,18 +296131,23 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1032211u, new Vector3(220.38599f, 30.803741f, -489.5552f), 816); + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.Interact, 1032211u, new Vector3(220.38599f, 30.803741f, -489.5552f), 816); obj67.Steps = list112; reference84 = obj67; - ref QuestSequence reference85 = ref span45[3]; + num++; + ref QuestSequence reference85 = ref span108[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -244343,13 +296161,16 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "liza"; + Span span114 = CollectionsMarshal.AsSpan(list114); + index = 0; + span114[index] = "liza"; questRoot15.Author = list114; - num = 4; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span47 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference86 = ref span47[0]; + index = 4; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + Span span115 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference86 = ref span115[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -244357,21 +296178,27 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj69.Steps = list116; reference86 = obj69; - ref QuestSequence reference87 = ref span47[1]; + num++; + ref QuestSequence reference87 = ref span115[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1031811u, new Vector3(-442.46588f, 70.686165f, 573.69336f), 816); + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.Interact, 1031811u, new Vector3(-442.46588f, 70.686165f, 573.69336f), 816); obj70.Steps = list117; reference87 = obj70; - ref QuestSequence reference88 = ref span47[2]; + num++; + ref QuestSequence reference88 = ref span115[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -244379,8 +296206,9 @@ public static class AssemblyQuestLoader num2 = 2; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span48 = CollectionsMarshal.AsSpan(list118); - ref QuestStep reference89 = ref span48[0]; + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + ref QuestStep reference89 = ref span118[index2]; QuestStep obj72 = new QuestStep(EInteractionType.Action, 2010922u, new Vector3(-27.878296f, 30.44165f, -505.39407f), 816) { Fly = true, @@ -244389,51 +296217,67 @@ public static class AssemblyQuestLoader num3 = 6; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - Span span49 = CollectionsMarshal.AsSpan(list119); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span119 = CollectionsMarshal.AsSpan(list119); + index3 = 0; + span119[index3] = null; + index3++; + span119[index3] = null; + index3++; + span119[index3] = null; + index3++; + span119[index3] = null; + index3++; + span119[index3] = null; + index3++; + span119[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj72.CompletionQuestVariablesFlags = list119; reference89 = obj72; - ref QuestStep reference90 = ref span48[1]; + index2++; + ref QuestStep reference90 = ref span118[index2]; QuestStep obj73 = new QuestStep(EInteractionType.Action, 2010923u, new Vector3(-53.025208f, 55.954834f, -671.29016f), 816) { Fly = true, Action = EAction.SiphonSnout }; - num3 = 6; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span50 = CollectionsMarshal.AsSpan(list120); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list120 = new List(index3); + CollectionsMarshal.SetCount(list120, index3); + Span span120 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + span120[num3] = null; + num3++; + span120[num3] = null; + num3++; + span120[num3] = null; + num3++; + span120[num3] = null; + num3++; + span120[num3] = null; + num3++; + span120[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj73.CompletionQuestVariablesFlags = list120; reference90 = obj73; obj71.Steps = list118; reference88 = obj71; - ref QuestSequence reference91 = ref span47[3]; + num++; + ref QuestSequence reference91 = ref span115[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span51 = CollectionsMarshal.AsSpan(list121); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-53.025208f, 55.954834f, -671.29016f), 816) + index2 = 2; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span121[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-53.025208f, 55.954834f, -671.29016f), 816) { StopDistance = 100f, DelaySecondsAtStart = 2f, Fly = true }; - span51[1] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + num2++; + span121[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -244447,13 +296291,16 @@ public static class AssemblyQuestLoader num = 1; List list122 = new List(num); CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = "liza"; + Span span122 = CollectionsMarshal.AsSpan(list122); + index = 0; + span122[index] = "liza"; questRoot16.Author = list122; - num = 3; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - Span span52 = CollectionsMarshal.AsSpan(list123); - ref QuestSequence reference92 = ref span52[0]; + index = 3; + List list123 = new List(index); + CollectionsMarshal.SetCount(list123, index); + Span span123 = CollectionsMarshal.AsSpan(list123); + num = 0; + ref QuestSequence reference92 = ref span123[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -244461,18 +296308,23 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + Span span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span124[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj75.Steps = list124; reference92 = obj75; - ref QuestSequence reference93 = ref span52[1]; + num++; + ref QuestSequence reference93 = ref span123[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list125)[0]; + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + ref QuestStep reference94 = ref span125[num2]; QuestStep obj77 = new QuestStep(EInteractionType.Combat, 2010788u, new Vector3(-480.0946f, 83.45154f, 635.9197f), 816) { Fly = true, @@ -244481,15 +296333,19 @@ public static class AssemblyQuestLoader num3 = 3; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - Span span53 = CollectionsMarshal.AsSpan(list126); - span53[0] = 11452u; - span53[1] = 11453u; - span53[2] = 11454u; + Span span126 = CollectionsMarshal.AsSpan(list126); + index3 = 0; + span126[index3] = 11452u; + index3++; + span126[index3] = 11453u; + index3++; + span126[index3] = 11454u; obj77.KillEnemyDataIds = list126; reference94 = obj77; obj76.Steps = list125; reference93 = obj76; - ref QuestSequence reference95 = ref span52[2]; + num++; + ref QuestSequence reference95 = ref span123[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -244497,7 +296353,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -244510,24 +296368,30 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + Span span128 = CollectionsMarshal.AsSpan(list128); + index = 0; + span128[index] = "liza"; questRoot17.Author = list128; - num = 3; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span54 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference96 = ref span54[0]; + index = 3; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + Span span129 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference96 = ref span129[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj79.Steps = list130; reference96 = obj79; - ref QuestSequence reference97 = ref span54[1]; + num++; + ref QuestSequence reference97 = ref span129[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -244535,32 +296399,42 @@ public static class AssemblyQuestLoader num2 = 2; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span55 = CollectionsMarshal.AsSpan(list131); - ref QuestStep reference98 = ref span55[0]; + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + ref QuestStep reference98 = ref span131[index2]; QuestStep obj81 = new QuestStep(EInteractionType.UseItem, 1032203u, new Vector3(10.849121f, 100.161f, -886.22876f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni, ItemId = 2002943u }; - num3 = 6; - List> list132 = new List>(num3); - CollectionsMarshal.SetCount(list132, num3); - Span> span56 = CollectionsMarshal.AsSpan(list132); - span56[0] = null; - span56[1] = null; - ref List reference99 = ref span56[2]; - num4 = 1; - List list133 = new List(num4); - CollectionsMarshal.SetCount(list133, num4); - CollectionsMarshal.AsSpan(list133)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index3 = 6; + List> list132 = new List>(index3); + CollectionsMarshal.SetCount(list132, index3); + Span> span132 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span132[num3] = null; + num3++; + span132[num3] = null; + num3++; + ref List reference99 = ref span132[num3]; + num5 = 1; + List list133 = new List(num5); + CollectionsMarshal.SetCount(list133, num5); + Span span133 = CollectionsMarshal.AsSpan(list133); + num4 = 0; + span133[num4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference99 = list133; - span56[3] = null; - span56[4] = null; - span56[5] = null; + num3++; + span132[num3] = null; + num3++; + span132[num3] = null; + num3++; + span132[num3] = null; obj81.RequiredQuestVariables = list132; reference98 = obj81; - ref QuestStep reference100 = ref span55[1]; + index2++; + ref QuestStep reference100 = ref span131[index2]; QuestStep obj82 = new QuestStep(EInteractionType.UseItem, 1032202u, new Vector3(10.849121f, 100.161f, -886.22876f), 816) { Fly = true, @@ -244569,31 +296443,42 @@ public static class AssemblyQuestLoader num3 = 6; List> list134 = new List>(num3); CollectionsMarshal.SetCount(list134, num3); - Span> span57 = CollectionsMarshal.AsSpan(list134); - span57[0] = null; - span57[1] = null; - ref List reference101 = ref span57[2]; + Span> span134 = CollectionsMarshal.AsSpan(list134); + index3 = 0; + span134[index3] = null; + index3++; + span134[index3] = null; + index3++; + ref List reference101 = ref span134[index3]; num4 = 1; List list135 = new List(num4); CollectionsMarshal.SetCount(list135, num4); - CollectionsMarshal.AsSpan(list135)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span span135 = CollectionsMarshal.AsSpan(list135); + num5 = 0; + span135[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference101 = list135; - span57[3] = null; - span57[4] = null; - span57[5] = null; + index3++; + span134[index3] = null; + index3++; + span134[index3] = null; + index3++; + span134[index3] = null; obj82.RequiredQuestVariables = list134; reference100 = obj82; obj80.Steps = list131; reference97 = obj80; - ref QuestSequence reference102 = ref span54[2]; + num++; + ref QuestSequence reference102 = ref span129[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -244607,13 +296492,16 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "liza"; + Span span137 = CollectionsMarshal.AsSpan(list137); + index = 0; + span137[index] = "liza"; questRoot18.Author = list137; - num = 12; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span58 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference103 = ref span58[0]; + index = 12; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + Span span138 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference103 = ref span138[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -244621,25 +296509,31 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814); + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814); obj84.Steps = list139; reference103 = obj84; - ref QuestSequence reference104 = ref span58[1]; + num++; + ref QuestSequence reference104 = ref span138[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.Interact, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide }; obj85.Steps = list140; reference104 = obj85; - ref QuestSequence reference105 = ref span58[2]; + num++; + ref QuestSequence reference105 = ref span138[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -244647,29 +296541,35 @@ public static class AssemblyQuestLoader num2 = 2; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span59 = CollectionsMarshal.AsSpan(list141); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.1434f, 295.63748f, -219.3426f), 814) + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.1434f, 295.63748f, -219.3426f), 814) { Fly = true }; - span59[1] = new QuestStep(EInteractionType.Interact, 2010833u, new Vector3(545.4946f, 296.1317f, -218.79913f), 814); + index2++; + span141[index2] = new QuestStep(EInteractionType.Interact, 2010833u, new Vector3(545.4946f, 296.1317f, -218.79913f), 814); obj86.Steps = list141; reference105 = obj86; - ref QuestSequence reference106 = ref span58[3]; + num++; + ref QuestSequence reference106 = ref span138[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.Interact, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814) { Fly = true }; obj87.Steps = list142; reference106 = obj87; - ref QuestSequence reference107 = ref span58[4]; + num++; + ref QuestSequence reference107 = ref span138[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -244677,27 +296577,33 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1031826u, new Vector3(623.1022f, 297.49335f, -199.51172f), 814) + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.Interact, 1031826u, new Vector3(623.1022f, 297.49335f, -199.51172f), 814) { Fly = true }; obj88.Steps = list143; reference107 = obj88; - ref QuestSequence reference108 = ref span58[5]; + num++; + ref QuestSequence reference108 = ref span138[num]; QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1031578u, new Vector3(737.48376f, 285.0224f, -84.97754f), 814) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.Interact, 1031578u, new Vector3(737.48376f, 285.0224f, -84.97754f), 814) { Fly = true }; obj89.Steps = list144; reference108 = obj89; - ref QuestSequence reference109 = ref span58[6]; + num++; + ref QuestSequence reference109 = ref span138[num]; QuestSequence obj90 = new QuestSequence { Sequence = 6 @@ -244705,27 +296611,33 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Emote, 1031578u, new Vector3(737.48376f, 285.0224f, -84.97754f), 814) + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.Emote, 1031578u, new Vector3(737.48376f, 285.0224f, -84.97754f), 814) { Emote = EEmote.Doubt }; obj90.Steps = list145; reference109 = obj90; - ref QuestSequence reference110 = ref span58[7]; + num++; + ref QuestSequence reference110 = ref span138[num]; QuestSequence obj91 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1031829u, new Vector3(215.28955f, 315.85886f, -17.349548f), 814) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.Interact, 1031829u, new Vector3(215.28955f, 315.85886f, -17.349548f), 814) { Fly = true }; obj91.Steps = list146; reference110 = obj91; - ref QuestSequence reference111 = ref span58[8]; + num++; + ref QuestSequence reference111 = ref span138[num]; QuestSequence obj92 = new QuestSequence { Sequence = 8 @@ -244733,39 +296645,47 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list147)[0]; + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + ref QuestStep reference112 = ref span147[index2]; QuestStep obj93 = new QuestStep(EInteractionType.Combat, null, new Vector3(215.44379f, 315.57245f, -22.744217f), 814) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - Span span60 = CollectionsMarshal.AsSpan(list148); - span60[0] = 11435u; - span60[1] = 11436u; + index3 = 2; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + Span span148 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span148[num3] = 11435u; + num3++; + span148[num3] = 11436u; obj93.KillEnemyDataIds = list148; reference112 = obj93; obj92.Steps = list147; reference111 = obj92; - ref QuestSequence reference113 = ref span58[9]; + num++; + ref QuestSequence reference113 = ref span138[num]; QuestSequence obj94 = new QuestSequence { Sequence = 9 }; - num2 = 2; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - Span span61 = CollectionsMarshal.AsSpan(list149); - span61[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(237.7035f, 308.6692f, -119.51825f), 814) + index2 = 2; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(237.7035f, 308.6692f, -119.51825f), 814) { Fly = true }; - span61[1] = new QuestStep(EInteractionType.Interact, 1031828u, new Vector3(236.40796f, 309.01877f, -118.24219f), 814); + num2++; + span149[num2] = new QuestStep(EInteractionType.Interact, 1031828u, new Vector3(236.40796f, 309.01877f, -118.24219f), 814); obj94.Steps = list149; reference113 = obj94; - ref QuestSequence reference114 = ref span58[10]; + num++; + ref QuestSequence reference114 = ref span138[num]; QuestSequence obj95 = new QuestSequence { Sequence = 10 @@ -244773,18 +296693,23 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 2010844u, new Vector3(238.17798f, 308.5221f, -120.19531f), 814); + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new QuestStep(EInteractionType.Interact, 2010844u, new Vector3(238.17798f, 308.5221f, -120.19531f), 814); obj95.Steps = list150; reference114 = obj95; - ref QuestSequence reference115 = ref span58[11]; + num++; + ref QuestSequence reference115 = ref span138[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814) + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span151[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814) { Fly = true, NextQuestId = new QuestId(3718) @@ -244798,13 +296723,16 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = "liza"; + Span span152 = CollectionsMarshal.AsSpan(list152); + index = 0; + span152[index] = "liza"; questRoot19.Author = list152; - num = 8; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span62 = CollectionsMarshal.AsSpan(list153); - ref QuestSequence reference116 = ref span62[0]; + index = 8; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + Span span153 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref QuestSequence reference116 = ref span153[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -244812,24 +296740,30 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814); + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814); obj97.Steps = list154; reference116 = obj97; - ref QuestSequence reference117 = ref span62[1]; + num++; + ref QuestSequence reference117 = ref span153[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1032079u, new Vector3(737.11743f, 285.0313f, -84.06195f), 814) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span155[num2] = new QuestStep(EInteractionType.Interact, 1032079u, new Vector3(737.11743f, 285.0313f, -84.06195f), 814) { Fly = true }; obj98.Steps = list155; reference117 = obj98; - ref QuestSequence reference118 = ref span62[2]; + num++; + ref QuestSequence reference118 = ref span153[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 @@ -244837,24 +296771,30 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 2010855u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new QuestStep(EInteractionType.Interact, 2010855u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { StopDistance = 4f }; obj99.Steps = list156; reference118 = obj99; - ref QuestSequence reference119 = ref span62[3]; + num++; + ref QuestSequence reference119 = ref span153[num]; QuestSequence obj100 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1031837u, new Vector3(-1.8158569f, -6.9233757E-09f, -90.013f), 895); + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span157[num2] = new QuestStep(EInteractionType.Interact, 1031837u, new Vector3(-1.8158569f, -6.9233757E-09f, -90.013f), 895); obj100.Steps = list157; reference119 = obj100; - ref QuestSequence reference120 = ref span62[4]; + num++; + ref QuestSequence reference120 = ref span153[num]; QuestSequence obj101 = new QuestSequence { Sequence = 4 @@ -244862,7 +296802,9 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Duty, null, null, 895) + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.Duty, null, null, 895) { DutyOptions = new DutyOptions { @@ -244871,22 +296813,27 @@ public static class AssemblyQuestLoader }; obj101.Steps = list158; reference120 = obj101; - span62[5] = new QuestSequence + num++; + span153[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference121 = ref span62[6]; + num++; + ref QuestSequence reference121 = ref span153[num]; QuestSequence obj102 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1032021u, new Vector3(-8.255188f, 0.02999778f, -66.66675f), 895); + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.Interact, 1032021u, new Vector3(-8.255188f, 0.02999778f, -66.66675f), 895); obj102.Steps = list159; reference121 = obj102; - ref QuestSequence reference122 = ref span62[7]; + num++; + ref QuestSequence reference122 = ref span153[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue @@ -244894,7 +296841,9 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895) + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895) { StopDistance = 4f, NextQuestId = new QuestId(3719) @@ -244908,27 +296857,33 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "liza"; + Span span161 = CollectionsMarshal.AsSpan(list161); + index = 0; + span161[index] = "liza"; questRoot20.Author = list161; - num = 2; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span63 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference123 = ref span63[0]; + index = 2; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + Span span162 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference123 = ref span162[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895) + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span163[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895) { StopDistance = 4f }; obj104.Steps = list163; reference123 = obj104; - ref QuestSequence reference124 = ref span63[1]; + num++; + ref QuestSequence reference124 = ref span162[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -244936,7 +296891,9 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span164[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); obj105.Steps = list164; reference124 = obj105; questRoot20.QuestSequence = list162; @@ -244946,26 +296903,33 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "liza"; + Span span165 = CollectionsMarshal.AsSpan(list165); + index = 0; + span165[index] = "liza"; questRoot21.Author = list165; - num = 10; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span64 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference125 = ref span64[0]; + index = 10; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + Span span166 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference125 = ref span166[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - ref QuestStep reference126 = ref CollectionsMarshal.AsSpan(list167)[0]; + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + ref QuestStep reference126 = ref span167[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.AcceptQuest, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); num3 = 1; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = new DialogueChoice + Span span168 = CollectionsMarshal.AsSpan(list168); + index3 = 0; + span168[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKTA110_03720_Q2_000_000") @@ -244974,7 +296938,8 @@ public static class AssemblyQuestLoader reference126 = questStep3; obj106.Steps = list167; reference125 = obj106; - ref QuestSequence reference127 = ref span64[1]; + num++; + ref QuestSequence reference127 = ref span166[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -244982,8 +296947,9 @@ public static class AssemblyQuestLoader num2 = 6; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span65 = CollectionsMarshal.AsSpan(list169); - span65[0] = new QuestStep(EInteractionType.Interact, 2010848u, new Vector3(-504.78372f, 483.97034f, 234.82104f), 896) + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.Interact, 2010848u, new Vector3(-504.78372f, 483.97034f, 234.82104f), 896) { SkipConditions = new SkipConditions { @@ -244993,8 +296959,10 @@ public static class AssemblyQuestLoader } } }; - span65[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-500.0601f, 464f, 209.26236f), 896); - span65[2] = new QuestStep(EInteractionType.Interact, 2010869u, new Vector3(-505.2415f, 463.95044f, 217.60889f), 896) + index2++; + span169[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-500.0601f, 464f, 209.26236f), 896); + index2++; + span169[index2] = new QuestStep(EInteractionType.Interact, 2010869u, new Vector3(-505.2415f, 463.95044f, 217.60889f), 896) { SkipConditions = new SkipConditions { @@ -245004,8 +296972,10 @@ public static class AssemblyQuestLoader } } }; - span65[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-500.03152f, 401f, -3.3307662f), 896); - span65[4] = new QuestStep(EInteractionType.Interact, 2010870u, new Vector3(-541.619f, 400.99182f, -36.209717f), 896) + index2++; + span169[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-500.03152f, 401f, -3.3307662f), 896); + index2++; + span169[index2] = new QuestStep(EInteractionType.Interact, 2010870u, new Vector3(-541.619f, 400.99182f, -36.209717f), 896) { SkipConditions = new SkipConditions { @@ -245015,29 +296985,34 @@ public static class AssemblyQuestLoader } } }; - span65[5] = new QuestStep(EInteractionType.Interact, 1032073u, new Vector3(-560.0824f, 383f, -139.08606f), 896); + index2++; + span169[index2] = new QuestStep(EInteractionType.Interact, 1032073u, new Vector3(-560.0824f, 383f, -139.08606f), 896); obj107.Steps = list169; reference127 = obj107; - ref QuestSequence reference128 = ref span64[2]; + num++; + ref QuestSequence reference128 = ref span166[num]; QuestSequence obj108 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - Span span66 = CollectionsMarshal.AsSpan(list170); - span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-557.9587f, 383f, -141.83781f), 896) + index2 = 2; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-557.9587f, 383f, -141.83781f), 896) { RestartNavigationIfCancelled = false }; - span66[1] = new QuestStep(EInteractionType.Interact, 1032025u, new Vector3(-573.6935f, 352.99423f, -264.0879f), 896) + num2++; + span170[num2] = new QuestStep(EInteractionType.Interact, 1032025u, new Vector3(-573.6935f, 352.99423f, -264.0879f), 896) { DelaySecondsAtStart = 5f }; obj108.Steps = list170; reference128 = obj108; - ref QuestSequence reference129 = ref span64[3]; + num++; + ref QuestSequence reference129 = ref span166[num]; QuestSequence obj109 = new QuestSequence { Sequence = 3 @@ -245045,8 +297020,9 @@ public static class AssemblyQuestLoader num2 = 3; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span67 = CollectionsMarshal.AsSpan(list171); - span67[0] = new QuestStep(EInteractionType.Interact, 2010874u, new Vector3(-626.5507f, 340.96277f, -367.02527f), 896) + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span171[index2] = new QuestStep(EInteractionType.Interact, 2010874u, new Vector3(-626.5507f, 340.96277f, -367.02527f), 896) { SkipConditions = new SkipConditions { @@ -245056,7 +297032,8 @@ public static class AssemblyQuestLoader } } }; - span67[1] = new QuestStep(EInteractionType.Interact, 2010872u, new Vector3(-697.87134f, 339.1621f, -378.34747f), 896) + index2++; + span171[index2] = new QuestStep(EInteractionType.Interact, 2010872u, new Vector3(-697.87134f, 339.1621f, -378.34747f), 896) { SkipConditions = new SkipConditions { @@ -245066,21 +297043,26 @@ public static class AssemblyQuestLoader } } }; - span67[2] = new QuestStep(EInteractionType.Interact, 2010825u, new Vector3(-708.21704f, 339.19275f, -350.57605f), 896); + index2++; + span171[index2] = new QuestStep(EInteractionType.Interact, 2010825u, new Vector3(-708.21704f, 339.19275f, -350.57605f), 896); obj109.Steps = list171; reference129 = obj109; - ref QuestSequence reference130 = ref span64[4]; + num++; + ref QuestSequence reference130 = ref span166[num]; QuestSequence obj110 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1032027u, new Vector3(-675.1965f, 335.42987f, -293.87354f), 896); + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span172[num2] = new QuestStep(EInteractionType.Interact, 1032027u, new Vector3(-675.1965f, 335.42987f, -293.87354f), 896); obj110.Steps = list172; reference130 = obj110; - ref QuestSequence reference131 = ref span64[5]; + num++; + ref QuestSequence reference131 = ref span166[num]; QuestSequence obj111 = new QuestSequence { Sequence = 5 @@ -245088,12 +297070,14 @@ public static class AssemblyQuestLoader num2 = 7; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span68 = CollectionsMarshal.AsSpan(list173); - span68[0] = new QuestStep(EInteractionType.Interact, 2010882u, new Vector3(-684.01624f, 335.8662f, -292.04242f), 896) + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.Interact, 2010882u, new Vector3(-684.01624f, 335.8662f, -292.04242f), 896) { TargetTerritoryId = (ushort)896 }; - span68[1] = new QuestStep(EInteractionType.Interact, 2010871u, new Vector3(-676.2646f, -482.9328f, 612.4818f), 896) + index2++; + span173[index2] = new QuestStep(EInteractionType.Interact, 2010871u, new Vector3(-676.2646f, -482.9328f, 612.4818f), 896) { SkipConditions = new SkipConditions { @@ -245103,35 +297087,50 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference132 = ref span68[2]; + index2++; + ref QuestStep reference132 = ref span173[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2010827u, new Vector3(-688.2887f, -484.00098f, 582.2689f), 896); - num3 = 6; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - Span span69 = CollectionsMarshal.AsSpan(list174); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list174 = new List(index3); + CollectionsMarshal.SetCount(list174, index3); + Span span174 = CollectionsMarshal.AsSpan(list174); + num3 = 0; + span174[num3] = null; + num3++; + span174[num3] = null; + num3++; + span174[num3] = null; + num3++; + span174[num3] = null; + num3++; + span174[num3] = null; + num3++; + span174[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list174; reference132 = questStep4; - ref QuestStep reference133 = ref span68[3]; + index2++; + ref QuestStep reference133 = ref span173[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2010826u, new Vector3(-747.982f, -489.98248f, 603.1128f), 896); num3 = 6; List list175 = new List(num3); CollectionsMarshal.SetCount(list175, num3); - Span span70 = CollectionsMarshal.AsSpan(list175); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span175 = CollectionsMarshal.AsSpan(list175); + index3 = 0; + span175[index3] = null; + index3++; + span175[index3] = null; + index3++; + span175[index3] = null; + index3++; + span175[index3] = null; + index3++; + span175[index3] = null; + index3++; + span175[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list175; reference133 = questStep5; - span68[4] = new QuestStep(EInteractionType.Interact, 2010875u, new Vector3(-712.1538f, -495.99454f, 562.3406f), 896) + index2++; + span173[index2] = new QuestStep(EInteractionType.Interact, 2010875u, new Vector3(-712.1538f, -495.99454f, 562.3406f), 896) { SkipConditions = new SkipConditions { @@ -245141,7 +297140,8 @@ public static class AssemblyQuestLoader } } }; - span68[5] = new QuestStep(EInteractionType.Interact, 2010873u, new Vector3(-711.2383f, -498.00873f, 547.1732f), 896) + index2++; + span173[index2] = new QuestStep(EInteractionType.Interact, 2010873u, new Vector3(-711.2383f, -498.00873f, 547.1732f), 896) { SkipConditions = new SkipConditions { @@ -245151,36 +297151,46 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference134 = ref span68[6]; + index2++; + ref QuestStep reference134 = ref span173[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1032150u, new Vector3(-729.3965f, -499.74826f, 546.4408f), 896); - num3 = 6; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - Span span71 = CollectionsMarshal.AsSpan(list176); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list176 = new List(index3); + CollectionsMarshal.SetCount(list176, index3); + Span span176 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span176[num3] = null; + num3++; + span176[num3] = null; + num3++; + span176[num3] = null; + num3++; + span176[num3] = null; + num3++; + span176[num3] = null; + num3++; + span176[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list176; reference134 = questStep6; obj111.Steps = list173; reference131 = obj111; - ref QuestSequence reference135 = ref span64[6]; + num++; + ref QuestSequence reference135 = ref span166[num]; QuestSequence obj112 = new QuestSequence { Sequence = 6 }; - num2 = 5; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - Span span72 = CollectionsMarshal.AsSpan(list177); - span72[0] = new QuestStep(EInteractionType.Interact, 2010944u, new Vector3(-836.6369f, -492.24078f, 498.0697f), 896) + index2 = 5; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.Interact, 2010944u, new Vector3(-836.6369f, -492.24078f, 498.0697f), 896) { TargetTerritoryId = (ushort)896 }; - span72[1] = new QuestStep(EInteractionType.Interact, 2010878u, new Vector3(874.7843f, -676.02045f, 884.9774f), 896) + num2++; + span177[num2] = new QuestStep(EInteractionType.Interact, 2010878u, new Vector3(874.7843f, -676.02045f, 884.9774f), 896) { SkipConditions = new SkipConditions { @@ -245190,7 +297200,8 @@ public static class AssemblyQuestLoader } } }; - span72[2] = new QuestStep(EInteractionType.Interact, 2010877u, new Vector3(911.13135f, -677.0276f, 894.1023f), 896) + num2++; + span177[num2] = new QuestStep(EInteractionType.Interact, 2010877u, new Vector3(911.13135f, -677.0276f, 894.1023f), 896) { SkipConditions = new SkipConditions { @@ -245200,7 +297211,8 @@ public static class AssemblyQuestLoader } } }; - span72[3] = new QuestStep(EInteractionType.Interact, 2010876u, new Vector3(900.05334f, -673.0602f, 828.70215f), 896) + num2++; + span177[num2] = new QuestStep(EInteractionType.Interact, 2010876u, new Vector3(900.05334f, -673.0602f, 828.70215f), 896) { SkipConditions = new SkipConditions { @@ -245210,10 +297222,12 @@ public static class AssemblyQuestLoader } } }; - span72[4] = new QuestStep(EInteractionType.Interact, 1032075u, new Vector3(899.5956f, -677f, 880.39966f), 896); + num2++; + span177[num2] = new QuestStep(EInteractionType.Interact, 1032075u, new Vector3(899.5956f, -677f, 880.39966f), 896); obj112.Steps = list177; reference135 = obj112; - ref QuestSequence reference136 = ref span64[7]; + num++; + ref QuestSequence reference136 = ref span166[num]; QuestSequence obj113 = new QuestSequence { Sequence = 7 @@ -245221,26 +297235,32 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.Interact, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); obj113.Steps = list178; reference136 = obj113; - ref QuestSequence reference137 = ref span64[8]; + num++; + ref QuestSequence reference137 = ref span166[num]; QuestSequence obj114 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - Span span73 = CollectionsMarshal.AsSpan(list179); - span73[0] = new QuestStep(EInteractionType.Interact, 2010831u, new Vector3(-499.01584f, 485.2826f, 280.26245f), 896) + index2 = 2; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.Interact, 2010831u, new Vector3(-499.01584f, 485.2826f, 280.26245f), 896) { TargetTerritoryId = (ushort)895 }; - span73[1] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); + num2++; + span179[num2] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); obj114.Steps = list179; reference137 = obj114; - ref QuestSequence reference138 = ref span64[9]; + num++; + ref QuestSequence reference138 = ref span166[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -245248,12 +297268,14 @@ public static class AssemblyQuestLoader num2 = 2; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span74 = CollectionsMarshal.AsSpan(list180); - span74[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span180[index2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - ref QuestStep reference139 = ref span74[1]; + index2++; + ref QuestStep reference139 = ref span180[index2]; QuestStep obj116 = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true @@ -245261,7 +297283,9 @@ public static class AssemblyQuestLoader num3 = 1; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - CollectionsMarshal.AsSpan(list181)[0] = new DialogueChoice + Span span181 = CollectionsMarshal.AsSpan(list181); + index3 = 0; + span181[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA110_03720_Q1_000_000"), @@ -245279,29 +297303,36 @@ public static class AssemblyQuestLoader num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - CollectionsMarshal.AsSpan(list182)[0] = "liza"; + Span span182 = CollectionsMarshal.AsSpan(list182); + index = 0; + span182[index] = "liza"; questRoot22.Author = list182; - num = 10; - List list183 = new List(num); - CollectionsMarshal.SetCount(list183, num); - Span span75 = CollectionsMarshal.AsSpan(list183); - ref QuestSequence reference140 = ref span75[0]; + index = 10; + List list183 = new List(index); + CollectionsMarshal.SetCount(list183, index); + Span span183 = CollectionsMarshal.AsSpan(list183); + num = 0; + ref QuestSequence reference140 = ref span183[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - ref QuestStep reference141 = ref CollectionsMarshal.AsSpan(list184)[0]; + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + ref QuestStep reference141 = ref span184[num2]; QuestStep obj118 = new QuestStep(EInteractionType.AcceptQuest, 1032229u, new Vector3(-501.1826f, 484.0032f, 244.2511f), 896) { StopDistance = 4f }; - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new DialogueChoice + index3 = 1; + List list185 = new List(index3); + CollectionsMarshal.SetCount(list185, index3); + Span span185 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span185[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKTA120_03721_Q2_000_000") @@ -245310,7 +297341,8 @@ public static class AssemblyQuestLoader reference141 = obj118; obj117.Steps = list184; reference140 = obj117; - ref QuestSequence reference142 = ref span75[1]; + num++; + ref QuestSequence reference142 = ref span183[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -245318,8 +297350,9 @@ public static class AssemblyQuestLoader num2 = 6; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span76 = CollectionsMarshal.AsSpan(list186); - span76[0] = new QuestStep(EInteractionType.Interact, 2010848u, new Vector3(-504.78372f, 483.97034f, 234.82104f), 896) + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.Interact, 2010848u, new Vector3(-504.78372f, 483.97034f, 234.82104f), 896) { SkipConditions = new SkipConditions { @@ -245329,8 +297362,10 @@ public static class AssemblyQuestLoader } } }; - span76[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-500.0601f, 464f, 209.26236f), 896); - span76[2] = new QuestStep(EInteractionType.Interact, 2010869u, new Vector3(-505.2415f, 463.95044f, 217.60889f), 896) + index2++; + span186[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-500.0601f, 464f, 209.26236f), 896); + index2++; + span186[index2] = new QuestStep(EInteractionType.Interact, 2010869u, new Vector3(-505.2415f, 463.95044f, 217.60889f), 896) { SkipConditions = new SkipConditions { @@ -245340,8 +297375,10 @@ public static class AssemblyQuestLoader } } }; - span76[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-500.03152f, 401f, -3.3307662f), 896); - span76[4] = new QuestStep(EInteractionType.Interact, 2010870u, new Vector3(-541.619f, 400.99182f, -36.209717f), 896) + index2++; + span186[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-500.03152f, 401f, -3.3307662f), 896); + index2++; + span186[index2] = new QuestStep(EInteractionType.Interact, 2010870u, new Vector3(-541.619f, 400.99182f, -36.209717f), 896) { SkipConditions = new SkipConditions { @@ -245351,29 +297388,34 @@ public static class AssemblyQuestLoader } } }; - span76[5] = new QuestStep(EInteractionType.Interact, 1032074u, new Vector3(-560.0824f, 383f, -139.08606f), 896); + index2++; + span186[index2] = new QuestStep(EInteractionType.Interact, 1032074u, new Vector3(-560.0824f, 383f, -139.08606f), 896); obj119.Steps = list186; reference142 = obj119; - ref QuestSequence reference143 = ref span75[2]; + num++; + ref QuestSequence reference143 = ref span183[num]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - Span span77 = CollectionsMarshal.AsSpan(list187); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-557.9587f, 383f, -141.83781f), 896) + index2 = 2; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-557.9587f, 383f, -141.83781f), 896) { RestartNavigationIfCancelled = false }; - span77[1] = new QuestStep(EInteractionType.Interact, 1032026u, new Vector3(-573.6935f, 352.99423f, -264.0879f), 896) + num2++; + span187[num2] = new QuestStep(EInteractionType.Interact, 1032026u, new Vector3(-573.6935f, 352.99423f, -264.0879f), 896) { DelaySecondsAtStart = 5f }; obj120.Steps = list187; reference143 = obj120; - ref QuestSequence reference144 = ref span75[3]; + num++; + ref QuestSequence reference144 = ref span183[num]; QuestSequence obj121 = new QuestSequence { Sequence = 3 @@ -245381,8 +297423,9 @@ public static class AssemblyQuestLoader num2 = 3; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span78 = CollectionsMarshal.AsSpan(list188); - span78[0] = new QuestStep(EInteractionType.Interact, 2010874u, new Vector3(-626.5507f, 340.96277f, -367.02527f), 896) + Span span188 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span188[index2] = new QuestStep(EInteractionType.Interact, 2010874u, new Vector3(-626.5507f, 340.96277f, -367.02527f), 896) { SkipConditions = new SkipConditions { @@ -245392,7 +297435,8 @@ public static class AssemblyQuestLoader } } }; - span78[1] = new QuestStep(EInteractionType.Interact, 2010872u, new Vector3(-697.87134f, 339.1621f, -378.34747f), 896) + index2++; + span188[index2] = new QuestStep(EInteractionType.Interact, 2010872u, new Vector3(-697.87134f, 339.1621f, -378.34747f), 896) { SkipConditions = new SkipConditions { @@ -245402,21 +297446,26 @@ public static class AssemblyQuestLoader } } }; - span78[2] = new QuestStep(EInteractionType.Interact, 2010834u, new Vector3(-708.21704f, 339.19275f, -350.57605f), 896); + index2++; + span188[index2] = new QuestStep(EInteractionType.Interact, 2010834u, new Vector3(-708.21704f, 339.19275f, -350.57605f), 896); obj121.Steps = list188; reference144 = obj121; - ref QuestSequence reference145 = ref span75[4]; + num++; + ref QuestSequence reference145 = ref span183[num]; QuestSequence obj122 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1032028u, new Vector3(-675.1965f, 335.42987f, -293.87354f), 896); + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.Interact, 1032028u, new Vector3(-675.1965f, 335.42987f, -293.87354f), 896); obj122.Steps = list189; reference145 = obj122; - ref QuestSequence reference146 = ref span75[5]; + num++; + ref QuestSequence reference146 = ref span183[num]; QuestSequence obj123 = new QuestSequence { Sequence = 5 @@ -245424,12 +297473,14 @@ public static class AssemblyQuestLoader num2 = 7; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span79 = CollectionsMarshal.AsSpan(list190); - span79[0] = new QuestStep(EInteractionType.Interact, 2010882u, new Vector3(-684.01624f, 335.8662f, -292.04242f), 896) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.Interact, 2010882u, new Vector3(-684.01624f, 335.8662f, -292.04242f), 896) { TargetTerritoryId = (ushort)896 }; - span79[1] = new QuestStep(EInteractionType.Interact, 2010871u, new Vector3(-676.2646f, -482.9328f, 612.4818f), 896) + index2++; + span190[index2] = new QuestStep(EInteractionType.Interact, 2010871u, new Vector3(-676.2646f, -482.9328f, 612.4818f), 896) { SkipConditions = new SkipConditions { @@ -245439,35 +297490,50 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference147 = ref span79[2]; + index2++; + ref QuestStep reference147 = ref span190[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2010836u, new Vector3(-688.2887f, -484.00098f, 582.2689f), 896); num3 = 6; List list191 = new List(num3); CollectionsMarshal.SetCount(list191, num3); - Span span80 = CollectionsMarshal.AsSpan(list191); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span191 = CollectionsMarshal.AsSpan(list191); + index3 = 0; + span191[index3] = null; + index3++; + span191[index3] = null; + index3++; + span191[index3] = null; + index3++; + span191[index3] = null; + index3++; + span191[index3] = null; + index3++; + span191[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list191; reference147 = questStep7; - ref QuestStep reference148 = ref span79[3]; + index2++; + ref QuestStep reference148 = ref span190[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2010835u, new Vector3(-747.982f, -489.98248f, 603.1128f), 896); - num3 = 6; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - Span span81 = CollectionsMarshal.AsSpan(list192); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list192 = new List(index3); + CollectionsMarshal.SetCount(list192, index3); + Span span192 = CollectionsMarshal.AsSpan(list192); + num3 = 0; + span192[num3] = null; + num3++; + span192[num3] = null; + num3++; + span192[num3] = null; + num3++; + span192[num3] = null; + num3++; + span192[num3] = null; + num3++; + span192[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list192; reference148 = questStep8; - span79[4] = new QuestStep(EInteractionType.Interact, 2010875u, new Vector3(-712.1538f, -495.99454f, 562.3406f), 896) + index2++; + span190[index2] = new QuestStep(EInteractionType.Interact, 2010875u, new Vector3(-712.1538f, -495.99454f, 562.3406f), 896) { SkipConditions = new SkipConditions { @@ -245477,7 +297543,8 @@ public static class AssemblyQuestLoader } } }; - span79[5] = new QuestStep(EInteractionType.Interact, 2010873u, new Vector3(-711.2383f, -498.00873f, 547.1732f), 896) + index2++; + span190[index2] = new QuestStep(EInteractionType.Interact, 2010873u, new Vector3(-711.2383f, -498.00873f, 547.1732f), 896) { SkipConditions = new SkipConditions { @@ -245487,36 +297554,46 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference149 = ref span79[6]; + index2++; + ref QuestStep reference149 = ref span190[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1032150u, new Vector3(-729.3965f, -499.74826f, 546.4408f), 896); num3 = 6; List list193 = new List(num3); CollectionsMarshal.SetCount(list193, num3); - Span span82 = CollectionsMarshal.AsSpan(list193); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span193 = CollectionsMarshal.AsSpan(list193); + index3 = 0; + span193[index3] = null; + index3++; + span193[index3] = null; + index3++; + span193[index3] = null; + index3++; + span193[index3] = null; + index3++; + span193[index3] = null; + index3++; + span193[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list193; reference149 = questStep9; obj123.Steps = list190; reference146 = obj123; - ref QuestSequence reference150 = ref span75[6]; + num++; + ref QuestSequence reference150 = ref span183[num]; QuestSequence obj124 = new QuestSequence { Sequence = 6 }; - num2 = 5; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span83 = CollectionsMarshal.AsSpan(list194); - span83[0] = new QuestStep(EInteractionType.Interact, 2010944u, new Vector3(-836.6369f, -492.24078f, 498.0697f), 896) + index2 = 5; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.Interact, 2010944u, new Vector3(-836.6369f, -492.24078f, 498.0697f), 896) { TargetTerritoryId = (ushort)896 }; - span83[1] = new QuestStep(EInteractionType.Interact, 2010878u, new Vector3(874.7843f, -676.02045f, 884.9774f), 896) + num2++; + span194[num2] = new QuestStep(EInteractionType.Interact, 2010878u, new Vector3(874.7843f, -676.02045f, 884.9774f), 896) { SkipConditions = new SkipConditions { @@ -245526,7 +297603,8 @@ public static class AssemblyQuestLoader } } }; - span83[2] = new QuestStep(EInteractionType.Interact, 2010877u, new Vector3(911.13135f, -677.0276f, 894.1023f), 896) + num2++; + span194[num2] = new QuestStep(EInteractionType.Interact, 2010877u, new Vector3(911.13135f, -677.0276f, 894.1023f), 896) { SkipConditions = new SkipConditions { @@ -245536,7 +297614,8 @@ public static class AssemblyQuestLoader } } }; - span83[3] = new QuestStep(EInteractionType.Interact, 2010876u, new Vector3(900.05334f, -673.0602f, 828.70215f), 896) + num2++; + span194[num2] = new QuestStep(EInteractionType.Interact, 2010876u, new Vector3(900.05334f, -673.0602f, 828.70215f), 896) { SkipConditions = new SkipConditions { @@ -245546,10 +297625,12 @@ public static class AssemblyQuestLoader } } }; - span83[4] = new QuestStep(EInteractionType.Interact, 1032076u, new Vector3(899.93115f, -677f, 881.43726f), 896); + num2++; + span194[num2] = new QuestStep(EInteractionType.Interact, 1032076u, new Vector3(899.93115f, -677f, 881.43726f), 896); obj124.Steps = list194; reference150 = obj124; - ref QuestSequence reference151 = ref span75[7]; + num++; + ref QuestSequence reference151 = ref span183[num]; QuestSequence obj125 = new QuestSequence { Sequence = 7 @@ -245557,26 +297638,32 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span195[index2] = new QuestStep(EInteractionType.Interact, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); obj125.Steps = list195; reference151 = obj125; - ref QuestSequence reference152 = ref span75[8]; + num++; + ref QuestSequence reference152 = ref span183[num]; QuestSequence obj126 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - Span span84 = CollectionsMarshal.AsSpan(list196); - span84[0] = new QuestStep(EInteractionType.Interact, 2010831u, new Vector3(-499.01584f, 485.2826f, 280.26245f), 896) + index2 = 2; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.Interact, 2010831u, new Vector3(-499.01584f, 485.2826f, 280.26245f), 896) { TargetTerritoryId = (ushort)895 }; - span84[1] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); + num2++; + span196[num2] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); obj126.Steps = list196; reference152 = obj126; - ref QuestSequence reference153 = ref span75[9]; + num++; + ref QuestSequence reference153 = ref span183[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -245584,20 +297671,24 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span85 = CollectionsMarshal.AsSpan(list197); - span85[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - ref QuestStep reference154 = ref span85[1]; + index2++; + ref QuestStep reference154 = ref span197[index2]; QuestStep obj128 = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true }; - num3 = 1; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = new DialogueChoice + index3 = 1; + List list198 = new List(index3); + CollectionsMarshal.SetCount(list198, index3); + Span span198 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span198[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA120_03721_Q1_000_000"), @@ -245615,22 +297706,26 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "liza"; + Span span199 = CollectionsMarshal.AsSpan(list199); + index = 0; + span199[index] = "liza"; questRoot23.Author = list199; - num = 5; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span86 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference155 = ref span86[0]; + index = 5; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + Span span200 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference155 = ref span200[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 }; - num2 = 11; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - Span span87 = CollectionsMarshal.AsSpan(list201); - ref QuestStep reference156 = ref span87[0]; + index2 = 11; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + ref QuestStep reference156 = ref span201[num2]; QuestStep obj130 = new QuestStep(EInteractionType.None, null, null, 886) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -245645,76 +297740,95 @@ public static class AssemblyQuestLoader num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = 886; + Span span202 = CollectionsMarshal.AsSpan(list202); + index3 = 0; + span202[index3] = 886; skipAetheryteCondition.InTerritory = list202; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj130.SkipConditions = skipConditions; reference156 = obj130; - ref QuestStep reference157 = ref span87[1]; + num2++; + ref QuestStep reference157 = ref span201[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1031681u, new Vector3(8.102478f, -16.00001f, 146.34924f), 886); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list203 = new List(num3); - CollectionsMarshal.SetCount(list203, num3); - CollectionsMarshal.AsSpan(list203)[0] = 60091u; + index3 = 1; + List list203 = new List(index3); + CollectionsMarshal.SetCount(list203, index3); + Span span203 = CollectionsMarshal.AsSpan(list203); + num3 = 0; + span203[num3] = 60091u; skipStepConditions.NotNamePlateIconId = list203; skipConditions2.StepIf = skipStepConditions; questStep10.SkipConditions = skipConditions2; reference157 = questStep10; - ref QuestStep reference158 = ref span87[2]; + num2++; + ref QuestStep reference158 = ref span201[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1031677u, new Vector3(52.750366f, -16f, 168.9325f), 886); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 1; List list204 = new List(num3); CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = 60091u; + Span span204 = CollectionsMarshal.AsSpan(list204); + index3 = 0; + span204[index3] = 60091u; skipStepConditions2.NotNamePlateIconId = list204; skipConditions3.StepIf = skipStepConditions2; questStep11.SkipConditions = skipConditions3; reference158 = questStep11; - ref QuestStep reference159 = ref span87[3]; + num2++; + ref QuestStep reference159 = ref span201[num2]; QuestStep obj131 = new QuestStep(EInteractionType.Interact, 1031692u, new Vector3(52.780884f, -16.000002f, 170.61108f), 886) { StopDistance = 5f }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = 60091u; + index3 = 1; + List list205 = new List(index3); + CollectionsMarshal.SetCount(list205, index3); + Span span205 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + span205[num3] = 60091u; skipStepConditions3.NotNamePlateIconId = list205; skipConditions4.StepIf = skipStepConditions3; obj131.SkipConditions = skipConditions4; reference159 = obj131; - span87[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(39.29597f, -16.000002f, 140.2944f), 886); - ref QuestStep reference160 = ref span87[5]; + num2++; + span201[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(39.29597f, -16.000002f, 140.2944f), 886); + num2++; + ref QuestStep reference160 = ref span201[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1031680u, new Vector3(40.482178f, -16.000002f, 138.47559f), 886); SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 1; List list206 = new List(num3); CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = 60091u; + Span span206 = CollectionsMarshal.AsSpan(list206); + index3 = 0; + span206[index3] = 60091u; skipStepConditions4.NotNamePlateIconId = list206; skipConditions5.StepIf = skipStepConditions4; questStep12.SkipConditions = skipConditions5; reference160 = questStep12; - ref QuestStep reference161 = ref span87[6]; + num2++; + ref QuestStep reference161 = ref span201[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1031693u, new Vector3(-21.25586f, -16f, 138.93335f), 886); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - CollectionsMarshal.AsSpan(list207)[0] = 60091u; + index3 = 1; + List list207 = new List(index3); + CollectionsMarshal.SetCount(list207, index3); + Span span207 = CollectionsMarshal.AsSpan(list207); + num3 = 0; + span207[num3] = 60091u; skipStepConditions5.NotNamePlateIconId = list207; skipConditions6.StepIf = skipStepConditions5; questStep13.SkipConditions = skipConditions6; reference161 = questStep13; - ref QuestStep reference162 = ref span87[7]; + num2++; + ref QuestStep reference162 = ref span201[num2]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 1031694u, new Vector3(-18.60083f, -16f, 138.99438f), 886) { StopDistance = 7f @@ -245724,39 +297838,49 @@ public static class AssemblyQuestLoader num3 = 1; List list208 = new List(num3); CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = 60091u; + Span span208 = CollectionsMarshal.AsSpan(list208); + index3 = 0; + span208[index3] = 60091u; skipStepConditions6.NotNamePlateIconId = list208; skipConditions7.StepIf = skipStepConditions6; obj132.SkipConditions = skipConditions7; reference162 = obj132; - ref QuestStep reference163 = ref span87[8]; + num2++; + ref QuestStep reference163 = ref span201[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1031695u, new Vector3(-32.852783f, -16f, 169.9397f), 886); SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 1; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = 60091u; + index3 = 1; + List list209 = new List(index3); + CollectionsMarshal.SetCount(list209, index3); + Span span209 = CollectionsMarshal.AsSpan(list209); + num3 = 0; + span209[num3] = 60091u; skipStepConditions7.NotNamePlateIconId = list209; skipConditions8.StepIf = skipStepConditions7; questStep14.SkipConditions = skipConditions8; reference163 = questStep14; - ref QuestStep reference164 = ref span87[9]; + num2++; + ref QuestStep reference164 = ref span201[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1031681u, new Vector3(8.102478f, -16.00001f, 146.34924f), 886); SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); num3 = 1; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = 60091u; + Span span210 = CollectionsMarshal.AsSpan(list210); + index3 = 0; + span210[index3] = 60091u; skipStepConditions8.NotNamePlateIconId = list210; skipConditions9.StepIf = skipStepConditions8; questStep15.SkipConditions = skipConditions9; reference164 = questStep15; - span87[10] = new QuestStep(EInteractionType.AcceptQuest, 1031992u, new Vector3(-8.255188f, -16f, 162.43225f), 886); + num2++; + span201[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031992u, new Vector3(-8.255188f, -16f, 162.43225f), 886); obj129.Steps = list201; reference155 = obj129; - ref QuestSequence reference165 = ref span86[1]; + num++; + ref QuestSequence reference165 = ref span200[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -245764,26 +297888,32 @@ public static class AssemblyQuestLoader num2 = 2; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span88 = CollectionsMarshal.AsSpan(list211); - span88[0] = new QuestStep(EInteractionType.Interact, 1031683u, new Vector3(13.260071f, -15.2f, 183.64221f), 886) + Span span211 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span211[index2] = new QuestStep(EInteractionType.Interact, 1031683u, new Vector3(13.260071f, -15.2f, 183.64221f), 886) { TargetTerritoryId = (ushort)418 }; - span88[1] = new QuestStep(EInteractionType.Interact, 1031995u, new Vector3(21.86615f, -12.021002f, 54.184692f), 418); + index2++; + span211[index2] = new QuestStep(EInteractionType.Interact, 1031995u, new Vector3(21.86615f, -12.021002f, 54.184692f), 418); obj133.Steps = list211; reference165 = obj133; - ref QuestSequence reference166 = ref span86[2]; + num++; + ref QuestSequence reference166 = ref span200[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1032843u, new Vector3(21.774597f, -12.020998f, 54.09314f), 418); + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span212[num2] = new QuestStep(EInteractionType.Interact, 1032843u, new Vector3(21.774597f, -12.020998f, 54.09314f), 418); obj134.Steps = list212; reference166 = obj134; - ref QuestSequence reference167 = ref span86[3]; + num++; + ref QuestSequence reference167 = ref span200[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -245791,8 +297921,9 @@ public static class AssemblyQuestLoader num2 = 3; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span89 = CollectionsMarshal.AsSpan(list213); - ref QuestStep reference168 = ref span89[0]; + Span span213 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + ref QuestStep reference168 = ref span213[index2]; QuestStep obj136 = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AethernetShortcut = new AethernetShortcut @@ -245801,33 +297932,47 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num3 = 6; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - Span span90 = CollectionsMarshal.AsSpan(list214); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list214 = new List(index3); + CollectionsMarshal.SetCount(list214, index3); + Span span214 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj136.CompletionQuestVariablesFlags = list214; reference168 = obj136; - ref QuestStep reference169 = ref span89[1]; + index2++; + ref QuestStep reference169 = ref span213[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); num3 = 6; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - Span span91 = CollectionsMarshal.AsSpan(list215); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span215 = CollectionsMarshal.AsSpan(list215); + index3 = 0; + span215[index3] = null; + index3++; + span215[index3] = null; + index3++; + span215[index3] = null; + index3++; + span215[index3] = null; + index3++; + span215[index3] = null; + index3++; + span215[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list215; reference169 = questStep16; - ref QuestStep reference170 = ref span89[2]; + index2++; + ref QuestStep reference170 = ref span213[index2]; QuestStep obj137 = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) { AethernetShortcut = new AethernetShortcut @@ -245836,30 +297981,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardJeweledCrozier } }; - num3 = 6; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - Span span92 = CollectionsMarshal.AsSpan(list216); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list216 = new List(index3); + CollectionsMarshal.SetCount(list216, index3); + Span span216 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span216[num3] = null; + num3++; + span216[num3] = null; + num3++; + span216[num3] = null; + num3++; + span216[num3] = null; + num3++; + span216[num3] = null; + num3++; + span216[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj137.CompletionQuestVariablesFlags = list216; reference170 = obj137; obj135.Steps = list213; reference167 = obj135; - ref QuestSequence reference171 = ref span86[4]; + num++; + ref QuestSequence reference171 = ref span200[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - Span span93 = CollectionsMarshal.AsSpan(list217); - span93[0] = new QuestStep(EInteractionType.Interact, 1031682u, new Vector3(152.97156f, -20.000004f, 63.767456f), 418) + index2 = 2; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + Span span217 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span217[num2] = new QuestStep(EInteractionType.Interact, 1031682u, new Vector3(152.97156f, -20.000004f, 63.767456f), 418) { TargetTerritoryId = (ushort)886, AethernetShortcut = new AethernetShortcut @@ -245868,7 +298021,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardBrume } }; - span93[1] = new QuestStep(EInteractionType.CompleteQuest, 1031991u, new Vector3(-7.7669067f, -16.000002f, 163.3783f), 886) + num2++; + span217[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031991u, new Vector3(-7.7669067f, -16.000002f, 163.3783f), 886) { NextQuestId = new QuestId(3726) }; @@ -245881,13 +298035,16 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; + Span span218 = CollectionsMarshal.AsSpan(list218); + index = 0; + span218[index] = "liza"; questRoot24.Author = list218; - num = 3; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span94 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference172 = ref span94[0]; + index = 3; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + Span span219 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference172 = ref span219[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -245895,18 +298052,23 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031991u, new Vector3(-7.7669067f, -16.000002f, 163.3783f), 886); + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span220[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031991u, new Vector3(-7.7669067f, -16.000002f, 163.3783f), 886); obj139.Steps = list220; reference172 = obj139; - ref QuestSequence reference173 = ref span94[1]; + num++; + ref QuestSequence reference173 = ref span219[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - ref QuestStep reference174 = ref CollectionsMarshal.AsSpan(list221)[0]; + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + ref QuestStep reference174 = ref span221[num2]; QuestStep obj141 = new QuestStep(EInteractionType.Interact, 1032832u, new Vector3(-8.255188f, -16f, 162.40173f), 886) { StopDistance = 5f @@ -245914,25 +298076,29 @@ public static class AssemblyQuestLoader num3 = 4; List list222 = new List(num3); CollectionsMarshal.SetCount(list222, num3); - Span span95 = CollectionsMarshal.AsSpan(list222); - span95[0] = new DialogueChoice + Span span222 = CollectionsMarshal.AsSpan(list222); + index3 = 0; + span222[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKHA102_03726_Q1_000_000") }; - span95[1] = new DialogueChoice + index3++; + span222[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA102_03726_Q2_000_000"), Answer = new ExcelRef("TEXT_LUCKHA102_03726_A2_000_002") }; - span95[2] = new DialogueChoice + index3++; + span222[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA102_03726_Q3_000_000"), Answer = new ExcelRef("TEXT_LUCKHA102_03726_A3_000_001") }; - span95[3] = new DialogueChoice + index3++; + span222[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA102_03726_Q4_000_000"), @@ -245942,7 +298108,8 @@ public static class AssemblyQuestLoader reference174 = obj141; obj140.Steps = list221; reference173 = obj140; - ref QuestSequence reference175 = ref span94[2]; + num++; + ref QuestSequence reference175 = ref span219[num]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue @@ -245950,7 +298117,9 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032832u, new Vector3(-8.255188f, -16f, 162.40173f), 886) + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span223[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032832u, new Vector3(-8.255188f, -16f, 162.40173f), 886) { StopDistance = 5f, NextQuestId = new QuestId(3727) @@ -245964,27 +298133,33 @@ public static class AssemblyQuestLoader num = 1; List list224 = new List(num); CollectionsMarshal.SetCount(list224, num); - CollectionsMarshal.AsSpan(list224)[0] = "liza"; + Span span224 = CollectionsMarshal.AsSpan(list224); + index = 0; + span224[index] = "liza"; questRoot25.Author = list224; - num = 5; - List list225 = new List(num); - CollectionsMarshal.SetCount(list225, num); - Span span96 = CollectionsMarshal.AsSpan(list225); - ref QuestSequence reference176 = ref span96[0]; + index = 5; + List list225 = new List(index); + CollectionsMarshal.SetCount(list225, index); + Span span225 = CollectionsMarshal.AsSpan(list225); + num = 0; + ref QuestSequence reference176 = ref span225[num]; QuestSequence obj143 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031998u, new Vector3(-6.9733887f, -16f, 164.20227f), 886) + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + Span span226 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span226[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031998u, new Vector3(-6.9733887f, -16f, 164.20227f), 886) { StopDistance = 5f }; obj143.Steps = list226; reference176 = obj143; - ref QuestSequence reference177 = ref span96[1]; + num++; + ref QuestSequence reference177 = ref span225[num]; QuestSequence obj144 = new QuestSequence { Sequence = 1 @@ -245992,22 +298167,26 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1031999u, new Vector3(-4.2268066f, 1.4791284f, 115.37341f), 418) + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.Interact, 1031999u, new Vector3(-4.2268066f, 1.4791284f, 115.37341f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj144.Steps = list227; reference177 = obj144; - ref QuestSequence reference178 = ref span96[2]; + num++; + ref QuestSequence reference178 = ref span225[num]; QuestSequence obj145 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span97 = CollectionsMarshal.AsSpan(list228); - span97[0] = new QuestStep(EInteractionType.None, null, null, 886) + index2 = 2; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.None, null, null, 886) { AethernetShortcut = new AethernetShortcut { @@ -246015,7 +298194,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardFirmament } }; - span97[1] = new QuestStep(EInteractionType.Interact, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886) + num2++; + span228[num2] = new QuestStep(EInteractionType.Interact, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886) { AethernetShortcut = new AethernetShortcut { @@ -246025,7 +298205,8 @@ public static class AssemblyQuestLoader }; obj145.Steps = list228; reference178 = obj145; - ref QuestSequence reference179 = ref span96[3]; + num++; + ref QuestSequence reference179 = ref span225[num]; QuestSequence obj146 = new QuestSequence { Sequence = 3 @@ -246033,18 +298214,23 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1032001u, new Vector3(161.79138f, -50f, 73.47217f), 886); + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span229[index2] = new QuestStep(EInteractionType.Interact, 1032001u, new Vector3(161.79138f, -50f, 73.47217f), 886); obj146.Steps = list229; reference179 = obj146; - ref QuestSequence reference180 = ref span96[4]; + num++; + ref QuestSequence reference180 = ref span225[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886) + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span230[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886) { NextQuestId = new QuestId(3728) }; @@ -246057,13 +298243,16 @@ public static class AssemblyQuestLoader num = 1; List list231 = new List(num); CollectionsMarshal.SetCount(list231, num); - CollectionsMarshal.AsSpan(list231)[0] = "liza"; + Span span231 = CollectionsMarshal.AsSpan(list231); + index = 0; + span231[index] = "liza"; questRoot26.Author = list231; - num = 6; - List list232 = new List(num); - CollectionsMarshal.SetCount(list232, num); - Span span98 = CollectionsMarshal.AsSpan(list232); - ref QuestSequence reference181 = ref span98[0]; + index = 6; + List list232 = new List(index); + CollectionsMarshal.SetCount(list232, index); + Span span232 = CollectionsMarshal.AsSpan(list232); + num = 0; + ref QuestSequence reference181 = ref span232[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 @@ -246071,21 +298260,27 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886); + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span233[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886); obj148.Steps = list233; reference181 = obj148; - ref QuestSequence reference182 = ref span98[1]; + num++; + ref QuestSequence reference182 = ref span232[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1032844u, new Vector3(147.93616f, -49.999996f, 76.920654f), 886); + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + Span span234 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span234[num2] = new QuestStep(EInteractionType.Interact, 1032844u, new Vector3(147.93616f, -49.999996f, 76.920654f), 886); obj149.Steps = list234; reference182 = obj149; - ref QuestSequence reference183 = ref span98[2]; + num++; + ref QuestSequence reference183 = ref span232[num]; QuestSequence obj150 = new QuestSequence { Sequence = 2 @@ -246093,8 +298288,9 @@ public static class AssemblyQuestLoader num2 = 2; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span99 = CollectionsMarshal.AsSpan(list235); - span99[0] = new QuestStep(EInteractionType.PurchaseItem, 1031689u, new Vector3(48.8136f, -16f, 150.92688f), 886) + Span span235 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span235[index2] = new QuestStep(EInteractionType.PurchaseItem, 1031689u, new Vector3(48.8136f, -16f, 150.92688f), 886) { Comment = "Buy cream yellow dye", AethernetShortcut = new AethernetShortcut @@ -246110,7 +298306,8 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262151u) } }; - span99[1] = new QuestStep(EInteractionType.Interact, 1032844u, new Vector3(147.93616f, -49.999996f, 76.920654f), 886) + index2++; + span235[index2] = new QuestStep(EInteractionType.Interact, 1032844u, new Vector3(147.93616f, -49.999996f, 76.920654f), 886) { AethernetShortcut = new AethernetShortcut { @@ -246120,15 +298317,18 @@ public static class AssemblyQuestLoader }; obj150.Steps = list235; reference183 = obj150; - ref QuestSequence reference184 = ref span98[3]; + num++; + ref QuestSequence reference184 = ref span232[num]; QuestSequence obj151 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - ref QuestStep reference185 = ref CollectionsMarshal.AsSpan(list236)[0]; + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + ref QuestStep reference185 = ref span236[num2]; QuestStep obj152 = new QuestStep(EInteractionType.Interact, 1032003u, new Vector3(94.92627f, -18.500006f, 171.1604f), 886) { AethernetShortcut = new AethernetShortcut @@ -246137,10 +298337,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.FirmamentMendicantsCourt } }; - num3 = 1; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - CollectionsMarshal.AsSpan(list237)[0] = new DialogueChoice + index3 = 1; + List list237 = new List(index3); + CollectionsMarshal.SetCount(list237, index3); + Span span237 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span237[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA104_03728_Q1_000_000"), @@ -246150,7 +298352,8 @@ public static class AssemblyQuestLoader reference185 = obj152; obj151.Steps = list236; reference184 = obj151; - ref QuestSequence reference186 = ref span98[4]; + num++; + ref QuestSequence reference186 = ref span232[num]; QuestSequence obj153 = new QuestSequence { Sequence = 4 @@ -246158,7 +298361,9 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 2010924u, new Vector3(103.1051f, -20.004639f, 4.196167f), 886) + Span span238 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span238[index2] = new QuestStep(EInteractionType.Interact, 2010924u, new Vector3(103.1051f, -20.004639f, 4.196167f), 886) { AethernetShortcut = new AethernetShortcut { @@ -246168,15 +298373,18 @@ public static class AssemblyQuestLoader }; obj153.Steps = list238; reference186 = obj153; - ref QuestSequence reference187 = ref span98[5]; + num++; + ref QuestSequence reference187 = ref span232[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886) + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + Span span239 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span239[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886) { AethernetShortcut = new AethernetShortcut { @@ -246194,13 +298402,16 @@ public static class AssemblyQuestLoader num = 1; List list240 = new List(num); CollectionsMarshal.SetCount(list240, num); - CollectionsMarshal.AsSpan(list240)[0] = "liza"; + Span span240 = CollectionsMarshal.AsSpan(list240); + index = 0; + span240[index] = "liza"; questRoot27.Author = list240; - num = 3; - List list241 = new List(num); - CollectionsMarshal.SetCount(list241, num); - Span span100 = CollectionsMarshal.AsSpan(list241); - ref QuestSequence reference188 = ref span100[0]; + index = 3; + List list241 = new List(index); + CollectionsMarshal.SetCount(list241, index); + Span span241 = CollectionsMarshal.AsSpan(list241); + num = 0; + ref QuestSequence reference188 = ref span241[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -246208,7 +298419,9 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - ref QuestStep reference189 = ref CollectionsMarshal.AsSpan(list242)[0]; + Span span242 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + ref QuestStep reference189 = ref span242[index2]; QuestStep obj156 = new QuestStep(EInteractionType.AcceptQuest, 1031781u, new Vector3(24.246582f, 82.78206f, 25.77246f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore, @@ -246223,7 +298436,9 @@ public static class AssemblyQuestLoader num3 = 1; List list243 = new List(num3); CollectionsMarshal.SetCount(list243, num3); - CollectionsMarshal.AsSpan(list243)[0] = new DialogueChoice + Span span243 = CollectionsMarshal.AsSpan(list243); + index3 = 0; + span243[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBCTS640_03729_Q1_000_000"), @@ -246233,18 +298448,22 @@ public static class AssemblyQuestLoader reference189 = obj156; obj155.Steps = list242; reference188 = obj155; - ref QuestSequence reference190 = ref span100[1]; + num++; + ref QuestSequence reference190 = ref span241[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 2010842u, new Vector3(27.450928f, 82.6886f, -45.456665f), 820); + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.Interact, 2010842u, new Vector3(27.450928f, 82.6886f, -45.456665f), 820); obj157.Steps = list244; reference190 = obj157; - ref QuestSequence reference191 = ref span100[2]; + num++; + ref QuestSequence reference191 = ref span241[num]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue @@ -246252,7 +298471,9 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820); + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820); obj158.Steps = list245; reference191 = obj158; questRoot27.QuestSequence = list241; @@ -246262,21 +298483,26 @@ public static class AssemblyQuestLoader num = 1; List list246 = new List(num); CollectionsMarshal.SetCount(list246, num); - CollectionsMarshal.AsSpan(list246)[0] = "Censored"; + Span span246 = CollectionsMarshal.AsSpan(list246); + index = 0; + span246[index] = "Censored"; questRoot28.Author = list246; - num = 4; - List list247 = new List(num); - CollectionsMarshal.SetCount(list247, num); - Span span101 = CollectionsMarshal.AsSpan(list247); - ref QuestSequence reference192 = ref span101[0]; + index = 4; + List list247 = new List(index); + CollectionsMarshal.SetCount(list247, index); + Span span247 = CollectionsMarshal.AsSpan(list247); + num = 0; + ref QuestSequence reference192 = ref span247[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031802u, new Vector3(48.264282f, 82.001656f, -56.6568f), 820) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031802u, new Vector3(48.264282f, 82.001656f, -56.6568f), 820) { Sprint = true, AetheryteShortcut = EAetheryteLocation.Eulmore, @@ -246295,7 +298521,8 @@ public static class AssemblyQuestLoader }; obj159.Steps = list248; reference192 = obj159; - ref QuestSequence reference193 = ref span101[1]; + num++; + ref QuestSequence reference193 = ref span247[num]; QuestSequence obj160 = new QuestSequence { Sequence = 1 @@ -246303,12 +298530,16 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - ref QuestStep reference194 = ref CollectionsMarshal.AsSpan(list249)[0]; + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + ref QuestStep reference194 = ref span249[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820); - num3 = 1; - List list250 = new List(num3); - CollectionsMarshal.SetCount(list250, num3); - CollectionsMarshal.AsSpan(list250)[0] = new DialogueChoice + index3 = 1; + List list250 = new List(index3); + CollectionsMarshal.SetCount(list250, index3); + Span span250 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + span250[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBCTS641_03730_Q1_000_000"), @@ -246318,15 +298549,18 @@ public static class AssemblyQuestLoader reference194 = questStep17; obj160.Steps = list249; reference193 = obj160; - ref QuestSequence reference195 = ref span101[2]; + num++; + ref QuestSequence reference195 = ref span247[num]; QuestSequence obj161 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1029978u, new Vector3(-7.522766f, 23f, 14.755432f), 820) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + Span span251 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span251[num2] = new QuestStep(EInteractionType.Interact, 1029978u, new Vector3(-7.522766f, 23f, 14.755432f), 820) { Sprint = true, AethernetShortcut = new AethernetShortcut @@ -246337,7 +298571,8 @@ public static class AssemblyQuestLoader }; obj161.Steps = list251; reference195 = obj161; - ref QuestSequence reference196 = ref span101[3]; + num++; + ref QuestSequence reference196 = ref span247[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue @@ -246345,7 +298580,9 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820) + Span span252 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span252[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820) { Sprint = true, AethernetShortcut = new AethernetShortcut @@ -246363,21 +298600,26 @@ public static class AssemblyQuestLoader num = 1; List list253 = new List(num); CollectionsMarshal.SetCount(list253, num); - CollectionsMarshal.AsSpan(list253)[0] = "Censored"; + Span span253 = CollectionsMarshal.AsSpan(list253); + index = 0; + span253[index] = "Censored"; questRoot29.Author = list253; - num = 2; - List list254 = new List(num); - CollectionsMarshal.SetCount(list254, num); - Span span102 = CollectionsMarshal.AsSpan(list254); - ref QuestSequence reference197 = ref span102[0]; + index = 2; + List list254 = new List(index); + CollectionsMarshal.SetCount(list254, index); + Span span254 = CollectionsMarshal.AsSpan(list254); + num = 0; + ref QuestSequence reference197 = ref span254[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027570u, new Vector3(47.989624f, 83.00107f, -75.30328f), 820) + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span255 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span255[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027570u, new Vector3(47.989624f, 83.00107f, -75.30328f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore, SkipConditions = new SkipConditions @@ -246395,7 +298637,8 @@ public static class AssemblyQuestLoader }; obj163.Steps = list255; reference197 = obj163; - ref QuestSequence reference198 = ref span102[1]; + num++; + ref QuestSequence reference198 = ref span254[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -246403,7 +298646,9 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031118u, new Vector3(-2.3041382f, 85.537865f, -82.65814f), 820); + Span span256 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span256[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031118u, new Vector3(-2.3041382f, 85.537865f, -82.65814f), 820); obj164.Steps = list256; reference198 = obj164; questRoot29.QuestSequence = list254; @@ -246413,21 +298658,26 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "liza"; + Span span257 = CollectionsMarshal.AsSpan(list257); + index = 0; + span257[index] = "liza"; questRoot30.Author = list257; - num = 4; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span103 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference199 = ref span103[0]; + index = 4; + List list258 = new List(index); + CollectionsMarshal.SetCount(list258, index); + Span span258 = CollectionsMarshal.AsSpan(list258); + num = 0; + ref QuestSequence reference199 = ref span258[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list259)[0]; + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + Span span259 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + ref QuestStep reference200 = ref span259[num2]; QuestStep obj166 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -246446,14 +298696,17 @@ public static class AssemblyQuestLoader num3 = 1; List list260 = new List(num3); CollectionsMarshal.SetCount(list260, num3); - CollectionsMarshal.AsSpan(list260)[0] = 131; + Span span260 = CollectionsMarshal.AsSpan(list260); + index3 = 0; + span260[index3] = 131; obj167.InTerritory = list260; skipConditions10.AetheryteShortcutIf = obj167; obj166.SkipConditions = skipConditions10; reference200 = obj166; obj165.Steps = list259; reference199 = obj165; - ref QuestSequence reference201 = ref span103[1]; + num++; + ref QuestSequence reference201 = ref span258[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 @@ -246461,24 +298714,30 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + Span span261 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span261[index2] = new QuestStep(EInteractionType.Interact, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f }; obj168.Steps = list261; reference201 = obj168; - ref QuestSequence reference202 = ref span103[2]; + num++; + ref QuestSequence reference202 = ref span258[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1031957u, new Vector3(16.433899f, 10f, 152.97156f), 131); + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.Interact, 1031957u, new Vector3(16.433899f, 10f, 152.97156f), 131); obj169.Steps = list262; reference202 = obj169; - ref QuestSequence reference203 = ref span103[3]; + num++; + ref QuestSequence reference203 = ref span258[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue @@ -246486,7 +298745,9 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + Span span263 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span263[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { NextQuestId = new QuestId(3733) }; @@ -246499,21 +298760,26 @@ public static class AssemblyQuestLoader num = 1; List list264 = new List(num); CollectionsMarshal.SetCount(list264, num); - CollectionsMarshal.AsSpan(list264)[0] = "liza"; + Span span264 = CollectionsMarshal.AsSpan(list264); + index = 0; + span264[index] = "liza"; questRoot31.Author = list264; - num = 5; - List list265 = new List(num); - CollectionsMarshal.SetCount(list265, num); - Span span104 = CollectionsMarshal.AsSpan(list265); - ref QuestSequence reference204 = ref span104[0]; + index = 5; + List list265 = new List(index); + CollectionsMarshal.SetCount(list265, index); + Span span265 = CollectionsMarshal.AsSpan(list265); + num = 0; + ref QuestSequence reference204 = ref span265[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list266)[0]; + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + Span span266 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + ref QuestStep reference205 = ref span266[num2]; QuestStep obj172 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -246528,17 +298794,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = 131; + index3 = 1; + List list267 = new List(index3); + CollectionsMarshal.SetCount(list267, index3); + Span span267 = CollectionsMarshal.AsSpan(list267); + num3 = 0; + span267[num3] = 131; obj173.InTerritory = list267; skipConditions11.AetheryteShortcutIf = obj173; obj172.SkipConditions = skipConditions11; reference205 = obj172; obj171.Steps = list266; reference204 = obj171; - ref QuestSequence reference206 = ref span104[1]; + num++; + ref QuestSequence reference206 = ref span265[num]; QuestSequence obj174 = new QuestSequence { Sequence = 1 @@ -246546,7 +298815,9 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.Interact, 1031958u, new Vector3(178.0575f, 51.459526f, 104.69214f), 140) + Span span268 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span268[index2] = new QuestStep(EInteractionType.Interact, 1031958u, new Vector3(178.0575f, 51.459526f, 104.69214f), 140) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -246557,15 +298828,18 @@ public static class AssemblyQuestLoader }; obj174.Steps = list268; reference206 = obj174; - ref QuestSequence reference207 = ref span104[2]; + num++; + ref QuestSequence reference207 = ref span265[num]; QuestSequence obj175 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - ref QuestStep reference208 = ref CollectionsMarshal.AsSpan(list269)[0]; + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + Span span269 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + ref QuestStep reference208 = ref span269[num2]; QuestStep obj176 = new QuestStep(EInteractionType.Combat, 1031958u, new Vector3(178.0575f, 51.459526f, 104.69214f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -246573,12 +298847,15 @@ public static class AssemblyQuestLoader num3 = 1; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - CollectionsMarshal.AsSpan(list270)[0] = 11441u; + Span span270 = CollectionsMarshal.AsSpan(list270); + index3 = 0; + span270[index3] = 11441u; obj176.KillEnemyDataIds = list270; reference208 = obj176; obj175.Steps = list269; reference207 = obj175; - ref QuestSequence reference209 = ref span104[3]; + num++; + ref QuestSequence reference209 = ref span265[num]; QuestSequence obj177 = new QuestSequence { Sequence = 3 @@ -246586,18 +298863,23 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1031958u, new Vector3(178.0575f, 51.459526f, 104.69214f), 140); + Span span271 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span271[index2] = new QuestStep(EInteractionType.Interact, 1031958u, new Vector3(178.0575f, 51.459526f, 104.69214f), 140); obj177.Steps = list271; reference209 = obj177; - ref QuestSequence reference210 = ref span104[4]; + num++; + ref QuestSequence reference210 = ref span265[num]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + index2 = 1; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + Span span272 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span272[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -246616,13 +298898,16 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "liza"; + Span span273 = CollectionsMarshal.AsSpan(list273); + index = 0; + span273[index] = "liza"; questRoot32.Author = list273; - num = 6; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span105 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference211 = ref span105[0]; + index = 6; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + Span span274 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference211 = ref span274[num]; QuestSequence obj179 = new QuestSequence { Sequence = 0 @@ -246630,7 +298915,9 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - ref QuestStep reference212 = ref CollectionsMarshal.AsSpan(list275)[0]; + Span span275 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + ref QuestStep reference212 = ref span275[index2]; QuestStep obj180 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -246645,25 +298932,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list276 = new List(num3); - CollectionsMarshal.SetCount(list276, num3); - CollectionsMarshal.AsSpan(list276)[0] = 131; + index3 = 1; + List list276 = new List(index3); + CollectionsMarshal.SetCount(list276, index3); + Span span276 = CollectionsMarshal.AsSpan(list276); + num3 = 0; + span276[num3] = 131; obj181.InTerritory = list276; skipConditions12.AetheryteShortcutIf = obj181; obj180.SkipConditions = skipConditions12; reference212 = obj180; obj179.Steps = list275; reference211 = obj179; - ref QuestSequence reference213 = ref span105[1]; + num++; + ref QuestSequence reference213 = ref span274[num]; QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.Interact, 1031962u, new Vector3(-25.558899f, 14f, 84.51965f), 131) + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span277[num2] = new QuestStep(EInteractionType.Interact, 1031962u, new Vector3(-25.558899f, 14f, 84.51965f), 131) { AethernetShortcut = new AethernetShortcut { @@ -246673,7 +298965,8 @@ public static class AssemblyQuestLoader }; obj182.Steps = list277; reference213 = obj182; - ref QuestSequence reference214 = ref span105[2]; + num++; + ref QuestSequence reference214 = ref span274[num]; QuestSequence obj183 = new QuestSequence { Sequence = 2 @@ -246681,7 +298974,9 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.Interact, 1031965u, new Vector3(-193.3471f, 18f, 88.181885f), 130) + Span span278 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span278[index2] = new QuestStep(EInteractionType.Interact, 1031965u, new Vector3(-193.3471f, 18f, 88.181885f), 130) { AethernetShortcut = new AethernetShortcut { @@ -246691,15 +298986,18 @@ public static class AssemblyQuestLoader }; obj183.Steps = list278; reference214 = obj183; - ref QuestSequence reference215 = ref span105[3]; + num++; + ref QuestSequence reference215 = ref span274[num]; QuestSequence obj184 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1031968u, new Vector3(34.286987f, 7.9999285f, -113.78656f), 130) + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + Span span279 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span279[num2] = new QuestStep(EInteractionType.Interact, 1031968u, new Vector3(34.286987f, 7.9999285f, -113.78656f), 130) { AethernetShortcut = new AethernetShortcut { @@ -246709,7 +299007,8 @@ public static class AssemblyQuestLoader }; obj184.Steps = list279; reference215 = obj184; - ref QuestSequence reference216 = ref span105[4]; + num++; + ref QuestSequence reference216 = ref span274[num]; QuestSequence obj185 = new QuestSequence { Sequence = 4 @@ -246717,7 +299016,9 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + Span span280 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span280[index2] = new QuestStep(EInteractionType.Interact, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AethernetShortcut = new AethernetShortcut { @@ -246727,15 +299028,18 @@ public static class AssemblyQuestLoader }; obj185.Steps = list280; reference216 = obj185; - ref QuestSequence reference217 = ref span105[5]; + num++; + ref QuestSequence reference217 = ref span274[num]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + Span span281 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span281[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { NextQuestId = new QuestId(3735) }; @@ -246748,13 +299052,16 @@ public static class AssemblyQuestLoader num = 1; List list282 = new List(num); CollectionsMarshal.SetCount(list282, num); - CollectionsMarshal.AsSpan(list282)[0] = "liza"; + Span span282 = CollectionsMarshal.AsSpan(list282); + index = 0; + span282[index] = "liza"; questRoot33.Author = list282; - num = 6; - List list283 = new List(num); - CollectionsMarshal.SetCount(list283, num); - Span span106 = CollectionsMarshal.AsSpan(list283); - ref QuestSequence reference218 = ref span106[0]; + index = 6; + List list283 = new List(index); + CollectionsMarshal.SetCount(list283, index); + Span span283 = CollectionsMarshal.AsSpan(list283); + num = 0; + ref QuestSequence reference218 = ref span283[num]; QuestSequence obj187 = new QuestSequence { Sequence = 0 @@ -246762,7 +299069,9 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - ref QuestStep reference219 = ref CollectionsMarshal.AsSpan(list284)[0]; + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + ref QuestStep reference219 = ref span284[index2]; QuestStep obj188 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -246780,28 +299089,34 @@ public static class AssemblyQuestLoader num3 = 1; List list285 = new List(num3); CollectionsMarshal.SetCount(list285, num3); - CollectionsMarshal.AsSpan(list285)[0] = 131; + Span span285 = CollectionsMarshal.AsSpan(list285); + index3 = 0; + span285[index3] = 131; obj189.InTerritory = list285; skipConditions13.AetheryteShortcutIf = obj189; obj188.SkipConditions = skipConditions13; reference219 = obj188; obj187.Steps = list284; reference218 = obj187; - ref QuestSequence reference220 = ref span106[1]; + num++; + ref QuestSequence reference220 = ref span283[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1032158u, new Vector3(74.23511f, 45f, -204.27258f), 140) + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + Span span286 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span286[num2] = new QuestStep(EInteractionType.Interact, 1032158u, new Vector3(74.23511f, 45f, -204.27258f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; obj190.Steps = list286; reference220 = obj190; - ref QuestSequence reference221 = ref span106[2]; + num++; + ref QuestSequence reference221 = ref span283[num]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -246809,35 +299124,43 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1031971u, new Vector3(298.146f, 62.280518f, -209.0639f), 140) + Span span287 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + span287[index2] = new QuestStep(EInteractionType.Interact, 1031971u, new Vector3(298.146f, 62.280518f, -209.0639f), 140) { Fly = true }; obj191.Steps = list287; reference221 = obj191; - ref QuestSequence reference222 = ref span106[3]; + num++; + ref QuestSequence reference222 = ref span283[num]; QuestSequence obj192 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - ref QuestStep reference223 = ref CollectionsMarshal.AsSpan(list288)[0]; + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + Span span288 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + ref QuestStep reference223 = ref span288[num2]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, 2010849u, new Vector3(192.55359f, 55.039307f, -190.81409f), 140) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list289 = new List(num3); - CollectionsMarshal.SetCount(list289, num3); - CollectionsMarshal.AsSpan(list289)[0] = 11442u; + index3 = 1; + List list289 = new List(index3); + CollectionsMarshal.SetCount(list289, index3); + Span span289 = CollectionsMarshal.AsSpan(list289); + num3 = 0; + span289[num3] = 11442u; obj193.KillEnemyDataIds = list289; reference223 = obj193; obj192.Steps = list288; reference222 = obj192; - ref QuestSequence reference224 = ref span106[4]; + num++; + ref QuestSequence reference224 = ref span283[num]; QuestSequence obj194 = new QuestSequence { Sequence = 4 @@ -246845,21 +299168,26 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1031971u, new Vector3(298.146f, 62.280518f, -209.0639f), 140) + Span span290 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span290[index2] = new QuestStep(EInteractionType.Interact, 1031971u, new Vector3(298.146f, 62.280518f, -209.0639f), 140) { Fly = true }; obj194.Steps = list290; reference224 = obj194; - ref QuestSequence reference225 = ref span106[5]; + num++; + ref QuestSequence reference225 = ref span283[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + Span span291 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span291[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -246878,13 +299206,16 @@ public static class AssemblyQuestLoader num = 1; List list292 = new List(num); CollectionsMarshal.SetCount(list292, num); - CollectionsMarshal.AsSpan(list292)[0] = "liza"; + Span span292 = CollectionsMarshal.AsSpan(list292); + index = 0; + span292[index] = "liza"; questRoot34.Author = list292; - num = 4; - List list293 = new List(num); - CollectionsMarshal.SetCount(list293, num); - Span span107 = CollectionsMarshal.AsSpan(list293); - ref QuestSequence reference226 = ref span107[0]; + index = 4; + List list293 = new List(index); + CollectionsMarshal.SetCount(list293, index); + Span span293 = CollectionsMarshal.AsSpan(list293); + num = 0; + ref QuestSequence reference226 = ref span293[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -246892,7 +299223,9 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - ref QuestStep reference227 = ref CollectionsMarshal.AsSpan(list294)[0]; + Span span294 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + ref QuestStep reference227 = ref span294[index2]; QuestStep obj197 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -246910,23 +299243,27 @@ public static class AssemblyQuestLoader num3 = 1; List list295 = new List(num3); CollectionsMarshal.SetCount(list295, num3); - CollectionsMarshal.AsSpan(list295)[0] = 131; + Span span295 = CollectionsMarshal.AsSpan(list295); + index3 = 0; + span295[index3] = 131; obj198.InTerritory = list295; skipConditions14.AetheryteShortcutIf = obj198; obj197.SkipConditions = skipConditions14; reference227 = obj197; obj196.Steps = list294; reference226 = obj196; - ref QuestSequence reference228 = ref span107[1]; + num++; + ref QuestSequence reference228 = ref span293[num]; QuestSequence obj199 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - Span span108 = CollectionsMarshal.AsSpan(list296); - ref QuestStep reference229 = ref span108[0]; + index2 = 3; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span296 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + ref QuestStep reference229 = ref span296[num2]; QuestStep obj200 = new QuestStep(EInteractionType.Interact, 1031980u, new Vector3(-85.00806f, 6.9845695f, -11.001831f), 131) { AethernetShortcut = new AethernetShortcut @@ -246935,49 +299272,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - num3 = 6; - List list297 = new List(num3); - CollectionsMarshal.SetCount(list297, num3); - Span span109 = CollectionsMarshal.AsSpan(list297); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list297 = new List(index3); + CollectionsMarshal.SetCount(list297, index3); + Span span297 = CollectionsMarshal.AsSpan(list297); + num3 = 0; + span297[num3] = null; + num3++; + span297[num3] = null; + num3++; + span297[num3] = null; + num3++; + span297[num3] = null; + num3++; + span297[num3] = null; + num3++; + span297[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj200.CompletionQuestVariablesFlags = list297; reference229 = obj200; - ref QuestStep reference230 = ref span108[1]; + num2++; + ref QuestStep reference230 = ref span296[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1031979u, new Vector3(-92.5155f, 6.9845695f, -17.07489f), 131); num3 = 6; List list298 = new List(num3); CollectionsMarshal.SetCount(list298, num3); - Span span110 = CollectionsMarshal.AsSpan(list298); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span298 = CollectionsMarshal.AsSpan(list298); + index3 = 0; + span298[index3] = null; + index3++; + span298[index3] = null; + index3++; + span298[index3] = null; + index3++; + span298[index3] = null; + index3++; + span298[index3] = null; + index3++; + span298[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list298; reference230 = questStep18; - ref QuestStep reference231 = ref span108[2]; + num2++; + ref QuestStep reference231 = ref span296[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1001675u, new Vector3(-89.49426f, 7.008118f, 10.849121f), 131); - num3 = 6; - List list299 = new List(num3); - CollectionsMarshal.SetCount(list299, num3); - Span span111 = CollectionsMarshal.AsSpan(list299); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list299 = new List(index3); + CollectionsMarshal.SetCount(list299, index3); + Span span299 = CollectionsMarshal.AsSpan(list299); + num3 = 0; + span299[num3] = null; + num3++; + span299[num3] = null; + num3++; + span299[num3] = null; + num3++; + span299[num3] = null; + num3++; + span299[num3] = null; + num3++; + span299[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list299; reference231 = questStep19; obj199.Steps = list296; reference228 = obj199; - ref QuestSequence reference232 = ref span107[2]; + num++; + ref QuestSequence reference232 = ref span293[num]; QuestSequence obj201 = new QuestSequence { Sequence = 2 @@ -246985,18 +299343,23 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1031978u, new Vector3(-75.05914f, 6.9845705f, 10.971252f), 131); + Span span300 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span300[index2] = new QuestStep(EInteractionType.Interact, 1031978u, new Vector3(-75.05914f, 6.9845705f, 10.971252f), 131); obj201.Steps = list300; reference232 = obj201; - ref QuestSequence reference233 = ref span107[3]; + num++; + ref QuestSequence reference233 = ref span293[num]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + Span span301 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span301[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, NextQuestId = new QuestId(3737) @@ -247010,13 +299373,16 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - CollectionsMarshal.AsSpan(list302)[0] = "liza"; + Span span302 = CollectionsMarshal.AsSpan(list302); + index = 0; + span302[index] = "liza"; questRoot35.Author = list302; - num = 2; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - Span span112 = CollectionsMarshal.AsSpan(list303); - ref QuestSequence reference234 = ref span112[0]; + index = 2; + List list303 = new List(index); + CollectionsMarshal.SetCount(list303, index); + Span span303 = CollectionsMarshal.AsSpan(list303); + num = 0; + ref QuestSequence reference234 = ref span303[num]; QuestSequence obj203 = new QuestSequence { Sequence = 0 @@ -247024,7 +299390,9 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - ref QuestStep reference235 = ref CollectionsMarshal.AsSpan(list304)[0]; + Span span304 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + ref QuestStep reference235 = ref span304[index2]; QuestStep obj204 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -247043,22 +299411,27 @@ public static class AssemblyQuestLoader num3 = 1; List list305 = new List(num3); CollectionsMarshal.SetCount(list305, num3); - CollectionsMarshal.AsSpan(list305)[0] = 131; + Span span305 = CollectionsMarshal.AsSpan(list305); + index3 = 0; + span305[index3] = 131; obj205.InTerritory = list305; skipConditions15.AetheryteShortcutIf = obj205; obj204.SkipConditions = skipConditions15; reference235 = obj204; obj203.Steps = list304; reference234 = obj203; - ref QuestSequence reference236 = ref span112[1]; + num++; + ref QuestSequence reference236 = ref span303[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + index2 = 1; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + Span span306 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + span306[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, NextQuestId = new QuestId(3989) @@ -247076,13 +299449,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Censored"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Censored"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -247090,7 +299466,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1018433u, new Vector3(50.766724f, 50f, -772.3964f), 156) { Fly = true, @@ -247106,7 +299484,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZK991_03750_Q1_000_000"), @@ -247116,15 +299496,18 @@ public static class AssemblyQuestLoader reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 2009865u, new Vector3(-52.781067f, 17.990356f, 48.90515f), 131) + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span5[num2] = new QuestStep(EInteractionType.Interact, 2009865u, new Vector3(-52.781067f, 17.990356f, 48.90515f), 131) { Sprint = true, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -247136,7 +299519,8 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -247144,29 +299528,34 @@ public static class AssemblyQuestLoader num2 = 2; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span2 = CollectionsMarshal.AsSpan(list6); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-509.02783f, -16.420786f, 11.723575f), 145) + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-509.02783f, -16.420786f, 11.723575f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - span2[1] = new QuestStep(EInteractionType.Interact, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145); + index2++; + span6[index2] = new QuestStep(EInteractionType.Interact, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-509.17432f, -16.420816f, 10.977634f), 145) + index2 = 2; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-509.17432f, -16.420816f, 10.977634f), 145) { Mount = true }; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1030875u, new Vector3(-458.64044f, -28.193886f, 110.64307f), 145) + num2++; + span7[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030875u, new Vector3(-458.64044f, -28.193886f, 110.64307f), 145) { Fly = true }; @@ -247179,13 +299568,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "liza"; + Span span8 = CollectionsMarshal.AsSpan(list8); + index = 0; + span8[index] = "liza"; questRoot2.Author = list8; - num = 3; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span4 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span4[0]; + index = 3; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + Span span9 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span9[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -247193,28 +299585,34 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031783u, new Vector3(-3.03656f, 0.01804012f, -8.1026f), 351) + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031783u, new Vector3(-3.03656f, 0.01804012f, -8.1026f), 351) { StopDistance = 5f }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[1]; + num++; + ref QuestSequence reference7 = ref span9[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1032495u, new Vector3(737.63635f, 70f, 515.0072f), 621) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.Interact, 1032495u, new Vector3(737.63635f, 70f, 515.0072f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span4[2]; + num++; + ref QuestSequence reference8 = ref span9[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue @@ -247222,7 +299620,9 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032494u, new Vector3(739.6504f, 70f, 514.21375f), 621); + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032494u, new Vector3(739.6504f, 70f, 514.21375f), 621); obj8.Steps = list12; reference8 = obj8; questRoot2.QuestSequence = list9; @@ -247232,24 +299632,30 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + Span span13 = CollectionsMarshal.AsSpan(list13); + index = 0; + span13[index] = "liza"; questRoot3.Author = list13; - num = 2; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span5 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference9 = ref span5[0]; + index = 2; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference9 = ref span14[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032494u, new Vector3(739.6504f, 70f, 514.21375f), 621); + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032494u, new Vector3(739.6504f, 70f, 514.21375f), 621); obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference10 = ref span5[1]; + num++; + ref QuestSequence reference10 = ref span14[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -247257,8 +299663,9 @@ public static class AssemblyQuestLoader num2 = 2; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span6 = CollectionsMarshal.AsSpan(list16); - span6[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -247268,7 +299675,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span6[1] = new QuestStep(EInteractionType.CompleteQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); + index2++; + span16[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); obj10.Steps = list16; reference10 = obj10; questRoot3.QuestSequence = list14; @@ -247278,24 +299686,30 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "liza"; questRoot4.Author = list17; - num = 5; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span7 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference11 = ref span7[0]; + index = 5; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference11 = ref span18[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031722u, new Vector3(-1.7853394f, 0f, -1.8158569f), 844); + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031722u, new Vector3(-1.7853394f, 0f, -1.8158569f), 844); obj11.Steps = list19; reference11 = obj11; - ref QuestSequence reference12 = ref span7[1]; + num++; + ref QuestSequence reference12 = ref span18[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -247303,17 +299717,21 @@ public static class AssemblyQuestLoader num2 = 2; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span8 = CollectionsMarshal.AsSpan(list20); - span8[0] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.009940993f, 1.036532f, 14.22064f), 844) + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.009940993f, 1.036532f, 14.22064f), 844) { TargetTerritoryId = (ushort)819 }; - ref QuestStep reference13 = ref span8[1]; + index2++; + ref QuestStep reference13 = ref span20[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1030370u, new Vector3(66.84973f, -2.9802322E-07f, 13.321045f), 819); - num3 = 1; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new DialogueChoice + index3 = 1; + List list21 = new List(index3); + CollectionsMarshal.SetCount(list21, index3); + Span span21 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span21[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMH103_03763_Q1_000_500"), @@ -247323,21 +299741,25 @@ public static class AssemblyQuestLoader reference13 = questStep; obj12.Steps = list20; reference12 = obj12; - ref QuestSequence reference14 = ref span7[2]; + num++; + ref QuestSequence reference14 = ref span18[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1032648u, new Vector3(768.6426f, 21.38111f, -8.46875f), 813) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.Interact, 1032648u, new Vector3(768.6426f, 21.38111f, -8.46875f), 813) { AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj13.Steps = list22; reference14 = obj13; - ref QuestSequence reference15 = ref span7[3]; + num++; + ref QuestSequence reference15 = ref span18[num]; QuestSequence obj14 = new QuestSequence { Sequence = 3 @@ -247345,21 +299767,26 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1032498u, new Vector3(628.6869f, 94.385544f, -645.9297f), 813) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.Interact, 1032498u, new Vector3(628.6869f, 94.385544f, -645.9297f), 813) { Fly = true }; obj14.Steps = list23; reference15 = obj14; - ref QuestSequence reference16 = ref span7[4]; + num++; + ref QuestSequence reference16 = ref span18[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032502u, new Vector3(629.0836f, 94.39156f, -644.98364f), 813); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032502u, new Vector3(629.0836f, 94.39156f, -644.98364f), 813); obj15.Steps = list24; reference16 = obj15; questRoot4.QuestSequence = list18; @@ -247369,13 +299796,16 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "liza"; questRoot5.Author = list25; - num = 4; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span9 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference17 = ref span9[0]; + index = 4; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference17 = ref span26[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -247383,19 +299813,23 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032502u, new Vector3(629.0836f, 94.39156f, -644.98364f), 813); + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032502u, new Vector3(629.0836f, 94.39156f, -644.98364f), 813); obj16.Steps = list27; reference17 = obj16; - ref QuestSequence reference18 = ref span9[1]; + num++; + ref QuestSequence reference18 = ref span26[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - Span span10 = CollectionsMarshal.AsSpan(list28); - span10[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + index2 = 2; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -247405,10 +299839,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span10[1] = new QuestStep(EInteractionType.Interact, 1031722u, new Vector3(-1.7853394f, 0f, -1.8158569f), 844); + num2++; + span28[num2] = new QuestStep(EInteractionType.Interact, 1031722u, new Vector3(-1.7853394f, 0f, -1.8158569f), 844); obj17.Steps = list28; reference18 = obj17; - ref QuestSequence reference19 = ref span9[2]; + num++; + ref QuestSequence reference19 = ref span26[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -247416,12 +299852,14 @@ public static class AssemblyQuestLoader num2 = 6; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span11 = CollectionsMarshal.AsSpan(list29); - span11[0] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.015319824f, 1.0223389f, 14.206055f), 844) + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.015319824f, 1.0223389f, 14.206055f), 844) { TargetTerritoryId = (ushort)819 }; - ref QuestStep reference20 = ref span11[1]; + index2++; + ref QuestStep reference20 = ref span29[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) { Comment = "Chessamile" @@ -247429,33 +299867,47 @@ public static class AssemblyQuestLoader num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span12 = CollectionsMarshal.AsSpan(list30); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span30 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj19.CompletionQuestVariablesFlags = list30; reference20 = obj19; - ref QuestStep reference21 = ref span11[2]; + index2++; + ref QuestStep reference21 = ref span29[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819) { Comment = "Bragi" }; - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span13 = CollectionsMarshal.AsSpan(list31); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj20.CompletionQuestVariablesFlags = list31; reference21 = obj20; - ref QuestStep reference22 = ref span11[3]; + index2++; + ref QuestStep reference22 = ref span29[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1027322u, new Vector3(-20.126648f, 3.9998171f, 204.24194f), 819) { StopDistance = 4f, @@ -247464,16 +299916,23 @@ public static class AssemblyQuestLoader num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span14 = CollectionsMarshal.AsSpan(list32); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span32 = CollectionsMarshal.AsSpan(list32); + index3 = 0; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list32; reference22 = obj21; - ref QuestStep reference23 = ref span11[4]; + index2++; + ref QuestStep reference23 = ref span29[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819) { Comment = "Katliss", @@ -247483,19 +299942,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumCrystallineMean } }; - num3 = 6; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span15 = CollectionsMarshal.AsSpan(list33); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list33 = new List(index3); + CollectionsMarshal.SetCount(list33, index3); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj22.CompletionQuestVariablesFlags = list33; reference23 = obj22; - ref QuestStep reference24 = ref span11[5]; + index2++; + ref QuestStep reference24 = ref span29[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) { Comment = "Moren", @@ -247508,26 +299974,35 @@ public static class AssemblyQuestLoader num3 = 6; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span16 = CollectionsMarshal.AsSpan(list34); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span34 = CollectionsMarshal.AsSpan(list34); + index3 = 0; + span34[index3] = null; + index3++; + span34[index3] = null; + index3++; + span34[index3] = null; + index3++; + span34[index3] = null; + index3++; + span34[index3] = null; + index3++; + span34[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj23.CompletionQuestVariablesFlags = list34; reference24 = obj23; obj18.Steps = list29; reference19 = obj18; - ref QuestSequence reference25 = ref span9[3]; + num++; + ref QuestSequence reference25 = ref span26[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032503u, new Vector3(29.709229f, -6.088685E-13f, -0.869812f), 819) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032503u, new Vector3(29.709229f, -6.088685E-13f, -0.869812f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; @@ -247540,13 +300015,16 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "liza"; questRoot6.Author = list36; - num = 4; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span17 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference26 = ref span17[0]; + index = 4; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference26 = ref span37[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -247554,27 +300032,33 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844) + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844) { StopDistance = 7f }; obj25.Steps = list38; reference26 = obj25; - ref QuestSequence reference27 = ref span17[1]; + num++; + ref QuestSequence reference27 = ref span37[num]; QuestSequence obj26 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1032506u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.Interact, 1032506u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj26.Steps = list39; reference27 = obj26; - ref QuestSequence reference28 = ref span17[2]; + num++; + ref QuestSequence reference28 = ref span37[num]; QuestSequence obj27 = new QuestSequence { Sequence = 2 @@ -247582,45 +300066,53 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list40)[0]; + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + ref QuestStep reference29 = ref span40[index2]; QuestStep obj28 = new QuestStep(EInteractionType.SinglePlayerDuty, 1032509u, new Vector3(843.25916f, -65.313614f, -387.10614f), 817) { Fly = true, Comment = "A Sleep Disturbed (Opo-Opo, Wolf, Serpent)" }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 1; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = "Doesn't walk to the teleporter to finish the duty"; + index3 = 1; + List list41 = new List(index3); + CollectionsMarshal.SetCount(list41, index3); + Span span41 = CollectionsMarshal.AsSpan(list41); + num3 = 0; + span41[num3] = "Doesn't walk to the teleporter to finish the duty"; singlePlayerDutyOptions.Notes = list41; obj28.SinglePlayerDutyOptions = singlePlayerDutyOptions; num3 = 4; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span18 = CollectionsMarshal.AsSpan(list42); - span18[0] = new DialogueChoice + Span span42 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span42[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "GimmickYesNo", Prompt = new ExcelRef(138u), DataId = 2011009u }; - span18[1] = new DialogueChoice + index3++; + span42[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "GimmickYesNo", Prompt = new ExcelRef(139u), DataId = 2011006u }; - span18[2] = new DialogueChoice + index3++; + span42[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "GimmickYesNo", Prompt = new ExcelRef(142u), DataId = 2011007u }; - span18[3] = new DialogueChoice + index3++; + span42[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "GimmickYesNo", @@ -247630,15 +300122,18 @@ public static class AssemblyQuestLoader reference29 = obj28; obj27.Steps = list40; reference28 = obj27; - ref QuestSequence reference30 = ref span17[3]; + num++; + ref QuestSequence reference30 = ref span37[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032506u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817) + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032506u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817) { StopDistance = 5f }; @@ -247651,13 +300146,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + Span span44 = CollectionsMarshal.AsSpan(list44); + index = 0; + span44[index] = "liza"; questRoot7.Author = list44; - num = 5; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span19 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference31 = ref span19[0]; + index = 5; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + Span span45 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference31 = ref span45[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -247665,27 +300163,33 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029234u, new Vector3(449.0271f, 33.66181f, -157.94617f), 817) + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029234u, new Vector3(449.0271f, 33.66181f, -157.94617f), 817) { StopDistance = 5f }; obj30.Steps = list46; reference31 = obj30; - ref QuestSequence reference32 = ref span19[1]; + num++; + ref QuestSequence reference32 = ref span45[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1032263u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.Interact, 1032263u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj31.Steps = list47; reference32 = obj31; - ref QuestSequence reference33 = ref span19[2]; + num++; + ref QuestSequence reference33 = ref span45[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -247693,21 +300197,27 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1027750u, new Vector3(-24.734924f, -25.324257f, 305.5924f), 817); + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.Interact, 1027750u, new Vector3(-24.734924f, -25.324257f, 305.5924f), 817); obj32.Steps = list48; reference33 = obj32; - ref QuestSequence reference34 = ref span19[3]; + num++; + ref QuestSequence reference34 = ref span45[num]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1032513u, new Vector3(-37.06427f, -18.91939f, 334.21826f), 817); + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.Interact, 1032513u, new Vector3(-37.06427f, -18.91939f, 334.21826f), 817); obj33.Steps = list49; reference34 = obj33; - ref QuestSequence reference35 = ref span19[4]; + num++; + ref QuestSequence reference35 = ref span45[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -247715,7 +300225,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032515u, new Vector3(-642.2064f, 3.1136527f, 16.861145f), 817) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032515u, new Vector3(-642.2064f, 3.1136527f, 16.861145f), 817) { Fly = true }; @@ -247728,24 +300240,30 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "liza"; + Span span51 = CollectionsMarshal.AsSpan(list51); + index = 0; + span51[index] = "liza"; questRoot8.Author = list51; - num = 4; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span20 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference36 = ref span20[0]; + index = 4; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + Span span52 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference36 = ref span52[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032518u, new Vector3(-641.8402f, 3.1716232f, 19.69934f), 817); + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032518u, new Vector3(-641.8402f, 3.1716232f, 19.69934f), 817); obj35.Steps = list53; reference36 = obj35; - ref QuestSequence reference37 = ref span20[1]; + num++; + ref QuestSequence reference37 = ref span52[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -247753,22 +300271,26 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.Interact, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; obj36.Steps = list54; reference37 = obj36; - ref QuestSequence reference38 = ref span20[2]; + num++; + ref QuestSequence reference38 = ref span52[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span21 = CollectionsMarshal.AsSpan(list55); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-475.38354f, 400.55338f, -779.4299f), 818) + index2 = 6; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-475.38354f, 400.55338f, -779.4299f), 818) { Fly = true, SkipConditions = new SkipConditions @@ -247779,7 +300301,8 @@ public static class AssemblyQuestLoader } } }; - span21[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-559.0543f, 394.95718f, -611.97614f), 818) + num2++; + span55[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-559.0543f, 394.95718f, -611.97614f), 818) { SkipConditions = new SkipConditions { @@ -247789,7 +300312,8 @@ public static class AssemblyQuestLoader } } }; - span21[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-681.43286f, 404.5379f, -693.3609f), 818) + num2++; + span55[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-681.43286f, 404.5379f, -693.3609f), 818) { SkipConditions = new SkipConditions { @@ -247799,7 +300323,8 @@ public static class AssemblyQuestLoader } } }; - span21[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-675.946f, 408.10754f, -711.8061f), 818) + num2++; + span55[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-675.946f, 408.10754f, -711.8061f), 818) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -247810,14 +300335,17 @@ public static class AssemblyQuestLoader } } }; - span21[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.6145f, 393.0597f, -823.20044f), 818) + num2++; + span55[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.6145f, 393.0597f, -823.20044f), 818) { Fly = true }; - span21[5] = new QuestStep(EInteractionType.Interact, 2010814u, new Vector3(-422.47656f, 393.9115f, -824.094f), 818); + num2++; + span55[num2] = new QuestStep(EInteractionType.Interact, 2010814u, new Vector3(-422.47656f, 393.9115f, -824.094f), 818); obj37.Steps = list55; reference38 = obj37; - ref QuestSequence reference39 = ref span20[3]; + num++; + ref QuestSequence reference39 = ref span52[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -247825,7 +300353,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; @@ -247838,24 +300368,30 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "liza"; + Span span57 = CollectionsMarshal.AsSpan(list57); + index = 0; + span57[index] = "liza"; questRoot9.Author = list57; - num = 7; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span22 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference40 = ref span22[0]; + index = 7; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + Span span58 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference40 = ref span58[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032526u, new Vector3(606.1035f, 350.3518f, -200f), 818); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032526u, new Vector3(606.1035f, 350.3518f, -200f), 818); obj39.Steps = list59; reference40 = obj39; - ref QuestSequence reference41 = ref span22[1]; + num++; + ref QuestSequence reference41 = ref span58[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -247863,8 +300399,9 @@ public static class AssemblyQuestLoader num2 = 7; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span23 = CollectionsMarshal.AsSpan(list60); - span23[0] = new QuestStep(EInteractionType.None, null, null, 819) + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.None, null, null, 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -247873,7 +300410,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - span23[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + index2++; + span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { Comment = "these bridges have navmesh problems", SkipConditions = new SkipConditions @@ -247884,7 +300422,8 @@ public static class AssemblyQuestLoader } } }; - span23[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) + index2++; + span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -247895,7 +300434,8 @@ public static class AssemblyQuestLoader } } }; - span23[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) + index2++; + span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) { SkipConditions = new SkipConditions { @@ -247905,7 +300445,8 @@ public static class AssemblyQuestLoader } } }; - span23[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.70464f, 1.0942776f, 738.40204f), 813) + index2++; + span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.70464f, 1.0942776f, 738.40204f), 813) { SkipConditions = new SkipConditions { @@ -247915,28 +300456,34 @@ public static class AssemblyQuestLoader } } }; - span23[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-269.44116f, -0.82486916f, 724.67255f), 813) + index2++; + span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-269.44116f, -0.82486916f, 724.67255f), 813) { Fly = true }; - span23[6] = new QuestStep(EInteractionType.Interact, 1032528u, new Vector3(-270.98505f, -0.82573783f, 723.96423f), 813); + index2++; + span60[index2] = new QuestStep(EInteractionType.Interact, 1032528u, new Vector3(-270.98505f, -0.82573783f, 723.96423f), 813); obj40.Steps = list60; reference41 = obj40; - ref QuestSequence reference42 = ref span22[2]; + num++; + ref QuestSequence reference42 = ref span58[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1030333u, new Vector3(-612.23773f, 27.728632f, 817.65466f), 813) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.Interact, 1030333u, new Vector3(-612.23773f, 27.728632f, 817.65466f), 813) { StopDistance = 5f }; obj41.Steps = list61; reference42 = obj41; - ref QuestSequence reference43 = ref span22[3]; + num++; + ref QuestSequence reference43 = ref span58[num]; QuestSequence obj42 = new QuestSequence { Sequence = 3 @@ -247944,8 +300491,9 @@ public static class AssemblyQuestLoader num2 = 8; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span24 = CollectionsMarshal.AsSpan(list62); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-591.3982f, 26.347507f, 773.5695f), 813) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-591.3982f, 26.347507f, 773.5695f), 813) { DisableNavmesh = true, Mount = true, @@ -247958,7 +300506,8 @@ public static class AssemblyQuestLoader } } }; - span24[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-610.2863f, -2.1544409f, 734.7734f), 813) + index2++; + span62[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-610.2863f, -2.1544409f, 734.7734f), 813) { DisableNavmesh = true, Fly = true, @@ -247970,7 +300519,8 @@ public static class AssemblyQuestLoader } } }; - span24[2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-565.32196f, -1.9743931f, 799.9003f), 813) + index2++; + span62[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-565.32196f, -1.9743931f, 799.9003f), 813) { StopDistance = 1f, DisableNavmesh = true, @@ -247982,7 +300532,8 @@ public static class AssemblyQuestLoader } } }; - span24[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-630.4265f, -29.862f, 752.5597f), 813) + index2++; + span62[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-630.4265f, -29.862f, 752.5597f), 813) { Mount = true, SkipConditions = new SkipConditions @@ -247993,28 +300544,37 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference44 = ref span24[4]; + index2++; + ref QuestStep reference44 = ref span62[index2]; QuestStep obj43 = new QuestStep(EInteractionType.Interact, 2010280u, new Vector3(-630.4265f, -29.862f, 752.5597f), 813) { DisableNavmesh = true }; - num3 = 6; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - Span span25 = CollectionsMarshal.AsSpan(list63); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + Span span63 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj43.CompletionQuestVariablesFlags = list63; reference44 = obj43; - span24[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.167f, -41.328938f, 741.29126f), 813) + index2++; + span62[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.167f, -41.328938f, 741.29126f), 813) { Mount = true }; - ref QuestStep reference45 = ref span24[6]; + index2++; + ref QuestStep reference45 = ref span62[index2]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 2010278u, new Vector3(-655.5123f, -40.299072f, 743.22107f), 813) { DisableNavmesh = true @@ -248022,51 +300582,67 @@ public static class AssemblyQuestLoader num3 = 6; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span26 = CollectionsMarshal.AsSpan(list64); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span64 = CollectionsMarshal.AsSpan(list64); + index3 = 0; + span64[index3] = null; + index3++; + span64[index3] = null; + index3++; + span64[index3] = null; + index3++; + span64[index3] = null; + index3++; + span64[index3] = null; + index3++; + span64[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj44.CompletionQuestVariablesFlags = list64; reference45 = obj44; - ref QuestStep reference46 = ref span24[7]; + index2++; + ref QuestStep reference46 = ref span62[index2]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 2010282u, new Vector3(-663.14185f, -25.711487f, 738.82654f), 813) { Mount = true }; - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span27 = CollectionsMarshal.AsSpan(list65); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list65 = new List(index3); + CollectionsMarshal.SetCount(list65, index3); + Span span65 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj45.CompletionQuestVariablesFlags = list65; reference46 = obj45; obj42.Steps = list62; reference43 = obj42; - ref QuestSequence reference47 = ref span22[4]; + num++; + ref QuestSequence reference47 = ref span58[num]; QuestSequence obj46 = new QuestSequence { Sequence = 4 }; - num2 = 4; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - Span span28 = CollectionsMarshal.AsSpan(list66); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-643.2488f, -1.974393f, 714.8211f), 813) + index2 = 4; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-643.2488f, -1.974393f, 714.8211f), 813) { DisableNavmesh = true, Mount = true, Fly = true, RestartNavigationIfCancelled = false }; - span28[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.45654f, 0.39776123f, 810.7269f), 813) + num2++; + span66[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.45654f, 0.39776123f, 810.7269f), 813) { SkipConditions = new SkipConditions { @@ -248076,7 +300652,8 @@ public static class AssemblyQuestLoader } } }; - span28[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-619.98676f, 24.866888f, 794.4714f), 813) + num2++; + span66[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-619.98676f, 24.866888f, 794.4714f), 813) { Mount = true, SkipConditions = new SkipConditions @@ -248087,13 +300664,15 @@ public static class AssemblyQuestLoader } } }; - span28[3] = new QuestStep(EInteractionType.Interact, 1030333u, new Vector3(-612.23773f, 27.728632f, 817.65466f), 813) + num2++; + span66[num2] = new QuestStep(EInteractionType.Interact, 1030333u, new Vector3(-612.23773f, 27.728632f, 817.65466f), 813) { Fly = true }; obj46.Steps = list66; reference47 = obj46; - ref QuestSequence reference48 = ref span22[5]; + num++; + ref QuestSequence reference48 = ref span58[num]; QuestSequence obj47 = new QuestSequence { Sequence = 5 @@ -248101,19 +300680,23 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1032531u, new Vector3(-130.90723f, 9.572956f, 697.68823f), 813); + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.Interact, 1032531u, new Vector3(-130.90723f, 9.572956f, 697.68823f), 813); obj47.Steps = list67; reference48 = obj47; - ref QuestSequence reference49 = ref span22[6]; + num++; + ref QuestSequence reference49 = ref span58[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span29 = CollectionsMarshal.AsSpan(list68); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) + index2 = 4; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) { SkipConditions = new SkipConditions { @@ -248123,7 +300706,8 @@ public static class AssemblyQuestLoader } } }; - span29[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) + num2++; + span68[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) { SkipConditions = new SkipConditions { @@ -248133,7 +300717,8 @@ public static class AssemblyQuestLoader } } }; - span29[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + num2++; + span68[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { DisableNavmesh = true, Comment = "these bridges have navmesh problems", @@ -248145,7 +300730,8 @@ public static class AssemblyQuestLoader } } }; - span29[3] = new QuestStep(EInteractionType.CompleteQuest, 1032554u, new Vector3(237.72021f, 5.6935816f, 552.1781f), 813) + num2++; + span68[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032554u, new Vector3(237.72021f, 5.6935816f, 552.1781f), 813) { Fly = true }; @@ -248158,13 +300744,16 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "liza"; + Span span69 = CollectionsMarshal.AsSpan(list69); + index = 0; + span69[index] = "liza"; questRoot10.Author = list69; - num = 5; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span30 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference50 = ref span30[0]; + index = 5; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + Span span70 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference50 = ref span70[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -248172,25 +300761,31 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032555u, new Vector3(235.40088f, 5.733457f, 552.3612f), 813); + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032555u, new Vector3(235.40088f, 5.733457f, 552.3612f), 813); obj49.Steps = list71; reference50 = obj49; - ref QuestSequence reference51 = ref span30[1]; + num++; + ref QuestSequence reference51 = ref span70[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1032539u, new Vector3(-534.1726f, 63.559536f, 735.1339f), 814) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.Interact, 1032539u, new Vector3(-534.1726f, 63.559536f, 735.1339f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj50.Steps = list72; reference51 = obj50; - ref QuestSequence reference52 = ref span30[2]; + num++; + ref QuestSequence reference52 = ref span70[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -248198,7 +300793,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Duty, null, null, 814) + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.Duty, null, null, 814) { DutyOptions = new DutyOptions { @@ -248208,19 +300805,23 @@ public static class AssemblyQuestLoader }; obj51.Steps = list73; reference52 = obj51; - span30[3] = new QuestSequence + num++; + span70[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference53 = ref span30[4]; + num++; + ref QuestSequence reference53 = ref span70[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032549u, new Vector3(-1.9074707f, -200.00002f, -425.10114f), 918); + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032549u, new Vector3(-1.9074707f, -200.00002f, -425.10114f), 918); obj52.Steps = list74; reference53 = obj52; questRoot10.QuestSequence = list70; @@ -248230,13 +300831,16 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "liza"; + Span span75 = CollectionsMarshal.AsSpan(list75); + index = 0; + span75[index] = "liza"; questRoot11.Author = list75; - num = 6; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span31 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference54 = ref span31[0]; + index = 6; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + Span span76 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference54 = ref span76[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -248244,25 +300848,32 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032539u, new Vector3(-534.1726f, 63.559536f, 735.1339f), 814); + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032539u, new Vector3(-534.1726f, 63.559536f, 735.1339f), 814); obj53.Steps = list77; reference54 = obj53; - span31[1] = new QuestSequence + num++; + span76[num] = new QuestSequence { Sequence = 1 }; - ref QuestSequence reference55 = ref span31[2]; + num++; + ref QuestSequence reference55 = ref span76[num]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1032529u, new Vector3(5.5389404f, 0.019417249f, -0.5036011f), 819); + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.Interact, 1032529u, new Vector3(5.5389404f, 0.019417249f, -0.5036011f), 819); obj54.Steps = list78; reference55 = obj54; - ref QuestSequence reference56 = ref span31[3]; + num++; + ref QuestSequence reference56 = ref span76[num]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -248270,7 +300881,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1032558u, new Vector3(56.90088f, 36.19769f, -169.23785f), 819) + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.Interact, 1032558u, new Vector3(56.90088f, 36.19769f, -169.23785f), 819) { AethernetShortcut = new AethernetShortcut { @@ -248280,16 +300893,18 @@ public static class AssemblyQuestLoader }; obj55.Steps = list79; reference56 = obj55; - ref QuestSequence reference57 = ref span31[4]; + num++; + ref QuestSequence reference57 = ref span76[num]; QuestSequence obj56 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span32 = CollectionsMarshal.AsSpan(list80); - span32[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + index2 = 2; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -248298,10 +300913,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span32[1] = new QuestStep(EInteractionType.Interact, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); + num2++; + span80[num2] = new QuestStep(EInteractionType.Interact, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); obj56.Steps = list80; reference57 = obj56; - ref QuestSequence reference58 = ref span31[5]; + num++; + ref QuestSequence reference58 = ref span76[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -248309,12 +300926,14 @@ public static class AssemblyQuestLoader num2 = 2; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span33 = CollectionsMarshal.AsSpan(list81); - span33[0] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.015319824f, 1.0223389f, 14.206055f), 844) + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.015319824f, 1.0223389f, 14.206055f), 844) { TargetTerritoryId = (ushort)819 }; - ref QuestStep reference59 = ref span33[1]; + index2++; + ref QuestStep reference59 = ref span81[index2]; QuestStep obj58 = new QuestStep(EInteractionType.CompleteQuest, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 5f, @@ -248327,7 +300946,9 @@ public static class AssemblyQuestLoader num3 = 1; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = new DialogueChoice + Span span82 = CollectionsMarshal.AsSpan(list82); + index3 = 0; + span82[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMH110_03770_Q1_000_600") @@ -248343,27 +300964,33 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "liza"; + Span span83 = CollectionsMarshal.AsSpan(list83); + index = 0; + span83[index] = "liza"; questRoot12.Author = list83; - num = 8; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span34 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference60 = ref span34[0]; + index = 8; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + Span span84 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference60 = ref span84[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span85[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) { StopDistance = 5f }; obj59.Steps = list85; reference60 = obj59; - ref QuestSequence reference61 = ref span34[1]; + num++; + ref QuestSequence reference61 = ref span84[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -248371,7 +300998,9 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) { AethernetShortcut = new AethernetShortcut { @@ -248381,20 +301010,25 @@ public static class AssemblyQuestLoader }; obj60.Steps = list86; reference61 = obj60; - ref QuestSequence reference62 = ref span34[2]; + num++; + ref QuestSequence reference62 = ref span84[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list87)[0]; + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + ref QuestStep reference63 = ref span87[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1033794u, new Vector3(-81.28485f, -36.750004f, -277.7906f), 819); - num3 = 1; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - CollectionsMarshal.AsSpan(list88)[0] = new DialogueChoice + index3 = 1; + List list88 = new List(index3); + CollectionsMarshal.SetCount(list88, index3); + Span span88 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span88[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMI101_03771_Q3_000_148"), @@ -248404,7 +301038,8 @@ public static class AssemblyQuestLoader reference63 = questStep2; obj61.Steps = list87; reference62 = obj61; - ref QuestSequence reference64 = ref span34[3]; + num++; + ref QuestSequence reference64 = ref span84[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -248412,7 +301047,9 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) { AethernetShortcut = new AethernetShortcut { @@ -248422,18 +301059,22 @@ public static class AssemblyQuestLoader }; obj62.Steps = list89; reference64 = obj62; - ref QuestSequence reference65 = ref span34[4]; + num++; + ref QuestSequence reference65 = ref span84[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1028335u, new Vector3(-146.65448f, 1.490116E-08f, 132.61609f), 819); + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.Interact, 1028335u, new Vector3(-146.65448f, 1.490116E-08f, 132.61609f), 819); obj63.Steps = list90; reference65 = obj63; - ref QuestSequence reference66 = ref span34[5]; + num++; + ref QuestSequence reference66 = ref span84[num]; QuestSequence obj64 = new QuestSequence { Sequence = 5 @@ -248441,66 +301082,91 @@ public static class AssemblyQuestLoader num2 = 3; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span35 = CollectionsMarshal.AsSpan(list91); - ref QuestStep reference67 = ref span35[0]; + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + ref QuestStep reference67 = ref span91[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2011072u, new Vector3(-137.4685f, 1.2664795f, 166.67432f), 819); num3 = 6; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - Span span36 = CollectionsMarshal.AsSpan(list92); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span92 = CollectionsMarshal.AsSpan(list92); + index3 = 0; + span92[index3] = null; + index3++; + span92[index3] = null; + index3++; + span92[index3] = null; + index3++; + span92[index3] = null; + index3++; + span92[index3] = null; + index3++; + span92[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list92; reference67 = questStep3; - ref QuestStep reference68 = ref span35[1]; + index2++; + ref QuestStep reference68 = ref span91[index2]; QuestStep obj65 = new QuestStep(EInteractionType.Interact, 2011071u, new Vector3(-139.3302f, 0.99176025f, 167.65088f), 819) { StopDistance = 5f }; - num3 = 6; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - Span span37 = CollectionsMarshal.AsSpan(list93); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list93 = new List(index3); + CollectionsMarshal.SetCount(list93, index3); + Span span93 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span93[num3] = null; + num3++; + span93[num3] = null; + num3++; + span93[num3] = null; + num3++; + span93[num3] = null; + num3++; + span93[num3] = null; + num3++; + span93[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj65.CompletionQuestVariablesFlags = list93; reference68 = obj65; - ref QuestStep reference69 = ref span35[2]; + index2++; + ref QuestStep reference69 = ref span91[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2011073u, new Vector3(-142.2904f, 1.0527954f, 173.38818f), 819); num3 = 6; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - Span span38 = CollectionsMarshal.AsSpan(list94); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span94 = CollectionsMarshal.AsSpan(list94); + index3 = 0; + span94[index3] = null; + index3++; + span94[index3] = null; + index3++; + span94[index3] = null; + index3++; + span94[index3] = null; + index3++; + span94[index3] = null; + index3++; + span94[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list94; reference69 = questStep4; obj64.Steps = list91; reference66 = obj64; - ref QuestSequence reference70 = ref span34[6]; + num++; + ref QuestSequence reference70 = ref span84[num]; QuestSequence obj66 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1033805u, new Vector3(-141.71057f, 1.4901161E-08f, 160.6012f), 819); + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.Interact, 1033805u, new Vector3(-141.71057f, 1.4901161E-08f, 160.6012f), 819); obj66.Steps = list95; reference70 = obj66; - ref QuestSequence reference71 = ref span34[7]; + num++; + ref QuestSequence reference71 = ref span84[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -248508,7 +301174,9 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; @@ -248521,24 +301189,30 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + Span span97 = CollectionsMarshal.AsSpan(list97); + index = 0; + span97[index] = "liza"; questRoot13.Author = list97; - num = 6; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span39 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference72 = ref span39[0]; + index = 6; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference72 = ref span98[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033800u, new Vector3(-27.878296f, -0.65f, -51.285645f), 819); + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033800u, new Vector3(-27.878296f, -0.65f, -51.285645f), 819); obj68.Steps = list99; reference72 = obj68; - ref QuestSequence reference73 = ref span39[1]; + num++; + ref QuestSequence reference73 = ref span98[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 @@ -248546,7 +301220,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1033807u, new Vector3(761.2573f, 25.95656f, 417.99023f), 813) + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.Interact, 1033807u, new Vector3(761.2573f, 25.95656f, 417.99023f), 813) { AethernetShortcut = new AethernetShortcut { @@ -248556,17 +301232,19 @@ public static class AssemblyQuestLoader }; obj69.Steps = list100; reference73 = obj69; - ref QuestSequence reference74 = ref span39[2]; + num++; + ref QuestSequence reference74 = ref span98[num]; QuestSequence obj70 = new QuestSequence { Sequence = 2, Comment = "This isn't solving for the 'best' results, but for the closest waypoints" }; - num2 = 3; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - Span span40 = CollectionsMarshal.AsSpan(list101); - ref QuestStep reference75 = ref span40[0]; + index2 = 3; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + ref QuestStep reference75 = ref span101[num2]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, 2011078u, new Vector3(754.45166f, 15.8845825f, 273.88416f), 813) { StopDistance = 1f, @@ -248574,63 +301252,84 @@ public static class AssemblyQuestLoader ItemId = 2003001u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = 12168u; + index3 = 1; + List list102 = new List(index3); + CollectionsMarshal.SetCount(list102, index3); + Span span102 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span102[num3] = 12168u; obj71.KillEnemyDataIds = list102; num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - Span span41 = CollectionsMarshal.AsSpan(list103); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span103 = CollectionsMarshal.AsSpan(list103); + index3 = 0; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = null; + index3++; + span103[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj71.CompletionQuestVariablesFlags = list103; reference75 = obj71; - ref QuestStep reference76 = ref span40[1]; + num2++; + ref QuestStep reference76 = ref span101[num2]; QuestStep obj72 = new QuestStep(EInteractionType.Combat, 2011076u, new Vector3(495.4756f, 10.299805f, 290.547f), 813) { Fly = true, ItemId = 2003001u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = 12166u; + index3 = 1; + List list104 = new List(index3); + CollectionsMarshal.SetCount(list104, index3); + Span span104 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span104[num3] = 12166u; obj72.KillEnemyDataIds = list104; num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span42 = CollectionsMarshal.AsSpan(list105); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span105 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj72.CompletionQuestVariablesFlags = list105; reference76 = obj72; - ref QuestStep reference77 = ref span40[2]; + num2++; + ref QuestStep reference77 = ref span101[num2]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2011079u, new Vector3(685.5725f, 6.881775f, 497.12354f), 813) { Fly = true, ItemId = 2003001u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = 12168u; + index3 = 1; + List list106 = new List(index3); + CollectionsMarshal.SetCount(list106, index3); + Span span106 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span106[num3] = 12168u; obj73.KillEnemyDataIds = list106; reference77 = obj73; obj70.Steps = list101; reference74 = obj70; - ref QuestSequence reference78 = ref span39[3]; + num++; + ref QuestSequence reference78 = ref span98[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -248638,29 +301337,35 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1033808u, new Vector3(763.9734f, 25.874697f, 419.51624f), 813) + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new QuestStep(EInteractionType.Interact, 1033808u, new Vector3(763.9734f, 25.874697f, 419.51624f), 813) { Fly = true }; obj74.Steps = list107; reference78 = obj74; - ref QuestSequence reference79 = ref span39[4]; + num++; + ref QuestSequence reference79 = ref span98[num]; QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - Span span43 = CollectionsMarshal.AsSpan(list108); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(837.8474f, 37.845993f, 408.60828f), 813) + index2 = 2; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(837.8474f, 37.845993f, 408.60828f), 813) { Fly = true }; - span43[1] = new QuestStep(EInteractionType.Interact, 2011107u, new Vector3(-223.13275f, 38.590088f, -86.80859f), 819); + num2++; + span108[num2] = new QuestStep(EInteractionType.Interact, 2011107u, new Vector3(-223.13275f, 38.590088f, -86.80859f), 819); obj75.Steps = list108; reference79 = obj75; - ref QuestSequence reference80 = ref span39[5]; + num++; + ref QuestSequence reference80 = ref span98[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue @@ -248668,7 +301373,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033811u, new Vector3(-208.11786f, 38.64859f, -82.65814f), 819); + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033811u, new Vector3(-208.11786f, 38.64859f, -82.65814f), 819); obj76.Steps = list109; reference80 = obj76; questRoot13.QuestSequence = list98; @@ -248678,24 +301385,30 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "liza"; + Span span110 = CollectionsMarshal.AsSpan(list110); + index = 0; + span110[index] = "liza"; questRoot14.Author = list110; - num = 5; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span44 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference81 = ref span44[0]; + index = 5; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + Span span111 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference81 = ref span111[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033812u, new Vector3(-205.8595f, 38.614662f, -82.81073f), 819); + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033812u, new Vector3(-205.8595f, 38.614662f, -82.81073f), 819); obj77.Steps = list112; reference81 = obj77; - ref QuestSequence reference82 = ref span44[1]; + num++; + ref QuestSequence reference82 = ref span111[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 @@ -248703,30 +301416,36 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1034900u, new Vector3(-32.791687f, -0.6250627f, -44.663208f), 819) + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.Interact, 1034900u, new Vector3(-32.791687f, -0.6250627f, -44.663208f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj78.Steps = list113; reference82 = obj78; - ref QuestSequence reference83 = ref span44[2]; + num++; + ref QuestSequence reference83 = ref span111[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span45 = CollectionsMarshal.AsSpan(list114); - span45[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 2; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span45[1] = new QuestStep(EInteractionType.Interact, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); + num2++; + span114[num2] = new QuestStep(EInteractionType.Interact, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); obj79.Steps = list114; reference83 = obj79; - ref QuestSequence reference84 = ref span44[3]; + num++; + ref QuestSequence reference84 = ref span111[num]; QuestSequence obj80 = new QuestSequence { Sequence = 3 @@ -248734,18 +301453,23 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 2011080u, new Vector3(-11.39856f, 1.449585f, -6.942932f), 351); + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.Interact, 2011080u, new Vector3(-11.39856f, 1.449585f, -6.942932f), 351); obj80.Steps = list115; reference84 = obj80; - ref QuestSequence reference85 = ref span44[4]; + num++; + ref QuestSequence reference85 = ref span111[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033817u, new Vector3(-3.03656f, 0.01804012f, -8.1026f), 351); + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033817u, new Vector3(-3.03656f, 0.01804012f, -8.1026f), 351); obj81.Steps = list116; reference85 = obj81; questRoot14.QuestSequence = list111; @@ -248755,13 +301479,16 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "liza"; + Span span117 = CollectionsMarshal.AsSpan(list117); + index = 0; + span117[index] = "liza"; questRoot15.Author = list117; - num = 4; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span46 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference86 = ref span46[0]; + index = 4; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + Span span118 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference86 = ref span118[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 @@ -248769,34 +301496,42 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); obj82.Steps = list119; reference86 = obj82; - ref QuestSequence reference87 = ref span46[1]; + num++; + ref QuestSequence reference87 = ref span118[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - Span span47 = CollectionsMarshal.AsSpan(list120); - span47[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + index2 = 4; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - span47[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.958076f, 21.232033f, -653.85443f), 156) + num2++; + span120[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.958076f, 21.232033f, -653.85443f), 156) { Mount = true }; - span47[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.789001f, 54.865185f, -770.47614f), 156) + num2++; + span120[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.789001f, 54.865185f, -770.47614f), 156) { Fly = true }; - span47[3] = new QuestStep(EInteractionType.Interact, 1033818u, new Vector3(24.551636f, 50.99997f, -815.18274f), 156); + num2++; + span120[num2] = new QuestStep(EInteractionType.Interact, 1033818u, new Vector3(24.551636f, 50.99997f, -815.18274f), 156); obj83.Steps = list120; reference87 = obj83; - ref QuestSequence reference88 = ref span46[2]; + num++; + ref QuestSequence reference88 = ref span118[num]; QuestSequence obj84 = new QuestSequence { Sequence = 2 @@ -248804,8 +301539,9 @@ public static class AssemblyQuestLoader num2 = 2; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span48 = CollectionsMarshal.AsSpan(list121); - span48[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -248815,18 +301551,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span48[1] = new QuestStep(EInteractionType.Interact, 1033819u, new Vector3(-0.015319824f, 0f, -4.043701f), 844); + index2++; + span121[index2] = new QuestStep(EInteractionType.Interact, 1033819u, new Vector3(-0.015319824f, 0f, -4.043701f), 844); obj84.Steps = list121; reference88 = obj84; - ref QuestSequence reference89 = ref span46[3]; + num++; + ref QuestSequence reference89 = ref span118[num]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033822u, new Vector3(39.6886f, -6.9874797E-13f, -0.83929443f), 819) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033822u, new Vector3(39.6886f, -6.9874797E-13f, -0.83929443f), 819) { StopDistance = 5f }; @@ -248839,13 +301579,16 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; + Span span123 = CollectionsMarshal.AsSpan(list123); + index = 0; + span123[index] = "liza"; questRoot16.Author = list123; - num = 5; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span49 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference90 = ref span49[0]; + index = 5; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + Span span124 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference90 = ref span124[num]; QuestSequence obj86 = new QuestSequence { Sequence = 0 @@ -248853,32 +301596,39 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033823u, new Vector3(40.329468f, -2.0168546E-08f, 1.9378662f), 819) + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033823u, new Vector3(40.329468f, -2.0168546E-08f, 1.9378662f), 819) { StopDistance = 5f }; obj86.Steps = list125; reference90 = obj86; - ref QuestSequence reference91 = ref span49[1]; + num++; + ref QuestSequence reference91 = ref span124[num]; QuestSequence obj87 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - Span span50 = CollectionsMarshal.AsSpan(list126); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-496.10434f, 8.986935f, 603.11676f), 814) + index2 = 2; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-496.10434f, 8.986935f, 603.11676f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; - ref QuestStep reference92 = ref span50[1]; + num2++; + ref QuestStep reference92 = ref span126[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1033827u, new Vector3(-495.079f, 8.986954f, 604.27246f), 814); num3 = 1; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - CollectionsMarshal.AsSpan(list127)[0] = new DialogueChoice + Span span127 = CollectionsMarshal.AsSpan(list127); + index3 = 0; + span127[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMI105_03775_Q2_000_052") @@ -248887,11 +301637,13 @@ public static class AssemblyQuestLoader reference92 = questStep5; obj87.Steps = list126; reference91 = obj87; - span49[2] = new QuestSequence + num++; + span124[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference93 = ref span49[3]; + num++; + ref QuestSequence reference93 = ref span124[num]; QuestSequence obj88 = new QuestSequence { Sequence = 3 @@ -248899,39 +301651,46 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list128)[0]; + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + ref QuestStep reference94 = ref span128[index2]; QuestStep obj89 = new QuestStep(EInteractionType.SinglePlayerDuty, 2011085u, new Vector3(1.822433f, -200.0001f, -448.3325f), 918) { Comment = "Fight NPCs, then Elidibus" }; SinglePlayerDutyOptions singlePlayerDutyOptions2 = new SinglePlayerDutyOptions(); - num3 = 2; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - Span span51 = CollectionsMarshal.AsSpan(list129); - span51[0] = "(phase 2) AI doesn't target Ardbert to start combat"; - span51[1] = "(phase 2) VBM module: Elidibus' line cleave only covers half the length of the actual line (survivable)"; + index3 = 2; + List list129 = new List(index3); + CollectionsMarshal.SetCount(list129, index3); + Span span129 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span129[num3] = "(phase 2) AI doesn't target Ardbert to start combat"; + num3++; + span129[num3] = "(phase 2) VBM module: Elidibus' line cleave only covers half the length of the actual line (survivable)"; singlePlayerDutyOptions2.Notes = list129; obj89.SinglePlayerDutyOptions = singlePlayerDutyOptions2; num3 = 3; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span52 = CollectionsMarshal.AsSpan(list130); - span52[0] = new DialogueChoice + Span span130 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span130[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", Prompt = new ExcelRef(209u), Answer = new ExcelRef(211u) }; - span52[1] = new DialogueChoice + index3++; + span130[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", Prompt = new ExcelRef(209u), Answer = new ExcelRef(216u) }; - span52[2] = new DialogueChoice + index3++; + span130[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", @@ -248942,15 +301701,18 @@ public static class AssemblyQuestLoader reference94 = obj89; obj88.Steps = list128; reference93 = obj88; - ref QuestSequence reference95 = ref span49[4]; + num++; + ref QuestSequence reference95 = ref span124[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033828u, new Vector3(-396.2005f, -229.06482f, 782.9861f), 818) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span131[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033828u, new Vector3(-396.2005f, -229.06482f, 782.9861f), 818) { StopDistance = 5f }; @@ -248963,13 +301725,16 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "liza"; + Span span132 = CollectionsMarshal.AsSpan(list132); + index = 0; + span132[index] = "liza"; questRoot17.Author = list132; - num = 8; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span53 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference96 = ref span53[0]; + index = 8; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + Span span133 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference96 = ref span133[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -248977,21 +301742,27 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 2011087u, new Vector3(-382.8231f, -229.0648f, 755.3434f), 818); + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span134[index2] = new QuestStep(EInteractionType.AcceptQuest, 2011087u, new Vector3(-382.8231f, -229.0648f, 755.3434f), 818); obj91.Steps = list134; reference96 = obj91; - ref QuestSequence reference97 = ref span53[1]; + num++; + ref QuestSequence reference97 = ref span133[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 2011089u, new Vector3(-372.0399f, -229.0648f, 712.4863f), 818); + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span135[num2] = new QuestStep(EInteractionType.Interact, 2011089u, new Vector3(-372.0399f, -229.0648f, 712.4863f), 818); obj92.Steps = list135; reference97 = obj92; - ref QuestSequence reference98 = ref span53[2]; + num++; + ref QuestSequence reference98 = ref span133[num]; QuestSequence obj93 = new QuestSequence { Sequence = 2 @@ -248999,21 +301770,27 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 2011091u, new Vector3(-251.9112f, -229.20581f, 657.3739f), 818); + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span136[index2] = new QuestStep(EInteractionType.Interact, 2011091u, new Vector3(-251.9112f, -229.20581f, 657.3739f), 818); obj93.Steps = list136; reference98 = obj93; - ref QuestSequence reference99 = ref span53[3]; + num++; + ref QuestSequence reference99 = ref span133[num]; QuestSequence obj94 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 2011093u, new Vector3(-196.1242f, -244.89203f, 679.9878f), 818); + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span137[num2] = new QuestStep(EInteractionType.Interact, 2011093u, new Vector3(-196.1242f, -244.89203f, 679.9878f), 818); obj94.Steps = list137; reference99 = obj94; - ref QuestSequence reference100 = ref span53[4]; + num++; + ref QuestSequence reference100 = ref span133[num]; QuestSequence obj95 = new QuestSequence { Sequence = 4 @@ -249021,21 +301798,27 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 2011095u, new Vector3(-132.1889f, -244.89203f, 687.9529f), 818); + Span span138 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span138[index2] = new QuestStep(EInteractionType.Interact, 2011095u, new Vector3(-132.1889f, -244.89203f, 687.9529f), 818); obj95.Steps = list138; reference100 = obj95; - ref QuestSequence reference101 = ref span53[5]; + num++; + ref QuestSequence reference101 = ref span133[num]; QuestSequence obj96 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 2011097u, new Vector3(-70.78668f, -263.9353f, 710.2921f), 818); + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + Span span139 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span139[num2] = new QuestStep(EInteractionType.Interact, 2011097u, new Vector3(-70.78668f, -263.9353f, 710.2921f), 818); obj96.Steps = list139; reference101 = obj96; - ref QuestSequence reference102 = ref span53[6]; + num++; + ref QuestSequence reference102 = ref span133[num]; QuestSequence obj97 = new QuestSequence { Sequence = 6 @@ -249043,18 +301826,23 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 2011099u, new Vector3(-29.221008f, -263.9353f, 717.28076f), 818); + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.Interact, 2011099u, new Vector3(-29.221008f, -263.9353f, 717.28076f), 818); obj97.Steps = list140; reference102 = obj97; - ref QuestSequence reference103 = ref span53[7]; + num++; + ref QuestSequence reference103 = ref span133[num]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033829u, new Vector3(-497.94766f, 8.986913f, 584.1915f), 814); + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span141[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033829u, new Vector3(-497.94766f, 8.986913f, 584.1915f), 814); obj98.Steps = list141; reference103 = obj98; questRoot17.QuestSequence = list133; @@ -249064,13 +301852,16 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - CollectionsMarshal.AsSpan(list142)[0] = "liza"; + Span span142 = CollectionsMarshal.AsSpan(list142); + index = 0; + span142[index] = "liza"; questRoot18.Author = list142; - num = 8; - List list143 = new List(num); - CollectionsMarshal.SetCount(list143, num); - Span span54 = CollectionsMarshal.AsSpan(list143); - ref QuestSequence reference104 = ref span54[0]; + index = 8; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + Span span143 = CollectionsMarshal.AsSpan(list143); + num = 0; + ref QuestSequence reference104 = ref span143[num]; QuestSequence obj99 = new QuestSequence { Sequence = 0 @@ -249078,24 +301869,30 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033829u, new Vector3(-497.94766f, 8.986913f, 584.1915f), 814); + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span144[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033829u, new Vector3(-497.94766f, 8.986913f, 584.1915f), 814); obj99.Steps = list144; reference104 = obj99; - ref QuestSequence reference105 = ref span54[1]; + num++; + ref QuestSequence reference105 = ref span143[num]; QuestSequence obj100 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1033838u, new Vector3(12.954895f, 82.05f, 7.095398f), 820) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span145[num2] = new QuestStep(EInteractionType.Interact, 1033838u, new Vector3(12.954895f, 82.05f, 7.095398f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj100.Steps = list145; reference105 = obj100; - ref QuestSequence reference106 = ref span54[2]; + num++; + ref QuestSequence reference106 = ref span143[num]; QuestSequence obj101 = new QuestSequence { Sequence = 2 @@ -249103,18 +301900,23 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1033830u, new Vector3(23.819275f, 82.049995f, 16.342407f), 820); + Span span146 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span146[index2] = new QuestStep(EInteractionType.Interact, 1033830u, new Vector3(23.819275f, 82.049995f, 16.342407f), 820); obj101.Steps = list146; reference106 = obj101; - ref QuestSequence reference107 = ref span54[3]; + num++; + ref QuestSequence reference107 = ref span143[num]; QuestSequence obj102 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Duty, null, null, 820) + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.Duty, null, null, 820) { DutyOptions = new DutyOptions { @@ -249123,11 +301925,13 @@ public static class AssemblyQuestLoader }; obj102.Steps = list147; reference107 = obj102; - span54[4] = new QuestSequence + num++; + span143[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference108 = ref span54[5]; + num++; + ref QuestSequence reference108 = ref span143[num]; QuestSequence obj103 = new QuestSequence { Sequence = 5 @@ -249135,24 +301939,30 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1033850u, new Vector3(291.49304f, 9.905235f, 153.2157f), 813); + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span148[index2] = new QuestStep(EInteractionType.Interact, 1033850u, new Vector3(291.49304f, 9.905235f, 153.2157f), 813); obj103.Steps = list148; reference108 = obj103; - ref QuestSequence reference109 = ref span54[6]; + num++; + ref QuestSequence reference109 = ref span143[num]; QuestSequence obj104 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1033852u, new Vector3(574.9751f, 8.563855f, 336.8734f), 813) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.Interact, 1033852u, new Vector3(574.9751f, 8.563855f, 336.8734f), 813) { Fly = true }; obj104.Steps = list149; reference109 = obj104; - ref QuestSequence reference110 = ref span54[7]; + num++; + ref QuestSequence reference110 = ref span143[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -249160,7 +301970,9 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033854u, new Vector3(59.983154f, -3.0654925E-07f, 1.6021729f), 819) + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033854u, new Vector3(59.983154f, -3.0654925E-07f, 1.6021729f), 819) { StopDistance = 5f }; @@ -249173,26 +301985,33 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "liza"; + Span span151 = CollectionsMarshal.AsSpan(list151); + index = 0; + span151[index] = "liza"; questRoot19.Author = list151; - num = 5; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span55 = CollectionsMarshal.AsSpan(list152); - ref QuestSequence reference111 = ref span55[0]; + index = 5; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + Span span152 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref QuestSequence reference111 = ref span152[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list153)[0]; + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + ref QuestStep reference112 = ref span153[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.AcceptQuest, 1033854u, new Vector3(59.983154f, -3.0654925E-07f, 1.6021729f), 819); - num3 = 1; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = new DialogueChoice + index3 = 1; + List list154 = new List(index3); + CollectionsMarshal.SetCount(list154, index3); + Span span154 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span154[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMI108_03778_Q1_000_001"), @@ -249202,11 +302021,13 @@ public static class AssemblyQuestLoader reference112 = questStep6; obj106.Steps = list153; reference111 = obj106; - span55[1] = new QuestSequence + num++; + span152[num] = new QuestSequence { Sequence = 1 }; - ref QuestSequence reference113 = ref span55[2]; + num++; + ref QuestSequence reference113 = ref span152[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 @@ -249214,7 +302035,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Duty, null, null, 931) + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new QuestStep(EInteractionType.Duty, null, null, 931) { DutyOptions = new DutyOptions { @@ -249223,19 +302046,23 @@ public static class AssemblyQuestLoader }; obj107.Steps = list155; reference113 = obj107; - span55[3] = new QuestSequence + num++; + span152[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference114 = ref span55[4]; + num++; + ref QuestSequence reference114 = ref span152[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033856u, new Vector3(53.421753f, 0.019417252f, -0.045776367f), 819); + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033856u, new Vector3(53.421753f, 0.019417252f, -0.045776367f), 819); obj108.Steps = list156; reference114 = obj108; questRoot19.QuestSequence = list152; @@ -249245,13 +302072,16 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "liza"; + Span span157 = CollectionsMarshal.AsSpan(list157); + index = 0; + span157[index] = "liza"; questRoot20.Author = list157; - num = 7; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span56 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference115 = ref span56[0]; + index = 7; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + Span span158 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestSequence reference115 = ref span158[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -249259,27 +302089,33 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033860u, new Vector3(53.269165f, -2.8964132E-07f, 1.4190674f), 819) + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033860u, new Vector3(53.269165f, -2.8964132E-07f, 1.4190674f), 819) { StopDistance = 5f }; obj109.Steps = list159; reference115 = obj109; - ref QuestSequence reference116 = ref span56[1]; + num++; + ref QuestSequence reference116 = ref span158[num]; QuestSequence obj110 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1034902u, new Vector3(51.285522f, -2.59839E-07f, -1.4801636f), 819) + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.Interact, 1034902u, new Vector3(51.285522f, -2.59839E-07f, -1.4801636f), 819) { StopDistance = 7f }; obj110.Steps = list160; reference116 = obj110; - ref QuestSequence reference117 = ref span56[2]; + num++; + ref QuestSequence reference117 = ref span158[num]; QuestSequence obj111 = new QuestSequence { Sequence = 2 @@ -249287,27 +302123,33 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1033864u, new Vector3(384.60352f, -28.36043f, 322.56042f), 815) + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.Interact, 1033864u, new Vector3(384.60352f, -28.36043f, 322.56042f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj111.Steps = list161; reference117 = obj111; - ref QuestSequence reference118 = ref span56[3]; + num++; + ref QuestSequence reference118 = ref span158[num]; QuestSequence obj112 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 1033865u, new Vector3(251.8501f, -46.667526f, 336.90393f), 815) + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span162[num2] = new QuestStep(EInteractionType.Interact, 1033865u, new Vector3(251.8501f, -46.667526f, 336.90393f), 815) { Fly = true }; obj112.Steps = list162; reference118 = obj112; - ref QuestSequence reference119 = ref span56[4]; + num++; + ref QuestSequence reference119 = ref span158[num]; QuestSequence obj113 = new QuestSequence { Sequence = 4 @@ -249315,24 +302157,30 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1033867u, new Vector3(253.28442f, -46.571102f, 337.02588f), 815); + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span163[index2] = new QuestStep(EInteractionType.Interact, 1033867u, new Vector3(253.28442f, -46.571102f, 337.02588f), 815); obj113.Steps = list163; reference119 = obj113; - ref QuestSequence reference120 = ref span56[5]; + num++; + ref QuestSequence reference120 = ref span158[num]; QuestSequence obj114 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0f, 0f, 0f), 820) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0f, 0f, 0f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj114.Steps = list164; reference120 = obj114; - ref QuestSequence reference121 = ref span56[6]; + num++; + ref QuestSequence reference121 = ref span158[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -249340,7 +302188,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033868u, new Vector3(19.57727f, 82.78207f, 48.53894f), 820); + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033868u, new Vector3(19.57727f, 82.78207f, 48.53894f), 820); obj115.Steps = list165; reference121 = obj115; questRoot20.QuestSequence = list158; @@ -249350,24 +302200,30 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "liza"; + Span span166 = CollectionsMarshal.AsSpan(list166); + index = 0; + span166[index] = "liza"; questRoot21.Author = list166; - num = 4; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - Span span57 = CollectionsMarshal.AsSpan(list167); - ref QuestSequence reference122 = ref span57[0]; + index = 4; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + Span span167 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference122 = ref span167[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033868u, new Vector3(19.57727f, 82.78207f, 48.53894f), 820); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033868u, new Vector3(19.57727f, 82.78207f, 48.53894f), 820); obj116.Steps = list168; reference122 = obj116; - ref QuestSequence reference123 = ref span57[1]; + num++; + ref QuestSequence reference123 = ref span167[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 @@ -249375,29 +302231,35 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1033872u, new Vector3(-634.2717f, 35.86156f, -234.21082f), 816) + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.Interact, 1033872u, new Vector3(-634.2717f, 35.86156f, -234.21082f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj117.Steps = list169; reference123 = obj117; - ref QuestSequence reference124 = ref span57[2]; + num++; + ref QuestSequence reference124 = ref span167[num]; QuestSequence obj118 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.Interact, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; obj118.Steps = list170; reference124 = obj118; - ref QuestSequence reference125 = ref span57[3]; + num++; + ref QuestSequence reference125 = ref span167[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue @@ -249405,8 +302267,9 @@ public static class AssemblyQuestLoader num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span58 = CollectionsMarshal.AsSpan(list171); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-221.27931f, 55.081436f, -553.9665f), 816) + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span171[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-221.27931f, 55.081436f, -553.9665f), 816) { SkipConditions = new SkipConditions { @@ -249416,7 +302279,8 @@ public static class AssemblyQuestLoader } } }; - span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1033872u, new Vector3(-634.2717f, 35.86156f, -234.21082f), 816) + index2++; + span171[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033872u, new Vector3(-634.2717f, 35.86156f, -234.21082f), 816) { Fly = true }; @@ -249429,24 +302293,30 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - CollectionsMarshal.AsSpan(list172)[0] = "liza"; + Span span172 = CollectionsMarshal.AsSpan(list172); + index = 0; + span172[index] = "liza"; questRoot22.Author = list172; - num = 6; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - Span span59 = CollectionsMarshal.AsSpan(list173); - ref QuestSequence reference126 = ref span59[0]; + index = 6; + List list173 = new List(index); + CollectionsMarshal.SetCount(list173, index); + Span span173 = CollectionsMarshal.AsSpan(list173); + num = 0; + ref QuestSequence reference126 = ref span173[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033872u, new Vector3(-634.2717f, 35.86156f, -234.21082f), 816); + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033872u, new Vector3(-634.2717f, 35.86156f, -234.21082f), 816); obj120.Steps = list174; reference126 = obj120; - ref QuestSequence reference127 = ref span59[1]; + num++; + ref QuestSequence reference127 = ref span173[num]; QuestSequence obj121 = new QuestSequence { Sequence = 1 @@ -249454,24 +302324,30 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1032532u, new Vector3(-88.33453f, -19.033354f, 296.31494f), 817) + Span span175 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span175[index2] = new QuestStep(EInteractionType.Interact, 1032532u, new Vector3(-88.33453f, -19.033354f, 296.31494f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj121.Steps = list175; reference127 = obj121; - ref QuestSequence reference128 = ref span59[2]; + num++; + ref QuestSequence reference128 = ref span173[num]; QuestSequence obj122 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1032532u, new Vector3(-88.33453f, -19.033354f, 296.31494f), 817); + index2 = 1; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + Span span176 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span176[num2] = new QuestStep(EInteractionType.Interact, 1032532u, new Vector3(-88.33453f, -19.033354f, 296.31494f), 817); obj122.Steps = list176; reference128 = obj122; - ref QuestSequence reference129 = ref span59[3]; + num++; + ref QuestSequence reference129 = ref span173[num]; QuestSequence obj123 = new QuestSequence { Sequence = 3 @@ -249479,21 +302355,26 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1033878u, new Vector3(-483.8178f, 45.586155f, -236.68274f), 815) + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span177[index2] = new QuestStep(EInteractionType.Interact, 1033878u, new Vector3(-483.8178f, 45.586155f, -236.68274f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; obj123.Steps = list177; reference129 = obj123; - ref QuestSequence reference130 = ref span59[4]; + num++; + ref QuestSequence reference130 = ref span173[num]; QuestSequence obj124 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list178)[0]; + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + Span span178 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + ref QuestStep reference131 = ref span178[num2]; QuestStep obj125 = new QuestStep(EInteractionType.Interact, 1033881u, new Vector3(-37.43042f, 4.583f, 3.982544f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium @@ -249501,7 +302382,9 @@ public static class AssemblyQuestLoader num3 = 1; List list179 = new List(num3); CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = new DialogueChoice + Span span179 = CollectionsMarshal.AsSpan(list179); + index3 = 0; + span179[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMI111_03781_Q1_000_153"), @@ -249511,7 +302394,8 @@ public static class AssemblyQuestLoader reference131 = obj125; obj124.Steps = list178; reference130 = obj124; - ref QuestSequence reference132 = ref span59[5]; + num++; + ref QuestSequence reference132 = ref span173[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -249519,7 +302403,9 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033884u, new Vector3(26.230225f, 0f, 1.4190674f), 819); + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span180[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033884u, new Vector3(26.230225f, 0f, 1.4190674f), 819); obj126.Steps = list180; reference132 = obj126; questRoot22.QuestSequence = list173; @@ -249529,27 +302415,33 @@ public static class AssemblyQuestLoader num = 1; List list181 = new List(num); CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "liza"; + Span span181 = CollectionsMarshal.AsSpan(list181); + index = 0; + span181[index] = "liza"; questRoot23.Author = list181; - num = 3; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - Span span60 = CollectionsMarshal.AsSpan(list182); - ref QuestSequence reference133 = ref span60[0]; + index = 3; + List list182 = new List(index); + CollectionsMarshal.SetCount(list182, index); + Span span182 = CollectionsMarshal.AsSpan(list182); + num = 0; + ref QuestSequence reference133 = ref span182[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033887u, new Vector3(24.2771f, -5.234193E-13f, -0.7477417f), 819) + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span183[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033887u, new Vector3(24.2771f, -5.234193E-13f, -0.7477417f), 819) { StopDistance = 5f }; obj127.Steps = list183; reference133 = obj127; - ref QuestSequence reference134 = ref span60[1]; + num++; + ref QuestSequence reference134 = ref span182[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 @@ -249557,25 +302449,31 @@ public static class AssemblyQuestLoader num2 = 2; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span61 = CollectionsMarshal.AsSpan(list184); - ref QuestStep reference135 = ref span61[0]; + Span span184 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + ref QuestStep reference135 = ref span184[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819); - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new DialogueChoice + index3 = 1; + List list185 = new List(index3); + CollectionsMarshal.SetCount(list185, index3); + Span span185 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span185[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMI112_03782_Q1_000_007") }; questStep7.DialogueChoices = list185; reference135 = questStep7; - ref QuestStep reference136 = ref span61[1]; + index2++; + ref QuestStep reference136 = ref span184[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1033888u, new Vector3(1.3580322f, 0f, -5.081299f), 844); num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = new DialogueChoice + Span span186 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span186[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMI112_03782_Q2_000_044") @@ -249584,17 +302482,20 @@ public static class AssemblyQuestLoader reference136 = questStep8; obj128.Steps = list184; reference134 = obj128; - ref QuestSequence reference137 = ref span60[2]; + num++; + ref QuestSequence reference137 = ref span182[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - Span span62 = CollectionsMarshal.AsSpan(list187); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.1512314f, 1.9999986f, 19.4396f), 351); - span62[1] = new QuestStep(EInteractionType.CompleteQuest, 1033896u, new Vector3(1.5106201f, 0f, -3.1586914f), 351); + index2 = 2; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.1512314f, 1.9999986f, 19.4396f), 351); + num2++; + span187[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033896u, new Vector3(1.5106201f, 0f, -3.1586914f), 351); obj129.Steps = list187; reference137 = obj129; questRoot23.QuestSequence = list182; @@ -249604,13 +302505,16 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; + Span span188 = CollectionsMarshal.AsSpan(list188); + index = 0; + span188[index] = "liza"; questRoot24.Author = list188; - num = 9; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span63 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference138 = ref span63[0]; + index = 9; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + Span span189 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference138 = ref span189[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -249618,7 +302522,9 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032581u, new Vector3(750.1792f, 69.99991f, 518.9136f), 621) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032581u, new Vector3(750.1792f, 69.99991f, 518.9136f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -249632,24 +302538,29 @@ public static class AssemblyQuestLoader }; obj130.Steps = list190; reference138 = obj130; - ref QuestSequence reference139 = ref span63[1]; + num++; + ref QuestSequence reference139 = ref span189[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - ref QuestStep reference140 = ref CollectionsMarshal.AsSpan(list191)[0]; + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + ref QuestStep reference140 = ref span191[num2]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; - num3 = 1; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - CollectionsMarshal.AsSpan(list192)[0] = new DialogueChoice + index3 = 1; + List list192 = new List(index3); + CollectionsMarshal.SetCount(list192, index3); + Span span192 = CollectionsMarshal.AsSpan(list192); + num3 = 0; + span192[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYW101_03783_Q3_000_000") @@ -249658,7 +302569,8 @@ public static class AssemblyQuestLoader reference140 = obj132; obj131.Steps = list191; reference139 = obj131; - ref QuestSequence reference141 = ref span63[2]; + num++; + ref QuestSequence reference141 = ref span189[num]; QuestSequence obj133 = new QuestSequence { Sequence = 2 @@ -249666,21 +302578,27 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1032582u, new Vector3(-482.0478f, 107.63f, 121.934814f), 829); + Span span193 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span193[index2] = new QuestStep(EInteractionType.Interact, 1032582u, new Vector3(-482.0478f, 107.63f, 121.934814f), 829); obj133.Steps = list193; reference141 = obj133; - ref QuestSequence reference142 = ref span63[3]; + num++; + ref QuestSequence reference142 = ref span189[num]; QuestSequence obj134 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1032585u, new Vector3(-465.53754f, 107.63f, 130.35779f), 829); + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.Interact, 1032585u, new Vector3(-465.53754f, 107.63f, 130.35779f), 829); obj134.Steps = list194; reference142 = obj134; - ref QuestSequence reference143 = ref span63[4]; + num++; + ref QuestSequence reference143 = ref span189[num]; QuestSequence obj135 = new QuestSequence { Sequence = 4 @@ -249688,7 +302606,9 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Duty, null, null, 829) + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span195[index2] = new QuestStep(EInteractionType.Duty, null, null, 829) { DutyOptions = new DutyOptions { @@ -249697,25 +302617,30 @@ public static class AssemblyQuestLoader }; obj135.Steps = list195; reference143 = obj135; - span63[5] = new QuestSequence + num++; + span189[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference144 = ref span63[6]; + num++; + ref QuestSequence reference144 = ref span189[num]; QuestSequence obj136 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1032861u, new Vector3(-473.89948f, 107.63f, 132.86023f), 829) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.Interact, 1032861u, new Vector3(-473.89948f, 107.63f, 132.86023f), 829) { StopDistance = 4f }; obj136.Steps = list196; reference144 = obj136; - ref QuestSequence reference145 = ref span63[7]; + num++; + ref QuestSequence reference145 = ref span189[num]; QuestSequence obj137 = new QuestSequence { Sequence = 7 @@ -249723,23 +302648,28 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829); + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.Interact, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829); obj137.Steps = list197; reference145 = obj137; - ref QuestSequence reference146 = ref span63[8]; + num++; + ref QuestSequence reference146 = ref span189[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - Span span64 = CollectionsMarshal.AsSpan(list198); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) + index2 = 2; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span198 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span198[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) { Fly = true }; - span64[1] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + num2++; + span198[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { NextQuestId = new QuestId(3895) }; @@ -249752,13 +302682,16 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "liza"; + Span span199 = CollectionsMarshal.AsSpan(list199); + index = 0; + span199[index] = "liza"; questRoot25.Author = list199; - num = 2; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span65 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference147 = ref span65[0]; + index = 2; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + Span span200 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference147 = ref span200[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -249766,24 +302699,29 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj139.Steps = list201; reference147 = obj139; - ref QuestSequence reference148 = ref span65[1]; + num++; + ref QuestSequence reference148 = ref span200[num]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - Span span66 = CollectionsMarshal.AsSpan(list202); - span66[0] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + index2 = 2; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - span66[1] = new QuestStep(EInteractionType.CompleteQuest, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895) + num2++; + span202[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895) { NextQuestId = new QuestId(3785) }; @@ -249796,13 +302734,16 @@ public static class AssemblyQuestLoader num = 1; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - CollectionsMarshal.AsSpan(list203)[0] = "liza"; + Span span203 = CollectionsMarshal.AsSpan(list203); + index = 0; + span203[index] = "liza"; questRoot26.Author = list203; - num = 4; - List list204 = new List(num); - CollectionsMarshal.SetCount(list204, num); - Span span67 = CollectionsMarshal.AsSpan(list204); - ref QuestSequence reference149 = ref span67[0]; + index = 4; + List list204 = new List(index); + CollectionsMarshal.SetCount(list204, index); + Span span204 = CollectionsMarshal.AsSpan(list204); + num = 0; + ref QuestSequence reference149 = ref span204[num]; QuestSequence obj141 = new QuestSequence { Sequence = 0 @@ -249810,29 +302751,35 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); obj141.Steps = list205; reference149 = obj141; - ref QuestSequence reference150 = ref span67[1]; + num++; + ref QuestSequence reference150 = ref span204[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - Span span68 = CollectionsMarshal.AsSpan(list206); - span68[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + index2 = 2; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - span68[1] = new QuestStep(EInteractionType.Interact, 1031580u, new Vector3(665.21704f, 297.47797f, -159.77728f), 814) + num2++; + span206[num2] = new QuestStep(EInteractionType.Interact, 1031580u, new Vector3(665.21704f, 297.47797f, -159.77728f), 814) { Fly = true }; obj142.Steps = list206; reference150 = obj142; - ref QuestSequence reference151 = ref span67[2]; + num++; + ref QuestSequence reference151 = ref span204[num]; QuestSequence obj143 = new QuestSequence { Sequence = 2 @@ -249840,7 +302787,9 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list207)[0]; + Span span207 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + ref QuestStep reference152 = ref span207[index2]; QuestStep obj144 = new QuestStep(EInteractionType.Combat, null, new Vector3(382.49646f, 312.8454f, -382.58423f), 814) { Fly = true, @@ -249849,7 +302798,9 @@ public static class AssemblyQuestLoader num3 = 1; List list208 = new List(num3); CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = new ComplexCombatData + Span span208 = CollectionsMarshal.AsSpan(list208); + index3 = 0; + span208[index3] = new ComplexCombatData { DataId = 10410u, MinimumKillCount = 1u, @@ -249860,15 +302811,18 @@ public static class AssemblyQuestLoader reference152 = obj144; obj143.Steps = list207; reference151 = obj143; - ref QuestSequence reference153 = ref span67[3]; + num++; + ref QuestSequence reference153 = ref span204[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031580u, new Vector3(665.21704f, 297.47797f, -159.77728f), 814) + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + Span span209 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span209[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031580u, new Vector3(665.21704f, 297.47797f, -159.77728f), 814) { Fly = true, NextQuestId = new QuestId(3952) @@ -249882,13 +302836,16 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "liza"; + Span span210 = CollectionsMarshal.AsSpan(list210); + index = 0; + span210[index] = "liza"; questRoot27.Author = list210; - num = 6; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - Span span69 = CollectionsMarshal.AsSpan(list211); - ref QuestSequence reference154 = ref span69[0]; + index = 6; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + Span span211 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference154 = ref span211[num]; QuestSequence obj146 = new QuestSequence { Sequence = 0 @@ -249896,24 +302853,30 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032715u, new Vector3(265.3086f, 7.1558266f, -237.81189f), 815) + Span span212 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span212[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032715u, new Vector3(265.3086f, 7.1558266f, -237.81189f), 815) { StopDistance = 7f }; obj146.Steps = list212; reference154 = obj146; - ref QuestSequence reference155 = ref span69[1]; + num++; + ref QuestSequence reference155 = ref span211[num]; QuestSequence obj147 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1032606u, new Vector3(318.2268f, 1.5411377f, -225.6352f), 815); + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span213 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span213[num2] = new QuestStep(EInteractionType.Interact, 1032606u, new Vector3(318.2268f, 1.5411377f, -225.6352f), 815); obj147.Steps = list213; reference155 = obj147; - ref QuestSequence reference156 = ref span69[2]; + num++; + ref QuestSequence reference156 = ref span211[num]; QuestSequence obj148 = new QuestSequence { Sequence = 2 @@ -249921,27 +302884,33 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 2010957u, new Vector3(485.40466f, -26.29132f, -20.859192f), 815) + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.Interact, 2010957u, new Vector3(485.40466f, -26.29132f, -20.859192f), 815) { Fly = true }; obj148.Steps = list214; reference156 = obj148; - ref QuestSequence reference157 = ref span69[3]; + num++; + ref QuestSequence reference157 = ref span211[num]; QuestSequence obj149 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1032591u, new Vector3(482.44446f, -41.81235f, 81.55945f), 815) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.Interact, 1032591u, new Vector3(482.44446f, -41.81235f, 81.55945f), 815) { StopDistance = 6f }; obj149.Steps = list215; reference157 = obj149; - ref QuestSequence reference158 = ref span69[4]; + num++; + ref QuestSequence reference158 = ref span211[num]; QuestSequence obj150 = new QuestSequence { Sequence = 4 @@ -249949,15 +302918,19 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list216)[0]; + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + ref QuestStep reference159 = ref span216[index2]; QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1030092u, new Vector3(382.864f, -64.404945f, 512.01636f), 815) { Fly = true }; - num3 = 1; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = new DialogueChoice + index3 = 1; + List list217 = new List(index3); + CollectionsMarshal.SetCount(list217, index3); + Span span217 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span217[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKRA201_03787_YESNO_001") @@ -249966,15 +302939,18 @@ public static class AssemblyQuestLoader reference159 = obj151; obj150.Steps = list216; reference158 = obj150; - ref QuestSequence reference160 = ref span69[5]; + num++; + ref QuestSequence reference160 = ref span211[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032596u, new Vector3(-6.0273438f, -2.5312338f, 21.62201f), 878) + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span218[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032596u, new Vector3(-6.0273438f, -2.5312338f, 21.62201f), 878) { NextQuestId = new QuestId(3788) }; @@ -249987,13 +302963,16 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - CollectionsMarshal.AsSpan(list219)[0] = "liza"; + Span span219 = CollectionsMarshal.AsSpan(list219); + index = 0; + span219[index] = "liza"; questRoot28.Author = list219; - num = 4; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - Span span70 = CollectionsMarshal.AsSpan(list220); - ref QuestSequence reference161 = ref span70[0]; + index = 4; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + Span span220 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference161 = ref span220[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 @@ -250001,26 +302980,32 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032596u, new Vector3(-6.0273438f, -2.5312338f, 21.62201f), 878); + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span221[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032596u, new Vector3(-6.0273438f, -2.5312338f, 21.62201f), 878); obj153.Steps = list221; reference161 = obj153; - ref QuestSequence reference162 = ref span70[1]; + num++; + ref QuestSequence reference162 = ref span220[num]; QuestSequence obj154 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - Span span71 = CollectionsMarshal.AsSpan(list222); - span71[0] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) + index2 = 2; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + Span span222 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span222[num2] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - span71[1] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); + num2++; + span222[num2] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); obj154.Steps = list222; reference162 = obj154; - ref QuestSequence reference163 = ref span70[2]; + num++; + ref QuestSequence reference163 = ref span220[num]; QuestSequence obj155 = new QuestSequence { Sequence = 2 @@ -250028,7 +303013,9 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span223[index2] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -250037,15 +303024,18 @@ public static class AssemblyQuestLoader }; obj155.Steps = list223; reference163 = obj155; - ref QuestSequence reference164 = ref span70[3]; + num++; + ref QuestSequence reference164 = ref span220[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span224[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f, NextQuestId = new QuestId(3789) @@ -250059,13 +303049,16 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - CollectionsMarshal.AsSpan(list225)[0] = "liza"; + Span span225 = CollectionsMarshal.AsSpan(list225); + index = 0; + span225[index] = "liza"; questRoot29.Author = list225; - num = 7; - List list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - Span span72 = CollectionsMarshal.AsSpan(list226); - ref QuestSequence reference165 = ref span72[0]; + index = 7; + List list226 = new List(index); + CollectionsMarshal.SetCount(list226, index); + Span span226 = CollectionsMarshal.AsSpan(list226); + num = 0; + ref QuestSequence reference165 = ref span226[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 @@ -250073,27 +303066,33 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032605u, new Vector3(-8.743469f, -2.0474615f, -10.025269f), 878) + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032605u, new Vector3(-8.743469f, -2.0474615f, -10.025269f), 878) { StopDistance = 6f }; obj157.Steps = list227; reference165 = obj157; - ref QuestSequence reference166 = ref span72[1]; + num++; + ref QuestSequence reference166 = ref span226[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1032602u, new Vector3(-6.7597656f, -2.1008918f, -8.560364f), 878) + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.Interact, 1032602u, new Vector3(-6.7597656f, -2.1008918f, -8.560364f), 878) { StopDistance = 6f }; obj158.Steps = list228; reference166 = obj158; - ref QuestSequence reference167 = ref span72[2]; + num++; + ref QuestSequence reference167 = ref span226[num]; QuestSequence obj159 = new QuestSequence { Sequence = 2 @@ -250101,25 +303100,31 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Emote, 1032602u, new Vector3(-6.7597656f, -2.1008918f, -8.560364f), 878) + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span229[index2] = new QuestStep(EInteractionType.Emote, 1032602u, new Vector3(-6.7597656f, -2.1008918f, -8.560364f), 878) { StopDistance = 6f, Emote = EEmote.Rally }; obj159.Steps = list229; reference167 = obj159; - ref QuestSequence reference168 = ref span72[3]; + num++; + ref QuestSequence reference168 = ref span226[num]; QuestSequence obj160 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 2010959u, new Vector3(-7.461731f, -2.2736206f, -5.8442383f), 878); + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span230[num2] = new QuestStep(EInteractionType.Interact, 2010959u, new Vector3(-7.461731f, -2.2736206f, -5.8442383f), 878); obj160.Steps = list230; reference168 = obj160; - ref QuestSequence reference169 = ref span72[4]; + num++; + ref QuestSequence reference169 = ref span226[num]; QuestSequence obj161 = new QuestSequence { Sequence = 4 @@ -250127,23 +303132,28 @@ public static class AssemblyQuestLoader num2 = 2; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span73 = CollectionsMarshal.AsSpan(list231); - span73[0] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) + Span span231 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span231[index2] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - span73[1] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); + index2++; + span231[index2] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); obj161.Steps = list231; reference169 = obj161; - ref QuestSequence reference170 = ref span72[5]; + num++; + ref QuestSequence reference170 = ref span226[num]; QuestSequence obj162 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span232[num2] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -250152,7 +303162,8 @@ public static class AssemblyQuestLoader }; obj162.Steps = list232; reference170 = obj162; - ref QuestSequence reference171 = ref span72[6]; + num++; + ref QuestSequence reference171 = ref span226[num]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue @@ -250160,7 +303171,9 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span233[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f, NextQuestId = new QuestId(3790) @@ -250174,27 +303187,33 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "liza"; + Span span234 = CollectionsMarshal.AsSpan(list234); + index = 0; + span234[index] = "liza"; questRoot30.Author = list234; - num = 5; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span74 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference172 = ref span74[0]; + index = 5; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + Span span235 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference172 = ref span235[num]; QuestSequence obj164 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032604u, new Vector3(-7.034485f, -2.0372493f, -11.215393f), 878) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032604u, new Vector3(-7.034485f, -2.0372493f, -11.215393f), 878) { StopDistance = 7f }; obj164.Steps = list236; reference172 = obj164; - ref QuestSequence reference173 = ref span74[1]; + num++; + ref QuestSequence reference173 = ref span235[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 @@ -250202,26 +303221,32 @@ public static class AssemblyQuestLoader num2 = 2; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span75 = CollectionsMarshal.AsSpan(list237); - span75[0] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span237[index2] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - span75[1] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); + index2++; + span237[index2] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); obj165.Steps = list237; reference173 = obj165; - ref QuestSequence reference174 = ref span74[2]; + num++; + ref QuestSequence reference174 = ref span235[num]; QuestSequence obj166 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1032610u, new Vector3(101.823364f, -2.7503654E-14f, 94.13281f), 857); + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.Interact, 1032610u, new Vector3(101.823364f, -2.7503654E-14f, 94.13281f), 857); obj166.Steps = list238; reference174 = obj166; - ref QuestSequence reference175 = ref span74[3]; + num++; + ref QuestSequence reference175 = ref span235[num]; QuestSequence obj167 = new QuestSequence { Sequence = 3 @@ -250229,7 +303254,9 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -250238,15 +303265,18 @@ public static class AssemblyQuestLoader }; obj167.Steps = list239; reference175 = obj167; - ref QuestSequence reference176 = ref span74[4]; + num++; + ref QuestSequence reference176 = ref span235[num]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032610u, new Vector3(101.823364f, -2.7503654E-14f, 94.13281f), 857) + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032610u, new Vector3(101.823364f, -2.7503654E-14f, 94.13281f), 857) { NextQuestId = new QuestId(3791) }; @@ -250259,13 +303289,16 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "liza"; + Span span241 = CollectionsMarshal.AsSpan(list241); + index = 0; + span241[index] = "liza"; questRoot31.Author = list241; - num = 3; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span76 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference177 = ref span76[0]; + index = 3; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + Span span242 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference177 = ref span242[num]; QuestSequence obj169 = new QuestSequence { Sequence = 0 @@ -250273,21 +303306,26 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032611u, new Vector3(103.65454f, -2.7643511E-14f, 94.56018f), 857) + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span243[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032611u, new Vector3(103.65454f, -2.7643511E-14f, 94.56018f), 857) { StopDistance = 5f }; obj169.Steps = list243; reference177 = obj169; - ref QuestSequence reference178 = ref span76[1]; + num++; + ref QuestSequence reference178 = ref span242[num]; QuestSequence obj170 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -250296,7 +303334,8 @@ public static class AssemblyQuestLoader }; obj170.Steps = list244; reference178 = obj170; - ref QuestSequence reference179 = ref span76[2]; + num++; + ref QuestSequence reference179 = ref span242[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -250304,7 +303343,9 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 5f, NextQuestId = new QuestId(3792) @@ -250318,27 +303359,33 @@ public static class AssemblyQuestLoader num = 1; List list246 = new List(num); CollectionsMarshal.SetCount(list246, num); - CollectionsMarshal.AsSpan(list246)[0] = "liza"; + Span span246 = CollectionsMarshal.AsSpan(list246); + index = 0; + span246[index] = "liza"; questRoot32.Author = list246; - num = 3; - List list247 = new List(num); - CollectionsMarshal.SetCount(list247, num); - Span span77 = CollectionsMarshal.AsSpan(list247); - ref QuestSequence reference180 = ref span77[0]; + index = 3; + List list247 = new List(index); + CollectionsMarshal.SetCount(list247, index); + Span span247 = CollectionsMarshal.AsSpan(list247); + num = 0; + ref QuestSequence reference180 = ref span247[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032602u, new Vector3(-6.7597656f, -2.1008885f, -8.560364f), 878) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032602u, new Vector3(-6.7597656f, -2.1008885f, -8.560364f), 878) { StopDistance = 5f }; obj172.Steps = list248; reference180 = obj172; - ref QuestSequence reference181 = ref span77[1]; + num++; + ref QuestSequence reference181 = ref span247[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -250346,24 +303393,29 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815); + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815); obj173.Steps = list249; reference181 = obj173; - ref QuestSequence reference182 = ref span77[2]; + num++; + ref QuestSequence reference182 = ref span247[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - Span span78 = CollectionsMarshal.AsSpan(list250); - span78[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(268.15204f, 7.1558266f, -237.94643f), 815) + index2 = 2; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span250 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span250[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(268.15204f, 7.1558266f, -237.94643f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - span78[1] = new QuestStep(EInteractionType.CompleteQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) + num2++; + span250[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) { StopDistance = 4f, NextQuestId = new QuestId(3793) @@ -250377,13 +303429,16 @@ public static class AssemblyQuestLoader num = 1; List list251 = new List(num); CollectionsMarshal.SetCount(list251, num); - CollectionsMarshal.AsSpan(list251)[0] = "liza"; + Span span251 = CollectionsMarshal.AsSpan(list251); + index = 0; + span251[index] = "liza"; questRoot33.Author = list251; - num = 3; - List list252 = new List(num); - CollectionsMarshal.SetCount(list252, num); - Span span79 = CollectionsMarshal.AsSpan(list252); - ref QuestSequence reference183 = ref span79[0]; + index = 3; + List list252 = new List(index); + CollectionsMarshal.SetCount(list252, index); + Span span252 = CollectionsMarshal.AsSpan(list252); + num = 0; + ref QuestSequence reference183 = ref span252[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -250391,21 +303446,26 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) { StopDistance = 4f }; obj175.Steps = list253; reference183 = obj175; - ref QuestSequence reference184 = ref span79[1]; + num++; + ref QuestSequence reference184 = ref span252[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 2010961u, new Vector3(-6.9733887f, 3.982544f, 221.36255f), 819) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.Interact, 2010961u, new Vector3(-6.9733887f, 3.982544f, 221.36255f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -250416,7 +303476,8 @@ public static class AssemblyQuestLoader }; obj176.Steps = list254; reference184 = obj176; - ref QuestSequence reference185 = ref span79[2]; + num++; + ref QuestSequence reference185 = ref span252[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -250424,13 +303485,15 @@ public static class AssemblyQuestLoader num2 = 2; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span80 = CollectionsMarshal.AsSpan(list255); - span80[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(268.15204f, 7.1558266f, -237.94643f), 815) + Span span255 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span255[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(268.15204f, 7.1558266f, -237.94643f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - span80[1] = new QuestStep(EInteractionType.CompleteQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) + index2++; + span255[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) { StopDistance = 4f, NextQuestId = new QuestId(3975) @@ -250444,24 +303507,30 @@ public static class AssemblyQuestLoader num = 1; List list256 = new List(num); CollectionsMarshal.SetCount(list256, num); - CollectionsMarshal.AsSpan(list256)[0] = "liza"; + Span span256 = CollectionsMarshal.AsSpan(list256); + index = 0; + span256[index] = "liza"; questRoot34.Author = list256; - num = 6; - List list257 = new List(num); - CollectionsMarshal.SetCount(list257, num); - Span span81 = CollectionsMarshal.AsSpan(list257); - ref QuestSequence reference186 = ref span81[0]; + index = 6; + List list257 = new List(index); + CollectionsMarshal.SetCount(list257, index); + Span span257 = CollectionsMarshal.AsSpan(list257); + num = 0; + ref QuestSequence reference186 = ref span257[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032720u, new Vector3(-22.90387f, -25.207546f, 310.6278f), 817); + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span258[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032720u, new Vector3(-22.90387f, -25.207546f, 310.6278f), 817); obj178.Steps = list258; reference186 = obj178; - ref QuestSequence reference187 = ref span81[1]; + num++; + ref QuestSequence reference187 = ref span257[num]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -250469,28 +303538,34 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1032721u, new Vector3(463.79797f, 6.95506f, -199.02344f), 817) + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span259[index2] = new QuestStep(EInteractionType.Interact, 1032721u, new Vector3(463.79797f, 6.95506f, -199.02344f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj179.Steps = list259; reference187 = obj179; - ref QuestSequence reference188 = ref span81[2]; + num++; + ref QuestSequence reference188 = ref span257[num]; QuestSequence obj180 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 2010996u, new Vector3(607.84314f, -41.031555f, -281.8189f), 817) + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span260[num2] = new QuestStep(EInteractionType.Interact, 2010996u, new Vector3(607.84314f, -41.031555f, -281.8189f), 817) { Fly = true }; obj180.Steps = list260; reference188 = obj180; - ref QuestSequence reference189 = ref span81[3]; + num++; + ref QuestSequence reference189 = ref span257[num]; QuestSequence obj181 = new QuestSequence { Sequence = 3 @@ -250498,26 +303573,33 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1032724u, new Vector3(796.7803f, -45.83978f, -194.01855f), 817) + Span span261 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span261[index2] = new QuestStep(EInteractionType.Interact, 1032724u, new Vector3(796.7803f, -45.83978f, -194.01855f), 817) { Fly = true }; obj181.Steps = list261; reference189 = obj181; - ref QuestSequence reference190 = ref span81[4]; + num++; + ref QuestSequence reference190 = ref span257[num]; QuestSequence obj182 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - ref QuestStep reference191 = ref CollectionsMarshal.AsSpan(list262)[0]; + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + ref QuestStep reference191 = ref span262[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1032725u, new Vector3(795.7732f, -45.836327f, -192.40106f), 817); num3 = 1; List list263 = new List(num3); CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = new DialogueChoice + Span span263 = CollectionsMarshal.AsSpan(list263); + index3 = 0; + span263[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANQIQ001_03794_Q3_000_000"), @@ -250527,7 +303609,8 @@ public static class AssemblyQuestLoader reference191 = questStep9; obj182.Steps = list262; reference190 = obj182; - ref QuestSequence reference192 = ref span81[5]; + num++; + ref QuestSequence reference192 = ref span257[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue @@ -250535,20 +303618,24 @@ public static class AssemblyQuestLoader num2 = 2; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span82 = CollectionsMarshal.AsSpan(list264); - ref QuestStep reference193 = ref span82[0]; + Span span264 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + ref QuestStep reference193 = ref span264[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Gather, null, null, 817); - num3 = 1; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - CollectionsMarshal.AsSpan(list265)[0] = new GatheredItem + index3 = 1; + List list265 = new List(index3); + CollectionsMarshal.SetCount(list265, index3); + Span span265 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span265[num3] = new GatheredItem { ItemId = 29512u, ItemCount = 1 }; questStep10.ItemsToGather = list265; reference193 = questStep10; - span82[1] = new QuestStep(EInteractionType.CompleteQuest, 1032724u, new Vector3(796.7803f, -45.83978f, -194.01855f), 817) + index2++; + span264[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032724u, new Vector3(796.7803f, -45.83978f, -194.01855f), 817) { Fly = true }; @@ -250561,24 +303648,30 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "plogon_enjoyer"; + Span span266 = CollectionsMarshal.AsSpan(list266); + index = 0; + span266[index] = "plogon_enjoyer"; questRoot35.Author = list266; - num = 4; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span83 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference194 = ref span83[0]; + index = 4; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + Span span267 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference194 = ref span267[num]; QuestSequence obj184 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + Span span268 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span268[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj184.Steps = list268; reference194 = obj184; - ref QuestSequence reference195 = ref span83[1]; + num++; + ref QuestSequence reference195 = ref span267[num]; QuestSequence obj185 = new QuestSequence { Sequence = 1 @@ -250586,64 +303679,79 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1032731u, new Vector3(-28.732727f, -24.68478f, 318.28796f), 817) + Span span269 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span269[index2] = new QuestStep(EInteractionType.Interact, 1032731u, new Vector3(-28.732727f, -24.68478f, 318.28796f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj185.Steps = list269; reference195 = obj185; - ref QuestSequence reference196 = ref span83[2]; + num++; + ref QuestSequence reference196 = ref span267[num]; QuestSequence obj186 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - Span span84 = CollectionsMarshal.AsSpan(list270); - ref QuestStep reference197 = ref span84[0]; + index2 = 3; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + Span span270 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + ref QuestStep reference197 = ref span270[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list271 = new List(num3); CollectionsMarshal.SetCount(list271, num3); - CollectionsMarshal.AsSpan(list271)[0] = EExtendedClassJob.Miner; + Span span271 = CollectionsMarshal.AsSpan(list271); + index3 = 0; + span271[index3] = EExtendedClassJob.Miner; questStep11.RequiredQuestAcceptedJob = list271; - num3 = 1; - List list272 = new List(num3); - CollectionsMarshal.SetCount(list272, num3); - CollectionsMarshal.AsSpan(list272)[0] = new GatheredItem + index3 = 1; + List list272 = new List(index3); + CollectionsMarshal.SetCount(list272, index3); + Span span272 = CollectionsMarshal.AsSpan(list272); + num3 = 0; + span272[num3] = new GatheredItem { ItemId = 29513u, ItemCount = 1 }; questStep11.ItemsToGather = list272; reference197 = questStep11; - ref QuestStep reference198 = ref span84[1]; + num2++; + ref QuestStep reference198 = ref span270[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list273 = new List(num3); CollectionsMarshal.SetCount(list273, num3); - CollectionsMarshal.AsSpan(list273)[0] = EExtendedClassJob.Botanist; + Span span273 = CollectionsMarshal.AsSpan(list273); + index3 = 0; + span273[index3] = EExtendedClassJob.Botanist; questStep12.RequiredQuestAcceptedJob = list273; - num3 = 1; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - CollectionsMarshal.AsSpan(list274)[0] = new GatheredItem + index3 = 1; + List list274 = new List(index3); + CollectionsMarshal.SetCount(list274, index3); + Span span274 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + span274[num3] = new GatheredItem { ItemId = 29539u, ItemCount = 1 }; questStep12.ItemsToGather = list274; reference198 = questStep12; - span84[2] = new QuestStep(EInteractionType.Interact, 1032734u, new Vector3(802.6703f, -45.915627f, -214.70972f), 817) + num2++; + span270[num2] = new QuestStep(EInteractionType.Interact, 1032734u, new Vector3(802.6703f, -45.915627f, -214.70972f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj186.Steps = list270; reference196 = obj186; - ref QuestSequence reference199 = ref span83[3]; + num++; + ref QuestSequence reference199 = ref span267[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue @@ -250651,7 +303759,9 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + Span span275 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span275[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj187.Steps = list275; reference199 = obj187; questRoot35.QuestSequence = list267; @@ -250661,24 +303771,30 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "plogon_enjoyer"; + Span span276 = CollectionsMarshal.AsSpan(list276); + index = 0; + span276[index] = "plogon_enjoyer"; questRoot36.Author = list276; - num = 5; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span85 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference200 = ref span85[0]; + index = 5; + List list277 = new List(index); + CollectionsMarshal.SetCount(list277, index); + Span span277 = CollectionsMarshal.AsSpan(list277); + num = 0; + ref QuestSequence reference200 = ref span277[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032735u, new Vector3(803.7993f, -45.924515f, -217.94464f), 817); + index2 = 1; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + Span span278 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span278[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032735u, new Vector3(803.7993f, -45.924515f, -217.94464f), 817); obj188.Steps = list278; reference200 = obj188; - ref QuestSequence reference201 = ref span85[1]; + num++; + ref QuestSequence reference201 = ref span277[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 @@ -250686,25 +303802,31 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + Span span279 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span279[index2] = new QuestStep(EInteractionType.Interact, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj189.Steps = list279; reference201 = obj189; - ref QuestSequence reference202 = ref span85[2]; + num++; + ref QuestSequence reference202 = ref span277[num]; QuestSequence obj190 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span280 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span280[num2] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj190.Steps = list280; reference202 = obj190; - ref QuestSequence reference203 = ref span85[3]; + num++; + ref QuestSequence reference203 = ref span277[num]; QuestSequence obj191 = new QuestSequence { Sequence = 3 @@ -250712,56 +303834,70 @@ public static class AssemblyQuestLoader num2 = 3; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span86 = CollectionsMarshal.AsSpan(list281); - ref QuestStep reference204 = ref span86[0]; + Span span281 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + ref QuestStep reference204 = ref span281[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list282 = new List(num3); CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = EExtendedClassJob.Miner; + Span span282 = CollectionsMarshal.AsSpan(list282); + index3 = 0; + span282[index3] = EExtendedClassJob.Miner; questStep13.RequiredQuestAcceptedJob = list282; - num3 = 1; - List list283 = new List(num3); - CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = new GatheredItem + index3 = 1; + List list283 = new List(index3); + CollectionsMarshal.SetCount(list283, index3); + Span span283 = CollectionsMarshal.AsSpan(list283); + num3 = 0; + span283[num3] = new GatheredItem { ItemId = 29514u, ItemCount = 1 }; questStep13.ItemsToGather = list283; reference204 = questStep13; - ref QuestStep reference205 = ref span86[1]; + index2++; + ref QuestStep reference205 = ref span281[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list284 = new List(num3); CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = EExtendedClassJob.Botanist; + Span span284 = CollectionsMarshal.AsSpan(list284); + index3 = 0; + span284[index3] = EExtendedClassJob.Botanist; questStep14.RequiredQuestAcceptedJob = list284; - num3 = 1; - List list285 = new List(num3); - CollectionsMarshal.SetCount(list285, num3); - CollectionsMarshal.AsSpan(list285)[0] = new GatheredItem + index3 = 1; + List list285 = new List(index3); + CollectionsMarshal.SetCount(list285, index3); + Span span285 = CollectionsMarshal.AsSpan(list285); + num3 = 0; + span285[num3] = new GatheredItem { ItemId = 29540u, ItemCount = 1 }; questStep14.ItemsToGather = list285; reference205 = questStep14; - span86[2] = new QuestStep(EInteractionType.Interact, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817) + index2++; + span281[index2] = new QuestStep(EInteractionType.Interact, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817) { Fly = true }; obj191.Steps = list281; reference203 = obj191; - ref QuestSequence reference206 = ref span85[4]; + num++; + ref QuestSequence reference206 = ref span277[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + Span span286 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span286[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj192.Steps = list286; reference206 = obj192; questRoot36.QuestSequence = list277; @@ -250771,13 +303907,16 @@ public static class AssemblyQuestLoader num = 1; List list287 = new List(num); CollectionsMarshal.SetCount(list287, num); - CollectionsMarshal.AsSpan(list287)[0] = "plogon_enjoyer"; + Span span287 = CollectionsMarshal.AsSpan(list287); + index = 0; + span287[index] = "plogon_enjoyer"; questRoot37.Author = list287; - num = 4; - List list288 = new List(num); - CollectionsMarshal.SetCount(list288, num); - Span span87 = CollectionsMarshal.AsSpan(list288); - ref QuestSequence reference207 = ref span87[0]; + index = 4; + List list288 = new List(index); + CollectionsMarshal.SetCount(list288, index); + Span span288 = CollectionsMarshal.AsSpan(list288); + num = 0; + ref QuestSequence reference207 = ref span288[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -250785,21 +303924,27 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032735u, new Vector3(803.7993f, -45.924515f, -217.94464f), 817); + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span289[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032735u, new Vector3(803.7993f, -45.924515f, -217.94464f), 817); obj193.Steps = list289; reference207 = obj193; - ref QuestSequence reference208 = ref span87[1]; + num++; + ref QuestSequence reference208 = ref span288[num]; QuestSequence obj194 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + Span span290 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span290[num2] = new QuestStep(EInteractionType.Interact, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj194.Steps = list290; reference208 = obj194; - ref QuestSequence reference209 = ref span87[2]; + num++; + ref QuestSequence reference209 = ref span288[num]; QuestSequence obj195 = new QuestSequence { Sequence = 2 @@ -250807,57 +303952,71 @@ public static class AssemblyQuestLoader num2 = 3; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span88 = CollectionsMarshal.AsSpan(list291); - ref QuestStep reference210 = ref span88[0]; + Span span291 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + ref QuestStep reference210 = ref span291[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list292 = new List(num3); CollectionsMarshal.SetCount(list292, num3); - CollectionsMarshal.AsSpan(list292)[0] = EExtendedClassJob.Miner; + Span span292 = CollectionsMarshal.AsSpan(list292); + index3 = 0; + span292[index3] = EExtendedClassJob.Miner; questStep15.RequiredQuestAcceptedJob = list292; - num3 = 1; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - CollectionsMarshal.AsSpan(list293)[0] = new GatheredItem + index3 = 1; + List list293 = new List(index3); + CollectionsMarshal.SetCount(list293, index3); + Span span293 = CollectionsMarshal.AsSpan(list293); + num3 = 0; + span293[num3] = new GatheredItem { ItemId = 29515u, ItemCount = 3 }; questStep15.ItemsToGather = list293; reference210 = questStep15; - ref QuestStep reference211 = ref span88[1]; + index2++; + ref QuestStep reference211 = ref span291[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list294 = new List(num3); CollectionsMarshal.SetCount(list294, num3); - CollectionsMarshal.AsSpan(list294)[0] = EExtendedClassJob.Botanist; + Span span294 = CollectionsMarshal.AsSpan(list294); + index3 = 0; + span294[index3] = EExtendedClassJob.Botanist; questStep16.RequiredQuestAcceptedJob = list294; - num3 = 1; - List list295 = new List(num3); - CollectionsMarshal.SetCount(list295, num3); - CollectionsMarshal.AsSpan(list295)[0] = new GatheredItem + index3 = 1; + List list295 = new List(index3); + CollectionsMarshal.SetCount(list295, index3); + Span span295 = CollectionsMarshal.AsSpan(list295); + num3 = 0; + span295[num3] = new GatheredItem { ItemId = 29541u, ItemCount = 3 }; questStep16.ItemsToGather = list295; reference211 = questStep16; - span88[2] = new QuestStep(EInteractionType.Interact, 1032862u, new Vector3(777.06555f, -45.76794f, -209.21649f), 817) + index2++; + span291[index2] = new QuestStep(EInteractionType.Interact, 1032862u, new Vector3(777.06555f, -45.76794f, -209.21649f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj195.Steps = list291; reference209 = obj195; - ref QuestSequence reference212 = ref span87[3]; + num++; + ref QuestSequence reference212 = ref span288[num]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span296 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span296[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj196.Steps = list296; reference212 = obj196; questRoot37.QuestSequence = list288; @@ -250867,13 +304026,16 @@ public static class AssemblyQuestLoader num = 1; List list297 = new List(num); CollectionsMarshal.SetCount(list297, num); - CollectionsMarshal.AsSpan(list297)[0] = "plogon_enjoyer"; + Span span297 = CollectionsMarshal.AsSpan(list297); + index = 0; + span297[index] = "plogon_enjoyer"; questRoot38.Author = list297; - num = 7; - List list298 = new List(num); - CollectionsMarshal.SetCount(list298, num); - Span span89 = CollectionsMarshal.AsSpan(list298); - ref QuestSequence reference213 = ref span89[0]; + index = 7; + List list298 = new List(index); + CollectionsMarshal.SetCount(list298, index); + Span span298 = CollectionsMarshal.AsSpan(list298); + num = 0; + ref QuestSequence reference213 = ref span298[num]; QuestSequence obj197 = new QuestSequence { Sequence = 0 @@ -250881,21 +304043,27 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032735u, new Vector3(803.7993f, -45.924515f, -217.94464f), 817); + Span span299 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span299[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032735u, new Vector3(803.7993f, -45.924515f, -217.94464f), 817); obj197.Steps = list299; reference213 = obj197; - ref QuestSequence reference214 = ref span89[1]; + num++; + ref QuestSequence reference214 = ref span298[num]; QuestSequence obj198 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + Span span300 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span300[num2] = new QuestStep(EInteractionType.Interact, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj198.Steps = list300; reference214 = obj198; - ref QuestSequence reference215 = ref span89[2]; + num++; + ref QuestSequence reference215 = ref span298[num]; QuestSequence obj199 = new QuestSequence { Sequence = 2 @@ -250903,27 +304071,33 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + Span span301 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + span301[index2] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true }; obj199.Steps = list301; reference215 = obj199; - ref QuestSequence reference216 = ref span89[3]; + num++; + ref QuestSequence reference216 = ref span298[num]; QuestSequence obj200 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1032967u, new Vector3(774.8989f, -45.74954f, -205.52374f), 817) + index2 = 1; + List list302 = new List(index2); + CollectionsMarshal.SetCount(list302, index2); + Span span302 = CollectionsMarshal.AsSpan(list302); + num2 = 0; + span302[num2] = new QuestStep(EInteractionType.Interact, 1032967u, new Vector3(774.8989f, -45.74954f, -205.52374f), 817) { Fly = true }; obj200.Steps = list302; reference216 = obj200; - ref QuestSequence reference217 = ref span89[4]; + num++; + ref QuestSequence reference217 = ref span298[num]; QuestSequence obj201 = new QuestSequence { Sequence = 4 @@ -250931,60 +304105,75 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.Interact, 1032967u, new Vector3(774.8989f, -45.74954f, -205.52374f), 817); + Span span303 = CollectionsMarshal.AsSpan(list303); + index2 = 0; + span303[index2] = new QuestStep(EInteractionType.Interact, 1032967u, new Vector3(774.8989f, -45.74954f, -205.52374f), 817); obj201.Steps = list303; reference217 = obj201; - ref QuestSequence reference218 = ref span89[5]; + num++; + ref QuestSequence reference218 = ref span298[num]; QuestSequence obj202 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - Span span90 = CollectionsMarshal.AsSpan(list304); - ref QuestStep reference219 = ref span90[0]; + index2 = 3; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + Span span304 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + ref QuestStep reference219 = ref span304[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list305 = new List(num3); CollectionsMarshal.SetCount(list305, num3); - CollectionsMarshal.AsSpan(list305)[0] = EExtendedClassJob.Miner; + Span span305 = CollectionsMarshal.AsSpan(list305); + index3 = 0; + span305[index3] = EExtendedClassJob.Miner; questStep17.RequiredQuestAcceptedJob = list305; - num3 = 1; - List list306 = new List(num3); - CollectionsMarshal.SetCount(list306, num3); - CollectionsMarshal.AsSpan(list306)[0] = new GatheredItem + index3 = 1; + List list306 = new List(index3); + CollectionsMarshal.SetCount(list306, index3); + Span span306 = CollectionsMarshal.AsSpan(list306); + num3 = 0; + span306[num3] = new GatheredItem { ItemId = 29516u, ItemCount = 3 }; questStep17.ItemsToGather = list306; reference219 = questStep17; - ref QuestStep reference220 = ref span90[1]; + num2++; + ref QuestStep reference220 = ref span304[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list307 = new List(num3); CollectionsMarshal.SetCount(list307, num3); - CollectionsMarshal.AsSpan(list307)[0] = EExtendedClassJob.Botanist; + Span span307 = CollectionsMarshal.AsSpan(list307); + index3 = 0; + span307[index3] = EExtendedClassJob.Botanist; questStep18.RequiredQuestAcceptedJob = list307; - num3 = 1; - List list308 = new List(num3); - CollectionsMarshal.SetCount(list308, num3); - CollectionsMarshal.AsSpan(list308)[0] = new GatheredItem + index3 = 1; + List list308 = new List(index3); + CollectionsMarshal.SetCount(list308, index3); + Span span308 = CollectionsMarshal.AsSpan(list308); + num3 = 0; + span308[num3] = new GatheredItem { ItemId = 29542u, ItemCount = 3 }; questStep18.ItemsToGather = list308; reference220 = questStep18; - span90[2] = new QuestStep(EInteractionType.Interact, 1032967u, new Vector3(774.8989f, -45.74954f, -205.52374f), 817) + num2++; + span304[num2] = new QuestStep(EInteractionType.Interact, 1032967u, new Vector3(774.8989f, -45.74954f, -205.52374f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj202.Steps = list304; reference218 = obj202; - ref QuestSequence reference221 = ref span89[6]; + num++; + ref QuestSequence reference221 = ref span298[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -250992,7 +304181,9 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + Span span309 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span309[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj203.Steps = list309; reference221 = obj203; questRoot38.QuestSequence = list298; @@ -251002,24 +304193,30 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - CollectionsMarshal.AsSpan(list310)[0] = "plogon_enjoyer"; + Span span310 = CollectionsMarshal.AsSpan(list310); + index = 0; + span310[index] = "plogon_enjoyer"; questRoot39.Author = list310; - num = 6; - List list311 = new List(num); - CollectionsMarshal.SetCount(list311, num); - Span span91 = CollectionsMarshal.AsSpan(list311); - ref QuestSequence reference222 = ref span91[0]; + index = 6; + List list311 = new List(index); + CollectionsMarshal.SetCount(list311, index); + Span span311 = CollectionsMarshal.AsSpan(list311); + num = 0; + ref QuestSequence reference222 = ref span311[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + Span span312 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span312[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj204.Steps = list312; reference222 = obj204; - ref QuestSequence reference223 = ref span91[1]; + num++; + ref QuestSequence reference223 = ref span311[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -251027,29 +304224,35 @@ public static class AssemblyQuestLoader num2 = 1; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + Span span313 = CollectionsMarshal.AsSpan(list313); + index2 = 0; + span313[index2] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj205.Steps = list313; reference223 = obj205; - ref QuestSequence reference224 = ref span91[2]; + num++; + ref QuestSequence reference224 = ref span311[num]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list314 = new List(num2); - CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 1032732u, new Vector3(-26.93219f, -24.638563f, 319.35608f), 817) + index2 = 1; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + Span span314 = CollectionsMarshal.AsSpan(list314); + num2 = 0; + span314[num2] = new QuestStep(EInteractionType.Interact, 1032732u, new Vector3(-26.93219f, -24.638563f, 319.35608f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj206.Steps = list314; reference224 = obj206; - ref QuestSequence reference225 = ref span91[3]; + num++; + ref QuestSequence reference225 = ref span311[num]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -251057,24 +304260,30 @@ public static class AssemblyQuestLoader num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1032750u, new Vector3(-523.827f, 0.143766f, 227.55774f), 817) + Span span315 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span315[index2] = new QuestStep(EInteractionType.Interact, 1032750u, new Vector3(-523.827f, 0.143766f, 227.55774f), 817) { Fly = true }; obj207.Steps = list315; reference225 = obj207; - ref QuestSequence reference226 = ref span91[4]; + num++; + ref QuestSequence reference226 = ref span311[num]; QuestSequence obj208 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1032750u, new Vector3(-523.827f, 0.143766f, 227.55774f), 817); + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + Span span316 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + span316[num2] = new QuestStep(EInteractionType.Interact, 1032750u, new Vector3(-523.827f, 0.143766f, 227.55774f), 817); obj208.Steps = list316; reference226 = obj208; - ref QuestSequence reference227 = ref span91[5]; + num++; + ref QuestSequence reference227 = ref span311[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -251082,7 +304291,9 @@ public static class AssemblyQuestLoader num2 = 1; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817) + Span span317 = CollectionsMarshal.AsSpan(list317); + index2 = 0; + span317[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow @@ -251100,13 +304311,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "plogon_enjoyer"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "plogon_enjoyer"; questRoot.Author = list; - num = 2; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 2; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -251114,18 +304328,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj2.Steps = list4; reference2 = obj2; questRoot.QuestSequence = list2; @@ -251135,13 +304354,16 @@ public static class AssemblyQuestLoader num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - CollectionsMarshal.AsSpan(list5)[0] = "plogon_enjoyer"; + Span span5 = CollectionsMarshal.AsSpan(list5); + index = 0; + span5[index] = "plogon_enjoyer"; questRoot2.Author = list5; - num = 2; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - Span span2 = CollectionsMarshal.AsSpan(list6); - ref QuestSequence reference3 = ref span2[0]; + index = 2; + List list6 = new List(index); + CollectionsMarshal.SetCount(list6, index); + Span span6 = CollectionsMarshal.AsSpan(list6); + num = 0; + ref QuestSequence reference3 = ref span6[num]; QuestSequence obj3 = new QuestSequence { Sequence = 0 @@ -251149,18 +304371,23 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj3.Steps = list7; reference3 = obj3; - ref QuestSequence reference4 = ref span2[1]; + num++; + ref QuestSequence reference4 = ref span6[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj4.Steps = list8; reference4 = obj4; questRoot2.QuestSequence = list6; @@ -251170,13 +304397,16 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "plogon_enjoyer"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "plogon_enjoyer"; questRoot3.Author = list9; - num = 2; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference5 = ref span3[0]; + index = 2; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference5 = ref span10[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -251184,18 +304414,23 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj5.Steps = list11; reference5 = obj5; - ref QuestSequence reference6 = ref span3[1]; + num++; + ref QuestSequence reference6 = ref span10[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj6.Steps = list12; reference6 = obj6; questRoot3.QuestSequence = list10; @@ -251205,13 +304440,16 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "plogon_enjoyer"; + Span span13 = CollectionsMarshal.AsSpan(list13); + index = 0; + span13[index] = "plogon_enjoyer"; questRoot4.Author = list13; - num = 2; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span4 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference7 = ref span4[0]; + index = 2; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference7 = ref span14[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -251219,18 +304457,23 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj7.Steps = list15; reference7 = obj7; - ref QuestSequence reference8 = ref span4[1]; + num++; + ref QuestSequence reference8 = ref span14[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj8.Steps = list16; reference8 = obj8; questRoot4.QuestSequence = list14; @@ -251240,13 +304483,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "plogon_enjoyer"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "plogon_enjoyer"; questRoot5.Author = list17; - num = 2; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span5 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference9 = ref span5[0]; + index = 2; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference9 = ref span18[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -251254,18 +304500,23 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj9.Steps = list19; reference9 = obj9; - ref QuestSequence reference10 = ref span5[1]; + num++; + ref QuestSequence reference10 = ref span18[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj10.Steps = list20; reference10 = obj10; questRoot5.QuestSequence = list18; @@ -251275,13 +304526,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "plogon_enjoyer"; + Span span21 = CollectionsMarshal.AsSpan(list21); + index = 0; + span21[index] = "plogon_enjoyer"; questRoot6.Author = list21; - num = 2; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span6 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference11 = ref span6[0]; + index = 2; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + Span span22 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference11 = ref span22[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -251289,18 +304543,23 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj11.Steps = list23; reference11 = obj11; - ref QuestSequence reference12 = ref span6[1]; + num++; + ref QuestSequence reference12 = ref span22[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj12.Steps = list24; reference12 = obj12; questRoot6.QuestSequence = list22; @@ -251310,13 +304569,16 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "liza"; questRoot7.Author = list25; - num = 2; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span7 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference13 = ref span7[0]; + index = 2; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference13 = ref span26[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -251324,58 +304586,73 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj13.Steps = list27; reference13 = obj13; - ref QuestSequence reference14 = ref span7[1]; + num++; + ref QuestSequence reference14 = ref span26[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - Span span8 = CollectionsMarshal.AsSpan(list28); - ref QuestStep reference15 = ref span8[0]; + index2 = 4; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + ref QuestStep reference15 = ref span28[num2]; QuestStep questStep = new QuestStep(EInteractionType.Gather, null, null, 817); int num3 = 1; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = EExtendedClassJob.Miner; + Span span29 = CollectionsMarshal.AsSpan(list29); + int index3 = 0; + span29[index3] = EExtendedClassJob.Miner; questStep.RequiredQuestAcceptedJob = list29; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new GatheredItem + index3 = 1; + List list30 = new List(index3); + CollectionsMarshal.SetCount(list30, index3); + Span span30 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span30[num3] = new GatheredItem { ItemId = 29517u, ItemCount = 3 }; questStep.ItemsToGather = list30; reference15 = questStep; - ref QuestStep reference16 = ref span8[1]; + num2++; + ref QuestStep reference16 = ref span28[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = EExtendedClassJob.Botanist; + Span span31 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span31[index3] = EExtendedClassJob.Botanist; questStep2.RequiredQuestAcceptedJob = list31; - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new GatheredItem + index3 = 1; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + Span span32 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span32[num3] = new GatheredItem { ItemId = 29543u, ItemCount = 3 }; questStep2.ItemsToGather = list32; reference16 = questStep2; - span8[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span28[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span8[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span28[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -251388,13 +304665,16 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; + Span span33 = CollectionsMarshal.AsSpan(list33); + index = 0; + span33[index] = "liza"; questRoot8.Author = list33; - num = 2; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span9 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference17 = ref span9[0]; + index = 2; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + Span span34 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference17 = ref span34[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -251402,57 +304682,72 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj15.Steps = list35; reference17 = obj15; - ref QuestSequence reference18 = ref span9[1]; + num++; + ref QuestSequence reference18 = ref span34[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span10 = CollectionsMarshal.AsSpan(list36); - ref QuestStep reference19 = ref span10[0]; + index2 = 4; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + ref QuestStep reference19 = ref span36[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = EExtendedClassJob.Miner; + Span span37 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span37[index3] = EExtendedClassJob.Miner; questStep3.RequiredQuestAcceptedJob = list37; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new GatheredItem + index3 = 1; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = new GatheredItem { ItemId = 29518u, ItemCount = 3 }; questStep3.ItemsToGather = list38; reference19 = questStep3; - ref QuestStep reference20 = ref span10[1]; + num2++; + ref QuestStep reference20 = ref span36[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = EExtendedClassJob.Botanist; + Span span39 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span39[index3] = EExtendedClassJob.Botanist; questStep4.RequiredQuestAcceptedJob = list39; - num3 = 1; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = new GatheredItem + index3 = 1; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + Span span40 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span40[num3] = new GatheredItem { ItemId = 29544u, ItemCount = 3 }; questStep4.ItemsToGather = list40; reference20 = questStep4; - span10[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span36[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true }; - span10[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span36[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -251465,13 +304760,16 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + Span span41 = CollectionsMarshal.AsSpan(list41); + index = 0; + span41[index] = "liza"; questRoot9.Author = list41; - num = 2; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span11 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference21 = ref span11[0]; + index = 2; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + Span span42 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference21 = ref span42[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 @@ -251479,58 +304777,73 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj17.Steps = list43; reference21 = obj17; - ref QuestSequence reference22 = ref span11[1]; + num++; + ref QuestSequence reference22 = ref span42[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - Span span12 = CollectionsMarshal.AsSpan(list44); - ref QuestStep reference23 = ref span12[0]; + index2 = 4; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + ref QuestStep reference23 = ref span44[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = EExtendedClassJob.Miner; + Span span45 = CollectionsMarshal.AsSpan(list45); + index3 = 0; + span45[index3] = EExtendedClassJob.Miner; questStep5.RequiredQuestAcceptedJob = list45; - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new GatheredItem + index3 = 1; + List list46 = new List(index3); + CollectionsMarshal.SetCount(list46, index3); + Span span46 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span46[num3] = new GatheredItem { ItemId = 29519u, ItemCount = 3 }; questStep5.ItemsToGather = list46; reference23 = questStep5; - ref QuestStep reference24 = ref span12[1]; + num2++; + ref QuestStep reference24 = ref span44[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = EExtendedClassJob.Botanist; + Span span47 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span47[index3] = EExtendedClassJob.Botanist; questStep6.RequiredQuestAcceptedJob = list47; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new GatheredItem + index3 = 1; + List list48 = new List(index3); + CollectionsMarshal.SetCount(list48, index3); + Span span48 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span48[num3] = new GatheredItem { ItemId = 29545u, ItemCount = 3 }; questStep6.ItemsToGather = list48; reference24 = questStep6; - span12[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span44[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span12[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span44[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -251543,13 +304856,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "liza"; questRoot10.Author = list49; - num = 2; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span13 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference25 = ref span13[0]; + index = 2; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference25 = ref span50[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -251557,58 +304873,73 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj19.Steps = list51; reference25 = obj19; - ref QuestSequence reference26 = ref span13[1]; + num++; + ref QuestSequence reference26 = ref span50[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - Span span14 = CollectionsMarshal.AsSpan(list52); - ref QuestStep reference27 = ref span14[0]; + index2 = 4; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + ref QuestStep reference27 = ref span52[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = EExtendedClassJob.Miner; + Span span53 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span53[index3] = EExtendedClassJob.Miner; questStep7.RequiredQuestAcceptedJob = list53; - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new GatheredItem + index3 = 1; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + Span span54 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span54[num3] = new GatheredItem { ItemId = 29520u, ItemCount = 3 }; questStep7.ItemsToGather = list54; reference27 = questStep7; - ref QuestStep reference28 = ref span14[1]; + num2++; + ref QuestStep reference28 = ref span52[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = EExtendedClassJob.Botanist; + Span span55 = CollectionsMarshal.AsSpan(list55); + index3 = 0; + span55[index3] = EExtendedClassJob.Botanist; questStep8.RequiredQuestAcceptedJob = list55; - num3 = 1; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = new GatheredItem + index3 = 1; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + Span span56 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span56[num3] = new GatheredItem { ItemId = 29546u, ItemCount = 3 }; questStep8.ItemsToGather = list56; reference28 = questStep8; - span14[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span14[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span52[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -251621,13 +304952,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "liza"; + Span span57 = CollectionsMarshal.AsSpan(list57); + index = 0; + span57[index] = "liza"; questRoot11.Author = list57; - num = 4; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span15 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference29 = ref span15[0]; + index = 4; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + Span span58 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference29 = ref span58[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -251635,19 +304969,23 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj21.Steps = list59; reference29 = obj21; - ref QuestSequence reference30 = ref span15[1]; + num++; + ref QuestSequence reference30 = ref span58[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - Span span16 = CollectionsMarshal.AsSpan(list60); - ref QuestStep reference31 = ref span16[0]; + index2 = 2; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + ref QuestStep reference31 = ref span60[num2]; QuestStep obj23 = new QuestStep(EInteractionType.UseItem, 2010995u, new Vector3(-73.99103f, -19.36377f, 298.8479f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough, @@ -251656,35 +304994,49 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span17 = CollectionsMarshal.AsSpan(list61); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span61 = CollectionsMarshal.AsSpan(list61); + index3 = 0; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = null; + index3++; + span61[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj23.CompletionQuestVariablesFlags = list61; reference31 = obj23; - ref QuestStep reference32 = ref span16[1]; + num2++; + ref QuestStep reference32 = ref span60[num2]; QuestStep obj24 = new QuestStep(EInteractionType.UseItem, 2010994u, new Vector3(-69.13867f, -19.485779f, 294.14807f), 817) { ItemId = 2002977u }; - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span18 = CollectionsMarshal.AsSpan(list62); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list62 = new List(index3); + CollectionsMarshal.SetCount(list62, index3); + Span span62 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj24.CompletionQuestVariablesFlags = list62; reference32 = obj24; obj22.Steps = list60; reference30 = obj22; - ref QuestSequence reference33 = ref span15[2]; + num++; + ref QuestSequence reference33 = ref span58[num]; QuestSequence obj25 = new QuestSequence { Sequence = 2 @@ -251692,24 +305044,29 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1027741u, new Vector3(-80.338745f, -19.101032f, 299.82446f), 817); + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.Interact, 1027741u, new Vector3(-80.338745f, -19.101032f, 299.82446f), 817); obj25.Steps = list63; reference33 = obj25; - ref QuestSequence reference34 = ref span15[3]; + num++; + ref QuestSequence reference34 = ref span58[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span19 = CollectionsMarshal.AsSpan(list64); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2 = 2; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span19[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span64[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -251722,13 +305079,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + Span span65 = CollectionsMarshal.AsSpan(list65); + index = 0; + span65[index] = "liza"; questRoot12.Author = list65; - num = 2; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span20 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference35 = ref span20[0]; + index = 2; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + Span span66 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference35 = ref span66[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -251736,58 +305096,73 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj27.Steps = list67; reference35 = obj27; - ref QuestSequence reference36 = ref span20[1]; + num++; + ref QuestSequence reference36 = ref span66[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span21 = CollectionsMarshal.AsSpan(list68); - ref QuestStep reference37 = ref span21[0]; + index2 = 4; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + ref QuestStep reference37 = ref span68[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = EExtendedClassJob.Miner; + Span span69 = CollectionsMarshal.AsSpan(list69); + index3 = 0; + span69[index3] = EExtendedClassJob.Miner; questStep9.RequiredQuestAcceptedJob = list69; - num3 = 1; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = new GatheredItem + index3 = 1; + List list70 = new List(index3); + CollectionsMarshal.SetCount(list70, index3); + Span span70 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span70[num3] = new GatheredItem { ItemId = 29521u, ItemCount = 3 }; questStep9.ItemsToGather = list70; reference37 = questStep9; - ref QuestStep reference38 = ref span21[1]; + num2++; + ref QuestStep reference38 = ref span68[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = EExtendedClassJob.Botanist; + Span span71 = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span71[index3] = EExtendedClassJob.Botanist; questStep10.RequiredQuestAcceptedJob = list71; - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = new GatheredItem + index3 = 1; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + Span span72 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span72[num3] = new GatheredItem { ItemId = 29547u, ItemCount = 3 }; questStep10.ItemsToGather = list72; reference38 = questStep10; - span21[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span68[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span21[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span68[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -251800,13 +305175,16 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "liza"; + Span span73 = CollectionsMarshal.AsSpan(list73); + index = 0; + span73[index] = "liza"; questRoot13.Author = list73; - num = 2; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span22 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference39 = ref span22[0]; + index = 2; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + Span span74 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference39 = ref span74[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -251814,58 +305192,73 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj29.Steps = list75; reference39 = obj29; - ref QuestSequence reference40 = ref span22[1]; + num++; + ref QuestSequence reference40 = ref span74[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span23 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference41 = ref span23[0]; + index2 = 4; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + ref QuestStep reference41 = ref span76[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = EExtendedClassJob.Miner; + Span span77 = CollectionsMarshal.AsSpan(list77); + index3 = 0; + span77[index3] = EExtendedClassJob.Miner; questStep11.RequiredQuestAcceptedJob = list77; - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new GatheredItem + index3 = 1; + List list78 = new List(index3); + CollectionsMarshal.SetCount(list78, index3); + Span span78 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span78[num3] = new GatheredItem { ItemId = 29522u, ItemCount = 3 }; questStep11.ItemsToGather = list78; reference41 = questStep11; - ref QuestStep reference42 = ref span23[1]; + num2++; + ref QuestStep reference42 = ref span76[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = EExtendedClassJob.Botanist; + Span span79 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span79[index3] = EExtendedClassJob.Botanist; questStep12.RequiredQuestAcceptedJob = list79; - num3 = 1; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new GatheredItem + index3 = 1; + List list80 = new List(index3); + CollectionsMarshal.SetCount(list80, index3); + Span span80 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span80[num3] = new GatheredItem { ItemId = 29548u, ItemCount = 3 }; questStep12.ItemsToGather = list80; reference42 = questStep12; - span23[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span76[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span23[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span76[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -251878,13 +305271,16 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "plogon_enjoyer"; + Span span81 = CollectionsMarshal.AsSpan(list81); + index = 0; + span81[index] = "plogon_enjoyer"; questRoot14.Author = list81; - num = 3; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span24 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference43 = ref span24[0]; + index = 3; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + Span span82 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference43 = ref span82[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -251892,34 +305288,41 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj31.Steps = list83; reference43 = obj31; - ref QuestSequence reference44 = ref span24[1]; + num++; + ref QuestSequence reference44 = ref span82[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - Span span25 = CollectionsMarshal.AsSpan(list84); - span25[0] = new QuestStep(EInteractionType.Interact, 1027719u, new Vector3(303.5172f, 34.242825f, -146.65448f), 817) + index2 = 3; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.Interact, 1027719u, new Vector3(303.5172f, 34.242825f, -146.65448f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span25[1] = new QuestStep(EInteractionType.Interact, 1027715u, new Vector3(411.21533f, 33.637783f, -128.5268f), 817) + num2++; + span84[num2] = new QuestStep(EInteractionType.Interact, 1027715u, new Vector3(411.21533f, 33.637783f, -128.5268f), 817) { Fly = true }; - span25[2] = new QuestStep(EInteractionType.Interact, 1027713u, new Vector3(446.70776f, 34.051743f, -117.17407f), 817) + num2++; + span84[num2] = new QuestStep(EInteractionType.Interact, 1027713u, new Vector3(446.70776f, 34.051743f, -117.17407f), 817) { Fly = true }; obj32.Steps = list84; reference44 = obj32; - ref QuestSequence reference45 = ref span24[2]; + num++; + ref QuestSequence reference45 = ref span82[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -251927,12 +305330,14 @@ public static class AssemblyQuestLoader num2 = 2; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span26 = CollectionsMarshal.AsSpan(list85); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true }; - span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span85[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -251945,24 +305350,30 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "plogon_enjoyer"; + Span span86 = CollectionsMarshal.AsSpan(list86); + index = 0; + span86[index] = "plogon_enjoyer"; questRoot15.Author = list86; - num = 2; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span27 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference46 = ref span27[0]; + index = 2; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + Span span87 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference46 = ref span87[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj34.Steps = list88; reference46 = obj34; - ref QuestSequence reference47 = ref span27[1]; + num++; + ref QuestSequence reference47 = ref span87[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -251970,47 +305381,59 @@ public static class AssemblyQuestLoader num2 = 4; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span28 = CollectionsMarshal.AsSpan(list89); - ref QuestStep reference48 = ref span28[0]; + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + ref QuestStep reference48 = ref span89[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = EExtendedClassJob.Miner; + Span span90 = CollectionsMarshal.AsSpan(list90); + index3 = 0; + span90[index3] = EExtendedClassJob.Miner; questStep13.RequiredQuestAcceptedJob = list90; - num3 = 1; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = new GatheredItem + index3 = 1; + List list91 = new List(index3); + CollectionsMarshal.SetCount(list91, index3); + Span span91 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + span91[num3] = new GatheredItem { ItemId = 29523u, ItemCount = 3 }; questStep13.ItemsToGather = list91; reference48 = questStep13; - ref QuestStep reference49 = ref span28[1]; + index2++; + ref QuestStep reference49 = ref span89[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = EExtendedClassJob.Botanist; + Span span92 = CollectionsMarshal.AsSpan(list92); + index3 = 0; + span92[index3] = EExtendedClassJob.Botanist; questStep14.RequiredQuestAcceptedJob = list92; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new GatheredItem + index3 = 1; + List list93 = new List(index3); + CollectionsMarshal.SetCount(list93, index3); + Span span93 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span93[num3] = new GatheredItem { ItemId = 29549u, ItemCount = 3 }; questStep14.ItemsToGather = list93; reference49 = questStep14; - span28[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2++; + span89[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span28[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span89[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252023,24 +305446,30 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "plogon_enjoyer"; + Span span94 = CollectionsMarshal.AsSpan(list94); + index = 0; + span94[index] = "plogon_enjoyer"; questRoot16.Author = list94; - num = 2; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span29 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference50 = ref span29[0]; + index = 2; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + Span span95 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference50 = ref span95[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj36.Steps = list96; reference50 = obj36; - ref QuestSequence reference51 = ref span29[1]; + num++; + ref QuestSequence reference51 = ref span95[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -252048,47 +305477,59 @@ public static class AssemblyQuestLoader num2 = 4; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span30 = CollectionsMarshal.AsSpan(list97); - ref QuestStep reference52 = ref span30[0]; + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + ref QuestStep reference52 = ref span97[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = EExtendedClassJob.Miner; + Span span98 = CollectionsMarshal.AsSpan(list98); + index3 = 0; + span98[index3] = EExtendedClassJob.Miner; questStep15.RequiredQuestAcceptedJob = list98; - num3 = 1; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - CollectionsMarshal.AsSpan(list99)[0] = new GatheredItem + index3 = 1; + List list99 = new List(index3); + CollectionsMarshal.SetCount(list99, index3); + Span span99 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span99[num3] = new GatheredItem { ItemId = 29524u, ItemCount = 3 }; questStep15.ItemsToGather = list99; reference52 = questStep15; - ref QuestStep reference53 = ref span30[1]; + index2++; + ref QuestStep reference53 = ref span97[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = EExtendedClassJob.Botanist; + Span span100 = CollectionsMarshal.AsSpan(list100); + index3 = 0; + span100[index3] = EExtendedClassJob.Botanist; questStep16.RequiredQuestAcceptedJob = list100; - num3 = 1; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = new GatheredItem + index3 = 1; + List list101 = new List(index3); + CollectionsMarshal.SetCount(list101, index3); + Span span101 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span101[num3] = new GatheredItem { ItemId = 29550u, ItemCount = 3 }; questStep16.ItemsToGather = list101; reference53 = questStep16; - span30[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2++; + span97[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span30[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span97[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252101,24 +305542,30 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "plogon_enjoyer"; + Span span102 = CollectionsMarshal.AsSpan(list102); + index = 0; + span102[index] = "plogon_enjoyer"; questRoot17.Author = list102; - num = 2; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span31 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference54 = ref span31[0]; + index = 2; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + Span span103 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference54 = ref span103[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj38.Steps = list104; reference54 = obj38; - ref QuestSequence reference55 = ref span31[1]; + num++; + ref QuestSequence reference55 = ref span103[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -252126,47 +305573,59 @@ public static class AssemblyQuestLoader num2 = 4; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span32 = CollectionsMarshal.AsSpan(list105); - ref QuestStep reference56 = ref span32[0]; + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + ref QuestStep reference56 = ref span105[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = EExtendedClassJob.Miner; + Span span106 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span106[index3] = EExtendedClassJob.Miner; questStep17.RequiredQuestAcceptedJob = list106; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = new GatheredItem + index3 = 1; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + Span span107 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span107[num3] = new GatheredItem { ItemId = 29525u, ItemCount = 3 }; questStep17.ItemsToGather = list107; reference56 = questStep17; - ref QuestStep reference57 = ref span32[1]; + index2++; + ref QuestStep reference57 = ref span105[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = EExtendedClassJob.Botanist; + Span span108 = CollectionsMarshal.AsSpan(list108); + index3 = 0; + span108[index3] = EExtendedClassJob.Botanist; questStep18.RequiredQuestAcceptedJob = list108; - num3 = 1; - List list109 = new List(num3); - CollectionsMarshal.SetCount(list109, num3); - CollectionsMarshal.AsSpan(list109)[0] = new GatheredItem + index3 = 1; + List list109 = new List(index3); + CollectionsMarshal.SetCount(list109, index3); + Span span109 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + span109[num3] = new GatheredItem { ItemId = 29551u, ItemCount = 3 }; questStep18.ItemsToGather = list109; reference57 = questStep18; - span32[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2++; + span105[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span32[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span105[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252179,24 +305638,30 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "plogon_enjoyer"; + Span span110 = CollectionsMarshal.AsSpan(list110); + index = 0; + span110[index] = "plogon_enjoyer"; questRoot18.Author = list110; - num = 2; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span33 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference58 = ref span33[0]; + index = 2; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + Span span111 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference58 = ref span111[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj40.Steps = list112; reference58 = obj40; - ref QuestSequence reference59 = ref span33[1]; + num++; + ref QuestSequence reference59 = ref span111[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -252204,47 +305669,59 @@ public static class AssemblyQuestLoader num2 = 4; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span34 = CollectionsMarshal.AsSpan(list113); - ref QuestStep reference60 = ref span34[0]; + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + ref QuestStep reference60 = ref span113[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = EExtendedClassJob.Miner; + Span span114 = CollectionsMarshal.AsSpan(list114); + index3 = 0; + span114[index3] = EExtendedClassJob.Miner; questStep19.RequiredQuestAcceptedJob = list114; - num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = new GatheredItem + index3 = 1; + List list115 = new List(index3); + CollectionsMarshal.SetCount(list115, index3); + Span span115 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span115[num3] = new GatheredItem { ItemId = 29526u, ItemCount = 3 }; questStep19.ItemsToGather = list115; reference60 = questStep19; - ref QuestStep reference61 = ref span34[1]; + index2++; + ref QuestStep reference61 = ref span113[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = EExtendedClassJob.Botanist; + Span span116 = CollectionsMarshal.AsSpan(list116); + index3 = 0; + span116[index3] = EExtendedClassJob.Botanist; questStep20.RequiredQuestAcceptedJob = list116; - num3 = 1; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = new GatheredItem + index3 = 1; + List list117 = new List(index3); + CollectionsMarshal.SetCount(list117, index3); + Span span117 = CollectionsMarshal.AsSpan(list117); + num3 = 0; + span117[num3] = new GatheredItem { ItemId = 29552u, ItemCount = 3 }; questStep20.ItemsToGather = list117; reference61 = questStep20; - span34[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2++; + span113[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span34[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span113[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252257,24 +305734,30 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "plogon_enjoyer"; + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "plogon_enjoyer"; questRoot19.Author = list118; - num = 2; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span35 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference62 = ref span35[0]; + index = 2; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference62 = ref span119[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj42.Steps = list120; reference62 = obj42; - ref QuestSequence reference63 = ref span35[1]; + num++; + ref QuestSequence reference63 = ref span119[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue @@ -252282,47 +305765,59 @@ public static class AssemblyQuestLoader num2 = 4; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span36 = CollectionsMarshal.AsSpan(list121); - ref QuestStep reference64 = ref span36[0]; + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + ref QuestStep reference64 = ref span121[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = EExtendedClassJob.Miner; + Span span122 = CollectionsMarshal.AsSpan(list122); + index3 = 0; + span122[index3] = EExtendedClassJob.Miner; questStep21.RequiredQuestAcceptedJob = list122; - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = new GatheredItem + index3 = 1; + List list123 = new List(index3); + CollectionsMarshal.SetCount(list123, index3); + Span span123 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span123[num3] = new GatheredItem { ItemId = 29527u, ItemCount = 3 }; questStep21.ItemsToGather = list123; reference64 = questStep21; - ref QuestStep reference65 = ref span36[1]; + index2++; + ref QuestStep reference65 = ref span121[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = EExtendedClassJob.Botanist; + Span span124 = CollectionsMarshal.AsSpan(list124); + index3 = 0; + span124[index3] = EExtendedClassJob.Botanist; questStep22.RequiredQuestAcceptedJob = list124; - num3 = 1; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - CollectionsMarshal.AsSpan(list125)[0] = new GatheredItem + index3 = 1; + List list125 = new List(index3); + CollectionsMarshal.SetCount(list125, index3); + Span span125 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span125[num3] = new GatheredItem { ItemId = 29553u, ItemCount = 3 }; questStep22.ItemsToGather = list125; reference65 = questStep22; - span36[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2++; + span121[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span36[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span121[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252335,24 +305830,30 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "liza"; + Span span126 = CollectionsMarshal.AsSpan(list126); + index = 0; + span126[index] = "liza"; questRoot20.Author = list126; - num = 3; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span37 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference66 = ref span37[0]; + index = 3; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + Span span127 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference66 = ref span127[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj44.Steps = list128; reference66 = obj44; - ref QuestSequence reference67 = ref span37[1]; + num++; + ref QuestSequence reference67 = ref span127[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 @@ -252360,7 +305861,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Say, 1032413u, new Vector3(144.36548f, -19.982845f, -459.8001f), 817) + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.Say, 1032413u, new Vector3(144.36548f, -19.982845f, -459.8001f), 817) { Fly = true, ChatMessage = new ChatMessage @@ -252370,21 +305873,24 @@ public static class AssemblyQuestLoader }; obj45.Steps = list129; reference67 = obj45; - ref QuestSequence reference68 = ref span37[2]; + num++; + ref QuestSequence reference68 = ref span127[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span38 = CollectionsMarshal.AsSpan(list130); - span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2 = 2; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span130[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252397,13 +305903,16 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "liza"; + Span span131 = CollectionsMarshal.AsSpan(list131); + index = 0; + span131[index] = "liza"; questRoot21.Author = list131; - num = 2; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span39 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference69 = ref span39[0]; + index = 2; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + Span span132 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference69 = ref span132[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -252411,58 +305920,73 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj47.Steps = list133; reference69 = obj47; - ref QuestSequence reference70 = ref span39[1]; + num++; + ref QuestSequence reference70 = ref span132[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - Span span40 = CollectionsMarshal.AsSpan(list134); - ref QuestStep reference71 = ref span40[0]; + index2 = 4; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + ref QuestStep reference71 = ref span134[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = EExtendedClassJob.Miner; + Span span135 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span135[index3] = EExtendedClassJob.Miner; questStep23.RequiredQuestAcceptedJob = list135; - num3 = 1; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - CollectionsMarshal.AsSpan(list136)[0] = new GatheredItem + index3 = 1; + List list136 = new List(index3); + CollectionsMarshal.SetCount(list136, index3); + Span span136 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span136[num3] = new GatheredItem { ItemId = 29528u, ItemCount = 3 }; questStep23.ItemsToGather = list136; reference71 = questStep23; - ref QuestStep reference72 = ref span40[1]; + num2++; + ref QuestStep reference72 = ref span134[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - CollectionsMarshal.AsSpan(list137)[0] = EExtendedClassJob.Botanist; + Span span137 = CollectionsMarshal.AsSpan(list137); + index3 = 0; + span137[index3] = EExtendedClassJob.Botanist; questStep24.RequiredQuestAcceptedJob = list137; - num3 = 1; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - CollectionsMarshal.AsSpan(list138)[0] = new GatheredItem + index3 = 1; + List list138 = new List(index3); + CollectionsMarshal.SetCount(list138, index3); + Span span138 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span138[num3] = new GatheredItem { ItemId = 29554u, ItemCount = 3 }; questStep24.ItemsToGather = list138; reference72 = questStep24; - span40[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span134[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span40[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span134[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252475,13 +305999,16 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; + Span span139 = CollectionsMarshal.AsSpan(list139); + index = 0; + span139[index] = "liza"; questRoot22.Author = list139; - num = 2; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span41 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference73 = ref span41[0]; + index = 2; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + Span span140 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference73 = ref span140[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -252489,58 +306016,73 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj49.Steps = list141; reference73 = obj49; - ref QuestSequence reference74 = ref span41[1]; + num++; + ref QuestSequence reference74 = ref span140[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span42 = CollectionsMarshal.AsSpan(list142); - ref QuestStep reference75 = ref span42[0]; + index2 = 4; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + ref QuestStep reference75 = ref span142[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = EExtendedClassJob.Miner; + Span span143 = CollectionsMarshal.AsSpan(list143); + index3 = 0; + span143[index3] = EExtendedClassJob.Miner; questStep25.RequiredQuestAcceptedJob = list143; - num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new GatheredItem + index3 = 1; + List list144 = new List(index3); + CollectionsMarshal.SetCount(list144, index3); + Span span144 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span144[num3] = new GatheredItem { ItemId = 29529u, ItemCount = 3 }; questStep25.ItemsToGather = list144; reference75 = questStep25; - ref QuestStep reference76 = ref span42[1]; + num2++; + ref QuestStep reference76 = ref span142[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - CollectionsMarshal.AsSpan(list145)[0] = EExtendedClassJob.Botanist; + Span span145 = CollectionsMarshal.AsSpan(list145); + index3 = 0; + span145[index3] = EExtendedClassJob.Botanist; questStep26.RequiredQuestAcceptedJob = list145; - num3 = 1; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new GatheredItem + index3 = 1; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + Span span146 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span146[num3] = new GatheredItem { ItemId = 29555u, ItemCount = 3 }; questStep26.ItemsToGather = list146; reference76 = questStep26; - span42[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span142[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span42[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span142[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252553,13 +306095,16 @@ public static class AssemblyQuestLoader num = 1; List list147 = new List(num); CollectionsMarshal.SetCount(list147, num); - CollectionsMarshal.AsSpan(list147)[0] = "liza"; + Span span147 = CollectionsMarshal.AsSpan(list147); + index = 0; + span147[index] = "liza"; questRoot23.Author = list147; - num = 2; - List list148 = new List(num); - CollectionsMarshal.SetCount(list148, num); - Span span43 = CollectionsMarshal.AsSpan(list148); - ref QuestSequence reference77 = ref span43[0]; + index = 2; + List list148 = new List(index); + CollectionsMarshal.SetCount(list148, index); + Span span148 = CollectionsMarshal.AsSpan(list148); + num = 0; + ref QuestSequence reference77 = ref span148[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -252567,58 +306112,73 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span149 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span149[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj51.Steps = list149; reference77 = obj51; - ref QuestSequence reference78 = ref span43[1]; + num++; + ref QuestSequence reference78 = ref span148[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - Span span44 = CollectionsMarshal.AsSpan(list150); - ref QuestStep reference79 = ref span44[0]; + index2 = 4; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + ref QuestStep reference79 = ref span150[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = EExtendedClassJob.Miner; + Span span151 = CollectionsMarshal.AsSpan(list151); + index3 = 0; + span151[index3] = EExtendedClassJob.Miner; questStep27.RequiredQuestAcceptedJob = list151; - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = new GatheredItem + index3 = 1; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + Span span152 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span152[num3] = new GatheredItem { ItemId = 29530u, ItemCount = 3 }; questStep27.ItemsToGather = list152; reference79 = questStep27; - ref QuestStep reference80 = ref span44[1]; + num2++; + ref QuestStep reference80 = ref span150[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = EExtendedClassJob.Botanist; + Span span153 = CollectionsMarshal.AsSpan(list153); + index3 = 0; + span153[index3] = EExtendedClassJob.Botanist; questStep28.RequiredQuestAcceptedJob = list153; - num3 = 1; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = new GatheredItem + index3 = 1; + List list154 = new List(index3); + CollectionsMarshal.SetCount(list154, index3); + Span span154 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span154[num3] = new GatheredItem { ItemId = 29556u, ItemCount = 3 }; questStep28.ItemsToGather = list154; reference80 = questStep28; - span44[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span150[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span44[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span150[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252631,13 +306191,16 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "liza"; + Span span155 = CollectionsMarshal.AsSpan(list155); + index = 0; + span155[index] = "liza"; questRoot24.Author = list155; - num = 4; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span45 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference81 = ref span45[0]; + index = 4; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + Span span156 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference81 = ref span156[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -252645,21 +306208,27 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj53.Steps = list157; reference81 = obj53; - ref QuestSequence reference82 = ref span45[1]; + num++; + ref QuestSequence reference82 = ref span156[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1032663u, new Vector3(793.97266f, -45.811764f, -188.03699f), 817); + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span158[num2] = new QuestStep(EInteractionType.Interact, 1032663u, new Vector3(793.97266f, -45.811764f, -188.03699f), 817); obj54.Steps = list158; reference82 = obj54; - ref QuestSequence reference83 = ref span45[2]; + num++; + ref QuestSequence reference83 = ref span156[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -252667,8 +306236,9 @@ public static class AssemblyQuestLoader num2 = 2; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span46 = CollectionsMarshal.AsSpan(list159); - ref QuestStep reference84 = ref span46[0]; + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + ref QuestStep reference84 = ref span159[index2]; QuestStep obj56 = new QuestStep(EInteractionType.Action, 1032829u, new Vector3(488.3954f, 34.798103f, 232.37964f), 817) { Fly = true, @@ -252677,50 +306247,66 @@ public static class AssemblyQuestLoader num3 = 6; List list160 = new List(num3); CollectionsMarshal.SetCount(list160, num3); - Span span47 = CollectionsMarshal.AsSpan(list160); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span160 = CollectionsMarshal.AsSpan(list160); + index3 = 0; + span160[index3] = null; + index3++; + span160[index3] = null; + index3++; + span160[index3] = null; + index3++; + span160[index3] = null; + index3++; + span160[index3] = null; + index3++; + span160[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj56.CompletionQuestVariablesFlags = list160; reference84 = obj56; - ref QuestStep reference85 = ref span46[1]; + index2++; + ref QuestStep reference85 = ref span159[index2]; QuestStep obj57 = new QuestStep(EInteractionType.Action, 1032828u, new Vector3(352.16296f, 28.242743f, 303.2119f), 817) { Fly = true, Action = EAction.PeculiarLight }; - num3 = 6; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - Span span48 = CollectionsMarshal.AsSpan(list161); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list161 = new List(index3); + CollectionsMarshal.SetCount(list161, index3); + Span span161 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj57.CompletionQuestVariablesFlags = list161; reference85 = obj57; obj55.Steps = list159; reference83 = obj55; - ref QuestSequence reference86 = ref span45[3]; + num++; + ref QuestSequence reference86 = ref span156[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span49 = CollectionsMarshal.AsSpan(list162); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2 = 2; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span162[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span49[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span162[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252733,13 +306319,16 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "plogon_enjoyer"; + Span span163 = CollectionsMarshal.AsSpan(list163); + index = 0; + span163[index] = "plogon_enjoyer"; questRoot25.Author = list163; - num = 2; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span50 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference87 = ref span50[0]; + index = 2; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + Span span164 = CollectionsMarshal.AsSpan(list164); + num = 0; + ref QuestSequence reference87 = ref span164[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -252747,58 +306336,73 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj59.Steps = list165; reference87 = obj59; - ref QuestSequence reference88 = ref span50[1]; + num++; + ref QuestSequence reference88 = ref span164[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span51 = CollectionsMarshal.AsSpan(list166); - ref QuestStep reference89 = ref span51[0]; + index2 = 4; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + ref QuestStep reference89 = ref span166[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - CollectionsMarshal.AsSpan(list167)[0] = EExtendedClassJob.Miner; + Span span167 = CollectionsMarshal.AsSpan(list167); + index3 = 0; + span167[index3] = EExtendedClassJob.Miner; questStep29.RequiredQuestAcceptedJob = list167; - num3 = 1; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = new GatheredItem + index3 = 1; + List list168 = new List(index3); + CollectionsMarshal.SetCount(list168, index3); + Span span168 = CollectionsMarshal.AsSpan(list168); + num3 = 0; + span168[num3] = new GatheredItem { ItemId = 29531u, ItemCount = 3 }; questStep29.ItemsToGather = list168; reference89 = questStep29; - ref QuestStep reference90 = ref span51[1]; + num2++; + ref QuestStep reference90 = ref span166[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - CollectionsMarshal.AsSpan(list169)[0] = EExtendedClassJob.Botanist; + Span span169 = CollectionsMarshal.AsSpan(list169); + index3 = 0; + span169[index3] = EExtendedClassJob.Botanist; questStep30.RequiredQuestAcceptedJob = list169; - num3 = 1; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - CollectionsMarshal.AsSpan(list170)[0] = new GatheredItem + index3 = 1; + List list170 = new List(index3); + CollectionsMarshal.SetCount(list170, index3); + Span span170 = CollectionsMarshal.AsSpan(list170); + num3 = 0; + span170[num3] = new GatheredItem { ItemId = 29557u, ItemCount = 3 }; questStep30.ItemsToGather = list170; reference90 = questStep30; - span51[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span166[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span51[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span166[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252811,13 +306415,16 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "plogon_enjoyer"; + Span span171 = CollectionsMarshal.AsSpan(list171); + index = 0; + span171[index] = "plogon_enjoyer"; questRoot26.Author = list171; - num = 2; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span52 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference91 = ref span52[0]; + index = 2; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + Span span172 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference91 = ref span172[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -252825,58 +306432,73 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj61.Steps = list173; reference91 = obj61; - ref QuestSequence reference92 = ref span52[1]; + num++; + ref QuestSequence reference92 = ref span172[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - Span span53 = CollectionsMarshal.AsSpan(list174); - ref QuestStep reference93 = ref span53[0]; + index2 = 4; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + ref QuestStep reference93 = ref span174[num2]; QuestStep questStep31 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list175 = new List(num3); CollectionsMarshal.SetCount(list175, num3); - CollectionsMarshal.AsSpan(list175)[0] = EExtendedClassJob.Miner; + Span span175 = CollectionsMarshal.AsSpan(list175); + index3 = 0; + span175[index3] = EExtendedClassJob.Miner; questStep31.RequiredQuestAcceptedJob = list175; - num3 = 1; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = new GatheredItem + index3 = 1; + List list176 = new List(index3); + CollectionsMarshal.SetCount(list176, index3); + Span span176 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span176[num3] = new GatheredItem { ItemId = 29532u, ItemCount = 3 }; questStep31.ItemsToGather = list176; reference93 = questStep31; - ref QuestStep reference94 = ref span53[1]; + num2++; + ref QuestStep reference94 = ref span174[num2]; QuestStep questStep32 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list177 = new List(num3); CollectionsMarshal.SetCount(list177, num3); - CollectionsMarshal.AsSpan(list177)[0] = EExtendedClassJob.Botanist; + Span span177 = CollectionsMarshal.AsSpan(list177); + index3 = 0; + span177[index3] = EExtendedClassJob.Botanist; questStep32.RequiredQuestAcceptedJob = list177; - num3 = 1; - List list178 = new List(num3); - CollectionsMarshal.SetCount(list178, num3); - CollectionsMarshal.AsSpan(list178)[0] = new GatheredItem + index3 = 1; + List list178 = new List(index3); + CollectionsMarshal.SetCount(list178, index3); + Span span178 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + span178[num3] = new GatheredItem { ItemId = 29558u, ItemCount = 3 }; questStep32.ItemsToGather = list178; reference94 = questStep32; - span53[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span174[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span53[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span174[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252889,13 +306511,16 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "liza"; + Span span179 = CollectionsMarshal.AsSpan(list179); + index = 0; + span179[index] = "liza"; questRoot27.Author = list179; - num = 3; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span54 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference95 = ref span54[0]; + index = 3; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + Span span180 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference95 = ref span180[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -252903,25 +306528,31 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span181[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj63.Steps = list181; reference95 = obj63; - ref QuestSequence reference96 = ref span54[1]; + num++; + ref QuestSequence reference96 = ref span180[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 2010997u, new Vector3(-399.52698f, 10.635498f, 241.50452f), 817) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = new QuestStep(EInteractionType.Interact, 2010997u, new Vector3(-399.52698f, 10.635498f, 241.50452f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj64.Steps = list182; reference96 = obj64; - ref QuestSequence reference97 = ref span54[2]; + num++; + ref QuestSequence reference97 = ref span180[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -252929,13 +306560,15 @@ public static class AssemblyQuestLoader num2 = 2; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span55 = CollectionsMarshal.AsSpan(list183); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + Span span183 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span183[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span55[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span183[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -252948,24 +306581,30 @@ public static class AssemblyQuestLoader num = 1; List list184 = new List(num); CollectionsMarshal.SetCount(list184, num); - CollectionsMarshal.AsSpan(list184)[0] = "liza"; + Span span184 = CollectionsMarshal.AsSpan(list184); + index = 0; + span184[index] = "liza"; questRoot28.Author = list184; - num = 2; - List list185 = new List(num); - CollectionsMarshal.SetCount(list185, num); - Span span56 = CollectionsMarshal.AsSpan(list185); - ref QuestSequence reference98 = ref span56[0]; + index = 2; + List list185 = new List(index); + CollectionsMarshal.SetCount(list185, index); + Span span185 = CollectionsMarshal.AsSpan(list185); + num = 0; + ref QuestSequence reference98 = ref span185[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span186[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj66.Steps = list186; reference98 = obj66; - ref QuestSequence reference99 = ref span56[1]; + num++; + ref QuestSequence reference99 = ref span185[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -252973,47 +306612,59 @@ public static class AssemblyQuestLoader num2 = 4; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span57 = CollectionsMarshal.AsSpan(list187); - ref QuestStep reference100 = ref span57[0]; + Span span187 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + ref QuestStep reference100 = ref span187[index2]; QuestStep questStep33 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - CollectionsMarshal.AsSpan(list188)[0] = EExtendedClassJob.Miner; + Span span188 = CollectionsMarshal.AsSpan(list188); + index3 = 0; + span188[index3] = EExtendedClassJob.Miner; questStep33.RequiredQuestAcceptedJob = list188; - num3 = 1; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - CollectionsMarshal.AsSpan(list189)[0] = new GatheredItem + index3 = 1; + List list189 = new List(index3); + CollectionsMarshal.SetCount(list189, index3); + Span span189 = CollectionsMarshal.AsSpan(list189); + num3 = 0; + span189[num3] = new GatheredItem { ItemId = 29533u, ItemCount = 3 }; questStep33.ItemsToGather = list189; reference100 = questStep33; - ref QuestStep reference101 = ref span57[1]; + index2++; + ref QuestStep reference101 = ref span187[index2]; QuestStep questStep34 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - CollectionsMarshal.AsSpan(list190)[0] = EExtendedClassJob.Botanist; + Span span190 = CollectionsMarshal.AsSpan(list190); + index3 = 0; + span190[index3] = EExtendedClassJob.Botanist; questStep34.RequiredQuestAcceptedJob = list190; - num3 = 1; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = new GatheredItem + index3 = 1; + List list191 = new List(index3); + CollectionsMarshal.SetCount(list191, index3); + Span span191 = CollectionsMarshal.AsSpan(list191); + num3 = 0; + span191[num3] = new GatheredItem { ItemId = 29559u, ItemCount = 3 }; questStep34.ItemsToGather = list191; reference101 = questStep34; - span57[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2++; + span187[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span57[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span187[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f, Fly = true @@ -253027,24 +306678,30 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - CollectionsMarshal.AsSpan(list192)[0] = "liza"; + Span span192 = CollectionsMarshal.AsSpan(list192); + index = 0; + span192[index] = "liza"; questRoot29.Author = list192; - num = 2; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - Span span58 = CollectionsMarshal.AsSpan(list193); - ref QuestSequence reference102 = ref span58[0]; + index = 2; + List list193 = new List(index); + CollectionsMarshal.SetCount(list193, index); + Span span193 = CollectionsMarshal.AsSpan(list193); + num = 0; + ref QuestSequence reference102 = ref span193[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj68.Steps = list194; reference102 = obj68; - ref QuestSequence reference103 = ref span58[1]; + num++; + ref QuestSequence reference103 = ref span193[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -253052,47 +306709,59 @@ public static class AssemblyQuestLoader num2 = 4; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span59 = CollectionsMarshal.AsSpan(list195); - ref QuestStep reference104 = ref span59[0]; + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + ref QuestStep reference104 = ref span195[index2]; QuestStep questStep35 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list196 = new List(num3); CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = EExtendedClassJob.Miner; + Span span196 = CollectionsMarshal.AsSpan(list196); + index3 = 0; + span196[index3] = EExtendedClassJob.Miner; questStep35.RequiredQuestAcceptedJob = list196; - num3 = 1; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new GatheredItem + index3 = 1; + List list197 = new List(index3); + CollectionsMarshal.SetCount(list197, index3); + Span span197 = CollectionsMarshal.AsSpan(list197); + num3 = 0; + span197[num3] = new GatheredItem { ItemId = 29534u, ItemCount = 3 }; questStep35.ItemsToGather = list197; reference104 = questStep35; - ref QuestStep reference105 = ref span59[1]; + index2++; + ref QuestStep reference105 = ref span195[index2]; QuestStep questStep36 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list198 = new List(num3); CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = EExtendedClassJob.Botanist; + Span span198 = CollectionsMarshal.AsSpan(list198); + index3 = 0; + span198[index3] = EExtendedClassJob.Botanist; questStep36.RequiredQuestAcceptedJob = list198; - num3 = 1; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - CollectionsMarshal.AsSpan(list199)[0] = new GatheredItem + index3 = 1; + List list199 = new List(index3); + CollectionsMarshal.SetCount(list199, index3); + Span span199 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span199[num3] = new GatheredItem { ItemId = 29560u, ItemCount = 3 }; questStep36.ItemsToGather = list199; reference105 = questStep36; - span59[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2++; + span195[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span59[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + index2++; + span195[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -253105,24 +306774,30 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - CollectionsMarshal.AsSpan(list200)[0] = "liza"; + Span span200 = CollectionsMarshal.AsSpan(list200); + index = 0; + span200[index] = "liza"; questRoot30.Author = list200; - num = 5; - List list201 = new List(num); - CollectionsMarshal.SetCount(list201, num); - Span span60 = CollectionsMarshal.AsSpan(list201); - ref QuestSequence reference106 = ref span60[0]; + index = 5; + List list201 = new List(index); + CollectionsMarshal.SetCount(list201, index); + Span span201 = CollectionsMarshal.AsSpan(list201); + num = 0; + ref QuestSequence reference106 = ref span201[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj70.Steps = list202; reference106 = obj70; - ref QuestSequence reference107 = ref span60[1]; + num++; + ref QuestSequence reference107 = ref span201[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 @@ -253130,28 +306805,34 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1032830u, new Vector3(-134.02002f, -18.460577f, 303.5476f), 817) + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span203[index2] = new QuestStep(EInteractionType.Interact, 1032830u, new Vector3(-134.02002f, -18.460577f, 303.5476f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj71.Steps = list203; reference107 = obj71; - ref QuestSequence reference108 = ref span60[2]; + num++; + ref QuestSequence reference108 = ref span201[num]; QuestSequence obj72 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.UseItem, 1032831u, new Vector3(-54.795166f, 0.7328947f, 217.09009f), 817) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.UseItem, 1032831u, new Vector3(-54.795166f, 0.7328947f, 217.09009f), 817) { Fly = true, ItemId = 2002980u }; obj72.Steps = list204; reference108 = obj72; - ref QuestSequence reference109 = ref span60[3]; + num++; + ref QuestSequence reference109 = ref span201[num]; QuestSequence obj73 = new QuestSequence { Sequence = 3 @@ -253159,24 +306840,29 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1032830u, new Vector3(-134.02002f, -18.460577f, 303.5476f), 817); + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.Interact, 1032830u, new Vector3(-134.02002f, -18.460577f, 303.5476f), 817); obj73.Steps = list205; reference109 = obj73; - ref QuestSequence reference110 = ref span60[4]; + num++; + ref QuestSequence reference110 = ref span201[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - Span span61 = CollectionsMarshal.AsSpan(list206); - span61[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2 = 2; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span61[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span206[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -253189,13 +306875,16 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "liza"; + Span span207 = CollectionsMarshal.AsSpan(list207); + index = 0; + span207[index] = "liza"; questRoot31.Author = list207; - num = 2; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span62 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference111 = ref span62[0]; + index = 2; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + Span span208 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference111 = ref span208[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -253203,58 +306892,73 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj75.Steps = list209; reference111 = obj75; - ref QuestSequence reference112 = ref span62[1]; + num++; + ref QuestSequence reference112 = ref span208[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span63 = CollectionsMarshal.AsSpan(list210); - ref QuestStep reference113 = ref span63[0]; + index2 = 4; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + ref QuestStep reference113 = ref span210[num2]; QuestStep questStep37 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = EExtendedClassJob.Miner; + Span span211 = CollectionsMarshal.AsSpan(list211); + index3 = 0; + span211[index3] = EExtendedClassJob.Miner; questStep37.RequiredQuestAcceptedJob = list211; - num3 = 1; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = new GatheredItem + index3 = 1; + List list212 = new List(index3); + CollectionsMarshal.SetCount(list212, index3); + Span span212 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span212[num3] = new GatheredItem { ItemId = 29535u, ItemCount = 3 }; questStep37.ItemsToGather = list212; reference113 = questStep37; - ref QuestStep reference114 = ref span63[1]; + num2++; + ref QuestStep reference114 = ref span210[num2]; QuestStep questStep38 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = EExtendedClassJob.Botanist; + Span span213 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span213[index3] = EExtendedClassJob.Botanist; questStep38.RequiredQuestAcceptedJob = list213; - num3 = 1; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - CollectionsMarshal.AsSpan(list214)[0] = new GatheredItem + index3 = 1; + List list214 = new List(index3); + CollectionsMarshal.SetCount(list214, index3); + Span span214 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span214[num3] = new GatheredItem { ItemId = 29561u, ItemCount = 3 }; questStep38.ItemsToGather = list214; reference114 = questStep38; - span63[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span210[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span63[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span210[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -253267,13 +306971,16 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - CollectionsMarshal.AsSpan(list215)[0] = "liza"; + Span span215 = CollectionsMarshal.AsSpan(list215); + index = 0; + span215[index] = "liza"; questRoot32.Author = list215; - num = 2; - List list216 = new List(num); - CollectionsMarshal.SetCount(list216, num); - Span span64 = CollectionsMarshal.AsSpan(list216); - ref QuestSequence reference115 = ref span64[0]; + index = 2; + List list216 = new List(index); + CollectionsMarshal.SetCount(list216, index); + Span span216 = CollectionsMarshal.AsSpan(list216); + num = 0; + ref QuestSequence reference115 = ref span216[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -253281,58 +306988,73 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj77.Steps = list217; reference115 = obj77; - ref QuestSequence reference116 = ref span64[1]; + num++; + ref QuestSequence reference116 = ref span216[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - Span span65 = CollectionsMarshal.AsSpan(list218); - ref QuestStep reference117 = ref span65[0]; + index2 = 4; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + ref QuestStep reference117 = ref span218[num2]; QuestStep questStep39 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list219 = new List(num3); CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = EExtendedClassJob.Miner; + Span span219 = CollectionsMarshal.AsSpan(list219); + index3 = 0; + span219[index3] = EExtendedClassJob.Miner; questStep39.RequiredQuestAcceptedJob = list219; - num3 = 1; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - CollectionsMarshal.AsSpan(list220)[0] = new GatheredItem + index3 = 1; + List list220 = new List(index3); + CollectionsMarshal.SetCount(list220, index3); + Span span220 = CollectionsMarshal.AsSpan(list220); + num3 = 0; + span220[num3] = new GatheredItem { ItemId = 29536u, ItemCount = 3 }; questStep39.ItemsToGather = list220; reference117 = questStep39; - ref QuestStep reference118 = ref span65[1]; + num2++; + ref QuestStep reference118 = ref span218[num2]; QuestStep questStep40 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list221 = new List(num3); CollectionsMarshal.SetCount(list221, num3); - CollectionsMarshal.AsSpan(list221)[0] = EExtendedClassJob.Botanist; + Span span221 = CollectionsMarshal.AsSpan(list221); + index3 = 0; + span221[index3] = EExtendedClassJob.Botanist; questStep40.RequiredQuestAcceptedJob = list221; - num3 = 1; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = new GatheredItem + index3 = 1; + List list222 = new List(index3); + CollectionsMarshal.SetCount(list222, index3); + Span span222 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span222[num3] = new GatheredItem { ItemId = 29562u, ItemCount = 3 }; questStep40.ItemsToGather = list222; reference118 = questStep40; - span65[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + num2++; + span218[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span65[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span218[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -253345,13 +307067,16 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - CollectionsMarshal.AsSpan(list223)[0] = "plogon_enjoyer"; + Span span223 = CollectionsMarshal.AsSpan(list223); + index = 0; + span223[index] = "plogon_enjoyer"; questRoot33.Author = list223; - num = 4; - List list224 = new List(num); - CollectionsMarshal.SetCount(list224, num); - Span span66 = CollectionsMarshal.AsSpan(list224); - ref QuestSequence reference119 = ref span66[0]; + index = 4; + List list224 = new List(index); + CollectionsMarshal.SetCount(list224, index); + Span span224 = CollectionsMarshal.AsSpan(list224); + num = 0; + ref QuestSequence reference119 = ref span224[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -253359,24 +307084,30 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span225 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span225[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj79.Steps = list225; reference119 = obj79; - ref QuestSequence reference120 = ref span66[1]; + num++; + ref QuestSequence reference120 = ref span224[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 1032663u, new Vector3(793.97266f, -45.811764f, -188.03699f), 817) + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + Span span226 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span226[num2] = new QuestStep(EInteractionType.Interact, 1032663u, new Vector3(793.97266f, -45.811764f, -188.03699f), 817) { Fly = true }; obj80.Steps = list226; reference120 = obj80; - ref QuestSequence reference121 = ref span66[2]; + num++; + ref QuestSequence reference121 = ref span224[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 @@ -253384,28 +307115,33 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Action, 2010998u, new Vector3(-677.0886f, 0.32037354f, 208.69751f), 817) + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.Action, 2010998u, new Vector3(-677.0886f, 0.32037354f, 208.69751f), 817) { Fly = true, Action = EAction.PeculiarLight }; obj81.Steps = list227; reference121 = obj81; - ref QuestSequence reference122 = ref span66[3]; + num++; + ref QuestSequence reference122 = ref span224[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span67 = CollectionsMarshal.AsSpan(list228); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + index2 = 2; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span228[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -253418,13 +307154,16 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "pot0to"; + Span span229 = CollectionsMarshal.AsSpan(list229); + index = 0; + span229[index] = "pot0to"; questRoot34.Author = list229; - num = 2; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span68 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference123 = ref span68[0]; + index = 2; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + Span span230 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference123 = ref span230[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -253432,19 +307171,23 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + Span span231 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span231[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj83.Steps = list231; reference123 = obj83; - ref QuestSequence reference124 = ref span68[1]; + num++; + ref QuestSequence reference124 = ref span230[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - Span span69 = CollectionsMarshal.AsSpan(list232); - ref QuestStep reference125 = ref span69[0]; + index2 = 3; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + ref QuestStep reference125 = ref span232[num2]; QuestStep obj85 = new QuestStep(EInteractionType.Gather, 33005u, new Vector3(214.7744f, -19.57758f, 623.6767f), 817) { Fly = true @@ -253452,19 +307195,24 @@ public static class AssemblyQuestLoader num3 = 1; List list233 = new List(num3); CollectionsMarshal.SetCount(list233, num3); - CollectionsMarshal.AsSpan(list233)[0] = EExtendedClassJob.Miner; + Span span233 = CollectionsMarshal.AsSpan(list233); + index3 = 0; + span233[index3] = EExtendedClassJob.Miner; obj85.RequiredQuestAcceptedJob = list233; - num3 = 1; - List list234 = new List(num3); - CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = new GatheredItem + index3 = 1; + List list234 = new List(index3); + CollectionsMarshal.SetCount(list234, index3); + Span span234 = CollectionsMarshal.AsSpan(list234); + num3 = 0; + span234[num3] = new GatheredItem { ItemId = 29537u, ItemCount = 3 }; obj85.ItemsToGather = list234; reference125 = obj85; - ref QuestStep reference126 = ref span69[1]; + num2++; + ref QuestStep reference126 = ref span232[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Gather, 33020u, new Vector3(226.1767f, -20.10281f, 643.5543f), 817) { Fly = true @@ -253472,19 +307220,24 @@ public static class AssemblyQuestLoader num3 = 1; List list235 = new List(num3); CollectionsMarshal.SetCount(list235, num3); - CollectionsMarshal.AsSpan(list235)[0] = EExtendedClassJob.Botanist; + Span span235 = CollectionsMarshal.AsSpan(list235); + index3 = 0; + span235[index3] = EExtendedClassJob.Botanist; obj86.RequiredQuestAcceptedJob = list235; - num3 = 1; - List list236 = new List(num3); - CollectionsMarshal.SetCount(list236, num3); - CollectionsMarshal.AsSpan(list236)[0] = new GatheredItem + index3 = 1; + List list236 = new List(index3); + CollectionsMarshal.SetCount(list236, index3); + Span span236 = CollectionsMarshal.AsSpan(list236); + num3 = 0; + span236[num3] = new GatheredItem { ItemId = 29563u, ItemCount = 3 }; obj86.ItemsToGather = list236; reference126 = obj86; - span69[2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + num2++; + span232[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow @@ -253498,13 +307251,16 @@ public static class AssemblyQuestLoader num = 1; List list237 = new List(num); CollectionsMarshal.SetCount(list237, num); - CollectionsMarshal.AsSpan(list237)[0] = "Censored"; + Span span237 = CollectionsMarshal.AsSpan(list237); + index = 0; + span237[index] = "Censored"; questRoot35.Author = list237; - num = 5; - List list238 = new List(num); - CollectionsMarshal.SetCount(list238, num); - Span span70 = CollectionsMarshal.AsSpan(list238); - ref QuestSequence reference127 = ref span70[0]; + index = 5; + List list238 = new List(index); + CollectionsMarshal.SetCount(list238, index); + Span span238 = CollectionsMarshal.AsSpan(list238); + num = 0; + ref QuestSequence reference127 = ref span238[num]; QuestSequence obj87 = new QuestSequence { Sequence = 0 @@ -253512,7 +307268,9 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018994u, new Vector3(49.240845f, 4.0000005f, 55.77173f), 628) + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018994u, new Vector3(49.240845f, 4.0000005f, 55.77173f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -253523,16 +307281,18 @@ public static class AssemblyQuestLoader }; obj87.Steps = list239; reference127 = obj87; - ref QuestSequence reference128 = ref span70[1]; + num++; + ref QuestSequence reference128 = ref span238[num]; QuestSequence obj88 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - Span span71 = CollectionsMarshal.AsSpan(list240); - span71[0] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + index2 = 2; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AethernetShortcut = new AethernetShortcut @@ -253541,10 +307301,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - span71[1] = new QuestStep(EInteractionType.Interact, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); + num2++; + span240[num2] = new QuestStep(EInteractionType.Interact, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); obj88.Steps = list240; reference128 = obj88; - ref QuestSequence reference129 = ref span70[2]; + num++; + ref QuestSequence reference129 = ref span238[num]; QuestSequence obj89 = new QuestSequence { Sequence = 2 @@ -253552,27 +307314,33 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Interact, 1032866u, new Vector3(274.1283f, 8.18297f, -409.8421f), 614) + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.Interact, 1032866u, new Vector3(274.1283f, 8.18297f, -409.8421f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj89.Steps = list241; reference129 = obj89; - ref QuestSequence reference130 = ref span70[3]; + num++; + ref QuestSequence reference130 = ref span238[num]; QuestSequence obj90 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1032867u, new Vector3(-258.53363f, 53.217503f, -644.8921f), 614) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.Interact, 1032867u, new Vector3(-258.53363f, 53.217503f, -644.8921f), 614) { Fly = true }; obj90.Steps = list242; reference130 = obj90; - ref QuestSequence reference131 = ref span70[4]; + num++; + ref QuestSequence reference131 = ref span238[num]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue @@ -253580,7 +307348,9 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032868u, new Vector3(-258.59473f, 53.217506f, -644.8616f), 614) + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span243[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032868u, new Vector3(-258.59473f, 53.217506f, -644.8616f), 614) { NextQuestId = new QuestId(3835) }; @@ -253593,21 +307363,26 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - CollectionsMarshal.AsSpan(list244)[0] = "Censored"; + Span span244 = CollectionsMarshal.AsSpan(list244); + index = 0; + span244[index] = "Censored"; questRoot36.Author = list244; - num = 7; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - Span span72 = CollectionsMarshal.AsSpan(list245); - ref QuestSequence reference132 = ref span72[0]; + index = 7; + List list245 = new List(index); + CollectionsMarshal.SetCount(list245, index); + Span span245 = CollectionsMarshal.AsSpan(list245); + num = 0; + ref QuestSequence reference132 = ref span245[num]; QuestSequence obj92 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032868u, new Vector3(-258.59473f, 53.217506f, -644.8616f), 614) + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032868u, new Vector3(-258.59473f, 53.217506f, -644.8616f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce, @@ -253621,7 +307396,8 @@ public static class AssemblyQuestLoader }; obj92.Steps = list246; reference132 = obj92; - ref QuestSequence reference133 = ref span72[1]; + num++; + ref QuestSequence reference133 = ref span245[num]; QuestSequence obj93 = new QuestSequence { Sequence = 1 @@ -253629,7 +307405,9 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list247)[0]; + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + ref QuestStep reference134 = ref span247[index2]; QuestStep obj94 = new QuestStep(EInteractionType.Interact, 1032869u, new Vector3(127.27539f, -4.1787133f, 98.68005f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, @@ -253642,7 +307420,9 @@ public static class AssemblyQuestLoader num3 = 1; List list248 = new List(num3); CollectionsMarshal.SetCount(list248, num3); - CollectionsMarshal.AsSpan(list248)[0] = new DialogueChoice + Span span248 = CollectionsMarshal.AsSpan(list248); + index3 = 0; + span248[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKSA002_03835_Q1_000_031") @@ -253651,22 +307431,27 @@ public static class AssemblyQuestLoader reference134 = obj94; obj93.Steps = list247; reference133 = obj93; - span72[2] = new QuestSequence + num++; + span245[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference135 = ref span72[3]; + num++; + ref QuestSequence reference135 = ref span245[num]; QuestSequence obj95 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1032874u, new Vector3(13.168518f, -0.23751694f, 8.377136f), 915); + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + Span span249 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span249[num2] = new QuestStep(EInteractionType.Interact, 1032874u, new Vector3(13.168518f, -0.23751694f, 8.377136f), 915); obj95.Steps = list249; reference135 = obj95; - ref QuestSequence reference136 = ref span72[4]; + num++; + ref QuestSequence reference136 = ref span245[num]; QuestSequence obj96 = new QuestSequence { Sequence = 4 @@ -253674,24 +307459,30 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1032871u, new Vector3(22.323914f, 0.09971012f, -14.694458f), 915); + Span span250 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span250[index2] = new QuestStep(EInteractionType.Interact, 1032871u, new Vector3(22.323914f, 0.09971012f, -14.694458f), 915); obj96.Steps = list250; reference136 = obj96; - ref QuestSequence reference137 = ref span72[5]; + num++; + ref QuestSequence reference137 = ref span245[num]; QuestSequence obj97 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1032877u, new Vector3(29.43457f, 0f, 30.350098f), 635) + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + Span span251 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span251[num2] = new QuestStep(EInteractionType.Interact, 1032877u, new Vector3(29.43457f, 0f, 30.350098f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj97.Steps = list251; reference137 = obj97; - ref QuestSequence reference138 = ref span72[6]; + num++; + ref QuestSequence reference138 = ref span245[num]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue @@ -253699,7 +307490,9 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032877u, new Vector3(29.43457f, 0f, 30.350098f), 635) + Span span252 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span252[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032877u, new Vector3(29.43457f, 0f, 30.350098f), 635) { NextQuestId = new QuestId(3836) }; @@ -253712,21 +307505,26 @@ public static class AssemblyQuestLoader num = 1; List list253 = new List(num); CollectionsMarshal.SetCount(list253, num); - CollectionsMarshal.AsSpan(list253)[0] = "Censored"; + Span span253 = CollectionsMarshal.AsSpan(list253); + index = 0; + span253[index] = "Censored"; questRoot37.Author = list253; - num = 5; - List list254 = new List(num); - CollectionsMarshal.SetCount(list254, num); - Span span73 = CollectionsMarshal.AsSpan(list254); - ref QuestSequence reference139 = ref span73[0]; + index = 5; + List list254 = new List(index); + CollectionsMarshal.SetCount(list254, index); + Span span254 = CollectionsMarshal.AsSpan(list254); + num = 0; + ref QuestSequence reference139 = ref span254[num]; QuestSequence obj99 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032877u, new Vector3(29.43457f, 0f, 30.350098f), 635) + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span255 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span255[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032877u, new Vector3(29.43457f, 0f, 30.350098f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -253739,7 +307537,8 @@ public static class AssemblyQuestLoader }; obj99.Steps = list255; reference139 = obj99; - ref QuestSequence reference140 = ref span73[1]; + num++; + ref QuestSequence reference140 = ref span254[num]; QuestSequence obj100 = new QuestSequence { Sequence = 1 @@ -253747,7 +307546,9 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1032869u, new Vector3(127.27539f, -4.1787133f, 98.68005f), 759) + Span span256 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span256[index2] = new QuestStep(EInteractionType.Interact, 1032869u, new Vector3(127.27539f, -4.1787133f, 98.68005f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, AethernetShortcut = new AethernetShortcut @@ -253758,20 +307559,25 @@ public static class AssemblyQuestLoader }; obj100.Steps = list256; reference140 = obj100; - ref QuestSequence reference141 = ref span73[2]; + num++; + ref QuestSequence reference141 = ref span254[num]; QuestSequence obj101 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list257)[0]; + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span257 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + ref QuestStep reference142 = ref span257[num2]; QuestStep questStep41 = new QuestStep(EInteractionType.SinglePlayerDuty, 1032901u, new Vector3(9.567322f, -6.0169958E-05f, -10.269409f), 915); - num3 = 1; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - CollectionsMarshal.AsSpan(list258)[0] = new DialogueChoice + index3 = 1; + List list258 = new List(index3); + CollectionsMarshal.SetCount(list258, index3); + Span span258 = CollectionsMarshal.AsSpan(list258); + num3 = 0; + span258[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKSA003_03836_Q1_100_098") @@ -253780,11 +307586,13 @@ public static class AssemblyQuestLoader reference142 = questStep41; obj101.Steps = list257; reference141 = obj101; - span73[3] = new QuestSequence + num++; + span254[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference143 = ref span73[4]; + num++; + ref QuestSequence reference143 = ref span254[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -253792,7 +307600,9 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032872u, new Vector3(16.67804f, 0.03006095f, -17.868408f), 915); + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span259[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032872u, new Vector3(16.67804f, 0.03006095f, -17.868408f), 915); obj102.Steps = list259; reference143 = obj102; questRoot37.QuestSequence = list254; @@ -253802,24 +307612,30 @@ public static class AssemblyQuestLoader num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - CollectionsMarshal.AsSpan(list260)[0] = "liza"; + Span span260 = CollectionsMarshal.AsSpan(list260); + index = 0; + span260[index] = "liza"; questRoot38.Author = list260; - num = 4; - List list261 = new List(num); - CollectionsMarshal.SetCount(list261, num); - Span span74 = CollectionsMarshal.AsSpan(list261); - ref QuestSequence reference144 = ref span74[0]; + index = 4; + List list261 = new List(index); + CollectionsMarshal.SetCount(list261, index); + Span span261 = CollectionsMarshal.AsSpan(list261); + num = 0; + ref QuestSequence reference144 = ref span261[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032005u, new Vector3(206.22559f, -40f, 12.100342f), 886); + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032005u, new Vector3(206.22559f, -40f, 12.100342f), 886); obj103.Steps = list262; reference144 = obj103; - ref QuestSequence reference145 = ref span74[1]; + num++; + ref QuestSequence reference145 = ref span261[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 @@ -253827,7 +307643,9 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1032782u, new Vector3(6.8512573f, 27.030483f, -93.7973f), 419) + Span span263 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span263[index2] = new QuestStep(EInteractionType.Interact, 1032782u, new Vector3(6.8512573f, 27.030483f, -93.7973f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -253838,21 +307656,25 @@ public static class AssemblyQuestLoader }; obj104.Steps = list263; reference145 = obj104; - ref QuestSequence reference146 = ref span74[2]; + num++; + ref QuestSequence reference146 = ref span261[num]; QuestSequence obj105 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1032784u, new Vector3(477.0122f, 214.9805f, 751.3999f), 397) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.Interact, 1032784u, new Vector3(477.0122f, 214.9805f, 751.3999f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj105.Steps = list264; reference146 = obj105; - ref QuestSequence reference147 = ref span74[3]; + num++; + ref QuestSequence reference147 = ref span261[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -253860,8 +307682,9 @@ public static class AssemblyQuestLoader num2 = 2; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span75 = CollectionsMarshal.AsSpan(list265); - span75[0] = new QuestStep(EInteractionType.None, null, null, 886) + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span265[index2] = new QuestStep(EInteractionType.None, null, null, 886) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -253870,7 +307693,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardFirmament } }; - span75[1] = new QuestStep(EInteractionType.CompleteQuest, 1032786u, new Vector3(113.7865f, -20.000002f, -0.3204956f), 886) + index2++; + span265[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032786u, new Vector3(113.7865f, -20.000002f, -0.3204956f), 886) { AethernetShortcut = new AethernetShortcut { @@ -253888,25 +307712,33 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "liza"; + Span span266 = CollectionsMarshal.AsSpan(list266); + index = 0; + span266[index] = "liza"; questRoot39.Author = list266; - num = 1; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - ref QuestSequence reference148 = ref CollectionsMarshal.AsSpan(list267)[0]; + index = 1; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + Span span267 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference148 = ref span267[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - ref QuestStep reference149 = ref CollectionsMarshal.AsSpan(list268)[0]; + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + Span span268 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + ref QuestStep reference149 = ref span268[num2]; QuestStep questStep42 = new QuestStep(EInteractionType.AcceptQuest, 1032764u, new Vector3(-496.51334f, 7.681107f, 53.147095f), 621); num3 = 1; List list269 = new List(num3); CollectionsMarshal.SetCount(list269, num3); - CollectionsMarshal.AsSpan(list269)[0] = new DialogueChoice + Span span269 = CollectionsMarshal.AsSpan(list269); + index3 = 0; + span269[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKYB007_03842_Q1_000_000"), @@ -253923,13 +307755,16 @@ public static class AssemblyQuestLoader num = 1; List list270 = new List(num); CollectionsMarshal.SetCount(list270, num); - CollectionsMarshal.AsSpan(list270)[0] = "Cacahuetes"; + Span span270 = CollectionsMarshal.AsSpan(list270); + index = 0; + span270[index] = "Cacahuetes"; questRoot40.Author = list270; - num = 2; - List list271 = new List(num); - CollectionsMarshal.SetCount(list271, num); - Span span76 = CollectionsMarshal.AsSpan(list271); - ref QuestSequence reference150 = ref span76[0]; + index = 2; + List list271 = new List(index); + CollectionsMarshal.SetCount(list271, index); + Span span271 = CollectionsMarshal.AsSpan(list271); + num = 0; + ref QuestSequence reference150 = ref span271[num]; QuestSequence obj108 = new QuestSequence { Sequence = 0 @@ -253937,18 +307772,23 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000858u, new Vector3(-168.47485f, 4.5500045f, 163.65295f), 129); + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000858u, new Vector3(-168.47485f, 4.5500045f, 163.65295f), 129); obj108.Steps = list272; reference150 = obj108; - ref QuestSequence reference151 = ref span76[1]; + num++; + ref QuestSequence reference151 = ref span271[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005424u, new Vector3(-412.80237f, 4f, 75.05908f), 129) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span273[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005424u, new Vector3(-412.80237f, 4f, 75.05908f), 129) { AethernetShortcut = new AethernetShortcut { @@ -253969,13 +307809,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -253983,30 +307826,37 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001541u, new Vector3(-99.4126f, -11.39856f, -41.73346f), 141); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001541u, new Vector3(-99.4126f, -11.39856f, -41.73346f), 141); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation }; - span2[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 141) + num2++; + span4[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 141) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation }; - span2[2] = new QuestStep(EInteractionType.Interact, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -254014,10 +307864,13 @@ public static class AssemblyQuestLoader num2 = 7; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-12.223117f, -2.0482793f, -145.75566f), 141); - span3[1] = new QuestStep(EInteractionType.EquipRecommended, null, null, 141); - ref QuestStep reference4 = ref span3[2]; + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-12.223117f, -2.0482793f, -145.75566f), 141); + index2++; + span5[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 141); + index2++; + ref QuestStep reference4 = ref span5[index2]; QuestStep obj4 = new QuestStep(EInteractionType.PurchaseItem, 1001564u, new Vector3(-9.689575f, -2.0480804f, -145.09808f), 141) { ItemId = 2653u, @@ -254033,7 +307886,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = EExtendedClassJob.DoW; + Span span6 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span6[index3] = EExtendedClassJob.DoW; obj4.RequiredCurrentJob = list6; obj4.PurchaseMenu = new PurchaseMenu { @@ -254041,16 +307896,19 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262357u) }; reference4 = obj4; - ref QuestStep reference5 = ref span3[3]; + index2++; + ref QuestStep reference5 = ref span5[index2]; QuestStep obj5 = new QuestStep(EInteractionType.PurchaseItem, 1001564u, new Vector3(-9.689575f, -2.0480804f, -145.09808f), 141) { ItemId = 2655u, ItemCount = 1 }; - num3 = 1; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = EExtendedClassJob.DoM; + index3 = 1; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span7[num3] = EExtendedClassJob.DoM; obj5.RequiredCurrentJob = list7; obj5.PurchaseMenu = new PurchaseMenu { @@ -254058,7 +307916,8 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262357u) }; reference5 = obj5; - span3[4] = new QuestStep(EInteractionType.EquipItem, null, null, 141) + index2++; + span5[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 141) { ItemId = 2653u, SkipConditions = new SkipConditions @@ -254072,7 +307931,8 @@ public static class AssemblyQuestLoader } } }; - span3[5] = new QuestStep(EInteractionType.EquipItem, null, null, 141) + index2++; + span5[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 141) { ItemId = 2655u, SkipConditions = new SkipConditions @@ -254086,7 +307946,8 @@ public static class AssemblyQuestLoader } } }; - span3[6] = new QuestStep(EInteractionType.CompleteQuest, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); + index2++; + span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); obj3.Steps = list5; reference3 = obj3; questRoot.QuestSequence = list2; @@ -254096,24 +307957,30 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "liza"; + Span span8 = CollectionsMarshal.AsSpan(list8); + index = 0; + span8[index] = "liza"; questRoot2.Author = list8; - num = 3; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span4 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span4[0]; + index = 3; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + Span span9 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span9[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.AcceptQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[1]; + num++; + ref QuestSequence reference7 = ref span9[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -254121,8 +307988,9 @@ public static class AssemblyQuestLoader num2 = 2; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span5 = CollectionsMarshal.AsSpan(list11); - ref QuestStep reference8 = ref span5[0]; + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + ref QuestStep reference8 = ref span11[index2]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, 353u, new Vector3(112.41321f, 28.93967f, -37.277832f), 141) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny @@ -254130,40 +307998,49 @@ public static class AssemblyQuestLoader num3 = 2; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span6 = CollectionsMarshal.AsSpan(list12); - span6[0] = 352u; - span6[1] = 353u; + Span span12 = CollectionsMarshal.AsSpan(list12); + index3 = 0; + span12[index3] = 352u; + index3++; + span12[index3] = 353u; obj8.KillEnemyDataIds = list12; reference8 = obj8; - ref QuestStep reference9 = ref span5[1]; + index2++; + ref QuestStep reference9 = ref span11[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(125.61467f, 29.092033f, -14.67918f), 141) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 355u; + index3 = 1; + List list13 = new List(index3); + CollectionsMarshal.SetCount(list13, index3); + Span span13 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span13[num3] = 355u; obj9.KillEnemyDataIds = list13; reference9 = obj9; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference10 = ref span4[2]; + num++; + ref QuestSequence reference10 = ref span9[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - Span span7 = CollectionsMarshal.AsSpan(list14); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(131.78122f, 20.119337f, -115.27284f), 141); - span7[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(127.7017f, -0.15994573f, -161.89238f), 141) + index2 = 3; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(131.78122f, 20.119337f, -115.27284f), 141); + num2++; + span14[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(127.7017f, -0.15994573f, -161.89238f), 141) { DisableNavmesh = true }; - span7[2] = new QuestStep(EInteractionType.CompleteQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141); + num2++; + span14[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141); obj10.Steps = list14; reference10 = obj10; questRoot2.QuestSequence = list9; @@ -254173,13 +308050,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; + Span span15 = CollectionsMarshal.AsSpan(list15); + index = 0; + span15[index] = "liza"; questRoot3.Author = list15; - num = 3; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span8 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span8[0]; + index = 3; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + Span span16 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span16[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -254187,18 +308067,23 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span8[1]; + num++; + ref QuestSequence reference12 = ref span16[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list18)[0]; + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + ref QuestStep reference13 = ref span18[num2]; QuestStep obj13 = new QuestStep(EInteractionType.Combat, null, new Vector3(194.08282f, -8.422037f, -47.295006f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -254206,7 +308091,9 @@ public static class AssemblyQuestLoader num3 = 1; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - CollectionsMarshal.AsSpan(list19)[0] = new ComplexCombatData + Span span19 = CollectionsMarshal.AsSpan(list19); + index3 = 0; + span19[index3] = new ComplexCombatData { DataId = 43u, MinimumKillCount = 3u @@ -254215,7 +308102,8 @@ public static class AssemblyQuestLoader reference13 = obj13; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference14 = ref span8[2]; + num++; + ref QuestSequence reference14 = ref span16[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -254223,7 +308111,9 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000449u, new Vector3(201.83093f, -5.5419664f, -107.25574f), 148); + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000449u, new Vector3(201.83093f, -5.5419664f, -107.25574f), 148); obj14.Steps = list20; reference14 = obj14; questRoot3.QuestSequence = list16; @@ -254233,24 +308123,30 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "liza"; + Span span21 = CollectionsMarshal.AsSpan(list21); + index = 0; + span21[index] = "liza"; questRoot4.Author = list21; - num = 4; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span9 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference15 = ref span9[0]; + index = 4; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + Span span22 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference15 = ref span22[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000685u, new Vector3(287.92236f, -3.297f, -32.6391f), 148); + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000685u, new Vector3(287.92236f, -3.297f, -32.6391f), 148); obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference16 = ref span9[1]; + num++; + ref QuestSequence reference16 = ref span22[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -254258,42 +308154,54 @@ public static class AssemblyQuestLoader num2 = 6; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span10 = CollectionsMarshal.AsSpan(list24); - span10[0] = new QuestStep(EInteractionType.Combat, null, new Vector3(459.86548f, 17.983778f, -76.51779f), 148) + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(459.86548f, 17.983778f, -76.51779f), 148) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - span10[1] = new QuestStep(EInteractionType.Combat, null, new Vector3(486.40424f, 24.968294f, -88.684456f), 148) + index2++; + span24[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(486.40424f, 24.968294f, -88.684456f), 148) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - span10[2] = new QuestStep(EInteractionType.Combat, null, new Vector3(485.05884f, 30.642492f, -59.45244f), 148) + index2++; + span24[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(485.05884f, 30.642492f, -59.45244f), 148) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - span10[3] = new QuestStep(EInteractionType.Combat, null, new Vector3(480.88794f, 30.746826f, -49.729187f), 148) + index2++; + span24[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(480.88794f, 30.746826f, -49.729187f), 148) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - ref QuestStep reference17 = ref span10[4]; + index2++; + ref QuestStep reference17 = ref span24[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2000010u, new Vector3(480.88794f, 30.746826f, -49.729187f), 148); - num3 = 6; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - Span span11 = CollectionsMarshal.AsSpan(list25); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list25 = new List(index3); + CollectionsMarshal.SetCount(list25, index3); + Span span25 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list25; reference17 = questStep; - ref QuestStep reference18 = ref span10[5]; + index2++; + ref QuestStep reference18 = ref span24[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(480.88794f, 30.746826f, -49.729187f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -254301,34 +308209,46 @@ public static class AssemblyQuestLoader num3 = 1; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - CollectionsMarshal.AsSpan(list26)[0] = 142u; + Span span26 = CollectionsMarshal.AsSpan(list26); + index3 = 0; + span26[index3] = 142u; obj17.KillEnemyDataIds = list26; - num3 = 6; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - Span span12 = CollectionsMarshal.AsSpan(list27); - span12[0] = null; - span12[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = null; + index3 = 6; + List list27 = new List(index3); + CollectionsMarshal.SetCount(list27, index3); + Span span27 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + span27[num3] = null; + num3++; + span27[num3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num3++; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = null; obj17.CompletionQuestVariablesFlags = list27; reference18 = obj17; obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference19 = ref span9[2]; + num++; + ref QuestSequence reference19 = ref span22[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1000685u, new Vector3(287.92236f, -3.297f, -32.6391f), 148); + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.Interact, 1000685u, new Vector3(287.92236f, -3.297f, -32.6391f), 148); obj18.Steps = list28; reference19 = obj18; - ref QuestSequence reference20 = ref span9[3]; + num++; + ref QuestSequence reference20 = ref span22[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -254336,7 +308256,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000408u, new Vector3(106.85889f, -8f, -75.669556f), 148); + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000408u, new Vector3(106.85889f, -8f, -75.669556f), 148); obj19.Steps = list29; reference20 = obj19; questRoot4.QuestSequence = list22; @@ -254346,23 +308268,28 @@ public static class AssemblyQuestLoader num = 2; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - Span span13 = CollectionsMarshal.AsSpan(list30); - span13[0] = "liza"; - span13[1] = "JerryWester"; + Span span30 = CollectionsMarshal.AsSpan(list30); + index = 0; + span30[index] = "liza"; + index++; + span30[index] = "JerryWester"; questRoot5.Author = list30; - num = 3; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span14 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference21 = ref span14[0]; + index = 3; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + Span span31 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference21 = ref span31[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference22 = ref CollectionsMarshal.AsSpan(list32)[0]; + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + ref QuestStep reference22 = ref span32[num2]; QuestStep obj21 = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania @@ -254372,16 +308299,19 @@ public static class AssemblyQuestLoader num3 = 2; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - Span span15 = CollectionsMarshal.AsSpan(list33); - span15[0] = 132; - span15[1] = 133; + Span span33 = CollectionsMarshal.AsSpan(list33); + index3 = 0; + span33[index3] = 132; + index3++; + span33[index3] = 133; skipAetheryteCondition.InTerritory = list33; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj21.SkipConditions = skipConditions; reference22 = obj21; obj20.Steps = list32; reference21 = obj20; - ref QuestSequence reference23 = ref span14[1]; + num++; + ref QuestSequence reference23 = ref span31[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 @@ -254389,8 +308319,9 @@ public static class AssemblyQuestLoader num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span16 = CollectionsMarshal.AsSpan(list34); - span16[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { Comment = "Use Chocobo whistle (if not yet unlocked)", ItemId = 6001u, @@ -254402,7 +308333,8 @@ public static class AssemblyQuestLoader } } }; - span16[1] = new QuestStep(EInteractionType.Interact, 1000257u, new Vector3(150.16394f, 10.852949f, -230.45703f), 133) + index2++; + span34[index2] = new QuestStep(EInteractionType.Interact, 1000257u, new Vector3(150.16394f, 10.852949f, -230.45703f), 133) { AethernetShortcut = new AethernetShortcut { @@ -254412,16 +308344,18 @@ public static class AssemblyQuestLoader }; obj22.Steps = list34; reference23 = obj22; - ref QuestSequence reference24 = ref span14[2]; + num++; + ref QuestSequence reference24 = ref span31[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span17 = CollectionsMarshal.AsSpan(list35); - span17[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + index2 = 3; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, SkipConditions = new SkipConditions @@ -254432,7 +308366,8 @@ public static class AssemblyQuestLoader } } }; - span17[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + num2++; + span35[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { StopDistance = 5f, Aetheryte = EAetheryteLocation.EastShroudHawthorneHut, @@ -254444,7 +308379,8 @@ public static class AssemblyQuestLoader } } }; - span17[2] = new QuestStep(EInteractionType.CompleteQuest, 1006188u, new Vector3(-236.92688f, 3.5435789f, 283.4973f), 152) + num2++; + span35[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006188u, new Vector3(-236.92688f, 3.5435789f, 283.4973f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -254464,13 +308400,16 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "JerryWester"; + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "JerryWester"; questRoot6.Author = list36; - num = 3; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span18 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference25 = ref span18[0]; + index = 3; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference25 = ref span37[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 @@ -254478,7 +308417,9 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006674u, new Vector3(21.98816f, -3.7664814f, 209.97937f), 152) + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006674u, new Vector3(21.98816f, -3.7664814f, 209.97937f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -254491,33 +308432,42 @@ public static class AssemblyQuestLoader }; obj24.Steps = list38; reference25 = obj24; - ref QuestSequence reference26 = ref span18[1]; + num++; + ref QuestSequence reference26 = ref span37[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - Span span19 = CollectionsMarshal.AsSpan(list39); - ref QuestStep reference27 = ref span19[0]; + index2 = 3; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + ref QuestStep reference27 = ref span39[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Emote, 1000576u, new Vector3(21.469421f, -4.575074f, 221.75928f), 152) { Emote = EEmote.Dance }; - num3 = 6; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span20 = CollectionsMarshal.AsSpan(list40); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + Span span40 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj26.CompletionQuestVariablesFlags = list40; reference27 = obj26; - ref QuestStep reference28 = ref span19[1]; + num2++; + ref QuestStep reference28 = ref span39[num2]; QuestStep obj27 = new QuestStep(EInteractionType.Emote, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152) { Emote = EEmote.Dance @@ -254525,35 +308475,49 @@ public static class AssemblyQuestLoader num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span21 = CollectionsMarshal.AsSpan(list41); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span41 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj27.CompletionQuestVariablesFlags = list41; reference28 = obj27; - ref QuestStep reference29 = ref span19[2]; + num2++; + ref QuestStep reference29 = ref span39[num2]; QuestStep obj28 = new QuestStep(EInteractionType.Emote, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152) { Emote = EEmote.Dance }; - num3 = 6; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span22 = CollectionsMarshal.AsSpan(list42); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list42 = new List(index3); + CollectionsMarshal.SetCount(list42, index3); + Span span42 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj28.CompletionQuestVariablesFlags = list42; reference29 = obj28; obj25.Steps = list39; reference26 = obj25; - ref QuestSequence reference30 = ref span18[2]; + num++; + ref QuestSequence reference30 = ref span37[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -254561,7 +308525,9 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006674u, new Vector3(21.98816f, -3.7664814f, 209.97937f), 152); + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006674u, new Vector3(21.98816f, -3.7664814f, 209.97937f), 152); obj29.Steps = list43; reference30 = obj29; questRoot6.QuestSequence = list37; @@ -254571,21 +308537,26 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "JerryWester"; + Span span44 = CollectionsMarshal.AsSpan(list44); + index = 0; + span44[index] = "JerryWester"; questRoot7.Author = list44; - num = 4; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span23 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference31 = ref span23[0]; + index = 4; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + Span span45 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference31 = ref span45[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006675u, new Vector3(23.11737f, -3.7126513f, 209.76575f), 152) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006675u, new Vector3(23.11737f, -3.7126513f, 209.76575f), 152) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -254599,7 +308570,8 @@ public static class AssemblyQuestLoader }; obj30.Steps = list46; reference31 = obj30; - ref QuestSequence reference32 = ref span23[1]; + num++; + ref QuestSequence reference32 = ref span45[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -254607,19 +308579,23 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1000584u, new Vector3(44.785156f, -2.1720045f, 231.86072f), 152); + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.Interact, 1000584u, new Vector3(44.785156f, -2.1720045f, 231.86072f), 152); obj31.Steps = list47; reference32 = obj31; - ref QuestSequence reference33 = ref span23[2]; + num++; + ref QuestSequence reference33 = ref span45[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - Span span24 = CollectionsMarshal.AsSpan(list48); - ref QuestStep reference34 = ref span24[0]; + index2 = 5; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + ref QuestStep reference34 = ref span48[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, null, new Vector3(-34.76502f, -8.079653f, 264.55304f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -254627,7 +308603,9 @@ public static class AssemblyQuestLoader num3 = 1; List list49 = new List(num3); CollectionsMarshal.SetCount(list49, num3); - ref ComplexCombatData reference35 = ref CollectionsMarshal.AsSpan(list49)[0]; + Span span49 = CollectionsMarshal.AsSpan(list49); + index3 = 0; + ref ComplexCombatData reference35 = ref span49[index3]; ComplexCombatData obj34 = new ComplexCombatData { DataId = 179u, @@ -254636,112 +308614,161 @@ public static class AssemblyQuestLoader int num4 = 6; List list50 = new List(num4); CollectionsMarshal.SetCount(list50, num4); - Span span25 = CollectionsMarshal.AsSpan(list50); - span25[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span25[1] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = null; + Span span50 = CollectionsMarshal.AsSpan(list50); + int num5 = 0; + span50[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span50[num5] = null; + num5++; + span50[num5] = null; + num5++; + span50[num5] = null; + num5++; + span50[num5] = null; obj34.CompletionQuestVariablesFlags = list50; reference35 = obj34; obj33.ComplexCombatData = list49; - num3 = 6; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - Span span26 = CollectionsMarshal.AsSpan(list51); - span26[0] = null; - span26[1] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = null; + index3 = 6; + List list51 = new List(index3); + CollectionsMarshal.SetCount(list51, index3); + Span span51 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span51[num3] = null; + num3++; + span51[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num3++; + span51[num3] = null; + num3++; + span51[num3] = null; + num3++; + span51[num3] = null; + num3++; + span51[num3] = null; obj33.CompletionQuestVariablesFlags = list51; reference34 = obj33; - ref QuestStep reference36 = ref span24[1]; + num2++; + ref QuestStep reference36 = ref span48[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2001915u, new Vector3(-42.435425f, -8.560364f, 281.26953f), 152); num3 = 6; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - Span span27 = CollectionsMarshal.AsSpan(list52); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span52 = CollectionsMarshal.AsSpan(list52); + index3 = 0; + span52[index3] = null; + index3++; + span52[index3] = null; + index3++; + span52[index3] = null; + index3++; + span52[index3] = null; + index3++; + span52[index3] = null; + index3++; + span52[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list52; reference36 = questStep2; - ref QuestStep reference37 = ref span24[2]; + num2++; + ref QuestStep reference37 = ref span48[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2001914u, new Vector3(-32.6391f, -3.7995605f, 321.3092f), 152); - num3 = 6; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - Span span28 = CollectionsMarshal.AsSpan(list53); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list53 = new List(index3); + CollectionsMarshal.SetCount(list53, index3); + Span span53 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + span53[num3] = null; + num3++; + span53[num3] = null; + num3++; + span53[num3] = null; + num3++; + span53[num3] = null; + num3++; + span53[num3] = null; + num3++; + span53[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list53; reference37 = questStep3; - ref QuestStep reference38 = ref span24[3]; + num2++; + ref QuestStep reference38 = ref span48[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2001913u, new Vector3(29.3125f, 0.869751f, 359.24304f), 152); num3 = 6; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - Span span29 = CollectionsMarshal.AsSpan(list54); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span54 = CollectionsMarshal.AsSpan(list54); + index3 = 0; + span54[index3] = null; + index3++; + span54[index3] = null; + index3++; + span54[index3] = null; + index3++; + span54[index3] = null; + index3++; + span54[index3] = null; + index3++; + span54[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list54; reference38 = questStep4; - ref QuestStep reference39 = ref span24[4]; + num2++; + ref QuestStep reference39 = ref span48[num2]; QuestStep obj35 = new QuestStep(EInteractionType.Combat, null, new Vector3(47.758923f, 7.4985247f, 428.1574f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - ref ComplexCombatData reference40 = ref CollectionsMarshal.AsSpan(list55)[0]; + index3 = 1; + List list55 = new List(index3); + CollectionsMarshal.SetCount(list55, index3); + Span span55 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + ref ComplexCombatData reference40 = ref span55[num3]; ComplexCombatData obj36 = new ComplexCombatData { DataId = 7u, MinimumKillCount = 1u }; - num4 = 6; - List list56 = new List(num4); - CollectionsMarshal.SetCount(list56, num4); - Span span30 = CollectionsMarshal.AsSpan(list56); - span30[0] = null; - span30[1] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = null; + num5 = 6; + List list56 = new List(num5); + CollectionsMarshal.SetCount(list56, num5); + Span span56 = CollectionsMarshal.AsSpan(list56); + num4 = 0; + span56[num4] = null; + num4++; + span56[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4++; + span56[num4] = null; + num4++; + span56[num4] = null; + num4++; + span56[num4] = null; + num4++; + span56[num4] = null; obj36.CompletionQuestVariablesFlags = list56; reference40 = obj36; obj35.ComplexCombatData = list55; num3 = 6; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span31 = CollectionsMarshal.AsSpan(list57); - span31[0] = null; - span31[1] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = null; + Span span57 = CollectionsMarshal.AsSpan(list57); + index3 = 0; + span57[index3] = null; + index3++; + span57[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3++; + span57[index3] = null; + index3++; + span57[index3] = null; + index3++; + span57[index3] = null; + index3++; + span57[index3] = null; obj35.CompletionQuestVariablesFlags = list57; reference39 = obj35; obj32.Steps = list48; reference33 = obj32; - ref QuestSequence reference41 = ref span23[3]; + num++; + ref QuestSequence reference41 = ref span45[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -254749,7 +308776,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj37.Steps = list58; reference41 = obj37; questRoot7.QuestSequence = list45; @@ -254759,24 +308788,30 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "JerryWester"; + Span span59 = CollectionsMarshal.AsSpan(list59); + index = 0; + span59[index] = "JerryWester"; questRoot8.Author = list59; - num = 3; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span32 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference42 = ref span32[0]; + index = 3; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + Span span60 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference42 = ref span60[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj38.Steps = list61; reference42 = obj38; - ref QuestSequence reference43 = ref span32[1]; + num++; + ref QuestSequence reference43 = ref span60[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -254784,21 +308819,26 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.UseItem, 1002934u, new Vector3(-164.41602f, 8.398999f, -63.61493f), 153) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.UseItem, 1002934u, new Vector3(-164.41602f, 8.398999f, -63.61493f), 153) { ItemId = 2003006u }; obj39.Steps = list62; reference43 = obj39; - ref QuestSequence reference44 = ref span32[2]; + num++; + ref QuestSequence reference44 = ref span60[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj40.Steps = list63; reference44 = obj40; questRoot8.QuestSequence = list60; @@ -254808,13 +308848,16 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "JerryWester"; + Span span64 = CollectionsMarshal.AsSpan(list64); + index = 0; + span64[index] = "JerryWester"; questRoot9.Author = list64; - num = 6; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span33 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference45 = ref span33[0]; + index = 6; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + Span span65 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference45 = ref span65[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -254822,23 +308865,28 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span66[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj41.Steps = list66; reference45 = obj41; - ref QuestSequence reference46 = ref span33[1]; + num++; + ref QuestSequence reference46 = ref span65[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - Span span34 = CollectionsMarshal.AsSpan(list67); - span34[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 153) + index2 = 2; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 153) { Aetheryte = EAetheryteLocation.SouthShroudQuarrymill }; - span34[1] = new QuestStep(EInteractionType.Interact, 1003272u, new Vector3(-262.92822f, 16.2f, 51.407593f), 129) + num2++; + span67[num2] = new QuestStep(EInteractionType.Interact, 1003272u, new Vector3(-262.92822f, 16.2f, 51.407593f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -254849,7 +308897,8 @@ public static class AssemblyQuestLoader }; obj42.Steps = list67; reference46 = obj42; - ref QuestSequence reference47 = ref span33[2]; + num++; + ref QuestSequence reference47 = ref span65[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -254857,18 +308906,23 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1001208u, new Vector3(-228.16821f, 16f, 50.644653f), 129); + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.Interact, 1001208u, new Vector3(-228.16821f, 16f, 50.644653f), 129); obj43.Steps = list68; reference47 = obj43; - ref QuestSequence reference48 = ref span33[3]; + num++; + ref QuestSequence reference48 = ref span65[num]; QuestSequence obj44 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1007721u, new Vector3(-191.36346f, 0.9999907f, 212.9701f), 129) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.Interact, 1007721u, new Vector3(-191.36346f, 0.9999907f, 212.9701f), 129) { AethernetShortcut = new AethernetShortcut { @@ -254878,7 +308932,8 @@ public static class AssemblyQuestLoader }; obj44.Steps = list69; reference48 = obj44; - ref QuestSequence reference49 = ref span33[4]; + num++; + ref QuestSequence reference49 = ref span65[num]; QuestSequence obj45 = new QuestSequence { Sequence = 4 @@ -254886,8 +308941,9 @@ public static class AssemblyQuestLoader num2 = 4; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span35 = CollectionsMarshal.AsSpan(list70); - span35[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -254912,7 +308968,8 @@ public static class AssemblyQuestLoader } } }; - span35[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) + index2++; + span70[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) { Aetheryte = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -254937,7 +308994,8 @@ public static class AssemblyQuestLoader } } }; - span35[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) + index2++; + span70[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) { Aetheryte = EAetheryteLocation.WesternLaNosceaSwiftperch, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -254953,26 +309011,30 @@ public static class AssemblyQuestLoader } } }; - span35[3] = new QuestStep(EInteractionType.Interact, 1003393u, new Vector3(305.47034f, -36.325005f, 351.76624f), 138) + index2++; + span70[index2] = new QuestStep(EInteractionType.Interact, 1003393u, new Vector3(305.47034f, -36.325005f, 351.76624f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj45.Steps = list70; reference49 = obj45; - ref QuestSequence reference50 = ref span33[5]; + num++; + ref QuestSequence reference50 = ref span65[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - Span span36 = CollectionsMarshal.AsSpan(list71); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(410.07083f, 31.504957f, -12.586371f), 138) + index2 = 2; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(410.07083f, 31.504957f, -12.586371f), 138) { TargetTerritoryId = (ushort)139 }; - span36[1] = new QuestStep(EInteractionType.CompleteQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); + num2++; + span71[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); obj46.Steps = list71; reference50 = obj46; questRoot9.QuestSequence = list65; @@ -254982,13 +309044,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "JerryWester"; + Span span72 = CollectionsMarshal.AsSpan(list72); + index = 0; + span72[index] = "JerryWester"; questRoot10.Author = list72; - num = 3; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span37 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference51 = ref span37[0]; + index = 3; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + Span span73 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference51 = ref span73[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -254996,35 +309061,43 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); obj47.Steps = list74; reference51 = obj47; - ref QuestSequence reference52 = ref span37[1]; + num++; + ref QuestSequence reference52 = ref span73[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - Span span38 = CollectionsMarshal.AsSpan(list75); - span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-421.19717f, -2.5932822f, 150.81766f), 139) + index2 = 3; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-421.19717f, -2.5932822f, 150.81766f), 139) { Mount = true }; - span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-523.5316f, 6.5687256f, 49.144527f), 139) + num2++; + span75[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-523.5316f, 6.5687256f, 49.144527f), 139) { Mount = true }; - ref QuestStep reference53 = ref span38[2]; + num2++; + ref QuestStep reference53 = ref span75[num2]; QuestStep obj49 = new QuestStep(EInteractionType.Combat, null, new Vector3(-585.1562f, -1.1847447f, -2.186262f), 139) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = new ComplexCombatData + index3 = 1; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + Span span76 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span76[num3] = new ComplexCombatData { DataId = 28u, MinimumKillCount = 3u, @@ -255035,7 +309108,8 @@ public static class AssemblyQuestLoader reference53 = obj49; obj48.Steps = list75; reference52 = obj48; - ref QuestSequence reference54 = ref span37[2]; + num++; + ref QuestSequence reference54 = ref span73[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue @@ -255043,16 +309117,19 @@ public static class AssemblyQuestLoader num2 = 3; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span39 = CollectionsMarshal.AsSpan(list77); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-523.5316f, 6.5687256f, 49.144527f), 139) + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-523.5316f, 6.5687256f, 49.144527f), 139) { Mount = true }; - span39[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-421.19717f, -2.5932822f, 150.81766f), 139) + index2++; + span77[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-421.19717f, -2.5932822f, 150.81766f), 139) { Mount = true }; - span39[2] = new QuestStep(EInteractionType.CompleteQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); + index2++; + span77[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); obj50.Steps = list77; reference54 = obj50; questRoot10.QuestSequence = list73; @@ -255062,21 +309139,26 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - CollectionsMarshal.AsSpan(list78)[0] = "JerryWester"; + Span span78 = CollectionsMarshal.AsSpan(list78); + index = 0; + span78[index] = "JerryWester"; questRoot11.Author = list78; - num = 6; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - Span span40 = CollectionsMarshal.AsSpan(list79); - ref QuestSequence reference55 = ref span40[0]; + index = 6; + List list79 = new List(index); + CollectionsMarshal.SetCount(list79, index); + Span span79 = CollectionsMarshal.AsSpan(list79); + num = 0; + ref QuestSequence reference55 = ref span79[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -255089,7 +309171,8 @@ public static class AssemblyQuestLoader }; obj51.Steps = list80; reference55 = obj51; - ref QuestSequence reference56 = ref span40[1]; + num++; + ref QuestSequence reference56 = ref span79[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -255097,18 +309180,23 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1006199u, new Vector3(-141.71057f, 6.568114f, -23.178528f), 153); + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.Interact, 1006199u, new Vector3(-141.71057f, 6.568114f, -23.178528f), 153); obj52.Steps = list81; reference56 = obj52; - ref QuestSequence reference57 = ref span40[2]; + num++; + ref QuestSequence reference57 = ref span79[num]; QuestSequence obj53 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list82)[0]; + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + ref QuestStep reference58 = ref span82[num2]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, 1006201u, new Vector3(-65.4765f, 4.3282256f, -27.237366f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -255116,12 +309204,15 @@ public static class AssemblyQuestLoader num3 = 1; List list83 = new List(num3); CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = 62u; + Span span83 = CollectionsMarshal.AsSpan(list83); + index3 = 0; + span83[index3] = 62u; obj54.KillEnemyDataIds = list83; reference58 = obj54; obj53.Steps = list82; reference57 = obj53; - ref QuestSequence reference59 = ref span40[3]; + num++; + ref QuestSequence reference59 = ref span79[num]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -255129,33 +309220,41 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1006201u, new Vector3(-65.4765f, 4.3282256f, -27.237366f), 153); + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.Interact, 1006201u, new Vector3(-65.4765f, 4.3282256f, -27.237366f), 153); obj55.Steps = list84; reference59 = obj55; - ref QuestSequence reference60 = ref span40[4]; + num++; + ref QuestSequence reference60 = ref span79[num]; QuestSequence obj56 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list85)[0]; + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + ref QuestStep reference61 = ref span85[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.SinglePlayerDuty, 1006203u, new Vector3(32.700073f, 10.692124f, -12.985474f), 153); SinglePlayerDutyOptions obj57 = new SinglePlayerDutyOptions { Enabled = true }; - num3 = 1; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = "AI will kill initial adds before the boss, but not switch target whenever new enemies spawn; all NPCs need to be killed for the duty to complete"; + index3 = 1; + List list86 = new List(index3); + CollectionsMarshal.SetCount(list86, index3); + Span span86 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span86[num3] = "AI will kill initial adds before the boss, but not switch target whenever new enemies spawn; all NPCs need to be killed for the duty to complete"; obj57.Notes = list86; questStep5.SinglePlayerDutyOptions = obj57; reference61 = questStep5; obj56.Steps = list85; reference60 = obj56; - ref QuestSequence reference62 = ref span40[5]; + num++; + ref QuestSequence reference62 = ref span79[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -255163,7 +309262,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj58.Steps = list87; reference62 = obj58; questRoot11.QuestSequence = list79; @@ -255173,24 +309274,30 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "JerryWester"; + Span span88 = CollectionsMarshal.AsSpan(list88); + index = 0; + span88[index] = "JerryWester"; questRoot12.Author = list88; - num = 4; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span41 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference63 = ref span41[0]; + index = 4; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + Span span89 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference63 = ref span89[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj59.Steps = list90; reference63 = obj59; - ref QuestSequence reference64 = ref span41[1]; + num++; + ref QuestSequence reference64 = ref span89[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -255198,23 +309305,28 @@ public static class AssemblyQuestLoader num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span42 = CollectionsMarshal.AsSpan(list91); - span42[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span42[1] = new QuestStep(EInteractionType.Interact, 1007417u, new Vector3(1.2359009f, -3.0000014f, -57.66388f), 212); + index2++; + span91[index2] = new QuestStep(EInteractionType.Interact, 1007417u, new Vector3(1.2359009f, -3.0000014f, -57.66388f), 212); obj60.Steps = list91; reference64 = obj60; - ref QuestSequence reference65 = ref span41[2]; + num++; + ref QuestSequence reference65 = ref span89[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1006240u, new Vector3(14.389221f, -44.86571f, 262.65344f), 154) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.Interact, 1006240u, new Vector3(14.389221f, -44.86571f, 262.65344f), 154) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -255225,7 +309337,8 @@ public static class AssemblyQuestLoader }; obj61.Steps = list92; reference65 = obj61; - ref QuestSequence reference66 = ref span41[3]; + num++; + ref QuestSequence reference66 = ref span89[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -255233,7 +309346,9 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006240u, new Vector3(14.389221f, -44.86571f, 262.65344f), 154) + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006240u, new Vector3(14.389221f, -44.86571f, 262.65344f), 154) { Emote = EEmote.Soothe }; @@ -255246,27 +309361,33 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "JerryWester"; + Span span94 = CollectionsMarshal.AsSpan(list94); + index = 0; + span94[index] = "JerryWester"; questRoot13.Author = list94; - num = 3; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span43 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference67 = ref span43[0]; + index = 3; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + Span span95 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference67 = ref span95[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) { StopDistance = 5f }; obj63.Steps = list96; reference67 = obj63; - ref QuestSequence reference68 = ref span43[1]; + num++; + ref QuestSequence reference68 = ref span95[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 @@ -255274,14 +309395,17 @@ public static class AssemblyQuestLoader num2 = 3; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span44 = CollectionsMarshal.AsSpan(list97); - span44[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 154) + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 154) { StopDistance = 5f, Aetheryte = EAetheryteLocation.NorthShroudFallgourdFloat }; - span44[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-214.10292f, -56.837837f, 295.99493f), 154); - ref QuestStep reference69 = ref span44[2]; + index2++; + span97[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-214.10292f, -56.837837f, 295.99493f), 154); + index2++; + ref QuestStep reference69 = ref span97[index2]; QuestStep obj65 = new QuestStep(EInteractionType.Combat, null, new Vector3(-276.81464f, -56.335888f, 302.93182f), 154) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -255289,7 +309413,9 @@ public static class AssemblyQuestLoader num3 = 1; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = new ComplexCombatData + Span span98 = CollectionsMarshal.AsSpan(list98); + index3 = 0; + span98[index3] = new ComplexCombatData { DataId = 179u, MinimumKillCount = 3u @@ -255298,15 +309424,18 @@ public static class AssemblyQuestLoader reference69 = obj65; obj64.Steps = list97; reference68 = obj64; - ref QuestSequence reference70 = ref span43[2]; + num++; + ref QuestSequence reference70 = ref span95[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; @@ -255319,13 +309448,16 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "JerryWester"; + Span span100 = CollectionsMarshal.AsSpan(list100); + index = 0; + span100[index] = "JerryWester"; questRoot14.Author = list100; - num = 5; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span45 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference71 = ref span45[0]; + index = 5; + List list101 = new List(index); + CollectionsMarshal.SetCount(list101, index); + Span span101 = CollectionsMarshal.AsSpan(list101); + num = 0; + ref QuestSequence reference71 = ref span101[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -255333,7 +309465,9 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span102[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, SkipConditions = new SkipConditions @@ -255346,28 +309480,34 @@ public static class AssemblyQuestLoader }; obj67.Steps = list102; reference71 = obj67; - ref QuestSequence reference72 = ref span45[1]; + num++; + ref QuestSequence reference72 = ref span101[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - ref QuestStep reference73 = ref CollectionsMarshal.AsSpan(list103)[0]; + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + ref QuestStep reference73 = ref span103[num2]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, 2002646u, new Vector3(-68.711426f, 1.296936f, 301.74707f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = 1888u; + index3 = 1; + List list104 = new List(index3); + CollectionsMarshal.SetCount(list104, index3); + Span span104 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span104[num3] = 1888u; obj69.KillEnemyDataIds = list104; reference73 = obj69; obj68.Steps = list103; reference72 = obj68; - ref QuestSequence reference74 = ref span45[2]; + num++; + ref QuestSequence reference74 = ref span101[num]; QuestSequence obj70 = new QuestSequence { Sequence = 2 @@ -255375,21 +309515,27 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 2002574u, new Vector3(-68.711426f, 1.296936f, 301.74707f), 153); + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.Interact, 2002574u, new Vector3(-68.711426f, 1.296936f, 301.74707f), 153); obj70.Steps = list105; reference74 = obj70; - ref QuestSequence reference75 = ref span45[3]; + num++; + ref QuestSequence reference75 = ref span101[num]; QuestSequence obj71 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153); + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.Interact, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153); obj71.Steps = list106; reference75 = obj71; - ref QuestSequence reference76 = ref span45[4]; + num++; + ref QuestSequence reference76 = ref span101[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -255397,24 +309543,29 @@ public static class AssemblyQuestLoader num2 = 5; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span46 = CollectionsMarshal.AsSpan(list107); - span46[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.60515f, 17.857697f, -278.74887f), 146) + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.60515f, 17.857697f, -278.74887f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span46[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.61136f, 3.5857017f, -248.78667f), 146) + index2++; + span107[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.61136f, 3.5857017f, -248.78667f), 146) { DisableNavmesh = true }; - span46[2] = new QuestStep(EInteractionType.Interact, 1004596u, new Vector3(-471.27496f, -2.650424f, 95.628296f), 146) + index2++; + span107[index2] = new QuestStep(EInteractionType.Interact, 1004596u, new Vector3(-471.27496f, -2.650424f, 95.628296f), 146) { TargetTerritoryId = (ushort)146 }; - span46[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) + index2++; + span107[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) { Aetheryte = EAetheryteLocation.SouthernThanalanForgottenSprings }; - span46[4] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); + index2++; + span107[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); obj72.Steps = list107; reference76 = obj72; questRoot14.QuestSequence = list101; @@ -255424,21 +309575,26 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "JerryWester"; + Span span108 = CollectionsMarshal.AsSpan(list108); + index = 0; + span108[index] = "JerryWester"; questRoot15.Author = list108; - num = 2; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span47 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference77 = ref span47[0]; + index = 2; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + Span span109 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference77 = ref span109[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span110[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -255451,7 +309607,8 @@ public static class AssemblyQuestLoader }; obj73.Steps = list110; reference77 = obj73; - ref QuestSequence reference78 = ref span47[1]; + num++; + ref QuestSequence reference78 = ref span109[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue @@ -255459,7 +309616,9 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + Span span111 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span111[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; @@ -255472,21 +309631,26 @@ public static class AssemblyQuestLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - CollectionsMarshal.AsSpan(list112)[0] = "JerryWester"; + Span span112 = CollectionsMarshal.AsSpan(list112); + index = 0; + span112[index] = "JerryWester"; questRoot16.Author = list112; - num = 4; - List list113 = new List(num); - CollectionsMarshal.SetCount(list113, num); - Span span48 = CollectionsMarshal.AsSpan(list113); - ref QuestSequence reference79 = ref span48[0]; + index = 4; + List list113 = new List(index); + CollectionsMarshal.SetCount(list113, index); + Span span113 = CollectionsMarshal.AsSpan(list113); + num = 0; + ref QuestSequence reference79 = ref span113[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -255500,7 +309664,8 @@ public static class AssemblyQuestLoader }; obj75.Steps = list114; reference79 = obj75; - ref QuestSequence reference80 = ref span48[1]; + num++; + ref QuestSequence reference80 = ref span113[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 @@ -255508,21 +309673,27 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1033920u, new Vector3(-387.35028f, -56.033897f, 105.241455f), 145); + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.Interact, 1033920u, new Vector3(-387.35028f, -56.033897f, 105.241455f), 145); obj76.Steps = list115; reference80 = obj76; - ref QuestSequence reference81 = ref span48[2]; + num++; + ref QuestSequence reference81 = ref span113[num]; QuestSequence obj77 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145); + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.Interact, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145); obj77.Steps = list116; reference81 = obj77; - ref QuestSequence reference82 = ref span48[3]; + num++; + ref QuestSequence reference82 = ref span113[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -255530,7 +309701,9 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145); + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145); obj78.Steps = list117; reference82 = obj78; questRoot16.QuestSequence = list113; @@ -255540,21 +309713,26 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "JerryWester"; + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "JerryWester"; questRoot17.Author = list118; - num = 5; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span49 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference83 = ref span49[0]; + index = 5; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference83 = ref span119[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -255567,7 +309745,8 @@ public static class AssemblyQuestLoader }; obj79.Steps = list120; reference83 = obj79; - ref QuestSequence reference84 = ref span49[1]; + num++; + ref QuestSequence reference84 = ref span119[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -255575,21 +309754,27 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1006434u, new Vector3(237.14038f, 302f, -194.99512f), 155); + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.Interact, 1006434u, new Vector3(237.14038f, 302f, -194.99512f), 155); obj80.Steps = list121; reference84 = obj80; - ref QuestSequence reference85 = ref span49[2]; + num++; + ref QuestSequence reference85 = ref span119[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj81.Steps = list122; reference85 = obj81; - ref QuestSequence reference86 = ref span49[3]; + num++; + ref QuestSequence reference86 = ref span119[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -255597,18 +309782,23 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1006383u, new Vector3(138.87231f, 285.06497f, 175.21924f), 155); + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.Interact, 1006383u, new Vector3(138.87231f, 285.06497f, 175.21924f), 155); obj82.Steps = list123; reference86 = obj82; - ref QuestSequence reference87 = ref span49[4]; + num++; + ref QuestSequence reference87 = ref span119[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006435u, new Vector3(-478.26355f, 211f, -203.81476f), 155) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006435u, new Vector3(-478.26355f, 211f, -203.81476f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; @@ -255621,13 +309811,16 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "JerryWester"; + Span span125 = CollectionsMarshal.AsSpan(list125); + index = 0; + span125[index] = "JerryWester"; questRoot18.Author = list125; - num = 3; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span50 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference88 = ref span50[0]; + index = 3; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + Span span126 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference88 = ref span126[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -255635,7 +309828,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155) + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -255648,17 +309843,20 @@ public static class AssemblyQuestLoader }; obj84.Steps = list127; reference88 = obj84; - ref QuestSequence reference89 = ref span50[1]; + num++; + ref QuestSequence reference89 = ref span126[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span51 = CollectionsMarshal.AsSpan(list128); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-491.4813f, 205.20322f, -185.17868f), 155); - ref QuestStep reference90 = ref span51[1]; + index2 = 2; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-491.4813f, 205.20322f, -185.17868f), 155); + num2++; + ref QuestStep reference90 = ref span128[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, null, new Vector3(-321.0041f, 255.60681f, -159.89929f), 155) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -255666,7 +309864,9 @@ public static class AssemblyQuestLoader num3 = 1; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = new ComplexCombatData + Span span129 = CollectionsMarshal.AsSpan(list129); + index3 = 0; + span129[index3] = new ComplexCombatData { DataId = 132u, MinimumKillCount = 3u, @@ -255677,7 +309877,8 @@ public static class AssemblyQuestLoader reference90 = obj86; obj85.Steps = list128; reference89 = obj85; - ref QuestSequence reference91 = ref span50[2]; + num++; + ref QuestSequence reference91 = ref span126[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -255685,7 +309886,9 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155); + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span130[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155); obj87.Steps = list130; reference91 = obj87; questRoot18.QuestSequence = list126; @@ -255695,21 +309898,26 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "JerryWester"; + Span span131 = CollectionsMarshal.AsSpan(list131); + index = 0; + span131[index] = "JerryWester"; questRoot19.Author = list131; - num = 4; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span52 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference92 = ref span52[0]; + index = 4; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + Span span132 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference92 = ref span132[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -255722,7 +309930,8 @@ public static class AssemblyQuestLoader }; obj88.Steps = list133; reference92 = obj88; - ref QuestSequence reference93 = ref span52[1]; + num++; + ref QuestSequence reference93 = ref span132[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -255730,7 +309939,9 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1006710u, new Vector3(-123.73547f, 7.0426483f, -149.98096f), 133) + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span134[index2] = new QuestStep(EInteractionType.Interact, 1006710u, new Vector3(-123.73547f, 7.0426483f, -149.98096f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -255741,15 +309952,18 @@ public static class AssemblyQuestLoader }; obj89.Steps = list134; reference93 = obj89; - ref QuestSequence reference94 = ref span52[2]; + num++; + ref QuestSequence reference94 = ref span132[num]; QuestSequence obj90 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - ref QuestStep reference95 = ref CollectionsMarshal.AsSpan(list135)[0]; + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref QuestStep reference95 = ref span135[num2]; QuestStep obj91 = new QuestStep(EInteractionType.Combat, 2002195u, new Vector3(-528.0995f, 26.260742f, -239.61243f), 148) { StopDistance = 4f, @@ -255762,15 +309976,18 @@ public static class AssemblyQuestLoader ItemId = 2003019u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - CollectionsMarshal.AsSpan(list136)[0] = 1894u; + index3 = 1; + List list136 = new List(index3); + CollectionsMarshal.SetCount(list136, index3); + Span span136 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span136[num3] = 1894u; obj91.KillEnemyDataIds = list136; reference95 = obj91; obj90.Steps = list135; reference94 = obj90; - ref QuestSequence reference96 = ref span52[3]; + num++; + ref QuestSequence reference96 = ref span132[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -255778,9 +309995,11 @@ public static class AssemblyQuestLoader num2 = 2; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span53 = CollectionsMarshal.AsSpan(list137); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-419.66458f, 62.69038f, -234.5404f), 148); - span53[1] = new QuestStep(EInteractionType.CompleteQuest, 1006710u, new Vector3(-123.73547f, 7.0426483f, -149.98096f), 133) + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-419.66458f, 62.69038f, -234.5404f), 148); + index2++; + span137[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006710u, new Vector3(-123.73547f, 7.0426483f, -149.98096f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -255798,28 +310017,34 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "JerryWester"; + Span span138 = CollectionsMarshal.AsSpan(list138); + index = 0; + span138[index] = "JerryWester"; questRoot20.Author = list138; - num = 5; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span54 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference97 = ref span54[0]; + index = 5; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + Span span139 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference97 = ref span139[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006552u, new Vector3(54.795166f, 25.548265f, -698.05444f), 156) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006552u, new Vector3(54.795166f, 25.548265f, -698.05444f), 156) { StopDistance = 5f, IgnoreDistanceToObject = true }; obj93.Steps = list140; reference97 = obj93; - ref QuestSequence reference98 = ref span54[1]; + num++; + ref QuestSequence reference98 = ref span139[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -255827,7 +310052,9 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list141)[0]; + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + ref QuestStep reference99 = ref span141[index2]; QuestStep obj95 = new QuestStep(EInteractionType.Combat, null, new Vector3(-429.60284f, -15.201682f, -477.29346f), 156) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -255835,36 +310062,41 @@ public static class AssemblyQuestLoader num3 = 5; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - Span span55 = CollectionsMarshal.AsSpan(list142); - span55[0] = new ComplexCombatData + Span span142 = CollectionsMarshal.AsSpan(list142); + index3 = 0; + span142[index3] = new ComplexCombatData { DataId = 55u, MinimumKillCount = 3u, RewardItemId = 2003022u, RewardItemCount = 3 }; - span55[1] = new ComplexCombatData + index3++; + span142[index3] = new ComplexCombatData { DataId = 61u, MinimumKillCount = 3u, RewardItemId = 2003022u, RewardItemCount = 3 }; - span55[2] = new ComplexCombatData + index3++; + span142[index3] = new ComplexCombatData { DataId = 62u, MinimumKillCount = 0u, RewardItemId = 2003021u, RewardItemCount = 3 }; - span55[3] = new ComplexCombatData + index3++; + span142[index3] = new ComplexCombatData { DataId = 63u, MinimumKillCount = 0u, RewardItemId = 2003021u, RewardItemCount = 3 }; - span55[4] = new ComplexCombatData + index3++; + span142[index3] = new ComplexCombatData { DataId = 64u, MinimumKillCount = 0u, @@ -255875,18 +310107,22 @@ public static class AssemblyQuestLoader reference99 = obj95; obj94.Steps = list141; reference98 = obj94; - ref QuestSequence reference100 = ref span54[2]; + num++; + ref QuestSequence reference100 = ref span139[num]; QuestSequence obj96 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1006552u, new Vector3(54.795166f, 25.548265f, -698.05444f), 156); + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + Span span143 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span143[num2] = new QuestStep(EInteractionType.Interact, 1006552u, new Vector3(54.795166f, 25.548265f, -698.05444f), 156); obj96.Steps = list143; reference100 = obj96; - ref QuestSequence reference101 = ref span54[3]; + num++; + ref QuestSequence reference101 = ref span139[num]; QuestSequence obj97 = new QuestSequence { Sequence = 3 @@ -255894,18 +310130,23 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1006988u, new Vector3(41.33667f, 28.999998f, -795.4681f), 156); + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span144[index2] = new QuestStep(EInteractionType.Interact, 1006988u, new Vector3(41.33667f, 28.999998f, -795.4681f), 156); obj97.Steps = list144; reference101 = obj97; - ref QuestSequence reference102 = ref span54[4]; + num++; + ref QuestSequence reference102 = ref span139[num]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006552u, new Vector3(54.795166f, 25.548265f, -698.05444f), 156); + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span145[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006552u, new Vector3(54.795166f, 25.548265f, -698.05444f), 156); obj98.Steps = list145; reference102 = obj98; questRoot20.QuestSequence = list139; @@ -255915,13 +310156,16 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "JerryWester"; + Span span146 = CollectionsMarshal.AsSpan(list146); + index = 0; + span146[index] = "JerryWester"; questRoot21.Author = list146; - num = 4; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span56 = CollectionsMarshal.AsSpan(list147); - ref QuestSequence reference103 = ref span56[0]; + index = 4; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + Span span147 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference103 = ref span147[num]; QuestSequence obj99 = new QuestSequence { Sequence = 0 @@ -255929,7 +310173,9 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006638u, new Vector3(37.979614f, 4.051331f, 420.27917f), 147) + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span148[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006638u, new Vector3(37.979614f, 4.051331f, 420.27917f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog, SkipConditions = new SkipConditions @@ -255942,23 +310188,27 @@ public static class AssemblyQuestLoader }; obj99.Steps = list148; reference103 = obj99; - ref QuestSequence reference104 = ref span56[1]; + num++; + ref QuestSequence reference104 = ref span147[num]; QuestSequence obj100 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - Span span57 = CollectionsMarshal.AsSpan(list149); - span57[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) + index2 = 2; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) { Aetheryte = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; - span57[1] = new QuestStep(EInteractionType.Interact, 1006647u, new Vector3(-28.244446f, 46.96473f, -17.654724f), 147); + num2++; + span149[num2] = new QuestStep(EInteractionType.Interact, 1006647u, new Vector3(-28.244446f, 46.96473f, -17.654724f), 147); obj100.Steps = list149; reference104 = obj100; - ref QuestSequence reference105 = ref span56[2]; + num++; + ref QuestSequence reference105 = ref span147[num]; QuestSequence obj101 = new QuestSequence { Sequence = 2 @@ -255966,25 +310216,33 @@ public static class AssemblyQuestLoader num2 = 3; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span58 = CollectionsMarshal.AsSpan(list150); - ref QuestStep reference106 = ref span58[0]; + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + ref QuestStep reference106 = ref span150[index2]; QuestStep obj102 = new QuestStep(EInteractionType.Emote, 1006648u, new Vector3(-76.12726f, 49.98848f, -59.494934f), 147) { Emote = EEmote.Psych }; - num3 = 6; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - Span span59 = CollectionsMarshal.AsSpan(list151); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list151 = new List(index3); + CollectionsMarshal.SetCount(list151, index3); + Span span151 = CollectionsMarshal.AsSpan(list151); + num3 = 0; + span151[num3] = null; + num3++; + span151[num3] = null; + num3++; + span151[num3] = null; + num3++; + span151[num3] = null; + num3++; + span151[num3] = null; + num3++; + span151[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj102.CompletionQuestVariablesFlags = list151; reference106 = obj102; - ref QuestStep reference107 = ref span58[1]; + index2++; + ref QuestStep reference107 = ref span150[index2]; QuestStep obj103 = new QuestStep(EInteractionType.Emote, 1006650u, new Vector3(-85.19116f, 48f, -34.40918f), 147) { Emote = EEmote.Psych @@ -255992,43 +310250,59 @@ public static class AssemblyQuestLoader num3 = 6; List list152 = new List(num3); CollectionsMarshal.SetCount(list152, num3); - Span span60 = CollectionsMarshal.AsSpan(list152); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span152 = CollectionsMarshal.AsSpan(list152); + index3 = 0; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj103.CompletionQuestVariablesFlags = list152; reference107 = obj103; - ref QuestStep reference108 = ref span58[2]; + index2++; + ref QuestStep reference108 = ref span150[index2]; QuestStep obj104 = new QuestStep(EInteractionType.Emote, 1006649u, new Vector3(-34.53119f, 46.999996f, 32.73047f), 147) { Emote = EEmote.Psych }; - num3 = 6; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - Span span61 = CollectionsMarshal.AsSpan(list153); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list153 = new List(index3); + CollectionsMarshal.SetCount(list153, index3); + Span span153 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj104.CompletionQuestVariablesFlags = list153; reference108 = obj104; obj101.Steps = list150; reference105 = obj101; - ref QuestSequence reference109 = ref span56[3]; + num++; + ref QuestSequence reference109 = ref span147[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) { StopDistance = 7f, Emote = EEmote.Psych @@ -256042,13 +310316,16 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "JerryWester"; + Span span155 = CollectionsMarshal.AsSpan(list155); + index = 0; + span155[index] = "JerryWester"; questRoot22.Author = list155; - num = 4; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span62 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference110 = ref span62[0]; + index = 4; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + Span span156 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference110 = ref span156[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -256056,7 +310333,9 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -256070,15 +310349,18 @@ public static class AssemblyQuestLoader }; obj106.Steps = list157; reference110 = obj106; - ref QuestSequence reference111 = ref span62[1]; + num++; + ref QuestSequence reference111 = ref span156[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1006657u, new Vector3(-294.81964f, 88f, -225.17743f), 147) + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span158[num2] = new QuestStep(EInteractionType.Interact, 1006657u, new Vector3(-294.81964f, 88f, -225.17743f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, SkipConditions = new SkipConditions @@ -256091,7 +310373,8 @@ public static class AssemblyQuestLoader }; obj107.Steps = list158; reference111 = obj107; - ref QuestSequence reference112 = ref span62[2]; + num++; + ref QuestSequence reference112 = ref span156[num]; QuestSequence obj108 = new QuestSequence { Sequence = 2 @@ -256099,8 +310382,9 @@ public static class AssemblyQuestLoader num2 = 12; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span63 = CollectionsMarshal.AsSpan(list159); - span63[0] = new QuestStep(EInteractionType.UseItem, null, null, 147) + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 31337u, SkipConditions = new SkipConditions @@ -256114,7 +310398,8 @@ public static class AssemblyQuestLoader } } }; - span63[1] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20642u, SkipConditions = new SkipConditions @@ -256128,7 +310413,8 @@ public static class AssemblyQuestLoader } } }; - span63[2] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20643u, SkipConditions = new SkipConditions @@ -256142,7 +310428,8 @@ public static class AssemblyQuestLoader } } }; - span63[3] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20644u, SkipConditions = new SkipConditions @@ -256156,7 +310443,8 @@ public static class AssemblyQuestLoader } } }; - span63[4] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20645u, SkipConditions = new SkipConditions @@ -256170,7 +310458,8 @@ public static class AssemblyQuestLoader } } }; - span63[5] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20646u, SkipConditions = new SkipConditions @@ -256184,7 +310473,8 @@ public static class AssemblyQuestLoader } } }; - span63[6] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20647u, SkipConditions = new SkipConditions @@ -256198,7 +310488,8 @@ public static class AssemblyQuestLoader } } }; - span63[7] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20648u, SkipConditions = new SkipConditions @@ -256212,7 +310503,8 @@ public static class AssemblyQuestLoader } } }; - span63[8] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20649u, SkipConditions = new SkipConditions @@ -256226,7 +310518,8 @@ public static class AssemblyQuestLoader } } }; - span63[9] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20650u, SkipConditions = new SkipConditions @@ -256240,7 +310533,8 @@ public static class AssemblyQuestLoader } } }; - span63[10] = new QuestStep(EInteractionType.UseItem, null, null, 147) + index2++; + span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20651u, SkipConditions = new SkipConditions @@ -256254,7 +310548,8 @@ public static class AssemblyQuestLoader } } }; - span63[11] = new QuestStep(EInteractionType.Duty, null, null, 147) + index2++; + span159[index2] = new QuestStep(EInteractionType.Duty, null, null, 147) { DutyOptions = new DutyOptions { @@ -256264,15 +310559,18 @@ public static class AssemblyQuestLoader }; obj108.Steps = list159; reference112 = obj108; - ref QuestSequence reference113 = ref span62[3]; + num++; + ref QuestSequence reference113 = ref span156[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006657u, new Vector3(-294.81964f, 88f, -225.17743f), 147) + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006657u, new Vector3(-294.81964f, 88f, -225.17743f), 147) { StopDistance = 7f }; @@ -256285,13 +310583,16 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "JerryWester"; + Span span161 = CollectionsMarshal.AsSpan(list161); + index = 0; + span161[index] = "JerryWester"; questRoot23.Author = list161; - num = 8; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span64 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference114 = ref span64[0]; + index = 8; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + Span span162 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference114 = ref span162[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -256299,26 +310600,32 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span163[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj110.Steps = list163; reference114 = obj110; - ref QuestSequence reference115 = ref span64[1]; + num++; + ref QuestSequence reference115 = ref span162[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - Span span65 = CollectionsMarshal.AsSpan(list164); - span65[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.50043f, 2.099999f, 0f), 212) + index2 = 2; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.50043f, 2.099999f, 0f), 212) { TargetTerritoryId = (ushort)212 }; - span65[1] = new QuestStep(EInteractionType.Interact, 1007722u, new Vector3(2.4871826f, 5.1752613E-07f, 4.5929565f), 212); + num2++; + span164[num2] = new QuestStep(EInteractionType.Interact, 1007722u, new Vector3(2.4871826f, 5.1752613E-07f, 4.5929565f), 212); obj111.Steps = list164; reference115 = obj111; - ref QuestSequence reference116 = ref span64[2]; + num++; + ref QuestSequence reference116 = ref span162[num]; QuestSequence obj112 = new QuestSequence { Sequence = 2 @@ -256326,44 +310633,53 @@ public static class AssemblyQuestLoader num2 = 3; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span66 = CollectionsMarshal.AsSpan(list165); - span66[0] = new QuestStep(EInteractionType.AcceptQuest, 1007534u, new Vector3(1.4800415f, -3.0000014f, -48.722107f), 212) + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007534u, new Vector3(1.4800415f, -3.0000014f, -48.722107f), 212) { PickUpQuestId = new QuestId(1048) }; - span66[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(618.9289f, 23.936241f, 458.50406f), 137) + index2++; + span165[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(618.9289f, 23.936241f, 458.50406f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - span66[2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137); + index2++; + span165[index2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137); obj112.Steps = list165; reference116 = obj112; - ref QuestSequence reference117 = ref span64[3]; + num++; + ref QuestSequence reference117 = ref span162[num]; QuestSequence obj113 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - Span span67 = CollectionsMarshal.AsSpan(list166); - span67[0] = new QuestStep(EInteractionType.Interact, 1006306u, new Vector3(-25.864075f, 71.787285f, -36.78955f), 137) + index2 = 4; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.Interact, 1006306u, new Vector3(-25.864075f, 71.787285f, -36.78955f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - span67[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.752865f, 72.71639f, -22.499773f), 137) + num2++; + span166[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.752865f, 72.71639f, -22.499773f), 137) { Mount = true }; - span67[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-117.34223f, 86.050835f, -4.656612f), 137) + num2++; + span166[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-117.34223f, 86.050835f, -4.656612f), 137) { Fly = true }; - span67[3] = new QuestStep(EInteractionType.Interact, 1006309u, new Vector3(-116.56372f, 86.051636f, -5.874817f), 137); + num2++; + span166[num2] = new QuestStep(EInteractionType.Interact, 1006309u, new Vector3(-116.56372f, 86.051636f, -5.874817f), 137); obj113.Steps = list166; reference117 = obj113; - ref QuestSequence reference118 = ref span64[4]; + num++; + ref QuestSequence reference118 = ref span162[num]; QuestSequence obj114 = new QuestSequence { Sequence = 4 @@ -256371,28 +310687,33 @@ public static class AssemblyQuestLoader num2 = 2; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span68 = CollectionsMarshal.AsSpan(list167); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.1786175f, 71.18964f, -17.323349f), 137) + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.1786175f, 71.18964f, -17.323349f), 137) { Fly = true }; - span68[1] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); + index2++; + span167[index2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); obj114.Steps = list167; reference118 = obj114; - ref QuestSequence reference119 = ref span64[5]; + num++; + ref QuestSequence reference119 = ref span162[num]; QuestSequence obj115 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - Span span69 = CollectionsMarshal.AsSpan(list168); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.898853f, 52.634007f, 489.2221f), 137) + index2 = 2; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.898853f, 52.634007f, 489.2221f), 137) { Fly = true }; - ref QuestStep reference120 = ref span69[1]; + num2++; + ref QuestStep reference120 = ref span168[num2]; QuestStep obj116 = new QuestStep(EInteractionType.Combat, 1007738u, new Vector3(29.129395f, 54.01148f, 484.9469f), 137) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -256400,12 +310721,15 @@ public static class AssemblyQuestLoader num3 = 1; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - CollectionsMarshal.AsSpan(list169)[0] = 320u; + Span span169 = CollectionsMarshal.AsSpan(list169); + index3 = 0; + span169[index3] = 320u; obj116.KillEnemyDataIds = list169; reference120 = obj116; obj115.Steps = list168; reference119 = obj115; - ref QuestSequence reference121 = ref span64[6]; + num++; + ref QuestSequence reference121 = ref span162[num]; QuestSequence obj117 = new QuestSequence { Sequence = 6 @@ -256413,18 +310737,23 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1007738u, new Vector3(29.129395f, 54.01148f, 484.9469f), 137); + Span span170 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span170[index2] = new QuestStep(EInteractionType.Interact, 1007738u, new Vector3(29.129395f, 54.01148f, 484.9469f), 137); obj117.Steps = list170; reference121 = obj117; - ref QuestSequence reference122 = ref span64[7]; + num++; + ref QuestSequence reference122 = ref span162[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007752u, new Vector3(-35.111023f, 70.34483f, 4.043579f), 137) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + Span span171 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span171[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007752u, new Vector3(-35.111023f, 70.34483f, 4.043579f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; @@ -256437,13 +310766,16 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - CollectionsMarshal.AsSpan(list172)[0] = "JerryWester"; + Span span172 = CollectionsMarshal.AsSpan(list172); + index = 0; + span172[index] = "JerryWester"; questRoot24.Author = list172; - num = 2; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - Span span70 = CollectionsMarshal.AsSpan(list173); - ref QuestSequence reference123 = ref span70[0]; + index = 2; + List list173 = new List(index); + CollectionsMarshal.SetCount(list173, index); + Span span173 = CollectionsMarshal.AsSpan(list173); + num = 0; + ref QuestSequence reference123 = ref span173[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -256451,7 +310783,9 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007739u, new Vector3(-34.53119f, 70.347595f, 2.7618408f), 137) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007739u, new Vector3(-34.53119f, 70.347595f, 2.7618408f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -256464,20 +310798,23 @@ public static class AssemblyQuestLoader }; obj119.Steps = list174; reference123 = obj119; - ref QuestSequence reference124 = ref span70[1]; + num++; + ref QuestSequence reference124 = ref span173[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - Span span71 = CollectionsMarshal.AsSpan(list175); - span71[0] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + index2 = 2; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span71[1] = new QuestStep(EInteractionType.CompleteQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + num2++; + span175[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj120.Steps = list175; reference124 = obj120; questRoot24.QuestSequence = list173; @@ -256487,13 +310824,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "JerryWester"; + Span span176 = CollectionsMarshal.AsSpan(list176); + index = 0; + span176[index] = "JerryWester"; questRoot25.Author = list176; - num = 3; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span72 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference125 = ref span72[0]; + index = 3; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + Span span177 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference125 = ref span177[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -256501,21 +310841,27 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj121.Steps = list178; reference125 = obj121; - ref QuestSequence reference126 = ref span72[1]; + num++; + ref QuestSequence reference126 = ref span177[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.Interact, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj122.Steps = list179; reference126 = obj122; - ref QuestSequence reference127 = ref span72[2]; + num++; + ref QuestSequence reference127 = ref span177[num]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue @@ -256523,7 +310869,9 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span180[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -256536,21 +310884,26 @@ public static class AssemblyQuestLoader num = 1; List list181 = new List(num); CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "JerryWester"; + Span span181 = CollectionsMarshal.AsSpan(list181); + index = 0; + span181[index] = "JerryWester"; questRoot26.Author = list181; - num = 4; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - Span span73 = CollectionsMarshal.AsSpan(list182); - ref QuestSequence reference128 = ref span73[0]; + index = 4; + List list182 = new List(index); + CollectionsMarshal.SetCount(list182, index); + Span span182 = CollectionsMarshal.AsSpan(list182); + num = 0; + ref QuestSequence reference128 = ref span182[num]; QuestSequence obj124 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span183[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -256563,7 +310916,8 @@ public static class AssemblyQuestLoader }; obj124.Steps = list183; reference128 = obj124; - ref QuestSequence reference129 = ref span73[1]; + num++; + ref QuestSequence reference129 = ref span182[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 @@ -256571,36 +310925,43 @@ public static class AssemblyQuestLoader num2 = 2; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span74 = CollectionsMarshal.AsSpan(list184); - span74[0] = new QuestStep(EInteractionType.UseItem, null, null, 156) + Span span184 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span184[index2] = new QuestStep(EInteractionType.UseItem, null, null, 156) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span74[1] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); + index2++; + span184[index2] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); obj125.Steps = list184; reference129 = obj125; - ref QuestSequence reference130 = ref span73[2]; + num++; + ref QuestSequence reference130 = ref span182[num]; QuestSequence obj126 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - Span span75 = CollectionsMarshal.AsSpan(list185); - span75[0] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) + index2 = 3; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span185[num2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; - span75[1] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + num2++; + span185[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span75[2] = new QuestStep(EInteractionType.Interact, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + num2++; + span185[num2] = new QuestStep(EInteractionType.Interact, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj126.Steps = list185; reference130 = obj126; - ref QuestSequence reference131 = ref span73[3]; + num++; + ref QuestSequence reference131 = ref span182[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -256608,7 +310969,9 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -256621,24 +310984,30 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - CollectionsMarshal.AsSpan(list187)[0] = "JerryWester"; + Span span187 = CollectionsMarshal.AsSpan(list187); + index = 0; + span187[index] = "JerryWester"; questRoot27.Author = list187; - num = 4; - List list188 = new List(num); - CollectionsMarshal.SetCount(list188, num); - Span span76 = CollectionsMarshal.AsSpan(list188); - ref QuestSequence reference132 = ref span76[0]; + index = 4; + List list188 = new List(index); + CollectionsMarshal.SetCount(list188, index); + Span span188 = CollectionsMarshal.AsSpan(list188); + num = 0; + ref QuestSequence reference132 = ref span188[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj128.Steps = list189; reference132 = obj128; - ref QuestSequence reference133 = ref span76[1]; + num++; + ref QuestSequence reference133 = ref span188[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -256646,29 +311015,35 @@ public static class AssemblyQuestLoader num2 = 2; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span77 = CollectionsMarshal.AsSpan(list190); - span77[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - span77[1] = new QuestStep(EInteractionType.Interact, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + index2++; + span190[index2] = new QuestStep(EInteractionType.Interact, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj129.Steps = list190; reference133 = obj129; - ref QuestSequence reference134 = ref span76[2]; + num++; + ref QuestSequence reference134 = ref span188[num]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1010954u, new Vector3(24.2771f, 20.04223f, -679.9573f), 156) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.Interact, 1010954u, new Vector3(24.2771f, 20.04223f, -679.9573f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj130.Steps = list191; reference134 = obj130; - ref QuestSequence reference135 = ref span76[3]; + num++; + ref QuestSequence reference135 = ref span188[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -256676,16 +311051,19 @@ public static class AssemblyQuestLoader num2 = 3; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span78 = CollectionsMarshal.AsSpan(list192); - span78[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - span78[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span192[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span78[2] = new QuestStep(EInteractionType.CompleteQuest, 1007724u, new Vector3(1.0223389f, -1.9957249f, -45.79236f), 351); + index2++; + span192[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007724u, new Vector3(1.0223389f, -1.9957249f, -45.79236f), 351); obj131.Steps = list192; reference135 = obj131; questRoot27.QuestSequence = list188; @@ -256695,24 +311073,30 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "JerryWester"; + Span span193 = CollectionsMarshal.AsSpan(list193); + index = 0; + span193[index] = "JerryWester"; questRoot28.Author = list193; - num = 4; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span79 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference136 = ref span79[0]; + index = 4; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + Span span194 = CollectionsMarshal.AsSpan(list194); + num = 0; + ref QuestSequence reference136 = ref span194[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007724u, new Vector3(1.0223389f, -1.9957249f, -45.79236f), 351); + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.AcceptQuest, 1007724u, new Vector3(1.0223389f, -1.9957249f, -45.79236f), 351); obj132.Steps = list195; reference136 = obj132; - ref QuestSequence reference137 = ref span79[1]; + num++; + ref QuestSequence reference137 = ref span194[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -256720,24 +311104,30 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1008595u, new Vector3(79.60632f, 46.311092f, -251.69757f), 140) + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span196[index2] = new QuestStep(EInteractionType.Interact, 1008595u, new Vector3(79.60632f, 46.311092f, -251.69757f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; obj133.Steps = list196; reference137 = obj133; - ref QuestSequence reference138 = ref span79[2]; + num++; + ref QuestSequence reference138 = ref span194[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span197[num2] = new QuestStep(EInteractionType.Interact, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); obj134.Steps = list197; reference138 = obj134; - ref QuestSequence reference139 = ref span79[3]; + num++; + ref QuestSequence reference139 = ref span194[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue @@ -256745,7 +311135,9 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008597u, new Vector3(57.66382f, 44.999996f, -220.93542f), 140); + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span198[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008597u, new Vector3(57.66382f, 44.999996f, -220.93542f), 140); obj135.Steps = list198; reference139 = obj135; questRoot28.QuestSequence = list194; @@ -256755,24 +311147,30 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "JerryWester"; + Span span199 = CollectionsMarshal.AsSpan(list199); + index = 0; + span199[index] = "JerryWester"; questRoot29.Author = list199; - num = 3; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span80 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference140 = ref span80[0]; + index = 3; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + Span span200 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference140 = ref span200[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008616u, new Vector3(-18.265076f, 36.013893f, 57.938477f), 131); + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span201[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008616u, new Vector3(-18.265076f, 36.013893f, 57.938477f), 131); obj136.Steps = list201; reference140 = obj136; - ref QuestSequence reference141 = ref span80[1]; + num++; + ref QuestSequence reference141 = ref span200[num]; QuestSequence obj137 = new QuestSequence { Sequence = 1 @@ -256780,7 +311178,9 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) + Span span202 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span202[index2] = new QuestStep(EInteractionType.Interact, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) { AethernetShortcut = new AethernetShortcut { @@ -256790,15 +311190,18 @@ public static class AssemblyQuestLoader }; obj137.Steps = list202; reference141 = obj137; - ref QuestSequence reference142 = ref span80[2]; + num++; + ref QuestSequence reference142 = ref span200[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) { AethernetShortcut = new AethernetShortcut { @@ -256815,13 +311218,16 @@ public static class AssemblyQuestLoader num = 1; List list204 = new List(num); CollectionsMarshal.SetCount(list204, num); - CollectionsMarshal.AsSpan(list204)[0] = "JerryWester"; + Span span204 = CollectionsMarshal.AsSpan(list204); + index = 0; + span204[index] = "JerryWester"; questRoot30.Author = list204; - num = 5; - List list205 = new List(num); - CollectionsMarshal.SetCount(list205, num); - Span span81 = CollectionsMarshal.AsSpan(list205); - ref QuestSequence reference143 = ref span81[0]; + index = 5; + List list205 = new List(index); + CollectionsMarshal.SetCount(list205, index); + Span span205 = CollectionsMarshal.AsSpan(list205); + num = 0; + ref QuestSequence reference143 = ref span205[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -256829,7 +311235,9 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) + Span span206 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span206[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -256842,24 +311250,28 @@ public static class AssemblyQuestLoader }; obj139.Steps = list206; reference143 = obj139; - ref QuestSequence reference144 = ref span81[1]; + num++; + ref QuestSequence reference144 = ref span205[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - Span span82 = CollectionsMarshal.AsSpan(list207); - span82[0] = new QuestStep(EInteractionType.UseItem, null, null, 130) + index2 = 2; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + Span span207 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + span207[num2] = new QuestStep(EInteractionType.UseItem, null, null, 130) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - span82[1] = new QuestStep(EInteractionType.Interact, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140); + num2++; + span207[num2] = new QuestStep(EInteractionType.Interact, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140); obj140.Steps = list207; reference144 = obj140; - ref QuestSequence reference145 = ref span81[2]; + num++; + ref QuestSequence reference145 = ref span205[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 @@ -256867,67 +311279,89 @@ public static class AssemblyQuestLoader num2 = 2; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span83 = CollectionsMarshal.AsSpan(list208); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-432.60025f, 25.983873f, -369.20984f), 140) + Span span208 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span208[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-432.60025f, 25.983873f, -369.20984f), 140) { Fly = true }; - span83[1] = new QuestStep(EInteractionType.Interact, 1008628u, new Vector3(-431.8761f, 25.983873f, -368.36804f), 140); + index2++; + span208[index2] = new QuestStep(EInteractionType.Interact, 1008628u, new Vector3(-431.8761f, 25.983873f, -368.36804f), 140); obj141.Steps = list208; reference145 = obj141; - ref QuestSequence reference146 = ref span81[3]; + num++; + ref QuestSequence reference146 = ref span205[num]; QuestSequence obj142 = new QuestSequence { Sequence = 3 }; - num2 = 6; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span84 = CollectionsMarshal.AsSpan(list209); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-411.72363f, 23.113977f, -393.02393f), 140) + index2 = 6; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + Span span209 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span209[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-411.72363f, 23.113977f, -393.02393f), 140) { Fly = true }; - ref QuestStep reference147 = ref span84[1]; + num2++; + ref QuestStep reference147 = ref span209[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1008636u, new Vector3(-415.91516f, 23.113977f, -394.6136f), 140); - num3 = 6; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - Span span85 = CollectionsMarshal.AsSpan(list210); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list210 = new List(index3); + CollectionsMarshal.SetCount(list210, index3); + Span span210 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span210[num3] = null; + num3++; + span210[num3] = null; + num3++; + span210[num3] = null; + num3++; + span210[num3] = null; + num3++; + span210[num3] = null; + num3++; + span210[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list210; reference147 = questStep6; - span84[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-412.0704f, 23.008799f, -338.06842f), 140) + num2++; + span209[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-412.0704f, 23.008799f, -338.06842f), 140) { Fly = true }; - ref QuestStep reference148 = ref span84[3]; + num2++; + ref QuestStep reference148 = ref span209[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1008637u, new Vector3(-406.05786f, 23.008799f, -339.9558f), 140); num3 = 6; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - Span span86 = CollectionsMarshal.AsSpan(list211); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span211 = CollectionsMarshal.AsSpan(list211); + index3 = 0; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list211; reference148 = questStep7; - span84[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-443.07297f, 30.999876f, -328.30157f), 140) + num2++; + span209[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-443.07297f, 30.999876f, -328.30157f), 140) { Fly = true }; - span84[5] = new QuestStep(EInteractionType.Interact, 1008635u, new Vector3(-444.29694f, 30.999878f, -329.64075f), 140); + num2++; + span209[num2] = new QuestStep(EInteractionType.Interact, 1008635u, new Vector3(-444.29694f, 30.999878f, -329.64075f), 140); obj142.Steps = list209; reference146 = obj142; - ref QuestSequence reference149 = ref span81[4]; + num++; + ref QuestSequence reference149 = ref span205[num]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -256935,12 +311369,14 @@ public static class AssemblyQuestLoader num2 = 2; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span87 = CollectionsMarshal.AsSpan(list212); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-496.36285f, 19.00904f, -354.65195f), 140) + Span span212 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span212[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-496.36285f, 19.00904f, -354.65195f), 140) { Fly = true }; - span87[1] = new QuestStep(EInteractionType.CompleteQuest, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140); + index2++; + span212[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140); obj143.Steps = list212; reference149 = obj143; questRoot30.QuestSequence = list205; @@ -256950,21 +311386,26 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - CollectionsMarshal.AsSpan(list213)[0] = "JerryWester"; + Span span213 = CollectionsMarshal.AsSpan(list213); + index = 0; + span213[index] = "JerryWester"; questRoot31.Author = list213; - num = 5; - List list214 = new List(num); - CollectionsMarshal.SetCount(list214, num); - Span span88 = CollectionsMarshal.AsSpan(list214); - ref QuestSequence reference150 = ref span88[0]; + index = 5; + List list214 = new List(index); + CollectionsMarshal.SetCount(list214, index); + Span span214 = CollectionsMarshal.AsSpan(list214); + num = 0; + ref QuestSequence reference150 = ref span214[num]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -256977,7 +311418,8 @@ public static class AssemblyQuestLoader }; obj144.Steps = list215; reference150 = obj144; - ref QuestSequence reference151 = ref span88[1]; + num++; + ref QuestSequence reference151 = ref span214[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -256985,24 +311427,30 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span216[index2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj145.Steps = list216; reference151 = obj145; - ref QuestSequence reference152 = ref span88[2]; + num++; + ref QuestSequence reference152 = ref span214[num]; QuestSequence obj146 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Interact, 1008659u, new Vector3(26.474365f, 20.174328f, -679.74365f), 156); + index2 = 1; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + Span span217 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span217[num2] = new QuestStep(EInteractionType.Interact, 1008659u, new Vector3(26.474365f, 20.174328f, -679.74365f), 156); obj146.Steps = list217; reference152 = obj146; - ref QuestSequence reference153 = ref span88[3]; + num++; + ref QuestSequence reference153 = ref span214[num]; QuestSequence obj147 = new QuestSequence { Sequence = 3 @@ -257010,27 +311458,33 @@ public static class AssemblyQuestLoader num2 = 3; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - Span span89 = CollectionsMarshal.AsSpan(list218); - span89[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span218 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + span218[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - span89[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span218[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span89[2] = new QuestStep(EInteractionType.Interact, 1008547u, new Vector3(0.77819824f, -1.9957249f, -45.487183f), 351); + index2++; + span218[index2] = new QuestStep(EInteractionType.Interact, 1008547u, new Vector3(0.77819824f, -1.9957249f, -45.487183f), 351); obj147.Steps = list218; reference153 = obj147; - ref QuestSequence reference154 = ref span88[4]; + num++; + ref QuestSequence reference154 = ref span214[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008554u, new Vector3(1.6326294f, -1.9957249f, -41.916565f), 351); + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + Span span219 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span219[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008554u, new Vector3(1.6326294f, -1.9957249f, -41.916565f), 351); obj148.Steps = list219; reference154 = obj148; questRoot31.QuestSequence = list214; @@ -257040,13 +311494,16 @@ public static class AssemblyQuestLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - CollectionsMarshal.AsSpan(list220)[0] = "JerryWester"; + Span span220 = CollectionsMarshal.AsSpan(list220); + index = 0; + span220[index] = "JerryWester"; questRoot32.Author = list220; - num = 4; - List list221 = new List(num); - CollectionsMarshal.SetCount(list221, num); - Span span90 = CollectionsMarshal.AsSpan(list221); - ref QuestSequence reference155 = ref span90[0]; + index = 4; + List list221 = new List(index); + CollectionsMarshal.SetCount(list221, index); + Span span221 = CollectionsMarshal.AsSpan(list221); + num = 0; + ref QuestSequence reference155 = ref span221[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -257054,7 +311511,9 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141) + Span span222 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span222[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -257067,34 +311526,43 @@ public static class AssemblyQuestLoader }; obj149.Steps = list222; reference155 = obj149; - ref QuestSequence reference156 = ref span90[1]; + num++; + ref QuestSequence reference156 = ref span221[num]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - ref QuestStep reference157 = ref CollectionsMarshal.AsSpan(list223)[0]; + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + Span span223 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + ref QuestStep reference157 = ref span223[num2]; QuestStep obj151 = new QuestStep(EInteractionType.Combat, 1009050u, new Vector3(57.419678f, -5.5366235f, -1.2664795f), 141) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 5; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - Span span91 = CollectionsMarshal.AsSpan(list224); - span91[0] = 2852u; - span91[1] = 3114u; - span91[2] = 3115u; - span91[3] = 3116u; - span91[4] = 3117u; + index3 = 5; + List list224 = new List(index3); + CollectionsMarshal.SetCount(list224, index3); + Span span224 = CollectionsMarshal.AsSpan(list224); + num3 = 0; + span224[num3] = 2852u; + num3++; + span224[num3] = 3114u; + num3++; + span224[num3] = 3115u; + num3++; + span224[num3] = 3116u; + num3++; + span224[num3] = 3117u; obj151.KillEnemyDataIds = list224; reference157 = obj151; obj150.Steps = list223; reference156 = obj150; - ref QuestSequence reference158 = ref span90[2]; + num++; + ref QuestSequence reference158 = ref span221[num]; QuestSequence obj152 = new QuestSequence { Sequence = 2 @@ -257102,23 +311570,28 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1009050u, new Vector3(57.419678f, -5.5366235f, -1.2664795f), 141); + Span span225 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span225[index2] = new QuestStep(EInteractionType.Interact, 1009050u, new Vector3(57.419678f, -5.5366235f, -1.2664795f), 141); obj152.Steps = list225; reference158 = obj152; - ref QuestSequence reference159 = ref span90[3]; + num++; + ref QuestSequence reference159 = ref span221[num]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - Span span92 = CollectionsMarshal.AsSpan(list226); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(187.86679f, -1f, -301.48148f), 141) + index2 = 2; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + Span span226 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span226[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(187.86679f, -1f, -301.48148f), 141) { Fly = true }; - span92[1] = new QuestStep(EInteractionType.CompleteQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141); + num2++; + span226[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141); obj153.Steps = list226; reference159 = obj153; questRoot32.QuestSequence = list221; @@ -257128,13 +311601,16 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - CollectionsMarshal.AsSpan(list227)[0] = "JerryWester"; + Span span227 = CollectionsMarshal.AsSpan(list227); + index = 0; + span227[index] = "JerryWester"; questRoot33.Author = list227; - num = 5; - List list228 = new List(num); - CollectionsMarshal.SetCount(list228, num); - Span span93 = CollectionsMarshal.AsSpan(list228); - ref QuestSequence reference160 = ref span93[0]; + index = 5; + List list228 = new List(index); + CollectionsMarshal.SetCount(list228, index); + Span span228 = CollectionsMarshal.AsSpan(list228); + num = 0; + ref QuestSequence reference160 = ref span228[num]; QuestSequence obj154 = new QuestSequence { Sequence = 0 @@ -257142,7 +311618,9 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141) + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span229[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -257155,23 +311633,27 @@ public static class AssemblyQuestLoader }; obj154.Steps = list229; reference160 = obj154; - ref QuestSequence reference161 = ref span93[1]; + num++; + ref QuestSequence reference161 = ref span228[num]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - Span span94 = CollectionsMarshal.AsSpan(list230); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-141.48044f, 4.2354183f, 232.0292f), 141) + index2 = 2; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span230[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-141.48044f, 4.2354183f, 232.0292f), 141) { Fly = true }; - span94[1] = new QuestStep(EInteractionType.Interact, 1009055u, new Vector3(-142.74823f, 4.2354183f, 232.77625f), 141); + num2++; + span230[num2] = new QuestStep(EInteractionType.Interact, 1009055u, new Vector3(-142.74823f, 4.2354183f, 232.77625f), 141); obj155.Steps = list230; reference161 = obj155; - ref QuestSequence reference162 = ref span93[2]; + num++; + ref QuestSequence reference162 = ref span228[num]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -257179,26 +311661,32 @@ public static class AssemblyQuestLoader num2 = 2; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span95 = CollectionsMarshal.AsSpan(list231); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(57.739433f, -1.247997f, 343.4356f), 141) + Span span231 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span231[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(57.739433f, -1.247997f, 343.4356f), 141) { Fly = true }; - span95[1] = new QuestStep(EInteractionType.Interact, 1009056u, new Vector3(58.27417f, -1.2500068f, 342.2445f), 141); + index2++; + span231[index2] = new QuestStep(EInteractionType.Interact, 1009056u, new Vector3(58.27417f, -1.2500068f, 342.2445f), 141); obj156.Steps = list231; reference162 = obj156; - ref QuestSequence reference163 = ref span93[3]; + num++; + ref QuestSequence reference163 = ref span228[num]; QuestSequence obj157 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1009175u, new Vector3(59.433838f, -1.2516545f, 341.26794f), 141); + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span232[num2] = new QuestStep(EInteractionType.Interact, 1009175u, new Vector3(59.433838f, -1.2516545f, 341.26794f), 141); obj157.Steps = list232; reference163 = obj157; - ref QuestSequence reference164 = ref span93[4]; + num++; + ref QuestSequence reference164 = ref span228[num]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue @@ -257206,12 +311694,14 @@ public static class AssemblyQuestLoader num2 = 2; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span96 = CollectionsMarshal.AsSpan(list233); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span233[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - span96[1] = new QuestStep(EInteractionType.CompleteQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + index2++; + span233[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); obj158.Steps = list233; reference164 = obj158; questRoot33.QuestSequence = list228; @@ -257221,21 +311711,26 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "JerryWester"; + Span span234 = CollectionsMarshal.AsSpan(list234); + index = 0; + span234[index] = "JerryWester"; questRoot34.Author = list234; - num = 8; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span97 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference165 = ref span97[0]; + index = 8; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + Span span235 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference165 = ref span235[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -257248,7 +311743,8 @@ public static class AssemblyQuestLoader }; obj159.Steps = list236; reference165 = obj159; - ref QuestSequence reference166 = ref span97[1]; + num++; + ref QuestSequence reference166 = ref span235[num]; QuestSequence obj160 = new QuestSequence { Sequence = 1 @@ -257256,27 +311752,33 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1009098u, new Vector3(262.71448f, -8.995881f, -77.92786f), 152) + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span237[index2] = new QuestStep(EInteractionType.Interact, 1009098u, new Vector3(262.71448f, -8.995881f, -77.92786f), 152) { Fly = true }; obj160.Steps = list237; reference166 = obj160; - ref QuestSequence reference167 = ref span97[2]; + num++; + ref QuestSequence reference167 = ref span235[num]; QuestSequence obj161 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1033555u, new Vector3(193.59119f, -22.344374f, -399.8932f), 152) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.Interact, 1033555u, new Vector3(193.59119f, -22.344374f, -399.8932f), 152) { Fly = true }; obj161.Steps = list238; reference167 = obj161; - ref QuestSequence reference168 = ref span97[3]; + num++; + ref QuestSequence reference168 = ref span235[num]; QuestSequence obj162 = new QuestSequence { Sequence = 3 @@ -257284,28 +311786,34 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1009119u, new Vector3(106.85889f, -27.487057f, -366.3844f), 152) + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new QuestStep(EInteractionType.Interact, 1009119u, new Vector3(106.85889f, -27.487057f, -366.3844f), 152) { Fly = true }; obj162.Steps = list239; reference168 = obj162; - ref QuestSequence reference169 = ref span97[4]; + num++; + ref QuestSequence reference169 = ref span235[num]; QuestSequence obj163 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(190.23474f, -31.415636f, -218.26653f), 152) + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(190.23474f, -31.415636f, -218.26653f), 152) { StopDistance = 0.25f, Fly = true }; obj163.Steps = list240; reference169 = obj163; - ref QuestSequence reference170 = ref span97[5]; + num++; + ref QuestSequence reference170 = ref span235[num]; QuestSequence obj164 = new QuestSequence { Sequence = 5 @@ -257313,7 +311821,9 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Duty, null, null, 152) + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.Duty, null, null, 152) { DutyOptions = new DutyOptions { @@ -257322,19 +311832,23 @@ public static class AssemblyQuestLoader }; obj164.Steps = list241; reference170 = obj164; - span97[6] = new QuestSequence + num++; + span235[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference171 = ref span97[7]; + num++; + ref QuestSequence reference171 = ref span235[num]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -257348,13 +311862,16 @@ public static class AssemblyQuestLoader num = 1; List list243 = new List(num); CollectionsMarshal.SetCount(list243, num); - CollectionsMarshal.AsSpan(list243)[0] = "JerryWester"; + Span span243 = CollectionsMarshal.AsSpan(list243); + index = 0; + span243[index] = "JerryWester"; questRoot35.Author = list243; - num = 5; - List list244 = new List(num); - CollectionsMarshal.SetCount(list244, num); - Span span98 = CollectionsMarshal.AsSpan(list244); - ref QuestSequence reference172 = ref span98[0]; + index = 5; + List list244 = new List(index); + CollectionsMarshal.SetCount(list244, index); + Span span244 = CollectionsMarshal.AsSpan(list244); + num = 0; + ref QuestSequence reference172 = ref span244[num]; QuestSequence obj166 = new QuestSequence { Sequence = 0 @@ -257362,7 +311879,9 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010010u, new Vector3(-50.94995f, -3.440948f, 20.58435f), 132) + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010010u, new Vector3(-50.94995f, -3.440948f, 20.58435f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -257375,18 +311894,22 @@ public static class AssemblyQuestLoader }; obj166.Steps = list245; reference172 = obj166; - ref QuestSequence reference173 = ref span98[1]; + num++; + ref QuestSequence reference173 = ref span244[num]; QuestSequence obj167 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 1010017u, new Vector3(22.171326f, 1.1999999f, 28.854736f), 132); + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.Interact, 1010017u, new Vector3(22.171326f, 1.1999999f, 28.854736f), 132); obj167.Steps = list246; reference173 = obj167; - ref QuestSequence reference174 = ref span98[2]; + num++; + ref QuestSequence reference174 = ref span244[num]; QuestSequence obj168 = new QuestSequence { Sequence = 2 @@ -257394,31 +311917,39 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1010018u, new Vector3(49.729126f, -8.046955f, 100.20593f), 132); + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.Interact, 1010018u, new Vector3(49.729126f, -8.046955f, 100.20593f), 132); obj168.Steps = list247; reference174 = obj168; - ref QuestSequence reference175 = ref span98[3]; + num++; + ref QuestSequence reference175 = ref span244[num]; QuestSequence obj169 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - Span span99 = CollectionsMarshal.AsSpan(list248); - span99[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(49.68947f, -8.046954f, 100.59061f), 132); - span99[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(38.482037f, -9.182595f, 124.36735f), 132); - span99[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(40.59977f, -18.800003f, 103.46791f), 132) + index2 = 4; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(49.68947f, -8.046954f, 100.59061f), 132); + num2++; + span248[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(38.482037f, -9.182595f, 124.36735f), 132); + num2++; + span248[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(40.59977f, -18.800003f, 103.46791f), 132) { DisableNavmesh = true }; - span99[3] = new QuestStep(EInteractionType.Interact, 1010012u, new Vector3(23.910828f, -18.800003f, 89.89087f), 132) + num2++; + span248[num2] = new QuestStep(EInteractionType.Interact, 1010012u, new Vector3(23.910828f, -18.800003f, 89.89087f), 132) { DisableNavmesh = true }; obj169.Steps = list248; reference175 = obj169; - ref QuestSequence reference176 = ref span98[4]; + num++; + ref QuestSequence reference176 = ref span244[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue @@ -257426,7 +311957,9 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010018u, new Vector3(49.729126f, -8.046955f, 100.20593f), 132); + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010018u, new Vector3(49.729126f, -8.046955f, 100.20593f), 132); obj170.Steps = list249; reference176 = obj170; questRoot35.QuestSequence = list244; @@ -257436,21 +311969,26 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "JerryWester"; + Span span250 = CollectionsMarshal.AsSpan(list250); + index = 0; + span250[index] = "JerryWester"; questRoot36.Author = list250; - num = 6; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span100 = CollectionsMarshal.AsSpan(list251); - ref QuestSequence reference177 = ref span100[0]; + index = 6; + List list251 = new List(index); + CollectionsMarshal.SetCount(list251, index); + Span span251 = CollectionsMarshal.AsSpan(list251); + num = 0; + ref QuestSequence reference177 = ref span251[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010018u, new Vector3(49.729126f, -8.046955f, 100.20593f), 132) + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010018u, new Vector3(49.729126f, -8.046955f, 100.20593f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -257463,7 +312001,8 @@ public static class AssemblyQuestLoader }; obj171.Steps = list252; reference177 = obj171; - ref QuestSequence reference178 = ref span100[1]; + num++; + ref QuestSequence reference178 = ref span251[num]; QuestSequence obj172 = new QuestSequence { Sequence = 1 @@ -257471,8 +312010,9 @@ public static class AssemblyQuestLoader num2 = 2; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span101 = CollectionsMarshal.AsSpan(list253); - span101[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -257481,26 +312021,31 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - span101[1] = new QuestStep(EInteractionType.Interact, 1010020u, new Vector3(-569.39044f, 9.822195f, 65.171265f), 152); + index2++; + span253[index2] = new QuestStep(EInteractionType.Interact, 1010020u, new Vector3(-569.39044f, 9.822195f, 65.171265f), 152); obj172.Steps = list253; reference178 = obj172; - ref QuestSequence reference179 = ref span100[2]; + num++; + ref QuestSequence reference179 = ref span251[num]; QuestSequence obj173 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - Span span102 = CollectionsMarshal.AsSpan(list254); - span102[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-300.50375f, 0.39631903f, 268.70343f), 152) + index2 = 2; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-300.50375f, 0.39631903f, 268.70343f), 152) { Fly = true }; - span102[1] = new QuestStep(EInteractionType.Interact, 1010037u, new Vector3(-300.98425f, 0.4458849f, 267.84155f), 152); + num2++; + span254[num2] = new QuestStep(EInteractionType.Interact, 1010037u, new Vector3(-300.98425f, 0.4458849f, 267.84155f), 152); obj173.Steps = list254; reference179 = obj173; - ref QuestSequence reference180 = ref span100[3]; + num++; + ref QuestSequence reference180 = ref span251[num]; QuestSequence obj174 = new QuestSequence { Sequence = 3 @@ -257508,26 +312053,32 @@ public static class AssemblyQuestLoader num2 = 2; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span103 = CollectionsMarshal.AsSpan(list255); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-172.96619f, 1.4138634f, 147.4101f), 152) + Span span255 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span255[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-172.96619f, 1.4138634f, 147.4101f), 152) { Fly = true }; - span103[1] = new QuestStep(EInteractionType.Interact, 1010038u, new Vector3(-173.66296f, 1.4696703f, 146.83752f), 152); + index2++; + span255[index2] = new QuestStep(EInteractionType.Interact, 1010038u, new Vector3(-173.66296f, 1.4696703f, 146.83752f), 152); obj174.Steps = list255; reference180 = obj174; - ref QuestSequence reference181 = ref span100[4]; + num++; + ref QuestSequence reference181 = ref span251[num]; QuestSequence obj175 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1009987u, new Vector3(-207.69055f, 4.192081f, 100.26697f), 152); + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.Interact, 1009987u, new Vector3(-207.69055f, 4.192081f, 100.26697f), 152); obj175.Steps = list256; reference181 = obj175; - ref QuestSequence reference182 = ref span100[5]; + num++; + ref QuestSequence reference182 = ref span251[num]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue @@ -257535,17 +312086,20 @@ public static class AssemblyQuestLoader num2 = 3; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span104 = CollectionsMarshal.AsSpan(list257); - span104[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span104[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2++; + span257[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span104[2] = new QuestStep(EInteractionType.CompleteQuest, 1010147u, new Vector3(0.8086548f, -1.9957249f, -45.67035f), 351); + index2++; + span257[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010147u, new Vector3(0.8086548f, -1.9957249f, -45.67035f), 351); obj176.Steps = list257; reference182 = obj176; questRoot36.QuestSequence = list251; @@ -257555,27 +312109,33 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - CollectionsMarshal.AsSpan(list258)[0] = "JerryWester"; + Span span258 = CollectionsMarshal.AsSpan(list258); + index = 0; + span258[index] = "JerryWester"; questRoot37.Author = list258; - num = 6; - List list259 = new List(num); - CollectionsMarshal.SetCount(list259, num); - Span span105 = CollectionsMarshal.AsSpan(list259); - ref QuestSequence reference183 = ref span105[0]; + index = 6; + List list259 = new List(index); + CollectionsMarshal.SetCount(list259, index); + Span span259 = CollectionsMarshal.AsSpan(list259); + num = 0; + ref QuestSequence reference183 = ref span259[num]; QuestSequence obj177 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010858u, new Vector3(-1.9074707f, 0f, -3.1281738f), 351) + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span260[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010858u, new Vector3(-1.9074707f, 0f, -3.1281738f), 351) { StopDistance = 7f }; obj177.Steps = list260; reference183 = obj177; - ref QuestSequence reference184 = ref span105[1]; + num++; + ref QuestSequence reference184 = ref span259[num]; QuestSequence obj178 = new QuestSequence { Sequence = 1 @@ -257583,29 +312143,35 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1010890u, new Vector3(31.967651f, -1f, 2.9144287f), 351); + Span span261 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span261[index2] = new QuestStep(EInteractionType.Interact, 1010890u, new Vector3(31.967651f, -1f, 2.9144287f), 351); obj178.Steps = list261; reference184 = obj178; - ref QuestSequence reference185 = ref span105[2]; + num++; + ref QuestSequence reference185 = ref span259[num]; QuestSequence obj179 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - Span span106 = CollectionsMarshal.AsSpan(list262); - span106[0] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + index2 = 2; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span106[1] = new QuestStep(EInteractionType.Interact, 1010860u, new Vector3(2.822876f, -1.995725f, -41.24518f), 351) + num2++; + span262[num2] = new QuestStep(EInteractionType.Interact, 1010860u, new Vector3(2.822876f, -1.995725f, -41.24518f), 351) { StopDistance = 7f }; obj179.Steps = list262; reference185 = obj179; - ref QuestSequence reference186 = ref span105[3]; + num++; + ref QuestSequence reference186 = ref span259[num]; QuestSequence obj180 = new QuestSequence { Sequence = 3 @@ -257613,23 +312179,28 @@ public static class AssemblyQuestLoader num2 = 2; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span107 = CollectionsMarshal.AsSpan(list263); - span107[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + Span span263 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span263[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - span107[1] = new QuestStep(EInteractionType.Interact, 1010858u, new Vector3(-1.9074707f, 0f, -3.1281738f), 351); + index2++; + span263[index2] = new QuestStep(EInteractionType.Interact, 1010858u, new Vector3(-1.9074707f, 0f, -3.1281738f), 351); obj180.Steps = list263; reference186 = obj180; - ref QuestSequence reference187 = ref span105[4]; + num++; + ref QuestSequence reference187 = ref span259[num]; QuestSequence obj181 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1010861u, new Vector3(-63.523376f, 46.999992f, 25.192627f), 147) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.Interact, 1010861u, new Vector3(-63.523376f, 46.999992f, 25.192627f), 147) { StopDistance = 0.5f, Fly = true, @@ -257637,7 +312208,8 @@ public static class AssemblyQuestLoader }; obj181.Steps = list264; reference187 = obj181; - ref QuestSequence reference188 = ref span105[5]; + num++; + ref QuestSequence reference188 = ref span259[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue @@ -257645,7 +312217,9 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span265[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) { StopDistance = 5f }; @@ -257658,24 +312232,30 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "liza"; + Span span266 = CollectionsMarshal.AsSpan(list266); + index = 0; + span266[index] = "liza"; questRoot38.Author = list266; - num = 5; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span108 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference189 = ref span108[0]; + index = 5; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + Span span267 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference189 = ref span267[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032786u, new Vector3(113.7865f, -20.000002f, -0.3204956f), 886); + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + Span span268 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span268[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032786u, new Vector3(113.7865f, -20.000002f, -0.3204956f), 886); obj183.Steps = list268; reference189 = obj183; - ref QuestSequence reference190 = ref span108[1]; + num++; + ref QuestSequence reference190 = ref span267[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 @@ -257683,60 +312263,84 @@ public static class AssemblyQuestLoader num2 = 3; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - Span span109 = CollectionsMarshal.AsSpan(list269); - ref QuestStep reference191 = ref span109[0]; + Span span269 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + ref QuestStep reference191 = ref span269[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1033786u, new Vector3(65.415405f, -18.499813f, 11.795227f), 886); num3 = 6; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - Span span110 = CollectionsMarshal.AsSpan(list270); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span270 = CollectionsMarshal.AsSpan(list270); + index3 = 0; + span270[index3] = null; + index3++; + span270[index3] = null; + index3++; + span270[index3] = null; + index3++; + span270[index3] = null; + index3++; + span270[index3] = null; + index3++; + span270[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list270; reference191 = questStep8; - ref QuestStep reference192 = ref span109[1]; + index2++; + ref QuestStep reference192 = ref span269[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1033787u, new Vector3(40.05493f, -19.999998f, 89.066895f), 886); - num3 = 6; - List list271 = new List(num3); - CollectionsMarshal.SetCount(list271, num3); - Span span111 = CollectionsMarshal.AsSpan(list271); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list271 = new List(index3); + CollectionsMarshal.SetCount(list271, index3); + Span span271 = CollectionsMarshal.AsSpan(list271); + num3 = 0; + span271[num3] = null; + num3++; + span271[num3] = null; + num3++; + span271[num3] = null; + num3++; + span271[num3] = null; + num3++; + span271[num3] = null; + num3++; + span271[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list271; reference192 = questStep9; - ref QuestStep reference193 = ref span109[2]; + index2++; + ref QuestStep reference193 = ref span269[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1033788u, new Vector3(-27.908752f, -16f, 138.56714f), 886); num3 = 6; List list272 = new List(num3); CollectionsMarshal.SetCount(list272, num3); - Span span112 = CollectionsMarshal.AsSpan(list272); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span272 = CollectionsMarshal.AsSpan(list272); + index3 = 0; + span272[index3] = null; + index3++; + span272[index3] = null; + index3++; + span272[index3] = null; + index3++; + span272[index3] = null; + index3++; + span272[index3] = null; + index3++; + span272[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list272; reference193 = questStep10; obj184.Steps = list269; reference190 = obj184; - ref QuestSequence reference194 = ref span108[2]; + num++; + ref QuestSequence reference194 = ref span267[num]; QuestSequence obj185 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 1032786u, new Vector3(113.7865f, -20.000002f, -0.3204956f), 886) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span273[num2] = new QuestStep(EInteractionType.Interact, 1032786u, new Vector3(113.7865f, -20.000002f, -0.3204956f), 886) { AethernetShortcut = new AethernetShortcut { @@ -257746,7 +312350,8 @@ public static class AssemblyQuestLoader }; obj185.Steps = list273; reference194 = obj185; - ref QuestSequence reference195 = ref span108[3]; + num++; + ref QuestSequence reference195 = ref span267[num]; QuestSequence obj186 = new QuestSequence { Sequence = 3 @@ -257754,7 +312359,9 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1033784u, new Vector3(154.00928f, -50f, 67.73474f), 886) + Span span274 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span274[index2] = new QuestStep(EInteractionType.Interact, 1033784u, new Vector3(154.00928f, -50f, 67.73474f), 886) { AethernetShortcut = new AethernetShortcut { @@ -257764,15 +312371,18 @@ public static class AssemblyQuestLoader }; obj186.Steps = list274; reference195 = obj186; - ref QuestSequence reference196 = ref span108[4]; + num++; + ref QuestSequence reference196 = ref span267[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033543u, new Vector3(113.38977f, -20f, -0.96136475f), 886) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033543u, new Vector3(113.38977f, -20f, -0.96136475f), 886) { AethernetShortcut = new AethernetShortcut { @@ -257790,13 +312400,16 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "Censored"; + Span span276 = CollectionsMarshal.AsSpan(list276); + index = 0; + span276[index] = "Censored"; questRoot39.Author = list276; - num = 5; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span113 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference197 = ref span113[0]; + index = 5; + List list277 = new List(index); + CollectionsMarshal.SetCount(list277, index); + Span span277 = CollectionsMarshal.AsSpan(list277); + num = 0; + ref QuestSequence reference197 = ref span277[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 @@ -257804,8 +312417,9 @@ public static class AssemblyQuestLoader num2 = 2; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span114 = CollectionsMarshal.AsSpan(list278); - ref QuestStep reference198 = ref span114[0]; + Span span278 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + ref QuestStep reference198 = ref span278[index2]; QuestStep obj189 = new QuestStep(EInteractionType.None, null, null, 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -257817,15 +312431,18 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list279 = new List(num3); - CollectionsMarshal.SetCount(list279, num3); - CollectionsMarshal.AsSpan(list279)[0] = 154; + index3 = 1; + List list279 = new List(index3); + CollectionsMarshal.SetCount(list279, index3); + Span span279 = CollectionsMarshal.AsSpan(list279); + num3 = 0; + span279[num3] = 154; skipStepConditions.InTerritory = list279; skipConditions2.StepIf = skipStepConditions; obj189.SkipConditions = skipConditions2; reference198 = obj189; - span114[1] = new QuestStep(EInteractionType.AcceptQuest, 1033543u, new Vector3(113.38977f, -20f, -0.96136475f), 886) + index2++; + span278[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033543u, new Vector3(113.38977f, -20f, -0.96136475f), 886) { AethernetShortcut = new AethernetShortcut { @@ -257835,18 +312452,22 @@ public static class AssemblyQuestLoader }; obj188.Steps = list278; reference197 = obj188; - ref QuestSequence reference199 = ref span113[1]; + num++; + ref QuestSequence reference199 = ref span277[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1033784u, new Vector3(154.00928f, -50f, 67.73474f), 886); + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span280 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span280[num2] = new QuestStep(EInteractionType.Interact, 1033784u, new Vector3(154.00928f, -50f, 67.73474f), 886); obj190.Steps = list280; reference199 = obj190; - ref QuestSequence reference200 = ref span113[2]; + num++; + ref QuestSequence reference200 = ref span277[num]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -257854,25 +312475,31 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1033789u, new Vector3(-701.83875f, 83.7986f, 229.99915f), 400) + Span span281 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span281[index2] = new QuestStep(EInteractionType.Interact, 1033789u, new Vector3(-701.83875f, 83.7986f, 229.99915f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj191.Steps = list281; reference200 = obj191; - ref QuestSequence reference201 = ref span113[3]; + num++; + ref QuestSequence reference201 = ref span277[num]; QuestSequence obj192 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1033789u, new Vector3(-701.83875f, 83.7986f, 229.99915f), 400); + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + Span span282 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span282[num2] = new QuestStep(EInteractionType.Interact, 1033789u, new Vector3(-701.83875f, 83.7986f, 229.99915f), 400); obj192.Steps = list282; reference201 = obj192; - ref QuestSequence reference202 = ref span113[4]; + num++; + ref QuestSequence reference202 = ref span277[num]; QuestSequence obj193 = new QuestSequence { Sequence = byte.MaxValue @@ -257880,8 +312507,9 @@ public static class AssemblyQuestLoader num2 = 2; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - Span span115 = CollectionsMarshal.AsSpan(list283); - span115[0] = new QuestStep(EInteractionType.None, null, null, 418) + Span span283 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span283[index2] = new QuestStep(EInteractionType.None, null, null, 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -257890,7 +312518,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardFirmament } }; - span115[1] = new QuestStep(EInteractionType.CompleteQuest, 1033922u, new Vector3(113.38977f, -20f, -0.9918823f), 886) + index2++; + span283[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033922u, new Vector3(113.38977f, -20f, -0.9918823f), 886) { AethernetShortcut = new AethernetShortcut { @@ -257907,22 +312536,26 @@ public static class AssemblyQuestLoader num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - CollectionsMarshal.AsSpan(list284)[0] = "Censored"; + Span span284 = CollectionsMarshal.AsSpan(list284); + index = 0; + span284[index] = "Censored"; questRoot40.Author = list284; - num = 2; - List list285 = new List(num); - CollectionsMarshal.SetCount(list285, num); - Span span116 = CollectionsMarshal.AsSpan(list285); - ref QuestSequence reference203 = ref span116[0]; + index = 2; + List list285 = new List(index); + CollectionsMarshal.SetCount(list285, index); + Span span285 = CollectionsMarshal.AsSpan(list285); + num = 0; + ref QuestSequence reference203 = ref span285[num]; QuestSequence obj194 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - Span span117 = CollectionsMarshal.AsSpan(list286); - ref QuestStep reference204 = ref span117[0]; + index2 = 2; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + Span span286 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + ref QuestStep reference204 = ref span286[num2]; QuestStep obj195 = new QuestStep(EInteractionType.None, null, null, 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -257937,12 +312570,15 @@ public static class AssemblyQuestLoader num3 = 1; List list287 = new List(num3); CollectionsMarshal.SetCount(list287, num3); - CollectionsMarshal.AsSpan(list287)[0] = 154; + Span span287 = CollectionsMarshal.AsSpan(list287); + index3 = 0; + span287[index3] = 154; skipStepConditions2.InTerritory = list287; skipConditions3.StepIf = skipStepConditions2; obj195.SkipConditions = skipConditions3; reference204 = obj195; - span117[1] = new QuestStep(EInteractionType.AcceptQuest, 1032220u, new Vector3(113.29822f, -20.000002f, 1.449585f), 886) + num2++; + span286[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032220u, new Vector3(113.29822f, -20.000002f, 1.449585f), 886) { AethernetShortcut = new AethernetShortcut { @@ -257952,7 +312588,8 @@ public static class AssemblyQuestLoader }; obj194.Steps = list286; reference203 = obj194; - ref QuestSequence reference205 = ref span116[1]; + num++; + ref QuestSequence reference205 = ref span285[num]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue @@ -257960,7 +312597,9 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033784u, new Vector3(154.00928f, -50f, 67.73474f), 886); + Span span288 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span288[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033784u, new Vector3(154.00928f, -50f, 67.73474f), 886); obj196.Steps = list288; reference205 = obj196; questRoot40.QuestSequence = list285; @@ -257970,21 +312609,26 @@ public static class AssemblyQuestLoader num = 1; List list289 = new List(num); CollectionsMarshal.SetCount(list289, num); - CollectionsMarshal.AsSpan(list289)[0] = "liza"; + Span span289 = CollectionsMarshal.AsSpan(list289); + index = 0; + span289[index] = "liza"; questRoot41.Author = list289; - num = 11; - List list290 = new List(num); - CollectionsMarshal.SetCount(list290, num); - Span span118 = CollectionsMarshal.AsSpan(list290); - ref QuestSequence reference206 = ref span118[0]; + index = 11; + List list290 = new List(index); + CollectionsMarshal.SetCount(list290, index); + Span span290 = CollectionsMarshal.AsSpan(list290); + num = 0; + ref QuestSequence reference206 = ref span290[num]; QuestSequence obj197 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + Span span291 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span291[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -257997,7 +312641,8 @@ public static class AssemblyQuestLoader }; obj197.Steps = list291; reference206 = obj197; - ref QuestSequence reference207 = ref span118[1]; + num++; + ref QuestSequence reference207 = ref span290[num]; QuestSequence obj198 = new QuestSequence { Sequence = 1 @@ -258005,15 +312650,19 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - ref QuestStep reference208 = ref CollectionsMarshal.AsSpan(list292)[0]; + Span span292 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + ref QuestStep reference208 = ref span292[index2]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) { Fly = true }; - num3 = 1; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - CollectionsMarshal.AsSpan(list293)[0] = new DialogueChoice + index3 = 1; + List list293 = new List(index3); + CollectionsMarshal.SetCount(list293, index3); + Span span293 = CollectionsMarshal.AsSpan(list293); + num3 = 0; + span293[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYW201_03895_Q1_000_011") @@ -258022,18 +312671,22 @@ public static class AssemblyQuestLoader reference208 = obj199; obj198.Steps = list292; reference207 = obj198; - ref QuestSequence reference209 = ref span118[2]; + num++; + ref QuestSequence reference209 = ref span290[num]; QuestSequence obj200 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1033626u, new Vector3(-484.42816f, 107.63f, 136.5835f), 829); + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span294 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span294[num2] = new QuestStep(EInteractionType.Interact, 1033626u, new Vector3(-484.42816f, 107.63f, 136.5835f), 829); obj200.Steps = list294; reference209 = obj200; - ref QuestSequence reference210 = ref span118[3]; + num++; + ref QuestSequence reference210 = ref span290[num]; QuestSequence obj201 = new QuestSequence { Sequence = 3 @@ -258041,21 +312694,27 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829); + Span span295 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span295[index2] = new QuestStep(EInteractionType.Interact, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829); obj201.Steps = list295; reference210 = obj201; - ref QuestSequence reference211 = ref span118[4]; + num++; + ref QuestSequence reference211 = ref span290[num]; QuestSequence obj202 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829); + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span296 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span296[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829); obj202.Steps = list296; reference211 = obj202; - ref QuestSequence reference212 = ref span118[5]; + num++; + ref QuestSequence reference212 = ref span290[num]; QuestSequence obj203 = new QuestSequence { Sequence = 5 @@ -258063,7 +312722,9 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - ref QuestStep reference213 = ref CollectionsMarshal.AsSpan(list297)[0]; + Span span297 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + ref QuestStep reference213 = ref span297[index2]; QuestStep obj204 = new QuestStep(EInteractionType.SinglePlayerDuty, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829) { StopDistance = 5f, @@ -258075,7 +312736,9 @@ public static class AssemblyQuestLoader num3 = 1; List list298 = new List(num3); CollectionsMarshal.SetCount(list298, num3); - CollectionsMarshal.AsSpan(list298)[0] = new DialogueChoice + Span span298 = CollectionsMarshal.AsSpan(list298); + index3 = 0; + span298[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKYW201_03895_Q6_000_000"), @@ -258085,22 +312748,27 @@ public static class AssemblyQuestLoader reference213 = obj204; obj203.Steps = list297; reference212 = obj203; - span118[6] = new QuestSequence + num++; + span290[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference214 = ref span118[7]; + num++; + ref QuestSequence reference214 = ref span290[num]; QuestSequence obj205 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); + index2 = 1; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + Span span299 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span299[num2] = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); obj205.Steps = list299; reference214 = obj205; - ref QuestSequence reference215 = ref span118[8]; + num++; + ref QuestSequence reference215 = ref span290[num]; QuestSequence obj206 = new QuestSequence { Sequence = 8 @@ -258108,21 +312776,27 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1033632u, new Vector3(50.94983f, 35f, 60.440918f), 919); + Span span300 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span300[index2] = new QuestStep(EInteractionType.Interact, 1033632u, new Vector3(50.94983f, 35f, 60.440918f), 919); obj206.Steps = list300; reference215 = obj206; - ref QuestSequence reference216 = ref span118[9]; + num++; + ref QuestSequence reference216 = ref span290[num]; QuestSequence obj207 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 1033635u, new Vector3(5.2643433f, 41f, 9.811523f), 919); + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + Span span301 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span301[num2] = new QuestStep(EInteractionType.Interact, 1033635u, new Vector3(5.2643433f, 41f, 9.811523f), 919); obj207.Steps = list301; reference216 = obj207; - ref QuestSequence reference217 = ref span118[10]; + num++; + ref QuestSequence reference217 = ref span290[num]; QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue @@ -258130,23 +312804,27 @@ public static class AssemblyQuestLoader num2 = 3; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - Span span119 = CollectionsMarshal.AsSpan(list302); - ref QuestStep reference218 = ref span119[0]; + Span span302 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + ref QuestStep reference218 = ref span302[index2]; QuestStep obj209 = new QuestStep(EInteractionType.Interact, 1033636u, new Vector3(-5.5390625f, 41.019974f, 25.680908f), 919) { TargetTerritoryId = (ushort)621 }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list303 = new List(num3); - CollectionsMarshal.SetCount(list303, num3); - CollectionsMarshal.AsSpan(list303)[0] = 919; + index3 = 1; + List list303 = new List(index3); + CollectionsMarshal.SetCount(list303, index3); + Span span303 = CollectionsMarshal.AsSpan(list303); + num3 = 0; + span303[num3] = 919; skipStepConditions3.NotInTerritory = list303; skipConditions4.StepIf = skipStepConditions3; obj209.SkipConditions = skipConditions4; reference218 = obj209; - span119[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) + index2++; + span302[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, @@ -258158,7 +312836,8 @@ public static class AssemblyQuestLoader } } }; - span119[2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + index2++; + span302[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { NextQuestId = new QuestId(3980) }; @@ -258171,21 +312850,26 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - CollectionsMarshal.AsSpan(list304)[0] = "alydev"; + Span span304 = CollectionsMarshal.AsSpan(list304); + index = 0; + span304[index] = "alydev"; questRoot42.Author = list304; - num = 6; - List list305 = new List(num); - CollectionsMarshal.SetCount(list305, num); - Span span120 = CollectionsMarshal.AsSpan(list305); - ref QuestSequence reference219 = ref span120[0]; + index = 6; + List list305 = new List(index); + CollectionsMarshal.SetCount(list305, index); + Span span305 = CollectionsMarshal.AsSpan(list305); + num = 0; + ref QuestSequence reference219 = ref span305[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033717u, new Vector3(-286.82385f, 17.772081f, 444.23596f), 814) + index2 = 1; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + Span span306 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + span306[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033717u, new Vector3(-286.82385f, 17.772081f, 444.23596f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright, @@ -258204,7 +312888,8 @@ public static class AssemblyQuestLoader }; obj210.Steps = list306; reference219 = obj210; - ref QuestSequence reference220 = ref span120[1]; + num++; + ref QuestSequence reference220 = ref span305[num]; QuestSequence obj211 = new QuestSequence { Sequence = 1 @@ -258212,7 +312897,9 @@ public static class AssemblyQuestLoader num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1033720u, new Vector3(79.81995f, 35.999687f, -148.27197f), 819) + Span span307 = CollectionsMarshal.AsSpan(list307); + index2 = 0; + span307[index2] = new QuestStep(EInteractionType.Interact, 1033720u, new Vector3(79.81995f, 35.999687f, -148.27197f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -258223,15 +312910,18 @@ public static class AssemblyQuestLoader }; obj211.Steps = list307; reference220 = obj211; - ref QuestSequence reference221 = ref span120[2]; + num++; + ref QuestSequence reference221 = ref span305[num]; QuestSequence obj212 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1033722u, new Vector3(-13.473755f, 19.999794f, -155.13855f), 819) + index2 = 1; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + Span span308 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span308[num2] = new QuestStep(EInteractionType.Interact, 1033722u, new Vector3(-13.473755f, 19.999794f, -155.13855f), 819) { AethernetShortcut = new AethernetShortcut { @@ -258241,7 +312931,8 @@ public static class AssemblyQuestLoader }; obj212.Steps = list308; reference221 = obj212; - ref QuestSequence reference222 = ref span120[3]; + num++; + ref QuestSequence reference222 = ref span305[num]; QuestSequence obj213 = new QuestSequence { Sequence = 3 @@ -258249,22 +312940,27 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 1033723u, new Vector3(-349.63f, 100.1054f, -605.27966f), 813) + Span span309 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span309[index2] = new QuestStep(EInteractionType.Interact, 1033723u, new Vector3(-349.63f, 100.1054f, -605.27966f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; obj213.Steps = list309; reference222 = obj213; - ref QuestSequence reference223 = ref span120[4]; + num++; + ref QuestSequence reference223 = ref span305[num]; QuestSequence obj214 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - ref QuestStep reference224 = ref CollectionsMarshal.AsSpan(list310)[0]; + index2 = 1; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + Span span310 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + ref QuestStep reference224 = ref span310[num2]; QuestStep obj215 = new QuestStep(EInteractionType.Interact, 1033727u, new Vector3(-601.8616f, 65.60101f, -419.9131f), 813) { Fly = true @@ -258272,7 +312968,9 @@ public static class AssemblyQuestLoader num3 = 1; List list311 = new List(num3); CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = new DialogueChoice + Span span311 = CollectionsMarshal.AsSpan(list311); + index3 = 0; + span311[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANDWA001_03896_Q3_000_000"), @@ -258282,7 +312980,8 @@ public static class AssemblyQuestLoader reference224 = obj215; obj214.Steps = list310; reference223 = obj214; - ref QuestSequence reference225 = ref span120[5]; + num++; + ref QuestSequence reference225 = ref span305[num]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue @@ -258290,13 +312989,15 @@ public static class AssemblyQuestLoader num2 = 2; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span121 = CollectionsMarshal.AsSpan(list312); - span121[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span312 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + span312[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31137u, ItemCount = 1 }; - span121[1] = new QuestStep(EInteractionType.CompleteQuest, 1033727u, new Vector3(-601.8616f, 65.60101f, -419.9131f), 813); + index2++; + span312[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033727u, new Vector3(-601.8616f, 65.60101f, -419.9131f), 813); obj216.Steps = list312; reference225 = obj216; questRoot42.QuestSequence = list305; @@ -258306,24 +313007,30 @@ public static class AssemblyQuestLoader num = 1; List list313 = new List(num); CollectionsMarshal.SetCount(list313, num); - CollectionsMarshal.AsSpan(list313)[0] = "Theo"; + Span span313 = CollectionsMarshal.AsSpan(list313); + index = 0; + span313[index] = "Theo"; questRoot43.Author = list313; - num = 5; - List list314 = new List(num); - CollectionsMarshal.SetCount(list314, num); - Span span122 = CollectionsMarshal.AsSpan(list314); - ref QuestSequence reference226 = ref span122[0]; + index = 5; + List list314 = new List(index); + CollectionsMarshal.SetCount(list314, index); + Span span314 = CollectionsMarshal.AsSpan(list314); + num = 0; + ref QuestSequence reference226 = ref span314[num]; QuestSequence obj217 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.601006f, -412.71082f), 813); + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + Span span315 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span315[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.601006f, -412.71082f), 813); obj217.Steps = list315; reference226 = obj217; - ref QuestSequence reference227 = ref span122[1]; + num++; + ref QuestSequence reference227 = ref span314[num]; QuestSequence obj218 = new QuestSequence { Sequence = 1 @@ -258331,27 +313038,33 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1033730u, new Vector3(-593.9269f, 71.99991f, -444.9989f), 813) + Span span316 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span316[index2] = new QuestStep(EInteractionType.Interact, 1033730u, new Vector3(-593.9269f, 71.99991f, -444.9989f), 813) { Mount = true }; obj218.Steps = list316; reference227 = obj218; - ref QuestSequence reference228 = ref span122[2]; + num++; + ref QuestSequence reference228 = ref span314[num]; QuestSequence obj219 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.6009f, -414.66394f), 813) + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + Span span317 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span317[num2] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.6009f, -414.66394f), 813) { Mount = true }; obj219.Steps = list317; reference228 = obj219; - ref QuestSequence reference229 = ref span122[3]; + num++; + ref QuestSequence reference229 = ref span314[num]; QuestSequence obj220 = new QuestSequence { Sequence = 3 @@ -258359,27 +313072,32 @@ public static class AssemblyQuestLoader num2 = 2; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - Span span123 = CollectionsMarshal.AsSpan(list318); - span123[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span318 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span318[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31139u, ItemCount = 1 }; - span123[1] = new QuestStep(EInteractionType.Interact, 1033730u, new Vector3(-593.9269f, 71.99991f, -444.9989f), 813) + index2++; + span318[index2] = new QuestStep(EInteractionType.Interact, 1033730u, new Vector3(-593.9269f, 71.99991f, -444.9989f), 813) { Mount = true }; obj220.Steps = list318; reference229 = obj220; - ref QuestSequence reference230 = ref span122[4]; + num++; + ref QuestSequence reference230 = ref span314[num]; QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033730u, new Vector3(-593.9269f, 71.99991f, -444.9989f), 813); + index2 = 1; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + Span span319 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + span319[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033730u, new Vector3(-593.9269f, 71.99991f, -444.9989f), 813); obj221.Steps = list319; reference230 = obj221; questRoot43.QuestSequence = list314; @@ -258389,13 +313107,16 @@ public static class AssemblyQuestLoader num = 1; List list320 = new List(num); CollectionsMarshal.SetCount(list320, num); - CollectionsMarshal.AsSpan(list320)[0] = "liza"; + Span span320 = CollectionsMarshal.AsSpan(list320); + index = 0; + span320[index] = "liza"; questRoot44.Author = list320; - num = 8; - List list321 = new List(num); - CollectionsMarshal.SetCount(list321, num); - Span span124 = CollectionsMarshal.AsSpan(list321); - ref QuestSequence reference231 = ref span124[0]; + index = 8; + List list321 = new List(index); + CollectionsMarshal.SetCount(list321, index); + Span span321 = CollectionsMarshal.AsSpan(list321); + num = 0; + ref QuestSequence reference231 = ref span321[num]; QuestSequence obj222 = new QuestSequence { Sequence = 0 @@ -258403,26 +313124,32 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.60101f, -412.71082f), 813); + Span span322 = CollectionsMarshal.AsSpan(list322); + index2 = 0; + span322[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.60101f, -412.71082f), 813); obj222.Steps = list322; reference231 = obj222; - ref QuestSequence reference232 = ref span124[1]; + num++; + ref QuestSequence reference232 = ref span321[num]; QuestSequence obj223 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - Span span125 = CollectionsMarshal.AsSpan(list323); - span125[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-357.15628f, 108.72211f, -680.6214f), 813) + index2 = 2; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + Span span323 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span323[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-357.15628f, 108.72211f, -680.6214f), 813) { Fly = true }; - span125[1] = new QuestStep(EInteractionType.Interact, 1033732u, new Vector3(-356.22186f, 108.722115f, -682.3072f), 813); + num2++; + span323[num2] = new QuestStep(EInteractionType.Interact, 1033732u, new Vector3(-356.22186f, 108.722115f, -682.3072f), 813); obj223.Steps = list323; reference232 = obj223; - ref QuestSequence reference233 = ref span124[2]; + num++; + ref QuestSequence reference233 = ref span321[num]; QuestSequence obj224 = new QuestSequence { Sequence = 2 @@ -258430,15 +313157,19 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - ref QuestStep reference234 = ref CollectionsMarshal.AsSpan(list324)[0]; + Span span324 = CollectionsMarshal.AsSpan(list324); + index2 = 0; + ref QuestStep reference234 = ref span324[index2]; QuestStep obj225 = new QuestStep(EInteractionType.Interact, 1033733u, new Vector3(-357.16797f, 108.722115f, -683.1922f), 813) { StopDistance = 5f }; - num3 = 1; - List list325 = new List(num3); - CollectionsMarshal.SetCount(list325, num3); - CollectionsMarshal.AsSpan(list325)[0] = new DialogueChoice + index3 = 1; + List list325 = new List(index3); + CollectionsMarshal.SetCount(list325, index3); + Span span325 = CollectionsMarshal.AsSpan(list325); + num3 = 0; + span325[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANDWA003_03898_SYSTEM_000_046") @@ -258447,21 +313178,25 @@ public static class AssemblyQuestLoader reference234 = obj225; obj224.Steps = list324; reference233 = obj224; - ref QuestSequence reference235 = ref span124[3]; + num++; + ref QuestSequence reference235 = ref span321[num]; QuestSequence obj226 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.Interact, 1033769u, new Vector3(-358.114f, 108.722115f, -683.43634f), 813) + index2 = 1; + List list326 = new List(index2); + CollectionsMarshal.SetCount(list326, index2); + Span span326 = CollectionsMarshal.AsSpan(list326); + num2 = 0; + span326[num2] = new QuestStep(EInteractionType.Interact, 1033769u, new Vector3(-358.114f, 108.722115f, -683.43634f), 813) { StopDistance = 5f }; obj226.Steps = list326; reference235 = obj226; - ref QuestSequence reference236 = ref span124[4]; + num++; + ref QuestSequence reference236 = ref span321[num]; QuestSequence obj227 = new QuestSequence { Sequence = 4 @@ -258469,7 +313204,9 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 1027826u, new Vector3(89.15845f, 0.49999997f, -145.4643f), 819) + Span span327 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span327[index2] = new QuestStep(EInteractionType.Interact, 1027826u, new Vector3(89.15845f, 0.49999997f, -145.4643f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -258480,22 +313217,26 @@ public static class AssemblyQuestLoader }; obj227.Steps = list327; reference236 = obj227; - ref QuestSequence reference237 = ref span124[5]; + num++; + ref QuestSequence reference237 = ref span321[num]; QuestSequence obj228 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.60101f, -412.71082f), 813) + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + Span span328 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span328[num2] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.60101f, -412.71082f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; obj228.Steps = list328; reference237 = obj228; - ref QuestSequence reference238 = ref span124[6]; + num++; + ref QuestSequence reference238 = ref span321[num]; QuestSequence obj229 = new QuestSequence { Sequence = 6 @@ -258503,24 +313244,29 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60091f, -414.66394f), 813); + Span span329 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + span329[index2] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60091f, -414.66394f), 813); obj229.Steps = list329; reference238 = obj229; - ref QuestSequence reference239 = ref span124[7]; + num++; + ref QuestSequence reference239 = ref span321[num]; QuestSequence obj230 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - Span span126 = CollectionsMarshal.AsSpan(list330); - span126[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 2; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + Span span330 = CollectionsMarshal.AsSpan(list330); + num2 = 0; + span330[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31141u, ItemCount = 1 }; - span126[1] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.60101f, -412.71082f), 813); + num2++; + span330[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.60101f, -412.71082f), 813); obj230.Steps = list330; reference239 = obj230; questRoot44.QuestSequence = list321; @@ -258530,13 +313276,16 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "Theo"; + Span span331 = CollectionsMarshal.AsSpan(list331); + index = 0; + span331[index] = "Theo"; questRoot45.Author = list331; - num = 6; - List list332 = new List(num); - CollectionsMarshal.SetCount(list332, num); - Span span127 = CollectionsMarshal.AsSpan(list332); - ref QuestSequence reference240 = ref span127[0]; + index = 6; + List list332 = new List(index); + CollectionsMarshal.SetCount(list332, index); + Span span332 = CollectionsMarshal.AsSpan(list332); + num = 0; + ref QuestSequence reference240 = ref span332[num]; QuestSequence obj231 = new QuestSequence { Sequence = 0 @@ -258544,26 +313293,32 @@ public static class AssemblyQuestLoader num2 = 2; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span128 = CollectionsMarshal.AsSpan(list333); - span128[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) + Span span333 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span333[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) { Fly = true }; - span128[1] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + index2++; + span333[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj231.Steps = list333; reference240 = obj231; - ref QuestSequence reference241 = ref span127[1]; + num++; + ref QuestSequence reference241 = ref span332[num]; QuestSequence obj232 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + Span span334 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span334[num2] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj232.Steps = list334; reference241 = obj232; - ref QuestSequence reference242 = ref span127[2]; + num++; + ref QuestSequence reference242 = ref span332[num]; QuestSequence obj233 = new QuestSequence { Sequence = 2 @@ -258571,27 +313326,33 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60228f, -414.66394f), 813); + Span span335 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span335[index2] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60228f, -414.66394f), 813); obj233.Steps = list335; reference242 = obj233; - ref QuestSequence reference243 = ref span127[3]; + num++; + ref QuestSequence reference243 = ref span332[num]; QuestSequence obj234 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - Span span129 = CollectionsMarshal.AsSpan(list336); - span129[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 2; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + Span span336 = CollectionsMarshal.AsSpan(list336); + num2 = 0; + span336[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31143u, ItemCount = 1 }; - span129[1] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + num2++; + span336[num2] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj234.Steps = list336; reference243 = obj234; - ref QuestSequence reference244 = ref span127[4]; + num++; + ref QuestSequence reference244 = ref span332[num]; QuestSequence obj235 = new QuestSequence { Sequence = 4 @@ -258599,26 +313360,31 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.Interact, 1033737u, new Vector3(-250.17175f, 18.842602f, -161.12f), 813) + Span span337 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span337[index2] = new QuestStep(EInteractionType.Interact, 1033737u, new Vector3(-250.17175f, 18.842602f, -161.12f), 813) { Fly = true }; obj235.Steps = list337; reference244 = obj235; - ref QuestSequence reference245 = ref span127[5]; + num++; + ref QuestSequence reference245 = ref span332[num]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - Span span130 = CollectionsMarshal.AsSpan(list338); - span130[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) + index2 = 2; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + Span span338 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span338[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) { Fly = true }; - span130[1] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + num2++; + span338[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj236.Steps = list338; reference245 = obj236; questRoot45.QuestSequence = list332; @@ -258632,13 +313398,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 10; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 10; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -258646,24 +313415,30 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1033738u, new Vector3(-616.29663f, -0.3631083f, 303.94446f), 813) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1033738u, new Vector3(-616.29663f, -0.3631083f, 303.94446f), 813) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -258671,7 +313446,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -258690,18 +313467,22 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -258709,27 +313490,33 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60228f, -414.66394f), 813); + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60228f, -414.66394f), 813); obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span2 = CollectionsMarshal.AsSpan(list8); - span2[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 2; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31145u, ItemCount = 1 }; - span2[1] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + num2++; + span8[num2] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[6]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 6 @@ -258737,30 +313524,37 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1033743u, new Vector3(-369.83295f, 5.6262345f, -94.80432f), 813) + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.Interact, 1033743u, new Vector3(-369.83295f, 5.6262345f, -94.80432f), 813) { Fly = true }; obj7.Steps = list9; reference7 = obj7; - ref QuestSequence reference8 = ref span[7]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 7 }; - num2 = 3; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span3 = CollectionsMarshal.AsSpan(list10); - span3[0] = new QuestStep(EInteractionType.Interact, 2011069u, new Vector3(-254.10852f, 3.2807007f, -114.54956f), 813) + index2 = 3; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.Interact, 2011069u, new Vector3(-254.10852f, 3.2807007f, -114.54956f), 813) { Fly = true }; - span3[1] = new QuestStep(EInteractionType.Interact, 2011068u, new Vector3(-245.28882f, 3.463745f, -116.68579f), 813); - span3[2] = new QuestStep(EInteractionType.Interact, 2011067u, new Vector3(-236.77429f, 3.829956f, -115.58716f), 813); + num2++; + span10[num2] = new QuestStep(EInteractionType.Interact, 2011068u, new Vector3(-245.28882f, 3.463745f, -116.68579f), 813); + num2++; + span10[num2] = new QuestStep(EInteractionType.Interact, 2011067u, new Vector3(-236.77429f, 3.829956f, -115.58716f), 813); obj8.Steps = list10; reference8 = obj8; - ref QuestSequence reference9 = ref span[8]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 8 @@ -258768,21 +313562,26 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1033743u, new Vector3(-369.83295f, 5.6262345f, -94.80432f), 813) + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.Interact, 1033743u, new Vector3(-369.83295f, 5.6262345f, -94.80432f), 813) { Fly = true }; obj9.Steps = list11; reference9 = obj9; - ref QuestSequence reference10 = ref span[9]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) { Fly = true }; @@ -258795,13 +313594,16 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "Theo"; + Span span13 = CollectionsMarshal.AsSpan(list13); + index = 0; + span13[index] = "Theo"; questRoot2.Author = list13; - num = 5; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span4 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference11 = ref span4[0]; + index = 5; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference11 = ref span14[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -258809,24 +313611,30 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj11.Steps = list15; reference11 = obj11; - ref QuestSequence reference12 = ref span4[1]; + num++; + ref QuestSequence reference12 = ref span14[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1033744u, new Vector3(-354.5434f, 100.1054f, -603.7537f), 813) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.Interact, 1033744u, new Vector3(-354.5434f, 100.1054f, -603.7537f), 813) { Fly = true }; obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference13 = ref span4[2]; + num++; + ref QuestSequence reference13 = ref span14[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -258834,21 +313642,27 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1033746u, new Vector3(-351.36957f, 100.1054f, -603.60114f), 813); + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.Interact, 1033746u, new Vector3(-351.36957f, 100.1054f, -603.60114f), 813); obj13.Steps = list17; reference13 = obj13; - ref QuestSequence reference14 = ref span4[3]; + num++; + ref QuestSequence reference14 = ref span14[num]; QuestSequence obj14 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1033729u, new Vector3(-355.6115f, 100.1054f, -603.20447f), 813); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.Interact, 1033729u, new Vector3(-355.6115f, 100.1054f, -603.20447f), 813); obj14.Steps = list18; reference14 = obj14; - ref QuestSequence reference15 = ref span4[4]; + num++; + ref QuestSequence reference15 = ref span14[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -258856,7 +313670,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) { Fly = true }; @@ -258869,26 +313685,32 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + Span span20 = CollectionsMarshal.AsSpan(list20); + index = 0; + span20[index] = "liza"; questRoot3.Author = list20; - num = 4; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span5 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference16 = ref span5[0]; + index = 4; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + Span span21 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference16 = ref span21[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span6 = CollectionsMarshal.AsSpan(list22); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span6[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span22[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span5[1]; + num++; + ref QuestSequence reference17 = ref span21[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -258896,30 +313718,36 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1034103u, new Vector3(-674.7692f, 52.60457f, -148.05829f), 813) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.Interact, 1034103u, new Vector3(-674.7692f, 52.60457f, -148.05829f), 813) { Fly = true }; obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span5[2]; + num++; + ref QuestSequence reference18 = ref span21[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span7 = CollectionsMarshal.AsSpan(list24); - span7[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 2; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31147u, ItemCount = 3 }; - span7[1] = new QuestStep(EInteractionType.Interact, 1034103u, new Vector3(-674.7692f, 52.60457f, -148.05829f), 813); + num2++; + span24[num2] = new QuestStep(EInteractionType.Interact, 1034103u, new Vector3(-674.7692f, 52.60457f, -148.05829f), 813); obj18.Steps = list24; reference18 = obj18; - ref QuestSequence reference19 = ref span5[3]; + num++; + ref QuestSequence reference19 = ref span21[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -258927,12 +313755,14 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span8 = CollectionsMarshal.AsSpan(list25); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span8[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span25[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj19.Steps = list25; reference19 = obj19; questRoot3.QuestSequence = list21; @@ -258942,26 +313772,32 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "liza"; + Span span26 = CollectionsMarshal.AsSpan(list26); + index = 0; + span26[index] = "liza"; questRoot4.Author = list26; - num = 3; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span9 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span9[0]; + index = 3; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + Span span27 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span27[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - Span span10 = CollectionsMarshal.AsSpan(list28); - span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span10[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span28[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj20.Steps = list28; reference20 = obj20; - ref QuestSequence reference21 = ref span9[1]; + num++; + ref QuestSequence reference21 = ref span27[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -258969,7 +313805,9 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1034105u, new Vector3(775.9059f, 21.325724f, 21.286316f), 813) + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.Interact, 1034105u, new Vector3(775.9059f, 21.325724f, 21.286316f), 813) { StopDistance = 1f, Fly = true, @@ -258977,26 +313815,30 @@ public static class AssemblyQuestLoader }; obj21.Steps = list29; reference21 = obj21; - ref QuestSequence reference22 = ref span9[2]; + num++; + ref QuestSequence reference22 = ref span27[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - Span span11 = CollectionsMarshal.AsSpan(list30); - span11[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 3; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span30[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31149u, ItemCount = 2 }; - span11[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + num2++; + span30[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span11[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span30[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj22.Steps = list30; reference22 = obj22; questRoot4.QuestSequence = list27; @@ -259006,13 +313848,16 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "liza"; + Span span31 = CollectionsMarshal.AsSpan(list31); + index = 0; + span31[index] = "liza"; questRoot5.Author = list31; - num = 3; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span12 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference23 = ref span12[0]; + index = 3; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + Span span32 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference23 = ref span32[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -259020,23 +313865,29 @@ public static class AssemblyQuestLoader num2 = 2; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span13 = CollectionsMarshal.AsSpan(list33); - span13[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span13[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span33[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj23.Steps = list33; reference23 = obj23; - ref QuestSequence reference24 = ref span12[1]; + num++; + ref QuestSequence reference24 = ref span32[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); obj24.Steps = list34; reference24 = obj24; - ref QuestSequence reference25 = ref span12[2]; + num++; + ref QuestSequence reference25 = ref span32[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -259044,14 +313895,17 @@ public static class AssemblyQuestLoader num2 = 3; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span14 = CollectionsMarshal.AsSpan(list35); - span14[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31151u, ItemCount = 4 }; - span14[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span14[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span35[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span35[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj25.Steps = list35; reference25 = obj25; questRoot5.QuestSequence = list32; @@ -259061,26 +313915,32 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "liza"; questRoot6.Author = list36; - num = 3; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span15 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference26 = ref span15[0]; + index = 3; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference26 = ref span37[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span16 = CollectionsMarshal.AsSpan(list38); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span16[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span38[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj26.Steps = list38; reference26 = obj26; - ref QuestSequence reference27 = ref span15[1]; + num++; + ref QuestSequence reference27 = ref span37[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -259088,8 +313948,9 @@ public static class AssemblyQuestLoader num2 = 3; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span17 = CollectionsMarshal.AsSpan(list39); - ref QuestStep reference28 = ref span17[0]; + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + ref QuestStep reference28 = ref span39[index2]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 2011179u, new Vector3(-304.036f, 19.860376f, -244.1596f), 813) { Fly = true @@ -259097,34 +313958,49 @@ public static class AssemblyQuestLoader int num3 = 6; List> list40 = new List>(num3); CollectionsMarshal.SetCount(list40, num3); - Span> span18 = CollectionsMarshal.AsSpan(list40); - span18[0] = null; - span18[1] = null; - ref List reference29 = ref span18[2]; - int num4 = 2; - List list41 = new List(num4); - CollectionsMarshal.SetCount(list41, num4); - Span span19 = CollectionsMarshal.AsSpan(list41); - span19[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span19[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + Span> span40 = CollectionsMarshal.AsSpan(list40); + int num4 = 0; + span40[num4] = null; + num4++; + span40[num4] = null; + num4++; + ref List reference29 = ref span40[num4]; + int num5 = 2; + List list41 = new List(num5); + CollectionsMarshal.SetCount(list41, num5); + Span span41 = CollectionsMarshal.AsSpan(list41); + int num6 = 0; + span41[num6] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span41[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference29 = list41; - span18[3] = null; - span18[4] = null; - span18[5] = null; + num4++; + span40[num4] = null; + num4++; + span40[num4] = null; + num4++; + span40[num4] = null; obj28.RequiredQuestVariables = list40; - num3 = 6; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span20 = CollectionsMarshal.AsSpan(list42); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list42 = new List(num4); + CollectionsMarshal.SetCount(list42, num4); + Span span42 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj28.CompletionQuestVariablesFlags = list42; reference28 = obj28; - ref QuestStep reference30 = ref span17[1]; + index2++; + ref QuestStep reference30 = ref span39[index2]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 2011178u, new Vector3(-267.5365f, 14.389221f, -191.63806f), 813) { Fly = true @@ -259132,34 +314008,49 @@ public static class AssemblyQuestLoader num3 = 6; List> list43 = new List>(num3); CollectionsMarshal.SetCount(list43, num3); - Span> span21 = CollectionsMarshal.AsSpan(list43); - span21[0] = null; - span21[1] = null; - ref List reference31 = ref span21[2]; - num4 = 2; - List list44 = new List(num4); - CollectionsMarshal.SetCount(list44, num4); - Span span22 = CollectionsMarshal.AsSpan(list44); - span22[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span22[1] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + Span> span43 = CollectionsMarshal.AsSpan(list43); + num4 = 0; + span43[num4] = null; + num4++; + span43[num4] = null; + num4++; + ref List reference31 = ref span43[num4]; + num6 = 2; + List list44 = new List(num6); + CollectionsMarshal.SetCount(list44, num6); + Span span44 = CollectionsMarshal.AsSpan(list44); + num5 = 0; + span44[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span44[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference31 = list44; - span21[3] = null; - span21[4] = null; - span21[5] = null; + num4++; + span43[num4] = null; + num4++; + span43[num4] = null; + num4++; + span43[num4] = null; obj29.RequiredQuestVariables = list43; - num3 = 6; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - Span span23 = CollectionsMarshal.AsSpan(list45); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list45 = new List(num4); + CollectionsMarshal.SetCount(list45, num4); + Span span45 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj29.CompletionQuestVariablesFlags = list45; reference30 = obj29; - ref QuestStep reference32 = ref span17[2]; + index2++; + ref QuestStep reference32 = ref span39[index2]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 2011177u, new Vector3(-236.13336f, 21.042175f, -223.0412f), 813) { Fly = true @@ -259167,49 +314058,66 @@ public static class AssemblyQuestLoader num3 = 6; List> list46 = new List>(num3); CollectionsMarshal.SetCount(list46, num3); - Span> span24 = CollectionsMarshal.AsSpan(list46); - span24[0] = null; - span24[1] = null; - ref List reference33 = ref span24[2]; - num4 = 2; - List list47 = new List(num4); - CollectionsMarshal.SetCount(list47, num4); - Span span25 = CollectionsMarshal.AsSpan(list47); - span25[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span25[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + Span> span46 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span46[num4] = null; + num4++; + span46[num4] = null; + num4++; + ref List reference33 = ref span46[num4]; + num5 = 2; + List list47 = new List(num5); + CollectionsMarshal.SetCount(list47, num5); + Span span47 = CollectionsMarshal.AsSpan(list47); + num6 = 0; + span47[num6] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num6++; + span47[num6] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference33 = list47; - span24[3] = null; - span24[4] = null; - span24[5] = null; + num4++; + span46[num4] = null; + num4++; + span46[num4] = null; + num4++; + span46[num4] = null; obj30.RequiredQuestVariables = list46; - num3 = 6; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - Span span26 = CollectionsMarshal.AsSpan(list48); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list48 = new List(num4); + CollectionsMarshal.SetCount(list48, num4); + Span span48 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj30.CompletionQuestVariablesFlags = list48; reference32 = obj30; obj27.Steps = list39; reference27 = obj27; - ref QuestSequence reference34 = ref span15[2]; + num++; + ref QuestSequence reference34 = ref span37[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span27 = CollectionsMarshal.AsSpan(list49); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span49[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj31.Steps = list49; reference34 = obj31; questRoot6.QuestSequence = list37; @@ -259219,13 +314127,16 @@ public static class AssemblyQuestLoader num = 1; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = "liza"; + Span span50 = CollectionsMarshal.AsSpan(list50); + index = 0; + span50[index] = "liza"; questRoot7.Author = list50; - num = 4; - List list51 = new List(num); - CollectionsMarshal.SetCount(list51, num); - Span span28 = CollectionsMarshal.AsSpan(list51); - ref QuestSequence reference35 = ref span28[0]; + index = 4; + List list51 = new List(index); + CollectionsMarshal.SetCount(list51, index); + Span span51 = CollectionsMarshal.AsSpan(list51); + num = 0; + ref QuestSequence reference35 = ref span51[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -259233,23 +314144,29 @@ public static class AssemblyQuestLoader num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span29 = CollectionsMarshal.AsSpan(list52); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span29[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span52[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj32.Steps = list52; reference35 = obj32; - ref QuestSequence reference36 = ref span28[1]; + num++; + ref QuestSequence reference36 = ref span51[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); obj33.Steps = list53; reference36 = obj33; - ref QuestSequence reference37 = ref span28[2]; + num++; + ref QuestSequence reference37 = ref span51[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -259257,33 +314174,38 @@ public static class AssemblyQuestLoader num2 = 2; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span30 = CollectionsMarshal.AsSpan(list54); - span30[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31153u, ItemCount = 3 }; - span30[1] = new QuestStep(EInteractionType.Interact, 1034112u, new Vector3(115.983765f, 106.73271f, -551.7815f), 813) + index2++; + span54[index2] = new QuestStep(EInteractionType.Interact, 1034112u, new Vector3(115.983765f, 106.73271f, -551.7815f), 813) { Fly = true }; obj34.Steps = list54; reference37 = obj34; - ref QuestSequence reference38 = ref span28[3]; + num++; + ref QuestSequence reference38 = ref span51[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span31 = CollectionsMarshal.AsSpan(list55); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span31[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span55[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj35.Steps = list55; reference38 = obj35; questRoot7.QuestSequence = list51; @@ -259293,13 +314215,16 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "pot0to"; + Span span56 = CollectionsMarshal.AsSpan(list56); + index = 0; + span56[index] = "pot0to"; questRoot8.Author = list56; - num = 3; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span32 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference39 = ref span32[0]; + index = 3; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + Span span57 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference39 = ref span57[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -259307,20 +314232,25 @@ public static class AssemblyQuestLoader num2 = 2; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span33 = CollectionsMarshal.AsSpan(list58); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span33[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span58[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj36.Steps = list58; reference39 = obj36; - ref QuestSequence reference40 = ref span32[1]; + num++; + ref QuestSequence reference40 = ref span57[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1034115u, new Vector3(732.3567f, 21.798542f, -77.62268f), 813) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.Interact, 1034115u, new Vector3(732.3567f, 21.798542f, -77.62268f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb, @@ -259334,7 +314264,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list59; reference40 = obj37; - ref QuestSequence reference41 = ref span32[2]; + num++; + ref QuestSequence reference41 = ref span57[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -259342,13 +314273,15 @@ public static class AssemblyQuestLoader num2 = 3; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span34 = CollectionsMarshal.AsSpan(list60); - span34[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31155u, ItemCount = 2 }; - span34[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2++; + span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -259365,7 +314298,8 @@ public static class AssemblyQuestLoader } } }; - span34[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span60[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj38.Steps = list60; reference41 = obj38; questRoot8.QuestSequence = list57; @@ -259375,26 +314309,32 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "plogon_enjoyer"; + Span span61 = CollectionsMarshal.AsSpan(list61); + index = 0; + span61[index] = "plogon_enjoyer"; questRoot9.Author = list61; - num = 3; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span35 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference42 = ref span35[0]; + index = 3; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + Span span62 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference42 = ref span62[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span36 = CollectionsMarshal.AsSpan(list63); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span36[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span63[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj39.Steps = list63; reference42 = obj39; - ref QuestSequence reference43 = ref span35[1]; + num++; + ref QuestSequence reference43 = ref span62[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -259402,31 +314342,37 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1034118u, new Vector3(-55.49713f, 98.10251f, -624.7501f), 813) + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.Interact, 1034118u, new Vector3(-55.49713f, 98.10251f, -624.7501f), 813) { Fly = true }; obj40.Steps = list64; reference43 = obj40; - ref QuestSequence reference44 = ref span35[2]; + num++; + ref QuestSequence reference44 = ref span62[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - Span span37 = CollectionsMarshal.AsSpan(list65); - span37[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 3; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span65[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31157u, ItemCount = 3 }; - span37[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + num2++; + span65[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span37[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span65[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj41.Steps = list65; reference44 = obj41; questRoot9.QuestSequence = list62; @@ -259436,13 +314382,16 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "liza"; + Span span66 = CollectionsMarshal.AsSpan(list66); + index = 0; + span66[index] = "liza"; questRoot10.Author = list66; - num = 3; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span38 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference45 = ref span38[0]; + index = 3; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + Span span67 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference45 = ref span67[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -259450,21 +314399,25 @@ public static class AssemblyQuestLoader num2 = 2; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span39 = CollectionsMarshal.AsSpan(list68); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span39[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span68[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj42.Steps = list68; reference45 = obj42; - ref QuestSequence reference46 = ref span38[1]; + num++; + ref QuestSequence reference46 = ref span67[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - Span span40 = CollectionsMarshal.AsSpan(list69); - ref QuestStep reference47 = ref span40[0]; + index2 = 3; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + ref QuestStep reference47 = ref span69[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Say, 1033770u, new Vector3(-410.11676f, 91.978714f, -426.71857f), 813) { Fly = true, @@ -259476,21 +314429,30 @@ public static class AssemblyQuestLoader num3 = 6; List> list70 = new List>(num3); CollectionsMarshal.SetCount(list70, num3); - Span> span41 = CollectionsMarshal.AsSpan(list70); - span41[0] = null; - span41[1] = null; - ref List reference48 = ref span41[2]; - num4 = 1; - List list71 = new List(num4); - CollectionsMarshal.SetCount(list71, num4); - CollectionsMarshal.AsSpan(list71)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span> span70 = CollectionsMarshal.AsSpan(list70); + num4 = 0; + span70[num4] = null; + num4++; + span70[num4] = null; + num4++; + ref List reference48 = ref span70[num4]; + num6 = 1; + List list71 = new List(num6); + CollectionsMarshal.SetCount(list71, num6); + Span span71 = CollectionsMarshal.AsSpan(list71); + num5 = 0; + span71[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference48 = list71; - span41[3] = null; - span41[4] = null; - span41[5] = null; + num4++; + span70[num4] = null; + num4++; + span70[num4] = null; + num4++; + span70[num4] = null; obj44.RequiredQuestVariables = list70; reference47 = obj44; - ref QuestStep reference49 = ref span40[1]; + num2++; + ref QuestStep reference49 = ref span69[num2]; QuestStep obj45 = new QuestStep(EInteractionType.Say, 1033771u, new Vector3(-396.07843f, 93.51564f, -419.11957f), 813) { Fly = true, @@ -259499,24 +314461,33 @@ public static class AssemblyQuestLoader Key = "TEXT_BANDWA108_03909_SAYTODO_000_030" } }; - num3 = 6; - List> list72 = new List>(num3); - CollectionsMarshal.SetCount(list72, num3); - Span> span42 = CollectionsMarshal.AsSpan(list72); - span42[0] = null; - span42[1] = null; - ref List reference50 = ref span42[2]; - num4 = 1; - List list73 = new List(num4); - CollectionsMarshal.SetCount(list73, num4); - CollectionsMarshal.AsSpan(list73)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list72 = new List>(num4); + CollectionsMarshal.SetCount(list72, num4); + Span> span72 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + ref List reference50 = ref span72[num3]; + num5 = 1; + List list73 = new List(num5); + CollectionsMarshal.SetCount(list73, num5); + Span span73 = CollectionsMarshal.AsSpan(list73); + num6 = 0; + span73[num6] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference50 = list73; - span42[3] = null; - span42[4] = null; - span42[5] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = null; obj45.RequiredQuestVariables = list72; reference49 = obj45; - ref QuestStep reference51 = ref span40[2]; + num2++; + ref QuestStep reference51 = ref span69[num2]; QuestStep obj46 = new QuestStep(EInteractionType.Say, 1033772u, new Vector3(-399.80164f, 91.33075f, -441.42828f), 813) { Fly = true, @@ -259528,23 +314499,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list74 = new List>(num3); CollectionsMarshal.SetCount(list74, num3); - Span> span43 = CollectionsMarshal.AsSpan(list74); - span43[0] = null; - span43[1] = null; - ref List reference52 = ref span43[2]; - num4 = 1; - List list75 = new List(num4); - CollectionsMarshal.SetCount(list75, num4); - CollectionsMarshal.AsSpan(list75)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + Span> span74 = CollectionsMarshal.AsSpan(list74); + num4 = 0; + span74[num4] = null; + num4++; + span74[num4] = null; + num4++; + ref List reference52 = ref span74[num4]; + num6 = 1; + List list75 = new List(num6); + CollectionsMarshal.SetCount(list75, num6); + Span span75 = CollectionsMarshal.AsSpan(list75); + num5 = 0; + span75[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference52 = list75; - span43[3] = null; - span43[4] = null; - span43[5] = null; + num4++; + span74[num4] = null; + num4++; + span74[num4] = null; + num4++; + span74[num4] = null; obj46.RequiredQuestVariables = list74; reference51 = obj46; obj43.Steps = list69; reference46 = obj43; - ref QuestSequence reference53 = ref span38[2]; + num++; + ref QuestSequence reference53 = ref span67[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue @@ -259552,12 +314532,14 @@ public static class AssemblyQuestLoader num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span44 = CollectionsMarshal.AsSpan(list76); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span44[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span76[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj47.Steps = list76; reference53 = obj47; questRoot10.QuestSequence = list67; @@ -259567,26 +314549,32 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "liza"; + Span span77 = CollectionsMarshal.AsSpan(list77); + index = 0; + span77[index] = "liza"; questRoot11.Author = list77; - num = 4; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span45 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference54 = ref span45[0]; + index = 4; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + Span span78 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference54 = ref span78[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span46 = CollectionsMarshal.AsSpan(list79); - span46[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span46[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span79[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj48.Steps = list79; reference54 = obj48; - ref QuestSequence reference55 = ref span45[1]; + num++; + ref QuestSequence reference55 = ref span78[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 @@ -259594,30 +314582,36 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60085f, -431.81506f), 813); + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60085f, -431.81506f), 813); obj49.Steps = list80; reference55 = obj49; - ref QuestSequence reference56 = ref span45[2]; + num++; + ref QuestSequence reference56 = ref span78[num]; QuestSequence obj50 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - Span span47 = CollectionsMarshal.AsSpan(list81); - span47[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 2; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31159u, ItemCount = 3 }; - span47[1] = new QuestStep(EInteractionType.Interact, 1033773u, new Vector3(-629.3279f, 56.201706f, -139.29962f), 813) + num2++; + span81[num2] = new QuestStep(EInteractionType.Interact, 1033773u, new Vector3(-629.3279f, 56.201706f, -139.29962f), 813) { Fly = true }; obj50.Steps = list81; reference56 = obj50; - ref QuestSequence reference57 = ref span45[3]; + num++; + ref QuestSequence reference57 = ref span78[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -259625,12 +314619,14 @@ public static class AssemblyQuestLoader num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span48 = CollectionsMarshal.AsSpan(list82); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span48[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span82[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj51.Steps = list82; reference57 = obj51; questRoot11.QuestSequence = list78; @@ -259640,26 +314636,32 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "liza"; + Span span83 = CollectionsMarshal.AsSpan(list83); + index = 0; + span83[index] = "liza"; questRoot12.Author = list83; - num = 3; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span49 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference58 = ref span49[0]; + index = 3; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + Span span84 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference58 = ref span84[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span50 = CollectionsMarshal.AsSpan(list85); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span50[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span85[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span85[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj52.Steps = list85; reference58 = obj52; - ref QuestSequence reference59 = ref span49[1]; + num++; + ref QuestSequence reference59 = ref span84[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 @@ -259667,25 +314669,31 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60085f, -431.81506f), 813); + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60085f, -431.81506f), 813); obj53.Steps = list86; reference59 = obj53; - ref QuestSequence reference60 = ref span49[2]; + num++; + ref QuestSequence reference60 = ref span84[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span51 = CollectionsMarshal.AsSpan(list87); - span51[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 3; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31161u, ItemCount = 1 }; - span51[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span51[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span87[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span87[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj54.Steps = list87; reference60 = obj54; questRoot12.QuestSequence = list84; @@ -259695,13 +314703,16 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "pot0to"; + Span span88 = CollectionsMarshal.AsSpan(list88); + index = 0; + span88[index] = "pot0to"; questRoot13.Author = list88; - num = 4; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span52 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference61 = ref span52[0]; + index = 4; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + Span span89 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference61 = ref span89[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -259709,8 +314720,9 @@ public static class AssemblyQuestLoader num2 = 2; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span53 = CollectionsMarshal.AsSpan(list90); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -259722,18 +314734,22 @@ public static class AssemblyQuestLoader } } }; - span53[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span90[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj55.Steps = list90; reference61 = obj55; - ref QuestSequence reference62 = ref span52[1]; + num++; + ref QuestSequence reference62 = ref span89[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.UseItem, 2011166u, new Vector3(-721.70593f, 68.86389f, -1.5107422f), 813) + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span91[num2] = new QuestStep(EInteractionType.UseItem, 2011166u, new Vector3(-721.70593f, 68.86389f, -1.5107422f), 813) { Fly = true, ItemId = 2003030u, @@ -259741,7 +314757,8 @@ public static class AssemblyQuestLoader }; obj56.Steps = list91; reference62 = obj56; - ref QuestSequence reference63 = ref span52[2]; + num++; + ref QuestSequence reference63 = ref span89[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -259749,23 +314766,28 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1034059u, new Vector3(-725.70386f, 68.86053f, 2.2124634f), 813); + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.Interact, 1034059u, new Vector3(-725.70386f, 68.86053f, 2.2124634f), 813); obj57.Steps = list92; reference63 = obj57; - ref QuestSequence reference64 = ref span52[3]; + num++; + ref QuestSequence reference64 = ref span89[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span54 = CollectionsMarshal.AsSpan(list93); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span54[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span93[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj58.Steps = list93; reference64 = obj58; questRoot13.QuestSequence = list89; @@ -259775,13 +314797,16 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "pot0to"; + Span span94 = CollectionsMarshal.AsSpan(list94); + index = 0; + span94[index] = "pot0to"; questRoot14.Author = list94; - num = 4; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span55 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference65 = ref span55[0]; + index = 4; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + Span span95 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference65 = ref span95[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -259789,8 +314814,9 @@ public static class AssemblyQuestLoader num2 = 2; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span56 = CollectionsMarshal.AsSpan(list96); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -259802,21 +314828,26 @@ public static class AssemblyQuestLoader } } }; - span56[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span96[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj59.Steps = list96; reference65 = obj59; - ref QuestSequence reference66 = ref span55[1]; + num++; + ref QuestSequence reference66 = ref span95[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span97[num2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); obj60.Steps = list97; reference66 = obj60; - ref QuestSequence reference67 = ref span55[2]; + num++; + ref QuestSequence reference67 = ref span95[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 @@ -259824,32 +314855,37 @@ public static class AssemblyQuestLoader num2 = 2; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span57 = CollectionsMarshal.AsSpan(list98); - span57[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span98[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31163u, ItemCount = 3 }; - span57[1] = new QuestStep(EInteractionType.Interact, 1034061u, new Vector3(-355.97772f, 100.1054f, -636.53015f), 813) + index2++; + span98[index2] = new QuestStep(EInteractionType.Interact, 1034061u, new Vector3(-355.97772f, 100.1054f, -636.53015f), 813) { Fly = true }; obj61.Steps = list98; reference67 = obj61; - ref QuestSequence reference68 = ref span55[3]; + num++; + ref QuestSequence reference68 = ref span95[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - Span span58 = CollectionsMarshal.AsSpan(list99); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span99[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj62.Steps = list99; reference68 = obj62; questRoot14.QuestSequence = list95; @@ -259859,13 +314895,16 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "pot0to"; + Span span100 = CollectionsMarshal.AsSpan(list100); + index = 0; + span100[index] = "pot0to"; questRoot15.Author = list100; - num = 3; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span59 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference69 = ref span59[0]; + index = 3; + List list101 = new List(index); + CollectionsMarshal.SetCount(list101, index); + Span span101 = CollectionsMarshal.AsSpan(list101); + num = 0; + ref QuestSequence reference69 = ref span101[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -259873,30 +314912,36 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span60 = CollectionsMarshal.AsSpan(list102); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span102[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span60[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span102[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj63.Steps = list102; reference69 = obj63; - ref QuestSequence reference70 = ref span59[1]; + num++; + ref QuestSequence reference70 = ref span101[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1034062u, new Vector3(214.92322f, 140.93163f, -570.09235f), 813) + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span103[num2] = new QuestStep(EInteractionType.Interact, 1034062u, new Vector3(214.92322f, 140.93163f, -570.09235f), 813) { Fly = true }; obj64.Steps = list103; reference70 = obj64; - ref QuestSequence reference71 = ref span59[2]; + num++; + ref QuestSequence reference71 = ref span101[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -259904,17 +314949,20 @@ public static class AssemblyQuestLoader num2 = 3; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span61 = CollectionsMarshal.AsSpan(list104); - span61[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31165u, ItemCount = 2 }; - span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2++; + span104[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span61[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span104[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj65.Steps = list104; reference71 = obj65; questRoot15.QuestSequence = list101; @@ -259924,26 +314972,32 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - CollectionsMarshal.AsSpan(list105)[0] = "liza"; + Span span105 = CollectionsMarshal.AsSpan(list105); + index = 0; + span105[index] = "liza"; questRoot16.Author = list105; - num = 4; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - Span span62 = CollectionsMarshal.AsSpan(list106); - ref QuestSequence reference72 = ref span62[0]; + index = 4; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + Span span106 = CollectionsMarshal.AsSpan(list106); + num = 0; + ref QuestSequence reference72 = ref span106[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - Span span63 = CollectionsMarshal.AsSpan(list107); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span63[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span107[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj66.Steps = list107; reference72 = obj66; - ref QuestSequence reference73 = ref span62[1]; + num++; + ref QuestSequence reference73 = ref span106[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 @@ -259951,33 +315005,39 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1033750u, new Vector3(-591.3329f, 72.00111f, -451.01093f), 813) + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.Interact, 1033750u, new Vector3(-591.3329f, 72.00111f, -451.01093f), 813) { StopDistance = 5f }; obj67.Steps = list108; reference73 = obj67; - ref QuestSequence reference74 = ref span62[2]; + num++; + ref QuestSequence reference74 = ref span106[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span64 = CollectionsMarshal.AsSpan(list109); - span64[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 2; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31167u, ItemCount = 1 }; - span64[1] = new QuestStep(EInteractionType.Interact, 1033750u, new Vector3(-591.3329f, 72.00111f, -451.01093f), 813) + num2++; + span109[num2] = new QuestStep(EInteractionType.Interact, 1033750u, new Vector3(-591.3329f, 72.00111f, -451.01093f), 813) { StopDistance = 5f }; obj68.Steps = list109; reference74 = obj68; - ref QuestSequence reference75 = ref span62[3]; + num++; + ref QuestSequence reference75 = ref span106[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -259985,12 +315045,14 @@ public static class AssemblyQuestLoader num2 = 2; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span65 = CollectionsMarshal.AsSpan(list110); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span65[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span110[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj69.Steps = list110; reference75 = obj69; questRoot16.QuestSequence = list106; @@ -260000,26 +315062,32 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "liza"; + Span span111 = CollectionsMarshal.AsSpan(list111); + index = 0; + span111[index] = "liza"; questRoot17.Author = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span66 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference76 = ref span66[0]; + index = 3; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + Span span112 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference76 = ref span112[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - Span span67 = CollectionsMarshal.AsSpan(list113); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span67[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span113[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj70.Steps = list113; reference76 = obj70; - ref QuestSequence reference77 = ref span66[1]; + num++; + ref QuestSequence reference77 = ref span112[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 @@ -260027,168 +315095,235 @@ public static class AssemblyQuestLoader num2 = 4; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span68 = CollectionsMarshal.AsSpan(list114); - ref QuestStep reference78 = ref span68[0]; + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + ref QuestStep reference78 = ref span114[index2]; QuestStep obj72 = new QuestStep(EInteractionType.Interact, 2011169u, new Vector3(-95.903015f, 1.6326294f, 41.244995f), 813) { Fly = true }; - num3 = 6; - List> list115 = new List>(num3); - CollectionsMarshal.SetCount(list115, num3); - Span> span69 = CollectionsMarshal.AsSpan(list115); - span69[0] = null; - span69[1] = null; - span69[2] = null; - ref List reference79 = ref span69[3]; - num4 = 3; - List list116 = new List(num4); - CollectionsMarshal.SetCount(list116, num4); - Span span70 = CollectionsMarshal.AsSpan(list116); - span70[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span70[1] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); - span70[2] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list115 = new List>(num4); + CollectionsMarshal.SetCount(list115, num4); + Span> span115 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + ref List reference79 = ref span115[num3]; + num5 = 3; + List list116 = new List(num5); + CollectionsMarshal.SetCount(list116, num5); + Span span116 = CollectionsMarshal.AsSpan(list116); + num6 = 0; + span116[num6] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num6++; + span116[num6] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); + num6++; + span116[num6] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); reference79 = list116; - span69[4] = null; - span69[5] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; obj72.RequiredQuestVariables = list115; num3 = 6; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - Span span71 = CollectionsMarshal.AsSpan(list117); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span117 = CollectionsMarshal.AsSpan(list117); + num4 = 0; + span117[num4] = null; + num4++; + span117[num4] = null; + num4++; + span117[num4] = null; + num4++; + span117[num4] = null; + num4++; + span117[num4] = null; + num4++; + span117[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj72.CompletionQuestVariablesFlags = list117; reference78 = obj72; - ref QuestStep reference80 = ref span68[1]; + index2++; + ref QuestStep reference80 = ref span114[index2]; QuestStep obj73 = new QuestStep(EInteractionType.Interact, 2011170u, new Vector3(-84.916504f, 2.39563f, 36.850464f), 813) { Fly = true }; - num3 = 6; - List> list118 = new List>(num3); - CollectionsMarshal.SetCount(list118, num3); - Span> span72 = CollectionsMarshal.AsSpan(list118); - span72[0] = null; - span72[1] = null; - span72[2] = null; - ref List reference81 = ref span72[3]; - num4 = 3; - List list119 = new List(num4); - CollectionsMarshal.SetCount(list119, num4); - Span span73 = CollectionsMarshal.AsSpan(list119); - span73[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span73[1] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - span73[2] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list118 = new List>(num4); + CollectionsMarshal.SetCount(list118, num4); + Span> span118 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; + num3++; + ref List reference81 = ref span118[num3]; + num6 = 3; + List list119 = new List(num6); + CollectionsMarshal.SetCount(list119, num6); + Span span119 = CollectionsMarshal.AsSpan(list119); + num5 = 0; + span119[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num5++; + span119[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num5++; + span119[num5] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); reference81 = list119; - span72[4] = null; - span72[5] = null; + num3++; + span118[num3] = null; + num3++; + span118[num3] = null; obj73.RequiredQuestVariables = list118; num3 = 6; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - Span span74 = CollectionsMarshal.AsSpan(list120); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span120 = CollectionsMarshal.AsSpan(list120); + num4 = 0; + span120[num4] = null; + num4++; + span120[num4] = null; + num4++; + span120[num4] = null; + num4++; + span120[num4] = null; + num4++; + span120[num4] = null; + num4++; + span120[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj73.CompletionQuestVariablesFlags = list120; reference80 = obj73; - ref QuestStep reference82 = ref span68[2]; + index2++; + ref QuestStep reference82 = ref span114[index2]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 2011171u, new Vector3(-68.55884f, 2.5177002f, 38.04065f), 813) { Fly = true }; - num3 = 6; - List> list121 = new List>(num3); - CollectionsMarshal.SetCount(list121, num3); - Span> span75 = CollectionsMarshal.AsSpan(list121); - span75[0] = null; - span75[1] = null; - span75[2] = null; - ref List reference83 = ref span75[3]; - num4 = 3; - List list122 = new List(num4); - CollectionsMarshal.SetCount(list122, num4); - Span span76 = CollectionsMarshal.AsSpan(list122); - span76[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span76[1] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); - span76[2] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list121 = new List>(num4); + CollectionsMarshal.SetCount(list121, num4); + Span> span121 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + ref List reference83 = ref span121[num3]; + num5 = 3; + List list122 = new List(num5); + CollectionsMarshal.SetCount(list122, num5); + Span span122 = CollectionsMarshal.AsSpan(list122); + num6 = 0; + span122[num6] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num6++; + span122[num6] = new QuestWorkValue((byte)5, null, EQuestWorkMode.Bitwise); + num6++; + span122[num6] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); reference83 = list122; - span75[4] = null; - span75[5] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; obj74.RequiredQuestVariables = list121; num3 = 6; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - Span span77 = CollectionsMarshal.AsSpan(list123); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span123 = CollectionsMarshal.AsSpan(list123); + num4 = 0; + span123[num4] = null; + num4++; + span123[num4] = null; + num4++; + span123[num4] = null; + num4++; + span123[num4] = null; + num4++; + span123[num4] = null; + num4++; + span123[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj74.CompletionQuestVariablesFlags = list123; reference82 = obj74; - ref QuestStep reference84 = ref span68[3]; + index2++; + ref QuestStep reference84 = ref span114[index2]; QuestStep obj75 = new QuestStep(EInteractionType.Interact, 2011172u, new Vector3(-70.2984f, 1.449585f, 62.210938f), 813) { Fly = true }; - num3 = 6; - List> list124 = new List>(num3); - CollectionsMarshal.SetCount(list124, num3); - Span> span78 = CollectionsMarshal.AsSpan(list124); - span78[0] = null; - span78[1] = null; - span78[2] = null; - ref List reference85 = ref span78[3]; - num4 = 3; - List list125 = new List(num4); - CollectionsMarshal.SetCount(list125, num4); - Span span79 = CollectionsMarshal.AsSpan(list125); - span79[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - span79[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span79[2] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list124 = new List>(num4); + CollectionsMarshal.SetCount(list124, num4); + Span> span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + ref List reference85 = ref span124[num3]; + num6 = 3; + List list125 = new List(num6); + CollectionsMarshal.SetCount(list125, num6); + Span span125 = CollectionsMarshal.AsSpan(list125); + num5 = 0; + span125[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num5++; + span125[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num5++; + span125[num5] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); reference85 = list125; - span78[4] = null; - span78[5] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = null; obj75.RequiredQuestVariables = list124; num3 = 6; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - Span span80 = CollectionsMarshal.AsSpan(list126); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span126 = CollectionsMarshal.AsSpan(list126); + num4 = 0; + span126[num4] = null; + num4++; + span126[num4] = null; + num4++; + span126[num4] = null; + num4++; + span126[num4] = null; + num4++; + span126[num4] = null; + num4++; + span126[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj75.CompletionQuestVariablesFlags = list126; reference84 = obj75; obj71.Steps = list114; reference77 = obj71; - ref QuestSequence reference86 = ref span66[2]; + num++; + ref QuestSequence reference86 = ref span112[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - Span span81 = CollectionsMarshal.AsSpan(list127); - span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span127[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj76.Steps = list127; reference86 = obj76; questRoot17.QuestSequence = list112; @@ -260198,13 +315333,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + Span span128 = CollectionsMarshal.AsSpan(list128); + index = 0; + span128[index] = "liza"; questRoot18.Author = list128; - num = 4; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span82 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference87 = ref span82[0]; + index = 4; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + Span span129 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference87 = ref span129[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -260212,23 +315350,29 @@ public static class AssemblyQuestLoader num2 = 2; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span83 = CollectionsMarshal.AsSpan(list130); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span83[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span130[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span130[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj77.Steps = list130; reference87 = obj77; - ref QuestSequence reference88 = ref span82[1]; + num++; + ref QuestSequence reference88 = ref span129[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span131[num2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); obj78.Steps = list131; reference88 = obj78; - ref QuestSequence reference89 = ref span82[2]; + num++; + ref QuestSequence reference89 = ref span129[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -260236,34 +315380,39 @@ public static class AssemblyQuestLoader num2 = 2; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span84 = CollectionsMarshal.AsSpan(list132); - span84[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span132 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span132[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31169u, ItemCount = 3 }; - span84[1] = new QuestStep(EInteractionType.Interact, 1033694u, new Vector3(593.19434f, 5.8981767f, 704.86f), 813) + index2++; + span132[index2] = new QuestStep(EInteractionType.Interact, 1033694u, new Vector3(593.19434f, 5.8981767f, 704.86f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj79.Steps = list132; reference89 = obj79; - ref QuestSequence reference90 = ref span82[3]; + num++; + ref QuestSequence reference90 = ref span129[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - Span span85 = CollectionsMarshal.AsSpan(list133); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span85[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span133[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj80.Steps = list133; reference90 = obj80; questRoot18.QuestSequence = list129; @@ -260273,13 +315422,16 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "liza"; + Span span134 = CollectionsMarshal.AsSpan(list134); + index = 0; + span134[index] = "liza"; questRoot19.Author = list134; - num = 4; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span86 = CollectionsMarshal.AsSpan(list135); - ref QuestSequence reference91 = ref span86[0]; + index = 4; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + Span span135 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref QuestSequence reference91 = ref span135[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -260287,26 +315439,32 @@ public static class AssemblyQuestLoader num2 = 2; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span87 = CollectionsMarshal.AsSpan(list136); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span87[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span136[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span136[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj81.Steps = list136; reference91 = obj81; - ref QuestSequence reference92 = ref span86[1]; + num++; + ref QuestSequence reference92 = ref span135[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1033695u, new Vector3(117.05188f, 7.07016f, 667.38367f), 813) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span137[num2] = new QuestStep(EInteractionType.Interact, 1033695u, new Vector3(117.05188f, 7.07016f, 667.38367f), 813) { Fly = true }; obj82.Steps = list137; reference92 = obj82; - ref QuestSequence reference93 = ref span86[2]; + num++; + ref QuestSequence reference93 = ref span135[num]; QuestSequence obj83 = new QuestSequence { Sequence = 2 @@ -260314,33 +315472,38 @@ public static class AssemblyQuestLoader num2 = 2; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span88 = CollectionsMarshal.AsSpan(list138); - span88[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span138 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span138[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31171u, ItemCount = 1 }; - span88[1] = new QuestStep(EInteractionType.Interact, 1033696u, new Vector3(119.035645f, 7.096028f, 667.5974f), 813) + index2++; + span138[index2] = new QuestStep(EInteractionType.Interact, 1033696u, new Vector3(119.035645f, 7.096028f, 667.5974f), 813) { StopDistance = 5f }; obj83.Steps = list138; reference93 = obj83; - ref QuestSequence reference94 = ref span86[3]; + num++; + ref QuestSequence reference94 = ref span135[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - Span span89 = CollectionsMarshal.AsSpan(list139); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + Span span139 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span139[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span89[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span139[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj84.Steps = list139; reference94 = obj84; questRoot19.QuestSequence = list135; @@ -260350,13 +315513,16 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - CollectionsMarshal.AsSpan(list140)[0] = "liza"; + Span span140 = CollectionsMarshal.AsSpan(list140); + index = 0; + span140[index] = "liza"; questRoot20.Author = list140; - num = 4; - List list141 = new List(num); - CollectionsMarshal.SetCount(list141, num); - Span span90 = CollectionsMarshal.AsSpan(list141); - ref QuestSequence reference95 = ref span90[0]; + index = 4; + List list141 = new List(index); + CollectionsMarshal.SetCount(list141, index); + Span span141 = CollectionsMarshal.AsSpan(list141); + num = 0; + ref QuestSequence reference95 = ref span141[num]; QuestSequence obj85 = new QuestSequence { Sequence = 0 @@ -260364,27 +315530,33 @@ public static class AssemblyQuestLoader num2 = 2; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span91 = CollectionsMarshal.AsSpan(list142); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span91[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + Span span142 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span142[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span142[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj85.Steps = list142; reference95 = obj85; - ref QuestSequence reference96 = ref span90[1]; + num++; + ref QuestSequence reference96 = ref span141[num]; QuestSequence obj86 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1033697u, new Vector3(705.2262f, 20.93061f, 29.007324f), 813) + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + Span span143 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span143[num2] = new QuestStep(EInteractionType.Interact, 1033697u, new Vector3(705.2262f, 20.93061f, 29.007324f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj86.Steps = list143; reference96 = obj86; - ref QuestSequence reference97 = ref span90[2]; + num++; + ref QuestSequence reference97 = ref span141[num]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -260392,27 +315564,32 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Emote, 1033697u, new Vector3(705.2262f, 20.93061f, 29.007324f), 813) + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span144[index2] = new QuestStep(EInteractionType.Emote, 1033697u, new Vector3(705.2262f, 20.93061f, 29.007324f), 813) { Emote = EEmote.Psych }; obj87.Steps = list144; reference97 = obj87; - ref QuestSequence reference98 = ref span90[3]; + num++; + ref QuestSequence reference98 = ref span141[num]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - Span span92 = CollectionsMarshal.AsSpan(list145); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span145[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span92[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span145[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj88.Steps = list145; reference98 = obj88; questRoot20.QuestSequence = list141; @@ -260422,13 +315599,16 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "pot0to"; + Span span146 = CollectionsMarshal.AsSpan(list146); + index = 0; + span146[index] = "pot0to"; questRoot21.Author = list146; - num = 4; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span93 = CollectionsMarshal.AsSpan(list147); - ref QuestSequence reference99 = ref span93[0]; + index = 4; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + Span span147 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference99 = ref span147[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -260436,23 +315616,29 @@ public static class AssemblyQuestLoader num2 = 2; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span94 = CollectionsMarshal.AsSpan(list148); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span94[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span148[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span148[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj89.Steps = list148; reference99 = obj89; - ref QuestSequence reference100 = ref span93[1]; + num++; + ref QuestSequence reference100 = ref span147[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); obj90.Steps = list149; reference100 = obj90; - ref QuestSequence reference101 = ref span93[2]; + num++; + ref QuestSequence reference101 = ref span147[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -260460,32 +315646,37 @@ public static class AssemblyQuestLoader num2 = 2; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span95 = CollectionsMarshal.AsSpan(list150); - span95[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31173u, ItemCount = 3 }; - span95[1] = new QuestStep(EInteractionType.Interact, 1033703u, new Vector3(-270.77136f, 93.37625f, -480.33875f), 813) + index2++; + span150[index2] = new QuestStep(EInteractionType.Interact, 1033703u, new Vector3(-270.77136f, 93.37625f, -480.33875f), 813) { Fly = true }; obj91.Steps = list150; reference101 = obj91; - ref QuestSequence reference102 = ref span93[3]; + num++; + ref QuestSequence reference102 = ref span147[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - Span span96 = CollectionsMarshal.AsSpan(list151); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span151[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span96[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span151[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj92.Steps = list151; reference102 = obj92; questRoot21.QuestSequence = list147; @@ -260495,13 +315686,16 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = "liza"; + Span span152 = CollectionsMarshal.AsSpan(list152); + index = 0; + span152[index] = "liza"; questRoot22.Author = list152; - num = 3; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span97 = CollectionsMarshal.AsSpan(list153); - ref QuestSequence reference103 = ref span97[0]; + index = 3; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + Span span153 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref QuestSequence reference103 = ref span153[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -260509,26 +315703,32 @@ public static class AssemblyQuestLoader num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span98 = CollectionsMarshal.AsSpan(list154); - span98[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span98[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span154[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj93.Steps = list154; reference103 = obj93; - ref QuestSequence reference104 = ref span97[1]; + num++; + ref QuestSequence reference104 = ref span153[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1033704u, new Vector3(-33.341064f, 21.204435f, -198.41309f), 813) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span155[num2] = new QuestStep(EInteractionType.Interact, 1033704u, new Vector3(-33.341064f, 21.204435f, -198.41309f), 813) { Fly = true }; obj94.Steps = list155; reference104 = obj94; - ref QuestSequence reference105 = ref span97[2]; + num++; + ref QuestSequence reference105 = ref span153[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -260536,17 +315736,20 @@ public static class AssemblyQuestLoader num2 = 3; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span99 = CollectionsMarshal.AsSpan(list156); - span99[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31175u, ItemCount = 1 }; - span99[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2++; + span156[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span99[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span156[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj95.Steps = list156; reference105 = obj95; questRoot22.QuestSequence = list153; @@ -260556,26 +315759,32 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "liza"; + Span span157 = CollectionsMarshal.AsSpan(list157); + index = 0; + span157[index] = "liza"; questRoot23.Author = list157; - num = 3; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span100 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference106 = ref span100[0]; + index = 3; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + Span span158 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestSequence reference106 = ref span158[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span101 = CollectionsMarshal.AsSpan(list159); - span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span101[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span159[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj96.Steps = list159; reference106 = obj96; - ref QuestSequence reference107 = ref span100[1]; + num++; + ref QuestSequence reference107 = ref span158[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -260583,26 +315792,34 @@ public static class AssemblyQuestLoader num2 = 3; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span102 = CollectionsMarshal.AsSpan(list160); - ref QuestStep reference108 = ref span102[0]; + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + ref QuestStep reference108 = ref span160[index2]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1033706u, new Vector3(-384.9088f, 105.85561f, -645.9602f), 813) { StopDistance = 2f, Fly = true }; - num3 = 6; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - Span span103 = CollectionsMarshal.AsSpan(list161); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list161 = new List(num4); + CollectionsMarshal.SetCount(list161, num4); + Span span161 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj98.CompletionQuestVariablesFlags = list161; reference108 = obj98; - ref QuestStep reference109 = ref span102[1]; + index2++; + ref QuestStep reference109 = ref span160[index2]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 1033705u, new Vector3(-380.3922f, 103.089836f, -669.8253f), 813) { Fly = true @@ -260610,48 +315827,64 @@ public static class AssemblyQuestLoader num3 = 6; List list162 = new List(num3); CollectionsMarshal.SetCount(list162, num3); - Span span104 = CollectionsMarshal.AsSpan(list162); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span162 = CollectionsMarshal.AsSpan(list162); + num4 = 0; + span162[num4] = null; + num4++; + span162[num4] = null; + num4++; + span162[num4] = null; + num4++; + span162[num4] = null; + num4++; + span162[num4] = null; + num4++; + span162[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj99.CompletionQuestVariablesFlags = list162; reference109 = obj99; - ref QuestStep reference110 = ref span102[2]; + index2++; + ref QuestStep reference110 = ref span160[index2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1033707u, new Vector3(-361.83722f, 103.57124f, -703.2731f), 813) { Fly = true }; - num3 = 6; - List list163 = new List(num3); - CollectionsMarshal.SetCount(list163, num3); - Span span105 = CollectionsMarshal.AsSpan(list163); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list163 = new List(num4); + CollectionsMarshal.SetCount(list163, num4); + Span span163 = CollectionsMarshal.AsSpan(list163); + num3 = 0; + span163[num3] = null; + num3++; + span163[num3] = null; + num3++; + span163[num3] = null; + num3++; + span163[num3] = null; + num3++; + span163[num3] = null; + num3++; + span163[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj100.CompletionQuestVariablesFlags = list163; reference110 = obj100; obj97.Steps = list160; reference107 = obj97; - ref QuestSequence reference111 = ref span100[2]; + num++; + ref QuestSequence reference111 = ref span158[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - Span span106 = CollectionsMarshal.AsSpan(list164); - span106[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span106[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span164[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj101.Steps = list164; reference111 = obj101; questRoot23.QuestSequence = list158; @@ -260661,13 +315894,16 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "liza"; + Span span165 = CollectionsMarshal.AsSpan(list165); + index = 0; + span165[index] = "liza"; questRoot24.Author = list165; - num = 5; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span107 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference112 = ref span107[0]; + index = 5; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + Span span166 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference112 = ref span166[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -260675,23 +315911,29 @@ public static class AssemblyQuestLoader num2 = 2; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span108 = CollectionsMarshal.AsSpan(list167); - span108[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span108[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span167[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj102.Steps = list167; reference112 = obj102; - ref QuestSequence reference113 = ref span107[1]; + num++; + ref QuestSequence reference113 = ref span166[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1033715u, new Vector3(-614.4961f, 65.60227f, -405.56958f), 813); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.Interact, 1033715u, new Vector3(-614.4961f, 65.60227f, -405.56958f), 813); obj103.Steps = list168; reference113 = obj103; - ref QuestSequence reference114 = ref span107[2]; + num++; + ref QuestSequence reference114 = ref span166[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 @@ -260699,7 +315941,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Action, 1034065u, new Vector3(-294.75854f, 99.225815f, -724.0253f), 813) + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.Action, 1034065u, new Vector3(-294.75854f, 99.225815f, -724.0253f), 813) { Fly = true, Land = true, @@ -260707,21 +315951,25 @@ public static class AssemblyQuestLoader }; obj104.Steps = list169; reference114 = obj104; - ref QuestSequence reference115 = ref span107[3]; + num++; + ref QuestSequence reference115 = ref span166[num]; QuestSequence obj105 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Action, 1034065u, new Vector3(-294.75854f, 99.225815f, -724.0253f), 813) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.Action, 1034065u, new Vector3(-294.75854f, 99.225815f, -724.0253f), 813) { Action = EAction.Cannonfire }; obj105.Steps = list170; reference115 = obj105; - ref QuestSequence reference116 = ref span107[4]; + num++; + ref QuestSequence reference116 = ref span166[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -260729,12 +315977,14 @@ public static class AssemblyQuestLoader num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span109 = CollectionsMarshal.AsSpan(list171); - span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span171[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span109[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813) + index2++; + span171[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813) { Mount = false }; @@ -260747,26 +315997,32 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - CollectionsMarshal.AsSpan(list172)[0] = "liza"; + Span span172 = CollectionsMarshal.AsSpan(list172); + index = 0; + span172[index] = "liza"; questRoot25.Author = list172; - num = 4; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - Span span110 = CollectionsMarshal.AsSpan(list173); - ref QuestSequence reference117 = ref span110[0]; + index = 4; + List list173 = new List(index); + CollectionsMarshal.SetCount(list173, index); + Span span173 = CollectionsMarshal.AsSpan(list173); + num = 0; + ref QuestSequence reference117 = ref span173[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - Span span111 = CollectionsMarshal.AsSpan(list174); - span111[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span111[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span174[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj107.Steps = list174; reference117 = obj107; - ref QuestSequence reference118 = ref span110[1]; + num++; + ref QuestSequence reference118 = ref span173[num]; QuestSequence obj108 = new QuestSequence { Sequence = 1 @@ -260774,27 +316030,33 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); + Span span175 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span175[index2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); obj108.Steps = list175; reference118 = obj108; - ref QuestSequence reference119 = ref span110[2]; + num++; + ref QuestSequence reference119 = ref span173[num]; QuestSequence obj109 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - Span span112 = CollectionsMarshal.AsSpan(list176); - span112[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 2; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + Span span176 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span176[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31177u, ItemCount = 1 }; - span112[1] = new QuestStep(EInteractionType.Interact, 1034070u, new Vector3(-796.47516f, 69.28625f, 117.29602f), 813); + num2++; + span176[num2] = new QuestStep(EInteractionType.Interact, 1034070u, new Vector3(-796.47516f, 69.28625f, 117.29602f), 813); obj109.Steps = list176; reference119 = obj109; - ref QuestSequence reference120 = ref span110[3]; + num++; + ref QuestSequence reference120 = ref span173[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -260802,12 +316064,14 @@ public static class AssemblyQuestLoader num2 = 2; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span113 = CollectionsMarshal.AsSpan(list177); - span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span177[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span113[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span177[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj110.Steps = list177; reference120 = obj110; questRoot25.QuestSequence = list173; @@ -260817,26 +316081,32 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "liza"; + Span span178 = CollectionsMarshal.AsSpan(list178); + index = 0; + span178[index] = "liza"; questRoot26.Author = list178; - num = 3; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span114 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference121 = ref span114[0]; + index = 3; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + Span span179 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference121 = ref span179[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - Span span115 = CollectionsMarshal.AsSpan(list180); - span115[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span115[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span180[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj111.Steps = list180; reference121 = obj111; - ref QuestSequence reference122 = ref span114[1]; + num++; + ref QuestSequence reference122 = ref span179[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -260844,31 +316114,37 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1034071u, new Vector3(-171.4046f, 5.779212f, -110.27698f), 813) + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span181[index2] = new QuestStep(EInteractionType.Interact, 1034071u, new Vector3(-171.4046f, 5.779212f, -110.27698f), 813) { Fly = true }; obj112.Steps = list181; reference122 = obj112; - ref QuestSequence reference123 = ref span114[2]; + num++; + ref QuestSequence reference123 = ref span179[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - Span span116 = CollectionsMarshal.AsSpan(list182); - span116[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 3; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31179u, ItemCount = 3 }; - span116[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + num2++; + span182[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span116[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span182[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj113.Steps = list182; reference123 = obj113; questRoot26.QuestSequence = list179; @@ -260878,13 +316154,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + Span span183 = CollectionsMarshal.AsSpan(list183); + index = 0; + span183[index] = "liza"; questRoot27.Author = list183; - num = 3; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span117 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference124 = ref span117[0]; + index = 3; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + Span span184 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference124 = ref span184[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -260892,28 +316171,34 @@ public static class AssemblyQuestLoader num2 = 2; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span118 = CollectionsMarshal.AsSpan(list185); - span118[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span118[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + index2++; + span185[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj114.Steps = list185; reference124 = obj114; - ref QuestSequence reference125 = ref span117[1]; + num++; + ref QuestSequence reference125 = ref span184[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - Span span119 = CollectionsMarshal.AsSpan(list186); - span119[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.174656f, 1.063369f, 661.43774f), 813) + index2 = 2; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span186[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.174656f, 1.063369f, 661.43774f), 813) { Fly = true }; - span119[1] = new QuestStep(EInteractionType.Interact, 1034072u, new Vector3(-25.92511f, 1.3904266f, 662.8976f), 813); + num2++; + span186[num2] = new QuestStep(EInteractionType.Interact, 1034072u, new Vector3(-25.92511f, 1.3904266f, 662.8976f), 813); obj115.Steps = list186; reference125 = obj115; - ref QuestSequence reference126 = ref span117[2]; + num++; + ref QuestSequence reference126 = ref span184[num]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue @@ -260921,13 +316206,15 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span120 = CollectionsMarshal.AsSpan(list187); - span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span187 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span187[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span120[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span187[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj116.Steps = list187; reference126 = obj116; questRoot27.QuestSequence = list184; @@ -260937,26 +316224,32 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; + Span span188 = CollectionsMarshal.AsSpan(list188); + index = 0; + span188[index] = "liza"; questRoot28.Author = list188; - num = 4; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span121 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference127 = ref span121[0]; + index = 4; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + Span span189 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference127 = ref span189[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - Span span122 = CollectionsMarshal.AsSpan(list190); - span122[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span122[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span190[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span190[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj117.Steps = list190; reference127 = obj117; - ref QuestSequence reference128 = ref span121[1]; + num++; + ref QuestSequence reference128 = ref span189[num]; QuestSequence obj118 = new QuestSequence { Sequence = 1 @@ -260964,30 +316257,36 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); + Span span191 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span191[index2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); obj118.Steps = list191; reference128 = obj118; - ref QuestSequence reference129 = ref span121[2]; + num++; + ref QuestSequence reference129 = ref span189[num]; QuestSequence obj119 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - Span span123 = CollectionsMarshal.AsSpan(list192); - span123[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 2; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span192[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31181u, ItemCount = 1 }; - span123[1] = new QuestStep(EInteractionType.Interact, 1034073u, new Vector3(-504.0513f, 3.623286f, 25.802979f), 813) + num2++; + span192[num2] = new QuestStep(EInteractionType.Interact, 1034073u, new Vector3(-504.0513f, 3.623286f, 25.802979f), 813) { Fly = true }; obj119.Steps = list192; reference129 = obj119; - ref QuestSequence reference130 = ref span121[3]; + num++; + ref QuestSequence reference130 = ref span189[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -260995,12 +316294,14 @@ public static class AssemblyQuestLoader num2 = 2; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span124 = CollectionsMarshal.AsSpan(list193); - span124[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span193 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span193[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span124[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span193[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj120.Steps = list193; reference130 = obj120; questRoot28.QuestSequence = list189; @@ -261010,26 +316311,32 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "liza"; + Span span194 = CollectionsMarshal.AsSpan(list194); + index = 0; + span194[index] = "liza"; questRoot29.Author = list194; - num = 3; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span125 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference131 = ref span125[0]; + index = 3; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + Span span195 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference131 = ref span195[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - Span span126 = CollectionsMarshal.AsSpan(list196); - span126[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); - span126[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2 = 2; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813); + num2++; + span196[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj121.Steps = list196; reference131 = obj121; - ref QuestSequence reference132 = ref span125[1]; + num++; + ref QuestSequence reference132 = ref span195[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -261037,36 +316344,42 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span127 = CollectionsMarshal.AsSpan(list197); - span127[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-134.17696f, 14.623874f, -124.68204f), 813) + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-134.17696f, 14.623874f, -124.68204f), 813) { Fly = true }; - span127[1] = new QuestStep(EInteractionType.Interact, 1034075u, new Vector3(-137.71265f, 14.623856f, -124.89508f), 813) + index2++; + span197[index2] = new QuestStep(EInteractionType.Interact, 1034075u, new Vector3(-137.71265f, 14.623856f, -124.89508f), 813) { StopDistance = 5f }; obj122.Steps = list197; reference132 = obj122; - ref QuestSequence reference133 = ref span125[2]; + num++; + ref QuestSequence reference133 = ref span195[num]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - Span span128 = CollectionsMarshal.AsSpan(list198); - span128[0] = new QuestStep(EInteractionType.Craft, null, null, 813) + index2 = 3; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span198 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span198[num2] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31183u, ItemCount = 3 }; - span128[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + num2++; + span198[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - span128[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span198[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj123.Steps = list198; reference133 = obj123; questRoot29.QuestSequence = list195; @@ -261076,13 +316389,16 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "pot0to"; + Span span199 = CollectionsMarshal.AsSpan(list199); + index = 0; + span199[index] = "pot0to"; questRoot30.Author = list199; - num = 4; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span129 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference134 = ref span129[0]; + index = 4; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + Span span200 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference134 = ref span200[num]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -261090,8 +316406,9 @@ public static class AssemblyQuestLoader num2 = 2; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span130 = CollectionsMarshal.AsSpan(list201); - span130[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -261103,21 +316420,26 @@ public static class AssemblyQuestLoader } } }; - span130[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + index2++; + span201[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj124.Steps = list201; reference134 = obj124; - ref QuestSequence reference135 = ref span129[1]; + num++; + ref QuestSequence reference135 = ref span200[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1033715u, new Vector3(-614.4961f, 65.60227f, -405.56958f), 813); + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.Interact, 1033715u, new Vector3(-614.4961f, 65.60227f, -405.56958f), 813); obj125.Steps = list202; reference135 = obj125; - ref QuestSequence reference136 = ref span129[2]; + num++; + ref QuestSequence reference136 = ref span200[num]; QuestSequence obj126 = new QuestSequence { Sequence = 2 @@ -261125,8 +316447,9 @@ public static class AssemblyQuestLoader num2 = 15; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span131 = CollectionsMarshal.AsSpan(list203); - ref QuestStep reference137 = ref span131[0]; + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + ref QuestStep reference137 = ref span203[index2]; QuestStep obj127 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-270.43753f, 101.31912f, -445.69028f), 813) { Fly = true, @@ -261135,53 +316458,77 @@ public static class AssemblyQuestLoader num3 = 6; List> list204 = new List>(num3); CollectionsMarshal.SetCount(list204, num3); - Span> span132 = CollectionsMarshal.AsSpan(list204); - span132[0] = null; - ref List reference138 = ref span132[1]; - num4 = 5; - List list205 = new List(num4); - CollectionsMarshal.SetCount(list205, num4); - Span span133 = CollectionsMarshal.AsSpan(list205); - span133[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span133[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span133[2] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span133[3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span133[4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span> span204 = CollectionsMarshal.AsSpan(list204); + num4 = 0; + span204[num4] = null; + num4++; + ref List reference138 = ref span204[num4]; + num5 = 5; + List list205 = new List(num5); + CollectionsMarshal.SetCount(list205, num5); + Span span205 = CollectionsMarshal.AsSpan(list205); + num6 = 0; + span205[num6] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num6++; + span205[num6] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num6++; + span205[num6] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num6++; + span205[num6] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num6++; + span205[num6] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference138 = list205; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = null; + num4++; + span204[num4] = null; + num4++; + span204[num4] = null; + num4++; + span204[num4] = null; + num4++; + span204[num4] = null; obj127.RequiredQuestVariables = list204; reference137 = obj127; - ref QuestStep reference139 = ref span131[1]; + index2++; + ref QuestStep reference139 = ref span203[index2]; QuestStep obj128 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-251.79787f, 101.4096f, -436.75403f), 813) { Comment = "west of The Stay - walk up to target" }; - num3 = 6; - List> list206 = new List>(num3); - CollectionsMarshal.SetCount(list206, num3); - Span> span134 = CollectionsMarshal.AsSpan(list206); - span134[0] = null; - ref List reference140 = ref span134[1]; - num4 = 5; - List list207 = new List(num4); - CollectionsMarshal.SetCount(list207, num4); - Span span135 = CollectionsMarshal.AsSpan(list207); - span135[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span135[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span135[2] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span135[3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span135[4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list206 = new List>(num4); + CollectionsMarshal.SetCount(list206, num4); + Span> span206 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span206[num3] = null; + num3++; + ref List reference140 = ref span206[num3]; + num6 = 5; + List list207 = new List(num6); + CollectionsMarshal.SetCount(list207, num6); + Span span207 = CollectionsMarshal.AsSpan(list207); + num5 = 0; + span207[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span207[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5++; + span207[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num5++; + span207[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5++; + span207[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference140 = list207; - span134[2] = null; - span134[3] = null; - span134[4] = null; - span134[5] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = null; obj128.RequiredQuestVariables = list206; reference139 = obj128; - ref QuestStep reference141 = ref span131[2]; + index2++; + ref QuestStep reference141 = ref span203[index2]; QuestStep obj129 = new QuestStep(EInteractionType.Action, 2011130u, new Vector3(-245.7771f, 101.426636f, -433.98187f), 813) { Comment = "west of The Stay - fire cannon", @@ -261190,55 +316537,80 @@ public static class AssemblyQuestLoader num3 = 6; List> list208 = new List>(num3); CollectionsMarshal.SetCount(list208, num3); - Span> span136 = CollectionsMarshal.AsSpan(list208); - span136[0] = null; - ref List reference142 = ref span136[1]; - num4 = 5; - List list209 = new List(num4); - CollectionsMarshal.SetCount(list209, num4); - Span span137 = CollectionsMarshal.AsSpan(list209); - span137[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span137[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span137[2] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span137[3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span137[4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span> span208 = CollectionsMarshal.AsSpan(list208); + num4 = 0; + span208[num4] = null; + num4++; + ref List reference142 = ref span208[num4]; + num5 = 5; + List list209 = new List(num5); + CollectionsMarshal.SetCount(list209, num5); + Span span209 = CollectionsMarshal.AsSpan(list209); + num6 = 0; + span209[num6] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num6++; + span209[num6] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num6++; + span209[num6] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num6++; + span209[num6] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num6++; + span209[num6] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference142 = list209; - span136[2] = null; - span136[3] = null; - span136[4] = null; - span136[5] = null; + num4++; + span208[num4] = null; + num4++; + span208[num4] = null; + num4++; + span208[num4] = null; + num4++; + span208[num4] = null; obj129.RequiredQuestVariables = list208; reference141 = obj129; - ref QuestStep reference143 = ref span131[3]; + index2++; + ref QuestStep reference143 = ref span203[index2]; QuestStep obj130 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-214.99785f, 100.41297f, -449.9386f), 813) { Fly = true, Comment = "inside The Stay - landing point" }; - num3 = 6; - List> list210 = new List>(num3); - CollectionsMarshal.SetCount(list210, num3); - Span> span138 = CollectionsMarshal.AsSpan(list210); - span138[0] = null; - ref List reference144 = ref span138[1]; num4 = 6; - List list211 = new List(num4); - CollectionsMarshal.SetCount(list211, num4); - Span span139 = CollectionsMarshal.AsSpan(list211); - span139[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span139[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span139[2] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span139[3] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span139[4] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span139[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + List> list210 = new List>(num4); + CollectionsMarshal.SetCount(list210, num4); + Span> span210 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span210[num3] = null; + num3++; + ref List reference144 = ref span210[num3]; + num6 = 6; + List list211 = new List(num6); + CollectionsMarshal.SetCount(list211, num6); + Span span211 = CollectionsMarshal.AsSpan(list211); + num5 = 0; + span211[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span211[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5++; + span211[num5] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num5++; + span211[num5] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num5++; + span211[num5] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num5++; + span211[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference144 = list211; - span138[2] = null; - span138[3] = null; - span138[4] = null; - span138[5] = null; + num3++; + span210[num3] = null; + num3++; + span210[num3] = null; + num3++; + span210[num3] = null; + num3++; + span210[num3] = null; obj130.RequiredQuestVariables = list210; reference143 = obj130; - ref QuestStep reference145 = ref span131[4]; + index2++; + ref QuestStep reference145 = ref span203[index2]; QuestStep obj131 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-205.86038f, 100.41297f, -450.21674f), 813) { Comment = "inside The Stay - walk up to target" @@ -261246,56 +316618,82 @@ public static class AssemblyQuestLoader num3 = 6; List> list212 = new List>(num3); CollectionsMarshal.SetCount(list212, num3); - Span> span140 = CollectionsMarshal.AsSpan(list212); - span140[0] = null; - ref List reference146 = ref span140[1]; - num4 = 6; - List list213 = new List(num4); - CollectionsMarshal.SetCount(list213, num4); - Span span141 = CollectionsMarshal.AsSpan(list213); - span141[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span141[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span141[2] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span141[3] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span141[4] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span141[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span> span212 = CollectionsMarshal.AsSpan(list212); + num4 = 0; + span212[num4] = null; + num4++; + ref List reference146 = ref span212[num4]; + num5 = 6; + List list213 = new List(num5); + CollectionsMarshal.SetCount(list213, num5); + Span span213 = CollectionsMarshal.AsSpan(list213); + num6 = 0; + span213[num6] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num6++; + span213[num6] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num6++; + span213[num6] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num6++; + span213[num6] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num6++; + span213[num6] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num6++; + span213[num6] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference146 = list213; - span140[2] = null; - span140[3] = null; - span140[4] = null; - span140[5] = null; + num4++; + span212[num4] = null; + num4++; + span212[num4] = null; + num4++; + span212[num4] = null; + num4++; + span212[num4] = null; obj131.RequiredQuestVariables = list212; reference145 = obj131; - ref QuestStep reference147 = ref span131[5]; + index2++; + ref QuestStep reference147 = ref span203[index2]; QuestStep obj132 = new QuestStep(EInteractionType.Action, 2011131u, new Vector3(-199.42017f, 100.38904f, -450.7973f), 813) { Comment = "inside The Stay - fire cannon", Action = EAction.Cannonfire }; - num3 = 6; - List> list214 = new List>(num3); - CollectionsMarshal.SetCount(list214, num3); - Span> span142 = CollectionsMarshal.AsSpan(list214); - span142[0] = null; - ref List reference148 = ref span142[1]; num4 = 6; - List list215 = new List(num4); - CollectionsMarshal.SetCount(list215, num4); - Span span143 = CollectionsMarshal.AsSpan(list215); - span143[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span143[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span143[2] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span143[3] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span143[4] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span143[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + List> list214 = new List>(num4); + CollectionsMarshal.SetCount(list214, num4); + Span> span214 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span214[num3] = null; + num3++; + ref List reference148 = ref span214[num3]; + num6 = 6; + List list215 = new List(num6); + CollectionsMarshal.SetCount(list215, num6); + Span span215 = CollectionsMarshal.AsSpan(list215); + num5 = 0; + span215[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span215[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5++; + span215[num5] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num5++; + span215[num5] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num5++; + span215[num5] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num5++; + span215[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference148 = list215; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = null; obj132.RequiredQuestVariables = list214; reference147 = obj132; - ref QuestStep reference149 = ref span131[6]; + index2++; + ref QuestStep reference149 = ref span203[index2]; QuestStep obj133 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-204.52136f, 86.09296f, -519.285f), 813) { Fly = true, @@ -261304,55 +316702,81 @@ public static class AssemblyQuestLoader num3 = 6; List> list216 = new List>(num3); CollectionsMarshal.SetCount(list216, num3); - Span> span144 = CollectionsMarshal.AsSpan(list216); - span144[0] = null; - ref List reference150 = ref span144[1]; - num4 = 6; - List list217 = new List(num4); - CollectionsMarshal.SetCount(list217, num4); - Span span145 = CollectionsMarshal.AsSpan(list217); - span145[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span145[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span145[2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span145[3] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span145[4] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span145[5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + Span> span216 = CollectionsMarshal.AsSpan(list216); + num4 = 0; + span216[num4] = null; + num4++; + ref List reference150 = ref span216[num4]; + num5 = 6; + List list217 = new List(num5); + CollectionsMarshal.SetCount(list217, num5); + Span span217 = CollectionsMarshal.AsSpan(list217); + num6 = 0; + span217[num6] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num6++; + span217[num6] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num6++; + span217[num6] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num6++; + span217[num6] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num6++; + span217[num6] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num6++; + span217[num6] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference150 = list217; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = null; + num4++; + span216[num4] = null; + num4++; + span216[num4] = null; + num4++; + span216[num4] = null; + num4++; + span216[num4] = null; obj133.RequiredQuestVariables = list216; reference149 = obj133; - ref QuestStep reference151 = ref span131[7]; + index2++; + ref QuestStep reference151 = ref span203[index2]; QuestStep obj134 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-193.84006f, 86.09295f, -508.64786f), 813) { Comment = "north of The Stay - walk up to target" }; - num3 = 6; - List> list218 = new List>(num3); - CollectionsMarshal.SetCount(list218, num3); - Span> span146 = CollectionsMarshal.AsSpan(list218); - span146[0] = null; - ref List reference152 = ref span146[1]; num4 = 6; - List list219 = new List(num4); - CollectionsMarshal.SetCount(list219, num4); - Span span147 = CollectionsMarshal.AsSpan(list219); - span147[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span147[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span147[2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span147[3] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span147[4] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span147[5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + List> list218 = new List>(num4); + CollectionsMarshal.SetCount(list218, num4); + Span> span218 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span218[num3] = null; + num3++; + ref List reference152 = ref span218[num3]; + num6 = 6; + List list219 = new List(num6); + CollectionsMarshal.SetCount(list219, num6); + Span span219 = CollectionsMarshal.AsSpan(list219); + num5 = 0; + span219[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span219[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num5++; + span219[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5++; + span219[num5] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num5++; + span219[num5] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num5++; + span219[num5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference152 = list219; - span146[2] = null; - span146[3] = null; - span146[4] = null; - span146[5] = null; + num3++; + span218[num3] = null; + num3++; + span218[num3] = null; + num3++; + span218[num3] = null; + num3++; + span218[num3] = null; obj134.RequiredQuestVariables = list218; reference151 = obj134; - ref QuestStep reference153 = ref span131[8]; + index2++; + ref QuestStep reference153 = ref span203[index2]; QuestStep obj135 = new QuestStep(EInteractionType.Action, 2011133u, new Vector3(-193.13348f, 86.045654f, -502.76953f), 813) { Comment = "north of The Stay - fire cannon", @@ -261361,55 +316785,80 @@ public static class AssemblyQuestLoader num3 = 6; List> list220 = new List>(num3); CollectionsMarshal.SetCount(list220, num3); - Span> span148 = CollectionsMarshal.AsSpan(list220); - span148[0] = null; - ref List reference154 = ref span148[1]; - num4 = 6; - List list221 = new List(num4); - CollectionsMarshal.SetCount(list221, num4); - Span span149 = CollectionsMarshal.AsSpan(list221); - span149[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span149[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span149[2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span149[3] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span149[4] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span149[5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + Span> span220 = CollectionsMarshal.AsSpan(list220); + num4 = 0; + span220[num4] = null; + num4++; + ref List reference154 = ref span220[num4]; + num5 = 6; + List list221 = new List(num5); + CollectionsMarshal.SetCount(list221, num5); + Span span221 = CollectionsMarshal.AsSpan(list221); + num6 = 0; + span221[num6] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num6++; + span221[num6] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num6++; + span221[num6] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num6++; + span221[num6] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num6++; + span221[num6] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num6++; + span221[num6] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference154 = list221; - span148[2] = null; - span148[3] = null; - span148[4] = null; - span148[5] = null; + num4++; + span220[num4] = null; + num4++; + span220[num4] = null; + num4++; + span220[num4] = null; + num4++; + span220[num4] = null; obj135.RequiredQuestVariables = list220; reference153 = obj135; - ref QuestStep reference155 = ref span131[9]; + index2++; + ref QuestStep reference155 = ref span203[index2]; QuestStep obj136 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.87851f, 85.39617f, -487.57132f), 813) { Fly = true, Comment = "NE of The Stay - landing point" }; - num3 = 6; - List> list222 = new List>(num3); - CollectionsMarshal.SetCount(list222, num3); - Span> span150 = CollectionsMarshal.AsSpan(list222); - span150[0] = null; - ref List reference156 = ref span150[1]; - num4 = 5; - List list223 = new List(num4); - CollectionsMarshal.SetCount(list223, num4); - Span span151 = CollectionsMarshal.AsSpan(list223); - span151[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span151[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span151[2] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span151[3] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span151[4] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list222 = new List>(num4); + CollectionsMarshal.SetCount(list222, num4); + Span> span222 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span222[num3] = null; + num3++; + ref List reference156 = ref span222[num3]; + num6 = 5; + List list223 = new List(num6); + CollectionsMarshal.SetCount(list223, num6); + Span span223 = CollectionsMarshal.AsSpan(list223); + num5 = 0; + span223[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5++; + span223[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num5++; + span223[num5] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num5++; + span223[num5] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num5++; + span223[num5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference156 = list223; - span150[2] = null; - span150[3] = null; - span150[4] = null; - span150[5] = null; + num3++; + span222[num3] = null; + num3++; + span222[num3] = null; + num3++; + span222[num3] = null; + num3++; + span222[num3] = null; obj136.RequiredQuestVariables = list222; reference155 = obj136; - ref QuestStep reference157 = ref span131[10]; + index2++; + ref QuestStep reference157 = ref span203[index2]; QuestStep obj137 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-151.61143f, 85.348495f, -488.9138f), 813) { Comment = "NE of The Stay - walk up to target" @@ -261417,54 +316866,78 @@ public static class AssemblyQuestLoader num3 = 6; List> list224 = new List>(num3); CollectionsMarshal.SetCount(list224, num3); - Span> span152 = CollectionsMarshal.AsSpan(list224); - span152[0] = null; - ref List reference158 = ref span152[1]; - num4 = 5; - List list225 = new List(num4); - CollectionsMarshal.SetCount(list225, num4); - Span span153 = CollectionsMarshal.AsSpan(list225); - span153[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span153[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span153[2] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span153[3] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span153[4] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + Span> span224 = CollectionsMarshal.AsSpan(list224); + num4 = 0; + span224[num4] = null; + num4++; + ref List reference158 = ref span224[num4]; + num5 = 5; + List list225 = new List(num5); + CollectionsMarshal.SetCount(list225, num5); + Span span225 = CollectionsMarshal.AsSpan(list225); + num6 = 0; + span225[num6] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num6++; + span225[num6] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num6++; + span225[num6] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num6++; + span225[num6] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num6++; + span225[num6] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference158 = list225; - span152[2] = null; - span152[3] = null; - span152[4] = null; - span152[5] = null; + num4++; + span224[num4] = null; + num4++; + span224[num4] = null; + num4++; + span224[num4] = null; + num4++; + span224[num4] = null; obj137.RequiredQuestVariables = list224; reference157 = obj137; - ref QuestStep reference159 = ref span131[11]; + index2++; + ref QuestStep reference159 = ref span203[index2]; QuestStep obj138 = new QuestStep(EInteractionType.Action, 2011132u, new Vector3(-145.61688f, 85.34363f, -494.86536f), 813) { Comment = "NE of The Stay - fire cannon", Action = EAction.Cannonfire }; - num3 = 6; - List> list226 = new List>(num3); - CollectionsMarshal.SetCount(list226, num3); - Span> span154 = CollectionsMarshal.AsSpan(list226); - span154[0] = null; - ref List reference160 = ref span154[1]; - num4 = 5; - List list227 = new List(num4); - CollectionsMarshal.SetCount(list227, num4); - Span span155 = CollectionsMarshal.AsSpan(list227); - span155[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span155[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); - span155[2] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span155[3] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); - span155[4] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list226 = new List>(num4); + CollectionsMarshal.SetCount(list226, num4); + Span> span226 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + span226[num3] = null; + num3++; + ref List reference160 = ref span226[num3]; + num6 = 5; + List list227 = new List(num6); + CollectionsMarshal.SetCount(list227, num6); + Span span227 = CollectionsMarshal.AsSpan(list227); + num5 = 0; + span227[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5++; + span227[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + num5++; + span227[num5] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num5++; + span227[num5] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); + num5++; + span227[num5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference160 = list227; - span154[2] = null; - span154[3] = null; - span154[4] = null; - span154[5] = null; + num3++; + span226[num3] = null; + num3++; + span226[num3] = null; + num3++; + span226[num3] = null; + num3++; + span226[num3] = null; obj138.RequiredQuestVariables = list226; reference159 = obj138; - ref QuestStep reference161 = ref span131[12]; + index2++; + ref QuestStep reference161 = ref span203[index2]; QuestStep obj139 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.4956f, 100.40788f, -442.20892f), 813) { Fly = true, @@ -261473,53 +316946,77 @@ public static class AssemblyQuestLoader num3 = 6; List> list228 = new List>(num3); CollectionsMarshal.SetCount(list228, num3); - Span> span156 = CollectionsMarshal.AsSpan(list228); - span156[0] = null; - ref List reference162 = ref span156[1]; - num4 = 5; - List list229 = new List(num4); - CollectionsMarshal.SetCount(list229, num4); - Span span157 = CollectionsMarshal.AsSpan(list229); - span157[0] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span157[1] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span157[2] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span157[3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span157[4] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + Span> span228 = CollectionsMarshal.AsSpan(list228); + num4 = 0; + span228[num4] = null; + num4++; + ref List reference162 = ref span228[num4]; + num5 = 5; + List list229 = new List(num5); + CollectionsMarshal.SetCount(list229, num5); + Span span229 = CollectionsMarshal.AsSpan(list229); + num6 = 0; + span229[num6] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num6++; + span229[num6] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num6++; + span229[num6] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num6++; + span229[num6] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num6++; + span229[num6] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference162 = list229; - span156[2] = null; - span156[3] = null; - span156[4] = null; - span156[5] = null; + num4++; + span228[num4] = null; + num4++; + span228[num4] = null; + num4++; + span228[num4] = null; + num4++; + span228[num4] = null; obj139.RequiredQuestVariables = list228; reference161 = obj139; - ref QuestStep reference163 = ref span131[13]; + index2++; + ref QuestStep reference163 = ref span203[index2]; QuestStep obj140 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-135.49406f, 103.20949f, -442.19656f), 813) { Comment = "east of The Stay - walk up to target" }; - num3 = 6; - List> list230 = new List>(num3); - CollectionsMarshal.SetCount(list230, num3); - Span> span158 = CollectionsMarshal.AsSpan(list230); - span158[0] = null; - ref List reference164 = ref span158[1]; - num4 = 5; - List list231 = new List(num4); - CollectionsMarshal.SetCount(list231, num4); - Span span159 = CollectionsMarshal.AsSpan(list231); - span159[0] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span159[1] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span159[2] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span159[3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span159[4] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list230 = new List>(num4); + CollectionsMarshal.SetCount(list230, num4); + Span> span230 = CollectionsMarshal.AsSpan(list230); + num3 = 0; + span230[num3] = null; + num3++; + ref List reference164 = ref span230[num3]; + num6 = 5; + List list231 = new List(num6); + CollectionsMarshal.SetCount(list231, num6); + Span span231 = CollectionsMarshal.AsSpan(list231); + num5 = 0; + span231[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5++; + span231[num5] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num5++; + span231[num5] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num5++; + span231[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5++; + span231[num5] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference164 = list231; - span158[2] = null; - span158[3] = null; - span158[4] = null; - span158[5] = null; + num3++; + span230[num3] = null; + num3++; + span230[num3] = null; + num3++; + span230[num3] = null; + num3++; + span230[num3] = null; obj140.RequiredQuestVariables = list230; reference163 = obj140; - ref QuestStep reference165 = ref span131[14]; + index2++; + ref QuestStep reference165 = ref span203[index2]; QuestStep obj141 = new QuestStep(EInteractionType.Action, 2011129u, new Vector3(-126.878784f, 103.196655f, -442.649f), 813) { Comment = "east of The Stay - fire cannon", @@ -261528,42 +317025,56 @@ public static class AssemblyQuestLoader num3 = 6; List> list232 = new List>(num3); CollectionsMarshal.SetCount(list232, num3); - Span> span160 = CollectionsMarshal.AsSpan(list232); - span160[0] = null; - ref List reference166 = ref span160[1]; - num4 = 5; - List list233 = new List(num4); - CollectionsMarshal.SetCount(list233, num4); - Span span161 = CollectionsMarshal.AsSpan(list233); - span161[0] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span161[1] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); - span161[2] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); - span161[3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span161[4] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); + Span> span232 = CollectionsMarshal.AsSpan(list232); + num4 = 0; + span232[num4] = null; + num4++; + ref List reference166 = ref span232[num4]; + num5 = 5; + List list233 = new List(num5); + CollectionsMarshal.SetCount(list233, num5); + Span span233 = CollectionsMarshal.AsSpan(list233); + num6 = 0; + span233[num6] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num6++; + span233[num6] = new QuestWorkValue((byte)5, 0, EQuestWorkMode.Bitwise); + num6++; + span233[num6] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + num6++; + span233[num6] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num6++; + span233[num6] = new QuestWorkValue((byte)9, 0, EQuestWorkMode.Bitwise); reference166 = list233; - span160[2] = null; - span160[3] = null; - span160[4] = null; - span160[5] = null; + num4++; + span232[num4] = null; + num4++; + span232[num4] = null; + num4++; + span232[num4] = null; + num4++; + span232[num4] = null; obj141.RequiredQuestVariables = list232; reference165 = obj141; obj126.Steps = list203; reference136 = obj126; - ref QuestSequence reference167 = ref span129[3]; + num++; + ref QuestSequence reference167 = ref span200[num]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - Span span162 = CollectionsMarshal.AsSpan(list234); - span162[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + index2 = 2; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + Span span234 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span234[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - span162[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + num2++; + span234[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj142.Steps = list234; reference167 = obj142; questRoot30.QuestSequence = list200; @@ -261577,13 +317088,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -261591,22 +317105,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { StopDistance = 4f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1032245u, new Vector3(622.73596f, 297.49292f, -199.42017f), 814) { Fly = true @@ -261614,46 +317132,67 @@ public static class AssemblyQuestLoader int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span5 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj3.CompletionQuestVariablesFlags = list5; reference3 = obj3; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span4[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1032244u, new Vector3(603.9978f, 297.43994f, -180.92627f), 814); - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list6; reference4 = questStep; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span4[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1032246u, new Vector3(594.8423f, 297.2672f, -176.01282f), 814); num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list7; reference5 = questStep2; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -261661,30 +317200,36 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.Interact, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true }; obj4.Steps = list8; reference6 = obj4; - ref QuestSequence reference7 = ref span[3]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - Span span6 = CollectionsMarshal.AsSpan(list9); - span6[0] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + index2 = 2; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - span6[1] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); + num2++; + span9[num2] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); obj5.Steps = list9; reference7 = obj5; - ref QuestSequence reference8 = ref span[4]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -261692,18 +317237,23 @@ public static class AssemblyQuestLoader num2 = 5; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span7 = CollectionsMarshal.AsSpan(list10); - span7[0] = new QuestStep(EInteractionType.Interact, 2010830u, new Vector3(-0.015319824f, 1.2664795f, -94.86542f), 895) + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.Interact, 2010830u, new Vector3(-0.015319824f, 1.2664795f, -94.86542f), 895) { TargetTerritoryId = (ushort)896 }; - span7[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-499.9735f, 463.36023f, 177.62115f), 896); - span7[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-499.9782f, 400.99997f, 4.3087606f), 896); - span7[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-557.9587f, 383f, -141.83781f), 896) + index2++; + span10[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-499.9735f, 463.36023f, 177.62115f), 896); + index2++; + span10[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-499.9782f, 400.99997f, 4.3087606f), 896); + index2++; + span10[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-557.9587f, 383f, -141.83781f), 896) { RestartNavigationIfCancelled = false }; - span7[4] = new QuestStep(EInteractionType.Say, 2011156u, new Vector3(-694.05664f, 339.1621f, -370.2602f), 896) + index2++; + span10[index2] = new QuestStep(EInteractionType.Say, 2011156u, new Vector3(-694.05664f, 339.1621f, -370.2602f), 896) { DelaySecondsAtStart = 5f, ChatMessage = new ChatMessage @@ -261713,15 +317263,18 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference8 = obj6; - ref QuestSequence reference9 = ref span[5]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895) + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895) { NextQuestId = new QuestId(3953) }; @@ -261734,13 +317287,16 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "liza"; + Span span12 = CollectionsMarshal.AsSpan(list12); + index = 0; + span12[index] = "liza"; questRoot2.Author = list12; - num = 5; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span8 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference10 = ref span8[0]; + index = 5; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference10 = ref span13[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -261748,18 +317304,23 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895); + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895); obj8.Steps = list14; reference10 = obj8; - ref QuestSequence reference11 = ref span8[1]; + num++; + ref QuestSequence reference11 = ref span13[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Duty, null, null, 814) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.Duty, null, null, 814) { DutyOptions = new DutyOptions { @@ -261768,7 +317329,8 @@ public static class AssemblyQuestLoader }; obj9.Steps = list15; reference11 = obj9; - ref QuestSequence reference12 = ref span8[2]; + num++; + ref QuestSequence reference12 = ref span13[num]; QuestSequence obj10 = new QuestSequence { Sequence = 2 @@ -261776,19 +317338,23 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1034040u, new Vector3(-363.94293f, 103.83351f, 366.4148f), 928); + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.Interact, 1034040u, new Vector3(-363.94293f, 103.83351f, 366.4148f), 928); obj10.Steps = list16; reference12 = obj10; - ref QuestSequence reference13 = ref span8[3]; + num++; + ref QuestSequence reference13 = ref span13[num]; QuestSequence obj11 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - Span span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = new QuestStep(EInteractionType.Interact, 2011108u, new Vector3(-363.3631f, 103.990234f, 375.69226f), 928) + index2 = 4; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.Interact, 2011108u, new Vector3(-363.3631f, 103.990234f, 375.69226f), 928) { SkipConditions = new SkipConditions { @@ -261798,19 +317364,23 @@ public static class AssemblyQuestLoader } } }; - span9[1] = new QuestStep(EInteractionType.Interact, 2011155u, new Vector3(-383.81018f, 102.89148f, 389.12024f), 928) + num2++; + span17[num2] = new QuestStep(EInteractionType.Interact, 2011155u, new Vector3(-383.81018f, 102.89148f, 389.12024f), 928) { TargetTerritoryId = (ushort)814 }; - span9[2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + num2++; + span17[num2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - span9[3] = new QuestStep(EInteractionType.Interact, 1034044u, new Vector3(-19.058533f, -3.501947E-11f, -58.365784f), 895); + num2++; + span17[num2] = new QuestStep(EInteractionType.Interact, 1034044u, new Vector3(-19.058533f, -3.501947E-11f, -58.365784f), 895); obj11.Steps = list17; reference13 = obj11; - ref QuestSequence reference14 = ref span8[4]; + num++; + ref QuestSequence reference14 = ref span13[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -261818,12 +317388,14 @@ public static class AssemblyQuestLoader num2 = 2; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span10 = CollectionsMarshal.AsSpan(list18); - span10[0] = new QuestStep(EInteractionType.Interact, 2011136u, new Vector3(-21.74414f, 0.6866455f, -58.396362f), 895) + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.Interact, 2011136u, new Vector3(-21.74414f, 0.6866455f, -58.396362f), 895) { TargetTerritoryId = (ushort)895 }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1034031u, new Vector3(-50.492126f, 0.037401117f, -121.53815f), 895) + index2++; + span18[index2] = new QuestStep(EInteractionType.CompleteQuest, 1034031u, new Vector3(-50.492126f, 0.037401117f, -121.53815f), 895) { NextQuestId = new QuestId(3954) }; @@ -261836,24 +317408,30 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "liza"; + Span span19 = CollectionsMarshal.AsSpan(list19); + index = 0; + span19[index] = "liza"; questRoot3.Author = list19; - num = 13; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span11 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference15 = ref span11[0]; + index = 13; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + Span span20 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference15 = ref span20[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1034030u, new Vector3(-48.508484f, 0.029999997f, -120.50055f), 895); + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.AcceptQuest, 1034030u, new Vector3(-48.508484f, 0.029999997f, -120.50055f), 895); obj13.Steps = list21; reference15 = obj13; - ref QuestSequence reference16 = ref span11[1]; + num++; + ref QuestSequence reference16 = ref span20[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -261861,29 +317439,35 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span12 = CollectionsMarshal.AsSpan(list22); - span12[0] = new QuestStep(EInteractionType.Interact, 2011137u, new Vector3(-49.5766f, 1.2054443f, -109.056274f), 895) + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.Interact, 2011137u, new Vector3(-49.5766f, 1.2054443f, -109.056274f), 895) { TargetTerritoryId = (ushort)895 }; - span12[1] = new QuestStep(EInteractionType.Interact, 1034027u, new Vector3(-7.7669067f, -3.1738587E-11f, -52.872498f), 895); + index2++; + span22[index2] = new QuestStep(EInteractionType.Interact, 1034027u, new Vector3(-7.7669067f, -3.1738587E-11f, -52.872498f), 895); obj14.Steps = list22; reference16 = obj14; - ref QuestSequence reference17 = ref span11[2]; + num++; + ref QuestSequence reference17 = ref span20[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1034025u, new Vector3(-6.515625f, 0.029999863f, -52.84204f), 895) + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.Interact, 1034025u, new Vector3(-6.515625f, 0.029999863f, -52.84204f), 895) { StopDistance = 1f }; obj15.Steps = list23; reference17 = obj15; - ref QuestSequence reference18 = ref span11[3]; + num++; + ref QuestSequence reference18 = ref span20[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -261891,25 +317475,33 @@ public static class AssemblyQuestLoader num2 = 6; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span13 = CollectionsMarshal.AsSpan(list24); - ref QuestStep reference19 = ref span13[0]; + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + ref QuestStep reference19 = ref span24[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1034016u, new Vector3(-6.668213f, -3.3829915E-11f, -56.443176f), 895) { StopDistance = 5f }; - num3 = 6; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - Span span14 = CollectionsMarshal.AsSpan(list25); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list25 = new List(num4); + CollectionsMarshal.SetCount(list25, num4); + Span span25 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list25; reference19 = obj17; - ref QuestStep reference20 = ref span13[1]; + index2++; + ref QuestStep reference20 = ref span24[index2]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1034019u, new Vector3(-4.9592285f, -3.3072475E-11f, -55.161438f), 895) { StopDistance = 5f @@ -261917,33 +317509,47 @@ public static class AssemblyQuestLoader num3 = 6; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - Span span15 = CollectionsMarshal.AsSpan(list26); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span26 = CollectionsMarshal.AsSpan(list26); + num4 = 0; + span26[num4] = null; + num4++; + span26[num4] = null; + num4++; + span26[num4] = null; + num4++; + span26[num4] = null; + num4++; + span26[num4] = null; + num4++; + span26[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj18.CompletionQuestVariablesFlags = list26; reference20 = obj18; - ref QuestStep reference21 = ref span13[2]; + index2++; + ref QuestStep reference21 = ref span24[index2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1034020u, new Vector3(-4.348877f, -3.1869986E-11f, -53.11664f), 895) { StopDistance = 5f }; - num3 = 6; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - Span span16 = CollectionsMarshal.AsSpan(list27); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list27 = new List(num4); + CollectionsMarshal.SetCount(list27, num4); + Span span27 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj19.CompletionQuestVariablesFlags = list27; reference21 = obj19; - ref QuestStep reference22 = ref span13[3]; + index2++; + ref QuestStep reference22 = ref span24[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1034017u, new Vector3(-5.0507812f, 0.029999875f, -51.010986f), 895) { StopDistance = 5f @@ -261951,33 +317557,47 @@ public static class AssemblyQuestLoader num3 = 6; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - Span span17 = CollectionsMarshal.AsSpan(list28); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span28 = CollectionsMarshal.AsSpan(list28); + num4 = 0; + span28[num4] = null; + num4++; + span28[num4] = null; + num4++; + span28[num4] = null; + num4++; + span28[num4] = null; + num4++; + span28[num4] = null; + num4++; + span28[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj20.CompletionQuestVariablesFlags = list28; reference22 = obj20; - ref QuestStep reference23 = ref span13[4]; + index2++; + ref QuestStep reference23 = ref span24[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1034018u, new Vector3(-6.729248f, 0.037395146f, -49.851257f), 895) { StopDistance = 5f }; - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span18 = CollectionsMarshal.AsSpan(list29); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list29; reference23 = obj21; - ref QuestStep reference24 = ref span13[5]; + index2++; + ref QuestStep reference24 = ref span24[index2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1034028u, new Vector3(-9.140198f, 0.029994294f, -49.973328f), 895) { StopDistance = 5f @@ -261985,29 +317605,39 @@ public static class AssemblyQuestLoader num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span19 = CollectionsMarshal.AsSpan(list30); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + Span span30 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj22.CompletionQuestVariablesFlags = list30; reference24 = obj22; obj16.Steps = list24; reference18 = obj16; - ref QuestSequence reference25 = ref span11[4]; + num++; + ref QuestSequence reference25 = ref span20[num]; QuestSequence obj23 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1034025u, new Vector3(-6.515625f, 0.029999863f, -52.84204f), 895); + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.Interact, 1034025u, new Vector3(-6.515625f, 0.029999863f, -52.84204f), 895); obj23.Steps = list31; reference25 = obj23; - ref QuestSequence reference26 = ref span11[5]; + num++; + ref QuestSequence reference26 = ref span20[num]; QuestSequence obj24 = new QuestSequence { Sequence = 5 @@ -262015,12 +317645,16 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list32)[0]; + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + ref QuestStep reference27 = ref span32[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1034025u, new Vector3(-6.515625f, 0.029999863f, -52.84204f), 895); - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = new DialogueChoice + num4 = 1; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA303_03954_Q1_000_000"), @@ -262030,18 +317664,22 @@ public static class AssemblyQuestLoader reference27 = questStep3; obj24.Steps = list32; reference26 = obj24; - ref QuestSequence reference28 = ref span11[6]; + num++; + ref QuestSequence reference28 = ref span20[num]; QuestSequence obj25 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1034027u, new Vector3(-7.7669067f, -3.1738587E-11f, -52.872498f), 895); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.Interact, 1034027u, new Vector3(-7.7669067f, -3.1738587E-11f, -52.872498f), 895); obj25.Steps = list34; reference28 = obj25; - ref QuestSequence reference29 = ref span11[7]; + num++; + ref QuestSequence reference29 = ref span20[num]; QuestSequence obj26 = new QuestSequence { Sequence = 7 @@ -262049,34 +317687,40 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span20 = CollectionsMarshal.AsSpan(list35); - span20[0] = new QuestStep(EInteractionType.Interact, 2011136u, new Vector3(-21.74166f, 0.691666f, -58.37535f), 895) + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.Interact, 2011136u, new Vector3(-21.74166f, 0.691666f, -58.37535f), 895) { TargetTerritoryId = (ushort)895 }; - span20[1] = new QuestStep(EInteractionType.Interact, 1034030u, new Vector3(-48.508484f, 0.029999997f, -120.50055f), 895) + index2++; + span35[index2] = new QuestStep(EInteractionType.Interact, 1034030u, new Vector3(-48.508484f, 0.029999997f, -120.50055f), 895) { StopDistance = 7f }; obj26.Steps = list35; reference29 = obj26; - ref QuestSequence reference30 = ref span11[8]; + num++; + ref QuestSequence reference30 = ref span20[num]; QuestSequence obj27 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span21 = CollectionsMarshal.AsSpan(list36); - span21[0] = new QuestStep(EInteractionType.Interact, 2011137u, new Vector3(-49.55915f, 1.209601f, -109.0371f), 895) + index2 = 2; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.Interact, 2011137u, new Vector3(-49.55915f, 1.209601f, -109.0371f), 895) { TargetTerritoryId = (ushort)895 }; - span21[1] = new QuestStep(EInteractionType.Interact, 1034027u, new Vector3(-7.7669067f, -3.1738587E-11f, -52.872498f), 895); + num2++; + span36[num2] = new QuestStep(EInteractionType.Interact, 1034027u, new Vector3(-7.7669067f, -3.1738587E-11f, -52.872498f), 895); obj27.Steps = list36; reference30 = obj27; - ref QuestSequence reference31 = ref span11[9]; + num++; + ref QuestSequence reference31 = ref span20[num]; QuestSequence obj28 = new QuestSequence { Sequence = 9 @@ -262084,32 +317728,38 @@ public static class AssemblyQuestLoader num2 = 2; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span22 = CollectionsMarshal.AsSpan(list37); - span22[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - span22[1] = new QuestStep(EInteractionType.Interact, 2011151u, new Vector3(467.79578f, 311.02466f, -189.1051f), 814) + index2++; + span37[index2] = new QuestStep(EInteractionType.Interact, 2011151u, new Vector3(467.79578f, 311.02466f, -189.1051f), 814) { Fly = true }; obj28.Steps = list37; reference31 = obj28; - ref QuestSequence reference32 = ref span11[10]; + num++; + ref QuestSequence reference32 = ref span20[num]; QuestSequence obj29 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 2011152u, new Vector3(345.3269f, 320.14954f, -317.58606f), 814) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.Interact, 2011152u, new Vector3(345.3269f, 320.14954f, -317.58606f), 814) { Fly = true }; obj29.Steps = list38; reference32 = obj29; - ref QuestSequence reference33 = ref span11[11]; + num++; + ref QuestSequence reference33 = ref span20[num]; QuestSequence obj30 = new QuestSequence { Sequence = 11 @@ -262117,21 +317767,26 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 2011153u, new Vector3(466.26978f, 298.146f, -398.79456f), 814) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.Interact, 2011153u, new Vector3(466.26978f, 298.146f, -398.79456f), 814) { Fly = true }; obj30.Steps = list39; reference33 = obj30; - ref QuestSequence reference34 = ref span11[12]; + num++; + ref QuestSequence reference34 = ref span20[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.CompleteQuest, 1034052u, new Vector3(618.58545f, 297.26346f, -170.24493f), 814) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.CompleteQuest, 1034052u, new Vector3(618.58545f, 297.26346f, -170.24493f), 814) { Fly = true, NextQuestId = new QuestId(3998) @@ -262145,13 +317800,16 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + Span span41 = CollectionsMarshal.AsSpan(list41); + index = 0; + span41[index] = "liza"; questRoot4.Author = list41; - num = 5; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span23 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference35 = ref span23[0]; + index = 5; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + Span span42 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference35 = ref span42[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -262159,24 +317817,30 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033962u, new Vector3(49.729126f, -18.746954f, 7.2785034f), 886); + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033962u, new Vector3(49.729126f, -18.746954f, 7.2785034f), 886); obj32.Steps = list43; reference35 = obj32; - ref QuestSequence reference36 = ref span23[1]; + num++; + ref QuestSequence reference36 = ref span42[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Interact, 1033964u, new Vector3(50.58362f, -8.046957f, 99.290405f), 132) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.Interact, 1033964u, new Vector3(50.58362f, -8.046957f, 99.290405f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj33.Steps = list44; reference36 = obj33; - ref QuestSequence reference37 = ref span23[2]; + num++; + ref QuestSequence reference37 = ref span42[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -262184,18 +317848,23 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1033966u, new Vector3(1.7547607f, -2.9701123f, 33.6156f), 132); + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.Interact, 1033966u, new Vector3(1.7547607f, -2.9701123f, 33.6156f), 132); obj34.Steps = list45; reference37 = obj34; - ref QuestSequence reference38 = ref span23[3]; + num++; + ref QuestSequence reference38 = ref span42[num]; QuestSequence obj35 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 2011139u, new Vector3(129.47266f, 12.893799f, -102.00659f), 133) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.Interact, 2011139u, new Vector3(129.47266f, 12.893799f, -102.00659f), 133) { AethernetShortcut = new AethernetShortcut { @@ -262205,7 +317874,8 @@ public static class AssemblyQuestLoader }; obj35.Steps = list46; reference38 = obj35; - ref QuestSequence reference39 = ref span23[4]; + num++; + ref QuestSequence reference39 = ref span42[num]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue @@ -262213,7 +317883,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033969u, new Vector3(126.63464f, 12.680123f, -103.53253f), 133) + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033969u, new Vector3(126.63464f, 12.680123f, -103.53253f), 133) { NextQuestId = new QuestId(3956) }; @@ -262226,24 +317898,30 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + Span span48 = CollectionsMarshal.AsSpan(list48); + index = 0; + span48[index] = "liza"; questRoot5.Author = list48; - num = 4; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span24 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference40 = ref span24[0]; + index = 4; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + Span span49 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference40 = ref span49[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033969u, new Vector3(126.63464f, 12.680123f, -103.53253f), 133); + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033969u, new Vector3(126.63464f, 12.680123f, -103.53253f), 133); obj37.Steps = list50; reference40 = obj37; - ref QuestSequence reference41 = ref span24[1]; + num++; + ref QuestSequence reference41 = ref span49[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 @@ -262251,24 +317929,30 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1033971u, new Vector3(-14.4198f, 9.999999f, -79.88104f), 130) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.Interact, 1033971u, new Vector3(-14.4198f, 9.999999f, -79.88104f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj38.Steps = list51; reference41 = obj38; - ref QuestSequence reference42 = ref span24[2]; + num++; + ref QuestSequence reference42 = ref span49[num]; QuestSequence obj39 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 2011140u, new Vector3(-47.837036f, 5.203247f, -125.84119f), 130); + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.Interact, 2011140u, new Vector3(-47.837036f, 5.203247f, -125.84119f), 130); obj39.Steps = list52; reference42 = obj39; - ref QuestSequence reference43 = ref span24[3]; + num++; + ref QuestSequence reference43 = ref span49[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -262276,12 +317960,16 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list53)[0]; + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + ref QuestStep reference44 = ref span53[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.CompleteQuest, 1033976u, new Vector3(13.961914f, 8f, -104.53961f), 130); num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new DialogueChoice + Span span54 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span54[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA202_03956_Q1_000_000"), @@ -262299,24 +317987,30 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; + Span span55 = CollectionsMarshal.AsSpan(list55); + index = 0; + span55[index] = "liza"; questRoot6.Author = list55; - num = 7; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span25 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference45 = ref span25[0]; + index = 7; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + Span span56 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference45 = ref span56[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033976u, new Vector3(13.961914f, 8f, -104.53961f), 130); + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033976u, new Vector3(13.961914f, 8f, -104.53961f), 130); obj41.Steps = list57; reference45 = obj41; - ref QuestSequence reference46 = ref span25[1]; + num++; + ref QuestSequence reference46 = ref span56[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -262324,21 +318018,26 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1033997u, new Vector3(-6.149414f, 20f, 16.189758f), 129) + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.Interact, 1033997u, new Vector3(-6.149414f, 20f, 16.189758f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; obj42.Steps = list58; reference46 = obj42; - ref QuestSequence reference47 = ref span25[2]; + num++; + ref QuestSequence reference47 = ref span56[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1033981u, new Vector3(-344.74713f, 12.899759f, 13.076904f), 129) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.Interact, 1033981u, new Vector3(-344.74713f, 12.899759f, 13.076904f), 129) { AethernetShortcut = new AethernetShortcut { @@ -262348,7 +318047,8 @@ public static class AssemblyQuestLoader }; obj43.Steps = list59; reference47 = obj43; - ref QuestSequence reference48 = ref span25[3]; + num++; + ref QuestSequence reference48 = ref span56[num]; QuestSequence obj44 = new QuestSequence { Sequence = 3 @@ -262356,7 +318056,9 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1033999u, new Vector3(47.501343f, 44.70852f, 131.2428f), 128) + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.Interact, 1033999u, new Vector3(47.501343f, 44.70852f, 131.2428f), 128) { AethernetShortcut = new AethernetShortcut { @@ -262366,18 +318068,22 @@ public static class AssemblyQuestLoader }; obj44.Steps = list60; reference48 = obj44; - ref QuestSequence reference49 = ref span25[4]; + num++; + ref QuestSequence reference49 = ref span56[num]; QuestSequence obj45 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1033984u, new Vector3(2.7922974f, 44.011013f, -154.40613f), 128); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.Interact, 1033984u, new Vector3(2.7922974f, 44.011013f, -154.40613f), 128); obj45.Steps = list61; reference49 = obj45; - ref QuestSequence reference50 = ref span25[5]; + num++; + ref QuestSequence reference50 = ref span56[num]; QuestSequence obj46 = new QuestSequence { Sequence = 5 @@ -262385,26 +318091,33 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1000915u, new Vector3(18.387085f, 47.600006f, -162.12714f), 128); + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.Interact, 1000915u, new Vector3(18.387085f, 47.600006f, -162.12714f), 128); obj46.Steps = list62; reference50 = obj46; - ref QuestSequence reference51 = ref span25[6]; + num++; + ref QuestSequence reference51 = ref span56[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference52 = ref CollectionsMarshal.AsSpan(list63)[0]; + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference52 = ref span63[num2]; QuestStep obj48 = new QuestStep(EInteractionType.CompleteQuest, 1033986u, new Vector3(-2.8840332f, 43.999985f, -157.91565f), 128) { StopDistance = 7f }; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice + num4 = 1; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + Span span64 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span64[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA203_03957_Q1_000_000"), @@ -262422,13 +318135,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + Span span65 = CollectionsMarshal.AsSpan(list65); + index = 0; + span65[index] = "liza"; questRoot7.Author = list65; - num = 3; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span26 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference53 = ref span26[0]; + index = 3; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + Span span66 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference53 = ref span66[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -262436,21 +318152,26 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033987u, new Vector3(-2.8840332f, 43.99998f, -159.3805f), 128) + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033987u, new Vector3(-2.8840332f, 43.99998f, -159.3805f), 128) { StopDistance = 7f }; obj49.Steps = list67; reference53 = obj49; - ref QuestSequence reference54 = ref span26[1]; + num++; + ref QuestSequence reference54 = ref span66[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1033988u, new Vector3(20.675903f, -19.999985f, 105.39404f), 886) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.Interact, 1033988u, new Vector3(20.675903f, -19.999985f, 105.39404f), 886) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -262461,7 +318182,8 @@ public static class AssemblyQuestLoader }; obj50.Steps = list68; reference54 = obj50; - ref QuestSequence reference55 = ref span26[2]; + num++; + ref QuestSequence reference55 = ref span66[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -262469,7 +318191,9 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033990u, new Vector3(-38.71222f, -20f, 58.060547f), 886) + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033990u, new Vector3(-38.71222f, -20f, 58.060547f), 886) { StopDistance = 7f, NextQuestId = new QuestId(3960) @@ -262483,27 +318207,33 @@ public static class AssemblyQuestLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - CollectionsMarshal.AsSpan(list70)[0] = "liza"; + Span span70 = CollectionsMarshal.AsSpan(list70); + index = 0; + span70[index] = "liza"; questRoot8.Author = list70; - num = 3; - List list71 = new List(num); - CollectionsMarshal.SetCount(list71, num); - Span span27 = CollectionsMarshal.AsSpan(list71); - ref QuestSequence reference56 = ref span27[0]; + index = 3; + List list71 = new List(index); + CollectionsMarshal.SetCount(list71, index); + Span span71 = CollectionsMarshal.AsSpan(list71); + num = 0; + ref QuestSequence reference56 = ref span71[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033991u, new Vector3(-37.9187f, -20f, 59.433838f), 886) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033991u, new Vector3(-37.9187f, -20f, 59.433838f), 886) { StopDistance = 7f }; obj52.Steps = list72; reference56 = obj52; - ref QuestSequence reference57 = ref span27[1]; + num++; + ref QuestSequence reference57 = ref span71[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 @@ -262511,7 +318241,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Interact, 1034082u, new Vector3(118.57776f, -20.000143f, 46.860474f), 418) + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.Interact, 1034082u, new Vector3(118.57776f, -20.000143f, 46.860474f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -262522,15 +318254,18 @@ public static class AssemblyQuestLoader }; obj53.Steps = list73; reference57 = obj53; - ref QuestSequence reference58 = ref span27[2]; + num++; + ref QuestSequence reference58 = ref span71[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.CompleteQuest, 1034083u, new Vector3(38.28479f, -14.000004f, 40.05493f), 418) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.CompleteQuest, 1034083u, new Vector3(38.28479f, -14.000004f, 40.05493f), 418) { NextQuestId = new QuestId(3999) }; @@ -262543,13 +318278,16 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - CollectionsMarshal.AsSpan(list75)[0] = "liza"; + Span span75 = CollectionsMarshal.AsSpan(list75); + index = 0; + span75[index] = "liza"; questRoot9.Author = list75; - num = 3; - List list76 = new List(num); - CollectionsMarshal.SetCount(list76, num); - Span span28 = CollectionsMarshal.AsSpan(list76); - ref QuestSequence reference59 = ref span28[0]; + index = 3; + List list76 = new List(index); + CollectionsMarshal.SetCount(list76, index); + Span span76 = CollectionsMarshal.AsSpan(list76); + num = 0; + ref QuestSequence reference59 = ref span76[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -262557,28 +318295,34 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) { StopDistance = 4f }; obj55.Steps = list77; reference59 = obj55; - ref QuestSequence reference60 = ref span28[1]; + num++; + ref QuestSequence reference60 = ref span76[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1034507u, new Vector3(381.9486f, -64.35385f, 511.13135f), 815) + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.Interact, 1034507u, new Vector3(381.9486f, -64.35385f, 511.13135f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj56.Steps = list78; reference60 = obj56; - ref QuestSequence reference61 = ref span28[2]; + num++; + ref QuestSequence reference61 = ref span76[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -262586,7 +318330,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1034508u, new Vector3(380.66675f, -64.28985f, 510.58203f), 815) + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.CompleteQuest, 1034508u, new Vector3(380.66675f, -64.28985f, 510.58203f), 815) { NextQuestId = new QuestId(3976) }; @@ -262599,27 +318345,33 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + Span span80 = CollectionsMarshal.AsSpan(list80); + index = 0; + span80[index] = "liza"; questRoot10.Author = list80; - num = 4; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span29 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference62 = ref span29[0]; + index = 4; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + Span span81 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference62 = ref span81[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1034510u, new Vector3(31.021484f, 4.9285717f, -8.560364f), 878) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.AcceptQuest, 1034510u, new Vector3(31.021484f, 4.9285717f, -8.560364f), 878) { StopDistance = 4f }; obj58.Steps = list82; reference62 = obj58; - ref QuestSequence reference63 = ref span29[1]; + num++; + ref QuestSequence reference63 = ref span81[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 @@ -262627,23 +318379,28 @@ public static class AssemblyQuestLoader num2 = 2; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span30 = CollectionsMarshal.AsSpan(list83); - span30[0] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - span30[1] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); + index2++; + span83[index2] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); obj59.Steps = list83; reference63 = obj59; - ref QuestSequence reference64 = ref span29[2]; + num++; + ref QuestSequence reference64 = ref span81[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -262652,7 +318409,8 @@ public static class AssemblyQuestLoader }; obj60.Steps = list84; reference64 = obj60; - ref QuestSequence reference65 = ref span29[3]; + num++; + ref QuestSequence reference65 = ref span81[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -262660,7 +318418,9 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1034511u, new Vector3(101.27405f, -2.4161777E-14f, 93.36987f), 857) + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.CompleteQuest, 1034511u, new Vector3(101.27405f, -2.4161777E-14f, 93.36987f), 857) { NextQuestId = new QuestId(3977) }; @@ -262673,27 +318433,33 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; + Span span86 = CollectionsMarshal.AsSpan(list86); + index = 0; + span86[index] = "liza"; questRoot11.Author = list86; - num = 6; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span31 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference66 = ref span31[0]; + index = 6; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + Span span87 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference66 = ref span87[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1034514u, new Vector3(-8.163635f, -2.4984214f, 18.936401f), 878) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.AcceptQuest, 1034514u, new Vector3(-8.163635f, -2.4984214f, 18.936401f), 878) { StopDistance = 4f }; obj62.Steps = list88; reference66 = obj62; - ref QuestSequence reference67 = ref span31[1]; + num++; + ref QuestSequence reference67 = ref span87[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -262701,27 +318467,33 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1034513u, new Vector3(-6.149414f, -2.4984214f, 19.72992f), 878) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.Interact, 1034513u, new Vector3(-6.149414f, -2.4984214f, 19.72992f), 878) { StopDistance = 5f }; obj63.Steps = list89; reference67 = obj63; - ref QuestSequence reference68 = ref span31[2]; + num++; + ref QuestSequence reference68 = ref span87[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 2011241u, new Vector3(-14.6356f, -2.581f, 23.8476f), 878) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.Interact, 2011241u, new Vector3(-14.6356f, -2.581f, 23.8476f), 878) { TargetTerritoryId = (ushort)857 }; obj64.Steps = list90; reference68 = obj64; - ref QuestSequence reference69 = ref span31[3]; + num++; + ref QuestSequence reference69 = ref span87[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 @@ -262729,21 +318501,26 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1034515u, new Vector3(-7.888916f, -2.4984214f, 12.741211f), 878) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.Interact, 1034515u, new Vector3(-7.888916f, -2.4984214f, 12.741211f), 878) { StopDistance = 5f }; obj65.Steps = list91; reference69 = obj65; - ref QuestSequence reference70 = ref span31[4]; + num++; + ref QuestSequence reference70 = ref span87[num]; QuestSequence obj66 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -262752,7 +318529,8 @@ public static class AssemblyQuestLoader }; obj66.Steps = list92; reference70 = obj66; - ref QuestSequence reference71 = ref span31[5]; + num++; + ref QuestSequence reference71 = ref span87[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -262760,7 +318538,9 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.CompleteQuest, 1034518u, new Vector3(101.182495f, -3.8122757E-14f, 103.715576f), 857) + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.CompleteQuest, 1034518u, new Vector3(101.182495f, -3.8122757E-14f, 103.715576f), 857) { StopDistance = 7f, NextQuestId = new QuestId(3978) @@ -262774,27 +318554,33 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "liza"; + Span span94 = CollectionsMarshal.AsSpan(list94); + index = 0; + span94[index] = "liza"; questRoot12.Author = list94; - num = 7; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span32 = CollectionsMarshal.AsSpan(list95); - ref QuestSequence reference72 = ref span32[0]; + index = 7; + List list95 = new List(index); + CollectionsMarshal.SetCount(list95, index); + Span span95 = CollectionsMarshal.AsSpan(list95); + num = 0; + ref QuestSequence reference72 = ref span95[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1034519u, new Vector3(101.15198f, -3.8577113E-14f, 103.6239f), 857) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.AcceptQuest, 1034519u, new Vector3(101.15198f, -3.8577113E-14f, 103.6239f), 857) { StopDistance = 7f }; obj68.Steps = list96; reference72 = obj68; - ref QuestSequence reference73 = ref span32[1]; + num++; + ref QuestSequence reference73 = ref span95[num]; QuestSequence obj69 = new QuestSequence { Sequence = 1 @@ -262802,7 +318588,9 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -262811,19 +318599,23 @@ public static class AssemblyQuestLoader }; obj69.Steps = list97; reference73 = obj69; - span32[2] = new QuestSequence + num++; + span95[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference74 = ref span32[3]; + num++; + ref QuestSequence reference74 = ref span95[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -262832,7 +318624,8 @@ public static class AssemblyQuestLoader }; obj70.Steps = list98; reference74 = obj70; - ref QuestSequence reference75 = ref span32[4]; + num++; + ref QuestSequence reference75 = ref span95[num]; QuestSequence obj71 = new QuestSequence { Sequence = 4 @@ -262840,21 +318633,26 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1034521u, new Vector3(-8.163635f, -2.4984214f, 11.734131f), 878) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.Interact, 1034521u, new Vector3(-8.163635f, -2.4984214f, 11.734131f), 878) { StopDistance = 5f }; obj71.Steps = list99; reference75 = obj71; - ref QuestSequence reference76 = ref span32[5]; + num++; + ref QuestSequence reference76 = ref span95[num]; QuestSequence obj72 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Say, 1034520u, new Vector3(-7.7974243f, -2.4984214f, 11.337402f), 878) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.Say, 1034520u, new Vector3(-7.7974243f, -2.4984214f, 11.337402f), 878) { StopDistance = 5f, ChatMessage = new ChatMessage @@ -262864,7 +318662,8 @@ public static class AssemblyQuestLoader }; obj72.Steps = list100; reference76 = obj72; - ref QuestSequence reference77 = ref span32[6]; + num++; + ref QuestSequence reference77 = ref span95[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -262872,7 +318671,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1034521u, new Vector3(-8.163635f, -2.4984214f, 11.734131f), 878) + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.CompleteQuest, 1034521u, new Vector3(-8.163635f, -2.4984214f, 11.734131f), 878) { StopDistance = 5f }; @@ -262885,27 +318686,33 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "liza"; + Span span102 = CollectionsMarshal.AsSpan(list102); + index = 0; + span102[index] = "liza"; questRoot13.Author = list102; - num = 3; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span33 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference78 = ref span33[0]; + index = 3; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + Span span103 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference78 = ref span103[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1034522u, new Vector3(-7.0039062f, -2.4980054f, 21.591492f), 878) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.AcceptQuest, 1034522u, new Vector3(-7.0039062f, -2.4980054f, 21.591492f), 878) { StopDistance = 7f }; obj74.Steps = list104; reference78 = obj74; - ref QuestSequence reference79 = ref span33[1]; + num++; + ref QuestSequence reference79 = ref span103[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 @@ -262913,27 +318720,32 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1034508u, new Vector3(380.66675f, -64.28985f, 510.58203f), 815) + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.Interact, 1034508u, new Vector3(380.66675f, -64.28985f, 510.58203f), 815) { StopDistance = 5f }; obj75.Steps = list105; reference79 = obj75; - ref QuestSequence reference80 = ref span33[2]; + num++; + ref QuestSequence reference80 = ref span103[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - Span span34 = CollectionsMarshal.AsSpan(list106); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(268.15204f, 7.1558266f, -237.94643f), 815) + index2 = 2; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(268.15204f, 7.1558266f, -237.94643f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - span34[1] = new QuestStep(EInteractionType.CompleteQuest, 1032715u, new Vector3(265.3086f, 7.1558266f, -237.81189f), 815) + num2++; + span106[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032715u, new Vector3(265.3086f, 7.1558266f, -237.81189f), 815) { StopDistance = 4f }; @@ -262946,13 +318758,16 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + Span span107 = CollectionsMarshal.AsSpan(list107); + index = 0; + span107[index] = "liza"; questRoot14.Author = list107; - num = 9; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span35 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference81 = ref span35[0]; + index = 9; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + Span span108 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference81 = ref span108[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -262960,7 +318775,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -262973,15 +318790,18 @@ public static class AssemblyQuestLoader }; obj77.Steps = list109; reference81 = obj77; - ref QuestSequence reference82 = ref span35[1]; + num++; + ref QuestSequence reference82 = ref span108[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list110)[0]; + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + ref QuestStep reference83 = ref span110[num2]; QuestStep obj79 = new QuestStep(EInteractionType.Interact, 1035243u, new Vector3(-533.4402f, 8.187748f, -46.341675f), 621) { Fly = true @@ -262989,7 +318809,9 @@ public static class AssemblyQuestLoader num3 = 1; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = new DialogueChoice + Span span111 = CollectionsMarshal.AsSpan(list111); + num4 = 0; + span111[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYW301_03980_Q2_000_000") @@ -262998,7 +318820,8 @@ public static class AssemblyQuestLoader reference83 = obj79; obj78.Steps = list110; reference82 = obj78; - ref QuestSequence reference84 = ref span35[2]; + num++; + ref QuestSequence reference84 = ref span108[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 @@ -263006,21 +318829,27 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); obj80.Steps = list112; reference84 = obj80; - ref QuestSequence reference85 = ref span35[3]; + num++; + ref QuestSequence reference85 = ref span108[num]; QuestSequence obj81 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1035319u, new Vector3(-467.0329f, 22.94018f, -416.89178f), 140); + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.Interact, 1035319u, new Vector3(-467.0329f, 22.94018f, -416.89178f), 140); obj81.Steps = list113; reference85 = obj81; - ref QuestSequence reference86 = ref span35[4]; + num++; + ref QuestSequence reference86 = ref span108[num]; QuestSequence obj82 = new QuestSequence { Sequence = 4 @@ -263028,7 +318857,9 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Duty, null, null, 140) + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = new QuestStep(EInteractionType.Duty, null, null, 140) { DutyOptions = new DutyOptions { @@ -263037,21 +318868,25 @@ public static class AssemblyQuestLoader }; obj82.Steps = list114; reference86 = obj82; - ref QuestSequence reference87 = ref span35[5]; + num++; + ref QuestSequence reference87 = ref span108[num]; QuestSequence obj83 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1035321u, new Vector3(98.802124f, 3.9999998f, 25.558838f), 967) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span115[num2] = new QuestStep(EInteractionType.Interact, 1035321u, new Vector3(98.802124f, 3.9999998f, 25.558838f), 967) { StopDistance = 5f }; obj83.Steps = list115; reference87 = obj83; - ref QuestSequence reference88 = ref span35[6]; + num++; + ref QuestSequence reference88 = ref span108[num]; QuestSequence obj84 = new QuestSequence { Sequence = 6 @@ -263059,21 +318894,27 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); obj84.Steps = list116; reference88 = obj84; - ref QuestSequence reference89 = ref span35[7]; + num++; + ref QuestSequence reference89 = ref span108[num]; QuestSequence obj85 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1035322u, new Vector3(-37.1557f, 41f, -2.02948f), 919); + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.Interact, 1035322u, new Vector3(-37.1557f, 41f, -2.02948f), 919); obj85.Steps = list117; reference89 = obj85; - ref QuestSequence reference90 = ref span35[8]; + num++; + ref QuestSequence reference90 = ref span108[num]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -263081,8 +318922,9 @@ public static class AssemblyQuestLoader num2 = 3; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span36 = CollectionsMarshal.AsSpan(list118); - ref QuestStep reference91 = ref span36[0]; + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + ref QuestStep reference91 = ref span118[index2]; QuestStep obj87 = new QuestStep(EInteractionType.Interact, 1033636u, new Vector3(-5.5390625f, 41.019974f, 25.680908f), 919) { StopDistance = 7f, @@ -263090,15 +318932,18 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = 919; + num4 = 1; + List list119 = new List(num4); + CollectionsMarshal.SetCount(list119, num4); + Span span119 = CollectionsMarshal.AsSpan(list119); + num3 = 0; + span119[num3] = 919; skipStepConditions.NotInTerritory = list119; skipConditions.StepIf = skipStepConditions; obj87.SkipConditions = skipConditions; reference91 = obj87; - span36[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) + index2++; + span118[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, @@ -263110,7 +318955,8 @@ public static class AssemblyQuestLoader } } }; - span36[2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + index2++; + span118[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { NextQuestId = new QuestId(3981) }; @@ -263123,21 +318969,26 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "liza"; + Span span120 = CollectionsMarshal.AsSpan(list120); + index = 0; + span120[index] = "liza"; questRoot15.Author = list120; - num = 5; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - Span span37 = CollectionsMarshal.AsSpan(list121); - ref QuestSequence reference92 = ref span37[0]; + index = 5; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + Span span121 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference92 = ref span121[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -263150,7 +319001,8 @@ public static class AssemblyQuestLoader }; obj88.Steps = list122; reference92 = obj88; - ref QuestSequence reference93 = ref span37[1]; + num++; + ref QuestSequence reference93 = ref span121[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -263158,12 +319010,16 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list123)[0]; + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + ref QuestStep reference94 = ref span123[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1035243u, new Vector3(-533.4402f, 8.187748f, -46.341675f), 621); num3 = 1; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice + Span span124 = CollectionsMarshal.AsSpan(list124); + num4 = 0; + span124[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYW311_03981_Q3_000_000") @@ -263172,18 +319028,22 @@ public static class AssemblyQuestLoader reference94 = questStep5; obj89.Steps = list123; reference93 = obj89; - ref QuestSequence reference95 = ref span37[2]; + num++; + ref QuestSequence reference95 = ref span121[num]; QuestSequence obj90 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1035120u, new Vector3(52.140015f, 41f, 28.335938f), 919); + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span125[num2] = new QuestStep(EInteractionType.Interact, 1035120u, new Vector3(52.140015f, 41f, 28.335938f), 919); obj90.Steps = list125; reference95 = obj90; - ref QuestSequence reference96 = ref span37[3]; + num++; + ref QuestSequence reference96 = ref span121[num]; QuestSequence obj91 = new QuestSequence { Sequence = 3 @@ -263191,19 +319051,23 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1035323u, new Vector3(1.1443481f, 41.01995f, 24.917969f), 919); + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span126[index2] = new QuestStep(EInteractionType.Interact, 1035323u, new Vector3(1.1443481f, 41.01995f, 24.917969f), 919); obj91.Steps = list126; reference96 = obj91; - ref QuestSequence reference97 = ref span37[4]; + num++; + ref QuestSequence reference97 = ref span121[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - Span span38 = CollectionsMarshal.AsSpan(list127); - ref QuestStep reference98 = ref span38[0]; + index2 = 3; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + ref QuestStep reference98 = ref span127[num2]; QuestStep obj93 = new QuestStep(EInteractionType.Interact, 1033636u, new Vector3(-5.5390625f, 41.019974f, 25.680908f), 919) { StopDistance = 7f, @@ -263211,15 +319075,18 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = 919; + num4 = 1; + List list128 = new List(num4); + CollectionsMarshal.SetCount(list128, num4); + Span span128 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span128[num3] = 919; skipStepConditions2.NotInTerritory = list128; skipConditions2.StepIf = skipStepConditions2; obj93.SkipConditions = skipConditions2; reference98 = obj93; - span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) + num2++; + span127[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, @@ -263231,7 +319098,8 @@ public static class AssemblyQuestLoader } } }; - span38[2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + num2++; + span127[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { NextQuestId = new QuestId(4031) }; @@ -263244,13 +319112,16 @@ public static class AssemblyQuestLoader num = 1; List list129 = new List(num); CollectionsMarshal.SetCount(list129, num); - CollectionsMarshal.AsSpan(list129)[0] = "plogon_enjoyer"; + Span span129 = CollectionsMarshal.AsSpan(list129); + index = 0; + span129[index] = "plogon_enjoyer"; questRoot16.Author = list129; - num = 4; - List list130 = new List(num); - CollectionsMarshal.SetCount(list130, num); - Span span39 = CollectionsMarshal.AsSpan(list130); - ref QuestSequence reference99 = ref span39[0]; + index = 4; + List list130 = new List(index); + CollectionsMarshal.SetCount(list130, index); + Span span130 = CollectionsMarshal.AsSpan(list130); + num = 0; + ref QuestSequence reference99 = ref span130[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 @@ -263258,21 +319129,27 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819); + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819); obj94.Steps = list131; reference99 = obj94; - ref QuestSequence reference100 = ref span39[1]; + num++; + ref QuestSequence reference100 = ref span130[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1031533u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819); + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.Interact, 1031533u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819); obj95.Steps = list132; reference100 = obj95; - ref QuestSequence reference101 = ref span39[2]; + num++; + ref QuestSequence reference101 = ref span130[num]; QuestSequence obj96 = new QuestSequence { Sequence = 2 @@ -263280,18 +319157,23 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819); + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.Interact, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819); obj96.Steps = list133; reference101 = obj96; - ref QuestSequence reference102 = ref span39[3]; + num++; + ref QuestSequence reference102 = ref span130[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819) { NextQuestId = new QuestId(3986) }; @@ -263304,13 +319186,16 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "plogon_enjoyer"; + Span span135 = CollectionsMarshal.AsSpan(list135); + index = 0; + span135[index] = "plogon_enjoyer"; questRoot17.Author = list135; - num = 6; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span40 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference103 = ref span40[0]; + index = 6; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + Span span136 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference103 = ref span136[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 @@ -263318,12 +319203,16 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - ref QuestStep reference104 = ref CollectionsMarshal.AsSpan(list137)[0]; + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + ref QuestStep reference104 = ref span137[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.AcceptQuest, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819); num3 = 1; List list138 = new List(num3); CollectionsMarshal.SetCount(list138, num3); - CollectionsMarshal.AsSpan(list138)[0] = new DialogueChoice + Span span138 = CollectionsMarshal.AsSpan(list138); + num4 = 0; + span138[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKUN001_03986_Q1_000_000"), @@ -263333,28 +319222,33 @@ public static class AssemblyQuestLoader reference104 = questStep6; obj98.Steps = list137; reference103 = obj98; - ref QuestSequence reference105 = ref span40[1]; + num++; + ref QuestSequence reference105 = ref span136[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - Span span41 = CollectionsMarshal.AsSpan(list139); - span41[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + Span span139 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span139[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span41[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span139[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span41[2] = new QuestStep(EInteractionType.Interact, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351); + num2++; + span139[num2] = new QuestStep(EInteractionType.Interact, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351); obj99.Steps = list139; reference105 = obj99; - ref QuestSequence reference106 = ref span40[2]; + num++; + ref QuestSequence reference106 = ref span136[num]; QuestSequence obj100 = new QuestSequence { Sequence = 2 @@ -263362,18 +319256,23 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 2011294u, new Vector3(1.9683228f, -1.9990234f, -42.343872f), 351); + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.Interact, 2011294u, new Vector3(1.9683228f, -1.9990234f, -42.343872f), 351); obj100.Steps = list140; reference106 = obj100; - ref QuestSequence reference107 = ref span40[3]; + num++; + ref QuestSequence reference107 = ref span136[num]; QuestSequence obj101 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list141)[0]; + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + ref QuestStep reference108 = ref span141[num2]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 1033908u, new Vector3(-63.61493f, -17.722f, -264.75934f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -263383,10 +319282,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumCabinetOfCuriosity } }; - num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = new DialogueChoice + num4 = 1; + List list142 = new List(num4); + CollectionsMarshal.SetCount(list142, num4); + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span142[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKUN001_03986_Q3_000_000"), @@ -263396,7 +319297,8 @@ public static class AssemblyQuestLoader reference108 = obj102; obj101.Steps = list141; reference107 = obj101; - ref QuestSequence reference109 = ref span40[4]; + num++; + ref QuestSequence reference109 = ref span136[num]; QuestSequence obj103 = new QuestSequence { Sequence = 4 @@ -263404,7 +319306,9 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819) + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.Interact, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819) { AethernetShortcut = new AethernetShortcut { @@ -263414,15 +319318,18 @@ public static class AssemblyQuestLoader }; obj103.Steps = list143; reference109 = obj103; - ref QuestSequence reference110 = ref span40[5]; + num++; + ref QuestSequence reference110 = ref span136[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030644u, new Vector3(-0.5036011f, 3.9998171f, 200.57983f), 819) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030644u, new Vector3(-0.5036011f, 3.9998171f, 200.57983f), 819) { NextQuestId = new QuestId(3987) }; @@ -263435,13 +319342,16 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "plogon_enjoyer"; + Span span145 = CollectionsMarshal.AsSpan(list145); + index = 0; + span145[index] = "plogon_enjoyer"; questRoot18.Author = list145; - num = 8; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span42 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference111 = ref span42[0]; + index = 8; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + Span span146 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference111 = ref span146[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 @@ -263449,25 +319359,31 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035281u, new Vector3(-1.1444702f, 3.9998174f, 199.6947f), 819); + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035281u, new Vector3(-1.1444702f, 3.9998174f, 199.6947f), 819); obj105.Steps = list147; reference111 = obj105; - ref QuestSequence reference112 = ref span42[1]; + num++; + ref QuestSequence reference112 = ref span146[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1035282u, new Vector3(660.82227f, 14.620537f, 216.32703f), 813) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.Interact, 1035282u, new Vector3(660.82227f, 14.620537f, 216.32703f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj106.Steps = list148; reference112 = obj106; - ref QuestSequence reference113 = ref span42[2]; + num++; + ref QuestSequence reference113 = ref span146[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 @@ -263475,7 +319391,9 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - ref QuestStep reference114 = ref CollectionsMarshal.AsSpan(list149)[0]; + Span span149 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + ref QuestStep reference114 = ref span149[index2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, null, new Vector3(652.8607f, 14.622499f, 222.77487f), 813) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -263483,23 +319401,29 @@ public static class AssemblyQuestLoader num3 = 1; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = 12662u; + Span span150 = CollectionsMarshal.AsSpan(list150); + num4 = 0; + span150[num4] = 12662u; obj108.KillEnemyDataIds = list150; reference114 = obj108; obj107.Steps = list149; reference113 = obj107; - ref QuestSequence reference115 = ref span42[3]; + num++; + ref QuestSequence reference115 = ref span146[num]; QuestSequence obj109 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1035632u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813); + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span151[num2] = new QuestStep(EInteractionType.Interact, 1035632u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813); obj109.Steps = list151; reference115 = obj109; - ref QuestSequence reference116 = ref span42[4]; + num++; + ref QuestSequence reference116 = ref span146[num]; QuestSequence obj110 = new QuestSequence { Sequence = 4 @@ -263507,31 +319431,39 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - ref QuestStep reference117 = ref CollectionsMarshal.AsSpan(list152)[0]; + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + ref QuestStep reference117 = ref span152[index2]; QuestStep obj111 = new QuestStep(EInteractionType.Combat, null, new Vector3(652.62976f, 14.622499f, 223.06616f), 813) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = 12663u; + num4 = 1; + List list153 = new List(num4); + CollectionsMarshal.SetCount(list153, num4); + Span span153 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span153[num3] = 12663u; obj111.KillEnemyDataIds = list153; reference117 = obj111; obj110.Steps = list152; reference116 = obj110; - ref QuestSequence reference118 = ref span42[5]; + num++; + ref QuestSequence reference118 = ref span146[num]; QuestSequence obj112 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1035283u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813); + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.Interact, 1035283u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813); obj112.Steps = list154; reference118 = obj112; - ref QuestSequence reference119 = ref span42[6]; + num++; + ref QuestSequence reference119 = ref span146[num]; QuestSequence obj113 = new QuestSequence { Sequence = 6 @@ -263539,7 +319471,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - ref QuestStep reference120 = ref CollectionsMarshal.AsSpan(list155)[0]; + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + ref QuestStep reference120 = ref span155[index2]; QuestStep obj114 = new QuestStep(EInteractionType.Combat, null, new Vector3(652.4463f, 14.6225f, 222.89134f), 813) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -263547,20 +319481,25 @@ public static class AssemblyQuestLoader num3 = 1; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = 12664u; + Span span156 = CollectionsMarshal.AsSpan(list156); + num4 = 0; + span156[num4] = 12664u; obj114.KillEnemyDataIds = list156; reference120 = obj114; obj113.Steps = list155; reference119 = obj113; - ref QuestSequence reference121 = ref span42[7]; + num++; + ref QuestSequence reference121 = ref span146[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035283u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span157[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035283u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813) { NextQuestId = new QuestId(3988) }; @@ -263573,13 +319512,16 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - CollectionsMarshal.AsSpan(list158)[0] = "plogon_enjoyer"; + Span span158 = CollectionsMarshal.AsSpan(list158); + index = 0; + span158[index] = "plogon_enjoyer"; questRoot19.Author = list158; - num = 6; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - Span span43 = CollectionsMarshal.AsSpan(list159); - ref QuestSequence reference122 = ref span43[0]; + index = 6; + List list159 = new List(index); + CollectionsMarshal.SetCount(list159, index); + Span span159 = CollectionsMarshal.AsSpan(list159); + num = 0; + ref QuestSequence reference122 = ref span159[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 @@ -263587,24 +319529,30 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035283u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813); + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035283u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813); obj116.Steps = list160; reference122 = obj116; - ref QuestSequence reference123 = ref span43[1]; + num++; + ref QuestSequence reference123 = ref span159[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1035287u, new Vector3(9.231689f, 195.68256f, -312.70312f), 813) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + Span span161 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span161[num2] = new QuestStep(EInteractionType.Interact, 1035287u, new Vector3(9.231689f, 195.68256f, -312.70312f), 813) { Fly = true }; obj117.Steps = list161; reference123 = obj117; - ref QuestSequence reference124 = ref span43[2]; + num++; + ref QuestSequence reference124 = ref span159[num]; QuestSequence obj118 = new QuestSequence { Sequence = 2 @@ -263612,31 +319560,39 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list162)[0]; + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + ref QuestStep reference125 = ref span162[index2]; QuestStep obj119 = new QuestStep(EInteractionType.Combat, null, new Vector3(2.5688472f, 195.76323f, -300.17883f), 813) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list163 = new List(num3); - CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = 12665u; + num4 = 1; + List list163 = new List(num4); + CollectionsMarshal.SetCount(list163, num4); + Span span163 = CollectionsMarshal.AsSpan(list163); + num3 = 0; + span163[num3] = 12665u; obj119.KillEnemyDataIds = list163; reference125 = obj119; obj118.Steps = list162; reference124 = obj118; - ref QuestSequence reference126 = ref span43[3]; + num++; + ref QuestSequence reference126 = ref span159[num]; QuestSequence obj120 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1035290u, new Vector3(10.940674f, 195.68256f, -313.89337f), 813); + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.Interact, 1035290u, new Vector3(10.940674f, 195.68256f, -313.89337f), 813); obj120.Steps = list164; reference126 = obj120; - ref QuestSequence reference127 = ref span43[4]; + num++; + ref QuestSequence reference127 = ref span159[num]; QuestSequence obj121 = new QuestSequence { Sequence = 4 @@ -263644,18 +319600,23 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 2011298u, new Vector3(2.5689f, 195.7632f, -300.4041f), 813); + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.Interact, 2011298u, new Vector3(2.5689f, 195.7632f, -300.4041f), 813); obj121.Steps = list165; reference127 = obj121; - ref QuestSequence reference128 = ref span43[5]; + num++; + ref QuestSequence reference128 = ref span159[num]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -263673,13 +319634,16 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "liza"; + Span span167 = CollectionsMarshal.AsSpan(list167); + index = 0; + span167[index] = "liza"; questRoot20.Author = list167; - num = 3; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span44 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference129 = ref span44[0]; + index = 3; + List list168 = new List(index); + CollectionsMarshal.SetCount(list168, index); + Span span168 = CollectionsMarshal.AsSpan(list168); + num = 0; + ref QuestSequence reference129 = ref span168[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 @@ -263687,7 +319651,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - ref QuestStep reference130 = ref CollectionsMarshal.AsSpan(list169)[0]; + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + ref QuestStep reference130 = ref span169[index2]; QuestStep obj124 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -263706,22 +319672,27 @@ public static class AssemblyQuestLoader num3 = 1; List list170 = new List(num3); CollectionsMarshal.SetCount(list170, num3); - CollectionsMarshal.AsSpan(list170)[0] = 131; + Span span170 = CollectionsMarshal.AsSpan(list170); + num4 = 0; + span170[num4] = 131; obj125.InTerritory = list170; skipConditions3.AetheryteShortcutIf = obj125; obj124.SkipConditions = skipConditions3; reference130 = obj124; obj123.Steps = list169; reference129 = obj123; - ref QuestSequence reference131 = ref span44[1]; + num++; + ref QuestSequence reference131 = ref span168[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1035094u, new Vector3(101.21301f, 9.738088f, 630.88416f), 141) + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + Span span171 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span171[num2] = new QuestStep(EInteractionType.Interact, 1035094u, new Vector3(101.21301f, 9.738088f, 630.88416f), 141) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -263732,7 +319703,8 @@ public static class AssemblyQuestLoader }; obj126.Steps = list171; reference131 = obj126; - ref QuestSequence reference132 = ref span44[2]; + num++; + ref QuestSequence reference132 = ref span168[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -263740,7 +319712,9 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -263760,21 +319734,26 @@ public static class AssemblyQuestLoader num = 1; List list173 = new List(num); CollectionsMarshal.SetCount(list173, num); - CollectionsMarshal.AsSpan(list173)[0] = "liza"; + Span span173 = CollectionsMarshal.AsSpan(list173); + index = 0; + span173[index] = "liza"; questRoot21.Author = list173; - num = 8; - List list174 = new List(num); - CollectionsMarshal.SetCount(list174, num); - Span span45 = CollectionsMarshal.AsSpan(list174); - ref QuestSequence reference133 = ref span45[0]; + index = 8; + List list174 = new List(index); + CollectionsMarshal.SetCount(list174, index); + Span span174 = CollectionsMarshal.AsSpan(list174); + num = 0; + ref QuestSequence reference133 = ref span174[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list175)[0]; + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + ref QuestStep reference134 = ref span175[num2]; QuestStep obj129 = new QuestStep(EInteractionType.AcceptQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { StopDistance = 7f, @@ -263790,17 +319769,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = 131; + num4 = 1; + List list176 = new List(num4); + CollectionsMarshal.SetCount(list176, num4); + Span span176 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span176[num3] = 131; obj130.InTerritory = list176; skipConditions4.AetheryteShortcutIf = obj130; obj129.SkipConditions = skipConditions4; reference134 = obj129; obj128.Steps = list175; reference133 = obj128; - ref QuestSequence reference135 = ref span45[1]; + num++; + ref QuestSequence reference135 = ref span174[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 @@ -263808,7 +319790,9 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - ref QuestStep reference136 = ref CollectionsMarshal.AsSpan(list177)[0]; + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + ref QuestStep reference136 = ref span177[index2]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -263821,7 +319805,9 @@ public static class AssemblyQuestLoader num3 = 1; List list178 = new List(num3); CollectionsMarshal.SetCount(list178, num3); - CollectionsMarshal.AsSpan(list178)[0] = new DialogueChoice + Span span178 = CollectionsMarshal.AsSpan(list178); + num4 = 0; + span178[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBAOZ630_03990_Q1_000_000"), @@ -263831,16 +319817,18 @@ public static class AssemblyQuestLoader reference136 = obj132; obj131.Steps = list177; reference135 = obj131; - ref QuestSequence reference137 = ref span45[2]; + num++; + ref QuestSequence reference137 = ref span174[num]; QuestSequence obj133 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - Span span46 = CollectionsMarshal.AsSpan(list179); - ref QuestStep reference138 = ref span46[0]; + index2 = 3; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + ref QuestStep reference138 = ref span179[num2]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 1019038u, new Vector3(-55.222473f, -2.9000003f, -65.65961f), 628) { AethernetShortcut = new AethernetShortcut @@ -263849,49 +319837,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeShiokazeHostelry } }; - num3 = 6; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - Span span47 = CollectionsMarshal.AsSpan(list180); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list180 = new List(num4); + CollectionsMarshal.SetCount(list180, num4); + Span span180 = CollectionsMarshal.AsSpan(list180); + num3 = 0; + span180[num3] = null; + num3++; + span180[num3] = null; + num3++; + span180[num3] = null; + num3++; + span180[num3] = null; + num3++; + span180[num3] = null; + num3++; + span180[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj134.CompletionQuestVariablesFlags = list180; reference138 = obj134; - ref QuestStep reference139 = ref span46[1]; + num2++; + ref QuestStep reference139 = ref span179[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1019069u, new Vector3(-62.119568f, 8f, -56.62628f), 628); num3 = 6; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - Span span48 = CollectionsMarshal.AsSpan(list181); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span181 = CollectionsMarshal.AsSpan(list181); + num4 = 0; + span181[num4] = null; + num4++; + span181[num4] = null; + num4++; + span181[num4] = null; + num4++; + span181[num4] = null; + num4++; + span181[num4] = null; + num4++; + span181[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list181; reference139 = questStep7; - ref QuestStep reference140 = ref span46[2]; + num2++; + ref QuestStep reference140 = ref span179[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1035099u, new Vector3(-36.728516f, 14.000002f, -52.170654f), 628); - num3 = 6; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - Span span49 = CollectionsMarshal.AsSpan(list182); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list182 = new List(num4); + CollectionsMarshal.SetCount(list182, num4); + Span span182 = CollectionsMarshal.AsSpan(list182); + num3 = 0; + span182[num3] = null; + num3++; + span182[num3] = null; + num3++; + span182[num3] = null; + num3++; + span182[num3] = null; + num3++; + span182[num3] = null; + num3++; + span182[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list182; reference140 = questStep8; obj133.Steps = list179; reference137 = obj133; - ref QuestSequence reference141 = ref span45[3]; + num++; + ref QuestSequence reference141 = ref span174[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -263899,7 +319908,9 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) + Span span183 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span183[index2] = new QuestStep(EInteractionType.Interact, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -263910,15 +319921,18 @@ public static class AssemblyQuestLoader }; obj135.Steps = list183; reference141 = obj135; - ref QuestSequence reference142 = ref span45[4]; + num++; + ref QuestSequence reference142 = ref span174[num]; QuestSequence obj136 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1035103u, new Vector3(56.77881f, 4.05f, 92.36279f), 628) + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span184[num2] = new QuestStep(EInteractionType.Interact, 1035103u, new Vector3(56.77881f, 4.05f, 92.36279f), 628) { AethernetShortcut = new AethernetShortcut { @@ -263928,7 +319942,8 @@ public static class AssemblyQuestLoader }; obj136.Steps = list184; reference142 = obj136; - ref QuestSequence reference143 = ref span45[5]; + num++; + ref QuestSequence reference143 = ref span174[num]; QuestSequence obj137 = new QuestSequence { Sequence = 5 @@ -263936,7 +319951,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1035104u, new Vector3(153.42944f, 18.1f, 50.70569f), 628) + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.Interact, 1035104u, new Vector3(153.42944f, 18.1f, 50.70569f), 628) { AethernetShortcut = new AethernetShortcut { @@ -263946,21 +319963,25 @@ public static class AssemblyQuestLoader }; obj137.Steps = list185; reference143 = obj137; - ref QuestSequence reference144 = ref span45[6]; + num++; + ref QuestSequence reference144 = ref span174[num]; QuestSequence obj138 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1035097u, new Vector3(151.87305f, 18.1f, 49.484985f), 628) + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span186[num2] = new QuestStep(EInteractionType.Interact, 1035097u, new Vector3(151.87305f, 18.1f, 49.484985f), 628) { StopDistance = 5f }; obj138.Steps = list186; reference144 = obj138; - ref QuestSequence reference145 = ref span45[7]; + num++; + ref QuestSequence reference145 = ref span174[num]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue @@ -263968,7 +319989,9 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) + Span span187 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span187[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AethernetShortcut = new AethernetShortcut { @@ -263986,21 +320009,26 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; + Span span188 = CollectionsMarshal.AsSpan(list188); + index = 0; + span188[index] = "liza"; questRoot22.Author = list188; - num = 7; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span50 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference146 = ref span50[0]; + index = 7; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + Span span189 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference146 = ref span189[num]; QuestSequence obj140 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - ref QuestStep reference147 = ref CollectionsMarshal.AsSpan(list190)[0]; + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + ref QuestStep reference147 = ref span190[num2]; QuestStep obj141 = new QuestStep(EInteractionType.AcceptQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -264020,7 +320048,9 @@ public static class AssemblyQuestLoader num3 = 1; List list191 = new List(num3); CollectionsMarshal.SetCount(list191, num3); - CollectionsMarshal.AsSpan(list191)[0] = new DialogueChoice + Span span191 = CollectionsMarshal.AsSpan(list191); + num4 = 0; + span191[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBAOZ650_03991_Q1_000_000"), @@ -264030,7 +320060,8 @@ public static class AssemblyQuestLoader reference147 = obj141; obj140.Steps = list190; reference146 = obj140; - ref QuestSequence reference148 = ref span50[1]; + num++; + ref QuestSequence reference148 = ref span189[num]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -264038,7 +320069,9 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1035103u, new Vector3(56.77881f, 4.05f, 92.36279f), 628) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.Interact, 1035103u, new Vector3(56.77881f, 4.05f, 92.36279f), 628) { AethernetShortcut = new AethernetShortcut { @@ -264048,46 +320081,62 @@ public static class AssemblyQuestLoader }; obj142.Steps = list192; reference148 = obj142; - ref QuestSequence reference149 = ref span50[2]; + num++; + ref QuestSequence reference149 = ref span189[num]; QuestSequence obj143 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - Span span51 = CollectionsMarshal.AsSpan(list193); - ref QuestStep reference150 = ref span51[0]; + index2 = 2; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + ref QuestStep reference150 = ref span193[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1018989u, new Vector3(35.171997f, 4.8365545f, 49.240845f), 628); - num3 = 6; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - Span span52 = CollectionsMarshal.AsSpan(list194); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list194 = new List(num4); + CollectionsMarshal.SetCount(list194, num4); + Span span194 = CollectionsMarshal.AsSpan(list194); + num3 = 0; + span194[num3] = null; + num3++; + span194[num3] = null; + num3++; + span194[num3] = null; + num3++; + span194[num3] = null; + num3++; + span194[num3] = null; + num3++; + span194[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list194; reference150 = questStep9; - ref QuestStep reference151 = ref span51[1]; + num2++; + ref QuestStep reference151 = ref span193[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1018990u, new Vector3(40.024292f, 4.83654f, 49.05774f), 628); num3 = 6; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - Span span53 = CollectionsMarshal.AsSpan(list195); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span195 = CollectionsMarshal.AsSpan(list195); + num4 = 0; + span195[num4] = null; + num4++; + span195[num4] = null; + num4++; + span195[num4] = null; + num4++; + span195[num4] = null; + num4++; + span195[num4] = null; + num4++; + span195[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list195; reference151 = questStep10; obj143.Steps = list193; reference149 = obj143; - ref QuestSequence reference152 = ref span50[3]; + num++; + ref QuestSequence reference152 = ref span189[num]; QuestSequence obj144 = new QuestSequence { Sequence = 3 @@ -264095,21 +320144,27 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1035106u, new Vector3(83.08533f, 4.0000014f, 51.621216f), 628); + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span196[index2] = new QuestStep(EInteractionType.Interact, 1035106u, new Vector3(83.08533f, 4.0000014f, 51.621216f), 628); obj144.Steps = list196; reference152 = obj144; - ref QuestSequence reference153 = ref span50[4]; + num++; + ref QuestSequence reference153 = ref span189[num]; QuestSequence obj145 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1035107u, new Vector3(139.0249f, 18f, 48.508423f), 628); + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span197[num2] = new QuestStep(EInteractionType.Interact, 1035107u, new Vector3(139.0249f, 18f, 48.508423f), 628); obj145.Steps = list197; reference153 = obj145; - ref QuestSequence reference154 = ref span50[5]; + num++; + ref QuestSequence reference154 = ref span189[num]; QuestSequence obj146 = new QuestSequence { Sequence = 5 @@ -264117,18 +320172,23 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1035105u, new Vector3(139.0249f, 18f, 48.508423f), 628); + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span198[index2] = new QuestStep(EInteractionType.Interact, 1035105u, new Vector3(139.0249f, 18f, 48.508423f), 628); obj146.Steps = list198; reference154 = obj146; - ref QuestSequence reference155 = ref span50[6]; + num++; + ref QuestSequence reference155 = ref span189[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + Span span199 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span199[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AethernetShortcut = new AethernetShortcut { @@ -264146,13 +320206,16 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - CollectionsMarshal.AsSpan(list200)[0] = "liza"; + Span span200 = CollectionsMarshal.AsSpan(list200); + index = 0; + span200[index] = "liza"; questRoot23.Author = list200; - num = 7; - List list201 = new List(num); - CollectionsMarshal.SetCount(list201, num); - Span span54 = CollectionsMarshal.AsSpan(list201); - ref QuestSequence reference156 = ref span54[0]; + index = 7; + List list201 = new List(index); + CollectionsMarshal.SetCount(list201, index); + Span span201 = CollectionsMarshal.AsSpan(list201); + num = 0; + ref QuestSequence reference156 = ref span201[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 @@ -264160,7 +320223,9 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) + Span span202 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span202[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -264178,15 +320243,18 @@ public static class AssemblyQuestLoader }; obj148.Steps = list202; reference156 = obj148; - ref QuestSequence reference157 = ref span54[1]; + num++; + ref QuestSequence reference157 = ref span201[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1035107u, new Vector3(139.0249f, 18f, 48.508423f), 628) + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.Interact, 1035107u, new Vector3(139.0249f, 18f, 48.508423f), 628) { AethernetShortcut = new AethernetShortcut { @@ -264196,7 +320264,8 @@ public static class AssemblyQuestLoader }; obj149.Steps = list203; reference157 = obj149; - ref QuestSequence reference158 = ref span54[2]; + num++; + ref QuestSequence reference158 = ref span201[num]; QuestSequence obj150 = new QuestSequence { Sequence = 2 @@ -264204,7 +320273,9 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1035108u, new Vector3(-106.401184f, -7f, -63.553833f), 628) + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span204[index2] = new QuestStep(EInteractionType.Interact, 1035108u, new Vector3(-106.401184f, -7f, -63.553833f), 628) { AethernetShortcut = new AethernetShortcut { @@ -264214,22 +320285,26 @@ public static class AssemblyQuestLoader }; obj150.Steps = list204; reference158 = obj150; - ref QuestSequence reference159 = ref span54[3]; + num++; + ref QuestSequence reference159 = ref span201[num]; QuestSequence obj151 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1035109u, new Vector3(449.27136f, 58.40733f, -149.82837f), 614) + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + Span span205 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span205[num2] = new QuestStep(EInteractionType.Interact, 1035109u, new Vector3(449.27136f, 58.40733f, -149.82837f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj151.Steps = list205; reference159 = obj151; - ref QuestSequence reference160 = ref span54[4]; + num++; + ref QuestSequence reference160 = ref span201[num]; QuestSequence obj152 = new QuestSequence { Sequence = 4 @@ -264237,70 +320312,95 @@ public static class AssemblyQuestLoader num2 = 3; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span55 = CollectionsMarshal.AsSpan(list206); - ref QuestStep reference161 = ref span55[0]; + Span span206 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + ref QuestStep reference161 = ref span206[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1035112u, new Vector3(457.32812f, 67.99535f, -108.20172f), 614); - num3 = 6; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - Span span56 = CollectionsMarshal.AsSpan(list207); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list207 = new List(num4); + CollectionsMarshal.SetCount(list207, num4); + Span span207 = CollectionsMarshal.AsSpan(list207); + num3 = 0; + span207[num3] = null; + num3++; + span207[num3] = null; + num3++; + span207[num3] = null; + num3++; + span207[num3] = null; + num3++; + span207[num3] = null; + num3++; + span207[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list207; reference161 = questStep11; - ref QuestStep reference162 = ref span55[1]; + index2++; + ref QuestStep reference162 = ref span206[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1019257u, new Vector3(468.55872f, 68.02771f, -93.21747f), 614); num3 = 6; List list208 = new List(num3); CollectionsMarshal.SetCount(list208, num3); - Span span57 = CollectionsMarshal.AsSpan(list208); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span208 = CollectionsMarshal.AsSpan(list208); + num4 = 0; + span208[num4] = null; + num4++; + span208[num4] = null; + num4++; + span208[num4] = null; + num4++; + span208[num4] = null; + num4++; + span208[num4] = null; + num4++; + span208[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list208; reference162 = questStep12; - ref QuestStep reference163 = ref span55[2]; + index2++; + ref QuestStep reference163 = ref span206[index2]; QuestStep obj153 = new QuestStep(EInteractionType.Interact, 1035113u, new Vector3(404.77612f, 72.81784f, -80.338745f), 614) { StopDistance = 1f, Fly = true }; - num3 = 6; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - Span span58 = CollectionsMarshal.AsSpan(list209); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list209 = new List(num4); + CollectionsMarshal.SetCount(list209, num4); + Span span209 = CollectionsMarshal.AsSpan(list209); + num3 = 0; + span209[num3] = null; + num3++; + span209[num3] = null; + num3++; + span209[num3] = null; + num3++; + span209[num3] = null; + num3++; + span209[num3] = null; + num3++; + span209[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj153.CompletionQuestVariablesFlags = list209; reference163 = obj153; obj152.Steps = list206; reference160 = obj152; - ref QuestSequence reference164 = ref span54[5]; + num++; + ref QuestSequence reference164 = ref span201[num]; QuestSequence obj154 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1035114u, new Vector3(382.62f, 85.20213f, -184.0086f), 614) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span210[num2] = new QuestStep(EInteractionType.Interact, 1035114u, new Vector3(382.62f, 85.20213f, -184.0086f), 614) { Fly = true }; obj154.Steps = list210; reference164 = obj154; - ref QuestSequence reference165 = ref span54[6]; + num++; + ref QuestSequence reference165 = ref span201[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue @@ -264308,7 +320408,9 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) + Span span211 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span211[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -264327,21 +320429,26 @@ public static class AssemblyQuestLoader num = 1; List list212 = new List(num); CollectionsMarshal.SetCount(list212, num); - CollectionsMarshal.AsSpan(list212)[0] = "liza"; + Span span212 = CollectionsMarshal.AsSpan(list212); + index = 0; + span212[index] = "liza"; questRoot24.Author = list212; - num = 4; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - Span span59 = CollectionsMarshal.AsSpan(list213); - ref QuestSequence reference166 = ref span59[0]; + index = 4; + List list213 = new List(index); + CollectionsMarshal.SetCount(list213, index); + Span span213 = CollectionsMarshal.AsSpan(list213); + num = 0; + ref QuestSequence reference166 = ref span213[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + Span span214 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span214[num2] = new QuestStep(EInteractionType.AcceptQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -264359,7 +320466,8 @@ public static class AssemblyQuestLoader }; obj156.Steps = list214; reference166 = obj156; - ref QuestSequence reference167 = ref span59[1]; + num++; + ref QuestSequence reference167 = ref span213[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 @@ -264367,7 +320475,9 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1035116u, new Vector3(153.39893f, 18.1f, 50.70569f), 628) + Span span215 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span215[index2] = new QuestStep(EInteractionType.Interact, 1035116u, new Vector3(153.39893f, 18.1f, 50.70569f), 628) { AethernetShortcut = new AethernetShortcut { @@ -264377,21 +320487,25 @@ public static class AssemblyQuestLoader }; obj157.Steps = list215; reference167 = obj157; - ref QuestSequence reference168 = ref span59[2]; + num++; + ref QuestSequence reference168 = ref span213[num]; QuestSequence obj158 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + Span span216 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span216[num2] = new QuestStep(EInteractionType.Interact, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) { StopDistance = 5f }; obj158.Steps = list216; reference168 = obj158; - ref QuestSequence reference169 = ref span59[3]; + num++; + ref QuestSequence reference169 = ref span213[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -264399,7 +320513,9 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) { StopDistance = 5f }; @@ -264412,21 +320528,26 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; + Span span218 = CollectionsMarshal.AsSpan(list218); + index = 0; + span218[index] = "liza"; questRoot25.Author = list218; - num = 2; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span60 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference170 = ref span60[0]; + index = 2; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + Span span219 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference170 = ref span219[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - ref QuestStep reference171 = ref CollectionsMarshal.AsSpan(list220)[0]; + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + ref QuestStep reference171 = ref span220[num2]; QuestStep obj161 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -264445,14 +320566,17 @@ public static class AssemblyQuestLoader num3 = 1; List list221 = new List(num3); CollectionsMarshal.SetCount(list221, num3); - CollectionsMarshal.AsSpan(list221)[0] = 131; + Span span221 = CollectionsMarshal.AsSpan(list221); + num4 = 0; + span221[num4] = 131; obj162.InTerritory = list221; skipConditions5.AetheryteShortcutIf = obj162; obj161.SkipConditions = skipConditions5; reference171 = obj161; obj160.Steps = list220; reference170 = obj160; - ref QuestSequence reference172 = ref span60[1]; + num++; + ref QuestSequence reference172 = ref span219[num]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue @@ -264460,7 +320584,9 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + Span span222 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span222[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, NextQuestId = new QuestId(4773) @@ -264474,24 +320600,30 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - CollectionsMarshal.AsSpan(list223)[0] = "liza"; + Span span223 = CollectionsMarshal.AsSpan(list223); + index = 0; + span223[index] = "liza"; questRoot26.Author = list223; - num = 17; - List list224 = new List(num); - CollectionsMarshal.SetCount(list224, num); - Span span61 = CollectionsMarshal.AsSpan(list224); - ref QuestSequence reference173 = ref span61[0]; + index = 17; + List list224 = new List(index); + CollectionsMarshal.SetCount(list224, index); + Span span224 = CollectionsMarshal.AsSpan(list224); + num = 0; + ref QuestSequence reference173 = ref span224[num]; QuestSequence obj164 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.AcceptQuest, 1034052u, new Vector3(618.58545f, 297.26346f, -170.24493f), 814); + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.AcceptQuest, 1034052u, new Vector3(618.58545f, 297.26346f, -170.24493f), 814); obj164.Steps = list225; reference173 = obj164; - ref QuestSequence reference174 = ref span61[1]; + num++; + ref QuestSequence reference174 = ref span224[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 @@ -264499,27 +320631,33 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Emote, 1034052u, new Vector3(618.58545f, 297.26346f, -170.24493f), 814) + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span226[index2] = new QuestStep(EInteractionType.Emote, 1034052u, new Vector3(618.58545f, 297.26346f, -170.24493f), 814) { Emote = EEmote.Comfort }; obj165.Steps = list226; reference174 = obj165; - ref QuestSequence reference175 = ref span61[2]; + num++; + ref QuestSequence reference175 = ref span224[num]; QuestSequence obj166 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1034056u, new Vector3(657.52637f, 297.47794f, -145.22015f), 814) + index2 = 1; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + Span span227 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span227[num2] = new QuestStep(EInteractionType.Interact, 1034056u, new Vector3(657.52637f, 297.47794f, -145.22015f), 814) { Fly = true }; obj166.Steps = list227; reference175 = obj166; - ref QuestSequence reference176 = ref span61[3]; + num++; + ref QuestSequence reference176 = ref span224[num]; QuestSequence obj167 = new QuestSequence { Sequence = 3 @@ -264527,27 +320665,33 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1034932u, new Vector3(618.61584f, 297.26785f, -170.30597f), 814) + Span span228 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span228[index2] = new QuestStep(EInteractionType.Interact, 1034932u, new Vector3(618.61584f, 297.26785f, -170.30597f), 814) { Fly = true }; obj167.Steps = list228; reference176 = obj167; - ref QuestSequence reference177 = ref span61[4]; + num++; + ref QuestSequence reference177 = ref span224[num]; QuestSequence obj168 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1034933u, new Vector3(412.46655f, 285.10947f, -163.74463f), 814) + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + Span span229 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span229[num2] = new QuestStep(EInteractionType.Interact, 1034933u, new Vector3(412.46655f, 285.10947f, -163.74463f), 814) { Fly = true }; obj168.Steps = list229; reference177 = obj168; - ref QuestSequence reference178 = ref span61[5]; + num++; + ref QuestSequence reference178 = ref span224[num]; QuestSequence obj169 = new QuestSequence { Sequence = 5 @@ -264555,27 +320699,33 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1034934u, new Vector3(-31.47937f, 330.8092f, -35.90454f), 814) + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span230[index2] = new QuestStep(EInteractionType.Interact, 1034934u, new Vector3(-31.47937f, 330.8092f, -35.90454f), 814) { Fly = true }; obj169.Steps = list230; reference178 = obj169; - ref QuestSequence reference179 = ref span61[6]; + num++; + ref QuestSequence reference179 = ref span224[num]; QuestSequence obj170 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1034935u, new Vector3(-475.36432f, 334.0526f, -53.97119f), 814) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.Interact, 1034935u, new Vector3(-475.36432f, 334.0526f, -53.97119f), 814) { Fly = true }; obj170.Steps = list231; reference179 = obj170; - ref QuestSequence reference180 = ref span61[7]; + num++; + ref QuestSequence reference180 = ref span224[num]; QuestSequence obj171 = new QuestSequence { Sequence = 7 @@ -264583,24 +320733,30 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1034936u, new Vector3(-452.3537f, 65.77815f, 93.03418f), 814); + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span232[index2] = new QuestStep(EInteractionType.Interact, 1034936u, new Vector3(-452.3537f, 65.77815f, 93.03418f), 814); obj171.Steps = list232; reference180 = obj171; - ref QuestSequence reference181 = ref span61[8]; + num++; + ref QuestSequence reference181 = ref span224[num]; QuestSequence obj172 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1034930u, new Vector3(673.64f, 28.11754f, 272.9381f), 814) + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + Span span233 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span233[num2] = new QuestStep(EInteractionType.Interact, 1034930u, new Vector3(673.64f, 28.11754f, 272.9381f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaStilltide }; obj172.Steps = list233; reference181 = obj172; - ref QuestSequence reference182 = ref span61[9]; + num++; + ref QuestSequence reference182 = ref span224[num]; QuestSequence obj173 = new QuestSequence { Sequence = 9 @@ -264608,15 +320764,19 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - ref QuestStep reference183 = ref CollectionsMarshal.AsSpan(list234)[0]; + Span span234 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + ref QuestStep reference183 = ref span234[index2]; QuestStep obj174 = new QuestStep(EInteractionType.Interact, 1034931u, new Vector3(534.08093f, 299.67776f, -184.22223f), 814) { StopDistance = 5f }; - num3 = 1; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - CollectionsMarshal.AsSpan(list235)[0] = new DialogueChoice + num4 = 1; + List list235 = new List(num4); + CollectionsMarshal.SetCount(list235, num4); + Span span235 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + span235[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA401_03998_Q6_000_000"), @@ -264626,21 +320786,25 @@ public static class AssemblyQuestLoader reference183 = obj174; obj173.Steps = list234; reference182 = obj173; - ref QuestSequence reference184 = ref span61[10]; + num++; + ref QuestSequence reference184 = ref span224[num]; QuestSequence obj175 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1035129u, new Vector3(613.73303f, 325.6843f, -224.93329f), 814) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.Interact, 1035129u, new Vector3(613.73303f, 325.6843f, -224.93329f), 814) { Fly = true }; obj175.Steps = list236; reference184 = obj175; - ref QuestSequence reference185 = ref span61[11]; + num++; + ref QuestSequence reference185 = ref span224[num]; QuestSequence obj176 = new QuestSequence { Sequence = 11 @@ -264648,22 +320812,26 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 2011273u, new Vector3(574.9447f, 296.71167f, -175.55511f), 814) + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span237[index2] = new QuestStep(EInteractionType.Interact, 2011273u, new Vector3(574.9447f, 296.71167f, -175.55511f), 814) { Fly = true }; obj176.Steps = list237; reference185 = obj176; - ref QuestSequence reference186 = ref span61[12]; + num++; + ref QuestSequence reference186 = ref span224[num]; QuestSequence obj177 = new QuestSequence { Sequence = 12 }; - num2 = 4; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - Span span62 = CollectionsMarshal.AsSpan(list238); - ref QuestStep reference187 = ref span62[0]; + index2 = 4; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + ref QuestStep reference187 = ref span238[num2]; QuestStep obj178 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(702.07294f, 293.53958f, -159.18176f), 814) { Fly = true @@ -264673,37 +320841,45 @@ public static class AssemblyQuestLoader num3 = 1; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = 928; + Span span239 = CollectionsMarshal.AsSpan(list239); + num4 = 0; + span239[num4] = 928; skipStepConditions3.InTerritory = list239; skipConditions6.StepIf = skipStepConditions3; obj178.SkipConditions = skipConditions6; reference187 = obj178; - ref QuestStep reference188 = ref span62[1]; + num2++; + ref QuestStep reference188 = ref span238[num2]; QuestStep obj179 = new QuestStep(EInteractionType.Interact, 2011154u, new Vector3(703.1509f, 295.3993f, -160.20447f), 814) { TargetTerritoryId = (ushort)928 }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - CollectionsMarshal.AsSpan(list240)[0] = 928; + num4 = 1; + List list240 = new List(num4); + CollectionsMarshal.SetCount(list240, num4); + Span span240 = CollectionsMarshal.AsSpan(list240); + num3 = 0; + span240[num3] = 928; skipStepConditions4.InTerritory = list240; skipConditions7.StepIf = skipStepConditions4; obj179.SkipConditions = skipConditions7; reference188 = obj179; - span62[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) + num2++; + span238[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) { RestartNavigationIfCancelled = false }; - span62[3] = new QuestStep(EInteractionType.Interact, 2011274u, new Vector3(-277.69897f, 69.90149f, 274.00623f), 928) + num2++; + span238[num2] = new QuestStep(EInteractionType.Interact, 2011274u, new Vector3(-277.69897f, 69.90149f, 274.00623f), 928) { DelaySecondsAtStart = 5f }; obj177.Steps = list238; reference186 = obj177; - ref QuestSequence reference189 = ref span61[13]; + num++; + ref QuestSequence reference189 = ref span224[num]; QuestSequence obj180 = new QuestSequence { Sequence = 13 @@ -264711,16 +320887,19 @@ public static class AssemblyQuestLoader num2 = 28; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span63 = CollectionsMarshal.AsSpan(list241); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) { RestartNavigationIfCancelled = false }; - span63[1] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - span63[2] = new QuestStep(EInteractionType.Interact, 2011109u, new Vector3(-254.20007f, 29.984009f, 178.02698f), 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.Interact, 2011109u, new Vector3(-254.20007f, 29.984009f, 178.02698f), 928) { SkipConditions = new SkipConditions { @@ -264730,29 +320909,37 @@ public static class AssemblyQuestLoader } } }; - span63[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.40671f, 30f, 168.78214f), 928); - span63[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.90593f, 36.4109f, 107.25123f), 928); - span63[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81836f, 20.597822f, 72.87652f), 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.40671f, 30f, 168.78214f), 928); + index2++; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.90593f, 36.4109f, 107.25123f), 928); + index2++; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81836f, 20.597822f, 72.87652f), 928) { DisableNavmesh = true }; - span63[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) { DisableNavmesh = true }; - span63[7] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) { TargetTerritoryId = (ushort)928 }; - span63[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) { RestartNavigationIfCancelled = false }; - span63[9] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - span63[10] = new QuestStep(EInteractionType.Interact, 2011110u, new Vector3(-203.41809f, -150.53027f, -187.39612f), 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.Interact, 2011110u, new Vector3(-203.41809f, -150.53027f, -187.39612f), 928) { SkipConditions = new SkipConditions { @@ -264762,8 +320949,10 @@ public static class AssemblyQuestLoader } } }; - span63[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.93883f, -150.49908f, -219.08035f), 928); - span63[12] = new QuestStep(EInteractionType.Interact, 2011111u, new Vector3(-227.34424f, -149.06543f, -320.75995f), 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.93883f, -150.49908f, -219.08035f), 928); + index2++; + span241[index2] = new QuestStep(EInteractionType.Interact, 2011111u, new Vector3(-227.34424f, -149.06543f, -320.75995f), 928) { StopDistance = 1f, SkipConditions = new SkipConditions @@ -264774,20 +320963,24 @@ public static class AssemblyQuestLoader } } }; - span63[13] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.96237f, -168.28922f, -329.79776f), 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.96237f, -168.28922f, -329.79776f), 928) { DisableNavmesh = true }; - span63[14] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) { DelaySecondsAtStart = 2f, RestartNavigationIfCancelled = false }; - span63[15] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - span63[16] = new QuestStep(EInteractionType.Interact, 2011118u, new Vector3(-295.9182f, -203.99792f, -320.9735f), 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.Interact, 2011118u, new Vector3(-295.9182f, -203.99792f, -320.9735f), 928) { SkipConditions = new SkipConditions { @@ -264797,15 +320990,18 @@ public static class AssemblyQuestLoader } } }; - span63[17] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-305.8408f, -204.6433f, -336.8385f), 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-305.8408f, -204.6433f, -336.8385f), 928) { RestartNavigationIfCancelled = false }; - span63[18] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - span63[19] = new QuestStep(EInteractionType.Interact, 2011115u, new Vector3(-386.25165f, -241.32147f, -314.99207f), 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.Interact, 2011115u, new Vector3(-386.25165f, -241.32147f, -314.99207f), 928) { SkipConditions = new SkipConditions { @@ -264815,13 +321011,17 @@ public static class AssemblyQuestLoader } } }; - span63[20] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-367.89325f, -241.31789f, -313.52274f), 928); - span63[21] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-374.37668f, -244.75201f, -313.43954f), 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-367.89325f, -241.31789f, -313.52274f), 928); + index2++; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-374.37668f, -244.75201f, -313.43954f), 928) { DisableNavmesh = true }; - span63[22] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-374.10797f, -244.75217f, -318.6855f), 928); - span63[23] = new QuestStep(EInteractionType.Interact, 2011113u, new Vector3(-372.85425f, -244.77002f, -303.18152f), 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-374.10797f, -244.75217f, -318.6855f), 928); + index2++; + span241[index2] = new QuestStep(EInteractionType.Interact, 2011113u, new Vector3(-372.85425f, -244.77002f, -303.18152f), 928) { SkipConditions = new SkipConditions { @@ -264831,7 +321031,8 @@ public static class AssemblyQuestLoader } } }; - span63[24] = new QuestStep(EInteractionType.Interact, 2011114u, new Vector3(-345.17438f, -244.77002f, -321.43134f), 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.Interact, 2011114u, new Vector3(-345.17438f, -244.77002f, -321.43134f), 928) { SkipConditions = new SkipConditions { @@ -264841,27 +321042,32 @@ public static class AssemblyQuestLoader } } }; - span63[25] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-358.27484f, -244.75198f, -312.8948f), 928); - span63[26] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-364.58334f, -241.318f, -313.35168f), 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-358.27484f, -244.75198f, -312.8948f), 928); + index2++; + span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-364.58334f, -241.318f, -313.35168f), 928) { DisableNavmesh = true }; - span63[27] = new QuestStep(EInteractionType.Interact, 2011275u, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) + index2++; + span241[index2] = new QuestStep(EInteractionType.Interact, 2011275u, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) { StopDistance = 1f }; obj180.Steps = list241; reference189 = obj180; - ref QuestSequence reference190 = ref span61[14]; + num++; + ref QuestSequence reference190 = ref span224[num]; QuestSequence obj181 = new QuestSequence { Sequence = 14 }; - num2 = 7; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - Span span64 = CollectionsMarshal.AsSpan(list242); - span64[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) + index2 = 7; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) { StopDistance = 0.5f, JumpDestination = new JumpDestination @@ -264869,7 +321075,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-366.558f, -249.74661f, -301.74612f) } }; - span64[1] = new QuestStep(EInteractionType.Interact, 2011112u, new Vector3(-366.47595f, -249.80548f, -318.89832f), 928) + num2++; + span242[num2] = new QuestStep(EInteractionType.Interact, 2011112u, new Vector3(-366.47595f, -249.80548f, -318.89832f), 928) { StopDistance = 1f, SkipConditions = new SkipConditions @@ -264880,11 +321087,13 @@ public static class AssemblyQuestLoader } } }; - span64[2] = new QuestStep(EInteractionType.Interact, 2011269u, new Vector3(-366.50647f, -248.43219f, -285.6947f), 928) + num2++; + span242[num2] = new QuestStep(EInteractionType.Interact, 2011269u, new Vector3(-366.50647f, -248.43219f, -285.6947f), 928) { TargetTerritoryId = (ushort)928 }; - span64[3] = new QuestStep(EInteractionType.Interact, 2011116u, new Vector3(193.89636f, -500.0229f, -89.7384f), 928) + num2++; + span242[num2] = new QuestStep(EInteractionType.Interact, 2011116u, new Vector3(193.89636f, -500.0229f, -89.7384f), 928) { SkipConditions = new SkipConditions { @@ -264894,8 +321103,10 @@ public static class AssemblyQuestLoader } } }; - span64[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(199.90454f, -500.00003f, -476.80316f), 928); - span64[5] = new QuestStep(EInteractionType.Interact, 2011117u, new Vector3(253.13184f, -500.0229f, -484.39764f), 928) + num2++; + span242[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(199.90454f, -500.00003f, -476.80316f), 928); + num2++; + span242[num2] = new QuestStep(EInteractionType.Interact, 2011117u, new Vector3(253.13184f, -500.0229f, -484.39764f), 928) { SkipConditions = new SkipConditions { @@ -264905,10 +321116,12 @@ public static class AssemblyQuestLoader } } }; - span64[6] = new QuestStep(EInteractionType.Interact, 2011276u, new Vector3(200f, -478.47717f, -558.8312f), 928); + num2++; + span242[num2] = new QuestStep(EInteractionType.Interact, 2011276u, new Vector3(200f, -478.47717f, -558.8312f), 928); obj181.Steps = list242; reference190 = obj181; - ref QuestSequence reference191 = ref span61[15]; + num++; + ref QuestSequence reference191 = ref span224[num]; QuestSequence obj182 = new QuestSequence { Sequence = 15 @@ -264916,23 +321129,28 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1035130u, new Vector3(-16.372986f, 0.039723f, -70.481445f), 895); + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span243[index2] = new QuestStep(EInteractionType.Interact, 1035130u, new Vector3(-16.372986f, 0.039723f, -70.481445f), 895); obj182.Steps = list243; reference191 = obj182; - ref QuestSequence reference192 = ref span61[16]; + num++; + ref QuestSequence reference192 = ref span224[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - Span span65 = CollectionsMarshal.AsSpan(list244); - span65[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + index2 = 2; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - span65[1] = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + num2++; + span244[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true, NextQuestId = new QuestId(4034) @@ -264946,13 +321164,16 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "liza"; + Span span245 = CollectionsMarshal.AsSpan(list245); + index = 0; + span245[index] = "liza"; questRoot27.Author = list245; - num = 4; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span66 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference193 = ref span66[0]; + index = 4; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + Span span246 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference193 = ref span246[num]; QuestSequence obj184 = new QuestSequence { Sequence = 0 @@ -264960,8 +321181,9 @@ public static class AssemblyQuestLoader num2 = 2; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span67 = CollectionsMarshal.AsSpan(list247); - span67[0] = new QuestStep(EInteractionType.None, null, null, 886) + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.None, null, null, 886) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -264970,7 +321192,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardFirmament } }; - span67[1] = new QuestStep(EInteractionType.AcceptQuest, 1035506u, new Vector3(49.729126f, -18.746954f, 7.675232f), 886) + index2++; + span247[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035506u, new Vector3(49.729126f, -18.746954f, 7.675232f), 886) { AethernetShortcut = new AethernetShortcut { @@ -264980,15 +321203,18 @@ public static class AssemblyQuestLoader }; obj184.Steps = list247; reference193 = obj184; - ref QuestSequence reference194 = ref span66[1]; + num++; + ref QuestSequence reference194 = ref span246[num]; QuestSequence obj185 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1035508u, new Vector3(-99.13794f, 0f, -132.86035f), 886) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.Interact, 1035508u, new Vector3(-99.13794f, 0f, -132.86035f), 886) { AethernetShortcut = new AethernetShortcut { @@ -264998,7 +321224,8 @@ public static class AssemblyQuestLoader }; obj185.Steps = list248; reference194 = obj185; - ref QuestSequence reference195 = ref span66[2]; + num++; + ref QuestSequence reference195 = ref span246[num]; QuestSequence obj186 = new QuestSequence { Sequence = 2 @@ -265006,7 +321233,9 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1035509u, new Vector3(119.58484f, -20f, -135.36285f), 886) + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.Interact, 1035509u, new Vector3(119.58484f, -20f, -135.36285f), 886) { AethernetShortcut = new AethernetShortcut { @@ -265016,15 +321245,18 @@ public static class AssemblyQuestLoader }; obj186.Steps = list249; reference195 = obj186; - ref QuestSequence reference196 = ref span66[3]; + num++; + ref QuestSequence reference196 = ref span246[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035510u, new Vector3(21.011597f, 1.0151416E-07f, -159.53314f), 886) + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span250 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span250[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035510u, new Vector3(21.011597f, 1.0151416E-07f, -159.53314f), 886) { NextQuestId = new QuestId(4000) }; @@ -265041,13 +321273,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -265055,24 +321290,30 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035520u, new Vector3(19.943481f, 1.8347055E-07f, -158.92273f), 886) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035520u, new Vector3(19.943481f, 1.8347055E-07f, -158.92273f), 886) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1035507u, new Vector3(48.41687f, -18.742718f, 6.576599f), 886); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1035507u, new Vector3(48.41687f, -18.742718f, 6.576599f), 886); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -265080,18 +321321,23 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 2011307u, new Vector3(49.94275f, -18.753357f, 10.910156f), 886); + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 2011307u, new Vector3(49.94275f, -18.753357f, 10.910156f), 886); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref QuestStep reference5 = ref span6[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 2011308u, new Vector3(215.62524f, -36.881104f, -3.5858765f), 886) { AethernetShortcut = new AethernetShortcut @@ -265103,7 +321349,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = new DialogueChoice + Span span7 = CollectionsMarshal.AsSpan(list7); + int index3 = 0; + span7[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKHA302_04000_Q2_000_000") @@ -265112,7 +321360,8 @@ public static class AssemblyQuestLoader reference5 = obj5; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -265120,12 +321369,16 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list8)[0]; + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference7 = ref span8[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2011308u, new Vector3(215.62524f, -36.881104f, -3.5858765f), 886); - num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = new DialogueChoice + index3 = 1; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + Span span9 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span9[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKHA302_04000_Q3_000_000") @@ -265134,15 +321387,18 @@ public static class AssemblyQuestLoader reference7 = questStep; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference8 = ref span[5]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886) { NextQuestId = new QuestId(4001) }; @@ -265155,13 +321411,16 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "liza"; + Span span11 = CollectionsMarshal.AsSpan(list11); + index = 0; + span11[index] = "liza"; questRoot2.Author = list11; - num = 3; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span2 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference9 = ref span2[0]; + index = 3; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + Span span12 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference9 = ref span12[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -265169,18 +321428,23 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886); + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886); obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference10 = ref span2[1]; + num++; + ref QuestSequence reference10 = ref span12[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - ref QuestStep reference11 = ref CollectionsMarshal.AsSpan(list14)[0]; + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + ref QuestStep reference11 = ref span14[num2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886) { Comment = "Concert can be skipped via ESC → Quit Game" @@ -265188,7 +321452,9 @@ public static class AssemblyQuestLoader num3 = 1; List list15 = new List(num3); CollectionsMarshal.SetCount(list15, num3); - CollectionsMarshal.AsSpan(list15)[0] = new DialogueChoice + Span span15 = CollectionsMarshal.AsSpan(list15); + index3 = 0; + span15[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA303_04001_Q2_000_000"), @@ -265198,7 +321464,8 @@ public static class AssemblyQuestLoader reference11 = obj10; obj9.Steps = list14; reference10 = obj9; - ref QuestSequence reference12 = ref span2[2]; + num++; + ref QuestSequence reference12 = ref span12[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -265206,7 +321473,9 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886) + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886) { NextQuestId = new QuestId(4002) }; @@ -265219,24 +321488,30 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "liza"; questRoot3.Author = list17; - num = 3; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span3 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span3[0]; + index = 3; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span18[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035527u, new Vector3(196.82605f, -40f, -11.062805f), 886); + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.AcceptQuest, 1035527u, new Vector3(196.82605f, -40f, -11.062805f), 886); obj12.Steps = list19; reference13 = obj12; - ref QuestSequence reference14 = ref span3[1]; + num++; + ref QuestSequence reference14 = ref span18[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -265244,7 +321519,9 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1035529u, new Vector3(-7.156494f, -16f, 163.43933f), 886) + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new QuestStep(EInteractionType.Interact, 1035529u, new Vector3(-7.156494f, -16f, 163.43933f), 886) { AethernetShortcut = new AethernetShortcut { @@ -265254,15 +321531,18 @@ public static class AssemblyQuestLoader }; obj13.Steps = list20; reference14 = obj13; - ref QuestSequence reference15 = ref span3[2]; + num++; + ref QuestSequence reference15 = ref span18[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035529u, new Vector3(-7.156494f, -16f, 163.43933f), 886) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035529u, new Vector3(-7.156494f, -16f, 163.43933f), 886) { NextQuestId = new QuestId(4079) }; @@ -265275,13 +321555,16 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + Span span22 = CollectionsMarshal.AsSpan(list22); + index = 0; + span22[index] = "liza"; questRoot4.Author = list22; - num = 4; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span4 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference16 = ref span4[0]; + index = 4; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + Span span23 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference16 = ref span23[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -265289,21 +321572,27 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032694u, new Vector3(-3.03656f, 0.01804012f, -8.133057f), 351); + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032694u, new Vector3(-3.03656f, 0.01804012f, -8.133057f), 351); obj15.Steps = list24; reference16 = obj15; - ref QuestSequence reference17 = ref span4[1]; + num++; + ref QuestSequence reference17 = ref span23[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1035339u, new Vector3(-54.8562f, 2.0050092f, 11.276367f), 351); + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.Interact, 1035339u, new Vector3(-54.8562f, 2.0050092f, 11.276367f), 351); obj16.Steps = list25; reference17 = obj16; - ref QuestSequence reference18 = ref span4[2]; + num++; + ref QuestSequence reference18 = ref span23[num]; QuestSequence obj17 = new QuestSequence { Sequence = 2 @@ -265311,22 +321600,27 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1035342u, new Vector3(125.50537f, -15.184305f, -424.21613f), 156) + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.Interact, 1035342u, new Vector3(125.50537f, -15.184305f, -424.21613f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj17.Steps = list26; reference18 = obj17; - ref QuestSequence reference19 = ref span4[3]; + num++; + ref QuestSequence reference19 = ref span23[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035344u, new Vector3(-894.5907f, -184.29301f, -639.33777f), 402); + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035344u, new Vector3(-894.5907f, -184.29301f, -639.33777f), 402); obj18.Steps = list27; reference19 = obj18; questRoot4.QuestSequence = list23; @@ -265336,13 +321630,16 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + Span span28 = CollectionsMarshal.AsSpan(list28); + index = 0; + span28[index] = "liza"; questRoot5.Author = list28; - num = 6; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span5 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference20 = ref span5[0]; + index = 6; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + Span span29 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference20 = ref span29[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -265350,24 +321647,30 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035345u, new Vector3(-894.52966f, -184.293f, -637.6593f), 402); + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035345u, new Vector3(-894.52966f, -184.293f, -637.6593f), 402); obj19.Steps = list30; reference20 = obj19; - ref QuestSequence reference21 = ref span5[1]; + num++; + ref QuestSequence reference21 = ref span29[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1035348u, new Vector3(-639.33777f, -176.4502f, -577.2335f), 402) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.Interact, 1035348u, new Vector3(-639.33777f, -176.4502f, -577.2335f), 402) { Fly = true }; obj20.Steps = list31; reference21 = obj20; - ref QuestSequence reference22 = ref span5[2]; + num++; + ref QuestSequence reference22 = ref span29[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -265375,35 +321678,43 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1035350u, new Vector3(641.3214f, -2.8402345f, -350.3319f), 402) + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.Interact, 1035350u, new Vector3(641.3214f, -2.8402345f, -350.3319f), 402) { Fly = true }; obj21.Steps = list32; reference22 = obj21; - ref QuestSequence reference23 = ref span5[3]; + num++; + ref QuestSequence reference23 = ref span29[num]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list33)[0]; + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + ref QuestStep reference24 = ref span33[num2]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 2011330u, new Vector3(585.1072f, -64.83563f, -692.19507f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - CollectionsMarshal.AsSpan(list34)[0] = 12661u; + index3 = 1; + List list34 = new List(index3); + CollectionsMarshal.SetCount(list34, index3); + Span span34 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span34[num3] = 12661u; obj23.KillEnemyDataIds = list34; reference24 = obj23; obj22.Steps = list33; reference23 = obj22; - ref QuestSequence reference25 = ref span5[4]; + num++; + ref QuestSequence reference25 = ref span29[num]; QuestSequence obj24 = new QuestSequence { Sequence = 4 @@ -265411,21 +321722,26 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 2011331u, new Vector3(585.1072f, -64.83563f, -692.19507f), 402) + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.Interact, 2011331u, new Vector3(585.1072f, -64.83563f, -692.19507f), 402) { StopDistance = 5f }; obj24.Steps = list35; reference25 = obj24; - ref QuestSequence reference26 = ref span5[5]; + num++; + ref QuestSequence reference26 = ref span29[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035350u, new Vector3(641.3214f, -2.8402345f, -350.3319f), 402) + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035350u, new Vector3(641.3214f, -2.8402345f, -350.3319f), 402) { Fly = true }; @@ -265438,13 +321754,16 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + Span span37 = CollectionsMarshal.AsSpan(list37); + index = 0; + span37[index] = "liza"; questRoot6.Author = list37; - num = 6; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - Span span6 = CollectionsMarshal.AsSpan(list38); - ref QuestSequence reference27 = ref span6[0]; + index = 6; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + Span span38 = CollectionsMarshal.AsSpan(list38); + num = 0; + ref QuestSequence reference27 = ref span38[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -265452,27 +321771,33 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035350u, new Vector3(641.3214f, -2.8402345f, -350.3319f), 402); + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035350u, new Vector3(641.3214f, -2.8402345f, -350.3319f), 402); obj26.Steps = list39; reference27 = obj26; - ref QuestSequence reference28 = ref span6[1]; + num++; + ref QuestSequence reference28 = ref span38[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span7 = CollectionsMarshal.AsSpan(list40); - span7[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 2; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span7[1] = new QuestStep(EInteractionType.Interact, 1035355u, new Vector3(-0.35101318f, 0f, -6.9123535f), 351); + num2++; + span40[num2] = new QuestStep(EInteractionType.Interact, 1035355u, new Vector3(-0.35101318f, 0f, -6.9123535f), 351); obj27.Steps = list40; reference28 = obj27; - ref QuestSequence reference29 = ref span6[2]; + num++; + ref QuestSequence reference29 = ref span38[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -265480,29 +321805,35 @@ public static class AssemblyQuestLoader num2 = 2; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span8 = CollectionsMarshal.AsSpan(list41); - span8[0] = new QuestStep(EInteractionType.Interact, 2011104u, new Vector3(-11.001831f, 1.4800415f, -6.9733887f), 351) + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.Interact, 2011104u, new Vector3(-11.001831f, 1.4800415f, -6.9733887f), 351) { TargetTerritoryId = (ushort)351 }; - span8[1] = new QuestStep(EInteractionType.Interact, 2011332u, new Vector3(-56.717834f, 1.9989014f, 14.633362f), 351); + index2++; + span41[index2] = new QuestStep(EInteractionType.Interact, 2011332u, new Vector3(-56.717834f, 1.9989014f, 14.633362f), 351); obj28.Steps = list41; reference29 = obj28; - ref QuestSequence reference30 = ref span6[3]; + num++; + ref QuestSequence reference30 = ref span38[num]; QuestSequence obj29 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1035360u, new Vector3(-58.15222f, 2.0050092f, 14.541748f), 351) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.Interact, 1035360u, new Vector3(-58.15222f, 2.0050092f, 14.541748f), 351) { StopDistance = 5f }; obj29.Steps = list42; reference30 = obj29; - ref QuestSequence reference31 = ref span6[4]; + num++; + ref QuestSequence reference31 = ref span38[num]; QuestSequence obj30 = new QuestSequence { Sequence = 4 @@ -265510,8 +321841,9 @@ public static class AssemblyQuestLoader num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span9 = CollectionsMarshal.AsSpan(list43); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-150.08533f, 16.999998f, -48.293888f), 418) + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-150.08533f, 16.999998f, -48.293888f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -265520,18 +321852,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - span9[1] = new QuestStep(EInteractionType.Interact, 1014578u, new Vector3(-148.02783f, 16.999998f, -48.844177f), 418); + index2++; + span43[index2] = new QuestStep(EInteractionType.Interact, 1014578u, new Vector3(-148.02783f, 16.999998f, -48.844177f), 418); obj30.Steps = list43; reference31 = obj30; - ref QuestSequence reference32 = ref span6[5]; + num++; + ref QuestSequence reference32 = ref span38[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035363u, new Vector3(164.47693f, -12.634913f, -13.290649f), 419) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035363u, new Vector3(164.47693f, -12.634913f, -13.290649f), 419) { AethernetShortcut = new AethernetShortcut { @@ -265548,13 +321884,16 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; + Span span45 = CollectionsMarshal.AsSpan(list45); + index = 0; + span45[index] = "liza"; questRoot7.Author = list45; - num = 3; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span10 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference33 = ref span10[0]; + index = 3; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + Span span46 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference33 = ref span46[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -265562,7 +321901,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list47)[0]; + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + ref QuestStep reference34 = ref span47[index2]; QuestStep obj33 = new QuestStep(EInteractionType.AcceptQuest, 1035354u, new Vector3(-1.0223389f, 0f, -8.529846f), 351) { StopDistance = 5f @@ -265570,7 +321911,9 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - CollectionsMarshal.AsSpan(list48)[0] = new DialogueChoice + Span span48 = CollectionsMarshal.AsSpan(list48); + index3 = 0; + span48[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMJ104_04010_Q1_000_000"), @@ -265580,15 +321923,18 @@ public static class AssemblyQuestLoader reference34 = obj33; obj32.Steps = list47; reference33 = obj32; - ref QuestSequence reference35 = ref span10[1]; + num++; + ref QuestSequence reference35 = ref span46[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1035364u, new Vector3(68.558716f, 40f, 69.90149f), 128) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.Interact, 1035364u, new Vector3(68.558716f, 40f, 69.90149f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -265599,7 +321945,8 @@ public static class AssemblyQuestLoader }; obj34.Steps = list49; reference35 = obj34; - ref QuestSequence reference36 = ref span10[2]; + num++; + ref QuestSequence reference36 = ref span46[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -265607,7 +321954,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035366u, new Vector3(-110.09387f, 39.999992f, 116.990845f), 128) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035366u, new Vector3(-110.09387f, 39.999992f, 116.990845f), 128) { StopDistance = 5f }; @@ -265620,27 +321969,33 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "liza"; + Span span51 = CollectionsMarshal.AsSpan(list51); + index = 0; + span51[index] = "liza"; questRoot8.Author = list51; - num = 7; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span11 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference37 = ref span11[0]; + index = 7; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + Span span52 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference37 = ref span52[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035367u, new Vector3(-108.72058f, 39.999996f, 117.17395f), 128) + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.AcceptQuest, 1035367u, new Vector3(-108.72058f, 39.999996f, 117.17395f), 128) { StopDistance = 5f }; obj36.Steps = list53; reference37 = obj36; - ref QuestSequence reference38 = ref span11[1]; + num++; + ref QuestSequence reference38 = ref span52[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 @@ -265648,7 +322003,9 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1035374u, new Vector3(-481.80365f, 137.42972f, 698.63416f), 399) + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.Interact, 1035374u, new Vector3(-481.80365f, 137.42972f, 698.63416f), 399) { Fly = true, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -265660,21 +322017,25 @@ public static class AssemblyQuestLoader }; obj37.Steps = list54; reference38 = obj37; - ref QuestSequence reference39 = ref span11[2]; + num++; + ref QuestSequence reference39 = ref span52[num]; QuestSequence obj38 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463) { StopDistance = 5f }; obj38.Steps = list55; reference39 = obj38; - ref QuestSequence reference40 = ref span11[3]; + num++; + ref QuestSequence reference40 = ref span52[num]; QuestSequence obj39 = new QuestSequence { Sequence = 3 @@ -265682,7 +322043,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1035380u, new Vector3(382.77246f, 75.28701f, -222.03406f), 399) + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.Interact, 1035380u, new Vector3(382.77246f, 75.28701f, -222.03406f), 399) { Fly = true, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -265694,15 +322057,18 @@ public static class AssemblyQuestLoader }; obj39.Steps = list56; reference40 = obj39; - ref QuestSequence reference41 = ref span11[4]; + num++; + ref QuestSequence reference41 = ref span52[num]; QuestSequence obj40 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -265711,11 +322077,13 @@ public static class AssemblyQuestLoader }; obj40.Steps = list57; reference41 = obj40; - span11[5] = new QuestSequence + num++; + span52[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference42 = ref span11[6]; + num++; + ref QuestSequence reference42 = ref span52[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -265723,7 +322091,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035381u, new Vector3(382.25366f, 75.22071f, -223.40735f), 399); + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035381u, new Vector3(382.25366f, 75.22071f, -223.40735f), 399); obj41.Steps = list58; reference42 = obj41; questRoot8.QuestSequence = list52; @@ -265733,24 +322103,30 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "liza"; + Span span59 = CollectionsMarshal.AsSpan(list59); + index = 0; + span59[index] = "liza"; questRoot9.Author = list59; - num = 5; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span12 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference43 = ref span12[0]; + index = 5; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + Span span60 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference43 = ref span60[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035381u, new Vector3(382.25366f, 75.22071f, -223.40735f), 399); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.AcceptQuest, 1035381u, new Vector3(382.25366f, 75.22071f, -223.40735f), 399); obj42.Steps = list61; reference43 = obj42; - ref QuestSequence reference44 = ref span12[1]; + num++; + ref QuestSequence reference44 = ref span60[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 @@ -265758,24 +322134,30 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; obj43.Steps = list62; reference44 = obj43; - ref QuestSequence reference45 = ref span12[2]; + num++; + ref QuestSequence reference45 = ref span60[num]; QuestSequence obj44 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1035386u, new Vector3(-0.4730835f, 19.999977f, -13.839966f), 129); + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.Interact, 1035386u, new Vector3(-0.4730835f, 19.999977f, -13.839966f), 129); obj44.Steps = list63; reference45 = obj44; - ref QuestSequence reference46 = ref span12[3]; + num++; + ref QuestSequence reference46 = ref span60[num]; QuestSequence obj45 = new QuestSequence { Sequence = 3 @@ -265783,8 +322165,9 @@ public static class AssemblyQuestLoader num2 = 2; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span13 = CollectionsMarshal.AsSpan(list64); - span13[0] = new QuestStep(EInteractionType.Interact, 1000915u, new Vector3(18.387085f, 47.600006f, -162.12714f), 128) + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.Interact, 1000915u, new Vector3(18.387085f, 47.600006f, -162.12714f), 128) { AethernetShortcut = new AethernetShortcut { @@ -265792,7 +322175,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaMarauder } }; - span13[1] = new QuestStep(EInteractionType.Interact, 1000918u, new Vector3(84.09241f, 44.399914f, 132.34143f), 128) + index2++; + span64[index2] = new QuestStep(EInteractionType.Interact, 1000918u, new Vector3(84.09241f, 44.399914f, 132.34143f), 128) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -265803,15 +322187,18 @@ public static class AssemblyQuestLoader }; obj45.Steps = list64; reference46 = obj45; - ref QuestSequence reference47 = ref span12[4]; + num++; + ref QuestSequence reference47 = ref span60[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035386u, new Vector3(-0.4730835f, 19.999977f, -13.839966f), 129) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span65[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035386u, new Vector3(-0.4730835f, 19.999977f, -13.839966f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; @@ -265824,13 +322211,16 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "liza"; + Span span66 = CollectionsMarshal.AsSpan(list66); + index = 0; + span66[index] = "liza"; questRoot10.Author = list66; - num = 3; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span14 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference48 = ref span14[0]; + index = 3; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + Span span67 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference48 = ref span67[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -265838,28 +322228,34 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035386u, new Vector3(-0.4730835f, 19.999977f, -13.839966f), 129) + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035386u, new Vector3(-0.4730835f, 19.999977f, -13.839966f), 129) { StopDistance = 5f }; obj47.Steps = list68; reference48 = obj47; - ref QuestSequence reference49 = ref span14[1]; + num++; + ref QuestSequence reference49 = ref span67[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1035389u, new Vector3(85.09949f, 68.15523f, 341.90894f), 135) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.Interact, 1035389u, new Vector3(85.09949f, 68.15523f, 341.90894f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj48.Steps = list69; reference49 = obj48; - ref QuestSequence reference50 = ref span14[2]; + num++; + ref QuestSequence reference50 = ref span67[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue @@ -265867,7 +322263,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035391u, new Vector3(296.86414f, 69.333755f, -147.32587f), 135) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035391u, new Vector3(296.86414f, 69.333755f, -147.32587f), 135) { Fly = true }; @@ -265880,24 +322278,30 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + Span span71 = CollectionsMarshal.AsSpan(list71); + index = 0; + span71[index] = "liza"; questRoot11.Author = list71; - num = 3; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span15 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference51 = ref span15[0]; + index = 3; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + Span span72 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference51 = ref span72[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035391u, new Vector3(296.86414f, 69.333755f, -147.32587f), 135); + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.AcceptQuest, 1035391u, new Vector3(296.86414f, 69.333755f, -147.32587f), 135); obj50.Steps = list73; reference51 = obj50; - ref QuestSequence reference52 = ref span15[1]; + num++; + ref QuestSequence reference52 = ref span72[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 @@ -265905,34 +322309,41 @@ public static class AssemblyQuestLoader num2 = 2; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span16 = CollectionsMarshal.AsSpan(list74); - ref QuestStep reference53 = ref span16[0]; + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + ref QuestStep reference53 = ref span74[index2]; QuestStep obj52 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = new DialogueChoice + index3 = 1; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span75 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span75[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMJ108_04014_SYSTEM_100_010") }; obj52.DialogueChoices = list75; reference53 = obj52; - span16[1] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + index2++; + span74[index2] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj51.Steps = list74; reference52 = obj51; - ref QuestSequence reference54 = ref span15[2]; + num++; + ref QuestSequence reference54 = ref span72[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj53.Steps = list76; reference54 = obj53; questRoot11.QuestSequence = list72; @@ -265942,13 +322353,16 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "liza"; + Span span77 = CollectionsMarshal.AsSpan(list77); + index = 0; + span77[index] = "liza"; questRoot12.Author = list77; - num = 4; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span17 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference55 = ref span17[0]; + index = 4; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + Span span78 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference55 = ref span78[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -265956,24 +322370,30 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj54.Steps = list79; reference55 = obj54; - ref QuestSequence reference56 = ref span17[1]; + num++; + ref QuestSequence reference56 = ref span78[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1035399u, new Vector3(-105.21106f, 64.43899f, -243.15253f), 180) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.Interact, 1035399u, new Vector3(-105.21106f, 64.43899f, -243.15253f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj55.Steps = list80; reference56 = obj55; - ref QuestSequence reference57 = ref span17[2]; + num++; + ref QuestSequence reference57 = ref span78[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -265981,21 +322401,26 @@ public static class AssemblyQuestLoader num2 = 5; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span18 = CollectionsMarshal.AsSpan(list81); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.600548f, 77.45801f, -366.82053f), 180) + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.600548f, 77.45801f, -366.82053f), 180) { Fly = true }; - span18[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.927666f, 26.050894f, -612.8873f), 180) + index2++; + span81[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.927666f, 26.050894f, -612.8873f), 180) { Fly = true }; - span18[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(82.19566f, 25.922153f, -711.6839f), 180) + index2++; + span81[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(82.19566f, 25.922153f, -711.6839f), 180) { Fly = true }; - span18[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.6921f, 23.33508f, -719.46643f), 180); - span18[4] = new QuestStep(EInteractionType.SinglePlayerDuty, 1035401u, new Vector3(142.71753f, 24.40421f, -634.54645f), 180) + index2++; + span81[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.6921f, 23.33508f, -719.46643f), 180); + index2++; + span81[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1035401u, new Vector3(142.71753f, 24.40421f, -634.54645f), 180) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -266004,15 +322429,18 @@ public static class AssemblyQuestLoader }; obj56.Steps = list81; reference57 = obj56; - ref QuestSequence reference58 = ref span17[3]; + num++; + ref QuestSequence reference58 = ref span78[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035407u, new Vector3(-103.71564f, 64.39152f, -241.32147f), 180) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.CompleteQuest, 1035407u, new Vector3(-103.71564f, 64.39152f, -241.32147f), 180) { StopDistance = 5f }; @@ -266025,13 +322453,16 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "liza"; + Span span83 = CollectionsMarshal.AsSpan(list83); + index = 0; + span83[index] = "liza"; questRoot13.Author = list83; - num = 4; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span19 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference59 = ref span19[0]; + index = 4; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + Span span84 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference59 = ref span84[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 @@ -266039,27 +322470,33 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035398u, new Vector3(-106.126526f, 64.45569f, -242.66425f), 180) + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035398u, new Vector3(-106.126526f, 64.45569f, -242.66425f), 180) { StopDistance = 7f }; obj58.Steps = list85; reference59 = obj58; - ref QuestSequence reference60 = ref span19[1]; + num++; + ref QuestSequence reference60 = ref span84[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1035409u, new Vector3(581.62805f, 80f, 621.7898f), 621) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.Interact, 1035409u, new Vector3(581.62805f, 80f, 621.7898f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj59.Steps = list86; reference60 = obj59; - ref QuestSequence reference61 = ref span19[2]; + num++; + ref QuestSequence reference61 = ref span84[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -266067,27 +322504,32 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1035414u, new Vector3(739.4979f, 70f, 526.48206f), 621) + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.Interact, 1035414u, new Vector3(739.4979f, 70f, 526.48206f), 621) { StopDistance = 5f }; obj60.Steps = list87; reference61 = obj60; - ref QuestSequence reference62 = ref span19[3]; + num++; + ref QuestSequence reference62 = ref span84[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span20 = CollectionsMarshal.AsSpan(list88); - span20[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 2; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span20[1] = new QuestStep(EInteractionType.CompleteQuest, 1032694u, new Vector3(-3.03656f, 0.01804012f, -8.133057f), 351); + num2++; + span88[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032694u, new Vector3(-3.03656f, 0.01804012f, -8.133057f), 351); obj61.Steps = list88; reference62 = obj61; questRoot13.QuestSequence = list84; @@ -266097,13 +322539,16 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = "liza"; + Span span89 = CollectionsMarshal.AsSpan(list89); + index = 0; + span89[index] = "liza"; questRoot14.Author = list89; - num = 9; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - Span span21 = CollectionsMarshal.AsSpan(list90); - ref QuestSequence reference63 = ref span21[0]; + index = 9; + List list90 = new List(index); + CollectionsMarshal.SetCount(list90, index); + Span span90 = CollectionsMarshal.AsSpan(list90); + num = 0; + ref QuestSequence reference63 = ref span90[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -266111,7 +322556,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -266124,20 +322571,25 @@ public static class AssemblyQuestLoader }; obj62.Steps = list91; reference63 = obj62; - ref QuestSequence reference64 = ref span21[1]; + num++; + ref QuestSequence reference64 = ref span90[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list92)[0]; + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + ref QuestStep reference65 = ref span92[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1035243u, new Vector3(-533.4402f, 8.187748f, -46.341675f), 621); num3 = 1; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new DialogueChoice + Span span93 = CollectionsMarshal.AsSpan(list93); + index3 = 0; + span93[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYW401_04031_Q9_000_000") @@ -266146,7 +322598,8 @@ public static class AssemblyQuestLoader reference65 = questStep2; obj63.Steps = list92; reference64 = obj63; - ref QuestSequence reference66 = ref span21[2]; + num++; + ref QuestSequence reference66 = ref span90[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -266154,21 +322607,27 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1033633u, new Vector3(7.2785034f, 41f, 8.255066f), 919); + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.Interact, 1033633u, new Vector3(7.2785034f, 41f, 8.255066f), 919); obj64.Steps = list94; reference66 = obj64; - ref QuestSequence reference67 = ref span21[3]; + num++; + ref QuestSequence reference67 = ref span90[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1036280u, new Vector3(45.88379f, 35f, 68.22302f), 919); + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.Interact, 1036280u, new Vector3(45.88379f, 35f, 68.22302f), 919); obj65.Steps = list95; reference67 = obj65; - ref QuestSequence reference68 = ref span21[4]; + num++; + ref QuestSequence reference68 = ref span90[num]; QuestSequence obj66 = new QuestSequence { Sequence = 4 @@ -266176,21 +322635,27 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1036281u, new Vector3(-1.3580933f, 41f, 19.394226f), 919); + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.Interact, 1036281u, new Vector3(-1.3580933f, 41f, 19.394226f), 919); obj66.Steps = list96; reference68 = obj66; - ref QuestSequence reference69 = ref span21[5]; + num++; + ref QuestSequence reference69 = ref span90[num]; QuestSequence obj67 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1036283u, new Vector3(79.9115f, -1.4320341E-12f, 85.83191f), 991); + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span97[num2] = new QuestStep(EInteractionType.Interact, 1036283u, new Vector3(79.9115f, -1.4320341E-12f, 85.83191f), 991); obj67.Steps = list97; reference69 = obj67; - ref QuestSequence reference70 = ref span21[6]; + num++; + ref QuestSequence reference70 = ref span90[num]; QuestSequence obj68 = new QuestSequence { Sequence = 6 @@ -266198,7 +322663,9 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Duty, null, null, 991) + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span98[index2] = new QuestStep(EInteractionType.Duty, null, null, 991) { DutyOptions = new DutyOptions { @@ -266207,18 +322674,22 @@ public static class AssemblyQuestLoader }; obj68.Steps = list98; reference70 = obj68; - ref QuestSequence reference71 = ref span21[7]; + num++; + ref QuestSequence reference71 = ref span90[num]; QuestSequence obj69 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1036283u, new Vector3(79.9115f, -1.4320341E-12f, 85.83191f), 991); + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.Interact, 1036283u, new Vector3(79.9115f, -1.4320341E-12f, 85.83191f), 991); obj69.Steps = list99; reference71 = obj69; - ref QuestSequence reference72 = ref span21[8]; + num++; + ref QuestSequence reference72 = ref span90[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -266226,7 +322697,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919) + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919) { NextQuestId = new QuestId(4032) }; @@ -266239,24 +322712,30 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "liza"; + Span span101 = CollectionsMarshal.AsSpan(list101); + index = 0; + span101[index] = "liza"; questRoot15.Author = list101; - num = 8; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span22 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference73 = ref span22[0]; + index = 8; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + Span span102 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference73 = ref span102[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919); + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span103[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919); obj71.Steps = list103; reference73 = obj71; - ref QuestSequence reference74 = ref span22[1]; + num++; + ref QuestSequence reference74 = ref span102[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -266264,25 +322743,31 @@ public static class AssemblyQuestLoader num2 = 2; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span23 = CollectionsMarshal.AsSpan(list104); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-11.236769f, 40.999996f, 15.472222f), 919); - span23[1] = new QuestStep(EInteractionType.Interact, 1036412u, new Vector3(53.391357f, 34.999996f, 80.094604f), 919); + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-11.236769f, 40.999996f, 15.472222f), 919); + index2++; + span104[index2] = new QuestStep(EInteractionType.Interact, 1036412u, new Vector3(53.391357f, 34.999996f, 80.094604f), 919); obj72.Steps = list104; reference74 = obj72; - ref QuestSequence reference75 = ref span22[2]; + num++; + ref QuestSequence reference75 = ref span102[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - Span span24 = CollectionsMarshal.AsSpan(list105); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-11.236769f, 40.999996f, 15.472222f), 919); - span24[1] = new QuestStep(EInteractionType.Interact, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919); + index2 = 2; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-11.236769f, 40.999996f, 15.472222f), 919); + num2++; + span105[num2] = new QuestStep(EInteractionType.Interact, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919); obj73.Steps = list105; reference75 = obj73; - ref QuestSequence reference76 = ref span22[3]; + num++; + ref QuestSequence reference76 = ref span102[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -266290,24 +322775,30 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 2011480u, new Vector3(-17.227417f, 40.97046f, 5.2948f), 919) + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.Interact, 2011480u, new Vector3(-17.227417f, 40.97046f, 5.2948f), 919) { StopDistance = 4.5f }; obj74.Steps = list106; reference76 = obj74; - ref QuestSequence reference77 = ref span22[4]; + num++; + ref QuestSequence reference77 = ref span102[num]; QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919); + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.Interact, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919); obj75.Steps = list107; reference77 = obj75; - ref QuestSequence reference78 = ref span22[5]; + num++; + ref QuestSequence reference78 = ref span102[num]; QuestSequence obj76 = new QuestSequence { Sequence = 5 @@ -266315,27 +322806,33 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1036285u, new Vector3(-16.372986f, 40.999996f, 3.8909912f), 919) + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.Interact, 1036285u, new Vector3(-16.372986f, 40.999996f, 3.8909912f), 919) { StopDistance = 5f }; obj76.Steps = list108; reference78 = obj76; - ref QuestSequence reference79 = ref span22[6]; + num++; + ref QuestSequence reference79 = ref span102[num]; QuestSequence obj77 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1036287u, new Vector3(-19.089111f, 41f, 3.768982f), 919) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.Interact, 1036287u, new Vector3(-19.089111f, 41f, 3.768982f), 919) { StopDistance = 7f }; obj77.Steps = list109; reference79 = obj77; - ref QuestSequence reference80 = ref span22[7]; + num++; + ref QuestSequence reference80 = ref span102[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -266343,8 +322840,9 @@ public static class AssemblyQuestLoader num2 = 2; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span25 = CollectionsMarshal.AsSpan(list110); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, @@ -266356,7 +322854,8 @@ public static class AssemblyQuestLoader } } }; - span25[1] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621); + index2++; + span110[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621); obj78.Steps = list110; reference80 = obj78; questRoot15.QuestSequence = list102; @@ -266366,21 +322865,26 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "plogon_enjoyer"; + Span span111 = CollectionsMarshal.AsSpan(list111); + index = 0; + span111[index] = "plogon_enjoyer"; questRoot16.Author = list111; - num = 6; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span26 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference81 = ref span26[0]; + index = 6; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + Span span112 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference81 = ref span112[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -266391,7 +322895,8 @@ public static class AssemblyQuestLoader }; obj79.Steps = list113; reference81 = obj79; - ref QuestSequence reference82 = ref span26[1]; + num++; + ref QuestSequence reference82 = ref span112[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -266399,7 +322904,9 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1028406u, new Vector3(43.289795f, -8f, 108.62891f), 132) + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = new QuestStep(EInteractionType.Interact, 1028406u, new Vector3(43.289795f, -8f, 108.62891f), 132) { AethernetShortcut = new AethernetShortcut { @@ -266409,21 +322916,25 @@ public static class AssemblyQuestLoader }; obj80.Steps = list114; reference82 = obj80; - ref QuestSequence reference83 = ref span26[2]; + num++; + ref QuestSequence reference83 = ref span112[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 2011356u, new Vector3(58.304688f, -0.015319824f, 84.27551f), 635) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span115[num2] = new QuestStep(EInteractionType.Interact, 2011356u, new Vector3(58.304688f, -0.015319824f, 84.27551f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj81.Steps = list115; reference83 = obj81; - ref QuestSequence reference84 = ref span26[3]; + num++; + ref QuestSequence reference84 = ref span112[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -266431,24 +322942,30 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1024112u, new Vector3(796.933f, 69.9999f, 634.76f), 621); + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.Interact, 1024112u, new Vector3(796.933f, 69.9999f, 634.76f), 621); obj82.Steps = list116; reference84 = obj82; - ref QuestSequence reference85 = ref span26[4]; + num++; + ref QuestSequence reference85 = ref span112[num]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1028406u, new Vector3(43.289795f, -8f, 108.62891f), 132) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.Interact, 1028406u, new Vector3(43.289795f, -8f, 108.62891f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj83.Steps = list117; reference85 = obj83; - ref QuestSequence reference86 = ref span26[5]; + num++; + ref QuestSequence reference86 = ref span112[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue @@ -266456,7 +322973,9 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span118[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AethernetShortcut = new AethernetShortcut { @@ -266473,24 +322992,30 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "liza"; + Span span119 = CollectionsMarshal.AsSpan(list119); + index = 0; + span119[index] = "liza"; questRoot17.Author = list119; - num = 8; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span27 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference87 = ref span27[0]; + index = 8; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + Span span120 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference87 = ref span120[num]; QuestSequence obj85 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span121[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj85.Steps = list121; reference87 = obj85; - ref QuestSequence reference88 = ref span27[1]; + num++; + ref QuestSequence reference88 = ref span120[num]; QuestSequence obj86 = new QuestSequence { Sequence = 1 @@ -266498,35 +323023,41 @@ public static class AssemblyQuestLoader num2 = 2; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span28 = CollectionsMarshal.AsSpan(list122); - span28[0] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - span28[1] = new QuestStep(EInteractionType.Interact, 1035131u, new Vector3(-3.6469727f, -3.475783E-11f, -58.121643f), 895); + index2++; + span122[index2] = new QuestStep(EInteractionType.Interact, 1035131u, new Vector3(-3.6469727f, -3.475783E-11f, -58.121643f), 895); obj86.Steps = list122; reference88 = obj86; - ref QuestSequence reference89 = ref span27[2]; + num++; + ref QuestSequence reference89 = ref span120[num]; QuestSequence obj87 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - Span span29 = CollectionsMarshal.AsSpan(list123); - span29[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + index2 = 2; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span123[num2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - span29[1] = new QuestStep(EInteractionType.Interact, 1035132u, new Vector3(545.4337f, 295.66992f, -221.45422f), 814) + num2++; + span123[num2] = new QuestStep(EInteractionType.Interact, 1035132u, new Vector3(545.4337f, 295.66992f, -221.45422f), 814) { Fly = true }; obj87.Steps = list123; reference89 = obj87; - ref QuestSequence reference90 = ref span27[3]; + num++; + ref QuestSequence reference90 = ref span120[num]; QuestSequence obj88 = new QuestSequence { Sequence = 3 @@ -266534,24 +323065,30 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 2011442u, new Vector3(-8.957031f, 0.503479f, -65.26294f), 895); + Span span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span124[index2] = new QuestStep(EInteractionType.Interact, 2011442u, new Vector3(-8.957031f, 0.503479f, -65.26294f), 895); obj88.Steps = list124; reference90 = obj88; - ref QuestSequence reference91 = ref span27[4]; + num++; + ref QuestSequence reference91 = ref span120[num]; QuestSequence obj89 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1035134u, new Vector3(711.635f, 286.3896f, -122.78937f), 814) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span125[num2] = new QuestStep(EInteractionType.Interact, 1035134u, new Vector3(711.635f, 286.3896f, -122.78937f), 814) { StopDistance = 7f }; obj89.Steps = list125; reference91 = obj89; - ref QuestSequence reference92 = ref span27[5]; + num++; + ref QuestSequence reference92 = ref span120[num]; QuestSequence obj90 = new QuestSequence { Sequence = 5 @@ -266559,25 +323096,33 @@ public static class AssemblyQuestLoader num2 = 3; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span30 = CollectionsMarshal.AsSpan(list126); - ref QuestStep reference93 = ref span30[0]; + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + ref QuestStep reference93 = ref span126[index2]; QuestStep obj91 = new QuestStep(EInteractionType.Interact, 1034054u, new Vector3(659.75415f, 297.47797f, -145.15906f), 814) { Fly = true }; - num3 = 6; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - Span span31 = CollectionsMarshal.AsSpan(list127); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list127 = new List(index3); + CollectionsMarshal.SetCount(list127, index3); + Span span127 = CollectionsMarshal.AsSpan(list127); + num3 = 0; + span127[num3] = null; + num3++; + span127[num3] = null; + num3++; + span127[num3] = null; + num3++; + span127[num3] = null; + num3++; + span127[num3] = null; + num3++; + span127[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj91.CompletionQuestVariablesFlags = list127; reference93 = obj91; - ref QuestStep reference94 = ref span30[1]; + index2++; + ref QuestStep reference94 = ref span126[index2]; QuestStep obj92 = new QuestStep(EInteractionType.Interact, 1027299u, new Vector3(638.11694f, 297.44974f, -180.19385f), 814) { Fly = true @@ -266585,49 +323130,66 @@ public static class AssemblyQuestLoader num3 = 6; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - Span span32 = CollectionsMarshal.AsSpan(list128); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span128 = CollectionsMarshal.AsSpan(list128); + index3 = 0; + span128[index3] = null; + index3++; + span128[index3] = null; + index3++; + span128[index3] = null; + index3++; + span128[index3] = null; + index3++; + span128[index3] = null; + index3++; + span128[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj92.CompletionQuestVariablesFlags = list128; reference94 = obj92; - ref QuestStep reference95 = ref span30[2]; + index2++; + ref QuestStep reference95 = ref span126[index2]; QuestStep obj93 = new QuestStep(EInteractionType.Interact, 1027486u, new Vector3(608.8501f, 297.4718f, -165.45361f), 814) { Fly = true }; - num3 = 6; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - Span span33 = CollectionsMarshal.AsSpan(list129); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list129 = new List(index3); + CollectionsMarshal.SetCount(list129, index3); + Span span129 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span129[num3] = null; + num3++; + span129[num3] = null; + num3++; + span129[num3] = null; + num3++; + span129[num3] = null; + num3++; + span129[num3] = null; + num3++; + span129[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj93.CompletionQuestVariablesFlags = list129; reference95 = obj93; obj90.Steps = list126; reference92 = obj90; - ref QuestSequence reference96 = ref span27[6]; + num++; + ref QuestSequence reference96 = ref span120[num]; QuestSequence obj94 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 2011447u, new Vector3(711.6044f, 286.12183f, -121.50757f), 814) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.Interact, 2011447u, new Vector3(711.6044f, 286.12183f, -121.50757f), 814) { Fly = true }; obj94.Steps = list130; reference96 = obj94; - ref QuestSequence reference97 = ref span27[7]; + num++; + ref QuestSequence reference97 = ref span120[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -266635,7 +323197,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list131)[0]; + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + ref QuestStep reference98 = ref span131[index2]; QuestStep obj96 = new QuestStep(EInteractionType.CompleteQuest, 1035135u, new Vector3(-361.37946f, 105.987305f, 347.12744f), 928) { StopDistance = 5f @@ -266643,14 +323207,16 @@ public static class AssemblyQuestLoader num3 = 2; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span34 = CollectionsMarshal.AsSpan(list132); - span34[0] = new DialogueChoice + Span span132 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span132[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA501_04034_Q5_000_000"), Answer = new ExcelRef("TEXT_LUCKTA501_04034_A5_000_001") }; - span34[1] = new DialogueChoice + index3++; + span132[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA501_04034_Q6_000_000"), @@ -266668,29 +323234,36 @@ public static class AssemblyQuestLoader num = 1; List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - CollectionsMarshal.AsSpan(list133)[0] = "liza"; + Span span133 = CollectionsMarshal.AsSpan(list133); + index = 0; + span133[index] = "liza"; questRoot18.Author = list133; - num = 4; - List list134 = new List(num); - CollectionsMarshal.SetCount(list134, num); - Span span35 = CollectionsMarshal.AsSpan(list134); - ref QuestSequence reference99 = ref span35[0]; + index = 4; + List list134 = new List(index); + CollectionsMarshal.SetCount(list134, index); + Span span134 = CollectionsMarshal.AsSpan(list134); + num = 0; + ref QuestSequence reference99 = ref span134[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - ref QuestStep reference100 = ref CollectionsMarshal.AsSpan(list135)[0]; + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref QuestStep reference100 = ref span135[num2]; QuestStep obj98 = new QuestStep(EInteractionType.AcceptQuest, 1035135u, new Vector3(-361.37946f, 105.987305f, 347.12744f), 928) { StopDistance = 5f }; - num3 = 1; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - CollectionsMarshal.AsSpan(list136)[0] = new DialogueChoice + index3 = 1; + List list136 = new List(index3); + CollectionsMarshal.SetCount(list136, index3); + Span span136 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span136[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA502_04035_Q1_000_000"), @@ -266700,7 +323273,8 @@ public static class AssemblyQuestLoader reference100 = obj98; obj97.Steps = list135; reference99 = obj97; - ref QuestSequence reference101 = ref span35[1]; + num++; + ref QuestSequence reference101 = ref span134[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 @@ -266708,53 +323282,65 @@ public static class AssemblyQuestLoader num2 = 14; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span36 = CollectionsMarshal.AsSpan(list137); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) { RestartNavigationIfCancelled = false }; - span36[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) + index2++; + span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) { DelaySecondsAtStart = 2f, RestartNavigationIfCancelled = false }; - span36[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.40671f, 30f, 168.78214f), 928) + index2++; + span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.40671f, 30f, 168.78214f), 928) { DelaySecondsAtStart = 2f }; - span36[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.90593f, 36.4109f, 107.25123f), 928); - span36[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81836f, 20.597822f, 72.87652f), 928) + index2++; + span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.90593f, 36.4109f, 107.25123f), 928); + index2++; + span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81836f, 20.597822f, 72.87652f), 928) { DisableNavmesh = true }; - span36[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) + index2++; + span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) { DisableNavmesh = true }; - span36[6] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) + index2++; + span137[index2] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) { TargetTerritoryId = (ushort)928 }; - span36[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) + index2++; + span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) { RestartNavigationIfCancelled = false }; - span36[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.96237f, -168.28922f, -329.79776f), 928) + index2++; + span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.96237f, -168.28922f, -329.79776f), 928) { DelaySecondsAtStart = 2f, DisableNavmesh = true }; - span36[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) + index2++; + span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) { DelaySecondsAtStart = 2f, RestartNavigationIfCancelled = false }; - span36[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-305.8408f, -204.6433f, -336.8385f), 928) + index2++; + span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-305.8408f, -204.6433f, -336.8385f), 928) { DelaySecondsAtStart = 2f, RestartNavigationIfCancelled = false }; - span36[11] = new QuestStep(EInteractionType.Jump, null, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) + index2++; + span137[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) { StopDistance = 0.5f, DelaySecondsAtStart = 2f, @@ -266763,22 +323349,27 @@ public static class AssemblyQuestLoader Position = new Vector3(-366.558f, -249.74661f, -301.74612f) } }; - span36[12] = new QuestStep(EInteractionType.Interact, 2011269u, new Vector3(-366.50647f, -248.43219f, -285.6947f), 928) + index2++; + span137[index2] = new QuestStep(EInteractionType.Interact, 2011269u, new Vector3(-366.50647f, -248.43219f, -285.6947f), 928) { TargetTerritoryId = (ushort)928 }; - span36[13] = new QuestStep(EInteractionType.Interact, 2011440u, new Vector3(200f, -478.47717f, -558.8312f), 928); + index2++; + span137[index2] = new QuestStep(EInteractionType.Interact, 2011440u, new Vector3(200f, -478.47717f, -558.8312f), 928); obj99.Steps = list137; reference101 = obj99; - ref QuestSequence reference102 = ref span35[2]; + num++; + ref QuestSequence reference102 = ref span134[num]; QuestSequence obj100 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Duty, null, null, 928) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.Duty, null, null, 928) { DutyOptions = new DutyOptions { @@ -266787,7 +323378,8 @@ public static class AssemblyQuestLoader }; obj100.Steps = list138; reference102 = obj100; - ref QuestSequence reference103 = ref span35[3]; + num++; + ref QuestSequence reference103 = ref span134[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -266795,7 +323387,9 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035142u, new Vector3(701.9607f, 291.86115f, -142.443f), 814) + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035142u, new Vector3(701.9607f, 291.86115f, -142.443f), 814) { StopDistance = 5f, NextQuestId = new QuestId(4036) @@ -266809,27 +323403,33 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - CollectionsMarshal.AsSpan(list140)[0] = "liza"; + Span span140 = CollectionsMarshal.AsSpan(list140); + index = 0; + span140[index] = "liza"; questRoot19.Author = list140; - num = 8; - List list141 = new List(num); - CollectionsMarshal.SetCount(list141, num); - Span span37 = CollectionsMarshal.AsSpan(list141); - ref QuestSequence reference104 = ref span37[0]; + index = 8; + List list141 = new List(index); + CollectionsMarshal.SetCount(list141, index); + Span span141 = CollectionsMarshal.AsSpan(list141); + num = 0; + ref QuestSequence reference104 = ref span141[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035142u, new Vector3(701.9607f, 291.86115f, -142.443f), 814) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.AcceptQuest, 1035142u, new Vector3(701.9607f, 291.86115f, -142.443f), 814) { StopDistance = 5f }; obj102.Steps = list142; reference104 = obj102; - ref QuestSequence reference105 = ref span37[1]; + num++; + ref QuestSequence reference105 = ref span141[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -266837,30 +323437,36 @@ public static class AssemblyQuestLoader num2 = 2; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span38 = CollectionsMarshal.AsSpan(list143); - span38[0] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - span38[1] = new QuestStep(EInteractionType.Interact, 1035141u, new Vector3(-13.382202f, 0.039723f, -66.11737f), 895); + index2++; + span143[index2] = new QuestStep(EInteractionType.Interact, 1035141u, new Vector3(-13.382202f, 0.039723f, -66.11737f), 895); obj103.Steps = list143; reference105 = obj103; - ref QuestSequence reference106 = ref span37[2]; + num++; + ref QuestSequence reference106 = ref span141[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.Interact, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true }; obj104.Steps = list144; reference106 = obj104; - ref QuestSequence reference107 = ref span37[3]; + num++; + ref QuestSequence reference107 = ref span141[num]; QuestSequence obj105 = new QuestSequence { Sequence = 3 @@ -266868,30 +323474,36 @@ public static class AssemblyQuestLoader num2 = 2; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span39 = CollectionsMarshal.AsSpan(list145); - span39[0] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - span39[1] = new QuestStep(EInteractionType.Interact, 1035133u, new Vector3(-6.881897f, 0.029997535f, -63.187683f), 895); + index2++; + span145[index2] = new QuestStep(EInteractionType.Interact, 1035133u, new Vector3(-6.881897f, 0.029997535f, -63.187683f), 895); obj105.Steps = list145; reference107 = obj105; - ref QuestSequence reference108 = ref span37[4]; + num++; + ref QuestSequence reference108 = ref span141[num]; QuestSequence obj106 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 2011441u, new Vector3(-3.5858765f, -0.015319824f, -58.06067f), 895) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.Interact, 2011441u, new Vector3(-3.5858765f, -0.015319824f, -58.06067f), 895) { StopDistance = 4f }; obj106.Steps = list146; reference108 = obj106; - ref QuestSequence reference109 = ref span37[5]; + num++; + ref QuestSequence reference109 = ref span141[num]; QuestSequence obj107 = new QuestSequence { Sequence = 5 @@ -266899,25 +323511,35 @@ public static class AssemblyQuestLoader num2 = 6; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span40 = CollectionsMarshal.AsSpan(list147); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.2522326f, 0f, -52.14471f), 895); - ref QuestStep reference110 = ref span40[1]; + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(2.2522326f, 0f, -52.14471f), 895); + index2++; + ref QuestStep reference110 = ref span147[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1035148u, new Vector3(2.39563f, -3.2740335E-11f, -54.61206f), 895); num3 = 6; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - Span span41 = CollectionsMarshal.AsSpan(list148); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span148 = CollectionsMarshal.AsSpan(list148); + index3 = 0; + span148[index3] = null; + index3++; + span148[index3] = null; + index3++; + span148[index3] = null; + index3++; + span148[index3] = null; + index3++; + span148[index3] = null; + index3++; + span148[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list148; - num3 = 1; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = new DialogueChoice + index3 = 1; + List list149 = new List(index3); + CollectionsMarshal.SetCount(list149, index3); + Span span149 = CollectionsMarshal.AsSpan(list149); + num3 = 0; + span149[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q9_000_000"), @@ -266925,23 +323547,32 @@ public static class AssemblyQuestLoader }; questStep3.DialogueChoices = list149; reference110 = questStep3; - ref QuestStep reference111 = ref span40[2]; + index2++; + ref QuestStep reference111 = ref span147[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1035144u, new Vector3(3.9520264f, -3.2538423E-11f, -54.24591f), 895); num3 = 6; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - Span span42 = CollectionsMarshal.AsSpan(list150); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span150 = CollectionsMarshal.AsSpan(list150); + index3 = 0; + span150[index3] = null; + index3++; + span150[index3] = null; + index3++; + span150[index3] = null; + index3++; + span150[index3] = null; + index3++; + span150[index3] = null; + index3++; + span150[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list150; - num3 = 1; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice + index3 = 1; + List list151 = new List(index3); + CollectionsMarshal.SetCount(list151, index3); + Span span151 = CollectionsMarshal.AsSpan(list151); + num3 = 0; + span151[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q6_000_000"), @@ -266949,23 +323580,32 @@ public static class AssemblyQuestLoader }; questStep4.DialogueChoices = list151; reference111 = questStep4; - ref QuestStep reference112 = ref span40[3]; + index2++; + ref QuestStep reference112 = ref span147[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1035145u, new Vector3(4.8981323f, -3.0844622E-11f, -51.407654f), 895); num3 = 6; List list152 = new List(num3); CollectionsMarshal.SetCount(list152, num3); - Span span43 = CollectionsMarshal.AsSpan(list152); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span152 = CollectionsMarshal.AsSpan(list152); + index3 = 0; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list152; - num3 = 1; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = new DialogueChoice + index3 = 1; + List list153 = new List(index3); + CollectionsMarshal.SetCount(list153, index3); + Span span153 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span153[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q7_000_000"), @@ -266973,23 +323613,32 @@ public static class AssemblyQuestLoader }; questStep5.DialogueChoices = list153; reference112 = questStep5; - ref QuestStep reference113 = ref span40[4]; + index2++; + ref QuestStep reference113 = ref span147[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1035146u, new Vector3(4.3182373f, -3.024035E-11f, -50.400574f), 895); num3 = 6; List list154 = new List(num3); CollectionsMarshal.SetCount(list154, num3); - Span span44 = CollectionsMarshal.AsSpan(list154); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span154 = CollectionsMarshal.AsSpan(list154); + index3 = 0; + span154[index3] = null; + index3++; + span154[index3] = null; + index3++; + span154[index3] = null; + index3++; + span154[index3] = null; + index3++; + span154[index3] = null; + index3++; + span154[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list154; - num3 = 1; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = new DialogueChoice + index3 = 1; + List list155 = new List(index3); + CollectionsMarshal.SetCount(list155, index3); + Span span155 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + span155[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q8_000_000"), @@ -266997,23 +323646,32 @@ public static class AssemblyQuestLoader }; questStep6.DialogueChoices = list155; reference113 = questStep6; - ref QuestStep reference114 = ref span40[5]; + index2++; + ref QuestStep reference114 = ref span147[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1035147u, new Vector3(0.62561035f, -3.0313623E-11f, -50.522705f), 895); num3 = 6; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span45 = CollectionsMarshal.AsSpan(list156); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span156 = CollectionsMarshal.AsSpan(list156); + index3 = 0; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list156; - num3 = 1; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = new DialogueChoice + index3 = 1; + List list157 = new List(index3); + CollectionsMarshal.SetCount(list157, index3); + Span span157 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span157[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q10_000_000"), @@ -267023,20 +323681,25 @@ public static class AssemblyQuestLoader reference114 = questStep7; obj107.Steps = list147; reference109 = obj107; - ref QuestSequence reference115 = ref span37[6]; + num++; + ref QuestSequence reference115 = ref span141[num]; QuestSequence obj108 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list158)[0]; + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + ref QuestStep reference116 = ref span158[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1035630u, new Vector3(2.2124634f, -3.161355E-11f, -52.689453f), 895); num3 = 1; List list159 = new List(num3); CollectionsMarshal.SetCount(list159, num3); - CollectionsMarshal.AsSpan(list159)[0] = new DialogueChoice + Span span159 = CollectionsMarshal.AsSpan(list159); + index3 = 0; + span159[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q11_000_000"), @@ -267046,7 +323709,8 @@ public static class AssemblyQuestLoader reference116 = questStep8; obj108.Steps = list158; reference115 = obj108; - ref QuestSequence reference117 = ref span37[7]; + num++; + ref QuestSequence reference117 = ref span141[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -267054,12 +323718,14 @@ public static class AssemblyQuestLoader num2 = 2; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span46 = CollectionsMarshal.AsSpan(list160); - span46[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - span46[1] = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + index2++; + span160[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true, NextQuestId = new QuestId(4043) @@ -267073,26 +323739,33 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "liza"; + Span span161 = CollectionsMarshal.AsSpan(list161); + index = 0; + span161[index] = "liza"; questRoot20.Author = list161; - num = 2; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span47 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference118 = ref span47[0]; + index = 2; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + Span span162 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference118 = ref span162[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - ref QuestStep reference119 = ref CollectionsMarshal.AsSpan(list163)[0]; + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + ref QuestStep reference119 = ref span163[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice + index3 = 1; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + Span span164 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span164[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA510_04043_Q1_000_000"), @@ -267102,7 +323775,8 @@ public static class AssemblyQuestLoader reference119 = questStep9; obj110.Steps = list163; reference118 = obj110; - ref QuestSequence reference120 = ref span47[1]; + num++; + ref QuestSequence reference120 = ref span162[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue @@ -267110,7 +323784,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036042u, new Vector3(655.1765f, 297.57593f, -171.31305f), 814); + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036042u, new Vector3(655.1765f, 297.57593f, -171.31305f), 814); obj111.Steps = list165; reference120 = obj111; questRoot20.QuestSequence = list162; @@ -267120,20 +323796,26 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "liza"; + Span span166 = CollectionsMarshal.AsSpan(list166); + index = 0; + span166[index] = "liza"; questRoot21.Author = list166; - num = 1; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - ref QuestSequence reference121 = ref CollectionsMarshal.AsSpan(list167)[0]; + index = 1; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + Span span167 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference121 = ref span167[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj112.Steps = list168; reference121 = obj112; questRoot21.QuestSequence = list167; @@ -267143,12 +323825,16 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "liza"; + Span span169 = CollectionsMarshal.AsSpan(list169); + index = 0; + span169[index] = "liza"; questRoot22.Author = list169; - num = 1; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - ref QuestSequence reference122 = ref CollectionsMarshal.AsSpan(list170)[0]; + index = 1; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + Span span170 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference122 = ref span170[num]; QuestSequence obj113 = new QuestSequence { Sequence = 0 @@ -267156,7 +323842,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span171[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj113.Steps = list171; reference122 = obj113; questRoot22.QuestSequence = list170; @@ -267166,20 +323854,26 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - CollectionsMarshal.AsSpan(list172)[0] = "liza"; + Span span172 = CollectionsMarshal.AsSpan(list172); + index = 0; + span172[index] = "liza"; questRoot23.Author = list172; - num = 1; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - ref QuestSequence reference123 = ref CollectionsMarshal.AsSpan(list173)[0]; + index = 1; + List list173 = new List(index); + CollectionsMarshal.SetCount(list173, index); + Span span173 = CollectionsMarshal.AsSpan(list173); + num = 0; + ref QuestSequence reference123 = ref span173[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj114.Steps = list174; reference123 = obj114; questRoot23.QuestSequence = list173; @@ -267189,12 +323883,16 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "liza"; + Span span175 = CollectionsMarshal.AsSpan(list175); + index = 0; + span175[index] = "liza"; questRoot24.Author = list175; - num = 1; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - ref QuestSequence reference124 = ref CollectionsMarshal.AsSpan(list176)[0]; + index = 1; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + Span span176 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference124 = ref span176[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -267202,7 +323900,9 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span177[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj115.Steps = list177; reference124 = obj115; questRoot24.QuestSequence = list176; @@ -267212,20 +323912,26 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "liza"; + Span span178 = CollectionsMarshal.AsSpan(list178); + index = 0; + span178[index] = "liza"; questRoot25.Author = list178; - num = 1; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - ref QuestSequence reference125 = ref CollectionsMarshal.AsSpan(list179)[0]; + index = 1; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + Span span179 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference125 = ref span179[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj116.Steps = list180; reference125 = obj116; questRoot25.QuestSequence = list179; @@ -267235,12 +323941,16 @@ public static class AssemblyQuestLoader num = 1; List list181 = new List(num); CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "liza"; + Span span181 = CollectionsMarshal.AsSpan(list181); + index = 0; + span181[index] = "liza"; questRoot26.Author = list181; - num = 1; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - ref QuestSequence reference126 = ref CollectionsMarshal.AsSpan(list182)[0]; + index = 1; + List list182 = new List(index); + CollectionsMarshal.SetCount(list182, index); + Span span182 = CollectionsMarshal.AsSpan(list182); + num = 0; + ref QuestSequence reference126 = ref span182[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 @@ -267248,7 +323958,9 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + Span span183 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span183[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj117.Steps = list183; reference126 = obj117; questRoot26.QuestSequence = list182; @@ -267262,13 +323974,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -267276,7 +323991,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1036042u, new Vector3(655.1765f, 297.57593f, -171.31305f), 814) { Fly = true, @@ -267292,14 +324009,16 @@ public static class AssemblyQuestLoader int num3 = 2; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list4); + int num4 = 0; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA521_04050_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKTA521_04050_A1_000_002") }; - span2[1] = new DialogueChoice + num4++; + span4[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA521_04050_Q2_000_000"), @@ -267309,64 +324028,85 @@ public static class AssemblyQuestLoader reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + index2 = 7; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span5[num2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - span3[1] = new QuestStep(EInteractionType.Interact, 2010830u, new Vector3(-0.015319824f, 1.2664795f, -94.86542f), 895) + num2++; + span5[num2] = new QuestStep(EInteractionType.Interact, 2010830u, new Vector3(-0.015319824f, 1.2664795f, -94.86542f), 895) { TargetTerritoryId = (ushort)896 }; - span3[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-499.9735f, 463.36023f, 177.62115f), 896); - span3[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-499.9782f, 400.99997f, 4.3087606f), 896); - span3[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-557.9587f, 383f, -141.83781f), 896) + num2++; + span5[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-499.9735f, 463.36023f, 177.62115f), 896); + num2++; + span5[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-499.9782f, 400.99997f, 4.3087606f), 896); + num2++; + span5[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-557.9587f, 383f, -141.83781f), 896) { RestartNavigationIfCancelled = false }; - ref QuestStep reference4 = ref span3[5]; + num2++; + ref QuestStep reference4 = ref span5[num2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 2011457u, new Vector3(-643.4882f, 338.39917f, -353.8415f), 896) { DelaySecondsAtStart = 2f }; - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list6; reference4 = obj4; - ref QuestStep reference5 = ref span3[6]; + num2++; + ref QuestStep reference5 = ref span5[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2011456u, new Vector3(-679.56055f, 335.31702f, -307.88135f), 896); num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list7; reference5 = questStep; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -267374,7 +324114,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036042u, new Vector3(655.1765f, 297.57593f, -171.31305f), 814) + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036042u, new Vector3(655.1765f, 297.57593f, -171.31305f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide @@ -267388,21 +324130,26 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "liza"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "liza"; questRoot2.Author = list9; - num = 3; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span6[0]; + index = 3; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span10[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference8 = ref span11[num2]; QuestStep obj7 = new QuestStep(EInteractionType.AcceptQuest, 1036043u, new Vector3(653.8948f, 297.51984f, -171.80133f), 814) { Fly = true, @@ -267415,10 +324162,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice + num4 = 1; + List list12 = new List(num4); + CollectionsMarshal.SetCount(list12, num4); + Span span12 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span12[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA522_04051_Q1_000_000"), @@ -267428,7 +324177,8 @@ public static class AssemblyQuestLoader reference8 = obj7; obj6.Steps = list11; reference7 = obj6; - ref QuestSequence reference9 = ref span6[1]; + num++; + ref QuestSequence reference9 = ref span10[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -267436,8 +324186,9 @@ public static class AssemblyQuestLoader num2 = 25; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span7 = CollectionsMarshal.AsSpan(list13); - ref QuestStep reference10 = ref span7[0]; + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + ref QuestStep reference10 = ref span13[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Interact, 2011154u, new Vector3(703.1509f, 295.3993f, -160.20447f), 814) { TargetTerritoryId = (ushort)928 @@ -267447,119 +324198,161 @@ public static class AssemblyQuestLoader num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = 928; + Span span14 = CollectionsMarshal.AsSpan(list14); + num4 = 0; + span14[num4] = 928; skipStepConditions.InTerritory = list14; skipConditions.StepIf = skipStepConditions; obj9.SkipConditions = skipConditions; reference10 = obj9; - span7[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) + index2++; + span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) { RestartNavigationIfCancelled = false }; - span7[2] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span13[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 3f }; - span7[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) + index2++; + span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) { RestartNavigationIfCancelled = false }; - span7[4] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span13[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - span7[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.40671f, 30f, 168.78214f), 928); - span7[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.90593f, 36.4109f, 107.25123f), 928); - span7[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81836f, 20.597822f, 72.87652f), 928) + index2++; + span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.40671f, 30f, 168.78214f), 928); + index2++; + span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.90593f, 36.4109f, 107.25123f), 928); + index2++; + span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81836f, 20.597822f, 72.87652f), 928) { DisableNavmesh = true }; - span7[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.3392f, 2.727209f, 47.629112f), 928) + index2++; + span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.3392f, 2.727209f, 47.629112f), 928) { DisableNavmesh = true }; - ref QuestStep reference11 = ref span7[9]; + index2++; + ref QuestStep reference11 = ref span13[index2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2011477u, new Vector3(-233.6004f, 2.5177002f, 49.637573f), 928) { DisableNavmesh = true }; - num3 = 6; - List> list15 = new List>(num3); - CollectionsMarshal.SetCount(list15, num3); - Span> span8 = CollectionsMarshal.AsSpan(list15); - span8[0] = null; - span8[1] = null; - span8[2] = null; - ref List reference12 = ref span8[3]; - int num4 = 1; - List list16 = new List(num4); - CollectionsMarshal.SetCount(list16, num4); - CollectionsMarshal.AsSpan(list16)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4 = 6; + List> list15 = new List>(num4); + CollectionsMarshal.SetCount(list15, num4); + Span> span15 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + ref List reference12 = ref span15[num3]; + int num5 = 1; + List list16 = new List(num5); + CollectionsMarshal.SetCount(list16, num5); + Span span16 = CollectionsMarshal.AsSpan(list16); + int index3 = 0; + span16[index3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference12 = list16; - span8[4] = null; - span8[5] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; obj10.RequiredQuestVariables = list15; num3 = 6; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - Span span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span17 = CollectionsMarshal.AsSpan(list17); + num4 = 0; + span17[num4] = null; + num4++; + span17[num4] = null; + num4++; + span17[num4] = null; + num4++; + span17[num4] = null; + num4++; + span17[num4] = null; + num4++; + span17[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj10.CompletionQuestVariablesFlags = list17; reference11 = obj10; - span7[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.3392f, 2.727209f, 47.629112f), 928) + index2++; + span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.3392f, 2.727209f, 47.629112f), 928) { DisableNavmesh = true }; - span7[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) + index2++; + span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) { DisableNavmesh = true }; - span7[12] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) + index2++; + span13[index2] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) { TargetTerritoryId = (ushort)928 }; - span7[13] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) + index2++; + span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) { RestartNavigationIfCancelled = false }; - span7[14] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span13[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - span7[15] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.93883f, -150.49908f, -219.08035f), 928); - span7[16] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.96237f, -168.28922f, -329.79776f), 928) + index2++; + span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.93883f, -150.49908f, -219.08035f), 928); + index2++; + span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.96237f, -168.28922f, -329.79776f), 928) { DisableNavmesh = true }; - span7[17] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) + index2++; + span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) { DelaySecondsAtStart = 2f, RestartNavigationIfCancelled = false }; - span7[18] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span13[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - ref QuestStep reference13 = ref span7[19]; + index2++; + ref QuestStep reference13 = ref span13[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2011458u, new Vector3(-295.1858f, -203.93689f, -329.36603f), 928); - num3 = 6; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - Span span10 = CollectionsMarshal.AsSpan(list18); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + Span span18 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span18[num3] = null; + num3++; + span18[num3] = null; + num3++; + span18[num3] = null; + num3++; + span18[num3] = null; + num3++; + span18[num3] = null; + num3++; + span18[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list18; reference13 = questStep2; - ref QuestStep reference14 = ref span7[20]; + index2++; + ref QuestStep reference14 = ref span13[index2]; QuestStep obj11 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-305.8408f, -204.6433f, -336.8385f), 928) { DelaySecondsAtStart = 2f, @@ -267568,25 +324361,35 @@ public static class AssemblyQuestLoader num3 = 6; List> list19 = new List>(num3); CollectionsMarshal.SetCount(list19, num3); - Span> span11 = CollectionsMarshal.AsSpan(list19); - span11[0] = null; - span11[1] = null; - span11[2] = null; - ref List reference15 = ref span11[3]; - num4 = 1; - List list20 = new List(num4); - CollectionsMarshal.SetCount(list20, num4); - CollectionsMarshal.AsSpan(list20)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span> span19 = CollectionsMarshal.AsSpan(list19); + num4 = 0; + span19[num4] = null; + num4++; + span19[num4] = null; + num4++; + span19[num4] = null; + num4++; + ref List reference15 = ref span19[num4]; + index3 = 1; + List list20 = new List(index3); + CollectionsMarshal.SetCount(list20, index3); + Span span20 = CollectionsMarshal.AsSpan(list20); + num5 = 0; + span20[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference15 = list20; - span11[4] = null; - span11[5] = null; + num4++; + span19[num4] = null; + num4++; + span19[num4] = null; obj11.RequiredQuestVariables = list19; reference14 = obj11; - span7[21] = new QuestStep(EInteractionType.None, null, null, 928) + index2++; + span13[index2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - ref QuestStep reference16 = ref span7[22]; + index2++; + ref QuestStep reference16 = ref span13[index2]; QuestStep obj12 = new QuestStep(EInteractionType.Jump, null, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) { StopDistance = 0.5f, @@ -267596,24 +324399,33 @@ public static class AssemblyQuestLoader Position = new Vector3(-366.558f, -249.74661f, -301.74612f) } }; - num3 = 6; - List> list21 = new List>(num3); - CollectionsMarshal.SetCount(list21, num3); - Span> span12 = CollectionsMarshal.AsSpan(list21); - span12[0] = null; - span12[1] = null; - span12[2] = null; - ref List reference17 = ref span12[3]; - num4 = 1; - List list22 = new List(num4); - CollectionsMarshal.SetCount(list22, num4); - CollectionsMarshal.AsSpan(list22)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list21 = new List>(num4); + CollectionsMarshal.SetCount(list21, num4); + Span> span21 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + ref List reference17 = ref span21[num3]; + num5 = 1; + List list22 = new List(num5); + CollectionsMarshal.SetCount(list22, num5); + Span span22 = CollectionsMarshal.AsSpan(list22); + index3 = 0; + span22[index3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference17 = list22; - span12[4] = null; - span12[5] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = null; obj12.RequiredQuestVariables = list21; reference16 = obj12; - ref QuestStep reference18 = ref span7[23]; + index2++; + ref QuestStep reference18 = ref span13[index2]; QuestStep obj13 = new QuestStep(EInteractionType.Interact, 2011269u, new Vector3(-366.50647f, -248.43219f, -285.6947f), 928) { TargetTerritoryId = (ushort)928 @@ -267621,50 +324433,70 @@ public static class AssemblyQuestLoader num3 = 6; List> list23 = new List>(num3); CollectionsMarshal.SetCount(list23, num3); - Span> span13 = CollectionsMarshal.AsSpan(list23); - span13[0] = null; - span13[1] = null; - span13[2] = null; - ref List reference19 = ref span13[3]; - num4 = 1; - List list24 = new List(num4); - CollectionsMarshal.SetCount(list24, num4); - CollectionsMarshal.AsSpan(list24)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span> span23 = CollectionsMarshal.AsSpan(list23); + num4 = 0; + span23[num4] = null; + num4++; + span23[num4] = null; + num4++; + span23[num4] = null; + num4++; + ref List reference19 = ref span23[num4]; + index3 = 1; + List list24 = new List(index3); + CollectionsMarshal.SetCount(list24, index3); + Span span24 = CollectionsMarshal.AsSpan(list24); + num5 = 0; + span24[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference19 = list24; - span13[4] = null; - span13[5] = null; + num4++; + span23[num4] = null; + num4++; + span23[num4] = null; obj13.RequiredQuestVariables = list23; reference18 = obj13; - ref QuestStep reference20 = ref span7[24]; + index2++; + ref QuestStep reference20 = ref span13[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2011459u, new Vector3(205.8899f, -500.0229f, -167.86456f), 928); - num3 = 6; - List> list25 = new List>(num3); - CollectionsMarshal.SetCount(list25, num3); - Span> span14 = CollectionsMarshal.AsSpan(list25); - span14[0] = null; - span14[1] = null; - span14[2] = null; - ref List reference21 = ref span14[3]; - num4 = 1; - List list26 = new List(num4); - CollectionsMarshal.SetCount(list26, num4); - CollectionsMarshal.AsSpan(list26)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list25 = new List>(num4); + CollectionsMarshal.SetCount(list25, num4); + Span> span25 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + ref List reference21 = ref span25[num3]; + num5 = 1; + List list26 = new List(num5); + CollectionsMarshal.SetCount(list26, num5); + Span span26 = CollectionsMarshal.AsSpan(list26); + index3 = 0; + span26[index3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference21 = list26; - span14[4] = null; - span14[5] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; questStep3.RequiredQuestVariables = list25; reference20 = questStep3; obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference22 = ref span6[2]; + num++; + ref QuestSequence reference22 = ref span10[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036043u, new Vector3(653.8948f, 297.51984f, -171.80133f), 814) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.CompleteQuest, 1036043u, new Vector3(653.8948f, 297.51984f, -171.80133f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide @@ -267678,13 +324510,16 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "liza"; + Span span28 = CollectionsMarshal.AsSpan(list28); + index = 0; + span28[index] = "liza"; questRoot3.Author = list28; - num = 3; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span15 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference23 = ref span15[0]; + index = 3; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + Span span29 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference23 = ref span29[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -267692,7 +324527,9 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list30)[0]; + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + ref QuestStep reference24 = ref span30[index2]; QuestStep obj16 = new QuestStep(EInteractionType.AcceptQuest, 1036044u, new Vector3(652.7046f, 297.47797f, -171.03839f), 814) { Fly = true, @@ -267701,7 +324538,9 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = new DialogueChoice + Span span31 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + span31[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA523_04052_Q1_000_000"), @@ -267711,24 +324550,29 @@ public static class AssemblyQuestLoader reference24 = obj16; obj15.Steps = list30; reference23 = obj15; - ref QuestSequence reference25 = ref span15[1]; + num++; + ref QuestSequence reference25 = ref span29[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference26 = ref CollectionsMarshal.AsSpan(list32)[0]; + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + ref QuestStep reference26 = ref span32[num2]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(552.4747f, 294.7846f, -137.54712f), 814) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = 10391u; + num4 = 1; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = 10391u; obj18.KillEnemyDataIds = list33; obj18.CombatItemUse = new CombatItemUse { @@ -267739,7 +324583,8 @@ public static class AssemblyQuestLoader reference26 = obj18; obj17.Steps = list32; reference25 = obj17; - ref QuestSequence reference27 = ref span15[2]; + num++; + ref QuestSequence reference27 = ref span29[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -267747,7 +324592,9 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036044u, new Vector3(652.7046f, 297.47797f, -171.03839f), 814) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036044u, new Vector3(652.7046f, 297.47797f, -171.03839f), 814) { Fly = true }; @@ -267760,21 +324607,26 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "liza"; + Span span35 = CollectionsMarshal.AsSpan(list35); + index = 0; + span35[index] = "liza"; questRoot4.Author = list35; - num = 3; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span16 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference28 = ref span16[0]; + index = 3; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + Span span36 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference28 = ref span36[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide, @@ -267788,7 +324640,8 @@ public static class AssemblyQuestLoader }; obj20.Steps = list37; reference28 = obj20; - ref QuestSequence reference29 = ref span16[1]; + num++; + ref QuestSequence reference29 = ref span36[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -267796,21 +324649,26 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1036045u, new Vector3(10.0251465f, 82.83513f, -53.60504f), 820) + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.Interact, 1036045u, new Vector3(10.0251465f, 82.83513f, -53.60504f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj21.Steps = list38; reference29 = obj21; - ref QuestSequence reference30 = ref span16[2]; + num++; + ref QuestSequence reference30 = ref span36[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide @@ -267824,13 +324682,16 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "liza"; + Span span40 = CollectionsMarshal.AsSpan(list40); + index = 0; + span40[index] = "liza"; questRoot5.Author = list40; - num = 3; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span17 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference31 = ref span17[0]; + index = 3; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + Span span41 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference31 = ref span41[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -267838,28 +324699,34 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035613u, new Vector3(-2.456726f, 0f, -9.720032f), 351) + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035613u, new Vector3(-2.456726f, 0f, -9.720032f), 351) { StopDistance = 5f }; obj23.Steps = list42; reference31 = obj23; - ref QuestSequence reference32 = ref span17[1]; + num++; + ref QuestSequence reference32 = ref span41[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1036324u, new Vector3(739.681f, 70f, 535.4237f), 621) + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.Interact, 1036324u, new Vector3(739.681f, 70f, 535.4237f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj24.Steps = list43; reference32 = obj24; - ref QuestSequence reference33 = ref span17[2]; + num++; + ref QuestSequence reference33 = ref span41[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -267867,7 +324734,9 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036329u, new Vector3(741.1155f, 70f, 527.7333f), 621); + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036329u, new Vector3(741.1155f, 70f, 527.7333f), 621); obj25.Steps = list44; reference33 = obj25; questRoot5.QuestSequence = list41; @@ -267877,24 +324746,30 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; + Span span45 = CollectionsMarshal.AsSpan(list45); + index = 0; + span45[index] = "liza"; questRoot6.Author = list45; - num = 5; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span18 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference34 = ref span18[0]; + index = 5; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + Span span46 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference34 = ref span46[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036330u, new Vector3(742.1836f, 70f, 529.0454f), 621); + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036330u, new Vector3(742.1836f, 70f, 529.0454f), 621); obj26.Steps = list47; reference34 = obj26; - ref QuestSequence reference35 = ref span18[1]; + num++; + ref QuestSequence reference35 = ref span46[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -267902,21 +324777,26 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1036334u, new Vector3(-73.56378f, 8.05915f, 29.3125f), 418) + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.Interact, 1036334u, new Vector3(-73.56378f, 8.05915f, 29.3125f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj27.Steps = list48; reference35 = obj27; - ref QuestSequence reference36 = ref span18[2]; + num++; + ref QuestSequence reference36 = ref span46[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1013167u, new Vector3(125.68848f, 24.458836f, 2.456604f), 418) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.Interact, 1013167u, new Vector3(125.68848f, 24.458836f, 2.456604f), 418) { AethernetShortcut = new AethernetShortcut { @@ -267926,7 +324806,8 @@ public static class AssemblyQuestLoader }; obj28.Steps = list49; reference36 = obj28; - ref QuestSequence reference37 = ref span18[3]; + num++; + ref QuestSequence reference37 = ref span46[num]; QuestSequence obj29 = new QuestSequence { Sequence = 3 @@ -267934,7 +324815,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1036342u, new Vector3(161.91345f, -15.134371f, 33.279907f), 419) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.Interact, 1036342u, new Vector3(161.91345f, -15.134371f, 33.279907f), 419) { AethernetShortcut = new AethernetShortcut { @@ -267944,15 +324827,18 @@ public static class AssemblyQuestLoader }; obj29.Steps = list50; reference37 = obj29; - ref QuestSequence reference38 = ref span18[4]; + num++; + ref QuestSequence reference38 = ref span46[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036344u, new Vector3(-521.5991f, -103.946754f, 143.63306f), 402); + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.CompleteQuest, 1036344u, new Vector3(-521.5991f, -103.946754f, 143.63306f), 402); obj30.Steps = list51; reference38 = obj30; questRoot6.QuestSequence = list46; @@ -267962,13 +324848,16 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + Span span52 = CollectionsMarshal.AsSpan(list52); + index = 0; + span52[index] = "liza"; questRoot7.Author = list52; - num = 7; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span19 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference39 = ref span19[0]; + index = 7; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + Span span53 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference39 = ref span53[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -267976,25 +324865,31 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036346u, new Vector3(-520.531f, -103.99243f, 144.24353f), 402); + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036346u, new Vector3(-520.531f, -103.99243f, 144.24353f), 402); obj31.Steps = list54; reference39 = obj31; - ref QuestSequence reference40 = ref span19[1]; + num++; + ref QuestSequence reference40 = ref span53[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 2011483u, new Vector3(-681.5442f, -41.153625f, 424.58215f), 402) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.Interact, 2011483u, new Vector3(-681.5442f, -41.153625f, 424.58215f), 402) { StopDistance = 1f, Fly = true }; obj32.Steps = list55; reference40 = obj32; - ref QuestSequence reference41 = ref span19[2]; + num++; + ref QuestSequence reference41 = ref span53[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -268002,27 +324897,33 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1036588u, new Vector3(-683.3448f, -41.403988f, 426.44385f), 402) + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.Interact, 1036588u, new Vector3(-683.3448f, -41.403988f, 426.44385f), 402) { StopDistance = 5f }; obj33.Steps = list56; reference41 = obj33; - ref QuestSequence reference42 = ref span19[3]; + num++; + ref QuestSequence reference42 = ref span53[num]; QuestSequence obj34 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1036353u, new Vector3(-229.38892f, 246.3967f, 96.75745f), 402) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.Interact, 1036353u, new Vector3(-229.38892f, 246.3967f, 96.75745f), 402) { Fly = true }; obj34.Steps = list57; reference42 = obj34; - ref QuestSequence reference43 = ref span19[4]; + num++; + ref QuestSequence reference43 = ref span53[num]; QuestSequence obj35 = new QuestSequence { Sequence = 4 @@ -268030,8 +324931,9 @@ public static class AssemblyQuestLoader num2 = 3; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span20 = CollectionsMarshal.AsSpan(list58); - ref QuestStep reference44 = ref span20[0]; + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + ref QuestStep reference44 = ref span58[index2]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 1036358u, new Vector3(-215.16754f, 253.81813f, -13.16864f), 402) { Fly = true @@ -268039,34 +324941,48 @@ public static class AssemblyQuestLoader num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span21 = CollectionsMarshal.AsSpan(list59); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span59 = CollectionsMarshal.AsSpan(list59); + num4 = 0; + span59[num4] = null; + num4++; + span59[num4] = null; + num4++; + span59[num4] = null; + num4++; + span59[num4] = null; + num4++; + span59[num4] = null; + num4++; + span59[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj36.CompletionQuestVariablesFlags = list59; reference44 = obj36; - ref QuestStep reference45 = ref span20[1]; + index2++; + ref QuestStep reference45 = ref span58[index2]; QuestStep obj37 = new QuestStep(EInteractionType.Interact, 1036359u, new Vector3(-244.55634f, 263.18918f, -24.521301f), 402) { Mount = true, Fly = true }; - num3 = 6; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span22 = CollectionsMarshal.AsSpan(list60); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list60 = new List(num4); + CollectionsMarshal.SetCount(list60, num4); + Span span60 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj37.CompletionQuestVariablesFlags = list60; reference45 = obj37; - ref QuestStep reference46 = ref span20[2]; + index2++; + ref QuestStep reference46 = ref span58[index2]; QuestStep obj38 = new QuestStep(EInteractionType.Interact, 1036357u, new Vector3(-275.4406f, 252f, -20.981201f), 402) { DisableNavmesh = true @@ -268074,34 +324990,45 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span23 = CollectionsMarshal.AsSpan(list61); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span61 = CollectionsMarshal.AsSpan(list61); + num4 = 0; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj38.CompletionQuestVariablesFlags = list61; reference46 = obj38; obj35.Steps = list58; reference43 = obj35; - ref QuestSequence reference47 = ref span19[5]; + num++; + ref QuestSequence reference47 = ref span53[num]; QuestSequence obj39 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list62)[0]; + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + ref QuestStep reference48 = ref span62[num2]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 1036353u, new Vector3(-229.38892f, 246.3967f, 96.75745f), 402) { Fly = true }; - num3 = 1; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - CollectionsMarshal.AsSpan(list63)[0] = new DialogueChoice + num4 = 1; + List list63 = new List(num4); + CollectionsMarshal.SetCount(list63, num4); + Span span63 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span63[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMK103_04060_Q1_000_100"), @@ -268111,7 +325038,8 @@ public static class AssemblyQuestLoader reference48 = obj40; obj39.Steps = list62; reference47 = obj39; - ref QuestSequence reference49 = ref span19[6]; + num++; + ref QuestSequence reference49 = ref span53[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -268119,7 +325047,9 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036357u, new Vector3(-275.4406f, 252f, -20.981201f), 402) + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036357u, new Vector3(-275.4406f, 252f, -20.981201f), 402) { Fly = true }; @@ -268132,24 +325062,30 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + Span span65 = CollectionsMarshal.AsSpan(list65); + index = 0; + span65[index] = "liza"; questRoot8.Author = list65; - num = 5; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span24 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference50 = ref span24[0]; + index = 5; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + Span span66 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference50 = ref span66[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036953u, new Vector3(-275.4406f, 252f, -20.981201f), 402); + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036953u, new Vector3(-275.4406f, 252f, -20.981201f), 402); obj42.Steps = list67; reference50 = obj42; - ref QuestSequence reference51 = ref span24[1]; + num++; + ref QuestSequence reference51 = ref span66[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 @@ -268157,27 +325093,33 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 2011484u, new Vector3(28.366455f, 271.229f, -35.355164f), 402) + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.Interact, 2011484u, new Vector3(28.366455f, 271.229f, -35.355164f), 402) { Fly = true }; obj43.Steps = list68; reference51 = obj43; - ref QuestSequence reference52 = ref span24[2]; + num++; + ref QuestSequence reference52 = ref span66[num]; QuestSequence obj44 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1036351u, new Vector3(-681.33057f, -41.32259f, 427.66455f), 402) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.Interact, 1036351u, new Vector3(-681.33057f, -41.32259f, 427.66455f), 402) { Fly = true }; obj44.Steps = list69; reference52 = obj44; - ref QuestSequence reference53 = ref span24[3]; + num++; + ref QuestSequence reference53 = ref span66[num]; QuestSequence obj45 = new QuestSequence { Sequence = 3 @@ -268185,18 +325127,23 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1036351u, new Vector3(-681.33057f, -41.32259f, 427.66455f), 402); + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.Interact, 1036351u, new Vector3(-681.33057f, -41.32259f, 427.66455f), 402); obj45.Steps = list70; reference53 = obj45; - ref QuestSequence reference54 = ref span24[4]; + num++; + ref QuestSequence reference54 = ref span66[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036352u, new Vector3(-679.92676f, -41.30151f, 429.00732f), 402); + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.CompleteQuest, 1036352u, new Vector3(-679.92676f, -41.30151f, 429.00732f), 402); obj46.Steps = list71; reference54 = obj46; questRoot8.QuestSequence = list66; @@ -268206,13 +325153,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "liza"; + Span span72 = CollectionsMarshal.AsSpan(list72); + index = 0; + span72[index] = "liza"; questRoot9.Author = list72; - num = 6; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span25 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference55 = ref span25[0]; + index = 6; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + Span span73 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference55 = ref span73[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -268220,24 +325170,30 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036352u, new Vector3(-679.92676f, -41.30151f, 429.00732f), 402); + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036352u, new Vector3(-679.92676f, -41.30151f, 429.00732f), 402); obj47.Steps = list74; reference55 = obj47; - ref QuestSequence reference56 = ref span25[1]; + num++; + ref QuestSequence reference56 = ref span73[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1036368u, new Vector3(-137.56012f, 4.1f, -109.819214f), 130) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.Interact, 1036368u, new Vector3(-137.56012f, 4.1f, -109.819214f), 130) { StopDistance = 5f }; obj48.Steps = list75; reference56 = obj48; - ref QuestSequence reference57 = ref span25[2]; + num++; + ref QuestSequence reference57 = ref span73[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -268245,7 +325201,9 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1036374u, new Vector3(-25.0401f, 83.19998f, 10.452393f), 130) + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.Interact, 1036374u, new Vector3(-25.0401f, 83.19998f, 10.452393f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -268256,15 +325214,18 @@ public static class AssemblyQuestLoader }; obj49.Steps = list76; reference57 = obj49; - ref QuestSequence reference58 = ref span25[3]; + num++; + ref QuestSequence reference58 = ref span73[num]; QuestSequence obj50 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Duty, null, null, 130) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.Duty, null, null, 130) { DutyOptions = new DutyOptions { @@ -268273,11 +325234,13 @@ public static class AssemblyQuestLoader }; obj50.Steps = list77; reference58 = obj50; - span25[4] = new QuestSequence + num++; + span73[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference59 = ref span25[5]; + num++; + ref QuestSequence reference59 = ref span73[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -268285,7 +325248,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036376u, new Vector3(-20.065674f, 83.2f, 15.121643f), 130) + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036376u, new Vector3(-20.065674f, 83.2f, 15.121643f), 130) { StopDistance = 7f }; @@ -268298,27 +325263,33 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + Span span79 = CollectionsMarshal.AsSpan(list79); + index = 0; + span79[index] = "liza"; questRoot10.Author = list79; - num = 6; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span26 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference60 = ref span26[0]; + index = 6; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + Span span80 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference60 = ref span80[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036376u, new Vector3(-20.065674f, 83.2f, 15.121643f), 130) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036376u, new Vector3(-20.065674f, 83.2f, 15.121643f), 130) { StopDistance = 7f }; obj52.Steps = list81; reference60 = obj52; - ref QuestSequence reference61 = ref span26[1]; + num++; + ref QuestSequence reference61 = ref span80[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 @@ -268326,7 +325297,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - ref QuestStep reference62 = ref CollectionsMarshal.AsSpan(list82)[0]; + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + ref QuestStep reference62 = ref span82[index2]; QuestStep obj54 = new QuestStep(EInteractionType.Interact, 1036388u, new Vector3(-76.46301f, 42f, 58.243652f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -268339,7 +325312,9 @@ public static class AssemblyQuestLoader num3 = 1; List list83 = new List(num3); CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = new DialogueChoice + Span span83 = CollectionsMarshal.AsSpan(list83); + num4 = 0; + span83[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMK106_04063_Q1_000_100"), @@ -268349,18 +325324,22 @@ public static class AssemblyQuestLoader reference62 = obj54; obj53.Steps = list82; reference61 = obj53; - ref QuestSequence reference63 = ref span26[2]; + num++; + ref QuestSequence reference63 = ref span80[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1036391u, new Vector3(-77.71423f, 42f, 58.854004f), 131); + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.Interact, 1036391u, new Vector3(-77.71423f, 42f, 58.854004f), 131); obj55.Steps = list84; reference63 = obj55; - ref QuestSequence reference64 = ref span26[3]; + num++; + ref QuestSequence reference64 = ref span80[num]; QuestSequence obj56 = new QuestSequence { Sequence = 3 @@ -268368,25 +325347,31 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1036392u, new Vector3(-14.328308f, 36.01278f, 61.08191f), 131); + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.Interact, 1036392u, new Vector3(-14.328308f, 36.01278f, 61.08191f), 131); obj56.Steps = list85; reference64 = obj56; - ref QuestSequence reference65 = ref span26[4]; + num++; + ref QuestSequence reference65 = ref span80[num]; QuestSequence obj57 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj57.Steps = list86; reference65 = obj57; - ref QuestSequence reference66 = ref span26[5]; + num++; + ref QuestSequence reference66 = ref span80[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -268394,7 +325379,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036399u, new Vector3(-3.402832f, 0.01804012f, -8.499329f), 351); + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036399u, new Vector3(-3.402832f, 0.01804012f, -8.499329f), 351); obj58.Steps = list87; reference66 = obj58; questRoot10.QuestSequence = list80; @@ -268404,24 +325391,30 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "liza"; + Span span88 = CollectionsMarshal.AsSpan(list88); + index = 0; + span88[index] = "liza"; questRoot11.Author = list88; - num = 5; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span27 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference67 = ref span27[0]; + index = 5; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + Span span89 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference67 = ref span89[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036400u, new Vector3(-2.5177612f, 0f, -9.170715f), 351); + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036400u, new Vector3(-2.5177612f, 0f, -9.170715f), 351); obj59.Steps = list90; reference67 = obj59; - ref QuestSequence reference68 = ref span27[1]; + num++; + ref QuestSequence reference68 = ref span89[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -268429,25 +325422,31 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj60.Steps = list91; reference68 = obj60; - ref QuestSequence reference69 = ref span27[2]; + num++; + ref QuestSequence reference69 = ref span89[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1036325u, new Vector3(740.0167f, 70f, 534.02f), 621); + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.Interact, 1036325u, new Vector3(740.0167f, 70f, 534.02f), 621); obj61.Steps = list92; reference69 = obj61; - ref QuestSequence reference70 = ref span27[3]; + num++; + ref QuestSequence reference70 = ref span89[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -268455,18 +325454,23 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1037011u, new Vector3(741.7257f, 70f, 534.63025f), 621); + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.Interact, 1037011u, new Vector3(741.7257f, 70f, 534.63025f), 621); obj62.Steps = list93; reference70 = obj62; - ref QuestSequence reference71 = ref span27[4]; + num++; + ref QuestSequence reference71 = ref span89[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036424u, new Vector3(-641.93176f, 130f, -503.19678f), 612) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.CompleteQuest, 1036424u, new Vector3(-641.93176f, 130f, -503.19678f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; @@ -268479,13 +325483,16 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = "liza"; + Span span95 = CollectionsMarshal.AsSpan(list95); + index = 0; + span95[index] = "liza"; questRoot12.Author = list95; - num = 6; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - Span span28 = CollectionsMarshal.AsSpan(list96); - ref QuestSequence reference72 = ref span28[0]; + index = 6; + List list96 = new List(index); + CollectionsMarshal.SetCount(list96, index); + Span span96 = CollectionsMarshal.AsSpan(list96); + num = 0; + ref QuestSequence reference72 = ref span96[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -268493,21 +325500,26 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036426u, new Vector3(-642.3591f, 130f, -504.63113f), 612) + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036426u, new Vector3(-642.3591f, 130f, -504.63113f), 612) { StopDistance = 5f }; obj64.Steps = list97; reference72 = obj64; - ref QuestSequence reference73 = ref span28[1]; + num++; + ref QuestSequence reference73 = ref span96[num]; QuestSequence obj65 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1036428u, new Vector3(125.993774f, 12.9667015f, -249.37823f), 133) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.Interact, 1036428u, new Vector3(125.993774f, 12.9667015f, -249.37823f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -268518,7 +325530,8 @@ public static class AssemblyQuestLoader }; obj65.Steps = list98; reference73 = obj65; - ref QuestSequence reference74 = ref span28[2]; + num++; + ref QuestSequence reference74 = ref span96[num]; QuestSequence obj66 = new QuestSequence { Sequence = 2 @@ -268526,22 +325539,27 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1005577u, new Vector3(28.488525f, -3.6319542f, 210.62024f), 152) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.Interact, 1005577u, new Vector3(28.488525f, -3.6319542f, 210.62024f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj66.Steps = list99; reference74 = obj66; - ref QuestSequence reference75 = ref span28[3]; + num++; + ref QuestSequence reference75 = ref span96[num]; QuestSequence obj67 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -268552,7 +325570,8 @@ public static class AssemblyQuestLoader }; obj67.Steps = list100; reference75 = obj67; - ref QuestSequence reference76 = ref span28[4]; + num++; + ref QuestSequence reference76 = ref span96[num]; QuestSequence obj68 = new QuestSequence { Sequence = 4 @@ -268560,18 +325579,23 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj68.Steps = list101; reference76 = obj68; - ref QuestSequence reference77 = ref span28[5]; + num++; + ref QuestSequence reference77 = ref span96[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036436u, new Vector3(4.2266846f, -1.858f, 2.7922974f), 205); + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.CompleteQuest, 1036436u, new Vector3(4.2266846f, -1.858f, 2.7922974f), 205); obj69.Steps = list102; reference77 = obj69; questRoot12.QuestSequence = list96; @@ -268581,13 +325605,16 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "liza"; + Span span103 = CollectionsMarshal.AsSpan(list103); + index = 0; + span103[index] = "liza"; questRoot13.Author = list103; - num = 5; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span29 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference78 = ref span29[0]; + index = 5; + List list104 = new List(index); + CollectionsMarshal.SetCount(list104, index); + Span span104 = CollectionsMarshal.AsSpan(list104); + num = 0; + ref QuestSequence reference78 = ref span104[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 @@ -268595,24 +325622,30 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj70.Steps = list105; reference78 = obj70; - ref QuestSequence reference79 = ref span29[1]; + num++; + ref QuestSequence reference79 = ref span104[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1036439u, new Vector3(57.90796f, -8.556444f, 107.16406f), 132) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.Interact, 1036439u, new Vector3(57.90796f, -8.556444f, 107.16406f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj71.Steps = list106; reference79 = obj71; - ref QuestSequence reference80 = ref span29[2]; + num++; + ref QuestSequence reference80 = ref span104[num]; QuestSequence obj72 = new QuestSequence { Sequence = 2 @@ -268620,40 +325653,49 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list107)[0]; + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + ref QuestStep reference81 = ref span107[index2]; QuestStep obj73 = new QuestStep(EInteractionType.SinglePlayerDuty, 1036441u, new Vector3(32.60852f, -19.000002f, 103.34924f), 132) { StopDistance = 7f, Comment = "Death Unto Dawn" }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 3; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - Span span30 = CollectionsMarshal.AsSpan(list108); - span30[0] = "(Lunar Odin) AI doesn't pull Odin to start combat"; - span30[1] = "(Lunar Ravana) AI doesn't pull Ravana to start combat"; - span30[2] = "(Lunar Ravana) AI doesn't move out of directional parry directions"; + num4 = 3; + List list108 = new List(num4); + CollectionsMarshal.SetCount(list108, num4); + Span span108 = CollectionsMarshal.AsSpan(list108); + num3 = 0; + span108[num3] = "(Lunar Odin) AI doesn't pull Odin to start combat"; + num3++; + span108[num3] = "(Lunar Ravana) AI doesn't pull Ravana to start combat"; + num3++; + span108[num3] = "(Lunar Ravana) AI doesn't move out of directional parry directions"; singlePlayerDutyOptions.Notes = list108; obj73.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference81 = obj73; obj72.Steps = list107; reference80 = obj72; - ref QuestSequence reference82 = ref span29[3]; + num++; + ref QuestSequence reference82 = ref span104[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.None, null, null, 351) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.None, null, null, 351) { Comment = "Credits" }; obj74.Steps = list109; reference82 = obj74; - ref QuestSequence reference83 = ref span29[4]; + num++; + ref QuestSequence reference83 = ref span104[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -268661,7 +325703,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036444u, new Vector3(-1.6937866f, 0f, -4.135254f), 351); + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036444u, new Vector3(-1.6937866f, 0f, -4.135254f), 351); obj75.Steps = list110; reference83 = obj75; questRoot13.QuestSequence = list104; @@ -268671,21 +325715,26 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "kaiser"; + Span span111 = CollectionsMarshal.AsSpan(list111); + index = 0; + span111[index] = "kaiser"; questRoot14.Author = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span31 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference84 = ref span31[0]; + index = 3; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + Span span112 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference84 = ref span112[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039243u, new Vector3(-90.28766f, 20f, 85.55737f), 129) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039243u, new Vector3(-90.28766f, 20f, 85.55737f), 129) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -268699,7 +325748,8 @@ public static class AssemblyQuestLoader }; obj76.Steps = list113; reference84 = obj76; - ref QuestSequence reference85 = ref span31[1]; + num++; + ref QuestSequence reference85 = ref span112[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -268707,7 +325757,9 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1039265u, new Vector3(-27.542603f, 42.597717f, 163.7445f), 134) + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = new QuestStep(EInteractionType.Interact, 1039265u, new Vector3(-27.542603f, 42.597717f, 163.7445f), 134) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -268718,15 +325770,18 @@ public static class AssemblyQuestLoader }; obj77.Steps = list114; reference85 = obj77; - ref QuestSequence reference86 = ref span31[2]; + num++; + ref QuestSequence reference86 = ref span112[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list115)[0]; + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + ref QuestStep reference87 = ref span115[num2]; QuestStep obj79 = new QuestStep(EInteractionType.CompleteQuest, 1039265u, new Vector3(-27.542603f, 42.597717f, 163.7445f), 134) { StopDistance = 5f, @@ -268743,7 +325798,9 @@ public static class AssemblyQuestLoader num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = new DialogueChoice + Span span116 = CollectionsMarshal.AsSpan(list116); + num4 = 0; + span116[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "quest/040/AktKbb101_04067", @@ -268760,13 +325817,16 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "kaiser"; + Span span117 = CollectionsMarshal.AsSpan(list117); + index = 0; + span117[index] = "kaiser"; questRoot15.Author = list117; - num = 10; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span32 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference88 = ref span32[0]; + index = 10; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + Span span118 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference88 = ref span118[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 @@ -268774,8 +325834,9 @@ public static class AssemblyQuestLoader num2 = 4; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span33 = CollectionsMarshal.AsSpan(list119); - span33[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-25.441345f, 42.597717f, 162.65016f), 134) + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-25.441345f, 42.597717f, 162.65016f), 134) { StopDistance = 5f, Fly = true, @@ -268797,7 +325858,8 @@ public static class AssemblyQuestLoader } } }; - span33[1] = new QuestStep(EInteractionType.EquipItem, null, null, 134) + index2++; + span119[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 134) { Comment = "Try to Equip Stonegold Milpreves", ItemId = 35778u, @@ -268812,22 +325874,27 @@ public static class AssemblyQuestLoader } } }; - span33[2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 131); - span33[3] = new QuestStep(EInteractionType.AcceptQuest, 1039265u, new Vector3(-27.542603f, 42.597717f, 163.7445f), 134) + index2++; + span119[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 131); + index2++; + span119[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039265u, new Vector3(-27.542603f, 42.597717f, 163.7445f), 134) { StopDistance = 5f }; obj80.Steps = list119; reference88 = obj80; - ref QuestSequence reference89 = ref span32[1]; + num++; + ref QuestSequence reference89 = ref span118[num]; QuestSequence obj81 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1039244u, new Vector3(62.05847f, 207f, 49.332397f), 478) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.Interact, 1039244u, new Vector3(62.05847f, 207f, 49.332397f), 478) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -268841,7 +325908,8 @@ public static class AssemblyQuestLoader }; obj81.Steps = list120; reference89 = obj81; - ref QuestSequence reference90 = ref span32[2]; + num++; + ref QuestSequence reference90 = ref span118[num]; QuestSequence obj82 = new QuestSequence { Sequence = 2 @@ -268849,7 +325917,9 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 2011759u, new Vector3(20.065613f, 215.44214f, -108.171265f), 478) + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.Interact, 2011759u, new Vector3(20.065613f, 215.44214f, -108.171265f), 478) { StopDistance = 2f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -268863,15 +325933,18 @@ public static class AssemblyQuestLoader }; obj82.Steps = list121; reference90 = obj82; - ref QuestSequence reference91 = ref span32[3]; + num++; + ref QuestSequence reference91 = ref span118[num]; QuestSequence obj83 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1039246u, new Vector3(71.64111f, 213.03185f, -110.7348f), 478) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.Interact, 1039246u, new Vector3(71.64111f, 213.03185f, -110.7348f), 478) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -268885,7 +325958,8 @@ public static class AssemblyQuestLoader }; obj83.Steps = list122; reference91 = obj83; - ref QuestSequence reference92 = ref span32[4]; + num++; + ref QuestSequence reference92 = ref span118[num]; QuestSequence obj84 = new QuestSequence { Sequence = 4 @@ -268893,7 +325967,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1039247u, new Vector3(68.7113f, 212.84532f, -109.9718f), 478) + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.Interact, 1039247u, new Vector3(68.7113f, 212.84532f, -109.9718f), 478) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -268907,15 +325983,18 @@ public static class AssemblyQuestLoader }; obj84.Steps = list123; reference92 = obj84; - ref QuestSequence reference93 = ref span32[5]; + num++; + ref QuestSequence reference93 = ref span118[num]; QuestSequence obj85 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1039248u, new Vector3(-612.2988f, 146.86842f, 42.435303f), 399) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.Interact, 1039248u, new Vector3(-612.2988f, 146.86842f, 42.435303f), 399) { Fly = true, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -268938,7 +326017,8 @@ public static class AssemblyQuestLoader }; obj85.Steps = list124; reference93 = obj85; - ref QuestSequence reference94 = ref span32[6]; + num++; + ref QuestSequence reference94 = ref span118[num]; QuestSequence obj86 = new QuestSequence { Sequence = 6 @@ -268946,7 +326026,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - ref QuestStep reference95 = ref CollectionsMarshal.AsSpan(list125)[0]; + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + ref QuestStep reference95 = ref span125[index2]; QuestStep obj87 = new QuestStep(EInteractionType.SinglePlayerDuty, 1039248u, new Vector3(-612.2988f, 146.86842f, 42.435303f), 399) { StopDistance = 5f, @@ -268962,10 +326044,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = 399; + num4 = 1; + List list126 = new List(num4); + CollectionsMarshal.SetCount(list126, num4); + Span span126 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span126[num3] = 399; obj88.InTerritory = list126; skipConditions2.AetheryteShortcutIf = obj88; skipConditions2.AethernetShortcutIf = new SkipAetheryteCondition @@ -268976,19 +326060,23 @@ public static class AssemblyQuestLoader reference95 = obj87; obj86.Steps = list125; reference94 = obj86; - span32[7] = new QuestSequence + num++; + span118[num] = new QuestSequence { Sequence = 7 }; - ref QuestSequence reference96 = ref span32[8]; + num++; + ref QuestSequence reference96 = ref span118[num]; QuestSequence obj89 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list127)[0]; + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + ref QuestStep reference97 = ref span127[num2]; QuestStep obj90 = new QuestStep(EInteractionType.Interact, 1039248u, new Vector3(-612.2988f, 146.86842f, 42.435303f), 399) { StopDistance = 5f, @@ -269007,7 +326095,9 @@ public static class AssemblyQuestLoader num3 = 1; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = 399; + Span span128 = CollectionsMarshal.AsSpan(list128); + num4 = 0; + span128[num4] = 399; obj91.InTerritory = list128; skipConditions3.AetheryteShortcutIf = obj91; skipConditions3.AethernetShortcutIf = new SkipAetheryteCondition @@ -269018,7 +326108,8 @@ public static class AssemblyQuestLoader reference97 = obj90; obj89.Steps = list127; reference96 = obj89; - ref QuestSequence reference98 = ref span32[9]; + num++; + ref QuestSequence reference98 = ref span118[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -269026,7 +326117,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -269046,21 +326139,26 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "kaiser"; + Span span130 = CollectionsMarshal.AsSpan(list130); + index = 0; + span130[index] = "kaiser"; questRoot16.Author = list130; - num = 9; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span34 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference99 = ref span34[0]; + index = 9; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + Span span131 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference99 = ref span131[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -269074,7 +326172,8 @@ public static class AssemblyQuestLoader }; obj93.Steps = list132; reference99 = obj93; - ref QuestSequence reference100 = ref span34[1]; + num++; + ref QuestSequence reference100 = ref span131[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -269082,21 +326181,26 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1039250u, new Vector3(-29.251587f, -2.0576189f, -161.08954f), 141) + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.Interact, 1039250u, new Vector3(-29.251587f, -2.0576189f, -161.08954f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj94.Steps = list133; reference100 = obj94; - ref QuestSequence reference101 = ref span34[2]; + num++; + ref QuestSequence reference101 = ref span131[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1039256u, new Vector3(59.03711f, 2.9501379f, -225.97089f), 141) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.Interact, 1039256u, new Vector3(59.03711f, 2.9501379f, -225.97089f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -269110,7 +326214,8 @@ public static class AssemblyQuestLoader }; obj95.Steps = list134; reference101 = obj95; - ref QuestSequence reference102 = ref span34[3]; + num++; + ref QuestSequence reference102 = ref span131[num]; QuestSequence obj96 = new QuestSequence { Sequence = 3 @@ -269118,17 +326223,21 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - ref QuestStep reference103 = ref CollectionsMarshal.AsSpan(list135)[0]; + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + ref QuestStep reference103 = ref span135[index2]; QuestStep obj97 = new QuestStep(EInteractionType.Combat, null, new Vector3(177.52213f, -3.5157094f, -133.6495f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - CollectionsMarshal.AsSpan(list136)[0] = new ComplexCombatData + num4 = 1; + List list136 = new List(num4); + CollectionsMarshal.SetCount(list136, num4); + Span span136 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span136[num3] = new ComplexCombatData { DataId = 14031u, MinimumKillCount = 1u @@ -269144,15 +326253,18 @@ public static class AssemblyQuestLoader reference103 = obj97; obj96.Steps = list135; reference102 = obj96; - ref QuestSequence reference104 = ref span34[4]; + num++; + ref QuestSequence reference104 = ref span131[num]; QuestSequence obj98 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1039263u, new Vector3(185.25977f, -4.128851f, -126.78729f), 141) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span137[num2] = new QuestStep(EInteractionType.Interact, 1039263u, new Vector3(185.25977f, -4.128851f, -126.78729f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -269165,7 +326277,8 @@ public static class AssemblyQuestLoader }; obj98.Steps = list137; reference104 = obj98; - ref QuestSequence reference105 = ref span34[5]; + num++; + ref QuestSequence reference105 = ref span131[num]; QuestSequence obj99 = new QuestSequence { Sequence = 5 @@ -269173,7 +326286,9 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1039258u, new Vector3(122.72827f, 0.111846395f, -215.22852f), 141) + Span span138 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span138[index2] = new QuestStep(EInteractionType.Interact, 1039258u, new Vector3(122.72827f, 0.111846395f, -215.22852f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -269187,15 +326302,18 @@ public static class AssemblyQuestLoader }; obj99.Steps = list138; reference105 = obj99; - ref QuestSequence reference106 = ref span34[6]; + num++; + ref QuestSequence reference106 = ref span131[num]; QuestSequence obj100 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1039271u, new Vector3(122.819824f, 0.10310017f, -215.2591f), 141) + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + Span span139 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span139[num2] = new QuestStep(EInteractionType.Interact, 1039271u, new Vector3(122.819824f, 0.10310017f, -215.2591f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -269208,7 +326326,8 @@ public static class AssemblyQuestLoader }; obj100.Steps = list139; reference106 = obj100; - ref QuestSequence reference107 = ref span34[7]; + num++; + ref QuestSequence reference107 = ref span131[num]; QuestSequence obj101 = new QuestSequence { Sequence = 7 @@ -269216,7 +326335,9 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1039271u, new Vector3(122.819824f, 0.10310017f, -215.2591f), 141) + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.Interact, 1039271u, new Vector3(122.819824f, 0.10310017f, -215.2591f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -269229,15 +326350,18 @@ public static class AssemblyQuestLoader }; obj101.Steps = list140; reference107 = obj101; - ref QuestSequence reference108 = ref span34[8]; + num++; + ref QuestSequence reference108 = ref span131[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span141[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -269257,13 +326381,16 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - CollectionsMarshal.AsSpan(list142)[0] = "kaiser"; + Span span142 = CollectionsMarshal.AsSpan(list142); + index = 0; + span142[index] = "kaiser"; questRoot17.Author = list142; - num = 6; - List list143 = new List(num); - CollectionsMarshal.SetCount(list143, num); - Span span35 = CollectionsMarshal.AsSpan(list143); - ref QuestSequence reference109 = ref span35[0]; + index = 6; + List list143 = new List(index); + CollectionsMarshal.SetCount(list143, index); + Span span143 = CollectionsMarshal.AsSpan(list143); + num = 0; + ref QuestSequence reference109 = ref span143[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -269271,7 +326398,9 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list144)[0]; + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + ref QuestStep reference110 = ref span144[index2]; QuestStep obj104 = new QuestStep(EInteractionType.AcceptQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -269286,7 +326415,9 @@ public static class AssemblyQuestLoader num3 = 1; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - CollectionsMarshal.AsSpan(list145)[0] = new DialogueChoice + Span span145 = CollectionsMarshal.AsSpan(list145); + num4 = 0; + span145[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBB121_04070_Q1_000_000"), @@ -269296,21 +326427,25 @@ public static class AssemblyQuestLoader reference110 = obj104; obj103.Steps = list144; reference109 = obj103; - ref QuestSequence reference111 = ref span35[1]; + num++; + ref QuestSequence reference111 = ref span143[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1039274u, new Vector3(246.93665f, -24.995794f, 235.4314f), 138) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.Interact, 1039274u, new Vector3(246.93665f, -24.995794f, 235.4314f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj105.Steps = list146; reference111 = obj105; - ref QuestSequence reference112 = ref span35[2]; + num++; + ref QuestSequence reference112 = ref span143[num]; QuestSequence obj106 = new QuestSequence { Sequence = 2 @@ -269318,7 +326453,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1039275u, new Vector3(236.9878f, -24.792122f, 202.594f), 138) + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.Interact, 1039275u, new Vector3(236.9878f, -24.792122f, 202.594f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -269331,15 +326468,18 @@ public static class AssemblyQuestLoader }; obj106.Steps = list147; reference112 = obj106; - ref QuestSequence reference113 = ref span35[3]; + num++; + ref QuestSequence reference113 = ref span143[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Action, 1039276u, new Vector3(239.79541f, -24.721268f, 205.34058f), 138) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.Action, 1039276u, new Vector3(239.79541f, -24.721268f, 205.34058f), 138) { StopDistance = 6f, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -269354,7 +326494,8 @@ public static class AssemblyQuestLoader }; obj107.Steps = list148; reference113 = obj107; - ref QuestSequence reference114 = ref span35[4]; + num++; + ref QuestSequence reference114 = ref span143[num]; QuestSequence obj108 = new QuestSequence { Sequence = 4 @@ -269362,7 +326503,9 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1039279u, new Vector3(239.9176f, -24.724764f, 205.24902f), 138) + Span span149 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span149[index2] = new QuestStep(EInteractionType.Interact, 1039279u, new Vector3(239.9176f, -24.724764f, 205.24902f), 138) { StopDistance = 6f, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -269376,15 +326519,18 @@ public static class AssemblyQuestLoader }; obj108.Steps = list149; reference114 = obj108; - ref QuestSequence reference115 = ref span35[5]; + num++; + ref QuestSequence reference115 = ref span143[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -269404,13 +326550,16 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "kaiser"; + Span span151 = CollectionsMarshal.AsSpan(list151); + index = 0; + span151[index] = "kaiser"; questRoot18.Author = list151; - num = 7; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span36 = CollectionsMarshal.AsSpan(list152); - ref QuestSequence reference116 = ref span36[0]; + index = 7; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + Span span152 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref QuestSequence reference116 = ref span152[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -269418,7 +326567,9 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -269431,15 +326582,18 @@ public static class AssemblyQuestLoader }; obj110.Steps = list153; reference116 = obj110; - ref QuestSequence reference117 = ref span36[1]; + num++; + ref QuestSequence reference117 = ref span152[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.Interact, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -269452,7 +326606,8 @@ public static class AssemblyQuestLoader }; obj111.Steps = list154; reference117 = obj111; - ref QuestSequence reference118 = ref span36[2]; + num++; + ref QuestSequence reference118 = ref span152[num]; QuestSequence obj112 = new QuestSequence { Sequence = 2 @@ -269460,7 +326615,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - ref QuestStep reference119 = ref CollectionsMarshal.AsSpan(list155)[0]; + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + ref QuestStep reference119 = ref span155[index2]; QuestStep obj113 = new QuestStep(EInteractionType.Combat, null, new Vector3(-501.8255f, 147.54488f, -191.78416f), 399) { Fly = true, @@ -269471,10 +326628,12 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = new ComplexCombatData + num4 = 1; + List list156 = new List(num4); + CollectionsMarshal.SetCount(list156, num4); + Span span156 = CollectionsMarshal.AsSpan(list156); + num3 = 0; + span156[num3] = new ComplexCombatData { DataId = 14030u, MinimumKillCount = 1u @@ -269490,15 +326649,18 @@ public static class AssemblyQuestLoader reference119 = obj113; obj112.Steps = list155; reference118 = obj112; - ref QuestSequence reference120 = ref span36[3]; + num++; + ref QuestSequence reference120 = ref span152[num]; QuestSequence obj114 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Action, 1039282u, new Vector3(-504.87527f, 147.53165f, -199.17603f), 399) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span157[num2] = new QuestStep(EInteractionType.Action, 1039282u, new Vector3(-504.87527f, 147.53165f, -199.17603f), 399) { Comment = "This might get stuck if we are high level and killed the mob too fast?, we ended up locking ourselves on eukrasia aura, Diagnosis can't be casted!", AethernetShortcut = new AethernetShortcut @@ -269517,7 +326679,8 @@ public static class AssemblyQuestLoader }; obj114.Steps = list157; reference120 = obj114; - ref QuestSequence reference121 = ref span36[4]; + num++; + ref QuestSequence reference121 = ref span152[num]; QuestSequence obj115 = new QuestSequence { Sequence = 4 @@ -269525,7 +326688,9 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - ref QuestStep reference122 = ref CollectionsMarshal.AsSpan(list158)[0]; + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + ref QuestStep reference122 = ref span158[index2]; QuestStep obj116 = new QuestStep(EInteractionType.Combat, null, new Vector3(-383.24777f, 147.98257f, 52.931572f), 399) { Fly = true, @@ -269539,7 +326704,9 @@ public static class AssemblyQuestLoader num3 = 1; List list159 = new List(num3); CollectionsMarshal.SetCount(list159, num3); - CollectionsMarshal.AsSpan(list159)[0] = new ComplexCombatData + Span span159 = CollectionsMarshal.AsSpan(list159); + num4 = 0; + span159[num4] = new ComplexCombatData { DataId = 14029u, MinimumKillCount = 2u @@ -269555,15 +326722,18 @@ public static class AssemblyQuestLoader reference122 = obj116; obj115.Steps = list158; reference121 = obj115; - ref QuestSequence reference123 = ref span36[5]; + num++; + ref QuestSequence reference123 = ref span152[num]; QuestSequence obj117 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1039284u, new Vector3(-382.49792f, 147.96011f, 47.53174f), 399) + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.Interact, 1039284u, new Vector3(-382.49792f, 147.96011f, 47.53174f), 399) { Fly = false, AethernetShortcut = new AethernetShortcut @@ -269581,7 +326751,8 @@ public static class AssemblyQuestLoader }; obj117.Steps = list160; reference123 = obj117; - ref QuestSequence reference124 = ref span36[6]; + num++; + ref QuestSequence reference124 = ref span152[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -269589,7 +326760,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -269609,21 +326782,26 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "kaiser"; + Span span162 = CollectionsMarshal.AsSpan(list162); + index = 0; + span162[index] = "kaiser"; questRoot19.Author = list162; - num = 5; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span37 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference125 = ref span37[0]; + index = 5; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + Span span163 = CollectionsMarshal.AsSpan(list163); + num = 0; + ref QuestSequence reference125 = ref span163[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -269636,7 +326814,8 @@ public static class AssemblyQuestLoader }; obj119.Steps = list164; reference125 = obj119; - ref QuestSequence reference126 = ref span37[1]; + num++; + ref QuestSequence reference126 = ref span163[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -269644,7 +326823,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1039288u, new Vector3(212.9701f, 52.213486f, -787.50287f), 398) + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1039288u, new Vector3(212.9701f, 52.213486f, -787.50287f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, @@ -269658,15 +326839,18 @@ public static class AssemblyQuestLoader }; obj120.Steps = list165; reference126 = obj120; - ref QuestSequence reference127 = ref span37[2]; + num++; + ref QuestSequence reference127 = ref span163[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1039288u, new Vector3(212.9701f, 52.213486f, -787.50287f), 398) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.Interact, 1039288u, new Vector3(212.9701f, 52.213486f, -787.50287f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, @@ -269680,7 +326864,8 @@ public static class AssemblyQuestLoader }; obj121.Steps = list166; reference127 = obj121; - ref QuestSequence reference128 = ref span37[3]; + num++; + ref QuestSequence reference128 = ref span163[num]; QuestSequence obj122 = new QuestSequence { Sequence = 3 @@ -269688,18 +326873,23 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1039288u, new Vector3(212.9701f, 52.213486f, -787.50287f), 398); + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.Interact, 1039288u, new Vector3(212.9701f, 52.213486f, -787.50287f), 398); obj122.Steps = list167; reference128 = obj122; - ref QuestSequence reference129 = ref span37[4]; + num++; + ref QuestSequence reference129 = ref span163[num]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039280u, new Vector3(1.2054443f, 210.99997f, -16.494995f), 478) + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039280u, new Vector3(1.2054443f, 210.99997f, -16.494995f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -269719,13 +326909,16 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "liza"; + Span span169 = CollectionsMarshal.AsSpan(list169); + index = 0; + span169[index] = "liza"; questRoot20.Author = list169; - num = 4; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span38 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference130 = ref span38[0]; + index = 4; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + Span span170 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference130 = ref span170[num]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -269733,7 +326926,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036633u, new Vector3(82.871704f, 4.099994f, -131.30396f), 130) + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span171[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036633u, new Vector3(82.871704f, 4.099994f, -131.30396f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -269744,15 +326939,18 @@ public static class AssemblyQuestLoader }; obj124.Steps = list171; reference130 = obj124; - ref QuestSequence reference131 = ref span38[1]; + num++; + ref QuestSequence reference131 = ref span170[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1036634u, new Vector3(134.05042f, 4f, 11.428955f), 131) + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span172[num2] = new QuestStep(EInteractionType.Interact, 1036634u, new Vector3(134.05042f, 4f, 11.428955f), 131) { AethernetShortcut = new AethernetShortcut { @@ -269762,7 +326960,8 @@ public static class AssemblyQuestLoader }; obj125.Steps = list172; reference131 = obj125; - ref QuestSequence reference132 = ref span38[2]; + num++; + ref QuestSequence reference132 = ref span170[num]; QuestSequence obj126 = new QuestSequence { Sequence = 2 @@ -269770,12 +326969,16 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list173)[0]; + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + ref QuestStep reference133 = ref span173[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131); - num3 = 1; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - CollectionsMarshal.AsSpan(list174)[0] = new DialogueChoice + num4 = 1; + List list174 = new List(num4); + CollectionsMarshal.SetCount(list174, num4); + Span span174 = CollectionsMarshal.AsSpan(list174); + num3 = 0; + span174[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBB201_04073_Q5_000_000") @@ -269784,15 +326987,18 @@ public static class AssemblyQuestLoader reference133 = questStep4; obj126.Steps = list173; reference132 = obj126; - ref QuestSequence reference134 = ref span38[3]; + num++; + ref QuestSequence reference134 = ref span170[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list175)[0]; + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + ref QuestStep reference135 = ref span175[num2]; QuestStep obj128 = new QuestStep(EInteractionType.CompleteQuest, 1037014u, new Vector3(0.9002075f, 0.014807776f, -4.3793945f), 971) { StopDistance = 5f @@ -269800,7 +327006,9 @@ public static class AssemblyQuestLoader num3 = 1; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = new DialogueChoice + Span span176 = CollectionsMarshal.AsSpan(list176); + num4 = 0; + span176[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBB201_04073_Q4_000_000"), @@ -269818,13 +327026,16 @@ public static class AssemblyQuestLoader num = 1; List list177 = new List(num); CollectionsMarshal.SetCount(list177, num); - CollectionsMarshal.AsSpan(list177)[0] = "liza"; + Span span177 = CollectionsMarshal.AsSpan(list177); + index = 0; + span177[index] = "liza"; questRoot21.Author = list177; - num = 4; - List list178 = new List(num); - CollectionsMarshal.SetCount(list178, num); - Span span39 = CollectionsMarshal.AsSpan(list178); - ref QuestSequence reference136 = ref span39[0]; + index = 4; + List list178 = new List(index); + CollectionsMarshal.SetCount(list178, index); + Span span178 = CollectionsMarshal.AsSpan(list178); + num = 0; + ref QuestSequence reference136 = ref span178[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 @@ -269832,8 +327043,9 @@ public static class AssemblyQuestLoader num2 = 5; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span40 = CollectionsMarshal.AsSpan(list179); - ref QuestStep reference137 = ref span40[0]; + Span span179 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + ref QuestStep reference137 = ref span179[index2]; QuestStep obj130 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, @@ -269846,10 +327058,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - CollectionsMarshal.AsSpan(list180)[0] = 971; + num4 = 1; + List list180 = new List(num4); + CollectionsMarshal.SetCount(list180, num4); + Span span180 = CollectionsMarshal.AsSpan(list180); + num3 = 0; + span180[num3] = 971; skipStepConditions2.InTerritory = list180; skipConditions4.StepIf = skipStepConditions2; SkipAetheryteCondition obj131 = new SkipAetheryteCondition @@ -269859,14 +327073,17 @@ public static class AssemblyQuestLoader num3 = 2; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - Span span41 = CollectionsMarshal.AsSpan(list181); - span41[0] = 131; - span41[1] = 971; + Span span181 = CollectionsMarshal.AsSpan(list181); + num4 = 0; + span181[num4] = 131; + num4++; + span181[num4] = 971; obj131.InTerritory = list181; skipConditions4.AetheryteShortcutIf = obj131; obj130.SkipConditions = skipConditions4; reference137 = obj130; - span40[1] = new QuestStep(EInteractionType.EquipItem, null, null, 971) + index2++; + span179[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 971) { ItemId = 35760u, SkipConditions = new SkipConditions @@ -269880,7 +327097,8 @@ public static class AssemblyQuestLoader } } }; - span40[2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(0.13146536f, 0.01480782f, -0.7022889f), 971) + index2++; + span179[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(0.13146536f, 0.01480782f, -0.7022889f), 971) { ItemId = 35872u, SkipConditions = new SkipConditions @@ -269894,29 +327112,35 @@ public static class AssemblyQuestLoader } } }; - span40[3] = new QuestStep(EInteractionType.EquipRecommended, null, null, 971); - span40[4] = new QuestStep(EInteractionType.AcceptQuest, 1037014u, new Vector3(0.9002075f, 0.014807776f, -4.3793945f), 971) + index2++; + span179[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 971); + index2++; + span179[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037014u, new Vector3(0.9002075f, 0.014807776f, -4.3793945f), 971) { StopDistance = 5f }; obj129.Steps = list179; reference136 = obj129; - ref QuestSequence reference138 = ref span39[1]; + num++; + ref QuestSequence reference138 = ref span178[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1036636u, new Vector3(-264.91187f, -5.052193f, -371.38934f), 141) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = new QuestStep(EInteractionType.Interact, 1036636u, new Vector3(-264.91187f, -5.052193f, -371.38934f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj132.Steps = list182; reference138 = obj132; - ref QuestSequence reference139 = ref span39[2]; + num++; + ref QuestSequence reference139 = ref span178[num]; QuestSequence obj133 = new QuestSequence { Sequence = 2 @@ -269924,19 +327148,23 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1036637u, new Vector3(-263.84375f, -4.9409676f, -371.26727f), 141); + Span span183 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span183[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1036637u, new Vector3(-263.84375f, -4.9409676f, -371.26727f), 141); obj133.Steps = list183; reference139 = obj133; - ref QuestSequence reference140 = ref span39[3]; + num++; + ref QuestSequence reference140 = ref span178[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - Span span42 = CollectionsMarshal.AsSpan(list184); - span42[0] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) + index2 = 2; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span184[num2] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -269946,7 +327174,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971) + num2++; + span184[num2] = new QuestStep(EInteractionType.CompleteQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971) { NextQuestId = new QuestId(4075) }; @@ -269959,13 +327188,16 @@ public static class AssemblyQuestLoader num = 1; List list185 = new List(num); CollectionsMarshal.SetCount(list185, num); - CollectionsMarshal.AsSpan(list185)[0] = "liza"; + Span span185 = CollectionsMarshal.AsSpan(list185); + index = 0; + span185[index] = "liza"; questRoot22.Author = list185; - num = 5; - List list186 = new List(num); - CollectionsMarshal.SetCount(list186, num); - Span span43 = CollectionsMarshal.AsSpan(list186); - ref QuestSequence reference141 = ref span43[0]; + index = 5; + List list186 = new List(index); + CollectionsMarshal.SetCount(list186, index); + Span span186 = CollectionsMarshal.AsSpan(list186); + num = 0; + ref QuestSequence reference141 = ref span186[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -269973,8 +327205,9 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span44 = CollectionsMarshal.AsSpan(list187); - ref QuestStep reference142 = ref span44[0]; + Span span187 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + ref QuestStep reference142 = ref span187[index2]; QuestStep obj136 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, @@ -269987,10 +327220,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - CollectionsMarshal.AsSpan(list188)[0] = 971; + num4 = 1; + List list188 = new List(num4); + CollectionsMarshal.SetCount(list188, num4); + Span span188 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span188[num3] = 971; skipStepConditions3.InTerritory = list188; skipConditions5.StepIf = skipStepConditions3; SkipAetheryteCondition obj137 = new SkipAetheryteCondition @@ -270000,31 +327235,38 @@ public static class AssemblyQuestLoader num3 = 2; List list189 = new List(num3); CollectionsMarshal.SetCount(list189, num3); - Span span45 = CollectionsMarshal.AsSpan(list189); - span45[0] = 131; - span45[1] = 971; + Span span189 = CollectionsMarshal.AsSpan(list189); + num4 = 0; + span189[num4] = 131; + num4++; + span189[num4] = 971; obj137.InTerritory = list189; skipConditions5.AetheryteShortcutIf = obj137; obj136.SkipConditions = skipConditions5; reference142 = obj136; - span44[1] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); + index2++; + span187[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); obj135.Steps = list187; reference141 = obj135; - ref QuestSequence reference143 = ref span43[1]; + num++; + ref QuestSequence reference143 = ref span186[num]; QuestSequence obj138 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1036638u, new Vector3(-9.384338f, -3.0020049f, 58.54883f), 148) + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span190[num2] = new QuestStep(EInteractionType.Interact, 1036638u, new Vector3(-9.384338f, -3.0020049f, 58.54883f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj138.Steps = list190; reference143 = obj138; - ref QuestSequence reference144 = ref span43[2]; + num++; + ref QuestSequence reference144 = ref span186[num]; QuestSequence obj139 = new QuestSequence { Sequence = 2 @@ -270032,26 +327274,34 @@ public static class AssemblyQuestLoader num2 = 3; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - Span span46 = CollectionsMarshal.AsSpan(list191); - ref QuestStep reference145 = ref span46[0]; + Span span191 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + ref QuestStep reference145 = ref span191[index2]; QuestStep obj140 = new QuestStep(EInteractionType.UseItem, 2011694u, new Vector3(-151.20166f, 5.6915283f, -143.69421f), 148) { Fly = true, ItemId = 2003077u }; - num3 = 6; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - Span span47 = CollectionsMarshal.AsSpan(list192); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list192 = new List(num4); + CollectionsMarshal.SetCount(list192, num4); + Span span192 = CollectionsMarshal.AsSpan(list192); + num3 = 0; + span192[num3] = null; + num3++; + span192[num3] = null; + num3++; + span192[num3] = null; + num3++; + span192[num3] = null; + num3++; + span192[num3] = null; + num3++; + span192[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj140.CompletionQuestVariablesFlags = list192; reference145 = obj140; - ref QuestStep reference146 = ref span46[1]; + index2++; + ref QuestStep reference146 = ref span191[index2]; QuestStep obj141 = new QuestStep(EInteractionType.UseItem, 2011693u, new Vector3(-208.11786f, 4.0131226f, -22.110352f), 148) { Fly = true, @@ -270060,56 +327310,75 @@ public static class AssemblyQuestLoader num3 = 6; List list193 = new List(num3); CollectionsMarshal.SetCount(list193, num3); - Span span48 = CollectionsMarshal.AsSpan(list193); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span193 = CollectionsMarshal.AsSpan(list193); + num4 = 0; + span193[num4] = null; + num4++; + span193[num4] = null; + num4++; + span193[num4] = null; + num4++; + span193[num4] = null; + num4++; + span193[num4] = null; + num4++; + span193[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj141.CompletionQuestVariablesFlags = list193; reference146 = obj141; - ref QuestStep reference147 = ref span46[2]; + index2++; + ref QuestStep reference147 = ref span191[index2]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, 2011546u, new Vector3(-274.34198f, 19.821411f, 66.453f), 148) { Fly = true, ItemId = 2003077u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - CollectionsMarshal.AsSpan(list194)[0] = 14028u; + num4 = 1; + List list194 = new List(num4); + CollectionsMarshal.SetCount(list194, num4); + Span span194 = CollectionsMarshal.AsSpan(list194); + num3 = 0; + span194[num3] = 14028u; obj142.KillEnemyDataIds = list194; num3 = 6; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - Span span49 = CollectionsMarshal.AsSpan(list195); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span195 = CollectionsMarshal.AsSpan(list195); + num4 = 0; + span195[num4] = null; + num4++; + span195[num4] = null; + num4++; + span195[num4] = null; + num4++; + span195[num4] = null; + num4++; + span195[num4] = null; + num4++; + span195[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj142.CompletionQuestVariablesFlags = list195; reference147 = obj142; obj139.Steps = list191; reference144 = obj139; - ref QuestSequence reference148 = ref span43[3]; + num++; + ref QuestSequence reference148 = ref span186[num]; QuestSequence obj143 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1036638u, new Vector3(-9.384338f, -3.0020049f, 58.54883f), 148) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.Interact, 1036638u, new Vector3(-9.384338f, -3.0020049f, 58.54883f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj143.Steps = list196; reference148 = obj143; - ref QuestSequence reference149 = ref span43[4]; + num++; + ref QuestSequence reference149 = ref span186[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -270117,8 +327386,9 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span50 = CollectionsMarshal.AsSpan(list197); - span50[0] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -270128,12 +327398,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - ref QuestStep reference150 = ref span50[1]; + index2++; + ref QuestStep reference150 = ref span197[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.CompleteQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); - num3 = 1; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = new DialogueChoice + num4 = 1; + List list198 = new List(num4); + CollectionsMarshal.SetCount(list198, num4); + Span span198 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span198[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBB211_04075_Q1_000_000"), @@ -270151,22 +327424,26 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "liza"; + Span span199 = CollectionsMarshal.AsSpan(list199); + index = 0; + span199[index] = "liza"; questRoot23.Author = list199; - num = 6; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span51 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference151 = ref span51[0]; + index = 6; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + Span span200 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference151 = ref span200[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - Span span52 = CollectionsMarshal.AsSpan(list201); - ref QuestStep reference152 = ref span52[0]; + index2 = 2; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + ref QuestStep reference152 = ref span201[num2]; QuestStep obj146 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, @@ -270182,27 +327459,33 @@ public static class AssemblyQuestLoader num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = 971; + Span span202 = CollectionsMarshal.AsSpan(list202); + num4 = 0; + span202[num4] = 971; skipStepConditions4.InTerritory = list202; skipConditions6.StepIf = skipStepConditions4; SkipAetheryteCondition obj147 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 2; - List list203 = new List(num3); - CollectionsMarshal.SetCount(list203, num3); - Span span53 = CollectionsMarshal.AsSpan(list203); - span53[0] = 131; - span53[1] = 971; + num4 = 2; + List list203 = new List(num4); + CollectionsMarshal.SetCount(list203, num4); + Span span203 = CollectionsMarshal.AsSpan(list203); + num3 = 0; + span203[num3] = 131; + num3++; + span203[num3] = 971; obj147.InTerritory = list203; skipConditions6.AetheryteShortcutIf = obj147; obj146.SkipConditions = skipConditions6; reference152 = obj146; - span52[1] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); + num2++; + span201[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); obj145.Steps = list201; reference151 = obj145; - ref QuestSequence reference153 = ref span51[1]; + num++; + ref QuestSequence reference153 = ref span200[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -270210,7 +327493,9 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1036641u, new Vector3(-149.95044f, 14.004999f, 54.8562f), 130) + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span204[index2] = new QuestStep(EInteractionType.Interact, 1036641u, new Vector3(-149.95044f, 14.004999f, 54.8562f), 130) { AethernetShortcut = new AethernetShortcut { @@ -270220,15 +327505,18 @@ public static class AssemblyQuestLoader }; obj148.Steps = list204; reference153 = obj148; - ref QuestSequence reference154 = ref span51[2]; + num++; + ref QuestSequence reference154 = ref span200[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1036642u, new Vector3(-151.1712f, 15.982788f, 302.2965f), 141) + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + Span span205 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span205[num2] = new QuestStep(EInteractionType.Interact, 1036642u, new Vector3(-151.1712f, 15.982788f, 302.2965f), 141) { AethernetShortcut = new AethernetShortcut { @@ -270238,7 +327526,8 @@ public static class AssemblyQuestLoader }; obj149.Steps = list205; reference154 = obj149; - ref QuestSequence reference155 = ref span51[3]; + num++; + ref QuestSequence reference155 = ref span200[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -270246,26 +327535,32 @@ public static class AssemblyQuestLoader num2 = 2; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span54 = CollectionsMarshal.AsSpan(list206); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.87344f, -3.6581912f, 179.7406f), 141) + Span span206 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span206[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.87344f, -3.6581912f, 179.7406f), 141) { Fly = true }; - span54[1] = new QuestStep(EInteractionType.Interact, 1036644u, new Vector3(-68.10101f, -3.6581912f, 179.61389f), 141); + index2++; + span206[index2] = new QuestStep(EInteractionType.Interact, 1036644u, new Vector3(-68.10101f, -3.6581912f, 179.61389f), 141); obj150.Steps = list206; reference155 = obj150; - ref QuestSequence reference156 = ref span51[4]; + num++; + ref QuestSequence reference156 = ref span200[num]; QuestSequence obj151 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1040918u, new Vector3(-59.891724f, -3.6582541f, 147.72253f), 141); + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + Span span207 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + span207[num2] = new QuestStep(EInteractionType.Interact, 1040918u, new Vector3(-59.891724f, -3.6582541f, 147.72253f), 141); obj151.Steps = list207; reference156 = obj151; - ref QuestSequence reference157 = ref span51[5]; + num++; + ref QuestSequence reference157 = ref span200[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue @@ -270273,8 +327568,9 @@ public static class AssemblyQuestLoader num2 = 2; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span55 = CollectionsMarshal.AsSpan(list208); - span55[0] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) + Span span208 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span208[index2] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -270284,12 +327580,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - ref QuestStep reference158 = ref span55[1]; + index2++; + ref QuestStep reference158 = ref span208[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.CompleteQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); num3 = 1; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = new DialogueChoice + Span span209 = CollectionsMarshal.AsSpan(list209); + num4 = 0; + span209[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBB221_04076_Q2_000_000"), @@ -270307,22 +327606,26 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "liza"; + Span span210 = CollectionsMarshal.AsSpan(list210); + index = 0; + span210[index] = "liza"; questRoot24.Author = list210; - num = 9; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - Span span56 = CollectionsMarshal.AsSpan(list211); - ref QuestSequence reference159 = ref span56[0]; + index = 9; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + Span span211 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference159 = ref span211[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - Span span57 = CollectionsMarshal.AsSpan(list212); - ref QuestStep reference160 = ref span57[0]; + index2 = 2; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + ref QuestStep reference160 = ref span212[num2]; QuestStep obj154 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, @@ -270335,10 +327638,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = 971; + num4 = 1; + List list213 = new List(num4); + CollectionsMarshal.SetCount(list213, num4); + Span span213 = CollectionsMarshal.AsSpan(list213); + num3 = 0; + span213[num3] = 971; skipStepConditions5.InTerritory = list213; skipConditions7.StepIf = skipStepConditions5; SkipAetheryteCondition obj155 = new SkipAetheryteCondition @@ -270348,17 +327653,21 @@ public static class AssemblyQuestLoader num3 = 2; List list214 = new List(num3); CollectionsMarshal.SetCount(list214, num3); - Span span58 = CollectionsMarshal.AsSpan(list214); - span58[0] = 131; - span58[1] = 971; + Span span214 = CollectionsMarshal.AsSpan(list214); + num4 = 0; + span214[num4] = 131; + num4++; + span214[num4] = 971; obj155.InTerritory = list214; skipConditions7.AetheryteShortcutIf = obj155; obj154.SkipConditions = skipConditions7; reference160 = obj154; - span57[1] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); + num2++; + span212[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); obj153.Steps = list212; reference159 = obj153; - ref QuestSequence reference161 = ref span56[1]; + num++; + ref QuestSequence reference161 = ref span211[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 @@ -270366,32 +327675,38 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1036645u, new Vector3(-65.23236f, -2.0043268f, -170.06183f), 141) + Span span215 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span215[index2] = new QuestStep(EInteractionType.Interact, 1036645u, new Vector3(-65.23236f, -2.0043268f, -170.06183f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj156.Steps = list215; reference161 = obj156; - ref QuestSequence reference162 = ref span56[2]; + num++; + ref QuestSequence reference162 = ref span211[num]; QuestSequence obj157 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - Span span59 = CollectionsMarshal.AsSpan(list216); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(90.102264f, 0.33612514f, -274.36813f), 141) + index2 = 2; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + Span span216 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span216[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(90.102264f, 0.33612514f, -274.36813f), 141) { Fly = true }; - span59[1] = new QuestStep(EInteractionType.Interact, 1036646u, new Vector3(84.33655f, 0.27463394f, -279.86572f), 141) + num2++; + span216[num2] = new QuestStep(EInteractionType.Interact, 1036646u, new Vector3(84.33655f, 0.27463394f, -279.86572f), 141) { StopDistance = 5f }; obj157.Steps = list216; reference162 = obj157; - ref QuestSequence reference163 = ref span56[3]; + num++; + ref QuestSequence reference163 = ref span211[num]; QuestSequence obj158 = new QuestSequence { Sequence = 3 @@ -270399,37 +327714,45 @@ public static class AssemblyQuestLoader num2 = 2; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span60 = CollectionsMarshal.AsSpan(list217); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.258f, 1.9472685f, -165.4284f), 141) + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.258f, 1.9472685f, -165.4284f), 141) { Fly = true }; - span60[1] = new QuestStep(EInteractionType.Interact, 1036647u, new Vector3(154.89429f, 1.9564945f, -166.67432f), 141); + index2++; + span217[index2] = new QuestStep(EInteractionType.Interact, 1036647u, new Vector3(154.89429f, 1.9564945f, -166.67432f), 141); obj158.Steps = list217; reference163 = obj158; - ref QuestSequence reference164 = ref span56[4]; + num++; + ref QuestSequence reference164 = ref span211[num]; QuestSequence obj159 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list218)[0]; + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + ref QuestStep reference165 = ref span218[num2]; QuestStep obj160 = new QuestStep(EInteractionType.Combat, null, new Vector3(159.8781f, -0.6240455f, -154.44577f), 141) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = 14027u; + num4 = 1; + List list219 = new List(num4); + CollectionsMarshal.SetCount(list219, num4); + Span span219 = CollectionsMarshal.AsSpan(list219); + num3 = 0; + span219[num3] = 14027u; obj160.KillEnemyDataIds = list219; reference165 = obj160; obj159.Steps = list218; reference164 = obj159; - ref QuestSequence reference166 = ref span56[5]; + num++; + ref QuestSequence reference166 = ref span211[num]; QuestSequence obj161 = new QuestSequence { Sequence = 5 @@ -270437,24 +327760,30 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1036647u, new Vector3(154.89429f, 1.9564945f, -166.67432f), 141); + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span220[index2] = new QuestStep(EInteractionType.Interact, 1036647u, new Vector3(154.89429f, 1.9564945f, -166.67432f), 141); obj161.Steps = list220; reference166 = obj161; - ref QuestSequence reference167 = ref span56[6]; + num++; + ref QuestSequence reference167 = ref span211[num]; QuestSequence obj162 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1036654u, new Vector3(-136.61407f, 3.9261572f, 212.57336f), 141) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span221[num2] = new QuestStep(EInteractionType.Interact, 1036654u, new Vector3(-136.61407f, 3.9261572f, 212.57336f), 141) { Fly = true }; obj162.Steps = list221; reference167 = obj162; - ref QuestSequence reference168 = ref span56[7]; + num++; + ref QuestSequence reference168 = ref span211[num]; QuestSequence obj163 = new QuestSequence { Sequence = 7 @@ -270462,7 +327791,9 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) + Span span222 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span222[index2] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -270474,20 +327805,25 @@ public static class AssemblyQuestLoader }; obj163.Steps = list222; reference168 = obj163; - ref QuestSequence reference169 = ref span56[8]; + num++; + ref QuestSequence reference169 = ref span211[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list223)[0]; + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + Span span223 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + ref QuestStep reference170 = ref span223[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.CompleteQuest, 1036631u, new Vector3(2.7922974f, -2.7403547E-07f, -0.44250488f), 971); num3 = 1; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = new DialogueChoice + Span span224 = CollectionsMarshal.AsSpan(list224); + num4 = 0; + span224[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBB231_04077_Q2_000_000"), @@ -270505,13 +327841,16 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - CollectionsMarshal.AsSpan(list225)[0] = "liza"; + Span span225 = CollectionsMarshal.AsSpan(list225); + index = 0; + span225[index] = "liza"; questRoot25.Author = list225; - num = 3; - List list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - Span span61 = CollectionsMarshal.AsSpan(list226); - ref QuestSequence reference171 = ref span61[0]; + index = 3; + List list226 = new List(index); + CollectionsMarshal.SetCount(list226, index); + Span span226 = CollectionsMarshal.AsSpan(list226); + num = 0; + ref QuestSequence reference171 = ref span226[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 @@ -270519,8 +327858,9 @@ public static class AssemblyQuestLoader num2 = 2; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span62 = CollectionsMarshal.AsSpan(list227); - ref QuestStep reference172 = ref span62[0]; + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + ref QuestStep reference172 = ref span227[index2]; QuestStep obj166 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, @@ -270533,10 +327873,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - CollectionsMarshal.AsSpan(list228)[0] = 971; + num4 = 1; + List list228 = new List(num4); + CollectionsMarshal.SetCount(list228, num4); + Span span228 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span228[num3] = 971; skipStepConditions6.InTerritory = list228; skipConditions8.StepIf = skipStepConditions6; SkipAetheryteCondition obj167 = new SkipAetheryteCondition @@ -270546,32 +327888,39 @@ public static class AssemblyQuestLoader num3 = 2; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - Span span63 = CollectionsMarshal.AsSpan(list229); - span63[0] = 131; - span63[1] = 971; + Span span229 = CollectionsMarshal.AsSpan(list229); + num4 = 0; + span229[num4] = 131; + num4++; + span229[num4] = 971; obj167.InTerritory = list229; skipConditions8.AetheryteShortcutIf = obj167; obj166.SkipConditions = skipConditions8; reference172 = obj166; - span62[1] = new QuestStep(EInteractionType.AcceptQuest, 1036631u, new Vector3(2.7922974f, -2.7403547E-07f, -0.44250488f), 971); + index2++; + span227[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036631u, new Vector3(2.7922974f, -2.7403547E-07f, -0.44250488f), 971); obj165.Steps = list227; reference171 = obj165; - ref QuestSequence reference173 = ref span61[1]; + num++; + ref QuestSequence reference173 = ref span226[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2011548u, new Vector3(-92.57648f, 87.17468f, -737.8805f), 397) + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span230[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2011548u, new Vector3(-92.57648f, 87.17468f, -737.8805f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj168.Steps = list230; reference173 = obj168; - ref QuestSequence reference174 = ref span61[2]; + num++; + ref QuestSequence reference174 = ref span226[num]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue @@ -270579,7 +327928,9 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036630u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); + Span span231 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span231[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036630u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); obj169.Steps = list231; reference174 = obj169; questRoot25.QuestSequence = list226; @@ -270589,24 +327940,30 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - CollectionsMarshal.AsSpan(list232)[0] = "liza"; + Span span232 = CollectionsMarshal.AsSpan(list232); + index = 0; + span232[index] = "liza"; questRoot26.Author = list232; - num = 5; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - Span span64 = CollectionsMarshal.AsSpan(list233); - ref QuestSequence reference175 = ref span64[0]; + index = 5; + List list233 = new List(index); + CollectionsMarshal.SetCount(list233, index); + Span span233 = CollectionsMarshal.AsSpan(list233); + num = 0; + ref QuestSequence reference175 = ref span233[num]; QuestSequence obj170 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035529u, new Vector3(-7.156494f, -16f, 163.43933f), 886); + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + Span span234 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span234[num2] = new QuestStep(EInteractionType.AcceptQuest, 1035529u, new Vector3(-7.156494f, -16f, 163.43933f), 886); obj170.Steps = list234; reference175 = obj170; - ref QuestSequence reference176 = ref span64[1]; + num++; + ref QuestSequence reference176 = ref span233[num]; QuestSequence obj171 = new QuestSequence { Sequence = 1 @@ -270614,7 +327971,9 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1036487u, new Vector3(-93.15637f, 0f, -129.56439f), 886) + Span span235 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span235[index2] = new QuestStep(EInteractionType.Interact, 1036487u, new Vector3(-93.15637f, 0f, -129.56439f), 886) { AethernetShortcut = new AethernetShortcut { @@ -270624,23 +327983,27 @@ public static class AssemblyQuestLoader }; obj171.Steps = list235; reference176 = obj171; - ref QuestSequence reference177 = ref span64[2]; + num++; + ref QuestSequence reference177 = ref span233[num]; QuestSequence obj172 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - Span span65 = CollectionsMarshal.AsSpan(list236); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.73003f, 0f, -136.48384f), 886); - span65[1] = new QuestStep(EInteractionType.Interact, 1036127u, new Vector3(-116.92993f, 0f, -137.31598f), 886) + index2 = 2; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.73003f, 0f, -136.48384f), 886); + num2++; + span236[num2] = new QuestStep(EInteractionType.Interact, 1036127u, new Vector3(-116.92993f, 0f, -137.31598f), 886) { StopDistance = 5f }; obj172.Steps = list236; reference177 = obj172; - ref QuestSequence reference178 = ref span64[3]; + num++; + ref QuestSequence reference178 = ref span233[num]; QuestSequence obj173 = new QuestSequence { Sequence = 3 @@ -270648,7 +328011,9 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1036488u, new Vector3(140.91699f, -40f, 158.55652f), 886) + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span237[index2] = new QuestStep(EInteractionType.Interact, 1036488u, new Vector3(140.91699f, -40f, 158.55652f), 886) { AethernetShortcut = new AethernetShortcut { @@ -270658,15 +328023,18 @@ public static class AssemblyQuestLoader }; obj173.Steps = list237; reference178 = obj173; - ref QuestSequence reference179 = ref span64[4]; + num++; + ref QuestSequence reference179 = ref span233[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036490u, new Vector3(-114.39691f, 0f, -137.31598f), 886) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.CompleteQuest, 1036490u, new Vector3(-114.39691f, 0f, -137.31598f), 886) { AethernetShortcut = new AethernetShortcut { @@ -270683,13 +328051,16 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - CollectionsMarshal.AsSpan(list239)[0] = "Censored"; + Span span239 = CollectionsMarshal.AsSpan(list239); + index = 0; + span239[index] = "Censored"; questRoot27.Author = list239; - num = 3; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - Span span66 = CollectionsMarshal.AsSpan(list240); - ref QuestSequence reference180 = ref span66[0]; + index = 3; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + Span span240 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference180 = ref span240[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -270697,8 +328068,9 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span67 = CollectionsMarshal.AsSpan(list241); - ref QuestStep reference181 = ref span67[0]; + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + ref QuestStep reference181 = ref span241[index2]; QuestStep obj176 = new QuestStep(EInteractionType.None, null, null, 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -270710,15 +328082,18 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 1; - List list242 = new List(num3); - CollectionsMarshal.SetCount(list242, num3); - CollectionsMarshal.AsSpan(list242)[0] = 154; + num4 = 1; + List list242 = new List(num4); + CollectionsMarshal.SetCount(list242, num4); + Span span242 = CollectionsMarshal.AsSpan(list242); + num3 = 0; + span242[num3] = 154; skipStepConditions7.InTerritory = list242; skipConditions9.StepIf = skipStepConditions7; obj176.SkipConditions = skipConditions9; reference181 = obj176; - span67[1] = new QuestStep(EInteractionType.AcceptQuest, 1036127u, new Vector3(-116.92993f, 0f, -137.31598f), 886) + index2++; + span241[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036127u, new Vector3(-116.92993f, 0f, -137.31598f), 886) { AethernetShortcut = new AethernetShortcut { @@ -270728,18 +328103,22 @@ public static class AssemblyQuestLoader }; obj175.Steps = list241; reference180 = obj175; - ref QuestSequence reference182 = ref span66[1]; + num++; + ref QuestSequence reference182 = ref span240[num]; QuestSequence obj177 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1036493u, new Vector3(-60.227356f, -4.146993E-05f, -16.06781f), 886); + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + Span span243 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span243[num2] = new QuestStep(EInteractionType.Interact, 1036493u, new Vector3(-60.227356f, -4.146993E-05f, -16.06781f), 886); obj177.Steps = list243; reference182 = obj177; - ref QuestSequence reference183 = ref span66[2]; + num++; + ref QuestSequence reference183 = ref span240[num]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue @@ -270747,7 +328126,9 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036494u, new Vector3(-98.77167f, 0f, -131.51752f), 886); + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span244[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036494u, new Vector3(-98.77167f, 0f, -131.51752f), 886); obj178.Steps = list244; reference183 = obj178; questRoot27.QuestSequence = list240; @@ -270761,13 +328142,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "Censored"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "Censored"; questRoot.Author = list; - num = 9; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 9; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -270775,7 +328159,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1038397u, new Vector3(-178.97314f, 4.05f, -74.69299f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -270788,7 +328174,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA101_04102_Q1_000_000"), @@ -270798,21 +328186,25 @@ public static class AssemblyQuestLoader reference2 = obj2; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1038398u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span5[num2] = new QuestStep(EInteractionType.Interact, 1038398u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -270820,30 +328212,36 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1002780u, new Vector3(-89.79938f, -45.331417f, 195.88f), 154) + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.Interact, 1002780u, new Vector3(-89.79938f, -45.331417f, 195.88f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span2 = CollectionsMarshal.AsSpan(list7); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-85.105965f, -46.544624f, 210.43315f), 154); - span2[1] = new QuestStep(EInteractionType.Interact, 1038405u, new Vector3(-42.46588f, -40.94998f, 171.06885f), 154) + index2 = 2; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-85.105965f, -46.544624f, 210.43315f), 154); + num2++; + span7[num2] = new QuestStep(EInteractionType.Interact, 1038405u, new Vector3(-42.46588f, -40.94998f, 171.06885f), 154) { Fly = true, Land = true }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -270851,36 +328249,44 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1038408u, new Vector3(55.039307f, -39.472065f, 234.72949f), 154) + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.Interact, 1038408u, new Vector3(55.039307f, -39.472065f, 234.72949f), 154) { Fly = true, Land = true }; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[5]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list9)[0]; + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + ref QuestStep reference8 = ref span9[num2]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, null, new Vector3(201.86879f, -27.880434f, 171.45041f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = 14016u; + index3 = 1; + List list10 = new List(index3); + CollectionsMarshal.SetCount(list10, index3); + Span span10 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span10[num3] = 14016u; obj8.KillEnemyDataIds = list10; reference8 = obj8; obj7.Steps = list9; reference7 = obj7; - ref QuestSequence reference9 = ref span[6]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 6 @@ -270888,25 +328294,31 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1038410u, new Vector3(201.49536f, -27.91251f, 171.61816f), 154); + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.Interact, 1038410u, new Vector3(201.49536f, -27.91251f, 171.61816f), 154); obj9.Steps = list11; reference9 = obj9; - ref QuestSequence reference10 = ref span[7]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1038403u, new Vector3(-43.442444f, -40.94998f, 172.22852f), 154) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.Interact, 1038403u, new Vector3(-43.442444f, -40.94998f, 172.22852f), 154) { Fly = true, Land = true }; obj10.Steps = list12; reference10 = obj10; - ref QuestSequence reference11 = ref span[8]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -270914,7 +328326,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(4103) @@ -270928,21 +328342,26 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "Censored"; + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = "Censored"; questRoot2.Author = list14; - num = 9; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - Span span3 = CollectionsMarshal.AsSpan(list15); - ref QuestSequence reference12 = ref span3[0]; + index = 9; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference12 = ref span15[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -270955,7 +328374,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list16; reference12 = obj12; - ref QuestSequence reference13 = ref span3[1]; + num++; + ref QuestSequence reference13 = ref span15[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -270963,25 +328383,31 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1038412u, new Vector3(-150.98804f, 1.7044317f, 220.99634f), 153) + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.Interact, 1038412u, new Vector3(-150.98804f, 1.7044317f, 220.99634f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj13.Steps = list17; reference13 = obj13; - ref QuestSequence reference14 = ref span3[2]; + num++; + ref QuestSequence reference14 = ref span15[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1038414u, new Vector3(-191.05823f, 15.544372f, 313.71008f), 153); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.Interact, 1038414u, new Vector3(-191.05823f, 15.544372f, 313.71008f), 153); obj14.Steps = list18; reference14 = obj14; - ref QuestSequence reference15 = ref span3[3]; + num++; + ref QuestSequence reference15 = ref span15[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 @@ -270989,50 +328415,69 @@ public static class AssemblyQuestLoader num2 = 3; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span4 = CollectionsMarshal.AsSpan(list19); - ref QuestStep reference16 = ref span4[0]; + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref QuestStep reference16 = ref span19[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1038418u, new Vector3(-201.40387f, 20.41187f, 337.45325f), 153); num3 = 6; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span5 = CollectionsMarshal.AsSpan(list20); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span20 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = null; + index3++; + span20[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list20; reference16 = questStep; - ref QuestStep reference17 = ref span4[1]; + index2++; + ref QuestStep reference17 = ref span19[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1038417u, new Vector3(-200.70197f, 20.729956f, 361.07422f), 153); - num3 = 6; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - Span span6 = CollectionsMarshal.AsSpan(list21); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list21 = new List(index3); + CollectionsMarshal.SetCount(list21, index3); + Span span21 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = null; + num3++; + span21[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list21; reference17 = questStep2; - span4[2] = new QuestStep(EInteractionType.Interact, 1038416u, new Vector3(-238.30017f, 21.68142f, 356.83215f), 153); + index2++; + span19[index2] = new QuestStep(EInteractionType.Interact, 1038416u, new Vector3(-238.30017f, 21.68142f, 356.83215f), 153); obj15.Steps = list19; reference15 = obj15; - ref QuestSequence reference18 = ref span3[4]; + num++; + ref QuestSequence reference18 = ref span15[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1038415u, new Vector3(-230.88434f, 21.464617f, 343.70935f), 153); + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.Interact, 1038415u, new Vector3(-230.88434f, 21.464617f, 343.70935f), 153); obj16.Steps = list22; reference18 = obj16; - ref QuestSequence reference19 = ref span3[5]; + num++; + ref QuestSequence reference19 = ref span15[num]; QuestSequence obj17 = new QuestSequence { Sequence = 5 @@ -271040,21 +328485,26 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1038419u, new Vector3(-267.56696f, 1.8750894f, 675.6847f), 153) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.Interact, 1038419u, new Vector3(-267.56696f, 1.8750894f, 675.6847f), 153) { Fly = true }; obj17.Steps = list23; reference19 = obj17; - ref QuestSequence reference20 = ref span3[6]; + num++; + ref QuestSequence reference20 = ref span15[num]; QuestSequence obj18 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list24)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference21 = ref span24[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(-264.79346f, 2.2244208f, 673.19916f), 153) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -271062,12 +328512,15 @@ public static class AssemblyQuestLoader num3 = 1; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = 14015u; + Span span25 = CollectionsMarshal.AsSpan(list25); + index3 = 0; + span25[index3] = 14015u; obj19.KillEnemyDataIds = list25; reference21 = obj19; obj18.Steps = list24; reference20 = obj18; - ref QuestSequence reference22 = ref span3[7]; + num++; + ref QuestSequence reference22 = ref span15[num]; QuestSequence obj20 = new QuestSequence { Sequence = 7 @@ -271075,18 +328528,23 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1038432u, new Vector3(-273.7011f, 1.919117f, 669.7031f), 153); + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.Interact, 1038432u, new Vector3(-273.7011f, 1.919117f, 669.7031f), 153); obj20.Steps = list26; reference22 = obj20; - ref QuestSequence reference23 = ref span3[8]; + num++; + ref QuestSequence reference23 = ref span15[num]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(4104) @@ -271100,13 +328558,16 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = "Censored"; + Span span28 = CollectionsMarshal.AsSpan(list28); + index = 0; + span28[index] = "Censored"; questRoot3.Author = list28; - num = 6; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span7 = CollectionsMarshal.AsSpan(list29); - ref QuestSequence reference24 = ref span7[0]; + index = 6; + List list29 = new List(index); + CollectionsMarshal.SetCount(list29, index); + Span span29 = CollectionsMarshal.AsSpan(list29); + num = 0; + ref QuestSequence reference24 = ref span29[num]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -271114,7 +328575,9 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list30)[0]; + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + ref QuestStep reference25 = ref span30[index2]; QuestStep obj23 = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -271126,10 +328589,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = new DialogueChoice + index3 = 1; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA121_04104_Q0_000_000"), @@ -271139,15 +328604,18 @@ public static class AssemblyQuestLoader reference25 = obj23; obj22.Steps = list30; reference24 = obj22; - ref QuestSequence reference26 = ref span7[1]; + num++; + ref QuestSequence reference26 = ref span29[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list32)[0]; + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + ref QuestStep reference27 = ref span32[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, 2011735u, new Vector3(-314.4427f, 61.05127f, -141.10028f), 148) { Fly = true, @@ -271157,12 +328625,15 @@ public static class AssemblyQuestLoader num3 = 1; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - CollectionsMarshal.AsSpan(list33)[0] = 14013u; + Span span33 = CollectionsMarshal.AsSpan(list33); + index3 = 0; + span33[index3] = 14013u; obj25.KillEnemyDataIds = list33; reference27 = obj25; obj24.Steps = list32; reference26 = obj24; - ref QuestSequence reference28 = ref span7[2]; + num++; + ref QuestSequence reference28 = ref span29[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 @@ -271170,71 +328641,94 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 2011730u, new Vector3(-314.4427f, 61.05127f, -141.10028f), 148); + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.Interact, 2011730u, new Vector3(-314.4427f, 61.05127f, -141.10028f), 148); obj26.Steps = list34; reference28 = obj26; - ref QuestSequence reference29 = ref span7[3]; + num++; + ref QuestSequence reference29 = ref span29[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span8 = CollectionsMarshal.AsSpan(list35); - ref QuestStep reference30 = ref span8[0]; + index2 = 3; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + ref QuestStep reference30 = ref span35[num2]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, 2011733u, new Vector3(-408.9876f, 61.631104f, -125.90222f), 148) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = 14014u; + index3 = 1; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + Span span36 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span36[num3] = 14014u; obj28.KillEnemyDataIds = list36; num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span9 = CollectionsMarshal.AsSpan(list37); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span37 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj28.CompletionQuestVariablesFlags = list37; reference30 = obj28; - ref QuestStep reference31 = ref span8[1]; + num2++; + ref QuestStep reference31 = ref span35[num2]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, 2011732u, new Vector3(-343.2517f, 60.105225f, -72.46515f), 148) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = 14014u; + index3 = 1; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = 14014u; obj29.KillEnemyDataIds = list38; num3 = 6; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - Span span10 = CollectionsMarshal.AsSpan(list39); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span39 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj29.CompletionQuestVariablesFlags = list39; reference31 = obj29; - span8[2] = new QuestStep(EInteractionType.Interact, 2011731u, new Vector3(-231.46417f, 56.71765f, -93.614136f), 148) + num2++; + span35[num2] = new QuestStep(EInteractionType.Interact, 2011731u, new Vector3(-231.46417f, 56.71765f, -93.614136f), 148) { Fly = true }; obj27.Steps = list35; reference29 = obj27; - ref QuestSequence reference32 = ref span7[4]; + num++; + ref QuestSequence reference32 = ref span29[num]; QuestSequence obj30 = new QuestSequence { Sequence = 4 @@ -271242,21 +328736,26 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 2011747u, new Vector3(-310.71948f, 21.194763f, 173.66284f), 148) + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = new QuestStep(EInteractionType.Interact, 2011747u, new Vector3(-310.71948f, 21.194763f, 173.66284f), 148) { Fly = true }; obj30.Steps = list40; reference32 = obj30; - ref QuestSequence reference33 = ref span7[5]; + num++; + ref QuestSequence reference33 = ref span29[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { NextQuestId = new QuestId(4105) }; @@ -271269,13 +328768,16 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "Censored"; + Span span42 = CollectionsMarshal.AsSpan(list42); + index = 0; + span42[index] = "Censored"; questRoot4.Author = list42; - num = 7; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span11 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference34 = ref span11[0]; + index = 7; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + Span span43 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference34 = ref span43[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -271283,7 +328785,9 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -271296,34 +328800,40 @@ public static class AssemblyQuestLoader }; obj32.Steps = list44; reference34 = obj32; - ref QuestSequence reference35 = ref span11[1]; + num++; + ref QuestSequence reference35 = ref span43[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - Span span12 = CollectionsMarshal.AsSpan(list45); - ref QuestStep reference36 = ref span12[0]; + index2 = 2; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + ref QuestStep reference36 = ref span45[num2]; QuestStep obj34 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-104.6922f, 1.2393801f, 8.405229f), 132) { TargetTerritoryId = (ushort)133 }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = 133; + index3 = 1; + List list46 = new List(index3); + CollectionsMarshal.SetCount(list46, index3); + Span span46 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span46[num3] = 133; skipStepConditions.InTerritory = list46; skipConditions.StepIf = skipStepConditions; obj34.SkipConditions = skipConditions; reference36 = obj34; - span12[1] = new QuestStep(EInteractionType.Interact, 1038436u, new Vector3(-236.68274f, -4f, 1.6326294f), 133); + num2++; + span45[num2] = new QuestStep(EInteractionType.Interact, 1038436u, new Vector3(-236.68274f, -4f, 1.6326294f), 133); obj33.Steps = list45; reference35 = obj33; - ref QuestSequence reference37 = ref span11[2]; + num++; + ref QuestSequence reference37 = ref span43[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -271331,28 +328841,34 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1038437u, new Vector3(-305.5924f, 13.1841545f, -49.94281f), 152) + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.Interact, 1038437u, new Vector3(-305.5924f, 13.1841545f, -49.94281f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj35.Steps = list47; reference37 = obj35; - ref QuestSequence reference38 = ref span11[3]; + num++; + ref QuestSequence reference38 = ref span43[num]; QuestSequence obj36 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1038439u, new Vector3(-220.78284f, 29.984009f, 64.286255f), 152) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.Interact, 1038439u, new Vector3(-220.78284f, 29.984009f, 64.286255f), 152) { Fly = true }; obj36.Steps = list48; reference38 = obj36; - ref QuestSequence reference39 = ref span11[4]; + num++; + ref QuestSequence reference39 = ref span43[num]; QuestSequence obj37 = new QuestSequence { Sequence = 4 @@ -271360,7 +328876,9 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list49)[0]; + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + ref QuestStep reference40 = ref span49[index2]; QuestStep obj38 = new QuestStep(EInteractionType.Combat, 2011736u, new Vector3(-116.92993f, -3.3417358f, 190.14258f), 152) { Fly = true, @@ -271369,23 +328887,29 @@ public static class AssemblyQuestLoader num3 = 1; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = 14012u; + Span span50 = CollectionsMarshal.AsSpan(list50); + index3 = 0; + span50[index3] = 14012u; obj38.KillEnemyDataIds = list50; reference40 = obj38; obj37.Steps = list49; reference39 = obj37; - ref QuestSequence reference41 = ref span11[5]; + num++; + ref QuestSequence reference41 = ref span43[num]; QuestSequence obj39 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1038440u, new Vector3(-122.08746f, -3.6656997f, 185.25977f), 152); + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.Interact, 1038440u, new Vector3(-122.08746f, -3.6656997f, 185.25977f), 152); obj39.Steps = list51; reference41 = obj39; - ref QuestSequence reference42 = ref span11[6]; + num++; + ref QuestSequence reference42 = ref span43[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -271393,7 +328917,9 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(4106) @@ -271407,21 +328933,26 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "Censored"; + Span span53 = CollectionsMarshal.AsSpan(list53); + index = 0; + span53[index] = "Censored"; questRoot5.Author = list53; - num = 8; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span13 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference43 = ref span13[0]; + index = 8; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + Span span54 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference43 = ref span54[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -271434,7 +328965,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list55; reference43 = obj41; - ref QuestSequence reference44 = ref span13[1]; + num++; + ref QuestSequence reference44 = ref span54[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -271442,33 +328974,41 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list56)[0]; + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + ref QuestStep reference45 = ref span56[index2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, 2011737u, new Vector3(335.8053f, -0.5340576f, -179.85815f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = 14011u; + index3 = 1; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + Span span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span57[num3] = 14011u; obj43.KillEnemyDataIds = list57; reference45 = obj43; obj42.Steps = list56; reference44 = obj42; - ref QuestSequence reference46 = ref span13[2]; + num++; + ref QuestSequence reference46 = ref span54[num]; QuestSequence obj44 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1038442u, new Vector3(336.56824f, -1.022724f, -173.63245f), 148); + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.Interact, 1038442u, new Vector3(336.56824f, -1.022724f, -173.63245f), 148); obj44.Steps = list58; reference46 = obj44; - ref QuestSequence reference47 = ref span13[3]; + num++; + ref QuestSequence reference47 = ref span54[num]; QuestSequence obj45 = new QuestSequence { Sequence = 3 @@ -271476,7 +329016,9 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list59)[0]; + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + ref QuestStep reference48 = ref span59[index2]; QuestStep obj46 = new QuestStep(EInteractionType.Combat, 2011738u, new Vector3(256.8551f, 15.823547f, -109.51398f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -271485,23 +329027,29 @@ public static class AssemblyQuestLoader num3 = 1; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = 14010u; + Span span60 = CollectionsMarshal.AsSpan(list60); + index3 = 0; + span60[index3] = 14010u; obj46.KillEnemyDataIds = list60; reference48 = obj46; obj45.Steps = list59; reference47 = obj45; - ref QuestSequence reference49 = ref span13[4]; + num++; + ref QuestSequence reference49 = ref span54[num]; QuestSequence obj47 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1038444u, new Vector3(250.87354f, 15.565201f, -107.83557f), 153); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.Interact, 1038444u, new Vector3(250.87354f, 15.565201f, -107.83557f), 153); obj47.Steps = list61; reference49 = obj47; - ref QuestSequence reference50 = ref span13[5]; + num++; + ref QuestSequence reference50 = ref span54[num]; QuestSequence obj48 = new QuestSequence { Sequence = 5 @@ -271509,7 +329057,9 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1038446u, new Vector3(325.73438f, -5.688218f, -97.76465f), 154) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.Interact, 1038446u, new Vector3(325.73438f, -5.688218f, -97.76465f), 154) { Fly = true, Land = true, @@ -271517,22 +329067,26 @@ public static class AssemblyQuestLoader }; obj48.Steps = list62; reference50 = obj48; - ref QuestSequence reference51 = ref span13[6]; + num++; + ref QuestSequence reference51 = ref span54[num]; QuestSequence obj49 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1039197u, new Vector3(-311.39087f, 20.991789f, 175.12769f), 148) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.Interact, 1039197u, new Vector3(-311.39087f, 20.991789f, 175.12769f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj49.Steps = list63; reference51 = obj49; - ref QuestSequence reference52 = ref span13[7]; + num++; + ref QuestSequence reference52 = ref span54[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue @@ -271540,7 +329094,9 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { NextQuestId = new QuestId(4107) }; @@ -271553,21 +329109,26 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "Censored"; + Span span65 = CollectionsMarshal.AsSpan(list65); + index = 0; + span65[index] = "Censored"; questRoot6.Author = list65; - num = 8; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span14 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference53 = ref span14[0]; + index = 8; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + Span span66 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference53 = ref span66[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -271580,7 +329141,8 @@ public static class AssemblyQuestLoader }; obj51.Steps = list67; reference53 = obj51; - ref QuestSequence reference54 = ref span14[1]; + num++; + ref QuestSequence reference54 = ref span66[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -271588,34 +329150,41 @@ public static class AssemblyQuestLoader num2 = 2; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span15 = CollectionsMarshal.AsSpan(list68); - ref QuestStep reference55 = ref span15[0]; + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + ref QuestStep reference55 = ref span68[index2]; QuestStep obj53 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(11.687102f, 1.2724965f, -15.995083f), 132) { TargetTerritoryId = (ushort)133 }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = 133; + index3 = 1; + List list69 = new List(index3); + CollectionsMarshal.SetCount(list69, index3); + Span span69 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span69[num3] = 133; skipStepConditions2.InTerritory = list69; skipConditions2.StepIf = skipStepConditions2; obj53.SkipConditions = skipConditions2; reference55 = obj53; - span15[1] = new QuestStep(EInteractionType.Interact, 1038452u, new Vector3(16.250854f, 6.9444046f, -109.544556f), 133); + index2++; + span68[index2] = new QuestStep(EInteractionType.Interact, 1038452u, new Vector3(16.250854f, 6.9444046f, -109.544556f), 133); obj52.Steps = list68; reference54 = obj52; - ref QuestSequence reference56 = ref span14[2]; + num++; + ref QuestSequence reference56 = ref span66[num]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list70)[0]; + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref QuestStep reference57 = ref span70[num2]; QuestStep obj55 = new QuestStep(EInteractionType.SinglePlayerDuty, 1038454u, new Vector3(-311.39087f, 20.991789f, 175.12769f), 148) { Fly = true, @@ -271625,13 +329194,19 @@ public static class AssemblyQuestLoader num3 = 6; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span16 = CollectionsMarshal.AsSpan(list71); - span16[0] = "There is currently no BossMod Supported Bosses Logic."; - span16[1] = "BossMod doesn't use Interject."; - span16[2] = "BossMod can't handle QuickButton Actions yet."; - span16[3] = "BossMod doesn't use Healing Actions for Tanks."; - span16[4] = "It will need alot of manual work"; - span16[5] = "And there is a part, where the user needs to interact."; + Span span71 = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span71[index3] = "There is currently no BossMod Supported Bosses Logic."; + index3++; + span71[index3] = "BossMod doesn't use Interject."; + index3++; + span71[index3] = "BossMod can't handle QuickButton Actions yet."; + index3++; + span71[index3] = "BossMod doesn't use Healing Actions for Tanks."; + index3++; + span71[index3] = "It will need alot of manual work"; + index3++; + span71[index3] = "And there is a part, where the user needs to interact."; singlePlayerDutyOptions.Notes = list71; obj55.SinglePlayerDutyOptions = singlePlayerDutyOptions; obj55.SkipConditions = new SkipConditions @@ -271644,11 +329219,13 @@ public static class AssemblyQuestLoader reference57 = obj55; obj54.Steps = list70; reference56 = obj54; - span14[3] = new QuestSequence + num++; + span66[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference58 = ref span14[4]; + num++; + ref QuestSequence reference58 = ref span66[num]; QuestSequence obj56 = new QuestSequence { Sequence = 4 @@ -271656,18 +329233,23 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1038454u, new Vector3(-311.39087f, 20.991789f, 175.12769f), 148); + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span72[index2] = new QuestStep(EInteractionType.Interact, 1038454u, new Vector3(-311.39087f, 20.991789f, 175.12769f), 148); obj56.Steps = list72; reference58 = obj56; - ref QuestSequence reference59 = ref span14[5]; + num++; + ref QuestSequence reference59 = ref span66[num]; QuestSequence obj57 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list73)[0]; + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + ref QuestStep reference60 = ref span73[num2]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -271677,10 +329259,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - num3 = 1; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - CollectionsMarshal.AsSpan(list74)[0] = new DialogueChoice + index3 = 1; + List list74 = new List(index3); + CollectionsMarshal.SetCount(list74, index3); + Span span74 = CollectionsMarshal.AsSpan(list74); + num3 = 0; + span74[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA151_04107_SYSTEM_000_091") @@ -271689,7 +329273,8 @@ public static class AssemblyQuestLoader reference60 = obj58; obj57.Steps = list73; reference59 = obj57; - ref QuestSequence reference61 = ref span14[6]; + num++; + ref QuestSequence reference61 = ref span66[num]; QuestSequence obj59 = new QuestSequence { Sequence = 6 @@ -271697,18 +329282,23 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1038456u, new Vector3(-161.48627f, 3.9593172f, -8.011047f), 133); + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.Interact, 1038456u, new Vector3(-161.48627f, 3.9593172f, -8.011047f), 133); obj59.Steps = list75; reference61 = obj59; - ref QuestSequence reference62 = ref span14[7]; + num++; + ref QuestSequence reference62 = ref span66[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038397u, new Vector3(-178.97314f, 4.05f, -74.69299f), 963) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038397u, new Vector3(-178.97314f, 4.05f, -74.69299f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -271726,13 +329316,16 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "liza"; + Span span77 = CollectionsMarshal.AsSpan(list77); + index = 0; + span77[index] = "liza"; questRoot7.Author = list77; - num = 6; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span17 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference63 = ref span17[0]; + index = 6; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + Span span78 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference63 = ref span78[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -271740,7 +329333,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list79)[0]; + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + ref QuestStep reference64 = ref span79[index2]; QuestStep obj62 = new QuestStep(EInteractionType.AcceptQuest, 1039411u, new Vector3(-182.20801f, 4.06f, -80.73547f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -271760,7 +329355,9 @@ public static class AssemblyQuestLoader num3 = 1; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new DialogueChoice + Span span80 = CollectionsMarshal.AsSpan(list80); + index3 = 0; + span80[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA201_04108_Q1_000_000"), @@ -271770,22 +329367,26 @@ public static class AssemblyQuestLoader reference64 = obj62; obj61.Steps = list79; reference63 = obj61; - ref QuestSequence reference65 = ref span17[1]; + num++; + ref QuestSequence reference65 = ref span78[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.Interact, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj63.Steps = list81; reference65 = obj63; - ref QuestSequence reference66 = ref span17[2]; + num++; + ref QuestSequence reference66 = ref span78[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -271793,40 +329394,51 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1039403u, new Vector3(-2.0599976f, 115.8696f, -576.9589f), 620) + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.Interact, 1039403u, new Vector3(-2.0599976f, 115.8696f, -576.9589f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj64.Steps = list82; reference66 = obj64; - ref QuestSequence reference67 = ref span17[3]; + num++; + ref QuestSequence reference67 = ref span78[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - Span span18 = CollectionsMarshal.AsSpan(list83); - ref QuestStep reference68 = ref span18[0]; + index2 = 2; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + ref QuestStep reference68 = ref span83[num2]; QuestStep obj66 = new QuestStep(EInteractionType.Interact, 1039404u, new Vector3(2.2735596f, 116.12106f, -577.9355f), 620) { StopDistance = 7f }; - num3 = 6; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - Span span19 = CollectionsMarshal.AsSpan(list84); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list84 = new List(index3); + CollectionsMarshal.SetCount(list84, index3); + Span span84 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span84[num3] = null; + num3++; + span84[num3] = null; + num3++; + span84[num3] = null; + num3++; + span84[num3] = null; + num3++; + span84[num3] = null; + num3++; + span84[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj66.CompletionQuestVariablesFlags = list84; reference68 = obj66; - ref QuestStep reference69 = ref span18[1]; + num2++; + ref QuestStep reference69 = ref span83[num2]; QuestStep obj67 = new QuestStep(EInteractionType.Interact, 1039405u, new Vector3(2.1209717f, 116.152916f, -574.4259f), 620) { StopDistance = 7f @@ -271834,18 +329446,25 @@ public static class AssemblyQuestLoader num3 = 6; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - Span span20 = CollectionsMarshal.AsSpan(list85); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span85 = CollectionsMarshal.AsSpan(list85); + index3 = 0; + span85[index3] = null; + index3++; + span85[index3] = null; + index3++; + span85[index3] = null; + index3++; + span85[index3] = null; + index3++; + span85[index3] = null; + index3++; + span85[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj67.CompletionQuestVariablesFlags = list85; reference69 = obj67; obj65.Steps = list83; reference67 = obj65; - ref QuestSequence reference70 = ref span17[4]; + num++; + ref QuestSequence reference70 = ref span78[num]; QuestSequence obj68 = new QuestSequence { Sequence = 4 @@ -271853,21 +329472,26 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1039408u, new Vector3(144.12134f, 118.19209f, -728.6946f), 620) + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.Interact, 1039408u, new Vector3(144.12134f, 118.19209f, -728.6946f), 620) { Fly = true }; obj68.Steps = list86; reference70 = obj68; - ref QuestSequence reference71 = ref span17[5]; + num++; + ref QuestSequence reference71 = ref span78[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -271882,13 +329506,16 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "liza"; + Span span88 = CollectionsMarshal.AsSpan(list88); + index = 0; + span88[index] = "liza"; questRoot8.Author = list88; - num = 10; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span21 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference72 = ref span21[0]; + index = 10; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + Span span89 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference72 = ref span89[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 @@ -271896,7 +329523,9 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) { StopDistance = 6f, Fly = true, @@ -271911,21 +329540,25 @@ public static class AssemblyQuestLoader }; obj70.Steps = list90; reference72 = obj70; - ref QuestSequence reference73 = ref span21[1]; + num++; + ref QuestSequence reference73 = ref span89[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1039413u, new Vector3(144.73181f, 118.19209f, -729.0303f), 620) + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span91[num2] = new QuestStep(EInteractionType.Interact, 1039413u, new Vector3(144.73181f, 118.19209f, -729.0303f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj71.Steps = list91; reference73 = obj71; - ref QuestSequence reference74 = ref span21[2]; + num++; + ref QuestSequence reference74 = ref span89[num]; QuestSequence obj72 = new QuestSequence { Sequence = 2 @@ -271933,34 +329566,43 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - ref QuestStep reference75 = ref CollectionsMarshal.AsSpan(list92)[0]; + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + ref QuestStep reference75 = ref span92[index2]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2011775u, new Vector3(577.66077f, 221.4541f, -629.3279f), 620) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = 14009u; + index3 = 1; + List list93 = new List(index3); + CollectionsMarshal.SetCount(list93, index3); + Span span93 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span93[num3] = 14009u; obj73.KillEnemyDataIds = list93; reference75 = obj73; obj72.Steps = list92; reference74 = obj72; - ref QuestSequence reference76 = ref span21[3]; + num++; + ref QuestSequence reference76 = ref span89[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - ref QuestStep reference77 = ref CollectionsMarshal.AsSpan(list94)[0]; + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref QuestStep reference77 = ref span94[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2011776u, new Vector3(591.6074f, 222.24768f, -630.9453f), 620); num3 = 1; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice + Span span95 = CollectionsMarshal.AsSpan(list95); + index3 = 0; + span95[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA211_04109_SYSTEM_000_051") @@ -271969,7 +329611,8 @@ public static class AssemblyQuestLoader reference77 = questStep3; obj74.Steps = list94; reference76 = obj74; - ref QuestSequence reference78 = ref span21[4]; + num++; + ref QuestSequence reference78 = ref span89[num]; QuestSequence obj75 = new QuestSequence { Sequence = 4 @@ -271977,32 +329620,40 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list96)[0]; + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + ref QuestStep reference79 = ref span96[index2]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, 2011777u, new Vector3(161.4862f, 118.364136f, -471.70215f), 620) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - CollectionsMarshal.AsSpan(list97)[0] = 14009u; + index3 = 1; + List list97 = new List(index3); + CollectionsMarshal.SetCount(list97, index3); + Span span97 = CollectionsMarshal.AsSpan(list97); + num3 = 0; + span97[num3] = 14009u; obj76.KillEnemyDataIds = list97; reference79 = obj76; obj75.Steps = list96; reference78 = obj75; - ref QuestSequence reference80 = ref span21[5]; + num++; + ref QuestSequence reference80 = ref span89[num]; QuestSequence obj77 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 2011778u, new Vector3(146.74597f, 118.119995f, -470.9087f), 620); + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.Interact, 2011778u, new Vector3(146.74597f, 118.119995f, -470.9087f), 620); obj77.Steps = list98; reference80 = obj77; - ref QuestSequence reference81 = ref span21[6]; + num++; + ref QuestSequence reference81 = ref span89[num]; QuestSequence obj78 = new QuestSequence { Sequence = 6 @@ -272010,26 +329661,31 @@ public static class AssemblyQuestLoader num2 = 2; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span22 = CollectionsMarshal.AsSpan(list99); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.49226f, 118.1921f, -731.30457f), 620) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.49226f, 118.1921f, -731.30457f), 620) { Fly = true }; - span22[1] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) + index2++; + span99[index2] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) { StopDistance = 5f }; obj78.Steps = list99; reference81 = obj78; - ref QuestSequence reference82 = ref span21[7]; + num++; + ref QuestSequence reference82 = ref span89[num]; QuestSequence obj79 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list100)[0]; + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference83 = ref span100[num2]; QuestStep obj80 = new QuestStep(EInteractionType.Interact, 1039414u, new Vector3(5.4779663f, 113.40467f, -755.581f), 620) { Fly = true @@ -272037,7 +329693,9 @@ public static class AssemblyQuestLoader num3 = 1; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = new DialogueChoice + Span span101 = CollectionsMarshal.AsSpan(list101); + index3 = 0; + span101[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA211_04109_Q2_000_000"), @@ -272047,7 +329705,8 @@ public static class AssemblyQuestLoader reference83 = obj80; obj79.Steps = list100; reference82 = obj79; - ref QuestSequence reference84 = ref span21[8]; + num++; + ref QuestSequence reference84 = ref span89[num]; QuestSequence obj81 = new QuestSequence { Sequence = 8 @@ -272055,18 +329714,23 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1039414u, new Vector3(5.4779663f, 113.40467f, -755.581f), 620); + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span102[index2] = new QuestStep(EInteractionType.Interact, 1039414u, new Vector3(5.4779663f, 113.40467f, -755.581f), 620); obj81.Steps = list102; reference84 = obj81; - ref QuestSequence reference85 = ref span21[9]; + num++; + ref QuestSequence reference85 = ref span89[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span103[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -272081,13 +329745,16 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "liza"; + Span span104 = CollectionsMarshal.AsSpan(list104); + index = 0; + span104[index] = "liza"; questRoot9.Author = list104; - num = 8; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span23 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference86 = ref span23[0]; + index = 8; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + Span span105 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference86 = ref span105[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -272095,7 +329762,9 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) { StopDistance = 6f, Fly = true, @@ -272110,15 +329779,18 @@ public static class AssemblyQuestLoader }; obj83.Steps = list106; reference86 = obj83; - ref QuestSequence reference87 = ref span23[1]; + num++; + ref QuestSequence reference87 = ref span105[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1039415u, new Vector3(6.9122925f, 29.999926f, 25.558838f), 131) + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.Interact, 1039415u, new Vector3(6.9122925f, 29.999926f, 25.558838f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -272129,7 +329801,8 @@ public static class AssemblyQuestLoader }; obj84.Steps = list107; reference87 = obj84; - ref QuestSequence reference88 = ref span23[2]; + num++; + ref QuestSequence reference88 = ref span105[num]; QuestSequence obj85 = new QuestSequence { Sequence = 2 @@ -272137,7 +329810,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1039418u, new Vector3(144.94531f, 3.9999998f, 16.464417f), 131) + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.Interact, 1039418u, new Vector3(144.94531f, 3.9999998f, 16.464417f), 131) { AethernetShortcut = new AethernetShortcut { @@ -272147,58 +329822,69 @@ public static class AssemblyQuestLoader }; obj85.Steps = list108; reference88 = obj85; - ref QuestSequence reference89 = ref span23[3]; + num++; + ref QuestSequence reference89 = ref span105[num]; QuestSequence obj86 = new QuestSequence { Sequence = 3 }; - num2 = 8; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span24 = CollectionsMarshal.AsSpan(list109); - span24[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(147.52042f, 3.9999995f, -7.714897f), 131) + index2 = 8; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(147.52042f, 3.9999995f, -7.714897f), 131) { Sprint = false }; - span24[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(147.70839f, 4f, -11.791445f), 131) + num2++; + span109[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(147.70839f, 4f, -11.791445f), 131) { StopDistance = 10f, NpcWaitDistance = 2f, Sprint = false }; - span24[2] = new QuestStep(EInteractionType.WalkTo, 1039418u, new Vector3(134.52821f, 4f, -65.066986f), 131) + num2++; + span109[num2] = new QuestStep(EInteractionType.WalkTo, 1039418u, new Vector3(134.52821f, 4f, -65.066986f), 131) { Sprint = false }; - span24[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(129.31218f, 4f, -66.995674f), 131) + num2++; + span109[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(129.31218f, 4f, -66.995674f), 131) { StopDistance = 10f, NpcWaitDistance = 2f, Sprint = false }; - span24[4] = new QuestStep(EInteractionType.WalkTo, 1039418u, new Vector3(117.33298f, 4f, -72.35007f), 131) + num2++; + span109[num2] = new QuestStep(EInteractionType.WalkTo, 1039418u, new Vector3(117.33298f, 4f, -72.35007f), 131) { Sprint = false }; - span24[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(116.47475f, 4f, -76.0361f), 131) + num2++; + span109[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(116.47475f, 4f, -76.0361f), 131) { StopDistance = 10f, NpcWaitDistance = 2f, Sprint = false }; - span24[6] = new QuestStep(EInteractionType.WalkTo, 1039419u, new Vector3(102.311646f, 4f, -102.64752f), 131) + num2++; + span109[num2] = new QuestStep(EInteractionType.WalkTo, 1039419u, new Vector3(102.311646f, 4f, -102.64752f), 131) { Sprint = false }; - ref QuestStep reference90 = ref span24[7]; + num2++; + ref QuestStep reference90 = ref span109[num2]; QuestStep obj87 = new QuestStep(EInteractionType.None, null, null, 131) { DelaySecondsAtStart = 120f }; - num3 = 1; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = new DialogueChoice + index3 = 1; + List list110 = new List(index3); + CollectionsMarshal.SetCount(list110, index3); + Span span110 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span110[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA221_04110_Q2_000_000"), @@ -272208,7 +329894,8 @@ public static class AssemblyQuestLoader reference90 = obj87; obj86.Steps = list109; reference89 = obj86; - ref QuestSequence reference91 = ref span23[4]; + num++; + ref QuestSequence reference91 = ref span105[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -272216,18 +329903,23 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1039419u, new Vector3(102.311646f, 4f, -102.64752f), 131); + Span span111 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span111[index2] = new QuestStep(EInteractionType.Interact, 1039419u, new Vector3(102.311646f, 4f, -102.64752f), 131); obj88.Steps = list111; reference91 = obj88; - ref QuestSequence reference92 = ref span23[5]; + num++; + ref QuestSequence reference92 = ref span105[num]; QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1039419u, new Vector3(73.12596f, 12.789965f, 47.394222f), 131) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.Interact, 1039419u, new Vector3(73.12596f, 12.789965f, 47.394222f), 131) { StopDistance = 0.5f, AethernetShortcut = new AethernetShortcut @@ -272238,7 +329930,8 @@ public static class AssemblyQuestLoader }; obj89.Steps = list112; reference92 = obj89; - ref QuestSequence reference93 = ref span23[6]; + num++; + ref QuestSequence reference93 = ref span105[num]; QuestSequence obj90 = new QuestSequence { Sequence = 6 @@ -272246,7 +329939,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1039415u, new Vector3(6.9122925f, 29.999926f, 25.558838f), 131) + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.Interact, 1039415u, new Vector3(6.9122925f, 29.999926f, 25.558838f), 131) { AethernetShortcut = new AethernetShortcut { @@ -272256,15 +329951,18 @@ public static class AssemblyQuestLoader }; obj90.Steps = list113; reference93 = obj90; - ref QuestSequence reference94 = ref span23[7]; + num++; + ref QuestSequence reference94 = ref span105[num]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -272279,13 +329977,16 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "liza"; + Span span115 = CollectionsMarshal.AsSpan(list115); + index = 0; + span115[index] = "liza"; questRoot10.Author = list115; - num = 6; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span25 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference95 = ref span25[0]; + index = 6; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + Span span116 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference95 = ref span116[num]; QuestSequence obj92 = new QuestSequence { Sequence = 0 @@ -272293,7 +329994,9 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) { StopDistance = 6f, Fly = true, @@ -272308,23 +330011,27 @@ public static class AssemblyQuestLoader }; obj92.Steps = list117; reference95 = obj92; - ref QuestSequence reference96 = ref span25[1]; + num++; + ref QuestSequence reference96 = ref span116[num]; QuestSequence obj93 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span26 = CollectionsMarshal.AsSpan(list118); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(611.34705f, 80.000015f, 626.28424f), 621) + index2 = 2; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(611.34705f, 80.000015f, 626.28424f), 621) { Fly = true }; - span26[1] = new QuestStep(EInteractionType.Interact, 1039421u, new Vector3(611.0779f, 80.000015f, 624.6891f), 621); + num2++; + span118[num2] = new QuestStep(EInteractionType.Interact, 1039421u, new Vector3(611.0779f, 80.000015f, 624.6891f), 621); obj93.Steps = list118; reference96 = obj93; - ref QuestSequence reference97 = ref span25[2]; + num++; + ref QuestSequence reference97 = ref span116[num]; QuestSequence obj94 = new QuestSequence { Sequence = 2 @@ -272332,8 +330039,9 @@ public static class AssemblyQuestLoader num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span27 = CollectionsMarshal.AsSpan(list119); - ref QuestStep reference98 = ref span27[0]; + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + ref QuestStep reference98 = ref span119[index2]; QuestStep obj95 = new QuestStep(EInteractionType.Interact, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones @@ -272341,49 +330049,66 @@ public static class AssemblyQuestLoader num3 = 6; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - Span span28 = CollectionsMarshal.AsSpan(list120); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span120 = CollectionsMarshal.AsSpan(list120); + index3 = 0; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj95.CompletionQuestVariablesFlags = list120; reference98 = obj95; - ref QuestStep reference99 = ref span27[1]; + index2++; + ref QuestStep reference99 = ref span119[index2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612) { Fly = true }; - num3 = 6; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span29 = CollectionsMarshal.AsSpan(list121); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + Span span121 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list121; reference99 = obj96; obj94.Steps = list119; reference97 = obj94; - ref QuestSequence reference100 = ref span25[3]; + num++; + ref QuestSequence reference100 = ref span116[num]; QuestSequence obj97 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1039421u, new Vector3(611.0779f, 80.000015f, 624.6891f), 621) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.Interact, 1039421u, new Vector3(611.0779f, 80.000015f, 624.6891f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj97.Steps = list122; reference100 = obj97; - ref QuestSequence reference101 = ref span25[4]; + num++; + ref QuestSequence reference101 = ref span116[num]; QuestSequence obj98 = new QuestSequence { Sequence = 4 @@ -272391,7 +330116,9 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - ref QuestStep reference102 = ref CollectionsMarshal.AsSpan(list123)[0]; + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + ref QuestStep reference102 = ref span123[index2]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 1039422u, new Vector3(748.989f, 69.99995f, 516.0448f), 621) { Fly = true @@ -272399,7 +330126,9 @@ public static class AssemblyQuestLoader num3 = 1; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice + Span span124 = CollectionsMarshal.AsSpan(list124); + index3 = 0; + span124[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA231_04111_SYSTEM_000_060") @@ -272408,15 +330137,18 @@ public static class AssemblyQuestLoader reference102 = obj99; obj98.Steps = list123; reference101 = obj98; - ref QuestSequence reference103 = ref span25[5]; + num++; + ref QuestSequence reference103 = ref span116[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span125[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) { StopDistance = 5f, NextQuestId = new QuestId(4112) @@ -272430,13 +330162,16 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "liza"; + Span span126 = CollectionsMarshal.AsSpan(list126); + index = 0; + span126[index] = "liza"; questRoot11.Author = list126; - num = 6; - List list127 = new List(num); - CollectionsMarshal.SetCount(list127, num); - Span span30 = CollectionsMarshal.AsSpan(list127); - ref QuestSequence reference104 = ref span30[0]; + index = 6; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + Span span127 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference104 = ref span127[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -272444,7 +330179,9 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span128[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) { StopDistance = 6f, Fly = true, @@ -272459,22 +330196,26 @@ public static class AssemblyQuestLoader }; obj101.Steps = list128; reference104 = obj101; - ref QuestSequence reference105 = ref span30[1]; + num++; + ref QuestSequence reference105 = ref span127[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1039423u, new Vector3(257.1908f, 133.8877f, -735.92737f), 620) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span129[num2] = new QuestStep(EInteractionType.Interact, 1039423u, new Vector3(257.1908f, 133.8877f, -735.92737f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj102.Steps = list129; reference105 = obj102; - ref QuestSequence reference106 = ref span30[2]; + num++; + ref QuestSequence reference106 = ref span127[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 @@ -272482,29 +330223,35 @@ public static class AssemblyQuestLoader num2 = 2; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span31 = CollectionsMarshal.AsSpan(list130); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.92796f, 118.19209f, -732.00134f), 620) + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span130[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.92796f, 118.19209f, -732.00134f), 620) { Fly = true }; - span31[1] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620); + index2++; + span130[index2] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620); obj103.Steps = list130; reference106 = obj103; - ref QuestSequence reference107 = ref span30[3]; + num++; + ref QuestSequence reference107 = ref span127[num]; QuestSequence obj104 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1039428u, new Vector3(781.33813f, 256.45923f, -453.66602f), 620) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span131[num2] = new QuestStep(EInteractionType.Interact, 1039428u, new Vector3(781.33813f, 256.45923f, -453.66602f), 620) { Fly = true }; obj104.Steps = list131; reference107 = obj104; - ref QuestSequence reference108 = ref span30[4]; + num++; + ref QuestSequence reference108 = ref span127[num]; QuestSequence obj105 = new QuestSequence { Sequence = 4 @@ -272512,21 +330259,26 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1039427u, new Vector3(142.22925f, 118.1921f, -730.0679f), 620) + Span span132 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span132[index2] = new QuestStep(EInteractionType.Interact, 1039427u, new Vector3(142.22925f, 118.1921f, -730.0679f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj105.Steps = list132; reference108 = obj105; - ref QuestSequence reference109 = ref span30[5]; + num++; + ref QuestSequence reference109 = ref span127[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039410u, new Vector3(738.70447f, 70f, 511.0398f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter @@ -272540,13 +330292,16 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "liza"; + Span span134 = CollectionsMarshal.AsSpan(list134); + index = 0; + span134[index] = "liza"; questRoot12.Author = list134; - num = 5; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span32 = CollectionsMarshal.AsSpan(list135); - ref QuestSequence reference110 = ref span32[0]; + index = 5; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + Span span135 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref QuestSequence reference110 = ref span135[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -272554,7 +330309,9 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span136[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) { StopDistance = 6f, Fly = true, @@ -272569,36 +330326,43 @@ public static class AssemblyQuestLoader }; obj107.Steps = list136; reference110 = obj107; - ref QuestSequence reference111 = ref span32[1]; + num++; + ref QuestSequence reference111 = ref span135[num]; QuestSequence obj108 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list137)[0]; + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + ref QuestStep reference112 = ref span137[num2]; QuestStep obj109 = new QuestStep(EInteractionType.SinglePlayerDuty, 1039431u, new Vector3(735.25586f, 70f, 437.33875f), 621) { StopDistance = 7f }; SinglePlayerDutyOptions singlePlayerDutyOptions2 = new SinglePlayerDutyOptions(); - num3 = 2; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span33 = CollectionsMarshal.AsSpan(list138); - span33[0] = "AI doesn't target boss"; - span33[1] = "AI doesn't heal NPCs"; + index3 = 2; + List list138 = new List(index3); + CollectionsMarshal.SetCount(list138, index3); + Span span138 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span138[num3] = "AI doesn't target boss"; + num3++; + span138[num3] = "AI doesn't heal NPCs"; singlePlayerDutyOptions2.Notes = list138; obj109.SinglePlayerDutyOptions = singlePlayerDutyOptions2; reference112 = obj109; obj108.Steps = list137; reference111 = obj108; - span32[2] = new QuestSequence + num++; + span135[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference113 = ref span32[3]; + num++; + ref QuestSequence reference113 = ref span135[num]; QuestSequence obj110 = new QuestSequence { Sequence = 3 @@ -272606,18 +330370,23 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1039432u, new Vector3(606.1035f, 80.000015f, 623.77356f), 621); + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.Interact, 1039432u, new Vector3(606.1035f, 80.000015f, 623.77356f), 621); obj110.Steps = list139; reference113 = obj110; - ref QuestSequence reference114 = ref span32[4]; + num++; + ref QuestSequence reference114 = ref span135[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039411u, new Vector3(-182.20801f, 4.06f, -80.73547f), 963) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039411u, new Vector3(-182.20801f, 4.06f, -80.73547f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -272635,13 +330404,16 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "liza"; + Span span141 = CollectionsMarshal.AsSpan(list141); + index = 0; + span141[index] = "liza"; questRoot13.Author = list141; - num = 8; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span34 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference115 = ref span34[0]; + index = 8; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + Span span142 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference115 = ref span142[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 @@ -272649,7 +330421,9 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list143)[0]; + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + ref QuestStep reference116 = ref span143[index2]; QuestStep obj113 = new QuestStep(EInteractionType.AcceptQuest, 1040165u, new Vector3(-175.0058f, 4.061f, -81.22388f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -272669,7 +330443,9 @@ public static class AssemblyQuestLoader num3 = 1; List list144 = new List(num3); CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new DialogueChoice + Span span144 = CollectionsMarshal.AsSpan(list144); + index3 = 0; + span144[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA301_04114_Q1_000_000"), @@ -272679,15 +330455,18 @@ public static class AssemblyQuestLoader reference116 = obj113; obj112.Steps = list143; reference115 = obj112; - ref QuestSequence reference117 = ref span34[1]; + num++; + ref QuestSequence reference117 = ref span142[num]; QuestSequence obj114 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span145[num2] = new QuestStep(EInteractionType.Interact, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -272698,7 +330477,8 @@ public static class AssemblyQuestLoader }; obj114.Steps = list145; reference117 = obj114; - ref QuestSequence reference118 = ref span34[2]; + num++; + ref QuestSequence reference118 = ref span142[num]; QuestSequence obj115 = new QuestSequence { Sequence = 2 @@ -272706,25 +330486,31 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1040167u, new Vector3(-57.78595f, -25.02207f, 80.18616f), 138) + Span span146 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span146[index2] = new QuestStep(EInteractionType.Interact, 1040167u, new Vector3(-57.78595f, -25.02207f, 80.18616f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj115.Steps = list146; reference118 = obj115; - ref QuestSequence reference119 = ref span34[3]; + num++; + ref QuestSequence reference119 = ref span142[num]; QuestSequence obj116 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1040168u, new Vector3(-132.43304f, -23.70691f, 53.57434f), 138); + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.Interact, 1040168u, new Vector3(-132.43304f, -23.70691f, 53.57434f), 138); obj116.Steps = list147; reference119 = obj116; - ref QuestSequence reference120 = ref span34[4]; + num++; + ref QuestSequence reference120 = ref span142[num]; QuestSequence obj117 = new QuestSequence { Sequence = 4 @@ -272732,33 +330518,41 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list148)[0]; + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + ref QuestStep reference121 = ref span148[index2]; QuestStep obj118 = new QuestStep(EInteractionType.Combat, 1040171u, new Vector3(-195.75806f, -40.81036f, -76.46301f), 138) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - CollectionsMarshal.AsSpan(list149)[0] = 14019u; + index3 = 1; + List list149 = new List(index3); + CollectionsMarshal.SetCount(list149, index3); + Span span149 = CollectionsMarshal.AsSpan(list149); + num3 = 0; + span149[num3] = 14019u; obj118.KillEnemyDataIds = list149; reference121 = obj118; obj117.Steps = list148; reference120 = obj117; - ref QuestSequence reference122 = ref span34[5]; + num++; + ref QuestSequence reference122 = ref span142[num]; QuestSequence obj119 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1040171u, new Vector3(-195.75806f, -40.81036f, -76.46301f), 138); + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.Interact, 1040171u, new Vector3(-195.75806f, -40.81036f, -76.46301f), 138); obj119.Steps = list150; reference122 = obj119; - ref QuestSequence reference123 = ref span34[6]; + num++; + ref QuestSequence reference123 = ref span142[num]; QuestSequence obj120 = new QuestSequence { Sequence = 6 @@ -272766,21 +330560,26 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1040177u, new Vector3(-132.34149f, -23.704098f, 53.60486f), 138) + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.Interact, 1040177u, new Vector3(-132.34149f, -23.704098f, 53.60486f), 138) { Fly = true }; obj120.Steps = list151; reference123 = obj120; - ref QuestSequence reference124 = ref span34[7]; + num++; + ref QuestSequence reference124 = ref span142[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040174u, new Vector3(67.27698f, 40f, 66.63611f), 128) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040174u, new Vector3(67.27698f, 40f, 66.63611f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -272799,13 +330598,16 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - CollectionsMarshal.AsSpan(list153)[0] = "liza"; + Span span153 = CollectionsMarshal.AsSpan(list153); + index = 0; + span153[index] = "liza"; questRoot14.Author = list153; - num = 9; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - Span span35 = CollectionsMarshal.AsSpan(list154); - ref QuestSequence reference125 = ref span35[0]; + index = 9; + List list154 = new List(index); + CollectionsMarshal.SetCount(list154, index); + Span span154 = CollectionsMarshal.AsSpan(list154); + num = 0; + ref QuestSequence reference125 = ref span154[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -272813,7 +330615,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - ref QuestStep reference126 = ref CollectionsMarshal.AsSpan(list155)[0]; + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + ref QuestStep reference126 = ref span155[index2]; QuestStep obj123 = new QuestStep(EInteractionType.AcceptQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { StopDistance = 5f, @@ -272832,29 +330636,35 @@ public static class AssemblyQuestLoader num3 = 1; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = 128; + Span span156 = CollectionsMarshal.AsSpan(list156); + index3 = 0; + span156[index3] = 128; obj124.InTerritory = list156; skipConditions3.AetheryteShortcutIf = obj124; obj123.SkipConditions = skipConditions3; reference126 = obj123; obj122.Steps = list155; reference125 = obj122; - ref QuestSequence reference127 = ref span35[1]; + num++; + ref QuestSequence reference127 = ref span154[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1040175u, new Vector3(-69.993164f, -25.092323f, 59.861084f), 138) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span157[num2] = new QuestStep(EInteractionType.Interact, 1040175u, new Vector3(-69.993164f, -25.092323f, 59.861084f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj125.Steps = list157; reference127 = obj125; - ref QuestSequence reference128 = ref span35[2]; + num++; + ref QuestSequence reference128 = ref span154[num]; QuestSequence obj126 = new QuestSequence { Sequence = 2 @@ -272862,55 +330672,73 @@ public static class AssemblyQuestLoader num2 = 2; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span36 = CollectionsMarshal.AsSpan(list158); - ref QuestStep reference129 = ref span36[0]; + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + ref QuestStep reference129 = ref span158[index2]; QuestStep obj127 = new QuestStep(EInteractionType.Interact, 1040185u, new Vector3(-205.43231f, -41.047558f, -57.38922f), 138) { Fly = true }; - num3 = 6; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - Span span37 = CollectionsMarshal.AsSpan(list159); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list159 = new List(index3); + CollectionsMarshal.SetCount(list159, index3); + Span span159 = CollectionsMarshal.AsSpan(list159); + num3 = 0; + span159[num3] = null; + num3++; + span159[num3] = null; + num3++; + span159[num3] = null; + num3++; + span159[num3] = null; + num3++; + span159[num3] = null; + num3++; + span159[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj127.CompletionQuestVariablesFlags = list159; reference129 = obj127; - ref QuestStep reference130 = ref span36[1]; + index2++; + ref QuestStep reference130 = ref span158[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1040186u, new Vector3(-222.73596f, -39.96398f, -99.99243f), 138); num3 = 6; List list160 = new List(num3); CollectionsMarshal.SetCount(list160, num3); - Span span38 = CollectionsMarshal.AsSpan(list160); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span160 = CollectionsMarshal.AsSpan(list160); + index3 = 0; + span160[index3] = null; + index3++; + span160[index3] = null; + index3++; + span160[index3] = null; + index3++; + span160[index3] = null; + index3++; + span160[index3] = null; + index3++; + span160[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list160; reference130 = questStep4; obj126.Steps = list158; reference128 = obj126; - ref QuestSequence reference131 = ref span35[3]; + num++; + ref QuestSequence reference131 = ref span154[num]; QuestSequence obj128 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1040176u, new Vector3(-219.2569f, -41.930645f, -228.6565f), 138) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + Span span161 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span161[num2] = new QuestStep(EInteractionType.Interact, 1040176u, new Vector3(-219.2569f, -41.930645f, -228.6565f), 138) { Fly = true }; obj128.Steps = list161; reference131 = obj128; - ref QuestSequence reference132 = ref span35[4]; + num++; + ref QuestSequence reference132 = ref span154[num]; QuestSequence obj129 = new QuestSequence { Sequence = 4 @@ -272918,34 +330746,42 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 1040175u, new Vector3(-69.993164f, -25.092323f, 59.861084f), 138) + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.Interact, 1040175u, new Vector3(-69.993164f, -25.092323f, 59.861084f), 138) { Fly = true }; obj129.Steps = list162; reference132 = obj129; - ref QuestSequence reference133 = ref span35[5]; + num++; + ref QuestSequence reference133 = ref span154[num]; QuestSequence obj130 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list163)[0]; + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + ref QuestStep reference134 = ref span163[num2]; QuestStep obj131 = new QuestStep(EInteractionType.Combat, null, new Vector3(-85.9908f, -25.16141f, 73.1317f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = 14018u; + index3 = 1; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + Span span164 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span164[num3] = 14018u; obj131.KillEnemyDataIds = list164; reference134 = obj131; obj130.Steps = list163; reference133 = obj130; - ref QuestSequence reference135 = ref span35[6]; + num++; + ref QuestSequence reference135 = ref span154[num]; QuestSequence obj132 = new QuestSequence { Sequence = 6 @@ -272953,24 +330789,30 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1040178u, new Vector3(-80.52191f, -25.288979f, 63.21814f), 138); + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.Interact, 1040178u, new Vector3(-80.52191f, -25.288979f, 63.21814f), 138); obj132.Steps = list165; reference135 = obj132; - ref QuestSequence reference136 = ref span35[7]; + num++; + ref QuestSequence reference136 = ref span154[num]; QuestSequence obj133 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1040180u, new Vector3(45.609253f, -22.383259f, 100.57214f), 138) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.Interact, 1040180u, new Vector3(45.609253f, -22.383259f, 100.57214f), 138) { Fly = true }; obj133.Steps = list166; reference136 = obj133; - ref QuestSequence reference137 = ref span35[8]; + num++; + ref QuestSequence reference137 = ref span154[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue @@ -272978,7 +330820,9 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040174u, new Vector3(67.27698f, 40f, 66.63611f), 128) + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040174u, new Vector3(67.27698f, 40f, 66.63611f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -272997,21 +330841,26 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - CollectionsMarshal.AsSpan(list168)[0] = "liza"; + Span span168 = CollectionsMarshal.AsSpan(list168); + index = 0; + span168[index] = "liza"; questRoot15.Author = list168; - num = 5; - List list169 = new List(num); - CollectionsMarshal.SetCount(list169, num); - Span span39 = CollectionsMarshal.AsSpan(list169); - ref QuestSequence reference138 = ref span39[0]; + index = 5; + List list169 = new List(index); + CollectionsMarshal.SetCount(list169, index); + Span span169 = CollectionsMarshal.AsSpan(list169); + num = 0; + ref QuestSequence reference138 = ref span169[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - ref QuestStep reference139 = ref CollectionsMarshal.AsSpan(list170)[0]; + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + ref QuestStep reference139 = ref span170[num2]; QuestStep obj136 = new QuestStep(EInteractionType.AcceptQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { StopDistance = 5f, @@ -273030,14 +330879,17 @@ public static class AssemblyQuestLoader num3 = 1; List list171 = new List(num3); CollectionsMarshal.SetCount(list171, num3); - CollectionsMarshal.AsSpan(list171)[0] = 128; + Span span171 = CollectionsMarshal.AsSpan(list171); + index3 = 0; + span171[index3] = 128; obj137.InTerritory = list171; skipConditions4.AetheryteShortcutIf = obj137; obj136.SkipConditions = skipConditions4; reference139 = obj136; obj135.Steps = list170; reference138 = obj135; - ref QuestSequence reference140 = ref span39[1]; + num++; + ref QuestSequence reference140 = ref span169[num]; QuestSequence obj138 = new QuestSequence { Sequence = 1 @@ -273045,22 +330897,27 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1040187u, new Vector3(-95.44525f, -24.941013f, 77.927734f), 138) + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.Interact, 1040187u, new Vector3(-95.44525f, -24.941013f, 77.927734f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj138.Steps = list172; reference140 = obj138; - ref QuestSequence reference141 = ref span39[2]; + num++; + ref QuestSequence reference141 = ref span169[num]; QuestSequence obj139 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 2011923u, new Vector3(-55.985413f, 39.993896f, 23.147888f), 128) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.Interact, 2011923u, new Vector3(-55.985413f, 39.993896f, 23.147888f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -273071,7 +330928,8 @@ public static class AssemblyQuestLoader }; obj139.Steps = list173; reference141 = obj139; - ref QuestSequence reference142 = ref span39[3]; + num++; + ref QuestSequence reference142 = ref span169[num]; QuestSequence obj140 = new QuestSequence { Sequence = 3 @@ -273079,21 +330937,26 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1040190u, new Vector3(-58.884644f, 39.999916f, 21.22528f), 128) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.Interact, 1040190u, new Vector3(-58.884644f, 39.999916f, 21.22528f), 128) { StopDistance = 7f }; obj140.Steps = list174; reference142 = obj140; - ref QuestSequence reference143 = ref span39[4]; + num++; + ref QuestSequence reference143 = ref span169[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { NextQuestId = new QuestId(4117) }; @@ -273106,13 +330969,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "liza"; + Span span176 = CollectionsMarshal.AsSpan(list176); + index = 0; + span176[index] = "liza"; questRoot16.Author = list176; - num = 6; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span40 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference144 = ref span40[0]; + index = 6; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + Span span177 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference144 = ref span177[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -273120,7 +330986,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - ref QuestStep reference145 = ref CollectionsMarshal.AsSpan(list178)[0]; + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + ref QuestStep reference145 = ref span178[index2]; QuestStep obj143 = new QuestStep(EInteractionType.AcceptQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -273135,25 +331003,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = 128; + index3 = 1; + List list179 = new List(index3); + CollectionsMarshal.SetCount(list179, index3); + Span span179 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span179[num3] = 128; obj144.InTerritory = list179; skipConditions5.AetheryteShortcutIf = obj144; obj143.SkipConditions = skipConditions5; reference145 = obj143; obj142.Steps = list178; reference144 = obj142; - ref QuestSequence reference146 = ref span40[1]; + num++; + ref QuestSequence reference146 = ref span177[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - ref QuestStep reference147 = ref CollectionsMarshal.AsSpan(list180)[0]; + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + ref QuestStep reference147 = ref span180[num2]; QuestStep obj146 = new QuestStep(EInteractionType.Interact, 1040195u, new Vector3(70.51184f, 40f, 66.14783f), 128) { StopDistance = 5f @@ -273161,14 +331034,16 @@ public static class AssemblyQuestLoader num3 = 2; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - Span span41 = CollectionsMarshal.AsSpan(list181); - span41[0] = new DialogueChoice + Span span181 = CollectionsMarshal.AsSpan(list181); + index3 = 0; + span181[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA331_04117_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKBA331_04117_A1_000_001") }; - span41[1] = new DialogueChoice + index3++; + span181[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA331_04117_Q2_000_000"), @@ -273178,7 +331053,8 @@ public static class AssemblyQuestLoader reference147 = obj146; obj145.Steps = list180; reference146 = obj145; - ref QuestSequence reference148 = ref span40[2]; + num++; + ref QuestSequence reference148 = ref span177[num]; QuestSequence obj147 = new QuestSequence { Sequence = 2 @@ -273186,22 +331062,27 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1040196u, new Vector3(-0.015319824f, 11.924474f, 792.6909f), 135) + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.Interact, 1040196u, new Vector3(-0.015319824f, 11.924474f, 792.6909f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj147.Steps = list182; reference148 = obj147; - ref QuestSequence reference149 = ref span40[3]; + num++; + ref QuestSequence reference149 = ref span177[num]; QuestSequence obj148 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - ref QuestStep reference150 = ref CollectionsMarshal.AsSpan(list183)[0]; + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + ref QuestStep reference150 = ref span183[num2]; QuestStep obj149 = new QuestStep(EInteractionType.Interact, 1040204u, new Vector3(-185.22931f, 1.9999955f, 224.90259f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -273211,10 +331092,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - num3 = 1; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - CollectionsMarshal.AsSpan(list184)[0] = new DialogueChoice + index3 = 1; + List list184 = new List(index3); + CollectionsMarshal.SetCount(list184, index3); + Span span184 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span184[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA331_04117_Q4_000_000"), @@ -273224,7 +331107,8 @@ public static class AssemblyQuestLoader reference150 = obj149; obj148.Steps = list183; reference149 = obj148; - ref QuestSequence reference151 = ref span40[4]; + num++; + ref QuestSequence reference151 = ref span177[num]; QuestSequence obj150 = new QuestSequence { Sequence = 4 @@ -273232,18 +331116,23 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1040204u, new Vector3(-185.22931f, 1.9999955f, 224.90259f), 129); + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.Interact, 1040204u, new Vector3(-185.22931f, 1.9999955f, 224.90259f), 129); obj150.Steps = list185; reference151 = obj150; - ref QuestSequence reference152 = ref span40[5]; + num++; + ref QuestSequence reference152 = ref span177[num]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040174u, new Vector3(67.27698f, 40f, 66.63611f), 128) + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span186[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040174u, new Vector3(67.27698f, 40f, 66.63611f), 128) { AethernetShortcut = new AethernetShortcut { @@ -273261,13 +331150,16 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - CollectionsMarshal.AsSpan(list187)[0] = "liza"; + Span span187 = CollectionsMarshal.AsSpan(list187); + index = 0; + span187[index] = "liza"; questRoot17.Author = list187; - num = 6; - List list188 = new List(num); - CollectionsMarshal.SetCount(list188, num); - Span span42 = CollectionsMarshal.AsSpan(list188); - ref QuestSequence reference153 = ref span42[0]; + index = 6; + List list188 = new List(index); + CollectionsMarshal.SetCount(list188, index); + Span span188 = CollectionsMarshal.AsSpan(list188); + num = 0; + ref QuestSequence reference153 = ref span188[num]; QuestSequence obj152 = new QuestSequence { Sequence = 0 @@ -273275,7 +331167,9 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - ref QuestStep reference154 = ref CollectionsMarshal.AsSpan(list189)[0]; + Span span189 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + ref QuestStep reference154 = ref span189[index2]; QuestStep obj153 = new QuestStep(EInteractionType.AcceptQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { StopDistance = 5f, @@ -273294,28 +331188,34 @@ public static class AssemblyQuestLoader num3 = 1; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - CollectionsMarshal.AsSpan(list190)[0] = 128; + Span span190 = CollectionsMarshal.AsSpan(list190); + index3 = 0; + span190[index3] = 128; obj154.InTerritory = list190; skipConditions6.AetheryteShortcutIf = obj154; obj153.SkipConditions = skipConditions6; reference154 = obj153; obj152.Steps = list189; reference153 = obj152; - ref QuestSequence reference155 = ref span42[1]; + num++; + ref QuestSequence reference155 = ref span188[num]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.Interact, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj155.Steps = list191; reference155 = obj155; - ref QuestSequence reference156 = ref span42[2]; + num++; + ref QuestSequence reference156 = ref span188[num]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -273323,27 +331223,33 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 2011924u, new Vector3(375.63123f, 29.55664f, 330.9834f), 137) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.Interact, 2011924u, new Vector3(375.63123f, 29.55664f, 330.9834f), 137) { Fly = true }; obj156.Steps = list192; reference156 = obj156; - ref QuestSequence reference157 = ref span42[3]; + num++; + ref QuestSequence reference157 = ref span188[num]; QuestSequence obj157 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1040209u, new Vector3(526.8176f, 56.519592f, 103.89868f), 137) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.Interact, 1040209u, new Vector3(526.8176f, 56.519592f, 103.89868f), 137) { Fly = true }; obj157.Steps = list193; reference157 = obj157; - ref QuestSequence reference158 = ref span42[4]; + num++; + ref QuestSequence reference158 = ref span188[num]; QuestSequence obj158 = new QuestSequence { Sequence = 4 @@ -273351,21 +331257,26 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = new QuestStep(EInteractionType.Interact, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { Fly = true }; obj158.Steps = list194; reference158 = obj158; - ref QuestSequence reference159 = ref span42[5]; + num++; + ref QuestSequence reference159 = ref span188[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -273384,13 +331295,16 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - CollectionsMarshal.AsSpan(list196)[0] = "liza"; + Span span196 = CollectionsMarshal.AsSpan(list196); + index = 0; + span196[index] = "liza"; questRoot18.Author = list196; - num = 9; - List list197 = new List(num); - CollectionsMarshal.SetCount(list197, num); - Span span43 = CollectionsMarshal.AsSpan(list197); - ref QuestSequence reference160 = ref span43[0]; + index = 9; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + Span span197 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference160 = ref span197[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 @@ -273398,7 +331312,9 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list198)[0]; + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + ref QuestStep reference161 = ref span198[index2]; QuestStep obj161 = new QuestStep(EInteractionType.AcceptQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { StopDistance = 5f, @@ -273414,17 +331330,21 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - CollectionsMarshal.AsSpan(list199)[0] = 128; + index3 = 1; + List list199 = new List(index3); + CollectionsMarshal.SetCount(list199, index3); + Span span199 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span199[num3] = 128; obj162.InTerritory = list199; skipConditions7.AetheryteShortcutIf = obj162; obj161.SkipConditions = skipConditions7; num3 = 1; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = new DialogueChoice + Span span200 = CollectionsMarshal.AsSpan(list200); + index3 = 0; + span200[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q1_000_000"), @@ -273434,34 +331354,42 @@ public static class AssemblyQuestLoader reference161 = obj161; obj160.Steps = list198; reference160 = obj160; - ref QuestSequence reference162 = ref span43[1]; + num++; + ref QuestSequence reference162 = ref span197[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - ref QuestStep reference163 = ref CollectionsMarshal.AsSpan(list201)[0]; + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + ref QuestStep reference163 = ref span201[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.SinglePlayerDuty, 1040189u, new Vector3(-52.140076f, 39.999992f, 21.805054f), 128); SinglePlayerDutyOptions singlePlayerDutyOptions3 = new SinglePlayerDutyOptions(); - num3 = 3; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - Span span44 = CollectionsMarshal.AsSpan(list202); - span44[0] = "AI doesn't attempt to move to the correct direction when killing orbs"; - span44[1] = "AI only dodges some, but not all AOEs"; - span44[2] = "AI doesn't move behind the shield for 'Extinction Flare' and dies"; + index3 = 3; + List list202 = new List(index3); + CollectionsMarshal.SetCount(list202, index3); + Span span202 = CollectionsMarshal.AsSpan(list202); + num3 = 0; + span202[num3] = "AI doesn't attempt to move to the correct direction when killing orbs"; + num3++; + span202[num3] = "AI only dodges some, but not all AOEs"; + num3++; + span202[num3] = "AI doesn't move behind the shield for 'Extinction Flare' and dies"; singlePlayerDutyOptions3.Notes = list202; questStep5.SinglePlayerDutyOptions = singlePlayerDutyOptions3; reference163 = questStep5; obj163.Steps = list201; reference162 = obj163; - span43[2] = new QuestSequence + num++; + span197[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference164 = ref span43[3]; + num++; + ref QuestSequence reference164 = ref span197[num]; QuestSequence obj164 = new QuestSequence { Sequence = 3 @@ -273469,19 +331397,23 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1040214u, new Vector3(-59.40338f, 39.999916f, 24.093994f), 128); + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span203[index2] = new QuestStep(EInteractionType.Interact, 1040214u, new Vector3(-59.40338f, 39.999916f, 24.093994f), 128); obj164.Steps = list203; reference164 = obj164; - ref QuestSequence reference165 = ref span43[4]; + num++; + ref QuestSequence reference165 = ref span197[num]; QuestSequence obj165 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - Span span45 = CollectionsMarshal.AsSpan(list204); - ref QuestStep reference166 = ref span45[0]; + index2 = 5; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + ref QuestStep reference166 = ref span204[num2]; QuestStep obj166 = new QuestStep(EInteractionType.Interact, 1040190u, new Vector3(-58.884644f, 39.999916f, 21.22528f), 128) { StopDistance = 7f @@ -273489,18 +331421,26 @@ public static class AssemblyQuestLoader num3 = 6; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - Span span46 = CollectionsMarshal.AsSpan(list205); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span205 = CollectionsMarshal.AsSpan(list205); + index3 = 0; + span205[index3] = null; + index3++; + span205[index3] = null; + index3++; + span205[index3] = null; + index3++; + span205[index3] = null; + index3++; + span205[index3] = null; + index3++; + span205[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj166.CompletionQuestVariablesFlags = list205; - num3 = 1; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = new DialogueChoice + index3 = 1; + List list206 = new List(index3); + CollectionsMarshal.SetCount(list206, index3); + Span span206 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span206[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q3_000_000"), @@ -273508,7 +331448,8 @@ public static class AssemblyQuestLoader }; obj166.DialogueChoices = list206; reference166 = obj166; - ref QuestStep reference167 = ref span45[1]; + num2++; + ref QuestStep reference167 = ref span204[num2]; QuestStep obj167 = new QuestStep(EInteractionType.Interact, 1040191u, new Vector3(-57.63336f, 39.999992f, 20.09607f), 128) { StopDistance = 7f @@ -273516,18 +331457,26 @@ public static class AssemblyQuestLoader num3 = 6; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - Span span47 = CollectionsMarshal.AsSpan(list207); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span207 = CollectionsMarshal.AsSpan(list207); + index3 = 0; + span207[index3] = null; + index3++; + span207[index3] = null; + index3++; + span207[index3] = null; + index3++; + span207[index3] = null; + index3++; + span207[index3] = null; + index3++; + span207[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj167.CompletionQuestVariablesFlags = list207; - num3 = 1; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = new DialogueChoice + index3 = 1; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + Span span208 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span208[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q4_000_000"), @@ -273535,7 +331484,8 @@ public static class AssemblyQuestLoader }; obj167.DialogueChoices = list208; reference167 = obj167; - ref QuestStep reference168 = ref span45[2]; + num2++; + ref QuestStep reference168 = ref span204[num2]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 1040192u, new Vector3(-56.168518f, 39.999992f, 19.638367f), 128) { StopDistance = 7f @@ -273543,18 +331493,26 @@ public static class AssemblyQuestLoader num3 = 6; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - Span span48 = CollectionsMarshal.AsSpan(list209); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span209 = CollectionsMarshal.AsSpan(list209); + index3 = 0; + span209[index3] = null; + index3++; + span209[index3] = null; + index3++; + span209[index3] = null; + index3++; + span209[index3] = null; + index3++; + span209[index3] = null; + index3++; + span209[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj168.CompletionQuestVariablesFlags = list209; - num3 = 1; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice + index3 = 1; + List list210 = new List(index3); + CollectionsMarshal.SetCount(list210, index3); + Span span210 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span210[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q5_000_000"), @@ -273562,7 +331520,8 @@ public static class AssemblyQuestLoader }; obj168.DialogueChoices = list210; reference168 = obj168; - ref QuestStep reference169 = ref span45[3]; + num2++; + ref QuestStep reference169 = ref span204[num2]; QuestStep obj169 = new QuestStep(EInteractionType.Interact, 1040193u, new Vector3(-55.00885f, 39.999992f, 19.4552f), 128) { StopDistance = 7f @@ -273570,18 +331529,26 @@ public static class AssemblyQuestLoader num3 = 6; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - Span span49 = CollectionsMarshal.AsSpan(list211); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span211 = CollectionsMarshal.AsSpan(list211); + index3 = 0; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj169.CompletionQuestVariablesFlags = list211; - num3 = 1; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = new DialogueChoice + index3 = 1; + List list212 = new List(index3); + CollectionsMarshal.SetCount(list212, index3); + Span span212 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span212[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q6_000_000"), @@ -273589,7 +331556,8 @@ public static class AssemblyQuestLoader }; obj169.DialogueChoices = list212; reference169 = obj169; - ref QuestStep reference170 = ref span45[4]; + num2++; + ref QuestStep reference170 = ref span204[num2]; QuestStep obj170 = new QuestStep(EInteractionType.Interact, 1040194u, new Vector3(-53.818604f, 39.999992f, 19.516235f), 128) { StopDistance = 7f @@ -273597,18 +331565,26 @@ public static class AssemblyQuestLoader num3 = 6; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - Span span50 = CollectionsMarshal.AsSpan(list213); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span213 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span213[index3] = null; + index3++; + span213[index3] = null; + index3++; + span213[index3] = null; + index3++; + span213[index3] = null; + index3++; + span213[index3] = null; + index3++; + span213[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj170.CompletionQuestVariablesFlags = list213; - num3 = 1; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - CollectionsMarshal.AsSpan(list214)[0] = new DialogueChoice + index3 = 1; + List list214 = new List(index3); + CollectionsMarshal.SetCount(list214, index3); + Span span214 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span214[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q7_000_000"), @@ -273618,7 +331594,8 @@ public static class AssemblyQuestLoader reference170 = obj170; obj165.Steps = list204; reference165 = obj165; - ref QuestSequence reference171 = ref span43[5]; + num++; + ref QuestSequence reference171 = ref span197[num]; QuestSequence obj171 = new QuestSequence { Sequence = 5 @@ -273626,27 +331603,33 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1040214u, new Vector3(-59.40338f, 39.999916f, 24.093994f), 128) + Span span215 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span215[index2] = new QuestStep(EInteractionType.Interact, 1040214u, new Vector3(-59.40338f, 39.999916f, 24.093994f), 128) { StopDistance = 5f }; obj171.Steps = list215; reference171 = obj171; - ref QuestSequence reference172 = ref span43[6]; + num++; + ref QuestSequence reference172 = ref span197[num]; QuestSequence obj172 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 1040213u, new Vector3(-54.459473f, 39.999992f, 25.986084f), 128) + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + Span span216 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span216[num2] = new QuestStep(EInteractionType.Interact, 1040213u, new Vector3(-54.459473f, 39.999992f, 25.986084f), 128) { StopDistance = 5f }; obj172.Steps = list216; reference172 = obj172; - ref QuestSequence reference173 = ref span43[7]; + num++; + ref QuestSequence reference173 = ref span197[num]; QuestSequence obj173 = new QuestSequence { Sequence = 7 @@ -273654,21 +331637,26 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Interact, 1040189u, new Vector3(-52.140076f, 39.999992f, 21.805054f), 128) + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new QuestStep(EInteractionType.Interact, 1040189u, new Vector3(-52.140076f, 39.999992f, 21.805054f), 128) { StopDistance = 7f }; obj173.Steps = list217; reference173 = obj173; - ref QuestSequence reference174 = ref span43[8]; + num++; + ref QuestSequence reference174 = ref span197[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040165u, new Vector3(-175.0058f, 4.061f, -81.22388f), 963) + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span218[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040165u, new Vector3(-175.0058f, 4.061f, -81.22388f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -273686,13 +331674,16 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - CollectionsMarshal.AsSpan(list219)[0] = "liza"; + Span span219 = CollectionsMarshal.AsSpan(list219); + index = 0; + span219[index] = "liza"; questRoot19.Author = list219; - num = 6; - List list220 = new List(num); - CollectionsMarshal.SetCount(list220, num); - Span span51 = CollectionsMarshal.AsSpan(list220); - ref QuestSequence reference175 = ref span51[0]; + index = 6; + List list220 = new List(index); + CollectionsMarshal.SetCount(list220, index); + Span span220 = CollectionsMarshal.AsSpan(list220); + num = 0; + ref QuestSequence reference175 = ref span220[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -273700,7 +331691,9 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list221)[0]; + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + ref QuestStep reference176 = ref span221[index2]; QuestStep obj176 = new QuestStep(EInteractionType.AcceptQuest, 1039102u, new Vector3(-177.96606f, 4.05f, -90.44025f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -273720,7 +331713,9 @@ public static class AssemblyQuestLoader num3 = 1; List list222 = new List(num3); CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = new DialogueChoice + Span span222 = CollectionsMarshal.AsSpan(list222); + index3 = 0; + span222[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA401_04120_Q1_000_000"), @@ -273730,21 +331725,25 @@ public static class AssemblyQuestLoader reference176 = obj176; obj175.Steps = list221; reference175 = obj175; - ref QuestSequence reference177 = ref span51[1]; + num++; + ref QuestSequence reference177 = ref span220[num]; QuestSequence obj177 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + Span span223 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span223[num2] = new QuestStep(EInteractionType.Interact, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave }; obj177.Steps = list223; reference177 = obj177; - ref QuestSequence reference178 = ref span51[2]; + num++; + ref QuestSequence reference178 = ref span220[num]; QuestSequence obj178 = new QuestSequence { Sequence = 2 @@ -273752,36 +331751,44 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1038459u, new Vector3(472.09888f, 16.276169f, 318.25732f), 614) + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new QuestStep(EInteractionType.Interact, 1038459u, new Vector3(472.09888f, 16.276169f, 318.25732f), 614) { StopDistance = 5f }; obj178.Steps = list224; reference178 = obj178; - ref QuestSequence reference179 = ref span51[3]; + num++; + ref QuestSequence reference179 = ref span220[num]; QuestSequence obj179 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - ref QuestStep reference180 = ref CollectionsMarshal.AsSpan(list225)[0]; + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + ref QuestStep reference180 = ref span225[num2]; QuestStep obj180 = new QuestStep(EInteractionType.Combat, null, new Vector3(323.44977f, 30.394468f, 222.47493f), 614) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = 14026u; + index3 = 1; + List list226 = new List(index3); + CollectionsMarshal.SetCount(list226, index3); + Span span226 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + span226[num3] = 14026u; obj180.KillEnemyDataIds = list226; reference180 = obj180; obj179.Steps = list225; reference179 = obj179; - ref QuestSequence reference181 = ref span51[4]; + num++; + ref QuestSequence reference181 = ref span220[num]; QuestSequence obj181 = new QuestSequence { Sequence = 4 @@ -273789,21 +331796,26 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1038462u, new Vector3(319.9359f, 29.41258f, 224.4143f), 614) + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.Interact, 1038462u, new Vector3(319.9359f, 29.41258f, 224.4143f), 614) { StopDistance = 5f }; obj181.Steps = list227; reference181 = obj181; - ref QuestSequence reference182 = ref span51[5]; + num++; + ref QuestSequence reference182 = ref span220[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, NextQuestId = new QuestId(4121) @@ -273817,13 +331829,16 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "liza"; + Span span229 = CollectionsMarshal.AsSpan(list229); + index = 0; + span229[index] = "liza"; questRoot20.Author = list229; - num = 7; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span52 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference183 = ref span52[0]; + index = 7; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + Span span230 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference183 = ref span230[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -273831,7 +331846,9 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) + Span span231 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span231[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -273844,15 +331861,18 @@ public static class AssemblyQuestLoader }; obj183.Steps = list231; reference183 = obj183; - ref QuestSequence reference184 = ref span52[1]; + num++; + ref QuestSequence reference184 = ref span230[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1038464u, new Vector3(-738.55194f, 1.1992621f, -365.56042f), 613) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span232[num2] = new QuestStep(EInteractionType.Interact, 1038464u, new Vector3(-738.55194f, 1.1992621f, -365.56042f), 613) { StopDistance = 1f, Fly = true, @@ -273860,7 +331880,8 @@ public static class AssemblyQuestLoader }; obj184.Steps = list232; reference184 = obj184; - ref QuestSequence reference185 = ref span52[2]; + num++; + ref QuestSequence reference185 = ref span230[num]; QuestSequence obj185 = new QuestSequence { Sequence = 2 @@ -273868,8 +331889,9 @@ public static class AssemblyQuestLoader num2 = 4; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span53 = CollectionsMarshal.AsSpan(list233); - ref QuestStep reference186 = ref span53[0]; + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + ref QuestStep reference186 = ref span233[index2]; QuestStep obj186 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-755.03345f, 4.7634573f, -477.97415f), 613) { Fly = true @@ -273879,80 +331901,111 @@ public static class AssemblyQuestLoader num3 = 6; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - Span span54 = CollectionsMarshal.AsSpan(list234); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span234 = CollectionsMarshal.AsSpan(list234); + index3 = 0; + span234[index3] = null; + index3++; + span234[index3] = null; + index3++; + span234[index3] = null; + index3++; + span234[index3] = null; + index3++; + span234[index3] = null; + index3++; + span234[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list234; skipConditions8.StepIf = skipStepConditions3; obj186.SkipConditions = skipConditions8; reference186 = obj186; - ref QuestStep reference187 = ref span53[1]; + index2++; + ref QuestStep reference187 = ref span233[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1038467u, new Vector3(-753.78046f, 4.7634573f, -479.3927f), 613); - num3 = 6; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - Span span55 = CollectionsMarshal.AsSpan(list235); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list235 = new List(index3); + CollectionsMarshal.SetCount(list235, index3); + Span span235 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + span235[num3] = null; + num3++; + span235[num3] = null; + num3++; + span235[num3] = null; + num3++; + span235[num3] = null; + num3++; + span235[num3] = null; + num3++; + span235[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list235; reference187 = questStep6; - ref QuestStep reference188 = ref span53[2]; + index2++; + ref QuestStep reference188 = ref span233[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1038466u, new Vector3(-778.2254f, 8.915142f, -497.06265f), 613); num3 = 6; List list236 = new List(num3); CollectionsMarshal.SetCount(list236, num3); - Span span56 = CollectionsMarshal.AsSpan(list236); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span236 = CollectionsMarshal.AsSpan(list236); + index3 = 0; + span236[index3] = null; + index3++; + span236[index3] = null; + index3++; + span236[index3] = null; + index3++; + span236[index3] = null; + index3++; + span236[index3] = null; + index3++; + span236[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list236; reference188 = questStep7; - ref QuestStep reference189 = ref span53[3]; + index2++; + ref QuestStep reference189 = ref span233[index2]; QuestStep obj187 = new QuestStep(EInteractionType.Interact, 1038468u, new Vector3(-815.88464f, 19.565891f, -461.3871f), 613) { Fly = true }; - num3 = 6; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - Span span57 = CollectionsMarshal.AsSpan(list237); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list237 = new List(index3); + CollectionsMarshal.SetCount(list237, index3); + Span span237 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span237[num3] = null; + num3++; + span237[num3] = null; + num3++; + span237[num3] = null; + num3++; + span237[num3] = null; + num3++; + span237[num3] = null; + num3++; + span237[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj187.CompletionQuestVariablesFlags = list237; reference189 = obj187; obj185.Steps = list233; reference185 = obj185; - ref QuestSequence reference190 = ref span52[3]; + num++; + ref QuestSequence reference190 = ref span230[num]; QuestSequence obj188 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1038464u, new Vector3(-738.55194f, 1.1992621f, -365.56042f), 613) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.Interact, 1038464u, new Vector3(-738.55194f, 1.1992621f, -365.56042f), 613) { StopDistance = 1f, Fly = true }; obj188.Steps = list238; reference190 = obj188; - ref QuestSequence reference191 = ref span52[4]; + num++; + ref QuestSequence reference191 = ref span230[num]; QuestSequence obj189 = new QuestSequence { Sequence = 4 @@ -273960,21 +332013,27 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1038464u, new Vector3(-738.55194f, 1.1992621f, -365.56042f), 613); + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new QuestStep(EInteractionType.Interact, 1038464u, new Vector3(-738.55194f, 1.1992621f, -365.56042f), 613); obj189.Steps = list239; reference191 = obj189; - ref QuestSequence reference192 = ref span52[5]; + num++; + ref QuestSequence reference192 = ref span230[num]; QuestSequence obj190 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1038469u, new Vector3(-585.04614f, 19.143135f, -708.03394f), 613); + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.Interact, 1038469u, new Vector3(-585.04614f, 19.143135f, -708.03394f), 613); obj190.Steps = list240; reference192 = obj190; - ref QuestSequence reference193 = ref span52[6]; + num++; + ref QuestSequence reference193 = ref span230[num]; QuestSequence obj191 = new QuestSequence { Sequence = byte.MaxValue @@ -273982,7 +332041,9 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, NextQuestId = new QuestId(4122) @@ -273996,21 +332057,26 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "Censored"; + Span span242 = CollectionsMarshal.AsSpan(list242); + index = 0; + span242[index] = "Censored"; questRoot21.Author = list242; - num = 8; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span58 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference194 = ref span58[0]; + index = 8; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + Span span243 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference194 = ref span243[num]; QuestSequence obj192 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -274023,7 +332089,8 @@ public static class AssemblyQuestLoader }; obj192.Steps = list244; reference194 = obj192; - ref QuestSequence reference195 = ref span58[1]; + num++; + ref QuestSequence reference195 = ref span243[num]; QuestSequence obj193 = new QuestSequence { Sequence = 1 @@ -274031,7 +332098,9 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1038471u, new Vector3(201.77002f, 1.1510025f, -574.88367f), 613) + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.Interact, 1038471u, new Vector3(201.77002f, 1.1510025f, -574.88367f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, @@ -274050,18 +332119,22 @@ public static class AssemblyQuestLoader }; obj193.Steps = list245; reference195 = obj193; - ref QuestSequence reference196 = ref span58[2]; + num++; + ref QuestSequence reference196 = ref span243[num]; QuestSequence obj194 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 1038475u, new Vector3(12.710693f, -198.1417f, -155.8404f), 613); + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.Interact, 1038475u, new Vector3(12.710693f, -198.1417f, -155.8404f), 613); obj194.Steps = list246; reference196 = obj194; - ref QuestSequence reference197 = ref span58[3]; + num++; + ref QuestSequence reference197 = ref span243[num]; QuestSequence obj195 = new QuestSequence { Sequence = 3 @@ -274069,21 +332142,27 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1038476u, new Vector3(16.983276f, -195.74509f, -105.97394f), 613); + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.Interact, 1038476u, new Vector3(16.983276f, -195.74509f, -105.97394f), 613); obj195.Steps = list247; reference197 = obj195; - ref QuestSequence reference198 = ref span58[4]; + num++; + ref QuestSequence reference198 = ref span243[num]; QuestSequence obj196 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1038477u, new Vector3(-34.62274f, -198.56413f, -69.16919f), 613); + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.Interact, 1038477u, new Vector3(-34.62274f, -198.56413f, -69.16919f), 613); obj196.Steps = list248; reference198 = obj196; - ref QuestSequence reference199 = ref span58[5]; + num++; + ref QuestSequence reference199 = ref span243[num]; QuestSequence obj197 = new QuestSequence { Sequence = 5 @@ -274091,21 +332170,27 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1038478u, new Vector3(-90.25714f, -198.95348f, -129.65594f), 613); + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.Interact, 1038478u, new Vector3(-90.25714f, -198.95348f, -129.65594f), 613); obj197.Steps = list249; reference199 = obj197; - ref QuestSequence reference200 = ref span58[6]; + num++; + ref QuestSequence reference200 = ref span243[num]; QuestSequence obj198 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1038474u, new Vector3(203.1128f, 1.1510025f, -574.1207f), 613); + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span250 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span250[num2] = new QuestStep(EInteractionType.Interact, 1038474u, new Vector3(203.1128f, 1.1510025f, -574.1207f), 613); obj198.Steps = list250; reference200 = obj198; - ref QuestSequence reference201 = ref span58[7]; + num++; + ref QuestSequence reference201 = ref span243[num]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue @@ -274113,7 +332198,9 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) + Span span251 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span251[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -274134,21 +332221,26 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - CollectionsMarshal.AsSpan(list252)[0] = "Censored"; + Span span252 = CollectionsMarshal.AsSpan(list252); + index = 0; + span252[index] = "Censored"; questRoot22.Author = list252; - num = 5; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - Span span59 = CollectionsMarshal.AsSpan(list253); - ref QuestSequence reference202 = ref span59[0]; + index = 5; + List list253 = new List(index); + CollectionsMarshal.SetCount(list253, index); + Span span253 = CollectionsMarshal.AsSpan(list253); + num = 0; + ref QuestSequence reference202 = ref span253[num]; QuestSequence obj200 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -274161,7 +332253,8 @@ public static class AssemblyQuestLoader }; obj200.Steps = list254; reference202 = obj200; - ref QuestSequence reference203 = ref span59[1]; + num++; + ref QuestSequence reference203 = ref span253[num]; QuestSequence obj201 = new QuestSequence { Sequence = 1 @@ -274169,7 +332262,9 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) + Span span255 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span255[index2] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, @@ -274188,21 +332283,25 @@ public static class AssemblyQuestLoader }; obj201.Steps = list255; reference203 = obj201; - ref QuestSequence reference204 = ref span59[2]; + num++; + ref QuestSequence reference204 = ref span253[num]; QuestSequence obj202 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1038480u, new Vector3(422.17126f, -0.0031298446f, -685.298f), 613) + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.Interact, 1038480u, new Vector3(422.17126f, -0.0031298446f, -685.298f), 613) { Fly = true }; obj202.Steps = list256; reference204 = obj202; - ref QuestSequence reference205 = ref span59[3]; + num++; + ref QuestSequence reference205 = ref span253[num]; QuestSequence obj203 = new QuestSequence { Sequence = 3 @@ -274210,21 +332309,26 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1038482u, new Vector3(569.7261f, 0.7321513f, -517.47925f), 613) + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = new QuestStep(EInteractionType.Interact, 1038482u, new Vector3(569.7261f, 0.7321513f, -517.47925f), 613) { StopDistance = 5f }; obj203.Steps = list257; reference205 = obj203; - ref QuestSequence reference206 = ref span59[4]; + num++; + ref QuestSequence reference206 = ref span253[num]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span258[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -274245,13 +332349,16 @@ public static class AssemblyQuestLoader num = 1; List list259 = new List(num); CollectionsMarshal.SetCount(list259, num); - CollectionsMarshal.AsSpan(list259)[0] = "Censored"; + Span span259 = CollectionsMarshal.AsSpan(list259); + index = 0; + span259[index] = "Censored"; questRoot23.Author = list259; - num = 6; - List list260 = new List(num); - CollectionsMarshal.SetCount(list260, num); - Span span60 = CollectionsMarshal.AsSpan(list260); - ref QuestSequence reference207 = ref span60[0]; + index = 6; + List list260 = new List(index); + CollectionsMarshal.SetCount(list260, index); + Span span260 = CollectionsMarshal.AsSpan(list260); + num = 0; + ref QuestSequence reference207 = ref span260[num]; QuestSequence obj205 = new QuestSequence { Sequence = 0 @@ -274259,7 +332366,9 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) + Span span261 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span261[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -274272,15 +332381,18 @@ public static class AssemblyQuestLoader }; obj205.Steps = list261; reference207 = obj205; - ref QuestSequence reference208 = ref span60[1]; + num++; + ref QuestSequence reference208 = ref span260[num]; QuestSequence obj206 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1038484u, new Vector3(442.2522f, 68.02853f, -81.31531f), 614) + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.Interact, 1038484u, new Vector3(442.2522f, 68.02853f, -81.31531f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -274298,7 +332410,8 @@ public static class AssemblyQuestLoader }; obj206.Steps = list262; reference208 = obj206; - ref QuestSequence reference209 = ref span60[2]; + num++; + ref QuestSequence reference209 = ref span260[num]; QuestSequence obj207 = new QuestSequence { Sequence = 2 @@ -274306,36 +332419,51 @@ public static class AssemblyQuestLoader num2 = 3; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span61 = CollectionsMarshal.AsSpan(list263); - ref QuestStep reference210 = ref span61[0]; + Span span263 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + ref QuestStep reference210 = ref span263[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1038488u, new Vector3(476.58496f, 68.02853f, -114.7937f), 614); num3 = 6; List list264 = new List(num3); CollectionsMarshal.SetCount(list264, num3); - Span span62 = CollectionsMarshal.AsSpan(list264); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span264 = CollectionsMarshal.AsSpan(list264); + index3 = 0; + span264[index3] = null; + index3++; + span264[index3] = null; + index3++; + span264[index3] = null; + index3++; + span264[index3] = null; + index3++; + span264[index3] = null; + index3++; + span264[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list264; reference210 = questStep8; - ref QuestStep reference211 = ref span61[1]; + index2++; + ref QuestStep reference211 = ref span263[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1038489u, new Vector3(427.87805f, 68.02852f, -126.17688f), 614); - num3 = 6; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - Span span63 = CollectionsMarshal.AsSpan(list265); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list265 = new List(index3); + CollectionsMarshal.SetCount(list265, index3); + Span span265 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list265; reference211 = questStep9; - ref QuestStep reference212 = ref span61[2]; + index2++; + ref QuestStep reference212 = ref span263[index2]; QuestStep obj208 = new QuestStep(EInteractionType.Interact, 1038490u, new Vector3(443.68652f, 58.724403f, -181.62811f), 614) { Fly = true @@ -274343,34 +332471,44 @@ public static class AssemblyQuestLoader num3 = 6; List list266 = new List(num3); CollectionsMarshal.SetCount(list266, num3); - Span span64 = CollectionsMarshal.AsSpan(list266); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span266 = CollectionsMarshal.AsSpan(list266); + index3 = 0; + span266[index3] = null; + index3++; + span266[index3] = null; + index3++; + span266[index3] = null; + index3++; + span266[index3] = null; + index3++; + span266[index3] = null; + index3++; + span266[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj208.CompletionQuestVariablesFlags = list266; reference212 = obj208; obj207.Steps = list263; reference209 = obj207; - ref QuestSequence reference213 = ref span60[3]; + num++; + ref QuestSequence reference213 = ref span260[num]; QuestSequence obj209 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span65 = CollectionsMarshal.AsSpan(list267); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(625.23627f, 81.04776f, -212.65506f), 614) + index2 = 2; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span267[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(625.23627f, 81.04776f, -212.65506f), 614) { Fly = true }; - span65[1] = new QuestStep(EInteractionType.Interact, 1038491u, new Vector3(626.9779f, 81.0615f, -211.53589f), 614); + num2++; + span267[num2] = new QuestStep(EInteractionType.Interact, 1038491u, new Vector3(626.9779f, 81.0615f, -211.53589f), 614); obj209.Steps = list267; reference213 = obj209; - ref QuestSequence reference214 = ref span60[4]; + num++; + ref QuestSequence reference214 = ref span260[num]; QuestSequence obj210 = new QuestSequence { Sequence = 4 @@ -274378,12 +332516,16 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - ref QuestStep reference215 = ref CollectionsMarshal.AsSpan(list268)[0]; + Span span268 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + ref QuestStep reference215 = ref span268[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1038491u, new Vector3(626.9779f, 81.0615f, -211.53589f), 614); - num3 = 1; - List list269 = new List(num3); - CollectionsMarshal.SetCount(list269, num3); - CollectionsMarshal.AsSpan(list269)[0] = new DialogueChoice + index3 = 1; + List list269 = new List(index3); + CollectionsMarshal.SetCount(list269, index3); + Span span269 = CollectionsMarshal.AsSpan(list269); + num3 = 0; + span269[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA441_04124_SYSTEM_101_121") @@ -274392,15 +332534,18 @@ public static class AssemblyQuestLoader reference215 = questStep10; obj210.Steps = list268; reference214 = obj210; - ref QuestSequence reference216 = ref span60[5]; + num++; + ref QuestSequence reference216 = ref span260[num]; QuestSequence obj211 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + Span span270 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span270[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) { NextQuestId = new QuestId(4125) }; @@ -274413,13 +332558,16 @@ public static class AssemblyQuestLoader num = 1; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - CollectionsMarshal.AsSpan(list271)[0] = "Censored"; + Span span271 = CollectionsMarshal.AsSpan(list271); + index = 0; + span271[index] = "Censored"; questRoot24.Author = list271; - num = 6; - List list272 = new List(num); - CollectionsMarshal.SetCount(list272, num); - Span span66 = CollectionsMarshal.AsSpan(list272); - ref QuestSequence reference217 = ref span66[0]; + index = 6; + List list272 = new List(index); + CollectionsMarshal.SetCount(list272, index); + Span span272 = CollectionsMarshal.AsSpan(list272); + num = 0; + ref QuestSequence reference217 = ref span272[num]; QuestSequence obj212 = new QuestSequence { Sequence = 0 @@ -274427,7 +332575,9 @@ public static class AssemblyQuestLoader num2 = 1; List list273 = new List(num2); CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) + Span span273 = CollectionsMarshal.AsSpan(list273); + index2 = 0; + span273[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -274440,16 +332590,18 @@ public static class AssemblyQuestLoader }; obj212.Steps = list273; reference217 = obj212; - ref QuestSequence reference218 = ref span66[1]; + num++; + ref QuestSequence reference218 = ref span272[num]; QuestSequence obj213 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - Span span67 = CollectionsMarshal.AsSpan(list274); - span67[0] = new QuestStep(EInteractionType.Interact, 1024792u, new Vector3(147.81409f, -4.1787133f, 49.454468f), 759) + index2 = 2; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + Span span274 = CollectionsMarshal.AsSpan(list274); + num2 = 0; + span274[num2] = new QuestStep(EInteractionType.Interact, 1024792u, new Vector3(147.81409f, -4.1787133f, 49.454468f), 759) { TargetTerritoryId = (ushort)614, AethernetShortcut = new AethernetShortcut @@ -274458,17 +332610,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.DomanEnclaveDocks } }; - span67[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1038494u, new Vector3(-449.63763f, 53.78236f, 303.60876f), 614) + num2++; + span274[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1038494u, new Vector3(-449.63763f, 53.78236f, 303.60876f), 614) { Fly = true }; obj213.Steps = list274; reference218 = obj213; - span66[2] = new QuestSequence + num++; + span272[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference219 = ref span66[3]; + num++; + ref QuestSequence reference219 = ref span272[num]; QuestSequence obj214 = new QuestSequence { Sequence = 3 @@ -274476,24 +332631,30 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1038494u, new Vector3(-449.63763f, 53.78236f, 303.60876f), 614); + Span span275 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span275[index2] = new QuestStep(EInteractionType.Interact, 1038494u, new Vector3(-449.63763f, 53.78236f, 303.60876f), 614); obj214.Steps = list275; reference219 = obj214; - ref QuestSequence reference220 = ref span66[4]; + num++; + ref QuestSequence reference220 = ref span272[num]; QuestSequence obj215 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + Span span276 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + span276[num2] = new QuestStep(EInteractionType.Interact, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave }; obj215.Steps = list276; reference220 = obj215; - ref QuestSequence reference221 = ref span66[5]; + num++; + ref QuestSequence reference221 = ref span272[num]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue @@ -274501,7 +332662,9 @@ public static class AssemblyQuestLoader num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039102u, new Vector3(-177.96606f, 4.05f, -90.44025f), 963) + Span span277 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + span277[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039102u, new Vector3(-177.96606f, 4.05f, -90.44025f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -274519,21 +332682,26 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - CollectionsMarshal.AsSpan(list278)[0] = "liza"; + Span span278 = CollectionsMarshal.AsSpan(list278); + index = 0; + span278[index] = "liza"; questRoot25.Author = list278; - num = 9; - List list279 = new List(num); - CollectionsMarshal.SetCount(list279, num); - Span span68 = CollectionsMarshal.AsSpan(list279); - ref QuestSequence reference222 = ref span68[0]; + index = 9; + List list279 = new List(index); + CollectionsMarshal.SetCount(list279, index); + Span span279 = CollectionsMarshal.AsSpan(list279); + num = 0; + ref QuestSequence reference222 = ref span279[num]; QuestSequence obj217 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - ref QuestStep reference223 = ref CollectionsMarshal.AsSpan(list280)[0]; + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span280 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + ref QuestStep reference223 = ref span280[num2]; QuestStep obj218 = new QuestStep(EInteractionType.AcceptQuest, 1039101u, new Vector3(-168.07812f, 4.05f, -91.66095f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -274553,7 +332721,9 @@ public static class AssemblyQuestLoader num3 = 1; List list281 = new List(num3); CollectionsMarshal.SetCount(list281, num3); - CollectionsMarshal.AsSpan(list281)[0] = new DialogueChoice + Span span281 = CollectionsMarshal.AsSpan(list281); + index3 = 0; + span281[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA501_04126_Q1_000_000"), @@ -274563,7 +332733,8 @@ public static class AssemblyQuestLoader reference223 = obj218; obj217.Steps = list280; reference222 = obj217; - ref QuestSequence reference224 = ref span68[1]; + num++; + ref QuestSequence reference224 = ref span279[num]; QuestSequence obj219 = new QuestSequence { Sequence = 1 @@ -274571,21 +332742,26 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1037018u, new Vector3(-34.042908f, 5.474271f, 45.303955f), 418) + Span span282 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span282[index2] = new QuestStep(EInteractionType.Interact, 1037018u, new Vector3(-34.042908f, 5.474271f, 45.303955f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj219.Steps = list282; reference224 = obj219; - ref QuestSequence reference225 = ref span68[2]; + num++; + ref QuestSequence reference225 = ref span279[num]; QuestSequence obj220 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1037019u, new Vector3(-148.79077f, 14.953051f, -167.92554f), 419) + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + Span span283 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span283[num2] = new QuestStep(EInteractionType.Interact, 1037019u, new Vector3(-148.79077f, 14.953051f, -167.92554f), 419) { AethernetShortcut = new AethernetShortcut { @@ -274595,7 +332771,8 @@ public static class AssemblyQuestLoader }; obj220.Steps = list283; reference225 = obj220; - ref QuestSequence reference226 = ref span68[3]; + num++; + ref QuestSequence reference226 = ref span279[num]; QuestSequence obj221 = new QuestSequence { Sequence = 3 @@ -274603,25 +332780,31 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1037019u, new Vector3(-148.79077f, 14.953051f, -167.92554f), 419); + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span284[index2] = new QuestStep(EInteractionType.Interact, 1037019u, new Vector3(-148.79077f, 14.953051f, -167.92554f), 419); obj221.Steps = list284; reference226 = obj221; - ref QuestSequence reference227 = ref span68[4]; + num++; + ref QuestSequence reference227 = ref span279[num]; QuestSequence obj222 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 1037022u, new Vector3(483.97034f, 162.39722f, -545.7695f), 397) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span285 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span285[num2] = new QuestStep(EInteractionType.Interact, 1037022u, new Vector3(483.97034f, 162.39722f, -545.7695f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj222.Steps = list285; reference227 = obj222; - ref QuestSequence reference228 = ref span68[5]; + num++; + ref QuestSequence reference228 = ref span279[num]; QuestSequence obj223 = new QuestSequence { Sequence = 5 @@ -274629,36 +332812,44 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - ref QuestStep reference229 = ref CollectionsMarshal.AsSpan(list286)[0]; + Span span286 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + ref QuestStep reference229 = ref span286[index2]; QuestStep obj224 = new QuestStep(EInteractionType.Combat, null, new Vector3(665.96155f, 184.83743f, -453.5654f), 397) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list287 = new List(num3); - CollectionsMarshal.SetCount(list287, num3); - CollectionsMarshal.AsSpan(list287)[0] = 14025u; + index3 = 1; + List list287 = new List(index3); + CollectionsMarshal.SetCount(list287, index3); + Span span287 = CollectionsMarshal.AsSpan(list287); + num3 = 0; + span287[num3] = 14025u; obj224.KillEnemyDataIds = list287; reference229 = obj224; obj223.Steps = list286; reference228 = obj223; - ref QuestSequence reference230 = ref span68[6]; + num++; + ref QuestSequence reference230 = ref span279[num]; QuestSequence obj225 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Interact, 1037027u, new Vector3(483.0548f, 162.34631f, -544.0299f), 397) + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + Span span288 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span288[num2] = new QuestStep(EInteractionType.Interact, 1037027u, new Vector3(483.0548f, 162.34631f, -544.0299f), 397) { Fly = true }; obj225.Steps = list288; reference230 = obj225; - ref QuestSequence reference231 = ref span68[7]; + num++; + ref QuestSequence reference231 = ref span279[num]; QuestSequence obj226 = new QuestSequence { Sequence = 7 @@ -274666,7 +332857,9 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - ref QuestStep reference232 = ref CollectionsMarshal.AsSpan(list289)[0]; + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + ref QuestStep reference232 = ref span289[index2]; QuestStep obj227 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -274679,7 +332872,9 @@ public static class AssemblyQuestLoader num3 = 1; List list290 = new List(num3); CollectionsMarshal.SetCount(list290, num3); - CollectionsMarshal.AsSpan(list290)[0] = new DialogueChoice + Span span290 = CollectionsMarshal.AsSpan(list290); + index3 = 0; + span290[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA501_04126_SYSTEM_000_501") @@ -274688,15 +332883,18 @@ public static class AssemblyQuestLoader reference232 = obj227; obj226.Steps = list289; reference231 = obj226; - ref QuestSequence reference233 = ref span68[8]; + num++; + ref QuestSequence reference233 = ref span279[num]; QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001) + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + Span span291 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span291[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001) { NextQuestId = new QuestId(4127) }; @@ -274709,13 +332907,16 @@ public static class AssemblyQuestLoader num = 1; List list292 = new List(num); CollectionsMarshal.SetCount(list292, num); - CollectionsMarshal.AsSpan(list292)[0] = "liza"; + Span span292 = CollectionsMarshal.AsSpan(list292); + index = 0; + span292[index] = "liza"; questRoot26.Author = list292; - num = 5; - List list293 = new List(num); - CollectionsMarshal.SetCount(list293, num); - Span span69 = CollectionsMarshal.AsSpan(list293); - ref QuestSequence reference234 = ref span69[0]; + index = 5; + List list293 = new List(index); + CollectionsMarshal.SetCount(list293, index); + Span span293 = CollectionsMarshal.AsSpan(list293); + num = 0; + ref QuestSequence reference234 = ref span293[num]; QuestSequence obj229 = new QuestSequence { Sequence = 0 @@ -274723,8 +332924,9 @@ public static class AssemblyQuestLoader num2 = 2; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - Span span70 = CollectionsMarshal.AsSpan(list294); - ref QuestStep reference235 = ref span70[0]; + Span span294 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + ref QuestStep reference235 = ref span294[index2]; QuestStep obj230 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -274736,10 +332938,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list295 = new List(num3); - CollectionsMarshal.SetCount(list295, num3); - CollectionsMarshal.AsSpan(list295)[0] = 1001; + index3 = 1; + List list295 = new List(index3); + CollectionsMarshal.SetCount(list295, index3); + Span span295 = CollectionsMarshal.AsSpan(list295); + num3 = 0; + span295[num3] = 1001; skipStepConditions4.InTerritory = list295; skipConditions9.StepIf = skipStepConditions4; SkipAetheryteCondition obj231 = new SkipAetheryteCondition @@ -274749,33 +332953,40 @@ public static class AssemblyQuestLoader num3 = 1; List list296 = new List(num3); CollectionsMarshal.SetCount(list296, num3); - CollectionsMarshal.AsSpan(list296)[0] = 1001; + Span span296 = CollectionsMarshal.AsSpan(list296); + index3 = 0; + span296[index3] = 1001; obj231.InTerritory = list296; skipConditions9.AetheryteShortcutIf = obj231; obj230.SkipConditions = skipConditions9; - num3 = 1; - List list297 = new List(num3); - CollectionsMarshal.SetCount(list297, num3); - CollectionsMarshal.AsSpan(list297)[0] = new DialogueChoice + index3 = 1; + List list297 = new List(index3); + CollectionsMarshal.SetCount(list297, index3); + Span span297 = CollectionsMarshal.AsSpan(list297); + num3 = 0; + span297[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA511_04127_SYSTEM_000_501") }; obj230.DialogueChoices = list297; reference235 = obj230; - span70[1] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + index2++; + span294[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj229.Steps = list294; reference234 = obj229; - ref QuestSequence reference236 = ref span69[1]; + num++; + ref QuestSequence reference236 = ref span293[num]; QuestSequence obj232 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - Span span71 = CollectionsMarshal.AsSpan(list298); - ref QuestStep reference237 = ref span71[0]; + index2 = 3; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + Span span298 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + ref QuestStep reference237 = ref span298[num2]; QuestStep obj233 = new QuestStep(EInteractionType.Interact, 1037030u, new Vector3(11.825684f, 15.965058f, -30.136597f), 419) { AethernetShortcut = new AethernetShortcut @@ -274787,46 +332998,67 @@ public static class AssemblyQuestLoader num3 = 6; List list299 = new List(num3); CollectionsMarshal.SetCount(list299, num3); - Span span72 = CollectionsMarshal.AsSpan(list299); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span299 = CollectionsMarshal.AsSpan(list299); + index3 = 0; + span299[index3] = null; + index3++; + span299[index3] = null; + index3++; + span299[index3] = null; + index3++; + span299[index3] = null; + index3++; + span299[index3] = null; + index3++; + span299[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj233.CompletionQuestVariablesFlags = list299; reference237 = obj233; - ref QuestStep reference238 = ref span71[1]; + num2++; + ref QuestStep reference238 = ref span298[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1037031u, new Vector3(-8.98761f, 27.964876f, -170.58063f), 419); - num3 = 6; - List list300 = new List(num3); - CollectionsMarshal.SetCount(list300, num3); - Span span73 = CollectionsMarshal.AsSpan(list300); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list300 = new List(index3); + CollectionsMarshal.SetCount(list300, index3); + Span span300 = CollectionsMarshal.AsSpan(list300); + num3 = 0; + span300[num3] = null; + num3++; + span300[num3] = null; + num3++; + span300[num3] = null; + num3++; + span300[num3] = null; + num3++; + span300[num3] = null; + num3++; + span300[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list300; reference238 = questStep11; - ref QuestStep reference239 = ref span71[2]; + num2++; + ref QuestStep reference239 = ref span298[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1037032u, new Vector3(52.658813f, 14.768845f, -97.30682f), 419); num3 = 6; List list301 = new List(num3); CollectionsMarshal.SetCount(list301, num3); - Span span74 = CollectionsMarshal.AsSpan(list301); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span301 = CollectionsMarshal.AsSpan(list301); + index3 = 0; + span301[index3] = null; + index3++; + span301[index3] = null; + index3++; + span301[index3] = null; + index3++; + span301[index3] = null; + index3++; + span301[index3] = null; + index3++; + span301[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list301; reference239 = questStep12; obj232.Steps = list298; reference236 = obj232; - ref QuestSequence reference240 = ref span69[2]; + num++; + ref QuestSequence reference240 = ref span293[num]; QuestSequence obj234 = new QuestSequence { Sequence = 2 @@ -274834,18 +333066,23 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1037033u, new Vector3(69.77942f, -4.6903167f, -41.397766f), 419); + Span span302 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span302[index2] = new QuestStep(EInteractionType.Interact, 1037033u, new Vector3(69.77942f, -4.6903167f, -41.397766f), 419); obj234.Steps = list302; reference240 = obj234; - ref QuestSequence reference241 = ref span69[3]; + num++; + ref QuestSequence reference241 = ref span293[num]; QuestSequence obj235 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.Interact, 2011698u, new Vector3(142.77869f, -20.004639f, 60.837646f), 418) + index2 = 1; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + Span span303 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span303[num2] = new QuestStep(EInteractionType.Interact, 2011698u, new Vector3(142.77869f, -20.004639f, 60.837646f), 418) { AethernetShortcut = new AethernetShortcut { @@ -274855,7 +333092,8 @@ public static class AssemblyQuestLoader }; obj235.Steps = list303; reference241 = obj235; - ref QuestSequence reference242 = ref span69[4]; + num++; + ref QuestSequence reference242 = ref span293[num]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue @@ -274863,8 +333101,9 @@ public static class AssemblyQuestLoader num2 = 2; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span75 = CollectionsMarshal.AsSpan(list304); - ref QuestStep reference243 = ref span75[0]; + Span span304 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + ref QuestStep reference243 = ref span304[index2]; QuestStep obj237 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -274873,17 +333112,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num3 = 1; - List list305 = new List(num3); - CollectionsMarshal.SetCount(list305, num3); - CollectionsMarshal.AsSpan(list305)[0] = new DialogueChoice + index3 = 1; + List list305 = new List(index3); + CollectionsMarshal.SetCount(list305, index3); + Span span305 = CollectionsMarshal.AsSpan(list305); + num3 = 0; + span305[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA511_04127_SYSTEM_000_501") }; obj237.DialogueChoices = list305; reference243 = obj237; - span75[1] = new QuestStep(EInteractionType.CompleteQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001) + index2++; + span304[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001) { NextQuestId = new QuestId(4128) }; @@ -274896,22 +333138,26 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - CollectionsMarshal.AsSpan(list306)[0] = "liza"; + Span span306 = CollectionsMarshal.AsSpan(list306); + index = 0; + span306[index] = "liza"; questRoot27.Author = list306; - num = 4; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - Span span76 = CollectionsMarshal.AsSpan(list307); - ref QuestSequence reference244 = ref span76[0]; + index = 4; + List list307 = new List(index); + CollectionsMarshal.SetCount(list307, index); + Span span307 = CollectionsMarshal.AsSpan(list307); + num = 0; + ref QuestSequence reference244 = ref span307[num]; QuestSequence obj238 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - Span span77 = CollectionsMarshal.AsSpan(list308); - ref QuestStep reference245 = ref span77[0]; + index2 = 2; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + Span span308 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + ref QuestStep reference245 = ref span308[num2]; QuestStep obj239 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -274926,34 +333172,42 @@ public static class AssemblyQuestLoader num3 = 1; List list309 = new List(num3); CollectionsMarshal.SetCount(list309, num3); - CollectionsMarshal.AsSpan(list309)[0] = 1001; + Span span309 = CollectionsMarshal.AsSpan(list309); + index3 = 0; + span309[index3] = 1001; skipStepConditions5.InTerritory = list309; skipConditions10.StepIf = skipStepConditions5; SkipAetheryteCondition obj240 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list310 = new List(num3); - CollectionsMarshal.SetCount(list310, num3); - CollectionsMarshal.AsSpan(list310)[0] = 1001; + index3 = 1; + List list310 = new List(index3); + CollectionsMarshal.SetCount(list310, index3); + Span span310 = CollectionsMarshal.AsSpan(list310); + num3 = 0; + span310[num3] = 1001; obj240.InTerritory = list310; skipConditions10.AetheryteShortcutIf = obj240; obj239.SkipConditions = skipConditions10; num3 = 1; List list311 = new List(num3); CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = new DialogueChoice + Span span311 = CollectionsMarshal.AsSpan(list311); + index3 = 0; + span311[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA521_04128_SYSTEM_000_501") }; obj239.DialogueChoices = list311; reference245 = obj239; - span77[1] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + num2++; + span308[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj238.Steps = list308; reference244 = obj238; - ref QuestSequence reference246 = ref span76[1]; + num++; + ref QuestSequence reference246 = ref span307[num]; QuestSequence obj241 = new QuestSequence { Sequence = 1 @@ -274961,23 +333215,27 @@ public static class AssemblyQuestLoader num2 = 2; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span78 = CollectionsMarshal.AsSpan(list312); - ref QuestStep reference247 = ref span78[0]; + Span span312 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + ref QuestStep reference247 = ref span312[index2]; QuestStep obj242 = new QuestStep(EInteractionType.Interact, 2011721u, new Vector3(-0.015319824f, 0.99176025f, 9.933594f), 1001) { TargetTerritoryId = (ushort)418 }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list313 = new List(num3); - CollectionsMarshal.SetCount(list313, num3); - CollectionsMarshal.AsSpan(list313)[0] = 1001; + index3 = 1; + List list313 = new List(index3); + CollectionsMarshal.SetCount(list313, index3); + Span span313 = CollectionsMarshal.AsSpan(list313); + num3 = 0; + span313[num3] = 1001; skipStepConditions6.NotInTerritory = list313; skipConditions11.StepIf = skipStepConditions6; obj242.SkipConditions = skipConditions11; reference247 = obj242; - span78[1] = new QuestStep(EInteractionType.Interact, 1037036u, new Vector3(-105.36359f, 14.95313f, -142.74823f), 419) + index2++; + span312[index2] = new QuestStep(EInteractionType.Interact, 1037036u, new Vector3(-105.36359f, 14.95313f, -142.74823f), 419) { AethernetShortcut = new AethernetShortcut { @@ -274987,18 +333245,22 @@ public static class AssemblyQuestLoader }; obj241.Steps = list312; reference246 = obj241; - ref QuestSequence reference248 = ref span76[2]; + num++; + ref QuestSequence reference248 = ref span307[num]; QuestSequence obj243 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list314 = new List(num2); - CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 1037039u, new Vector3(-69.47443f, -4.734931f, -42.008118f), 419); + index2 = 1; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + Span span314 = CollectionsMarshal.AsSpan(list314); + num2 = 0; + span314[num2] = new QuestStep(EInteractionType.Interact, 1037039u, new Vector3(-69.47443f, -4.734931f, -42.008118f), 419); obj243.Steps = list314; reference248 = obj243; - ref QuestSequence reference249 = ref span76[3]; + num++; + ref QuestSequence reference249 = ref span307[num]; QuestSequence obj244 = new QuestSequence { Sequence = byte.MaxValue @@ -275006,8 +333268,9 @@ public static class AssemblyQuestLoader num2 = 2; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span79 = CollectionsMarshal.AsSpan(list315); - ref QuestStep reference250 = ref span79[0]; + Span span315 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + ref QuestStep reference250 = ref span315[index2]; QuestStep obj245 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -275019,14 +333282,17 @@ public static class AssemblyQuestLoader num3 = 1; List list316 = new List(num3); CollectionsMarshal.SetCount(list316, num3); - CollectionsMarshal.AsSpan(list316)[0] = new DialogueChoice + Span span316 = CollectionsMarshal.AsSpan(list316); + index3 = 0; + span316[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA521_04128_SYSTEM_000_501") }; obj245.DialogueChoices = list316; reference250 = obj245; - span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1037015u, new Vector3(0.045776367f, 0f, -7.1260376f), 1001) + index2++; + span315[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037015u, new Vector3(0.045776367f, 0f, -7.1260376f), 1001) { NextQuestId = new QuestId(4129) }; @@ -275039,22 +333305,26 @@ public static class AssemblyQuestLoader num = 1; List list317 = new List(num); CollectionsMarshal.SetCount(list317, num); - CollectionsMarshal.AsSpan(list317)[0] = "liza"; + Span span317 = CollectionsMarshal.AsSpan(list317); + index = 0; + span317[index] = "liza"; questRoot28.Author = list317; - num = 5; - List list318 = new List(num); - CollectionsMarshal.SetCount(list318, num); - Span span80 = CollectionsMarshal.AsSpan(list318); - ref QuestSequence reference251 = ref span80[0]; + index = 5; + List list318 = new List(index); + CollectionsMarshal.SetCount(list318, index); + Span span318 = CollectionsMarshal.AsSpan(list318); + num = 0; + ref QuestSequence reference251 = ref span318[num]; QuestSequence obj246 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - Span span81 = CollectionsMarshal.AsSpan(list319); - ref QuestStep reference252 = ref span81[0]; + index2 = 2; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + Span span319 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + ref QuestStep reference252 = ref span319[num2]; QuestStep obj247 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { StopDistance = 5f, @@ -275067,10 +333337,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 1; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - CollectionsMarshal.AsSpan(list320)[0] = 1001; + index3 = 1; + List list320 = new List(index3); + CollectionsMarshal.SetCount(list320, index3); + Span span320 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span320[num3] = 1001; skipStepConditions7.InTerritory = list320; skipConditions12.StepIf = skipStepConditions7; SkipAetheryteCondition obj248 = new SkipAetheryteCondition @@ -275080,24 +333352,30 @@ public static class AssemblyQuestLoader num3 = 1; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - CollectionsMarshal.AsSpan(list321)[0] = 1001; + Span span321 = CollectionsMarshal.AsSpan(list321); + index3 = 0; + span321[index3] = 1001; obj248.InTerritory = list321; skipConditions12.AetheryteShortcutIf = obj248; obj247.SkipConditions = skipConditions12; - num3 = 1; - List list322 = new List(num3); - CollectionsMarshal.SetCount(list322, num3); - CollectionsMarshal.AsSpan(list322)[0] = new DialogueChoice + index3 = 1; + List list322 = new List(index3); + CollectionsMarshal.SetCount(list322, index3); + Span span322 = CollectionsMarshal.AsSpan(list322); + num3 = 0; + span322[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA531_04129_SYSTEM_000_501") }; obj247.DialogueChoices = list322; reference252 = obj247; - span81[1] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + num2++; + span319[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj246.Steps = list319; reference251 = obj246; - ref QuestSequence reference253 = ref span80[1]; + num++; + ref QuestSequence reference253 = ref span318[num]; QuestSequence obj249 = new QuestSequence { Sequence = 1 @@ -275105,8 +333383,9 @@ public static class AssemblyQuestLoader num2 = 3; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span82 = CollectionsMarshal.AsSpan(list323); - ref QuestStep reference254 = ref span82[0]; + Span span323 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + ref QuestStep reference254 = ref span323[index2]; QuestStep obj250 = new QuestStep(EInteractionType.Interact, 1006392u, new Vector3(184.22205f, 319.0841f, -238.33075f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead @@ -275114,57 +333393,81 @@ public static class AssemblyQuestLoader num3 = 6; List list324 = new List(num3); CollectionsMarshal.SetCount(list324, num3); - Span span83 = CollectionsMarshal.AsSpan(list324); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span324 = CollectionsMarshal.AsSpan(list324); + index3 = 0; + span324[index3] = null; + index3++; + span324[index3] = null; + index3++; + span324[index3] = null; + index3++; + span324[index3] = null; + index3++; + span324[index3] = null; + index3++; + span324[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj250.CompletionQuestVariablesFlags = list324; reference254 = obj250; - ref QuestStep reference255 = ref span82[1]; + index2++; + ref QuestStep reference255 = ref span323[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1006395u, new Vector3(206.86658f, 303.115f, -296.2539f), 155); - num3 = 6; - List list325 = new List(num3); - CollectionsMarshal.SetCount(list325, num3); - Span span84 = CollectionsMarshal.AsSpan(list325); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list325 = new List(index3); + CollectionsMarshal.SetCount(list325, index3); + Span span325 = CollectionsMarshal.AsSpan(list325); + num3 = 0; + span325[num3] = null; + num3++; + span325[num3] = null; + num3++; + span325[num3] = null; + num3++; + span325[num3] = null; + num3++; + span325[num3] = null; + num3++; + span325[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list325; reference255 = questStep13; - ref QuestStep reference256 = ref span82[2]; + index2++; + ref QuestStep reference256 = ref span323[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1006401u, new Vector3(257.80115f, 303.15805f, -204.42517f), 155); num3 = 6; List list326 = new List(num3); CollectionsMarshal.SetCount(list326, num3); - Span span85 = CollectionsMarshal.AsSpan(list326); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span326 = CollectionsMarshal.AsSpan(list326); + index3 = 0; + span326[index3] = null; + index3++; + span326[index3] = null; + index3++; + span326[index3] = null; + index3++; + span326[index3] = null; + index3++; + span326[index3] = null; + index3++; + span326[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list326; reference256 = questStep14; obj249.Steps = list323; reference253 = obj249; - ref QuestSequence reference257 = ref span80[2]; + num++; + ref QuestSequence reference257 = ref span318[num]; QuestSequence obj251 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 1037041u, new Vector3(197.68054f, 302.31348f, -167.58984f), 155); + index2 = 1; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + Span span327 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span327[num2] = new QuestStep(EInteractionType.Interact, 1037041u, new Vector3(197.68054f, 302.31348f, -167.58984f), 155); obj251.Steps = list327; reference257 = obj251; - ref QuestSequence reference258 = ref span80[3]; + num++; + ref QuestSequence reference258 = ref span318[num]; QuestSequence obj252 = new QuestSequence { Sequence = 3 @@ -275172,12 +333475,16 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - ref QuestStep reference259 = ref CollectionsMarshal.AsSpan(list328)[0]; + Span span328 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + ref QuestStep reference259 = ref span328[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1037041u, new Vector3(197.68054f, 302.31348f, -167.58984f), 155); - num3 = 1; - List list329 = new List(num3); - CollectionsMarshal.SetCount(list329, num3); - CollectionsMarshal.AsSpan(list329)[0] = new DialogueChoice + index3 = 1; + List list329 = new List(index3); + CollectionsMarshal.SetCount(list329, index3); + Span span329 = CollectionsMarshal.AsSpan(list329); + num3 = 0; + span329[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA531_04129_Q1_000_060") @@ -275186,16 +333493,18 @@ public static class AssemblyQuestLoader reference259 = questStep15; obj252.Steps = list328; reference258 = obj252; - ref QuestSequence reference260 = ref span80[4]; + num++; + ref QuestSequence reference260 = ref span318[num]; QuestSequence obj253 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - Span span86 = CollectionsMarshal.AsSpan(list330); - ref QuestStep reference261 = ref span86[0]; + index2 = 2; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + Span span330 = CollectionsMarshal.AsSpan(list330); + num2 = 0; + ref QuestStep reference261 = ref span330[num2]; QuestStep obj254 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -275208,14 +333517,17 @@ public static class AssemblyQuestLoader num3 = 1; List list331 = new List(num3); CollectionsMarshal.SetCount(list331, num3); - CollectionsMarshal.AsSpan(list331)[0] = new DialogueChoice + Span span331 = CollectionsMarshal.AsSpan(list331); + index3 = 0; + span331[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA531_04129_SYSTEM_000_501") }; obj254.DialogueChoices = list331; reference261 = obj254; - span86[1] = new QuestStep(EInteractionType.CompleteQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001) + num2++; + span330[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001) { NextQuestId = new QuestId(4130) }; @@ -275228,13 +333540,16 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - CollectionsMarshal.AsSpan(list332)[0] = "liza"; + Span span332 = CollectionsMarshal.AsSpan(list332); + index = 0; + span332[index] = "liza"; questRoot29.Author = list332; - num = 7; - List list333 = new List(num); - CollectionsMarshal.SetCount(list333, num); - Span span87 = CollectionsMarshal.AsSpan(list333); - ref QuestSequence reference262 = ref span87[0]; + index = 7; + List list333 = new List(index); + CollectionsMarshal.SetCount(list333, index); + Span span333 = CollectionsMarshal.AsSpan(list333); + num = 0; + ref QuestSequence reference262 = ref span333[num]; QuestSequence obj255 = new QuestSequence { Sequence = 0 @@ -275242,8 +333557,9 @@ public static class AssemblyQuestLoader num2 = 2; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - Span span88 = CollectionsMarshal.AsSpan(list334); - ref QuestStep reference263 = ref span88[0]; + Span span334 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + ref QuestStep reference263 = ref span334[index2]; QuestStep obj256 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -275255,10 +333571,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 1; - List list335 = new List(num3); - CollectionsMarshal.SetCount(list335, num3); - CollectionsMarshal.AsSpan(list335)[0] = 1001; + index3 = 1; + List list335 = new List(index3); + CollectionsMarshal.SetCount(list335, index3); + Span span335 = CollectionsMarshal.AsSpan(list335); + num3 = 0; + span335[num3] = 1001; skipStepConditions8.InTerritory = list335; skipConditions13.StepIf = skipStepConditions8; SkipAetheryteCondition obj257 = new SkipAetheryteCondition @@ -275268,32 +333586,40 @@ public static class AssemblyQuestLoader num3 = 1; List list336 = new List(num3); CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = 1001; + Span span336 = CollectionsMarshal.AsSpan(list336); + index3 = 0; + span336[index3] = 1001; obj257.InTerritory = list336; skipConditions13.AetheryteShortcutIf = obj257; obj256.SkipConditions = skipConditions13; - num3 = 1; - List list337 = new List(num3); - CollectionsMarshal.SetCount(list337, num3); - CollectionsMarshal.AsSpan(list337)[0] = new DialogueChoice + index3 = 1; + List list337 = new List(index3); + CollectionsMarshal.SetCount(list337, index3); + Span span337 = CollectionsMarshal.AsSpan(list337); + num3 = 0; + span337[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA541_04130_SYSTEM_000_501") }; obj256.DialogueChoices = list337; reference263 = obj256; - span88[1] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + index2++; + span334[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj255.Steps = list334; reference262 = obj255; - ref QuestSequence reference264 = ref span87[1]; + num++; + ref QuestSequence reference264 = ref span333[num]; QuestSequence obj258 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(11.001709f, 11.965152f, 52.384155f), 419) + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + Span span338 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span338[num2] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(11.001709f, 11.965152f, 52.384155f), 419) { AethernetShortcut = new AethernetShortcut { @@ -275303,7 +333629,8 @@ public static class AssemblyQuestLoader }; obj258.Steps = list338; reference264 = obj258; - ref QuestSequence reference265 = ref span87[2]; + num++; + ref QuestSequence reference265 = ref span333[num]; QuestSequence obj259 = new QuestSequence { Sequence = 2 @@ -275311,24 +333638,30 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(11.001709f, 11.965152f, 52.384155f), 419); + Span span339 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span339[index2] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(11.001709f, 11.965152f, 52.384155f), 419); obj259.Steps = list339; reference265 = obj259; - ref QuestSequence reference266 = ref span87[3]; + num++; + ref QuestSequence reference266 = ref span333[num]; QuestSequence obj260 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(10.079511f, 15.96505f, -7.351647f), 419) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + Span span340 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span340[num2] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(10.079511f, 15.96505f, -7.351647f), 419) { StopDistance = 0.5f }; obj260.Steps = list340; reference266 = obj260; - ref QuestSequence reference267 = ref span87[4]; + num++; + ref QuestSequence reference267 = ref span333[num]; QuestSequence obj261 = new QuestSequence { Sequence = 4 @@ -275336,24 +333669,30 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(0.16652964f, 26.965057f, -98.31793f), 419) + Span span341 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span341[index2] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(0.16652964f, 26.965057f, -98.31793f), 419) { StopDistance = 0.5f }; obj261.Steps = list341; reference267 = obj261; - ref QuestSequence reference268 = ref span87[5]; + num++; + ref QuestSequence reference268 = ref span333[num]; QuestSequence obj262 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 1037044u, new Vector3(-1.6327515f, 35.344902f, -188.55579f), 419); + index2 = 1; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + Span span342 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span342[num2] = new QuestStep(EInteractionType.Interact, 1037044u, new Vector3(-1.6327515f, 35.344902f, -188.55579f), 419); obj262.Steps = list342; reference268 = obj262; - ref QuestSequence reference269 = ref span87[6]; + num++; + ref QuestSequence reference269 = ref span333[num]; QuestSequence obj263 = new QuestSequence { Sequence = byte.MaxValue @@ -275361,7 +333700,9 @@ public static class AssemblyQuestLoader num2 = 1; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037015u, new Vector3(0.045776367f, 0f, -7.1260376f), 1001) + Span span343 = CollectionsMarshal.AsSpan(list343); + index2 = 0; + span343[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037015u, new Vector3(0.045776367f, 0f, -7.1260376f), 1001) { NextQuestId = new QuestId(4131) }; @@ -275374,22 +333715,26 @@ public static class AssemblyQuestLoader num = 1; List list344 = new List(num); CollectionsMarshal.SetCount(list344, num); - CollectionsMarshal.AsSpan(list344)[0] = "liza"; + Span span344 = CollectionsMarshal.AsSpan(list344); + index = 0; + span344[index] = "liza"; questRoot30.Author = list344; - num = 7; - List list345 = new List(num); - CollectionsMarshal.SetCount(list345, num); - Span span89 = CollectionsMarshal.AsSpan(list345); - ref QuestSequence reference270 = ref span89[0]; + index = 7; + List list345 = new List(index); + CollectionsMarshal.SetCount(list345, index); + Span span345 = CollectionsMarshal.AsSpan(list345); + num = 0; + ref QuestSequence reference270 = ref span345[num]; QuestSequence obj264 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - Span span90 = CollectionsMarshal.AsSpan(list346); - ref QuestStep reference271 = ref span90[0]; + index2 = 2; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + Span span346 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + ref QuestStep reference271 = ref span346[num2]; QuestStep obj265 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { StopDistance = 5f, @@ -275405,34 +333750,42 @@ public static class AssemblyQuestLoader num3 = 1; List list347 = new List(num3); CollectionsMarshal.SetCount(list347, num3); - CollectionsMarshal.AsSpan(list347)[0] = 1001; + Span span347 = CollectionsMarshal.AsSpan(list347); + index3 = 0; + span347[index3] = 1001; skipStepConditions9.InTerritory = list347; skipConditions14.StepIf = skipStepConditions9; SkipAetheryteCondition obj266 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 1; - List list348 = new List(num3); - CollectionsMarshal.SetCount(list348, num3); - CollectionsMarshal.AsSpan(list348)[0] = 1001; + index3 = 1; + List list348 = new List(index3); + CollectionsMarshal.SetCount(list348, index3); + Span span348 = CollectionsMarshal.AsSpan(list348); + num3 = 0; + span348[num3] = 1001; obj266.InTerritory = list348; skipConditions14.AetheryteShortcutIf = obj266; obj265.SkipConditions = skipConditions14; num3 = 1; List list349 = new List(num3); CollectionsMarshal.SetCount(list349, num3); - CollectionsMarshal.AsSpan(list349)[0] = new DialogueChoice + Span span349 = CollectionsMarshal.AsSpan(list349); + index3 = 0; + span349[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA551_04131_SYSTEM_000_501") }; obj265.DialogueChoices = list349; reference271 = obj265; - span90[1] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + num2++; + span346[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj264.Steps = list346; reference270 = obj264; - ref QuestSequence reference272 = ref span89[1]; + num++; + ref QuestSequence reference272 = ref span345[num]; QuestSequence obj267 = new QuestSequence { Sequence = 1 @@ -275440,7 +333793,9 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - ref QuestStep reference273 = ref CollectionsMarshal.AsSpan(list350)[0]; + Span span350 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + ref QuestStep reference273 = ref span350[index2]; QuestStep obj268 = new QuestStep(EInteractionType.SinglePlayerDuty, 1037045u, new Vector3(0.10675049f, 35.344906f, -188.58624f), 419) { AethernetShortcut = new AethernetShortcut @@ -275450,33 +333805,40 @@ public static class AssemblyQuestLoader } }; SinglePlayerDutyOptions singlePlayerDutyOptions4 = new SinglePlayerDutyOptions(); - num3 = 4; - List list351 = new List(num3); - CollectionsMarshal.SetCount(list351, num3); - Span span91 = CollectionsMarshal.AsSpan(list351); - span91[0] = "AI doesn't target Fafnir to start combat"; - span91[1] = "AI doesn't stand in towers"; - span91[2] = "AI doesn't kill ads"; - span91[3] = "AI doesn't move behind the shield to take cover and dies"; + index3 = 4; + List list351 = new List(index3); + CollectionsMarshal.SetCount(list351, index3); + Span span351 = CollectionsMarshal.AsSpan(list351); + num3 = 0; + span351[num3] = "AI doesn't target Fafnir to start combat"; + num3++; + span351[num3] = "AI doesn't stand in towers"; + num3++; + span351[num3] = "AI doesn't kill ads"; + num3++; + span351[num3] = "AI doesn't move behind the shield to take cover and dies"; singlePlayerDutyOptions4.Notes = list351; obj268.SinglePlayerDutyOptions = singlePlayerDutyOptions4; reference273 = obj268; obj267.Steps = list350; reference272 = obj267; - span89[2] = new QuestSequence + num++; + span345[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference274 = ref span89[3]; + num++; + ref QuestSequence reference274 = ref span345[num]; QuestSequence obj269 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - Span span92 = CollectionsMarshal.AsSpan(list352); - ref QuestStep reference275 = ref span92[0]; + index2 = 2; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + Span span352 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + ref QuestStep reference275 = ref span352[num2]; QuestStep obj270 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -275488,17 +333850,21 @@ public static class AssemblyQuestLoader num3 = 1; List list353 = new List(num3); CollectionsMarshal.SetCount(list353, num3); - CollectionsMarshal.AsSpan(list353)[0] = new DialogueChoice + Span span353 = CollectionsMarshal.AsSpan(list353); + index3 = 0; + span353[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA551_04131_SYSTEM_000_501") }; obj270.DialogueChoices = list353; reference275 = obj270; - span92[1] = new QuestStep(EInteractionType.Interact, 1038486u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + num2++; + span352[num2] = new QuestStep(EInteractionType.Interact, 1038486u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj269.Steps = list352; reference274 = obj269; - ref QuestSequence reference276 = ref span89[4]; + num++; + ref QuestSequence reference276 = ref span345[num]; QuestSequence obj271 = new QuestSequence { Sequence = 4 @@ -275506,27 +333872,33 @@ public static class AssemblyQuestLoader num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1037017u, new Vector3(-1.2664795f, 0f, -5.7526855f), 1001) + Span span354 = CollectionsMarshal.AsSpan(list354); + index2 = 0; + span354[index2] = new QuestStep(EInteractionType.Interact, 1037017u, new Vector3(-1.2664795f, 0f, -5.7526855f), 1001) { StopDistance = 5f }; obj271.Steps = list354; reference276 = obj271; - ref QuestSequence reference277 = ref span89[5]; + num++; + ref QuestSequence reference277 = ref span345[num]; QuestSequence obj272 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.Interact, 1037015u, new Vector3(0.045776367f, 0f, -7.1260376f), 1001) + index2 = 1; + List list355 = new List(index2); + CollectionsMarshal.SetCount(list355, index2); + Span span355 = CollectionsMarshal.AsSpan(list355); + num2 = 0; + span355[num2] = new QuestStep(EInteractionType.Interact, 1037015u, new Vector3(0.045776367f, 0f, -7.1260376f), 1001) { StopDistance = 5f }; obj272.Steps = list355; reference277 = obj272; - ref QuestSequence reference278 = ref span89[6]; + num++; + ref QuestSequence reference278 = ref span345[num]; QuestSequence obj273 = new QuestSequence { Sequence = byte.MaxValue @@ -275534,7 +333906,9 @@ public static class AssemblyQuestLoader num2 = 1; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039101u, new Vector3(-168.07812f, 4.05f, -91.66095f), 963) + Span span356 = CollectionsMarshal.AsSpan(list356); + index2 = 0; + span356[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039101u, new Vector3(-168.07812f, 4.05f, -91.66095f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -275556,13 +333930,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -275570,21 +333947,27 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038504u, new Vector3(-357.62573f, 21.64856f, -95.99457f), 962); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038504u, new Vector3(-357.62573f, 21.64856f, -95.99457f), 962); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1038505u, new Vector3(-376.45538f, 18.999998f, 37.00305f), 962); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1038505u, new Vector3(-376.45538f, 18.999998f, 37.00305f), 962); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -275592,18 +333975,23 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1038503u, new Vector3(-367.0863f, 21.84602f, -101.701416f), 962); + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1038503u, new Vector3(-367.0863f, 21.84602f, -101.701416f), 962); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { StopDistance = 7f, NextQuestId = new QuestId(4154) @@ -275617,13 +334005,16 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + Span span7 = CollectionsMarshal.AsSpan(list7); + index = 0; + span7[index] = "liza"; questRoot2.Author = list7; - num = 2; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span2[0]; + index = 2; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span8[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -275631,24 +334022,30 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[1]; + num++; + ref QuestSequence reference6 = ref span8[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestStep reference7 = ref span3[0]; + index2 = 2; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + ref QuestStep reference7 = ref span10[num2]; QuestStep questStep = new QuestStep(EInteractionType.Gather, null, null, 962); int num3 = 1; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = new GatheredItem + Span span11 = CollectionsMarshal.AsSpan(list11); + int index3 = 0; + span11[index3] = new GatheredItem { ItemId = 35600u, ItemCount = 6, @@ -275656,7 +334053,8 @@ public static class AssemblyQuestLoader }; questStep.ItemsToGather = list11; reference7 = questStep; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + num2++; + span10[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -275675,13 +334073,16 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "liza"; + Span span12 = CollectionsMarshal.AsSpan(list12); + index = 0; + span12[index] = "liza"; questRoot3.Author = list12; - num = 2; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span4 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference8 = ref span4[0]; + index = 2; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference8 = ref span13[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -275689,24 +334090,30 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj7.Steps = list14; reference8 = obj7; - ref QuestSequence reference9 = ref span4[1]; + num++; + ref QuestSequence reference9 = ref span13[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref QuestStep reference10 = ref span5[0]; + index2 = 2; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + ref QuestStep reference10 = ref span15[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Gather, null, null, 962); - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new GatheredItem + index3 = 1; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span16[num3] = new GatheredItem { ItemId = 35601u, ItemCount = 6, @@ -275714,7 +334121,8 @@ public static class AssemblyQuestLoader }; questStep2.ItemsToGather = list16; reference10 = questStep2; - span5[1] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + num2++; + span15[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -275733,13 +334141,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "liza"; questRoot4.Author = list17; - num = 2; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span6 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference11 = ref span6[0]; + index = 2; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference11 = ref span18[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -275747,24 +334158,30 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj9.Steps = list19; reference11 = obj9; - ref QuestSequence reference12 = ref span6[1]; + num++; + ref QuestSequence reference12 = ref span18[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span7 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference13 = ref span7[0]; + index2 = 2; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference13 = ref span20[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 962); num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new GatheredItem + Span span21 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span21[index3] = new GatheredItem { ItemId = 35602u, ItemCount = 6, @@ -275772,7 +334189,8 @@ public static class AssemblyQuestLoader }; questStep3.ItemsToGather = list21; reference13 = questStep3; - span7[1] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + num2++; + span20[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -275791,13 +334209,16 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + Span span22 = CollectionsMarshal.AsSpan(list22); + index = 0; + span22[index] = "liza"; questRoot5.Author = list22; - num = 8; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span8 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference14 = ref span8[0]; + index = 8; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + Span span23 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference14 = ref span23[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -275805,18 +334226,23 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj11.Steps = list24; reference14 = obj11; - ref QuestSequence reference15 = ref span8[1]; + num++; + ref QuestSequence reference15 = ref span23[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 2011719u, new Vector3(-102.1897f, -7.0039062f, -59.92218f), 628) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.Interact, 2011719u, new Vector3(-102.1897f, -7.0039062f, -59.92218f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -275827,7 +334253,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list25; reference15 = obj12; - ref QuestSequence reference16 = ref span8[2]; + num++; + ref QuestSequence reference16 = ref span23[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -275835,7 +334262,9 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1038506u, new Vector3(-142.2904f, -4.7500057f, 199.6643f), 628) + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.Interact, 1038506u, new Vector3(-142.2904f, -4.7500057f, 199.6643f), 628) { AethernetShortcut = new AethernetShortcut { @@ -275845,15 +334274,18 @@ public static class AssemblyQuestLoader }; obj13.Steps = list26; reference16 = obj13; - ref QuestSequence reference17 = ref span8[3]; + num++; + ref QuestSequence reference17 = ref span23[num]; QuestSequence obj14 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1038507u, new Vector3(52.750366f, 8.02f, 152.81909f), 628) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.Interact, 1038507u, new Vector3(52.750366f, 8.02f, 152.81909f), 628) { AethernetShortcut = new AethernetShortcut { @@ -275863,7 +334295,8 @@ public static class AssemblyQuestLoader }; obj14.Steps = list27; reference17 = obj14; - ref QuestSequence reference18 = ref span8[4]; + num++; + ref QuestSequence reference18 = ref span23[num]; QuestSequence obj15 = new QuestSequence { Sequence = 4 @@ -275871,7 +334304,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 2011720u, new Vector3(129.5033f, 24.979004f, 15.701477f), 628) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.Interact, 2011720u, new Vector3(129.5033f, 24.979004f, 15.701477f), 628) { AethernetShortcut = new AethernetShortcut { @@ -275881,28 +334316,33 @@ public static class AssemblyQuestLoader }; obj15.Steps = list28; reference18 = obj15; - ref QuestSequence reference19 = ref span8[5]; + num++; + ref QuestSequence reference19 = ref span23[num]; QuestSequence obj16 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - Span span9 = CollectionsMarshal.AsSpan(list29); - ref QuestStep reference20 = ref span9[0]; + index2 = 2; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + ref QuestStep reference20 = ref span29[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Gather, null, null, 628); - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new GatheredItem + index3 = 1; + List list30 = new List(index3); + CollectionsMarshal.SetCount(list30, index3); + Span span30 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span30[num3] = new GatheredItem { ItemId = 35847u, ItemCount = 1 }; questStep4.ItemsToGather = list30; reference20 = questStep4; - span9[1] = new QuestStep(EInteractionType.Interact, 1038508u, new Vector3(114.70203f, 12f, 35.965454f), 628) + num2++; + span29[num2] = new QuestStep(EInteractionType.Interact, 1038508u, new Vector3(114.70203f, 12f, 35.965454f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -275913,7 +334353,8 @@ public static class AssemblyQuestLoader }; obj16.Steps = list29; reference19 = obj16; - ref QuestSequence reference21 = ref span8[6]; + num++; + ref QuestSequence reference21 = ref span23[num]; QuestSequence obj17 = new QuestSequence { Sequence = 6 @@ -275921,7 +334362,9 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1038510u, new Vector3(-92.24078f, 11.799999f, -156.05408f), 628) + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span31[index2] = new QuestStep(EInteractionType.Interact, 1038510u, new Vector3(-92.24078f, 11.799999f, -156.05408f), 628) { AethernetShortcut = new AethernetShortcut { @@ -275931,15 +334374,18 @@ public static class AssemblyQuestLoader }; obj17.Steps = list31; reference21 = obj17; - ref QuestSequence reference22 = ref span8[7]; + num++; + ref QuestSequence reference22 = ref span23[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -275958,13 +334404,16 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; + Span span33 = CollectionsMarshal.AsSpan(list33); + index = 0; + span33[index] = "liza"; questRoot6.Author = list33; - num = 2; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span10 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference23 = ref span10[0]; + index = 2; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + Span span34 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference23 = ref span34[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -275972,24 +334421,30 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj19.Steps = list35; reference23 = obj19; - ref QuestSequence reference24 = ref span10[1]; + num++; + ref QuestSequence reference24 = ref span34[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span11 = CollectionsMarshal.AsSpan(list36); - ref QuestStep reference25 = ref span11[0]; + index2 = 2; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + ref QuestStep reference25 = ref span36[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Gather, null, null, 962); num3 = 1; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = new GatheredItem + Span span37 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span37[index3] = new GatheredItem { ItemId = 35603u, ItemCount = 6, @@ -275997,7 +334452,8 @@ public static class AssemblyQuestLoader }; questStep5.ItemsToGather = list37; reference25 = questStep5; - span11[1] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + num2++; + span36[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -276016,13 +334472,16 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "liza"; + Span span38 = CollectionsMarshal.AsSpan(list38); + index = 0; + span38[index] = "liza"; questRoot7.Author = list38; - num = 5; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span12 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference26 = ref span12[0]; + index = 5; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + Span span39 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference26 = ref span39[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -276030,31 +334489,38 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj21.Steps = list40; reference26 = obj21; - ref QuestSequence reference27 = ref span12[1]; + num++; + ref QuestSequence reference27 = ref span39[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span13 = CollectionsMarshal.AsSpan(list41); - ref QuestStep reference28 = ref span13[0]; + index2 = 2; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + ref QuestStep reference28 = ref span41[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Gather, null, null, 962); - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new GatheredItem + index3 = 1; + List list42 = new List(index3); + CollectionsMarshal.SetCount(list42, index3); + Span span42 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span42[num3] = new GatheredItem { ItemId = 35848u, ItemCount = 1 }; questStep6.ItemsToGather = list42; reference28 = questStep6; - span13[1] = new QuestStep(EInteractionType.Interact, 1038503u, new Vector3(-367.0863f, 21.84602f, -101.701416f), 962) + num2++; + span41[num2] = new QuestStep(EInteractionType.Interact, 1038503u, new Vector3(-367.0863f, 21.84602f, -101.701416f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -276065,7 +334531,8 @@ public static class AssemblyQuestLoader }; obj22.Steps = list41; reference27 = obj22; - ref QuestSequence reference29 = ref span12[2]; + num++; + ref QuestSequence reference29 = ref span39[num]; QuestSequence obj23 = new QuestSequence { Sequence = 2 @@ -276073,7 +334540,9 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1038512u, new Vector3(-73.47223f, -16.147001f, 191.27173f), 962) + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.Interact, 1038512u, new Vector3(-73.47223f, -16.147001f, 191.27173f), 962) { AethernetShortcut = new AethernetShortcut { @@ -276083,15 +334552,18 @@ public static class AssemblyQuestLoader }; obj23.Steps = list43; reference29 = obj23; - ref QuestSequence reference30 = ref span12[3]; + num++; + ref QuestSequence reference30 = ref span39[num]; QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Interact, 1038503u, new Vector3(-367.0863f, 21.84602f, -101.701416f), 962) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.Interact, 1038503u, new Vector3(-367.0863f, 21.84602f, -101.701416f), 962) { AethernetShortcut = new AethernetShortcut { @@ -276101,7 +334573,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list44; reference30 = obj24; - ref QuestSequence reference31 = ref span12[4]; + num++; + ref QuestSequence reference31 = ref span39[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -276109,7 +334582,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { StopDistance = 7f }; @@ -276122,20 +334597,26 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "liza"; + Span span46 = CollectionsMarshal.AsSpan(list46); + index = 0; + span46[index] = "liza"; questRoot8.Author = list46; - num = 1; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - ref QuestSequence reference32 = ref CollectionsMarshal.AsSpan(list47)[0]; + index = 1; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + Span span47 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference32 = ref span47[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037263u, new Vector3(46.829956f, -15.646994f, 107.86597f), 962) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037263u, new Vector3(46.829956f, -15.646994f, 107.86597f), 962) { StopDistance = 5f }; @@ -276148,13 +334629,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "liza"; questRoot9.Author = list49; - num = 5; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span14 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference33 = ref span14[0]; + index = 5; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference33 = ref span50[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -276162,7 +334646,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012155u, new Vector3(-63.21814f, 8.25915f, 28.732666f), 418) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012155u, new Vector3(-63.21814f, 8.25915f, 28.732666f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -276175,15 +334661,18 @@ public static class AssemblyQuestLoader }; obj27.Steps = list51; reference33 = obj27; - ref QuestSequence reference34 = ref span14[1]; + num++; + ref QuestSequence reference34 = ref span50[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list52)[0]; + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + ref QuestStep reference35 = ref span52[num2]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 1031682u, new Vector3(152.97156f, -20.000004f, 63.767456f), 418) { AethernetShortcut = new AethernetShortcut @@ -276195,7 +334684,9 @@ public static class AssemblyQuestLoader num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice + Span span53 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span53[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKYR103_04172_Q1_000_000") @@ -276204,11 +334695,13 @@ public static class AssemblyQuestLoader reference35 = obj29; obj28.Steps = list52; reference34 = obj28; - span14[2] = new QuestSequence + num++; + span50[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference36 = ref span14[3]; + num++; + ref QuestSequence reference36 = ref span50[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -276216,18 +334709,23 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1039506u, new Vector3(20.401245f, -16f, 159.96033f), 979); + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.Interact, 1039506u, new Vector3(20.401245f, -16f, 159.96033f), 979); obj30.Steps = list54; reference36 = obj30; - ref QuestSequence reference37 = ref span14[4]; + num++; + ref QuestSequence reference37 = ref span50[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012155u, new Vector3(-63.21814f, 8.25915f, 28.732666f), 418) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012155u, new Vector3(-63.21814f, 8.25915f, 28.732666f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; @@ -276240,13 +334738,16 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "liza"; + Span span56 = CollectionsMarshal.AsSpan(list56); + index = 0; + span56[index] = "liza"; questRoot10.Author = list56; - num = 2; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span15 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference38 = ref span15[0]; + index = 2; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + Span span57 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference38 = ref span57[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -276254,7 +334755,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041747u, new Vector3(56.65674f, -0.0004196167f, -24.765442f), 963) + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041747u, new Vector3(56.65674f, -0.0004196167f, -24.765442f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, SkipConditions = new SkipConditions @@ -276267,15 +334770,18 @@ public static class AssemblyQuestLoader }; obj32.Steps = list58; reference38 = obj32; - ref QuestSequence reference39 = ref span15[1]; + num++; + ref QuestSequence reference39 = ref span57[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040741u, new Vector3(418.265f, 3.43257f, -210.4372f), 957) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040741u, new Vector3(418.265f, 3.43257f, -210.4372f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand, NextQuestId = new QuestId(5005) @@ -276289,13 +334795,16 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "liza"; + Span span60 = CollectionsMarshal.AsSpan(list60); + index = 0; + span60[index] = "liza"; questRoot11.Author = list60; - num = 2; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span16 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference40 = ref span16[0]; + index = 2; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference40 = ref span61[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -276303,7 +334812,9 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041960u, new Vector3(-1.9379272f, -7.758f, 42.282715f), 962) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041960u, new Vector3(-1.9379272f, -7.758f, 42.282715f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -276316,15 +334827,18 @@ public static class AssemblyQuestLoader }; obj34.Steps = list62; reference40 = obj34; - ref QuestSequence reference41 = ref span16[1]; + num++; + ref QuestSequence reference41 = ref span61[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) { NextQuestId = new QuestId(4177) }; @@ -276337,13 +334851,16 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + Span span64 = CollectionsMarshal.AsSpan(list64); + index = 0; + span64[index] = "liza"; questRoot12.Author = list64; - num = 2; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span17 = CollectionsMarshal.AsSpan(list65); - ref QuestSequence reference42 = ref span17[0]; + index = 2; + List list65 = new List(index); + CollectionsMarshal.SetCount(list65, index); + Span span65 = CollectionsMarshal.AsSpan(list65); + num = 0; + ref QuestSequence reference42 = ref span65[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -276351,7 +334868,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span66[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -276365,15 +334884,18 @@ public static class AssemblyQuestLoader }; obj36.Steps = list66; reference42 = obj36; - ref QuestSequence reference43 = ref span17[1]; + num++; + ref QuestSequence reference43 = ref span65[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037059u, new Vector3(35.202515f, -15.646992f, 102.4032f), 962) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037059u, new Vector3(35.202515f, -15.646992f, 102.4032f), 962) { StopDistance = 7f, NextQuestId = new QuestId(4178) @@ -276387,13 +334909,16 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "liza"; + Span span68 = CollectionsMarshal.AsSpan(list68); + index = 0; + span68[index] = "liza"; questRoot13.Author = list68; - num = 2; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span18 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference44 = ref span18[0]; + index = 2; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + Span span69 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference44 = ref span69[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -276401,7 +334926,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -276415,15 +334942,18 @@ public static class AssemblyQuestLoader }; obj38.Steps = list70; reference44 = obj38; - ref QuestSequence reference45 = ref span18[1]; + num++; + ref QuestSequence reference45 = ref span69[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037059u, new Vector3(35.202515f, -15.646992f, 102.4032f), 962) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037059u, new Vector3(35.202515f, -15.646992f, 102.4032f), 962) { StopDistance = 7f, NextQuestId = new QuestId(4179) @@ -276437,13 +334967,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "liza"; + Span span72 = CollectionsMarshal.AsSpan(list72); + index = 0; + span72[index] = "liza"; questRoot14.Author = list72; - num = 2; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span19 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference46 = ref span19[0]; + index = 2; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + Span span73 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference46 = ref span73[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -276451,7 +334984,9 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -276465,15 +335000,18 @@ public static class AssemblyQuestLoader }; obj40.Steps = list74; reference46 = obj40; - ref QuestSequence reference47 = ref span19[1]; + num++; + ref QuestSequence reference47 = ref span73[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037059u, new Vector3(35.202515f, -15.646992f, 102.4032f), 962) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037059u, new Vector3(35.202515f, -15.646992f, 102.4032f), 962) { StopDistance = 7f, NextQuestId = new QuestId(5009) @@ -276487,13 +335025,16 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "liza"; + Span span76 = CollectionsMarshal.AsSpan(list76); + index = 0; + span76[index] = "liza"; questRoot15.Author = list76; - num = 4; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span20 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference48 = ref span20[0]; + index = 4; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + Span span77 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference48 = ref span77[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -276501,18 +335042,23 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039336u, new Vector3(-175.61609f, 7.84433f, 68.92493f), 962); + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039336u, new Vector3(-175.61609f, 7.84433f, 68.92493f), 962); obj42.Steps = list78; reference48 = obj42; - ref QuestSequence reference49 = ref span20[1]; + num++; + ref QuestSequence reference49 = ref span77[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1039328u, new Vector3(-152.3919f, -16.147f, 209.46057f), 962) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.Interact, 1039328u, new Vector3(-152.3919f, -16.147f, 209.46057f), 962) { AethernetShortcut = new AethernetShortcut { @@ -276522,7 +335068,8 @@ public static class AssemblyQuestLoader }; obj43.Steps = list79; reference49 = obj43; - ref QuestSequence reference50 = ref span20[2]; + num++; + ref QuestSequence reference50 = ref span77[num]; QuestSequence obj44 = new QuestSequence { Sequence = 2 @@ -276530,21 +335077,26 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Emote, 1039328u, new Vector3(-152.3919f, -16.147f, 209.46057f), 962) + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.Emote, 1039328u, new Vector3(-152.3919f, -16.147f, 209.46057f), 962) { Emote = EEmote.Poke }; obj44.Steps = list80; reference50 = obj44; - ref QuestSequence reference51 = ref span20[3]; + num++; + ref QuestSequence reference51 = ref span77[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039336u, new Vector3(-175.61609f, 7.84433f, 68.92493f), 962) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039336u, new Vector3(-175.61609f, 7.84433f, 68.92493f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -276562,13 +335114,16 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "liza"; + Span span82 = CollectionsMarshal.AsSpan(list82); + index = 0; + span82[index] = "liza"; questRoot16.Author = list82; - num = 4; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span21 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference52 = ref span21[0]; + index = 4; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + Span span83 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference52 = ref span83[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -276576,18 +335131,23 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037211u, new Vector3(36.209595f, 2.455876f, -22.90387f), 962); + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037211u, new Vector3(36.209595f, 2.455876f, -22.90387f), 962); obj46.Steps = list84; reference52 = obj46; - ref QuestSequence reference53 = ref span21[1]; + num++; + ref QuestSequence reference53 = ref span83[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Snipe, 1039337u, new Vector3(99.6261f, -10.587427f, 276.81384f), 962) + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span85[num2] = new QuestStep(EInteractionType.Snipe, 1039337u, new Vector3(99.6261f, -10.587427f, 276.81384f), 962) { Comment = "Click ewer, head and feet", AethernetShortcut = new AethernetShortcut @@ -276598,7 +335158,8 @@ public static class AssemblyQuestLoader }; obj47.Steps = list85; reference53 = obj47; - ref QuestSequence reference54 = ref span21[2]; + num++; + ref QuestSequence reference54 = ref span83[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -276606,7 +335167,9 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1039349u, new Vector3(-49.485046f, -14.999998f, 253.34546f), 962) + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.Interact, 1039349u, new Vector3(-49.485046f, -14.999998f, 253.34546f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -276617,15 +335180,18 @@ public static class AssemblyQuestLoader }; obj48.Steps = list86; reference54 = obj48; - ref QuestSequence reference55 = ref span21[3]; + num++; + ref QuestSequence reference55 = ref span83[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037211u, new Vector3(36.209595f, 2.455876f, -22.90387f), 962) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037211u, new Vector3(36.209595f, 2.455876f, -22.90387f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan }; @@ -276638,13 +335204,16 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "liza"; + Span span88 = CollectionsMarshal.AsSpan(list88); + index = 0; + span88[index] = "liza"; questRoot17.Author = list88; - num = 3; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span22 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference56 = ref span22[0]; + index = 3; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + Span span89 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference56 = ref span89[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -276652,19 +335221,23 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962); + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962); obj50.Steps = list90; reference56 = obj50; - ref QuestSequence reference57 = ref span22[1]; + num++; + ref QuestSequence reference57 = ref span89[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - Span span23 = CollectionsMarshal.AsSpan(list91); - ref QuestStep reference58 = ref span23[0]; + index2 = 3; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + ref QuestStep reference58 = ref span91[num2]; QuestStep obj52 = new QuestStep(EInteractionType.Interact, 1039340u, new Vector3(71.39697f, -14.446998f, 82.108765f), 962) { AethernetShortcut = new AethernetShortcut @@ -276673,19 +335246,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanScholarsHarbor } }; - num3 = 6; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span24 = CollectionsMarshal.AsSpan(list92); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list92 = new List(index3); + CollectionsMarshal.SetCount(list92, index3); + Span span92 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj52.CompletionQuestVariablesFlags = list92; reference58 = obj52; - ref QuestStep reference59 = ref span23[1]; + num2++; + ref QuestStep reference59 = ref span91[num2]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1039338u, new Vector3(205.67627f, 1.5468291f, 22.690125f), 962) { AethernetShortcut = new AethernetShortcut @@ -276697,16 +335277,23 @@ public static class AssemblyQuestLoader num3 = 6; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - Span span25 = CollectionsMarshal.AsSpan(list93); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span93 = CollectionsMarshal.AsSpan(list93); + index3 = 0; + span93[index3] = null; + index3++; + span93[index3] = null; + index3++; + span93[index3] = null; + index3++; + span93[index3] = null; + index3++; + span93[index3] = null; + index3++; + span93[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj53.CompletionQuestVariablesFlags = list93; reference59 = obj53; - ref QuestStep reference60 = ref span23[2]; + num2++; + ref QuestStep reference60 = ref span91[num2]; QuestStep obj54 = new QuestStep(EInteractionType.Interact, 1039339u, new Vector3(-237.93402f, 12.289626f, 16.189758f), 962) { AethernetShortcut = new AethernetShortcut @@ -276715,21 +335302,28 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanStudium } }; - num3 = 6; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span26 = CollectionsMarshal.AsSpan(list94); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + Span span94 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span94[num3] = null; + num3++; + span94[num3] = null; + num3++; + span94[num3] = null; + num3++; + span94[num3] = null; + num3++; + span94[num3] = null; + num3++; + span94[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj54.CompletionQuestVariablesFlags = list94; reference60 = obj54; obj51.Steps = list91; reference57 = obj51; - ref QuestSequence reference61 = ref span22[2]; + num++; + ref QuestSequence reference61 = ref span89[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -276737,7 +335331,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962) + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan }; @@ -276750,26 +335346,33 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + span96[index] = "liza"; questRoot18.Author = list96; - num = 3; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span27 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference62 = ref span27[0]; + index = 3; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + Span span97 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference62 = ref span97[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list98)[0]; + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + ref QuestStep reference63 = ref span98[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.AcceptQuest, 1039341u, new Vector3(164.72107f, 1.2891341f, 22.140747f), 962); num3 = 1; List list99 = new List(num3); CollectionsMarshal.SetCount(list99, num3); - CollectionsMarshal.AsSpan(list99)[0] = new DialogueChoice + Span span99 = CollectionsMarshal.AsSpan(list99); + index3 = 0; + span99[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA004_04183_Q1_000_000"), @@ -276779,7 +335382,8 @@ public static class AssemblyQuestLoader reference63 = questStep7; obj56.Steps = list98; reference62 = obj56; - ref QuestSequence reference64 = ref span27[1]; + num++; + ref QuestSequence reference64 = ref span97[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 @@ -276787,7 +335391,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1039342u, new Vector3(111.65027f, 18.835812f, -175.0058f), 962) + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.Interact, 1039342u, new Vector3(111.65027f, 18.835812f, -175.0058f), 962) { AethernetShortcut = new AethernetShortcut { @@ -276797,15 +335403,18 @@ public static class AssemblyQuestLoader }; obj57.Steps = list100; reference64 = obj57; - ref QuestSequence reference65 = ref span27[2]; + num++; + ref QuestSequence reference65 = ref span97[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039341u, new Vector3(164.72107f, 1.2891341f, 22.140747f), 962) + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039341u, new Vector3(164.72107f, 1.2891341f, 22.140747f), 962) { AethernetShortcut = new AethernetShortcut { @@ -276822,13 +335431,16 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "liza"; + Span span102 = CollectionsMarshal.AsSpan(list102); + index = 0; + span102[index] = "liza"; questRoot19.Author = list102; - num = 3; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span28 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference66 = ref span28[0]; + index = 3; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + Span span103 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference66 = ref span103[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -276836,26 +335448,32 @@ public static class AssemblyQuestLoader num2 = 2; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span29 = CollectionsMarshal.AsSpan(list104); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.6185f, 1.9123514f, 713.436f), 957); - span29[1] = new QuestStep(EInteractionType.AcceptQuest, 1037622u, new Vector3(189.94562f, 0.8560083f, 702.7896f), 957) + Span span104 = CollectionsMarshal.AsSpan(list104); + index2 = 0; + span104[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.6185f, 1.9123514f, 713.436f), 957); + index2++; + span104[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037622u, new Vector3(189.94562f, 0.8560083f, 702.7896f), 957) { StopDistance = 0.25f }; obj59.Steps = list104; reference66 = obj59; - ref QuestSequence reference67 = ref span28[1]; + num++; + ref QuestSequence reference67 = ref span103[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 2011979u, new Vector3(236.1333f, 10.666016f, 613.27527f), 957); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.Interact, 2011979u, new Vector3(236.1333f, 10.666016f, 613.27527f), 957); obj60.Steps = list105; reference67 = obj60; - ref QuestSequence reference68 = ref span28[2]; + num++; + ref QuestSequence reference68 = ref span103[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -276863,12 +335481,14 @@ public static class AssemblyQuestLoader num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span30 = CollectionsMarshal.AsSpan(list106); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.6185f, 1.9123514f, 713.436f), 957) + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.6185f, 1.9123514f, 713.436f), 957) { Fly = true }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1037622u, new Vector3(189.94562f, 0.8560083f, 702.7896f), 957) + index2++; + span106[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037622u, new Vector3(189.94562f, 0.8560083f, 702.7896f), 957) { StopDistance = 0.25f }; @@ -276881,28 +335501,34 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + Span span107 = CollectionsMarshal.AsSpan(list107); + index = 0; + span107[index] = "liza"; questRoot20.Author = list107; - num = 3; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span31 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference69 = ref span31[0]; + index = 3; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + Span span108 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference69 = ref span108[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037625u, new Vector3(176.47058f, 1.8742183f, 799.2217f), 957) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037625u, new Vector3(176.47058f, 1.8742183f, 799.2217f), 957) { StopDistance = 1f, Fly = true }; obj62.Steps = list109; reference69 = obj62; - ref QuestSequence reference70 = ref span31[1]; + num++; + ref QuestSequence reference70 = ref span108[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -276910,29 +335536,36 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list110)[0]; + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + ref QuestStep reference71 = ref span110[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, null, new Vector3(13.657948f, 1.6567476f, 631.81714f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = 13527u; + index3 = 1; + List list111 = new List(index3); + CollectionsMarshal.SetCount(list111, index3); + Span span111 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span111[num3] = 13527u; obj64.KillEnemyDataIds = list111; reference71 = obj64; obj63.Steps = list110; reference70 = obj63; - ref QuestSequence reference72 = ref span31[2]; + num++; + ref QuestSequence reference72 = ref span108[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037625u, new Vector3(176.47058f, 1.8742183f, 799.2217f), 957) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037625u, new Vector3(176.47058f, 1.8742183f, 799.2217f), 957) { StopDistance = 1f, Fly = true @@ -276946,13 +335579,16 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - CollectionsMarshal.AsSpan(list113)[0] = "liza"; + Span span113 = CollectionsMarshal.AsSpan(list113); + index = 0; + span113[index] = "liza"; questRoot21.Author = list113; - num = 5; - List list114 = new List(num); - CollectionsMarshal.SetCount(list114, num); - Span span32 = CollectionsMarshal.AsSpan(list114); - ref QuestSequence reference73 = ref span32[0]; + index = 5; + List list114 = new List(index); + CollectionsMarshal.SetCount(list114, index); + Span span114 = CollectionsMarshal.AsSpan(list114); + num = 0; + ref QuestSequence reference73 = ref span114[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -276960,24 +335596,30 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039375u, new Vector3(148.3634f, 5.192836f, 611.2611f), 957); + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039375u, new Vector3(148.3634f, 5.192836f, 611.2611f), 957); obj66.Steps = list115; reference73 = obj66; - ref QuestSequence reference74 = ref span32[1]; + num++; + ref QuestSequence reference74 = ref span114[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1039376u, new Vector3(-15.640564f, 35.742054f, 392.20264f), 957) + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.Interact, 1039376u, new Vector3(-15.640564f, 35.742054f, 392.20264f), 957) { Fly = true }; obj67.Steps = list116; reference74 = obj67; - ref QuestSequence reference75 = ref span32[2]; + num++; + ref QuestSequence reference75 = ref span114[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -276985,7 +335627,9 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - ref QuestStep reference76 = ref CollectionsMarshal.AsSpan(list117)[0]; + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + ref QuestStep reference76 = ref span117[index2]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, 2011900u, new Vector3(-17.135986f, 35.62976f, 394.39978f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -276993,23 +335637,29 @@ public static class AssemblyQuestLoader num3 = 1; List list118 = new List(num3); CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = 14121u; + Span span118 = CollectionsMarshal.AsSpan(list118); + index3 = 0; + span118[index3] = 14121u; obj69.KillEnemyDataIds = list118; reference76 = obj69; obj68.Steps = list117; reference75 = obj68; - ref QuestSequence reference77 = ref span32[3]; + num++; + ref QuestSequence reference77 = ref span114[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1039376u, new Vector3(-15.640564f, 35.742054f, 392.20264f), 957); + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span119[num2] = new QuestStep(EInteractionType.Interact, 1039376u, new Vector3(-15.640564f, 35.742054f, 392.20264f), 957); obj70.Steps = list119; reference77 = obj70; - ref QuestSequence reference78 = ref span32[4]; + num++; + ref QuestSequence reference78 = ref span114[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -277017,15 +335667,19 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list120)[0]; + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + ref QuestStep reference79 = ref span120[index2]; QuestStep obj72 = new QuestStep(EInteractionType.CompleteQuest, 1039377u, new Vector3(147.60046f, 5.186336f, 610.62024f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = new DialogueChoice + index3 = 1; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + Span span121 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span121[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA019_04198_Q1_000_000"), @@ -277042,24 +335696,30 @@ public static class AssemblyQuestLoader num = 1; List list122 = new List(num); CollectionsMarshal.SetCount(list122, num); - CollectionsMarshal.AsSpan(list122)[0] = "liza"; + Span span122 = CollectionsMarshal.AsSpan(list122); + index = 0; + span122[index] = "liza"; questRoot22.Author = list122; - num = 4; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - Span span33 = CollectionsMarshal.AsSpan(list123); - ref QuestSequence reference80 = ref span33[0]; + index = 4; + List list123 = new List(index); + CollectionsMarshal.SetCount(list123, index); + Span span123 = CollectionsMarshal.AsSpan(list123); + num = 0; + ref QuestSequence reference80 = ref span123[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037682u, new Vector3(-564.1108f, 11.802608f, 124.28467f), 957); + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037682u, new Vector3(-564.1108f, 11.802608f, 124.28467f), 957); obj73.Steps = list124; reference80 = obj73; - ref QuestSequence reference81 = ref span33[1]; + num++; + ref QuestSequence reference81 = ref span123[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -277067,7 +335727,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list125)[0]; + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + ref QuestStep reference82 = ref span125[index2]; QuestStep obj75 = new QuestStep(EInteractionType.Combat, 1039378u, new Vector3(-103.25781f, 2.5712337f, 597.589f), 957) { Fly = true, @@ -277076,25 +335738,31 @@ public static class AssemblyQuestLoader num3 = 2; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - Span span34 = CollectionsMarshal.AsSpan(list126); - span34[0] = 14119u; - span34[1] = 14120u; + Span span126 = CollectionsMarshal.AsSpan(list126); + index3 = 0; + span126[index3] = 14119u; + index3++; + span126[index3] = 14120u; obj75.KillEnemyDataIds = list126; reference82 = obj75; obj74.Steps = list125; reference81 = obj74; - ref QuestSequence reference83 = ref span33[2]; + num++; + ref QuestSequence reference83 = ref span123[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 2011933u, new Vector3(-102.61694f, 3.0059814f, 598.9319f), 957); + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.Interact, 2011933u, new Vector3(-102.61694f, 3.0059814f, 598.9319f), 957); obj76.Steps = list127; reference83 = obj76; - ref QuestSequence reference84 = ref span33[3]; + num++; + ref QuestSequence reference84 = ref span123[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -277102,7 +335770,9 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037682u, new Vector3(-564.1108f, 11.802608f, 124.28467f), 957) + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span128[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037682u, new Vector3(-564.1108f, 11.802608f, 124.28467f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -277120,13 +335790,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -277134,22 +335807,27 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037671u, new Vector3(-554.37555f, 1.120665f, 22.690125f), 957) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037671u, new Vector3(-554.37555f, 1.120665f, 22.690125f), 957) { StopDistance = 0.5f, Fly = true }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1039384u, new Vector3(223.22424f, 10.211119f, 562.4321f), 957) { Fly = true, @@ -277158,7 +335836,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA021_04200_Q1_000_000"), @@ -277168,7 +335848,8 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -277176,7 +335857,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037671u, new Vector3(-554.37555f, 1.120665f, 22.690125f), 957) + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037671u, new Vector3(-554.37555f, 1.120665f, 22.690125f), 957) { StopDistance = 0.5f, Fly = true, @@ -277191,27 +335874,33 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + Span span7 = CollectionsMarshal.AsSpan(list7); + index = 0; + span7[index] = "liza"; questRoot2.Author = list7; - num = 3; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span2[0]; + index = 3; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span8[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039516u, new Vector3(-554.89435f, 11.402609f, 125.10864f), 957) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039516u, new Vector3(-554.89435f, 11.402609f, 125.10864f), 957) { Fly = true }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[1]; + num++; + ref QuestSequence reference6 = ref span8[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -277219,27 +335908,35 @@ public static class AssemblyQuestLoader num2 = 3; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestStep reference7 = ref span3[0]; + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + ref QuestStep reference7 = ref span10[index2]; QuestStep obj7 = new QuestStep(EInteractionType.Emote, 1037680u, new Vector3(-550.1946f, 1.6023201f, 50.766724f), 957) { StopDistance = 1f, Fly = true, Emote = EEmote.Greeting }; - num3 = 6; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span4 = CollectionsMarshal.AsSpan(list11); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list11 = new List(index3); + CollectionsMarshal.SetCount(list11, index3); + Span span11 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj7.CompletionQuestVariablesFlags = list11; reference7 = obj7; - ref QuestStep reference8 = ref span3[1]; + index2++; + ref QuestStep reference8 = ref span10[index2]; QuestStep obj8 = new QuestStep(EInteractionType.Emote, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957) { Fly = true, @@ -277248,44 +335945,60 @@ public static class AssemblyQuestLoader num3 = 6; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span5 = CollectionsMarshal.AsSpan(list12); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span12 = CollectionsMarshal.AsSpan(list12); + index3 = 0; + span12[index3] = null; + index3++; + span12[index3] = null; + index3++; + span12[index3] = null; + index3++; + span12[index3] = null; + index3++; + span12[index3] = null; + index3++; + span12[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj8.CompletionQuestVariablesFlags = list12; reference8 = obj8; - ref QuestStep reference9 = ref span3[2]; + index2++; + ref QuestStep reference9 = ref span10[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Emote, 1037676u, new Vector3(-502.95264f, 12.375282f, 116.31946f), 957) { Fly = true, Emote = EEmote.Greeting }; - num3 = 6; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - Span span6 = CollectionsMarshal.AsSpan(list13); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list13 = new List(index3); + CollectionsMarshal.SetCount(list13, index3); + Span span13 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj9.CompletionQuestVariablesFlags = list13; reference9 = obj9; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference10 = ref span2[2]; + num++; + ref QuestSequence reference10 = ref span8[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039516u, new Vector3(-554.89435f, 11.402609f, 125.10864f), 957) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039516u, new Vector3(-554.89435f, 11.402609f, 125.10864f), 957) { Fly = true }; @@ -277298,13 +336011,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; + Span span15 = CollectionsMarshal.AsSpan(list15); + index = 0; + span15[index] = "liza"; questRoot3.Author = list15; - num = 6; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span7 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span7[0]; + index = 6; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + Span span16 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span16[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -277312,7 +336028,9 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + ref QuestStep reference12 = ref span17[index2]; QuestStep obj12 = new QuestStep(EInteractionType.AcceptQuest, 1039379u, new Vector3(-478.3246f, 39.636753f, 95.47571f), 957) { Fly = true @@ -277320,7 +336038,9 @@ public static class AssemblyQuestLoader num3 = 1; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new DialogueChoice + Span span18 = CollectionsMarshal.AsSpan(list18); + index3 = 0; + span18[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA023_04202_Q1_000_000"), @@ -277330,21 +336050,25 @@ public static class AssemblyQuestLoader reference12 = obj12; obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference13 = ref span7[1]; + num++; + ref QuestSequence reference13 = ref span16[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1039380u, new Vector3(-386.862f, 21.832859f, 206.77502f), 957) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.Interact, 1039380u, new Vector3(-386.862f, 21.832859f, 206.77502f), 957) { Fly = true }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span7[2]; + num++; + ref QuestSequence reference14 = ref span16[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 @@ -277352,31 +336076,39 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1039380u, new Vector3(-386.862f, 21.832859f, 206.77502f), 957); + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new QuestStep(EInteractionType.Interact, 1039380u, new Vector3(-386.862f, 21.832859f, 206.77502f), 957); obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span7[3]; + num++; + ref QuestSequence reference15 = ref span16[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list21)[0]; + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + ref QuestStep reference16 = ref span21[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, 2011911u, new Vector3(-387.28925f, 21.744019f, 208.88062f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = 14118u; + index3 = 1; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = 14118u; obj16.KillEnemyDataIds = list22; reference16 = obj16; obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference17 = ref span7[4]; + num++; + ref QuestSequence reference17 = ref span16[num]; QuestSequence obj17 = new QuestSequence { Sequence = 4 @@ -277384,18 +336116,23 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1039380u, new Vector3(-386.862f, 21.832859f, 206.77502f), 957); + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.Interact, 1039380u, new Vector3(-386.862f, 21.832859f, 206.77502f), 957); obj17.Steps = list23; reference17 = obj17; - ref QuestSequence reference18 = ref span7[5]; + num++; + ref QuestSequence reference18 = ref span16[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039379u, new Vector3(-478.3246f, 39.636753f, 95.47571f), 957) + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039379u, new Vector3(-478.3246f, 39.636753f, 95.47571f), 957) { Fly = true }; @@ -277408,13 +336145,16 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "liza"; questRoot4.Author = list25; - num = 5; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span8 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference19 = ref span8[0]; + index = 5; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference19 = ref span26[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -277422,26 +336162,32 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957); + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957); obj19.Steps = list27; reference19 = obj19; - ref QuestSequence reference20 = ref span8[1]; + num++; + ref QuestSequence reference20 = ref span26[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - Span span9 = CollectionsMarshal.AsSpan(list28); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.631685f, 90.24879f, -136.69801f), 957); - span9[1] = new QuestStep(EInteractionType.Interact, 1039382u, new Vector3(17.07483f, 90.248795f, -133.34863f), 957) + index2 = 2; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.631685f, 90.24879f, -136.69801f), 957); + num2++; + span28[num2] = new QuestStep(EInteractionType.Interact, 1039382u, new Vector3(17.07483f, 90.248795f, -133.34863f), 957) { StopDistance = 7f }; obj20.Steps = list28; reference20 = obj20; - ref QuestSequence reference21 = ref span8[2]; + num++; + ref QuestSequence reference21 = ref span26[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -277449,81 +336195,113 @@ public static class AssemblyQuestLoader num2 = 4; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span10 = CollectionsMarshal.AsSpan(list29); - ref QuestStep reference22 = ref span10[0]; + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + ref QuestStep reference22 = ref span29[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2011912u, new Vector3(65.293335f, 96.29968f, -130.23578f), 957); num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span11 = CollectionsMarshal.AsSpan(list30); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span30 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list30; reference22 = questStep; - ref QuestStep reference23 = ref span10[1]; + index2++; + ref QuestStep reference23 = ref span29[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(61.000668f, 94.60124f, -159.90234f), 957); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span12 = CollectionsMarshal.AsSpan(list31); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list31; skipConditions.StepIf = skipStepConditions; questStep2.SkipConditions = skipConditions; reference23 = questStep2; - ref QuestStep reference24 = ref span10[2]; + index2++; + ref QuestStep reference24 = ref span29[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2011914u, null, 957); num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span13 = CollectionsMarshal.AsSpan(list32); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span32 = CollectionsMarshal.AsSpan(list32); + index3 = 0; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list32; reference24 = questStep3; - ref QuestStep reference25 = ref span10[3]; + index2++; + ref QuestStep reference25 = ref span29[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2011913u, new Vector3(79.51477f, 93.0647f, -157.09167f), 957); - num3 = 6; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span14 = CollectionsMarshal.AsSpan(list33); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list33 = new List(index3); + CollectionsMarshal.SetCount(list33, index3); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list33; reference25 = questStep4; obj21.Steps = list29; reference21 = obj21; - ref QuestSequence reference26 = ref span8[3]; + num++; + ref QuestSequence reference26 = ref span26[num]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1039382u, new Vector3(17.07483f, 90.248795f, -133.34863f), 957); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.Interact, 1039382u, new Vector3(17.07483f, 90.248795f, -133.34863f), 957); obj22.Steps = list34; reference26 = obj22; - ref QuestSequence reference27 = ref span8[4]; + num++; + ref QuestSequence reference27 = ref span26[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -277531,7 +336309,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957) + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; @@ -277544,27 +336324,33 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "liza"; questRoot5.Author = list36; - num = 6; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span15 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference28 = ref span15[0]; + index = 6; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference28 = ref span37[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039365u, new Vector3(-490.37924f, 5.667216f, 63.553833f), 957) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039365u, new Vector3(-490.37924f, 5.667216f, 63.553833f), 957) { Fly = true }; obj24.Steps = list38; reference28 = obj24; - ref QuestSequence reference29 = ref span15[1]; + num++; + ref QuestSequence reference29 = ref span37[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -277572,27 +336358,33 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1039366u, new Vector3(-385.24457f, 15.095761f, 62.974f), 957) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.Interact, 1039366u, new Vector3(-385.24457f, 15.095761f, 62.974f), 957) { Fly = true }; obj25.Steps = list39; reference29 = obj25; - ref QuestSequence reference30 = ref span15[2]; + num++; + ref QuestSequence reference30 = ref span37[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1039367u, new Vector3(-161.85254f, 32.732735f, 210.74231f), 957) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.Interact, 1039367u, new Vector3(-161.85254f, 32.732735f, 210.74231f), 957) { Fly = true }; obj26.Steps = list40; reference30 = obj26; - ref QuestSequence reference31 = ref span15[3]; + num++; + ref QuestSequence reference31 = ref span37[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 @@ -277600,36 +336392,51 @@ public static class AssemblyQuestLoader num2 = 3; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span16 = CollectionsMarshal.AsSpan(list41); - ref QuestStep reference32 = ref span16[0]; + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + ref QuestStep reference32 = ref span41[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2011903u, new Vector3(-161.5473f, 32.211792f, 225.36047f), 957); num3 = 6; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span17 = CollectionsMarshal.AsSpan(list42); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span42 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list42; reference32 = questStep5; - ref QuestStep reference33 = ref span16[1]; + index2++; + ref QuestStep reference33 = ref span41[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2011904u, new Vector3(-148.57715f, 34.10388f, 207.84314f), 957); - num3 = 6; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - Span span18 = CollectionsMarshal.AsSpan(list43); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list43; reference33 = questStep6; - ref QuestStep reference34 = ref span16[2]; + index2++; + ref QuestStep reference34 = ref span41[index2]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, 2011902u, new Vector3(-170.21442f, 31.814941f, 193.1029f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -277637,34 +336444,46 @@ public static class AssemblyQuestLoader num3 = 1; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = 14117u; + Span span44 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span44[index3] = 14117u; obj28.KillEnemyDataIds = list44; - num3 = 6; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - Span span19 = CollectionsMarshal.AsSpan(list45); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + Span span45 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = null; + num3++; + span45[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj28.CompletionQuestVariablesFlags = list45; reference34 = obj28; obj27.Steps = list41; reference31 = obj27; - ref QuestSequence reference35 = ref span15[4]; + num++; + ref QuestSequence reference35 = ref span37[num]; QuestSequence obj29 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1039367u, new Vector3(-161.85254f, 32.732735f, 210.74231f), 957); + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.Interact, 1039367u, new Vector3(-161.85254f, 32.732735f, 210.74231f), 957); obj29.Steps = list46; reference35 = obj29; - ref QuestSequence reference36 = ref span15[5]; + num++; + ref QuestSequence reference36 = ref span37[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -277672,7 +336491,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039365u, new Vector3(-490.37924f, 5.667216f, 63.553833f), 957) + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039365u, new Vector3(-490.37924f, 5.667216f, 63.553833f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -277686,27 +336507,33 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + Span span48 = CollectionsMarshal.AsSpan(list48); + index = 0; + span48[index] = "liza"; questRoot6.Author = list48; - num = 5; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span20 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference37 = ref span20[0]; + index = 5; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + Span span49 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference37 = ref span49[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039371u, new Vector3(-409.93365f, 10.751212f, 33.035767f), 957) + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039371u, new Vector3(-409.93365f, 10.751212f, 33.035767f), 957) { Fly = true }; obj31.Steps = list50; reference37 = obj31; - ref QuestSequence reference38 = ref span20[1]; + num++; + ref QuestSequence reference38 = ref span49[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -277714,21 +336541,26 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1039372u, new Vector3(195.91052f, 4.763736f, 658.2893f), 957) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.Interact, 1039372u, new Vector3(195.91052f, 4.763736f, 658.2893f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj32.Steps = list51; reference38 = obj32; - ref QuestSequence reference39 = ref span20[2]; + num++; + ref QuestSequence reference39 = ref span49[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list52)[0]; + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + ref QuestStep reference40 = ref span52[num2]; QuestStep obj34 = new QuestStep(EInteractionType.Interact, 1039373u, new Vector3(-314.6258f, 0.70631444f, 561.12f), 957) { Fly = true @@ -277736,7 +336568,9 @@ public static class AssemblyQuestLoader num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice + Span span53 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span53[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA026_04205_Q1_000_000"), @@ -277746,7 +336580,8 @@ public static class AssemblyQuestLoader reference40 = obj34; obj33.Steps = list52; reference39 = obj33; - ref QuestSequence reference41 = ref span20[3]; + num++; + ref QuestSequence reference41 = ref span49[num]; QuestSequence obj35 = new QuestSequence { Sequence = 3 @@ -277754,25 +336589,33 @@ public static class AssemblyQuestLoader num2 = 6; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span21 = CollectionsMarshal.AsSpan(list54); - ref QuestStep reference42 = ref span21[0]; + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + ref QuestStep reference42 = ref span54[index2]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 2011905u, new Vector3(-443.04572f, -0.22894287f, 800.7781f), 957) { Fly = true }; - num3 = 6; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - Span span22 = CollectionsMarshal.AsSpan(list55); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list55 = new List(index3); + CollectionsMarshal.SetCount(list55, index3); + Span span55 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span55[num3] = null; + num3++; + span55[num3] = null; + num3++; + span55[num3] = null; + num3++; + span55[num3] = null; + num3++; + span55[num3] = null; + num3++; + span55[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj36.CompletionQuestVariablesFlags = list55; reference42 = obj36; - ref QuestStep reference43 = ref span21[1]; + index2++; + ref QuestStep reference43 = ref span54[index2]; QuestStep obj37 = new QuestStep(EInteractionType.Interact, 2011906u, new Vector3(-458.42682f, -0.19836426f, 830.8689f), 957) { Mount = false @@ -277780,72 +336623,103 @@ public static class AssemblyQuestLoader num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span23 = CollectionsMarshal.AsSpan(list56); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span56 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj37.CompletionQuestVariablesFlags = list56; reference43 = obj37; - span21[2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-458.42682f, -0.19836426f, 830.8689f), 957) + index2++; + span54[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-458.42682f, -0.19836426f, 830.8689f), 957) { StopDistance = 5f }; - ref QuestStep reference44 = ref span21[3]; + index2++; + ref QuestStep reference44 = ref span54[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2011908u, new Vector3(-484.85547f, -72.22095f, 814.35876f), 957); - num3 = 6; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - Span span24 = CollectionsMarshal.AsSpan(list57); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + Span span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list57; reference44 = questStep7; - ref QuestStep reference45 = ref span21[4]; + index2++; + ref QuestStep reference45 = ref span54[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2011907u, new Vector3(-452.90308f, -67.00244f, 776.2417f), 957); num3 = 6; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span25 = CollectionsMarshal.AsSpan(list58); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span58 = CollectionsMarshal.AsSpan(list58); + index3 = 0; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list58; reference45 = questStep8; - ref QuestStep reference46 = ref span21[5]; + index2++; + ref QuestStep reference46 = ref span54[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2011909u, new Vector3(-513.51184f, -52.689453f, 773.73914f), 957); - num3 = 6; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - Span span26 = CollectionsMarshal.AsSpan(list59); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list59 = new List(index3); + CollectionsMarshal.SetCount(list59, index3); + Span span59 = CollectionsMarshal.AsSpan(list59); + num3 = 0; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list59; reference46 = questStep9; obj35.Steps = list54; reference41 = obj35; - ref QuestSequence reference47 = ref span20[4]; + num++; + ref QuestSequence reference47 = ref span49[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039371u, new Vector3(-409.93365f, 10.751212f, 33.035767f), 957) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039371u, new Vector3(-409.93365f, 10.751212f, 33.035767f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -277859,13 +336733,16 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + Span span61 = CollectionsMarshal.AsSpan(list61); + index = 0; + span61[index] = "liza"; questRoot7.Author = list61; - num = 4; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span27 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference48 = ref span27[0]; + index = 4; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + Span span62 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference48 = ref span62[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 @@ -277873,21 +336750,26 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037685u, new Vector3(-468.864f, 6.2912574f, 3.463745f), 957) + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037685u, new Vector3(-468.864f, 6.2912574f, 3.463745f), 957) { Fly = true }; obj39.Steps = list63; reference48 = obj39; - ref QuestSequence reference49 = ref span27[1]; + num++; + ref QuestSequence reference49 = ref span62[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list64)[0]; + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + ref QuestStep reference50 = ref span64[num2]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(-568.1513f, 40.91181f, -451.32486f), 957) { StopDistance = 0.5f, @@ -277897,12 +336779,15 @@ public static class AssemblyQuestLoader num3 = 1; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = 14116u; + Span span65 = CollectionsMarshal.AsSpan(list65); + index3 = 0; + span65[index3] = 14116u; obj41.KillEnemyDataIds = list65; reference50 = obj41; obj40.Steps = list64; reference49 = obj40; - ref QuestSequence reference51 = ref span27[2]; + num++; + ref QuestSequence reference51 = ref span62[num]; QuestSequence obj42 = new QuestSequence { Sequence = 2 @@ -277910,18 +336795,23 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1039383u, new Vector3(-567.6509f, 41.313267f, -448.41687f), 957); + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span66[index2] = new QuestStep(EInteractionType.Interact, 1039383u, new Vector3(-567.6509f, 41.313267f, -448.41687f), 957); obj42.Steps = list66; reference51 = obj42; - ref QuestSequence reference52 = ref span27[3]; + num++; + ref QuestSequence reference52 = ref span62[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037685u, new Vector3(-468.864f, 6.2912574f, 3.463745f), 957) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037685u, new Vector3(-468.864f, 6.2912574f, 3.463745f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -277935,13 +336825,16 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "liza"; + Span span68 = CollectionsMarshal.AsSpan(list68); + index = 0; + span68[index] = "liza"; questRoot8.Author = list68; - num = 5; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span28 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference53 = ref span28[0]; + index = 5; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + Span span69 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference53 = ref span69[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -277949,28 +336842,34 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039385u, new Vector3(-480.12518f, 5.362214f, 37.582886f), 957) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039385u, new Vector3(-480.12518f, 5.362214f, 37.582886f), 957) { StopDistance = 0.5f, Fly = true }; obj44.Steps = list70; reference53 = obj44; - ref QuestSequence reference54 = ref span28[1]; + num++; + ref QuestSequence reference54 = ref span69[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1039386u, new Vector3(-431.7846f, 72.61802f, -555.3826f), 957) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.Interact, 1039386u, new Vector3(-431.7846f, 72.61802f, -555.3826f), 957) { Fly = true }; obj45.Steps = list71; reference54 = obj45; - ref QuestSequence reference55 = ref span28[2]; + num++; + ref QuestSequence reference55 = ref span69[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -277978,26 +336877,34 @@ public static class AssemblyQuestLoader num2 = 9; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span29 = CollectionsMarshal.AsSpan(list72); - ref QuestStep reference56 = ref span29[0]; + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + ref QuestStep reference56 = ref span72[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-477.78827f, 73.67918f, -542.7145f), 957); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span30 = CollectionsMarshal.AsSpan(list73); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + Span span73 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list73; skipConditions2.StepIf = skipStepConditions2; questStep10.SkipConditions = skipConditions2; reference56 = questStep10; - ref QuestStep reference57 = ref span29[1]; + index2++; + ref QuestStep reference57 = ref span72[index2]; QuestStep obj47 = new QuestStep(EInteractionType.UseItem, 2011962u, new Vector3(-477.16492f, 74.75391f, -544.5792f), 957) { ItemId = 2003199u @@ -278005,69 +336912,97 @@ public static class AssemblyQuestLoader num3 = 6; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - Span span31 = CollectionsMarshal.AsSpan(list74); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span74 = CollectionsMarshal.AsSpan(list74); + index3 = 0; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj47.CompletionQuestVariablesFlags = list74; reference57 = obj47; - ref QuestStep reference58 = ref span29[2]; + index2++; + ref QuestStep reference58 = ref span72[index2]; QuestStep obj48 = new QuestStep(EInteractionType.UseItem, 2011963u, new Vector3(-479.2401f, 74.784424f, -541.619f), 957) { DelaySecondsAtStart = 3f, ItemId = 2003199u }; - num3 = 6; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - Span span32 = CollectionsMarshal.AsSpan(list75); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span75 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj48.CompletionQuestVariablesFlags = list75; reference58 = obj48; - ref QuestStep reference59 = ref span29[3]; + index2++; + ref QuestStep reference59 = ref span72[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.98328f, 73.32367f, -521.75024f), 957); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); num3 = 6; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span33 = CollectionsMarshal.AsSpan(list76); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span76 = CollectionsMarshal.AsSpan(list76); + index3 = 0; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list76; skipConditions3.StepIf = skipStepConditions3; questStep11.SkipConditions = skipConditions3; reference59 = questStep11; - ref QuestStep reference60 = ref span29[4]; + index2++; + ref QuestStep reference60 = ref span72[index2]; QuestStep obj49 = new QuestStep(EInteractionType.UseItem, 2011964u, new Vector3(-484.67236f, 74.021484f, -523.15564f), 957) { ItemId = 2003199u }; - num3 = 6; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - Span span34 = CollectionsMarshal.AsSpan(list77); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list77 = new List(index3); + CollectionsMarshal.SetCount(list77, index3); + Span span77 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + span77[num3] = null; + num3++; + span77[num3] = null; + num3++; + span77[num3] = null; + num3++; + span77[num3] = null; + num3++; + span77[num3] = null; + num3++; + span77[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj49.CompletionQuestVariablesFlags = list77; reference60 = obj49; - ref QuestStep reference61 = ref span29[5]; + index2++; + ref QuestStep reference61 = ref span72[index2]; QuestStep obj50 = new QuestStep(EInteractionType.UseItem, 2011965u, new Vector3(-483.6042f, 74.35718f, -519.7986f), 957) { DelaySecondsAtStart = 3f, @@ -278076,34 +337011,49 @@ public static class AssemblyQuestLoader num3 = 6; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - Span span35 = CollectionsMarshal.AsSpan(list78); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span78 = CollectionsMarshal.AsSpan(list78); + index3 = 0; + span78[index3] = null; + index3++; + span78[index3] = null; + index3++; + span78[index3] = null; + index3++; + span78[index3] = null; + index3++; + span78[index3] = null; + index3++; + span78[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj50.CompletionQuestVariablesFlags = list78; reference61 = obj50; - span29[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-475.0877f, 73.24273f, -512.62787f), 957); - ref QuestStep reference62 = ref span29[7]; + index2++; + span72[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-475.0877f, 73.24273f, -512.62787f), 957); + index2++; + ref QuestStep reference62 = ref span72[index2]; QuestStep obj51 = new QuestStep(EInteractionType.UseItem, 2011967u, new Vector3(-476.92078f, 74.08252f, -511.43665f), 957) { ItemId = 2003199u }; - num3 = 6; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - Span span36 = CollectionsMarshal.AsSpan(list79); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + index3 = 6; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + Span span79 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span79[num3] = null; + num3++; + span79[num3] = null; + num3++; + span79[num3] = null; + num3++; + span79[num3] = null; + num3++; + span79[num3] = null; + num3++; + span79[num3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); obj51.CompletionQuestVariablesFlags = list79; reference62 = obj51; - ref QuestStep reference63 = ref span29[8]; + index2++; + ref QuestStep reference63 = ref span72[index2]; QuestStep obj52 = new QuestStep(EInteractionType.UseItem, 2011966u, new Vector3(-473.0144f, 74.32666f, -512.3827f), 957) { DelaySecondsAtStart = 3f, @@ -278112,32 +337062,42 @@ public static class AssemblyQuestLoader num3 = 6; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - Span span37 = CollectionsMarshal.AsSpan(list80); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span80 = CollectionsMarshal.AsSpan(list80); + index3 = 0; + span80[index3] = null; + index3++; + span80[index3] = null; + index3++; + span80[index3] = null; + index3++; + span80[index3] = null; + index3++; + span80[index3] = null; + index3++; + span80[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj52.CompletionQuestVariablesFlags = list80; reference63 = obj52; obj46.Steps = list72; reference55 = obj46; - ref QuestSequence reference64 = ref span28[3]; + num++; + ref QuestSequence reference64 = ref span69[num]; QuestSequence obj53 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1039386u, new Vector3(-431.7846f, 72.61802f, -555.3826f), 957) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.Interact, 1039386u, new Vector3(-431.7846f, 72.61802f, -555.3826f), 957) { Fly = true }; obj53.Steps = list81; reference64 = obj53; - ref QuestSequence reference65 = ref span28[4]; + num++; + ref QuestSequence reference65 = ref span69[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -278145,7 +337105,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039385u, new Vector3(-480.12518f, 5.362214f, 37.582886f), 957) + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039385u, new Vector3(-480.12518f, 5.362214f, 37.582886f), 957) { StopDistance = 0.5f, Fly = true, @@ -278160,24 +337122,30 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "liza"; + Span span83 = CollectionsMarshal.AsSpan(list83); + index = 0; + span83[index] = "liza"; questRoot9.Author = list83; - num = 3; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span38 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference66 = ref span38[0]; + index = 3; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + Span span84 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference66 = ref span84[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037673u, new Vector3(-517.0215f, 11.975277f, 100.541626f), 957); + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span85[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037673u, new Vector3(-517.0215f, 11.975277f, 100.541626f), 957); obj55.Steps = list85; reference66 = obj55; - ref QuestSequence reference67 = ref span38[1]; + num++; + ref QuestSequence reference67 = ref span84[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -278185,63 +337153,87 @@ public static class AssemblyQuestLoader num2 = 3; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span39 = CollectionsMarshal.AsSpan(list86); - ref QuestStep reference68 = ref span39[0]; + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + ref QuestStep reference68 = ref span86[index2]; QuestStep obj57 = new QuestStep(EInteractionType.Interact, 1039370u, new Vector3(-106.21808f, 95.53504f, -700.4959f), 957) { Fly = true }; - num3 = 6; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - Span span40 = CollectionsMarshal.AsSpan(list87); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list87 = new List(index3); + CollectionsMarshal.SetCount(list87, index3); + Span span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj57.CompletionQuestVariablesFlags = list87; reference68 = obj57; - ref QuestStep reference69 = ref span39[1]; + index2++; + ref QuestStep reference69 = ref span86[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1039368u, new Vector3(-65.07977f, 89.860886f, -659.8764f), 957); num3 = 6; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - Span span41 = CollectionsMarshal.AsSpan(list88); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span88 = CollectionsMarshal.AsSpan(list88); + index3 = 0; + span88[index3] = null; + index3++; + span88[index3] = null; + index3++; + span88[index3] = null; + index3++; + span88[index3] = null; + index3++; + span88[index3] = null; + index3++; + span88[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list88; reference69 = questStep12; - ref QuestStep reference70 = ref span39[2]; + index2++; + ref QuestStep reference70 = ref span86[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1039369u, new Vector3(-66.14789f, 89.4264f, -635.8892f), 957); - num3 = 6; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - Span span42 = CollectionsMarshal.AsSpan(list89); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list89 = new List(index3); + CollectionsMarshal.SetCount(list89, index3); + Span span89 = CollectionsMarshal.AsSpan(list89); + num3 = 0; + span89[num3] = null; + num3++; + span89[num3] = null; + num3++; + span89[num3] = null; + num3++; + span89[num3] = null; + num3++; + span89[num3] = null; + num3++; + span89[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list89; reference70 = questStep13; obj56.Steps = list86; reference67 = obj56; - ref QuestSequence reference71 = ref span38[2]; + num++; + ref QuestSequence reference71 = ref span84[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037673u, new Vector3(-517.0215f, 11.975277f, 100.541626f), 957) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037673u, new Vector3(-517.0215f, 11.975277f, 100.541626f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -278255,13 +337247,16 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "liza"; + Span span91 = CollectionsMarshal.AsSpan(list91); + index = 0; + span91[index] = "liza"; questRoot10.Author = list91; - num = 3; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span43 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference72 = ref span43[0]; + index = 3; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + Span span92 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference72 = ref span92[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -278269,29 +337264,35 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037681u, new Vector3(-554.74176f, 11.402611f, 137.31592f), 957) + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037681u, new Vector3(-554.74176f, 11.402611f, 137.31592f), 957) { Fly = true }; obj59.Steps = list93; reference72 = obj59; - ref QuestSequence reference73 = ref span43[1]; + num++; + ref QuestSequence reference73 = ref span92[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span44 = CollectionsMarshal.AsSpan(list94); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-281.16296f, 94.31451f, -289.12802f), 957) + index2 = 2; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-281.16296f, 94.31451f, -289.12802f), 957) { Fly = true }; - span44[1] = new QuestStep(EInteractionType.Interact, 2011910u, new Vector3(-280.99493f, 95.87244f, -287.64783f), 957); + num2++; + span94[num2] = new QuestStep(EInteractionType.Interact, 2011910u, new Vector3(-280.99493f, 95.87244f, -287.64783f), 957); obj60.Steps = list94; reference73 = obj60; - ref QuestSequence reference74 = ref span43[2]; + num++; + ref QuestSequence reference74 = ref span92[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -278299,7 +337300,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037681u, new Vector3(-554.74176f, 11.402611f, 137.31592f), 957) + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037681u, new Vector3(-554.74176f, 11.402611f, 137.31592f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -278313,24 +337316,30 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + span96[index] = "liza"; questRoot11.Author = list96; - num = 5; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span45 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference75 = ref span45[0]; + index = 5; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + Span span97 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference75 = ref span97[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039510u, new Vector3(-309.07147f, 21.799957f, -174.36487f), 962); + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039510u, new Vector3(-309.07147f, 21.799957f, -174.36487f), 962); obj62.Steps = list98; reference75 = obj62; - ref QuestSequence reference76 = ref span45[1]; + num++; + ref QuestSequence reference76 = ref span97[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -278338,30 +337347,37 @@ public static class AssemblyQuestLoader num2 = 3; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span46 = CollectionsMarshal.AsSpan(list99); - span46[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.63965f, 25.46388f, -157.38919f), 962); - span46[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-191.05865f, 22.001097f, -166.16983f), 962) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.63965f, 25.46388f, -157.38919f), 962); + index2++; + span99[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-191.05865f, 22.001097f, -166.16983f), 962) { DisableNavmesh = true }; - span46[2] = new QuestStep(EInteractionType.Interact, 1039346u, new Vector3(-188.922f, 23.49104f, -181.90283f), 962); + index2++; + span99[index2] = new QuestStep(EInteractionType.Interact, 1039346u, new Vector3(-188.922f, 23.49104f, -181.90283f), 962); obj63.Steps = list99; reference76 = obj63; - ref QuestSequence reference77 = ref span45[2]; + num++; + ref QuestSequence reference77 = ref span97[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.UseItem, 2011801u, new Vector3(-191.02777f, 24.215942f, -179.15619f), 962) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.UseItem, 2011801u, new Vector3(-191.02777f, 24.215942f, -179.15619f), 962) { ItemId = 2003114u }; obj64.Steps = list100; reference77 = obj64; - ref QuestSequence reference78 = ref span45[3]; + num++; + ref QuestSequence reference78 = ref span97[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 @@ -278369,12 +337385,16 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list101)[0]; + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + ref QuestStep reference79 = ref span101[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1039346u, new Vector3(-188.922f, 23.49104f, -181.90283f), 962); num3 = 1; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - CollectionsMarshal.AsSpan(list102)[0] = new DialogueChoice + Span span102 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + span102[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC001_04210_Q1_000_000"), @@ -278384,15 +337404,18 @@ public static class AssemblyQuestLoader reference79 = questStep14; obj65.Steps = list101; reference78 = obj65; - ref QuestSequence reference80 = ref span45[4]; + num++; + ref QuestSequence reference80 = ref span97[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039510u, new Vector3(-309.07147f, 21.799957f, -174.36487f), 962) + index2 = 1; + List list103 = new List(index2); + CollectionsMarshal.SetCount(list103, index2); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span103[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039510u, new Vector3(-309.07147f, 21.799957f, -174.36487f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -278410,13 +337433,16 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - CollectionsMarshal.AsSpan(list104)[0] = "liza"; + Span span104 = CollectionsMarshal.AsSpan(list104); + index = 0; + span104[index] = "liza"; questRoot12.Author = list104; - num = 4; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span47 = CollectionsMarshal.AsSpan(list105); - ref QuestSequence reference81 = ref span47[0]; + index = 4; + List list105 = new List(index); + CollectionsMarshal.SetCount(list105, index); + Span span105 = CollectionsMarshal.AsSpan(list105); + num = 0; + ref QuestSequence reference81 = ref span105[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -278424,21 +337450,27 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 2011795u, new Vector3(-104.32593f, 24.673828f, -120.042725f), 962); + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.AcceptQuest, 2011795u, new Vector3(-104.32593f, 24.673828f, -120.042725f), 962); obj67.Steps = list106; reference81 = obj67; - ref QuestSequence reference82 = ref span47[1]; + num++; + ref QuestSequence reference82 = ref span105[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1039344u, new Vector3(-58.54895f, 5.9669995f, -60.746216f), 962); + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.Interact, 1039344u, new Vector3(-58.54895f, 5.9669995f, -60.746216f), 962); obj68.Steps = list107; reference82 = obj68; - ref QuestSequence reference83 = ref span47[2]; + num++; + ref QuestSequence reference83 = ref span105[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -278446,18 +337478,23 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962); + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.Interact, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962); obj69.Steps = list108; reference83 = obj69; - ref QuestSequence reference84 = ref span47[3]; + num++; + ref QuestSequence reference84 = ref span105[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039345u, new Vector3(-102.1897f, 24.649986f, -119.798584f), 962); + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039345u, new Vector3(-102.1897f, 24.649986f, -119.798584f), 962); obj70.Steps = list109; reference84 = obj70; questRoot12.QuestSequence = list105; @@ -278467,13 +337504,16 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "liza"; + Span span110 = CollectionsMarshal.AsSpan(list110); + index = 0; + span110[index] = "liza"; questRoot13.Author = list110; - num = 3; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span48 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference85 = ref span48[0]; + index = 3; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + Span span111 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference85 = ref span111[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -278481,18 +337521,23 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037104u, new Vector3(-326.07007f, 20.1375f, -142.56512f), 962); + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037104u, new Vector3(-326.07007f, 20.1375f, -142.56512f), 962); obj71.Steps = list112; reference85 = obj71; - ref QuestSequence reference86 = ref span48[1]; + num++; + ref QuestSequence reference86 = ref span111[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1039343u, new Vector3(-16.983276f, -16.246998f, 123.03345f), 962) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.Interact, 1039343u, new Vector3(-16.983276f, -16.246998f, 123.03345f), 962) { AethernetShortcut = new AethernetShortcut { @@ -278502,7 +337547,8 @@ public static class AssemblyQuestLoader }; obj72.Steps = list113; reference86 = obj72; - ref QuestSequence reference87 = ref span48[2]; + num++; + ref QuestSequence reference87 = ref span111[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -278510,7 +337556,9 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037104u, new Vector3(-326.07007f, 20.1375f, -142.56512f), 962) + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037104u, new Vector3(-326.07007f, 20.1375f, -142.56512f), 962) { AethernetShortcut = new AethernetShortcut { @@ -278527,26 +337575,33 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "liza"; + Span span115 = CollectionsMarshal.AsSpan(list115); + index = 0; + span115[index] = "liza"; questRoot14.Author = list115; - num = 3; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span49 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference88 = ref span49[0]; + index = 3; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + Span span116 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference88 = ref span116[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - ref QuestStep reference89 = ref CollectionsMarshal.AsSpan(list117)[0]; + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + ref QuestStep reference89 = ref span117[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.AcceptQuest, 1041286u, new Vector3(-230.51807f, 21.437386f, -119.46289f), 962); - num3 = 1; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - CollectionsMarshal.AsSpan(list118)[0] = new DialogueChoice + index3 = 1; + List list118 = new List(index3); + CollectionsMarshal.SetCount(list118, index3); + Span span118 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span118[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC004_04213_Q1_000_000"), @@ -278556,7 +337611,8 @@ public static class AssemblyQuestLoader reference89 = questStep15; obj74.Steps = list117; reference88 = obj74; - ref QuestSequence reference90 = ref span49[1]; + num++; + ref QuestSequence reference90 = ref span116[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 @@ -278564,7 +337620,9 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1041285u, new Vector3(115.80066f, 14.741594f, -132.03638f), 962) + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.Interact, 1041285u, new Vector3(115.80066f, 14.741594f, -132.03638f), 962) { AethernetShortcut = new AethernetShortcut { @@ -278574,15 +337632,18 @@ public static class AssemblyQuestLoader }; obj75.Steps = list119; reference90 = obj75; - ref QuestSequence reference91 = ref span49[2]; + num++; + ref QuestSequence reference91 = ref span116[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041286u, new Vector3(-230.51807f, 21.437386f, -119.46289f), 962) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041286u, new Vector3(-230.51807f, 21.437386f, -119.46289f), 962) { AethernetShortcut = new AethernetShortcut { @@ -278599,13 +337660,16 @@ public static class AssemblyQuestLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "liza"; + Span span121 = CollectionsMarshal.AsSpan(list121); + index = 0; + span121[index] = "liza"; questRoot15.Author = list121; - num = 7; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - Span span50 = CollectionsMarshal.AsSpan(list122); - ref QuestSequence reference92 = ref span50[0]; + index = 7; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + Span span122 = CollectionsMarshal.AsSpan(list122); + num = 0; + ref QuestSequence reference92 = ref span122[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -278613,12 +337677,16 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list123)[0]; + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + ref QuestStep reference93 = ref span123[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.AcceptQuest, 1041287u, new Vector3(-307.3625f, 22.3f, -143.29755f), 962); num3 = 1; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice + Span span124 = CollectionsMarshal.AsSpan(list124); + index3 = 0; + span124[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZC005_04214_Q1_000_000") @@ -278627,18 +337695,22 @@ public static class AssemblyQuestLoader reference93 = questStep16; obj77.Steps = list123; reference92 = obj77; - ref QuestSequence reference94 = ref span50[1]; + num++; + ref QuestSequence reference94 = ref span122[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1041288u, new Vector3(-169.51251f, 21.975235f, -152.26978f), 962); + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span125[num2] = new QuestStep(EInteractionType.Interact, 1041288u, new Vector3(-169.51251f, 21.975235f, -152.26978f), 962); obj78.Steps = list125; reference94 = obj78; - ref QuestSequence reference95 = ref span50[2]; + num++; + ref QuestSequence reference95 = ref span122[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -278646,25 +337718,31 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Emote, 2012434u, new Vector3(-168.32227f, 21.927185f, -151.29321f), 962) + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span126[index2] = new QuestStep(EInteractionType.Emote, 2012434u, new Vector3(-168.32227f, 21.927185f, -151.29321f), 962) { StopDistance = 0.25f, Emote = EEmote.BattleStance }; obj79.Steps = list126; reference95 = obj79; - ref QuestSequence reference96 = ref span50[3]; + num++; + ref QuestSequence reference96 = ref span122[num]; QuestSequence obj80 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 2012437u, new Vector3(-169.69562f, 22.87323f, -150.07251f), 962); + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.Interact, 2012437u, new Vector3(-169.69562f, 22.87323f, -150.07251f), 962); obj80.Steps = list127; reference96 = obj80; - ref QuestSequence reference97 = ref span50[4]; + num++; + ref QuestSequence reference97 = ref span122[num]; QuestSequence obj81 = new QuestSequence { Sequence = 4 @@ -278672,23 +337750,30 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1037098u, new Vector3(-94.83484f, 6.617f, -41.58087f), 962); + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span128[index2] = new QuestStep(EInteractionType.Interact, 1037098u, new Vector3(-94.83484f, 6.617f, -41.58087f), 962); obj81.Steps = list128; reference97 = obj81; - ref QuestSequence reference98 = ref span50[5]; + num++; + ref QuestSequence reference98 = ref span122[num]; QuestSequence obj82 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list129)[0]; + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + ref QuestStep reference99 = ref span129[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1041288u, new Vector3(-169.51251f, 21.975235f, -152.26978f), 962); - num3 = 1; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = new DialogueChoice + index3 = 1; + List list130 = new List(index3); + CollectionsMarshal.SetCount(list130, index3); + Span span130 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + span130[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC005_04214_Q2_000_000"), @@ -278698,7 +337783,8 @@ public static class AssemblyQuestLoader reference99 = questStep17; obj82.Steps = list129; reference98 = obj82; - ref QuestSequence reference100 = ref span50[6]; + num++; + ref QuestSequence reference100 = ref span122[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -278706,7 +337792,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041287u, new Vector3(-307.3625f, 22.3f, -143.29755f), 962) + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041287u, new Vector3(-307.3625f, 22.3f, -143.29755f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -278724,24 +337812,30 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "liza"; + Span span132 = CollectionsMarshal.AsSpan(list132); + index = 0; + span132[index] = "liza"; questRoot16.Author = list132; - num = 3; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span51 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference101 = ref span51[0]; + index = 3; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + Span span133 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference101 = ref span133[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037139u, new Vector3(-317.06726f, 19f, 48.844116f), 962); + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037139u, new Vector3(-317.06726f, 19f, 48.844116f), 962); obj84.Steps = list134; reference101 = obj84; - ref QuestSequence reference102 = ref span51[1]; + num++; + ref QuestSequence reference102 = ref span133[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -278749,47 +337843,62 @@ public static class AssemblyQuestLoader num2 = 7; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span52 = CollectionsMarshal.AsSpan(list135); - ref QuestStep reference103 = ref span52[0]; + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + ref QuestStep reference103 = ref span135[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-265.8844f, 18.745457f, 44.893326f), 962); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 6; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - Span span53 = CollectionsMarshal.AsSpan(list136); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span136 = CollectionsMarshal.AsSpan(list136); + index3 = 0; + span136[index3] = null; + index3++; + span136[index3] = null; + index3++; + span136[index3] = null; + index3++; + span136[index3] = null; + index3++; + span136[index3] = null; + index3++; + span136[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list136; skipConditions4.StepIf = skipStepConditions4; questStep18.SkipConditions = skipConditions4; reference103 = questStep18; - ref QuestStep reference104 = ref span52[1]; + index2++; + ref QuestStep reference104 = ref span135[index2]; QuestStep obj86 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.26123f, 12.376022f, 53.92458f), 962) { DisableNavmesh = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - Span span54 = CollectionsMarshal.AsSpan(list137); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list137 = new List(index3); + CollectionsMarshal.SetCount(list137, index3); + Span span137 = CollectionsMarshal.AsSpan(list137); + num3 = 0; + span137[num3] = null; + num3++; + span137[num3] = null; + num3++; + span137[num3] = null; + num3++; + span137[num3] = null; + num3++; + span137[num3] = null; + num3++; + span137[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list137; skipConditions5.StepIf = skipStepConditions5; obj86.SkipConditions = skipConditions5; reference104 = obj86; - ref QuestStep reference105 = ref span52[2]; + index2++; + ref QuestStep reference105 = ref span135[index2]; QuestStep obj87 = new QuestStep(EInteractionType.UseItem, 1041289u, new Vector3(-265.919f, 12.623348f, 102.86096f), 962) { ItemId = 2003288u, @@ -278798,34 +337907,48 @@ public static class AssemblyQuestLoader num3 = 6; List list138 = new List(num3); CollectionsMarshal.SetCount(list138, num3); - Span span55 = CollectionsMarshal.AsSpan(list138); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span138 = CollectionsMarshal.AsSpan(list138); + index3 = 0; + span138[index3] = null; + index3++; + span138[index3] = null; + index3++; + span138[index3] = null; + index3++; + span138[index3] = null; + index3++; + span138[index3] = null; + index3++; + span138[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj87.CompletionQuestVariablesFlags = list138; reference105 = obj87; - ref QuestStep reference106 = ref span52[3]; + index2++; + ref QuestStep reference106 = ref span135[index2]; QuestStep obj88 = new QuestStep(EInteractionType.UseItem, 1041290u, new Vector3(-291.49316f, 12.68306f, 127.45862f), 962) { ItemId = 2003288u, GroundTarget = true }; - num3 = 6; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - Span span56 = CollectionsMarshal.AsSpan(list139); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list139 = new List(index3); + CollectionsMarshal.SetCount(list139, index3); + Span span139 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span139[num3] = null; + num3++; + span139[num3] = null; + num3++; + span139[num3] = null; + num3++; + span139[num3] = null; + num3++; + span139[num3] = null; + num3++; + span139[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj88.CompletionQuestVariablesFlags = list139; reference106 = obj88; - ref QuestStep reference107 = ref span52[4]; + index2++; + ref QuestStep reference107 = ref span135[index2]; QuestStep obj89 = new QuestStep(EInteractionType.UseItem, 1041291u, new Vector3(-155.77942f, 11.71745f, -52.628357f), 962) { ItemId = 2003288u, @@ -278834,34 +337957,48 @@ public static class AssemblyQuestLoader num3 = 6; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - Span span57 = CollectionsMarshal.AsSpan(list140); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span140 = CollectionsMarshal.AsSpan(list140); + index3 = 0; + span140[index3] = null; + index3++; + span140[index3] = null; + index3++; + span140[index3] = null; + index3++; + span140[index3] = null; + index3++; + span140[index3] = null; + index3++; + span140[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj89.CompletionQuestVariablesFlags = list140; reference107 = obj89; - ref QuestStep reference108 = ref span52[5]; + index2++; + ref QuestStep reference108 = ref span135[index2]; QuestStep obj90 = new QuestStep(EInteractionType.UseItem, 1041292u, new Vector3(-147.50903f, 12.490502f, -87.052734f), 962) { ItemId = 2003288u, GroundTarget = true }; - num3 = 6; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - Span span58 = CollectionsMarshal.AsSpan(list141); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list141 = new List(index3); + CollectionsMarshal.SetCount(list141, index3); + Span span141 = CollectionsMarshal.AsSpan(list141); + num3 = 0; + span141[num3] = null; + num3++; + span141[num3] = null; + num3++; + span141[num3] = null; + num3++; + span141[num3] = null; + num3++; + span141[num3] = null; + num3++; + span141[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj90.CompletionQuestVariablesFlags = list141; reference108 = obj90; - ref QuestStep reference109 = ref span52[6]; + index2++; + ref QuestStep reference109 = ref span135[index2]; QuestStep obj91 = new QuestStep(EInteractionType.UseItem, 1041293u, new Vector3(-107.86603f, 18.024683f, -71.33594f), 962) { ItemId = 2003288u, @@ -278870,26 +338007,35 @@ public static class AssemblyQuestLoader num3 = 6; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - Span span59 = CollectionsMarshal.AsSpan(list142); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span142 = CollectionsMarshal.AsSpan(list142); + index3 = 0; + span142[index3] = null; + index3++; + span142[index3] = null; + index3++; + span142[index3] = null; + index3++; + span142[index3] = null; + index3++; + span142[index3] = null; + index3++; + span142[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj91.CompletionQuestVariablesFlags = list142; reference109 = obj91; obj85.Steps = list135; reference102 = obj85; - ref QuestSequence reference110 = ref span51[2]; + num++; + ref QuestSequence reference110 = ref span133[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037139u, new Vector3(-317.06726f, 19f, 48.844116f), 962) + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + Span span143 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span143[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037139u, new Vector3(-317.06726f, 19f, 48.844116f), 962) { AethernetShortcut = new AethernetShortcut { @@ -278906,13 +338052,16 @@ public static class AssemblyQuestLoader num = 1; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - CollectionsMarshal.AsSpan(list144)[0] = "liza"; + Span span144 = CollectionsMarshal.AsSpan(list144); + index = 0; + span144[index] = "liza"; questRoot17.Author = list144; - num = 4; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - Span span60 = CollectionsMarshal.AsSpan(list145); - ref QuestSequence reference111 = ref span60[0]; + index = 4; + List list145 = new List(index); + CollectionsMarshal.SetCount(list145, index); + Span span145 = CollectionsMarshal.AsSpan(list145); + num = 0; + ref QuestSequence reference111 = ref span145[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -278920,21 +338069,27 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040898u, new Vector3(-433.12738f, 22.221891f, 460.80713f), 958); + Span span146 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span146[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040898u, new Vector3(-433.12738f, 22.221891f, 460.80713f), 958); obj93.Steps = list146; reference111 = obj93; - ref QuestSequence reference112 = ref span60[1]; + num++; + ref QuestSequence reference112 = ref span145[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1040899u, new Vector3(-233.44781f, 22.17031f, 443.71704f), 958); + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.Interact, 1040899u, new Vector3(-233.44781f, 22.17031f, 443.71704f), 958); obj94.Steps = list147; reference112 = obj94; - ref QuestSequence reference113 = ref span60[2]; + num++; + ref QuestSequence reference113 = ref span145[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 @@ -278942,21 +338097,26 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1040899u, new Vector3(156.03712f, -19.711596f, 562.5593f), 958) + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span148[index2] = new QuestStep(EInteractionType.Interact, 1040899u, new Vector3(156.03712f, -19.711596f, 562.5593f), 958) { StopDistance = 1f }; obj95.Steps = list148; reference113 = obj95; - ref QuestSequence reference114 = ref span60[3]; + num++; + ref QuestSequence reference114 = ref span145[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041122u, new Vector3(134.844f, -13.286316f, 649.8054f), 958); + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041122u, new Vector3(134.844f, -13.286316f, 649.8054f), 958); obj96.Steps = list149; reference114 = obj96; questRoot17.QuestSequence = list145; @@ -278966,13 +338126,16 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "goatzone"; + Span span150 = CollectionsMarshal.AsSpan(list150); + index = 0; + span150[index] = "goatzone"; questRoot18.Author = list150; - num = 4; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span61 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference115 = ref span61[0]; + index = 4; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + Span span151 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference115 = ref span151[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -278980,27 +338143,33 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041122u, new Vector3(134.844f, -13.286316f, 649.8054f), 958) + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span152[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041122u, new Vector3(134.844f, -13.286316f, 649.8054f), 958) { Fly = true }; obj97.Steps = list152; reference115 = obj97; - ref QuestSequence reference116 = ref span61[1]; + num++; + ref QuestSequence reference116 = ref span151[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1041119u, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span153[num2] = new QuestStep(EInteractionType.Interact, 1041119u, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) { Fly = true }; obj98.Steps = list153; reference116 = obj98; - ref QuestSequence reference117 = ref span61[2]; + num++; + ref QuestSequence reference117 = ref span151[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 @@ -279008,70 +338177,91 @@ public static class AssemblyQuestLoader num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span62 = CollectionsMarshal.AsSpan(list154); - ref QuestStep reference118 = ref span62[0]; + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + ref QuestStep reference118 = ref span154[index2]; QuestStep obj100 = new QuestStep(EInteractionType.Combat, null, new Vector3(73.64728f, -18.777306f, 527.2946f), 958) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 14107u; + index3 = 1; + List list155 = new List(index3); + CollectionsMarshal.SetCount(list155, index3); + Span span155 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + span155[num3] = 14107u; obj100.KillEnemyDataIds = list155; num3 = 6; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span63 = CollectionsMarshal.AsSpan(list156); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span156 = CollectionsMarshal.AsSpan(list156); + index3 = 0; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj100.CompletionQuestVariablesFlags = list156; reference118 = obj100; - ref QuestStep reference119 = ref span62[1]; + index2++; + ref QuestStep reference119 = ref span154[index2]; QuestStep obj101 = new QuestStep(EInteractionType.Combat, null, new Vector3(370.17212f, -18.937208f, 338.0957f), 958) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = 14107u; + index3 = 1; + List list157 = new List(index3); + CollectionsMarshal.SetCount(list157, index3); + Span span157 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span157[num3] = 14107u; obj101.KillEnemyDataIds = list157; num3 = 6; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - Span span64 = CollectionsMarshal.AsSpan(list158); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span158 = CollectionsMarshal.AsSpan(list158); + index3 = 0; + span158[index3] = null; + index3++; + span158[index3] = null; + index3++; + span158[index3] = null; + index3++; + span158[index3] = null; + index3++; + span158[index3] = null; + index3++; + span158[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj101.CompletionQuestVariablesFlags = list158; reference119 = obj101; obj99.Steps = list154; reference117 = obj99; - ref QuestSequence reference120 = ref span61[3]; + num++; + ref QuestSequence reference120 = ref span151[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span65 = CollectionsMarshal.AsSpan(list159); - span65[0] = new QuestStep(EInteractionType.None, null, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) + index2 = 2; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.None, null, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) { StopDistance = 2000f, Mount = false }; - span65[1] = new QuestStep(EInteractionType.CompleteQuest, 1041119u, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) + num2++; + span159[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041119u, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) { Fly = true, NextQuestId = new QuestId(4218) @@ -279085,13 +338275,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "goatzone"; + Span span160 = CollectionsMarshal.AsSpan(list160); + index = 0; + span160[index] = "goatzone"; questRoot19.Author = list160; - num = 5; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span66 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference121 = ref span66[0]; + index = 5; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + Span span161 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference121 = ref span161[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -279099,29 +338292,36 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041119u, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041119u, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) { Fly = true }; obj103.Steps = list162; reference121 = obj103; - ref QuestSequence reference122 = ref span66[1]; + num++; + ref QuestSequence reference122 = ref span161[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list163)[0]; + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + ref QuestStep reference123 = ref span163[num2]; QuestStep obj105 = new QuestStep(EInteractionType.Interact, 1041121u, new Vector3(208.51453f, 4.706692f, 77.77527f), 958) { Fly = true }; - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice + index3 = 1; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + Span span164 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span164[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC009_04218_Q1_000_000"), @@ -279131,7 +338331,8 @@ public static class AssemblyQuestLoader reference123 = obj105; obj104.Steps = list163; reference122 = obj104; - ref QuestSequence reference124 = ref span66[2]; + num++; + ref QuestSequence reference124 = ref span161[num]; QuestSequence obj106 = new QuestSequence { Sequence = 2 @@ -279139,27 +338340,33 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Emote, 2012474u, new Vector3(210.28455f, 5.355835f, 76.76807f), 958) + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.Emote, 2012474u, new Vector3(210.28455f, 5.355835f, 76.76807f), 958) { Emote = EEmote.Pray }; obj106.Steps = list165; reference124 = obj106; - ref QuestSequence reference125 = ref span66[3]; + num++; + ref QuestSequence reference125 = ref span161[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1042180u, new Vector3(127.06189f, -13.29479f, 650.8429f), 958) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.Interact, 1042180u, new Vector3(127.06189f, -13.29479f, 650.8429f), 958) { Fly = true }; obj107.Steps = list166; reference125 = obj107; - ref QuestSequence reference126 = ref span66[4]; + num++; + ref QuestSequence reference126 = ref span161[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue @@ -279167,7 +338374,9 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040898u, new Vector3(-433.12738f, 22.221891f, 460.80713f), 958) + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040898u, new Vector3(-433.12738f, 22.221891f, 460.80713f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -279180,24 +338389,30 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - CollectionsMarshal.AsSpan(list168)[0] = "goatzone"; + Span span168 = CollectionsMarshal.AsSpan(list168); + index = 0; + span168[index] = "goatzone"; questRoot20.Author = list168; - num = 3; - List list169 = new List(num); - CollectionsMarshal.SetCount(list169, num); - Span span67 = CollectionsMarshal.AsSpan(list169); - ref QuestSequence reference127 = ref span67[0]; + index = 3; + List list169 = new List(index); + CollectionsMarshal.SetCount(list169, index); + Span span169 = CollectionsMarshal.AsSpan(list169); + num = 0; + ref QuestSequence reference127 = ref span169[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039381u, new Vector3(-437.7661f, 22.209024f, 431.937f), 958); + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039381u, new Vector3(-437.7661f, 22.209024f, 431.937f), 958); obj109.Steps = list170; reference127 = obj109; - ref QuestSequence reference128 = ref span67[1]; + num++; + ref QuestSequence reference128 = ref span169[num]; QuestSequence obj110 = new QuestSequence { Sequence = 1 @@ -279205,60 +338420,84 @@ public static class AssemblyQuestLoader num2 = 3; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span68 = CollectionsMarshal.AsSpan(list171); - ref QuestStep reference129 = ref span68[0]; + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + ref QuestStep reference129 = ref span171[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1037733u, new Vector3(-375.14313f, 22f, 513.54236f), 958); num3 = 6; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - Span span69 = CollectionsMarshal.AsSpan(list172); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span172 = CollectionsMarshal.AsSpan(list172); + index3 = 0; + span172[index3] = null; + index3++; + span172[index3] = null; + index3++; + span172[index3] = null; + index3++; + span172[index3] = null; + index3++; + span172[index3] = null; + index3++; + span172[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list172; reference129 = questStep19; - ref QuestStep reference130 = ref span68[1]; + index2++; + ref QuestStep reference130 = ref span171[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1037747u, new Vector3(-314.25964f, 22.00559f, 430.47217f), 958); - num3 = 6; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - Span span70 = CollectionsMarshal.AsSpan(list173); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list173 = new List(index3); + CollectionsMarshal.SetCount(list173, index3); + Span span173 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span173[num3] = null; + num3++; + span173[num3] = null; + num3++; + span173[num3] = null; + num3++; + span173[num3] = null; + num3++; + span173[num3] = null; + num3++; + span173[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list173; reference130 = questStep20; - ref QuestStep reference131 = ref span68[2]; + index2++; + ref QuestStep reference131 = ref span171[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1037728u, new Vector3(-369.52777f, 22.149097f, 391.95837f), 958); num3 = 6; List list174 = new List(num3); CollectionsMarshal.SetCount(list174, num3); - Span span71 = CollectionsMarshal.AsSpan(list174); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span174 = CollectionsMarshal.AsSpan(list174); + index3 = 0; + span174[index3] = null; + index3++; + span174[index3] = null; + index3++; + span174[index3] = null; + index3++; + span174[index3] = null; + index3++; + span174[index3] = null; + index3++; + span174[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list174; reference131 = questStep21; obj110.Steps = list171; reference128 = obj110; - ref QuestSequence reference132 = ref span67[2]; + num++; + ref QuestSequence reference132 = ref span169[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039381u, new Vector3(-437.7661f, 22.209024f, 431.937f), 958); + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039381u, new Vector3(-437.7661f, 22.209024f, 431.937f), 958); obj111.Steps = list175; reference132 = obj111; questRoot20.QuestSequence = list169; @@ -279268,13 +338507,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "goatzone"; + Span span176 = CollectionsMarshal.AsSpan(list176); + index = 0; + span176[index] = "goatzone"; questRoot21.Author = list176; - num = 4; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span72 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference133 = ref span72[0]; + index = 4; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + Span span177 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference133 = ref span177[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 @@ -279282,24 +338524,30 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037728u, new Vector3(-369.52777f, 22.149097f, 391.95837f), 958); + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037728u, new Vector3(-369.52777f, 22.149097f, 391.95837f), 958); obj112.Steps = list178; reference133 = obj112; - ref QuestSequence reference134 = ref span72[1]; + num++; + ref QuestSequence reference134 = ref span177[num]; QuestSequence obj113 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Snipe, 2012040u, new Vector3(-229.14478f, 20.035034f, 319.417f), 958) + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.Snipe, 2012040u, new Vector3(-229.14478f, 20.035034f, 319.417f), 958) { Comment = "Zoom in between the buildings and wait a few seconds." }; obj113.Steps = list179; reference134 = obj113; - ref QuestSequence reference135 = ref span72[2]; + num++; + ref QuestSequence reference135 = ref span177[num]; QuestSequence obj114 = new QuestSequence { Sequence = 2 @@ -279307,21 +338555,26 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1039395u, new Vector3(83.84827f, 1.1234589f, 137.19385f), 958) + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span180[index2] = new QuestStep(EInteractionType.Interact, 1039395u, new Vector3(83.84827f, 1.1234589f, 137.19385f), 958) { Fly = true }; obj114.Steps = list180; reference135 = obj114; - ref QuestSequence reference136 = ref span72[3]; + num++; + ref QuestSequence reference136 = ref span177[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037728u, new Vector3(-369.52777f, 22.149097f, 391.95837f), 958) + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span181[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037728u, new Vector3(-369.52777f, 22.149097f, 391.95837f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -279334,13 +338587,16 @@ public static class AssemblyQuestLoader num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - CollectionsMarshal.AsSpan(list182)[0] = "goatzone"; + Span span182 = CollectionsMarshal.AsSpan(list182); + index = 0; + span182[index] = "goatzone"; questRoot22.Author = list182; - num = 3; - List list183 = new List(num); - CollectionsMarshal.SetCount(list183, num); - Span span73 = CollectionsMarshal.AsSpan(list183); - ref QuestSequence reference137 = ref span73[0]; + index = 3; + List list183 = new List(index); + CollectionsMarshal.SetCount(list183, index); + Span span183 = CollectionsMarshal.AsSpan(list183); + num = 0; + ref QuestSequence reference137 = ref span183[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 @@ -279348,63 +338604,88 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037733u, new Vector3(-375.14313f, 22f, 513.54236f), 958); + Span span184 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span184[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037733u, new Vector3(-375.14313f, 22f, 513.54236f), 958); obj116.Steps = list184; reference137 = obj116; - ref QuestSequence reference138 = ref span73[1]; + num++; + ref QuestSequence reference138 = ref span183[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - Span span74 = CollectionsMarshal.AsSpan(list185); - ref QuestStep reference139 = ref span74[0]; + index2 = 3; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + ref QuestStep reference139 = ref span185[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1039396u, new Vector3(-318.227f, 22.376268f, 449.45447f), 958); - num3 = 6; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - Span span75 = CollectionsMarshal.AsSpan(list186); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list186 = new List(index3); + CollectionsMarshal.SetCount(list186, index3); + Span span186 = CollectionsMarshal.AsSpan(list186); + num3 = 0; + span186[num3] = null; + num3++; + span186[num3] = null; + num3++; + span186[num3] = null; + num3++; + span186[num3] = null; + num3++; + span186[num3] = null; + num3++; + span186[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list186; reference139 = questStep22; - ref QuestStep reference140 = ref span74[1]; + num2++; + ref QuestStep reference140 = ref span185[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1039397u, new Vector3(-317.76917f, 22f, 428.7937f), 958); num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - Span span76 = CollectionsMarshal.AsSpan(list187); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span187 = CollectionsMarshal.AsSpan(list187); + index3 = 0; + span187[index3] = null; + index3++; + span187[index3] = null; + index3++; + span187[index3] = null; + index3++; + span187[index3] = null; + index3++; + span187[index3] = null; + index3++; + span187[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list187; reference140 = questStep23; - ref QuestStep reference141 = ref span74[2]; + num2++; + ref QuestStep reference141 = ref span185[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1039398u, new Vector3(-318.62366f, 22.943655f, 391.4701f), 958); - num3 = 6; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span77 = CollectionsMarshal.AsSpan(list188); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list188 = new List(index3); + CollectionsMarshal.SetCount(list188, index3); + Span span188 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list188; reference141 = questStep24; obj117.Steps = list185; reference138 = obj117; - ref QuestSequence reference142 = ref span73[2]; + num++; + ref QuestSequence reference142 = ref span183[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -279412,7 +338693,9 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037733u, new Vector3(-375.14313f, 22f, 513.54236f), 958); + Span span189 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span189[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037733u, new Vector3(-375.14313f, 22f, 513.54236f), 958); obj118.Steps = list189; reference142 = obj118; questRoot22.QuestSequence = list183; @@ -279422,24 +338705,30 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "goatzone"; + Span span190 = CollectionsMarshal.AsSpan(list190); + index = 0; + span190[index] = "goatzone"; questRoot23.Author = list190; - num = 5; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - Span span78 = CollectionsMarshal.AsSpan(list191); - ref QuestSequence reference143 = ref span78[0]; + index = 5; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + Span span191 = CollectionsMarshal.AsSpan(list191); + num = 0; + ref QuestSequence reference143 = ref span191[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037755u, new Vector3(-338.76556f, 22.462305f, 449.08826f), 958); + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span192[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037755u, new Vector3(-338.76556f, 22.462305f, 449.08826f), 958); obj119.Steps = list192; reference143 = obj119; - ref QuestSequence reference144 = ref span78[1]; + num++; + ref QuestSequence reference144 = ref span191[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -279447,7 +338736,9 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - ref QuestStep reference145 = ref CollectionsMarshal.AsSpan(list193)[0]; + Span span193 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + ref QuestStep reference145 = ref span193[index2]; QuestStep obj121 = new QuestStep(EInteractionType.Combat, null, new Vector3(147.65237f, -18.974234f, 434.61954f), 958) { Fly = true, @@ -279456,25 +338747,31 @@ public static class AssemblyQuestLoader num3 = 2; List list194 = new List(num3); CollectionsMarshal.SetCount(list194, num3); - Span span79 = CollectionsMarshal.AsSpan(list194); - span79[0] = 14105u; - span79[1] = 14106u; + Span span194 = CollectionsMarshal.AsSpan(list194); + index3 = 0; + span194[index3] = 14105u; + index3++; + span194[index3] = 14106u; obj121.KillEnemyDataIds = list194; reference145 = obj121; obj120.Steps = list193; reference144 = obj120; - ref QuestSequence reference146 = ref span78[2]; + num++; + ref QuestSequence reference146 = ref span191[num]; QuestSequence obj122 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1039388u, new Vector3(145.4032f, -18.974236f, 435.0193f), 958); + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.Interact, 1039388u, new Vector3(145.4032f, -18.974236f, 435.0193f), 958); obj122.Steps = list195; reference146 = obj122; - ref QuestSequence reference147 = ref span78[3]; + num++; + ref QuestSequence reference147 = ref span191[num]; QuestSequence obj123 = new QuestSequence { Sequence = 3 @@ -279482,18 +338779,23 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1039387u, new Vector3(144.82336f, -18.974234f, 436.27063f), 958); + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span196[index2] = new QuestStep(EInteractionType.Interact, 1039387u, new Vector3(144.82336f, -18.974234f, 436.27063f), 958); obj123.Steps = list196; reference147 = obj123; - ref QuestSequence reference148 = ref span78[4]; + num++; + ref QuestSequence reference148 = ref span191[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037755u, new Vector3(-338.76556f, 22.462305f, 449.08826f), 958) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span197[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037755u, new Vector3(-338.76556f, 22.462305f, 449.08826f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -279506,13 +338808,16 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "goatzone"; + Span span198 = CollectionsMarshal.AsSpan(list198); + index = 0; + span198[index] = "goatzone"; questRoot24.Author = list198; - num = 3; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span80 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference149 = ref span80[0]; + index = 3; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + Span span199 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference149 = ref span199[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -279520,37 +338825,48 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958); + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span200[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958); obj125.Steps = list200; reference149 = obj125; - ref QuestSequence reference150 = ref span80[1]; + num++; + ref QuestSequence reference150 = ref span199[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - Span span81 = CollectionsMarshal.AsSpan(list201); - ref QuestStep reference151 = ref span81[0]; + index2 = 3; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + ref QuestStep reference151 = ref span201[num2]; QuestStep obj127 = new QuestStep(EInteractionType.UseItem, 2011969u, new Vector3(-371.26727f, 24.979004f, 151.20166f), 958) { Fly = true, ItemId = 2003195u }; - num3 = 6; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - Span span82 = CollectionsMarshal.AsSpan(list202); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list202 = new List(index3); + CollectionsMarshal.SetCount(list202, index3); + Span span202 = CollectionsMarshal.AsSpan(list202); + num3 = 0; + span202[num3] = null; + num3++; + span202[num3] = null; + num3++; + span202[num3] = null; + num3++; + span202[num3] = null; + num3++; + span202[num3] = null; + num3++; + span202[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj127.CompletionQuestVariablesFlags = list202; reference151 = obj127; - ref QuestStep reference152 = ref span81[1]; + num2++; + ref QuestStep reference152 = ref span201[num2]; QuestStep obj128 = new QuestStep(EInteractionType.UseItem, 2011968u, new Vector3(-313.92395f, 21.805054f, 147.87512f), 958) { ItemId = 2003195u @@ -279558,41 +338874,57 @@ public static class AssemblyQuestLoader num3 = 6; List list203 = new List(num3); CollectionsMarshal.SetCount(list203, num3); - Span span83 = CollectionsMarshal.AsSpan(list203); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span203 = CollectionsMarshal.AsSpan(list203); + index3 = 0; + span203[index3] = null; + index3++; + span203[index3] = null; + index3++; + span203[index3] = null; + index3++; + span203[index3] = null; + index3++; + span203[index3] = null; + index3++; + span203[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj128.CompletionQuestVariablesFlags = list203; reference152 = obj128; - ref QuestStep reference153 = ref span81[2]; + num2++; + ref QuestStep reference153 = ref span201[num2]; QuestStep obj129 = new QuestStep(EInteractionType.Combat, 2011970u, new Vector3(-375.29565f, 21.164185f, 99.47351f), 958) { ItemId = 2003195u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = 14104u; + index3 = 1; + List list204 = new List(index3); + CollectionsMarshal.SetCount(list204, index3); + Span span204 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span204[num3] = 14104u; obj129.KillEnemyDataIds = list204; num3 = 6; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - Span span84 = CollectionsMarshal.AsSpan(list205); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span205 = CollectionsMarshal.AsSpan(list205); + index3 = 0; + span205[index3] = null; + index3++; + span205[index3] = null; + index3++; + span205[index3] = null; + index3++; + span205[index3] = null; + index3++; + span205[index3] = null; + index3++; + span205[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj129.CompletionQuestVariablesFlags = list205; reference153 = obj129; obj126.Steps = list201; reference150 = obj126; - ref QuestSequence reference154 = ref span80[2]; + num++; + ref QuestSequence reference154 = ref span199[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -279600,7 +338932,9 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958) + Span span206 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span206[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -279613,24 +338947,30 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "goatzone"; + Span span207 = CollectionsMarshal.AsSpan(list207); + index = 0; + span207[index] = "goatzone"; questRoot25.Author = list207; - num = 4; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span85 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference155 = ref span85[0]; + index = 4; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + Span span208 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference155 = ref span208[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037729u, new Vector3(-342.67188f, 22.377153f, 466.8496f), 958); + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + Span span209 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span209[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037729u, new Vector3(-342.67188f, 22.377153f, 466.8496f), 958); obj131.Steps = list209; reference155 = obj131; - ref QuestSequence reference156 = ref span85[1]; + num++; + ref QuestSequence reference156 = ref span208[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 @@ -279638,66 +338978,93 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1039392u, new Vector3(-378.4085f, 22.105467f, 535.33215f), 958); + Span span210 = CollectionsMarshal.AsSpan(list210); + index2 = 0; + span210[index2] = new QuestStep(EInteractionType.Interact, 1039392u, new Vector3(-378.4085f, 22.105467f, 535.33215f), 958); obj132.Steps = list210; reference156 = obj132; - ref QuestSequence reference157 = ref span85[2]; + num++; + ref QuestSequence reference157 = ref span208[num]; QuestSequence obj133 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - Span span86 = CollectionsMarshal.AsSpan(list211); - ref QuestStep reference158 = ref span86[0]; + index2 = 4; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + Span span211 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + ref QuestStep reference158 = ref span211[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1037731u, new Vector3(-356.80176f, 22f, 518.9745f), 958); - num3 = 6; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - Span span87 = CollectionsMarshal.AsSpan(list212); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list212 = new List(index3); + CollectionsMarshal.SetCount(list212, index3); + Span span212 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span212[num3] = null; + num3++; + span212[num3] = null; + num3++; + span212[num3] = null; + num3++; + span212[num3] = null; + num3++; + span212[num3] = null; + num3++; + span212[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list212; reference158 = questStep25; - ref QuestStep reference159 = ref span86[1]; + num2++; + ref QuestStep reference159 = ref span211[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1037754u, new Vector3(-431.29626f, 22.278519f, 437.6134f), 958); num3 = 6; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - Span span88 = CollectionsMarshal.AsSpan(list213); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span213 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span213[index3] = null; + index3++; + span213[index3] = null; + index3++; + span213[index3] = null; + index3++; + span213[index3] = null; + index3++; + span213[index3] = null; + index3++; + span213[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list213; reference159 = questStep26; - ref QuestStep reference160 = ref span86[2]; + num2++; + ref QuestStep reference160 = ref span211[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1039393u, new Vector3(-415.9762f, 21.392963f, 384.9087f), 958); - num3 = 6; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - Span span89 = CollectionsMarshal.AsSpan(list214); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list214 = new List(index3); + CollectionsMarshal.SetCount(list214, index3); + Span span214 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list214; reference160 = questStep27; - ref QuestStep reference161 = ref span86[3]; + num2++; + ref QuestStep reference161 = ref span211[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1039392u, new Vector3(-378.4085f, 22.105467f, 535.33215f), 958); num3 = 1; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = new DialogueChoice + Span span215 = CollectionsMarshal.AsSpan(list215); + index3 = 0; + span215[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC015_04224_Q1_000_000"), @@ -279707,7 +339074,8 @@ public static class AssemblyQuestLoader reference161 = questStep28; obj133.Steps = list211; reference157 = obj133; - ref QuestSequence reference162 = ref span85[3]; + num++; + ref QuestSequence reference162 = ref span208[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue @@ -279715,7 +339083,9 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037729u, new Vector3(-342.67188f, 22.377153f, 466.8496f), 958); + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span216[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037729u, new Vector3(-342.67188f, 22.377153f, 466.8496f), 958); obj134.Steps = list216; reference162 = obj134; questRoot25.QuestSequence = list208; @@ -279725,24 +339095,30 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "goatzone"; + Span span217 = CollectionsMarshal.AsSpan(list217); + index = 0; + span217[index] = "goatzone"; questRoot26.Author = list217; - num = 3; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - Span span90 = CollectionsMarshal.AsSpan(list218); - ref QuestSequence reference163 = ref span90[0]; + index = 3; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + Span span218 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference163 = ref span218[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037767u, new Vector3(545.2506f, -36.61618f, -252.12488f), 958); + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + Span span219 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span219[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037767u, new Vector3(545.2506f, -36.61618f, -252.12488f), 958); obj135.Steps = list219; reference163 = obj135; - ref QuestSequence reference164 = ref span90[1]; + num++; + ref QuestSequence reference164 = ref span218[num]; QuestSequence obj136 = new QuestSequence { Sequence = 1 @@ -279750,82 +339126,111 @@ public static class AssemblyQuestLoader num2 = 4; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span91 = CollectionsMarshal.AsSpan(list220); - span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(541.0247f, -36.65f, -244.85428f), 958); - ref QuestStep reference165 = ref span91[1]; + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span220[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(541.0247f, -36.65f, -244.85428f), 958); + index2++; + ref QuestStep reference165 = ref span220[index2]; QuestStep obj137 = new QuestStep(EInteractionType.Interact, 2011973u, new Vector3(370.5653f, 10.788086f, -450.6447f), 958) { Fly = true }; - num3 = 6; - List list221 = new List(num3); - CollectionsMarshal.SetCount(list221, num3); - Span span92 = CollectionsMarshal.AsSpan(list221); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list221 = new List(index3); + CollectionsMarshal.SetCount(list221, index3); + Span span221 = CollectionsMarshal.AsSpan(list221); + num3 = 0; + span221[num3] = null; + num3++; + span221[num3] = null; + num3++; + span221[num3] = null; + num3++; + span221[num3] = null; + num3++; + span221[num3] = null; + num3++; + span221[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj137.CompletionQuestVariablesFlags = list221; num3 = 1; List list222 = new List(num3); CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = new DialogueChoice + Span span222 = CollectionsMarshal.AsSpan(list222); + index3 = 0; + span222[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZD001_04225_Q1_000_000") }; obj137.DialogueChoices = list222; reference165 = obj137; - ref QuestStep reference166 = ref span91[2]; + index2++; + ref QuestStep reference166 = ref span220[index2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 2011974u, new Vector3(282.39868f, 10.788086f, -323.07928f), 958); - num3 = 6; - List list223 = new List(num3); - CollectionsMarshal.SetCount(list223, num3); - Span span93 = CollectionsMarshal.AsSpan(list223); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list223 = new List(index3); + CollectionsMarshal.SetCount(list223, index3); + Span span223 = CollectionsMarshal.AsSpan(list223); + num3 = 0; + span223[num3] = null; + num3++; + span223[num3] = null; + num3++; + span223[num3] = null; + num3++; + span223[num3] = null; + num3++; + span223[num3] = null; + num3++; + span223[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep29.CompletionQuestVariablesFlags = list223; num3 = 1; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = new DialogueChoice + Span span224 = CollectionsMarshal.AsSpan(list224); + index3 = 0; + span224[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZD001_04225_Q2_000_000") }; questStep29.DialogueChoices = list224; reference166 = questStep29; - ref QuestStep reference167 = ref span91[3]; + index2++; + ref QuestStep reference167 = ref span220[index2]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 2011972u, new Vector3(241.19922f, 11.673096f, -292.98853f), 958); - num3 = 6; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - Span span94 = CollectionsMarshal.AsSpan(list225); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list225 = new List(index3); + CollectionsMarshal.SetCount(list225, index3); + Span span225 = CollectionsMarshal.AsSpan(list225); + num3 = 0; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep30.CompletionQuestVariablesFlags = list225; reference167 = questStep30; obj136.Steps = list220; reference164 = obj136; - ref QuestSequence reference168 = ref span90[2]; + num++; + ref QuestSequence reference168 = ref span218[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037767u, new Vector3(545.2506f, -36.61618f, -252.12488f), 958) + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + Span span226 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span226[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037767u, new Vector3(545.2506f, -36.61618f, -252.12488f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; @@ -279838,13 +339243,16 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - CollectionsMarshal.AsSpan(list227)[0] = "goatzone"; + Span span227 = CollectionsMarshal.AsSpan(list227); + index = 0; + span227[index] = "goatzone"; questRoot27.Author = list227; - num = 3; - List list228 = new List(num); - CollectionsMarshal.SetCount(list228, num); - Span span95 = CollectionsMarshal.AsSpan(list228); - ref QuestSequence reference169 = ref span95[0]; + index = 3; + List list228 = new List(index); + CollectionsMarshal.SetCount(list228, index); + Span span228 = CollectionsMarshal.AsSpan(list228); + num = 0; + ref QuestSequence reference169 = ref span228[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -279852,18 +339260,23 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039399u, new Vector3(556.4812f, -40.250004f, -133.04346f), 958); + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span229[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039399u, new Vector3(556.4812f, -40.250004f, -133.04346f), 958); obj139.Steps = list229; reference169 = obj139; - ref QuestSequence reference170 = ref span95[1]; + num++; + ref QuestSequence reference170 = ref span228[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - ref QuestStep reference171 = ref CollectionsMarshal.AsSpan(list230)[0]; + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + ref QuestStep reference171 = ref span230[num2]; QuestStep obj141 = new QuestStep(EInteractionType.Combat, null, new Vector3(-159.59418f, 10.8f, -468.8335f), 958) { StopDistance = 0.5f, @@ -279873,7 +339286,9 @@ public static class AssemblyQuestLoader num3 = 1; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - CollectionsMarshal.AsSpan(list231)[0] = 13468u; + Span span231 = CollectionsMarshal.AsSpan(list231); + index3 = 0; + span231[index3] = 13468u; obj141.KillEnemyDataIds = list231; obj141.CombatItemUse = new CombatItemUse { @@ -279884,7 +339299,8 @@ public static class AssemblyQuestLoader reference171 = obj141; obj140.Steps = list230; reference170 = obj140; - ref QuestSequence reference172 = ref span95[2]; + num++; + ref QuestSequence reference172 = ref span228[num]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue @@ -279892,7 +339308,9 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039399u, new Vector3(556.4812f, -40.250004f, -133.04346f), 958) + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span232[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039399u, new Vector3(556.4812f, -40.250004f, -133.04346f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; @@ -279905,24 +339323,30 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "goatzone"; + Span span233 = CollectionsMarshal.AsSpan(list233); + index = 0; + span233[index] = "goatzone"; questRoot28.Author = list233; - num = 3; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span96 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference173 = ref span96[0]; + index = 3; + List list234 = new List(index); + CollectionsMarshal.SetCount(list234, index); + Span span234 = CollectionsMarshal.AsSpan(list234); + num = 0; + ref QuestSequence reference173 = ref span234[num]; QuestSequence obj143 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037782u, new Vector3(545.2506f, -36.61608f, -230.24347f), 958); + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + Span span235 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span235[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037782u, new Vector3(545.2506f, -36.61608f, -230.24347f), 958); obj143.Steps = list235; reference173 = obj143; - ref QuestSequence reference174 = ref span96[1]; + num++; + ref QuestSequence reference174 = ref span234[num]; QuestSequence obj144 = new QuestSequence { Sequence = 1 @@ -279930,37 +339354,49 @@ public static class AssemblyQuestLoader num2 = 3; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - Span span97 = CollectionsMarshal.AsSpan(list236); - span97[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(539.7576f, -36.65f, -237.16893f), 958); - ref QuestStep reference175 = ref span97[1]; + Span span236 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span236[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(539.7576f, -36.65f, -237.16893f), 958); + index2++; + ref QuestStep reference175 = ref span236[index2]; QuestStep obj145 = new QuestStep(EInteractionType.Interact, 2012049u, new Vector3(301.86914f, 10.788086f, -540.79504f), 958) { Fly = true }; - num3 = 6; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - Span span98 = CollectionsMarshal.AsSpan(list237); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list237 = new List(index3); + CollectionsMarshal.SetCount(list237, index3); + Span span237 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span237[num3] = null; + num3++; + span237[num3] = null; + num3++; + span237[num3] = null; + num3++; + span237[num3] = null; + num3++; + span237[num3] = null; + num3++; + span237[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj145.CompletionQuestVariablesFlags = list237; reference175 = obj145; - span97[2] = new QuestStep(EInteractionType.Interact, 2012050u, new Vector3(295.49097f, 11.306824f, -500.26703f), 958); + index2++; + span236[index2] = new QuestStep(EInteractionType.Interact, 2012050u, new Vector3(295.49097f, 11.306824f, -500.26703f), 958); obj144.Steps = list236; reference174 = obj144; - ref QuestSequence reference176 = ref span96[2]; + num++; + ref QuestSequence reference176 = ref span234[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037782u, new Vector3(545.2506f, -36.61608f, -230.24347f), 958) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037782u, new Vector3(545.2506f, -36.61608f, -230.24347f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; @@ -279973,13 +339409,16 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - CollectionsMarshal.AsSpan(list239)[0] = "goatzone"; + Span span239 = CollectionsMarshal.AsSpan(list239); + index = 0; + span239[index] = "goatzone"; questRoot29.Author = list239; - num = 3; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - Span span99 = CollectionsMarshal.AsSpan(list240); - ref QuestSequence reference177 = ref span99[0]; + index = 3; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + Span span240 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference177 = ref span240[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 @@ -279987,23 +339426,30 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041911u, new Vector3(508.8424f, -3.8202174f, -352.71234f), 958); + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041911u, new Vector3(508.8424f, -3.8202174f, -352.71234f), 958); obj147.Steps = list241; reference177 = obj147; - ref QuestSequence reference178 = ref span99[1]; + num++; + ref QuestSequence reference178 = ref span240[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - ref QuestStep reference179 = ref CollectionsMarshal.AsSpan(list242)[0]; + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + ref QuestStep reference179 = ref span242[num2]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1040659u, new Vector3(514.5189f, -36.65f, -156.9696f), 958); num3 = 1; List list243 = new List(num3); CollectionsMarshal.SetCount(list243, num3); - CollectionsMarshal.AsSpan(list243)[0] = new DialogueChoice + Span span243 = CollectionsMarshal.AsSpan(list243); + index3 = 0; + span243[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD004_04228_Q1_000_000"), @@ -280013,7 +339459,8 @@ public static class AssemblyQuestLoader reference179 = questStep31; obj148.Steps = list242; reference178 = obj148; - ref QuestSequence reference180 = ref span99[2]; + num++; + ref QuestSequence reference180 = ref span240[num]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue @@ -280021,7 +339468,9 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037771u, new Vector3(524.28467f, -19.820217f, -298.81744f), 958); + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span244[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037771u, new Vector3(524.28467f, -19.820217f, -298.81744f), 958); obj149.Steps = list244; reference180 = obj149; questRoot29.QuestSequence = list240; @@ -280031,24 +339480,30 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "goatzone"; + Span span245 = CollectionsMarshal.AsSpan(list245); + index = 0; + span245[index] = "goatzone"; questRoot30.Author = list245; - num = 3; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span100 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference181 = ref span100[0]; + index = 3; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + Span span246 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference181 = ref span246[num]; QuestSequence obj150 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037779u, new Vector3(513.7865f, -36.65f, -135.91211f), 958); + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + Span span247 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span247[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037779u, new Vector3(513.7865f, -36.65f, -135.91211f), 958); obj150.Steps = list247; reference181 = obj150; - ref QuestSequence reference182 = ref span100[1]; + num++; + ref QuestSequence reference182 = ref span246[num]; QuestSequence obj151 = new QuestSequence { Sequence = 1 @@ -280056,45 +339511,62 @@ public static class AssemblyQuestLoader num2 = 4; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span101 = CollectionsMarshal.AsSpan(list248); - ref QuestStep reference183 = ref span101[0]; + Span span248 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + ref QuestStep reference183 = ref span248[index2]; QuestStep obj152 = new QuestStep(EInteractionType.Combat, 1039400u, new Vector3(364.76685f, 10.8f, -308.03394f), 958) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list249 = new List(num3); - CollectionsMarshal.SetCount(list249, num3); - CollectionsMarshal.AsSpan(list249)[0] = 14103u; + index3 = 1; + List list249 = new List(index3); + CollectionsMarshal.SetCount(list249, index3); + Span span249 = CollectionsMarshal.AsSpan(list249); + num3 = 0; + span249[num3] = 14103u; obj152.KillEnemyDataIds = list249; num3 = 6; List list250 = new List(num3); CollectionsMarshal.SetCount(list250, num3); - Span span102 = CollectionsMarshal.AsSpan(list250); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span250 = CollectionsMarshal.AsSpan(list250); + index3 = 0; + span250[index3] = null; + index3++; + span250[index3] = null; + index3++; + span250[index3] = null; + index3++; + span250[index3] = null; + index3++; + span250[index3] = null; + index3++; + span250[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj152.CompletionQuestVariablesFlags = list250; reference183 = obj152; - ref QuestStep reference184 = ref span101[1]; + index2++; + ref QuestStep reference184 = ref span248[index2]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 1040627u, new Vector3(282.00195f, 11.327993f, -365.8656f), 958); - num3 = 6; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - Span span103 = CollectionsMarshal.AsSpan(list251); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list251 = new List(index3); + CollectionsMarshal.SetCount(list251, index3); + Span span251 = CollectionsMarshal.AsSpan(list251); + num3 = 0; + span251[num3] = null; + num3++; + span251[num3] = null; + num3++; + span251[num3] = null; + num3++; + span251[num3] = null; + num3++; + span251[num3] = null; + num3++; + span251[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep32.CompletionQuestVariablesFlags = list251; reference184 = questStep32; - ref QuestStep reference185 = ref span101[2]; + index2++; + ref QuestStep reference185 = ref span248[index2]; QuestStep obj153 = new QuestStep(EInteractionType.Interact, 1040626u, new Vector3(296.4065f, 10.799999f, -387.9912f), 958) { Mount = true @@ -280102,40 +339574,56 @@ public static class AssemblyQuestLoader num3 = 6; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - Span span104 = CollectionsMarshal.AsSpan(list252); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span252 = CollectionsMarshal.AsSpan(list252); + index3 = 0; + span252[index3] = null; + index3++; + span252[index3] = null; + index3++; + span252[index3] = null; + index3++; + span252[index3] = null; + index3++; + span252[index3] = null; + index3++; + span252[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj153.CompletionQuestVariablesFlags = list252; reference185 = obj153; - ref QuestStep reference186 = ref span101[3]; + index2++; + ref QuestStep reference186 = ref span248[index2]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1040628u, new Vector3(260.8224f, 10.849999f, -456.32104f), 958); - num3 = 6; - List list253 = new List(num3); - CollectionsMarshal.SetCount(list253, num3); - Span span105 = CollectionsMarshal.AsSpan(list253); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list253 = new List(index3); + CollectionsMarshal.SetCount(list253, index3); + Span span253 = CollectionsMarshal.AsSpan(list253); + num3 = 0; + span253[num3] = null; + num3++; + span253[num3] = null; + num3++; + span253[num3] = null; + num3++; + span253[num3] = null; + num3++; + span253[num3] = null; + num3++; + span253[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep33.CompletionQuestVariablesFlags = list253; reference186 = questStep33; obj151.Steps = list248; reference182 = obj151; - ref QuestSequence reference187 = ref span100[2]; + num++; + ref QuestSequence reference187 = ref span246[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037779u, new Vector3(513.7865f, -36.65f, -135.91211f), 958) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037779u, new Vector3(513.7865f, -36.65f, -135.91211f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; @@ -280148,13 +339636,16 @@ public static class AssemblyQuestLoader num = 1; List list255 = new List(num); CollectionsMarshal.SetCount(list255, num); - CollectionsMarshal.AsSpan(list255)[0] = "goatzone"; + Span span255 = CollectionsMarshal.AsSpan(list255); + index = 0; + span255[index] = "goatzone"; questRoot31.Author = list255; - num = 4; - List list256 = new List(num); - CollectionsMarshal.SetCount(list256, num); - Span span106 = CollectionsMarshal.AsSpan(list256); - ref QuestSequence reference188 = ref span106[0]; + index = 4; + List list256 = new List(index); + CollectionsMarshal.SetCount(list256, index); + Span span256 = CollectionsMarshal.AsSpan(list256); + num = 0; + ref QuestSequence reference188 = ref span256[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -280162,26 +339653,31 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040645u, new Vector3(485.2522f, 10.800001f, -456.32104f), 958) + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040645u, new Vector3(485.2522f, 10.800001f, -456.32104f), 958) { Fly = true }; obj155.Steps = list257; reference188 = obj155; - ref QuestSequence reference189 = ref span106[1]; + num++; + ref QuestSequence reference189 = ref span256[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - Span span107 = CollectionsMarshal.AsSpan(list258); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-340.87164f, 10.803238f, -694.511f), 958) + index2 = 3; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span258[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-340.87164f, 10.803238f, -694.511f), 958) { Fly = true }; - ref QuestStep reference190 = ref span107[1]; + num2++; + ref QuestStep reference190 = ref span258[num2]; QuestStep obj157 = new QuestStep(EInteractionType.Combat, null, new Vector3(-310.5188f, 10.813947f, -720.8323f), 958) { Fly = false, @@ -280190,16 +339686,20 @@ public static class AssemblyQuestLoader num3 = 1; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - CollectionsMarshal.AsSpan(list259)[0] = 14102u; + Span span259 = CollectionsMarshal.AsSpan(list259); + index3 = 0; + span259[index3] = 14102u; obj157.KillEnemyDataIds = list259; reference190 = obj157; - span107[2] = new QuestStep(EInteractionType.UseItem, 14102u, new Vector3(-313.222f, 10.821807f, -720.4852f), 958) + num2++; + span258[num2] = new QuestStep(EInteractionType.UseItem, 14102u, new Vector3(-313.222f, 10.821807f, -720.4852f), 958) { ItemId = 2003208u }; obj156.Steps = list258; reference189 = obj156; - ref QuestSequence reference191 = ref span106[2]; + num++; + ref QuestSequence reference191 = ref span256[num]; QuestSequence obj158 = new QuestSequence { Sequence = 2 @@ -280207,18 +339707,23 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1040629u, new Vector3(-310.47534f, 10.815676f, -720.2411f), 958); + Span span260 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span260[index2] = new QuestStep(EInteractionType.Interact, 1040629u, new Vector3(-310.47534f, 10.815676f, -720.2411f), 958); obj158.Steps = list260; reference191 = obj158; - ref QuestSequence reference192 = ref span106[3]; + num++; + ref QuestSequence reference192 = ref span256[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040645u, new Vector3(485.2522f, 10.800001f, -456.32104f), 958) + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + Span span261 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span261[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040645u, new Vector3(485.2522f, 10.800001f, -456.32104f), 958) { Fly = true, AetheryteShortcut = EAetheryteLocation.GarlemaldTertium @@ -280232,13 +339737,16 @@ public static class AssemblyQuestLoader num = 1; List list262 = new List(num); CollectionsMarshal.SetCount(list262, num); - CollectionsMarshal.AsSpan(list262)[0] = "goatzone"; + Span span262 = CollectionsMarshal.AsSpan(list262); + index = 0; + span262[index] = "goatzone"; questRoot32.Author = list262; - num = 3; - List list263 = new List(num); - CollectionsMarshal.SetCount(list263, num); - Span span108 = CollectionsMarshal.AsSpan(list263); - ref QuestSequence reference193 = ref span108[0]; + index = 3; + List list263 = new List(index); + CollectionsMarshal.SetCount(list263, index); + Span span263 = CollectionsMarshal.AsSpan(list263); + num = 0; + ref QuestSequence reference193 = ref span263[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 @@ -280246,12 +339754,16 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - ref QuestStep reference194 = ref CollectionsMarshal.AsSpan(list264)[0]; + Span span264 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + ref QuestStep reference194 = ref span264[index2]; QuestStep questStep34 = new QuestStep(EInteractionType.AcceptQuest, 1040646u, new Vector3(503.9292f, -36.65f, -253.07086f), 958); - num3 = 1; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - CollectionsMarshal.AsSpan(list265)[0] = new DialogueChoice + index3 = 1; + List list265 = new List(index3); + CollectionsMarshal.SetCount(list265, index3); + Span span265 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span265[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD007_04231_Q1_000_000"), @@ -280261,64 +339773,88 @@ public static class AssemblyQuestLoader reference194 = questStep34; obj160.Steps = list264; reference193 = obj160; - ref QuestSequence reference195 = ref span108[1]; + num++; + ref QuestSequence reference195 = ref span263[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - Span span109 = CollectionsMarshal.AsSpan(list266); - ref QuestStep reference196 = ref span109[0]; + index2 = 4; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + Span span266 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + ref QuestStep reference196 = ref span266[num2]; QuestStep questStep35 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(545.40717f, -36.616177f, -267.17505f), 958); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); num3 = 6; List list267 = new List(num3); CollectionsMarshal.SetCount(list267, num3); - Span span110 = CollectionsMarshal.AsSpan(list267); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span267 = CollectionsMarshal.AsSpan(list267); + index3 = 0; + span267[index3] = null; + index3++; + span267[index3] = null; + index3++; + span267[index3] = null; + index3++; + span267[index3] = null; + index3++; + span267[index3] = null; + index3++; + span267[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list267; skipConditions6.StepIf = skipStepConditions6; questStep35.SkipConditions = skipConditions6; reference196 = questStep35; - ref QuestStep reference197 = ref span109[1]; + num2++; + ref QuestStep reference197 = ref span266[num2]; QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 1037766u, new Vector3(545.3115f, -36.616177f, -265.00348f), 958); - num3 = 6; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - Span span111 = CollectionsMarshal.AsSpan(list268); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list268 = new List(index3); + CollectionsMarshal.SetCount(list268, index3); + Span span268 = CollectionsMarshal.AsSpan(list268); + num3 = 0; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep36.CompletionQuestVariablesFlags = list268; reference197 = questStep36; - ref QuestStep reference198 = ref span109[2]; + num2++; + ref QuestStep reference198 = ref span266[num2]; QuestStep questStep37 = new QuestStep(EInteractionType.Interact, 1037774u, new Vector3(518.181f, -36.65f, -212.14618f), 958); num3 = 6; List list269 = new List(num3); CollectionsMarshal.SetCount(list269, num3); - Span span112 = CollectionsMarshal.AsSpan(list269); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span269 = CollectionsMarshal.AsSpan(list269); + index3 = 0; + span269[index3] = null; + index3++; + span269[index3] = null; + index3++; + span269[index3] = null; + index3++; + span269[index3] = null; + index3++; + span269[index3] = null; + index3++; + span269[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep37.CompletionQuestVariablesFlags = list269; - num3 = 1; - List list270 = new List(num3); - CollectionsMarshal.SetCount(list270, num3); - CollectionsMarshal.AsSpan(list270)[0] = new DialogueChoice + index3 = 1; + List list270 = new List(index3); + CollectionsMarshal.SetCount(list270, index3); + Span span270 = CollectionsMarshal.AsSpan(list270); + num3 = 0; + span270[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD007_04231_Q2_000_100"), @@ -280326,23 +339862,31 @@ public static class AssemblyQuestLoader }; questStep37.DialogueChoices = list270; reference198 = questStep37; - ref QuestStep reference199 = ref span109[3]; + num2++; + ref QuestStep reference199 = ref span266[num2]; QuestStep questStep38 = new QuestStep(EInteractionType.Interact, 1040632u, new Vector3(537.4684f, -36.65f, -175.21942f), 958); num3 = 6; List list271 = new List(num3); CollectionsMarshal.SetCount(list271, num3); - Span span113 = CollectionsMarshal.AsSpan(list271); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span271 = CollectionsMarshal.AsSpan(list271); + index3 = 0; + span271[index3] = null; + index3++; + span271[index3] = null; + index3++; + span271[index3] = null; + index3++; + span271[index3] = null; + index3++; + span271[index3] = null; + index3++; + span271[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep38.CompletionQuestVariablesFlags = list271; reference199 = questStep38; obj161.Steps = list266; reference195 = obj161; - ref QuestSequence reference200 = ref span108[2]; + num++; + ref QuestSequence reference200 = ref span263[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue @@ -280350,7 +339894,9 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040646u, new Vector3(503.9292f, -36.65f, -253.07086f), 958); + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040646u, new Vector3(503.9292f, -36.65f, -253.07086f), 958); obj162.Steps = list272; reference200 = obj162; questRoot32.QuestSequence = list263; @@ -280360,24 +339906,30 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "liza"; + Span span273 = CollectionsMarshal.AsSpan(list273); + index = 0; + span273[index] = "liza"; questRoot33.Author = list273; - num = 6; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span114 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference201 = ref span114[0]; + index = 6; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + Span span274 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference201 = ref span274[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040633u, new Vector3(496.94043f, 10.887661f, -418.57025f), 958); + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040633u, new Vector3(496.94043f, 10.887661f, -418.57025f), 958); obj163.Steps = list275; reference201 = obj163; - ref QuestSequence reference202 = ref span114[1]; + num++; + ref QuestSequence reference202 = ref span274[num]; QuestSequence obj164 = new QuestSequence { Sequence = 1 @@ -280385,102 +339937,122 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1040634u, new Vector3(190.26465f, 10.5f, -630.2129f), 958); + Span span276 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span276[index2] = new QuestStep(EInteractionType.Interact, 1040634u, new Vector3(190.26465f, 10.5f, -630.2129f), 958); obj164.Steps = list276; reference202 = obj164; - ref QuestSequence reference203 = ref span114[2]; + num++; + ref QuestSequence reference203 = ref span274[num]; QuestSequence obj165 = new QuestSequence { Sequence = 2 }; - num2 = 15; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - Span span115 = CollectionsMarshal.AsSpan(list277); - ref QuestStep reference204 = ref span115[0]; + index2 = 15; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + ref QuestStep reference204 = ref span277[num2]; QuestStep questStep39 = new QuestStep(EInteractionType.Interact, 2012377u, new Vector3(189.10498f, 10.482849f, -668.9708f), 958); - num3 = 1; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - CollectionsMarshal.AsSpan(list278)[0] = new DialogueChoice + index3 = 1; + List list278 = new List(index3); + CollectionsMarshal.SetCount(list278, index3); + Span span278 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span278[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZD008_04232_SYSTEM04232_Q1_000_001") }; questStep39.DialogueChoices = list278; reference204 = questStep39; - span115[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(148.87286f, 10.5f, -674.6158f), 958) + num2++; + span277[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(148.87286f, 10.5f, -674.6158f), 958) { StopDistance = 50f, NpcWaitDistance = 3f }; - span115[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.07327f, 10.499999f, -675.6929f), 958); - span115[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(100.27427f, 10.5f, -668.4484f), 958) + num2++; + span277[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.07327f, 10.499999f, -675.6929f), 958); + num2++; + span277[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(100.27427f, 10.5f, -668.4484f), 958) { StopDistance = 50f, NpcWaitDistance = 3f }; - span115[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.80121f, 10.5f, -668.12524f), 958) + num2++; + span277[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.80121f, 10.5f, -668.12524f), 958) { Mount = false, Sprint = false }; - span115[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.11899f, 10.8f, -647.2713f), 958) + num2++; + span277[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.11899f, 10.8f, -647.2713f), 958) { Mount = false, Sprint = false }; - span115[6] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(55.128044f, 10.799999f, -632.78925f), 958) + num2++; + span277[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(55.128044f, 10.799999f, -632.78925f), 958) { StopDistance = 50f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - span115[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(68.38609f, 10.799999f, -630.82086f), 958) + num2++; + span277[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(68.38609f, 10.799999f, -630.82086f), 958) { Mount = false, Sprint = false }; - span115[8] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(42.153065f, 10.8f, -625.0765f), 958) + num2++; + span277[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(42.153065f, 10.8f, -625.0765f), 958) { StopDistance = 50f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - span115[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.18486f, 10.799999f, -617.59485f), 958) + num2++; + span277[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.18486f, 10.799999f, -617.59485f), 958) { Mount = false, Sprint = false }; - span115[10] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(60.43399f, 10.799999f, -600.4008f), 958) + num2++; + span277[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(60.43399f, 10.799999f, -600.4008f), 958) { StopDistance = 50f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - span115[11] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(55.30184f, 10.8f, -598.927f), 958) + num2++; + span277[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(55.30184f, 10.8f, -598.927f), 958) { StopDistance = 50f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - span115[12] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(43.088688f, 10.8f, -617.3753f), 958) + num2++; + span277[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(43.088688f, 10.8f, -617.3753f), 958) { DelaySecondsAtStart = 8f, Mount = false, Sprint = false }; - span115[13] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(21.752983f, 10.5f, -589.2936f), 958) + num2++; + span277[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(21.752983f, 10.5f, -589.2936f), 958) { StopDistance = 50f, Mount = false, Sprint = false }; - span115[14] = new QuestStep(EInteractionType.WalkTo, 1040636u, new Vector3(21.744019f, 10.5f, -589.3187f), 958) + num2++; + span277[num2] = new QuestStep(EInteractionType.WalkTo, 1040636u, new Vector3(21.744019f, 10.5f, -589.3187f), 958) { StopDistance = 4f, DelaySecondsAtStart = 5f, @@ -280490,7 +340062,8 @@ public static class AssemblyQuestLoader }; obj165.Steps = list277; reference203 = obj165; - ref QuestSequence reference205 = ref span114[3]; + num++; + ref QuestSequence reference205 = ref span274[num]; QuestSequence obj166 = new QuestSequence { Sequence = 3 @@ -280498,7 +340071,9 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - ref QuestStep reference206 = ref CollectionsMarshal.AsSpan(list279)[0]; + Span span279 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + ref QuestStep reference206 = ref span279[index2]; QuestStep obj167 = new QuestStep(EInteractionType.Combat, null, new Vector3(-18.56067f, 10.5f, -530.3922f), 958) { StopDistance = 1f, @@ -280507,28 +340082,35 @@ public static class AssemblyQuestLoader num3 = 1; List list280 = new List(num3); CollectionsMarshal.SetCount(list280, num3); - CollectionsMarshal.AsSpan(list280)[0] = 14101u; + Span span280 = CollectionsMarshal.AsSpan(list280); + index3 = 0; + span280[index3] = 14101u; obj167.KillEnemyDataIds = list280; reference206 = obj167; obj166.Steps = list279; reference205 = obj166; - ref QuestSequence reference207 = ref span114[4]; + num++; + ref QuestSequence reference207 = ref span274[num]; QuestSequence obj168 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - ref QuestStep reference208 = ref CollectionsMarshal.AsSpan(list281)[0]; + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + Span span281 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + ref QuestStep reference208 = ref span281[num2]; QuestStep obj169 = new QuestStep(EInteractionType.Interact, 1040637u, new Vector3(-16.525574f, 10.5f, -532.15845f), 958) { StopDistance = 7f }; - num3 = 1; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = new DialogueChoice + index3 = 1; + List list282 = new List(index3); + CollectionsMarshal.SetCount(list282, index3); + Span span282 = CollectionsMarshal.AsSpan(list282); + num3 = 0; + span282[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD008_04232_Q1_000_000"), @@ -280538,7 +340120,8 @@ public static class AssemblyQuestLoader reference208 = obj169; obj168.Steps = list281; reference207 = obj168; - ref QuestSequence reference209 = ref span114[5]; + num++; + ref QuestSequence reference209 = ref span274[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue @@ -280546,7 +340129,9 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040633u, new Vector3(496.94043f, 10.887661f, -418.57025f), 958) + Span span283 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span283[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040633u, new Vector3(496.94043f, 10.887661f, -418.57025f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; @@ -280559,24 +340144,30 @@ public static class AssemblyQuestLoader num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - CollectionsMarshal.AsSpan(list284)[0] = "goatzone"; + Span span284 = CollectionsMarshal.AsSpan(list284); + index = 0; + span284[index] = "goatzone"; questRoot34.Author = list284; - num = 4; - List list285 = new List(num); - CollectionsMarshal.SetCount(list285, num); - Span span116 = CollectionsMarshal.AsSpan(list285); - ref QuestSequence reference210 = ref span116[0]; + index = 4; + List list285 = new List(index); + CollectionsMarshal.SetCount(list285, index); + Span span285 = CollectionsMarshal.AsSpan(list285); + num = 0; + ref QuestSequence reference210 = ref span285[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037722u, new Vector3(-308.0949f, 22f, 415.3047f), 958); + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + Span span286 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span286[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037722u, new Vector3(-308.0949f, 22f, 415.3047f), 958); obj171.Steps = list286; reference210 = obj171; - ref QuestSequence reference211 = ref span116[1]; + num++; + ref QuestSequence reference211 = ref span285[num]; QuestSequence obj172 = new QuestSequence { Sequence = 1 @@ -280584,54 +340175,64 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Emote, 1039353u, new Vector3(-308.00336f, 22f, 413.80933f), 958) + Span span287 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + span287[index2] = new QuestStep(EInteractionType.Emote, 1039353u, new Vector3(-308.00336f, 22f, 413.80933f), 958) { Emote = EEmote.Soothe }; obj172.Steps = list287; reference211 = obj172; - ref QuestSequence reference212 = ref span116[2]; + num++; + ref QuestSequence reference212 = ref span285[num]; QuestSequence obj173 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - Span span117 = CollectionsMarshal.AsSpan(list288); - span117[0] = new QuestStep(EInteractionType.Interact, 1039353u, new Vector3(-308.00336f, 22f, 413.80933f), 958); - span117[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-310.48834f, 24.947939f, 377.09357f), 958) + index2 = 6; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + Span span288 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span288[num2] = new QuestStep(EInteractionType.Interact, 1039353u, new Vector3(-308.00336f, 22f, 413.80933f), 958); + num2++; + span288[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-310.48834f, 24.947939f, 377.09357f), 958) { NpcWaitDistance = 1f, Mount = false, Sprint = false }; - span117[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-351.1446f, 7.736393f, 303.24872f), 958) + num2++; + span288[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-351.1446f, 7.736393f, 303.24872f), 958) { NpcWaitDistance = 1f, Mount = false, Sprint = false }; - span117[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-334.03958f, 19.434929f, 175.00089f), 958) + num2++; + span288[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-334.03958f, 19.434929f, 175.00089f), 958) { NpcWaitDistance = 1f, Mount = false, Sprint = false }; - span117[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-321.72916f, 18.139357f, 98.16852f), 958) + num2++; + span288[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-321.72916f, 18.139357f, 98.16852f), 958) { NpcWaitDistance = 1f, Mount = false, Sprint = false }; - span117[5] = new QuestStep(EInteractionType.Interact, 1039355u, new Vector3(-319.4171f, 8.981749f, -9.475891f), 958) + num2++; + span288[num2] = new QuestStep(EInteractionType.Interact, 1039355u, new Vector3(-319.4171f, 8.981749f, -9.475891f), 958) { Mount = false, Sprint = false }; obj173.Steps = list288; reference212 = obj173; - ref QuestSequence reference213 = ref span116[3]; + num++; + ref QuestSequence reference213 = ref span285[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue @@ -280639,7 +340240,9 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037722u, new Vector3(-308.0949f, 22f, 415.3047f), 958) + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span289[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037722u, new Vector3(-308.0949f, 22f, 415.3047f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -280652,24 +340255,30 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - CollectionsMarshal.AsSpan(list290)[0] = "goatzone"; + Span span290 = CollectionsMarshal.AsSpan(list290); + index = 0; + span290[index] = "goatzone"; questRoot35.Author = list290; - num = 5; - List list291 = new List(num); - CollectionsMarshal.SetCount(list291, num); - Span span118 = CollectionsMarshal.AsSpan(list291); - ref QuestSequence reference214 = ref span118[0]; + index = 5; + List list291 = new List(index); + CollectionsMarshal.SetCount(list291, index); + Span span291 = CollectionsMarshal.AsSpan(list291); + num = 0; + ref QuestSequence reference214 = ref span291[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039358u, new Vector3(-321.43134f, 22.377153f, 473.167f), 958); + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + Span span292 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span292[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039358u, new Vector3(-321.43134f, 22.377153f, 473.167f), 958); obj175.Steps = list292; reference214 = obj175; - ref QuestSequence reference215 = ref span118[1]; + num++; + ref QuestSequence reference215 = ref span291[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 @@ -280677,28 +340286,34 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1039359u, new Vector3(486.71704f, 11.195138f, -299.36682f), 958) + Span span293 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span293[index2] = new QuestStep(EInteractionType.Interact, 1039359u, new Vector3(486.71704f, 11.195138f, -299.36682f), 958) { Fly = true, AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; obj176.Steps = list293; reference215 = obj176; - ref QuestSequence reference216 = ref span118[2]; + num++; + ref QuestSequence reference216 = ref span291[num]; QuestSequence obj177 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Snipe, 2011849u, new Vector3(486.04553f, 11.154297f, -296.37604f), 958) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span294 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span294[num2] = new QuestStep(EInteractionType.Snipe, 2011849u, new Vector3(486.04553f, 11.154297f, -296.37604f), 958) { Comment = "Snipe Magitek Colossi" }; obj177.Steps = list294; reference216 = obj177; - ref QuestSequence reference217 = ref span118[3]; + num++; + ref QuestSequence reference217 = ref span291[num]; QuestSequence obj178 = new QuestSequence { Sequence = 3 @@ -280706,18 +340321,23 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1039359u, new Vector3(486.71704f, 11.195138f, -299.36682f), 958); + Span span295 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span295[index2] = new QuestStep(EInteractionType.Interact, 1039359u, new Vector3(486.71704f, 11.195138f, -299.36682f), 958); obj178.Steps = list295; reference217 = obj178; - ref QuestSequence reference218 = ref span118[4]; + num++; + ref QuestSequence reference218 = ref span291[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037729u, new Vector3(-342.67188f, 22.377153f, 466.8496f), 958) + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span296 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span296[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037729u, new Vector3(-342.67188f, 22.377153f, 466.8496f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -280730,13 +340350,16 @@ public static class AssemblyQuestLoader num = 1; List list297 = new List(num); CollectionsMarshal.SetCount(list297, num); - CollectionsMarshal.AsSpan(list297)[0] = "goatzone"; + Span span297 = CollectionsMarshal.AsSpan(list297); + index = 0; + span297[index] = "goatzone"; questRoot36.Author = list297; - num = 6; - List list298 = new List(num); - CollectionsMarshal.SetCount(list298, num); - Span span119 = CollectionsMarshal.AsSpan(list298); - ref QuestSequence reference219 = ref span119[0]; + index = 6; + List list298 = new List(index); + CollectionsMarshal.SetCount(list298, index); + Span span298 = CollectionsMarshal.AsSpan(list298); + num = 0; + ref QuestSequence reference219 = ref span298[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 @@ -280744,21 +340367,27 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958); + Span span299 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span299[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958); obj180.Steps = list299; reference219 = obj180; - ref QuestSequence reference220 = ref span119[1]; + num++; + ref QuestSequence reference220 = ref span298[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1040663u, new Vector3(-318.10486f, 23.722221f, 353.93298f), 958); + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + Span span300 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span300[num2] = new QuestStep(EInteractionType.Interact, 1040663u, new Vector3(-318.10486f, 23.722221f, 353.93298f), 958); obj181.Steps = list300; reference220 = obj181; - ref QuestSequence reference221 = ref span119[2]; + num++; + ref QuestSequence reference221 = ref span298[num]; QuestSequence obj182 = new QuestSequence { Sequence = 2 @@ -280766,23 +340395,27 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 1040664u, new Vector3(382.22327f, 10.762111f, -713.3135f), 958) + Span span301 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + span301[index2] = new QuestStep(EInteractionType.Interact, 1040664u, new Vector3(382.22327f, 10.762111f, -713.3135f), 958) { Fly = true, AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; obj182.Steps = list301; reference221 = obj182; - ref QuestSequence reference222 = ref span119[3]; + num++; + ref QuestSequence reference222 = ref span298[num]; QuestSequence obj183 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - Span span120 = CollectionsMarshal.AsSpan(list302); - ref QuestStep reference223 = ref span120[0]; + index2 = 2; + List list302 = new List(index2); + CollectionsMarshal.SetCount(list302, index2); + Span span302 = CollectionsMarshal.AsSpan(list302); + num2 = 0; + ref QuestStep reference223 = ref span302[num2]; QuestStep obj184 = new QuestStep(EInteractionType.UseItem, 2012052u, new Vector3(383.84058f, 11.48999f, -711.1162f), 958) { ItemId = 2003210u @@ -280790,35 +340423,49 @@ public static class AssemblyQuestLoader num3 = 6; List list303 = new List(num3); CollectionsMarshal.SetCount(list303, num3); - Span span121 = CollectionsMarshal.AsSpan(list303); - span121[0] = null; - span121[1] = null; - span121[2] = null; - span121[3] = null; - span121[4] = null; - span121[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span303 = CollectionsMarshal.AsSpan(list303); + index3 = 0; + span303[index3] = null; + index3++; + span303[index3] = null; + index3++; + span303[index3] = null; + index3++; + span303[index3] = null; + index3++; + span303[index3] = null; + index3++; + span303[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj184.CompletionQuestVariablesFlags = list303; reference223 = obj184; - ref QuestStep reference224 = ref span120[1]; + num2++; + ref QuestStep reference224 = ref span302[num2]; QuestStep obj185 = new QuestStep(EInteractionType.UseItem, 2012051u, new Vector3(383.5354f, 11.306824f, -708.03394f), 958) { ItemId = 2003210u }; - num3 = 6; - List list304 = new List(num3); - CollectionsMarshal.SetCount(list304, num3); - Span span122 = CollectionsMarshal.AsSpan(list304); - span122[0] = null; - span122[1] = null; - span122[2] = null; - span122[3] = null; - span122[4] = null; - span122[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list304 = new List(index3); + CollectionsMarshal.SetCount(list304, index3); + Span span304 = CollectionsMarshal.AsSpan(list304); + num3 = 0; + span304[num3] = null; + num3++; + span304[num3] = null; + num3++; + span304[num3] = null; + num3++; + span304[num3] = null; + num3++; + span304[num3] = null; + num3++; + span304[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj185.CompletionQuestVariablesFlags = list304; reference224 = obj185; obj183.Steps = list302; reference222 = obj183; - ref QuestSequence reference225 = ref span119[4]; + num++; + ref QuestSequence reference225 = ref span298[num]; QuestSequence obj186 = new QuestSequence { Sequence = 4 @@ -280826,12 +340473,16 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - ref QuestStep reference226 = ref CollectionsMarshal.AsSpan(list305)[0]; + Span span305 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + ref QuestStep reference226 = ref span305[index2]; QuestStep questStep40 = new QuestStep(EInteractionType.Interact, 1040664u, new Vector3(382.22327f, 10.762111f, -713.3135f), 958); num3 = 1; List list306 = new List(num3); CollectionsMarshal.SetCount(list306, num3); - CollectionsMarshal.AsSpan(list306)[0] = new DialogueChoice + Span span306 = CollectionsMarshal.AsSpan(list306); + index3 = 0; + span306[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD011_04235_Q1_000_000"), @@ -280841,15 +340492,18 @@ public static class AssemblyQuestLoader reference226 = questStep40; obj186.Steps = list305; reference225 = obj186; - ref QuestSequence reference227 = ref span119[5]; + num++; + ref QuestSequence reference227 = ref span298[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958) + index2 = 1; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + Span span307 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span307[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -280862,13 +340516,16 @@ public static class AssemblyQuestLoader num = 1; List list308 = new List(num); CollectionsMarshal.SetCount(list308, num); - CollectionsMarshal.AsSpan(list308)[0] = "goatzone"; + Span span308 = CollectionsMarshal.AsSpan(list308); + index = 0; + span308[index] = "goatzone"; questRoot37.Author = list308; - num = 6; - List list309 = new List(num); - CollectionsMarshal.SetCount(list309, num); - Span span123 = CollectionsMarshal.AsSpan(list309); - ref QuestSequence reference228 = ref span123[0]; + index = 6; + List list309 = new List(index); + CollectionsMarshal.SetCount(list309, index); + Span span309 = CollectionsMarshal.AsSpan(list309); + num = 0; + ref QuestSequence reference228 = ref span309[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 @@ -280876,24 +340533,30 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037741u, new Vector3(-434.50067f, 22.00912f, 470.32874f), 958); + Span span310 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span310[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037741u, new Vector3(-434.50067f, 22.00912f, 470.32874f), 958); obj188.Steps = list310; reference228 = obj188; - ref QuestSequence reference229 = ref span123[1]; + num++; + ref QuestSequence reference229 = ref span309[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Interact, 1040666u, new Vector3(-294.20923f, 21.732546f, 485.67932f), 958) + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + Span span311 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span311[num2] = new QuestStep(EInteractionType.Interact, 1040666u, new Vector3(-294.20923f, 21.732546f, 485.67932f), 958) { Fly = true }; obj189.Steps = list311; reference229 = obj189; - ref QuestSequence reference230 = ref span123[2]; + num++; + ref QuestSequence reference230 = ref span309[num]; QuestSequence obj190 = new QuestSequence { Sequence = 2 @@ -280901,37 +340564,45 @@ public static class AssemblyQuestLoader num2 = 1; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Interact, 1040667u, new Vector3(323.26233f, -9.523699f, 251.88062f), 958) + Span span312 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + span312[index2] = new QuestStep(EInteractionType.Interact, 1040667u, new Vector3(323.26233f, -9.523699f, 251.88062f), 958) { Fly = true }; obj190.Steps = list312; reference230 = obj190; - ref QuestSequence reference231 = ref span123[3]; + num++; + ref QuestSequence reference231 = ref span309[num]; QuestSequence obj191 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - Span span124 = CollectionsMarshal.AsSpan(list313); - span124[0] = new QuestStep(EInteractionType.Interact, 2012053u, new Vector3(313.6797f, -11.978394f, 279.74353f), 958); - ref QuestStep reference232 = ref span124[1]; + index2 = 2; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + Span span313 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span313[num2] = new QuestStep(EInteractionType.Interact, 2012053u, new Vector3(313.6797f, -11.978394f, 279.74353f), 958); + num2++; + ref QuestStep reference232 = ref span313[num2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, 14100u, new Vector3(302.5399f, -12.244642f, 304.46622f), 958) { ItemId = 2003211u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list314 = new List(num3); - CollectionsMarshal.SetCount(list314, num3); - CollectionsMarshal.AsSpan(list314)[0] = 14100u; + index3 = 1; + List list314 = new List(index3); + CollectionsMarshal.SetCount(list314, index3); + Span span314 = CollectionsMarshal.AsSpan(list314); + num3 = 0; + span314[num3] = 14100u; obj192.KillEnemyDataIds = list314; reference232 = obj192; obj191.Steps = list313; reference231 = obj191; - ref QuestSequence reference233 = ref span123[4]; + num++; + ref QuestSequence reference233 = ref span309[num]; QuestSequence obj193 = new QuestSequence { Sequence = 4 @@ -280939,21 +340610,26 @@ public static class AssemblyQuestLoader num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1040667u, new Vector3(323.26233f, -9.523699f, 251.88062f), 958) + Span span315 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span315[index2] = new QuestStep(EInteractionType.Interact, 1040667u, new Vector3(323.26233f, -9.523699f, 251.88062f), 958) { Fly = false }; obj193.Steps = list315; reference233 = obj193; - ref QuestSequence reference234 = ref span123[5]; + num++; + ref QuestSequence reference234 = ref span309[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037741u, new Vector3(-434.50067f, 22.00912f, 470.32874f), 958) + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + Span span316 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + span316[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037741u, new Vector3(-434.50067f, 22.00912f, 470.32874f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -280966,13 +340642,16 @@ public static class AssemblyQuestLoader num = 1; List list317 = new List(num); CollectionsMarshal.SetCount(list317, num); - CollectionsMarshal.AsSpan(list317)[0] = "goatzone"; + Span span317 = CollectionsMarshal.AsSpan(list317); + index = 0; + span317[index] = "goatzone"; questRoot38.Author = list317; - num = 3; - List list318 = new List(num); - CollectionsMarshal.SetCount(list318, num); - Span span125 = CollectionsMarshal.AsSpan(list318); - ref QuestSequence reference235 = ref span125[0]; + index = 3; + List list318 = new List(index); + CollectionsMarshal.SetCount(list318, index); + Span span318 = CollectionsMarshal.AsSpan(list318); + num = 0; + ref QuestSequence reference235 = ref span318[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -280980,19 +340659,23 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037747u, new Vector3(-314.25964f, 22.00559f, 430.47217f), 958); + Span span319 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + span319[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037747u, new Vector3(-314.25964f, 22.00559f, 430.47217f), 958); obj195.Steps = list319; reference235 = obj195; - ref QuestSequence reference236 = ref span125[1]; + num++; + ref QuestSequence reference236 = ref span318[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - Span span126 = CollectionsMarshal.AsSpan(list320); - ref QuestStep reference237 = ref span126[0]; + index2 = 7; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + Span span320 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + ref QuestStep reference237 = ref span320[num2]; QuestStep obj197 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-189.97284f, 15.907461f, -169.83481f), 958) { Fly = true @@ -281002,36 +340685,50 @@ public static class AssemblyQuestLoader num3 = 6; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - Span span127 = CollectionsMarshal.AsSpan(list321); - span127[0] = null; - span127[1] = null; - span127[2] = null; - span127[3] = null; - span127[4] = null; - span127[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span321 = CollectionsMarshal.AsSpan(list321); + index3 = 0; + span321[index3] = null; + index3++; + span321[index3] = null; + index3++; + span321[index3] = null; + index3++; + span321[index3] = null; + index3++; + span321[index3] = null; + index3++; + span321[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list321; skipStepConditions7.Flying = ELockedSkipCondition.Locked; skipConditions7.StepIf = skipStepConditions7; obj197.SkipConditions = skipConditions7; reference237 = obj197; - ref QuestStep reference238 = ref span126[1]; + num2++; + ref QuestStep reference238 = ref span320[num2]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 2012054u, new Vector3(-156.05408f, 10.788086f, -235.40094f), 958) { Fly = true }; - num3 = 6; - List list322 = new List(num3); - CollectionsMarshal.SetCount(list322, num3); - Span span128 = CollectionsMarshal.AsSpan(list322); - span128[0] = null; - span128[1] = null; - span128[2] = null; - span128[3] = null; - span128[4] = null; - span128[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list322 = new List(index3); + CollectionsMarshal.SetCount(list322, index3); + Span span322 = CollectionsMarshal.AsSpan(list322); + num3 = 0; + span322[num3] = null; + num3++; + span322[num3] = null; + num3++; + span322[num3] = null; + num3++; + span322[num3] = null; + num3++; + span322[num3] = null; + num3++; + span322[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj198.CompletionQuestVariablesFlags = list322; reference238 = obj198; - ref QuestStep reference239 = ref span126[2]; + num2++; + ref QuestStep reference239 = ref span320[num2]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 2012055u, new Vector3(-129.83911f, 10.788086f, -270.95447f), 958) { Fly = true @@ -281039,35 +340736,49 @@ public static class AssemblyQuestLoader num3 = 6; List list323 = new List(num3); CollectionsMarshal.SetCount(list323, num3); - Span span129 = CollectionsMarshal.AsSpan(list323); - span129[0] = null; - span129[1] = null; - span129[2] = null; - span129[3] = null; - span129[4] = null; - span129[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span323 = CollectionsMarshal.AsSpan(list323); + index3 = 0; + span323[index3] = null; + index3++; + span323[index3] = null; + index3++; + span323[index3] = null; + index3++; + span323[index3] = null; + index3++; + span323[index3] = null; + index3++; + span323[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj199.CompletionQuestVariablesFlags = list323; reference239 = obj199; - ref QuestStep reference240 = ref span126[3]; + num2++; + ref QuestStep reference240 = ref span320[num2]; QuestStep questStep41 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-223.12543f, 10.826223f, -368.8611f), 958); SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 6; - List list324 = new List(num3); - CollectionsMarshal.SetCount(list324, num3); - Span span130 = CollectionsMarshal.AsSpan(list324); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list324 = new List(index3); + CollectionsMarshal.SetCount(list324, index3); + Span span324 = CollectionsMarshal.AsSpan(list324); + num3 = 0; + span324[num3] = null; + num3++; + span324[num3] = null; + num3++; + span324[num3] = null; + num3++; + span324[num3] = null; + num3++; + span324[num3] = null; + num3++; + span324[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list324; skipStepConditions8.Flying = ELockedSkipCondition.Unlocked; skipConditions8.StepIf = skipStepConditions8; questStep41.SkipConditions = skipConditions8; reference240 = questStep41; - ref QuestStep reference241 = ref span126[4]; + num2++; + ref QuestStep reference241 = ref span320[num2]; QuestStep obj200 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-140.08179f, 16.226164f, -310.9478f), 958) { Fly = true @@ -281077,36 +340788,50 @@ public static class AssemblyQuestLoader num3 = 6; List list325 = new List(num3); CollectionsMarshal.SetCount(list325, num3); - Span span131 = CollectionsMarshal.AsSpan(list325); - span131[0] = null; - span131[1] = null; - span131[2] = null; - span131[3] = null; - span131[4] = null; - span131[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span325 = CollectionsMarshal.AsSpan(list325); + index3 = 0; + span325[index3] = null; + index3++; + span325[index3] = null; + index3++; + span325[index3] = null; + index3++; + span325[index3] = null; + index3++; + span325[index3] = null; + index3++; + span325[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list325; skipStepConditions9.Flying = ELockedSkipCondition.Locked; skipConditions9.StepIf = skipStepConditions9; obj200.SkipConditions = skipConditions9; reference241 = obj200; - ref QuestStep reference242 = ref span126[5]; + num2++; + ref QuestStep reference242 = ref span320[num2]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 2012056u, new Vector3(-234.6991f, 10.788086f, -367.2389f), 958) { Fly = true }; - num3 = 6; - List list326 = new List(num3); - CollectionsMarshal.SetCount(list326, num3); - Span span132 = CollectionsMarshal.AsSpan(list326); - span132[0] = null; - span132[1] = null; - span132[2] = null; - span132[3] = null; - span132[4] = null; - span132[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list326 = new List(index3); + CollectionsMarshal.SetCount(list326, index3); + Span span326 = CollectionsMarshal.AsSpan(list326); + num3 = 0; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj201.CompletionQuestVariablesFlags = list326; reference242 = obj201; - ref QuestStep reference243 = ref span126[6]; + num2++; + ref QuestStep reference243 = ref span320[num2]; QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2012057u, new Vector3(-246.93683f, 16.494995f, -413.016f), 958) { StopDistance = 1f, @@ -281115,18 +340840,25 @@ public static class AssemblyQuestLoader num3 = 6; List list327 = new List(num3); CollectionsMarshal.SetCount(list327, num3); - Span span133 = CollectionsMarshal.AsSpan(list327); - span133[0] = null; - span133[1] = null; - span133[2] = null; - span133[3] = null; - span133[4] = null; - span133[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span327 = CollectionsMarshal.AsSpan(list327); + index3 = 0; + span327[index3] = null; + index3++; + span327[index3] = null; + index3++; + span327[index3] = null; + index3++; + span327[index3] = null; + index3++; + span327[index3] = null; + index3++; + span327[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj202.CompletionQuestVariablesFlags = list327; reference243 = obj202; obj196.Steps = list320; reference236 = obj196; - ref QuestSequence reference244 = ref span125[2]; + num++; + ref QuestSequence reference244 = ref span318[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -281134,7 +340866,9 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037747u, new Vector3(-314.25964f, 22.00559f, 430.47217f), 958) + Span span328 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + span328[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037747u, new Vector3(-314.25964f, 22.00559f, 430.47217f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -281147,26 +340881,33 @@ public static class AssemblyQuestLoader num = 1; List list329 = new List(num); CollectionsMarshal.SetCount(list329, num); - CollectionsMarshal.AsSpan(list329)[0] = "goatzone"; + Span span329 = CollectionsMarshal.AsSpan(list329); + index = 0; + span329[index] = "goatzone"; questRoot39.Author = list329; - num = 3; - List list330 = new List(num); - CollectionsMarshal.SetCount(list330, num); - Span span134 = CollectionsMarshal.AsSpan(list330); - ref QuestSequence reference245 = ref span134[0]; + index = 3; + List list330 = new List(index); + CollectionsMarshal.SetCount(list330, index); + Span span330 = CollectionsMarshal.AsSpan(list330); + num = 0; + ref QuestSequence reference245 = ref span330[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - ref QuestStep reference246 = ref CollectionsMarshal.AsSpan(list331)[0]; + index2 = 1; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + Span span331 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + ref QuestStep reference246 = ref span331[num2]; QuestStep questStep42 = new QuestStep(EInteractionType.AcceptQuest, 1037755u, new Vector3(-338.76556f, 22.462305f, 449.08826f), 958); - num3 = 1; - List list332 = new List(num3); - CollectionsMarshal.SetCount(list332, num3); - CollectionsMarshal.AsSpan(list332)[0] = new DialogueChoice + index3 = 1; + List list332 = new List(index3); + CollectionsMarshal.SetCount(list332, index3); + Span span332 = CollectionsMarshal.AsSpan(list332); + num3 = 0; + span332[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZD014_04238_Q1_000_000") @@ -281175,7 +340916,8 @@ public static class AssemblyQuestLoader reference246 = questStep42; obj204.Steps = list331; reference245 = obj204; - ref QuestSequence reference247 = ref span134[1]; + num++; + ref QuestSequence reference247 = ref span330[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -281183,22 +340925,27 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.UseItem, 1040640u, new Vector3(-239.15472f, 11.232812f, -256.61102f), 958) + Span span333 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span333[index2] = new QuestStep(EInteractionType.UseItem, 1040640u, new Vector3(-239.15472f, 11.232812f, -256.61102f), 958) { Fly = true, ItemId = 2003244u }; obj205.Steps = list333; reference247 = obj205; - ref QuestSequence reference248 = ref span134[2]; + num++; + ref QuestSequence reference248 = ref span330[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037755u, new Vector3(-338.76556f, 22.462305f, 449.08826f), 958) + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + Span span334 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span334[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037755u, new Vector3(-338.76556f, 22.462305f, 449.08826f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -281211,13 +340958,16 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - CollectionsMarshal.AsSpan(list335)[0] = "goatzone"; + Span span335 = CollectionsMarshal.AsSpan(list335); + index = 0; + span335[index] = "goatzone"; questRoot40.Author = list335; - num = 4; - List list336 = new List(num); - CollectionsMarshal.SetCount(list336, num); - Span span135 = CollectionsMarshal.AsSpan(list336); - ref QuestSequence reference249 = ref span135[0]; + index = 4; + List list336 = new List(index); + CollectionsMarshal.SetCount(list336, index); + Span span336 = CollectionsMarshal.AsSpan(list336); + num = 0; + ref QuestSequence reference249 = ref span336[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -281225,24 +340975,30 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040662u, new Vector3(-373.18994f, 22.268795f, 385.00024f), 958); + Span span337 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span337[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040662u, new Vector3(-373.18994f, 22.268795f, 385.00024f), 958); obj207.Steps = list337; reference249 = obj207; - ref QuestSequence reference250 = ref span135[1]; + num++; + ref QuestSequence reference250 = ref span336[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.Interact, 1040642u, new Vector3(49.149292f, 0.78169787f, 90.89795f), 958) + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + Span span338 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span338[num2] = new QuestStep(EInteractionType.Interact, 1040642u, new Vector3(49.149292f, 0.78169787f, 90.89795f), 958) { Fly = true }; obj208.Steps = list338; reference250 = obj208; - ref QuestSequence reference251 = ref span135[2]; + num++; + ref QuestSequence reference251 = ref span336[num]; QuestSequence obj209 = new QuestSequence { Sequence = 2 @@ -281250,12 +341006,16 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - ref QuestStep reference252 = ref CollectionsMarshal.AsSpan(list339)[0]; + Span span339 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + ref QuestStep reference252 = ref span339[index2]; QuestStep questStep43 = new QuestStep(EInteractionType.Interact, 1040642u, new Vector3(49.149292f, 0.78169787f, 90.89795f), 958); num3 = 1; List list340 = new List(num3); CollectionsMarshal.SetCount(list340, num3); - CollectionsMarshal.AsSpan(list340)[0] = new DialogueChoice + Span span340 = CollectionsMarshal.AsSpan(list340); + index3 = 0; + span340[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZD015_04239_Q1_000_000") @@ -281264,15 +341024,18 @@ public static class AssemblyQuestLoader reference252 = questStep43; obj209.Steps = list339; reference251 = obj209; - ref QuestSequence reference253 = ref span135[3]; + num++; + ref QuestSequence reference253 = ref span336[num]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040662u, new Vector3(-373.18994f, 22.268795f, 385.00024f), 958) + index2 = 1; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + Span span341 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span341[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040662u, new Vector3(-373.18994f, 22.268795f, 385.00024f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -281285,13 +341048,16 @@ public static class AssemblyQuestLoader num = 1; List list342 = new List(num); CollectionsMarshal.SetCount(list342, num); - CollectionsMarshal.AsSpan(list342)[0] = "liza"; + Span span342 = CollectionsMarshal.AsSpan(list342); + index = 0; + span342[index] = "liza"; questRoot41.Author = list342; - num = 3; - List list343 = new List(num); - CollectionsMarshal.SetCount(list343, num); - Span span136 = CollectionsMarshal.AsSpan(list343); - ref QuestSequence reference254 = ref span136[0]; + index = 3; + List list343 = new List(index); + CollectionsMarshal.SetCount(list343, index); + Span span343 = CollectionsMarshal.AsSpan(list343); + num = 0; + ref QuestSequence reference254 = ref span343[num]; QuestSequence obj211 = new QuestSequence { Sequence = 0 @@ -281299,31 +341065,39 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037867u, new Vector3(-301.62512f, -144.00002f, -491.14215f), 959); + Span span344 = CollectionsMarshal.AsSpan(list344); + index2 = 0; + span344[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037867u, new Vector3(-301.62512f, -144.00002f, -491.14215f), 959); obj211.Steps = list344; reference254 = obj211; - ref QuestSequence reference255 = ref span136[1]; + num++; + ref QuestSequence reference255 = ref span343[num]; QuestSequence obj212 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - ref QuestStep reference256 = ref CollectionsMarshal.AsSpan(list345)[0]; + index2 = 1; + List list345 = new List(index2); + CollectionsMarshal.SetCount(list345, index2); + Span span345 = CollectionsMarshal.AsSpan(list345); + num2 = 0; + ref QuestStep reference256 = ref span345[num2]; QuestStep obj213 = new QuestStep(EInteractionType.Combat, 1041132u, new Vector3(-558.1293f, -168f, -475.3338f), 959) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list346 = new List(num3); - CollectionsMarshal.SetCount(list346, num3); - CollectionsMarshal.AsSpan(list346)[0] = 14053u; + index3 = 1; + List list346 = new List(index3); + CollectionsMarshal.SetCount(list346, index3); + Span span346 = CollectionsMarshal.AsSpan(list346); + num3 = 0; + span346[num3] = 14053u; obj213.KillEnemyDataIds = list346; reference256 = obj213; obj212.Steps = list345; reference255 = obj212; - ref QuestSequence reference257 = ref span136[2]; + num++; + ref QuestSequence reference257 = ref span343[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue @@ -281331,7 +341105,9 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037867u, new Vector3(-301.62512f, -144.00002f, -491.14215f), 959); + Span span347 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span347[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037867u, new Vector3(-301.62512f, -144.00002f, -491.14215f), 959); obj214.Steps = list347; reference257 = obj214; questRoot41.QuestSequence = list343; @@ -281341,24 +341117,30 @@ public static class AssemblyQuestLoader num = 1; List list348 = new List(num); CollectionsMarshal.SetCount(list348, num); - CollectionsMarshal.AsSpan(list348)[0] = "liza"; + Span span348 = CollectionsMarshal.AsSpan(list348); + index = 0; + span348[index] = "liza"; questRoot42.Author = list348; - num = 3; - List list349 = new List(num); - CollectionsMarshal.SetCount(list349, num); - Span span137 = CollectionsMarshal.AsSpan(list349); - ref QuestSequence reference258 = ref span137[0]; + index = 3; + List list349 = new List(index); + CollectionsMarshal.SetCount(list349, index); + Span span349 = CollectionsMarshal.AsSpan(list349); + num = 0; + ref QuestSequence reference258 = ref span349[num]; QuestSequence obj215 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039520u, new Vector3(-287.8615f, -143.50005f, -520.28687f), 959); + index2 = 1; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + Span span350 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span350[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039520u, new Vector3(-287.8615f, -143.50005f, -520.28687f), 959); obj215.Steps = list350; reference258 = obj215; - ref QuestSequence reference259 = ref span137[1]; + num++; + ref QuestSequence reference259 = ref span349[num]; QuestSequence obj216 = new QuestSequence { Sequence = 1 @@ -281366,8 +341148,9 @@ public static class AssemblyQuestLoader num2 = 18; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - Span span138 = CollectionsMarshal.AsSpan(list351); - ref QuestStep reference260 = ref span138[0]; + Span span351 = CollectionsMarshal.AsSpan(list351); + index2 = 0; + ref QuestStep reference260 = ref span351[index2]; QuestStep obj217 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-348.90564f, -161.8501f, -651.4007f), 959) { StopDistance = 1f @@ -281377,18 +341160,25 @@ public static class AssemblyQuestLoader num3 = 6; List list352 = new List(num3); CollectionsMarshal.SetCount(list352, num3); - Span span139 = CollectionsMarshal.AsSpan(list352); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span352 = CollectionsMarshal.AsSpan(list352); + index3 = 0; + span352[index3] = null; + index3++; + span352[index3] = null; + index3++; + span352[index3] = null; + index3++; + span352[index3] = null; + index3++; + span352[index3] = null; + index3++; + span352[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions10.CompletionQuestVariablesFlags = list352; skipConditions10.StepIf = skipStepConditions10; obj217.SkipConditions = skipConditions10; reference260 = obj217; - ref QuestStep reference261 = ref span138[1]; + index2++; + ref QuestStep reference261 = ref span351[index2]; QuestStep obj218 = new QuestStep(EInteractionType.Jump, null, new Vector3(-348.90564f, -161.8501f, -651.4007f), 959) { StopDistance = 1f, @@ -281401,21 +341191,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - num3 = 6; - List list353 = new List(num3); - CollectionsMarshal.SetCount(list353, num3); - Span span140 = CollectionsMarshal.AsSpan(list353); - span140[0] = null; - span140[1] = null; - span140[2] = null; - span140[3] = null; - span140[4] = null; - span140[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list353 = new List(index3); + CollectionsMarshal.SetCount(list353, index3); + Span span353 = CollectionsMarshal.AsSpan(list353); + num3 = 0; + span353[num3] = null; + num3++; + span353[num3] = null; + num3++; + span353[num3] = null; + num3++; + span353[num3] = null; + num3++; + span353[num3] = null; + num3++; + span353[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions11.CompletionQuestVariablesFlags = list353; skipConditions11.StepIf = skipStepConditions11; obj218.SkipConditions = skipConditions11; reference261 = obj218; - ref QuestStep reference262 = ref span138[2]; + index2++; + ref QuestStep reference262 = ref span351[index2]; QuestStep obj219 = new QuestStep(EInteractionType.Jump, null, new Vector3(-344.52225f, -160.40424f, -654.19385f), 959) { Comment = "Platform 2", @@ -281430,18 +341227,25 @@ public static class AssemblyQuestLoader num3 = 6; List list354 = new List(num3); CollectionsMarshal.SetCount(list354, num3); - Span span141 = CollectionsMarshal.AsSpan(list354); - span141[0] = null; - span141[1] = null; - span141[2] = null; - span141[3] = null; - span141[4] = null; - span141[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span354 = CollectionsMarshal.AsSpan(list354); + index3 = 0; + span354[index3] = null; + index3++; + span354[index3] = null; + index3++; + span354[index3] = null; + index3++; + span354[index3] = null; + index3++; + span354[index3] = null; + index3++; + span354[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions12.CompletionQuestVariablesFlags = list354; skipConditions12.StepIf = skipStepConditions12; obj219.SkipConditions = skipConditions12; reference262 = obj219; - ref QuestStep reference263 = ref span138[3]; + index2++; + ref QuestStep reference263 = ref span351[index2]; QuestStep obj220 = new QuestStep(EInteractionType.Jump, null, new Vector3(-342.69867f, -158.90424f, -651.2852f), 959) { Comment = "Platform 3", @@ -281453,21 +341257,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions13 = new SkipStepConditions(); - num3 = 6; - List list355 = new List(num3); - CollectionsMarshal.SetCount(list355, num3); - Span span142 = CollectionsMarshal.AsSpan(list355); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list355 = new List(index3); + CollectionsMarshal.SetCount(list355, index3); + Span span355 = CollectionsMarshal.AsSpan(list355); + num3 = 0; + span355[num3] = null; + num3++; + span355[num3] = null; + num3++; + span355[num3] = null; + num3++; + span355[num3] = null; + num3++; + span355[num3] = null; + num3++; + span355[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions13.CompletionQuestVariablesFlags = list355; skipConditions13.StepIf = skipStepConditions13; obj220.SkipConditions = skipConditions13; reference263 = obj220; - ref QuestStep reference264 = ref span138[4]; + index2++; + ref QuestStep reference264 = ref span351[index2]; QuestStep obj221 = new QuestStep(EInteractionType.Jump, null, new Vector3(-341.018f, -157.40425f, -649.38934f), 959) { Comment = "Platform 4", @@ -281482,18 +341293,25 @@ public static class AssemblyQuestLoader num3 = 6; List list356 = new List(num3); CollectionsMarshal.SetCount(list356, num3); - Span span143 = CollectionsMarshal.AsSpan(list356); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span356 = CollectionsMarshal.AsSpan(list356); + index3 = 0; + span356[index3] = null; + index3++; + span356[index3] = null; + index3++; + span356[index3] = null; + index3++; + span356[index3] = null; + index3++; + span356[index3] = null; + index3++; + span356[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions14.CompletionQuestVariablesFlags = list356; skipConditions14.StepIf = skipStepConditions14; obj221.SkipConditions = skipConditions14; reference264 = obj221; - ref QuestStep reference265 = ref span138[5]; + index2++; + ref QuestStep reference265 = ref span351[index2]; QuestStep obj222 = new QuestStep(EInteractionType.Jump, null, new Vector3(-338.68277f, -155.90424f, -646.8163f), 959) { Comment = "Platform 5", @@ -281505,21 +341323,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions15 = new SkipConditions(); SkipStepConditions skipStepConditions15 = new SkipStepConditions(); - num3 = 6; - List list357 = new List(num3); - CollectionsMarshal.SetCount(list357, num3); - Span span144 = CollectionsMarshal.AsSpan(list357); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list357 = new List(index3); + CollectionsMarshal.SetCount(list357, index3); + Span span357 = CollectionsMarshal.AsSpan(list357); + num3 = 0; + span357[num3] = null; + num3++; + span357[num3] = null; + num3++; + span357[num3] = null; + num3++; + span357[num3] = null; + num3++; + span357[num3] = null; + num3++; + span357[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions15.CompletionQuestVariablesFlags = list357; skipConditions15.StepIf = skipStepConditions15; obj222.SkipConditions = skipConditions15; reference265 = obj222; - ref QuestStep reference266 = ref span138[6]; + index2++; + ref QuestStep reference266 = ref span351[index2]; QuestStep obj223 = new QuestStep(EInteractionType.Jump, null, new Vector3(-335.60294f, -154.40422f, -646.18335f), 959) { Comment = "Platform 6", @@ -281534,39 +341359,53 @@ public static class AssemblyQuestLoader num3 = 6; List list358 = new List(num3); CollectionsMarshal.SetCount(list358, num3); - Span span145 = CollectionsMarshal.AsSpan(list358); - span145[0] = null; - span145[1] = null; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span358 = CollectionsMarshal.AsSpan(list358); + index3 = 0; + span358[index3] = null; + index3++; + span358[index3] = null; + index3++; + span358[index3] = null; + index3++; + span358[index3] = null; + index3++; + span358[index3] = null; + index3++; + span358[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions16.CompletionQuestVariablesFlags = list358; skipConditions16.StepIf = skipStepConditions16; obj223.SkipConditions = skipConditions16; reference266 = obj223; - ref QuestStep reference267 = ref span138[7]; + index2++; + ref QuestStep reference267 = ref span351[index2]; QuestStep obj224 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-329.84186f, -152.24591f, -649.0854f), 959) { DisableNavmesh = true }; SkipConditions skipConditions17 = new SkipConditions(); SkipStepConditions skipStepConditions17 = new SkipStepConditions(); - num3 = 6; - List list359 = new List(num3); - CollectionsMarshal.SetCount(list359, num3); - Span span146 = CollectionsMarshal.AsSpan(list359); - span146[0] = null; - span146[1] = null; - span146[2] = null; - span146[3] = null; - span146[4] = null; - span146[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list359 = new List(index3); + CollectionsMarshal.SetCount(list359, index3); + Span span359 = CollectionsMarshal.AsSpan(list359); + num3 = 0; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions17.CompletionQuestVariablesFlags = list359; skipConditions17.StepIf = skipStepConditions17; obj224.SkipConditions = skipConditions17; reference267 = obj224; - ref QuestStep reference268 = ref span138[8]; + index2++; + ref QuestStep reference268 = ref span351[index2]; QuestStep obj225 = new QuestStep(EInteractionType.Say, 1041789u, new Vector3(-329.3355f, -151.26128f, -657.2519f), 959) { StopDistance = 6f, @@ -281579,16 +341418,23 @@ public static class AssemblyQuestLoader num3 = 6; List list360 = new List(num3); CollectionsMarshal.SetCount(list360, num3); - Span span147 = CollectionsMarshal.AsSpan(list360); - span147[0] = null; - span147[1] = null; - span147[2] = null; - span147[3] = null; - span147[4] = null; - span147[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span360 = CollectionsMarshal.AsSpan(list360); + index3 = 0; + span360[index3] = null; + index3++; + span360[index3] = null; + index3++; + span360[index3] = null; + index3++; + span360[index3] = null; + index3++; + span360[index3] = null; + index3++; + span360[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj225.CompletionQuestVariablesFlags = list360; reference268 = obj225; - ref QuestStep reference269 = ref span138[9]; + index2++; + ref QuestStep reference269 = ref span351[index2]; QuestStep obj226 = new QuestStep(EInteractionType.Say, 1041790u, new Vector3(-482.01727f, -167.50002f, -545.6169f), 959) { StopDistance = 3f, @@ -281597,23 +341443,31 @@ public static class AssemblyQuestLoader Key = "TEXT_AKTKZE002_04241_SYSTEM_000_010" } }; - num3 = 6; - List list361 = new List(num3); - CollectionsMarshal.SetCount(list361, num3); - Span span148 = CollectionsMarshal.AsSpan(list361); - span148[0] = null; - span148[1] = null; - span148[2] = null; - span148[3] = null; - span148[4] = null; - span148[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list361 = new List(index3); + CollectionsMarshal.SetCount(list361, index3); + Span span361 = CollectionsMarshal.AsSpan(list361); + num3 = 0; + span361[num3] = null; + num3++; + span361[num3] = null; + num3++; + span361[num3] = null; + num3++; + span361[num3] = null; + num3++; + span361[num3] = null; + num3++; + span361[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj226.CompletionQuestVariablesFlags = list361; reference269 = obj226; - span138[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-438.33246f, -168.00002f, -420.43494f), 959) + index2++; + span351[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-438.33246f, -168.00002f, -420.43494f), 959) { StopDistance = 1f }; - ref QuestStep reference270 = ref span138[11]; + index2++; + ref QuestStep reference270 = ref span351[index2]; QuestStep obj227 = new QuestStep(EInteractionType.Jump, null, new Vector3(-438.33246f, -168.00002f, -420.43494f), 959) { StopDistance = 1f, @@ -281630,18 +341484,25 @@ public static class AssemblyQuestLoader num3 = 6; List list362 = new List(num3); CollectionsMarshal.SetCount(list362, num3); - Span span149 = CollectionsMarshal.AsSpan(list362); - span149[0] = null; - span149[1] = null; - span149[2] = null; - span149[3] = null; - span149[4] = null; - span149[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span362 = CollectionsMarshal.AsSpan(list362); + index3 = 0; + span362[index3] = null; + index3++; + span362[index3] = null; + index3++; + span362[index3] = null; + index3++; + span362[index3] = null; + index3++; + span362[index3] = null; + index3++; + span362[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions18.CompletionQuestVariablesFlags = list362; skipConditions18.StepIf = skipStepConditions18; obj227.SkipConditions = skipConditions18; reference270 = obj227; - ref QuestStep reference271 = ref span138[12]; + index2++; + ref QuestStep reference271 = ref span351[index2]; QuestStep obj228 = new QuestStep(EInteractionType.Jump, null, new Vector3(-438.3488f, -166.55414f, -415.94168f), 959) { StopDistance = 1f, @@ -281654,21 +341515,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions19 = new SkipConditions(); SkipStepConditions skipStepConditions19 = new SkipStepConditions(); - num3 = 6; - List list363 = new List(num3); - CollectionsMarshal.SetCount(list363, num3); - Span span150 = CollectionsMarshal.AsSpan(list363); - span150[0] = null; - span150[1] = null; - span150[2] = null; - span150[3] = null; - span150[4] = null; - span150[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list363 = new List(index3); + CollectionsMarshal.SetCount(list363, index3); + Span span363 = CollectionsMarshal.AsSpan(list363); + num3 = 0; + span363[num3] = null; + num3++; + span363[num3] = null; + num3++; + span363[num3] = null; + num3++; + span363[num3] = null; + num3++; + span363[num3] = null; + num3++; + span363[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions19.CompletionQuestVariablesFlags = list363; skipConditions19.StepIf = skipStepConditions19; obj228.SkipConditions = skipConditions19; reference271 = obj228; - ref QuestStep reference272 = ref span138[13]; + index2++; + ref QuestStep reference272 = ref span351[index2]; QuestStep obj229 = new QuestStep(EInteractionType.Jump, null, new Vector3(-436.71103f, -165.05412f, -413.06158f), 959) { StopDistance = 1f, @@ -281684,18 +341552,25 @@ public static class AssemblyQuestLoader num3 = 6; List list364 = new List(num3); CollectionsMarshal.SetCount(list364, num3); - Span span151 = CollectionsMarshal.AsSpan(list364); - span151[0] = null; - span151[1] = null; - span151[2] = null; - span151[3] = null; - span151[4] = null; - span151[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span364 = CollectionsMarshal.AsSpan(list364); + index3 = 0; + span364[index3] = null; + index3++; + span364[index3] = null; + index3++; + span364[index3] = null; + index3++; + span364[index3] = null; + index3++; + span364[index3] = null; + index3++; + span364[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions20.CompletionQuestVariablesFlags = list364; skipConditions20.StepIf = skipStepConditions20; obj229.SkipConditions = skipConditions20; reference272 = obj229; - ref QuestStep reference273 = ref span138[14]; + index2++; + ref QuestStep reference273 = ref span351[index2]; QuestStep obj230 = new QuestStep(EInteractionType.Jump, null, new Vector3(-434.92825f, -163.55417f, -411.54132f), 959) { StopDistance = 1f, @@ -281708,21 +341583,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions21 = new SkipConditions(); SkipStepConditions skipStepConditions21 = new SkipStepConditions(); - num3 = 6; - List list365 = new List(num3); - CollectionsMarshal.SetCount(list365, num3); - Span span152 = CollectionsMarshal.AsSpan(list365); - span152[0] = null; - span152[1] = null; - span152[2] = null; - span152[3] = null; - span152[4] = null; - span152[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list365 = new List(index3); + CollectionsMarshal.SetCount(list365, index3); + Span span365 = CollectionsMarshal.AsSpan(list365); + num3 = 0; + span365[num3] = null; + num3++; + span365[num3] = null; + num3++; + span365[num3] = null; + num3++; + span365[num3] = null; + num3++; + span365[num3] = null; + num3++; + span365[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions21.CompletionQuestVariablesFlags = list365; skipConditions21.StepIf = skipStepConditions21; obj230.SkipConditions = skipConditions21; reference273 = obj230; - ref QuestStep reference274 = ref span138[15]; + index2++; + ref QuestStep reference274 = ref span351[index2]; QuestStep obj231 = new QuestStep(EInteractionType.Jump, null, new Vector3(-432.17563f, -162.05412f, -409.53986f), 959) { StopDistance = 1f, @@ -281738,18 +341620,25 @@ public static class AssemblyQuestLoader num3 = 6; List list366 = new List(num3); CollectionsMarshal.SetCount(list366, num3); - Span span153 = CollectionsMarshal.AsSpan(list366); - span153[0] = null; - span153[1] = null; - span153[2] = null; - span153[3] = null; - span153[4] = null; - span153[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span366 = CollectionsMarshal.AsSpan(list366); + index3 = 0; + span366[index3] = null; + index3++; + span366[index3] = null; + index3++; + span366[index3] = null; + index3++; + span366[index3] = null; + index3++; + span366[index3] = null; + index3++; + span366[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions22.CompletionQuestVariablesFlags = list366; skipConditions22.StepIf = skipStepConditions22; obj231.SkipConditions = skipConditions22; reference274 = obj231; - ref QuestStep reference275 = ref span138[16]; + index2++; + ref QuestStep reference275 = ref span351[index2]; QuestStep obj232 = new QuestStep(EInteractionType.Jump, null, new Vector3(-429.1173f, -160.55412f, -408.93143f), 959) { StopDistance = 1f, @@ -281762,21 +341651,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions23 = new SkipConditions(); SkipStepConditions skipStepConditions23 = new SkipStepConditions(); - num3 = 6; - List list367 = new List(num3); - CollectionsMarshal.SetCount(list367, num3); - Span span154 = CollectionsMarshal.AsSpan(list367); - span154[0] = null; - span154[1] = null; - span154[2] = null; - span154[3] = null; - span154[4] = null; - span154[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list367 = new List(index3); + CollectionsMarshal.SetCount(list367, index3); + Span span367 = CollectionsMarshal.AsSpan(list367); + num3 = 0; + span367[num3] = null; + num3++; + span367[num3] = null; + num3++; + span367[num3] = null; + num3++; + span367[num3] = null; + num3++; + span367[num3] = null; + num3++; + span367[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions23.CompletionQuestVariablesFlags = list367; skipConditions23.StepIf = skipStepConditions23; obj232.SkipConditions = skipConditions23; reference275 = obj232; - ref QuestStep reference276 = ref span138[17]; + index2++; + ref QuestStep reference276 = ref span351[index2]; QuestStep obj233 = new QuestStep(EInteractionType.Say, 1041791u, new Vector3(-409.87262f, -158.89125f, -426.68805f), 959) { StopDistance = 3f, @@ -281788,32 +341684,41 @@ public static class AssemblyQuestLoader num3 = 6; List list368 = new List(num3); CollectionsMarshal.SetCount(list368, num3); - Span span155 = CollectionsMarshal.AsSpan(list368); - span155[0] = null; - span155[1] = null; - span155[2] = null; - span155[3] = null; - span155[4] = null; - span155[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span368 = CollectionsMarshal.AsSpan(list368); + index3 = 0; + span368[index3] = null; + index3++; + span368[index3] = null; + index3++; + span368[index3] = null; + index3++; + span368[index3] = null; + index3++; + span368[index3] = null; + index3++; + span368[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj233.CompletionQuestVariablesFlags = list368; reference276 = obj233; obj216.Steps = list351; reference259 = obj216; - ref QuestSequence reference277 = ref span137[2]; + num++; + ref QuestSequence reference277 = ref span349[num]; QuestSequence obj234 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list369 = new List(num2); - CollectionsMarshal.SetCount(list369, num2); - Span span156 = CollectionsMarshal.AsSpan(list369); - span156[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-376.5167f, -168f, -432.03497f), 959) + index2 = 2; + List list369 = new List(index2); + CollectionsMarshal.SetCount(list369, index2); + Span span369 = CollectionsMarshal.AsSpan(list369); + num2 = 0; + span369[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-376.5167f, -168f, -432.03497f), 959) { DisableNavmesh = true, Mount = true }; - span156[1] = new QuestStep(EInteractionType.CompleteQuest, 1039520u, new Vector3(-287.8615f, -143.50005f, -520.28687f), 959); + num2++; + span369[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039520u, new Vector3(-287.8615f, -143.50005f, -520.28687f), 959); obj234.Steps = list369; reference277 = obj234; questRoot42.QuestSequence = list349; @@ -281827,13 +341732,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -281841,12 +341749,16 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.AcceptQuest, 1041123u, new Vector3(-81.864685f, -132.74333f, -521.6602f), 959); int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZE014_04253_Q1_000_000"), @@ -281856,20 +341768,24 @@ public static class AssemblyQuestLoader reference2 = questStep; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(425.62292f, 123.48844f, 89.52347f), 959); - span2[1] = new QuestStep(EInteractionType.Interact, 1041127u, new Vector3(537.3159f, 132.40395f, 233.81396f), 959); + index2 = 2; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span5[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(425.62292f, 123.48844f, 89.52347f), 959); + num2++; + span5[num2] = new QuestStep(EInteractionType.Interact, 1041127u, new Vector3(537.3159f, 132.40395f, 233.81396f), 959); obj2.Steps = list5; reference3 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -281877,22 +341793,30 @@ public static class AssemblyQuestLoader num2 = 3; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span3 = CollectionsMarshal.AsSpan(list6); - ref QuestStep reference5 = ref span3[0]; + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + ref QuestStep reference5 = ref span6[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2012338u, new Vector3(700.19055f, 135.21008f, 229.48035f), 959); - num3 = 6; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span4 = CollectionsMarshal.AsSpan(list7); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = null; + num3++; + span7[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list7; reference5 = questStep2; - ref QuestStep reference6 = ref span3[1]; + index2++; + ref QuestStep reference6 = ref span6[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, 1041125u, new Vector3(735.5f, 151.08012f, 189.01343f), 959) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -281900,59 +341824,80 @@ public static class AssemblyQuestLoader num3 = 1; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = 14050u; + Span span8 = CollectionsMarshal.AsSpan(list8); + index3 = 0; + span8[index3] = 14050u; obj4.KillEnemyDataIds = list8; - num3 = 6; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span5 = CollectionsMarshal.AsSpan(list9); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + Span span9 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list9; reference6 = obj4; - ref QuestStep reference7 = ref span3[2]; + index2++; + ref QuestStep reference7 = ref span6[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1041124u, new Vector3(663.6301f, 128.48961f, 188.18945f), 959); num3 = 6; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - Span span6 = CollectionsMarshal.AsSpan(list10); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span10 = CollectionsMarshal.AsSpan(list10); + index3 = 0; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list10; reference7 = questStep3; obj3.Steps = list6; reference4 = obj3; - ref QuestSequence reference8 = ref span[3]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list11)[0]; + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference9 = ref span11[num2]; QuestStep obj6 = new QuestStep(EInteractionType.Combat, 1041127u, new Vector3(537.3159f, 132.40395f, 233.81396f), 959) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = 14049u; + index3 = 1; + List list12 = new List(index3); + CollectionsMarshal.SetCount(list12, index3); + Span span12 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span12[num3] = 14049u; obj6.KillEnemyDataIds = list12; reference9 = obj6; obj5.Steps = list11; reference8 = obj5; - ref QuestSequence reference10 = ref span[4]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 4 @@ -281960,21 +341905,26 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1041127u, new Vector3(537.3159f, 132.40395f, 233.81396f), 959) + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.Interact, 1041127u, new Vector3(537.3159f, 132.40395f, 233.81396f), 959) { StopDistance = 5f }; obj7.Steps = list13; reference10 = obj7; - ref QuestSequence reference11 = ref span[5]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041123u, new Vector3(-81.864685f, -132.74333f, -521.6602f), 959) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041123u, new Vector3(-81.864685f, -132.74333f, -521.6602f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; @@ -281987,13 +341937,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; + Span span15 = CollectionsMarshal.AsSpan(list15); + index = 0; + span15[index] = "liza"; questRoot2.Author = list15; - num = 4; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span7 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference12 = ref span7[0]; + index = 4; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + Span span16 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference12 = ref span16[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -282001,21 +341954,27 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040864u, new Vector3(462.51624f, 14.320099f, -219.86731f), 957); + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040864u, new Vector3(462.51624f, 14.320099f, -219.86731f), 957); obj9.Steps = list17; reference12 = obj9; - ref QuestSequence reference13 = ref span7[1]; + num++; + ref QuestSequence reference13 = ref span16[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1040862u, new Vector3(-27.023743f, 26.58384f, -178.63745f), 957); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.Interact, 1040862u, new Vector3(-27.023743f, 26.58384f, -178.63745f), 957); obj10.Steps = list18; reference13 = obj10; - ref QuestSequence reference14 = ref span7[2]; + num++; + ref QuestSequence reference14 = ref span16[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -282023,8 +341982,9 @@ public static class AssemblyQuestLoader num2 = 3; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span8 = CollectionsMarshal.AsSpan(list19); - ref QuestStep reference15 = ref span8[0]; + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + ref QuestStep reference15 = ref span19[index2]; QuestStep obj12 = new QuestStep(EInteractionType.Combat, null, new Vector3(46.32264f, 21.089579f, -190.2062f), 957) { DelaySecondsAtStart = 3f, @@ -282035,10 +341995,13 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = 14114u; + Span span20 = CollectionsMarshal.AsSpan(list20); + index3 = 0; + span20[index3] = 14114u; obj12.KillEnemyDataIds = list20; reference15 = obj12; - span8[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 14115u, new Vector3(333.8999f, 13.173893f, -239.1983f), 957) + index2++; + span19[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 14115u, new Vector3(333.8999f, 13.173893f, -239.1983f), 957) { StopDistance = 1f, NpcWaitDistance = 4f, @@ -282046,18 +342009,22 @@ public static class AssemblyQuestLoader Mount = false, Sprint = false }; - span8[2] = new QuestStep(EInteractionType.Interact, 2012261u, new Vector3(334.67603f, 13.076904f, -239.7956f), 957); + index2++; + span19[index2] = new QuestStep(EInteractionType.Interact, 2012261u, new Vector3(334.67603f, 13.076904f, -239.7956f), 957); obj11.Steps = list19; reference14 = obj11; - ref QuestSequence reference16 = ref span7[3]; + num++; + ref QuestSequence reference16 = ref span16[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040864u, new Vector3(462.51624f, 14.320099f, -219.86731f), 957); + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040864u, new Vector3(462.51624f, 14.320099f, -219.86731f), 957); obj13.Steps = list21; reference16 = obj13; questRoot2.QuestSequence = list16; @@ -282067,13 +342034,16 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + Span span22 = CollectionsMarshal.AsSpan(list22); + index = 0; + span22[index] = "liza"; questRoot3.Author = list22; - num = 5; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span9 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference17 = ref span9[0]; + index = 5; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + Span span23 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference17 = ref span23[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -282081,21 +342051,27 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957); + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957); obj14.Steps = list24; reference17 = obj14; - ref QuestSequence reference18 = ref span9[1]; + num++; + ref QuestSequence reference18 = ref span23[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1040670u, new Vector3(422.62903f, 7.427357f, -60.68518f), 957); + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.Interact, 1040670u, new Vector3(422.62903f, 7.427357f, -60.68518f), 957); obj15.Steps = list25; reference18 = obj15; - ref QuestSequence reference19 = ref span9[2]; + num++; + ref QuestSequence reference19 = ref span23[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -282103,22 +342079,30 @@ public static class AssemblyQuestLoader num2 = 4; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span10 = CollectionsMarshal.AsSpan(list26); - ref QuestStep reference20 = ref span10[0]; + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + ref QuestStep reference20 = ref span26[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2012232u, new Vector3(660.8529f, 36.423218f, 89.09741f), 957); - num3 = 6; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - Span span11 = CollectionsMarshal.AsSpan(list27); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list27 = new List(index3); + CollectionsMarshal.SetCount(list27, index3); + Span span27 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = null; + num3++; + span27[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list27; reference20 = questStep4; - ref QuestStep reference21 = ref span10[1]; + index2++; + ref QuestStep reference21 = ref span26[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, 1040850u, new Vector3(411.0321f, 7.9535227f, 302.8152f), 957) { StopDistance = 1f, @@ -282127,62 +342111,88 @@ public static class AssemblyQuestLoader num3 = 1; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = 14111u; + Span span28 = CollectionsMarshal.AsSpan(list28); + index3 = 0; + span28[index3] = 14111u; obj17.KillEnemyDataIds = list28; - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span12 = CollectionsMarshal.AsSpan(list29); - span12[0] = null; - span12[1] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span29[num3] = null; + num3++; + span29[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list29; reference21 = obj17; - ref QuestStep reference22 = ref span10[2]; + index2++; + ref QuestStep reference22 = ref span26[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1040850u, new Vector3(411.0321f, 7.9535227f, 302.8152f), 957); num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span13 = CollectionsMarshal.AsSpan(list30); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span30 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list30; reference22 = questStep5; - ref QuestStep reference23 = ref span10[3]; + index2++; + ref QuestStep reference23 = ref span26[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2012231u, new Vector3(343.9536f, 6.362976f, 372.54907f), 957); - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span14 = CollectionsMarshal.AsSpan(list31); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list31; reference23 = questStep6; obj16.Steps = list26; reference19 = obj16; - ref QuestSequence reference24 = ref span9[3]; + num++; + ref QuestSequence reference24 = ref span23[num]; QuestSequence obj18 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1040670u, new Vector3(422.62903f, 7.427357f, -60.68518f), 957); + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.Interact, 1040670u, new Vector3(422.62903f, 7.427357f, -60.68518f), 957); obj18.Steps = list32; reference24 = obj18; - ref QuestSequence reference25 = ref span9[4]; + num++; + ref QuestSequence reference25 = ref span23[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -282190,7 +342200,9 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957); + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957); obj19.Steps = list33; reference25 = obj19; questRoot3.QuestSequence = list23; @@ -282200,29 +342212,35 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; + Span span34 = CollectionsMarshal.AsSpan(list34); + index = 0; + span34[index] = "liza"; questRoot4.Author = list34; - num = 3; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span15 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference26 = ref span15[0]; + index = 3; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + Span span35 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference26 = ref span35[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span16 = CollectionsMarshal.AsSpan(list36); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.53136f, 1.7999926f, -182.28082f), 963); - span16[1] = new QuestStep(EInteractionType.AcceptQuest, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) + index2 = 2; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.53136f, 1.7999926f, -182.28082f), 963); + num2++; + span36[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) { StopDistance = 4f }; obj20.Steps = list36; reference26 = obj20; - ref QuestSequence reference27 = ref span15[1]; + num++; + ref QuestSequence reference27 = ref span35[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -282230,7 +342248,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1041282u, new Vector3(67.826294f, -24.693443f, -238.08661f), 963) + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.Interact, 1041282u, new Vector3(67.826294f, -24.693443f, -238.08661f), 963) { AethernetShortcut = new AethernetShortcut { @@ -282240,16 +342260,18 @@ public static class AssemblyQuestLoader }; obj21.Steps = list37; reference27 = obj21; - ref QuestSequence reference28 = ref span15[2]; + num++; + ref QuestSequence reference28 = ref span35[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span17 = CollectionsMarshal.AsSpan(list38); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.53136f, 1.7999926f, -182.28082f), 963) + index2 = 2; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.53136f, 1.7999926f, -182.28082f), 963) { AethernetShortcut = new AethernetShortcut { @@ -282257,7 +342279,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMehrydesMeyhane } }; - span17[1] = new QuestStep(EInteractionType.CompleteQuest, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) + num2++; + span38[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) { StopDistance = 4f }; @@ -282270,13 +342293,16 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "liza"; + Span span39 = CollectionsMarshal.AsSpan(list39); + index = 0; + span39[index] = "liza"; questRoot5.Author = list39; - num = 4; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span18 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference29 = ref span18[0]; + index = 4; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + Span span40 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference29 = ref span40[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -282284,18 +342310,23 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037469u, new Vector3(-148.8518f, 36f, 38.895264f), 963); + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037469u, new Vector3(-148.8518f, 36f, 38.895264f), 963); obj23.Steps = list41; reference29 = obj23; - ref QuestSequence reference30 = ref span18[1]; + num++; + ref QuestSequence reference30 = ref span40[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1041152u, new Vector3(-100.02289f, 13.999934f, 157.97656f), 963) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.Interact, 1041152u, new Vector3(-100.02289f, 13.999934f, 157.97656f), 963) { AethernetShortcut = new AethernetShortcut { @@ -282305,7 +342336,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list42; reference30 = obj24; - ref QuestSequence reference31 = ref span18[2]; + num++; + ref QuestSequence reference31 = ref span40[num]; QuestSequence obj25 = new QuestSequence { Sequence = 2 @@ -282313,24 +342345,33 @@ public static class AssemblyQuestLoader num2 = 3; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span19 = CollectionsMarshal.AsSpan(list43); - ref QuestStep reference32 = ref span19[0]; + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + ref QuestStep reference32 = ref span43[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2012395u, new Vector3(-108.20172f, 14.877502f, 156.20654f), 963); num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span20 = CollectionsMarshal.AsSpan(list44); - span20[0] = null; - span20[1] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = null; + Span span44 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span44[index3] = null; + index3++; + span44[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; questStep7.CompletionQuestVariablesFlags = list44; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new DialogueChoice + index3 = 1; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + Span span45 = CollectionsMarshal.AsSpan(list45); + num3 = 0; + span45[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF015_04270_Q1_000_000"), @@ -282338,23 +342379,32 @@ public static class AssemblyQuestLoader }; questStep7.DialogueChoices = list45; reference32 = questStep7; - ref QuestStep reference33 = ref span19[1]; + index2++; + ref QuestStep reference33 = ref span43[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2012396u, new Vector3(-106.126526f, 15.0911255f, 154.49756f), 963); num3 = 6; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - Span span21 = CollectionsMarshal.AsSpan(list46); - span21[0] = null; - span21[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = null; + Span span46 = CollectionsMarshal.AsSpan(list46); + index3 = 0; + span46[index3] = null; + index3++; + span46[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3++; + span46[index3] = null; + index3++; + span46[index3] = null; + index3++; + span46[index3] = null; + index3++; + span46[index3] = null; questStep8.CompletionQuestVariablesFlags = list46; - num3 = 1; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new DialogueChoice + index3 = 1; + List list47 = new List(index3); + CollectionsMarshal.SetCount(list47, index3); + Span span47 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + span47[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF015_04270_Q1_000_000"), @@ -282362,28 +342412,33 @@ public static class AssemblyQuestLoader }; questStep8.DialogueChoices = list47; reference33 = questStep8; - span19[2] = new QuestStep(EInteractionType.Interact, 1041152u, new Vector3(-100.02289f, 13.999934f, 157.97656f), 963) + index2++; + span43[index2] = new QuestStep(EInteractionType.Interact, 1041152u, new Vector3(-100.02289f, 13.999934f, 157.97656f), 963) { StopDistance = 7f }; obj25.Steps = list43; reference31 = obj25; - ref QuestSequence reference34 = ref span18[3]; + num++; + ref QuestSequence reference34 = ref span40[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - Span span22 = CollectionsMarshal.AsSpan(list48); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-38.102844f, 7.704563f, 106.27705f), 963); - span22[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(6.6071167f, -2.02948f, 110.55151f), 963) + index2 = 3; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-38.102844f, 7.704563f, 106.27705f), 963); + num2++; + span48[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(6.6071167f, -2.02948f, 110.55151f), 963) { StopDistance = 2f, DisableNavmesh = true }; - span22[2] = new QuestStep(EInteractionType.CompleteQuest, 1037469u, new Vector3(-148.8518f, 36f, 38.895264f), 963) + num2++; + span48[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037469u, new Vector3(-148.8518f, 36f, 38.895264f), 963) { AethernetShortcut = new AethernetShortcut { @@ -282400,13 +342455,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "liza"; questRoot6.Author = list49; - num = 3; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span23 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference35 = ref span23[0]; + index = 3; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference35 = ref span50[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -282414,19 +342472,23 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041155u, new Vector3(-57.51129f, -2.000002f, 129.77795f), 963); + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041155u, new Vector3(-57.51129f, -2.000002f, 129.77795f), 963); obj27.Steps = list51; reference35 = obj27; - ref QuestSequence reference36 = ref span23[1]; + num++; + ref QuestSequence reference36 = ref span50[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - Span span24 = CollectionsMarshal.AsSpan(list52); - ref QuestStep reference37 = ref span24[0]; + index2 = 2; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + ref QuestStep reference37 = ref span52[num2]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 1041154u, new Vector3(112.01648f, 26.99999f, 53.81848f), 963) { AethernetShortcut = new AethernetShortcut @@ -282438,16 +342500,23 @@ public static class AssemblyQuestLoader num3 = 6; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span25 = CollectionsMarshal.AsSpan(list53); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span53 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj29.CompletionQuestVariablesFlags = list53; reference37 = obj29; - ref QuestStep reference38 = ref span24[1]; + num2++; + ref QuestStep reference38 = ref span52[num2]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 1037354u, new Vector3(109.33081f, 1.8631814f, -100.1145f), 963) { StopDistance = 7f, @@ -282457,21 +342526,28 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHan } }; - num3 = 6; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span26 = CollectionsMarshal.AsSpan(list54); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + Span span54 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj30.CompletionQuestVariablesFlags = list54; reference38 = obj30; obj28.Steps = list52; reference36 = obj28; - ref QuestSequence reference39 = ref span23[2]; + num++; + ref QuestSequence reference39 = ref span50[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -282479,7 +342555,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041155u, new Vector3(-57.51129f, -2.000002f, 129.77795f), 963) + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041155u, new Vector3(-57.51129f, -2.000002f, 129.77795f), 963) { AethernetShortcut = new AethernetShortcut { @@ -282496,24 +342574,30 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "liza"; + Span span56 = CollectionsMarshal.AsSpan(list56); + index = 0; + span56[index] = "liza"; questRoot7.Author = list56; - num = 7; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span27 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference40 = ref span27[0]; + index = 7; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + Span span57 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference40 = ref span57[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041144u, new Vector3(-63.34027f, 14f, 125.62744f), 963); + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041144u, new Vector3(-63.34027f, 14f, 125.62744f), 963); obj32.Steps = list58; reference40 = obj32; - ref QuestSequence reference41 = ref span27[1]; + num++; + ref QuestSequence reference41 = ref span57[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 @@ -282521,14 +342605,17 @@ public static class AssemblyQuestLoader num2 = 4; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span28 = CollectionsMarshal.AsSpan(list59); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.856667f, 13.068996f, 118.292465f), 963); - span28[1] = new QuestStep(EInteractionType.WalkTo, 194u, new Vector3(6.6071167f, -2.02948f, 110.55151f), 963) + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.856667f, 13.068996f, 118.292465f), 963); + index2++; + span59[index2] = new QuestStep(EInteractionType.WalkTo, 194u, new Vector3(6.6071167f, -2.02948f, 110.55151f), 963) { StopDistance = 3f, DisableNavmesh = true }; - span28[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.53136f, 1.7999926f, -182.28082f), 963) + index2++; + span59[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.53136f, 1.7999926f, -182.28082f), 963) { AethernetShortcut = new AethernetShortcut { @@ -282536,24 +342623,29 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMehrydesMeyhane } }; - span28[3] = new QuestStep(EInteractionType.Interact, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) + index2++; + span59[index2] = new QuestStep(EInteractionType.Interact, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) { StopDistance = 4f }; obj33.Steps = list59; reference41 = obj33; - ref QuestSequence reference42 = ref span27[2]; + num++; + ref QuestSequence reference42 = ref span57[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 2012387u, new Vector3(-58.27423f, 0.9613037f, -199.42017f), 963); + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.Interact, 2012387u, new Vector3(-58.27423f, 0.9613037f, -199.42017f), 963); obj34.Steps = list60; reference42 = obj34; - ref QuestSequence reference43 = ref span27[3]; + num++; + ref QuestSequence reference43 = ref span57[num]; QuestSequence obj35 = new QuestSequence { Sequence = 3 @@ -282561,21 +342653,27 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 2012388u, new Vector3(-65.62909f, 13.992493f, 129.1676f), 963); + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new QuestStep(EInteractionType.Interact, 2012388u, new Vector3(-65.62909f, 13.992493f, 129.1676f), 963); obj35.Steps = list61; reference43 = obj35; - ref QuestSequence reference44 = ref span27[4]; + num++; + ref QuestSequence reference44 = ref span57[num]; QuestSequence obj36 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1041144u, new Vector3(-63.34027f, 14f, 125.62744f), 963); + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.Interact, 1041144u, new Vector3(-63.34027f, 14f, 125.62744f), 963); obj36.Steps = list62; reference44 = obj36; - ref QuestSequence reference45 = ref span27[5]; + num++; + ref QuestSequence reference45 = ref span57[num]; QuestSequence obj37 = new QuestSequence { Sequence = 5 @@ -282583,18 +342681,23 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1037466u, new Vector3(-205.31018f, 36f, 135.39331f), 963); + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.Interact, 1037466u, new Vector3(-205.31018f, 36f, 135.39331f), 963); obj37.Steps = list63; reference45 = obj37; - ref QuestSequence reference46 = ref span27[6]; + num++; + ref QuestSequence reference46 = ref span57[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041145u, new Vector3(-63.34027f, 14f, 126.207275f), 963); + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041145u, new Vector3(-63.34027f, 14f, 126.207275f), 963); obj38.Steps = list64; reference46 = obj38; questRoot7.QuestSequence = list57; @@ -282604,13 +342707,16 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + Span span65 = CollectionsMarshal.AsSpan(list65); + index = 0; + span65[index] = "liza"; questRoot8.Author = list65; - num = 4; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span29 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference47 = ref span29[0]; + index = 4; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + Span span66 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference47 = ref span66[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 @@ -282618,21 +342724,27 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041146u, new Vector3(-155.80994f, 28f, 178.97302f), 963); + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041146u, new Vector3(-155.80994f, 28f, 178.97302f), 963); obj39.Steps = list67; reference47 = obj39; - ref QuestSequence reference48 = ref span29[1]; + num++; + ref QuestSequence reference48 = ref span66[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1041147u, new Vector3(-90.25714f, 24.010002f, 70.54236f), 963); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.Interact, 1041147u, new Vector3(-90.25714f, 24.010002f, 70.54236f), 963); obj40.Steps = list68; reference48 = obj40; - ref QuestSequence reference49 = ref span29[2]; + num++; + ref QuestSequence reference49 = ref span66[num]; QuestSequence obj41 = new QuestSequence { Sequence = 2 @@ -282640,12 +342752,16 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list69)[0]; + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + ref QuestStep reference50 = ref span69[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2012390u, new Vector3(-88.39557f, 25.223145f, 66.453f), 963); num3 = 1; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = new DialogueChoice + Span span70 = CollectionsMarshal.AsSpan(list70); + index3 = 0; + span70[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF018_04273_Q1_000_000"), @@ -282655,15 +342771,18 @@ public static class AssemblyQuestLoader reference50 = questStep9; obj41.Steps = list69; reference49 = obj41; - ref QuestSequence reference51 = ref span29[3]; + num++; + ref QuestSequence reference51 = ref span66[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041146u, new Vector3(-155.80994f, 28f, 178.97302f), 963); + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041146u, new Vector3(-155.80994f, 28f, 178.97302f), 963); obj42.Steps = list71; reference51 = obj42; questRoot8.QuestSequence = list66; @@ -282673,13 +342792,16 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - CollectionsMarshal.AsSpan(list72)[0] = "liza"; + Span span72 = CollectionsMarshal.AsSpan(list72); + index = 0; + span72[index] = "liza"; questRoot9.Author = list72; - num = 3; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span30 = CollectionsMarshal.AsSpan(list73); - ref QuestSequence reference52 = ref span30[0]; + index = 3; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + Span span73 = CollectionsMarshal.AsSpan(list73); + num = 0; + ref QuestSequence reference52 = ref span73[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -282687,35 +342809,47 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040957u, new Vector3(-191.48547f, 35.999928f, 158.31238f), 963); + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040957u, new Vector3(-191.48547f, 35.999928f, 158.31238f), 963); obj43.Steps = list74; reference52 = obj43; - ref QuestSequence reference53 = ref span30[1]; + num++; + ref QuestSequence reference53 = ref span73[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - Span span31 = CollectionsMarshal.AsSpan(list75); - ref QuestStep reference54 = ref span31[0]; + index2 = 7; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + ref QuestStep reference54 = ref span75[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2012393u, new Vector3(-238.88f, 35.965454f, 122.78931f), 963); - num3 = 6; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - Span span32 = CollectionsMarshal.AsSpan(list76); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span32[4] = null; - span32[5] = null; + index3 = 6; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + Span span76 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = null; + num3++; + span76[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num3++; + span76[num3] = null; + num3++; + span76[num3] = null; questStep10.CompletionQuestVariablesFlags = list76; num3 = 1; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = new DialogueChoice + Span span77 = CollectionsMarshal.AsSpan(list77); + index3 = 0; + span77[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF019_04274_Q3_000_000"), @@ -282723,23 +342857,32 @@ public static class AssemblyQuestLoader }; questStep10.DialogueChoices = list77; reference54 = questStep10; - ref QuestStep reference55 = ref span31[1]; + num2++; + ref QuestStep reference55 = ref span75[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2012393u, new Vector3(-238.88f, 35.965454f, 122.78931f), 963); - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span33 = CollectionsMarshal.AsSpan(list78); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span33[4] = null; - span33[5] = null; + index3 = 6; + List list78 = new List(index3); + CollectionsMarshal.SetCount(list78, index3); + Span span78 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num3++; + span78[num3] = null; + num3++; + span78[num3] = null; questStep11.CompletionQuestVariablesFlags = list78; num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new DialogueChoice + Span span79 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span79[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF019_04274_Q3_000_000"), @@ -282747,23 +342890,32 @@ public static class AssemblyQuestLoader }; questStep11.DialogueChoices = list79; reference55 = questStep11; - ref QuestStep reference56 = ref span31[2]; + num2++; + ref QuestStep reference56 = ref span75[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2012392u, new Vector3(-237.10992f, 35.965454f, 122.75879f), 963); - num3 = 6; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span34 = CollectionsMarshal.AsSpan(list80); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span34[4] = null; - span34[5] = null; + index3 = 6; + List list80 = new List(index3); + CollectionsMarshal.SetCount(list80, index3); + Span span80 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span80[num3] = null; + num3++; + span80[num3] = null; + num3++; + span80[num3] = null; + num3++; + span80[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num3++; + span80[num3] = null; + num3++; + span80[num3] = null; questStep12.CompletionQuestVariablesFlags = list80; num3 = 1; List list81 = new List(num3); CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new DialogueChoice + Span span81 = CollectionsMarshal.AsSpan(list81); + index3 = 0; + span81[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF019_04274_Q2_000_000"), @@ -282771,23 +342923,32 @@ public static class AssemblyQuestLoader }; questStep12.DialogueChoices = list81; reference56 = questStep12; - ref QuestStep reference57 = ref span31[3]; + num2++; + ref QuestStep reference57 = ref span75[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2012391u, new Vector3(-235.52307f, 35.965454f, 122.23999f), 963); - num3 = 6; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - Span span35 = CollectionsMarshal.AsSpan(list82); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - span35[4] = null; - span35[5] = null; + index3 = 6; + List list82 = new List(index3); + CollectionsMarshal.SetCount(list82, index3); + Span span82 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span82[num3] = null; + num3++; + span82[num3] = null; + num3++; + span82[num3] = null; + num3++; + span82[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num3++; + span82[num3] = null; + num3++; + span82[num3] = null; questStep13.CompletionQuestVariablesFlags = list82; num3 = 1; List list83 = new List(num3); CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = new DialogueChoice + Span span83 = CollectionsMarshal.AsSpan(list83); + index3 = 0; + span83[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF019_04274_Q1_000_000"), @@ -282795,23 +342956,32 @@ public static class AssemblyQuestLoader }; questStep13.DialogueChoices = list83; reference57 = questStep13; - ref QuestStep reference58 = ref span31[4]; + num2++; + ref QuestStep reference58 = ref span75[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2012391u, new Vector3(-235.52307f, 35.965454f, 122.23999f), 963); - num3 = 6; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - Span span36 = CollectionsMarshal.AsSpan(list84); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span36[4] = null; - span36[5] = null; + index3 = 6; + List list84 = new List(index3); + CollectionsMarshal.SetCount(list84, index3); + Span span84 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span84[num3] = null; + num3++; + span84[num3] = null; + num3++; + span84[num3] = null; + num3++; + span84[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num3++; + span84[num3] = null; + num3++; + span84[num3] = null; questStep14.CompletionQuestVariablesFlags = list84; num3 = 1; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = new DialogueChoice + Span span85 = CollectionsMarshal.AsSpan(list85); + index3 = 0; + span85[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF019_04274_Q1_000_000"), @@ -282819,37 +342989,52 @@ public static class AssemblyQuestLoader }; questStep14.DialogueChoices = list85; reference58 = questStep14; - ref QuestStep reference59 = ref span31[5]; + num2++; + ref QuestStep reference59 = ref span75[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1041149u, new Vector3(-226.64227f, 36f, 108.56787f), 963); - num3 = 6; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span37 = CollectionsMarshal.AsSpan(list86); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list86 = new List(index3); + CollectionsMarshal.SetCount(list86, index3); + Span span86 = CollectionsMarshal.AsSpan(list86); + num3 = 0; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = null; + num3++; + span86[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list86; reference59 = questStep15; - ref QuestStep reference60 = ref span31[6]; + num2++; + ref QuestStep reference60 = ref span75[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1041148u, new Vector3(-223.59052f, 36f, 143.328f), 963); num3 = 6; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - Span span38 = CollectionsMarshal.AsSpan(list87); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span87 = CollectionsMarshal.AsSpan(list87); + index3 = 0; + span87[index3] = null; + index3++; + span87[index3] = null; + index3++; + span87[index3] = null; + index3++; + span87[index3] = null; + index3++; + span87[index3] = null; + index3++; + span87[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list87; reference60 = questStep16; obj44.Steps = list75; reference53 = obj44; - ref QuestSequence reference61 = ref span30[2]; + num++; + ref QuestSequence reference61 = ref span73[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -282857,7 +343042,9 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040957u, new Vector3(-191.48547f, 35.999928f, 158.31238f), 963); + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040957u, new Vector3(-191.48547f, 35.999928f, 158.31238f), 963); obj45.Steps = list88; reference61 = obj45; questRoot9.QuestSequence = list73; @@ -282867,24 +343054,30 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - CollectionsMarshal.AsSpan(list89)[0] = "liza"; + Span span89 = CollectionsMarshal.AsSpan(list89); + index = 0; + span89[index] = "liza"; questRoot10.Author = list89; - num = 4; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - Span span39 = CollectionsMarshal.AsSpan(list90); - ref QuestSequence reference62 = ref span39[0]; + index = 4; + List list90 = new List(index); + CollectionsMarshal.SetCount(list90, index); + Span span90 = CollectionsMarshal.AsSpan(list90); + num = 0; + ref QuestSequence reference62 = ref span90[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040884u, new Vector3(-176.13495f, 36f, 28.244385f), 963); + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span91[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040884u, new Vector3(-176.13495f, 36f, 28.244385f), 963); obj46.Steps = list91; reference62 = obj46; - ref QuestSequence reference63 = ref span39[1]; + num++; + ref QuestSequence reference63 = ref span90[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -282892,57 +343085,69 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1041514u, new Vector3(-133.59277f, 30.999994f, 0.07623291f), 963); + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.Interact, 1041514u, new Vector3(-133.59277f, 30.999994f, 0.07623291f), 963); obj47.Steps = list92; reference63 = obj47; - ref QuestSequence reference64 = ref span39[2]; + num++; + ref QuestSequence reference64 = ref span90[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 }; - num2 = 9; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span40 = CollectionsMarshal.AsSpan(list93); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-104.8164f, 30.999998f, 11.496266f), 963) + index2 = 9; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-104.8164f, 30.999998f, 11.496266f), 963) { DelaySecondsAtStart = 2f, Sprint = false }; - span40[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(-63.309746f, 31.051857f, 20.292212f), 963) + num2++; + span93[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(-63.309746f, 31.051857f, 20.292212f), 963) { StopDistance = 100f, Sprint = false }; - span40[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.410736f, 30.999716f, 20.657598f), 963) + num2++; + span93[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.410736f, 30.999716f, 20.657598f), 963) { Sprint = false }; - span40[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(-16.034935f, 27.05736f, 31.972898f), 963) + num2++; + span93[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(-16.034935f, 27.05736f, 31.972898f), 963) { StopDistance = 100f, Sprint = false }; - span40[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.071863f, 27.000011f, 27.903757f), 963) + num2++; + span93[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.071863f, 27.000011f, 27.903757f), 963) { Sprint = false }; - span40[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(20.139565f, 26.999846f, 34.94524f), 963) + num2++; + span93[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(20.139565f, 26.999846f, 34.94524f), 963) { StopDistance = 100f, Sprint = false }; - span40[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(33.18388f, 26.999989f, 41.661907f), 963) + num2++; + span93[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(33.18388f, 26.999989f, 41.661907f), 963) { DelaySecondsAtStart = 2f, Sprint = false }; - span40[7] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(56.11211f, 26.999992f, 47.213455f), 963) + num2++; + span93[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(56.11211f, 26.999992f, 47.213455f), 963) { StopDistance = 100f, Sprint = false }; - span40[8] = new QuestStep(EInteractionType.WalkTo, 1041514u, new Vector3(70.07179f, 26.99999f, 61.356277f), 963) + num2++; + span93[num2] = new QuestStep(EInteractionType.WalkTo, 1041514u, new Vector3(70.07179f, 26.99999f, 61.356277f), 963) { StopDistance = 2f, DelaySecondsAtStart = 8f, @@ -282950,7 +343155,8 @@ public static class AssemblyQuestLoader }; obj48.Steps = list93; reference64 = obj48; - ref QuestSequence reference65 = ref span39[3]; + num++; + ref QuestSequence reference65 = ref span90[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue @@ -282958,7 +343164,9 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040885u, new Vector3(-173.05261f, 36f, 25.589355f), 963); + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040885u, new Vector3(-173.05261f, 36f, 25.589355f), 963); obj49.Steps = list94; reference65 = obj49; questRoot10.QuestSequence = list90; @@ -282968,24 +343176,30 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = "liza"; + Span span95 = CollectionsMarshal.AsSpan(list95); + index = 0; + span95[index] = "liza"; questRoot11.Author = list95; - num = 5; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - Span span41 = CollectionsMarshal.AsSpan(list96); - ref QuestSequence reference66 = ref span41[0]; + index = 5; + List list96 = new List(index); + CollectionsMarshal.SetCount(list96, index); + Span span96 = CollectionsMarshal.AsSpan(list96); + num = 0; + ref QuestSequence reference66 = ref span96[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037969u, new Vector3(-611.90204f, -22.39482f, 510.42944f), 961); + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span97[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037969u, new Vector3(-611.90204f, -22.39482f, 510.42944f), 961); obj50.Steps = list97; reference66 = obj50; - ref QuestSequence reference67 = ref span41[1]; + num++; + ref QuestSequence reference67 = ref span96[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 @@ -282993,51 +343207,62 @@ public static class AssemblyQuestLoader num2 = 5; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span42 = CollectionsMarshal.AsSpan(list98); - span42[0] = new QuestStep(EInteractionType.Interact, 1041141u, new Vector3(-614.313f, -22.39482f, 509.72766f), 961); - span42[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041141u, new Vector3(-655.5854f, -22.394821f, 498.91443f), 961) + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span98[index2] = new QuestStep(EInteractionType.Interact, 1041141u, new Vector3(-614.313f, -22.39482f, 509.72766f), 961); + index2++; + span98[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041141u, new Vector3(-655.5854f, -22.394821f, 498.91443f), 961) { StopDistance = 1f, Mount = true }; - span42[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041141u, new Vector3(-686.881f, -25.994936f, 443.804f), 961) + index2++; + span98[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041141u, new Vector3(-686.881f, -25.994936f, 443.804f), 961) { StopDistance = 1f }; - span42[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041141u, new Vector3(-738.11304f, -25.933691f, 487.78436f), 961) + index2++; + span98[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041141u, new Vector3(-738.11304f, -25.933691f, 487.78436f), 961) { StopDistance = 1f }; - span42[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-819.6994f, -38.65795f, 506.43152f), 961) + index2++; + span98[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-819.6994f, -38.65795f, 506.43152f), 961) { StopDistance = 1f }; obj51.Steps = list98; reference67 = obj51; - ref QuestSequence reference68 = ref span41[2]; + num++; + ref QuestSequence reference68 = ref span96[num]; QuestSequence obj52 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list99)[0]; + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + ref QuestStep reference69 = ref span99[num2]; QuestStep obj53 = new QuestStep(EInteractionType.Combat, null, new Vector3(-838.7837f, -39.605896f, 518.9479f), 961) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - Span span43 = CollectionsMarshal.AsSpan(list100); - span43[0] = 14064u; - span43[1] = 14065u; + index3 = 2; + List list100 = new List(index3); + CollectionsMarshal.SetCount(list100, index3); + Span span100 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span100[num3] = 14064u; + num3++; + span100[num3] = 14065u; obj53.KillEnemyDataIds = list100; reference69 = obj53; obj52.Steps = list99; reference68 = obj52; - ref QuestSequence reference70 = ref span41[3]; + num++; + ref QuestSequence reference70 = ref span96[num]; QuestSequence obj54 = new QuestSequence { Sequence = 3 @@ -283045,18 +343270,23 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1041137u, new Vector3(-819.6994f, -38.65795f, 506.43152f), 961); + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.Interact, 1041137u, new Vector3(-819.6994f, -38.65795f, 506.43152f), 961); obj54.Steps = list101; reference70 = obj54; - ref QuestSequence reference71 = ref span41[4]; + num++; + ref QuestSequence reference71 = ref span96[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037969u, new Vector3(-611.90204f, -22.39482f, 510.42944f), 961); + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037969u, new Vector3(-611.90204f, -22.39482f, 510.42944f), 961); obj55.Steps = list102; reference71 = obj55; questRoot11.QuestSequence = list96; @@ -283070,13 +343300,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -283084,18 +343317,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041847u, new Vector3(-484.2146f, 141.86789f, -97.21527f), 961); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041847u, new Vector3(-484.2146f, 141.86789f, -97.21527f), 961); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1041848u, new Vector3(258.35046f, -10.140662f, -95.71985f), 961) { AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis @@ -283103,7 +343341,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZH018_04313_Q1_000_100"), @@ -283113,7 +343353,8 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -283121,18 +343362,23 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1041848u, new Vector3(-175.03741f, 12.098856f, 6.8771067f), 961); + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.Interact, 1041848u, new Vector3(-175.03741f, 12.098856f, 6.8771067f), 961); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041847u, new Vector3(-484.2146f, 141.86789f, -97.21527f), 961) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041847u, new Vector3(-484.2146f, 141.86789f, -97.21527f), 961) { AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; @@ -283145,13 +343391,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "liza"; + Span span8 = CollectionsMarshal.AsSpan(list8); + index = 0; + span8[index] = "liza"; questRoot2.Author = list8; - num = 4; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span2 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span2[0]; + index = 4; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + Span span9 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span9[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -283159,21 +343408,27 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041301u, new Vector3(-50.94995f, -14.169327f, 108.75098f), 962); + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041301u, new Vector3(-50.94995f, -14.169327f, 108.75098f), 962); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[1]; + num++; + ref QuestSequence reference7 = ref span9[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1041295u, new Vector3(-22.568176f, -16.246908f, 91.75244f), 962); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.Interact, 1041295u, new Vector3(-22.568176f, -16.246908f, 91.75244f), 962); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span2[2]; + num++; + ref QuestSequence reference8 = ref span9[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -283181,22 +343436,30 @@ public static class AssemblyQuestLoader num2 = 3; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span3 = CollectionsMarshal.AsSpan(list12); - ref QuestStep reference9 = ref span3[0]; + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + ref QuestStep reference9 = ref span12[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1037066u, new Vector3(65.01868f, -14.446999f, 78.26355f), 962); - num3 = 6; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - Span span4 = CollectionsMarshal.AsSpan(list13); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list13 = new List(index3); + CollectionsMarshal.SetCount(list13, index3); + Span span13 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list13; reference9 = questStep; - ref QuestStep reference10 = ref span3[1]; + index2++; + ref QuestStep reference10 = ref span12[index2]; QuestStep obj9 = new QuestStep(EInteractionType.Interact, 1040985u, new Vector3(56.77881f, 5.1499996f, -73.86902f), 962) { AethernetShortcut = new AethernetShortcut @@ -283208,16 +343471,23 @@ public static class AssemblyQuestLoader num3 = 6; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - Span span5 = CollectionsMarshal.AsSpan(list14); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span14 = CollectionsMarshal.AsSpan(list14); + index3 = 0; + span14[index3] = null; + index3++; + span14[index3] = null; + index3++; + span14[index3] = null; + index3++; + span14[index3] = null; + index3++; + span14[index3] = null; + index3++; + span14[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj9.CompletionQuestVariablesFlags = list14; reference10 = obj9; - ref QuestStep reference11 = ref span3[2]; + index2++; + ref QuestStep reference11 = ref span12[index2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2012610u, new Vector3(-363.6988f, 20.279175f, 92.729004f), 962) { AethernetShortcut = new AethernetShortcut @@ -283226,29 +343496,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanStudium } }; - num3 = 6; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span6 = CollectionsMarshal.AsSpan(list15); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + Span span15 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj10.CompletionQuestVariablesFlags = list15; reference11 = obj10; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference12 = ref span2[3]; + num++; + ref QuestSequence reference12 = ref span9[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041301u, new Vector3(-50.94995f, -14.169327f, 108.75098f), 962) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041301u, new Vector3(-50.94995f, -14.169327f, 108.75098f), 962) { AethernetShortcut = new AethernetShortcut { @@ -283265,13 +343544,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "liza"; questRoot3.Author = list17; - num = 4; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span7 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span7[0]; + index = 4; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span18[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -283279,24 +343561,30 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041296u, new Vector3(-32.913757f, 2.400051f, -8.804504f), 962); + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041296u, new Vector3(-32.913757f, 2.400051f, -8.804504f), 962); obj12.Steps = list19; reference13 = obj12; - ref QuestSequence reference14 = ref span7[1]; + num++; + ref QuestSequence reference14 = ref span18[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 2012438u, new Vector3(-33.310486f, 2.8533936f, -9.048645f), 962) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.Interact, 2012438u, new Vector3(-33.310486f, 2.8533936f, -9.048645f), 962) { StopDistance = 4f }; obj13.Steps = list20; reference14 = obj13; - ref QuestSequence reference15 = ref span7[2]; + num++; + ref QuestSequence reference15 = ref span18[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 @@ -283304,8 +343592,9 @@ public static class AssemblyQuestLoader num2 = 3; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span8 = CollectionsMarshal.AsSpan(list21); - ref QuestStep reference16 = ref span8[0]; + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + ref QuestStep reference16 = ref span21[index2]; QuestStep obj15 = new QuestStep(EInteractionType.Emote, 1041297u, new Vector3(-167.55939f, 6.6576204f, 129.07605f), 962) { AethernetShortcut = new AethernetShortcut @@ -283318,16 +343607,23 @@ public static class AssemblyQuestLoader num3 = 6; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - Span span9 = CollectionsMarshal.AsSpan(list22); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span22 = CollectionsMarshal.AsSpan(list22); + index3 = 0; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj15.CompletionQuestVariablesFlags = list22; reference16 = obj15; - ref QuestStep reference17 = ref span8[1]; + index2++; + ref QuestStep reference17 = ref span21[index2]; QuestStep obj16 = new QuestStep(EInteractionType.Say, 1041299u, new Vector3(-126.17688f, 29.890081f, -201.80054f), 962) { AethernetShortcut = new AethernetShortcut @@ -283340,19 +343636,26 @@ public static class AssemblyQuestLoader Key = "TEXT_AKTKZI002_04317_SAYTODO_000_060" } }; - num3 = 6; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span10 = CollectionsMarshal.AsSpan(list23); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + Span span23 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj16.CompletionQuestVariablesFlags = list23; reference17 = obj16; - ref QuestStep reference18 = ref span8[2]; + index2++; + ref QuestStep reference18 = ref span21[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1037234u, new Vector3(16.922241f, 23.499975f, -136.67511f), 962) { SkipConditions = new SkipConditions @@ -283366,26 +343669,35 @@ public static class AssemblyQuestLoader num3 = 6; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - Span span11 = CollectionsMarshal.AsSpan(list24); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span24 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = null; + index3++; + span24[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list24; reference18 = obj17; obj14.Steps = list21; reference15 = obj14; - ref QuestSequence reference19 = ref span7[3]; + num++; + ref QuestSequence reference19 = ref span18[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 2012439u, new Vector3(-32.822205f, 2.8533936f, -9.842102f), 962) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.CompleteQuest, 2012439u, new Vector3(-32.822205f, 2.8533936f, -9.842102f), 962) { AethernetShortcut = new AethernetShortcut { @@ -283402,13 +343714,16 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "liza"; + Span span26 = CollectionsMarshal.AsSpan(list26); + index = 0; + span26[index] = "liza"; questRoot4.Author = list26; - num = 3; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span12 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span12[0]; + index = 3; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + Span span27 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span27[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -283416,7 +343731,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list28)[0]; + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + ref QuestStep reference21 = ref span28[index2]; QuestStep obj20 = new QuestStep(EInteractionType.AcceptQuest, 1041303u, new Vector3(209.55212f, 19.316555f, -110.70422f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -283433,10 +343750,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = new DialogueChoice + index3 = 1; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span29[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZI003_04318_Q1_000_000"), @@ -283446,46 +343765,62 @@ public static class AssemblyQuestLoader reference21 = obj20; obj19.Steps = list28; reference20 = obj19; - ref QuestSequence reference22 = ref span12[1]; + num++; + ref QuestSequence reference22 = ref span27[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - Span span13 = CollectionsMarshal.AsSpan(list30); - ref QuestStep reference23 = ref span13[0]; + index2 = 2; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + ref QuestStep reference23 = ref span30[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2012440u, new Vector3(213.9773f, 8.224609f, -33.737732f), 962); num3 = 6; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span14 = CollectionsMarshal.AsSpan(list31); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span31 = CollectionsMarshal.AsSpan(list31); + index3 = 0; + span31[index3] = null; + index3++; + span31[index3] = null; + index3++; + span31[index3] = null; + index3++; + span31[index3] = null; + index3++; + span31[index3] = null; + index3++; + span31[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list31; reference23 = questStep2; - ref QuestStep reference24 = ref span13[1]; + num2++; + ref QuestStep reference24 = ref span30[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2012441u, new Vector3(168.0476f, 1.296936f, 53.94055f), 962); - num3 = 6; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span15 = CollectionsMarshal.AsSpan(list32); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + Span span32 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span32[num3] = null; + num3++; + span32[num3] = null; + num3++; + span32[num3] = null; + num3++; + span32[num3] = null; + num3++; + span32[num3] = null; + num3++; + span32[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list32; reference24 = questStep3; obj21.Steps = list30; reference22 = obj21; - ref QuestSequence reference25 = ref span12[2]; + num++; + ref QuestSequence reference25 = ref span27[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -283493,7 +343828,9 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041303u, new Vector3(209.55212f, 19.316555f, -110.70422f), 962) + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041303u, new Vector3(209.55212f, 19.316555f, -110.70422f), 962) { AethernetShortcut = new AethernetShortcut { @@ -283510,26 +343847,32 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; + Span span34 = CollectionsMarshal.AsSpan(list34); + index = 0; + span34[index] = "liza"; questRoot5.Author = list34; - num = 3; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span16 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference26 = ref span16[0]; + index = 3; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + Span span35 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference26 = ref span35[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span17 = CollectionsMarshal.AsSpan(list36); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-38.106888f, -14.1693125f, 107.58956f), 962); - span17[1] = new QuestStep(EInteractionType.AcceptQuest, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962); + index2 = 2; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-38.106888f, -14.1693125f, 107.58956f), 962); + num2++; + span36[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962); obj23.Steps = list36; reference26 = obj23; - ref QuestSequence reference27 = ref span16[1]; + num++; + ref QuestSequence reference27 = ref span35[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 @@ -283537,7 +343880,9 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1041308u, new Vector3(190.6615f, 18.89543f, -91.44739f), 962) + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.Interact, 1041308u, new Vector3(190.6615f, 18.89543f, -91.44739f), 962) { AethernetShortcut = new AethernetShortcut { @@ -283547,16 +343892,18 @@ public static class AssemblyQuestLoader }; obj24.Steps = list37; reference27 = obj24; - ref QuestSequence reference28 = ref span16[2]; + num++; + ref QuestSequence reference28 = ref span35[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span18 = CollectionsMarshal.AsSpan(list38); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-38.106888f, -14.1693125f, 107.58956f), 962) + index2 = 2; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-38.106888f, -14.1693125f, 107.58956f), 962) { AethernetShortcut = new AethernetShortcut { @@ -283564,7 +343911,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanScholarsHarbor } }; - span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962); + num2++; + span38[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962); obj25.Steps = list38; reference28 = obj25; questRoot5.QuestSequence = list35; @@ -283574,13 +343922,16 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "liza"; + Span span39 = CollectionsMarshal.AsSpan(list39); + index = 0; + span39[index] = "liza"; questRoot6.Author = list39; - num = 4; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span19 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference29 = ref span19[0]; + index = 4; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + Span span40 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference29 = ref span40[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -283588,12 +343939,16 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list41)[0]; + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + ref QuestStep reference30 = ref span41[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.AcceptQuest, 1041313u, new Vector3(89.28052f, -17.530382f, -74.906555f), 956); num3 = 1; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new DialogueChoice + Span span42 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span42[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZI005_04320_Q1_000_000"), @@ -283603,18 +343958,22 @@ public static class AssemblyQuestLoader reference30 = questStep4; obj26.Steps = list41; reference29 = obj26; - ref QuestSequence reference31 = ref span19[1]; + num++; + ref QuestSequence reference31 = ref span40[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1041314u, new Vector3(78.3855f, -29.79994f, 159.5636f), 956); + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.Interact, 1041314u, new Vector3(78.3855f, -29.79994f, 159.5636f), 956); obj27.Steps = list43; reference31 = obj27; - ref QuestSequence reference32 = ref span19[2]; + num++; + ref QuestSequence reference32 = ref span40[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -283622,22 +343981,27 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Emote, 2012494u, new Vector3(78.96533f, -29.098999f, 161.02844f), 956) + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.Emote, 2012494u, new Vector3(78.96533f, -29.098999f, 161.02844f), 956) { StopDistance = 5f, Emote = EEmote.Pray }; obj28.Steps = list44; reference32 = obj28; - ref QuestSequence reference33 = ref span19[3]; + num++; + ref QuestSequence reference33 = ref span40[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041313u, new Vector3(89.28052f, -17.530382f, -74.906555f), 956); + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span45[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041313u, new Vector3(89.28052f, -17.530382f, -74.906555f), 956); obj29.Steps = list45; reference33 = obj29; questRoot6.QuestSequence = list40; @@ -283647,13 +344011,16 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "liza"; + Span span46 = CollectionsMarshal.AsSpan(list46); + index = 0; + span46[index] = "liza"; questRoot7.Author = list46; - num = 3; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span20 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference34 = ref span20[0]; + index = 3; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + Span span47 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference34 = ref span47[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -283661,27 +344028,34 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037575u, new Vector3(6.454529f, -31.530432f, -78.14148f), 956); + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037575u, new Vector3(6.454529f, -31.530432f, -78.14148f), 956); obj30.Steps = list48; reference34 = obj30; - ref QuestSequence reference35 = ref span20[1]; + num++; + ref QuestSequence reference35 = ref span47[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - ref QuestStep reference36 = ref CollectionsMarshal.AsSpan(list49)[0]; + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref QuestStep reference36 = ref span49[num2]; QuestStep obj32 = new QuestStep(EInteractionType.Combat, null, new Vector3(379.89767f, 68.15723f, -169.26231f), 956) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = 13415u; + index3 = 1; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + Span span50 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span50[num3] = 13415u; obj32.KillEnemyDataIds = list50; obj32.CombatItemUse = new CombatItemUse { @@ -283692,7 +344066,8 @@ public static class AssemblyQuestLoader reference36 = obj32; obj31.Steps = list49; reference35 = obj31; - ref QuestSequence reference37 = ref span20[2]; + num++; + ref QuestSequence reference37 = ref span47[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -283700,7 +344075,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037575u, new Vector3(6.454529f, -31.530432f, -78.14148f), 956) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037575u, new Vector3(6.454529f, -31.530432f, -78.14148f), 956) { Fly = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet @@ -283714,24 +344091,30 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + Span span52 = CollectionsMarshal.AsSpan(list52); + index = 0; + span52[index] = "liza"; questRoot8.Author = list52; - num = 4; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span21 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference38 = ref span21[0]; + index = 4; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + Span span53 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference38 = ref span53[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041129u, new Vector3(-23.575256f, -31.53021f, 1.8463135f), 956); + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041129u, new Vector3(-23.575256f, -31.53021f, 1.8463135f), 956); obj34.Steps = list54; reference38 = obj34; - ref QuestSequence reference39 = ref span21[1]; + num++; + ref QuestSequence reference39 = ref span53[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -283739,7 +344122,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list55)[0]; + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + ref QuestStep reference40 = ref span55[index2]; QuestStep obj36 = new QuestStep(EInteractionType.Combat, null, new Vector3(262.07907f, -18.527845f, 183.61182f), 956) { StopDistance = 1f, @@ -283748,26 +344133,32 @@ public static class AssemblyQuestLoader num3 = 1; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = 14123u; + Span span56 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span56[index3] = 14123u; obj36.KillEnemyDataIds = list56; reference40 = obj36; obj35.Steps = list55; reference39 = obj35; - ref QuestSequence reference41 = ref span21[2]; + num++; + ref QuestSequence reference41 = ref span53[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1041128u, new Vector3(263.1112f, -18.597479f, 185.99219f), 956) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.Interact, 1041128u, new Vector3(263.1112f, -18.597479f, 185.99219f), 956) { StopDistance = 5f }; obj37.Steps = list57; reference41 = obj37; - ref QuestSequence reference42 = ref span21[3]; + num++; + ref QuestSequence reference42 = ref span53[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -283775,7 +344166,9 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041129u, new Vector3(-23.575256f, -31.53021f, 1.8463135f), 956); + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041129u, new Vector3(-23.575256f, -31.53021f, 1.8463135f), 956); obj38.Steps = list58; reference42 = obj38; questRoot8.QuestSequence = list53; @@ -283785,21 +344178,26 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "alydev"; + Span span59 = CollectionsMarshal.AsSpan(list59); + index = 0; + span59[index] = "alydev"; questRoot9.Author = list59; - num = 3; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span22 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference43 = ref span22[0]; + index = 3; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + Span span60 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference43 = ref span60[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038008u, new Vector3(-603.9369f, 78.6382f, 303.8529f), 960) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038008u, new Vector3(-603.9369f, 78.6382f, 303.8529f), 960) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra, @@ -283818,7 +344216,8 @@ public static class AssemblyQuestLoader }; obj39.Steps = list61; reference43 = obj39; - ref QuestSequence reference44 = ref span22[1]; + num++; + ref QuestSequence reference44 = ref span60[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -283826,30 +344225,37 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list62)[0]; + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + ref QuestStep reference45 = ref span62[index2]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(-62.2731f, 60.627563f, 786.55927f), 960) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - Span span23 = CollectionsMarshal.AsSpan(list63); - span23[0] = 14047u; - span23[1] = 14048u; + index3 = 2; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + Span span63 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span63[num3] = 14047u; + num3++; + span63[num3] = 14048u; obj41.KillEnemyDataIds = list63; reference45 = obj41; obj40.Steps = list62; reference44 = obj40; - ref QuestSequence reference46 = ref span22[2]; + num++; + ref QuestSequence reference46 = ref span60[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list64)[0]; + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + ref QuestStep reference47 = ref span64[num2]; QuestStep obj43 = new QuestStep(EInteractionType.CompleteQuest, 1038008u, new Vector3(-603.9369f, 78.6382f, 303.8529f), 960) { StopDistance = 5f, @@ -283870,7 +344276,9 @@ public static class AssemblyQuestLoader num3 = 1; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = new DialogueChoice + Span span65 = CollectionsMarshal.AsSpan(list65); + index3 = 0; + span65[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ001_04337_Q1_000_014"), @@ -283887,13 +344295,16 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - CollectionsMarshal.AsSpan(list66)[0] = "alydev"; + Span span66 = CollectionsMarshal.AsSpan(list66); + index = 0; + span66[index] = "alydev"; questRoot10.Author = list66; - num = 4; - List list67 = new List(num); - CollectionsMarshal.SetCount(list67, num); - Span span24 = CollectionsMarshal.AsSpan(list67); - ref QuestSequence reference48 = ref span24[0]; + index = 4; + List list67 = new List(index); + CollectionsMarshal.SetCount(list67, index); + Span span67 = CollectionsMarshal.AsSpan(list67); + num = 0; + ref QuestSequence reference48 = ref span67[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -283901,7 +344312,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038013u, new Vector3(-551.8425f, 72.58038f, 232.6543f), 960) + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038013u, new Vector3(-551.8425f, 72.58038f, 232.6543f), 960) { StopDistance = 5f, Fly = true, @@ -283921,22 +344334,26 @@ public static class AssemblyQuestLoader }; obj44.Steps = list68; reference48 = obj44; - ref QuestSequence reference49 = ref span24[1]; + num++; + ref QuestSequence reference49 = ref span67[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1040875u, new Vector3(-717.6166f, 66.99921f, -121.66028f), 960) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.Interact, 1040875u, new Vector3(-717.6166f, 66.99921f, -121.66028f), 960) { StopDistance = 5f, Fly = true }; obj45.Steps = list69; reference49 = obj45; - ref QuestSequence reference50 = ref span24[2]; + num++; + ref QuestSequence reference50 = ref span67[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -283944,17 +344361,21 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list70)[0]; + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + ref QuestStep reference51 = ref span70[index2]; QuestStep obj47 = new QuestStep(EInteractionType.Emote, 1040875u, new Vector3(-717.6166f, 66.99921f, -121.66028f), 960) { StopDistance = 5f, Fly = true, Emote = EEmote.Pet }; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new DialogueChoice + index3 = 1; + List list71 = new List(index3); + CollectionsMarshal.SetCount(list71, index3); + Span span71 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span71[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ002_04338_Q1_000_015"), @@ -283964,15 +344385,18 @@ public static class AssemblyQuestLoader reference51 = obj47; obj46.Steps = list70; reference50 = obj46; - ref QuestSequence reference52 = ref span24[3]; + num++; + ref QuestSequence reference52 = ref span67[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038013u, new Vector3(-551.8425f, 72.58038f, 232.6543f), 960) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038013u, new Vector3(-551.8425f, 72.58038f, 232.6543f), 960) { StopDistance = 5f, Fly = true, @@ -283999,13 +344423,16 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "alydev"; + Span span73 = CollectionsMarshal.AsSpan(list73); + index = 0; + span73[index] = "alydev"; questRoot11.Author = list73; - num = 3; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span25 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference53 = ref span25[0]; + index = 3; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + Span span74 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference53 = ref span74[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -284013,7 +344440,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040883u, new Vector3(-653.3761f, 73.711235f, 244.31213f), 960) + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040883u, new Vector3(-653.3761f, 73.711235f, 244.31213f), 960) { StopDistance = 10f, AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra, @@ -284032,16 +344461,18 @@ public static class AssemblyQuestLoader }; obj49.Steps = list75; reference53 = obj49; - ref QuestSequence reference54 = ref span25[1]; + num++; + ref QuestSequence reference54 = ref span74[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span26 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference55 = ref span26[0]; + index2 = 4; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + ref QuestStep reference55 = ref span76[num2]; QuestStep obj51 = new QuestStep(EInteractionType.Interact, 2012307u, new Vector3(-678.00415f, 72.06836f, 119.035645f), 960) { Fly = true @@ -284049,30 +344480,44 @@ public static class AssemblyQuestLoader num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - Span span27 = CollectionsMarshal.AsSpan(list77); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span77 = CollectionsMarshal.AsSpan(list77); + index3 = 0; + span77[index3] = null; + index3++; + span77[index3] = null; + index3++; + span77[index3] = null; + index3++; + span77[index3] = null; + index3++; + span77[index3] = null; + index3++; + span77[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj51.CompletionQuestVariablesFlags = list77; reference55 = obj51; - ref QuestStep reference56 = ref span26[1]; + num2++; + ref QuestStep reference56 = ref span76[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2012308u, new Vector3(-635.49255f, 77.408936f, 46.61621f), 960); - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span28 = CollectionsMarshal.AsSpan(list78); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list78 = new List(index3); + CollectionsMarshal.SetCount(list78, index3); + Span span78 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = null; + num3++; + span78[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list78; reference56 = questStep5; - ref QuestStep reference57 = ref span26[2]; + num2++; + ref QuestStep reference57 = ref span76[num2]; QuestStep obj52 = new QuestStep(EInteractionType.Interact, 2012305u, new Vector3(-398.3368f, 88.85327f, 314.44263f), 960) { Fly = true @@ -284080,32 +344525,46 @@ public static class AssemblyQuestLoader num3 = 6; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - Span span29 = CollectionsMarshal.AsSpan(list79); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span79 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span79[index3] = null; + index3++; + span79[index3] = null; + index3++; + span79[index3] = null; + index3++; + span79[index3] = null; + index3++; + span79[index3] = null; + index3++; + span79[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj52.CompletionQuestVariablesFlags = list79; reference57 = obj52; - ref QuestStep reference58 = ref span26[3]; + num2++; + ref QuestStep reference58 = ref span76[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2012306u, new Vector3(-641.8402f, 78.93494f, 445.21252f), 960); - num3 = 6; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span30 = CollectionsMarshal.AsSpan(list80); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list80 = new List(index3); + CollectionsMarshal.SetCount(list80, index3); + Span span80 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span80[num3] = null; + num3++; + span80[num3] = null; + num3++; + span80[num3] = null; + num3++; + span80[num3] = null; + num3++; + span80[num3] = null; + num3++; + span80[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list80; reference58 = questStep6; obj50.Steps = list76; reference54 = obj50; - ref QuestSequence reference59 = ref span25[2]; + num++; + ref QuestSequence reference59 = ref span74[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -284113,7 +344572,9 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040883u, new Vector3(-653.3761f, 73.711235f, 244.31213f), 960) + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040883u, new Vector3(-653.3761f, 73.711235f, 244.31213f), 960) { StopDistance = 10f, AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra, @@ -284139,21 +344600,26 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "alydev"; + Span span82 = CollectionsMarshal.AsSpan(list82); + index = 0; + span82[index] = "alydev"; questRoot12.Author = list82; - num = 3; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span31 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference60 = ref span31[0]; + index = 3; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + Span span83 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference60 = ref span83[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038010u, new Vector3(-517.9065f, 72.5362f, 332.23462f), 960) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038010u, new Vector3(-517.9065f, 72.5362f, 332.23462f), 960) { StopDistance = 5f, Fly = true, @@ -284173,7 +344639,8 @@ public static class AssemblyQuestLoader }; obj54.Steps = list84; reference60 = obj54; - ref QuestSequence reference61 = ref span31[1]; + num++; + ref QuestSequence reference61 = ref span83[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -284181,8 +344648,9 @@ public static class AssemblyQuestLoader num2 = 3; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span32 = CollectionsMarshal.AsSpan(list85); - ref QuestStep reference62 = ref span32[0]; + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + ref QuestStep reference62 = ref span85[index2]; QuestStep obj56 = new QuestStep(EInteractionType.Interact, 2012309u, new Vector3(-346.02887f, 86.44226f, 283.71094f), 960) { Fly = true @@ -284190,30 +344658,44 @@ public static class AssemblyQuestLoader num3 = 6; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span33 = CollectionsMarshal.AsSpan(list86); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span86 = CollectionsMarshal.AsSpan(list86); + index3 = 0; + span86[index3] = null; + index3++; + span86[index3] = null; + index3++; + span86[index3] = null; + index3++; + span86[index3] = null; + index3++; + span86[index3] = null; + index3++; + span86[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj56.CompletionQuestVariablesFlags = list86; reference62 = obj56; - ref QuestStep reference63 = ref span32[1]; + index2++; + ref QuestStep reference63 = ref span85[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2012310u, new Vector3(-342.12262f, 86.10657f, 278.09558f), 960); - num3 = 6; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - Span span34 = CollectionsMarshal.AsSpan(list87); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list87 = new List(index3); + CollectionsMarshal.SetCount(list87, index3); + Span span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list87; reference63 = questStep7; - ref QuestStep reference64 = ref span32[2]; + index2++; + ref QuestStep reference64 = ref span85[index2]; QuestStep obj57 = new QuestStep(EInteractionType.Interact, 2012312u, new Vector3(-292.77484f, 91.38623f, 317.09766f), 960) { Fly = true @@ -284221,26 +344703,35 @@ public static class AssemblyQuestLoader num3 = 6; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - Span span35 = CollectionsMarshal.AsSpan(list88); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span88 = CollectionsMarshal.AsSpan(list88); + index3 = 0; + span88[index3] = null; + index3++; + span88[index3] = null; + index3++; + span88[index3] = null; + index3++; + span88[index3] = null; + index3++; + span88[index3] = null; + index3++; + span88[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj57.CompletionQuestVariablesFlags = list88; reference64 = obj57; obj55.Steps = list85; reference61 = obj55; - ref QuestSequence reference65 = ref span31[2]; + num++; + ref QuestSequence reference65 = ref span83[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - ref QuestStep reference66 = ref CollectionsMarshal.AsSpan(list89)[0]; + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + ref QuestStep reference66 = ref span89[num2]; QuestStep obj59 = new QuestStep(EInteractionType.CompleteQuest, 1038010u, new Vector3(-517.9065f, 72.5362f, 332.23462f), 960) { StopDistance = 5f, @@ -284259,10 +344750,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = new DialogueChoice + index3 = 1; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + Span span90 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span90[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ004_04340_Q1_000_012"), @@ -284279,13 +344772,16 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "alydev"; + Span span91 = CollectionsMarshal.AsSpan(list91); + index = 0; + span91[index] = "alydev"; questRoot13.Author = list91; - num = 3; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span36 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference67 = ref span36[0]; + index = 3; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + Span span92 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference67 = ref span92[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -284293,7 +344789,9 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list93)[0]; + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + ref QuestStep reference68 = ref span93[index2]; QuestStep obj61 = new QuestStep(EInteractionType.AcceptQuest, 1038009u, new Vector3(-597.2534f, 76.989265f, 268.0857f), 960) { StopDistance = 5f, @@ -284315,7 +344813,9 @@ public static class AssemblyQuestLoader num3 = 1; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = new DialogueChoice + Span span94 = CollectionsMarshal.AsSpan(list94); + index3 = 0; + span94[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ005_04341_Q1_000_001"), @@ -284325,29 +344825,35 @@ public static class AssemblyQuestLoader reference68 = obj61; obj60.Steps = list93; reference67 = obj60; - ref QuestSequence reference69 = ref span36[1]; + num++; + ref QuestSequence reference69 = ref span92[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list95)[0]; + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + ref QuestStep reference70 = ref span95[num2]; QuestStep obj63 = new QuestStep(EInteractionType.Combat, 2012311u, new Vector3(-746.9749f, 63.1875f, 7.248047f), 960) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = 14046u; + index3 = 1; + List list96 = new List(index3); + CollectionsMarshal.SetCount(list96, index3); + Span span96 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span96[num3] = 14046u; obj63.KillEnemyDataIds = list96; reference70 = obj63; obj62.Steps = list95; reference69 = obj62; - ref QuestSequence reference71 = ref span36[2]; + num++; + ref QuestSequence reference71 = ref span92[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -284355,7 +344861,9 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038009u, new Vector3(-597.2534f, 76.989265f, 268.0857f), 960) + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038009u, new Vector3(-597.2534f, 76.989265f, 268.0857f), 960) { StopDistance = 5f, Fly = true, @@ -284382,24 +344890,30 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "liza"; + Span span98 = CollectionsMarshal.AsSpan(list98); + index = 0; + span98[index] = "liza"; questRoot14.Author = list98; - num = 3; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span37 = CollectionsMarshal.AsSpan(list99); - ref QuestSequence reference72 = ref span37[0]; + index = 3; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + Span span99 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference72 = ref span99[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040876u, new Vector3(49.42395f, 269.25684f, -523.2472f), 960); + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040876u, new Vector3(49.42395f, 269.25684f, -523.2472f), 960); obj65.Steps = list100; reference72 = obj65; - ref QuestSequence reference73 = ref span37[1]; + num++; + ref QuestSequence reference73 = ref span99[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 @@ -284407,7 +344921,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list101)[0]; + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + ref QuestStep reference74 = ref span101[index2]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, null, new Vector3(-41.26438f, 274.85336f, -523.8633f), 960) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -284415,8 +344931,9 @@ public static class AssemblyQuestLoader num3 = 2; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span38 = CollectionsMarshal.AsSpan(list102); - ref ComplexCombatData reference75 = ref span38[0]; + Span span102 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + ref ComplexCombatData reference75 = ref span102[index3]; ComplexCombatData obj68 = new ComplexCombatData { DataId = 13315u, @@ -284425,46 +344942,62 @@ public static class AssemblyQuestLoader int num4 = 6; List list103 = new List(num4); CollectionsMarshal.SetCount(list103, num4); - Span span39 = CollectionsMarshal.AsSpan(list103); - span39[0] = null; - span39[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = null; + Span span103 = CollectionsMarshal.AsSpan(list103); + int num5 = 0; + span103[num5] = null; + num5++; + span103[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5++; + span103[num5] = null; + num5++; + span103[num5] = null; + num5++; + span103[num5] = null; + num5++; + span103[num5] = null; obj68.CompletionQuestVariablesFlags = list103; reference75 = obj68; - ref ComplexCombatData reference76 = ref span38[1]; + index3++; + ref ComplexCombatData reference76 = ref span102[index3]; ComplexCombatData obj69 = new ComplexCombatData { DataId = 14097u, MinimumKillCount = 1u }; - num4 = 6; - List list104 = new List(num4); - CollectionsMarshal.SetCount(list104, num4); - Span span40 = CollectionsMarshal.AsSpan(list104); - span40[0] = null; - span40[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = null; + num5 = 6; + List list104 = new List(num5); + CollectionsMarshal.SetCount(list104, num5); + Span span104 = CollectionsMarshal.AsSpan(list104); + num4 = 0; + span104[num4] = null; + num4++; + span104[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4++; + span104[num4] = null; + num4++; + span104[num4] = null; + num4++; + span104[num4] = null; + num4++; + span104[num4] = null; obj69.CompletionQuestVariablesFlags = list104; reference76 = obj69; obj67.ComplexCombatData = list102; reference74 = obj67; obj66.Steps = list101; reference73 = obj66; - ref QuestSequence reference77 = ref span37[2]; + num++; + ref QuestSequence reference77 = ref span99[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040876u, new Vector3(49.42395f, 269.25684f, -523.2472f), 960); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040876u, new Vector3(49.42395f, 269.25684f, -523.2472f), 960); obj70.Steps = list105; reference77 = obj70; questRoot14.QuestSequence = list99; @@ -284474,13 +345007,16 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "liza"; + Span span106 = CollectionsMarshal.AsSpan(list106); + index = 0; + span106[index] = "liza"; questRoot15.Author = list106; - num = 3; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - Span span41 = CollectionsMarshal.AsSpan(list107); - ref QuestSequence reference78 = ref span41[0]; + index = 3; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + Span span107 = CollectionsMarshal.AsSpan(list107); + num = 0; + ref QuestSequence reference78 = ref span107[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -284488,70 +345024,96 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960); + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960); obj71.Steps = list108; reference78 = obj71; - ref QuestSequence reference79 = ref span41[1]; + num++; + ref QuestSequence reference79 = ref span107[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span42 = CollectionsMarshal.AsSpan(list109); - ref QuestStep reference80 = ref span42[0]; + index2 = 4; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + ref QuestStep reference80 = ref span109[num2]; QuestStep obj73 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(33.55028f, 269.00006f, -683.68896f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - Span span43 = CollectionsMarshal.AsSpan(list110); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list110 = new List(index3); + CollectionsMarshal.SetCount(list110, index3); + Span span110 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span110[num3] = null; + num3++; + span110[num3] = null; + num3++; + span110[num3] = null; + num3++; + span110[num3] = null; + num3++; + span110[num3] = null; + num3++; + span110[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list110; skipConditions.StepIf = skipStepConditions; obj73.SkipConditions = skipConditions; reference80 = obj73; - ref QuestStep reference81 = ref span42[1]; + num2++; + ref QuestStep reference81 = ref span109[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1040880u, new Vector3(-110.185425f, 269.2062f, -713.5271f), 960); num3 = 6; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - Span span44 = CollectionsMarshal.AsSpan(list111); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span111 = CollectionsMarshal.AsSpan(list111); + index3 = 0; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list111; reference81 = questStep8; - ref QuestStep reference82 = ref span42[2]; + num2++; + ref QuestStep reference82 = ref span109[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1040881u, new Vector3(-201.86163f, 288.6714f, -466.331f), 960); - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span45 = CollectionsMarshal.AsSpan(list112); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + Span span112 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list112; num3 = 1; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = new DialogueChoice + Span span113 = CollectionsMarshal.AsSpan(list113); + index3 = 0; + span113[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ010_04346_Q1_000_000"), @@ -284559,23 +345121,31 @@ public static class AssemblyQuestLoader }; questStep9.DialogueChoices = list113; reference82 = questStep9; - ref QuestStep reference83 = ref span42[3]; + num2++; + ref QuestStep reference83 = ref span109[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1040879u, new Vector3(-184.52734f, 267.47086f, -292.65283f), 960); - num3 = 6; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span46 = CollectionsMarshal.AsSpan(list114); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list114 = new List(index3); + CollectionsMarshal.SetCount(list114, index3); + Span span114 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list114; reference83 = questStep10; obj72.Steps = list109; reference79 = obj72; - ref QuestSequence reference84 = ref span41[2]; + num++; + ref QuestSequence reference84 = ref span107[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue @@ -284583,7 +345153,9 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960); + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960); obj74.Steps = list115; reference84 = obj74; questRoot15.QuestSequence = list107; @@ -284593,21 +345165,26 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "alydev"; + Span span116 = CollectionsMarshal.AsSpan(list116); + index = 0; + span116[index] = "alydev"; questRoot16.Author = list116; - num = 4; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span47 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference85 = ref span47[0]; + index = 4; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + Span span117 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference85 = ref span117[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041058u, new Vector3(-574.30383f, 77.29004f, 324.33044f), 960) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041058u, new Vector3(-574.30383f, 77.29004f, 324.33044f), 960) { StopDistance = 5f, Fly = true, @@ -284627,7 +345204,8 @@ public static class AssemblyQuestLoader }; obj75.Steps = list118; reference85 = obj75; - ref QuestSequence reference86 = ref span47[1]; + num++; + ref QuestSequence reference86 = ref span117[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 @@ -284635,8 +345213,9 @@ public static class AssemblyQuestLoader num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span48 = CollectionsMarshal.AsSpan(list119); - ref QuestStep reference87 = ref span48[0]; + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + ref QuestStep reference87 = ref span119[index2]; QuestStep obj77 = new QuestStep(EInteractionType.Interact, 1038012u, new Vector3(-655.9396f, 70.96863f, 302.90674f), 960) { Fly = true @@ -284644,18 +345223,26 @@ public static class AssemblyQuestLoader num3 = 6; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - Span span49 = CollectionsMarshal.AsSpan(list120); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span120 = CollectionsMarshal.AsSpan(list120); + index3 = 0; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj77.CompletionQuestVariablesFlags = list120; - num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = new DialogueChoice + index3 = 1; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + Span span121 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span121[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ012_04348_Q2_000_200"), @@ -284663,7 +345250,8 @@ public static class AssemblyQuestLoader }; obj77.DialogueChoices = list121; reference87 = obj77; - ref QuestStep reference88 = ref span48[1]; + index2++; + ref QuestStep reference88 = ref span119[index2]; QuestStep obj78 = new QuestStep(EInteractionType.Interact, 1038013u, new Vector3(-551.8425f, 72.58038f, 232.6543f), 960) { Fly = true @@ -284671,18 +345259,26 @@ public static class AssemblyQuestLoader num3 = 6; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - Span span50 = CollectionsMarshal.AsSpan(list122); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span122 = CollectionsMarshal.AsSpan(list122); + index3 = 0; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj78.CompletionQuestVariablesFlags = list122; - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = new DialogueChoice + index3 = 1; + List list123 = new List(index3); + CollectionsMarshal.SetCount(list123, index3); + Span span123 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span123[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ012_04348_Q1_000_100"), @@ -284692,21 +345288,25 @@ public static class AssemblyQuestLoader reference88 = obj78; obj76.Steps = list119; reference86 = obj76; - ref QuestSequence reference89 = ref span47[2]; + num++; + ref QuestSequence reference89 = ref span117[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 2012685u, new Vector3(-115.09888f, 55.527588f, 537.52954f), 960) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.Interact, 2012685u, new Vector3(-115.09888f, 55.527588f, 537.52954f), 960) { Fly = true }; obj79.Steps = list124; reference89 = obj79; - ref QuestSequence reference90 = ref span47[3]; + num++; + ref QuestSequence reference90 = ref span117[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue @@ -284714,7 +345314,9 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038008u, new Vector3(-574.30383f, 77.29004f, 324.33044f), 960) + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038008u, new Vector3(-574.30383f, 77.29004f, 324.33044f), 960) { StopDistance = 5f, Fly = true, @@ -284745,13 +345347,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "alydev"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "alydev"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -284759,7 +345364,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042070u, new Vector3(-610.19305f, 77.9267f, 229.17517f), 960) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042070u, new Vector3(-610.19305f, 77.9267f, 229.17517f), 960) { StopDistance = 5f, Fly = true, @@ -284779,22 +345386,26 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1042071u, new Vector3(-754.696f, 67.5721f, -32.51703f), 960) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1042071u, new Vector3(-754.696f, 67.5721f, -32.51703f), 960) { StopDistance = 5f, Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -284802,29 +345413,35 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1042070u, new Vector3(-610.19305f, 77.9267f, 229.17517f), 960) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1042070u, new Vector3(-610.19305f, 77.9267f, 229.17517f), 960) { StopDistance = 5f, Fly = true }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1042072u, new Vector3(-464.49988f, 79.1747f, 247.08923f), 960) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Interact, 1042072u, new Vector3(-464.49988f, 79.1747f, 247.08923f), 960) { StopDistance = 5f, Fly = true }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -284832,22 +345449,27 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1042071u, new Vector3(-754.696f, 67.5721f, -32.51703f), 960) + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.Interact, 1042071u, new Vector3(-754.696f, 67.5721f, -32.51703f), 960) { StopDistance = 5f, Fly = true }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042072u, new Vector3(-464.49988f, 79.1747f, 247.08923f), 960) + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042072u, new Vector3(-464.49988f, 79.1747f, 247.08923f), 960) { StopDistance = 5f, Fly = true, @@ -284874,13 +345496,16 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "liza"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "liza"; questRoot2.Author = list9; - num = 3; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span2 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span2[0]; + index = 3; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span10[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -284888,12 +345513,16 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + ref QuestStep reference8 = ref span11[index2]; QuestStep questStep = new QuestStep(EInteractionType.AcceptQuest, 1038043u, new Vector3(470.4203f, 437.00183f, 315.81592f), 960); int num3 = 1; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice + Span span12 = CollectionsMarshal.AsSpan(list12); + int index3 = 0; + span12[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZK001_04354_Q1_000_100"), @@ -284903,32 +345532,37 @@ public static class AssemblyQuestLoader reference8 = questStep; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference9 = ref span2[1]; + num++; + ref QuestSequence reference9 = ref span10[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - Span span3 = CollectionsMarshal.AsSpan(list13); - span3[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(588.5607f, 437.99976f, 299.7425f), 960) + index2 = 2; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(588.5607f, 437.99976f, 299.7425f), 960) { JumpDestination = new JumpDestination { Position = new Vector3(602.4677f, 438.6276f, 297.1612f) } }; - ref QuestStep reference10 = ref span3[1]; + num2++; + ref QuestStep reference10 = ref span13[num2]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(656.94653f, 437.98502f, 302.6322f), 960) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list14 = new List(num3); - CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = 14044u; + index3 = 1; + List list14 = new List(index3); + CollectionsMarshal.SetCount(list14, index3); + Span span14 = CollectionsMarshal.AsSpan(list14); + num3 = 0; + span14[num3] = 14044u; obj9.KillEnemyDataIds = list14; obj9.CombatItemUse = new CombatItemUse { @@ -284938,7 +345572,8 @@ public static class AssemblyQuestLoader reference10 = obj9; obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference11 = ref span2[2]; + num++; + ref QuestSequence reference11 = ref span10[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -284946,7 +345581,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038043u, new Vector3(470.4203f, 437.00183f, 315.81592f), 960); + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038043u, new Vector3(470.4203f, 437.00183f, 315.81592f), 960); obj10.Steps = list15; reference11 = obj10; questRoot2.QuestSequence = list10; @@ -284956,24 +345593,30 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + Span span16 = CollectionsMarshal.AsSpan(list16); + index = 0; + span16[index] = "liza"; questRoot3.Author = list16; - num = 4; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span4 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span4[0]; + index = 4; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + Span span17 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span17[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041656u, new Vector3(510.3075f, 436.9997f, 307.17932f), 960); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041656u, new Vector3(510.3075f, 436.9997f, 307.17932f), 960); obj11.Steps = list18; reference12 = obj11; - ref QuestSequence reference13 = ref span4[1]; + num++; + ref QuestSequence reference13 = ref span17[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -284981,49 +345624,67 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 2012560u, new Vector3(510.3379f, 436.9724f, 307.20984f), 960); + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.Interact, 2012560u, new Vector3(510.3379f, 436.9724f, 307.20984f), 960); obj12.Steps = list19; reference13 = obj12; - ref QuestSequence reference14 = ref span4[2]; + num++; + ref QuestSequence reference14 = ref span17[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span5 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference15 = ref span5[0]; + index2 = 2; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span20[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2012752u, new Vector3(687.2511f, 440.48218f, 375.3567f), 960); num3 = 6; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span6 = CollectionsMarshal.AsSpan(list21); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span21 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list21; reference15 = questStep2; - ref QuestStep reference16 = ref span5[1]; + num2++; + ref QuestStep reference16 = ref span20[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2012753u, new Vector3(688.74634f, 440.45154f, 381.21606f), 960); - num3 = 6; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span7 = CollectionsMarshal.AsSpan(list22); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list22; reference16 = questStep3; obj13.Steps = list20; reference14 = obj13; - ref QuestSequence reference17 = ref span4[3]; + num++; + ref QuestSequence reference17 = ref span17[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -285031,13 +345692,16 @@ public static class AssemblyQuestLoader num2 = 3; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span8 = CollectionsMarshal.AsSpan(list23); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.91565f, 440.4633f, 404.94272f), 960); - span8[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012032u, new Vector3(661.76843f, 439.96326f, 411.73413f), 960) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.91565f, 440.4633f, 404.94272f), 960); + index2++; + span23[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012032u, new Vector3(661.76843f, 439.96326f, 411.73413f), 960) { AetherCurrentId = 2818391u }; - span8[2] = new QuestStep(EInteractionType.CompleteQuest, 1041656u, new Vector3(510.3075f, 436.9997f, 307.17932f), 960) + index2++; + span23[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041656u, new Vector3(510.3075f, 436.9997f, 307.17932f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; @@ -285050,24 +345714,30 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "liza"; + Span span24 = CollectionsMarshal.AsSpan(list24); + index = 0; + span24[index] = "liza"; questRoot4.Author = list24; - num = 3; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span9 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference18 = ref span9[0]; + index = 3; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + Span span25 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference18 = ref span25[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036452u, new Vector3(-2.2736206f, 0f, -8.835022f), 351); + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036452u, new Vector3(-2.2736206f, 0f, -8.835022f), 351); obj15.Steps = list26; reference18 = obj15; - ref QuestSequence reference19 = ref span9[1]; + num++; + ref QuestSequence reference19 = ref span25[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -285075,7 +345745,9 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1038570u, new Vector3(-374.6853f, 7.999938f, 45.822754f), 129) + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.Interact, 1038570u, new Vector3(-374.6853f, 7.999938f, 45.822754f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -285086,15 +345758,18 @@ public static class AssemblyQuestLoader }; obj16.Steps = list27; reference19 = obj16; - ref QuestSequence reference20 = ref span9[2]; + num++; + ref QuestSequence reference20 = ref span25[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038578u, new Vector3(49.69861f, -16.246998f, 145.2201f), 962); + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038578u, new Vector3(49.69861f, -16.246998f, 145.2201f), 962); obj17.Steps = list28; reference20 = obj17; questRoot4.QuestSequence = list25; @@ -285104,13 +345779,16 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "liza"; + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + span29[index] = "liza"; questRoot5.Author = list29; - num = 10; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span10 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference21 = ref span10[0]; + index = 10; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + Span span30 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference21 = ref span30[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -285118,24 +345796,30 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038578u, new Vector3(49.69861f, -16.246998f, 145.2201f), 962); + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span31[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038578u, new Vector3(49.69861f, -16.246998f, 145.2201f), 962); obj18.Steps = list31; reference21 = obj18; - ref QuestSequence reference22 = ref span10[1]; + num++; + ref QuestSequence reference22 = ref span30[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1038584u, new Vector3(47.68445f, -16.246998f, 147.02063f), 962) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.Interact, 1038584u, new Vector3(47.68445f, -16.246998f, 147.02063f), 962) { StopDistance = 5f }; obj19.Steps = list32; reference22 = obj19; - ref QuestSequence reference23 = ref span10[2]; + num++; + ref QuestSequence reference23 = ref span30[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 @@ -285143,29 +345827,35 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(49.69861f, -16.246998f, 145.2201f), 962); + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(49.69861f, -16.246998f, 145.2201f), 962); obj20.Steps = list33; reference23 = obj20; - ref QuestSequence reference24 = ref span10[3]; + num++; + ref QuestSequence reference24 = ref span30[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span11 = CollectionsMarshal.AsSpan(list34); - span11[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + index2 = 2; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanScholarsHarbor }; - span11[1] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-56.737106f, -15.127001f, 130.76611f), 962) + num2++; + span34[num2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-56.737106f, -15.127001f, 130.76611f), 962) { StopDistance = 0.25f }; obj21.Steps = list34; reference24 = obj21; - ref QuestSequence reference25 = ref span10[4]; + num++; + ref QuestSequence reference25 = ref span30[num]; QuestSequence obj22 = new QuestSequence { Sequence = 4 @@ -285173,34 +345863,40 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span12 = CollectionsMarshal.AsSpan(list35); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-8.38828f, 3.2249968f, 9.224017f), 962); - span12[1] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-0.03130532f, 3.2249997f, 8.909777f), 962) + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-8.38828f, 3.2249968f, 9.224017f), 962); + index2++; + span35[index2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-0.03130532f, 3.2249997f, 8.909777f), 962) { StopDistance = 0.25f }; obj22.Steps = list35; reference25 = obj22; - ref QuestSequence reference26 = ref span10[5]; + num++; + ref QuestSequence reference26 = ref span30[num]; QuestSequence obj23 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span13 = CollectionsMarshal.AsSpan(list36); - span13[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 962) + index2 = 2; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 962) { Aetheryte = EAetheryteLocation.OldSharlayan }; - span13[1] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(66.10567f, 5.0999994f, -63.37148f), 962) + num2++; + span36[num2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(66.10567f, 5.0999994f, -63.37148f), 962) { StopDistance = 0.25f }; obj23.Steps = list36; reference26 = obj23; - ref QuestSequence reference27 = ref span10[6]; + num++; + ref QuestSequence reference27 = ref span30[num]; QuestSequence obj24 = new QuestSequence { Sequence = 6 @@ -285208,35 +345904,42 @@ public static class AssemblyQuestLoader num2 = 3; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span14 = CollectionsMarshal.AsSpan(list37); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(93.30914f, 8.920153f, -89.12467f), 962); - span14[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(96.67595f, 15.025446f, -134.08261f), 962); - span14[2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-0.4629783f, 41.37599f, -142.5033f), 962) + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(93.30914f, 8.920153f, -89.12467f), 962); + index2++; + span37[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(96.67595f, 15.025446f, -134.08261f), 962); + index2++; + span37[index2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-0.4629783f, 41.37599f, -142.5033f), 962) { StopDistance = 0.25f }; obj24.Steps = list37; reference27 = obj24; - ref QuestSequence reference28 = ref span10[7]; + num++; + ref QuestSequence reference28 = ref span30[num]; QuestSequence obj25 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span15 = CollectionsMarshal.AsSpan(list38); - span15[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + index2 = 2; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanRostra }; - span15[1] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(149.26689f, 18.800978f, -142.65858f), 962) + num2++; + span38[num2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(149.26689f, 18.800978f, -142.65858f), 962) { StopDistance = 0.25f }; obj25.Steps = list38; reference28 = obj25; - ref QuestSequence reference29 = ref span10[8]; + num++; + ref QuestSequence reference29 = ref span30[num]; QuestSequence obj26 = new QuestSequence { Sequence = 8 @@ -285244,16 +345947,19 @@ public static class AssemblyQuestLoader num2 = 3; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span16 = CollectionsMarshal.AsSpan(list39); - span16[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanLeveilleurEstate }; - span16[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + index2++; + span39[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanJourneysEnd }; - span16[2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-82.642426f, 1.0594833f, 30.052902f), 962) + index2++; + span39[index2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-82.642426f, 1.0594833f, 30.052902f), 962) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -285264,20 +345970,23 @@ public static class AssemblyQuestLoader }; obj26.Steps = list39; reference29 = obj26; - ref QuestSequence reference30 = ref span10[9]; + num++; + ref QuestSequence reference30 = ref span30[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span17 = CollectionsMarshal.AsSpan(list40); - span17[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + index2 = 2; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987 }; - span17[1] = new QuestStep(EInteractionType.CompleteQuest, 1038586u, new Vector3(-0.015319824f, 1.9073486E-06f, -0.77819824f), 987); + num2++; + span40[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038586u, new Vector3(-0.015319824f, 1.9073486E-06f, -0.77819824f), 987); obj27.Steps = list40; reference30 = obj27; questRoot5.QuestSequence = list30; @@ -285287,13 +345996,16 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + Span span41 = CollectionsMarshal.AsSpan(list41); + index = 0; + span41[index] = "liza"; questRoot6.Author = list41; - num = 8; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span18 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference31 = ref span18[0]; + index = 8; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + Span span42 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference31 = ref span42[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 @@ -285301,37 +346013,45 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038670u, new Vector3(-2.609314f, 1.9073486E-06f, 0.16778564f), 987) + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038670u, new Vector3(-2.609314f, 1.9073486E-06f, 0.16778564f), 987) { StopDistance = 5f }; obj28.Steps = list43; reference31 = obj28; - ref QuestSequence reference32 = ref span18[1]; + num++; + ref QuestSequence reference32 = ref span42[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - Span span19 = CollectionsMarshal.AsSpan(list44); - span19[0] = new QuestStep(EInteractionType.Interact, 2011937u, new Vector3(-0.009068698f, 1.151502f, 14.81335f), 987) + index2 = 4; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.Interact, 2011937u, new Vector3(-0.009068698f, 1.151502f, 14.81335f), 987) { TargetTerritoryId = (ushort)962 }; - span19[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + num2++; + span44[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanBaldesionAnnex }; - span19[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + num2++; + span44[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanStudium }; - span19[3] = new QuestStep(EInteractionType.Interact, 1038675u, new Vector3(-301.38098f, 18.47832f, 10.849121f), 962); + num2++; + span44[num2] = new QuestStep(EInteractionType.Interact, 1038675u, new Vector3(-301.38098f, 18.47832f, 10.849121f), 962); obj29.Steps = list44; reference32 = obj29; - ref QuestSequence reference33 = ref span18[2]; + num++; + ref QuestSequence reference33 = ref span42[num]; QuestSequence obj30 = new QuestSequence { Sequence = 2 @@ -285339,70 +346059,97 @@ public static class AssemblyQuestLoader num2 = 3; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span20 = CollectionsMarshal.AsSpan(list45); - ref QuestStep reference34 = ref span20[0]; + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + ref QuestStep reference34 = ref span45[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2011828u, new Vector3(-320.72937f, 20.248657f, 57.99951f), 962); num3 = 6; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - Span span21 = CollectionsMarshal.AsSpan(list46); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span46 = CollectionsMarshal.AsSpan(list46); + index3 = 0; + span46[index3] = null; + index3++; + span46[index3] = null; + index3++; + span46[index3] = null; + index3++; + span46[index3] = null; + index3++; + span46[index3] = null; + index3++; + span46[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list46; - num3 = 1; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new DialogueChoice + index3 = 1; + List list47 = new List(index3); + CollectionsMarshal.SetCount(list47, index3); + Span span47 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + span47[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA103_04359_Q5_000_071") }; questStep4.DialogueChoices = list47; reference34 = questStep4; - ref QuestStep reference35 = ref span20[1]; + index2++; + ref QuestStep reference35 = ref span45[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2011825u, new Vector3(-370.47382f, 20.248657f, 100.1449f), 962); num3 = 6; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - Span span22 = CollectionsMarshal.AsSpan(list48); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span48 = CollectionsMarshal.AsSpan(list48); + index3 = 0; + span48[index3] = null; + index3++; + span48[index3] = null; + index3++; + span48[index3] = null; + index3++; + span48[index3] = null; + index3++; + span48[index3] = null; + index3++; + span48[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list48; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = new DialogueChoice + index3 = 1; + List list49 = new List(index3); + CollectionsMarshal.SetCount(list49, index3); + Span span49 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span49[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA103_04359_Q2_000_049") }; questStep5.DialogueChoices = list49; reference35 = questStep5; - ref QuestStep reference36 = ref span20[2]; + index2++; + ref QuestStep reference36 = ref span45[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2011826u, new Vector3(-385.36664f, 20.248657f, 43.289795f), 962); num3 = 6; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - Span span23 = CollectionsMarshal.AsSpan(list50); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span50 = CollectionsMarshal.AsSpan(list50); + index3 = 0; + span50[index3] = null; + index3++; + span50[index3] = null; + index3++; + span50[index3] = null; + index3++; + span50[index3] = null; + index3++; + span50[index3] = null; + index3++; + span50[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list50; - num3 = 1; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = new DialogueChoice + index3 = 1; + List list51 = new List(index3); + CollectionsMarshal.SetCount(list51, index3); + Span span51 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span51[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA103_04359_Q3_000_055") @@ -285411,18 +346158,22 @@ public static class AssemblyQuestLoader reference36 = questStep6; obj30.Steps = list45; reference33 = obj30; - ref QuestSequence reference37 = ref span18[3]; + num++; + ref QuestSequence reference37 = ref span42[num]; QuestSequence obj31 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 2011830u, new Vector3(-276.0205f, 18.997375f, 18.936401f), 962); + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.Interact, 2011830u, new Vector3(-276.0205f, 18.997375f, 18.936401f), 962); obj31.Steps = list52; reference37 = obj31; - ref QuestSequence reference38 = ref span18[4]; + num++; + ref QuestSequence reference38 = ref span42[num]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -285430,21 +346181,27 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 2011830u, new Vector3(-276.0205f, 18.997375f, 18.936401f), 962); + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.Interact, 2011830u, new Vector3(-276.0205f, 18.997375f, 18.936401f), 962); obj32.Steps = list53; reference38 = obj32; - ref QuestSequence reference39 = ref span18[5]; + num++; + ref QuestSequence reference39 = ref span42[num]; QuestSequence obj33 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 2011830u, new Vector3(-276.0205f, 18.997375f, 18.936401f), 962); + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.Interact, 2011830u, new Vector3(-276.0205f, 18.997375f, 18.936401f), 962); obj33.Steps = list54; reference39 = obj33; - ref QuestSequence reference40 = ref span18[6]; + num++; + ref QuestSequence reference40 = ref span42[num]; QuestSequence obj34 = new QuestSequence { Sequence = 6 @@ -285452,18 +346209,23 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1038679u, new Vector3(-275.5932f, 19.003881f, 13.321045f), 962); + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.Interact, 1038679u, new Vector3(-275.5932f, 19.003881f, 13.321045f), 962); obj34.Steps = list55; reference40 = obj34; - ref QuestSequence reference41 = ref span18[7]; + num++; + ref QuestSequence reference41 = ref span42[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038679u, new Vector3(-275.5932f, 19.003881f, 13.321045f), 962) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038679u, new Vector3(-275.5932f, 19.003881f, 13.321045f), 962) { StopDistance = 5f }; @@ -285476,13 +346238,16 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "liza"; + Span span57 = CollectionsMarshal.AsSpan(list57); + index = 0; + span57[index] = "liza"; questRoot7.Author = list57; - num = 9; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span24 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference42 = ref span24[0]; + index = 9; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + Span span58 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference42 = ref span58[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -285490,21 +346255,26 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038681u, new Vector3(-281.11694f, 19.003874f, 18.966919f), 962) + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038681u, new Vector3(-281.11694f, 19.003874f, 18.966919f), 962) { StopDistance = 5f }; obj36.Steps = list59; reference42 = obj36; - ref QuestSequence reference43 = ref span24[1]; + num++; + ref QuestSequence reference43 = ref span58[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1038682u, new Vector3(-69.13867f, -15.127f, 113.572876f), 962) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.Interact, 1038682u, new Vector3(-69.13867f, -15.127f, 113.572876f), 962) { AethernetShortcut = new AethernetShortcut { @@ -285514,7 +346284,8 @@ public static class AssemblyQuestLoader }; obj37.Steps = list60; reference43 = obj37; - ref QuestSequence reference44 = ref span24[2]; + num++; + ref QuestSequence reference44 = ref span58[num]; QuestSequence obj38 = new QuestSequence { Sequence = 2 @@ -285522,23 +346293,29 @@ public static class AssemblyQuestLoader num2 = 2; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span25 = CollectionsMarshal.AsSpan(list61); - span25[0] = new QuestStep(EInteractionType.Interact, 1037079u, new Vector3(-81.04071f, -13.777f, 117.32654f), 962); - span25[1] = new QuestStep(EInteractionType.Interact, 1037078u, new Vector3(-42.557434f, -14.1693125f, 111.49768f), 962); + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new QuestStep(EInteractionType.Interact, 1037079u, new Vector3(-81.04071f, -13.777f, 117.32654f), 962); + index2++; + span61[index2] = new QuestStep(EInteractionType.Interact, 1037078u, new Vector3(-42.557434f, -14.1693125f, 111.49768f), 962); obj38.Steps = list61; reference44 = obj38; - ref QuestSequence reference45 = ref span24[3]; + num++; + ref QuestSequence reference45 = ref span58[num]; QuestSequence obj39 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1037077u, new Vector3(-38.066784f, -14.169313f, 107.68768f), 962); + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.Interact, 1037077u, new Vector3(-38.066784f, -14.169313f, 107.68768f), 962); obj39.Steps = list62; reference45 = obj39; - ref QuestSequence reference46 = ref span24[4]; + num++; + ref QuestSequence reference46 = ref span58[num]; QuestSequence obj40 = new QuestSequence { Sequence = 4 @@ -285546,12 +346323,16 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list63)[0]; + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + ref QuestStep reference47 = ref span63[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2011831u, new Vector3(-86.90015f, -12.985474f, 130.47986f), 962); num3 = 1; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice + Span span64 = CollectionsMarshal.AsSpan(list64); + index3 = 0; + span64[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA104_04360_Q3_000_130"), @@ -285561,20 +346342,25 @@ public static class AssemblyQuestLoader reference47 = questStep7; obj40.Steps = list63; reference46 = obj40; - ref QuestSequence reference48 = ref span24[5]; + num++; + ref QuestSequence reference48 = ref span58[num]; QuestSequence obj41 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - ref QuestStep reference49 = ref CollectionsMarshal.AsSpan(list65)[0]; + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + ref QuestStep reference49 = ref span65[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2011832u, new Vector3(-74.57086f, -12.985474f, 141.1001f), 962); - num3 = 1; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = new DialogueChoice + index3 = 1; + List list66 = new List(index3); + CollectionsMarshal.SetCount(list66, index3); + Span span66 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span66[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA104_04360_Q5_000_150"), @@ -285584,7 +346370,8 @@ public static class AssemblyQuestLoader reference49 = questStep8; obj41.Steps = list65; reference48 = obj41; - ref QuestSequence reference50 = ref span24[6]; + num++; + ref QuestSequence reference50 = ref span58[num]; QuestSequence obj42 = new QuestSequence { Sequence = 6 @@ -285592,12 +346379,16 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list67)[0]; + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + ref QuestStep reference51 = ref span67[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2011833u, new Vector3(-74.57086f, -12.985474f, 148.11926f), 962); num3 = 1; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = new DialogueChoice + Span span68 = CollectionsMarshal.AsSpan(list68); + index3 = 0; + span68[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA104_04360_Q6_000_170"), @@ -285607,21 +346398,25 @@ public static class AssemblyQuestLoader reference51 = questStep9; obj42.Steps = list67; reference50 = obj42; - ref QuestSequence reference52 = ref span24[7]; + num++; + ref QuestSequence reference52 = ref span58[num]; QuestSequence obj43 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1038683u, new Vector3(-36.697998f, -14.169313f, 114.76306f), 962) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.Interact, 1038683u, new Vector3(-36.697998f, -14.169313f, 114.76306f), 962) { StopDistance = 6.9f }; obj43.Steps = list69; reference52 = obj43; - ref QuestSequence reference53 = ref span24[8]; + num++; + ref QuestSequence reference53 = ref span58[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -285629,9 +346424,11 @@ public static class AssemblyQuestLoader num2 = 2; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span26 = CollectionsMarshal.AsSpan(list70); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.79008f, -16.247002f, 108.36692f), 962); - span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1038684u, new Vector3(29.007324f, -14.446999f, 76.46289f), 962); + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.79008f, -16.247002f, 108.36692f), 962); + index2++; + span70[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038684u, new Vector3(29.007324f, -14.446999f, 76.46289f), 962); obj44.Steps = list70; reference53 = obj44; questRoot7.QuestSequence = list58; @@ -285641,24 +346438,30 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + Span span71 = CollectionsMarshal.AsSpan(list71); + index = 0; + span71[index] = "liza"; questRoot8.Author = list71; - num = 7; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span27 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference54 = ref span27[0]; + index = 7; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + Span span72 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference54 = ref span72[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038684u, new Vector3(29.007324f, -14.446999f, 76.46289f), 962); + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038684u, new Vector3(29.007324f, -14.446999f, 76.46289f), 962); obj45.Steps = list73; reference54 = obj45; - ref QuestSequence reference55 = ref span27[1]; + num++; + ref QuestSequence reference55 = ref span72[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -285666,7 +346469,9 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1038679u, new Vector3(-275.5932f, 19.003881f, 13.321045f), 962) + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.Interact, 1038679u, new Vector3(-275.5932f, 19.003881f, 13.321045f), 962) { AethernetShortcut = new AethernetShortcut { @@ -285676,37 +346481,44 @@ public static class AssemblyQuestLoader }; obj46.Steps = list74; reference55 = obj46; - ref QuestSequence reference56 = ref span27[2]; + num++; + ref QuestSequence reference56 = ref span72[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - Span span28 = CollectionsMarshal.AsSpan(list75); - span28[0] = new QuestStep(EInteractionType.Interact, 1038753u, new Vector3(-234.21082f, 12.969517f, -27.054321f), 962); - span28[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-202.6663f, 13.470648f, -49.497906f), 962) + index2 = 6; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.Interact, 1038753u, new Vector3(-234.21082f, 12.969517f, -27.054321f), 962); + num2++; + span75[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-202.6663f, 13.470648f, -49.497906f), 962) { NpcWaitDistance = 1f, Sprint = false }; - span28[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-138.0897f, 21.879826f, -144.57791f), 962) + num2++; + span75[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-138.0897f, 21.879826f, -144.57791f), 962) { NpcWaitDistance = 1f, Sprint = false }; - span28[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-89.6808f, 24.953402f, -138.54071f), 962) + num2++; + span75[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-89.6808f, 24.953402f, -138.54071f), 962) { NpcWaitDistance = 1f, Sprint = false }; - span28[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-16.652283f, 41.37599f, -145.70506f), 962) + num2++; + span75[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-16.652283f, 41.37599f, -145.70506f), 962) { NpcWaitDistance = 1f, Sprint = false }; - span28[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-77.90129f, 41.37599f, -209.40958f), 962) + num2++; + span75[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-77.90129f, 41.37599f, -209.40958f), 962) { NpcWaitDistance = 1f, Sprint = false, @@ -285714,7 +346526,8 @@ public static class AssemblyQuestLoader }; obj47.Steps = list75; reference56 = obj47; - ref QuestSequence reference57 = ref span27[3]; + num++; + ref QuestSequence reference57 = ref span72[num]; QuestSequence obj48 = new QuestSequence { Sequence = 3 @@ -285722,28 +346535,36 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1038688u, new Vector3(-69.5354f, 18.043928f, -321.40082f), 962); + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.Interact, 1038688u, new Vector3(-69.5354f, 18.043928f, -321.40082f), 962); obj48.Steps = list76; reference57 = obj48; - span27[4] = new QuestSequence + num++; + span72[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference58 = ref span27[5]; + num++; + ref QuestSequence reference58 = ref span72[num]; QuestSequence obj49 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - Span span29 = CollectionsMarshal.AsSpan(list77); - span29[0] = new QuestStep(EInteractionType.Interact, 1038692u, new Vector3(-1.5411987f, 170.403f, -748.0125f), 956); - span29[1] = new QuestStep(EInteractionType.Interact, 1037473u, new Vector3(-27.17633f, 170.40298f, -722.46893f), 956); - span29[2] = new QuestStep(EInteractionType.Interact, 1037472u, new Vector3(-74.69299f, 170.403f, -755.67255f), 956); + index2 = 3; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.Interact, 1038692u, new Vector3(-1.5411987f, 170.403f, -748.0125f), 956); + num2++; + span77[num2] = new QuestStep(EInteractionType.Interact, 1037473u, new Vector3(-27.17633f, 170.40298f, -722.46893f), 956); + num2++; + span77[num2] = new QuestStep(EInteractionType.Interact, 1037472u, new Vector3(-74.69299f, 170.403f, -755.67255f), 956); obj49.Steps = list77; reference58 = obj49; - ref QuestSequence reference59 = ref span27[6]; + num++; + ref QuestSequence reference59 = ref span72[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue @@ -285751,7 +346572,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038695u, new Vector3(-52.384216f, 170.403f, -734.7677f), 956); + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038695u, new Vector3(-52.384216f, 170.403f, -734.7677f), 956); obj50.Steps = list78; reference59 = obj50; questRoot8.QuestSequence = list72; @@ -285761,24 +346584,30 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + Span span79 = CollectionsMarshal.AsSpan(list79); + index = 0; + span79[index] = "liza"; questRoot9.Author = list79; - num = 9; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span30 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference60 = ref span30[0]; + index = 9; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + Span span80 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference60 = ref span80[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038695u, new Vector3(-52.384216f, 170.403f, -734.7677f), 956); + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038695u, new Vector3(-52.384216f, 170.403f, -734.7677f), 956); obj51.Steps = list81; reference60 = obj51; - ref QuestSequence reference61 = ref span30[1]; + num++; + ref QuestSequence reference61 = ref span80[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -285786,32 +346615,40 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1038692u, new Vector3(-1.5411987f, 170.403f, -748.0125f), 956); + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.Interact, 1038692u, new Vector3(-1.5411987f, 170.403f, -748.0125f), 956); obj52.Steps = list82; reference61 = obj52; - ref QuestSequence reference62 = ref span30[2]; + num++; + ref QuestSequence reference62 = ref span80[num]; QuestSequence obj53 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list83)[0]; + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + ref QuestStep reference63 = ref span83[num2]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, 1038699u, new Vector3(128.00781f, 186.03699f, -740.9324f), 956) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = 14024u; + index3 = 1; + List list84 = new List(index3); + CollectionsMarshal.SetCount(list84, index3); + Span span84 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span84[num3] = 14024u; obj54.KillEnemyDataIds = list84; reference63 = obj54; obj53.Steps = list83; reference62 = obj53; - ref QuestSequence reference64 = ref span30[3]; + num++; + ref QuestSequence reference64 = ref span80[num]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -285819,18 +346656,23 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1038699u, new Vector3(128.00781f, 186.03699f, -740.9324f), 956); + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.Interact, 1038699u, new Vector3(128.00781f, 186.03699f, -740.9324f), 956); obj55.Steps = list85; reference64 = obj55; - ref QuestSequence reference65 = ref span30[4]; + num++; + ref QuestSequence reference65 = ref span80[num]; QuestSequence obj56 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - ref QuestStep reference66 = ref CollectionsMarshal.AsSpan(list86)[0]; + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + ref QuestStep reference66 = ref span86[num2]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, 1038700u, new Vector3(259.0829f, 166.40231f, -595.69696f), 956) { StopDistance = 1f, @@ -285839,14 +346681,17 @@ public static class AssemblyQuestLoader num3 = 2; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - Span span31 = CollectionsMarshal.AsSpan(list87); - span31[0] = 14023u; - span31[1] = 14022u; + Span span87 = CollectionsMarshal.AsSpan(list87); + index3 = 0; + span87[index3] = 14023u; + index3++; + span87[index3] = 14022u; obj57.KillEnemyDataIds = list87; reference66 = obj57; obj56.Steps = list86; reference65 = obj56; - ref QuestSequence reference67 = ref span30[5]; + num++; + ref QuestSequence reference67 = ref span80[num]; QuestSequence obj58 = new QuestSequence { Sequence = 5 @@ -285854,28 +346699,35 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.UseItem, 1038700u, new Vector3(259.0829f, 166.40231f, -595.69696f), 956) + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.UseItem, 1038700u, new Vector3(259.0829f, 166.40231f, -595.69696f), 956) { ItemId = 2003129u }; obj58.Steps = list88; reference67 = obj58; - ref QuestSequence reference68 = ref span30[6]; + num++; + ref QuestSequence reference68 = ref span80[num]; QuestSequence obj59 = new QuestSequence { Sequence = 6 }; - num2 = 4; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - Span span32 = CollectionsMarshal.AsSpan(list89); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(222.61905f, 182.78828f, -704.0299f), 956); - span32[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011980u, new Vector3(346.51697f, 209.3385f, -767.7577f), 956) + index2 = 4; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(222.61905f, 182.78828f, -704.0299f), 956); + num2++; + span89[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011980u, new Vector3(346.51697f, 209.3385f, -767.7577f), 956) { AetherCurrentId = 2818314u }; - span32[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(280.38452f, 216.34708f, -823.3921f), 956); - span32[3] = new QuestStep(EInteractionType.UseItem, 1038701u, new Vector3(280.38452f, 216.34708f, -823.3921f), 956) + num2++; + span89[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(280.38452f, 216.34708f, -823.3921f), 956); + num2++; + span89[num2] = new QuestStep(EInteractionType.UseItem, 1038701u, new Vector3(280.38452f, 216.34708f, -823.3921f), 956) { DelaySecondsAtStart = 2f, Mount = false, @@ -285883,7 +346735,8 @@ public static class AssemblyQuestLoader }; obj59.Steps = list89; reference68 = obj59; - ref QuestSequence reference69 = ref span30[7]; + num++; + ref QuestSequence reference69 = ref span80[num]; QuestSequence obj60 = new QuestSequence { Sequence = 7 @@ -285891,20 +346744,25 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1038757u, new Vector3(-1.9074707f, 170.403f, -751.5221f), 956); + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.Interact, 1038757u, new Vector3(-1.9074707f, 170.403f, -751.5221f), 956); obj60.Steps = list90; reference69 = obj60; - ref QuestSequence reference70 = ref span30[8]; + num++; + ref QuestSequence reference70 = ref span80[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - Span span33 = CollectionsMarshal.AsSpan(list91); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(254.80028f, 163.44171f, -626.4951f), 956); - span33[1] = new QuestStep(EInteractionType.CompleteQuest, 1038702u, new Vector3(394.27783f, 165.94997f, -521.294f), 956); + index2 = 2; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span91[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(254.80028f, 163.44171f, -626.4951f), 956); + num2++; + span91[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038702u, new Vector3(394.27783f, 165.94997f, -521.294f), 956); obj61.Steps = list91; reference70 = obj61; questRoot9.QuestSequence = list80; @@ -285914,13 +346772,16 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "liza"; + Span span92 = CollectionsMarshal.AsSpan(list92); + index = 0; + span92[index] = "liza"; questRoot10.Author = list92; - num = 7; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span34 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference71 = ref span34[0]; + index = 7; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + Span span93 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference71 = ref span93[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -285928,26 +346789,32 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038702u, new Vector3(394.27783f, 165.94997f, -521.294f), 956); + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038702u, new Vector3(394.27783f, 165.94997f, -521.294f), 956); obj62.Steps = list94; reference71 = obj62; - ref QuestSequence reference72 = ref span34[1]; + num++; + ref QuestSequence reference72 = ref span93[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - Span span35 = CollectionsMarshal.AsSpan(list95); - span35[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 956) + index2 = 2; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 956) { Aetheryte = EAetheryteLocation.LabyrinthosArcheion }; - span35[1] = new QuestStep(EInteractionType.Interact, 1037475u, new Vector3(379.14087f, 170.1f, -410.97125f), 956); + num2++; + span95[num2] = new QuestStep(EInteractionType.Interact, 1037475u, new Vector3(379.14087f, 170.1f, -410.97125f), 956); obj63.Steps = list95; reference72 = obj63; - ref QuestSequence reference73 = ref span34[2]; + num++; + ref QuestSequence reference73 = ref span93[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -285955,49 +346822,67 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1038712u, new Vector3(415.8236f, 166.41167f, -451.10248f), 956); + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.Interact, 1038712u, new Vector3(415.8236f, 166.41167f, -451.10248f), 956); obj64.Steps = list96; reference73 = obj64; - ref QuestSequence reference74 = ref span34[3]; + num++; + ref QuestSequence reference74 = ref span93[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - Span span36 = CollectionsMarshal.AsSpan(list97); - ref QuestStep reference75 = ref span36[0]; + index2 = 2; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + ref QuestStep reference75 = ref span97[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1038714u, new Vector3(383.01672f, 166.19273f, -464.7746f), 956); - num3 = 6; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - Span span37 = CollectionsMarshal.AsSpan(list98); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list98 = new List(index3); + CollectionsMarshal.SetCount(list98, index3); + Span span98 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span98[num3] = null; + num3++; + span98[num3] = null; + num3++; + span98[num3] = null; + num3++; + span98[num3] = null; + num3++; + span98[num3] = null; + num3++; + span98[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list98; reference75 = questStep10; - ref QuestStep reference76 = ref span36[1]; + num2++; + ref QuestStep reference76 = ref span97[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1038716u, new Vector3(468.10095f, 166.2036f, -458.2132f), 956); num3 = 6; List list99 = new List(num3); CollectionsMarshal.SetCount(list99, num3); - Span span38 = CollectionsMarshal.AsSpan(list99); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span99 = CollectionsMarshal.AsSpan(list99); + index3 = 0; + span99[index3] = null; + index3++; + span99[index3] = null; + index3++; + span99[index3] = null; + index3++; + span99[index3] = null; + index3++; + span99[index3] = null; + index3++; + span99[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list99; reference76 = questStep11; obj65.Steps = list97; reference74 = obj65; - ref QuestSequence reference77 = ref span34[4]; + num++; + ref QuestSequence reference77 = ref span93[num]; QuestSequence obj66 = new QuestSequence { Sequence = 4 @@ -286005,24 +346890,30 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1038717u, new Vector3(579.91907f, 168.84044f, -517.3572f), 956); + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.Interact, 1038717u, new Vector3(579.91907f, 168.84044f, -517.3572f), 956); obj66.Steps = list100; reference77 = obj66; - ref QuestSequence reference78 = ref span34[5]; + num++; + ref QuestSequence reference78 = ref span93[num]; QuestSequence obj67 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Snipe, 2011839u, new Vector3(576.8367f, 168.99365f, -519.18823f), 956) + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.Snipe, 2011839u, new Vector3(576.8367f, 168.99365f, -519.18823f), 956) { Comment = "Shoot Large Green Bird" }; obj67.Steps = list101; reference78 = obj67; - ref QuestSequence reference79 = ref span34[6]; + num++; + ref QuestSequence reference79 = ref span93[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -286030,7 +346921,9 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038718u, new Vector3(644.9835f, 185.14716f, -130.23578f), 956); + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span102[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038718u, new Vector3(644.9835f, 185.14716f, -130.23578f), 956); obj68.Steps = list102; reference79 = obj68; questRoot10.QuestSequence = list93; @@ -286040,24 +346933,30 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "liza"; + Span span103 = CollectionsMarshal.AsSpan(list103); + index = 0; + span103[index] = "liza"; questRoot11.Author = list103; - num = 8; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span39 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference80 = ref span39[0]; + index = 8; + List list104 = new List(index); + CollectionsMarshal.SetCount(list104, index); + Span span104 = CollectionsMarshal.AsSpan(list104); + num = 0; + ref QuestSequence reference80 = ref span104[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038719u, new Vector3(646.3264f, 185.07715f, -131.97534f), 956); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038719u, new Vector3(646.3264f, 185.07715f, -131.97534f), 956); obj69.Steps = list105; reference80 = obj69; - ref QuestSequence reference81 = ref span39[1]; + num++; + ref QuestSequence reference81 = ref span104[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -286065,34 +346964,42 @@ public static class AssemblyQuestLoader num2 = 3; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span40 = CollectionsMarshal.AsSpan(list106); - span40[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011981u, new Vector3(748.53125f, 106.7063f, 66.75818f), 956) + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011981u, new Vector3(748.53125f, 106.7063f, 66.75818f), 956) { AetherCurrentId = 2818315u }; - span40[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(760.1999f, 145.74788f, -52.025288f), 956); - ref QuestStep reference82 = ref span40[2]; + index2++; + span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(760.1999f, 145.74788f, -52.025288f), 956); + index2++; + ref QuestStep reference82 = ref span106[index2]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, 2011840u, new Vector3(828.33594f, 147.8446f, -72.22095f), 956) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - CollectionsMarshal.AsSpan(list107)[0] = 14020u; + index3 = 1; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + Span span107 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span107[num3] = 14020u; obj71.KillEnemyDataIds = list107; reference82 = obj71; obj70.Steps = list106; reference81 = obj70; - ref QuestSequence reference83 = ref span39[2]; + num++; + ref QuestSequence reference83 = ref span104[num]; QuestSequence obj72 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list108)[0]; + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + ref QuestStep reference84 = ref span108[num2]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2011841u, new Vector3(813.6262f, 158.64807f, 126.57361f), 956) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -286100,12 +347007,15 @@ public static class AssemblyQuestLoader num3 = 1; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - CollectionsMarshal.AsSpan(list109)[0] = 14021u; + Span span109 = CollectionsMarshal.AsSpan(list109); + index3 = 0; + span109[index3] = 14021u; obj73.KillEnemyDataIds = list109; reference84 = obj73; obj72.Steps = list108; reference83 = obj72; - ref QuestSequence reference85 = ref span39[3]; + num++; + ref QuestSequence reference85 = ref span104[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -286113,26 +347023,32 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1038722u, new Vector3(621.3015f, 97.13325f, 182.17737f), 956); + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.Interact, 1038722u, new Vector3(621.3015f, 97.13325f, 182.17737f), 956); obj74.Steps = list110; reference85 = obj74; - ref QuestSequence reference86 = ref span39[4]; + num++; + ref QuestSequence reference86 = ref span104[num]; QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span41 = CollectionsMarshal.AsSpan(list111); - span41[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(483.16574f, 83.132675f, 74.693695f), 956) + index2 = 2; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(483.16574f, 83.132675f, 74.693695f), 956) { Comment = "Avoids aggroing some enemies on the hill" }; - span41[1] = new QuestStep(EInteractionType.Interact, 2011842u, new Vector3(492.1797f, 64.86609f, -44.571655f), 956); + num2++; + span111[num2] = new QuestStep(EInteractionType.Interact, 2011842u, new Vector3(492.1797f, 64.86609f, -44.571655f), 956); obj75.Steps = list111; reference86 = obj75; - ref QuestSequence reference87 = ref span39[5]; + num++; + ref QuestSequence reference87 = ref span104[num]; QuestSequence obj76 = new QuestSequence { Sequence = 5 @@ -286140,63 +347056,88 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span42 = CollectionsMarshal.AsSpan(list112); - ref QuestStep reference88 = ref span42[0]; + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + ref QuestStep reference88 = ref span112[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1037985u, new Vector3(481.8036f, 66.16195f, -108.537415f), 956); - num3 = 6; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - Span span43 = CollectionsMarshal.AsSpan(list113); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list113 = new List(index3); + CollectionsMarshal.SetCount(list113, index3); + Span span113 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span113[num3] = null; + num3++; + span113[num3] = null; + num3++; + span113[num3] = null; + num3++; + span113[num3] = null; + num3++; + span113[num3] = null; + num3++; + span113[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list113; reference88 = questStep12; - ref QuestStep reference89 = ref span42[1]; + index2++; + ref QuestStep reference89 = ref span112[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1038707u, new Vector3(455.80212f, 65.16199f, -150.04199f), 956); num3 = 6; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - Span span44 = CollectionsMarshal.AsSpan(list114); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span114 = CollectionsMarshal.AsSpan(list114); + index3 = 0; + span114[index3] = null; + index3++; + span114[index3] = null; + index3++; + span114[index3] = null; + index3++; + span114[index3] = null; + index3++; + span114[index3] = null; + index3++; + span114[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list114; reference89 = questStep13; - ref QuestStep reference90 = ref span42[2]; + index2++; + ref QuestStep reference90 = ref span112[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1038708u, new Vector3(408.31604f, 65.3329f, -130.11371f), 956); - num3 = 6; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - Span span45 = CollectionsMarshal.AsSpan(list115); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list115 = new List(index3); + CollectionsMarshal.SetCount(list115, index3); + Span span115 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list115; reference90 = questStep14; obj76.Steps = list112; reference87 = obj76; - ref QuestSequence reference91 = ref span39[6]; + num++; + ref QuestSequence reference91 = ref span104[num]; QuestSequence obj77 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 2011843u, new Vector3(312.64197f, 97.3678f, -257.34344f), 956); + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.Interact, 2011843u, new Vector3(312.64197f, 97.3678f, -257.34344f), 956); obj77.Steps = list116; reference91 = obj77; - ref QuestSequence reference92 = ref span39[7]; + num++; + ref QuestSequence reference92 = ref span104[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -286204,7 +347145,9 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038732u, new Vector3(321.43127f, 97.50893f, -279.92682f), 956) + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038732u, new Vector3(321.43127f, 97.50893f, -279.92682f), 956) { StopDistance = 5f }; @@ -286217,27 +347160,33 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "liza"; questRoot12.Author = list118; - num = 5; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span46 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference93 = ref span46[0]; + index = 5; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference93 = ref span119[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038731u, new Vector3(324.84924f, 97.07327f, -282.21564f), 956) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038731u, new Vector3(324.84924f, 97.07327f, -282.21564f), 956) { StopDistance = 5f }; obj79.Steps = list120; reference93 = obj79; - ref QuestSequence reference94 = ref span46[1]; + num++; + ref QuestSequence reference94 = ref span119[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -286245,27 +347194,33 @@ public static class AssemblyQuestLoader num2 = 2; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span47 = CollectionsMarshal.AsSpan(list121); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(304.306f, 84.01365f, -292.01114f), 956) + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(304.306f, 84.01365f, -292.01114f), 956) { DisableNavmesh = true, Mount = true }; - span47[1] = new QuestStep(EInteractionType.Interact, 1038736u, new Vector3(177.26404f, 56.63088f, -411.5511f), 956); + index2++; + span121[index2] = new QuestStep(EInteractionType.Interact, 1038736u, new Vector3(177.26404f, 56.63088f, -411.5511f), 956); obj80.Steps = list121; reference94 = obj80; - ref QuestSequence reference95 = ref span46[2]; + num++; + ref QuestSequence reference95 = ref span119[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1038738u, new Vector3(177.05042f, 56.567654f, -409.41486f), 956); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.Interact, 1038738u, new Vector3(177.05042f, 56.567654f, -409.41486f), 956); obj81.Steps = list122; reference95 = obj81; - ref QuestSequence reference96 = ref span46[3]; + num++; + ref QuestSequence reference96 = ref span119[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -286273,21 +347228,26 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-156.15488f, 81.17488f, -534.99316f), 956) + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-156.15488f, 81.17488f, -534.99316f), 956) { StopDistance = 0.25f }; obj82.Steps = list123; reference96 = obj82; - ref QuestSequence reference97 = ref span46[4]; + num++; + ref QuestSequence reference97 = ref span119[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038740u, new Vector3(-256.27533f, 79.75535f, -502.12863f), 956); + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038740u, new Vector3(-256.27533f, 79.75535f, -502.12863f), 956); obj83.Steps = list124; reference97 = obj83; questRoot12.QuestSequence = list119; @@ -286297,13 +347257,16 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "liza"; + Span span125 = CollectionsMarshal.AsSpan(list125); + index = 0; + span125[index] = "liza"; questRoot13.Author = list125; - num = 4; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span48 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference98 = ref span48[0]; + index = 4; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + Span span126 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference98 = ref span126[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -286311,21 +347274,27 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038741u, new Vector3(-257.9538f, 79.7362f, -502.06763f), 956); + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038741u, new Vector3(-257.9538f, 79.7362f, -502.06763f), 956); obj84.Steps = list127; reference98 = obj84; - ref QuestSequence reference99 = ref span48[1]; + num++; + ref QuestSequence reference99 = ref span126[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1038736u, new Vector3(177.26404f, 56.63088f, -411.5511f), 956); + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.Interact, 1038736u, new Vector3(177.26404f, 56.63088f, -411.5511f), 956); obj85.Steps = list128; reference99 = obj85; - ref QuestSequence reference100 = ref span48[2]; + num++; + ref QuestSequence reference100 = ref span126[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -286333,23 +347302,28 @@ public static class AssemblyQuestLoader num2 = 2; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span49 = CollectionsMarshal.AsSpan(list129); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(253.34096f, 71.49686f, -241.08495f), 956) + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(253.34096f, 71.49686f, -241.08495f), 956) { Comment = "Needed for Navmesh" }; - span49[1] = new QuestStep(EInteractionType.Interact, 1038744u, new Vector3(315.4497f, 96.90322f, -259.23553f), 956); + index2++; + span129[index2] = new QuestStep(EInteractionType.Interact, 1038744u, new Vector3(315.4497f, 96.90322f, -259.23553f), 956); obj86.Steps = list129; reference100 = obj86; - ref QuestSequence reference101 = ref span48[3]; + num++; + ref QuestSequence reference101 = ref span126[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038747u, new Vector3(-1.6022339f, 41.37599f, -141.16125f), 962) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038747u, new Vector3(-1.6022339f, 41.37599f, -141.16125f), 962) { StopDistance = 5f }; @@ -286362,13 +347336,16 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "liza"; + Span span131 = CollectionsMarshal.AsSpan(list131); + index = 0; + span131[index] = "liza"; questRoot14.Author = list131; - num = 6; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span50 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference102 = ref span50[0]; + index = 6; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + Span span132 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference102 = ref span132[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -286376,27 +347353,33 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038746u, new Vector3(2.5481567f, 41.37599f, -142.1684f), 962) + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038746u, new Vector3(2.5481567f, 41.37599f, -142.1684f), 962) { StopDistance = 5f }; obj88.Steps = list133; reference102 = obj88; - ref QuestSequence reference103 = ref span50[1]; + num++; + ref QuestSequence reference103 = ref span132[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1038745u, new Vector3(1.663208f, 41.37599f, -141.00867f), 962) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.Interact, 1038745u, new Vector3(1.663208f, 41.37599f, -141.00867f), 962) { StopDistance = 5f }; obj89.Steps = list134; reference103 = obj89; - ref QuestSequence reference104 = ref span50[2]; + num++; + ref QuestSequence reference104 = ref span132[num]; QuestSequence obj90 = new QuestSequence { Sequence = 2 @@ -286404,21 +347387,26 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1038746u, new Vector3(2.5481567f, 41.37599f, -142.1684f), 962) + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.Interact, 1038746u, new Vector3(2.5481567f, 41.37599f, -142.1684f), 962) { StopDistance = 5f }; obj90.Steps = list135; reference104 = obj90; - ref QuestSequence reference105 = ref span50[3]; + num++; + ref QuestSequence reference105 = ref span132[num]; QuestSequence obj91 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1040284u, new Vector3(219.22632f, 25.041138f, -160.60126f), 962) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.Interact, 1040284u, new Vector3(219.22632f, 25.041138f, -160.60126f), 962) { AethernetShortcut = new AethernetShortcut { @@ -286428,7 +347416,8 @@ public static class AssemblyQuestLoader }; obj91.Steps = list136; reference105 = obj91; - ref QuestSequence reference106 = ref span50[4]; + num++; + ref QuestSequence reference106 = ref span132[num]; QuestSequence obj92 = new QuestSequence { Sequence = 4 @@ -286436,19 +347425,23 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1040285u, new Vector3(222.03394f, 21.878136f, -120.43945f), 962); + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.Interact, 1040285u, new Vector3(222.03394f, 21.878136f, -120.43945f), 962); obj92.Steps = list137; reference106 = obj92; - ref QuestSequence reference107 = ref span50[5]; + num++; + ref QuestSequence reference107 = ref span132[num]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - Span span51 = CollectionsMarshal.AsSpan(list138); - span51[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + index2 = 2; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987, AethernetShortcut = new AethernetShortcut @@ -286457,7 +347450,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - span51[1] = new QuestStep(EInteractionType.CompleteQuest, 1040291u, new Vector3(-1.9379272f, 1.9073486E-06f, 1.5715942f), 987); + num2++; + span138[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040291u, new Vector3(-1.9379272f, 1.9073486E-06f, 1.5715942f), 987); obj93.Steps = list138; reference107 = obj93; questRoot14.QuestSequence = list132; @@ -286467,13 +347461,16 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; + Span span139 = CollectionsMarshal.AsSpan(list139); + index = 0; + span139[index] = "liza"; questRoot15.Author = list139; - num = 8; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span52 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference108 = ref span52[0]; + index = 8; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + Span span140 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference108 = ref span140[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 @@ -286481,26 +347478,32 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041250u, new Vector3(4.0740967f, 1.9073486E-06f, 2.029419f), 987); + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041250u, new Vector3(4.0740967f, 1.9073486E-06f, 2.029419f), 987); obj94.Steps = list141; reference108 = obj94; - ref QuestSequence reference109 = ref span52[1]; + num++; + ref QuestSequence reference109 = ref span140[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - Span span53 = CollectionsMarshal.AsSpan(list142); - span53[0] = new QuestStep(EInteractionType.Interact, 2011937u, new Vector3(-0.015319824f, 1.1443481f, 14.785889f), 987) + index2 = 2; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.Interact, 2011937u, new Vector3(-0.015319824f, 1.1443481f, 14.785889f), 987) { TargetTerritoryId = (ushort)962 }; - span53[1] = new QuestStep(EInteractionType.Interact, 1038592u, new Vector3(-83.05487f, 6.6169996f, -39.383606f), 962); + num2++; + span142[num2] = new QuestStep(EInteractionType.Interact, 1038592u, new Vector3(-83.05487f, 6.6169996f, -39.383606f), 962); obj95.Steps = list142; reference109 = obj95; - ref QuestSequence reference110 = ref span52[2]; + num++; + ref QuestSequence reference110 = ref span140[num]; QuestSequence obj96 = new QuestSequence { Sequence = 2 @@ -286508,21 +347511,27 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 2011947u, new Vector3(-15.4574585f, 2.7922974f, -8.98761f), 962); + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.Interact, 2011947u, new Vector3(-15.4574585f, 2.7922974f, -8.98761f), 962); obj96.Steps = list143; reference110 = obj96; - ref QuestSequence reference111 = ref span52[3]; + num++; + ref QuestSequence reference111 = ref span140[num]; QuestSequence obj97 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1038599u, new Vector3(168.87158f, 5.3451567f, 633.93604f), 957); + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.Interact, 1038599u, new Vector3(168.87158f, 5.3451567f, 633.93604f), 957); obj97.Steps = list144; reference111 = obj97; - ref QuestSequence reference112 = ref span52[4]; + num++; + ref QuestSequence reference112 = ref span140[num]; QuestSequence obj98 = new QuestSequence { Sequence = 4 @@ -286530,27 +347539,33 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1038599u, new Vector3(168.87158f, 5.3451567f, 633.93604f), 957) + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.Interact, 1038599u, new Vector3(168.87158f, 5.3451567f, 633.93604f), 957) { DisableNavmesh = true }; obj98.Steps = list145; reference112 = obj98; - ref QuestSequence reference113 = ref span52[5]; + num++; + ref QuestSequence reference113 = ref span140[num]; QuestSequence obj99 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Emote, 1038599u, new Vector3(168.87158f, 5.3451567f, 633.93604f), 957) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.Emote, 1038599u, new Vector3(168.87158f, 5.3451567f, 633.93604f), 957) { Emote = EEmote.Deny }; obj99.Steps = list146; reference113 = obj99; - ref QuestSequence reference114 = ref span52[6]; + num++; + ref QuestSequence reference114 = ref span140[num]; QuestSequence obj100 = new QuestSequence { Sequence = 6 @@ -286558,18 +347573,23 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1038598u, new Vector3(187.42651f, 9.9744425f, 592.2178f), 957); + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.Interact, 1038598u, new Vector3(187.42651f, 9.9744425f, 592.2178f), 957); obj100.Steps = list147; reference114 = obj100; - ref QuestSequence reference115 = ref span52[7]; + num++; + ref QuestSequence reference115 = ref span140[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038597u, new Vector3(189.25769f, 9.9744425f, 590.0206f), 957); + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038597u, new Vector3(189.25769f, 9.9744425f, 590.0206f), 957); obj101.Steps = list148; reference115 = obj101; questRoot15.QuestSequence = list140; @@ -286579,13 +347599,16 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "liza"; + Span span149 = CollectionsMarshal.AsSpan(list149); + index = 0; + span149[index] = "liza"; questRoot16.Author = list149; - num = 4; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span54 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference116 = ref span54[0]; + index = 4; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + Span span150 = CollectionsMarshal.AsSpan(list150); + num = 0; + ref QuestSequence reference116 = ref span150[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -286593,34 +347616,44 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038600u, new Vector3(189.92896f, 9.9744425f, 589.89844f), 957); + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038600u, new Vector3(189.92896f, 9.9744425f, 589.89844f), 957); obj102.Steps = list151; reference116 = obj102; - ref QuestSequence reference117 = ref span54[1]; + num++; + ref QuestSequence reference117 = ref span150[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - Span span55 = CollectionsMarshal.AsSpan(list152); - span55[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 957) + index2 = 6; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 957) { StopDistance = 5f, Aetheryte = EAetheryteLocation.ThavnairYedlihmad }; - span55[1] = new QuestStep(EInteractionType.Interact, 2011948u, new Vector3(204.66919f, 2.243042f, 715.4192f), 957); - span55[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.6185f, 1.9123514f, 713.436f), 957); - span55[3] = new QuestStep(EInteractionType.Interact, 1037622u, new Vector3(189.94562f, 0.8560083f, 702.7896f), 957) + num2++; + span152[num2] = new QuestStep(EInteractionType.Interact, 2011948u, new Vector3(204.66919f, 2.243042f, 715.4192f), 957); + num2++; + span152[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.6185f, 1.9123514f, 713.436f), 957); + num2++; + span152[num2] = new QuestStep(EInteractionType.Interact, 1037622u, new Vector3(189.94562f, 0.8560083f, 702.7896f), 957) { StopDistance = 0.25f }; - span55[4] = new QuestStep(EInteractionType.Interact, 2011949u, new Vector3(200f, 1.7547607f, 768.9784f), 957); - span55[5] = new QuestStep(EInteractionType.Interact, 1037623u, new Vector3(220.78271f, 1.8349868f, 759.4263f), 957); + num2++; + span152[num2] = new QuestStep(EInteractionType.Interact, 2011949u, new Vector3(200f, 1.7547607f, 768.9784f), 957); + num2++; + span152[num2] = new QuestStep(EInteractionType.Interact, 1037623u, new Vector3(220.78271f, 1.8349868f, 759.4263f), 957); obj103.Steps = list152; reference117 = obj103; - ref QuestSequence reference118 = ref span54[2]; + num++; + ref QuestSequence reference118 = ref span150[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 @@ -286628,28 +347661,34 @@ public static class AssemblyQuestLoader num2 = 3; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span56 = CollectionsMarshal.AsSpan(list153); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(223.328f, -0.6f, 752.7248f), 957) + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(223.328f, -0.6f, 752.7248f), 957) { DisableNavmesh = true, Sprint = true }; - span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(253.03053f, 0.7659681f, 732.0563f), 957) + index2++; + span153[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(253.03053f, 0.7659681f, 732.0563f), 957) { DisableNavmesh = true }; - span56[2] = new QuestStep(EInteractionType.Interact, 1038606u, new Vector3(277.72937f, 2.9636285f, 703.7003f), 957); + index2++; + span153[index2] = new QuestStep(EInteractionType.Interact, 1038606u, new Vector3(277.72937f, 2.9636285f, 703.7003f), 957); obj104.Steps = list153; reference118 = obj104; - ref QuestSequence reference119 = ref span54[3]; + num++; + ref QuestSequence reference119 = ref span150[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038608u, new Vector3(197.55847f, 1.769943f, 737.97205f), 957); + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038608u, new Vector3(197.55847f, 1.769943f, 737.97205f), 957); obj105.Steps = list154; reference119 = obj105; questRoot16.QuestSequence = list150; @@ -286659,13 +347698,16 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "liza"; + Span span155 = CollectionsMarshal.AsSpan(list155); + index = 0; + span155[index] = "liza"; questRoot17.Author = list155; - num = 7; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span57 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference120 = ref span57[0]; + index = 7; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + Span span156 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference120 = ref span156[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -286673,21 +347715,27 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038608u, new Vector3(197.55847f, 1.769943f, 737.97205f), 957); + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038608u, new Vector3(197.55847f, 1.769943f, 737.97205f), 957); obj106.Steps = list157; reference120 = obj106; - ref QuestSequence reference121 = ref span57[1]; + num++; + ref QuestSequence reference121 = ref span156[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1038608u, new Vector3(197.55847f, 1.769943f, 737.97205f), 957); + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span158[num2] = new QuestStep(EInteractionType.Interact, 1038608u, new Vector3(197.55847f, 1.769943f, 737.97205f), 957); obj107.Steps = list158; reference121 = obj107; - ref QuestSequence reference122 = ref span57[2]; + num++; + ref QuestSequence reference122 = ref span156[num]; QuestSequence obj108 = new QuestSequence { Sequence = 2 @@ -286695,25 +347743,30 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list159)[0]; + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + ref QuestStep reference123 = ref span159[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1037625u, new Vector3(176.47058f, 1.8742183f, 799.2217f), 957); num3 = 3; List list160 = new List(num3); CollectionsMarshal.SetCount(list160, num3); - Span span58 = CollectionsMarshal.AsSpan(list160); - span58[0] = new DialogueChoice + Span span160 = CollectionsMarshal.AsSpan(list160); + index3 = 0; + span160[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q2_000_086"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A2_000_088") }; - span58[1] = new DialogueChoice + index3++; + span160[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q3_000_096"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A3_000_098") }; - span58[2] = new DialogueChoice + index3++; + span160[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q5_000_106"), @@ -286723,36 +347776,43 @@ public static class AssemblyQuestLoader reference123 = questStep15; obj108.Steps = list159; reference122 = obj108; - ref QuestSequence reference124 = ref span57[3]; + num++; + ref QuestSequence reference124 = ref span156[num]; QuestSequence obj109 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - Span span59 = CollectionsMarshal.AsSpan(list161); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.9156f, 4.763735f, 657.83264f), 957); - span59[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(177.03275f, 4.763736f, 658.2807f), 957); - ref QuestStep reference125 = ref span59[2]; + index2 = 3; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + Span span161 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span161[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.9156f, 4.763735f, 657.83264f), 957); + num2++; + span161[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(177.03275f, 4.763736f, 658.2807f), 957); + num2++; + ref QuestStep reference125 = ref span161[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1037626u, new Vector3(166.61316f, 4.763736f, 681.7273f), 957); - num3 = 3; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - Span span60 = CollectionsMarshal.AsSpan(list162); - span60[0] = new DialogueChoice + index3 = 3; + List list162 = new List(index3); + CollectionsMarshal.SetCount(list162, index3); + Span span162 = CollectionsMarshal.AsSpan(list162); + num3 = 0; + span162[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q6_000_147"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A6_000_149") }; - span60[1] = new DialogueChoice + num3++; + span162[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q7_000_157"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A7_000_158") }; - span60[2] = new DialogueChoice + num3++; + span162[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q8_000_162"), @@ -286762,7 +347822,8 @@ public static class AssemblyQuestLoader reference125 = questStep16; obj109.Steps = list161; reference124 = obj109; - ref QuestSequence reference126 = ref span57[4]; + num++; + ref QuestSequence reference126 = ref span156[num]; QuestSequence obj110 = new QuestSequence { Sequence = 4 @@ -286770,25 +347831,30 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list163)[0]; + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + ref QuestStep reference127 = ref span163[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1037624u, new Vector3(213.91614f, 15.136713f, 517.72327f), 957); num3 = 3; List list164 = new List(num3); CollectionsMarshal.SetCount(list164, num3); - Span span61 = CollectionsMarshal.AsSpan(list164); - span61[0] = new DialogueChoice + Span span164 = CollectionsMarshal.AsSpan(list164); + index3 = 0; + span164[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q9_000_198"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A9_000_200") }; - span61[1] = new DialogueChoice + index3++; + span164[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q10_000_207"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A10_000_209") }; - span61[2] = new DialogueChoice + index3++; + span164[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q11_000_216"), @@ -286798,21 +347864,25 @@ public static class AssemblyQuestLoader reference127 = questStep17; obj110.Steps = list163; reference126 = obj110; - ref QuestSequence reference128 = ref span57[5]; + num++; + ref QuestSequence reference128 = ref span156[num]; QuestSequence obj111 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1038608u, new Vector3(199.48804f, 1.769943f, 738.9843f), 957) + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span165[num2] = new QuestStep(EInteractionType.Interact, 1038608u, new Vector3(199.48804f, 1.769943f, 738.9843f), 957) { StopDistance = 0.25f }; obj111.Steps = list165; reference128 = obj111; - ref QuestSequence reference129 = ref span57[6]; + num++; + ref QuestSequence reference129 = ref span156[num]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue @@ -286820,7 +347890,9 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038609u, new Vector3(199.35901f, 5.873753f, 612.787f), 957); + Span span166 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span166[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038609u, new Vector3(199.35901f, 5.873753f, 612.787f), 957); obj112.Steps = list166; reference129 = obj112; questRoot17.QuestSequence = list156; @@ -286830,27 +347902,33 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - CollectionsMarshal.AsSpan(list167)[0] = "liza"; + Span span167 = CollectionsMarshal.AsSpan(list167); + index = 0; + span167[index] = "liza"; questRoot18.Author = list167; - num = 8; - List list168 = new List(num); - CollectionsMarshal.SetCount(list168, num); - Span span62 = CollectionsMarshal.AsSpan(list168); - ref QuestSequence reference130 = ref span62[0]; + index = 8; + List list168 = new List(index); + CollectionsMarshal.SetCount(list168, index); + Span span168 = CollectionsMarshal.AsSpan(list168); + num = 0; + ref QuestSequence reference130 = ref span168[num]; QuestSequence obj113 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038611u, new Vector3(201.86157f, 5.880045f, 612.02405f), 957) + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + Span span169 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span169[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038611u, new Vector3(201.86157f, 5.880045f, 612.02405f), 957) { StopDistance = 5f }; obj113.Steps = list169; reference130 = obj113; - ref QuestSequence reference131 = ref span62[1]; + num++; + ref QuestSequence reference131 = ref span168[num]; QuestSequence obj114 = new QuestSequence { Sequence = 1 @@ -286858,13 +347936,16 @@ public static class AssemblyQuestLoader num2 = 2; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - Span span63 = CollectionsMarshal.AsSpan(list170); - ref QuestStep reference132 = ref span63[0]; + Span span170 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + ref QuestStep reference132 = ref span170[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.AcceptQuest, 1041331u, new Vector3(202.4414f, 1.769943f, 727.7484f), 957); - num3 = 1; - List list171 = new List(num3); - CollectionsMarshal.SetCount(list171, num3); - CollectionsMarshal.AsSpan(list171)[0] = new DialogueChoice + index3 = 1; + List list171 = new List(index3); + CollectionsMarshal.SetCount(list171, index3); + Span span171 = CollectionsMarshal.AsSpan(list171); + num3 = 0; + span171[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/044/AktKza201_04489", @@ -286874,21 +347955,26 @@ public static class AssemblyQuestLoader questStep18.DialogueChoices = list171; questStep18.PickUpQuestId = new QuestId(4489); reference132 = questStep18; - span63[1] = new QuestStep(EInteractionType.Interact, 2011951u, new Vector3(105.1499f, 7.7667847f, 581.5061f), 957); + index2++; + span170[index2] = new QuestStep(EInteractionType.Interact, 2011951u, new Vector3(105.1499f, 7.7667847f, 581.5061f), 957); obj114.Steps = list170; reference131 = obj114; - ref QuestSequence reference133 = ref span62[2]; + num++; + ref QuestSequence reference133 = ref span168[num]; QuestSequence obj115 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 2011952u, new Vector3(-13.290649f, 32.333862f, 499.07666f), 957); + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span172[num2] = new QuestStep(EInteractionType.Interact, 2011952u, new Vector3(-13.290649f, 32.333862f, 499.07666f), 957); obj115.Steps = list172; reference133 = obj115; - ref QuestSequence reference134 = ref span62[3]; + num++; + ref QuestSequence reference134 = ref span168[num]; QuestSequence obj116 = new QuestSequence { Sequence = 3 @@ -286896,7 +347982,9 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list173)[0]; + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + ref QuestStep reference135 = ref span173[index2]; QuestStep obj117 = new QuestStep(EInteractionType.Combat, 1038612u, new Vector3(31.937134f, 37.463673f, 379.5985f), 957) { StopDistance = 0.25f, @@ -286905,23 +347993,29 @@ public static class AssemblyQuestLoader num3 = 1; List list174 = new List(num3); CollectionsMarshal.SetCount(list174, num3); - CollectionsMarshal.AsSpan(list174)[0] = 14006u; + Span span174 = CollectionsMarshal.AsSpan(list174); + index3 = 0; + span174[index3] = 14006u; obj117.KillEnemyDataIds = list174; reference135 = obj117; obj116.Steps = list173; reference134 = obj116; - ref QuestSequence reference136 = ref span62[4]; + num++; + ref QuestSequence reference136 = ref span168[num]; QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1038612u, new Vector3(31.937134f, 37.463673f, 379.5985f), 957); + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.Interact, 1038612u, new Vector3(31.937134f, 37.463673f, 379.5985f), 957); obj118.Steps = list175; reference136 = obj118; - ref QuestSequence reference137 = ref span62[5]; + num++; + ref QuestSequence reference137 = ref span168[num]; QuestSequence obj119 = new QuestSequence { Sequence = 5 @@ -286929,28 +348023,34 @@ public static class AssemblyQuestLoader num2 = 2; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span64 = CollectionsMarshal.AsSpan(list176); - span64[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011990u, new Vector3(-176.10437f, 21.530457f, 537.8346f), 957) + Span span176 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span176[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011990u, new Vector3(-176.10437f, 21.530457f, 537.8346f), 957) { AetherCurrentId = 2818329u }; - span64[1] = new QuestStep(EInteractionType.Interact, 1038616u, new Vector3(-278.88916f, 2.740889f, 532.03625f), 957); + index2++; + span176[index2] = new QuestStep(EInteractionType.Interact, 1038616u, new Vector3(-278.88916f, 2.740889f, 532.03625f), 957); obj119.Steps = list176; reference137 = obj119; - ref QuestSequence reference138 = ref span62[6]; + num++; + ref QuestSequence reference138 = ref span168[num]; QuestSequence obj120 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - Span span65 = CollectionsMarshal.AsSpan(list177); - span65[0] = new QuestStep(EInteractionType.Interact, 1037644u, new Vector3(-293.72095f, 1.4600283f, 551.0491f), 957); - span65[1] = new QuestStep(EInteractionType.Interact, 1037645u, new Vector3(-271.0155f, 0.7022661f, 588.8303f), 957); + index2 = 2; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.Interact, 1037644u, new Vector3(-293.72095f, 1.4600283f, 551.0491f), 957); + num2++; + span177[num2] = new QuestStep(EInteractionType.Interact, 1037645u, new Vector3(-271.0155f, 0.7022661f, 588.8303f), 957); obj120.Steps = list177; reference138 = obj120; - ref QuestSequence reference139 = ref span62[7]; + num++; + ref QuestSequence reference139 = ref span168[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue @@ -286958,7 +348058,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038616u, new Vector3(-278.88916f, 2.740889f, 532.03625f), 957); + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038616u, new Vector3(-278.88916f, 2.740889f, 532.03625f), 957); obj121.Steps = list178; reference139 = obj121; questRoot18.QuestSequence = list168; @@ -286968,24 +348070,30 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "liza"; + Span span179 = CollectionsMarshal.AsSpan(list179); + index = 0; + span179[index] = "liza"; questRoot19.Author = list179; - num = 10; - List list180 = new List(num); - CollectionsMarshal.SetCount(list180, num); - Span span66 = CollectionsMarshal.AsSpan(list180); - ref QuestSequence reference140 = ref span66[0]; + index = 10; + List list180 = new List(index); + CollectionsMarshal.SetCount(list180, index); + Span span180 = CollectionsMarshal.AsSpan(list180); + num = 0; + ref QuestSequence reference140 = ref span180[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038616u, new Vector3(-278.88916f, 2.740889f, 532.03625f), 957); + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span181[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038616u, new Vector3(-278.88916f, 2.740889f, 532.03625f), 957); obj122.Steps = list181; reference140 = obj122; - ref QuestSequence reference141 = ref span66[1]; + num++; + ref QuestSequence reference141 = ref span180[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 @@ -286993,27 +348101,33 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1038620u, new Vector3(-477.68372f, 5.0817194f, 19.21106f), 957); + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.Interact, 1038620u, new Vector3(-477.68372f, 5.0817194f, 19.21106f), 957); obj123.Steps = list182; reference141 = obj123; - ref QuestSequence reference142 = ref span66[2]; + num++; + ref QuestSequence reference142 = ref span180[num]; QuestSequence obj124 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - Span span67 = CollectionsMarshal.AsSpan(list183); - span67[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 957) + index2 = 2; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span183[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 957) { StopDistance = 5f, Aetheryte = EAetheryteLocation.ThavnairGreatWork }; - span67[1] = new QuestStep(EInteractionType.Interact, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957); + num2++; + span183[num2] = new QuestStep(EInteractionType.Interact, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957); obj124.Steps = list183; reference142 = obj124; - ref QuestSequence reference143 = ref span66[3]; + num++; + ref QuestSequence reference143 = ref span180[num]; QuestSequence obj125 = new QuestSequence { Sequence = 3 @@ -287021,35 +348135,43 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1038635u, new Vector3(-487.1443f, 49.161343f, 153.42944f), 957); + Span span184 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + span184[index2] = new QuestStep(EInteractionType.Interact, 1038635u, new Vector3(-487.1443f, 49.161343f, 153.42944f), 957); obj125.Steps = list184; reference143 = obj125; - ref QuestSequence reference144 = ref span66[4]; + num++; + ref QuestSequence reference144 = ref span180[num]; QuestSequence obj126 = new QuestSequence { Sequence = 4 }; - num2 = 4; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - Span span68 = CollectionsMarshal.AsSpan(list185); - span68[0] = new QuestStep(EInteractionType.Interact, 1038636u, new Vector3(-485.70996f, 49.103825f, 152.91064f), 957) + index2 = 4; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span185[num2] = new QuestStep(EInteractionType.Interact, 1038636u, new Vector3(-485.70996f, 49.103825f, 152.91064f), 957) { StopDistance = 5f }; - span68[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038636u, new Vector3(-425.414f, 38.415024f, 160.1206f), 957) + num2++; + span185[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038636u, new Vector3(-425.414f, 38.415024f, 160.1206f), 957) { StopDistance = 4f }; - span68[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-436.3368f, 38.647118f, 166.13683f), 957); - span68[3] = new QuestStep(EInteractionType.WalkTo, 1038636u, new Vector3(-425.414f, 38.415024f, 160.1206f), 957) + num2++; + span185[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-436.3368f, 38.647118f, 166.13683f), 957); + num2++; + span185[num2] = new QuestStep(EInteractionType.WalkTo, 1038636u, new Vector3(-425.414f, 38.415024f, 160.1206f), 957) { StopDistance = 4f, DelaySecondsAtStart = 2f }; obj126.Steps = list185; reference144 = obj126; - ref QuestSequence reference145 = ref span66[5]; + num++; + ref QuestSequence reference145 = ref span180[num]; QuestSequence obj127 = new QuestSequence { Sequence = 5 @@ -287057,52 +348179,62 @@ public static class AssemblyQuestLoader num2 = 4; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span69 = CollectionsMarshal.AsSpan(list186); - span69[0] = new QuestStep(EInteractionType.Interact, 1041219u, new Vector3(-425.43683f, 38.413155f, 160.11292f), 957) + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.Interact, 1041219u, new Vector3(-425.43683f, 38.413155f, 160.11292f), 957) { StopDistance = 5f }; - span69[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041219u, new Vector3(-419.6078f, 43.950115f, 87.3025f), 957) + index2++; + span186[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041219u, new Vector3(-419.6078f, 43.950115f, 87.3025f), 957) { StopDistance = 4f }; - span69[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-430.35034f, 46.160213f, 93.2392f), 957); - span69[3] = new QuestStep(EInteractionType.WalkTo, 1041220u, new Vector3(-419.60785f, 43.9499f, 87.296875f), 957) + index2++; + span186[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-430.35034f, 46.160213f, 93.2392f), 957); + index2++; + span186[index2] = new QuestStep(EInteractionType.WalkTo, 1041220u, new Vector3(-419.60785f, 43.9499f, 87.296875f), 957) { StopDistance = 4f, DelaySecondsAtStart = 2f }; obj127.Steps = list186; reference145 = obj127; - ref QuestSequence reference146 = ref span66[6]; + num++; + ref QuestSequence reference146 = ref span180[num]; QuestSequence obj128 = new QuestSequence { Sequence = 6 }; - num2 = 4; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - Span span70 = CollectionsMarshal.AsSpan(list187); - span70[0] = new QuestStep(EInteractionType.Interact, 1041220u, new Vector3(-419.60785f, 43.9499f, 87.296875f), 957) + index2 = 4; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.Interact, 1041220u, new Vector3(-419.60785f, 43.9499f, 87.296875f), 957) { StopDistance = 5f }; - span70[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041220u, new Vector3(-444.7032f, 49.551f, 97.1969f), 957) + num2++; + span187[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041220u, new Vector3(-444.7032f, 49.551f, 97.1969f), 957) { StopDistance = 4f }; - span70[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-433.19608f, 46.94587f, 93.295135f), 957) + num2++; + span187[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-433.19608f, 46.94587f, 93.295135f), 957) { StopDistance = 0.35f }; - span70[3] = new QuestStep(EInteractionType.WalkTo, 1041221u, new Vector3(-444.72424f, 49.55681f, 97.18469f), 957) + num2++; + span187[num2] = new QuestStep(EInteractionType.WalkTo, 1041221u, new Vector3(-444.72424f, 49.55681f, 97.18469f), 957) { StopDistance = 4f, DelaySecondsAtStart = 2f }; obj128.Steps = list187; reference146 = obj128; - ref QuestSequence reference147 = ref span66[7]; + num++; + ref QuestSequence reference147 = ref span180[num]; QuestSequence obj129 = new QuestSequence { Sequence = 7 @@ -287110,38 +348242,46 @@ public static class AssemblyQuestLoader num2 = 4; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span71 = CollectionsMarshal.AsSpan(list188); - span71[0] = new QuestStep(EInteractionType.Interact, 1041221u, new Vector3(-444.72424f, 49.55681f, 97.18469f), 957) + Span span188 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span188[index2] = new QuestStep(EInteractionType.Interact, 1041221u, new Vector3(-444.72424f, 49.55681f, 97.18469f), 957) { StopDistance = 5f }; - span71[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041221u, new Vector3(-484.5909f, 54.18516f, 128.3601f), 957) + index2++; + span188[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041221u, new Vector3(-484.5909f, 54.18516f, 128.3601f), 957) { StopDistance = 4f }; - span71[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-472.65085f, 53.779083f, 124.34451f), 957); - span71[3] = new QuestStep(EInteractionType.WalkTo, 1038637u, new Vector3(-484.61133f, 54.187614f, 128.34363f), 957) + index2++; + span188[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-472.65085f, 53.779083f, 124.34451f), 957); + index2++; + span188[index2] = new QuestStep(EInteractionType.WalkTo, 1038637u, new Vector3(-484.61133f, 54.187614f, 128.34363f), 957) { StopDistance = 4f, DelaySecondsAtStart = 2f }; obj129.Steps = list188; reference147 = obj129; - ref QuestSequence reference148 = ref span66[8]; + num++; + ref QuestSequence reference148 = ref span180[num]; QuestSequence obj130 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1038637u, new Vector3(-484.61133f, 54.187614f, 128.34363f), 957) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.Interact, 1038637u, new Vector3(-484.61133f, 54.187614f, 128.34363f), 957) { StopDistance = 5f }; obj130.Steps = list189; reference148 = obj130; - ref QuestSequence reference149 = ref span66[9]; + num++; + ref QuestSequence reference149 = ref span180[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -287149,7 +348289,9 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038635u, new Vector3(-487.1443f, 49.161343f, 153.42944f), 957); + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038635u, new Vector3(-487.1443f, 49.161343f, 153.42944f), 957); obj131.Steps = list190; reference149 = obj131; questRoot19.QuestSequence = list180; @@ -287159,24 +348301,30 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "liza"; + Span span191 = CollectionsMarshal.AsSpan(list191); + index = 0; + span191[index] = "liza"; questRoot20.Author = list191; - num = 7; - List list192 = new List(num); - CollectionsMarshal.SetCount(list192, num); - Span span72 = CollectionsMarshal.AsSpan(list192); - ref QuestSequence reference150 = ref span72[0]; + index = 7; + List list192 = new List(index); + CollectionsMarshal.SetCount(list192, index); + Span span192 = CollectionsMarshal.AsSpan(list192); + num = 0; + ref QuestSequence reference150 = ref span192[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038635u, new Vector3(-487.1443f, 49.161343f, 153.42944f), 957); + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038635u, new Vector3(-487.1443f, 49.161343f, 153.42944f), 957); obj132.Steps = list193; reference150 = obj132; - ref QuestSequence reference151 = ref span72[1]; + num++; + ref QuestSequence reference151 = ref span192[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -287184,31 +348332,39 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list194)[0]; + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + ref QuestStep reference152 = ref span194[index2]; QuestStep obj134 = new QuestStep(EInteractionType.Combat, 1038638u, new Vector3(-230.6402f, 27.619656f, 23.727722f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list195 = new List(num3); - CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = 14004u; + index3 = 1; + List list195 = new List(index3); + CollectionsMarshal.SetCount(list195, index3); + Span span195 = CollectionsMarshal.AsSpan(list195); + num3 = 0; + span195[num3] = 14004u; obj134.KillEnemyDataIds = list195; reference152 = obj134; obj133.Steps = list194; reference151 = obj133; - ref QuestSequence reference153 = ref span72[2]; + num++; + ref QuestSequence reference153 = ref span192[num]; QuestSequence obj135 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1038638u, new Vector3(-230.6402f, 27.619656f, 23.727722f), 957); + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.Interact, 1038638u, new Vector3(-230.6402f, 27.619656f, 23.727722f), 957); obj135.Steps = list196; reference153 = obj135; - ref QuestSequence reference154 = ref span72[3]; + num++; + ref QuestSequence reference154 = ref span192[num]; QuestSequence obj136 = new QuestSequence { Sequence = 3 @@ -287216,21 +348372,27 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1038639u, new Vector3(-15.030151f, 84.48873f, -71.000244f), 957); + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.Interact, 1038639u, new Vector3(-15.030151f, 84.48873f, -71.000244f), 957); obj136.Steps = list197; reference154 = obj136; - ref QuestSequence reference155 = ref span72[4]; + num++; + ref QuestSequence reference155 = ref span192[num]; QuestSequence obj137 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 2011954u, new Vector3(31.60144f, 90.22656f, -154.65027f), 957); + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span198 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span198[num2] = new QuestStep(EInteractionType.Interact, 2011954u, new Vector3(31.60144f, 90.22656f, -154.65027f), 957); obj137.Steps = list198; reference155 = obj137; - ref QuestSequence reference156 = ref span72[5]; + num++; + ref QuestSequence reference156 = ref span192[num]; QuestSequence obj138 = new QuestSequence { Sequence = 5 @@ -287238,18 +348400,23 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1038641u, new Vector3(34.62268f, 90.26942f, -159.80774f), 957); + Span span199 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span199[index2] = new QuestStep(EInteractionType.Interact, 1038641u, new Vector3(34.62268f, 90.26942f, -159.80774f), 957); obj138.Steps = list199; reference156 = obj138; - ref QuestSequence reference157 = ref span72[6]; + num++; + ref QuestSequence reference157 = ref span192[num]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; @@ -287262,13 +348429,16 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "liza"; + Span span201 = CollectionsMarshal.AsSpan(list201); + index = 0; + span201[index] = "liza"; questRoot21.Author = list201; - num = 8; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span73 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference158 = ref span73[0]; + index = 8; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + Span span202 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference158 = ref span202[num]; QuestSequence obj140 = new QuestSequence { Sequence = 0 @@ -287276,26 +348446,32 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957); + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span203[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957); obj140.Steps = list203; reference158 = obj140; - ref QuestSequence reference159 = ref span73[1]; + num++; + ref QuestSequence reference159 = ref span202[num]; QuestSequence obj141 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - Span span74 = CollectionsMarshal.AsSpan(list204); - span74[0] = new QuestStep(EInteractionType.AcceptQuest, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957) + index2 = 2; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957) { PickUpQuestId = new QuestId(4203) }; - span74[1] = new QuestStep(EInteractionType.Interact, 1038642u, new Vector3(-384.1764f, 12.2027235f, 28.244385f), 957); + num2++; + span204[num2] = new QuestStep(EInteractionType.Interact, 1038642u, new Vector3(-384.1764f, 12.2027235f, 28.244385f), 957); obj141.Steps = list204; reference159 = obj141; - ref QuestSequence reference160 = ref span73[2]; + num++; + ref QuestSequence reference160 = ref span202[num]; QuestSequence obj142 = new QuestSequence { Sequence = 2 @@ -287303,12 +348479,16 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list205)[0]; + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + ref QuestStep reference161 = ref span205[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1038642u, new Vector3(-384.1764f, 12.2027235f, 28.244385f), 957); num3 = 1; List list206 = new List(num3); CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = new DialogueChoice + Span span206 = CollectionsMarshal.AsSpan(list206); + index3 = 0; + span206[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA118_04374_Q1_000_041") @@ -287317,21 +348497,26 @@ public static class AssemblyQuestLoader reference161 = questStep19; obj142.Steps = list205; reference160 = obj142; - ref QuestSequence reference162 = ref span73[3]; + num++; + ref QuestSequence reference162 = ref span202[num]; QuestSequence obj143 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - Span span75 = CollectionsMarshal.AsSpan(list207); - span75[0] = new QuestStep(EInteractionType.Interact, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957); - span75[1] = new QuestStep(EInteractionType.Interact, 1037648u, new Vector3(-562.005f, 9.817466f, -585.1987f), 957); - span75[2] = new QuestStep(EInteractionType.Interact, 1037647u, new Vector3(-588.83044f, 9.81748f, -590.08167f), 957); + index2 = 3; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + Span span207 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + span207[num2] = new QuestStep(EInteractionType.Interact, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957); + num2++; + span207[num2] = new QuestStep(EInteractionType.Interact, 1037648u, new Vector3(-562.005f, 9.817466f, -585.1987f), 957); + num2++; + span207[num2] = new QuestStep(EInteractionType.Interact, 1037647u, new Vector3(-588.83044f, 9.81748f, -590.08167f), 957); obj143.Steps = list207; reference162 = obj143; - ref QuestSequence reference163 = ref span73[4]; + num++; + ref QuestSequence reference163 = ref span202[num]; QuestSequence obj144 = new QuestSequence { Sequence = 4 @@ -287339,23 +348524,30 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1038645u, new Vector3(-549.24854f, 9.817465f, -563.04266f), 957); + Span span208 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span208[index2] = new QuestStep(EInteractionType.Interact, 1038645u, new Vector3(-549.24854f, 9.817465f, -563.04266f), 957); obj144.Steps = list208; reference163 = obj144; - ref QuestSequence reference164 = ref span73[5]; + num++; + ref QuestSequence reference164 = ref span202[num]; QuestSequence obj145 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list209)[0]; + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + Span span209 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + ref QuestStep reference165 = ref span209[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1038648u, new Vector3(-557.641f, 9.672808f, -555.04694f), 957); - num3 = 1; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice + index3 = 1; + List list210 = new List(index3); + CollectionsMarshal.SetCount(list210, index3); + Span span210 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span210[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA118_04374_Q2_000_141") @@ -287364,7 +348556,8 @@ public static class AssemblyQuestLoader reference165 = questStep20; obj145.Steps = list209; reference164 = obj145; - ref QuestSequence reference166 = ref span73[6]; + num++; + ref QuestSequence reference166 = ref span202[num]; QuestSequence obj146 = new QuestSequence { Sequence = 6 @@ -287372,21 +348565,26 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-103.68971f, 88.84356f, -608.6588f), 957) + Span span211 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span211[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-103.68971f, 88.84356f, -608.6588f), 957) { StopDistance = 0.25f }; obj146.Steps = list211; reference166 = obj146; - ref QuestSequence reference167 = ref span73[7]; + num++; + ref QuestSequence reference167 = ref span202[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037649u, new Vector3(-92.97333f, 89.5583f, -642.3591f), 957); + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span212[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037649u, new Vector3(-92.97333f, 89.5583f, -642.3591f), 957); obj147.Steps = list212; reference167 = obj147; questRoot21.QuestSequence = list202; @@ -287396,13 +348594,16 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - CollectionsMarshal.AsSpan(list213)[0] = "liza"; + Span span213 = CollectionsMarshal.AsSpan(list213); + index = 0; + span213[index] = "liza"; questRoot22.Author = list213; - num = 5; - List list214 = new List(num); - CollectionsMarshal.SetCount(list214, num); - Span span76 = CollectionsMarshal.AsSpan(list214); - ref QuestSequence reference168 = ref span76[0]; + index = 5; + List list214 = new List(index); + CollectionsMarshal.SetCount(list214, index); + Span span214 = CollectionsMarshal.AsSpan(list214); + num = 0; + ref QuestSequence reference168 = ref span214[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 @@ -287410,32 +348611,40 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037649u, new Vector3(-92.97333f, 89.5583f, -642.3591f), 957); + Span span215 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span215[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037649u, new Vector3(-92.97333f, 89.5583f, -642.3591f), 957); obj148.Steps = list215; reference168 = obj148; - ref QuestSequence reference169 = ref span76[1]; + num++; + ref QuestSequence reference169 = ref span214[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - Span span77 = CollectionsMarshal.AsSpan(list216); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.02301f, 95.24942f, -697.3925f), 957); - span77[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-78.47051f, 99.96379f, -711.17303f), 957); - span77[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011991u, new Vector3(-49.271423f, 94.0719f, -710.7805f), 957) + index2 = 4; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + Span span216 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span216[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.02301f, 95.24942f, -697.3925f), 957); + num2++; + span216[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-78.47051f, 99.96379f, -711.17303f), 957); + num2++; + span216[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011991u, new Vector3(-49.271423f, 94.0719f, -710.7805f), 957) { DisableNavmesh = true, AetherCurrentId = 2818330u }; - span77[3] = new QuestStep(EInteractionType.Interact, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957) + num2++; + span216[num2] = new QuestStep(EInteractionType.Interact, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj149.Steps = list216; reference169 = obj149; - ref QuestSequence reference170 = ref span76[2]; + num++; + ref QuestSequence reference170 = ref span214[num]; QuestSequence obj150 = new QuestSequence { Sequence = 2 @@ -287443,12 +348652,16 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - ref QuestStep reference171 = ref CollectionsMarshal.AsSpan(list217)[0]; + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + ref QuestStep reference171 = ref span217[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1038651u, new Vector3(-699.67194f, -0.06901036f, -565.0569f), 957); num3 = 1; List list218 = new List(num3); CollectionsMarshal.SetCount(list218, num3); - CollectionsMarshal.AsSpan(list218)[0] = new DialogueChoice + Span span218 = CollectionsMarshal.AsSpan(list218); + index3 = 0; + span218[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA119_04375_Q1_000_056") @@ -287457,21 +348670,25 @@ public static class AssemblyQuestLoader reference171 = questStep21; obj150.Steps = list217; reference170 = obj150; - ref QuestSequence reference172 = ref span76[3]; + num++; + ref QuestSequence reference172 = ref span214[num]; QuestSequence obj151 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.Interact, 1038652u, new Vector3(-704.09705f, -0.090369135f, -562.4323f), 957) + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + Span span219 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span219[num2] = new QuestStep(EInteractionType.Interact, 1038652u, new Vector3(-704.09705f, -0.090369135f, -562.4323f), 957) { StopDistance = 6f }; obj151.Steps = list219; reference172 = obj151; - ref QuestSequence reference173 = ref span76[4]; + num++; + ref QuestSequence reference173 = ref span214[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue @@ -287479,7 +348696,9 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038653u, new Vector3(-492.0577f, 4.5676737f, 17.532532f), 957) + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span220[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038653u, new Vector3(-492.0577f, 4.5676737f, 17.532532f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; @@ -287492,24 +348711,30 @@ public static class AssemblyQuestLoader num = 1; List list221 = new List(num); CollectionsMarshal.SetCount(list221, num); - CollectionsMarshal.AsSpan(list221)[0] = "liza"; + Span span221 = CollectionsMarshal.AsSpan(list221); + index = 0; + span221[index] = "liza"; questRoot23.Author = list221; - num = 4; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - Span span78 = CollectionsMarshal.AsSpan(list222); - ref QuestSequence reference174 = ref span78[0]; + index = 4; + List list222 = new List(index); + CollectionsMarshal.SetCount(list222, index); + Span span222 = CollectionsMarshal.AsSpan(list222); + num = 0; + ref QuestSequence reference174 = ref span222[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038653u, new Vector3(-492.0577f, 4.5676737f, 17.532532f), 957); + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + Span span223 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span223[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038653u, new Vector3(-492.0577f, 4.5676737f, 17.532532f), 957); obj153.Steps = list223; reference174 = obj153; - ref QuestSequence reference175 = ref span78[1]; + num++; + ref QuestSequence reference175 = ref span222[num]; QuestSequence obj154 = new QuestSequence { Sequence = 1 @@ -287517,21 +348742,27 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1038656u, new Vector3(203.96729f, 60.34319f, -595.8496f), 957); + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new QuestStep(EInteractionType.Interact, 1038656u, new Vector3(203.96729f, 60.34319f, -595.8496f), 957); obj154.Steps = list224; reference175 = obj154; - ref QuestSequence reference176 = ref span78[2]; + num++; + ref QuestSequence reference176 = ref span222[num]; QuestSequence obj155 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1038657u, new Vector3(201.98364f, 60.34776f, -594.0185f), 957); + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.Interact, 1038657u, new Vector3(201.98364f, 60.34776f, -594.0185f), 957); obj155.Steps = list225; reference176 = obj155; - ref QuestSequence reference177 = ref span78[3]; + num++; + ref QuestSequence reference177 = ref span222[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -287539,8 +348770,9 @@ public static class AssemblyQuestLoader num2 = 2; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span79 = CollectionsMarshal.AsSpan(list226); - span79[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span226[index2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -287550,7 +348782,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1038589u, new Vector3(4.0740967f, 1.9073486E-06f, 2.029419f), 987); + index2++; + span226[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038589u, new Vector3(4.0740967f, 1.9073486E-06f, 2.029419f), 987); obj156.Steps = list226; reference177 = obj156; questRoot23.QuestSequence = list222; @@ -287560,27 +348793,33 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - CollectionsMarshal.AsSpan(list227)[0] = "liza"; + Span span227 = CollectionsMarshal.AsSpan(list227); + index = 0; + span227[index] = "liza"; questRoot24.Author = list227; - num = 6; - List list228 = new List(num); - CollectionsMarshal.SetCount(list228, num); - Span span80 = CollectionsMarshal.AsSpan(list228); - ref QuestSequence reference178 = ref span80[0]; + index = 6; + List list228 = new List(index); + CollectionsMarshal.SetCount(list228, index); + Span span228 = CollectionsMarshal.AsSpan(list228); + num = 0; + ref QuestSequence reference178 = ref span228[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040291u, new Vector3(-1.9379272f, 1.9073486E-06f, 1.5715942f), 987) + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + Span span229 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span229[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040291u, new Vector3(-1.9379272f, 1.9073486E-06f, 1.5715942f), 987) { StopDistance = 5f }; obj157.Steps = list229; reference178 = obj157; - ref QuestSequence reference179 = ref span80[1]; + num++; + ref QuestSequence reference179 = ref span228[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -287588,24 +348827,30 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957) + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span230[index2] = new QuestStep(EInteractionType.Interact, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj158.Steps = list230; reference179 = obj158; - ref QuestSequence reference180 = ref span80[2]; + num++; + ref QuestSequence reference180 = ref span228[num]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 2011956u, new Vector3(-632.04395f, -0.015319824f, -659.6018f), 957); + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.Interact, 2011956u, new Vector3(-632.04395f, -0.015319824f, -659.6018f), 957); obj159.Steps = list231; reference180 = obj159; - ref QuestSequence reference181 = ref span80[3]; + num++; + ref QuestSequence reference181 = ref span228[num]; QuestSequence obj160 = new QuestSequence { Sequence = 3 @@ -287613,7 +348858,9 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Duty, null, null, 957) + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span232[index2] = new QuestStep(EInteractionType.Duty, null, null, 957) { DutyOptions = new DutyOptions { @@ -287623,19 +348870,23 @@ public static class AssemblyQuestLoader }; obj160.Steps = list232; reference181 = obj160; - span80[4] = new QuestSequence + num++; + span228[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference182 = ref span80[5]; + num++; + ref QuestSequence reference182 = ref span228[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040252u, new Vector3(-568.719f, 9.817484f, -581.323f), 957); + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + Span span233 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span233[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040252u, new Vector3(-568.719f, 9.817484f, -581.323f), 957); obj161.Steps = list233; reference182 = obj161; questRoot24.QuestSequence = list228; @@ -287645,13 +348896,16 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "liza"; + Span span234 = CollectionsMarshal.AsSpan(list234); + index = 0; + span234[index] = "liza"; questRoot25.Author = list234; - num = 8; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span81 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference183 = ref span81[0]; + index = 8; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + Span span235 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference183 = ref span235[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -287659,21 +348913,27 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040252u, new Vector3(-568.719f, 9.817484f, -581.323f), 957); + Span span236 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span236[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040252u, new Vector3(-568.719f, 9.817484f, -581.323f), 957); obj162.Steps = list236; reference183 = obj162; - ref QuestSequence reference184 = ref span81[1]; + num++; + ref QuestSequence reference184 = ref span235[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1040283u, new Vector3(210.31506f, 60.712387f, -600.76294f), 957); + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + Span span237 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span237[num2] = new QuestStep(EInteractionType.Interact, 1040283u, new Vector3(210.31506f, 60.712387f, -600.76294f), 957); obj163.Steps = list237; reference184 = obj163; - ref QuestSequence reference185 = ref span81[2]; + num++; + ref QuestSequence reference185 = ref span235[num]; QuestSequence obj164 = new QuestSequence { Sequence = 2 @@ -287681,29 +348941,35 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1040255u, new Vector3(57.26709f, -27.000013f, 177.5387f), 963) + Span span238 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span238[index2] = new QuestStep(EInteractionType.Interact, 1040255u, new Vector3(57.26709f, -27.000013f, 177.5387f), 963) { StopDistance = 5f }; obj164.Steps = list238; reference185 = obj164; - ref QuestSequence reference186 = ref span81[3]; + num++; + ref QuestSequence reference186 = ref span235[num]; QuestSequence obj165 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - Span span82 = CollectionsMarshal.AsSpan(list239); - span82[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + index2 = 2; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + Span span239 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span239[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanAlzadaalsPeace }; - span82[1] = new QuestStep(EInteractionType.Interact, 1040256u, new Vector3(-4.135254f, -1.9999973f, 85.40466f), 963); + num2++; + span239[num2] = new QuestStep(EInteractionType.Interact, 1040256u, new Vector3(-4.135254f, -1.9999973f, 85.40466f), 963); obj165.Steps = list239; reference186 = obj165; - ref QuestSequence reference187 = ref span81[4]; + num++; + ref QuestSequence reference187 = ref span235[num]; QuestSequence obj166 = new QuestSequence { Sequence = 4 @@ -287711,21 +348977,27 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1040257u, new Vector3(-99.3515f, 20f, 110.52112f), 963); + Span span240 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span240[index2] = new QuestStep(EInteractionType.Interact, 1040257u, new Vector3(-99.3515f, 20f, 110.52112f), 963); obj166.Steps = list240; reference187 = obj166; - ref QuestSequence reference188 = ref span81[5]; + num++; + ref QuestSequence reference188 = ref span235[num]; QuestSequence obj167 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Interact, 1040258u, new Vector3(-149.43164f, 27.999998f, 171.12988f), 963); + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + Span span241 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span241[num2] = new QuestStep(EInteractionType.Interact, 1040258u, new Vector3(-149.43164f, 27.999998f, 171.12988f), 963); obj167.Steps = list241; reference188 = obj167; - ref QuestSequence reference189 = ref span81[6]; + num++; + ref QuestSequence reference189 = ref span235[num]; QuestSequence obj168 = new QuestSequence { Sequence = 6 @@ -287733,27 +349005,33 @@ public static class AssemblyQuestLoader num2 = 3; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span83 = CollectionsMarshal.AsSpan(list242); - span83[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + Span span242 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + span242[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanAirship }; - span83[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + index2++; + span242[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanMeghaduta }; - span83[2] = new QuestStep(EInteractionType.Interact, 1040259u, new Vector3(-341.93945f, 55f, -70.603516f), 963); + index2++; + span242[index2] = new QuestStep(EInteractionType.Interact, 1040259u, new Vector3(-341.93945f, 55f, -70.603516f), 963); obj168.Steps = list242; reference189 = obj168; - ref QuestSequence reference190 = ref span81[7]; + num++; + ref QuestSequence reference190 = ref span235[num]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040260u, new Vector3(-377.27936f, 45.00252f, -28.610718f), 963); + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + Span span243 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span243[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040260u, new Vector3(-377.27936f, 45.00252f, -28.610718f), 963); obj169.Steps = list243; reference190 = obj169; questRoot25.QuestSequence = list235; @@ -287763,13 +349041,16 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - CollectionsMarshal.AsSpan(list244)[0] = "liza"; + Span span244 = CollectionsMarshal.AsSpan(list244); + index = 0; + span244[index] = "liza"; questRoot26.Author = list244; - num = 7; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - Span span84 = CollectionsMarshal.AsSpan(list245); - ref QuestSequence reference191 = ref span84[0]; + index = 7; + List list245 = new List(index); + CollectionsMarshal.SetCount(list245, index); + Span span245 = CollectionsMarshal.AsSpan(list245); + num = 0; + ref QuestSequence reference191 = ref span245[num]; QuestSequence obj170 = new QuestSequence { Sequence = 0 @@ -287777,21 +349058,27 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040261u, new Vector3(-377.61505f, 45.002518f, -29.922974f), 963); + Span span246 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span246[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040261u, new Vector3(-377.61505f, 45.002518f, -29.922974f), 963); obj170.Steps = list246; reference191 = obj170; - ref QuestSequence reference192 = ref span84[1]; + num++; + ref QuestSequence reference192 = ref span245[num]; QuestSequence obj171 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1040262u, new Vector3(-237.01843f, 36f, 58.976074f), 963); + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + Span span247 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span247[num2] = new QuestStep(EInteractionType.Interact, 1040262u, new Vector3(-237.01843f, 36f, 58.976074f), 963); obj171.Steps = list247; reference192 = obj171; - ref QuestSequence reference193 = ref span84[2]; + num++; + ref QuestSequence reference193 = ref span245[num]; QuestSequence obj172 = new QuestSequence { Sequence = 2 @@ -287799,26 +349086,32 @@ public static class AssemblyQuestLoader num2 = 2; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span85 = CollectionsMarshal.AsSpan(list248); - span85[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + Span span248 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span248[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanRuveydahFibers }; - span85[1] = new QuestStep(EInteractionType.Interact, 1040264u, new Vector3(-106.49274f, 30.999998f, -14.54187f), 963); + index2++; + span248[index2] = new QuestStep(EInteractionType.Interact, 1040264u, new Vector3(-106.49274f, 30.999998f, -14.54187f), 963); obj172.Steps = list248; reference193 = obj172; - ref QuestSequence reference194 = ref span84[3]; + num++; + ref QuestSequence reference194 = ref span245[num]; QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1040266u, new Vector3(3.982544f, -2.9207662E-05f, 0.99176025f), 963); + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + Span span249 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span249[num2] = new QuestStep(EInteractionType.Interact, 1040266u, new Vector3(3.982544f, -2.9207662E-05f, 0.99176025f), 963); obj173.Steps = list249; reference194 = obj173; - ref QuestSequence reference195 = ref span84[4]; + num++; + ref QuestSequence reference195 = ref span245[num]; QuestSequence obj174 = new QuestSequence { Sequence = 4 @@ -287826,23 +349119,28 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1040268u, new Vector3(87.5105f, 1.8631812f, -121.41614f), 963); + Span span250 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span250[index2] = new QuestStep(EInteractionType.Interact, 1040268u, new Vector3(87.5105f, 1.8631812f, -121.41614f), 963); obj174.Steps = list250; reference195 = obj174; - ref QuestSequence reference196 = ref span84[5]; + num++; + ref QuestSequence reference196 = ref span245[num]; QuestSequence obj175 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - Span span86 = CollectionsMarshal.AsSpan(list251); - span86[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + index2 = 2; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + Span span251 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span251[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanHighCrucible }; - span86[1] = new QuestStep(EInteractionType.Interact, 1040276u, new Vector3(-99.076904f, 3.9334679f, 1.3884888f), 962) + num2++; + span251[num2] = new QuestStep(EInteractionType.Interact, 1040276u, new Vector3(-99.076904f, 3.9334679f, 1.3884888f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -287853,7 +349151,8 @@ public static class AssemblyQuestLoader }; obj175.Steps = list251; reference196 = obj175; - ref QuestSequence reference197 = ref span84[6]; + num++; + ref QuestSequence reference197 = ref span245[num]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue @@ -287861,15 +349160,19 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list252)[0]; + Span span252 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + ref QuestStep reference198 = ref span252[index2]; QuestStep obj177 = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 6f }; - num3 = 1; - List list253 = new List(num3); - CollectionsMarshal.SetCount(list253, num3); - CollectionsMarshal.AsSpan(list253)[0] = new DialogueChoice + index3 = 1; + List list253 = new List(index3); + CollectionsMarshal.SetCount(list253, index3); + Span span253 = CollectionsMarshal.AsSpan(list253); + num3 = 0; + span253[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA123_04379_Q1_000_163") @@ -287885,24 +349188,30 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - CollectionsMarshal.AsSpan(list254)[0] = "liza"; + Span span254 = CollectionsMarshal.AsSpan(list254); + index = 0; + span254[index] = "liza"; questRoot27.Author = list254; - num = 7; - List list255 = new List(num); - CollectionsMarshal.SetCount(list255, num); - Span span87 = CollectionsMarshal.AsSpan(list255); - ref QuestSequence reference199 = ref span87[0]; + index = 7; + List list255 = new List(index); + CollectionsMarshal.SetCount(list255, index); + Span span255 = CollectionsMarshal.AsSpan(list255); + num = 0; + ref QuestSequence reference199 = ref span255[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038769u, new Vector3(-88.700745f, 3.8989394f, 0.8086548f), 962); + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038769u, new Vector3(-88.700745f, 3.8989394f, 0.8086548f), 962); obj178.Steps = list256; reference199 = obj178; - ref QuestSequence reference200 = ref span87[1]; + num++; + ref QuestSequence reference200 = ref span255[num]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -287910,18 +349219,23 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1038771u, new Vector3(-107.49988f, 3.8006456f, 26.29126f), 962); + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = new QuestStep(EInteractionType.Interact, 1038771u, new Vector3(-107.49988f, 3.8006456f, 26.29126f), 962); obj179.Steps = list257; reference200 = obj179; - ref QuestSequence reference201 = ref span87[2]; + num++; + ref QuestSequence reference201 = ref span255[num]; QuestSequence obj180 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1038773u, new Vector3(-280.232f, 20f, -67.36859f), 962) + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span258[num2] = new QuestStep(EInteractionType.Interact, 1038773u, new Vector3(-280.232f, 20f, -67.36859f), 962) { AethernetShortcut = new AethernetShortcut { @@ -287931,7 +349245,8 @@ public static class AssemblyQuestLoader }; obj180.Steps = list258; reference201 = obj180; - ref QuestSequence reference202 = ref span87[3]; + num++; + ref QuestSequence reference202 = ref span255[num]; QuestSequence obj181 = new QuestSequence { Sequence = 3 @@ -287939,24 +349254,30 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1038776u, new Vector3(-310.78058f, 20.0375f, -92.82062f), 962); + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span259[index2] = new QuestStep(EInteractionType.Interact, 1038776u, new Vector3(-310.78058f, 20.0375f, -92.82062f), 962); obj181.Steps = list259; reference202 = obj181; - ref QuestSequence reference203 = ref span87[4]; + num++; + ref QuestSequence reference203 = ref span255[num]; QuestSequence obj182 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1038500u, new Vector3(-357.83936f, 21.84602f, -91.32526f), 962) + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span260[num2] = new QuestStep(EInteractionType.Interact, 1038500u, new Vector3(-357.83936f, 21.84602f, -91.32526f), 962) { StopDistance = 5f }; obj182.Steps = list260; reference203 = obj182; - ref QuestSequence reference204 = ref span87[5]; + num++; + ref QuestSequence reference204 = ref span255[num]; QuestSequence obj183 = new QuestSequence { Sequence = 5 @@ -287964,18 +349285,23 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1038760u, new Vector3(-298.5733f, 22.423145f, -149.67578f), 962); + Span span261 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span261[index2] = new QuestStep(EInteractionType.Interact, 1038760u, new Vector3(-298.5733f, 22.423145f, -149.67578f), 962); obj183.Steps = list261; reference204 = obj183; - ref QuestSequence reference205 = ref span87[6]; + num++; + ref QuestSequence reference205 = ref span255[num]; QuestSequence obj184 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038780u, new Vector3(-394.91876f, 20.8f, -107.927124f), 962); + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038780u, new Vector3(-394.91876f, 20.8f, -107.927124f), 962); obj184.Steps = list262; reference205 = obj184; questRoot27.QuestSequence = list255; @@ -287985,13 +349311,16 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - CollectionsMarshal.AsSpan(list263)[0] = "liza"; + Span span263 = CollectionsMarshal.AsSpan(list263); + index = 0; + span263[index] = "liza"; questRoot28.Author = list263; - num = 4; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - Span span88 = CollectionsMarshal.AsSpan(list264); - ref QuestSequence reference206 = ref span88[0]; + index = 4; + List list264 = new List(index); + CollectionsMarshal.SetCount(list264, index); + Span span264 = CollectionsMarshal.AsSpan(list264); + num = 0; + ref QuestSequence reference206 = ref span264[num]; QuestSequence obj185 = new QuestSequence { Sequence = 0 @@ -287999,19 +349328,23 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038781u, new Vector3(-393.2403f, 20.8f, -105.760315f), 962); + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span265[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038781u, new Vector3(-393.2403f, 20.8f, -105.760315f), 962); obj185.Steps = list265; reference206 = obj185; - ref QuestSequence reference207 = ref span88[1]; + num++; + ref QuestSequence reference207 = ref span264[num]; QuestSequence obj186 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - Span span89 = CollectionsMarshal.AsSpan(list266); - span89[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + index2 = 2; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + Span span266 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span266[num2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987, AethernetShortcut = new AethernetShortcut @@ -288020,10 +349353,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - span89[1] = new QuestStep(EInteractionType.Interact, 1038784u, new Vector3(-0.22894287f, 1.9073486E-06f, -11.12384f), 987); + num2++; + span266[num2] = new QuestStep(EInteractionType.Interact, 1038784u, new Vector3(-0.22894287f, 1.9073486E-06f, -11.12384f), 987); obj186.Steps = list266; reference207 = obj186; - ref QuestSequence reference208 = ref span88[2]; + num++; + ref QuestSequence reference208 = ref span264[num]; QuestSequence obj187 = new QuestSequence { Sequence = 2 @@ -288031,7 +349366,9 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - ref QuestStep reference209 = ref CollectionsMarshal.AsSpan(list267)[0]; + Span span267 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + ref QuestStep reference209 = ref span267[index2]; QuestStep obj188 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa @@ -288039,7 +349376,9 @@ public static class AssemblyQuestLoader num3 = 1; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = new DialogueChoice + Span span268 = CollectionsMarshal.AsSpan(list268); + index3 = 0; + span268[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB102_04381_Q1_000_067") @@ -288048,15 +349387,18 @@ public static class AssemblyQuestLoader reference209 = obj188; obj187.Steps = list267; reference208 = obj187; - ref QuestSequence reference210 = ref span88[3]; + num++; + ref QuestSequence reference210 = ref span264[num]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038796u, new Vector3(745.9678f, 69.999954f, 525.2003f), 621) + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + Span span269 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span269[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038796u, new Vector3(745.9678f, 69.999954f, 525.2003f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter @@ -288070,13 +349412,16 @@ public static class AssemblyQuestLoader num = 1; List list270 = new List(num); CollectionsMarshal.SetCount(list270, num); - CollectionsMarshal.AsSpan(list270)[0] = "liza"; + Span span270 = CollectionsMarshal.AsSpan(list270); + index = 0; + span270[index] = "liza"; questRoot29.Author = list270; - num = 6; - List list271 = new List(num); - CollectionsMarshal.SetCount(list271, num); - Span span90 = CollectionsMarshal.AsSpan(list271); - ref QuestSequence reference211 = ref span90[0]; + index = 6; + List list271 = new List(index); + CollectionsMarshal.SetCount(list271, index); + Span span271 = CollectionsMarshal.AsSpan(list271); + num = 0; + ref QuestSequence reference211 = ref span271[num]; QuestSequence obj190 = new QuestSequence { Sequence = 0 @@ -288084,29 +349429,36 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038802u, new Vector3(746.63916f, 69.999954f, 523.39966f), 621) + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038802u, new Vector3(746.63916f, 69.999954f, 523.39966f), 621) { StopDistance = 5f }; obj190.Steps = list272; reference211 = obj190; - ref QuestSequence reference212 = ref span90[1]; + num++; + ref QuestSequence reference212 = ref span271[num]; QuestSequence obj191 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - ref QuestStep reference213 = ref CollectionsMarshal.AsSpan(list273)[0]; + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + ref QuestStep reference213 = ref span273[num2]; QuestStep obj192 = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621) { StopDistance = 7f }; - num3 = 1; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - CollectionsMarshal.AsSpan(list274)[0] = new DialogueChoice + index3 = 1; + List list274 = new List(index3); + CollectionsMarshal.SetCount(list274, index3); + Span span274 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + span274[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB103_04382_Q1_000_052") @@ -288115,7 +349467,8 @@ public static class AssemblyQuestLoader reference213 = obj192; obj191.Steps = list273; reference212 = obj191; - ref QuestSequence reference214 = ref span90[2]; + num++; + ref QuestSequence reference214 = ref span271[num]; QuestSequence obj193 = new QuestSequence { Sequence = 2 @@ -288123,19 +349476,23 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1038804u, new Vector3(251.81958f, 121.999985f, -360.586f), 737); + Span span275 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span275[index2] = new QuestStep(EInteractionType.Interact, 1038804u, new Vector3(251.81958f, 121.999985f, -360.586f), 737); obj193.Steps = list275; reference214 = obj193; - ref QuestSequence reference215 = ref span90[3]; + num++; + ref QuestSequence reference215 = ref span271[num]; QuestSequence obj194 = new QuestSequence { Sequence = 3 }; - num2 = 5; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - Span span91 = CollectionsMarshal.AsSpan(list276); - ref QuestStep reference216 = ref span91[0]; + index2 = 5; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + Span span276 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + ref QuestStep reference216 = ref span276[num2]; QuestStep obj195 = new QuestStep(EInteractionType.Interact, 1038811u, new Vector3(244.31213f, 122f, -362.96637f), 737) { StopDistance = 7f, @@ -288144,34 +349501,48 @@ public static class AssemblyQuestLoader num3 = 6; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - Span span92 = CollectionsMarshal.AsSpan(list277); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span277 = CollectionsMarshal.AsSpan(list277); + index3 = 0; + span277[index3] = null; + index3++; + span277[index3] = null; + index3++; + span277[index3] = null; + index3++; + span277[index3] = null; + index3++; + span277[index3] = null; + index3++; + span277[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj195.CompletionQuestVariablesFlags = list277; reference216 = obj195; - ref QuestStep reference217 = ref span91[1]; + num2++; + ref QuestStep reference217 = ref span276[num2]; QuestStep obj196 = new QuestStep(EInteractionType.Interact, 1038812u, new Vector3(245.77698f, 122f, -366.47595f), 737) { StopDistance = 7f, Comment = "Sicard" }; - num3 = 6; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - Span span93 = CollectionsMarshal.AsSpan(list278); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list278 = new List(index3); + CollectionsMarshal.SetCount(list278, index3); + Span span278 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span278[num3] = null; + num3++; + span278[num3] = null; + num3++; + span278[num3] = null; + num3++; + span278[num3] = null; + num3++; + span278[num3] = null; + num3++; + span278[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj196.CompletionQuestVariablesFlags = list278; reference217 = obj196; - ref QuestStep reference218 = ref span91[2]; + num2++; + ref QuestStep reference218 = ref span276[num2]; QuestStep obj197 = new QuestStep(EInteractionType.Interact, 1038813u, new Vector3(250.78198f, 122f, -366.84216f), 737) { StopDistance = 7f, @@ -288180,34 +349551,48 @@ public static class AssemblyQuestLoader num3 = 6; List list279 = new List(num3); CollectionsMarshal.SetCount(list279, num3); - Span span94 = CollectionsMarshal.AsSpan(list279); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span279 = CollectionsMarshal.AsSpan(list279); + index3 = 0; + span279[index3] = null; + index3++; + span279[index3] = null; + index3++; + span279[index3] = null; + index3++; + span279[index3] = null; + index3++; + span279[index3] = null; + index3++; + span279[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj197.CompletionQuestVariablesFlags = list279; reference218 = obj197; - ref QuestStep reference219 = ref span91[3]; + num2++; + ref QuestStep reference219 = ref span276[num2]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1038814u, new Vector3(251.23975f, 122f, -363.9124f), 737) { StopDistance = 7f, Comment = "Lucia" }; - num3 = 6; - List list280 = new List(num3); - CollectionsMarshal.SetCount(list280, num3); - Span span95 = CollectionsMarshal.AsSpan(list280); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list280 = new List(index3); + CollectionsMarshal.SetCount(list280, index3); + Span span280 = CollectionsMarshal.AsSpan(list280); + num3 = 0; + span280[num3] = null; + num3++; + span280[num3] = null; + num3++; + span280[num3] = null; + num3++; + span280[num3] = null; + num3++; + span280[num3] = null; + num3++; + span280[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj198.CompletionQuestVariablesFlags = list280; reference219 = obj198; - ref QuestStep reference220 = ref span91[4]; + num2++; + ref QuestStep reference220 = ref span276[num2]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1038815u, new Vector3(250.17163f, 122f, -352.34613f), 737) { StopDistance = 7f, @@ -288216,18 +349601,25 @@ public static class AssemblyQuestLoader num3 = 6; List list281 = new List(num3); CollectionsMarshal.SetCount(list281, num3); - Span span96 = CollectionsMarshal.AsSpan(list281); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span281 = CollectionsMarshal.AsSpan(list281); + index3 = 0; + span281[index3] = null; + index3++; + span281[index3] = null; + index3++; + span281[index3] = null; + index3++; + span281[index3] = null; + index3++; + span281[index3] = null; + index3++; + span281[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj199.CompletionQuestVariablesFlags = list281; reference220 = obj199; obj194.Steps = list276; reference215 = obj194; - ref QuestSequence reference221 = ref span90[4]; + num++; + ref QuestSequence reference221 = ref span271[num]; QuestSequence obj200 = new QuestSequence { Sequence = 4 @@ -288235,21 +349627,26 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1038816u, new Vector3(254.23047f, 122f, -364.9806f), 737) + Span span282 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span282[index2] = new QuestStep(EInteractionType.Interact, 1038816u, new Vector3(254.23047f, 122f, -364.9806f), 737) { StopDistance = 7f }; obj200.Steps = list282; reference221 = obj200; - ref QuestSequence reference222 = ref span90[5]; + num++; + ref QuestSequence reference222 = ref span271[num]; QuestSequence obj201 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038817u, new Vector3(756.31335f, 69.9999f, 534.3251f), 621) + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + Span span283 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span283[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038817u, new Vector3(756.31335f, 69.9999f, 534.3251f), 621) { StopDistance = 7f }; @@ -288262,13 +349659,16 @@ public static class AssemblyQuestLoader num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - CollectionsMarshal.AsSpan(list284)[0] = "liza"; + Span span284 = CollectionsMarshal.AsSpan(list284); + index = 0; + span284[index] = "liza"; questRoot30.Author = list284; - num = 8; - List list285 = new List(num); - CollectionsMarshal.SetCount(list285, num); - Span span97 = CollectionsMarshal.AsSpan(list285); - ref QuestSequence reference223 = ref span97[0]; + index = 8; + List list285 = new List(index); + CollectionsMarshal.SetCount(list285, index); + Span span285 = CollectionsMarshal.AsSpan(list285); + num = 0; + ref QuestSequence reference223 = ref span285[num]; QuestSequence obj202 = new QuestSequence { Sequence = 0 @@ -288276,40 +349676,49 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038824u, new Vector3(750.97266f, 69.99991f, 534.78296f), 621); + Span span286 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + span286[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038824u, new Vector3(750.97266f, 69.99991f, 534.78296f), 621); obj202.Steps = list286; reference223 = obj202; - ref QuestSequence reference224 = ref span97[1]; + num++; + ref QuestSequence reference224 = ref span285[num]; QuestSequence obj203 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - ref QuestStep reference225 = ref CollectionsMarshal.AsSpan(list287)[0]; + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + Span span287 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + ref QuestStep reference225 = ref span287[num2]; QuestStep obj204 = new QuestStep(EInteractionType.SinglePlayerDuty, 1038825u, new Vector3(742.5803f, 69.99999f, 539.6046f), 621) { Comment = "A Frosty Reception" }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 1; - List list288 = new List(num3); - CollectionsMarshal.SetCount(list288, num3); - CollectionsMarshal.AsSpan(list288)[0] = "(Thancred) How many enemies get pulled during the stealth section is random; if you pull multiple you can die here. Can probably be fixed by retrying on very easy."; + index3 = 1; + List list288 = new List(index3); + CollectionsMarshal.SetCount(list288, index3); + Span span288 = CollectionsMarshal.AsSpan(list288); + num3 = 0; + span288[num3] = "(Thancred) How many enemies get pulled during the stealth section is random; if you pull multiple you can die here. Can probably be fixed by retrying on very easy."; singlePlayerDutyOptions.Notes = list288; obj204.SinglePlayerDutyOptions = singlePlayerDutyOptions; num3 = 2; List list289 = new List(num3); CollectionsMarshal.SetCount(list289, num3); - Span span98 = CollectionsMarshal.AsSpan(list289); - span98[0] = new DialogueChoice + Span span289 = CollectionsMarshal.AsSpan(list289); + index3 = 0; + span289[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef(264u), Answer = new ExcelRef(267u) }; - span98[1] = new DialogueChoice + index3++; + span289[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef(268u) @@ -288318,11 +349727,13 @@ public static class AssemblyQuestLoader reference225 = obj204; obj203.Steps = list287; reference224 = obj203; - span97[2] = new QuestSequence + num++; + span285[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference226 = ref span97[3]; + num++; + ref QuestSequence reference226 = ref span285[num]; QuestSequence obj205 = new QuestSequence { Sequence = 3 @@ -288330,27 +349741,33 @@ public static class AssemblyQuestLoader num2 = 2; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - Span span99 = CollectionsMarshal.AsSpan(list290); - span99[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 958) + Span span290 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span290[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 958) { StopDistance = 7f, Aetheryte = EAetheryteLocation.GarlemaldCampBrokenGlass }; - span99[1] = new QuestStep(EInteractionType.Interact, 1038826u, new Vector3(-399.31335f, 22.03761f, 454.45935f), 958); + index2++; + span290[index2] = new QuestStep(EInteractionType.Interact, 1038826u, new Vector3(-399.31335f, 22.03761f, 454.45935f), 958); obj205.Steps = list290; reference226 = obj205; - ref QuestSequence reference227 = ref span97[4]; + num++; + ref QuestSequence reference227 = ref span285[num]; QuestSequence obj206 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.Interact, 1038836u, new Vector3(-439.9939f, 22.000002f, 497.79492f), 958); + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + Span span291 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span291[num2] = new QuestStep(EInteractionType.Interact, 1038836u, new Vector3(-439.9939f, 22.000002f, 497.79492f), 958); obj206.Steps = list291; reference227 = obj206; - ref QuestSequence reference228 = ref span97[5]; + num++; + ref QuestSequence reference228 = ref span285[num]; QuestSequence obj207 = new QuestSequence { Sequence = 5 @@ -288358,24 +349775,30 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 1038835u, new Vector3(-366.17078f, 22f, 514.4884f), 958); + Span span292 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span292[index2] = new QuestStep(EInteractionType.Interact, 1038835u, new Vector3(-366.17078f, 22f, 514.4884f), 958); obj207.Steps = list292; reference228 = obj207; - ref QuestSequence reference229 = ref span97[6]; + num++; + ref QuestSequence reference229 = ref span285[num]; QuestSequence obj208 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1038828u, new Vector3(-334.5846f, 23.803606f, 404.65393f), 958) + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + Span span293 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span293[num2] = new QuestStep(EInteractionType.Interact, 1038828u, new Vector3(-334.5846f, 23.803606f, 404.65393f), 958) { StopDistance = 7f }; obj208.Steps = list293; reference229 = obj208; - ref QuestSequence reference230 = ref span97[7]; + num++; + ref QuestSequence reference230 = ref span285[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -288383,7 +349806,9 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038837u, new Vector3(-353.41425f, 22.717295f, 435.62976f), 958) + Span span294 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span294[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038837u, new Vector3(-353.41425f, 22.717295f, 435.62976f), 958) { StopDistance = 5f }; @@ -288396,27 +349821,33 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "liza"; + Span span295 = CollectionsMarshal.AsSpan(list295); + index = 0; + span295[index] = "liza"; questRoot31.Author = list295; - num = 8; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - Span span100 = CollectionsMarshal.AsSpan(list296); - ref QuestSequence reference231 = ref span100[0]; + index = 8; + List list296 = new List(index); + CollectionsMarshal.SetCount(list296, index); + Span span296 = CollectionsMarshal.AsSpan(list296); + num = 0; + ref QuestSequence reference231 = ref span296[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038839u, new Vector3(-350.1488f, 22.738518f, 435.56873f), 958) + index2 = 1; + List list297 = new List(index2); + CollectionsMarshal.SetCount(list297, index2); + Span span297 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + span297[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038839u, new Vector3(-350.1488f, 22.738518f, 435.56873f), 958) { StopDistance = 7f }; obj210.Steps = list297; reference231 = obj210; - ref QuestSequence reference232 = ref span100[1]; + num++; + ref QuestSequence reference232 = ref span296[num]; QuestSequence obj211 = new QuestSequence { Sequence = 1 @@ -288424,43 +349855,52 @@ public static class AssemblyQuestLoader num2 = 4; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span101 = CollectionsMarshal.AsSpan(list298); - span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-210.6673f, 15.799101f, 451.78333f), 958); - span101[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012000u, new Vector3(-184.22223f, 31.937134f, 423.6056f), 958) + Span span298 = CollectionsMarshal.AsSpan(list298); + index2 = 0; + span298[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-210.6673f, 15.799101f, 451.78333f), 958); + index2++; + span298[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012000u, new Vector3(-184.22223f, 31.937134f, 423.6056f), 958) { StopDistance = 5f, DisableNavmesh = true, AetherCurrentId = 2818344u }; - span101[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-188.84349f, 20.31553f, 406.13293f), 958) + index2++; + span298[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-188.84349f, 20.31553f, 406.13293f), 958) { StopDistance = 1f, DisableNavmesh = true, Mount = true }; - span101[3] = new QuestStep(EInteractionType.Interact, 1038840u, new Vector3(-157.06122f, 18.316332f, 364.06494f), 958); + index2++; + span298[index2] = new QuestStep(EInteractionType.Interact, 1038840u, new Vector3(-157.06122f, 18.316332f, 364.06494f), 958); obj211.Steps = list298; reference232 = obj211; - ref QuestSequence reference233 = ref span100[2]; + num++; + ref QuestSequence reference233 = ref span296[num]; QuestSequence obj212 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - Span span102 = CollectionsMarshal.AsSpan(list299); - span102[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-135.94785f, 3.426586f, 360.1115f), 958) + index2 = 3; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + Span span299 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span299[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-135.94785f, 3.426586f, 360.1115f), 958) { StopDistance = 1f, DisableNavmesh = true, Mount = true }; - span102[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.166317f, -0.8113563f, 374.09103f), 958); - span102[2] = new QuestStep(EInteractionType.Interact, 2012076u, new Vector3(-31.265808f, -0.25946045f, 362.81372f), 958); + num2++; + span299[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.166317f, -0.8113563f, 374.09103f), 958); + num2++; + span299[num2] = new QuestStep(EInteractionType.Interact, 2012076u, new Vector3(-31.265808f, -0.25946045f, 362.81372f), 958); obj212.Steps = list299; reference233 = obj212; - ref QuestSequence reference234 = ref span100[3]; + num++; + ref QuestSequence reference234 = ref span296[num]; QuestSequence obj213 = new QuestSequence { Sequence = 3 @@ -288468,21 +349908,27 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 2012077u, new Vector3(36.942017f, -12.039368f, 362.2339f), 958); + Span span300 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span300[index2] = new QuestStep(EInteractionType.Interact, 2012077u, new Vector3(36.942017f, -12.039368f, 362.2339f), 958); obj213.Steps = list300; reference234 = obj213; - ref QuestSequence reference235 = ref span100[4]; + num++; + ref QuestSequence reference235 = ref span296[num]; QuestSequence obj214 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 1038843u, new Vector3(66.84973f, -14.344919f, 385.7328f), 958); + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + Span span301 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span301[num2] = new QuestStep(EInteractionType.Interact, 1038843u, new Vector3(66.84973f, -14.344919f, 385.7328f), 958); obj214.Steps = list301; reference235 = obj214; - ref QuestSequence reference236 = ref span100[5]; + num++; + ref QuestSequence reference236 = ref span296[num]; QuestSequence obj215 = new QuestSequence { Sequence = 5 @@ -288490,22 +349936,26 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 2012078u, new Vector3(117.81482f, -16.922302f, 390.46313f), 958) + Span span302 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span302[index2] = new QuestStep(EInteractionType.Interact, 2012078u, new Vector3(117.81482f, -16.922302f, 390.46313f), 958) { Comment = "Follow Girl in Green" }; obj215.Steps = list302; reference236 = obj215; - ref QuestSequence reference237 = ref span100[6]; + num++; + ref QuestSequence reference237 = ref span296[num]; QuestSequence obj216 = new QuestSequence { Sequence = 6 }; - num2 = 13; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - Span span103 = CollectionsMarshal.AsSpan(list303); - ref QuestStep reference238 = ref span103[0]; + index2 = 13; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + Span span303 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + ref QuestStep reference238 = ref span303[num2]; QuestStep obj217 = new QuestStep(EInteractionType.Interact, 2012078u, new Vector3(117.81482f, -16.922302f, 390.46313f), 958) { Comment = "retry point", @@ -288517,96 +349967,111 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list304 = new List(num3); - CollectionsMarshal.SetCount(list304, num3); - CollectionsMarshal.AsSpan(list304)[0] = new DialogueChoice + index3 = 1; + List list304 = new List(index3); + CollectionsMarshal.SetCount(list304, index3); + Span span304 = CollectionsMarshal.AsSpan(list304); + num3 = 0; + span304[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB105_04384_Q1_000_116") }; obj217.DialogueChoices = list304; reference238 = obj217; - span103[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(156.66682f, -18.078814f, 361.58972f), 958) + num2++; + span303[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(156.66682f, -18.078814f, 361.58972f), 958) { StopDistance = 100f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span103[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(204.82344f, -19.113703f, 373.52936f), 958) + num2++; + span303[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(204.82344f, -19.113703f, 373.52936f), 958) { DelaySecondsAtStart = 1f, Mount = false, Sprint = false }; - span103[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(232.28406f, -16.777779f, 339.1168f), 958) + num2++; + span303[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(232.28406f, -16.777779f, 339.1168f), 958) { StopDistance = 100f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span103[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(272.79572f, -13.174152f, 317.53406f), 958) + num2++; + span303[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(272.79572f, -13.174152f, 317.53406f), 958) { DelaySecondsAtStart = 8f, Mount = false, Sprint = false }; - span103[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(287.9112f, -11.811615f, 292.6589f), 958) + num2++; + span303[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(287.9112f, -11.811615f, 292.6589f), 958) { StopDistance = 100f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span103[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(323.9364f, -10.539692f, 254.19264f), 958) + num2++; + span303[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(323.9364f, -10.539692f, 254.19264f), 958) { Mount = false, Sprint = false }; - span103[7] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(354.5913f, -5.5008125f, 245.22939f), 958) + num2++; + span303[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(354.5913f, -5.5008125f, 245.22939f), 958) { StopDistance = 100f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span103[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(354.71964f, -2.2201555f, 233.99152f), 958) + num2++; + span303[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(354.71964f, -2.2201555f, 233.99152f), 958) { DelaySecondsAtStart = 1f, Mount = false, Sprint = false }; - span103[9] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(382.75116f, 2.7549856f, 226.49387f), 958) + num2++; + span303[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(382.75116f, 2.7549856f, 226.49387f), 958) { StopDistance = 40f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span103[10] = new QuestStep(EInteractionType.WalkTo, 1038845u, new Vector3(408.44272f, 4.965298f, 208.22794f), 958) + num2++; + span303[num2] = new QuestStep(EInteractionType.WalkTo, 1038845u, new Vector3(408.44272f, 4.965298f, 208.22794f), 958) { StopDistance = 45f, Mount = false, Sprint = false, IgnoreDistanceToObject = true }; - span103[11] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(426.39246f, 5.348692f, 194.86263f), 958) + num2++; + span303[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(426.39246f, 5.348692f, 194.86263f), 958) { StopDistance = 100f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span103[12] = new QuestStep(EInteractionType.WalkTo, 1038846u, new Vector3(555.8098f, 32.30835f, 159.10571f), 958) + num2++; + span303[num2] = new QuestStep(EInteractionType.WalkTo, 1038846u, new Vector3(555.8098f, 32.30835f, 159.10571f), 958) { Mount = false, RestartNavigationIfCancelled = false }; obj216.Steps = list303; reference237 = obj216; - ref QuestSequence reference239 = ref span100[7]; + num++; + ref QuestSequence reference239 = ref span296[num]; QuestSequence obj218 = new QuestSequence { Sequence = byte.MaxValue @@ -288614,7 +350079,9 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038846u, new Vector3(555.8098f, 32.30835f, 159.10571f), 958); + Span span305 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span305[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038846u, new Vector3(555.8098f, 32.30835f, 159.10571f), 958); obj218.Steps = list305; reference239 = obj218; questRoot31.QuestSequence = list296; @@ -288624,27 +350091,33 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - CollectionsMarshal.AsSpan(list306)[0] = "liza"; + Span span306 = CollectionsMarshal.AsSpan(list306); + index = 0; + span306[index] = "liza"; questRoot32.Author = list306; - num = 9; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - Span span104 = CollectionsMarshal.AsSpan(list307); - ref QuestSequence reference240 = ref span104[0]; + index = 9; + List list307 = new List(index); + CollectionsMarshal.SetCount(list307, index); + Span span307 = CollectionsMarshal.AsSpan(list307); + num = 0; + ref QuestSequence reference240 = ref span307[num]; QuestSequence obj219 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038847u, new Vector3(563.9885f, 32.318867f, 150.04187f), 958) + index2 = 1; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + Span span308 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span308[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038847u, new Vector3(563.9885f, 32.318867f, 150.04187f), 958) { StopDistance = 5f }; obj219.Steps = list308; reference240 = obj219; - ref QuestSequence reference241 = ref span104[1]; + num++; + ref QuestSequence reference241 = ref span307[num]; QuestSequence obj220 = new QuestSequence { Sequence = 1 @@ -288652,24 +350125,30 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 1038849u, new Vector3(588.464f, 38.372063f, 216.6018f), 958); + Span span309 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span309[index2] = new QuestStep(EInteractionType.Interact, 1038849u, new Vector3(588.464f, 38.372063f, 216.6018f), 958); obj220.Steps = list309; reference241 = obj220; - ref QuestSequence reference242 = ref span104[2]; + num++; + ref QuestSequence reference242 = ref span307[num]; QuestSequence obj221 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1038850u, new Vector3(589.8069f, 38.372063f, 217.54773f), 958) + index2 = 1; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + Span span310 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + span310[num2] = new QuestStep(EInteractionType.Interact, 1038850u, new Vector3(589.8069f, 38.372063f, 217.54773f), 958) { StopDistance = 5f }; obj221.Steps = list310; reference242 = obj221; - ref QuestSequence reference243 = ref span104[3]; + num++; + ref QuestSequence reference243 = ref span307[num]; QuestSequence obj222 = new QuestSequence { Sequence = 3 @@ -288677,27 +350156,33 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Interact, 1038851u, new Vector3(591.33276f, 38.372063f, 214.55713f), 958) + Span span311 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + span311[index2] = new QuestStep(EInteractionType.Interact, 1038851u, new Vector3(591.33276f, 38.372063f, 214.55713f), 958) { StopDistance = 5f }; obj222.Steps = list311; reference243 = obj222; - ref QuestSequence reference244 = ref span104[4]; + num++; + ref QuestSequence reference244 = ref span307[num]; QuestSequence obj223 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Interact, 1038852u, new Vector3(585.046f, 38.372063f, 216.05249f), 958) + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + Span span312 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span312[num2] = new QuestStep(EInteractionType.Interact, 1038852u, new Vector3(585.046f, 38.372063f, 216.05249f), 958) { StopDistance = 5f }; obj223.Steps = list312; reference244 = obj223; - ref QuestSequence reference245 = ref span104[5]; + num++; + ref QuestSequence reference245 = ref span307[num]; QuestSequence obj224 = new QuestSequence { Sequence = 5 @@ -288705,23 +350190,28 @@ public static class AssemblyQuestLoader num2 = 1; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1038847u, new Vector3(563.9885f, 32.318867f, 150.04187f), 958); + Span span313 = CollectionsMarshal.AsSpan(list313); + index2 = 0; + span313[index2] = new QuestStep(EInteractionType.Interact, 1038847u, new Vector3(563.9885f, 32.318867f, 150.04187f), 958); obj224.Steps = list313; reference245 = obj224; - ref QuestSequence reference246 = ref span104[6]; + num++; + ref QuestSequence reference246 = ref span307[num]; QuestSequence obj225 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list314 = new List(num2); - CollectionsMarshal.SetCount(list314, num2); - Span span105 = CollectionsMarshal.AsSpan(list314); - span105[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012001u, new Vector3(194.81189f, -12.863403f, 644.28174f), 958) + index2 = 2; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + Span span314 = CollectionsMarshal.AsSpan(list314); + num2 = 0; + span314[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012001u, new Vector3(194.81189f, -12.863403f, 644.28174f), 958) { AetherCurrentId = 2818345u }; - ref QuestStep reference247 = ref span105[1]; + num2++; + ref QuestStep reference247 = ref span314[num2]; QuestStep obj226 = new QuestStep(EInteractionType.Combat, 1038853u, new Vector3(156.75586f, -14.955569f, 623.22424f), 958) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -288729,14 +350219,17 @@ public static class AssemblyQuestLoader num3 = 2; List list315 = new List(num3); CollectionsMarshal.SetCount(list315, num3); - Span span106 = CollectionsMarshal.AsSpan(list315); - span106[0] = 14085u; - span106[1] = 14086u; + Span span315 = CollectionsMarshal.AsSpan(list315); + index3 = 0; + span315[index3] = 14085u; + index3++; + span315[index3] = 14086u; obj226.KillEnemyDataIds = list315; reference247 = obj226; obj225.Steps = list314; reference246 = obj225; - ref QuestSequence reference248 = ref span104[7]; + num++; + ref QuestSequence reference248 = ref span307[num]; QuestSequence obj227 = new QuestSequence { Sequence = 7 @@ -288744,22 +350237,27 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1037712u, new Vector3(136.5835f, -13.28456f, 650.26306f), 958) + Span span316 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span316[index2] = new QuestStep(EInteractionType.Interact, 1037712u, new Vector3(136.5835f, -13.28456f, 650.26306f), 958) { Mount = false, RestartNavigationIfCancelled = false }; obj227.Steps = list316; reference248 = obj227; - ref QuestSequence reference249 = ref span104[8]; + num++; + ref QuestSequence reference249 = ref span307[num]; QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038856u, new Vector3(137.65161f, -13.278784f, 648.249f), 958) + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + Span span317 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + span317[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038856u, new Vector3(137.65161f, -13.278784f, 648.249f), 958) { StopDistance = 5f }; @@ -288772,13 +350270,16 @@ public static class AssemblyQuestLoader num = 1; List list318 = new List(num); CollectionsMarshal.SetCount(list318, num); - CollectionsMarshal.AsSpan(list318)[0] = "liza"; + Span span318 = CollectionsMarshal.AsSpan(list318); + index = 0; + span318[index] = "liza"; questRoot33.Author = list318; - num = 8; - List list319 = new List(num); - CollectionsMarshal.SetCount(list319, num); - Span span107 = CollectionsMarshal.AsSpan(list319); - ref QuestSequence reference250 = ref span107[0]; + index = 8; + List list319 = new List(index); + CollectionsMarshal.SetCount(list319, index); + Span span319 = CollectionsMarshal.AsSpan(list319); + num = 0; + ref QuestSequence reference250 = ref span319[num]; QuestSequence obj229 = new QuestSequence { Sequence = 0 @@ -288786,24 +350287,30 @@ public static class AssemblyQuestLoader num2 = 1; List list320 = new List(num2); CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037712u, new Vector3(136.5835f, -13.28456f, 650.26306f), 958) + Span span320 = CollectionsMarshal.AsSpan(list320); + index2 = 0; + span320[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037712u, new Vector3(136.5835f, -13.28456f, 650.26306f), 958) { StopDistance = 5f }; obj229.Steps = list320; reference250 = obj229; - ref QuestSequence reference251 = ref span107[1]; + num++; + ref QuestSequence reference251 = ref span319[num]; QuestSequence obj230 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.Interact, 1038857u, new Vector3(559.0753f, 32.322315f, 159.4414f), 958); + index2 = 1; + List list321 = new List(index2); + CollectionsMarshal.SetCount(list321, index2); + Span span321 = CollectionsMarshal.AsSpan(list321); + num2 = 0; + span321[num2] = new QuestStep(EInteractionType.Interact, 1038857u, new Vector3(559.0753f, 32.322315f, 159.4414f), 958); obj230.Steps = list321; reference251 = obj230; - ref QuestSequence reference252 = ref span107[2]; + num++; + ref QuestSequence reference252 = ref span319[num]; QuestSequence obj231 = new QuestSequence { Sequence = 2 @@ -288811,21 +350318,27 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.Interact, 1038858u, new Vector3(596.5818f, 32.318665f, 138.8418f), 958); + Span span322 = CollectionsMarshal.AsSpan(list322); + index2 = 0; + span322[index2] = new QuestStep(EInteractionType.Interact, 1038858u, new Vector3(596.5818f, 32.318665f, 138.8418f), 958); obj231.Steps = list322; reference252 = obj231; - ref QuestSequence reference253 = ref span107[3]; + num++; + ref QuestSequence reference253 = ref span319[num]; QuestSequence obj232 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.Interact, 1038862u, new Vector3(504.96667f, 19.447378f, 175.73816f), 958); + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + Span span323 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span323[num2] = new QuestStep(EInteractionType.Interact, 1038862u, new Vector3(504.96667f, 19.447378f, 175.73816f), 958); obj232.Steps = list323; reference253 = obj232; - ref QuestSequence reference254 = ref span107[4]; + num++; + ref QuestSequence reference254 = ref span319[num]; QuestSequence obj233 = new QuestSequence { Sequence = 4 @@ -288833,21 +350346,27 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.Interact, 1038863u, new Vector3(310.71948f, -16.262552f, 357.01526f), 958); + Span span324 = CollectionsMarshal.AsSpan(list324); + index2 = 0; + span324[index2] = new QuestStep(EInteractionType.Interact, 1038863u, new Vector3(310.71948f, -16.262552f, 357.01526f), 958); obj233.Steps = list324; reference254 = obj233; - ref QuestSequence reference255 = ref span107[5]; + num++; + ref QuestSequence reference255 = ref span319[num]; QuestSequence obj234 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 2012083u, new Vector3(429.86182f, -17.410583f, 543.6942f), 958); + index2 = 1; + List list325 = new List(index2); + CollectionsMarshal.SetCount(list325, index2); + Span span325 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + span325[num2] = new QuestStep(EInteractionType.Interact, 2012083u, new Vector3(429.86182f, -17.410583f, 543.6942f), 958); obj234.Steps = list325; reference255 = obj234; - ref QuestSequence reference256 = ref span107[6]; + num++; + ref QuestSequence reference256 = ref span319[num]; QuestSequence obj235 = new QuestSequence { Sequence = 6 @@ -288855,18 +350374,23 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.Interact, 1038865u, new Vector3(583.85596f, -15.842519f, 625.63513f), 958); + Span span326 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span326[index2] = new QuestStep(EInteractionType.Interact, 1038865u, new Vector3(583.85596f, -15.842519f, 625.63513f), 958); obj235.Steps = list326; reference256 = obj235; - ref QuestSequence reference257 = ref span107[7]; + num++; + ref QuestSequence reference257 = ref span319[num]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038867u, new Vector3(605.9509f, 34.7239f, 202.47192f), 958); + index2 = 1; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + Span span327 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span327[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038867u, new Vector3(605.9509f, 34.7239f, 202.47192f), 958); obj236.Steps = list327; reference257 = obj236; questRoot33.QuestSequence = list319; @@ -288876,13 +350400,16 @@ public static class AssemblyQuestLoader num = 1; List list328 = new List(num); CollectionsMarshal.SetCount(list328, num); - CollectionsMarshal.AsSpan(list328)[0] = "liza"; + Span span328 = CollectionsMarshal.AsSpan(list328); + index = 0; + span328[index] = "liza"; questRoot34.Author = list328; - num = 7; - List list329 = new List(num); - CollectionsMarshal.SetCount(list329, num); - Span span108 = CollectionsMarshal.AsSpan(list329); - ref QuestSequence reference258 = ref span108[0]; + index = 7; + List list329 = new List(index); + CollectionsMarshal.SetCount(list329, index); + Span span329 = CollectionsMarshal.AsSpan(list329); + num = 0; + ref QuestSequence reference258 = ref span329[num]; QuestSequence obj237 = new QuestSequence { Sequence = 0 @@ -288890,25 +350417,31 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038868u, new Vector3(605.9204f, 34.7239f, 201.09851f), 958); + Span span330 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span330[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038868u, new Vector3(605.9204f, 34.7239f, 201.09851f), 958); obj237.Steps = list330; reference258 = obj237; - ref QuestSequence reference259 = ref span108[1]; + num++; + ref QuestSequence reference259 = ref span329[num]; QuestSequence obj238 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.Interact, 1039864u, new Vector3(-334.12683f, 23.803606f, 405.2644f), 958) + index2 = 1; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + Span span331 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + span331[num2] = new QuestStep(EInteractionType.Interact, 1039864u, new Vector3(-334.12683f, 23.803606f, 405.2644f), 958) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj238.Steps = list331; reference259 = obj238; - ref QuestSequence reference260 = ref span108[2]; + num++; + ref QuestSequence reference260 = ref span329[num]; QuestSequence obj239 = new QuestSequence { Sequence = 2 @@ -288916,27 +350449,33 @@ public static class AssemblyQuestLoader num2 = 1; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.Interact, 1039870u, new Vector3(-358.14453f, 22.554066f, 430.01453f), 958) + Span span332 = CollectionsMarshal.AsSpan(list332); + index2 = 0; + span332[index2] = new QuestStep(EInteractionType.Interact, 1039870u, new Vector3(-358.14453f, 22.554066f, 430.01453f), 958) { StopDistance = 5f }; obj239.Steps = list332; reference260 = obj239; - ref QuestSequence reference261 = ref span108[3]; + num++; + ref QuestSequence reference261 = ref span329[num]; QuestSequence obj240 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.Interact, 1039878u, new Vector3(-362.1729f, 22.071072f, 434.01233f), 958) + index2 = 1; + List list333 = new List(index2); + CollectionsMarshal.SetCount(list333, index2); + Span span333 = CollectionsMarshal.AsSpan(list333); + num2 = 0; + span333[num2] = new QuestStep(EInteractionType.Interact, 1039878u, new Vector3(-362.1729f, 22.071072f, 434.01233f), 958) { StopDistance = 7f }; obj240.Steps = list333; reference261 = obj240; - ref QuestSequence reference262 = ref span108[4]; + num++; + ref QuestSequence reference262 = ref span329[num]; QuestSequence obj241 = new QuestSequence { Sequence = 4 @@ -288944,15 +350483,19 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - ref QuestStep reference263 = ref CollectionsMarshal.AsSpan(list334)[0]; + Span span334 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + ref QuestStep reference263 = ref span334[index2]; QuestStep obj242 = new QuestStep(EInteractionType.Interact, 1039880u, new Vector3(-308.36963f, 22.468344f, 365.7129f), 958) { Comment = "Follow Alphinaud and Alisaie" }; - num3 = 1; - List list335 = new List(num3); - CollectionsMarshal.SetCount(list335, num3); - CollectionsMarshal.AsSpan(list335)[0] = new DialogueChoice + index3 = 1; + List list335 = new List(index3); + CollectionsMarshal.SetCount(list335, index3); + Span span335 = CollectionsMarshal.AsSpan(list335); + num3 = 0; + span335[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB108_04387_Q1_000_161") @@ -288961,39 +350504,45 @@ public static class AssemblyQuestLoader reference263 = obj242; obj241.Steps = list334; reference262 = obj241; - ref QuestSequence reference264 = ref span108[5]; + num++; + ref QuestSequence reference264 = ref span329[num]; QuestSequence obj243 = new QuestSequence { Sequence = 5 }; - num2 = 4; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - Span span109 = CollectionsMarshal.AsSpan(list336); - span109[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039882u, new Vector3(-286.71664f, 5.6315875f, 264.1926f), 958) + index2 = 4; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + Span span336 = CollectionsMarshal.AsSpan(list336); + num2 = 0; + span336[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039882u, new Vector3(-286.71664f, 5.6315875f, 264.1926f), 958) { NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span109[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039882u, new Vector3(-126.2175f, 0.18809877f, 233.39058f), 958) + num2++; + span336[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039882u, new Vector3(-126.2175f, 0.18809877f, 233.39058f), 958) { NpcWaitDistance = 5f, Mount = false, Sprint = false }; - span109[2] = new QuestStep(EInteractionType.WalkTo, 1039882u, new Vector3(67.2465f, 0.33215836f, 149.8282f), 958) + num2++; + span336[num2] = new QuestStep(EInteractionType.WalkTo, 1039882u, new Vector3(67.2465f, 0.33215836f, 149.8282f), 958) { Mount = false, Sprint = false }; - span109[3] = new QuestStep(EInteractionType.Interact, 1039880u, new Vector3(66.50907f, 0.26087344f, 149.46323f), 958) + num2++; + span336[num2] = new QuestStep(EInteractionType.Interact, 1039880u, new Vector3(66.50907f, 0.26087344f, 149.46323f), 958) { StopDistance = 1f }; obj243.Steps = list336; reference264 = obj243; - ref QuestSequence reference265 = ref span108[6]; + num++; + ref QuestSequence reference265 = ref span329[num]; QuestSequence obj244 = new QuestSequence { Sequence = byte.MaxValue @@ -289001,7 +350550,9 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039883u, new Vector3(64.65234f, 0.21427588f, 147.8446f), 958) + Span span337 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span337[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039883u, new Vector3(64.65234f, 0.21427588f, 147.8446f), 958) { StopDistance = 5f }; @@ -289014,27 +350565,33 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - CollectionsMarshal.AsSpan(list338)[0] = "liza"; + Span span338 = CollectionsMarshal.AsSpan(list338); + index = 0; + span338[index] = "liza"; questRoot35.Author = list338; - num = 12; - List list339 = new List(num); - CollectionsMarshal.SetCount(list339, num); - Span span110 = CollectionsMarshal.AsSpan(list339); - ref QuestSequence reference266 = ref span110[0]; + index = 12; + List list339 = new List(index); + CollectionsMarshal.SetCount(list339, index); + Span span339 = CollectionsMarshal.AsSpan(list339); + num = 0; + ref QuestSequence reference266 = ref span339[num]; QuestSequence obj245 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039883u, new Vector3(64.65234f, 0.21427588f, 147.8446f), 958) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + Span span340 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span340[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039883u, new Vector3(64.65234f, 0.21427588f, 147.8446f), 958) { StopDistance = 5f }; obj245.Steps = list340; reference266 = obj245; - ref QuestSequence reference267 = ref span110[1]; + num++; + ref QuestSequence reference267 = ref span339[num]; QuestSequence obj246 = new QuestSequence { Sequence = 1 @@ -289042,7 +350599,9 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - ref QuestStep reference268 = ref CollectionsMarshal.AsSpan(list341)[0]; + Span span341 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + ref QuestStep reference268 = ref span341[index2]; QuestStep obj247 = new QuestStep(EInteractionType.Combat, null, new Vector3(168.04597f, 0.96746624f, 103.04115f), 958) { StopDistance = 1f, @@ -289051,28 +350610,34 @@ public static class AssemblyQuestLoader num3 = 2; List list342 = new List(num3); CollectionsMarshal.SetCount(list342, num3); - Span span111 = CollectionsMarshal.AsSpan(list342); - span111[0] = 14083u; - span111[1] = 14084u; + Span span342 = CollectionsMarshal.AsSpan(list342); + index3 = 0; + span342[index3] = 14083u; + index3++; + span342[index3] = 14084u; obj247.KillEnemyDataIds = list342; reference268 = obj247; obj246.Steps = list341; reference267 = obj246; - ref QuestSequence reference269 = ref span110[2]; + num++; + ref QuestSequence reference269 = ref span339[num]; QuestSequence obj248 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.Interact, 1038761u, new Vector3(169.2378f, 0.99992824f, 105.82129f), 958) + index2 = 1; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + Span span343 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span343[num2] = new QuestStep(EInteractionType.Interact, 1038761u, new Vector3(169.2378f, 0.99992824f, 105.82129f), 958) { StopDistance = 5f }; obj248.Steps = list343; reference269 = obj248; - ref QuestSequence reference270 = ref span110[3]; + num++; + ref QuestSequence reference270 = ref span339[num]; QuestSequence obj249 = new QuestSequence { Sequence = 3 @@ -289080,35 +350645,43 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - ref QuestStep reference271 = ref CollectionsMarshal.AsSpan(list344)[0]; + Span span344 = CollectionsMarshal.AsSpan(list344); + index2 = 0; + ref QuestStep reference271 = ref span344[index2]; QuestStep obj250 = new QuestStep(EInteractionType.Combat, null, new Vector3(301.11044f, 5.506278f, 78.14653f), 958) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list345 = new List(num3); - CollectionsMarshal.SetCount(list345, num3); - CollectionsMarshal.AsSpan(list345)[0] = 14082u; + index3 = 1; + List list345 = new List(index3); + CollectionsMarshal.SetCount(list345, index3); + Span span345 = CollectionsMarshal.AsSpan(list345); + num3 = 0; + span345[num3] = 14082u; obj250.KillEnemyDataIds = list345; reference271 = obj250; obj249.Steps = list344; reference270 = obj249; - ref QuestSequence reference272 = ref span110[4]; + num++; + ref QuestSequence reference272 = ref span339[num]; QuestSequence obj251 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 1038766u, new Vector3(301.19775f, 5.5300293f, 76.67651f), 958) + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + Span span346 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span346[num2] = new QuestStep(EInteractionType.Interact, 1038766u, new Vector3(301.19775f, 5.5300293f, 76.67651f), 958) { StopDistance = 5f }; obj251.Steps = list346; reference272 = obj251; - ref QuestSequence reference273 = ref span110[5]; + num++; + ref QuestSequence reference273 = ref span339[num]; QuestSequence obj252 = new QuestSequence { Sequence = 5 @@ -289116,18 +350689,23 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1040164u, new Vector3(387.28918f, 3.8935592f, 71.97681f), 958); + Span span347 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span347[index2] = new QuestStep(EInteractionType.Interact, 1040164u, new Vector3(387.28918f, 3.8935592f, 71.97681f), 958); obj252.Steps = list347; reference273 = obj252; - ref QuestSequence reference274 = ref span110[6]; + num++; + ref QuestSequence reference274 = ref span339[num]; QuestSequence obj253 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list348)[0]; + index2 = 1; + List list348 = new List(index2); + CollectionsMarshal.SetCount(list348, index2); + Span span348 = CollectionsMarshal.AsSpan(list348); + num2 = 0; + ref QuestStep reference275 = ref span348[num2]; QuestStep obj254 = new QuestStep(EInteractionType.Combat, null, new Vector3(527.62775f, 14.620869f, -164.97536f), 958) { StopDistance = 1f, @@ -289136,12 +350714,15 @@ public static class AssemblyQuestLoader num3 = 1; List list349 = new List(num3); CollectionsMarshal.SetCount(list349, num3); - CollectionsMarshal.AsSpan(list349)[0] = 14081u; + Span span349 = CollectionsMarshal.AsSpan(list349); + index3 = 0; + span349[index3] = 14081u; obj254.KillEnemyDataIds = list349; reference275 = obj254; obj253.Steps = list348; reference274 = obj253; - ref QuestSequence reference276 = ref span110[7]; + num++; + ref QuestSequence reference276 = ref span339[num]; QuestSequence obj255 = new QuestSequence { Sequence = 7 @@ -289149,24 +350730,30 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.Interact, 1040750u, new Vector3(526.9092f, 14.616225f, -162.85956f), 958) + Span span350 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + span350[index2] = new QuestStep(EInteractionType.Interact, 1040750u, new Vector3(526.9092f, 14.616225f, -162.85956f), 958) { StopDistance = 5f }; obj255.Steps = list350; reference276 = obj255; - ref QuestSequence reference277 = ref span110[8]; + num++; + ref QuestSequence reference277 = ref span339[num]; QuestSequence obj256 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1039886u, new Vector3(520.8667f, 10.800001f, -352.49866f), 958); + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + Span span351 = CollectionsMarshal.AsSpan(list351); + num2 = 0; + span351[num2] = new QuestStep(EInteractionType.Interact, 1039886u, new Vector3(520.8667f, 10.800001f, -352.49866f), 958); obj256.Steps = list351; reference277 = obj256; - ref QuestSequence reference278 = ref span110[9]; + num++; + ref QuestSequence reference278 = ref span339[num]; QuestSequence obj257 = new QuestSequence { Sequence = 9 @@ -289174,21 +350761,27 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1039889u, new Vector3(509.4834f, 10.800001f, -422.62915f), 958); + Span span352 = CollectionsMarshal.AsSpan(list352); + index2 = 0; + span352[index2] = new QuestStep(EInteractionType.Interact, 1039889u, new Vector3(509.4834f, 10.800001f, -422.62915f), 958); obj257.Steps = list352; reference278 = obj257; - ref QuestSequence reference279 = ref span110[10]; + num++; + ref QuestSequence reference279 = ref span339[num]; QuestSequence obj258 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.Interact, 1039890u, new Vector3(528.2825f, -36.65f, -251.48401f), 958); + index2 = 1; + List list353 = new List(index2); + CollectionsMarshal.SetCount(list353, index2); + Span span353 = CollectionsMarshal.AsSpan(list353); + num2 = 0; + span353[num2] = new QuestStep(EInteractionType.Interact, 1039890u, new Vector3(528.2825f, -36.65f, -251.48401f), 958); obj258.Steps = list353; reference279 = obj258; - ref QuestSequence reference280 = ref span110[11]; + num++; + ref QuestSequence reference280 = ref span339[num]; QuestSequence obj259 = new QuestSequence { Sequence = byte.MaxValue @@ -289196,7 +350789,9 @@ public static class AssemblyQuestLoader num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039892u, new Vector3(547.5393f, -35.24417f, -192.27899f), 958); + Span span354 = CollectionsMarshal.AsSpan(list354); + index2 = 0; + span354[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039892u, new Vector3(547.5393f, -35.24417f, -192.27899f), 958); obj259.Steps = list354; reference280 = obj259; questRoot35.QuestSequence = list339; @@ -289206,24 +350801,30 @@ public static class AssemblyQuestLoader num = 1; List list355 = new List(num); CollectionsMarshal.SetCount(list355, num); - CollectionsMarshal.AsSpan(list355)[0] = "liza"; + Span span355 = CollectionsMarshal.AsSpan(list355); + index = 0; + span355[index] = "liza"; questRoot36.Author = list355; - num = 6; - List list356 = new List(num); - CollectionsMarshal.SetCount(list356, num); - Span span112 = CollectionsMarshal.AsSpan(list356); - ref QuestSequence reference281 = ref span112[0]; + index = 6; + List list356 = new List(index); + CollectionsMarshal.SetCount(list356, index); + Span span356 = CollectionsMarshal.AsSpan(list356); + num = 0; + ref QuestSequence reference281 = ref span356[num]; QuestSequence obj260 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039896u, new Vector3(530.1747f, -36.65f, -175.86023f), 958); + index2 = 1; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + Span span357 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span357[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039896u, new Vector3(530.1747f, -36.65f, -175.86023f), 958); obj260.Steps = list357; reference281 = obj260; - ref QuestSequence reference282 = ref span112[1]; + num++; + ref QuestSequence reference282 = ref span356[num]; QuestSequence obj261 = new QuestSequence { Sequence = 1 @@ -289231,25 +350832,33 @@ public static class AssemblyQuestLoader num2 = 6; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - Span span113 = CollectionsMarshal.AsSpan(list358); - ref QuestStep reference283 = ref span113[0]; + Span span358 = CollectionsMarshal.AsSpan(list358); + index2 = 0; + ref QuestStep reference283 = ref span358[index2]; QuestStep obj262 = new QuestStep(EInteractionType.Interact, 1037716u, new Vector3(524.43726f, -36.65f, -186.69415f), 958) { Comment = "Caeso" }; - num3 = 6; - List list359 = new List(num3); - CollectionsMarshal.SetCount(list359, num3); - Span span114 = CollectionsMarshal.AsSpan(list359); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list359 = new List(index3); + CollectionsMarshal.SetCount(list359, index3); + Span span359 = CollectionsMarshal.AsSpan(list359); + num3 = 0; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj262.CompletionQuestVariablesFlags = list359; reference283 = obj262; - ref QuestStep reference284 = ref span113[1]; + index2++; + ref QuestStep reference284 = ref span358[index2]; QuestStep obj263 = new QuestStep(EInteractionType.Interact, 1037718u, new Vector3(512.62683f, -36.65f, -160.3266f), 958) { Comment = "Octavia" @@ -289257,34 +350866,48 @@ public static class AssemblyQuestLoader num3 = 6; List list360 = new List(num3); CollectionsMarshal.SetCount(list360, num3); - Span span115 = CollectionsMarshal.AsSpan(list360); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span360 = CollectionsMarshal.AsSpan(list360); + index3 = 0; + span360[index3] = null; + index3++; + span360[index3] = null; + index3++; + span360[index3] = null; + index3++; + span360[index3] = null; + index3++; + span360[index3] = null; + index3++; + span360[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj263.CompletionQuestVariablesFlags = list360; reference284 = obj263; - ref QuestStep reference285 = ref span113[2]; + index2++; + ref QuestStep reference285 = ref span358[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(502.34732f, -36.65f, -178.38684f), 958); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list361 = new List(num3); - CollectionsMarshal.SetCount(list361, num3); - Span span116 = CollectionsMarshal.AsSpan(list361); - span116[0] = null; - span116[1] = null; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list361 = new List(index3); + CollectionsMarshal.SetCount(list361, index3); + Span span361 = CollectionsMarshal.AsSpan(list361); + num3 = 0; + span361[num3] = null; + num3++; + span361[num3] = null; + num3++; + span361[num3] = null; + num3++; + span361[num3] = null; + num3++; + span361[num3] = null; + num3++; + span361[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list361; skipConditions.StepIf = skipStepConditions; questStep22.SkipConditions = skipConditions; reference285 = questStep22; - ref QuestStep reference286 = ref span113[3]; + index2++; + ref QuestStep reference286 = ref span358[index2]; QuestStep obj264 = new QuestStep(EInteractionType.Interact, 1037715u, new Vector3(500.57214f, -36.65f, -178.85101f), 958) { Comment = "Sabinianus" @@ -289292,33 +350915,47 @@ public static class AssemblyQuestLoader num3 = 6; List list362 = new List(num3); CollectionsMarshal.SetCount(list362, num3); - Span span117 = CollectionsMarshal.AsSpan(list362); - span117[0] = null; - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span362 = CollectionsMarshal.AsSpan(list362); + index3 = 0; + span362[index3] = null; + index3++; + span362[index3] = null; + index3++; + span362[index3] = null; + index3++; + span362[index3] = null; + index3++; + span362[index3] = null; + index3++; + span362[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj264.CompletionQuestVariablesFlags = list362; reference286 = obj264; - ref QuestStep reference287 = ref span113[4]; + index2++; + ref QuestStep reference287 = ref span358[index2]; QuestStep obj265 = new QuestStep(EInteractionType.Interact, 1037717u, new Vector3(495.35352f, -36.06746f, -205.1576f), 958) { Comment = "Marcellinus" }; - num3 = 6; - List list363 = new List(num3); - CollectionsMarshal.SetCount(list363, num3); - Span span118 = CollectionsMarshal.AsSpan(list363); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list363 = new List(index3); + CollectionsMarshal.SetCount(list363, index3); + Span span363 = CollectionsMarshal.AsSpan(list363); + num3 = 0; + span363[num3] = null; + num3++; + span363[num3] = null; + num3++; + span363[num3] = null; + num3++; + span363[num3] = null; + num3++; + span363[num3] = null; + num3++; + span363[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj265.CompletionQuestVariablesFlags = list363; reference287 = obj265; - ref QuestStep reference288 = ref span113[5]; + index2++; + ref QuestStep reference288 = ref span358[index2]; QuestStep obj266 = new QuestStep(EInteractionType.Interact, 2012062u, new Vector3(512.1679f, -34.82775f, -201.7169f), 958) { Comment = "Magitek Radio" @@ -289326,29 +350963,39 @@ public static class AssemblyQuestLoader num3 = 6; List list364 = new List(num3); CollectionsMarshal.SetCount(list364, num3); - Span span119 = CollectionsMarshal.AsSpan(list364); - span119[0] = null; - span119[1] = null; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span364 = CollectionsMarshal.AsSpan(list364); + index3 = 0; + span364[index3] = null; + index3++; + span364[index3] = null; + index3++; + span364[index3] = null; + index3++; + span364[index3] = null; + index3++; + span364[index3] = null; + index3++; + span364[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj266.CompletionQuestVariablesFlags = list364; reference288 = obj266; obj261.Steps = list358; reference282 = obj261; - ref QuestSequence reference289 = ref span112[2]; + num++; + ref QuestSequence reference289 = ref span356[num]; QuestSequence obj267 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.Interact, 1039899u, new Vector3(549.6758f, -36.616077f, -216.84601f), 958); + index2 = 1; + List list365 = new List(index2); + CollectionsMarshal.SetCount(list365, index2); + Span span365 = CollectionsMarshal.AsSpan(list365); + num2 = 0; + span365[num2] = new QuestStep(EInteractionType.Interact, 1039899u, new Vector3(549.6758f, -36.616077f, -216.84601f), 958); obj267.Steps = list365; reference289 = obj267; - ref QuestSequence reference290 = ref span112[3]; + num++; + ref QuestSequence reference290 = ref span356[num]; QuestSequence obj268 = new QuestSequence { Sequence = 3 @@ -289356,42 +351003,50 @@ public static class AssemblyQuestLoader num2 = 3; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - Span span120 = CollectionsMarshal.AsSpan(list366); - span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(548.01605f, -36.61611f, -237.499f), 958) + Span span366 = CollectionsMarshal.AsSpan(list366); + index2 = 0; + span366[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(548.01605f, -36.61611f, -237.499f), 958) { Mount = true }; - span120[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.66595f, -36.616203f, -244.51854f), 958) + index2++; + span366[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.66595f, -36.616203f, -244.51854f), 958) { DisableNavmesh = true }; - span120[2] = new QuestStep(EInteractionType.Interact, 1037719u, new Vector3(549.7977f, -36.61618f, -260.57837f), 958); + index2++; + span366[index2] = new QuestStep(EInteractionType.Interact, 1037719u, new Vector3(549.7977f, -36.61618f, -260.57837f), 958); obj268.Steps = list366; reference290 = obj268; - ref QuestSequence reference291 = ref span112[4]; + num++; + ref QuestSequence reference291 = ref span356[num]; QuestSequence obj269 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - Span span121 = CollectionsMarshal.AsSpan(list367); - span121[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.021f, -36.616203f, -244.6051f), 958) + index2 = 3; + List list367 = new List(index2); + CollectionsMarshal.SetCount(list367, index2); + Span span367 = CollectionsMarshal.AsSpan(list367); + num2 = 0; + span367[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.021f, -36.616203f, -244.6051f), 958) { Mount = true }; - span121[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(549.7444f, -36.61608f, -225.64955f), 958) + num2++; + span367[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(549.7444f, -36.61608f, -225.64955f), 958) { DisableNavmesh = true }; - span121[2] = new QuestStep(EInteractionType.Interact, 1039899u, new Vector3(549.6758f, -36.616077f, -216.84601f), 958) + num2++; + span367[num2] = new QuestStep(EInteractionType.Interact, 1039899u, new Vector3(549.6758f, -36.616077f, -216.84601f), 958) { DisableNavmesh = true }; obj269.Steps = list367; reference291 = obj269; - ref QuestSequence reference292 = ref span112[5]; + num++; + ref QuestSequence reference292 = ref span356[num]; QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue @@ -289399,7 +351054,9 @@ public static class AssemblyQuestLoader num2 = 1; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039896u, new Vector3(530.1747f, -36.65f, -175.86023f), 958); + Span span368 = CollectionsMarshal.AsSpan(list368); + index2 = 0; + span368[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039896u, new Vector3(530.1747f, -36.65f, -175.86023f), 958); obj270.Steps = list368; reference292 = obj270; questRoot36.QuestSequence = list356; @@ -289409,24 +351066,30 @@ public static class AssemblyQuestLoader num = 1; List list369 = new List(num); CollectionsMarshal.SetCount(list369, num); - CollectionsMarshal.AsSpan(list369)[0] = "liza"; + Span span369 = CollectionsMarshal.AsSpan(list369); + index = 0; + span369[index] = "liza"; questRoot37.Author = list369; - num = 7; - List list370 = new List(num); - CollectionsMarshal.SetCount(list370, num); - Span span122 = CollectionsMarshal.AsSpan(list370); - ref QuestSequence reference293 = ref span122[0]; + index = 7; + List list370 = new List(index); + CollectionsMarshal.SetCount(list370, index); + Span span370 = CollectionsMarshal.AsSpan(list370); + num = 0; + ref QuestSequence reference293 = ref span370[num]; QuestSequence obj271 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list371 = new List(num2); - CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039896u, new Vector3(530.1747f, -36.65f, -175.86023f), 958); + index2 = 1; + List list371 = new List(index2); + CollectionsMarshal.SetCount(list371, index2); + Span span371 = CollectionsMarshal.AsSpan(list371); + num2 = 0; + span371[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039896u, new Vector3(530.1747f, -36.65f, -175.86023f), 958); obj271.Steps = list371; reference293 = obj271; - ref QuestSequence reference294 = ref span122[1]; + num++; + ref QuestSequence reference294 = ref span370[num]; QuestSequence obj272 = new QuestSequence { Sequence = 1 @@ -289434,35 +351097,46 @@ public static class AssemblyQuestLoader num2 = 2; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - Span span123 = CollectionsMarshal.AsSpan(list372); - span123[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(531.7644f, -36.650005f, -228.76685f), 958); - span123[1] = new QuestStep(EInteractionType.Interact, 1039901u, new Vector3(408.65186f, 15.5581665f, -496.14713f), 958); + Span span372 = CollectionsMarshal.AsSpan(list372); + index2 = 0; + span372[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(531.7644f, -36.650005f, -228.76685f), 958); + index2++; + span372[index2] = new QuestStep(EInteractionType.Interact, 1039901u, new Vector3(408.65186f, 15.5581665f, -496.14713f), 958); obj272.Steps = list372; reference294 = obj272; - ref QuestSequence reference295 = ref span122[2]; + num++; + ref QuestSequence reference295 = ref span370[num]; QuestSequence obj273 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - Span span124 = CollectionsMarshal.AsSpan(list373); - ref QuestStep reference296 = ref span124[0]; + index2 = 5; + List list373 = new List(index2); + CollectionsMarshal.SetCount(list373, index2); + Span span373 = CollectionsMarshal.AsSpan(list373); + num2 = 0; + ref QuestStep reference296 = ref span373[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 2012093u, new Vector3(381.73486f, 15.548889f, -503.2578f), 958); - num3 = 6; - List list374 = new List(num3); - CollectionsMarshal.SetCount(list374, num3); - Span span125 = CollectionsMarshal.AsSpan(list374); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list374 = new List(index3); + CollectionsMarshal.SetCount(list374, index3); + Span span374 = CollectionsMarshal.AsSpan(list374); + num3 = 0; + span374[num3] = null; + num3++; + span374[num3] = null; + num3++; + span374[num3] = null; + num3++; + span374[num3] = null; + num3++; + span374[num3] = null; + num3++; + span374[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list374; reference296 = questStep23; - ref QuestStep reference297 = ref span124[1]; + num2++; + ref QuestStep reference297 = ref span373[num2]; QuestStep obj274 = new QuestStep(EInteractionType.Interact, 2012094u, new Vector3(381.64343f, 25.986084f, -503.19678f), 958) { Mount = true, @@ -289471,37 +351145,52 @@ public static class AssemblyQuestLoader num3 = 6; List list375 = new List(num3); CollectionsMarshal.SetCount(list375, num3); - Span span126 = CollectionsMarshal.AsSpan(list375); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span375 = CollectionsMarshal.AsSpan(list375); + index3 = 0; + span375[index3] = null; + index3++; + span375[index3] = null; + index3++; + span375[index3] = null; + index3++; + span375[index3] = null; + index3++; + span375[index3] = null; + index3++; + span375[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj274.CompletionQuestVariablesFlags = list375; reference297 = obj274; - span124[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012005u, new Vector3(382.1621f, 25.894531f, -482.20038f), 958) + num2++; + span373[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012005u, new Vector3(382.1621f, 25.894531f, -482.20038f), 958) { AetherCurrentId = 2818349u }; - ref QuestStep reference298 = ref span124[3]; + num2++; + ref QuestStep reference298 = ref span373[num2]; QuestStep obj275 = new QuestStep(EInteractionType.Interact, 2012095u, new Vector3(423.1173f, 16.311829f, -570.3365f), 958) { Comment = "Warmachine Wreckage" }; - num3 = 6; - List list376 = new List(num3); - CollectionsMarshal.SetCount(list376, num3); - Span span127 = CollectionsMarshal.AsSpan(list376); - span127[0] = null; - span127[1] = null; - span127[2] = null; - span127[3] = null; - span127[4] = null; - span127[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list376 = new List(index3); + CollectionsMarshal.SetCount(list376, index3); + Span span376 = CollectionsMarshal.AsSpan(list376); + num3 = 0; + span376[num3] = null; + num3++; + span376[num3] = null; + num3++; + span376[num3] = null; + num3++; + span376[num3] = null; + num3++; + span376[num3] = null; + num3++; + span376[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj275.CompletionQuestVariablesFlags = list376; reference298 = obj275; - ref QuestStep reference299 = ref span124[4]; + num2++; + ref QuestStep reference299 = ref span373[num2]; QuestStep obj276 = new QuestStep(EInteractionType.Interact, 2012096u, new Vector3(381.9486f, 16.617004f, -635.33997f), 958) { Comment = "Children's Slide" @@ -289509,18 +351198,25 @@ public static class AssemblyQuestLoader num3 = 6; List list377 = new List(num3); CollectionsMarshal.SetCount(list377, num3); - Span span128 = CollectionsMarshal.AsSpan(list377); - span128[0] = null; - span128[1] = null; - span128[2] = null; - span128[3] = null; - span128[4] = null; - span128[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span377 = CollectionsMarshal.AsSpan(list377); + index3 = 0; + span377[index3] = null; + index3++; + span377[index3] = null; + index3++; + span377[index3] = null; + index3++; + span377[index3] = null; + index3++; + span377[index3] = null; + index3++; + span377[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj276.CompletionQuestVariablesFlags = list377; reference299 = obj276; obj273.Steps = list373; reference295 = obj273; - ref QuestSequence reference300 = ref span122[3]; + num++; + ref QuestSequence reference300 = ref span370[num]; QuestSequence obj277 = new QuestSequence { Sequence = 3 @@ -289528,30 +351224,36 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Interact, 1039906u, new Vector3(432.2423f, 15.558166f, -611.90204f), 958); + Span span378 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + span378[index2] = new QuestStep(EInteractionType.Interact, 1039906u, new Vector3(432.2423f, 15.558166f, -611.90204f), 958); obj277.Steps = list378; reference300 = obj277; - ref QuestSequence reference301 = ref span122[4]; + num++; + ref QuestSequence reference301 = ref span370[num]; QuestSequence obj278 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list379 = new List(num2); - CollectionsMarshal.SetCount(list379, num2); - Span span129 = CollectionsMarshal.AsSpan(list379); - span129[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(434.73416f, 15.085039f, -614.55194f), 958) + index2 = 2; + List list379 = new List(index2); + CollectionsMarshal.SetCount(list379, index2); + Span span379 = CollectionsMarshal.AsSpan(list379); + num2 = 0; + span379[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(434.73416f, 15.085039f, -614.55194f), 958) { DisableNavmesh = true, Mount = true }; - span129[1] = new QuestStep(EInteractionType.Interact, 2012100u, new Vector3(445.76172f, 15.487854f, -648.61523f), 958) + num2++; + span379[num2] = new QuestStep(EInteractionType.Interact, 2012100u, new Vector3(445.76172f, 15.487854f, -648.61523f), 958) { DisableNavmesh = true }; obj278.Steps = list379; reference301 = obj278; - ref QuestSequence reference302 = ref span122[5]; + num++; + ref QuestSequence reference302 = ref span370[num]; QuestSequence obj279 = new QuestSequence { Sequence = 5 @@ -289559,18 +351261,23 @@ public static class AssemblyQuestLoader num2 = 1; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.Interact, 1039906u, new Vector3(432.2423f, 15.558166f, -611.90204f), 958); + Span span380 = CollectionsMarshal.AsSpan(list380); + index2 = 0; + span380[index2] = new QuestStep(EInteractionType.Interact, 1039906u, new Vector3(432.2423f, 15.558166f, -611.90204f), 958); obj279.Steps = list380; reference302 = obj279; - ref QuestSequence reference303 = ref span122[6]; + num++; + ref QuestSequence reference303 = ref span370[num]; QuestSequence obj280 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039906u, new Vector3(432.2423f, 15.558166f, -611.90204f), 958); + index2 = 1; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + Span span381 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span381[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039906u, new Vector3(432.2423f, 15.558166f, -611.90204f), 958); obj280.Steps = list381; reference303 = obj280; questRoot37.QuestSequence = list370; @@ -289580,13 +351287,16 @@ public static class AssemblyQuestLoader num = 1; List list382 = new List(num); CollectionsMarshal.SetCount(list382, num); - CollectionsMarshal.AsSpan(list382)[0] = "liza"; + Span span382 = CollectionsMarshal.AsSpan(list382); + index = 0; + span382[index] = "liza"; questRoot38.Author = list382; - num = 6; - List list383 = new List(num); - CollectionsMarshal.SetCount(list383, num); - Span span130 = CollectionsMarshal.AsSpan(list383); - ref QuestSequence reference304 = ref span130[0]; + index = 6; + List list383 = new List(index); + CollectionsMarshal.SetCount(list383, index); + Span span383 = CollectionsMarshal.AsSpan(list383); + num = 0; + ref QuestSequence reference304 = ref span383[num]; QuestSequence obj281 = new QuestSequence { Sequence = 0 @@ -289594,24 +351304,30 @@ public static class AssemblyQuestLoader num2 = 1; List list384 = new List(num2); CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038789u, new Vector3(413.13794f, 16.102577f, -578.4848f), 958) + Span span384 = CollectionsMarshal.AsSpan(list384); + index2 = 0; + span384[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038789u, new Vector3(413.13794f, 16.102577f, -578.4848f), 958) { StopDistance = 5f }; obj281.Steps = list384; reference304 = obj281; - ref QuestSequence reference305 = ref span130[1]; + num++; + ref QuestSequence reference305 = ref span383[num]; QuestSequence obj282 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list385 = new List(num2); - CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.Interact, 1039910u, new Vector3(340.59656f, 10.799996f, -529.9306f), 958); + index2 = 1; + List list385 = new List(index2); + CollectionsMarshal.SetCount(list385, index2); + Span span385 = CollectionsMarshal.AsSpan(list385); + num2 = 0; + span385[num2] = new QuestStep(EInteractionType.Interact, 1039910u, new Vector3(340.59656f, 10.799996f, -529.9306f), 958); obj282.Steps = list385; reference305 = obj282; - ref QuestSequence reference306 = ref span130[2]; + num++; + ref QuestSequence reference306 = ref span383[num]; QuestSequence obj283 = new QuestSequence { Sequence = 2 @@ -289619,24 +351335,30 @@ public static class AssemblyQuestLoader num2 = 1; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - CollectionsMarshal.AsSpan(list386)[0] = new QuestStep(EInteractionType.UseItem, 2012101u, new Vector3(270.25244f, 10.452393f, -579.7666f), 958) + Span span386 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + span386[index2] = new QuestStep(EInteractionType.UseItem, 2012101u, new Vector3(270.25244f, 10.452393f, -579.7666f), 958) { ItemId = 2003229u }; obj283.Steps = list386; reference306 = obj283; - ref QuestSequence reference307 = ref span130[3]; + num++; + ref QuestSequence reference307 = ref span383[num]; QuestSequence obj284 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list387 = new List(num2); - CollectionsMarshal.SetCount(list387, num2); - CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.Interact, 1039910u, new Vector3(340.59656f, 10.799996f, -529.9306f), 958); + index2 = 1; + List list387 = new List(index2); + CollectionsMarshal.SetCount(list387, index2); + Span span387 = CollectionsMarshal.AsSpan(list387); + num2 = 0; + span387[num2] = new QuestStep(EInteractionType.Interact, 1039910u, new Vector3(340.59656f, 10.799996f, -529.9306f), 958); obj284.Steps = list387; reference307 = obj284; - ref QuestSequence reference308 = ref span130[4]; + num++; + ref QuestSequence reference308 = ref span383[num]; QuestSequence obj285 = new QuestSequence { Sequence = 4 @@ -289644,18 +351366,23 @@ public static class AssemblyQuestLoader num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.Interact, 2012106u, new Vector3(339.1621f, 10.788086f, -530.54095f), 958); + Span span388 = CollectionsMarshal.AsSpan(list388); + index2 = 0; + span388[index2] = new QuestStep(EInteractionType.Interact, 2012106u, new Vector3(339.1621f, 10.788086f, -530.54095f), 958); obj285.Steps = list388; reference308 = obj285; - ref QuestSequence reference309 = ref span130[5]; + num++; + ref QuestSequence reference309 = ref span383[num]; QuestSequence obj286 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list389 = new List(num2); - CollectionsMarshal.SetCount(list389, num2); - CollectionsMarshal.AsSpan(list389)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039913u, new Vector3(526.3904f, -36.65f, -233.87512f), 958) + index2 = 1; + List list389 = new List(index2); + CollectionsMarshal.SetCount(list389, index2); + Span span389 = CollectionsMarshal.AsSpan(list389); + num2 = 0; + span389[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039913u, new Vector3(526.3904f, -36.65f, -233.87512f), 958) { StopDistance = 5f }; @@ -289668,13 +351395,16 @@ public static class AssemblyQuestLoader num = 1; List list390 = new List(num); CollectionsMarshal.SetCount(list390, num); - CollectionsMarshal.AsSpan(list390)[0] = "liza"; + Span span390 = CollectionsMarshal.AsSpan(list390); + index = 0; + span390[index] = "liza"; questRoot39.Author = list390; - num = 5; - List list391 = new List(num); - CollectionsMarshal.SetCount(list391, num); - Span span131 = CollectionsMarshal.AsSpan(list391); - ref QuestSequence reference310 = ref span131[0]; + index = 5; + List list391 = new List(index); + CollectionsMarshal.SetCount(list391, index); + Span span391 = CollectionsMarshal.AsSpan(list391); + num = 0; + ref QuestSequence reference310 = ref span391[num]; QuestSequence obj287 = new QuestSequence { Sequence = 0 @@ -289682,39 +351412,50 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039913u, new Vector3(526.3904f, -36.65f, -233.87512f), 958) + Span span392 = CollectionsMarshal.AsSpan(list392); + index2 = 0; + span392[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039913u, new Vector3(526.3904f, -36.65f, -233.87512f), 958) { StopDistance = 5f }; obj287.Steps = list392; reference310 = obj287; - ref QuestSequence reference311 = ref span131[1]; + num++; + ref QuestSequence reference311 = ref span391[num]; QuestSequence obj288 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list393 = new List(num2); - CollectionsMarshal.SetCount(list393, num2); - Span span132 = CollectionsMarshal.AsSpan(list393); - ref QuestStep reference312 = ref span132[0]; + index2 = 2; + List list393 = new List(index2); + CollectionsMarshal.SetCount(list393, index2); + Span span393 = CollectionsMarshal.AsSpan(list393); + num2 = 0; + ref QuestStep reference312 = ref span393[num2]; QuestStep obj289 = new QuestStep(EInteractionType.Interact, 1038790u, new Vector3(495.41467f, -36.06746f, -205.12708f), 958) { Comment = "Marcellinus" }; - num3 = 6; - List list394 = new List(num3); - CollectionsMarshal.SetCount(list394, num3); - Span span133 = CollectionsMarshal.AsSpan(list394); - span133[0] = null; - span133[1] = null; - span133[2] = null; - span133[3] = null; - span133[4] = null; - span133[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list394 = new List(index3); + CollectionsMarshal.SetCount(list394, index3); + Span span394 = CollectionsMarshal.AsSpan(list394); + num3 = 0; + span394[num3] = null; + num3++; + span394[num3] = null; + num3++; + span394[num3] = null; + num3++; + span394[num3] = null; + num3++; + span394[num3] = null; + num3++; + span394[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj289.CompletionQuestVariablesFlags = list394; reference312 = obj289; - ref QuestStep reference313 = ref span132[1]; + num2++; + ref QuestStep reference313 = ref span393[num2]; QuestStep obj290 = new QuestStep(EInteractionType.Interact, 1038791u, new Vector3(512.62683f, -36.65f, -160.3266f), 958) { Comment = "Octavia" @@ -289722,18 +351463,25 @@ public static class AssemblyQuestLoader num3 = 6; List list395 = new List(num3); CollectionsMarshal.SetCount(list395, num3); - Span span134 = CollectionsMarshal.AsSpan(list395); - span134[0] = null; - span134[1] = null; - span134[2] = null; - span134[3] = null; - span134[4] = null; - span134[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span395 = CollectionsMarshal.AsSpan(list395); + index3 = 0; + span395[index3] = null; + index3++; + span395[index3] = null; + index3++; + span395[index3] = null; + index3++; + span395[index3] = null; + index3++; + span395[index3] = null; + index3++; + span395[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj290.CompletionQuestVariablesFlags = list395; reference313 = obj290; obj288.Steps = list393; reference311 = obj288; - ref QuestSequence reference314 = ref span131[2]; + num++; + ref QuestSequence reference314 = ref span391[num]; QuestSequence obj291 = new QuestSequence { Sequence = 2 @@ -289741,12 +351489,16 @@ public static class AssemblyQuestLoader num2 = 1; List list396 = new List(num2); CollectionsMarshal.SetCount(list396, num2); - ref QuestStep reference315 = ref CollectionsMarshal.AsSpan(list396)[0]; + Span span396 = CollectionsMarshal.AsSpan(list396); + index2 = 0; + ref QuestStep reference315 = ref span396[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1039889u, new Vector3(509.4834f, 10.800001f, -422.62915f), 958); - num3 = 1; - List list397 = new List(num3); - CollectionsMarshal.SetCount(list397, num3); - CollectionsMarshal.AsSpan(list397)[0] = new DialogueChoice + index3 = 1; + List list397 = new List(index3); + CollectionsMarshal.SetCount(list397, index3); + Span span397 = CollectionsMarshal.AsSpan(list397); + num3 = 0; + span397[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMB113_04392_Q1_000_031"), @@ -289756,20 +351508,25 @@ public static class AssemblyQuestLoader reference315 = questStep24; obj291.Steps = list396; reference314 = obj291; - ref QuestSequence reference316 = ref span131[3]; + num++; + ref QuestSequence reference316 = ref span391[num]; QuestSequence obj292 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list398 = new List(num2); - CollectionsMarshal.SetCount(list398, num2); - ref QuestStep reference317 = ref CollectionsMarshal.AsSpan(list398)[0]; + index2 = 1; + List list398 = new List(index2); + CollectionsMarshal.SetCount(list398, index2); + Span span398 = CollectionsMarshal.AsSpan(list398); + num2 = 0; + ref QuestStep reference317 = ref span398[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 2012107u, new Vector3(279.37744f, 10.8185425f, -232.98999f), 958); num3 = 1; List list399 = new List(num3); CollectionsMarshal.SetCount(list399, num3); - CollectionsMarshal.AsSpan(list399)[0] = new DialogueChoice + Span span399 = CollectionsMarshal.AsSpan(list399); + index3 = 0; + span399[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB113_04392_Q2_000_051") @@ -289778,7 +351535,8 @@ public static class AssemblyQuestLoader reference317 = questStep25; obj292.Steps = list398; reference316 = obj292; - ref QuestSequence reference318 = ref span131[4]; + num++; + ref QuestSequence reference318 = ref span391[num]; QuestSequence obj293 = new QuestSequence { Sequence = byte.MaxValue @@ -289786,7 +351544,9 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039915u, new Vector3(-399.80164f, 22.143175f, 422.8733f), 958); + Span span400 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span400[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039915u, new Vector3(-399.80164f, 22.143175f, 422.8733f), 958); obj293.Steps = list400; reference318 = obj293; questRoot39.QuestSequence = list391; @@ -289796,24 +351556,30 @@ public static class AssemblyQuestLoader num = 1; List list401 = new List(num); CollectionsMarshal.SetCount(list401, num); - CollectionsMarshal.AsSpan(list401)[0] = "liza"; + Span span401 = CollectionsMarshal.AsSpan(list401); + index = 0; + span401[index] = "liza"; questRoot40.Author = list401; - num = 9; - List list402 = new List(num); - CollectionsMarshal.SetCount(list402, num); - Span span135 = CollectionsMarshal.AsSpan(list402); - ref QuestSequence reference319 = ref span135[0]; + index = 9; + List list402 = new List(index); + CollectionsMarshal.SetCount(list402, index); + Span span402 = CollectionsMarshal.AsSpan(list402); + num = 0; + ref QuestSequence reference319 = ref span402[num]; QuestSequence obj294 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list403 = new List(num2); - CollectionsMarshal.SetCount(list403, num2); - CollectionsMarshal.AsSpan(list403)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039915u, new Vector3(-399.80164f, 22.143175f, 422.8733f), 958); + index2 = 1; + List list403 = new List(index2); + CollectionsMarshal.SetCount(list403, index2); + Span span403 = CollectionsMarshal.AsSpan(list403); + num2 = 0; + span403[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039915u, new Vector3(-399.80164f, 22.143175f, 422.8733f), 958); obj294.Steps = list403; reference319 = obj294; - ref QuestSequence reference320 = ref span135[1]; + num++; + ref QuestSequence reference320 = ref span402[num]; QuestSequence obj295 = new QuestSequence { Sequence = 1 @@ -289821,26 +351587,32 @@ public static class AssemblyQuestLoader num2 = 2; List list404 = new List(num2); CollectionsMarshal.SetCount(list404, num2); - Span span136 = CollectionsMarshal.AsSpan(list404); - span136[0] = new QuestStep(EInteractionType.AcceptQuest, 1041753u, new Vector3(-321.49237f, 22.009079f, 424.00232f), 958) + Span span404 = CollectionsMarshal.AsSpan(list404); + index2 = 0; + span404[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041753u, new Vector3(-321.49237f, 22.009079f, 424.00232f), 958) { PickUpQuestId = new QuestId(4498) }; - span136[1] = new QuestStep(EInteractionType.Interact, 1039917u, new Vector3(495.50623f, 10.800001f, -425.2232f), 958); + index2++; + span404[index2] = new QuestStep(EInteractionType.Interact, 1039917u, new Vector3(495.50623f, 10.800001f, -425.2232f), 958); obj295.Steps = list404; reference320 = obj295; - ref QuestSequence reference321 = ref span135[2]; + num++; + ref QuestSequence reference321 = ref span402[num]; QuestSequence obj296 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list405 = new List(num2); - CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.Interact, 1037715u, new Vector3(500.57214f, -36.65f, -178.85101f), 958); + index2 = 1; + List list405 = new List(index2); + CollectionsMarshal.SetCount(list405, index2); + Span span405 = CollectionsMarshal.AsSpan(list405); + num2 = 0; + span405[num2] = new QuestStep(EInteractionType.Interact, 1037715u, new Vector3(500.57214f, -36.65f, -178.85101f), 958); obj296.Steps = list405; reference321 = obj296; - ref QuestSequence reference322 = ref span135[3]; + num++; + ref QuestSequence reference322 = ref span402[num]; QuestSequence obj297 = new QuestSequence { Sequence = 3 @@ -289848,28 +351620,34 @@ public static class AssemblyQuestLoader num2 = 2; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - Span span137 = CollectionsMarshal.AsSpan(list406); - span137[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 958) + Span span406 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + span406[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 958) { StopDistance = 7f, DisableNavmesh = true, Aetheryte = EAetheryteLocation.GarlemaldTertium }; - span137[1] = new QuestStep(EInteractionType.Interact, 1037716u, new Vector3(524.43726f, -36.65f, -186.69415f), 958); + index2++; + span406[index2] = new QuestStep(EInteractionType.Interact, 1037716u, new Vector3(524.43726f, -36.65f, -186.69415f), 958); obj297.Steps = list406; reference322 = obj297; - ref QuestSequence reference323 = ref span135[4]; + num++; + ref QuestSequence reference323 = ref span402[num]; QuestSequence obj298 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list407 = new List(num2); - CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.Interact, 1037719u, new Vector3(549.7977f, -36.61618f, -260.57837f), 958); + index2 = 1; + List list407 = new List(index2); + CollectionsMarshal.SetCount(list407, index2); + Span span407 = CollectionsMarshal.AsSpan(list407); + num2 = 0; + span407[num2] = new QuestStep(EInteractionType.Interact, 1037719u, new Vector3(549.7977f, -36.61618f, -260.57837f), 958); obj298.Steps = list407; reference323 = obj298; - ref QuestSequence reference324 = ref span135[5]; + num++; + ref QuestSequence reference324 = ref span402[num]; QuestSequence obj299 = new QuestSequence { Sequence = 5 @@ -289877,19 +351655,23 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.Interact, 1039924u, new Vector3(547.5089f, -35.24417f, -192.73676f), 958); + Span span408 = CollectionsMarshal.AsSpan(list408); + index2 = 0; + span408[index2] = new QuestStep(EInteractionType.Interact, 1039924u, new Vector3(547.5089f, -35.24417f, -192.73676f), 958); obj299.Steps = list408; reference324 = obj299; - ref QuestSequence reference325 = ref span135[6]; + num++; + ref QuestSequence reference325 = ref span402[num]; QuestSequence obj300 = new QuestSequence { Sequence = 6 }; - num2 = 8; - List list409 = new List(num2); - CollectionsMarshal.SetCount(list409, num2); - Span span138 = CollectionsMarshal.AsSpan(list409); - ref QuestStep reference326 = ref span138[0]; + index2 = 8; + List list409 = new List(index2); + CollectionsMarshal.SetCount(list409, index2); + Span span409 = CollectionsMarshal.AsSpan(list409); + num2 = 0; + ref QuestStep reference326 = ref span409[num2]; QuestStep obj301 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(539.89374f, -36.65f, -193.11551f), 958) { DisableNavmesh = true, @@ -289897,16 +351679,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list410 = new List(num3); - CollectionsMarshal.SetCount(list410, num3); - Span span139 = CollectionsMarshal.AsSpan(list410); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list410 = new List(index3); + CollectionsMarshal.SetCount(list410, index3); + Span span410 = CollectionsMarshal.AsSpan(list410); + num3 = 0; + span410[num3] = null; + num3++; + span410[num3] = null; + num3++; + span410[num3] = null; + num3++; + span410[num3] = null; + num3++; + span410[num3] = null; + num3++; + span410[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list410; skipStepConditions2.NearPosition = new NearPositionCondition { @@ -289917,11 +351705,13 @@ public static class AssemblyQuestLoader skipConditions2.StepIf = skipStepConditions2; obj301.SkipConditions = skipConditions2; reference326 = obj301; - span138[1] = new QuestStep(EInteractionType.AcceptQuest, 1040633u, new Vector3(496.94043f, 10.887661f, -418.57025f), 958) + num2++; + span409[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040633u, new Vector3(496.94043f, 10.887661f, -418.57025f), 958) { PickUpQuestId = new QuestId(4232) }; - ref QuestStep reference327 = ref span138[2]; + num2++; + ref QuestStep reference327 = ref span409[num2]; QuestStep obj302 = new QuestStep(EInteractionType.Combat, 2012111u, new Vector3(507.042f, 8.8654175f, 64.68298f), 958) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -289929,21 +351719,30 @@ public static class AssemblyQuestLoader num3 = 1; List list411 = new List(num3); CollectionsMarshal.SetCount(list411, num3); - CollectionsMarshal.AsSpan(list411)[0] = 14078u; + Span span411 = CollectionsMarshal.AsSpan(list411); + index3 = 0; + span411[index3] = 14078u; obj302.KillEnemyDataIds = list411; - num3 = 6; - List list412 = new List(num3); - CollectionsMarshal.SetCount(list412, num3); - Span span140 = CollectionsMarshal.AsSpan(list412); - span140[0] = null; - span140[1] = null; - span140[2] = null; - span140[3] = null; - span140[4] = null; - span140[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list412 = new List(index3); + CollectionsMarshal.SetCount(list412, index3); + Span span412 = CollectionsMarshal.AsSpan(list412); + num3 = 0; + span412[num3] = null; + num3++; + span412[num3] = null; + num3++; + span412[num3] = null; + num3++; + span412[num3] = null; + num3++; + span412[num3] = null; + num3++; + span412[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj302.CompletionQuestVariablesFlags = list412; reference327 = obj302; - ref QuestStep reference328 = ref span138[3]; + num2++; + ref QuestStep reference328 = ref span409[num2]; QuestStep obj303 = new QuestStep(EInteractionType.Combat, 2012109u, new Vector3(338.49072f, 2.304016f, 94.77368f), 958) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -289951,26 +351750,35 @@ public static class AssemblyQuestLoader num3 = 1; List list413 = new List(num3); CollectionsMarshal.SetCount(list413, num3); - CollectionsMarshal.AsSpan(list413)[0] = 14079u; + Span span413 = CollectionsMarshal.AsSpan(list413); + index3 = 0; + span413[index3] = 14079u; obj303.KillEnemyDataIds = list413; obj303.CombatItemUse = new CombatItemUse { ItemId = 2003231u, Condition = ECombatItemUseCondition.Incapacitated }; - num3 = 6; - List list414 = new List(num3); - CollectionsMarshal.SetCount(list414, num3); - Span span141 = CollectionsMarshal.AsSpan(list414); - span141[0] = null; - span141[1] = null; - span141[2] = null; - span141[3] = null; - span141[4] = null; - span141[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list414 = new List(index3); + CollectionsMarshal.SetCount(list414, index3); + Span span414 = CollectionsMarshal.AsSpan(list414); + num3 = 0; + span414[num3] = null; + num3++; + span414[num3] = null; + num3++; + span414[num3] = null; + num3++; + span414[num3] = null; + num3++; + span414[num3] = null; + num3++; + span414[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj303.CompletionQuestVariablesFlags = list414; reference328 = obj303; - ref QuestStep reference329 = ref span138[4]; + num2++; + ref QuestStep reference329 = ref span409[num2]; QuestStep obj304 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.57295f, 1.3869624f, 124.77198f), 958) { Comment = "Avoids combat" @@ -289980,32 +351788,46 @@ public static class AssemblyQuestLoader num3 = 6; List list415 = new List(num3); CollectionsMarshal.SetCount(list415, num3); - Span span142 = CollectionsMarshal.AsSpan(list415); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span415 = CollectionsMarshal.AsSpan(list415); + index3 = 0; + span415[index3] = null; + index3++; + span415[index3] = null; + index3++; + span415[index3] = null; + index3++; + span415[index3] = null; + index3++; + span415[index3] = null; + index3++; + span415[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list415; skipConditions3.StepIf = skipStepConditions3; obj304.SkipConditions = skipConditions3; reference329 = obj304; - ref QuestStep reference330 = ref span138[5]; + num2++; + ref QuestStep reference330 = ref span409[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 2012108u, new Vector3(79.42322f, 0.62561035f, 153.24634f), 958); - num3 = 6; - List list416 = new List(num3); - CollectionsMarshal.SetCount(list416, num3); - Span span143 = CollectionsMarshal.AsSpan(list416); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list416 = new List(index3); + CollectionsMarshal.SetCount(list416, index3); + Span span416 = CollectionsMarshal.AsSpan(list416); + num3 = 0; + span416[num3] = null; + num3++; + span416[num3] = null; + num3++; + span416[num3] = null; + num3++; + span416[num3] = null; + num3++; + span416[num3] = null; + num3++; + span416[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list416; reference330 = questStep26; - ref QuestStep reference331 = ref span138[6]; + num2++; + ref QuestStep reference331 = ref span409[num2]; QuestStep obj305 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-20.886705f, -0.47744966f, 353.66968f), 958) { Comment = "Avoids combat" @@ -290015,27 +351837,36 @@ public static class AssemblyQuestLoader num3 = 6; List list417 = new List(num3); CollectionsMarshal.SetCount(list417, num3); - Span span144 = CollectionsMarshal.AsSpan(list417); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span417 = CollectionsMarshal.AsSpan(list417); + index3 = 0; + span417[index3] = null; + index3++; + span417[index3] = null; + index3++; + span417[index3] = null; + index3++; + span417[index3] = null; + index3++; + span417[index3] = null; + index3++; + span417[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list417; skipConditions4.StepIf = skipStepConditions4; obj305.SkipConditions = skipConditions4; reference331 = obj305; - ref QuestStep reference332 = ref span138[7]; + num2++; + ref QuestStep reference332 = ref span409[num2]; QuestStep obj306 = new QuestStep(EInteractionType.Combat, 2012110u, new Vector3(-25.558899f, -12.954956f, 396.96338f), 958) { DisableNavmesh = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list418 = new List(num3); - CollectionsMarshal.SetCount(list418, num3); - CollectionsMarshal.AsSpan(list418)[0] = 14080u; + index3 = 1; + List list418 = new List(index3); + CollectionsMarshal.SetCount(list418, index3); + Span span418 = CollectionsMarshal.AsSpan(list418); + num3 = 0; + span418[num3] = 14080u; obj306.KillEnemyDataIds = list418; obj306.CombatItemUse = new CombatItemUse { @@ -290045,18 +351876,25 @@ public static class AssemblyQuestLoader num3 = 6; List list419 = new List(num3); CollectionsMarshal.SetCount(list419, num3); - Span span145 = CollectionsMarshal.AsSpan(list419); - span145[0] = null; - span145[1] = null; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span419 = CollectionsMarshal.AsSpan(list419); + index3 = 0; + span419[index3] = null; + index3++; + span419[index3] = null; + index3++; + span419[index3] = null; + index3++; + span419[index3] = null; + index3++; + span419[index3] = null; + index3++; + span419[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj306.CompletionQuestVariablesFlags = list419; reference332 = obj306; obj300.Steps = list409; reference325 = obj300; - ref QuestSequence reference333 = ref span135[7]; + num++; + ref QuestSequence reference333 = ref span402[num]; QuestSequence obj307 = new QuestSequence { Sequence = 7 @@ -290064,18 +351902,23 @@ public static class AssemblyQuestLoader num2 = 1; List list420 = new List(num2); CollectionsMarshal.SetCount(list420, num2); - CollectionsMarshal.AsSpan(list420)[0] = new QuestStep(EInteractionType.Interact, 1039930u, new Vector3(-208.33148f, 15.486622f, 450.88867f), 958); + Span span420 = CollectionsMarshal.AsSpan(list420); + index2 = 0; + span420[index2] = new QuestStep(EInteractionType.Interact, 1039930u, new Vector3(-208.33148f, 15.486622f, 450.88867f), 958); obj307.Steps = list420; reference333 = obj307; - ref QuestSequence reference334 = ref span135[8]; + num++; + ref QuestSequence reference334 = ref span402[num]; QuestSequence obj308 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list421 = new List(num2); - CollectionsMarshal.SetCount(list421, num2); - CollectionsMarshal.AsSpan(list421)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039931u, new Vector3(-351.15588f, 23.742596f, 418.4176f), 958); + index2 = 1; + List list421 = new List(index2); + CollectionsMarshal.SetCount(list421, index2); + Span span421 = CollectionsMarshal.AsSpan(list421); + num2 = 0; + span421[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039931u, new Vector3(-351.15588f, 23.742596f, 418.4176f), 958); obj308.Steps = list421; reference334 = obj308; questRoot40.QuestSequence = list402; @@ -290085,13 +351928,16 @@ public static class AssemblyQuestLoader num = 1; List list422 = new List(num); CollectionsMarshal.SetCount(list422, num); - CollectionsMarshal.AsSpan(list422)[0] = "liza"; + Span span422 = CollectionsMarshal.AsSpan(list422); + index = 0; + span422[index] = "liza"; questRoot41.Author = list422; - num = 3; - List list423 = new List(num); - CollectionsMarshal.SetCount(list423, num); - Span span146 = CollectionsMarshal.AsSpan(list423); - ref QuestSequence reference335 = ref span146[0]; + index = 3; + List list423 = new List(index); + CollectionsMarshal.SetCount(list423, index); + Span span423 = CollectionsMarshal.AsSpan(list423); + num = 0; + ref QuestSequence reference335 = ref span423[num]; QuestSequence obj309 = new QuestSequence { Sequence = 0 @@ -290099,39 +351945,47 @@ public static class AssemblyQuestLoader num2 = 1; List list424 = new List(num2); CollectionsMarshal.SetCount(list424, num2); - CollectionsMarshal.AsSpan(list424)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039931u, new Vector3(-351.15588f, 23.742596f, 418.4176f), 958); + Span span424 = CollectionsMarshal.AsSpan(list424); + index2 = 0; + span424[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039931u, new Vector3(-351.15588f, 23.742596f, 418.4176f), 958); obj309.Steps = list424; reference335 = obj309; - ref QuestSequence reference336 = ref span146[1]; + num++; + ref QuestSequence reference336 = ref span423[num]; QuestSequence obj310 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list425 = new List(num2); - CollectionsMarshal.SetCount(list425, num2); - Span span147 = CollectionsMarshal.AsSpan(list425); - span147[0] = new QuestStep(EInteractionType.AcceptQuest, 1040898u, new Vector3(-433.12738f, 22.221891f, 460.80713f), 958) + index2 = 3; + List list425 = new List(index2); + CollectionsMarshal.SetCount(list425, index2); + Span span425 = CollectionsMarshal.AsSpan(list425); + num2 = 0; + span425[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040898u, new Vector3(-433.12738f, 22.221891f, 460.80713f), 958) { PickUpQuestId = new QuestId(4216) }; - ref QuestStep reference337 = ref span147[1]; + num2++; + ref QuestStep reference337 = ref span425[num2]; QuestStep obj311 = new QuestStep(EInteractionType.AcceptQuest, 1041765u, new Vector3(-323.4455f, 22f, 487.81555f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; SkipConditions skipConditions5 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list426 = new List(num3); - CollectionsMarshal.SetCount(list426, num3); - CollectionsMarshal.AsSpan(list426)[0] = new QuestId(4502); + index3 = 1; + List list426 = new List(index3); + CollectionsMarshal.SetCount(list426, index3); + Span span426 = CollectionsMarshal.AsSpan(list426); + num3 = 0; + span426[num3] = new QuestId(4502); skipAetheryteCondition.QuestsCompleted = list426; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition; obj311.SkipConditions = skipConditions5; obj311.PickUpQuestId = new QuestId(4502); reference337 = obj311; - ref QuestStep reference338 = ref span147[2]; + num2++; + ref QuestStep reference338 = ref span425[num2]; QuestStep obj312 = new QuestStep(EInteractionType.SinglePlayerDuty, 1039932u, new Vector3(-357.99194f, 22f, 488.3954f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass @@ -290140,11 +351994,15 @@ public static class AssemblyQuestLoader num3 = 4; List list427 = new List(num3); CollectionsMarshal.SetCount(list427, num3); - Span span148 = CollectionsMarshal.AsSpan(list427); - span148[0] = "Instance probably only works on very easy difficulty"; - span148[1] = "AI doesn't move to first enemy"; - span148[2] = "AI doesn't unmount from the Magitek Reaper"; - span148[3] = "Navmesh takes 5+ minutes to build"; + Span span427 = CollectionsMarshal.AsSpan(list427); + index3 = 0; + span427[index3] = "Instance probably only works on very easy difficulty"; + index3++; + span427[index3] = "AI doesn't move to first enemy"; + index3++; + span427[index3] = "AI doesn't unmount from the Magitek Reaper"; + index3++; + span427[index3] = "Navmesh takes 5+ minutes to build"; singlePlayerDutyOptions2.Notes = list427; obj312.SinglePlayerDutyOptions = singlePlayerDutyOptions2; obj312.SkipConditions = new SkipConditions @@ -290159,16 +352017,18 @@ public static class AssemblyQuestLoader } } }; - num3 = 3; - List list428 = new List(num3); - CollectionsMarshal.SetCount(list428, num3); - Span span149 = CollectionsMarshal.AsSpan(list428); - span149[0] = new DialogueChoice + index3 = 3; + List list428 = new List(index3); + CollectionsMarshal.SetCount(list428, index3); + Span span428 = CollectionsMarshal.AsSpan(list428); + num3 = 0; + span428[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB115_04394_Q1_000_042") }; - span149[1] = new DialogueChoice + num3++; + span428[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", @@ -290176,7 +352036,8 @@ public static class AssemblyQuestLoader Answer = new ExcelRef(247u), SpecialCondition = "NoDutyActions" }; - span149[2] = new DialogueChoice + num3++; + span428[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", @@ -290187,7 +352048,8 @@ public static class AssemblyQuestLoader reference338 = obj312; obj310.Steps = list425; reference336 = obj310; - ref QuestSequence reference339 = ref span146[2]; + num++; + ref QuestSequence reference339 = ref span423[num]; QuestSequence obj313 = new QuestSequence { Sequence = byte.MaxValue @@ -290195,7 +352057,9 @@ public static class AssemblyQuestLoader num2 = 1; List list429 = new List(num2); CollectionsMarshal.SetCount(list429, num2); - CollectionsMarshal.AsSpan(list429)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039933u, new Vector3(-369.2531f, 22.20836f, 403.76892f), 958) + Span span429 = CollectionsMarshal.AsSpan(list429); + index2 = 0; + span429[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039933u, new Vector3(-369.2531f, 22.20836f, 403.76892f), 958) { StopDistance = 5f }; @@ -290208,24 +352072,30 @@ public static class AssemblyQuestLoader num = 1; List list430 = new List(num); CollectionsMarshal.SetCount(list430, num); - CollectionsMarshal.AsSpan(list430)[0] = "liza"; + Span span430 = CollectionsMarshal.AsSpan(list430); + index = 0; + span430[index] = "liza"; questRoot42.Author = list430; - num = 7; - List list431 = new List(num); - CollectionsMarshal.SetCount(list431, num); - Span span150 = CollectionsMarshal.AsSpan(list431); - ref QuestSequence reference340 = ref span150[0]; + index = 7; + List list431 = new List(index); + CollectionsMarshal.SetCount(list431, index); + Span span431 = CollectionsMarshal.AsSpan(list431); + num = 0; + ref QuestSequence reference340 = ref span431[num]; QuestSequence obj314 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list432 = new List(num2); - CollectionsMarshal.SetCount(list432, num2); - CollectionsMarshal.AsSpan(list432)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039940u, new Vector3(-371.29785f, 22.255f, 400.71716f), 958); + index2 = 1; + List list432 = new List(index2); + CollectionsMarshal.SetCount(list432, index2); + Span span432 = CollectionsMarshal.AsSpan(list432); + num2 = 0; + span432[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039940u, new Vector3(-371.29785f, 22.255f, 400.71716f), 958); obj314.Steps = list432; reference340 = obj314; - ref QuestSequence reference341 = ref span150[1]; + num++; + ref QuestSequence reference341 = ref span431[num]; QuestSequence obj315 = new QuestSequence { Sequence = 1 @@ -290233,26 +352103,32 @@ public static class AssemblyQuestLoader num2 = 1; List list433 = new List(num2); CollectionsMarshal.SetCount(list433, num2); - CollectionsMarshal.AsSpan(list433)[0] = new QuestStep(EInteractionType.Interact, 1039942u, new Vector3(-462.57727f, 20.805109f, -340.68823f), 958); + Span span433 = CollectionsMarshal.AsSpan(list433); + index2 = 0; + span433[index2] = new QuestStep(EInteractionType.Interact, 1039942u, new Vector3(-462.57727f, 20.805109f, -340.68823f), 958); obj315.Steps = list433; reference341 = obj315; - ref QuestSequence reference342 = ref span150[2]; + num++; + ref QuestSequence reference342 = ref span431[num]; QuestSequence obj316 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list434 = new List(num2); - CollectionsMarshal.SetCount(list434, num2); - Span span151 = CollectionsMarshal.AsSpan(list434); - span151[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012006u, new Vector3(-602.04474f, 34.286987f, -325.85645f), 958) + index2 = 2; + List list434 = new List(index2); + CollectionsMarshal.SetCount(list434, index2); + Span span434 = CollectionsMarshal.AsSpan(list434); + num2 = 0; + span434[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012006u, new Vector3(-602.04474f, 34.286987f, -325.85645f), 958) { AetherCurrentId = 2818350u }; - span151[1] = new QuestStep(EInteractionType.Interact, 1039946u, new Vector3(-476.0052f, 10.889291f, -678.0652f), 958); + num2++; + span434[num2] = new QuestStep(EInteractionType.Interact, 1039946u, new Vector3(-476.0052f, 10.889291f, -678.0652f), 958); obj316.Steps = list434; reference342 = obj316; - ref QuestSequence reference343 = ref span150[3]; + num++; + ref QuestSequence reference343 = ref span431[num]; QuestSequence obj317 = new QuestSequence { Sequence = 3 @@ -290260,31 +352136,38 @@ public static class AssemblyQuestLoader num2 = 2; List list435 = new List(num2); CollectionsMarshal.SetCount(list435, num2); - Span span152 = CollectionsMarshal.AsSpan(list435); - ref QuestStep reference344 = ref span152[0]; + Span span435 = CollectionsMarshal.AsSpan(list435); + index2 = 0; + ref QuestStep reference344 = ref span435[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1042016u, new Vector3(-483.299f, 10.889291f, -677.4243f), 958); num3 = 1; List list436 = new List(num3); CollectionsMarshal.SetCount(list436, num3); - CollectionsMarshal.AsSpan(list436)[0] = new DialogueChoice + Span span436 = CollectionsMarshal.AsSpan(list436); + index3 = 0; + span436[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB116_04395_Q3_000_206") }; questStep27.DialogueChoices = list436; reference344 = questStep27; - span152[1] = new QuestStep(EInteractionType.Interact, 2012112u, new Vector3(-516.7163f, -190.02063f, -675.288f), 958); + index2++; + span435[index2] = new QuestStep(EInteractionType.Interact, 2012112u, new Vector3(-516.7163f, -190.02063f, -675.288f), 958); obj317.Steps = list435; reference343 = obj317; - ref QuestSequence reference345 = ref span150[4]; + num++; + ref QuestSequence reference345 = ref span431[num]; QuestSequence obj318 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list437 = new List(num2); - CollectionsMarshal.SetCount(list437, num2); - CollectionsMarshal.AsSpan(list437)[0] = new QuestStep(EInteractionType.Duty, null, null, 958) + index2 = 1; + List list437 = new List(index2); + CollectionsMarshal.SetCount(list437, index2); + Span span437 = CollectionsMarshal.AsSpan(list437); + num2 = 0; + span437[num2] = new QuestStep(EInteractionType.Duty, null, null, 958) { DutyOptions = new DutyOptions { @@ -290293,11 +352176,13 @@ public static class AssemblyQuestLoader }; obj318.Steps = list437; reference345 = obj318; - span150[5] = new QuestSequence + num++; + span431[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference346 = ref span150[6]; + num++; + ref QuestSequence reference346 = ref span431[num]; QuestSequence obj319 = new QuestSequence { Sequence = byte.MaxValue @@ -290305,7 +352190,9 @@ public static class AssemblyQuestLoader num2 = 1; List list438 = new List(num2); CollectionsMarshal.SetCount(list438, num2); - CollectionsMarshal.AsSpan(list438)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039969u, new Vector3(2.029419f, 0f, 33.585083f), 1024) + Span span438 = CollectionsMarshal.AsSpan(list438); + index2 = 0; + span438[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039969u, new Vector3(2.029419f, 0f, 33.585083f), 1024) { StopDistance = 4f }; @@ -290318,24 +352205,30 @@ public static class AssemblyQuestLoader num = 1; List list439 = new List(num); CollectionsMarshal.SetCount(list439, num); - CollectionsMarshal.AsSpan(list439)[0] = "liza"; + Span span439 = CollectionsMarshal.AsSpan(list439); + index = 0; + span439[index] = "liza"; questRoot43.Author = list439; - num = 7; - List list440 = new List(num); - CollectionsMarshal.SetCount(list440, num); - Span span153 = CollectionsMarshal.AsSpan(list440); - ref QuestSequence reference347 = ref span153[0]; + index = 7; + List list440 = new List(index); + CollectionsMarshal.SetCount(list440, index); + Span span440 = CollectionsMarshal.AsSpan(list440); + num = 0; + ref QuestSequence reference347 = ref span440[num]; QuestSequence obj320 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list441 = new List(num2); - CollectionsMarshal.SetCount(list441, num2); - CollectionsMarshal.AsSpan(list441)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039974u, new Vector3(2.5177002f, 0f, 26.840576f), 1024); + index2 = 1; + List list441 = new List(index2); + CollectionsMarshal.SetCount(list441, index2); + Span span441 = CollectionsMarshal.AsSpan(list441); + num2 = 0; + span441[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039974u, new Vector3(2.5177002f, 0f, 26.840576f), 1024); obj320.Steps = list441; reference347 = obj320; - ref QuestSequence reference348 = ref span153[1]; + num++; + ref QuestSequence reference348 = ref span440[num]; QuestSequence obj321 = new QuestSequence { Sequence = 1 @@ -290343,12 +352236,16 @@ public static class AssemblyQuestLoader num2 = 1; List list442 = new List(num2); CollectionsMarshal.SetCount(list442, num2); - ref QuestStep reference349 = ref CollectionsMarshal.AsSpan(list442)[0]; + Span span442 = CollectionsMarshal.AsSpan(list442); + index2 = 0; + ref QuestStep reference349 = ref span442[index2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 2012116u, new Vector3(5.585561E-05f, 6.62077f, -0.00103838f), 1024); - num3 = 1; - List list443 = new List(num3); - CollectionsMarshal.SetCount(list443, num3); - CollectionsMarshal.AsSpan(list443)[0] = new DialogueChoice + index3 = 1; + List list443 = new List(index3); + CollectionsMarshal.SetCount(list443, index3); + Span span443 = CollectionsMarshal.AsSpan(list443); + num3 = 0; + span443[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB117_04396_Q1_000_060") @@ -290357,26 +352254,30 @@ public static class AssemblyQuestLoader reference349 = questStep28; obj321.Steps = list442; reference348 = obj321; - span153[2] = new QuestSequence + num++; + span440[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference350 = ref span153[3]; + num++; + ref QuestSequence reference350 = ref span440[num]; QuestSequence obj322 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list444 = new List(num2); - CollectionsMarshal.SetCount(list444, num2); - Span span154 = CollectionsMarshal.AsSpan(list444); - span154[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 959) + index2 = 2; + List list444 = new List(index2); + CollectionsMarshal.SetCount(list444, index2); + Span span444 = CollectionsMarshal.AsSpan(list444); + num2 = 0; + span444[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 959) { DisableNavmesh = true, Mount = true, Aetheryte = EAetheryteLocation.MareLamentorumSinusLacrimarum }; - ref QuestStep reference351 = ref span154[1]; + num2++; + ref QuestStep reference351 = ref span444[num2]; QuestStep obj323 = new QuestStep(EInteractionType.Combat, 1039977u, new Vector3(-627.49677f, 128.67758f, 632.41016f), 959) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -290384,12 +352285,15 @@ public static class AssemblyQuestLoader num3 = 1; List list445 = new List(num3); CollectionsMarshal.SetCount(list445, num3); - CollectionsMarshal.AsSpan(list445)[0] = 14077u; + Span span445 = CollectionsMarshal.AsSpan(list445); + index3 = 0; + span445[index3] = 14077u; obj323.KillEnemyDataIds = list445; reference351 = obj323; obj322.Steps = list444; reference350 = obj322; - ref QuestSequence reference352 = ref span153[4]; + num++; + ref QuestSequence reference352 = ref span440[num]; QuestSequence obj324 = new QuestSequence { Sequence = 4 @@ -290397,21 +352301,27 @@ public static class AssemblyQuestLoader num2 = 1; List list446 = new List(num2); CollectionsMarshal.SetCount(list446, num2); - CollectionsMarshal.AsSpan(list446)[0] = new QuestStep(EInteractionType.Interact, 1039977u, new Vector3(-627.49677f, 128.67758f, 632.41016f), 959); + Span span446 = CollectionsMarshal.AsSpan(list446); + index2 = 0; + span446[index2] = new QuestStep(EInteractionType.Interact, 1039977u, new Vector3(-627.49677f, 128.67758f, 632.41016f), 959); obj324.Steps = list446; reference352 = obj324; - ref QuestSequence reference353 = ref span153[5]; + num++; + ref QuestSequence reference353 = ref span440[num]; QuestSequence obj325 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list447 = new List(num2); - CollectionsMarshal.SetCount(list447, num2); - CollectionsMarshal.AsSpan(list447)[0] = new QuestStep(EInteractionType.Interact, 2012118u, new Vector3(-423.9109f, 136.9497f, 573.47986f), 959); + index2 = 1; + List list447 = new List(index2); + CollectionsMarshal.SetCount(list447, index2); + Span span447 = CollectionsMarshal.AsSpan(list447); + num2 = 0; + span447[num2] = new QuestStep(EInteractionType.Interact, 2012118u, new Vector3(-423.9109f, 136.9497f, 573.47986f), 959); obj325.Steps = list447; reference353 = obj325; - ref QuestSequence reference354 = ref span153[6]; + num++; + ref QuestSequence reference354 = ref span440[num]; QuestSequence obj326 = new QuestSequence { Sequence = byte.MaxValue @@ -290419,7 +352329,9 @@ public static class AssemblyQuestLoader num2 = 1; List list448 = new List(num2); CollectionsMarshal.SetCount(list448, num2); - CollectionsMarshal.AsSpan(list448)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042050u, new Vector3(-383.04724f, 169.00394f, 547.5393f), 959); + Span span448 = CollectionsMarshal.AsSpan(list448); + index2 = 0; + span448[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042050u, new Vector3(-383.04724f, 169.00394f, 547.5393f), 959); obj326.Steps = list448; reference354 = obj326; questRoot43.QuestSequence = list440; @@ -290429,24 +352341,30 @@ public static class AssemblyQuestLoader num = 1; List list449 = new List(num); CollectionsMarshal.SetCount(list449, num); - CollectionsMarshal.AsSpan(list449)[0] = "liza"; + Span span449 = CollectionsMarshal.AsSpan(list449); + index = 0; + span449[index] = "liza"; questRoot44.Author = list449; - num = 10; - List list450 = new List(num); - CollectionsMarshal.SetCount(list450, num); - Span span155 = CollectionsMarshal.AsSpan(list450); - ref QuestSequence reference355 = ref span155[0]; + index = 10; + List list450 = new List(index); + CollectionsMarshal.SetCount(list450, index); + Span span450 = CollectionsMarshal.AsSpan(list450); + num = 0; + ref QuestSequence reference355 = ref span450[num]; QuestSequence obj327 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list451 = new List(num2); - CollectionsMarshal.SetCount(list451, num2); - CollectionsMarshal.AsSpan(list451)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039978u, new Vector3(-383.04724f, 169.00394f, 547.5393f), 959); + index2 = 1; + List list451 = new List(index2); + CollectionsMarshal.SetCount(list451, index2); + Span span451 = CollectionsMarshal.AsSpan(list451); + num2 = 0; + span451[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039978u, new Vector3(-383.04724f, 169.00394f, 547.5393f), 959); obj327.Steps = list451; reference355 = obj327; - ref QuestSequence reference356 = ref span155[1]; + num++; + ref QuestSequence reference356 = ref span450[num]; QuestSequence obj328 = new QuestSequence { Sequence = 1 @@ -290454,30 +352372,37 @@ public static class AssemblyQuestLoader num2 = 3; List list452 = new List(num2); CollectionsMarshal.SetCount(list452, num2); - Span span156 = CollectionsMarshal.AsSpan(list452); - span156[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-394.84747f, 169.00388f, 554.70496f), 959); - span156[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-381.02145f, 169.08925f, 546.18756f), 959) + Span span452 = CollectionsMarshal.AsSpan(list452); + index2 = 0; + span452[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-394.84747f, 169.00388f, 554.70496f), 959); + index2++; + span452[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-381.02145f, 169.08925f, 546.18756f), 959) { DisableNavmesh = true }; - span156[2] = new QuestStep(EInteractionType.Interact, 1039979u, new Vector3(-351.97992f, 103.09564f, 514.4884f), 959) + index2++; + span452[index2] = new QuestStep(EInteractionType.Interact, 1039979u, new Vector3(-351.97992f, 103.09564f, 514.4884f), 959) { DisableNavmesh = true }; obj328.Steps = list452; reference356 = obj328; - ref QuestSequence reference357 = ref span155[2]; + num++; + ref QuestSequence reference357 = ref span450[num]; QuestSequence obj329 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list453 = new List(num2); - CollectionsMarshal.SetCount(list453, num2); - CollectionsMarshal.AsSpan(list453)[0] = new QuestStep(EInteractionType.Interact, 1039980u, new Vector3(-262.3484f, 75.328064f, 500.08386f), 959); + index2 = 1; + List list453 = new List(index2); + CollectionsMarshal.SetCount(list453, index2); + Span span453 = CollectionsMarshal.AsSpan(list453); + num2 = 0; + span453[num2] = new QuestStep(EInteractionType.Interact, 1039980u, new Vector3(-262.3484f, 75.328064f, 500.08386f), 959); obj329.Steps = list453; reference357 = obj329; - ref QuestSequence reference358 = ref span155[3]; + num++; + ref QuestSequence reference358 = ref span450[num]; QuestSequence obj330 = new QuestSequence { Sequence = 3 @@ -290485,21 +352410,27 @@ public static class AssemblyQuestLoader num2 = 1; List list454 = new List(num2); CollectionsMarshal.SetCount(list454, num2); - CollectionsMarshal.AsSpan(list454)[0] = new QuestStep(EInteractionType.Interact, 1039981u, new Vector3(-258.56415f, 73.19127f, 455.49695f), 959); + Span span454 = CollectionsMarshal.AsSpan(list454); + index2 = 0; + span454[index2] = new QuestStep(EInteractionType.Interact, 1039981u, new Vector3(-258.56415f, 73.19127f, 455.49695f), 959); obj330.Steps = list454; reference358 = obj330; - ref QuestSequence reference359 = ref span155[4]; + num++; + ref QuestSequence reference359 = ref span450[num]; QuestSequence obj331 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list455 = new List(num2); - CollectionsMarshal.SetCount(list455, num2); - CollectionsMarshal.AsSpan(list455)[0] = new QuestStep(EInteractionType.Interact, 1039982u, new Vector3(-193.13348f, 57.684105f, 410.849f), 959); + index2 = 1; + List list455 = new List(index2); + CollectionsMarshal.SetCount(list455, index2); + Span span455 = CollectionsMarshal.AsSpan(list455); + num2 = 0; + span455[num2] = new QuestStep(EInteractionType.Interact, 1039982u, new Vector3(-193.13348f, 57.684105f, 410.849f), 959); obj331.Steps = list455; reference359 = obj331; - ref QuestSequence reference360 = ref span155[5]; + num++; + ref QuestSequence reference360 = ref span450[num]; QuestSequence obj332 = new QuestSequence { Sequence = 5 @@ -290507,56 +352438,71 @@ public static class AssemblyQuestLoader num2 = 9; List list456 = new List(num2); CollectionsMarshal.SetCount(list456, num2); - Span span157 = CollectionsMarshal.AsSpan(list456); - span157[0] = new QuestStep(EInteractionType.Interact, 1039985u, new Vector3(-189.92908f, 58.229942f, 419.7605f), 959) + Span span456 = CollectionsMarshal.AsSpan(list456); + index2 = 0; + span456[index2] = new QuestStep(EInteractionType.Interact, 1039985u, new Vector3(-189.92908f, 58.229942f, 419.7605f), 959) { NpcWaitDistance = 5f }; - span157[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(-144.128f, 57.30617f, 459.4606f), 959) + index2++; + span456[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(-144.128f, 57.30617f, 459.4606f), 959) { NpcWaitDistance = 1f, Mount = true }; - span157[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(-67.99789f, 52.72147f, 481.2938f), 959) + index2++; + span456[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(-67.99789f, 52.72147f, 481.2938f), 959) { NpcWaitDistance = 1f }; - span157[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-50.280434f, 42.36871f, 467.25403f), 959); - span157[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(19.588282f, 34.185432f, 427.5583f), 959) + index2++; + span456[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-50.280434f, 42.36871f, 467.25403f), 959); + index2++; + span456[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(19.588282f, 34.185432f, 427.5583f), 959) { NpcWaitDistance = 1f }; - span157[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(104.9116f, 41.95557f, 455.229f), 959) + index2++; + span456[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(104.9116f, 41.95557f, 455.229f), 959) { NpcWaitDistance = 1f }; - span157[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(118.55694f, 46.506252f, 456.90314f), 959); - span157[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(131.81705f, 54.55443f, 468.51056f), 959); - span157[8] = new QuestStep(EInteractionType.WalkTo, 1039986u, new Vector3(43.9917f, 59.052986f, 523.5217f), 959); + index2++; + span456[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(118.55694f, 46.506252f, 456.90314f), 959); + index2++; + span456[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(131.81705f, 54.55443f, 468.51056f), 959); + index2++; + span456[index2] = new QuestStep(EInteractionType.WalkTo, 1039986u, new Vector3(43.9917f, 59.052986f, 523.5217f), 959); obj332.Steps = list456; reference360 = obj332; - ref QuestSequence reference361 = ref span155[6]; + num++; + ref QuestSequence reference361 = ref span450[num]; QuestSequence obj333 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list457 = new List(num2); - CollectionsMarshal.SetCount(list457, num2); - ref QuestStep reference362 = ref CollectionsMarshal.AsSpan(list457)[0]; + index2 = 1; + List list457 = new List(index2); + CollectionsMarshal.SetCount(list457, index2); + Span span457 = CollectionsMarshal.AsSpan(list457); + num2 = 0; + ref QuestStep reference362 = ref span457[num2]; QuestStep obj334 = new QuestStep(EInteractionType.Combat, 1039983u, new Vector3(20.187622f, 59.184967f, 523.24695f), 959) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list458 = new List(num3); - CollectionsMarshal.SetCount(list458, num3); - CollectionsMarshal.AsSpan(list458)[0] = 14076u; + index3 = 1; + List list458 = new List(index3); + CollectionsMarshal.SetCount(list458, index3); + Span span458 = CollectionsMarshal.AsSpan(list458); + num3 = 0; + span458[num3] = 14076u; obj334.KillEnemyDataIds = list458; reference362 = obj334; obj333.Steps = list457; reference361 = obj333; - ref QuestSequence reference363 = ref span155[7]; + num++; + ref QuestSequence reference363 = ref span450[num]; QuestSequence obj335 = new QuestSequence { Sequence = 7 @@ -290564,35 +352510,44 @@ public static class AssemblyQuestLoader num2 = 1; List list459 = new List(num2); CollectionsMarshal.SetCount(list459, num2); - CollectionsMarshal.AsSpan(list459)[0] = new QuestStep(EInteractionType.Interact, 1039983u, new Vector3(20.187622f, 59.184967f, 523.24695f), 959); + Span span459 = CollectionsMarshal.AsSpan(list459); + index2 = 0; + span459[index2] = new QuestStep(EInteractionType.Interact, 1039983u, new Vector3(20.187622f, 59.184967f, 523.24695f), 959); obj335.Steps = list459; reference363 = obj335; - ref QuestSequence reference364 = ref span155[8]; + num++; + ref QuestSequence reference364 = ref span450[num]; QuestSequence obj336 = new QuestSequence { Sequence = 8 }; - num2 = 5; - List list460 = new List(num2); - CollectionsMarshal.SetCount(list460, num2); - Span span158 = CollectionsMarshal.AsSpan(list460); - span158[0] = new QuestStep(EInteractionType.Interact, 1039986u, new Vector3(43.9917f, 59.052986f, 523.5217f), 959); - span158[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039986u, new Vector3(87.202805f, 66.4619f, 565.21094f), 959) + index2 = 5; + List list460 = new List(index2); + CollectionsMarshal.SetCount(list460, index2); + Span span460 = CollectionsMarshal.AsSpan(list460); + num2 = 0; + span460[num2] = new QuestStep(EInteractionType.Interact, 1039986u, new Vector3(43.9917f, 59.052986f, 523.5217f), 959); + num2++; + span460[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039986u, new Vector3(87.202805f, 66.4619f, 565.21094f), 959) { NpcWaitDistance = 1f }; - span158[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039986u, new Vector3(193.26242f, 105.96505f, 674.10205f), 959) + num2++; + span460[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039986u, new Vector3(193.26242f, 105.96505f, 674.10205f), 959) { NpcWaitDistance = 1f }; - span158[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039986u, new Vector3(216.4619f, 74.850296f, 526.7501f), 959) + num2++; + span460[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039986u, new Vector3(216.4619f, 74.850296f, 526.7501f), 959) { NpcWaitDistance = 1f }; - span158[4] = new QuestStep(EInteractionType.Interact, 1039987u, new Vector3(189.25769f, 63.36112f, 467.46008f), 959); + num2++; + span460[num2] = new QuestStep(EInteractionType.Interact, 1039987u, new Vector3(189.25769f, 63.36112f, 467.46008f), 959); obj336.Steps = list460; reference364 = obj336; - ref QuestSequence reference365 = ref span155[9]; + num++; + ref QuestSequence reference365 = ref span450[num]; QuestSequence obj337 = new QuestSequence { Sequence = byte.MaxValue @@ -290600,7 +352555,9 @@ public static class AssemblyQuestLoader num2 = 1; List list461 = new List(num2); CollectionsMarshal.SetCount(list461, num2); - CollectionsMarshal.AsSpan(list461)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039984u, new Vector3(183.39807f, 58.834427f, 427.29822f), 959); + Span span461 = CollectionsMarshal.AsSpan(list461); + index2 = 0; + span461[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039984u, new Vector3(183.39807f, 58.834427f, 427.29822f), 959); obj337.Steps = list461; reference365 = obj337; questRoot44.QuestSequence = list450; @@ -290610,26 +352567,33 @@ public static class AssemblyQuestLoader num = 1; List list462 = new List(num); CollectionsMarshal.SetCount(list462, num); - CollectionsMarshal.AsSpan(list462)[0] = "liza"; + Span span462 = CollectionsMarshal.AsSpan(list462); + index = 0; + span462[index] = "liza"; questRoot45.Author = list462; - num = 5; - List list463 = new List(num); - CollectionsMarshal.SetCount(list463, num); - Span span159 = CollectionsMarshal.AsSpan(list463); - ref QuestSequence reference366 = ref span159[0]; + index = 5; + List list463 = new List(index); + CollectionsMarshal.SetCount(list463, index); + Span span463 = CollectionsMarshal.AsSpan(list463); + num = 0; + ref QuestSequence reference366 = ref span463[num]; QuestSequence obj338 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list464 = new List(num2); - CollectionsMarshal.SetCount(list464, num2); - ref QuestStep reference367 = ref CollectionsMarshal.AsSpan(list464)[0]; + index2 = 1; + List list464 = new List(index2); + CollectionsMarshal.SetCount(list464, index2); + Span span464 = CollectionsMarshal.AsSpan(list464); + num2 = 0; + ref QuestStep reference367 = ref span464[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.AcceptQuest, 1039987u, new Vector3(189.25769f, 63.36112f, 467.46008f), 959); num3 = 1; List list465 = new List(num3); CollectionsMarshal.SetCount(list465, num3); - CollectionsMarshal.AsSpan(list465)[0] = new DialogueChoice + Span span465 = CollectionsMarshal.AsSpan(list465); + index3 = 0; + span465[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMB119_04398_Q1_000_001"), @@ -290639,7 +352603,8 @@ public static class AssemblyQuestLoader reference367 = questStep29; obj338.Steps = list464; reference366 = obj338; - ref QuestSequence reference368 = ref span159[1]; + num++; + ref QuestSequence reference368 = ref span463[num]; QuestSequence obj339 = new QuestSequence { Sequence = 1 @@ -290647,12 +352612,16 @@ public static class AssemblyQuestLoader num2 = 1; List list466 = new List(num2); CollectionsMarshal.SetCount(list466, num2); - ref QuestStep reference369 = ref CollectionsMarshal.AsSpan(list466)[0]; + Span span466 = CollectionsMarshal.AsSpan(list466); + index2 = 0; + ref QuestStep reference369 = ref span466[index2]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1039987u, new Vector3(189.25769f, 63.36112f, 467.46008f), 959); - num3 = 1; - List list467 = new List(num3); - CollectionsMarshal.SetCount(list467, num3); - CollectionsMarshal.AsSpan(list467)[0] = new DialogueChoice + index3 = 1; + List list467 = new List(index3); + CollectionsMarshal.SetCount(list467, index3); + Span span467 = CollectionsMarshal.AsSpan(list467); + num3 = 0; + span467[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB119_04398_Q2_000_010") @@ -290661,15 +352630,18 @@ public static class AssemblyQuestLoader reference369 = questStep30; obj339.Steps = list466; reference368 = obj339; - ref QuestSequence reference370 = ref span159[2]; + num++; + ref QuestSequence reference370 = ref span463[num]; QuestSequence obj340 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list468 = new List(num2); - CollectionsMarshal.SetCount(list468, num2); - CollectionsMarshal.AsSpan(list468)[0] = new QuestStep(EInteractionType.Duty, null, null, 1028) + index2 = 1; + List list468 = new List(index2); + CollectionsMarshal.SetCount(list468, index2); + Span span468 = CollectionsMarshal.AsSpan(list468); + num2 = 0; + span468[num2] = new QuestStep(EInteractionType.Duty, null, null, 1028) { Comment = "The Dark Inside", DutyOptions = new DutyOptions @@ -290679,11 +352651,13 @@ public static class AssemblyQuestLoader }; obj340.Steps = list468; reference370 = obj340; - span159[3] = new QuestSequence + num++; + span463[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference371 = ref span159[4]; + num++; + ref QuestSequence reference371 = ref span463[num]; QuestSequence obj341 = new QuestSequence { Sequence = byte.MaxValue @@ -290691,7 +352665,9 @@ public static class AssemblyQuestLoader num2 = 1; List list469 = new List(num2); CollectionsMarshal.SetCount(list469, num2); - CollectionsMarshal.AsSpan(list469)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039989u, new Vector3(-279.95728f, 76.14732f, 480.91858f), 959) + Span span469 = CollectionsMarshal.AsSpan(list469); + index2 = 0; + span469[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039989u, new Vector3(-279.95728f, 76.14732f, 480.91858f), 959) { StopDistance = 5f }; @@ -290704,27 +352680,33 @@ public static class AssemblyQuestLoader num = 1; List list470 = new List(num); CollectionsMarshal.SetCount(list470, num); - CollectionsMarshal.AsSpan(list470)[0] = "liza"; + Span span470 = CollectionsMarshal.AsSpan(list470); + index = 0; + span470[index] = "liza"; questRoot46.Author = list470; - num = 7; - List list471 = new List(num); - CollectionsMarshal.SetCount(list471, num); - Span span160 = CollectionsMarshal.AsSpan(list471); - ref QuestSequence reference372 = ref span160[0]; + index = 7; + List list471 = new List(index); + CollectionsMarshal.SetCount(list471, index); + Span span471 = CollectionsMarshal.AsSpan(list471); + num = 0; + ref QuestSequence reference372 = ref span471[num]; QuestSequence obj342 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list472 = new List(num2); - CollectionsMarshal.SetCount(list472, num2); - CollectionsMarshal.AsSpan(list472)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039989u, new Vector3(-279.95728f, 76.14732f, 480.91858f), 959) + index2 = 1; + List list472 = new List(index2); + CollectionsMarshal.SetCount(list472, index2); + Span span472 = CollectionsMarshal.AsSpan(list472); + num2 = 0; + span472[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039989u, new Vector3(-279.95728f, 76.14732f, 480.91858f), 959) { StopDistance = 5f }; obj342.Steps = list472; reference372 = obj342; - ref QuestSequence reference373 = ref span160[1]; + num++; + ref QuestSequence reference373 = ref span471[num]; QuestSequence obj343 = new QuestSequence { Sequence = 1 @@ -290732,25 +352714,31 @@ public static class AssemblyQuestLoader num2 = 1; List list473 = new List(num2); CollectionsMarshal.SetCount(list473, num2); - CollectionsMarshal.AsSpan(list473)[0] = new QuestStep(EInteractionType.Interact, 1038872u, new Vector3(-434.13446f, 136.0188f, 570.1228f), 959); + Span span473 = CollectionsMarshal.AsSpan(list473); + index2 = 0; + span473[index2] = new QuestStep(EInteractionType.Interact, 1038872u, new Vector3(-434.13446f, 136.0188f, 570.1228f), 959); obj343.Steps = list473; reference373 = obj343; - ref QuestSequence reference374 = ref span160[2]; + num++; + ref QuestSequence reference374 = ref span471[num]; QuestSequence obj344 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list474 = new List(num2); - CollectionsMarshal.SetCount(list474, num2); - CollectionsMarshal.AsSpan(list474)[0] = new QuestStep(EInteractionType.Interact, 2012173u, new Vector3(-409.75055f, 172.25903f, 548.94324f), 959) + index2 = 1; + List list474 = new List(index2); + CollectionsMarshal.SetCount(list474, index2); + Span span474 = CollectionsMarshal.AsSpan(list474); + num2 = 0; + span474[num2] = new QuestStep(EInteractionType.Interact, 2012173u, new Vector3(-409.75055f, 172.25903f, 548.94324f), 959) { StopDistance = 5f, IgnoreDistanceToObject = true }; obj344.Steps = list474; reference374 = obj344; - ref QuestSequence reference375 = ref span160[3]; + num++; + ref QuestSequence reference375 = ref span471[num]; QuestSequence obj345 = new QuestSequence { Sequence = 3 @@ -290758,29 +352746,35 @@ public static class AssemblyQuestLoader num2 = 1; List list475 = new List(num2); CollectionsMarshal.SetCount(list475, num2); - CollectionsMarshal.AsSpan(list475)[0] = new QuestStep(EInteractionType.Interact, 2012174u, new Vector3(-446.09753f, 163.31726f, 593.0419f), 959) + Span span475 = CollectionsMarshal.AsSpan(list475); + index2 = 0; + span475[index2] = new QuestStep(EInteractionType.Interact, 2012174u, new Vector3(-446.09753f, 163.31726f, 593.0419f), 959) { StopDistance = 5f, IgnoreDistanceToObject = true }; obj345.Steps = list475; reference375 = obj345; - ref QuestSequence reference376 = ref span160[4]; + num++; + ref QuestSequence reference376 = ref span471[num]; QuestSequence obj346 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list476 = new List(num2); - CollectionsMarshal.SetCount(list476, num2); - CollectionsMarshal.AsSpan(list476)[0] = new QuestStep(EInteractionType.Interact, 2012175u, new Vector3(-407.37012f, 156.8169f, 594.23206f), 959) + index2 = 1; + List list476 = new List(index2); + CollectionsMarshal.SetCount(list476, index2); + Span span476 = CollectionsMarshal.AsSpan(list476); + num2 = 0; + span476[num2] = new QuestStep(EInteractionType.Interact, 2012175u, new Vector3(-407.37012f, 156.8169f, 594.23206f), 959) { StopDistance = 5f, IgnoreDistanceToObject = true }; obj346.Steps = list476; reference376 = obj346; - ref QuestSequence reference377 = ref span160[5]; + num++; + ref QuestSequence reference377 = ref span471[num]; QuestSequence obj347 = new QuestSequence { Sequence = 5 @@ -290788,22 +352782,27 @@ public static class AssemblyQuestLoader num2 = 1; List list477 = new List(num2); CollectionsMarshal.SetCount(list477, num2); - CollectionsMarshal.AsSpan(list477)[0] = new QuestStep(EInteractionType.Interact, 2012176u, new Vector3(-399.588f, 147.4784f, 566.1554f), 959) + Span span477 = CollectionsMarshal.AsSpan(list477); + index2 = 0; + span477[index2] = new QuestStep(EInteractionType.Interact, 2012176u, new Vector3(-399.588f, 147.4784f, 566.1554f), 959) { StopDistance = 5f, IgnoreDistanceToObject = true }; obj347.Steps = list477; reference377 = obj347; - ref QuestSequence reference378 = ref span160[6]; + num++; + ref QuestSequence reference378 = ref span471[num]; QuestSequence obj348 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list478 = new List(num2); - CollectionsMarshal.SetCount(list478, num2); - CollectionsMarshal.AsSpan(list478)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038876u, new Vector3(-445.54822f, 136.0188f, 552.5748f), 959); + index2 = 1; + List list478 = new List(index2); + CollectionsMarshal.SetCount(list478, index2); + Span span478 = CollectionsMarshal.AsSpan(list478); + num2 = 0; + span478[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038876u, new Vector3(-445.54822f, 136.0188f, 552.5748f), 959); obj348.Steps = list478; reference378 = obj348; questRoot46.QuestSequence = list471; @@ -290818,14 +352817,17 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot2.Author = list; QuestRoot questRoot3 = questRoot; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 7; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -290833,35 +352835,45 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038880u, new Vector3(-382.2843f, 169.00394f, 549.6758f), 959) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038880u, new Vector3(-382.2843f, 169.00394f, 549.6758f), 959) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence2 = questSequence; - num2 = 6; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-326.42538f, 98.98749f, 526.5519f), 959) + index2 = 6; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-326.42538f, 98.98749f, 526.5519f), 959) { DisableNavmesh = true, Mount = true }; - span2[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-50.482517f, 42.360725f, 466.64243f), 959); - span2[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(113.70272f, 45.552776f, 460.49585f), 959); - span2[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.9883f, 54.543076f, 468.93378f), 959); - span2[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(126.817184f, 55.823048f, 476.34058f), 959); - span2[5] = new QuestStep(EInteractionType.Interact, 1038884u, new Vector3(295.1858f, 87.78831f, 538.8723f), 959); + num2++; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-50.482517f, 42.360725f, 466.64243f), 959); + num2++; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(113.70272f, 45.552776f, 460.49585f), 959); + num2++; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.9883f, 54.543076f, 468.93378f), 959); + num2++; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(126.817184f, 55.823048f, 476.34058f), 959); + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 1038884u, new Vector3(295.1858f, 87.78831f, 538.8723f), 959); questSequence2.Steps = list4; reference2 = questSequence; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 2 @@ -290869,21 +352881,27 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1038888u, new Vector3(446.95203f, 69.15293f, 540.032f), 959); + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1038888u, new Vector3(446.95203f, 69.15293f, 540.032f), 959); obj2.Steps = list5; reference3 = obj2; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 2012177u, new Vector3(486.71704f, 70.69495f, 538.90283f), 959); + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Interact, 2012177u, new Vector3(486.71704f, 70.69495f, 538.90283f), 959); obj3.Steps = list6; reference4 = obj3; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 4 @@ -290891,19 +352909,24 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1040516u, new Vector3(205.52368f, 59.358307f, 405.87463f), 959); + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.Interact, 1040516u, new Vector3(205.52368f, 59.358307f, 405.87463f), 959); obj4.Steps = list7; reference5 = obj4; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; questSequence = new QuestSequence { Sequence = 5 }; QuestSequence questSequence3 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span8 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference7 = ref span8[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 1040518u, new Vector3(205.06592f, 59.911327f, 411.42883f), 959) { StopDistance = 5f @@ -290911,7 +352934,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = new DialogueChoice + Span span9 = CollectionsMarshal.AsSpan(list8); + int index3 = 0; + span9[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC102_04400_Q1_000_151") @@ -290920,7 +352945,8 @@ public static class AssemblyQuestLoader reference7 = obj5; questSequence3.Steps = list4; reference6 = questSequence; - ref QuestSequence reference8 = ref span[6]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -290928,7 +352954,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038894u, new Vector3(2.670288f, -49.8925f, -366.0487f), 959); + Span span10 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038894u, new Vector3(2.670288f, -49.8925f, -366.0487f), 959); obj6.Steps = list9; reference8 = obj6; questRoot3.QuestSequence = list2; @@ -290939,25 +352967,31 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "liza"; + Span span11 = CollectionsMarshal.AsSpan(list10); + index = 0; + span11[index] = "liza"; questRoot4.Author = list10; QuestRoot questRoot5 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span3 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference9 = ref span3[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span12 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference9 = ref span12[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038894u, new Vector3(2.670288f, -49.8925f, -366.0487f), 959); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span13 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038894u, new Vector3(2.670288f, -49.8925f, -366.0487f), 959); obj7.Steps = list11; reference9 = obj7; - ref QuestSequence reference10 = ref span3[1]; + num++; + ref QuestSequence reference10 = ref span12[num]; questSequence = new QuestSequence { Sequence = 1 @@ -290966,37 +353000,44 @@ public static class AssemblyQuestLoader num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span4 = CollectionsMarshal.AsSpan(list4); - span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(11.922524f, -105.8306f, -397.17743f), 959) + Span span14 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(11.922524f, -105.8306f, -397.17743f), 959) { DisableNavmesh = true, Mount = true }; - span4[1] = new QuestStep(EInteractionType.Interact, 1038897u, new Vector3(30.838379f, -132.94641f, -435.47723f), 959); + index2++; + span14[index2] = new QuestStep(EInteractionType.Interact, 1038897u, new Vector3(30.838379f, -132.94641f, -435.47723f), 959); questSequence4.Steps = list4; reference10 = questSequence; - ref QuestSequence reference11 = ref span3[2]; + num++; + ref QuestSequence reference11 = ref span12[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence5 = questSequence; - num2 = 3; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span5 = CollectionsMarshal.AsSpan(list4); - span5[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 959) + index2 = 3; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span15 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 959) { Aetheryte = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span5[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(36.500526f, -129.20917f, -521.85284f), 959); - span5[2] = new QuestStep(EInteractionType.Interact, 1038901u, new Vector3(120.531006f, -132.86647f, -555.0164f), 959) + num2++; + span15[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(36.500526f, -129.20917f, -521.85284f), 959); + num2++; + span15[num2] = new QuestStep(EInteractionType.Interact, 1038901u, new Vector3(120.531006f, -132.86647f, -555.0164f), 959) { DisableNavmesh = true }; questSequence5.Steps = list4; reference11 = questSequence; - ref QuestSequence reference12 = ref span3[3]; + num++; + ref QuestSequence reference12 = ref span12[num]; QuestSequence obj8 = new QuestSequence { Sequence = 3 @@ -291004,26 +353045,33 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1038902u, new Vector3(-124.864624f, -132.87448f, -471.91577f), 959); + Span span16 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.Interact, 1038902u, new Vector3(-124.864624f, -132.87448f, -471.91577f), 959); obj8.Steps = list12; reference12 = obj8; - ref QuestSequence reference13 = ref span3[4]; + num++; + ref QuestSequence reference13 = ref span12[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence6 = questSequence; - num2 = 4; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span6 = CollectionsMarshal.AsSpan(list4); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-9.783533f, -49.589592f, -339.60205f), 959); - span6[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.39724f, -49.589592f, -336.63968f), 959); - span6[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.34293f, -49.589592f, -367.6591f), 959) + index2 = 4; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span17 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-9.783533f, -49.589592f, -339.60205f), 959); + num2++; + span17[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.39724f, -49.589592f, -336.63968f), 959); + num2++; + span17[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.34293f, -49.589592f, -367.6591f), 959) { DisableNavmesh = true }; - span6[3] = new QuestStep(EInteractionType.CompleteQuest, 1038903u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959); + num2++; + span17[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038903u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959); questSequence6.Steps = list4; reference13 = questSequence; questRoot5.QuestSequence = list2; @@ -291034,14 +353082,17 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + Span span18 = CollectionsMarshal.AsSpan(list13); + index = 0; + span18[index] = "liza"; questRoot6.Author = list13; QuestRoot questRoot7 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span7 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference14 = ref span7[0]; + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span19 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference14 = ref span19[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -291049,30 +353100,36 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039686u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959); + Span span20 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span20[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039686u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959); obj9.Steps = list14; reference14 = obj9; - ref QuestSequence reference15 = ref span7[1]; + num++; + ref QuestSequence reference15 = ref span19[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence7 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span8 = CollectionsMarshal.AsSpan(list4); - span8[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012013u, new Vector3(29.1046f, -47.739f, -550.4077f), 959) + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span21 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012013u, new Vector3(29.1046f, -47.739f, -550.4077f), 959) { AetherCurrentId = 2818362u }; - span8[1] = new QuestStep(EInteractionType.Interact, 1038908u, new Vector3(-456.10742f, -168f, -618.7686f), 959) + num2++; + span21[num2] = new QuestStep(EInteractionType.Interact, 1038908u, new Vector3(-456.10742f, -168f, -618.7686f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; questSequence7.Steps = list4; reference15 = questSequence; - ref QuestSequence reference16 = ref span7[2]; + num++; + ref QuestSequence reference16 = ref span19[num]; questSequence = new QuestSequence { Sequence = 2 @@ -291081,8 +353138,9 @@ public static class AssemblyQuestLoader num2 = 9; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span9 = CollectionsMarshal.AsSpan(list4); - span9[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-451.1233f, -168f, -623.01324f), 959) + Span span22 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-451.1233f, -168f, -623.01324f), 959) { StopDistance = 1f, Mount = false, @@ -291092,7 +353150,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-448.59048f, -166.16438f, -628.15826f) } }; - span9[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-448.59048f, -166.16438f, -628.15826f), 959) + index2++; + span22[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-448.59048f, -166.16438f, -628.15826f), 959) { Comment = "Platform 2", JumpDestination = new JumpDestination @@ -291100,7 +353159,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-446.64853f, -164.36438f, -633.6268f) } }; - span9[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-446.64853f, -164.36438f, -633.6268f), 959) + index2++; + span22[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-446.64853f, -164.36438f, -633.6268f), 959) { Comment = "Platform 3", JumpDestination = new JumpDestination @@ -291108,7 +353168,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-445.29623f, -162.56439f, -639.4988f) } }; - span9[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-445.29623f, -162.56439f, -639.4988f), 959) + index2++; + span22[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-445.29623f, -162.56439f, -639.4988f), 959) { Comment = "Platform 4", JumpDestination = new JumpDestination @@ -291117,7 +353178,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.7f } }; - span9[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(-444.56757f, -160.76439f, -644.749f), 959) + index2++; + span22[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-444.56757f, -160.76439f, -644.749f), 959) { Comment = "Platform 5", JumpDestination = new JumpDestination @@ -291125,7 +353187,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-445.23477f, -158.96439f, -651.54956f) } }; - span9[5] = new QuestStep(EInteractionType.Jump, null, new Vector3(-445.23477f, -158.96439f, -651.54956f), 959) + index2++; + span22[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-445.23477f, -158.96439f, -651.54956f), 959) { Comment = "Platform 6", JumpDestination = new JumpDestination @@ -291134,7 +353197,8 @@ public static class AssemblyQuestLoader DelaySeconds = 1f } }; - span9[6] = new QuestStep(EInteractionType.Jump, null, new Vector3(-446.45673f, -157.16441f, -658.25415f), 959) + index2++; + span22[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-446.45673f, -157.16441f, -658.25415f), 959) { Comment = "Platform 7", JumpDestination = new JumpDestination @@ -291142,7 +353206,8 @@ public static class AssemblyQuestLoader Position = new Vector3(-449.8167f, -155.36438f, -663.3387f) } }; - span9[7] = new QuestStep(EInteractionType.Jump, null, new Vector3(-449.8167f, -155.36438f, -663.3387f), 959) + index2++; + span22[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-449.8167f, -155.36438f, -663.3387f), 959) { Comment = "Jump onto the big thing", JumpDestination = new JumpDestination @@ -291150,23 +353215,26 @@ public static class AssemblyQuestLoader Position = new Vector3(-458.69357f, -155.56349f, -661.287f) } }; - ref QuestStep reference17 = ref span9[8]; + index2++; + ref QuestStep reference17 = ref span22[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2012178u, new Vector3(-486.59497f, -154.37555f, -689.26526f), 959) { StopDistance = 3f }; QuestStep questStep2 = questStep; - num3 = 2; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span10 = CollectionsMarshal.AsSpan(list15); - span10[0] = new DialogueChoice + index3 = 2; + List list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + Span span23 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span23[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMC104_04402_Q1_000_071"), Answer = new ExcelRef("TEXT_AKTKMC104_04402_A1_000_074") }; - span10[1] = new DialogueChoice + num3++; + span23[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC104_04402_Q2_000_081") @@ -291175,21 +353243,24 @@ public static class AssemblyQuestLoader reference17 = questStep; questSequence8.Steps = list4; reference16 = questSequence; - ref QuestSequence reference18 = ref span7[3]; + num++; + ref QuestSequence reference18 = ref span19[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence9 = questSequence; - num2 = 3; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span11 = CollectionsMarshal.AsSpan(list4); - span11[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012011u, new Vector3(-482.7497f, -154.95538f, -595.72754f), 959) + index2 = 3; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span24 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012011u, new Vector3(-482.7497f, -154.95538f, -595.72754f), 959) { AetherCurrentId = 2818360u }; - span11[1] = new QuestStep(EInteractionType.Jump, 1038912u, new Vector3(-462.06528f, -155.5629f, -625.5277f), 959) + num2++; + span24[num2] = new QuestStep(EInteractionType.Jump, 1038912u, new Vector3(-462.06528f, -155.5629f, -625.5277f), 959) { JumpDestination = new JumpDestination { @@ -291197,13 +353268,15 @@ public static class AssemblyQuestLoader StopDistance = 8f } }; - span11[2] = new QuestStep(EInteractionType.Interact, 1038912u, new Vector3(-455.40552f, -168f, -620.05035f), 959) + num2++; + span24[num2] = new QuestStep(EInteractionType.Interact, 1038912u, new Vector3(-455.40552f, -168f, -620.05035f), 959) { DelaySecondsAtStart = 3f }; questSequence9.Steps = list4; reference18 = questSequence; - ref QuestSequence reference19 = ref span7[4]; + num++; + ref QuestSequence reference19 = ref span19[num]; QuestSequence obj10 = new QuestSequence { Sequence = 4 @@ -291211,21 +353284,26 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-455.40552f, -168f, -620.05035f), 959) + Span span25 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-455.40552f, -168f, -620.05035f), 959) { ItemId = 2003236u }; obj10.Steps = list16; reference19 = obj10; - ref QuestSequence reference20 = ref span7[5]; + num++; + ref QuestSequence reference20 = ref span19[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038912u, new Vector3(-455.40552f, -168f, -620.05035f), 959) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span26 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038912u, new Vector3(-455.40552f, -168f, -620.05035f), 959) { DelaySecondsAtStart = 2f }; @@ -291239,14 +353317,17 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "liza"; + Span span27 = CollectionsMarshal.AsSpan(list18); + index = 0; + span27[index] = "liza"; questRoot8.Author = list18; QuestRoot questRoot9 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span12 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference21 = ref span12[0]; + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span28 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference21 = ref span28[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -291254,24 +353335,30 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038908u, new Vector3(-456.10742f, -168f, -618.7686f), 959) + Span span29 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038908u, new Vector3(-456.10742f, -168f, -618.7686f), 959) { StopDistance = 5f }; obj12.Steps = list19; reference21 = obj12; - ref QuestSequence reference22 = ref span12[1]; + num++; + ref QuestSequence reference22 = ref span28[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1038919u, new Vector3(-518.36426f, -161.84549f, -281.94098f), 959); + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span30 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span30[num2] = new QuestStep(EInteractionType.Interact, 1038919u, new Vector3(-518.36426f, -161.84549f, -281.94098f), 959); obj13.Steps = list20; reference22 = obj13; - ref QuestSequence reference23 = ref span12[2]; + num++; + ref QuestSequence reference23 = ref span28[num]; questSequence = new QuestSequence { Sequence = 2 @@ -291280,9 +353367,11 @@ public static class AssemblyQuestLoader num2 = 8; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span13 = CollectionsMarshal.AsSpan(list4); - span13[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-357.1918f, -161.84383f, -254.25537f), 959); - span13[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.1918f, -161.84383f, -254.25537f), 959) + Span span31 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span31[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-357.1918f, -161.84383f, -254.25537f), 959); + index2++; + span31[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.1918f, -161.84383f, -254.25537f), 959) { StopDistance = 1f, Mount = false, @@ -291294,7 +353383,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span13[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.36722f, -160.81464f, -258.94827f), 959) + index2++; + span31[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.36722f, -160.81464f, -258.94827f), 959) { StopDistance = 1f, Comment = "Platform 2", @@ -291305,7 +353395,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span13[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.09705f, -159.31464f, -262.08554f), 959) + index2++; + span31[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.09705f, -159.31464f, -262.08554f), 959) { StopDistance = 1f, Comment = "Platform 3", @@ -291316,7 +353407,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span13[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.5647f, -157.81464f, -265.16046f), 959) + index2++; + span31[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.5647f, -157.81464f, -265.16046f), 959) { StopDistance = 1f, Comment = "Platform 4", @@ -291327,7 +353419,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span13[5] = new QuestStep(EInteractionType.Jump, null, new Vector3(-358.55756f, -156.31464f, -268.07187f), 959) + index2++; + span31[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-358.55756f, -156.31464f, -268.07187f), 959) { StopDistance = 1f, Comment = "Platform 5", @@ -291338,7 +353431,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span13[6] = new QuestStep(EInteractionType.Jump, null, new Vector3(-360.63412f, -154.81462f, -270.27368f), 959) + index2++; + span31[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-360.63412f, -154.81462f, -270.27368f), 959) { StopDistance = 1f, Comment = "Platform 6", @@ -291349,7 +353443,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - ref QuestStep reference24 = ref span13[7]; + index2++; + ref QuestStep reference24 = ref span31[index2]; QuestStep obj14 = new QuestStep(EInteractionType.Interact, 1038923u, new Vector3(-376.27222f, -151.67168f, -267.90265f), 959) { StopDistance = 7f @@ -291357,7 +353452,9 @@ public static class AssemblyQuestLoader num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new DialogueChoice + Span span32 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span32[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMC105_04403_Q1_000_073"), @@ -291367,21 +353464,24 @@ public static class AssemblyQuestLoader reference24 = obj14; questSequence10.Steps = list4; reference23 = questSequence; - ref QuestSequence reference25 = ref span12[3]; + num++; + ref QuestSequence reference25 = ref span28[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence11 = questSequence; - num2 = 9; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span14 = CollectionsMarshal.AsSpan(list4); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-336.92316f, -161.84383f, -362.42844f), 959) + index2 = 9; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span33 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-336.92316f, -161.84383f, -362.42844f), 959) { StopDistance = 1f }; - span14[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-336.92316f, -161.84383f, -362.42844f), 959) + num2++; + span33[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-336.92316f, -161.84383f, -362.42844f), 959) { StopDistance = 1f, Mount = false, @@ -291393,7 +353493,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span14[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-333.76025f, -160.81464f, -359.79532f), 959) + num2++; + span33[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-333.76025f, -160.81464f, -359.79532f), 959) { StopDistance = 1f, Comment = "Platform 2", @@ -291404,7 +353505,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span14[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-336.20718f, -159.31462f, -358.21957f), 959) + num2++; + span33[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-336.20718f, -159.31462f, -358.21957f), 959) { StopDistance = 1f, Comment = "Platform 3", @@ -291415,7 +353517,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span14[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(-338.62347f, -157.81464f, -356.00974f), 959) + num2++; + span33[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-338.62347f, -157.81464f, -356.00974f), 959) { StopDistance = 1f, Comment = "Platform 4", @@ -291426,7 +353529,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span14[5] = new QuestStep(EInteractionType.Jump, null, new Vector3(-340.34265f, -156.31462f, -353.9171f), 959) + num2++; + span33[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-340.34265f, -156.31462f, -353.9171f), 959) { StopDistance = 1f, Comment = "Platform 5", @@ -291437,7 +353541,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span14[6] = new QuestStep(EInteractionType.Jump, null, new Vector3(-341.2541f, -154.81462f, -350.6315f), 959) + num2++; + span33[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-341.2541f, -154.81462f, -350.6315f), 959) { StopDistance = 1f, Comment = "Platform 6", @@ -291448,19 +353553,23 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span14[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-337.69525f, -152.67764f, -344.93723f), 959) + num2++; + span33[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-337.69525f, -152.67764f, -344.93723f), 959) { DisableNavmesh = true }; - ref QuestStep reference26 = ref span14[8]; + num2++; + ref QuestStep reference26 = ref span33[num2]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1038924u, new Vector3(-329.97632f, -151.67169f, -333.76062f), 959) { StopDistance = 5f }; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = new DialogueChoice + index3 = 1; + List list22 = new List(index3); + CollectionsMarshal.SetCount(list22, index3); + Span span34 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span34[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMC105_04403_Q1_000_118"), @@ -291470,7 +353579,8 @@ public static class AssemblyQuestLoader reference26 = obj15; questSequence11.Steps = list4; reference25 = questSequence; - ref QuestSequence reference27 = ref span12[4]; + num++; + ref QuestSequence reference27 = ref span28[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 @@ -291478,21 +353588,27 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1038919u, new Vector3(-518.36426f, -161.84549f, -281.94098f), 959); + Span span35 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.Interact, 1038919u, new Vector3(-518.36426f, -161.84549f, -281.94098f), 959); obj16.Steps = list23; reference27 = obj16; - ref QuestSequence reference28 = ref span12[5]; + num++; + ref QuestSequence reference28 = ref span28[num]; QuestSequence obj17 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1038925u, new Vector3(-506.52325f, -161.84383f, -258.68628f), 959); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span36 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.Interact, 1038925u, new Vector3(-506.52325f, -161.84383f, -258.68628f), 959); obj17.Steps = list24; reference28 = obj17; - ref QuestSequence reference29 = ref span12[6]; + num++; + ref QuestSequence reference29 = ref span28[num]; questSequence = new QuestSequence { Sequence = 6 @@ -291501,7 +353617,9 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list4)[0]; + Span span37 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference30 = ref span37[index2]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1038926u, new Vector3(-28.244446f, -131.29884f, -585.7481f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow @@ -291509,7 +353627,9 @@ public static class AssemblyQuestLoader num3 = 1; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = new DialogueChoice + Span span38 = CollectionsMarshal.AsSpan(list25); + index3 = 0; + span38[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC105_04403_SYSTEM_000_215") @@ -291518,15 +353638,18 @@ public static class AssemblyQuestLoader reference30 = obj18; questSequence12.Steps = list4; reference29 = questSequence; - ref QuestSequence reference31 = ref span12[7]; + num++; + ref QuestSequence reference31 = ref span28[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038927u, new Vector3(2.090454f, -49.589596f, -699.733f), 959); + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span39 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038927u, new Vector3(2.090454f, -49.589596f, -699.733f), 959); obj19.Steps = list26; reference31 = obj19; questRoot9.QuestSequence = list2; @@ -291537,14 +353660,17 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "liza"; + Span span40 = CollectionsMarshal.AsSpan(list27); + index = 0; + span40[index] = "liza"; questRoot10.Author = list27; QuestRoot questRoot11 = questRoot; - num = 11; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span15 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference32 = ref span15[0]; + index = 11; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span41 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference32 = ref span41[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -291552,46 +353678,55 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038927u, new Vector3(2.090454f, -49.589596f, -699.733f), 959); + Span span42 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038927u, new Vector3(2.090454f, -49.589596f, -699.733f), 959); obj20.Steps = list28; reference32 = obj20; - ref QuestSequence reference33 = ref span15[1]; + num++; + ref QuestSequence reference33 = ref span41[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence13 = questSequence; - num2 = 3; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span16 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference34 = ref span16[0]; + index2 = 3; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span43 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference34 = ref span43[num2]; QuestStep obj21 = new QuestStep(EInteractionType.AcceptQuest, 1037867u, new Vector3(-301.62512f, -144.00002f, -491.14215f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - CollectionsMarshal.AsSpan(list29)[0] = new QuestId(4240); + index3 = 1; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span44 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span44[num3] = new QuestId(4240); skipAetheryteCondition.QuestsCompleted = list29; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj21.SkipConditions = skipConditions; obj21.PickUpQuestId = new QuestId(4240); reference34 = obj21; - span16[1] = new QuestStep(EInteractionType.AcceptQuest, 1039520u, new Vector3(-287.8615f, -143.50005f, -520.28687f), 959) + num2++; + span43[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039520u, new Vector3(-287.8615f, -143.50005f, -520.28687f), 959) { PickUpQuestId = new QuestId(4241) }; - span16[2] = new QuestStep(EInteractionType.Interact, 1038928u, new Vector3(146.37976f, -137.32071f, -504.26492f), 959) + num2++; + span43[num2] = new QuestStep(EInteractionType.Interact, 1038928u, new Vector3(146.37976f, -137.32071f, -504.26492f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; questSequence13.Steps = list4; reference33 = questSequence; - ref QuestSequence reference35 = ref span15[2]; + num++; + ref QuestSequence reference35 = ref span41[num]; questSequence = new QuestSequence { Sequence = 2 @@ -291600,12 +353735,16 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference36 = ref CollectionsMarshal.AsSpan(list4)[0]; + Span span45 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference36 = ref span45[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(681.45264f, -152f, -494.13293f), 959); num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new DialogueChoice + Span span46 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span46[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMC106_04404_Q1_000_021"), @@ -291615,21 +353754,25 @@ public static class AssemblyQuestLoader reference36 = questStep3; questSequence14.Steps = list4; reference35 = questSequence; - ref QuestSequence reference37 = ref span15[3]; + num++; + ref QuestSequence reference37 = ref span41[num]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Emote, 1038929u, new Vector3(681.45264f, -152f, -494.13293f), 959) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span47 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.Emote, 1038929u, new Vector3(681.45264f, -152f, -494.13293f), 959) { Emote = EEmote.Stretch }; obj22.Steps = list31; reference37 = obj22; - ref QuestSequence reference38 = ref span15[4]; + num++; + ref QuestSequence reference38 = ref span41[num]; QuestSequence obj23 = new QuestSequence { Sequence = 4 @@ -291637,24 +353780,30 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(681.45264f, -152f, -494.13293f), 959); + Span span48 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(681.45264f, -152f, -494.13293f), 959); obj23.Steps = list32; reference38 = obj23; - ref QuestSequence reference39 = ref span15[5]; + num++; + ref QuestSequence reference39 = ref span41[num]; QuestSequence obj24 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(595.4731f, -167.50227f, -511.4072f), 959) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span49 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(595.4731f, -167.50227f, -511.4072f), 959) { StopDistance = 0.25f }; obj24.Steps = list33; reference39 = obj24; - ref QuestSequence reference40 = ref span15[6]; + num++; + ref QuestSequence reference40 = ref span41[num]; QuestSequence obj25 = new QuestSequence { Sequence = 6 @@ -291662,27 +353811,33 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(547.8397f, -167.50174f, -526.3702f), 959) + Span span50 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(547.8397f, -167.50174f, -526.3702f), 959) { StopDistance = 0.25f }; obj25.Steps = list34; reference40 = obj25; - ref QuestSequence reference41 = ref span15[7]; + num++; + ref QuestSequence reference41 = ref span41[num]; QuestSequence obj26 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(572.45984f, -167.50163f, -577.03906f), 959) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span51 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(572.45984f, -167.50163f, -577.03906f), 959) { StopDistance = 0.25f }; obj26.Steps = list35; reference41 = obj26; - ref QuestSequence reference42 = ref span15[8]; + num++; + ref QuestSequence reference42 = ref span41[num]; QuestSequence obj27 = new QuestSequence { Sequence = 8 @@ -291690,27 +353845,33 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(617.89886f, -167.50163f, -594.92847f), 959) + Span span52 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(617.89886f, -167.50163f, -594.92847f), 959) { StopDistance = 0.25f }; obj27.Steps = list36; reference42 = obj27; - ref QuestSequence reference43 = ref span15[9]; + num++; + ref QuestSequence reference43 = ref span41[num]; QuestSequence obj28 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(622.8754f, -167.50217f, -659.45184f), 959) + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span53 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(622.8754f, -167.50217f, -659.45184f), 959) { StopDistance = 0.25f }; obj28.Steps = list37; reference43 = obj28; - ref QuestSequence reference44 = ref span15[10]; + num++; + ref QuestSequence reference44 = ref span41[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -291718,7 +353879,9 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038932u, new Vector3(617.05945f, -168.00002f, -656.58044f), 959) + Span span54 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038932u, new Vector3(617.05945f, -168.00002f, -656.58044f), 959) { StopDistance = 7f }; @@ -291732,28 +353895,34 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "liza"; + Span span55 = CollectionsMarshal.AsSpan(list39); + index = 0; + span55[index] = "liza"; questRoot12.Author = list39; QuestRoot questRoot13 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span17 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference45 = ref span17[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span56 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference45 = ref span56[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038931u, new Vector3(615.8998f, -168f, -657.7402f), 959) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span57 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038931u, new Vector3(615.8998f, -168f, -657.7402f), 959) { StopDistance = 7f }; obj30.Steps = list40; reference45 = obj30; - ref QuestSequence reference46 = ref span17[1]; + num++; + ref QuestSequence reference46 = ref span56[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -291761,27 +353930,33 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 2012184u, new Vector3(73.83838f, -133.07397f, -512.2606f), 959) + Span span58 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.Interact, 2012184u, new Vector3(73.83838f, -133.07397f, -512.2606f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj31.Steps = list41; reference46 = obj31; - ref QuestSequence reference47 = ref span17[2]; + num++; + ref QuestSequence reference47 = ref span56[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 2012185u, new Vector3(-5.416992f, -49.05786f, -269.24548f), 959) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span59 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.Interact, 2012185u, new Vector3(-5.416992f, -49.05786f, -269.24548f), 959) { Comment = "Follow Urianger" }; obj32.Steps = list42; reference47 = obj32; - ref QuestSequence reference48 = ref span17[3]; + num++; + ref QuestSequence reference48 = ref span56[num]; questSequence = new QuestSequence { Sequence = 3 @@ -291790,8 +353965,9 @@ public static class AssemblyQuestLoader num2 = 8; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span18 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference49 = ref span18[0]; + Span span60 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference49 = ref span60[index2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 2012185u, new Vector3(-5.416992f, -49.05786f, -269.24548f), 959) { Comment = "retry point", @@ -291803,55 +353979,64 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new DialogueChoice + index3 = 1; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + Span span61 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span61[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC107_04405_Q1_000_043") }; obj33.DialogueChoices = list43; reference49 = obj33; - span18[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-6.025082f, -28.32315f, -215.77702f), 959) + index2++; + span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-6.025082f, -28.32315f, -215.77702f), 959) { DelaySecondsAtStart = 2f, DisableNavmesh = true, Mount = false, Sprint = false }; - span18[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(15.536669f, -7.1210613f, -177.33519f), 959) + index2++; + span60[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(15.536669f, -7.1210613f, -177.33519f), 959) { StopDistance = 100f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - span18[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.73667f, -5.0926046f, -171.87782f), 959) + index2++; + span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.73667f, -5.0926046f, -171.87782f), 959) { Mount = false, Sprint = false }; - span18[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(-22.370995f, 14.627041f, -132.87657f), 959) + index2++; + span60[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(-22.370995f, 14.627041f, -132.87657f), 959) { StopDistance = 100f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - span18[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.210857f, 26.867788f, -109.43445f), 959) + index2++; + span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.210857f, 26.867788f, -109.43445f), 959) { Mount = false, Sprint = false }; - span18[6] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(1.7508065f, 46.95068f, -69.89246f), 959) + index2++; + span60[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(1.7508065f, 46.95068f, -69.89246f), 959) { StopDistance = 100f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - span18[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(48.261765f, 74.98867f, -32.961533f), 959) + index2++; + span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(48.261765f, 74.98867f, -32.961533f), 959) { DelaySecondsAtStart = 1f, Mount = false, @@ -291859,15 +354044,18 @@ public static class AssemblyQuestLoader }; questSequence15.Steps = list4; reference48 = questSequence; - ref QuestSequence reference50 = ref span17[4]; + num++; + ref QuestSequence reference50 = ref span56[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038935u, new Vector3(68.5282f, 75.72459f, -23.51416f), 959) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span62 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038935u, new Vector3(68.5282f, 75.72459f, -23.51416f), 959) { StopDistance = 5f }; @@ -291881,14 +354069,17 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; + Span span63 = CollectionsMarshal.AsSpan(list45); + index = 0; + span63[index] = "liza"; questRoot14.Author = list45; QuestRoot questRoot15 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span19 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference51 = ref span19[0]; + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span64 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference51 = ref span64[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -291896,30 +354087,36 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038935u, new Vector3(68.5282f, 75.72459f, -23.51416f), 959) + Span span65 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038935u, new Vector3(68.5282f, 75.72459f, -23.51416f), 959) { StopDistance = 5f }; obj35.Steps = list46; reference51 = obj35; - ref QuestSequence reference52 = ref span19[1]; + num++; + ref QuestSequence reference52 = ref span64[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence16 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span20 = CollectionsMarshal.AsSpan(list4); - span20[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012010u, new Vector3(42.58789f, 124.01001f, -167.04059f), 959) + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span66 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012010u, new Vector3(42.58789f, 124.01001f, -167.04059f), 959) { AetherCurrentId = 2818359u }; - span20[1] = new QuestStep(EInteractionType.Interact, 1038936u, new Vector3(191.48547f, 93.90228f, -54.306885f), 959); + num2++; + span66[num2] = new QuestStep(EInteractionType.Interact, 1038936u, new Vector3(191.48547f, 93.90228f, -54.306885f), 959); questSequence16.Steps = list4; reference52 = questSequence; - ref QuestSequence reference53 = ref span19[2]; + num++; + ref QuestSequence reference53 = ref span64[num]; questSequence = new QuestSequence { Sequence = 2 @@ -291928,55 +354125,69 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj36 = new QuestStep(EInteractionType.Combat, 2012235u, new Vector3(183.30652f, 87.20532f, -30.47229f), 959) + Span span67 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference54 = ref span67[index2]; + questStep = new QuestStep(EInteractionType.Combat, 2012235u, new Vector3(183.30652f, 87.20532f, -30.47229f), 959) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; + QuestStep questStep4 = questStep; num3 = 3; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - Span span21 = CollectionsMarshal.AsSpan(list47); - span21[0] = 13998u; - span21[1] = 14093u; - span21[2] = 13998u; - obj36.KillEnemyDataIds = list47; - reference54 = obj36; + Span span68 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span68[index3] = 13998u; + index3++; + span68[index3] = 14093u; + index3++; + span68[index3] = 13998u; + questStep4.KillEnemyDataIds = list47; + reference54 = questStep; questSequence17.Steps = list4; reference53 = questSequence; - ref QuestSequence reference55 = ref span19[3]; - QuestSequence obj37 = new QuestSequence + num++; + ref QuestSequence reference55 = ref span64[num]; + QuestSequence obj36 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 2012433u, new Vector3(183.30652f, 87.17468f, -30.380737f), 959); - obj37.Steps = list48; - reference55 = obj37; - ref QuestSequence reference56 = ref span19[4]; - QuestSequence obj38 = new QuestSequence + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span69 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.Interact, 2012433u, new Vector3(183.30652f, 87.17468f, -30.380737f), 959); + obj36.Steps = list48; + reference55 = obj36; + num++; + ref QuestSequence reference56 = ref span64[num]; + QuestSequence obj37 = new QuestSequence { Sequence = 4 }; num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1038936u, new Vector3(191.48547f, 93.90228f, -54.306885f), 959); - obj38.Steps = list49; - reference56 = obj38; - ref QuestSequence reference57 = ref span19[5]; + Span span70 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.Interact, 1038936u, new Vector3(191.48547f, 93.90228f, -54.306885f), 959); + obj37.Steps = list49; + reference56 = obj37; + num++; + ref QuestSequence reference57 = ref span64[num]; questSequence = new QuestSequence { Sequence = 5 }; QuestSequence questSequence18 = questSequence; - num2 = 4; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span22 = CollectionsMarshal.AsSpan(list4); - span22[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(304.50522f, -144f, -558.8681f), 959) + index2 = 4; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span71 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(304.50522f, -144f, -558.8681f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, JumpDestination = new JumpDestination @@ -291985,40 +354196,49 @@ public static class AssemblyQuestLoader StopDistance = 5f } }; - span22[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012012u, new Vector3(316.39575f, -154.98596f, -595.5444f), 959) + num2++; + span71[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012012u, new Vector3(316.39575f, -154.98596f, -595.5444f), 959) { StopDistance = 3f, AetherCurrentId = 2818361u }; - span22[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(351.1467f, -167.87698f, -605.0467f), 959); - span22[3] = new QuestStep(EInteractionType.Interact, 1038937u, new Vector3(381.7959f, -168.00002f, -594.62885f), 959); + num2++; + span71[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(351.1467f, -167.87698f, -605.0467f), 959); + num2++; + span71[num2] = new QuestStep(EInteractionType.Interact, 1038937u, new Vector3(381.7959f, -168.00002f, -594.62885f), 959); questSequence18.Steps = list4; reference57 = questSequence; - ref QuestSequence reference58 = ref span19[6]; - QuestSequence obj39 = new QuestSequence + num++; + ref QuestSequence reference58 = ref span64[num]; + QuestSequence obj38 = new QuestSequence { Sequence = 6 }; num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Snipe, 2012337u, new Vector3(466.8496f, -168.01715f, -654.13904f), 959) + Span span72 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span72[index2] = new QuestStep(EInteractionType.Snipe, 2012337u, new Vector3(466.8496f, -168.01715f, -654.13904f), 959) { Comment = "Find \"Runninway?\"" }; - obj39.Steps = list50; - reference58 = obj39; - ref QuestSequence reference59 = ref span19[7]; - QuestSequence obj40 = new QuestSequence + obj38.Steps = list50; + reference58 = obj38; + num++; + ref QuestSequence reference59 = ref span64[num]; + QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038944u, new Vector3(361.65405f, -168.00002f, -628.19867f), 959); - obj40.Steps = list51; - reference59 = obj40; + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span73 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038944u, new Vector3(361.65405f, -168.00002f, -628.19867f), 959); + obj39.Steps = list51; + reference59 = obj39; questRoot15.QuestSequence = list2; AddQuest(questId7, questRoot); QuestId questId8 = new QuestId(4407); @@ -292027,78 +354247,94 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + Span span74 = CollectionsMarshal.AsSpan(list52); + index = 0; + span74[index] = "liza"; questRoot16.Author = list52; QuestRoot questRoot17 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span23 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference60 = ref span23[0]; - QuestSequence obj41 = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span75 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference60 = ref span75[num]; + QuestSequence obj40 = new QuestSequence { Sequence = 0 }; num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038946u, new Vector3(362.50854f, -168.00002f, -625.11633f), 959) + Span span76 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038946u, new Vector3(362.50854f, -168.00002f, -625.11633f), 959) { StopDistance = 5f }; - obj41.Steps = list53; - reference60 = obj41; - ref QuestSequence reference61 = ref span23[1]; + obj40.Steps = list53; + reference60 = obj40; + num++; + ref QuestSequence reference61 = ref span75[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence19 = questSequence; - num2 = 5; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span24 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference62 = ref span24[0]; - QuestStep obj42 = new QuestStep(EInteractionType.AcceptQuest, 1041555u, new Vector3(26.443848f, -129.20917f, -536.9497f), 959) + index2 = 5; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span77 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference62 = ref span77[num2]; + QuestStep obj41 = new QuestStep(EInteractionType.AcceptQuest, 1041555u, new Vector3(26.443848f, -129.20917f, -536.9497f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; SkipConditions skipConditions2 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = new QuestId(4516); + index3 = 1; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + Span span78 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span78[num3] = new QuestId(4516); skipAetheryteCondition2.QuestsCompleted = list54; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; - obj42.SkipConditions = skipConditions2; - obj42.PickUpQuestId = new QuestId(4516); - reference62 = obj42; - ref QuestStep reference63 = ref span24[1]; + obj41.SkipConditions = skipConditions2; + obj41.PickUpQuestId = new QuestId(4516); + reference62 = obj41; + num2++; + ref QuestStep reference63 = ref span77[num2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1041123u, new Vector3(-81.864685f, -132.74333f, -521.6602f), 959); - QuestStep questStep4 = questStep; + QuestStep questStep5 = questStep; num3 = 1; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = new DialogueChoice + Span span79 = CollectionsMarshal.AsSpan(list55); + index3 = 0; + span79[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/042/AktKze014_04253", Prompt = new ExcelRef("TEXT_AKTKZE014_04253_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKZE014_04253_A1_000_002") }; - questStep4.DialogueChoices = list55; + questStep5.DialogueChoices = list55; questStep.PickUpQuestId = new QuestId(4253); reference63 = questStep; - span24[2] = new QuestStep(EInteractionType.Interact, 2012664u, new Vector3(-26.901672f, -130.47992f, -580.4685f), 959) + num2++; + span77[num2] = new QuestStep(EInteractionType.Interact, 2012664u, new Vector3(-26.901672f, -130.47992f, -580.4685f), 959) { TargetTerritoryId = (ushort)959 }; - span24[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.32143f, -49.589592f, -690.11676f), 959); - span24[4] = new QuestStep(EInteractionType.Interact, 1038947u, new Vector3(184.00854f, -49.589592f, -627.9545f), 959); + num2++; + span77[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.32143f, -49.589592f, -690.11676f), 959); + num2++; + span77[num2] = new QuestStep(EInteractionType.Interact, 1038947u, new Vector3(184.00854f, -49.589592f, -627.9545f), 959); questSequence19.Steps = list4; reference61 = questSequence; - ref QuestSequence reference64 = ref span23[2]; + num++; + ref QuestSequence reference64 = ref span75[num]; questSequence = new QuestSequence { Sequence = 2 @@ -292107,53 +354343,67 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(167.0076f, -49.589592f, -637.9577f), 959) + Span span80 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference65 = ref span80[index2]; + questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(167.0076f, -49.589592f, -637.9577f), 959) { StopDistance = 3f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 4; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - Span span25 = CollectionsMarshal.AsSpan(list56); - span25[0] = 13995u; - span25[1] = 13996u; - span25[2] = 13997u; - span25[3] = 13995u; - obj43.KillEnemyDataIds = list56; - reference65 = obj43; + QuestStep questStep6 = questStep; + index3 = 4; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + Span span81 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span81[num3] = 13995u; + num3++; + span81[num3] = 13996u; + num3++; + span81[num3] = 13997u; + num3++; + span81[num3] = 13995u; + questStep6.KillEnemyDataIds = list56; + reference65 = questStep; questSequence20.Steps = list4; reference64 = questSequence; - ref QuestSequence reference66 = ref span23[3]; + num++; + ref QuestSequence reference66 = ref span75[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence21 = questSequence; - num2 = 3; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span26 = CollectionsMarshal.AsSpan(list4); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(172.90228f, -49.589603f, -509.59824f), 959); - span26[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(18.495846f, -49.589592f, -301.7225f), 959); - span26[2] = new QuestStep(EInteractionType.Interact, 1038950u, new Vector3(-2.7008667f, -27.758478f, -214.77081f), 959); + index2 = 3; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span82 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(172.90228f, -49.589603f, -509.59824f), 959); + num2++; + span82[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(18.495846f, -49.589592f, -301.7225f), 959); + num2++; + span82[num2] = new QuestStep(EInteractionType.Interact, 1038950u, new Vector3(-2.7008667f, -27.758478f, -214.77081f), 959); questSequence21.Steps = list4; reference66 = questSequence; - ref QuestSequence reference67 = ref span23[4]; - QuestSequence obj44 = new QuestSequence + num++; + ref QuestSequence reference67 = ref span75[num]; + QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038952u, new Vector3(-609.12494f, 128.67769f, 572.0454f), 959) + Span span83 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038952u, new Vector3(-609.12494f, 128.67769f, 572.0454f), 959) { StopDistance = 5f }; - obj44.Steps = list57; - reference67 = obj44; + obj42.Steps = list57; + reference67 = obj42; questRoot17.QuestSequence = list2; AddQuest(questId8, questRoot); QuestId questId9 = new QuestId(4408); @@ -292162,28 +354412,34 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "liza"; + Span span84 = CollectionsMarshal.AsSpan(list58); + index = 0; + span84[index] = "liza"; questRoot18.Author = list58; QuestRoot questRoot19 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span27 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference68 = ref span27[0]; - QuestSequence obj45 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span85 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference68 = ref span85[num]; + QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038953u, new Vector3(-611.1391f, 128.6778f, 566.8573f), 959) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span86 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038953u, new Vector3(-611.1391f, 128.6778f, 566.8573f), 959) { StopDistance = 5f }; - obj45.Steps = list59; - reference68 = obj45; - ref QuestSequence reference69 = ref span27[1]; + obj43.Steps = list59; + reference68 = obj43; + num++; + ref QuestSequence reference69 = ref span85[num]; questSequence = new QuestSequence { Sequence = 1 @@ -292192,8 +354448,9 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span28 = CollectionsMarshal.AsSpan(list4); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-614.86835f, 128.67761f, 677.33923f), 959) + Span span87 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-614.86835f, 128.67761f, 677.33923f), 959) { Comment = "Avoids Combat", SkipConditions = new SkipConditions @@ -292204,29 +354461,35 @@ public static class AssemblyQuestLoader } } }; - span28[1] = new QuestStep(EInteractionType.Interact, 2012531u, new Vector3(-663.29443f, 132.6466f, 728.96924f), 959) + index2++; + span87[index2] = new QuestStep(EInteractionType.Interact, 2012531u, new Vector3(-663.29443f, 132.6466f, 728.96924f), 959) { TargetTerritoryId = (ushort)1024, Fly = true }; - span28[2] = new QuestStep(EInteractionType.Interact, 1038960u, new Vector3(0.99176025f, 0f, 22.171326f), 1024); + index2++; + span87[index2] = new QuestStep(EInteractionType.Interact, 1038960u, new Vector3(0.99176025f, 0f, 22.171326f), 1024); questSequence22.Steps = list4; reference69 = questSequence; - ref QuestSequence reference70 = ref span27[2]; - QuestSequence obj46 = new QuestSequence + num++; + ref QuestSequence reference70 = ref span85[num]; + QuestSequence obj44 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1038963u, new Vector3(-338.2467f, 23.803604f, 407.79736f), 958) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span88 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Interact, 1038963u, new Vector3(-338.2467f, 23.803604f, 407.79736f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; - obj46.Steps = list60; - reference70 = obj46; - ref QuestSequence reference71 = ref span27[3]; + obj44.Steps = list60; + reference70 = obj44; + num++; + ref QuestSequence reference71 = ref span85[num]; questSequence = new QuestSequence { Sequence = 3 @@ -292235,7 +354498,9 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1038965u, new Vector3(-104.9668f, 3.8989396f, 9.262146f), 962) + Span span89 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.Interact, 1038965u, new Vector3(-104.9668f, 3.8989396f, 9.262146f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -292246,35 +354511,41 @@ public static class AssemblyQuestLoader }; questSequence23.Steps = list61; reference71 = questSequence; - ref QuestSequence reference72 = ref span27[4]; + num++; + ref QuestSequence reference72 = ref span85[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence24 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span29 = CollectionsMarshal.AsSpan(list4); - span29[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span90 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987 }; - ref QuestStep reference73 = ref span29[1]; - QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2012188u, new Vector3(-0.015319824f, -0.015319824f, -5.081299f), 987); + num2++; + ref QuestStep reference73 = ref span90[num2]; + QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2012188u, new Vector3(-0.015319824f, -0.015319824f, -5.081299f), 987); num3 = 1; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - CollectionsMarshal.AsSpan(list62)[0] = new DialogueChoice + Span span91 = CollectionsMarshal.AsSpan(list62); + index3 = 0; + span91[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC110_04408_Q3_000_170") }; - questStep5.DialogueChoices = list62; - reference73 = questStep5; + questStep7.DialogueChoices = list62; + reference73 = questStep7; questSequence24.Steps = list4; reference72 = questSequence; - ref QuestSequence reference74 = ref span27[5]; + num++; + ref QuestSequence reference74 = ref span85[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -292283,8 +354554,10 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference75 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj47 = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) + Span span92 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference75 = ref span92[index2]; + QuestStep obj45 = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { AethernetShortcut = new AethernetShortcut { @@ -292292,16 +354565,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - num3 = 1; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - CollectionsMarshal.AsSpan(list63)[0] = new DialogueChoice + index3 = 1; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + Span span93 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span93[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC110_04408_Q4_000_204") }; - obj47.DialogueChoices = list63; - reference75 = obj47; + obj45.DialogueChoices = list63; + reference75 = obj45; questSequence25.Steps = list4; reference74 = questSequence; questRoot19.QuestSequence = list2; @@ -292312,28 +354587,34 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - CollectionsMarshal.AsSpan(list64)[0] = "liza"; + Span span94 = CollectionsMarshal.AsSpan(list64); + index = 0; + span94[index] = "liza"; questRoot20.Author = list64; QuestRoot questRoot21 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span30 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference76 = ref span30[0]; - QuestSequence obj48 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span95 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference76 = ref span95[num]; + QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038969u, new Vector3(-104.478516f, 3.8989394f, 7.003784f), 962) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span96 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038969u, new Vector3(-104.478516f, 3.8989394f, 7.003784f), 962) { StopDistance = 5f }; - obj48.Steps = list65; - reference76 = obj48; - ref QuestSequence reference77 = ref span30[1]; + obj46.Steps = list65; + reference76 = obj46; + num++; + ref QuestSequence reference77 = ref span95[num]; questSequence = new QuestSequence { Sequence = 1 @@ -292342,49 +354623,60 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.5617f, 5.0504f, 4.55803f), 962) + Span span97 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.5617f, 5.0504f, 4.55803f), 962) { TargetTerritoryId = (ushort)987 }; questSequence26.Steps = list66; reference77 = questSequence; - ref QuestSequence reference78 = ref span30[2]; + num++; + ref QuestSequence reference78 = ref span95[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence27 = questSequence; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0f, 0f, 0f), 957) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span98 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0f, 0f, 0f), 957) { Comment = "Quest automatically progresses once teleported to Yedlihmad", AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; questSequence27.Steps = list67; reference78 = questSequence; - ref QuestSequence reference79 = ref span30[3]; - QuestSequence obj49 = new QuestSequence + num++; + ref QuestSequence reference79 = ref span95[num]; + QuestSequence obj47 = new QuestSequence { Sequence = 3 }; num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1038978u, new Vector3(202.34985f, 1.7699993f, 757.71716f), 957); - obj49.Steps = list68; - reference79 = obj49; - ref QuestSequence reference80 = ref span30[4]; + Span span99 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.Interact, 1038978u, new Vector3(202.34985f, 1.7699993f, 757.71716f), 957); + obj47.Steps = list68; + reference79 = obj47; + num++; + ref QuestSequence reference80 = ref span95[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence28 = questSequence; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Duty, null, null, 957) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span100 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.Duty, null, null, 957) { DutyOptions = new DutyOptions { @@ -292394,24 +354686,28 @@ public static class AssemblyQuestLoader }; questSequence28.Steps = list69; reference80 = questSequence; - span30[5] = new QuestSequence + num++; + span95[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference81 = ref span30[6]; - QuestSequence obj50 = new QuestSequence + num++; + ref QuestSequence reference81 = ref span95[num]; + QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038992u, new Vector3(4.6539917f, -1.9999963f, 93.492065f), 963) + Span span101 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038992u, new Vector3(4.6539917f, -1.9999963f, 93.492065f), 963) { StopDistance = 5f }; - obj50.Steps = list70; - reference81 = obj50; + obj48.Steps = list70; + reference81 = obj48; questRoot21.QuestSequence = list2; AddQuest(questId10, questRoot); QuestId questId11 = new QuestId(4410); @@ -292420,50 +354716,62 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + Span span102 = CollectionsMarshal.AsSpan(list71); + index = 0; + span102[index] = "liza"; questRoot22.Author = list71; QuestRoot questRoot23 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span31 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference82 = ref span31[0]; - QuestSequence obj51 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span103 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference82 = ref span103[num]; + QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038992u, new Vector3(4.6539917f, -1.9999963f, 93.492065f), 963) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span104 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038992u, new Vector3(4.6539917f, -1.9999963f, 93.492065f), 963) { StopDistance = 5f }; - obj51.Steps = list72; - reference82 = obj51; - ref QuestSequence reference83 = ref span31[1]; - QuestSequence obj52 = new QuestSequence + obj49.Steps = list72; + reference82 = obj49; + num++; + ref QuestSequence reference83 = ref span103[num]; + QuestSequence obj50 = new QuestSequence { Sequence = 1 }; num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Interact, 1038997u, new Vector3(2.7618408f, -1.9999962f, 97.30664f), 963); - obj52.Steps = list73; - reference83 = obj52; - ref QuestSequence reference84 = ref span31[2]; - QuestSequence obj53 = new QuestSequence + Span span105 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.Interact, 1038997u, new Vector3(2.7618408f, -1.9999962f, 97.30664f), 963); + obj50.Steps = list73; + reference83 = obj50; + num++; + ref QuestSequence reference84 = ref span103[num]; + QuestSequence obj51 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1037313u, new Vector3(137.71265f, 4.783756f, -153.9483f), 963); - obj53.Steps = list74; - reference84 = obj53; - ref QuestSequence reference85 = ref span31[3]; + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span106 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.Interact, 1037313u, new Vector3(137.71265f, 4.783756f, -153.9483f), 963); + obj51.Steps = list74; + reference84 = obj51; + num++; + ref QuestSequence reference85 = ref span103[num]; questSequence = new QuestSequence { Sequence = 3 @@ -292472,14 +354780,15 @@ public static class AssemblyQuestLoader num2 = 4; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span32 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference86 = ref span32[0]; + Span span107 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference86 = ref span107[index2]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(81.33277f, 1.8631814f, -96.56102f), 963) { DisableNavmesh = true, Sprint = true }; - QuestStep questStep6 = questStep; + QuestStep questStep8 = questStep; SkipConditions skipConditions3 = new SkipConditions(); SkipConditions skipConditions4 = skipConditions3; SkipStepConditions skipStepConditions = new SkipStepConditions(); @@ -292487,88 +354796,119 @@ public static class AssemblyQuestLoader num3 = 6; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - Span span33 = CollectionsMarshal.AsSpan(list75); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span108 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span108[index3] = null; + index3++; + span108[index3] = null; + index3++; + span108[index3] = null; + index3++; + span108[index3] = null; + index3++; + span108[index3] = null; + index3++; + span108[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list75; skipConditions4.StepIf = skipStepConditions; - questStep6.SkipConditions = skipConditions3; + questStep8.SkipConditions = skipConditions3; reference86 = questStep; - ref QuestStep reference87 = ref span32[1]; + index2++; + ref QuestStep reference87 = ref span107[index2]; questStep = new QuestStep(EInteractionType.Interact, 1037314u, new Vector3(15.701477f, 0.9f, -115.22089f), 963) { Comment = "Varsra" }; - QuestStep questStep7 = questStep; - num3 = 6; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - Span span34 = CollectionsMarshal.AsSpan(list76); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep7.CompletionQuestVariablesFlags = list76; + QuestStep questStep9 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span109 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span109[num3] = null; + num3++; + span109[num3] = null; + num3++; + span109[num3] = null; + num3++; + span109[num3] = null; + num3++; + span109[num3] = null; + num3++; + span109[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep9.CompletionQuestVariablesFlags = list75; reference87 = questStep; - ref QuestStep reference88 = ref span32[2]; + index2++; + ref QuestStep reference88 = ref span107[index2]; questStep = new QuestStep(EInteractionType.Interact, 1037316u, new Vector3(-47.04364f, 0.9199997f, -94.95697f), 963) { Comment = "Zeytahnur" }; - QuestStep questStep8 = questStep; + QuestStep questStep10 = questStep; num3 = 6; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - Span span35 = CollectionsMarshal.AsSpan(list77); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep8.CompletionQuestVariablesFlags = list77; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span110 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span110[index3] = null; + index3++; + span110[index3] = null; + index3++; + span110[index3] = null; + index3++; + span110[index3] = null; + index3++; + span110[index3] = null; + index3++; + span110[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep10.CompletionQuestVariablesFlags = list75; reference88 = questStep; - ref QuestStep reference89 = ref span32[3]; + index2++; + ref QuestStep reference89 = ref span107[index2]; questStep = new QuestStep(EInteractionType.Interact, 1037315u, new Vector3(-19.60791f, 0.8999999f, -60.68518f), 963) { Comment = "Rahdvira" }; - QuestStep questStep9 = questStep; - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span36 = CollectionsMarshal.AsSpan(list78); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep9.CompletionQuestVariablesFlags = list78; + QuestStep questStep11 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span111 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span111[num3] = null; + num3++; + span111[num3] = null; + num3++; + span111[num3] = null; + num3++; + span111[num3] = null; + num3++; + span111[num3] = null; + num3++; + span111[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep11.CompletionQuestVariablesFlags = list75; reference89 = questStep; questSequence29.Steps = list4; reference85 = questSequence; - ref QuestSequence reference90 = ref span31[4]; - QuestSequence obj54 = new QuestSequence + num++; + ref QuestSequence reference90 = ref span103[num]; + QuestSequence obj52 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1038997u, new Vector3(-37.667046f, -0.00014948845f, -136.80333f), 963) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span112 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.Interact, 1038997u, new Vector3(-37.667046f, -0.00014948845f, -136.80333f), 963) { StopDistance = 0.25f }; - obj54.Steps = list79; - reference90 = obj54; - ref QuestSequence reference91 = ref span31[5]; + obj52.Steps = list76; + reference90 = obj52; + num++; + ref QuestSequence reference91 = ref span103[num]; questSequence = new QuestSequence { Sequence = 5 @@ -292577,62 +354917,76 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span37 = CollectionsMarshal.AsSpan(list4); - span37[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + Span span113 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanMehrydesMeyhane }; - span37[1] = new QuestStep(EInteractionType.Interact, 1039001u, new Vector3(-20.096191f, 3.0099998f, -226.79486f), 963); - span37[2] = new QuestStep(EInteractionType.Interact, 1037317u, new Vector3(-25.314758f, 1.7999934f, -185.96173f), 963); + index2++; + span113[index2] = new QuestStep(EInteractionType.Interact, 1039001u, new Vector3(-20.096191f, 3.0099998f, -226.79486f), 963); + index2++; + span113[index2] = new QuestStep(EInteractionType.Interact, 1037317u, new Vector3(-25.314758f, 1.7999934f, -185.96173f), 963); questSequence30.Steps = list4; reference91 = questSequence; - ref QuestSequence reference92 = ref span31[6]; - QuestSequence obj55 = new QuestSequence + num++; + ref QuestSequence reference92 = ref span103[num]; + QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963); - obj55.Steps = list80; - reference92 = obj55; + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span114 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963); + obj53.Steps = list77; + reference92 = obj53; questRoot23.QuestSequence = list2; AddQuest(questId11, questRoot); QuestId questId12 = new QuestId(4411); questRoot = new QuestRoot(); QuestRoot questRoot24 = questRoot; num = 1; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "liza"; - questRoot24.Author = list81; + List list78 = new List(num); + CollectionsMarshal.SetCount(list78, num); + Span span115 = CollectionsMarshal.AsSpan(list78); + index = 0; + span115[index] = "liza"; + questRoot24.Author = list78; QuestRoot questRoot25 = questRoot; - num = 13; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span38 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference93 = ref span38[0]; - QuestSequence obj56 = new QuestSequence + index = 13; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span116 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference93 = ref span116[num]; + QuestSequence obj54 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963); - obj56.Steps = list82; - reference93 = obj56; - ref QuestSequence reference94 = ref span38[1]; + List list79 = new List(num2); + CollectionsMarshal.SetCount(list79, num2); + Span span117 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963); + obj54.Steps = list79; + reference93 = obj54; + num++; + ref QuestSequence reference94 = ref span116[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence31 = questSequence; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1039002u, new Vector3(57.04193f, 26.99999f, 46.383568f), 963) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span118 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.Interact, 1039002u, new Vector3(57.04193f, 26.99999f, 46.383568f), 963) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -292641,9 +354995,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanRuveydahFibers } }; - questSequence31.Steps = list83; + questSequence31.Steps = list80; reference94 = questSequence; - ref QuestSequence reference95 = ref span38[2]; + num++; + ref QuestSequence reference95 = ref span116[num]; questSequence = new QuestSequence { Sequence = 2 @@ -292652,25 +355007,31 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span39 = CollectionsMarshal.AsSpan(list4); - span39[0] = new QuestStep(EInteractionType.Interact, 1039539u, new Vector3(87.662964f, 27.06f, 28.030762f), 963); - span39[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + Span span119 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.Interact, 1039539u, new Vector3(87.662964f, 27.06f, 28.030762f), 963); + index2++; + span119[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanKama }; - span39[2] = new QuestStep(EInteractionType.Interact, 1039540u, new Vector3(149.79773f, 27.049997f, 39.627686f), 963); + index2++; + span119[index2] = new QuestStep(EInteractionType.Interact, 1039540u, new Vector3(149.79773f, 27.049997f, 39.627686f), 963); questSequence32.Steps = list4; reference95 = questSequence; - ref QuestSequence reference96 = ref span38[3]; + num++; + ref QuestSequence reference96 = ref span116[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence33 = questSequence; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1039003u, new Vector3(-159.3805f, 23.999973f, 110.61267f), 963) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span120 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.Interact, 1039003u, new Vector3(-159.3805f, 23.999973f, 110.61267f), 963) { AethernetShortcut = new AethernetShortcut { @@ -292678,159 +355039,198 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanRuveydahFibers } }; - questSequence33.Steps = list84; + questSequence33.Steps = list81; reference96 = questSequence; - ref QuestSequence reference97 = ref span38[4]; - QuestSequence obj57 = new QuestSequence + num++; + ref QuestSequence reference97 = ref span116[num]; + QuestSequence obj55 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1039542u, new Vector3(-101.12158f, 24f, 79.48425f), 963); - obj57.Steps = list85; - reference97 = obj57; - ref QuestSequence reference98 = ref span38[5]; - QuestSequence obj58 = new QuestSequence + List list82 = new List(num2); + CollectionsMarshal.SetCount(list82, num2); + Span span121 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.Interact, 1039542u, new Vector3(-101.12158f, 24f, 79.48425f), 963); + obj55.Steps = list82; + reference97 = obj55; + num++; + ref QuestSequence reference98 = ref span116[num]; + QuestSequence obj56 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 2012194u, new Vector3(-103.83765f, 24.948364f, 87.57141f), 963); - obj58.Steps = list86; - reference98 = obj58; - ref QuestSequence reference99 = ref span38[6]; - QuestSequence obj59 = new QuestSequence + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span122 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.Interact, 2012194u, new Vector3(-103.83765f, 24.948364f, 87.57141f), 963); + obj56.Steps = list83; + reference98 = obj56; + num++; + ref QuestSequence reference99 = ref span116[num]; + QuestSequence obj57 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1037321u, new Vector3(-143.14496f, 24f, 93.003784f), 963); - obj59.Steps = list87; - reference99 = obj59; - ref QuestSequence reference100 = ref span38[7]; - QuestSequence obj60 = new QuestSequence + List list84 = new List(num2); + CollectionsMarshal.SetCount(list84, num2); + Span span123 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span123[index2] = new QuestStep(EInteractionType.Interact, 1037321u, new Vector3(-143.14496f, 24f, 93.003784f), 963); + obj57.Steps = list84; + reference99 = obj57; + num++; + ref QuestSequence reference100 = ref span116[num]; + QuestSequence obj58 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 2012195u, new Vector3(-104.57007f, 25.192627f, 87.63245f), 963); - obj60.Steps = list88; - reference100 = obj60; - ref QuestSequence reference101 = ref span38[8]; - QuestSequence obj61 = new QuestSequence + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span124 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.Interact, 2012195u, new Vector3(-104.57007f, 25.192627f, 87.63245f), 963); + obj58.Steps = list85; + reference100 = obj58; + num++; + ref QuestSequence reference101 = ref span116[num]; + QuestSequence obj59 = new QuestSequence { Sequence = 8 }; num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1037319u, new Vector3(-123.49127f, 24f, 88.57861f), 963); - obj61.Steps = list89; - reference101 = obj61; - ref QuestSequence reference102 = ref span38[9]; - QuestSequence obj62 = new QuestSequence + List list86 = new List(num2); + CollectionsMarshal.SetCount(list86, num2); + Span span125 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.Interact, 1037319u, new Vector3(-123.49127f, 24f, 88.57861f), 963); + obj59.Steps = list86; + reference101 = obj59; + num++; + ref QuestSequence reference102 = ref span116[num]; + QuestSequence obj60 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 2012196u, new Vector3(-104.234375f, 24.734863f, 87.57141f), 963); - obj62.Steps = list90; - reference102 = obj62; - ref QuestSequence reference103 = ref span38[10]; - QuestSequence obj63 = new QuestSequence + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span126 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.Interact, 2012196u, new Vector3(-104.234375f, 24.734863f, 87.57141f), 963); + obj60.Steps = list87; + reference102 = obj60; + num++; + ref QuestSequence reference103 = ref span116[num]; + QuestSequence obj61 = new QuestSequence { Sequence = 10 }; num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1037320u, new Vector3(-115.739685f, 24f, 97.0625f), 963); - obj63.Steps = list91; - reference103 = obj63; - ref QuestSequence reference104 = ref span38[11]; - QuestSequence obj64 = new QuestSequence + List list88 = new List(num2); + CollectionsMarshal.SetCount(list88, num2); + Span span127 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.Interact, 1037320u, new Vector3(-115.739685f, 24f, 97.0625f), 963); + obj61.Steps = list88; + reference103 = obj61; + num++; + ref QuestSequence reference104 = ref span116[num]; + QuestSequence obj62 = new QuestSequence { Sequence = 11 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1039542u, new Vector3(-101.12158f, 24f, 79.48425f), 963); - obj64.Steps = list92; - reference104 = obj64; - ref QuestSequence reference105 = ref span38[12]; - QuestSequence obj65 = new QuestSequence + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span128 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.Interact, 1039542u, new Vector3(-101.12158f, 24f, 79.48425f), 963); + obj62.Steps = list89; + reference104 = obj62; + num++; + ref QuestSequence reference105 = ref span116[num]; + QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039003u, new Vector3(-159.3805f, 23.999973f, 110.61267f), 963); - obj65.Steps = list93; - reference105 = obj65; + List list90 = new List(num2); + CollectionsMarshal.SetCount(list90, num2); + Span span129 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039003u, new Vector3(-159.3805f, 23.999973f, 110.61267f), 963); + obj63.Steps = list90; + reference105 = obj63; questRoot25.QuestSequence = list2; AddQuest(questId12, questRoot); QuestId questId13 = new QuestId(4412); questRoot = new QuestRoot(); QuestRoot questRoot26 = questRoot; num = 1; - List list94 = new List(num); - CollectionsMarshal.SetCount(list94, num); - CollectionsMarshal.AsSpan(list94)[0] = "liza"; - questRoot26.Author = list94; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + Span span130 = CollectionsMarshal.AsSpan(list91); + index = 0; + span130[index] = "liza"; + questRoot26.Author = list91; QuestRoot questRoot27 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span40 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference106 = ref span40[0]; - QuestSequence obj66 = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span131 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference106 = ref span131[num]; + QuestSequence obj64 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039004u, new Vector3(-158.80066f, 23.999973f, 112.291016f), 963); - obj66.Steps = list95; - reference106 = obj66; - ref QuestSequence reference107 = ref span40[1]; - QuestSequence obj67 = new QuestSequence + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span132 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039004u, new Vector3(-158.80066f, 23.999973f, 112.291016f), 963); + obj64.Steps = list92; + reference106 = obj64; + num++; + ref QuestSequence reference107 = ref span131[num]; + QuestSequence obj65 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1039005u, new Vector3(-207.7821f, 36f, 76.798584f), 963); - obj67.Steps = list96; - reference107 = obj67; - ref QuestSequence reference108 = ref span40[2]; - QuestSequence obj68 = new QuestSequence + List list93 = new List(num2); + CollectionsMarshal.SetCount(list93, num2); + Span span133 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.Interact, 1039005u, new Vector3(-207.7821f, 36f, 76.798584f), 963); + obj65.Steps = list93; + reference107 = obj65; + num++; + ref QuestSequence reference108 = ref span131[num]; + QuestSequence obj66 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1039007u, new Vector3(499.87024f, 51.57471f, -597.1924f), 957) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span134 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.Interact, 1039007u, new Vector3(499.87024f, 51.57471f, -597.1924f), 957) { StopDistance = 5f }; - obj68.Steps = list97; - reference108 = obj68; - ref QuestSequence reference109 = ref span40[3]; + obj66.Steps = list94; + reference108 = obj66; + num++; + ref QuestSequence reference109 = ref span131[num]; questSequence = new QuestSequence { Sequence = 3 @@ -292839,156 +355239,191 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj69 = new QuestStep(EInteractionType.Combat, 2012197u, new Vector3(454.06262f, 29.251465f, -491.3253f), 957) + Span span135 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference110 = ref span135[index2]; + QuestStep obj67 = new QuestStep(EInteractionType.Combat, 2012197u, new Vector3(454.06262f, 29.251465f, -491.3253f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = 13994u; - obj69.KillEnemyDataIds = list98; - reference110 = obj69; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + Span span136 = CollectionsMarshal.AsSpan(list95); + index3 = 0; + span136[index3] = 13994u; + obj67.KillEnemyDataIds = list95; + reference110 = obj67; questSequence34.Steps = list4; reference109 = questSequence; - ref QuestSequence reference111 = ref span40[4]; + num++; + ref QuestSequence reference111 = ref span131[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence35 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj70 = new QuestStep(EInteractionType.Combat, 2012198u, new Vector3(391.07336f, 14.389221f, -444.29694f), 957) + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span137 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference112 = ref span137[num2]; + QuestStep obj68 = new QuestStep(EInteractionType.Combat, 2012198u, new Vector3(391.07336f, 14.389221f, -444.29694f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span41 = CollectionsMarshal.AsSpan(list99); - span41[0] = 13992u; - span41[1] = 13993u; - obj70.KillEnemyDataIds = list99; - reference112 = obj70; + index3 = 2; + List list96 = new List(index3); + CollectionsMarshal.SetCount(list96, index3); + Span span138 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span138[num3] = 13992u; + num3++; + span138[num3] = 13993u; + obj68.KillEnemyDataIds = list96; + reference112 = obj68; questSequence35.Steps = list4; reference111 = questSequence; - ref QuestSequence reference113 = ref span40[5]; - QuestSequence obj71 = new QuestSequence + num++; + ref QuestSequence reference113 = ref span131[num]; + QuestSequence obj69 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1039010u, new Vector3(382.71155f, 3.1168795f, -270.4662f), 957); - obj71.Steps = list100; - reference113 = obj71; - ref QuestSequence reference114 = ref span40[6]; + List list97 = new List(num2); + CollectionsMarshal.SetCount(list97, num2); + Span span139 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.Interact, 1039010u, new Vector3(382.71155f, 3.1168795f, -270.4662f), 957); + obj69.Steps = list97; + reference113 = obj69; + num++; + ref QuestSequence reference114 = ref span131[num]; questSequence = new QuestSequence { Sequence = 6, Comment = "TODO Missing completion flags" }; QuestSequence questSequence36 = questSequence; - num2 = 5; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span42 = CollectionsMarshal.AsSpan(list4); - span42[0] = new QuestStep(EInteractionType.Interact, 1039014u, new Vector3(367.33044f, 3.1168795f, -247.6997f), 957); - span42[1] = new QuestStep(EInteractionType.Interact, 1039015u, new Vector3(369.10046f, 3.1168795f, -247.39453f), 957); - span42[2] = new QuestStep(EInteractionType.Interact, 1039017u, new Vector3(391.77527f, 3.3857868f, -207.75165f), 957); - span42[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 957) + index2 = 5; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span140 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.Interact, 1039014u, new Vector3(367.33044f, 3.1168795f, -247.6997f), 957); + num2++; + span140[num2] = new QuestStep(EInteractionType.Interact, 1039015u, new Vector3(369.10046f, 3.1168795f, -247.39453f), 957); + num2++; + span140[num2] = new QuestStep(EInteractionType.Interact, 1039017u, new Vector3(391.77527f, 3.3857868f, -207.75165f), 957); + num2++; + span140[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 957) { Aetheryte = EAetheryteLocation.ThavnairPalakasStand }; - span42[4] = new QuestStep(EInteractionType.Interact, 1039016u, new Vector3(438.22375f, 3.1179183f, -224.10931f), 957); + num2++; + span140[num2] = new QuestStep(EInteractionType.Interact, 1039016u, new Vector3(438.22375f, 3.1179183f, -224.10931f), 957); questSequence36.Steps = list4; reference114 = questSequence; - ref QuestSequence reference115 = ref span40[7]; - QuestSequence obj72 = new QuestSequence + num++; + ref QuestSequence reference115 = ref span131[num]; + QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039020u, new Vector3(430.8689f, 3.1168795f, -251.33142f), 957); - obj72.Steps = list101; - reference115 = obj72; + List list98 = new List(num2); + CollectionsMarshal.SetCount(list98, num2); + Span span141 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039020u, new Vector3(430.8689f, 3.1168795f, -251.33142f), 957); + obj70.Steps = list98; + reference115 = obj70; questRoot27.QuestSequence = list2; AddQuest(questId13, questRoot); QuestId questId14 = new QuestId(4413); questRoot = new QuestRoot(); QuestRoot questRoot28 = questRoot; num = 1; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "liza"; - questRoot28.Author = list102; + List list99 = new List(num); + CollectionsMarshal.SetCount(list99, num); + Span span142 = CollectionsMarshal.AsSpan(list99); + index = 0; + span142[index] = "liza"; + questRoot28.Author = list99; QuestRoot questRoot29 = questRoot; - num = 9; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span43 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference116 = ref span43[0]; - QuestSequence obj73 = new QuestSequence + index = 9; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span143 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference116 = ref span143[num]; + QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039020u, new Vector3(430.8689f, 3.1168795f, -251.33142f), 957); - obj73.Steps = list103; - reference116 = obj73; - ref QuestSequence reference117 = ref span43[1]; - QuestSequence obj74 = new QuestSequence + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span144 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039020u, new Vector3(430.8689f, 3.1168795f, -251.33142f), 957); + obj71.Steps = list100; + reference116 = obj71; + num++; + ref QuestSequence reference117 = ref span143[num]; + QuestSequence obj72 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1039022u, new Vector3(399.3744f, 3.1168792f, -272.84656f), 957) + List list101 = new List(num2); + CollectionsMarshal.SetCount(list101, num2); + Span span145 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.Interact, 1039022u, new Vector3(399.3744f, 3.1168792f, -272.84656f), 957) { DisableNavmesh = true }; - obj74.Steps = list104; - reference117 = obj74; - ref QuestSequence reference118 = ref span43[2]; + obj72.Steps = list101; + reference117 = obj72; + num++; + ref QuestSequence reference118 = ref span143[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence37 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span44 = CollectionsMarshal.AsSpan(list4); - span44[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011995u, new Vector3(118.45581f, 4.92865f, -343.89258f), 957) + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span146 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011995u, new Vector3(118.45581f, 4.92865f, -343.89258f), 957) { AetherCurrentId = 2818331u }; - ref QuestStep reference119 = ref span44[1]; - QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1039023u, new Vector3(55.77173f, 14.571876f, -330.46472f), 957); + num2++; + ref QuestStep reference119 = ref span146[num2]; + QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1039023u, new Vector3(55.77173f, 14.571876f, -330.46472f), 957); num3 = 1; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = new DialogueChoice + List list102 = new List(num3); + CollectionsMarshal.SetCount(list102, num3); + Span span147 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + span147[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMD105_04413_Q1_000_095"), Answer = new ExcelRef("TEXT_AKTKMD105_04413_A1_000_096") }; - questStep10.DialogueChoices = list105; - reference119 = questStep10; + questStep12.DialogueChoices = list102; + reference119 = questStep12; questSequence37.Steps = list4; reference118 = questSequence; - ref QuestSequence reference120 = ref span43[3]; + num++; + ref QuestSequence reference120 = ref span143[num]; questSequence = new QuestSequence { Sequence = 3 @@ -292997,189 +355432,235 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj75 = new QuestStep(EInteractionType.Combat, 1039026u, new Vector3(-29.404175f, 21.255978f, -224.04822f), 957) + Span span148 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference121 = ref span148[index2]; + QuestStep obj73 = new QuestStep(EInteractionType.Combat, 1039026u, new Vector3(-29.404175f, 21.255978f, -224.04822f), 957) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span45 = CollectionsMarshal.AsSpan(list106); - span45[0] = 13991u; - span45[1] = 13990u; - obj75.KillEnemyDataIds = list106; - reference121 = obj75; + index3 = 2; + List list103 = new List(index3); + CollectionsMarshal.SetCount(list103, index3); + Span span149 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span149[num3] = 13991u; + num3++; + span149[num3] = 13990u; + obj73.KillEnemyDataIds = list103; + reference121 = obj73; questSequence38.Steps = list4; reference120 = questSequence; - ref QuestSequence reference122 = ref span43[4]; - QuestSequence obj76 = new QuestSequence + num++; + ref QuestSequence reference122 = ref span143[num]; + QuestSequence obj74 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1039026u, new Vector3(-29.404175f, 21.255978f, -224.04822f), 957); - obj76.Steps = list107; - reference122 = obj76; - ref QuestSequence reference123 = ref span43[5]; - QuestSequence obj77 = new QuestSequence + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span150 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.Interact, 1039026u, new Vector3(-29.404175f, 21.255978f, -224.04822f), 957); + obj74.Steps = list104; + reference122 = obj74; + num++; + ref QuestSequence reference123 = ref span143[num]; + QuestSequence obj75 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 2012200u, new Vector3(53.72693f, 18.264954f, -291.58472f), 957); - obj77.Steps = list108; - reference123 = obj77; - ref QuestSequence reference124 = ref span43[6]; + List list105 = new List(num2); + CollectionsMarshal.SetCount(list105, num2); + Span span151 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.Interact, 2012200u, new Vector3(53.72693f, 18.264954f, -291.58472f), 957); + obj75.Steps = list105; + reference123 = obj75; + num++; + ref QuestSequence reference124 = ref span143[num]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence39 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj78 = new QuestStep(EInteractionType.Combat, 2012201u, new Vector3(237.62866f, 7.156433f, -273.33484f), 957) + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span152 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference125 = ref span152[num2]; + QuestStep obj76 = new QuestStep(EInteractionType.Combat, 2012201u, new Vector3(237.62866f, 7.156433f, -273.33484f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list109 = new List(num3); - CollectionsMarshal.SetCount(list109, num3); - CollectionsMarshal.AsSpan(list109)[0] = 13989u; - obj78.KillEnemyDataIds = list109; - reference125 = obj78; + List list106 = new List(num3); + CollectionsMarshal.SetCount(list106, num3); + Span span153 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span153[index3] = 13989u; + obj76.KillEnemyDataIds = list106; + reference125 = obj76; questSequence39.Steps = list4; reference124 = questSequence; - ref QuestSequence reference126 = ref span43[7]; - QuestSequence obj79 = new QuestSequence + num++; + ref QuestSequence reference126 = ref span143[num]; + QuestSequence obj77 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 2012202u, new Vector3(311.4519f, 7.7667847f, -198.23004f), 957); - obj79.Steps = list110; - reference126 = obj79; - ref QuestSequence reference127 = ref span43[8]; - QuestSequence obj80 = new QuestSequence + List list107 = new List(num2); + CollectionsMarshal.SetCount(list107, num2); + Span span154 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.Interact, 2012202u, new Vector3(311.4519f, 7.7667847f, -198.23004f), 957); + obj77.Steps = list107; + reference126 = obj77; + num++; + ref QuestSequence reference127 = ref span143[num]; + QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039027u, new Vector3(381.33813f, 3.1168795f, -257.0688f), 957); - obj80.Steps = list111; - reference127 = obj80; + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span155 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span155[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039027u, new Vector3(381.33813f, 3.1168795f, -257.0688f), 957); + obj78.Steps = list108; + reference127 = obj78; questRoot29.QuestSequence = list2; AddQuest(questId14, questRoot); QuestId questId15 = new QuestId(4414); questRoot = new QuestRoot(); QuestRoot questRoot30 = questRoot; num = 1; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - CollectionsMarshal.AsSpan(list112)[0] = "liza"; - questRoot30.Author = list112; + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + Span span156 = CollectionsMarshal.AsSpan(list109); + index = 0; + span156[index] = "liza"; + questRoot30.Author = list109; QuestRoot questRoot31 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span46 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference128 = ref span46[0]; - QuestSequence obj81 = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span157 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference128 = ref span157[num]; + QuestSequence obj79 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039028u, new Vector3(381.33813f, 3.1168795f, -257.0688f), 957); - obj81.Steps = list113; - reference128 = obj81; - ref QuestSequence reference129 = ref span46[1]; - QuestSequence obj82 = new QuestSequence + List list110 = new List(num2); + CollectionsMarshal.SetCount(list110, num2); + Span span158 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039028u, new Vector3(381.33813f, 3.1168795f, -257.0688f), 957); + obj79.Steps = list110; + reference128 = obj79; + num++; + ref QuestSequence reference129 = ref span157[num]; + QuestSequence obj80 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1037630u, new Vector3(401.8158f, 3.1168792f, -273.76215f), 957); - obj82.Steps = list114; - reference129 = obj82; - ref QuestSequence reference130 = ref span46[2]; - QuestSequence obj83 = new QuestSequence + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span159 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.Interact, 1037630u, new Vector3(401.8158f, 3.1168792f, -273.76215f), 957); + obj80.Steps = list111; + reference129 = obj80; + num++; + ref QuestSequence reference130 = ref span157[num]; + QuestSequence obj81 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1039030u, new Vector3(408.65186f, 13.167275f, -184.37476f), 957); - obj83.Steps = list115; - reference130 = obj83; - ref QuestSequence reference131 = ref span46[3]; + List list112 = new List(num2); + CollectionsMarshal.SetCount(list112, num2); + Span span160 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.Interact, 1039030u, new Vector3(408.65186f, 13.167275f, -184.37476f), 957); + obj81.Steps = list112; + reference130 = obj81; + num++; + ref QuestSequence reference131 = ref span157[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence40 = questSequence; - num2 = 4; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span47 = CollectionsMarshal.AsSpan(list4); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.0377f, 15.147404f, -147.8739f), 957); - span47[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011996u, new Vector3(550.01135f, 25.467285f, -159.1059f), 957) + index2 = 4; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span161 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span161[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.0377f, 15.147404f, -147.8739f), 957); + num2++; + span161[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011996u, new Vector3(550.01135f, 25.467285f, -159.1059f), 957) { DisableNavmesh = true, AetherCurrentId = 2818332u }; - span47[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(536.3203f, 12.722106f, -95.65565f), 957); - ref QuestStep reference132 = ref span47[3]; - QuestStep obj84 = new QuestStep(EInteractionType.Combat, null, new Vector3(498.18472f, 4.909424f, 1.4510483f), 957) + num2++; + span161[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(536.3203f, 12.722106f, -95.65565f), 957); + num2++; + ref QuestStep reference132 = ref span161[num2]; + QuestStep obj82 = new QuestStep(EInteractionType.Combat, null, new Vector3(498.18472f, 4.909424f, 1.4510483f), 957) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = 13988u; - obj84.KillEnemyDataIds = list116; - reference132 = obj84; + index3 = 1; + List list113 = new List(index3); + CollectionsMarshal.SetCount(list113, index3); + Span span162 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span162[num3] = 13988u; + obj82.KillEnemyDataIds = list113; + reference132 = obj82; questSequence40.Steps = list4; reference131 = questSequence; - ref QuestSequence reference133 = ref span46[4]; - QuestSequence obj85 = new QuestSequence + num++; + ref QuestSequence reference133 = ref span157[num]; + QuestSequence obj83 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1039034u, new Vector3(494.83484f, 5.376761f, 2.7313232f), 957); - obj85.Steps = list117; - reference133 = obj85; - ref QuestSequence reference134 = ref span46[5]; - QuestSequence obj86 = new QuestSequence + List list114 = new List(num2); + CollectionsMarshal.SetCount(list114, num2); + Span span163 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span163[index2] = new QuestStep(EInteractionType.Interact, 1039034u, new Vector3(494.83484f, 5.376761f, 2.7313232f), 957); + obj83.Steps = list114; + reference133 = obj83; + num++; + ref QuestSequence reference134 = ref span157[num]; + QuestSequence obj84 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1039035u, new Vector3(573.5714f, 16.272768f, 130.11365f), 957); - obj86.Steps = list118; - reference134 = obj86; - ref QuestSequence reference135 = ref span46[6]; + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span164 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.Interact, 1039035u, new Vector3(573.5714f, 16.272768f, 130.11365f), 957); + obj84.Steps = list115; + reference134 = obj84; + num++; + ref QuestSequence reference135 = ref span157[num]; questSequence = new QuestSequence { Sequence = 6 @@ -293188,165 +355669,210 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span48 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference136 = ref span48[0]; + Span span165 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference136 = ref span165[index2]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(521.0876f, 11.819632f, 266.03055f), 957) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep11 = questStep; - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = 13987u; - questStep11.KillEnemyDataIds = list119; - QuestStep questStep12 = questStep; - num3 = 6; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span49 = CollectionsMarshal.AsSpan(list120); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep12.CompletionQuestVariablesFlags = list120; - reference136 = questStep; - ref QuestStep reference137 = ref span48[1]; - questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(571.6434f, 32.12932f, 370.01733f), 957) - { - StopDistance = 0.25f, - EnemySpawnType = EEnemySpawnType.AutoOnEnterArea - }; QuestStep questStep13 = questStep; num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = 13986u; - questStep13.KillEnemyDataIds = list121; + List list116 = new List(num3); + CollectionsMarshal.SetCount(list116, num3); + Span span166 = CollectionsMarshal.AsSpan(list116); + index3 = 0; + span166[index3] = 13987u; + questStep13.KillEnemyDataIds = list116; QuestStep questStep14 = questStep; - num3 = 6; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - Span span50 = CollectionsMarshal.AsSpan(list122); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep14.CompletionQuestVariablesFlags = list122; - reference137 = questStep; - ref QuestStep reference138 = ref span48[2]; - questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(660.18604f, 44.997604f, 196.7378f), 957) + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span167 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span167[num3] = null; + num3++; + span167[num3] = null; + num3++; + span167[num3] = null; + num3++; + span167[num3] = null; + num3++; + span167[num3] = null; + num3++; + span167[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep14.CompletionQuestVariablesFlags = list75; + reference136 = questStep; + index2++; + ref QuestStep reference137 = ref span165[index2]; + questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(571.6434f, 32.12932f, 370.01733f), 957) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep15 = questStep; - num3 = 2; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - Span span51 = CollectionsMarshal.AsSpan(list123); - span51[0] = 13985u; - span51[1] = 13984u; - questStep15.KillEnemyDataIds = list123; + num3 = 1; + List list117 = new List(num3); + CollectionsMarshal.SetCount(list117, num3); + Span span168 = CollectionsMarshal.AsSpan(list117); + index3 = 0; + span168[index3] = 13986u; + questStep15.KillEnemyDataIds = list117; QuestStep questStep16 = questStep; - num3 = 6; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - Span span52 = CollectionsMarshal.AsSpan(list124); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep16.CompletionQuestVariablesFlags = list124; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span169 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span169[num3] = null; + num3++; + span169[num3] = null; + num3++; + span169[num3] = null; + num3++; + span169[num3] = null; + num3++; + span169[num3] = null; + num3++; + span169[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep16.CompletionQuestVariablesFlags = list75; + reference137 = questStep; + index2++; + ref QuestStep reference138 = ref span165[index2]; + questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(660.18604f, 44.997604f, 196.7378f), 957) + { + StopDistance = 0.25f, + EnemySpawnType = EEnemySpawnType.AutoOnEnterArea + }; + QuestStep questStep17 = questStep; + num3 = 2; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + Span span170 = CollectionsMarshal.AsSpan(list118); + index3 = 0; + span170[index3] = 13985u; + index3++; + span170[index3] = 13984u; + questStep17.KillEnemyDataIds = list118; + QuestStep questStep18 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span171 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span171[num3] = null; + num3++; + span171[num3] = null; + num3++; + span171[num3] = null; + num3++; + span171[num3] = null; + num3++; + span171[num3] = null; + num3++; + span171[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep18.CompletionQuestVariablesFlags = list75; reference138 = questStep; questSequence41.Steps = list4; reference135 = questSequence; - ref QuestSequence reference139 = ref span46[7]; - QuestSequence obj87 = new QuestSequence + num++; + ref QuestSequence reference139 = ref span157[num]; + QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039036u, new Vector3(628.62585f, 37.497498f, 246.02112f), 957); - obj87.Steps = list125; - reference139 = obj87; + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span172 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span172[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039036u, new Vector3(628.62585f, 37.497498f, 246.02112f), 957); + obj85.Steps = list119; + reference139 = obj85; questRoot31.QuestSequence = list2; AddQuest(questId15, questRoot); QuestId questId16 = new QuestId(4415); questRoot = new QuestRoot(); QuestRoot questRoot32 = questRoot; num = 1; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - CollectionsMarshal.AsSpan(list126)[0] = "liza"; - questRoot32.Author = list126; + List list120 = new List(num); + CollectionsMarshal.SetCount(list120, num); + Span span173 = CollectionsMarshal.AsSpan(list120); + index = 0; + span173[index] = "liza"; + questRoot32.Author = list120; QuestRoot questRoot33 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span53 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference140 = ref span53[0]; - QuestSequence obj88 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span174 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference140 = ref span174[num]; + QuestSequence obj86 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039047u, new Vector3(537.77356f, 10.226297f, 238.75781f), 957); - obj88.Steps = list127; - reference140 = obj88; - ref QuestSequence reference141 = ref span53[1]; - QuestSequence obj89 = new QuestSequence + List list121 = new List(num2); + CollectionsMarshal.SetCount(list121, num2); + Span span175 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span175[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039047u, new Vector3(537.77356f, 10.226297f, 238.75781f), 957); + obj86.Steps = list121; + reference140 = obj86; + num++; + ref QuestSequence reference141 = ref span174[num]; + QuestSequence obj87 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 2012207u, new Vector3(270.0083f, 11.550964f, 147.6615f), 957); - obj89.Steps = list128; - reference141 = obj89; - ref QuestSequence reference142 = ref span53[2]; - QuestSequence obj90 = new QuestSequence + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span176 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span176[num2] = new QuestStep(EInteractionType.Interact, 2012207u, new Vector3(270.0083f, 11.550964f, 147.6615f), 957); + obj87.Steps = list122; + reference141 = obj87; + num++; + ref QuestSequence reference142 = ref span174[num]; + QuestSequence obj88 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1039051u, new Vector3(153.33789f, -35.629883f, 141.25269f), 957) + List list123 = new List(num2); + CollectionsMarshal.SetCount(list123, num2); + Span span177 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span177[index2] = new QuestStep(EInteractionType.Interact, 1039051u, new Vector3(153.33789f, -35.629883f, 141.25269f), 957) { DisableNavmesh = true }; - obj90.Steps = list129; - reference142 = obj90; - ref QuestSequence reference143 = ref span53[3]; + obj88.Steps = list123; + reference142 = obj88; + num++; + ref QuestSequence reference143 = ref span174[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence42 = questSequence; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 2012208u, new Vector3(163.80554f, -60.471558f, 133.25696f), 957) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span178 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span178[num2] = new QuestStep(EInteractionType.Interact, 2012208u, new Vector3(163.80554f, -60.471558f, 133.25696f), 957) { StopDistance = 1f, DisableNavmesh = true }; - questSequence42.Steps = list130; + questSequence42.Steps = list124; reference143 = questSequence; - ref QuestSequence reference144 = ref span53[4]; + num++; + ref QuestSequence reference144 = ref span174[num]; questSequence = new QuestSequence { Sequence = 4 @@ -293355,147 +355881,187 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span54 = CollectionsMarshal.AsSpan(list4); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(235.94444f, -0.6f, 145.83025f), 957) + Span span179 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span179[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(235.94444f, -0.6f, 145.83025f), 957) { DisableNavmesh = true, Mount = true }; - span54[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(252.0308f, 0.57823455f, 150.66217f), 957) + index2++; + span179[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(252.0308f, 0.57823455f, 150.66217f), 957) { DisableNavmesh = true }; - span54[2] = new QuestStep(EInteractionType.Interact, 1039052u, new Vector3(155.2605f, 11.6644f, 217.85303f), 957); + index2++; + span179[index2] = new QuestStep(EInteractionType.Interact, 1039052u, new Vector3(155.2605f, 11.6644f, 217.85303f), 957); questSequence43.Steps = list4; reference144 = questSequence; - ref QuestSequence reference145 = ref span53[5]; - QuestSequence obj91 = new QuestSequence + num++; + ref QuestSequence reference145 = ref span174[num]; + QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039056u, new Vector3(-36.484375f, 25.65825f, -319.87494f), 957) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span180 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039056u, new Vector3(-36.484375f, 25.65825f, -319.87494f), 957) { StopDistance = 5f }; - obj91.Steps = list131; - reference145 = obj91; + obj89.Steps = list125; + reference145 = obj89; questRoot33.QuestSequence = list2; AddQuest(questId16, questRoot); QuestId questId17 = new QuestId(4416); questRoot = new QuestRoot(); QuestRoot questRoot34 = questRoot; num = 1; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "liza"; - questRoot34.Author = list132; + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + Span span181 = CollectionsMarshal.AsSpan(list126); + index = 0; + span181[index] = "liza"; + questRoot34.Author = list126; QuestRoot questRoot35 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span55 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference146 = ref span55[0]; - QuestSequence obj92 = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span182 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference146 = ref span182[num]; + QuestSequence obj90 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039058u, new Vector3(-38.19336f, 25.818825f, -318.47113f), 957); - obj92.Steps = list133; - reference146 = obj92; - ref QuestSequence reference147 = ref span55[1]; + List list127 = new List(num2); + CollectionsMarshal.SetCount(list127, num2); + Span span183 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span183[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039058u, new Vector3(-38.19336f, 25.818825f, -318.47113f), 957); + obj90.Steps = list127; + reference146 = obj90; + num++; + ref QuestSequence reference147 = ref span182[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence44 = questSequence; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1039059u, new Vector3(381.88745f, 3.1168795f, -262.0432f), 957) + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span184 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span184[num2] = new QuestStep(EInteractionType.Interact, 1039059u, new Vector3(381.88745f, 3.1168795f, -262.0432f), 957) { StopDistance = 15f, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; - questSequence44.Steps = list134; + questSequence44.Steps = list128; reference147 = questSequence; - ref QuestSequence reference148 = ref span55[2]; - QuestSequence obj93 = new QuestSequence + num++; + ref QuestSequence reference148 = ref span182[num]; + QuestSequence obj91 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1039064u, new Vector3(428.85486f, 3.1168792f, -262.62305f), 957) + List list129 = new List(num2); + CollectionsMarshal.SetCount(list129, num2); + Span span185 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.Interact, 1039064u, new Vector3(428.85486f, 3.1168792f, -262.62305f), 957) { StopDistance = 7f }; - obj93.Steps = list135; - reference148 = obj93; - ref QuestSequence reference149 = ref span55[3]; + obj91.Steps = list129; + reference148 = obj91; + num++; + ref QuestSequence reference149 = ref span182[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence45 = questSequence; - num2 = 3; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span56 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference150 = ref span56[0]; + index2 = 3; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span186 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference150 = ref span186[num2]; questStep = new QuestStep(EInteractionType.Interact, 1037628u, new Vector3(432.9137f, 3.1168795f, -243.76288f), 957); - QuestStep questStep17 = questStep; - num3 = 6; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span57 = CollectionsMarshal.AsSpan(list136); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep17.CompletionQuestVariablesFlags = list136; - reference150 = questStep; - ref QuestStep reference151 = ref span56[1]; - questStep = new QuestStep(EInteractionType.Interact, 1040449u, new Vector3(368.64258f, 3.5858154f, -238.3612f), 957); - QuestStep questStep18 = questStep; - num3 = 6; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - Span span58 = CollectionsMarshal.AsSpan(list137); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep18.CompletionQuestVariablesFlags = list137; - reference151 = questStep; - ref QuestStep reference152 = ref span56[2]; - questStep = new QuestStep(EInteractionType.Interact, 1037629u, new Vector3(430.01453f, 13.027412f, -200.85455f), 957); QuestStep questStep19 = questStep; num3 = 6; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span59 = CollectionsMarshal.AsSpan(list138); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep19.CompletionQuestVariablesFlags = list138; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span187 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span187[index3] = null; + index3++; + span187[index3] = null; + index3++; + span187[index3] = null; + index3++; + span187[index3] = null; + index3++; + span187[index3] = null; + index3++; + span187[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep19.CompletionQuestVariablesFlags = list75; + reference150 = questStep; + num2++; + ref QuestStep reference151 = ref span186[num2]; + questStep = new QuestStep(EInteractionType.Interact, 1040449u, new Vector3(368.64258f, 3.5858154f, -238.3612f), 957); + QuestStep questStep20 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span188 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep20.CompletionQuestVariablesFlags = list75; + reference151 = questStep; + num2++; + ref QuestStep reference152 = ref span186[num2]; + questStep = new QuestStep(EInteractionType.Interact, 1037629u, new Vector3(430.01453f, 13.027412f, -200.85455f), 957); + QuestStep questStep21 = questStep; + num3 = 6; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span189 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span189[index3] = null; + index3++; + span189[index3] = null; + index3++; + span189[index3] = null; + index3++; + span189[index3] = null; + index3++; + span189[index3] = null; + index3++; + span189[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep21.CompletionQuestVariablesFlags = list75; reference152 = questStep; questSequence45.Steps = list4; reference149 = questSequence; - ref QuestSequence reference153 = ref span55[4]; + num++; + ref QuestSequence reference153 = ref span182[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -293504,16 +356070,19 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span60 = CollectionsMarshal.AsSpan(list4); - span60[0] = new QuestStep(EInteractionType.AcceptQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957) + Span span190 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957) { PickUpQuestId = new QuestId(4259) }; - span60[1] = new QuestStep(EInteractionType.AcceptQuest, 1040864u, new Vector3(462.51624f, 14.320099f, -219.86731f), 957) + index2++; + span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040864u, new Vector3(462.51624f, 14.320099f, -219.86731f), 957) { PickUpQuestId = new QuestId(4257) }; - span60[2] = new QuestStep(EInteractionType.CompleteQuest, 1039064u, new Vector3(428.85486f, 3.1168792f, -262.62305f), 957); + index2++; + span190[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039064u, new Vector3(428.85486f, 3.1168792f, -262.62305f), 957); questSequence46.Steps = list4; reference153 = questSequence; questRoot35.QuestSequence = list2; @@ -293522,72 +356091,86 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot36 = questRoot; num = 1; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; - questRoot36.Author = list139; + List list130 = new List(num); + CollectionsMarshal.SetCount(list130, num); + Span span191 = CollectionsMarshal.AsSpan(list130); + index = 0; + span191[index] = "liza"; + questRoot36.Author = list130; QuestRoot questRoot37 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span61 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference154 = ref span61[0]; - QuestSequence obj94 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span192 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference154 = ref span192[num]; + QuestSequence obj92 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039068u, new Vector3(425.10107f, 3.1168795f, -262.62305f), 957) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span193 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039068u, new Vector3(425.10107f, 3.1168795f, -262.62305f), 957) { StopDistance = 8f }; - obj94.Steps = list140; - reference154 = obj94; - ref QuestSequence reference155 = ref span61[1]; - QuestSequence obj95 = new QuestSequence + obj92.Steps = list131; + reference154 = obj92; + num++; + ref QuestSequence reference155 = ref span192[num]; + QuestSequence obj93 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 1040351u, new Vector3(518.2726f, 54.344826f, -597.83325f), 957) + List list132 = new List(num2); + CollectionsMarshal.SetCount(list132, num2); + Span span194 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span194[index2] = new QuestStep(EInteractionType.Interact, 1040351u, new Vector3(518.2726f, 54.344826f, -597.83325f), 957) { Fly = true }; - obj95.Steps = list141; - reference155 = obj95; - ref QuestSequence reference156 = ref span61[2]; + obj93.Steps = list132; + reference155 = obj93; + num++; + ref QuestSequence reference156 = ref span192[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence47 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span62 = CollectionsMarshal.AsSpan(list4); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(579.50446f, 55.259193f, -683.829f), 957) + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span195 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(579.50446f, 55.259193f, -683.829f), 957) { TargetTerritoryId = (ushort)963, Fly = true, Comment = "Travel to Radz-at-Han" }; - span62[1] = new QuestStep(EInteractionType.Interact, 1040354u, new Vector3(1.8157349f, -1.9999962f, 95.750244f), 963); + num2++; + span195[num2] = new QuestStep(EInteractionType.Interact, 1040354u, new Vector3(1.8157349f, -1.9999962f, 95.750244f), 963); questSequence47.Steps = list4; reference156 = questSequence; - ref QuestSequence reference157 = ref span61[3]; + num++; + ref QuestSequence reference157 = ref span192[num]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence48 = questSequence; num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 1040358u, new Vector3(-69.62695f, 25.000006f, -35.324707f), 963) + List list133 = new List(num2); + CollectionsMarshal.SetCount(list133, num2); + Span span196 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span196[index2] = new QuestStep(EInteractionType.Interact, 1040358u, new Vector3(-69.62695f, 25.000006f, -35.324707f), 963) { AethernetShortcut = new AethernetShortcut { @@ -293595,82 +356178,100 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanRuveydahFibers } }; - questSequence48.Steps = list142; + questSequence48.Steps = list133; reference157 = questSequence; - ref QuestSequence reference158 = ref span61[4]; - QuestSequence obj96 = new QuestSequence + num++; + ref QuestSequence reference158 = ref span192[num]; + QuestSequence obj94 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1040359u, new Vector3(-121.26343f, 31f, 9.109558f), 963); - obj96.Steps = list143; - reference158 = obj96; - ref QuestSequence reference159 = ref span61[5]; - QuestSequence obj97 = new QuestSequence + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span197 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span197[num2] = new QuestStep(EInteractionType.Interact, 1040359u, new Vector3(-121.26343f, 31f, 9.109558f), 963); + obj94.Steps = list134; + reference158 = obj94; + num++; + ref QuestSequence reference159 = ref span192[num]; + QuestSequence obj95 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 2012209u, new Vector3(-206.65302f, 35.99597f, 67.46008f), 963); - obj97.Steps = list144; - reference159 = obj97; - ref QuestSequence reference160 = ref span61[6]; - QuestSequence obj98 = new QuestSequence + List list135 = new List(num2); + CollectionsMarshal.SetCount(list135, num2); + Span span198 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span198[index2] = new QuestStep(EInteractionType.Interact, 2012209u, new Vector3(-206.65302f, 35.99597f, 67.46008f), 963); + obj95.Steps = list135; + reference159 = obj95; + num++; + ref QuestSequence reference160 = ref span192[num]; + QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040360u, new Vector3(-207.17181f, 36f, 71.70203f), 963) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span199 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span199[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040360u, new Vector3(-207.17181f, 36f, 71.70203f), 963) { StopDistance = 7f }; - obj98.Steps = list145; - reference160 = obj98; + obj96.Steps = list136; + reference160 = obj96; questRoot37.QuestSequence = list2; AddQuest(questId18, questRoot); QuestId questId19 = new QuestId(4418); questRoot = new QuestRoot(); QuestRoot questRoot38 = questRoot; num = 1; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "liza"; - questRoot38.Author = list146; + List list137 = new List(num); + CollectionsMarshal.SetCount(list137, num); + Span span200 = CollectionsMarshal.AsSpan(list137); + index = 0; + span200[index] = "liza"; + questRoot38.Author = list137; QuestRoot questRoot39 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span63 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference161 = ref span63[0]; - QuestSequence obj99 = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span201 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference161 = ref span201[num]; + QuestSequence obj97 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040372u, new Vector3(-214.40454f, 36f, 64.86609f), 963); - obj99.Steps = list147; - reference161 = obj99; - ref QuestSequence reference162 = ref span63[1]; - QuestSequence obj100 = new QuestSequence + List list138 = new List(num2); + CollectionsMarshal.SetCount(list138, num2); + Span span202 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span202[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040372u, new Vector3(-214.40454f, 36f, 64.86609f), 963); + obj97.Steps = list138; + reference161 = obj97; + num++; + ref QuestSequence reference162 = ref span201[num]; + QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1040373u, new Vector3(-0.3204956f, -2.514571E-07f, -2.1210327f), 963); - obj100.Steps = list148; - reference162 = obj100; - ref QuestSequence reference163 = ref span63[2]; + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + Span span203 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.Interact, 1040373u, new Vector3(-0.3204956f, -2.514571E-07f, -2.1210327f), 963); + obj98.Steps = list139; + reference162 = obj98; + num++; + ref QuestSequence reference163 = ref span201[num]; questSequence = new QuestSequence { Sequence = 2 @@ -293679,31 +356280,38 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span64 = CollectionsMarshal.AsSpan(list4); - span64[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 963) + Span span204 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span204[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 963) { DisableNavmesh = true, Aetheryte = EAetheryteLocation.RadzAtHan }; - span64[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + index2++; + span204[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanHallOfTheRadiantHost }; - span64[2] = new QuestStep(EInteractionType.Interact, 1040374u, new Vector3(-145.80005f, 3.9999294f, -83.9704f), 963); + index2++; + span204[index2] = new QuestStep(EInteractionType.Interact, 1040374u, new Vector3(-145.80005f, 3.9999294f, -83.9704f), 963); questSequence49.Steps = list4; reference163 = questSequence; - ref QuestSequence reference164 = ref span63[3]; - QuestSequence obj101 = new QuestSequence + num++; + ref QuestSequence reference164 = ref span201[num]; + QuestSequence obj99 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1040375u, new Vector3(-172.1676f, 4.061f, -87.90729f), 963); - obj101.Steps = list149; - reference164 = obj101; - ref QuestSequence reference165 = ref span63[4]; + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span205 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span205[num2] = new QuestStep(EInteractionType.Interact, 1040375u, new Vector3(-172.1676f, 4.061f, -87.90729f), 963); + obj99.Steps = list140; + reference164 = obj99; + num++; + ref QuestSequence reference165 = ref span201[num]; questSequence = new QuestSequence { Sequence = 4 @@ -293712,32 +356320,39 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference166 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1040375u, new Vector3(-172.1676f, 4.061f, -87.90729f), 963); - num3 = 1; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = new DialogueChoice + Span span206 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference166 = ref span206[index2]; + QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1040375u, new Vector3(-172.1676f, 4.061f, -87.90729f), 963); + index3 = 1; + List list141 = new List(index3); + CollectionsMarshal.SetCount(list141, index3); + Span span207 = CollectionsMarshal.AsSpan(list141); + num3 = 0; + span207[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMD110_04418_Q2_000_172"), Answer = new ExcelRef("TEXT_AKTKMD110_04418_A2_000_173") }; - questStep20.DialogueChoices = list150; - reference166 = questStep20; + questStep22.DialogueChoices = list141; + reference166 = questStep22; questSequence50.Steps = list4; reference165 = questSequence; - ref QuestSequence reference167 = ref span63[5]; + num++; + ref QuestSequence reference167 = ref span201[num]; questSequence = new QuestSequence { Sequence = 5 }; QuestSequence questSequence51 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference168 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj102 = new QuestStep(EInteractionType.Interact, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963) + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span208 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference168 = ref span208[num2]; + QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963) { AethernetShortcut = new AethernetShortcut { @@ -293746,82 +356361,98 @@ public static class AssemblyQuestLoader } }; num3 = 1; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + Span span209 = CollectionsMarshal.AsSpan(list142); + index3 = 0; + span209[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMD110_04418_Q3_000_223"), Answer = new ExcelRef("TEXT_AKTKMD110_04418_A3_000_225") }; - obj102.DialogueChoices = list151; - reference168 = obj102; + obj100.DialogueChoices = list142; + reference168 = obj100; questSequence51.Steps = list4; reference167 = questSequence; - ref QuestSequence reference169 = ref span63[6]; - QuestSequence obj103 = new QuestSequence + num++; + ref QuestSequence reference169 = ref span201[num]; + QuestSequence obj101 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1040379u, new Vector3(8.010925f, 3.02f, -198.19946f), 963); - obj103.Steps = list152; - reference169 = obj103; - ref QuestSequence reference170 = ref span63[7]; - QuestSequence obj104 = new QuestSequence + List list143 = new List(num2); + CollectionsMarshal.SetCount(list143, num2); + Span span210 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span210[index2] = new QuestStep(EInteractionType.Interact, 1040379u, new Vector3(8.010925f, 3.02f, -198.19946f), 963); + obj101.Steps = list143; + reference169 = obj101; + num++; + ref QuestSequence reference170 = ref span201[num]; + QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040382u, new Vector3(2.9450073f, -1.9999962f, 87.44946f), 963) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span211 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span211[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040382u, new Vector3(2.9450073f, -1.9999962f, 87.44946f), 963) { StopDistance = 5f }; - obj104.Steps = list153; - reference170 = obj104; + obj102.Steps = list144; + reference170 = obj102; questRoot39.QuestSequence = list2; AddQuest(questId19, questRoot); QuestId questId20 = new QuestId(4419); questRoot = new QuestRoot(); QuestRoot questRoot40 = questRoot; num = 1; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - CollectionsMarshal.AsSpan(list154)[0] = "liza"; - questRoot40.Author = list154; + List list145 = new List(num); + CollectionsMarshal.SetCount(list145, num); + Span span212 = CollectionsMarshal.AsSpan(list145); + index = 0; + span212[index] = "liza"; + questRoot40.Author = list145; QuestRoot questRoot41 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span65 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference171 = ref span65[0]; - QuestSequence obj105 = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span213 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference171 = ref span213[num]; + QuestSequence obj103 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040386u, new Vector3(5.1116943f, -1.9999962f, 88.12085f), 963) + List list146 = new List(num2); + CollectionsMarshal.SetCount(list146, num2); + Span span214 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040386u, new Vector3(5.1116943f, -1.9999962f, 88.12085f), 963) { StopDistance = 5f }; - obj105.Steps = list155; - reference171 = obj105; - ref QuestSequence reference172 = ref span65[1]; + obj103.Steps = list146; + reference171 = obj103; + num++; + ref QuestSequence reference172 = ref span213[num]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence52 = questSequence; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1030369u, new Vector3(614.4961f, 13.3097515f, 305.80603f), 813) + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span215 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.Interact, 1030369u, new Vector3(614.4961f, 13.3097515f, 305.80603f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -293831,9 +356462,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - questSequence52.Steps = list156; + questSequence52.Steps = list147; reference172 = questSequence; - ref QuestSequence reference173 = ref span65[2]; + num++; + ref QuestSequence reference173 = ref span213[num]; questSequence = new QuestSequence { Sequence = 2 @@ -293842,7 +356474,9 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference174 = ref CollectionsMarshal.AsSpan(list4)[0]; + Span span216 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference174 = ref span216[index2]; questStep = new QuestStep(EInteractionType.Interact, 2012123u, new Vector3(-64.042114f, -37.70508f, -210.52875f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -293852,93 +356486,106 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumCabinetOfCuriosity } }; - QuestStep questStep21 = questStep; - num3 = 4; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - Span span66 = CollectionsMarshal.AsSpan(list157); - span66[0] = new DialogueChoice + QuestStep questStep23 = questStep; + index3 = 4; + list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + Span span217 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span217[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKME101_04419_Q2_000_071") }; - span66[1] = new DialogueChoice + num3++; + span217[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME101_04419_Q3_000_083"), Answer = new ExcelRef("TEXT_AKTKME101_04419_A3_000_087") }; - span66[2] = new DialogueChoice + num3++; + span217[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME101_04419_Q4_000_113"), Answer = new ExcelRef("TEXT_AKTKME101_04419_A4_000_114") }; - span66[3] = new DialogueChoice + num3++; + span217[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME101_04419_Q5_000_129"), Answer = new ExcelRef("TEXT_AKTKME101_04419_A5_000_131") }; - questStep21.DialogueChoices = list157; + questStep23.DialogueChoices = list15; reference174 = questStep; questSequence53.Steps = list4; reference173 = questSequence; - ref QuestSequence reference175 = ref span65[3]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference175 = ref span213[num]; + QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence54 = questSequence; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039992u, new Vector3(-65.26294f, -37.7f, -208.85028f), 819) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span218 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span218[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039992u, new Vector3(-65.26294f, -37.7f, -208.85028f), 819) { StopDistance = 6f }; - questSequence54.Steps = list158; - reference175 = questSequence; + obj104.Steps = list148; + reference175 = obj104; questRoot41.QuestSequence = list2; AddQuest(questId20, questRoot); QuestId questId21 = new QuestId(4420); questRoot = new QuestRoot(); QuestRoot questRoot42 = questRoot; num = 1; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - CollectionsMarshal.AsSpan(list159)[0] = "liza"; - questRoot42.Author = list159; + List list149 = new List(num); + CollectionsMarshal.SetCount(list149, num); + Span span219 = CollectionsMarshal.AsSpan(list149); + index = 0; + span219[index] = "liza"; + questRoot42.Author = list149; QuestRoot questRoot43 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span67 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference176 = ref span67[0]; - questSequence = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span220 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference176 = ref span220[num]; + QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence55 = questSequence; num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039992u, new Vector3(-65.26294f, -37.7f, -208.85028f), 819) + List list150 = new List(num2); + CollectionsMarshal.SetCount(list150, num2); + Span span221 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span221[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039992u, new Vector3(-65.26294f, -37.7f, -208.85028f), 819) { StopDistance = 6f }; - questSequence55.Steps = list160; - reference176 = questSequence; - ref QuestSequence reference177 = ref span67[1]; + obj105.Steps = list150; + reference176 = obj105; + num++; + ref QuestSequence reference177 = ref span220[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence56 = questSequence; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + QuestSequence questSequence54 = questSequence; + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span222 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span222[num2] = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -293947,23 +356594,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - questSequence56.Steps = list161; + questSequence54.Steps = list151; reference177 = questSequence; - span67[2] = new QuestSequence + num++; + span220[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference178 = ref span67[3]; + num++; + ref QuestSequence reference178 = ref span220[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence57 = questSequence; + QuestSequence questSequence55 = questSequence; num2 = 5; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span68 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference179 = ref span68[0]; + Span span223 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference179 = ref span223[index2]; questStep = new QuestStep(EInteractionType.Jump, null, new Vector3(-6.1157894f, 2.0849845f, -4.654831f), 1031) { JumpDestination = new JumpDestination @@ -293971,267 +356621,339 @@ public static class AssemblyQuestLoader Position = new Vector3(-1.5539734f, 3.6164591f, -1.1141448f) } }; - QuestStep questStep22 = questStep; + QuestStep questStep24 = questStep; skipConditions3 = new SkipConditions(); SkipConditions skipConditions5 = skipConditions3; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions3 = skipStepConditions; num3 = 6; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - Span span69 = CollectionsMarshal.AsSpan(list162); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - skipStepConditions3.CompletionQuestVariablesFlags = list162; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span224 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span224[index3] = null; + index3++; + span224[index3] = null; + index3++; + span224[index3] = null; + index3++; + span224[index3] = null; + index3++; + span224[index3] = null; + index3++; + span224[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + skipStepConditions3.CompletionQuestVariablesFlags = list75; skipConditions5.StepIf = skipStepConditions; - questStep22.SkipConditions = skipConditions3; + questStep24.SkipConditions = skipConditions3; reference179 = questStep; - ref QuestStep reference180 = ref span68[1]; + index2++; + ref QuestStep reference180 = ref span223[index2]; questStep = new QuestStep(EInteractionType.Interact, 2012128u, new Vector3(-0.001528129f, 4.931927f, 0.01416349f), 1031); - QuestStep questStep23 = questStep; - num3 = 6; - List list163 = new List(num3); - CollectionsMarshal.SetCount(list163, num3); - Span span70 = CollectionsMarshal.AsSpan(list163); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep23.CompletionQuestVariablesFlags = list163; - reference180 = questStep; - ref QuestStep reference181 = ref span68[2]; - questStep = new QuestStep(EInteractionType.Interact, 1039993u, new Vector3(20.61493f, 0.2999945f, -9.353821f), 1031); - QuestStep questStep24 = questStep; - num3 = 6; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - Span span71 = CollectionsMarshal.AsSpan(list164); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep24.CompletionQuestVariablesFlags = list164; - reference181 = questStep; - ref QuestStep reference182 = ref span68[3]; - questStep = new QuestStep(EInteractionType.Interact, 1039994u, new Vector3(51.163452f, 0.8999986f, 2.1209717f), 1031); QuestStep questStep25 = questStep; - num3 = 6; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - Span span72 = CollectionsMarshal.AsSpan(list165); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep25.CompletionQuestVariablesFlags = list165; - reference182 = questStep; - ref QuestStep reference183 = ref span68[4]; - questStep = new QuestStep(EInteractionType.Interact, 1039995u, new Vector3(-37.003174f, 0.90000004f, -4.1657104f), 1031); + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span225 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = null; + num3++; + span225[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep25.CompletionQuestVariablesFlags = list75; + reference180 = questStep; + index2++; + ref QuestStep reference181 = ref span223[index2]; + questStep = new QuestStep(EInteractionType.Interact, 1039993u, new Vector3(20.61493f, 0.2999945f, -9.353821f), 1031); QuestStep questStep26 = questStep; num3 = 6; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - Span span73 = CollectionsMarshal.AsSpan(list166); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep26.CompletionQuestVariablesFlags = list166; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span226 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span226[index3] = null; + index3++; + span226[index3] = null; + index3++; + span226[index3] = null; + index3++; + span226[index3] = null; + index3++; + span226[index3] = null; + index3++; + span226[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep26.CompletionQuestVariablesFlags = list75; + reference181 = questStep; + index2++; + ref QuestStep reference182 = ref span223[index2]; + questStep = new QuestStep(EInteractionType.Interact, 1039994u, new Vector3(51.163452f, 0.8999986f, 2.1209717f), 1031); + QuestStep questStep27 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span227 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span227[num3] = null; + num3++; + span227[num3] = null; + num3++; + span227[num3] = null; + num3++; + span227[num3] = null; + num3++; + span227[num3] = null; + num3++; + span227[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep27.CompletionQuestVariablesFlags = list75; + reference182 = questStep; + index2++; + ref QuestStep reference183 = ref span223[index2]; + questStep = new QuestStep(EInteractionType.Interact, 1039995u, new Vector3(-37.003174f, 0.90000004f, -4.1657104f), 1031); + QuestStep questStep28 = questStep; + num3 = 6; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span228 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span228[index3] = null; + index3++; + span228[index3] = null; + index3++; + span228[index3] = null; + index3++; + span228[index3] = null; + index3++; + span228[index3] = null; + index3++; + span228[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep28.CompletionQuestVariablesFlags = list75; reference183 = questStep; - questSequence57.Steps = list4; + questSequence55.Steps = list4; reference178 = questSequence; - ref QuestSequence reference184 = ref span67[4]; + num++; + ref QuestSequence reference184 = ref span220[num]; QuestSequence obj106 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 2012129u, new Vector3(-0.07635498f, 2.2124634f, 61.600586f), 1031); - obj106.Steps = list167; + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span229 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span229[num2] = new QuestStep(EInteractionType.Interact, 2012129u, new Vector3(-0.07635498f, 2.2124634f, 61.600586f), 1031); + obj106.Steps = list152; reference184 = obj106; - ref QuestSequence reference185 = ref span67[5]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference185 = ref span220[num]; + QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence58 = questSequence; num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039996u, new Vector3(262.53137f, 44.32154f, 771.4198f), 961) + List list153 = new List(num2); + CollectionsMarshal.SetCount(list153, num2); + Span span230 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span230[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039996u, new Vector3(262.53137f, 44.32154f, 771.4198f), 961) { StopDistance = 5f }; - questSequence58.Steps = list168; - reference185 = questSequence; + obj107.Steps = list153; + reference185 = obj107; questRoot43.QuestSequence = list2; AddQuest(questId21, questRoot); QuestId questId22 = new QuestId(4421); questRoot = new QuestRoot(); QuestRoot questRoot44 = questRoot; num = 1; - List list169 = new List(num); - CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "liza"; - questRoot44.Author = list169; + List list154 = new List(num); + CollectionsMarshal.SetCount(list154, num); + Span span231 = CollectionsMarshal.AsSpan(list154); + index = 0; + span231[index] = "liza"; + questRoot44.Author = list154; QuestRoot questRoot45 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span74 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference186 = ref span74[0]; - questSequence = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span232 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference186 = ref span232[num]; + QuestSequence obj108 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence59 = questSequence; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039996u, new Vector3(262.53137f, 44.32154f, 771.4198f), 961) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span233 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span233[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039996u, new Vector3(262.53137f, 44.32154f, 771.4198f), 961) { StopDistance = 5f }; - questSequence59.Steps = list170; - reference186 = questSequence; - ref QuestSequence reference187 = ref span74[1]; - QuestSequence obj107 = new QuestSequence + obj108.Steps = list155; + reference186 = obj108; + num++; + ref QuestSequence reference187 = ref span232[num]; + QuestSequence obj109 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1039998u, new Vector3(206.0426f, 20.561113f, 629.14465f), 961); - obj107.Steps = list171; - reference187 = obj107; - ref QuestSequence reference188 = ref span74[2]; + List list156 = new List(num2); + CollectionsMarshal.SetCount(list156, num2); + Span span234 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span234[index2] = new QuestStep(EInteractionType.Interact, 1039998u, new Vector3(206.0426f, 20.561113f, 629.14465f), 961); + obj109.Steps = list156; + reference187 = obj109; + num++; + ref QuestSequence reference188 = ref span232[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence60 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference189 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj108 = new QuestStep(EInteractionType.Combat, 1039998u, new Vector3(206.0426f, 20.561113f, 629.14465f), 961) + QuestSequence questSequence56 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span235 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference189 = ref span235[num2]; + questStep = new QuestStep(EInteractionType.Combat, 1039998u, new Vector3(206.0426f, 20.561113f, 629.14465f), 961) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 3; - List list172 = new List(num3); - CollectionsMarshal.SetCount(list172, num3); - Span span75 = CollectionsMarshal.AsSpan(list172); - span75[0] = 13447u; - span75[1] = 13448u; - span75[2] = 13449u; - obj108.KillEnemyDataIds = list172; - obj108.CombatItemUse = new CombatItemUse + QuestStep questStep29 = questStep; + index3 = 3; + List list157 = new List(index3); + CollectionsMarshal.SetCount(list157, index3); + Span span236 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span236[num3] = 13447u; + num3++; + span236[num3] = 13448u; + num3++; + span236[num3] = 13449u; + questStep29.KillEnemyDataIds = list157; + questStep.CombatItemUse = new CombatItemUse { ItemId = 2003232u, Condition = ECombatItemUseCondition.HealthPercent, Value = 50 }; - reference189 = obj108; - questSequence60.Steps = list4; + reference189 = questStep; + questSequence56.Steps = list4; reference188 = questSequence; - ref QuestSequence reference190 = ref span74[3]; - QuestSequence obj109 = new QuestSequence + num++; + ref QuestSequence reference190 = ref span232[num]; + QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039998u, new Vector3(206.0426f, 20.561113f, 629.14465f), 961); - obj109.Steps = list173; - reference190 = obj109; + List list158 = new List(num2); + CollectionsMarshal.SetCount(list158, num2); + Span span237 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span237[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039998u, new Vector3(206.0426f, 20.561113f, 629.14465f), 961); + obj110.Steps = list158; + reference190 = obj110; questRoot45.QuestSequence = list2; AddQuest(questId22, questRoot); QuestId questId23 = new QuestId(4422); questRoot = new QuestRoot(); QuestRoot questRoot46 = questRoot; num = 1; - List list174 = new List(num); - CollectionsMarshal.SetCount(list174, num); - CollectionsMarshal.AsSpan(list174)[0] = "liza"; - questRoot46.Author = list174; + List list159 = new List(num); + CollectionsMarshal.SetCount(list159, num); + Span span238 = CollectionsMarshal.AsSpan(list159); + index = 0; + span238[index] = "liza"; + questRoot46.Author = list159; QuestRoot questRoot47 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span76 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference191 = ref span76[0]; - QuestSequence obj110 = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span239 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference191 = ref span239[num]; + QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039998u, new Vector3(206.0426f, 20.561113f, 629.14465f), 961); - obj110.Steps = list175; - reference191 = obj110; - ref QuestSequence reference192 = ref span76[1]; - QuestSequence obj111 = new QuestSequence + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span240 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039998u, new Vector3(206.0426f, 20.561113f, 629.14465f), 961); + obj111.Steps = list160; + reference191 = obj111; + num++; + ref QuestSequence reference192 = ref span239[num]; + QuestSequence obj112 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1040000u, new Vector3(173.2356f, 7.4767504f, 325.64282f), 961); - obj111.Steps = list176; - reference192 = obj111; - ref QuestSequence reference193 = ref span76[2]; - QuestSequence obj112 = new QuestSequence + List list161 = new List(num2); + CollectionsMarshal.SetCount(list161, num2); + Span span241 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.Interact, 1040000u, new Vector3(173.2356f, 7.4767504f, 325.64282f), 961); + obj112.Steps = list161; + reference192 = obj112; + num++; + ref QuestSequence reference193 = ref span239[num]; + QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1040003u, new Vector3(229.02258f, 8.085857f, 195.39172f), 961); - obj112.Steps = list177; - reference193 = obj112; - ref QuestSequence reference194 = ref span76[3]; + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span242 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.Interact, 1040003u, new Vector3(229.02258f, 8.085857f, 195.39172f), 961); + obj113.Steps = list162; + reference193 = obj113; + num++; + ref QuestSequence reference194 = ref span239[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence61 = questSequence; + QuestSequence questSequence57 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference195 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep27 = new QuestStep(EInteractionType.CompleteQuest, 1040009u, new Vector3(366.84216f, -1.0297052f, 157.61035f), 961); + Span span243 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference195 = ref span243[index2]; + QuestStep questStep30 = new QuestStep(EInteractionType.CompleteQuest, 1040009u, new Vector3(366.84216f, -1.0297052f, 157.61035f), 961); num3 = 1; - List list178 = new List(num3); - CollectionsMarshal.SetCount(list178, num3); - CollectionsMarshal.AsSpan(list178)[0] = new DialogueChoice + List list163 = new List(num3); + CollectionsMarshal.SetCount(list163, num3); + Span span244 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span244[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME104_04422_Q1_000_094"), Answer = new ExcelRef("TEXT_AKTKME104_04422_A1_000_095") }; - questStep27.DialogueChoices = list178; - reference195 = questStep27; - questSequence61.Steps = list4; + questStep30.DialogueChoices = list163; + reference195 = questStep30; + questSequence57.Steps = list4; reference194 = questSequence; questRoot47.QuestSequence = list2; AddQuest(questId23, questRoot); @@ -294239,349 +356961,428 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot48 = questRoot; num = 1; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - CollectionsMarshal.AsSpan(list179)[0] = "liza"; - questRoot48.Author = list179; + List list164 = new List(num); + CollectionsMarshal.SetCount(list164, num); + Span span245 = CollectionsMarshal.AsSpan(list164); + index = 0; + span245[index] = "liza"; + questRoot48.Author = list164; QuestRoot questRoot49 = questRoot; - num = 9; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span77 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference196 = ref span77[0]; - questSequence = new QuestSequence + index = 9; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span246 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference196 = ref span246[num]; + QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence62 = questSequence; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040014u, new Vector3(368.88684f, -1.1050489f, 158.0376f), 961) + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span247 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span247[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040014u, new Vector3(368.88684f, -1.1050489f, 158.0376f), 961) { StopDistance = 5f }; - questSequence62.Steps = list180; - reference196 = questSequence; - ref QuestSequence reference197 = ref span77[1]; - QuestSequence obj113 = new QuestSequence + obj114.Steps = list165; + reference196 = obj114; + num++; + ref QuestSequence reference197 = ref span246[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1040015u, new Vector3(225.78772f, 7.3858566f, 201.37329f), 961); - obj113.Steps = list181; - reference197 = obj113; - ref QuestSequence reference198 = ref span77[2]; + List list166 = new List(num2); + CollectionsMarshal.SetCount(list166, num2); + Span span248 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span248[index2] = new QuestStep(EInteractionType.Interact, 1040015u, new Vector3(225.78772f, 7.3858566f, 201.37329f), 961); + obj115.Steps = list166; + reference197 = obj115; + num++; + ref QuestSequence reference198 = ref span246[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence63 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span78 = CollectionsMarshal.AsSpan(list4); - span78[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 961) + QuestSequence questSequence58 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span249 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span249[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 961) { StopDistance = 6f, Aetheryte = EAetheryteLocation.ElpisAnagnorisis }; - span78[1] = new QuestStep(EInteractionType.Interact, 1040018u, new Vector3(156.45068f, 17.339952f, 53.665894f), 961); - questSequence63.Steps = list4; + num2++; + span249[num2] = new QuestStep(EInteractionType.Interact, 1040018u, new Vector3(156.45068f, 17.339952f, 53.665894f), 961); + questSequence58.Steps = list4; reference198 = questSequence; - ref QuestSequence reference199 = ref span77[3]; - QuestSequence obj114 = new QuestSequence + num++; + ref QuestSequence reference199 = ref span246[num]; + QuestSequence obj116 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1040019u, new Vector3(148.66858f, 16.93996f, 35.477173f), 961); - obj114.Steps = list182; - reference199 = obj114; - ref QuestSequence reference200 = ref span77[4]; + List list167 = new List(num2); + CollectionsMarshal.SetCount(list167, num2); + Span span250 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span250[index2] = new QuestStep(EInteractionType.Interact, 1040019u, new Vector3(148.66858f, 16.93996f, 35.477173f), 961); + obj116.Steps = list167; + reference199 = obj116; + num++; + ref QuestSequence reference200 = ref span246[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence64 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference201 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1040023u, new Vector3(152.54431f, 16.385857f, 73.258545f), 961); - num3 = 1; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - CollectionsMarshal.AsSpan(list183)[0] = new DialogueChoice + QuestSequence questSequence59 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span251 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference201 = ref span251[num2]; + QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1040023u, new Vector3(152.54431f, 16.385857f, 73.258545f), 961); + index3 = 1; + List list168 = new List(index3); + CollectionsMarshal.SetCount(list168, index3); + Span span252 = CollectionsMarshal.AsSpan(list168); + num3 = 0; + span252[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME105_04423_Q1_000_106"), Answer = new ExcelRef("TEXT_AKTKME105_04423_A1_000_107") }; - questStep28.DialogueChoices = list183; - reference201 = questStep28; - questSequence64.Steps = list4; + questStep31.DialogueChoices = list168; + reference201 = questStep31; + questSequence59.Steps = list4; reference200 = questSequence; - ref QuestSequence reference202 = ref span77[5]; + num++; + ref QuestSequence reference202 = ref span246[num]; questSequence = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence65 = questSequence; + QuestSequence questSequence60 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference203 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1040970u, new Vector3(146.13562f, 10.385858f, 121.47705f), 961); + Span span253 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference203 = ref span253[index2]; + QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 1040970u, new Vector3(146.13562f, 10.385858f, 121.47705f), 961); num3 = 1; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - CollectionsMarshal.AsSpan(list184)[0] = new DialogueChoice + List list169 = new List(num3); + CollectionsMarshal.SetCount(list169, num3); + Span span254 = CollectionsMarshal.AsSpan(list169); + index3 = 0; + span254[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME105_04423_Q4_000_178"), Answer = new ExcelRef("TEXT_AKTKME105_04423_A4_000_180") }; - questStep29.DialogueChoices = list184; - reference203 = questStep29; - questSequence65.Steps = list4; + questStep32.DialogueChoices = list169; + reference203 = questStep32; + questSequence60.Steps = list4; reference202 = questSequence; - ref QuestSequence reference204 = ref span77[6]; - QuestSequence obj115 = new QuestSequence + num++; + ref QuestSequence reference204 = ref span246[num]; + QuestSequence obj117 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1040025u, new Vector3(171.83179f, 8.3426f, 180.62097f), 961); - obj115.Steps = list185; - reference204 = obj115; - ref QuestSequence reference205 = ref span77[7]; + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span255 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span255[num2] = new QuestStep(EInteractionType.Interact, 1040025u, new Vector3(171.83179f, 8.3426f, 180.62097f), 961); + obj117.Steps = list170; + reference204 = obj117; + num++; + ref QuestSequence reference205 = ref span246[num]; questSequence = new QuestSequence { Sequence = 7 }; - QuestSequence questSequence66 = questSequence; + QuestSequence questSequence61 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference206 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1040971u, new Vector3(92.851074f, 10.665586f, 107.133545f), 961); - num3 = 1; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = new DialogueChoice + Span span256 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference206 = ref span256[index2]; + QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1040971u, new Vector3(92.851074f, 10.665586f, 107.133545f), 961); + index3 = 1; + List list171 = new List(index3); + CollectionsMarshal.SetCount(list171, index3); + Span span257 = CollectionsMarshal.AsSpan(list171); + num3 = 0; + span257[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME105_04423_Q7_000_313"), Answer = new ExcelRef("TEXT_AKTKME105_04423_A7_000_314") }; - questStep30.DialogueChoices = list186; - reference206 = questStep30; - questSequence66.Steps = list4; + questStep33.DialogueChoices = list171; + reference206 = questStep33; + questSequence61.Steps = list4; reference205 = questSequence; - ref QuestSequence reference207 = ref span77[8]; - QuestSequence obj116 = new QuestSequence + num++; + ref QuestSequence reference207 = ref span246[num]; + QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040027u, new Vector3(151.75085f, 17.339958f, 51.255005f), 961); - obj116.Steps = list187; - reference207 = obj116; + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span258 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span258[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040027u, new Vector3(151.75085f, 17.339958f, 51.255005f), 961); + obj118.Steps = list172; + reference207 = obj118; questRoot49.QuestSequence = list2; AddQuest(questId24, questRoot); QuestId questId25 = new QuestId(4424); questRoot = new QuestRoot(); QuestRoot questRoot50 = questRoot; num = 1; - List list188 = new List(num); - CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; - questRoot50.Author = list188; + List list173 = new List(num); + CollectionsMarshal.SetCount(list173, num); + Span span259 = CollectionsMarshal.AsSpan(list173); + index = 0; + span259[index] = "liza"; + questRoot50.Author = list173; QuestRoot questRoot51 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span79 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference208 = ref span79[0]; - QuestSequence obj117 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span260 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference208 = ref span260[num]; + QuestSequence obj119 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040027u, new Vector3(151.75085f, 17.339958f, 51.255005f), 961); - obj117.Steps = list189; - reference208 = obj117; - ref QuestSequence reference209 = ref span79[1]; - QuestSequence obj118 = new QuestSequence + List list174 = new List(num2); + CollectionsMarshal.SetCount(list174, num2); + Span span261 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span261[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040027u, new Vector3(151.75085f, 17.339958f, 51.255005f), 961); + obj119.Steps = list174; + reference208 = obj119; + num++; + ref QuestSequence reference209 = ref span260[num]; + QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1040031u, new Vector3(269.42847f, 5.8683457f, 266.3462f), 961); - obj118.Steps = list190; - reference209 = obj118; - ref QuestSequence reference210 = ref span79[2]; - QuestSequence obj119 = new QuestSequence + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span262 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.Interact, 1040031u, new Vector3(269.42847f, 5.8683457f, 266.3462f), 961); + obj120.Steps = list175; + reference209 = obj120; + num++; + ref QuestSequence reference210 = ref span260[num]; + QuestSequence obj121 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1040036u, new Vector3(360.1892f, 2.9879394f, 2.6397705f), 961); - obj119.Steps = list191; - reference210 = obj119; - ref QuestSequence reference211 = ref span79[3]; + List list176 = new List(num2); + CollectionsMarshal.SetCount(list176, num2); + Span span263 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span263[index2] = new QuestStep(EInteractionType.Interact, 1040036u, new Vector3(360.1892f, 2.9879394f, 2.6397705f), 961); + obj121.Steps = list176; + reference210 = obj121; + num++; + ref QuestSequence reference211 = ref span260[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence67 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span80 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference212 = ref span80[0]; + QuestSequence questSequence62 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span264 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference212 = ref span264[num2]; questStep = new QuestStep(EInteractionType.UseItem, 2012131u, new Vector3(369.19202f, 2.9754639f, 1.5411377f), 961) { ItemId = 2003234u, GroundTarget = true }; - QuestStep questStep31 = questStep; + QuestStep questStep34 = questStep; num3 = 6; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - Span span81 = CollectionsMarshal.AsSpan(list192); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep31.CompletionQuestVariablesFlags = list192; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span265 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span265[index3] = null; + index3++; + span265[index3] = null; + index3++; + span265[index3] = null; + index3++; + span265[index3] = null; + index3++; + span265[index3] = null; + index3++; + span265[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep34.CompletionQuestVariablesFlags = list75; reference212 = questStep; - ref QuestStep reference213 = ref span80[1]; + num2++; + ref QuestStep reference213 = ref span264[num2]; questStep = new QuestStep(EInteractionType.UseItem, 2012132u, new Vector3(373.18982f, 2.9754639f, 10.788086f), 961) { ItemId = 2003234u, GroundTarget = true }; - QuestStep questStep32 = questStep; - num3 = 6; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - Span span82 = CollectionsMarshal.AsSpan(list193); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep32.CompletionQuestVariablesFlags = list193; + QuestStep questStep35 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span266 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span266[num3] = null; + num3++; + span266[num3] = null; + num3++; + span266[num3] = null; + num3++; + span266[num3] = null; + num3++; + span266[num3] = null; + num3++; + span266[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep35.CompletionQuestVariablesFlags = list75; reference213 = questStep; - questSequence67.Steps = list4; + questSequence62.Steps = list4; reference211 = questSequence; - ref QuestSequence reference214 = ref span79[4]; - QuestSequence obj120 = new QuestSequence + num++; + ref QuestSequence reference214 = ref span260[num]; + QuestSequence obj122 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1040036u, new Vector3(360.1892f, 2.9879394f, 2.6397705f), 961); - obj120.Steps = list194; - reference214 = obj120; - ref QuestSequence reference215 = ref span79[5]; - QuestSequence obj121 = new QuestSequence + List list177 = new List(num2); + CollectionsMarshal.SetCount(list177, num2); + Span span267 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span267[index2] = new QuestStep(EInteractionType.Interact, 1040036u, new Vector3(360.1892f, 2.9879394f, 2.6397705f), 961); + obj122.Steps = list177; + reference214 = obj122; + num++; + ref QuestSequence reference215 = ref span260[num]; + QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040043u, new Vector3(558.64795f, 9.127456f, 48.264282f), 961); - obj121.Steps = list195; - reference215 = obj121; + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + Span span268 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span268[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040043u, new Vector3(558.64795f, 9.127456f, 48.264282f), 961); + obj123.Steps = list178; + reference215 = obj123; questRoot51.QuestSequence = list2; AddQuest(questId25, questRoot); QuestId questId26 = new QuestId(4425); questRoot = new QuestRoot(); QuestRoot questRoot52 = questRoot; num = 1; - List list196 = new List(num); - CollectionsMarshal.SetCount(list196, num); - CollectionsMarshal.AsSpan(list196)[0] = "liza"; - questRoot52.Author = list196; + List list179 = new List(num); + CollectionsMarshal.SetCount(list179, num); + Span span269 = CollectionsMarshal.AsSpan(list179); + index = 0; + span269[index] = "liza"; + questRoot52.Author = list179; QuestRoot questRoot53 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span83 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference216 = ref span83[0]; + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span270 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference216 = ref span270[num]; questSequence = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence68 = questSequence; + QuestSequence questSequence63 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference217 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep33 = new QuestStep(EInteractionType.AcceptQuest, 1040050u, new Vector3(560.32654f, 9.796983f, 63.70642f), 961); + Span span271 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference217 = ref span271[index2]; + QuestStep questStep36 = new QuestStep(EInteractionType.AcceptQuest, 1040050u, new Vector3(560.32654f, 9.796983f, 63.70642f), 961); num3 = 1; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new DialogueChoice + List list180 = new List(num3); + CollectionsMarshal.SetCount(list180, num3); + Span span272 = CollectionsMarshal.AsSpan(list180); + index3 = 0; + span272[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME107_04425_Q1_000_024"), Answer = new ExcelRef("TEXT_AKTKME107_04425_A1_000_025") }; - questStep33.DialogueChoices = list197; - reference217 = questStep33; - questSequence68.Steps = list4; + questStep36.DialogueChoices = list180; + reference217 = questStep36; + questSequence63.Steps = list4; reference216 = questSequence; - ref QuestSequence reference218 = ref span83[1]; - QuestSequence obj122 = new QuestSequence + num++; + ref QuestSequence reference218 = ref span270[num]; + QuestSequence obj124 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1040043u, new Vector3(558.64795f, 9.127456f, 48.264282f), 961); - obj122.Steps = list198; - reference218 = obj122; - ref QuestSequence reference219 = ref span83[2]; + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span273 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span273[num2] = new QuestStep(EInteractionType.Interact, 1040043u, new Vector3(558.64795f, 9.127456f, 48.264282f), 961); + obj124.Steps = list181; + reference218 = obj124; + num++; + ref QuestSequence reference219 = ref span270[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence69 = questSequence; + QuestSequence questSequence64 = questSequence; num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span84 = CollectionsMarshal.AsSpan(list4); - span84[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012020u, new Vector3(628.2388f, 8.316829f, 107.9021f), 961) + Span span274 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span274[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012020u, new Vector3(628.2388f, 8.316829f, 107.9021f), 961) { AetherCurrentId = 2818374u }; - span84[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(475.2184f, -17.473314f, 47.986946f), 961) + index2++; + span274[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(475.2184f, -17.473314f, 47.986946f), 961) { JumpDestination = new JumpDestination { @@ -294589,71 +357390,82 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span84[2] = new QuestStep(EInteractionType.Interact, 1040052u, new Vector3(349.14172f, -14.766006f, -111.61981f), 961); - questSequence69.Steps = list4; + index2++; + span274[index2] = new QuestStep(EInteractionType.Interact, 1040052u, new Vector3(349.14172f, -14.766006f, -111.61981f), 961); + questSequence64.Steps = list4; reference219 = questSequence; - ref QuestSequence reference220 = ref span83[3]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference220 = ref span270[num]; + QuestSequence obj125 = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence70 = questSequence; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1040055u, new Vector3(349.5078f, -14.757837f, -115.15985f), 961) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span275 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.Interact, 1040055u, new Vector3(349.5078f, -14.757837f, -115.15985f), 961) { StopDistance = 7f }; - questSequence70.Steps = list199; - reference220 = questSequence; - ref QuestSequence reference221 = ref span83[4]; + obj125.Steps = list182; + reference220 = obj125; + num++; + ref QuestSequence reference221 = ref span270[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence71 = questSequence; + QuestSequence questSequence65 = questSequence; num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Say, 1040061u, new Vector3(-2.1210327f, -15.847441f, -104.631165f), 961) + List list183 = new List(num2); + CollectionsMarshal.SetCount(list183, num2); + Span span276 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span276[index2] = new QuestStep(EInteractionType.Say, 1040061u, new Vector3(-2.1210327f, -15.847441f, -104.631165f), 961) { ChatMessage = new ChatMessage { Key = "TEXT_AKTKME107_04425_SAYTODO_000_190" } }; - questSequence71.Steps = list200; + questSequence65.Steps = list183; reference221 = questSequence; - ref QuestSequence reference222 = ref span83[5]; + num++; + ref QuestSequence reference222 = ref span270[num]; questSequence = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence72 = questSequence; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Say, 1040061u, new Vector3(-2.1210327f, -15.847441f, -104.631165f), 961) + QuestSequence questSequence66 = questSequence; + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span277 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span277[num2] = new QuestStep(EInteractionType.Say, 1040061u, new Vector3(-2.1210327f, -15.847441f, -104.631165f), 961) { ChatMessage = new ChatMessage { Key = "TEXT_AKTKME107_04425_SAYTODO_000_210" } }; - questSequence72.Steps = list201; + questSequence66.Steps = list184; reference222 = questSequence; - ref QuestSequence reference223 = ref span83[6]; + num++; + ref QuestSequence reference223 = ref span270[num]; questSequence = new QuestSequence { Sequence = 6 }; - QuestSequence questSequence73 = questSequence; + QuestSequence questSequence67 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span85 = CollectionsMarshal.AsSpan(list4); - span85[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-55.662647f, -16.696985f, -81.29199f), 961) + Span span278 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span278[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-55.662647f, -16.696985f, -81.29199f), 961) { StopDistance = 0.25f, DisableNavmesh = true, @@ -294662,517 +357474,621 @@ public static class AssemblyQuestLoader Position = new Vector3(-58.75509f, -15.402463f, -83.133934f) } }; - span85[1] = new QuestStep(EInteractionType.Emote, null, new Vector3(-64.19198f, -15.332472f, -84.65695f), 961) + index2++; + span278[index2] = new QuestStep(EInteractionType.Emote, null, new Vector3(-64.19198f, -15.332472f, -84.65695f), 961) { StopDistance = 0.25f, Emote = EEmote.Wave }; - questSequence73.Steps = list4; + questSequence67.Steps = list4; reference223 = questSequence; - ref QuestSequence reference224 = ref span83[7]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference224 = ref span270[num]; + QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence74 = questSequence; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040069u, new Vector3(134.90503f, 10.385856f, 88.91431f), 961) + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span279 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span279[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040069u, new Vector3(134.90503f, 10.385856f, 88.91431f), 961) { AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; - questSequence74.Steps = list202; - reference224 = questSequence; + obj126.Steps = list185; + reference224 = obj126; questRoot53.QuestSequence = list2; AddQuest(questId26, questRoot); QuestId questId27 = new QuestId(4426); questRoot = new QuestRoot(); QuestRoot questRoot54 = questRoot; num = 1; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - CollectionsMarshal.AsSpan(list203)[0] = "liza"; - questRoot54.Author = list203; + List list186 = new List(num); + CollectionsMarshal.SetCount(list186, num); + Span span280 = CollectionsMarshal.AsSpan(list186); + index = 0; + span280[index] = "liza"; + questRoot54.Author = list186; QuestRoot questRoot55 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span86 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference225 = ref span86[0]; - questSequence = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span281 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference225 = ref span281[num]; + QuestSequence obj127 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence75 = questSequence; num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040071u, new Vector3(132.82971f, 10.385857f, 89.34155f), 961) + List list187 = new List(num2); + CollectionsMarshal.SetCount(list187, num2); + Span span282 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span282[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040071u, new Vector3(132.82971f, 10.385857f, 89.34155f), 961) { StopDistance = 5f }; - questSequence75.Steps = list204; - reference225 = questSequence; - ref QuestSequence reference226 = ref span86[1]; + obj127.Steps = list187; + reference225 = obj127; + num++; + ref QuestSequence reference226 = ref span281[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence76 = questSequence; - num2 = 3; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span87 = CollectionsMarshal.AsSpan(list4); - span87[0] = new QuestStep(EInteractionType.AcceptQuest, 1041328u, new Vector3(166.39954f, 9.457411f, 236.34692f), 961) + QuestSequence questSequence68 = questSequence; + index2 = 3; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span283 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span283[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041328u, new Vector3(166.39954f, 9.457411f, 236.34692f), 961) { PickUpQuestId = new QuestId(4507) }; - span87[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-109.12761f, -34.0357f, 397.6694f), 961); - span87[2] = new QuestStep(EInteractionType.Interact, 1040073u, new Vector3(-164.11078f, -41.02881f, 377.37073f), 961); - questSequence76.Steps = list4; + num2++; + span283[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-109.12761f, -34.0357f, 397.6694f), 961); + num2++; + span283[num2] = new QuestStep(EInteractionType.Interact, 1040073u, new Vector3(-164.11078f, -41.02881f, 377.37073f), 961); + questSequence68.Steps = list4; reference226 = questSequence; - ref QuestSequence reference227 = ref span86[2]; - QuestSequence obj123 = new QuestSequence + num++; + ref QuestSequence reference227 = ref span281[num]; + QuestSequence obj128 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1040080u, new Vector3(-530.2358f, -26.214441f, 490.6233f), 961); - obj123.Steps = list205; - reference227 = obj123; - ref QuestSequence reference228 = ref span86[3]; + List list188 = new List(num2); + CollectionsMarshal.SetCount(list188, num2); + Span span284 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span284[index2] = new QuestStep(EInteractionType.Interact, 1040080u, new Vector3(-530.2358f, -26.214441f, 490.6233f), 961); + obj128.Steps = list188; + reference227 = obj128; + num++; + ref QuestSequence reference228 = ref span281[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence77 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span88 = CollectionsMarshal.AsSpan(list4); - span88[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 961) + QuestSequence questSequence69 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span285 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span285[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 961) { StopDistance = 6f, Aetheryte = EAetheryteLocation.ElpisTwelveWonders }; - span88[1] = new QuestStep(EInteractionType.Interact, 1040081u, new Vector3(-659.35767f, -22.39482f, 525.44434f), 961); - questSequence77.Steps = list4; + num2++; + span285[num2] = new QuestStep(EInteractionType.Interact, 1040081u, new Vector3(-659.35767f, -22.39482f, 525.44434f), 961); + questSequence69.Steps = list4; reference228 = questSequence; - ref QuestSequence reference229 = ref span86[4]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference229 = ref span281[num]; + QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence78 = questSequence; num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040084u, new Vector3(-661.1277f, -22.394821f, 527.88574f), 961) + List list189 = new List(num2); + CollectionsMarshal.SetCount(list189, num2); + Span span286 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span286[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040084u, new Vector3(-661.1277f, -22.394821f, 527.88574f), 961) { StopDistance = 5f }; - questSequence78.Steps = list206; - reference229 = questSequence; + obj129.Steps = list189; + reference229 = obj129; questRoot55.QuestSequence = list2; AddQuest(questId27, questRoot); QuestId questId28 = new QuestId(4427); questRoot = new QuestRoot(); QuestRoot questRoot56 = questRoot; num = 1; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "liza"; - questRoot56.Author = list207; + List list190 = new List(num); + CollectionsMarshal.SetCount(list190, num); + Span span287 = CollectionsMarshal.AsSpan(list190); + index = 0; + span287[index] = "liza"; + questRoot56.Author = list190; QuestRoot questRoot57 = questRoot; - num = 10; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span89 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference230 = ref span89[0]; - questSequence = new QuestSequence + index = 10; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span288 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference230 = ref span288[num]; + QuestSequence obj130 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence79 = questSequence; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040083u, new Vector3(-659.3271f, -22.39482f, 525.47485f), 961) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span289 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span289[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040083u, new Vector3(-659.3271f, -22.39482f, 525.47485f), 961) { StopDistance = 5f }; - questSequence79.Steps = list208; - reference230 = questSequence; - ref QuestSequence reference231 = ref span89[1]; - questSequence = new QuestSequence + obj130.Steps = list191; + reference230 = obj130; + num++; + ref QuestSequence reference231 = ref span288[num]; + QuestSequence obj131 = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence80 = questSequence; num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1040084u, new Vector3(-661.1277f, -22.394821f, 527.88574f), 961) + List list192 = new List(num2); + CollectionsMarshal.SetCount(list192, num2); + Span span290 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span290[index2] = new QuestStep(EInteractionType.Interact, 1040084u, new Vector3(-661.1277f, -22.394821f, 527.88574f), 961) { StopDistance = 5f }; - questSequence80.Steps = list209; - reference231 = questSequence; - ref QuestSequence reference232 = ref span89[2]; + obj131.Steps = list192; + reference231 = obj131; + num++; + ref QuestSequence reference232 = ref span288[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence81 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span90 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference233 = ref span90[0]; + QuestSequence questSequence70 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span291 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference233 = ref span291[num2]; questStep = new QuestStep(EInteractionType.Interact, 2012135u, new Vector3(-621.2711f, -19.241638f, 546.50183f), 961); - QuestStep questStep34 = questStep; - num3 = 6; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - Span span91 = CollectionsMarshal.AsSpan(list210); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep34.CompletionQuestVariablesFlags = list210; + QuestStep questStep37 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span292 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span292[num3] = null; + num3++; + span292[num3] = null; + num3++; + span292[num3] = null; + num3++; + span292[num3] = null; + num3++; + span292[num3] = null; + num3++; + span292[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep37.CompletionQuestVariablesFlags = list75; reference233 = questStep; - ref QuestStep reference234 = ref span90[1]; + num2++; + ref QuestStep reference234 = ref span291[num2]; questStep = new QuestStep(EInteractionType.Interact, 2012136u, new Vector3(-583.85596f, -20.035156f, 543.572f), 961); - QuestStep questStep35 = questStep; + QuestStep questStep38 = questStep; num3 = 6; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - Span span92 = CollectionsMarshal.AsSpan(list211); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep35.CompletionQuestVariablesFlags = list211; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span293 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span293[index3] = null; + index3++; + span293[index3] = null; + index3++; + span293[index3] = null; + index3++; + span293[index3] = null; + index3++; + span293[index3] = null; + index3++; + span293[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep38.CompletionQuestVariablesFlags = list75; reference234 = questStep; - questSequence81.Steps = list4; + questSequence70.Steps = list4; reference232 = questSequence; - ref QuestSequence reference235 = ref span89[3]; - QuestSequence obj124 = new QuestSequence + num++; + ref QuestSequence reference235 = ref span288[num]; + QuestSequence obj132 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 2012137u, new Vector3(-577.1725f, -21.469482f, 482.56653f), 961); - obj124.Steps = list212; - reference235 = obj124; - ref QuestSequence reference236 = ref span89[4]; - QuestSequence obj125 = new QuestSequence + List list193 = new List(num2); + CollectionsMarshal.SetCount(list193, num2); + Span span294 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span294[index2] = new QuestStep(EInteractionType.Interact, 2012137u, new Vector3(-577.1725f, -21.469482f, 482.56653f), 961); + obj132.Steps = list193; + reference235 = obj132; + num++; + ref QuestSequence reference236 = ref span288[num]; + QuestSequence obj133 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 2012138u, new Vector3(-601.0681f, -25.345276f, 438.37634f), 961); - obj125.Steps = list213; - reference236 = obj125; - ref QuestSequence reference237 = ref span89[5]; - QuestSequence obj126 = new QuestSequence + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span295 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span295[num2] = new QuestStep(EInteractionType.Interact, 2012138u, new Vector3(-601.0681f, -25.345276f, 438.37634f), 961); + obj133.Steps = list194; + reference236 = obj133; + num++; + ref QuestSequence reference237 = ref span288[num]; + QuestSequence obj134 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 2012139u, new Vector3(-686.5492f, -26.138794f, 441.24512f), 961); - obj126.Steps = list214; - reference237 = obj126; - ref QuestSequence reference238 = ref span89[6]; + List list195 = new List(num2); + CollectionsMarshal.SetCount(list195, num2); + Span span296 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span296[index2] = new QuestStep(EInteractionType.Interact, 2012139u, new Vector3(-686.5492f, -26.138794f, 441.24512f), 961); + obj134.Steps = list195; + reference237 = obj134; + num++; + ref QuestSequence reference238 = ref span288[num]; questSequence = new QuestSequence { Sequence = 6 }; - QuestSequence questSequence82 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 2012140u, new Vector3(-731.7464f, -27.084778f, 460.77673f), 961); - num3 = 1; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = new DialogueChoice + QuestSequence questSequence71 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span297 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference239 = ref span297[num2]; + QuestStep questStep39 = new QuestStep(EInteractionType.Interact, 2012140u, new Vector3(-731.7464f, -27.084778f, 460.77673f), 961); + index3 = 1; + List list196 = new List(index3); + CollectionsMarshal.SetCount(list196, index3); + Span span298 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + span298[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME109_04427_Q3_000_163"), Answer = new ExcelRef("TEXT_AKTKME109_04427_A3_000_164") }; - questStep36.DialogueChoices = list215; - reference239 = questStep36; - questSequence82.Steps = list4; + questStep39.DialogueChoices = list196; + reference239 = questStep39; + questSequence71.Steps = list4; reference238 = questSequence; - ref QuestSequence reference240 = ref span89[7]; + num++; + ref QuestSequence reference240 = ref span288[num]; questSequence = new QuestSequence { Sequence = 7 }; - QuestSequence questSequence83 = questSequence; + QuestSequence questSequence72 = questSequence; num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span93 = CollectionsMarshal.AsSpan(list4); - span93[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-734.30804f, -28.391644f, 432.59787f), 961) + Span span299 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span299[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-734.30804f, -28.391644f, 432.59787f), 961) { Mount = true }; - span93[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012021u, new Vector3(-754.757f, -36.02661f, 411.12378f), 961) + index2++; + span299[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012021u, new Vector3(-754.757f, -36.02661f, 411.12378f), 961) { DisableNavmesh = true, AetherCurrentId = 2818375u }; - span93[2] = new QuestStep(EInteractionType.Interact, 2012141u, new Vector3(-789.08984f, -36.05713f, 486.41187f), 961); - questSequence83.Steps = list4; + index2++; + span299[index2] = new QuestStep(EInteractionType.Interact, 2012141u, new Vector3(-789.08984f, -36.05713f, 486.41187f), 961); + questSequence72.Steps = list4; reference240 = questSequence; - ref QuestSequence reference241 = ref span89[8]; - QuestSequence obj127 = new QuestSequence + num++; + ref QuestSequence reference241 = ref span288[num]; + QuestSequence obj135 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 2012142u, new Vector3(-803.4028f, -36.514893f, 513.6034f), 961); - obj127.Steps = list216; - reference241 = obj127; - ref QuestSequence reference242 = ref span89[9]; - QuestSequence obj128 = new QuestSequence + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span300 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span300[num2] = new QuestStep(EInteractionType.Interact, 2012142u, new Vector3(-803.4028f, -36.514893f, 513.6034f), 961); + obj135.Steps = list197; + reference241 = obj135; + num++; + ref QuestSequence reference242 = ref span288[num]; + QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040087u, new Vector3(-664.1489f, -22.39482f, 533.8368f), 961); - obj128.Steps = list217; - reference242 = obj128; + List list198 = new List(num2); + CollectionsMarshal.SetCount(list198, num2); + Span span301 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span301[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040087u, new Vector3(-664.1489f, -22.39482f, 533.8368f), 961); + obj136.Steps = list198; + reference242 = obj136; questRoot57.QuestSequence = list2; AddQuest(questId28, questRoot); QuestId questId29 = new QuestId(4428); questRoot = new QuestRoot(); QuestRoot questRoot58 = questRoot; num = 1; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; - questRoot58.Author = list218; + List list199 = new List(num); + CollectionsMarshal.SetCount(list199, num); + Span span302 = CollectionsMarshal.AsSpan(list199); + index = 0; + span302[index] = "liza"; + questRoot58.Author = list199; QuestRoot questRoot59 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span94 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference243 = ref span94[0]; - QuestSequence obj129 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span303 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference243 = ref span303[num]; + QuestSequence obj137 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040088u, new Vector3(-655.72595f, -22.394821f, 521.87366f), 961); - obj129.Steps = list219; - reference243 = obj129; - ref QuestSequence reference244 = ref span94[1]; + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span304 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span304[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040088u, new Vector3(-655.72595f, -22.394821f, 521.87366f), 961); + obj137.Steps = list200; + reference243 = obj137; + num++; + ref QuestSequence reference244 = ref span303[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence84 = questSequence; + QuestSequence questSequence73 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span95 = CollectionsMarshal.AsSpan(list4); - span95[0] = new QuestStep(EInteractionType.AcceptQuest, 1037969u, new Vector3(-611.90204f, -22.39482f, 510.42944f), 961) + Span span305 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span305[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037969u, new Vector3(-611.90204f, -22.39482f, 510.42944f), 961) { PickUpQuestId = new QuestId(4288) }; - span95[1] = new QuestStep(EInteractionType.Interact, 1040092u, new Vector3(-340.9629f, -39.973907f, 368.06274f), 961); - questSequence84.Steps = list4; + index2++; + span305[index2] = new QuestStep(EInteractionType.Interact, 1040092u, new Vector3(-340.9629f, -39.973907f, 368.06274f), 961); + questSequence73.Steps = list4; reference244 = questSequence; - ref QuestSequence reference245 = ref span94[2]; - QuestSequence obj130 = new QuestSequence + num++; + ref QuestSequence reference245 = ref span303[num]; + QuestSequence obj138 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1040097u, new Vector3(-213.79413f, -33.401405f, 242.35901f), 961); - obj130.Steps = list220; - reference245 = obj130; - ref QuestSequence reference246 = ref span94[3]; + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span306 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span306[num2] = new QuestStep(EInteractionType.Interact, 1040097u, new Vector3(-213.79413f, -33.401405f, 242.35901f), 961); + obj138.Steps = list201; + reference245 = obj138; + num++; + ref QuestSequence reference246 = ref span303[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence85 = questSequence; + QuestSequence questSequence74 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference247 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj131 = new QuestStep(EInteractionType.Combat, null, new Vector3(-207.7455f, -30.993412f, 232.53859f), 961) + Span span307 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference247 = ref span307[index2]; + QuestStep obj139 = new QuestStep(EInteractionType.Combat, null, new Vector3(-207.7455f, -30.993412f, 232.53859f), 961) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 2; - List list221 = new List(num3); - CollectionsMarshal.SetCount(list221, num3); - Span span96 = CollectionsMarshal.AsSpan(list221); - span96[0] = 14075u; - span96[1] = 14074u; - obj131.KillEnemyDataIds = list221; - reference247 = obj131; - questSequence85.Steps = list4; + List list202 = new List(num3); + CollectionsMarshal.SetCount(list202, num3); + Span span308 = CollectionsMarshal.AsSpan(list202); + index3 = 0; + span308[index3] = 14075u; + index3++; + span308[index3] = 14074u; + obj139.KillEnemyDataIds = list202; + reference247 = obj139; + questSequence74.Steps = list4; reference246 = questSequence; - ref QuestSequence reference248 = ref span94[4]; - QuestSequence obj132 = new QuestSequence + num++; + ref QuestSequence reference248 = ref span303[num]; + QuestSequence obj140 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 2012145u, new Vector3(-212.23773f, -31.876099f, 233.66138f), 961); - obj132.Steps = list222; - reference248 = obj132; - ref QuestSequence reference249 = ref span94[5]; - questSequence = new QuestSequence + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span309 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span309[num2] = new QuestStep(EInteractionType.Interact, 2012145u, new Vector3(-212.23773f, -31.876099f, 233.66138f), 961); + obj140.Steps = list203; + reference248 = obj140; + num++; + ref QuestSequence reference249 = ref span303[num]; + QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence86 = questSequence; num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040100u, new Vector3(-638.1476f, -22.39482f, 504.90576f), 961) + List list204 = new List(num2); + CollectionsMarshal.SetCount(list204, num2); + Span span310 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span310[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040100u, new Vector3(-638.1476f, -22.39482f, 504.90576f), 961) { StopDistance = 5f }; - questSequence86.Steps = list223; - reference249 = questSequence; + obj141.Steps = list204; + reference249 = obj141; questRoot59.QuestSequence = list2; AddQuest(questId29, questRoot); QuestId questId30 = new QuestId(4429); questRoot = new QuestRoot(); QuestRoot questRoot60 = questRoot; num = 1; - List list224 = new List(num); - CollectionsMarshal.SetCount(list224, num); - CollectionsMarshal.AsSpan(list224)[0] = "liza"; - questRoot60.Author = list224; + List list205 = new List(num); + CollectionsMarshal.SetCount(list205, num); + Span span311 = CollectionsMarshal.AsSpan(list205); + index = 0; + span311[index] = "liza"; + questRoot60.Author = list205; QuestRoot questRoot61 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span97 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference250 = ref span97[0]; - questSequence = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span312 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference250 = ref span312[num]; + QuestSequence obj142 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence87 = questSequence; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040101u, new Vector3(-635.5841f, -22.39482f, 505.08887f), 961) + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span313 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span313[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040101u, new Vector3(-635.5841f, -22.39482f, 505.08887f), 961) { StopDistance = 5f }; - questSequence87.Steps = list225; - reference250 = questSequence; - ref QuestSequence reference251 = ref span97[1]; - questSequence = new QuestSequence + obj142.Steps = list206; + reference250 = obj142; + num++; + ref QuestSequence reference251 = ref span312[num]; + QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence88 = questSequence; num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 1040102u, new Vector3(-106.61487f, -10.281434f, 236.07227f), 961) + List list207 = new List(num2); + CollectionsMarshal.SetCount(list207, num2); + Span span314 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span314[index2] = new QuestStep(EInteractionType.Interact, 1040102u, new Vector3(-106.61487f, -10.281434f, 236.07227f), 961) { AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; - questSequence88.Steps = list226; - reference251 = questSequence; - ref QuestSequence reference252 = ref span97[2]; - QuestSequence obj133 = new QuestSequence + obj143.Steps = list207; + reference251 = obj143; + num++; + ref QuestSequence reference252 = ref span312[num]; + QuestSequence obj144 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1040104u, new Vector3(-182.17749f, 12.500029f, -10.971252f), 961); - obj133.Steps = list227; - reference252 = obj133; - ref QuestSequence reference253 = ref span97[3]; - questSequence = new QuestSequence + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span315 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span315[num2] = new QuestStep(EInteractionType.Interact, 1040104u, new Vector3(-182.17749f, 12.500029f, -10.971252f), 961); + obj144.Steps = list208; + reference252 = obj144; + num++; + ref QuestSequence reference253 = ref span312[num]; + QuestSequence obj145 = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence89 = questSequence; num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1040106u, new Vector3(-350.20984f, 161.78714f, 26.108154f), 961) + List list209 = new List(num2); + CollectionsMarshal.SetCount(list209, num2); + Span span316 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span316[index2] = new QuestStep(EInteractionType.Interact, 1040106u, new Vector3(-350.20984f, 161.78714f, 26.108154f), 961) { StopDistance = 5f }; - questSequence89.Steps = list228; - reference253 = questSequence; - ref QuestSequence reference254 = ref span97[4]; - QuestSequence obj134 = new QuestSequence + obj145.Steps = list209; + reference253 = obj145; + num++; + ref QuestSequence reference254 = ref span312[num]; + QuestSequence obj146 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 2012146u, new Vector3(-554.345f, 147.44788f, 98.25281f), 961); - obj134.Steps = list229; - reference254 = obj134; - ref QuestSequence reference255 = ref span97[5]; + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span317 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span317[num2] = new QuestStep(EInteractionType.Interact, 2012146u, new Vector3(-554.345f, 147.44788f, 98.25281f), 961); + obj146.Steps = list210; + reference254 = obj146; + num++; + ref QuestSequence reference255 = ref span312[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence90 = questSequence; + QuestSequence questSequence75 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference256 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep37 = new QuestStep(EInteractionType.CompleteQuest, 1040109u, new Vector3(-491.11166f, 140.39177f, -113.81708f), 961); - num3 = 1; - List list230 = new List(num3); - CollectionsMarshal.SetCount(list230, num3); - CollectionsMarshal.AsSpan(list230)[0] = new DialogueChoice + Span span318 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference256 = ref span318[index2]; + QuestStep questStep40 = new QuestStep(EInteractionType.CompleteQuest, 1040109u, new Vector3(-491.11166f, 140.39177f, -113.81708f), 961); + index3 = 1; + List list211 = new List(index3); + CollectionsMarshal.SetCount(list211, index3); + Span span319 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + span319[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME111_04429_Q2_000_094"), Answer = new ExcelRef("TEXT_AKTKME111_04429_A2_000_096") }; - questStep37.DialogueChoices = list230; - reference256 = questStep37; - questSequence90.Steps = list4; + questStep40.DialogueChoices = list211; + reference256 = questStep40; + questSequence75.Steps = list4; reference255 = questSequence; questRoot61.QuestSequence = list2; AddQuest(questId30, questRoot); @@ -295180,531 +358096,628 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot62 = questRoot; num = 1; - List list231 = new List(num); - CollectionsMarshal.SetCount(list231, num); - CollectionsMarshal.AsSpan(list231)[0] = "liza"; - questRoot62.Author = list231; + List list212 = new List(num); + CollectionsMarshal.SetCount(list212, num); + Span span320 = CollectionsMarshal.AsSpan(list212); + index = 0; + span320[index] = "liza"; + questRoot62.Author = list212; QuestRoot questRoot63 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span98 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference257 = ref span98[0]; - QuestSequence obj135 = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span321 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference257 = ref span321[num]; + QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040109u, new Vector3(-491.11166f, 140.39177f, -113.81708f), 961); - obj135.Steps = list232; - reference257 = obj135; - ref QuestSequence reference258 = ref span98[1]; + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span322 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span322[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040109u, new Vector3(-491.11166f, 140.39177f, -113.81708f), 961); + obj147.Steps = list213; + reference257 = obj147; + num++; + ref QuestSequence reference258 = ref span321[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence91 = questSequence; + QuestSequence questSequence76 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span99 = CollectionsMarshal.AsSpan(list4); - span99[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 961) + Span span323 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span323[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 961) { StopDistance = 7f, Aetheryte = EAetheryteLocation.ElpisPoietenOikos }; - span99[1] = new QuestStep(EInteractionType.Interact, 1040112u, new Vector3(-586.5721f, 167.99568f, -265.49176f), 961); - questSequence91.Steps = list4; + index2++; + span323[index2] = new QuestStep(EInteractionType.Interact, 1040112u, new Vector3(-586.5721f, 167.99568f, -265.49176f), 961); + questSequence76.Steps = list4; reference258 = questSequence; - ref QuestSequence reference259 = ref span98[2]; - QuestSequence obj136 = new QuestSequence + num++; + ref QuestSequence reference259 = ref span321[num]; + QuestSequence obj148 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1040112u, new Vector3(-586.5721f, 167.99568f, -265.49176f), 961); - obj136.Steps = list233; - reference259 = obj136; - ref QuestSequence reference260 = ref span98[3]; - QuestSequence obj137 = new QuestSequence + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + Span span324 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span324[num2] = new QuestStep(EInteractionType.Interact, 1040112u, new Vector3(-586.5721f, 167.99568f, -265.49176f), 961); + obj148.Steps = list214; + reference259 = obj148; + num++; + ref QuestSequence reference260 = ref span321[num]; + QuestSequence obj149 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1040115u, new Vector3(-595.0561f, 159.70364f, -175.24994f), 961); - obj137.Steps = list234; - reference260 = obj137; - ref QuestSequence reference261 = ref span98[4]; + List list215 = new List(num2); + CollectionsMarshal.SetCount(list215, num2); + Span span325 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span325[index2] = new QuestStep(EInteractionType.Interact, 1040115u, new Vector3(-595.0561f, 159.70364f, -175.24994f), 961); + obj149.Steps = list215; + reference260 = obj149; + num++; + ref QuestSequence reference261 = ref span321[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence92 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference262 = ref CollectionsMarshal.AsSpan(list4)[0]; + QuestSequence questSequence77 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span326 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference262 = ref span326[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040116u, new Vector3(-578.4542f, 159.66537f, -173.75458f), 961); - QuestStep questStep38 = questStep; + QuestStep questStep41 = questStep; num3 = 4; - list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - Span span100 = CollectionsMarshal.AsSpan(list157); - span100[0] = new DialogueChoice + list15 = new List(num3); + CollectionsMarshal.SetCount(list15, num3); + Span span327 = CollectionsMarshal.AsSpan(list15); + index3 = 0; + span327[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q1_000_072") }; - span100[1] = new DialogueChoice + index3++; + span327[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q2_000_076"), Answer = new ExcelRef("TEXT_AKTKME112_04430_A2_000_077") }; - span100[2] = new DialogueChoice + index3++; + span327[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q3_000_089"), Answer = new ExcelRef("TEXT_AKTKME112_04430_A3_000_091") }; - span100[3] = new DialogueChoice + index3++; + span327[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q4_000_098"), Answer = new ExcelRef("TEXT_AKTKME112_04430_A4_000_099") }; - questStep38.DialogueChoices = list157; + questStep41.DialogueChoices = list15; reference262 = questStep; - questSequence92.Steps = list4; + questSequence77.Steps = list4; reference261 = questSequence; - ref QuestSequence reference263 = ref span98[5]; - QuestSequence obj138 = new QuestSequence + num++; + ref QuestSequence reference263 = ref span321[num]; + QuestSequence obj150 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1040115u, new Vector3(-595.0561f, 159.70364f, -175.24994f), 961); - obj138.Steps = list235; - reference263 = obj138; - ref QuestSequence reference264 = ref span98[6]; + List list216 = new List(num2); + CollectionsMarshal.SetCount(list216, num2); + Span span328 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span328[index2] = new QuestStep(EInteractionType.Interact, 1040115u, new Vector3(-595.0561f, 159.70364f, -175.24994f), 961); + obj150.Steps = list216; + reference263 = obj150; + num++; + ref QuestSequence reference264 = ref span321[num]; questSequence = new QuestSequence { Sequence = 6 }; - QuestSequence questSequence93 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span101 = CollectionsMarshal.AsSpan(list4); - span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-585.33386f, 159.16429f, -197.54811f), 961) + QuestSequence questSequence78 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span329 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span329[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-585.33386f, 159.16429f, -197.54811f), 961) { Mount = true }; - ref QuestStep reference265 = ref span101[1]; + num2++; + ref QuestStep reference265 = ref span329[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040117u, new Vector3(-442.43536f, 140.56909f, -155.5047f), 961) { Comment = "Talk (2, 2, 1)" }; - QuestStep questStep39 = questStep; - num3 = 4; - list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - Span span102 = CollectionsMarshal.AsSpan(list157); - span102[0] = new DialogueChoice + QuestStep questStep42 = questStep; + index3 = 4; + list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + Span span330 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span330[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q5_000_152") }; - span102[1] = new DialogueChoice + num3++; + span330[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q6_000_154"), Answer = new ExcelRef("TEXT_AKTKME112_04430_A6_000_156") }; - span102[2] = new DialogueChoice + num3++; + span330[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q7_000_168"), Answer = new ExcelRef("TEXT_AKTKME112_04430_A7_000_170") }; - span102[3] = new DialogueChoice + num3++; + span330[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q8_000_181"), Answer = new ExcelRef("TEXT_AKTKME112_04430_A8_000_182") }; - questStep39.DialogueChoices = list157; + questStep42.DialogueChoices = list15; reference265 = questStep; - questSequence93.Steps = list4; + questSequence78.Steps = list4; reference264 = questSequence; - ref QuestSequence reference266 = ref span98[7]; - QuestSequence obj139 = new QuestSequence + num++; + ref QuestSequence reference266 = ref span321[num]; + QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040115u, new Vector3(-595.0561f, 159.70364f, -175.24994f), 961); - obj139.Steps = list236; - reference266 = obj139; + List list217 = new List(num2); + CollectionsMarshal.SetCount(list217, num2); + Span span331 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span331[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040115u, new Vector3(-595.0561f, 159.70364f, -175.24994f), 961); + obj151.Steps = list217; + reference266 = obj151; questRoot63.QuestSequence = list2; AddQuest(questId31, questRoot); QuestId questId32 = new QuestId(4431); questRoot = new QuestRoot(); QuestRoot questRoot64 = questRoot; num = 1; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - CollectionsMarshal.AsSpan(list237)[0] = "liza"; - questRoot64.Author = list237; + List list218 = new List(num); + CollectionsMarshal.SetCount(list218, num); + Span span332 = CollectionsMarshal.AsSpan(list218); + index = 0; + span332[index] = "liza"; + questRoot64.Author = list218; QuestRoot questRoot65 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span103 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference267 = ref span103[0]; + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span333 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference267 = ref span333[num]; questSequence = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence94 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference268 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep40 = new QuestStep(EInteractionType.AcceptQuest, 1040115u, new Vector3(-595.0561f, 159.70364f, -175.24994f), 961); + QuestSequence questSequence79 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span334 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference268 = ref span334[num2]; + QuestStep questStep43 = new QuestStep(EInteractionType.AcceptQuest, 1040115u, new Vector3(-595.0561f, 159.70364f, -175.24994f), 961); num3 = 1; - List list238 = new List(num3); - CollectionsMarshal.SetCount(list238, num3); - CollectionsMarshal.AsSpan(list238)[0] = new DialogueChoice + List list219 = new List(num3); + CollectionsMarshal.SetCount(list219, num3); + Span span335 = CollectionsMarshal.AsSpan(list219); + index3 = 0; + span335[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME113_04431_Q1_000_014"), Answer = new ExcelRef("TEXT_AKTKME113_04431_A1_000_016") }; - questStep40.DialogueChoices = list238; - reference268 = questStep40; - questSequence94.Steps = list4; + questStep43.DialogueChoices = list219; + reference268 = questStep43; + questSequence79.Steps = list4; reference267 = questSequence; - ref QuestSequence reference269 = ref span103[1]; - QuestSequence obj140 = new QuestSequence + num++; + ref QuestSequence reference269 = ref span333[num]; + QuestSequence obj152 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1040118u, new Vector3(-814.51135f, 169.52979f, -194.35425f), 961); - obj140.Steps = list239; - reference269 = obj140; - ref QuestSequence reference270 = ref span103[2]; - QuestSequence obj141 = new QuestSequence + List list220 = new List(num2); + CollectionsMarshal.SetCount(list220, num2); + Span span336 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span336[index2] = new QuestStep(EInteractionType.Interact, 1040118u, new Vector3(-814.51135f, 169.52979f, -194.35425f), 961); + obj152.Steps = list220; + reference269 = obj152; + num++; + ref QuestSequence reference270 = ref span333[num]; + QuestSequence obj153 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1040121u, new Vector3(-833.9513f, 169.52928f, -61.905884f), 961); - obj141.Steps = list240; - reference270 = obj141; - ref QuestSequence reference271 = ref span103[3]; - QuestSequence obj142 = new QuestSequence + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span337 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span337[num2] = new QuestStep(EInteractionType.Interact, 1040121u, new Vector3(-833.9513f, 169.52928f, -61.905884f), 961); + obj153.Steps = list221; + reference270 = obj153; + num++; + ref QuestSequence reference271 = ref span333[num]; + QuestSequence obj154 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Interact, 1040121u, new Vector3(-833.9513f, 169.52928f, -61.905884f), 961); - obj142.Steps = list241; - reference271 = obj142; - ref QuestSequence reference272 = ref span103[4]; - QuestSequence obj143 = new QuestSequence + List list222 = new List(num2); + CollectionsMarshal.SetCount(list222, num2); + Span span338 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span338[index2] = new QuestStep(EInteractionType.Interact, 1040121u, new Vector3(-833.9513f, 169.52928f, -61.905884f), 961); + obj154.Steps = list222; + reference271 = obj154; + num++; + ref QuestSequence reference272 = ref span333[num]; + QuestSequence obj155 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1040124u, new Vector3(-848.38635f, 286.97595f, -175.86023f), 961); - obj143.Steps = list242; - reference272 = obj143; - ref QuestSequence reference273 = ref span103[5]; - QuestSequence obj144 = new QuestSequence + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + Span span339 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span339[num2] = new QuestStep(EInteractionType.Interact, 1040124u, new Vector3(-848.38635f, 286.97595f, -175.86023f), 961); + obj155.Steps = list223; + reference272 = obj155; + num++; + ref QuestSequence reference273 = ref span333[num]; + QuestSequence obj156 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1040126u, new Vector3(-719.7833f, 365.28336f, -334.64563f), 961); - obj144.Steps = list243; - reference273 = obj144; - ref QuestSequence reference274 = ref span103[6]; - questSequence = new QuestSequence + List list224 = new List(num2); + CollectionsMarshal.SetCount(list224, num2); + Span span340 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span340[index2] = new QuestStep(EInteractionType.Interact, 1040126u, new Vector3(-719.7833f, 365.28336f, -334.64563f), 961); + obj156.Steps = list224; + reference273 = obj156; + num++; + ref QuestSequence reference274 = ref span333[num]; + QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence95 = questSequence; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040128u, new Vector3(-664.4236f, 178.07872f, -334.5846f), 961) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span341 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span341[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040128u, new Vector3(-664.4236f, 178.07872f, -334.5846f), 961) { StopDistance = 5f }; - questSequence95.Steps = list244; - reference274 = questSequence; + obj157.Steps = list225; + reference274 = obj157; questRoot65.QuestSequence = list2; AddQuest(questId32, questRoot); QuestId questId33 = new QuestId(4432); questRoot = new QuestRoot(); QuestRoot questRoot66 = questRoot; num = 1; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "liza"; - questRoot66.Author = list245; + List list226 = new List(num); + CollectionsMarshal.SetCount(list226, num); + Span span342 = CollectionsMarshal.AsSpan(list226); + index = 0; + span342[index] = "liza"; + questRoot66.Author = list226; QuestRoot questRoot67 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span104 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference275 = ref span104[0]; - questSequence = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span343 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference275 = ref span343[num]; + QuestSequence obj158 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence96 = questSequence; num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040128u, new Vector3(-664.4236f, 178.07872f, -334.5846f), 961) + List list227 = new List(num2); + CollectionsMarshal.SetCount(list227, num2); + Span span344 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span344[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040128u, new Vector3(-664.4236f, 178.07872f, -334.5846f), 961) { StopDistance = 5f }; - questSequence96.Steps = list246; - reference275 = questSequence; - ref QuestSequence reference276 = ref span104[1]; + obj158.Steps = list227; + reference275 = obj158; + num++; + ref QuestSequence reference276 = ref span343[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence97 = questSequence; - num2 = 2; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - Span span105 = CollectionsMarshal.AsSpan(list247); - span105[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-297.88638f, 146.9291f, 84.30863f), 961); - span105[1] = new QuestStep(EInteractionType.Interact, 2012149u, new Vector3(-353.1396f, 146.92908f, 143.57214f), 961); - questSequence97.Steps = list247; + QuestSequence questSequence80 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span345 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span345[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-297.88638f, 146.9291f, 84.30863f), 961); + num2++; + span345[num2] = new QuestStep(EInteractionType.Interact, 2012149u, new Vector3(-353.1396f, 146.92908f, 143.57214f), 961); + questSequence80.Steps = list4; reference276 = questSequence; - ref QuestSequence reference277 = ref span104[2]; + num++; + ref QuestSequence reference277 = ref span343[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence98 = questSequence; + QuestSequence questSequence81 = questSequence; num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1040129u, new Vector3(-629.0532f, 138.676f, 62.302612f), 961) + List list228 = new List(num2); + CollectionsMarshal.SetCount(list228, num2); + Span span346 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span346[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1040129u, new Vector3(-629.0532f, 138.676f, 62.302612f), 961) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { Enabled = true } }; - questSequence98.Steps = list248; + questSequence81.Steps = list228; reference277 = questSequence; - span104[3] = new QuestSequence + num++; + span343[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference278 = ref span104[4]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference278 = ref span343[num]; + QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence99 = questSequence; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040129u, new Vector3(-629.0532f, 138.676f, 62.302612f), 961) + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + Span span347 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span347[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040129u, new Vector3(-629.0532f, 138.676f, 62.302612f), 961) { StopDistance = 5f }; - questSequence99.Steps = list249; - reference278 = questSequence; + obj159.Steps = list229; + reference278 = obj159; questRoot67.QuestSequence = list2; AddQuest(questId33, questRoot); QuestId questId34 = new QuestId(4433); questRoot = new QuestRoot(); QuestRoot questRoot68 = questRoot; num = 1; - List list250 = new List(num); - CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "liza"; - questRoot68.Author = list250; + List list230 = new List(num); + CollectionsMarshal.SetCount(list230, num); + Span span348 = CollectionsMarshal.AsSpan(list230); + index = 0; + span348[index] = "liza"; + questRoot68.Author = list230; QuestRoot questRoot69 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span106 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference279 = ref span106[0]; - questSequence = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span349 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference279 = ref span349[num]; + QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence100 = questSequence; num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040129u, new Vector3(-629.0532f, 138.676f, 62.302612f), 961) + List list231 = new List(num2); + CollectionsMarshal.SetCount(list231, num2); + Span span350 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span350[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040129u, new Vector3(-629.0532f, 138.676f, 62.302612f), 961) { StopDistance = 5f }; - questSequence100.Steps = list251; - reference279 = questSequence; - ref QuestSequence reference280 = ref span106[1]; + obj160.Steps = list231; + reference279 = obj160; + num++; + ref QuestSequence reference280 = ref span349[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence101 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span107 = CollectionsMarshal.AsSpan(list4); - span107[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012026u, new Vector3(-555.6268f, 158.09863f, 172.41162f), 961) + QuestSequence questSequence82 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span351 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span351[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012026u, new Vector3(-555.6268f, 158.09863f, 172.41162f), 961) { AetherCurrentId = 2818380u }; - ref QuestStep reference281 = ref span107[1]; - QuestStep questStep41 = new QuestStep(EInteractionType.Interact, 1040132u, new Vector3(-513.6339f, 156.7207f, 198.68762f), 961); - num3 = 1; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - CollectionsMarshal.AsSpan(list252)[0] = new DialogueChoice + num2++; + ref QuestStep reference281 = ref span351[num2]; + QuestStep questStep44 = new QuestStep(EInteractionType.Interact, 1040132u, new Vector3(-513.6339f, 156.7207f, 198.68762f), 961); + index3 = 1; + List list232 = new List(index3); + CollectionsMarshal.SetCount(list232, index3); + Span span352 = CollectionsMarshal.AsSpan(list232); + num3 = 0; + span352[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKME115_04433_Q1_000_021") }; - questStep41.DialogueChoices = list252; - reference281 = questStep41; - questSequence101.Steps = list4; + questStep44.DialogueChoices = list232; + reference281 = questStep44; + questSequence82.Steps = list4; reference280 = questSequence; - ref QuestSequence reference282 = ref span106[2]; - QuestSequence obj145 = new QuestSequence + num++; + ref QuestSequence reference282 = ref span349[num]; + QuestSequence obj161 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1040134u, new Vector3(-515.2819f, 156.84904f, 199.32861f), 961); - obj145.Steps = list253; - reference282 = obj145; - ref QuestSequence reference283 = ref span106[3]; + List list233 = new List(num2); + CollectionsMarshal.SetCount(list233, num2); + Span span353 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span353[index2] = new QuestStep(EInteractionType.Interact, 1040134u, new Vector3(-515.2819f, 156.84904f, 199.32861f), 961); + obj161.Steps = list233; + reference282 = obj161; + num++; + ref QuestSequence reference283 = ref span349[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence102 = questSequence; - num2 = 4; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span108 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference284 = ref span108[0]; - questStep = new QuestStep(EInteractionType.AcceptQuest, 1041369u, new Vector3(-639.85657f, 162.30406f, -189.47137f), 961) + QuestSequence questSequence83 = questSequence; + index2 = 4; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span354 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference284 = ref span354[num2]; + QuestStep obj162 = new QuestStep(EInteractionType.AcceptQuest, 1041369u, new Vector3(-639.85657f, 162.30406f, -189.47137f), 961) { AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; - QuestStep questStep42 = questStep; SkipConditions skipConditions6 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); num3 = 1; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = new QuestId(4511); - skipAetheryteCondition3.QuestsCompleted = list254; + List list234 = new List(num3); + CollectionsMarshal.SetCount(list234, num3); + Span span355 = CollectionsMarshal.AsSpan(list234); + index3 = 0; + span355[index3] = new QuestId(4511); + skipAetheryteCondition3.QuestsCompleted = list234; skipConditions6.AetheryteShortcutIf = skipAetheryteCondition3; - questStep42.SkipConditions = skipConditions6; - questStep.PickUpQuestId = new QuestId(4511); - reference284 = questStep; - ref QuestStep reference285 = ref span108[1]; - questStep = new QuestStep(EInteractionType.AcceptQuest, 1041847u, new Vector3(-484.2146f, 141.86789f, -97.21527f), 961) + obj162.SkipConditions = skipConditions6; + obj162.PickUpQuestId = new QuestId(4511); + reference284 = obj162; + num2++; + ref QuestStep reference285 = ref span354[num2]; + QuestStep obj163 = new QuestStep(EInteractionType.AcceptQuest, 1041847u, new Vector3(-484.2146f, 141.86789f, -97.21527f), 961) { AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; - QuestStep questStep43 = questStep; SkipConditions skipConditions7 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - num3 = 1; - List list255 = new List(num3); - CollectionsMarshal.SetCount(list255, num3); - CollectionsMarshal.AsSpan(list255)[0] = new QuestId(4313); - skipAetheryteCondition4.QuestsCompleted = list255; + index3 = 1; + List list235 = new List(index3); + CollectionsMarshal.SetCount(list235, index3); + Span span356 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + span356[num3] = new QuestId(4313); + skipAetheryteCondition4.QuestsCompleted = list235; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition4; - questStep43.SkipConditions = skipConditions7; - questStep.PickUpQuestId = new QuestId(4313); - reference285 = questStep; - span108[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-531.21313f, 159.97144f, -244.95073f), 961); - ref QuestStep reference286 = ref span108[3]; - QuestStep questStep44 = new QuestStep(EInteractionType.Interact, 2012151u, new Vector3(-481.8647f, 157.36621f, -367.48303f), 961); + obj163.SkipConditions = skipConditions7; + obj163.PickUpQuestId = new QuestId(4313); + reference285 = obj163; + num2++; + span354[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-531.21313f, 159.97144f, -244.95073f), 961); + num2++; + ref QuestStep reference286 = ref span354[num2]; + QuestStep questStep45 = new QuestStep(EInteractionType.Interact, 2012151u, new Vector3(-481.8647f, 157.36621f, -367.48303f), 961); num3 = 1; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - CollectionsMarshal.AsSpan(list256)[0] = new DialogueChoice + List list236 = new List(num3); + CollectionsMarshal.SetCount(list236, num3); + Span span357 = CollectionsMarshal.AsSpan(list236); + index3 = 0; + span357[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKME115_04433_Q2_000_062") }; - questStep44.DialogueChoices = list256; - reference286 = questStep44; - questSequence102.Steps = list4; + questStep45.DialogueChoices = list236; + reference286 = questStep45; + questSequence83.Steps = list4; reference283 = questSequence; - ref QuestSequence reference287 = ref span106[4]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference287 = ref span349[num]; + QuestSequence obj164 = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence103 = questSequence; num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1042043u, new Vector3(-342.5498f, 294.93375f, -559.62463f), 961) + List list237 = new List(num2); + CollectionsMarshal.SetCount(list237, num2); + Span span358 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span358[index2] = new QuestStep(EInteractionType.Interact, 1042043u, new Vector3(-342.5498f, 294.93375f, -559.62463f), 961) { StopDistance = 6f }; - questSequence103.Steps = list257; - reference287 = questSequence; - ref QuestSequence reference288 = ref span106[5]; + obj164.Steps = list237; + reference287 = obj164; + num++; + ref QuestSequence reference288 = ref span349[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence104 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span109 = CollectionsMarshal.AsSpan(list4); - span109[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012025u, new Vector3(-402.945f, 327.7484f, -691.3405f), 961) + QuestSequence questSequence84 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span359 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span359[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012025u, new Vector3(-402.945f, 327.7484f, -691.3405f), 961) { AetherCurrentId = 2818379u }; - span109[1] = new QuestStep(EInteractionType.CompleteQuest, 1040135u, new Vector3(-407.46167f, 329.89032f, -759.24316f), 961); - questSequence104.Steps = list4; + num2++; + span359[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040135u, new Vector3(-407.46167f, 329.89032f, -759.24316f), 961); + questSequence84.Steps = list4; reference288 = questSequence; questRoot69.QuestSequence = list2; AddQuest(questId34, questRoot); @@ -295712,321 +358725,386 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot70 = questRoot; num = 1; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - CollectionsMarshal.AsSpan(list258)[0] = "liza"; - questRoot70.Author = list258; + List list238 = new List(num); + CollectionsMarshal.SetCount(list238, num); + Span span360 = CollectionsMarshal.AsSpan(list238); + index = 0; + span360[index] = "liza"; + questRoot70.Author = list238; QuestRoot questRoot71 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span110 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference289 = ref span110[0]; - questSequence = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span361 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference289 = ref span361[num]; + QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence105 = questSequence; num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040136u, new Vector3(-405.69165f, 329.81177f, -760.1892f), 961) + List list239 = new List(num2); + CollectionsMarshal.SetCount(list239, num2); + Span span362 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span362[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040136u, new Vector3(-405.69165f, 329.81177f, -760.1892f), 961) { StopDistance = 5f }; - questSequence105.Steps = list259; - reference289 = questSequence; - ref QuestSequence reference290 = ref span110[1]; + obj165.Steps = list239; + reference289 = obj165; + num++; + ref QuestSequence reference290 = ref span361[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence106 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference291 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep45 = new QuestStep(EInteractionType.Interact, 2012153u, new Vector3(-207.7821f, 306.63f, -653.13196f), 961); - num3 = 1; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - CollectionsMarshal.AsSpan(list260)[0] = new DialogueChoice + QuestSequence questSequence85 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span363 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference291 = ref span363[num2]; + QuestStep questStep46 = new QuestStep(EInteractionType.Interact, 2012153u, new Vector3(-207.7821f, 306.63f, -653.13196f), 961); + index3 = 1; + List list240 = new List(index3); + CollectionsMarshal.SetCount(list240, index3); + Span span364 = CollectionsMarshal.AsSpan(list240); + num3 = 0; + span364[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKME116_04434_Q1_000_021") }; - questStep45.DialogueChoices = list260; - reference291 = questStep45; - questSequence106.Steps = list4; + questStep46.DialogueChoices = list240; + reference291 = questStep46; + questSequence85.Steps = list4; reference290 = questSequence; - ref QuestSequence reference292 = ref span110[2]; - QuestSequence obj146 = new QuestSequence + num++; + ref QuestSequence reference292 = ref span361[num]; + QuestSequence obj166 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1040138u, new Vector3(-47.196167f, 151.94286f, -624.7196f), 961); - obj146.Steps = list261; - reference292 = obj146; - ref QuestSequence reference293 = ref span110[3]; - QuestSequence obj147 = new QuestSequence + List list241 = new List(num2); + CollectionsMarshal.SetCount(list241, num2); + Span span365 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span365[index2] = new QuestStep(EInteractionType.Interact, 1040138u, new Vector3(-47.196167f, 151.94286f, -624.7196f), 961); + obj166.Steps = list241; + reference292 = obj166; + num++; + ref QuestSequence reference293 = ref span361[num]; + QuestSequence obj167 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1040141u, new Vector3(242.20642f, 165.84848f, -608.6061f), 961); - obj147.Steps = list262; - reference293 = obj147; - ref QuestSequence reference294 = ref span110[4]; - QuestSequence obj148 = new QuestSequence + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span366 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span366[num2] = new QuestStep(EInteractionType.Interact, 1040141u, new Vector3(242.20642f, 165.84848f, -608.6061f), 961); + obj167.Steps = list242; + reference293 = obj167; + num++; + ref QuestSequence reference294 = ref span361[num]; + QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040138u, new Vector3(-47.196167f, 151.94286f, -624.7196f), 961); - obj148.Steps = list263; - reference294 = obj148; + List list243 = new List(num2); + CollectionsMarshal.SetCount(list243, num2); + Span span367 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span367[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040138u, new Vector3(-47.196167f, 151.94286f, -624.7196f), 961); + obj168.Steps = list243; + reference294 = obj168; questRoot71.QuestSequence = list2; AddQuest(questId35, questRoot); QuestId questId36 = new QuestId(4435); questRoot = new QuestRoot(); QuestRoot questRoot72 = questRoot; num = 1; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - CollectionsMarshal.AsSpan(list264)[0] = "liza"; - questRoot72.Author = list264; + List list244 = new List(num); + CollectionsMarshal.SetCount(list244, num); + Span span368 = CollectionsMarshal.AsSpan(list244); + index = 0; + span368[index] = "liza"; + questRoot72.Author = list244; QuestRoot questRoot73 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span111 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference295 = ref span111[0]; - QuestSequence obj149 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span369 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference295 = ref span369[num]; + QuestSequence obj169 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040140u, new Vector3(-44.63269f, 151.69983f, -623.43787f), 961); - obj149.Steps = list265; - reference295 = obj149; - ref QuestSequence reference296 = ref span111[1]; - QuestSequence obj150 = new QuestSequence + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + Span span370 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span370[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040140u, new Vector3(-44.63269f, 151.69983f, -623.43787f), 961); + obj169.Steps = list245; + reference295 = obj169; + num++; + ref QuestSequence reference296 = ref span369[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 2012155u, new Vector3(16.54684f, 128.4602f, -549.886f), 961); - obj150.Steps = list266; - reference296 = obj150; - ref QuestSequence reference297 = ref span111[2]; - QuestSequence obj151 = new QuestSequence + List list246 = new List(num2); + CollectionsMarshal.SetCount(list246, num2); + Span span371 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span371[index2] = new QuestStep(EInteractionType.Interact, 2012155u, new Vector3(16.54684f, 128.4602f, -549.886f), 961); + obj170.Steps = list246; + reference296 = obj170; + num++; + ref QuestSequence reference297 = ref span369[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.Interact, 2012158u, new Vector3(197.31433f, 91.569336f, -656.91614f), 961); - obj151.Steps = list267; - reference297 = obj151; - ref QuestSequence reference298 = ref span111[3]; - QuestSequence obj152 = new QuestSequence + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + Span span372 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span372[num2] = new QuestStep(EInteractionType.Interact, 2012158u, new Vector3(197.31433f, 91.569336f, -656.91614f), 961); + obj171.Steps = list247; + reference297 = obj171; + num++; + ref QuestSequence reference298 = ref span369[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.Interact, 2012161u, new Vector3(306.84363f, 138.47559f, -749.4774f), 961); - obj152.Steps = list268; - reference298 = obj152; - ref QuestSequence reference299 = ref span111[4]; - QuestSequence obj153 = new QuestSequence + List list248 = new List(num2); + CollectionsMarshal.SetCount(list248, num2); + Span span373 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + span373[index2] = new QuestStep(EInteractionType.Interact, 2012161u, new Vector3(306.84363f, 138.47559f, -749.4774f), 961); + obj172.Steps = list248; + reference298 = obj172; + num++; + ref QuestSequence reference299 = ref span369[num]; + QuestSequence obj173 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 2012164u, new Vector3(413.5653f, 148.63806f, -418.69232f), 961); - obj153.Steps = list269; - reference299 = obj153; - ref QuestSequence reference300 = ref span111[5]; - questSequence = new QuestSequence + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + Span span374 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span374[num2] = new QuestStep(EInteractionType.Interact, 2012164u, new Vector3(413.5653f, 148.63806f, -418.69232f), 961); + obj173.Steps = list249; + reference299 = obj173; + num++; + ref QuestSequence reference300 = ref span369[num]; + QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence107 = questSequence; num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040147u, new Vector3(412.28345f, 148.76953f, -417.34955f), 961) + List list250 = new List(num2); + CollectionsMarshal.SetCount(list250, num2); + Span span375 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span375[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040147u, new Vector3(412.28345f, 148.76953f, -417.34955f), 961) { StopDistance = 5f }; - questSequence107.Steps = list270; - reference300 = questSequence; + obj174.Steps = list250; + reference300 = obj174; questRoot73.QuestSequence = list2; AddQuest(questId36, questRoot); QuestId questId37 = new QuestId(4436); questRoot = new QuestRoot(); QuestRoot questRoot74 = questRoot; num = 1; - List list271 = new List(num); - CollectionsMarshal.SetCount(list271, num); - CollectionsMarshal.AsSpan(list271)[0] = "liza"; - questRoot74.Author = list271; + List list251 = new List(num); + CollectionsMarshal.SetCount(list251, num); + Span span376 = CollectionsMarshal.AsSpan(list251); + index = 0; + span376[index] = "liza"; + questRoot74.Author = list251; QuestRoot questRoot75 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span112 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference301 = ref span112[0]; - questSequence = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span377 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference301 = ref span377[num]; + QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence108 = questSequence; - num2 = 1; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040148u, new Vector3(416.15918f, 148.81448f, -418.53973f), 961) + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span378 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span378[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040148u, new Vector3(416.15918f, 148.81448f, -418.53973f), 961) { StopDistance = 5f }; - questSequence108.Steps = list272; - reference301 = questSequence; - ref QuestSequence reference302 = ref span112[1]; - QuestSequence obj154 = new QuestSequence + obj175.Steps = list252; + reference301 = obj175; + num++; + ref QuestSequence reference302 = ref span377[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 2012167u, new Vector3(436.057f, 149.12634f, -360.2503f), 961); - obj154.Steps = list273; - reference302 = obj154; - ref QuestSequence reference303 = ref span112[2]; + List list253 = new List(num2); + CollectionsMarshal.SetCount(list253, num2); + Span span379 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span379[index2] = new QuestStep(EInteractionType.Interact, 2012167u, new Vector3(436.057f, 149.12634f, -360.2503f), 961); + obj176.Steps = list253; + reference302 = obj176; + num++; + ref QuestSequence reference303 = ref span377[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence109 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span113 = CollectionsMarshal.AsSpan(list4); - span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(463.18567f, 138.58543f, -273.41803f), 961) + QuestSequence questSequence86 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span380 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span380[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(463.18567f, 138.58543f, -273.41803f), 961) { DisableNavmesh = true, Mount = true }; - span113[1] = new QuestStep(EInteractionType.Interact, 2012169u, new Vector3(523.7352f, 139.29956f, -186.9383f), 961); - questSequence109.Steps = list4; + num2++; + span380[num2] = new QuestStep(EInteractionType.Interact, 2012169u, new Vector3(523.7352f, 139.29956f, -186.9383f), 961); + questSequence86.Steps = list4; reference303 = questSequence; - ref QuestSequence reference304 = ref span112[3]; + num++; + ref QuestSequence reference304 = ref span377[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence110 = questSequence; + QuestSequence questSequence87 = questSequence; num2 = 2; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - Span span114 = CollectionsMarshal.AsSpan(list274); - span114[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(726.4087f, 139.19812f, -131.47159f), 961); - span114[1] = new QuestStep(EInteractionType.Interact, 2012170u, new Vector3(805.0812f, 153.521f, -210.55933f), 961); - questSequence110.Steps = list274; + list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span381 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span381[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(726.4087f, 139.19812f, -131.47159f), 961); + index2++; + span381[index2] = new QuestStep(EInteractionType.Interact, 2012170u, new Vector3(805.0812f, 153.521f, -210.55933f), 961); + questSequence87.Steps = list4; reference304 = questSequence; - ref QuestSequence reference305 = ref span112[4]; - QuestSequence obj155 = new QuestSequence + num++; + ref QuestSequence reference305 = ref span377[num]; + QuestSequence obj177 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 2012171u, new Vector3(741.39f, 148.05823f, -356.55762f), 961); - obj155.Steps = list275; - reference305 = obj155; - ref QuestSequence reference306 = ref span112[5]; - questSequence = new QuestSequence + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span382 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span382[num2] = new QuestStep(EInteractionType.Interact, 2012171u, new Vector3(741.39f, 148.05823f, -356.55762f), 961); + obj177.Steps = list254; + reference305 = obj177; + num++; + ref QuestSequence reference306 = ref span377[num]; + QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence111 = questSequence; num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040151u, new Vector3(504.35632f, 151.56888f, -303.88342f), 961) + List list255 = new List(num2); + CollectionsMarshal.SetCount(list255, num2); + Span span383 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span383[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040151u, new Vector3(504.35632f, 151.56888f, -303.88342f), 961) { StopDistance = 5f }; - questSequence111.Steps = list276; - reference306 = questSequence; + obj178.Steps = list255; + reference306 = obj178; questRoot75.QuestSequence = list2; AddQuest(questId37, questRoot); QuestId questId38 = new QuestId(4437); questRoot = new QuestRoot(); QuestRoot questRoot76 = questRoot; num = 1; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - CollectionsMarshal.AsSpan(list277)[0] = "liza"; - questRoot76.Author = list277; + List list256 = new List(num); + CollectionsMarshal.SetCount(list256, num); + Span span384 = CollectionsMarshal.AsSpan(list256); + index = 0; + span384[index] = "liza"; + questRoot76.Author = list256; QuestRoot questRoot77 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span115 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference307 = ref span115[0]; - questSequence = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span385 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference307 = ref span385[num]; + QuestSequence obj179 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence112 = questSequence; - num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040152u, new Vector3(508.75085f, 151.51599f, -303.39514f), 961) + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span386 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span386[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040152u, new Vector3(508.75085f, 151.51599f, -303.39514f), 961) { StopDistance = 5f }; - questSequence112.Steps = list278; - reference307 = questSequence; - ref QuestSequence reference308 = ref span115[1]; - QuestSequence obj156 = new QuestSequence + obj179.Steps = list257; + reference307 = obj179; + num++; + ref QuestSequence reference308 = ref span385[num]; + QuestSequence obj180 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1040154u, new Vector3(-401.23596f, 329.78302f, -760.3418f), 961); - obj156.Steps = list279; - reference308 = obj156; - ref QuestSequence reference309 = ref span115[2]; + List list258 = new List(num2); + CollectionsMarshal.SetCount(list258, num2); + Span span387 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span387[index2] = new QuestStep(EInteractionType.Interact, 1040154u, new Vector3(-401.23596f, 329.78302f, -760.3418f), 961); + obj180.Steps = list258; + reference308 = obj180; + num++; + ref QuestSequence reference309 = ref span385[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence113 = questSequence; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Duty, null, null, 961) + QuestSequence questSequence88 = questSequence; + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + Span span388 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span388[num2] = new QuestStep(EInteractionType.Duty, null, null, 961) { DutyOptions = new DutyOptions { @@ -296034,105 +359112,122 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 787u } }; - questSequence113.Steps = list280; + questSequence88.Steps = list259; reference309 = questSequence; - span115[3] = new QuestSequence + num++; + span385[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference310 = ref span115[4]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference310 = ref span385[num]; + QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence114 = questSequence; num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040159u, new Vector3(473.1975f, -17.131165f, 49.66809f), 961) + List list260 = new List(num2); + CollectionsMarshal.SetCount(list260, num2); + Span span389 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span389[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040159u, new Vector3(473.1975f, -17.131165f, 49.66809f), 961) { StopDistance = 5f }; - questSequence114.Steps = list281; - reference310 = questSequence; + obj181.Steps = list260; + reference310 = obj181; questRoot77.QuestSequence = list2; AddQuest(questId38, questRoot); QuestId questId39 = new QuestId(4438); questRoot = new QuestRoot(); QuestRoot questRoot78 = questRoot; num = 1; - List list282 = new List(num); - CollectionsMarshal.SetCount(list282, num); - CollectionsMarshal.AsSpan(list282)[0] = "liza"; - questRoot78.Author = list282; + List list261 = new List(num); + CollectionsMarshal.SetCount(list261, num); + Span span390 = CollectionsMarshal.AsSpan(list261); + index = 0; + span390[index] = "liza"; + questRoot78.Author = list261; QuestRoot questRoot79 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span116 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference311 = ref span116[0]; - questSequence = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span391 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference311 = ref span391[num]; + QuestSequence obj182 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence115 = questSequence; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040159u, new Vector3(473.1975f, -17.131165f, 49.66809f), 961) + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span392 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span392[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040159u, new Vector3(473.1975f, -17.131165f, 49.66809f), 961) { StopDistance = 5f }; - questSequence115.Steps = list283; - reference311 = questSequence; - ref QuestSequence reference312 = ref span116[1]; + obj182.Steps = list262; + reference311 = obj182; + num++; + ref QuestSequence reference312 = ref span391[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence116 = questSequence; + QuestSequence questSequence89 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference313 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj157 = new QuestStep(EInteractionType.Interact, 1040160u, new Vector3(265.156f, 46.937138f, 790.70715f), 961) + Span span393 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference313 = ref span393[index2]; + QuestStep obj183 = new QuestStep(EInteractionType.Interact, 1040160u, new Vector3(265.156f, 46.937138f, 790.70715f), 961) { Fly = true }; num3 = 1; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = new DialogueChoice + List list263 = new List(num3); + CollectionsMarshal.SetCount(list263, num3); + Span span394 = CollectionsMarshal.AsSpan(list263); + index3 = 0; + span394[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKME120_04438_Q1_000_008") }; - obj157.DialogueChoices = list284; - reference313 = obj157; - questSequence116.Steps = list4; + obj183.DialogueChoices = list263; + reference313 = obj183; + questSequence89.Steps = list4; reference312 = questSequence; - ref QuestSequence reference314 = ref span116[2]; - QuestSequence obj158 = new QuestSequence + num++; + ref QuestSequence reference314 = ref span391[num]; + QuestSequence obj184 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.015319824f, 1.0223389f, 14.206055f), 844); - obj158.Steps = list285; - reference314 = obj158; - ref QuestSequence reference315 = ref span116[3]; + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span395 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span395[num2] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.015319824f, 1.0223389f, 14.206055f), 844); + obj184.Steps = list264; + reference314 = obj184; + num++; + ref QuestSequence reference315 = ref span391[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence117 = questSequence; + QuestSequence questSequence90 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span117 = CollectionsMarshal.AsSpan(list4); - span117[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + Span span396 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span396[index2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -296142,8 +359237,9 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - span117[1] = new QuestStep(EInteractionType.CompleteQuest, 1040161u, new Vector3(-0.35101318f, 1.9073486E-06f, -3.3417358f), 987); - questSequence117.Steps = list4; + index2++; + span396[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040161u, new Vector3(-0.35101318f, 1.9073486E-06f, -3.3417358f), 987); + questSequence90.Steps = list4; reference315 = questSequence; questRoot79.QuestSequence = list2; AddQuest(questId39, questRoot); @@ -296151,36 +359247,44 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot80 = questRoot; num = 1; - List list286 = new List(num); - CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "liza"; - questRoot80.Author = list286; + List list265 = new List(num); + CollectionsMarshal.SetCount(list265, num); + Span span397 = CollectionsMarshal.AsSpan(list265); + index = 0; + span397[index] = "liza"; + questRoot80.Author = list265; QuestRoot questRoot81 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span118 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference316 = ref span118[0]; - QuestSequence obj159 = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span398 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference316 = ref span398[num]; + QuestSequence obj185 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040161u, new Vector3(-0.35101318f, 1.9073486E-06f, -3.3417358f), 987); - obj159.Steps = list287; - reference316 = obj159; - ref QuestSequence reference317 = ref span118[1]; + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + Span span399 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span399[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040161u, new Vector3(-0.35101318f, 1.9073486E-06f, -3.3417358f), 987); + obj185.Steps = list266; + reference316 = obj185; + num++; + ref QuestSequence reference317 = ref span398[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence118 = questSequence; + QuestSequence questSequence91 = questSequence; num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1039668u, new Vector3(-389.97485f, 21.999998f, 501.85388f), 958) + List list267 = new List(num2); + CollectionsMarshal.SetCount(list267, num2); + Span span400 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span400[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1039668u, new Vector3(-389.97485f, 21.999998f, 501.85388f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -296188,78 +359292,91 @@ public static class AssemblyQuestLoader Enabled = true } }; - questSequence118.Steps = list288; + questSequence91.Steps = list267; reference317 = questSequence; - span118[2] = new QuestSequence + num++; + span398[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference318 = ref span118[3]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference318 = ref span398[num]; + QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence119 = questSequence; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039675u, new Vector3(-404.8982f, 21.999998f, 416.3423f), 958) + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + Span span401 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span401[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039675u, new Vector3(-404.8982f, 21.999998f, 416.3423f), 958) { StopDistance = 6f }; - questSequence119.Steps = list289; - reference318 = questSequence; + obj186.Steps = list268; + reference318 = obj186; questRoot81.QuestSequence = list2; AddQuest(questId40, questRoot); QuestId questId41 = new QuestId(4440); questRoot = new QuestRoot(); QuestRoot questRoot82 = questRoot; num = 1; - List list290 = new List(num); - CollectionsMarshal.SetCount(list290, num); - CollectionsMarshal.AsSpan(list290)[0] = "liza"; - questRoot82.Author = list290; + List list269 = new List(num); + CollectionsMarshal.SetCount(list269, num); + Span span402 = CollectionsMarshal.AsSpan(list269); + index = 0; + span402[index] = "liza"; + questRoot82.Author = list269; QuestRoot questRoot83 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span119 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference319 = ref span119[0]; - questSequence = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span403 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference319 = ref span403[num]; + QuestSequence obj187 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence120 = questSequence; num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039681u, new Vector3(-401.3886f, 22.030764f, 419.94336f), 958) + List list270 = new List(num2); + CollectionsMarshal.SetCount(list270, num2); + Span span404 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span404[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039681u, new Vector3(-401.3886f, 22.030764f, 419.94336f), 958) { StopDistance = 5f }; - questSequence120.Steps = list291; - reference319 = questSequence; - ref QuestSequence reference320 = ref span119[1]; - QuestSequence obj160 = new QuestSequence + obj187.Steps = list270; + reference319 = obj187; + num++; + ref QuestSequence reference320 = ref span403[num]; + QuestSequence obj188 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 1039685u, new Vector3(108.018555f, -10.587427f, 269.4895f), 962); - obj160.Steps = list292; - reference320 = obj160; - ref QuestSequence reference321 = ref span119[2]; + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span405 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span405[num2] = new QuestStep(EInteractionType.Interact, 1039685u, new Vector3(108.018555f, -10.587427f, 269.4895f), 962); + obj188.Steps = list271; + reference320 = obj188; + num++; + ref QuestSequence reference321 = ref span403[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence121 = questSequence; + QuestSequence questSequence92 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + Span span406 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span406[index2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -296269,23 +359386,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - questSequence121.Steps = list4; + questSequence92.Steps = list4; reference321 = questSequence; - ref QuestSequence reference322 = ref span119[3]; + num++; + ref QuestSequence reference322 = ref span403[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence122 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span120 = CollectionsMarshal.AsSpan(list4); - span120[0] = new QuestStep(EInteractionType.Interact, 2011937u, new Vector3(-0.015319824f, 1.1443481f, 14.785889f), 987) + QuestSequence questSequence93 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span407 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span407[num2] = new QuestStep(EInteractionType.Interact, 2011937u, new Vector3(-0.015319824f, 1.1443481f, 14.785889f), 987) { TargetTerritoryId = (ushort)962 }; - span120[1] = new QuestStep(EInteractionType.Interact, 1039683u, new Vector3(-3.1586914f, 41.530132f, -160.35712f), 962) + num2++; + span407[num2] = new QuestStep(EInteractionType.Interact, 1039683u, new Vector3(-3.1586914f, 41.530132f, -160.35712f), 962) { AethernetShortcut = new AethernetShortcut { @@ -296293,282 +359413,348 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanRostra } }; - questSequence122.Steps = list4; + questSequence93.Steps = list4; reference322 = questSequence; - ref QuestSequence reference323 = ref span119[4]; - QuestSequence obj161 = new QuestSequence + num++; + ref QuestSequence reference323 = ref span403[num]; + QuestSequence obj189 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 2012211u, new Vector3(0.38146973f, 43.59497f, -273.30438f), 962); - obj161.Steps = list293; - reference323 = obj161; - ref QuestSequence reference324 = ref span119[5]; - QuestSequence obj162 = new QuestSequence + List list272 = new List(num2); + CollectionsMarshal.SetCount(list272, num2); + Span span408 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span408[index2] = new QuestStep(EInteractionType.Interact, 2012211u, new Vector3(0.38146973f, 43.59497f, -273.30438f), 962); + obj189.Steps = list272; + reference323 = obj189; + num++; + ref QuestSequence reference324 = ref span403[num]; + QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039693u, new Vector3(2.5177002f, 40.2f, -235.67566f), 962); - obj162.Steps = list294; - reference324 = obj162; + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + Span span409 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span409[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039693u, new Vector3(2.5177002f, 40.2f, -235.67566f), 962); + obj190.Steps = list273; + reference324 = obj190; questRoot83.QuestSequence = list2; AddQuest(questId41, questRoot); QuestId questId42 = new QuestId(4441); questRoot = new QuestRoot(); QuestRoot questRoot84 = questRoot; num = 1; - List list295 = new List(num); - CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "liza"; - questRoot84.Author = list295; + List list274 = new List(num); + CollectionsMarshal.SetCount(list274, num); + Span span410 = CollectionsMarshal.AsSpan(list274); + index = 0; + span410[index] = "liza"; + questRoot84.Author = list274; QuestRoot questRoot85 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span121 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference325 = ref span121[0]; - questSequence = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span411 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference325 = ref span411[num]; + QuestSequence obj191 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence123 = questSequence; num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039701u, new Vector3(4.257263f, 40.2f, -234.21082f), 962) + List list275 = new List(num2); + CollectionsMarshal.SetCount(list275, num2); + Span span412 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span412[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039701u, new Vector3(4.257263f, 40.2f, -234.21082f), 962) { StopDistance = 5f }; - questSequence123.Steps = list296; - reference325 = questSequence; - ref QuestSequence reference326 = ref span121[1]; - questSequence = new QuestSequence + obj191.Steps = list275; + reference325 = obj191; + num++; + ref QuestSequence reference326 = ref span411[num]; + QuestSequence obj192 = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence124 = questSequence; - num2 = 1; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 1039702u, new Vector3(422.0492f, 166.41168f, -453.42188f), 956) + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + Span span413 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + span413[num2] = new QuestStep(EInteractionType.Interact, 1039702u, new Vector3(422.0492f, 166.41168f, -453.42188f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; - questSequence124.Steps = list297; - reference326 = questSequence; - ref QuestSequence reference327 = ref span121[2]; + obj192.Steps = list276; + reference326 = obj192; + num++; + ref QuestSequence reference327 = ref span411[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence125 = questSequence; + QuestSequence questSequence94 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span122 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference328 = ref span122[0]; - QuestStep questStep46 = new QuestStep(EInteractionType.Interact, 1039545u, new Vector3(361.80652f, 170.1f, -393.36237f), 956); - num3 = 1; - List list298 = new List(num3); - CollectionsMarshal.SetCount(list298, num3); - CollectionsMarshal.AsSpan(list298)[0] = new DialogueChoice + Span span414 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference328 = ref span414[index2]; + QuestStep questStep47 = new QuestStep(EInteractionType.Interact, 1039545u, new Vector3(361.80652f, 170.1f, -393.36237f), 956); + index3 = 1; + List list277 = new List(index3); + CollectionsMarshal.SetCount(list277, index3); + Span span415 = CollectionsMarshal.AsSpan(list277); + num3 = 0; + span415[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMF103_04441_Q1_000_096") }; - questStep46.DialogueChoices = list298; - reference328 = questStep46; - span122[1] = new QuestStep(EInteractionType.Interact, 1039711u, new Vector3(346.4254f, 90.90158f, -371.1147f), 956); - questSequence125.Steps = list4; + questStep47.DialogueChoices = list277; + reference328 = questStep47; + index2++; + span414[index2] = new QuestStep(EInteractionType.Interact, 1039711u, new Vector3(346.4254f, 90.90158f, -371.1147f), 956); + questSequence94.Steps = list4; reference327 = questSequence; - ref QuestSequence reference329 = ref span121[3]; - QuestSequence obj163 = new QuestSequence + num++; + ref QuestSequence reference329 = ref span411[num]; + QuestSequence obj193 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1039712u, new Vector3(380.69727f, 79.691376f, 299.3667f), 956); - obj163.Steps = list299; - reference329 = obj163; - ref QuestSequence reference330 = ref span121[4]; + index2 = 1; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + Span span416 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span416[num2] = new QuestStep(EInteractionType.Interact, 1039712u, new Vector3(380.69727f, 79.691376f, 299.3667f), 956); + obj193.Steps = list278; + reference329 = obj193; + num++; + ref QuestSequence reference330 = ref span411[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence126 = questSequence; + QuestSequence questSequence95 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference331 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep47 = new QuestStep(EInteractionType.Interact, 1039721u, new Vector3(362.02026f, 79.691376f, 302.11328f), 956); + Span span417 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference331 = ref span417[index2]; + QuestStep questStep48 = new QuestStep(EInteractionType.Interact, 1039721u, new Vector3(362.02026f, 79.691376f, 302.11328f), 956); num3 = 1; - List list300 = new List(num3); - CollectionsMarshal.SetCount(list300, num3); - CollectionsMarshal.AsSpan(list300)[0] = new DialogueChoice + List list279 = new List(num3); + CollectionsMarshal.SetCount(list279, num3); + Span span418 = CollectionsMarshal.AsSpan(list279); + index3 = 0; + span418[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMF103_04441_Q1_000_181") }; - questStep47.DialogueChoices = list300; - reference331 = questStep47; - questSequence126.Steps = list4; + questStep48.DialogueChoices = list279; + reference331 = questStep48; + questSequence95.Steps = list4; reference330 = questSequence; - ref QuestSequence reference332 = ref span121[5]; - QuestSequence obj164 = new QuestSequence + num++; + ref QuestSequence reference332 = ref span411[num]; + QuestSequence obj194 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 1039722u, new Vector3(194.41516f, -23.530436f, 303.91382f), 956); - obj164.Steps = list301; - reference332 = obj164; - ref QuestSequence reference333 = ref span121[6]; - QuestSequence obj165 = new QuestSequence + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span419 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span419[num2] = new QuestStep(EInteractionType.Interact, 1039722u, new Vector3(194.41516f, -23.530436f, 303.91382f), 956); + obj194.Steps = list280; + reference332 = obj194; + num++; + ref QuestSequence reference333 = ref span411[num]; + QuestSequence obj195 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1040448u, new Vector3(-21.286377f, -30.155542f, 637.41516f), 956); - obj165.Steps = list302; - reference333 = obj165; - ref QuestSequence reference334 = ref span121[7]; - QuestSequence obj166 = new QuestSequence + List list281 = new List(num2); + CollectionsMarshal.SetCount(list281, num2); + Span span420 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span420[index2] = new QuestStep(EInteractionType.Interact, 1040448u, new Vector3(-21.286377f, -30.155542f, 637.41516f), 956); + obj195.Steps = list281; + reference333 = obj195; + num++; + ref QuestSequence reference334 = ref span411[num]; + QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039740u, new Vector3(-19.058533f, -30.155542f, 637.07935f), 956); - obj166.Steps = list303; - reference334 = obj166; + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + Span span421 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span421[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039740u, new Vector3(-19.058533f, -30.155542f, 637.07935f), 956); + obj196.Steps = list282; + reference334 = obj196; questRoot85.QuestSequence = list2; AddQuest(questId42, questRoot); QuestId questId43 = new QuestId(4442); questRoot = new QuestRoot(); QuestRoot questRoot86 = questRoot; num = 1; - List list304 = new List(num); - CollectionsMarshal.SetCount(list304, num); - CollectionsMarshal.AsSpan(list304)[0] = "liza"; - questRoot86.Author = list304; + List list283 = new List(num); + CollectionsMarshal.SetCount(list283, num); + Span span422 = CollectionsMarshal.AsSpan(list283); + index = 0; + span422[index] = "liza"; + questRoot86.Author = list283; QuestRoot questRoot87 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span123 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference335 = ref span123[0]; - questSequence = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span423 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference335 = ref span423[num]; + QuestSequence obj197 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence127 = questSequence; num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039733u, new Vector3(-20.767578f, -30.155542f, 638.7273f), 956) + List list284 = new List(num2); + CollectionsMarshal.SetCount(list284, num2); + Span span424 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span424[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039733u, new Vector3(-20.767578f, -30.155542f, 638.7273f), 956) { StopDistance = 5f }; - questSequence127.Steps = list305; - reference335 = questSequence; - ref QuestSequence reference336 = ref span123[1]; - QuestSequence obj167 = new QuestSequence + obj197.Steps = list284; + reference335 = obj197; + num++; + ref QuestSequence reference336 = ref span423[num]; + QuestSequence obj198 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.Interact, 1039750u, new Vector3(28.091797f, -31.530422f, 90.196045f), 956); - obj167.Steps = list306; - reference336 = obj167; - ref QuestSequence reference337 = ref span123[2]; + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span425 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span425[num2] = new QuestStep(EInteractionType.Interact, 1039750u, new Vector3(28.091797f, -31.530422f, 90.196045f), 956); + obj198.Steps = list285; + reference336 = obj198; + num++; + ref QuestSequence reference337 = ref span423[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence128 = questSequence; + QuestSequence questSequence96 = questSequence; num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span124 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference338 = ref span124[0]; + Span span426 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference338 = ref span426[index2]; questStep = new QuestStep(EInteractionType.Interact, 1037271u, new Vector3(84.64172f, -31.530367f, 31.021484f), 956); - QuestStep questStep48 = questStep; - num3 = 6; - List list307 = new List(num3); - CollectionsMarshal.SetCount(list307, num3); - Span span125 = CollectionsMarshal.AsSpan(list307); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep48.CompletionQuestVariablesFlags = list307; - reference338 = questStep; - ref QuestStep reference339 = ref span124[1]; - questStep = new QuestStep(EInteractionType.Interact, 1037253u, new Vector3(34.74475f, -28.549177f, 45.548096f), 956); QuestStep questStep49 = questStep; - num3 = 6; - List list308 = new List(num3); - CollectionsMarshal.SetCount(list308, num3); - Span span126 = CollectionsMarshal.AsSpan(list308); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep49.CompletionQuestVariablesFlags = list308; - reference339 = questStep; - ref QuestStep reference340 = ref span124[2]; - questStep = new QuestStep(EInteractionType.Interact, 1037275u, new Vector3(106.126465f, -29.529999f, -14.450317f), 956); + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span427 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span427[num3] = null; + num3++; + span427[num3] = null; + num3++; + span427[num3] = null; + num3++; + span427[num3] = null; + num3++; + span427[num3] = null; + num3++; + span427[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep49.CompletionQuestVariablesFlags = list75; + reference338 = questStep; + index2++; + ref QuestStep reference339 = ref span426[index2]; + questStep = new QuestStep(EInteractionType.Interact, 1037253u, new Vector3(34.74475f, -28.549177f, 45.548096f), 956); QuestStep questStep50 = questStep; num3 = 6; - List list309 = new List(num3); - CollectionsMarshal.SetCount(list309, num3); - Span span127 = CollectionsMarshal.AsSpan(list309); - span127[0] = null; - span127[1] = null; - span127[2] = null; - span127[3] = null; - span127[4] = null; - span127[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep50.CompletionQuestVariablesFlags = list309; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span428 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span428[index3] = null; + index3++; + span428[index3] = null; + index3++; + span428[index3] = null; + index3++; + span428[index3] = null; + index3++; + span428[index3] = null; + index3++; + span428[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep50.CompletionQuestVariablesFlags = list75; + reference339 = questStep; + index2++; + ref QuestStep reference340 = ref span426[index2]; + questStep = new QuestStep(EInteractionType.Interact, 1037275u, new Vector3(106.126465f, -29.529999f, -14.450317f), 956); + QuestStep questStep51 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span429 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span429[num3] = null; + num3++; + span429[num3] = null; + num3++; + span429[num3] = null; + num3++; + span429[num3] = null; + num3++; + span429[num3] = null; + num3++; + span429[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep51.CompletionQuestVariablesFlags = list75; reference340 = questStep; - questSequence128.Steps = list4; + questSequence96.Steps = list4; reference337 = questSequence; - ref QuestSequence reference341 = ref span123[3]; + num++; + ref QuestSequence reference341 = ref span423[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence129 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span128 = CollectionsMarshal.AsSpan(list4); - span128[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 956) + QuestSequence questSequence97 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span430 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span430[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 956) { StopDistance = 7f, Aetheryte = EAetheryteLocation.LabyrinthosSharlayanHamlet }; - span128[1] = new QuestStep(EInteractionType.CompleteQuest, 1039761u, new Vector3(-17.685242f, -31.53043f, -76.798706f), 956); - questSequence129.Steps = list4; + num2++; + span430[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039761u, new Vector3(-17.685242f, -31.53043f, -76.798706f), 956); + questSequence97.Steps = list4; reference341 = questSequence; questRoot87.QuestSequence = list2; AddQuest(questId43, questRoot); @@ -296576,117 +359762,141 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot88 = questRoot; num = 1; - List list310 = new List(num); - CollectionsMarshal.SetCount(list310, num); - CollectionsMarshal.AsSpan(list310)[0] = "liza"; - questRoot88.Author = list310; + List list286 = new List(num); + CollectionsMarshal.SetCount(list286, num); + Span span431 = CollectionsMarshal.AsSpan(list286); + index = 0; + span431[index] = "liza"; + questRoot88.Author = list286; QuestRoot questRoot89 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span129 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference342 = ref span129[0]; - questSequence = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span432 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference342 = ref span432[num]; + QuestSequence obj199 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence130 = questSequence; num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039762u, new Vector3(-15.610046f, -31.53043f, -78.324646f), 956) + List list287 = new List(num2); + CollectionsMarshal.SetCount(list287, num2); + Span span433 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + span433[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039762u, new Vector3(-15.610046f, -31.53043f, -78.324646f), 956) { StopDistance = 5f }; - questSequence130.Steps = list311; - reference342 = questSequence; - ref QuestSequence reference343 = ref span129[1]; - QuestSequence obj168 = new QuestSequence + obj199.Steps = list287; + reference342 = obj199; + num++; + ref QuestSequence reference343 = ref span432[num]; + QuestSequence obj200 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Interact, 1039766u, new Vector3(127.45862f, -17.530378f, -73.50275f), 956); - obj168.Steps = list312; - reference343 = obj168; - ref QuestSequence reference344 = ref span129[2]; + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + Span span434 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span434[num2] = new QuestStep(EInteractionType.Interact, 1039766u, new Vector3(127.45862f, -17.530378f, -73.50275f), 956); + obj200.Steps = list288; + reference343 = obj200; + num++; + ref QuestSequence reference344 = ref span432[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence131 = questSequence; + QuestSequence questSequence98 = questSequence; num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Snipe, 2012212u, new Vector3(126.35986f, -17.532654f, -77.073364f), 956) + List list289 = new List(num2); + CollectionsMarshal.SetCount(list289, num2); + Span span435 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span435[index2] = new QuestStep(EInteractionType.Snipe, 2012212u, new Vector3(126.35986f, -17.532654f, -77.073364f), 956) { StopDistance = 5f, Comment = "Find Points of Interest" }; - questSequence131.Steps = list313; + questSequence98.Steps = list289; reference344 = questSequence; - ref QuestSequence reference345 = ref span129[3]; + num++; + ref QuestSequence reference345 = ref span432[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence132 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference346 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj169 = new QuestStep(EInteractionType.Combat, 2012213u, new Vector3(218.12769f, -25.742065f, 104.600464f), 956) + QuestSequence questSequence99 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span436 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference346 = ref span436[num2]; + QuestStep obj201 = new QuestStep(EInteractionType.Combat, 2012213u, new Vector3(218.12769f, -25.742065f, 104.600464f), 956) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list314 = new List(num3); - CollectionsMarshal.SetCount(list314, num3); - CollectionsMarshal.AsSpan(list314)[0] = 13983u; - obj169.KillEnemyDataIds = list314; - reference346 = obj169; - questSequence132.Steps = list4; + List list290 = new List(num3); + CollectionsMarshal.SetCount(list290, num3); + Span span437 = CollectionsMarshal.AsSpan(list290); + index3 = 0; + span437[index3] = 13983u; + obj201.KillEnemyDataIds = list290; + reference346 = obj201; + questSequence99.Steps = list4; reference345 = questSequence; - ref QuestSequence reference347 = ref span129[4]; - QuestSequence obj170 = new QuestSequence + num++; + ref QuestSequence reference347 = ref span432[num]; + QuestSequence obj202 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1040391u, new Vector3(211.65784f, -25.759167f, 98.22229f), 956); - obj170.Steps = list315; - reference347 = obj170; - ref QuestSequence reference348 = ref span129[5]; - QuestSequence obj171 = new QuestSequence + List list291 = new List(num2); + CollectionsMarshal.SetCount(list291, num2); + Span span438 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span438[index2] = new QuestStep(EInteractionType.Interact, 1040391u, new Vector3(211.65784f, -25.759167f, 98.22229f), 956); + obj202.Steps = list291; + reference347 = obj202; + num++; + ref QuestSequence reference348 = ref span432[num]; + QuestSequence obj203 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1040392u, new Vector3(187.396f, -23.530434f, 281.42212f), 956); - obj171.Steps = list316; - reference348 = obj171; - ref QuestSequence reference349 = ref span129[6]; + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + Span span439 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span439[num2] = new QuestStep(EInteractionType.Interact, 1040392u, new Vector3(187.396f, -23.530434f, 281.42212f), 956); + obj203.Steps = list292; + reference348 = obj203; + num++; + ref QuestSequence reference349 = ref span432[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence133 = questSequence; + QuestSequence questSequence100 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span130 = CollectionsMarshal.AsSpan(list4); - span130[0] = new QuestStep(EInteractionType.Interact, 1039549u, new Vector3(229.87708f, -18.742016f, 298.72583f), 956) + Span span440 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span440[index2] = new QuestStep(EInteractionType.Interact, 1039549u, new Vector3(229.87708f, -18.742016f, 298.72583f), 956) { TargetTerritoryId = (ushort)956 }; - span130[1] = new QuestStep(EInteractionType.CompleteQuest, 1040397u, new Vector3(372.39636f, 79.691376f, 299.1836f), 956); - questSequence133.Steps = list4; + index2++; + span440[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040397u, new Vector3(372.39636f, 79.691376f, 299.1836f), 956); + questSequence100.Steps = list4; reference349 = questSequence; questRoot89.QuestSequence = list2; AddQuest(questId44, questRoot); @@ -296694,158 +359904,189 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot90 = questRoot; num = 1; - List list317 = new List(num); - CollectionsMarshal.SetCount(list317, num); - CollectionsMarshal.AsSpan(list317)[0] = "liza"; - questRoot90.Author = list317; + List list293 = new List(num); + CollectionsMarshal.SetCount(list293, num); + Span span441 = CollectionsMarshal.AsSpan(list293); + index = 0; + span441[index] = "liza"; + questRoot90.Author = list293; QuestRoot questRoot91 = questRoot; - num = 9; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span131 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference350 = ref span131[0]; - questSequence = new QuestSequence + index = 9; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span442 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference350 = ref span442[num]; + QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence134 = questSequence; - num2 = 1; - List list318 = new List(num2); - CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040400u, new Vector3(373.6781f, 79.691376f, 299.8855f), 956) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span443 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span443[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040400u, new Vector3(373.6781f, 79.691376f, 299.8855f), 956) { StopDistance = 5f }; - questSequence134.Steps = list318; - reference350 = questSequence; - ref QuestSequence reference351 = ref span131[1]; - QuestSequence obj172 = new QuestSequence + obj204.Steps = list294; + reference350 = obj204; + num++; + ref QuestSequence reference351 = ref span442[num]; + QuestSequence obj205 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(494.8042f, 65.06f, -37.70508f), 956); - obj172.Steps = list319; - reference351 = obj172; - ref QuestSequence reference352 = ref span131[2]; - QuestSequence obj173 = new QuestSequence + List list295 = new List(num2); + CollectionsMarshal.SetCount(list295, num2); + Span span444 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span444[index2] = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(494.8042f, 65.06f, -37.70508f), 956); + obj205.Steps = list295; + reference351 = obj205; + num++; + ref QuestSequence reference352 = ref span442[num]; + QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.Interact, 1037985u, new Vector3(481.8036f, 66.16195f, -108.537415f), 956); - obj173.Steps = list320; - reference352 = obj173; - ref QuestSequence reference353 = ref span131[3]; + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span445 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span445[num2] = new QuestStep(EInteractionType.Interact, 1037985u, new Vector3(481.8036f, 66.16195f, -108.537415f), 956); + obj206.Steps = list296; + reference352 = obj206; + num++; + ref QuestSequence reference353 = ref span442[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence135 = questSequence; + QuestSequence questSequence101 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference354 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj174 = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(422.61563f, 65.31176f, -121.74779f), 956) + Span span446 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference354 = ref span446[index2]; + QuestStep obj207 = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(422.61563f, 65.31176f, -121.74779f), 956) { StopDistance = 0.25f }; - num3 = 1; - List list321 = new List(num3); - CollectionsMarshal.SetCount(list321, num3); - CollectionsMarshal.AsSpan(list321)[0] = new DialogueChoice + index3 = 1; + List list297 = new List(index3); + CollectionsMarshal.SetCount(list297, index3); + Span span447 = CollectionsMarshal.AsSpan(list297); + num3 = 0; + span447[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMF106_04444_Q3_000_125"), Answer = new ExcelRef("TEXT_AKTKMF106_04444_A3_000_126") }; - obj174.DialogueChoices = list321; - reference354 = obj174; - questSequence135.Steps = list4; + obj207.DialogueChoices = list297; + reference354 = obj207; + questSequence101.Steps = list4; reference353 = questSequence; - ref QuestSequence reference355 = ref span131[4]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference355 = ref span442[num]; + QuestSequence obj208 = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence136 = questSequence; - num2 = 1; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(407.89633f, 65.16199f, -119.62697f), 956) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + Span span448 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span448[num2] = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(407.89633f, 65.16199f, -119.62697f), 956) { StopDistance = 0.25f }; - questSequence136.Steps = list322; - reference355 = questSequence; - ref QuestSequence reference356 = ref span131[5]; + obj208.Steps = list298; + reference355 = obj208; + num++; + ref QuestSequence reference356 = ref span442[num]; questSequence = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence137 = questSequence; + QuestSequence questSequence102 = questSequence; num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(463.33115f, 65.16199f, -66.60645f), 956) + List list299 = new List(num2); + CollectionsMarshal.SetCount(list299, num2); + Span span449 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span449[index2] = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(463.33115f, 65.16199f, -66.60645f), 956) { StopDistance = 0.25f }; - questSequence137.Steps = list323; + questSequence102.Steps = list299; reference356 = questSequence; - ref QuestSequence reference357 = ref span131[6]; + num++; + ref QuestSequence reference357 = ref span442[num]; questSequence = new QuestSequence { Sequence = 6 }; - QuestSequence questSequence138 = questSequence; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(485.30798f, 65.16199f, -96.01148f), 956) + QuestSequence questSequence103 = questSequence; + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + Span span450 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span450[num2] = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(485.30798f, 65.16199f, -96.01148f), 956) { StopDistance = 0.25f }; - questSequence138.Steps = list324; + questSequence103.Steps = list300; reference357 = questSequence; - ref QuestSequence reference358 = ref span131[7]; - QuestSequence obj175 = new QuestSequence + num++; + ref QuestSequence reference358 = ref span442[num]; + QuestSequence obj209 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1037985u, new Vector3(481.8036f, 66.16195f, -108.537415f), 956); - obj175.Steps = list325; - reference358 = obj175; - ref QuestSequence reference359 = ref span131[8]; + List list301 = new List(num2); + CollectionsMarshal.SetCount(list301, num2); + Span span451 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + span451[index2] = new QuestStep(EInteractionType.Interact, 1037985u, new Vector3(481.8036f, 66.16195f, -108.537415f), 956); + obj209.Steps = list301; + reference358 = obj209; + num++; + ref QuestSequence reference359 = ref span442[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence139 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference360 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep51 = new QuestStep(EInteractionType.CompleteQuest, 1040400u, new Vector3(373.6781f, 79.691376f, 299.8855f), 956); + QuestSequence questSequence104 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span452 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference360 = ref span452[num2]; + QuestStep questStep52 = new QuestStep(EInteractionType.CompleteQuest, 1040400u, new Vector3(373.6781f, 79.691376f, 299.8855f), 956); num3 = 1; - List list326 = new List(num3); - CollectionsMarshal.SetCount(list326, num3); - CollectionsMarshal.AsSpan(list326)[0] = new DialogueChoice + List list302 = new List(num3); + CollectionsMarshal.SetCount(list302, num3); + Span span453 = CollectionsMarshal.AsSpan(list302); + index3 = 0; + span453[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMF106_04444_Q4_000_272"), Answer = new ExcelRef("TEXT_AKTKMF106_04444_A4_000_273") }; - questStep51.DialogueChoices = list326; - reference360 = questStep51; - questSequence139.Steps = list4; + questStep52.DialogueChoices = list302; + reference360 = questStep52; + questSequence104.Steps = list4; reference359 = questSequence; questRoot91.QuestSequence = list2; AddQuest(questId45, questRoot); @@ -296853,259 +360094,337 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot92 = questRoot; num = 1; - List list327 = new List(num); - CollectionsMarshal.SetCount(list327, num); - CollectionsMarshal.AsSpan(list327)[0] = "liza"; - questRoot92.Author = list327; + List list303 = new List(num); + CollectionsMarshal.SetCount(list303, num); + Span span454 = CollectionsMarshal.AsSpan(list303); + index = 0; + span454[index] = "liza"; + questRoot92.Author = list303; QuestRoot questRoot93 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span132 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference361 = ref span132[0]; - QuestSequence obj176 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span455 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference361 = ref span455[num]; + QuestSequence obj210 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040401u, new Vector3(374.83777f, 79.691376f, 298.08484f), 956); - obj176.Steps = list328; - reference361 = obj176; - ref QuestSequence reference362 = ref span132[1]; + List list304 = new List(num2); + CollectionsMarshal.SetCount(list304, num2); + Span span456 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span456[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040401u, new Vector3(374.83777f, 79.691376f, 298.08484f), 956); + obj210.Steps = list304; + reference361 = obj210; + num++; + ref QuestSequence reference362 = ref span455[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence140 = questSequence; - num2 = 3; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span133 = CollectionsMarshal.AsSpan(list4); - span133[0] = new QuestStep(EInteractionType.AcceptQuest, 1041667u, new Vector3(443.96118f, 65.162f, -105.4552f), 956) + QuestSequence questSequence105 = questSequence; + index2 = 3; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span457 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span457[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041667u, new Vector3(443.96118f, 65.162f, -105.4552f), 956) { PickUpQuestId = new QuestId(4480) }; - span133[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.4520116f, -28.723352f, -42.992764f), 956) + num2++; + span457[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.4520116f, -28.723352f, -42.992764f), 956) { StopDistance = 0.75f, Mount = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet }; - span133[2] = new QuestStep(EInteractionType.Interact, 1039687u, new Vector3(-18.875488f, -31.53043f, -76.98181f), 956); - questSequence140.Steps = list4; + num2++; + span457[num2] = new QuestStep(EInteractionType.Interact, 1039687u, new Vector3(-18.875488f, -31.53043f, -76.98181f), 956); + questSequence105.Steps = list4; reference362 = questSequence; - ref QuestSequence reference363 = ref span132[2]; - QuestSequence obj177 = new QuestSequence + num++; + ref QuestSequence reference363 = ref span455[num]; + QuestSequence obj211 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 1040409u, new Vector3(-99.076904f, -28.516306f, -60.013794f), 956); - obj177.Steps = list329; - reference363 = obj177; - ref QuestSequence reference364 = ref span132[3]; + List list305 = new List(num2); + CollectionsMarshal.SetCount(list305, num2); + Span span458 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span458[index2] = new QuestStep(EInteractionType.Interact, 1040409u, new Vector3(-99.076904f, -28.516306f, -60.013794f), 956); + obj211.Steps = list305; + reference363 = obj211; + num++; + ref QuestSequence reference364 = ref span455[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence141 = questSequence; - num2 = 8; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span134 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference365 = ref span134[0]; + QuestSequence questSequence106 = questSequence; + index2 = 8; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span459 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference365 = ref span459[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040422u, new Vector3(-37.125244f, -29.530075f, -169.14624f), 956) { Comment = "Distracted Researcher" }; - QuestStep questStep52 = questStep; - num3 = 6; - List list330 = new List(num3); - CollectionsMarshal.SetCount(list330, num3); - Span span135 = CollectionsMarshal.AsSpan(list330); - span135[0] = null; - span135[1] = null; - span135[2] = null; - span135[3] = null; - span135[4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span135[5] = null; - questStep52.CompletionQuestVariablesFlags = list330; + QuestStep questStep53 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span460 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span460[num3] = null; + num3++; + span460[num3] = null; + num3++; + span460[num3] = null; + num3++; + span460[num3] = null; + num3++; + span460[num3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num3++; + span460[num3] = null; + questStep53.CompletionQuestVariablesFlags = list75; reference365 = questStep; - ref QuestStep reference366 = ref span134[1]; + num2++; + ref QuestStep reference366 = ref span459[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040416u, new Vector3(3.0670166f, -29.530357f, -126.17688f), 956) { Comment = "Hyperventilating Engineer" }; - QuestStep questStep53 = questStep; + QuestStep questStep54 = questStep; num3 = 6; - List list331 = new List(num3); - CollectionsMarshal.SetCount(list331, num3); - Span span136 = CollectionsMarshal.AsSpan(list331); - span136[0] = null; - span136[1] = null; - span136[2] = null; - span136[3] = null; - span136[4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span136[5] = null; - questStep53.CompletionQuestVariablesFlags = list331; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span461 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span461[index3] = null; + index3++; + span461[index3] = null; + index3++; + span461[index3] = null; + index3++; + span461[index3] = null; + index3++; + span461[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3++; + span461[index3] = null; + questStep54.CompletionQuestVariablesFlags = list75; reference366 = questStep; - ref QuestStep reference367 = ref span134[2]; + num2++; + ref QuestStep reference367 = ref span459[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040420u, new Vector3(40.634766f, -17.53038f, -69.62695f), 956) { Comment = "Harried Aetherologist" }; - QuestStep questStep54 = questStep; - num3 = 6; - List list332 = new List(num3); - CollectionsMarshal.SetCount(list332, num3); - Span span137 = CollectionsMarshal.AsSpan(list332); - span137[0] = null; - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - span137[5] = null; - questStep54.CompletionQuestVariablesFlags = list332; + QuestStep questStep55 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span462 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span462[num3] = null; + num3++; + span462[num3] = null; + num3++; + span462[num3] = null; + num3++; + span462[num3] = null; + num3++; + span462[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num3++; + span462[num3] = null; + questStep55.CompletionQuestVariablesFlags = list75; reference367 = questStep; - ref QuestStep reference368 = ref span134[3]; + num2++; + ref QuestStep reference368 = ref span459[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040421u, new Vector3(48.142212f, -31.53043f, -48.111755f), 956) { Mount = true, Comment = "Grimacing Naturalist" }; - QuestStep questStep55 = questStep; + QuestStep questStep56 = questStep; num3 = 6; - List list333 = new List(num3); - CollectionsMarshal.SetCount(list333, num3); - Span span138 = CollectionsMarshal.AsSpan(list333); - span138[0] = null; - span138[1] = null; - span138[2] = null; - span138[3] = null; - span138[4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); - span138[5] = null; - questStep55.CompletionQuestVariablesFlags = list333; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span463 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span463[index3] = null; + index3++; + span463[index3] = null; + index3++; + span463[index3] = null; + index3++; + span463[index3] = null; + index3++; + span463[index3] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + index3++; + span463[index3] = null; + questStep56.CompletionQuestVariablesFlags = list75; reference368 = questStep; - ref QuestStep reference369 = ref span134[4]; + num2++; + ref QuestStep reference369 = ref span459[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040417u, new Vector3(59.311768f, -29.530416f, -24.429688f), 956) { Comment = "Ponderous Mathematician" }; - QuestStep questStep56 = questStep; - num3 = 6; - List list334 = new List(num3); - CollectionsMarshal.SetCount(list334, num3); - Span span139 = CollectionsMarshal.AsSpan(list334); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - span139[5] = null; - questStep56.CompletionQuestVariablesFlags = list334; + QuestStep questStep57 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span464 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span464[num3] = null; + num3++; + span464[num3] = null; + num3++; + span464[num3] = null; + num3++; + span464[num3] = null; + num3++; + span464[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num3++; + span464[num3] = null; + questStep57.CompletionQuestVariablesFlags = list75; reference369 = questStep; - ref QuestStep reference370 = ref span134[5]; + num2++; + ref QuestStep reference370 = ref span459[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040418u, new Vector3(-19.394226f, -29.530432f, 10.299805f), 956) { Mount = true, Comment = "Despondent Engineer" }; - QuestStep questStep57 = questStep; + QuestStep questStep58 = questStep; num3 = 6; - List list335 = new List(num3); - CollectionsMarshal.SetCount(list335, num3); - Span span140 = CollectionsMarshal.AsSpan(list335); - span140[0] = null; - span140[1] = null; - span140[2] = null; - span140[3] = null; - span140[4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span140[5] = null; - questStep57.CompletionQuestVariablesFlags = list335; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span465 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span465[index3] = null; + index3++; + span465[index3] = null; + index3++; + span465[index3] = null; + index3++; + span465[index3] = null; + index3++; + span465[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3++; + span465[index3] = null; + questStep58.CompletionQuestVariablesFlags = list75; reference370 = questStep; - ref QuestStep reference371 = ref span134[6]; + num2++; + ref QuestStep reference371 = ref span459[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040423u, new Vector3(-22.232422f, -31.530355f, 38.071167f), 956) { Mount = true, Comment = "Skeptical Researcher" }; - QuestStep questStep58 = questStep; - num3 = 6; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - Span span141 = CollectionsMarshal.AsSpan(list336); - span141[0] = null; - span141[1] = null; - span141[2] = null; - span141[3] = null; - span141[4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span141[5] = null; - questStep58.CompletionQuestVariablesFlags = list336; + QuestStep questStep59 = questStep; + index3 = 6; + list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span466 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span466[num3] = null; + num3++; + span466[num3] = null; + num3++; + span466[num3] = null; + num3++; + span466[num3] = null; + num3++; + span466[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num3++; + span466[num3] = null; + questStep59.CompletionQuestVariablesFlags = list75; reference371 = questStep; - ref QuestStep reference372 = ref span134[7]; + num2++; + ref QuestStep reference372 = ref span459[num2]; questStep = new QuestStep(EInteractionType.Interact, 1040419u, new Vector3(-15.762573f, -31.530432f, -51.59082f), 956) { Comment = "Anxious Engineer" }; - QuestStep questStep59 = questStep; + QuestStep questStep60 = questStep; num3 = 6; - List list337 = new List(num3); - CollectionsMarshal.SetCount(list337, num3); - Span span142 = CollectionsMarshal.AsSpan(list337); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span142[5] = null; - questStep59.CompletionQuestVariablesFlags = list337; + list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span467 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span467[index3] = null; + index3++; + span467[index3] = null; + index3++; + span467[index3] = null; + index3++; + span467[index3] = null; + index3++; + span467[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3++; + span467[index3] = null; + questStep60.CompletionQuestVariablesFlags = list75; reference372 = questStep; - questSequence141.Steps = list4; + questSequence106.Steps = list4; reference364 = questSequence; - ref QuestSequence reference373 = ref span132[4]; - QuestSequence obj178 = new QuestSequence + num++; + ref QuestSequence reference373 = ref span455[num]; + QuestSequence obj212 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.Interact, 1040436u, new Vector3(-78.26355f, -29.53f, -58.854065f), 956); - obj178.Steps = list338; - reference373 = obj178; - ref QuestSequence reference374 = ref span132[5]; + List list306 = new List(num2); + CollectionsMarshal.SetCount(list306, num2); + Span span468 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span468[index2] = new QuestStep(EInteractionType.Interact, 1040436u, new Vector3(-78.26355f, -29.53f, -58.854065f), 956); + obj212.Steps = list306; + reference373 = obj212; + num++; + ref QuestSequence reference374 = ref span455[num]; questSequence = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence142 = questSequence; - num2 = 1; - List list339 = new List(num2); - CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 2012220u, new Vector3(-74.418274f, -29.58728f, -53.23877f), 956) + QuestSequence questSequence107 = questSequence; + index2 = 1; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + Span span469 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span469[num2] = new QuestStep(EInteractionType.Interact, 2012220u, new Vector3(-74.418274f, -29.58728f, -53.23877f), 956) { StopDistance = 5f }; - questSequence142.Steps = list339; + questSequence107.Steps = list307; reference374 = questSequence; - ref QuestSequence reference375 = ref span132[6]; + num++; + ref QuestSequence reference375 = ref span455[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence143 = questSequence; + QuestSequence questSequence108 = questSequence; num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040436u, new Vector3(-78.26355f, -29.53f, -58.854065f), 956) + List list308 = new List(num2); + CollectionsMarshal.SetCount(list308, num2); + Span span470 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span470[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040436u, new Vector3(-78.26355f, -29.53f, -58.854065f), 956) { StopDistance = 5f }; - questSequence143.Steps = list340; + questSequence108.Steps = list308; reference375 = questSequence; questRoot93.QuestSequence = list2; AddQuest(questId46, questRoot); @@ -297113,243 +360432,296 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot94 = questRoot; num = 1; - List list341 = new List(num); - CollectionsMarshal.SetCount(list341, num); - CollectionsMarshal.AsSpan(list341)[0] = "liza"; - questRoot94.Author = list341; + List list309 = new List(num); + CollectionsMarshal.SetCount(list309, num); + Span span471 = CollectionsMarshal.AsSpan(list309); + index = 0; + span471[index] = "liza"; + questRoot94.Author = list309; QuestRoot questRoot95 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span143 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference376 = ref span143[0]; + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span472 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference376 = ref span472[num]; questSequence = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence144 = questSequence; - num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040436u, new Vector3(-78.26355f, -29.53f, -58.854065f), 956) + QuestSequence questSequence109 = questSequence; + index2 = 1; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + Span span473 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + span473[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040436u, new Vector3(-78.26355f, -29.53f, -58.854065f), 956) { StopDistance = 5f }; - questSequence144.Steps = list342; + questSequence109.Steps = list310; reference376 = questSequence; - ref QuestSequence reference377 = ref span143[1]; + num++; + ref QuestSequence reference377 = ref span472[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence145 = questSequence; + QuestSequence questSequence110 = questSequence; num2 = 4; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span144 = CollectionsMarshal.AsSpan(list4); - span144[0] = new QuestStep(EInteractionType.AcceptQuest, 1041129u, new Vector3(-23.575256f, -31.53021f, 1.8463135f), 956) + Span span474 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span474[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041129u, new Vector3(-23.575256f, -31.53021f, 1.8463135f), 956) { PickUpQuestId = new QuestId(4329) }; - ref QuestStep reference378 = ref span144[1]; + index2++; + ref QuestStep reference378 = ref span474[index2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1041683u, new Vector3(-29.984009f, -31.53043f, -23.758362f), 956); - QuestStep questStep60 = questStep; - num3 = 1; - List list343 = new List(num3); - CollectionsMarshal.SetCount(list343, num3); - CollectionsMarshal.AsSpan(list343)[0] = new DialogueChoice + QuestStep questStep61 = questStep; + index3 = 1; + List list311 = new List(index3); + CollectionsMarshal.SetCount(list311, index3); + Span span475 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span475[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/044/AktKzi101_04484", Prompt = new ExcelRef("TEXT_AKTKZI101_04484_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKZI101_04484_A1_000_002") }; - questStep60.DialogueChoices = list343; + questStep61.DialogueChoices = list311; questStep.PickUpQuestId = new QuestId(4484); reference378 = questStep; - ref QuestStep reference379 = ref span144[2]; + index2++; + ref QuestStep reference379 = ref span474[index2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1041313u, new Vector3(89.28052f, -17.530382f, -74.906555f), 956); - QuestStep questStep61 = questStep; + QuestStep questStep62 = questStep; num3 = 1; - List list344 = new List(num3); - CollectionsMarshal.SetCount(list344, num3); - CollectionsMarshal.AsSpan(list344)[0] = new DialogueChoice + List list312 = new List(num3); + CollectionsMarshal.SetCount(list312, num3); + Span span476 = CollectionsMarshal.AsSpan(list312); + index3 = 0; + span476[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/043/AktKzi005_04320", Prompt = new ExcelRef("TEXT_AKTKZI005_04320_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKZI005_04320_A1_000_003") }; - questStep61.DialogueChoices = list344; + questStep62.DialogueChoices = list312; questStep.PickUpQuestId = new QuestId(4320); reference379 = questStep; - span144[3] = new QuestStep(EInteractionType.Interact, 1040444u, new Vector3(-424.24664f, -31.831255f, -38.895264f), 956); - questSequence145.Steps = list4; + index2++; + span474[index2] = new QuestStep(EInteractionType.Interact, 1040444u, new Vector3(-424.24664f, -31.831255f, -38.895264f), 956); + questSequence110.Steps = list4; reference377 = questSequence; - ref QuestSequence reference380 = ref span143[2]; - QuestSequence obj179 = new QuestSequence + num++; + ref QuestSequence reference380 = ref span472[num]; + QuestSequence obj213 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.Interact, 2012223u, new Vector3(-427.2984f, -31.418396f, -38.19336f), 956); - obj179.Steps = list345; - reference380 = obj179; - ref QuestSequence reference381 = ref span143[3]; - QuestSequence obj180 = new QuestSequence + index2 = 1; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + Span span477 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span477[num2] = new QuestStep(EInteractionType.Interact, 2012223u, new Vector3(-427.2984f, -31.418396f, -38.19336f), 956); + obj213.Steps = list313; + reference380 = obj213; + num++; + ref QuestSequence reference381 = ref span472[num]; + QuestSequence obj214 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 1040446u, new Vector3(-697.4136f, -31.621387f, 164.11072f), 956); - obj180.Steps = list346; - reference381 = obj180; - ref QuestSequence reference382 = ref span143[4]; + List list314 = new List(num2); + CollectionsMarshal.SetCount(list314, num2); + Span span478 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span478[index2] = new QuestStep(EInteractionType.Interact, 1040446u, new Vector3(-697.4136f, -31.621387f, 164.11072f), 956); + obj214.Steps = list314; + reference381 = obj214; + num++; + ref QuestSequence reference382 = ref span472[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence146 = questSequence; - num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span145 = CollectionsMarshal.AsSpan(list4); - span145[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 956) + QuestSequence questSequence111 = questSequence; + index2 = 2; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span479 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span479[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 956) { StopDistance = 6f, Aetheryte = EAetheryteLocation.LabyrinthosAporia }; - span145[1] = new QuestStep(EInteractionType.Interact, 1040447u, new Vector3(-710.0176f, -31.53043f, 322.59094f), 956); - questSequence146.Steps = list4; + num2++; + span479[num2] = new QuestStep(EInteractionType.Interact, 1040447u, new Vector3(-710.0176f, -31.53043f, 322.59094f), 956); + questSequence111.Steps = list4; reference382 = questSequence; - ref QuestSequence reference383 = ref span143[5]; - QuestSequence obj181 = new QuestSequence + num++; + ref QuestSequence reference383 = ref span472[num]; + QuestSequence obj215 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1040450u, new Vector3(-754.4213f, -29.529999f, 389.70007f), 956); - obj181.Steps = list347; - reference383 = obj181; - ref QuestSequence reference384 = ref span143[6]; - QuestSequence obj182 = new QuestSequence + List list315 = new List(num2); + CollectionsMarshal.SetCount(list315, num2); + Span span480 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span480[index2] = new QuestStep(EInteractionType.Interact, 1040450u, new Vector3(-754.4213f, -29.529999f, 389.70007f), 956); + obj215.Steps = list315; + reference383 = obj215; + num++; + ref QuestSequence reference384 = ref span472[num]; + QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040447u, new Vector3(-710.0176f, -31.53043f, 322.59094f), 956); - obj182.Steps = list348; - reference384 = obj182; + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + Span span481 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + span481[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040447u, new Vector3(-710.0176f, -31.53043f, 322.59094f), 956); + obj216.Steps = list316; + reference384 = obj216; questRoot95.QuestSequence = list2; AddQuest(questId47, questRoot); QuestId questId48 = new QuestId(4447); questRoot = new QuestRoot(); QuestRoot questRoot96 = questRoot; num = 1; - List list349 = new List(num); - CollectionsMarshal.SetCount(list349, num); - CollectionsMarshal.AsSpan(list349)[0] = "liza"; - questRoot96.Author = list349; + List list317 = new List(num); + CollectionsMarshal.SetCount(list317, num); + Span span482 = CollectionsMarshal.AsSpan(list317); + index = 0; + span482[index] = "liza"; + questRoot96.Author = list317; QuestRoot questRoot97 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span146 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference385 = ref span146[0]; + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span483 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference385 = ref span483[num]; questSequence = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence147 = questSequence; + QuestSequence questSequence112 = questSequence; num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040451u, new Vector3(-709.28516f, -31.53043f, 321.46167f), 956) + List list318 = new List(num2); + CollectionsMarshal.SetCount(list318, num2); + Span span484 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span484[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040451u, new Vector3(-709.28516f, -31.53043f, 321.46167f), 956) { StopDistance = 5f }; - questSequence147.Steps = list350; + questSequence112.Steps = list318; reference385 = questSequence; - ref QuestSequence reference386 = ref span146[1]; - QuestSequence obj183 = new QuestSequence + num++; + ref QuestSequence reference386 = ref span483[num]; + QuestSequence obj217 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1040454u, new Vector3(-613.18384f, -19.786552f, 626.8557f), 956); - obj183.Steps = list351; - reference386 = obj183; - ref QuestSequence reference387 = ref span146[2]; + index2 = 1; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + Span span485 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + span485[num2] = new QuestStep(EInteractionType.Interact, 1040454u, new Vector3(-613.18384f, -19.786552f, 626.8557f), 956); + obj217.Steps = list319; + reference386 = obj217; + num++; + ref QuestSequence reference387 = ref span483[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence148 = questSequence; + QuestSequence questSequence113 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference388 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj184 = new QuestStep(EInteractionType.Combat, 2012225u, new Vector3(-594.5678f, -26.596497f, 609.09436f), 956) + Span span486 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference388 = ref span486[index2]; + questStep = new QuestStep(EInteractionType.Combat, 2012225u, new Vector3(-594.5678f, -26.596497f, 609.09436f), 956) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 3; - List list352 = new List(num3); - CollectionsMarshal.SetCount(list352, num3); - Span span147 = CollectionsMarshal.AsSpan(list352); - span147[0] = 13982u; - span147[1] = 13981u; - span147[2] = 13980u; - obj184.KillEnemyDataIds = list352; - reference388 = obj184; - questSequence148.Steps = list4; + QuestStep questStep63 = questStep; + index3 = 3; + List list320 = new List(index3); + CollectionsMarshal.SetCount(list320, index3); + Span span487 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span487[num3] = 13982u; + num3++; + span487[num3] = 13981u; + num3++; + span487[num3] = 13980u; + questStep63.KillEnemyDataIds = list320; + reference388 = questStep; + questSequence113.Steps = list4; reference387 = questSequence; - ref QuestSequence reference389 = ref span146[3]; - QuestSequence obj185 = new QuestSequence + num++; + ref QuestSequence reference389 = ref span483[num]; + QuestSequence obj218 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.Interact, 2012442u, new Vector3(-594.5678f, -26.596497f, 609.09436f), 956); - obj185.Steps = list353; - reference389 = obj185; - ref QuestSequence reference390 = ref span146[4]; + index2 = 1; + List list321 = new List(index2); + CollectionsMarshal.SetCount(list321, index2); + Span span488 = CollectionsMarshal.AsSpan(list321); + num2 = 0; + span488[num2] = new QuestStep(EInteractionType.Interact, 2012442u, new Vector3(-594.5678f, -26.596497f, 609.09436f), 956); + obj218.Steps = list321; + reference389 = obj218; + num++; + ref QuestSequence reference390 = ref span483[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence149 = questSequence; + QuestSequence questSequence114 = questSequence; num2 = 8; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span148 = CollectionsMarshal.AsSpan(list4); - span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-601.1813f, -24.48022f, 633.1958f), 956) + Span span489 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span489[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-601.1813f, -24.48022f, 633.1958f), 956) { Mount = true, Comment = "Avoids aggro + possible navmesh issue" }; - span148[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.4733f, -22.860794f, 666.64417f), 956) + index2++; + span489[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.4733f, -22.860794f, 666.64417f), 956) { Comment = "Avoids aggro + possible navmesh issue" }; - span148[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011985u, new Vector3(-547.7532f, -18.051514f, 661.86f), 956) + index2++; + span489[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011985u, new Vector3(-547.7532f, -18.051514f, 661.86f), 956) { AetherCurrentId = 2818316u }; - span148[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.94707f, -29.933468f, 674.6727f), 956); - span148[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(-120.48093f, -21.96263f, 685.2332f), 956) + index2++; + span489[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.94707f, -29.933468f, 674.6727f), 956); + index2++; + span489[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-120.48093f, -21.96263f, 685.2332f), 956) { DisableNavmesh = true, JumpDestination = new JumpDestination @@ -297359,18 +360731,21 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - span148[5] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011986u, new Vector3(-128.06903f, -20.523438f, 676.7223f), 956) + index2++; + span489[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011986u, new Vector3(-128.06903f, -20.523438f, 676.7223f), 956) { DisableNavmesh = true, AetherCurrentId = 2818317u }; - span148[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.01625f, -30.313616f, 670.05585f), 956) + index2++; + span489[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.01625f, -30.313616f, 670.05585f), 956) { DisableNavmesh = true, Mount = true }; - span148[7] = new QuestStep(EInteractionType.CompleteQuest, 1040455u, new Vector3(10.147156f, -30.155546f, 619.62305f), 956); - questSequence149.Steps = list4; + index2++; + span489[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040455u, new Vector3(10.147156f, -30.155546f, 619.62305f), 956); + questSequence114.Steps = list4; reference390 = questSequence; questRoot97.QuestSequence = list2; AddQuest(questId48, questRoot); @@ -297378,219 +360753,266 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot98 = questRoot; num = 1; - List list354 = new List(num); - CollectionsMarshal.SetCount(list354, num); - CollectionsMarshal.AsSpan(list354)[0] = "liza"; - questRoot98.Author = list354; + List list322 = new List(num); + CollectionsMarshal.SetCount(list322, num); + Span span490 = CollectionsMarshal.AsSpan(list322); + index = 0; + span490[index] = "liza"; + questRoot98.Author = list322; QuestRoot questRoot99 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span149 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference391 = ref span149[0]; - QuestSequence obj186 = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span491 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference391 = ref span491[num]; + QuestSequence obj219 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040455u, new Vector3(10.147156f, -30.155546f, 619.62305f), 956); - obj186.Steps = list355; - reference391 = obj186; - ref QuestSequence reference392 = ref span149[1]; + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + Span span492 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span492[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040455u, new Vector3(10.147156f, -30.155546f, 619.62305f), 956); + obj219.Steps = list323; + reference391 = obj219; + num++; + ref QuestSequence reference392 = ref span491[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence150 = questSequence; + QuestSequence questSequence115 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span150 = CollectionsMarshal.AsSpan(list4); - span150[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.4520116f, -28.723352f, -42.992764f), 956) + Span span493 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + span493[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.4520116f, -28.723352f, -42.992764f), 956) { Mount = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet }; - ref QuestStep reference393 = ref span150[1]; - QuestStep questStep62 = new QuestStep(EInteractionType.Interact, 2012226u, new Vector3(-11.6427f, -31.540405f, -81.28485f), 956); + index2++; + ref QuestStep reference393 = ref span493[index2]; + QuestStep questStep64 = new QuestStep(EInteractionType.Interact, 2012226u, new Vector3(-11.6427f, -31.540405f, -81.28485f), 956); num3 = 1; - List list356 = new List(num3); - CollectionsMarshal.SetCount(list356, num3); - CollectionsMarshal.AsSpan(list356)[0] = new DialogueChoice + List list324 = new List(num3); + CollectionsMarshal.SetCount(list324, num3); + Span span494 = CollectionsMarshal.AsSpan(list324); + index3 = 0; + span494[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMF110_04448_Q1_000_031") }; - questStep62.DialogueChoices = list356; - reference393 = questStep62; - questSequence150.Steps = list4; + questStep64.DialogueChoices = list324; + reference393 = questStep64; + questSequence115.Steps = list4; reference392 = questSequence; - ref QuestSequence reference394 = ref span149[2]; - QuestSequence obj187 = new QuestSequence + num++; + ref QuestSequence reference394 = ref span491[num]; + QuestSequence obj220 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.Interact, 1040457u, new Vector3(36.51477f, -16.246998f, 129.47266f), 962); - obj187.Steps = list357; - reference394 = obj187; - ref QuestSequence reference395 = ref span149[3]; + index2 = 1; + List list325 = new List(index2); + CollectionsMarshal.SetCount(list325, index2); + Span span495 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + span495[num2] = new QuestStep(EInteractionType.Interact, 1040457u, new Vector3(36.51477f, -16.246998f, 129.47266f), 962); + obj220.Steps = list325; + reference394 = obj220; + num++; + ref QuestSequence reference395 = ref span491[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence151 = questSequence; + QuestSequence questSequence116 = questSequence; num2 = 1; - List list358 = new List(num2); - CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.Interact, 1040466u, new Vector3(-702.4186f, -31.53043f, 301.93018f), 956) + List list326 = new List(num2); + CollectionsMarshal.SetCount(list326, num2); + Span span496 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span496[index2] = new QuestStep(EInteractionType.Interact, 1040466u, new Vector3(-702.4186f, -31.53043f, 301.93018f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; - questSequence151.Steps = list358; + questSequence116.Steps = list326; reference395 = questSequence; - ref QuestSequence reference396 = ref span149[4]; + num++; + ref QuestSequence reference396 = ref span491[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence152 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference397 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep63 = new QuestStep(EInteractionType.Interact, 1040467u, new Vector3(-620.63025f, -27.670597f, 302.17432f), 956); - num3 = 1; - List list359 = new List(num3); - CollectionsMarshal.SetCount(list359, num3); - CollectionsMarshal.AsSpan(list359)[0] = new DialogueChoice + QuestSequence questSequence117 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span497 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference397 = ref span497[num2]; + QuestStep questStep65 = new QuestStep(EInteractionType.Interact, 1040467u, new Vector3(-620.63025f, -27.670597f, 302.17432f), 956); + index3 = 1; + List list327 = new List(index3); + CollectionsMarshal.SetCount(list327, index3); + Span span498 = CollectionsMarshal.AsSpan(list327); + num3 = 0; + span498[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMF110_04448_Q2_000_111") }; - questStep63.DialogueChoices = list359; - reference397 = questStep63; - questSequence152.Steps = list4; + questStep65.DialogueChoices = list327; + reference397 = questStep65; + questSequence117.Steps = list4; reference396 = questSequence; - ref QuestSequence reference398 = ref span149[5]; + num++; + ref QuestSequence reference398 = ref span491[num]; questSequence = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence153 = questSequence; + QuestSequence questSequence118 = questSequence; num2 = 1; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.Interact, 1040468u, new Vector3(-598.32153f, -191.11913f, 301.71655f), 956) + List list328 = new List(num2); + CollectionsMarshal.SetCount(list328, num2); + Span span499 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + span499[index2] = new QuestStep(EInteractionType.Interact, 1040468u, new Vector3(-598.32153f, -191.11913f, 301.71655f), 956) { StopDistance = 7f }; - questSequence153.Steps = list360; + questSequence118.Steps = list328; reference398 = questSequence; - ref QuestSequence reference399 = ref span149[6]; - QuestSequence obj188 = new QuestSequence + num++; + ref QuestSequence reference399 = ref span491[num]; + QuestSequence obj221 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list361 = new List(num2); - CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-413.49243f, -220.16248f, 301.63266f), 956) + index2 = 1; + List list329 = new List(index2); + CollectionsMarshal.SetCount(list329, index2); + Span span500 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + span500[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-413.49243f, -220.16248f, 301.63266f), 956) { RestartNavigationIfCancelled = false }; - obj188.Steps = list361; - reference399 = obj188; - ref QuestSequence reference400 = ref span149[7]; - QuestSequence obj189 = new QuestSequence + obj221.Steps = list329; + reference399 = obj221; + num++; + ref QuestSequence reference400 = ref span491[num]; + QuestSequence obj222 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040478u, new Vector3(-406.9734f, -220.18355f, 304.1886f), 956); - obj189.Steps = list362; - reference400 = obj189; + List list330 = new List(num2); + CollectionsMarshal.SetCount(list330, num2); + Span span501 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span501[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040478u, new Vector3(-406.9734f, -220.18355f, 304.1886f), 956); + obj222.Steps = list330; + reference400 = obj222; questRoot99.QuestSequence = list2; AddQuest(questId49, questRoot); QuestId questId50 = new QuestId(4449); questRoot = new QuestRoot(); QuestRoot questRoot100 = questRoot; num = 1; - List list363 = new List(num); - CollectionsMarshal.SetCount(list363, num); - CollectionsMarshal.AsSpan(list363)[0] = "liza"; - questRoot100.Author = list363; + List list331 = new List(num); + CollectionsMarshal.SetCount(list331, num); + Span span502 = CollectionsMarshal.AsSpan(list331); + index = 0; + span502[index] = "liza"; + questRoot100.Author = list331; QuestRoot questRoot101 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span151 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference401 = ref span151[0]; - QuestSequence obj190 = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span503 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference401 = ref span503[num]; + QuestSequence obj223 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040478u, new Vector3(-406.9734f, -220.18355f, 304.1886f), 956); - obj190.Steps = list364; - reference401 = obj190; - ref QuestSequence reference402 = ref span151[1]; - QuestSequence obj191 = new QuestSequence + index2 = 1; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + Span span504 = CollectionsMarshal.AsSpan(list332); + num2 = 0; + span504[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040478u, new Vector3(-406.9734f, -220.18355f, 304.1886f), 956); + obj223.Steps = list332; + reference401 = obj223; + num++; + ref QuestSequence reference402 = ref span503[num]; + QuestSequence obj224 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.Interact, 1040487u, new Vector3(-234.6991f, -224.38274f, 349.01953f), 956); - obj191.Steps = list365; - reference402 = obj191; - ref QuestSequence reference403 = ref span151[2]; + List list333 = new List(num2); + CollectionsMarshal.SetCount(list333, num2); + Span span505 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span505[index2] = new QuestStep(EInteractionType.Interact, 1040487u, new Vector3(-234.6991f, -224.38274f, 349.01953f), 956); + obj224.Steps = list333; + reference402 = obj224; + num++; + ref QuestSequence reference403 = ref span503[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence154 = questSequence; - num2 = 1; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference404 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep questStep64 = new QuestStep(EInteractionType.Duty, null, null, 956); - DutyOptions obj192 = new DutyOptions + QuestSequence questSequence119 = questSequence; + index2 = 1; + list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span506 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference404 = ref span506[num2]; + QuestStep questStep66 = new QuestStep(EInteractionType.Duty, null, null, 956); + DutyOptions obj225 = new DutyOptions { ContentFinderConditionId = 786u }; num3 = 1; - List list366 = new List(num3); - CollectionsMarshal.SetCount(list366, num3); - CollectionsMarshal.AsSpan(list366)[0] = "No VBM module"; - obj192.Notes = list366; - questStep64.DutyOptions = obj192; - reference404 = questStep64; - questSequence154.Steps = list4; + List list334 = new List(num3); + CollectionsMarshal.SetCount(list334, num3); + Span span507 = CollectionsMarshal.AsSpan(list334); + index3 = 0; + span507[index3] = "No VBM module"; + obj225.Notes = list334; + questStep66.DutyOptions = obj225; + reference404 = questStep66; + questSequence119.Steps = list4; reference403 = questSequence; - span151[3] = new QuestSequence + num++; + span503[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference405 = ref span151[4]; + num++; + ref QuestSequence reference405 = ref span503[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence155 = questSequence; + QuestSequence questSequence120 = questSequence; num2 = 1; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.Duty, null, null, 1030) + List list335 = new List(num2); + CollectionsMarshal.SetCount(list335, num2); + Span span508 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span508[index2] = new QuestStep(EInteractionType.Duty, null, null, 1030) { DutyOptions = new DutyOptions { @@ -297598,34 +361020,41 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 790u } }; - questSequence155.Steps = list367; + questSequence120.Steps = list335; reference405 = questSequence; - span151[5] = new QuestSequence + num++; + span503[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference406 = ref span151[6]; - QuestSequence obj193 = new QuestSequence + num++; + ref QuestSequence reference406 = ref span503[num]; + QuestSequence obj226 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list368 = new List(num2); - CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.Interact, 1040503u, new Vector3(-221.4237f, -224.3827f, 364.40063f), 956); - obj193.Steps = list368; - reference406 = obj193; - ref QuestSequence reference407 = ref span151[7]; + index2 = 1; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + Span span509 = CollectionsMarshal.AsSpan(list336); + num2 = 0; + span509[num2] = new QuestStep(EInteractionType.Interact, 1040503u, new Vector3(-221.4237f, -224.3827f, 364.40063f), 956); + obj226.Steps = list336; + reference406 = obj226; + num++; + ref QuestSequence reference407 = ref span503[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence156 = questSequence; + QuestSequence questSequence121 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference408 = ref CollectionsMarshal.AsSpan(list4)[0]; - QuestStep obj194 = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) + Span span510 = CollectionsMarshal.AsSpan(list4); + index2 = 0; + ref QuestStep reference408 = ref span510[index2]; + QuestStep obj227 = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -297634,17 +361063,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - num3 = 1; - List list369 = new List(num3); - CollectionsMarshal.SetCount(list369, num3); - CollectionsMarshal.AsSpan(list369)[0] = new DialogueChoice + index3 = 1; + List list337 = new List(index3); + CollectionsMarshal.SetCount(list337, index3); + Span span511 = CollectionsMarshal.AsSpan(list337); + num3 = 0; + span511[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMF111_04449_Q4_000_344") }; - obj194.DialogueChoices = list369; - reference408 = obj194; - questSequence156.Steps = list4; + obj227.DialogueChoices = list337; + reference408 = obj227; + questSequence121.Steps = list4; reference407 = questSequence; questRoot101.QuestSequence = list2; AddQuest(questId50, questRoot); @@ -297657,13 +361088,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -297671,21 +361105,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040276u, new Vector3(-99.076904f, 3.9334679f, 1.3884888f), 962) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040276u, new Vector3(-99.076904f, 3.9334679f, 1.3884888f), 962) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1039793u, new Vector3(3.3111572f, 40.2f, -231.64728f), 962) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1039793u, new Vector3(3.3111572f, 40.2f, -231.64728f), 962) { AethernetShortcut = new AethernetShortcut { @@ -297695,7 +361134,8 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -297703,18 +361143,23 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1039804u, new Vector3(-0.16790771f, 41.37599f, -146.65448f), 962); + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1039804u, new Vector3(-0.16790771f, 41.37599f, -146.65448f), 962); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1039818u, new Vector3(29.861816f, 5.1499996f, -65.445984f), 962) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Interact, 1039818u, new Vector3(29.861816f, 5.1499996f, -65.445984f), 962) { AethernetShortcut = new AethernetShortcut { @@ -297724,7 +361169,8 @@ public static class AssemblyQuestLoader }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -297732,42 +361178,50 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list7)[0]; + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + ref QuestStep reference6 = ref span7[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2012347u, new Vector3(31.143677f, 5.081238f, -62.485718f), 962); int num3 = 6; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span2 = CollectionsMarshal.AsSpan(list8); - span2[0] = new DialogueChoice + Span span8 = CollectionsMarshal.AsSpan(list8); + int num4 = 0; + span8[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q2_000_221") }; - span2[1] = new DialogueChoice + num4++; + span8[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q3_000_240"), Answer = new ExcelRef("TEXT_AKTKMG101_04450_A3_000_241") }; - span2[2] = new DialogueChoice + num4++; + span8[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q4_000_256"), Answer = new ExcelRef("TEXT_AKTKMG101_04450_A4_000_258") }; - span2[3] = new DialogueChoice + num4++; + span8[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q5_000_276"), Answer = new ExcelRef("TEXT_AKTKMG101_04450_A5_000_278") }; - span2[4] = new DialogueChoice + num4++; + span8[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q6_000_298"), Answer = new ExcelRef("TEXT_AKTKMG101_04450_A6_000_300") }; - span2[5] = new DialogueChoice + num4++; + span8[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q7_000_305"), @@ -297777,15 +361231,18 @@ public static class AssemblyQuestLoader reference6 = questStep; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference7 = ref span[5]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037047u, new Vector3(26.718506f, 5.1499996f, -65.87323f), 962) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037047u, new Vector3(26.718506f, 5.1499996f, -65.87323f), 962) { StopDistance = 5f }; @@ -297798,13 +361255,16 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = "liza"; + Span span10 = CollectionsMarshal.AsSpan(list10); + index = 0; + span10[index] = "liza"; questRoot2.Author = list10; - num = 6; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); - Span span3 = CollectionsMarshal.AsSpan(list11); - ref QuestSequence reference8 = ref span3[0]; + index = 6; + List list11 = new List(index); + CollectionsMarshal.SetCount(list11, index); + Span span11 = CollectionsMarshal.AsSpan(list11); + num = 0; + ref QuestSequence reference8 = ref span11[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -297812,18 +361272,23 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039818u, new Vector3(29.861816f, 5.1499996f, -65.445984f), 962); + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039818u, new Vector3(29.861816f, 5.1499996f, -65.445984f), 962); obj7.Steps = list12; reference8 = obj7; - ref QuestSequence reference9 = ref span3[1]; + num++; + ref QuestSequence reference9 = ref span11[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1040276u, new Vector3(-99.076904f, 3.9334679f, 1.3884888f), 962) + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.Interact, 1040276u, new Vector3(-99.076904f, 3.9334679f, 1.3884888f), 962) { AethernetShortcut = new AethernetShortcut { @@ -297833,7 +361298,8 @@ public static class AssemblyQuestLoader }; obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference10 = ref span3[2]; + num++; + ref QuestSequence reference10 = ref span11[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 @@ -297841,7 +361307,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1039820u, new Vector3(-87.02222f, -13.777f, 147.29529f), 962) + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.Interact, 1039820u, new Vector3(-87.02222f, -13.777f, 147.29529f), 962) { AethernetShortcut = new AethernetShortcut { @@ -297851,21 +361319,25 @@ public static class AssemblyQuestLoader }; obj9.Steps = list14; reference10 = obj9; - ref QuestSequence reference11 = ref span3[3]; + num++; + ref QuestSequence reference11 = ref span11[num]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1039821u, new Vector3(-86.96118f, -13.777f, 149.70618f), 962) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.Interact, 1039821u, new Vector3(-86.96118f, -13.777f, 149.70618f), 962) { StopDistance = 5f }; obj10.Steps = list15; reference11 = obj10; - ref QuestSequence reference12 = ref span3[4]; + num++; + ref QuestSequence reference12 = ref span11[num]; QuestSequence obj11 = new QuestSequence { Sequence = 4 @@ -297873,8 +361345,9 @@ public static class AssemblyQuestLoader num2 = 2; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span4 = CollectionsMarshal.AsSpan(list16); - span4[0] = new QuestStep(EInteractionType.Interact, 1039823u, new Vector3(-282.09363f, 19.003872f, 20.248657f), 962) + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.Interact, 1039823u, new Vector3(-282.09363f, 19.003872f, 20.248657f), 962) { AethernetShortcut = new AethernetShortcut { @@ -297882,7 +361355,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanStudium } }; - span4[1] = new QuestStep(EInteractionType.Interact, 1039825u, new Vector3(223.46838f, 24.898844f, -149.58423f), 962) + index2++; + span16[index2] = new QuestStep(EInteractionType.Interact, 1039825u, new Vector3(223.46838f, 24.898844f, -149.58423f), 962) { AethernetShortcut = new AethernetShortcut { @@ -297892,15 +361366,18 @@ public static class AssemblyQuestLoader }; obj11.Steps = list16; reference12 = obj11; - ref QuestSequence reference13 = ref span3[5]; + num++; + ref QuestSequence reference13 = ref span11[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list17)[0]; + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + ref QuestStep reference14 = ref span17[num2]; QuestStep obj13 = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 5f, @@ -297910,10 +361387,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = new DialogueChoice + num4 = 1; + List list18 = new List(num4); + CollectionsMarshal.SetCount(list18, num4); + Span span18 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span18[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG102_04451_Q1_000_143") @@ -297929,13 +361408,16 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "liza"; + Span span19 = CollectionsMarshal.AsSpan(list19); + index = 0; + span19[index] = "liza"; questRoot3.Author = list19; - num = 4; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span5 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference15 = ref span5[0]; + index = 4; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + Span span20 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference15 = ref span20[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -297943,22 +361425,26 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span21[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 5f }; obj14.Steps = list21; reference15 = obj14; - ref QuestSequence reference16 = ref span5[1]; + num++; + ref QuestSequence reference16 = ref span20[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span6 = CollectionsMarshal.AsSpan(list22); - span6[0] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) + index2 = 3; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) { TargetTerritoryId = (ushort)956, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, @@ -297970,17 +361456,20 @@ public static class AssemblyQuestLoader } } }; - span6[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + num2++; + span22[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true }; - span6[2] = new QuestStep(EInteractionType.Interact, 1039827u, new Vector3(-323.38446f, -224.2727f, 301.56396f), 956) + num2++; + span22[num2] = new QuestStep(EInteractionType.Interact, 1039827u, new Vector3(-323.38446f, -224.2727f, 301.56396f), 956) { Fly = false }; obj15.Steps = list22; reference16 = obj15; - ref QuestSequence reference17 = ref span5[2]; + num++; + ref QuestSequence reference17 = ref span20[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -297988,12 +361477,16 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list23)[0]; + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + ref QuestStep reference18 = ref span23[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1039847u, new Vector3(-334.92035f, -224.19772f, 311.9402f), 956); num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = new DialogueChoice + Span span24 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span24[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG103_04452_Q1_000_183") @@ -298002,15 +361495,18 @@ public static class AssemblyQuestLoader reference18 = questStep2; obj16.Steps = list23; reference17 = obj16; - ref QuestSequence reference19 = ref span5[3]; + num++; + ref QuestSequence reference19 = ref span20[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039852u, new Vector3(-376.1197f, 80.7959f, 607.6904f), 960) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039852u, new Vector3(-376.1197f, 80.7959f, 607.6904f), 960) { StopDistance = 5f }; @@ -298023,13 +361519,16 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "liza"; + Span span26 = CollectionsMarshal.AsSpan(list26); + index = 0; + span26[index] = "liza"; questRoot4.Author = list26; - num = 6; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span7 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span7[0]; + index = 6; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + Span span27 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span27[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -298037,24 +361536,30 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039853u, new Vector3(-377.7066f, 80.86001f, 606.53076f), 960) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039853u, new Vector3(-377.7066f, 80.86001f, 606.53076f), 960) { StopDistance = 7f }; obj18.Steps = list28; reference20 = obj18; - ref QuestSequence reference21 = ref span7[1]; + num++; + ref QuestSequence reference21 = ref span27[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1039860u, new Vector3(-31.11322f, 60.569f, 551.0491f), 960); + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.Interact, 1039860u, new Vector3(-31.11322f, 60.569f, 551.0491f), 960); obj19.Steps = list29; reference21 = obj19; - ref QuestSequence reference22 = ref span7[2]; + num++; + ref QuestSequence reference22 = ref span27[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 @@ -298062,63 +361567,88 @@ public static class AssemblyQuestLoader num2 = 3; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span8 = CollectionsMarshal.AsSpan(list30); - ref QuestStep reference23 = ref span8[0]; + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + ref QuestStep reference23 = ref span30[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2012351u, new Vector3(-11.490112f, 61.905884f, 533.6842f), 960); - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span9 = CollectionsMarshal.AsSpan(list31); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list31 = new List(num4); + CollectionsMarshal.SetCount(list31, num4); + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list31; reference23 = questStep3; - ref QuestStep reference24 = ref span8[1]; + index2++; + ref QuestStep reference24 = ref span30[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1040292u, new Vector3(6.5460815f, 60.71497f, 554.4059f), 960); num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span10 = CollectionsMarshal.AsSpan(list32); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span32 = CollectionsMarshal.AsSpan(list32); + num4 = 0; + span32[num4] = null; + num4++; + span32[num4] = null; + num4++; + span32[num4] = null; + num4++; + span32[num4] = null; + num4++; + span32[num4] = null; + num4++; + span32[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list32; reference24 = questStep4; - ref QuestStep reference25 = ref span8[2]; + index2++; + ref QuestStep reference25 = ref span30[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1040293u, new Vector3(56.77881f, 99.37216f, 665.5221f), 960); - num3 = 6; - List list33 = new List(num3); - CollectionsMarshal.SetCount(list33, num3); - Span span11 = CollectionsMarshal.AsSpan(list33); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + Span span33 = CollectionsMarshal.AsSpan(list33); + num3 = 0; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = null; + num3++; + span33[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list33; reference25 = questStep5; obj20.Steps = list30; reference22 = obj20; - ref QuestSequence reference26 = ref span7[3]; + num++; + ref QuestSequence reference26 = ref span27[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1039860u, new Vector3(-31.11322f, 60.569f, 551.0491f), 960); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.Interact, 1039860u, new Vector3(-31.11322f, 60.569f, 551.0491f), 960); obj21.Steps = list34; reference26 = obj21; - ref QuestSequence reference27 = ref span7[4]; + num++; + ref QuestSequence reference27 = ref span27[num]; QuestSequence obj22 = new QuestSequence { Sequence = 4 @@ -298126,18 +361656,23 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1040294u, new Vector3(-373.00684f, 90.107704f, 460.99023f), 960); + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.Interact, 1040294u, new Vector3(-373.00684f, 90.107704f, 460.99023f), 960); obj22.Steps = list35; reference27 = obj22; - ref QuestSequence reference28 = ref span7[5]; + num++; + ref QuestSequence reference28 = ref span27[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039769u, new Vector3(-482.9328f, 73.09421f, 310.9331f), 960); + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039769u, new Vector3(-482.9328f, 73.09421f, 310.9331f), 960); obj23.Steps = list36; reference28 = obj23; questRoot4.QuestSequence = list27; @@ -298147,13 +361682,16 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "liza"; + Span span37 = CollectionsMarshal.AsSpan(list37); + index = 0; + span37[index] = "liza"; questRoot5.Author = list37; - num = 7; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - Span span12 = CollectionsMarshal.AsSpan(list38); - ref QuestSequence reference29 = ref span12[0]; + index = 7; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + Span span38 = CollectionsMarshal.AsSpan(list38); + num = 0; + ref QuestSequence reference29 = ref span38[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 @@ -298161,22 +361699,26 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039772u, new Vector3(-476.2188f, 73.47535f, 309.86487f), 960) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039772u, new Vector3(-476.2188f, 73.47535f, 309.86487f), 960) { StopDistance = 7f }; obj24.Steps = list39; reference29 = obj24; - ref QuestSequence reference30 = ref span12[1]; + num++; + ref QuestSequence reference30 = ref span38[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span13 = CollectionsMarshal.AsSpan(list40); - ref QuestStep reference31 = ref span13[0]; + index2 = 4; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + ref QuestStep reference31 = ref span40[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 1038010u, new Vector3(-517.9065f, 72.5362f, 332.23462f), 960) { StopDistance = 8f @@ -298184,38 +361726,53 @@ public static class AssemblyQuestLoader num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span14 = CollectionsMarshal.AsSpan(list41); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span41 = CollectionsMarshal.AsSpan(list41); + num4 = 0; + span41[num4] = null; + num4++; + span41[num4] = null; + num4++; + span41[num4] = null; + num4++; + span41[num4] = null; + num4++; + span41[num4] = null; + num4++; + span41[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj26.CompletionQuestVariablesFlags = list41; reference31 = obj26; - ref QuestStep reference32 = ref span13[1]; + num2++; + ref QuestStep reference32 = ref span40[num2]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 1038008u, new Vector3(-603.9369f, 78.6382f, 303.8529f), 960) { StopDistance = 8f }; - num3 = 6; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span15 = CollectionsMarshal.AsSpan(list42); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list42 = new List(num4); + CollectionsMarshal.SetCount(list42, num4); + Span span42 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj27.CompletionQuestVariablesFlags = list42; reference32 = obj27; - span13[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 960) + num2++; + span40[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 960) { StopDistance = 10f, Aetheryte = EAetheryteLocation.UltimaThuleReahTahra }; - ref QuestStep reference33 = ref span13[3]; + num2++; + ref QuestStep reference33 = ref span40[num2]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 1038006u, new Vector3(-490.6844f, 88.871994f, 207.35486f), 960) { StopDistance = 8f @@ -298223,18 +361780,25 @@ public static class AssemblyQuestLoader num3 = 6; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - Span span16 = CollectionsMarshal.AsSpan(list43); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span43 = CollectionsMarshal.AsSpan(list43); + num4 = 0; + span43[num4] = null; + num4++; + span43[num4] = null; + num4++; + span43[num4] = null; + num4++; + span43[num4] = null; + num4++; + span43[num4] = null; + num4++; + span43[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj28.CompletionQuestVariablesFlags = list43; reference33 = obj28; obj25.Steps = list40; reference30 = obj25; - ref QuestSequence reference34 = ref span12[2]; + num++; + ref QuestSequence reference34 = ref span38[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -298242,63 +361806,88 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Interact, 1039775u, new Vector3(-469.3523f, 55.880516f, -36.66742f), 960); + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.Interact, 1039775u, new Vector3(-469.3523f, 55.880516f, -36.66742f), 960); obj29.Steps = list44; reference34 = obj29; - ref QuestSequence reference35 = ref span12[3]; + num++; + ref QuestSequence reference35 = ref span38[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - Span span17 = CollectionsMarshal.AsSpan(list45); - ref QuestStep reference36 = ref span17[0]; + index2 = 3; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + ref QuestStep reference36 = ref span45[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2012283u, new Vector3(-465.1103f, 56.47351f, -30.71643f), 960); - num3 = 6; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - Span span18 = CollectionsMarshal.AsSpan(list46); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list46 = new List(num4); + CollectionsMarshal.SetCount(list46, num4); + Span span46 = CollectionsMarshal.AsSpan(list46); + num3 = 0; + span46[num3] = null; + num3++; + span46[num3] = null; + num3++; + span46[num3] = null; + num3++; + span46[num3] = null; + num3++; + span46[num3] = null; + num3++; + span46[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list46; reference36 = questStep6; - ref QuestStep reference37 = ref span17[1]; + num2++; + ref QuestStep reference37 = ref span45[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2012281u, new Vector3(-472.25153f, 56.26001f, -20.676025f), 960); num3 = 6; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - Span span19 = CollectionsMarshal.AsSpan(list47); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span47 = CollectionsMarshal.AsSpan(list47); + num4 = 0; + span47[num4] = null; + num4++; + span47[num4] = null; + num4++; + span47[num4] = null; + num4++; + span47[num4] = null; + num4++; + span47[num4] = null; + num4++; + span47[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list47; reference37 = questStep7; - ref QuestStep reference38 = ref span17[2]; + num2++; + ref QuestStep reference38 = ref span45[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2012282u, new Vector3(-479.3927f, 56.290405f, -33.676758f), 960); - num3 = 6; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - Span span20 = CollectionsMarshal.AsSpan(list48); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list48 = new List(num4); + CollectionsMarshal.SetCount(list48, num4); + Span span48 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = null; + num3++; + span48[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list48; reference38 = questStep8; obj30.Steps = list45; reference35 = obj30; - ref QuestSequence reference39 = ref span12[4]; + num++; + ref QuestSequence reference39 = ref span38[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -298306,18 +361895,23 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 2012284u, new Vector3(-474.32672f, 56.198975f, -41.031555f), 960); + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span49[index2] = new QuestStep(EInteractionType.Interact, 2012284u, new Vector3(-474.32672f, 56.198975f, -41.031555f), 960); obj31.Steps = list49; reference39 = obj31; - ref QuestSequence reference40 = ref span12[5]; + num++; + ref QuestSequence reference40 = ref span38[num]; QuestSequence obj32 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list50)[0]; + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + ref QuestStep reference41 = ref span50[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, 1039776u, new Vector3(-572.2896f, 64.78333f, -200.3357f), 960) { StopDistance = 1f, @@ -298326,12 +361920,15 @@ public static class AssemblyQuestLoader num3 = 1; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = 14002u; + Span span51 = CollectionsMarshal.AsSpan(list51); + num4 = 0; + span51[num4] = 14002u; obj33.KillEnemyDataIds = list51; reference41 = obj33; obj32.Steps = list50; reference40 = obj32; - ref QuestSequence reference42 = ref span12[6]; + num++; + ref QuestSequence reference42 = ref span38[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -298339,7 +361936,9 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039776u, new Vector3(-572.2896f, 64.78333f, -200.3357f), 960) + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039776u, new Vector3(-572.2896f, 64.78333f, -200.3357f), 960) { StopDistance = 8f }; @@ -298352,24 +361951,30 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "liza"; + Span span53 = CollectionsMarshal.AsSpan(list53); + index = 0; + span53[index] = "liza"; questRoot6.Author = list53; - num = 5; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span21 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference43 = ref span21[0]; + index = 5; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + Span span54 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference43 = ref span54[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041214u, new Vector3(-575.00574f, 65.25543f, -190.02063f), 960); + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041214u, new Vector3(-575.00574f, 65.25543f, -190.02063f), 960); obj35.Steps = list55; reference43 = obj35; - ref QuestSequence reference44 = ref span21[1]; + num++; + ref QuestSequence reference44 = ref span54[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -298377,27 +361982,33 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1040295u, new Vector3(-504.0513f, 73.32458f, 273.9757f), 960) + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.Interact, 1040295u, new Vector3(-504.0513f, 73.32458f, 273.9757f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; obj36.Steps = list56; reference44 = obj36; - ref QuestSequence reference45 = ref span21[2]; + num++; + ref QuestSequence reference45 = ref span54[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1040306u, new Vector3(-772.3049f, 59.814697f, 55.954834f), 960) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.Interact, 1040306u, new Vector3(-772.3049f, 59.814697f, 55.954834f), 960) { StopDistance = 8f }; obj37.Steps = list57; reference45 = obj37; - ref QuestSequence reference46 = ref span21[3]; + num++; + ref QuestSequence reference46 = ref span54[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 @@ -298405,20 +362016,25 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1040301u, new Vector3(-620.44714f, 92.1207f, -203.35706f), 960); + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.Interact, 1040301u, new Vector3(-620.44714f, 92.1207f, -203.35706f), 960); obj38.Steps = list58; reference46 = obj38; - ref QuestSequence reference47 = ref span21[4]; + num++; + ref QuestSequence reference47 = ref span54[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - Span span22 = CollectionsMarshal.AsSpan(list59); - span22[0] = new QuestStep(EInteractionType.Interact, 2012544u, new Vector3(-608.7807f, 92.12769f, -208f), 960); - span22[1] = new QuestStep(EInteractionType.CompleteQuest, 2012429u, new Vector3(-471.27496f, 232.19641f, -253.10144f), 960) + index2 = 2; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.Interact, 2012544u, new Vector3(-608.7807f, 92.12769f, -208f), 960); + num2++; + span59[num2] = new QuestStep(EInteractionType.CompleteQuest, 2012429u, new Vector3(-471.27496f, 232.19641f, -253.10144f), 960) { StopDistance = 5f, Mount = false @@ -298432,13 +362048,16 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "liza"; + Span span60 = CollectionsMarshal.AsSpan(list60); + index = 0; + span60[index] = "liza"; questRoot7.Author = list60; - num = 7; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span23 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference48 = ref span23[0]; + index = 7; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference48 = ref span61[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -298446,24 +362065,30 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040307u, new Vector3(-469.29126f, 232.2548f, -252.8573f), 960) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040307u, new Vector3(-469.29126f, 232.2548f, -252.8573f), 960) { StopDistance = 5f }; obj40.Steps = list62; reference48 = obj40; - ref QuestSequence reference49 = ref span23[1]; + num++; + ref QuestSequence reference49 = ref span61[num]; QuestSequence obj41 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1040315u, new Vector3(-345.87628f, 254.66968f, -277.27173f), 960); + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.Interact, 1040315u, new Vector3(-345.87628f, 254.66968f, -277.27173f), 960); obj41.Steps = list63; reference49 = obj41; - ref QuestSequence reference50 = ref span23[2]; + num++; + ref QuestSequence reference50 = ref span61[num]; QuestSequence obj42 = new QuestSequence { Sequence = 2 @@ -298471,27 +362096,34 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1040313u, new Vector3(-339.10126f, 255.53401f, -281.75793f), 960); + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.Interact, 1040313u, new Vector3(-339.10126f, 255.53401f, -281.75793f), 960); obj42.Steps = list64; reference50 = obj42; - ref QuestSequence reference51 = ref span23[3]; + num++; + ref QuestSequence reference51 = ref span61[num]; QuestSequence obj43 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - Span span24 = CollectionsMarshal.AsSpan(list65); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-308.91977f, 262.7334f, -332.3608f), 960); - span24[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012030u, new Vector3(-333.547f, 270.83228f, -361.50153f), 960) + index2 = 3; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span65[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-308.91977f, 262.7334f, -332.3608f), 960); + num2++; + span65[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012030u, new Vector3(-333.547f, 270.83228f, -361.50153f), 960) { AetherCurrentId = 2818389u }; - span24[2] = new QuestStep(EInteractionType.Interact, 1040317u, new Vector3(-200.57983f, 268.01642f, -312.58112f), 960); + num2++; + span65[num2] = new QuestStep(EInteractionType.Interact, 1040317u, new Vector3(-200.57983f, 268.01642f, -312.58112f), 960); obj43.Steps = list65; reference51 = obj43; - ref QuestSequence reference52 = ref span23[4]; + num++; + ref QuestSequence reference52 = ref span61[num]; QuestSequence obj44 = new QuestSequence { Sequence = 4 @@ -298499,37 +362131,48 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1040318u, new Vector3(29.984009f, 270.45825f, -535.0271f), 960); + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span66[index2] = new QuestStep(EInteractionType.Interact, 1040318u, new Vector3(29.984009f, 270.45825f, -535.0271f), 960); obj44.Steps = list66; reference52 = obj44; - ref QuestSequence reference53 = ref span23[5]; + num++; + ref QuestSequence reference53 = ref span61[num]; QuestSequence obj45 = new QuestSequence { Sequence = 5 }; - num2 = 6; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - Span span25 = CollectionsMarshal.AsSpan(list67); - ref QuestStep reference54 = ref span25[0]; + index2 = 6; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + ref QuestStep reference54 = ref span67[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.10138f, 269.016f, -591.87366f), 960); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - Span span26 = CollectionsMarshal.AsSpan(list68); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list68 = new List(num4); + CollectionsMarshal.SetCount(list68, num4); + Span span68 = CollectionsMarshal.AsSpan(list68); + num3 = 0; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list68; skipConditions.StepIf = skipStepConditions; questStep9.SkipConditions = skipConditions; reference54 = questStep9; - ref QuestStep reference55 = ref span25[1]; + num2++; + ref QuestStep reference55 = ref span67[num2]; QuestStep obj46 = new QuestStep(EInteractionType.Interact, 2012354u, new Vector3(30.777344f, 272.51086f, -600.7019f), 960) { StopDistance = 4f, @@ -298538,38 +362181,53 @@ public static class AssemblyQuestLoader num3 = 6; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - Span span27 = CollectionsMarshal.AsSpan(list69); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span69 = CollectionsMarshal.AsSpan(list69); + num4 = 0; + span69[num4] = null; + num4++; + span69[num4] = null; + num4++; + span69[num4] = null; + num4++; + span69[num4] = null; + num4++; + span69[num4] = null; + num4++; + span69[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj46.CompletionQuestVariablesFlags = list69; reference55 = obj46; - ref QuestStep reference56 = ref span25[2]; + num2++; + ref QuestStep reference56 = ref span67[num2]; QuestStep obj47 = new QuestStep(EInteractionType.Interact, 2012355u, new Vector3(64.10315f, 272.4497f, -616.4492f), 960) { StopDistance = 4f }; - num3 = 6; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - Span span28 = CollectionsMarshal.AsSpan(list70); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list70 = new List(num4); + CollectionsMarshal.SetCount(list70, num4); + Span span70 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span70[num3] = null; + num3++; + span70[num3] = null; + num3++; + span70[num3] = null; + num3++; + span70[num3] = null; + num3++; + span70[num3] = null; + num3++; + span70[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj47.CompletionQuestVariablesFlags = list70; reference56 = obj47; - span25[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 960) + num2++; + span67[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 960) { StopDistance = 8f, Aetheryte = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; - ref QuestStep reference57 = ref span25[4]; + num2++; + ref QuestStep reference57 = ref span67[num2]; QuestStep obj48 = new QuestStep(EInteractionType.Interact, 2012356u, new Vector3(115.526f, 272.99915f, -617.853f), 960) { StopDistance = 4f @@ -298577,35 +362235,49 @@ public static class AssemblyQuestLoader num3 = 6; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span29 = CollectionsMarshal.AsSpan(list71); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span71 = CollectionsMarshal.AsSpan(list71); + num4 = 0; + span71[num4] = null; + num4++; + span71[num4] = null; + num4++; + span71[num4] = null; + num4++; + span71[num4] = null; + num4++; + span71[num4] = null; + num4++; + span71[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj48.CompletionQuestVariablesFlags = list71; reference57 = obj48; - ref QuestStep reference58 = ref span25[5]; + num2++; + ref QuestStep reference58 = ref span67[num2]; QuestStep obj49 = new QuestStep(EInteractionType.Interact, 2012357u, new Vector3(151.59839f, 272.9381f, -592.5841f), 960) { StopDistance = 4f }; - num3 = 6; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span30 = CollectionsMarshal.AsSpan(list72); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list72 = new List(num4); + CollectionsMarshal.SetCount(list72, num4); + Span span72 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj49.CompletionQuestVariablesFlags = list72; reference58 = obj49; obj45.Steps = list67; reference53 = obj45; - ref QuestSequence reference59 = ref span23[6]; + num++; + ref QuestSequence reference59 = ref span61[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue @@ -298613,7 +362285,9 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040318u, new Vector3(29.984009f, 270.45825f, -535.0271f), 960); + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040318u, new Vector3(29.984009f, 270.45825f, -535.0271f), 960); obj50.Steps = list73; reference59 = obj50; questRoot7.QuestSequence = list61; @@ -298623,24 +362297,30 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "liza"; + Span span74 = CollectionsMarshal.AsSpan(list74); + index = 0; + span74[index] = "liza"; questRoot8.Author = list74; - num = 5; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span31 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference60 = ref span31[0]; + index = 5; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + Span span75 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference60 = ref span75[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040318u, new Vector3(29.984009f, 270.45825f, -535.0271f), 960); + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040318u, new Vector3(29.984009f, 270.45825f, -535.0271f), 960); obj51.Steps = list76; reference60 = obj51; - ref QuestSequence reference61 = ref span31[1]; + num++; + ref QuestSequence reference61 = ref span75[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -298648,21 +362328,27 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1040329u, new Vector3(75.69995f, 268.99997f, -528.3436f), 960); + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.Interact, 1040329u, new Vector3(75.69995f, 268.99997f, -528.3436f), 960); obj52.Steps = list77; reference61 = obj52; - ref QuestSequence reference62 = ref span31[2]; + num++; + ref QuestSequence reference62 = ref span75[num]; QuestSequence obj53 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 2012358u, new Vector3(84.97742f, 269.06226f, -493.00375f), 960); + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.Interact, 2012358u, new Vector3(84.97742f, 269.06226f, -493.00375f), 960); obj53.Steps = list78; reference62 = obj53; - ref QuestSequence reference63 = ref span31[3]; + num++; + ref QuestSequence reference63 = ref span75[num]; QuestSequence obj54 = new QuestSequence { Sequence = 3 @@ -298670,18 +362356,23 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 2012358u, new Vector3(84.97742f, 269.06226f, -493.00375f), 960); + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.Interact, 2012358u, new Vector3(84.97742f, 269.06226f, -493.00375f), 960); obj54.Steps = list79; reference63 = obj54; - ref QuestSequence reference64 = ref span31[4]; + num++; + ref QuestSequence reference64 = ref span75[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039759u, new Vector3(86.778076f, 269.0949f, -491.66098f), 960) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039759u, new Vector3(86.778076f, 269.0949f, -491.66098f), 960) { StopDistance = 7f }; @@ -298694,13 +362385,16 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - CollectionsMarshal.AsSpan(list81)[0] = "liza"; + Span span81 = CollectionsMarshal.AsSpan(list81); + index = 0; + span81[index] = "liza"; questRoot9.Author = list81; - num = 4; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - Span span32 = CollectionsMarshal.AsSpan(list82); - ref QuestSequence reference65 = ref span32[0]; + index = 4; + List list82 = new List(index); + CollectionsMarshal.SetCount(list82, index); + Span span82 = CollectionsMarshal.AsSpan(list82); + num = 0; + ref QuestSequence reference65 = ref span82[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -298708,24 +362402,30 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039760u, new Vector3(82.65808f, 269.0903f, -490.44025f), 960) + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039760u, new Vector3(82.65808f, 269.0903f, -490.44025f), 960) { StopDistance = 7f }; obj56.Steps = list83; reference65 = obj56; - ref QuestSequence reference66 = ref span32[1]; + num++; + ref QuestSequence reference66 = ref span82[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1040338u, new Vector3(-344.44196f, 263.13083f, -463.70648f), 960); + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.Interact, 1040338u, new Vector3(-344.44196f, 263.13083f, -463.70648f), 960); obj57.Steps = list84; reference66 = obj57; - ref QuestSequence reference67 = ref span32[2]; + num++; + ref QuestSequence reference67 = ref span82[num]; QuestSequence obj58 = new QuestSequence { Sequence = 2 @@ -298733,29 +362433,35 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1040339u, new Vector3(-341.78687f, 263.37482f, -461.44812f), 960); + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.Interact, 1040339u, new Vector3(-341.78687f, 263.37482f, -461.44812f), 960); obj58.Steps = list85; reference67 = obj58; - ref QuestSequence reference68 = ref span32[3]; + num++; + ref QuestSequence reference68 = ref span82[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - Span span33 = CollectionsMarshal.AsSpan(list86); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(48.215565f, 269.00882f, -703.63995f), 960) + index2 = 3; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(48.215565f, 269.00882f, -703.63995f), 960) { Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; - span33[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012031u, new Vector3(13.107483f, 275.56262f, -756.40497f), 960) + num2++; + span86[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012031u, new Vector3(13.107483f, 275.56262f, -756.40497f), 960) { DisableNavmesh = true, AetherCurrentId = 2818390u }; - span33[2] = new QuestStep(EInteractionType.CompleteQuest, 1039778u, new Vector3(184.03906f, 269.03912f, -637.6288f), 960); + num2++; + span86[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039778u, new Vector3(184.03906f, 269.03912f, -637.6288f), 960); obj59.Steps = list86; reference68 = obj59; questRoot9.QuestSequence = list82; @@ -298765,13 +362471,16 @@ public static class AssemblyQuestLoader num = 1; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - CollectionsMarshal.AsSpan(list87)[0] = "liza"; + Span span87 = CollectionsMarshal.AsSpan(list87); + index = 0; + span87[index] = "liza"; questRoot10.Author = list87; - num = 10; - List list88 = new List(num); - CollectionsMarshal.SetCount(list88, num); - Span span34 = CollectionsMarshal.AsSpan(list88); - ref QuestSequence reference69 = ref span34[0]; + index = 10; + List list88 = new List(index); + CollectionsMarshal.SetCount(list88, index); + Span span88 = CollectionsMarshal.AsSpan(list88); + num = 0; + ref QuestSequence reference69 = ref span88[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -298779,33 +362488,40 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039782u, new Vector3(183.12354f, 269.0203f, -633.5393f), 960) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039782u, new Vector3(183.12354f, 269.0203f, -633.5393f), 960) { StopDistance = 6f }; obj60.Steps = list89; reference69 = obj60; - ref QuestSequence reference70 = ref span34[1]; + num++; + ref QuestSequence reference70 = ref span88[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span35 = CollectionsMarshal.AsSpan(list90); - span35[0] = new QuestStep(EInteractionType.AcceptQuest, 1040876u, new Vector3(49.42395f, 269.25684f, -523.2472f), 960) + index2 = 3; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040876u, new Vector3(49.42395f, 269.25684f, -523.2472f), 960) { PickUpQuestId = new QuestId(4342) }; - span35[1] = new QuestStep(EInteractionType.AcceptQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960) + num2++; + span90[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960) { PickUpQuestId = new QuestId(4346) }; - span35[2] = new QuestStep(EInteractionType.Interact, 1039787u, new Vector3(434.37854f, 284.02585f, -328.51147f), 960); + num2++; + span90[num2] = new QuestStep(EInteractionType.Interact, 1039787u, new Vector3(434.37854f, 284.02585f, -328.51147f), 960); obj61.Steps = list90; reference70 = obj61; - ref QuestSequence reference71 = ref span34[2]; + num++; + ref QuestSequence reference71 = ref span88[num]; QuestSequence obj62 = new QuestSequence { Sequence = 2 @@ -298813,46 +362529,56 @@ public static class AssemblyQuestLoader num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span36 = CollectionsMarshal.AsSpan(list91); - ref QuestStep reference72 = ref span36[0]; + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + ref QuestStep reference72 = ref span91[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2012794u, new Vector3(440.7262f, 285.29785f, -319.50867f), 960); num3 = 1; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = new DialogueChoice + Span span92 = CollectionsMarshal.AsSpan(list92); + num4 = 0; + span92[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG110_04459_Q1_000_041") }; questStep10.DialogueChoices = list92; reference72 = questStep10; - ref QuestStep reference73 = ref span36[1]; + index2++; + ref QuestStep reference73 = ref span91[index2]; QuestStep obj63 = new QuestStep(EInteractionType.Combat, 2012286u, new Vector3(506.98096f, 439.68872f, 157f), 960) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - Span span37 = CollectionsMarshal.AsSpan(list93); - span37[0] = 14000u; - span37[1] = 14001u; + num4 = 2; + List list93 = new List(num4); + CollectionsMarshal.SetCount(list93, num4); + Span span93 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span93[num3] = 14000u; + num3++; + span93[num3] = 14001u; obj63.KillEnemyDataIds = list93; reference73 = obj63; obj62.Steps = list91; reference71 = obj62; - ref QuestSequence reference74 = ref span34[3]; + num++; + ref QuestSequence reference74 = ref span88[num]; QuestSequence obj64 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 2012287u, new Vector3(506.98096f, 439.68872f, 157f), 960); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.Interact, 2012287u, new Vector3(506.98096f, 439.68872f, 157f), 960); obj64.Steps = list94; reference74 = obj64; - ref QuestSequence reference75 = ref span34[4]; + num++; + ref QuestSequence reference75 = ref span88[num]; QuestSequence obj65 = new QuestSequence { Sequence = 4 @@ -298860,24 +362586,30 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1039790u, new Vector3(508.53735f, 439.695f, 155.59619f), 960) + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.Interact, 1039790u, new Vector3(508.53735f, 439.695f, 155.59619f), 960) { StopDistance = 5f }; obj65.Steps = list95; reference75 = obj65; - ref QuestSequence reference76 = ref span34[5]; + num++; + ref QuestSequence reference76 = ref span88[num]; QuestSequence obj66 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 2012288u, new Vector3(493.33936f, 439.68872f, 174.9447f), 960); + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.Interact, 2012288u, new Vector3(493.33936f, 439.68872f, 174.9447f), 960); obj66.Steps = list96; reference76 = obj66; - ref QuestSequence reference77 = ref span34[6]; + num++; + ref QuestSequence reference77 = ref span88[num]; QuestSequence obj67 = new QuestSequence { Sequence = 6 @@ -298885,7 +362617,9 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list97)[0]; + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + ref QuestStep reference78 = ref span97[index2]; QuestStep obj68 = new QuestStep(EInteractionType.Combat, 2012289u, new Vector3(490.44006f, 439.68872f, 191.30237f), 960) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -298893,28 +362627,34 @@ public static class AssemblyQuestLoader num3 = 1; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = 13999u; + Span span98 = CollectionsMarshal.AsSpan(list98); + num4 = 0; + span98[num4] = 13999u; obj68.KillEnemyDataIds = list98; reference78 = obj68; obj67.Steps = list97; reference77 = obj67; - ref QuestSequence reference79 = ref span34[7]; + num++; + ref QuestSequence reference79 = ref span88[num]; QuestSequence obj69 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - Span span38 = CollectionsMarshal.AsSpan(list99); - span38[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012033u, new Vector3(539.26904f, 437.9796f, 239.39868f), 960) + index2 = 2; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012033u, new Vector3(539.26904f, 437.9796f, 239.39868f), 960) { AetherCurrentId = 2818392u }; - span38[1] = new QuestStep(EInteractionType.Interact, 1039791u, new Vector3(502.98303f, 436.99966f, 308.97986f), 960); + num2++; + span99[num2] = new QuestStep(EInteractionType.Interact, 1039791u, new Vector3(502.98303f, 436.99966f, 308.97986f), 960); obj69.Steps = list99; reference79 = obj69; - ref QuestSequence reference80 = ref span34[8]; + num++; + ref QuestSequence reference80 = ref span88[num]; QuestSequence obj70 = new QuestSequence { Sequence = 8 @@ -298922,66 +362662,90 @@ public static class AssemblyQuestLoader num2 = 3; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span39 = CollectionsMarshal.AsSpan(list100); - ref QuestStep reference81 = ref span39[0]; + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + ref QuestStep reference81 = ref span100[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1038039u, new Vector3(521.9348f, 436.99805f, 329.76257f), 960); - num3 = 6; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span40 = CollectionsMarshal.AsSpan(list101); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list101 = new List(num4); + CollectionsMarshal.SetCount(list101, num4); + Span span101 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span101[num3] = null; + num3++; + span101[num3] = null; + num3++; + span101[num3] = null; + num3++; + span101[num3] = null; + num3++; + span101[num3] = null; + num3++; + span101[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list101; reference81 = questStep11; - ref QuestStep reference82 = ref span39[1]; + index2++; + ref QuestStep reference82 = ref span100[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1038041u, new Vector3(517.54016f, 436.99878f, 345.44885f), 960); num3 = 6; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span41 = CollectionsMarshal.AsSpan(list102); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span102 = CollectionsMarshal.AsSpan(list102); + num4 = 0; + span102[num4] = null; + num4++; + span102[num4] = null; + num4++; + span102[num4] = null; + num4++; + span102[num4] = null; + num4++; + span102[num4] = null; + num4++; + span102[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list102; reference82 = questStep12; - ref QuestStep reference83 = ref span39[2]; + index2++; + ref QuestStep reference83 = ref span100[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1038045u, new Vector3(504.6615f, 437.1449f, 347.64624f), 960); - num3 = 6; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - Span span42 = CollectionsMarshal.AsSpan(list103); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list103 = new List(num4); + CollectionsMarshal.SetCount(list103, num4); + Span span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list103; reference83 = questStep13; obj70.Steps = list100; reference80 = obj70; - ref QuestSequence reference84 = ref span34[9]; + num++; + ref QuestSequence reference84 = ref span88[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - Span span43 = CollectionsMarshal.AsSpan(list104); - span43[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 960) + index2 = 2; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 960) { StopDistance = 5f, Aetheryte = EAetheryteLocation.UltimaThuleBaseOmicron }; - span43[1] = new QuestStep(EInteractionType.CompleteQuest, 1039791u, new Vector3(502.98303f, 436.99966f, 308.97986f), 960); + num2++; + span104[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039791u, new Vector3(502.98303f, 436.99966f, 308.97986f), 960); obj71.Steps = list104; reference84 = obj71; questRoot10.QuestSequence = list88; @@ -298991,13 +362755,16 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - CollectionsMarshal.AsSpan(list105)[0] = "liza"; + Span span105 = CollectionsMarshal.AsSpan(list105); + index = 0; + span105[index] = "liza"; questRoot11.Author = list105; - num = 7; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - Span span44 = CollectionsMarshal.AsSpan(list106); - ref QuestSequence reference85 = ref span44[0]; + index = 7; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + Span span106 = CollectionsMarshal.AsSpan(list106); + num = 0; + ref QuestSequence reference85 = ref span106[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -299005,31 +362772,38 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040340u, new Vector3(544.51807f, 437.9998f, 301.4419f), 960) + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040340u, new Vector3(544.51807f, 437.9998f, 301.4419f), 960) { StopDistance = 5f }; obj72.Steps = list107; reference85 = obj72; - ref QuestSequence reference86 = ref span44[1]; + num++; + ref QuestSequence reference86 = ref span106[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - Span span45 = CollectionsMarshal.AsSpan(list108); - span45[0] = new QuestStep(EInteractionType.AcceptQuest, 1041656u, new Vector3(510.3075f, 436.9997f, 307.17932f), 960) + index2 = 3; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041656u, new Vector3(510.3075f, 436.9997f, 307.17932f), 960) { PickUpQuestId = new QuestId(4355) }; - ref QuestStep reference87 = ref span45[1]; + num2++; + ref QuestStep reference87 = ref span108[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.AcceptQuest, 1038043u, new Vector3(470.4203f, 437.00183f, 315.81592f), 960); num3 = 1; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - CollectionsMarshal.AsSpan(list109)[0] = new DialogueChoice + Span span109 = CollectionsMarshal.AsSpan(list109); + num4 = 0; + span109[num4] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/043/AktKzk001_04354", @@ -299039,10 +362813,12 @@ public static class AssemblyQuestLoader questStep14.DialogueChoices = list109; questStep14.PickUpQuestId = new QuestId(4354); reference87 = questStep14; - span45[2] = new QuestStep(EInteractionType.Interact, 1040343u, new Vector3(624.3839f, 441.9763f, 437.33875f), 960); + num2++; + span108[num2] = new QuestStep(EInteractionType.Interact, 1040343u, new Vector3(624.3839f, 441.9763f, 437.33875f), 960); obj73.Steps = list108; reference86 = obj73; - ref QuestSequence reference88 = ref span44[2]; + num++; + ref QuestSequence reference88 = ref span106[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -299050,21 +362826,27 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 2012359u, new Vector3(623.3462f, 442.95398f, 441.00085f), 960); + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.Interact, 2012359u, new Vector3(623.3462f, 442.95398f, 441.00085f), 960); obj74.Steps = list110; reference88 = obj74; - ref QuestSequence reference89 = ref span44[3]; + num++; + ref QuestSequence reference89 = ref span106[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1040344u, new Vector3(624.99414f, 441.9763f, 439.9939f), 960); + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.Interact, 1040344u, new Vector3(624.99414f, 441.9763f, 439.9939f), 960); obj75.Steps = list111; reference89 = obj75; - ref QuestSequence reference90 = ref span44[4]; + num++; + ref QuestSequence reference90 = ref span106[num]; QuestSequence obj76 = new QuestSequence { Sequence = 4 @@ -299072,24 +362854,30 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Snipe, 2012360u, new Vector3(525.13916f, 441.03137f, 375.50916f), 960) + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.Snipe, 2012360u, new Vector3(525.13916f, 441.03137f, 375.50916f), 960) { Comment = "Find Errant Omicron" }; obj76.Steps = list112; reference90 = obj76; - ref QuestSequence reference91 = ref span44[5]; + num++; + ref QuestSequence reference91 = ref span106[num]; QuestSequence obj77 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1040349u, new Vector3(636.92664f, 438.64966f, 248.0658f), 960); + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.Interact, 1040349u, new Vector3(636.92664f, 438.64966f, 248.0658f), 960); obj77.Steps = list113; reference91 = obj77; - ref QuestSequence reference92 = ref span44[6]; + num++; + ref QuestSequence reference92 = ref span106[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -299097,20 +362885,24 @@ public static class AssemblyQuestLoader num2 = 2; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span46 = CollectionsMarshal.AsSpan(list114); - ref QuestStep reference93 = ref span46[0]; + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + ref QuestStep reference93 = ref span114[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2012796u, new Vector3(639.27673f, 439.78027f, 241.77905f), 960); - num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = new DialogueChoice + num4 = 1; + List list115 = new List(num4); + CollectionsMarshal.SetCount(list115, num4); + Span span115 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span115[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG111_04460_Q1_000_135") }; questStep15.DialogueChoices = list115; reference93 = questStep15; - span46[1] = new QuestStep(EInteractionType.CompleteQuest, 1041157u, new Vector3(801.63257f, 478.9742f, 196.79553f), 960); + index2++; + span114[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041157u, new Vector3(801.63257f, 478.9742f, 196.79553f), 960); obj78.Steps = list114; reference92 = obj78; questRoot11.QuestSequence = list106; @@ -299120,24 +362912,30 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "liza"; + Span span116 = CollectionsMarshal.AsSpan(list116); + index = 0; + span116[index] = "liza"; questRoot12.Author = list116; - num = 5; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span47 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference94 = ref span47[0]; + index = 5; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + Span span117 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference94 = ref span117[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041158u, new Vector3(799.9846f, 479.0242f, 199.42017f), 960); + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041158u, new Vector3(799.9846f, 479.0242f, 199.42017f), 960); obj79.Steps = list118; reference94 = obj79; - ref QuestSequence reference95 = ref span47[1]; + num++; + ref QuestSequence reference95 = ref span117[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -299145,27 +362943,33 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1040342u, new Vector3(546.07446f, 437.9998f, 303.8529f), 960) + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.Interact, 1040342u, new Vector3(546.07446f, 437.9998f, 303.8529f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj80.Steps = list119; reference95 = obj80; - ref QuestSequence reference96 = ref span47[2]; + num++; + ref QuestSequence reference96 = ref span117[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Snipe, 1039565u, new Vector3(609.4606f, 440.4633f, 398.42822f), 960) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.Snipe, 1039565u, new Vector3(609.4606f, 440.4633f, 398.42822f), 960) { Comment = "Identify Anomaly (Head, Elbow or Knee)" }; obj81.Steps = list120; reference96 = obj81; - ref QuestSequence reference97 = ref span47[3]; + num++; + ref QuestSequence reference97 = ref span117[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -299173,18 +362977,23 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1041159u, new Vector3(624.0176f, 441.9763f, 439.78027f), 960); + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.Interact, 1041159u, new Vector3(624.0176f, 441.9763f, 439.78027f), 960); obj82.Steps = list121; reference97 = obj82; - ref QuestSequence reference98 = ref span47[4]; + num++; + ref QuestSequence reference98 = ref span117[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041162u, new Vector3(623.5598f, 441.9763f, 436.78955f), 960); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041162u, new Vector3(623.5598f, 441.9763f, 436.78955f), 960); obj83.Steps = list122; reference98 = obj83; questRoot12.QuestSequence = list117; @@ -299194,13 +363003,16 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; + Span span123 = CollectionsMarshal.AsSpan(list123); + index = 0; + span123[index] = "liza"; questRoot13.Author = list123; - num = 6; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span48 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference99 = ref span48[0]; + index = 6; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + Span span124 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference99 = ref span124[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -299208,24 +363020,30 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041161u, new Vector3(622.4308f, 441.9763f, 436.17908f), 960); + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041161u, new Vector3(622.4308f, 441.9763f, 436.17908f), 960); obj84.Steps = list125; reference99 = obj84; - ref QuestSequence reference100 = ref span48[1]; + num++; + ref QuestSequence reference100 = ref span124[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1041163u, new Vector3(493.15625f, 436.8645f, 360.46387f), 960) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.Interact, 1041163u, new Vector3(493.15625f, 436.8645f, 360.46387f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj85.Steps = list126; reference100 = obj85; - ref QuestSequence reference101 = ref span48[2]; + num++; + ref QuestSequence reference101 = ref span124[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -299233,37 +363051,45 @@ public static class AssemblyQuestLoader num2 = 2; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span49 = CollectionsMarshal.AsSpan(list127); - ref QuestStep reference102 = ref span49[0]; + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + ref QuestStep reference102 = ref span127[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2012795u, new Vector3(492.48486f, 438.04077f, 365.43823f), 960); num3 = 1; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = new DialogueChoice + Span span128 = CollectionsMarshal.AsSpan(list128); + num4 = 0; + span128[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG113_04462_Q1_000_040") }; questStep16.DialogueChoices = list128; reference102 = questStep16; - span49[1] = new QuestStep(EInteractionType.Interact, 1041165u, new Vector3(460.563f, 417.0675f, 415.21326f), 960); + index2++; + span127[index2] = new QuestStep(EInteractionType.Interact, 1041165u, new Vector3(460.563f, 417.0675f, 415.21326f), 960); obj86.Steps = list127; reference101 = obj86; - ref QuestSequence reference103 = ref span48[3]; + num++; + ref QuestSequence reference103 = ref span124[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1041166u, new Vector3(459.25073f, 417.0675f, 414.66382f), 960) + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span129[num2] = new QuestStep(EInteractionType.Interact, 1041166u, new Vector3(459.25073f, 417.0675f, 414.66382f), 960) { StopDistance = 5f }; obj87.Steps = list129; reference103 = obj87; - ref QuestSequence reference104 = ref span48[4]; + num++; + ref QuestSequence reference104 = ref span124[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -299271,21 +363097,26 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1041165u, new Vector3(231.45715f, 566f, 317.96698f), 960) + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span130[index2] = new QuestStep(EInteractionType.Interact, 1041165u, new Vector3(231.45715f, 566f, 317.96698f), 960) { StopDistance = 1f }; obj88.Steps = list130; reference104 = obj88; - ref QuestSequence reference105 = ref span48[5]; + num++; + ref QuestSequence reference105 = ref span124[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041167u, new Vector3(221.20996f, 566f, 314.4121f), 960); + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span131[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041167u, new Vector3(221.20996f, 566f, 314.4121f), 960); obj89.Steps = list131; reference105 = obj89; questRoot13.QuestSequence = list124; @@ -299295,13 +363126,16 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "liza"; + Span span132 = CollectionsMarshal.AsSpan(list132); + index = 0; + span132[index] = "liza"; questRoot14.Author = list132; - num = 6; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span50 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference106 = ref span50[0]; + index = 6; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + Span span133 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference106 = ref span133[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -299309,35 +363143,47 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041168u, new Vector3(222.52222f, 565.99994f, 313.1914f), 960); + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span134[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041168u, new Vector3(222.52222f, 565.99994f, 313.1914f), 960); obj90.Steps = list134; reference106 = obj90; - ref QuestSequence reference107 = ref span50[1]; + num++; + ref QuestSequence reference107 = ref span133[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - Span span51 = CollectionsMarshal.AsSpan(list135); - ref QuestStep reference108 = ref span51[0]; + index2 = 6; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref QuestStep reference108 = ref span135[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2012364u, new Vector3(203.9978f, 565.9723f, 296.98633f), 960); - num3 = 6; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span52 = CollectionsMarshal.AsSpan(list136); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list136 = new List(num4); + CollectionsMarshal.SetCount(list136, num4); + Span span136 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = null; + num3++; + span136[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list136; num3 = 1; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - CollectionsMarshal.AsSpan(list137)[0] = new DialogueChoice + Span span137 = CollectionsMarshal.AsSpan(list137); + num4 = 0; + span137[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG114_04463_Q1_000_031"), @@ -299345,79 +363191,116 @@ public static class AssemblyQuestLoader }; questStep17.DialogueChoices = list137; reference108 = questStep17; - ref QuestStep reference109 = ref span51[1]; + num2++; + ref QuestStep reference109 = ref span135[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2012367u, new Vector3(185.74805f, 568.902f, 240.03955f), 960); - num3 = 6; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span53 = CollectionsMarshal.AsSpan(list138); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list138 = new List(num4); + CollectionsMarshal.SetCount(list138, num4); + Span span138 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list138; reference109 = questStep18; - ref QuestStep reference110 = ref span51[2]; + num2++; + ref QuestStep reference110 = ref span135[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2012368u, new Vector3(163.16467f, 567.13196f, 280.93384f), 960); num3 = 6; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - Span span54 = CollectionsMarshal.AsSpan(list139); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span139 = CollectionsMarshal.AsSpan(list139); + num4 = 0; + span139[num4] = null; + num4++; + span139[num4] = null; + num4++; + span139[num4] = null; + num4++; + span139[num4] = null; + num4++; + span139[num4] = null; + num4++; + span139[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list139; reference110 = questStep19; - ref QuestStep reference111 = ref span51[3]; + num2++; + ref QuestStep reference111 = ref span135[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2012366u, new Vector3(157.24414f, 566.03345f, 295.97925f), 960); - num3 = 6; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - Span span55 = CollectionsMarshal.AsSpan(list140); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list140 = new List(num4); + CollectionsMarshal.SetCount(list140, num4); + Span span140 = CollectionsMarshal.AsSpan(list140); + num3 = 0; + span140[num3] = null; + num3++; + span140[num3] = null; + num3++; + span140[num3] = null; + num3++; + span140[num3] = null; + num3++; + span140[num3] = null; + num3++; + span140[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list140; reference111 = questStep20; - ref QuestStep reference112 = ref span51[4]; + num2++; + ref QuestStep reference112 = ref span135[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 2012369u, new Vector3(104.29541f, 569.2682f, 297.16943f), 960); num3 = 6; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - Span span56 = CollectionsMarshal.AsSpan(list141); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + Span span141 = CollectionsMarshal.AsSpan(list141); + num4 = 0; + span141[num4] = null; + num4++; + span141[num4] = null; + num4++; + span141[num4] = null; + num4++; + span141[num4] = null; + num4++; + span141[num4] = null; + num4++; + span141[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list141; reference112 = questStep21; - ref QuestStep reference113 = ref span51[5]; + num2++; + ref QuestStep reference113 = ref span135[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 2012365u, new Vector3(78.99597f, 566.27747f, 241.9928f), 960); - num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span57 = CollectionsMarshal.AsSpan(list142); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list142 = new List(num4); + CollectionsMarshal.SetCount(list142, num4); + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list142; num3 = 1; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = new DialogueChoice + Span span143 = CollectionsMarshal.AsSpan(list143); + num4 = 0; + span143[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG114_04463_Q2_000_061"), @@ -299427,7 +363310,8 @@ public static class AssemblyQuestLoader reference113 = questStep22; obj91.Steps = list135; reference107 = obj91; - ref QuestSequence reference114 = ref span50[2]; + num++; + ref QuestSequence reference114 = ref span133[num]; QuestSequence obj92 = new QuestSequence { Sequence = 2 @@ -299435,21 +363319,27 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1041171u, new Vector3(39.993896f, 567.5f, 192.88928f), 960); + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span144[index2] = new QuestStep(EInteractionType.Interact, 1041171u, new Vector3(39.993896f, 567.5f, 192.88928f), 960); obj92.Steps = list144; reference114 = obj92; - ref QuestSequence reference115 = ref span50[3]; + num++; + ref QuestSequence reference115 = ref span133[num]; QuestSequence obj93 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1041170u, new Vector3(145.28113f, 566f, 390.7987f), 960); + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span145[num2] = new QuestStep(EInteractionType.Interact, 1041170u, new Vector3(145.28113f, 566f, 390.7987f), 960); obj93.Steps = list145; reference115 = obj93; - ref QuestSequence reference116 = ref span50[4]; + num++; + ref QuestSequence reference116 = ref span133[num]; QuestSequence obj94 = new QuestSequence { Sequence = 4 @@ -299457,18 +363347,23 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.462573f, 637.1029f, 2.690414f), 1027); + Span span146 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span146[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.462573f, 637.1029f, 2.690414f), 1027); obj94.Steps = list146; reference116 = obj94; - ref QuestSequence reference117 = ref span50[5]; + num++; + ref QuestSequence reference117 = ref span133[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041173u, new Vector3(1.663208f, 637.10297f, 5.2338257f), 960) + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041173u, new Vector3(1.663208f, 637.10297f, 5.2338257f), 960) { StopDistance = 5f, DisableNavmesh = true @@ -299482,13 +363377,16 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "liza"; + Span span148 = CollectionsMarshal.AsSpan(list148); + index = 0; + span148[index] = "liza"; questRoot15.Author = list148; - num = 9; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span58 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference118 = ref span58[0]; + index = 9; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + Span span149 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference118 = ref span149[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -299496,21 +363394,26 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042216u, new Vector3(4.196167f, 637.10297f, 4.2266846f), 960) + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042216u, new Vector3(4.196167f, 637.10297f, 4.2266846f), 960) { DisableNavmesh = true }; obj96.Steps = list150; reference118 = obj96; - ref QuestSequence reference119 = ref span58[1]; + num++; + ref QuestSequence reference119 = ref span149[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Duty, null, null, 960) + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span151[num2] = new QuestStep(EInteractionType.Duty, null, null, 960) { DutyOptions = new DutyOptions { @@ -299519,11 +363422,13 @@ public static class AssemblyQuestLoader }; obj97.Steps = list151; reference119 = obj97; - span58[2] = new QuestSequence + num++; + span149[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference120 = ref span58[3]; + num++; + ref QuestSequence reference120 = ref span149[num]; QuestSequence obj98 = new QuestSequence { Sequence = 3 @@ -299531,7 +363436,9 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Duty, null, null, 1029) + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span152[index2] = new QuestStep(EInteractionType.Duty, null, null, 1029) { DutyOptions = new DutyOptions { @@ -299540,19 +363447,23 @@ public static class AssemblyQuestLoader }; obj98.Steps = list152; reference120 = obj98; - span58[4] = new QuestSequence + num++; + span149[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference121 = ref span58[5]; + num++; + ref QuestSequence reference121 = ref span149[num]; QuestSequence obj99 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1041179u, new Vector3(99.99231f, 0f, 89.98242f), 1026) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span153[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1041179u, new Vector3(99.99231f, 0f, 89.98242f), 1026) { DisableNavmesh = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -299562,11 +363473,13 @@ public static class AssemblyQuestLoader }; obj99.Steps = list153; reference121 = obj99; - span58[6] = new QuestSequence + num++; + span149[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference122 = ref span58[7]; + num++; + ref QuestSequence reference122 = ref span149[num]; QuestSequence obj100 = new QuestSequence { Sequence = 7 @@ -299574,26 +363487,34 @@ public static class AssemblyQuestLoader num2 = 8; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span59 = CollectionsMarshal.AsSpan(list154); - ref QuestStep reference123 = ref span59[0]; + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + ref QuestStep reference123 = ref span154[index2]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 1041188u, new Vector3(-0.16790771f, 0f, 0.8086548f), 351) { StopDistance = 5f, DelaySecondsAtStart = 3f }; - num3 = 6; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span60 = CollectionsMarshal.AsSpan(list155); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4 = 6; + List list155 = new List(num4); + CollectionsMarshal.SetCount(list155, num4); + Span span155 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + span155[num3] = null; + num3++; + span155[num3] = null; + num3++; + span155[num3] = null; + num3++; + span155[num3] = null; + num3++; + span155[num3] = null; + num3++; + span155[num3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); obj101.CompletionQuestVariablesFlags = list155; reference123 = obj101; - ref QuestStep reference124 = ref span59[1]; + index2++; + ref QuestStep reference124 = ref span154[index2]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 1041181u, new Vector3(-1.236023f, 0f, 0.6560669f), 351) { StopDistance = 5f @@ -299601,30 +363522,44 @@ public static class AssemblyQuestLoader num3 = 6; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span61 = CollectionsMarshal.AsSpan(list156); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span156 = CollectionsMarshal.AsSpan(list156); + num4 = 0; + span156[num4] = null; + num4++; + span156[num4] = null; + num4++; + span156[num4] = null; + num4++; + span156[num4] = null; + num4++; + span156[num4] = null; + num4++; + span156[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj102.CompletionQuestVariablesFlags = list156; reference124 = obj102; - ref QuestStep reference125 = ref span59[2]; + index2++; + ref QuestStep reference125 = ref span154[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1041182u, new Vector3(-6.4240723f, 0.009977884f, -4.7455444f), 351); - num3 = 6; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - Span span62 = CollectionsMarshal.AsSpan(list157); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list157 = new List(num4); + CollectionsMarshal.SetCount(list157, num4); + Span span157 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list157; reference125 = questStep23; - ref QuestStep reference126 = ref span59[3]; + index2++; + ref QuestStep reference126 = ref span154[index2]; QuestStep obj103 = new QuestStep(EInteractionType.Interact, 1041184u, new Vector3(-7.034485f, 0f, -5.8442383f), 351) { StopDistance = 5f @@ -299632,87 +363567,126 @@ public static class AssemblyQuestLoader num3 = 6; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - Span span63 = CollectionsMarshal.AsSpan(list158); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span158 = CollectionsMarshal.AsSpan(list158); + num4 = 0; + span158[num4] = null; + num4++; + span158[num4] = null; + num4++; + span158[num4] = null; + num4++; + span158[num4] = null; + num4++; + span158[num4] = null; + num4++; + span158[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj103.CompletionQuestVariablesFlags = list158; reference126 = obj103; - ref QuestStep reference127 = ref span59[4]; + index2++; + ref QuestStep reference127 = ref span154[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1041183u, new Vector3(6.6376343f, 0f, -6.790344f), 351); - num3 = 6; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - Span span64 = CollectionsMarshal.AsSpan(list159); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list159 = new List(num4); + CollectionsMarshal.SetCount(list159, num4); + Span span159 = CollectionsMarshal.AsSpan(list159); + num3 = 0; + span159[num3] = null; + num3++; + span159[num3] = null; + num3++; + span159[num3] = null; + num3++; + span159[num3] = null; + num3++; + span159[num3] = null; + num3++; + span159[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list159; reference127 = questStep24; - ref QuestStep reference128 = ref span59[5]; + index2++; + ref QuestStep reference128 = ref span154[index2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1041187u, new Vector3(10.482849f, 0f, -8.255188f), 351); num3 = 6; List list160 = new List(num3); CollectionsMarshal.SetCount(list160, num3); - Span span65 = CollectionsMarshal.AsSpan(list160); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span span160 = CollectionsMarshal.AsSpan(list160); + num4 = 0; + span160[num4] = null; + num4++; + span160[num4] = null; + num4++; + span160[num4] = null; + num4++; + span160[num4] = null; + num4++; + span160[num4] = null; + num4++; + span160[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list160; reference128 = questStep25; - ref QuestStep reference129 = ref span59[6]; + index2++; + ref QuestStep reference129 = ref span154[index2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1041185u, new Vector3(25.864014f, -1f, -5.7526855f), 351); - num3 = 6; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - Span span66 = CollectionsMarshal.AsSpan(list161); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num4 = 6; + List list161 = new List(num4); + CollectionsMarshal.SetCount(list161, num4); + Span span161 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list161; reference129 = questStep26; - ref QuestStep reference130 = ref span59[7]; + index2++; + ref QuestStep reference130 = ref span154[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1041186u, new Vector3(29.984009f, -1f, 0.1373291f), 351); num3 = 6; List list162 = new List(num3); CollectionsMarshal.SetCount(list162, num3); - Span span67 = CollectionsMarshal.AsSpan(list162); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); + Span span162 = CollectionsMarshal.AsSpan(list162); + num4 = 0; + span162[num4] = null; + num4++; + span162[num4] = null; + num4++; + span162[num4] = null; + num4++; + span162[num4] = null; + num4++; + span162[num4] = null; + num4++; + span162[num4] = new QuestWorkValue(0, (byte)4, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list162; reference130 = questStep27; obj100.Steps = list154; reference122 = obj100; - ref QuestSequence reference131 = ref span58[8]; + num++; + ref QuestSequence reference131 = ref span149[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - ref QuestStep reference132 = ref CollectionsMarshal.AsSpan(list163)[0]; + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + ref QuestStep reference132 = ref span163[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.CompleteQuest, 1041189u, new Vector3(-0.015319824f, 0f, -7.1870728f), 351); - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice + num4 = 1; + List list164 = new List(num4); + CollectionsMarshal.SetCount(list164, num4); + Span span164 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span164[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG115_04464_Q13_000_391") @@ -299728,13 +363702,16 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "liza"; + Span span165 = CollectionsMarshal.AsSpan(list165); + index = 0; + span165[index] = "liza"; questRoot16.Author = list165; - num = 2; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span68 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference133 = ref span68[0]; + index = 2; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + Span span166 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference133 = ref span166[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 @@ -299742,18 +363719,23 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038500u, new Vector3(-357.83936f, 21.84602f, -91.32526f), 962); + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038500u, new Vector3(-357.83936f, 21.84602f, -91.32526f), 962); obj105.Steps = list167; reference133 = obj105; - ref QuestSequence reference134 = ref span68[1]; + num++; + ref QuestSequence reference134 = ref span166[num]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038500u, new Vector3(-357.83936f, 21.84602f, -91.32526f), 962); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038500u, new Vector3(-357.83936f, 21.84602f, -91.32526f), 962); obj106.Steps = list168; reference134 = obj106; questRoot16.QuestSequence = list166; @@ -299763,13 +363745,16 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "liza"; + Span span169 = CollectionsMarshal.AsSpan(list169); + index = 0; + span169[index] = "liza"; questRoot17.Author = list169; - num = 4; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span69 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference135 = ref span69[0]; + index = 4; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + Span span170 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference135 = ref span170[num]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -299777,7 +363762,9 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041268u, new Vector3(-81.1933f, 1.0795165f, 36.51477f), 962) + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span171[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041268u, new Vector3(-81.1933f, 1.0795165f, 36.51477f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -299788,21 +363775,25 @@ public static class AssemblyQuestLoader }; obj107.Steps = list171; reference135 = obj107; - ref QuestSequence reference136 = ref span69[1]; + num++; + ref QuestSequence reference136 = ref span170[num]; QuestSequence obj108 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1039508u, new Vector3(-639.704f, -27.175835f, 301.07568f), 956) + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span172[num2] = new QuestStep(EInteractionType.Interact, 1039508u, new Vector3(-639.704f, -27.175835f, 301.07568f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; obj108.Steps = list172; reference136 = obj108; - ref QuestSequence reference137 = ref span69[2]; + num++; + ref QuestSequence reference137 = ref span170[num]; QuestSequence obj109 = new QuestSequence { Sequence = 2 @@ -299810,8 +363801,9 @@ public static class AssemblyQuestLoader num2 = 2; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span70 = CollectionsMarshal.AsSpan(list173); - span70[0] = new QuestStep(EInteractionType.Interact, 1033863u, new Vector3(118.02844f, 14.649026f, 7.156433f), 819) + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.Interact, 1033863u, new Vector3(118.02844f, 14.649026f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -299821,18 +363813,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span70[1] = new QuestStep(EInteractionType.Interact, 2012425u, new Vector3(0.10675049f, -0.015319824f, -8.163635f), 844); + index2++; + span173[index2] = new QuestStep(EInteractionType.Interact, 2012425u, new Vector3(0.10675049f, -0.015319824f, -8.163635f), 844); obj109.Steps = list173; reference137 = obj109; - ref QuestSequence reference138 = ref span69[3]; + num++; + ref QuestSequence reference138 = ref span170[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041271u, new Vector3(542.5039f, 7.6627564f, 50.91931f), 961) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041271u, new Vector3(542.5039f, 7.6627564f, 50.91931f), 961) { NextQuestId = new QuestId(4476) }; @@ -299845,13 +363841,16 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "liza"; + Span span175 = CollectionsMarshal.AsSpan(list175); + index = 0; + span175[index] = "liza"; questRoot18.Author = list175; - num = 5; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span71 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference139 = ref span71[0]; + index = 5; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + Span span176 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference139 = ref span176[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -299859,25 +363858,31 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041271u, new Vector3(542.5039f, 7.6627564f, 50.91931f), 961); + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span177[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041271u, new Vector3(542.5039f, 7.6627564f, 50.91931f), 961); obj111.Steps = list177; reference139 = obj111; - ref QuestSequence reference140 = ref span71[1]; + num++; + ref QuestSequence reference140 = ref span176[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1041272u, new Vector3(228.19861f, 7.3858566f, 239.94812f), 961) + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + Span span178 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span178[num2] = new QuestStep(EInteractionType.Interact, 1041272u, new Vector3(228.19861f, 7.3858566f, 239.94812f), 961) { Fly = true, AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; obj112.Steps = list178; reference140 = obj112; - ref QuestSequence reference141 = ref span71[2]; + num++; + ref QuestSequence reference141 = ref span176[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -299885,7 +363890,9 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list179)[0]; + Span span179 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + ref QuestStep reference142 = ref span179[index2]; QuestStep obj114 = new QuestStep(EInteractionType.Interact, 1041273u, new Vector3(808.3772f, 152.22246f, -240.4975f), 961) { Fly = true @@ -299893,7 +363900,9 @@ public static class AssemblyQuestLoader num3 = 1; List list180 = new List(num3); CollectionsMarshal.SetCount(list180, num3); - CollectionsMarshal.AsSpan(list180)[0] = new DialogueChoice + Span span180 = CollectionsMarshal.AsSpan(list180); + num4 = 0; + span180[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKRA102_04476_SYSTEM_046") @@ -299902,15 +363911,18 @@ public static class AssemblyQuestLoader reference142 = obj114; obj113.Steps = list179; reference141 = obj113; - ref QuestSequence reference143 = ref span71[3]; + num++; + ref QuestSequence reference143 = ref span176[num]; QuestSequence obj115 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span181[num2] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -299919,7 +363931,8 @@ public static class AssemblyQuestLoader }; obj115.Steps = list181; reference143 = obj115; - ref QuestSequence reference144 = ref span71[4]; + num++; + ref QuestSequence reference144 = ref span176[num]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue @@ -299927,7 +363940,9 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041501u, new Vector3(101.51831f, -9.999997E-12f, 101.60974f), 1025) + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041501u, new Vector3(101.51831f, -9.999997E-12f, 101.60974f), 1025) { StopDistance = 5f, NextQuestId = new QuestId(4477) @@ -299941,24 +363956,30 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + Span span183 = CollectionsMarshal.AsSpan(list183); + index = 0; + span183[index] = "liza"; questRoot19.Author = list183; - num = 3; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span72 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference145 = ref span72[0]; + index = 3; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + Span span184 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference145 = ref span184[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041276u, new Vector3(99.07678f, 7.6875f, -66.971924f), 1025); + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span185[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041276u, new Vector3(99.07678f, 7.6875f, -66.971924f), 1025); obj117.Steps = list185; reference145 = obj117; - ref QuestSequence reference146 = ref span72[1]; + num++; + ref QuestSequence reference146 = ref span184[num]; QuestSequence obj118 = new QuestSequence { Sequence = 1 @@ -299966,7 +363987,9 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -299975,15 +363998,18 @@ public static class AssemblyQuestLoader }; obj118.Steps = list186; reference146 = obj118; - ref QuestSequence reference147 = ref span72[2]; + num++; + ref QuestSequence reference147 = ref span184[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041502u, new Vector3(99.22937f, 7.6875f, -67.88745f), 1025) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041502u, new Vector3(99.22937f, 7.6875f, -67.88745f), 1025) { StopDistance = 4f, NextQuestId = new QuestId(4478) @@ -299997,13 +364023,16 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; + Span span188 = CollectionsMarshal.AsSpan(list188); + index = 0; + span188[index] = "liza"; questRoot20.Author = list188; - num = 3; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span73 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference148 = ref span73[0]; + index = 3; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + Span span189 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference148 = ref span189[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -300011,21 +364040,26 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041503u, new Vector3(100.87732f, 7.6875f, -67.61273f), 1025) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041503u, new Vector3(100.87732f, 7.6875f, -67.61273f), 1025) { StopDistance = 4f }; obj120.Steps = list190; reference148 = obj120; - ref QuestSequence reference149 = ref span73[1]; + num++; + ref QuestSequence reference149 = ref span189[num]; QuestSequence obj121 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -300034,7 +364068,8 @@ public static class AssemblyQuestLoader }; obj121.Steps = list191; reference149 = obj121; - ref QuestSequence reference150 = ref span73[2]; + num++; + ref QuestSequence reference150 = ref span189[num]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue @@ -300042,7 +364077,9 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041278u, new Vector3(98.34436f, -1E-11f, -29.678833f), 1025) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041278u, new Vector3(98.34436f, -1E-11f, -29.678833f), 1025) { StopDistance = 5f, NextQuestId = new QuestId(4479) @@ -300056,27 +364093,33 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "liza"; + Span span193 = CollectionsMarshal.AsSpan(list193); + index = 0; + span193[index] = "liza"; questRoot21.Author = list193; - num = 6; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span74 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference151 = ref span74[0]; + index = 6; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + Span span194 = CollectionsMarshal.AsSpan(list194); + num = 0; + ref QuestSequence reference151 = ref span194[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041278u, new Vector3(98.34436f, -1E-11f, -29.678833f), 1025) + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041278u, new Vector3(98.34436f, -1E-11f, -29.678833f), 1025) { StopDistance = 5f }; obj123.Steps = list195; reference151 = obj123; - ref QuestSequence reference152 = ref span74[1]; + num++; + ref QuestSequence reference152 = ref span194[num]; QuestSequence obj124 = new QuestSequence { Sequence = 1 @@ -300084,18 +364127,23 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1041279u, new Vector3(114.54944f, -9.999999E-12f, -25.742065f), 1025); + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span196[index2] = new QuestStep(EInteractionType.Interact, 1041279u, new Vector3(114.54944f, -9.999999E-12f, -25.742065f), 1025); obj124.Steps = list196; reference152 = obj124; - ref QuestSequence reference153 = ref span74[2]; + num++; + ref QuestSequence reference153 = ref span194[num]; QuestSequence obj125 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span197[num2] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -300104,11 +364152,13 @@ public static class AssemblyQuestLoader }; obj125.Steps = list197; reference153 = obj125; - span74[3] = new QuestSequence + num++; + span194[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference154 = ref span74[4]; + num++; + ref QuestSequence reference154 = ref span194[num]; QuestSequence obj126 = new QuestSequence { Sequence = 4 @@ -300116,21 +364166,26 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1041280u, new Vector3(98.95471f, -1E-11f, -29.953552f), 1025) + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span198[index2] = new QuestStep(EInteractionType.Interact, 1041280u, new Vector3(98.95471f, -1E-11f, -29.953552f), 1025) { StopDistance = 5f }; obj126.Steps = list198; reference154 = obj126; - ref QuestSequence reference155 = ref span74[5]; + num++; + ref QuestSequence reference155 = ref span194[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041934u, new Vector3(-639.765f, -27.175016f, 301.1062f), 956) + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + Span span199 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span199[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041934u, new Vector3(-639.765f, -27.175016f, 301.1062f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, NextQuestId = new QuestId(4635) @@ -300144,13 +364199,16 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - CollectionsMarshal.AsSpan(list200)[0] = "liza"; + Span span200 = CollectionsMarshal.AsSpan(list200); + index = 0; + span200[index] = "liza"; questRoot22.Author = list200; - num = 7; - List list201 = new List(num); - CollectionsMarshal.SetCount(list201, num); - Span span75 = CollectionsMarshal.AsSpan(list201); - ref QuestSequence reference156 = ref span75[0]; + index = 7; + List list201 = new List(index); + CollectionsMarshal.SetCount(list201, index); + Span span201 = CollectionsMarshal.AsSpan(list201); + num = 0; + ref QuestSequence reference156 = ref span201[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 @@ -300158,21 +364216,27 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041667u, new Vector3(443.96118f, 65.162f, -105.4552f), 956); + Span span202 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span202[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041667u, new Vector3(443.96118f, 65.162f, -105.4552f), 956); obj128.Steps = list202; reference156 = obj128; - ref QuestSequence reference157 = ref span75[1]; + num++; + ref QuestSequence reference157 = ref span201[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 2012725u, new Vector3(693.1715f, 99.01575f, 123.52173f), 956); + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.Interact, 2012725u, new Vector3(693.1715f, 99.01575f, 123.52173f), 956); obj129.Steps = list203; reference157 = obj129; - ref QuestSequence reference158 = ref span75[2]; + num++; + ref QuestSequence reference158 = ref span201[num]; QuestSequence obj130 = new QuestSequence { Sequence = 2 @@ -300180,24 +364244,30 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 2012726u, new Vector3(806.79016f, 154.10083f, -149.64526f), 956); + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span204[index2] = new QuestStep(EInteractionType.Interact, 2012726u, new Vector3(806.79016f, 154.10083f, -149.64526f), 956); obj130.Steps = list204; reference158 = obj130; - ref QuestSequence reference159 = ref span75[3]; + num++; + ref QuestSequence reference159 = ref span201[num]; QuestSequence obj131 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1041681u, new Vector3(436.69788f, 166.19273f, -430.4723f), 956) + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + Span span205 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span205[num2] = new QuestStep(EInteractionType.Interact, 1041681u, new Vector3(436.69788f, 166.19273f, -430.4723f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; obj131.Steps = list205; reference159 = obj131; - ref QuestSequence reference160 = ref span75[4]; + num++; + ref QuestSequence reference160 = ref span201[num]; QuestSequence obj132 = new QuestSequence { Sequence = 4 @@ -300205,32 +364275,40 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1041668u, new Vector3(394.12524f, 173.82095f, -646.75366f), 956); + Span span206 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span206[index2] = new QuestStep(EInteractionType.Interact, 1041668u, new Vector3(394.12524f, 173.82095f, -646.75366f), 956); obj132.Steps = list206; reference160 = obj132; - ref QuestSequence reference161 = ref span75[5]; + num++; + ref QuestSequence reference161 = ref span201[num]; QuestSequence obj133 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - ref QuestStep reference162 = ref CollectionsMarshal.AsSpan(list207)[0]; + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + Span span207 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + ref QuestStep reference162 = ref span207[num2]; QuestStep obj134 = new QuestStep(EInteractionType.Combat, 1041670u, new Vector3(285.23682f, 185.65448f, -729.67114f), 956) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = 14069u; + num4 = 1; + List list208 = new List(num4); + CollectionsMarshal.SetCount(list208, num4); + Span span208 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span208[num3] = 14069u; obj134.KillEnemyDataIds = list208; reference162 = obj134; obj133.Steps = list207; reference161 = obj133; - ref QuestSequence reference163 = ref span75[6]; + num++; + ref QuestSequence reference163 = ref span201[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue @@ -300238,7 +364316,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041670u, new Vector3(285.23682f, 185.65448f, -729.67114f), 956) + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041670u, new Vector3(285.23682f, 185.65448f, -729.67114f), 956) { StopDistance = 5f }; @@ -300251,26 +364331,33 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "liza"; + Span span210 = CollectionsMarshal.AsSpan(list210); + index = 0; + span210[index] = "liza"; questRoot23.Author = list210; - num = 3; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - Span span76 = CollectionsMarshal.AsSpan(list211); - ref QuestSequence reference164 = ref span76[0]; + index = 3; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + Span span211 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference164 = ref span211[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list212)[0]; + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + ref QuestStep reference165 = ref span212[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.AcceptQuest, 1041683u, new Vector3(-29.984009f, -31.53043f, -23.758362f), 956); num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = new DialogueChoice + Span span213 = CollectionsMarshal.AsSpan(list213); + num4 = 0; + span213[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZI101_04484_Q1_000_000"), @@ -300280,7 +364367,8 @@ public static class AssemblyQuestLoader reference165 = questStep29; obj136.Steps = list212; reference164 = obj136; - ref QuestSequence reference166 = ref span76[1]; + num++; + ref QuestSequence reference166 = ref span211[num]; QuestSequence obj137 = new QuestSequence { Sequence = 1 @@ -300288,18 +364376,23 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1041684u, new Vector3(50.43103f, -29.530062f, 27.115234f), 956); + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.Interact, 1041684u, new Vector3(50.43103f, -29.530062f, 27.115234f), 956); obj137.Steps = list214; reference166 = obj137; - ref QuestSequence reference167 = ref span76[2]; + num++; + ref QuestSequence reference167 = ref span211[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041685u, new Vector3(154.89429f, -17.530376f, -66.2395f), 956); + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041685u, new Vector3(154.89429f, -17.530376f, -66.2395f), 956); obj138.Steps = list215; reference167 = obj138; questRoot23.QuestSequence = list211; @@ -300309,13 +364402,16 @@ public static class AssemblyQuestLoader num = 1; List list216 = new List(num); CollectionsMarshal.SetCount(list216, num); - CollectionsMarshal.AsSpan(list216)[0] = "liza"; + Span span216 = CollectionsMarshal.AsSpan(list216); + index = 0; + span216[index] = "liza"; questRoot24.Author = list216; - num = 7; - List list217 = new List(num); - CollectionsMarshal.SetCount(list217, num); - Span span77 = CollectionsMarshal.AsSpan(list217); - ref QuestSequence reference168 = ref span77[0]; + index = 7; + List list217 = new List(index); + CollectionsMarshal.SetCount(list217, index); + Span span217 = CollectionsMarshal.AsSpan(list217); + num = 0; + ref QuestSequence reference168 = ref span217[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -300323,12 +364419,16 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - ref QuestStep reference169 = ref CollectionsMarshal.AsSpan(list218)[0]; + Span span218 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + ref QuestStep reference169 = ref span218[index2]; QuestStep questStep30 = new QuestStep(EInteractionType.AcceptQuest, 1041331u, new Vector3(202.4414f, 1.769943f, 727.7484f), 957); - num3 = 1; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - CollectionsMarshal.AsSpan(list219)[0] = new DialogueChoice + num4 = 1; + List list219 = new List(num4); + CollectionsMarshal.SetCount(list219, num4); + Span span219 = CollectionsMarshal.AsSpan(list219); + num3 = 0; + span219[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA201_04489_Q1_000_004"), @@ -300338,18 +364438,22 @@ public static class AssemblyQuestLoader reference169 = questStep30; obj139.Steps = list218; reference168 = obj139; - ref QuestSequence reference170 = ref span77[1]; + num++; + ref QuestSequence reference170 = ref span217[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1041333u, new Vector3(190.6919f, 14.1185875f, 489.4635f), 957); + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span220[num2] = new QuestStep(EInteractionType.Interact, 1041333u, new Vector3(190.6919f, 14.1185875f, 489.4635f), 957); obj140.Steps = list220; reference170 = obj140; - ref QuestSequence reference171 = ref span77[2]; + num++; + ref QuestSequence reference171 = ref span217[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 @@ -300357,18 +364461,23 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1041334u, new Vector3(123.125f, 16.522793f, 537.8042f), 957); + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span221[index2] = new QuestStep(EInteractionType.Interact, 1041334u, new Vector3(123.125f, 16.522793f, 537.8042f), 957); obj141.Steps = list221; reference171 = obj141; - ref QuestSequence reference172 = ref span77[3]; + num++; + ref QuestSequence reference172 = ref span217[num]; QuestSequence obj142 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - ref QuestStep reference173 = ref CollectionsMarshal.AsSpan(list222)[0]; + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + Span span222 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + ref QuestStep reference173 = ref span222[num2]; QuestStep obj143 = new QuestStep(EInteractionType.Combat, null, new Vector3(167.34262f, 41.652294f, 409.31412f), 957) { StopDistance = 1f, @@ -300377,12 +364486,15 @@ public static class AssemblyQuestLoader num3 = 1; List list223 = new List(num3); CollectionsMarshal.SetCount(list223, num3); - CollectionsMarshal.AsSpan(list223)[0] = 14043u; + Span span223 = CollectionsMarshal.AsSpan(list223); + num4 = 0; + span223[num4] = 14043u; obj143.KillEnemyDataIds = list223; reference173 = obj143; obj142.Steps = list222; reference172 = obj142; - ref QuestSequence reference174 = ref span77[4]; + num++; + ref QuestSequence reference174 = ref span217[num]; QuestSequence obj144 = new QuestSequence { Sequence = 4 @@ -300390,27 +364502,33 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1041338u, new Vector3(167.1626f, 41.614826f, 409.53687f), 957) + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new QuestStep(EInteractionType.Interact, 1041338u, new Vector3(167.1626f, 41.614826f, 409.53687f), 957) { StopDistance = 7f }; obj144.Steps = list224; reference174 = obj144; - ref QuestSequence reference175 = ref span77[5]; + num++; + ref QuestSequence reference175 = ref span217[num]; QuestSequence obj145 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1041334u, new Vector3(123.125f, 16.522793f, 537.8042f), 957) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.Interact, 1041334u, new Vector3(123.125f, 16.522793f, 537.8042f), 957) { StopDistance = 5f }; obj145.Steps = list225; reference175 = obj145; - ref QuestSequence reference176 = ref span77[6]; + num++; + ref QuestSequence reference176 = ref span217[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -300418,7 +364536,9 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span226[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj146.Steps = list226; reference176 = obj146; questRoot24.QuestSequence = list217; @@ -300428,24 +364548,30 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - CollectionsMarshal.AsSpan(list227)[0] = "liza"; + Span span227 = CollectionsMarshal.AsSpan(list227); + index = 0; + span227[index] = "liza"; questRoot25.Author = list227; - num = 8; - List list228 = new List(num); - CollectionsMarshal.SetCount(list228, num); - Span span78 = CollectionsMarshal.AsSpan(list228); - ref QuestSequence reference177 = ref span78[0]; + index = 8; + List list228 = new List(index); + CollectionsMarshal.SetCount(list228, index); + Span span228 = CollectionsMarshal.AsSpan(list228); + num = 0; + ref QuestSequence reference177 = ref span228[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + Span span229 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span229[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj147.Steps = list229; reference177 = obj147; - ref QuestSequence reference178 = ref span78[1]; + num++; + ref QuestSequence reference178 = ref span228[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -300453,27 +364579,33 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1041340u, new Vector3(-124.43738f, 1.3207349f, 613.94666f), 957) + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span230[index2] = new QuestStep(EInteractionType.Interact, 1041340u, new Vector3(-124.43738f, 1.3207349f, 613.94666f), 957) { Fly = true }; obj148.Steps = list230; reference178 = obj148; - ref QuestSequence reference179 = ref span78[2]; + num++; + ref QuestSequence reference179 = ref span228[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1041341u, new Vector3(-122.75885f, 1.2757957f, 616.5408f), 957) + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.Interact, 1041341u, new Vector3(-122.75885f, 1.2757957f, 616.5408f), 957) { StopDistance = 7f }; obj149.Steps = list231; reference179 = obj149; - ref QuestSequence reference180 = ref span78[3]; + num++; + ref QuestSequence reference180 = ref span228[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -300481,63 +364613,88 @@ public static class AssemblyQuestLoader num2 = 3; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span79 = CollectionsMarshal.AsSpan(list232); - ref QuestStep reference181 = ref span79[0]; + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + ref QuestStep reference181 = ref span232[index2]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1041342u, new Vector3(-123.9491f, 0.3411509f, 642.8778f), 957); - num3 = 6; - List list233 = new List(num3); - CollectionsMarshal.SetCount(list233, num3); - Span span80 = CollectionsMarshal.AsSpan(list233); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list233 = new List(num4); + CollectionsMarshal.SetCount(list233, num4); + Span span233 = CollectionsMarshal.AsSpan(list233); + num3 = 0; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep31.CompletionQuestVariablesFlags = list233; reference181 = questStep31; - ref QuestStep reference182 = ref span79[1]; + index2++; + ref QuestStep reference182 = ref span232[index2]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 1041344u, new Vector3(-160.29602f, -0.10002975f, 661.86f), 957); num3 = 6; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - Span span81 = CollectionsMarshal.AsSpan(list234); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span234 = CollectionsMarshal.AsSpan(list234); + num4 = 0; + span234[num4] = null; + num4++; + span234[num4] = null; + num4++; + span234[num4] = null; + num4++; + span234[num4] = null; + num4++; + span234[num4] = null; + num4++; + span234[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep32.CompletionQuestVariablesFlags = list234; reference182 = questStep32; - ref QuestStep reference183 = ref span79[2]; + index2++; + ref QuestStep reference183 = ref span232[index2]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1041343u, new Vector3(-181.10938f, 0.2237328f, 640.2533f), 957); - num3 = 6; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - Span span82 = CollectionsMarshal.AsSpan(list235); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list235 = new List(num4); + CollectionsMarshal.SetCount(list235, num4); + Span span235 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + span235[num3] = null; + num3++; + span235[num3] = null; + num3++; + span235[num3] = null; + num3++; + span235[num3] = null; + num3++; + span235[num3] = null; + num3++; + span235[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep33.CompletionQuestVariablesFlags = list235; reference183 = questStep33; obj150.Steps = list232; reference180 = obj150; - ref QuestSequence reference184 = ref span78[4]; + num++; + ref QuestSequence reference184 = ref span228[num]; QuestSequence obj151 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1041340u, new Vector3(-124.43738f, 1.3207349f, 613.94666f), 957); + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.Interact, 1041340u, new Vector3(-124.43738f, 1.3207349f, 613.94666f), 957); obj151.Steps = list236; reference184 = obj151; - ref QuestSequence reference185 = ref span78[5]; + num++; + ref QuestSequence reference185 = ref span228[num]; QuestSequence obj152 = new QuestSequence { Sequence = 5 @@ -300545,7 +364702,9 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - ref QuestStep reference186 = ref CollectionsMarshal.AsSpan(list237)[0]; + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + ref QuestStep reference186 = ref span237[index2]; QuestStep obj153 = new QuestStep(EInteractionType.Interact, 1041345u, new Vector3(-112.596375f, 35.468357f, 392.87402f), 957) { Fly = true @@ -300553,7 +364712,9 @@ public static class AssemblyQuestLoader num3 = 1; List list238 = new List(num3); CollectionsMarshal.SetCount(list238, num3); - CollectionsMarshal.AsSpan(list238)[0] = new DialogueChoice + Span span238 = CollectionsMarshal.AsSpan(list238); + num4 = 0; + span238[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA202_04490_Q1_000_042"), @@ -300563,29 +364724,35 @@ public static class AssemblyQuestLoader reference186 = obj153; obj152.Steps = list237; reference185 = obj152; - ref QuestSequence reference187 = ref span78[6]; + num++; + ref QuestSequence reference187 = ref span228[num]; QuestSequence obj154 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - ref QuestStep reference188 = ref CollectionsMarshal.AsSpan(list239)[0]; + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + Span span239 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + ref QuestStep reference188 = ref span239[num2]; QuestStep obj155 = new QuestStep(EInteractionType.Combat, 2012325u, new Vector3(-206.16473f, 20.645447f, 229.20569f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - CollectionsMarshal.AsSpan(list240)[0] = 14042u; + num4 = 1; + List list240 = new List(num4); + CollectionsMarshal.SetCount(list240, num4); + Span span240 = CollectionsMarshal.AsSpan(list240); + num3 = 0; + span240[num3] = 14042u; obj155.KillEnemyDataIds = list240; reference188 = obj155; obj154.Steps = list239; reference187 = obj154; - ref QuestSequence reference189 = ref span78[7]; + num++; + ref QuestSequence reference189 = ref span228[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -300593,7 +364760,9 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041340u, new Vector3(-124.43738f, 1.3207349f, 613.94666f), 957) + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041340u, new Vector3(-124.43738f, 1.3207349f, 613.94666f), 957) { Fly = true, NextQuestId = new QuestId(4491) @@ -300607,27 +364776,33 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "liza"; + Span span242 = CollectionsMarshal.AsSpan(list242); + index = 0; + span242[index] = "liza"; questRoot26.Author = list242; - num = 6; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span83 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference190 = ref span83[0]; + index = 6; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + Span span243 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference190 = ref span243[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041341u, new Vector3(-122.75885f, 1.2757957f, 616.5408f), 957) + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041341u, new Vector3(-122.75885f, 1.2757957f, 616.5408f), 957) { StopDistance = 7f }; obj157.Steps = list244; reference190 = obj157; - ref QuestSequence reference191 = ref span83[1]; + num++; + ref QuestSequence reference191 = ref span243[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -300635,32 +364810,38 @@ public static class AssemblyQuestLoader num2 = 2; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span84 = CollectionsMarshal.AsSpan(list245); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - span84[1] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + index2++; + span245[index2] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj158.Steps = list245; reference191 = obj158; - ref QuestSequence reference192 = ref span83[2]; + num++; + ref QuestSequence reference192 = ref span243[num]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span85 = CollectionsMarshal.AsSpan(list246); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957); - span85[1] = new QuestStep(EInteractionType.Interact, 1041347u, new Vector3(171.40454f, 4.763736f, 670.7103f), 957) + index2 = 2; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957); + num2++; + span246[num2] = new QuestStep(EInteractionType.Interact, 1041347u, new Vector3(171.40454f, 4.763736f, 670.7103f), 957) { Fly = true }; obj159.Steps = list246; reference192 = obj159; - ref QuestSequence reference193 = ref span83[3]; + num++; + ref QuestSequence reference193 = ref span243[num]; QuestSequence obj160 = new QuestSequence { Sequence = 3 @@ -300668,22 +364849,26 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1041348u, new Vector3(176.83679f, 10.170378f, 549.0044f), 957) + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.Interact, 1041348u, new Vector3(176.83679f, 10.170378f, 549.0044f), 957) { Fly = true }; obj160.Steps = list247; reference193 = obj160; - ref QuestSequence reference194 = ref span83[4]; + num++; + ref QuestSequence reference194 = ref span243[num]; QuestSequence obj161 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - Span span86 = CollectionsMarshal.AsSpan(list248); - ref QuestStep reference195 = ref span86[0]; + index2 = 5; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + ref QuestStep reference195 = ref span248[num2]; QuestStep obj162 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(217.2226f, 10.08736f, 604.91754f), 957) { Fly = true @@ -300693,32 +364878,46 @@ public static class AssemblyQuestLoader num3 = 6; List list249 = new List(num3); CollectionsMarshal.SetCount(list249, num3); - Span span87 = CollectionsMarshal.AsSpan(list249); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span249 = CollectionsMarshal.AsSpan(list249); + num4 = 0; + span249[num4] = null; + num4++; + span249[num4] = null; + num4++; + span249[num4] = null; + num4++; + span249[num4] = null; + num4++; + span249[num4] = null; + num4++; + span249[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list249; skipConditions2.StepIf = skipStepConditions2; obj162.SkipConditions = skipConditions2; reference195 = obj162; - ref QuestStep reference196 = ref span86[1]; + num2++; + ref QuestStep reference196 = ref span248[num2]; QuestStep questStep34 = new QuestStep(EInteractionType.Interact, 1037655u, new Vector3(218.73804f, 10.087359f, 605.249f), 957); - num3 = 6; - List list250 = new List(num3); - CollectionsMarshal.SetCount(list250, num3); - Span span88 = CollectionsMarshal.AsSpan(list250); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list250 = new List(num4); + CollectionsMarshal.SetCount(list250, num4); + Span span250 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + span250[num3] = null; + num3++; + span250[num3] = null; + num3++; + span250[num3] = null; + num3++; + span250[num3] = null; + num3++; + span250[num3] = null; + num3++; + span250[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep34.CompletionQuestVariablesFlags = list250; reference196 = questStep34; - ref QuestStep reference197 = ref span86[2]; + num2++; + ref QuestStep reference197 = ref span248[num2]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 1037656u, new Vector3(208.1482f, 4.5989733f, 672.0835f), 957) { Fly = true @@ -300726,54 +364925,75 @@ public static class AssemblyQuestLoader num3 = 6; List list251 = new List(num3); CollectionsMarshal.SetCount(list251, num3); - Span span89 = CollectionsMarshal.AsSpan(list251); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span251 = CollectionsMarshal.AsSpan(list251); + num4 = 0; + span251[num4] = null; + num4++; + span251[num4] = null; + num4++; + span251[num4] = null; + num4++; + span251[num4] = null; + num4++; + span251[num4] = null; + num4++; + span251[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj163.CompletionQuestVariablesFlags = list251; reference197 = obj163; - ref QuestStep reference198 = ref span86[3]; + num2++; + ref QuestStep reference198 = ref span248[num2]; QuestStep questStep35 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.044f, 1.8294137f, 708.1364f), 957); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - Span span90 = CollectionsMarshal.AsSpan(list252); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list252 = new List(num4); + CollectionsMarshal.SetCount(list252, num4); + Span span252 = CollectionsMarshal.AsSpan(list252); + num3 = 0; + span252[num3] = null; + num3++; + span252[num3] = null; + num3++; + span252[num3] = null; + num3++; + span252[num3] = null; + num3++; + span252[num3] = null; + num3++; + span252[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list252; skipConditions3.StepIf = skipStepConditions3; questStep35.SkipConditions = skipConditions3; reference198 = questStep35; - ref QuestStep reference199 = ref span86[4]; + num2++; + ref QuestStep reference199 = ref span248[num2]; QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 1037708u, new Vector3(160.84534f, 1.8294137f, 710.68884f), 957); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 6; List list253 = new List(num3); CollectionsMarshal.SetCount(list253, num3); - Span span91 = CollectionsMarshal.AsSpan(list253); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span253 = CollectionsMarshal.AsSpan(list253); + num4 = 0; + span253[num4] = null; + num4++; + span253[num4] = null; + num4++; + span253[num4] = null; + num4++; + span253[num4] = null; + num4++; + span253[num4] = null; + num4++; + span253[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list253; skipConditions4.StepIf = skipStepConditions4; questStep36.SkipConditions = skipConditions4; reference199 = questStep36; obj161.Steps = list248; reference194 = obj161; - ref QuestSequence reference200 = ref span83[5]; + num++; + ref QuestSequence reference200 = ref span243[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -300781,12 +365001,14 @@ public static class AssemblyQuestLoader num2 = 2; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span92 = CollectionsMarshal.AsSpan(list254); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + Span span254 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span254[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Fly = true }; - span92[1] = new QuestStep(EInteractionType.CompleteQuest, 1041389u, new Vector3(192.79773f, 14.118593f, 487.6936f), 957) + index2++; + span254[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041389u, new Vector3(192.79773f, 14.118593f, 487.6936f), 957) { NextQuestId = new QuestId(4492) }; @@ -300799,24 +365021,30 @@ public static class AssemblyQuestLoader num = 1; List list255 = new List(num); CollectionsMarshal.SetCount(list255, num); - CollectionsMarshal.AsSpan(list255)[0] = "liza"; + Span span255 = CollectionsMarshal.AsSpan(list255); + index = 0; + span255[index] = "liza"; questRoot27.Author = list255; - num = 5; - List list256 = new List(num); - CollectionsMarshal.SetCount(list256, num); - Span span93 = CollectionsMarshal.AsSpan(list256); - ref QuestSequence reference201 = ref span93[0]; + index = 5; + List list256 = new List(index); + CollectionsMarshal.SetCount(list256, index); + Span span256 = CollectionsMarshal.AsSpan(list256); + num = 0; + ref QuestSequence reference201 = ref span256[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041389u, new Vector3(192.79773f, 14.118593f, 487.6936f), 957); + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span257 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span257[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041389u, new Vector3(192.79773f, 14.118593f, 487.6936f), 957); obj165.Steps = list257; reference201 = obj165; - ref QuestSequence reference202 = ref span93[1]; + num++; + ref QuestSequence reference202 = ref span256[num]; QuestSequence obj166 = new QuestSequence { Sequence = 1 @@ -300824,27 +365052,31 @@ public static class AssemblyQuestLoader num2 = 2; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span94 = CollectionsMarshal.AsSpan(list258); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + Span span258 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span258[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Mount = true }; - span94[1] = new QuestStep(EInteractionType.Interact, 2012451u, new Vector3(215.53369f, 9.903015f, 597.4059f), 957) + index2++; + span258[index2] = new QuestStep(EInteractionType.Interact, 2012451u, new Vector3(215.53369f, 9.903015f, 597.4059f), 957) { Fly = true }; obj166.Steps = list258; reference202 = obj166; - ref QuestSequence reference203 = ref span93[2]; + num++; + ref QuestSequence reference203 = ref span256[num]; QuestSequence obj167 = new QuestSequence { Sequence = 2 }; - num2 = 8; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - Span span95 = CollectionsMarshal.AsSpan(list259); - ref QuestStep reference204 = ref span95[0]; + index2 = 8; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + Span span259 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + ref QuestStep reference204 = ref span259[num2]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 2012451u, new Vector3(215.53369f, 9.903015f, 597.4059f), 957) { SkipConditions = new SkipConditions @@ -300855,53 +365087,63 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - CollectionsMarshal.AsSpan(list260)[0] = new DialogueChoice + num4 = 1; + List list260 = new List(num4); + CollectionsMarshal.SetCount(list260, num4); + Span span260 = CollectionsMarshal.AsSpan(list260); + num3 = 0; + span260[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZA204_04492_Q1_000_054") }; obj168.DialogueChoices = list260; reference204 = obj168; - span95[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(196.16476f, 9.8597355f, 555.2623f), 957) + num2++; + span259[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(196.16476f, 9.8597355f, 555.2623f), 957) { StopDistance = 100f, Mount = false, Sprint = false }; - span95[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(199.92545f, 10.335635f, 567.79816f), 957) + num2++; + span259[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(199.92545f, 10.335635f, 567.79816f), 957) { Mount = false, Sprint = false }; - span95[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(170.85558f, 9.90086f, 552.88477f), 957) + num2++; + span259[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(170.85558f, 9.90086f, 552.88477f), 957) { StopDistance = 100f, Mount = false, Sprint = false }; - span95[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(157.38617f, 14.520461f, 539.5006f), 957) + num2++; + span259[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(157.38617f, 14.520461f, 539.5006f), 957) { Mount = false, Sprint = false }; - span95[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(135.2287f, 19.553255f, 527.03894f), 957) + num2++; + span259[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(135.2287f, 19.553255f, 527.03894f), 957) { StopDistance = 100f, Mount = false, Sprint = false }; - span95[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(154.45122f, 23.673492f, 500.76654f), 957) + num2++; + span259[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(154.45122f, 23.673492f, 500.76654f), 957) { Mount = false, Sprint = false }; - span95[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.16548f, 23.302423f, 481.5656f), 957); + num2++; + span259[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.16548f, 23.302423f, 481.5656f), 957); obj167.Steps = list259; reference203 = obj167; - ref QuestSequence reference205 = ref span93[3]; + num++; + ref QuestSequence reference205 = ref span256[num]; QuestSequence obj169 = new QuestSequence { Sequence = 3 @@ -300909,26 +365151,31 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1041394u, new Vector3(-30.289246f, 29.867386f, 458.15198f), 957) + Span span261 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span261[index2] = new QuestStep(EInteractionType.Interact, 1041394u, new Vector3(-30.289246f, 29.867386f, 458.15198f), 957) { Fly = true }; obj169.Steps = list261; reference205 = obj169; - ref QuestSequence reference206 = ref span93[4]; + num++; + ref QuestSequence reference206 = ref span256[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - Span span96 = CollectionsMarshal.AsSpan(list262); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + index2 = 2; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Fly = true }; - span96[1] = new QuestStep(EInteractionType.CompleteQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + num2++; + span262[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj170.Steps = list262; reference206 = obj170; questRoot27.QuestSequence = list256; @@ -300938,13 +365185,16 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - CollectionsMarshal.AsSpan(list263)[0] = "liza"; + Span span263 = CollectionsMarshal.AsSpan(list263); + index = 0; + span263[index] = "liza"; questRoot28.Author = list263; - num = 5; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - Span span97 = CollectionsMarshal.AsSpan(list264); - ref QuestSequence reference207 = ref span97[0]; + index = 5; + List list264 = new List(index); + CollectionsMarshal.SetCount(list264, index); + Span span264 = CollectionsMarshal.AsSpan(list264); + num = 0; + ref QuestSequence reference207 = ref span264[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 @@ -300952,47 +365202,65 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042175u, new Vector3(386.83142f, 12.541633f, -311.20776f), 957); + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span265[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042175u, new Vector3(386.83142f, 12.541633f, -311.20776f), 957); obj171.Steps = list265; reference207 = obj171; - ref QuestSequence reference208 = ref span97[1]; + num++; + ref QuestSequence reference208 = ref span264[num]; QuestSequence obj172 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - Span span98 = CollectionsMarshal.AsSpan(list266); - ref QuestStep reference209 = ref span98[0]; + index2 = 3; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + Span span266 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + ref QuestStep reference209 = ref span266[num2]; QuestStep questStep37 = new QuestStep(EInteractionType.Interact, 1041400u, new Vector3(422.53748f, 3.1168795f, -268.1468f), 957); num3 = 6; List list267 = new List(num3); CollectionsMarshal.SetCount(list267, num3); - Span span99 = CollectionsMarshal.AsSpan(list267); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span267 = CollectionsMarshal.AsSpan(list267); + num4 = 0; + span267[num4] = null; + num4++; + span267[num4] = null; + num4++; + span267[num4] = null; + num4++; + span267[num4] = null; + num4++; + span267[num4] = null; + num4++; + span267[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep37.CompletionQuestVariablesFlags = list267; reference209 = questStep37; - ref QuestStep reference210 = ref span98[1]; + num2++; + ref QuestStep reference210 = ref span266[num2]; QuestStep questStep38 = new QuestStep(EInteractionType.Interact, 1041398u, new Vector3(437.39978f, 3.1168795f, -248.64581f), 957); - num3 = 6; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - Span span100 = CollectionsMarshal.AsSpan(list268); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list268 = new List(num4); + CollectionsMarshal.SetCount(list268, num4); + Span span268 = CollectionsMarshal.AsSpan(list268); + num3 = 0; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep38.CompletionQuestVariablesFlags = list268; reference210 = questStep38; - ref QuestStep reference211 = ref span98[2]; + num2++; + ref QuestStep reference211 = ref span266[num2]; QuestStep obj173 = new QuestStep(EInteractionType.Interact, 1041399u, new Vector3(365.9265f, 3.1168795f, -245.53296f), 957) { Fly = true @@ -301000,18 +365268,25 @@ public static class AssemblyQuestLoader num3 = 6; List list269 = new List(num3); CollectionsMarshal.SetCount(list269, num3); - Span span101 = CollectionsMarshal.AsSpan(list269); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span269 = CollectionsMarshal.AsSpan(list269); + num4 = 0; + span269[num4] = null; + num4++; + span269[num4] = null; + num4++; + span269[num4] = null; + num4++; + span269[num4] = null; + num4++; + span269[num4] = null; + num4++; + span269[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj173.CompletionQuestVariablesFlags = list269; reference211 = obj173; obj172.Steps = list266; reference208 = obj172; - ref QuestSequence reference212 = ref span97[2]; + num++; + ref QuestSequence reference212 = ref span264[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 @@ -301019,34 +365294,40 @@ public static class AssemblyQuestLoader num2 = 2; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span102 = CollectionsMarshal.AsSpan(list270); - span102[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(398.03082f, 6.081707f, -206.11922f), 957) + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span270[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(398.03082f, 6.081707f, -206.11922f), 957) { Fly = true }; - span102[1] = new QuestStep(EInteractionType.Interact, 1042187u, new Vector3(404.89807f, 7.6153164f, -200.64093f), 957) + index2++; + span270[index2] = new QuestStep(EInteractionType.Interact, 1042187u, new Vector3(404.89807f, 7.6153164f, -200.64093f), 957) { DisableNavmesh = true }; obj174.Steps = list270; reference212 = obj174; - ref QuestSequence reference213 = ref span97[3]; + num++; + ref QuestSequence reference213 = ref span264[num]; QuestSequence obj175 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - Span span103 = CollectionsMarshal.AsSpan(list271); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(398.03082f, 6.081707f, -206.11922f), 957); - span103[1] = new QuestStep(EInteractionType.Interact, 1041402u, new Vector3(411.06274f, 3.1168792f, -268.6046f), 957) + index2 = 2; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(398.03082f, 6.081707f, -206.11922f), 957); + num2++; + span271[num2] = new QuestStep(EInteractionType.Interact, 1041402u, new Vector3(411.06274f, 3.1168792f, -268.6046f), 957) { Fly = true }; obj175.Steps = list271; reference213 = obj175; - ref QuestSequence reference214 = ref span97[4]; + num++; + ref QuestSequence reference214 = ref span264[num]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue @@ -301054,7 +365335,9 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { Fly = true, NextQuestId = new QuestId(4494) @@ -301068,24 +365351,30 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "liza"; + Span span273 = CollectionsMarshal.AsSpan(list273); + index = 0; + span273[index] = "liza"; questRoot29.Author = list273; - num = 6; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span104 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference215 = ref span104[0]; + index = 6; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + Span span274 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference215 = ref span274[num]; QuestSequence obj177 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957); + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957); obj177.Steps = list275; reference215 = obj177; - ref QuestSequence reference216 = ref span104[1]; + num++; + ref QuestSequence reference216 = ref span274[num]; QuestSequence obj178 = new QuestSequence { Sequence = 1 @@ -301093,48 +365382,65 @@ public static class AssemblyQuestLoader num2 = 3; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span105 = CollectionsMarshal.AsSpan(list276); - ref QuestStep reference217 = ref span105[0]; + Span span276 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + ref QuestStep reference217 = ref span276[index2]; QuestStep obj179 = new QuestStep(EInteractionType.Combat, 2012454u, new Vector3(519.6764f, 13.01593f, -339.5285f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list277 = new List(num3); - CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = 14041u; + num4 = 1; + List list277 = new List(num4); + CollectionsMarshal.SetCount(list277, num4); + Span span277 = CollectionsMarshal.AsSpan(list277); + num3 = 0; + span277[num3] = 14041u; obj179.KillEnemyDataIds = list277; num3 = 6; List list278 = new List(num3); CollectionsMarshal.SetCount(list278, num3); - Span span106 = CollectionsMarshal.AsSpan(list278); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span278 = CollectionsMarshal.AsSpan(list278); + num4 = 0; + span278[num4] = null; + num4++; + span278[num4] = null; + num4++; + span278[num4] = null; + num4++; + span278[num4] = null; + num4++; + span278[num4] = null; + num4++; + span278[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj179.CompletionQuestVariablesFlags = list278; reference217 = obj179; - ref QuestStep reference218 = ref span105[1]; + index2++; + ref QuestStep reference218 = ref span276[index2]; QuestStep obj180 = new QuestStep(EInteractionType.Interact, 2012453u, new Vector3(556.02344f, 9.170593f, -382.00964f), 957) { Fly = true }; - num3 = 6; - List list279 = new List(num3); - CollectionsMarshal.SetCount(list279, num3); - Span span107 = CollectionsMarshal.AsSpan(list279); - span107[0] = null; - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list279 = new List(num4); + CollectionsMarshal.SetCount(list279, num4); + Span span279 = CollectionsMarshal.AsSpan(list279); + num3 = 0; + span279[num3] = null; + num3++; + span279[num3] = null; + num3++; + span279[num3] = null; + num3++; + span279[num3] = null; + num3++; + span279[num3] = null; + num3++; + span279[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj180.CompletionQuestVariablesFlags = list279; reference218 = obj180; - ref QuestStep reference219 = ref span105[2]; + index2++; + ref QuestStep reference219 = ref span276[index2]; QuestStep obj181 = new QuestStep(EInteractionType.Interact, 2012452u, new Vector3(515.8617f, 7.4310913f, -413.59583f), 957) { Fly = true @@ -301142,32 +365448,42 @@ public static class AssemblyQuestLoader num3 = 6; List list280 = new List(num3); CollectionsMarshal.SetCount(list280, num3); - Span span108 = CollectionsMarshal.AsSpan(list280); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span280 = CollectionsMarshal.AsSpan(list280); + num4 = 0; + span280[num4] = null; + num4++; + span280[num4] = null; + num4++; + span280[num4] = null; + num4++; + span280[num4] = null; + num4++; + span280[num4] = null; + num4++; + span280[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj181.CompletionQuestVariablesFlags = list280; reference219 = obj181; obj178.Steps = list276; reference216 = obj178; - ref QuestSequence reference220 = ref span104[2]; + num++; + ref QuestSequence reference220 = ref span274[num]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1041404u, new Vector3(503.9596f, 9.601132f, -368.15448f), 957) + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + Span span281 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span281[num2] = new QuestStep(EInteractionType.Interact, 1041404u, new Vector3(503.9596f, 9.601132f, -368.15448f), 957) { Fly = true }; obj182.Steps = list281; reference220 = obj182; - ref QuestSequence reference221 = ref span104[3]; + num++; + ref QuestSequence reference221 = ref span274[num]; QuestSequence obj183 = new QuestSequence { Sequence = 3 @@ -301175,26 +365491,33 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + Span span282 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span282[index2] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { Fly = true }; obj183.Steps = list282; reference221 = obj183; - ref QuestSequence reference222 = ref span104[4]; + num++; + ref QuestSequence reference222 = ref span274[num]; QuestSequence obj184 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - ref QuestStep reference223 = ref CollectionsMarshal.AsSpan(list283)[0]; + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + Span span283 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + ref QuestStep reference223 = ref span283[num2]; QuestStep questStep39 = new QuestStep(EInteractionType.Interact, 1041405u, new Vector3(377.67603f, 3.1168795f, -238.57489f), 957); - num3 = 1; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = new DialogueChoice + num4 = 1; + List list284 = new List(num4); + CollectionsMarshal.SetCount(list284, num4); + Span span284 = CollectionsMarshal.AsSpan(list284); + num3 = 0; + span284[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF102_04494_Q1_000_033"), @@ -301204,7 +365527,8 @@ public static class AssemblyQuestLoader reference223 = questStep39; obj184.Steps = list283; reference222 = obj184; - ref QuestSequence reference224 = ref span104[5]; + num++; + ref QuestSequence reference224 = ref span274[num]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -301212,7 +365536,9 @@ public static class AssemblyQuestLoader num2 = 1; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + Span span285 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span285[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { NextQuestId = new QuestId(4495) }; @@ -301225,24 +365551,30 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "liza"; + Span span286 = CollectionsMarshal.AsSpan(list286); + index = 0; + span286[index] = "liza"; questRoot30.Author = list286; - num = 6; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span109 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference225 = ref span109[0]; + index = 6; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + Span span287 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference225 = ref span287[num]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041406u, new Vector3(405.02014f, 3.0593626f, -212.90918f), 957); + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + Span span288 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span288[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041406u, new Vector3(405.02014f, 3.0593626f, -212.90918f), 957); obj186.Steps = list288; reference225 = obj186; - ref QuestSequence reference226 = ref span109[1]; + num++; + ref QuestSequence reference226 = ref span287[num]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -301250,7 +365582,9 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - ref QuestStep reference227 = ref CollectionsMarshal.AsSpan(list289)[0]; + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + ref QuestStep reference227 = ref span289[index2]; QuestStep obj188 = new QuestStep(EInteractionType.Interact, 1041407u, new Vector3(672.5414f, 41.21271f, 145.46423f), 957) { Fly = true @@ -301258,7 +365592,9 @@ public static class AssemblyQuestLoader num3 = 1; List list290 = new List(num3); CollectionsMarshal.SetCount(list290, num3); - CollectionsMarshal.AsSpan(list290)[0] = new DialogueChoice + Span span290 = CollectionsMarshal.AsSpan(list290); + num4 = 0; + span290[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF103_04495_Q1_000_016"), @@ -301268,21 +365604,25 @@ public static class AssemblyQuestLoader reference227 = obj188; obj187.Steps = list289; reference226 = obj187; - ref QuestSequence reference228 = ref span109[2]; + num++; + ref QuestSequence reference228 = ref span287[num]; QuestSequence obj189 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.Interact, 1041408u, new Vector3(523.7964f, 20.494349f, 346.8833f), 957) + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + Span span291 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span291[num2] = new QuestStep(EInteractionType.Interact, 1041408u, new Vector3(523.7964f, 20.494349f, 346.8833f), 957) { Fly = true }; obj189.Steps = list291; reference228 = obj189; - ref QuestSequence reference229 = ref span109[3]; + num++; + ref QuestSequence reference229 = ref span287[num]; QuestSequence obj190 = new QuestSequence { Sequence = 3 @@ -301290,29 +365630,37 @@ public static class AssemblyQuestLoader num2 = 6; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - Span span110 = CollectionsMarshal.AsSpan(list292); - ref QuestStep reference230 = ref span110[0]; + Span span292 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + ref QuestStep reference230 = ref span292[index2]; QuestStep obj191 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(573.3712f, 22.500977f, 284.17334f), 957) { Fly = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - Span span111 = CollectionsMarshal.AsSpan(list293); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list293 = new List(num4); + CollectionsMarshal.SetCount(list293, num4); + Span span293 = CollectionsMarshal.AsSpan(list293); + num3 = 0; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list293; skipConditions5.StepIf = skipStepConditions5; obj191.SkipConditions = skipConditions5; reference230 = obj191; - ref QuestStep reference231 = ref span110[1]; + index2++; + ref QuestStep reference231 = ref span292[index2]; QuestStep obj192 = new QuestStep(EInteractionType.Interact, 2012455u, new Vector3(574.91406f, 24.979004f, 284.3518f), 957) { IgnoreDistanceToObject = true @@ -301320,102 +365668,140 @@ public static class AssemblyQuestLoader num3 = 6; List list294 = new List(num3); CollectionsMarshal.SetCount(list294, num3); - Span span112 = CollectionsMarshal.AsSpan(list294); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span294 = CollectionsMarshal.AsSpan(list294); + num4 = 0; + span294[num4] = null; + num4++; + span294[num4] = null; + num4++; + span294[num4] = null; + num4++; + span294[num4] = null; + num4++; + span294[num4] = null; + num4++; + span294[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj192.CompletionQuestVariablesFlags = list294; reference231 = obj192; - ref QuestStep reference232 = ref span110[2]; + index2++; + ref QuestStep reference232 = ref span292[index2]; QuestStep obj193 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(603.8397f, 21.10483f, 233.13884f), 957) { Fly = true }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 6; - List list295 = new List(num3); - CollectionsMarshal.SetCount(list295, num3); - Span span113 = CollectionsMarshal.AsSpan(list295); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list295 = new List(num4); + CollectionsMarshal.SetCount(list295, num4); + Span span295 = CollectionsMarshal.AsSpan(list295); + num3 = 0; + span295[num3] = null; + num3++; + span295[num3] = null; + num3++; + span295[num3] = null; + num3++; + span295[num3] = null; + num3++; + span295[num3] = null; + num3++; + span295[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list295; skipConditions6.StepIf = skipStepConditions6; obj193.SkipConditions = skipConditions6; reference232 = obj193; - ref QuestStep reference233 = ref span110[3]; + index2++; + ref QuestStep reference233 = ref span292[index2]; QuestStep questStep40 = new QuestStep(EInteractionType.Interact, 2012457u, new Vector3(604.60803f, 22.903748f, 233.63086f), 957); num3 = 6; List list296 = new List(num3); CollectionsMarshal.SetCount(list296, num3); - Span span114 = CollectionsMarshal.AsSpan(list296); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span296 = CollectionsMarshal.AsSpan(list296); + num4 = 0; + span296[num4] = null; + num4++; + span296[num4] = null; + num4++; + span296[num4] = null; + num4++; + span296[num4] = null; + num4++; + span296[num4] = null; + num4++; + span296[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep40.CompletionQuestVariablesFlags = list296; reference233 = questStep40; - ref QuestStep reference234 = ref span110[4]; + index2++; + ref QuestStep reference234 = ref span292[index2]; QuestStep obj194 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(585.39026f, 36.73129f, 279.6089f), 957) { Fly = true }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list297 = new List(num3); - CollectionsMarshal.SetCount(list297, num3); - Span span115 = CollectionsMarshal.AsSpan(list297); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list297 = new List(num4); + CollectionsMarshal.SetCount(list297, num4); + Span span297 = CollectionsMarshal.AsSpan(list297); + num3 = 0; + span297[num3] = null; + num3++; + span297[num3] = null; + num3++; + span297[num3] = null; + num3++; + span297[num3] = null; + num3++; + span297[num3] = null; + num3++; + span297[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list297; skipConditions7.StepIf = skipStepConditions7; obj194.SkipConditions = skipConditions7; reference234 = obj194; - ref QuestStep reference235 = ref span110[5]; + index2++; + ref QuestStep reference235 = ref span292[index2]; QuestStep questStep41 = new QuestStep(EInteractionType.Interact, 2012456u, new Vector3(584.0084f, 38.254395f, 278.7976f), 957); num3 = 6; List list298 = new List(num3); CollectionsMarshal.SetCount(list298, num3); - Span span116 = CollectionsMarshal.AsSpan(list298); - span116[0] = null; - span116[1] = null; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span298 = CollectionsMarshal.AsSpan(list298); + num4 = 0; + span298[num4] = null; + num4++; + span298[num4] = null; + num4++; + span298[num4] = null; + num4++; + span298[num4] = null; + num4++; + span298[num4] = null; + num4++; + span298[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep41.CompletionQuestVariablesFlags = list298; reference235 = questStep41; obj190.Steps = list292; reference229 = obj190; - ref QuestSequence reference236 = ref span109[4]; + num++; + ref QuestSequence reference236 = ref span287[num]; QuestSequence obj195 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1041408u, new Vector3(523.7964f, 20.494349f, 346.8833f), 957) + index2 = 1; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + Span span299 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span299[num2] = new QuestStep(EInteractionType.Interact, 1041408u, new Vector3(523.7964f, 20.494349f, 346.8833f), 957) { Fly = true }; obj195.Steps = list299; reference236 = obj195; - ref QuestSequence reference237 = ref span109[5]; + num++; + ref QuestSequence reference237 = ref span287[num]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue @@ -301423,15 +365809,19 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - ref QuestStep reference238 = ref CollectionsMarshal.AsSpan(list300)[0]; + Span span300 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + ref QuestStep reference238 = ref span300[index2]; QuestStep obj197 = new QuestStep(EInteractionType.CompleteQuest, 1041402u, new Vector3(411.06274f, 3.1168792f, -268.6046f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; - num3 = 1; - List list301 = new List(num3); - CollectionsMarshal.SetCount(list301, num3); - CollectionsMarshal.AsSpan(list301)[0] = new DialogueChoice + num4 = 1; + List list301 = new List(num4); + CollectionsMarshal.SetCount(list301, num4); + Span span301 = CollectionsMarshal.AsSpan(list301); + num3 = 0; + span301[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF103_04495_Q2_000_045"), @@ -301449,24 +365839,30 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - CollectionsMarshal.AsSpan(list302)[0] = "liza"; + Span span302 = CollectionsMarshal.AsSpan(list302); + index = 0; + span302[index] = "liza"; questRoot31.Author = list302; - num = 6; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - Span span117 = CollectionsMarshal.AsSpan(list303); - ref QuestSequence reference239 = ref span117[0]; + index = 6; + List list303 = new List(index); + CollectionsMarshal.SetCount(list303, index); + Span span303 = CollectionsMarshal.AsSpan(list303); + num = 0; + ref QuestSequence reference239 = ref span303[num]; QuestSequence obj198 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041403u, new Vector3(411.7036f, 3.1168795f, -266.89557f), 957); + index2 = 1; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + Span span304 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + span304[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041403u, new Vector3(411.7036f, 3.1168795f, -266.89557f), 957); obj198.Steps = list304; reference239 = obj198; - ref QuestSequence reference240 = ref span117[1]; + num++; + ref QuestSequence reference240 = ref span303[num]; QuestSequence obj199 = new QuestSequence { Sequence = 1 @@ -301474,32 +365870,38 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.Interact, 2012460u, new Vector3(240.52795f, 7.095398f, -556.5729f), 957) + Span span305 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span305[index2] = new QuestStep(EInteractionType.Interact, 2012460u, new Vector3(240.52795f, 7.095398f, -556.5729f), 957) { Fly = true }; obj199.Steps = list305; reference240 = obj199; - ref QuestSequence reference241 = ref span117[2]; + num++; + ref QuestSequence reference241 = ref span303[num]; QuestSequence obj200 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - Span span118 = CollectionsMarshal.AsSpan(list306); - span118[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(274.3244f, 6.2260103f, -553.4195f), 957) + index2 = 2; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + Span span306 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + span306[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(274.3244f, 6.2260103f, -553.4195f), 957) { Mount = false }; - span118[1] = new QuestStep(EInteractionType.Interact, 1041410u, new Vector3(271.5343f, 6.226011f, -556.54236f), 957) + num2++; + span306[num2] = new QuestStep(EInteractionType.Interact, 1041410u, new Vector3(271.5343f, 6.226011f, -556.54236f), 957) { StopDistance = 5f }; obj200.Steps = list306; reference241 = obj200; - ref QuestSequence reference242 = ref span117[3]; + num++; + ref QuestSequence reference242 = ref span303[num]; QuestSequence obj201 = new QuestSequence { Sequence = 3 @@ -301507,27 +365909,33 @@ public static class AssemblyQuestLoader num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + Span span307 = CollectionsMarshal.AsSpan(list307); + index2 = 0; + span307[index2] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj201.Steps = list307; reference242 = obj201; - ref QuestSequence reference243 = ref span117[4]; + num++; + ref QuestSequence reference243 = ref span303[num]; QuestSequence obj202 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1041401u, new Vector3(411.06274f, 3.1168792f, -268.6046f), 957) + index2 = 1; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + Span span308 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span308[num2] = new QuestStep(EInteractionType.Interact, 1041401u, new Vector3(411.06274f, 3.1168792f, -268.6046f), 957) { Fly = true }; obj202.Steps = list308; reference243 = obj202; - ref QuestSequence reference244 = ref span117[5]; + num++; + ref QuestSequence reference244 = ref span303[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -301535,7 +365943,9 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + Span span309 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span309[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { Fly = true, NextQuestId = new QuestId(4497) @@ -301549,26 +365959,33 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - CollectionsMarshal.AsSpan(list310)[0] = "liza"; + Span span310 = CollectionsMarshal.AsSpan(list310); + index = 0; + span310[index] = "liza"; questRoot32.Author = list310; - num = 9; - List list311 = new List(num); - CollectionsMarshal.SetCount(list311, num); - Span span119 = CollectionsMarshal.AsSpan(list311); - ref QuestSequence reference245 = ref span119[0]; + index = 9; + List list311 = new List(index); + CollectionsMarshal.SetCount(list311, index); + Span span311 = CollectionsMarshal.AsSpan(list311); + num = 0; + ref QuestSequence reference245 = ref span311[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - ref QuestStep reference246 = ref CollectionsMarshal.AsSpan(list312)[0]; + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + Span span312 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + ref QuestStep reference246 = ref span312[num2]; QuestStep questStep42 = new QuestStep(EInteractionType.AcceptQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957); num3 = 1; List list313 = new List(num3); CollectionsMarshal.SetCount(list313, num3); - CollectionsMarshal.AsSpan(list313)[0] = new DialogueChoice + Span span313 = CollectionsMarshal.AsSpan(list313); + num4 = 0; + span313[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF201_04497_Q1_000_012"), @@ -301578,7 +365995,8 @@ public static class AssemblyQuestLoader reference246 = questStep42; obj204.Steps = list312; reference245 = obj204; - ref QuestSequence reference247 = ref span119[1]; + num++; + ref QuestSequence reference247 = ref span311[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -301586,35 +366004,41 @@ public static class AssemblyQuestLoader num2 = 2; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span120 = CollectionsMarshal.AsSpan(list314); - span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + Span span314 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span314[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - span120[1] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + index2++; + span314[index2] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj205.Steps = list314; reference247 = obj205; - ref QuestSequence reference248 = ref span119[2]; + num++; + ref QuestSequence reference248 = ref span311[num]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - Span span121 = CollectionsMarshal.AsSpan(list315); - span121[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + index2 = 2; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + Span span315 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span315[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Mount = true }; - span121[1] = new QuestStep(EInteractionType.Interact, 1041412u, new Vector3(93.88867f, 8.462445f, 566.0028f), 957) + num2++; + span315[num2] = new QuestStep(EInteractionType.Interact, 1041412u, new Vector3(93.88867f, 8.462445f, 566.0028f), 957) { Fly = true }; obj206.Steps = list315; reference248 = obj206; - ref QuestSequence reference249 = ref span119[3]; + num++; + ref QuestSequence reference249 = ref span311[num]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -301622,7 +366046,9 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - ref QuestStep reference250 = ref CollectionsMarshal.AsSpan(list316)[0]; + Span span316 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + ref QuestStep reference250 = ref span316[index2]; QuestStep obj208 = new QuestStep(EInteractionType.Combat, null, new Vector3(-282.0419f, 67.704025f, -545.84924f), 957) { StopDistance = 1f, @@ -301630,29 +366056,35 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list317 = new List(num3); - CollectionsMarshal.SetCount(list317, num3); - CollectionsMarshal.AsSpan(list317)[0] = 14039u; + num4 = 1; + List list317 = new List(num4); + CollectionsMarshal.SetCount(list317, num4); + Span span317 = CollectionsMarshal.AsSpan(list317); + num3 = 0; + span317[num3] = 14039u; obj208.KillEnemyDataIds = list317; reference250 = obj208; obj207.Steps = list316; reference249 = obj207; - ref QuestSequence reference251 = ref span119[4]; + num++; + ref QuestSequence reference251 = ref span311[num]; QuestSequence obj209 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list318 = new List(num2); - CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.Interact, 1041415u, new Vector3(-282.3072f, 67.844055f, -543.1144f), 957) + index2 = 1; + List list318 = new List(index2); + CollectionsMarshal.SetCount(list318, index2); + Span span318 = CollectionsMarshal.AsSpan(list318); + num2 = 0; + span318[num2] = new QuestStep(EInteractionType.Interact, 1041415u, new Vector3(-282.3072f, 67.844055f, -543.1144f), 957) { StopDistance = 7f }; obj209.Steps = list318; reference251 = obj209; - ref QuestSequence reference252 = ref span119[5]; + num++; + ref QuestSequence reference252 = ref span311[num]; QuestSequence obj210 = new QuestSequence { Sequence = 5 @@ -301660,27 +366092,33 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.Interact, 1041417u, new Vector3(388.7235f, 22.369963f, -488.42606f), 957) + Span span319 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + span319[index2] = new QuestStep(EInteractionType.Interact, 1041417u, new Vector3(388.7235f, 22.369963f, -488.42606f), 957) { Fly = true }; obj210.Steps = list319; reference252 = obj210; - ref QuestSequence reference253 = ref span119[6]; + num++; + ref QuestSequence reference253 = ref span311[num]; QuestSequence obj211 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + index2 = 1; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + Span span320 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + span320[num2] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj211.Steps = list320; reference253 = obj211; - ref QuestSequence reference254 = ref span119[7]; + num++; + ref QuestSequence reference254 = ref span311[num]; QuestSequence obj212 = new QuestSequence { Sequence = 7 @@ -301688,18 +366126,23 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.Interact, 1041421u, new Vector3(401.8158f, 3.0714467f, -214.74023f), 957); + Span span321 = CollectionsMarshal.AsSpan(list321); + index2 = 0; + span321[index2] = new QuestStep(EInteractionType.Interact, 1041421u, new Vector3(401.8158f, 3.0714467f, -214.74023f), 957); obj212.Steps = list321; reference254 = obj212; - ref QuestSequence reference255 = ref span119[8]; + num++; + ref QuestSequence reference255 = ref span311[num]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957); + index2 = 1; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + Span span322 = CollectionsMarshal.AsSpan(list322); + num2 = 0; + span322[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957); obj213.Steps = list322; reference255 = obj213; questRoot32.QuestSequence = list311; @@ -301709,13 +366152,16 @@ public static class AssemblyQuestLoader num = 1; List list323 = new List(num); CollectionsMarshal.SetCount(list323, num); - CollectionsMarshal.AsSpan(list323)[0] = "liza"; + Span span323 = CollectionsMarshal.AsSpan(list323); + index = 0; + span323[index] = "liza"; questRoot33.Author = list323; - num = 5; - List list324 = new List(num); - CollectionsMarshal.SetCount(list324, num); - Span span122 = CollectionsMarshal.AsSpan(list324); - ref QuestSequence reference256 = ref span122[0]; + index = 5; + List list324 = new List(index); + CollectionsMarshal.SetCount(list324, index); + Span span324 = CollectionsMarshal.AsSpan(list324); + num = 0; + ref QuestSequence reference256 = ref span324[num]; QuestSequence obj214 = new QuestSequence { Sequence = 0 @@ -301723,21 +366169,27 @@ public static class AssemblyQuestLoader num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041753u, new Vector3(-321.49237f, 22.009079f, 424.00232f), 958); + Span span325 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span325[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041753u, new Vector3(-321.49237f, 22.009079f, 424.00232f), 958); obj214.Steps = list325; reference256 = obj214; - ref QuestSequence reference257 = ref span122[1]; + num++; + ref QuestSequence reference257 = ref span324[num]; QuestSequence obj215 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.Interact, 1041754u, new Vector3(-340.84082f, 22f, 500.57214f), 958); + index2 = 1; + List list326 = new List(index2); + CollectionsMarshal.SetCount(list326, index2); + Span span326 = CollectionsMarshal.AsSpan(list326); + num2 = 0; + span326[num2] = new QuestStep(EInteractionType.Interact, 1041754u, new Vector3(-340.84082f, 22f, 500.57214f), 958); obj215.Steps = list326; reference257 = obj215; - ref QuestSequence reference258 = ref span122[2]; + num++; + ref QuestSequence reference258 = ref span324[num]; QuestSequence obj216 = new QuestSequence { Sequence = 2 @@ -301745,63 +366197,88 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 1041754u, new Vector3(-340.84082f, 22f, 500.57214f), 958); + Span span327 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span327[index2] = new QuestStep(EInteractionType.Interact, 1041754u, new Vector3(-340.84082f, 22f, 500.57214f), 958); obj216.Steps = list327; reference258 = obj216; - ref QuestSequence reference259 = ref span122[3]; + num++; + ref QuestSequence reference259 = ref span324[num]; QuestSequence obj217 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - Span span123 = CollectionsMarshal.AsSpan(list328); - ref QuestStep reference260 = ref span123[0]; + index2 = 3; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + Span span328 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + ref QuestStep reference260 = ref span328[num2]; QuestStep questStep43 = new QuestStep(EInteractionType.Interact, 2012616u, new Vector3(-332.3263f, 22.354431f, 457.7859f), 958); num3 = 6; List list329 = new List(num3); CollectionsMarshal.SetCount(list329, num3); - Span span124 = CollectionsMarshal.AsSpan(list329); - span124[0] = null; - span124[1] = null; - span124[2] = null; - span124[3] = null; - span124[4] = null; - span124[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span329 = CollectionsMarshal.AsSpan(list329); + num4 = 0; + span329[num4] = null; + num4++; + span329[num4] = null; + num4++; + span329[num4] = null; + num4++; + span329[num4] = null; + num4++; + span329[num4] = null; + num4++; + span329[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep43.CompletionQuestVariablesFlags = list329; reference260 = questStep43; - ref QuestStep reference261 = ref span123[1]; + num2++; + ref QuestStep reference261 = ref span328[num2]; QuestStep questStep44 = new QuestStep(EInteractionType.Interact, 2012618u, new Vector3(-338.03314f, 23.727722f, 394.88806f), 958); - num3 = 6; - List list330 = new List(num3); - CollectionsMarshal.SetCount(list330, num3); - Span span125 = CollectionsMarshal.AsSpan(list330); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list330 = new List(num4); + CollectionsMarshal.SetCount(list330, num4); + Span span330 = CollectionsMarshal.AsSpan(list330); + num3 = 0; + span330[num3] = null; + num3++; + span330[num3] = null; + num3++; + span330[num3] = null; + num3++; + span330[num3] = null; + num3++; + span330[num3] = null; + num3++; + span330[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep44.CompletionQuestVariablesFlags = list330; reference261 = questStep44; - ref QuestStep reference262 = ref span123[2]; + num2++; + ref QuestStep reference262 = ref span328[num2]; QuestStep questStep45 = new QuestStep(EInteractionType.Interact, 2012617u, new Vector3(-434.8974f, 22.262878f, 425.58936f), 958); num3 = 6; List list331 = new List(num3); CollectionsMarshal.SetCount(list331, num3); - Span span126 = CollectionsMarshal.AsSpan(list331); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span331 = CollectionsMarshal.AsSpan(list331); + num4 = 0; + span331[num4] = null; + num4++; + span331[num4] = null; + num4++; + span331[num4] = null; + num4++; + span331[num4] = null; + num4++; + span331[num4] = null; + num4++; + span331[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep45.CompletionQuestVariablesFlags = list331; reference262 = questStep45; obj217.Steps = list328; reference259 = obj217; - ref QuestSequence reference263 = ref span122[4]; + num++; + ref QuestSequence reference263 = ref span324[num]; QuestSequence obj218 = new QuestSequence { Sequence = byte.MaxValue @@ -301809,7 +366286,9 @@ public static class AssemblyQuestLoader num2 = 1; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041755u, new Vector3(-340.35254f, 22f, 502.037f), 958); + Span span332 = CollectionsMarshal.AsSpan(list332); + index2 = 0; + span332[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041755u, new Vector3(-340.35254f, 22f, 502.037f), 958); obj218.Steps = list332; reference263 = obj218; questRoot33.QuestSequence = list324; @@ -301819,26 +366298,33 @@ public static class AssemblyQuestLoader num = 1; List list333 = new List(num); CollectionsMarshal.SetCount(list333, num); - CollectionsMarshal.AsSpan(list333)[0] = "goatzone"; + Span span333 = CollectionsMarshal.AsSpan(list333); + index = 0; + span333[index] = "goatzone"; questRoot34.Author = list333; - num = 3; - List list334 = new List(num); - CollectionsMarshal.SetCount(list334, num); - Span span127 = CollectionsMarshal.AsSpan(list334); - ref QuestSequence reference264 = ref span127[0]; + index = 3; + List list334 = new List(index); + CollectionsMarshal.SetCount(list334, index); + Span span334 = CollectionsMarshal.AsSpan(list334); + num = 0; + ref QuestSequence reference264 = ref span334[num]; QuestSequence obj219 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - ref QuestStep reference265 = ref CollectionsMarshal.AsSpan(list335)[0]; + index2 = 1; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + Span span335 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + ref QuestStep reference265 = ref span335[num2]; QuestStep questStep46 = new QuestStep(EInteractionType.AcceptQuest, 1041755u, new Vector3(-340.35254f, 22f, 502.037f), 958); - num3 = 1; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = new DialogueChoice + num4 = 1; + List list336 = new List(num4); + CollectionsMarshal.SetCount(list336, num4); + Span span336 = CollectionsMarshal.AsSpan(list336); + num3 = 0; + span336[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC102_04499_Q1_000_000"), @@ -301848,7 +366334,8 @@ public static class AssemblyQuestLoader reference265 = questStep46; obj219.Steps = list335; reference264 = obj219; - ref QuestSequence reference266 = ref span127[1]; + num++; + ref QuestSequence reference266 = ref span334[num]; QuestSequence obj220 = new QuestSequence { Sequence = 1 @@ -301856,21 +366343,26 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.Interact, 2012620u, new Vector3(64.68298f, -14.358765f, 395.22388f), 958) + Span span337 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span337[index2] = new QuestStep(EInteractionType.Interact, 2012620u, new Vector3(64.68298f, -14.358765f, 395.22388f), 958) { Fly = true }; obj220.Steps = list337; reference266 = obj220; - ref QuestSequence reference267 = ref span127[2]; + num++; + ref QuestSequence reference267 = ref span334[num]; QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041754u, new Vector3(-340.84082f, 22f, 500.57214f), 958) + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + Span span338 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span338[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041754u, new Vector3(-340.84082f, 22f, 500.57214f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass, NextQuestId = new QuestId(4500) @@ -301888,13 +366380,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "goatzone"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "goatzone"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -301902,21 +366397,27 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041755u, new Vector3(-340.35254f, 22f, 502.037f), 958); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041755u, new Vector3(-340.35254f, 22f, 502.037f), 958); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1040963u, new Vector3(-325.27655f, 22.462305f, 450.49194f), 958); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1040963u, new Vector3(-325.27655f, 22.462305f, 450.49194f), 958); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -301924,33 +366425,40 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1041760u, new Vector3(413.87048f, -18.81719f, 612.05444f), 958) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1041760u, new Vector3(413.87048f, -18.81719f, 612.05444f), 958) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + ref QuestStep reference5 = ref span6[num2]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 2012622u, new Vector3(413.35156f, -18.814392f, 614.43494f), 958); int num3 = 2; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span2 = CollectionsMarshal.AsSpan(list7); - span2[0] = new DialogueChoice + Span span7 = CollectionsMarshal.AsSpan(list7); + int num4 = 0; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC103_04500_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKZC103_04500_A1_000_001") }; - span2[1] = new DialogueChoice + num4++; + span7[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC103_04500_Q2_000_000"), @@ -301968,13 +366476,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "goatzone"; + Span span8 = CollectionsMarshal.AsSpan(list8); + index = 0; + span8[index] = "goatzone"; questRoot2.Author = list8; - num = 5; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span3 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span3[0]; + index = 5; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + Span span9 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span9[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -301982,37 +366493,45 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041761u, new Vector3(414.51123f, -18.808798f, 613.1837f), 958) + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041761u, new Vector3(414.51123f, -18.808798f, 613.1837f), 958) { Fly = true }; obj5.Steps = list10; reference6 = obj5; - ref QuestSequence reference7 = ref span3[1]; + num++; + ref QuestSequence reference7 = ref span9[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference8 = ref span11[num2]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, 2012329u, new Vector3(376.82153f, -18.875488f, 512.65735f), 958) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - Span span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = 14094u; - span4[1] = 14095u; + num4 = 2; + List list12 = new List(num4); + CollectionsMarshal.SetCount(list12, num4); + Span span12 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span12[num3] = 14094u; + num3++; + span12[num3] = 14095u; obj7.KillEnemyDataIds = list12; reference8 = obj7; obj6.Steps = list11; reference7 = obj6; - ref QuestSequence reference9 = ref span3[2]; + num++; + ref QuestSequence reference9 = ref span9[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -302020,24 +366539,30 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1041760u, new Vector3(413.87048f, -18.81719f, 612.05444f), 958) + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.Interact, 1041760u, new Vector3(413.87048f, -18.81719f, 612.05444f), 958) { Fly = true }; obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference10 = ref span3[3]; + num++; + ref QuestSequence reference10 = ref span9[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1041761u, new Vector3(414.51123f, -18.808798f, 613.1837f), 958); + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.Interact, 1041761u, new Vector3(414.51123f, -18.808798f, 613.1837f), 958); obj9.Steps = list14; reference10 = obj9; - ref QuestSequence reference11 = ref span3[4]; + num++; + ref QuestSequence reference11 = ref span9[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -302045,7 +366570,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040963u, new Vector3(-325.27655f, 22.462305f, 450.49194f), 958) + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040963u, new Vector3(-325.27655f, 22.462305f, 450.49194f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -302058,24 +366585,30 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + Span span16 = CollectionsMarshal.AsSpan(list16); + index = 0; + span16[index] = "liza"; questRoot3.Author = list16; - num = 3; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span5 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span5[0]; + index = 3; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + Span span17 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span17[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041765u, new Vector3(-323.4455f, 22f, 487.81555f), 958); + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041765u, new Vector3(-323.4455f, 22f, 487.81555f), 958); obj11.Steps = list18; reference12 = obj11; - ref QuestSequence reference13 = ref span5[1]; + num++; + ref QuestSequence reference13 = ref span17[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -302083,21 +366616,26 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1041766u, new Vector3(513.6339f, -19.82022f, -309.1936f), 958) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.Interact, 1041766u, new Vector3(513.6339f, -19.82022f, -309.1936f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; obj12.Steps = list19; reference13 = obj12; - ref QuestSequence reference14 = ref span5[2]; + num++; + ref QuestSequence reference14 = ref span17[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041767u, new Vector3(541.03906f, -36.65f, -132.46362f), 958); + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041767u, new Vector3(541.03906f, -36.65f, -132.46362f), 958); obj13.Steps = list20; reference14 = obj13; questRoot3.QuestSequence = list17; @@ -302107,13 +366645,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "goatzone"; + Span span21 = CollectionsMarshal.AsSpan(list21); + index = 0; + span21[index] = "goatzone"; questRoot4.Author = list21; - num = 5; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span6 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference15 = ref span6[0]; + index = 5; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + Span span22 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference15 = ref span22[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -302121,12 +366662,16 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list23)[0]; + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + ref QuestStep reference16 = ref span23[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.AcceptQuest, 1041767u, new Vector3(541.03906f, -36.65f, -132.46362f), 958); num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = new DialogueChoice + Span span24 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span24[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD102_04503_Q1_000_000"), @@ -302136,21 +366681,25 @@ public static class AssemblyQuestLoader reference16 = questStep2; obj14.Steps = list23; reference15 = obj14; - ref QuestSequence reference17 = ref span6[1]; + num++; + ref QuestSequence reference17 = ref span22[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1041769u, new Vector3(215.198f, 10.8f, -104.509094f), 958) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.Interact, 1041769u, new Vector3(215.198f, 10.8f, -104.509094f), 958) { Fly = true }; obj15.Steps = list25; reference17 = obj15; - ref QuestSequence reference18 = ref span6[2]; + num++; + ref QuestSequence reference18 = ref span22[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -302158,21 +366707,27 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 2012623u, new Vector3(168.26111f, 11.36792f, -102.92212f), 958); + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.Interact, 2012623u, new Vector3(168.26111f, 11.36792f, -102.92212f), 958); obj16.Steps = list26; reference18 = obj16; - ref QuestSequence reference19 = ref span6[3]; + num++; + ref QuestSequence reference19 = ref span22[num]; QuestSequence obj17 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1041769u, new Vector3(215.198f, 10.8f, -104.509094f), 958); + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.Interact, 1041769u, new Vector3(215.198f, 10.8f, -104.509094f), 958); obj17.Steps = list27; reference19 = obj17; - ref QuestSequence reference20 = ref span6[4]; + num++; + ref QuestSequence reference20 = ref span22[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -302180,7 +366735,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041767u, new Vector3(541.03906f, -36.65f, -132.46362f), 958) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041767u, new Vector3(541.03906f, -36.65f, -132.46362f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium, NextQuestId = new QuestId(4504) @@ -302194,26 +366751,33 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "goatzone"; + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + span29[index] = "goatzone"; questRoot5.Author = list29; - num = 4; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span7 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference21 = ref span7[0]; + index = 4; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + Span span30 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference21 = ref span30[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - ref QuestStep reference22 = ref CollectionsMarshal.AsSpan(list31)[0]; + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref QuestStep reference22 = ref span31[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.AcceptQuest, 1041768u, new Vector3(539.9404f, -36.65f, -132.37207f), 958); - num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new DialogueChoice + num4 = 1; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + Span span32 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span32[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD103_04504_Q1_000_000"), @@ -302223,7 +366787,8 @@ public static class AssemblyQuestLoader reference22 = questStep3; obj19.Steps = list31; reference21 = obj19; - ref QuestSequence reference23 = ref span7[1]; + num++; + ref QuestSequence reference23 = ref span30[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -302231,21 +366796,26 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1041770u, new Vector3(157.30518f, 23.164677f, -415.36584f), 958) + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.Interact, 1041770u, new Vector3(157.30518f, 23.164677f, -415.36584f), 958) { Fly = true }; obj20.Steps = list33; reference23 = obj20; - ref QuestSequence reference24 = ref span7[2]; + num++; + ref QuestSequence reference24 = ref span30[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list34)[0]; + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + ref QuestStep reference25 = ref span34[num2]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, 2012331u, new Vector3(150.89636f, 23.147888f, -414.9386f), 958) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -302253,12 +366823,15 @@ public static class AssemblyQuestLoader num3 = 1; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - CollectionsMarshal.AsSpan(list35)[0] = 14092u; + Span span35 = CollectionsMarshal.AsSpan(list35); + num4 = 0; + span35[num4] = 14092u; obj22.KillEnemyDataIds = list35; reference25 = obj22; obj21.Steps = list34; reference24 = obj21; - ref QuestSequence reference26 = ref span7[3]; + num++; + ref QuestSequence reference26 = ref span30[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -302266,12 +366839,16 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list36)[0]; + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + ref QuestStep reference27 = ref span36[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.CompleteQuest, 2012629u, new Vector3(155.74878f, 23.147888f, -414.29773f), 958); - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = new DialogueChoice + num4 = 1; + List list37 = new List(num4); + CollectionsMarshal.SetCount(list37, num4); + Span span37 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span37[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD103_04504_Q2_000_000"), @@ -302289,28 +366866,34 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - CollectionsMarshal.AsSpan(list38)[0] = "goatzone"; + Span span38 = CollectionsMarshal.AsSpan(list38); + index = 0; + span38[index] = "goatzone"; questRoot6.Author = list38; - num = 5; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - Span span8 = CollectionsMarshal.AsSpan(list39); - ref QuestSequence reference28 = ref span8[0]; + index = 5; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + Span span39 = CollectionsMarshal.AsSpan(list39); + num = 0; + ref QuestSequence reference28 = ref span39[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041770u, new Vector3(157.30518f, 23.164677f, -415.36584f), 958) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041770u, new Vector3(157.30518f, 23.164677f, -415.36584f), 958) { StopDistance = 7f, Fly = true }; obj24.Steps = list40; reference28 = obj24; - ref QuestSequence reference29 = ref span8[1]; + num++; + ref QuestSequence reference29 = ref span39[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -302318,27 +366901,33 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1041771u, new Vector3(-157.67151f, 10.8f, -530.6325f), 958) + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.Interact, 1041771u, new Vector3(-157.67151f, 10.8f, -530.6325f), 958) { Fly = true }; obj25.Steps = list41; reference29 = obj25; - ref QuestSequence reference30 = ref span8[2]; + num++; + ref QuestSequence reference30 = ref span39[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1041773u, new Vector3(-78.446655f, 10.5f, -590.08167f), 958) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.Interact, 1041773u, new Vector3(-78.446655f, 10.5f, -590.08167f), 958) { Fly = true }; obj26.Steps = list42; reference30 = obj26; - ref QuestSequence reference31 = ref span8[3]; + num++; + ref QuestSequence reference31 = ref span39[num]; QuestSequence obj27 = new QuestSequence { Sequence = 3 @@ -302346,18 +366935,23 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1041774u, new Vector3(-44.815796f, 10.8f, -614.40454f), 958); + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.Interact, 1041774u, new Vector3(-44.815796f, 10.8f, -614.40454f), 958); obj27.Steps = list43; reference31 = obj27; - ref QuestSequence reference32 = ref span8[4]; + num++; + ref QuestSequence reference32 = ref span39[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - ref QuestStep reference33 = ref CollectionsMarshal.AsSpan(list44)[0]; + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + ref QuestStep reference33 = ref span44[num2]; QuestStep obj29 = new QuestStep(EInteractionType.CompleteQuest, 1041767u, new Vector3(541.03906f, -36.65f, -132.46362f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium @@ -302365,7 +366959,9 @@ public static class AssemblyQuestLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - CollectionsMarshal.AsSpan(list45)[0] = new DialogueChoice + Span span45 = CollectionsMarshal.AsSpan(list45); + num4 = 0; + span45[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD104_04505_Q1_000_000"), @@ -302383,13 +366979,16 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "goatzone"; + Span span46 = CollectionsMarshal.AsSpan(list46); + index = 0; + span46[index] = "goatzone"; questRoot7.Author = list46; - num = 7; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span9 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference34 = ref span9[0]; + index = 7; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + Span span47 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference34 = ref span47[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -302397,15 +366996,19 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list48)[0]; + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + ref QuestStep reference35 = ref span48[index2]; QuestStep obj31 = new QuestStep(EInteractionType.AcceptQuest, 1041776u, new Vector3(541.89355f, -36.65f, -132.64673f), 958) { StopDistance = 5f }; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = new DialogueChoice + num4 = 1; + List list49 = new List(num4); + CollectionsMarshal.SetCount(list49, num4); + Span span49 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span49[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD201_04506_Q1_000_000"), @@ -302415,15 +367018,18 @@ public static class AssemblyQuestLoader reference35 = obj31; obj30.Steps = list48; reference34 = obj30; - ref QuestSequence reference36 = ref span9[1]; + num++; + ref QuestSequence reference36 = ref span47[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - ref QuestStep reference37 = ref CollectionsMarshal.AsSpan(list50)[0]; + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + ref QuestStep reference37 = ref span50[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1041754u, new Vector3(-340.84082f, 22f, 500.57214f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass @@ -302431,7 +367037,9 @@ public static class AssemblyQuestLoader num3 = 1; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = new DialogueChoice + Span span51 = CollectionsMarshal.AsSpan(list51); + num4 = 0; + span51[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD201_04506_Q2_000_000"), @@ -302441,7 +367049,8 @@ public static class AssemblyQuestLoader reference37 = obj33; obj32.Steps = list50; reference36 = obj32; - ref QuestSequence reference38 = ref span9[2]; + num++; + ref QuestSequence reference38 = ref span47[num]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -302449,27 +367058,33 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1041778u, new Vector3(-322.10272f, 10.85f, -576.04333f), 958) + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.Interact, 1041778u, new Vector3(-322.10272f, 10.85f, -576.04333f), 958) { Fly = true }; obj34.Steps = list52; reference38 = obj34; - ref QuestSequence reference39 = ref span9[3]; + num++; + ref QuestSequence reference39 = ref span47[num]; QuestSequence obj35 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 2012746u, new Vector3(-580.6211f, 10.482849f, -721.18713f), 958) + index2 = 1; + List list53 = new List(index2); + CollectionsMarshal.SetCount(list53, index2); + Span span53 = CollectionsMarshal.AsSpan(list53); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.Interact, 2012746u, new Vector3(-580.6211f, 10.482849f, -721.18713f), 958) { Fly = true }; obj35.Steps = list53; reference39 = obj35; - ref QuestSequence reference40 = ref span9[4]; + num++; + ref QuestSequence reference40 = ref span47[num]; QuestSequence obj36 = new QuestSequence { Sequence = 4 @@ -302477,32 +367092,40 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list54)[0]; + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + ref QuestStep reference41 = ref span54[index2]; QuestStep obj37 = new QuestStep(EInteractionType.Combat, null, new Vector3(-276.31705f, 10.799999f, -592.71124f), 958) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = 14091u; + num4 = 1; + List list55 = new List(num4); + CollectionsMarshal.SetCount(list55, num4); + Span span55 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span55[num3] = 14091u; obj37.KillEnemyDataIds = list55; reference41 = obj37; obj36.Steps = list54; reference40 = obj36; - ref QuestSequence reference42 = ref span9[5]; + num++; + ref QuestSequence reference42 = ref span47[num]; QuestSequence obj38 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1041782u, new Vector3(-274.0063f, 10.8f, -590.41736f), 958); + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.Interact, 1041782u, new Vector3(-274.0063f, 10.8f, -590.41736f), 958); obj38.Steps = list56; reference42 = obj38; - ref QuestSequence reference43 = ref span9[6]; + num++; + ref QuestSequence reference43 = ref span47[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -302510,7 +367133,9 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list57)[0]; + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + ref QuestStep reference44 = ref span57[index2]; QuestStep obj40 = new QuestStep(EInteractionType.CompleteQuest, 1041784u, new Vector3(-342.67188f, 22f, 499.07666f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass @@ -302518,7 +367143,9 @@ public static class AssemblyQuestLoader num3 = 1; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - CollectionsMarshal.AsSpan(list58)[0] = new DialogueChoice + Span span58 = CollectionsMarshal.AsSpan(list58); + num4 = 0; + span58[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD201_04506_Q3_000_000"), @@ -302535,24 +367162,30 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "liza"; + Span span59 = CollectionsMarshal.AsSpan(list59); + index = 0; + span59[index] = "liza"; questRoot8.Author = list59; - num = 5; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span10 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference45 = ref span10[0]; + index = 5; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + Span span60 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference45 = ref span60[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041328u, new Vector3(166.39954f, 9.457411f, 236.34692f), 961); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041328u, new Vector3(166.39954f, 9.457411f, 236.34692f), 961); obj41.Steps = list61; reference45 = obj41; - ref QuestSequence reference46 = ref span10[1]; + num++; + ref QuestSequence reference46 = ref span60[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -302560,21 +367193,27 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1041329u, new Vector3(233.99707f, 8.289929f, 270.71033f), 961); + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.Interact, 1041329u, new Vector3(233.99707f, 8.289929f, 270.71033f), 961); obj42.Steps = list62; reference46 = obj42; - ref QuestSequence reference47 = ref span10[2]; + num++; + ref QuestSequence reference47 = ref span60[num]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1041329u, new Vector3(233.99707f, 8.289929f, 270.71033f), 961); + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.Interact, 1041329u, new Vector3(233.99707f, 8.289929f, 270.71033f), 961); obj43.Steps = list63; reference47 = obj43; - ref QuestSequence reference48 = ref span10[3]; + num++; + ref QuestSequence reference48 = ref span60[num]; QuestSequence obj44 = new QuestSequence { Sequence = 3 @@ -302582,60 +367221,84 @@ public static class AssemblyQuestLoader num2 = 3; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span11 = CollectionsMarshal.AsSpan(list64); - ref QuestStep reference49 = ref span11[0]; + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + ref QuestStep reference49 = ref span64[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1037947u, new Vector3(115.28186f, 7.385857f, 306.11108f), 961); - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span12 = CollectionsMarshal.AsSpan(list65); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list65 = new List(num4); + CollectionsMarshal.SetCount(list65, num4); + Span span65 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list65; reference49 = questStep5; - ref QuestStep reference50 = ref span11[1]; + index2++; + ref QuestStep reference50 = ref span64[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1037945u, new Vector3(144.79285f, 8.025643f, 202.47192f), 961); num3 = 6; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - Span span13 = CollectionsMarshal.AsSpan(list66); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span66 = CollectionsMarshal.AsSpan(list66); + num4 = 0; + span66[num4] = null; + num4++; + span66[num4] = null; + num4++; + span66[num4] = null; + num4++; + span66[num4] = null; + num4++; + span66[num4] = null; + num4++; + span66[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list66; reference50 = questStep6; - ref QuestStep reference51 = ref span11[2]; + index2++; + ref QuestStep reference51 = ref span64[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1037962u, new Vector3(180.8346f, 10.385859f, 113.35925f), 961); - num3 = 6; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - Span span14 = CollectionsMarshal.AsSpan(list67); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list67 = new List(num4); + CollectionsMarshal.SetCount(list67, num4); + Span span67 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = null; + num3++; + span67[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list67; reference51 = questStep7; obj44.Steps = list64; reference48 = obj44; - ref QuestSequence reference52 = ref span10[4]; + num++; + ref QuestSequence reference52 = ref span60[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041328u, new Vector3(166.39954f, 9.457411f, 236.34692f), 961); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041328u, new Vector3(166.39954f, 9.457411f, 236.34692f), 961); obj45.Steps = list68; reference52 = obj45; questRoot8.QuestSequence = list60; @@ -302645,13 +367308,16 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "liza"; + Span span69 = CollectionsMarshal.AsSpan(list69); + index = 0; + span69[index] = "liza"; questRoot9.Author = list69; - num = 4; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span15 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference53 = ref span15[0]; + index = 4; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + Span span70 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference53 = ref span70[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -302659,20 +367325,25 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041369u, new Vector3(-639.85657f, 162.30406f, -189.47137f), 961); + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041369u, new Vector3(-639.85657f, 162.30406f, -189.47137f), 961); obj46.Steps = list71; reference53 = obj46; - ref QuestSequence reference54 = ref span15[1]; + num++; + ref QuestSequence reference54 = ref span70[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span16 = CollectionsMarshal.AsSpan(list72); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-588.7367f, 158.76302f, -195.30913f), 961); - ref QuestStep reference55 = ref span16[1]; + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-588.7367f, 158.76302f, -195.30913f), 961); + num2++; + ref QuestStep reference55 = ref span72[num2]; QuestStep obj48 = new QuestStep(EInteractionType.Combat, null, new Vector3(-318.20203f, 147.32677f, -31.146088f), 961) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -302680,12 +367351,15 @@ public static class AssemblyQuestLoader num3 = 1; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = 14070u; + Span span73 = CollectionsMarshal.AsSpan(list73); + num4 = 0; + span73[num4] = 14070u; obj48.KillEnemyDataIds = list73; reference55 = obj48; obj47.Steps = list72; reference54 = obj47; - ref QuestSequence reference56 = ref span15[2]; + num++; + ref QuestSequence reference56 = ref span70[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -302693,21 +367367,26 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1040888u, new Vector3(-320.0885f, 147.4287f, -30.594421f), 961) + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.Interact, 1040888u, new Vector3(-320.0885f, 147.4287f, -30.594421f), 961) { StopDistance = 5f }; obj49.Steps = list74; reference56 = obj49; - ref QuestSequence reference57 = ref span15[3]; + num++; + ref QuestSequence reference57 = ref span70[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041369u, new Vector3(-639.85657f, 162.30406f, -189.47137f), 961) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041369u, new Vector3(-639.85657f, 162.30406f, -189.47137f), 961) { AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; @@ -302720,13 +367399,16 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "liza"; + Span span76 = CollectionsMarshal.AsSpan(list76); + index = 0; + span76[index] = "liza"; questRoot10.Author = list76; - num = 4; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span17 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference58 = ref span17[0]; + index = 4; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + Span span77 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference58 = ref span77[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -302734,21 +367416,27 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041555u, new Vector3(26.443848f, -129.20917f, -536.9497f), 959); + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041555u, new Vector3(26.443848f, -129.20917f, -536.9497f), 959); obj51.Steps = list78; reference58 = obj51; - ref QuestSequence reference59 = ref span17[1]; + num++; + ref QuestSequence reference59 = ref span77[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1041556u, new Vector3(113.14563f, -133.07352f, -465.17133f), 959); + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.Interact, 1041556u, new Vector3(113.14563f, -133.07352f, -465.17133f), 959); obj52.Steps = list79; reference59 = obj52; - ref QuestSequence reference60 = ref span17[2]; + num++; + ref QuestSequence reference60 = ref span77[num]; QuestSequence obj53 = new QuestSequence { Sequence = 2 @@ -302756,25 +367444,33 @@ public static class AssemblyQuestLoader num2 = 3; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span18 = CollectionsMarshal.AsSpan(list80); - ref QuestStep reference61 = ref span18[0]; + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + ref QuestStep reference61 = ref span80[index2]; QuestStep obj54 = new QuestStep(EInteractionType.Interact, 1041745u, new Vector3(66.23938f, -133.00002f, -432.8222f), 959) { Comment = "Cheerful Loporrit" }; - num3 = 6; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - Span span19 = CollectionsMarshal.AsSpan(list81); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list81 = new List(num4); + CollectionsMarshal.SetCount(list81, num4); + Span span81 = CollectionsMarshal.AsSpan(list81); + num3 = 0; + span81[num3] = null; + num3++; + span81[num3] = null; + num3++; + span81[num3] = null; + num3++; + span81[num3] = null; + num3++; + span81[num3] = null; + num3++; + span81[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj54.CompletionQuestVariablesFlags = list81; reference61 = obj54; - ref QuestStep reference62 = ref span18[1]; + index2++; + ref QuestStep reference62 = ref span80[index2]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 1041746u, new Vector3(-85.83203f, -133.0356f, -507.1336f), 959) { Comment = "Stern Loporrit" @@ -302782,48 +367478,66 @@ public static class AssemblyQuestLoader num3 = 6; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - Span span20 = CollectionsMarshal.AsSpan(list82); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span82 = CollectionsMarshal.AsSpan(list82); + num4 = 0; + span82[num4] = null; + num4++; + span82[num4] = null; + num4++; + span82[num4] = null; + num4++; + span82[num4] = null; + num4++; + span82[num4] = null; + num4++; + span82[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj55.CompletionQuestVariablesFlags = list82; reference62 = obj55; - ref QuestStep reference63 = ref span18[2]; + index2++; + ref QuestStep reference63 = ref span80[index2]; QuestStep obj56 = new QuestStep(EInteractionType.Interact, 1041744u, new Vector3(-110.12439f, -133.07341f, -556.7865f), 959) { Comment = "Easygoing Loporrit" }; - num3 = 6; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - Span span21 = CollectionsMarshal.AsSpan(list83); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list83 = new List(num4); + CollectionsMarshal.SetCount(list83, num4); + Span span83 = CollectionsMarshal.AsSpan(list83); + num3 = 0; + span83[num3] = null; + num3++; + span83[num3] = null; + num3++; + span83[num3] = null; + num3++; + span83[num3] = null; + num3++; + span83[num3] = null; + num3++; + span83[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj56.CompletionQuestVariablesFlags = list83; reference63 = obj56; obj53.Steps = list80; reference60 = obj53; - ref QuestSequence reference64 = ref span17[3]; + num++; + ref QuestSequence reference64 = ref span77[num]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list84)[0]; + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + ref QuestStep reference65 = ref span84[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.CompleteQuest, 1041556u, new Vector3(113.14563f, -133.07352f, -465.17133f), 959); num3 = 1; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = new DialogueChoice + Span span85 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span85[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZE101_04516_Q3_000_000"), @@ -302840,13 +367554,16 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; + Span span86 = CollectionsMarshal.AsSpan(list86); + index = 0; + span86[index] = "liza"; questRoot11.Author = list86; - num = 6; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span22 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference66 = ref span22[0]; + index = 6; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + Span span87 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference66 = ref span87[num]; QuestSequence obj58 = new QuestSequence { Sequence = 0 @@ -302854,24 +367571,30 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041556u, new Vector3(113.14563f, -133.07352f, -465.17133f), 959); + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041556u, new Vector3(113.14563f, -133.07352f, -465.17133f), 959); obj58.Steps = list88; reference66 = obj58; - ref QuestSequence reference67 = ref span22[1]; + num++; + ref QuestSequence reference67 = ref span87[num]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1041557u, new Vector3(292.2865f, -143.99998f, -477.8363f), 959) + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.Interact, 1041557u, new Vector3(292.2865f, -143.99998f, -477.8363f), 959) { Fly = true }; obj59.Steps = list89; reference67 = obj59; - ref QuestSequence reference68 = ref span22[2]; + num++; + ref QuestSequence reference68 = ref span87[num]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -302879,62 +367602,81 @@ public static class AssemblyQuestLoader num2 = 2; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span23 = CollectionsMarshal.AsSpan(list90); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.0736885f, 27.10196f, 448.53668f), 959) + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.0736885f, 27.10196f, 448.53668f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; - span23[1] = new QuestStep(EInteractionType.Interact, 1041559u, new Vector3(8.743347f, 27.418339f, 447.74548f), 959); + index2++; + span90[index2] = new QuestStep(EInteractionType.Interact, 1041559u, new Vector3(8.743347f, 27.418339f, 447.74548f), 959); obj60.Steps = list90; reference68 = obj60; - ref QuestSequence reference69 = ref span22[3]; + num++; + ref QuestSequence reference69 = ref span87[num]; QuestSequence obj61 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - Span span24 = CollectionsMarshal.AsSpan(list91); - ref QuestStep reference70 = ref span24[0]; + index2 = 3; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + ref QuestStep reference70 = ref span91[num2]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 2012508u, new Vector3(-7.4312134f, 42.61841f, 428.27502f), 959) { Fly = true }; - num3 = 6; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span25 = CollectionsMarshal.AsSpan(list92); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list92 = new List(num4); + CollectionsMarshal.SetCount(list92, num4); + Span span92 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj62.CompletionQuestVariablesFlags = list92; reference70 = obj62; - span24[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-54.65185f, 40.539097f, 458.56393f), 959) + num2++; + span91[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-54.65185f, 40.539097f, 458.56393f), 959) { Fly = true }; - ref QuestStep reference71 = ref span24[2]; + num2++; + ref QuestStep reference71 = ref span91[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2012509u, new Vector3(-56.50421f, 40.299072f, 459.64746f), 959); num3 = 6; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - Span span26 = CollectionsMarshal.AsSpan(list93); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span93 = CollectionsMarshal.AsSpan(list93); + num4 = 0; + span93[num4] = null; + num4++; + span93[num4] = null; + num4++; + span93[num4] = null; + num4++; + span93[num4] = null; + num4++; + span93[num4] = null; + num4++; + span93[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list93; reference71 = questStep9; obj61.Steps = list91; reference69 = obj61; - ref QuestSequence reference72 = ref span22[4]; + num++; + ref QuestSequence reference72 = ref span87[num]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -302942,23 +367684,28 @@ public static class AssemblyQuestLoader num2 = 2; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span27 = CollectionsMarshal.AsSpan(list94); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.0736885f, 27.10196f, 448.53668f), 959) + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.0736885f, 27.10196f, 448.53668f), 959) { Fly = true }; - span27[1] = new QuestStep(EInteractionType.Interact, 1041559u, new Vector3(8.743347f, 27.418339f, 447.74548f), 959); + index2++; + span94[index2] = new QuestStep(EInteractionType.Interact, 1041559u, new Vector3(8.743347f, 27.418339f, 447.74548f), 959); obj63.Steps = list94; reference72 = obj63; - ref QuestSequence reference73 = ref span22[5]; + num++; + ref QuestSequence reference73 = ref span87[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041557u, new Vector3(292.2865f, -143.99998f, -477.8363f), 959) + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041557u, new Vector3(292.2865f, -143.99998f, -477.8363f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, @@ -302973,13 +367720,16 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + span96[index] = "liza"; questRoot12.Author = list96; - num = 7; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span28 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference74 = ref span28[0]; + index = 7; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + Span span97 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference74 = ref span97[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -302987,24 +367737,30 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041558u, new Vector3(291.2489f, -144f, -477.95837f), 959); + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span98[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041558u, new Vector3(291.2489f, -144f, -477.95837f), 959); obj65.Steps = list98; reference74 = obj65; - ref QuestSequence reference75 = ref span28[1]; + num++; + ref QuestSequence reference75 = ref span97[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1041560u, new Vector3(304.219f, 106.43858f, 37.00305f), 959) + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.Interact, 1041560u, new Vector3(304.219f, 106.43858f, 37.00305f), 959) { Fly = true }; obj66.Steps = list99; reference75 = obj66; - ref QuestSequence reference76 = ref span28[2]; + num++; + ref QuestSequence reference76 = ref span97[num]; QuestSequence obj67 = new QuestSequence { Sequence = 2 @@ -303012,24 +367768,30 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1041817u, new Vector3(477.37842f, 140.67236f, 109.453f), 959) + Span span100 = CollectionsMarshal.AsSpan(list100); + index2 = 0; + span100[index2] = new QuestStep(EInteractionType.Interact, 1041817u, new Vector3(477.37842f, 140.67236f, 109.453f), 959) { Fly = true }; obj67.Steps = list100; reference76 = obj67; - ref QuestSequence reference77 = ref span28[3]; + num++; + ref QuestSequence reference77 = ref span97[num]; QuestSequence obj68 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 2012510u, new Vector3(477.28687f, 140.64233f, 109.42236f), 959); + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.Interact, 2012510u, new Vector3(477.28687f, 140.64233f, 109.42236f), 959); obj68.Steps = list101; reference77 = obj68; - ref QuestSequence reference78 = ref span28[4]; + num++; + ref QuestSequence reference78 = ref span97[num]; QuestSequence obj69 = new QuestSequence { Sequence = 4 @@ -303037,38 +367799,46 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list102)[0]; + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + ref QuestStep reference79 = ref span102[index2]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, null, new Vector3(626.34064f, 143.6347f, 58.013206f), 959) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - Span span29 = CollectionsMarshal.AsSpan(list103); - span29[0] = 14098u; - span29[1] = 14099u; + num4 = 2; + List list103 = new List(num4); + CollectionsMarshal.SetCount(list103, num4); + Span span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span103[num3] = 14098u; + num3++; + span103[num3] = 14099u; obj70.KillEnemyDataIds = list103; reference79 = obj70; obj69.Steps = list102; reference78 = obj69; - ref QuestSequence reference80 = ref span28[5]; + num++; + ref QuestSequence reference80 = ref span97[num]; QuestSequence obj71 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1041561u, new Vector3(625.0857f, 143.85222f, 56.321045f), 959) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.Interact, 1041561u, new Vector3(625.0857f, 143.85222f, 56.321045f), 959) { StopDistance = 5f }; obj71.Steps = list104; reference80 = obj71; - ref QuestSequence reference81 = ref span28[6]; + num++; + ref QuestSequence reference81 = ref span97[num]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -303076,7 +367846,9 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041564u, new Vector3(-338.36884f, -168f, -613.7637f), 959) + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041564u, new Vector3(-338.36884f, -168f, -613.7637f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, @@ -303091,27 +367863,33 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "liza"; + Span span106 = CollectionsMarshal.AsSpan(list106); + index = 0; + span106[index] = "liza"; questRoot13.Author = list106; - num = 7; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - Span span30 = CollectionsMarshal.AsSpan(list107); - ref QuestSequence reference82 = ref span30[0]; + index = 7; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + Span span107 = CollectionsMarshal.AsSpan(list107); + num = 0; + ref QuestSequence reference82 = ref span107[num]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041903u, new Vector3(-332.02112f, -168f, -609.91833f), 959) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041903u, new Vector3(-332.02112f, -168f, -609.91833f), 959) { StopDistance = 6.5f }; obj73.Steps = list108; reference82 = obj73; - ref QuestSequence reference83 = ref span30[1]; + num++; + ref QuestSequence reference83 = ref span107[num]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -303119,30 +367897,36 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.UseItem, 2012512u, new Vector3(-457.29767f, -158.12933f, -585.77856f), 959) + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.UseItem, 2012512u, new Vector3(-457.29767f, -158.12933f, -585.77856f), 959) { Fly = true, ItemId = 2003328u }; obj74.Steps = list109; reference83 = obj74; - ref QuestSequence reference84 = ref span30[2]; + num++; + ref QuestSequence reference84 = ref span107[num]; QuestSequence obj75 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span31 = CollectionsMarshal.AsSpan(list110); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-325.3802f, -152.73842f, -746.0951f), 959) + index2 = 2; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + span110[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-325.3802f, -152.73842f, -746.0951f), 959) { Fly = true }; - span31[1] = new QuestStep(EInteractionType.Interact, 2012513u, new Vector3(-326.8025f, -151.26276f, -748.5008f), 959); + num2++; + span110[num2] = new QuestStep(EInteractionType.Interact, 2012513u, new Vector3(-326.8025f, -151.26276f, -748.5008f), 959); obj75.Steps = list110; reference84 = obj75; - ref QuestSequence reference85 = ref span30[3]; + num++; + ref QuestSequence reference85 = ref span107[num]; QuestSequence obj76 = new QuestSequence { Sequence = 3 @@ -303150,9 +367934,11 @@ public static class AssemblyQuestLoader num2 = 9; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span32 = CollectionsMarshal.AsSpan(list111); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-356.33234f, -161.8501f, -738.81055f), 959); - span32[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-428.4264f, -168f, -676.6854f), 959) + Span span111 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span111[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-356.33234f, -161.8501f, -738.81055f), 959); + index2++; + span111[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-428.4264f, -168f, -676.6854f), 959) { StopDistance = 1f, Comment = "Platform 1", @@ -303162,7 +367948,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span32[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-431.76593f, -166.55412f, -679.5478f), 959) + index2++; + span111[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-431.76593f, -166.55412f, -679.5478f), 959) { StopDistance = 1f, Comment = "Platform 2", @@ -303172,7 +367959,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span32[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-430.03564f, -165.05414f, -682.2485f), 959) + index2++; + span111[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-430.03564f, -165.05414f, -682.2485f), 959) { StopDistance = 1f, Comment = "Platform 3", @@ -303182,7 +367970,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span32[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(-428.49857f, -163.55414f, -684.8062f), 959) + index2++; + span111[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-428.49857f, -163.55414f, -684.8062f), 959) { StopDistance = 1f, Comment = "Platform 4", @@ -303192,7 +367981,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span32[5] = new QuestStep(EInteractionType.Jump, null, new Vector3(-427.48633f, -162.05414f, -687.71533f), 959) + index2++; + span111[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-427.48633f, -162.05414f, -687.71533f), 959) { StopDistance = 1f, Comment = "Platform 5", @@ -303202,7 +367992,8 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span32[6] = new QuestStep(EInteractionType.Jump, null, new Vector3(-427.7118f, -160.55414f, -691.17804f), 959) + index2++; + span111[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-427.7118f, -160.55414f, -691.17804f), 959) { StopDistance = 1f, Comment = "Platform 6", @@ -303212,23 +368003,27 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - span32[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-434.91986f, -158.88745f, -693.17865f), 959) + index2++; + span111[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-434.91986f, -158.88745f, -693.17865f), 959) { DisableNavmesh = true }; - span32[8] = new QuestStep(EInteractionType.Interact, 2012611u, new Vector3(-450.33954f, -158.12933f, -694.42285f), 959); + index2++; + span111[index2] = new QuestStep(EInteractionType.Interact, 2012611u, new Vector3(-450.33954f, -158.12933f, -694.42285f), 959); obj76.Steps = list111; reference85 = obj76; - ref QuestSequence reference86 = ref span30[4]; + num++; + ref QuestSequence reference86 = ref span107[num]; QuestSequence obj77 = new QuestSequence { Sequence = 4 }; - num2 = 4; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span33 = CollectionsMarshal.AsSpan(list112); - ref QuestStep reference87 = ref span33[0]; + index2 = 4; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + ref QuestStep reference87 = ref span112[num2]; QuestStep obj78 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-548.9189f, -158.88948f, -651.8319f), 959) { Fly = true @@ -303238,32 +368033,46 @@ public static class AssemblyQuestLoader num3 = 6; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - Span span34 = CollectionsMarshal.AsSpan(list113); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span113 = CollectionsMarshal.AsSpan(list113); + num4 = 0; + span113[num4] = null; + num4++; + span113[num4] = null; + num4++; + span113[num4] = null; + num4++; + span113[num4] = null; + num4++; + span113[num4] = null; + num4++; + span113[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list113; skipConditions.StepIf = skipStepConditions; obj78.SkipConditions = skipConditions; reference87 = obj78; - ref QuestStep reference88 = ref span33[1]; + num2++; + ref QuestStep reference88 = ref span112[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2012514u, new Vector3(-549.12646f, -158.86176f, -649.2866f), 959); - num3 = 6; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span35 = CollectionsMarshal.AsSpan(list114); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list114 = new List(num4); + CollectionsMarshal.SetCount(list114, num4); + Span span114 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list114; reference88 = questStep10; - ref QuestStep reference89 = ref span33[2]; + num2++; + ref QuestStep reference89 = ref span112[num2]; QuestStep obj79 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-549.3165f, -158.89796f, -468.4637f), 959) { Fly = true @@ -303273,34 +368082,48 @@ public static class AssemblyQuestLoader num3 = 6; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - Span span36 = CollectionsMarshal.AsSpan(list115); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span115 = CollectionsMarshal.AsSpan(list115); + num4 = 0; + span115[num4] = null; + num4++; + span115[num4] = null; + num4++; + span115[num4] = null; + num4++; + span115[num4] = null; + num4++; + span115[num4] = null; + num4++; + span115[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list115; skipConditions2.StepIf = skipStepConditions2; obj79.SkipConditions = skipConditions2; reference89 = obj79; - ref QuestStep reference90 = ref span33[3]; + num2++; + ref QuestStep reference90 = ref span112[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2012515u, new Vector3(-549.157f, -158.89221f, -465.87323f), 959); - num3 = 6; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - Span span37 = CollectionsMarshal.AsSpan(list116); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list116 = new List(num4); + CollectionsMarshal.SetCount(list116, num4); + Span span116 = CollectionsMarshal.AsSpan(list116); + num3 = 0; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list116; reference90 = questStep11; obj77.Steps = list112; reference86 = obj77; - ref QuestSequence reference91 = ref span30[5]; + num++; + ref QuestSequence reference91 = ref span107[num]; QuestSequence obj80 = new QuestSequence { Sequence = 5 @@ -303308,21 +368131,26 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1041818u, new Vector3(-295.76562f, -144f, -547.0817f), 959) + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.Interact, 1041818u, new Vector3(-295.76562f, -144f, -547.0817f), 959) { Fly = true }; obj80.Steps = list117; reference91 = obj80; - ref QuestSequence reference92 = ref span30[6]; + num++; + ref QuestSequence reference92 = ref span107[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041819u, new Vector3(-295.64362f, -144f, -546.2882f), 959); + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041819u, new Vector3(-295.64362f, -144f, -546.2882f), 959); obj81.Steps = list118; reference92 = obj81; questRoot13.QuestSequence = list107; @@ -303332,15 +368160,18 @@ public static class AssemblyQuestLoader num = 2; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - Span span38 = CollectionsMarshal.AsSpan(list119); - span38[0] = "JerryWester"; - span38[1] = "Wigglez"; + Span span119 = CollectionsMarshal.AsSpan(list119); + index = 0; + span119[index] = "JerryWester"; + index++; + span119[index] = "Wigglez"; questRoot14.Author = list119; - num = 5; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span39 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference93 = ref span39[0]; + index = 5; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + Span span120 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference93 = ref span120[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 @@ -303348,8 +368179,9 @@ public static class AssemblyQuestLoader num2 = 5; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span40 = CollectionsMarshal.AsSpan(list121); - ref QuestStep reference94 = ref span40[0]; + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + ref QuestStep reference94 = ref span121[index2]; QuestStep obj83 = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, @@ -303360,26 +368192,32 @@ public static class AssemblyQuestLoader num3 = 2; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - Span span41 = CollectionsMarshal.AsSpan(list122); - span41[0] = 140; - span41[1] = 212; + Span span122 = CollectionsMarshal.AsSpan(list122); + num4 = 0; + span122[num4] = 140; + num4++; + span122[num4] = 212; skipStepConditions3.InTerritory = list122; skipConditions3.StepIf = skipStepConditions3; obj83.SkipConditions = skipConditions3; reference94 = obj83; - ref QuestStep reference95 = ref span40[1]; + index2++; + ref QuestStep reference95 = ref span121[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 212; + num4 = 1; + List list123 = new List(num4); + CollectionsMarshal.SetCount(list123, num4); + Span span123 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span123[num3] = 212; skipStepConditions4.InTerritory = list123; skipConditions4.StepIf = skipStepConditions4; questStep12.SkipConditions = skipConditions4; reference95 = questStep12; - ref QuestStep reference96 = ref span40[2]; + index2++; + ref QuestStep reference96 = ref span121[index2]; QuestStep obj84 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 @@ -303389,12 +368227,15 @@ public static class AssemblyQuestLoader num3 = 1; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - CollectionsMarshal.AsSpan(list124)[0] = 212; + Span span124 = CollectionsMarshal.AsSpan(list124); + num4 = 0; + span124[num4] = 212; skipStepConditions5.InTerritory = list124; skipConditions5.StepIf = skipStepConditions5; obj84.SkipConditions = skipConditions5; reference96 = obj84; - span40[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + index2++; + span121[index2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212, SkipConditions = new SkipConditions @@ -303405,34 +368246,40 @@ public static class AssemblyQuestLoader } } }; - span40[4] = new QuestStep(EInteractionType.AcceptQuest, 1006690u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); + index2++; + span121[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006690u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); obj82.Steps = list121; reference93 = obj82; - ref QuestSequence reference97 = ref span39[1]; + num++; + ref QuestSequence reference97 = ref span120[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - Span span42 = CollectionsMarshal.AsSpan(list125); - ref QuestStep reference98 = ref span42[0]; + index2 = 3; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + ref QuestStep reference98 = ref span125[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = 140; + num4 = 1; + List list126 = new List(num4); + CollectionsMarshal.SetCount(list126, num4); + Span span126 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span126[num3] = 140; skipStepConditions6.InTerritory = list126; skipConditions6.StepIf = skipStepConditions6; obj86.SkipConditions = skipConditions6; reference98 = obj86; - ref QuestStep reference99 = ref span42[1]; + num2++; + ref QuestStep reference99 = ref span125[num2]; QuestStep obj87 = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) { TargetTerritoryId = (ushort)140 @@ -303442,15 +368289,19 @@ public static class AssemblyQuestLoader num3 = 1; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - CollectionsMarshal.AsSpan(list127)[0] = 140; + Span span127 = CollectionsMarshal.AsSpan(list127); + num4 = 0; + span127[num4] = 140; skipStepConditions7.InTerritory = list127; skipConditions7.StepIf = skipStepConditions7; obj87.SkipConditions = skipConditions7; reference99 = obj87; - span42[2] = new QuestStep(EInteractionType.Interact, 1006578u, new Vector3(-467.27704f, 22.996977f, -475.21173f), 140); + num2++; + span125[num2] = new QuestStep(EInteractionType.Interact, 1006578u, new Vector3(-467.27704f, 22.996977f, -475.21173f), 140); obj85.Steps = list125; reference97 = obj85; - ref QuestSequence reference100 = ref span39[2]; + num++; + ref QuestSequence reference100 = ref span120[num]; QuestSequence obj88 = new QuestSequence { Sequence = 2 @@ -303458,31 +368309,39 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1006633u, new Vector3(-396.7804f, 27.883184f, -739.3149f), 140); + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span128[index2] = new QuestStep(EInteractionType.Interact, 1006633u, new Vector3(-396.7804f, 27.883184f, -739.3149f), 140); obj88.Steps = list128; reference100 = obj88; - ref QuestSequence reference101 = ref span39[3]; + num++; + ref QuestSequence reference101 = ref span120[num]; QuestSequence obj89 = new QuestSequence { Sequence = 3 }; - num2 = 5; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - Span span43 = CollectionsMarshal.AsSpan(list129); - span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-625.56866f, 61.87613f, -839.6979f), 140); - span43[1] = new QuestStep(EInteractionType.Combat, null, new Vector3(-625.56866f, 61.87613f, -839.6979f), 140) + index2 = 5; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span129[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-625.56866f, 61.87613f, -839.6979f), 140); + num2++; + span129[num2] = new QuestStep(EInteractionType.Combat, null, new Vector3(-625.56866f, 61.87613f, -839.6979f), 140) { DelaySecondsAtStart = 5f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - span43[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-660.1891f, 62.11622f, -809.68207f), 140); - span43[3] = new QuestStep(EInteractionType.Combat, null, new Vector3(-660.1891f, 62.11622f, -809.68207f), 140) + num2++; + span129[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-660.1891f, 62.11622f, -809.68207f), 140); + num2++; + span129[num2] = new QuestStep(EInteractionType.Combat, null, new Vector3(-660.1891f, 62.11622f, -809.68207f), 140) { DelaySecondsAtStart = 3f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - span43[4] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002252u, new Vector3(-662.25684f, 62.333008f, -805.478f), 140) + num2++; + span129[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002252u, new Vector3(-662.25684f, 62.333008f, -805.478f), 140) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -303491,7 +368350,8 @@ public static class AssemblyQuestLoader }; obj89.Steps = list129; reference101 = obj89; - ref QuestSequence reference102 = ref span39[4]; + num++; + ref QuestSequence reference102 = ref span120[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -303499,7 +368359,9 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006578u, new Vector3(-467.27704f, 22.996977f, -475.21173f), 140) + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span130[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006578u, new Vector3(-467.27704f, 22.996977f, -475.21173f), 140) { StopDistance = 7f }; @@ -303512,21 +368374,26 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "JerryWester"; + Span span131 = CollectionsMarshal.AsSpan(list131); + index = 0; + span131[index] = "JerryWester"; questRoot15.Author = list131; - num = 8; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span44 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference103 = ref span44[0]; + index = 8; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + Span span132 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference103 = ref span132[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006657u, new Vector3(-294.81964f, 88f, -225.17743f), 147) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006657u, new Vector3(-294.81964f, 88f, -225.17743f), 147) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -303540,7 +368407,8 @@ public static class AssemblyQuestLoader }; obj91.Steps = list133; reference103 = obj91; - ref QuestSequence reference104 = ref span44[1]; + num++; + ref QuestSequence reference104 = ref span132[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -303548,21 +368416,26 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1006668u, new Vector3(-115.19043f, 47.372406f, 28.67163f), 147) + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span134[index2] = new QuestStep(EInteractionType.Interact, 1006668u, new Vector3(-115.19043f, 47.372406f, 28.67163f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; obj92.Steps = list134; reference104 = obj92; - ref QuestSequence reference105 = ref span44[2]; + num++; + ref QuestSequence reference105 = ref span132[num]; QuestSequence obj93 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Duty, null, null, 147) + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span135[num2] = new QuestStep(EInteractionType.Duty, null, null, 147) { DutyOptions = new DutyOptions { @@ -303572,11 +368445,13 @@ public static class AssemblyQuestLoader }; obj93.Steps = list135; reference105 = obj93; - span44[3] = new QuestSequence + num++; + span132[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference106 = ref span44[4]; + num++; + ref QuestSequence reference106 = ref span132[num]; QuestSequence obj94 = new QuestSequence { Sequence = 4 @@ -303584,7 +368459,9 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Duty, null, null, 1053) + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span136[index2] = new QuestStep(EInteractionType.Duty, null, null, 1053) { DutyOptions = new DutyOptions { @@ -303594,19 +368471,23 @@ public static class AssemblyQuestLoader }; obj94.Steps = list136; reference106 = obj94; - span44[5] = new QuestSequence + num++; + span132[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference107 = ref span44[6]; + num++; + ref QuestSequence reference107 = ref span132[num]; QuestSequence obj95 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1039201u, new Vector3(-704.0055f, -185.66042f, 479.9724f), 1053) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span137[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1039201u, new Vector3(-704.0055f, -185.66042f, 479.9724f), 1053) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -303615,7 +368496,8 @@ public static class AssemblyQuestLoader }; obj95.Steps = list137; reference107 = obj95; - ref QuestSequence reference108 = ref span44[7]; + num++; + ref QuestSequence reference108 = ref span132[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -303623,12 +368505,14 @@ public static class AssemblyQuestLoader num2 = 2; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span45 = CollectionsMarshal.AsSpan(list138); - span45[0] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.25277f, 2.1f, 0f), 212) + Span span138 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span138[index2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.25277f, 2.1f, 0f), 212) { TargetTerritoryId = (ushort)212 }; - span45[1] = new QuestStep(EInteractionType.CompleteQuest, 1006692u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); + index2++; + span138[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006692u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); obj96.Steps = list138; reference108 = obj96; questRoot15.QuestSequence = list132; @@ -303638,21 +368522,26 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; + Span span139 = CollectionsMarshal.AsSpan(list139); + index = 0; + span139[index] = "liza"; questRoot16.Author = list139; - num = 4; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span46 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference109 = ref span46[0]; + index = 4; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + Span span140 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference109 = ref span140[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042242u, new Vector3(72.43445f, 5.1f, -75.30328f), 962) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span141[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042242u, new Vector3(72.43445f, 5.1f, -75.30328f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -303665,7 +368554,8 @@ public static class AssemblyQuestLoader }; obj97.Steps = list141; reference109 = obj97; - ref QuestSequence reference110 = ref span46[1]; + num++; + ref QuestSequence reference110 = ref span140[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -303673,7 +368563,9 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 2012872u, new Vector3(-86.930725f, -12.985474f, 140.30664f), 962) + Span span142 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span142[index2] = new QuestStep(EInteractionType.Interact, 2012872u, new Vector3(-86.930725f, -12.985474f, 140.30664f), 962) { AethernetShortcut = new AethernetShortcut { @@ -303683,18 +368575,22 @@ public static class AssemblyQuestLoader }; obj98.Steps = list142; reference110 = obj98; - ref QuestSequence reference111 = ref span46[2]; + num++; + ref QuestSequence reference111 = ref span140[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1042427u, new Vector3(-84.06195f, -13.777f, 140.12354f), 962); + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + Span span143 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span143[num2] = new QuestStep(EInteractionType.Interact, 1042427u, new Vector3(-84.06195f, -13.777f, 140.12354f), 962); obj99.Steps = list143; reference111 = obj99; - ref QuestSequence reference112 = ref span46[3]; + num++; + ref QuestSequence reference112 = ref span140[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -303702,7 +368598,9 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042428u, new Vector3(222.85791f, 24.942732f, -197.71118f), 962) + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span144[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042428u, new Vector3(222.85791f, 24.942732f, -197.71118f), 962) { AethernetShortcut = new AethernetShortcut { @@ -303719,30 +368617,36 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "liza"; + Span span145 = CollectionsMarshal.AsSpan(list145); + index = 0; + span145[index] = "liza"; questRoot17.Author = list145; - num = 2; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span47 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference113 = ref span47[0]; + index = 2; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + Span span146 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference113 = ref span146[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - Span span48 = CollectionsMarshal.AsSpan(list147); - span48[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 2; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, DisableNavmesh = true }; - span48[1] = new QuestStep(EInteractionType.AcceptQuest, 1041232u, new Vector3(-0.015319824f, 0f, -7.1870728f), 351); + num2++; + span147[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041232u, new Vector3(-0.015319824f, 0f, -7.1870728f), 351); obj101.Steps = list147; reference113 = obj101; - ref QuestSequence reference114 = ref span47[1]; + num++; + ref QuestSequence reference114 = ref span146[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -303750,12 +368654,14 @@ public static class AssemblyQuestLoader num2 = 2; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span49 = CollectionsMarshal.AsSpan(list148); - span49[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span148[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - span49[1] = new QuestStep(EInteractionType.CompleteQuest, 1039570u, new Vector3(36.453735f, 29f, -799.7101f), 156); + index2++; + span148[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039570u, new Vector3(36.453735f, 29f, -799.7101f), 156); obj102.Steps = list148; reference114 = obj102; questRoot17.QuestSequence = list146; @@ -303765,24 +368671,30 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "liza"; + Span span149 = CollectionsMarshal.AsSpan(list149); + index = 0; + span149[index] = "liza"; questRoot18.Author = list149; - num = 6; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span50 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference115 = ref span50[0]; + index = 6; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + Span span150 = CollectionsMarshal.AsSpan(list150); + num = 0; + ref QuestSequence reference115 = ref span150[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039570u, new Vector3(36.453735f, 29f, -799.7101f), 156); + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span151[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039570u, new Vector3(36.453735f, 29f, -799.7101f), 156); obj103.Steps = list151; reference115 = obj103; - ref QuestSequence reference116 = ref span50[1]; + num++; + ref QuestSequence reference116 = ref span150[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 @@ -303790,7 +368702,9 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963) + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span152[index2] = new QuestStep(EInteractionType.Interact, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -303801,50 +368715,59 @@ public static class AssemblyQuestLoader }; obj104.Steps = list152; reference116 = obj104; - ref QuestSequence reference117 = ref span50[2]; + num++; + ref QuestSequence reference117 = ref span150[num]; QuestSequence obj105 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - ref QuestStep reference118 = ref CollectionsMarshal.AsSpan(list153)[0]; + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + ref QuestStep reference118 = ref span153[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1039571u, new Vector3(-24.429688f, 3.0099995f, -225.42157f), 963); - num3 = 6; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - Span span51 = CollectionsMarshal.AsSpan(list154); - span51[0] = new DialogueChoice + num4 = 6; + List list154 = new List(num4); + CollectionsMarshal.SetCount(list154, num4); + Span span154 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span154[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q9_100_111") }; - span51[1] = new DialogueChoice + num3++; + span154[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKMH102_04527_A1_000_001") }; - span51[2] = new DialogueChoice + num3++; + span154[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q2_000_000"), Answer = new ExcelRef("TEXT_AKTKMH102_04527_A2_000_001") }; - span51[3] = new DialogueChoice + num3++; + span154[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q3_000_000"), Answer = new ExcelRef("TEXT_AKTKMH102_04527_A3_000_001") }; - span51[4] = new DialogueChoice + num3++; + span154[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q4_000_000"), Answer = new ExcelRef("TEXT_AKTKMH102_04527_A4_000_001") }; - span51[5] = new DialogueChoice + num3++; + span154[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q5_000_000"), @@ -303854,7 +368777,8 @@ public static class AssemblyQuestLoader reference118 = questStep13; obj105.Steps = list153; reference117 = obj105; - ref QuestSequence reference119 = ref span50[3]; + num++; + ref QuestSequence reference119 = ref span150[num]; QuestSequence obj106 = new QuestSequence { Sequence = 3 @@ -303862,24 +368786,30 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1039574u, new Vector3(-13.870483f, 1.51f, -178.14911f), 963); + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new QuestStep(EInteractionType.Interact, 1039574u, new Vector3(-13.870483f, 1.51f, -178.14911f), 963); obj106.Steps = list155; reference119 = obj106; - ref QuestSequence reference120 = ref span50[4]; + num++; + ref QuestSequence reference120 = ref span150[num]; QuestSequence obj107 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1039577u, new Vector3(1.7852783f, -3.2177195E-06f, -13.687378f), 963) + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.Interact, 1039577u, new Vector3(1.7852783f, -3.2177195E-06f, -13.687378f), 963) { StopDistance = 5f }; obj107.Steps = list156; reference120 = obj107; - ref QuestSequence reference121 = ref span50[5]; + num++; + ref QuestSequence reference121 = ref span150[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue @@ -303887,7 +368817,9 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039578u, new Vector3(-254.50525f, 4.3609705f, 570.94666f), 957) + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039578u, new Vector3(-254.50525f, 4.3609705f, 570.94666f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -303901,24 +368833,30 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - CollectionsMarshal.AsSpan(list158)[0] = "liza"; + Span span158 = CollectionsMarshal.AsSpan(list158); + index = 0; + span158[index] = "liza"; questRoot19.Author = list158; - num = 5; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - Span span52 = CollectionsMarshal.AsSpan(list159); - ref QuestSequence reference122 = ref span52[0]; + index = 5; + List list159 = new List(index); + CollectionsMarshal.SetCount(list159, index); + Span span159 = CollectionsMarshal.AsSpan(list159); + num = 0; + ref QuestSequence reference122 = ref span159[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039579u, new Vector3(-251.3009f, 4.388065f, 571.5265f), 957); + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039579u, new Vector3(-251.3009f, 4.388065f, 571.5265f), 957); obj109.Steps = list160; reference122 = obj109; - ref QuestSequence reference123 = ref span52[1]; + num++; + ref QuestSequence reference123 = ref span159[num]; QuestSequence obj110 = new QuestSequence { Sequence = 1 @@ -303926,7 +368864,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -303938,16 +368878,18 @@ public static class AssemblyQuestLoader }; obj110.Steps = list161; reference123 = obj110; - ref QuestSequence reference124 = ref span52[2]; + num++; + ref QuestSequence reference124 = ref span159[num]; QuestSequence obj111 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span53 = CollectionsMarshal.AsSpan(list162); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-350.9551f, 18.999998f, 56.043774f), 962) + index2 = 2; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span162[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-350.9551f, 18.999998f, 56.043774f), 962) { AethernetShortcut = new AethernetShortcut { @@ -303955,10 +368897,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanStudium } }; - span53[1] = new QuestStep(EInteractionType.Interact, 1039581u, new Vector3(-398.45886f, 19f, 92.48486f), 962); + num2++; + span162[num2] = new QuestStep(EInteractionType.Interact, 1039581u, new Vector3(-398.45886f, 19f, 92.48486f), 962); obj111.Steps = list162; reference124 = obj111; - ref QuestSequence reference125 = ref span52[3]; + num++; + ref QuestSequence reference125 = ref span159[num]; QuestSequence obj112 = new QuestSequence { Sequence = 3 @@ -303966,8 +368910,9 @@ public static class AssemblyQuestLoader num2 = 3; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span54 = CollectionsMarshal.AsSpan(list163); - span54[0] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span163[index2] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) { TargetTerritoryId = (ushort)956, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, @@ -303979,25 +368924,30 @@ public static class AssemblyQuestLoader } } }; - span54[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + index2++; + span163[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true }; - span54[2] = new QuestStep(EInteractionType.Interact, 1039582u, new Vector3(-325.2461f, -224.27272f, 298.39014f), 956) + index2++; + span163[index2] = new QuestStep(EInteractionType.Interact, 1039582u, new Vector3(-325.2461f, -224.27272f, 298.39014f), 956) { Fly = false }; obj112.Steps = list163; reference125 = obj112; - ref QuestSequence reference126 = ref span52[4]; + num++; + ref QuestSequence reference126 = ref span159[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039585u, new Vector3(-267.5365f, 0.15800172f, 603.41797f), 957) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039585u, new Vector3(-267.5365f, 0.15800172f, 603.41797f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -304011,13 +368961,16 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "liza"; + Span span165 = CollectionsMarshal.AsSpan(list165); + index = 0; + span165[index] = "liza"; questRoot20.Author = list165; - num = 4; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span55 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference127 = ref span55[0]; + index = 4; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + Span span166 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference127 = ref span166[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -304025,18 +368978,23 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039586u, new Vector3(-264.5152f, 0.24978253f, 605.6763f), 957); + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039586u, new Vector3(-264.5152f, 0.24978253f, 605.6763f), 957); obj114.Steps = list167; reference127 = obj114; - ref QuestSequence reference128 = ref span55[1]; + num++; + ref QuestSequence reference128 = ref span166[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list168)[0]; + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + ref QuestStep reference129 = ref span168[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Duty, null, null, 957); DutyOptions obj116 = new DutyOptions { @@ -304045,17 +369003,21 @@ public static class AssemblyQuestLoader num3 = 1; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - CollectionsMarshal.AsSpan(list169)[0] = "No VBM module"; + Span span169 = CollectionsMarshal.AsSpan(list169); + num4 = 0; + span169[num4] = "No VBM module"; obj116.Notes = list169; questStep14.DutyOptions = obj116; reference129 = questStep14; obj115.Steps = list168; reference128 = obj115; - span55[2] = new QuestSequence + num++; + span166[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference130 = ref span55[3]; + num++; + ref QuestSequence reference130 = ref span166[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -304063,7 +369025,9 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039590u, new Vector3(113.69495f, -350.00003f, -72.19049f), 1056) + Span span170 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span170[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039590u, new Vector3(113.69495f, -350.00003f, -72.19049f), 1056) { StopDistance = 7f }; @@ -304076,27 +369040,33 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "liza"; + Span span171 = CollectionsMarshal.AsSpan(list171); + index = 0; + span171[index] = "liza"; questRoot21.Author = list171; - num = 4; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span56 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference131 = ref span56[0]; + index = 4; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + Span span172 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference131 = ref span172[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039591u, new Vector3(107.71338f, -350f, -73.68585f), 1056) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039591u, new Vector3(107.71338f, -350f, -73.68585f), 1056) { StopDistance = 5f }; obj118.Steps = list173; reference131 = obj118; - ref QuestSequence reference132 = ref span56[1]; + num++; + ref QuestSequence reference132 = ref span172[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -304104,27 +369074,33 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1039595u, new Vector3(107.83545f, -350f, -84.82495f), 1056) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.Interact, 1039595u, new Vector3(107.83545f, -350f, -84.82495f), 1056) { StopDistance = 5f }; obj119.Steps = list174; reference132 = obj119; - ref QuestSequence reference133 = ref span56[2]; + num++; + ref QuestSequence reference133 = ref span172[num]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1039600u, new Vector3(142.443f, 4.7837553f, -148.57715f), 963) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.Interact, 1039600u, new Vector3(142.443f, 4.7837553f, -148.57715f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; obj120.Steps = list175; reference133 = obj120; - ref QuestSequence reference134 = ref span56[3]; + num++; + ref QuestSequence reference134 = ref span172[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue @@ -304132,12 +369108,16 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list176)[0]; + Span span176 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + ref QuestStep reference135 = ref span176[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.CompleteQuest, 1039600u, new Vector3(142.443f, 4.7837553f, -148.57715f), 963); - num3 = 1; - List list177 = new List(num3); - CollectionsMarshal.SetCount(list177, num3); - CollectionsMarshal.AsSpan(list177)[0] = new DialogueChoice + num4 = 1; + List list177 = new List(num4); + CollectionsMarshal.SetCount(list177, num4); + Span span177 = CollectionsMarshal.AsSpan(list177); + num3 = 0; + span177[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH105_04530_Q2_000_000"), @@ -304154,24 +369134,30 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "liza"; + Span span178 = CollectionsMarshal.AsSpan(list178); + index = 0; + span178[index] = "liza"; questRoot22.Author = list178; - num = 4; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span57 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference136 = ref span57[0]; + index = 4; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + Span span179 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference136 = ref span179[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039600u, new Vector3(142.443f, 4.7837553f, -148.57715f), 963); + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039600u, new Vector3(142.443f, 4.7837553f, -148.57715f), 963); obj122.Steps = list180; reference136 = obj122; - ref QuestSequence reference137 = ref span57[1]; + num++; + ref QuestSequence reference137 = ref span179[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 @@ -304179,23 +369165,27 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1039589u, new Vector3(-270.25262f, 0.07863108f, 605.9204f), 957) + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span181[index2] = new QuestStep(EInteractionType.Interact, 1039589u, new Vector3(-270.25262f, 0.07863108f, 605.9204f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj123.Steps = list181; reference137 = obj123; - ref QuestSequence reference138 = ref span57[2]; + num++; + ref QuestSequence reference138 = ref span179[num]; QuestSequence obj124 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - Span span58 = CollectionsMarshal.AsSpan(list182); - ref QuestStep reference139 = ref span58[0]; + index2 = 3; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + ref QuestStep reference139 = ref span182[num2]; QuestStep obj125 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(169.31848f, 5.3451567f, 633.7924f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -304205,37 +369195,52 @@ public static class AssemblyQuestLoader num3 = 6; List list183 = new List(num3); CollectionsMarshal.SetCount(list183, num3); - Span span59 = CollectionsMarshal.AsSpan(list183); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span183 = CollectionsMarshal.AsSpan(list183); + num4 = 0; + span183[num4] = null; + num4++; + span183[num4] = null; + num4++; + span183[num4] = null; + num4++; + span183[num4] = null; + num4++; + span183[num4] = null; + num4++; + span183[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list183; skipConditions8.StepIf = skipStepConditions8; obj125.SkipConditions = skipConditions8; reference139 = obj125; - ref QuestStep reference140 = ref span58[1]; + num2++; + ref QuestStep reference140 = ref span182[num2]; QuestStep obj126 = new QuestStep(EInteractionType.Interact, 1037631u, new Vector3(166.64368f, 5.34517f, 635.9807f), 957) { StopDistance = 5f }; - num3 = 6; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - Span span60 = CollectionsMarshal.AsSpan(list184); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list184 = new List(num4); + CollectionsMarshal.SetCount(list184, num4); + Span span184 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span184[num3] = null; + num3++; + span184[num3] = null; + num3++; + span184[num3] = null; + num3++; + span184[num3] = null; + num3++; + span184[num3] = null; + num3++; + span184[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj126.CompletionQuestVariablesFlags = list184; num3 = 1; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = new DialogueChoice + Span span185 = CollectionsMarshal.AsSpan(list185); + num4 = 0; + span185[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH106_04531_Q1_000_000"), @@ -304243,23 +369248,31 @@ public static class AssemblyQuestLoader }; obj126.DialogueChoices = list185; reference140 = obj126; - ref QuestStep reference141 = ref span58[2]; + num2++; + ref QuestStep reference141 = ref span182[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1039606u, new Vector3(215.80823f, 9.935694f, 561.27246f), 957); - num3 = 6; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - Span span61 = CollectionsMarshal.AsSpan(list186); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list186 = new List(num4); + CollectionsMarshal.SetCount(list186, num4); + Span span186 = CollectionsMarshal.AsSpan(list186); + num3 = 0; + span186[num3] = null; + num3++; + span186[num3] = null; + num3++; + span186[num3] = null; + num3++; + span186[num3] = null; + num3++; + span186[num3] = null; + num3++; + span186[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list186; reference141 = questStep16; obj124.Steps = list182; reference138 = obj124; - ref QuestSequence reference142 = ref span57[3]; + num++; + ref QuestSequence reference142 = ref span179[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -304267,7 +369280,9 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039607u, new Vector3(-342.58032f, 55f, -68.61987f), 963) + Span span187 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span187[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039607u, new Vector3(-342.58032f, 55f, -68.61987f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -304285,24 +369300,30 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - CollectionsMarshal.AsSpan(list188)[0] = "liza"; + Span span188 = CollectionsMarshal.AsSpan(list188); + index = 0; + span188[index] = "liza"; questRoot23.Author = list188; - num = 7; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span62 = CollectionsMarshal.AsSpan(list189); - ref QuestSequence reference143 = ref span62[0]; + index = 7; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + Span span189 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference143 = ref span189[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039609u, new Vector3(-343.09918f, 55f, -74.84558f), 963); + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span190[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039609u, new Vector3(-343.09918f, 55f, -74.84558f), 963); obj128.Steps = list190; reference143 = obj128; - ref QuestSequence reference144 = ref span62[1]; + num++; + ref QuestSequence reference144 = ref span189[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -304310,7 +369331,9 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1039611u, new Vector3(124.1626f, 4.856044f, -139.63531f), 963) + Span span191 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span191[index2] = new QuestStep(EInteractionType.Interact, 1039611u, new Vector3(124.1626f, 4.856044f, -139.63531f), 963) { AethernetShortcut = new AethernetShortcut { @@ -304320,21 +369343,25 @@ public static class AssemblyQuestLoader }; obj129.Steps = list191; reference144 = obj129; - ref QuestSequence reference145 = ref span62[2]; + num++; + ref QuestSequence reference145 = ref span189[num]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1039614u, new Vector3(-9.536926f, 2.8f, -15.243774f), 962) + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span192[num2] = new QuestStep(EInteractionType.Interact, 1039614u, new Vector3(-9.536926f, 2.8f, -15.243774f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan }; obj130.Steps = list192; reference145 = obj130; - ref QuestSequence reference146 = ref span62[3]; + num++; + ref QuestSequence reference146 = ref span189[num]; QuestSequence obj131 = new QuestSequence { Sequence = 3 @@ -304342,7 +369369,9 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1039615u, new Vector3(-297.13898f, 20.8f, -189.59338f), 962) + Span span193 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span193[index2] = new QuestStep(EInteractionType.Interact, 1039615u, new Vector3(-297.13898f, 20.8f, -189.59338f), 962) { AethernetShortcut = new AethernetShortcut { @@ -304352,15 +369381,18 @@ public static class AssemblyQuestLoader }; obj131.Steps = list193; reference146 = obj131; - ref QuestSequence reference147 = ref span62[4]; + num++; + ref QuestSequence reference147 = ref span189[num]; QuestSequence obj132 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1039616u, new Vector3(227.06946f, 25.041138f, -159.2279f), 962) + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.Interact, 1039616u, new Vector3(227.06946f, 25.041138f, -159.2279f), 962) { AethernetShortcut = new AethernetShortcut { @@ -304370,7 +369402,8 @@ public static class AssemblyQuestLoader }; obj132.Steps = list194; reference147 = obj132; - ref QuestSequence reference148 = ref span62[5]; + num++; + ref QuestSequence reference148 = ref span189[num]; QuestSequence obj133 = new QuestSequence { Sequence = 5 @@ -304378,7 +369411,9 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1039614u, new Vector3(-94.118614f, 3.8989394f, 1.0696089f), 962) + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span195[index2] = new QuestStep(EInteractionType.Interact, 1039614u, new Vector3(-94.118614f, 3.8989394f, 1.0696089f), 962) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -304389,15 +369424,18 @@ public static class AssemblyQuestLoader }; obj133.Steps = list195; reference148 = obj133; - ref QuestSequence reference149 = ref span62[6]; + num++; + ref QuestSequence reference149 = ref span189[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039617u, new Vector3(-93.91931f, 3.8989394f, -1.1750488f), 962); + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039617u, new Vector3(-93.91931f, 3.8989394f, -1.1750488f), 962); obj134.Steps = list196; reference149 = obj134; questRoot23.QuestSequence = list189; @@ -304407,13 +369445,16 @@ public static class AssemblyQuestLoader num = 1; List list197 = new List(num); CollectionsMarshal.SetCount(list197, num); - CollectionsMarshal.AsSpan(list197)[0] = "liza"; + Span span197 = CollectionsMarshal.AsSpan(list197); + index = 0; + span197[index] = "liza"; questRoot24.Author = list197; - num = 8; - List list198 = new List(num); - CollectionsMarshal.SetCount(list198, num); - Span span63 = CollectionsMarshal.AsSpan(list198); - ref QuestSequence reference150 = ref span63[0]; + index = 8; + List list198 = new List(index); + CollectionsMarshal.SetCount(list198, index); + Span span198 = CollectionsMarshal.AsSpan(list198); + num = 0; + ref QuestSequence reference150 = ref span198[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -304421,18 +369462,23 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039618u, new Vector3(-95.96399f, 3.933468f, 0.503479f), 962); + Span span199 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span199[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039618u, new Vector3(-95.96399f, 3.933468f, 0.503479f), 962); obj135.Steps = list199; reference150 = obj135; - ref QuestSequence reference151 = ref span63[1]; + num++; + ref QuestSequence reference151 = ref span198[num]; QuestSequence obj136 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1039619u, new Vector3(-344.625f, 19f, 71.61047f), 962) + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.Interact, 1039619u, new Vector3(-344.625f, 19f, 71.61047f), 962) { AethernetShortcut = new AethernetShortcut { @@ -304442,7 +369488,8 @@ public static class AssemblyQuestLoader }; obj136.Steps = list200; reference151 = obj136; - ref QuestSequence reference152 = ref span63[2]; + num++; + ref QuestSequence reference152 = ref span198[num]; QuestSequence obj137 = new QuestSequence { Sequence = 2 @@ -304450,21 +369497,27 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 2012844u, new Vector3(-4.3793945f, 5.569519f, 13.809326f), 1057); + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.Interact, 2012844u, new Vector3(-4.3793945f, 5.569519f, 13.809326f), 1057); obj137.Steps = list201; reference152 = obj137; - ref QuestSequence reference153 = ref span63[3]; + num++; + ref QuestSequence reference153 = ref span198[num]; QuestSequence obj138 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1039620u, new Vector3(-1.5107422f, -7.012859E-07f, -2.609314f), 1057); + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.Interact, 1039620u, new Vector3(-1.5107422f, -7.012859E-07f, -2.609314f), 1057); obj138.Steps = list202; reference153 = obj138; - ref QuestSequence reference154 = ref span63[4]; + num++; + ref QuestSequence reference154 = ref span198[num]; QuestSequence obj139 = new QuestSequence { Sequence = 4 @@ -304472,27 +369525,33 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1039622u, new Vector3(-341.78687f, 19f, 69.10803f), 962) + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span203[index2] = new QuestStep(EInteractionType.Interact, 1039622u, new Vector3(-341.78687f, 19f, 69.10803f), 962) { StopDistance = 5f }; obj139.Steps = list203; reference154 = obj139; - ref QuestSequence reference155 = ref span63[5]; + num++; + ref QuestSequence reference155 = ref span198[num]; QuestSequence obj140 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1039623u, new Vector3(-477.89734f, 4.678896f, 29.55664f), 957) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.Interact, 1039623u, new Vector3(-477.89734f, 4.678896f, 29.55664f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj140.Steps = list204; reference155 = obj140; - ref QuestSequence reference156 = ref span63[6]; + num++; + ref QuestSequence reference156 = ref span198[num]; QuestSequence obj141 = new QuestSequence { Sequence = 6 @@ -304500,8 +369559,9 @@ public static class AssemblyQuestLoader num2 = 3; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span64 = CollectionsMarshal.AsSpan(list205); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.9973f, 1.2090492f, 118.133255f), 957) + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.9973f, 1.2090492f, 118.133255f), 957) { StopDistance = 4f, Fly = true, @@ -304514,7 +369574,8 @@ public static class AssemblyQuestLoader } } }; - span64[1] = new QuestStep(EInteractionType.Interact, 2012847u, new Vector3(242.08435f, 0.3508911f, 119.43237f), 957) + index2++; + span205[index2] = new QuestStep(EInteractionType.Interact, 2012847u, new Vector3(242.08435f, 0.3508911f, 119.43237f), 957) { Mount = false, SkipConditions = new SkipConditions @@ -304525,7 +369586,8 @@ public static class AssemblyQuestLoader } } }; - span64[2] = new QuestStep(EInteractionType.Interact, 2012847u, new Vector3(242.08435f, 0.3508911f, 119.43237f), 957) + index2++; + span205[index2] = new QuestStep(EInteractionType.Interact, 2012847u, new Vector3(242.08435f, 0.3508911f, 119.43237f), 957) { SkipConditions = new SkipConditions { @@ -304537,15 +369599,18 @@ public static class AssemblyQuestLoader }; obj141.Steps = list205; reference156 = obj141; - ref QuestSequence reference157 = ref span63[7]; + num++; + ref QuestSequence reference157 = ref span198[num]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039624u, new Vector3(-478.38562f, 4.7772117f, 26.779541f), 957) + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039624u, new Vector3(-478.38562f, 4.7772117f, 26.779541f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; @@ -304558,13 +369623,16 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "liza"; + Span span207 = CollectionsMarshal.AsSpan(list207); + index = 0; + span207[index] = "liza"; questRoot25.Author = list207; - num = 4; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span65 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference158 = ref span65[0]; + index = 4; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + Span span208 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference158 = ref span208[num]; QuestSequence obj143 = new QuestSequence { Sequence = 0 @@ -304572,18 +369640,23 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039624u, new Vector3(-478.38562f, 4.7772117f, 26.779541f), 957); + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039624u, new Vector3(-478.38562f, 4.7772117f, 26.779541f), 957); obj143.Steps = list209; reference158 = obj143; - ref QuestSequence reference159 = ref span65[1]; + num++; + ref QuestSequence reference159 = ref span208[num]; QuestSequence obj144 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - ref QuestStep reference160 = ref CollectionsMarshal.AsSpan(list210)[0]; + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + ref QuestStep reference160 = ref span210[num2]; QuestStep obj145 = new QuestStep(EInteractionType.Interact, 1039627u, new Vector3(-270.25262f, 0.07863108f, 605.9204f), 957) { Fly = true @@ -304591,7 +369664,9 @@ public static class AssemblyQuestLoader num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new DialogueChoice + Span span211 = CollectionsMarshal.AsSpan(list211); + num4 = 0; + span211[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMH109_04534_Q2_000_120") @@ -304600,7 +369675,8 @@ public static class AssemblyQuestLoader reference160 = obj145; obj144.Steps = list210; reference159 = obj144; - ref QuestSequence reference161 = ref span65[2]; + num++; + ref QuestSequence reference161 = ref span208[num]; QuestSequence obj146 = new QuestSequence { Sequence = 2 @@ -304608,18 +369684,23 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1039632u, new Vector3(106.614746f, -350f, -78.56879f), 1056); + Span span212 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span212[index2] = new QuestStep(EInteractionType.Interact, 1039632u, new Vector3(106.614746f, -350f, -78.56879f), 1056); obj146.Steps = list212; reference161 = obj146; - ref QuestSequence reference162 = ref span65[3]; + num++; + ref QuestSequence reference162 = ref span208[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.CompleteQuest, 2012837u, new Vector3(110.03284f, -350.02673f, -82.90228f), 1056); + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span213 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span213[num2] = new QuestStep(EInteractionType.CompleteQuest, 2012837u, new Vector3(110.03284f, -350.02673f, -82.90228f), 1056); obj147.Steps = list213; reference162 = obj147; questRoot25.QuestSequence = list208; @@ -304629,13 +369710,16 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - CollectionsMarshal.AsSpan(list214)[0] = "liza"; + Span span214 = CollectionsMarshal.AsSpan(list214); + index = 0; + span214[index] = "liza"; questRoot26.Author = list214; - num = 5; - List list215 = new List(num); - CollectionsMarshal.SetCount(list215, num); - Span span66 = CollectionsMarshal.AsSpan(list215); - ref QuestSequence reference163 = ref span66[0]; + index = 5; + List list215 = new List(index); + CollectionsMarshal.SetCount(list215, index); + Span span215 = CollectionsMarshal.AsSpan(list215); + num = 0; + ref QuestSequence reference163 = ref span215[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 @@ -304643,24 +369727,30 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039633u, new Vector3(111.46704f, -350f, -83.14642f), 1056) + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span216[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039633u, new Vector3(111.46704f, -350f, -83.14642f), 1056) { StopDistance = 5f }; obj148.Steps = list216; reference163 = obj148; - ref QuestSequence reference164 = ref span66[1]; + num++; + ref QuestSequence reference164 = ref span215[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Interact, 1039636u, new Vector3(114.27478f, 0.65204185f, 7.4310913f), 635); + index2 = 1; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + Span span217 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span217[num2] = new QuestStep(EInteractionType.Interact, 1039636u, new Vector3(114.27478f, 0.65204185f, 7.4310913f), 635); obj149.Steps = list217; reference164 = obj149; - ref QuestSequence reference165 = ref span66[2]; + num++; + ref QuestSequence reference165 = ref span215[num]; QuestSequence obj150 = new QuestSequence { Sequence = 2 @@ -304668,26 +369758,33 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1039638u, new Vector3(-511.6503f, 11.97528f, 108.11011f), 957) + Span span218 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + span218[index2] = new QuestStep(EInteractionType.Interact, 1039638u, new Vector3(-511.6503f, 11.97528f, 108.11011f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj150.Steps = list218; reference165 = obj150; - ref QuestSequence reference166 = ref span66[3]; + num++; + ref QuestSequence reference166 = ref span215[num]; QuestSequence obj151 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - ref QuestStep reference167 = ref CollectionsMarshal.AsSpan(list219)[0]; + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + Span span219 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + ref QuestStep reference167 = ref span219[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1039639u, new Vector3(-513.6644f, 11.97528f, 106.06543f), 957); - num3 = 1; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - CollectionsMarshal.AsSpan(list220)[0] = new DialogueChoice + num4 = 1; + List list220 = new List(num4); + CollectionsMarshal.SetCount(list220, num4); + Span span220 = CollectionsMarshal.AsSpan(list220); + num3 = 0; + span220[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH110_04535_Q2_000_000"), @@ -304697,7 +369794,8 @@ public static class AssemblyQuestLoader reference167 = questStep17; obj151.Steps = list219; reference166 = obj151; - ref QuestSequence reference168 = ref span66[4]; + num++; + ref QuestSequence reference168 = ref span215[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue @@ -304705,7 +369803,9 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span221[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -304723,21 +369823,26 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "liza"; + Span span222 = CollectionsMarshal.AsSpan(list222); + index = 0; + span222[index] = "liza"; questRoot27.Author = list222; - num = 7; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span67 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference169 = ref span67[0]; + index = 7; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + Span span223 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference169 = ref span223[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042267u, new Vector3(-104.997375f, 3.8989396f, 13.290527f), 962) + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span224[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042267u, new Vector3(-104.997375f, 3.8989396f, 13.290527f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -304755,7 +369860,8 @@ public static class AssemblyQuestLoader }; obj153.Steps = list224; reference169 = obj153; - ref QuestSequence reference170 = ref span67[1]; + num++; + ref QuestSequence reference170 = ref span223[num]; QuestSequence obj154 = new QuestSequence { Sequence = 1 @@ -304763,31 +369869,38 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 2012860u, new Vector3(42.160645f, 20.462341f, -683.1617f), 156) + Span span225 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span225[index2] = new QuestStep(EInteractionType.Interact, 2012860u, new Vector3(42.160645f, 20.462341f, -683.1617f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj154.Steps = list225; reference170 = obj154; - ref QuestSequence reference171 = ref span67[2]; + num++; + ref QuestSequence reference171 = ref span223[num]; QuestSequence obj155 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 1042268u, new Vector3(178.5763f, -15.5223675f, -496.14713f), 156) + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + Span span226 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span226[num2] = new QuestStep(EInteractionType.Interact, 1042268u, new Vector3(178.5763f, -15.5223675f, -496.14713f), 156) { Fly = true }; obj155.Steps = list226; reference171 = obj155; - span67[3] = new QuestSequence + num++; + span223[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference172 = ref span67[4]; + num++; + ref QuestSequence reference172 = ref span223[num]; QuestSequence obj156 = new QuestSequence { Sequence = 4 @@ -304795,19 +369908,23 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1042269u, new Vector3(1.449585f, 0.05000399f, -18.661804f), 1061); + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.Interact, 1042269u, new Vector3(1.449585f, 0.05000399f, -18.661804f), 1061); obj156.Steps = list227; reference172 = obj156; - ref QuestSequence reference173 = ref span67[5]; + num++; + ref QuestSequence reference173 = ref span223[num]; QuestSequence obj157 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span68 = CollectionsMarshal.AsSpan(list228); - ref QuestStep reference174 = ref span68[0]; + index2 = 3; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + ref QuestStep reference174 = ref span228[num2]; QuestStep obj158 = new QuestStep(EInteractionType.Interact, 2012863u, new Vector3(0.1327076f, 2.960754f, 6.778096f), 1061) { StopDistance = 5f, @@ -304816,46 +369933,67 @@ public static class AssemblyQuestLoader num3 = 6; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - Span span69 = CollectionsMarshal.AsSpan(list229); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span229 = CollectionsMarshal.AsSpan(list229); + num4 = 0; + span229[num4] = null; + num4++; + span229[num4] = null; + num4++; + span229[num4] = null; + num4++; + span229[num4] = null; + num4++; + span229[num4] = null; + num4++; + span229[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj158.CompletionQuestVariablesFlags = list229; reference174 = obj158; - ref QuestStep reference175 = ref span68[1]; + num2++; + ref QuestStep reference175 = ref span228[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2012865u, new Vector3(-21.21936f, 0.7837547f, -58.66461f), 1061); - num3 = 6; - List list230 = new List(num3); - CollectionsMarshal.SetCount(list230, num3); - Span span70 = CollectionsMarshal.AsSpan(list230); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list230 = new List(num4); + CollectionsMarshal.SetCount(list230, num4); + Span span230 = CollectionsMarshal.AsSpan(list230); + num3 = 0; + span230[num3] = null; + num3++; + span230[num3] = null; + num3++; + span230[num3] = null; + num3++; + span230[num3] = null; + num3++; + span230[num3] = null; + num3++; + span230[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list230; reference175 = questStep18; - ref QuestStep reference176 = ref span68[2]; + num2++; + ref QuestStep reference176 = ref span228[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2012864u, new Vector3(59.830566f, 5.0201416f, 69.10803f), 1061); num3 = 6; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - Span span71 = CollectionsMarshal.AsSpan(list231); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span231 = CollectionsMarshal.AsSpan(list231); + num4 = 0; + span231[num4] = null; + num4++; + span231[num4] = null; + num4++; + span231[num4] = null; + num4++; + span231[num4] = null; + num4++; + span231[num4] = null; + num4++; + span231[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list231; reference176 = questStep19; obj157.Steps = list228; reference173 = obj157; - ref QuestSequence reference177 = ref span67[6]; + num++; + ref QuestSequence reference177 = ref span223[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -304863,7 +370001,9 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042273u, new Vector3(3.5248413f, 0.0999997f, 14.145081f), 1061) + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span232[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042273u, new Vector3(3.5248413f, 0.0999997f, 14.145081f), 1061) { NextQuestId = new QuestId(4537) }; @@ -304876,27 +370016,33 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "liza"; + Span span233 = CollectionsMarshal.AsSpan(list233); + index = 0; + span233[index] = "liza"; questRoot28.Author = list233; - num = 4; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span72 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference178 = ref span72[0]; + index = 4; + List list234 = new List(index); + CollectionsMarshal.SetCount(list234, index); + Span span234 = CollectionsMarshal.AsSpan(list234); + num = 0; + ref QuestSequence reference178 = ref span234[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042275u, new Vector3(5.7526245f, 0.0999997f, 11.703674f), 1061) + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + Span span235 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span235[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042275u, new Vector3(5.7526245f, 0.0999997f, 11.703674f), 1061) { StopDistance = 5f }; obj160.Steps = list235; reference178 = obj160; - ref QuestSequence reference179 = ref span72[1]; + num++; + ref QuestSequence reference179 = ref span234[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -304904,18 +370050,23 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1042276u, new Vector3(45.76172f, 0.05f, 6.9733276f), 1061); + Span span236 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span236[index2] = new QuestStep(EInteractionType.Interact, 1042276u, new Vector3(45.76172f, 0.05f, 6.9733276f), 1061); obj161.Steps = list236; reference179 = obj161; - ref QuestSequence reference180 = ref span72[2]; + num++; + ref QuestSequence reference180 = ref span234[num]; QuestSequence obj162 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Duty, null, null, 1061) + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + Span span237 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span237[num2] = new QuestStep(EInteractionType.Duty, null, null, 1061) { DutyOptions = new DutyOptions { @@ -304924,7 +370075,8 @@ public static class AssemblyQuestLoader }; obj162.Steps = list237; reference180 = obj162; - ref QuestSequence reference181 = ref span72[3]; + num++; + ref QuestSequence reference181 = ref span234[num]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue @@ -304932,7 +370084,9 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042278u, new Vector3(12.130859f, 0.0999997f, -0.83929443f), 1061) + Span span238 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span238[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042278u, new Vector3(12.130859f, 0.0999997f, -0.83929443f), 1061) { StopDistance = 5f, NextQuestId = new QuestId(4538) @@ -304946,27 +370100,33 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - CollectionsMarshal.AsSpan(list239)[0] = "liza"; + Span span239 = CollectionsMarshal.AsSpan(list239); + index = 0; + span239[index] = "liza"; questRoot29.Author = list239; - num = 6; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - Span span73 = CollectionsMarshal.AsSpan(list240); - ref QuestSequence reference182 = ref span73[0]; + index = 6; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + Span span240 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference182 = ref span240[num]; QuestSequence obj164 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042278u, new Vector3(12.130859f, 0.0999997f, -0.83929443f), 1061) + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + Span span241 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span241[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042278u, new Vector3(12.130859f, 0.0999997f, -0.83929443f), 1061) { StopDistance = 5f }; obj164.Steps = list241; reference182 = obj164; - ref QuestSequence reference183 = ref span73[1]; + num++; + ref QuestSequence reference183 = ref span240[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 @@ -304974,24 +370134,30 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1042279u, new Vector3(13.290527f, 0.099999696f, -2.243164f), 1061); + Span span242 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + span242[index2] = new QuestStep(EInteractionType.Interact, 1042279u, new Vector3(13.290527f, 0.099999696f, -2.243164f), 1061); obj165.Steps = list242; reference183 = obj165; - ref QuestSequence reference184 = ref span73[2]; + num++; + ref QuestSequence reference184 = ref span240[num]; QuestSequence obj166 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 2012867u, new Vector3(-3.2197266f, 2.7313232f, -40.665344f), 635) + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + Span span243 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span243[num2] = new QuestStep(EInteractionType.Interact, 2012867u, new Vector3(-3.2197266f, 2.7313232f, -40.665344f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj166.Steps = list243; reference184 = obj166; - ref QuestSequence reference185 = ref span73[3]; + num++; + ref QuestSequence reference185 = ref span240[num]; QuestSequence obj167 = new QuestSequence { Sequence = 3 @@ -304999,40 +370165,55 @@ public static class AssemblyQuestLoader num2 = 3; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span74 = CollectionsMarshal.AsSpan(list244); - ref QuestStep reference186 = ref span74[0]; + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + ref QuestStep reference186 = ref span244[index2]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 2012866u, new Vector3(-0.015319824f, 6.6376343f, -78.81293f), 635) { StopDistance = 5f, IgnoreDistanceToObject = true }; - num3 = 6; - List list245 = new List(num3); - CollectionsMarshal.SetCount(list245, num3); - Span span75 = CollectionsMarshal.AsSpan(list245); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list245 = new List(num4); + CollectionsMarshal.SetCount(list245, num4); + Span span245 = CollectionsMarshal.AsSpan(list245); + num3 = 0; + span245[num3] = null; + num3++; + span245[num3] = null; + num3++; + span245[num3] = null; + num3++; + span245[num3] = null; + num3++; + span245[num3] = null; + num3++; + span245[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj168.CompletionQuestVariablesFlags = list245; reference186 = obj168; - ref QuestStep reference187 = ref span74[1]; + index2++; + ref QuestStep reference187 = ref span244[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1042283u, new Vector3(-59.250793f, -4.6778445E-15f, -29.984009f), 635); num3 = 6; List list246 = new List(num3); CollectionsMarshal.SetCount(list246, num3); - Span span76 = CollectionsMarshal.AsSpan(list246); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span246 = CollectionsMarshal.AsSpan(list246); + num4 = 0; + span246[num4] = null; + num4++; + span246[num4] = null; + num4++; + span246[num4] = null; + num4++; + span246[num4] = null; + num4++; + span246[num4] = null; + num4++; + span246[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list246; reference187 = questStep20; - ref QuestStep reference188 = ref span74[2]; + index2++; + ref QuestStep reference188 = ref span244[index2]; QuestStep obj169 = new QuestStep(EInteractionType.Interact, 1042284u, new Vector3(208.69751f, 13.5620365f, -140.30676f), 635) { AethernetShortcut = new AethernetShortcut @@ -305041,32 +370222,42 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RhalgrsReachNorthEast } }; - num3 = 6; - List list247 = new List(num3); - CollectionsMarshal.SetCount(list247, num3); - Span span77 = CollectionsMarshal.AsSpan(list247); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list247 = new List(num4); + CollectionsMarshal.SetCount(list247, num4); + Span span247 = CollectionsMarshal.AsSpan(list247); + num3 = 0; + span247[num3] = null; + num3++; + span247[num3] = null; + num3++; + span247[num3] = null; + num3++; + span247[num3] = null; + num3++; + span247[num3] = null; + num3++; + span247[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj169.CompletionQuestVariablesFlags = list247; reference188 = obj169; obj167.Steps = list244; reference185 = obj167; - ref QuestSequence reference189 = ref span73[4]; + num++; + ref QuestSequence reference189 = ref span240[num]; QuestSequence obj170 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 2012867u, new Vector3(-3.2197266f, 2.7313232f, -40.665344f), 635); + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.Interact, 2012867u, new Vector3(-3.2197266f, 2.7313232f, -40.665344f), 635); obj170.Steps = list248; reference189 = obj170; - ref QuestSequence reference190 = ref span73[5]; + num++; + ref QuestSequence reference190 = ref span240[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -305074,7 +370265,9 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042285u, new Vector3(-4.623535f, 2.745737f, -39.505676f), 635) + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042285u, new Vector3(-4.623535f, 2.745737f, -39.505676f), 635) { StopDistance = 5f, NextQuestId = new QuestId(4539) @@ -305088,21 +370281,26 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "liza"; + Span span250 = CollectionsMarshal.AsSpan(list250); + index = 0; + span250[index] = "liza"; questRoot30.Author = list250; - num = 8; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span78 = CollectionsMarshal.AsSpan(list251); - ref QuestSequence reference191 = ref span78[0]; + index = 8; + List list251 = new List(index); + CollectionsMarshal.SetCount(list251, index); + Span span251 = CollectionsMarshal.AsSpan(list251); + num = 0; + ref QuestSequence reference191 = ref span251[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042285u, new Vector3(-4.623535f, 2.745737f, -39.505676f), 635) + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042285u, new Vector3(-4.623535f, 2.745737f, -39.505676f), 635) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -305116,7 +370314,8 @@ public static class AssemblyQuestLoader }; obj172.Steps = list252; reference191 = obj172; - ref QuestSequence reference192 = ref span78[1]; + num++; + ref QuestSequence reference192 = ref span251[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -305124,7 +370323,9 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1042286u, new Vector3(-207.04968f, 18f, 87.84619f), 130) + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.Interact, 1042286u, new Vector3(-207.04968f, 18f, 87.84619f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -305135,18 +370336,22 @@ public static class AssemblyQuestLoader }; obj173.Steps = list253; reference192 = obj173; - ref QuestSequence reference193 = ref span78[2]; + num++; + ref QuestSequence reference193 = ref span251[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1042287u, new Vector3(-164.47705f, 14.004999f, 49.576538f), 130); + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.Interact, 1042287u, new Vector3(-164.47705f, 14.004999f, 49.576538f), 130); obj174.Steps = list254; reference193 = obj174; - ref QuestSequence reference194 = ref span78[3]; + num++; + ref QuestSequence reference194 = ref span251[num]; QuestSequence obj175 = new QuestSequence { Sequence = 3 @@ -305154,35 +370359,41 @@ public static class AssemblyQuestLoader num2 = 2; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span79 = CollectionsMarshal.AsSpan(list255); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.07425f, 24.884384f, -354.37775f), 146) + Span span255 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span255[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.07425f, 24.884384f, -354.37775f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - span79[1] = new QuestStep(EInteractionType.Interact, 1042288u, new Vector3(153.09375f, 10.362769f, -436.88104f), 146) + index2++; + span255[index2] = new QuestStep(EInteractionType.Interact, 1042288u, new Vector3(153.09375f, 10.362769f, -436.88104f), 146) { Fly = true }; obj175.Steps = list255; reference194 = obj175; - ref QuestSequence reference195 = ref span78[4]; + num++; + ref QuestSequence reference195 = ref span251[num]; QuestSequence obj176 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - Span span80 = CollectionsMarshal.AsSpan(list256); - span80[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(135.51227f, 10.850319f, -487.7127f), 146) + index2 = 2; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(135.51227f, 10.850319f, -487.7127f), 146) { Fly = true }; - span80[1] = new QuestStep(EInteractionType.Interact, 2012869u, new Vector3(137.4685f, 10.696533f, -488.36502f), 146); + num2++; + span256[num2] = new QuestStep(EInteractionType.Interact, 2012869u, new Vector3(137.4685f, 10.696533f, -488.36502f), 146); obj176.Steps = list256; reference195 = obj176; - ref QuestSequence reference196 = ref span78[5]; + num++; + ref QuestSequence reference196 = ref span251[num]; QuestSequence obj177 = new QuestSequence { Sequence = 5 @@ -305190,32 +370401,38 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1042288u, new Vector3(153.09375f, 10.362769f, -436.88104f), 146) + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = new QuestStep(EInteractionType.Interact, 1042288u, new Vector3(153.09375f, 10.362769f, -436.88104f), 146) { Fly = true }; obj177.Steps = list257; reference196 = obj177; - ref QuestSequence reference197 = ref span78[6]; + num++; + ref QuestSequence reference197 = ref span251[num]; QuestSequence obj178 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - Span span81 = CollectionsMarshal.AsSpan(list258); - span81[0] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) + index2 = 2; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span258[num2] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) { StopDistance = 1f, TargetTerritoryId = (ushort)1061, Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span81[1] = new QuestStep(EInteractionType.Interact, 1042281u, new Vector3(1.9378662f, 0.099999696f, -0.44250488f), 1061); + num2++; + span258[num2] = new QuestStep(EInteractionType.Interact, 1042281u, new Vector3(1.9378662f, 0.099999696f, -0.44250488f), 1061); obj178.Steps = list258; reference197 = obj178; - ref QuestSequence reference198 = ref span78[7]; + num++; + ref QuestSequence reference198 = ref span251[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -305223,7 +370440,9 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span259[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) { Fly = true, NextQuestId = new QuestId(4666) @@ -305237,21 +370456,26 @@ public static class AssemblyQuestLoader num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - CollectionsMarshal.AsSpan(list260)[0] = "liza"; + Span span260 = CollectionsMarshal.AsSpan(list260); + index = 0; + span260[index] = "liza"; questRoot31.Author = list260; - num = 7; - List list261 = new List(num); - CollectionsMarshal.SetCount(list261, num); - Span span82 = CollectionsMarshal.AsSpan(list261); - ref QuestSequence reference199 = ref span82[0]; + index = 7; + List list261 = new List(index); + CollectionsMarshal.SetCount(list261, index); + Span span261 = CollectionsMarshal.AsSpan(list261); + num = 0; + ref QuestSequence reference199 = ref span261[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list262)[0]; + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + ref QuestStep reference200 = ref span262[num2]; QuestStep obj181 = new QuestStep(EInteractionType.AcceptQuest, 1042487u, new Vector3(32.272827f, -4.4237822E-07f, -0.7477417f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan @@ -305259,7 +370483,9 @@ public static class AssemblyQuestLoader num3 = 1; List list263 = new List(num3); CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = new DialogueChoice + Span span263 = CollectionsMarshal.AsSpan(list263); + num4 = 0; + span263[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB811_04542_Q4_000_000"), @@ -305269,7 +370495,8 @@ public static class AssemblyQuestLoader reference200 = obj181; obj180.Steps = list262; reference199 = obj180; - ref QuestSequence reference201 = ref span82[1]; + num++; + ref QuestSequence reference201 = ref span261[num]; QuestSequence obj182 = new QuestSequence { Sequence = 1 @@ -305277,18 +370504,23 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1042488u, new Vector3(150.68274f, 4.783756f, -145.00653f), 963); + Span span264 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span264[index2] = new QuestStep(EInteractionType.Interact, 1042488u, new Vector3(150.68274f, 4.783756f, -145.00653f), 963); obj182.Steps = list264; reference201 = obj182; - ref QuestSequence reference202 = ref span82[2]; + num++; + ref QuestSequence reference202 = ref span261[num]; QuestSequence obj183 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1042489u, new Vector3(147.75305f, 27.06f, 36.057007f), 963) + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + Span span265 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span265[num2] = new QuestStep(EInteractionType.Interact, 1042489u, new Vector3(147.75305f, 27.06f, 36.057007f), 963) { AethernetShortcut = new AethernetShortcut { @@ -305298,7 +370530,8 @@ public static class AssemblyQuestLoader }; obj183.Steps = list265; reference202 = obj183; - ref QuestSequence reference203 = ref span82[3]; + num++; + ref QuestSequence reference203 = ref span261[num]; QuestSequence obj184 = new QuestSequence { Sequence = 3 @@ -305306,7 +370539,9 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1027322u, new Vector3(-20.126648f, 3.9998171f, 204.24194f), 819) + Span span266 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span266[index2] = new QuestStep(EInteractionType.Interact, 1027322u, new Vector3(-20.126648f, 3.9998171f, 204.24194f), 819) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -305318,16 +370553,18 @@ public static class AssemblyQuestLoader }; obj184.Steps = list266; reference203 = obj184; - ref QuestSequence reference204 = ref span82[4]; + num++; + ref QuestSequence reference204 = ref span261[num]; QuestSequence obj185 = new QuestSequence { Sequence = 4 }; - num2 = 7; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span83 = CollectionsMarshal.AsSpan(list267); - span83[0] = new QuestStep(EInteractionType.None, null, null, 819) + index2 = 7; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span267[num2] = new QuestStep(EInteractionType.None, null, null, 819) { AethernetShortcut = new AethernetShortcut { @@ -305335,7 +370572,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - span83[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + num2++; + span267[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { Comment = "these bridges have navmesh problems", SkipConditions = new SkipConditions @@ -305346,7 +370584,8 @@ public static class AssemblyQuestLoader } } }; - span83[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) + num2++; + span267[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -305357,7 +370596,8 @@ public static class AssemblyQuestLoader } } }; - span83[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) + num2++; + span267[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) { SkipConditions = new SkipConditions { @@ -305367,24 +370607,32 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference205 = ref span83[4]; + num2++; + ref QuestStep reference205 = ref span267[num2]; QuestStep obj186 = new QuestStep(EInteractionType.Interact, 1042493u, new Vector3(-106.73688f, 14.173656f, 756.4354f), 813) { Fly = true }; - num3 = 6; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - Span span84 = CollectionsMarshal.AsSpan(list268); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list268 = new List(num4); + CollectionsMarshal.SetCount(list268, num4); + Span span268 = CollectionsMarshal.AsSpan(list268); + num3 = 0; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj186.CompletionQuestVariablesFlags = list268; reference205 = obj186; - ref QuestStep reference206 = ref span83[5]; + num2++; + ref QuestStep reference206 = ref span267[num2]; QuestStep obj187 = new QuestStep(EInteractionType.Interact, 1042491u, new Vector3(-137.22437f, 9.572956f, 708.3999f), 813) { StopDistance = 1f, @@ -305393,35 +370641,49 @@ public static class AssemblyQuestLoader num3 = 6; List list269 = new List(num3); CollectionsMarshal.SetCount(list269, num3); - Span span85 = CollectionsMarshal.AsSpan(list269); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span269 = CollectionsMarshal.AsSpan(list269); + num4 = 0; + span269[num4] = null; + num4++; + span269[num4] = null; + num4++; + span269[num4] = null; + num4++; + span269[num4] = null; + num4++; + span269[num4] = null; + num4++; + span269[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj187.CompletionQuestVariablesFlags = list269; reference206 = obj187; - ref QuestStep reference207 = ref span83[6]; + num2++; + ref QuestStep reference207 = ref span267[num2]; QuestStep obj188 = new QuestStep(EInteractionType.Interact, 1042492u, new Vector3(-218.76862f, 1.9084097f, 756.16077f), 813) { Fly = true }; - num3 = 6; - List list270 = new List(num3); - CollectionsMarshal.SetCount(list270, num3); - Span span86 = CollectionsMarshal.AsSpan(list270); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list270 = new List(num4); + CollectionsMarshal.SetCount(list270, num4); + Span span270 = CollectionsMarshal.AsSpan(list270); + num3 = 0; + span270[num3] = null; + num3++; + span270[num3] = null; + num3++; + span270[num3] = null; + num3++; + span270[num3] = null; + num3++; + span270[num3] = null; + num3++; + span270[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj188.CompletionQuestVariablesFlags = list270; reference207 = obj188; obj185.Steps = list267; reference204 = obj185; - ref QuestSequence reference208 = ref span82[5]; + num++; + ref QuestSequence reference208 = ref span261[num]; QuestSequence obj189 = new QuestSequence { Sequence = 5 @@ -305429,8 +370691,9 @@ public static class AssemblyQuestLoader num2 = 2; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span87 = CollectionsMarshal.AsSpan(list271); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) + Span span271 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span271[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) { SkipConditions = new SkipConditions { @@ -305440,19 +370703,22 @@ public static class AssemblyQuestLoader } } }; - span87[1] = new QuestStep(EInteractionType.Interact, 1042494u, new Vector3(-54.032227f, 2.015483f, 677.9125f), 813); + index2++; + span271[index2] = new QuestStep(EInteractionType.Interact, 1042494u, new Vector3(-54.032227f, 2.015483f, 677.9125f), 813); obj189.Steps = list271; reference208 = obj189; - ref QuestSequence reference209 = ref span82[6]; + num++; + ref QuestSequence reference209 = ref span261[num]; QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - Span span88 = CollectionsMarshal.AsSpan(list272); - span88[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) + index2 = 4; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + Span span272 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span272[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) { SkipConditions = new SkipConditions { @@ -305462,7 +370728,8 @@ public static class AssemblyQuestLoader } } }; - span88[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + num2++; + span272[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { DisableNavmesh = true, Comment = "these bridges have navmesh problems", @@ -305474,7 +370741,8 @@ public static class AssemblyQuestLoader } } }; - span88[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(105.453514f, -1.5952542f, 604.3535f), 813) + num2++; + span272[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(105.453514f, -1.5952542f, 604.3535f), 813) { SkipConditions = new SkipConditions { @@ -305484,7 +370752,8 @@ public static class AssemblyQuestLoader } } }; - span88[3] = new QuestStep(EInteractionType.CompleteQuest, 1042497u, new Vector3(220.7522f, 12.699311f, 229.84656f), 813) + num2++; + span272[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042497u, new Vector3(220.7522f, 12.699311f, 229.84656f), 813) { Fly = true, NextQuestId = new QuestId(4543) @@ -305498,13 +370767,16 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "liza"; + Span span273 = CollectionsMarshal.AsSpan(list273); + index = 0; + span273[index] = "liza"; questRoot32.Author = list273; - num = 11; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span89 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference210 = ref span89[0]; + index = 11; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + Span span274 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference210 = ref span274[num]; QuestSequence obj191 = new QuestSequence { Sequence = 0 @@ -305512,7 +370784,9 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - ref QuestStep reference211 = ref CollectionsMarshal.AsSpan(list275)[0]; + Span span275 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + ref QuestStep reference211 = ref span275[index2]; QuestStep obj192 = new QuestStep(EInteractionType.AcceptQuest, 1042499u, new Vector3(217.51733f, 12.445339f, 228.44275f), 813) { StopDistance = 5f @@ -305520,7 +370794,9 @@ public static class AssemblyQuestLoader num3 = 1; List list276 = new List(num3); CollectionsMarshal.SetCount(list276, num3); - CollectionsMarshal.AsSpan(list276)[0] = new DialogueChoice + Span span276 = CollectionsMarshal.AsSpan(list276); + num4 = 0; + span276[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB812_04543_Q1_000_000"), @@ -305530,15 +370806,18 @@ public static class AssemblyQuestLoader reference211 = obj192; obj191.Steps = list275; reference210 = obj191; - ref QuestSequence reference212 = ref span89[1]; + num++; + ref QuestSequence reference212 = ref span274[num]; QuestSequence obj193 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.Interact, 1042502u, new Vector3(-57.38922f, -36.72638f, -254.53583f), 819) + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span277[num2] = new QuestStep(EInteractionType.Interact, 1042502u, new Vector3(-57.38922f, -36.72638f, -254.53583f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -305549,7 +370828,8 @@ public static class AssemblyQuestLoader }; obj193.Steps = list277; reference212 = obj193; - ref QuestSequence reference213 = ref span89[2]; + num++; + ref QuestSequence reference213 = ref span274[num]; QuestSequence obj194 = new QuestSequence { Sequence = 2 @@ -305557,7 +370837,9 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.Interact, 1042505u, new Vector3(148.11926f, 27.06f, 36.240112f), 963) + Span span278 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span278[index2] = new QuestStep(EInteractionType.Interact, 1042505u, new Vector3(148.11926f, 27.06f, 36.240112f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -305568,46 +370850,62 @@ public static class AssemblyQuestLoader }; obj194.Steps = list278; reference213 = obj194; - ref QuestSequence reference214 = ref span89[3]; + num++; + ref QuestSequence reference214 = ref span274[num]; QuestSequence obj195 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - Span span90 = CollectionsMarshal.AsSpan(list279); - ref QuestStep reference215 = ref span90[0]; + index2 = 2; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + Span span279 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + ref QuestStep reference215 = ref span279[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1037341u, new Vector3(133.77576f, 26.99999f, 12.405518f), 963); - num3 = 6; - List list280 = new List(num3); - CollectionsMarshal.SetCount(list280, num3); - Span span91 = CollectionsMarshal.AsSpan(list280); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list280 = new List(num4); + CollectionsMarshal.SetCount(list280, num4); + Span span280 = CollectionsMarshal.AsSpan(list280); + num3 = 0; + span280[num3] = null; + num3++; + span280[num3] = null; + num3++; + span280[num3] = null; + num3++; + span280[num3] = null; + num3++; + span280[num3] = null; + num3++; + span280[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list280; reference215 = questStep21; - ref QuestStep reference216 = ref span90[1]; + num2++; + ref QuestStep reference216 = ref span279[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1037352u, new Vector3(112.10791f, 26.99999f, 25.253662f), 963); num3 = 6; List list281 = new List(num3); CollectionsMarshal.SetCount(list281, num3); - Span span92 = CollectionsMarshal.AsSpan(list281); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span281 = CollectionsMarshal.AsSpan(list281); + num4 = 0; + span281[num4] = null; + num4++; + span281[num4] = null; + num4++; + span281[num4] = null; + num4++; + span281[num4] = null; + num4++; + span281[num4] = null; + num4++; + span281[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list281; reference216 = questStep22; obj195.Steps = list279; reference214 = obj195; - ref QuestSequence reference217 = ref span89[4]; + num++; + ref QuestSequence reference217 = ref span274[num]; QuestSequence obj196 = new QuestSequence { Sequence = 4 @@ -305615,21 +370913,27 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1042506u, new Vector3(126.11572f, 26.999989f, 32.76111f), 963); + Span span282 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span282[index2] = new QuestStep(EInteractionType.Interact, 1042506u, new Vector3(126.11572f, 26.999989f, 32.76111f), 963); obj196.Steps = list282; reference217 = obj196; - ref QuestSequence reference218 = ref span89[5]; + num++; + ref QuestSequence reference218 = ref span274[num]; QuestSequence obj197 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1042508u, new Vector3(126.11572f, 26.999989f, 32.76111f), 963); + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + Span span283 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span283[num2] = new QuestStep(EInteractionType.Interact, 1042508u, new Vector3(126.11572f, 26.999989f, 32.76111f), 963); obj197.Steps = list283; reference218 = obj197; - ref QuestSequence reference219 = ref span89[6]; + num++; + ref QuestSequence reference219 = ref span274[num]; QuestSequence obj198 = new QuestSequence { Sequence = 6 @@ -305637,19 +370941,23 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1037324u, new Vector3(-4.257263f, 27f, 36.362183f), 963); + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span284[index2] = new QuestStep(EInteractionType.Interact, 1037324u, new Vector3(-4.257263f, 27f, 36.362183f), 963); obj198.Steps = list284; reference219 = obj198; - ref QuestSequence reference220 = ref span89[7]; + num++; + ref QuestSequence reference220 = ref span274[num]; QuestSequence obj199 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - Span span93 = CollectionsMarshal.AsSpan(list285); - span93[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-3.0175605f, 27f, 36.584843f), 963) + index2 = 2; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span285 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span285[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-3.0175605f, 27f, 36.584843f), 963) { StopDistance = 0.5f, JumpDestination = new JumpDestination @@ -305657,10 +370965,12 @@ public static class AssemblyQuestLoader Position = new Vector3(-3.6922705f, -1.9999962f, 52.106045f) } }; - span93[1] = new QuestStep(EInteractionType.Interact, 1042509u, new Vector3(-29.373718f, -1.9999962f, 130.93762f), 963); + num2++; + span285[num2] = new QuestStep(EInteractionType.Interact, 1042509u, new Vector3(-29.373718f, -1.9999962f, 130.93762f), 963); obj199.Steps = list285; reference220 = obj199; - ref QuestSequence reference221 = ref span89[8]; + num++; + ref QuestSequence reference221 = ref span274[num]; QuestSequence obj200 = new QuestSequence { Sequence = 8 @@ -305668,28 +370978,34 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1042510u, new Vector3(-337.57538f, 3.2215352f, 365.7129f), 957) + Span span286 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + span286[index2] = new QuestStep(EInteractionType.Interact, 1042510u, new Vector3(-337.57538f, 3.2215352f, 365.7129f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj200.Steps = list286; reference221 = obj200; - ref QuestSequence reference222 = ref span89[9]; + num++; + ref QuestSequence reference222 = ref span274[num]; QuestSequence obj201 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1042511u, new Vector3(-376.669f, 1.1651754f, 379.23242f), 957) + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + Span span287 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + span287[num2] = new QuestStep(EInteractionType.Interact, 1042511u, new Vector3(-376.669f, 1.1651754f, 379.23242f), 957) { StopDistance = 5f }; obj201.Steps = list287; reference222 = obj201; - ref QuestSequence reference223 = ref span89[10]; + num++; + ref QuestSequence reference223 = ref span274[num]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue @@ -305697,7 +371013,9 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042512u, new Vector3(31.387817f, -5.021957E-07f, -0.65618896f), 963) + Span span288 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span288[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042512u, new Vector3(31.387817f, -5.021957E-07f, -0.65618896f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, NextQuestId = new QuestId(4641) @@ -305711,29 +371029,36 @@ public static class AssemblyQuestLoader num = 1; List list289 = new List(num); CollectionsMarshal.SetCount(list289, num); - CollectionsMarshal.AsSpan(list289)[0] = "liza"; + Span span289 = CollectionsMarshal.AsSpan(list289); + index = 0; + span289[index] = "liza"; questRoot33.Author = list289; - num = 9; - List list290 = new List(num); - CollectionsMarshal.SetCount(list290, num); - Span span94 = CollectionsMarshal.AsSpan(list290); - ref QuestSequence reference224 = ref span94[0]; + index = 9; + List list290 = new List(index); + CollectionsMarshal.SetCount(list290, index); + Span span290 = CollectionsMarshal.AsSpan(list290); + num = 0; + ref QuestSequence reference224 = ref span290[num]; QuestSequence obj203 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - ref QuestStep reference225 = ref CollectionsMarshal.AsSpan(list291)[0]; + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + Span span291 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + ref QuestStep reference225 = ref span291[num2]; QuestStep obj204 = new QuestStep(EInteractionType.AcceptQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - num3 = 1; - List list292 = new List(num3); - CollectionsMarshal.SetCount(list292, num3); - CollectionsMarshal.AsSpan(list292)[0] = new DialogueChoice + num4 = 1; + List list292 = new List(num4); + CollectionsMarshal.SetCount(list292, num4); + Span span292 = CollectionsMarshal.AsSpan(list292); + num3 = 0; + span292[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK001_04545_Q1_000_004"), @@ -305743,7 +371068,8 @@ public static class AssemblyQuestLoader reference225 = obj204; obj203.Steps = list291; reference224 = obj203; - ref QuestSequence reference226 = ref span94[1]; + num++; + ref QuestSequence reference226 = ref span290[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -305751,36 +371077,51 @@ public static class AssemblyQuestLoader num2 = 3; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span95 = CollectionsMarshal.AsSpan(list293); - ref QuestStep reference227 = ref span95[0]; + Span span293 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + ref QuestStep reference227 = ref span293[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1042303u, new Vector3(183.79492f, 10.683311f, 557.42737f), 957); num3 = 6; List list294 = new List(num3); CollectionsMarshal.SetCount(list294, num3); - Span span96 = CollectionsMarshal.AsSpan(list294); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span294 = CollectionsMarshal.AsSpan(list294); + num4 = 0; + span294[num4] = null; + num4++; + span294[num4] = null; + num4++; + span294[num4] = null; + num4++; + span294[num4] = null; + num4++; + span294[num4] = null; + num4++; + span294[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list294; reference227 = questStep23; - ref QuestStep reference228 = ref span95[1]; + index2++; + ref QuestStep reference228 = ref span293[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1042305u, new Vector3(200f, 10.114502f, 579.1256f), 957); - num3 = 6; - List list295 = new List(num3); - CollectionsMarshal.SetCount(list295, num3); - Span span97 = CollectionsMarshal.AsSpan(list295); - span97[0] = null; - span97[1] = null; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list295 = new List(num4); + CollectionsMarshal.SetCount(list295, num4); + Span span295 = CollectionsMarshal.AsSpan(list295); + num3 = 0; + span295[num3] = null; + num3++; + span295[num3] = null; + num3++; + span295[num3] = null; + num3++; + span295[num3] = null; + num3++; + span295[num3] = null; + num3++; + span295[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list295; reference228 = questStep24; - ref QuestStep reference229 = ref span95[2]; + index2++; + ref QuestStep reference229 = ref span293[index2]; QuestStep obj206 = new QuestStep(EInteractionType.Interact, 1042304u, new Vector3(171.58765f, 4.763736f, 683.37524f), 957) { Fly = true @@ -305788,32 +371129,42 @@ public static class AssemblyQuestLoader num3 = 6; List list296 = new List(num3); CollectionsMarshal.SetCount(list296, num3); - Span span98 = CollectionsMarshal.AsSpan(list296); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span296 = CollectionsMarshal.AsSpan(list296); + num4 = 0; + span296[num4] = null; + num4++; + span296[num4] = null; + num4++; + span296[num4] = null; + num4++; + span296[num4] = null; + num4++; + span296[num4] = null; + num4++; + span296[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj206.CompletionQuestVariablesFlags = list296; reference229 = obj206; obj205.Steps = list293; reference226 = obj205; - ref QuestSequence reference230 = ref span94[2]; + num++; + ref QuestSequence reference230 = ref span290[num]; QuestSequence obj207 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 1042306u, new Vector3(-260.6394f, 14.412592f, 202.62451f), 957) + index2 = 1; + List list297 = new List(index2); + CollectionsMarshal.SetCount(list297, index2); + Span span297 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + span297[num2] = new QuestStep(EInteractionType.Interact, 1042306u, new Vector3(-260.6394f, 14.412592f, 202.62451f), 957) { Fly = true }; obj207.Steps = list297; reference230 = obj207; - ref QuestSequence reference231 = ref span94[3]; + num++; + ref QuestSequence reference231 = ref span290[num]; QuestSequence obj208 = new QuestSequence { Sequence = 3 @@ -305821,36 +371172,43 @@ public static class AssemblyQuestLoader num2 = 2; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span99 = CollectionsMarshal.AsSpan(list298); - span99[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + Span span298 = CollectionsMarshal.AsSpan(list298); + index2 = 0; + span298[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Fly = true }; - span99[1] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + index2++; + span298[index2] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj208.Steps = list298; reference231 = obj208; - ref QuestSequence reference232 = ref span94[4]; + num++; + ref QuestSequence reference232 = ref span290[num]; QuestSequence obj209 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - Span span100 = CollectionsMarshal.AsSpan(list299); - span100[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + index2 = 2; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + Span span299 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span299[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Mount = true }; - ref QuestStep reference233 = ref span100[1]; + num2++; + ref QuestStep reference233 = ref span299[num2]; QuestStep obj210 = new QuestStep(EInteractionType.Interact, 1042307u, new Vector3(121.01929f, 6.780056f, 585.59546f), 957) { Fly = true }; - num3 = 1; - List list300 = new List(num3); - CollectionsMarshal.SetCount(list300, num3); - CollectionsMarshal.AsSpan(list300)[0] = new DialogueChoice + num4 = 1; + List list300 = new List(num4); + CollectionsMarshal.SetCount(list300, num4); + Span span300 = CollectionsMarshal.AsSpan(list300); + num3 = 0; + span300[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANARK001_04545_Q4_000_081") @@ -305859,7 +371217,8 @@ public static class AssemblyQuestLoader reference233 = obj210; obj209.Steps = list299; reference232 = obj209; - ref QuestSequence reference234 = ref span94[5]; + num++; + ref QuestSequence reference234 = ref span290[num]; QuestSequence obj211 = new QuestSequence { Sequence = 5 @@ -305867,7 +371226,9 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - ref QuestStep reference235 = ref CollectionsMarshal.AsSpan(list301)[0]; + Span span301 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + ref QuestStep reference235 = ref span301[index2]; QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1042310u, new Vector3(-488.7007f, 4.563182f, 18.20398f), 957) { StopDistance = 5f @@ -305875,7 +371236,9 @@ public static class AssemblyQuestLoader num3 = 1; List list302 = new List(num3); CollectionsMarshal.SetCount(list302, num3); - CollectionsMarshal.AsSpan(list302)[0] = new DialogueChoice + Span span302 = CollectionsMarshal.AsSpan(list302); + num4 = 0; + span302[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANARK001_04545_Q5_000_115") @@ -305884,18 +371247,22 @@ public static class AssemblyQuestLoader reference235 = obj212; obj211.Steps = list301; reference234 = obj211; - ref QuestSequence reference236 = ref span94[6]; + num++; + ref QuestSequence reference236 = ref span290[num]; QuestSequence obj213 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(159.25264f, 5.220791f, 606.4928f), 957); + index2 = 1; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + Span span303 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span303[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(159.25264f, 5.220791f, 606.4928f), 957); obj213.Steps = list303; reference236 = obj213; - ref QuestSequence reference237 = ref span94[7]; + num++; + ref QuestSequence reference237 = ref span290[num]; QuestSequence obj214 = new QuestSequence { Sequence = 7 @@ -305903,23 +371270,28 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + Span span304 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span304[index2] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj214.Steps = list304; reference237 = obj214; - ref QuestSequence reference238 = ref span94[8]; + num++; + ref QuestSequence reference238 = ref span290[num]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - Span span101 = CollectionsMarshal.AsSpan(list305); - span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + index2 = 2; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + Span span305 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span305[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Mount = true }; - span101[1] = new QuestStep(EInteractionType.CompleteQuest, 1042313u, new Vector3(-78.690796f, 40.010006f, 323.2318f), 957) + num2++; + span305[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042313u, new Vector3(-78.690796f, 40.010006f, 323.2318f), 957) { Fly = true }; @@ -305932,13 +371304,16 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - CollectionsMarshal.AsSpan(list306)[0] = "liza"; + Span span306 = CollectionsMarshal.AsSpan(list306); + index = 0; + span306[index] = "liza"; questRoot34.Author = list306; - num = 10; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - Span span102 = CollectionsMarshal.AsSpan(list307); - ref QuestSequence reference239 = ref span102[0]; + index = 10; + List list307 = new List(index); + CollectionsMarshal.SetCount(list307, index); + Span span307 = CollectionsMarshal.AsSpan(list307); + num = 0; + ref QuestSequence reference239 = ref span307[num]; QuestSequence obj216 = new QuestSequence { Sequence = 0 @@ -305946,24 +371321,30 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.986862f, 309.98706f), 957); + Span span308 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span308[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.986862f, 309.98706f), 957); obj216.Steps = list308; reference239 = obj216; - ref QuestSequence reference240 = ref span102[1]; + num++; + ref QuestSequence reference240 = ref span307[num]; QuestSequence obj217 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 2012919u, new Vector3(-464.22522f, 5.3864136f, 22.445984f), 957) + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + Span span309 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span309[num2] = new QuestStep(EInteractionType.Interact, 2012919u, new Vector3(-464.22522f, 5.3864136f, 22.445984f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj217.Steps = list309; reference240 = obj217; - ref QuestSequence reference241 = ref span102[2]; + num++; + ref QuestSequence reference241 = ref span307[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 @@ -305971,36 +371352,44 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - ref QuestStep reference242 = ref CollectionsMarshal.AsSpan(list310)[0]; + Span span310 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + ref QuestStep reference242 = ref span310[index2]; QuestStep obj219 = new QuestStep(EInteractionType.Combat, null, new Vector3(-363.06543f, 55.300343f, -108.32965f), 957) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list311 = new List(num3); - CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = 14681u; + num4 = 1; + List list311 = new List(num4); + CollectionsMarshal.SetCount(list311, num4); + Span span311 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span311[num3] = 14681u; obj219.KillEnemyDataIds = list311; reference242 = obj219; obj218.Steps = list310; reference241 = obj218; - ref QuestSequence reference243 = ref span102[3]; + num++; + ref QuestSequence reference243 = ref span307[num]; QuestSequence obj220 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Interact, 1042318u, new Vector3(-360.49445f, 54.680054f, -102.9527f), 957) + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + Span span312 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span312[num2] = new QuestStep(EInteractionType.Interact, 1042318u, new Vector3(-360.49445f, 54.680054f, -102.9527f), 957) { StopDistance = 7f }; obj220.Steps = list312; reference243 = obj220; - ref QuestSequence reference244 = ref span102[4]; + num++; + ref QuestSequence reference244 = ref span307[num]; QuestSequence obj221 = new QuestSequence { Sequence = 4 @@ -306008,24 +371397,30 @@ public static class AssemblyQuestLoader num2 = 1; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1042321u, new Vector3(-522.9725f, 11.61713f, 88.97534f), 957) + Span span313 = CollectionsMarshal.AsSpan(list313); + index2 = 0; + span313[index2] = new QuestStep(EInteractionType.Interact, 1042321u, new Vector3(-522.9725f, 11.61713f, 88.97534f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj221.Steps = list313; reference244 = obj221; - ref QuestSequence reference245 = ref span102[5]; + num++; + ref QuestSequence reference245 = ref span307[num]; QuestSequence obj222 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list314 = new List(num2); - CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 1042322u, new Vector3(-523.36926f, 10.9199f, 85.34363f), 957); + index2 = 1; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + Span span314 = CollectionsMarshal.AsSpan(list314); + num2 = 0; + span314[num2] = new QuestStep(EInteractionType.Interact, 1042322u, new Vector3(-523.36926f, 10.9199f, 85.34363f), 957); obj222.Steps = list314; reference245 = obj222; - ref QuestSequence reference246 = ref span102[6]; + num++; + ref QuestSequence reference246 = ref span307[num]; QuestSequence obj223 = new QuestSequence { Sequence = 6 @@ -306033,40 +371428,55 @@ public static class AssemblyQuestLoader num2 = 3; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span103 = CollectionsMarshal.AsSpan(list315); - ref QuestStep reference247 = ref span103[0]; + Span span315 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + ref QuestStep reference247 = ref span315[index2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1042324u, new Vector3(-558.0072f, 11.802552f, 114.03064f), 957); num3 = 6; List list316 = new List(num3); CollectionsMarshal.SetCount(list316, num3); - Span span104 = CollectionsMarshal.AsSpan(list316); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span316 = CollectionsMarshal.AsSpan(list316); + num4 = 0; + span316[num4] = null; + num4++; + span316[num4] = null; + num4++; + span316[num4] = null; + num4++; + span316[num4] = null; + num4++; + span316[num4] = null; + num4++; + span316[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list316; reference247 = questStep25; - ref QuestStep reference248 = ref span103[1]; + index2++; + ref QuestStep reference248 = ref span315[index2]; QuestStep obj224 = new QuestStep(EInteractionType.Interact, 1042325u, new Vector3(-552.75806f, 1.120665f, 23.392029f), 957) { StopDistance = 0.5f, Fly = true }; - num3 = 6; - List list317 = new List(num3); - CollectionsMarshal.SetCount(list317, num3); - Span span105 = CollectionsMarshal.AsSpan(list317); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list317 = new List(num4); + CollectionsMarshal.SetCount(list317, num4); + Span span317 = CollectionsMarshal.AsSpan(list317); + num3 = 0; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj224.CompletionQuestVariablesFlags = list317; reference248 = obj224; - ref QuestStep reference249 = ref span103[2]; + index2++; + ref QuestStep reference249 = ref span315[index2]; QuestStep obj225 = new QuestStep(EInteractionType.Interact, 1042323u, new Vector3(-480.33875f, 1.9096844f, -13.53479f), 957) { Fly = true @@ -306074,29 +371484,39 @@ public static class AssemblyQuestLoader num3 = 6; List list318 = new List(num3); CollectionsMarshal.SetCount(list318, num3); - Span span106 = CollectionsMarshal.AsSpan(list318); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span318 = CollectionsMarshal.AsSpan(list318); + num4 = 0; + span318[num4] = null; + num4++; + span318[num4] = null; + num4++; + span318[num4] = null; + num4++; + span318[num4] = null; + num4++; + span318[num4] = null; + num4++; + span318[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj225.CompletionQuestVariablesFlags = list318; reference249 = obj225; obj223.Steps = list315; reference246 = obj223; - ref QuestSequence reference250 = ref span102[7]; + num++; + ref QuestSequence reference250 = ref span307[num]; QuestSequence obj226 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.Interact, 1042321u, new Vector3(-522.9725f, 11.61713f, 88.97534f), 957); + index2 = 1; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + Span span319 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + span319[num2] = new QuestStep(EInteractionType.Interact, 1042321u, new Vector3(-522.9725f, 11.61713f, 88.97534f), 957); obj226.Steps = list319; reference250 = obj226; - ref QuestSequence reference251 = ref span102[8]; + num++; + ref QuestSequence reference251 = ref span307[num]; QuestSequence obj227 = new QuestSequence { Sequence = 8 @@ -306104,21 +371524,26 @@ public static class AssemblyQuestLoader num2 = 1; List list320 = new List(num2); CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + Span span320 = CollectionsMarshal.AsSpan(list320); + index2 = 0; + span320[index2] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj227.Steps = list320; reference251 = obj227; - ref QuestSequence reference252 = ref span102[9]; + num++; + ref QuestSequence reference252 = ref span307[num]; QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.986862f, 309.98706f), 957) + index2 = 1; + List list321 = new List(index2); + CollectionsMarshal.SetCount(list321, index2); + Span span321 = CollectionsMarshal.AsSpan(list321); + num2 = 0; + span321[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.986862f, 309.98706f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, @@ -306133,13 +371558,16 @@ public static class AssemblyQuestLoader num = 1; List list322 = new List(num); CollectionsMarshal.SetCount(list322, num); - CollectionsMarshal.AsSpan(list322)[0] = "liza"; + Span span322 = CollectionsMarshal.AsSpan(list322); + index = 0; + span322[index] = "liza"; questRoot35.Author = list322; - num = 7; - List list323 = new List(num); - CollectionsMarshal.SetCount(list323, num); - Span span107 = CollectionsMarshal.AsSpan(list323); - ref QuestSequence reference253 = ref span107[0]; + index = 7; + List list323 = new List(index); + CollectionsMarshal.SetCount(list323, index); + Span span323 = CollectionsMarshal.AsSpan(list323); + num = 0; + ref QuestSequence reference253 = ref span323[num]; QuestSequence obj229 = new QuestSequence { Sequence = 0 @@ -306147,25 +371575,31 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); + Span span324 = CollectionsMarshal.AsSpan(list324); + index2 = 0; + span324[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); obj229.Steps = list324; reference253 = obj229; - ref QuestSequence reference254 = ref span107[1]; + num++; + ref QuestSequence reference254 = ref span323[num]; QuestSequence obj230 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1042327u, new Vector3(413.35156f, 19.3188f, -457.57233f), 957) + index2 = 1; + List list325 = new List(index2); + CollectionsMarshal.SetCount(list325, index2); + Span span325 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + span325[num2] = new QuestStep(EInteractionType.Interact, 1042327u, new Vector3(413.35156f, 19.3188f, -457.57233f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj230.Steps = list325; reference254 = obj230; - ref QuestSequence reference255 = ref span107[2]; + num++; + ref QuestSequence reference255 = ref span323[num]; QuestSequence obj231 = new QuestSequence { Sequence = 2 @@ -306173,27 +371607,33 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.Interact, 2012921u, new Vector3(128.89294f, 16f, -437.9187f), 957) + Span span326 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span326[index2] = new QuestStep(EInteractionType.Interact, 2012921u, new Vector3(128.89294f, 16f, -437.9187f), 957) { Fly = true }; obj231.Steps = list326; reference255 = obj231; - ref QuestSequence reference256 = ref span107[3]; + num++; + ref QuestSequence reference256 = ref span323[num]; QuestSequence obj232 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 1042328u, new Vector3(128.31311f, 16.178802f, -439.78027f), 957) + index2 = 1; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + Span span327 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span327[num2] = new QuestStep(EInteractionType.Interact, 1042328u, new Vector3(128.31311f, 16.178802f, -439.78027f), 957) { StopDistance = 4.5f }; obj232.Steps = list327; reference256 = obj232; - ref QuestSequence reference257 = ref span107[4]; + num++; + ref QuestSequence reference257 = ref span323[num]; QuestSequence obj233 = new QuestSequence { Sequence = 4 @@ -306201,27 +371641,33 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Interact, 1042327u, new Vector3(413.35156f, 19.3188f, -457.57233f), 957) + Span span328 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + span328[index2] = new QuestStep(EInteractionType.Interact, 1042327u, new Vector3(413.35156f, 19.3188f, -457.57233f), 957) { Fly = true }; obj233.Steps = list328; reference257 = obj233; - ref QuestSequence reference258 = ref span107[5]; + num++; + ref QuestSequence reference258 = ref span323[num]; QuestSequence obj234 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 1042330u, new Vector3(383.1692f, 3.1168795f, -263.8133f), 957) + index2 = 1; + List list329 = new List(index2); + CollectionsMarshal.SetCount(list329, index2); + Span span329 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + span329[num2] = new QuestStep(EInteractionType.Interact, 1042330u, new Vector3(383.1692f, 3.1168795f, -263.8133f), 957) { Fly = true }; obj234.Steps = list329; reference258 = obj234; - ref QuestSequence reference259 = ref span107[6]; + num++; + ref QuestSequence reference259 = ref span323[num]; QuestSequence obj235 = new QuestSequence { Sequence = byte.MaxValue @@ -306229,7 +371675,9 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.986862f, 309.98706f), 957) + Span span330 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span330[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.986862f, 309.98706f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -306243,24 +371691,30 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "liza"; + Span span331 = CollectionsMarshal.AsSpan(list331); + index = 0; + span331[index] = "liza"; questRoot36.Author = list331; - num = 6; - List list332 = new List(num); - CollectionsMarshal.SetCount(list332, num); - Span span108 = CollectionsMarshal.AsSpan(list332); - ref QuestSequence reference260 = ref span108[0]; + index = 6; + List list332 = new List(index); + CollectionsMarshal.SetCount(list332, index); + Span span332 = CollectionsMarshal.AsSpan(list332); + num = 0; + ref QuestSequence reference260 = ref span332[num]; QuestSequence obj236 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); + index2 = 1; + List list333 = new List(index2); + CollectionsMarshal.SetCount(list333, index2); + Span span333 = CollectionsMarshal.AsSpan(list333); + num2 = 0; + span333[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); obj236.Steps = list333; reference260 = obj236; - ref QuestSequence reference261 = ref span108[1]; + num++; + ref QuestSequence reference261 = ref span332[num]; QuestSequence obj237 = new QuestSequence { Sequence = 1 @@ -306268,40 +371722,51 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1042336u, new Vector3(409.964f, 18.253498f, -461.53967f), 957) + Span span334 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span334[index2] = new QuestStep(EInteractionType.Interact, 1042336u, new Vector3(409.964f, 18.253498f, -461.53967f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj237.Steps = list334; reference261 = obj237; - ref QuestSequence reference262 = ref span108[2]; + num++; + ref QuestSequence reference262 = ref span332[num]; QuestSequence obj238 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - Span span109 = CollectionsMarshal.AsSpan(list335); - ref QuestStep reference263 = ref span109[0]; + index2 = 2; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + Span span335 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + ref QuestStep reference263 = ref span335[num2]; QuestStep obj239 = new QuestStep(EInteractionType.Interact, 2012970u, new Vector3(197.4364f, 9.323181f, -438.71216f), 957) { Fly = true }; - num3 = 6; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - Span span110 = CollectionsMarshal.AsSpan(list336); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list336 = new List(num4); + CollectionsMarshal.SetCount(list336, num4); + Span span336 = CollectionsMarshal.AsSpan(list336); + num3 = 0; + span336[num3] = null; + num3++; + span336[num3] = null; + num3++; + span336[num3] = null; + num3++; + span336[num3] = null; + num3++; + span336[num3] = null; + num3++; + span336[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj239.CompletionQuestVariablesFlags = list336; reference263 = obj239; - ref QuestStep reference264 = ref span109[1]; + num2++; + ref QuestStep reference264 = ref span335[num2]; QuestStep obj240 = new QuestStep(EInteractionType.Combat, 2012924u, new Vector3(179.33923f, 7.309021f, -392.44684f), 957) { Fly = true, @@ -306310,23 +371775,32 @@ public static class AssemblyQuestLoader num3 = 1; List list337 = new List(num3); CollectionsMarshal.SetCount(list337, num3); - CollectionsMarshal.AsSpan(list337)[0] = 14683u; + Span span337 = CollectionsMarshal.AsSpan(list337); + num4 = 0; + span337[num4] = 14683u; obj240.KillEnemyDataIds = list337; - num3 = 6; - List list338 = new List(num3); - CollectionsMarshal.SetCount(list338, num3); - Span span111 = CollectionsMarshal.AsSpan(list338); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list338 = new List(num4); + CollectionsMarshal.SetCount(list338, num4); + Span span338 = CollectionsMarshal.AsSpan(list338); + num3 = 0; + span338[num3] = null; + num3++; + span338[num3] = null; + num3++; + span338[num3] = null; + num3++; + span338[num3] = null; + num3++; + span338[num3] = null; + num3++; + span338[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj240.CompletionQuestVariablesFlags = list338; reference264 = obj240; obj238.Steps = list335; reference262 = obj238; - ref QuestSequence reference265 = ref span108[3]; + num++; + ref QuestSequence reference265 = ref span332[num]; QuestSequence obj241 = new QuestSequence { Sequence = 3 @@ -306334,27 +371808,33 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 1042339u, new Vector3(145.95251f, 9.608223f, -234.24127f), 957) + Span span339 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span339[index2] = new QuestStep(EInteractionType.Interact, 1042339u, new Vector3(145.95251f, 9.608223f, -234.24127f), 957) { Fly = true }; obj241.Steps = list339; reference265 = obj241; - ref QuestSequence reference266 = ref span108[4]; + num++; + ref QuestSequence reference266 = ref span332[num]; QuestSequence obj242 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1042343u, new Vector3(142.53455f, 10.132848f, -232.89844f), 957) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + Span span340 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span340[num2] = new QuestStep(EInteractionType.Interact, 1042343u, new Vector3(142.53455f, 10.132848f, -232.89844f), 957) { StopDistance = 7f }; obj242.Steps = list340; reference266 = obj242; - ref QuestSequence reference267 = ref span108[5]; + num++; + ref QuestSequence reference267 = ref span332[num]; QuestSequence obj243 = new QuestSequence { Sequence = byte.MaxValue @@ -306362,7 +371842,9 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957) + Span span341 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span341[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -306376,27 +371858,33 @@ public static class AssemblyQuestLoader num = 1; List list342 = new List(num); CollectionsMarshal.SetCount(list342, num); - CollectionsMarshal.AsSpan(list342)[0] = "skiaz"; + Span span342 = CollectionsMarshal.AsSpan(list342); + index = 0; + span342[index] = "skiaz"; questRoot37.Author = list342; - num = 8; - List list343 = new List(num); - CollectionsMarshal.SetCount(list343, num); - Span span112 = CollectionsMarshal.AsSpan(list343); - ref QuestSequence reference268 = ref span112[0]; + index = 8; + List list343 = new List(index); + CollectionsMarshal.SetCount(list343, index); + Span span343 = CollectionsMarshal.AsSpan(list343); + num = 0; + ref QuestSequence reference268 = ref span343[num]; QuestSequence obj244 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957) + index2 = 1; + List list344 = new List(index2); + CollectionsMarshal.SetCount(list344, index2); + Span span344 = CollectionsMarshal.AsSpan(list344); + num2 = 0; + span344[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957) { Fly = true }; obj244.Steps = list344; reference268 = obj244; - ref QuestSequence reference269 = ref span112[1]; + num++; + ref QuestSequence reference269 = ref span343[num]; QuestSequence obj245 = new QuestSequence { Sequence = 1 @@ -306404,8 +371892,9 @@ public static class AssemblyQuestLoader num2 = 3; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span113 = CollectionsMarshal.AsSpan(list345); - ref QuestStep reference270 = ref span113[0]; + Span span345 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + ref QuestStep reference270 = ref span345[index2]; QuestStep obj246 = new QuestStep(EInteractionType.Combat, 2012925u, new Vector3(-108.01868f, 40.17688f, 182.5741f), 957) { Fly = true, @@ -306414,22 +371903,28 @@ public static class AssemblyQuestLoader num3 = 1; List list346 = new List(num3); CollectionsMarshal.SetCount(list346, num3); - CollectionsMarshal.AsSpan(list346)[0] = 14684u; + Span span346 = CollectionsMarshal.AsSpan(list346); + num4 = 0; + span346[num4] = 14684u; obj246.KillEnemyDataIds = list346; reference270 = obj246; - ref QuestStep reference271 = ref span113[1]; + index2++; + ref QuestStep reference271 = ref span345[index2]; QuestStep obj247 = new QuestStep(EInteractionType.Combat, 2012926u, new Vector3(-53.574463f, 56.22937f, 66.056274f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list347 = new List(num3); - CollectionsMarshal.SetCount(list347, num3); - CollectionsMarshal.AsSpan(list347)[0] = 14685u; + num4 = 1; + List list347 = new List(num4); + CollectionsMarshal.SetCount(list347, num4); + Span span347 = CollectionsMarshal.AsSpan(list347); + num3 = 0; + span347[num3] = 14685u; obj247.KillEnemyDataIds = list347; reference271 = obj247; - ref QuestStep reference272 = ref span113[2]; + index2++; + ref QuestStep reference272 = ref span345[index2]; QuestStep obj248 = new QuestStep(EInteractionType.Combat, 2012927u, new Vector3(-246.05176f, 18.509094f, 128.58777f), 957) { Fly = true, @@ -306438,26 +371933,32 @@ public static class AssemblyQuestLoader num3 = 1; List list348 = new List(num3); CollectionsMarshal.SetCount(list348, num3); - CollectionsMarshal.AsSpan(list348)[0] = 14684u; + Span span348 = CollectionsMarshal.AsSpan(list348); + num4 = 0; + span348[num4] = 14684u; obj248.KillEnemyDataIds = list348; reference272 = obj248; obj245.Steps = list345; reference269 = obj245; - ref QuestSequence reference273 = ref span112[2]; + num++; + ref QuestSequence reference273 = ref span343[num]; QuestSequence obj249 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list349 = new List(num2); - CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.Interact, 1042353u, new Vector3(-56.199036f, 35.964603f, 379.07983f), 957) + index2 = 1; + List list349 = new List(index2); + CollectionsMarshal.SetCount(list349, index2); + Span span349 = CollectionsMarshal.AsSpan(list349); + num2 = 0; + span349[num2] = new QuestStep(EInteractionType.Interact, 1042353u, new Vector3(-56.199036f, 35.964603f, 379.07983f), 957) { Fly = true }; obj249.Steps = list349; reference273 = obj249; - ref QuestSequence reference274 = ref span112[3]; + num++; + ref QuestSequence reference274 = ref span343[num]; QuestSequence obj250 = new QuestSequence { Sequence = 3 @@ -306465,15 +371966,19 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list350)[0]; + Span span350 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + ref QuestStep reference275 = ref span350[index2]; QuestStep obj251 = new QuestStep(EInteractionType.Interact, 1042353u, new Vector3(-56.199036f, 35.964603f, 379.07983f), 957) { Fly = true }; - num3 = 1; - List list351 = new List(num3); - CollectionsMarshal.SetCount(list351, num3); - CollectionsMarshal.AsSpan(list351)[0] = new DialogueChoice + num4 = 1; + List list351 = new List(num4); + CollectionsMarshal.SetCount(list351, num4); + Span span351 = CollectionsMarshal.AsSpan(list351); + num3 = 0; + span351[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK005_04549_Q2_000_046"), @@ -306483,21 +371988,25 @@ public static class AssemblyQuestLoader reference275 = obj251; obj250.Steps = list350; reference274 = obj250; - ref QuestSequence reference276 = ref span112[4]; + num++; + ref QuestSequence reference276 = ref span343[num]; QuestSequence obj252 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1042347u, new Vector3(178.7594f, 5.6198997f, 617.02905f), 957) + index2 = 1; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + Span span352 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span352[num2] = new QuestStep(EInteractionType.Interact, 1042347u, new Vector3(178.7594f, 5.6198997f, 617.02905f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj252.Steps = list352; reference276 = obj252; - ref QuestSequence reference277 = ref span112[5]; + num++; + ref QuestSequence reference277 = ref span343[num]; QuestSequence obj253 = new QuestSequence { Sequence = 5 @@ -306505,28 +372014,34 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.Interact, 1042346u, new Vector3(175.21924f, 5.629661f, 614.12976f), 957) + Span span353 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span353[index2] = new QuestStep(EInteractionType.Interact, 1042346u, new Vector3(175.21924f, 5.629661f, 614.12976f), 957) { Fly = true }; obj253.Steps = list353; reference277 = obj253; - ref QuestSequence reference278 = ref span112[6]; + num++; + ref QuestSequence reference278 = ref span343[num]; QuestSequence obj254 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 2012928u, new Vector3(185.62585f, 60.318848f, -605.98157f), 957) + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + Span span354 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span354[num2] = new QuestStep(EInteractionType.Interact, 2012928u, new Vector3(185.62585f, 60.318848f, -605.98157f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj254.Steps = list354; reference278 = obj254; - ref QuestSequence reference279 = ref span112[7]; + num++; + ref QuestSequence reference279 = ref span343[num]; QuestSequence obj255 = new QuestSequence { Sequence = byte.MaxValue @@ -306534,7 +372049,9 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); + Span span355 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + span355[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); obj255.Steps = list355; reference279 = obj255; questRoot37.QuestSequence = list343; @@ -306548,13 +372065,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -306562,12 +372082,16 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep questStep = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK006_04550_Q1_000_007"), @@ -306577,18 +372101,22 @@ public static class AssemblyQuestLoader reference2 = questStep; obj.Steps = list3; reference = obj; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 2012929u, new Vector3(-73.74689f, 39.96338f, 321.58386f), 957); + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span5[num2] = new QuestStep(EInteractionType.Interact, 2012929u, new Vector3(-73.74689f, 39.96338f, 321.58386f), 957); obj2.Steps = list5; reference3 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -306596,7 +372124,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); obj3.Steps = list6; reference4 = obj3; questRoot.QuestSequence = list2; @@ -306606,24 +372136,30 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + Span span7 = CollectionsMarshal.AsSpan(list7); + index = 0; + span7[index] = "liza"; questRoot2.Author = list7; - num = 3; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span2[0]; + index = 3; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span8[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj4.Steps = list9; reference5 = obj4; - ref QuestSequence reference6 = ref span2[1]; + num++; + ref QuestSequence reference6 = ref span8[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -306631,25 +372167,33 @@ public static class AssemblyQuestLoader num2 = 3; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestStep reference7 = ref span3[0]; + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + ref QuestStep reference7 = ref span10[index2]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1042363u, new Vector3(227.58826f, 4.933288f, 644.4037f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - num3 = 6; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span4 = CollectionsMarshal.AsSpan(list11); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list11 = new List(index3); + CollectionsMarshal.SetCount(list11, index3); + Span span11 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj6.CompletionQuestVariablesFlags = list11; reference7 = obj6; - ref QuestStep reference8 = ref span3[1]; + index2++; + ref QuestStep reference8 = ref span10[index2]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 1042364u, new Vector3(198.93188f, 1.7699993f, 707.1183f), 957) { Fly = true @@ -306657,43 +372201,59 @@ public static class AssemblyQuestLoader num3 = 6; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span5 = CollectionsMarshal.AsSpan(list12); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span12 = CollectionsMarshal.AsSpan(list12); + index3 = 0; + span12[index3] = null; + index3++; + span12[index3] = null; + index3++; + span12[index3] = null; + index3++; + span12[index3] = null; + index3++; + span12[index3] = null; + index3++; + span12[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj7.CompletionQuestVariablesFlags = list12; reference8 = obj7; - ref QuestStep reference9 = ref span3[2]; + index2++; + ref QuestStep reference9 = ref span10[index2]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 1042365u, new Vector3(177.66077f, 5.331657f, 651.27026f), 957) { Fly = true }; - num3 = 6; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - Span span6 = CollectionsMarshal.AsSpan(list13); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list13 = new List(index3); + CollectionsMarshal.SetCount(list13, index3); + Span span13 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj8.CompletionQuestVariablesFlags = list13; reference9 = obj8; obj5.Steps = list10; reference6 = obj5; - ref QuestSequence reference10 = ref span2[2]; + num++; + ref QuestSequence reference10 = ref span8[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -306706,13 +372266,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; + Span span15 = CollectionsMarshal.AsSpan(list15); + index = 0; + span15[index] = "liza"; questRoot3.Author = list15; - num = 4; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span7 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span7[0]; + index = 4; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + Span span16 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span16[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -306720,24 +372283,30 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj10.Steps = list17; reference11 = obj10; - ref QuestSequence reference12 = ref span7[1]; + num++; + ref QuestSequence reference12 = ref span16[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1037644u, new Vector3(-293.72095f, 1.4600283f, 551.0491f), 957) + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.Interact, 1037644u, new Vector3(-293.72095f, 1.4600283f, 551.0491f), 957) { Fly = true }; obj11.Steps = list18; reference12 = obj11; - ref QuestSequence reference13 = ref span7[2]; + num++; + ref QuestSequence reference13 = ref span16[num]; QuestSequence obj12 = new QuestSequence { Sequence = 2 @@ -306745,22 +372314,27 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1042366u, new Vector3(185.56494f, 1.8742322f, 760.4332f), 957) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.Interact, 1042366u, new Vector3(185.56494f, 1.8742322f, 760.4332f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj12.Steps = list19; reference13 = obj12; - ref QuestSequence reference14 = ref span7[3]; + num++; + ref QuestSequence reference14 = ref span16[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -306773,13 +372347,16 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - CollectionsMarshal.AsSpan(list21)[0] = "liza"; + Span span21 = CollectionsMarshal.AsSpan(list21); + index = 0; + span21[index] = "liza"; questRoot4.Author = list21; - num = 3; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); - Span span8 = CollectionsMarshal.AsSpan(list22); - ref QuestSequence reference15 = ref span8[0]; + index = 3; + List list22 = new List(index); + CollectionsMarshal.SetCount(list22, index); + Span span22 = CollectionsMarshal.AsSpan(list22); + num = 0; + ref QuestSequence reference15 = ref span22[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -306787,18 +372364,23 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj14.Steps = list23; reference15 = obj14; - ref QuestSequence reference16 = ref span8[1]; + num++; + ref QuestSequence reference16 = ref span22[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list24)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference17 = ref span24[num2]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, 2012850u, new Vector3(-399.74066f, 58.91504f, -354.97064f), 957) { Fly = true, @@ -306807,14 +372389,17 @@ public static class AssemblyQuestLoader num3 = 2; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span9 = CollectionsMarshal.AsSpan(list25); - span9[0] = 14674u; - span9[1] = 14675u; + Span span25 = CollectionsMarshal.AsSpan(list25); + index3 = 0; + span25[index3] = 14674u; + index3++; + span25[index3] = 14675u; obj16.KillEnemyDataIds = list25; reference17 = obj16; obj15.Steps = list24; reference16 = obj15; - ref QuestSequence reference18 = ref span8[2]; + num++; + ref QuestSequence reference18 = ref span22[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -306822,7 +372407,9 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -306836,24 +372423,30 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "liza"; + Span span27 = CollectionsMarshal.AsSpan(list27); + index = 0; + span27[index] = "liza"; questRoot5.Author = list27; - num = 5; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span10 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference19 = ref span10[0]; + index = 5; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + Span span28 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference19 = ref span28[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj18.Steps = list29; reference19 = obj18; - ref QuestSequence reference20 = ref span10[1]; + num++; + ref QuestSequence reference20 = ref span28[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -306861,28 +372454,34 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1042367u, new Vector3(507.01135f, 12.589098f, -482.96332f), 957) + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new QuestStep(EInteractionType.Interact, 1042367u, new Vector3(507.01135f, 12.589098f, -482.96332f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj19.Steps = list30; reference20 = obj19; - ref QuestSequence reference21 = ref span10[2]; + num++; + ref QuestSequence reference21 = ref span28[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 2012851u, new Vector3(427.4204f, 18.44812f, -451.37714f), 957) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.Interact, 2012851u, new Vector3(427.4204f, 18.44812f, -451.37714f), 957) { Fly = true }; obj20.Steps = list31; reference21 = obj20; - ref QuestSequence reference22 = ref span10[3]; + num++; + ref QuestSequence reference22 = ref span28[num]; QuestSequence obj21 = new QuestSequence { Sequence = 3 @@ -306890,8 +372489,9 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span11 = CollectionsMarshal.AsSpan(list32); - span11[0] = new QuestStep(EInteractionType.Interact, 2012851u, new Vector3(427.4204f, 18.44812f, -451.37714f), 957) + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.Interact, 2012851u, new Vector3(427.4204f, 18.44812f, -451.37714f), 957) { SkipConditions = new SkipConditions { @@ -306901,25 +372501,30 @@ public static class AssemblyQuestLoader } } }; - span11[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(436.76804f, 21.84539f, -466.46533f), 957) + index2++; + span32[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(436.76804f, 21.84539f, -466.46533f), 957) { DisableNavmesh = true }; - span11[2] = new QuestStep(EInteractionType.Interact, 1042367u, new Vector3(507.01135f, 12.589098f, -482.96332f), 957) + index2++; + span32[index2] = new QuestStep(EInteractionType.Interact, 1042367u, new Vector3(507.01135f, 12.589098f, -482.96332f), 957) { DisableNavmesh = true }; obj21.Steps = list32; reference22 = obj21; - ref QuestSequence reference23 = ref span10[4]; + num++; + ref QuestSequence reference23 = ref span28[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -306933,13 +372538,16 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; + Span span34 = CollectionsMarshal.AsSpan(list34); + index = 0; + span34[index] = "liza"; questRoot6.Author = list34; - num = 3; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span12 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference24 = ref span12[0]; + index = 3; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + Span span35 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference24 = ref span35[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -306947,19 +372555,23 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj23.Steps = list36; reference24 = obj23; - ref QuestSequence reference25 = ref span12[1]; + num++; + ref QuestSequence reference25 = ref span35[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span13 = CollectionsMarshal.AsSpan(list37); - ref QuestStep reference26 = ref span13[0]; + index2 = 4; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + ref QuestStep reference26 = ref span37[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1043108u, new Vector3(336.41565f, 0.9428888f, 624.10913f), 957) { SkipConditions = new SkipConditions @@ -306970,17 +372582,20 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice + index3 = 1; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANARK105_04555_Q1_000_000") }; obj25.DialogueChoices = list38; reference26 = obj25; - ref QuestStep reference27 = ref span13[1]; + num2++; + ref QuestStep reference27 = ref span37[num2]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 2012853u, new Vector3(392.66028f, 57.602783f, 630.64f), 957) { Fly = true @@ -306988,46 +372603,67 @@ public static class AssemblyQuestLoader num3 = 6; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - Span span14 = CollectionsMarshal.AsSpan(list39); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span39 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj26.CompletionQuestVariablesFlags = list39; reference27 = obj26; - ref QuestStep reference28 = ref span13[2]; + num2++; + ref QuestStep reference28 = ref span37[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2012854u, new Vector3(422.99524f, 62.91284f, 584.161f), 957); - num3 = 6; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span15 = CollectionsMarshal.AsSpan(list40); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + Span span40 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list40; reference28 = questStep2; - ref QuestStep reference29 = ref span13[3]; + num2++; + ref QuestStep reference29 = ref span37[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2012852u, new Vector3(445.27344f, 68.46716f, 588.03687f), 957); num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span16 = CollectionsMarshal.AsSpan(list41); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span41 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list41; reference29 = questStep3; obj24.Steps = list37; reference25 = obj24; - ref QuestSequence reference30 = ref span12[2]; + num++; + ref QuestSequence reference30 = ref span35[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -307035,8 +372671,9 @@ public static class AssemblyQuestLoader num2 = 3; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span17 = CollectionsMarshal.AsSpan(list42); - ref QuestStep reference31 = ref span17[0]; + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + ref QuestStep reference31 = ref span42[index2]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 1043107u, new Vector3(376.51636f, 55.220497f, 601.0985f), 957) { SkipConditions = new SkipConditions @@ -307047,17 +372684,20 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - CollectionsMarshal.AsSpan(list43)[0] = new DialogueChoice + index3 = 1; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span43[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANARK105_04555_Q2_000_000") }; obj28.DialogueChoices = list43; reference31 = obj28; - span17[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(236.26051f, 2.3393192f, 644.57275f), 957) + index2++; + span42[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(236.26051f, 2.3393192f, 644.57275f), 957) { SkipConditions = new SkipConditions { @@ -307067,7 +372707,8 @@ public static class AssemblyQuestLoader } } }; - span17[2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2++; + span42[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -307080,24 +372721,30 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + Span span44 = CollectionsMarshal.AsSpan(list44); + index = 0; + span44[index] = "liza"; questRoot7.Author = list44; - num = 3; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span18 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference32 = ref span18[0]; + index = 3; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + Span span45 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference32 = ref span45[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj29.Steps = list46; reference32 = obj29; - ref QuestSequence reference33 = ref span18[1]; + num++; + ref QuestSequence reference33 = ref span45[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 @@ -307105,8 +372752,9 @@ public static class AssemblyQuestLoader num2 = 3; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span19 = CollectionsMarshal.AsSpan(list47); - ref QuestStep reference34 = ref span19[0]; + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + ref QuestStep reference34 = ref span47[index2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1042368u, new Vector3(-485.771f, 39.62969f, 114.213745f), 957) { Fly = true, @@ -307115,23 +372763,33 @@ public static class AssemblyQuestLoader num3 = 6; List> list48 = new List>(num3); CollectionsMarshal.SetCount(list48, num3); - Span> span20 = CollectionsMarshal.AsSpan(list48); - span20[0] = null; - span20[1] = null; - ref List reference35 = ref span20[2]; + Span> span48 = CollectionsMarshal.AsSpan(list48); + index3 = 0; + span48[index3] = null; + index3++; + span48[index3] = null; + index3++; + ref List reference35 = ref span48[index3]; int num4 = 1; List list49 = new List(num4); CollectionsMarshal.SetCount(list49, num4); - CollectionsMarshal.AsSpan(list49)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + Span span49 = CollectionsMarshal.AsSpan(list49); + int index4 = 0; + span49[index4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference35 = list49; - span20[3] = null; - span20[4] = null; - span20[5] = null; + index3++; + span48[index3] = null; + index3++; + span48[index3] = null; + index3++; + span48[index3] = null; obj31.RequiredQuestVariables = list48; - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = new DialogueChoice + index3 = 1; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + Span span50 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span50[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK106_04556_Q1_000_000"), @@ -307139,7 +372797,8 @@ public static class AssemblyQuestLoader }; obj31.DialogueChoices = list50; reference34 = obj31; - ref QuestStep reference36 = ref span19[1]; + index2++; + ref QuestStep reference36 = ref span47[index2]; QuestStep obj32 = new QuestStep(EInteractionType.Interact, 1042369u, new Vector3(-561.2726f, 11.802609f, 128.95398f), 957) { Fly = true @@ -307147,23 +372806,33 @@ public static class AssemblyQuestLoader num3 = 6; List> list51 = new List>(num3); CollectionsMarshal.SetCount(list51, num3); - Span> span21 = CollectionsMarshal.AsSpan(list51); - span21[0] = null; - span21[1] = null; - ref List reference37 = ref span21[2]; - num4 = 1; - List list52 = new List(num4); - CollectionsMarshal.SetCount(list52, num4); - CollectionsMarshal.AsSpan(list52)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span> span51 = CollectionsMarshal.AsSpan(list51); + index3 = 0; + span51[index3] = null; + index3++; + span51[index3] = null; + index3++; + ref List reference37 = ref span51[index3]; + index4 = 1; + List list52 = new List(index4); + CollectionsMarshal.SetCount(list52, index4); + Span span52 = CollectionsMarshal.AsSpan(list52); + num4 = 0; + span52[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference37 = list52; - span21[3] = null; - span21[4] = null; - span21[5] = null; + index3++; + span51[index3] = null; + index3++; + span51[index3] = null; + index3++; + span51[index3] = null; obj32.RequiredQuestVariables = list51; - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice + index3 = 1; + List list53 = new List(index3); + CollectionsMarshal.SetCount(list53, index3); + Span span53 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + span53[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK106_04556_Q2_000_000"), @@ -307171,28 +372840,39 @@ public static class AssemblyQuestLoader }; obj32.DialogueChoices = list53; reference36 = obj32; - ref QuestStep reference38 = ref span19[2]; + index2++; + ref QuestStep reference38 = ref span47[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1042370u, new Vector3(-506.37067f, 5.1961365f, 63.401123f), 957); num3 = 6; List> list54 = new List>(num3); CollectionsMarshal.SetCount(list54, num3); - Span> span22 = CollectionsMarshal.AsSpan(list54); - span22[0] = null; - span22[1] = null; - ref List reference39 = ref span22[2]; + Span> span54 = CollectionsMarshal.AsSpan(list54); + index3 = 0; + span54[index3] = null; + index3++; + span54[index3] = null; + index3++; + ref List reference39 = ref span54[index3]; num4 = 1; List list55 = new List(num4); CollectionsMarshal.SetCount(list55, num4); - CollectionsMarshal.AsSpan(list55)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span55 = CollectionsMarshal.AsSpan(list55); + index4 = 0; + span55[index4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference39 = list55; - span22[3] = null; - span22[4] = null; - span22[5] = null; + index3++; + span54[index3] = null; + index3++; + span54[index3] = null; + index3++; + span54[index3] = null; questStep4.RequiredQuestVariables = list54; - num3 = 1; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = new DialogueChoice + index3 = 1; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + Span span56 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span56[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK106_04556_Q3_000_000"), @@ -307202,15 +372882,18 @@ public static class AssemblyQuestLoader reference38 = questStep4; obj30.Steps = list47; reference33 = obj30; - ref QuestSequence reference40 = ref span18[2]; + num++; + ref QuestSequence reference40 = ref span45[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -307223,13 +372906,16 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "liza"; + Span span58 = CollectionsMarshal.AsSpan(list58); + index = 0; + span58[index] = "liza"; questRoot8.Author = list58; - num = 4; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span23 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference41 = ref span23[0]; + index = 4; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + Span span59 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference41 = ref span59[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -307237,21 +372923,27 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj34.Steps = list60; reference41 = obj34; - ref QuestSequence reference42 = ref span23[1]; + num++; + ref QuestSequence reference42 = ref span59[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1042302u, new Vector3(-102.43384f, 40.00001f, 331.89893f), 957); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.Interact, 1042302u, new Vector3(-102.43384f, 40.00001f, 331.89893f), 957); obj35.Steps = list61; reference42 = obj35; - ref QuestSequence reference43 = ref span23[2]; + num++; + ref QuestSequence reference43 = ref span59[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 @@ -307259,8 +372951,9 @@ public static class AssemblyQuestLoader num2 = 6; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span24 = CollectionsMarshal.AsSpan(list62); - ref QuestStep reference44 = ref span24[0]; + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + ref QuestStep reference44 = ref span62[index2]; QuestStep obj37 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(436.3157f, 3.1168795f, -241.61731f), 957) { Fly = true, @@ -307271,36 +372964,50 @@ public static class AssemblyQuestLoader num3 = 6; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span25 = CollectionsMarshal.AsSpan(list63); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span63 = CollectionsMarshal.AsSpan(list63); + index3 = 0; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list63; skipConditions.StepIf = skipStepConditions; obj37.SkipConditions = skipConditions; reference44 = obj37; - ref QuestStep reference45 = ref span24[1]; + index2++; + ref QuestStep reference45 = ref span62[index2]; QuestStep obj38 = new QuestStep(EInteractionType.Action, 1042372u, new Vector3(441.062f, 3.5405273f, -238.78845f), 957) { StopDistance = 5f, Action = EAction.YellowGulal }; - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span26 = CollectionsMarshal.AsSpan(list64); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list64 = new List(index3); + CollectionsMarshal.SetCount(list64, index3); + Span span64 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj38.CompletionQuestVariablesFlags = list64; reference45 = obj38; - ref QuestStep reference46 = ref span24[2]; + index2++; + ref QuestStep reference46 = ref span62[index2]; QuestStep obj39 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(378.90213f, 3.1168797f, -226.82733f), 957) { Fly = true, @@ -307311,36 +373018,50 @@ public static class AssemblyQuestLoader num3 = 6; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span27 = CollectionsMarshal.AsSpan(list65); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span65 = CollectionsMarshal.AsSpan(list65); + index3 = 0; + span65[index3] = null; + index3++; + span65[index3] = null; + index3++; + span65[index3] = null; + index3++; + span65[index3] = null; + index3++; + span65[index3] = null; + index3++; + span65[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list65; skipConditions2.StepIf = skipStepConditions2; obj39.SkipConditions = skipConditions2; reference46 = obj39; - ref QuestStep reference47 = ref span24[3]; + index2++; + ref QuestStep reference47 = ref span62[index2]; QuestStep obj40 = new QuestStep(EInteractionType.Action, 1042371u, new Vector3(376.7605f, 3.3540652f, -225.33002f), 957) { StopDistance = 5f, Action = EAction.BlueGulal }; - num3 = 6; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span28 = CollectionsMarshal.AsSpan(list66); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list66 = new List(index3); + CollectionsMarshal.SetCount(list66, index3); + Span span66 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj40.CompletionQuestVariablesFlags = list66; reference47 = obj40; - ref QuestStep reference48 = ref span24[4]; + index2++; + ref QuestStep reference48 = ref span62[index2]; QuestStep obj41 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(404.06558f, 13.027411f, -307.05457f), 957) { Fly = true, @@ -307351,53 +373072,69 @@ public static class AssemblyQuestLoader num3 = 6; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - Span span29 = CollectionsMarshal.AsSpan(list67); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span67 = CollectionsMarshal.AsSpan(list67); + index3 = 0; + span67[index3] = null; + index3++; + span67[index3] = null; + index3++; + span67[index3] = null; + index3++; + span67[index3] = null; + index3++; + span67[index3] = null; + index3++; + span67[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list67; skipConditions3.StepIf = skipStepConditions3; obj41.SkipConditions = skipConditions3; reference48 = obj41; - ref QuestStep reference49 = ref span24[5]; + index2++; + ref QuestStep reference49 = ref span62[index2]; QuestStep obj42 = new QuestStep(EInteractionType.Action, 1042373u, new Vector3(406.1189f, 13.0274105f, -311.0857f), 957) { StopDistance = 5f, Action = EAction.RedGulal }; - num3 = 6; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - Span span30 = CollectionsMarshal.AsSpan(list68); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list68 = new List(index3); + CollectionsMarshal.SetCount(list68, index3); + Span span68 = CollectionsMarshal.AsSpan(list68); + num3 = 0; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = null; + num3++; + span68[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj42.CompletionQuestVariablesFlags = list68; reference49 = obj42; obj36.Steps = list62; reference43 = obj36; - ref QuestSequence reference50 = ref span23[3]; + num++; + ref QuestSequence reference50 = ref span59[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - Span span31 = CollectionsMarshal.AsSpan(list69); - span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(404.065f, 13.027411f, -306.9749f), 957) + index2 = 2; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(404.065f, 13.027411f, -306.9749f), 957) { StopDistance = 10000f, Mount = false, Comment = "Unmount from Quest Mount" }; - span31[1] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + num2++; + span69[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -307411,13 +373148,16 @@ public static class AssemblyQuestLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - CollectionsMarshal.AsSpan(list70)[0] = "liza"; + Span span70 = CollectionsMarshal.AsSpan(list70); + index = 0; + span70[index] = "liza"; questRoot9.Author = list70; - num = 4; - List list71 = new List(num); - CollectionsMarshal.SetCount(list71, num); - Span span32 = CollectionsMarshal.AsSpan(list71); - ref QuestSequence reference51 = ref span32[0]; + index = 4; + List list71 = new List(index); + CollectionsMarshal.SetCount(list71, index); + Span span71 = CollectionsMarshal.AsSpan(list71); + num = 0; + ref QuestSequence reference51 = ref span71[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -307425,18 +373165,23 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span72[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj44.Steps = list72; reference51 = obj44; - ref QuestSequence reference52 = ref span32[1]; + num++; + ref QuestSequence reference52 = ref span71[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Interact, 1042376u, new Vector3(205.34058f, 63.981293f, -640.4059f), 957) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.Interact, 1042376u, new Vector3(205.34058f, 63.981293f, -640.4059f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -307448,7 +373193,8 @@ public static class AssemblyQuestLoader }; obj45.Steps = list73; reference52 = obj45; - ref QuestSequence reference53 = ref span32[2]; + num++; + ref QuestSequence reference53 = ref span71[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -307456,18 +373202,23 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 2012908u, new Vector3(208.23987f, 65.62903f, -642.1149f), 957); + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.Interact, 2012908u, new Vector3(208.23987f, 65.62903f, -642.1149f), 957); obj46.Steps = list74; reference53 = obj46; - ref QuestSequence reference54 = ref span32[3]; + num++; + ref QuestSequence reference54 = ref span71[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -307481,13 +373232,16 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "liza"; + Span span76 = CollectionsMarshal.AsSpan(list76); + index = 0; + span76[index] = "liza"; questRoot10.Author = list76; - num = 4; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span33 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference55 = ref span33[0]; + index = 4; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + Span span77 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference55 = ref span77[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -307495,18 +373249,23 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj48.Steps = list78; reference55 = obj48; - ref QuestSequence reference56 = ref span33[1]; + num++; + ref QuestSequence reference56 = ref span77[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list79)[0]; + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + ref QuestStep reference57 = ref span79[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(-605.46277f, 2.1626635f, -336.87347f), 957) { StopDistance = 0.25f, @@ -307517,12 +373276,15 @@ public static class AssemblyQuestLoader num3 = 1; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = 14676u; + Span span80 = CollectionsMarshal.AsSpan(list80); + index3 = 0; + span80[index3] = 14676u; obj50.KillEnemyDataIds = list80; reference57 = obj50; obj49.Steps = list79; reference56 = obj49; - ref QuestSequence reference58 = ref span33[2]; + num++; + ref QuestSequence reference58 = ref span77[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -307530,21 +373292,26 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1042378u, new Vector3(-605.46277f, 2.1626635f, -336.87347f), 957) + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.Interact, 1042378u, new Vector3(-605.46277f, 2.1626635f, -336.87347f), 957) { StopDistance = 5f }; obj51.Steps = list81; reference58 = obj51; - ref QuestSequence reference59 = ref span33[3]; + num++; + ref QuestSequence reference59 = ref span77[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -307558,13 +373325,16 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "liza"; + Span span83 = CollectionsMarshal.AsSpan(list83); + index = 0; + span83[index] = "liza"; questRoot11.Author = list83; - num = 3; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span34 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference60 = ref span34[0]; + index = 3; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + Span span84 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference60 = ref span84[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -307572,48 +373342,62 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj53.Steps = list85; reference60 = obj53; - ref QuestSequence reference61 = ref span34[1]; + num++; + ref QuestSequence reference61 = ref span84[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 5; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - Span span35 = CollectionsMarshal.AsSpan(list86); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-611.4443f, 4.030203f, 520.76807f), 957) + index2 = 5; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-611.4443f, 4.030203f, 520.76807f), 957) { Fly = true }; - ref QuestStep reference62 = ref span35[1]; + num2++; + ref QuestStep reference62 = ref span86[num2]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 2012880u, new Vector3(-669.4896f, -36.42328f, 522.6367f), 957) { DisableNavmesh = true, Fly = true }; - num3 = 6; - List> list87 = new List>(num3); - CollectionsMarshal.SetCount(list87, num3); - Span> span36 = CollectionsMarshal.AsSpan(list87); - span36[0] = null; - ref List reference63 = ref span36[1]; - num4 = 2; - List list88 = new List(num4); - CollectionsMarshal.SetCount(list88, num4); - Span span37 = CollectionsMarshal.AsSpan(list88); - span37[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span37[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + index3 = 6; + List> list87 = new List>(index3); + CollectionsMarshal.SetCount(list87, index3); + Span> span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = null; + num3++; + ref List reference63 = ref span87[num3]; + index4 = 2; + List list88 = new List(index4); + CollectionsMarshal.SetCount(list88, index4); + Span span88 = CollectionsMarshal.AsSpan(list88); + num4 = 0; + span88[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span88[num4] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); reference63 = list88; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; + num3++; + span87[num3] = null; obj55.RequiredQuestVariables = list87; reference62 = obj55; - ref QuestStep reference64 = ref span35[2]; + num2++; + ref QuestStep reference64 = ref span86[num2]; QuestStep obj56 = new QuestStep(EInteractionType.Interact, 2012881u, new Vector3(-652.4605f, -31.784546f, 554.46704f), 957) { DisableNavmesh = true, @@ -307622,47 +373406,65 @@ public static class AssemblyQuestLoader num3 = 6; List> list89 = new List>(num3); CollectionsMarshal.SetCount(list89, num3); - Span> span38 = CollectionsMarshal.AsSpan(list89); - span38[0] = null; - ref List reference65 = ref span38[1]; + Span> span89 = CollectionsMarshal.AsSpan(list89); + index3 = 0; + span89[index3] = null; + index3++; + ref List reference65 = ref span89[index3]; num4 = 2; List list90 = new List(num4); CollectionsMarshal.SetCount(list90, num4); - Span span39 = CollectionsMarshal.AsSpan(list90); - span39[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span39[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + Span span90 = CollectionsMarshal.AsSpan(list90); + index4 = 0; + span90[index4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index4++; + span90[index4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference65 = list90; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = null; + index3++; + span89[index3] = null; + index3++; + span89[index3] = null; + index3++; + span89[index3] = null; + index3++; + span89[index3] = null; obj56.RequiredQuestVariables = list89; reference64 = obj56; - ref QuestStep reference66 = ref span35[3]; + num2++; + ref QuestStep reference66 = ref span86[num2]; QuestStep obj57 = new QuestStep(EInteractionType.Interact, 2012882u, new Vector3(-729.9458f, -38.864807f, 600.5187f), 957) { Fly = true }; - num3 = 6; - List> list91 = new List>(num3); - CollectionsMarshal.SetCount(list91, num3); - Span> span40 = CollectionsMarshal.AsSpan(list91); - span40[0] = null; - ref List reference67 = ref span40[1]; - num4 = 2; - List list92 = new List(num4); - CollectionsMarshal.SetCount(list92, num4); - Span span41 = CollectionsMarshal.AsSpan(list92); - span41[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); - span41[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3 = 6; + List> list91 = new List>(index3); + CollectionsMarshal.SetCount(list91, index3); + Span> span91 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + span91[num3] = null; + num3++; + ref List reference67 = ref span91[num3]; + index4 = 2; + List list92 = new List(index4); + CollectionsMarshal.SetCount(list92, index4); + Span span92 = CollectionsMarshal.AsSpan(list92); + num4 = 0; + span92[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span92[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference67 = list92; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = null; + num3++; + span91[num3] = null; + num3++; + span91[num3] = null; + num3++; + span91[num3] = null; + num3++; + span91[num3] = null; obj57.RequiredQuestVariables = list91; reference66 = obj57; - ref QuestStep reference68 = ref span35[4]; + num2++; + ref QuestStep reference68 = ref span86[num2]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 2012883u, new Vector3(-746.0593f, -38.92578f, 597.0397f), 957) { Fly = true @@ -307670,25 +373472,34 @@ public static class AssemblyQuestLoader num3 = 6; List> list93 = new List>(num3); CollectionsMarshal.SetCount(list93, num3); - Span> span42 = CollectionsMarshal.AsSpan(list93); - span42[0] = null; - ref List reference69 = ref span42[1]; + Span> span93 = CollectionsMarshal.AsSpan(list93); + index3 = 0; + span93[index3] = null; + index3++; + ref List reference69 = ref span93[index3]; num4 = 2; List list94 = new List(num4); CollectionsMarshal.SetCount(list94, num4); - Span span43 = CollectionsMarshal.AsSpan(list94); - span43[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); - span43[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); + Span span94 = CollectionsMarshal.AsSpan(list94); + index4 = 0; + span94[index4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index4++; + span94[index4] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); reference69 = list94; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = null; + index3++; + span93[index3] = null; + index3++; + span93[index3] = null; + index3++; + span93[index3] = null; + index3++; + span93[index3] = null; obj58.RequiredQuestVariables = list93; reference68 = obj58; obj54.Steps = list86; reference61 = obj54; - ref QuestSequence reference70 = ref span34[2]; + num++; + ref QuestSequence reference70 = ref span84[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -307696,7 +373507,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -307710,24 +373523,30 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + span96[index] = "liza"; questRoot12.Author = list96; - num = 3; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span44 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference71 = ref span44[0]; + index = 3; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + Span span97 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference71 = ref span97[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj60.Steps = list98; reference71 = obj60; - ref QuestSequence reference72 = ref span44[1]; + num++; + ref QuestSequence reference72 = ref span97[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 @@ -307735,32 +373554,42 @@ public static class AssemblyQuestLoader num2 = 3; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span45 = CollectionsMarshal.AsSpan(list99); - ref QuestStep reference73 = ref span45[0]; + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + ref QuestStep reference73 = ref span99[index2]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 1042384u, new Vector3(562.7068f, 12.048153f, 157.85449f), 957) { Fly = true }; - num3 = 6; - List> list100 = new List>(num3); - CollectionsMarshal.SetCount(list100, num3); - Span> span46 = CollectionsMarshal.AsSpan(list100); - span46[0] = null; - span46[1] = null; - ref List reference74 = ref span46[2]; - num4 = 2; - List list101 = new List(num4); - CollectionsMarshal.SetCount(list101, num4); - Span span47 = CollectionsMarshal.AsSpan(list101); - span47[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span47[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list100 = new List>(index3); + CollectionsMarshal.SetCount(list100, index3); + Span> span100 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span100[num3] = null; + num3++; + span100[num3] = null; + num3++; + ref List reference74 = ref span100[num3]; + index4 = 2; + List list101 = new List(index4); + CollectionsMarshal.SetCount(list101, index4); + Span span101 = CollectionsMarshal.AsSpan(list101); + num4 = 0; + span101[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4++; + span101[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference74 = list101; - span46[3] = null; - span46[4] = null; - span46[5] = null; + num3++; + span100[num3] = null; + num3++; + span100[num3] = null; + num3++; + span100[num3] = null; obj62.RequiredQuestVariables = list100; reference73 = obj62; - ref QuestStep reference75 = ref span45[1]; + index2++; + ref QuestStep reference75 = ref span99[index2]; QuestStep obj63 = new QuestStep(EInteractionType.Interact, 1042385u, new Vector3(614.43494f, 38.455334f, 193.77429f), 957) { Fly = true @@ -307768,57 +373597,77 @@ public static class AssemblyQuestLoader num3 = 6; List> list102 = new List>(num3); CollectionsMarshal.SetCount(list102, num3); - Span> span48 = CollectionsMarshal.AsSpan(list102); - span48[0] = null; - span48[1] = null; - ref List reference76 = ref span48[2]; + Span> span102 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + span102[index3] = null; + index3++; + span102[index3] = null; + index3++; + ref List reference76 = ref span102[index3]; num4 = 2; List list103 = new List(num4); CollectionsMarshal.SetCount(list103, num4); - Span span49 = CollectionsMarshal.AsSpan(list103); - span49[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span49[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span103 = CollectionsMarshal.AsSpan(list103); + index4 = 0; + span103[index4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index4++; + span103[index4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference76 = list103; - span48[3] = null; - span48[4] = null; - span48[5] = null; + index3++; + span102[index3] = null; + index3++; + span102[index3] = null; + index3++; + span102[index3] = null; obj63.RequiredQuestVariables = list102; reference75 = obj63; - ref QuestStep reference77 = ref span45[2]; + index2++; + ref QuestStep reference77 = ref span99[index2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1042386u, new Vector3(607.35486f, 18.607574f, 212.14612f), 957) { Fly = true }; - num3 = 6; - List> list104 = new List>(num3); - CollectionsMarshal.SetCount(list104, num3); - Span> span50 = CollectionsMarshal.AsSpan(list104); - span50[0] = null; - span50[1] = null; - ref List reference78 = ref span50[2]; - num4 = 2; - List list105 = new List(num4); - CollectionsMarshal.SetCount(list105, num4); - Span span51 = CollectionsMarshal.AsSpan(list105); - span51[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span51[1] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list104 = new List>(index3); + CollectionsMarshal.SetCount(list104, index3); + Span> span104 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span104[num3] = null; + num3++; + span104[num3] = null; + num3++; + ref List reference78 = ref span104[num3]; + index4 = 2; + List list105 = new List(index4); + CollectionsMarshal.SetCount(list105, index4); + Span span105 = CollectionsMarshal.AsSpan(list105); + num4 = 0; + span105[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4++; + span105[num4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference78 = list105; - span50[3] = null; - span50[4] = null; - span50[5] = null; + num3++; + span104[num3] = null; + num3++; + span104[num3] = null; + num3++; + span104[num3] = null; obj64.RequiredQuestVariables = list104; reference77 = obj64; obj61.Steps = list99; reference72 = obj61; - ref QuestSequence reference79 = ref span44[2]; + num++; + ref QuestSequence reference79 = ref span97[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -307831,13 +373680,16 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + Span span107 = CollectionsMarshal.AsSpan(list107); + index = 0; + span107[index] = "liza"; questRoot13.Author = list107; - num = 3; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span52 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference80 = ref span52[0]; + index = 3; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + Span span108 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference80 = ref span108[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -307845,19 +373697,23 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj66.Steps = list109; reference80 = obj66; - ref QuestSequence reference81 = ref span52[1]; + num++; + ref QuestSequence reference81 = ref span108[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span53 = CollectionsMarshal.AsSpan(list110); - ref QuestStep reference82 = ref span53[0]; + index2 = 2; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + ref QuestStep reference82 = ref span110[num2]; QuestStep obj68 = new QuestStep(EInteractionType.Interact, 1042390u, new Vector3(376.089f, 3.1168795f, -241.77924f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand @@ -307865,36 +373721,50 @@ public static class AssemblyQuestLoader num3 = 6; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - Span span54 = CollectionsMarshal.AsSpan(list111); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span111 = CollectionsMarshal.AsSpan(list111); + index3 = 0; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj68.CompletionQuestVariablesFlags = list111; reference82 = obj68; - ref QuestStep reference83 = ref span53[1]; + num2++; + ref QuestStep reference83 = ref span110[num2]; QuestStep obj69 = new QuestStep(EInteractionType.Interact, 1042389u, new Vector3(-416.31195f, 10.9610405f, 11.48999f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span55 = CollectionsMarshal.AsSpan(list112); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + Span span112 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj69.CompletionQuestVariablesFlags = list112; reference83 = obj69; obj67.Steps = list110; reference81 = obj67; - ref QuestSequence reference84 = ref span52[2]; + num++; + ref QuestSequence reference84 = ref span108[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -307902,7 +373772,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -307915,24 +373787,30 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "liza"; + Span span114 = CollectionsMarshal.AsSpan(list114); + index = 0; + span114[index] = "liza"; questRoot14.Author = list114; - num = 4; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span56 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference85 = ref span56[0]; + index = 4; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + Span span115 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference85 = ref span115[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj71.Steps = list116; reference85 = obj71; - ref QuestSequence reference86 = ref span56[1]; + num++; + ref QuestSequence reference86 = ref span115[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -307940,8 +373818,9 @@ public static class AssemblyQuestLoader num2 = 3; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span57 = CollectionsMarshal.AsSpan(list117); - ref QuestStep reference87 = ref span57[0]; + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + ref QuestStep reference87 = ref span117[index2]; QuestStep obj73 = new QuestStep(EInteractionType.UseItem, 2012884u, new Vector3(111.46704f, 5.935669f, -294.36182f), 957) { Fly = true, @@ -307951,44 +373830,62 @@ public static class AssemblyQuestLoader num3 = 6; List> list118 = new List>(num3); CollectionsMarshal.SetCount(list118, num3); - Span> span58 = CollectionsMarshal.AsSpan(list118); - span58[0] = null; - ref List reference88 = ref span58[1]; + Span> span118 = CollectionsMarshal.AsSpan(list118); + index3 = 0; + span118[index3] = null; + index3++; + ref List reference88 = ref span118[index3]; num4 = 1; List list119 = new List(num4); CollectionsMarshal.SetCount(list119, num4); - CollectionsMarshal.AsSpan(list119)[0] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + Span span119 = CollectionsMarshal.AsSpan(list119); + index4 = 0; + span119[index4] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); reference88 = list119; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = null; + index3++; + span118[index3] = null; + index3++; + span118[index3] = null; + index3++; + span118[index3] = null; + index3++; + span118[index3] = null; obj73.RequiredQuestVariables = list118; reference87 = obj73; - ref QuestStep reference89 = ref span57[1]; + index2++; + ref QuestStep reference89 = ref span117[index2]; QuestStep obj74 = new QuestStep(EInteractionType.UseItem, 2012885u, new Vector3(108.17114f, 8.224609f, -373.22046f), 957) { Fly = true, ItemId = 2003420u }; - num3 = 6; - List> list120 = new List>(num3); - CollectionsMarshal.SetCount(list120, num3); - Span> span59 = CollectionsMarshal.AsSpan(list120); - span59[0] = null; - ref List reference90 = ref span59[1]; - num4 = 1; - List list121 = new List(num4); - CollectionsMarshal.SetCount(list121, num4); - CollectionsMarshal.AsSpan(list121)[0] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); + index3 = 6; + List> list120 = new List>(index3); + CollectionsMarshal.SetCount(list120, index3); + Span> span120 = CollectionsMarshal.AsSpan(list120); + num3 = 0; + span120[num3] = null; + num3++; + ref List reference90 = ref span120[num3]; + index4 = 1; + List list121 = new List(index4); + CollectionsMarshal.SetCount(list121, index4); + Span span121 = CollectionsMarshal.AsSpan(list121); + num4 = 0; + span121[num4] = new QuestWorkValue((byte)1, (byte)2, EQuestWorkMode.Bitwise); reference90 = list121; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = null; + num3++; + span120[num3] = null; + num3++; + span120[num3] = null; + num3++; + span120[num3] = null; + num3++; + span120[num3] = null; obj74.RequiredQuestVariables = list120; reference89 = obj74; - ref QuestStep reference91 = ref span57[2]; + index2++; + ref QuestStep reference91 = ref span117[index2]; QuestStep obj75 = new QuestStep(EInteractionType.UseItem, 2012886u, new Vector3(135.91211f, 6.4850464f, -327.5349f), 957) { Fly = true, @@ -307997,91 +373894,128 @@ public static class AssemblyQuestLoader num3 = 6; List> list122 = new List>(num3); CollectionsMarshal.SetCount(list122, num3); - Span> span60 = CollectionsMarshal.AsSpan(list122); - span60[0] = null; - ref List reference92 = ref span60[1]; + Span> span122 = CollectionsMarshal.AsSpan(list122); + index3 = 0; + span122[index3] = null; + index3++; + ref List reference92 = ref span122[index3]; num4 = 1; List list123 = new List(num4); CollectionsMarshal.SetCount(list123, num4); - CollectionsMarshal.AsSpan(list123)[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + Span span123 = CollectionsMarshal.AsSpan(list123); + index4 = 0; + span123[index4] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); reference92 = list123; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = null; obj75.RequiredQuestVariables = list122; reference91 = obj75; obj72.Steps = list117; reference86 = obj72; - ref QuestSequence reference93 = ref span56[2]; + num++; + ref QuestSequence reference93 = ref span115[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - Span span61 = CollectionsMarshal.AsSpan(list124); - ref QuestStep reference94 = ref span61[0]; + index2 = 3; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span124 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + ref QuestStep reference94 = ref span124[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2012884u, new Vector3(111.46704f, 5.935669f, -294.36182f), 957); - num3 = 6; - List> list125 = new List>(num3); - CollectionsMarshal.SetCount(list125, num3); - Span> span62 = CollectionsMarshal.AsSpan(list125); - span62[0] = null; - span62[1] = null; - ref List reference95 = ref span62[2]; - num4 = 1; - List list126 = new List(num4); - CollectionsMarshal.SetCount(list126, num4); - CollectionsMarshal.AsSpan(list126)[0] = new QuestWorkValue(0, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list125 = new List>(index3); + CollectionsMarshal.SetCount(list125, index3); + Span> span125 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + ref List reference95 = ref span125[num3]; + index4 = 1; + List list126 = new List(index4); + CollectionsMarshal.SetCount(list126, index4); + Span span126 = CollectionsMarshal.AsSpan(list126); + num4 = 0; + span126[num4] = new QuestWorkValue(0, 0, EQuestWorkMode.Bitwise); reference95 = list126; - span62[3] = null; - span62[4] = null; - span62[5] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = null; questStep5.RequiredQuestVariables = list125; reference94 = questStep5; - ref QuestStep reference96 = ref span61[1]; + num2++; + ref QuestStep reference96 = ref span124[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2012885u, new Vector3(108.17114f, 8.224609f, -373.22046f), 957); num3 = 6; List> list127 = new List>(num3); CollectionsMarshal.SetCount(list127, num3); - Span> span63 = CollectionsMarshal.AsSpan(list127); - span63[0] = null; - span63[1] = null; - ref List reference97 = ref span63[2]; + Span> span127 = CollectionsMarshal.AsSpan(list127); + index3 = 0; + span127[index3] = null; + index3++; + span127[index3] = null; + index3++; + ref List reference97 = ref span127[index3]; num4 = 1; List list128 = new List(num4); CollectionsMarshal.SetCount(list128, num4); - CollectionsMarshal.AsSpan(list128)[0] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span128 = CollectionsMarshal.AsSpan(list128); + index4 = 0; + span128[index4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); reference97 = list128; - span63[3] = null; - span63[4] = null; - span63[5] = null; + index3++; + span127[index3] = null; + index3++; + span127[index3] = null; + index3++; + span127[index3] = null; questStep6.RequiredQuestVariables = list127; reference96 = questStep6; - ref QuestStep reference98 = ref span61[2]; + num2++; + ref QuestStep reference98 = ref span124[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2012886u, new Vector3(135.91211f, 6.4850464f, -327.5349f), 957); - num3 = 6; - List> list129 = new List>(num3); - CollectionsMarshal.SetCount(list129, num3); - Span> span64 = CollectionsMarshal.AsSpan(list129); - span64[0] = null; - span64[1] = null; - ref List reference99 = ref span64[2]; - num4 = 1; - List list130 = new List(num4); - CollectionsMarshal.SetCount(list130, num4); - CollectionsMarshal.AsSpan(list130)[0] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list129 = new List>(index3); + CollectionsMarshal.SetCount(list129, index3); + Span> span129 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span129[num3] = null; + num3++; + span129[num3] = null; + num3++; + ref List reference99 = ref span129[num3]; + index4 = 1; + List list130 = new List(index4); + CollectionsMarshal.SetCount(list130, index4); + Span span130 = CollectionsMarshal.AsSpan(list130); + num4 = 0; + span130[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference99 = list130; - span64[3] = null; - span64[4] = null; - span64[5] = null; + num3++; + span129[num3] = null; + num3++; + span129[num3] = null; + num3++; + span129[num3] = null; questStep7.RequiredQuestVariables = list129; reference98 = questStep7; obj76.Steps = list124; reference93 = obj76; - ref QuestSequence reference100 = ref span56[3]; + num++; + ref QuestSequence reference100 = ref span115[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -308089,7 +374023,9 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -308102,24 +374038,30 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - CollectionsMarshal.AsSpan(list132)[0] = "liza"; + Span span132 = CollectionsMarshal.AsSpan(list132); + index = 0; + span132[index] = "liza"; questRoot15.Author = list132; - num = 4; - List list133 = new List(num); - CollectionsMarshal.SetCount(list133, num); - Span span65 = CollectionsMarshal.AsSpan(list133); - ref QuestSequence reference101 = ref span65[0]; + index = 4; + List list133 = new List(index); + CollectionsMarshal.SetCount(list133, index); + Span span133 = CollectionsMarshal.AsSpan(list133); + num = 0; + ref QuestSequence reference101 = ref span133[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj78.Steps = list134; reference101 = obj78; - ref QuestSequence reference102 = ref span65[1]; + num++; + ref QuestSequence reference102 = ref span133[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -308127,19 +374069,23 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1042302u, new Vector3(-102.43384f, 40.00001f, 331.89893f), 957); + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.Interact, 1042302u, new Vector3(-102.43384f, 40.00001f, 331.89893f), 957); obj79.Steps = list135; reference102 = obj79; - ref QuestSequence reference103 = ref span65[2]; + num++; + ref QuestSequence reference103 = ref span133[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span66 = CollectionsMarshal.AsSpan(list136); - ref QuestStep reference104 = ref span66[0]; + index2 = 6; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + ref QuestStep reference104 = ref span136[num2]; QuestStep obj81 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(86.44138f, 38.836067f, 375.43958f), 957) { Fly = true, @@ -308150,36 +374096,50 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - Span span67 = CollectionsMarshal.AsSpan(list137); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span137 = CollectionsMarshal.AsSpan(list137); + index3 = 0; + span137[index3] = null; + index3++; + span137[index3] = null; + index3++; + span137[index3] = null; + index3++; + span137[index3] = null; + index3++; + span137[index3] = null; + index3++; + span137[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list137; skipConditions4.StepIf = skipStepConditions4; obj81.SkipConditions = skipConditions4; reference104 = obj81; - ref QuestStep reference105 = ref span66[1]; + num2++; + ref QuestStep reference105 = ref span136[num2]; QuestStep obj82 = new QuestStep(EInteractionType.Action, 2012887u, new Vector3(90.71484f, 38.70359f, 377.7981f), 957) { StopDistance = 5f, Action = EAction.YellowGulal }; - num3 = 6; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span68 = CollectionsMarshal.AsSpan(list138); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list138 = new List(index3); + CollectionsMarshal.SetCount(list138, index3); + Span span138 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj82.CompletionQuestVariablesFlags = list138; reference105 = obj82; - ref QuestStep reference106 = ref span66[2]; + num2++; + ref QuestStep reference106 = ref span136[num2]; QuestStep obj83 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.42284f, 50.283375f, 165.20433f), 957) { Fly = true, @@ -308190,36 +374150,50 @@ public static class AssemblyQuestLoader num3 = 6; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - Span span69 = CollectionsMarshal.AsSpan(list139); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span139 = CollectionsMarshal.AsSpan(list139); + index3 = 0; + span139[index3] = null; + index3++; + span139[index3] = null; + index3++; + span139[index3] = null; + index3++; + span139[index3] = null; + index3++; + span139[index3] = null; + index3++; + span139[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list139; skipConditions5.StepIf = skipStepConditions5; obj83.SkipConditions = skipConditions5; reference106 = obj83; - ref QuestStep reference107 = ref span66[3]; + num2++; + ref QuestStep reference107 = ref span136[num2]; QuestStep obj84 = new QuestStep(EInteractionType.Action, 2012888u, new Vector3(-74.2962f, 50.095337f, 160.41797f), 957) { StopDistance = 5f, Action = EAction.YellowGulal }; - num3 = 6; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - Span span70 = CollectionsMarshal.AsSpan(list140); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list140 = new List(index3); + CollectionsMarshal.SetCount(list140, index3); + Span span140 = CollectionsMarshal.AsSpan(list140); + num3 = 0; + span140[num3] = null; + num3++; + span140[num3] = null; + num3++; + span140[num3] = null; + num3++; + span140[num3] = null; + num3++; + span140[num3] = null; + num3++; + span140[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj84.CompletionQuestVariablesFlags = list140; reference107 = obj84; - ref QuestStep reference108 = ref span66[4]; + num2++; + ref QuestStep reference108 = ref span136[num2]; QuestStep obj85 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-195.75089f, 35.536575f, 98.20429f), 957) { Fly = true, @@ -308230,38 +374204,52 @@ public static class AssemblyQuestLoader num3 = 6; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - Span span71 = CollectionsMarshal.AsSpan(list141); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span141 = CollectionsMarshal.AsSpan(list141); + index3 = 0; + span141[index3] = null; + index3++; + span141[index3] = null; + index3++; + span141[index3] = null; + index3++; + span141[index3] = null; + index3++; + span141[index3] = null; + index3++; + span141[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list141; skipConditions6.StepIf = skipStepConditions6; obj85.SkipConditions = skipConditions6; reference108 = obj85; - ref QuestStep reference109 = ref span66[5]; + num2++; + ref QuestStep reference109 = ref span136[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Action, 2012889u, new Vector3(-197.9859f, 36.209595f, 94.102295f), 957) { StopDistance = 5f, Action = EAction.YellowGulal }; - num3 = 6; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span72 = CollectionsMarshal.AsSpan(list142); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list142 = new List(index3); + CollectionsMarshal.SetCount(list142, index3); + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = null; + num3++; + span142[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj86.CompletionQuestVariablesFlags = list142; reference109 = obj86; obj80.Steps = list136; reference103 = obj80; - ref QuestSequence reference110 = ref span65[3]; + num++; + ref QuestSequence reference110 = ref span133[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -308269,12 +374257,14 @@ public static class AssemblyQuestLoader num2 = 2; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span73 = CollectionsMarshal.AsSpan(list143); - span73[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.59158f, 39.9961f, 320.7581f), 957) + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.59158f, 39.9961f, 320.7581f), 957) { Fly = true }; - span73[1] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2++; + span143[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Mount = false, Comment = "TODO Verify this properly unmounts" @@ -308288,24 +374278,30 @@ public static class AssemblyQuestLoader num = 1; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - CollectionsMarshal.AsSpan(list144)[0] = "liza"; + Span span144 = CollectionsMarshal.AsSpan(list144); + index = 0; + span144[index] = "liza"; questRoot16.Author = list144; - num = 3; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - Span span74 = CollectionsMarshal.AsSpan(list145); - ref QuestSequence reference111 = ref span74[0]; + index = 3; + List list145 = new List(index); + CollectionsMarshal.SetCount(list145, index); + Span span145 = CollectionsMarshal.AsSpan(list145); + num = 0; + ref QuestSequence reference111 = ref span145[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj88.Steps = list146; reference111 = obj88; - ref QuestSequence reference112 = ref span74[1]; + num++; + ref QuestSequence reference112 = ref span145[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -308313,7 +374309,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list147)[0]; + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + ref QuestStep reference113 = ref span147[index2]; QuestStep obj90 = new QuestStep(EInteractionType.Combat, 2012855u, new Vector3(-255.23767f, 69.13855f, -527.8248f), 957) { Fly = true, @@ -308322,20 +374320,25 @@ public static class AssemblyQuestLoader num3 = 1; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - CollectionsMarshal.AsSpan(list148)[0] = 14677u; + Span span148 = CollectionsMarshal.AsSpan(list148); + index3 = 0; + span148[index3] = 14677u; obj90.KillEnemyDataIds = list148; reference113 = obj90; obj89.Steps = list147; reference112 = obj89; - ref QuestSequence reference114 = ref span74[2]; + num++; + ref QuestSequence reference114 = ref span145[num]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -308349,13 +374352,16 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "liza"; + Span span150 = CollectionsMarshal.AsSpan(list150); + index = 0; + span150[index] = "liza"; questRoot17.Author = list150; - num = 5; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span75 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference115 = ref span75[0]; + index = 5; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + Span span151 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference115 = ref span151[num]; QuestSequence obj92 = new QuestSequence { Sequence = 0 @@ -308363,25 +374369,31 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span152[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj92.Steps = list152; reference115 = obj92; - ref QuestSequence reference116 = ref span75[1]; + num++; + ref QuestSequence reference116 = ref span151[num]; QuestSequence obj93 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1042469u, new Vector3(-578.5153f, -0.01527307f, -36.514893f), 957) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span153[num2] = new QuestStep(EInteractionType.Interact, 1042469u, new Vector3(-578.5153f, -0.01527307f, -36.514893f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj93.Steps = list153; reference116 = obj93; - ref QuestSequence reference117 = ref span75[2]; + num++; + ref QuestSequence reference117 = ref span151[num]; QuestSequence obj94 = new QuestSequence { Sequence = 2 @@ -308389,28 +374401,34 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.UseItem, 1042470u, new Vector3(-579.553f, -0.058757372f, -31.23523f), 957) + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.UseItem, 1042470u, new Vector3(-579.553f, -0.058757372f, -31.23523f), 957) { StopDistance = 4f, ItemId = 2003401u }; obj94.Steps = list154; reference117 = obj94; - ref QuestSequence reference118 = ref span75[3]; + num++; + ref QuestSequence reference118 = ref span151[num]; QuestSequence obj95 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1042470u, new Vector3(-579.553f, -0.058757372f, -31.23523f), 957) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span155[num2] = new QuestStep(EInteractionType.Interact, 1042470u, new Vector3(-579.553f, -0.058757372f, -31.23523f), 957) { StopDistance = 4f }; obj95.Steps = list155; reference118 = obj95; - ref QuestSequence reference119 = ref span75[4]; + num++; + ref QuestSequence reference119 = ref span151[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -308418,7 +374436,9 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -308431,24 +374451,30 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "liza"; + Span span157 = CollectionsMarshal.AsSpan(list157); + index = 0; + span157[index] = "liza"; questRoot18.Author = list157; - num = 3; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span76 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference120 = ref span76[0]; + index = 3; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + Span span158 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestSequence reference120 = ref span158[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + span159[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj97.Steps = list159; reference120 = obj97; - ref QuestSequence reference121 = ref span76[1]; + num++; + ref QuestSequence reference121 = ref span158[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -308456,63 +374482,87 @@ public static class AssemblyQuestLoader num2 = 3; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span77 = CollectionsMarshal.AsSpan(list160); - ref QuestStep reference122 = ref span77[0]; + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + ref QuestStep reference122 = ref span160[index2]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 2012858u, new Vector3(280.78125f, 0.045776367f, 556.7252f), 957) { Fly = true }; - num3 = 6; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - Span span78 = CollectionsMarshal.AsSpan(list161); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list161 = new List(index3); + CollectionsMarshal.SetCount(list161, index3); + Span span161 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = null; + num3++; + span161[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj99.CompletionQuestVariablesFlags = list161; reference122 = obj99; - ref QuestStep reference123 = ref span77[1]; + index2++; + ref QuestStep reference123 = ref span160[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2012857u, new Vector3(303.36462f, 0.015197754f, 530.44934f), 957); num3 = 6; List list162 = new List(num3); CollectionsMarshal.SetCount(list162, num3); - Span span79 = CollectionsMarshal.AsSpan(list162); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span162 = CollectionsMarshal.AsSpan(list162); + index3 = 0; + span162[index3] = null; + index3++; + span162[index3] = null; + index3++; + span162[index3] = null; + index3++; + span162[index3] = null; + index3++; + span162[index3] = null; + index3++; + span162[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list162; reference123 = questStep8; - ref QuestStep reference124 = ref span77[2]; + index2++; + ref QuestStep reference124 = ref span160[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2012856u, new Vector3(281.94092f, 0.015197754f, 510.64307f), 957); - num3 = 6; - List list163 = new List(num3); - CollectionsMarshal.SetCount(list163, num3); - Span span80 = CollectionsMarshal.AsSpan(list163); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list163 = new List(index3); + CollectionsMarshal.SetCount(list163, index3); + Span span163 = CollectionsMarshal.AsSpan(list163); + num3 = 0; + span163[num3] = null; + num3++; + span163[num3] = null; + num3++; + span163[num3] = null; + num3++; + span163[num3] = null; + num3++; + span163[num3] = null; + num3++; + span163[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list163; reference124 = questStep9; obj98.Steps = list160; reference121 = obj98; - ref QuestSequence reference125 = ref span76[2]; + num++; + ref QuestSequence reference125 = ref span158[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -308525,13 +374575,16 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "liza"; + Span span165 = CollectionsMarshal.AsSpan(list165); + index = 0; + span165[index] = "liza"; questRoot19.Author = list165; - num = 4; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span81 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference126 = ref span81[0]; + index = 4; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + Span span166 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference126 = ref span166[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -308539,21 +374592,27 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj101.Steps = list167; reference126 = obj101; - ref QuestSequence reference127 = ref span81[1]; + num++; + ref QuestSequence reference127 = ref span166[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 2012892u, new Vector3(-120.19531f, 41.000854f, 340.41345f), 957); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.Interact, 2012892u, new Vector3(-120.19531f, 41.000854f, 340.41345f), 957); obj102.Steps = list168; reference127 = obj102; - ref QuestSequence reference128 = ref span81[2]; + num++; + ref QuestSequence reference128 = ref span166[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 @@ -308561,22 +374620,27 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1042458u, new Vector3(416.5254f, 8.834262f, -344.38086f), 957) + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.Interact, 1042458u, new Vector3(416.5254f, 8.834262f, -344.38086f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj103.Steps = list169; reference128 = obj103; - ref QuestSequence reference129 = ref span81[3]; + num++; + ref QuestSequence reference129 = ref span166[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -308590,13 +374654,16 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "liza"; + Span span171 = CollectionsMarshal.AsSpan(list171); + index = 0; + span171[index] = "liza"; questRoot20.Author = list171; - num = 4; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span82 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference130 = ref span82[0]; + index = 4; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + Span span172 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference130 = ref span172[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 @@ -308604,18 +374671,23 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj105.Steps = list173; reference130 = obj105; - ref QuestSequence reference131 = ref span82[1]; + num++; + ref QuestSequence reference131 = ref span172[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.UseItem, 2012893u, new Vector3(267.32275f, 7.156433f, -476.34088f), 957) + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.UseItem, 2012893u, new Vector3(267.32275f, 7.156433f, -476.34088f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand, @@ -308623,7 +374695,8 @@ public static class AssemblyQuestLoader }; obj106.Steps = list174; reference131 = obj106; - ref QuestSequence reference132 = ref span82[2]; + num++; + ref QuestSequence reference132 = ref span172[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 @@ -308631,7 +374704,9 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list175)[0]; + Span span175 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + ref QuestStep reference133 = ref span175[index2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2012894u, new Vector3(257.09924f, 6.6071167f, -468.0705f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -308639,20 +374714,25 @@ public static class AssemblyQuestLoader num3 = 1; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = 14678u; + Span span176 = CollectionsMarshal.AsSpan(list176); + index3 = 0; + span176[index3] = 14678u; obj108.KillEnemyDataIds = list176; reference133 = obj108; obj107.Steps = list175; reference132 = obj107; - ref QuestSequence reference134 = ref span82[3]; + num++; + ref QuestSequence reference134 = ref span172[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -308666,13 +374746,16 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "liza"; + Span span178 = CollectionsMarshal.AsSpan(list178); + index = 0; + span178[index] = "liza"; questRoot21.Author = list178; - num = 3; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span83 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference135 = ref span83[0]; + index = 3; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + Span span179 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference135 = ref span179[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -308680,40 +374763,51 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span180[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj110.Steps = list180; reference135 = obj110; - ref QuestSequence reference136 = ref span83[1]; + num++; + ref QuestSequence reference136 = ref span179[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - Span span84 = CollectionsMarshal.AsSpan(list181); - ref QuestStep reference137 = ref span84[0]; + index2 = 6; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + ref QuestStep reference137 = ref span181[num2]; QuestStep obj112 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(263.92963f, 7.600955f, 289.10162f), 957) { Fly = true }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - Span span85 = CollectionsMarshal.AsSpan(list182); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list182 = new List(index3); + CollectionsMarshal.SetCount(list182, index3); + Span span182 = CollectionsMarshal.AsSpan(list182); + num3 = 0; + span182[num3] = null; + num3++; + span182[num3] = null; + num3++; + span182[num3] = null; + num3++; + span182[num3] = null; + num3++; + span182[num3] = null; + num3++; + span182[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list182; skipConditions7.StepIf = skipStepConditions7; obj112.SkipConditions = skipConditions7; reference137 = obj112; - ref QuestStep reference138 = ref span84[1]; + num2++; + ref QuestStep reference138 = ref span181[num2]; QuestStep obj113 = new QuestStep(EInteractionType.UseItem, 2012902u, new Vector3(264.88135f, 8.773865f, 287.98352f), 957) { ItemId = 2003405u @@ -308721,37 +374815,51 @@ public static class AssemblyQuestLoader num3 = 6; List list183 = new List(num3); CollectionsMarshal.SetCount(list183, num3); - Span span86 = CollectionsMarshal.AsSpan(list183); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span183 = CollectionsMarshal.AsSpan(list183); + index3 = 0; + span183[index3] = null; + index3++; + span183[index3] = null; + index3++; + span183[index3] = null; + index3++; + span183[index3] = null; + index3++; + span183[index3] = null; + index3++; + span183[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj113.CompletionQuestVariablesFlags = list183; reference138 = obj113; - ref QuestStep reference139 = ref span84[2]; + num2++; + ref QuestStep reference139 = ref span181[num2]; QuestStep obj114 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(337.84723f, 6.94503f, 359.85526f), 957) { Fly = true }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 6; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - Span span87 = CollectionsMarshal.AsSpan(list184); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list184 = new List(index3); + CollectionsMarshal.SetCount(list184, index3); + Span span184 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span184[num3] = null; + num3++; + span184[num3] = null; + num3++; + span184[num3] = null; + num3++; + span184[num3] = null; + num3++; + span184[num3] = null; + num3++; + span184[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list184; skipConditions8.StepIf = skipStepConditions8; obj114.SkipConditions = skipConditions8; reference139 = obj114; - ref QuestStep reference140 = ref span84[3]; + num2++; + ref QuestStep reference140 = ref span181[num2]; QuestStep obj115 = new QuestStep(EInteractionType.UseItem, 2012901u, new Vector3(340.07776f, 8.2855835f, 360.3723f), 957) { ItemId = 2003405u @@ -308759,37 +374867,51 @@ public static class AssemblyQuestLoader num3 = 6; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - Span span88 = CollectionsMarshal.AsSpan(list185); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span185 = CollectionsMarshal.AsSpan(list185); + index3 = 0; + span185[index3] = null; + index3++; + span185[index3] = null; + index3++; + span185[index3] = null; + index3++; + span185[index3] = null; + index3++; + span185[index3] = null; + index3++; + span185[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj115.CompletionQuestVariablesFlags = list185; reference140 = obj115; - ref QuestStep reference141 = ref span84[4]; + num2++; + ref QuestStep reference141 = ref span181[num2]; QuestStep obj116 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(254.98802f, 7.049597f, 373.44046f), 957) { Fly = true }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 6; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - Span span89 = CollectionsMarshal.AsSpan(list186); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list186 = new List(index3); + CollectionsMarshal.SetCount(list186, index3); + Span span186 = CollectionsMarshal.AsSpan(list186); + num3 = 0; + span186[num3] = null; + num3++; + span186[num3] = null; + num3++; + span186[num3] = null; + num3++; + span186[num3] = null; + num3++; + span186[num3] = null; + num3++; + span186[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list186; skipConditions9.StepIf = skipStepConditions9; obj116.SkipConditions = skipConditions9; reference141 = obj116; - ref QuestStep reference142 = ref span84[5]; + num2++; + ref QuestStep reference142 = ref span181[num2]; QuestStep obj117 = new QuestStep(EInteractionType.UseItem, 2012900u, new Vector3(254.8103f, 8.377136f, 375.20398f), 957) { ItemId = 2003405u @@ -308797,18 +374919,25 @@ public static class AssemblyQuestLoader num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - Span span90 = CollectionsMarshal.AsSpan(list187); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span187 = CollectionsMarshal.AsSpan(list187); + index3 = 0; + span187[index3] = null; + index3++; + span187[index3] = null; + index3++; + span187[index3] = null; + index3++; + span187[index3] = null; + index3++; + span187[index3] = null; + index3++; + span187[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj117.CompletionQuestVariablesFlags = list187; reference142 = obj117; obj111.Steps = list181; reference136 = obj111; - ref QuestSequence reference143 = ref span83[2]; + num++; + ref QuestSequence reference143 = ref span179[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -308816,7 +374945,9 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + Span span188 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span188[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -308829,24 +374960,30 @@ public static class AssemblyQuestLoader num = 1; List list189 = new List(num); CollectionsMarshal.SetCount(list189, num); - CollectionsMarshal.AsSpan(list189)[0] = "liza"; + Span span189 = CollectionsMarshal.AsSpan(list189); + index = 0; + span189[index] = "liza"; questRoot22.Author = list189; - num = 4; - List list190 = new List(num); - CollectionsMarshal.SetCount(list190, num); - Span span91 = CollectionsMarshal.AsSpan(list190); - ref QuestSequence reference144 = ref span91[0]; + index = 4; + List list190 = new List(index); + CollectionsMarshal.SetCount(list190, index); + Span span190 = CollectionsMarshal.AsSpan(list190); + num = 0; + ref QuestSequence reference144 = ref span190[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj119.Steps = list191; reference144 = obj119; - ref QuestSequence reference145 = ref span91[1]; + num++; + ref QuestSequence reference145 = ref span190[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -308854,13 +374991,15 @@ public static class AssemblyQuestLoader num2 = 2; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span92 = CollectionsMarshal.AsSpan(list192); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(459.61847f, 7.3659906f, 22.413525f), 957) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(459.61847f, 7.3659906f, 22.413525f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; - span92[1] = new QuestStep(EInteractionType.UseItem, 2012895u, new Vector3(461.8142f, 9.262146f, 24.2771f), 957) + index2++; + span192[index2] = new QuestStep(EInteractionType.UseItem, 2012895u, new Vector3(461.8142f, 9.262146f, 24.2771f), 957) { StopDistance = 5f, ItemId = 2003407u, @@ -308868,18 +375007,22 @@ public static class AssemblyQuestLoader }; obj120.Steps = list192; reference145 = obj120; - ref QuestSequence reference146 = ref span91[2]; + num++; + ref QuestSequence reference146 = ref span190[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 2012897u, new Vector3(458.39624f, 7.4005737f, 23.788818f), 957); + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.Interact, 2012897u, new Vector3(458.39624f, 7.4005737f, 23.788818f), 957); obj121.Steps = list193; reference146 = obj121; - ref QuestSequence reference147 = ref span91[3]; + num++; + ref QuestSequence reference147 = ref span190[num]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue @@ -308887,7 +375030,9 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -308901,24 +375046,30 @@ public static class AssemblyQuestLoader num = 1; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - CollectionsMarshal.AsSpan(list195)[0] = "liza"; + Span span195 = CollectionsMarshal.AsSpan(list195); + index = 0; + span195[index] = "liza"; questRoot23.Author = list195; - num = 3; - List list196 = new List(num); - CollectionsMarshal.SetCount(list196, num); - Span span93 = CollectionsMarshal.AsSpan(list196); - ref QuestSequence reference148 = ref span93[0]; + index = 3; + List list196 = new List(index); + CollectionsMarshal.SetCount(list196, index); + Span span196 = CollectionsMarshal.AsSpan(list196); + num = 0; + ref QuestSequence reference148 = ref span196[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span197[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj123.Steps = list197; reference148 = obj123; - ref QuestSequence reference149 = ref span93[1]; + num++; + ref QuestSequence reference149 = ref span196[num]; QuestSequence obj124 = new QuestSequence { Sequence = 1 @@ -308926,64 +375077,85 @@ public static class AssemblyQuestLoader num2 = 2; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span94 = CollectionsMarshal.AsSpan(list198); - ref QuestStep reference150 = ref span94[0]; + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + ref QuestStep reference150 = ref span198[index2]; QuestStep obj125 = new QuestStep(EInteractionType.Combat, 2012903u, new Vector3(37.03357f, 22.507019f, -8.133057f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - CollectionsMarshal.AsSpan(list199)[0] = 14679u; + index3 = 1; + List list199 = new List(index3); + CollectionsMarshal.SetCount(list199, index3); + Span span199 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span199[num3] = 14679u; obj125.KillEnemyDataIds = list199; num3 = 6; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - Span span95 = CollectionsMarshal.AsSpan(list200); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span200 = CollectionsMarshal.AsSpan(list200); + index3 = 0; + span200[index3] = null; + index3++; + span200[index3] = null; + index3++; + span200[index3] = null; + index3++; + span200[index3] = null; + index3++; + span200[index3] = null; + index3++; + span200[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj125.CompletionQuestVariablesFlags = list200; reference150 = obj125; - ref QuestStep reference151 = ref span94[1]; + index2++; + ref QuestStep reference151 = ref span198[index2]; QuestStep obj126 = new QuestStep(EInteractionType.Combat, 2012904u, new Vector3(116.68567f, 22.262878f, -71.000244f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - CollectionsMarshal.AsSpan(list201)[0] = 14679u; + index3 = 1; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + Span span201 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span201[num3] = 14679u; obj126.KillEnemyDataIds = list201; num3 = 6; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - Span span96 = CollectionsMarshal.AsSpan(list202); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span202 = CollectionsMarshal.AsSpan(list202); + index3 = 0; + span202[index3] = null; + index3++; + span202[index3] = null; + index3++; + span202[index3] = null; + index3++; + span202[index3] = null; + index3++; + span202[index3] = null; + index3++; + span202[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj126.CompletionQuestVariablesFlags = list202; reference151 = obj126; obj124.Steps = list198; reference149 = obj124; - ref QuestSequence reference152 = ref span93[2]; + num++; + ref QuestSequence reference152 = ref span196[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -308996,13 +375168,16 @@ public static class AssemblyQuestLoader num = 1; List list204 = new List(num); CollectionsMarshal.SetCount(list204, num); - CollectionsMarshal.AsSpan(list204)[0] = "liza"; + Span span204 = CollectionsMarshal.AsSpan(list204); + index = 0; + span204[index] = "liza"; questRoot24.Author = list204; - num = 3; - List list205 = new List(num); - CollectionsMarshal.SetCount(list205, num); - Span span97 = CollectionsMarshal.AsSpan(list205); - ref QuestSequence reference153 = ref span97[0]; + index = 3; + List list205 = new List(index); + CollectionsMarshal.SetCount(list205, index); + Span span205 = CollectionsMarshal.AsSpan(list205); + num = 0; + ref QuestSequence reference153 = ref span205[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 @@ -309010,40 +375185,51 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + Span span206 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span206[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj128.Steps = list206; reference153 = obj128; - ref QuestSequence reference154 = ref span97[1]; + num++; + ref QuestSequence reference154 = ref span205[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - Span span98 = CollectionsMarshal.AsSpan(list207); - ref QuestStep reference155 = ref span98[0]; + index2 = 4; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + Span span207 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + ref QuestStep reference155 = ref span207[num2]; QuestStep obj130 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(96.680695f, 38.981216f, 249.31558f), 957) { Fly = true }; SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 6; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - Span span99 = CollectionsMarshal.AsSpan(list208); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + Span span208 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span208[num3] = null; + num3++; + span208[num3] = null; + num3++; + span208[num3] = null; + num3++; + span208[num3] = null; + num3++; + span208[num3] = null; + num3++; + span208[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions10.CompletionQuestVariablesFlags = list208; skipConditions10.StepIf = skipStepConditions10; obj130.SkipConditions = skipConditions10; reference155 = obj130; - ref QuestStep reference156 = ref span98[1]; + num2++; + ref QuestStep reference156 = ref span207[num2]; QuestStep obj131 = new QuestStep(EInteractionType.Interact, 2012907u, new Vector3(95.140015f, -29.404175f, 183.94751f), 957) { DisableNavmesh = true @@ -309051,33 +375237,47 @@ public static class AssemblyQuestLoader num3 = 6; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - Span span100 = CollectionsMarshal.AsSpan(list209); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span209 = CollectionsMarshal.AsSpan(list209); + index3 = 0; + span209[index3] = null; + index3++; + span209[index3] = null; + index3++; + span209[index3] = null; + index3++; + span209[index3] = null; + index3++; + span209[index3] = null; + index3++; + span209[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj131.CompletionQuestVariablesFlags = list209; reference156 = obj131; - ref QuestStep reference157 = ref span98[2]; + num2++; + ref QuestStep reference157 = ref span207[num2]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 2012906u, new Vector3(74.84546f, -35.41626f, 212.05457f), 957) { Fly = true }; - num3 = 6; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - Span span101 = CollectionsMarshal.AsSpan(list210); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list210 = new List(index3); + CollectionsMarshal.SetCount(list210, index3); + Span span210 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span210[num3] = null; + num3++; + span210[num3] = null; + num3++; + span210[num3] = null; + num3++; + span210[num3] = null; + num3++; + span210[num3] = null; + num3++; + span210[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj132.CompletionQuestVariablesFlags = list210; reference157 = obj132; - ref QuestStep reference158 = ref span98[3]; + num2++; + ref QuestStep reference158 = ref span207[num2]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2012905u, new Vector3(132.7992f, -25.558899f, 206.74438f), 957) { Fly = true @@ -309085,18 +375285,25 @@ public static class AssemblyQuestLoader num3 = 6; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - Span span102 = CollectionsMarshal.AsSpan(list211); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span211 = CollectionsMarshal.AsSpan(list211); + index3 = 0; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj133.CompletionQuestVariablesFlags = list211; reference158 = obj133; obj129.Steps = list207; reference154 = obj129; - ref QuestSequence reference159 = ref span97[2]; + num++; + ref QuestSequence reference159 = ref span205[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue @@ -309104,14 +375311,16 @@ public static class AssemblyQuestLoader num2 = 2; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span103 = CollectionsMarshal.AsSpan(list212); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(110.10968f, 5.2216215f, 201.52365f), 957) + Span span212 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span212[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(110.10968f, 5.2216215f, 201.52365f), 957) { DisableNavmesh = true, Mount = true, Fly = true }; - span103[1] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2++; + span212[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -309124,24 +375333,30 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - CollectionsMarshal.AsSpan(list213)[0] = "liza"; + Span span213 = CollectionsMarshal.AsSpan(list213); + index = 0; + span213[index] = "liza"; questRoot25.Author = list213; - num = 3; - List list214 = new List(num); - CollectionsMarshal.SetCount(list214, num); - Span span104 = CollectionsMarshal.AsSpan(list214); - ref QuestSequence reference160 = ref span104[0]; + index = 3; + List list214 = new List(index); + CollectionsMarshal.SetCount(list214, index); + Span span214 = CollectionsMarshal.AsSpan(list214); + num = 0; + ref QuestSequence reference160 = ref span214[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj135.Steps = list215; reference160 = obj135; - ref QuestSequence reference161 = ref span104[1]; + num++; + ref QuestSequence reference161 = ref span214[num]; QuestSequence obj136 = new QuestSequence { Sequence = 1 @@ -309149,8 +375364,9 @@ public static class AssemblyQuestLoader num2 = 4; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span105 = CollectionsMarshal.AsSpan(list216); - ref QuestStep reference162 = ref span105[0]; + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + ref QuestStep reference162 = ref span216[index2]; QuestStep obj137 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-78.12948f, 89.78411f, -666.6682f), 957) { Fly = true, @@ -309163,21 +375379,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - num3 = 6; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - Span span106 = CollectionsMarshal.AsSpan(list217); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list217 = new List(index3); + CollectionsMarshal.SetCount(list217, index3); + Span span217 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions11.CompletionQuestVariablesFlags = list217; skipConditions11.StepIf = skipStepConditions11; obj137.SkipConditions = skipConditions11; reference162 = obj137; - ref QuestStep reference163 = ref span105[1]; + index2++; + ref QuestStep reference163 = ref span216[index2]; QuestStep obj138 = new QuestStep(EInteractionType.Emote, 1042462u, new Vector3(-73.86902f, 89.90596f, -666.0411f), 957) { StopDistance = 7f, @@ -309186,34 +375409,48 @@ public static class AssemblyQuestLoader num3 = 6; List list218 = new List(num3); CollectionsMarshal.SetCount(list218, num3); - Span span107 = CollectionsMarshal.AsSpan(list218); - span107[0] = null; - span107[1] = null; - span107[2] = null; - span107[3] = null; - span107[4] = null; - span107[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span218 = CollectionsMarshal.AsSpan(list218); + index3 = 0; + span218[index3] = null; + index3++; + span218[index3] = null; + index3++; + span218[index3] = null; + index3++; + span218[index3] = null; + index3++; + span218[index3] = null; + index3++; + span218[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj138.CompletionQuestVariablesFlags = list218; reference163 = obj138; - ref QuestStep reference164 = ref span105[2]; + index2++; + ref QuestStep reference164 = ref span216[index2]; QuestStep obj139 = new QuestStep(EInteractionType.Emote, 1042461u, new Vector3(-85.160645f, 100.062004f, -715.3277f), 957) { Fly = true, Emote = EEmote.Doubt }; - num3 = 6; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - Span span108 = CollectionsMarshal.AsSpan(list219); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list219 = new List(index3); + CollectionsMarshal.SetCount(list219, index3); + Span span219 = CollectionsMarshal.AsSpan(list219); + num3 = 0; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj139.CompletionQuestVariablesFlags = list219; reference164 = obj139; - ref QuestStep reference165 = ref span105[3]; + index2++; + ref QuestStep reference165 = ref span216[index2]; QuestStep obj140 = new QuestStep(EInteractionType.Emote, 1042460u, new Vector3(-143.66376f, 95.4186f, -702.4491f), 957) { Fly = true, @@ -309222,26 +375459,35 @@ public static class AssemblyQuestLoader num3 = 6; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - Span span109 = CollectionsMarshal.AsSpan(list220); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span220 = CollectionsMarshal.AsSpan(list220); + index3 = 0; + span220[index3] = null; + index3++; + span220[index3] = null; + index3++; + span220[index3] = null; + index3++; + span220[index3] = null; + index3++; + span220[index3] = null; + index3++; + span220[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj140.CompletionQuestVariablesFlags = list220; reference165 = obj140; obj136.Steps = list216; reference161 = obj136; - ref QuestSequence reference166 = ref span104[2]; + num++; + ref QuestSequence reference166 = ref span214[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span221[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -309255,13 +375501,16 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "liza"; + Span span222 = CollectionsMarshal.AsSpan(list222); + index = 0; + span222[index] = "liza"; questRoot26.Author = list222; - num = 5; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span110 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference167 = ref span110[0]; + index = 5; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + Span span223 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference167 = ref span223[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -309269,25 +375518,31 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj142.Steps = list224; reference167 = obj142; - ref QuestSequence reference168 = ref span110[1]; + num++; + ref QuestSequence reference168 = ref span223[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1042466u, new Vector3(-525.2003f, 6.158311f, -574.5785f), 957) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.Interact, 1042466u, new Vector3(-525.2003f, 6.158311f, -574.5785f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj143.Steps = list225; reference168 = obj143; - ref QuestSequence reference169 = ref span110[2]; + num++; + ref QuestSequence reference169 = ref span223[num]; QuestSequence obj144 = new QuestSequence { Sequence = 2 @@ -309295,21 +375550,27 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 2012977u, new Vector3(-526.66516f, 6.1188354f, -579.52246f), 957); + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span226[index2] = new QuestStep(EInteractionType.Interact, 2012977u, new Vector3(-526.66516f, 6.1188354f, -579.52246f), 957); obj144.Steps = list226; reference169 = obj144; - ref QuestSequence reference170 = ref span110[3]; + num++; + ref QuestSequence reference170 = ref span223[num]; QuestSequence obj145 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1042467u, new Vector3(-582.5437f, 9.775031f, -553.64307f), 957); + index2 = 1; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + Span span227 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span227[num2] = new QuestStep(EInteractionType.Interact, 1042467u, new Vector3(-582.5437f, 9.775031f, -553.64307f), 957); obj145.Steps = list227; reference170 = obj145; - ref QuestSequence reference171 = ref span110[4]; + num++; + ref QuestSequence reference171 = ref span223[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -309317,7 +375578,9 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + Span span228 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span228[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -309331,24 +375594,30 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - CollectionsMarshal.AsSpan(list229)[0] = "liza"; + Span span229 = CollectionsMarshal.AsSpan(list229); + index = 0; + span229[index] = "liza"; questRoot27.Author = list229; - num = 5; - List list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span111 = CollectionsMarshal.AsSpan(list230); - ref QuestSequence reference172 = ref span111[0]; + index = 5; + List list230 = new List(index); + CollectionsMarshal.SetCount(list230, index); + Span span230 = CollectionsMarshal.AsSpan(list230); + num = 0; + ref QuestSequence reference172 = ref span230[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list231 = new List(index2); + CollectionsMarshal.SetCount(list231, index2); + Span span231 = CollectionsMarshal.AsSpan(list231); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj147.Steps = list231; reference172 = obj147; - ref QuestSequence reference173 = ref span111[1]; + num++; + ref QuestSequence reference173 = ref span230[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -309356,67 +375625,92 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1042468u, new Vector3(-660.88354f, 0.14433183f, -63.401245f), 957) + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span232[index2] = new QuestStep(EInteractionType.Interact, 1042468u, new Vector3(-660.88354f, 0.14433183f, -63.401245f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj148.Steps = list232; reference173 = obj148; - ref QuestSequence reference174 = ref span111[2]; + num++; + ref QuestSequence reference174 = ref span230[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - Span span112 = CollectionsMarshal.AsSpan(list233); - ref QuestStep reference175 = ref span112[0]; + index2 = 3; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + Span span233 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + ref QuestStep reference175 = ref span233[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2012910u, new Vector3(-790.15796f, -0.25946045f, -110.09387f), 957); - num3 = 6; - List list234 = new List(num3); - CollectionsMarshal.SetCount(list234, num3); - Span span113 = CollectionsMarshal.AsSpan(list234); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list234 = new List(index3); + CollectionsMarshal.SetCount(list234, index3); + Span span234 = CollectionsMarshal.AsSpan(list234); + num3 = 0; + span234[num3] = null; + num3++; + span234[num3] = null; + num3++; + span234[num3] = null; + num3++; + span234[num3] = null; + num3++; + span234[num3] = null; + num3++; + span234[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list234; reference175 = questStep10; - ref QuestStep reference176 = ref span112[1]; + num2++; + ref QuestStep reference176 = ref span233[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2012911u, new Vector3(-843.0457f, -0.22894287f, -71.03082f), 957); num3 = 6; List list235 = new List(num3); CollectionsMarshal.SetCount(list235, num3); - Span span114 = CollectionsMarshal.AsSpan(list235); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span235 = CollectionsMarshal.AsSpan(list235); + index3 = 0; + span235[index3] = null; + index3++; + span235[index3] = null; + index3++; + span235[index3] = null; + index3++; + span235[index3] = null; + index3++; + span235[index3] = null; + index3++; + span235[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list235; reference176 = questStep11; - ref QuestStep reference177 = ref span112[2]; + num2++; + ref QuestStep reference177 = ref span233[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2012909u, new Vector3(-856.4126f, -0.25946045f, -159.83832f), 957); - num3 = 6; - List list236 = new List(num3); - CollectionsMarshal.SetCount(list236, num3); - Span span115 = CollectionsMarshal.AsSpan(list236); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list236 = new List(index3); + CollectionsMarshal.SetCount(list236, index3); + Span span236 = CollectionsMarshal.AsSpan(list236); + num3 = 0; + span236[num3] = null; + num3++; + span236[num3] = null; + num3++; + span236[num3] = null; + num3++; + span236[num3] = null; + num3++; + span236[num3] = null; + num3++; + span236[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list236; reference177 = questStep12; obj149.Steps = list233; reference174 = obj149; - ref QuestSequence reference178 = ref span111[3]; + num++; + ref QuestSequence reference178 = ref span230[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -309424,21 +375718,26 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1042468u, new Vector3(-660.88354f, 0.14433183f, -63.401245f), 957) + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span237[index2] = new QuestStep(EInteractionType.Interact, 1042468u, new Vector3(-660.88354f, 0.14433183f, -63.401245f), 957) { Fly = true }; obj150.Steps = list237; reference178 = obj150; - ref QuestSequence reference179 = ref span111[4]; + num++; + ref QuestSequence reference179 = ref span230[num]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -309451,13 +375750,16 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - CollectionsMarshal.AsSpan(list239)[0] = "liza"; + Span span239 = CollectionsMarshal.AsSpan(list239); + index = 0; + span239[index] = "liza"; questRoot28.Author = list239; - num = 5; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - Span span116 = CollectionsMarshal.AsSpan(list240); - ref QuestSequence reference180 = ref span116[0]; + index = 5; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + Span span240 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference180 = ref span240[num]; QuestSequence obj152 = new QuestSequence { Sequence = 0 @@ -309465,25 +375767,31 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj152.Steps = list241; reference180 = obj152; - ref QuestSequence reference181 = ref span116[1]; + num++; + ref QuestSequence reference181 = ref span240[num]; QuestSequence obj153 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1042459u, new Vector3(353.99402f, 12.724952f, -220.5387f), 957) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.Interact, 1042459u, new Vector3(353.99402f, 12.724952f, -220.5387f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj153.Steps = list242; reference181 = obj153; - ref QuestSequence reference182 = ref span116[2]; + num++; + ref QuestSequence reference182 = ref span240[num]; QuestSequence obj154 = new QuestSequence { Sequence = 2 @@ -309491,8 +375799,9 @@ public static class AssemblyQuestLoader num2 = 3; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span117 = CollectionsMarshal.AsSpan(list243); - ref QuestStep reference183 = ref span117[0]; + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + ref QuestStep reference183 = ref span243[index2]; QuestStep obj155 = new QuestStep(EInteractionType.Say, 1042472u, new Vector3(352.5597f, 20.552443f, 6.362976f), 957) { Fly = true, @@ -309504,23 +375813,33 @@ public static class AssemblyQuestLoader num3 = 6; List> list244 = new List>(num3); CollectionsMarshal.SetCount(list244, num3); - Span> span118 = CollectionsMarshal.AsSpan(list244); - span118[0] = null; - ref List reference184 = ref span118[1]; + Span> span244 = CollectionsMarshal.AsSpan(list244); + index3 = 0; + span244[index3] = null; + index3++; + ref List reference184 = ref span244[index3]; num4 = 1; List list245 = new List(num4); CollectionsMarshal.SetCount(list245, num4); - CollectionsMarshal.AsSpan(list245)[0] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span245 = CollectionsMarshal.AsSpan(list245); + index4 = 0; + span245[index4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); reference184 = list245; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = null; obj155.RequiredQuestVariables = list244; - num3 = 1; - List list246 = new List(num3); - CollectionsMarshal.SetCount(list246, num3); - CollectionsMarshal.AsSpan(list246)[0] = new DialogueChoice + index3 = 1; + List list246 = new List(index3); + CollectionsMarshal.SetCount(list246, index3); + Span span246 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + span246[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK127_04577_Q1_000_000"), @@ -309528,7 +375847,8 @@ public static class AssemblyQuestLoader }; obj155.DialogueChoices = list246; reference183 = obj155; - ref QuestStep reference185 = ref span117[1]; + index2++; + ref QuestStep reference185 = ref span243[index2]; QuestStep obj156 = new QuestStep(EInteractionType.Say, 1042387u, new Vector3(398.94702f, 6.591665f, 50.492065f), 957) { Fly = true, @@ -309540,23 +375860,33 @@ public static class AssemblyQuestLoader num3 = 6; List> list247 = new List>(num3); CollectionsMarshal.SetCount(list247, num3); - Span> span119 = CollectionsMarshal.AsSpan(list247); - span119[0] = null; - ref List reference186 = ref span119[1]; - num4 = 1; - List list248 = new List(num4); - CollectionsMarshal.SetCount(list248, num4); - CollectionsMarshal.AsSpan(list248)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span> span247 = CollectionsMarshal.AsSpan(list247); + index3 = 0; + span247[index3] = null; + index3++; + ref List reference186 = ref span247[index3]; + index4 = 1; + List list248 = new List(index4); + CollectionsMarshal.SetCount(list248, index4); + Span span248 = CollectionsMarshal.AsSpan(list248); + num4 = 0; + span248[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference186 = list248; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = null; + index3++; + span247[index3] = null; + index3++; + span247[index3] = null; + index3++; + span247[index3] = null; + index3++; + span247[index3] = null; obj156.RequiredQuestVariables = list247; - num3 = 1; - List list249 = new List(num3); - CollectionsMarshal.SetCount(list249, num3); - CollectionsMarshal.AsSpan(list249)[0] = new DialogueChoice + index3 = 1; + List list249 = new List(index3); + CollectionsMarshal.SetCount(list249, index3); + Span span249 = CollectionsMarshal.AsSpan(list249); + num3 = 0; + span249[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK127_04577_Q2_000_000"), @@ -309564,7 +375894,8 @@ public static class AssemblyQuestLoader }; obj156.DialogueChoices = list249; reference185 = obj156; - ref QuestStep reference187 = ref span117[2]; + index2++; + ref QuestStep reference187 = ref span243[index2]; QuestStep obj157 = new QuestStep(EInteractionType.Say, 1042388u, new Vector3(408.95703f, 7.8583245f, 5.0201416f), 957) { Fly = true, @@ -309576,23 +375907,33 @@ public static class AssemblyQuestLoader num3 = 6; List> list250 = new List>(num3); CollectionsMarshal.SetCount(list250, num3); - Span> span120 = CollectionsMarshal.AsSpan(list250); - span120[0] = null; - ref List reference188 = ref span120[1]; + Span> span250 = CollectionsMarshal.AsSpan(list250); + index3 = 0; + span250[index3] = null; + index3++; + ref List reference188 = ref span250[index3]; num4 = 1; List list251 = new List(num4); CollectionsMarshal.SetCount(list251, num4); - CollectionsMarshal.AsSpan(list251)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span251 = CollectionsMarshal.AsSpan(list251); + index4 = 0; + span251[index4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference188 = list251; - span120[2] = null; - span120[3] = null; - span120[4] = null; - span120[5] = null; + index3++; + span250[index3] = null; + index3++; + span250[index3] = null; + index3++; + span250[index3] = null; + index3++; + span250[index3] = null; obj157.RequiredQuestVariables = list250; - num3 = 1; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - CollectionsMarshal.AsSpan(list252)[0] = new DialogueChoice + index3 = 1; + List list252 = new List(index3); + CollectionsMarshal.SetCount(list252, index3); + Span span252 = CollectionsMarshal.AsSpan(list252); + num3 = 0; + span252[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK127_04577_Q3_000_000"), @@ -309602,21 +375943,25 @@ public static class AssemblyQuestLoader reference187 = obj157; obj154.Steps = list243; reference182 = obj154; - ref QuestSequence reference189 = ref span116[3]; + num++; + ref QuestSequence reference189 = ref span240[num]; QuestSequence obj158 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1042459u, new Vector3(353.99402f, 12.724952f, -220.5387f), 957) + index2 = 1; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + Span span253 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span253[num2] = new QuestStep(EInteractionType.Interact, 1042459u, new Vector3(353.99402f, 12.724952f, -220.5387f), 957) { Fly = true }; obj158.Steps = list253; reference189 = obj158; - ref QuestSequence reference190 = ref span116[4]; + num++; + ref QuestSequence reference190 = ref span240[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -309624,7 +375969,9 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + Span span254 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span254[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -309638,24 +375985,30 @@ public static class AssemblyQuestLoader num = 1; List list255 = new List(num); CollectionsMarshal.SetCount(list255, num); - CollectionsMarshal.AsSpan(list255)[0] = "liza"; + Span span255 = CollectionsMarshal.AsSpan(list255); + index = 0; + span255[index] = "liza"; questRoot29.Author = list255; - num = 3; - List list256 = new List(num); - CollectionsMarshal.SetCount(list256, num); - Span span121 = CollectionsMarshal.AsSpan(list256); - ref QuestSequence reference191 = ref span121[0]; + index = 3; + List list256 = new List(index); + CollectionsMarshal.SetCount(list256, index); + Span span256 = CollectionsMarshal.AsSpan(list256); + num = 0; + ref QuestSequence reference191 = ref span256[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span257 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span257[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj160.Steps = list257; reference191 = obj160; - ref QuestSequence reference192 = ref span121[1]; + num++; + ref QuestSequence reference192 = ref span256[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -309663,8 +376016,9 @@ public static class AssemblyQuestLoader num2 = 3; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span122 = CollectionsMarshal.AsSpan(list258); - ref QuestStep reference193 = ref span122[0]; + Span span258 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + ref QuestStep reference193 = ref span258[index2]; QuestStep obj162 = new QuestStep(EInteractionType.Combat, 2012915u, new Vector3(-383.505f, 1.0527954f, 362.99683f), 957) { Fly = true, @@ -309673,21 +376027,30 @@ public static class AssemblyQuestLoader num3 = 1; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - CollectionsMarshal.AsSpan(list259)[0] = 14680u; + Span span259 = CollectionsMarshal.AsSpan(list259); + index3 = 0; + span259[index3] = 14680u; obj162.KillEnemyDataIds = list259; - num3 = 6; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - Span span123 = CollectionsMarshal.AsSpan(list260); - span123[0] = null; - span123[1] = null; - span123[2] = null; - span123[3] = null; - span123[4] = null; - span123[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list260 = new List(index3); + CollectionsMarshal.SetCount(list260, index3); + Span span260 = CollectionsMarshal.AsSpan(list260); + num3 = 0; + span260[num3] = null; + num3++; + span260[num3] = null; + num3++; + span260[num3] = null; + num3++; + span260[num3] = null; + num3++; + span260[num3] = null; + num3++; + span260[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj162.CompletionQuestVariablesFlags = list260; reference193 = obj162; - ref QuestStep reference194 = ref span122[1]; + index2++; + ref QuestStep reference194 = ref span258[index2]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 2012914u, new Vector3(-399.83215f, 1.6326294f, 291.73718f), 957) { Fly = true @@ -309695,49 +376058,67 @@ public static class AssemblyQuestLoader num3 = 6; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - Span span124 = CollectionsMarshal.AsSpan(list261); - span124[0] = null; - span124[1] = null; - span124[2] = null; - span124[3] = null; - span124[4] = null; - span124[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span261 = CollectionsMarshal.AsSpan(list261); + index3 = 0; + span261[index3] = null; + index3++; + span261[index3] = null; + index3++; + span261[index3] = null; + index3++; + span261[index3] = null; + index3++; + span261[index3] = null; + index3++; + span261[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj163.CompletionQuestVariablesFlags = list261; reference194 = obj163; - ref QuestStep reference195 = ref span122[2]; + index2++; + ref QuestStep reference195 = ref span258[index2]; QuestStep obj164 = new QuestStep(EInteractionType.Combat, 2012913u, new Vector3(-444.0528f, 0.38146973f, 249.53076f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list262 = new List(num3); - CollectionsMarshal.SetCount(list262, num3); - CollectionsMarshal.AsSpan(list262)[0] = 14680u; + index3 = 1; + List list262 = new List(index3); + CollectionsMarshal.SetCount(list262, index3); + Span span262 = CollectionsMarshal.AsSpan(list262); + num3 = 0; + span262[num3] = 14680u; obj164.KillEnemyDataIds = list262; num3 = 6; List list263 = new List(num3); CollectionsMarshal.SetCount(list263, num3); - Span span125 = CollectionsMarshal.AsSpan(list263); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span263 = CollectionsMarshal.AsSpan(list263); + index3 = 0; + span263[index3] = null; + index3++; + span263[index3] = null; + index3++; + span263[index3] = null; + index3++; + span263[index3] = null; + index3++; + span263[index3] = null; + index3++; + span263[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj164.CompletionQuestVariablesFlags = list263; reference195 = obj164; obj161.Steps = list258; reference192 = obj161; - ref QuestSequence reference196 = ref span121[2]; + num++; + ref QuestSequence reference196 = ref span256[num]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -309750,13 +376131,16 @@ public static class AssemblyQuestLoader num = 1; List list265 = new List(num); CollectionsMarshal.SetCount(list265, num); - CollectionsMarshal.AsSpan(list265)[0] = "liza"; + Span span265 = CollectionsMarshal.AsSpan(list265); + index = 0; + span265[index] = "liza"; questRoot30.Author = list265; - num = 4; - List list266 = new List(num); - CollectionsMarshal.SetCount(list266, num); - Span span126 = CollectionsMarshal.AsSpan(list266); - ref QuestSequence reference197 = ref span126[0]; + index = 4; + List list266 = new List(index); + CollectionsMarshal.SetCount(list266, index); + Span span266 = CollectionsMarshal.AsSpan(list266); + num = 0; + ref QuestSequence reference197 = ref span266[num]; QuestSequence obj166 = new QuestSequence { Sequence = 0 @@ -309764,7 +376148,9 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list267)[0]; + Span span267 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + ref QuestStep reference198 = ref span267[index2]; QuestStep obj167 = new QuestStep(EInteractionType.AcceptQuest, 1039543u, new Vector3(-173.66296f, 4.0499997f, -91.38635f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -309781,10 +376167,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = new DialogueChoice + index3 = 1; + List list268 = new List(index3); + CollectionsMarshal.SetCount(list268, index3); + Span span268 = CollectionsMarshal.AsSpan(list268); + num3 = 0; + span268[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBZ001_04579_Q1_000_000"), @@ -309794,21 +376182,25 @@ public static class AssemblyQuestLoader reference198 = obj167; obj166.Steps = list267; reference197 = obj166; - ref QuestSequence reference199 = ref span126[1]; + num++; + ref QuestSequence reference199 = ref span266[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1042736u, new Vector3(-396.17004f, 22.142666f, 463.00452f), 958) + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + Span span269 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span269[num2] = new QuestStep(EInteractionType.Interact, 1042736u, new Vector3(-396.17004f, 22.142666f, 463.00452f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj168.Steps = list269; reference199 = obj168; - ref QuestSequence reference200 = ref span126[2]; + num++; + ref QuestSequence reference200 = ref span266[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -309816,18 +376208,23 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.Interact, 1042731u, new Vector3(-416.64764f, 21.708784f, 409.90308f), 958); + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span270[index2] = new QuestStep(EInteractionType.Interact, 1042731u, new Vector3(-416.64764f, 21.708784f, 409.90308f), 958); obj169.Steps = list270; reference200 = obj169; - ref QuestSequence reference201 = ref span126[3]; + num++; + ref QuestSequence reference201 = ref span266[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042733u, new Vector3(-337.51428f, 21.963173f, 484.91638f), 958) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042733u, new Vector3(-337.51428f, 21.963173f, 484.91638f), 958) { NextQuestId = new QuestId(4580) }; @@ -309840,13 +376237,16 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - CollectionsMarshal.AsSpan(list272)[0] = "liza"; + Span span272 = CollectionsMarshal.AsSpan(list272); + index = 0; + span272[index] = "liza"; questRoot31.Author = list272; - num = 7; - List list273 = new List(num); - CollectionsMarshal.SetCount(list273, num); - Span span127 = CollectionsMarshal.AsSpan(list273); - ref QuestSequence reference202 = ref span127[0]; + index = 7; + List list273 = new List(index); + CollectionsMarshal.SetCount(list273, index); + Span span273 = CollectionsMarshal.AsSpan(list273); + num = 0; + ref QuestSequence reference202 = ref span273[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 @@ -309854,24 +376254,30 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042733u, new Vector3(-337.51428f, 21.963173f, 484.91638f), 958); + Span span274 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span274[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042733u, new Vector3(-337.51428f, 21.963173f, 484.91638f), 958); obj171.Steps = list274; reference202 = obj171; - ref QuestSequence reference203 = ref span127[1]; + num++; + ref QuestSequence reference203 = ref span273[num]; QuestSequence obj172 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1042737u, new Vector3(453.57434f, 11.500888f, 176.28735f), 958) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.Interact, 1042737u, new Vector3(453.57434f, 11.500888f, 176.28735f), 958) { Fly = true }; obj172.Steps = list275; reference203 = obj172; - ref QuestSequence reference204 = ref span127[2]; + num++; + ref QuestSequence reference204 = ref span273[num]; QuestSequence obj173 = new QuestSequence { Sequence = 2 @@ -309879,8 +376285,9 @@ public static class AssemblyQuestLoader num2 = 3; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span128 = CollectionsMarshal.AsSpan(list276); - ref QuestStep reference205 = ref span128[0]; + Span span276 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + ref QuestStep reference205 = ref span276[index2]; QuestStep obj174 = new QuestStep(EInteractionType.Interact, 1042740u, new Vector3(580.5293f, 32.31866f, 143.05322f), 958) { Fly = true @@ -309888,60 +376295,84 @@ public static class AssemblyQuestLoader num3 = 6; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - Span span129 = CollectionsMarshal.AsSpan(list277); - span129[0] = null; - span129[1] = null; - span129[2] = null; - span129[3] = null; - span129[4] = null; - span129[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span277 = CollectionsMarshal.AsSpan(list277); + index3 = 0; + span277[index3] = null; + index3++; + span277[index3] = null; + index3++; + span277[index3] = null; + index3++; + span277[index3] = null; + index3++; + span277[index3] = null; + index3++; + span277[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj174.CompletionQuestVariablesFlags = list277; reference205 = obj174; - ref QuestStep reference206 = ref span128[1]; + index2++; + ref QuestStep reference206 = ref span276[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1042739u, new Vector3(586.694f, 32.318665f, 140.7644f), 958); - num3 = 6; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - Span span130 = CollectionsMarshal.AsSpan(list278); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list278 = new List(index3); + CollectionsMarshal.SetCount(list278, index3); + Span span278 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + span278[num3] = null; + num3++; + span278[num3] = null; + num3++; + span278[num3] = null; + num3++; + span278[num3] = null; + num3++; + span278[num3] = null; + num3++; + span278[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list278; reference206 = questStep13; - ref QuestStep reference207 = ref span128[2]; + index2++; + ref QuestStep reference207 = ref span276[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1042741u, new Vector3(578.20996f, 38.372063f, 215.89978f), 958); num3 = 6; List list279 = new List(num3); CollectionsMarshal.SetCount(list279, num3); - Span span131 = CollectionsMarshal.AsSpan(list279); - span131[0] = null; - span131[1] = null; - span131[2] = null; - span131[3] = null; - span131[4] = null; - span131[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span279 = CollectionsMarshal.AsSpan(list279); + index3 = 0; + span279[index3] = null; + index3++; + span279[index3] = null; + index3++; + span279[index3] = null; + index3++; + span279[index3] = null; + index3++; + span279[index3] = null; + index3++; + span279[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list279; reference207 = questStep14; obj173.Steps = list276; reference204 = obj173; - ref QuestSequence reference208 = ref span127[3]; + num++; + ref QuestSequence reference208 = ref span273[num]; QuestSequence obj175 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1042738u, new Vector3(574.21216f, 38.372063f, 211.99353f), 958) + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span280 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span280[num2] = new QuestStep(EInteractionType.Interact, 1042738u, new Vector3(574.21216f, 38.372063f, 211.99353f), 958) { StopDistance = 5f }; obj175.Steps = list280; reference208 = obj175; - ref QuestSequence reference209 = ref span127[4]; + num++; + ref QuestSequence reference209 = ref span273[num]; QuestSequence obj176 = new QuestSequence { Sequence = 4 @@ -309949,33 +376380,41 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1042744u, new Vector3(578.912f, 32.318665f, 140.7644f), 958); + Span span281 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span281[index2] = new QuestStep(EInteractionType.Interact, 1042744u, new Vector3(578.912f, 32.318665f, 140.7644f), 958); obj176.Steps = list281; reference209 = obj176; - ref QuestSequence reference210 = ref span127[5]; + num++; + ref QuestSequence reference210 = ref span273[num]; QuestSequence obj177 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - ref QuestStep reference211 = ref CollectionsMarshal.AsSpan(list282)[0]; + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + Span span282 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + ref QuestStep reference211 = ref span282[num2]; QuestStep obj178 = new QuestStep(EInteractionType.Combat, null, new Vector3(439.23065f, 3.0308545f, 65.572105f), 958) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list283 = new List(num3); - CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = 14686u; + index3 = 1; + List list283 = new List(index3); + CollectionsMarshal.SetCount(list283, index3); + Span span283 = CollectionsMarshal.AsSpan(list283); + num3 = 0; + span283[num3] = 14686u; obj178.KillEnemyDataIds = list283; reference211 = obj178; obj177.Steps = list282; reference210 = obj177; - ref QuestSequence reference212 = ref span127[6]; + num++; + ref QuestSequence reference212 = ref span273[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -309983,12 +376422,14 @@ public static class AssemblyQuestLoader num2 = 2; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span132 = CollectionsMarshal.AsSpan(list284); - span132[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(576.40137f, 38.372063f, 213.64067f), 958) + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span284[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(576.40137f, 38.372063f, 213.64067f), 958) { Fly = true }; - span132[1] = new QuestStep(EInteractionType.CompleteQuest, 1042746u, new Vector3(576.62305f, 38.372063f, 215.01477f), 958) + index2++; + span284[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042746u, new Vector3(576.62305f, 38.372063f, 215.01477f), 958) { StopDistance = 5f, NextQuestId = new QuestId(4581) @@ -310002,24 +376443,30 @@ public static class AssemblyQuestLoader num = 1; List list285 = new List(num); CollectionsMarshal.SetCount(list285, num); - CollectionsMarshal.AsSpan(list285)[0] = "liza"; + Span span285 = CollectionsMarshal.AsSpan(list285); + index = 0; + span285[index] = "liza"; questRoot32.Author = list285; - num = 8; - List list286 = new List(num); - CollectionsMarshal.SetCount(list286, num); - Span span133 = CollectionsMarshal.AsSpan(list286); - ref QuestSequence reference213 = ref span133[0]; + index = 8; + List list286 = new List(index); + CollectionsMarshal.SetCount(list286, index); + Span span286 = CollectionsMarshal.AsSpan(list286); + num = 0; + ref QuestSequence reference213 = ref span286[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042746u, new Vector3(576.62305f, 38.372063f, 215.01477f), 958); + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + Span span287 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + span287[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042746u, new Vector3(576.62305f, 38.372063f, 215.01477f), 958); obj180.Steps = list287; reference213 = obj180; - ref QuestSequence reference214 = ref span133[1]; + num++; + ref QuestSequence reference214 = ref span286[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -310027,27 +376474,33 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Interact, 1042751u, new Vector3(-344.22827f, 23.742596f, 421.68298f), 958) + Span span288 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span288[index2] = new QuestStep(EInteractionType.Interact, 1042751u, new Vector3(-344.22827f, 23.742596f, 421.68298f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj181.Steps = list288; reference214 = obj181; - ref QuestSequence reference215 = ref span133[2]; + num++; + ref QuestSequence reference215 = ref span286[num]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1042753u, new Vector3(76.645996f, 10.49723f, -75.51697f), 958) + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + Span span289 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span289[num2] = new QuestStep(EInteractionType.Interact, 1042753u, new Vector3(76.645996f, 10.49723f, -75.51697f), 958) { Fly = true }; obj182.Steps = list289; reference215 = obj182; - ref QuestSequence reference216 = ref span133[3]; + num++; + ref QuestSequence reference216 = ref span286[num]; QuestSequence obj183 = new QuestSequence { Sequence = 3 @@ -310055,24 +376508,30 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1042752u, new Vector3(75.21167f, 10.494146f, -75.05914f), 958); + Span span290 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + span290[index2] = new QuestStep(EInteractionType.Interact, 1042752u, new Vector3(75.21167f, 10.494146f, -75.05914f), 958); obj183.Steps = list290; reference216 = obj183; - ref QuestSequence reference217 = ref span133[4]; + num++; + ref QuestSequence reference217 = ref span286[num]; QuestSequence obj184 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.Interact, 2012954u, new Vector3(79.9115f, 10.482849f, -220.35559f), 958) + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + Span span291 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span291[num2] = new QuestStep(EInteractionType.Interact, 2012954u, new Vector3(79.9115f, 10.482849f, -220.35559f), 958) { Fly = true }; obj184.Steps = list291; reference217 = obj184; - ref QuestSequence reference218 = ref span133[5]; + num++; + ref QuestSequence reference218 = ref span286[num]; QuestSequence obj185 = new QuestSequence { Sequence = 5 @@ -310080,21 +376539,26 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 2012955u, new Vector3(62.394165f, 10.452393f, -316.64f), 958) + Span span292 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span292[index2] = new QuestStep(EInteractionType.Interact, 2012955u, new Vector3(62.394165f, 10.452393f, -316.64f), 958) { Fly = true }; obj185.Steps = list292; reference218 = obj185; - ref QuestSequence reference219 = ref span133[6]; + num++; + ref QuestSequence reference219 = ref span286[num]; QuestSequence obj186 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - ref QuestStep reference220 = ref CollectionsMarshal.AsSpan(list293)[0]; + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + Span span293 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + ref QuestStep reference220 = ref span293[num2]; QuestStep obj187 = new QuestStep(EInteractionType.Combat, null, new Vector3(-31.511757f, 23.164677f, -415.98322f), 958) { StopDistance = 0.5f, @@ -310104,14 +376568,17 @@ public static class AssemblyQuestLoader num3 = 2; List list294 = new List(num3); CollectionsMarshal.SetCount(list294, num3); - Span span134 = CollectionsMarshal.AsSpan(list294); - span134[0] = 14687u; - span134[1] = 14688u; + Span span294 = CollectionsMarshal.AsSpan(list294); + index3 = 0; + span294[index3] = 14687u; + index3++; + span294[index3] = 14688u; obj187.KillEnemyDataIds = list294; reference220 = obj187; obj186.Steps = list293; reference219 = obj186; - ref QuestSequence reference221 = ref span133[7]; + num++; + ref QuestSequence reference221 = ref span286[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue @@ -310119,7 +376586,9 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042759u, new Vector3(-28.427612f, 23.164675f, -414.0536f), 958) + Span span295 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span295[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042759u, new Vector3(-28.427612f, 23.164675f, -414.0536f), 958) { NextQuestId = new QuestId(4582) }; @@ -310132,27 +376601,33 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = "liza"; + Span span296 = CollectionsMarshal.AsSpan(list296); + index = 0; + span296[index] = "liza"; questRoot33.Author = list296; - num = 6; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - Span span135 = CollectionsMarshal.AsSpan(list297); - ref QuestSequence reference222 = ref span135[0]; + index = 6; + List list297 = new List(index); + CollectionsMarshal.SetCount(list297, index); + Span span297 = CollectionsMarshal.AsSpan(list297); + num = 0; + ref QuestSequence reference222 = ref span297[num]; QuestSequence obj189 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042765u, new Vector3(-29.404175f, 23.164677f, -414.87756f), 958) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + Span span298 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span298[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042765u, new Vector3(-29.404175f, 23.164677f, -414.87756f), 958) { StopDistance = 5f }; obj189.Steps = list298; reference222 = obj189; - ref QuestSequence reference223 = ref span135[1]; + num++; + ref QuestSequence reference223 = ref span297[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 @@ -310160,42 +376635,51 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1042766u, new Vector3(-416.25085f, 21.684832f, 408.1941f), 958) + Span span299 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span299[index2] = new QuestStep(EInteractionType.Interact, 1042766u, new Vector3(-416.25085f, 21.684832f, 408.1941f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj190.Steps = list299; reference223 = obj190; - ref QuestSequence reference224 = ref span135[2]; + num++; + ref QuestSequence reference224 = ref span297[num]; QuestSequence obj191 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - ref QuestStep reference225 = ref CollectionsMarshal.AsSpan(list300)[0]; + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + Span span300 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + ref QuestStep reference225 = ref span300[num2]; QuestStep obj192 = new QuestStep(EInteractionType.SinglePlayerDuty, 1042769u, new Vector3(-336.99554f, 10.799999f, -602.1057f), 958) { Fly = true }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 2; - List list301 = new List(num3); - CollectionsMarshal.SetCount(list301, num3); - Span span136 = CollectionsMarshal.AsSpan(list301); - span136[0] = "(phase 1) AI doesn't move automatically"; - span136[1] = "(phase 2) AI doesn't target enemy"; + index3 = 2; + List list301 = new List(index3); + CollectionsMarshal.SetCount(list301, index3); + Span span301 = CollectionsMarshal.AsSpan(list301); + num3 = 0; + span301[num3] = "(phase 1) AI doesn't move automatically"; + num3++; + span301[num3] = "(phase 2) AI doesn't target enemy"; singlePlayerDutyOptions.Notes = list301; obj192.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference225 = obj192; obj191.Steps = list300; reference224 = obj191; - span135[3] = new QuestSequence + num++; + span297[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference226 = ref span135[4]; + num++; + ref QuestSequence reference226 = ref span297[num]; QuestSequence obj193 = new QuestSequence { Sequence = 4 @@ -310203,21 +376687,26 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1042770u, new Vector3(-415.21326f, 21.765957f, 409.99463f), 958) + Span span302 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span302[index2] = new QuestStep(EInteractionType.Interact, 1042770u, new Vector3(-415.21326f, 21.765957f, 409.99463f), 958) { StopDistance = 5f }; obj193.Steps = list302; reference226 = obj193; - ref QuestSequence reference227 = ref span135[5]; + num++; + ref QuestSequence reference227 = ref span297[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039543u, new Vector3(-173.66296f, 4.0499997f, -91.38635f), 963) + index2 = 1; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + Span span303 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span303[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039543u, new Vector3(-173.66296f, 4.0499997f, -91.38635f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -310235,13 +376724,16 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - CollectionsMarshal.AsSpan(list304)[0] = "pot0to"; + Span span304 = CollectionsMarshal.AsSpan(list304); + index = 0; + span304[index] = "pot0to"; questRoot34.Author = list304; - num = 6; - List list305 = new List(num); - CollectionsMarshal.SetCount(list305, num); - Span span137 = CollectionsMarshal.AsSpan(list305); - ref QuestSequence reference228 = ref span137[0]; + index = 6; + List list305 = new List(index); + CollectionsMarshal.SetCount(list305, index); + Span span305 = CollectionsMarshal.AsSpan(list305); + num = 0; + ref QuestSequence reference228 = ref span305[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -310249,7 +376741,9 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + Span span306 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span306[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -310262,16 +376756,18 @@ public static class AssemblyQuestLoader }; obj195.Steps = list306; reference228 = obj195; - ref QuestSequence reference229 = ref span137[1]; + num++; + ref QuestSequence reference229 = ref span305[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - Span span138 = CollectionsMarshal.AsSpan(list307); - span138[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-265.16965f, 8.184065f, 183.24426f), 129) + index2 = 7; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + Span span307 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span307[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-265.16965f, 8.184065f, 183.24426f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -310280,18 +376776,25 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - span138[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-280.7175f, 10.35225f, 197.09795f), 129); - span138[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-279.7466f, 11.3272505f, 188.46881f), 129); - span138[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.0631f, 11.852187f, 188.60892f), 129) + num2++; + span307[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-280.7175f, 10.35225f, 197.09795f), 129); + num2++; + span307[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-279.7466f, 11.3272505f, 188.46881f), 129); + num2++; + span307[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.0631f, 11.852187f, 188.60892f), 129) { DisableNavmesh = true }; - span138[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-266.19342f, 11.852209f, 190.92015f), 129); - span138[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-278.93945f, 14.847251f, 194.7018f), 129); - span138[6] = new QuestStep(EInteractionType.Interact, 1000837u, new Vector3(-289.7536f, 16.347252f, 194.53723f), 129); + num2++; + span307[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-266.19342f, 11.852209f, 190.92015f), 129); + num2++; + span307[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-278.93945f, 14.847251f, 194.7018f), 129); + num2++; + span307[num2] = new QuestStep(EInteractionType.Interact, 1000837u, new Vector3(-289.7536f, 16.347252f, 194.53723f), 129); obj196.Steps = list307; reference229 = obj196; - ref QuestSequence reference230 = ref span137[2]; + num++; + ref QuestSequence reference230 = ref span305[num]; QuestSequence obj197 = new QuestSequence { Sequence = 2 @@ -310299,24 +376802,30 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + Span span308 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span308[index2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj197.Steps = list308; reference230 = obj197; - ref QuestSequence reference231 = ref span137[3]; + num++; + ref QuestSequence reference231 = ref span305[num]; QuestSequence obj198 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 2012878u, new Vector3(129.65588f, -13.565308f, 156.35913f), 132); + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + Span span309 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span309[num2] = new QuestStep(EInteractionType.Interact, 2012878u, new Vector3(129.65588f, -13.565308f, 156.35913f), 132); obj198.Steps = list309; reference231 = obj198; - ref QuestSequence reference232 = ref span137[4]; + num++; + ref QuestSequence reference232 = ref span305[num]; QuestSequence obj199 = new QuestSequence { Sequence = 4 @@ -310324,7 +376833,9 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1042600u, new Vector3(-20.431885f, 14.000006f, 5.2948f), 131) + Span span310 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span310[index2] = new QuestStep(EInteractionType.Interact, 1042600u, new Vector3(-20.431885f, 14.000006f, 5.2948f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -310335,15 +376846,18 @@ public static class AssemblyQuestLoader }; obj199.Steps = list310; reference232 = obj199; - ref QuestSequence reference233 = ref span137[5]; + num++; + ref QuestSequence reference233 = ref span305[num]; QuestSequence obj200 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + Span span311 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span311[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, NextQuestId = new QuestId(4650) @@ -310357,13 +376871,16 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - CollectionsMarshal.AsSpan(list312)[0] = "liza"; + Span span312 = CollectionsMarshal.AsSpan(list312); + index = 0; + span312[index] = "liza"; questRoot35.Author = list312; - num = 8; - List list313 = new List(num); - CollectionsMarshal.SetCount(list313, num); - Span span139 = CollectionsMarshal.AsSpan(list313); - ref QuestSequence reference234 = ref span139[0]; + index = 8; + List list313 = new List(index); + CollectionsMarshal.SetCount(list313, index); + Span span313 = CollectionsMarshal.AsSpan(list313); + num = 0; + ref QuestSequence reference234 = ref span313[num]; QuestSequence obj201 = new QuestSequence { Sequence = 0 @@ -310371,19 +376888,23 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042796u, new Vector3(-12.100403f, -16.147f, 153.76514f), 962); + Span span314 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span314[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042796u, new Vector3(-12.100403f, -16.147f, 153.76514f), 962); obj201.Steps = list314; reference234 = obj201; - ref QuestSequence reference235 = ref span139[1]; + num++; + ref QuestSequence reference235 = ref span313[num]; QuestSequence obj202 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - Span span140 = CollectionsMarshal.AsSpan(list315); - span140[0] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) + index2 = 3; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + Span span315 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span315[num2] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) { TargetTerritoryId = (ushort)956, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, @@ -310395,14 +376916,17 @@ public static class AssemblyQuestLoader } } }; - span140[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + num2++; + span315[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true }; - span140[2] = new QuestStep(EInteractionType.Interact, 1042797u, new Vector3(-393.20978f, -220.20282f, 283.16162f), 956); + num2++; + span315[num2] = new QuestStep(EInteractionType.Interact, 1042797u, new Vector3(-393.20978f, -220.20282f, 283.16162f), 956); obj202.Steps = list315; reference235 = obj202; - ref QuestSequence reference236 = ref span139[2]; + num++; + ref QuestSequence reference236 = ref span313[num]; QuestSequence obj203 = new QuestSequence { Sequence = 2 @@ -310410,12 +376934,16 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - ref QuestStep reference237 = ref CollectionsMarshal.AsSpan(list316)[0]; + Span span316 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + ref QuestStep reference237 = ref span316[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1042799u, new Vector3(-395.37653f, -220.20282f, 285.66406f), 956); num3 = 1; List list317 = new List(num3); CollectionsMarshal.SetCount(list317, num3); - CollectionsMarshal.AsSpan(list317)[0] = new DialogueChoice + Span span317 = CollectionsMarshal.AsSpan(list317); + index3 = 0; + span317[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDR601_04586_Q2_000_107") @@ -310424,18 +376952,22 @@ public static class AssemblyQuestLoader reference237 = questStep15; obj203.Steps = list316; reference236 = obj203; - ref QuestSequence reference238 = ref span139[3]; + num++; + ref QuestSequence reference238 = ref span313[num]; QuestSequence obj204 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list318 = new List(num2); - CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.Interact, 1042803u, new Vector3(43.289795f, -1.4816303E-06f, -55.680176f), 963); + index2 = 1; + List list318 = new List(index2); + CollectionsMarshal.SetCount(list318, index2); + Span span318 = CollectionsMarshal.AsSpan(list318); + num2 = 0; + span318[num2] = new QuestStep(EInteractionType.Interact, 1042803u, new Vector3(43.289795f, -1.4816303E-06f, -55.680176f), 963); obj204.Steps = list318; reference238 = obj204; - ref QuestSequence reference239 = ref span139[4]; + num++; + ref QuestSequence reference239 = ref span313[num]; QuestSequence obj205 = new QuestSequence { Sequence = 4 @@ -310443,8 +376975,9 @@ public static class AssemblyQuestLoader num2 = 3; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - Span span141 = CollectionsMarshal.AsSpan(list319); - ref QuestStep reference240 = ref span141[0]; + Span span319 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + ref QuestStep reference240 = ref span319[index2]; QuestStep obj206 = new QuestStep(EInteractionType.Interact, 1042887u, new Vector3(108.72046f, 26.999989f, 14.90802f), 963) { AethernetShortcut = new AethernetShortcut @@ -310453,57 +376986,80 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanKama } }; - num3 = 6; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - Span span142 = CollectionsMarshal.AsSpan(list320); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list320 = new List(index3); + CollectionsMarshal.SetCount(list320, index3); + Span span320 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span320[num3] = null; + num3++; + span320[num3] = null; + num3++; + span320[num3] = null; + num3++; + span320[num3] = null; + num3++; + span320[num3] = null; + num3++; + span320[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj206.CompletionQuestVariablesFlags = list320; reference240 = obj206; - ref QuestStep reference241 = ref span141[1]; + index2++; + ref QuestStep reference241 = ref span319[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1039539u, new Vector3(87.662964f, 27.06f, 28.030762f), 963); num3 = 6; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - Span span143 = CollectionsMarshal.AsSpan(list321); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span321 = CollectionsMarshal.AsSpan(list321); + index3 = 0; + span321[index3] = null; + index3++; + span321[index3] = null; + index3++; + span321[index3] = null; + index3++; + span321[index3] = null; + index3++; + span321[index3] = null; + index3++; + span321[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list321; reference241 = questStep16; - ref QuestStep reference242 = ref span141[2]; + index2++; + ref QuestStep reference242 = ref span319[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1042804u, new Vector3(87.35791f, 26.99999f, 56.687256f), 963); - num3 = 6; - List list322 = new List(num3); - CollectionsMarshal.SetCount(list322, num3); - Span span144 = CollectionsMarshal.AsSpan(list322); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list322 = new List(index3); + CollectionsMarshal.SetCount(list322, index3); + Span span322 = CollectionsMarshal.AsSpan(list322); + num3 = 0; + span322[num3] = null; + num3++; + span322[num3] = null; + num3++; + span322[num3] = null; + num3++; + span322[num3] = null; + num3++; + span322[num3] = null; + num3++; + span322[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list322; reference242 = questStep17; obj205.Steps = list319; reference239 = obj205; - ref QuestSequence reference243 = ref span139[5]; + num++; + ref QuestSequence reference243 = ref span313[num]; QuestSequence obj207 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - ref QuestStep reference244 = ref CollectionsMarshal.AsSpan(list323)[0]; + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + Span span323 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + ref QuestStep reference244 = ref span323[num2]; QuestStep obj208 = new QuestStep(EInteractionType.Interact, 1042803u, new Vector3(116.01684f, 26.99999f, 45.689087f), 963) { StopDistance = 0.25f @@ -310511,7 +377067,9 @@ public static class AssemblyQuestLoader num3 = 1; List list324 = new List(num3); CollectionsMarshal.SetCount(list324, num3); - CollectionsMarshal.AsSpan(list324)[0] = new DialogueChoice + Span span324 = CollectionsMarshal.AsSpan(list324); + index3 = 0; + span324[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDR601_04586_Q5_000_225"), @@ -310521,7 +377079,8 @@ public static class AssemblyQuestLoader reference244 = obj208; obj207.Steps = list323; reference243 = obj207; - ref QuestSequence reference245 = ref span139[6]; + num++; + ref QuestSequence reference245 = ref span313[num]; QuestSequence obj209 = new QuestSequence { Sequence = 6 @@ -310529,7 +377088,9 @@ public static class AssemblyQuestLoader num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1039541u, new Vector3(-159.3805f, 23.999973f, 110.61267f), 963) + Span span325 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span325[index2] = new QuestStep(EInteractionType.Interact, 1039541u, new Vector3(-159.3805f, 23.999973f, 110.61267f), 963) { AethernetShortcut = new AethernetShortcut { @@ -310539,15 +377100,18 @@ public static class AssemblyQuestLoader }; obj209.Steps = list325; reference245 = obj209; - ref QuestSequence reference246 = ref span139[7]; + num++; + ref QuestSequence reference246 = ref span313[num]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042805u, new Vector3(-57.480774f, 14f, 106.82837f), 963) + index2 = 1; + List list326 = new List(index2); + CollectionsMarshal.SetCount(list326, index2); + Span span326 = CollectionsMarshal.AsSpan(list326); + num2 = 0; + span326[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042805u, new Vector3(-57.480774f, 14f, 106.82837f), 963) { StopDistance = 4f, NextQuestId = new QuestId(4587) @@ -310561,13 +377125,16 @@ public static class AssemblyQuestLoader num = 1; List list327 = new List(num); CollectionsMarshal.SetCount(list327, num); - CollectionsMarshal.AsSpan(list327)[0] = "liza"; + Span span327 = CollectionsMarshal.AsSpan(list327); + index = 0; + span327[index] = "liza"; questRoot36.Author = list327; - num = 12; - List list328 = new List(num); - CollectionsMarshal.SetCount(list328, num); - Span span145 = CollectionsMarshal.AsSpan(list328); - ref QuestSequence reference247 = ref span145[0]; + index = 12; + List list328 = new List(index); + CollectionsMarshal.SetCount(list328, index); + Span span328 = CollectionsMarshal.AsSpan(list328); + num = 0; + ref QuestSequence reference247 = ref span328[num]; QuestSequence obj211 = new QuestSequence { Sequence = 0 @@ -310575,24 +377142,30 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042807u, new Vector3(-59.06775f, 13.999993f, 114.67151f), 963) + Span span329 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + span329[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042807u, new Vector3(-59.06775f, 13.999993f, 114.67151f), 963) { StopDistance = 6f }; obj211.Steps = list329; reference247 = obj211; - ref QuestSequence reference248 = ref span145[1]; + num++; + ref QuestSequence reference248 = ref span328[num]; QuestSequence obj212 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.Interact, 1042809u, new Vector3(-378.43903f, 22f, 494.9873f), 958); + index2 = 1; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + Span span330 = CollectionsMarshal.AsSpan(list330); + num2 = 0; + span330[num2] = new QuestStep(EInteractionType.Interact, 1042809u, new Vector3(-378.43903f, 22f, 494.9873f), 958); obj212.Steps = list330; reference248 = obj212; - ref QuestSequence reference249 = ref span145[2]; + num++; + ref QuestSequence reference249 = ref span328[num]; QuestSequence obj213 = new QuestSequence { Sequence = 2 @@ -310600,56 +377173,75 @@ public static class AssemblyQuestLoader num2 = 3; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - Span span146 = CollectionsMarshal.AsSpan(list331); - ref QuestStep reference250 = ref span146[0]; + Span span331 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + ref QuestStep reference250 = ref span331[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1042811u, new Vector3(-323.23187f, 22f, 500.35852f), 958); - num3 = 6; - List list332 = new List(num3); - CollectionsMarshal.SetCount(list332, num3); - Span span147 = CollectionsMarshal.AsSpan(list332); - span147[0] = null; - span147[1] = null; - span147[2] = null; - span147[3] = null; - span147[4] = null; - span147[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list332 = new List(index3); + CollectionsMarshal.SetCount(list332, index3); + Span span332 = CollectionsMarshal.AsSpan(list332); + num3 = 0; + span332[num3] = null; + num3++; + span332[num3] = null; + num3++; + span332[num3] = null; + num3++; + span332[num3] = null; + num3++; + span332[num3] = null; + num3++; + span332[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list332; reference250 = questStep18; - span146[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-277.7818f, 25.227219f, 423.6428f), 958) + index2++; + span331[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-277.7818f, 25.227219f, 423.6428f), 958) { Fly = true }; - ref QuestStep reference251 = ref span146[2]; + index2++; + ref QuestStep reference251 = ref span331[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1042810u, new Vector3(-276.41718f, 25.227219f, 425.4673f), 958); num3 = 6; List list333 = new List(num3); CollectionsMarshal.SetCount(list333, num3); - Span span148 = CollectionsMarshal.AsSpan(list333); - span148[0] = null; - span148[1] = null; - span148[2] = null; - span148[3] = null; - span148[4] = null; - span148[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span333 = CollectionsMarshal.AsSpan(list333); + index3 = 0; + span333[index3] = null; + index3++; + span333[index3] = null; + index3++; + span333[index3] = null; + index3++; + span333[index3] = null; + index3++; + span333[index3] = null; + index3++; + span333[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list333; reference251 = questStep19; obj213.Steps = list331; reference249 = obj213; - ref QuestSequence reference252 = ref span145[3]; + num++; + ref QuestSequence reference252 = ref span328[num]; QuestSequence obj214 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1042809u, new Vector3(-331.9679f, 22.585815f, 430.56573f), 958) + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + Span span334 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span334[num2] = new QuestStep(EInteractionType.Interact, 1042809u, new Vector3(-331.9679f, 22.585815f, 430.56573f), 958) { Fly = true }; obj214.Steps = list334; reference252 = obj214; - ref QuestSequence reference253 = ref span145[4]; + num++; + ref QuestSequence reference253 = ref span328[num]; QuestSequence obj215 = new QuestSequence { Sequence = 4 @@ -310657,24 +377249,30 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.Interact, 1042829u, new Vector3(-330.86145f, 22.310896f, 431.4182f), 958); + Span span335 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span335[index2] = new QuestStep(EInteractionType.Interact, 1042829u, new Vector3(-330.86145f, 22.310896f, 431.4182f), 958); obj215.Steps = list335; reference253 = obj215; - ref QuestSequence reference254 = ref span145[5]; + num++; + ref QuestSequence reference254 = ref span328[num]; QuestSequence obj216 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Interact, 1042813u, new Vector3(591.30237f, 34.877754f, 191.30237f), 958) + index2 = 1; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + Span span336 = CollectionsMarshal.AsSpan(list336); + num2 = 0; + span336[num2] = new QuestStep(EInteractionType.Interact, 1042813u, new Vector3(591.30237f, 34.877754f, 191.30237f), 958) { Fly = true }; obj216.Steps = list336; reference254 = obj216; - ref QuestSequence reference255 = ref span145[6]; + num++; + ref QuestSequence reference255 = ref span328[num]; QuestSequence obj217 = new QuestSequence { Sequence = 6 @@ -310682,24 +377280,30 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.Interact, 1043126u, new Vector3(605.9509f, 34.7239f, 203.32642f), 958) + Span span337 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span337[index2] = new QuestStep(EInteractionType.Interact, 1043126u, new Vector3(605.9509f, 34.7239f, 203.32642f), 958) { StopDistance = 5f }; obj217.Steps = list337; reference255 = obj217; - ref QuestSequence reference256 = ref span145[7]; + num++; + ref QuestSequence reference256 = ref span328[num]; QuestSequence obj218 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.Interact, 1042816u, new Vector3(31.967651f, -132.9464f, -563.5615f), 959); + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + Span span338 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span338[num2] = new QuestStep(EInteractionType.Interact, 1042816u, new Vector3(31.967651f, -132.9464f, -563.5615f), 959); obj218.Steps = list338; reference256 = obj218; - ref QuestSequence reference257 = ref span145[8]; + num++; + ref QuestSequence reference257 = ref span328[num]; QuestSequence obj219 = new QuestSequence { Sequence = 8 @@ -310707,15 +377311,19 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - ref QuestStep reference258 = ref CollectionsMarshal.AsSpan(list339)[0]; + Span span339 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + ref QuestStep reference258 = ref span339[index2]; QuestStep obj220 = new QuestStep(EInteractionType.Interact, 1042818u, new Vector3(-1.6327515f, -28.024765f, -216.23566f), 959) { Fly = true }; - num3 = 1; - List list340 = new List(num3); - CollectionsMarshal.SetCount(list340, num3); - CollectionsMarshal.AsSpan(list340)[0] = new DialogueChoice + index3 = 1; + List list340 = new List(index3); + CollectionsMarshal.SetCount(list340, index3); + Span span340 = CollectionsMarshal.AsSpan(list340); + num3 = 0; + span340[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDR602_04587_Q4_000_294"), @@ -310725,21 +377333,25 @@ public static class AssemblyQuestLoader reference258 = obj220; obj219.Steps = list339; reference257 = obj219; - ref QuestSequence reference259 = ref span145[9]; + num++; + ref QuestSequence reference259 = ref span328[num]; QuestSequence obj221 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1038930u, new Vector3(-415.39636f, 136.98077f, 575.7992f), 959) + index2 = 1; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + Span span341 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span341[num2] = new QuestStep(EInteractionType.Interact, 1038930u, new Vector3(-415.39636f, 136.98077f, 575.7992f), 959) { Fly = true }; obj221.Steps = list341; reference259 = obj221; - ref QuestSequence reference260 = ref span145[10]; + num++; + ref QuestSequence reference260 = ref span328[num]; QuestSequence obj222 = new QuestSequence { Sequence = 10 @@ -310747,8 +377359,9 @@ public static class AssemblyQuestLoader num2 = 3; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span149 = CollectionsMarshal.AsSpan(list342); - span149[0] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) + Span span342 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span342[index2] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) { TargetTerritoryId = (ushort)956, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, @@ -310760,22 +377373,27 @@ public static class AssemblyQuestLoader } } }; - span149[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + index2++; + span342[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true }; - span149[2] = new QuestStep(EInteractionType.Interact, 1042800u, new Vector3(-393.0572f, -220.20284f, 284.71802f), 956); + index2++; + span342[index2] = new QuestStep(EInteractionType.Interact, 1042800u, new Vector3(-393.0572f, -220.20284f, 284.71802f), 956); obj222.Steps = list342; reference260 = obj222; - ref QuestSequence reference261 = ref span145[11]; + num++; + ref QuestSequence reference261 = ref span328[num]; QuestSequence obj223 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042822u, new Vector3(111.039795f, -10.587426f, 280.38452f), 962); + index2 = 1; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + Span span343 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span343[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042822u, new Vector3(111.039795f, -10.587426f, 280.38452f), 962); obj223.Steps = list343; reference261 = obj223; questRoot36.QuestSequence = list328; @@ -310785,13 +377403,16 @@ public static class AssemblyQuestLoader num = 1; List list344 = new List(num); CollectionsMarshal.SetCount(list344, num); - CollectionsMarshal.AsSpan(list344)[0] = "JerryWester"; + Span span344 = CollectionsMarshal.AsSpan(list344); + index = 0; + span344[index] = "JerryWester"; questRoot37.Author = list344; - num = 5; - List list345 = new List(num); - CollectionsMarshal.SetCount(list345, num); - Span span150 = CollectionsMarshal.AsSpan(list345); - ref QuestSequence reference262 = ref span150[0]; + index = 5; + List list345 = new List(index); + CollectionsMarshal.SetCount(list345, index); + Span span345 = CollectionsMarshal.AsSpan(list345); + num = 0; + ref QuestSequence reference262 = ref span345[num]; QuestSequence obj224 = new QuestSequence { Sequence = 0 @@ -310799,36 +377420,45 @@ public static class AssemblyQuestLoader num2 = 1; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155); + Span span346 = CollectionsMarshal.AsSpan(list346); + index2 = 0; + span346[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155); obj224.Steps = list346; reference262 = obj224; - ref QuestSequence reference263 = ref span150[1]; + num++; + ref QuestSequence reference263 = ref span345[num]; QuestSequence obj225 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - ref QuestStep reference264 = ref CollectionsMarshal.AsSpan(list347)[0]; + index2 = 1; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + Span span347 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + ref QuestStep reference264 = ref span347[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.SinglePlayerDuty, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155); SinglePlayerDutyOptions singlePlayerDutyOptions2 = new SinglePlayerDutyOptions(); num3 = 2; List list348 = new List(num3); CollectionsMarshal.SetCount(list348, num3); - Span span151 = CollectionsMarshal.AsSpan(list348); - span151[0] = "AI doesn't move after starting the instance, so enemies won't be triggered"; - span151[1] = "(First Barrier) If the player is too far south, after being stunned by Vishap's roar, AI doesn't move out of the AOE and dies to the Cauterize"; + Span span348 = CollectionsMarshal.AsSpan(list348); + index3 = 0; + span348[index3] = "AI doesn't move after starting the instance, so enemies won't be triggered"; + index3++; + span348[index3] = "(First Barrier) If the player is too far south, after being stunned by Vishap's roar, AI doesn't move out of the AOE and dies to the Cauterize"; singlePlayerDutyOptions2.Notes = list348; questStep20.SinglePlayerDutyOptions = singlePlayerDutyOptions2; reference264 = questStep20; obj225.Steps = list347; reference263 = obj225; - span150[2] = new QuestSequence + num++; + span345[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference265 = ref span150[3]; + num++; + ref QuestSequence reference265 = ref span345[num]; QuestSequence obj226 = new QuestSequence { Sequence = 3 @@ -310836,28 +377466,34 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.Interact, 1010978u, new Vector3(-157.57996f, 304.1538f, -314.53424f), 155); + Span span349 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + span349[index2] = new QuestStep(EInteractionType.Interact, 1010978u, new Vector3(-157.57996f, 304.1538f, -314.53424f), 155); obj226.Steps = list349; reference265 = obj226; - ref QuestSequence reference266 = ref span150[4]; + num++; + ref QuestSequence reference266 = ref span345[num]; QuestSequence obj227 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - Span span152 = CollectionsMarshal.AsSpan(list350); - span152[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + index2 = 3; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + Span span350 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span350[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span152[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + num2++; + span350[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - span152[2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + num2++; + span350[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); obj227.Steps = list350; reference266 = obj227; questRoot37.QuestSequence = list345; @@ -310867,13 +377503,16 @@ public static class AssemblyQuestLoader num = 1; List list351 = new List(num); CollectionsMarshal.SetCount(list351, num); - CollectionsMarshal.AsSpan(list351)[0] = "liza"; + Span span351 = CollectionsMarshal.AsSpan(list351); + index = 0; + span351[index] = "liza"; questRoot38.Author = list351; - num = 7; - List list352 = new List(num); - CollectionsMarshal.SetCount(list352, num); - Span span153 = CollectionsMarshal.AsSpan(list352); - ref QuestSequence reference267 = ref span153[0]; + index = 7; + List list352 = new List(index); + CollectionsMarshal.SetCount(list352, index); + Span span352 = CollectionsMarshal.AsSpan(list352); + num = 0; + ref QuestSequence reference267 = ref span352[num]; QuestSequence obj228 = new QuestSequence { Sequence = 0 @@ -310881,24 +377520,30 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); + Span span353 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span353[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); obj228.Steps = list353; reference267 = obj228; - ref QuestSequence reference268 = ref span153[1]; + num++; + ref QuestSequence reference268 = ref span352[num]; QuestSequence obj229 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1039655u, new Vector3(-478.29407f, 4.851227f, 22.507019f), 957) + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + Span span354 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span354[num2] = new QuestStep(EInteractionType.Interact, 1039655u, new Vector3(-478.29407f, 4.851227f, 22.507019f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj229.Steps = list354; reference268 = obj229; - ref QuestSequence reference269 = ref span153[2]; + num++; + ref QuestSequence reference269 = ref span352[num]; QuestSequence obj230 = new QuestSequence { Sequence = 2 @@ -310906,25 +377551,31 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.Interact, 1039627u, new Vector3(-270.25262f, 0.07863108f, 605.9204f), 957) + Span span355 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + span355[index2] = new QuestStep(EInteractionType.Interact, 1039627u, new Vector3(-270.25262f, 0.07863108f, 605.9204f), 957) { StopDistance = 5f, TargetTerritoryId = (ushort)1056 }; obj230.Steps = list355; reference269 = obj230; - ref QuestSequence reference270 = ref span153[3]; + num++; + ref QuestSequence reference270 = ref span352[num]; QuestSequence obj231 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list356 = new List(num2); - CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.Interact, 1039663u, new Vector3(110.82617f, -350f, -81.9563f), 1056); + index2 = 1; + List list356 = new List(index2); + CollectionsMarshal.SetCount(list356, index2); + Span span356 = CollectionsMarshal.AsSpan(list356); + num2 = 0; + span356[num2] = new QuestStep(EInteractionType.Interact, 1039663u, new Vector3(110.82617f, -350f, -81.9563f), 1056); obj231.Steps = list356; reference270 = obj231; - ref QuestSequence reference271 = ref span153[4]; + num++; + ref QuestSequence reference271 = ref span352[num]; QuestSequence obj232 = new QuestSequence { Sequence = 4 @@ -310932,34 +377583,42 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - ref QuestStep reference272 = ref CollectionsMarshal.AsSpan(list357)[0]; + Span span357 = CollectionsMarshal.AsSpan(list357); + index2 = 0; + ref QuestStep reference272 = ref span357[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Duty, null, null, 1056); DutyOptions obj233 = new DutyOptions { ContentFinderConditionId = 869u }; - num3 = 1; - List list358 = new List(num3); - CollectionsMarshal.SetCount(list358, num3); - CollectionsMarshal.AsSpan(list358)[0] = "No VBM module"; + index3 = 1; + List list358 = new List(index3); + CollectionsMarshal.SetCount(list358, index3); + Span span358 = CollectionsMarshal.AsSpan(list358); + num3 = 0; + span358[num3] = "No VBM module"; obj233.Notes = list358; questStep21.DutyOptions = obj233; reference272 = questStep21; obj232.Steps = list357; reference271 = obj232; - span153[5] = new QuestSequence + num++; + span352[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference273 = ref span153[6]; + num++; + ref QuestSequence reference273 = ref span352[num]; QuestSequence obj234 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list359 = new List(num2); - CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042063u, new Vector3(-88.51758f, 376.4496f, -158.31238f), 1089) + index2 = 1; + List list359 = new List(index2); + CollectionsMarshal.SetCount(list359, index2); + Span span359 = CollectionsMarshal.AsSpan(list359); + num2 = 0; + span359[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042063u, new Vector3(-88.51758f, 376.4496f, -158.31238f), 1089) { StopDistance = 7f }; @@ -310972,13 +377631,16 @@ public static class AssemblyQuestLoader num = 1; List list360 = new List(num); CollectionsMarshal.SetCount(list360, num); - CollectionsMarshal.AsSpan(list360)[0] = "liza"; + Span span360 = CollectionsMarshal.AsSpan(list360); + index = 0; + span360[index] = "liza"; questRoot39.Author = list360; - num = 5; - List list361 = new List(num); - CollectionsMarshal.SetCount(list361, num); - Span span154 = CollectionsMarshal.AsSpan(list361); - ref QuestSequence reference274 = ref span154[0]; + index = 5; + List list361 = new List(index); + CollectionsMarshal.SetCount(list361, index); + Span span361 = CollectionsMarshal.AsSpan(list361); + num = 0; + ref QuestSequence reference274 = ref span361[num]; QuestSequence obj235 = new QuestSequence { Sequence = 0 @@ -310986,80 +377648,112 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042064u, new Vector3(-83.72626f, 376.38647f, -158.0072f), 1089) + Span span362 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span362[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042064u, new Vector3(-83.72626f, 376.38647f, -158.0072f), 1089) { StopDistance = 7f }; obj235.Steps = list362; reference274 = obj235; - ref QuestSequence reference275 = ref span154[1]; + num++; + ref QuestSequence reference275 = ref span361[num]; QuestSequence obj236 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - Span span155 = CollectionsMarshal.AsSpan(list363); - ref QuestStep reference276 = ref span155[0]; + index2 = 4; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + Span span363 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + ref QuestStep reference276 = ref span363[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1042066u, new Vector3(-48.69159f, 367.85046f, -109.33093f), 1089); num3 = 6; List list364 = new List(num3); CollectionsMarshal.SetCount(list364, num3); - Span span156 = CollectionsMarshal.AsSpan(list364); - span156[0] = null; - span156[1] = null; - span156[2] = null; - span156[3] = null; - span156[4] = null; - span156[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span364 = CollectionsMarshal.AsSpan(list364); + index3 = 0; + span364[index3] = null; + index3++; + span364[index3] = null; + index3++; + span364[index3] = null; + index3++; + span364[index3] = null; + index3++; + span364[index3] = null; + index3++; + span364[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list364; reference276 = questStep22; - ref QuestStep reference277 = ref span155[1]; + num2++; + ref QuestStep reference277 = ref span363[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1043790u, new Vector3(-10.360962f, 359.19916f, -106.70636f), 1089); - num3 = 6; - List list365 = new List(num3); - CollectionsMarshal.SetCount(list365, num3); - Span span157 = CollectionsMarshal.AsSpan(list365); - span157[0] = null; - span157[1] = null; - span157[2] = null; - span157[3] = null; - span157[4] = null; - span157[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list365 = new List(index3); + CollectionsMarshal.SetCount(list365, index3); + Span span365 = CollectionsMarshal.AsSpan(list365); + num3 = 0; + span365[num3] = null; + num3++; + span365[num3] = null; + num3++; + span365[num3] = null; + num3++; + span365[num3] = null; + num3++; + span365[num3] = null; + num3++; + span365[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list365; reference277 = questStep23; - ref QuestStep reference278 = ref span155[2]; + num2++; + ref QuestStep reference278 = ref span363[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1043791u, new Vector3(-9.87262f, 350.62988f, -61.539734f), 1089); num3 = 6; List list366 = new List(num3); CollectionsMarshal.SetCount(list366, num3); - Span span158 = CollectionsMarshal.AsSpan(list366); - span158[0] = null; - span158[1] = null; - span158[2] = null; - span158[3] = null; - span158[4] = null; - span158[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span366 = CollectionsMarshal.AsSpan(list366); + index3 = 0; + span366[index3] = null; + index3++; + span366[index3] = null; + index3++; + span366[index3] = null; + index3++; + span366[index3] = null; + index3++; + span366[index3] = null; + index3++; + span366[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list366; reference278 = questStep24; - ref QuestStep reference279 = ref span155[3]; + num2++; + ref QuestStep reference279 = ref span363[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1043792u, new Vector3(4.043579f, 350.57257f, -49.45453f), 1089); - num3 = 6; - List list367 = new List(num3); - CollectionsMarshal.SetCount(list367, num3); - Span span159 = CollectionsMarshal.AsSpan(list367); - span159[0] = null; - span159[1] = null; - span159[2] = null; - span159[3] = null; - span159[4] = null; - span159[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list367 = new List(index3); + CollectionsMarshal.SetCount(list367, index3); + Span span367 = CollectionsMarshal.AsSpan(list367); + num3 = 0; + span367[num3] = null; + num3++; + span367[num3] = null; + num3++; + span367[num3] = null; + num3++; + span367[num3] = null; + num3++; + span367[num3] = null; + num3++; + span367[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list367; reference279 = questStep25; obj236.Steps = list363; reference275 = obj236; - ref QuestSequence reference280 = ref span154[2]; + num++; + ref QuestSequence reference280 = ref span361[num]; QuestSequence obj237 = new QuestSequence { Sequence = 2 @@ -311067,30 +377761,37 @@ public static class AssemblyQuestLoader num2 = 1; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.Interact, 2013042u, new Vector3(38.071167f, 348.04297f, 4.3792725f), 1089); + Span span368 = CollectionsMarshal.AsSpan(list368); + index2 = 0; + span368[index2] = new QuestStep(EInteractionType.Interact, 2013042u, new Vector3(38.071167f, 348.04297f, 4.3792725f), 1089); obj237.Steps = list368; reference280 = obj237; - ref QuestSequence reference281 = ref span154[3]; + num++; + ref QuestSequence reference281 = ref span361[num]; QuestSequence obj238 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list369 = new List(num2); - CollectionsMarshal.SetCount(list369, num2); - Span span160 = CollectionsMarshal.AsSpan(list369); - span160[0] = new QuestStep(EInteractionType.Interact, 2013115u, new Vector3(14.236633f, 351.27795f, 14.389221f), 1089) + index2 = 3; + List list369 = new List(index2); + CollectionsMarshal.SetCount(list369, index2); + Span span369 = CollectionsMarshal.AsSpan(list369); + num2 = 0; + span369[num2] = new QuestStep(EInteractionType.Interact, 2013115u, new Vector3(14.236633f, 351.27795f, 14.389221f), 1089) { TargetTerritoryId = (ushort)1089 }; - span160[1] = new QuestStep(EInteractionType.Interact, 2013113u, new Vector3(-280.0794f, -716.7621f, 133.95886f), 1089) + num2++; + span369[num2] = new QuestStep(EInteractionType.Interact, 2013113u, new Vector3(-280.0794f, -716.7621f, 133.95886f), 1089) { TargetTerritoryId = (ushort)1089 }; - span160[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.0746f, -718.0001f, 206.78001f), 1089); + num2++; + span369[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.0746f, -718.0001f, 206.78001f), 1089); obj238.Steps = list369; reference281 = obj238; - ref QuestSequence reference282 = ref span154[4]; + num++; + ref QuestSequence reference282 = ref span361[num]; QuestSequence obj239 = new QuestSequence { Sequence = byte.MaxValue @@ -311098,7 +377799,9 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043800u, new Vector3(100.11438f, -718.4441f, 206.77502f), 1089) + Span span370 = CollectionsMarshal.AsSpan(list370); + index2 = 0; + span370[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043800u, new Vector3(100.11438f, -718.4441f, 206.77502f), 1089) { StopDistance = 5f }; @@ -311111,27 +377814,33 @@ public static class AssemblyQuestLoader num = 1; List list371 = new List(num); CollectionsMarshal.SetCount(list371, num); - CollectionsMarshal.AsSpan(list371)[0] = "liza"; + Span span371 = CollectionsMarshal.AsSpan(list371); + index = 0; + span371[index] = "liza"; questRoot40.Author = list371; - num = 5; - List list372 = new List(num); - CollectionsMarshal.SetCount(list372, num); - Span span161 = CollectionsMarshal.AsSpan(list372); - ref QuestSequence reference283 = ref span161[0]; + index = 5; + List list372 = new List(index); + CollectionsMarshal.SetCount(list372, index); + Span span372 = CollectionsMarshal.AsSpan(list372); + num = 0; + ref QuestSequence reference283 = ref span372[num]; QuestSequence obj240 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043802u, new Vector3(103.4104f, -718.33905f, 207.87354f), 1089) + index2 = 1; + List list373 = new List(index2); + CollectionsMarshal.SetCount(list373, index2); + Span span373 = CollectionsMarshal.AsSpan(list373); + num2 = 0; + span373[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043802u, new Vector3(103.4104f, -718.33905f, 207.87354f), 1089) { StopDistance = 7f }; obj240.Steps = list373; reference283 = obj240; - ref QuestSequence reference284 = ref span161[1]; + num++; + ref QuestSequence reference284 = ref span372[num]; QuestSequence obj241 = new QuestSequence { Sequence = 1 @@ -311139,21 +377848,27 @@ public static class AssemblyQuestLoader num2 = 1; List list374 = new List(num2); CollectionsMarshal.SetCount(list374, num2); - CollectionsMarshal.AsSpan(list374)[0] = new QuestStep(EInteractionType.Interact, 1043804u, new Vector3(220.59961f, -699.9556f, 90.01294f), 1089); + Span span374 = CollectionsMarshal.AsSpan(list374); + index2 = 0; + span374[index2] = new QuestStep(EInteractionType.Interact, 1043804u, new Vector3(220.59961f, -699.9556f, 90.01294f), 1089); obj241.Steps = list374; reference284 = obj241; - ref QuestSequence reference285 = ref span161[2]; + num++; + ref QuestSequence reference285 = ref span372[num]; QuestSequence obj242 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list375 = new List(num2); - CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.Interact, 1043806u, new Vector3(217.39526f, -699.9557f, 91.17261f), 1089); + index2 = 1; + List list375 = new List(index2); + CollectionsMarshal.SetCount(list375, index2); + Span span375 = CollectionsMarshal.AsSpan(list375); + num2 = 0; + span375[num2] = new QuestStep(EInteractionType.Interact, 1043806u, new Vector3(217.39526f, -699.9557f, 91.17261f), 1089); obj242.Steps = list375; reference285 = obj242; - ref QuestSequence reference286 = ref span161[3]; + num++; + ref QuestSequence reference286 = ref span372[num]; QuestSequence obj243 = new QuestSequence { Sequence = 3 @@ -311161,12 +377876,14 @@ public static class AssemblyQuestLoader num2 = 2; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - Span span162 = CollectionsMarshal.AsSpan(list376); - span162[0] = new QuestStep(EInteractionType.Interact, 2013112u, new Vector3(259.9318f, -706.408f, 90.01325f), 1089) + Span span376 = CollectionsMarshal.AsSpan(list376); + index2 = 0; + span376[index2] = new QuestStep(EInteractionType.Interact, 2013112u, new Vector3(259.9318f, -706.408f, 90.01325f), 1089) { TargetTerritoryId = (ushort)1089 }; - span162[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1043808u, new Vector3(-1.5107422f, -698.0104f, -150.83551f), 1089) + index2++; + span376[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1043808u, new Vector3(-1.5107422f, -698.0104f, -150.83551f), 1089) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -311175,15 +377892,18 @@ public static class AssemblyQuestLoader }; obj243.Steps = list376; reference286 = obj243; - ref QuestSequence reference287 = ref span161[4]; + num++; + ref QuestSequence reference287 = ref span372[num]; QuestSequence obj244 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043812u, new Vector3(-1.1750488f, -698.0104f, -135.63751f), 1089) + index2 = 1; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + Span span377 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span377[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043812u, new Vector3(-1.1750488f, -698.0104f, -135.63751f), 1089) { StopDistance = 5f }; @@ -311196,13 +377916,16 @@ public static class AssemblyQuestLoader num = 1; List list378 = new List(num); CollectionsMarshal.SetCount(list378, num); - CollectionsMarshal.AsSpan(list378)[0] = "liza"; + Span span378 = CollectionsMarshal.AsSpan(list378); + index = 0; + span378[index] = "liza"; questRoot41.Author = list378; - num = 5; - List list379 = new List(num); - CollectionsMarshal.SetCount(list379, num); - Span span163 = CollectionsMarshal.AsSpan(list379); - ref QuestSequence reference288 = ref span163[0]; + index = 5; + List list379 = new List(index); + CollectionsMarshal.SetCount(list379, index); + Span span379 = CollectionsMarshal.AsSpan(list379); + num = 0; + ref QuestSequence reference288 = ref span379[num]; QuestSequence obj245 = new QuestSequence { Sequence = 0 @@ -311210,70 +377933,96 @@ public static class AssemblyQuestLoader num2 = 1; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043815u, new Vector3(1.7241821f, -698.0104f, -138.1095f), 1089) + Span span380 = CollectionsMarshal.AsSpan(list380); + index2 = 0; + span380[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043815u, new Vector3(1.7241821f, -698.0104f, -138.1095f), 1089) { StopDistance = 5f }; obj245.Steps = list380; reference288 = obj245; - ref QuestSequence reference289 = ref span163[1]; + num++; + ref QuestSequence reference289 = ref span379[num]; QuestSequence obj246 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - Span span164 = CollectionsMarshal.AsSpan(list381); - span164[0] = new QuestStep(EInteractionType.Interact, 2013114u, new Vector3(0.02930583f, -692.6403f, -232.4083f), 1089) + index2 = 4; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + Span span381 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span381[num2] = new QuestStep(EInteractionType.Interact, 2013114u, new Vector3(0.02930583f, -692.6403f, -232.4083f), 1089) { TargetTerritoryId = (ushort)1089 }; - ref QuestStep reference290 = ref span164[1]; + num2++; + ref QuestStep reference290 = ref span381[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1043792u, new Vector3(4.043579f, 350.57257f, -49.45453f), 1089); num3 = 6; List list382 = new List(num3); CollectionsMarshal.SetCount(list382, num3); - Span span165 = CollectionsMarshal.AsSpan(list382); - span165[0] = null; - span165[1] = null; - span165[2] = null; - span165[3] = null; - span165[4] = null; - span165[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span382 = CollectionsMarshal.AsSpan(list382); + index3 = 0; + span382[index3] = null; + index3++; + span382[index3] = null; + index3++; + span382[index3] = null; + index3++; + span382[index3] = null; + index3++; + span382[index3] = null; + index3++; + span382[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list382; reference290 = questStep26; - ref QuestStep reference291 = ref span164[2]; + num2++; + ref QuestStep reference291 = ref span381[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1043791u, new Vector3(-9.87262f, 350.62988f, -61.539734f), 1089); - num3 = 6; - List list383 = new List(num3); - CollectionsMarshal.SetCount(list383, num3); - Span span166 = CollectionsMarshal.AsSpan(list383); - span166[0] = null; - span166[1] = null; - span166[2] = null; - span166[3] = null; - span166[4] = null; - span166[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list383 = new List(index3); + CollectionsMarshal.SetCount(list383, index3); + Span span383 = CollectionsMarshal.AsSpan(list383); + num3 = 0; + span383[num3] = null; + num3++; + span383[num3] = null; + num3++; + span383[num3] = null; + num3++; + span383[num3] = null; + num3++; + span383[num3] = null; + num3++; + span383[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list383; reference291 = questStep27; - ref QuestStep reference292 = ref span164[3]; + num2++; + ref QuestStep reference292 = ref span381[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1043790u, new Vector3(-10.360962f, 359.19916f, -106.70636f), 1089); num3 = 6; List list384 = new List(num3); CollectionsMarshal.SetCount(list384, num3); - Span span167 = CollectionsMarshal.AsSpan(list384); - span167[0] = null; - span167[1] = null; - span167[2] = null; - span167[3] = null; - span167[4] = null; - span167[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span384 = CollectionsMarshal.AsSpan(list384); + index3 = 0; + span384[index3] = null; + index3++; + span384[index3] = null; + index3++; + span384[index3] = null; + index3++; + span384[index3] = null; + index3++; + span384[index3] = null; + index3++; + span384[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep28.CompletionQuestVariablesFlags = list384; reference292 = questStep28; obj246.Steps = list381; reference289 = obj246; - ref QuestSequence reference293 = ref span163[2]; + num++; + ref QuestSequence reference293 = ref span379[num]; QuestSequence obj247 = new QuestSequence { Sequence = 2 @@ -311281,33 +378030,40 @@ public static class AssemblyQuestLoader num2 = 2; List list385 = new List(num2); CollectionsMarshal.SetCount(list385, num2); - Span span168 = CollectionsMarshal.AsSpan(list385); - span168[0] = new QuestStep(EInteractionType.Interact, 2013115u, new Vector3(14.236633f, 351.27795f, 14.389221f), 1089) + Span span385 = CollectionsMarshal.AsSpan(list385); + index2 = 0; + span385[index2] = new QuestStep(EInteractionType.Interact, 2013115u, new Vector3(14.236633f, 351.27795f, 14.389221f), 1089) { TargetTerritoryId = (ushort)1089 }; - span168[1] = new QuestStep(EInteractionType.Interact, 1043814u, new Vector3(0.6866455f, -698.0104f, -139.75745f), 1089); + index2++; + span385[index2] = new QuestStep(EInteractionType.Interact, 1043814u, new Vector3(0.6866455f, -698.0104f, -139.75745f), 1089); obj247.Steps = list385; reference293 = obj247; - ref QuestSequence reference294 = ref span163[3]; + num++; + ref QuestSequence reference294 = ref span379[num]; QuestSequence obj248 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list386 = new List(num2); - CollectionsMarshal.SetCount(list386, num2); - Span span169 = CollectionsMarshal.AsSpan(list386); - span169[0] = new QuestStep(EInteractionType.Interact, 2013114u, new Vector3(0.015197754f, -692.65283f, -232.41016f), 1089) + index2 = 2; + List list386 = new List(index2); + CollectionsMarshal.SetCount(list386, index2); + Span span386 = CollectionsMarshal.AsSpan(list386); + num2 = 0; + span386[num2] = new QuestStep(EInteractionType.Interact, 2013114u, new Vector3(0.015197754f, -692.65283f, -232.41016f), 1089) { TargetTerritoryId = (ushort)1089 }; - ref QuestStep reference295 = ref span169[1]; + num2++; + ref QuestStep reference295 = ref span386[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1043816u, new Vector3(13.595764f, 359.19916f, -110.12439f), 1089); - num3 = 1; - List list387 = new List(num3); - CollectionsMarshal.SetCount(list387, num3); - CollectionsMarshal.AsSpan(list387)[0] = new DialogueChoice + index3 = 1; + List list387 = new List(index3); + CollectionsMarshal.SetCount(list387, index3); + Span span387 = CollectionsMarshal.AsSpan(list387); + num3 = 0; + span387[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI104_04595_SYSTEM_000_322") @@ -311316,7 +378072,8 @@ public static class AssemblyQuestLoader reference295 = questStep29; obj248.Steps = list386; reference294 = obj248; - ref QuestSequence reference296 = ref span163[4]; + num++; + ref QuestSequence reference296 = ref span379[num]; QuestSequence obj249 = new QuestSequence { Sequence = byte.MaxValue @@ -311324,7 +378081,9 @@ public static class AssemblyQuestLoader num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043822u, new Vector3(-30.045044f, -0.50953794f, 33.798706f), 1077) + Span span388 = CollectionsMarshal.AsSpan(list388); + index2 = 0; + span388[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043822u, new Vector3(-30.045044f, -0.50953794f, 33.798706f), 1077) { StopDistance = 5f }; @@ -311337,27 +378096,33 @@ public static class AssemblyQuestLoader num = 1; List list389 = new List(num); CollectionsMarshal.SetCount(list389, num); - CollectionsMarshal.AsSpan(list389)[0] = "liza"; + Span span389 = CollectionsMarshal.AsSpan(list389); + index = 0; + span389[index] = "liza"; questRoot42.Author = list389; - num = 10; - List list390 = new List(num); - CollectionsMarshal.SetCount(list390, num); - Span span170 = CollectionsMarshal.AsSpan(list390); - ref QuestSequence reference297 = ref span170[0]; + index = 10; + List list390 = new List(index); + CollectionsMarshal.SetCount(list390, index); + Span span390 = CollectionsMarshal.AsSpan(list390); + num = 0; + ref QuestSequence reference297 = ref span390[num]; QuestSequence obj250 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list391 = new List(num2); - CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043822u, new Vector3(-30.045044f, -0.50953794f, 33.798706f), 1077) + index2 = 1; + List list391 = new List(index2); + CollectionsMarshal.SetCount(list391, index2); + Span span391 = CollectionsMarshal.AsSpan(list391); + num2 = 0; + span391[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043822u, new Vector3(-30.045044f, -0.50953794f, 33.798706f), 1077) { StopDistance = 5f }; obj250.Steps = list391; reference297 = obj250; - ref QuestSequence reference298 = ref span170[1]; + num++; + ref QuestSequence reference298 = ref span390[num]; QuestSequence obj251 = new QuestSequence { Sequence = 1 @@ -311365,27 +378130,34 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Interact, 1043822u, new Vector3(-30.045044f, -0.50953794f, 33.798706f), 1077) + Span span392 = CollectionsMarshal.AsSpan(list392); + index2 = 0; + span392[index2] = new QuestStep(EInteractionType.Interact, 1043822u, new Vector3(-30.045044f, -0.50953794f, 33.798706f), 1077) { StopDistance = 5f }; obj251.Steps = list392; reference298 = obj251; - ref QuestSequence reference299 = ref span170[2]; + num++; + ref QuestSequence reference299 = ref span390[num]; QuestSequence obj252 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list393 = new List(num2); - CollectionsMarshal.SetCount(list393, num2); - Span span171 = CollectionsMarshal.AsSpan(list393); - span171[0] = new QuestStep(EInteractionType.Interact, 1043829u, new Vector3(-47.257202f, -0.509538f, -22.568176f), 1077); - span171[1] = new QuestStep(EInteractionType.Interact, 1043831u, new Vector3(-12.710815f, -0.50953794f, -49.45453f), 1077); - span171[2] = new QuestStep(EInteractionType.Interact, 1043830u, new Vector3(35.14148f, -0.50953794f, -38.651123f), 1077); + index2 = 3; + List list393 = new List(index2); + CollectionsMarshal.SetCount(list393, index2); + Span span393 = CollectionsMarshal.AsSpan(list393); + num2 = 0; + span393[num2] = new QuestStep(EInteractionType.Interact, 1043829u, new Vector3(-47.257202f, -0.509538f, -22.568176f), 1077); + num2++; + span393[num2] = new QuestStep(EInteractionType.Interact, 1043831u, new Vector3(-12.710815f, -0.50953794f, -49.45453f), 1077); + num2++; + span393[num2] = new QuestStep(EInteractionType.Interact, 1043830u, new Vector3(35.14148f, -0.50953794f, -38.651123f), 1077); obj252.Steps = list393; reference299 = obj252; - ref QuestSequence reference300 = ref span170[3]; + num++; + ref QuestSequence reference300 = ref span390[num]; QuestSequence obj253 = new QuestSequence { Sequence = 3 @@ -311393,24 +378165,30 @@ public static class AssemblyQuestLoader num2 = 1; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.Interact, 1043822u, new Vector3(27.317875f, -0.43000424f, -13.701547f), 1077) + Span span394 = CollectionsMarshal.AsSpan(list394); + index2 = 0; + span394[index2] = new QuestStep(EInteractionType.Interact, 1043822u, new Vector3(27.317875f, -0.43000424f, -13.701547f), 1077) { StopDistance = 0.25f }; obj253.Steps = list394; reference300 = obj253; - ref QuestSequence reference301 = ref span170[4]; + num++; + ref QuestSequence reference301 = ref span390[num]; QuestSequence obj254 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list395 = new List(num2); - CollectionsMarshal.SetCount(list395, num2); - CollectionsMarshal.AsSpan(list395)[0] = new QuestStep(EInteractionType.Interact, 1043822u, new Vector3(28.591307f, -0.43000418f, -12.1619835f), 1077); + index2 = 1; + List list395 = new List(index2); + CollectionsMarshal.SetCount(list395, index2); + Span span395 = CollectionsMarshal.AsSpan(list395); + num2 = 0; + span395[num2] = new QuestStep(EInteractionType.Interact, 1043822u, new Vector3(28.591307f, -0.43000418f, -12.1619835f), 1077); obj254.Steps = list395; reference301 = obj254; - ref QuestSequence reference302 = ref span170[5]; + num++; + ref QuestSequence reference302 = ref span390[num]; QuestSequence obj255 = new QuestSequence { Sequence = 5 @@ -311418,12 +378196,16 @@ public static class AssemblyQuestLoader num2 = 1; List list396 = new List(num2); CollectionsMarshal.SetCount(list396, num2); - ref QuestStep reference303 = ref CollectionsMarshal.AsSpan(list396)[0]; + Span span396 = CollectionsMarshal.AsSpan(list396); + index2 = 0; + ref QuestStep reference303 = ref span396[index2]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1043832u, new Vector3(104.234375f, -0.50953794f, -22.62915f), 1077); num3 = 1; List list397 = new List(num3); CollectionsMarshal.SetCount(list397, num3); - CollectionsMarshal.AsSpan(list397)[0] = new DialogueChoice + Span span397 = CollectionsMarshal.AsSpan(list397); + index3 = 0; + span397[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMI105_04596_Q1_000_000"), @@ -311433,18 +378215,22 @@ public static class AssemblyQuestLoader reference303 = questStep30; obj255.Steps = list396; reference302 = obj255; - ref QuestSequence reference304 = ref span170[6]; + num++; + ref QuestSequence reference304 = ref span390[num]; QuestSequence obj256 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list398 = new List(num2); - CollectionsMarshal.SetCount(list398, num2); - CollectionsMarshal.AsSpan(list398)[0] = new QuestStep(EInteractionType.Interact, 1043833u, new Vector3(61.69214f, -0.40188107f, 46.463623f), 1077); + index2 = 1; + List list398 = new List(index2); + CollectionsMarshal.SetCount(list398, index2); + Span span398 = CollectionsMarshal.AsSpan(list398); + num2 = 0; + span398[num2] = new QuestStep(EInteractionType.Interact, 1043833u, new Vector3(61.69214f, -0.40188107f, 46.463623f), 1077); obj256.Steps = list398; reference304 = obj256; - ref QuestSequence reference305 = ref span170[7]; + num++; + ref QuestSequence reference305 = ref span390[num]; QuestSequence obj257 = new QuestSequence { Sequence = 7 @@ -311452,23 +378238,30 @@ public static class AssemblyQuestLoader num2 = 1; List list399 = new List(num2); CollectionsMarshal.SetCount(list399, num2); - CollectionsMarshal.AsSpan(list399)[0] = new QuestStep(EInteractionType.Interact, 1043834u, new Vector3(56.198975f, 16.517479f, 82.20032f), 1077); + Span span399 = CollectionsMarshal.AsSpan(list399); + index2 = 0; + span399[index2] = new QuestStep(EInteractionType.Interact, 1043834u, new Vector3(56.198975f, 16.517479f, 82.20032f), 1077); obj257.Steps = list399; reference305 = obj257; - ref QuestSequence reference306 = ref span170[8]; + num++; + ref QuestSequence reference306 = ref span390[num]; QuestSequence obj258 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list400 = new List(num2); - CollectionsMarshal.SetCount(list400, num2); - ref QuestStep reference307 = ref CollectionsMarshal.AsSpan(list400)[0]; + index2 = 1; + List list400 = new List(index2); + CollectionsMarshal.SetCount(list400, index2); + Span span400 = CollectionsMarshal.AsSpan(list400); + num2 = 0; + ref QuestStep reference307 = ref span400[num2]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1043835u, new Vector3(134.41675f, 24.30001f, 60.501953f), 1077); - num3 = 1; - List list401 = new List(num3); - CollectionsMarshal.SetCount(list401, num3); - CollectionsMarshal.AsSpan(list401)[0] = new DialogueChoice + index3 = 1; + List list401 = new List(index3); + CollectionsMarshal.SetCount(list401, index3); + Span span401 = CollectionsMarshal.AsSpan(list401); + num3 = 0; + span401[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMI105_04596_Q2_000_000"), @@ -311478,7 +378271,8 @@ public static class AssemblyQuestLoader reference307 = questStep31; obj258.Steps = list400; reference306 = obj258; - ref QuestSequence reference308 = ref span170[9]; + num++; + ref QuestSequence reference308 = ref span390[num]; QuestSequence obj259 = new QuestSequence { Sequence = byte.MaxValue @@ -311486,7 +378280,9 @@ public static class AssemblyQuestLoader num2 = 1; List list402 = new List(num2); CollectionsMarshal.SetCount(list402, num2); - CollectionsMarshal.AsSpan(list402)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043836u, new Vector3(1.0223389f, -0.4f, -68.223145f), 1077) + Span span402 = CollectionsMarshal.AsSpan(list402); + index2 = 0; + span402[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043836u, new Vector3(1.0223389f, -0.4f, -68.223145f), 1077) { StopDistance = 5f }; @@ -311499,21 +378295,26 @@ public static class AssemblyQuestLoader num = 1; List list403 = new List(num); CollectionsMarshal.SetCount(list403, num); - CollectionsMarshal.AsSpan(list403)[0] = "liza"; + Span span403 = CollectionsMarshal.AsSpan(list403); + index = 0; + span403[index] = "liza"; questRoot43.Author = list403; - num = 6; - List list404 = new List(num); - CollectionsMarshal.SetCount(list404, num); - Span span172 = CollectionsMarshal.AsSpan(list404); - ref QuestSequence reference309 = ref span172[0]; + index = 6; + List list404 = new List(index); + CollectionsMarshal.SetCount(list404, index); + Span span404 = CollectionsMarshal.AsSpan(list404); + num = 0; + ref QuestSequence reference309 = ref span404[num]; QuestSequence obj260 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list405 = new List(num2); - CollectionsMarshal.SetCount(list405, num2); - ref QuestStep reference310 = ref CollectionsMarshal.AsSpan(list405)[0]; + index2 = 1; + List list405 = new List(index2); + CollectionsMarshal.SetCount(list405, index2); + Span span405 = CollectionsMarshal.AsSpan(list405); + num2 = 0; + ref QuestStep reference310 = ref span405[num2]; QuestStep obj261 = new QuestStep(EInteractionType.AcceptQuest, 1043839u, new Vector3(-0.25946045f, -0.4f, -70.72565f), 1077) { StopDistance = 7f @@ -311521,7 +378322,9 @@ public static class AssemblyQuestLoader num3 = 1; List list406 = new List(num3); CollectionsMarshal.SetCount(list406, num3); - CollectionsMarshal.AsSpan(list406)[0] = new DialogueChoice + Span span406 = CollectionsMarshal.AsSpan(list406); + index3 = 0; + span406[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMI106_04597_Q1_000_000"), @@ -311531,7 +378334,8 @@ public static class AssemblyQuestLoader reference310 = obj261; obj260.Steps = list405; reference309 = obj260; - ref QuestSequence reference311 = ref span172[1]; + num++; + ref QuestSequence reference311 = ref span404[num]; QuestSequence obj262 = new QuestSequence { Sequence = 1 @@ -311539,12 +378343,16 @@ public static class AssemblyQuestLoader num2 = 1; List list407 = new List(num2); CollectionsMarshal.SetCount(list407, num2); - ref QuestStep reference312 = ref CollectionsMarshal.AsSpan(list407)[0]; + Span span407 = CollectionsMarshal.AsSpan(list407); + index2 = 0; + ref QuestStep reference312 = ref span407[index2]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 2013053u, new Vector3(-0.16790771f, -0.16790771f, -74.87604f), 1077); - num3 = 1; - List list408 = new List(num3); - CollectionsMarshal.SetCount(list408, num3); - CollectionsMarshal.AsSpan(list408)[0] = new DialogueChoice + index3 = 1; + List list408 = new List(index3); + CollectionsMarshal.SetCount(list408, index3); + Span span408 = CollectionsMarshal.AsSpan(list408); + num3 = 0; + span408[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI106_04597_SYSTEM_000_120") @@ -311553,19 +378361,23 @@ public static class AssemblyQuestLoader reference312 = questStep32; obj262.Steps = list407; reference311 = obj262; - span172[2] = new QuestSequence + num++; + span404[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference313 = ref span172[3]; + num++; + ref QuestSequence reference313 = ref span404[num]; QuestSequence obj263 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list409 = new List(num2); - CollectionsMarshal.SetCount(list409, num2); - CollectionsMarshal.AsSpan(list409)[0] = new QuestStep(EInteractionType.Duty, null, null, 1092) + index2 = 1; + List list409 = new List(index2); + CollectionsMarshal.SetCount(list409, index2); + Span span409 = CollectionsMarshal.AsSpan(list409); + num2 = 0; + span409[num2] = new QuestStep(EInteractionType.Duty, null, null, 1092) { DutyOptions = new DutyOptions { @@ -311574,11 +378386,13 @@ public static class AssemblyQuestLoader }; obj263.Steps = list409; reference313 = obj263; - span172[4] = new QuestSequence + num++; + span404[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference314 = ref span172[5]; + num++; + ref QuestSequence reference314 = ref span404[num]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue @@ -311586,7 +378400,9 @@ public static class AssemblyQuestLoader num2 = 1; List list410 = new List(num2); CollectionsMarshal.SetCount(list410, num2); - CollectionsMarshal.AsSpan(list410)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043840u, new Vector3(-29.434692f, -0.21963555f, 52.506226f), 1077) + Span span410 = CollectionsMarshal.AsSpan(list410); + index2 = 0; + span410[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043840u, new Vector3(-29.434692f, -0.21963555f, 52.506226f), 1077) { StopDistance = 5f }; @@ -311599,27 +378415,33 @@ public static class AssemblyQuestLoader num = 1; List list411 = new List(num); CollectionsMarshal.SetCount(list411, num); - CollectionsMarshal.AsSpan(list411)[0] = "liza"; + Span span411 = CollectionsMarshal.AsSpan(list411); + index = 0; + span411[index] = "liza"; questRoot44.Author = list411; - num = 4; - List list412 = new List(num); - CollectionsMarshal.SetCount(list412, num); - Span span173 = CollectionsMarshal.AsSpan(list412); - ref QuestSequence reference315 = ref span173[0]; + index = 4; + List list412 = new List(index); + CollectionsMarshal.SetCount(list412, index); + Span span412 = CollectionsMarshal.AsSpan(list412); + num = 0; + ref QuestSequence reference315 = ref span412[num]; QuestSequence obj265 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - CollectionsMarshal.AsSpan(list413)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043841u, new Vector3(-27.145874f, -0.21963556f, 50.492065f), 1077) + index2 = 1; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + Span span413 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + span413[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043841u, new Vector3(-27.145874f, -0.21963556f, 50.492065f), 1077) { StopDistance = 5f }; obj265.Steps = list413; reference315 = obj265; - ref QuestSequence reference316 = ref span173[1]; + num++; + ref QuestSequence reference316 = ref span412[num]; QuestSequence obj266 = new QuestSequence { Sequence = 1 @@ -311627,23 +378449,30 @@ public static class AssemblyQuestLoader num2 = 1; List list414 = new List(num2); CollectionsMarshal.SetCount(list414, num2); - CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.Interact, 1043844u, new Vector3(-50.736267f, -0.4300005f, -11.795227f), 1077); + Span span414 = CollectionsMarshal.AsSpan(list414); + index2 = 0; + span414[index2] = new QuestStep(EInteractionType.Interact, 1043844u, new Vector3(-50.736267f, -0.4300005f, -11.795227f), 1077); obj266.Steps = list414; reference316 = obj266; - ref QuestSequence reference317 = ref span173[2]; + num++; + ref QuestSequence reference317 = ref span412[num]; QuestSequence obj267 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list415 = new List(num2); - CollectionsMarshal.SetCount(list415, num2); - ref QuestStep reference318 = ref CollectionsMarshal.AsSpan(list415)[0]; + index2 = 1; + List list415 = new List(index2); + CollectionsMarshal.SetCount(list415, index2); + Span span415 = CollectionsMarshal.AsSpan(list415); + num2 = 0; + ref QuestStep reference318 = ref span415[num2]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1043846u, new Vector3(-31.99823f, -0.21963498f, 51.499146f), 1077); num3 = 1; List list416 = new List(num3); CollectionsMarshal.SetCount(list416, num3); - CollectionsMarshal.AsSpan(list416)[0] = new DialogueChoice + Span span416 = CollectionsMarshal.AsSpan(list416); + index3 = 0; + span416[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI107_04598_SYSTEM_000_221") @@ -311652,7 +378481,8 @@ public static class AssemblyQuestLoader reference318 = questStep33; obj267.Steps = list415; reference317 = obj267; - ref QuestSequence reference319 = ref span173[3]; + num++; + ref QuestSequence reference319 = ref span412[num]; QuestSequence obj268 = new QuestSequence { Sequence = byte.MaxValue @@ -311660,12 +378490,16 @@ public static class AssemblyQuestLoader num2 = 1; List list417 = new List(num2); CollectionsMarshal.SetCount(list417, num2); - ref QuestStep reference320 = ref CollectionsMarshal.AsSpan(list417)[0]; + Span span417 = CollectionsMarshal.AsSpan(list417); + index2 = 0; + ref QuestStep reference320 = ref span417[index2]; QuestStep questStep34 = new QuestStep(EInteractionType.CompleteQuest, 1043847u, new Vector3(-350.24036f, 55f, -81.28485f), 963); - num3 = 1; - List list418 = new List(num3); - CollectionsMarshal.SetCount(list418, num3); - CollectionsMarshal.AsSpan(list418)[0] = new DialogueChoice + index3 = 1; + List list418 = new List(index3); + CollectionsMarshal.SetCount(list418, index3); + Span span418 = CollectionsMarshal.AsSpan(list418); + num3 = 0; + span418[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI107_04598_SYSTEM_000_401") @@ -311681,21 +378515,26 @@ public static class AssemblyQuestLoader num = 1; List list419 = new List(num); CollectionsMarshal.SetCount(list419, num); - CollectionsMarshal.AsSpan(list419)[0] = "liza"; + Span span419 = CollectionsMarshal.AsSpan(list419); + index = 0; + span419[index] = "liza"; questRoot45.Author = list419; - num = 9; - List list420 = new List(num); - CollectionsMarshal.SetCount(list420, num); - Span span174 = CollectionsMarshal.AsSpan(list420); - ref QuestSequence reference321 = ref span174[0]; + index = 9; + List list420 = new List(index); + CollectionsMarshal.SetCount(list420, index); + Span span420 = CollectionsMarshal.AsSpan(list420); + num = 0; + ref QuestSequence reference321 = ref span420[num]; QuestSequence obj269 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list421 = new List(num2); - CollectionsMarshal.SetCount(list421, num2); - ref QuestStep reference322 = ref CollectionsMarshal.AsSpan(list421)[0]; + index2 = 1; + List list421 = new List(index2); + CollectionsMarshal.SetCount(list421, index2); + Span span421 = CollectionsMarshal.AsSpan(list421); + num2 = 0; + ref QuestStep reference322 = ref span421[num2]; QuestStep obj270 = new QuestStep(EInteractionType.AcceptQuest, 1043848u, new Vector3(-1.5717163f, 0.008460393f, -1.8463745f), 1078) { StopDistance = 7f @@ -311703,7 +378542,9 @@ public static class AssemblyQuestLoader num3 = 1; List list422 = new List(num3); CollectionsMarshal.SetCount(list422, num3); - CollectionsMarshal.AsSpan(list422)[0] = new DialogueChoice + Span span422 = CollectionsMarshal.AsSpan(list422); + index3 = 0; + span422[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMI108_04599_Q1_000_000"), @@ -311713,7 +378554,8 @@ public static class AssemblyQuestLoader reference322 = obj270; obj269.Steps = list421; reference321 = obj269; - ref QuestSequence reference323 = ref span174[1]; + num++; + ref QuestSequence reference323 = ref span420[num]; QuestSequence obj271 = new QuestSequence { Sequence = 1 @@ -311721,13 +378563,15 @@ public static class AssemblyQuestLoader num2 = 2; List list423 = new List(num2); CollectionsMarshal.SetCount(list423, num2); - Span span175 = CollectionsMarshal.AsSpan(list423); - span175[0] = new QuestStep(EInteractionType.Interact, 2013077u, new Vector3(-0.015319824f, 1.2359009f, 5.3864136f), 1078) + Span span423 = CollectionsMarshal.AsSpan(list423); + index2 = 0; + span423[index2] = new QuestStep(EInteractionType.Interact, 2013077u, new Vector3(-0.015319824f, 1.2359009f, 5.3864136f), 1078) { StopDistance = 4f, TargetTerritoryId = (ushort)963 }; - ref QuestStep reference324 = ref span175[1]; + index2++; + ref QuestStep reference324 = ref span423[index2]; QuestStep obj272 = new QuestStep(EInteractionType.Interact, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) { StopDistance = 5f, @@ -311737,10 +378581,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMehrydesMeyhane } }; - num3 = 1; - List list424 = new List(num3); - CollectionsMarshal.SetCount(list424, num3); - CollectionsMarshal.AsSpan(list424)[0] = new DialogueChoice + index3 = 1; + List list424 = new List(index3); + CollectionsMarshal.SetCount(list424, index3); + Span span424 = CollectionsMarshal.AsSpan(list424); + num3 = 0; + span424[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMI108_04599_Q3_000_000"), @@ -311750,15 +378596,18 @@ public static class AssemblyQuestLoader reference324 = obj272; obj271.Steps = list423; reference323 = obj271; - ref QuestSequence reference325 = ref span174[2]; + num++; + ref QuestSequence reference325 = ref span420[num]; QuestSequence obj273 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list425 = new List(num2); - CollectionsMarshal.SetCount(list425, num2); - ref QuestStep reference326 = ref CollectionsMarshal.AsSpan(list425)[0]; + index2 = 1; + List list425 = new List(index2); + CollectionsMarshal.SetCount(list425, index2); + Span span425 = CollectionsMarshal.AsSpan(list425); + num2 = 0; + ref QuestStep reference326 = ref span425[num2]; QuestStep obj274 = new QuestStep(EInteractionType.Interact, 1043847u, new Vector3(-350.24036f, 55f, -81.28485f), 963) { AethernetShortcut = new AethernetShortcut @@ -311770,7 +378619,9 @@ public static class AssemblyQuestLoader num3 = 1; List list426 = new List(num3); CollectionsMarshal.SetCount(list426, num3); - CollectionsMarshal.AsSpan(list426)[0] = new DialogueChoice + Span span426 = CollectionsMarshal.AsSpan(list426); + index3 = 0; + span426[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI108_04599_SYSTEM_000_211") @@ -311779,7 +378630,8 @@ public static class AssemblyQuestLoader reference326 = obj274; obj273.Steps = list425; reference325 = obj273; - ref QuestSequence reference327 = ref span174[3]; + num++; + ref QuestSequence reference327 = ref span420[num]; QuestSequence obj275 = new QuestSequence { Sequence = 3 @@ -311787,18 +378639,23 @@ public static class AssemblyQuestLoader num2 = 1; List list427 = new List(num2); CollectionsMarshal.SetCount(list427, num2); - CollectionsMarshal.AsSpan(list427)[0] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-353.3227f, 54.999992f, -79.60632f), 963); + Span span427 = CollectionsMarshal.AsSpan(list427); + index2 = 0; + span427[index2] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-353.3227f, 54.999992f, -79.60632f), 963); obj275.Steps = list427; reference327 = obj275; - ref QuestSequence reference328 = ref span174[4]; + num++; + ref QuestSequence reference328 = ref span420[num]; QuestSequence obj276 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list428 = new List(num2); - CollectionsMarshal.SetCount(list428, num2); - CollectionsMarshal.AsSpan(list428)[0] = new QuestStep(EInteractionType.Interact, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963) + index2 = 1; + List list428 = new List(index2); + CollectionsMarshal.SetCount(list428, index2); + Span span428 = CollectionsMarshal.AsSpan(list428); + num2 = 0; + span428[num2] = new QuestStep(EInteractionType.Interact, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963) { AethernetShortcut = new AethernetShortcut { @@ -311808,7 +378665,8 @@ public static class AssemblyQuestLoader }; obj276.Steps = list428; reference328 = obj276; - ref QuestSequence reference329 = ref span174[5]; + num++; + ref QuestSequence reference329 = ref span420[num]; QuestSequence obj277 = new QuestSequence { Sequence = 5 @@ -311816,27 +378674,33 @@ public static class AssemblyQuestLoader num2 = 1; List list429 = new List(num2); CollectionsMarshal.SetCount(list429, num2); - CollectionsMarshal.AsSpan(list429)[0] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-33.52105f, 0.59983087f, -74.57541f), 963) + Span span429 = CollectionsMarshal.AsSpan(list429); + index2 = 0; + span429[index2] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-33.52105f, 0.59983087f, -74.57541f), 963) { StopDistance = 0.25f }; obj277.Steps = list429; reference329 = obj277; - ref QuestSequence reference330 = ref span174[6]; + num++; + ref QuestSequence reference330 = ref span420[num]; QuestSequence obj278 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list430 = new List(num2); - CollectionsMarshal.SetCount(list430, num2); - CollectionsMarshal.AsSpan(list430)[0] = new QuestStep(EInteractionType.Interact, 1037354u, new Vector3(109.33081f, 1.8631814f, -100.1145f), 963) + index2 = 1; + List list430 = new List(index2); + CollectionsMarshal.SetCount(list430, index2); + Span span430 = CollectionsMarshal.AsSpan(list430); + num2 = 0; + span430[num2] = new QuestStep(EInteractionType.Interact, 1037354u, new Vector3(109.33081f, 1.8631814f, -100.1145f), 963) { StopDistance = 7f }; obj278.Steps = list430; reference330 = obj278; - ref QuestSequence reference331 = ref span174[7]; + num++; + ref QuestSequence reference331 = ref span420[num]; QuestSequence obj279 = new QuestSequence { Sequence = 7 @@ -311844,7 +378708,9 @@ public static class AssemblyQuestLoader num2 = 1; List list431 = new List(num2); CollectionsMarshal.SetCount(list431, num2); - CollectionsMarshal.AsSpan(list431)[0] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-159.23143f, 36.051323f, 70.24f), 963) + Span span431 = CollectionsMarshal.AsSpan(list431); + index2 = 0; + span431[index2] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-159.23143f, 36.051323f, 70.24f), 963) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -311855,15 +378721,18 @@ public static class AssemblyQuestLoader }; obj279.Steps = list431; reference331 = obj279; - ref QuestSequence reference332 = ref span174[8]; + num++; + ref QuestSequence reference332 = ref span420[num]; QuestSequence obj280 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list432 = new List(num2); - CollectionsMarshal.SetCount(list432, num2); - CollectionsMarshal.AsSpan(list432)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043857u, new Vector3(-158.15979f, 36.051323f, 67.36853f), 963); + index2 = 1; + List list432 = new List(index2); + CollectionsMarshal.SetCount(list432, index2); + Span span432 = CollectionsMarshal.AsSpan(list432); + num2 = 0; + span432[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043857u, new Vector3(-158.15979f, 36.051323f, 67.36853f), 963); obj280.Steps = list432; reference332 = obj280; questRoot45.QuestSequence = list420; @@ -311877,13 +378746,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -311891,18 +378763,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043858u, new Vector3(-159.89929f, 36.051323f, 67.27698f), 963); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043858u, new Vector3(-159.89929f, 36.051323f, 67.27698f), 963); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1043847u, new Vector3(-350.24036f, 55f, -81.28485f), 963) { AethernetShortcut = new AethernetShortcut @@ -311914,7 +378791,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI109_04600_SYSTEM_000_020") @@ -311923,7 +378802,8 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -311931,7 +378811,9 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) { StopDistance = 5f }; @@ -311944,28 +378826,34 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + Span span7 = CollectionsMarshal.AsSpan(list7); + index = 0; + span7[index] = "liza"; questRoot2.Author = list7; - num = 8; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span2[0]; + index = 8; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span8[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042192u, new Vector3(200.48828f, 567.50006f, 242.78625f), 960) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042192u, new Vector3(200.48828f, 567.50006f, 242.78625f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span2[1]; + num++; + ref QuestSequence reference6 = ref span8[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -311973,37 +378861,45 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1043518u, new Vector3(456.32092f, 437.00073f, 315.69385f), 960) + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.Interact, 1043518u, new Vector3(456.32092f, 437.00073f, 315.69385f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[2]; + num++; + ref QuestSequence reference7 = ref span8[num]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - Span span3 = CollectionsMarshal.AsSpan(list11); - ref QuestStep reference8 = ref span3[0]; + index2 = 2; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference8 = ref span11[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2013076u, new Vector3(456.65674f, 438.04077f, 310.2616f), 960); - num3 = 1; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice + index3 = 1; + List list12 = new List(index3); + CollectionsMarshal.SetCount(list12, index3); + Span span12 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span12[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI001_04601_Q5_000_000") }; questStep.DialogueChoices = list12; reference8 = questStep; - span3[1] = new QuestStep(EInteractionType.Interact, 2013034u, new Vector3(304.37158f, 483.48206f, 143.14478f), 960); + num2++; + span11[num2] = new QuestStep(EInteractionType.Interact, 2013034u, new Vector3(304.37158f, 483.48206f, 143.14478f), 960); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference9 = ref span2[3]; + num++; + ref QuestSequence reference9 = ref span8[num]; QuestSequence obj8 = new QuestSequence { Sequence = 3 @@ -312011,85 +378907,105 @@ public static class AssemblyQuestLoader num2 = 3; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span4 = CollectionsMarshal.AsSpan(list13); - span4[0] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - ref QuestStep reference10 = ref span4[1]; + index2++; + ref QuestStep reference10 = ref span13[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960); num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = new DialogueChoice + Span span14 = CollectionsMarshal.AsSpan(list14); + index3 = 0; + span14[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI001_04601_Q6_000_000") }; questStep2.DialogueChoices = list14; reference10 = questStep2; - span4[2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.50006f, 246.72314f), 960); + index2++; + span13[index2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.50006f, 246.72314f), 960); obj8.Steps = list13; reference9 = obj8; - ref QuestSequence reference11 = ref span2[4]; + num++; + ref QuestSequence reference11 = ref span8[num]; QuestSequence obj9 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref QuestStep reference12 = ref span5[0]; + index2 = 5; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + ref QuestStep reference12 = ref span15[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span16[num3] = EExtendedClassJob.Miner; questStep3.RequiredQuestAcceptedJob = list16; num3 = 1; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - CollectionsMarshal.AsSpan(list17)[0] = new GatheredItem + Span span17 = CollectionsMarshal.AsSpan(list17); + index3 = 0; + span17[index3] = new GatheredItem { ItemId = 38276u, ItemCount = 3 }; questStep3.ItemsToGather = list17; reference12 = questStep3; - ref QuestStep reference13 = ref span5[1]; + num2++; + ref QuestStep reference13 = ref span15[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list18 = new List(index3); + CollectionsMarshal.SetCount(list18, index3); + Span span18 = CollectionsMarshal.AsSpan(list18); + num3 = 0; + span18[num3] = EExtendedClassJob.Botanist; questStep4.RequiredQuestAcceptedJob = list18; num3 = 1; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - CollectionsMarshal.AsSpan(list19)[0] = new GatheredItem + Span span19 = CollectionsMarshal.AsSpan(list19); + index3 = 0; + span19[index3] = new GatheredItem { ItemId = 38300u, ItemCount = 3 }; questStep4.ItemsToGather = list19; reference13 = questStep4; - ref QuestStep reference14 = ref span5[2]; + num2++; + ref QuestStep reference14 = ref span15[num2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - CollectionsMarshal.AsSpan(list20)[0] = new DialogueChoice + index3 = 1; + List list20 = new List(index3); + CollectionsMarshal.SetCount(list20, index3); + Span span20 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + span20[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI001_04601_Q5_000_000") }; obj10.DialogueChoices = list20; reference14 = obj10; - ref QuestStep reference15 = ref span5[3]; + num2++; + ref QuestStep reference15 = ref span15[num2]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 @@ -312097,17 +379013,21 @@ public static class AssemblyQuestLoader num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = new DialogueChoice + Span span21 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span21[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI001_04601_Q6_000_000") }; obj11.DialogueChoices = list21; reference15 = obj11; - span5[4] = new QuestStep(EInteractionType.Interact, 1044190u, new Vector3(203.84521f, 567.50006f, 246.87573f), 960); + num2++; + span15[num2] = new QuestStep(EInteractionType.Interact, 1044190u, new Vector3(203.84521f, 567.50006f, 246.87573f), 960); obj9.Steps = list15; reference11 = obj9; - ref QuestSequence reference16 = ref span2[5]; + num++; + ref QuestSequence reference16 = ref span8[num]; QuestSequence obj12 = new QuestSequence { Sequence = 5 @@ -312115,34 +379035,42 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span6 = CollectionsMarshal.AsSpan(list22); - ref QuestStep reference17 = ref span6[0]; + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref QuestStep reference17 = ref span22[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960); - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = new DialogueChoice + index3 = 1; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + Span span23 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span23[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI001_04601_Q5_000_000") }; questStep5.DialogueChoices = list23; reference17 = questStep5; - span6[1] = new QuestStep(EInteractionType.Interact, 1043514u, new Vector3(303.82227f, 481.99442f, 154.83325f), 960); + index2++; + span22[index2] = new QuestStep(EInteractionType.Interact, 1043514u, new Vector3(303.82227f, 481.99442f, 154.83325f), 960); obj12.Steps = list22; reference16 = obj12; - ref QuestSequence reference18 = ref span2[6]; + num++; + ref QuestSequence reference18 = ref span8[num]; QuestSequence obj13 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1043521u, new Vector3(3.3721924f, 499.6105f, 34.195435f), 1073); + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.Interact, 1043521u, new Vector3(3.3721924f, 499.6105f, 34.195435f), 1073); obj13.Steps = list24; reference18 = obj13; - ref QuestSequence reference19 = ref span2[7]; + num++; + ref QuestSequence reference19 = ref span8[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -312150,12 +379078,14 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span7 = CollectionsMarshal.AsSpan(list25); - span7[0] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - span7[1] = new QuestStep(EInteractionType.CompleteQuest, 1043514u, new Vector3(303.82227f, 481.99442f, 154.83325f), 960); + index2++; + span25[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043514u, new Vector3(303.82227f, 481.99442f, 154.83325f), 960); obj14.Steps = list25; reference19 = obj14; questRoot2.QuestSequence = list8; @@ -312165,24 +379095,30 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "plogon_enjoyer"; + Span span26 = CollectionsMarshal.AsSpan(list26); + index = 0; + span26[index] = "plogon_enjoyer"; questRoot3.Author = list26; - num = 9; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span8 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span8[0]; + index = 9; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + Span span27 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span27[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj15.Steps = list28; reference20 = obj15; - ref QuestSequence reference21 = ref span8[1]; + num++; + ref QuestSequence reference21 = ref span27[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -312190,8 +379126,9 @@ public static class AssemblyQuestLoader num2 = 2; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span9 = CollectionsMarshal.AsSpan(list29); - ref QuestStep reference22 = ref span9[0]; + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + ref QuestStep reference22 = ref span29[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { Mount = true @@ -312199,38 +379136,45 @@ public static class AssemblyQuestLoader num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = new DialogueChoice + Span span30 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span30[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI002_04602_Q5_000_000") }; obj17.DialogueChoices = list30; reference22 = obj17; - span9[1] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + index2++; + span29[index2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj16.Steps = list29; reference21 = obj16; - ref QuestSequence reference23 = ref span8[2]; + num++; + ref QuestSequence reference23 = ref span27[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span10 = CollectionsMarshal.AsSpan(list31); - span10[0] = new QuestStep(EInteractionType.Interact, 2012484u, new Vector3(492.48486f, 438.04077f, 365.43823f), 960) + index2 = 2; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.Interact, 2012484u, new Vector3(492.48486f, 438.04077f, 365.43823f), 960) { TargetTerritoryId = (ushort)960, Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span10[1] = new QuestStep(EInteractionType.Interact, 1043527u, new Vector3(463.5537f, 417.06747f, 407.12585f), 960); + num2++; + span31[num2] = new QuestStep(EInteractionType.Interact, 1043527u, new Vector3(463.5537f, 417.06747f, 407.12585f), 960); obj18.Steps = list31; reference23 = obj18; - ref QuestSequence reference24 = ref span8[3]; + num++; + ref QuestSequence reference24 = ref span27[num]; QuestSequence obj19 = new QuestSequence { Sequence = 3 @@ -312238,36 +379182,43 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span11 = CollectionsMarshal.AsSpan(list32); - span11[0] = new QuestStep(EInteractionType.Interact, 2012485u, new Vector3(469.3828f, 418.14294f, 403.3722f), 960) + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.Interact, 2012485u, new Vector3(469.3828f, 418.14294f, 403.3722f), 960) { TargetTerritoryId = (ushort)960 }; - span11[1] = new QuestStep(EInteractionType.Interact, 1043529u, new Vector3(504.90576f, 436.9996f, 341.5122f), 960) + index2++; + span32[index2] = new QuestStep(EInteractionType.Interact, 1043529u, new Vector3(504.90576f, 436.9996f, 341.5122f), 960) { Mount = true }; - span11[2] = new QuestStep(EInteractionType.Interact, 1043530u, new Vector3(475.0896f, 437.00183f, 319.53918f), 960) + index2++; + span32[index2] = new QuestStep(EInteractionType.Interact, 1043530u, new Vector3(475.0896f, 437.00183f, 319.53918f), 960) { Mount = true }; obj19.Steps = list32; reference24 = obj19; - ref QuestSequence reference25 = ref span8[4]; + num++; + ref QuestSequence reference25 = ref span27[num]; QuestSequence obj20 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1043531u, new Vector3(502.49475f, 436.99988f, 324.84924f), 960) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.Interact, 1043531u, new Vector3(502.49475f, 436.99988f, 324.84924f), 960) { Mount = true }; obj20.Steps = list33; reference25 = obj20; - ref QuestSequence reference26 = ref span8[5]; + num++; + ref QuestSequence reference26 = ref span27[num]; QuestSequence obj21 = new QuestSequence { Sequence = 5 @@ -312275,28 +379226,34 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1043533u, new Vector3(77.3479f, 269.00006f, -607.72107f), 960) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.Interact, 1043533u, new Vector3(77.3479f, 269.00006f, -607.72107f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj21.Steps = list34; reference26 = obj21; - ref QuestSequence reference27 = ref span8[6]; + num++; + ref QuestSequence reference27 = ref span27[num]; QuestSequence obj22 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1043537u, new Vector3(-321.24823f, 263.2611f, -523.7049f), 960) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.Interact, 1043537u, new Vector3(-321.24823f, 263.2611f, -523.7049f), 960) { Fly = true }; obj22.Steps = list35; reference27 = obj22; - ref QuestSequence reference28 = ref span8[7]; + num++; + ref QuestSequence reference28 = ref span27[num]; QuestSequence obj23 = new QuestSequence { Sequence = 7 @@ -312304,83 +379261,101 @@ public static class AssemblyQuestLoader num2 = 5; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span12 = CollectionsMarshal.AsSpan(list36); - ref QuestStep reference29 = ref span12[0]; + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + ref QuestStep reference29 = ref span36[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list37 = new List(index3); + CollectionsMarshal.SetCount(list37, index3); + Span span37 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span37[num3] = EExtendedClassJob.Miner; questStep6.RequiredQuestAcceptedJob = list37; num3 = 1; List list38 = new List(num3); CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new GatheredItem + Span span38 = CollectionsMarshal.AsSpan(list38); + index3 = 0; + span38[index3] = new GatheredItem { ItemId = 38277u, ItemCount = 3 }; questStep6.ItemsToGather = list38; reference29 = questStep6; - ref QuestStep reference30 = ref span12[1]; + index2++; + ref QuestStep reference30 = ref span36[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list39 = new List(index3); + CollectionsMarshal.SetCount(list39, index3); + Span span39 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + span39[num3] = EExtendedClassJob.Botanist; questStep7.RequiredQuestAcceptedJob = list39; num3 = 1; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = new GatheredItem + Span span40 = CollectionsMarshal.AsSpan(list40); + index3 = 0; + span40[index3] = new GatheredItem { ItemId = 38301u, ItemCount = 3 }; questStep7.ItemsToGather = list40; reference30 = questStep7; - span12[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2++; + span36[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span12[3] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + index2++; + span36[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - span12[4] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) + index2++; + span36[index2] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) { Fly = true }; obj23.Steps = list36; reference28 = obj23; - ref QuestSequence reference31 = ref span8[8]; + num++; + ref QuestSequence reference31 = ref span27[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span13 = CollectionsMarshal.AsSpan(list41); - ref QuestStep reference32 = ref span13[0]; + index2 = 2; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + ref QuestStep reference32 = ref span41[num2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { Fly = true }; - num3 = 1; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - CollectionsMarshal.AsSpan(list42)[0] = new DialogueChoice + index3 = 1; + List list42 = new List(index3); + CollectionsMarshal.SetCount(list42, index3); + Span span42 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span42[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI002_04602_Q2_000_000") }; obj25.DialogueChoices = list42; reference32 = obj25; - span13[1] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + num2++; + span41[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj24.Steps = list41; reference31 = obj24; questRoot3.QuestSequence = list27; @@ -312390,13 +379365,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "plogon_enjoyer"; + Span span43 = CollectionsMarshal.AsSpan(list43); + index = 0; + span43[index] = "plogon_enjoyer"; questRoot4.Author = list43; - num = 8; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span14 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference33 = ref span14[0]; + index = 8; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + Span span44 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference33 = ref span44[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -312404,19 +379382,23 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj26.Steps = list45; reference33 = obj26; - ref QuestSequence reference34 = ref span14[1]; + num++; + ref QuestSequence reference34 = ref span44[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - Span span15 = CollectionsMarshal.AsSpan(list46); - ref QuestStep reference35 = ref span15[0]; + index2 = 2; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + ref QuestStep reference35 = ref span46[num2]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { Mount = true @@ -312424,20 +379406,24 @@ public static class AssemblyQuestLoader num3 = 1; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new DialogueChoice + Span span47 = CollectionsMarshal.AsSpan(list47); + index3 = 0; + span47[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI003_04603_Q9_000_000") }; obj28.DialogueChoices = list47; reference35 = obj28; - span15[1] = new QuestStep(EInteractionType.Interact, 1043539u, new Vector3(205.92041f, 566f, 257.2517f), 960) + num2++; + span46[num2] = new QuestStep(EInteractionType.Interact, 1043539u, new Vector3(205.92041f, 566f, 257.2517f), 960) { Fly = true }; obj27.Steps = list46; reference34 = obj27; - ref QuestSequence reference36 = ref span14[2]; + num++; + ref QuestSequence reference36 = ref span44[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -312445,33 +379431,39 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1043547u, new Vector3(110.30737f, 269.03677f, -626.7338f), 960) + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.Interact, 1043547u, new Vector3(110.30737f, 269.03677f, -626.7338f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj29.Steps = list48; reference36 = obj29; - ref QuestSequence reference37 = ref span14[3]; + num++; + ref QuestSequence reference37 = ref span44[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span16 = CollectionsMarshal.AsSpan(list49); - span16[0] = new QuestStep(EInteractionType.Interact, 1043552u, new Vector3(103.837524f, 269.41934f, -514.6105f), 960) + index2 = 2; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.Interact, 1043552u, new Vector3(103.837524f, 269.41934f, -514.6105f), 960) { Fly = true }; - span16[1] = new QuestStep(EInteractionType.Interact, 1043549u, new Vector3(46.219482f, 269.597f, -474.60138f), 960) + num2++; + span49[num2] = new QuestStep(EInteractionType.Interact, 1043549u, new Vector3(46.219482f, 269.597f, -474.60138f), 960) { Fly = true }; obj30.Steps = list49; reference37 = obj30; - ref QuestSequence reference38 = ref span14[4]; + num++; + ref QuestSequence reference38 = ref span44[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -312479,29 +379471,36 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1043547u, new Vector3(110.30737f, 269.03677f, -626.7338f), 960) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.Interact, 1043547u, new Vector3(110.30737f, 269.03677f, -626.7338f), 960) { Fly = true }; obj31.Steps = list50; reference38 = obj31; - ref QuestSequence reference39 = ref span14[5]; + num++; + ref QuestSequence reference39 = ref span44[num]; QuestSequence obj32 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list51)[0]; + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + ref QuestStep reference40 = ref span51[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1043549u, new Vector3(46.219482f, 269.597f, -474.60138f), 960) { Fly = true }; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice + index3 = 1; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span52[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI003_04603_Q2_000_000") @@ -312510,7 +379509,8 @@ public static class AssemblyQuestLoader reference40 = obj33; obj32.Steps = list51; reference39 = obj32; - ref QuestSequence reference41 = ref span14[6]; + num++; + ref QuestSequence reference41 = ref span44[num]; QuestSequence obj34 = new QuestSequence { Sequence = 6 @@ -312518,68 +379518,83 @@ public static class AssemblyQuestLoader num2 = 5; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span17 = CollectionsMarshal.AsSpan(list53); - ref QuestStep reference42 = ref span17[0]; + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + ref QuestStep reference42 = ref span53[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Gather, null, null, 960); num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - CollectionsMarshal.AsSpan(list54)[0] = EExtendedClassJob.Miner; + Span span54 = CollectionsMarshal.AsSpan(list54); + index3 = 0; + span54[index3] = EExtendedClassJob.Miner; questStep8.RequiredQuestAcceptedJob = list54; - num3 = 1; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = new GatheredItem + index3 = 1; + List list55 = new List(index3); + CollectionsMarshal.SetCount(list55, index3); + Span span55 = CollectionsMarshal.AsSpan(list55); + num3 = 0; + span55[num3] = new GatheredItem { ItemId = 38278u, ItemCount = 3 }; questStep8.ItemsToGather = list55; reference42 = questStep8; - ref QuestStep reference43 = ref span17[1]; + index2++; + ref QuestStep reference43 = ref span53[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 960); num3 = 1; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = EExtendedClassJob.Botanist; + Span span56 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span56[index3] = EExtendedClassJob.Botanist; questStep9.RequiredQuestAcceptedJob = list56; - num3 = 1; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - CollectionsMarshal.AsSpan(list57)[0] = new GatheredItem + index3 = 1; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + Span span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span57[num3] = new GatheredItem { ItemId = 38302u, ItemCount = 3 }; questStep9.ItemsToGather = list57; reference43 = questStep9; - span17[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2++; + span53[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span17[3] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + index2++; + span53[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - span17[4] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) + index2++; + span53[index2] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) { Fly = true }; obj34.Steps = list53; reference41 = obj34; - ref QuestSequence reference44 = ref span14[7]; + num++; + ref QuestSequence reference44 = ref span44[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - Span span18 = CollectionsMarshal.AsSpan(list58); - ref QuestStep reference45 = ref span18[0]; + index2 = 2; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + ref QuestStep reference45 = ref span58[num2]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { Fly = true @@ -312587,14 +379602,17 @@ public static class AssemblyQuestLoader num3 = 1; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = new DialogueChoice + Span span59 = CollectionsMarshal.AsSpan(list59); + index3 = 0; + span59[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI003_04603_Q8_000_000") }; obj36.DialogueChoices = list59; reference45 = obj36; - span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + num2++; + span58[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj35.Steps = list58; reference44 = obj35; questRoot4.QuestSequence = list44; @@ -312604,13 +379622,16 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "plogon_enjoyer"; + Span span60 = CollectionsMarshal.AsSpan(list60); + index = 0; + span60[index] = "plogon_enjoyer"; questRoot5.Author = list60; - num = 6; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span19 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference46 = ref span19[0]; + index = 6; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference46 = ref span61[num]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -312618,41 +379639,49 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj37.Steps = list62; reference46 = obj37; - ref QuestSequence reference47 = ref span19[1]; + num++; + ref QuestSequence reference47 = ref span61[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span20 = CollectionsMarshal.AsSpan(list63); - ref QuestStep reference48 = ref span20[0]; + index2 = 2; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference48 = ref span63[num2]; QuestStep obj39 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Mount = true }; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice + index3 = 1; + List list64 = new List(index3); + CollectionsMarshal.SetCount(list64, index3); + Span span64 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span64[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI004_04604_Q5_000_000") }; obj39.DialogueChoices = list64; reference48 = obj39; - span20[1] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + num2++; + span63[num2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj38.Steps = list63; reference47 = obj38; - ref QuestSequence reference49 = ref span19[2]; + num++; + ref QuestSequence reference49 = ref span61[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -312660,29 +379689,35 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1043559u, new Vector3(-573.3883f, 73.033104f, 212.78699f), 960) + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.Interact, 1043559u, new Vector3(-573.3883f, 73.033104f, 212.78699f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; obj40.Steps = list65; reference49 = obj40; - ref QuestSequence reference50 = ref span19[3]; + num++; + ref QuestSequence reference50 = ref span61[num]; QuestSequence obj41 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj41.Steps = list66; reference50 = obj41; - ref QuestSequence reference51 = ref span19[4]; + num++; + ref QuestSequence reference51 = ref span61[num]; QuestSequence obj42 = new QuestSequence { Sequence = 4 @@ -312690,42 +379725,53 @@ public static class AssemblyQuestLoader num2 = 5; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span21 = CollectionsMarshal.AsSpan(list67); - ref QuestStep reference52 = ref span21[0]; + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + ref QuestStep reference52 = ref span67[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Gather, null, null, 398); num3 = 1; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = EExtendedClassJob.Miner; + Span span68 = CollectionsMarshal.AsSpan(list68); + index3 = 0; + span68[index3] = EExtendedClassJob.Miner; questStep10.RequiredQuestAcceptedJob = list68; - num3 = 1; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = new GatheredItem + index3 = 1; + List list69 = new List(index3); + CollectionsMarshal.SetCount(list69, index3); + Span span69 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span69[num3] = new GatheredItem { ItemId = 38279u, ItemCount = 3 }; questStep10.ItemsToGather = list69; reference52 = questStep10; - ref QuestStep reference53 = ref span21[1]; + index2++; + ref QuestStep reference53 = ref span67[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 398); num3 = 1; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = EExtendedClassJob.Botanist; + Span span70 = CollectionsMarshal.AsSpan(list70); + index3 = 0; + span70[index3] = EExtendedClassJob.Botanist; questStep11.RequiredQuestAcceptedJob = list70; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new GatheredItem + index3 = 1; + List list71 = new List(index3); + CollectionsMarshal.SetCount(list71, index3); + Span span71 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span71[num3] = new GatheredItem { ItemId = 38303u, ItemCount = 3 }; questStep11.ItemsToGather = list71; reference53 = questStep11; - span21[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2++; + span67[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, @@ -312738,27 +379784,31 @@ public static class AssemblyQuestLoader } } }; - span21[3] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + index2++; + span67[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - span21[4] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) + index2++; + span67[index2] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) { Fly = true }; obj42.Steps = list67; reference51 = obj42; - ref QuestSequence reference54 = ref span19[5]; + num++; + ref QuestSequence reference54 = ref span61[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span22 = CollectionsMarshal.AsSpan(list72); - ref QuestStep reference55 = ref span22[0]; + index2 = 2; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + ref QuestStep reference55 = ref span72[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { TargetTerritoryId = (ushort)960, @@ -312767,14 +379817,17 @@ public static class AssemblyQuestLoader num3 = 1; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = new DialogueChoice + Span span73 = CollectionsMarshal.AsSpan(list73); + index3 = 0; + span73[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI004_04604_Q4_000_000") }; obj44.DialogueChoices = list73; reference55 = obj44; - span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + num2++; + span72[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj43.Steps = list72; reference54 = obj43; questRoot5.QuestSequence = list61; @@ -312784,13 +379837,16 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "plogon_enjoyer"; + Span span74 = CollectionsMarshal.AsSpan(list74); + index = 0; + span74[index] = "plogon_enjoyer"; questRoot6.Author = list74; - num = 8; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span23 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference56 = ref span23[0]; + index = 8; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + Span span75 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference56 = ref span75[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -312798,40 +379854,48 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj45.Steps = list76; reference56 = obj45; - ref QuestSequence reference57 = ref span23[1]; + num++; + ref QuestSequence reference57 = ref span75[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - Span span24 = CollectionsMarshal.AsSpan(list77); - ref QuestStep reference58 = ref span24[0]; + index2 = 2; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + ref QuestStep reference58 = ref span77[num2]; QuestStep obj47 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 }; - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new DialogueChoice + index3 = 1; + List list78 = new List(index3); + CollectionsMarshal.SetCount(list78, index3); + Span span78 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span78[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI005_04605_Q5_000_000") }; obj47.DialogueChoices = list78; reference58 = obj47; - span24[1] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + num2++; + span77[num2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj46.Steps = list77; reference57 = obj46; - ref QuestSequence reference59 = ref span23[2]; + num++; + ref QuestSequence reference59 = ref span75[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -312839,33 +379903,39 @@ public static class AssemblyQuestLoader num2 = 2; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span25 = CollectionsMarshal.AsSpan(list79); - span25[0] = new QuestStep(EInteractionType.Interact, 1043530u, new Vector3(475.0896f, 437.00183f, 319.53918f), 960) + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.Interact, 1043530u, new Vector3(475.0896f, 437.00183f, 319.53918f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span25[1] = new QuestStep(EInteractionType.Interact, 1043529u, new Vector3(504.90576f, 436.9996f, 341.5122f), 960) + index2++; + span79[index2] = new QuestStep(EInteractionType.Interact, 1043529u, new Vector3(504.90576f, 436.9996f, 341.5122f), 960) { Fly = true }; obj48.Steps = list79; reference59 = obj48; - ref QuestSequence reference60 = ref span23[3]; + num++; + ref QuestSequence reference60 = ref span75[num]; QuestSequence obj49 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1043584u, new Vector3(803.7993f, 478.7742f, 200.73242f), 960) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.Interact, 1043584u, new Vector3(803.7993f, 478.7742f, 200.73242f), 960) { Fly = true }; obj49.Steps = list80; reference60 = obj49; - ref QuestSequence reference61 = ref span23[4]; + num++; + ref QuestSequence reference61 = ref span75[num]; QuestSequence obj50 = new QuestSequence { Sequence = 4 @@ -312873,36 +379943,43 @@ public static class AssemblyQuestLoader num2 = 3; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span26 = CollectionsMarshal.AsSpan(list81); - span26[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span26[1] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + index2++; + span81[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - span26[2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + index2++; + span81[index2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj50.Steps = list81; reference61 = obj50; - ref QuestSequence reference62 = ref span23[5]; + num++; + ref QuestSequence reference62 = ref span75[num]; QuestSequence obj51 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 2013033u, new Vector3(203.50952f, 567.4983f, 244.2511f), 960); + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.Interact, 2013033u, new Vector3(203.50952f, 567.4983f, 244.2511f), 960); obj51.Steps = list82; reference62 = obj51; - ref QuestSequence reference63 = ref span23[6]; + num++; + ref QuestSequence reference63 = ref span75[num]; QuestSequence obj52 = new QuestSequence { Sequence = 6 @@ -312910,68 +379987,83 @@ public static class AssemblyQuestLoader num2 = 5; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span27 = CollectionsMarshal.AsSpan(list83); - ref QuestStep reference64 = ref span27[0]; + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + ref QuestStep reference64 = ref span83[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Gather, null, null, 1073); num3 = 1; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - CollectionsMarshal.AsSpan(list84)[0] = EExtendedClassJob.Miner; + Span span84 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span84[index3] = EExtendedClassJob.Miner; questStep12.RequiredQuestAcceptedJob = list84; - num3 = 1; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = new GatheredItem + index3 = 1; + List list85 = new List(index3); + CollectionsMarshal.SetCount(list85, index3); + Span span85 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span85[num3] = new GatheredItem { ItemId = 38280u, ItemCount = 3 }; questStep12.ItemsToGather = list85; reference64 = questStep12; - ref QuestStep reference65 = ref span27[1]; + index2++; + ref QuestStep reference65 = ref span83[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Gather, null, null, 1073); num3 = 1; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = EExtendedClassJob.Botanist; + Span span86 = CollectionsMarshal.AsSpan(list86); + index3 = 0; + span86[index3] = EExtendedClassJob.Botanist; questStep13.RequiredQuestAcceptedJob = list86; - num3 = 1; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - CollectionsMarshal.AsSpan(list87)[0] = new GatheredItem + index3 = 1; + List list87 = new List(index3); + CollectionsMarshal.SetCount(list87, index3); + Span span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = new GatheredItem { ItemId = 38304u, ItemCount = 3 }; questStep13.ItemsToGather = list87; reference65 = questStep13; - span27[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2++; + span83[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span27[3] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + index2++; + span83[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - span27[4] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + index2++; + span83[index2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj52.Steps = list83; reference63 = obj52; - ref QuestSequence reference66 = ref span23[7]; + num++; + ref QuestSequence reference66 = ref span75[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - Span span28 = CollectionsMarshal.AsSpan(list88); - ref QuestStep reference67 = ref span28[0]; + index2 = 2; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + ref QuestStep reference67 = ref span88[num2]; QuestStep obj54 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { TargetTerritoryId = (ushort)960, @@ -312980,14 +380072,17 @@ public static class AssemblyQuestLoader num3 = 1; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - CollectionsMarshal.AsSpan(list89)[0] = new DialogueChoice + Span span89 = CollectionsMarshal.AsSpan(list89); + index3 = 0; + span89[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI005_04605_Q6_000_000") }; obj54.DialogueChoices = list89; reference67 = obj54; - span28[1] = new QuestStep(EInteractionType.CompleteQuest, 1043515u, new Vector3(303.39502f, 481.99442f, 152.81909f), 960); + num2++; + span88[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043515u, new Vector3(303.39502f, 481.99442f, 152.81909f), 960); obj53.Steps = list88; reference66 = obj53; questRoot6.QuestSequence = list75; @@ -312997,13 +380092,16 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "plogon_enjoyer"; + Span span90 = CollectionsMarshal.AsSpan(list90); + index = 0; + span90[index] = "plogon_enjoyer"; questRoot7.Author = list90; - num = 5; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span29 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference68 = ref span29[0]; + index = 5; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + Span span91 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference68 = ref span91[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -313011,40 +380109,48 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj55.Steps = list92; reference68 = obj55; - ref QuestSequence reference69 = ref span29[1]; + num++; + ref QuestSequence reference69 = ref span91[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span30 = CollectionsMarshal.AsSpan(list93); - ref QuestStep reference70 = ref span30[0]; + index2 = 2; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + ref QuestStep reference70 = ref span93[num2]; QuestStep obj57 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 }; - num3 = 1; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = new DialogueChoice + index3 = 1; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + Span span94 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span94[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI006_04606_Q5_000_000") }; obj57.DialogueChoices = list94; reference70 = obj57; - span30[1] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + num2++; + span93[num2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj56.Steps = list93; reference69 = obj56; - ref QuestSequence reference71 = ref span29[2]; + num++; + ref QuestSequence reference71 = ref span91[num]; QuestSequence obj58 = new QuestSequence { Sequence = 2 @@ -313052,25 +380158,33 @@ public static class AssemblyQuestLoader num2 = 4; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span31 = CollectionsMarshal.AsSpan(list95); - span31[0] = new QuestStep(EInteractionType.Interact, 1043424u, new Vector3(197.07019f, 567.49976f, 246.23486f), 960); - span31[1] = new QuestStep(EInteractionType.Interact, 1043423u, new Vector3(200.67139f, 567.4998f, 236.10278f), 960); - span31[2] = new QuestStep(EInteractionType.Interact, 1043592u, new Vector3(206.43921f, 567.49976f, 236.89624f), 960); - span31[3] = new QuestStep(EInteractionType.Interact, 1043593u, new Vector3(218.4939f, 565.99994f, 247.18079f), 960); + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.Interact, 1043424u, new Vector3(197.07019f, 567.49976f, 246.23486f), 960); + index2++; + span95[index2] = new QuestStep(EInteractionType.Interact, 1043423u, new Vector3(200.67139f, 567.4998f, 236.10278f), 960); + index2++; + span95[index2] = new QuestStep(EInteractionType.Interact, 1043592u, new Vector3(206.43921f, 567.49976f, 236.89624f), 960); + index2++; + span95[index2] = new QuestStep(EInteractionType.Interact, 1043593u, new Vector3(218.4939f, 565.99994f, 247.18079f), 960); obj58.Steps = list95; reference71 = obj58; - ref QuestSequence reference72 = ref span29[3]; + num++; + ref QuestSequence reference72 = ref span91[num]; QuestSequence obj59 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960); + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960); obj59.Steps = list96; reference72 = obj59; - ref QuestSequence reference73 = ref span29[4]; + num++; + ref QuestSequence reference73 = ref span91[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -313078,8 +380192,9 @@ public static class AssemblyQuestLoader num2 = 2; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span32 = CollectionsMarshal.AsSpan(list97); - ref QuestStep reference74 = ref span32[0]; + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + ref QuestStep reference74 = ref span97[index2]; QuestStep obj61 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { TargetTerritoryId = (ushort)960, @@ -313088,14 +380203,17 @@ public static class AssemblyQuestLoader num3 = 1; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = new DialogueChoice + Span span98 = CollectionsMarshal.AsSpan(list98); + index3 = 0; + span98[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI006_04606_Q6_000_000") }; obj61.DialogueChoices = list98; reference74 = obj61; - span32[1] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + index2++; + span97[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj60.Steps = list97; reference73 = obj60; questRoot7.QuestSequence = list91; @@ -313105,24 +380223,30 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; + Span span99 = CollectionsMarshal.AsSpan(list99); + index = 0; + span99[index] = "liza"; questRoot8.Author = list99; - num = 3; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span33 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference75 = ref span33[0]; + index = 3; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + Span span100 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference75 = ref span100[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj62.Steps = list101; reference75 = obj62; - ref QuestSequence reference76 = ref span33[1]; + num++; + ref QuestSequence reference76 = ref span100[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -313130,61 +380254,75 @@ public static class AssemblyQuestLoader num2 = 3; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span34 = CollectionsMarshal.AsSpan(list102); - ref QuestStep reference77 = ref span34[0]; + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + ref QuestStep reference77 = ref span102[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list103 = new List(index3); + CollectionsMarshal.SetCount(list103, index3); + Span span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span103[num3] = EExtendedClassJob.Miner; questStep14.RequiredQuestAcceptedJob = list103; num3 = 1; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new GatheredItem + Span span104 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span104[index3] = new GatheredItem { ItemId = 38281u, ItemCount = 3 }; questStep14.ItemsToGather = list104; reference77 = questStep14; - ref QuestStep reference78 = ref span34[1]; + index2++; + ref QuestStep reference78 = ref span102[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - CollectionsMarshal.AsSpan(list105)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list105 = new List(index3); + CollectionsMarshal.SetCount(list105, index3); + Span span105 = CollectionsMarshal.AsSpan(list105); + num3 = 0; + span105[num3] = EExtendedClassJob.Botanist; questStep15.RequiredQuestAcceptedJob = list105; num3 = 1; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = new GatheredItem + Span span106 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span106[index3] = new GatheredItem { ItemId = 38305u, ItemCount = 3 }; questStep15.ItemsToGather = list106; reference78 = questStep15; - span34[2] = new QuestStep(EInteractionType.Interact, 1044042u, new Vector3(507.0725f, 436.99997f, 340.07776f), 960) + index2++; + span102[index2] = new QuestStep(EInteractionType.Interact, 1044042u, new Vector3(507.0725f, 436.99997f, 340.07776f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj63.Steps = list102; reference76 = obj63; - ref QuestSequence reference79 = ref span33[2]; + num++; + ref QuestSequence reference79 = ref span100[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - Span span35 = CollectionsMarshal.AsSpan(list107); - span35[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960 }; - span35[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span107[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj64.Steps = list107; reference79 = obj64; questRoot8.QuestSequence = list100; @@ -313194,13 +380332,16 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; + Span span108 = CollectionsMarshal.AsSpan(list108); + index = 0; + span108[index] = "liza"; questRoot9.Author = list108; - num = 3; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span36 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference80 = ref span36[0]; + index = 3; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + Span span109 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference80 = ref span109[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -313208,23 +380349,28 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj65.Steps = list110; reference80 = obj65; - ref QuestSequence reference81 = ref span36[1]; + num++; + ref QuestSequence reference81 = ref span109[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span37 = CollectionsMarshal.AsSpan(list111); - span37[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + index2 = 3; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference82 = ref span37[1]; + num2++; + ref QuestStep reference82 = ref span111[num2]; QuestStep obj67 = new QuestStep(EInteractionType.Say, 1044043u, new Vector3(-7.1260376f, 498.9474f, -5.416992f), 1073) { ChatMessage = new ChatMessage @@ -313232,19 +380378,26 @@ public static class AssemblyQuestLoader Key = "TEXT_BANOMI102_04608_SAYTODO_000_050" } }; - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span38 = CollectionsMarshal.AsSpan(list112); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + Span span112 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj67.CompletionQuestVariablesFlags = list112; reference82 = obj67; - ref QuestStep reference83 = ref span37[2]; + num2++; + ref QuestStep reference83 = ref span111[num2]; QuestStep obj68 = new QuestStep(EInteractionType.Say, 1044044u, new Vector3(11.215393f, 499.7763f, -23.239563f), 1073) { ChatMessage = new ChatMessage @@ -313255,18 +380408,25 @@ public static class AssemblyQuestLoader num3 = 6; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - Span span39 = CollectionsMarshal.AsSpan(list113); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span113 = CollectionsMarshal.AsSpan(list113); + index3 = 0; + span113[index3] = null; + index3++; + span113[index3] = null; + index3++; + span113[index3] = null; + index3++; + span113[index3] = null; + index3++; + span113[index3] = null; + index3++; + span113[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj68.CompletionQuestVariablesFlags = list113; reference83 = obj68; obj66.Steps = list111; reference81 = obj66; - ref QuestSequence reference84 = ref span36[2]; + num++; + ref QuestSequence reference84 = ref span109[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -313274,12 +380434,14 @@ public static class AssemblyQuestLoader num2 = 2; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span40 = CollectionsMarshal.AsSpan(list114); - span40[0] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - span40[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span114[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj69.Steps = list114; reference84 = obj69; questRoot9.QuestSequence = list109; @@ -313289,24 +380451,30 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "liza"; + Span span115 = CollectionsMarshal.AsSpan(list115); + index = 0; + span115[index] = "liza"; questRoot10.Author = list115; - num = 2; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span41 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference85 = ref span41[0]; + index = 2; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + Span span116 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference85 = ref span116[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj70.Steps = list117; reference85 = obj70; - ref QuestSequence reference86 = ref span41[1]; + num++; + ref QuestSequence reference86 = ref span116[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -313314,47 +380482,59 @@ public static class AssemblyQuestLoader num2 = 4; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span42 = CollectionsMarshal.AsSpan(list118); - ref QuestStep reference87 = ref span42[0]; + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + ref QuestStep reference87 = ref span118[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list119 = new List(index3); + CollectionsMarshal.SetCount(list119, index3); + Span span119 = CollectionsMarshal.AsSpan(list119); + num3 = 0; + span119[num3] = EExtendedClassJob.Miner; questStep16.RequiredQuestAcceptedJob = list119; num3 = 1; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - CollectionsMarshal.AsSpan(list120)[0] = new GatheredItem + Span span120 = CollectionsMarshal.AsSpan(list120); + index3 = 0; + span120[index3] = new GatheredItem { ItemId = 38282u, ItemCount = 3 }; questStep16.ItemsToGather = list120; reference87 = questStep16; - ref QuestStep reference88 = ref span42[1]; + index2++; + ref QuestStep reference88 = ref span118[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + Span span121 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span121[num3] = EExtendedClassJob.Botanist; questStep17.RequiredQuestAcceptedJob = list121; num3 = 1; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - CollectionsMarshal.AsSpan(list122)[0] = new GatheredItem + Span span122 = CollectionsMarshal.AsSpan(list122); + index3 = 0; + span122[index3] = new GatheredItem { ItemId = 38306u, ItemCount = 3 }; questStep17.ItemsToGather = list122; reference88 = questStep17; - span42[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2++; + span118[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span42[3] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span118[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj71.Steps = list118; reference86 = obj71; questRoot10.QuestSequence = list116; @@ -313364,24 +380544,30 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; + Span span123 = CollectionsMarshal.AsSpan(list123); + index = 0; + span123[index] = "liza"; questRoot11.Author = list123; - num = 3; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span43 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference89 = ref span43[0]; + index = 3; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + Span span124 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference89 = ref span124[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span125[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj72.Steps = list125; reference89 = obj72; - ref QuestSequence reference90 = ref span43[1]; + num++; + ref QuestSequence reference90 = ref span124[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -313389,8 +380575,9 @@ public static class AssemblyQuestLoader num2 = 3; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span44 = CollectionsMarshal.AsSpan(list126); - ref QuestStep reference91 = ref span44[0]; + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + ref QuestStep reference91 = ref span126[index2]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 1044046u, new Vector3(-585.3514f, 74.4431f, 238.33057f), 960) { StopDistance = 9f, @@ -313403,37 +380590,52 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List> list127 = new List>(num3); - CollectionsMarshal.SetCount(list127, num3); - Span> span45 = CollectionsMarshal.AsSpan(list127); - span45[0] = null; - span45[1] = null; - ref List reference92 = ref span45[2]; + index3 = 6; + List> list127 = new List>(index3); + CollectionsMarshal.SetCount(list127, index3); + Span> span127 = CollectionsMarshal.AsSpan(list127); + num3 = 0; + span127[num3] = null; + num3++; + span127[num3] = null; + num3++; + ref List reference92 = ref span127[num3]; int num4 = 2; List list128 = new List(num4); CollectionsMarshal.SetCount(list128, num4); - Span span46 = CollectionsMarshal.AsSpan(list128); - span46[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span46[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + Span span128 = CollectionsMarshal.AsSpan(list128); + int num5 = 0; + span128[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num5++; + span128[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference92 = list128; - span45[3] = null; - span45[4] = null; - span45[5] = null; + num3++; + span127[num3] = null; + num3++; + span127[num3] = null; + num3++; + span127[num3] = null; obj74.RequiredQuestVariables = list127; num3 = 6; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span47 = CollectionsMarshal.AsSpan(list129); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span129 = CollectionsMarshal.AsSpan(list129); + index3 = 0; + span129[index3] = null; + index3++; + span129[index3] = null; + index3++; + span129[index3] = null; + index3++; + span129[index3] = null; + index3++; + span129[index3] = null; + index3++; + span129[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj74.CompletionQuestVariablesFlags = list129; reference91 = obj74; - ref QuestStep reference93 = ref span44[1]; + index2++; + ref QuestStep reference93 = ref span126[index2]; QuestStep obj75 = new QuestStep(EInteractionType.Interact, 1044047u, new Vector3(36.66736f, 269.16718f, -627.83246f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa, @@ -313445,83 +380647,114 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List> list130 = new List>(num3); - CollectionsMarshal.SetCount(list130, num3); - Span> span48 = CollectionsMarshal.AsSpan(list130); - span48[0] = null; - span48[1] = null; - ref List reference94 = ref span48[2]; - num4 = 2; - List list131 = new List(num4); - CollectionsMarshal.SetCount(list131, num4); - Span span49 = CollectionsMarshal.AsSpan(list131); - span49[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - span49[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3 = 6; + List> list130 = new List>(index3); + CollectionsMarshal.SetCount(list130, index3); + Span> span130 = CollectionsMarshal.AsSpan(list130); + num3 = 0; + span130[num3] = null; + num3++; + span130[num3] = null; + num3++; + ref List reference94 = ref span130[num3]; + num5 = 2; + List list131 = new List(num5); + CollectionsMarshal.SetCount(list131, num5); + Span span131 = CollectionsMarshal.AsSpan(list131); + num4 = 0; + span131[num4] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num4++; + span131[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference94 = list131; - span48[3] = null; - span48[4] = null; - span48[5] = null; + num3++; + span130[num3] = null; + num3++; + span130[num3] = null; + num3++; + span130[num3] = null; obj75.RequiredQuestVariables = list130; num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span50 = CollectionsMarshal.AsSpan(list132); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span132 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj75.CompletionQuestVariablesFlags = list132; reference93 = obj75; - ref QuestStep reference95 = ref span44[2]; + index2++; + ref QuestStep reference95 = ref span126[index2]; QuestStep obj76 = new QuestStep(EInteractionType.Interact, 1044045u, new Vector3(510.64307f, 436.9999f, 332.41772f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - num3 = 6; - List> list133 = new List>(num3); - CollectionsMarshal.SetCount(list133, num3); - Span> span51 = CollectionsMarshal.AsSpan(list133); - span51[0] = null; - span51[1] = null; - ref List reference96 = ref span51[2]; + index3 = 6; + List> list133 = new List>(index3); + CollectionsMarshal.SetCount(list133, index3); + Span> span133 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + ref List reference96 = ref span133[num3]; num4 = 2; List list134 = new List(num4); CollectionsMarshal.SetCount(list134, num4); - Span span52 = CollectionsMarshal.AsSpan(list134); - span52[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); - span52[1] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + Span span134 = CollectionsMarshal.AsSpan(list134); + num5 = 0; + span134[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num5++; + span134[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference96 = list134; - span51[3] = null; - span51[4] = null; - span51[5] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = null; obj76.RequiredQuestVariables = list133; num3 = 6; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - Span span53 = CollectionsMarshal.AsSpan(list135); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span135 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj76.CompletionQuestVariablesFlags = list135; reference95 = obj76; obj73.Steps = list126; reference90 = obj73; - ref QuestSequence reference97 = ref span43[2]; + num++; + ref QuestSequence reference97 = ref span124[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span54 = CollectionsMarshal.AsSpan(list136); - span54[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron, @@ -313538,7 +380771,8 @@ public static class AssemblyQuestLoader } } }; - span54[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span136[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj77.Steps = list136; reference97 = obj77; questRoot11.QuestSequence = list124; @@ -313548,13 +380782,16 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "plogon_enjoyer"; + Span span137 = CollectionsMarshal.AsSpan(list137); + index = 0; + span137[index] = "plogon_enjoyer"; questRoot12.Author = list137; - num = 3; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span55 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference98 = ref span55[0]; + index = 3; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + Span span138 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference98 = ref span138[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 @@ -313562,68 +380799,86 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj78.Steps = list139; reference98 = obj78; - ref QuestSequence reference99 = ref span55[1]; + num++; + ref QuestSequence reference99 = ref span138[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - Span span56 = CollectionsMarshal.AsSpan(list140); - span56[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + index2 = 6; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference100 = ref span56[1]; + num2++; + ref QuestStep reference100 = ref span140[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - CollectionsMarshal.AsSpan(list141)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list141 = new List(index3); + CollectionsMarshal.SetCount(list141, index3); + Span span141 = CollectionsMarshal.AsSpan(list141); + num3 = 0; + span141[num3] = EExtendedClassJob.Miner; questStep18.RequiredQuestAcceptedJob = list141; num3 = 1; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - CollectionsMarshal.AsSpan(list142)[0] = new GatheredItem + Span span142 = CollectionsMarshal.AsSpan(list142); + index3 = 0; + span142[index3] = new GatheredItem { ItemId = 38284u, ItemCount = 3 }; questStep18.ItemsToGather = list142; reference100 = questStep18; - ref QuestStep reference101 = ref span56[2]; + num2++; + ref QuestStep reference101 = ref span140[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - CollectionsMarshal.AsSpan(list143)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list143 = new List(index3); + CollectionsMarshal.SetCount(list143, index3); + Span span143 = CollectionsMarshal.AsSpan(list143); + num3 = 0; + span143[num3] = EExtendedClassJob.Botanist; questStep19.RequiredQuestAcceptedJob = list143; num3 = 1; List list144 = new List(num3); CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new GatheredItem + Span span144 = CollectionsMarshal.AsSpan(list144); + index3 = 0; + span144[index3] = new GatheredItem { ItemId = 38308u, ItemCount = 3 }; questStep19.ItemsToGather = list144; reference101 = questStep19; - span56[3] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + num2++; + span140[num2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - span56[4] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + num2++; + span140[num2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 }; - span56[5] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960); + num2++; + span140[num2] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960); obj79.Steps = list140; reference99 = obj79; - ref QuestSequence reference102 = ref span55[2]; + num++; + ref QuestSequence reference102 = ref span138[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue @@ -313631,12 +380886,14 @@ public static class AssemblyQuestLoader num2 = 2; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span57 = CollectionsMarshal.AsSpan(list145); - span57[0] = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { TargetTerritoryId = (ushort)960 }; - span57[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span145[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj80.Steps = list145; reference102 = obj80; questRoot12.QuestSequence = list138; @@ -313646,24 +380903,30 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "liza"; + Span span146 = CollectionsMarshal.AsSpan(list146); + index = 0; + span146[index] = "liza"; questRoot13.Author = list146; - num = 2; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span58 = CollectionsMarshal.AsSpan(list147); - ref QuestSequence reference103 = ref span58[0]; + index = 2; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + Span span147 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference103 = ref span147[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj81.Steps = list148; reference103 = obj81; - ref QuestSequence reference104 = ref span58[1]; + num++; + ref QuestSequence reference104 = ref span147[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue @@ -313671,47 +380934,59 @@ public static class AssemblyQuestLoader num2 = 4; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span59 = CollectionsMarshal.AsSpan(list149); - ref QuestStep reference105 = ref span59[0]; + Span span149 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + ref QuestStep reference105 = ref span149[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list150 = new List(index3); + CollectionsMarshal.SetCount(list150, index3); + Span span150 = CollectionsMarshal.AsSpan(list150); + num3 = 0; + span150[num3] = EExtendedClassJob.Miner; questStep20.RequiredQuestAcceptedJob = list150; num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = new GatheredItem + Span span151 = CollectionsMarshal.AsSpan(list151); + index3 = 0; + span151[index3] = new GatheredItem { ItemId = 38283u, ItemCount = 3 }; questStep20.ItemsToGather = list151; reference105 = questStep20; - ref QuestStep reference106 = ref span59[1]; + index2++; + ref QuestStep reference106 = ref span149[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + Span span152 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span152[num3] = EExtendedClassJob.Botanist; questStep21.RequiredQuestAcceptedJob = list152; num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = new GatheredItem + Span span153 = CollectionsMarshal.AsSpan(list153); + index3 = 0; + span153[index3] = new GatheredItem { ItemId = 38307u, ItemCount = 3 }; questStep21.ItemsToGather = list153; reference106 = questStep21; - span59[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2++; + span149[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span59[3] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span149[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj82.Steps = list149; reference104 = obj82; questRoot13.QuestSequence = list147; @@ -313721,24 +380996,30 @@ public static class AssemblyQuestLoader num = 1; List list154 = new List(num); CollectionsMarshal.SetCount(list154, num); - CollectionsMarshal.AsSpan(list154)[0] = "liza"; + Span span154 = CollectionsMarshal.AsSpan(list154); + index = 0; + span154[index] = "liza"; questRoot14.Author = list154; - num = 3; - List list155 = new List(num); - CollectionsMarshal.SetCount(list155, num); - Span span60 = CollectionsMarshal.AsSpan(list155); - ref QuestSequence reference107 = ref span60[0]; + index = 3; + List list155 = new List(index); + CollectionsMarshal.SetCount(list155, index); + Span span155 = CollectionsMarshal.AsSpan(list155); + num = 0; + ref QuestSequence reference107 = ref span155[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj83.Steps = list156; reference107 = obj83; - ref QuestSequence reference108 = ref span60[1]; + num++; + ref QuestSequence reference108 = ref span155[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 @@ -313746,26 +381027,34 @@ public static class AssemblyQuestLoader num2 = 2; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span61 = CollectionsMarshal.AsSpan(list157); - ref QuestStep reference109 = ref span61[0]; + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + ref QuestStep reference109 = ref span157[index2]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 1044048u, new Vector3(-347.70734f, 263.0844f, -463.73694f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; - num3 = 6; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - Span span62 = CollectionsMarshal.AsSpan(list158); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list158 = new List(index3); + CollectionsMarshal.SetCount(list158, index3); + Span span158 = CollectionsMarshal.AsSpan(list158); + num3 = 0; + span158[num3] = null; + num3++; + span158[num3] = null; + num3++; + span158[num3] = null; + num3++; + span158[num3] = null; + num3++; + span158[num3] = null; + num3++; + span158[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj85.CompletionQuestVariablesFlags = list158; reference109 = obj85; - ref QuestStep reference110 = ref span61[1]; + index2++; + ref QuestStep reference110 = ref span157[index2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 1044049u, new Vector3(-376.21124f, 266.08542f, -551.90356f), 960) { Fly = true @@ -313773,32 +381062,41 @@ public static class AssemblyQuestLoader num3 = 6; List list159 = new List(num3); CollectionsMarshal.SetCount(list159, num3); - Span span63 = CollectionsMarshal.AsSpan(list159); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span159 = CollectionsMarshal.AsSpan(list159); + index3 = 0; + span159[index3] = null; + index3++; + span159[index3] = null; + index3++; + span159[index3] = null; + index3++; + span159[index3] = null; + index3++; + span159[index3] = null; + index3++; + span159[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj86.CompletionQuestVariablesFlags = list159; reference110 = obj86; obj84.Steps = list157; reference108 = obj84; - ref QuestSequence reference111 = ref span60[2]; + num++; + ref QuestSequence reference111 = ref span155[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span64 = CollectionsMarshal.AsSpan(list160); - span64[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span64[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span160[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj87.Steps = list160; reference111 = obj87; questRoot14.QuestSequence = list155; @@ -313808,13 +381106,16 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "plogon_enjoyer"; + Span span161 = CollectionsMarshal.AsSpan(list161); + index = 0; + span161[index] = "plogon_enjoyer"; questRoot15.Author = list161; - num = 3; - List list162 = new List(num); - CollectionsMarshal.SetCount(list162, num); - Span span65 = CollectionsMarshal.AsSpan(list162); - ref QuestSequence reference112 = ref span65[0]; + index = 3; + List list162 = new List(index); + CollectionsMarshal.SetCount(list162, index); + Span span162 = CollectionsMarshal.AsSpan(list162); + num = 0; + ref QuestSequence reference112 = ref span162[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -313822,64 +381123,80 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span163[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj88.Steps = list163; reference112 = obj88; - ref QuestSequence reference113 = ref span65[1]; + num++; + ref QuestSequence reference113 = ref span162[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - Span span66 = CollectionsMarshal.AsSpan(list164); - span66[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + index2 = 4; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference114 = ref span66[1]; + num2++; + ref QuestStep reference114 = ref span164[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - CollectionsMarshal.AsSpan(list165)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list165 = new List(index3); + CollectionsMarshal.SetCount(list165, index3); + Span span165 = CollectionsMarshal.AsSpan(list165); + num3 = 0; + span165[num3] = EExtendedClassJob.Miner; questStep22.RequiredQuestAcceptedJob = list165; num3 = 1; List list166 = new List(num3); CollectionsMarshal.SetCount(list166, num3); - CollectionsMarshal.AsSpan(list166)[0] = new GatheredItem + Span span166 = CollectionsMarshal.AsSpan(list166); + index3 = 0; + span166[index3] = new GatheredItem { ItemId = 38285u, ItemCount = 3 }; questStep22.ItemsToGather = list166; reference114 = questStep22; - ref QuestStep reference115 = ref span66[2]; + num2++; + ref QuestStep reference115 = ref span164[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list167 = new List(num3); - CollectionsMarshal.SetCount(list167, num3); - CollectionsMarshal.AsSpan(list167)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list167 = new List(index3); + CollectionsMarshal.SetCount(list167, index3); + Span span167 = CollectionsMarshal.AsSpan(list167); + num3 = 0; + span167[num3] = EExtendedClassJob.Botanist; questStep23.RequiredQuestAcceptedJob = list167; num3 = 1; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - CollectionsMarshal.AsSpan(list168)[0] = new GatheredItem + Span span168 = CollectionsMarshal.AsSpan(list168); + index3 = 0; + span168[index3] = new GatheredItem { ItemId = 38309u, ItemCount = 3 }; questStep23.ItemsToGather = list168; reference115 = questStep23; - span66[3] = new QuestStep(EInteractionType.Interact, 1044050u, new Vector3(472.03772f, 437.00162f, 336.6598f), 960) + num2++; + span164[num2] = new QuestStep(EInteractionType.Interact, 1044050u, new Vector3(472.03772f, 437.00162f, 336.6598f), 960) { Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj89.Steps = list164; reference113 = obj89; - ref QuestSequence reference116 = ref span65[2]; + num++; + ref QuestSequence reference116 = ref span162[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -313887,13 +381204,15 @@ public static class AssemblyQuestLoader num2 = 2; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span67 = CollectionsMarshal.AsSpan(list169); - span67[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true }; - span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span169[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj90.Steps = list169; reference116 = obj90; questRoot15.QuestSequence = list162; @@ -313903,24 +381222,30 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "plogon_enjoyer"; + Span span170 = CollectionsMarshal.AsSpan(list170); + index = 0; + span170[index] = "plogon_enjoyer"; questRoot16.Author = list170; - num = 2; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - Span span68 = CollectionsMarshal.AsSpan(list171); - ref QuestSequence reference117 = ref span68[0]; + index = 2; + List list171 = new List(index); + CollectionsMarshal.SetCount(list171, index); + Span span171 = CollectionsMarshal.AsSpan(list171); + num = 0; + ref QuestSequence reference117 = ref span171[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span172[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj91.Steps = list172; reference117 = obj91; - ref QuestSequence reference118 = ref span68[1]; + num++; + ref QuestSequence reference118 = ref span171[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -313928,48 +381253,60 @@ public static class AssemblyQuestLoader num2 = 4; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span69 = CollectionsMarshal.AsSpan(list173); - ref QuestStep reference119 = ref span69[0]; + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + ref QuestStep reference119 = ref span173[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - CollectionsMarshal.AsSpan(list174)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list174 = new List(index3); + CollectionsMarshal.SetCount(list174, index3); + Span span174 = CollectionsMarshal.AsSpan(list174); + num3 = 0; + span174[num3] = EExtendedClassJob.Miner; questStep24.RequiredQuestAcceptedJob = list174; num3 = 1; List list175 = new List(num3); CollectionsMarshal.SetCount(list175, num3); - CollectionsMarshal.AsSpan(list175)[0] = new GatheredItem + Span span175 = CollectionsMarshal.AsSpan(list175); + index3 = 0; + span175[index3] = new GatheredItem { ItemId = 38286u, ItemCount = 3 }; questStep24.ItemsToGather = list175; reference119 = questStep24; - ref QuestStep reference120 = ref span69[1]; + index2++; + ref QuestStep reference120 = ref span173[index2]; QuestStep questStep25 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list176 = new List(index3); + CollectionsMarshal.SetCount(list176, index3); + Span span176 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span176[num3] = EExtendedClassJob.Botanist; questStep25.RequiredQuestAcceptedJob = list176; num3 = 1; List list177 = new List(num3); CollectionsMarshal.SetCount(list177, num3); - CollectionsMarshal.AsSpan(list177)[0] = new GatheredItem + Span span177 = CollectionsMarshal.AsSpan(list177); + index3 = 0; + span177[index3] = new GatheredItem { ItemId = 38310u, ItemCount = 3 }; questStep25.ItemsToGather = list177; reference120 = questStep25; - span69[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2++; + span173[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span69[3] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span173[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj92.Steps = list173; reference118 = obj92; questRoot16.QuestSequence = list171; @@ -313979,24 +381316,30 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - CollectionsMarshal.AsSpan(list178)[0] = "plogon_enjoyer"; + Span span178 = CollectionsMarshal.AsSpan(list178); + index = 0; + span178[index] = "plogon_enjoyer"; questRoot17.Author = list178; - num = 3; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span70 = CollectionsMarshal.AsSpan(list179); - ref QuestSequence reference121 = ref span70[0]; + index = 3; + List list179 = new List(index); + CollectionsMarshal.SetCount(list179, index); + Span span179 = CollectionsMarshal.AsSpan(list179); + num = 0; + ref QuestSequence reference121 = ref span179[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj93.Steps = list180; reference121 = obj93; - ref QuestSequence reference122 = ref span70[1]; + num++; + ref QuestSequence reference122 = ref span179[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -314004,8 +381347,9 @@ public static class AssemblyQuestLoader num2 = 6; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span71 = CollectionsMarshal.AsSpan(list181); - ref QuestStep reference123 = ref span71[0]; + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + ref QuestStep reference123 = ref span181[index2]; QuestStep obj95 = new QuestStep(EInteractionType.Interact, 1044051u, new Vector3(-543.20593f, 72.39467f, 298.146f), 960) { Fly = true, @@ -314018,24 +381362,33 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List> list182 = new List>(num3); - CollectionsMarshal.SetCount(list182, num3); - Span> span72 = CollectionsMarshal.AsSpan(list182); - span72[0] = null; - span72[1] = null; - span72[2] = null; - ref List reference124 = ref span72[3]; - num4 = 1; - List list183 = new List(num4); - CollectionsMarshal.SetCount(list183, num4); - CollectionsMarshal.AsSpan(list183)[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3 = 6; + List> list182 = new List>(index3); + CollectionsMarshal.SetCount(list182, index3); + Span> span182 = CollectionsMarshal.AsSpan(list182); + num3 = 0; + span182[num3] = null; + num3++; + span182[num3] = null; + num3++; + span182[num3] = null; + num3++; + ref List reference124 = ref span182[num3]; + num5 = 1; + List list183 = new List(num5); + CollectionsMarshal.SetCount(list183, num5); + Span span183 = CollectionsMarshal.AsSpan(list183); + num4 = 0; + span183[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); reference124 = list183; - span72[4] = null; - span72[5] = null; + num3++; + span182[num3] = null; + num3++; + span182[num3] = null; obj95.RequiredQuestVariables = list182; reference123 = obj95; - ref QuestStep reference125 = ref span71[1]; + index2++; + ref QuestStep reference125 = ref span181[index2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1044052u, new Vector3(-110.27698f, 53.589848f, 538.41455f), 960) { Fly = true @@ -314043,21 +381396,30 @@ public static class AssemblyQuestLoader num3 = 6; List> list184 = new List>(num3); CollectionsMarshal.SetCount(list184, num3); - Span> span73 = CollectionsMarshal.AsSpan(list184); - span73[0] = null; - span73[1] = null; - span73[2] = null; - ref List reference126 = ref span73[3]; + Span> span184 = CollectionsMarshal.AsSpan(list184); + index3 = 0; + span184[index3] = null; + index3++; + span184[index3] = null; + index3++; + span184[index3] = null; + index3++; + ref List reference126 = ref span184[index3]; num4 = 1; List list185 = new List(num4); CollectionsMarshal.SetCount(list185, num4); - CollectionsMarshal.AsSpan(list185)[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + Span span185 = CollectionsMarshal.AsSpan(list185); + num5 = 0; + span185[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); reference126 = list185; - span73[4] = null; - span73[5] = null; + index3++; + span184[index3] = null; + index3++; + span184[index3] = null; obj96.RequiredQuestVariables = list184; reference125 = obj96; - ref QuestStep reference127 = ref span71[2]; + index2++; + ref QuestStep reference127 = ref span181[index2]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1044054u, new Vector3(83.69568f, 269.0921f, -483.0854f), 960) { Fly = true, @@ -314070,24 +381432,33 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List> list186 = new List>(num3); - CollectionsMarshal.SetCount(list186, num3); - Span> span74 = CollectionsMarshal.AsSpan(list186); - span74[0] = null; - span74[1] = null; - span74[2] = null; - ref List reference128 = ref span74[3]; - num4 = 1; - List list187 = new List(num4); - CollectionsMarshal.SetCount(list187, num4); - CollectionsMarshal.AsSpan(list187)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + index3 = 6; + List> list186 = new List>(index3); + CollectionsMarshal.SetCount(list186, index3); + Span> span186 = CollectionsMarshal.AsSpan(list186); + num3 = 0; + span186[num3] = null; + num3++; + span186[num3] = null; + num3++; + span186[num3] = null; + num3++; + ref List reference128 = ref span186[num3]; + num5 = 1; + List list187 = new List(num5); + CollectionsMarshal.SetCount(list187, num5); + Span span187 = CollectionsMarshal.AsSpan(list187); + num4 = 0; + span187[num4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference128 = list187; - span74[4] = null; - span74[5] = null; + num3++; + span186[num3] = null; + num3++; + span186[num3] = null; obj97.RequiredQuestVariables = list186; reference127 = obj97; - ref QuestStep reference129 = ref span71[3]; + index2++; + ref QuestStep reference129 = ref span181[index2]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1044053u, new Vector3(-225.66571f, 271.7499f, -308.6748f), 960) { Fly = true @@ -314095,21 +381466,30 @@ public static class AssemblyQuestLoader num3 = 6; List> list188 = new List>(num3); CollectionsMarshal.SetCount(list188, num3); - Span> span75 = CollectionsMarshal.AsSpan(list188); - span75[0] = null; - span75[1] = null; - span75[2] = null; - ref List reference130 = ref span75[3]; + Span> span188 = CollectionsMarshal.AsSpan(list188); + index3 = 0; + span188[index3] = null; + index3++; + span188[index3] = null; + index3++; + span188[index3] = null; + index3++; + ref List reference130 = ref span188[index3]; num4 = 1; List list189 = new List(num4); CollectionsMarshal.SetCount(list189, num4); - CollectionsMarshal.AsSpan(list189)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + Span span189 = CollectionsMarshal.AsSpan(list189); + num5 = 0; + span189[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference130 = list189; - span75[4] = null; - span75[5] = null; + index3++; + span188[index3] = null; + index3++; + span188[index3] = null; obj98.RequiredQuestVariables = list188; reference129 = obj98; - ref QuestStep reference131 = ref span71[4]; + index2++; + ref QuestStep reference131 = ref span181[index2]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 1044056u, new Vector3(582.7573f, 441.71567f, 427.9392f), 960) { Fly = true, @@ -314122,24 +381502,33 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List> list190 = new List>(num3); - CollectionsMarshal.SetCount(list190, num3); - Span> span76 = CollectionsMarshal.AsSpan(list190); - span76[0] = null; - span76[1] = null; - span76[2] = null; - ref List reference132 = ref span76[3]; - num4 = 1; - List list191 = new List(num4); - CollectionsMarshal.SetCount(list191, num4); - CollectionsMarshal.AsSpan(list191)[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3 = 6; + List> list190 = new List>(index3); + CollectionsMarshal.SetCount(list190, index3); + Span> span190 = CollectionsMarshal.AsSpan(list190); + num3 = 0; + span190[num3] = null; + num3++; + span190[num3] = null; + num3++; + span190[num3] = null; + num3++; + ref List reference132 = ref span190[num3]; + num5 = 1; + List list191 = new List(num5); + CollectionsMarshal.SetCount(list191, num5); + Span span191 = CollectionsMarshal.AsSpan(list191); + num4 = 0; + span191[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference132 = list191; - span76[4] = null; - span76[5] = null; + num3++; + span190[num3] = null; + num3++; + span190[num3] = null; obj99.RequiredQuestVariables = list190; reference131 = obj99; - ref QuestStep reference133 = ref span71[5]; + index2++; + ref QuestStep reference133 = ref span181[index2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1044055u, new Vector3(636.59106f, 438.6276f, 271.5343f), 960) { Fly = true @@ -314147,38 +381536,49 @@ public static class AssemblyQuestLoader num3 = 6; List> list192 = new List>(num3); CollectionsMarshal.SetCount(list192, num3); - Span> span77 = CollectionsMarshal.AsSpan(list192); - span77[0] = null; - span77[1] = null; - span77[2] = null; - ref List reference134 = ref span77[3]; + Span> span192 = CollectionsMarshal.AsSpan(list192); + index3 = 0; + span192[index3] = null; + index3++; + span192[index3] = null; + index3++; + span192[index3] = null; + index3++; + ref List reference134 = ref span192[index3]; num4 = 1; List list193 = new List(num4); CollectionsMarshal.SetCount(list193, num4); - CollectionsMarshal.AsSpan(list193)[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + Span span193 = CollectionsMarshal.AsSpan(list193); + num5 = 0; + span193[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference134 = list193; - span77[4] = null; - span77[5] = null; + index3++; + span192[index3] = null; + index3++; + span192[index3] = null; obj100.RequiredQuestVariables = list192; reference133 = obj100; obj94.Steps = list181; reference122 = obj94; - ref QuestSequence reference135 = ref span70[2]; + num++; + ref QuestSequence reference135 = ref span179[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span78 = CollectionsMarshal.AsSpan(list194); - span78[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span78[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span194[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj101.Steps = list194; reference135 = obj101; questRoot17.QuestSequence = list179; @@ -314188,13 +381588,16 @@ public static class AssemblyQuestLoader num = 1; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - CollectionsMarshal.AsSpan(list195)[0] = "plogon_enjoyer"; + Span span195 = CollectionsMarshal.AsSpan(list195); + index = 0; + span195[index] = "plogon_enjoyer"; questRoot18.Author = list195; - num = 3; - List list196 = new List(num); - CollectionsMarshal.SetCount(list196, num); - Span span79 = CollectionsMarshal.AsSpan(list196); - ref QuestSequence reference136 = ref span79[0]; + index = 3; + List list196 = new List(index); + CollectionsMarshal.SetCount(list196, index); + Span span196 = CollectionsMarshal.AsSpan(list196); + num = 0; + ref QuestSequence reference136 = ref span196[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -314202,64 +381605,80 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj102.Steps = list197; reference136 = obj102; - ref QuestSequence reference137 = ref span79[1]; + num++; + ref QuestSequence reference137 = ref span196[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - Span span80 = CollectionsMarshal.AsSpan(list198); - span80[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + index2 = 4; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span198 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span198[num2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference138 = ref span80[1]; + num2++; + ref QuestStep reference138 = ref span198[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - CollectionsMarshal.AsSpan(list199)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list199 = new List(index3); + CollectionsMarshal.SetCount(list199, index3); + Span span199 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span199[num3] = EExtendedClassJob.Miner; questStep26.RequiredQuestAcceptedJob = list199; num3 = 1; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = new GatheredItem + Span span200 = CollectionsMarshal.AsSpan(list200); + index3 = 0; + span200[index3] = new GatheredItem { ItemId = 38287u, ItemCount = 3 }; questStep26.ItemsToGather = list200; reference138 = questStep26; - ref QuestStep reference139 = ref span80[2]; + num2++; + ref QuestStep reference139 = ref span198[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - CollectionsMarshal.AsSpan(list201)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + Span span201 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span201[num3] = EExtendedClassJob.Botanist; questStep27.RequiredQuestAcceptedJob = list201; num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = new GatheredItem + Span span202 = CollectionsMarshal.AsSpan(list202); + index3 = 0; + span202[index3] = new GatheredItem { ItemId = 38311u, ItemCount = 3 }; questStep27.ItemsToGather = list202; reference139 = questStep27; - span80[3] = new QuestStep(EInteractionType.Interact, 1044057u, new Vector3(490.2876f, 436.9998f, 312.3064f), 960) + num2++; + span198[num2] = new QuestStep(EInteractionType.Interact, 1044057u, new Vector3(490.2876f, 436.9998f, 312.3064f), 960) { Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj103.Steps = list198; reference137 = obj103; - ref QuestSequence reference140 = ref span79[2]; + num++; + ref QuestSequence reference140 = ref span196[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue @@ -314267,13 +381686,15 @@ public static class AssemblyQuestLoader num2 = 2; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span81 = CollectionsMarshal.AsSpan(list203); - span81[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span203[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true }; - span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) + index2++; + span203[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) { Mount = true }; @@ -314286,24 +381707,30 @@ public static class AssemblyQuestLoader num = 1; List list204 = new List(num); CollectionsMarshal.SetCount(list204, num); - CollectionsMarshal.AsSpan(list204)[0] = "pot0to"; + Span span204 = CollectionsMarshal.AsSpan(list204); + index = 0; + span204[index] = "pot0to"; questRoot19.Author = list204; - num = 3; - List list205 = new List(num); - CollectionsMarshal.SetCount(list205, num); - Span span82 = CollectionsMarshal.AsSpan(list205); - ref QuestSequence reference141 = ref span82[0]; + index = 3; + List list205 = new List(index); + CollectionsMarshal.SetCount(list205, index); + Span span205 = CollectionsMarshal.AsSpan(list205); + num = 0; + ref QuestSequence reference141 = ref span205[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj105.Steps = list206; reference141 = obj105; - ref QuestSequence reference142 = ref span82[1]; + num++; + ref QuestSequence reference142 = ref span205[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -314311,71 +381738,88 @@ public static class AssemblyQuestLoader num2 = 6; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span83 = CollectionsMarshal.AsSpan(list207); - span83[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + Span span207 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span207[index2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference143 = ref span83[1]; + index2++; + ref QuestStep reference143 = ref span207[index2]; QuestStep questStep28 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - CollectionsMarshal.AsSpan(list208)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + Span span208 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span208[num3] = EExtendedClassJob.Miner; questStep28.RequiredQuestAcceptedJob = list208; num3 = 1; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = new GatheredItem + Span span209 = CollectionsMarshal.AsSpan(list209); + index3 = 0; + span209[index3] = new GatheredItem { ItemId = 38288u, ItemCount = 3 }; questStep28.ItemsToGather = list209; reference143 = questStep28; - ref QuestStep reference144 = ref span83[2]; + index2++; + ref QuestStep reference144 = ref span207[index2]; QuestStep questStep29 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list210 = new List(index3); + CollectionsMarshal.SetCount(list210, index3); + Span span210 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span210[num3] = EExtendedClassJob.Botanist; questStep29.RequiredQuestAcceptedJob = list210; num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new GatheredItem + Span span211 = CollectionsMarshal.AsSpan(list211); + index3 = 0; + span211[index3] = new GatheredItem { ItemId = 38312u, ItemCount = 3 }; questStep29.ItemsToGather = list211; reference144 = questStep29; - span83[3] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2++; + span207[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span83[4] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + index2++; + span207[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 }; - span83[5] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960); + index2++; + span207[index2] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960); obj106.Steps = list207; reference142 = obj106; - ref QuestSequence reference145 = ref span82[2]; + num++; + ref QuestSequence reference145 = ref span205[num]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - Span span84 = CollectionsMarshal.AsSpan(list212); - span84[0] = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) + index2 = 2; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span212[num2] = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { TargetTerritoryId = (ushort)960 }; - span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span212[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj107.Steps = list212; reference145 = obj107; questRoot19.QuestSequence = list205; @@ -314385,13 +381829,16 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - CollectionsMarshal.AsSpan(list213)[0] = "plogon_enjoyer"; + Span span213 = CollectionsMarshal.AsSpan(list213); + index = 0; + span213[index] = "plogon_enjoyer"; questRoot20.Author = list213; - num = 3; - List list214 = new List(num); - CollectionsMarshal.SetCount(list214, num); - Span span85 = CollectionsMarshal.AsSpan(list214); - ref QuestSequence reference146 = ref span85[0]; + index = 3; + List list214 = new List(index); + CollectionsMarshal.SetCount(list214, index); + Span span214 = CollectionsMarshal.AsSpan(list214); + num = 0; + ref QuestSequence reference146 = ref span214[num]; QuestSequence obj108 = new QuestSequence { Sequence = 0 @@ -314399,18 +381846,23 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + Span span215 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span215[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj108.Steps = list215; reference146 = obj108; - ref QuestSequence reference147 = ref span85[1]; + num++; + ref QuestSequence reference147 = ref span214[num]; QuestSequence obj109 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.UseItem, 1044058u, new Vector3(371.9386f, 288.95316f, -627.7409f), 960) + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + Span span216 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span216[num2] = new QuestStep(EInteractionType.UseItem, 1044058u, new Vector3(371.9386f, 288.95316f, -627.7409f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa, @@ -314418,7 +381870,8 @@ public static class AssemblyQuestLoader }; obj109.Steps = list216; reference147 = obj109; - ref QuestSequence reference148 = ref span85[2]; + num++; + ref QuestSequence reference148 = ref span214[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -314426,14 +381879,16 @@ public static class AssemblyQuestLoader num2 = 2; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span86 = CollectionsMarshal.AsSpan(list217); - span86[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span86[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) + index2++; + span217[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) { Fly = true }; @@ -314446,24 +381901,30 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; + Span span218 = CollectionsMarshal.AsSpan(list218); + index = 0; + span218[index] = "liza"; questRoot21.Author = list218; - num = 4; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span87 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference149 = ref span87[0]; + index = 4; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + Span span219 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference149 = ref span219[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span220[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj111.Steps = list220; reference149 = obj111; - ref QuestSequence reference150 = ref span87[1]; + num++; + ref QuestSequence reference150 = ref span219[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -314471,61 +381932,76 @@ public static class AssemblyQuestLoader num2 = 2; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span88 = CollectionsMarshal.AsSpan(list221); - span88[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span221[index2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - span88[1] = new QuestStep(EInteractionType.Interact, 1044059u, new Vector3(-15.304871f, 494.9991f, -68.16211f), 1073); + index2++; + span221[index2] = new QuestStep(EInteractionType.Interact, 1044059u, new Vector3(-15.304871f, 494.9991f, -68.16211f), 1073); obj112.Steps = list221; reference150 = obj112; - ref QuestSequence reference151 = ref span87[2]; + num++; + ref QuestSequence reference151 = ref span219[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - Span span89 = CollectionsMarshal.AsSpan(list222); - ref QuestStep reference152 = ref span89[0]; + index2 = 3; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + Span span222 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + ref QuestStep reference152 = ref span222[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list223 = new List(num3); - CollectionsMarshal.SetCount(list223, num3); - CollectionsMarshal.AsSpan(list223)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list223 = new List(index3); + CollectionsMarshal.SetCount(list223, index3); + Span span223 = CollectionsMarshal.AsSpan(list223); + num3 = 0; + span223[num3] = EExtendedClassJob.Miner; questStep30.RequiredQuestAcceptedJob = list223; num3 = 1; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = new GatheredItem + Span span224 = CollectionsMarshal.AsSpan(list224); + index3 = 0; + span224[index3] = new GatheredItem { ItemId = 38289u, ItemCount = 3 }; questStep30.ItemsToGather = list224; reference152 = questStep30; - ref QuestStep reference153 = ref span89[1]; + num2++; + ref QuestStep reference153 = ref span222[num2]; QuestStep questStep31 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - CollectionsMarshal.AsSpan(list225)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list225 = new List(index3); + CollectionsMarshal.SetCount(list225, index3); + Span span225 = CollectionsMarshal.AsSpan(list225); + num3 = 0; + span225[num3] = EExtendedClassJob.Botanist; questStep31.RequiredQuestAcceptedJob = list225; num3 = 1; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = new GatheredItem + Span span226 = CollectionsMarshal.AsSpan(list226); + index3 = 0; + span226[index3] = new GatheredItem { ItemId = 38313u, ItemCount = 3 }; questStep31.ItemsToGather = list226; reference153 = questStep31; - span89[2] = new QuestStep(EInteractionType.Interact, 1044059u, new Vector3(-15.304871f, 494.9991f, -68.16211f), 1073); + num2++; + span222[num2] = new QuestStep(EInteractionType.Interact, 1044059u, new Vector3(-15.304871f, 494.9991f, -68.16211f), 1073); obj113.Steps = list222; reference151 = obj113; - ref QuestSequence reference154 = ref span87[3]; + num++; + ref QuestSequence reference154 = ref span219[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue @@ -314533,12 +382009,14 @@ public static class AssemblyQuestLoader num2 = 2; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span90 = CollectionsMarshal.AsSpan(list227); - span90[0] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span227[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj114.Steps = list227; reference154 = obj114; questRoot21.QuestSequence = list219; @@ -314548,24 +382026,30 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - CollectionsMarshal.AsSpan(list228)[0] = "liza"; + Span span228 = CollectionsMarshal.AsSpan(list228); + index = 0; + span228[index] = "liza"; questRoot22.Author = list228; - num = 4; - List list229 = new List(num); - CollectionsMarshal.SetCount(list229, num); - Span span91 = CollectionsMarshal.AsSpan(list229); - ref QuestSequence reference155 = ref span91[0]; + index = 4; + List list229 = new List(index); + CollectionsMarshal.SetCount(list229, index); + Span span229 = CollectionsMarshal.AsSpan(list229); + num = 0; + ref QuestSequence reference155 = ref span229[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span230[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj115.Steps = list230; reference155 = obj115; - ref QuestSequence reference156 = ref span91[1]; + num++; + ref QuestSequence reference156 = ref span229[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 @@ -314573,40 +382057,51 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1044060u, new Vector3(57.75537f, 269.00012f, -674.49457f), 960) + Span span231 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span231[index2] = new QuestStep(EInteractionType.Interact, 1044060u, new Vector3(57.75537f, 269.00012f, -674.49457f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj116.Steps = list231; reference156 = obj116; - ref QuestSequence reference157 = ref span91[2]; + num++; + ref QuestSequence reference157 = ref span229[num]; QuestSequence obj117 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - Span span92 = CollectionsMarshal.AsSpan(list232); - ref QuestStep reference158 = ref span92[0]; + index2 = 2; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + ref QuestStep reference158 = ref span232[num2]; QuestStep obj118 = new QuestStep(EInteractionType.Action, 1044063u, new Vector3(-193.53015f, 269.23087f, -315.63293f), 960) { Fly = true, Action = EAction.ElectrixFlux }; - num3 = 6; - List list233 = new List(num3); - CollectionsMarshal.SetCount(list233, num3); - Span span93 = CollectionsMarshal.AsSpan(list233); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list233 = new List(index3); + CollectionsMarshal.SetCount(list233, index3); + Span span233 = CollectionsMarshal.AsSpan(list233); + num3 = 0; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = null; + num3++; + span233[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj118.CompletionQuestVariablesFlags = list233; reference158 = obj118; - ref QuestStep reference159 = ref span92[1]; + num2++; + ref QuestStep reference159 = ref span232[num2]; QuestStep obj119 = new QuestStep(EInteractionType.Action, 1044062u, new Vector3(-213.42798f, 268.01166f, -299.5194f), 960) { Fly = true, @@ -314615,18 +382110,25 @@ public static class AssemblyQuestLoader num3 = 6; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - Span span94 = CollectionsMarshal.AsSpan(list234); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span234 = CollectionsMarshal.AsSpan(list234); + index3 = 0; + span234[index3] = null; + index3++; + span234[index3] = null; + index3++; + span234[index3] = null; + index3++; + span234[index3] = null; + index3++; + span234[index3] = null; + index3++; + span234[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj119.CompletionQuestVariablesFlags = list234; reference159 = obj119; obj117.Steps = list232; reference157 = obj117; - ref QuestSequence reference160 = ref span91[3]; + num++; + ref QuestSequence reference160 = ref span229[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -314634,13 +382136,15 @@ public static class AssemblyQuestLoader num2 = 2; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span95 = CollectionsMarshal.AsSpan(list235); - span95[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span235 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span235[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span95[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span235[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj120.Steps = list235; reference160 = obj120; questRoot22.QuestSequence = list229; @@ -314650,24 +382154,30 @@ public static class AssemblyQuestLoader num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - CollectionsMarshal.AsSpan(list236)[0] = "liza"; + Span span236 = CollectionsMarshal.AsSpan(list236); + index = 0; + span236[index] = "liza"; questRoot23.Author = list236; - num = 3; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - Span span96 = CollectionsMarshal.AsSpan(list237); - ref QuestSequence reference161 = ref span96[0]; + index = 3; + List list237 = new List(index); + CollectionsMarshal.SetCount(list237, index); + Span span237 = CollectionsMarshal.AsSpan(list237); + num = 0; + ref QuestSequence reference161 = ref span237[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj121.Steps = list238; reference161 = obj121; - ref QuestSequence reference162 = ref span96[1]; + num++; + ref QuestSequence reference162 = ref span237[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -314675,63 +382185,77 @@ public static class AssemblyQuestLoader num2 = 3; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span97 = CollectionsMarshal.AsSpan(list239); - ref QuestStep reference163 = ref span97[0]; + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + ref QuestStep reference163 = ref span239[index2]; QuestStep questStep32 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - CollectionsMarshal.AsSpan(list240)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list240 = new List(index3); + CollectionsMarshal.SetCount(list240, index3); + Span span240 = CollectionsMarshal.AsSpan(list240); + num3 = 0; + span240[num3] = EExtendedClassJob.Miner; questStep32.RequiredQuestAcceptedJob = list240; num3 = 1; List list241 = new List(num3); CollectionsMarshal.SetCount(list241, num3); - CollectionsMarshal.AsSpan(list241)[0] = new GatheredItem + Span span241 = CollectionsMarshal.AsSpan(list241); + index3 = 0; + span241[index3] = new GatheredItem { ItemId = 38290u, ItemCount = 3 }; questStep32.ItemsToGather = list241; reference163 = questStep32; - ref QuestStep reference164 = ref span97[1]; + index2++; + ref QuestStep reference164 = ref span239[index2]; QuestStep questStep33 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list242 = new List(num3); - CollectionsMarshal.SetCount(list242, num3); - CollectionsMarshal.AsSpan(list242)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list242 = new List(index3); + CollectionsMarshal.SetCount(list242, index3); + Span span242 = CollectionsMarshal.AsSpan(list242); + num3 = 0; + span242[num3] = EExtendedClassJob.Botanist; questStep33.RequiredQuestAcceptedJob = list242; num3 = 1; List list243 = new List(num3); CollectionsMarshal.SetCount(list243, num3); - CollectionsMarshal.AsSpan(list243)[0] = new GatheredItem + Span span243 = CollectionsMarshal.AsSpan(list243); + index3 = 0; + span243[index3] = new GatheredItem { ItemId = 38314u, ItemCount = 3 }; questStep33.ItemsToGather = list243; reference164 = questStep33; - span97[2] = new QuestStep(EInteractionType.Interact, 1044064u, new Vector3(86.503296f, 269.08234f, -515.0683f), 960) + index2++; + span239[index2] = new QuestStep(EInteractionType.Interact, 1044064u, new Vector3(86.503296f, 269.08234f, -515.0683f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj122.Steps = list239; reference162 = obj122; - ref QuestSequence reference165 = ref span96[2]; + num++; + ref QuestSequence reference165 = ref span237[num]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - Span span98 = CollectionsMarshal.AsSpan(list244); - span98[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span98[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span244[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj123.Steps = list244; reference165 = obj123; questRoot23.QuestSequence = list237; @@ -314741,13 +382265,16 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "plogon_enjoyer"; + Span span245 = CollectionsMarshal.AsSpan(list245); + index = 0; + span245[index] = "plogon_enjoyer"; questRoot24.Author = list245; - num = 3; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span99 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference166 = ref span99[0]; + index = 3; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + Span span246 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference166 = ref span246[num]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -314755,63 +382282,79 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj124.Steps = list247; reference166 = obj124; - ref QuestSequence reference167 = ref span99[1]; + num++; + ref QuestSequence reference167 = ref span246[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - Span span100 = CollectionsMarshal.AsSpan(list248); - span100[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + index2 = 4; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference168 = ref span100[1]; + num2++; + ref QuestStep reference168 = ref span248[num2]; QuestStep questStep34 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list249 = new List(num3); - CollectionsMarshal.SetCount(list249, num3); - CollectionsMarshal.AsSpan(list249)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list249 = new List(index3); + CollectionsMarshal.SetCount(list249, index3); + Span span249 = CollectionsMarshal.AsSpan(list249); + num3 = 0; + span249[num3] = EExtendedClassJob.Miner; questStep34.RequiredQuestAcceptedJob = list249; num3 = 1; List list250 = new List(num3); CollectionsMarshal.SetCount(list250, num3); - CollectionsMarshal.AsSpan(list250)[0] = new GatheredItem + Span span250 = CollectionsMarshal.AsSpan(list250); + index3 = 0; + span250[index3] = new GatheredItem { ItemId = 38291u, ItemCount = 3 }; questStep34.ItemsToGather = list250; reference168 = questStep34; - ref QuestStep reference169 = ref span100[2]; + num2++; + ref QuestStep reference169 = ref span248[num2]; QuestStep questStep35 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list251 = new List(index3); + CollectionsMarshal.SetCount(list251, index3); + Span span251 = CollectionsMarshal.AsSpan(list251); + num3 = 0; + span251[num3] = EExtendedClassJob.Botanist; questStep35.RequiredQuestAcceptedJob = list251; num3 = 1; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - CollectionsMarshal.AsSpan(list252)[0] = new GatheredItem + Span span252 = CollectionsMarshal.AsSpan(list252); + index3 = 0; + span252[index3] = new GatheredItem { ItemId = 38315u, ItemCount = 3 }; questStep35.ItemsToGather = list252; reference169 = questStep35; - span100[3] = new QuestStep(EInteractionType.Interact, 1044065u, new Vector3(478.9348f, 437.0016f, 340.505f), 960) + num2++; + span248[num2] = new QuestStep(EInteractionType.Interact, 1044065u, new Vector3(478.9348f, 437.0016f, 340.505f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj125.Steps = list248; reference167 = obj125; - ref QuestSequence reference170 = ref span99[2]; + num++; + ref QuestSequence reference170 = ref span246[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -314819,13 +382362,15 @@ public static class AssemblyQuestLoader num2 = 2; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span101 = CollectionsMarshal.AsSpan(list253); - span101[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true }; - span101[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span253[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj126.Steps = list253; reference170 = obj126; questRoot24.QuestSequence = list246; @@ -314835,24 +382380,30 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - CollectionsMarshal.AsSpan(list254)[0] = "plogon_enjoyer"; + Span span254 = CollectionsMarshal.AsSpan(list254); + index = 0; + span254[index] = "plogon_enjoyer"; questRoot25.Author = list254; - num = 4; - List list255 = new List(num); - CollectionsMarshal.SetCount(list255, num); - Span span102 = CollectionsMarshal.AsSpan(list255); - ref QuestSequence reference171 = ref span102[0]; + index = 4; + List list255 = new List(index); + CollectionsMarshal.SetCount(list255, index); + Span span255 = CollectionsMarshal.AsSpan(list255); + num = 0; + ref QuestSequence reference171 = ref span255[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj127.Steps = list256; reference171 = obj127; - ref QuestSequence reference172 = ref span102[1]; + num++; + ref QuestSequence reference172 = ref span255[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 @@ -314860,40 +382411,46 @@ public static class AssemblyQuestLoader num2 = 2; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span103 = CollectionsMarshal.AsSpan(list257); - span103[0] = new QuestStep(EInteractionType.Interact, 2013073u, new Vector3(334.37085f, 483.17688f, 158.28174f), 960) + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = new QuestStep(EInteractionType.Interact, 2013073u, new Vector3(334.37085f, 483.17688f, 158.28174f), 960) { TargetTerritoryId = (ushort)960, Mount = true }; - span103[1] = new QuestStep(EInteractionType.Interact, 1044066u, new Vector3(493.58362f, 436.99985f, 317.09766f), 960) + index2++; + span257[index2] = new QuestStep(EInteractionType.Interact, 1044066u, new Vector3(493.58362f, 436.99985f, 317.09766f), 960) { Fly = true }; obj128.Steps = list257; reference172 = obj128; - ref QuestSequence reference173 = ref span102[2]; + num++; + ref QuestSequence reference173 = ref span255[num]; QuestSequence obj129 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - Span span104 = CollectionsMarshal.AsSpan(list258); - span104[0] = new QuestStep(EInteractionType.Action, 1044068u, new Vector3(638.5748f, 438.6276f, 260.3341f), 960) + index2 = 2; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span258[num2] = new QuestStep(EInteractionType.Action, 1044068u, new Vector3(638.5748f, 438.6276f, 260.3341f), 960) { Fly = true, Action = EAction.ElectrixFlux }; - span104[1] = new QuestStep(EInteractionType.Action, 1044069u, new Vector3(668.0552f, 440.4633f, 360.79956f), 960) + num2++; + span258[num2] = new QuestStep(EInteractionType.Action, 1044069u, new Vector3(668.0552f, 440.4633f, 360.79956f), 960) { Fly = true, Action = EAction.ElectrixFlux }; obj129.Steps = list258; reference173 = obj129; - ref QuestSequence reference174 = ref span102[3]; + num++; + ref QuestSequence reference174 = ref span255[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -314901,14 +382458,16 @@ public static class AssemblyQuestLoader num2 = 2; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span105 = CollectionsMarshal.AsSpan(list259); - span105[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span259[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span105[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) + index2++; + span259[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) { Mount = true }; @@ -314921,24 +382480,30 @@ public static class AssemblyQuestLoader num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - CollectionsMarshal.AsSpan(list260)[0] = "plogon_enjoyer"; + Span span260 = CollectionsMarshal.AsSpan(list260); + index = 0; + span260[index] = "plogon_enjoyer"; questRoot26.Author = list260; - num = 3; - List list261 = new List(num); - CollectionsMarshal.SetCount(list261, num); - Span span106 = CollectionsMarshal.AsSpan(list261); - ref QuestSequence reference175 = ref span106[0]; + index = 3; + List list261 = new List(index); + CollectionsMarshal.SetCount(list261, index); + Span span261 = CollectionsMarshal.AsSpan(list261); + num = 0; + ref QuestSequence reference175 = ref span261[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj131.Steps = list262; reference175 = obj131; - ref QuestSequence reference176 = ref span106[1]; + num++; + ref QuestSequence reference176 = ref span261[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 @@ -314946,68 +382511,83 @@ public static class AssemblyQuestLoader num2 = 4; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span107 = CollectionsMarshal.AsSpan(list263); - span107[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.4821f, 143.1448f), 960) + Span span263 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span263[index2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.4821f, 143.1448f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference177 = ref span107[1]; + index2++; + ref QuestStep reference177 = ref span263[index2]; QuestStep questStep36 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list264 = new List(num3); - CollectionsMarshal.SetCount(list264, num3); - CollectionsMarshal.AsSpan(list264)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list264 = new List(index3); + CollectionsMarshal.SetCount(list264, index3); + Span span264 = CollectionsMarshal.AsSpan(list264); + num3 = 0; + span264[num3] = EExtendedClassJob.Miner; questStep36.RequiredQuestAcceptedJob = list264; num3 = 1; List list265 = new List(num3); CollectionsMarshal.SetCount(list265, num3); - CollectionsMarshal.AsSpan(list265)[0] = new GatheredItem + Span span265 = CollectionsMarshal.AsSpan(list265); + index3 = 0; + span265[index3] = new GatheredItem { ItemId = 38292u, ItemCount = 3 }; questStep36.ItemsToGather = list265; reference177 = questStep36; - ref QuestStep reference178 = ref span107[2]; + index2++; + ref QuestStep reference178 = ref span263[index2]; QuestStep questStep37 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list266 = new List(num3); - CollectionsMarshal.SetCount(list266, num3); - CollectionsMarshal.AsSpan(list266)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list266 = new List(index3); + CollectionsMarshal.SetCount(list266, index3); + Span span266 = CollectionsMarshal.AsSpan(list266); + num3 = 0; + span266[num3] = EExtendedClassJob.Botanist; questStep37.RequiredQuestAcceptedJob = list266; num3 = 1; List list267 = new List(num3); CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = new GatheredItem + Span span267 = CollectionsMarshal.AsSpan(list267); + index3 = 0; + span267[index3] = new GatheredItem { ItemId = 38316u, ItemCount = 3 }; questStep37.ItemsToGather = list267; reference178 = questStep37; - span107[3] = new QuestStep(EInteractionType.Interact, 1044070u, new Vector3(132.34143f, 269.00006f, -654.6273f), 960) + index2++; + span263[index2] = new QuestStep(EInteractionType.Interact, 1044070u, new Vector3(132.34143f, 269.00006f, -654.6273f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj132.Steps = list263; reference176 = obj132; - ref QuestSequence reference179 = ref span106[2]; + num++; + ref QuestSequence reference179 = ref span261[num]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - Span span108 = CollectionsMarshal.AsSpan(list268); - span108[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + Span span268 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span268[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span108[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) + num2++; + span268[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) { Mount = true }; @@ -315020,13 +382600,16 @@ public static class AssemblyQuestLoader num = 1; List list269 = new List(num); CollectionsMarshal.SetCount(list269, num); - CollectionsMarshal.AsSpan(list269)[0] = "plogon_enjoyer"; + Span span269 = CollectionsMarshal.AsSpan(list269); + index = 0; + span269[index] = "plogon_enjoyer"; questRoot27.Author = list269; - num = 3; - List list270 = new List(num); - CollectionsMarshal.SetCount(list270, num); - Span span109 = CollectionsMarshal.AsSpan(list270); - ref QuestSequence reference180 = ref span109[0]; + index = 3; + List list270 = new List(index); + CollectionsMarshal.SetCount(list270, index); + Span span270 = CollectionsMarshal.AsSpan(list270); + num = 0; + ref QuestSequence reference180 = ref span270[num]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -315034,75 +382617,93 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + Span span271 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + span271[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj134.Steps = list271; reference180 = obj134; - ref QuestSequence reference181 = ref span109[1]; + num++; + ref QuestSequence reference181 = ref span270[num]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - num2 = 6; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - Span span110 = CollectionsMarshal.AsSpan(list272); - span110[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.4821f, 143.1448f), 960) + index2 = 6; + List list272 = new List(index2); + CollectionsMarshal.SetCount(list272, index2); + Span span272 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span272[num2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.4821f, 143.1448f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference182 = ref span110[1]; + num2++; + ref QuestStep reference182 = ref span272[num2]; QuestStep questStep38 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list273 = new List(num3); - CollectionsMarshal.SetCount(list273, num3); - CollectionsMarshal.AsSpan(list273)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list273 = new List(index3); + CollectionsMarshal.SetCount(list273, index3); + Span span273 = CollectionsMarshal.AsSpan(list273); + num3 = 0; + span273[num3] = EExtendedClassJob.Miner; questStep38.RequiredQuestAcceptedJob = list273; num3 = 1; List list274 = new List(num3); CollectionsMarshal.SetCount(list274, num3); - CollectionsMarshal.AsSpan(list274)[0] = new GatheredItem + Span span274 = CollectionsMarshal.AsSpan(list274); + index3 = 0; + span274[index3] = new GatheredItem { ItemId = 38293u, ItemCount = 3 }; questStep38.ItemsToGather = list274; reference182 = questStep38; - ref QuestStep reference183 = ref span110[2]; + num2++; + ref QuestStep reference183 = ref span272[num2]; QuestStep questStep39 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list275 = new List(num3); - CollectionsMarshal.SetCount(list275, num3); - CollectionsMarshal.AsSpan(list275)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list275 = new List(index3); + CollectionsMarshal.SetCount(list275, index3); + Span span275 = CollectionsMarshal.AsSpan(list275); + num3 = 0; + span275[num3] = EExtendedClassJob.Botanist; questStep39.RequiredQuestAcceptedJob = list275; num3 = 1; List list276 = new List(num3); CollectionsMarshal.SetCount(list276, num3); - CollectionsMarshal.AsSpan(list276)[0] = new GatheredItem + Span span276 = CollectionsMarshal.AsSpan(list276); + index3 = 0; + span276[index3] = new GatheredItem { ItemId = 38317u, ItemCount = 3 }; questStep39.ItemsToGather = list276; reference183 = questStep39; - span110[3] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + num2++; + span272[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span110[4] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + num2++; + span272[num2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Mount = true, Fly = true }; - span110[5] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960) + num2++; + span272[num2] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960) { Fly = true }; obj135.Steps = list272; reference181 = obj135; - ref QuestSequence reference184 = ref span109[2]; + num++; + ref QuestSequence reference184 = ref span270[num]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue @@ -315110,13 +382711,15 @@ public static class AssemblyQuestLoader num2 = 2; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - Span span111 = CollectionsMarshal.AsSpan(list277); - span111[0] = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) + Span span277 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + span277[index2] = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - span111[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) + index2++; + span277[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) { Fly = true }; @@ -315129,24 +382732,30 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - CollectionsMarshal.AsSpan(list278)[0] = "liza"; + Span span278 = CollectionsMarshal.AsSpan(list278); + index = 0; + span278[index] = "liza"; questRoot28.Author = list278; - num = 3; - List list279 = new List(num); - CollectionsMarshal.SetCount(list279, num); - Span span112 = CollectionsMarshal.AsSpan(list279); - ref QuestSequence reference185 = ref span112[0]; + index = 3; + List list279 = new List(index); + CollectionsMarshal.SetCount(list279, index); + Span span279 = CollectionsMarshal.AsSpan(list279); + num = 0; + ref QuestSequence reference185 = ref span279[num]; QuestSequence obj137 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span280 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span280[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj137.Steps = list280; reference185 = obj137; - ref QuestSequence reference186 = ref span112[1]; + num++; + ref QuestSequence reference186 = ref span279[num]; QuestSequence obj138 = new QuestSequence { Sequence = 1 @@ -315154,63 +382763,77 @@ public static class AssemblyQuestLoader num2 = 3; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span113 = CollectionsMarshal.AsSpan(list281); - ref QuestStep reference187 = ref span113[0]; + Span span281 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + ref QuestStep reference187 = ref span281[index2]; QuestStep questStep40 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list282 = new List(index3); + CollectionsMarshal.SetCount(list282, index3); + Span span282 = CollectionsMarshal.AsSpan(list282); + num3 = 0; + span282[num3] = EExtendedClassJob.Miner; questStep40.RequiredQuestAcceptedJob = list282; num3 = 1; List list283 = new List(num3); CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = new GatheredItem + Span span283 = CollectionsMarshal.AsSpan(list283); + index3 = 0; + span283[index3] = new GatheredItem { ItemId = 38294u, ItemCount = 3 }; questStep40.ItemsToGather = list283; reference187 = questStep40; - ref QuestStep reference188 = ref span113[1]; + index2++; + ref QuestStep reference188 = ref span281[index2]; QuestStep questStep41 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list284 = new List(index3); + CollectionsMarshal.SetCount(list284, index3); + Span span284 = CollectionsMarshal.AsSpan(list284); + num3 = 0; + span284[num3] = EExtendedClassJob.Botanist; questStep41.RequiredQuestAcceptedJob = list284; num3 = 1; List list285 = new List(num3); CollectionsMarshal.SetCount(list285, num3); - CollectionsMarshal.AsSpan(list285)[0] = new GatheredItem + Span span285 = CollectionsMarshal.AsSpan(list285); + index3 = 0; + span285[index3] = new GatheredItem { ItemId = 38318u, ItemCount = 3 }; questStep41.ItemsToGather = list285; reference188 = questStep41; - span113[2] = new QuestStep(EInteractionType.Interact, 1044071u, new Vector3(46.066895f, 268.99976f, -584.77155f), 960) + index2++; + span281[index2] = new QuestStep(EInteractionType.Interact, 1044071u, new Vector3(46.066895f, 268.99976f, -584.77155f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj138.Steps = list281; reference186 = obj138; - ref QuestSequence reference189 = ref span112[2]; + num++; + ref QuestSequence reference189 = ref span279[num]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - Span span114 = CollectionsMarshal.AsSpan(list286); - span114[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + Span span286 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span286[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span114[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span286[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj139.Steps = list286; reference189 = obj139; questRoot28.QuestSequence = list279; @@ -315220,13 +382843,16 @@ public static class AssemblyQuestLoader num = 1; List list287 = new List(num); CollectionsMarshal.SetCount(list287, num); - CollectionsMarshal.AsSpan(list287)[0] = "liza"; + Span span287 = CollectionsMarshal.AsSpan(list287); + index = 0; + span287[index] = "liza"; questRoot29.Author = list287; - num = 4; - List list288 = new List(num); - CollectionsMarshal.SetCount(list288, num); - Span span115 = CollectionsMarshal.AsSpan(list288); - ref QuestSequence reference190 = ref span115[0]; + index = 4; + List list288 = new List(index); + CollectionsMarshal.SetCount(list288, index); + Span span288 = CollectionsMarshal.AsSpan(list288); + num = 0; + ref QuestSequence reference190 = ref span288[num]; QuestSequence obj140 = new QuestSequence { Sequence = 0 @@ -315234,24 +382860,30 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span289[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj140.Steps = list289; reference190 = obj140; - ref QuestSequence reference191 = ref span115[1]; + num++; + ref QuestSequence reference191 = ref span288[num]; QuestSequence obj141 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1044072u, new Vector3(-541.9547f, 74.3691f, 208.39233f), 960) + index2 = 1; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + Span span290 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span290[num2] = new QuestStep(EInteractionType.Interact, 1044072u, new Vector3(-541.9547f, 74.3691f, 208.39233f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; obj141.Steps = list290; reference191 = obj141; - ref QuestSequence reference192 = ref span115[2]; + num++; + ref QuestSequence reference192 = ref span288[num]; QuestSequence obj142 = new QuestSequence { Sequence = 2 @@ -315259,26 +382891,34 @@ public static class AssemblyQuestLoader num2 = 2; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span116 = CollectionsMarshal.AsSpan(list291); - ref QuestStep reference193 = ref span116[0]; + Span span291 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + ref QuestStep reference193 = ref span291[index2]; QuestStep obj143 = new QuestStep(EInteractionType.Action, 2013132u, new Vector3(-327.04663f, 88.48706f, 293.04944f), 960) { Fly = true, Action = EAction.ElectrixFlux }; - num3 = 6; - List list292 = new List(num3); - CollectionsMarshal.SetCount(list292, num3); - Span span117 = CollectionsMarshal.AsSpan(list292); - span117[0] = null; - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list292 = new List(index3); + CollectionsMarshal.SetCount(list292, index3); + Span span292 = CollectionsMarshal.AsSpan(list292); + num3 = 0; + span292[num3] = null; + num3++; + span292[num3] = null; + num3++; + span292[num3] = null; + num3++; + span292[num3] = null; + num3++; + span292[num3] = null; + num3++; + span292[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj143.CompletionQuestVariablesFlags = list292; reference193 = obj143; - ref QuestStep reference194 = ref span116[1]; + index2++; + ref QuestStep reference194 = ref span291[index2]; QuestStep obj144 = new QuestStep(EInteractionType.Action, 2013131u, new Vector3(-324.8493f, 88.05969f, 269.79468f), 960) { Fly = true, @@ -315287,32 +382927,41 @@ public static class AssemblyQuestLoader num3 = 6; List list293 = new List(num3); CollectionsMarshal.SetCount(list293, num3); - Span span118 = CollectionsMarshal.AsSpan(list293); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span293 = CollectionsMarshal.AsSpan(list293); + index3 = 0; + span293[index3] = null; + index3++; + span293[index3] = null; + index3++; + span293[index3] = null; + index3++; + span293[index3] = null; + index3++; + span293[index3] = null; + index3++; + span293[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj144.CompletionQuestVariablesFlags = list293; reference194 = obj144; obj142.Steps = list291; reference192 = obj142; - ref QuestSequence reference195 = ref span115[3]; + num++; + ref QuestSequence reference195 = ref span288[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - Span span119 = CollectionsMarshal.AsSpan(list294); - span119[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span294 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span294[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span119[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span294[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj145.Steps = list294; reference195 = obj145; questRoot29.QuestSequence = list288; @@ -315322,13 +382971,16 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "liza"; + Span span295 = CollectionsMarshal.AsSpan(list295); + index = 0; + span295[index] = "liza"; questRoot30.Author = list295; - num = 3; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - Span span120 = CollectionsMarshal.AsSpan(list296); - ref QuestSequence reference196 = ref span120[0]; + index = 3; + List list296 = new List(index); + CollectionsMarshal.SetCount(list296, index); + Span span296 = CollectionsMarshal.AsSpan(list296); + num = 0; + ref QuestSequence reference196 = ref span296[num]; QuestSequence obj146 = new QuestSequence { Sequence = 0 @@ -315336,59 +382988,74 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + Span span297 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span297[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj146.Steps = list297; reference196 = obj146; - ref QuestSequence reference197 = ref span120[1]; + num++; + ref QuestSequence reference197 = ref span296[num]; QuestSequence obj147 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - Span span121 = CollectionsMarshal.AsSpan(list298); - ref QuestStep reference198 = ref span121[0]; + index2 = 3; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + Span span298 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + ref QuestStep reference198 = ref span298[num2]; QuestStep questStep42 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list299 = new List(num3); - CollectionsMarshal.SetCount(list299, num3); - CollectionsMarshal.AsSpan(list299)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list299 = new List(index3); + CollectionsMarshal.SetCount(list299, index3); + Span span299 = CollectionsMarshal.AsSpan(list299); + num3 = 0; + span299[num3] = EExtendedClassJob.Miner; questStep42.RequiredQuestAcceptedJob = list299; num3 = 1; List list300 = new List(num3); CollectionsMarshal.SetCount(list300, num3); - CollectionsMarshal.AsSpan(list300)[0] = new GatheredItem + Span span300 = CollectionsMarshal.AsSpan(list300); + index3 = 0; + span300[index3] = new GatheredItem { ItemId = 38295u, ItemCount = 3 }; questStep42.ItemsToGather = list300; reference198 = questStep42; - ref QuestStep reference199 = ref span121[1]; + num2++; + ref QuestStep reference199 = ref span298[num2]; QuestStep questStep43 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list301 = new List(num3); - CollectionsMarshal.SetCount(list301, num3); - CollectionsMarshal.AsSpan(list301)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list301 = new List(index3); + CollectionsMarshal.SetCount(list301, index3); + Span span301 = CollectionsMarshal.AsSpan(list301); + num3 = 0; + span301[num3] = EExtendedClassJob.Botanist; questStep43.RequiredQuestAcceptedJob = list301; num3 = 1; List list302 = new List(num3); CollectionsMarshal.SetCount(list302, num3); - CollectionsMarshal.AsSpan(list302)[0] = new GatheredItem + Span span302 = CollectionsMarshal.AsSpan(list302); + index3 = 0; + span302[index3] = new GatheredItem { ItemId = 38319u, ItemCount = 3 }; questStep43.ItemsToGather = list302; reference199 = questStep43; - span121[2] = new QuestStep(EInteractionType.Interact, 1044074u, new Vector3(-585.90063f, 75.22713f, 256.67188f), 960) + num2++; + span298[num2] = new QuestStep(EInteractionType.Interact, 1044074u, new Vector3(-585.90063f, 75.22713f, 256.67188f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; obj147.Steps = list298; reference197 = obj147; - ref QuestSequence reference200 = ref span120[2]; + num++; + ref QuestSequence reference200 = ref span296[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue @@ -315396,13 +383063,15 @@ public static class AssemblyQuestLoader num2 = 2; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - Span span122 = CollectionsMarshal.AsSpan(list303); - span122[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span303 = CollectionsMarshal.AsSpan(list303); + index2 = 0; + span303[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span122[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span303[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj148.Steps = list303; reference200 = obj148; questRoot30.QuestSequence = list296; @@ -315412,24 +383081,30 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - CollectionsMarshal.AsSpan(list304)[0] = "liza"; + Span span304 = CollectionsMarshal.AsSpan(list304); + index = 0; + span304[index] = "liza"; questRoot31.Author = list304; - num = 4; - List list305 = new List(num); - CollectionsMarshal.SetCount(list305, num); - Span span123 = CollectionsMarshal.AsSpan(list305); - ref QuestSequence reference201 = ref span123[0]; + index = 4; + List list305 = new List(index); + CollectionsMarshal.SetCount(list305, index); + Span span305 = CollectionsMarshal.AsSpan(list305); + num = 0; + ref QuestSequence reference201 = ref span305[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + Span span306 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + span306[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj149.Steps = list306; reference201 = obj149; - ref QuestSequence reference202 = ref span123[1]; + num++; + ref QuestSequence reference202 = ref span305[num]; QuestSequence obj150 = new QuestSequence { Sequence = 1 @@ -315437,61 +383112,76 @@ public static class AssemblyQuestLoader num2 = 2; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - Span span124 = CollectionsMarshal.AsSpan(list307); - span124[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + Span span307 = CollectionsMarshal.AsSpan(list307); + index2 = 0; + span307[index2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - span124[1] = new QuestStep(EInteractionType.Interact, 1044075u, new Vector3(-64.4389f, 493.32922f, -4.409851f), 1073); + index2++; + span307[index2] = new QuestStep(EInteractionType.Interact, 1044075u, new Vector3(-64.4389f, 493.32922f, -4.409851f), 1073); obj150.Steps = list307; reference202 = obj150; - ref QuestSequence reference203 = ref span123[2]; + num++; + ref QuestSequence reference203 = ref span305[num]; QuestSequence obj151 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - Span span125 = CollectionsMarshal.AsSpan(list308); - ref QuestStep reference204 = ref span125[0]; + index2 = 3; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + Span span308 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + ref QuestStep reference204 = ref span308[num2]; QuestStep questStep44 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list309 = new List(num3); - CollectionsMarshal.SetCount(list309, num3); - CollectionsMarshal.AsSpan(list309)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list309 = new List(index3); + CollectionsMarshal.SetCount(list309, index3); + Span span309 = CollectionsMarshal.AsSpan(list309); + num3 = 0; + span309[num3] = EExtendedClassJob.Miner; questStep44.RequiredQuestAcceptedJob = list309; num3 = 1; List list310 = new List(num3); CollectionsMarshal.SetCount(list310, num3); - CollectionsMarshal.AsSpan(list310)[0] = new GatheredItem + Span span310 = CollectionsMarshal.AsSpan(list310); + index3 = 0; + span310[index3] = new GatheredItem { ItemId = 38296u, ItemCount = 3 }; questStep44.ItemsToGather = list310; reference204 = questStep44; - ref QuestStep reference205 = ref span125[1]; + num2++; + ref QuestStep reference205 = ref span308[num2]; QuestStep questStep45 = new QuestStep(EInteractionType.Gather, null, null, 1073); - num3 = 1; - List list311 = new List(num3); - CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list311 = new List(index3); + CollectionsMarshal.SetCount(list311, index3); + Span span311 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span311[num3] = EExtendedClassJob.Botanist; questStep45.RequiredQuestAcceptedJob = list311; num3 = 1; List list312 = new List(num3); CollectionsMarshal.SetCount(list312, num3); - CollectionsMarshal.AsSpan(list312)[0] = new GatheredItem + Span span312 = CollectionsMarshal.AsSpan(list312); + index3 = 0; + span312[index3] = new GatheredItem { ItemId = 38320u, ItemCount = 3 }; questStep45.ItemsToGather = list312; reference205 = questStep45; - span125[2] = new QuestStep(EInteractionType.Interact, 1044075u, new Vector3(-64.4389f, 493.32922f, -4.409851f), 1073); + num2++; + span308[num2] = new QuestStep(EInteractionType.Interact, 1044075u, new Vector3(-64.4389f, 493.32922f, -4.409851f), 1073); obj151.Steps = list308; reference203 = obj151; - ref QuestSequence reference206 = ref span123[3]; + num++; + ref QuestSequence reference206 = ref span305[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue @@ -315499,12 +383189,14 @@ public static class AssemblyQuestLoader num2 = 2; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - Span span126 = CollectionsMarshal.AsSpan(list313); - span126[0] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + Span span313 = CollectionsMarshal.AsSpan(list313); + index2 = 0; + span313[index2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - span126[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span313[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj152.Steps = list313; reference206 = obj152; questRoot31.QuestSequence = list305; @@ -315514,24 +383206,30 @@ public static class AssemblyQuestLoader num = 1; List list314 = new List(num); CollectionsMarshal.SetCount(list314, num); - CollectionsMarshal.AsSpan(list314)[0] = "liza"; + Span span314 = CollectionsMarshal.AsSpan(list314); + index = 0; + span314[index] = "liza"; questRoot32.Author = list314; - num = 3; - List list315 = new List(num); - CollectionsMarshal.SetCount(list315, num); - Span span127 = CollectionsMarshal.AsSpan(list315); - ref QuestSequence reference207 = ref span127[0]; + index = 3; + List list315 = new List(index); + CollectionsMarshal.SetCount(list315, index); + Span span315 = CollectionsMarshal.AsSpan(list315); + num = 0; + ref QuestSequence reference207 = ref span315[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + Span span316 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + span316[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj153.Steps = list316; reference207 = obj153; - ref QuestSequence reference208 = ref span127[1]; + num++; + ref QuestSequence reference208 = ref span315[num]; QuestSequence obj154 = new QuestSequence { Sequence = 1 @@ -315539,63 +383237,77 @@ public static class AssemblyQuestLoader num2 = 3; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - Span span128 = CollectionsMarshal.AsSpan(list317); - ref QuestStep reference209 = ref span128[0]; + Span span317 = CollectionsMarshal.AsSpan(list317); + index2 = 0; + ref QuestStep reference209 = ref span317[index2]; QuestStep questStep46 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - CollectionsMarshal.AsSpan(list318)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list318 = new List(index3); + CollectionsMarshal.SetCount(list318, index3); + Span span318 = CollectionsMarshal.AsSpan(list318); + num3 = 0; + span318[num3] = EExtendedClassJob.Miner; questStep46.RequiredQuestAcceptedJob = list318; num3 = 1; List list319 = new List(num3); CollectionsMarshal.SetCount(list319, num3); - CollectionsMarshal.AsSpan(list319)[0] = new GatheredItem + Span span319 = CollectionsMarshal.AsSpan(list319); + index3 = 0; + span319[index3] = new GatheredItem { ItemId = 38297u, ItemCount = 3 }; questStep46.ItemsToGather = list319; reference209 = questStep46; - ref QuestStep reference210 = ref span128[1]; + index2++; + ref QuestStep reference210 = ref span317[index2]; QuestStep questStep47 = new QuestStep(EInteractionType.Gather, null, null, 960); - num3 = 1; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - CollectionsMarshal.AsSpan(list320)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list320 = new List(index3); + CollectionsMarshal.SetCount(list320, index3); + Span span320 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span320[num3] = EExtendedClassJob.Botanist; questStep47.RequiredQuestAcceptedJob = list320; num3 = 1; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - CollectionsMarshal.AsSpan(list321)[0] = new GatheredItem + Span span321 = CollectionsMarshal.AsSpan(list321); + index3 = 0; + span321[index3] = new GatheredItem { ItemId = 38321u, ItemCount = 3 }; questStep47.ItemsToGather = list321; reference210 = questStep47; - span128[2] = new QuestStep(EInteractionType.Interact, 1044076u, new Vector3(-499.96188f, 77.00467f, 241.07727f), 960) + index2++; + span317[index2] = new QuestStep(EInteractionType.Interact, 1044076u, new Vector3(-499.96188f, 77.00467f, 241.07727f), 960) { StopDistance = 9f, AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; obj154.Steps = list317; reference208 = obj154; - ref QuestSequence reference211 = ref span127[2]; + num++; + ref QuestSequence reference211 = ref span315[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - Span span129 = CollectionsMarshal.AsSpan(list322); - span129[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + Span span322 = CollectionsMarshal.AsSpan(list322); + num2 = 0; + span322[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span129[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span322[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj155.Steps = list322; reference211 = obj155; questRoot32.QuestSequence = list315; @@ -315605,13 +383317,16 @@ public static class AssemblyQuestLoader num = 1; List list323 = new List(num); CollectionsMarshal.SetCount(list323, num); - CollectionsMarshal.AsSpan(list323)[0] = "liza"; + Span span323 = CollectionsMarshal.AsSpan(list323); + index = 0; + span323[index] = "liza"; questRoot33.Author = list323; - num = 3; - List list324 = new List(num); - CollectionsMarshal.SetCount(list324, num); - Span span130 = CollectionsMarshal.AsSpan(list324); - ref QuestSequence reference212 = ref span130[0]; + index = 3; + List list324 = new List(index); + CollectionsMarshal.SetCount(list324, index); + Span span324 = CollectionsMarshal.AsSpan(list324); + num = 0; + ref QuestSequence reference212 = ref span324[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 @@ -315619,62 +383334,77 @@ public static class AssemblyQuestLoader num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + Span span325 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span325[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj156.Steps = list325; reference212 = obj156; - ref QuestSequence reference213 = ref span130[1]; + num++; + ref QuestSequence reference213 = ref span324[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - Span span131 = CollectionsMarshal.AsSpan(list326); - ref QuestStep reference214 = ref span131[0]; + index2 = 3; + List list326 = new List(index2); + CollectionsMarshal.SetCount(list326, index2); + Span span326 = CollectionsMarshal.AsSpan(list326); + num2 = 0; + ref QuestStep reference214 = ref span326[num2]; QuestStep obj158 = new QuestStep(EInteractionType.Gather, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; - num3 = 1; - List list327 = new List(num3); - CollectionsMarshal.SetCount(list327, num3); - CollectionsMarshal.AsSpan(list327)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list327 = new List(index3); + CollectionsMarshal.SetCount(list327, index3); + Span span327 = CollectionsMarshal.AsSpan(list327); + num3 = 0; + span327[num3] = EExtendedClassJob.Miner; obj158.RequiredQuestAcceptedJob = list327; num3 = 1; List list328 = new List(num3); CollectionsMarshal.SetCount(list328, num3); - CollectionsMarshal.AsSpan(list328)[0] = new GatheredItem + Span span328 = CollectionsMarshal.AsSpan(list328); + index3 = 0; + span328[index3] = new GatheredItem { ItemId = 38299u, ItemCount = 3 }; obj158.ItemsToGather = list328; reference214 = obj158; - ref QuestStep reference215 = ref span131[1]; + num2++; + ref QuestStep reference215 = ref span326[num2]; QuestStep obj159 = new QuestStep(EInteractionType.Gather, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; - num3 = 1; - List list329 = new List(num3); - CollectionsMarshal.SetCount(list329, num3); - CollectionsMarshal.AsSpan(list329)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list329 = new List(index3); + CollectionsMarshal.SetCount(list329, index3); + Span span329 = CollectionsMarshal.AsSpan(list329); + num3 = 0; + span329[num3] = EExtendedClassJob.Botanist; obj159.RequiredQuestAcceptedJob = list329; num3 = 1; List list330 = new List(num3); CollectionsMarshal.SetCount(list330, num3); - CollectionsMarshal.AsSpan(list330)[0] = new GatheredItem + Span span330 = CollectionsMarshal.AsSpan(list330); + index3 = 0; + span330[index3] = new GatheredItem { ItemId = 38323u, ItemCount = 3 }; obj159.ItemsToGather = list330; reference215 = obj159; - span131[2] = new QuestStep(EInteractionType.Interact, 1044081u, new Vector3(-503.99023f, 74.16917f, 261.82947f), 960); + num2++; + span326[num2] = new QuestStep(EInteractionType.Interact, 1044081u, new Vector3(-503.99023f, 74.16917f, 261.82947f), 960); obj157.Steps = list326; reference213 = obj157; - ref QuestSequence reference216 = ref span130[2]; + num++; + ref QuestSequence reference216 = ref span324[num]; QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue @@ -315682,13 +383412,15 @@ public static class AssemblyQuestLoader num2 = 2; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - Span span132 = CollectionsMarshal.AsSpan(list331); - span132[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span331 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span331[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span132[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span331[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj160.Steps = list331; reference216 = obj160; questRoot33.QuestSequence = list324; @@ -315698,24 +383430,30 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - CollectionsMarshal.AsSpan(list332)[0] = "liza"; + Span span332 = CollectionsMarshal.AsSpan(list332); + index = 0; + span332[index] = "liza"; questRoot34.Author = list332; - num = 4; - List list333 = new List(num); - CollectionsMarshal.SetCount(list333, num); - Span span133 = CollectionsMarshal.AsSpan(list333); - ref QuestSequence reference217 = ref span133[0]; + index = 4; + List list333 = new List(index); + CollectionsMarshal.SetCount(list333, index); + Span span333 = CollectionsMarshal.AsSpan(list333); + num = 0; + ref QuestSequence reference217 = ref span333[num]; QuestSequence obj161 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + Span span334 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span334[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj161.Steps = list334; reference217 = obj161; - ref QuestSequence reference218 = ref span133[1]; + num++; + ref QuestSequence reference218 = ref span333[num]; QuestSequence obj162 = new QuestSequence { Sequence = 1 @@ -315723,16 +383461,20 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - ref QuestStep reference219 = ref CollectionsMarshal.AsSpan(list335)[0]; + Span span335 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + ref QuestStep reference219 = ref span335[index2]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 1044078u, new Vector3(97.154175f, 269.09738f, -498.3139f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; - num3 = 1; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = new DialogueChoice + index3 = 1; + List list336 = new List(index3); + CollectionsMarshal.SetCount(list336, index3); + Span span336 = CollectionsMarshal.AsSpan(list336); + num3 = 0; + span336[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANOMI127_04633_Q1_000_000"), @@ -315742,21 +383484,25 @@ public static class AssemblyQuestLoader reference219 = obj163; obj162.Steps = list335; reference218 = obj162; - ref QuestSequence reference220 = ref span133[2]; + num++; + ref QuestSequence reference220 = ref span333[num]; QuestSequence obj164 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.Interact, 1044079u, new Vector3(99.412476f, 269.09763f, -497.1237f), 960) + index2 = 1; + List list337 = new List(index2); + CollectionsMarshal.SetCount(list337, index2); + Span span337 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + span337[num2] = new QuestStep(EInteractionType.Interact, 1044079u, new Vector3(99.412476f, 269.09763f, -497.1237f), 960) { StopDistance = 5f }; obj164.Steps = list337; reference220 = obj164; - ref QuestSequence reference221 = ref span133[3]; + num++; + ref QuestSequence reference221 = ref span333[num]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue @@ -315764,13 +383510,15 @@ public static class AssemblyQuestLoader num2 = 2; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - Span span134 = CollectionsMarshal.AsSpan(list338); - span134[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span338 = CollectionsMarshal.AsSpan(list338); + index2 = 0; + span338[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span134[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2++; + span338[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj165.Steps = list338; reference221 = obj165; questRoot34.QuestSequence = list333; @@ -315780,24 +383528,30 @@ public static class AssemblyQuestLoader num = 1; List list339 = new List(num); CollectionsMarshal.SetCount(list339, num); - CollectionsMarshal.AsSpan(list339)[0] = "plogon_enjoyer"; + Span span339 = CollectionsMarshal.AsSpan(list339); + index = 0; + span339[index] = "plogon_enjoyer"; questRoot35.Author = list339; - num = 3; - List list340 = new List(num); - CollectionsMarshal.SetCount(list340, num); - Span span135 = CollectionsMarshal.AsSpan(list340); - ref QuestSequence reference222 = ref span135[0]; + index = 3; + List list340 = new List(index); + CollectionsMarshal.SetCount(list340, index); + Span span340 = CollectionsMarshal.AsSpan(list340); + num = 0; + ref QuestSequence reference222 = ref span340[num]; QuestSequence obj166 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + index2 = 1; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + Span span341 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span341[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj166.Steps = list341; reference222 = obj166; - ref QuestSequence reference223 = ref span135[1]; + num++; + ref QuestSequence reference223 = ref span340[num]; QuestSequence obj167 = new QuestSequence { Sequence = 1 @@ -315805,66 +383559,81 @@ public static class AssemblyQuestLoader num2 = 4; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span136 = CollectionsMarshal.AsSpan(list342); - span136[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.4821f, 143.1448f), 960) + Span span342 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span342[index2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.4821f, 143.1448f), 960) { TargetTerritoryId = (ushort)1073 }; - ref QuestStep reference224 = ref span136[1]; + index2++; + ref QuestStep reference224 = ref span342[index2]; QuestStep questStep48 = new QuestStep(EInteractionType.Gather, null, null, 1073); num3 = 1; List list343 = new List(num3); CollectionsMarshal.SetCount(list343, num3); - CollectionsMarshal.AsSpan(list343)[0] = EExtendedClassJob.Miner; + Span span343 = CollectionsMarshal.AsSpan(list343); + index3 = 0; + span343[index3] = EExtendedClassJob.Miner; questStep48.RequiredQuestAcceptedJob = list343; - num3 = 1; - List list344 = new List(num3); - CollectionsMarshal.SetCount(list344, num3); - CollectionsMarshal.AsSpan(list344)[0] = new GatheredItem + index3 = 1; + List list344 = new List(index3); + CollectionsMarshal.SetCount(list344, index3); + Span span344 = CollectionsMarshal.AsSpan(list344); + num3 = 0; + span344[num3] = new GatheredItem { ItemId = 38298u, ItemCount = 3 }; questStep48.ItemsToGather = list344; reference224 = questStep48; - ref QuestStep reference225 = ref span136[2]; + index2++; + ref QuestStep reference225 = ref span342[index2]; QuestStep questStep49 = new QuestStep(EInteractionType.Gather, null, null, 1073); num3 = 1; List list345 = new List(num3); CollectionsMarshal.SetCount(list345, num3); - CollectionsMarshal.AsSpan(list345)[0] = EExtendedClassJob.Botanist; + Span span345 = CollectionsMarshal.AsSpan(list345); + index3 = 0; + span345[index3] = EExtendedClassJob.Botanist; questStep49.RequiredQuestAcceptedJob = list345; - num3 = 1; - List list346 = new List(num3); - CollectionsMarshal.SetCount(list346, num3); - CollectionsMarshal.AsSpan(list346)[0] = new GatheredItem + index3 = 1; + List list346 = new List(index3); + CollectionsMarshal.SetCount(list346, index3); + Span span346 = CollectionsMarshal.AsSpan(list346); + num3 = 0; + span346[num3] = new GatheredItem { ItemId = 38322u, ItemCount = 3 }; questStep49.ItemsToGather = list346; reference225 = questStep49; - span136[3] = new QuestStep(EInteractionType.Interact, 1044077u, new Vector3(474.9674f, 437.00165f, 338.094f), 960) + index2++; + span342[index2] = new QuestStep(EInteractionType.Interact, 1044077u, new Vector3(474.9674f, 437.00165f, 338.094f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj167.Steps = list342; reference223 = obj167; - ref QuestSequence reference226 = ref span135[2]; + num++; + ref QuestSequence reference226 = ref span340[num]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - Span span137 = CollectionsMarshal.AsSpan(list347); - span137[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + Span span347 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + span347[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true }; - span137[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + num2++; + span347[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj168.Steps = list347; reference226 = obj168; questRoot35.QuestSequence = list340; @@ -315874,13 +383643,16 @@ public static class AssemblyQuestLoader num = 1; List list348 = new List(num); CollectionsMarshal.SetCount(list348, num); - CollectionsMarshal.AsSpan(list348)[0] = "liza"; + Span span348 = CollectionsMarshal.AsSpan(list348); + index = 0; + span348[index] = "liza"; questRoot36.Author = list348; - num = 5; - List list349 = new List(num); - CollectionsMarshal.SetCount(list349, num); - Span span138 = CollectionsMarshal.AsSpan(list349); - ref QuestSequence reference227 = ref span138[0]; + index = 5; + List list349 = new List(index); + CollectionsMarshal.SetCount(list349, index); + Span span349 = CollectionsMarshal.AsSpan(list349); + num = 0; + ref QuestSequence reference227 = ref span349[num]; QuestSequence obj169 = new QuestSequence { Sequence = 0 @@ -315888,7 +383660,9 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041258u, new Vector3(-639.704f, -27.175835f, 301.07568f), 956) + Span span350 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + span350[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041258u, new Vector3(-639.704f, -27.175835f, 301.07568f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, SkipConditions = new SkipConditions @@ -315901,22 +383675,26 @@ public static class AssemblyQuestLoader }; obj169.Steps = list350; reference227 = obj169; - ref QuestSequence reference228 = ref span138[1]; + num++; + ref QuestSequence reference228 = ref span349[num]; QuestSequence obj170 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1041270u, new Vector3(-830.5333f, 169.52928f, -56.809387f), 961) + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + Span span351 = CollectionsMarshal.AsSpan(list351); + num2 = 0; + span351[num2] = new QuestStep(EInteractionType.Interact, 1041270u, new Vector3(-830.5333f, 169.52928f, -56.809387f), 961) { Fly = true, AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; obj170.Steps = list351; reference228 = obj170; - ref QuestSequence reference229 = ref span138[2]; + num++; + ref QuestSequence reference229 = ref span349[num]; QuestSequence obj171 = new QuestSequence { Sequence = 2 @@ -315924,28 +383702,34 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1043488u, new Vector3(643.48804f, 158.6388f, -254.35266f), 961) + Span span352 = CollectionsMarshal.AsSpan(list352); + index2 = 0; + span352[index2] = new QuestStep(EInteractionType.Interact, 1043488u, new Vector3(643.48804f, 158.6388f, -254.35266f), 961) { Fly = true, AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; obj171.Steps = list352; reference229 = obj171; - ref QuestSequence reference230 = ref span138[3]; + num++; + ref QuestSequence reference230 = ref span349[num]; QuestSequence obj172 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.Interact, 1041273u, new Vector3(808.3772f, 152.22246f, -240.4975f), 961) + index2 = 1; + List list353 = new List(index2); + CollectionsMarshal.SetCount(list353, index2); + Span span353 = CollectionsMarshal.AsSpan(list353); + num2 = 0; + span353[num2] = new QuestStep(EInteractionType.Interact, 1041273u, new Vector3(808.3772f, 152.22246f, -240.4975f), 961) { Fly = true }; obj172.Steps = list353; reference230 = obj172; - ref QuestSequence reference231 = ref span138[4]; + num++; + ref QuestSequence reference231 = ref span349[num]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue @@ -315953,7 +383737,9 @@ public static class AssemblyQuestLoader num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043489u, new Vector3(99.99231f, -9.999999E-12f, -22.171448f), 1025) + Span span354 = CollectionsMarshal.AsSpan(list354); + index2 = 0; + span354[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043489u, new Vector3(99.99231f, -9.999999E-12f, -22.171448f), 1025) { StopDistance = 4f, NextQuestId = new QuestId(4636) @@ -315967,27 +383753,33 @@ public static class AssemblyQuestLoader num = 1; List list355 = new List(num); CollectionsMarshal.SetCount(list355, num); - CollectionsMarshal.AsSpan(list355)[0] = "liza"; + Span span355 = CollectionsMarshal.AsSpan(list355); + index = 0; + span355[index] = "liza"; questRoot37.Author = list355; - num = 3; - List list356 = new List(num); - CollectionsMarshal.SetCount(list356, num); - Span span139 = CollectionsMarshal.AsSpan(list356); - ref QuestSequence reference232 = ref span139[0]; + index = 3; + List list356 = new List(index); + CollectionsMarshal.SetCount(list356, index); + Span span356 = CollectionsMarshal.AsSpan(list356); + num = 0; + ref QuestSequence reference232 = ref span356[num]; QuestSequence obj174 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043489u, new Vector3(99.99231f, -9.999999E-12f, -22.171448f), 1025) + index2 = 1; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + Span span357 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span357[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043489u, new Vector3(99.99231f, -9.999999E-12f, -22.171448f), 1025) { StopDistance = 4f }; obj174.Steps = list357; reference232 = obj174; - ref QuestSequence reference233 = ref span139[1]; + num++; + ref QuestSequence reference233 = ref span356[num]; QuestSequence obj175 = new QuestSequence { Sequence = 1 @@ -315995,7 +383787,9 @@ public static class AssemblyQuestLoader num2 = 1; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) + Span span358 = CollectionsMarshal.AsSpan(list358); + index2 = 0; + span358[index2] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -316004,15 +383798,18 @@ public static class AssemblyQuestLoader }; obj175.Steps = list358; reference233 = obj175; - ref QuestSequence reference234 = ref span139[2]; + num++; + ref QuestSequence reference234 = ref span356[num]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list359 = new List(num2); - CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043492u, new Vector3(100.175415f, -9.999999E-12f, -25.833557f), 1025) + index2 = 1; + List list359 = new List(index2); + CollectionsMarshal.SetCount(list359, index2); + Span span359 = CollectionsMarshal.AsSpan(list359); + num2 = 0; + span359[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043492u, new Vector3(100.175415f, -9.999999E-12f, -25.833557f), 1025) { StopDistance = 4f, NextQuestId = new QuestId(4637) @@ -316026,13 +383823,16 @@ public static class AssemblyQuestLoader num = 1; List list360 = new List(num); CollectionsMarshal.SetCount(list360, num); - CollectionsMarshal.AsSpan(list360)[0] = "liza"; + Span span360 = CollectionsMarshal.AsSpan(list360); + index = 0; + span360[index] = "liza"; questRoot38.Author = list360; - num = 5; - List list361 = new List(num); - CollectionsMarshal.SetCount(list361, num); - Span span140 = CollectionsMarshal.AsSpan(list361); - ref QuestSequence reference235 = ref span140[0]; + index = 5; + List list361 = new List(index); + CollectionsMarshal.SetCount(list361, index); + Span span361 = CollectionsMarshal.AsSpan(list361); + num = 0; + ref QuestSequence reference235 = ref span361[num]; QuestSequence obj177 = new QuestSequence { Sequence = 0 @@ -316040,21 +383840,27 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043491u, new Vector3(101.79285f, -1E-11f, -26.901672f), 1025); + Span span362 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span362[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043491u, new Vector3(101.79285f, -1E-11f, -26.901672f), 1025); obj177.Steps = list362; reference235 = obj177; - ref QuestSequence reference236 = ref span140[1]; + num++; + ref QuestSequence reference236 = ref span361[num]; QuestSequence obj178 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.Interact, 1043494u, new Vector3(99.99231f, -9.999997E-12f, 99.83972f), 1025); + index2 = 1; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + Span span363 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + span363[num2] = new QuestStep(EInteractionType.Interact, 1043494u, new Vector3(99.99231f, -9.999997E-12f, 99.83972f), 1025); obj178.Steps = list363; reference236 = obj178; - ref QuestSequence reference237 = ref span140[2]; + num++; + ref QuestSequence reference237 = ref span361[num]; QuestSequence obj179 = new QuestSequence { Sequence = 2 @@ -316062,18 +383868,23 @@ public static class AssemblyQuestLoader num2 = 1; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Interact, 1043493u, new Vector3(98.31384f, -9.999999E-12f, -26.901672f), 1025); + Span span364 = CollectionsMarshal.AsSpan(list364); + index2 = 0; + span364[index2] = new QuestStep(EInteractionType.Interact, 1043493u, new Vector3(98.31384f, -9.999999E-12f, -26.901672f), 1025); obj179.Steps = list364; reference237 = obj179; - ref QuestSequence reference238 = ref span140[3]; + num++; + ref QuestSequence reference238 = ref span361[num]; QuestSequence obj180 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) + index2 = 1; + List list365 = new List(index2); + CollectionsMarshal.SetCount(list365, index2); + Span span365 = CollectionsMarshal.AsSpan(list365); + num2 = 0; + span365[num2] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -316082,7 +383893,8 @@ public static class AssemblyQuestLoader }; obj180.Steps = list365; reference238 = obj180; - ref QuestSequence reference239 = ref span140[4]; + num++; + ref QuestSequence reference239 = ref span361[num]; QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue @@ -316090,7 +383902,9 @@ public static class AssemblyQuestLoader num2 = 1; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043506u, new Vector3(102.12854f, -9.999999E-12f, -26.56604f), 1025) + Span span366 = CollectionsMarshal.AsSpan(list366); + index2 = 0; + span366[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043506u, new Vector3(102.12854f, -9.999999E-12f, -26.56604f), 1025) { StopDistance = 4f, NextQuestId = new QuestId(4638) @@ -316104,27 +383918,33 @@ public static class AssemblyQuestLoader num = 1; List list367 = new List(num); CollectionsMarshal.SetCount(list367, num); - CollectionsMarshal.AsSpan(list367)[0] = "liza"; + Span span367 = CollectionsMarshal.AsSpan(list367); + index = 0; + span367[index] = "liza"; questRoot39.Author = list367; - num = 4; - List list368 = new List(num); - CollectionsMarshal.SetCount(list368, num); - Span span141 = CollectionsMarshal.AsSpan(list368); - ref QuestSequence reference240 = ref span141[0]; + index = 4; + List list368 = new List(index); + CollectionsMarshal.SetCount(list368, index); + Span span368 = CollectionsMarshal.AsSpan(list368); + num = 0; + ref QuestSequence reference240 = ref span368[num]; QuestSequence obj182 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list369 = new List(num2); - CollectionsMarshal.SetCount(list369, num2); - CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043506u, new Vector3(102.12854f, -9.999999E-12f, -26.56604f), 1025) + index2 = 1; + List list369 = new List(index2); + CollectionsMarshal.SetCount(list369, index2); + Span span369 = CollectionsMarshal.AsSpan(list369); + num2 = 0; + span369[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043506u, new Vector3(102.12854f, -9.999999E-12f, -26.56604f), 1025) { StopDistance = 4f }; obj182.Steps = list369; reference240 = obj182; - ref QuestSequence reference241 = ref span141[1]; + num++; + ref QuestSequence reference241 = ref span368[num]; QuestSequence obj183 = new QuestSequence { Sequence = 1 @@ -316132,21 +383952,26 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.Interact, 1043785u, new Vector3(98.55798f, -1E-11f, -26.474487f), 1025) + Span span370 = CollectionsMarshal.AsSpan(list370); + index2 = 0; + span370[index2] = new QuestStep(EInteractionType.Interact, 1043785u, new Vector3(98.55798f, -1E-11f, -26.474487f), 1025) { StopDistance = 4f }; obj183.Steps = list370; reference241 = obj183; - ref QuestSequence reference242 = ref span141[2]; + num++; + ref QuestSequence reference242 = ref span368[num]; QuestSequence obj184 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list371 = new List(num2); - CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) + index2 = 1; + List list371 = new List(index2); + CollectionsMarshal.SetCount(list371, index2); + Span span371 = CollectionsMarshal.AsSpan(list371); + num2 = 0; + span371[num2] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -316155,7 +383980,8 @@ public static class AssemblyQuestLoader }; obj184.Steps = list371; reference242 = obj184; - ref QuestSequence reference243 = ref span141[3]; + num++; + ref QuestSequence reference243 = ref span368[num]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -316163,7 +383989,9 @@ public static class AssemblyQuestLoader num2 = 1; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - CollectionsMarshal.AsSpan(list372)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043495u, new Vector3(98.71057f, -9.999999E-12f, -26.260803f), 1025) + Span span372 = CollectionsMarshal.AsSpan(list372); + index2 = 0; + span372[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043495u, new Vector3(98.71057f, -9.999999E-12f, -26.260803f), 1025) { StopDistance = 4f, NextQuestId = new QuestId(4639) @@ -316177,27 +384005,33 @@ public static class AssemblyQuestLoader num = 1; List list373 = new List(num); CollectionsMarshal.SetCount(list373, num); - CollectionsMarshal.AsSpan(list373)[0] = "liza"; + Span span373 = CollectionsMarshal.AsSpan(list373); + index = 0; + span373[index] = "liza"; questRoot40.Author = list373; - num = 3; - List list374 = new List(num); - CollectionsMarshal.SetCount(list374, num); - Span span142 = CollectionsMarshal.AsSpan(list374); - ref QuestSequence reference244 = ref span142[0]; + index = 3; + List list374 = new List(index); + CollectionsMarshal.SetCount(list374, index); + Span span374 = CollectionsMarshal.AsSpan(list374); + num = 0; + ref QuestSequence reference244 = ref span374[num]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list375 = new List(num2); - CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043495u, new Vector3(98.71057f, -9.999999E-12f, -26.260803f), 1025) + index2 = 1; + List list375 = new List(index2); + CollectionsMarshal.SetCount(list375, index2); + Span span375 = CollectionsMarshal.AsSpan(list375); + num2 = 0; + span375[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043495u, new Vector3(98.71057f, -9.999999E-12f, -26.260803f), 1025) { StopDistance = 4f }; obj186.Steps = list375; reference244 = obj186; - ref QuestSequence reference245 = ref span142[1]; + num++; + ref QuestSequence reference245 = ref span374[num]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -316205,7 +384039,9 @@ public static class AssemblyQuestLoader num2 = 1; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) + Span span376 = CollectionsMarshal.AsSpan(list376); + index2 = 0; + span376[index2] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -316214,15 +384050,18 @@ public static class AssemblyQuestLoader }; obj187.Steps = list376; reference245 = obj187; - ref QuestSequence reference246 = ref span142[2]; + num++; + ref QuestSequence reference246 = ref span374[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043497u, new Vector3(95.93347f, -4.4899712E-13f, 95.59766f), 1093) + index2 = 1; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + Span span377 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span377[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043497u, new Vector3(95.93347f, -4.4899712E-13f, 95.59766f), 1093) { StopDistance = 6f, NextQuestId = new QuestId(4640) @@ -316236,13 +384075,16 @@ public static class AssemblyQuestLoader num = 1; List list378 = new List(num); CollectionsMarshal.SetCount(list378, num); - CollectionsMarshal.AsSpan(list378)[0] = "liza"; + Span span378 = CollectionsMarshal.AsSpan(list378); + index = 0; + span378[index] = "liza"; questRoot41.Author = list378; - num = 5; - List list379 = new List(num); - CollectionsMarshal.SetCount(list379, num); - Span span143 = CollectionsMarshal.AsSpan(list379); - ref QuestSequence reference247 = ref span143[0]; + index = 5; + List list379 = new List(index); + CollectionsMarshal.SetCount(list379, index); + Span span379 = CollectionsMarshal.AsSpan(list379); + num = 0; + ref QuestSequence reference247 = ref span379[num]; QuestSequence obj189 = new QuestSequence { Sequence = 0 @@ -316250,24 +384092,30 @@ public static class AssemblyQuestLoader num2 = 1; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043497u, new Vector3(95.93347f, -4.4899712E-13f, 95.59766f), 1093) + Span span380 = CollectionsMarshal.AsSpan(list380); + index2 = 0; + span380[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043497u, new Vector3(95.93347f, -4.4899712E-13f, 95.59766f), 1093) { StopDistance = 6f }; obj189.Steps = list380; reference247 = obj189; - ref QuestSequence reference248 = ref span143[1]; + num++; + ref QuestSequence reference248 = ref span379[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.Interact, 1043499u, new Vector3(100.35852f, 0f, 94.71277f), 1093); + index2 = 1; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + Span span381 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span381[num2] = new QuestStep(EInteractionType.Interact, 1043499u, new Vector3(100.35852f, 0f, 94.71277f), 1093); obj190.Steps = list381; reference248 = obj190; - ref QuestSequence reference249 = ref span143[2]; + num++; + ref QuestSequence reference249 = ref span379[num]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -316275,29 +384123,35 @@ public static class AssemblyQuestLoader num2 = 2; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - Span span144 = CollectionsMarshal.AsSpan(list382); - span144[0] = new QuestStep(EInteractionType.Interact, 2013032u, new Vector3(99.9981f, 1.1515f, 120.2372f), 1093) + Span span382 = CollectionsMarshal.AsSpan(list382); + index2 = 0; + span382[index2] = new QuestStep(EInteractionType.Interact, 2013032u, new Vector3(99.9981f, 1.1515f, 120.2372f), 1093) { TargetTerritoryId = (ushort)1025 }; - span144[1] = new QuestStep(EInteractionType.Interact, 1043500u, new Vector3(99.809204f, -1E-11f, -25.68097f), 1025); + index2++; + span382[index2] = new QuestStep(EInteractionType.Interact, 1043500u, new Vector3(99.809204f, -1E-11f, -25.68097f), 1025); obj191.Steps = list382; reference249 = obj191; - ref QuestSequence reference250 = ref span143[3]; + num++; + ref QuestSequence reference250 = ref span379[num]; QuestSequence obj192 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list383 = new List(num2); - CollectionsMarshal.SetCount(list383, num2); - CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.Interact, 1043503u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) + index2 = 1; + List list383 = new List(index2); + CollectionsMarshal.SetCount(list383, index2); + Span span383 = CollectionsMarshal.AsSpan(list383); + num2 = 0; + span383[num2] = new QuestStep(EInteractionType.Interact, 1043503u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; obj192.Steps = list383; reference250 = obj192; - ref QuestSequence reference251 = ref span143[4]; + num++; + ref QuestSequence reference251 = ref span379[num]; QuestSequence obj193 = new QuestSequence { Sequence = byte.MaxValue @@ -316305,7 +384159,9 @@ public static class AssemblyQuestLoader num2 = 1; List list384 = new List(num2); CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043504u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) + Span span384 = CollectionsMarshal.AsSpan(list384); + index2 = 0; + span384[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043504u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) { NextQuestId = new QuestId(4756) }; @@ -316318,33 +384174,40 @@ public static class AssemblyQuestLoader num = 1; List list385 = new List(num); CollectionsMarshal.SetCount(list385, num); - CollectionsMarshal.AsSpan(list385)[0] = "liza"; + Span span385 = CollectionsMarshal.AsSpan(list385); + index = 0; + span385[index] = "liza"; questRoot42.Author = list385; - num = 10; - List list386 = new List(num); - CollectionsMarshal.SetCount(list386, num); - Span span145 = CollectionsMarshal.AsSpan(list386); - ref QuestSequence reference252 = ref span145[0]; + index = 10; + List list386 = new List(index); + CollectionsMarshal.SetCount(list386, index); + Span span386 = CollectionsMarshal.AsSpan(list386); + num = 0; + ref QuestSequence reference252 = ref span386[num]; QuestSequence obj194 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list387 = new List(num2); - CollectionsMarshal.SetCount(list387, num2); - ref QuestStep reference253 = ref CollectionsMarshal.AsSpan(list387)[0]; + index2 = 1; + List list387 = new List(index2); + CollectionsMarshal.SetCount(list387, index2); + Span span387 = CollectionsMarshal.AsSpan(list387); + num2 = 0; + ref QuestStep reference253 = ref span387[num2]; QuestStep questStep50 = new QuestStep(EInteractionType.AcceptQuest, 1042512u, new Vector3(31.387817f, -5.021957E-07f, -0.65618896f), 963); num3 = 2; List list388 = new List(num3); CollectionsMarshal.SetCount(list388, num3); - Span span146 = CollectionsMarshal.AsSpan(list388); - span146[0] = new DialogueChoice + Span span388 = CollectionsMarshal.AsSpan(list388); + index3 = 0; + span388[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB821_04641_Q2_000_000"), Answer = new ExcelRef("TEXT_CHRHDB821_04641_A2_000_002") }; - span146[1] = new DialogueChoice + index3++; + span388[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB821_04641_Q3_000_000"), @@ -316354,7 +384217,8 @@ public static class AssemblyQuestLoader reference253 = questStep50; obj194.Steps = list387; reference252 = obj194; - ref QuestSequence reference254 = ref span145[1]; + num++; + ref QuestSequence reference254 = ref span386[num]; QuestSequence obj195 = new QuestSequence { Sequence = 1 @@ -316362,36 +384226,43 @@ public static class AssemblyQuestLoader num2 = 1; List list389 = new List(num2); CollectionsMarshal.SetCount(list389, num2); - CollectionsMarshal.AsSpan(list389)[0] = new QuestStep(EInteractionType.Interact, 1042524u, new Vector3(-432.70013f, 22.328213f, 508.75085f), 958) + Span span389 = CollectionsMarshal.AsSpan(list389); + index2 = 0; + span389[index2] = new QuestStep(EInteractionType.Interact, 1042524u, new Vector3(-432.70013f, 22.328213f, 508.75085f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj195.Steps = list389; reference254 = obj195; - ref QuestSequence reference255 = ref span145[2]; + num++; + ref QuestSequence reference255 = ref span386[num]; QuestSequence obj196 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list390 = new List(num2); - CollectionsMarshal.SetCount(list390, num2); - Span span147 = CollectionsMarshal.AsSpan(list390); - span147[0] = new QuestStep(EInteractionType.Interact, 2012531u, new Vector3(-663.29443f, 132.6466f, 728.96924f), 959) + index2 = 3; + List list390 = new List(index2); + CollectionsMarshal.SetCount(list390, index2); + Span span390 = CollectionsMarshal.AsSpan(list390); + num2 = 0; + span390[num2] = new QuestStep(EInteractionType.Interact, 2012531u, new Vector3(-663.29443f, 132.6466f, 728.96924f), 959) { StopDistance = 0.5f, TargetTerritoryId = (ushort)1024, Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; - span147[1] = new QuestStep(EInteractionType.Interact, 2012529u, new Vector3(0.07623291f, 0.83917236f, 52.506226f), 1024) + num2++; + span390[num2] = new QuestStep(EInteractionType.Interact, 2012529u, new Vector3(0.07623291f, 0.83917236f, 52.506226f), 1024) { TargetTerritoryId = (ushort)958 }; - span147[2] = new QuestStep(EInteractionType.Interact, 1042525u, new Vector3(-446.0365f, 10.5f, -616.14404f), 958); + num2++; + span390[num2] = new QuestStep(EInteractionType.Interact, 1042525u, new Vector3(-446.0365f, 10.5f, -616.14404f), 958); obj196.Steps = list390; reference255 = obj196; - ref QuestSequence reference256 = ref span145[3]; + num++; + ref QuestSequence reference256 = ref span386[num]; QuestSequence obj197 = new QuestSequence { Sequence = 3 @@ -316399,24 +384270,30 @@ public static class AssemblyQuestLoader num2 = 1; List list391 = new List(num2); CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.Interact, 1042526u, new Vector3(-657.9232f, 130.61172f, 722.62134f), 959) + Span span391 = CollectionsMarshal.AsSpan(list391); + index2 = 0; + span391[index2] = new QuestStep(EInteractionType.Interact, 1042526u, new Vector3(-657.9232f, 130.61172f, 722.62134f), 959) { StopDistance = 7f }; obj197.Steps = list391; reference256 = obj197; - ref QuestSequence reference257 = ref span145[4]; + num++; + ref QuestSequence reference257 = ref span386[num]; QuestSequence obj198 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list392 = new List(num2); - CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Interact, 1042528u, new Vector3(-15.213318f, -129.20917f, -475.6695f), 959); + index2 = 1; + List list392 = new List(index2); + CollectionsMarshal.SetCount(list392, index2); + Span span392 = CollectionsMarshal.AsSpan(list392); + num2 = 0; + span392[num2] = new QuestStep(EInteractionType.Interact, 1042528u, new Vector3(-15.213318f, -129.20917f, -475.6695f), 959); obj198.Steps = list392; reference257 = obj198; - ref QuestSequence reference258 = ref span145[5]; + num++; + ref QuestSequence reference258 = ref span386[num]; QuestSequence obj199 = new QuestSequence { Sequence = 5 @@ -316424,29 +384301,35 @@ public static class AssemblyQuestLoader num2 = 1; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.Interact, 1042531u, new Vector3(-103.07471f, -137.41672f, -444.66315f), 959) + Span span393 = CollectionsMarshal.AsSpan(list393); + index2 = 0; + span393[index2] = new QuestStep(EInteractionType.Interact, 1042531u, new Vector3(-103.07471f, -137.41672f, -444.66315f), 959) { Fly = true }; obj199.Steps = list393; reference258 = obj199; - ref QuestSequence reference259 = ref span145[6]; + num++; + ref QuestSequence reference259 = ref span386[num]; QuestSequence obj200 = new QuestSequence { Sequence = 6 }; - num2 = 2; - List list394 = new List(num2); - CollectionsMarshal.SetCount(list394, num2); - Span span148 = CollectionsMarshal.AsSpan(list394); - span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-59.250706f, -133.00002f, -587.20355f), 959) + index2 = 2; + List list394 = new List(index2); + CollectionsMarshal.SetCount(list394, index2); + Span span394 = CollectionsMarshal.AsSpan(list394); + num2 = 0; + span394[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-59.250706f, -133.00002f, -587.20355f), 959) { Fly = true }; - span148[1] = new QuestStep(EInteractionType.Interact, 1042532u, new Vector3(-60.624146f, -132.80109f, -587.4266f), 959); + num2++; + span394[num2] = new QuestStep(EInteractionType.Interact, 1042532u, new Vector3(-60.624146f, -132.80109f, -587.4266f), 959); obj200.Steps = list394; reference259 = obj200; - ref QuestSequence reference260 = ref span145[7]; + num++; + ref QuestSequence reference260 = ref span386[num]; QuestSequence obj201 = new QuestSequence { Sequence = 7 @@ -316454,18 +384337,23 @@ public static class AssemblyQuestLoader num2 = 1; List list395 = new List(num2); CollectionsMarshal.SetCount(list395, num2); - CollectionsMarshal.AsSpan(list395)[0] = new QuestStep(EInteractionType.Interact, 1037816u, new Vector3(114.3053f, -132.87448f, -559.35f), 959); + Span span395 = CollectionsMarshal.AsSpan(list395); + index2 = 0; + span395[index2] = new QuestStep(EInteractionType.Interact, 1037816u, new Vector3(114.3053f, -132.87448f, -559.35f), 959); obj201.Steps = list395; reference260 = obj201; - ref QuestSequence reference261 = ref span145[8]; + num++; + ref QuestSequence reference261 = ref span386[num]; QuestSequence obj202 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list396 = new List(num2); - CollectionsMarshal.SetCount(list396, num2); - CollectionsMarshal.AsSpan(list396)[0] = new QuestStep(EInteractionType.Interact, 2013061u, new Vector3(249.19507f, 66.544556f, 367.2693f), 959) + index2 = 1; + List list396 = new List(index2); + CollectionsMarshal.SetCount(list396, index2); + Span span396 = CollectionsMarshal.AsSpan(list396); + num2 = 0; + span396[num2] = new QuestStep(EInteractionType.Interact, 2013061u, new Vector3(249.19507f, 66.544556f, 367.2693f), 959) { StopDistance = 0.5f, Fly = true, @@ -316473,7 +384361,8 @@ public static class AssemblyQuestLoader }; obj202.Steps = list396; reference261 = obj202; - ref QuestSequence reference262 = ref span145[9]; + num++; + ref QuestSequence reference262 = ref span386[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -316481,7 +384370,9 @@ public static class AssemblyQuestLoader num2 = 1; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042544u, new Vector3(324.422f, 130.1783f, 711.94006f), 959) + Span span397 = CollectionsMarshal.AsSpan(list397); + index2 = 0; + span397[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042544u, new Vector3(324.422f, 130.1783f, 711.94006f), 959) { StopDistance = 7f, NextQuestId = new QuestId(4642) @@ -316495,27 +384386,33 @@ public static class AssemblyQuestLoader num = 1; List list398 = new List(num); CollectionsMarshal.SetCount(list398, num); - CollectionsMarshal.AsSpan(list398)[0] = "liza"; + Span span398 = CollectionsMarshal.AsSpan(list398); + index = 0; + span398[index] = "liza"; questRoot43.Author = list398; - num = 6; - List list399 = new List(num); - CollectionsMarshal.SetCount(list399, num); - Span span149 = CollectionsMarshal.AsSpan(list399); - ref QuestSequence reference263 = ref span149[0]; + index = 6; + List list399 = new List(index); + CollectionsMarshal.SetCount(list399, index); + Span span399 = CollectionsMarshal.AsSpan(list399); + num = 0; + ref QuestSequence reference263 = ref span399[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list400 = new List(num2); - CollectionsMarshal.SetCount(list400, num2); - CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042544u, new Vector3(324.422f, 130.1783f, 711.94006f), 959) + index2 = 1; + List list400 = new List(index2); + CollectionsMarshal.SetCount(list400, index2); + Span span400 = CollectionsMarshal.AsSpan(list400); + num2 = 0; + span400[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042544u, new Vector3(324.422f, 130.1783f, 711.94006f), 959) { StopDistance = 6f }; obj204.Steps = list400; reference263 = obj204; - ref QuestSequence reference264 = ref span149[1]; + num++; + ref QuestSequence reference264 = ref span399[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -316523,28 +384420,34 @@ public static class AssemblyQuestLoader num2 = 1; List list401 = new List(num2); CollectionsMarshal.SetCount(list401, num2); - CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.Interact, 1042548u, new Vector3(1.5106201f, 70.01534f, -1.083435f), 959) + Span span401 = CollectionsMarshal.AsSpan(list401); + index2 = 0; + span401[index2] = new QuestStep(EInteractionType.Interact, 1042548u, new Vector3(1.5106201f, 70.01534f, -1.083435f), 959) { Fly = true }; obj205.Steps = list401; reference264 = obj205; - ref QuestSequence reference265 = ref span149[2]; + num++; + ref QuestSequence reference265 = ref span399[num]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list402 = new List(num2); - CollectionsMarshal.SetCount(list402, num2); - CollectionsMarshal.AsSpan(list402)[0] = new QuestStep(EInteractionType.Interact, 2013062u, new Vector3(-129.83911f, 61.661743f, 120.80554f), 959) + index2 = 1; + List list402 = new List(index2); + CollectionsMarshal.SetCount(list402, index2); + Span span402 = CollectionsMarshal.AsSpan(list402); + num2 = 0; + span402[num2] = new QuestStep(EInteractionType.Interact, 2013062u, new Vector3(-129.83911f, 61.661743f, 120.80554f), 959) { StopDistance = 0.5f, Fly = true }; obj206.Steps = list402; reference265 = obj206; - ref QuestSequence reference266 = ref span149[3]; + num++; + ref QuestSequence reference266 = ref span399[num]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -316552,27 +384455,33 @@ public static class AssemblyQuestLoader num2 = 1; List list403 = new List(num2); CollectionsMarshal.SetCount(list403, num2); - CollectionsMarshal.AsSpan(list403)[0] = new QuestStep(EInteractionType.Interact, 2013063u, new Vector3(-249.22565f, 81.712036f, 134.1726f), 959) + Span span403 = CollectionsMarshal.AsSpan(list403); + index2 = 0; + span403[index2] = new QuestStep(EInteractionType.Interact, 2013063u, new Vector3(-249.22565f, 81.712036f, 134.1726f), 959) { Fly = true }; obj207.Steps = list403; reference266 = obj207; - ref QuestSequence reference267 = ref span149[4]; + num++; + ref QuestSequence reference267 = ref span399[num]; QuestSequence obj208 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list404 = new List(num2); - CollectionsMarshal.SetCount(list404, num2); - CollectionsMarshal.AsSpan(list404)[0] = new QuestStep(EInteractionType.Interact, 2013064u, new Vector3(-358.23608f, 104.53955f, 117.234985f), 959) + index2 = 1; + List list404 = new List(index2); + CollectionsMarshal.SetCount(list404, index2); + Span span404 = CollectionsMarshal.AsSpan(list404); + num2 = 0; + span404[num2] = new QuestStep(EInteractionType.Interact, 2013064u, new Vector3(-358.23608f, 104.53955f, 117.234985f), 959) { Fly = true }; obj208.Steps = list404; reference267 = obj208; - ref QuestSequence reference268 = ref span149[5]; + num++; + ref QuestSequence reference268 = ref span399[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -316580,7 +384489,9 @@ public static class AssemblyQuestLoader num2 = 1; List list405 = new List(num2); CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042555u, new Vector3(31.204712f, -5.351952E-07f, -0.77819824f), 963) + Span span405 = CollectionsMarshal.AsSpan(list405); + index2 = 0; + span405[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042555u, new Vector3(31.204712f, -5.351952E-07f, -0.77819824f), 963) { StopDistance = 5f, NextQuestId = new QuestId(4718) @@ -316594,20 +384505,26 @@ public static class AssemblyQuestLoader num = 1; List list406 = new List(num); CollectionsMarshal.SetCount(list406, num); - CollectionsMarshal.AsSpan(list406)[0] = "liza"; + Span span406 = CollectionsMarshal.AsSpan(list406); + index = 0; + span406[index] = "liza"; questRoot44.Author = list406; - num = 1; - List list407 = new List(num); - CollectionsMarshal.SetCount(list407, num); - ref QuestSequence reference269 = ref CollectionsMarshal.AsSpan(list407)[0]; + index = 1; + List list407 = new List(index); + CollectionsMarshal.SetCount(list407, index); + Span span407 = CollectionsMarshal.AsSpan(list407); + num = 0; + ref QuestSequence reference269 = ref span407[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list408 = new List(num2); - CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043621u, new Vector3(174.12073f, 14.095924f, 667.5669f), 135); + index2 = 1; + List list408 = new List(index2); + CollectionsMarshal.SetCount(list408, index2); + Span span408 = CollectionsMarshal.AsSpan(list408); + num2 = 0; + span408[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043621u, new Vector3(174.12073f, 14.095924f, 667.5669f), 135); obj210.Steps = list408; reference269 = obj210; questRoot44.QuestSequence = list407; @@ -316621,13 +384538,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "pot0to"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "pot0to"; questRoot.Author = list; - num = 11; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 11; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -316635,7 +384555,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -316648,15 +384570,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 2013108u, new Vector3(-75.70001f, -4.7455444f, -27.664612f), 419) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 2013108u, new Vector3(-75.70001f, -4.7455444f, -27.664612f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -316667,7 +384592,8 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -316675,28 +384601,34 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) { TargetTerritoryId = (ushort)567 }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -316704,63 +384636,88 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1042605u, new Vector3(72.46509f, 203.98001f, 125.993774f), 478); + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.Interact, 1042605u, new Vector3(72.46509f, 203.98001f, 125.993774f), 478); obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span2 = CollectionsMarshal.AsSpan(list8); - ref QuestStep reference7 = ref span2[0]; + index2 = 3; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference7 = ref span8[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1042608u, new Vector3(-9.323303f, 206.49942f, 38.77307f), 478); int num3 = 6; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span3 = CollectionsMarshal.AsSpan(list9); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span9 = CollectionsMarshal.AsSpan(list9); + int num4 = 0; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = null; + num4++; + span9[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list9; reference7 = questStep; - ref QuestStep reference8 = ref span2[1]; + num2++; + ref QuestStep reference8 = ref span8[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1042609u, new Vector3(-49.149292f, 209.18335f, -103.01367f), 478); - num3 = 6; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - Span span4 = CollectionsMarshal.AsSpan(list10); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + Span span10 = CollectionsMarshal.AsSpan(list10); + num3 = 0; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = null; + num3++; + span10[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list10; reference8 = questStep2; - ref QuestStep reference9 = ref span2[2]; + num2++; + ref QuestStep reference9 = ref span8[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1042610u, new Vector3(56.961792f, 214.19846f, -81.43744f), 478); num3 = 6; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - Span span5 = CollectionsMarshal.AsSpan(list11); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span11 = CollectionsMarshal.AsSpan(list11); + num4 = 0; + span11[num4] = null; + num4++; + span11[num4] = null; + num4++; + span11[num4] = null; + num4++; + span11[num4] = null; + num4++; + span11[num4] = null; + num4++; + span11[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list11; reference9 = questStep3; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference10 = ref span[6]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 6 @@ -316768,24 +384725,30 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1042605u, new Vector3(-30.20218f, 214.49994f, 91.81962f), 478) + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.Interact, 1042605u, new Vector3(-30.20218f, 214.49994f, 91.81962f), 478) { StopDistance = 1f }; obj7.Steps = list12; reference10 = obj7; - ref QuestSequence reference11 = ref span[7]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1042613u, new Vector3(-22.38501f, 203.69724f, 93.18677f), 478); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.Interact, 1042613u, new Vector3(-22.38501f, 203.69724f, 93.18677f), 478); obj8.Steps = list13; reference11 = obj8; - ref QuestSequence reference12 = ref span[8]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 8 @@ -316793,33 +384756,41 @@ public static class AssemblyQuestLoader num2 = 4; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span6 = CollectionsMarshal.AsSpan(list14); - span6[0] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) { TargetTerritoryId = (ushort)567, Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; - span6[1] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) + index2++; + span14[index2] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) { TargetTerritoryId = (ushort)568 }; - span6[2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567); - span6[3] = new QuestStep(EInteractionType.Interact, 2013110u, new Vector3(-1.8158569f, 0.015197754f, 5.1727905f), 568); + index2++; + span14[index2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567); + index2++; + span14[index2] = new QuestStep(EInteractionType.Interact, 2013110u, new Vector3(-1.8158569f, 0.015197754f, 5.1727905f), 568); obj9.Steps = list14; reference12 = obj9; - ref QuestSequence reference13 = ref span[9]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1042611u, new Vector3(-75.48645f, -4.734931f, -26.901672f), 419); + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.Interact, 1042611u, new Vector3(-75.48645f, -4.734931f, -26.901672f), 419); obj10.Steps = list15; reference13 = obj10; - ref QuestSequence reference14 = ref span[10]; + num++; + ref QuestSequence reference14 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -316827,7 +384798,9 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, NextQuestId = new QuestId(4662) @@ -316841,21 +384814,26 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "CryoTechnic"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "CryoTechnic"; questRoot2.Author = list17; - num = 3; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span7 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference15 = ref span7[0]; + index = 3; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference15 = ref span18[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043950u, new Vector3(29.833603f, -5.9604645E-07f, -0.25688922f), 963) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043950u, new Vector3(29.833603f, -5.9604645E-07f, -0.25688922f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, SkipConditions = new SkipConditions @@ -316868,7 +384846,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list19; reference15 = obj12; - ref QuestSequence reference16 = ref span7[1]; + num++; + ref QuestSequence reference16 = ref span18[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -316876,9 +384855,11 @@ public static class AssemblyQuestLoader num2 = 2; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span8 = CollectionsMarshal.AsSpan(list20); - span8[0] = new QuestStep(EInteractionType.Interact, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963); - span8[1] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new QuestStep(EInteractionType.Interact, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963); + index2++; + span20[index2] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, ItemId = 38420u, @@ -316897,15 +384878,18 @@ public static class AssemblyQuestLoader }; obj13.Steps = list20; reference16 = obj13; - ref QuestSequence reference17 = ref span7[2]; + num++; + ref QuestSequence reference17 = ref span18[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -316923,13 +384907,16 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "CryoTechnic"; + Span span22 = CollectionsMarshal.AsSpan(list22); + index = 0; + span22[index] = "CryoTechnic"; questRoot3.Author = list22; - num = 3; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span9 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference18 = ref span9[0]; + index = 3; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + Span span23 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference18 = ref span23[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -316937,7 +384924,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + span24[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -316948,15 +384937,18 @@ public static class AssemblyQuestLoader }; obj15.Steps = list24; reference18 = obj15; - ref QuestSequence reference19 = ref span9[1]; + num++; + ref QuestSequence reference19 = ref span23[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) { AethernetShortcut = new AethernetShortcut { @@ -316975,7 +384967,8 @@ public static class AssemblyQuestLoader }; obj16.Steps = list25; reference19 = obj16; - ref QuestSequence reference20 = ref span9[2]; + num++; + ref QuestSequence reference20 = ref span23[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -316983,7 +384976,9 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -317001,21 +384996,26 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - CollectionsMarshal.AsSpan(list27)[0] = "Censored"; + Span span27 = CollectionsMarshal.AsSpan(list27); + index = 0; + span27[index] = "Censored"; questRoot4.Author = list27; - num = 4; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); - Span span10 = CollectionsMarshal.AsSpan(list28); - ref QuestSequence reference21 = ref span10[0]; + index = 4; + List list28 = new List(index); + CollectionsMarshal.SetCount(list28, index); + Span span28 = CollectionsMarshal.AsSpan(list28); + num = 0; + ref QuestSequence reference21 = ref span28[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044132u, new Vector3(-319.26453f, 44.8282f, 36.301147f), 963) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044132u, new Vector3(-319.26453f, 44.8282f, 36.301147f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -317033,7 +385033,8 @@ public static class AssemblyQuestLoader }; obj18.Steps = list29; reference21 = obj18; - ref QuestSequence reference22 = ref span10[1]; + num++; + ref QuestSequence reference22 = ref span28[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -317041,7 +385042,9 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1044133u, new Vector3(-196.2768f, 4.065f, -107.286194f), 963) + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new QuestStep(EInteractionType.Interact, 1044133u, new Vector3(-196.2768f, 4.065f, -107.286194f), 963) { AethernetShortcut = new AethernetShortcut { @@ -317051,30 +385054,39 @@ public static class AssemblyQuestLoader }; obj19.Steps = list30; reference22 = obj19; - ref QuestSequence reference23 = ref span10[2]; + num++; + ref QuestSequence reference23 = ref span28[num]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - Span span11 = CollectionsMarshal.AsSpan(list31); - ref QuestStep reference24 = ref span11[0]; + index2 = 4; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref QuestStep reference24 = ref span31[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1044136u, new Vector3(-157.8852f, 3.999719f, -64.49994f), 963); - num3 = 6; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span12 = CollectionsMarshal.AsSpan(list32); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + Span span32 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span32[num3] = null; + num3++; + span32[num3] = null; + num3++; + span32[num3] = null; + num3++; + span32[num3] = null; + num3++; + span32[num3] = null; + num3++; + span32[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list32; reference24 = questStep4; - ref QuestStep reference25 = ref span11[1]; + num2++; + ref QuestStep reference25 = ref span31[num2]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1044139u, new Vector3(3.5248413f, 2.9999907f, -196.1242f), 963) { AethernetShortcut = new AethernetShortcut @@ -317086,16 +385098,23 @@ public static class AssemblyQuestLoader num3 = 6; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - Span span13 = CollectionsMarshal.AsSpan(list33); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span33 = CollectionsMarshal.AsSpan(list33); + num4 = 0; + span33[num4] = null; + num4++; + span33[num4] = null; + num4++; + span33[num4] = null; + num4++; + span33[num4] = null; + num4++; + span33[num4] = null; + num4++; + span33[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list33; reference25 = obj21; - ref QuestStep reference26 = ref span11[2]; + num2++; + ref QuestStep reference26 = ref span31[num2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1044142u, new Vector3(48.874634f, 26.999975f, 45.090332f), 963) { AethernetShortcut = new AethernetShortcut @@ -317104,19 +385123,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanKama } }; - num3 = 6; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span14 = CollectionsMarshal.AsSpan(list34); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list34 = new List(num4); + CollectionsMarshal.SetCount(list34, num4); + Span span34 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj22.CompletionQuestVariablesFlags = list34; reference26 = obj22; - ref QuestStep reference27 = ref span11[3]; + num2++; + ref QuestStep reference27 = ref span31[num2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1044145u, new Vector3(-112.7489f, 29.037842f, 239.55127f), 963) { AethernetShortcut = new AethernetShortcut @@ -317128,18 +385154,25 @@ public static class AssemblyQuestLoader num3 = 6; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span15 = CollectionsMarshal.AsSpan(list35); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span35 = CollectionsMarshal.AsSpan(list35); + num4 = 0; + span35[num4] = null; + num4++; + span35[num4] = null; + num4++; + span35[num4] = null; + num4++; + span35[num4] = null; + num4++; + span35[num4] = null; + num4++; + span35[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj23.CompletionQuestVariablesFlags = list35; reference27 = obj23; obj20.Steps = list31; reference23 = obj20; - ref QuestSequence reference28 = ref span10[3]; + num++; + ref QuestSequence reference28 = ref span28[num]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue @@ -317147,7 +385180,9 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044135u, new Vector3(-195.36127f, 4.065f, -106.55377f), 963) + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044135u, new Vector3(-195.36127f, 4.065f, -106.55377f), 963) { AethernetShortcut = new AethernetShortcut { @@ -317165,21 +385200,26 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "Censored"; + Span span37 = CollectionsMarshal.AsSpan(list37); + index = 0; + span37[index] = "Censored"; questRoot5.Author = list37; - num = 3; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - Span span16 = CollectionsMarshal.AsSpan(list38); - ref QuestSequence reference29 = ref span16[0]; + index = 3; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + Span span38 = CollectionsMarshal.AsSpan(list38); + num = 0; + ref QuestSequence reference29 = ref span38[num]; QuestSequence obj25 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044133u, new Vector3(-196.2768f, 4.065f, -107.286194f), 963) + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044133u, new Vector3(-196.2768f, 4.065f, -107.286194f), 963) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -317198,7 +385238,8 @@ public static class AssemblyQuestLoader }; obj25.Steps = list39; reference29 = obj25; - ref QuestSequence reference30 = ref span16[1]; + num++; + ref QuestSequence reference30 = ref span38[num]; QuestSequence obj26 = new QuestSequence { Sequence = 1 @@ -317206,8 +385247,9 @@ public static class AssemblyQuestLoader num2 = 4; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span17 = CollectionsMarshal.AsSpan(list40); - ref QuestStep reference31 = ref span17[0]; + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + ref QuestStep reference31 = ref span40[index2]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 1044221u, new Vector3(99.32092f, 4.7837553f, -158.98376f), 963) { AethernetShortcut = new AethernetShortcut @@ -317216,19 +385258,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHan } }; - num3 = 6; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - Span span18 = CollectionsMarshal.AsSpan(list41); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list41 = new List(num4); + CollectionsMarshal.SetCount(list41, num4); + Span span41 = CollectionsMarshal.AsSpan(list41); + num3 = 0; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj27.CompletionQuestVariablesFlags = list41; reference31 = obj27; - ref QuestStep reference32 = ref span17[1]; + index2++; + ref QuestStep reference32 = ref span40[index2]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 1044218u, new Vector3(17.135864f, -2.000002f, 96.025024f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -317241,30 +385290,44 @@ public static class AssemblyQuestLoader num3 = 6; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span19 = CollectionsMarshal.AsSpan(list42); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span42 = CollectionsMarshal.AsSpan(list42); + num4 = 0; + span42[num4] = null; + num4++; + span42[num4] = null; + num4++; + span42[num4] = null; + num4++; + span42[num4] = null; + num4++; + span42[num4] = null; + num4++; + span42[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj28.CompletionQuestVariablesFlags = list42; reference32 = obj28; - ref QuestStep reference33 = ref span17[2]; + index2++; + ref QuestStep reference33 = ref span40[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1044217u, new Vector3(-71.54962f, -2.0001035f, 150.83533f), 963); - num3 = 6; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - Span span20 = CollectionsMarshal.AsSpan(list43); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list43 = new List(num4); + CollectionsMarshal.SetCount(list43, num4); + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list43; reference33 = questStep5; - ref QuestStep reference34 = ref span17[3]; + index2++; + ref QuestStep reference34 = ref span40[index2]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 1044215u, new Vector3(-278.0957f, 36f, 69.10803f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -317277,26 +385340,35 @@ public static class AssemblyQuestLoader num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span21 = CollectionsMarshal.AsSpan(list44); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span44 = CollectionsMarshal.AsSpan(list44); + num4 = 0; + span44[num4] = null; + num4++; + span44[num4] = null; + num4++; + span44[num4] = null; + num4++; + span44[num4] = null; + num4++; + span44[num4] = null; + num4++; + span44[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj29.CompletionQuestVariablesFlags = list44; reference34 = obj29; obj26.Steps = list40; reference30 = obj26; - ref QuestSequence reference35 = ref span16[2]; + num++; + ref QuestSequence reference35 = ref span38[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044135u, new Vector3(-195.36127f, 4.065f, -106.55377f), 963) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span45[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044135u, new Vector3(-195.36127f, 4.065f, -106.55377f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -317314,13 +385386,16 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "pot0to"; + Span span46 = CollectionsMarshal.AsSpan(list46); + index = 0; + span46[index] = "pot0to"; questRoot6.Author = list46; - num = 12; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span22 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference36 = ref span22[0]; + index = 12; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + Span span47 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference36 = ref span47[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -317328,7 +385403,9 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -317341,15 +385418,18 @@ public static class AssemblyQuestLoader }; obj31.Steps = list48; reference36 = obj31; - ref QuestSequence reference37 = ref span22[1]; + num++; + ref QuestSequence reference37 = ref span47[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 2013288u, new Vector3(102.67798f, 11.9782715f, 40.238037f), 628) + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.Interact, 2013288u, new Vector3(102.67798f, 11.9782715f, 40.238037f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -317360,7 +385440,8 @@ public static class AssemblyQuestLoader }; obj32.Steps = list49; reference37 = obj32; - ref QuestSequence reference38 = ref span22[2]; + num++; + ref QuestSequence reference38 = ref span47[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -317368,7 +385449,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 2013289u, new Vector3(362.11182f, 0.7171631f, 763.17993f), 613) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.Interact, 2013289u, new Vector3(362.11182f, 0.7171631f, 763.17993f), 613) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -317379,18 +385462,22 @@ public static class AssemblyQuestLoader }; obj33.Steps = list50; reference38 = obj33; - ref QuestSequence reference39 = ref span22[3]; + num++; + ref QuestSequence reference39 = ref span47[num]; QuestSequence obj34 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1044958u, new Vector3(-172.38116f, -7.000106f, 46.799316f), 628); + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.Interact, 1044958u, new Vector3(-172.38116f, -7.000106f, 46.799316f), 628); obj34.Steps = list51; reference39 = obj34; - ref QuestSequence reference40 = ref span22[4]; + num++; + ref QuestSequence reference40 = ref span47[num]; QuestSequence obj35 = new QuestSequence { Sequence = 4 @@ -317398,12 +385485,16 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list52)[0]; + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + ref QuestStep reference41 = ref span52[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1044963u, new Vector3(34.470093f, 4f, 77.805664f), 628); - num3 = 1; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice + num4 = 1; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + Span span53 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + span53[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKSA301_04662_Q4_000_000"), @@ -317413,18 +385504,22 @@ public static class AssemblyQuestLoader reference41 = questStep6; obj35.Steps = list52; reference40 = obj35; - ref QuestSequence reference42 = ref span22[5]; + num++; + ref QuestSequence reference42 = ref span47[num]; QuestSequence obj36 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1044965u, new Vector3(35.934937f, 4f, 76.49341f), 628); + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.Interact, 1044965u, new Vector3(35.934937f, 4f, 76.49341f), 628); obj36.Steps = list54; reference42 = obj36; - ref QuestSequence reference43 = ref span22[6]; + num++; + ref QuestSequence reference43 = ref span47[num]; QuestSequence obj37 = new QuestSequence { Sequence = 6 @@ -317432,21 +385527,27 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1044967u, new Vector3(24.795776f, 4.0000014f, 39.230957f), 628); + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.Interact, 1044967u, new Vector3(24.795776f, 4.0000014f, 39.230957f), 628); obj37.Steps = list55; reference43 = obj37; - ref QuestSequence reference44 = ref span22[7]; + num++; + ref QuestSequence reference44 = ref span47[num]; QuestSequence obj38 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1044968u, new Vector3(-52.71997f, 16.054996f, -17.135986f), 628); + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.Interact, 1044968u, new Vector3(-52.71997f, 16.054996f, -17.135986f), 628); obj38.Steps = list56; reference44 = obj38; - ref QuestSequence reference45 = ref span22[8]; + num++; + ref QuestSequence reference45 = ref span47[num]; QuestSequence obj39 = new QuestSequence { Sequence = 8 @@ -317454,25 +385555,31 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1045117u, new Vector3(736.0189f, 0.10766173f, -298.5733f), 613) + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.Interact, 1045117u, new Vector3(736.0189f, 0.10766173f, -298.5733f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; obj39.Steps = list57; reference45 = obj39; - ref QuestSequence reference46 = ref span22[9]; + num++; + ref QuestSequence reference46 = ref span47[num]; QuestSequence obj40 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1044972u, new Vector3(706.4773f, 1f, -261.40234f), 613); + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.Interact, 1044972u, new Vector3(706.4773f, 1f, -261.40234f), 613); obj40.Steps = list58; reference46 = obj40; - ref QuestSequence reference47 = ref span22[10]; + num++; + ref QuestSequence reference47 = ref span47[num]; QuestSequence obj41 = new QuestSequence { Sequence = 10 @@ -317480,18 +385587,23 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1044973u, new Vector3(114.51892f, 12.000001f, 101.3656f), 628); + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + span59[index2] = new QuestStep(EInteractionType.Interact, 1044973u, new Vector3(114.51892f, 12.000001f, 101.3656f), 628); obj41.Steps = list59; reference47 = obj41; - ref QuestSequence reference48 = ref span22[11]; + num++; + ref QuestSequence reference48 = ref span47[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, NextQuestId = new QuestId(4761) @@ -317505,13 +385617,16 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + Span span61 = CollectionsMarshal.AsSpan(list61); + index = 0; + span61[index] = "liza"; questRoot7.Author = list61; - num = 5; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span23 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference49 = ref span23[0]; + index = 5; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + Span span62 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference49 = ref span62[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -317519,7 +385634,9 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -317532,15 +385649,18 @@ public static class AssemblyQuestLoader }; obj43.Steps = list63; reference49 = obj43; - ref QuestSequence reference50 = ref span23[1]; + num++; + ref QuestSequence reference50 = ref span62[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) { StopDistance = 1f, TargetTerritoryId = (ushort)1061, @@ -317548,7 +385668,8 @@ public static class AssemblyQuestLoader }; obj44.Steps = list64; reference50 = obj44; - ref QuestSequence reference51 = ref span23[2]; + num++; + ref QuestSequence reference51 = ref span62[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 @@ -317556,21 +385677,26 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1044299u, new Vector3(-85.89307f, 3f, 84.58069f), 1061) + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.Interact, 1044299u, new Vector3(-85.89307f, 3f, 84.58069f), 1061) { StopDistance = 5f }; obj45.Steps = list65; reference51 = obj45; - ref QuestSequence reference52 = ref span23[3]; + num++; + ref QuestSequence reference52 = ref span62[num]; QuestSequence obj46 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Duty, null, null, 1061) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.Duty, null, null, 1061) { DutyOptions = new DutyOptions { @@ -317579,7 +385705,8 @@ public static class AssemblyQuestLoader }; obj46.Steps = list66; reference52 = obj46; - ref QuestSequence reference53 = ref span23[4]; + num++; + ref QuestSequence reference53 = ref span62[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue @@ -317587,7 +385714,9 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044303u, new Vector3(-7.2786255f, 0.0999997f, 5.874695f), 1061) + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044303u, new Vector3(-7.2786255f, 0.0999997f, 5.874695f), 1061) { NextQuestId = new QuestId(4667) }; @@ -317600,24 +385729,30 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "liza"; + Span span68 = CollectionsMarshal.AsSpan(list68); + index = 0; + span68[index] = "liza"; questRoot8.Author = list68; - num = 5; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span24 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference54 = ref span24[0]; + index = 5; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + Span span69 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference54 = ref span69[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044304u, new Vector3(-6.6377563f, 0.0999997f, 7.2785034f), 1061); + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044304u, new Vector3(-6.6377563f, 0.0999997f, 7.2785034f), 1061); obj48.Steps = list70; reference54 = obj48; - ref QuestSequence reference55 = ref span24[1]; + num++; + ref QuestSequence reference55 = ref span69[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 @@ -317625,8 +385760,9 @@ public static class AssemblyQuestLoader num2 = 2; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span25 = CollectionsMarshal.AsSpan(list71); - ref QuestStep reference56 = ref span25[0]; + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + ref QuestStep reference56 = ref span71[index2]; QuestStep obj50 = new QuestStep(EInteractionType.Interact, 2012871u, new Vector3(15.945618f, 1.7547607f, -61.600708f), 1061) { TargetTerritoryId = (ushort)156 @@ -317636,12 +385772,15 @@ public static class AssemblyQuestLoader num3 = 1; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = 1061; + Span span72 = CollectionsMarshal.AsSpan(list72); + num4 = 0; + span72[num4] = 1061; skipStepConditions.NotInTerritory = list72; skipConditions.StepIf = skipStepConditions; obj50.SkipConditions = skipConditions; reference56 = obj50; - span25[1] = new QuestStep(EInteractionType.Interact, 1044306u, new Vector3(-149.58423f, 42.86022f, -182.8794f), 156) + index2++; + span71[index2] = new QuestStep(EInteractionType.Interact, 1044306u, new Vector3(-149.58423f, 42.86022f, -182.8794f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -317655,28 +385794,33 @@ public static class AssemblyQuestLoader }; obj49.Steps = list71; reference55 = obj49; - ref QuestSequence reference57 = ref span24[2]; + num++; + ref QuestSequence reference57 = ref span69[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - Span span26 = CollectionsMarshal.AsSpan(list73); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(126.23871f, 31.274973f, -772.4912f), 156) + index2 = 3; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(126.23871f, 31.274973f, -772.4912f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - span26[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-693.9247f, 261.1125f, 436.2933f), 155) + num2++; + span73[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-693.9247f, 261.1125f, 436.2933f), 155) { Fly = true }; - span26[2] = new QuestStep(EInteractionType.Interact, 1044310u, new Vector3(-674.21985f, 254.80737f, 490.77588f), 155); + num2++; + span73[num2] = new QuestStep(EInteractionType.Interact, 1044310u, new Vector3(-674.21985f, 254.80737f, 490.77588f), 155); obj51.Steps = list73; reference57 = obj51; - ref QuestSequence reference58 = ref span24[3]; + num++; + ref QuestSequence reference58 = ref span69[num]; QuestSequence obj52 = new QuestSequence { Sequence = 3 @@ -317684,24 +385828,29 @@ public static class AssemblyQuestLoader num2 = 2; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span27 = CollectionsMarshal.AsSpan(list74); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(180.50424f, 360.59534f, -609.197f), 155) + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(180.50424f, 360.59534f, -609.197f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - span27[1] = new QuestStep(EInteractionType.Interact, 1044314u, new Vector3(182.5741f, 360.90265f, -610.2846f), 155); + index2++; + span74[index2] = new QuestStep(EInteractionType.Interact, 1044314u, new Vector3(182.5741f, 360.90265f, -610.2846f), 155); obj52.Steps = list74; reference58 = obj52; - ref QuestSequence reference59 = ref span24[4]; + num++; + ref QuestSequence reference59 = ref span69[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044315u, new Vector3(80.24719f, 373.73154f, -674.49457f), 155) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044315u, new Vector3(80.24719f, 373.73154f, -674.49457f), 155) { NextQuestId = new QuestId(4668) }; @@ -317714,13 +385863,16 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "liza"; + Span span76 = CollectionsMarshal.AsSpan(list76); + index = 0; + span76[index] = "liza"; questRoot9.Author = list76; - num = 6; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span28 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference60 = ref span28[0]; + index = 6; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + Span span77 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference60 = ref span77[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -317728,7 +385880,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044315u, new Vector3(80.24719f, 373.73154f, -674.49457f), 155) + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044315u, new Vector3(80.24719f, 373.73154f, -674.49457f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -317741,21 +385895,25 @@ public static class AssemblyQuestLoader }; obj54.Steps = list78; reference60 = obj54; - ref QuestSequence reference61 = ref span28[1]; + num++; + ref QuestSequence reference61 = ref span77[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1044319u, new Vector3(-45.91449f, -4.1435657f, 8.8349f), 132) + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.Interact, 1044319u, new Vector3(-45.91449f, -4.1435657f, 8.8349f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj55.Steps = list79; reference61 = obj55; - ref QuestSequence reference62 = ref span28[2]; + num++; + ref QuestSequence reference62 = ref span77[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -317763,30 +385921,36 @@ public static class AssemblyQuestLoader num2 = 2; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span29 = CollectionsMarshal.AsSpan(list80); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.23065f, 1.2987103f, 6.734147f), 132) + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.23065f, 1.2987103f, 6.734147f), 132) { TargetTerritoryId = (ushort)133 }; - span29[1] = new QuestStep(EInteractionType.Interact, 1044323u, new Vector3(-140.45929f, 5.046544f, -40.48224f), 133); + index2++; + span80[index2] = new QuestStep(EInteractionType.Interact, 1044323u, new Vector3(-140.45929f, 5.046544f, -40.48224f), 133); obj56.Steps = list80; reference62 = obj56; - ref QuestSequence reference63 = ref span28[3]; + num++; + ref QuestSequence reference63 = ref span77[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1043024u, new Vector3(-239.94812f, 0.8012663f, 384.60352f), 153) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.Interact, 1043024u, new Vector3(-239.94812f, 0.8012663f, 384.60352f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj57.Steps = list81; reference63 = obj57; - ref QuestSequence reference64 = ref span28[4]; + num++; + ref QuestSequence reference64 = ref span77[num]; QuestSequence obj58 = new QuestSequence { Sequence = 4 @@ -317794,15 +385958,19 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list82)[0]; + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + ref QuestStep reference65 = ref span82[index2]; QuestStep obj59 = new QuestStep(EInteractionType.Interact, 1044328u, new Vector3(-246.08228f, 0.7061289f, 384.08484f), 153) { StopDistance = 7f }; - num3 = 1; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = new DialogueChoice + num4 = 1; + List list83 = new List(num4); + CollectionsMarshal.SetCount(list83, num4); + Span span83 = CollectionsMarshal.AsSpan(list83); + num3 = 0; + span83[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKEA203_04668_SYSTEM_000_122") @@ -317811,15 +385979,18 @@ public static class AssemblyQuestLoader reference65 = obj59; obj58.Steps = list82; reference64 = obj58; - ref QuestSequence reference66 = ref span28[5]; + num++; + ref QuestSequence reference66 = ref span77[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044331u, new Vector3(204.05884f, 6.2006326f, -32.059265f), 153) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044331u, new Vector3(204.05884f, 6.2006326f, -32.059265f), 153) { NextQuestId = new QuestId(4669) }; @@ -317832,13 +386003,16 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "liza"; + Span span85 = CollectionsMarshal.AsSpan(list85); + index = 0; + span85[index] = "liza"; questRoot10.Author = list85; - num = 4; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span30 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference67 = ref span30[0]; + index = 4; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + Span span86 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference67 = ref span86[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -317846,7 +386020,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044331u, new Vector3(204.05884f, 6.2006326f, -32.059265f), 153) + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044331u, new Vector3(204.05884f, 6.2006326f, -32.059265f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -317859,15 +386035,18 @@ public static class AssemblyQuestLoader }; obj61.Steps = list87; reference67 = obj61; - ref QuestSequence reference68 = ref span30[1]; + num++; + ref QuestSequence reference68 = ref span86[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) { StopDistance = 1f, TargetTerritoryId = (ushort)1061, @@ -317876,7 +386055,8 @@ public static class AssemblyQuestLoader }; obj62.Steps = list88; reference68 = obj62; - ref QuestSequence reference69 = ref span30[2]; + num++; + ref QuestSequence reference69 = ref span86[num]; QuestSequence obj63 = new QuestSequence { Sequence = 2 @@ -317884,21 +386064,26 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1044335u, new Vector3(-1.3886108f, 0.0999997f, 0.59503174f), 1061) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.Interact, 1044335u, new Vector3(-1.3886108f, 0.0999997f, 0.59503174f), 1061) { StopDistance = 5f }; obj63.Steps = list89; reference69 = obj63; - ref QuestSequence reference70 = ref span30[3]; + num++; + ref QuestSequence reference70 = ref span86[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -317913,13 +386098,16 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "liza"; + Span span91 = CollectionsMarshal.AsSpan(list91); + index = 0; + span91[index] = "liza"; questRoot11.Author = list91; - num = 4; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span31 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference71 = ref span31[0]; + index = 4; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + Span span92 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference71 = ref span92[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -317927,21 +386115,26 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) { StopDistance = 5f }; obj65.Steps = list93; reference71 = obj65; - ref QuestSequence reference72 = ref span31[1]; + num++; + ref QuestSequence reference72 = ref span92[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1043821u, new Vector3(3.3721924f, 26.999998f, 37.216675f), 963) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.Interact, 1043821u, new Vector3(3.3721924f, 26.999998f, 37.216675f), 963) { AethernetShortcut = new AethernetShortcut { @@ -317951,7 +386144,8 @@ public static class AssemblyQuestLoader }; obj66.Steps = list94; reference72 = obj66; - ref QuestSequence reference73 = ref span31[2]; + num++; + ref QuestSequence reference73 = ref span92[num]; QuestSequence obj67 = new QuestSequence { Sequence = 2 @@ -317959,7 +386153,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1044293u, new Vector3(-346.12042f, 55f, -66.17847f), 963) + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.Interact, 1044293u, new Vector3(-346.12042f, 55f, -66.17847f), 963) { AethernetShortcut = new AethernetShortcut { @@ -317969,15 +386165,18 @@ public static class AssemblyQuestLoader }; obj67.Steps = list95; reference73 = obj67; - ref QuestSequence reference74 = ref span31[3]; + num++; + ref QuestSequence reference74 = ref span92[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044293u, new Vector3(-346.12042f, 55f, -66.17847f), 963) + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044293u, new Vector3(-346.12042f, 55f, -66.17847f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -317995,13 +386194,16 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + Span span97 = CollectionsMarshal.AsSpan(list97); + index = 0; + span97[index] = "liza"; questRoot12.Author = list97; - num = 7; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span32 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference75 = ref span32[0]; + index = 7; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference75 = ref span98[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -318009,24 +386211,30 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044229u, new Vector3(-345.99835f, 55f, -63.645386f), 963); + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044229u, new Vector3(-345.99835f, 55f, -63.645386f), 963); obj69.Steps = list99; reference75 = obj69; - ref QuestSequence reference76 = ref span32[1]; + num++; + ref QuestSequence reference76 = ref span98[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1044231u, new Vector3(535.7289f, -36.65f, -185.87018f), 958) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.Interact, 1044231u, new Vector3(535.7289f, -36.65f, -185.87018f), 958) { StopDistance = 6f }; obj70.Steps = list100; reference76 = obj70; - ref QuestSequence reference77 = ref span32[2]; + num++; + ref QuestSequence reference77 = ref span98[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -318034,27 +386242,33 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1044234u, new Vector3(-368.15448f, 21.999998f, 485.37415f), 958) + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.Interact, 1044234u, new Vector3(-368.15448f, 21.999998f, 485.37415f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj71.Steps = list101; reference77 = obj71; - ref QuestSequence reference78 = ref span32[3]; + num++; + ref QuestSequence reference78 = ref span98[num]; QuestSequence obj72 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1044241u, new Vector3(55.161255f, -16.177f, 427.87805f), 958) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.Interact, 1044241u, new Vector3(55.161255f, -16.177f, 427.87805f), 958) { Fly = true }; obj72.Steps = list102; reference78 = obj72; - ref QuestSequence reference79 = ref span32[4]; + num++; + ref QuestSequence reference79 = ref span98[num]; QuestSequence obj73 = new QuestSequence { Sequence = 4 @@ -318062,27 +386276,33 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1045227u, new Vector3(150.04187f, -20.207552f, 509.88013f), 958) + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span103[index2] = new QuestStep(EInteractionType.Interact, 1045227u, new Vector3(150.04187f, -20.207552f, 509.88013f), 958) { StopDistance = 5f }; obj73.Steps = list103; reference79 = obj73; - ref QuestSequence reference80 = ref span32[5]; + num++; + ref QuestSequence reference80 = ref span98[num]; QuestSequence obj74 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1044243u, new Vector3(132.31091f, -12.950364f, 642.8473f), 958) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.Interact, 1044243u, new Vector3(132.31091f, -12.950364f, 642.8473f), 958) { Fly = true }; obj74.Steps = list104; reference80 = obj74; - ref QuestSequence reference81 = ref span32[6]; + num++; + ref QuestSequence reference81 = ref span98[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -318090,7 +386310,9 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044239u, new Vector3(-369.2226f, 22f, 484.0619f), 958) + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044239u, new Vector3(-369.2226f, 22f, 484.0619f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -318103,24 +386325,30 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - CollectionsMarshal.AsSpan(list106)[0] = "liza"; + Span span106 = CollectionsMarshal.AsSpan(list106); + index = 0; + span106[index] = "liza"; questRoot13.Author = list106; - num = 4; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - Span span33 = CollectionsMarshal.AsSpan(list107); - ref QuestSequence reference82 = ref span33[0]; + index = 4; + List list107 = new List(index); + CollectionsMarshal.SetCount(list107, index); + Span span107 = CollectionsMarshal.AsSpan(list107); + num = 0; + ref QuestSequence reference82 = ref span107[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044239u, new Vector3(-369.2226f, 22f, 484.0619f), 958); + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044239u, new Vector3(-369.2226f, 22f, 484.0619f), 958); obj76.Steps = list108; reference82 = obj76; - ref QuestSequence reference83 = ref span33[1]; + num++; + ref QuestSequence reference83 = ref span107[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -318128,22 +386356,26 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1044249u, new Vector3(-89.89093f, -9.408967f, 416.3423f), 958) + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.Interact, 1044249u, new Vector3(-89.89093f, -9.408967f, 416.3423f), 958) { Fly = true }; obj77.Steps = list109; reference83 = obj77; - ref QuestSequence reference84 = ref span33[2]; + num++; + ref QuestSequence reference84 = ref span107[num]; QuestSequence obj78 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span34 = CollectionsMarshal.AsSpan(list110); - ref QuestStep reference85 = ref span34[0]; + index2 = 4; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + ref QuestStep reference85 = ref span110[num2]; QuestStep obj79 = new QuestStep(EInteractionType.Combat, 2013226u, new Vector3(18.631226f, -12.314087f, 383.77966f), 958) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -318151,51 +386383,74 @@ public static class AssemblyQuestLoader num3 = 2; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - Span span35 = CollectionsMarshal.AsSpan(list111); - span35[0] = 16028u; - span35[1] = 16029u; + Span span111 = CollectionsMarshal.AsSpan(list111); + num4 = 0; + span111[num4] = 16028u; + num4++; + span111[num4] = 16029u; obj79.KillEnemyDataIds = list111; - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span36 = CollectionsMarshal.AsSpan(list112); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list112 = new List(num4); + CollectionsMarshal.SetCount(list112, num4); + Span span112 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj79.CompletionQuestVariablesFlags = list112; reference85 = obj79; - ref QuestStep reference86 = ref span34[1]; + num2++; + ref QuestStep reference86 = ref span110[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2013307u, new Vector3(23.025818f, -9.2317505f, 337.5448f), 958); num3 = 6; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - Span span37 = CollectionsMarshal.AsSpan(list113); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span113 = CollectionsMarshal.AsSpan(list113); + num4 = 0; + span113[num4] = null; + num4++; + span113[num4] = null; + num4++; + span113[num4] = null; + num4++; + span113[num4] = null; + num4++; + span113[num4] = null; + num4++; + span113[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list113; reference86 = questStep7; - ref QuestStep reference87 = ref span34[2]; + num2++; + ref QuestStep reference87 = ref span110[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2013308u, new Vector3(75.33374f, -12.527649f, 339.40637f), 958); - num3 = 6; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span38 = CollectionsMarshal.AsSpan(list114); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list114 = new List(num4); + CollectionsMarshal.SetCount(list114, num4); + Span span114 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = null; + num3++; + span114[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list114; reference87 = questStep8; - ref QuestStep reference88 = ref span34[3]; + num2++; + ref QuestStep reference88 = ref span110[num2]; QuestStep obj80 = new QuestStep(EInteractionType.Combat, 2013051u, new Vector3(62.333008f, -10.635559f, 308.73572f), 958) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -318203,23 +386458,32 @@ public static class AssemblyQuestLoader num3 = 1; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = 16030u; + Span span115 = CollectionsMarshal.AsSpan(list115); + num4 = 0; + span115[num4] = 16030u; obj80.KillEnemyDataIds = list115; - num3 = 6; - List list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - Span span39 = CollectionsMarshal.AsSpan(list116); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list116 = new List(num4); + CollectionsMarshal.SetCount(list116, num4); + Span span116 = CollectionsMarshal.AsSpan(list116); + num3 = 0; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = null; + num3++; + span116[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj80.CompletionQuestVariablesFlags = list116; reference88 = obj80; obj78.Steps = list110; reference84 = obj78; - ref QuestSequence reference89 = ref span33[3]; + num++; + ref QuestSequence reference89 = ref span107[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -318227,7 +386491,9 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044250u, new Vector3(23.23944f, 1.1781613f, 144.70117f), 958) + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044250u, new Vector3(23.23944f, 1.1781613f, 144.70117f), 958) { Fly = true }; @@ -318240,24 +386506,30 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "liza"; questRoot14.Author = list118; - num = 4; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span40 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference90 = ref span40[0]; + index = 4; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference90 = ref span119[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044252u, new Vector3(510.1244f, -36.65f, -161.73041f), 958); + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044252u, new Vector3(510.1244f, -36.65f, -161.73041f), 958); obj82.Steps = list120; reference90 = obj82; - ref QuestSequence reference91 = ref span40[1]; + num++; + ref QuestSequence reference91 = ref span119[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -318265,7 +386537,9 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1044257u, new Vector3(485.06897f, 10.800001f, -427.75616f), 958) + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1044257u, new Vector3(485.06897f, 10.800001f, -427.75616f), 958) { StopDistance = 5f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -318275,19 +386549,23 @@ public static class AssemblyQuestLoader }; obj83.Steps = list121; reference91 = obj83; - span40[2] = new QuestSequence + num++; + span119[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference92 = ref span40[3]; + num++; + ref QuestSequence reference92 = ref span119[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044259u, new Vector3(528.9845f, -36.65f, -246.44855f), 958) + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044259u, new Vector3(528.9845f, -36.65f, -246.44855f), 958) { StopDistance = 5f }; @@ -318300,13 +386578,16 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; + Span span123 = CollectionsMarshal.AsSpan(list123); + index = 0; + span123[index] = "liza"; questRoot15.Author = list123; - num = 6; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span41 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference93 = ref span41[0]; + index = 6; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + Span span124 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference93 = ref span124[num]; QuestSequence obj85 = new QuestSequence { Sequence = 0 @@ -318314,27 +386595,33 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044260u, new Vector3(527.9469f, -36.65f, -242.90839f), 958) + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044260u, new Vector3(527.9469f, -36.65f, -242.90839f), 958) { StopDistance = 5f }; obj85.Steps = list125; reference93 = obj85; - ref QuestSequence reference94 = ref span41[1]; + num++; + ref QuestSequence reference94 = ref span124[num]; QuestSequence obj86 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 2013224u, new Vector3(529.7681f, -36.65f, -243.843f), 958) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.Interact, 2013224u, new Vector3(529.7681f, -36.65f, -243.843f), 958) { StopDistance = 5f }; obj86.Steps = list126; reference94 = obj86; - ref QuestSequence reference95 = ref span41[2]; + num++; + ref QuestSequence reference95 = ref span124[num]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -318342,21 +386629,26 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 1044263u, new Vector3(466.05627f, -18.123579f, 718.8982f), 958) + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.Interact, 1044263u, new Vector3(466.05627f, -18.123579f, 718.8982f), 958) { Fly = true }; obj87.Steps = list127; reference95 = obj87; - ref QuestSequence reference96 = ref span41[3]; + num++; + ref QuestSequence reference96 = ref span124[num]; QuestSequence obj88 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Duty, null, null, 958) + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.Duty, null, null, 958) { DutyOptions = new DutyOptions { @@ -318366,11 +386658,13 @@ public static class AssemblyQuestLoader }; obj88.Steps = list128; reference96 = obj88; - span41[4] = new QuestSequence + num++; + span124[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference97 = ref span41[5]; + num++; + ref QuestSequence reference97 = ref span124[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue @@ -318378,7 +386672,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044270u, new Vector3(-247.21143f, -173f, 131.88367f), 1119); + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044270u, new Vector3(-247.21143f, -173f, 131.88367f), 1119); obj89.Steps = list129; reference97 = obj89; questRoot15.QuestSequence = list124; @@ -318388,27 +386684,33 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + Span span130 = CollectionsMarshal.AsSpan(list130); + index = 0; + span130[index] = "liza"; questRoot16.Author = list130; - num = 7; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span42 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference98 = ref span42[0]; + index = 7; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + Span span131 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference98 = ref span131[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044271u, new Vector3(-249.92749f, -173f, 126.35986f), 1119) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044271u, new Vector3(-249.92749f, -173f, 126.35986f), 1119) { StopDistance = 7f }; obj90.Steps = list132; reference98 = obj90; - ref QuestSequence reference99 = ref span42[1]; + num++; + ref QuestSequence reference99 = ref span131[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 @@ -318416,26 +386718,32 @@ public static class AssemblyQuestLoader num2 = 2; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span43 = CollectionsMarshal.AsSpan(list133); - span43[0] = new QuestStep(EInteractionType.Interact, 2013231u, new Vector3(-408.83502f, -117.81494f, 371.96924f), 1119) + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.Interact, 2013231u, new Vector3(-408.83502f, -117.81494f, 371.96924f), 1119) { TargetTerritoryId = (ushort)1119 }; - span43[1] = new QuestStep(EInteractionType.Interact, 1044274u, new Vector3(351.15576f, 33.99946f, -381.5824f), 1119); + index2++; + span133[index2] = new QuestStep(EInteractionType.Interact, 1044274u, new Vector3(351.15576f, 33.99946f, -381.5824f), 1119); obj91.Steps = list133; reference99 = obj91; - ref QuestSequence reference100 = ref span42[2]; + num++; + ref QuestSequence reference100 = ref span131[num]; QuestSequence obj92 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2013232u, new Vector3(393.698f, 40.360107f, -273.0907f), 1119); + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.Interact, 2013232u, new Vector3(393.698f, 40.360107f, -273.0907f), 1119); obj92.Steps = list134; reference100 = obj92; - ref QuestSequence reference101 = ref span42[3]; + num++; + ref QuestSequence reference101 = ref span131[num]; QuestSequence obj93 = new QuestSequence { Sequence = 3 @@ -318443,26 +386751,32 @@ public static class AssemblyQuestLoader num2 = 2; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span44 = CollectionsMarshal.AsSpan(list135); - span44[0] = new QuestStep(EInteractionType.Interact, 2013230u, new Vector3(350.08765f, 34.86682f, -433.95135f), 1119) + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.Interact, 2013230u, new Vector3(350.08765f, 34.86682f, -433.95135f), 1119) { TargetTerritoryId = (ushort)1119 }; - span44[1] = new QuestStep(EInteractionType.Interact, 2013233u, new Vector3(-261.1582f, -165.36206f, 229.08362f), 1119); + index2++; + span135[index2] = new QuestStep(EInteractionType.Interact, 2013233u, new Vector3(-261.1582f, -165.36206f, 229.08362f), 1119); obj93.Steps = list135; reference101 = obj93; - ref QuestSequence reference102 = ref span42[4]; + num++; + ref QuestSequence reference102 = ref span131[num]; QuestSequence obj94 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 2013234u, new Vector3(40.57373f, 365.98767f, -585.41235f), 1119); + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.Interact, 2013234u, new Vector3(40.57373f, 365.98767f, -585.41235f), 1119); obj94.Steps = list136; reference102 = obj94; - ref QuestSequence reference103 = ref span42[5]; + num++; + ref QuestSequence reference103 = ref span131[num]; QuestSequence obj95 = new QuestSequence { Sequence = 5 @@ -318470,18 +386784,23 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 2013235u, new Vector3(-2.4262085f, 374.6853f, -601.0071f), 1119); + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.Interact, 2013235u, new Vector3(-2.4262085f, 374.6853f, -601.0071f), 1119); obj95.Steps = list137; reference103 = obj95; - ref QuestSequence reference104 = ref span42[6]; + num++; + ref QuestSequence reference104 = ref span131[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044284u, new Vector3(464.34717f, -17.202883f, 705.0431f), 958) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044284u, new Vector3(464.34717f, -17.202883f, 705.0431f), 958) { StopDistance = 5f }; @@ -318494,13 +386813,16 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "liza"; + Span span139 = CollectionsMarshal.AsSpan(list139); + index = 0; + span139[index] = "liza"; questRoot17.Author = list139; - num = 5; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span45 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference105 = ref span45[0]; + index = 5; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + Span span140 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference105 = ref span140[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -318508,21 +386830,26 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044289u, new Vector3(465.81213f, -17.44166f, 707.3014f), 958) + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044289u, new Vector3(465.81213f, -17.44166f, 707.3014f), 958) { StopDistance = 5f }; obj97.Steps = list141; reference105 = obj97; - ref QuestSequence reference106 = ref span45[1]; + num++; + ref QuestSequence reference106 = ref span140[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 2013239u, new Vector3(-347.40216f, 54.97815f, -64.89667f), 963) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.Interact, 2013239u, new Vector3(-347.40216f, 54.97815f, -64.89667f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -318533,7 +386860,8 @@ public static class AssemblyQuestLoader }; obj98.Steps = list142; reference106 = obj98; - ref QuestSequence reference107 = ref span45[2]; + num++; + ref QuestSequence reference107 = ref span140[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 @@ -318541,12 +386869,16 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list143)[0]; + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + ref QuestStep reference108 = ref span143[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1044290u, new Vector3(-212.63446f, 15.260341f, 460.34937f), 957); num3 = 1; List list144 = new List(num3); CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new DialogueChoice + Span span144 = CollectionsMarshal.AsSpan(list144); + num4 = 0; + span144[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMJ107_04676_Q1_000_000"), @@ -318556,36 +386888,46 @@ public static class AssemblyQuestLoader reference108 = questStep9; obj99.Steps = list143; reference107 = obj99; - ref QuestSequence reference109 = ref span45[3]; + num++; + ref QuestSequence reference109 = ref span140[num]; QuestSequence obj100 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - Span span46 = CollectionsMarshal.AsSpan(list145); - ref QuestStep reference110 = ref span46[0]; + index2 = 2; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + ref QuestStep reference110 = ref span145[num2]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 1037648u, new Vector3(-562.005f, 9.817466f, -585.1987f), 957) { Fly = true }; - num3 = 6; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - Span span47 = CollectionsMarshal.AsSpan(list146); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list146 = new List(num4); + CollectionsMarshal.SetCount(list146, num4); + Span span146 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = null; + num3++; + span146[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj101.CompletionQuestVariablesFlags = list146; reference110 = obj101; - span46[1] = new QuestStep(EInteractionType.Interact, 1037647u, new Vector3(-588.83044f, 9.81748f, -590.08167f), 957); + num2++; + span145[num2] = new QuestStep(EInteractionType.Interact, 1037647u, new Vector3(-588.83044f, 9.81748f, -590.08167f), 957); obj100.Steps = list145; reference109 = obj100; - ref QuestSequence reference111 = ref span45[4]; + num++; + ref QuestSequence reference111 = ref span140[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -318593,7 +386935,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957); + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957); obj102.Steps = list147; reference111 = obj102; questRoot17.QuestSequence = list140; @@ -318603,26 +386947,33 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "liza"; + Span span148 = CollectionsMarshal.AsSpan(list148); + index = 0; + span148[index] = "liza"; questRoot18.Author = list148; - num = 7; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span48 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference112 = ref span48[0]; + index = 7; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + Span span149 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference112 = ref span149[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list150)[0]; + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + ref QuestStep reference113 = ref span150[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.AcceptQuest, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957); num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice + Span span151 = CollectionsMarshal.AsSpan(list151); + num4 = 0; + span151[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMJ108_04677_Q1_000_000"), @@ -318632,7 +386983,8 @@ public static class AssemblyQuestLoader reference113 = questStep10; obj103.Steps = list150; reference112 = obj103; - ref QuestSequence reference114 = ref span48[1]; + num++; + ref QuestSequence reference114 = ref span149[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 @@ -318640,29 +386992,36 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1041091u, new Vector3(-89.89093f, 89.42026f, -616.14404f), 957) + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span152[index2] = new QuestStep(EInteractionType.Interact, 1041091u, new Vector3(-89.89093f, 89.42026f, -616.14404f), 957) { Fly = true }; obj104.Steps = list152; reference114 = obj104; - ref QuestSequence reference115 = ref span48[2]; + num++; + ref QuestSequence reference115 = ref span149[num]; QuestSequence obj105 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list153)[0]; + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + ref QuestStep reference116 = ref span153[num2]; QuestStep obj106 = new QuestStep(EInteractionType.Interact, 1037697u, new Vector3(-73.74689f, 99.94384f, -715.44977f), 957) { Fly = true }; - num3 = 1; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = new DialogueChoice + num4 = 1; + List list154 = new List(num4); + CollectionsMarshal.SetCount(list154, num4); + Span span154 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span154[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMJ108_04677_Q2_000_063") @@ -318671,11 +387030,13 @@ public static class AssemblyQuestLoader reference116 = obj106; obj105.Steps = list153; reference115 = obj105; - span48[3] = new QuestSequence + num++; + span149[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference117 = ref span48[4]; + num++; + ref QuestSequence reference117 = ref span149[num]; QuestSequence obj107 = new QuestSequence { Sequence = 4 @@ -318683,7 +387044,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Duty, null, null, 1125) + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new QuestStep(EInteractionType.Duty, null, null, 1125) { DutyOptions = new DutyOptions { @@ -318692,19 +387055,23 @@ public static class AssemblyQuestLoader }; obj107.Steps = list155; reference117 = obj107; - span48[5] = new QuestSequence + num++; + span149[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference118 = ref span48[6]; + num++; + ref QuestSequence reference118 = ref span149[num]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044291u, new Vector3(-40.024475f, 89.42017f, -636.86584f), 957) + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044291u, new Vector3(-40.024475f, 89.42017f, -636.86584f), 957) { StopDistance = 5f }; @@ -318717,13 +387084,16 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "liza"; + Span span157 = CollectionsMarshal.AsSpan(list157); + index = 0; + span157[index] = "liza"; questRoot19.Author = list157; - num = 3; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span49 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference119 = ref span49[0]; + index = 3; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + Span span158 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestSequence reference119 = ref span158[num]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -318731,21 +387101,26 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044291u, new Vector3(-40.024475f, 89.42017f, -636.86584f), 957) + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044291u, new Vector3(-40.024475f, 89.42017f, -636.86584f), 957) { StopDistance = 5f }; obj109.Steps = list159; reference119 = obj109; - ref QuestSequence reference120 = ref span49[1]; + num++; + ref QuestSequence reference120 = ref span158[num]; QuestSequence obj110 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list160)[0]; + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + ref QuestStep reference121 = ref span160[num2]; QuestStep obj111 = new QuestStep(EInteractionType.Interact, 1039649u, new Vector3(-336.53772f, 55f, -69.47443f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -318758,7 +387133,9 @@ public static class AssemblyQuestLoader num3 = 1; List list161 = new List(num3); CollectionsMarshal.SetCount(list161, num3); - CollectionsMarshal.AsSpan(list161)[0] = new DialogueChoice + Span span161 = CollectionsMarshal.AsSpan(list161); + num4 = 0; + span161[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMJ109_04678_SYSTEM_000_021") @@ -318767,7 +387144,8 @@ public static class AssemblyQuestLoader reference121 = obj111; obj110.Steps = list160; reference120 = obj110; - ref QuestSequence reference122 = ref span49[2]; + num++; + ref QuestSequence reference122 = ref span158[num]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue @@ -318775,7 +387153,9 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); obj112.Steps = list162; reference122 = obj112; questRoot19.QuestSequence = list158; @@ -318785,21 +387165,26 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "liza"; + Span span163 = CollectionsMarshal.AsSpan(list163); + index = 0; + span163[index] = "liza"; questRoot20.Author = list163; - num = 7; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span50 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference123 = ref span50[0]; + index = 7; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + Span span164 = CollectionsMarshal.AsSpan(list164); + num = 0; + ref QuestSequence reference123 = ref span164[num]; QuestSequence obj113 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044910u, new Vector3(23.75824f, 2.453333f, -12.680237f), 962) + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span165[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044910u, new Vector3(23.75824f, 2.453333f, -12.680237f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -318812,7 +387197,8 @@ public static class AssemblyQuestLoader }; obj113.Steps = list165; reference123 = obj113; - ref QuestSequence reference124 = ref span50[1]; + num++; + ref QuestSequence reference124 = ref span164[num]; QuestSequence obj114 = new QuestSequence { Sequence = 1 @@ -318820,40 +387206,51 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1044911u, new Vector3(0.38146973f, -127.50014f, -457.14508f), 959) + Span span166 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span166[index2] = new QuestStep(EInteractionType.Interact, 1044911u, new Vector3(0.38146973f, -127.50014f, -457.14508f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj114.Steps = list166; reference124 = obj114; - ref QuestSequence reference125 = ref span50[2]; + num++; + ref QuestSequence reference125 = ref span164[num]; QuestSequence obj115 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - Span span51 = CollectionsMarshal.AsSpan(list167); - ref QuestStep reference126 = ref span51[0]; + index2 = 3; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + ref QuestStep reference126 = ref span167[num2]; QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1044914u, new Vector3(-120.409f, -137.41672f, -526.63464f), 959) { Fly = true }; - num3 = 6; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - Span span52 = CollectionsMarshal.AsSpan(list168); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list168 = new List(num4); + CollectionsMarshal.SetCount(list168, num4); + Span span168 = CollectionsMarshal.AsSpan(list168); + num3 = 0; + span168[num3] = null; + num3++; + span168[num3] = null; + num3++; + span168[num3] = null; + num3++; + span168[num3] = null; + num3++; + span168[num3] = null; + num3++; + span168[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj116.CompletionQuestVariablesFlags = list168; reference126 = obj116; - ref QuestStep reference127 = ref span51[1]; + num2++; + ref QuestStep reference127 = ref span167[num2]; QuestStep obj117 = new QuestStep(EInteractionType.Interact, 1044913u, new Vector3(55.161255f, -129.40565f, -636.8048f), 959) { Fly = true @@ -318861,35 +387258,49 @@ public static class AssemblyQuestLoader num3 = 6; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - Span span53 = CollectionsMarshal.AsSpan(list169); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span169 = CollectionsMarshal.AsSpan(list169); + num4 = 0; + span169[num4] = null; + num4++; + span169[num4] = null; + num4++; + span169[num4] = null; + num4++; + span169[num4] = null; + num4++; + span169[num4] = null; + num4++; + span169[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj117.CompletionQuestVariablesFlags = list169; reference127 = obj117; - ref QuestStep reference128 = ref span51[2]; + num2++; + ref QuestStep reference128 = ref span167[num2]; QuestStep obj118 = new QuestStep(EInteractionType.Interact, 1044912u, new Vector3(61.41748f, -137.4167f, -606.28674f), 959) { Fly = true }; - num3 = 6; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - Span span54 = CollectionsMarshal.AsSpan(list170); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list170 = new List(num4); + CollectionsMarshal.SetCount(list170, num4); + Span span170 = CollectionsMarshal.AsSpan(list170); + num3 = 0; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj118.CompletionQuestVariablesFlags = list170; reference128 = obj118; obj115.Steps = list167; reference125 = obj115; - ref QuestSequence reference129 = ref span50[3]; + num++; + ref QuestSequence reference129 = ref span164[num]; QuestSequence obj119 = new QuestSequence { Sequence = 3 @@ -318897,27 +387308,33 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1044911u, new Vector3(0.38146973f, -127.50014f, -457.14508f), 959) + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span171[index2] = new QuestStep(EInteractionType.Interact, 1044911u, new Vector3(0.38146973f, -127.50014f, -457.14508f), 959) { Fly = true }; obj119.Steps = list171; reference129 = obj119; - ref QuestSequence reference130 = ref span50[4]; + num++; + ref QuestSequence reference130 = ref span164[num]; QuestSequence obj120 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1044919u, new Vector3(148.30237f, -49.589592f, -361.77618f), 959) + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span172[num2] = new QuestStep(EInteractionType.Interact, 1044919u, new Vector3(148.30237f, -49.589592f, -361.77618f), 959) { Fly = true }; obj120.Steps = list172; reference130 = obj120; - ref QuestSequence reference131 = ref span50[5]; + num++; + ref QuestSequence reference131 = ref span164[num]; QuestSequence obj121 = new QuestSequence { Sequence = 5 @@ -318925,27 +387342,32 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1044920u, new Vector3(-170.42804f, -49.399723f, -289.5705f), 959) + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.Interact, 1044920u, new Vector3(-170.42804f, -49.399723f, -289.5705f), 959) { Fly = true }; obj121.Steps = list173; reference131 = obj121; - ref QuestSequence reference132 = ref span50[6]; + num++; + ref QuestSequence reference132 = ref span164[num]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - Span span55 = CollectionsMarshal.AsSpan(list174); - span55[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 2; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38843u, ItemCount = 3 }; - span55[1] = new QuestStep(EInteractionType.CompleteQuest, 1044921u, new Vector3(-170.0008f, -49.34972f, -287.22064f), 959) + num2++; + span174[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044921u, new Vector3(-170.0008f, -49.34972f, -287.22064f), 959) { StopDistance = 5f }; @@ -318958,13 +387380,16 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "kaiser"; + Span span175 = CollectionsMarshal.AsSpan(list175); + index = 0; + span175[index] = "kaiser"; questRoot21.Author = list175; - num = 5; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span56 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference133 = ref span56[0]; + index = 5; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + Span span176 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference133 = ref span176[num]; QuestSequence obj123 = new QuestSequence { Sequence = 0 @@ -318972,8 +387397,9 @@ public static class AssemblyQuestLoader num2 = 2; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span57 = CollectionsMarshal.AsSpan(list177); - span57[0] = new QuestStep(EInteractionType.None, null, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span177[index2] = new QuestStep(EInteractionType.None, null, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) { StopDistance = 5f, Fly = true, @@ -318991,22 +387417,26 @@ public static class AssemblyQuestLoader } } }; - span57[1] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) + index2++; + span177[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) { StopDistance = 5f, Fly = true }; obj123.Steps = list177; reference133 = obj123; - ref QuestSequence reference134 = ref span56[1]; + num++; + ref QuestSequence reference134 = ref span176[num]; QuestSequence obj124 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1044924u, new Vector3(344.625f, -168.00002f, -403.89105f), 959) + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + Span span178 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span178[num2] = new QuestStep(EInteractionType.Interact, 1044924u, new Vector3(344.625f, -168.00002f, -403.89105f), 959) { StopDistance = 5f, Fly = true, @@ -319021,7 +387451,8 @@ public static class AssemblyQuestLoader }; obj124.Steps = list178; reference134 = obj124; - ref QuestSequence reference135 = ref span56[2]; + num++; + ref QuestSequence reference135 = ref span176[num]; QuestSequence obj125 = new QuestSequence { Sequence = 2 @@ -319029,7 +387460,9 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1044926u, new Vector3(500.96887f, -164.43474f, -698.3902f), 959) + Span span179 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span179[index2] = new QuestStep(EInteractionType.Interact, 1044926u, new Vector3(500.96887f, -164.43474f, -698.3902f), 959) { StopDistance = 5f, Fly = true, @@ -319044,15 +387477,18 @@ public static class AssemblyQuestLoader }; obj125.Steps = list179; reference135 = obj125; - ref QuestSequence reference136 = ref span56[3]; + num++; + ref QuestSequence reference136 = ref span176[num]; QuestSequence obj126 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1044928u, new Vector3(-172.74744f, -49.199722f, -250.8736f), 959) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.Interact, 1044928u, new Vector3(-172.74744f, -49.199722f, -250.8736f), 959) { StopDistance = 5f, Fly = true, @@ -319067,7 +387503,8 @@ public static class AssemblyQuestLoader }; obj126.Steps = list180; reference136 = obj126; - ref QuestSequence reference137 = ref span56[4]; + num++; + ref QuestSequence reference137 = ref span176[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -319075,13 +387512,15 @@ public static class AssemblyQuestLoader num2 = 2; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span58 = CollectionsMarshal.AsSpan(list181); - span58[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span181[index2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38845u, ItemCount = 2 }; - span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1044928u, new Vector3(-172.74744f, -49.199722f, -250.8736f), 959) + index2++; + span181[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044928u, new Vector3(-172.74744f, -49.199722f, -250.8736f), 959) { StopDistance = 5f, Fly = true, @@ -319103,24 +387542,30 @@ public static class AssemblyQuestLoader num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - CollectionsMarshal.AsSpan(list182)[0] = "liza"; + Span span182 = CollectionsMarshal.AsSpan(list182); + index = 0; + span182[index] = "liza"; questRoot22.Author = list182; - num = 7; - List list183 = new List(num); - CollectionsMarshal.SetCount(list183, num); - Span span59 = CollectionsMarshal.AsSpan(list183); - ref QuestSequence reference138 = ref span59[0]; + index = 7; + List list183 = new List(index); + CollectionsMarshal.SetCount(list183, index); + Span span183 = CollectionsMarshal.AsSpan(list183); + num = 0; + ref QuestSequence reference138 = ref span183[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span184[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); obj128.Steps = list184; reference138 = obj128; - ref QuestSequence reference139 = ref span59[1]; + num++; + ref QuestSequence reference139 = ref span183[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -319128,66 +387573,91 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1044932u, new Vector3(12.436096f, 3.2249978f, 3.829956f), 962) + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.Interact, 1044932u, new Vector3(12.436096f, 3.2249978f, 3.829956f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan }; obj129.Steps = list185; reference139 = obj129; - ref QuestSequence reference140 = ref span59[2]; + num++; + ref QuestSequence reference140 = ref span183[num]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - Span span60 = CollectionsMarshal.AsSpan(list186); - ref QuestStep reference141 = ref span60[0]; + index2 = 3; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + ref QuestStep reference141 = ref span186[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1044934u, new Vector3(75.12012f, 5.149998f, -44.724243f), 962); num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - Span span61 = CollectionsMarshal.AsSpan(list187); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span187 = CollectionsMarshal.AsSpan(list187); + num4 = 0; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list187; reference141 = questStep11; - ref QuestStep reference142 = ref span60[1]; + num2++; + ref QuestStep reference142 = ref span186[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1044933u, new Vector3(15.609924f, 2.3729992f, -72.19049f), 962); - num3 = 6; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span62 = CollectionsMarshal.AsSpan(list188); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list188 = new List(num4); + CollectionsMarshal.SetCount(list188, num4); + Span span188 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list188; reference142 = questStep12; - ref QuestStep reference143 = ref span60[2]; + num2++; + ref QuestStep reference143 = ref span186[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1044935u, new Vector3(11.36792f, 41.37599f, -140.5509f), 962); num3 = 6; List list189 = new List(num3); CollectionsMarshal.SetCount(list189, num3); - Span span63 = CollectionsMarshal.AsSpan(list189); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span189 = CollectionsMarshal.AsSpan(list189); + num4 = 0; + span189[num4] = null; + num4++; + span189[num4] = null; + num4++; + span189[num4] = null; + num4++; + span189[num4] = null; + num4++; + span189[num4] = null; + num4++; + span189[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list189; reference143 = questStep13; obj130.Steps = list186; reference140 = obj130; - ref QuestSequence reference144 = ref span59[3]; + num++; + ref QuestSequence reference144 = ref span183[num]; QuestSequence obj131 = new QuestSequence { Sequence = 3 @@ -319195,7 +387665,9 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1044936u, new Vector3(-328.99976f, 20.0375f, -113.359314f), 962) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.Interact, 1044936u, new Vector3(-328.99976f, 20.0375f, -113.359314f), 962) { AethernetShortcut = new AethernetShortcut { @@ -319205,15 +387677,18 @@ public static class AssemblyQuestLoader }; obj131.Steps = list190; reference144 = obj131; - ref QuestSequence reference145 = ref span59[4]; + num++; + ref QuestSequence reference145 = ref span183[num]; QuestSequence obj132 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962) + index2 = 1; + List list191 = new List(index2); + CollectionsMarshal.SetCount(list191, index2); + Span span191 = CollectionsMarshal.AsSpan(list191); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.Interact, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962) { StopDistance = 7f, AethernetShortcut = new AethernetShortcut @@ -319224,7 +387699,8 @@ public static class AssemblyQuestLoader }; obj132.Steps = list191; reference145 = obj132; - ref QuestSequence reference146 = ref span59[5]; + num++; + ref QuestSequence reference146 = ref span183[num]; QuestSequence obj133 = new QuestSequence { Sequence = 5 @@ -319232,28 +387708,33 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1044937u, new Vector3(-193.59125f, -49.199722f, -293.23267f), 959) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.Interact, 1044937u, new Vector3(-193.59125f, -49.199722f, -293.23267f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj133.Steps = list192; reference146 = obj133; - ref QuestSequence reference147 = ref span59[6]; + num++; + ref QuestSequence reference147 = ref span183[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - Span span64 = CollectionsMarshal.AsSpan(list193); - span64[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 2; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38847u, ItemCount = 2 }; - span64[1] = new QuestStep(EInteractionType.CompleteQuest, 1044937u, new Vector3(-193.59125f, -49.199722f, -293.23267f), 959); + num2++; + span193[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044937u, new Vector3(-193.59125f, -49.199722f, -293.23267f), 959); obj134.Steps = list193; reference147 = obj134; questRoot22.QuestSequence = list183; @@ -319263,13 +387744,16 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "AnimaMachinae"; + Span span194 = CollectionsMarshal.AsSpan(list194); + index = 0; + span194[index] = "AnimaMachinae"; questRoot23.Author = list194; - num = 8; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span65 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference148 = ref span65[0]; + index = 8; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + Span span195 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference148 = ref span195[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -319277,25 +387761,31 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span196[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); obj135.Steps = list196; reference148 = obj135; - ref QuestSequence reference149 = ref span65[1]; + num++; + ref QuestSequence reference149 = ref span195[num]; QuestSequence obj136 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 2013281u, new Vector3(-330.19f, 105.1499f, 554.5586f), 959) + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span197[num2] = new QuestStep(EInteractionType.Interact, 2013281u, new Vector3(-330.19f, 105.1499f, 554.5586f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; obj136.Steps = list197; reference149 = obj136; - ref QuestSequence reference150 = ref span65[2]; + num++; + ref QuestSequence reference150 = ref span195[num]; QuestSequence obj137 = new QuestSequence { Sequence = 2 @@ -319303,25 +387793,31 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1044942u, new Vector3(-331.838f, 105.39431f, 551.2322f), 959); + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span198[index2] = new QuestStep(EInteractionType.Interact, 1044942u, new Vector3(-331.838f, 105.39431f, 551.2322f), 959); obj137.Steps = list198; reference150 = obj137; - ref QuestSequence reference151 = ref span65[3]; + num++; + ref QuestSequence reference151 = ref span195[num]; QuestSequence obj138 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1044931u, new Vector3(148.30237f, -49.589592f, -361.77618f), 959) + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + Span span199 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span199[num2] = new QuestStep(EInteractionType.Interact, 1044931u, new Vector3(148.30237f, -49.589592f, -361.77618f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj138.Steps = list199; reference151 = obj138; - ref QuestSequence reference152 = ref span65[4]; + num++; + ref QuestSequence reference152 = ref span195[num]; QuestSequence obj139 = new QuestSequence { Sequence = 4 @@ -319329,40 +387825,51 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span200[index2] = new QuestStep(EInteractionType.Interact, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) { Fly = true }; obj139.Steps = list200; reference152 = obj139; - ref QuestSequence reference153 = ref span65[5]; + num++; + ref QuestSequence reference153 = ref span195[num]; QuestSequence obj140 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - Span span66 = CollectionsMarshal.AsSpan(list201); - ref QuestStep reference154 = ref span66[0]; + index2 = 3; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + ref QuestStep reference154 = ref span201[num2]; QuestStep obj141 = new QuestStep(EInteractionType.Interact, 1044944u, new Vector3(-463.55383f, -157.99237f, -513.3593f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - num3 = 6; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - Span span67 = CollectionsMarshal.AsSpan(list202); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list202 = new List(num4); + CollectionsMarshal.SetCount(list202, num4); + Span span202 = CollectionsMarshal.AsSpan(list202); + num3 = 0; + span202[num3] = null; + num3++; + span202[num3] = null; + num3++; + span202[num3] = null; + num3++; + span202[num3] = null; + num3++; + span202[num3] = null; + num3++; + span202[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj141.CompletionQuestVariablesFlags = list202; reference154 = obj141; - ref QuestStep reference155 = ref span66[1]; + num2++; + ref QuestStep reference155 = ref span201[num2]; QuestStep obj142 = new QuestStep(EInteractionType.Interact, 1044945u, new Vector3(-540.1236f, -167.8502f, -620.63025f), 959) { Fly = true @@ -319370,22 +387877,30 @@ public static class AssemblyQuestLoader num3 = 6; List list203 = new List(num3); CollectionsMarshal.SetCount(list203, num3); - Span span68 = CollectionsMarshal.AsSpan(list203); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span203 = CollectionsMarshal.AsSpan(list203); + num4 = 0; + span203[num4] = null; + num4++; + span203[num4] = null; + num4++; + span203[num4] = null; + num4++; + span203[num4] = null; + num4++; + span203[num4] = null; + num4++; + span203[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj142.CompletionQuestVariablesFlags = list203; reference155 = obj142; - span66[2] = new QuestStep(EInteractionType.Interact, 1044943u, new Vector3(-414.54187f, -158.1177f, -639.9481f), 959) + num2++; + span201[num2] = new QuestStep(EInteractionType.Interact, 1044943u, new Vector3(-414.54187f, -158.1177f, -639.9481f), 959) { Fly = true }; obj140.Steps = list201; reference153 = obj140; - ref QuestSequence reference156 = ref span65[6]; + num++; + ref QuestSequence reference156 = ref span195[num]; QuestSequence obj143 = new QuestSequence { Sequence = 6 @@ -319393,28 +387908,33 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1044947u, new Vector3(-145.70844f, -49.19972f, -271.5343f), 959) + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span204[index2] = new QuestStep(EInteractionType.Interact, 1044947u, new Vector3(-145.70844f, -49.19972f, -271.5343f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj143.Steps = list204; reference156 = obj143; - ref QuestSequence reference157 = ref span65[7]; + num++; + ref QuestSequence reference157 = ref span195[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - Span span69 = CollectionsMarshal.AsSpan(list205); - span69[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 2; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + Span span205 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span205[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38849u, ItemCount = 1 }; - span69[1] = new QuestStep(EInteractionType.CompleteQuest, 1044947u, new Vector3(-145.70844f, -49.19972f, -271.5343f), 959); + num2++; + span205[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044947u, new Vector3(-145.70844f, -49.19972f, -271.5343f), 959); obj144.Steps = list205; reference157 = obj144; questRoot23.QuestSequence = list195; @@ -319424,13 +387944,16 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "kaiser"; + Span span206 = CollectionsMarshal.AsSpan(list206); + index = 0; + span206[index] = "kaiser"; questRoot24.Author = list206; - num = 4; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span70 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference158 = ref span70[0]; + index = 4; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + Span span207 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference158 = ref span207[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 @@ -319438,7 +387961,9 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list208)[0]; + Span span208 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + ref QuestStep reference159 = ref span208[index2]; QuestStep obj146 = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) { StopDistance = 5f, @@ -319450,25 +387975,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list209 = new List(num3); - CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = 959; + num4 = 1; + List list209 = new List(num4); + CollectionsMarshal.SetCount(list209, num4); + Span span209 = CollectionsMarshal.AsSpan(list209); + num3 = 0; + span209[num3] = 959; obj147.InTerritory = list209; skipConditions2.AetheryteShortcutIf = obj147; obj146.SkipConditions = skipConditions2; reference159 = obj146; obj145.Steps = list208; reference158 = obj145; - ref QuestSequence reference160 = ref span70[1]; + num++; + ref QuestSequence reference160 = ref span207[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1044953u, new Vector3(-340.53564f, 104.34723f, 531.3954f), 959) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span210[num2] = new QuestStep(EInteractionType.Interact, 1044953u, new Vector3(-340.53564f, 104.34723f, 531.3954f), 959) { StopDistance = 5f, Fly = true, @@ -319476,7 +388006,8 @@ public static class AssemblyQuestLoader }; obj148.Steps = list210; reference160 = obj148; - ref QuestSequence reference161 = ref span70[2]; + num++; + ref QuestSequence reference161 = ref span207[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 @@ -319484,27 +388015,32 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1044955u, new Vector3(-161.36414f, -49.19972f, -288.4718f), 959) + Span span211 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span211[index2] = new QuestStep(EInteractionType.Interact, 1044955u, new Vector3(-161.36414f, -49.19972f, -288.4718f), 959) { StopDistance = 5f }; obj149.Steps = list211; reference161 = obj149; - ref QuestSequence reference162 = ref span70[3]; + num++; + ref QuestSequence reference162 = ref span207[num]; QuestSequence obj150 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - Span span71 = CollectionsMarshal.AsSpan(list212); - span71[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 2; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span212[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38851u, ItemCount = 1 }; - span71[1] = new QuestStep(EInteractionType.CompleteQuest, 1044955u, new Vector3(-161.36414f, -49.19972f, -288.4718f), 959); + num2++; + span212[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044955u, new Vector3(-161.36414f, -49.19972f, -288.4718f), 959); obj150.Steps = list212; reference162 = obj150; questRoot24.QuestSequence = list207; @@ -319514,13 +388050,16 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - CollectionsMarshal.AsSpan(list213)[0] = "pot0to"; + Span span213 = CollectionsMarshal.AsSpan(list213); + index = 0; + span213[index] = "pot0to"; questRoot25.Author = list213; - num = 6; - List list214 = new List(num); - CollectionsMarshal.SetCount(list214, num); - Span span72 = CollectionsMarshal.AsSpan(list214); - ref QuestSequence reference163 = ref span72[0]; + index = 6; + List list214 = new List(index); + CollectionsMarshal.SetCount(list214, index); + Span span214 = CollectionsMarshal.AsSpan(list214); + num = 0; + ref QuestSequence reference163 = ref span214[num]; QuestSequence obj151 = new QuestSequence { Sequence = 0 @@ -319528,7 +388067,9 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) + Span span215 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span215[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) { Fly = true, SkipConditions = new SkipConditions @@ -319541,18 +388082,22 @@ public static class AssemblyQuestLoader }; obj151.Steps = list215; reference163 = obj151; - ref QuestSequence reference164 = ref span72[1]; + num++; + ref QuestSequence reference164 = ref span214[num]; QuestSequence obj152 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 1044404u, new Vector3(-203.5401f, -48.949738f, -280.232f), 959); + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + Span span216 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span216[num2] = new QuestStep(EInteractionType.Interact, 1044404u, new Vector3(-203.5401f, -48.949738f, -280.232f), 959); obj152.Steps = list216; reference164 = obj152; - ref QuestSequence reference165 = ref span72[2]; + num++; + ref QuestSequence reference165 = ref span214[num]; QuestSequence obj153 = new QuestSequence { Sequence = 2 @@ -319560,21 +388105,27 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Interact, 1044406u, new Vector3(-174.63953f, -49.149708f, -248.67633f), 959); + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new QuestStep(EInteractionType.Interact, 1044406u, new Vector3(-174.63953f, -49.149708f, -248.67633f), 959); obj153.Steps = list217; reference165 = obj153; - ref QuestSequence reference166 = ref span72[3]; + num++; + ref QuestSequence reference166 = ref span214[num]; QuestSequence obj154 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1044407u, new Vector3(-196.49048f, -48.874695f, -301.01477f), 959); + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span218[num2] = new QuestStep(EInteractionType.Interact, 1044407u, new Vector3(-196.49048f, -48.874695f, -301.01477f), 959); obj154.Steps = list218; reference166 = obj154; - ref QuestSequence reference167 = ref span72[4]; + num++; + ref QuestSequence reference167 = ref span214[num]; QuestSequence obj155 = new QuestSequence { Sequence = 4 @@ -319582,18 +388133,23 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.Interact, 1044414u, new Vector3(-170.79425f, -48.89972f, -282.18512f), 959); + Span span219 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span219[index2] = new QuestStep(EInteractionType.Interact, 1044414u, new Vector3(-170.79425f, -48.89972f, -282.18512f), 959); obj155.Steps = list219; reference167 = obj155; - ref QuestSequence reference168 = ref span72[5]; + num++; + ref QuestSequence reference168 = ref span214[num]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span220[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); obj156.Steps = list220; reference168 = obj156; questRoot25.QuestSequence = list214; @@ -319603,13 +388159,16 @@ public static class AssemblyQuestLoader num = 1; List list221 = new List(num); CollectionsMarshal.SetCount(list221, num); - CollectionsMarshal.AsSpan(list221)[0] = "liza"; + Span span221 = CollectionsMarshal.AsSpan(list221); + index = 0; + span221[index] = "liza"; questRoot26.Author = list221; - num = 3; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - Span span73 = CollectionsMarshal.AsSpan(list222); - ref QuestSequence reference169 = ref span73[0]; + index = 3; + List list222 = new List(index); + CollectionsMarshal.SetCount(list222, index); + Span span222 = CollectionsMarshal.AsSpan(list222); + num = 0; + ref QuestSequence reference169 = ref span222[num]; QuestSequence obj157 = new QuestSequence { Sequence = 0 @@ -319617,27 +388176,33 @@ public static class AssemblyQuestLoader num2 = 2; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span74 = CollectionsMarshal.AsSpan(list223); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span74[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span223[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + index2++; + span223[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj157.Steps = list223; reference169 = obj157; - ref QuestSequence reference170 = ref span73[1]; + num++; + ref QuestSequence reference170 = ref span222[num]; QuestSequence obj158 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1044564u, new Vector3(456.13794f, -167.50003f, -759.02954f), 959) + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span224[num2] = new QuestStep(EInteractionType.Interact, 1044564u, new Vector3(456.13794f, -167.50003f, -759.02954f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj158.Steps = list224; reference170 = obj158; - ref QuestSequence reference171 = ref span73[2]; + num++; + ref QuestSequence reference171 = ref span222[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -319645,18 +388210,21 @@ public static class AssemblyQuestLoader num2 = 3; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span75 = CollectionsMarshal.AsSpan(list225); - span75[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span225 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span225[index2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38853u, ItemCount = 3 }; - span75[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + index2++; + span225[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span75[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + index2++; + span225[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj159.Steps = list225; reference171 = obj159; questRoot26.QuestSequence = list222; @@ -319666,26 +388234,32 @@ public static class AssemblyQuestLoader num = 1; List list226 = new List(num); CollectionsMarshal.SetCount(list226, num); - CollectionsMarshal.AsSpan(list226)[0] = "liza"; + Span span226 = CollectionsMarshal.AsSpan(list226); + index = 0; + span226[index] = "liza"; questRoot27.Author = list226; - num = 4; - List list227 = new List(num); - CollectionsMarshal.SetCount(list227, num); - Span span76 = CollectionsMarshal.AsSpan(list227); - ref QuestSequence reference172 = ref span76[0]; + index = 4; + List list227 = new List(index); + CollectionsMarshal.SetCount(list227, index); + Span span227 = CollectionsMarshal.AsSpan(list227); + num = 0; + ref QuestSequence reference172 = ref span227[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span77 = CollectionsMarshal.AsSpan(list228); - span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span77[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + index2 = 2; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span228[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj160.Steps = list228; reference172 = obj160; - ref QuestSequence reference173 = ref span76[1]; + num++; + ref QuestSequence reference173 = ref span227[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -319693,31 +388267,37 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1044565u, new Vector3(352.0714f, -161.16423f, -378.0423f), 959) + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span229[index2] = new QuestStep(EInteractionType.Interact, 1044565u, new Vector3(352.0714f, -161.16423f, -378.0423f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj161.Steps = list229; reference173 = obj161; - ref QuestSequence reference174 = ref span76[2]; + num++; + ref QuestSequence reference174 = ref span227[num]; QuestSequence obj162 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - Span span78 = CollectionsMarshal.AsSpan(list230); - span78[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 2; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span230[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38855u, ItemCount = 2 }; - span78[1] = new QuestStep(EInteractionType.Interact, 1044565u, new Vector3(352.0714f, -161.16423f, -378.0423f), 959); + num2++; + span230[num2] = new QuestStep(EInteractionType.Interact, 1044565u, new Vector3(352.0714f, -161.16423f, -378.0423f), 959); obj162.Steps = list230; reference174 = obj162; - ref QuestSequence reference175 = ref span76[3]; + num++; + ref QuestSequence reference175 = ref span227[num]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue @@ -319725,13 +388305,15 @@ public static class AssemblyQuestLoader num2 = 2; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span79 = CollectionsMarshal.AsSpan(list231); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + Span span231 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span231[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + index2++; + span231[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj163.Steps = list231; reference175 = obj163; questRoot27.QuestSequence = list227; @@ -319741,26 +388323,32 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - CollectionsMarshal.AsSpan(list232)[0] = "liza"; + Span span232 = CollectionsMarshal.AsSpan(list232); + index = 0; + span232[index] = "liza"; questRoot28.Author = list232; - num = 3; - List list233 = new List(num); - CollectionsMarshal.SetCount(list233, num); - Span span80 = CollectionsMarshal.AsSpan(list233); - ref QuestSequence reference176 = ref span80[0]; + index = 3; + List list233 = new List(index); + CollectionsMarshal.SetCount(list233, index); + Span span233 = CollectionsMarshal.AsSpan(list233); + num = 0; + ref QuestSequence reference176 = ref span233[num]; QuestSequence obj164 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - Span span81 = CollectionsMarshal.AsSpan(list234); - span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span81[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + index2 = 2; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + Span span234 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span234[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span234[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj164.Steps = list234; reference176 = obj164; - ref QuestSequence reference177 = ref span80[1]; + num++; + ref QuestSequence reference177 = ref span233[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 @@ -319768,8 +388356,9 @@ public static class AssemblyQuestLoader num2 = 2; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span82 = CollectionsMarshal.AsSpan(list235); - span82[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-170.51479f, -105.22506f, -511.04712f), 959) + Span span235 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span235[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-170.51479f, -105.22506f, -511.04712f), 959) { Fly = true, SkipConditions = new SkipConditions @@ -319780,31 +388369,36 @@ public static class AssemblyQuestLoader } } }; - span82[1] = new QuestStep(EInteractionType.Interact, 1044572u, new Vector3(-638.056f, -143.79326f, -513.0846f), 959) + index2++; + span235[index2] = new QuestStep(EInteractionType.Interact, 1044572u, new Vector3(-638.056f, -143.79326f, -513.0846f), 959) { Fly = true }; obj165.Steps = list235; reference177 = obj165; - ref QuestSequence reference178 = ref span80[2]; + num++; + ref QuestSequence reference178 = ref span233[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - Span span83 = CollectionsMarshal.AsSpan(list236); - span83[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 3; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38857u, ItemCount = 4 }; - span83[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num2++; + span236[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - span83[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span236[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj166.Steps = list236; reference178 = obj166; questRoot28.QuestSequence = list233; @@ -319814,13 +388408,16 @@ public static class AssemblyQuestLoader num = 1; List list237 = new List(num); CollectionsMarshal.SetCount(list237, num); - CollectionsMarshal.AsSpan(list237)[0] = "liza"; + Span span237 = CollectionsMarshal.AsSpan(list237); + index = 0; + span237[index] = "liza"; questRoot29.Author = list237; - num = 5; - List list238 = new List(num); - CollectionsMarshal.SetCount(list238, num); - Span span84 = CollectionsMarshal.AsSpan(list238); - ref QuestSequence reference179 = ref span84[0]; + index = 5; + List list238 = new List(index); + CollectionsMarshal.SetCount(list238, index); + Span span238 = CollectionsMarshal.AsSpan(list238); + num = 0; + ref QuestSequence reference179 = ref span238[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 @@ -319828,26 +388425,32 @@ public static class AssemblyQuestLoader num2 = 2; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span85 = CollectionsMarshal.AsSpan(list239); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span85[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + index2++; + span239[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj167.Steps = list239; reference179 = obj167; - ref QuestSequence reference180 = ref span84[1]; + num++; + ref QuestSequence reference180 = ref span238[num]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1044567u, new Vector3(-17.502136f, -47.192066f, -528.03845f), 959) + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.Interact, 1044567u, new Vector3(-17.502136f, -47.192066f, -528.03845f), 959) { Fly = true }; obj168.Steps = list240; reference180 = obj168; - ref QuestSequence reference181 = ref span84[2]; + num++; + ref QuestSequence reference181 = ref span238[num]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -319855,28 +388458,34 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Emote, 1044568u, new Vector3(-188.09796f, -49.14971f, -252.70471f), 959) + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.Emote, 1044568u, new Vector3(-188.09796f, -49.14971f, -252.70471f), 959) { Fly = true, Emote = EEmote.Dance }; obj169.Steps = list241; reference181 = obj169; - ref QuestSequence reference182 = ref span84[3]; + num++; + ref QuestSequence reference182 = ref span238[num]; QuestSequence obj170 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Emote, 1044568u, new Vector3(-188.09796f, -49.14971f, -252.70471f), 959) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.Emote, 1044568u, new Vector3(-188.09796f, -49.14971f, -252.70471f), 959) { Emote = EEmote.Dance }; obj170.Steps = list242; reference182 = obj170; - ref QuestSequence reference183 = ref span84[4]; + num++; + ref QuestSequence reference183 = ref span238[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -319884,9 +388493,11 @@ public static class AssemblyQuestLoader num2 = 2; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span86 = CollectionsMarshal.AsSpan(list243); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span86[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span243[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + index2++; + span243[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj171.Steps = list243; reference183 = obj171; questRoot29.QuestSequence = list238; @@ -319896,26 +388507,32 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - CollectionsMarshal.AsSpan(list244)[0] = "liza"; + Span span244 = CollectionsMarshal.AsSpan(list244); + index = 0; + span244[index] = "liza"; questRoot30.Author = list244; - num = 4; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - Span span87 = CollectionsMarshal.AsSpan(list245); - ref QuestSequence reference184 = ref span87[0]; + index = 4; + List list245 = new List(index); + CollectionsMarshal.SetCount(list245, index); + Span span245 = CollectionsMarshal.AsSpan(list245); + num = 0; + ref QuestSequence reference184 = ref span245[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span88 = CollectionsMarshal.AsSpan(list246); - span88[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span88[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + index2 = 2; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span246[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj172.Steps = list246; reference184 = obj172; - ref QuestSequence reference185 = ref span87[1]; + num++; + ref QuestSequence reference185 = ref span245[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -319923,31 +388540,37 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1044573u, new Vector3(487.23572f, -163.52985f, -600.5188f), 959) + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.Interact, 1044573u, new Vector3(487.23572f, -163.52985f, -600.5188f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj173.Steps = list247; reference185 = obj173; - ref QuestSequence reference186 = ref span87[2]; + num++; + ref QuestSequence reference186 = ref span245[num]; QuestSequence obj174 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - Span span89 = CollectionsMarshal.AsSpan(list248); - span89[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 2; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38859u, ItemCount = 3 }; - span89[1] = new QuestStep(EInteractionType.Interact, 1044573u, new Vector3(487.23572f, -163.52985f, -600.5188f), 959); + num2++; + span248[num2] = new QuestStep(EInteractionType.Interact, 1044573u, new Vector3(487.23572f, -163.52985f, -600.5188f), 959); obj174.Steps = list248; reference186 = obj174; - ref QuestSequence reference187 = ref span87[3]; + num++; + ref QuestSequence reference187 = ref span245[num]; QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue @@ -319955,13 +388578,15 @@ public static class AssemblyQuestLoader num2 = 2; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span90 = CollectionsMarshal.AsSpan(list249); - span90[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + index2++; + span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj175.Steps = list249; reference187 = obj175; questRoot30.QuestSequence = list245; @@ -319971,26 +388596,32 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "Kaiser"; + Span span250 = CollectionsMarshal.AsSpan(list250); + index = 0; + span250[index] = "Kaiser"; questRoot31.Author = list250; - num = 3; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span91 = CollectionsMarshal.AsSpan(list251); - ref QuestSequence reference188 = ref span91[0]; + index = 3; + List list251 = new List(index); + CollectionsMarshal.SetCount(list251, index); + Span span251 = CollectionsMarshal.AsSpan(list251); + num = 0; + ref QuestSequence reference188 = ref span251[num]; QuestSequence obj176 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span92 = CollectionsMarshal.AsSpan(list252); - span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span92[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + index2 = 2; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span252[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj176.Steps = list252; reference188 = obj176; - ref QuestSequence reference189 = ref span91[1]; + num++; + ref QuestSequence reference189 = ref span251[num]; QuestSequence obj177 = new QuestSequence { Sequence = 1 @@ -319998,7 +388629,9 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1044569u, new Vector3(-385.6718f, -151.67168f, -261.28027f), 959) + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.Interact, 1044569u, new Vector3(-385.6718f, -151.67168f, -261.28027f), 959) { StopDistance = 5f, Fly = true, @@ -320018,21 +388651,24 @@ public static class AssemblyQuestLoader }; obj177.Steps = list253; reference189 = obj177; - ref QuestSequence reference190 = ref span91[2]; + num++; + ref QuestSequence reference190 = ref span251[num]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - Span span93 = CollectionsMarshal.AsSpan(list254); - span93[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 3; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38861u, ItemCount = 2 }; - span93[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num2++; + span254[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, @@ -320049,7 +388685,8 @@ public static class AssemblyQuestLoader } } }; - span93[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span254[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj178.Steps = list254; reference190 = obj178; questRoot31.QuestSequence = list251; @@ -320059,13 +388696,16 @@ public static class AssemblyQuestLoader num = 1; List list255 = new List(num); CollectionsMarshal.SetCount(list255, num); - CollectionsMarshal.AsSpan(list255)[0] = "kaiser"; + Span span255 = CollectionsMarshal.AsSpan(list255); + index = 0; + span255[index] = "kaiser"; questRoot32.Author = list255; - num = 3; - List list256 = new List(num); - CollectionsMarshal.SetCount(list256, num); - Span span94 = CollectionsMarshal.AsSpan(list256); - ref QuestSequence reference191 = ref span94[0]; + index = 3; + List list256 = new List(index); + CollectionsMarshal.SetCount(list256, index); + Span span256 = CollectionsMarshal.AsSpan(list256); + num = 0; + ref QuestSequence reference191 = ref span256[num]; QuestSequence obj179 = new QuestSequence { Sequence = 0 @@ -320073,26 +388713,32 @@ public static class AssemblyQuestLoader num2 = 2; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span95 = CollectionsMarshal.AsSpan(list257); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span95[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + index2++; + span257[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj179.Steps = list257; reference191 = obj179; - ref QuestSequence reference192 = ref span94[1]; + num++; + ref QuestSequence reference192 = ref span256[num]; QuestSequence obj180 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959) + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span258[num2] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959) { StopDistance = 5f }; obj180.Steps = list258; reference192 = obj180; - ref QuestSequence reference193 = ref span94[2]; + num++; + ref QuestSequence reference193 = ref span256[num]; QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue @@ -320100,14 +388746,17 @@ public static class AssemblyQuestLoader num2 = 3; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span96 = CollectionsMarshal.AsSpan(list259); - span96[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span259[index2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38863u, ItemCount = 3 }; - span96[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span96[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + index2++; + span259[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + index2++; + span259[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj181.Steps = list259; reference193 = obj181; questRoot32.QuestSequence = list256; @@ -320117,26 +388766,32 @@ public static class AssemblyQuestLoader num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - CollectionsMarshal.AsSpan(list260)[0] = "kaiser"; + Span span260 = CollectionsMarshal.AsSpan(list260); + index = 0; + span260[index] = "kaiser"; questRoot33.Author = list260; - num = 4; - List list261 = new List(num); - CollectionsMarshal.SetCount(list261, num); - Span span97 = CollectionsMarshal.AsSpan(list261); - ref QuestSequence reference194 = ref span97[0]; + index = 4; + List list261 = new List(index); + CollectionsMarshal.SetCount(list261, index); + Span span261 = CollectionsMarshal.AsSpan(list261); + num = 0; + ref QuestSequence reference194 = ref span261[num]; QuestSequence obj182 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - Span span98 = CollectionsMarshal.AsSpan(list262); - span98[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span98[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + index2 = 2; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span262[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj182.Steps = list262; reference194 = obj182; - ref QuestSequence reference195 = ref span97[1]; + num++; + ref QuestSequence reference195 = ref span261[num]; QuestSequence obj183 = new QuestSequence { Sequence = 1 @@ -320144,7 +388799,9 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1044408u, new Vector3(-164.08032f, -49.199722f, -250.75159f), 959) + Span span263 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span263[index2] = new QuestStep(EInteractionType.Interact, 1044408u, new Vector3(-164.08032f, -49.199722f, -250.75159f), 959) { StopDistance = 5f, Fly = true, @@ -320159,22 +388816,25 @@ public static class AssemblyQuestLoader }; obj183.Steps = list263; reference195 = obj183; - ref QuestSequence reference196 = ref span97[2]; + num++; + ref QuestSequence reference196 = ref span261[num]; QuestSequence obj184 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - Span span99 = CollectionsMarshal.AsSpan(list264); - span99[0] = new QuestStep(EInteractionType.Action, 2013257u, new Vector3(-706.41644f, -140.39832f, -433.76825f), 959) + index2 = 2; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.Action, 2013257u, new Vector3(-706.41644f, -140.39832f, -433.76825f), 959) { Fly = true, Land = true, Action = EAction.HopStep }; - span99[1] = new QuestStep(EInteractionType.Action, 2013256u, new Vector3(-739.0097f, -139.72687f, -539.0555f), 959) + num2++; + span264[num2] = new QuestStep(EInteractionType.Action, 2013256u, new Vector3(-739.0097f, -139.72687f, -539.0555f), 959) { Fly = true, Land = true, @@ -320182,7 +388842,8 @@ public static class AssemblyQuestLoader }; obj184.Steps = list264; reference196 = obj184; - ref QuestSequence reference197 = ref span97[3]; + num++; + ref QuestSequence reference197 = ref span261[num]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -320190,7 +388851,9 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959) + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span265[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959) { StopDistance = 5f, Fly = true, @@ -320217,26 +388880,32 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - CollectionsMarshal.AsSpan(list266)[0] = "liza"; + Span span266 = CollectionsMarshal.AsSpan(list266); + index = 0; + span266[index] = "liza"; questRoot34.Author = list266; - num = 3; - List list267 = new List(num); - CollectionsMarshal.SetCount(list267, num); - Span span100 = CollectionsMarshal.AsSpan(list267); - ref QuestSequence reference198 = ref span100[0]; + index = 3; + List list267 = new List(index); + CollectionsMarshal.SetCount(list267, index); + Span span267 = CollectionsMarshal.AsSpan(list267); + num = 0; + ref QuestSequence reference198 = ref span267[num]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - Span span101 = CollectionsMarshal.AsSpan(list268); - span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span101[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + index2 = 2; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + Span span268 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span268[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span268[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj186.Steps = list268; reference198 = obj186; - ref QuestSequence reference199 = ref span100[1]; + num++; + ref QuestSequence reference199 = ref span267[num]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -320244,33 +388913,39 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1044580u, new Vector3(323.84216f, -144.00002f, -539.086f), 959) + Span span269 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + span269[index2] = new QuestStep(EInteractionType.Interact, 1044580u, new Vector3(323.84216f, -144.00002f, -539.086f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj187.Steps = list269; reference199 = obj187; - ref QuestSequence reference200 = ref span100[2]; + num++; + ref QuestSequence reference200 = ref span267[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - Span span102 = CollectionsMarshal.AsSpan(list270); - span102[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 3; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + Span span270 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span270[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38865u, ItemCount = 3 }; - span102[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num2++; + span270[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span102[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span270[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj188.Steps = list270; reference200 = obj188; questRoot34.QuestSequence = list267; @@ -320280,13 +388955,16 @@ public static class AssemblyQuestLoader num = 1; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - CollectionsMarshal.AsSpan(list271)[0] = "liza"; + Span span271 = CollectionsMarshal.AsSpan(list271); + index = 0; + span271[index] = "liza"; questRoot35.Author = list271; - num = 4; - List list272 = new List(num); - CollectionsMarshal.SetCount(list272, num); - Span span103 = CollectionsMarshal.AsSpan(list272); - ref QuestSequence reference201 = ref span103[0]; + index = 4; + List list272 = new List(index); + CollectionsMarshal.SetCount(list272, index); + Span span272 = CollectionsMarshal.AsSpan(list272); + num = 0; + ref QuestSequence reference201 = ref span272[num]; QuestSequence obj189 = new QuestSequence { Sequence = 0 @@ -320294,23 +388972,29 @@ public static class AssemblyQuestLoader num2 = 2; List list273 = new List(num2); CollectionsMarshal.SetCount(list273, num2); - Span span104 = CollectionsMarshal.AsSpan(list273); - span104[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span104[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + Span span273 = CollectionsMarshal.AsSpan(list273); + index2 = 0; + span273[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + index2++; + span273[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj189.Steps = list273; reference201 = obj189; - ref QuestSequence reference202 = ref span103[1]; + num++; + ref QuestSequence reference202 = ref span272[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); + index2 = 1; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + Span span274 = CollectionsMarshal.AsSpan(list274); + num2 = 0; + span274[num2] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); obj190.Steps = list274; reference202 = obj190; - ref QuestSequence reference203 = ref span103[2]; + num++; + ref QuestSequence reference203 = ref span272[num]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -320318,33 +389002,38 @@ public static class AssemblyQuestLoader num2 = 2; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - Span span105 = CollectionsMarshal.AsSpan(list275); - span105[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span275 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span275[index2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38867u, ItemCount = 1 }; - span105[1] = new QuestStep(EInteractionType.Interact, 1044581u, new Vector3(-691.37103f, -152.75392f, -706.9963f), 959) + index2++; + span275[index2] = new QuestStep(EInteractionType.Interact, 1044581u, new Vector3(-691.37103f, -152.75392f, -706.9963f), 959) { Fly = true }; obj191.Steps = list275; reference203 = obj191; - ref QuestSequence reference204 = ref span103[3]; + num++; + ref QuestSequence reference204 = ref span272[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - Span span106 = CollectionsMarshal.AsSpan(list276); - span106[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + index2 = 2; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + Span span276 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + span276[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span106[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span276[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj192.Steps = list276; reference204 = obj192; questRoot35.QuestSequence = list272; @@ -320354,13 +389043,16 @@ public static class AssemblyQuestLoader num = 1; List list277 = new List(num); CollectionsMarshal.SetCount(list277, num); - CollectionsMarshal.AsSpan(list277)[0] = "liza"; + Span span277 = CollectionsMarshal.AsSpan(list277); + index = 0; + span277[index] = "liza"; questRoot36.Author = list277; - num = 3; - List list278 = new List(num); - CollectionsMarshal.SetCount(list278, num); - Span span107 = CollectionsMarshal.AsSpan(list278); - ref QuestSequence reference205 = ref span107[0]; + index = 3; + List list278 = new List(index); + CollectionsMarshal.SetCount(list278, index); + Span span278 = CollectionsMarshal.AsSpan(list278); + num = 0; + ref QuestSequence reference205 = ref span278[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -320368,21 +389060,25 @@ public static class AssemblyQuestLoader num2 = 2; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span108 = CollectionsMarshal.AsSpan(list279); - span108[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span108[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + Span span279 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span279[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + index2++; + span279[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj193.Steps = list279; reference205 = obj193; - ref QuestSequence reference206 = ref span107[1]; + num++; + ref QuestSequence reference206 = ref span278[num]; QuestSequence obj194 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - Span span109 = CollectionsMarshal.AsSpan(list280); - ref QuestStep reference207 = ref span109[0]; + index2 = 2; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span280 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + ref QuestStep reference207 = ref span280[num2]; QuestStep obj195 = new QuestStep(EInteractionType.Interact, 2013259u, new Vector3(725.03235f, 150.92688f, 134.96594f), 959) { Fly = true, @@ -320391,45 +389087,63 @@ public static class AssemblyQuestLoader num3 = 6; List> list281 = new List>(num3); CollectionsMarshal.SetCount(list281, num3); - Span> span110 = CollectionsMarshal.AsSpan(list281); - span110[0] = null; - span110[1] = null; - ref List reference208 = ref span110[2]; - int num4 = 1; - List list282 = new List(num4); - CollectionsMarshal.SetCount(list282, num4); - CollectionsMarshal.AsSpan(list282)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span> span281 = CollectionsMarshal.AsSpan(list281); + num4 = 0; + span281[num4] = null; + num4++; + span281[num4] = null; + num4++; + ref List reference208 = ref span281[num4]; + int num5 = 1; + List list282 = new List(num5); + CollectionsMarshal.SetCount(list282, num5); + Span span282 = CollectionsMarshal.AsSpan(list282); + int index3 = 0; + span282[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference208 = list282; - span110[3] = null; - span110[4] = null; - span110[5] = null; + num4++; + span281[num4] = null; + num4++; + span281[num4] = null; + num4++; + span281[num4] = null; obj195.RequiredQuestVariables = list281; reference207 = obj195; - ref QuestStep reference209 = ref span109[1]; + num2++; + ref QuestStep reference209 = ref span280[num2]; QuestStep obj196 = new QuestStep(EInteractionType.Interact, 2013260u, new Vector3(725.063f, 141.37488f, 233.02039f), 959) { Fly = true }; - num3 = 6; - List> list283 = new List>(num3); - CollectionsMarshal.SetCount(list283, num3); - Span> span111 = CollectionsMarshal.AsSpan(list283); - span111[0] = null; - span111[1] = null; - ref List reference210 = ref span111[2]; - num4 = 1; - List list284 = new List(num4); - CollectionsMarshal.SetCount(list284, num4); - CollectionsMarshal.AsSpan(list284)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List> list283 = new List>(num4); + CollectionsMarshal.SetCount(list283, num4); + Span> span283 = CollectionsMarshal.AsSpan(list283); + num3 = 0; + span283[num3] = null; + num3++; + span283[num3] = null; + num3++; + ref List reference210 = ref span283[num3]; + index3 = 1; + List list284 = new List(index3); + CollectionsMarshal.SetCount(list284, index3); + Span span284 = CollectionsMarshal.AsSpan(list284); + num5 = 0; + span284[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference210 = list284; - span111[3] = null; - span111[4] = null; - span111[5] = null; + num3++; + span283[num3] = null; + num3++; + span283[num3] = null; + num3++; + span283[num3] = null; obj196.RequiredQuestVariables = list283; reference209 = obj196; obj194.Steps = list280; reference206 = obj194; - ref QuestSequence reference211 = ref span107[2]; + num++; + ref QuestSequence reference211 = ref span278[num]; QuestSequence obj197 = new QuestSequence { Sequence = byte.MaxValue @@ -320437,13 +389151,15 @@ public static class AssemblyQuestLoader num2 = 2; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span112 = CollectionsMarshal.AsSpan(list285); - span112[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + Span span285 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span285[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span112[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + index2++; + span285[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj197.Steps = list285; reference211 = obj197; questRoot36.QuestSequence = list278; @@ -320453,26 +389169,32 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "liza"; + Span span286 = CollectionsMarshal.AsSpan(list286); + index = 0; + span286[index] = "liza"; questRoot37.Author = list286; - num = 3; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span113 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference212 = ref span113[0]; + index = 3; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + Span span287 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference212 = ref span287[num]; QuestSequence obj198 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - Span span114 = CollectionsMarshal.AsSpan(list288); - span114[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span114[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + index2 = 2; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + Span span288 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span288[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span288[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj198.Steps = list288; reference212 = obj198; - ref QuestSequence reference213 = ref span113[1]; + num++; + ref QuestSequence reference213 = ref span287[num]; QuestSequence obj199 = new QuestSequence { Sequence = 1 @@ -320480,31 +389202,37 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1044583u, new Vector3(-52.018066f, -137.4167f, -622.4613f), 959) + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span289[index2] = new QuestStep(EInteractionType.Interact, 1044583u, new Vector3(-52.018066f, -137.4167f, -622.4613f), 959) { Fly = true }; obj199.Steps = list289; reference213 = obj199; - ref QuestSequence reference214 = ref span113[2]; + num++; + ref QuestSequence reference214 = ref span287[num]; QuestSequence obj200 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - Span span115 = CollectionsMarshal.AsSpan(list290); - span115[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 3; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + Span span290 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span290[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38869u, ItemCount = 4 }; - span115[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num2++; + span290[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - span115[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span290[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj200.Steps = list290; reference214 = obj200; questRoot37.QuestSequence = list287; @@ -320514,13 +389242,16 @@ public static class AssemblyQuestLoader num = 1; List list291 = new List(num); CollectionsMarshal.SetCount(list291, num); - CollectionsMarshal.AsSpan(list291)[0] = "pot0to"; + Span span291 = CollectionsMarshal.AsSpan(list291); + index = 0; + span291[index] = "pot0to"; questRoot38.Author = list291; - num = 4; - List list292 = new List(num); - CollectionsMarshal.SetCount(list292, num); - Span span116 = CollectionsMarshal.AsSpan(list292); - ref QuestSequence reference215 = ref span116[0]; + index = 4; + List list292 = new List(index); + CollectionsMarshal.SetCount(list292, index); + Span span292 = CollectionsMarshal.AsSpan(list292); + num = 0; + ref QuestSequence reference215 = ref span292[num]; QuestSequence obj201 = new QuestSequence { Sequence = 0 @@ -320528,26 +389259,32 @@ public static class AssemblyQuestLoader num2 = 2; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span117 = CollectionsMarshal.AsSpan(list293); - span117[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + Span span293 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + span293[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - span117[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + index2++; + span293[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj201.Steps = list293; reference215 = obj201; - ref QuestSequence reference216 = ref span116[1]; + num++; + ref QuestSequence reference216 = ref span292[num]; QuestSequence obj202 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span294 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span294[num2] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); obj202.Steps = list294; reference216 = obj202; - ref QuestSequence reference217 = ref span116[2]; + num++; + ref QuestSequence reference217 = ref span292[num]; QuestSequence obj203 = new QuestSequence { Sequence = 2 @@ -320555,32 +389292,37 @@ public static class AssemblyQuestLoader num2 = 2; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span118 = CollectionsMarshal.AsSpan(list295); - span118[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span295 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span295[index2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38871u, ItemCount = 1 }; - span118[1] = new QuestStep(EInteractionType.Interact, 1044584u, new Vector3(563.8971f, -167.50002f, -594.53723f), 959) + index2++; + span295[index2] = new QuestStep(EInteractionType.Interact, 1044584u, new Vector3(563.8971f, -167.50002f, -594.53723f), 959) { Fly = true }; obj203.Steps = list295; reference217 = obj203; - ref QuestSequence reference218 = ref span116[3]; + num++; + ref QuestSequence reference218 = ref span292[num]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - Span span119 = CollectionsMarshal.AsSpan(list296); - span119[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + index2 = 2; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span296 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span296[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - span119[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span296[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj204.Steps = list296; reference218 = obj204; questRoot38.QuestSequence = list292; @@ -320594,13 +389336,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -320608,26 +389353,32 @@ public static class AssemblyQuestLoader int num2 = 2; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span2 = CollectionsMarshal.AsSpan(list3); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span2[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + Span span3 = CollectionsMarshal.AsSpan(list3); + int num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1045113u, new Vector3(-315.66345f, -144f, -492.0272f), 959) + num3 = 1; + List list4 = new List(num3); + CollectionsMarshal.SetCount(list4, num3); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1045113u, new Vector3(-315.66345f, -144f, -492.0272f), 959) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -320635,7 +389386,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Say, 1044585u, new Vector3(-496.14713f, -154.93994f, -484.88593f), 959) + Span span5 = CollectionsMarshal.AsSpan(list5); + num3 = 0; + span5[num3] = new QuestStep(EInteractionType.Say, 1044585u, new Vector3(-496.14713f, -154.93994f, -484.88593f), 959) { Fly = true, ChatMessage = new ChatMessage @@ -320645,21 +389398,25 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1045113u, new Vector3(-315.66345f, -144f, -492.0272f), 959) + num3 = 1; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Interact, 1045113u, new Vector3(-315.66345f, -144f, -492.0272f), 959) { Fly = true }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -320667,12 +389424,14 @@ public static class AssemblyQuestLoader num2 = 2; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + Span span7 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span7[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3++; + span7[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -320682,26 +389441,32 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "liza"; + Span span8 = CollectionsMarshal.AsSpan(list8); + index = 0; + span8[index] = "liza"; questRoot2.Author = list8; - num = 3; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span4 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span4[0]; + index = 3; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + Span span9 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span9[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span5 = CollectionsMarshal.AsSpan(list10); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span5[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3 = 2; + List list10 = new List(num3); + CollectionsMarshal.SetCount(list10, num3); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span10[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[1]; + num++; + ref QuestSequence reference7 = ref span9[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -320709,25 +389474,31 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); + Span span11 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span11[num3] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span4[2]; + num++; + ref QuestSequence reference8 = ref span9[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - Span span6 = CollectionsMarshal.AsSpan(list12); - span6[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + num3 = 3; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38873u, ItemCount = 3 }; - span6[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span6[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span12[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span12[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj8.Steps = list12; reference8 = obj8; questRoot2.QuestSequence = list9; @@ -320737,13 +389508,16 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "liza"; + Span span13 = CollectionsMarshal.AsSpan(list13); + index = 0; + span13[index] = "liza"; questRoot3.Author = list13; - num = 4; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span7 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference9 = ref span7[0]; + index = 4; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference9 = ref span14[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -320751,27 +389525,33 @@ public static class AssemblyQuestLoader num2 = 2; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span8 = CollectionsMarshal.AsSpan(list15); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span8[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + Span span15 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span15[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num3++; + span15[num3] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference10 = ref span7[1]; + num++; + ref QuestSequence reference10 = ref span14[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1044586u, new Vector3(-524.19324f, -158.8955f, -521.17194f), 959) + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.Interact, 1044586u, new Vector3(-524.19324f, -158.8955f, -521.17194f), 959) { StopDistance = 0.5f, Fly = true }; obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span7[2]; + num++; + ref QuestSequence reference11 = ref span14[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -320779,30 +389559,35 @@ public static class AssemblyQuestLoader num2 = 2; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span17 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span17[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38875u, ItemCount = 1 }; - span9[1] = new QuestStep(EInteractionType.Interact, 1044586u, new Vector3(-524.19324f, -158.8955f, -521.17194f), 959); + num3++; + span17[num3] = new QuestStep(EInteractionType.Interact, 1044586u, new Vector3(-524.19324f, -158.8955f, -521.17194f), 959); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span7[3]; + num++; + ref QuestSequence reference12 = ref span14[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - Span span10 = CollectionsMarshal.AsSpan(list18); - span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3 = 2; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span18[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj12.Steps = list18; reference12 = obj12; questRoot3.QuestSequence = list14; @@ -320812,13 +389597,16 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "liza"; + Span span19 = CollectionsMarshal.AsSpan(list19); + index = 0; + span19[index] = "liza"; questRoot4.Author = list19; - num = 4; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span11 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference13 = ref span11[0]; + index = 4; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + Span span20 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference13 = ref span20[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -320826,27 +389614,33 @@ public static class AssemblyQuestLoader num2 = 2; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span12 = CollectionsMarshal.AsSpan(list21); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span12[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + Span span21 = CollectionsMarshal.AsSpan(list21); + num3 = 0; + span21[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num3++; + span21[num3] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj13.Steps = list21; reference13 = obj13; - ref QuestSequence reference14 = ref span11[1]; + num++; + ref QuestSequence reference14 = ref span20[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1044587u, new Vector3(354.02454f, 91.97786f, 509.14783f), 959) + num3 = 1; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.Interact, 1044587u, new Vector3(354.02454f, 91.97786f, 509.14783f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference15 = ref span11[2]; + num++; + ref QuestSequence reference15 = ref span20[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 @@ -320854,30 +389648,35 @@ public static class AssemblyQuestLoader num2 = 2; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span13 = CollectionsMarshal.AsSpan(list23); - span13[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span23 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span23[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38877u, ItemCount = 2 }; - span13[1] = new QuestStep(EInteractionType.Interact, 1044587u, new Vector3(354.02454f, 91.97786f, 509.14783f), 959); + num3++; + span23[num3] = new QuestStep(EInteractionType.Interact, 1044587u, new Vector3(354.02454f, 91.97786f, 509.14783f), 959); obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference16 = ref span11[3]; + num++; + ref QuestSequence reference16 = ref span20[num]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span14 = CollectionsMarshal.AsSpan(list24); - span14[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3 = 2; + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span14[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span24[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj16.Steps = list24; reference16 = obj16; questRoot4.QuestSequence = list20; @@ -320887,13 +389686,16 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "liza"; questRoot5.Author = list25; - num = 4; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span15 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference17 = ref span15[0]; + index = 4; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference17 = ref span26[num]; QuestSequence obj17 = new QuestSequence { Sequence = 0 @@ -320901,23 +389703,29 @@ public static class AssemblyQuestLoader num2 = 2; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span16 = CollectionsMarshal.AsSpan(list27); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span16[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + Span span27 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + span27[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num3++; + span27[num3] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj17.Steps = list27; reference17 = obj17; - ref QuestSequence reference18 = ref span15[1]; + num++; + ref QuestSequence reference18 = ref span26[num]; QuestSequence obj18 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); + num3 = 1; + List list28 = new List(num3); + CollectionsMarshal.SetCount(list28, num3); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); obj18.Steps = list28; reference18 = obj18; - ref QuestSequence reference19 = ref span15[2]; + num++; + ref QuestSequence reference19 = ref span26[num]; QuestSequence obj19 = new QuestSequence { Sequence = 2 @@ -320925,76 +389733,100 @@ public static class AssemblyQuestLoader num2 = 3; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span17 = CollectionsMarshal.AsSpan(list29); - ref QuestStep reference20 = ref span17[0]; + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + ref QuestStep reference20 = ref span29[num3]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1044590u, new Vector3(-536.9497f, -157.99246f, -693.75146f), 959) { StopDistance = 1f, Fly = true }; - int num3 = 6; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span18 = CollectionsMarshal.AsSpan(list30); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + int num4 = 6; + List list30 = new List(num4); + CollectionsMarshal.SetCount(list30, num4); + Span span30 = CollectionsMarshal.AsSpan(list30); + int num5 = 0; + span30[num5] = null; + num5++; + span30[num5] = null; + num5++; + span30[num5] = null; + num5++; + span30[num5] = null; + num5++; + span30[num5] = null; + num5++; + span30[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj20.CompletionQuestVariablesFlags = list30; reference20 = obj20; - ref QuestStep reference21 = ref span17[1]; + num3++; + ref QuestStep reference21 = ref span29[num3]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1044591u, new Vector3(-502.58643f, -161.38867f, -773.251f), 959) { Fly = true }; - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span19 = CollectionsMarshal.AsSpan(list31); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list31 = new List(num5); + CollectionsMarshal.SetCount(list31, num5); + Span span31 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + span31[num4] = null; + num4++; + span31[num4] = null; + num4++; + span31[num4] = null; + num4++; + span31[num4] = null; + num4++; + span31[num4] = null; + num4++; + span31[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list31; reference21 = obj21; - ref QuestStep reference22 = ref span17[2]; + num3++; + ref QuestStep reference22 = ref span29[num3]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1044589u, new Vector3(-433.03577f, -167.50002f, -741.7258f), 959) { Fly = true }; - num3 = 6; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span20 = CollectionsMarshal.AsSpan(list32); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list32 = new List(num4); + CollectionsMarshal.SetCount(list32, num4); + Span span32 = CollectionsMarshal.AsSpan(list32); + num5 = 0; + span32[num5] = null; + num5++; + span32[num5] = null; + num5++; + span32[num5] = null; + num5++; + span32[num5] = null; + num5++; + span32[num5] = null; + num5++; + span32[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj22.CompletionQuestVariablesFlags = list32; reference22 = obj22; obj19.Steps = list29; reference19 = obj19; - ref QuestSequence reference23 = ref span15[3]; + num++; + ref QuestSequence reference23 = ref span26[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span21 = CollectionsMarshal.AsSpan(list33); - span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3 = 2; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span21[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span33[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj23.Steps = list33; reference23 = obj23; questRoot5.QuestSequence = list26; @@ -321004,13 +389836,16 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = "liza"; + Span span34 = CollectionsMarshal.AsSpan(list34); + index = 0; + span34[index] = "liza"; questRoot6.Author = list34; - num = 3; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span22 = CollectionsMarshal.AsSpan(list35); - ref QuestSequence reference24 = ref span22[0]; + index = 3; + List list35 = new List(index); + CollectionsMarshal.SetCount(list35, index); + Span span35 = CollectionsMarshal.AsSpan(list35); + num = 0; + ref QuestSequence reference24 = ref span35[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 @@ -321018,26 +389853,32 @@ public static class AssemblyQuestLoader num2 = 2; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span23 = CollectionsMarshal.AsSpan(list36); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span23[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + Span span36 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span36[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num3++; + span36[num3] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj24.Steps = list36; reference24 = obj24; - ref QuestSequence reference25 = ref span22[1]; + num++; + ref QuestSequence reference25 = ref span35[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1044592u, new Vector3(-493.40048f, -158.89024f, -384.29846f), 959) + num3 = 1; + List list37 = new List(num3); + CollectionsMarshal.SetCount(list37, num3); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.Interact, 1044592u, new Vector3(-493.40048f, -158.89024f, -384.29846f), 959) { Fly = true }; obj25.Steps = list37; reference25 = obj25; - ref QuestSequence reference26 = ref span22[2]; + num++; + ref QuestSequence reference26 = ref span35[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -321045,18 +389886,21 @@ public static class AssemblyQuestLoader num2 = 3; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span24 = CollectionsMarshal.AsSpan(list38); - span24[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38879u, ItemCount = 2 }; - span24[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3++; + span38[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span24[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3++; + span38[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj26.Steps = list38; reference26 = obj26; questRoot6.QuestSequence = list35; @@ -321066,26 +389910,32 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "liza"; + Span span39 = CollectionsMarshal.AsSpan(list39); + index = 0; + span39[index] = "liza"; questRoot7.Author = list39; - num = 4; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span25 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference27 = ref span25[0]; + index = 4; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + Span span40 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference27 = ref span40[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span26 = CollectionsMarshal.AsSpan(list41); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span26[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3 = 2; + List list41 = new List(num3); + CollectionsMarshal.SetCount(list41, num3); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span41[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj27.Steps = list41; reference27 = obj27; - ref QuestSequence reference28 = ref span25[1]; + num++; + ref QuestSequence reference28 = ref span40[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -321093,30 +389943,36 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); + Span span42 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span42[num3] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); obj28.Steps = list42; reference28 = obj28; - ref QuestSequence reference29 = ref span25[2]; + num++; + ref QuestSequence reference29 = ref span40[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span27 = CollectionsMarshal.AsSpan(list43); - span27[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + num3 = 2; + List list43 = new List(num3); + CollectionsMarshal.SetCount(list43, num3); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38881u, ItemCount = 1 }; - span27[1] = new QuestStep(EInteractionType.Interact, 1044602u, new Vector3(463.0349f, -167.81126f, -490.13504f), 959) + num2++; + span43[num2] = new QuestStep(EInteractionType.Interact, 1044602u, new Vector3(463.0349f, -167.81126f, -490.13504f), 959) { Fly = true }; obj29.Steps = list43; reference29 = obj29; - ref QuestSequence reference30 = ref span25[3]; + num++; + ref QuestSequence reference30 = ref span40[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -321124,13 +389980,15 @@ public static class AssemblyQuestLoader num2 = 2; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span28 = CollectionsMarshal.AsSpan(list44); - span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + Span span44 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + span44[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span28[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3++; + span44[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj30.Steps = list44; reference30 = obj30; questRoot7.QuestSequence = list40; @@ -321140,26 +389998,32 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - CollectionsMarshal.AsSpan(list45)[0] = "liza"; + Span span45 = CollectionsMarshal.AsSpan(list45); + index = 0; + span45[index] = "liza"; questRoot8.Author = list45; - num = 4; - List list46 = new List(num); - CollectionsMarshal.SetCount(list46, num); - Span span29 = CollectionsMarshal.AsSpan(list46); - ref QuestSequence reference31 = ref span29[0]; + index = 4; + List list46 = new List(index); + CollectionsMarshal.SetCount(list46, index); + Span span46 = CollectionsMarshal.AsSpan(list46); + num = 0; + ref QuestSequence reference31 = ref span46[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span30 = CollectionsMarshal.AsSpan(list47); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span30[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3 = 2; + List list47 = new List(num3); + CollectionsMarshal.SetCount(list47, num3); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span47[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj31.Steps = list47; reference31 = obj31; - ref QuestSequence reference32 = ref span29[1]; + num++; + ref QuestSequence reference32 = ref span46[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -321167,78 +390031,103 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1044408u, new Vector3(-164.08032f, -49.199722f, -250.75159f), 959); + Span span48 = CollectionsMarshal.AsSpan(list48); + num3 = 0; + span48[num3] = new QuestStep(EInteractionType.Interact, 1044408u, new Vector3(-164.08032f, -49.199722f, -250.75159f), 959); obj32.Steps = list48; reference32 = obj32; - ref QuestSequence reference33 = ref span29[2]; + num++; + ref QuestSequence reference33 = ref span46[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span31 = CollectionsMarshal.AsSpan(list49); - ref QuestStep reference34 = ref span31[0]; + num3 = 3; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref QuestStep reference34 = ref span49[num2]; QuestStep obj34 = new QuestStep(EInteractionType.Action, 2013262u, new Vector3(34.98889f, -47.56244f, -531.5481f), 959) { Fly = true, Land = true, Action = EAction.HopStep }; - num3 = 6; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - Span span32 = CollectionsMarshal.AsSpan(list50); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list50 = new List(num5); + CollectionsMarshal.SetCount(list50, num5); + Span span50 = CollectionsMarshal.AsSpan(list50); + num4 = 0; + span50[num4] = null; + num4++; + span50[num4] = null; + num4++; + span50[num4] = null; + num4++; + span50[num4] = null; + num4++; + span50[num4] = null; + num4++; + span50[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj34.CompletionQuestVariablesFlags = list50; reference34 = obj34; - ref QuestStep reference35 = ref span31[1]; + num2++; + ref QuestStep reference35 = ref span49[num2]; QuestStep obj35 = new QuestStep(EInteractionType.Action, 2013263u, new Vector3(49.79016f, -133.07397f, -558.9227f), 959) { Fly = true, Land = true, Action = EAction.HopStep }; - num3 = 6; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - Span span33 = CollectionsMarshal.AsSpan(list51); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list51 = new List(num4); + CollectionsMarshal.SetCount(list51, num4); + Span span51 = CollectionsMarshal.AsSpan(list51); + num5 = 0; + span51[num5] = null; + num5++; + span51[num5] = null; + num5++; + span51[num5] = null; + num5++; + span51[num5] = null; + num5++; + span51[num5] = null; + num5++; + span51[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj35.CompletionQuestVariablesFlags = list51; reference35 = obj35; - ref QuestStep reference36 = ref span31[2]; + num2++; + ref QuestStep reference36 = ref span49[num2]; QuestStep obj36 = new QuestStep(EInteractionType.Action, 2013261u, new Vector3(-34.28705f, -129.2287f, -495.71985f), 959) { Fly = true, Land = true, Action = EAction.HopStep }; - num3 = 6; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span34 = CollectionsMarshal.AsSpan(list52); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list52 = new List(num5); + CollectionsMarshal.SetCount(list52, num5); + Span span52 = CollectionsMarshal.AsSpan(list52); + num4 = 0; + span52[num4] = null; + num4++; + span52[num4] = null; + num4++; + span52[num4] = null; + num4++; + span52[num4] = null; + num4++; + span52[num4] = null; + num4++; + span52[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj36.CompletionQuestVariablesFlags = list52; reference36 = obj36; obj33.Steps = list49; reference33 = obj33; - ref QuestSequence reference37 = ref span29[3]; + num++; + ref QuestSequence reference37 = ref span46[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -321246,12 +390135,14 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span35 = CollectionsMarshal.AsSpan(list53); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + Span span53 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + span53[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - span35[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959) + num3++; + span53[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959) { Mount = false }; @@ -321264,26 +390155,32 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "liza"; + Span span54 = CollectionsMarshal.AsSpan(list54); + index = 0; + span54[index] = "liza"; questRoot9.Author = list54; - num = 4; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span36 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference38 = ref span36[0]; + index = 4; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + Span span55 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference38 = ref span55[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span37 = CollectionsMarshal.AsSpan(list56); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span37[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3 = 2; + List list56 = new List(num3); + CollectionsMarshal.SetCount(list56, num3); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span56[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj38.Steps = list56; reference38 = obj38; - ref QuestSequence reference39 = ref span36[1]; + num++; + ref QuestSequence reference39 = ref span55[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -321291,31 +390188,37 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1044608u, new Vector3(227.19153f, 93.66165f, -35.385742f), 959) + Span span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span57[num3] = new QuestStep(EInteractionType.Interact, 1044608u, new Vector3(227.19153f, 93.66165f, -35.385742f), 959) { StopDistance = 1f, Fly = true }; obj39.Steps = list57; reference39 = obj39; - ref QuestSequence reference40 = ref span36[2]; + num++; + ref QuestSequence reference40 = ref span55[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - Span span38 = CollectionsMarshal.AsSpan(list58); - span38[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + num3 = 2; + List list58 = new List(num3); + CollectionsMarshal.SetCount(list58, num3); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38883u, ItemCount = 3 }; - span38[1] = new QuestStep(EInteractionType.Interact, 1044608u, new Vector3(227.19153f, 93.66165f, -35.385742f), 959); + num2++; + span58[num2] = new QuestStep(EInteractionType.Interact, 1044608u, new Vector3(227.19153f, 93.66165f, -35.385742f), 959); obj40.Steps = list58; reference40 = obj40; - ref QuestSequence reference41 = ref span36[3]; + num++; + ref QuestSequence reference41 = ref span55[num]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -321323,13 +390226,15 @@ public static class AssemblyQuestLoader num2 = 2; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span39 = CollectionsMarshal.AsSpan(list59); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + Span span59 = CollectionsMarshal.AsSpan(list59); + num3 = 0; + span59[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span39[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3++; + span59[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj41.Steps = list59; reference41 = obj41; questRoot9.QuestSequence = list55; @@ -321339,26 +390244,32 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "liza"; + Span span60 = CollectionsMarshal.AsSpan(list60); + index = 0; + span60[index] = "liza"; questRoot10.Author = list60; - num = 3; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span40 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference42 = ref span40[0]; + index = 3; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference42 = ref span61[num]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - Span span41 = CollectionsMarshal.AsSpan(list62); - span41[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span41[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3 = 2; + List list62 = new List(num3); + CollectionsMarshal.SetCount(list62, num3); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span62[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj42.Steps = list62; reference42 = obj42; - ref QuestSequence reference43 = ref span40[1]; + num++; + ref QuestSequence reference43 = ref span61[num]; QuestSequence obj43 = new QuestSequence { Sequence = 1 @@ -321366,92 +390277,123 @@ public static class AssemblyQuestLoader num2 = 4; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span42 = CollectionsMarshal.AsSpan(list63); - ref QuestStep reference44 = ref span42[0]; + Span span63 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + ref QuestStep reference44 = ref span63[num3]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 2013264u, new Vector3(47.01306f, -132.86035f, -504.08182f), 959) { Fly = true }; - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span43 = CollectionsMarshal.AsSpan(list64); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + Span span64 = CollectionsMarshal.AsSpan(list64); + num5 = 0; + span64[num5] = null; + num5++; + span64[num5] = null; + num5++; + span64[num5] = null; + num5++; + span64[num5] = null; + num5++; + span64[num5] = null; + num5++; + span64[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj44.CompletionQuestVariablesFlags = list64; reference44 = obj44; - ref QuestStep reference45 = ref span42[1]; + num3++; + ref QuestStep reference45 = ref span63[num3]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 2013266u, new Vector3(64.65234f, -132.61621f, -451.133f), 959) { Fly = true }; - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span44 = CollectionsMarshal.AsSpan(list65); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list65 = new List(num5); + CollectionsMarshal.SetCount(list65, num5); + Span span65 = CollectionsMarshal.AsSpan(list65); + num4 = 0; + span65[num4] = null; + num4++; + span65[num4] = null; + num4++; + span65[num4] = null; + num4++; + span65[num4] = null; + num4++; + span65[num4] = null; + num4++; + span65[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj45.CompletionQuestVariablesFlags = list65; reference45 = obj45; - ref QuestStep reference46 = ref span42[2]; + num3++; + ref QuestStep reference46 = ref span63[num3]; QuestStep obj46 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.153883f, -132.7894f, -444.4903f), 959) { Fly = true }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span45 = CollectionsMarshal.AsSpan(list66); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list66 = new List(num4); + CollectionsMarshal.SetCount(list66, num4); + Span span66 = CollectionsMarshal.AsSpan(list66); + num5 = 0; + span66[num5] = null; + num5++; + span66[num5] = null; + num5++; + span66[num5] = null; + num5++; + span66[num5] = null; + num5++; + span66[num5] = null; + num5++; + span66[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list66; skipConditions.StepIf = skipStepConditions; obj46.SkipConditions = skipConditions; reference46 = obj46; - ref QuestStep reference47 = ref span42[3]; + num3++; + ref QuestStep reference47 = ref span63[num3]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2013265u, new Vector3(15.060608f, -131.27338f, -444.0528f), 959); - num3 = 6; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - Span span46 = CollectionsMarshal.AsSpan(list67); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list67 = new List(num5); + CollectionsMarshal.SetCount(list67, num5); + Span span67 = CollectionsMarshal.AsSpan(list67); + num4 = 0; + span67[num4] = null; + num4++; + span67[num4] = null; + num4++; + span67[num4] = null; + num4++; + span67[num4] = null; + num4++; + span67[num4] = null; + num4++; + span67[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list67; reference47 = questStep; obj43.Steps = list63; reference43 = obj43; - ref QuestSequence reference48 = ref span40[2]; + num++; + ref QuestSequence reference48 = ref span61[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span47 = CollectionsMarshal.AsSpan(list68); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3 = 2; + List list68 = new List(num3); + CollectionsMarshal.SetCount(list68, num3); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - span47[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span68[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj47.Steps = list68; reference48 = obj47; questRoot10.QuestSequence = list61; @@ -321461,13 +390403,16 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - CollectionsMarshal.AsSpan(list69)[0] = "liza"; + Span span69 = CollectionsMarshal.AsSpan(list69); + index = 0; + span69[index] = "liza"; questRoot11.Author = list69; - num = 3; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span48 = CollectionsMarshal.AsSpan(list70); - ref QuestSequence reference49 = ref span48[0]; + index = 3; + List list70 = new List(index); + CollectionsMarshal.SetCount(list70, index); + Span span70 = CollectionsMarshal.AsSpan(list70); + num = 0; + ref QuestSequence reference49 = ref span70[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -321475,27 +390420,33 @@ public static class AssemblyQuestLoader num2 = 2; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span49 = CollectionsMarshal.AsSpan(list71); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span49[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + Span span71 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span71[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num3++; + span71[num3] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj48.Steps = list71; reference49 = obj48; - ref QuestSequence reference50 = ref span48[1]; + num++; + ref QuestSequence reference50 = ref span70[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1044610u, new Vector3(588.281f, -161.13907f, -761.0742f), 959) + num3 = 1; + List list72 = new List(num3); + CollectionsMarshal.SetCount(list72, num3); + Span span72 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span72[num2] = new QuestStep(EInteractionType.Interact, 1044610u, new Vector3(588.281f, -161.13907f, -761.0742f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj49.Steps = list72; reference50 = obj49; - ref QuestSequence reference51 = ref span48[2]; + num++; + ref QuestSequence reference51 = ref span70[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue @@ -321503,18 +390454,21 @@ public static class AssemblyQuestLoader num2 = 3; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span50 = CollectionsMarshal.AsSpan(list73); - span50[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span73 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span73[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38885u, ItemCount = 1 }; - span50[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3++; + span73[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span50[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3++; + span73[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj50.Steps = list73; reference51 = obj50; questRoot11.QuestSequence = list70; @@ -321524,26 +390478,32 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "liza"; + Span span74 = CollectionsMarshal.AsSpan(list74); + index = 0; + span74[index] = "liza"; questRoot12.Author = list74; - num = 3; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span51 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference52 = ref span51[0]; + index = 3; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + Span span75 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference52 = ref span75[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - Span span52 = CollectionsMarshal.AsSpan(list76); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span52[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3 = 2; + List list76 = new List(num3); + CollectionsMarshal.SetCount(list76, num3); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span76[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj51.Steps = list76; reference52 = obj51; - ref QuestSequence reference53 = ref span51[1]; + num++; + ref QuestSequence reference53 = ref span75[num]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -321551,16 +390511,20 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list77)[0]; + Span span77 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + ref QuestStep reference54 = ref span77[num3]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1044613u, new Vector3(493.55298f, -163.52985f, -711.54346f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = new DialogueChoice + num4 = 1; + List list78 = new List(num4); + CollectionsMarshal.SetCount(list78, num4); + Span span78 = CollectionsMarshal.AsSpan(list78); + num5 = 0; + span78[num5] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANLOP125_04711_Q1_000_000"), @@ -321570,21 +390534,24 @@ public static class AssemblyQuestLoader reference54 = obj53; obj52.Steps = list77; reference53 = obj52; - ref QuestSequence reference55 = ref span51[2]; + num++; + ref QuestSequence reference55 = ref span75[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span53 = CollectionsMarshal.AsSpan(list79); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3 = 2; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span53[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span79[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj54.Steps = list79; reference55 = obj54; questRoot12.QuestSequence = list75; @@ -321594,13 +390561,16 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + Span span80 = CollectionsMarshal.AsSpan(list80); + index = 0; + span80[index] = "liza"; questRoot13.Author = list80; - num = 4; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span54 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference56 = ref span54[0]; + index = 4; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + Span span81 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference56 = ref span81[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -321608,26 +390578,32 @@ public static class AssemblyQuestLoader num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span55 = CollectionsMarshal.AsSpan(list82); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span55[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + Span span82 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span82[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num3++; + span82[num3] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj55.Steps = list82; reference56 = obj55; - ref QuestSequence reference57 = ref span54[1]; + num++; + ref QuestSequence reference57 = ref span81[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1044615u, new Vector3(-84.7334f, -49.589592f, -351.73578f), 959) + num3 = 1; + List list83 = new List(num3); + CollectionsMarshal.SetCount(list83, num3); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.Interact, 1044615u, new Vector3(-84.7334f, -49.589592f, -351.73578f), 959) { Fly = true }; obj56.Steps = list83; reference57 = obj56; - ref QuestSequence reference58 = ref span54[2]; + num++; + ref QuestSequence reference58 = ref span81[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -321635,29 +390611,34 @@ public static class AssemblyQuestLoader num2 = 2; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span56 = CollectionsMarshal.AsSpan(list84); - span56[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span84 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span84[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38887u, ItemCount = 3 }; - span56[1] = new QuestStep(EInteractionType.Interact, 1044615u, new Vector3(-84.7334f, -49.589592f, -351.73578f), 959); + num3++; + span84[num3] = new QuestStep(EInteractionType.Interact, 1044615u, new Vector3(-84.7334f, -49.589592f, -351.73578f), 959); obj57.Steps = list84; reference58 = obj57; - ref QuestSequence reference59 = ref span54[3]; + num++; + ref QuestSequence reference59 = ref span81[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - Span span57 = CollectionsMarshal.AsSpan(list85); - span57[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3 = 2; + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span85[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - span57[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span85[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj58.Steps = list85; reference59 = obj58; questRoot13.QuestSequence = list81; @@ -321667,13 +390648,16 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; + Span span86 = CollectionsMarshal.AsSpan(list86); + index = 0; + span86[index] = "liza"; questRoot14.Author = list86; - num = 3; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span58 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference60 = ref span58[0]; + index = 3; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + Span span87 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference60 = ref span87[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -321681,27 +390665,33 @@ public static class AssemblyQuestLoader num2 = 2; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span59 = CollectionsMarshal.AsSpan(list88); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span59[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + Span span88 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span88[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num3++; + span88[num3] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj59.Steps = list88; reference60 = obj59; - ref QuestSequence reference61 = ref span58[1]; + num++; + ref QuestSequence reference61 = ref span87[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1044616u, new Vector3(-630.67065f, -140.39087f, -789.79175f), 959) + num3 = 1; + List list89 = new List(num3); + CollectionsMarshal.SetCount(list89, num3); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.Interact, 1044616u, new Vector3(-630.67065f, -140.39087f, -789.79175f), 959) { StopDistance = 0.5f, Fly = true }; obj60.Steps = list89; reference61 = obj60; - ref QuestSequence reference62 = ref span58[2]; + num++; + ref QuestSequence reference62 = ref span87[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -321709,18 +390699,21 @@ public static class AssemblyQuestLoader num2 = 3; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span60 = CollectionsMarshal.AsSpan(list90); - span60[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span90 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span90[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38889u, ItemCount = 1 }; - span60[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3++; + span90[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span60[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3++; + span90[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj61.Steps = list90; reference62 = obj61; questRoot14.QuestSequence = list87; @@ -321730,26 +390723,32 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "pot0to"; + Span span91 = CollectionsMarshal.AsSpan(list91); + index = 0; + span91[index] = "pot0to"; questRoot15.Author = list91; - num = 5; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span61 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference63 = ref span61[0]; + index = 5; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + Span span92 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference63 = ref span92[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span62 = CollectionsMarshal.AsSpan(list93); - span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); - span62[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num3 = 2; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959); + num2++; + span93[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj62.Steps = list93; reference63 = obj62; - ref QuestSequence reference64 = ref span61[1]; + num++; + ref QuestSequence reference64 = ref span92[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -321757,28 +390756,34 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1044571u, new Vector3(20.09607f, 64.97662f, 43.411865f), 959) + Span span94 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span94[num3] = new QuestStep(EInteractionType.Interact, 1044571u, new Vector3(20.09607f, 64.97662f, 43.411865f), 959) { Fly = true }; obj63.Steps = list94; reference64 = obj63; - ref QuestSequence reference65 = ref span61[2]; + num++; + ref QuestSequence reference65 = ref span92[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.UseItem, 1044571u, new Vector3(20.09607f, 64.97662f, 43.411865f), 959) + num3 = 1; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.UseItem, 1044571u, new Vector3(20.09607f, 64.97662f, 43.411865f), 959) { ItemId = 2003449u, GroundTarget = true }; obj64.Steps = list95; reference65 = obj64; - ref QuestSequence reference66 = ref span61[3]; + num++; + ref QuestSequence reference66 = ref span92[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 @@ -321786,28 +390791,33 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.UseItem, 1044571u, new Vector3(20.09607f, 64.97662f, 43.411865f), 959) + Span span96 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span96[num3] = new QuestStep(EInteractionType.UseItem, 1044571u, new Vector3(20.09607f, 64.97662f, 43.411865f), 959) { ItemId = 2003449u, GroundTarget = true }; obj65.Steps = list96; reference66 = obj65; - ref QuestSequence reference67 = ref span61[4]; + num++; + ref QuestSequence reference67 = ref span92[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - Span span63 = CollectionsMarshal.AsSpan(list97); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + num3 = 2; + List list97 = new List(num3); + CollectionsMarshal.SetCount(list97, num3); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + span97[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - span63[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + num2++; + span97[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj66.Steps = list97; reference67 = obj66; questRoot15.QuestSequence = list92; @@ -321817,13 +390827,16 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - CollectionsMarshal.AsSpan(list98)[0] = "liza"; + Span span98 = CollectionsMarshal.AsSpan(list98); + index = 0; + span98[index] = "liza"; questRoot16.Author = list98; - num = 3; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span64 = CollectionsMarshal.AsSpan(list99); - ref QuestSequence reference68 = ref span64[0]; + index = 3; + List list99 = new List(index); + CollectionsMarshal.SetCount(list99, index); + Span span99 = CollectionsMarshal.AsSpan(list99); + num = 0; + ref QuestSequence reference68 = ref span99[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -321831,7 +390844,9 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044553u, new Vector3(-96.910095f, 3.1843073f, 6.8207397f), 819) + Span span100 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span100[num3] = new QuestStep(EInteractionType.AcceptQuest, 1044553u, new Vector3(-96.910095f, 3.1843073f, 6.8207397f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, SkipConditions = new SkipConditions @@ -321844,22 +390859,26 @@ public static class AssemblyQuestLoader }; obj67.Steps = list100; reference68 = obj67; - ref QuestSequence reference69 = ref span64[1]; + num++; + ref QuestSequence reference69 = ref span99[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1044554u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816) + num3 = 1; + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.Interact, 1044554u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj68.Steps = list101; reference69 = obj68; - ref QuestSequence reference70 = ref span64[2]; + num++; + ref QuestSequence reference70 = ref span99[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -321867,7 +390886,9 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044558u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816); + Span span102 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span102[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044558u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816); obj69.Steps = list102; reference70 = obj69; questRoot16.QuestSequence = list99; @@ -321877,21 +390898,26 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "liza"; + Span span103 = CollectionsMarshal.AsSpan(list103); + index = 0; + span103[index] = "liza"; questRoot17.Author = list103; - num = 4; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span65 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference71 = ref span65[0]; + index = 4; + List list104 = new List(index); + CollectionsMarshal.SetCount(list104, index); + Span span104 = CollectionsMarshal.AsSpan(list104); + num = 0; + ref QuestSequence reference71 = ref span104[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list105)[0]; + num3 = 1; + List list105 = new List(num3); + CollectionsMarshal.SetCount(list105, num3); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + ref QuestStep reference72 = ref span105[num2]; QuestStep obj71 = new QuestStep(EInteractionType.AcceptQuest, 1044547u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran, @@ -321903,10 +390929,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - CollectionsMarshal.AsSpan(list106)[0] = new DialogueChoice + num5 = 1; + List list106 = new List(num5); + CollectionsMarshal.SetCount(list106, num5); + Span span106 = CollectionsMarshal.AsSpan(list106); + num4 = 0; + span106[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBCTS681_04716_Q1_000_003"), @@ -321916,7 +390944,8 @@ public static class AssemblyQuestLoader reference72 = obj71; obj70.Steps = list105; reference71 = obj70; - ref QuestSequence reference73 = ref span65[1]; + num++; + ref QuestSequence reference73 = ref span104[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -321924,25 +390953,31 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1044560u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816); + Span span107 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span107[num3] = new QuestStep(EInteractionType.Interact, 1044560u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816); obj72.Steps = list107; reference73 = obj72; - ref QuestSequence reference74 = ref span65[2]; + num++; + ref QuestSequence reference74 = ref span104[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 2013247u, new Vector3(428.15283f, 3.2196045f, 23.483582f), 817) + num3 = 1; + List list108 = new List(num3); + CollectionsMarshal.SetCount(list108, num3); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.Interact, 2013247u, new Vector3(428.15283f, 3.2196045f, 23.483582f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj73.Steps = list108; reference74 = obj73; - ref QuestSequence reference75 = ref span65[3]; + num++; + ref QuestSequence reference75 = ref span104[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue @@ -321950,7 +390985,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044560u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816) + Span span109 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + span109[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044560u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran, @@ -321965,21 +391002,26 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "liza"; + Span span110 = CollectionsMarshal.AsSpan(list110); + index = 0; + span110[index] = "liza"; questRoot18.Author = list110; - num = 2; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span66 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference76 = ref span66[0]; + index = 2; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + Span span111 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference76 = ref span111[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044550u, new Vector3(-239.70398f, 51.05899f, 622.2477f), 816) + num3 = 1; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.AcceptQuest, 1044550u, new Vector3(-239.70398f, 51.05899f, 622.2477f), 816) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran, @@ -321993,7 +391035,8 @@ public static class AssemblyQuestLoader }; obj75.Steps = list112; reference76 = obj75; - ref QuestSequence reference77 = ref span66[1]; + num++; + ref QuestSequence reference77 = ref span111[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue @@ -322001,7 +391044,9 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044562u, new Vector3(-294.97223f, 67.46317f, 603.6621f), 816) + Span span113 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span113[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044562u, new Vector3(-294.97223f, 67.46317f, 603.6621f), 816) { Fly = true }; @@ -322014,29 +391059,36 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "liza"; + Span span114 = CollectionsMarshal.AsSpan(list114); + index = 0; + span114[index] = "liza"; questRoot19.Author = list114; - num = 9; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span67 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference78 = ref span67[0]; + index = 9; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + Span span115 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference78 = ref span115[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list116)[0]; + num3 = 1; + List list116 = new List(num3); + CollectionsMarshal.SetCount(list116, num3); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + ref QuestStep reference79 = ref span116[num2]; QuestStep obj78 = new QuestStep(EInteractionType.AcceptQuest, 1042558u, new Vector3(33.066284f, -5.8859587E-07f, -2.2125854f), 963) { StopDistance = 5f }; - num3 = 1; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - CollectionsMarshal.AsSpan(list117)[0] = new DialogueChoice + num4 = 1; + List list117 = new List(num4); + CollectionsMarshal.SetCount(list117, num4); + Span span117 = CollectionsMarshal.AsSpan(list117); + num5 = 0; + span117[num5] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB831_04718_Q6_000_000"), @@ -322046,7 +391098,8 @@ public static class AssemblyQuestLoader reference79 = obj78; obj77.Steps = list116; reference78 = obj77; - ref QuestSequence reference80 = ref span67[1]; + num++; + ref QuestSequence reference80 = ref span115[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -322054,55 +391107,73 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1042560u, new Vector3(431.96765f, 3.1168795f, -250.5379f), 957) + Span span118 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + span118[num3] = new QuestStep(EInteractionType.Interact, 1042560u, new Vector3(431.96765f, 3.1168795f, -250.5379f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj79.Steps = list118; reference80 = obj79; - ref QuestSequence reference81 = ref span67[2]; + num++; + ref QuestSequence reference81 = ref span115[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - Span span68 = CollectionsMarshal.AsSpan(list119); - ref QuestStep reference82 = ref span68[0]; + num3 = 2; + List list119 = new List(num3); + CollectionsMarshal.SetCount(list119, num3); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + ref QuestStep reference82 = ref span119[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1042564u, new Vector3(423.63623f, 3.1168795f, -273.8537f), 957); - num3 = 6; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span69 = CollectionsMarshal.AsSpan(list120); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list120 = new List(num5); + CollectionsMarshal.SetCount(list120, num5); + Span span120 = CollectionsMarshal.AsSpan(list120); + num4 = 0; + span120[num4] = null; + num4++; + span120[num4] = null; + num4++; + span120[num4] = null; + num4++; + span120[num4] = null; + num4++; + span120[num4] = null; + num4++; + span120[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list120; reference82 = questStep2; - ref QuestStep reference83 = ref span68[1]; + num2++; + ref QuestStep reference83 = ref span119[num2]; QuestStep obj81 = new QuestStep(EInteractionType.Interact, 1042565u, new Vector3(393.14856f, 3.1164212f, -212.9397f), 957) { Fly = true }; - num3 = 6; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span70 = CollectionsMarshal.AsSpan(list121); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list121 = new List(num4); + CollectionsMarshal.SetCount(list121, num4); + Span span121 = CollectionsMarshal.AsSpan(list121); + num5 = 0; + span121[num5] = null; + num5++; + span121[num5] = null; + num5++; + span121[num5] = null; + num5++; + span121[num5] = null; + num5++; + span121[num5] = null; + num5++; + span121[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj81.CompletionQuestVariablesFlags = list121; reference83 = obj81; obj80.Steps = list119; reference81 = obj80; - ref QuestSequence reference84 = ref span67[3]; + num++; + ref QuestSequence reference84 = ref span115[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -322110,27 +391181,33 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1042567u, new Vector3(374.80737f, 3.1168795f, -256.45844f), 957) + Span span122 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + span122[num3] = new QuestStep(EInteractionType.Interact, 1042567u, new Vector3(374.80737f, 3.1168795f, -256.45844f), 957) { Fly = true }; obj82.Steps = list122; reference84 = obj82; - ref QuestSequence reference85 = ref span67[4]; + num++; + ref QuestSequence reference85 = ref span115[num]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1042572u, new Vector3(374.44104f, 3.1168795f, -257.64862f), 957) + num3 = 1; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span123[num2] = new QuestStep(EInteractionType.Interact, 1042572u, new Vector3(374.44104f, 3.1168795f, -257.64862f), 957) { StopDistance = 5f }; obj83.Steps = list123; reference85 = obj83; - ref QuestSequence reference86 = ref span67[5]; + num++; + ref QuestSequence reference86 = ref span115[num]; QuestSequence obj84 = new QuestSequence { Sequence = 5 @@ -322138,15 +391215,19 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list124)[0]; + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + ref QuestStep reference87 = ref span124[num3]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 2013267u, new Vector3(205.70679f, 7.9193726f, -180.34644f), 957) { Fly = true }; - num3 = 1; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - CollectionsMarshal.AsSpan(list125)[0] = new DialogueChoice + num5 = 1; + List list125 = new List(num5); + CollectionsMarshal.SetCount(list125, num5); + Span span125 = CollectionsMarshal.AsSpan(list125); + num4 = 0; + span125[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB831_04718_Q4_000_000"), @@ -322156,23 +391237,28 @@ public static class AssemblyQuestLoader reference87 = obj85; obj84.Steps = list124; reference86 = obj84; - ref QuestSequence reference88 = ref span67[6]; + num++; + ref QuestSequence reference88 = ref span115[num]; QuestSequence obj86 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - ref QuestStep reference89 = ref CollectionsMarshal.AsSpan(list126)[0]; + num3 = 1; + List list126 = new List(num3); + CollectionsMarshal.SetCount(list126, num3); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + ref QuestStep reference89 = ref span126[num2]; QuestStep obj87 = new QuestStep(EInteractionType.Interact, 2013268u, new Vector3(36.209595f, 17.196838f, -232.68488f), 957) { Fly = true }; - num3 = 1; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - CollectionsMarshal.AsSpan(list127)[0] = new DialogueChoice + num4 = 1; + List list127 = new List(num4); + CollectionsMarshal.SetCount(list127, num4); + Span span127 = CollectionsMarshal.AsSpan(list127); + num5 = 0; + span127[num5] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB831_04718_Q5_000_000"), @@ -322182,7 +391268,8 @@ public static class AssemblyQuestLoader reference89 = obj87; obj86.Steps = list126; reference88 = obj86; - ref QuestSequence reference90 = ref span67[7]; + num++; + ref QuestSequence reference90 = ref span115[num]; QuestSequence obj88 = new QuestSequence { Sequence = 7 @@ -322190,18 +391277,23 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 2013269u, new Vector3(-13.565308f, 22.964722f, -346.7613f), 957); + Span span128 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span128[num3] = new QuestStep(EInteractionType.Interact, 2013269u, new Vector3(-13.565308f, 22.964722f, -346.7613f), 957); obj88.Steps = list128; reference90 = obj88; - ref QuestSequence reference91 = ref span67[8]; + num++; + ref QuestSequence reference91 = ref span115[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042573u, new Vector3(565.91125f, 13.300535f, 242.48108f), 957) + num3 = 1; + List list129 = new List(num3); + CollectionsMarshal.SetCount(list129, num3); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span129[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042573u, new Vector3(565.91125f, 13.300535f, 242.48108f), 957) { StopDistance = 7f, NextQuestId = new QuestId(4719) @@ -322215,13 +391307,16 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + Span span130 = CollectionsMarshal.AsSpan(list130); + index = 0; + span130[index] = "liza"; questRoot20.Author = list130; - num = 7; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span71 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference92 = ref span71[0]; + index = 7; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + Span span131 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference92 = ref span131[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -322229,27 +391324,33 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042573u, new Vector3(565.91125f, 13.300535f, 242.48108f), 957) + Span span132 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span132[num3] = new QuestStep(EInteractionType.AcceptQuest, 1042573u, new Vector3(565.91125f, 13.300535f, 242.48108f), 957) { StopDistance = 7f }; obj90.Steps = list132; reference92 = obj90; - ref QuestSequence reference93 = ref span71[1]; + num++; + ref QuestSequence reference93 = ref span131[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1044765u, new Vector3(9.567322f, -6.762952E-05f, 17.715698f), 963) + num3 = 1; + List list133 = new List(num3); + CollectionsMarshal.SetCount(list133, num3); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.Interact, 1044765u, new Vector3(9.567322f, -6.762952E-05f, 17.715698f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; obj91.Steps = list133; reference93 = obj91; - ref QuestSequence reference94 = ref span71[2]; + num++; + ref QuestSequence reference94 = ref span131[num]; QuestSequence obj92 = new QuestSequence { Sequence = 2 @@ -322257,27 +391358,33 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1044752u, new Vector3(-432.02875f, 22.24389f, 507.53027f), 958) + Span span134 = CollectionsMarshal.AsSpan(list134); + num3 = 0; + span134[num3] = new QuestStep(EInteractionType.Interact, 1044752u, new Vector3(-432.02875f, 22.24389f, 507.53027f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj92.Steps = list134; reference94 = obj92; - ref QuestSequence reference95 = ref span71[3]; + num++; + ref QuestSequence reference95 = ref span131[num]; QuestSequence obj93 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1044754u, new Vector3(-458.3963f, 20.805109f, -333.69952f), 958) + num3 = 1; + List list135 = new List(num3); + CollectionsMarshal.SetCount(list135, num3); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span135[num2] = new QuestStep(EInteractionType.Interact, 1044754u, new Vector3(-458.3963f, 20.805109f, -333.69952f), 958) { Fly = true }; obj93.Steps = list135; reference95 = obj93; - ref QuestSequence reference96 = ref span71[4]; + num++; + ref QuestSequence reference96 = ref span131[num]; QuestSequence obj94 = new QuestSequence { Sequence = 4 @@ -322285,28 +391392,34 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 2013272u, new Vector3(697.8712f, 30.105957f, -789.7612f), 958) + Span span136 = CollectionsMarshal.AsSpan(list136); + num3 = 0; + span136[num3] = new QuestStep(EInteractionType.Interact, 2013272u, new Vector3(697.8712f, 30.105957f, -789.7612f), 958) { Fly = true, AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; obj94.Steps = list136; reference96 = obj94; - ref QuestSequence reference97 = ref span71[5]; + num++; + ref QuestSequence reference97 = ref span131[num]; QuestSequence obj95 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1044762u, new Vector3(694.97217f, 30.104027f, -785.8244f), 958) + num3 = 1; + List list137 = new List(num3); + CollectionsMarshal.SetCount(list137, num3); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span137[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1044762u, new Vector3(694.97217f, 30.104027f, -785.8244f), 958) { StopDistance = 5f }; obj95.Steps = list137; reference97 = obj95; - ref QuestSequence reference98 = ref span71[6]; + num++; + ref QuestSequence reference98 = ref span131[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -322314,7 +391427,9 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044765u, new Vector3(9.567322f, -6.762952E-05f, 17.715698f), 963) + Span span138 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span138[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044765u, new Vector3(9.567322f, -6.762952E-05f, 17.715698f), 963) { StopDistance = 5f, NextQuestId = new QuestId(4754) @@ -322328,21 +391443,26 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - CollectionsMarshal.AsSpan(list139)[0] = "CryoTechnic"; + Span span139 = CollectionsMarshal.AsSpan(list139); + index = 0; + span139[index] = "CryoTechnic"; questRoot21.Author = list139; - num = 4; - List list140 = new List(num); - CollectionsMarshal.SetCount(list140, num); - Span span72 = CollectionsMarshal.AsSpan(list140); - ref QuestSequence reference99 = ref span72[0]; + index = 4; + List list140 = new List(index); + CollectionsMarshal.SetCount(list140, index); + Span span140 = CollectionsMarshal.AsSpan(list140); + num = 0; + ref QuestSequence reference99 = ref span140[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043890u, new Vector3(38.0238f, -24.6934f, -205.499f), 963) + num3 = 1; + List list141 = new List(num3); + CollectionsMarshal.SetCount(list141, num3); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span141[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043890u, new Vector3(38.0238f, -24.6934f, -205.499f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -322353,7 +391473,8 @@ public static class AssemblyQuestLoader }; obj97.Steps = list141; reference99 = obj97; - ref QuestSequence reference100 = ref span72[1]; + num++; + ref QuestSequence reference100 = ref span140[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -322361,7 +391482,9 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 2013276u, new Vector3(-192.17715f, 35.999996f, 57.092976f), 963) + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span142[num3] = new QuestStep(EInteractionType.Interact, 2013276u, new Vector3(-192.17715f, 35.999996f, 57.092976f), 963) { AethernetShortcut = new AethernetShortcut { @@ -322371,15 +391494,18 @@ public static class AssemblyQuestLoader }; obj98.Steps = list142; reference100 = obj98; - ref QuestSequence reference101 = ref span72[2]; + num++; + ref QuestSequence reference101 = ref span140[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) + num3 = 1; + List list143 = new List(num3); + CollectionsMarshal.SetCount(list143, num3); + Span span143 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span143[num2] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) { AethernetShortcut = new AethernetShortcut { @@ -322398,7 +391524,8 @@ public static class AssemblyQuestLoader }; obj99.Steps = list143; reference101 = obj99; - ref QuestSequence reference102 = ref span72[3]; + num++; + ref QuestSequence reference102 = ref span140[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -322406,7 +391533,9 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + Span span144 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span144[num3] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -322424,21 +391553,26 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "CryoTechnic"; + Span span145 = CollectionsMarshal.AsSpan(list145); + index = 0; + span145[index] = "CryoTechnic"; questRoot22.Author = list145; - num = 3; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span73 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference103 = ref span73[0]; + index = 3; + List list146 = new List(index); + CollectionsMarshal.SetCount(list146, index); + Span span146 = CollectionsMarshal.AsSpan(list146); + num = 0; + ref QuestSequence reference103 = ref span146[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + num3 = 1; + List list147 = new List(num3); + CollectionsMarshal.SetCount(list147, num3); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -322449,7 +391583,8 @@ public static class AssemblyQuestLoader }; obj101.Steps = list147; reference103 = obj101; - ref QuestSequence reference104 = ref span73[1]; + num++; + ref QuestSequence reference104 = ref span146[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 @@ -322457,7 +391592,9 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) + Span span148 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span148[num3] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) { AethernetShortcut = new AethernetShortcut { @@ -322476,15 +391613,18 @@ public static class AssemblyQuestLoader }; obj102.Steps = list148; reference104 = obj102; - ref QuestSequence reference105 = ref span73[2]; + num++; + ref QuestSequence reference105 = ref span146[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + num3 = 1; + List list149 = new List(num3); + CollectionsMarshal.SetCount(list149, num3); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -322502,13 +391642,16 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "liza"; + Span span150 = CollectionsMarshal.AsSpan(list150); + index = 0; + span150[index] = "liza"; questRoot23.Author = list150; - num = 6; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span74 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference106 = ref span74[0]; + index = 6; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + Span span151 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference106 = ref span151[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -322516,18 +391659,23 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); + Span span152 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span152[num3] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); obj104.Steps = list152; reference106 = obj104; - ref QuestSequence reference107 = ref span74[1]; + num++; + ref QuestSequence reference107 = ref span151[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1045392u, new Vector3(-52.75049f, -1.5635975E-05f, -138.96393f), 963) + num3 = 1; + List list153 = new List(num3); + CollectionsMarshal.SetCount(list153, num3); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span153[num2] = new QuestStep(EInteractionType.Interact, 1045392u, new Vector3(-52.75049f, -1.5635975E-05f, -138.96393f), 963) { AethernetShortcut = new AethernetShortcut { @@ -322537,7 +391685,8 @@ public static class AssemblyQuestLoader }; obj105.Steps = list153; reference107 = obj105; - ref QuestSequence reference108 = ref span74[2]; + num++; + ref QuestSequence reference108 = ref span151[num]; QuestSequence obj106 = new QuestSequence { Sequence = 2 @@ -322545,19 +391694,23 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - ref QuestStep reference109 = ref CollectionsMarshal.AsSpan(list154)[0]; + Span span154 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + ref QuestStep reference109 = ref span154[num3]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2013349u, new Vector3(-53.87964f, 0.59503174f, -141.71057f), 963); - num3 = 2; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span75 = CollectionsMarshal.AsSpan(list155); - span75[0] = new DialogueChoice + num5 = 2; + List list155 = new List(num5); + CollectionsMarshal.SetCount(list155, num5); + Span span155 = CollectionsMarshal.AsSpan(list155); + num4 = 0; + span155[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMK101_04735_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKMK101_04735_A1_000_003") }; - span75[1] = new DialogueChoice + num4++; + span155[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMK101_04735_Q1_000_065") @@ -322566,21 +391719,25 @@ public static class AssemblyQuestLoader reference109 = questStep3; obj106.Steps = list154; reference108 = obj106; - ref QuestSequence reference110 = ref span74[3]; + num++; + ref QuestSequence reference110 = ref span151[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-52.03956f, -5.209446E-05f, -140.01839f), 963) + num3 = 1; + List list156 = new List(num3); + CollectionsMarshal.SetCount(list156, num3); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-52.03956f, -5.209446E-05f, -140.01839f), 963) { ItemId = 2003461u }; obj107.Steps = list156; reference110 = obj107; - ref QuestSequence reference111 = ref span74[4]; + num++; + ref QuestSequence reference111 = ref span151[num]; QuestSequence obj108 = new QuestSequence { Sequence = 4 @@ -322588,18 +391745,23 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1045395u, new Vector3(-21.713623f, 1.7999926f, -181.81128f), 963); + Span span157 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span157[num3] = new QuestStep(EInteractionType.Interact, 1045395u, new Vector3(-21.713623f, 1.7999926f, -181.81128f), 963); obj108.Steps = list157; reference111 = obj108; - ref QuestSequence reference112 = ref span74[5]; + num++; + ref QuestSequence reference112 = ref span151[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list158)[0]; + num3 = 1; + List list158 = new List(num3); + CollectionsMarshal.SetCount(list158, num3); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + ref QuestStep reference113 = ref span158[num2]; QuestStep obj110 = new QuestStep(EInteractionType.CompleteQuest, 1043847u, new Vector3(-350.24036f, 55f, -81.28485f), 963) { AethernetShortcut = new AethernetShortcut @@ -322608,10 +391770,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMeghaduta } }; - num3 = 1; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - CollectionsMarshal.AsSpan(list159)[0] = new DialogueChoice + num4 = 1; + List list159 = new List(num4); + CollectionsMarshal.SetCount(list159, num4); + Span span159 = CollectionsMarshal.AsSpan(list159); + num5 = 0; + span159[num5] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMK101_04735_Q2_000_182") @@ -322627,13 +391791,16 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; + Span span160 = CollectionsMarshal.AsSpan(list160); + index = 0; + span160[index] = "liza"; questRoot24.Author = list160; - num = 10; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span76 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference114 = ref span76[0]; + index = 10; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + Span span161 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference114 = ref span161[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -322641,24 +391808,29 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045397u, new Vector3(0.6560669f, 0.01927659f, 0.869751f), 1161); + Span span162 = CollectionsMarshal.AsSpan(list162); + num3 = 0; + span162[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045397u, new Vector3(0.6560669f, 0.01927659f, 0.869751f), 1161); obj111.Steps = list162; reference114 = obj111; - ref QuestSequence reference115 = ref span76[1]; + num++; + ref QuestSequence reference115 = ref span161[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - Span span77 = CollectionsMarshal.AsSpan(list163); - span77[0] = new QuestStep(EInteractionType.Interact, 2013358u, new Vector3(-0.015319824f, 1.2359009f, 5.9662476f), 1161) + num3 = 2; + List list163 = new List(num3); + CollectionsMarshal.SetCount(list163, num3); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span163[num2] = new QuestStep(EInteractionType.Interact, 2013358u, new Vector3(-0.015319824f, 1.2359009f, 5.9662476f), 1161) { StopDistance = 4f, TargetTerritoryId = (ushort)963 }; - span77[1] = new QuestStep(EInteractionType.Interact, 1039602u, new Vector3(142.04614f, 4.783756f, -146.47144f), 963) + num2++; + span163[num2] = new QuestStep(EInteractionType.Interact, 1039602u, new Vector3(142.04614f, 4.783756f, -146.47144f), 963) { AethernetShortcut = new AethernetShortcut { @@ -322668,7 +391840,8 @@ public static class AssemblyQuestLoader }; obj112.Steps = list163; reference115 = obj112; - ref QuestSequence reference116 = ref span76[2]; + num++; + ref QuestSequence reference116 = ref span161[num]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -322676,7 +391849,9 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1045401u, new Vector3(-144.45721f, 28.05f, 219.1958f), 963) + Span span164 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span164[num3] = new QuestStep(EInteractionType.Interact, 1045401u, new Vector3(-144.45721f, 28.05f, 219.1958f), 963) { AethernetShortcut = new AethernetShortcut { @@ -322686,23 +391861,28 @@ public static class AssemblyQuestLoader }; obj113.Steps = list164; reference116 = obj113; - ref QuestSequence reference117 = ref span76[3]; + num++; + ref QuestSequence reference117 = ref span161[num]; QuestSequence obj114 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - ref QuestStep reference118 = ref CollectionsMarshal.AsSpan(list165)[0]; + num3 = 1; + List list165 = new List(num3); + CollectionsMarshal.SetCount(list165, num3); + Span span165 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + ref QuestStep reference118 = ref span165[num2]; QuestStep obj115 = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 5f }; - num3 = 1; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - CollectionsMarshal.AsSpan(list166)[0] = new DialogueChoice + num5 = 1; + List list166 = new List(num5); + CollectionsMarshal.SetCount(list166, num5); + Span span166 = CollectionsMarshal.AsSpan(list166); + num4 = 0; + span166[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMK102_04736_Q2_000_094") @@ -322711,7 +391891,8 @@ public static class AssemblyQuestLoader reference118 = obj115; obj114.Steps = list165; reference117 = obj114; - ref QuestSequence reference119 = ref span76[4]; + num++; + ref QuestSequence reference119 = ref span161[num]; QuestSequence obj116 = new QuestSequence { Sequence = 4 @@ -322719,8 +391900,9 @@ public static class AssemblyQuestLoader num2 = 2; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span78 = CollectionsMarshal.AsSpan(list167); - span78[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(6.0711417f, -28.723347f, -43.467506f), 956) + Span span167 = CollectionsMarshal.AsSpan(list167); + num3 = 0; + span167[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(6.0711417f, -28.723347f, -43.467506f), 956) { Mount = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet, @@ -322732,27 +391914,32 @@ public static class AssemblyQuestLoader } } }; - span78[1] = new QuestStep(EInteractionType.Interact, 1045407u, new Vector3(-32.578064f, -29.530006f, -125.96332f), 956) + num3++; + span167[num3] = new QuestStep(EInteractionType.Interact, 1045407u, new Vector3(-32.578064f, -29.530006f, -125.96332f), 956) { Fly = true }; obj116.Steps = list167; reference119 = obj116; - ref QuestSequence reference120 = ref span76[5]; + num++; + ref QuestSequence reference120 = ref span161[num]; QuestSequence obj117 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1045412u, new Vector3(-6.57666f, -31.530346f, 54.276245f), 956) + num3 = 1; + List list168 = new List(num3); + CollectionsMarshal.SetCount(list168, num3); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.Interact, 1045412u, new Vector3(-6.57666f, -31.530346f, 54.276245f), 956) { Fly = true }; obj117.Steps = list168; reference120 = obj117; - ref QuestSequence reference121 = ref span76[6]; + num++; + ref QuestSequence reference121 = ref span161[num]; QuestSequence obj118 = new QuestSequence { Sequence = 6 @@ -322760,40 +391947,49 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1045417u, new Vector3(135.9425f, -16.146997f, 236.22485f), 962) + Span span169 = CollectionsMarshal.AsSpan(list169); + num3 = 0; + span169[num3] = new QuestStep(EInteractionType.Interact, 1045417u, new Vector3(135.9425f, -16.146997f, 236.22485f), 962) { StopDistance = 5f }; obj118.Steps = list169; reference121 = obj118; - ref QuestSequence reference122 = ref span76[7]; + num++; + ref QuestSequence reference122 = ref span161[num]; QuestSequence obj119 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list170)[0]; + num3 = 1; + List list170 = new List(num3); + CollectionsMarshal.SetCount(list170, num3); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + ref QuestStep reference123 = ref span170[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Duty, null, null, 962); DutyOptions obj120 = new DutyOptions { ContentFinderConditionId = 822u }; - num3 = 1; - List list171 = new List(num3); - CollectionsMarshal.SetCount(list171, num3); - CollectionsMarshal.AsSpan(list171)[0] = "Navigation issues for area transitions"; + num4 = 1; + List list171 = new List(num4); + CollectionsMarshal.SetCount(list171, num4); + Span span171 = CollectionsMarshal.AsSpan(list171); + num5 = 0; + span171[num5] = "Navigation issues for area transitions"; obj120.Notes = list171; questStep4.DutyOptions = obj120; reference123 = questStep4; obj119.Steps = list170; reference122 = obj119; - span76[8] = new QuestSequence + num++; + span161[num] = new QuestSequence { Sequence = 8 }; - ref QuestSequence reference124 = ref span76[9]; + num++; + ref QuestSequence reference124 = ref span161[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue @@ -322801,7 +391997,9 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045420u, new Vector3(142.07666f, -16.147f, 235.70605f), 962) + Span span172 = CollectionsMarshal.AsSpan(list172); + num3 = 0; + span172[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045420u, new Vector3(142.07666f, -16.147f, 235.70605f), 962) { StopDistance = 7f }; @@ -322814,27 +392012,33 @@ public static class AssemblyQuestLoader num = 1; List list173 = new List(num); CollectionsMarshal.SetCount(list173, num); - CollectionsMarshal.AsSpan(list173)[0] = "liza"; + Span span173 = CollectionsMarshal.AsSpan(list173); + index = 0; + span173[index] = "liza"; questRoot25.Author = list173; - num = 5; - List list174 = new List(num); - CollectionsMarshal.SetCount(list174, num); - Span span79 = CollectionsMarshal.AsSpan(list174); - ref QuestSequence reference125 = ref span79[0]; + index = 5; + List list174 = new List(index); + CollectionsMarshal.SetCount(list174, index); + Span span174 = CollectionsMarshal.AsSpan(list174); + num = 0; + ref QuestSequence reference125 = ref span174[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045420u, new Vector3(142.07666f, -16.147f, 235.70605f), 962) + num3 = 1; + List list175 = new List(num3); + CollectionsMarshal.SetCount(list175, num3); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.AcceptQuest, 1045420u, new Vector3(142.07666f, -16.147f, 235.70605f), 962) { StopDistance = 7f }; obj122.Steps = list175; reference125 = obj122; - ref QuestSequence reference126 = ref span79[1]; + num++; + ref QuestSequence reference126 = ref span174[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 @@ -322842,28 +392046,34 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1040824u, new Vector3(-334.4015f, 23.803606f, 404.9286f), 958) + Span span176 = CollectionsMarshal.AsSpan(list176); + num3 = 0; + span176[num3] = new QuestStep(EInteractionType.Interact, 1040824u, new Vector3(-334.4015f, 23.803606f, 404.9286f), 958) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj123.Steps = list176; reference126 = obj123; - ref QuestSequence reference127 = ref span79[2]; + num++; + ref QuestSequence reference127 = ref span174[num]; QuestSequence obj124 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1045425u, new Vector3(532.4635f, -36.65f, -191.48547f), 958) + num3 = 1; + List list177 = new List(num3); + CollectionsMarshal.SetCount(list177, num3); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.Interact, 1045425u, new Vector3(532.4635f, -36.65f, -191.48547f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; obj124.Steps = list177; reference127 = obj124; - ref QuestSequence reference128 = ref span79[3]; + num++; + ref QuestSequence reference128 = ref span174[num]; QuestSequence obj125 = new QuestSequence { Sequence = 3 @@ -322871,89 +392081,126 @@ public static class AssemblyQuestLoader num2 = 5; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span80 = CollectionsMarshal.AsSpan(list178); - ref QuestStep reference129 = ref span80[0]; + Span span178 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + ref QuestStep reference129 = ref span178[num3]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1045490u, new Vector3(523.24695f, -36.65f, -156.02356f), 958); - num3 = 6; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - Span span81 = CollectionsMarshal.AsSpan(list179); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list179 = new List(num5); + CollectionsMarshal.SetCount(list179, num5); + Span span179 = CollectionsMarshal.AsSpan(list179); + num4 = 0; + span179[num4] = null; + num4++; + span179[num4] = null; + num4++; + span179[num4] = null; + num4++; + span179[num4] = null; + num4++; + span179[num4] = null; + num4++; + span179[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list179; reference129 = questStep5; - ref QuestStep reference130 = ref span80[1]; + num3++; + ref QuestStep reference130 = ref span178[num3]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1045491u, new Vector3(502.4032f, -36.65f, -178.27118f), 958); - num3 = 6; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - Span span82 = CollectionsMarshal.AsSpan(list180); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list180 = new List(num4); + CollectionsMarshal.SetCount(list180, num4); + Span span180 = CollectionsMarshal.AsSpan(list180); + num5 = 0; + span180[num5] = null; + num5++; + span180[num5] = null; + num5++; + span180[num5] = null; + num5++; + span180[num5] = null; + num5++; + span180[num5] = null; + num5++; + span180[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list180; reference130 = questStep6; - ref QuestStep reference131 = ref span80[2]; + num3++; + ref QuestStep reference131 = ref span178[num3]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1037774u, new Vector3(518.181f, -36.65f, -212.14618f), 958); - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span83 = CollectionsMarshal.AsSpan(list181); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list181 = new List(num5); + CollectionsMarshal.SetCount(list181, num5); + Span span181 = CollectionsMarshal.AsSpan(list181); + num4 = 0; + span181[num4] = null; + num4++; + span181[num4] = null; + num4++; + span181[num4] = null; + num4++; + span181[num4] = null; + num4++; + span181[num4] = null; + num4++; + span181[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list181; reference131 = questStep7; - ref QuestStep reference132 = ref span80[3]; + num3++; + ref QuestStep reference132 = ref span178[num3]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1045489u, new Vector3(549.2484f, -36.615707f, -213.18384f), 958); - num3 = 6; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - Span span84 = CollectionsMarshal.AsSpan(list182); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list182 = new List(num4); + CollectionsMarshal.SetCount(list182, num4); + Span span182 = CollectionsMarshal.AsSpan(list182); + num5 = 0; + span182[num5] = null; + num5++; + span182[num5] = null; + num5++; + span182[num5] = null; + num5++; + span182[num5] = null; + num5++; + span182[num5] = null; + num5++; + span182[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list182; reference132 = questStep8; - ref QuestStep reference133 = ref span80[4]; + num3++; + ref QuestStep reference133 = ref span178[num3]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1037766u, new Vector3(545.3115f, -36.616177f, -265.00348f), 958); - num3 = 6; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - Span span85 = CollectionsMarshal.AsSpan(list183); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + num5 = 6; + List list183 = new List(num5); + CollectionsMarshal.SetCount(list183, num5); + Span span183 = CollectionsMarshal.AsSpan(list183); + num4 = 0; + span183[num4] = null; + num4++; + span183[num4] = null; + num4++; + span183[num4] = null; + num4++; + span183[num4] = null; + num4++; + span183[num4] = null; + num4++; + span183[num4] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list183; reference133 = questStep9; obj125.Steps = list178; reference128 = obj125; - ref QuestSequence reference134 = ref span79[4]; + num++; + ref QuestSequence reference134 = ref span174[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - Span span86 = CollectionsMarshal.AsSpan(list184); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(534.8861f, -36.65f, -245.12135f), 958) + num3 = 2; + List list184 = new List(num3); + CollectionsMarshal.SetCount(list184, num3); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span184[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(534.8861f, -36.65f, -245.12135f), 958) { SkipConditions = new SkipConditions { @@ -322963,7 +392210,8 @@ public static class AssemblyQuestLoader } } }; - span86[1] = new QuestStep(EInteractionType.CompleteQuest, 1045430u, new Vector3(415.1521f, 15.558167f, -637.56775f), 958) + num2++; + span184[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045430u, new Vector3(415.1521f, 15.558167f, -637.56775f), 958) { Fly = true }; @@ -322976,13 +392224,16 @@ public static class AssemblyQuestLoader num = 1; List list185 = new List(num); CollectionsMarshal.SetCount(list185, num); - CollectionsMarshal.AsSpan(list185)[0] = "liza"; + Span span185 = CollectionsMarshal.AsSpan(list185); + index = 0; + span185[index] = "liza"; questRoot26.Author = list185; - num = 7; - List list186 = new List(num); - CollectionsMarshal.SetCount(list186, num); - Span span87 = CollectionsMarshal.AsSpan(list186); - ref QuestSequence reference135 = ref span87[0]; + index = 7; + List list186 = new List(index); + CollectionsMarshal.SetCount(list186, index); + Span span186 = CollectionsMarshal.AsSpan(list186); + num = 0; + ref QuestSequence reference135 = ref span186[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -322990,28 +392241,34 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045431u, new Vector3(413.4431f, 15.5581665f, -638.3002f), 958) + Span span187 = CollectionsMarshal.AsSpan(list187); + num3 = 0; + span187[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045431u, new Vector3(413.4431f, 15.5581665f, -638.3002f), 958) { StopDistance = 5f }; obj127.Steps = list187; reference135 = obj127; - ref QuestSequence reference136 = ref span87[1]; + num++; + ref QuestSequence reference136 = ref span186[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1045435u, new Vector3(-366.29285f, 10.803238f, -620.08093f), 958) + num3 = 1; + List list188 = new List(num3); + CollectionsMarshal.SetCount(list188, num3); + Span span188 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span188[num2] = new QuestStep(EInteractionType.Interact, 1045435u, new Vector3(-366.29285f, 10.803238f, -620.08093f), 958) { TargetTerritoryId = (ushort)1160, Fly = true }; obj128.Steps = list188; reference136 = obj128; - ref QuestSequence reference137 = ref span87[2]; + num++; + ref QuestSequence reference137 = ref span186[num]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -323019,77 +392276,109 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1045769u, new Vector3(10.421875f, 2.9999998f, 65.2323f), 1160); + Span span189 = CollectionsMarshal.AsSpan(list189); + num3 = 0; + span189[num3] = new QuestStep(EInteractionType.Interact, 1045769u, new Vector3(10.421875f, 2.9999998f, 65.2323f), 1160); obj129.Steps = list189; reference137 = obj129; - ref QuestSequence reference138 = ref span87[3]; + num++; + ref QuestSequence reference138 = ref span186[num]; QuestSequence obj130 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - Span span88 = CollectionsMarshal.AsSpan(list190); - ref QuestStep reference139 = ref span88[0]; + num3 = 4; + List list190 = new List(num3); + CollectionsMarshal.SetCount(list190, num3); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + ref QuestStep reference139 = ref span190[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2013351u, new Vector3(21.10321f, 3.8604736f, 67.063354f), 1160); - num3 = 6; - List list191 = new List(num3); - CollectionsMarshal.SetCount(list191, num3); - Span span89 = CollectionsMarshal.AsSpan(list191); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list191 = new List(num4); + CollectionsMarshal.SetCount(list191, num4); + Span span191 = CollectionsMarshal.AsSpan(list191); + num5 = 0; + span191[num5] = null; + num5++; + span191[num5] = null; + num5++; + span191[num5] = null; + num5++; + span191[num5] = null; + num5++; + span191[num5] = null; + num5++; + span191[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list191; reference139 = questStep10; - ref QuestStep reference140 = ref span88[1]; + num2++; + ref QuestStep reference140 = ref span190[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1045493u, new Vector3(-10.635559f, 3f, 42.435303f), 1160); - num3 = 6; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - Span span90 = CollectionsMarshal.AsSpan(list192); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list192 = new List(num5); + CollectionsMarshal.SetCount(list192, num5); + Span span192 = CollectionsMarshal.AsSpan(list192); + num4 = 0; + span192[num4] = null; + num4++; + span192[num4] = null; + num4++; + span192[num4] = null; + num4++; + span192[num4] = null; + num4++; + span192[num4] = null; + num4++; + span192[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list192; reference140 = questStep11; - ref QuestStep reference141 = ref span88[2]; + num2++; + ref QuestStep reference141 = ref span190[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2013350u, new Vector3(9.353699f, 3.5552979f, 26.382812f), 1160); - num3 = 6; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - Span span91 = CollectionsMarshal.AsSpan(list193); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list193 = new List(num4); + CollectionsMarshal.SetCount(list193, num4); + Span span193 = CollectionsMarshal.AsSpan(list193); + num5 = 0; + span193[num5] = null; + num5++; + span193[num5] = null; + num5++; + span193[num5] = null; + num5++; + span193[num5] = null; + num5++; + span193[num5] = null; + num5++; + span193[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list193; reference141 = questStep12; - ref QuestStep reference142 = ref span88[3]; + num2++; + ref QuestStep reference142 = ref span190[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1045492u, new Vector3(42.435303f, 3.1270661f, -9.353821f), 1160); - num3 = 6; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - Span span92 = CollectionsMarshal.AsSpan(list194); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list194 = new List(num5); + CollectionsMarshal.SetCount(list194, num5); + Span span194 = CollectionsMarshal.AsSpan(list194); + num4 = 0; + span194[num4] = null; + num4++; + span194[num4] = null; + num4++; + span194[num4] = null; + num4++; + span194[num4] = null; + num4++; + span194[num4] = null; + num4++; + span194[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list194; reference142 = questStep13; obj130.Steps = list190; reference138 = obj130; - ref QuestSequence reference143 = ref span87[4]; + num++; + ref QuestSequence reference143 = ref span186[num]; QuestSequence obj131 = new QuestSequence { Sequence = 4 @@ -323097,25 +392386,31 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1045439u, new Vector3(0.19836426f, 3f, -26.840637f), 1160); + Span span195 = CollectionsMarshal.AsSpan(list195); + num3 = 0; + span195[num3] = new QuestStep(EInteractionType.Interact, 1045439u, new Vector3(0.19836426f, 3f, -26.840637f), 1160); obj131.Steps = list195; reference143 = obj131; - ref QuestSequence reference144 = ref span87[5]; + num++; + ref QuestSequence reference144 = ref span186[num]; QuestSequence obj132 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1040825u, new Vector3(-333.27234f, 23.803606f, 406.05774f), 958) + num3 = 1; + List list196 = new List(num3); + CollectionsMarshal.SetCount(list196, num3); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.Interact, 1040825u, new Vector3(-333.27234f, 23.803606f, 406.05774f), 958) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj132.Steps = list196; reference144 = obj132; - ref QuestSequence reference145 = ref span87[6]; + num++; + ref QuestSequence reference145 = ref span186[num]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue @@ -323123,7 +392418,9 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045441u, new Vector3(507.43872f, -36.65f, -202.99078f), 958) + Span span197 = CollectionsMarshal.AsSpan(list197); + num3 = 0; + span197[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045441u, new Vector3(507.43872f, -36.65f, -202.99078f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; @@ -323136,27 +392433,33 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "liza"; + Span span198 = CollectionsMarshal.AsSpan(list198); + index = 0; + span198[index] = "liza"; questRoot27.Author = list198; - num = 4; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span93 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference146 = ref span93[0]; + index = 4; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + Span span199 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference146 = ref span199[num]; QuestSequence obj134 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045445u, new Vector3(508.5984f, -36.65f, -206.74457f), 958) + num3 = 1; + List list200 = new List(num3); + CollectionsMarshal.SetCount(list200, num3); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.AcceptQuest, 1045445u, new Vector3(508.5984f, -36.65f, -206.74457f), 958) { StopDistance = 7f }; obj134.Steps = list200; reference146 = obj134; - ref QuestSequence reference147 = ref span93[1]; + num++; + ref QuestSequence reference147 = ref span199[num]; QuestSequence obj135 = new QuestSequence { Sequence = 1 @@ -323164,8 +392467,9 @@ public static class AssemblyQuestLoader num2 = 2; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span94 = CollectionsMarshal.AsSpan(list201); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(252.4148f, 10.8f, -659.2858f), 958) + Span span201 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span201[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(252.4148f, 10.8f, -659.2858f), 958) { SkipConditions = new SkipConditions { @@ -323175,36 +392479,43 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference148 = ref span94[1]; + num3++; + ref QuestStep reference148 = ref span201[num3]; QuestStep obj136 = new QuestStep(EInteractionType.Combat, null, new Vector3(-80.826256f, 10.8f, -663.8825f), 958) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = 16332u; + num4 = 1; + List list202 = new List(num4); + CollectionsMarshal.SetCount(list202, num4); + Span span202 = CollectionsMarshal.AsSpan(list202); + num5 = 0; + span202[num5] = 16332u; obj136.KillEnemyDataIds = list202; reference148 = obj136; obj135.Steps = list201; reference147 = obj135; - ref QuestSequence reference149 = ref span93[2]; + num++; + ref QuestSequence reference149 = ref span199[num]; QuestSequence obj137 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1045450u, new Vector3(-80.73547f, 10.8f, -659.75433f), 958) + num3 = 1; + List list203 = new List(num3); + CollectionsMarshal.SetCount(list203, num3); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.Interact, 1045450u, new Vector3(-80.73547f, 10.8f, -659.75433f), 958) { StopDistance = 7f }; obj137.Steps = list203; reference149 = obj137; - ref QuestSequence reference150 = ref span93[3]; + num++; + ref QuestSequence reference150 = ref span199[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -323212,7 +392523,9 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045452u, new Vector3(283.8025f, 10.8f, -231.61676f), 958) + Span span204 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span204[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045452u, new Vector3(283.8025f, 10.8f, -231.61676f), 958) { StopDistance = 5f }; @@ -323225,27 +392538,33 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - CollectionsMarshal.AsSpan(list205)[0] = "liza"; + Span span205 = CollectionsMarshal.AsSpan(list205); + index = 0; + span205[index] = "liza"; questRoot28.Author = list205; - num = 7; - List list206 = new List(num); - CollectionsMarshal.SetCount(list206, num); - Span span95 = CollectionsMarshal.AsSpan(list206); - ref QuestSequence reference151 = ref span95[0]; + index = 7; + List list206 = new List(index); + CollectionsMarshal.SetCount(list206, index); + Span span206 = CollectionsMarshal.AsSpan(list206); + num = 0; + ref QuestSequence reference151 = ref span206[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045448u, new Vector3(510.1244f, -36.65f, -204.97449f), 958) + num3 = 1; + List list207 = new List(num3); + CollectionsMarshal.SetCount(list207, num3); + Span span207 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + span207[num2] = new QuestStep(EInteractionType.AcceptQuest, 1045448u, new Vector3(510.1244f, -36.65f, -204.97449f), 958) { StopDistance = 5f }; obj139.Steps = list207; reference151 = obj139; - ref QuestSequence reference152 = ref span95[1]; + num++; + ref QuestSequence reference152 = ref span206[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -323253,28 +392572,34 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1045456u, new Vector3(-541.9242f, 128.67758f, 585.1072f), 959) + Span span208 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span208[num3] = new QuestStep(EInteractionType.Interact, 1045456u, new Vector3(-541.9242f, 128.67758f, 585.1072f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; obj140.Steps = list208; reference152 = obj140; - ref QuestSequence reference153 = ref span95[2]; + num++; + ref QuestSequence reference153 = ref span206[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1045458u, new Vector3(-197.49762f, 58.194954f, 407.27856f), 959) + num3 = 1; + List list209 = new List(num3); + CollectionsMarshal.SetCount(list209, num3); + Span span209 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span209[num2] = new QuestStep(EInteractionType.Interact, 1045458u, new Vector3(-197.49762f, 58.194954f, 407.27856f), 959) { Fly = true }; obj141.Steps = list209; reference153 = obj141; - ref QuestSequence reference154 = ref span95[3]; + num++; + ref QuestSequence reference154 = ref span206[num]; QuestSequence obj142 = new QuestSequence { Sequence = 3 @@ -323282,8 +392607,9 @@ public static class AssemblyQuestLoader num2 = 3; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - Span span96 = CollectionsMarshal.AsSpan(list210); - span96[0] = new QuestStep(EInteractionType.Interact, 2012664u, new Vector3(-26.901672f, -130.47992f, -580.4685f), 959) + Span span210 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span210[num3] = new QuestStep(EInteractionType.Interact, 2012664u, new Vector3(-26.901672f, -130.47992f, -580.4685f), 959) { TargetTerritoryId = (ushort)959, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, @@ -323295,7 +392621,8 @@ public static class AssemblyQuestLoader } } }; - span96[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-19.779482f, -56.63768f, -464.9354f), 959) + num3++; + span210[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-19.779482f, -56.63768f, -464.9354f), 959) { StopDistance = 1f, Fly = true, @@ -323307,27 +392634,32 @@ public static class AssemblyQuestLoader } } }; - span96[2] = new QuestStep(EInteractionType.Interact, 1039686u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959) + num3++; + span210[num3] = new QuestStep(EInteractionType.Interact, 1039686u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959) { Fly = true }; obj142.Steps = list210; reference154 = obj142; - ref QuestSequence reference155 = ref span95[4]; + num++; + ref QuestSequence reference155 = ref span206[num]; QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 2013353u, new Vector3(164.23279f, -49.607117f, -620.3861f), 959) + num3 = 1; + List list211 = new List(num3); + CollectionsMarshal.SetCount(list211, num3); + Span span211 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + span211[num2] = new QuestStep(EInteractionType.Interact, 2013353u, new Vector3(164.23279f, -49.607117f, -620.3861f), 959) { Fly = true }; obj143.Steps = list211; reference155 = obj143; - ref QuestSequence reference156 = ref span95[5]; + num++; + ref QuestSequence reference156 = ref span206[num]; QuestSequence obj144 = new QuestSequence { Sequence = 5 @@ -323335,90 +392667,121 @@ public static class AssemblyQuestLoader num2 = 4; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span97 = CollectionsMarshal.AsSpan(list212); - ref QuestStep reference157 = ref span97[0]; + Span span212 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + ref QuestStep reference157 = ref span212[num3]; QuestStep obj145 = new QuestStep(EInteractionType.Emote, 1045471u, new Vector3(158.61743f, -49.589592f, -626.42865f), 959) { StopDistance = 6f, Emote = EEmote.Rally }; - num3 = 6; - List list213 = new List(num3); - CollectionsMarshal.SetCount(list213, num3); - Span span98 = CollectionsMarshal.AsSpan(list213); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list213 = new List(num5); + CollectionsMarshal.SetCount(list213, num5); + Span span213 = CollectionsMarshal.AsSpan(list213); + num4 = 0; + span213[num4] = null; + num4++; + span213[num4] = null; + num4++; + span213[num4] = null; + num4++; + span213[num4] = null; + num4++; + span213[num4] = null; + num4++; + span213[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj145.CompletionQuestVariablesFlags = list213; reference157 = obj145; - ref QuestStep reference158 = ref span97[1]; + num3++; + ref QuestStep reference158 = ref span212[num3]; QuestStep obj146 = new QuestStep(EInteractionType.Emote, 1045470u, new Vector3(154.7417f, -49.589596f, -622.3087f), 959) { StopDistance = 6f, Emote = EEmote.Rally }; - num3 = 6; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - Span span99 = CollectionsMarshal.AsSpan(list214); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list214 = new List(num4); + CollectionsMarshal.SetCount(list214, num4); + Span span214 = CollectionsMarshal.AsSpan(list214); + num5 = 0; + span214[num5] = null; + num5++; + span214[num5] = null; + num5++; + span214[num5] = null; + num5++; + span214[num5] = null; + num5++; + span214[num5] = null; + num5++; + span214[num5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj146.CompletionQuestVariablesFlags = list214; reference158 = obj146; - ref QuestStep reference159 = ref span97[2]; + num3++; + ref QuestStep reference159 = ref span212[num3]; QuestStep obj147 = new QuestStep(EInteractionType.Emote, 1045472u, new Vector3(148.91272f, -49.589596f, -621.48474f), 959) { StopDistance = 6f, Emote = EEmote.Rally }; - num3 = 6; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - Span span100 = CollectionsMarshal.AsSpan(list215); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list215 = new List(num5); + CollectionsMarshal.SetCount(list215, num5); + Span span215 = CollectionsMarshal.AsSpan(list215); + num4 = 0; + span215[num4] = null; + num4++; + span215[num4] = null; + num4++; + span215[num4] = null; + num4++; + span215[num4] = null; + num4++; + span215[num4] = null; + num4++; + span215[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj147.CompletionQuestVariablesFlags = list215; reference159 = obj147; - ref QuestStep reference160 = ref span97[3]; + num3++; + ref QuestStep reference160 = ref span212[num3]; QuestStep obj148 = new QuestStep(EInteractionType.Emote, 1045473u, new Vector3(152.42236f, -49.589592f, -614.8623f), 959) { StopDistance = 6f, Emote = EEmote.Rally }; - num3 = 6; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - Span span101 = CollectionsMarshal.AsSpan(list216); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list216 = new List(num4); + CollectionsMarshal.SetCount(list216, num4); + Span span216 = CollectionsMarshal.AsSpan(list216); + num5 = 0; + span216[num5] = null; + num5++; + span216[num5] = null; + num5++; + span216[num5] = null; + num5++; + span216[num5] = null; + num5++; + span216[num5] = null; + num5++; + span216[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj148.CompletionQuestVariablesFlags = list216; reference160 = obj148; obj144.Steps = list212; reference156 = obj144; - ref QuestSequence reference161 = ref span95[6]; + num++; + ref QuestSequence reference161 = ref span206[num]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045474u, new Vector3(158.46484f, -49.589592f, -619.9894f), 959) + num3 = 1; + List list217 = new List(num3); + CollectionsMarshal.SetCount(list217, num3); + Span span217 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span217[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045474u, new Vector3(158.46484f, -49.589592f, -619.9894f), 959) { StopDistance = 6f }; @@ -323431,13 +392794,16 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; + Span span218 = CollectionsMarshal.AsSpan(list218); + index = 0; + span218[index] = "liza"; questRoot29.Author = list218; - num = 4; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span102 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference162 = ref span102[0]; + index = 4; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + Span span219 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference162 = ref span219[num]; QuestSequence obj150 = new QuestSequence { Sequence = 0 @@ -323445,28 +392811,34 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045611u, new Vector3(160.87585f, -49.589592f, -618.46344f), 959) + Span span220 = CollectionsMarshal.AsSpan(list220); + num3 = 0; + span220[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045611u, new Vector3(160.87585f, -49.589592f, -618.46344f), 959) { StopDistance = 7f }; obj150.Steps = list220; reference162 = obj150; - ref QuestSequence reference163 = ref span102[1]; + num++; + ref QuestSequence reference163 = ref span219[num]; QuestSequence obj151 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1045919u, new Vector3(-200.45782f, 59.021378f, 418.69226f), 959) + num3 = 1; + List list221 = new List(num3); + CollectionsMarshal.SetCount(list221, num3); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span221[num2] = new QuestStep(EInteractionType.Interact, 1045919u, new Vector3(-200.45782f, 59.021378f, 418.69226f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; obj151.Steps = list221; reference163 = obj151; - ref QuestSequence reference164 = ref span102[2]; + num++; + ref QuestSequence reference164 = ref span219[num]; QuestSequence obj152 = new QuestSequence { Sequence = 2 @@ -323474,60 +392846,84 @@ public static class AssemblyQuestLoader num2 = 3; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span103 = CollectionsMarshal.AsSpan(list222); - ref QuestStep reference165 = ref span103[0]; + Span span222 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + ref QuestStep reference165 = ref span222[num3]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2013354u, new Vector3(-2.7314453f, 73.8689f, 638.0254f), 1162); - num3 = 6; - List list223 = new List(num3); - CollectionsMarshal.SetCount(list223, num3); - Span span104 = CollectionsMarshal.AsSpan(list223); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list223 = new List(num5); + CollectionsMarshal.SetCount(list223, num5); + Span span223 = CollectionsMarshal.AsSpan(list223); + num4 = 0; + span223[num4] = null; + num4++; + span223[num4] = null; + num4++; + span223[num4] = null; + num4++; + span223[num4] = null; + num4++; + span223[num4] = null; + num4++; + span223[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list223; reference165 = questStep14; - ref QuestStep reference166 = ref span103[1]; + num3++; + ref QuestStep reference166 = ref span222[num3]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2013355u, new Vector3(-44.87683f, 66.57507f, 547.6615f), 1162); - num3 = 6; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - Span span105 = CollectionsMarshal.AsSpan(list224); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list224 = new List(num4); + CollectionsMarshal.SetCount(list224, num4); + Span span224 = CollectionsMarshal.AsSpan(list224); + num5 = 0; + span224[num5] = null; + num5++; + span224[num5] = null; + num5++; + span224[num5] = null; + num5++; + span224[num5] = null; + num5++; + span224[num5] = null; + num5++; + span224[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list224; reference166 = questStep15; - ref QuestStep reference167 = ref span103[2]; + num3++; + ref QuestStep reference167 = ref span222[num3]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2013356u, new Vector3(69.29114f, 56.71765f, 472.19043f), 1162); - num3 = 6; - List list225 = new List(num3); - CollectionsMarshal.SetCount(list225, num3); - Span span106 = CollectionsMarshal.AsSpan(list225); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list225 = new List(num5); + CollectionsMarshal.SetCount(list225, num5); + Span span225 = CollectionsMarshal.AsSpan(list225); + num4 = 0; + span225[num4] = null; + num4++; + span225[num4] = null; + num4++; + span225[num4] = null; + num4++; + span225[num4] = null; + num4++; + span225[num4] = null; + num4++; + span225[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list225; reference167 = questStep16; obj152.Steps = list222; reference164 = obj152; - ref QuestSequence reference168 = ref span102[3]; + num++; + ref QuestSequence reference168 = ref span219[num]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045479u, new Vector3(4.043579f, 58.561604f, 424.97888f), 1162); + num3 = 1; + List list226 = new List(num3); + CollectionsMarshal.SetCount(list226, num3); + Span span226 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span226[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045479u, new Vector3(4.043579f, 58.561604f, 424.97888f), 1162); obj153.Steps = list226; reference168 = obj153; questRoot29.QuestSequence = list219; @@ -323537,13 +392933,16 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - CollectionsMarshal.AsSpan(list227)[0] = "liza"; + Span span227 = CollectionsMarshal.AsSpan(list227); + index = 0; + span227[index] = "liza"; questRoot30.Author = list227; - num = 5; - List list228 = new List(num); - CollectionsMarshal.SetCount(list228, num); - Span span107 = CollectionsMarshal.AsSpan(list228); - ref QuestSequence reference169 = ref span107[0]; + index = 5; + List list228 = new List(index); + CollectionsMarshal.SetCount(list228, index); + Span span228 = CollectionsMarshal.AsSpan(list228); + num = 0; + ref QuestSequence reference169 = ref span228[num]; QuestSequence obj154 = new QuestSequence { Sequence = 0 @@ -323551,24 +392950,30 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045482u, new Vector3(17.135864f, 56.573345f, 436.0265f), 1162) + Span span229 = CollectionsMarshal.AsSpan(list229); + num3 = 0; + span229[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045482u, new Vector3(17.135864f, 56.573345f, 436.0265f), 1162) { StopDistance = 5f }; obj154.Steps = list229; reference169 = obj154; - ref QuestSequence reference170 = ref span107[1]; + num++; + ref QuestSequence reference170 = ref span228[num]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 2013357u, new Vector3(97.520386f, 74.08252f, 607.90405f), 1162); + num3 = 1; + List list230 = new List(num3); + CollectionsMarshal.SetCount(list230, num3); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span230[num2] = new QuestStep(EInteractionType.Interact, 2013357u, new Vector3(97.520386f, 74.08252f, 607.90405f), 1162); obj155.Steps = list230; reference170 = obj155; - ref QuestSequence reference171 = ref span107[2]; + num++; + ref QuestSequence reference171 = ref span228[num]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -323576,7 +392981,9 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Duty, null, null, 1159) + Span span231 = CollectionsMarshal.AsSpan(list231); + num3 = 0; + span231[num3] = new QuestStep(EInteractionType.Duty, null, null, 1159) { DutyOptions = new DutyOptions { @@ -323585,19 +392992,23 @@ public static class AssemblyQuestLoader }; obj156.Steps = list231; reference171 = obj156; - span107[3] = new QuestSequence + num++; + span228[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference172 = ref span107[4]; + num++; + ref QuestSequence reference172 = ref span228[num]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045757u, new Vector3(-136.03424f, 54.608093f, 427.60352f), 959); + num3 = 1; + List list232 = new List(num3); + CollectionsMarshal.SetCount(list232, num3); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span232[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045757u, new Vector3(-136.03424f, 54.608093f, 427.60352f), 959); obj157.Steps = list232; reference172 = obj157; questRoot30.QuestSequence = list228; @@ -323607,13 +393018,16 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "liza"; + Span span233 = CollectionsMarshal.AsSpan(list233); + index = 0; + span233[index] = "liza"; questRoot31.Author = list233; - num = 4; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span108 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference173 = ref span108[0]; + index = 4; + List list234 = new List(index); + CollectionsMarshal.SetCount(list234, index); + Span span234 = CollectionsMarshal.AsSpan(list234); + num = 0; + ref QuestSequence reference173 = ref span234[num]; QuestSequence obj158 = new QuestSequence { Sequence = 0 @@ -323621,22 +393035,26 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045758u, new Vector3(-135.85114f, 54.977272f, 432.02856f), 959) + Span span235 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + span235[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045758u, new Vector3(-135.85114f, 54.977272f, 432.02856f), 959) { StopDistance = 7f }; obj158.Steps = list235; reference173 = obj158; - ref QuestSequence reference174 = ref span108[1]; + num++; + ref QuestSequence reference174 = ref span234[num]; QuestSequence obj159 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - Span span109 = CollectionsMarshal.AsSpan(list236); - span109[0] = new QuestStep(EInteractionType.Interact, 2012664u, new Vector3(-26.901672f, -130.47992f, -580.4685f), 959) + num3 = 3; + List list236 = new List(num3); + CollectionsMarshal.SetCount(list236, num3); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.Interact, 2012664u, new Vector3(-26.901672f, -130.47992f, -580.4685f), 959) { TargetTerritoryId = (ushort)959, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, @@ -323648,7 +393066,8 @@ public static class AssemblyQuestLoader } } }; - span109[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-19.779482f, -56.63768f, -464.9354f), 959) + num2++; + span236[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-19.779482f, -56.63768f, -464.9354f), 959) { StopDistance = 1f, Fly = true, @@ -323660,13 +393079,15 @@ public static class AssemblyQuestLoader } } }; - span109[2] = new QuestStep(EInteractionType.Interact, 1045466u, new Vector3(-20.126648f, -47.54357f, -491.99664f), 959) + num2++; + span236[num2] = new QuestStep(EInteractionType.Interact, 1045466u, new Vector3(-20.126648f, -47.54357f, -491.99664f), 959) { Fly = true }; obj159.Steps = list236; reference174 = obj159; - ref QuestSequence reference175 = ref span108[2]; + num++; + ref QuestSequence reference175 = ref span234[num]; QuestSequence obj160 = new QuestSequence { Sequence = 2 @@ -323674,7 +393095,9 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list237)[0]; + Span span237 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + ref QuestStep reference176 = ref span237[num3]; QuestStep obj161 = new QuestStep(EInteractionType.Interact, 1039649u, new Vector3(-336.53772f, 55f, -69.47443f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -323684,10 +393107,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMeghaduta } }; - num3 = 1; - List list238 = new List(num3); - CollectionsMarshal.SetCount(list238, num3); - CollectionsMarshal.AsSpan(list238)[0] = new DialogueChoice + num4 = 1; + List list238 = new List(num4); + CollectionsMarshal.SetCount(list238, num4); + Span span238 = CollectionsMarshal.AsSpan(list238); + num5 = 0; + span238[num5] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMK109_04743_Q1_000_000") @@ -323696,15 +393121,18 @@ public static class AssemblyQuestLoader reference176 = obj161; obj160.Steps = list237; reference175 = obj160; - ref QuestSequence reference177 = ref span108[3]; + num++; + ref QuestSequence reference177 = ref span234[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); + num3 = 1; + List list239 = new List(num3); + CollectionsMarshal.SetCount(list239, num3); + Span span239 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span239[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); obj162.Steps = list239; reference177 = obj162; questRoot31.QuestSequence = list234; @@ -323714,13 +393142,16 @@ public static class AssemblyQuestLoader num = 1; List list240 = new List(num); CollectionsMarshal.SetCount(list240, num); - CollectionsMarshal.AsSpan(list240)[0] = "liza"; + Span span240 = CollectionsMarshal.AsSpan(list240); + index = 0; + span240[index] = "liza"; questRoot32.Author = list240; - num = 5; - List list241 = new List(num); - CollectionsMarshal.SetCount(list241, num); - Span span110 = CollectionsMarshal.AsSpan(list241); - ref QuestSequence reference178 = ref span110[0]; + index = 5; + List list241 = new List(index); + CollectionsMarshal.SetCount(list241, index); + Span span241 = CollectionsMarshal.AsSpan(list241); + num = 0; + ref QuestSequence reference178 = ref span241[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 @@ -323728,24 +393159,30 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); + Span span242 = CollectionsMarshal.AsSpan(list242); + num3 = 0; + span242[num3] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); obj163.Steps = list242; reference178 = obj163; - ref QuestSequence reference179 = ref span110[1]; + num++; + ref QuestSequence reference179 = ref span241[num]; QuestSequence obj164 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1039607u, new Vector3(-342.58032f, 55f, -68.61987f), 963) + num3 = 1; + List list243 = new List(num3); + CollectionsMarshal.SetCount(list243, num3); + Span span243 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span243[num2] = new QuestStep(EInteractionType.Interact, 1039607u, new Vector3(-342.58032f, 55f, -68.61987f), 963) { StopDistance = 7f }; obj164.Steps = list243; reference179 = obj164; - ref QuestSequence reference180 = ref span110[2]; + num++; + ref QuestSequence reference180 = ref span241[num]; QuestSequence obj165 = new QuestSequence { Sequence = 2 @@ -323753,7 +393190,9 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1033908u, new Vector3(-63.61493f, -17.722f, -264.75934f), 819) + Span span244 = CollectionsMarshal.AsSpan(list244); + num3 = 0; + span244[num3] = new QuestStep(EInteractionType.Interact, 1033908u, new Vector3(-63.61493f, -17.722f, -264.75934f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -323764,18 +393203,22 @@ public static class AssemblyQuestLoader }; obj165.Steps = list244; reference180 = obj165; - ref QuestSequence reference181 = ref span110[3]; + num++; + ref QuestSequence reference181 = ref span241[num]; QuestSequence obj166 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1045690u, new Vector3(-168.9021f, -45.720856f, -167.83398f), 819); + num3 = 1; + List list245 = new List(num3); + CollectionsMarshal.SetCount(list245, num3); + Span span245 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span245[num2] = new QuestStep(EInteractionType.Interact, 1045690u, new Vector3(-168.9021f, -45.720856f, -167.83398f), 819); obj166.Steps = list245; reference181 = obj166; - ref QuestSequence reference182 = ref span110[4]; + num++; + ref QuestSequence reference182 = ref span241[num]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue @@ -323783,7 +393226,9 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045628u, new Vector3(24.2771f, 0f, 1.083313f), 819); + Span span246 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + span246[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045628u, new Vector3(24.2771f, 0f, 1.083313f), 819); obj167.Steps = list246; reference182 = obj167; questRoot32.QuestSequence = list241; @@ -323793,24 +393238,30 @@ public static class AssemblyQuestLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - CollectionsMarshal.AsSpan(list247)[0] = "liza"; + Span span247 = CollectionsMarshal.AsSpan(list247); + index = 0; + span247[index] = "liza"; questRoot33.Author = list247; - num = 6; - List list248 = new List(num); - CollectionsMarshal.SetCount(list248, num); - Span span111 = CollectionsMarshal.AsSpan(list248); - ref QuestSequence reference183 = ref span111[0]; + index = 6; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + Span span248 = CollectionsMarshal.AsSpan(list248); + num = 0; + ref QuestSequence reference183 = ref span248[num]; QuestSequence obj168 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033887u, new Vector3(24.2771f, -5.234193E-13f, -0.7477417f), 819); + num3 = 1; + List list249 = new List(num3); + CollectionsMarshal.SetCount(list249, num3); + Span span249 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span249[num2] = new QuestStep(EInteractionType.AcceptQuest, 1033887u, new Vector3(24.2771f, -5.234193E-13f, -0.7477417f), 819); obj168.Steps = list249; reference183 = obj168; - ref QuestSequence reference184 = ref span111[1]; + num++; + ref QuestSequence reference184 = ref span248[num]; QuestSequence obj169 = new QuestSequence { Sequence = 1 @@ -323818,24 +393269,30 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1045636u, new Vector3(27.939209f, 82.05f, -8.255188f), 820) + Span span250 = CollectionsMarshal.AsSpan(list250); + num3 = 0; + span250[num3] = new QuestStep(EInteractionType.Interact, 1045636u, new Vector3(27.939209f, 82.05f, -8.255188f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj169.Steps = list250; reference184 = obj169; - ref QuestSequence reference185 = ref span111[2]; + num++; + ref QuestSequence reference185 = ref span248[num]; QuestSequence obj170 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1045639u, new Vector3(21.957703f, 82.05f, 18.478638f), 820); + num3 = 1; + List list251 = new List(num3); + CollectionsMarshal.SetCount(list251, num3); + Span span251 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span251[num2] = new QuestStep(EInteractionType.Interact, 1045639u, new Vector3(21.957703f, 82.05f, 18.478638f), 820); obj170.Steps = list251; reference185 = obj170; - ref QuestSequence reference186 = ref span111[3]; + num++; + ref QuestSequence reference186 = ref span248[num]; QuestSequence obj171 = new QuestSequence { Sequence = 3 @@ -323843,22 +393300,30 @@ public static class AssemblyQuestLoader num2 = 3; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span112 = CollectionsMarshal.AsSpan(list252); - ref QuestStep reference187 = ref span112[0]; + Span span252 = CollectionsMarshal.AsSpan(list252); + num3 = 0; + ref QuestStep reference187 = ref span252[num3]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1045635u, new Vector3(39.261353f, 83.001076f, -61.387024f), 820); - num3 = 6; - List list253 = new List(num3); - CollectionsMarshal.SetCount(list253, num3); - Span span113 = CollectionsMarshal.AsSpan(list253); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list253 = new List(num5); + CollectionsMarshal.SetCount(list253, num5); + Span span253 = CollectionsMarshal.AsSpan(list253); + num4 = 0; + span253[num4] = null; + num4++; + span253[num4] = null; + num4++; + span253[num4] = null; + num4++; + span253[num4] = null; + num4++; + span253[num4] = null; + num4++; + span253[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list253; reference187 = questStep17; - ref QuestStep reference188 = ref span112[1]; + num3++; + ref QuestStep reference188 = ref span252[num3]; QuestStep obj172 = new QuestStep(EInteractionType.Interact, 1045633u, new Vector3(14.755432f, 23.099987f, 11.520508f), 820) { AethernetShortcut = new AethernetShortcut @@ -323867,19 +393332,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreMainstay } }; - num3 = 6; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - Span span114 = CollectionsMarshal.AsSpan(list254); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list254 = new List(num4); + CollectionsMarshal.SetCount(list254, num4); + Span span254 = CollectionsMarshal.AsSpan(list254); + num5 = 0; + span254[num5] = null; + num5++; + span254[num5] = null; + num5++; + span254[num5] = null; + num5++; + span254[num5] = null; + num5++; + span254[num5] = null; + num5++; + span254[num5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj172.CompletionQuestVariablesFlags = list254; reference188 = obj172; - ref QuestStep reference189 = ref span112[2]; + num3++; + ref QuestStep reference189 = ref span252[num3]; QuestStep obj173 = new QuestStep(EInteractionType.Interact, 1045634u, new Vector3(-93.40051f, -0.82003593f, 28.54956f), 820) { AethernetShortcut = new AethernetShortcut @@ -323888,29 +393360,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreNightsoilPots } }; - num3 = 6; - List list255 = new List(num3); - CollectionsMarshal.SetCount(list255, num3); - Span span115 = CollectionsMarshal.AsSpan(list255); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num5 = 6; + List list255 = new List(num5); + CollectionsMarshal.SetCount(list255, num5); + Span span255 = CollectionsMarshal.AsSpan(list255); + num4 = 0; + span255[num4] = null; + num4++; + span255[num4] = null; + num4++; + span255[num4] = null; + num4++; + span255[num4] = null; + num4++; + span255[num4] = null; + num4++; + span255[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj173.CompletionQuestVariablesFlags = list255; reference189 = obj173; obj171.Steps = list252; reference186 = obj171; - ref QuestSequence reference190 = ref span111[4]; + num++; + ref QuestSequence reference190 = ref span248[num]; QuestSequence obj174 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1045636u, new Vector3(27.939209f, 82.05f, -8.255188f), 820) + num3 = 1; + List list256 = new List(num3); + CollectionsMarshal.SetCount(list256, num3); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.Interact, 1045636u, new Vector3(27.939209f, 82.05f, -8.255188f), 820) { AethernetShortcut = new AethernetShortcut { @@ -323920,7 +393401,8 @@ public static class AssemblyQuestLoader }; obj174.Steps = list256; reference190 = obj174; - ref QuestSequence reference191 = ref span111[5]; + num++; + ref QuestSequence reference191 = ref span248[num]; QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue @@ -323928,7 +393410,9 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045631u, new Vector3(29.709229f, 82.05f, -5.661133f), 820) + Span span257 = CollectionsMarshal.AsSpan(list257); + num3 = 0; + span257[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045631u, new Vector3(29.709229f, 82.05f, -5.661133f), 820) { StopDistance = 7f }; @@ -323941,27 +393425,33 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - CollectionsMarshal.AsSpan(list258)[0] = "liza"; + Span span258 = CollectionsMarshal.AsSpan(list258); + index = 0; + span258[index] = "liza"; questRoot34.Author = list258; - num = 7; - List list259 = new List(num); - CollectionsMarshal.SetCount(list259, num); - Span span116 = CollectionsMarshal.AsSpan(list259); - ref QuestSequence reference192 = ref span116[0]; + index = 7; + List list259 = new List(index); + CollectionsMarshal.SetCount(list259, index); + Span span259 = CollectionsMarshal.AsSpan(list259); + num = 0; + ref QuestSequence reference192 = ref span259[num]; QuestSequence obj176 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045631u, new Vector3(29.709229f, 82.05f, -5.661133f), 820) + num3 = 1; + List list260 = new List(num3); + CollectionsMarshal.SetCount(list260, num3); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span260[num2] = new QuestStep(EInteractionType.AcceptQuest, 1045631u, new Vector3(29.709229f, 82.05f, -5.661133f), 820) { StopDistance = 7f }; obj176.Steps = list260; reference192 = obj176; - ref QuestSequence reference193 = ref span116[1]; + num++; + ref QuestSequence reference193 = ref span259[num]; QuestSequence obj177 = new QuestSequence { Sequence = 1 @@ -323969,21 +393459,26 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) + Span span261 = CollectionsMarshal.AsSpan(list261); + num3 = 0; + span261[num3] = new QuestStep(EInteractionType.Interact, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj177.Steps = list261; reference193 = obj177; - ref QuestSequence reference194 = ref span116[2]; + num++; + ref QuestSequence reference194 = ref span259[num]; QuestSequence obj178 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Say, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) + num3 = 1; + List list262 = new List(num3); + CollectionsMarshal.SetCount(list262, num3); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.Say, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) { ChatMessage = new ChatMessage { @@ -323992,7 +393487,8 @@ public static class AssemblyQuestLoader }; obj178.Steps = list262; reference194 = obj178; - ref QuestSequence reference195 = ref span116[3]; + num++; + ref QuestSequence reference195 = ref span259[num]; QuestSequence obj179 = new QuestSequence { Sequence = 3 @@ -324000,21 +393496,27 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1027754u, new Vector3(-108.20172f, -19.684433f, 380.2395f), 817); + Span span263 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span263[num3] = new QuestStep(EInteractionType.Interact, 1027754u, new Vector3(-108.20172f, -19.684433f, 380.2395f), 817); obj179.Steps = list263; reference195 = obj179; - ref QuestSequence reference196 = ref span116[4]; + num++; + ref QuestSequence reference196 = ref span259[num]; QuestSequence obj180 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1045642u, new Vector3(-90.28766f, -19.118582f, 298.02393f), 817); + num3 = 1; + List list264 = new List(num3); + CollectionsMarshal.SetCount(list264, num3); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.Interact, 1045642u, new Vector3(-90.28766f, -19.118582f, 298.02393f), 817); obj180.Steps = list264; reference196 = obj180; - ref QuestSequence reference197 = ref span116[5]; + num++; + ref QuestSequence reference197 = ref span259[num]; QuestSequence obj181 = new QuestSequence { Sequence = 5 @@ -324022,21 +393524,26 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1045647u, new Vector3(-488.88385f, 45.58085f, -224.5976f), 815) + Span span265 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span265[num3] = new QuestStep(EInteractionType.Interact, 1045647u, new Vector3(-488.88385f, 45.58085f, -224.5976f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; obj181.Steps = list265; reference197 = obj181; - ref QuestSequence reference198 = ref span116[6]; + num++; + ref QuestSequence reference198 = ref span259[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045648u, new Vector3(-205.95105f, -3.1999996f, -9.597961f), 819); + num3 = 1; + List list266 = new List(num3); + CollectionsMarshal.SetCount(list266, num3); + Span span266 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span266[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045648u, new Vector3(-205.95105f, -3.1999996f, -9.597961f), 819); obj182.Steps = list266; reference198 = obj182; questRoot34.QuestSequence = list259; @@ -324046,13 +393553,16 @@ public static class AssemblyQuestLoader num = 1; List list267 = new List(num); CollectionsMarshal.SetCount(list267, num); - CollectionsMarshal.AsSpan(list267)[0] = "liza"; + Span span267 = CollectionsMarshal.AsSpan(list267); + index = 0; + span267[index] = "liza"; questRoot35.Author = list267; - num = 5; - List list268 = new List(num); - CollectionsMarshal.SetCount(list268, num); - Span span117 = CollectionsMarshal.AsSpan(list268); - ref QuestSequence reference199 = ref span117[0]; + index = 5; + List list268 = new List(index); + CollectionsMarshal.SetCount(list268, index); + Span span268 = CollectionsMarshal.AsSpan(list268); + num = 0; + ref QuestSequence reference199 = ref span268[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -324060,19 +393570,23 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045649u, new Vector3(-205.95105f, -3.1999998f, -11.490112f), 819); + Span span269 = CollectionsMarshal.AsSpan(list269); + num3 = 0; + span269[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045649u, new Vector3(-205.95105f, -3.1999998f, -11.490112f), 819); obj183.Steps = list269; reference199 = obj183; - ref QuestSequence reference200 = ref span117[1]; + num++; + ref QuestSequence reference200 = ref span268[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - Span span118 = CollectionsMarshal.AsSpan(list270); - span118[0] = new QuestStep(EInteractionType.Interact, 1033863u, new Vector3(118.02844f, 14.649026f, 7.156433f), 819) + num3 = 2; + List list270 = new List(num3); + CollectionsMarshal.SetCount(list270, num3); + Span span270 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span270[num2] = new QuestStep(EInteractionType.Interact, 1033863u, new Vector3(118.02844f, 14.649026f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -324081,10 +393595,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - span118[1] = new QuestStep(EInteractionType.Interact, 1033888u, new Vector3(1.3580322f, 0f, -5.081299f), 844); + num2++; + span270[num2] = new QuestStep(EInteractionType.Interact, 1033888u, new Vector3(1.3580322f, 0f, -5.081299f), 844); obj184.Steps = list270; reference200 = obj184; - ref QuestSequence reference201 = ref span117[2]; + num++; + ref QuestSequence reference201 = ref span268[num]; QuestSequence obj185 = new QuestSequence { Sequence = 2 @@ -324092,7 +393608,9 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) + Span span271 = CollectionsMarshal.AsSpan(list271); + num3 = 0; + span271[num3] = new QuestStep(EInteractionType.Interact, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -324103,22 +393621,26 @@ public static class AssemblyQuestLoader }; obj185.Steps = list271; reference201 = obj185; - ref QuestSequence reference202 = ref span117[3]; + num++; + ref QuestSequence reference202 = ref span268[num]; QuestSequence obj186 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.Interact, 1045652u, new Vector3(-109.91083f, 52.705315f, 401.26636f), 959) + num3 = 1; + List list272 = new List(num3); + CollectionsMarshal.SetCount(list272, num3); + Span span272 = CollectionsMarshal.AsSpan(list272); + num2 = 0; + span272[num2] = new QuestStep(EInteractionType.Interact, 1045652u, new Vector3(-109.91083f, 52.705315f, 401.26636f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; obj186.Steps = list272; reference202 = obj186; - ref QuestSequence reference203 = ref span117[4]; + num++; + ref QuestSequence reference203 = ref span268[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue @@ -324126,7 +393648,9 @@ public static class AssemblyQuestLoader num2 = 1; List list273 = new List(num2); CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045658u, new Vector3(40.634766f, 56.721893f, 465.7815f), 1162); + Span span273 = CollectionsMarshal.AsSpan(list273); + num3 = 0; + span273[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045658u, new Vector3(40.634766f, 56.721893f, 465.7815f), 1162); obj187.Steps = list273; reference203 = obj187; questRoot35.QuestSequence = list268; @@ -324136,27 +393660,33 @@ public static class AssemblyQuestLoader num = 1; List list274 = new List(num); CollectionsMarshal.SetCount(list274, num); - CollectionsMarshal.AsSpan(list274)[0] = "liza"; + Span span274 = CollectionsMarshal.AsSpan(list274); + index = 0; + span274[index] = "liza"; questRoot36.Author = list274; - num = 8; - List list275 = new List(num); - CollectionsMarshal.SetCount(list275, num); - Span span119 = CollectionsMarshal.AsSpan(list275); - ref QuestSequence reference204 = ref span119[0]; + index = 8; + List list275 = new List(index); + CollectionsMarshal.SetCount(list275, index); + Span span275 = CollectionsMarshal.AsSpan(list275); + num = 0; + ref QuestSequence reference204 = ref span275[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045662u, new Vector3(32.913696f, 56.682667f, 468.162f), 1162) + num3 = 1; + List list276 = new List(num3); + CollectionsMarshal.SetCount(list276, num3); + Span span276 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + span276[num2] = new QuestStep(EInteractionType.AcceptQuest, 1045662u, new Vector3(32.913696f, 56.682667f, 468.162f), 1162) { StopDistance = 6f }; obj188.Steps = list276; reference204 = obj188; - ref QuestSequence reference205 = ref span119[1]; + num++; + ref QuestSequence reference205 = ref span275[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 @@ -324164,7 +393694,9 @@ public static class AssemblyQuestLoader num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.Duty, null, null, 1162) + Span span277 = CollectionsMarshal.AsSpan(list277); + num3 = 0; + span277[num3] = new QuestStep(EInteractionType.Duty, null, null, 1162) { DutyOptions = new DutyOptions { @@ -324174,24 +393706,30 @@ public static class AssemblyQuestLoader }; obj189.Steps = list277; reference205 = obj189; - span119[2] = new QuestSequence + num++; + span275[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference206 = ref span119[3]; + num++; + ref QuestSequence reference206 = ref span275[num]; QuestSequence obj190 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - ref QuestStep reference207 = ref CollectionsMarshal.AsSpan(list278)[0]; - QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1045667u, new Vector3(-374.19702f, -567.3385f, -440.63483f), 1184); num3 = 1; - List list279 = new List(num3); - CollectionsMarshal.SetCount(list279, num3); - CollectionsMarshal.AsSpan(list279)[0] = new DialogueChoice + List list278 = new List(num3); + CollectionsMarshal.SetCount(list278, num3); + Span span278 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + ref QuestStep reference207 = ref span278[num2]; + QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1045667u, new Vector3(-374.19702f, -567.3385f, -440.63483f), 1184); + num4 = 1; + List list279 = new List(num4); + CollectionsMarshal.SetCount(list279, num4); + Span span279 = CollectionsMarshal.AsSpan(list279); + num5 = 0; + span279[num5] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKML105_04748_SYSTEM_000_406") @@ -324200,11 +393738,13 @@ public static class AssemblyQuestLoader reference207 = questStep18; obj190.Steps = list278; reference206 = obj190; - span119[4] = new QuestSequence + num++; + span275[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference208 = ref span119[5]; + num++; + ref QuestSequence reference208 = ref span275[num]; QuestSequence obj191 = new QuestSequence { Sequence = 5 @@ -324212,7 +393752,9 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Duty, null, null, 1181) + Span span280 = CollectionsMarshal.AsSpan(list280); + num3 = 0; + span280[num3] = new QuestStep(EInteractionType.Duty, null, null, 1181) { DutyOptions = new DutyOptions { @@ -324221,19 +393763,23 @@ public static class AssemblyQuestLoader }; obj191.Steps = list280; reference208 = obj191; - span119[6] = new QuestSequence + num++; + span275[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference209 = ref span119[7]; + num++; + ref QuestSequence reference209 = ref span275[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045671u, new Vector3(27.237305f, 56.635868f, 480.3081f), 1162); + num3 = 1; + List list281 = new List(num3); + CollectionsMarshal.SetCount(list281, num3); + Span span281 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span281[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045671u, new Vector3(27.237305f, 56.635868f, 480.3081f), 1162); obj192.Steps = list281; reference209 = obj192; questRoot36.QuestSequence = list275; @@ -324243,13 +393789,16 @@ public static class AssemblyQuestLoader num = 1; List list282 = new List(num); CollectionsMarshal.SetCount(list282, num); - CollectionsMarshal.AsSpan(list282)[0] = "liza"; + Span span282 = CollectionsMarshal.AsSpan(list282); + index = 0; + span282[index] = "liza"; questRoot37.Author = list282; - num = 4; - List list283 = new List(num); - CollectionsMarshal.SetCount(list283, num); - Span span120 = CollectionsMarshal.AsSpan(list283); - ref QuestSequence reference210 = ref span120[0]; + index = 4; + List list283 = new List(index); + CollectionsMarshal.SetCount(list283, index); + Span span283 = CollectionsMarshal.AsSpan(list283); + num = 0; + ref QuestSequence reference210 = ref span283[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -324257,24 +393806,30 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045674u, new Vector3(45.853394f, 56.66061f, 467.39905f), 1162) + Span span284 = CollectionsMarshal.AsSpan(list284); + num3 = 0; + span284[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045674u, new Vector3(45.853394f, 56.66061f, 467.39905f), 1162) { StopDistance = 15f }; obj193.Steps = list284; reference210 = obj193; - ref QuestSequence reference211 = ref span120[1]; + num++; + ref QuestSequence reference211 = ref span283[num]; QuestSequence obj194 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 1045676u, new Vector3(-130.99878f, 54.110245f, 424.73486f), 959); + num3 = 1; + List list285 = new List(num3); + CollectionsMarshal.SetCount(list285, num3); + Span span285 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span285[num2] = new QuestStep(EInteractionType.Interact, 1045676u, new Vector3(-130.99878f, 54.110245f, 424.73486f), 959); obj194.Steps = list285; reference211 = obj194; - ref QuestSequence reference212 = ref span120[2]; + num++; + ref QuestSequence reference212 = ref span283[num]; QuestSequence obj195 = new QuestSequence { Sequence = 2 @@ -324282,21 +393837,26 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1042201u, new Vector3(536.2782f, -36.65f, -191.51605f), 958) + Span span286 = CollectionsMarshal.AsSpan(list286); + num3 = 0; + span286[num3] = new QuestStep(EInteractionType.Interact, 1042201u, new Vector3(536.2782f, -36.65f, -191.51605f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; obj195.Steps = list286; reference212 = obj195; - ref QuestSequence reference213 = ref span120[3]; + num++; + ref QuestSequence reference213 = ref span283[num]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037106u, new Vector3(4.0131226f, 41.530136f, -164.41602f), 962) + num3 = 1; + List list287 = new List(num3); + CollectionsMarshal.SetCount(list287, num3); + Span span287 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + span287[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037106u, new Vector3(4.0131226f, 41.530136f, -164.41602f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -324318,13 +393878,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 7; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 7; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -324332,21 +393895,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045681u, new Vector3(5.8136597f, 41.530136f, -165.27051f), 962) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045681u, new Vector3(5.8136597f, 41.530136f, -165.27051f), 962) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -324359,7 +393927,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKML107_04750_SYSTEM_000_101") @@ -324368,7 +393938,8 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -324376,24 +393947,30 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1045684u, new Vector3(-0.96136475f, 0f, -3.3417358f), 844); + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.Interact, 1045684u, new Vector3(-0.96136475f, 0f, -3.3417358f), 844); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1045684u, new Vector3(-0.96136475f, 0f, -3.3417358f), 844) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.Interact, 1045684u, new Vector3(-0.96136475f, 0f, -3.3417358f), 844) { StopDistance = 5f }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -324401,7 +393978,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1039649u, new Vector3(-336.53772f, 55f, -69.47443f), 963) + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.Interact, 1039649u, new Vector3(-336.53772f, 55f, -69.47443f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -324412,18 +393991,22 @@ public static class AssemblyQuestLoader }; obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[5]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1045688u, new Vector3(-2.456726f, 3.0299988f, -212.84814f), 963); + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.Interact, 1045688u, new Vector3(-2.456726f, 3.0299988f, -212.84814f), 963); obj7.Steps = list9; reference7 = obj7; - ref QuestSequence reference8 = ref span[6]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue @@ -324431,7 +394014,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) { AethernetShortcut = new AethernetShortcut { @@ -324448,24 +394033,30 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "liza"; + Span span11 = CollectionsMarshal.AsSpan(list11); + index = 0; + span11[index] = "liza"; questRoot2.Author = list11; - num = 3; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span2 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference9 = ref span2[0]; + index = 3; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + Span span12 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference9 = ref span12[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span2[1]; + num++; + ref QuestSequence reference10 = ref span12[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 @@ -324473,7 +394064,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -324485,15 +394078,18 @@ public static class AssemblyQuestLoader }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span2[2]; + num++; + ref QuestSequence reference11 = ref span12[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045691u, new Vector3(-257.0993f, 19.165915f, -44.327515f), 962) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045691u, new Vector3(-257.0993f, 19.165915f, -44.327515f), 962) { AethernetShortcut = new AethernetShortcut { @@ -324510,13 +394106,16 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + Span span16 = CollectionsMarshal.AsSpan(list16); + index = 0; + span16[index] = "liza"; questRoot3.Author = list16; - num = 6; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span3 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span3[0]; + index = 6; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + Span span17 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span17[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -324524,18 +394123,23 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045692u, new Vector3(-256.67206f, 19.26994f, -46.28064f), 962); + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045692u, new Vector3(-256.67206f, 19.26994f, -46.28064f), 962); obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span3[1]; + num++; + ref QuestSequence reference13 = ref span17[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + ref QuestStep reference14 = ref span19[num2]; QuestStep obj14 = new QuestStep(EInteractionType.SinglePlayerDuty, 1045695u, new Vector3(135.57642f, -16.147f, 243.42712f), 962) { AethernetShortcut = new AethernetShortcut @@ -324545,22 +394149,26 @@ public static class AssemblyQuestLoader } }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 2; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span4 = CollectionsMarshal.AsSpan(list20); - span4[0] = "(phase 1) AI walks (a bit) towards enemies, but doesn't target them and doesn't attack"; - span4[1] = "(phase 1) AI doesn't move close enough to the tattered plumage; needs to be re-tested"; + index3 = 2; + List list20 = new List(index3); + CollectionsMarshal.SetCount(list20, index3); + Span span20 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + span20[num3] = "(phase 1) AI walks (a bit) towards enemies, but doesn't target them and doesn't attack"; + num3++; + span20[num3] = "(phase 1) AI doesn't move close enough to the tattered plumage; needs to be re-tested"; singlePlayerDutyOptions.Notes = list20; obj14.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference14 = obj14; obj13.Steps = list19; reference13 = obj13; - span3[2] = new QuestSequence + num++; + span17[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference15 = ref span3[3]; + num++; + ref QuestSequence reference15 = ref span17[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 @@ -324568,24 +394176,30 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 1045696u, new Vector3(135.729f, -16.146997f, 241.50452f), 962); + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span21[index2] = new QuestStep(EInteractionType.Interact, 1045696u, new Vector3(135.729f, -16.146997f, 241.50452f), 962); obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference16 = ref span3[4]; + num++; + ref QuestSequence reference16 = ref span17[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.Interact, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962) { StopDistance = 7f }; obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span3[5]; + num++; + ref QuestSequence reference17 = ref span17[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -324593,7 +394207,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045699u, new Vector3(-60.41046f, -15.127002f, 139.42163f), 962) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.CompleteQuest, 1045699u, new Vector3(-60.41046f, -15.127002f, 139.42163f), 962) { StopDistance = 5f }; @@ -324606,21 +394222,26 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "liza"; + Span span24 = CollectionsMarshal.AsSpan(list24); + index = 0; + span24[index] = "liza"; questRoot4.Author = list24; - num = 7; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span5 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference18 = ref span5[0]; + index = 7; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + Span span25 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference18 = ref span25[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list26)[0]; + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + ref QuestStep reference19 = ref span26[num2]; QuestStep obj19 = new QuestStep(EInteractionType.AcceptQuest, 1045700u, new Vector3(-58.54895f, -15.127001f, 139.45215f), 962) { StopDistance = 5f @@ -324628,7 +394249,9 @@ public static class AssemblyQuestLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - CollectionsMarshal.AsSpan(list27)[0] = new DialogueChoice + Span span27 = CollectionsMarshal.AsSpan(list27); + index3 = 0; + span27[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMM103_04753_Q1_000_000"), @@ -324638,7 +394261,8 @@ public static class AssemblyQuestLoader reference19 = obj19; obj18.Steps = list26; reference18 = obj18; - ref QuestSequence reference20 = ref span5[1]; + num++; + ref QuestSequence reference20 = ref span25[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -324646,8 +394270,9 @@ public static class AssemblyQuestLoader num2 = 4; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span6 = CollectionsMarshal.AsSpan(list28); - ref QuestStep reference21 = ref span6[0]; + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + ref QuestStep reference21 = ref span28[index2]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 2013419u, new Vector3(-308.49164f, 20.248657f, 48.142212f), 962) { AethernetShortcut = new AethernetShortcut @@ -324656,74 +394281,105 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanStudium } }; - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span7 = CollectionsMarshal.AsSpan(list29); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span29 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = null; + num3++; + span29[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list29; reference21 = obj21; - ref QuestStep reference22 = ref span6[1]; + index2++; + ref QuestStep reference22 = ref span28[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2013418u, new Vector3(-396.23108f, 20.2182f, 103.28821f), 962); num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span8 = CollectionsMarshal.AsSpan(list30); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span30 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = null; + index3++; + span30[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list30; reference22 = questStep; - ref QuestStep reference23 = ref span6[2]; + index2++; + ref QuestStep reference23 = ref span28[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2013417u, new Vector3(-404.25726f, 20.248657f, 59.00659f), 962); - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span9 = CollectionsMarshal.AsSpan(list31); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list31 = new List(index3); + CollectionsMarshal.SetCount(list31, index3); + Span span31 = CollectionsMarshal.AsSpan(list31); + num3 = 0; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = null; + num3++; + span31[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list31; reference23 = questStep2; - ref QuestStep reference24 = ref span6[3]; + index2++; + ref QuestStep reference24 = ref span28[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2013416u, new Vector3(-358.38867f, 20.309753f, 20.523315f), 962); num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span10 = CollectionsMarshal.AsSpan(list32); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span32 = CollectionsMarshal.AsSpan(list32); + index3 = 0; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = null; + index3++; + span32[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list32; reference24 = questStep3; obj20.Steps = list28; reference20 = obj20; - ref QuestSequence reference25 = ref span5[2]; + num++; + ref QuestSequence reference25 = ref span25[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1045701u, new Vector3(-343.8316f, 18.999998f, 15.152161f), 962); + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.Interact, 1045701u, new Vector3(-343.8316f, 18.999998f, 15.152161f), 962); obj22.Steps = list33; reference25 = obj22; - ref QuestSequence reference26 = ref span5[3]; + num++; + ref QuestSequence reference26 = ref span25[num]; QuestSequence obj23 = new QuestSequence { Sequence = 3 @@ -324731,7 +394387,9 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1045702u, new Vector3(-131.15137f, 5.64997f, 44.663086f), 962) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.Interact, 1045702u, new Vector3(-131.15137f, 5.64997f, 44.663086f), 962) { AethernetShortcut = new AethernetShortcut { @@ -324741,20 +394399,25 @@ public static class AssemblyQuestLoader }; obj23.Steps = list34; reference26 = obj23; - ref QuestSequence reference27 = ref span5[4]; + num++; + ref QuestSequence reference27 = ref span25[num]; QuestSequence obj24 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list35)[0]; + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + ref QuestStep reference28 = ref span35[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962); - num3 = 1; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = new DialogueChoice + index3 = 1; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + Span span36 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span36[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMM103_04753_SYSTEM_000_302") @@ -324763,7 +394426,8 @@ public static class AssemblyQuestLoader reference28 = questStep4; obj24.Steps = list35; reference27 = obj24; - ref QuestSequence reference29 = ref span5[5]; + num++; + ref QuestSequence reference29 = ref span25[num]; QuestSequence obj25 = new QuestSequence { Sequence = 5 @@ -324771,23 +394435,28 @@ public static class AssemblyQuestLoader num2 = 2; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span11 = CollectionsMarshal.AsSpan(list37); - span11[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.5617f, 5.0504f, 4.55803f), 962) + Span span37 = CollectionsMarshal.AsSpan(list37); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.5617f, 5.0504f, 4.55803f), 962) { TargetTerritoryId = (ushort)987 }; - span11[1] = new QuestStep(EInteractionType.Interact, 2013420u, new Vector3(-0.10687256f, -0.015319824f, -7.614319f), 987); + index2++; + span37[index2] = new QuestStep(EInteractionType.Interact, 2013420u, new Vector3(-0.10687256f, -0.015319824f, -7.614319f), 987); obj25.Steps = list37; reference29 = obj25; - ref QuestSequence reference30 = ref span5[6]; + num++; + ref QuestSequence reference30 = ref span25[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 5f }; @@ -324800,13 +394469,16 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = "liza"; + Span span39 = CollectionsMarshal.AsSpan(list39); + index = 0; + span39[index] = "liza"; questRoot5.Author = list39; - num = 6; - List list40 = new List(num); - CollectionsMarshal.SetCount(list40, num); - Span span12 = CollectionsMarshal.AsSpan(list40); - ref QuestSequence reference31 = ref span12[0]; + index = 6; + List list40 = new List(index); + CollectionsMarshal.SetCount(list40, index); + Span span40 = CollectionsMarshal.AsSpan(list40); + num = 0; + ref QuestSequence reference31 = ref span40[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -324814,21 +394486,26 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963) + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963) { StopDistance = 5f }; obj27.Steps = list41; reference31 = obj27; - ref QuestSequence reference32 = ref span12[1]; + num++; + ref QuestSequence reference32 = ref span40[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1044769u, new Vector3(145.73889f, 27.059998f, 36.819946f), 963) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.Interact, 1044769u, new Vector3(145.73889f, 27.059998f, 36.819946f), 963) { AethernetShortcut = new AethernetShortcut { @@ -324838,7 +394515,8 @@ public static class AssemblyQuestLoader }; obj28.Steps = list42; reference32 = obj28; - ref QuestSequence reference33 = ref span12[2]; + num++; + ref QuestSequence reference33 = ref span40[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -324846,7 +394524,9 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list43)[0]; + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + ref QuestStep reference34 = ref span43[index2]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, null, new Vector3(31.966597f, 5.8818626f, 580.4358f), 957) { Fly = true, @@ -324856,7 +394536,9 @@ public static class AssemblyQuestLoader num3 = 1; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - CollectionsMarshal.AsSpan(list44)[0] = new ComplexCombatData + Span span44 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span44[index3] = new ComplexCombatData { DataId = 13527u, MinimumKillCount = 1u, @@ -324867,22 +394549,26 @@ public static class AssemblyQuestLoader reference34 = obj30; obj29.Steps = list43; reference33 = obj29; - ref QuestSequence reference35 = ref span12[3]; + num++; + ref QuestSequence reference35 = ref span40[num]; QuestSequence obj31 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1044774u, new Vector3(-483.57367f, 1.580146f, -24.551819f), 957) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span45[num2] = new QuestStep(EInteractionType.Interact, 1044774u, new Vector3(-483.57367f, 1.580146f, -24.551819f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj31.Steps = list45; reference35 = obj31; - ref QuestSequence reference36 = ref span12[4]; + num++; + ref QuestSequence reference36 = ref span40[num]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -324890,21 +394576,26 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 2013336u, new Vector3(-589.50183f, 2.2735596f, -285.42004f), 957) + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.Interact, 2013336u, new Vector3(-589.50183f, 2.2735596f, -285.42004f), 957) { Fly = true }; obj32.Steps = list46; reference36 = obj32; - ref QuestSequence reference37 = ref span12[5]; + num++; + ref QuestSequence reference37 = ref span40[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044772u, new Vector3(147.35632f, 27.059998f, 32.700073f), 963) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044772u, new Vector3(147.35632f, 27.059998f, 32.700073f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -324923,13 +394614,16 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + Span span48 = CollectionsMarshal.AsSpan(list48); + index = 0; + span48[index] = "liza"; questRoot6.Author = list48; - num = 8; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span13 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference38 = ref span13[0]; + index = 8; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + Span span49 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference38 = ref span49[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -324937,7 +394631,9 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044783u, new Vector3(-313.4051f, 93.68002f, -316.7926f), 957) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044783u, new Vector3(-313.4051f, 93.68002f, -316.7926f), 957) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork, @@ -324951,23 +394647,28 @@ public static class AssemblyQuestLoader }; obj34.Steps = list50; reference38 = obj34; - ref QuestSequence reference39 = ref span13[1]; + num++; + ref QuestSequence reference39 = ref span49[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list51)[0]; + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + ref QuestStep reference40 = ref span51[num2]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 1044788u, new Vector3(-42.191284f, 2.4950514f, -36.14868f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan }; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice + index3 = 1; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span52[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB842_04755_Q2_000_000"), @@ -324977,7 +394678,8 @@ public static class AssemblyQuestLoader reference40 = obj36; obj35.Steps = list51; reference39 = obj35; - ref QuestSequence reference41 = ref span13[2]; + num++; + ref QuestSequence reference41 = ref span49[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 @@ -324985,8 +394687,9 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span14 = CollectionsMarshal.AsSpan(list53); - span14[0] = new QuestStep(EInteractionType.Interact, 1039544u, new Vector3(-29.617859f, 179.71387f, -826.2302f), 956) + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.Interact, 1039544u, new Vector3(-29.617859f, 179.71387f, -826.2302f), 956) { TargetTerritoryId = (ushort)962, AethernetShortcut = new AethernetShortcut @@ -324995,24 +394698,29 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanHallOfArtifice } }; - span14[1] = new QuestStep(EInteractionType.Interact, 1044794u, new Vector3(-63.09613f, 18f, -297.59674f), 962); + index2++; + span53[index2] = new QuestStep(EInteractionType.Interact, 1044794u, new Vector3(-63.09613f, 18f, -297.59674f), 962); obj37.Steps = list53; reference41 = obj37; - ref QuestSequence reference42 = ref span13[3]; + num++; + ref QuestSequence reference42 = ref span49[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1044799u, new Vector3(408.49915f, 170.17088f, -431.7235f), 956) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.Interact, 1044799u, new Vector3(408.49915f, 170.17088f, -431.7235f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; obj38.Steps = list54; reference42 = obj38; - ref QuestSequence reference43 = ref span13[4]; + num++; + ref QuestSequence reference43 = ref span49[num]; QuestSequence obj39 = new QuestSequence { Sequence = 4 @@ -325020,8 +394728,9 @@ public static class AssemblyQuestLoader num2 = 3; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span15 = CollectionsMarshal.AsSpan(list55); - ref QuestStep reference44 = ref span15[0]; + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + ref QuestStep reference44 = ref span55[index2]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 1044805u, new Vector3(435.26355f, 65.16199f, -134.20312f), 956) { Fly = true @@ -325029,30 +394738,44 @@ public static class AssemblyQuestLoader num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span16 = CollectionsMarshal.AsSpan(list56); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span56 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = null; + index3++; + span56[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj40.CompletionQuestVariablesFlags = list56; reference44 = obj40; - ref QuestStep reference45 = ref span15[1]; + index2++; + ref QuestStep reference45 = ref span55[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1044806u, new Vector3(414.87744f, 65.16199f, -117.784424f), 956); - num3 = 6; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - Span span17 = CollectionsMarshal.AsSpan(list57); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + Span span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list57; reference45 = questStep5; - ref QuestStep reference46 = ref span15[2]; + index2++; + ref QuestStep reference46 = ref span55[index2]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 1044807u, new Vector3(494.40747f, 65.16199f, -82.993835f), 956) { Fly = true @@ -325060,29 +394783,39 @@ public static class AssemblyQuestLoader num3 = 6; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span18 = CollectionsMarshal.AsSpan(list58); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span58 = CollectionsMarshal.AsSpan(list58); + index3 = 0; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj41.CompletionQuestVariablesFlags = list58; reference46 = obj41; obj39.Steps = list55; reference43 = obj39; - ref QuestSequence reference47 = ref span13[5]; + num++; + ref QuestSequence reference47 = ref span49[num]; QuestSequence obj42 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1044809u, new Vector3(470.90857f, 65.16199f, -85.61841f), 956); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.Interact, 1044809u, new Vector3(470.90857f, 65.16199f, -85.61841f), 956); obj42.Steps = list59; reference47 = obj42; - ref QuestSequence reference48 = ref span13[6]; + num++; + ref QuestSequence reference48 = ref span49[num]; QuestSequence obj43 = new QuestSequence { Sequence = 6 @@ -325090,21 +394823,26 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1044765u, new Vector3(9.567322f, -6.762952E-05f, 17.715698f), 963) + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.Interact, 1044765u, new Vector3(9.567322f, -6.762952E-05f, 17.715698f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; obj43.Steps = list60; reference48 = obj43; - ref QuestSequence reference49 = ref span13[7]; + num++; + ref QuestSequence reference49 = ref span49[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963) { NextQuestId = new QuestId(4799) }; @@ -325117,13 +394855,16 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "liza"; + Span span62 = CollectionsMarshal.AsSpan(list62); + index = 0; + span62[index] = "liza"; questRoot7.Author = list62; - num = 4; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span19 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference50 = ref span19[0]; + index = 4; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + Span span63 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference50 = ref span63[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -325131,7 +394872,9 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043504u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043504u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, SkipConditions = new SkipConditions @@ -325144,31 +394887,37 @@ public static class AssemblyQuestLoader }; obj45.Steps = list64; reference50 = obj45; - ref QuestSequence reference51 = ref span19[1]; + num++; + ref QuestSequence reference51 = ref span63[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - Span span20 = CollectionsMarshal.AsSpan(list65); - span20[0] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) + index2 = 4; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span65[num2] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) { TargetTerritoryId = (ushort)956 }; - span20[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + num2++; + span65[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true }; - span20[2] = new QuestStep(EInteractionType.Interact, 2013029u, new Vector3(-238.97156f, -220.41656f, 340.6272f), 956) + num2++; + span65[num2] = new QuestStep(EInteractionType.Interact, 2013029u, new Vector3(-238.97156f, -220.41656f, 340.6272f), 956) { TargetTerritoryId = (ushort)1079 }; - span20[3] = new QuestStep(EInteractionType.Interact, 2013338u, new Vector3(18.753235f, 197.52808f, 519.06604f), 1079); + num2++; + span65[num2] = new QuestStep(EInteractionType.Interact, 2013338u, new Vector3(18.753235f, 197.52808f, 519.06604f), 1079); obj46.Steps = list65; reference51 = obj46; - ref QuestSequence reference52 = ref span19[2]; + num++; + ref QuestSequence reference52 = ref span63[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 @@ -325176,7 +394925,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Duty, null, null, 1079) + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span66[index2] = new QuestStep(EInteractionType.Duty, null, null, 1079) { DutyOptions = new DutyOptions { @@ -325185,15 +394936,18 @@ public static class AssemblyQuestLoader }; obj47.Steps = list66; reference52 = obj47; - ref QuestSequence reference53 = ref span19[3]; + num++; + ref QuestSequence reference53 = ref span63[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045330u, new Vector3(19.272095f, 197.41248f, 503.59338f), 1079) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045330u, new Vector3(19.272095f, 197.41248f, 503.59338f), 1079) { StopDistance = 5f, NextQuestId = new QuestId(4757) @@ -325207,13 +394961,16 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "liza"; + Span span68 = CollectionsMarshal.AsSpan(list68); + index = 0; + span68[index] = "liza"; questRoot8.Author = list68; - num = 5; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span21 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference54 = ref span21[0]; + index = 5; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + Span span69 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference54 = ref span69[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -325221,28 +394978,35 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045335u, new Vector3(18.20398f, 197.41248f, 504.75305f), 1079) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045335u, new Vector3(18.20398f, 197.41248f, 504.75305f), 1079) { StopDistance = 4f }; obj49.Steps = list70; reference54 = obj49; - ref QuestSequence reference55 = ref span21[1]; + num++; + ref QuestSequence reference55 = ref span69[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1045338u, new Vector3(32.181274f, 197.55081f, 506.98096f), 1079); + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.Interact, 1045338u, new Vector3(32.181274f, 197.55081f, 506.98096f), 1079); obj50.Steps = list71; reference55 = obj50; - span21[2] = new QuestSequence + num++; + span69[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference56 = ref span21[3]; + num++; + ref QuestSequence reference56 = ref span69[num]; QuestSequence obj51 = new QuestSequence { Sequence = 3 @@ -325250,7 +395014,9 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Duty, null, null, 1079) + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span72[index2] = new QuestStep(EInteractionType.Duty, null, null, 1079) { DutyOptions = new DutyOptions { @@ -325259,15 +395025,18 @@ public static class AssemblyQuestLoader }; obj51.Steps = list72; reference56 = obj51; - ref QuestSequence reference57 = ref span21[4]; + num++; + ref QuestSequence reference57 = ref span69[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045347u, new Vector3(98.98523f, 0f, 103.74609f), 1158) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045347u, new Vector3(98.98523f, 0f, 103.74609f), 1158) { StopDistance = 4f, NextQuestId = new QuestId(4758) @@ -325281,13 +395050,16 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - CollectionsMarshal.AsSpan(list74)[0] = "liza"; + Span span74 = CollectionsMarshal.AsSpan(list74); + index = 0; + span74[index] = "liza"; questRoot9.Author = list74; - num = 3; - List list75 = new List(num); - CollectionsMarshal.SetCount(list75, num); - Span span22 = CollectionsMarshal.AsSpan(list75); - ref QuestSequence reference58 = ref span22[0]; + index = 3; + List list75 = new List(index); + CollectionsMarshal.SetCount(list75, index); + Span span75 = CollectionsMarshal.AsSpan(list75); + num = 0; + ref QuestSequence reference58 = ref span75[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -325295,21 +395067,26 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045347u, new Vector3(98.98523f, 0f, 103.74609f), 1158) + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045347u, new Vector3(98.98523f, 0f, 103.74609f), 1158) { StopDistance = 4f }; obj53.Steps = list76; reference58 = obj53; - ref QuestSequence reference59 = ref span22[1]; + num++; + ref QuestSequence reference59 = ref span75[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Duty, null, null, 1158) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.Duty, null, null, 1158) { DutyOptions = new DutyOptions { @@ -325318,7 +395095,8 @@ public static class AssemblyQuestLoader }; obj54.Steps = list77; reference59 = obj54; - ref QuestSequence reference60 = ref span22[2]; + num++; + ref QuestSequence reference60 = ref span75[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -325326,7 +395104,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045348u, new Vector3(99.90076f, 0f, 104.478516f), 1158) + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.CompleteQuest, 1045348u, new Vector3(99.90076f, 0f, 104.478516f), 1158) { NextQuestId = new QuestId(4759) }; @@ -325339,24 +395119,30 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + Span span79 = CollectionsMarshal.AsSpan(list79); + index = 0; + span79[index] = "liza"; questRoot10.Author = list79; - num = 3; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span23 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference61 = ref span23[0]; + index = 3; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + Span span80 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference61 = ref span80[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045383u, new Vector3(98.10022f, 0f, 103.837524f), 1158); + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.AcceptQuest, 1045383u, new Vector3(98.10022f, 0f, 103.837524f), 1158); obj56.Steps = list81; reference61 = obj56; - ref QuestSequence reference62 = ref span23[1]; + num++; + ref QuestSequence reference62 = ref span80[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 @@ -325364,7 +395150,9 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Duty, null, null, 1158) + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.Duty, null, null, 1158) { DutyOptions = new DutyOptions { @@ -325373,15 +395161,18 @@ public static class AssemblyQuestLoader }; obj57.Steps = list82; reference62 = obj57; - ref QuestSequence reference63 = ref span23[2]; + num++; + ref QuestSequence reference63 = ref span80[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045357u, new Vector3(28.610596f, 197.55505f, 509.72766f), 1079) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045357u, new Vector3(28.610596f, 197.55505f, 509.72766f), 1079) { StopDistance = 5f, NextQuestId = new QuestId(4760) @@ -325395,13 +395186,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "liza"; + Span span84 = CollectionsMarshal.AsSpan(list84); + index = 0; + span84[index] = "liza"; questRoot11.Author = list84; - num = 5; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span24 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference64 = ref span24[0]; + index = 5; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference64 = ref span85[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -325409,38 +395203,46 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045356u, new Vector3(28.42749f, 197.55338f, 508.23218f), 1079) + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045356u, new Vector3(28.42749f, 197.55338f, 508.23218f), 1079) { StopDistance = 4f }; obj59.Steps = list86; reference64 = obj59; - ref QuestSequence reference65 = ref span24[1]; + num++; + ref QuestSequence reference65 = ref span85[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span25 = CollectionsMarshal.AsSpan(list87); - span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(807.9048f, 152.2857f, -243.60707f), 961) + index2 = 4; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(807.9048f, 152.2857f, -243.60707f), 961) { Fly = true, AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; - span25[1] = new QuestStep(EInteractionType.Interact, 2012293u, new Vector3(809.9336f, 151.81189f, -243.42719f), 961) + num2++; + span87[num2] = new QuestStep(EInteractionType.Interact, 2012293u, new Vector3(809.9336f, 151.81189f, -243.42719f), 961) { TargetTerritoryId = (ushort)1025 }; - span25[2] = new QuestStep(EInteractionType.Interact, 2013031u, new Vector3(99.96179f, 8.8349f, -71.03082f), 1025) + num2++; + span87[num2] = new QuestStep(EInteractionType.Interact, 2013031u, new Vector3(99.96179f, 8.8349f, -71.03082f), 1025) { TargetTerritoryId = (ushort)1093 }; - span25[3] = new QuestStep(EInteractionType.Interact, 1045364u, new Vector3(96.36072f, -4.5494874E-13f, 85.43518f), 1093); + num2++; + span87[num2] = new QuestStep(EInteractionType.Interact, 1045364u, new Vector3(96.36072f, -4.5494874E-13f, 85.43518f), 1093); obj60.Steps = list87; reference65 = obj60; - ref QuestSequence reference66 = ref span24[2]; + num++; + ref QuestSequence reference66 = ref span85[num]; QuestSequence obj61 = new QuestSequence { Sequence = 2 @@ -325448,31 +395250,38 @@ public static class AssemblyQuestLoader num2 = 3; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span26 = CollectionsMarshal.AsSpan(list88); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; - span26[1] = new QuestStep(EInteractionType.Interact, 2013029u, new Vector3(-238.97156f, -220.41656f, 340.6272f), 956) + index2++; + span88[index2] = new QuestStep(EInteractionType.Interact, 2013029u, new Vector3(-238.97156f, -220.41656f, 340.6272f), 956) { TargetTerritoryId = (ushort)1079 }; - span26[2] = new QuestStep(EInteractionType.Interact, 1045371u, new Vector3(29.404175f, 197.55386f, 508.8424f), 1079); + index2++; + span88[index2] = new QuestStep(EInteractionType.Interact, 1045371u, new Vector3(29.404175f, 197.55386f, 508.8424f), 1079); obj61.Steps = list88; reference66 = obj61; - ref QuestSequence reference67 = ref span24[3]; + num++; + ref QuestSequence reference67 = ref span85[num]; QuestSequence obj62 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1045372u, new Vector3(28.030762f, 197.55408f, 508.87305f), 1079); + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.Interact, 1045372u, new Vector3(28.030762f, 197.55408f, 508.87305f), 1079); obj62.Steps = list89; reference67 = obj62; - ref QuestSequence reference68 = ref span24[4]; + num++; + ref QuestSequence reference68 = ref span85[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue @@ -325480,7 +395289,9 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045332u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.CompleteQuest, 1045332u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) { NextQuestId = new QuestId(5252) }; @@ -325493,21 +395304,26 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "liza"; + Span span91 = CollectionsMarshal.AsSpan(list91); + index = 0; + span91[index] = "liza"; questRoot12.Author = list91; - num = 5; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span27 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference69 = ref span27[0]; + index = 5; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + Span span92 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference69 = ref span92[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + index2 = 1; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + span93[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -325520,7 +395336,8 @@ public static class AssemblyQuestLoader }; obj64.Steps = list93; reference69 = obj64; - ref QuestSequence reference70 = ref span27[1]; + num++; + ref QuestSequence reference70 = ref span92[num]; QuestSequence obj65 = new QuestSequence { Sequence = 1 @@ -325528,19 +395345,23 @@ public static class AssemblyQuestLoader num2 = 2; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span28 = CollectionsMarshal.AsSpan(list94); - span28[0] = new QuestStep(EInteractionType.Interact, 1033637u, new Vector3(-533.4402f, 8.187748f, -46.341675f), 621) + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.Interact, 1033637u, new Vector3(-533.4402f, 8.187748f, -46.341675f), 621) { TargetTerritoryId = (ushort)919, Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; - ref QuestStep reference71 = ref span28[1]; + index2++; + ref QuestStep reference71 = ref span94[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); - num3 = 1; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice + index3 = 1; + List list95 = new List(index3); + CollectionsMarshal.SetCount(list95, index3); + Span span95 = CollectionsMarshal.AsSpan(list95); + num3 = 0; + span95[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKSA401_04761_Q2_000_000"), @@ -325550,15 +395371,18 @@ public static class AssemblyQuestLoader reference71 = questStep6; obj65.Steps = list94; reference70 = obj65; - ref QuestSequence reference72 = ref span27[2]; + num++; + ref QuestSequence reference72 = ref span92[num]; QuestSequence obj66 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - ref QuestStep reference73 = ref CollectionsMarshal.AsSpan(list96)[0]; + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + ref QuestStep reference73 = ref span96[num2]; QuestStep obj67 = new QuestStep(EInteractionType.Interact, 1045296u, new Vector3(-1.1750488f, 41.01997f, 30.289062f), 919) { StopDistance = 7f @@ -325566,7 +395390,9 @@ public static class AssemblyQuestLoader num3 = 1; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - CollectionsMarshal.AsSpan(list97)[0] = new DialogueChoice + Span span97 = CollectionsMarshal.AsSpan(list97); + index3 = 0; + span97[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKSA401_04761_Q5_000_000") @@ -325575,7 +395401,8 @@ public static class AssemblyQuestLoader reference73 = obj67; obj66.Steps = list96; reference72 = obj66; - ref QuestSequence reference74 = ref span27[3]; + num++; + ref QuestSequence reference74 = ref span92[num]; QuestSequence obj68 = new QuestSequence { Sequence = 3 @@ -325583,16 +395410,20 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - ref QuestStep reference75 = ref CollectionsMarshal.AsSpan(list98)[0]; + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + ref QuestStep reference75 = ref span98[index2]; QuestStep obj69 = new QuestStep(EInteractionType.Instruction, 1045299u, new Vector3(84.73328f, 0f, 106.46216f), 991) { StopDistance = 7f, Comment = "Really short sequence of the Christmas minigame" }; - num3 = 1; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - CollectionsMarshal.AsSpan(list99)[0] = new DialogueChoice + index3 = 1; + List list99 = new List(index3); + CollectionsMarshal.SetCount(list99, index3); + Span span99 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span99[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKSA401_04761_SYSTEM_100_076") @@ -325601,15 +395432,18 @@ public static class AssemblyQuestLoader reference75 = obj69; obj68.Steps = list98; reference74 = obj68; - ref QuestSequence reference76 = ref span27[4]; + num++; + ref QuestSequence reference76 = ref span92[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919) { StopDistance = 7f, NextQuestId = new QuestId(4762) @@ -325623,13 +395457,16 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "liza"; + Span span101 = CollectionsMarshal.AsSpan(list101); + index = 0; + span101[index] = "liza"; questRoot13.Author = list101; - num = 6; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span29 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference77 = ref span29[0]; + index = 6; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + Span span102 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference77 = ref span102[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -325637,7 +395474,9 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list103)[0]; + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + ref QuestStep reference78 = ref span103[index2]; QuestStep obj72 = new QuestStep(EInteractionType.AcceptQuest, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919) { StopDistance = 7f @@ -325645,7 +395484,9 @@ public static class AssemblyQuestLoader num3 = 1; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - CollectionsMarshal.AsSpan(list104)[0] = new DialogueChoice + Span span104 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span104[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKSA402_04762_Q1_000_000"), @@ -325655,18 +395496,22 @@ public static class AssemblyQuestLoader reference78 = obj72; obj71.Steps = list103; reference77 = obj71; - ref QuestSequence reference79 = ref span29[1]; + num++; + ref QuestSequence reference79 = ref span102[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1045301u, new Vector3(-36.636963f, 41f, 57.66382f), 919); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.Interact, 1045301u, new Vector3(-36.636963f, 41f, 57.66382f), 919); obj73.Steps = list105; reference79 = obj73; - ref QuestSequence reference80 = ref span29[2]; + num++; + ref QuestSequence reference80 = ref span102[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -325674,50 +395519,69 @@ public static class AssemblyQuestLoader num2 = 3; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span30 = CollectionsMarshal.AsSpan(list106); - ref QuestStep reference81 = ref span30[0]; + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + ref QuestStep reference81 = ref span106[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1045308u, new Vector3(-18.35669f, 40.999996f, -17.898865f), 919); - num3 = 6; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - Span span31 = CollectionsMarshal.AsSpan(list107); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + Span span107 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span107[num3] = null; + num3++; + span107[num3] = null; + num3++; + span107[num3] = null; + num3++; + span107[num3] = null; + num3++; + span107[num3] = null; + num3++; + span107[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list107; reference81 = questStep7; - span30[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-15.634434f, 41f, 13.581184f), 919); - ref QuestStep reference82 = ref span30[2]; + index2++; + span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-15.634434f, 41f, 13.581184f), 919); + index2++; + ref QuestStep reference82 = ref span106[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); num3 = 6; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - Span span32 = CollectionsMarshal.AsSpan(list108); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span108 = CollectionsMarshal.AsSpan(list108); + index3 = 0; + span108[index3] = null; + index3++; + span108[index3] = null; + index3++; + span108[index3] = null; + index3++; + span108[index3] = null; + index3++; + span108[index3] = null; + index3++; + span108[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list108; reference82 = questStep8; obj74.Steps = list106; reference80 = obj74; - ref QuestSequence reference83 = ref span29[3]; + num++; + ref QuestSequence reference83 = ref span102[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1045311u, new Vector3(57.78589f, 35f, 81.55945f), 919); + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.Interact, 1045311u, new Vector3(57.78589f, 35f, 81.55945f), 919); obj75.Steps = list109; reference83 = obj75; - ref QuestSequence reference84 = ref span29[4]; + num++; + ref QuestSequence reference84 = ref span102[num]; QuestSequence obj76 = new QuestSequence { Sequence = 4 @@ -325725,21 +395589,26 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1045614u, new Vector3(53.116577f, 34.999966f, 78.01941f), 919) + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.Interact, 1045614u, new Vector3(53.116577f, 34.999966f, 78.01941f), 919) { StopDistance = 7f }; obj76.Steps = list110; reference84 = obj76; - ref QuestSequence reference85 = ref span29[5]; + num++; + ref QuestSequence reference85 = ref span102[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, NextQuestId = new QuestId(4812) @@ -325753,13 +395622,16 @@ public static class AssemblyQuestLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - CollectionsMarshal.AsSpan(list112)[0] = "CryoTechnic"; + Span span112 = CollectionsMarshal.AsSpan(list112); + index = 0; + span112[index] = "CryoTechnic"; questRoot14.Author = list112; - num = 3; - List list113 = new List(num); - CollectionsMarshal.SetCount(list113, num); - Span span33 = CollectionsMarshal.AsSpan(list113); - ref QuestSequence reference86 = ref span33[0]; + index = 3; + List list113 = new List(index); + CollectionsMarshal.SetCount(list113, index); + Span span113 = CollectionsMarshal.AsSpan(list113); + num = 0; + ref QuestSequence reference86 = ref span113[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 @@ -325767,21 +395639,27 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); obj78.Steps = list114; reference86 = obj78; - ref QuestSequence reference87 = ref span33[1]; + num++; + ref QuestSequence reference87 = ref span113[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 2013383u, new Vector3(-332.38727f, -2.395752f, 14.969055f), 129); + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span115[num2] = new QuestStep(EInteractionType.Interact, 2013383u, new Vector3(-332.38727f, -2.395752f, 14.969055f), 129); obj79.Steps = list115; reference87 = obj79; - ref QuestSequence reference88 = ref span33[2]; + num++; + ref QuestSequence reference88 = ref span113[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue @@ -325789,7 +395667,9 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); obj80.Steps = list116; reference88 = obj80; questRoot14.QuestSequence = list113; @@ -325799,21 +395679,26 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "CryoTechnic"; + Span span117 = CollectionsMarshal.AsSpan(list117); + index = 0; + span117[index] = "CryoTechnic"; questRoot15.Author = list117; - num = 4; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span34 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference89 = ref span34[0]; + index = 4; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + Span span118 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference89 = ref span118[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span119[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -325824,7 +395709,8 @@ public static class AssemblyQuestLoader }; obj81.Steps = list119; reference89 = obj81; - ref QuestSequence reference90 = ref span34[1]; + num++; + ref QuestSequence reference90 = ref span118[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 @@ -325832,7 +395718,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 2013384u, new Vector3(-23.036152f, 1.510001f, -192.78279f), 963) + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.Interact, 2013384u, new Vector3(-23.036152f, 1.510001f, -192.78279f), 963) { AethernetShortcut = new AethernetShortcut { @@ -325842,15 +395730,18 @@ public static class AssemblyQuestLoader }; obj82.Steps = list120; reference90 = obj82; - ref QuestSequence reference91 = ref span34[2]; + num++; + ref QuestSequence reference91 = ref span118[num]; QuestSequence obj83 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) + index2 = 1; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span121[num2] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) { AethernetShortcut = new AethernetShortcut { @@ -325869,7 +395760,8 @@ public static class AssemblyQuestLoader }; obj83.Steps = list121; reference91 = obj83; - ref QuestSequence reference92 = ref span34[3]; + num++; + ref QuestSequence reference92 = ref span118[num]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue @@ -325877,7 +395769,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -325895,21 +395789,26 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "CryoTechnic"; + Span span123 = CollectionsMarshal.AsSpan(list123); + index = 0; + span123[index] = "CryoTechnic"; questRoot16.Author = list123; - num = 3; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span35 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference93 = ref span35[0]; + index = 3; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + Span span124 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference93 = ref span124[num]; QuestSequence obj85 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + index2 = 1; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + span125[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -325920,7 +395819,8 @@ public static class AssemblyQuestLoader }; obj85.Steps = list125; reference93 = obj85; - ref QuestSequence reference94 = ref span35[1]; + num++; + ref QuestSequence reference94 = ref span124[num]; QuestSequence obj86 = new QuestSequence { Sequence = 1 @@ -325928,7 +395828,9 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span126[index2] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) { AethernetShortcut = new AethernetShortcut { @@ -325947,15 +395849,18 @@ public static class AssemblyQuestLoader }; obj86.Steps = list126; reference94 = obj86; - ref QuestSequence reference95 = ref span35[2]; + num++; + ref QuestSequence reference95 = ref span124[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -325973,13 +395878,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "pot0to"; + Span span128 = CollectionsMarshal.AsSpan(list128); + index = 0; + span128[index] = "pot0to"; questRoot17.Author = list128; - num = 3; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span36 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference96 = ref span36[0]; + index = 3; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + Span span129 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference96 = ref span129[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -325987,7 +395895,9 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list130)[0]; + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + ref QuestStep reference97 = ref span130[index2]; QuestStep obj89 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -326003,31 +395913,38 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - CollectionsMarshal.AsSpan(list131)[0] = 131; + index3 = 1; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + Span span131 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span131[num3] = 131; obj90.InTerritory = list131; skipConditions.AetheryteShortcutIf = obj90; obj89.SkipConditions = skipConditions; reference97 = obj89; obj88.Steps = list130; reference96 = obj88; - ref QuestSequence reference98 = ref span36[1]; + num++; + ref QuestSequence reference98 = ref span129[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - Span span37 = CollectionsMarshal.AsSpan(list132); - span37[0] = new QuestStep(EInteractionType.Interact, 1045580u, new Vector3(-11.215393f, 14.000013f, 18.417542f), 131); - span37[1] = new QuestStep(EInteractionType.Interact, 1045578u, new Vector3(0.9613037f, 15.000003f, -6.4851074f), 131); - span37[2] = new QuestStep(EInteractionType.Interact, 1045579u, new Vector3(16.372864f, 14.000015f, -16.342468f), 131); + index2 = 3; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.Interact, 1045580u, new Vector3(-11.215393f, 14.000013f, 18.417542f), 131); + num2++; + span132[num2] = new QuestStep(EInteractionType.Interact, 1045578u, new Vector3(0.9613037f, 15.000003f, -6.4851074f), 131); + num2++; + span132[num2] = new QuestStep(EInteractionType.Interact, 1045579u, new Vector3(16.372864f, 14.000015f, -16.342468f), 131); obj91.Steps = list132; reference98 = obj91; - ref QuestSequence reference99 = ref span36[2]; + num++; + ref QuestSequence reference99 = ref span129[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -326035,7 +395952,9 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) { NextQuestId = new QuestId(4774) }; @@ -326048,21 +395967,26 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "liza"; + Span span134 = CollectionsMarshal.AsSpan(list134); + index = 0; + span134[index] = "liza"; questRoot18.Author = list134; - num = 8; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span38 = CollectionsMarshal.AsSpan(list135); - ref QuestSequence reference100 = ref span38[0]; + index = 8; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + Span span135 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref QuestSequence reference100 = ref span135[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - ref QuestStep reference101 = ref CollectionsMarshal.AsSpan(list136)[0]; + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + ref QuestStep reference101 = ref span136[num2]; QuestStep obj94 = new QuestStep(EInteractionType.AcceptQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -326080,14 +396004,17 @@ public static class AssemblyQuestLoader num3 = 1; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - CollectionsMarshal.AsSpan(list137)[0] = 131; + Span span137 = CollectionsMarshal.AsSpan(list137); + index3 = 0; + span137[index3] = 131; obj95.InTerritory = list137; skipConditions2.AetheryteShortcutIf = obj95; obj94.SkipConditions = skipConditions2; reference101 = obj94; obj93.Steps = list136; reference100 = obj93; - ref QuestSequence reference102 = ref span38[1]; + num++; + ref QuestSequence reference102 = ref span135[num]; QuestSequence obj96 = new QuestSequence { Sequence = 1 @@ -326095,7 +396022,9 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1045582u, new Vector3(-344.53345f, -2.3744698f, 16.494995f), 129) + Span span138 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span138[index2] = new QuestStep(EInteractionType.Interact, 1045582u, new Vector3(-344.53345f, -2.3744698f, 16.494995f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -326106,15 +396035,18 @@ public static class AssemblyQuestLoader }; obj96.Steps = list138; reference102 = obj96; - ref QuestSequence reference103 = ref span38[2]; + num++; + ref QuestSequence reference103 = ref span135[num]; QuestSequence obj97 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1045584u, new Vector3(-233.17316f, 5.999995f, 167.86438f), 129) + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + Span span139 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span139[num2] = new QuestStep(EInteractionType.Interact, 1045584u, new Vector3(-233.17316f, 5.999995f, 167.86438f), 129) { AethernetShortcut = new AethernetShortcut { @@ -326124,7 +396056,8 @@ public static class AssemblyQuestLoader }; obj97.Steps = list139; reference103 = obj97; - ref QuestSequence reference104 = ref span38[3]; + num++; + ref QuestSequence reference104 = ref span135[num]; QuestSequence obj98 = new QuestSequence { Sequence = 3 @@ -326132,54 +396065,74 @@ public static class AssemblyQuestLoader num2 = 4; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span39 = CollectionsMarshal.AsSpan(list140); - ref QuestStep reference105 = ref span39[0]; + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + ref QuestStep reference105 = ref span140[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1045585u, new Vector3(-269.3675f, 7.352252f, 201.43433f), 129); - num3 = 6; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - Span span40 = CollectionsMarshal.AsSpan(list141); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list141 = new List(index3); + CollectionsMarshal.SetCount(list141, index3); + Span span141 = CollectionsMarshal.AsSpan(list141); + num3 = 0; + span141[num3] = null; + num3++; + span141[num3] = null; + num3++; + span141[num3] = null; + num3++; + span141[num3] = null; + num3++; + span141[num3] = null; + num3++; + span141[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list141; reference105 = questStep9; - span39[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-275.1194f, 11.32725f, 188.80133f), 129); - span39[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-267.55106f, 11.852168f, 189.20018f), 129) + index2++; + span140[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-275.1194f, 11.32725f, 188.80133f), 129); + index2++; + span140[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-267.55106f, 11.852168f, 189.20018f), 129) { DisableNavmesh = true }; - ref QuestStep reference106 = ref span39[3]; + index2++; + ref QuestStep reference106 = ref span140[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1045586u, new Vector3(-246.50952f, 16.347235f, 192.12634f), 129); num3 = 6; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - Span span41 = CollectionsMarshal.AsSpan(list142); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span142 = CollectionsMarshal.AsSpan(list142); + index3 = 0; + span142[index3] = null; + index3++; + span142[index3] = null; + index3++; + span142[index3] = null; + index3++; + span142[index3] = null; + index3++; + span142[index3] = null; + index3++; + span142[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list142; reference106 = questStep10; obj98.Steps = list140; reference104 = obj98; - ref QuestSequence reference107 = ref span38[4]; + num++; + ref QuestSequence reference107 = ref span135[num]; QuestSequence obj99 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1000837u, new Vector3(-289.7536f, 16.347252f, 194.53723f), 129); + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + Span span143 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span143[num2] = new QuestStep(EInteractionType.Interact, 1000837u, new Vector3(-289.7536f, 16.347252f, 194.53723f), 129); obj99.Steps = list143; reference107 = obj99; - ref QuestSequence reference108 = ref span38[5]; + num++; + ref QuestSequence reference108 = ref span135[num]; QuestSequence obj100 = new QuestSequence { Sequence = 5 @@ -326187,7 +396140,9 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1045587u, new Vector3(-3.7995605f, 39.999966f, 36.697876f), 128) + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span144[index2] = new QuestStep(EInteractionType.Interact, 1045587u, new Vector3(-3.7995605f, 39.999966f, 36.697876f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -326198,15 +396153,18 @@ public static class AssemblyQuestLoader }; obj100.Steps = list144; reference108 = obj100; - ref QuestSequence reference109 = ref span38[6]; + num++; + ref QuestSequence reference109 = ref span135[num]; QuestSequence obj101 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1045601u, new Vector3(-26.962769f, 45.95137f, -27.054321f), 134) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span145[num2] = new QuestStep(EInteractionType.Interact, 1045601u, new Vector3(-26.962769f, 45.95137f, -27.054321f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -326217,7 +396175,8 @@ public static class AssemblyQuestLoader }; obj101.Steps = list145; reference109 = obj101; - ref QuestSequence reference110 = ref span38[7]; + num++; + ref QuestSequence reference110 = ref span135[num]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -326225,7 +396184,9 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) + Span span146 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span146[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -326244,21 +396205,26 @@ public static class AssemblyQuestLoader num = 1; List list147 = new List(num); CollectionsMarshal.SetCount(list147, num); - CollectionsMarshal.AsSpan(list147)[0] = "liza"; + Span span147 = CollectionsMarshal.AsSpan(list147); + index = 0; + span147[index] = "liza"; questRoot19.Author = list147; - num = 6; - List list148 = new List(num); - CollectionsMarshal.SetCount(list148, num); - Span span42 = CollectionsMarshal.AsSpan(list148); - ref QuestSequence reference111 = ref span42[0]; + index = 6; + List list148 = new List(index); + CollectionsMarshal.SetCount(list148, index); + Span span148 = CollectionsMarshal.AsSpan(list148); + num = 0; + ref QuestSequence reference111 = ref span148[num]; QuestSequence obj103 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list149)[0]; + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + ref QuestStep reference112 = ref span149[num2]; QuestStep obj104 = new QuestStep(EInteractionType.AcceptQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -326273,17 +396239,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = 131; + index3 = 1; + List list150 = new List(index3); + CollectionsMarshal.SetCount(list150, index3); + Span span150 = CollectionsMarshal.AsSpan(list150); + num3 = 0; + span150[num3] = 131; obj105.InTerritory = list150; skipConditions3.AetheryteShortcutIf = obj105; obj104.SkipConditions = skipConditions3; reference112 = obj104; obj103.Steps = list149; reference111 = obj103; - ref QuestSequence reference113 = ref span42[1]; + num++; + ref QuestSequence reference113 = ref span148[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -326291,27 +396260,33 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1045603u, new Vector3(56.198975f, -8.45414f, 99.22937f), 132) + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.Interact, 1045603u, new Vector3(56.198975f, -8.45414f, 99.22937f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj106.Steps = list151; reference113 = obj106; - ref QuestSequence reference114 = ref span42[2]; + num++; + ref QuestSequence reference114 = ref span148[num]; QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1045604u, new Vector3(76.89014f, -6f, 55.283447f), 148) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.Interact, 1045604u, new Vector3(76.89014f, -6f, 55.283447f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj107.Steps = list152; reference114 = obj107; - ref QuestSequence reference115 = ref span42[3]; + num++; + ref QuestSequence reference115 = ref span148[num]; QuestSequence obj108 = new QuestSequence { Sequence = 3 @@ -326319,27 +396294,33 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 2013282u, new Vector3(190.1731f, -8.529846f, -44.35797f), 148) + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.Interact, 2013282u, new Vector3(190.1731f, -8.529846f, -44.35797f), 148) { Fly = true }; obj108.Steps = list153; reference115 = obj108; - ref QuestSequence reference116 = ref span42[4]; + num++; + ref QuestSequence reference116 = ref span148[num]; QuestSequence obj109 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 2013255u, new Vector3(341.48157f, -4.501404f, -145.8916f), 148) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.Interact, 2013255u, new Vector3(341.48157f, -4.501404f, -145.8916f), 148) { Fly = true }; obj109.Steps = list154; reference116 = obj109; - ref QuestSequence reference117 = ref span42[5]; + num++; + ref QuestSequence reference117 = ref span148[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -326347,7 +396328,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -326366,21 +396349,26 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - CollectionsMarshal.AsSpan(list156)[0] = "liza"; + Span span156 = CollectionsMarshal.AsSpan(list156); + index = 0; + span156[index] = "liza"; questRoot20.Author = list156; - num = 8; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - Span span43 = CollectionsMarshal.AsSpan(list157); - ref QuestSequence reference118 = ref span43[0]; + index = 8; + List list157 = new List(index); + CollectionsMarshal.SetCount(list157, index); + Span span157 = CollectionsMarshal.AsSpan(list157); + num = 0; + ref QuestSequence reference118 = ref span157[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - ref QuestStep reference119 = ref CollectionsMarshal.AsSpan(list158)[0]; + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + ref QuestStep reference119 = ref span158[num2]; QuestStep obj112 = new QuestStep(EInteractionType.AcceptQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -326398,14 +396386,17 @@ public static class AssemblyQuestLoader num3 = 1; List list159 = new List(num3); CollectionsMarshal.SetCount(list159, num3); - CollectionsMarshal.AsSpan(list159)[0] = 131; + Span span159 = CollectionsMarshal.AsSpan(list159); + index3 = 0; + span159[index3] = 131; obj113.InTerritory = list159; skipConditions4.AetheryteShortcutIf = obj113; obj112.SkipConditions = skipConditions4; reference119 = obj112; obj111.Steps = list158; reference118 = obj111; - ref QuestSequence reference120 = ref span43[1]; + num++; + ref QuestSequence reference120 = ref span157[num]; QuestSequence obj114 = new QuestSequence { Sequence = 1 @@ -326413,7 +396404,9 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1045605u, new Vector3(-166.09448f, 2.0333128f, -17.288513f), 418) + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.Interact, 1045605u, new Vector3(-166.09448f, 2.0333128f, -17.288513f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -326424,16 +396417,18 @@ public static class AssemblyQuestLoader }; obj114.Steps = list160; reference120 = obj114; - ref QuestSequence reference121 = ref span43[2]; + num++; + ref QuestSequence reference121 = ref span157[num]; QuestSequence obj115 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - Span span44 = CollectionsMarshal.AsSpan(list161); - ref QuestStep reference122 = ref span44[0]; + index2 = 3; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + Span span161 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + ref QuestStep reference122 = ref span161[num2]; QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1045608u, new Vector3(-14.145203f, 11.965044f, 27.756104f), 419) { AethernetShortcut = new AethernetShortcut @@ -326442,49 +396437,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - num3 = 6; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - Span span45 = CollectionsMarshal.AsSpan(list162); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list162 = new List(index3); + CollectionsMarshal.SetCount(list162, index3); + Span span162 = CollectionsMarshal.AsSpan(list162); + num3 = 0; + span162[num3] = null; + num3++; + span162[num3] = null; + num3++; + span162[num3] = null; + num3++; + span162[num3] = null; + num3++; + span162[num3] = null; + num3++; + span162[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj116.CompletionQuestVariablesFlags = list162; reference122 = obj116; - ref QuestStep reference123 = ref span44[1]; + num2++; + ref QuestStep reference123 = ref span161[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1045609u, new Vector3(-10.8797f, 11.96515f, 53.543823f), 419); num3 = 6; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - Span span46 = CollectionsMarshal.AsSpan(list163); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span163 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span163[index3] = null; + index3++; + span163[index3] = null; + index3++; + span163[index3] = null; + index3++; + span163[index3] = null; + index3++; + span163[index3] = null; + index3++; + span163[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list163; reference123 = questStep11; - ref QuestStep reference124 = ref span44[2]; + num2++; + ref QuestStep reference124 = ref span161[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1045607u, new Vector3(-55.89386f, 11.965071f, 39.78015f), 419); - num3 = 6; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - Span span47 = CollectionsMarshal.AsSpan(list164); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + Span span164 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = null; + num3++; + span164[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list164; reference124 = questStep12; obj115.Steps = list161; reference121 = obj115; - ref QuestSequence reference125 = ref span43[3]; + num++; + ref QuestSequence reference125 = ref span157[num]; QuestSequence obj117 = new QuestSequence { Sequence = 3 @@ -326492,18 +396508,23 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1045610u, new Vector3(30.929932f, 11.965028f, 33.6156f), 419); + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.Interact, 1045610u, new Vector3(30.929932f, 11.965028f, 33.6156f), 419); obj117.Steps = list165; reference125 = obj117; - ref QuestSequence reference126 = ref span43[4]; + num++; + ref QuestSequence reference126 = ref span157[num]; QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1045713u, new Vector3(92.454346f, 24.06099f, -40.177063f), 418) + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.Interact, 1045713u, new Vector3(92.454346f, 24.06099f, -40.177063f), 418) { AethernetShortcut = new AethernetShortcut { @@ -326513,7 +396534,8 @@ public static class AssemblyQuestLoader }; obj118.Steps = list166; reference126 = obj118; - ref QuestSequence reference127 = ref span43[5]; + num++; + ref QuestSequence reference127 = ref span157[num]; QuestSequence obj119 = new QuestSequence { Sequence = 5 @@ -326521,21 +396543,27 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1045714u, new Vector3(65.171265f, 24.071722f, -37.521973f), 418); + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.Interact, 1045714u, new Vector3(65.171265f, 24.071722f, -37.521973f), 418); obj119.Steps = list167; reference127 = obj119; - ref QuestSequence reference128 = ref span43[6]; + num++; + ref QuestSequence reference128 = ref span157[num]; QuestSequence obj120 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1045714u, new Vector3(65.171265f, 24.071722f, -37.521973f), 418); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.Interact, 1045714u, new Vector3(65.171265f, 24.071722f, -37.521973f), 418); obj120.Steps = list168; reference128 = obj120; - ref QuestSequence reference129 = ref span43[7]; + num++; + ref QuestSequence reference129 = ref span157[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue @@ -326543,7 +396571,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -326562,21 +396592,26 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - CollectionsMarshal.AsSpan(list170)[0] = "liza"; + Span span170 = CollectionsMarshal.AsSpan(list170); + index = 0; + span170[index] = "liza"; questRoot21.Author = list170; - num = 3; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - Span span48 = CollectionsMarshal.AsSpan(list171); - ref QuestSequence reference130 = ref span48[0]; + index = 3; + List list171 = new List(index); + CollectionsMarshal.SetCount(list171, index); + Span span171 = CollectionsMarshal.AsSpan(list171); + num = 0; + ref QuestSequence reference130 = ref span171[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list172)[0]; + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + ref QuestStep reference131 = ref span172[num2]; QuestStep obj123 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -326594,14 +396629,17 @@ public static class AssemblyQuestLoader num3 = 1; List list173 = new List(num3); CollectionsMarshal.SetCount(list173, num3); - CollectionsMarshal.AsSpan(list173)[0] = 131; + Span span173 = CollectionsMarshal.AsSpan(list173); + index3 = 0; + span173[index3] = 131; obj124.InTerritory = list173; skipConditions5.AetheryteShortcutIf = obj124; obj123.SkipConditions = skipConditions5; reference131 = obj123; obj122.Steps = list172; reference130 = obj122; - ref QuestSequence reference132 = ref span48[1]; + num++; + ref QuestSequence reference132 = ref span171[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 @@ -326609,7 +396647,9 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1045715u, new Vector3(21.042175f, 29.999996f, -16.342468f), 131) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.Interact, 1045715u, new Vector3(21.042175f, 29.999996f, -16.342468f), 131) { AethernetShortcut = new AethernetShortcut { @@ -326619,15 +396659,18 @@ public static class AssemblyQuestLoader }; obj125.Steps = list174; reference132 = obj125; - ref QuestSequence reference133 = ref span48[2]; + num++; + ref QuestSequence reference133 = ref span171[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, NextQuestId = new QuestId(4778) @@ -326641,13 +396684,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "liza"; + Span span176 = CollectionsMarshal.AsSpan(list176); + index = 0; + span176[index] = "liza"; questRoot22.Author = list176; - num = 2; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span49 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference134 = ref span49[0]; + index = 2; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + Span span177 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference134 = ref span177[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -326655,7 +396701,9 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list178)[0]; + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + ref QuestStep reference135 = ref span178[index2]; QuestStep obj128 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -326671,25 +396719,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = 131; + index3 = 1; + List list179 = new List(index3); + CollectionsMarshal.SetCount(list179, index3); + Span span179 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span179[num3] = 131; obj129.InTerritory = list179; skipConditions6.AetheryteShortcutIf = obj129; obj128.SkipConditions = skipConditions6; reference135 = obj128; obj127.Steps = list178; reference134 = obj127; - ref QuestSequence reference136 = ref span49[1]; + num++; + ref QuestSequence reference136 = ref span177[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f }; @@ -326702,13 +396755,16 @@ public static class AssemblyQuestLoader num = 1; List list181 = new List(num); CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "pot0to"; + Span span181 = CollectionsMarshal.AsSpan(list181); + index = 0; + span181[index] = "pot0to"; questRoot23.Author = list181; - num = 6; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - Span span50 = CollectionsMarshal.AsSpan(list182); - ref QuestSequence reference137 = ref span50[0]; + index = 6; + List list182 = new List(index); + CollectionsMarshal.SetCount(list182, index); + Span span182 = CollectionsMarshal.AsSpan(list182); + num = 0; + ref QuestSequence reference137 = ref span182[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 @@ -326716,7 +396772,9 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - ref QuestStep reference138 = ref CollectionsMarshal.AsSpan(list183)[0]; + Span span183 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + ref QuestStep reference138 = ref span183[index2]; QuestStep obj132 = new QuestStep(EInteractionType.AcceptQuest, 1045615u, new Vector3(-115.80072f, 4f, -100.99945f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah @@ -326724,7 +396782,9 @@ public static class AssemblyQuestLoader num3 = 1; List list184 = new List(num3); CollectionsMarshal.SetCount(list184, num3); - CollectionsMarshal.AsSpan(list184)[0] = new DialogueChoice + Span span184 = CollectionsMarshal.AsSpan(list184); + index3 = 0; + span184[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBWIL901_04779_Q1_000_000"), @@ -326734,21 +396794,25 @@ public static class AssemblyQuestLoader reference138 = obj132; obj131.Steps = list183; reference137 = obj131; - ref QuestSequence reference139 = ref span50[1]; + num++; + ref QuestSequence reference139 = ref span182[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1045616u, new Vector3(-379.7818f, -59f, 131.48694f), 145) + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span185[num2] = new QuestStep(EInteractionType.Interact, 1045616u, new Vector3(-379.7818f, -59f, 131.48694f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj133.Steps = list185; reference139 = obj133; - ref QuestSequence reference140 = ref span50[2]; + num++; + ref QuestSequence reference140 = ref span182[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 @@ -326756,21 +396820,26 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 2013396u, new Vector3(-69.96271f, -21.011719f, -10.177856f), 145) + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.Interact, 2013396u, new Vector3(-69.96271f, -21.011719f, -10.177856f), 145) { Fly = true }; obj134.Steps = list186; reference140 = obj134; - ref QuestSequence reference141 = ref span50[3]; + num++; + ref QuestSequence reference141 = ref span182[num]; QuestSequence obj135 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1045618u, new Vector3(-37.43042f, 11.0769615f, -257.5876f), 133) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.Interact, 1045618u, new Vector3(-37.43042f, 11.0769615f, -257.5876f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -326781,7 +396850,8 @@ public static class AssemblyQuestLoader }; obj135.Steps = list187; reference141 = obj135; - ref QuestSequence reference142 = ref span50[4]; + num++; + ref QuestSequence reference142 = ref span182[num]; QuestSequence obj136 = new QuestSequence { Sequence = 4 @@ -326789,7 +396859,9 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1045619u, new Vector3(24.612793f, 40f, 80.338745f), 128) + Span span188 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span188[index2] = new QuestStep(EInteractionType.Interact, 1045619u, new Vector3(24.612793f, 40f, 80.338745f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -326800,15 +396872,18 @@ public static class AssemblyQuestLoader }; obj136.Steps = list188; reference142 = obj136; - ref QuestSequence reference143 = ref span50[5]; + num++; + ref QuestSequence reference143 = ref span182[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045619u, new Vector3(24.612793f, 40f, 80.338745f), 128); + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045619u, new Vector3(24.612793f, 40f, 80.338745f), 128); obj137.Steps = list189; reference143 = obj137; questRoot23.QuestSequence = list182; @@ -326818,13 +396893,16 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "pot0to"; + Span span190 = CollectionsMarshal.AsSpan(list190); + index = 0; + span190[index] = "pot0to"; questRoot24.Author = list190; - num = 7; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - Span span51 = CollectionsMarshal.AsSpan(list191); - ref QuestSequence reference144 = ref span51[0]; + index = 7; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + Span span191 = CollectionsMarshal.AsSpan(list191); + num = 0; + ref QuestSequence reference144 = ref span191[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -326832,7 +396910,9 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - ref QuestStep reference145 = ref CollectionsMarshal.AsSpan(list192)[0]; + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + ref QuestStep reference145 = ref span192[index2]; QuestStep obj139 = new QuestStep(EInteractionType.AcceptQuest, 1045619u, new Vector3(24.612793f, 40f, 80.338745f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -326844,31 +396924,37 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - CollectionsMarshal.AsSpan(list193)[0] = 128; + index3 = 1; + List list193 = new List(index3); + CollectionsMarshal.SetCount(list193, index3); + Span span193 = CollectionsMarshal.AsSpan(list193); + num3 = 0; + span193[num3] = 128; skipAetheryteCondition.InTerritory = list193; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition; obj139.SkipConditions = skipConditions7; reference145 = obj139; obj138.Steps = list192; reference144 = obj138; - ref QuestSequence reference146 = ref span51[1]; + num++; + ref QuestSequence reference146 = ref span191[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1045620u, new Vector3(157.57996f, 14.09586f, 685.81665f), 135) + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.Interact, 1045620u, new Vector3(157.57996f, 14.09586f, 685.81665f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj140.Steps = list194; reference146 = obj140; - ref QuestSequence reference147 = ref span51[2]; + num++; + ref QuestSequence reference147 = ref span191[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 @@ -326876,30 +396962,37 @@ public static class AssemblyQuestLoader num2 = 3; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span52 = CollectionsMarshal.AsSpan(list195); - span52[0] = new QuestStep(EInteractionType.Interact, 1045624u, new Vector3(199.51172f, 14.119263f, 670.6492f), 135); - span52[1] = new QuestStep(EInteractionType.Interact, 1045623u, new Vector3(162.67639f, 8.973654f, 613.9772f), 135) + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span195[index2] = new QuestStep(EInteractionType.Interact, 1045624u, new Vector3(199.51172f, 14.119263f, 670.6492f), 135); + index2++; + span195[index2] = new QuestStep(EInteractionType.Interact, 1045623u, new Vector3(162.67639f, 8.973654f, 613.9772f), 135) { Fly = true }; - span52[2] = new QuestStep(EInteractionType.Interact, 1045625u, new Vector3(217.18164f, 8.973654f, 615.77783f), 135); + index2++; + span195[index2] = new QuestStep(EInteractionType.Interact, 1045625u, new Vector3(217.18164f, 8.973654f, 615.77783f), 135); obj141.Steps = list195; reference147 = obj141; - ref QuestSequence reference148 = ref span51[3]; + num++; + ref QuestSequence reference148 = ref span191[num]; QuestSequence obj142 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1045621u, new Vector3(162.89001f, 12.126945f, 637.0182f), 135) + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.Interact, 1045621u, new Vector3(162.89001f, 12.126945f, 637.0182f), 135) { Fly = true }; obj142.Steps = list196; reference148 = obj142; - ref QuestSequence reference149 = ref span51[4]; + num++; + ref QuestSequence reference149 = ref span191[num]; QuestSequence obj143 = new QuestSequence { Sequence = 4 @@ -326907,21 +397000,27 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 2013397u, new Vector3(247.8523f, 6.6986694f, 783.505f), 135); + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.Interact, 2013397u, new Vector3(247.8523f, 6.6986694f, 783.505f), 135); obj143.Steps = list197; reference149 = obj143; - ref QuestSequence reference150 = ref span51[5]; + num++; + ref QuestSequence reference150 = ref span191[num]; QuestSequence obj144 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1045626u, new Vector3(248.27954f, 6.7779655f, 784.6647f), 135); + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span198 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span198[num2] = new QuestStep(EInteractionType.Interact, 1045626u, new Vector3(248.27954f, 6.7779655f, 784.6647f), 135); obj144.Steps = list198; reference150 = obj144; - ref QuestSequence reference151 = ref span51[6]; + num++; + ref QuestSequence reference151 = ref span191[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue @@ -326929,7 +397028,9 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list199)[0]; + Span span199 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + ref QuestStep reference152 = ref span199[index2]; QuestStep obj146 = new QuestStep(EInteractionType.CompleteQuest, 1045615u, new Vector3(-115.80072f, 4f, -100.99945f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah @@ -326937,7 +397038,9 @@ public static class AssemblyQuestLoader num3 = 1; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = new DialogueChoice + Span span200 = CollectionsMarshal.AsSpan(list200); + index3 = 0; + span200[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBWIL902_04780_Q2_000_000"), @@ -326954,26 +397057,33 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "liza"; + Span span201 = CollectionsMarshal.AsSpan(list201); + index = 0; + span201[index] = "liza"; questRoot25.Author = list201; - num = 7; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span53 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference153 = ref span53[0]; + index = 7; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + Span span202 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference153 = ref span202[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - ref QuestStep reference154 = ref CollectionsMarshal.AsSpan(list203)[0]; + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + ref QuestStep reference154 = ref span203[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.AcceptQuest, 1043515u, new Vector3(303.39502f, 481.99442f, 152.81909f), 960); - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = new DialogueChoice + index3 = 1; + List list204 = new List(index3); + CollectionsMarshal.SetCount(list204, index3); + Span span204 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span204[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL310_04787_Q1_000_007"), @@ -326983,7 +397093,8 @@ public static class AssemblyQuestLoader reference154 = questStep13; obj147.Steps = list203; reference153 = obj147; - ref QuestSequence reference155 = ref span53[1]; + num++; + ref QuestSequence reference155 = ref span202[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -326991,25 +397102,31 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1045899u, new Vector3(-164.99585f, -49.302116f, -284.22986f), 959) + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.Interact, 1045899u, new Vector3(-164.99585f, -49.302116f, -284.22986f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj148.Steps = list205; reference155 = obj148; - ref QuestSequence reference156 = ref span53[2]; + num++; + ref QuestSequence reference156 = ref span202[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.Interact, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); obj149.Steps = list206; reference156 = obj149; - ref QuestSequence reference157 = ref span53[3]; + num++; + ref QuestSequence reference157 = ref span202[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -327017,28 +397134,34 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957) + Span span207 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span207[index2] = new QuestStep(EInteractionType.Interact, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj150.Steps = list207; reference157 = obj150; - ref QuestSequence reference158 = ref span53[4]; + num++; + ref QuestSequence reference158 = ref span202[num]; QuestSequence obj151 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1045901u, new Vector3(-79.6369f, 39.981316f, 311.78748f), 957) + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.Interact, 1045901u, new Vector3(-79.6369f, 39.981316f, 311.78748f), 957) { StopDistance = 5f }; obj151.Steps = list208; reference158 = obj151; - ref QuestSequence reference159 = ref span53[5]; + num++; + ref QuestSequence reference159 = ref span202[num]; QuestSequence obj152 = new QuestSequence { Sequence = 5 @@ -327046,30 +397169,36 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - ref QuestStep reference160 = ref CollectionsMarshal.AsSpan(list209)[0]; + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + ref QuestStep reference160 = ref span209[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); num3 = 4; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - Span span54 = CollectionsMarshal.AsSpan(list210); - span54[0] = new DialogueChoice + Span span210 = CollectionsMarshal.AsSpan(list210); + index3 = 0; + span210[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANALL310_04787_Q3_000_112") }; - span54[1] = new DialogueChoice + index3++; + span210[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL310_04787_Q4_000_116"), Answer = new ExcelRef("TEXT_BANALL310_04787_A4_000_003") }; - span54[2] = new DialogueChoice + index3++; + span210[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL310_04787_Q5_000_120"), Answer = new ExcelRef("TEXT_BANALL310_04787_A5_000_002") }; - span54[3] = new DialogueChoice + index3++; + span210[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL310_04787_Q6_000_124"), @@ -327079,15 +397208,18 @@ public static class AssemblyQuestLoader reference160 = questStep14; obj152.Steps = list209; reference159 = obj152; - ref QuestSequence reference161 = ref span53[6]; + num++; + ref QuestSequence reference161 = ref span202[num]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045901u, new Vector3(-79.6369f, 39.981316f, 311.78748f), 957) + index2 = 1; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + Span span211 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + span211[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045901u, new Vector3(-79.6369f, 39.981316f, 311.78748f), 957) { StopDistance = 5f }; @@ -327100,13 +397232,16 @@ public static class AssemblyQuestLoader num = 1; List list212 = new List(num); CollectionsMarshal.SetCount(list212, num); - CollectionsMarshal.AsSpan(list212)[0] = "liza"; + Span span212 = CollectionsMarshal.AsSpan(list212); + index = 0; + span212[index] = "liza"; questRoot26.Author = list212; - num = 6; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - Span span55 = CollectionsMarshal.AsSpan(list213); - ref QuestSequence reference162 = ref span55[0]; + index = 6; + List list213 = new List(index); + CollectionsMarshal.SetCount(list213, index); + Span span213 = CollectionsMarshal.AsSpan(list213); + num = 0; + ref QuestSequence reference162 = ref span213[num]; QuestSequence obj154 = new QuestSequence { Sequence = 0 @@ -327114,7 +397249,9 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045901u, new Vector3(-79.6369f, 39.981316f, 311.78748f), 957) + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045901u, new Vector3(-79.6369f, 39.981316f, 311.78748f), 957) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, @@ -327128,28 +397265,33 @@ public static class AssemblyQuestLoader }; obj154.Steps = list214; reference162 = obj154; - ref QuestSequence reference163 = ref span55[1]; + num++; + ref QuestSequence reference163 = ref span213[num]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - Span span56 = CollectionsMarshal.AsSpan(list215); - span56[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 3; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - span56[1] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + num2++; + span215[num2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 }; - span56[2] = new QuestStep(EInteractionType.Interact, 1045904u, new Vector3(201.46484f, 567.4998f, 241.32141f), 960); + num2++; + span215[num2] = new QuestStep(EInteractionType.Interact, 1045904u, new Vector3(201.46484f, 567.4998f, 241.32141f), 960); obj155.Steps = list215; reference163 = obj155; - ref QuestSequence reference164 = ref span55[2]; + num++; + ref QuestSequence reference164 = ref span213[num]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -327157,15 +397299,19 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list216)[0]; + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + ref QuestStep reference165 = ref span216[index2]; QuestStep obj157 = new QuestStep(EInteractionType.Interact, 1045905u, new Vector3(491.6609f, 436.9997f, 301.22827f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - num3 = 1; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - CollectionsMarshal.AsSpan(list217)[0] = new DialogueChoice + index3 = 1; + List list217 = new List(index3); + CollectionsMarshal.SetCount(list217, index3); + Span span217 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span217[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL320_04788_Q1_000_049"), @@ -327175,23 +397321,27 @@ public static class AssemblyQuestLoader reference165 = obj157; obj156.Steps = list216; reference164 = obj156; - ref QuestSequence reference166 = ref span55[3]; + num++; + ref QuestSequence reference166 = ref span213[num]; QuestSequence obj158 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - Span span57 = CollectionsMarshal.AsSpan(list218); - span57[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + index2 = 2; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span218[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960 }; - span57[1] = new QuestStep(EInteractionType.Interact, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + num2++; + span218[num2] = new QuestStep(EInteractionType.Interact, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj158.Steps = list218; reference166 = obj158; - ref QuestSequence reference167 = ref span55[4]; + num++; + ref QuestSequence reference167 = ref span213[num]; QuestSequence obj159 = new QuestSequence { Sequence = 4 @@ -327199,7 +397349,9 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - ref QuestStep reference168 = ref CollectionsMarshal.AsSpan(list219)[0]; + Span span219 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + ref QuestStep reference168 = ref span219[index2]; QuestStep obj160 = new QuestStep(EInteractionType.Interact, 2013445u, new Vector3(-386.83148f, 80.85742f, 603.6621f), 960) { Fly = true, @@ -327208,13 +397360,15 @@ public static class AssemblyQuestLoader num3 = 2; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - Span span58 = CollectionsMarshal.AsSpan(list220); - span58[0] = new DialogueChoice + Span span220 = CollectionsMarshal.AsSpan(list220); + index3 = 0; + span220[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANALL320_04788_Q2_000_090") }; - span58[1] = new DialogueChoice + index3++; + span220[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL320_04788_Q3_000_130"), @@ -327224,15 +397378,18 @@ public static class AssemblyQuestLoader reference168 = obj160; obj159.Steps = list219; reference167 = obj159; - ref QuestSequence reference169 = ref span55[5]; + num++; + ref QuestSequence reference169 = ref span213[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045914u, new Vector3(202.89917f, 567.4998f, 239.9176f), 960) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span221[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045914u, new Vector3(202.89917f, 567.4998f, 239.9176f), 960) { StopDistance = 7f }; @@ -327245,13 +397402,16 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "liza"; + Span span222 = CollectionsMarshal.AsSpan(list222); + index = 0; + span222[index] = "liza"; questRoot27.Author = list222; - num = 8; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span59 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference170 = ref span59[0]; + index = 8; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + Span span223 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference170 = ref span223[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -327259,7 +397419,9 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -327272,25 +397434,29 @@ public static class AssemblyQuestLoader }; obj162.Steps = list224; reference170 = obj162; - ref QuestSequence reference171 = ref span59[1]; + num++; + ref QuestSequence reference171 = ref span223[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - Span span60 = CollectionsMarshal.AsSpan(list225); - span60[0] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) + index2 = 2; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) { StopDistance = 1f, TargetTerritoryId = (ushort)1061, Fly = true }; - span60[1] = new QuestStep(EInteractionType.Interact, 1045968u, new Vector3(5.661072f, 0.099999696f, 5.8441772f), 1061); + num2++; + span225[num2] = new QuestStep(EInteractionType.Interact, 1045968u, new Vector3(5.661072f, 0.099999696f, 5.8441772f), 1061); obj163.Steps = list225; reference171 = obj163; - ref QuestSequence reference172 = ref span59[2]; + num++; + ref QuestSequence reference172 = ref span223[num]; QuestSequence obj164 = new QuestSequence { Sequence = 2 @@ -327298,12 +397464,16 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - ref QuestStep reference173 = ref CollectionsMarshal.AsSpan(list226)[0]; + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + ref QuestStep reference173 = ref span226[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1045971u, new Vector3(1.3580322f, 0.099999696f, 27.237305f), 1061); - num3 = 1; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = new DialogueChoice + index3 = 1; + List list227 = new List(index3); + CollectionsMarshal.SetCount(list227, index3); + Span span227 = CollectionsMarshal.AsSpan(list227); + num3 = 0; + span227[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKEA301_04791_Q1_100_000") @@ -327312,22 +397482,26 @@ public static class AssemblyQuestLoader reference173 = questStep15; obj164.Steps = list226; reference172 = obj164; - ref QuestSequence reference174 = ref span59[3]; + num++; + ref QuestSequence reference174 = ref span223[num]; QuestSequence obj165 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 2013455u, new Vector3(-510.1244f, 128.64868f, 607.9956f), 959) + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.Interact, 2013455u, new Vector3(-510.1244f, 128.64868f, 607.9956f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; obj165.Steps = list228; reference174 = obj165; - ref QuestSequence reference175 = ref span59[4]; + num++; + ref QuestSequence reference175 = ref span223[num]; QuestSequence obj166 = new QuestSequence { Sequence = 4 @@ -327335,7 +397509,9 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span229[index2] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) { StopDistance = 1f, TargetTerritoryId = (ushort)1061, @@ -327344,21 +397520,25 @@ public static class AssemblyQuestLoader }; obj166.Steps = list229; reference175 = obj166; - ref QuestSequence reference176 = ref span59[5]; + num++; + ref QuestSequence reference176 = ref span223[num]; QuestSequence obj167 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1045974u, new Vector3(2.3651123f, 0.099999696f, -11.215393f), 1061) + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span230[num2] = new QuestStep(EInteractionType.Interact, 1045974u, new Vector3(2.3651123f, 0.099999696f, -11.215393f), 1061) { StopDistance = 5f }; obj167.Steps = list230; reference176 = obj167; - ref QuestSequence reference177 = ref span59[6]; + num++; + ref QuestSequence reference177 = ref span223[num]; QuestSequence obj168 = new QuestSequence { Sequence = 6 @@ -327366,7 +397546,9 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Duty, null, null, 1061) + Span span231 = CollectionsMarshal.AsSpan(list231); + index2 = 0; + span231[index2] = new QuestStep(EInteractionType.Duty, null, null, 1061) { DutyOptions = new DutyOptions { @@ -327375,15 +397557,18 @@ public static class AssemblyQuestLoader }; obj168.Steps = list231; reference177 = obj168; - ref QuestSequence reference178 = ref span59[7]; + num++; + ref QuestSequence reference178 = ref span223[num]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045982u, new Vector3(945.2506f, -950f, -940.55084f), 1182) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span232[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045982u, new Vector3(945.2506f, -950f, -940.55084f), 1182) { NextQuestId = new QuestId(4792) }; @@ -327396,13 +397581,16 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - CollectionsMarshal.AsSpan(list233)[0] = "liza"; + Span span233 = CollectionsMarshal.AsSpan(list233); + index = 0; + span233[index] = "liza"; questRoot28.Author = list233; - num = 6; - List list234 = new List(num); - CollectionsMarshal.SetCount(list234, num); - Span span61 = CollectionsMarshal.AsSpan(list234); - ref QuestSequence reference179 = ref span61[0]; + index = 6; + List list234 = new List(index); + CollectionsMarshal.SetCount(list234, index); + Span span234 = CollectionsMarshal.AsSpan(list234); + num = 0; + ref QuestSequence reference179 = ref span234[num]; QuestSequence obj170 = new QuestSequence { Sequence = 0 @@ -327410,28 +397598,34 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045985u, new Vector3(945.18945f, -950f, -937.8042f), 1182) + Span span235 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span235[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045985u, new Vector3(945.18945f, -950f, -937.8042f), 1182) { StopDistance = 4f }; obj170.Steps = list235; reference179 = obj170; - ref QuestSequence reference180 = ref span61[1]; + num++; + ref QuestSequence reference180 = ref span234[num]; QuestSequence obj171 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 2013456u, new Vector3(-192.6452f, 18.32605f, 24.36853f), 152) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.Interact, 2013456u, new Vector3(-192.6452f, 18.32605f, 24.36853f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj171.Steps = list236; reference180 = obj171; - ref QuestSequence reference181 = ref span61[2]; + num++; + ref QuestSequence reference181 = ref span234[num]; QuestSequence obj172 = new QuestSequence { Sequence = 2 @@ -327439,7 +397633,9 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1045992u, new Vector3(-277.45483f, 16.000862f, 50.461548f), 129) + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span237[index2] = new QuestStep(EInteractionType.Interact, 1045992u, new Vector3(-277.45483f, 16.000862f, 50.461548f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -327450,15 +397646,18 @@ public static class AssemblyQuestLoader }; obj172.Steps = list237; reference181 = obj172; - ref QuestSequence reference182 = ref span61[3]; + num++; + ref QuestSequence reference182 = ref span234[num]; QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1045994u, new Vector3(-13.7178955f, 68.37596f, 125.65808f), 135) + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.Interact, 1045994u, new Vector3(-13.7178955f, 68.37596f, 125.65808f), 135) { AethernetShortcut = new AethernetShortcut { @@ -327468,7 +397667,8 @@ public static class AssemblyQuestLoader }; obj173.Steps = list238; reference182 = obj173; - ref QuestSequence reference183 = ref span61[4]; + num++; + ref QuestSequence reference183 = ref span234[num]; QuestSequence obj174 = new QuestSequence { Sequence = 4 @@ -327476,23 +397676,27 @@ public static class AssemblyQuestLoader num2 = 4; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span62 = CollectionsMarshal.AsSpan(list239); - span62[0] = new QuestStep(EInteractionType.Interact, 1045996u, new Vector3(85.9845f, 68.34592f, 348.989f), 135) + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new QuestStep(EInteractionType.Interact, 1045996u, new Vector3(85.9845f, 68.34592f, 348.989f), 135) { Fly = true }; - span62[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1045996u, new Vector3(45.021595f, 71.30157f, 376.23453f), 135) + index2++; + span239[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1045996u, new Vector3(45.021595f, 71.30157f, 376.23453f), 135) { Mount = false, Sprint = false }; - span62[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1045996u, new Vector3(43.50745f, 71.30162f, 379.11874f), 135) + index2++; + span239[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1045996u, new Vector3(43.50745f, 71.30162f, 379.11874f), 135) { StopDistance = 10f, Mount = false, Sprint = false }; - span62[3] = new QuestStep(EInteractionType.WalkTo, 1045998u, new Vector3(9.048584f, 66.55368f, 409.53687f), 135) + index2++; + span239[index2] = new QuestStep(EInteractionType.WalkTo, 1045998u, new Vector3(9.048584f, 66.55368f, 409.53687f), 135) { StopDistance = 1f, Mount = false, @@ -327500,15 +397704,18 @@ public static class AssemblyQuestLoader }; obj174.Steps = list239; reference183 = obj174; - ref QuestSequence reference184 = ref span61[5]; + num++; + ref QuestSequence reference184 = ref span234[num]; QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045998u, new Vector3(9.048584f, 66.55368f, 409.53687f), 135); + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045998u, new Vector3(9.048584f, 66.55368f, 409.53687f), 135); obj175.Steps = list240; reference184 = obj175; questRoot28.QuestSequence = list234; @@ -327518,13 +397725,16 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "liza"; + Span span241 = CollectionsMarshal.AsSpan(list241); + index = 0; + span241[index] = "liza"; questRoot29.Author = list241; - num = 6; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span63 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference185 = ref span63[0]; + index = 6; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + Span span242 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference185 = ref span242[num]; QuestSequence obj176 = new QuestSequence { Sequence = 0 @@ -327532,21 +397742,27 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044156u, new Vector3(-276.3562f, 39.993896f, 224.26172f), 1055); + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span243[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044156u, new Vector3(-276.3562f, 39.993896f, 224.26172f), 1055); obj176.Steps = list243; reference185 = obj176; - ref QuestSequence reference186 = ref span63[1]; + num++; + ref QuestSequence reference186 = ref span242[num]; QuestSequence obj177 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 2013553u, new Vector3(-389.82227f, 3.250122f, 238.02539f), 1055); + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.Interact, 2013553u, new Vector3(-389.82227f, 3.250122f, 238.02539f), 1055); obj177.Steps = list244; reference186 = obj177; - ref QuestSequence reference187 = ref span63[2]; + num++; + ref QuestSequence reference187 = ref span242[num]; QuestSequence obj178 = new QuestSequence { Sequence = 2 @@ -327554,49 +397770,67 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1046221u, new Vector3(-303.12048f, 39.993896f, 244.80042f), 1055); + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.Interact, 1046221u, new Vector3(-303.12048f, 39.993896f, 244.80042f), 1055); obj178.Steps = list245; reference187 = obj178; - ref QuestSequence reference188 = ref span63[3]; + num++; + ref QuestSequence reference188 = ref span242[num]; QuestSequence obj179 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span64 = CollectionsMarshal.AsSpan(list246); - ref QuestStep reference189 = ref span64[0]; + index2 = 2; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + ref QuestStep reference189 = ref span246[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1046279u, new Vector3(-147.17328f, 48.330666f, 164.38538f), 1055); num3 = 6; List list247 = new List(num3); CollectionsMarshal.SetCount(list247, num3); - Span span65 = CollectionsMarshal.AsSpan(list247); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span247 = CollectionsMarshal.AsSpan(list247); + index3 = 0; + span247[index3] = null; + index3++; + span247[index3] = null; + index3++; + span247[index3] = null; + index3++; + span247[index3] = null; + index3++; + span247[index3] = null; + index3++; + span247[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list247; reference189 = questStep16; - ref QuestStep reference190 = ref span64[1]; + num2++; + ref QuestStep reference190 = ref span246[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1046281u, new Vector3(-118.21167f, 91.550545f, 398.79456f), 1055); - num3 = 6; - List list248 = new List(num3); - CollectionsMarshal.SetCount(list248, num3); - Span span66 = CollectionsMarshal.AsSpan(list248); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list248 = new List(index3); + CollectionsMarshal.SetCount(list248, index3); + Span span248 = CollectionsMarshal.AsSpan(list248); + num3 = 0; + span248[num3] = null; + num3++; + span248[num3] = null; + num3++; + span248[num3] = null; + num3++; + span248[num3] = null; + num3++; + span248[num3] = null; + num3++; + span248[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list248; reference190 = questStep17; obj179.Steps = list246; reference188 = obj179; - ref QuestSequence reference191 = ref span63[4]; + num++; + ref QuestSequence reference191 = ref span242[num]; QuestSequence obj180 = new QuestSequence { Sequence = 4 @@ -327604,18 +397838,23 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1046221u, new Vector3(-303.12048f, 39.993896f, 244.80042f), 1055); + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.Interact, 1046221u, new Vector3(-303.12048f, 39.993896f, 244.80042f), 1055); obj180.Steps = list249; reference191 = obj180; - ref QuestSequence reference192 = ref span63[5]; + num++; + ref QuestSequence reference192 = ref span242[num]; QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046284u, new Vector3(-402.2431f, 1.7196094f, 226.4591f), 1055) + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span250 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span250[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046284u, new Vector3(-402.2431f, 1.7196094f, 226.4591f), 1055) { StopDistance = 5f }; @@ -327628,13 +397867,16 @@ public static class AssemblyQuestLoader num = 1; List list251 = new List(num); CollectionsMarshal.SetCount(list251, num); - CollectionsMarshal.AsSpan(list251)[0] = "liza"; + Span span251 = CollectionsMarshal.AsSpan(list251); + index = 0; + span251[index] = "liza"; questRoot30.Author = list251; - num = 5; - List list252 = new List(num); - CollectionsMarshal.SetCount(list252, num); - Span span67 = CollectionsMarshal.AsSpan(list252); - ref QuestSequence reference193 = ref span67[0]; + index = 5; + List list252 = new List(index); + CollectionsMarshal.SetCount(list252, index); + Span span252 = CollectionsMarshal.AsSpan(list252); + num = 0; + ref QuestSequence reference193 = ref span252[num]; QuestSequence obj182 = new QuestSequence { Sequence = 0 @@ -327642,24 +397884,30 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963); + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963); obj182.Steps = list253; reference193 = obj182; - ref QuestSequence reference194 = ref span67[1]; + num++; + ref QuestSequence reference194 = ref span252[num]; QuestSequence obj183 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1044815u, new Vector3(182.17737f, 5.3180933f, 646.3873f), 957) + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.Interact, 1044815u, new Vector3(182.17737f, 5.3180933f, 646.3873f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj183.Steps = list254; reference194 = obj183; - ref QuestSequence reference195 = ref span67[2]; + num++; + ref QuestSequence reference195 = ref span252[num]; QuestSequence obj184 = new QuestSequence { Sequence = 2 @@ -327667,39 +397915,54 @@ public static class AssemblyQuestLoader num2 = 4; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span68 = CollectionsMarshal.AsSpan(list255); - ref QuestStep reference196 = ref span68[0]; + Span span255 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + ref QuestStep reference196 = ref span255[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1044821u, new Vector3(216.38806f, 10.035135f, 613.79407f), 957); num3 = 6; List list256 = new List(num3); CollectionsMarshal.SetCount(list256, num3); - Span span69 = CollectionsMarshal.AsSpan(list256); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span256 = CollectionsMarshal.AsSpan(list256); + index3 = 0; + span256[index3] = null; + index3++; + span256[index3] = null; + index3++; + span256[index3] = null; + index3++; + span256[index3] = null; + index3++; + span256[index3] = null; + index3++; + span256[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list256; reference196 = questStep18; - ref QuestStep reference197 = ref span68[1]; + index2++; + ref QuestStep reference197 = ref span255[index2]; QuestStep obj185 = new QuestStep(EInteractionType.Interact, 1044822u, new Vector3(244.09851f, 9.916463f, 575.8601f), 957) { Fly = true }; - num3 = 6; - List list257 = new List(num3); - CollectionsMarshal.SetCount(list257, num3); - Span span70 = CollectionsMarshal.AsSpan(list257); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list257 = new List(index3); + CollectionsMarshal.SetCount(list257, index3); + Span span257 = CollectionsMarshal.AsSpan(list257); + num3 = 0; + span257[num3] = null; + num3++; + span257[num3] = null; + num3++; + span257[num3] = null; + num3++; + span257[num3] = null; + num3++; + span257[num3] = null; + num3++; + span257[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj185.CompletionQuestVariablesFlags = list257; reference197 = obj185; - ref QuestStep reference198 = ref span68[2]; + index2++; + ref QuestStep reference198 = ref span255[index2]; QuestStep obj186 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(203.62158f, 1.7700036f, 711.6622f), 957) { Fly = true @@ -327709,48 +397972,65 @@ public static class AssemblyQuestLoader num3 = 6; List list258 = new List(num3); CollectionsMarshal.SetCount(list258, num3); - Span span71 = CollectionsMarshal.AsSpan(list258); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span258 = CollectionsMarshal.AsSpan(list258); + index3 = 0; + span258[index3] = null; + index3++; + span258[index3] = null; + index3++; + span258[index3] = null; + index3++; + span258[index3] = null; + index3++; + span258[index3] = null; + index3++; + span258[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list258; skipConditions8.StepIf = skipStepConditions; obj186.SkipConditions = skipConditions8; reference198 = obj186; - ref QuestStep reference199 = ref span68[3]; + index2++; + ref QuestStep reference199 = ref span255[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1044820u, new Vector3(205.09644f, 1.7700036f, 710.84155f), 957); - num3 = 6; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - Span span72 = CollectionsMarshal.AsSpan(list259); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list259 = new List(index3); + CollectionsMarshal.SetCount(list259, index3); + Span span259 = CollectionsMarshal.AsSpan(list259); + num3 = 0; + span259[num3] = null; + num3++; + span259[num3] = null; + num3++; + span259[num3] = null; + num3++; + span259[num3] = null; + num3++; + span259[num3] = null; + num3++; + span259[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list259; reference199 = questStep19; obj184.Steps = list255; reference195 = obj184; - ref QuestSequence reference200 = ref span67[3]; + num++; + ref QuestSequence reference200 = ref span252[num]; QuestSequence obj187 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1044824u, new Vector3(212.4513f, 4.763736f, 653.65063f), 957) + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span260[num2] = new QuestStep(EInteractionType.Interact, 1044824u, new Vector3(212.4513f, 4.763736f, 653.65063f), 957) { Fly = true }; obj187.Steps = list260; reference200 = obj187; - ref QuestSequence reference201 = ref span67[4]; + num++; + ref QuestSequence reference201 = ref span252[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue @@ -327758,7 +398038,9 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044830u, new Vector3(25.680908f, 1.5596709f, 634.5464f), 957) + Span span261 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span261[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044830u, new Vector3(25.680908f, 1.5596709f, 634.5464f), 957) { StopDistance = 5f, NextQuestId = new QuestId(4800) @@ -327776,13 +398058,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -327790,29 +398075,35 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044835u, new Vector3(24.338135f, 1.6764785f, 631.1284f), 957) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044835u, new Vector3(24.338135f, 1.6764785f, 631.1284f), 957) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-18.503275f, 56.94149f, 74.85906f), 957) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-18.503275f, 56.94149f, 74.85906f), 957) { Fly = true }; - span2[1] = new QuestStep(EInteractionType.Interact, 1044751u, new Vector3(-16.617126f, 56.856533f, 74.052f), 957); + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 1044751u, new Vector3(-16.617126f, 56.856533f, 74.052f), 957); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -327820,7 +398111,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Duty, null, null, 1183) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Duty, null, null, 1183) { DutyOptions = new DutyOptions { @@ -327829,15 +398122,18 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963) { StopDistance = 5f }; @@ -327850,15 +398146,18 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "WigglyMuffin"; + Span span7 = CollectionsMarshal.AsSpan(list7); + index = 0; + span7[index] = "WigglyMuffin"; questRoot2.Author = list7; questRoot2.IsSeasonalQuest = true; questRoot2.SeasonalQuestExpiry = new DateTime(2025, 11, 27, 14, 59, 0, DateTimeKind.Utc); - num = 3; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span3 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span3[0]; + index = 3; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span8[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -327866,7 +398165,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011145u, new Vector3(-65.38495f, 0.06979119f, 0.8086548f), 144) + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011145u, new Vector3(-65.38495f, 0.06979119f, 0.8086548f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, SkipConditions = new SkipConditions @@ -327879,16 +398180,18 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span3[1]; + num++; + ref QuestSequence reference6 = ref span8[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - Span span4 = CollectionsMarshal.AsSpan(list10); - span4[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(2.900159f, 20.999727f, 59.821472f), 144) + index2 = 2; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(2.900159f, 20.999727f, 59.821472f), 144) { AethernetShortcut = new AethernetShortcut { @@ -327900,12 +398203,15 @@ public static class AssemblyQuestLoader Position = new Vector3(7.2141614f, 3.9997299f, 60.4036f) } }; - ref QuestStep reference7 = ref span4[1]; + num2++; + ref QuestStep reference7 = ref span10[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1046442u, new Vector3(1.87677f, 3.9997296f, 66.60559f), 144); int num3 = 1; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = new DialogueChoice + Span span11 = CollectionsMarshal.AsSpan(list11); + int index3 = 0; + span11[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_SUBGSC901_04801_SYSTEM_000_011") @@ -327914,7 +398220,8 @@ public static class AssemblyQuestLoader reference7 = questStep; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference8 = ref span3[2]; + num++; + ref QuestSequence reference8 = ref span8[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue @@ -327922,7 +398229,9 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046439u, new Vector3(-17.868408f, -3.8732372E-12f, -37.857666f), 1197); + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046439u, new Vector3(-17.868408f, -3.8732372E-12f, -37.857666f), 1197); obj7.Steps = list12; reference8 = obj7; questRoot2.QuestSequence = list8; @@ -327932,21 +398241,26 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "CryoTechnic"; + Span span13 = CollectionsMarshal.AsSpan(list13); + index = 0; + span13[index] = "CryoTechnic"; questRoot3.Author = list13; - num = 3; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span5 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference9 = ref span5[0]; + index = 3; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference9 = ref span14[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -327957,7 +398271,8 @@ public static class AssemblyQuestLoader }; obj8.Steps = list15; reference9 = obj8; - ref QuestSequence reference10 = ref span5[1]; + num++; + ref QuestSequence reference10 = ref span14[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 @@ -327965,7 +398280,9 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) { AethernetShortcut = new AethernetShortcut { @@ -327984,15 +398301,18 @@ public static class AssemblyQuestLoader }; obj9.Steps = list16; reference10 = obj9; - ref QuestSequence reference11 = ref span5[2]; + num++; + ref QuestSequence reference11 = ref span14[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -328010,13 +398330,16 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "CryoTechnic"; + Span span18 = CollectionsMarshal.AsSpan(list18); + index = 0; + span18[index] = "CryoTechnic"; questRoot4.Author = list18; - num = 3; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span6 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference12 = ref span6[0]; + index = 3; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + Span span19 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference12 = ref span19[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -328024,7 +398347,9 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -328035,15 +398360,18 @@ public static class AssemblyQuestLoader }; obj11.Steps = list20; reference12 = obj11; - ref QuestSequence reference13 = ref span6[1]; + num++; + ref QuestSequence reference13 = ref span19[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) { AethernetShortcut = new AethernetShortcut { @@ -328062,7 +398390,8 @@ public static class AssemblyQuestLoader }; obj12.Steps = list21; reference13 = obj12; - ref QuestSequence reference14 = ref span6[2]; + num++; + ref QuestSequence reference14 = ref span19[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -328070,7 +398399,9 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -328088,21 +398419,26 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "liza"; + Span span23 = CollectionsMarshal.AsSpan(list23); + index = 0; + span23[index] = "liza"; questRoot5.Author = list23; - num = 6; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span7 = CollectionsMarshal.AsSpan(list24); - ref QuestSequence reference15 = ref span7[0]; + index = 6; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + Span span24 = CollectionsMarshal.AsSpan(list24); + num = 0; + ref QuestSequence reference15 = ref span24[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -328115,7 +398451,8 @@ public static class AssemblyQuestLoader }; obj14.Steps = list25; reference15 = obj14; - ref QuestSequence reference16 = ref span7[1]; + num++; + ref QuestSequence reference16 = ref span24[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -328123,7 +398460,9 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1046136u, new Vector3(-341.39008f, 22.3f, -103.74609f), 962) + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.Interact, 1046136u, new Vector3(-341.39008f, 22.3f, -103.74609f), 962) { AethernetShortcut = new AethernetShortcut { @@ -328133,21 +398472,25 @@ public static class AssemblyQuestLoader }; obj15.Steps = list26; reference16 = obj15; - ref QuestSequence reference17 = ref span7[2]; + num++; + ref QuestSequence reference17 = ref span24[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1046138u, new Vector3(30.960571f, 5.1499996f, -66.88031f), 962) + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.Interact, 1046138u, new Vector3(30.960571f, 5.1499996f, -66.88031f), 962) { StopDistance = 7f }; obj16.Steps = list27; reference17 = obj16; - ref QuestSequence reference18 = ref span7[3]; + num++; + ref QuestSequence reference18 = ref span24[num]; QuestSequence obj17 = new QuestSequence { Sequence = 3 @@ -328155,7 +398498,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1046139u, new Vector3(87.63245f, -16.247002f, 123.76587f), 962) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.Interact, 1046139u, new Vector3(87.63245f, -16.247002f, 123.76587f), 962) { AethernetShortcut = new AethernetShortcut { @@ -328165,21 +398510,25 @@ public static class AssemblyQuestLoader }; obj17.Steps = list28; reference18 = obj17; - ref QuestSequence reference19 = ref span7[4]; + num++; + ref QuestSequence reference19 = ref span24[num]; QuestSequence obj18 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1046141u, new Vector3(-133.4707f, 28.049995f, 219.65356f), 963) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.Interact, 1046141u, new Vector3(-133.4707f, 28.049995f, 219.65356f), 963) { StopDistance = 5f }; obj18.Steps = list29; reference19 = obj18; - ref QuestSequence reference20 = ref span7[5]; + num++; + ref QuestSequence reference20 = ref span24[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -328187,7 +398536,9 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.CompleteQuest, 2013721u, new Vector3(406.30188f, 13.01593f, -299.8551f), 957) + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new QuestStep(EInteractionType.CompleteQuest, 2013721u, new Vector3(406.30188f, 13.01593f, -299.8551f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand, @@ -328202,21 +398553,26 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "liza"; + Span span31 = CollectionsMarshal.AsSpan(list31); + index = 0; + span31[index] = "liza"; questRoot6.Author = list31; - num = 7; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span8 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference21 = ref span8[0]; + index = 7; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + Span span32 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference21 = ref span32[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046203u, new Vector3(406.42407f, 3.1168795f, -272.26672f), 957) + index2 = 1; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046203u, new Vector3(406.42407f, 3.1168795f, -272.26672f), 957) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand, @@ -328230,7 +398586,8 @@ public static class AssemblyQuestLoader }; obj20.Steps = list33; reference21 = obj20; - ref QuestSequence reference22 = ref span8[1]; + num++; + ref QuestSequence reference22 = ref span32[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -328238,66 +398595,91 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1046203u, new Vector3(406.42407f, 3.1168795f, -272.26672f), 957) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.Interact, 1046203u, new Vector3(406.42407f, 3.1168795f, -272.26672f), 957) { StopDistance = 5f }; obj21.Steps = list34; reference22 = obj21; - ref QuestSequence reference23 = ref span8[2]; + num++; + ref QuestSequence reference23 = ref span32[num]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span9 = CollectionsMarshal.AsSpan(list35); - ref QuestStep reference24 = ref span9[0]; + index2 = 3; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + ref QuestStep reference24 = ref span35[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1037703u, new Vector3(423.7887f, 3.1168795f, -269.73376f), 957); - num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span10 = CollectionsMarshal.AsSpan(list36); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + Span span36 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = null; + num3++; + span36[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list36; reference24 = questStep2; - ref QuestStep reference25 = ref span9[1]; + num2++; + ref QuestStep reference25 = ref span35[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1037707u, new Vector3(432.02856f, 5.912681f, -225.20789f), 957); num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span11 = CollectionsMarshal.AsSpan(list37); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span37 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list37; reference25 = questStep3; - ref QuestStep reference26 = ref span9[2]; + num2++; + ref QuestStep reference26 = ref span35[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1039517u, new Vector3(376.6078f, 5.709401f, -220.50812f), 957); - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span12 = CollectionsMarshal.AsSpan(list38); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list38; reference26 = questStep4; obj22.Steps = list35; reference23 = obj22; - ref QuestSequence reference27 = ref span8[3]; + num++; + ref QuestSequence reference27 = ref span32[num]; QuestSequence obj23 = new QuestSequence { Sequence = 3 @@ -328305,28 +398687,34 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1046203u, new Vector3(545.292f, 10.612534f, 232.90868f), 957) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.Interact, 1046203u, new Vector3(545.292f, 10.612534f, 232.90868f), 957) { StopDistance = 0.5f, Fly = true }; obj23.Steps = list39; reference27 = obj23; - ref QuestSequence reference28 = ref span8[4]; + num++; + ref QuestSequence reference28 = ref span32[num]; QuestSequence obj24 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1037630u, new Vector3(401.8158f, 3.1168792f, -273.76215f), 957) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.Interact, 1037630u, new Vector3(401.8158f, 3.1168792f, -273.76215f), 957) { StopDistance = 7f }; obj24.Steps = list40; reference28 = obj24; - ref QuestSequence reference29 = ref span8[5]; + num++; + ref QuestSequence reference29 = ref span32[num]; QuestSequence obj25 = new QuestSequence { Sequence = 5 @@ -328334,21 +398722,26 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.Interact, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan }; obj25.Steps = list41; reference29 = obj25; - ref QuestSequence reference30 = ref span8[6]; + num++; + ref QuestSequence reference30 = ref span32[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962); + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962); obj26.Steps = list42; reference30 = obj26; questRoot6.QuestSequence = list32; @@ -328358,13 +398751,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "liza"; + Span span43 = CollectionsMarshal.AsSpan(list43); + index = 0; + span43[index] = "liza"; questRoot7.Author = list43; - num = 3; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span13 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference31 = ref span13[0]; + index = 3; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + Span span44 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference31 = ref span44[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -328372,7 +398768,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046399u, new Vector3(130.05261f, -16.077408f, 190.72253f), 962) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046399u, new Vector3(130.05261f, -16.077408f, 190.72253f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -328390,22 +398788,26 @@ public static class AssemblyQuestLoader }; obj27.Steps = list45; reference31 = obj27; - ref QuestSequence reference32 = ref span13[1]; + num++; + ref QuestSequence reference32 = ref span44[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1046401u, new Vector3(92.27124f, -29.53f, -6.607239f), 956) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.Interact, 1046401u, new Vector3(92.27124f, -29.53f, -6.607239f), 956) { Fly = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet }; obj28.Steps = list46; reference32 = obj28; - ref QuestSequence reference33 = ref span13[2]; + num++; + ref QuestSequence reference33 = ref span44[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -328413,7 +398815,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046403u, new Vector3(-31.99823f, -31.53043f, -53.26935f), 956) + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046403u, new Vector3(-31.99823f, -31.53043f, -53.26935f), 956) { Fly = true }; @@ -328426,21 +398830,26 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "kaiser"; + Span span48 = CollectionsMarshal.AsSpan(list48); + index = 0; + span48[index] = "kaiser"; questRoot8.Author = list48; - num = 4; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span14 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference34 = ref span14[0]; + index = 4; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + Span span49 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference34 = ref span49[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046073u, new Vector3(-53.635498f, -29.497286f, -65.14081f), 956) + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046073u, new Vector3(-53.635498f, -29.497286f, -65.14081f), 956) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet, @@ -328459,7 +398868,8 @@ public static class AssemblyQuestLoader }; obj30.Steps = list50; reference34 = obj30; - ref QuestSequence reference35 = ref span14[1]; + num++; + ref QuestSequence reference35 = ref span49[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -328467,22 +398877,27 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1046404u, new Vector3(-707.6982f, -31.53043f, 280.38452f), 956) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.Interact, 1046404u, new Vector3(-707.6982f, -31.53043f, 280.38452f), 956) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; obj31.Steps = list51; reference35 = obj31; - ref QuestSequence reference36 = ref span14[2]; + num++; + ref QuestSequence reference36 = ref span49[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - ref QuestStep reference37 = ref CollectionsMarshal.AsSpan(list52)[0]; + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + ref QuestStep reference37 = ref span52[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1046073u, new Vector3(-53.635498f, -29.497286f, -65.14081f), 956) { StopDistance = 5f, @@ -328503,7 +398918,9 @@ public static class AssemblyQuestLoader num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice + Span span53 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span53[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_SUBCTS606_04816_Q2_000_055") @@ -328512,7 +398929,8 @@ public static class AssemblyQuestLoader reference37 = obj33; obj32.Steps = list52; reference36 = obj32; - ref QuestSequence reference38 = ref span14[3]; + num++; + ref QuestSequence reference38 = ref span49[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -328520,7 +398938,9 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046073u, new Vector3(-53.635498f, -29.497286f, -65.14081f), 956) + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046073u, new Vector3(-53.635498f, -29.497286f, -65.14081f), 956) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet, @@ -328546,27 +398966,33 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - CollectionsMarshal.AsSpan(list55)[0] = "liza"; + Span span55 = CollectionsMarshal.AsSpan(list55); + index = 0; + span55[index] = "liza"; questRoot9.Author = list55; - num = 3; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span15 = CollectionsMarshal.AsSpan(list56); - ref QuestSequence reference39 = ref span15[0]; + index = 3; + List list56 = new List(index); + CollectionsMarshal.SetCount(list56, index); + Span span56 = CollectionsMarshal.AsSpan(list56); + num = 0; + ref QuestSequence reference39 = ref span56[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) { StopDistance = 5f }; obj35.Steps = list57; reference39 = obj35; - ref QuestSequence reference40 = ref span15[1]; + num++; + ref QuestSequence reference40 = ref span56[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -328574,18 +399000,23 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 2014140u, new Vector3(-30.960571f, -17.47168f, 191.36328f), 1185); + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.Interact, 2014140u, new Vector3(-30.960571f, -17.47168f, 191.36328f), 1185); obj36.Steps = list58; reference40 = obj36; - ref QuestSequence reference41 = ref span15[2]; + num++; + ref QuestSequence reference41 = ref span56[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185); + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185); obj37.Steps = list59; reference41 = obj37; questRoot9.QuestSequence = list56; @@ -328595,13 +399026,16 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - CollectionsMarshal.AsSpan(list60)[0] = "liza"; + Span span60 = CollectionsMarshal.AsSpan(list60); + index = 0; + span60[index] = "liza"; questRoot10.Author = list60; - num = 5; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span16 = CollectionsMarshal.AsSpan(list61); - ref QuestSequence reference42 = ref span16[0]; + index = 5; + List list61 = new List(index); + CollectionsMarshal.SetCount(list61, index); + Span span61 = CollectionsMarshal.AsSpan(list61); + num = 0; + ref QuestSequence reference42 = ref span61[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -328609,7 +399043,9 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048252u, new Vector3(-21.683167f, -19.328289f, 203.14331f), 1185) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048252u, new Vector3(-21.683167f, -19.328289f, 203.14331f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -328622,16 +399058,18 @@ public static class AssemblyQuestLoader }; obj38.Steps = list62; reference42 = obj38; - ref QuestSequence reference43 = ref span16[1]; + num++; + ref QuestSequence reference43 = ref span61[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span17 = CollectionsMarshal.AsSpan(list63); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.44312f, 15.094683f, 33.75105f), 418) + index2 = 2; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.44312f, 15.094683f, 33.75105f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -328640,10 +399078,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - span17[1] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); + num2++; + span63[num2] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); obj39.Steps = list63; reference43 = obj39; - ref QuestSequence reference44 = ref span16[2]; + num++; + ref QuestSequence reference44 = ref span61[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -328651,7 +399091,9 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1048253u, new Vector3(-223.95673f, -16.134916f, -64.2558f), 419) + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.Interact, 1048253u, new Vector3(-223.95673f, -16.134916f, -64.2558f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -328662,15 +399104,18 @@ public static class AssemblyQuestLoader }; obj40.Steps = list64; reference44 = obj40; - ref QuestSequence reference45 = ref span16[3]; + num++; + ref QuestSequence reference45 = ref span61[num]; QuestSequence obj41 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span65[num2] = new QuestStep(EInteractionType.Interact, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) { AethernetShortcut = new AethernetShortcut { @@ -328680,7 +399125,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list65; reference45 = obj41; - ref QuestSequence reference46 = ref span16[4]; + num++; + ref QuestSequence reference46 = ref span61[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -328688,7 +399134,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span66[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) { NextQuestId = new QuestId(4819) }; @@ -328701,21 +399149,26 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "liza"; + Span span67 = CollectionsMarshal.AsSpan(list67); + index = 0; + span67[index] = "liza"; questRoot11.Author = list67; - num = 7; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span18 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference47 = ref span18[0]; + index = 7; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + Span span68 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference47 = ref span68[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -328728,7 +399181,8 @@ public static class AssemblyQuestLoader }; obj43.Steps = list69; reference47 = obj43; - ref QuestSequence reference48 = ref span18[1]; + num++; + ref QuestSequence reference48 = ref span68[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -328736,27 +399190,33 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1006433u, new Vector3(202.80762f, 309.07346f, -220.69128f), 155) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.Interact, 1006433u, new Vector3(202.80762f, 309.07346f, -220.69128f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj44.Steps = list70; reference48 = obj44; - ref QuestSequence reference49 = ref span18[2]; + num++; + ref QuestSequence reference49 = ref span68[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1048260u, new Vector3(39.017212f, 208.71985f, 410.26917f), 155) + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + span71[num2] = new QuestStep(EInteractionType.Interact, 1048260u, new Vector3(39.017212f, 208.71985f, 410.26917f), 155) { Fly = true }; obj45.Steps = list71; reference49 = obj45; - ref QuestSequence reference50 = ref span18[3]; + num++; + ref QuestSequence reference50 = ref span68[num]; QuestSequence obj46 = new QuestSequence { Sequence = 3 @@ -328764,32 +399224,40 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list72)[0]; + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + ref QuestStep reference51 = ref span72[index2]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(-20.404095f, 200.07019f, 519.84406f), 155) { Fly = false, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = 17605u; + index3 = 1; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + Span span73 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span73[num3] = 17605u; obj47.KillEnemyDataIds = list73; reference51 = obj47; obj46.Steps = list72; reference50 = obj46; - ref QuestSequence reference52 = ref span18[4]; + num++; + ref QuestSequence reference52 = ref span68[num]; QuestSequence obj48 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1048261u, new Vector3(-19.424805f, 197.58359f, 527.5502f), 155); + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.Interact, 1048261u, new Vector3(-19.424805f, 197.58359f, 527.5502f), 155); obj48.Steps = list74; reference52 = obj48; - ref QuestSequence reference53 = ref span18[5]; + num++; + ref QuestSequence reference53 = ref span68[num]; QuestSequence obj49 = new QuestSequence { Sequence = 5 @@ -328797,7 +399265,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.Interact, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -328808,15 +399278,18 @@ public static class AssemblyQuestLoader }; obj49.Steps = list75; reference53 = obj49; - ref QuestSequence reference54 = ref span18[6]; + num++; + ref QuestSequence reference54 = ref span68[num]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) { NextQuestId = new QuestId(4820) }; @@ -328829,13 +399302,16 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "liza"; + Span span77 = CollectionsMarshal.AsSpan(list77); + index = 0; + span77[index] = "liza"; questRoot12.Author = list77; - num = 8; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span19 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference55 = ref span19[0]; + index = 8; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + Span span78 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference55 = ref span78[num]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -328843,7 +399319,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list79)[0]; + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + ref QuestStep reference56 = ref span79[index2]; QuestStep obj52 = new QuestStep(EInteractionType.AcceptQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -328858,7 +399336,9 @@ public static class AssemblyQuestLoader num3 = 1; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = new DialogueChoice + Span span80 = CollectionsMarshal.AsSpan(list80); + index3 = 0; + span80[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA121_04820_Q1_000_000"), @@ -328868,21 +399348,25 @@ public static class AssemblyQuestLoader reference56 = obj52; obj51.Steps = list79; reference55 = obj51; - ref QuestSequence reference57 = ref span19[1]; + num++; + ref QuestSequence reference57 = ref span78[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj53.Steps = list81; reference57 = obj53; - ref QuestSequence reference58 = ref span19[2]; + num++; + ref QuestSequence reference58 = ref span78[num]; QuestSequence obj54 = new QuestSequence { Sequence = 2 @@ -328890,39 +399374,47 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1048270u, new Vector3(459.76953f, 161.99915f, -493.33948f), 397) + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.Interact, 1048270u, new Vector3(459.76953f, 161.99915f, -493.33948f), 397) { Fly = true }; obj54.Steps = list82; reference58 = obj54; - ref QuestSequence reference59 = ref span19[3]; + num++; + ref QuestSequence reference59 = ref span78[num]; QuestSequence obj55 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - Span span20 = CollectionsMarshal.AsSpan(list83); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.6491f, 164.30826f, -541.31744f), 397); - ref QuestStep reference60 = ref span20[1]; + index2 = 2; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.6491f, 164.30826f, -541.31744f), 397); + num2++; + ref QuestStep reference60 = ref span83[num2]; QuestStep obj56 = new QuestStep(EInteractionType.Combat, null, new Vector3(455.58475f, 157.40831f, -558.01215f), 397) { Fly = false, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - Span span21 = CollectionsMarshal.AsSpan(list84); - span21[0] = 17606u; - span21[1] = 17607u; + index3 = 2; + List list84 = new List(index3); + CollectionsMarshal.SetCount(list84, index3); + Span span84 = CollectionsMarshal.AsSpan(list84); + num3 = 0; + span84[num3] = 17606u; + num3++; + span84[num3] = 17607u; obj56.KillEnemyDataIds = list84; reference60 = obj56; obj55.Steps = list83; reference59 = obj55; - ref QuestSequence reference61 = ref span19[4]; + num++; + ref QuestSequence reference61 = ref span78[num]; QuestSequence obj57 = new QuestSequence { Sequence = 4 @@ -328930,21 +399422,26 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1048278u, new Vector3(452.84204f, 157.40831f, -556.87805f), 397) + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.Interact, 1048278u, new Vector3(452.84204f, 157.40831f, -556.87805f), 397) { StopDistance = 7f }; obj57.Steps = list85; reference61 = obj57; - ref QuestSequence reference62 = ref span19[5]; + num++; + ref QuestSequence reference62 = ref span78[num]; QuestSequence obj58 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list86)[0]; + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + ref QuestStep reference63 = ref span86[num2]; QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(466.1211f, 161.96898f, -488.2508f), 397) { Comment = "You automatically spawn triggering combat", @@ -328953,15 +399450,19 @@ public static class AssemblyQuestLoader num3 = 3; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - Span span22 = CollectionsMarshal.AsSpan(list87); - span22[0] = 17608u; - span22[1] = 17609u; - span22[2] = 17610u; + Span span87 = CollectionsMarshal.AsSpan(list87); + index3 = 0; + span87[index3] = 17608u; + index3++; + span87[index3] = 17609u; + index3++; + span87[index3] = 17610u; obj59.KillEnemyDataIds = list87; reference63 = obj59; obj58.Steps = list86; reference62 = obj58; - ref QuestSequence reference64 = ref span19[6]; + num++; + ref QuestSequence reference64 = ref span78[num]; QuestSequence obj60 = new QuestSequence { Sequence = 6 @@ -328969,18 +399470,23 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1048271u, new Vector3(464.3778f, 161.94708f, -488.45657f), 397); + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.Interact, 1048271u, new Vector3(464.3778f, 161.94708f, -488.45657f), 397); obj60.Steps = list88; reference64 = obj60; - ref QuestSequence reference65 = ref span19[7]; + num++; + ref QuestSequence reference65 = ref span78[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -328999,13 +399505,16 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "liza"; + Span span90 = CollectionsMarshal.AsSpan(list90); + index = 0; + span90[index] = "liza"; questRoot13.Author = list90; - num = 5; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span23 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference66 = ref span23[0]; + index = 5; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + Span span91 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference66 = ref span91[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -329013,7 +399522,9 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -329026,50 +399537,66 @@ public static class AssemblyQuestLoader }; obj62.Steps = list92; reference66 = obj62; - ref QuestSequence reference67 = ref span23[1]; + num++; + ref QuestSequence reference67 = ref span91[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span24 = CollectionsMarshal.AsSpan(list93); - ref QuestStep reference68 = ref span24[0]; + index2 = 2; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + ref QuestStep reference68 = ref span93[num2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 2013677u, new Vector3(-226.0014f, -11.520569f, 339.9862f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; - num3 = 6; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span25 = CollectionsMarshal.AsSpan(list94); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + Span span94 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span94[num3] = null; + num3++; + span94[num3] = null; + num3++; + span94[num3] = null; + num3++; + span94[num3] = null; + num3++; + span94[num3] = null; + num3++; + span94[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj64.CompletionQuestVariablesFlags = list94; reference68 = obj64; - ref QuestStep reference69 = ref span24[1]; + num2++; + ref QuestStep reference69 = ref span93[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2013676u, new Vector3(-187.79285f, -10.544006f, 366.99463f), 400); num3 = 6; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - Span span26 = CollectionsMarshal.AsSpan(list95); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span95 = CollectionsMarshal.AsSpan(list95); + index3 = 0; + span95[index3] = null; + index3++; + span95[index3] = null; + index3++; + span95[index3] = null; + index3++; + span95[index3] = null; + index3++; + span95[index3] = null; + index3++; + span95[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list95; reference69 = questStep5; obj63.Steps = list93; reference67 = obj63; - ref QuestSequence reference70 = ref span23[2]; + num++; + ref QuestSequence reference70 = ref span91[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -329077,7 +399604,9 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list96)[0]; + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + ref QuestStep reference71 = ref span96[index2]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, 2013681u, new Vector3(-527.7333f, 147.11218f, 15.27417f), 399) { Fly = true, @@ -329089,23 +399618,28 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - CollectionsMarshal.AsSpan(list97)[0] = 17611u; + index3 = 1; + List list97 = new List(index3); + CollectionsMarshal.SetCount(list97, index3); + Span span97 = CollectionsMarshal.AsSpan(list97); + num3 = 0; + span97[num3] = 17611u; obj66.KillEnemyDataIds = list97; reference71 = obj66; obj65.Steps = list96; reference70 = obj65; - ref QuestSequence reference72 = ref span23[3]; + num++; + ref QuestSequence reference72 = ref span91[num]; QuestSequence obj67 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1048284u, new Vector3(107.80493f, 34.723892f, -8.560364f), 418) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.Interact, 1048284u, new Vector3(107.80493f, 34.723892f, -8.560364f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -329116,7 +399650,8 @@ public static class AssemblyQuestLoader }; obj67.Steps = list98; reference72 = obj67; - ref QuestSequence reference73 = ref span23[4]; + num++; + ref QuestSequence reference73 = ref span91[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -329124,7 +399659,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) { StopDistance = 5f, NextQuestId = new QuestId(4822) @@ -329138,21 +399675,26 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "liza"; + Span span100 = CollectionsMarshal.AsSpan(list100); + index = 0; + span100[index] = "liza"; questRoot14.Author = list100; - num = 5; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span27 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference74 = ref span27[0]; + index = 5; + List list101 = new List(index); + CollectionsMarshal.SetCount(list101, index); + Span span101 = CollectionsMarshal.AsSpan(list101); + num = 0; + ref QuestSequence reference74 = ref span101[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -329166,7 +399708,8 @@ public static class AssemblyQuestLoader }; obj69.Steps = list102; reference74 = obj69; - ref QuestSequence reference75 = ref span27[1]; + num++; + ref QuestSequence reference75 = ref span101[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -329174,66 +399717,92 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span103[index2] = new QuestStep(EInteractionType.Interact, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) { StopDistance = 5f }; obj70.Steps = list103; reference75 = obj70; - ref QuestSequence reference76 = ref span27[2]; + num++; + ref QuestSequence reference76 = ref span101[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - Span span28 = CollectionsMarshal.AsSpan(list104); - ref QuestStep reference77 = ref span28[0]; + index2 = 3; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + ref QuestStep reference77 = ref span104[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1048286u, new Vector3(106.248535f, 34.723896f, 4.257263f), 418); num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span29 = CollectionsMarshal.AsSpan(list105); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span105 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list105; reference77 = questStep6; - ref QuestStep reference78 = ref span28[1]; + num2++; + ref QuestStep reference78 = ref span104[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1048285u, new Vector3(-21.316895f, 5.504703f, 37.64392f), 418); - num3 = 6; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span30 = CollectionsMarshal.AsSpan(list106); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list106 = new List(index3); + CollectionsMarshal.SetCount(list106, index3); + Span span106 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = null; + num3++; + span106[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list106; reference78 = questStep7; - ref QuestStep reference79 = ref span28[2]; + num2++; + ref QuestStep reference79 = ref span104[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1048287u, new Vector3(-65.049255f, 18.457891f, -77.04285f), 418); num3 = 6; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span31 = CollectionsMarshal.AsSpan(list107); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span107 = CollectionsMarshal.AsSpan(list107); + index3 = 0; + span107[index3] = null; + index3++; + span107[index3] = null; + index3++; + span107[index3] = null; + index3++; + span107[index3] = null; + index3++; + span107[index3] = null; + index3++; + span107[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list107; - num3 = 1; - List list108 = new List(num3); - CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = new DialogueChoice + index3 = 1; + List list108 = new List(index3); + CollectionsMarshal.SetCount(list108, index3); + Span span108 = CollectionsMarshal.AsSpan(list108); + num3 = 0; + span108[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA141_04822_Q1_000_000"), @@ -329243,7 +399812,8 @@ public static class AssemblyQuestLoader reference79 = questStep8; obj71.Steps = list104; reference76 = obj71; - ref QuestSequence reference80 = ref span27[3]; + num++; + ref QuestSequence reference80 = ref span101[num]; QuestSequence obj72 = new QuestSequence { Sequence = 3 @@ -329251,7 +399821,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AethernetShortcut = new AethernetShortcut { @@ -329261,20 +399833,25 @@ public static class AssemblyQuestLoader }; obj72.Steps = list109; reference80 = obj72; - ref QuestSequence reference81 = ref span27[4]; + num++; + ref QuestSequence reference81 = ref span101[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list110)[0]; + index2 = 1; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + ref QuestStep reference82 = ref span110[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.CompleteQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418); num3 = 1; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = new DialogueChoice + Span span111 = CollectionsMarshal.AsSpan(list111); + index3 = 0; + span111[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA141_04822_Q3_000_000"), @@ -329292,13 +399869,16 @@ public static class AssemblyQuestLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - CollectionsMarshal.AsSpan(list112)[0] = "liza"; + Span span112 = CollectionsMarshal.AsSpan(list112); + index = 0; + span112[index] = "liza"; questRoot15.Author = list112; - num = 7; - List list113 = new List(num); - CollectionsMarshal.SetCount(list113, num); - Span span32 = CollectionsMarshal.AsSpan(list113); - ref QuestSequence reference83 = ref span32[0]; + index = 7; + List list113 = new List(index); + CollectionsMarshal.SetCount(list113, index); + Span span113 = CollectionsMarshal.AsSpan(list113); + num = 0; + ref QuestSequence reference83 = ref span113[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -329306,7 +399886,9 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -329319,21 +399901,25 @@ public static class AssemblyQuestLoader }; obj74.Steps = list114; reference83 = obj74; - ref QuestSequence reference84 = ref span32[1]; + num++; + ref QuestSequence reference84 = ref span113[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + index2 = 1; + List list115 = new List(index2); + CollectionsMarshal.SetCount(list115, index2); + Span span115 = CollectionsMarshal.AsSpan(list115); + num2 = 0; + span115[num2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj75.Steps = list115; reference84 = obj75; - ref QuestSequence reference85 = ref span32[2]; + num++; + ref QuestSequence reference85 = ref span113[num]; QuestSequence obj76 = new QuestSequence { Sequence = 2 @@ -329341,32 +399927,39 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048288u, new Vector3(-576.3485f, -52.88129f, -418.6618f), 401) + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048288u, new Vector3(-576.3485f, -52.88129f, -418.6618f), 401) { StopDistance = 5f, Comment = "Dreams of a New Day" }; obj76.Steps = list116; reference85 = obj76; - span32[3] = new QuestSequence + num++; + span113[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference86 = ref span32[4]; + num++; + ref QuestSequence reference86 = ref span113[num]; QuestSequence obj77 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1048290u, new Vector3(-781.796f, -90.0236f, -759.7925f), 401) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.Interact, 1048290u, new Vector3(-781.796f, -90.0236f, -759.7925f), 401) { StopDistance = 5f }; obj77.Steps = list117; reference86 = obj77; - ref QuestSequence reference87 = ref span32[5]; + num++; + ref QuestSequence reference87 = ref span113[num]; QuestSequence obj78 = new QuestSequence { Sequence = 5 @@ -329374,7 +399967,9 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span118[index2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -329385,15 +399980,18 @@ public static class AssemblyQuestLoader }; obj78.Steps = list118; reference87 = obj78; - ref QuestSequence reference88 = ref span32[6]; + num++; + ref QuestSequence reference88 = ref span113[num]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048252u, new Vector3(-21.683167f, -19.328289f, 203.14331f), 1185) + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span119[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048252u, new Vector3(-21.683167f, -19.328289f, 203.14331f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -329411,13 +400009,16 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - CollectionsMarshal.AsSpan(list120)[0] = "liza"; + Span span120 = CollectionsMarshal.AsSpan(list120); + index = 0; + span120[index] = "liza"; questRoot16.Author = list120; - num = 8; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - Span span33 = CollectionsMarshal.AsSpan(list121); - ref QuestSequence reference89 = ref span33[0]; + index = 8; + List list121 = new List(index); + CollectionsMarshal.SetCount(list121, index); + Span span121 = CollectionsMarshal.AsSpan(list121); + num = 0; + ref QuestSequence reference89 = ref span121[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 @@ -329425,7 +400026,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046289u, new Vector3(-64.62195f, -17.95485f, 201.28174f), 1185) + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046289u, new Vector3(-64.62195f, -17.95485f, 201.28174f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -329438,15 +400041,18 @@ public static class AssemblyQuestLoader }; obj80.Steps = list122; reference89 = obj80; - ref QuestSequence reference90 = ref span33[1]; + num++; + ref QuestSequence reference90 = ref span121[num]; QuestSequence obj81 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1046291u, new Vector3(-409.07916f, 3.9999695f, 14.846985f), 129) + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span123[num2] = new QuestStep(EInteractionType.Interact, 1046291u, new Vector3(-409.07916f, 3.9999695f, 14.846985f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -329457,7 +400063,8 @@ public static class AssemblyQuestLoader }; obj81.Steps = list123; reference90 = obj81; - ref QuestSequence reference91 = ref span33[2]; + num++; + ref QuestSequence reference91 = ref span121[num]; QuestSequence obj82 = new QuestSequence { Sequence = 2 @@ -329465,9 +400072,11 @@ public static class AssemblyQuestLoader num2 = 2; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span34 = CollectionsMarshal.AsSpan(list124); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-387.69412f, 5.999984f, 41.170013f), 129); - span34[1] = new QuestStep(EInteractionType.Interact, 1046292u, new Vector3(-195.36127f, 19.999954f, 112.962524f), 129) + Span span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span124[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-387.69412f, 5.999984f, 41.170013f), 129); + index2++; + span124[index2] = new QuestStep(EInteractionType.Interact, 1046292u, new Vector3(-195.36127f, 19.999954f, 112.962524f), 129) { AethernetShortcut = new AethernetShortcut { @@ -329477,60 +400086,83 @@ public static class AssemblyQuestLoader }; obj82.Steps = list124; reference91 = obj82; - ref QuestSequence reference92 = ref span33[3]; + num++; + ref QuestSequence reference92 = ref span121[num]; QuestSequence obj83 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - Span span35 = CollectionsMarshal.AsSpan(list125); - ref QuestStep reference93 = ref span35[0]; + index2 = 3; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num2 = 0; + ref QuestStep reference93 = ref span125[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1001540u, new Vector3(-202.68567f, 16f, 56.99243f), 129); - num3 = 6; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - Span span36 = CollectionsMarshal.AsSpan(list126); - span36[0] = null; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list126 = new List(index3); + CollectionsMarshal.SetCount(list126, index3); + Span span126 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list126; reference93 = questStep10; - ref QuestStep reference94 = ref span35[1]; + num2++; + ref QuestStep reference94 = ref span125[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1003272u, new Vector3(-262.92822f, 16.2f, 51.407593f), 129); num3 = 6; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - Span span37 = CollectionsMarshal.AsSpan(list127); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span127 = CollectionsMarshal.AsSpan(list127); + index3 = 0; + span127[index3] = null; + index3++; + span127[index3] = null; + index3++; + span127[index3] = null; + index3++; + span127[index3] = null; + index3++; + span127[index3] = null; + index3++; + span127[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list127; reference94 = questStep11; - ref QuestStep reference95 = ref span35[2]; + num2++; + ref QuestStep reference95 = ref span125[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1003277u, new Vector3(-136.67511f, 18.2f, 16.494995f), 129); - num3 = 6; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - Span span38 = CollectionsMarshal.AsSpan(list128); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list128 = new List(index3); + CollectionsMarshal.SetCount(list128, index3); + Span span128 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = null; + num3++; + span128[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list128; reference95 = questStep12; obj83.Steps = list125; reference92 = obj83; - ref QuestSequence reference96 = ref span33[4]; + num++; + ref QuestSequence reference96 = ref span121[num]; QuestSequence obj84 = new QuestSequence { Sequence = 4 @@ -329538,7 +400170,9 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1046293u, new Vector3(-143.35852f, 3.9999998f, 189.6543f), 129) + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.Interact, 1046293u, new Vector3(-143.35852f, 3.9999998f, 189.6543f), 129) { AethernetShortcut = new AethernetShortcut { @@ -329548,21 +400182,25 @@ public static class AssemblyQuestLoader }; obj84.Steps = list129; reference96 = obj84; - ref QuestSequence reference97 = ref span33[5]; + num++; + ref QuestSequence reference97 = ref span121[num]; QuestSequence obj85 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1046294u, new Vector3(-115.19043f, 20f, 111.95532f), 129) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.Interact, 1046294u, new Vector3(-115.19043f, 20f, 111.95532f), 129) { StopDistance = 1f }; obj85.Steps = list130; reference97 = obj85; - ref QuestSequence reference98 = ref span33[6]; + num++; + ref QuestSequence reference98 = ref span121[num]; QuestSequence obj86 = new QuestSequence { Sequence = 6 @@ -329570,22 +400208,27 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Action, 1046296u, new Vector3(-114.42743f, 20f, 111.283936f), 129) + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.Action, 1046296u, new Vector3(-114.42743f, 20f, 111.283936f), 129) { StopDistance = 10f, Action = EAction.Esuna }; obj86.Steps = list131; reference98 = obj86; - ref QuestSequence reference99 = ref span33[7]; + num++; + ref QuestSequence reference99 = ref span121[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { NextQuestId = new QuestId(4825) }; @@ -329598,13 +400241,16 @@ public static class AssemblyQuestLoader num = 1; List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - CollectionsMarshal.AsSpan(list133)[0] = "liza"; + Span span133 = CollectionsMarshal.AsSpan(list133); + index = 0; + span133[index] = "liza"; questRoot17.Author = list133; - num = 7; - List list134 = new List(num); - CollectionsMarshal.SetCount(list134, num); - Span span39 = CollectionsMarshal.AsSpan(list134); - ref QuestSequence reference100 = ref span39[0]; + index = 7; + List list134 = new List(index); + CollectionsMarshal.SetCount(list134, index); + Span span134 = CollectionsMarshal.AsSpan(list134); + num = 0; + ref QuestSequence reference100 = ref span134[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -329612,7 +400258,9 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -329625,21 +400273,25 @@ public static class AssemblyQuestLoader }; obj88.Steps = list135; reference100 = obj88; - ref QuestSequence reference101 = ref span39[1]; + num++; + ref QuestSequence reference101 = ref span134[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1047092u, new Vector3(297.38306f, -33.02986f, 284.99268f), 138) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.Interact, 1047092u, new Vector3(297.38306f, -33.02986f, 284.99268f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj89.Steps = list136; reference101 = obj89; - ref QuestSequence reference102 = ref span39[2]; + num++; + ref QuestSequence reference102 = ref span134[num]; QuestSequence obj90 = new QuestSequence { Sequence = 2 @@ -329647,21 +400299,26 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1046297u, new Vector3(211.68835f, -25.006758f, 230.85376f), 138) + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.Interact, 1046297u, new Vector3(211.68835f, -25.006758f, 230.85376f), 138) { Fly = true }; obj90.Steps = list137; reference102 = obj90; - ref QuestSequence reference103 = ref span39[3]; + num++; + ref QuestSequence reference103 = ref span134[num]; QuestSequence obj91 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - ref QuestStep reference104 = ref CollectionsMarshal.AsSpan(list138)[0]; + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + ref QuestStep reference104 = ref span138[num2]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, null, new Vector3(465.86716f, 11.231914f, 326.10486f), 138) { StopDistance = 0.25f, @@ -329671,14 +400328,17 @@ public static class AssemblyQuestLoader num3 = 2; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - Span span40 = CollectionsMarshal.AsSpan(list139); - span40[0] = 17612u; - span40[1] = 17613u; + Span span139 = CollectionsMarshal.AsSpan(list139); + index3 = 0; + span139[index3] = 17612u; + index3++; + span139[index3] = 17613u; obj92.KillEnemyDataIds = list139; reference104 = obj92; obj91.Steps = list138; reference103 = obj91; - ref QuestSequence reference105 = ref span39[4]; + num++; + ref QuestSequence reference105 = ref span134[num]; QuestSequence obj93 = new QuestSequence { Sequence = 4 @@ -329686,28 +400346,34 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1046302u, new Vector3(465.50684f, 11.444184f, 330.89185f), 138) + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.Interact, 1046302u, new Vector3(465.50684f, 11.444184f, 330.89185f), 138) { StopDistance = 7f }; obj93.Steps = list140; reference105 = obj93; - ref QuestSequence reference106 = ref span39[5]; + num++; + ref QuestSequence reference106 = ref span134[num]; QuestSequence obj94 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Action, 1046303u, new Vector3(462.39404f, 11.569952f, 329.57947f), 138) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span141[num2] = new QuestStep(EInteractionType.Action, 1046303u, new Vector3(462.39404f, 11.569952f, 329.57947f), 138) { StopDistance = 10f, Action = EAction.Esuna }; obj94.Steps = list141; reference106 = obj94; - ref QuestSequence reference107 = ref span39[6]; + num++; + ref QuestSequence reference107 = ref span134[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -329715,7 +400381,9 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + Span span142 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span142[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, NextQuestId = new QuestId(4826) @@ -329729,21 +400397,26 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; + Span span143 = CollectionsMarshal.AsSpan(list143); + index = 0; + span143[index] = "liza"; questRoot18.Author = list143; - num = 6; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span41 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference108 = ref span41[0]; + index = 6; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + Span span144 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference108 = ref span144[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span145[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -329756,7 +400429,8 @@ public static class AssemblyQuestLoader }; obj96.Steps = list145; reference108 = obj96; - ref QuestSequence reference109 = ref span41[1]; + num++; + ref QuestSequence reference109 = ref span144[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -329764,27 +400438,33 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1046307u, new Vector3(216.84595f, 14.096056f, 660.3646f), 135) + Span span146 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span146[index2] = new QuestStep(EInteractionType.Interact, 1046307u, new Vector3(216.84595f, 14.096056f, 660.3646f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj97.Steps = list146; reference109 = obj97; - ref QuestSequence reference110 = ref span41[2]; + num++; + ref QuestSequence reference110 = ref span144[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1046309u, new Vector3(106.7063f, 22.880846f, 618.4634f), 135) + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span147 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span147[num2] = new QuestStep(EInteractionType.Interact, 1046309u, new Vector3(106.7063f, 22.880846f, 618.4634f), 135) { Fly = true }; obj98.Steps = list147; reference110 = obj98; - ref QuestSequence reference111 = ref span41[3]; + num++; + ref QuestSequence reference111 = ref span144[num]; QuestSequence obj99 = new QuestSequence { Sequence = 3 @@ -329792,26 +400472,33 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1046308u, new Vector3(217.39526f, 14.096056f, 658.7776f), 135) + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span148[index2] = new QuestStep(EInteractionType.Interact, 1046308u, new Vector3(217.39526f, 14.096056f, 658.7776f), 135) { Fly = true }; obj99.Steps = list148; reference111 = obj99; - ref QuestSequence reference112 = ref span41[4]; + num++; + ref QuestSequence reference112 = ref span144[num]; QuestSequence obj100 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list149)[0]; + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + ref QuestStep reference113 = ref span149[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1046307u, new Vector3(216.84595f, 14.096056f, 660.3646f), 135); - num3 = 1; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = new DialogueChoice + index3 = 1; + List list150 = new List(index3); + CollectionsMarshal.SetCount(list150, index3); + Span span150 = CollectionsMarshal.AsSpan(list150); + num3 = 0; + span150[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA221_04826_Q1_000_048"), @@ -329821,7 +400508,8 @@ public static class AssemblyQuestLoader reference113 = questStep13; obj100.Steps = list149; reference112 = obj100; - ref QuestSequence reference114 = ref span41[5]; + num++; + ref QuestSequence reference114 = ref span144[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -329829,7 +400517,9 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, NextQuestId = new QuestId(4827) @@ -329843,21 +400533,26 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = "liza"; + Span span152 = CollectionsMarshal.AsSpan(list152); + index = 0; + span152[index] = "liza"; questRoot19.Author = list152; - num = 6; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span42 = CollectionsMarshal.AsSpan(list153); - ref QuestSequence reference115 = ref span42[0]; + index = 6; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + Span span153 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref QuestSequence reference115 = ref span153[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -329870,7 +400565,8 @@ public static class AssemblyQuestLoader }; obj102.Steps = list154; reference115 = obj102; - ref QuestSequence reference116 = ref span42[1]; + num++; + ref QuestSequence reference116 = ref span153[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -329878,27 +400574,33 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1046310u, new Vector3(268.39087f, -25f, 264.05737f), 138) + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new QuestStep(EInteractionType.Interact, 1046310u, new Vector3(268.39087f, -25f, 264.05737f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj103.Steps = list155; reference116 = obj103; - ref QuestSequence reference117 = ref span42[2]; + num++; + ref QuestSequence reference117 = ref span153[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1046311u, new Vector3(384.60352f, 0.14576934f, 74.32666f), 139) + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.Interact, 1046311u, new Vector3(384.60352f, 0.14576934f, 74.32666f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; obj104.Steps = list156; reference117 = obj104; - ref QuestSequence reference118 = ref span42[3]; + num++; + ref QuestSequence reference118 = ref span153[num]; QuestSequence obj105 = new QuestSequence { Sequence = 3 @@ -329906,8 +400608,9 @@ public static class AssemblyQuestLoader num2 = 3; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span43 = CollectionsMarshal.AsSpan(list157); - ref QuestStep reference119 = ref span43[0]; + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + ref QuestStep reference119 = ref span157[index2]; QuestStep obj106 = new QuestStep(EInteractionType.Action, 1046314u, new Vector3(457.60278f, 4.1072555f, 103.89868f), 139) { Action = EAction.Esuna @@ -329915,33 +400618,47 @@ public static class AssemblyQuestLoader num3 = 6; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - Span span44 = CollectionsMarshal.AsSpan(list158); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span158 = CollectionsMarshal.AsSpan(list158); + index3 = 0; + span158[index3] = null; + index3++; + span158[index3] = null; + index3++; + span158[index3] = null; + index3++; + span158[index3] = null; + index3++; + span158[index3] = null; + index3++; + span158[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj106.CompletionQuestVariablesFlags = list158; reference119 = obj106; - ref QuestStep reference120 = ref span43[1]; + index2++; + ref QuestStep reference120 = ref span157[index2]; QuestStep obj107 = new QuestStep(EInteractionType.Action, 1046313u, new Vector3(432.6084f, 8.108173f, 133.80627f), 139) { Action = EAction.Esuna }; - num3 = 6; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - Span span45 = CollectionsMarshal.AsSpan(list159); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list159 = new List(index3); + CollectionsMarshal.SetCount(list159, index3); + Span span159 = CollectionsMarshal.AsSpan(list159); + num3 = 0; + span159[num3] = null; + num3++; + span159[num3] = null; + num3++; + span159[num3] = null; + num3++; + span159[num3] = null; + num3++; + span159[num3] = null; + num3++; + span159[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj107.CompletionQuestVariablesFlags = list159; reference120 = obj107; - ref QuestStep reference121 = ref span43[2]; + index2++; + ref QuestStep reference121 = ref span157[index2]; QuestStep obj108 = new QuestStep(EInteractionType.Action, 1046312u, new Vector3(413.0464f, 3.616333f, 113.969604f), 139) { Action = EAction.Esuna @@ -329949,29 +400666,39 @@ public static class AssemblyQuestLoader num3 = 6; List list160 = new List(num3); CollectionsMarshal.SetCount(list160, num3); - Span span46 = CollectionsMarshal.AsSpan(list160); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span160 = CollectionsMarshal.AsSpan(list160); + index3 = 0; + span160[index3] = null; + index3++; + span160[index3] = null; + index3++; + span160[index3] = null; + index3++; + span160[index3] = null; + index3++; + span160[index3] = null; + index3++; + span160[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj108.CompletionQuestVariablesFlags = list160; reference121 = obj108; obj105.Steps = list157; reference118 = obj105; - ref QuestSequence reference122 = ref span42[4]; + num++; + ref QuestSequence reference122 = ref span153[num]; QuestSequence obj109 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1046316u, new Vector3(415.8236f, 8.12099f, 40.72632f), 139); + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + Span span161 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span161[num2] = new QuestStep(EInteractionType.Interact, 1046316u, new Vector3(415.8236f, 8.12099f, 40.72632f), 139); obj109.Steps = list161; reference122 = obj109; - ref QuestSequence reference123 = ref span42[5]; + num++; + ref QuestSequence reference123 = ref span153[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -329979,7 +400706,9 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, NextQuestId = new QuestId(4828) @@ -329993,21 +400722,26 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - CollectionsMarshal.AsSpan(list163)[0] = "liza"; + Span span163 = CollectionsMarshal.AsSpan(list163); + index = 0; + span163[index] = "liza"; questRoot20.Author = list163; - num = 8; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span47 = CollectionsMarshal.AsSpan(list164); - ref QuestSequence reference124 = ref span47[0]; + index = 8; + List list164 = new List(index); + CollectionsMarshal.SetCount(list164, index); + Span span164 = CollectionsMarshal.AsSpan(list164); + num = 0; + ref QuestSequence reference124 = ref span164[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span165 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span165[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -330020,7 +400754,8 @@ public static class AssemblyQuestLoader }; obj111.Steps = list165; reference124 = obj111; - ref QuestSequence reference125 = ref span47[1]; + num++; + ref QuestSequence reference125 = ref span164[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -330028,15 +400763,19 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - ref QuestStep reference126 = ref CollectionsMarshal.AsSpan(list166)[0]; + Span span166 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + ref QuestStep reference126 = ref span166[index2]; QuestStep obj113 = new QuestStep(EInteractionType.Interact, 1046317u, new Vector3(570.18384f, 20.721313f, 451.34656f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - num3 = 1; - List list167 = new List(num3); - CollectionsMarshal.SetCount(list167, num3); - CollectionsMarshal.AsSpan(list167)[0] = new DialogueChoice + index3 = 1; + List list167 = new List(index3); + CollectionsMarshal.SetCount(list167, index3); + Span span167 = CollectionsMarshal.AsSpan(list167); + num3 = 0; + span167[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA241_04828_Q1_000_013"), @@ -330046,18 +400785,22 @@ public static class AssemblyQuestLoader reference126 = obj113; obj112.Steps = list166; reference125 = obj112; - ref QuestSequence reference127 = ref span47[2]; + num++; + ref QuestSequence reference127 = ref span164[num]; QuestSequence obj114 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1046317u, new Vector3(570.18384f, 20.721313f, 451.34656f), 137); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.Interact, 1046317u, new Vector3(570.18384f, 20.721313f, 451.34656f), 137); obj114.Steps = list168; reference127 = obj114; - ref QuestSequence reference128 = ref span47[3]; + num++; + ref QuestSequence reference128 = ref span164[num]; QuestSequence obj115 = new QuestSequence { Sequence = 3 @@ -330065,7 +400808,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list169)[0]; + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + ref QuestStep reference129 = ref span169[index2]; QuestStep obj116 = new QuestStep(EInteractionType.Combat, 2013561u, new Vector3(-220.44714f, 35.78235f, 268.05518f), 137) { StopDistance = 0.25f, @@ -330077,26 +400822,33 @@ public static class AssemblyQuestLoader num3 = 3; List list170 = new List(num3); CollectionsMarshal.SetCount(list170, num3); - Span span48 = CollectionsMarshal.AsSpan(list170); - span48[0] = 17614u; - span48[1] = 17615u; - span48[2] = 17616u; + Span span170 = CollectionsMarshal.AsSpan(list170); + index3 = 0; + span170[index3] = 17614u; + index3++; + span170[index3] = 17615u; + index3++; + span170[index3] = 17616u; obj116.KillEnemyDataIds = list170; reference129 = obj116; obj115.Steps = list169; reference128 = obj115; - ref QuestSequence reference130 = ref span47[4]; + num++; + ref QuestSequence reference130 = ref span164[num]; QuestSequence obj117 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1046318u, new Vector3(-98.95477f, 34.20764f, 220.44702f), 137); + index2 = 1; + List list171 = new List(index2); + CollectionsMarshal.SetCount(list171, index2); + Span span171 = CollectionsMarshal.AsSpan(list171); + num2 = 0; + span171[num2] = new QuestStep(EInteractionType.Interact, 1046318u, new Vector3(-98.95477f, 34.20764f, 220.44702f), 137); obj117.Steps = list171; reference130 = obj117; - ref QuestSequence reference131 = ref span47[5]; + num++; + ref QuestSequence reference131 = ref span164[num]; QuestSequence obj118 = new QuestSequence { Sequence = 5 @@ -330104,24 +400856,30 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1046318u, new Vector3(-98.95477f, 34.20764f, 220.44702f), 137); + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.Interact, 1046318u, new Vector3(-98.95477f, 34.20764f, 220.44702f), 137); obj118.Steps = list172; reference131 = obj118; - ref QuestSequence reference132 = ref span47[6]; + num++; + ref QuestSequence reference132 = ref span164[num]; QuestSequence obj119 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1046317u, new Vector3(570.18384f, 20.721313f, 451.34656f), 137) + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.Interact, 1046317u, new Vector3(570.18384f, 20.721313f, 451.34656f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj119.Steps = list173; reference132 = obj119; - ref QuestSequence reference133 = ref span47[7]; + num++; + ref QuestSequence reference133 = ref span164[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -330129,7 +400887,9 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, NextQuestId = new QuestId(4829) @@ -330143,21 +400903,26 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "liza"; + Span span175 = CollectionsMarshal.AsSpan(list175); + index = 0; + span175[index] = "liza"; questRoot21.Author = list175; - num = 7; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span49 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference134 = ref span49[0]; + index = 7; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + Span span176 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference134 = ref span176[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -330170,7 +400935,8 @@ public static class AssemblyQuestLoader }; obj121.Steps = list177; reference134 = obj121; - ref QuestSequence reference135 = ref span49[1]; + num++; + ref QuestSequence reference135 = ref span176[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -330178,28 +400944,35 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1046319u, new Vector3(-335.3476f, 69.418495f, 155.87085f), 137) + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.Interact, 1046319u, new Vector3(-335.3476f, 69.418495f, 155.87085f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj122.Steps = list178; reference135 = obj122; - ref QuestSequence reference136 = ref span49[2]; + num++; + ref QuestSequence reference136 = ref span176[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046319u, new Vector3(-335.3476f, 69.418495f, 155.87085f), 137); + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046319u, new Vector3(-335.3476f, 69.418495f, 155.87085f), 137); obj123.Steps = list179; reference136 = obj123; - span49[3] = new QuestSequence + num++; + span176[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference137 = ref span49[4]; + num++; + ref QuestSequence reference137 = ref span176[num]; QuestSequence obj124 = new QuestSequence { Sequence = 4 @@ -330207,27 +400980,33 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1046319u, new Vector3(-335.3476f, 69.418495f, 155.87085f), 137) + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span180[index2] = new QuestStep(EInteractionType.Interact, 1046319u, new Vector3(-335.3476f, 69.418495f, 155.87085f), 137) { StopDistance = 5f }; obj124.Steps = list180; reference137 = obj124; - ref QuestSequence reference138 = ref span49[5]; + num++; + ref QuestSequence reference138 = ref span176[num]; QuestSequence obj125 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1046320u, new Vector3(267.01758f, -25f, 264.88135f), 138) + index2 = 1; + List list181 = new List(index2); + CollectionsMarshal.SetCount(list181, index2); + Span span181 = CollectionsMarshal.AsSpan(list181); + num2 = 0; + span181[num2] = new QuestStep(EInteractionType.Interact, 1046320u, new Vector3(267.01758f, -25f, 264.88135f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj125.Steps = list181; reference138 = obj125; - ref QuestSequence reference139 = ref span49[6]; + num++; + ref QuestSequence reference139 = ref span176[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -330235,7 +401014,9 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046289u, new Vector3(-64.62195f, -17.95485f, 201.28174f), 1185) + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046289u, new Vector3(-64.62195f, -17.95485f, 201.28174f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -330253,21 +401034,26 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + Span span183 = CollectionsMarshal.AsSpan(list183); + index = 0; + span183[index] = "liza"; questRoot22.Author = list183; - num = 7; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span50 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference140 = ref span50[0]; + index = 7; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + Span span184 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference140 = ref span184[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048295u, new Vector3(-74.143616f, -19.32829f, 198.68762f), 1185) + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span185[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048295u, new Vector3(-74.143616f, -19.32829f, 198.68762f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -330280,7 +401066,8 @@ public static class AssemblyQuestLoader }; obj127.Steps = list185; reference140 = obj127; - ref QuestSequence reference141 = ref span50[1]; + num++; + ref QuestSequence reference141 = ref span184[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 @@ -330288,8 +401075,9 @@ public static class AssemblyQuestLoader num2 = 3; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span51 = CollectionsMarshal.AsSpan(list186); - ref QuestStep reference142 = ref span51[0]; + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + ref QuestStep reference142 = ref span186[index2]; QuestStep obj129 = new QuestStep(EInteractionType.Interact, 1019038u, new Vector3(-55.222473f, -2.9000003f, -65.65961f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -330306,60 +401094,84 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list187 = new List(num3); - CollectionsMarshal.SetCount(list187, num3); - Span span52 = CollectionsMarshal.AsSpan(list187); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list187 = new List(index3); + CollectionsMarshal.SetCount(list187, index3); + Span span187 = CollectionsMarshal.AsSpan(list187); + num3 = 0; + span187[num3] = null; + num3++; + span187[num3] = null; + num3++; + span187[num3] = null; + num3++; + span187[num3] = null; + num3++; + span187[num3] = null; + num3++; + span187[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj129.CompletionQuestVariablesFlags = list187; reference142 = obj129; - ref QuestStep reference143 = ref span51[1]; + index2++; + ref QuestStep reference143 = ref span186[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1019003u, new Vector3(-41.24518f, -3.0000017f, -63.09613f), 628); num3 = 6; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - Span span53 = CollectionsMarshal.AsSpan(list188); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span188 = CollectionsMarshal.AsSpan(list188); + index3 = 0; + span188[index3] = null; + index3++; + span188[index3] = null; + index3++; + span188[index3] = null; + index3++; + span188[index3] = null; + index3++; + span188[index3] = null; + index3++; + span188[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list188; reference143 = questStep14; - ref QuestStep reference144 = ref span51[2]; + index2++; + ref QuestStep reference144 = ref span186[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1019069u, new Vector3(-62.119568f, 8f, -56.62628f), 628); - num3 = 6; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - Span span54 = CollectionsMarshal.AsSpan(list189); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list189 = new List(index3); + CollectionsMarshal.SetCount(list189, index3); + Span span189 = CollectionsMarshal.AsSpan(list189); + num3 = 0; + span189[num3] = null; + num3++; + span189[num3] = null; + num3++; + span189[num3] = null; + num3++; + span189[num3] = null; + num3++; + span189[num3] = null; + num3++; + span189[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list189; reference144 = questStep15; obj128.Steps = list186; reference141 = obj128; - ref QuestSequence reference145 = ref span50[2]; + num++; + ref QuestSequence reference145 = ref span184[num]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1051620u, new Vector3(111.40613f, 11.997255f, -52.048523f), 628); + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span190[num2] = new QuestStep(EInteractionType.Interact, 1051620u, new Vector3(111.40613f, 11.997255f, -52.048523f), 628); obj130.Steps = list190; reference145 = obj130; - ref QuestSequence reference146 = ref span50[3]; + num++; + ref QuestSequence reference146 = ref span184[num]; QuestSequence obj131 = new QuestSequence { Sequence = 3 @@ -330367,18 +401179,23 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628); + Span span191 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span191[index2] = new QuestStep(EInteractionType.Interact, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628); obj131.Steps = list191; reference146 = obj131; - ref QuestSequence reference147 = ref span50[4]; + num++; + ref QuestSequence reference147 = ref span184[num]; QuestSequence obj132 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 2013689u, new Vector3(29.251465f, 5.935669f, -129.62543f), 628) + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span192[num2] = new QuestStep(EInteractionType.Interact, 2013689u, new Vector3(29.251465f, 5.935669f, -129.62543f), 628) { AethernetShortcut = new AethernetShortcut { @@ -330388,7 +401205,8 @@ public static class AssemblyQuestLoader }; obj132.Steps = list192; reference147 = obj132; - ref QuestSequence reference148 = ref span50[5]; + num++; + ref QuestSequence reference148 = ref span184[num]; QuestSequence obj133 = new QuestSequence { Sequence = 5 @@ -330396,7 +401214,9 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 2013690u, new Vector3(14.114502f, 3.982544f, 43.411865f), 628) + Span span193 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span193[index2] = new QuestStep(EInteractionType.Interact, 2013690u, new Vector3(14.114502f, 3.982544f, 43.411865f), 628) { AethernetShortcut = new AethernetShortcut { @@ -330406,15 +401226,18 @@ public static class AssemblyQuestLoader }; obj133.Steps = list193; reference148 = obj133; - ref QuestSequence reference149 = ref span50[6]; + num++; + ref QuestSequence reference149 = ref span184[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AethernetShortcut = new AethernetShortcut { @@ -330432,13 +401255,16 @@ public static class AssemblyQuestLoader num = 1; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - CollectionsMarshal.AsSpan(list195)[0] = "liza"; + Span span195 = CollectionsMarshal.AsSpan(list195); + index = 0; + span195[index] = "liza"; questRoot23.Author = list195; - num = 6; - List list196 = new List(num); - CollectionsMarshal.SetCount(list196, num); - Span span55 = CollectionsMarshal.AsSpan(list196); - ref QuestSequence reference150 = ref span55[0]; + index = 6; + List list196 = new List(index); + CollectionsMarshal.SetCount(list196, index); + Span span196 = CollectionsMarshal.AsSpan(list196); + num = 0; + ref QuestSequence reference150 = ref span196[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -330446,7 +401272,9 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - ref QuestStep reference151 = ref CollectionsMarshal.AsSpan(list197)[0]; + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + ref QuestStep reference151 = ref span197[index2]; QuestStep obj136 = new QuestStep(EInteractionType.AcceptQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -330461,7 +401289,9 @@ public static class AssemblyQuestLoader num3 = 1; List list198 = new List(num3); CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = new DialogueChoice + Span span198 = CollectionsMarshal.AsSpan(list198); + index3 = 0; + span198[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA311_04831_Q2_000_000"), @@ -330471,15 +401301,18 @@ public static class AssemblyQuestLoader reference151 = obj136; obj135.Steps = list197; reference150 = obj135; - ref QuestSequence reference152 = ref span55[1]; + num++; + ref QuestSequence reference152 = ref span196[num]; QuestSequence obj137 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1019154u, new Vector3(829.1294f, 5.9230084f, 859.739f), 613) + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + Span span199 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span199[num2] = new QuestStep(EInteractionType.Interact, 1019154u, new Vector3(829.1294f, 5.9230084f, 859.739f), 613) { AethernetShortcut = new AethernetShortcut { @@ -330489,7 +401322,8 @@ public static class AssemblyQuestLoader }; obj137.Steps = list199; reference152 = obj137; - ref QuestSequence reference153 = ref span55[2]; + num++; + ref QuestSequence reference153 = ref span196[num]; QuestSequence obj138 = new QuestSequence { Sequence = 2 @@ -330497,49 +401331,67 @@ public static class AssemblyQuestLoader num2 = 2; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span56 = CollectionsMarshal.AsSpan(list200); - ref QuestStep reference154 = ref span56[0]; + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + ref QuestStep reference154 = ref span200[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1019169u, new Vector3(476.82898f, 30.113333f, 763.546f), 613); - num3 = 6; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - Span span57 = CollectionsMarshal.AsSpan(list201); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + Span span201 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span201[num3] = null; + num3++; + span201[num3] = null; + num3++; + span201[num3] = null; + num3++; + span201[num3] = null; + num3++; + span201[num3] = null; + num3++; + span201[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list201; reference154 = questStep16; - ref QuestStep reference155 = ref span56[1]; + index2++; + ref QuestStep reference155 = ref span200[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1019167u, new Vector3(447.56226f, 34.29651f, 732.66187f), 613); num3 = 6; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - Span span58 = CollectionsMarshal.AsSpan(list202); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span202 = CollectionsMarshal.AsSpan(list202); + index3 = 0; + span202[index3] = null; + index3++; + span202[index3] = null; + index3++; + span202[index3] = null; + index3++; + span202[index3] = null; + index3++; + span202[index3] = null; + index3++; + span202[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list202; reference155 = questStep17; obj138.Steps = list200; reference153 = obj138; - ref QuestSequence reference156 = ref span55[3]; + num++; + ref QuestSequence reference156 = ref span196[num]; QuestSequence obj139 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1048299u, new Vector3(463.46216f, 29.787891f, 736.8428f), 613); + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.Interact, 1048299u, new Vector3(463.46216f, 29.787891f, 736.8428f), 613); obj139.Steps = list203; reference156 = obj139; - ref QuestSequence reference157 = ref span55[4]; + num++; + ref QuestSequence reference157 = ref span196[num]; QuestSequence obj140 = new QuestSequence { Sequence = 4 @@ -330547,23 +401399,28 @@ public static class AssemblyQuestLoader num2 = 2; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span59 = CollectionsMarshal.AsSpan(list204); - span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(426.16245f, 0.7213422f, 195.08597f), 613) + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span204[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(426.16245f, 0.7213422f, 195.08597f), 613) { Fly = true }; - span59[1] = new QuestStep(EInteractionType.Interact, 1048301u, new Vector3(427.78674f, 0.5689501f, 195.39172f), 613); + index2++; + span204[index2] = new QuestStep(EInteractionType.Interact, 1048301u, new Vector3(427.78674f, 0.5689501f, 195.39172f), 613); obj140.Steps = list204; reference157 = obj140; - ref QuestSequence reference158 = ref span55[5]; + num++; + ref QuestSequence reference158 = ref span196[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + Span span205 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + span205[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -330582,13 +401439,16 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "liza"; + Span span206 = CollectionsMarshal.AsSpan(list206); + index = 0; + span206[index] = "liza"; questRoot24.Author = list206; - num = 5; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span60 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference159 = ref span60[0]; + index = 5; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + Span span207 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference159 = ref span207[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -330596,7 +401456,9 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + Span span208 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span208[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -330609,16 +401471,18 @@ public static class AssemblyQuestLoader }; obj142.Steps = list208; reference159 = obj142; - ref QuestSequence reference160 = ref span60[1]; + num++; + ref QuestSequence reference160 = ref span207[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span61 = CollectionsMarshal.AsSpan(list209); - ref QuestStep reference161 = ref span61[0]; + index2 = 3; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + Span span209 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + ref QuestStep reference161 = ref span209[num2]; QuestStep obj144 = new QuestStep(EInteractionType.Interact, 1019260u, new Vector3(417.5935f, 68.02854f, -110.24652f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -330630,49 +401494,70 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - Span span62 = CollectionsMarshal.AsSpan(list210); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list210 = new List(index3); + CollectionsMarshal.SetCount(list210, index3); + Span span210 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span210[num3] = null; + num3++; + span210[num3] = null; + num3++; + span210[num3] = null; + num3++; + span210[num3] = null; + num3++; + span210[num3] = null; + num3++; + span210[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj144.CompletionQuestVariablesFlags = list210; reference161 = obj144; - ref QuestStep reference162 = ref span61[1]; + num2++; + ref QuestStep reference162 = ref span209[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1019257u, new Vector3(468.55872f, 68.02771f, -93.21747f), 614); num3 = 6; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - Span span63 = CollectionsMarshal.AsSpan(list211); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span211 = CollectionsMarshal.AsSpan(list211); + index3 = 0; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = null; + index3++; + span211[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list211; reference162 = questStep18; - ref QuestStep reference163 = ref span61[2]; + num2++; + ref QuestStep reference163 = ref span209[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1019262u, new Vector3(445.76172f, 58.67623f, -155.62683f), 614); - num3 = 6; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - Span span64 = CollectionsMarshal.AsSpan(list212); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list212 = new List(index3); + CollectionsMarshal.SetCount(list212, index3); + Span span212 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span212[num3] = null; + num3++; + span212[num3] = null; + num3++; + span212[num3] = null; + num3++; + span212[num3] = null; + num3++; + span212[num3] = null; + num3++; + span212[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list212; reference163 = questStep19; obj143.Steps = list209; reference160 = obj143; - ref QuestSequence reference164 = ref span60[2]; + num++; + ref QuestSequence reference164 = ref span207[num]; QuestSequence obj145 = new QuestSequence { Sequence = 2 @@ -330680,28 +401565,34 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1048302u, new Vector3(399.95422f, 76.04927f, -114.885254f), 614) + Span span213 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span213[index2] = new QuestStep(EInteractionType.Interact, 1048302u, new Vector3(399.95422f, 76.04927f, -114.885254f), 614) { StopDistance = 0.5f, Fly = true }; obj145.Steps = list213; reference164 = obj145; - ref QuestSequence reference165 = ref span60[3]; + num++; + ref QuestSequence reference165 = ref span207[num]; QuestSequence obj146 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list214 = new List(num2); - CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1048304u, new Vector3(421.3473f, 1.7278045f, -278.70605f), 614) + index2 = 1; + List list214 = new List(index2); + CollectionsMarshal.SetCount(list214, index2); + Span span214 = CollectionsMarshal.AsSpan(list214); + num2 = 0; + span214[num2] = new QuestStep(EInteractionType.Interact, 1048304u, new Vector3(421.3473f, 1.7278045f, -278.70605f), 614) { Fly = true }; obj146.Steps = list214; reference165 = obj146; - ref QuestSequence reference166 = ref span60[4]; + num++; + ref QuestSequence reference166 = ref span207[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -330709,7 +401600,9 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + Span span215 = CollectionsMarshal.AsSpan(list215); + index2 = 0; + span215[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -330728,21 +401621,26 @@ public static class AssemblyQuestLoader num = 1; List list216 = new List(num); CollectionsMarshal.SetCount(list216, num); - CollectionsMarshal.AsSpan(list216)[0] = "liza"; + Span span216 = CollectionsMarshal.AsSpan(list216); + index = 0; + span216[index] = "liza"; questRoot25.Author = list216; - num = 5; - List list217 = new List(num); - CollectionsMarshal.SetCount(list217, num); - Span span65 = CollectionsMarshal.AsSpan(list217); - ref QuestSequence reference167 = ref span65[0]; + index = 5; + List list217 = new List(index); + CollectionsMarshal.SetCount(list217, index); + Span span217 = CollectionsMarshal.AsSpan(list217); + num = 0; + ref QuestSequence reference167 = ref span217[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048297u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span218[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048297u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -330755,7 +401653,8 @@ public static class AssemblyQuestLoader }; obj148.Steps = list218; reference167 = obj148; - ref QuestSequence reference168 = ref span65[1]; + num++; + ref QuestSequence reference168 = ref span217[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 @@ -330763,7 +401662,9 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.Interact, 2013691u, new Vector3(203.8147f, 12.069824f, 773.0067f), 613) + Span span219 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span219[index2] = new QuestStep(EInteractionType.Interact, 2013691u, new Vector3(203.8147f, 12.069824f, 773.0067f), 613) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -330774,15 +401675,18 @@ public static class AssemblyQuestLoader }; obj149.Steps = list219; reference168 = obj149; - ref QuestSequence reference169 = ref span65[2]; + num++; + ref QuestSequence reference169 = ref span217[num]; QuestSequence obj150 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list220)[0]; + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + ref QuestStep reference170 = ref span220[num2]; QuestStep obj151 = new QuestStep(EInteractionType.Combat, 2013692u, new Vector3(138.59766f, 9.292725f, 676.6002f), 613) { Fly = true, @@ -330791,15 +401695,19 @@ public static class AssemblyQuestLoader num3 = 3; List list221 = new List(num3); CollectionsMarshal.SetCount(list221, num3); - Span span66 = CollectionsMarshal.AsSpan(list221); - span66[0] = 17617u; - span66[1] = 17618u; - span66[2] = 17619u; + Span span221 = CollectionsMarshal.AsSpan(list221); + index3 = 0; + span221[index3] = 17617u; + index3++; + span221[index3] = 17618u; + index3++; + span221[index3] = 17619u; obj151.KillEnemyDataIds = list221; reference170 = obj151; obj150.Steps = list220; reference169 = obj150; - ref QuestSequence reference171 = ref span65[3]; + num++; + ref QuestSequence reference171 = ref span217[num]; QuestSequence obj152 = new QuestSequence { Sequence = 3 @@ -330807,21 +401715,26 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 2013693u, new Vector3(167.89502f, 2.1209717f, 561.27246f), 613) + Span span222 = CollectionsMarshal.AsSpan(list222); + index2 = 0; + span222[index2] = new QuestStep(EInteractionType.Interact, 2013693u, new Vector3(167.89502f, 2.1209717f, 561.27246f), 613) { Fly = true }; obj152.Steps = list222; reference171 = obj152; - ref QuestSequence reference172 = ref span65[4]; + num++; + ref QuestSequence reference172 = ref span217[num]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048297u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + index2 = 1; + List list223 = new List(index2); + CollectionsMarshal.SetCount(list223, index2); + Span span223 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + span223[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048297u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -330840,13 +401753,16 @@ public static class AssemblyQuestLoader num = 1; List list224 = new List(num); CollectionsMarshal.SetCount(list224, num); - CollectionsMarshal.AsSpan(list224)[0] = "liza"; + Span span224 = CollectionsMarshal.AsSpan(list224); + index = 0; + span224[index] = "liza"; questRoot26.Author = list224; - num = 7; - List list225 = new List(num); - CollectionsMarshal.SetCount(list225, num); - Span span67 = CollectionsMarshal.AsSpan(list225); - ref QuestSequence reference173 = ref span67[0]; + index = 7; + List list225 = new List(index); + CollectionsMarshal.SetCount(list225, index); + Span span225 = CollectionsMarshal.AsSpan(list225); + num = 0; + ref QuestSequence reference173 = ref span225[num]; QuestSequence obj154 = new QuestSequence { Sequence = 0 @@ -330854,7 +401770,9 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048297u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span226[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048297u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -330867,16 +401785,18 @@ public static class AssemblyQuestLoader }; obj154.Steps = list226; reference173 = obj154; - ref QuestSequence reference174 = ref span67[1]; + num++; + ref QuestSequence reference174 = ref span225[num]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - Span span68 = CollectionsMarshal.AsSpan(list227); - span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(42.052795f, 4.000001f, 71.14965f), 628) + index2 = 2; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + Span span227 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span227[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(42.052795f, 4.000001f, 71.14965f), 628) { AethernetShortcut = new AethernetShortcut { @@ -330884,10 +401804,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeMarkets } }; - span68[1] = new QuestStep(EInteractionType.Interact, 1018984u, new Vector3(42.34375f, 4.8365364f, 73.83838f), 628); + num2++; + span227[num2] = new QuestStep(EInteractionType.Interact, 1018984u, new Vector3(42.34375f, 4.8365364f, 73.83838f), 628); obj155.Steps = list227; reference174 = obj155; - ref QuestSequence reference175 = ref span67[2]; + num++; + ref QuestSequence reference175 = ref span225[num]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -330895,18 +401817,23 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1019065u, new Vector3(80.49133f, 4f, 56.443115f), 628); + Span span228 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span228[index2] = new QuestStep(EInteractionType.Interact, 1019065u, new Vector3(80.49133f, 4f, 56.443115f), 628); obj156.Steps = list228; reference175 = obj156; - ref QuestSequence reference176 = ref span67[3]; + num++; + ref QuestSequence reference176 = ref span225[num]; QuestSequence obj157 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.UseItem, 2013694u, new Vector3(517.2654f, 0.99176025f, -692.10345f), 613) + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + Span span229 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span229[num2] = new QuestStep(EInteractionType.UseItem, 2013694u, new Vector3(517.2654f, 0.99176025f, -692.10345f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, @@ -330914,7 +401841,8 @@ public static class AssemblyQuestLoader }; obj157.Steps = list229; reference176 = obj157; - ref QuestSequence reference177 = ref span67[4]; + num++; + ref QuestSequence reference177 = ref span225[num]; QuestSequence obj158 = new QuestSequence { Sequence = 4 @@ -330922,28 +401850,35 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - ref QuestStep reference178 = ref CollectionsMarshal.AsSpan(list230)[0]; + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + ref QuestStep reference178 = ref span230[index2]; QuestStep obj159 = new QuestStep(EInteractionType.Combat, 2013695u, new Vector3(519.76794f, 0.99176025f, -679.8352f), 613) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list231 = new List(num3); - CollectionsMarshal.SetCount(list231, num3); - CollectionsMarshal.AsSpan(list231)[0] = 17620u; + index3 = 1; + List list231 = new List(index3); + CollectionsMarshal.SetCount(list231, index3); + Span span231 = CollectionsMarshal.AsSpan(list231); + num3 = 0; + span231[num3] = 17620u; obj159.KillEnemyDataIds = list231; reference178 = obj159; obj158.Steps = list230; reference177 = obj158; - ref QuestSequence reference179 = ref span67[5]; + num++; + ref QuestSequence reference179 = ref span225[num]; QuestSequence obj160 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1019065u, new Vector3(80.49133f, 4f, 56.443115f), 628) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span232[num2] = new QuestStep(EInteractionType.Interact, 1019065u, new Vector3(80.49133f, 4f, 56.443115f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -330961,7 +401896,8 @@ public static class AssemblyQuestLoader }; obj160.Steps = list232; reference179 = obj160; - ref QuestSequence reference180 = ref span67[6]; + num++; + ref QuestSequence reference180 = ref span225[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue @@ -330969,7 +401905,9 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048298u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span233[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048298u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { NextQuestId = new QuestId(4835) }; @@ -330982,21 +401920,26 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "liza"; + Span span234 = CollectionsMarshal.AsSpan(list234); + index = 0; + span234[index] = "liza"; questRoot27.Author = list234; - num = 7; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span69 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference181 = ref span69[0]; + index = 7; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + Span span235 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference181 = ref span235[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048298u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span236 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span236[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048298u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -331009,7 +401952,8 @@ public static class AssemblyQuestLoader }; obj162.Steps = list236; reference181 = obj162; - ref QuestSequence reference182 = ref span69[1]; + num++; + ref QuestSequence reference182 = ref span235[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 @@ -331017,8 +401961,9 @@ public static class AssemblyQuestLoader num2 = 3; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span70 = CollectionsMarshal.AsSpan(list237); - ref QuestStep reference183 = ref span70[0]; + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + ref QuestStep reference183 = ref span237[index2]; QuestStep obj164 = new QuestStep(EInteractionType.Interact, 1019350u, new Vector3(563.2562f, -19.505632f, 319.11182f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -331033,60 +401978,84 @@ public static class AssemblyQuestLoader num3 = 6; List list238 = new List(num3); CollectionsMarshal.SetCount(list238, num3); - Span span71 = CollectionsMarshal.AsSpan(list238); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span238 = CollectionsMarshal.AsSpan(list238); + index3 = 0; + span238[index3] = null; + index3++; + span238[index3] = null; + index3++; + span238[index3] = null; + index3++; + span238[index3] = null; + index3++; + span238[index3] = null; + index3++; + span238[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj164.CompletionQuestVariablesFlags = list238; reference183 = obj164; - ref QuestStep reference184 = ref span70[1]; + index2++; + ref QuestStep reference184 = ref span237[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1019351u, new Vector3(548.8822f, -19.505648f, 295.1858f), 622); - num3 = 6; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - Span span72 = CollectionsMarshal.AsSpan(list239); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list239 = new List(index3); + CollectionsMarshal.SetCount(list239, index3); + Span span239 = CollectionsMarshal.AsSpan(list239); + num3 = 0; + span239[num3] = null; + num3++; + span239[num3] = null; + num3++; + span239[num3] = null; + num3++; + span239[num3] = null; + num3++; + span239[num3] = null; + num3++; + span239[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list239; reference184 = questStep20; - ref QuestStep reference185 = ref span70[2]; + index2++; + ref QuestStep reference185 = ref span237[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1019353u, new Vector3(544.0298f, -19.505642f, 391.68372f), 622); num3 = 6; List list240 = new List(num3); CollectionsMarshal.SetCount(list240, num3); - Span span73 = CollectionsMarshal.AsSpan(list240); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span240 = CollectionsMarshal.AsSpan(list240); + index3 = 0; + span240[index3] = null; + index3++; + span240[index3] = null; + index3++; + span240[index3] = null; + index3++; + span240[index3] = null; + index3++; + span240[index3] = null; + index3++; + span240[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list240; reference185 = questStep21; obj163.Steps = list237; reference182 = obj163; - ref QuestSequence reference186 = ref span69[2]; + num++; + ref QuestSequence reference186 = ref span235[num]; QuestSequence obj165 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Interact, 1048305u, new Vector3(591.08875f, -19.505634f, 296.9253f), 622) + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + Span span241 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span241[num2] = new QuestStep(EInteractionType.Interact, 1048305u, new Vector3(591.08875f, -19.505634f, 296.9253f), 622) { Fly = true }; obj165.Steps = list241; reference186 = obj165; - ref QuestSequence reference187 = ref span69[3]; + num++; + ref QuestSequence reference187 = ref span235[num]; QuestSequence obj166 = new QuestSequence { Sequence = 3 @@ -331094,25 +402063,32 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048305u, new Vector3(591.08875f, -19.505634f, 296.9253f), 622); + Span span242 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + span242[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048305u, new Vector3(591.08875f, -19.505634f, 296.9253f), 622); obj166.Steps = list242; reference187 = obj166; - span69[4] = new QuestSequence + num++; + span235[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference188 = ref span69[5]; + num++; + ref QuestSequence reference188 = ref span235[num]; QuestSequence obj167 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1048307u, new Vector3(-494.56018f, 71.630486f, -518.9441f), 622); + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + Span span243 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span243[num2] = new QuestStep(EInteractionType.Interact, 1048307u, new Vector3(-494.56018f, 71.630486f, -518.9441f), 622); obj167.Steps = list243; reference188 = obj167; - ref QuestSequence reference189 = ref span69[6]; + num++; + ref QuestSequence reference189 = ref span235[num]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue @@ -331120,7 +402096,9 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048295u, new Vector3(-74.143616f, -19.32829f, 198.68762f), 1185) + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span244[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048295u, new Vector3(-74.143616f, -19.32829f, 198.68762f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -331138,21 +402116,26 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "liza"; + Span span245 = CollectionsMarshal.AsSpan(list245); + index = 0; + span245[index] = "liza"; questRoot28.Author = list245; - num = 4; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - Span span74 = CollectionsMarshal.AsSpan(list246); - ref QuestSequence reference190 = ref span74[0]; + index = 4; + List list246 = new List(index); + CollectionsMarshal.SetCount(list246, index); + Span span246 = CollectionsMarshal.AsSpan(list246); + num = 0; + ref QuestSequence reference190 = ref span246[num]; QuestSequence obj169 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048308u, new Vector3(-38.95636f, -17.972864f, 203.38745f), 1185) + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + Span span247 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span247[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048308u, new Vector3(-38.95636f, -17.972864f, 203.38745f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -331165,7 +402148,8 @@ public static class AssemblyQuestLoader }; obj169.Steps = list247; reference190 = obj169; - ref QuestSequence reference191 = ref span74[1]; + num++; + ref QuestSequence reference191 = ref span246[num]; QuestSequence obj170 = new QuestSequence { Sequence = 1 @@ -331173,70 +402157,95 @@ public static class AssemblyQuestLoader num2 = 3; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span75 = CollectionsMarshal.AsSpan(list248); - ref QuestStep reference192 = ref span75[0]; + Span span248 = CollectionsMarshal.AsSpan(list248); + index2 = 0; + ref QuestStep reference192 = ref span248[index2]; QuestStep obj171 = new QuestStep(EInteractionType.Interact, 1020193u, new Vector3(26.108154f, 0f, 25.253662f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; - num3 = 6; - List list249 = new List(num3); - CollectionsMarshal.SetCount(list249, num3); - Span span76 = CollectionsMarshal.AsSpan(list249); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list249 = new List(index3); + CollectionsMarshal.SetCount(list249, index3); + Span span249 = CollectionsMarshal.AsSpan(list249); + num3 = 0; + span249[num3] = null; + num3++; + span249[num3] = null; + num3++; + span249[num3] = null; + num3++; + span249[num3] = null; + num3++; + span249[num3] = null; + num3++; + span249[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj171.CompletionQuestVariablesFlags = list249; reference192 = obj171; - ref QuestStep reference193 = ref span75[1]; + index2++; + ref QuestStep reference193 = ref span248[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1019483u, new Vector3(-37.521973f, 1.2530026f, 36.301147f), 635); num3 = 6; List list250 = new List(num3); CollectionsMarshal.SetCount(list250, num3); - Span span77 = CollectionsMarshal.AsSpan(list250); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span250 = CollectionsMarshal.AsSpan(list250); + index3 = 0; + span250[index3] = null; + index3++; + span250[index3] = null; + index3++; + span250[index3] = null; + index3++; + span250[index3] = null; + index3++; + span250[index3] = null; + index3++; + span250[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list250; reference193 = questStep22; - ref QuestStep reference194 = ref span75[2]; + index2++; + ref QuestStep reference194 = ref span248[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1019484u, new Vector3(-66.5141f, -5.9571908E-15f, -22.964844f), 635); - num3 = 6; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - Span span78 = CollectionsMarshal.AsSpan(list251); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list251 = new List(index3); + CollectionsMarshal.SetCount(list251, index3); + Span span251 = CollectionsMarshal.AsSpan(list251); + num3 = 0; + span251[num3] = null; + num3++; + span251[num3] = null; + num3++; + span251[num3] = null; + num3++; + span251[num3] = null; + num3++; + span251[num3] = null; + num3++; + span251[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list251; reference194 = questStep23; obj170.Steps = list248; reference191 = obj170; - ref QuestSequence reference195 = ref span74[2]; + num++; + ref QuestSequence reference195 = ref span246[num]; QuestSequence obj172 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.Interact, 1048311u, new Vector3(460.86804f, 41.92747f, 335.10327f), 612) + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.Interact, 1048311u, new Vector3(460.86804f, 41.92747f, 335.10327f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj172.Steps = list252; reference195 = obj172; - ref QuestSequence reference196 = ref span74[3]; + num++; + ref QuestSequence reference196 = ref span246[num]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue @@ -331244,7 +402253,9 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048309u, new Vector3(19.638367f, -0.11837298f, 47.226562f), 635) + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048309u, new Vector3(19.638367f, -0.11837298f, 47.226562f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, NextQuestId = new QuestId(4837) @@ -331258,21 +402269,26 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - CollectionsMarshal.AsSpan(list254)[0] = "liza"; + Span span254 = CollectionsMarshal.AsSpan(list254); + index = 0; + span254[index] = "liza"; questRoot29.Author = list254; - num = 6; - List list255 = new List(num); - CollectionsMarshal.SetCount(list255, num); - Span span79 = CollectionsMarshal.AsSpan(list255); - ref QuestSequence reference197 = ref span79[0]; + index = 6; + List list255 = new List(index); + CollectionsMarshal.SetCount(list255, index); + Span span255 = CollectionsMarshal.AsSpan(list255); + num = 0; + ref QuestSequence reference197 = ref span255[num]; QuestSequence obj174 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048309u, new Vector3(19.638367f, -0.11837298f, 47.226562f), 635) + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048309u, new Vector3(19.638367f, -0.11837298f, 47.226562f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -331285,7 +402301,8 @@ public static class AssemblyQuestLoader }; obj174.Steps = list256; reference197 = obj174; - ref QuestSequence reference198 = ref span79[1]; + num++; + ref QuestSequence reference198 = ref span255[num]; QuestSequence obj175 = new QuestSequence { Sequence = 1 @@ -331293,27 +402310,33 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1048313u, new Vector3(-621.973f, 41.999973f, -2.02948f), 621) + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = new QuestStep(EInteractionType.Interact, 1048313u, new Vector3(-621.973f, 41.999973f, -2.02948f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; obj175.Steps = list257; reference198 = obj175; - ref QuestSequence reference199 = ref span79[2]; + num++; + ref QuestSequence reference199 = ref span255[num]; QuestSequence obj176 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1048315u, new Vector3(-403.46387f, 9.080914f, 10.940674f), 621) + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span258[num2] = new QuestStep(EInteractionType.Interact, 1048315u, new Vector3(-403.46387f, 9.080914f, 10.940674f), 621) { Fly = true }; obj176.Steps = list258; reference199 = obj176; - ref QuestSequence reference200 = ref span79[3]; + num++; + ref QuestSequence reference200 = ref span255[num]; QuestSequence obj177 = new QuestSequence { Sequence = 3 @@ -331321,7 +402344,9 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - ref QuestStep reference201 = ref CollectionsMarshal.AsSpan(list259)[0]; + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + ref QuestStep reference201 = ref span259[index2]; QuestStep obj178 = new QuestStep(EInteractionType.Combat, 2013705u, new Vector3(-379.0799f, 6.149353f, -83.237976f), 621) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -331329,29 +402354,36 @@ public static class AssemblyQuestLoader num3 = 3; List list260 = new List(num3); CollectionsMarshal.SetCount(list260, num3); - Span span80 = CollectionsMarshal.AsSpan(list260); - span80[0] = 17621u; - span80[1] = 17622u; - span80[2] = 17623u; + Span span260 = CollectionsMarshal.AsSpan(list260); + index3 = 0; + span260[index3] = 17621u; + index3++; + span260[index3] = 17622u; + index3++; + span260[index3] = 17623u; obj178.KillEnemyDataIds = list260; reference201 = obj178; obj177.Steps = list259; reference200 = obj177; - ref QuestSequence reference202 = ref span79[4]; + num++; + ref QuestSequence reference202 = ref span255[num]; QuestSequence obj179 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1048315u, new Vector3(-403.46387f, 9.080914f, 10.940674f), 621) + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + Span span261 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span261[num2] = new QuestStep(EInteractionType.Interact, 1048315u, new Vector3(-403.46387f, 9.080914f, 10.940674f), 621) { Fly = true }; obj179.Steps = list261; reference202 = obj179; - ref QuestSequence reference203 = ref span79[5]; + num++; + ref QuestSequence reference203 = ref span255[num]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue @@ -331359,7 +402391,9 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048314u, new Vector3(-622.03406f, 41.999973f, -3.6469727f), 621) + Span span262 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span262[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048314u, new Vector3(-622.03406f, 41.999973f, -3.6469727f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, NextQuestId = new QuestId(4838) @@ -331373,21 +402407,26 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - CollectionsMarshal.AsSpan(list263)[0] = "liza"; + Span span263 = CollectionsMarshal.AsSpan(list263); + index = 0; + span263[index] = "liza"; questRoot30.Author = list263; - num = 6; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - Span span81 = CollectionsMarshal.AsSpan(list264); - ref QuestSequence reference204 = ref span81[0]; + index = 6; + List list264 = new List(index); + CollectionsMarshal.SetCount(list264, index); + Span span264 = CollectionsMarshal.AsSpan(list264); + num = 0; + ref QuestSequence reference204 = ref span264[num]; QuestSequence obj181 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048314u, new Vector3(-622.03406f, 41.999973f, -3.6469727f), 621) + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + Span span265 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span265[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048314u, new Vector3(-622.03406f, 41.999973f, -3.6469727f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -331400,7 +402439,8 @@ public static class AssemblyQuestLoader }; obj181.Steps = list265; reference204 = obj181; - ref QuestSequence reference205 = ref span81[1]; + num++; + ref QuestSequence reference205 = ref span264[num]; QuestSequence obj182 = new QuestSequence { Sequence = 1 @@ -331408,28 +402448,34 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1048316u, new Vector3(-537.3159f, 8.282911f, 11.612061f), 621) + Span span266 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span266[index2] = new QuestStep(EInteractionType.Interact, 1048316u, new Vector3(-537.3159f, 8.282911f, 11.612061f), 621) { Fly = true }; obj182.Steps = list266; reference205 = obj182; - ref QuestSequence reference206 = ref span81[2]; + num++; + ref QuestSequence reference206 = ref span264[num]; QuestSequence obj183 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.Interact, 1048317u, new Vector3(-281.48322f, 263.00684f, 633.8445f), 620) + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span267[num2] = new QuestStep(EInteractionType.Interact, 1048317u, new Vector3(-281.48322f, 263.00684f, 633.8445f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; obj183.Steps = list267; reference206 = obj183; - ref QuestSequence reference207 = ref span81[3]; + num++; + ref QuestSequence reference207 = ref span264[num]; QuestSequence obj184 = new QuestSequence { Sequence = 3 @@ -331437,79 +402483,93 @@ public static class AssemblyQuestLoader num2 = 10; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - Span span82 = CollectionsMarshal.AsSpan(list268); - span82[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-232.29796f, 264.9192f, 613.139f), 620) + Span span268 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span268[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-232.29796f, 264.9192f, 613.139f), 620) { StopDistance = 50f, Mount = false, Sprint = false }; - span82[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-241.38339f, 264.6151f, 617.0616f), 620) + index2++; + span268[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-241.38339f, 264.6151f, 617.0616f), 620) { Mount = false, Sprint = false }; - span82[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-256.2343f, 264.3857f, 607.0586f), 620) + index2++; + span268[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-256.2343f, 264.3857f, 607.0586f), 620) { StopDistance = 50f, Mount = false, Sprint = false }; - span82[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.83409f, 265.36874f, 597.0437f), 620) + index2++; + span268[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.83409f, 265.36874f, 597.0437f), 620) { Mount = false, Sprint = false }; - span82[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-241.25351f, 264.14194f, 622.3978f), 620) + index2++; + span268[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-241.25351f, 264.14194f, 622.3978f), 620) { StopDistance = 50f, Mount = false, Sprint = false }; - span82[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-249.86191f, 264.12744f, 618.1598f), 620) + index2++; + span268[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-249.86191f, 264.12744f, 618.1598f), 620) { Mount = false, Sprint = false }; - span82[6] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-246.00586f, 265.5263f, 587.24493f), 620) + index2++; + span268[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-246.00586f, 265.5263f, 587.24493f), 620) { StopDistance = 50f, Mount = false, Sprint = false }; - span82[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-239.25114f, 265.31882f, 605.55786f), 620) + index2++; + span268[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-239.25114f, 265.31882f, 605.55786f), 620) { Mount = false, Sprint = false }; - span82[8] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-264.12643f, 263.13184f, 563.91364f), 620) + index2++; + span268[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-264.12643f, 263.13184f, 563.91364f), 620) { StopDistance = 50f, Mount = false, Sprint = false }; - span82[9] = new QuestStep(EInteractionType.WalkTo, 1048317u, new Vector3(-256.79233f, 264.02664f, 550.90546f), 620) + index2++; + span268[index2] = new QuestStep(EInteractionType.WalkTo, 1048317u, new Vector3(-256.79233f, 264.02664f, 550.90546f), 620) { Mount = false, Sprint = false }; obj184.Steps = list268; reference207 = obj184; - ref QuestSequence reference208 = ref span81[4]; + num++; + ref QuestSequence reference208 = ref span264[num]; QuestSequence obj185 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1048319u, new Vector3(-311.32983f, 257.52652f, 741.1459f), 620) + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + Span span269 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span269[num2] = new QuestStep(EInteractionType.Interact, 1048319u, new Vector3(-311.32983f, 257.52652f, 741.1459f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; obj185.Steps = list269; reference208 = obj185; - ref QuestSequence reference209 = ref span81[5]; + num++; + ref QuestSequence reference209 = ref span264[num]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue @@ -331517,7 +402577,9 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span270[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) { NextQuestId = new QuestId(4839) }; @@ -331530,21 +402592,26 @@ public static class AssemblyQuestLoader num = 1; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - CollectionsMarshal.AsSpan(list271)[0] = "liza"; + Span span271 = CollectionsMarshal.AsSpan(list271); + index = 0; + span271[index] = "liza"; questRoot31.Author = list271; - num = 7; - List list272 = new List(num); - CollectionsMarshal.SetCount(list272, num); - Span span83 = CollectionsMarshal.AsSpan(list272); - ref QuestSequence reference210 = ref span83[0]; + index = 7; + List list272 = new List(index); + CollectionsMarshal.SetCount(list272, index); + Span span272 = CollectionsMarshal.AsSpan(list272); + num = 0; + ref QuestSequence reference210 = ref span272[num]; QuestSequence obj187 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span273[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, SkipConditions = new SkipConditions @@ -331557,7 +402624,8 @@ public static class AssemblyQuestLoader }; obj187.Steps = list273; reference210 = obj187; - ref QuestSequence reference211 = ref span83[1]; + num++; + ref QuestSequence reference211 = ref span272[num]; QuestSequence obj188 = new QuestSequence { Sequence = 1 @@ -331565,28 +402633,34 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1048320u, new Vector3(135.63745f, 118.27393f, -685.5116f), 620) + Span span274 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span274[index2] = new QuestStep(EInteractionType.Interact, 1048320u, new Vector3(135.63745f, 118.27393f, -685.5116f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj188.Steps = list274; reference211 = obj188; - ref QuestSequence reference212 = ref span83[2]; + num++; + ref QuestSequence reference212 = ref span272[num]; QuestSequence obj189 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1048322u, new Vector3(136.18665f, 118.31259f, -684.596f), 620) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.Interact, 1048322u, new Vector3(136.18665f, 118.31259f, -684.596f), 620) { StopDistance = 5f }; obj189.Steps = list275; reference212 = obj189; - ref QuestSequence reference213 = ref span83[3]; + num++; + ref QuestSequence reference213 = ref span272[num]; QuestSequence obj190 = new QuestSequence { Sequence = 3 @@ -331594,50 +402668,64 @@ public static class AssemblyQuestLoader num2 = 2; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span84 = CollectionsMarshal.AsSpan(list276); - ref QuestStep reference214 = ref span84[0]; + Span span276 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + ref QuestStep reference214 = ref span276[index2]; QuestStep obj191 = new QuestStep(EInteractionType.Combat, null, new Vector3(-88.44731f, 101.93955f, -691.41956f), 620) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list277 = new List(num3); - CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = 17624u; + index3 = 1; + List list277 = new List(index3); + CollectionsMarshal.SetCount(list277, index3); + Span span277 = CollectionsMarshal.AsSpan(list277); + num3 = 0; + span277[num3] = 17624u; obj191.KillEnemyDataIds = list277; num3 = 6; List list278 = new List(num3); CollectionsMarshal.SetCount(list278, num3); - Span span85 = CollectionsMarshal.AsSpan(list278); - span85[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = null; + Span span278 = CollectionsMarshal.AsSpan(list278); + index3 = 0; + span278[index3] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index3++; + span278[index3] = null; + index3++; + span278[index3] = null; + index3++; + span278[index3] = null; + index3++; + span278[index3] = null; + index3++; + span278[index3] = null; obj191.CompletionQuestVariablesFlags = list278; reference214 = obj191; - span84[1] = new QuestStep(EInteractionType.Interact, 2013706u, new Vector3(-83.36011f, 104.6311f, -686.64075f), 620); + index2++; + span276[index2] = new QuestStep(EInteractionType.Interact, 2013706u, new Vector3(-83.36011f, 104.6311f, -686.64075f), 620); obj190.Steps = list276; reference213 = obj190; - ref QuestSequence reference215 = ref span83[4]; + num++; + ref QuestSequence reference215 = ref span272[num]; QuestSequence obj192 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1048322u, new Vector3(136.18665f, 118.31259f, -684.596f), 620) + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + Span span279 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span279[num2] = new QuestStep(EInteractionType.Interact, 1048322u, new Vector3(136.18665f, 118.31259f, -684.596f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj192.Steps = list279; reference215 = obj192; - ref QuestSequence reference216 = ref span83[5]; + num++; + ref QuestSequence reference216 = ref span272[num]; QuestSequence obj193 = new QuestSequence { Sequence = 5 @@ -331645,21 +402733,26 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1048323u, new Vector3(55.039307f, 115.59516f, -282.5208f), 620) + Span span280 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span280[index2] = new QuestStep(EInteractionType.Interact, 1048323u, new Vector3(55.039307f, 115.59516f, -282.5208f), 620) { Fly = true }; obj193.Steps = list280; reference216 = obj193; - ref QuestSequence reference217 = ref span83[6]; + num++; + ref QuestSequence reference217 = ref span272[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + Span span281 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span281[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, NextQuestId = new QuestId(4840) @@ -331673,13 +402766,16 @@ public static class AssemblyQuestLoader num = 1; List list282 = new List(num); CollectionsMarshal.SetCount(list282, num); - CollectionsMarshal.AsSpan(list282)[0] = "liza"; + Span span282 = CollectionsMarshal.AsSpan(list282); + index = 0; + span282[index] = "liza"; questRoot32.Author = list282; - num = 5; - List list283 = new List(num); - CollectionsMarshal.SetCount(list283, num); - Span span86 = CollectionsMarshal.AsSpan(list283); - ref QuestSequence reference218 = ref span86[0]; + index = 5; + List list283 = new List(index); + CollectionsMarshal.SetCount(list283, index); + Span span283 = CollectionsMarshal.AsSpan(list283); + num = 0; + ref QuestSequence reference218 = ref span283[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -331687,7 +402783,9 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span284[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, SkipConditions = new SkipConditions @@ -331700,22 +402798,26 @@ public static class AssemblyQuestLoader }; obj195.Steps = list284; reference218 = obj195; - ref QuestSequence reference219 = ref span86[1]; + num++; + ref QuestSequence reference219 = ref span283[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 1048324u, new Vector3(568.3833f, 80f, 618.09717f), 621) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span285 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span285[num2] = new QuestStep(EInteractionType.Interact, 1048324u, new Vector3(568.3833f, 80f, 618.09717f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj196.Steps = list285; reference219 = obj196; - ref QuestSequence reference220 = ref span86[2]; + num++; + ref QuestSequence reference220 = ref span283[num]; QuestSequence obj197 = new QuestSequence { Sequence = 2 @@ -331723,27 +402825,33 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1048325u, new Vector3(713.5576f, 69.99999f, 617.02905f), 621) + Span span286 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + span286[index2] = new QuestStep(EInteractionType.Interact, 1048325u, new Vector3(713.5576f, 69.99999f, 617.02905f), 621) { Fly = true }; obj197.Steps = list286; reference220 = obj197; - ref QuestSequence reference221 = ref span86[3]; + num++; + ref QuestSequence reference221 = ref span283[num]; QuestSequence obj198 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1048326u, new Vector3(754.5432f, 70f, 583.6727f), 621) + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + Span span287 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + span287[num2] = new QuestStep(EInteractionType.Interact, 1048326u, new Vector3(754.5432f, 70f, 583.6727f), 621) { Fly = true }; obj198.Steps = list287; reference221 = obj198; - ref QuestSequence reference222 = ref span86[4]; + num++; + ref QuestSequence reference222 = ref span283[num]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue @@ -331751,7 +402859,9 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048324u, new Vector3(568.3833f, 80f, 618.09717f), 621) + Span span288 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span288[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048324u, new Vector3(568.3833f, 80f, 618.09717f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -331766,21 +402876,26 @@ public static class AssemblyQuestLoader num = 1; List list289 = new List(num); CollectionsMarshal.SetCount(list289, num); - CollectionsMarshal.AsSpan(list289)[0] = "liza"; + Span span289 = CollectionsMarshal.AsSpan(list289); + index = 0; + span289[index] = "liza"; questRoot33.Author = list289; - num = 6; - List list290 = new List(num); - CollectionsMarshal.SetCount(list290, num); - Span span87 = CollectionsMarshal.AsSpan(list290); - ref QuestSequence reference223 = ref span87[0]; + index = 6; + List list290 = new List(index); + CollectionsMarshal.SetCount(list290, index); + Span span290 = CollectionsMarshal.AsSpan(list290); + num = 0; + ref QuestSequence reference223 = ref span290[num]; QuestSequence obj200 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048324u, new Vector3(568.3833f, 80f, 618.09717f), 621) + index2 = 1; + List list291 = new List(index2); + CollectionsMarshal.SetCount(list291, index2); + Span span291 = CollectionsMarshal.AsSpan(list291); + num2 = 0; + span291[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048324u, new Vector3(568.3833f, 80f, 618.09717f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, SkipConditions = new SkipConditions @@ -331793,7 +402908,8 @@ public static class AssemblyQuestLoader }; obj200.Steps = list291; reference223 = obj200; - ref QuestSequence reference224 = ref span87[1]; + num++; + ref QuestSequence reference224 = ref span290[num]; QuestSequence obj201 = new QuestSequence { Sequence = 1 @@ -331801,31 +402917,38 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 1048327u, new Vector3(723.781f, 69.99991f, 545.5862f), 621) + Span span292 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + span292[index2] = new QuestStep(EInteractionType.Interact, 1048327u, new Vector3(723.781f, 69.99991f, 545.5862f), 621) { Fly = true }; obj201.Steps = list292; reference224 = obj201; - ref QuestSequence reference225 = ref span87[2]; + num++; + ref QuestSequence reference225 = ref span290[num]; QuestSequence obj202 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048327u, new Vector3(723.781f, 69.99991f, 545.5862f), 621) + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + Span span293 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + span293[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048327u, new Vector3(723.781f, 69.99991f, 545.5862f), 621) { Comment = "The Mightiest Shield" }; obj202.Steps = list293; reference225 = obj202; - span87[3] = new QuestSequence + num++; + span290[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference226 = ref span87[4]; + num++; + ref QuestSequence reference226 = ref span290[num]; QuestSequence obj203 = new QuestSequence { Sequence = 4 @@ -331833,18 +402956,23 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1048327u, new Vector3(723.781f, 69.99991f, 545.5862f), 621); + Span span294 = CollectionsMarshal.AsSpan(list294); + index2 = 0; + span294[index2] = new QuestStep(EInteractionType.Interact, 1048327u, new Vector3(723.781f, 69.99991f, 545.5862f), 621); obj203.Steps = list294; reference226 = obj203; - ref QuestSequence reference227 = ref span87[5]; + num++; + ref QuestSequence reference227 = ref span290[num]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048308u, new Vector3(-38.95636f, -17.972864f, 203.38745f), 1185) + index2 = 1; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + Span span295 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + span295[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048308u, new Vector3(-38.95636f, -17.972864f, 203.38745f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -331862,13 +402990,16 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = "liza"; + Span span296 = CollectionsMarshal.AsSpan(list296); + index = 0; + span296[index] = "liza"; questRoot34.Author = list296; - num = 5; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - Span span88 = CollectionsMarshal.AsSpan(list297); - ref QuestSequence reference228 = ref span88[0]; + index = 5; + List list297 = new List(index); + CollectionsMarshal.SetCount(list297, index); + Span span297 = CollectionsMarshal.AsSpan(list297); + num = 0; + ref QuestSequence reference228 = ref span297[num]; QuestSequence obj205 = new QuestSequence { Sequence = 0 @@ -331876,7 +403007,9 @@ public static class AssemblyQuestLoader num2 = 1; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048330u, new Vector3(-28.732727f, -17.972864f, 194.72034f), 1185) + Span span298 = CollectionsMarshal.AsSpan(list298); + index2 = 0; + span298[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048330u, new Vector3(-28.732727f, -17.972864f, 194.72034f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -331889,21 +403022,25 @@ public static class AssemblyQuestLoader }; obj205.Steps = list298; reference228 = obj205; - ref QuestSequence reference229 = ref span88[1]; + num++; + ref QuestSequence reference229 = ref span297[num]; QuestSequence obj206 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1048335u, new Vector3(-16.739136f, 0.5999997f, -55.10034f), 963) + index2 = 1; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + Span span299 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span299[num2] = new QuestStep(EInteractionType.Interact, 1048335u, new Vector3(-16.739136f, 0.5999997f, -55.10034f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; obj206.Steps = list299; reference229 = obj206; - ref QuestSequence reference230 = ref span88[2]; + num++; + ref QuestSequence reference230 = ref span297[num]; QuestSequence obj207 = new QuestSequence { Sequence = 2 @@ -331911,27 +403048,33 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1048337u, new Vector3(155.87085f, 5.297462f, 618.2803f), 957) + Span span300 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span300[index2] = new QuestStep(EInteractionType.Interact, 1048337u, new Vector3(155.87085f, 5.297462f, 618.2803f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj207.Steps = list300; reference230 = obj207; - ref QuestSequence reference231 = ref span88[3]; + num++; + ref QuestSequence reference231 = ref span297[num]; QuestSequence obj208 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 2013708u, new Vector3(48.90515f, 90.22656f, -83.024414f), 957) + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + Span span301 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span301[num2] = new QuestStep(EInteractionType.Interact, 2013708u, new Vector3(48.90515f, 90.22656f, -83.024414f), 957) { StopDistance = 0.5f }; obj208.Steps = list301; reference231 = obj208; - ref QuestSequence reference232 = ref span88[4]; + num++; + ref QuestSequence reference232 = ref span297[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -331939,7 +403082,9 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + Span span302 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span302[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { NextQuestId = new QuestId(4843) }; @@ -331952,21 +403097,26 @@ public static class AssemblyQuestLoader num = 1; List list303 = new List(num); CollectionsMarshal.SetCount(list303, num); - CollectionsMarshal.AsSpan(list303)[0] = "liza"; + Span span303 = CollectionsMarshal.AsSpan(list303); + index = 0; + span303[index] = "liza"; questRoot35.Author = list303; - num = 8; - List list304 = new List(num); - CollectionsMarshal.SetCount(list304, num); - Span span89 = CollectionsMarshal.AsSpan(list304); - ref QuestSequence reference233 = ref span89[0]; + index = 8; + List list304 = new List(index); + CollectionsMarshal.SetCount(list304, index); + Span span304 = CollectionsMarshal.AsSpan(list304); + num = 0; + ref QuestSequence reference233 = ref span304[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + Span span305 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span305[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, SkipConditions = new SkipConditions @@ -331979,7 +403129,8 @@ public static class AssemblyQuestLoader }; obj210.Steps = list305; reference233 = obj210; - ref QuestSequence reference234 = ref span89[1]; + num++; + ref QuestSequence reference234 = ref span304[num]; QuestSequence obj211 = new QuestSequence { Sequence = 1 @@ -331987,21 +403138,26 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.Interact, 1048332u, new Vector3(52.506226f, -5.20688E-07f, -54.154297f), 963) + Span span306 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span306[index2] = new QuestStep(EInteractionType.Interact, 1048332u, new Vector3(52.506226f, -5.20688E-07f, -54.154297f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; obj211.Steps = list306; reference234 = obj211; - ref QuestSequence reference235 = ref span89[2]; + num++; + ref QuestSequence reference235 = ref span304[num]; QuestSequence obj212 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1048340u, new Vector3(-186.69415f, 4.0499983f, -108.11017f), 963) + index2 = 1; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + Span span307 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span307[num2] = new QuestStep(EInteractionType.Interact, 1048340u, new Vector3(-186.69415f, 4.0499983f, -108.11017f), 963) { AethernetShortcut = new AethernetShortcut { @@ -332011,7 +403167,8 @@ public static class AssemblyQuestLoader }; obj212.Steps = list307; reference235 = obj212; - ref QuestSequence reference236 = ref span89[3]; + num++; + ref QuestSequence reference236 = ref span304[num]; QuestSequence obj213 = new QuestSequence { Sequence = 3 @@ -332019,7 +403176,9 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1048332u, new Vector3(52.506226f, -5.20688E-07f, -54.154297f), 963) + Span span308 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span308[index2] = new QuestStep(EInteractionType.Interact, 1048332u, new Vector3(52.506226f, -5.20688E-07f, -54.154297f), 963) { AethernetShortcut = new AethernetShortcut { @@ -332029,22 +403188,26 @@ public static class AssemblyQuestLoader }; obj213.Steps = list308; reference236 = obj213; - ref QuestSequence reference237 = ref span89[4]; + num++; + ref QuestSequence reference237 = ref span304[num]; QuestSequence obj214 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 1048343u, new Vector3(-336.53772f, 52.243706f, -165.05688f), 957) + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + Span span309 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span309[num2] = new QuestStep(EInteractionType.Interact, 1048343u, new Vector3(-336.53772f, 52.243706f, -165.05688f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj214.Steps = list309; reference237 = obj214; - ref QuestSequence reference238 = ref span89[5]; + num++; + ref QuestSequence reference238 = ref span304[num]; QuestSequence obj215 = new QuestSequence { Sequence = 5 @@ -332052,36 +403215,44 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list310)[0]; + Span span310 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + ref QuestStep reference239 = ref span310[index2]; QuestStep obj216 = new QuestStep(EInteractionType.Combat, null, new Vector3(-427.5108f, -0.015813708f, -710.37146f), 957) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list311 = new List(num3); - CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = 17625u; + index3 = 1; + List list311 = new List(index3); + CollectionsMarshal.SetCount(list311, index3); + Span span311 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span311[num3] = 17625u; obj216.KillEnemyDataIds = list311; reference239 = obj216; obj215.Steps = list310; reference238 = obj215; - ref QuestSequence reference240 = ref span89[6]; + num++; + ref QuestSequence reference240 = ref span304[num]; QuestSequence obj217 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Interact, 1048344u, new Vector3(-419.028f, 0.06509568f, -710.9331f), 957) + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + Span span312 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span312[num2] = new QuestStep(EInteractionType.Interact, 1048344u, new Vector3(-419.028f, 0.06509568f, -710.9331f), 957) { StopDistance = 7f }; obj217.Steps = list312; reference240 = obj217; - ref QuestSequence reference241 = ref span89[7]; + num++; + ref QuestSequence reference241 = ref span304[num]; QuestSequence obj218 = new QuestSequence { Sequence = byte.MaxValue @@ -332089,7 +403260,9 @@ public static class AssemblyQuestLoader num2 = 1; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + Span span313 = CollectionsMarshal.AsSpan(list313); + index2 = 0; + span313[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, NextQuestId = new QuestId(4844) @@ -332103,21 +403276,26 @@ public static class AssemblyQuestLoader num = 1; List list314 = new List(num); CollectionsMarshal.SetCount(list314, num); - CollectionsMarshal.AsSpan(list314)[0] = "liza"; + Span span314 = CollectionsMarshal.AsSpan(list314); + index = 0; + span314[index] = "liza"; questRoot36.Author = list314; - num = 7; - List list315 = new List(num); - CollectionsMarshal.SetCount(list315, num); - Span span90 = CollectionsMarshal.AsSpan(list315); - ref QuestSequence reference242 = ref span90[0]; + index = 7; + List list315 = new List(index); + CollectionsMarshal.SetCount(list315, index); + Span span315 = CollectionsMarshal.AsSpan(list315); + num = 0; + ref QuestSequence reference242 = ref span315[num]; QuestSequence obj219 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + Span span316 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + span316[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, SkipConditions = new SkipConditions @@ -332130,7 +403308,8 @@ public static class AssemblyQuestLoader }; obj219.Steps = list316; reference242 = obj219; - ref QuestSequence reference243 = ref span90[1]; + num++; + ref QuestSequence reference243 = ref span315[num]; QuestSequence obj220 = new QuestSequence { Sequence = 1 @@ -332138,23 +403317,27 @@ public static class AssemblyQuestLoader num2 = 1; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.Interact, 1048348u, new Vector3(-118.76105f, 88.94139f, -556.90857f), 957) + Span span317 = CollectionsMarshal.AsSpan(list317); + index2 = 0; + span317[index2] = new QuestStep(EInteractionType.Interact, 1048348u, new Vector3(-118.76105f, 88.94139f, -556.90857f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj220.Steps = list317; reference243 = obj220; - ref QuestSequence reference244 = ref span90[2]; + num++; + ref QuestSequence reference244 = ref span315[num]; QuestSequence obj221 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list318 = new List(num2); - CollectionsMarshal.SetCount(list318, num2); - Span span91 = CollectionsMarshal.AsSpan(list318); - ref QuestStep reference245 = ref span91[0]; + index2 = 2; + List list318 = new List(index2); + CollectionsMarshal.SetCount(list318, index2); + Span span318 = CollectionsMarshal.AsSpan(list318); + num2 = 0; + ref QuestStep reference245 = ref span318[num2]; QuestStep obj222 = new QuestStep(EInteractionType.Combat, null, new Vector3(76.82042f, 82.46339f, -549.32526f), 957) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -332162,7 +403345,9 @@ public static class AssemblyQuestLoader num3 = 1; List list319 = new List(num3); CollectionsMarshal.SetCount(list319, num3); - ref ComplexCombatData reference246 = ref CollectionsMarshal.AsSpan(list319)[0]; + Span span319 = CollectionsMarshal.AsSpan(list319); + index3 = 0; + ref ComplexCombatData reference246 = ref span319[index3]; ComplexCombatData obj223 = new ComplexCombatData { DataId = 17626u @@ -332170,24 +403355,32 @@ public static class AssemblyQuestLoader int num4 = 6; List list320 = new List(num4); CollectionsMarshal.SetCount(list320, num4); - Span span92 = CollectionsMarshal.AsSpan(list320); - span92[0] = null; - span92[1] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = null; + Span span320 = CollectionsMarshal.AsSpan(list320); + int num5 = 0; + span320[num5] = null; + num5++; + span320[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num5++; + span320[num5] = null; + num5++; + span320[num5] = null; + num5++; + span320[num5] = null; + num5++; + span320[num5] = null; obj223.CompletionQuestVariablesFlags = list320; reference246 = obj223; obj222.ComplexCombatData = list319; reference245 = obj222; - span91[1] = new QuestStep(EInteractionType.UseItem, 17626u, new Vector3(77.01221f, 82.459785f, -549.218f), 957) + num2++; + span318[num2] = new QuestStep(EInteractionType.UseItem, 17626u, new Vector3(77.01221f, 82.459785f, -549.218f), 957) { ItemId = 2003495u }; obj221.Steps = list318; reference244 = obj221; - ref QuestSequence reference247 = ref span90[3]; + num++; + ref QuestSequence reference247 = ref span315[num]; QuestSequence obj224 = new QuestSequence { Sequence = 3 @@ -332195,24 +403388,30 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.Interact, 1048348u, new Vector3(-118.76105f, 88.94139f, -556.90857f), 957); + Span span321 = CollectionsMarshal.AsSpan(list321); + index2 = 0; + span321[index2] = new QuestStep(EInteractionType.Interact, 1048348u, new Vector3(-118.76105f, 88.94139f, -556.90857f), 957); obj224.Steps = list321; reference247 = obj224; - ref QuestSequence reference248 = ref span90[4]; + num++; + ref QuestSequence reference248 = ref span315[num]; QuestSequence obj225 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.Interact, 1048350u, new Vector3(-508.53745f, 12.375278f, 97.3678f), 957) + index2 = 1; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + Span span322 = CollectionsMarshal.AsSpan(list322); + num2 = 0; + span322[num2] = new QuestStep(EInteractionType.Interact, 1048350u, new Vector3(-508.53745f, 12.375278f, 97.3678f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj225.Steps = list322; reference248 = obj225; - ref QuestSequence reference249 = ref span90[5]; + num++; + ref QuestSequence reference249 = ref span315[num]; QuestSequence obj226 = new QuestSequence { Sequence = 5 @@ -332220,63 +403419,87 @@ public static class AssemblyQuestLoader num2 = 3; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span93 = CollectionsMarshal.AsSpan(list323); - ref QuestStep reference250 = ref span93[0]; + Span span323 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + ref QuestStep reference250 = ref span323[index2]; QuestStep obj227 = new QuestStep(EInteractionType.Interact, 1048354u, new Vector3(154.28394f, 5.2641535f, 618.40234f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - num3 = 6; - List list324 = new List(num3); - CollectionsMarshal.SetCount(list324, num3); - Span span94 = CollectionsMarshal.AsSpan(list324); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list324 = new List(index3); + CollectionsMarshal.SetCount(list324, index3); + Span span324 = CollectionsMarshal.AsSpan(list324); + num3 = 0; + span324[num3] = null; + num3++; + span324[num3] = null; + num3++; + span324[num3] = null; + num3++; + span324[num3] = null; + num3++; + span324[num3] = null; + num3++; + span324[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj227.CompletionQuestVariablesFlags = list324; reference250 = obj227; - ref QuestStep reference251 = ref span93[1]; + index2++; + ref QuestStep reference251 = ref span323[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1048355u, new Vector3(227.98499f, 10.19656f, 563.31726f), 957); num3 = 6; List list325 = new List(num3); CollectionsMarshal.SetCount(list325, num3); - Span span95 = CollectionsMarshal.AsSpan(list325); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span325 = CollectionsMarshal.AsSpan(list325); + index3 = 0; + span325[index3] = null; + index3++; + span325[index3] = null; + index3++; + span325[index3] = null; + index3++; + span325[index3] = null; + index3++; + span325[index3] = null; + index3++; + span325[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list325; reference251 = questStep24; - ref QuestStep reference252 = ref span93[2]; + index2++; + ref QuestStep reference252 = ref span323[index2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1048352u, new Vector3(195.5138f, 15.136732f, 529.015f), 957); - num3 = 6; - List list326 = new List(num3); - CollectionsMarshal.SetCount(list326, num3); - Span span96 = CollectionsMarshal.AsSpan(list326); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list326 = new List(index3); + CollectionsMarshal.SetCount(list326, index3); + Span span326 = CollectionsMarshal.AsSpan(list326); + num3 = 0; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = null; + num3++; + span326[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list326; reference252 = questStep25; obj226.Steps = list323; reference249 = obj226; - ref QuestSequence reference253 = ref span90[6]; + num++; + ref QuestSequence reference253 = ref span315[num]; QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + index2 = 1; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + Span span327 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span327[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { NextQuestId = new QuestId(4845) }; @@ -332289,13 +403512,16 @@ public static class AssemblyQuestLoader num = 1; List list328 = new List(num); CollectionsMarshal.SetCount(list328, num); - CollectionsMarshal.AsSpan(list328)[0] = "liza"; + Span span328 = CollectionsMarshal.AsSpan(list328); + index = 0; + span328[index] = "liza"; questRoot37.Author = list328; - num = 9; - List list329 = new List(num); - CollectionsMarshal.SetCount(list329, num); - Span span97 = CollectionsMarshal.AsSpan(list329); - ref QuestSequence reference254 = ref span97[0]; + index = 9; + List list329 = new List(index); + CollectionsMarshal.SetCount(list329, index); + Span span329 = CollectionsMarshal.AsSpan(list329); + num = 0; + ref QuestSequence reference254 = ref span329[num]; QuestSequence obj229 = new QuestSequence { Sequence = 0 @@ -332303,7 +403529,9 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - ref QuestStep reference255 = ref CollectionsMarshal.AsSpan(list330)[0]; + Span span330 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + ref QuestStep reference255 = ref span330[index2]; QuestStep obj230 = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, @@ -332318,7 +403546,9 @@ public static class AssemblyQuestLoader num3 = 1; List list331 = new List(num3); CollectionsMarshal.SetCount(list331, num3); - CollectionsMarshal.AsSpan(list331)[0] = new DialogueChoice + Span span331 = CollectionsMarshal.AsSpan(list331); + index3 = 0; + span331[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA531_04845_Q2_000_200"), @@ -332328,16 +403558,18 @@ public static class AssemblyQuestLoader reference255 = obj230; obj229.Steps = list330; reference254 = obj229; - ref QuestSequence reference256 = ref span97[1]; + num++; + ref QuestSequence reference256 = ref span329[num]; QuestSequence obj231 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list332 = new List(num2); - CollectionsMarshal.SetCount(list332, num2); - Span span98 = CollectionsMarshal.AsSpan(list332); - ref QuestStep reference257 = ref span98[0]; + index2 = 3; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + Span span332 = CollectionsMarshal.AsSpan(list332); + num2 = 0; + ref QuestStep reference257 = ref span332[num2]; QuestStep obj232 = new QuestStep(EInteractionType.Interact, 1048357u, new Vector3(-183.21509f, 36f, 53.116577f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -332347,49 +403579,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanRuveydahFibers } }; - num3 = 6; - List list333 = new List(num3); - CollectionsMarshal.SetCount(list333, num3); - Span span99 = CollectionsMarshal.AsSpan(list333); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list333 = new List(index3); + CollectionsMarshal.SetCount(list333, index3); + Span span333 = CollectionsMarshal.AsSpan(list333); + num3 = 0; + span333[num3] = null; + num3++; + span333[num3] = null; + num3++; + span333[num3] = null; + num3++; + span333[num3] = null; + num3++; + span333[num3] = null; + num3++; + span333[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj232.CompletionQuestVariablesFlags = list333; reference257 = obj232; - ref QuestStep reference258 = ref span98[1]; + num2++; + ref QuestStep reference258 = ref span332[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1048359u, new Vector3(-175.0058f, 36.051327f, 104.20386f), 963); num3 = 6; List list334 = new List(num3); CollectionsMarshal.SetCount(list334, num3); - Span span100 = CollectionsMarshal.AsSpan(list334); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span334 = CollectionsMarshal.AsSpan(list334); + index3 = 0; + span334[index3] = null; + index3++; + span334[index3] = null; + index3++; + span334[index3] = null; + index3++; + span334[index3] = null; + index3++; + span334[index3] = null; + index3++; + span334[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list334; reference258 = questStep26; - ref QuestStep reference259 = ref span98[2]; + num2++; + ref QuestStep reference259 = ref span332[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1048360u, new Vector3(-237.41516f, 35.999996f, 102.067505f), 963); - num3 = 6; - List list335 = new List(num3); - CollectionsMarshal.SetCount(list335, num3); - Span span101 = CollectionsMarshal.AsSpan(list335); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list335 = new List(index3); + CollectionsMarshal.SetCount(list335, index3); + Span span335 = CollectionsMarshal.AsSpan(list335); + num3 = 0; + span335[num3] = null; + num3++; + span335[num3] = null; + num3++; + span335[num3] = null; + num3++; + span335[num3] = null; + num3++; + span335[num3] = null; + num3++; + span335[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list335; reference259 = questStep27; obj231.Steps = list332; reference256 = obj231; - ref QuestSequence reference260 = ref span97[2]; + num++; + ref QuestSequence reference260 = ref span329[num]; QuestSequence obj233 = new QuestSequence { Sequence = 2 @@ -332397,7 +403650,9 @@ public static class AssemblyQuestLoader num2 = 1; List list336 = new List(num2); CollectionsMarshal.SetCount(list336, num2); - CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Interact, 1048362u, new Vector3(-10.544006f, 2.999996f, -204.91345f), 963) + Span span336 = CollectionsMarshal.AsSpan(list336); + index2 = 0; + span336[index2] = new QuestStep(EInteractionType.Interact, 1048362u, new Vector3(-10.544006f, 2.999996f, -204.91345f), 963) { AethernetShortcut = new AethernetShortcut { @@ -332407,18 +403662,22 @@ public static class AssemblyQuestLoader }; obj233.Steps = list336; reference260 = obj233; - ref QuestSequence reference261 = ref span97[3]; + num++; + ref QuestSequence reference261 = ref span329[num]; QuestSequence obj234 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.Interact, 1048361u, new Vector3(9.262146f, 0.92f, -103.31885f), 963); + index2 = 1; + List list337 = new List(index2); + CollectionsMarshal.SetCount(list337, index2); + Span span337 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + span337[num2] = new QuestStep(EInteractionType.Interact, 1048361u, new Vector3(9.262146f, 0.92f, -103.31885f), 963); obj234.Steps = list337; reference261 = obj234; - ref QuestSequence reference262 = ref span97[4]; + num++; + ref QuestSequence reference262 = ref span329[num]; QuestSequence obj235 = new QuestSequence { Sequence = 4 @@ -332426,24 +403685,30 @@ public static class AssemblyQuestLoader num2 = 1; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.Interact, 1048363u, new Vector3(369.40564f, 3.9809039f, -219.40955f), 957) + Span span338 = CollectionsMarshal.AsSpan(list338); + index2 = 0; + span338[index2] = new QuestStep(EInteractionType.Interact, 1048363u, new Vector3(369.40564f, 3.9809039f, -219.40955f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj235.Steps = list338; reference262 = obj235; - ref QuestSequence reference263 = ref span97[5]; + num++; + ref QuestSequence reference263 = ref span329[num]; QuestSequence obj236 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list339 = new List(num2); - CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 2013713u, new Vector3(362.35596f, 3.616333f, -241.77924f), 957); + index2 = 1; + List list339 = new List(index2); + CollectionsMarshal.SetCount(list339, index2); + Span span339 = CollectionsMarshal.AsSpan(list339); + num2 = 0; + span339[num2] = new QuestStep(EInteractionType.Interact, 2013713u, new Vector3(362.35596f, 3.616333f, -241.77924f), 957); obj236.Steps = list339; reference263 = obj236; - ref QuestSequence reference264 = ref span97[6]; + num++; + ref QuestSequence reference264 = ref span329[num]; QuestSequence obj237 = new QuestSequence { Sequence = 6 @@ -332451,8 +403716,9 @@ public static class AssemblyQuestLoader num2 = 12; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - Span span102 = CollectionsMarshal.AsSpan(list340); - ref QuestStep reference265 = ref span102[0]; + Span span340 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + ref QuestStep reference265 = ref span340[index2]; QuestStep obj238 = new QuestStep(EInteractionType.Interact, 2013713u, new Vector3(362.35596f, 3.616333f, -241.77924f), 957) { StopDistance = 0.25f, @@ -332469,86 +403735,103 @@ public static class AssemblyQuestLoader num3 = 1; List list341 = new List(num3); CollectionsMarshal.SetCount(list341, num3); - CollectionsMarshal.AsSpan(list341)[0] = new DialogueChoice + Span span341 = CollectionsMarshal.AsSpan(list341); + index3 = 0; + span341[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGBA531_04845_Q1_000_054") }; obj238.DialogueChoices = list341; reference265 = obj238; - span102[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(387.43045f, 5.8062716f, -203.20459f), 957) + index2++; + span340[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(387.43045f, 5.8062716f, -203.20459f), 957) { StopDistance = 50f, Mount = false, Sprint = false }; - span102[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.85394f, 3.0972311f, -220.57103f), 957) + index2++; + span340[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.85394f, 3.0972311f, -220.57103f), 957) { Mount = false, Sprint = false }; - span102[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(398.46808f, 12.103142f, -174.068f), 957) + index2++; + span340[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(398.46808f, 12.103142f, -174.068f), 957) { StopDistance = 50f, Mount = false, Sprint = false }; - span102[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(395.88028f, 10.267179f, -192.21916f), 957) + index2++; + span340[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(395.88028f, 10.267179f, -192.21916f), 957) { Mount = false, Sprint = false }; - span102[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(395.6862f, 11.099065f, -169.7558f), 957) + index2++; + span340[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(395.6862f, 11.099065f, -169.7558f), 957) { StopDistance = 50f, Mount = false, Sprint = false }; - span102[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(398.42825f, 12.946791f, -180.08061f), 957) + index2++; + span340[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(398.42825f, 12.946791f, -180.08061f), 957) { Mount = false, Sprint = false }; - span102[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(368.02908f, 5.7749786f, -135.06207f), 957) + index2++; + span340[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(368.02908f, 5.7749786f, -135.06207f), 957) { Mount = false, Sprint = false }; - span102[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(300.81885f, 18.925224f, -43.56831f), 957) + index2++; + span340[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(300.81885f, 18.925224f, -43.56831f), 957) { Mount = false, Sprint = false }; - span102[9] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(274.41418f, 17.838093f, -2.1020741f), 957) + index2++; + span340[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(274.41418f, 17.838093f, -2.1020741f), 957) { StopDistance = 50f, Mount = false, Sprint = false }; - span102[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(256.60135f, 19.312042f, -1.2628903f), 957) + index2++; + span340[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(256.60135f, 19.312042f, -1.2628903f), 957) { Mount = false, Sprint = false }; - span102[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.453f, 16.725914f, 14.936783f), 957) + index2++; + span340[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.453f, 16.725914f, 14.936783f), 957) { Mount = false, Sprint = false }; obj237.Steps = list340; reference264 = obj237; - ref QuestSequence reference266 = ref span97[7]; + num++; + ref QuestSequence reference266 = ref span329[num]; QuestSequence obj239 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 1048368u, new Vector3(239.33765f, 11.061386f, 69.99304f), 957); + index2 = 1; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + Span span342 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span342[num2] = new QuestStep(EInteractionType.Interact, 1048368u, new Vector3(239.33765f, 11.061386f, 69.99304f), 957); obj239.Steps = list342; reference266 = obj239; - ref QuestSequence reference267 = ref span97[8]; + num++; + ref QuestSequence reference267 = ref span329[num]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue @@ -332556,7 +403839,9 @@ public static class AssemblyQuestLoader num2 = 1; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + Span span343 = CollectionsMarshal.AsSpan(list343); + index2 = 0; + span343[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, NextQuestId = new QuestId(4846) @@ -332570,21 +403855,26 @@ public static class AssemblyQuestLoader num = 1; List list344 = new List(num); CollectionsMarshal.SetCount(list344, num); - CollectionsMarshal.AsSpan(list344)[0] = "liza"; + Span span344 = CollectionsMarshal.AsSpan(list344); + index = 0; + span344[index] = "liza"; questRoot38.Author = list344; - num = 7; - List list345 = new List(num); - CollectionsMarshal.SetCount(list345, num); - Span span103 = CollectionsMarshal.AsSpan(list345); - ref QuestSequence reference268 = ref span103[0]; + index = 7; + List list345 = new List(index); + CollectionsMarshal.SetCount(list345, index); + Span span345 = CollectionsMarshal.AsSpan(list345); + num = 0; + ref QuestSequence reference268 = ref span345[num]; QuestSequence obj241 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + Span span346 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span346[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, SkipConditions = new SkipConditions @@ -332597,7 +403887,8 @@ public static class AssemblyQuestLoader }; obj241.Steps = list346; reference268 = obj241; - ref QuestSequence reference269 = ref span103[1]; + num++; + ref QuestSequence reference269 = ref span345[num]; QuestSequence obj242 = new QuestSequence { Sequence = 1 @@ -332605,7 +403896,9 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1048330u, new Vector3(-28.732727f, -17.972864f, 194.72034f), 1185) + Span span347 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span347[index2] = new QuestStep(EInteractionType.Interact, 1048330u, new Vector3(-28.732727f, -17.972864f, 194.72034f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -332616,16 +403909,18 @@ public static class AssemblyQuestLoader }; obj242.Steps = list347; reference269 = obj242; - ref QuestSequence reference270 = ref span103[2]; + num++; + ref QuestSequence reference270 = ref span345[num]; QuestSequence obj243 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - Span span104 = CollectionsMarshal.AsSpan(list348); - span104[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(327.87598f, -15.862221f, -236.6933f), 1190) + index2 = 2; + List list348 = new List(index2); + CollectionsMarshal.SetCount(list348, index2); + Span span348 = CollectionsMarshal.AsSpan(list348); + num2 = 0; + span348[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(327.87598f, -15.862221f, -236.6933f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan, SkipConditions = new SkipConditions @@ -332636,21 +403931,25 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference271 = ref span104[1]; + num2++; + ref QuestStep reference271 = ref span348[num2]; QuestStep obj244 = new QuestStep(EInteractionType.Combat, null, new Vector3(442.79218f, -16.660347f, -111.04725f), 1190) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list349 = new List(num3); - CollectionsMarshal.SetCount(list349, num3); - CollectionsMarshal.AsSpan(list349)[0] = 17627u; + index3 = 1; + List list349 = new List(index3); + CollectionsMarshal.SetCount(list349, index3); + Span span349 = CollectionsMarshal.AsSpan(list349); + num3 = 0; + span349[num3] = 17627u; obj244.KillEnemyDataIds = list349; reference271 = obj244; obj243.Steps = list348; reference270 = obj243; - ref QuestSequence reference272 = ref span103[3]; + num++; + ref QuestSequence reference272 = ref span345[num]; QuestSequence obj245 = new QuestSequence { Sequence = 3 @@ -332658,27 +403957,33 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.Interact, 1048369u, new Vector3(441.5503f, -16.619904f, -109.14783f), 1190) + Span span350 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + span350[index2] = new QuestStep(EInteractionType.Interact, 1048369u, new Vector3(441.5503f, -16.619904f, -109.14783f), 1190) { StopDistance = 7f }; obj245.Steps = list350; reference272 = obj245; - ref QuestSequence reference273 = ref span103[4]; + num++; + ref QuestSequence reference273 = ref span345[num]; QuestSequence obj246 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1048333u, new Vector3(52.506226f, -5.20688E-07f, -54.154297f), 963) + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + Span span351 = CollectionsMarshal.AsSpan(list351); + num2 = 0; + span351[num2] = new QuestStep(EInteractionType.Interact, 1048333u, new Vector3(52.506226f, -5.20688E-07f, -54.154297f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; obj246.Steps = list351; reference273 = obj246; - ref QuestSequence reference274 = ref span103[5]; + num++; + ref QuestSequence reference274 = ref span345[num]; QuestSequence obj247 = new QuestSequence { Sequence = 5 @@ -332686,21 +403991,26 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1048372u, new Vector3(-53.177734f, -1.9999962f, 147.60046f), 963) + Span span352 = CollectionsMarshal.AsSpan(list352); + index2 = 0; + span352[index2] = new QuestStep(EInteractionType.Interact, 1048372u, new Vector3(-53.177734f, -1.9999962f, 147.60046f), 963) { StopDistance = 7f }; obj247.Steps = list352; reference274 = obj247; - ref QuestSequence reference275 = ref span103[6]; + num++; + ref QuestSequence reference275 = ref span345[num]; QuestSequence obj248 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + index2 = 1; + List list353 = new List(index2); + CollectionsMarshal.SetCount(list353, index2); + Span span353 = CollectionsMarshal.AsSpan(list353); + num2 = 0; + span353[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, NextQuestId = new QuestId(4847) @@ -332714,13 +404024,16 @@ public static class AssemblyQuestLoader num = 1; List list354 = new List(num); CollectionsMarshal.SetCount(list354, num); - CollectionsMarshal.AsSpan(list354)[0] = "liza"; + Span span354 = CollectionsMarshal.AsSpan(list354); + index = 0; + span354[index] = "liza"; questRoot39.Author = list354; - num = 5; - List list355 = new List(num); - CollectionsMarshal.SetCount(list355, num); - Span span105 = CollectionsMarshal.AsSpan(list355); - ref QuestSequence reference276 = ref span105[0]; + index = 5; + List list355 = new List(index); + CollectionsMarshal.SetCount(list355, index); + Span span355 = CollectionsMarshal.AsSpan(list355); + num = 0; + ref QuestSequence reference276 = ref span355[num]; QuestSequence obj249 = new QuestSequence { Sequence = 0 @@ -332728,7 +404041,9 @@ public static class AssemblyQuestLoader num2 = 1; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + Span span356 = CollectionsMarshal.AsSpan(list356); + index2 = 0; + span356[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, SkipConditions = new SkipConditions @@ -332741,15 +404056,18 @@ public static class AssemblyQuestLoader }; obj249.Steps = list356; reference276 = obj249; - ref QuestSequence reference277 = ref span105[1]; + num++; + ref QuestSequence reference277 = ref span355[num]; QuestSequence obj250 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048374u, new Vector3(-77.04285f, 99.946754f, -711.0552f), 957) + index2 = 1; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + Span span357 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span357[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048374u, new Vector3(-77.04285f, 99.946754f, -711.0552f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -332761,11 +404079,13 @@ public static class AssemblyQuestLoader }; obj250.Steps = list357; reference277 = obj250; - span105[2] = new QuestSequence + num++; + span355[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference278 = ref span105[3]; + num++; + ref QuestSequence reference278 = ref span355[num]; QuestSequence obj251 = new QuestSequence { Sequence = 3 @@ -332773,18 +404093,23 @@ public static class AssemblyQuestLoader num2 = 1; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.Interact, 1048374u, new Vector3(-77.04285f, 99.946754f, -711.0552f), 957); + Span span358 = CollectionsMarshal.AsSpan(list358); + index2 = 0; + span358[index2] = new QuestStep(EInteractionType.Interact, 1048374u, new Vector3(-77.04285f, 99.946754f, -711.0552f), 957); obj251.Steps = list358; reference278 = obj251; - ref QuestSequence reference279 = ref span105[4]; + num++; + ref QuestSequence reference279 = ref span355[num]; QuestSequence obj252 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list359 = new List(num2); - CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048330u, new Vector3(-28.732727f, -17.972864f, 194.72034f), 1185) + index2 = 1; + List list359 = new List(index2); + CollectionsMarshal.SetCount(list359, index2); + Span span359 = CollectionsMarshal.AsSpan(list359); + num2 = 0; + span359[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048330u, new Vector3(-28.732727f, -17.972864f, 194.72034f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -332802,13 +404127,16 @@ public static class AssemblyQuestLoader num = 1; List list360 = new List(num); CollectionsMarshal.SetCount(list360, num); - CollectionsMarshal.AsSpan(list360)[0] = "liza"; + Span span360 = CollectionsMarshal.AsSpan(list360); + index = 0; + span360[index] = "liza"; questRoot40.Author = list360; - num = 4; - List list361 = new List(num); - CollectionsMarshal.SetCount(list361, num); - Span span106 = CollectionsMarshal.AsSpan(list361); - ref QuestSequence reference280 = ref span106[0]; + index = 4; + List list361 = new List(index); + CollectionsMarshal.SetCount(list361, index); + Span span361 = CollectionsMarshal.AsSpan(list361); + num = 0; + ref QuestSequence reference280 = ref span361[num]; QuestSequence obj253 = new QuestSequence { Sequence = 0 @@ -332816,7 +404144,9 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046333u, new Vector3(-92.21033f, 3.9999995f, -99.321045f), 130) + Span span362 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span362[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046333u, new Vector3(-92.21033f, 3.9999995f, -99.321045f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -332829,15 +404159,18 @@ public static class AssemblyQuestLoader }; obj253.Steps = list362; reference280 = obj253; - ref QuestSequence reference281 = ref span106[1]; + num++; + ref QuestSequence reference281 = ref span361[num]; QuestSequence obj254 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.Interact, 1046334u, new Vector3(89.09741f, 12f, 49.484985f), 131) + index2 = 1; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + Span span363 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + span363[num2] = new QuestStep(EInteractionType.Interact, 1046334u, new Vector3(89.09741f, 12f, 49.484985f), 131) { AethernetShortcut = new AethernetShortcut { @@ -332847,7 +404180,8 @@ public static class AssemblyQuestLoader }; obj254.Steps = list363; reference281 = obj254; - ref QuestSequence reference282 = ref span106[2]; + num++; + ref QuestSequence reference282 = ref span361[num]; QuestSequence obj255 = new QuestSequence { Sequence = 2 @@ -332855,21 +404189,26 @@ public static class AssemblyQuestLoader num2 = 1; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Interact, 1046336u, new Vector3(-408.52985f, -55.904274f, 120.74463f), 145) + Span span364 = CollectionsMarshal.AsSpan(list364); + index2 = 0; + span364[index2] = new QuestStep(EInteractionType.Interact, 1046336u, new Vector3(-408.52985f, -55.904274f, 120.74463f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj255.Steps = list364; reference282 = obj255; - ref QuestSequence reference283 = ref span106[3]; + num++; + ref QuestSequence reference283 = ref span361[num]; QuestSequence obj256 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - ref QuestStep reference284 = ref CollectionsMarshal.AsSpan(list365)[0]; + index2 = 1; + List list365 = new List(index2); + CollectionsMarshal.SetCount(list365, index2); + Span span365 = CollectionsMarshal.AsSpan(list365); + num2 = 0; + ref QuestStep reference284 = ref span365[num2]; QuestStep obj257 = new QuestStep(EInteractionType.CompleteQuest, 1046337u, new Vector3(89.036255f, 12f, 47.287598f), 131) { AethernetShortcut = new AethernetShortcut @@ -332881,7 +404220,9 @@ public static class AssemblyQuestLoader num3 = 1; List list366 = new List(num3); CollectionsMarshal.SetCount(list366, num3); - CollectionsMarshal.AsSpan(list366)[0] = new DialogueChoice + Span span366 = CollectionsMarshal.AsSpan(list366); + index3 = 0; + span366[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGBB101_04848_Q3_000_000") @@ -332898,13 +404239,16 @@ public static class AssemblyQuestLoader num = 1; List list367 = new List(num); CollectionsMarshal.SetCount(list367, num); - CollectionsMarshal.AsSpan(list367)[0] = "liza"; + Span span367 = CollectionsMarshal.AsSpan(list367); + index = 0; + span367[index] = "liza"; questRoot41.Author = list367; - num = 10; - List list368 = new List(num); - CollectionsMarshal.SetCount(list368, num); - Span span107 = CollectionsMarshal.AsSpan(list368); - ref QuestSequence reference285 = ref span107[0]; + index = 10; + List list368 = new List(index); + CollectionsMarshal.SetCount(list368, index); + Span span368 = CollectionsMarshal.AsSpan(list368); + num = 0; + ref QuestSequence reference285 = ref span368[num]; QuestSequence obj258 = new QuestSequence { Sequence = 0 @@ -332912,8 +404256,9 @@ public static class AssemblyQuestLoader num2 = 4; List list369 = new List(num2); CollectionsMarshal.SetCount(list369, num2); - Span span108 = CollectionsMarshal.AsSpan(list369); - ref QuestStep reference286 = ref span108[0]; + Span span369 = CollectionsMarshal.AsSpan(list369); + index2 = 0; + ref QuestStep reference286 = ref span369[index2]; QuestStep obj259 = new QuestStep(EInteractionType.UseItem, null, new Vector3(89.036255f, 12f, 47.287598f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -332938,15 +404283,18 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list370 = new List(num3); - CollectionsMarshal.SetCount(list370, num3); - CollectionsMarshal.AsSpan(list370)[0] = 131; + index3 = 1; + List list370 = new List(index3); + CollectionsMarshal.SetCount(list370, index3); + Span span370 = CollectionsMarshal.AsSpan(list370); + num3 = 0; + span370[num3] = 131; obj261.InTerritory = list370; obj260.AetheryteShortcutIf = obj261; obj259.SkipConditions = obj260; reference286 = obj259; - span108[1] = new QuestStep(EInteractionType.EquipItem, null, null, 131) + index2++; + span369[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 131) { ItemId = 41808u, SkipConditions = new SkipConditions @@ -332960,19 +404308,24 @@ public static class AssemblyQuestLoader } } }; - span108[2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 131); - span108[3] = new QuestStep(EInteractionType.AcceptQuest, 1046337u, new Vector3(89.036255f, 12f, 47.287598f), 131); + index2++; + span369[index2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 131); + index2++; + span369[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046337u, new Vector3(89.036255f, 12f, 47.287598f), 131); obj258.Steps = list369; reference285 = obj258; - ref QuestSequence reference287 = ref span107[1]; + num++; + ref QuestSequence reference287 = ref span368[num]; QuestSequence obj262 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list371 = new List(num2); - CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1046338u, new Vector3(11.428955f, 3.9999998f, -135.69855f), 130) + index2 = 1; + List list371 = new List(index2); + CollectionsMarshal.SetCount(list371, index2); + Span span371 = CollectionsMarshal.AsSpan(list371); + num2 = 0; + span371[num2] = new QuestStep(EInteractionType.Interact, 1046338u, new Vector3(11.428955f, 3.9999998f, -135.69855f), 130) { AethernetShortcut = new AethernetShortcut { @@ -332982,7 +404335,8 @@ public static class AssemblyQuestLoader }; obj262.Steps = list371; reference287 = obj262; - ref QuestSequence reference288 = ref span107[2]; + num++; + ref QuestSequence reference288 = ref span368[num]; QuestSequence obj263 = new QuestSequence { Sequence = 2 @@ -332990,29 +404344,35 @@ public static class AssemblyQuestLoader num2 = 1; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - CollectionsMarshal.AsSpan(list372)[0] = new QuestStep(EInteractionType.Interact, 1046339u, new Vector3(28.335938f, 3.9999995f, -136.36993f), 130); + Span span372 = CollectionsMarshal.AsSpan(list372); + index2 = 0; + span372[index2] = new QuestStep(EInteractionType.Interact, 1046339u, new Vector3(28.335938f, 3.9999995f, -136.36993f), 130); obj263.Steps = list372; reference288 = obj263; - ref QuestSequence reference289 = ref span107[3]; + num++; + ref QuestSequence reference289 = ref span368[num]; QuestSequence obj264 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - Span span109 = CollectionsMarshal.AsSpan(list373); - span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(44.120266f, 3.9179347f, -166.70798f), 130) + index2 = 2; + List list373 = new List(index2); + CollectionsMarshal.SetCount(list373, index2); + Span span373 = CollectionsMarshal.AsSpan(list373); + num2 = 0; + span373[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(44.120266f, 3.9179347f, -166.70798f), 130) { Comment = "Zone transition" }; - span109[1] = new QuestStep(EInteractionType.Interact, 1046344u, new Vector3(90.22656f, 4.0718365f, 434.531f), 141) + num2++; + span373[num2] = new QuestStep(EInteractionType.Interact, 1046344u, new Vector3(90.22656f, 4.0718365f, 434.531f), 141) { Fly = true }; obj264.Steps = list373; reference289 = obj264; - ref QuestSequence reference290 = ref span107[4]; + num++; + ref QuestSequence reference290 = ref span368[num]; QuestSequence obj265 = new QuestSequence { Sequence = 4 @@ -333020,28 +404380,35 @@ public static class AssemblyQuestLoader num2 = 1; List list374 = new List(num2); CollectionsMarshal.SetCount(list374, num2); - CollectionsMarshal.AsSpan(list374)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046344u, new Vector3(90.22656f, 4.0718365f, 434.531f), 141); + Span span374 = CollectionsMarshal.AsSpan(list374); + index2 = 0; + span374[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046344u, new Vector3(90.22656f, 4.0718365f, 434.531f), 141); obj265.Steps = list374; reference290 = obj265; - span107[5] = new QuestSequence + num++; + span368[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference291 = ref span107[6]; + num++; + ref QuestSequence reference291 = ref span368[num]; QuestSequence obj266 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list375 = new List(num2); - CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.Interact, 1046345u, new Vector3(-92.30188f, 4f, -99.77875f), 130) + index2 = 1; + List list375 = new List(index2); + CollectionsMarshal.SetCount(list375, index2); + Span span375 = CollectionsMarshal.AsSpan(list375); + num2 = 0; + span375[num2] = new QuestStep(EInteractionType.Interact, 1046345u, new Vector3(-92.30188f, 4f, -99.77875f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj266.Steps = list375; reference291 = obj266; - ref QuestSequence reference292 = ref span107[7]; + num++; + ref QuestSequence reference292 = ref span368[num]; QuestSequence obj267 = new QuestSequence { Sequence = 7 @@ -333049,21 +404416,27 @@ public static class AssemblyQuestLoader num2 = 1; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.Interact, 1004332u, new Vector3(-103.92926f, 4f, -97.88666f), 130); + Span span376 = CollectionsMarshal.AsSpan(list376); + index2 = 0; + span376[index2] = new QuestStep(EInteractionType.Interact, 1004332u, new Vector3(-103.92926f, 4f, -97.88666f), 130); obj267.Steps = list376; reference292 = obj267; - ref QuestSequence reference293 = ref span107[8]; + num++; + ref QuestSequence reference293 = ref span368[num]; QuestSequence obj268 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.Interact, 1001288u, new Vector3(-151.59845f, 12f, 16.220276f), 130); + index2 = 1; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + Span span377 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span377[num2] = new QuestStep(EInteractionType.Interact, 1001288u, new Vector3(-151.59845f, 12f, 16.220276f), 130); obj268.Steps = list377; reference293 = obj268; - ref QuestSequence reference294 = ref span107[9]; + num++; + ref QuestSequence reference294 = ref span368[num]; QuestSequence obj269 = new QuestSequence { Sequence = byte.MaxValue @@ -333071,7 +404444,9 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046346u, new Vector3(-152.17828f, 12f, 11.734131f), 130) + Span span378 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + span378[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046346u, new Vector3(-152.17828f, 12f, 11.734131f), 130) { NextQuestId = new QuestId(4850) }; @@ -333089,14 +404464,17 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot2.Author = list; QuestRoot questRoot3 = questRoot; - num = 9; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 9; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence questSequence = new QuestSequence { Sequence = 0 @@ -333105,7 +404483,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + ref QuestStep reference2 = ref span3[index2]; QuestStep obj = new QuestStep(EInteractionType.AcceptQuest, 1046346u, new Vector3(-152.17828f, 12f, 11.734131f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -333120,7 +404500,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice + Span span4 = CollectionsMarshal.AsSpan(list4); + int index3 = 0; + span4[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB111_04850_Q1_000_100"), @@ -333130,21 +404512,25 @@ public static class AssemblyQuestLoader reference2 = obj; questSequence2.Steps = list3; reference = questSequence; - ref QuestSequence reference3 = ref span[1]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1000193u, new Vector3(-56.77887f, -1.7171853f, 7.888855f), 132) + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num2 = 0; + span5[num2] = new QuestStep(EInteractionType.Interact, 1000193u, new Vector3(-56.77887f, -1.7171853f, 7.888855f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj2.Steps = list5; reference3 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -333152,148 +404538,187 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1046347u, new Vector3(205.79846f, 8.794112f, -72.15991f), 153) + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + span6[index2] = new QuestStep(EInteractionType.Interact, 1046347u, new Vector3(205.79846f, 8.794112f, -72.15991f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj3.Steps = list6; reference4 = obj3; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1046351u, new Vector3(-192.40106f, 15.001892f, 447.2876f), 153) + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.Interact, 1046351u, new Vector3(-192.40106f, 15.001892f, 447.2876f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj4.Steps = list7; reference5 = obj4; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence3 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span2 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference7 = ref span2[0]; + List list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference7 = ref span8[index2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 2013569u, new Vector3(-161.36414f, 1.083313f, 480.12512f), 153) { Fly = true }; - num3 = 6; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span3 = CollectionsMarshal.AsSpan(list8); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj5.CompletionQuestVariablesFlags = list8; + index3 = 6; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + Span span9 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = null; + num3++; + span9[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj5.CompletionQuestVariablesFlags = list9; reference7 = obj5; - ref QuestStep reference8 = ref span2[1]; + index2++; + ref QuestStep reference8 = ref span8[index2]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 2013570u, new Vector3(-111.77234f, 0.503479f, 356.2218f), 153) { Fly = true }; num3 = 6; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span4 = CollectionsMarshal.AsSpan(list9); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj6.CompletionQuestVariablesFlags = list9; - reference8 = obj6; - ref QuestStep reference9 = ref span2[2]; - QuestStep obj7 = new QuestStep(EInteractionType.Interact, 2013571u, new Vector3(-130.84619f, 1.1138916f, 308.58313f), 153) - { - Fly = true - }; - num3 = 6; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - Span span5 = CollectionsMarshal.AsSpan(list10); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj7.CompletionQuestVariablesFlags = list10; + Span span10 = CollectionsMarshal.AsSpan(list10); + index3 = 0; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = null; + index3++; + span10[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj6.CompletionQuestVariablesFlags = list10; + reference8 = obj6; + index2++; + ref QuestStep reference9 = ref span8[index2]; + QuestStep obj7 = new QuestStep(EInteractionType.Interact, 2013571u, new Vector3(-130.84619f, 1.1138916f, 308.58313f), 153) + { + Fly = true + }; + index3 = 6; + List list11 = new List(index3); + CollectionsMarshal.SetCount(list11, index3); + Span span11 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj7.CompletionQuestVariablesFlags = list11; reference9 = obj7; - questSequence3.Steps = list3; + questSequence3.Steps = list8; reference6 = questSequence; - ref QuestSequence reference10 = ref span[5]; + num++; + ref QuestSequence reference10 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1046356u, new Vector3(-48.233826f, 1.0262487f, 452.59778f), 153) + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.Interact, 1046356u, new Vector3(-48.233826f, 1.0262487f, 452.59778f), 153) { Fly = true }; - obj8.Steps = list11; + obj8.Steps = list12; reference10 = obj8; - ref QuestSequence reference11 = ref span[6]; + num++; + ref QuestSequence reference11 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 2013572u, new Vector3(-237.1405f, 0.59503174f, 502.79993f), 153) + List list13 = new List(num2); + CollectionsMarshal.SetCount(list13, num2); + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.Interact, 2013572u, new Vector3(-237.1405f, 0.59503174f, 502.79993f), 153) { Fly = true }; - obj9.Steps = list12; + obj9.Steps = list13; reference11 = obj9; - ref QuestSequence reference12 = ref span[7]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - Span span6 = CollectionsMarshal.AsSpan(list13); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(31.303873f, 19.952045f, 199.71306f), 153) + index2 = 2; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(31.303873f, 19.952045f, 199.71306f), 153) { Fly = true }; - span6[1] = new QuestStep(EInteractionType.Interact, 1046362u, new Vector3(22.934265f, 19.877338f, 195.91052f), 153); - obj10.Steps = list13; + num2++; + span14[num2] = new QuestStep(EInteractionType.Interact, 1046362u, new Vector3(22.934265f, 19.877338f, 195.91052f), 153); + obj10.Steps = list14; reference12 = obj10; - ref QuestSequence reference13 = ref span[8]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046368u, new Vector3(205.06592f, 8.722662f, -74.08258f), 153) + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046368u, new Vector3(205.06592f, 8.722662f, -74.08258f), 153) { Fly = true, NextQuestId = new QuestId(4851) }; - obj11.Steps = list14; + obj11.Steps = list15; reference13 = obj11; questRoot3.QuestSequence = list2; AddQuest(questId, questRoot); @@ -333301,24 +404726,29 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot4 = questRoot; num = 1; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; - questRoot4.Author = list15; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + Span span16 = CollectionsMarshal.AsSpan(list16); + index = 0; + span16[index] = "liza"; + questRoot4.Author = list16; QuestRoot questRoot5 = questRoot; - num = 9; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span7 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference14 = ref span7[0]; + index = 9; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span17 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference14 = ref span17[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046371u, new Vector3(205.06592f, 8.660461f, -71.70221f), 153) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span18 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046371u, new Vector3(205.06592f, 8.660461f, -71.70221f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -333329,17 +404759,20 @@ public static class AssemblyQuestLoader } } }; - obj12.Steps = list16; + obj12.Steps = list17; reference14 = obj12; - ref QuestSequence reference15 = ref span7[1]; + num++; + ref QuestSequence reference15 = ref span17[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1046372u, new Vector3(-90.04352f, -46.544575f, 212.02405f), 154) + List list18 = new List(num2); + CollectionsMarshal.SetCount(list18, num2); + Span span19 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.Interact, 1046372u, new Vector3(-90.04352f, -46.544575f, 212.02405f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -333350,133 +404783,170 @@ public static class AssemblyQuestLoader } } }; - obj13.Steps = list17; + obj13.Steps = list18; reference15 = obj13; - ref QuestSequence reference16 = ref span7[2]; + num++; + ref QuestSequence reference16 = ref span17[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence4 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span8 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference17 = ref span8[0]; + index2 = 3; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span20 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference17 = ref span20[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1046374u, new Vector3(-43.90027f, -40.94998f, 190.875f), 154); num3 = 6; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - Span span9 = CollectionsMarshal.AsSpan(list18); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep.CompletionQuestVariablesFlags = list18; - reference17 = questStep; - ref QuestStep reference18 = ref span8[1]; - QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1046375u, new Vector3(-13.748474f, -38.971447f, 190.11206f), 154); - num3 = 6; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - Span span10 = CollectionsMarshal.AsSpan(list19); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep2.CompletionQuestVariablesFlags = list19; + Span span21 = CollectionsMarshal.AsSpan(list19); + index3 = 0; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep.CompletionQuestVariablesFlags = list19; + reference17 = questStep; + num2++; + ref QuestStep reference18 = ref span20[num2]; + QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1046375u, new Vector3(-13.748474f, -38.971447f, 190.11206f), 154); + index3 = 6; + List list20 = new List(index3); + CollectionsMarshal.SetCount(list20, index3); + Span span22 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep2.CompletionQuestVariablesFlags = list20; reference18 = questStep2; - ref QuestStep reference19 = ref span8[2]; + num2++; + ref QuestStep reference19 = ref span20[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1046376u, new Vector3(-25.345276f, -34.650696f, 172.96094f), 154); num3 = 6; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span11 = CollectionsMarshal.AsSpan(list20); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep3.CompletionQuestVariablesFlags = list20; + List list21 = new List(num3); + CollectionsMarshal.SetCount(list21, num3); + Span span23 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span23[index3] = null; + index3++; + span23[index3] = null; + index3++; + span23[index3] = null; + index3++; + span23[index3] = null; + index3++; + span23[index3] = null; + index3++; + span23[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep3.CompletionQuestVariablesFlags = list21; reference19 = questStep3; - questSequence4.Steps = list3; + questSequence4.Steps = list8; reference16 = questSequence; - ref QuestSequence reference20 = ref span7[3]; + num++; + ref QuestSequence reference20 = ref span17[num]; QuestSequence obj14 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list21)[0]; + List list22 = new List(num2); + CollectionsMarshal.SetCount(list22, num2); + Span span24 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref QuestStep reference21 = ref span24[index2]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1046377u, new Vector3(-54.76471f, -40.876083f, 239.36829f), 154) { Fly = true }; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = new DialogueChoice + index3 = 1; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + Span span25 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span25[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB121_04851_Q1_000_100"), Answer = new ExcelRef("TEXT_KINGBB121_04851_A2_000_100") }; - obj15.DialogueChoices = list22; + obj15.DialogueChoices = list23; reference21 = obj15; - obj14.Steps = list21; + obj14.Steps = list22; reference20 = obj14; - ref QuestSequence reference22 = ref span7[4]; + num++; + ref QuestSequence reference22 = ref span17[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list23)[0]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span26 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + ref QuestStep reference23 = ref span26[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1046379u, new Vector3(-62.60785f, -45.560196f, 269.4895f), 154); num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = new DialogueChoice + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + Span span27 = CollectionsMarshal.AsSpan(list25); + index3 = 0; + span27[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB121_04851_Q2_000_200"), Answer = new ExcelRef("TEXT_KINGBB121_04851_A2_000_200") }; - questStep4.DialogueChoices = list24; + questStep4.DialogueChoices = list25; reference23 = questStep4; - obj16.Steps = list23; + obj16.Steps = list24; reference22 = obj16; - ref QuestSequence reference24 = ref span7[5]; + num++; + ref QuestSequence reference24 = ref span17[num]; QuestSequence obj17 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1046372u, new Vector3(-90.04352f, -46.544575f, 212.02405f), 154); - obj17.Steps = list25; + List list26 = new List(num2); + CollectionsMarshal.SetCount(list26, num2); + Span span28 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.Interact, 1046372u, new Vector3(-90.04352f, -46.544575f, 212.02405f), 154); + obj17.Steps = list26; reference24 = obj17; - ref QuestSequence reference25 = ref span7[6]; + num++; + ref QuestSequence reference25 = ref span17[num]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence5 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span12 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference26 = ref span12[0]; + index2 = 3; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span29 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference26 = ref span29[num2]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 2013574u, new Vector3(-297.47473f, 58.91504f, -274.61664f), 612) { StopDistance = 1f, @@ -333490,80 +404960,106 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list26 = new List(num3); - CollectionsMarshal.SetCount(list26, num3); - Span span13 = CollectionsMarshal.AsSpan(list26); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj18.CompletionQuestVariablesFlags = list26; + index3 = 6; + List list27 = new List(index3); + CollectionsMarshal.SetCount(list27, index3); + Span span30 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj18.CompletionQuestVariablesFlags = list27; reference26 = obj18; - ref QuestStep reference27 = ref span12[1]; + num2++; + ref QuestStep reference27 = ref span29[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 2013575u, new Vector3(-325.42914f, 61.661743f, -266.1021f), 612) { Fly = true }; num3 = 6; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - Span span14 = CollectionsMarshal.AsSpan(list27); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj19.CompletionQuestVariablesFlags = list27; + List list28 = new List(num3); + CollectionsMarshal.SetCount(list28, num3); + Span span31 = CollectionsMarshal.AsSpan(list28); + index3 = 0; + span31[index3] = null; + index3++; + span31[index3] = null; + index3++; + span31[index3] = null; + index3++; + span31[index3] = null; + index3++; + span31[index3] = null; + index3++; + span31[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj19.CompletionQuestVariablesFlags = list28; reference27 = obj19; - ref QuestStep reference28 = ref span12[2]; + num2++; + ref QuestStep reference28 = ref span29[num2]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 2013573u, new Vector3(-292.80542f, 61.875244f, -326.833f), 612) { Mount = false, Sprint = true }; - num3 = 6; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span15 = CollectionsMarshal.AsSpan(list28); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj20.CompletionQuestVariablesFlags = list28; + index3 = 6; + List list29 = new List(index3); + CollectionsMarshal.SetCount(list29, index3); + Span span32 = CollectionsMarshal.AsSpan(list29); + num3 = 0; + span32[num3] = null; + num3++; + span32[num3] = null; + num3++; + span32[num3] = null; + num3++; + span32[num3] = null; + num3++; + span32[num3] = null; + num3++; + span32[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj20.CompletionQuestVariablesFlags = list29; reference28 = obj20; - questSequence5.Steps = list3; + questSequence5.Steps = list8; reference25 = questSequence; - ref QuestSequence reference29 = ref span7[7]; + num++; + ref QuestSequence reference29 = ref span17[num]; QuestSequence obj21 = new QuestSequence { Sequence = 7 }; num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1046381u, new Vector3(-278.21777f, 59.704876f, -333.547f), 612); - obj21.Steps = list29; + List list30 = new List(num2); + CollectionsMarshal.SetCount(list30, num2); + Span span33 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.Interact, 1046381u, new Vector3(-278.21777f, 59.704876f, -333.547f), 612); + obj21.Steps = list30; reference29 = obj21; - ref QuestSequence reference30 = ref span7[8]; + num++; + ref QuestSequence reference30 = ref span17[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046347u, new Vector3(205.79846f, 8.794112f, -72.15991f), 153) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span34 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046347u, new Vector3(205.79846f, 8.794112f, -72.15991f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, NextQuestId = new QuestId(4852) }; - obj22.Steps = list30; + obj22.Steps = list31; reference30 = obj22; questRoot5.QuestSequence = list2; AddQuest(questId2, questRoot); @@ -333571,24 +405067,29 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot6 = questRoot; num = 1; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "liza"; - questRoot6.Author = list31; + List list32 = new List(num); + CollectionsMarshal.SetCount(list32, num); + Span span35 = CollectionsMarshal.AsSpan(list32); + index = 0; + span35[index] = "liza"; + questRoot6.Author = list32; QuestRoot questRoot7 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span16 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference31 = ref span16[0]; + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span36 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference31 = ref span36[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046371u, new Vector3(205.06592f, 8.660461f, -71.70221f), 153) + List list33 = new List(num2); + CollectionsMarshal.SetCount(list33, num2); + Span span37 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span37[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046371u, new Vector3(205.06592f, 8.660461f, -71.70221f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -333599,17 +405100,20 @@ public static class AssemblyQuestLoader } } }; - obj23.Steps = list32; + obj23.Steps = list33; reference31 = obj23; - ref QuestSequence reference32 = ref span16[1]; + num++; + ref QuestSequence reference32 = ref span36[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1046382u, new Vector3(-183.18463f, 100.88573f, -541.4359f), 399) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span38 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.Interact, 1046382u, new Vector3(-183.18463f, 100.88573f, -541.4359f), 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -333618,108 +405122,137 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IdyllshireEpilogueGate } }; - obj24.Steps = list33; + obj24.Steps = list34; reference32 = obj24; - ref QuestSequence reference33 = ref span16[2]; + num++; + ref QuestSequence reference33 = ref span36[num]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence6 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span17 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference34 = ref span17[0]; + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span39 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference34 = ref span39[index2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 2013576u, new Vector3(-173.87659f, 110.27698f, -343.64844f), 399) { Fly = true }; num3 = 6; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span18 = CollectionsMarshal.AsSpan(list34); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj25.CompletionQuestVariablesFlags = list34; - reference34 = obj25; - ref QuestStep reference35 = ref span17[1]; - QuestStep obj26 = new QuestStep(EInteractionType.Interact, 2013578u, new Vector3(-139.97101f, 111.039795f, -270.58832f), 399) - { - Fly = true - }; - num3 = 6; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span19 = CollectionsMarshal.AsSpan(list35); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj26.CompletionQuestVariablesFlags = list35; + Span span40 = CollectionsMarshal.AsSpan(list35); + index3 = 0; + span40[index3] = null; + index3++; + span40[index3] = null; + index3++; + span40[index3] = null; + index3++; + span40[index3] = null; + index3++; + span40[index3] = null; + index3++; + span40[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj25.CompletionQuestVariablesFlags = list35; + reference34 = obj25; + index2++; + ref QuestStep reference35 = ref span39[index2]; + QuestStep obj26 = new QuestStep(EInteractionType.Interact, 2013578u, new Vector3(-139.97101f, 111.039795f, -270.58832f), 399) + { + Fly = true + }; + index3 = 6; + List list36 = new List(index3); + CollectionsMarshal.SetCount(list36, index3); + Span span41 = CollectionsMarshal.AsSpan(list36); + num3 = 0; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj26.CompletionQuestVariablesFlags = list36; reference35 = obj26; - ref QuestStep reference36 = ref span17[2]; + index2++; + ref QuestStep reference36 = ref span39[index2]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 2013577u, new Vector3(-69.29126f, 100.938354f, -336.47675f), 399) { Fly = true }; num3 = 6; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - Span span20 = CollectionsMarshal.AsSpan(list36); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj27.CompletionQuestVariablesFlags = list36; + List list37 = new List(num3); + CollectionsMarshal.SetCount(list37, num3); + Span span42 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj27.CompletionQuestVariablesFlags = list37; reference36 = obj27; - questSequence6.Steps = list3; + questSequence6.Steps = list8; reference33 = questSequence; - ref QuestSequence reference37 = ref span16[3]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference37 = ref span36[num]; + QuestSequence obj28 = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence7 = questSequence; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - ref QuestStep reference38 = ref CollectionsMarshal.AsSpan(list37)[0]; - QuestStep obj28 = new QuestStep(EInteractionType.Interact, 1046383u, new Vector3(1.8463135f, 103.4929f, -280.14038f), 399) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span43 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + ref QuestStep reference38 = ref span43[num2]; + QuestStep obj29 = new QuestStep(EInteractionType.Interact, 1046383u, new Vector3(1.8463135f, 103.4929f, -280.14038f), 399) { StopDistance = 1f, Fly = true }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice + index3 = 1; + List list39 = new List(index3); + CollectionsMarshal.SetCount(list39, index3); + Span span44 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + span44[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB131_04852_Q2_000_200"), Answer = new ExcelRef("TEXT_KINGBB131_04852_A1_000_200") }; - obj28.DialogueChoices = list38; - reference38 = obj28; - questSequence7.Steps = list37; - reference37 = questSequence; - ref QuestSequence reference39 = ref span16[4]; - QuestSequence obj29 = new QuestSequence + obj29.DialogueChoices = list39; + reference38 = obj29; + obj28.Steps = list38; + reference37 = obj28; + num++; + ref QuestSequence reference39 = ref span36[num]; + QuestSequence obj30 = new QuestSequence { Sequence = 4 }; num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1046384u, new Vector3(289.08203f, 163.68987f, 288.19702f), 397) + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + Span span45 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.Interact, 1046384u, new Vector3(289.08203f, 163.68987f, 288.19702f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -333731,79 +405264,95 @@ public static class AssemblyQuestLoader } } }; - obj29.Steps = list39; - reference39 = obj29; - ref QuestSequence reference40 = ref span16[5]; - QuestSequence obj30 = new QuestSequence + obj30.Steps = list40; + reference39 = obj30; + num++; + ref QuestSequence reference40 = ref span36[num]; + QuestSequence obj31 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list40)[0]; - QuestStep obj31 = new QuestStep(EInteractionType.Combat, null, new Vector3(258.81232f, 179.55281f, -45.167038f), 397) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span46 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + ref QuestStep reference41 = ref span46[num2]; + QuestStep obj32 = new QuestStep(EInteractionType.Combat, null, new Vector3(258.81232f, 179.55281f, -45.167038f), 397) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 1; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = 17642u; - obj31.KillEnemyDataIds = list41; - reference41 = obj31; - obj30.Steps = list40; - reference40 = obj30; - ref QuestSequence reference42 = ref span16[6]; - QuestSequence obj32 = new QuestSequence + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + Span span47 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span47[index3] = 17642u; + obj32.KillEnemyDataIds = list42; + reference41 = obj32; + obj31.Steps = list41; + reference40 = obj31; + num++; + ref QuestSequence reference42 = ref span36[num]; + QuestSequence obj33 = new QuestSequence { Sequence = 6 }; num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1046385u, new Vector3(246.20422f, 180.63304f, -41.61145f), 397); - obj32.Steps = list42; - reference42 = obj32; - ref QuestSequence reference43 = ref span16[7]; - QuestSequence obj33 = new QuestSequence + List list43 = new List(num2); + CollectionsMarshal.SetCount(list43, num2); + Span span48 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.Interact, 1046385u, new Vector3(246.20422f, 180.63304f, -41.61145f), 397); + obj33.Steps = list43; + reference42 = obj33; + num++; + ref QuestSequence reference43 = ref span36[num]; + QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046371u, new Vector3(205.06592f, 8.660461f, -71.70221f), 153) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span49 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046371u, new Vector3(205.06592f, 8.660461f, -71.70221f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, NextQuestId = new QuestId(4853) }; - obj33.Steps = list43; - reference43 = obj33; + obj34.Steps = list44; + reference43 = obj34; questRoot7.QuestSequence = list2; AddQuest(questId3, questRoot); QuestId questId4 = new QuestId(4853); questRoot = new QuestRoot(); QuestRoot questRoot8 = questRoot; num = 1; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; - questRoot8.Author = list44; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span50 = CollectionsMarshal.AsSpan(list45); + index = 0; + span50[index] = "liza"; + questRoot8.Author = list45; QuestRoot questRoot9 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span21 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference44 = ref span21[0]; - QuestSequence obj34 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span51 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference44 = ref span51[num]; + QuestSequence obj35 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046371u, new Vector3(205.06592f, 8.660461f, -71.70221f), 153) + List list46 = new List(num2); + CollectionsMarshal.SetCount(list46, num2); + Span span52 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046371u, new Vector3(205.06592f, 8.660461f, -71.70221f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -333814,92 +405363,110 @@ public static class AssemblyQuestLoader } } }; - obj34.Steps = list45; - reference44 = obj34; - ref QuestSequence reference45 = ref span21[1]; - QuestSequence obj35 = new QuestSequence + obj35.Steps = list46; + reference44 = obj35; + num++; + ref QuestSequence reference45 = ref span51[num]; + QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 2014381u, new Vector3(-64.59149f, -0.5036011f, 7.7667847f), 132) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span53 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span53[num2] = new QuestStep(EInteractionType.Interact, 2014381u, new Vector3(-64.59149f, -0.5036011f, 7.7667847f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; - obj35.Steps = list46; - reference45 = obj35; - ref QuestSequence reference46 = ref span21[2]; - QuestSequence obj36 = new QuestSequence + obj36.Steps = list47; + reference45 = obj36; + num++; + ref QuestSequence reference46 = ref span51[num]; + QuestSequence obj37 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046388u, new Vector3(-275.01337f, 27.017544f, 636.8047f), 146) + List list48 = new List(num2); + CollectionsMarshal.SetCount(list48, num2); + Span span54 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046388u, new Vector3(-275.01337f, 27.017544f, 636.8047f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; - obj36.Steps = list47; - reference46 = obj36; - span21[3] = new QuestSequence + obj37.Steps = list48; + reference46 = obj37; + num++; + span51[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference47 = ref span21[4]; - QuestSequence obj37 = new QuestSequence + num++; + ref QuestSequence reference47 = ref span51[num]; + QuestSequence obj38 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1046391u, new Vector3(-414.87756f, -0.4116819f, 747.7378f), 146); - obj37.Steps = list48; - reference47 = obj37; - ref QuestSequence reference48 = ref span21[5]; - QuestSequence obj38 = new QuestSequence + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span55 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.Interact, 1046391u, new Vector3(-414.87756f, -0.4116819f, 747.7378f), 146); + obj38.Steps = list49; + reference47 = obj38; + num++; + ref QuestSequence reference48 = ref span51[num]; + QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046393u, new Vector3(204.48608f, 8.565186f, -71.488525f), 153) + List list50 = new List(num2); + CollectionsMarshal.SetCount(list50, num2); + Span span56 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046393u, new Vector3(204.48608f, 8.565186f, -71.488525f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - obj38.Steps = list49; - reference48 = obj38; + obj39.Steps = list50; + reference48 = obj39; questRoot9.QuestSequence = list2; AddQuest(questId4, questRoot); QuestId questId5 = new QuestId(4854); questRoot = new QuestRoot(); QuestRoot questRoot10 = questRoot; num = 1; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - CollectionsMarshal.AsSpan(list50)[0] = "liza"; - questRoot10.Author = list50; + List list51 = new List(num); + CollectionsMarshal.SetCount(list51, num); + Span span57 = CollectionsMarshal.AsSpan(list51); + index = 0; + span57[index] = "liza"; + questRoot10.Author = list51; QuestRoot questRoot11 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span22 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference49 = ref span22[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span58 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference49 = ref span58[num]; questSequence = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence8 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list3)[0]; - QuestStep obj39 = new QuestStep(EInteractionType.AcceptQuest, 1049794u, new Vector3(-158.98376f, 4.51273f, -45.63977f), 133) + QuestSequence questSequence7 = questSequence; + index2 = 1; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span59 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference50 = ref span59[num2]; + QuestStep obj40 = new QuestStep(EInteractionType.AcceptQuest, 1049794u, new Vector3(-158.98376f, 4.51273f, -45.63977f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -333909,39 +405476,46 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions = new SkipConditions(); - SkipAetheryteCondition obj40 = new SkipAetheryteCondition + SkipAetheryteCondition obj41 = new SkipAetheryteCondition { InSameTerritory = true }; + index3 = 1; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + Span span60 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span60[num3] = 133; + obj41.InTerritory = list52; + skipConditions.AetheryteShortcutIf = obj41; + obj40.SkipConditions = skipConditions; num3 = 1; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = 133; - obj40.InTerritory = list51; - skipConditions.AetheryteShortcutIf = obj40; - obj39.SkipConditions = skipConditions; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + Span span61 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span61[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB201_04854_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGBB201_04854_A1_000_002") }; - obj39.DialogueChoices = list52; - reference50 = obj39; - questSequence8.Steps = list3; + obj40.DialogueChoices = list53; + reference50 = obj40; + questSequence7.Steps = list8; reference49 = questSequence; - ref QuestSequence reference51 = ref span22[1]; - QuestSequence obj41 = new QuestSequence + num++; + ref QuestSequence reference51 = ref span58[num]; + QuestSequence obj42 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 2013738u, new Vector3(-6.9123535f, -1.4191895f, 5.508484f), 132) + List list54 = new List(num2); + CollectionsMarshal.SetCount(list54, num2); + Span span62 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.Interact, 2013738u, new Vector3(-6.9123535f, -1.4191895f, 5.508484f), 132) { AethernetShortcut = new AethernetShortcut { @@ -333949,59 +405523,69 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Gridania } }; - obj41.Steps = list53; - reference51 = obj41; - ref QuestSequence reference52 = ref span22[2]; - QuestSequence obj42 = new QuestSequence + obj42.Steps = list54; + reference51 = obj42; + num++; + ref QuestSequence reference52 = ref span58[num]; + QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1049795u, new Vector3(54.306763f, -8.321841f, 94.13281f), 132); - obj42.Steps = list54; - reference52 = obj42; - ref QuestSequence reference53 = ref span22[3]; - QuestSequence obj43 = new QuestSequence + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span63 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.Interact, 1049795u, new Vector3(54.306763f, -8.321841f, 94.13281f), 132); + obj43.Steps = list55; + reference52 = obj43; + num++; + ref QuestSequence reference53 = ref span58[num]; + QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049795u, new Vector3(54.306763f, -8.321841f, 94.13281f), 132) + List list56 = new List(num2); + CollectionsMarshal.SetCount(list56, num2); + Span span64 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049795u, new Vector3(54.306763f, -8.321841f, 94.13281f), 132) { NextQuestId = new QuestId(4855) }; - obj43.Steps = list55; - reference53 = obj43; + obj44.Steps = list56; + reference53 = obj44; questRoot11.QuestSequence = list2; AddQuest(questId5, questRoot); QuestId questId6 = new QuestId(4855); questRoot = new QuestRoot(); QuestRoot questRoot12 = questRoot; num = 1; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "liza"; - questRoot12.Author = list56; + List list57 = new List(num); + CollectionsMarshal.SetCount(list57, num); + Span span65 = CollectionsMarshal.AsSpan(list57); + index = 0; + span65[index] = "liza"; + questRoot12.Author = list57; QuestRoot questRoot13 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span23 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference54 = ref span23[0]; + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span66 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference54 = ref span66[num]; questSequence = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence9 = questSequence; - num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span24 = CollectionsMarshal.AsSpan(list3); - span24[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(54.306763f, -8.321841f, 94.13281f), 132) + QuestSequence questSequence8 = questSequence; + index2 = 4; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span67 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(54.306763f, -8.321841f, 94.13281f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, ItemId = 43538u, @@ -334020,7 +405604,8 @@ public static class AssemblyQuestLoader } } }; - span24[1] = new QuestStep(EInteractionType.EquipItem, null, null, 132) + num2++; + span67[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 132) { ItemId = 41809u, SkipConditions = new SkipConditions @@ -334034,19 +405619,24 @@ public static class AssemblyQuestLoader } } }; - span24[2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 132); - span24[3] = new QuestStep(EInteractionType.AcceptQuest, 1049795u, new Vector3(54.306763f, -8.321841f, 94.13281f), 132); - questSequence9.Steps = list3; + num2++; + span67[num2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 132); + num2++; + span67[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049795u, new Vector3(54.306763f, -8.321841f, 94.13281f), 132); + questSequence8.Steps = list8; reference54 = questSequence; - ref QuestSequence reference55 = ref span23[1]; - QuestSequence obj44 = new QuestSequence + num++; + ref QuestSequence reference55 = ref span66[num]; + QuestSequence obj45 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1049794u, new Vector3(-158.98376f, 4.51273f, -45.63977f), 133) + List list58 = new List(num2); + CollectionsMarshal.SetCount(list58, num2); + Span span68 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.Interact, 1049794u, new Vector3(-158.98376f, 4.51273f, -45.63977f), 133) { AethernetShortcut = new AethernetShortcut { @@ -334054,19 +405644,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - obj44.Steps = list57; - reference55 = obj44; - ref QuestSequence reference56 = ref span23[2]; + obj45.Steps = list58; + reference55 = obj45; + num++; + ref QuestSequence reference56 = ref span66[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence10 = questSequence; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list58)[0]; - QuestStep obj45 = new QuestStep(EInteractionType.SinglePlayerDuty, 1049796u, new Vector3(27.695068f, 16.16987f, -339.13184f), 133) + QuestSequence questSequence9 = questSequence; + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span69 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + ref QuestStep reference57 = ref span69[num2]; + QuestStep obj46 = new QuestStep(EInteractionType.SinglePlayerDuty, 1049796u, new Vector3(27.695068f, 16.16987f, -339.13184f), 133) { AethernetShortcut = new AethernetShortcut { @@ -334074,60 +405667,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - num3 = 1; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - CollectionsMarshal.AsSpan(list59)[0] = new DialogueChoice + index3 = 1; + List list60 = new List(index3); + CollectionsMarshal.SetCount(list60, index3); + Span span70 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span70[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB202_04855_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGBB202_04855_A1_000_001") }; - obj45.DialogueChoices = list59; - reference57 = obj45; - questSequence10.Steps = list58; + obj46.DialogueChoices = list60; + reference57 = obj46; + questSequence9.Steps = list59; reference56 = questSequence; - ref QuestSequence reference58 = ref span23[3]; - QuestSequence obj46 = new QuestSequence + num++; + ref QuestSequence reference58 = ref span66[num]; + QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049796u, new Vector3(27.695068f, 16.16987f, -339.13184f), 133) + List list61 = new List(num2); + CollectionsMarshal.SetCount(list61, num2); + Span span71 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span71[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049796u, new Vector3(27.695068f, 16.16987f, -339.13184f), 133) { StopDistance = 5f, NextQuestId = new QuestId(4856) }; - obj46.Steps = list60; - reference58 = obj46; + obj47.Steps = list61; + reference58 = obj47; questRoot13.QuestSequence = list2; AddQuest(questId6, questRoot); QuestId questId7 = new QuestId(4856); questRoot = new QuestRoot(); QuestRoot questRoot14 = questRoot; num = 1; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; - questRoot14.Author = list61; + List list62 = new List(num); + CollectionsMarshal.SetCount(list62, num); + Span span72 = CollectionsMarshal.AsSpan(list62); + index = 0; + span72[index] = "liza"; + questRoot14.Author = list62; QuestRoot questRoot15 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span25 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference59 = ref span25[0]; + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span73 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference59 = ref span73[num]; questSequence = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence11 = questSequence; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list62)[0]; - QuestStep obj47 = new QuestStep(EInteractionType.AcceptQuest, 1049796u, new Vector3(27.695068f, 16.16987f, -339.13184f), 133) + QuestSequence questSequence10 = questSequence; + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span74 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference60 = ref span74[num2]; + QuestStep obj48 = new QuestStep(EInteractionType.AcceptQuest, 1049796u, new Vector3(27.695068f, 16.16987f, -339.13184f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -334137,123 +405740,147 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions2 = new SkipConditions(); - SkipAetheryteCondition obj48 = new SkipAetheryteCondition + SkipAetheryteCondition obj49 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 1; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - CollectionsMarshal.AsSpan(list63)[0] = 133; - obj48.InTerritory = list63; - skipConditions2.AetheryteShortcutIf = obj48; - obj47.SkipConditions = skipConditions2; - reference60 = obj47; - questSequence11.Steps = list62; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + Span span75 = CollectionsMarshal.AsSpan(list64); + index3 = 0; + span75[index3] = 133; + obj49.InTerritory = list64; + skipConditions2.AetheryteShortcutIf = obj49; + obj48.SkipConditions = skipConditions2; + reference60 = obj48; + questSequence10.Steps = list63; reference59 = questSequence; - ref QuestSequence reference61 = ref span25[1]; - QuestSequence obj49 = new QuestSequence + num++; + ref QuestSequence reference61 = ref span73[num]; + QuestSequence obj50 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1049797u, new Vector3(214.64856f, 301.99997f, -254.26111f), 155) + List list65 = new List(num2); + CollectionsMarshal.SetCount(list65, num2); + Span span76 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.Interact, 1049797u, new Vector3(214.64856f, 301.99997f, -254.26111f), 155) { Mount = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - obj49.Steps = list64; - reference61 = obj49; - ref QuestSequence reference62 = ref span25[2]; - QuestSequence obj50 = new QuestSequence + obj50.Steps = list65; + reference61 = obj50; + num++; + ref QuestSequence reference62 = ref span73[num]; + QuestSequence obj51 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1049798u, new Vector3(229.84656f, 302.04782f, -289.2348f), 155); - obj50.Steps = list65; - reference62 = obj50; - ref QuestSequence reference63 = ref span25[3]; - QuestSequence obj51 = new QuestSequence + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span77 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.Interact, 1049798u, new Vector3(229.84656f, 302.04782f, -289.2348f), 155); + obj51.Steps = list66; + reference62 = obj51; + num++; + ref QuestSequence reference63 = ref span73[num]; + QuestSequence obj52 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 2013740u, new Vector3(301.13672f, 358.99734f, -575.8297f), 155) + List list67 = new List(num2); + CollectionsMarshal.SetCount(list67, num2); + Span span78 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.Interact, 2013740u, new Vector3(301.13672f, 358.99734f, -575.8297f), 155) { Fly = true }; - obj51.Steps = list66; - reference63 = obj51; - ref QuestSequence reference64 = ref span25[4]; - QuestSequence obj52 = new QuestSequence + obj52.Steps = list67; + reference63 = obj52; + num++; + ref QuestSequence reference64 = ref span73[num]; + QuestSequence obj53 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list67)[0]; - QuestStep obj53 = new QuestStep(EInteractionType.Combat, null, new Vector3(403.64606f, 346.8219f, -669.97644f), 155) + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span79 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + ref QuestStep reference65 = ref span79[num2]; + QuestStep obj54 = new QuestStep(EInteractionType.Combat, null, new Vector3(403.64606f, 346.8219f, -669.97644f), 155) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = 17628u; - obj53.KillEnemyDataIds = list68; - reference65 = obj53; - obj52.Steps = list67; - reference64 = obj52; - ref QuestSequence reference66 = ref span25[5]; - QuestSequence obj54 = new QuestSequence + index3 = 1; + List list69 = new List(index3); + CollectionsMarshal.SetCount(list69, index3); + Span span80 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span80[num3] = 17628u; + obj54.KillEnemyDataIds = list69; + reference65 = obj54; + obj53.Steps = list68; + reference64 = obj53; + num++; + ref QuestSequence reference66 = ref span73[num]; + QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049800u, new Vector3(215.77783f, 302f, -253.86438f), 155) + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + Span span81 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049800u, new Vector3(215.77783f, 302f, -253.86438f), 155) { Mount = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, NextQuestId = new QuestId(4857) }; - obj54.Steps = list69; - reference66 = obj54; + obj55.Steps = list70; + reference66 = obj55; questRoot15.QuestSequence = list2; AddQuest(questId7, questRoot); QuestId questId8 = new QuestId(4857); questRoot = new QuestRoot(); QuestRoot questRoot16 = questRoot; num = 1; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - CollectionsMarshal.AsSpan(list70)[0] = "liza"; - questRoot16.Author = list70; + List list71 = new List(num); + CollectionsMarshal.SetCount(list71, num); + Span span82 = CollectionsMarshal.AsSpan(list71); + index = 0; + span82[index] = "liza"; + questRoot16.Author = list71; QuestRoot questRoot17 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span26 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference67 = ref span26[0]; - QuestSequence obj55 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span83 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference67 = ref span83[num]; + QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049797u, new Vector3(214.64856f, 301.99997f, -254.26111f), 155) + index2 = 1; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span84 = CollectionsMarshal.AsSpan(list72); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049797u, new Vector3(214.64856f, 301.99997f, -254.26111f), 155) { Mount = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -334265,17 +405892,20 @@ public static class AssemblyQuestLoader } } }; - obj55.Steps = list71; - reference67 = obj55; - ref QuestSequence reference68 = ref span26[1]; - QuestSequence obj56 = new QuestSequence + obj56.Steps = list72; + reference67 = obj56; + num++; + ref QuestSequence reference68 = ref span83[num]; + QuestSequence obj57 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.UseItem, 2013741u, new Vector3(107.28613f, 11.9782715f, -76.676636f), 628) + List list73 = new List(num2); + CollectionsMarshal.SetCount(list73, num2); + Span span85 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.UseItem, 2013741u, new Vector3(107.28613f, 11.9782715f, -76.676636f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -334285,19 +405915,22 @@ public static class AssemblyQuestLoader }, ItemId = 2003500u }; - obj56.Steps = list72; - reference68 = obj56; - ref QuestSequence reference69 = ref span26[2]; + obj57.Steps = list73; + reference68 = obj57; + num++; + ref QuestSequence reference69 = ref span83[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence12 = questSequence; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list73)[0]; - QuestStep obj57 = new QuestStep(EInteractionType.Interact, 1049801u, new Vector3(445.9143f, 29.750532f, 770.8705f), 613) + QuestSequence questSequence11 = questSequence; + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span86 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + ref QuestStep reference70 = ref span86[num2]; + QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1049801u, new Vector3(445.9143f, 29.750532f, 770.8705f), 613) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -334307,123 +405940,153 @@ public static class AssemblyQuestLoader } }; num3 = 1; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - CollectionsMarshal.AsSpan(list74)[0] = new DialogueChoice + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span87 = CollectionsMarshal.AsSpan(list75); + index3 = 0; + span87[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB221_04857_Q2_000_000"), Answer = new ExcelRef("TEXT_KINGBB221_04857_A2_000_001") }; - obj57.DialogueChoices = list74; - reference70 = obj57; - questSequence12.Steps = list73; + obj58.DialogueChoices = list75; + reference70 = obj58; + questSequence11.Steps = list74; reference69 = questSequence; - ref QuestSequence reference71 = ref span26[3]; + num++; + ref QuestSequence reference71 = ref span83[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence13 = questSequence; + QuestSequence questSequence12 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span27 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference72 = ref span27[0]; - QuestStep obj58 = new QuestStep(EInteractionType.Combat, 2013742u, new Vector3(411.79517f, 16.250854f, 832.4863f), 613) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span88 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference72 = ref span88[index2]; + QuestStep obj59 = new QuestStep(EInteractionType.Combat, 2013742u, new Vector3(411.79517f, 16.250854f, 832.4863f), 613) { Fly = true, ItemId = 2003559u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = new ComplexCombatData + index3 = 1; + List list76 = new List(index3); + CollectionsMarshal.SetCount(list76, index3); + Span span89 = CollectionsMarshal.AsSpan(list76); + num3 = 0; + span89[num3] = new ComplexCombatData { DataId = 17629u }; - obj58.ComplexCombatData = list75; + obj59.ComplexCombatData = list76; num3 = 6; - List list76 = new List(num3); - CollectionsMarshal.SetCount(list76, num3); - Span span28 = CollectionsMarshal.AsSpan(list76); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj58.CompletionQuestVariablesFlags = list76; - reference72 = obj58; - ref QuestStep reference73 = ref span27[1]; - QuestStep obj59 = new QuestStep(EInteractionType.Combat, 2013743u, new Vector3(338.4298f, 0.6866455f, 793.4232f), 613) - { - Fly = true, - ItemId = 2003559u, - EnemySpawnType = EEnemySpawnType.AfterItemUse - }; - num3 = 1; - List list77 = new List(num3); + List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - CollectionsMarshal.AsSpan(list77)[0] = new ComplexCombatData - { - DataId = 17629u - }; - obj59.ComplexCombatData = list77; - num3 = 6; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span29 = CollectionsMarshal.AsSpan(list78); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj59.CompletionQuestVariablesFlags = list78; - reference73 = obj59; - ref QuestStep reference74 = ref span27[2]; - QuestStep obj60 = new QuestStep(EInteractionType.Combat, 2013744u, new Vector3(415.61f, 0.7171631f, 730.4341f), 613) + Span span90 = CollectionsMarshal.AsSpan(list77); + index3 = 0; + span90[index3] = null; + index3++; + span90[index3] = null; + index3++; + span90[index3] = null; + index3++; + span90[index3] = null; + index3++; + span90[index3] = null; + index3++; + span90[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj59.CompletionQuestVariablesFlags = list77; + reference72 = obj59; + index2++; + ref QuestStep reference73 = ref span88[index2]; + QuestStep obj60 = new QuestStep(EInteractionType.Combat, 2013743u, new Vector3(338.4298f, 0.6866455f, 793.4232f), 613) { Fly = true, ItemId = 2003559u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new ComplexCombatData + index3 = 1; + List list78 = new List(index3); + CollectionsMarshal.SetCount(list78, index3); + Span span91 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span91[num3] = new ComplexCombatData { DataId = 17629u }; - obj60.ComplexCombatData = list79; - reference74 = obj60; - questSequence13.Steps = list3; + obj60.ComplexCombatData = list78; + num3 = 6; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + Span span92 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span92[index3] = null; + index3++; + span92[index3] = null; + index3++; + span92[index3] = null; + index3++; + span92[index3] = null; + index3++; + span92[index3] = null; + index3++; + span92[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj60.CompletionQuestVariablesFlags = list79; + reference73 = obj60; + index2++; + ref QuestStep reference74 = ref span88[index2]; + QuestStep obj61 = new QuestStep(EInteractionType.Combat, 2013744u, new Vector3(415.61f, 0.7171631f, 730.4341f), 613) + { + Fly = true, + ItemId = 2003559u, + EnemySpawnType = EEnemySpawnType.AfterItemUse + }; + index3 = 1; + List list80 = new List(index3); + CollectionsMarshal.SetCount(list80, index3); + Span span93 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + span93[num3] = new ComplexCombatData + { + DataId = 17629u + }; + obj61.ComplexCombatData = list80; + reference74 = obj61; + questSequence12.Steps = list8; reference71 = questSequence; - ref QuestSequence reference75 = ref span26[4]; - QuestSequence obj61 = new QuestSequence + num++; + ref QuestSequence reference75 = ref span83[num]; + QuestSequence obj62 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1049802u, new Vector3(444.6936f, 29.73244f, 770.9315f), 613) + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span94 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.Interact, 1049802u, new Vector3(444.6936f, 29.73244f, 770.9315f), 613) { Fly = true }; - obj61.Steps = list80; - reference75 = obj61; - ref QuestSequence reference76 = ref span26[5]; - QuestSequence obj62 = new QuestSequence + obj62.Steps = list81; + reference75 = obj62; + num++; + ref QuestSequence reference76 = ref span83[num]; + QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049803u, new Vector3(105.85181f, 12.000005f, -75.70001f), 628) + List list82 = new List(num2); + CollectionsMarshal.SetCount(list82, num2); + Span span95 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049803u, new Vector3(105.85181f, 12.000005f, -75.70001f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -334433,32 +406096,37 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(4858) }; - obj62.Steps = list81; - reference76 = obj62; + obj63.Steps = list82; + reference76 = obj63; questRoot17.QuestSequence = list2; AddQuest(questId8, questRoot); QuestId questId9 = new QuestId(4858); questRoot = new QuestRoot(); QuestRoot questRoot18 = questRoot; num = 1; - List list82 = new List(num); - CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "liza"; - questRoot18.Author = list82; + List list83 = new List(num); + CollectionsMarshal.SetCount(list83, num); + Span span96 = CollectionsMarshal.AsSpan(list83); + index = 0; + span96[index] = "liza"; + questRoot18.Author = list83; QuestRoot questRoot19 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span30 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference77 = ref span30[0]; - QuestSequence obj63 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span97 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference77 = ref span97[num]; + QuestSequence obj64 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049804u, new Vector3(105.69922f, 12.000006f, -77.37854f), 628) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span98 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049804u, new Vector3(105.69922f, 12.000006f, -77.37854f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -334474,32 +406142,38 @@ public static class AssemblyQuestLoader } } }; - obj63.Steps = list83; - reference77 = obj63; - ref QuestSequence reference78 = ref span30[1]; - QuestSequence obj64 = new QuestSequence + obj64.Steps = list84; + reference77 = obj64; + num++; + ref QuestSequence reference78 = ref span97[num]; + QuestSequence obj65 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.UseItem, 2013747u, new Vector3(-57.63336f, 3.9520264f, -142.22937f), 130) + List list85 = new List(num2); + CollectionsMarshal.SetCount(list85, num2); + Span span99 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.UseItem, 2013747u, new Vector3(-57.63336f, 3.9520264f, -142.22937f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, ItemId = 2003503u }; - obj64.Steps = list84; - reference78 = obj64; - ref QuestSequence reference79 = ref span30[2]; - QuestSequence obj65 = new QuestSequence + obj65.Steps = list85; + reference78 = obj65; + num++; + ref QuestSequence reference79 = ref span97[num]; + QuestSequence obj66 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1049805u, new Vector3(-152.14777f, 14.005f, 45.303955f), 130) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span100 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.Interact, 1049805u, new Vector3(-152.14777f, 14.005f, 45.303955f), 130) { AethernetShortcut = new AethernetShortcut { @@ -334507,19 +406181,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - obj65.Steps = list85; - reference79 = obj65; - ref QuestSequence reference80 = ref span30[3]; + obj66.Steps = list86; + reference79 = obj66; + num++; + ref QuestSequence reference80 = ref span97[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence14 = questSequence; + QuestSequence questSequence13 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list3)[0]; - QuestStep obj66 = new QuestStep(EInteractionType.Combat, null, new Vector3(-286.10168f, -32f, 92.85731f), 141) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span101 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference81 = ref span101[index2]; + QuestStep questStep5 = new QuestStep(EInteractionType.Combat, null, new Vector3(-286.10168f, -32f, 92.85731f), 141) { StopDistance = 0.5f, Fly = true, @@ -334530,32 +406207,45 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; + QuestStep questStep6 = questStep5; num3 = 9; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span31 = CollectionsMarshal.AsSpan(list86); - span31[0] = 17632u; - span31[1] = 17633u; - span31[2] = 17634u; - span31[3] = 17635u; - span31[4] = 17636u; - span31[5] = 17637u; - span31[6] = 17638u; - span31[7] = 17639u; - span31[8] = 17640u; - obj66.KillEnemyDataIds = list86; - reference81 = obj66; - questSequence14.Steps = list3; + List list87 = new List(num3); + CollectionsMarshal.SetCount(list87, num3); + Span span102 = CollectionsMarshal.AsSpan(list87); + index3 = 0; + span102[index3] = 17632u; + index3++; + span102[index3] = 17633u; + index3++; + span102[index3] = 17634u; + index3++; + span102[index3] = 17635u; + index3++; + span102[index3] = 17636u; + index3++; + span102[index3] = 17637u; + index3++; + span102[index3] = 17638u; + index3++; + span102[index3] = 17639u; + index3++; + span102[index3] = 17640u; + questStep6.KillEnemyDataIds = list87; + reference81 = questStep5; + questSequence13.Steps = list8; reference80 = questSequence; - ref QuestSequence reference82 = ref span30[4]; + num++; + ref QuestSequence reference82 = ref span97[num]; QuestSequence obj67 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1049806u, new Vector3(-152.60547f, 14.004998f, 46.73828f), 130) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span103 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span103[num2] = new QuestStep(EInteractionType.Interact, 1049806u, new Vector3(-152.60547f, 14.004998f, 46.73828f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -334564,60 +406254,69 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - obj67.Steps = list87; + obj67.Steps = list88; reference82 = obj67; - ref QuestSequence reference83 = ref span30[5]; - questSequence = new QuestSequence + num++; + ref QuestSequence reference83 = ref span97[num]; + QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence15 = questSequence; num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list88)[0]; - QuestStep obj68 = new QuestStep(EInteractionType.CompleteQuest, 1049805u, new Vector3(-152.14777f, 14.005f, 45.303955f), 130) + List list89 = new List(num2); + CollectionsMarshal.SetCount(list89, num2); + Span span104 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + ref QuestStep reference84 = ref span104[index2]; + QuestStep obj69 = new QuestStep(EInteractionType.CompleteQuest, 1049805u, new Vector3(-152.14777f, 14.005f, 45.303955f), 130) { StopDistance = 5f }; - num3 = 1; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - CollectionsMarshal.AsSpan(list89)[0] = new DialogueChoice + index3 = 1; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + Span span105 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span105[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB231_04858_Q3_000_000"), Answer = new ExcelRef("TEXT_KINGBB231_04858_A3_000_002") }; - obj68.DialogueChoices = list89; - obj68.NextQuestId = new QuestId(4859); - reference84 = obj68; - questSequence15.Steps = list88; - reference83 = questSequence; + obj69.DialogueChoices = list90; + obj69.NextQuestId = new QuestId(4859); + reference84 = obj69; + obj68.Steps = list89; + reference83 = obj68; questRoot19.QuestSequence = list2; AddQuest(questId9, questRoot); QuestId questId10 = new QuestId(4859); questRoot = new QuestRoot(); QuestRoot questRoot20 = questRoot; num = 1; - List list90 = new List(num); - CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "liza"; - questRoot20.Author = list90; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + Span span106 = CollectionsMarshal.AsSpan(list91); + index = 0; + span106[index] = "liza"; + questRoot20.Author = list91; QuestRoot questRoot21 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span32 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference85 = ref span32[0]; - QuestSequence obj69 = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span107 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference85 = ref span107[num]; + QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049805u, new Vector3(-152.14777f, 14.005f, 45.303955f), 130) + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span108 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049805u, new Vector3(-152.14777f, 14.005f, 45.303955f), 130) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -334634,85 +406333,101 @@ public static class AssemblyQuestLoader } } }; - obj69.Steps = list91; - reference85 = obj69; - ref QuestSequence reference86 = ref span32[1]; - QuestSequence obj70 = new QuestSequence + obj70.Steps = list92; + reference85 = obj70; + num++; + ref QuestSequence reference86 = ref span107[num]; + QuestSequence obj71 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - Span span33 = CollectionsMarshal.AsSpan(list92); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.193803f, 2.4684885f, -133.5494f), 148) + List list93 = new List(num2); + CollectionsMarshal.SetCount(list93, num2); + Span span109 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.193803f, 2.4684885f, -133.5494f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - span33[1] = new QuestStep(EInteractionType.Interact, 1049807u, new Vector3(14.419739f, 2.2207584f, -132.25f), 148); - obj70.Steps = list92; - reference86 = obj70; - ref QuestSequence reference87 = ref span32[2]; - QuestSequence obj71 = new QuestSequence + index2++; + span109[index2] = new QuestStep(EInteractionType.Interact, 1049807u, new Vector3(14.419739f, 2.2207584f, -132.25f), 148); + obj71.Steps = list93; + reference86 = obj71; + num++; + ref QuestSequence reference87 = ref span107[num]; + QuestSequence obj72 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list93)[0]; - QuestStep questStep5 = new QuestStep(EInteractionType.SinglePlayerDuty, 1049807u, new Vector3(14.419739f, 2.2207584f, -132.25f), 148); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span110 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + ref QuestStep reference88 = ref span110[num2]; + QuestStep questStep7 = new QuestStep(EInteractionType.SinglePlayerDuty, 1049807u, new Vector3(14.419739f, 2.2207584f, -132.25f), 148); num3 = 1; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = new DialogueChoice + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + Span span111 = CollectionsMarshal.AsSpan(list95); + index3 = 0; + span111[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB241_04859_Q2_000_000"), Answer = new ExcelRef("TEXT_KINGBB241_04859_A2_000_001") }; - questStep5.DialogueChoices = list94; - reference88 = questStep5; - obj71.Steps = list93; - reference87 = obj71; - ref QuestSequence reference89 = ref span32[3]; - QuestSequence obj72 = new QuestSequence + questStep7.DialogueChoices = list95; + reference88 = questStep7; + obj72.Steps = list94; + reference87 = obj72; + num++; + ref QuestSequence reference89 = ref span107[num]; + QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049808u, new Vector3(17.013733f, 2.0418286f, -129.83911f), 148) + List list96 = new List(num2); + CollectionsMarshal.SetCount(list96, num2); + Span span112 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049808u, new Vector3(17.013733f, 2.0418286f, -129.83911f), 148) { StopDistance = 7f }; - obj72.Steps = list95; - reference89 = obj72; + obj73.Steps = list96; + reference89 = obj73; questRoot21.QuestSequence = list2; AddQuest(questId10, questRoot); QuestId questId11 = new QuestId(4860); questRoot = new QuestRoot(); QuestRoot questRoot22 = questRoot; num = 1; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; - questRoot22.Author = list96; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span113 = CollectionsMarshal.AsSpan(list97); + index = 0; + span113[index] = "liza"; + questRoot22.Author = list97; QuestRoot questRoot23 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span34 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference90 = ref span34[0]; - QuestSequence obj73 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span114 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference90 = ref span114[num]; + QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046835u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span115 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span115[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046835u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -334724,277 +406439,351 @@ public static class AssemblyQuestLoader } } }; - obj73.Steps = list97; - reference90 = obj73; - ref QuestSequence reference91 = ref span34[1]; - QuestSequence obj74 = new QuestSequence + obj74.Steps = list98; + reference90 = obj74; + num++; + ref QuestSequence reference91 = ref span114[num]; + QuestSequence obj75 = new QuestSequence { Sequence = 1 }; num2 = 2; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - Span span35 = CollectionsMarshal.AsSpan(list98); - span35[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + List list99 = new List(num2); + CollectionsMarshal.SetCount(list99, num2); + Span span116 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987 }; - span35[1] = new QuestStep(EInteractionType.Interact, 2013592u, new Vector3(-0.045776367f, -0.015319824f, -8.98761f), 987); - obj74.Steps = list98; - reference91 = obj74; - ref QuestSequence reference92 = ref span34[2]; - QuestSequence obj75 = new QuestSequence + index2++; + span116[index2] = new QuestStep(EInteractionType.Interact, 2013592u, new Vector3(-0.045776367f, -0.015319824f, -8.98761f), 987); + obj75.Steps = list99; + reference91 = obj75; + num++; + ref QuestSequence reference92 = ref span114[num]; + QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1046493u, new Vector3(-80.094604f, 1.2172644f, 28.244385f), 962); - obj75.Steps = list99; - reference92 = obj75; - span34[3] = new QuestSequence + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span117 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.Interact, 1046493u, new Vector3(-80.094604f, 1.2172644f, 28.244385f), 962); + obj76.Steps = list100; + reference92 = obj76; + num++; + span114[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference93 = ref span34[4]; + num++; + ref QuestSequence reference93 = ref span114[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence16 = questSequence; + QuestSequence questSequence14 = questSequence; num2 = 5; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span36 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference94 = ref span36[0]; - QuestStep obj76 = new QuestStep(EInteractionType.Interact, 1046495u, new Vector3(8.194031f, 16.35219f, 11.215393f), 1206) - { - StopDistance = 7f - }; - num3 = 6; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - Span span37 = CollectionsMarshal.AsSpan(list100); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj76.CompletionQuestVariablesFlags = list100; - reference94 = obj76; - ref QuestStep reference95 = ref span36[1]; - QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1046498u, new Vector3(-4.0742188f, 16.347223f, 1.3884888f), 1206); - num3 = 6; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span38 = CollectionsMarshal.AsSpan(list101); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - questStep6.CompletionQuestVariablesFlags = list101; - reference95 = questStep6; - ref QuestStep reference96 = ref span36[2]; - QuestStep obj77 = new QuestStep(EInteractionType.Interact, 1046496u, new Vector3(-3.768982f, 16.347233f, -0.5951538f), 1206) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span118 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference94 = ref span118[index2]; + QuestStep obj77 = new QuestStep(EInteractionType.Interact, 1046495u, new Vector3(8.194031f, 16.35219f, 11.215393f), 1206) { StopDistance = 7f }; + index3 = 6; + List list101 = new List(index3); + CollectionsMarshal.SetCount(list101, index3); + Span span119 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span119[num3] = null; + num3++; + span119[num3] = null; + num3++; + span119[num3] = null; + num3++; + span119[num3] = null; + num3++; + span119[num3] = null; + num3++; + span119[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj77.CompletionQuestVariablesFlags = list101; + reference94 = obj77; + index2++; + ref QuestStep reference95 = ref span118[index2]; + QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1046498u, new Vector3(-4.0742188f, 16.347223f, 1.3884888f), 1206); num3 = 6; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span39 = CollectionsMarshal.AsSpan(list102); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj77.CompletionQuestVariablesFlags = list102; - reference96 = obj77; - ref QuestStep reference97 = ref span36[3]; - QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1046497u, new Vector3(3.5552979f, 16.861145f, -18.08197f), 1206); - num3 = 6; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - Span span40 = CollectionsMarshal.AsSpan(list103); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep7.CompletionQuestVariablesFlags = list103; - reference97 = questStep7; - ref QuestStep reference98 = ref span36[4]; - QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1047584u, new Vector3(-8.957031f, 21.347244f, -35.751892f), 1206); + Span span120 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + questStep8.CompletionQuestVariablesFlags = list102; + reference95 = questStep8; + index2++; + ref QuestStep reference96 = ref span118[index2]; + QuestStep obj78 = new QuestStep(EInteractionType.Interact, 1046496u, new Vector3(-3.768982f, 16.347233f, -0.5951538f), 1206) + { + StopDistance = 7f + }; + index3 = 6; + List list103 = new List(index3); + CollectionsMarshal.SetCount(list103, index3); + Span span121 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj78.CompletionQuestVariablesFlags = list103; + reference96 = obj78; + index2++; + ref QuestStep reference97 = ref span118[index2]; + QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1046497u, new Vector3(3.5552979f, 16.861145f, -18.08197f), 1206); num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span41 = CollectionsMarshal.AsSpan(list104); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep8.CompletionQuestVariablesFlags = list104; - reference98 = questStep8; - questSequence16.Steps = list3; + Span span122 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = null; + index3++; + span122[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep9.CompletionQuestVariablesFlags = list104; + reference97 = questStep9; + index2++; + ref QuestStep reference98 = ref span118[index2]; + QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1047584u, new Vector3(-8.957031f, 21.347244f, -35.751892f), 1206); + index3 = 6; + List list105 = new List(index3); + CollectionsMarshal.SetCount(list105, index3); + Span span123 = CollectionsMarshal.AsSpan(list105); + num3 = 0; + span123[num3] = null; + num3++; + span123[num3] = null; + num3++; + span123[num3] = null; + num3++; + span123[num3] = null; + num3++; + span123[num3] = null; + num3++; + span123[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep10.CompletionQuestVariablesFlags = list105; + reference98 = questStep10; + questSequence14.Steps = list8; reference93 = questSequence; - ref QuestSequence reference99 = ref span34[5]; - QuestSequence obj78 = new QuestSequence + num++; + ref QuestSequence reference99 = ref span114[num]; + QuestSequence obj79 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1046502u, new Vector3(2.090454f, 18.350365f, 31.143677f), 1206); - obj78.Steps = list105; - reference99 = obj78; - ref QuestSequence reference100 = ref span34[6]; - QuestSequence obj79 = new QuestSequence + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span124 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span124[num2] = new QuestStep(EInteractionType.Interact, 1046502u, new Vector3(2.090454f, 18.350365f, 31.143677f), 1206); + obj79.Steps = list106; + reference99 = obj79; + num++; + ref QuestSequence reference100 = ref span114[num]; + QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046503u, new Vector3(110.154785f, -16.560854f, 144.15198f), 1185) + List list107 = new List(num2); + CollectionsMarshal.SetCount(list107, num2); + Span span125 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046503u, new Vector3(110.154785f, -16.560854f, 144.15198f), 1185) { StopDistance = 7f }; - obj79.Steps = list106; - reference100 = obj79; + obj80.Steps = list107; + reference100 = obj80; questRoot23.QuestSequence = list2; AddQuest(questId11, questRoot); QuestId questId12 = new QuestId(4861); questRoot = new QuestRoot(); QuestRoot questRoot24 = questRoot; num = 1; - List list107 = new List(num); - CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; - questRoot24.Author = list107; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + Span span126 = CollectionsMarshal.AsSpan(list108); + index = 0; + span126[index] = "liza"; + questRoot24.Author = list108; QuestRoot questRoot25 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span42 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference101 = ref span42[0]; - QuestSequence obj80 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span127 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference101 = ref span127[num]; + QuestSequence obj81 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046504u, new Vector3(112.38269f, -16.560852f, 142.29028f), 1185) - { - StopDistance = 7f - }; - obj80.Steps = list108; - reference101 = obj80; - ref QuestSequence reference102 = ref span42[1]; - QuestSequence obj81 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(112.38269f, -16.560852f, 142.29028f), 1185) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span128 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046504u, new Vector3(112.38269f, -16.560852f, 142.29028f), 1185) { StopDistance = 7f }; obj81.Steps = list109; - reference102 = obj81; - ref QuestSequence reference103 = ref span42[2]; + reference101 = obj81; + num++; + ref QuestSequence reference102 = ref span127[num]; QuestSequence obj82 = new QuestSequence { - Sequence = 2 + Sequence = 1 }; num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(22.221941f, -14f, 94.1764f), 1185) + Span span129 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span129[index2] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(112.38269f, -16.560852f, 142.29028f), 1185) { - StopDistance = 0.25f + StopDistance = 7f }; obj82.Steps = list110; - reference103 = obj82; - ref QuestSequence reference104 = ref span42[3]; + reference102 = obj82; + num++; + ref QuestSequence reference103 = ref span127[num]; QuestSequence obj83 = new QuestSequence { - Sequence = 3 + Sequence = 2 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(-12.395758f, 0f, 21.762516f), 1185) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span130 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(22.221941f, -14f, 94.1764f), 1185) { StopDistance = 0.25f }; obj83.Steps = list111; - reference104 = obj83; - ref QuestSequence reference105 = ref span42[4]; + reference103 = obj83; + num++; + ref QuestSequence reference104 = ref span127[num]; + QuestSequence obj84 = new QuestSequence + { + Sequence = 3 + }; + num2 = 1; + List list112 = new List(num2); + CollectionsMarshal.SetCount(list112, num2); + Span span131 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(-12.395758f, 0f, 21.762516f), 1185) + { + StopDistance = 0.25f + }; + obj84.Steps = list112; + reference104 = obj84; + num++; + ref QuestSequence reference105 = ref span127[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence17 = questSequence; - num2 = 4; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span43 = CollectionsMarshal.AsSpan(list112); - span43[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1185) + QuestSequence questSequence15 = questSequence; + index2 = 4; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span132 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1185) { StopDistance = 7f, Aetheryte = EAetheryteLocation.Tuliyollal }; - span43[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.706764f, -10.00001f, 38.266582f), 1185); - span43[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + num2++; + span132[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.706764f, -10.00001f, 38.266582f), 1185); + num2++; + span132[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalBrightploomPost }; - span43[3] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(105.193634f, 42f, -341.83524f), 1185) + num2++; + span132[num2] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(105.193634f, 42f, -341.83524f), 1185) { StopDistance = 0.25f }; - questSequence17.Steps = list112; + questSequence15.Steps = list8; reference105 = questSequence; - ref QuestSequence reference106 = ref span42[5]; - QuestSequence obj84 = new QuestSequence + num++; + ref QuestSequence reference106 = ref span127[num]; + QuestSequence obj85 = new QuestSequence { Sequence = 5 }; num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(41.811092f, 47.072273f, -408.94568f), 1185) + Span span133 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(41.811092f, 47.072273f, -408.94568f), 1185) { StopDistance = 0.25f }; - obj84.Steps = list113; - reference106 = obj84; - ref QuestSequence reference107 = ref span42[6]; - QuestSequence obj85 = new QuestSequence + obj85.Steps = list113; + reference106 = obj85; + num++; + ref QuestSequence reference107 = ref span127[num]; + QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046508u, new Vector3(40.878906f, 46.999996f, -412.9854f), 1185) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span134 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046508u, new Vector3(40.878906f, 46.999996f, -412.9854f), 1185) { StopDistance = 5f }; - obj85.Steps = list114; - reference107 = obj85; + obj86.Steps = list114; + reference107 = obj86; questRoot25.QuestSequence = list2; AddQuest(questId12, questRoot); QuestId questId13 = new QuestId(4862); @@ -335003,103 +406792,123 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "liza"; + Span span135 = CollectionsMarshal.AsSpan(list115); + index = 0; + span135[index] = "liza"; questRoot26.Author = list115; QuestRoot questRoot27 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span44 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference108 = ref span44[0]; - QuestSequence obj86 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span136 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference108 = ref span136[num]; + QuestSequence obj87 = new QuestSequence { Sequence = 0 }; num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046509u, new Vector3(43.137207f, 46.999996f, -413.016f), 1185) + Span span137 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046509u, new Vector3(43.137207f, 46.999996f, -413.016f), 1185) { StopDistance = 7f }; - obj86.Steps = list116; - reference108 = obj86; - ref QuestSequence reference109 = ref span44[1]; - QuestSequence obj87 = new QuestSequence + obj87.Steps = list116; + reference108 = obj87; + num++; + ref QuestSequence reference109 = ref span136[num]; + QuestSequence obj88 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1046509u, new Vector3(43.137207f, 46.999996f, -413.016f), 1185) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span138 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.Interact, 1046509u, new Vector3(43.137207f, 46.999996f, -413.016f), 1185) { StopDistance = 7f }; - obj87.Steps = list117; - reference109 = obj87; - ref QuestSequence reference110 = ref span44[2]; - QuestSequence obj88 = new QuestSequence + obj88.Steps = list117; + reference109 = obj88; + num++; + ref QuestSequence reference110 = ref span136[num]; + QuestSequence obj89 = new QuestSequence { Sequence = 2 }; num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1046508u, new Vector3(114.4164f, 46.999996f, -125.71052f), 1185) + Span span139 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.Interact, 1046508u, new Vector3(114.4164f, 46.999996f, -125.71052f), 1185) { StopDistance = 0.25f }; - obj88.Steps = list118; - reference110 = obj88; - ref QuestSequence reference111 = ref span44[3]; - QuestSequence obj89 = new QuestSequence + obj89.Steps = list118; + reference110 = obj89; + num++; + ref QuestSequence reference111 = ref span136[num]; + QuestSequence obj90 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1046508u, new Vector3(-182.43765f, 39.935753f, 16.35889f), 1185) + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span140 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.Interact, 1046508u, new Vector3(-182.43765f, 39.935753f, 16.35889f), 1185) { StopDistance = 0.25f }; - obj89.Steps = list119; - reference111 = obj89; - ref QuestSequence reference112 = ref span44[4]; - QuestSequence obj90 = new QuestSequence + obj90.Steps = list119; + reference111 = obj90; + num++; + ref QuestSequence reference112 = ref span136[num]; + QuestSequence obj91 = new QuestSequence { Sequence = 4 }; num2 = 2; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span45 = CollectionsMarshal.AsSpan(list120); - span45[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + Span span141 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalTheResplendentQuarter }; - span45[1] = new QuestStep(EInteractionType.Interact, 1046509u, new Vector3(-317.23196f, 2.9999998f, -13.00843f), 1185) + index2++; + span141[index2] = new QuestStep(EInteractionType.Interact, 1046509u, new Vector3(-317.23196f, 2.9999998f, -13.00843f), 1185) { StopDistance = 0.25f }; - obj90.Steps = list120; - reference112 = obj90; - ref QuestSequence reference113 = ref span44[5]; - QuestSequence obj91 = new QuestSequence + obj91.Steps = list120; + reference112 = obj91; + num++; + ref QuestSequence reference113 = ref span136[num]; + QuestSequence obj92 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span46 = CollectionsMarshal.AsSpan(list121); - span46[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + index2 = 2; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span142 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { Comment = "Dirigible Landing", AethernetShard = EAetheryteLocation.TuliyollalDirigibleLanding }; - span46[1] = new QuestStep(EInteractionType.Interact, 1046509u, new Vector3(-273.17014f, 0.0722692f, 129.50276f), 1185) + num2++; + span142[num2] = new QuestStep(EInteractionType.Interact, 1046509u, new Vector3(-273.17014f, 0.0722692f, 129.50276f), 1185) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -335108,19 +406917,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - obj91.Steps = list121; - reference113 = obj91; - ref QuestSequence reference114 = ref span44[6]; - QuestSequence obj92 = new QuestSequence + obj92.Steps = list121; + reference113 = obj92; + num++; + ref QuestSequence reference114 = ref span136[num]; + QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046510u, new Vector3(-195.6665f, -4.927734f, 132.18884f), 1185); - obj92.Steps = list122; - reference114 = obj92; + Span span143 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046510u, new Vector3(-195.6665f, -4.927734f, 132.18884f), 1185); + obj93.Steps = list122; + reference114 = obj93; questRoot27.QuestSequence = list2; AddQuest(questId13, questRoot); QuestId questId14 = new QuestId(4863); @@ -335129,134 +406941,165 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; + Span span144 = CollectionsMarshal.AsSpan(list123); + index = 0; + span144[index] = "liza"; questRoot28.Author = list123; QuestRoot questRoot29 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span47 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference115 = ref span47[0]; - QuestSequence obj93 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span145 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference115 = ref span145[num]; + QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046511u, new Vector3(-196.58203f, -5.0000086f, 127.18384f), 1185) + index2 = 1; + List list124 = new List(index2); + CollectionsMarshal.SetCount(list124, index2); + Span span146 = CollectionsMarshal.AsSpan(list124); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046511u, new Vector3(-196.58203f, -5.0000086f, 127.18384f), 1185) { StopDistance = 7f }; - obj93.Steps = list124; - reference115 = obj93; - ref QuestSequence reference116 = ref span47[1]; + obj94.Steps = list124; + reference115 = obj94; + num++; + ref QuestSequence reference116 = ref span145[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence18 = questSequence; + QuestSequence questSequence16 = questSequence; num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference117 = ref CollectionsMarshal.AsSpan(list3)[0]; - QuestStep obj94 = new QuestStep(EInteractionType.Interact, 2013593u, new Vector3(-195.75806f, -4.928711f, 129.80847f), 1185) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span147 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference117 = ref span147[index2]; + QuestStep obj95 = new QuestStep(EInteractionType.Interact, 2013593u, new Vector3(-195.75806f, -4.928711f, 129.80847f), 1185) { StopDistance = 4.5f }; num3 = 3; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - Span span48 = CollectionsMarshal.AsSpan(list125); - span48[0] = new DialogueChoice + Span span148 = CollectionsMarshal.AsSpan(list125); + index3 = 0; + span148[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMA104_04863_Q3_000_000") }; - span48[1] = new DialogueChoice + index3++; + span148[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMA104_04863_Q10_000_000") }; - span48[2] = new DialogueChoice + index3++; + span148[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMA104_04863_Q2_000_000"), Answer = new ExcelRef("TEXT_KINGMA104_04863_A2_000_001") }; - obj94.DialogueChoices = list125; - num3 = 8; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - Span span49 = CollectionsMarshal.AsSpan(list126); - span49[0] = 0u; - span49[1] = 1u; - span49[2] = 2u; - span49[3] = 3u; - span49[4] = 0u; - span49[5] = 1u; - span49[6] = 2u; - span49[7] = 3u; - obj94.PointMenuChoices = list126; - reference117 = obj94; - questSequence18.Steps = list3; + obj95.DialogueChoices = list125; + index3 = 8; + List list126 = new List(index3); + CollectionsMarshal.SetCount(list126, index3); + Span span149 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + span149[num3] = 0u; + num3++; + span149[num3] = 1u; + num3++; + span149[num3] = 2u; + num3++; + span149[num3] = 3u; + num3++; + span149[num3] = 0u; + num3++; + span149[num3] = 1u; + num3++; + span149[num3] = 2u; + num3++; + span149[num3] = 3u; + obj95.PointMenuChoices = list126; + reference117 = obj95; + questSequence16.Steps = list8; reference116 = questSequence; - ref QuestSequence reference118 = ref span47[2]; - QuestSequence obj95 = new QuestSequence + num++; + ref QuestSequence reference118 = ref span145[num]; + QuestSequence obj96 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - Span span50 = CollectionsMarshal.AsSpan(list127); - span50[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + index2 = 2; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span150 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalTheForardCabins }; - span50[1] = new QuestStep(EInteractionType.Interact, 1046512u, new Vector3(-46.433228f, -6.080007f, 161.08948f), 1185); - obj95.Steps = list127; - reference118 = obj95; - ref QuestSequence reference119 = ref span47[3]; - QuestSequence obj96 = new QuestSequence + num2++; + span150[num2] = new QuestStep(EInteractionType.Interact, 1046512u, new Vector3(-46.433228f, -6.080007f, 161.08948f), 1185); + obj96.Steps = list127; + reference118 = obj96; + num++; + ref QuestSequence reference119 = ref span145[num]; + QuestSequence obj97 = new QuestSequence { Sequence = 3 }; num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) + Span span151 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.Interact, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) { StopDistance = 5f }; - obj96.Steps = list128; - reference119 = obj96; - ref QuestSequence reference120 = ref span47[4]; - QuestSequence obj97 = new QuestSequence + obj97.Steps = list128; + reference119 = obj97; + num++; + ref QuestSequence reference120 = ref span145[num]; + QuestSequence obj98 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1046515u, new Vector3(-44.90735f, -10.000009f, 138.71973f), 1185); - obj97.Steps = list129; - reference120 = obj97; - ref QuestSequence reference121 = ref span47[5]; + index2 = 1; + List list129 = new List(index2); + CollectionsMarshal.SetCount(list129, index2); + Span span152 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.Interact, 1046515u, new Vector3(-44.90735f, -10.000009f, 138.71973f), 1185); + obj98.Steps = list129; + reference120 = obj98; + num++; + ref QuestSequence reference121 = ref span145[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence19 = questSequence; + QuestSequence questSequence17 = questSequence; num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span51 = CollectionsMarshal.AsSpan(list3); - span51[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span153 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalBaysideBevyMarketplace }; - span51[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.179695f, 85.001854f, -56.396465f), 1185) + index2++; + span153[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.179695f, 85.001854f, -56.396465f), 1185) { Comment = "Resplentend Quarter Lamp nav", AethernetShortcut = new AethernetShortcut @@ -335265,12 +407108,14 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - span51[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + index2++; + span153[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalVollokShoonsa }; - span51[3] = new QuestStep(EInteractionType.CompleteQuest, 1046517u, new Vector3(-178.97314f, 120.749985f, -320.21063f), 1185); - questSequence19.Steps = list3; + index2++; + span153[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046517u, new Vector3(-178.97314f, 120.749985f, -320.21063f), 1185); + questSequence17.Steps = list8; reference121 = questSequence; questRoot29.QuestSequence = list2; AddQuest(questId14, questRoot); @@ -335280,50 +407125,61 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + Span span154 = CollectionsMarshal.AsSpan(list130); + index = 0; + span154[index] = "liza"; questRoot30.Author = list130; QuestRoot questRoot31 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span52 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference122 = ref span52[0]; - QuestSequence obj98 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span155 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference122 = ref span155[num]; + QuestSequence obj99 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046522u, new Vector3(-177.17255f, 120.79523f, -318.37952f), 1185) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span156 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046522u, new Vector3(-177.17255f, 120.79523f, -318.37952f), 1185) { StopDistance = 5f }; - obj98.Steps = list131; - reference122 = obj98; - ref QuestSequence reference123 = ref span52[1]; - QuestSequence obj99 = new QuestSequence + obj99.Steps = list131; + reference122 = obj99; + num++; + ref QuestSequence reference123 = ref span155[num]; + QuestSequence obj100 = new QuestSequence { Sequence = 1 }; num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1046523u, new Vector3(-54.276367f, 95.49999f, -100.75531f), 1185) + Span span157 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.Interact, 1046523u, new Vector3(-54.276367f, 95.49999f, -100.75531f), 1185) { StopDistance = 5f }; - obj99.Steps = list132; - reference123 = obj99; - ref QuestSequence reference124 = ref span52[2]; - QuestSequence obj100 = new QuestSequence + obj100.Steps = list132; + reference123 = obj100; + num++; + ref QuestSequence reference124 = ref span155[num]; + QuestSequence obj101 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1046528u, new Vector3(-182.29956f, -5.0000095f, 121.29382f), 1185) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span158 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span158[num2] = new QuestStep(EInteractionType.Interact, 1046528u, new Vector3(-182.29956f, -5.0000095f, 121.29382f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -335331,30 +407187,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheForardCabins } }; - obj100.Steps = list133; - reference124 = obj100; - ref QuestSequence reference125 = ref span52[3]; - QuestSequence obj101 = new QuestSequence + obj101.Steps = list133; + reference124 = obj101; + num++; + ref QuestSequence reference125 = ref span155[num]; + QuestSequence obj102 = new QuestSequence { Sequence = 3 }; num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1046533u, new Vector3(-164.29395f, -14.999356f, 208.72815f), 1185); - obj101.Steps = list134; - reference125 = obj101; - ref QuestSequence reference126 = ref span52[4]; - questSequence = new QuestSequence + Span span159 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.Interact, 1046533u, new Vector3(-164.29395f, -14.999356f, 208.72815f), 1185); + obj102.Steps = list134; + reference125 = obj102; + num++; + ref QuestSequence reference126 = ref span155[num]; + QuestSequence obj103 = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence20 = questSequence; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list135)[0]; - QuestStep obj102 = new QuestStep(EInteractionType.Interact, 2013594u, new Vector3(-36.087585f, -10.055725f, 145.28113f), 1185) + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span160 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + ref QuestStep reference127 = ref span160[num2]; + QuestStep obj104 = new QuestStep(EInteractionType.Interact, 2013594u, new Vector3(-36.087585f, -10.055725f, 145.28113f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -335365,26 +407226,31 @@ public static class AssemblyQuestLoader num3 = 1; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - CollectionsMarshal.AsSpan(list136)[0] = new DialogueChoice + Span span161 = CollectionsMarshal.AsSpan(list136); + index3 = 0; + span161[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMA105_04864_SYSTEM_000_060") }; - obj102.DialogueChoices = list136; - reference127 = obj102; - questSequence20.Steps = list135; - reference126 = questSequence; - ref QuestSequence reference128 = ref span52[5]; - QuestSequence obj103 = new QuestSequence + obj104.DialogueChoices = list136; + reference127 = obj104; + obj103.Steps = list135; + reference126 = obj103; + num++; + ref QuestSequence reference128 = ref span155[num]; + QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185); - obj103.Steps = list137; - reference128 = obj103; + Span span162 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185); + obj105.Steps = list137; + reference128 = obj105; questRoot31.QuestSequence = list2; AddQuest(questId15, questRoot); QuestId questId16 = new QuestId(4865); @@ -335393,67 +407259,82 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "liza"; + Span span163 = CollectionsMarshal.AsSpan(list138); + index = 0; + span163[index] = "liza"; questRoot32.Author = list138; QuestRoot questRoot33 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span53 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference129 = ref span53[0]; - QuestSequence obj104 = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span164 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference129 = ref span164[num]; + QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046684u, new Vector3(-33.218933f, -10.00001f, 147.41736f), 1185) + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + Span span165 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span165[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046684u, new Vector3(-33.218933f, -10.00001f, 147.41736f), 1185) { StopDistance = 7f }; - obj104.Steps = list139; - reference129 = obj104; - ref QuestSequence reference130 = ref span53[1]; - QuestSequence obj105 = new QuestSequence + obj106.Steps = list139; + reference129 = obj106; + num++; + ref QuestSequence reference130 = ref span164[num]; + QuestSequence obj107 = new QuestSequence { Sequence = 1 }; num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1046686u, new Vector3(-287.28168f, -8.941224E-06f, 129.93054f), 1185); - obj105.Steps = list140; - reference130 = obj105; - span53[2] = new QuestSequence + Span span166 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span166[index2] = new QuestStep(EInteractionType.Interact, 1046686u, new Vector3(-287.28168f, -8.941224E-06f, 129.93054f), 1185); + obj107.Steps = list140; + reference130 = obj107; + num++; + span164[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference131 = ref span53[3]; - QuestSequence obj106 = new QuestSequence + num++; + ref QuestSequence reference131 = ref span164[num]; + QuestSequence obj108 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 1046691u, new Vector3(-289.53992f, 10.95645f, -791.56177f), 1188) + index2 = 1; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span167 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.Interact, 1046691u, new Vector3(-289.53992f, 10.95645f, -791.56177f), 1188) { DisableNavmesh = true }; - obj106.Steps = list141; - reference131 = obj106; - ref QuestSequence reference132 = ref span53[4]; - QuestSequence obj107 = new QuestSequence + obj108.Steps = list141; + reference131 = obj108; + num++; + ref QuestSequence reference132 = ref span164[num]; + QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046694u, new Vector3(-264.8203f, 5.6243224f, -571.80133f), 1188); - obj107.Steps = list142; - reference132 = obj107; + Span span168 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span168[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046694u, new Vector3(-264.8203f, 5.6243224f, -571.80133f), 1188); + obj109.Steps = list142; + reference132 = obj109; questRoot33.QuestSequence = list2; AddQuest(questId16, questRoot); QuestId questId17 = new QuestId(4866); @@ -335462,134 +407343,177 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; + Span span169 = CollectionsMarshal.AsSpan(list143); + index = 0; + span169[index] = "liza"; questRoot34.Author = list143; QuestRoot questRoot35 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span54 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference133 = ref span54[0]; - QuestSequence obj108 = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span170 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference133 = ref span170[num]; + QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046695u, new Vector3(-266.5904f, 5.6852775f, -570.0008f), 1188) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span171 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span171[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046695u, new Vector3(-266.5904f, 5.6852775f, -570.0008f), 1188) { StopDistance = 7f }; - obj108.Steps = list144; - reference133 = obj108; - ref QuestSequence reference134 = ref span54[1]; + obj110.Steps = list144; + reference133 = obj110; + num++; + ref QuestSequence reference134 = ref span170[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence21 = questSequence; + QuestSequence questSequence18 = questSequence; num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span55 = CollectionsMarshal.AsSpan(list3); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-176.0706f, 6.27715f, -486.288f), 1188); - span55[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span172 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span172[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-176.0706f, 6.27715f, -486.288f), 1188); + index2++; + span172[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) { Aetheryte = EAetheryteLocation.KozamaukaOkHanu }; - ref QuestStep reference135 = ref span55[2]; - QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1046699u, new Vector3(-218.555f, 6.4016876f, -477.77527f), 1188); - num3 = 6; - List list145 = new List(num3); - CollectionsMarshal.SetCount(list145, num3); - Span span56 = CollectionsMarshal.AsSpan(list145); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep9.CompletionQuestVariablesFlags = list145; - reference135 = questStep9; - ref QuestStep reference136 = ref span55[3]; - QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2013621u, new Vector3(-232.95953f, 6.7596436f, -479.2096f), 1188); + index2++; + ref QuestStep reference135 = ref span172[index2]; + QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1046699u, new Vector3(-218.555f, 6.4016876f, -477.77527f), 1188); + index3 = 6; + List list145 = new List(index3); + CollectionsMarshal.SetCount(list145, index3); + Span span173 = CollectionsMarshal.AsSpan(list145); + num3 = 0; + span173[num3] = null; + num3++; + span173[num3] = null; + num3++; + span173[num3] = null; + num3++; + span173[num3] = null; + num3++; + span173[num3] = null; + num3++; + span173[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep11.CompletionQuestVariablesFlags = list145; + reference135 = questStep11; + index2++; + ref QuestStep reference136 = ref span172[index2]; + QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2013621u, new Vector3(-232.95953f, 6.7596436f, -479.2096f), 1188); num3 = 6; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - Span span57 = CollectionsMarshal.AsSpan(list146); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep10.CompletionQuestVariablesFlags = list146; - reference136 = questStep10; - questSequence21.Steps = list3; + Span span174 = CollectionsMarshal.AsSpan(list146); + index3 = 0; + span174[index3] = null; + index3++; + span174[index3] = null; + index3++; + span174[index3] = null; + index3++; + span174[index3] = null; + index3++; + span174[index3] = null; + index3++; + span174[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep12.CompletionQuestVariablesFlags = list146; + reference136 = questStep12; + questSequence18.Steps = list8; reference134 = questSequence; - ref QuestSequence reference137 = ref span54[2]; - QuestSequence obj109 = new QuestSequence + num++; + ref QuestSequence reference137 = ref span170[num]; + QuestSequence obj111 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1046700u, new Vector3(-255.14612f, 2.5820477f, -468.19257f), 1188); - obj109.Steps = list147; - reference137 = obj109; - ref QuestSequence reference138 = ref span54[3]; + index2 = 1; + List list147 = new List(index2); + CollectionsMarshal.SetCount(list147, index2); + Span span175 = CollectionsMarshal.AsSpan(list147); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.Interact, 1046700u, new Vector3(-255.14612f, 2.5820477f, -468.19257f), 1188); + obj111.Steps = list147; + reference137 = obj111; + num++; + ref QuestSequence reference138 = ref span170[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence22 = questSequence; + QuestSequence questSequence19 = questSequence; num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span58 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference139 = ref span58[0]; - QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2013622u, new Vector3(-167.58984f, 7.5531616f, -532.6162f), 1188); - num3 = 6; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - Span span59 = CollectionsMarshal.AsSpan(list148); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep11.CompletionQuestVariablesFlags = list148; - reference139 = questStep11; - ref QuestStep reference140 = ref span58[1]; - QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2013623u, new Vector3(-97.85614f, 11.917236f, -528.52673f), 1188); + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span176 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference139 = ref span176[index2]; + QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2013622u, new Vector3(-167.58984f, 7.5531616f, -532.6162f), 1188); + index3 = 6; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + Span span177 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span177[num3] = null; + num3++; + span177[num3] = null; + num3++; + span177[num3] = null; + num3++; + span177[num3] = null; + num3++; + span177[num3] = null; + num3++; + span177[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep13.CompletionQuestVariablesFlags = list148; + reference139 = questStep13; + index2++; + ref QuestStep reference140 = ref span176[index2]; + QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2013623u, new Vector3(-97.85614f, 11.917236f, -528.52673f), 1188); num3 = 6; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - Span span60 = CollectionsMarshal.AsSpan(list149); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep12.CompletionQuestVariablesFlags = list149; - reference140 = questStep12; - questSequence22.Steps = list3; + Span span178 = CollectionsMarshal.AsSpan(list149); + index3 = 0; + span178[index3] = null; + index3++; + span178[index3] = null; + index3++; + span178[index3] = null; + index3++; + span178[index3] = null; + index3++; + span178[index3] = null; + index3++; + span178[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep14.CompletionQuestVariablesFlags = list149; + reference140 = questStep14; + questSequence19.Steps = list8; reference138 = questSequence; - ref QuestSequence reference141 = ref span54[4]; - QuestSequence obj110 = new QuestSequence + num++; + ref QuestSequence reference141 = ref span170[num]; + QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046701u, new Vector3(-103.16626f, 9.773315f, -533.37915f), 1188); - obj110.Steps = list150; - reference141 = obj110; + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span179 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046701u, new Vector3(-103.16626f, 9.773315f, -533.37915f), 1188); + obj112.Steps = list150; + reference141 = obj112; questRoot35.QuestSequence = list2; AddQuest(questId17, questRoot); QuestId questId18 = new QuestId(4867); @@ -335598,146 +407522,192 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "liza"; + Span span180 = CollectionsMarshal.AsSpan(list151); + index = 0; + span180[index] = "liza"; questRoot36.Author = list151; QuestRoot questRoot37 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span61 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference142 = ref span61[0]; - QuestSequence obj111 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span181 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference142 = ref span181[num]; + QuestSequence obj113 = new QuestSequence { Sequence = 0 }; num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046702u, new Vector3(-122.453674f, 9.842161f, -441.21466f), 1188) + Span span182 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046702u, new Vector3(-122.453674f, 9.842161f, -441.21466f), 1188) { StopDistance = 5f }; - obj111.Steps = list152; - reference142 = obj111; - ref QuestSequence reference143 = ref span61[1]; - QuestSequence obj112 = new QuestSequence + obj113.Steps = list152; + reference142 = obj113; + num++; + ref QuestSequence reference143 = ref span181[num]; + QuestSequence obj114 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1046707u, new Vector3(39.16992f, 0.998726f, -390.0359f), 1188); - obj112.Steps = list153; - reference143 = obj112; - ref QuestSequence reference144 = ref span61[2]; + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span183 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span183[num2] = new QuestStep(EInteractionType.Interact, 1046707u, new Vector3(39.16992f, 0.998726f, -390.0359f), 1188); + obj114.Steps = list153; + reference143 = obj114; + num++; + ref QuestSequence reference144 = ref span181[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence23 = questSequence; + QuestSequence questSequence20 = questSequence; num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span62 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference145 = ref span62[0]; - QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2013624u, new Vector3(86.71704f, -0.13739014f, -388.8152f), 1188); - num3 = 6; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - Span span63 = CollectionsMarshal.AsSpan(list154); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep13.CompletionQuestVariablesFlags = list154; - reference145 = questStep13; - ref QuestStep reference146 = ref span62[1]; - QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1046712u, new Vector3(142.1073f, 0.7218611f, -421.5f), 1188); + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span184 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference145 = ref span184[index2]; + QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2013624u, new Vector3(86.71704f, -0.13739014f, -388.8152f), 1188); + index3 = 6; + List list154 = new List(index3); + CollectionsMarshal.SetCount(list154, index3); + Span span185 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span185[num3] = null; + num3++; + span185[num3] = null; + num3++; + span185[num3] = null; + num3++; + span185[num3] = null; + num3++; + span185[num3] = null; + num3++; + span185[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep15.CompletionQuestVariablesFlags = list154; + reference145 = questStep15; + index2++; + ref QuestStep reference146 = ref span184[index2]; + QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1046712u, new Vector3(142.1073f, 0.7218611f, -421.5f), 1188); num3 = 6; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - Span span64 = CollectionsMarshal.AsSpan(list155); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep14.CompletionQuestVariablesFlags = list155; - reference146 = questStep14; - ref QuestStep reference147 = ref span62[2]; - QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2013625u, new Vector3(131.0597f, -0.13739014f, -370.2907f), 1188); - num3 = 6; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - Span span65 = CollectionsMarshal.AsSpan(list156); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep15.CompletionQuestVariablesFlags = list156; - reference147 = questStep15; - ref QuestStep reference148 = ref span62[3]; - QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2013626u, new Vector3(177.44714f, -0.13739014f, -371.63348f), 1188); + Span span186 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span186[index3] = null; + index3++; + span186[index3] = null; + index3++; + span186[index3] = null; + index3++; + span186[index3] = null; + index3++; + span186[index3] = null; + index3++; + span186[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep16.CompletionQuestVariablesFlags = list155; + reference146 = questStep16; + index2++; + ref QuestStep reference147 = ref span184[index2]; + QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2013625u, new Vector3(131.0597f, -0.13739014f, -370.2907f), 1188); + index3 = 6; + List list156 = new List(index3); + CollectionsMarshal.SetCount(list156, index3); + Span span187 = CollectionsMarshal.AsSpan(list156); + num3 = 0; + span187[num3] = null; + num3++; + span187[num3] = null; + num3++; + span187[num3] = null; + num3++; + span187[num3] = null; + num3++; + span187[num3] = null; + num3++; + span187[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep17.CompletionQuestVariablesFlags = list156; + reference147 = questStep17; + index2++; + ref QuestStep reference148 = ref span184[index2]; + QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2013626u, new Vector3(177.44714f, -0.13739014f, -371.63348f), 1188); num3 = 6; List list157 = new List(num3); CollectionsMarshal.SetCount(list157, num3); - Span span66 = CollectionsMarshal.AsSpan(list157); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep16.CompletionQuestVariablesFlags = list157; - reference148 = questStep16; - questSequence23.Steps = list3; + Span span188 = CollectionsMarshal.AsSpan(list157); + index3 = 0; + span188[index3] = null; + index3++; + span188[index3] = null; + index3++; + span188[index3] = null; + index3++; + span188[index3] = null; + index3++; + span188[index3] = null; + index3++; + span188[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep18.CompletionQuestVariablesFlags = list157; + reference148 = questStep18; + questSequence20.Steps = list8; reference144 = questSequence; - ref QuestSequence reference149 = ref span61[3]; - QuestSequence obj113 = new QuestSequence + num++; + ref QuestSequence reference149 = ref span181[num]; + QuestSequence obj115 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1046713u, new Vector3(225.11633f, -0.40000004f, -352.19354f), 1188); - obj113.Steps = list158; - reference149 = obj113; - ref QuestSequence reference150 = ref span61[4]; - QuestSequence obj114 = new QuestSequence + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span189 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.Interact, 1046713u, new Vector3(225.11633f, -0.40000004f, -352.19354f), 1188); + obj115.Steps = list158; + reference149 = obj115; + num++; + ref QuestSequence reference150 = ref span181[num]; + QuestSequence obj116 = new QuestSequence { Sequence = 4 }; num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Snipe, 1046718u, new Vector3(-101.18262f, 9.773315f, -532.15845f), 1188) + Span span190 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.Snipe, 1046718u, new Vector3(-101.18262f, 9.773315f, -532.15845f), 1188) { Comment = "Inspect Eye, Carrying Pole and Tail", AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj114.Steps = list159; - reference150 = obj114; - ref QuestSequence reference151 = ref span61[5]; - QuestSequence obj115 = new QuestSequence + obj116.Steps = list159; + reference150 = obj116; + num++; + ref QuestSequence reference151 = ref span181[num]; + QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046723u, new Vector3(-103.379944f, 9.773315f, -537.0718f), 1188) + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span191 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span191[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046723u, new Vector3(-103.379944f, 9.773315f, -537.0718f), 1188) { StopDistance = 7f }; - obj115.Steps = list160; - reference151 = obj115; + obj117.Steps = list160; + reference151 = obj117; questRoot37.QuestSequence = list2; AddQuest(questId18, questRoot); QuestId questId19 = new QuestId(4868); @@ -335746,339 +407716,411 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - CollectionsMarshal.AsSpan(list161)[0] = "liza"; + Span span192 = CollectionsMarshal.AsSpan(list161); + index = 0; + span192[index] = "liza"; questRoot38.Author = list161; QuestRoot questRoot39 = questRoot; - num = 10; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span67 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference152 = ref span67[0]; - QuestSequence obj116 = new QuestSequence + index = 10; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span193 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference152 = ref span193[num]; + QuestSequence obj118 = new QuestSequence { Sequence = 0 }; num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046725u, new Vector3(-105.85187f, 9.773315f, -536.9192f), 1188) + Span span194 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span194[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046725u, new Vector3(-105.85187f, 9.773315f, -536.9192f), 1188) { StopDistance = 7f }; - obj116.Steps = list162; - reference152 = obj116; - ref QuestSequence reference153 = ref span67[1]; - QuestSequence obj117 = new QuestSequence + obj118.Steps = list162; + reference152 = obj118; + num++; + ref QuestSequence reference153 = ref span193[num]; + QuestSequence obj119 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1046840u, new Vector3(214.52649f, 10.257622f, -577.11145f), 1188); - obj117.Steps = list163; - reference153 = obj117; - ref QuestSequence reference154 = ref span67[2]; - QuestSequence obj118 = new QuestSequence + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span195 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.Interact, 1046840u, new Vector3(214.52649f, 10.257622f, -577.11145f), 1188); + obj119.Steps = list163; + reference153 = obj119; + num++; + ref QuestSequence reference154 = ref span193[num]; + QuestSequence obj120 = new QuestSequence { Sequence = 2 }; num2 = 2; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span68 = CollectionsMarshal.AsSpan(list164); - span68[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013934u, new Vector3(299.48877f, 1.3884888f, -688.4413f), 1188) + Span span196 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span196[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013934u, new Vector3(299.48877f, 1.3884888f, -688.4413f), 1188) { AetherCurrentId = 2818419u }; - span68[1] = new QuestStep(EInteractionType.Interact, 1046741u, new Vector3(335.22546f, 87.375534f, -612.54297f), 1188); - obj118.Steps = list164; - reference154 = obj118; - ref QuestSequence reference155 = ref span67[3]; - QuestSequence obj119 = new QuestSequence + index2++; + span196[index2] = new QuestStep(EInteractionType.Interact, 1046741u, new Vector3(335.22546f, 87.375534f, -612.54297f), 1188); + obj120.Steps = list164; + reference154 = obj120; + num++; + ref QuestSequence reference155 = ref span193[num]; + QuestSequence obj121 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list165 = new List(num2); - CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1046729u, new Vector3(323.0487f, 4.24628f, -638.4833f), 1188); - obj119.Steps = list165; - reference155 = obj119; - ref QuestSequence reference156 = ref span67[4]; - QuestSequence obj120 = new QuestSequence + index2 = 1; + List list165 = new List(index2); + CollectionsMarshal.SetCount(list165, index2); + Span span197 = CollectionsMarshal.AsSpan(list165); + num2 = 0; + span197[num2] = new QuestStep(EInteractionType.Interact, 1046729u, new Vector3(323.0487f, 4.24628f, -638.4833f), 1188); + obj121.Steps = list165; + reference155 = obj121; + num++; + ref QuestSequence reference156 = ref span193[num]; + QuestSequence obj122 = new QuestSequence { Sequence = 4 }; num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1046731u, new Vector3(-182.20801f, 2.399998f, -388.50995f), 1188) + Span span198 = CollectionsMarshal.AsSpan(list166); + index2 = 0; + span198[index2] = new QuestStep(EInteractionType.Interact, 1046731u, new Vector3(-182.20801f, 2.399998f, -388.50995f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj120.Steps = list166; - reference156 = obj120; - ref QuestSequence reference157 = ref span67[5]; - QuestSequence obj121 = new QuestSequence + obj122.Steps = list166; + reference156 = obj122; + num++; + ref QuestSequence reference157 = ref span193[num]; + QuestSequence obj123 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1046733u, new Vector3(-445.97546f, 1.5936834f, -205.2796f), 1188); - obj121.Steps = list167; - reference157 = obj121; - ref QuestSequence reference158 = ref span67[6]; - QuestSequence obj122 = new QuestSequence + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span199 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span199[num2] = new QuestStep(EInteractionType.Interact, 1046733u, new Vector3(-445.97546f, 1.5936834f, -205.2796f), 1188); + obj123.Steps = list167; + reference157 = obj123; + num++; + ref QuestSequence reference158 = ref span193[num]; + QuestSequence obj124 = new QuestSequence { Sequence = 6 }; num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 2013627u, new Vector3(-576.2875f, -0.015319824f, -140.42883f), 1188); - obj122.Steps = list168; - reference158 = obj122; - ref QuestSequence reference159 = ref span67[7]; - QuestSequence obj123 = new QuestSequence + Span span200 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span200[index2] = new QuestStep(EInteractionType.Interact, 2013627u, new Vector3(-576.2875f, -0.015319824f, -140.42883f), 1188); + obj124.Steps = list168; + reference158 = obj124; + num++; + ref QuestSequence reference159 = ref span193[num]; + QuestSequence obj125 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - Span span69 = CollectionsMarshal.AsSpan(list169); - span69[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013935u, new Vector3(-599.57275f, 5.142273f, -179.46143f), 1188) + index2 = 2; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + Span span201 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span201[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013935u, new Vector3(-599.57275f, 5.142273f, -179.46143f), 1188) { AetherCurrentId = 2818420u }; - span69[1] = new QuestStep(EInteractionType.Interact, 1046733u, new Vector3(-445.97546f, 1.5936834f, -205.2796f), 1188); - obj123.Steps = list169; - reference159 = obj123; - ref QuestSequence reference160 = ref span67[8]; + num2++; + span201[num2] = new QuestStep(EInteractionType.Interact, 1046733u, new Vector3(-445.97546f, 1.5936834f, -205.2796f), 1188); + obj125.Steps = list169; + reference159 = obj125; + num++; + ref QuestSequence reference160 = ref span193[num]; questSequence = new QuestSequence { Sequence = 8 }; - QuestSequence questSequence24 = questSequence; + QuestSequence questSequence21 = questSequence; num2 = 4; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - Span span70 = CollectionsMarshal.AsSpan(list170); - span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-510.37933f, -0.39999998f, -277.78192f), 1188); - span70[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-521.0261f, -0.40000004f, -329.19336f), 1188); - span70[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013936u, new Vector3(-638.056f, 6.5460815f, -486.50342f), 1188) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span202 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span202[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-510.37933f, -0.39999998f, -277.78192f), 1188); + index2++; + span202[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-521.0261f, -0.40000004f, -329.19336f), 1188); + index2++; + span202[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013936u, new Vector3(-638.056f, 6.5460815f, -486.50342f), 1188) { AetherCurrentId = 2818423u }; - span70[3] = new QuestStep(EInteractionType.Interact, 1046741u, new Vector3(335.22546f, 87.375534f, -612.54297f), 1188) + index2++; + span202[index2] = new QuestStep(EInteractionType.Interact, 1046741u, new Vector3(335.22546f, 87.375534f, -612.54297f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - questSequence24.Steps = list170; + questSequence21.Steps = list8; reference160 = questSequence; - ref QuestSequence reference161 = ref span67[9]; - QuestSequence obj124 = new QuestSequence + num++; + ref QuestSequence reference161 = ref span193[num]; + QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046735u, new Vector3(-96.60492f, 9.773315f, -533.40967f), 1188) + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span203 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046735u, new Vector3(-96.60492f, 9.773315f, -533.40967f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj124.Steps = list171; - reference161 = obj124; + obj126.Steps = list170; + reference161 = obj126; questRoot39.QuestSequence = list2; AddQuest(questId19, questRoot); QuestId questId20 = new QuestId(4869); questRoot = new QuestRoot(); QuestRoot questRoot40 = questRoot; num = 1; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - CollectionsMarshal.AsSpan(list172)[0] = "liza"; - questRoot40.Author = list172; + List list171 = new List(num); + CollectionsMarshal.SetCount(list171, num); + Span span204 = CollectionsMarshal.AsSpan(list171); + index = 0; + span204[index] = "liza"; + questRoot40.Author = list171; QuestRoot questRoot41 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span71 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference162 = ref span71[0]; - QuestSequence obj125 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span205 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference162 = ref span205[num]; + QuestSequence obj127 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046735u, new Vector3(-96.60492f, 9.773315f, -533.40967f), 1188); - obj125.Steps = list173; - reference162 = obj125; - ref QuestSequence reference163 = ref span71[1]; - QuestSequence obj126 = new QuestSequence + List list172 = new List(num2); + CollectionsMarshal.SetCount(list172, num2); + Span span206 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + span206[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046735u, new Vector3(-96.60492f, 9.773315f, -533.40967f), 1188); + obj127.Steps = list172; + reference162 = obj127; + num++; + ref QuestSequence reference163 = ref span205[num]; + QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1046738u, new Vector3(-155.6878f, 2.7463636f, -383.1388f), 1188); - obj126.Steps = list174; - reference163 = obj126; - ref QuestSequence reference164 = ref span71[2]; - QuestSequence obj127 = new QuestSequence + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span207 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span207[num2] = new QuestStep(EInteractionType.Interact, 1046738u, new Vector3(-155.6878f, 2.7463636f, -383.1388f), 1188); + obj128.Steps = list173; + reference163 = obj128; + num++; + ref QuestSequence reference164 = ref span205[num]; + QuestSequence obj129 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list175)[0]; - QuestStep obj128 = new QuestStep(EInteractionType.Combat, 2013630u, new Vector3(-63.21814f, 2.1820068f, -237.90344f), 1188) + List list174 = new List(num2); + CollectionsMarshal.SetCount(list174, num2); + Span span208 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + ref QuestStep reference165 = ref span208[index2]; + QuestStep obj130 = new QuestStep(EInteractionType.Combat, 2013630u, new Vector3(-63.21814f, 2.1820068f, -237.90344f), 1188) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = 17688u; - obj128.KillEnemyDataIds = list176; - reference165 = obj128; - obj127.Steps = list175; - reference164 = obj127; - ref QuestSequence reference166 = ref span71[3]; - QuestSequence obj129 = new QuestSequence + index3 = 1; + List list175 = new List(index3); + CollectionsMarshal.SetCount(list175, index3); + Span span209 = CollectionsMarshal.AsSpan(list175); + num3 = 0; + span209[num3] = 17688u; + obj130.KillEnemyDataIds = list175; + reference165 = obj130; + obj129.Steps = list174; + reference164 = obj129; + num++; + ref QuestSequence reference166 = ref span205[num]; + QuestSequence obj131 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - ref QuestStep reference167 = ref CollectionsMarshal.AsSpan(list177)[0]; - QuestStep obj130 = new QuestStep(EInteractionType.Combat, 2013631u, new Vector3(217.05945f, 1.083313f, -218.61603f), 1188) + index2 = 1; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + Span span210 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + ref QuestStep reference167 = ref span210[num2]; + QuestStep obj132 = new QuestStep(EInteractionType.Combat, 2013631u, new Vector3(217.05945f, 1.083313f, -218.61603f), 1188) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list178 = new List(num3); - CollectionsMarshal.SetCount(list178, num3); - CollectionsMarshal.AsSpan(list178)[0] = 17689u; - obj130.KillEnemyDataIds = list178; - reference167 = obj130; - obj129.Steps = list177; - reference166 = obj129; - ref QuestSequence reference168 = ref span71[4]; + List list177 = new List(num3); + CollectionsMarshal.SetCount(list177, num3); + Span span211 = CollectionsMarshal.AsSpan(list177); + index3 = 0; + span211[index3] = 17689u; + obj132.KillEnemyDataIds = list177; + reference167 = obj132; + obj131.Steps = list176; + reference166 = obj131; + num++; + ref QuestSequence reference168 = ref span205[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence25 = questSequence; + QuestSequence questSequence22 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span72 = CollectionsMarshal.AsSpan(list3); - span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.21774f, 7.475274f, -215.19496f), 1188) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span212 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span212[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.21774f, 7.475274f, -215.19496f), 1188) { DisableNavmesh = true, Mount = true }; - span72[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013938u, new Vector3(516.80774f, 17.959839f, -348.0431f), 1188) + index2++; + span212[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013938u, new Vector3(516.80774f, 17.959839f, -348.0431f), 1188) { AetherCurrentId = 2818425u }; - ref QuestStep reference169 = ref span72[2]; - QuestStep obj131 = new QuestStep(EInteractionType.Combat, 2013632u, new Vector3(656.7025f, 7.309021f, -289.44843f), 1188) + index2++; + ref QuestStep reference169 = ref span212[index2]; + QuestStep obj133 = new QuestStep(EInteractionType.Combat, 2013632u, new Vector3(656.7025f, 7.309021f, -289.44843f), 1188) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = 17690u; - obj131.KillEnemyDataIds = list179; - reference169 = obj131; - questSequence25.Steps = list3; + index3 = 1; + List list178 = new List(index3); + CollectionsMarshal.SetCount(list178, index3); + Span span213 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + span213[num3] = 17690u; + obj133.KillEnemyDataIds = list178; + reference169 = obj133; + questSequence22.Steps = list8; reference168 = questSequence; - ref QuestSequence reference170 = ref span71[5]; - QuestSequence obj132 = new QuestSequence + num++; + ref QuestSequence reference170 = ref span205[num]; + QuestSequence obj134 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - Span span73 = CollectionsMarshal.AsSpan(list180); - span73[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) + index2 = 3; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span214 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span214[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) { Aetheryte = EAetheryteLocation.KozamaukaDockPoga }; - span73[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013937u, new Vector3(918.15063f, 10.116699f, -404.10468f), 1188) + num2++; + span214[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013937u, new Vector3(918.15063f, 10.116699f, -404.10468f), 1188) { AetherCurrentId = 2818424u }; - span73[2] = new QuestStep(EInteractionType.Interact, 2013633u, new Vector3(659.4186f, 26.321777f, -515.343f), 1188); - obj132.Steps = list180; - reference170 = obj132; - ref QuestSequence reference171 = ref span71[6]; - QuestSequence obj133 = new QuestSequence + num2++; + span214[num2] = new QuestStep(EInteractionType.Interact, 2013633u, new Vector3(659.4186f, 26.321777f, -515.343f), 1188); + obj134.Steps = list179; + reference170 = obj134; + num++; + ref QuestSequence reference171 = ref span205[num]; + QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list181 = new List(num2); - CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046744u, new Vector3(-101.64038f, 9.773315f, -535.3323f), 1188) + List list180 = new List(num2); + CollectionsMarshal.SetCount(list180, num2); + Span span215 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span215[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046744u, new Vector3(-101.64038f, 9.773315f, -535.3323f), 1188) { StopDistance = 7f }; - obj133.Steps = list181; - reference171 = obj133; + obj135.Steps = list180; + reference171 = obj135; questRoot41.QuestSequence = list2; AddQuest(questId20, questRoot); QuestId questId21 = new QuestId(4870); questRoot = new QuestRoot(); QuestRoot questRoot42 = questRoot; num = 1; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - CollectionsMarshal.AsSpan(list182)[0] = "liza"; - questRoot42.Author = list182; + List list181 = new List(num); + CollectionsMarshal.SetCount(list181, num); + Span span216 = CollectionsMarshal.AsSpan(list181); + index = 0; + span216[index] = "liza"; + questRoot42.Author = list181; QuestRoot questRoot43 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span74 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference172 = ref span74[0]; - QuestSequence obj134 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span217 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference172 = ref span217[num]; + QuestSequence obj136 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046750u, new Vector3(-98.95477f, 9.773315f, -533.135f), 1188) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span218 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span218[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046750u, new Vector3(-98.95477f, 9.773315f, -533.135f), 1188) { StopDistance = 7f }; - obj134.Steps = list183; - reference172 = obj134; - ref QuestSequence reference173 = ref span74[1]; + obj136.Steps = list182; + reference172 = obj136; + num++; + ref QuestSequence reference173 = ref span217[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence26 = questSequence; + QuestSequence questSequence23 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span75 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference174 = ref span75[0]; - QuestStep obj135 = new QuestStep(EInteractionType.Say, 1046753u, new Vector3(-205.768f, 6.277146f, -439.3531f), 1188) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span219 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference174 = ref span219[index2]; + QuestStep obj137 = new QuestStep(EInteractionType.Say, 1046753u, new Vector3(-205.768f, 6.277146f, -439.3531f), 1188) { ChatMessage = new ChatMessage { @@ -336086,19 +408128,53 @@ public static class AssemblyQuestLoader } }; num3 = 6; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - Span span76 = CollectionsMarshal.AsSpan(list184); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj135.CompletionQuestVariablesFlags = list184; - reference174 = obj135; - ref QuestStep reference175 = ref span75[1]; - QuestStep obj136 = new QuestStep(EInteractionType.Say, 1046699u, new Vector3(-218.555f, 6.4016876f, -477.77527f), 1188) + List list183 = new List(num3); + CollectionsMarshal.SetCount(list183, num3); + Span span220 = CollectionsMarshal.AsSpan(list183); + index3 = 0; + span220[index3] = null; + index3++; + span220[index3] = null; + index3++; + span220[index3] = null; + index3++; + span220[index3] = null; + index3++; + span220[index3] = null; + index3++; + span220[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj137.CompletionQuestVariablesFlags = list183; + reference174 = obj137; + index2++; + ref QuestStep reference175 = ref span219[index2]; + QuestStep obj138 = new QuestStep(EInteractionType.Say, 1046699u, new Vector3(-218.555f, 6.4016876f, -477.77527f), 1188) + { + ChatMessage = new ChatMessage + { + Key = "TEXT_KINGMA111_04870_SAYTODO_000_046" + } + }; + index3 = 6; + List list184 = new List(index3); + CollectionsMarshal.SetCount(list184, index3); + Span span221 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span221[num3] = null; + num3++; + span221[num3] = null; + num3++; + span221[num3] = null; + num3++; + span221[num3] = null; + num3++; + span221[num3] = null; + num3++; + span221[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj138.CompletionQuestVariablesFlags = list184; + reference175 = obj138; + index2++; + ref QuestStep reference176 = ref span219[index2]; + QuestStep obj139 = new QuestStep(EInteractionType.Say, 1046752u, new Vector3(-218.18878f, 9.558153f, -545.0065f), 1188) { ChatMessage = new ChatMessage { @@ -336108,92 +408184,91 @@ public static class AssemblyQuestLoader num3 = 6; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - Span span77 = CollectionsMarshal.AsSpan(list185); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj136.CompletionQuestVariablesFlags = list185; - reference175 = obj136; - ref QuestStep reference176 = ref span75[2]; - QuestStep obj137 = new QuestStep(EInteractionType.Say, 1046752u, new Vector3(-218.18878f, 9.558153f, -545.0065f), 1188) - { - ChatMessage = new ChatMessage - { - Key = "TEXT_KINGMA111_04870_SAYTODO_000_046" - } - }; - num3 = 6; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - Span span78 = CollectionsMarshal.AsSpan(list186); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj137.CompletionQuestVariablesFlags = list186; - reference176 = obj137; - questSequence26.Steps = list3; + Span span222 = CollectionsMarshal.AsSpan(list185); + index3 = 0; + span222[index3] = null; + index3++; + span222[index3] = null; + index3++; + span222[index3] = null; + index3++; + span222[index3] = null; + index3++; + span222[index3] = null; + index3++; + span222[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj139.CompletionQuestVariablesFlags = list185; + reference176 = obj139; + questSequence23.Steps = list8; reference173 = questSequence; - ref QuestSequence reference177 = ref span74[2]; - QuestSequence obj138 = new QuestSequence + num++; + ref QuestSequence reference177 = ref span217[num]; + QuestSequence obj140 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1046750u, new Vector3(-98.95477f, 9.773315f, -533.135f), 1188); - obj138.Steps = list187; - reference177 = obj138; - ref QuestSequence reference178 = ref span74[3]; - QuestSequence obj139 = new QuestSequence + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span223 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span223[num2] = new QuestStep(EInteractionType.Interact, 1046750u, new Vector3(-98.95477f, 9.773315f, -533.135f), 1188); + obj140.Steps = list186; + reference177 = obj140; + num++; + ref QuestSequence reference178 = ref span217[num]; + QuestSequence obj141 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1046754u, new Vector3(64.774536f, 0.7218611f, -385.85492f), 1188); - obj139.Steps = list188; - reference178 = obj139; - ref QuestSequence reference179 = ref span74[4]; - QuestSequence obj140 = new QuestSequence + List list187 = new List(num2); + CollectionsMarshal.SetCount(list187, num2); + Span span224 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + span224[index2] = new QuestStep(EInteractionType.Interact, 1046754u, new Vector3(64.774536f, 0.7218611f, -385.85492f), 1188); + obj141.Steps = list187; + reference178 = obj141; + num++; + ref QuestSequence reference179 = ref span217[num]; + QuestSequence obj142 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1051615u, new Vector3(-46.76892f, 1.60855f, -390.2495f), 1188) + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + Span span225 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.Interact, 1051615u, new Vector3(-46.76892f, 1.60855f, -390.2495f), 1188) { StopDistance = 5f }; - obj140.Steps = list189; - reference179 = obj140; - ref QuestSequence reference180 = ref span74[5]; + obj142.Steps = list188; + reference179 = obj142; + num++; + ref QuestSequence reference180 = ref span217[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence27 = questSequence; + QuestSequence questSequence24 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span79 = CollectionsMarshal.AsSpan(list3); - span79[0] = new QuestStep(EInteractionType.AcceptQuest, 1048782u, new Vector3(-68.52832f, 6.536739f, -486.53394f), 1188) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span226 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span226[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048782u, new Vector3(-68.52832f, 6.536739f, -486.53394f), 1188) { PickUpQuestId = new QuestId(5064) }; - span79[1] = new QuestStep(EInteractionType.AcceptQuest, 1051237u, new Vector3(-251.20929f, 5.5572896f, -554.89435f), 1188) + index2++; + span226[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051237u, new Vector3(-251.20929f, 5.5572896f, -554.89435f), 1188) { PickUpQuestId = new QuestId(5081) }; - span79[2] = new QuestStep(EInteractionType.CompleteQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185) + index2++; + span226[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -336202,7 +408277,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - questSequence27.Steps = list3; + questSequence24.Steps = list8; reference180 = questSequence; questRoot43.QuestSequence = list2; AddQuest(questId21, questRoot); @@ -336210,35 +408285,43 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot44 = questRoot; num = 1; - List list190 = new List(num); - CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "liza"; - questRoot44.Author = list190; + List list189 = new List(num); + CollectionsMarshal.SetCount(list189, num); + Span span227 = CollectionsMarshal.AsSpan(list189); + index = 0; + span227[index] = "liza"; + questRoot44.Author = list189; QuestRoot questRoot45 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span80 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference181 = ref span80[0]; - QuestSequence obj141 = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span228 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference181 = ref span228[num]; + QuestSequence obj143 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047743u, new Vector3(-32.24237f, -10.00001f, 145.5863f), 1185); - obj141.Steps = list191; - reference181 = obj141; - ref QuestSequence reference182 = ref span80[1]; - QuestSequence obj142 = new QuestSequence + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span229 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span229[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047743u, new Vector3(-32.24237f, -10.00001f, 145.5863f), 1185); + obj143.Steps = list190; + reference181 = obj143; + num++; + ref QuestSequence reference182 = ref span228[num]; + QuestSequence obj144 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1046542u, new Vector3(-277.54633f, 1.6659498E-05f, 90.50122f), 1185) + List list191 = new List(num2); + CollectionsMarshal.SetCount(list191, num2); + Span span230 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span230[index2] = new QuestStep(EInteractionType.Interact, 1046542u, new Vector3(-277.54633f, 1.6659498E-05f, 90.50122f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -336246,351 +408329,452 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - obj142.Steps = list192; - reference182 = obj142; - span80[2] = new QuestSequence + obj144.Steps = list191; + reference182 = obj144; + num++; + span228[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference183 = ref span80[3]; - QuestSequence obj143 = new QuestSequence + num++; + ref QuestSequence reference183 = ref span228[num]; + QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046548u, new Vector3(400.2898f, -155.52307f, -383.19983f), 1187); - obj143.Steps = list193; - reference183 = obj143; + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span231 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span231[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046548u, new Vector3(400.2898f, -155.52307f, -383.19983f), 1187); + obj145.Steps = list192; + reference183 = obj145; questRoot45.QuestSequence = list2; AddQuest(questId22, questRoot); QuestId questId23 = new QuestId(4872); questRoot = new QuestRoot(); QuestRoot questRoot46 = questRoot; num = 1; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "liza"; - questRoot46.Author = list194; + List list193 = new List(num); + CollectionsMarshal.SetCount(list193, num); + Span span232 = CollectionsMarshal.AsSpan(list193); + index = 0; + span232[index] = "liza"; + questRoot46.Author = list193; QuestRoot questRoot47 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span81 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference184 = ref span81[0]; - QuestSequence obj144 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span233 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference184 = ref span233[num]; + QuestSequence obj146 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046552u, new Vector3(374.5022f, -156.32852f, -389.2119f), 1187) + List list194 = new List(num2); + CollectionsMarshal.SetCount(list194, num2); + Span span234 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span234[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046552u, new Vector3(374.5022f, -156.32852f, -389.2119f), 1187) { StopDistance = 7f }; - obj144.Steps = list195; - reference184 = obj144; - ref QuestSequence reference185 = ref span81[1]; + obj146.Steps = list194; + reference184 = obj146; + num++; + ref QuestSequence reference185 = ref span233[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence28 = questSequence; - num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span82 = CollectionsMarshal.AsSpan(list3); - span82[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1187) + QuestSequence questSequence25 = questSequence; + index2 = 4; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span235 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span235[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1187) { Aetheryte = EAetheryteLocation.UrqopachaWachunpelo }; - ref QuestStep reference186 = ref span82[1]; - QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1046557u, new Vector3(353.07837f, -160.20226f, -447.5014f), 1187); + num2++; + ref QuestStep reference186 = ref span235[num2]; + QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1046557u, new Vector3(353.07837f, -160.20226f, -447.5014f), 1187); + index3 = 6; + List list195 = new List(index3); + CollectionsMarshal.SetCount(list195, index3); + Span span236 = CollectionsMarshal.AsSpan(list195); + num3 = 0; + span236[num3] = null; + num3++; + span236[num3] = null; + num3++; + span236[num3] = null; + num3++; + span236[num3] = null; + num3++; + span236[num3] = null; + num3++; + span236[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep19.CompletionQuestVariablesFlags = list195; + reference186 = questStep19; + num2++; + ref QuestStep reference187 = ref span235[num2]; + QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1046559u, new Vector3(285.96924f, -165.65608f, -443.44244f), 1187); num3 = 6; List list196 = new List(num3); CollectionsMarshal.SetCount(list196, num3); - Span span83 = CollectionsMarshal.AsSpan(list196); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep17.CompletionQuestVariablesFlags = list196; - reference186 = questStep17; - ref QuestStep reference187 = ref span82[2]; - QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1046559u, new Vector3(285.96924f, -165.65608f, -443.44244f), 1187); - num3 = 6; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - Span span84 = CollectionsMarshal.AsSpan(list197); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep18.CompletionQuestVariablesFlags = list197; - num3 = 1; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = new DialogueChoice + Span span237 = CollectionsMarshal.AsSpan(list196); + index3 = 0; + span237[index3] = null; + index3++; + span237[index3] = null; + index3++; + span237[index3] = null; + index3++; + span237[index3] = null; + index3++; + span237[index3] = null; + index3++; + span237[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep20.CompletionQuestVariablesFlags = list196; + index3 = 1; + List list197 = new List(index3); + CollectionsMarshal.SetCount(list197, index3); + Span span238 = CollectionsMarshal.AsSpan(list197); + num3 = 0; + span238[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMA113_04872_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGMA113_04872_A1_000_001") }; - questStep18.DialogueChoices = list198; - reference187 = questStep18; - ref QuestStep reference188 = ref span82[3]; - QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1046558u, new Vector3(229.20569f, -168.26689f, -461.63123f), 1187); + questStep20.DialogueChoices = list197; + reference187 = questStep20; + num2++; + ref QuestStep reference188 = ref span235[num2]; + QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1046558u, new Vector3(229.20569f, -168.26689f, -461.63123f), 1187); num3 = 6; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - Span span85 = CollectionsMarshal.AsSpan(list199); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep19.CompletionQuestVariablesFlags = list199; - reference188 = questStep19; - questSequence28.Steps = list3; + List list198 = new List(num3); + CollectionsMarshal.SetCount(list198, num3); + Span span239 = CollectionsMarshal.AsSpan(list198); + index3 = 0; + span239[index3] = null; + index3++; + span239[index3] = null; + index3++; + span239[index3] = null; + index3++; + span239[index3] = null; + index3++; + span239[index3] = null; + index3++; + span239[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep21.CompletionQuestVariablesFlags = list198; + reference188 = questStep21; + questSequence25.Steps = list8; reference185 = questSequence; - ref QuestSequence reference189 = ref span81[2]; - QuestSequence obj145 = new QuestSequence + num++; + ref QuestSequence reference189 = ref span233[num]; + QuestSequence obj147 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1046560u, new Vector3(373.8308f, -156.3404f, -388.87616f), 1187); - obj145.Steps = list200; - reference189 = obj145; - ref QuestSequence reference190 = ref span81[3]; - QuestSequence obj146 = new QuestSequence + List list199 = new List(num2); + CollectionsMarshal.SetCount(list199, num2); + Span span240 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span240[index2] = new QuestStep(EInteractionType.Interact, 1046560u, new Vector3(373.8308f, -156.3404f, -388.87616f), 1187); + obj147.Steps = list199; + reference189 = obj147; + num++; + ref QuestSequence reference190 = ref span233[num]; + QuestSequence obj148 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1046566u, new Vector3(225.63513f, -168.17073f, -460.37994f), 1187); - obj146.Steps = list201; - reference190 = obj146; - ref QuestSequence reference191 = ref span81[4]; + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span241 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span241[num2] = new QuestStep(EInteractionType.Interact, 1046566u, new Vector3(225.63513f, -168.17073f, -460.37994f), 1187); + obj148.Steps = list200; + reference190 = obj148; + num++; + ref QuestSequence reference191 = ref span233[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence29 = questSequence; + QuestSequence questSequence26 = questSequence; num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span86 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference192 = ref span86[0]; - QuestStep obj147 = new QuestStep(EInteractionType.Interact, 1046561u, new Vector3(221.85083f, -168.23709f, -461.11237f), 1187) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span242 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference192 = ref span242[index2]; + QuestStep obj149 = new QuestStep(EInteractionType.Interact, 1046561u, new Vector3(221.85083f, -168.23709f, -461.11237f), 1187) { StopDistance = 7f }; + index3 = 6; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + Span span243 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span243[num3] = null; + num3++; + span243[num3] = null; + num3++; + span243[num3] = null; + num3++; + span243[num3] = null; + num3++; + span243[num3] = null; + num3++; + span243[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj149.CompletionQuestVariablesFlags = list201; + reference192 = obj149; + index2++; + ref QuestStep reference193 = ref span242[index2]; + QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1046562u, new Vector3(205.82886f, -168.37514f, -466.42255f), 1187); num3 = 6; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - Span span87 = CollectionsMarshal.AsSpan(list202); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj147.CompletionQuestVariablesFlags = list202; - reference192 = obj147; - ref QuestStep reference193 = ref span86[1]; - QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1046562u, new Vector3(205.82886f, -168.37514f, -466.42255f), 1187); - num3 = 6; - List list203 = new List(num3); - CollectionsMarshal.SetCount(list203, num3); - Span span88 = CollectionsMarshal.AsSpan(list203); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep20.CompletionQuestVariablesFlags = list203; - reference193 = questStep20; - ref QuestStep reference194 = ref span86[2]; - QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1046564u, new Vector3(227.37463f, -168.41432f, -486.19824f), 1187); + Span span244 = CollectionsMarshal.AsSpan(list202); + index3 = 0; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep22.CompletionQuestVariablesFlags = list202; + reference193 = questStep22; + index2++; + ref QuestStep reference194 = ref span242[index2]; + QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1046564u, new Vector3(227.37463f, -168.41432f, -486.19824f), 1187); + index3 = 6; + List list203 = new List(index3); + CollectionsMarshal.SetCount(list203, index3); + Span span245 = CollectionsMarshal.AsSpan(list203); + num3 = 0; + span245[num3] = null; + num3++; + span245[num3] = null; + num3++; + span245[num3] = null; + num3++; + span245[num3] = null; + num3++; + span245[num3] = null; + num3++; + span245[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep23.CompletionQuestVariablesFlags = list203; + reference194 = questStep23; + index2++; + ref QuestStep reference195 = ref span242[index2]; + QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1046563u, new Vector3(230.6095f, -168.27045f, -474.87604f), 1187); num3 = 6; List list204 = new List(num3); CollectionsMarshal.SetCount(list204, num3); - Span span89 = CollectionsMarshal.AsSpan(list204); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep21.CompletionQuestVariablesFlags = list204; - reference194 = questStep21; - ref QuestStep reference195 = ref span86[3]; - QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1046563u, new Vector3(230.6095f, -168.27045f, -474.87604f), 1187); - num3 = 6; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - Span span90 = CollectionsMarshal.AsSpan(list205); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep22.CompletionQuestVariablesFlags = list205; - reference195 = questStep22; - questSequence29.Steps = list3; + Span span246 = CollectionsMarshal.AsSpan(list204); + index3 = 0; + span246[index3] = null; + index3++; + span246[index3] = null; + index3++; + span246[index3] = null; + index3++; + span246[index3] = null; + index3++; + span246[index3] = null; + index3++; + span246[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep24.CompletionQuestVariablesFlags = list204; + reference195 = questStep24; + questSequence26.Steps = list8; reference191 = questSequence; - ref QuestSequence reference196 = ref span81[5]; - QuestSequence obj148 = new QuestSequence + num++; + ref QuestSequence reference196 = ref span233[num]; + QuestSequence obj150 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - ref QuestStep reference197 = ref CollectionsMarshal.AsSpan(list206)[0]; - QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 2013644u, new Vector3(225.63513f, -168.16968f, -460.37994f), 1187); - num3 = 1; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - CollectionsMarshal.AsSpan(list207)[0] = new DialogueChoice + index2 = 1; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + Span span247 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + ref QuestStep reference197 = ref span247[num2]; + QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 2013644u, new Vector3(225.63513f, -168.16968f, -460.37994f), 1187); + index3 = 1; + List list206 = new List(index3); + CollectionsMarshal.SetCount(list206, index3); + Span span248 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span248[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMA113_04872_Q2_000_000"), Answer = new ExcelRef("TEXT_KINGMA113_04872_A2_000_001") }; - questStep23.DialogueChoices = list207; - reference197 = questStep23; - obj148.Steps = list206; - reference196 = obj148; - ref QuestSequence reference198 = ref span81[6]; - QuestSequence obj149 = new QuestSequence + questStep25.DialogueChoices = list206; + reference197 = questStep25; + obj150.Steps = list205; + reference196 = obj150; + num++; + ref QuestSequence reference198 = ref span233[num]; + QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046992u, new Vector3(209.43005f, -168.34697f, -465.38495f), 1187); - obj149.Steps = list208; - reference198 = obj149; + List list207 = new List(num2); + CollectionsMarshal.SetCount(list207, num2); + Span span249 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046992u, new Vector3(209.43005f, -168.34697f, -465.38495f), 1187); + obj151.Steps = list207; + reference198 = obj151; questRoot47.QuestSequence = list2; AddQuest(questId23, questRoot); QuestId questId24 = new QuestId(4873); questRoot = new QuestRoot(); QuestRoot questRoot48 = questRoot; num = 1; - List list209 = new List(num); - CollectionsMarshal.SetCount(list209, num); - CollectionsMarshal.AsSpan(list209)[0] = "liza"; - questRoot48.Author = list209; + List list208 = new List(num); + CollectionsMarshal.SetCount(list208, num); + Span span250 = CollectionsMarshal.AsSpan(list208); + index = 0; + span250[index] = "liza"; + questRoot48.Author = list208; QuestRoot questRoot49 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span91 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference199 = ref span91[0]; - QuestSequence obj150 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span251 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference199 = ref span251[num]; + QuestSequence obj152 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046570u, new Vector3(210.65076f, -168.37555f, -468.95557f), 1187); - obj150.Steps = list210; - reference199 = obj150; - ref QuestSequence reference200 = ref span91[1]; - QuestSequence obj151 = new QuestSequence + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + Span span252 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046570u, new Vector3(210.65076f, -168.37555f, -468.95557f), 1187); + obj152.Steps = list209; + reference199 = obj152; + num++; + ref QuestSequence reference200 = ref span251[num]; + QuestSequence obj153 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1046574u, new Vector3(313.1609f, -156.11737f, -396.07843f), 1187); - obj151.Steps = list211; - reference200 = obj151; - ref QuestSequence reference201 = ref span91[2]; - QuestSequence obj152 = new QuestSequence + List list210 = new List(num2); + CollectionsMarshal.SetCount(list210, num2); + Span span253 = CollectionsMarshal.AsSpan(list210); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.Interact, 1046574u, new Vector3(313.1609f, -156.11737f, -396.07843f), 1187); + obj153.Steps = list210; + reference200 = obj153; + num++; + ref QuestSequence reference201 = ref span251[num]; + QuestSequence obj154 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1046577u, new Vector3(495.32312f, -136.24503f, -383.56604f), 1187); - obj152.Steps = list212; - reference201 = obj152; - ref QuestSequence reference202 = ref span91[3]; - QuestSequence obj153 = new QuestSequence + index2 = 1; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + Span span254 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.Interact, 1046577u, new Vector3(495.32312f, -136.24503f, -383.56604f), 1187); + obj154.Steps = list211; + reference201 = obj154; + num++; + ref QuestSequence reference202 = ref span251[num]; + QuestSequence obj155 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - Span span92 = CollectionsMarshal.AsSpan(list213); - span92[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013924u, new Vector3(353.56665f, -107.71344f, -238.81903f), 1187) + List list212 = new List(num2); + CollectionsMarshal.SetCount(list212, num2); + Span span255 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span255[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013924u, new Vector3(353.56665f, -107.71344f, -238.81903f), 1187) { AetherCurrentId = 2818404u }; - span92[1] = new QuestStep(EInteractionType.Interact, 1046580u, new Vector3(403.5553f, -116.815155f, -170.24493f), 1187); - obj153.Steps = list213; - reference202 = obj153; - ref QuestSequence reference203 = ref span91[4]; + index2++; + span255[index2] = new QuestStep(EInteractionType.Interact, 1046580u, new Vector3(403.5553f, -116.815155f, -170.24493f), 1187); + obj155.Steps = list212; + reference202 = obj155; + num++; + ref QuestSequence reference203 = ref span251[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence30 = questSequence; - num2 = 1; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - ref QuestStep reference204 = ref CollectionsMarshal.AsSpan(list3)[0]; - QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1048192u, new Vector3(402.48718f, -116.815155f, -171.58777f), 1187); + QuestSequence questSequence27 = questSequence; + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span256 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + ref QuestStep reference204 = ref span256[num2]; + QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1048192u, new Vector3(402.48718f, -116.815155f, -171.58777f), 1187); num3 = 1; List list214 = new List(num3); CollectionsMarshal.SetCount(list214, num3); - CollectionsMarshal.AsSpan(list214)[0] = new DialogueChoice + Span span257 = CollectionsMarshal.AsSpan(list214); + index3 = 0; + span257[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMA114_04873_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGMA114_04873_A1_000_001") }; - questStep24.DialogueChoices = list214; - num3 = 1; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - CollectionsMarshal.AsSpan(list215)[0] = 3u; - questStep24.PointMenuChoices = list215; - reference204 = questStep24; - questSequence30.Steps = list3; + questStep26.DialogueChoices = list214; + index3 = 1; + List list215 = new List(index3); + CollectionsMarshal.SetCount(list215, index3); + Span span258 = CollectionsMarshal.AsSpan(list215); + num3 = 0; + span258[num3] = 3u; + questStep26.PointMenuChoices = list215; + reference204 = questStep26; + questSequence27.Steps = list213; reference203 = questSequence; - ref QuestSequence reference205 = ref span91[5]; - QuestSequence obj154 = new QuestSequence + num++; + ref QuestSequence reference205 = ref span251[num]; + QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046994u, new Vector3(398.8861f, -116.81501f, -219.89783f), 1187); - obj154.Steps = list216; - reference205 = obj154; + Span span259 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span259[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046994u, new Vector3(398.8861f, -116.81501f, -219.89783f), 1187); + obj156.Steps = list216; + reference205 = obj156; questRoot49.QuestSequence = list2; AddQuest(questId24, questRoot); QuestId questId25 = new QuestId(4874); @@ -336599,160 +408783,213 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "liza"; + Span span260 = CollectionsMarshal.AsSpan(list217); + index = 0; + span260[index] = "liza"; questRoot50.Author = list217; QuestRoot questRoot51 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span93 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference206 = ref span93[0]; - QuestSequence obj155 = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span261 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference206 = ref span261[num]; + QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046993u, new Vector3(400.07617f, -116.81039f, -220.93542f), 1187); - obj155.Steps = list218; - reference206 = obj155; - ref QuestSequence reference207 = ref span93[1]; - QuestSequence obj156 = new QuestSequence + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span262 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046993u, new Vector3(400.07617f, -116.81039f, -220.93542f), 1187); + obj157.Steps = list218; + reference206 = obj157; + num++; + ref QuestSequence reference207 = ref span261[num]; + QuestSequence obj158 = new QuestSequence { Sequence = 1 }; num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - ref QuestStep reference208 = ref CollectionsMarshal.AsSpan(list219)[0]; - QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1046994u, new Vector3(398.8861f, -116.81501f, -219.89783f), 1187); + Span span263 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + ref QuestStep reference208 = ref span263[index2]; + QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1046994u, new Vector3(398.8861f, -116.81501f, -219.89783f), 1187); num3 = 1; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - CollectionsMarshal.AsSpan(list220)[0] = new DialogueChoice + Span span264 = CollectionsMarshal.AsSpan(list220); + index3 = 0; + span264[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMA115_04874_Q10_000_000") }; - questStep25.DialogueChoices = list220; - reference208 = questStep25; - obj156.Steps = list219; - reference207 = obj156; - ref QuestSequence reference209 = ref span93[2]; - QuestSequence obj157 = new QuestSequence + questStep27.DialogueChoices = list220; + reference208 = questStep27; + obj158.Steps = list219; + reference207 = obj158; + num++; + ref QuestSequence reference209 = ref span261[num]; + QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1046589u, new Vector3(-417.16644f, -45.851826f, -461.84485f), 1187); - obj157.Steps = list221; - reference209 = obj157; - ref QuestSequence reference210 = ref span93[3]; + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span265 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span265[num2] = new QuestStep(EInteractionType.Interact, 1046589u, new Vector3(-417.16644f, -45.851826f, -461.84485f), 1187); + obj159.Steps = list221; + reference209 = obj159; + num++; + ref QuestSequence reference210 = ref span261[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence31 = questSequence; + QuestSequence questSequence28 = questSequence; num2 = 5; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span94 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference211 = ref span94[0]; - QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 2013591u, new Vector3(-354.45184f, -39.993958f, -541.8937f), 1187); - num3 = 6; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - Span span95 = CollectionsMarshal.AsSpan(list222); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); - questStep26.CompletionQuestVariablesFlags = list222; - reference211 = questStep26; - ref QuestStep reference212 = ref span94[1]; - QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 2013590u, new Vector3(-353.5058f, -34.836426f, -572.015f), 1187); + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span266 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference211 = ref span266[index2]; + QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 2013591u, new Vector3(-354.45184f, -39.993958f, -541.8937f), 1187); + index3 = 6; + List list222 = new List(index3); + CollectionsMarshal.SetCount(list222, index3); + Span span267 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span267[num3] = null; + num3++; + span267[num3] = null; + num3++; + span267[num3] = null; + num3++; + span267[num3] = null; + num3++; + span267[num3] = null; + num3++; + span267[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + questStep28.CompletionQuestVariablesFlags = list222; + reference211 = questStep28; + index2++; + ref QuestStep reference212 = ref span266[index2]; + QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 2013590u, new Vector3(-353.5058f, -34.836426f, -572.015f), 1187); num3 = 6; List list223 = new List(num3); CollectionsMarshal.SetCount(list223, num3); - Span span96 = CollectionsMarshal.AsSpan(list223); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep27.CompletionQuestVariablesFlags = list223; - reference212 = questStep27; - ref QuestStep reference213 = ref span94[2]; - QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 2013589u, new Vector3(-374.8684f, -34.77533f, -584.71045f), 1187); - num3 = 6; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - Span span97 = CollectionsMarshal.AsSpan(list224); - span97[0] = null; - span97[1] = null; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep28.CompletionQuestVariablesFlags = list224; - reference213 = questStep28; - ref QuestStep reference214 = ref span94[3]; - QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 2013587u, new Vector3(-387.16718f, -38.19336f, -571.0079f), 1187); + Span span268 = CollectionsMarshal.AsSpan(list223); + index3 = 0; + span268[index3] = null; + index3++; + span268[index3] = null; + index3++; + span268[index3] = null; + index3++; + span268[index3] = null; + index3++; + span268[index3] = null; + index3++; + span268[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep29.CompletionQuestVariablesFlags = list223; + reference212 = questStep29; + index2++; + ref QuestStep reference213 = ref span266[index2]; + QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 2013589u, new Vector3(-374.8684f, -34.77533f, -584.71045f), 1187); + index3 = 6; + List list224 = new List(index3); + CollectionsMarshal.SetCount(list224, index3); + Span span269 = CollectionsMarshal.AsSpan(list224); + num3 = 0; + span269[num3] = null; + num3++; + span269[num3] = null; + num3++; + span269[num3] = null; + num3++; + span269[num3] = null; + num3++; + span269[num3] = null; + num3++; + span269[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep30.CompletionQuestVariablesFlags = list224; + reference213 = questStep30; + index2++; + ref QuestStep reference214 = ref span266[index2]; + QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 2013587u, new Vector3(-387.16718f, -38.19336f, -571.0079f), 1187); num3 = 6; List list225 = new List(num3); CollectionsMarshal.SetCount(list225, num3); - Span span98 = CollectionsMarshal.AsSpan(list225); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep29.CompletionQuestVariablesFlags = list225; - reference214 = questStep29; - ref QuestStep reference215 = ref span94[4]; - QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 2013588u, new Vector3(-400.04578f, -35.355164f, -587.18243f), 1187); - num3 = 6; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - Span span99 = CollectionsMarshal.AsSpan(list226); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep30.CompletionQuestVariablesFlags = list226; - reference215 = questStep30; - questSequence31.Steps = list3; + Span span270 = CollectionsMarshal.AsSpan(list225); + index3 = 0; + span270[index3] = null; + index3++; + span270[index3] = null; + index3++; + span270[index3] = null; + index3++; + span270[index3] = null; + index3++; + span270[index3] = null; + index3++; + span270[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep31.CompletionQuestVariablesFlags = list225; + reference214 = questStep31; + index2++; + ref QuestStep reference215 = ref span266[index2]; + QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 2013588u, new Vector3(-400.04578f, -35.355164f, -587.18243f), 1187); + index3 = 6; + List list226 = new List(index3); + CollectionsMarshal.SetCount(list226, index3); + Span span271 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + span271[num3] = null; + num3++; + span271[num3] = null; + num3++; + span271[num3] = null; + num3++; + span271[num3] = null; + num3++; + span271[num3] = null; + num3++; + span271[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep32.CompletionQuestVariablesFlags = list226; + reference215 = questStep32; + questSequence28.Steps = list8; reference210 = questSequence; - ref QuestSequence reference216 = ref span93[4]; + num++; + ref QuestSequence reference216 = ref span261[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence32 = questSequence; - num2 = 3; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - Span span100 = CollectionsMarshal.AsSpan(list227); - span100[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013925u, new Vector3(-458.30475f, -29.678833f, -493.9193f), 1187) + QuestSequence questSequence29 = questSequence; + index2 = 3; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + Span span272 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span272[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013925u, new Vector3(-458.30475f, -29.678833f, -493.9193f), 1187) { AetherCurrentId = 2818405u }; - span100[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-432.73465f, -42.923626f, -484.1638f), 1187) + num2++; + span272[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-432.73465f, -42.923626f, -484.1638f), 1187) { DisableNavmesh = true, Mount = true }; - span100[2] = new QuestStep(EInteractionType.CompleteQuest, 1046585u, new Vector3(-420.95068f, -45.625298f, -461.50916f), 1187); - questSequence32.Steps = list227; + num2++; + span272[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046585u, new Vector3(-420.95068f, -45.625298f, -461.50916f), 1187); + questSequence29.Steps = list227; reference216 = questSequence; questRoot51.QuestSequence = list2; AddQuest(questId25, questRoot); @@ -336762,241 +408999,314 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - CollectionsMarshal.AsSpan(list228)[0] = "liza"; + Span span273 = CollectionsMarshal.AsSpan(list228); + index = 0; + span273[index] = "liza"; questRoot52.Author = list228; QuestRoot questRoot53 = questRoot; - num = 9; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span101 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference217 = ref span101[0]; - QuestSequence obj158 = new QuestSequence + index = 9; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span274 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference217 = ref span274[num]; + QuestSequence obj160 = new QuestSequence { Sequence = 0 }; num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047746u, new Vector3(-402.97552f, -46.22406f, -467.55176f), 1187) + Span span275 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span275[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047746u, new Vector3(-402.97552f, -46.22406f, -467.55176f), 1187) { StopDistance = 5f }; - obj158.Steps = list229; - reference217 = obj158; - ref QuestSequence reference218 = ref span101[1]; - QuestSequence obj159 = new QuestSequence + obj160.Steps = list229; + reference217 = obj160; + num++; + ref QuestSequence reference218 = ref span274[num]; + QuestSequence obj161 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - Span span102 = CollectionsMarshal.AsSpan(list230); - span102[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013926u, new Vector3(-202.80768f, -72.129456f, -199.02344f), 1187) + index2 = 2; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span276 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span276[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013926u, new Vector3(-202.80768f, -72.129456f, -199.02344f), 1187) { AetherCurrentId = 2818408u }; - span102[1] = new QuestStep(EInteractionType.Interact, 1046591u, new Vector3(340.59656f, -160.10922f, -430.19763f), 1187) + num2++; + span276[num2] = new QuestStep(EInteractionType.Interact, 1046591u, new Vector3(340.59656f, -160.10922f, -430.19763f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; - obj159.Steps = list230; - reference218 = obj159; - ref QuestSequence reference219 = ref span101[2]; + obj161.Steps = list230; + reference218 = obj161; + num++; + ref QuestSequence reference219 = ref span274[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence33 = questSequence; + QuestSequence questSequence30 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span103 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference220 = ref span103[0]; - QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1046593u, new Vector3(345.60156f, -160.20251f, -438.4375f), 1187); + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span277 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference220 = ref span277[index2]; + QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1046593u, new Vector3(345.60156f, -160.20251f, -438.4375f), 1187); num3 = 6; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - Span span104 = CollectionsMarshal.AsSpan(list231); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep31.CompletionQuestVariablesFlags = list231; - reference220 = questStep31; - ref QuestStep reference221 = ref span103[1]; - QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 1046594u, new Vector3(333.30273f, -160.24759f, -436.08765f), 1187); - num3 = 6; - List list232 = new List(num3); - CollectionsMarshal.SetCount(list232, num3); - Span span105 = CollectionsMarshal.AsSpan(list232); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep32.CompletionQuestVariablesFlags = list232; - reference221 = questStep32; - ref QuestStep reference222 = ref span103[2]; - QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1046595u, new Vector3(343.00745f, -160.2025f, -461.9364f), 1187); + Span span278 = CollectionsMarshal.AsSpan(list231); + index3 = 0; + span278[index3] = null; + index3++; + span278[index3] = null; + index3++; + span278[index3] = null; + index3++; + span278[index3] = null; + index3++; + span278[index3] = null; + index3++; + span278[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep33.CompletionQuestVariablesFlags = list231; + reference220 = questStep33; + index2++; + ref QuestStep reference221 = ref span277[index2]; + QuestStep questStep34 = new QuestStep(EInteractionType.Interact, 1046594u, new Vector3(333.30273f, -160.24759f, -436.08765f), 1187); + index3 = 6; + List list232 = new List(index3); + CollectionsMarshal.SetCount(list232, index3); + Span span279 = CollectionsMarshal.AsSpan(list232); + num3 = 0; + span279[num3] = null; + num3++; + span279[num3] = null; + num3++; + span279[num3] = null; + num3++; + span279[num3] = null; + num3++; + span279[num3] = null; + num3++; + span279[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep34.CompletionQuestVariablesFlags = list232; + reference221 = questStep34; + index2++; + ref QuestStep reference222 = ref span277[index2]; + QuestStep questStep35 = new QuestStep(EInteractionType.Interact, 1046595u, new Vector3(343.00745f, -160.2025f, -461.9364f), 1187); num3 = 6; List list233 = new List(num3); CollectionsMarshal.SetCount(list233, num3); - Span span106 = CollectionsMarshal.AsSpan(list233); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep33.CompletionQuestVariablesFlags = list233; - reference222 = questStep33; - questSequence33.Steps = list3; + Span span280 = CollectionsMarshal.AsSpan(list233); + index3 = 0; + span280[index3] = null; + index3++; + span280[index3] = null; + index3++; + span280[index3] = null; + index3++; + span280[index3] = null; + index3++; + span280[index3] = null; + index3++; + span280[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep35.CompletionQuestVariablesFlags = list233; + reference222 = questStep35; + questSequence30.Steps = list8; reference219 = questSequence; - ref QuestSequence reference223 = ref span101[3]; - QuestSequence obj160 = new QuestSequence + num++; + ref QuestSequence reference223 = ref span274[num]; + QuestSequence obj162 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1046596u, new Vector3(289.41772f, -169.2173f, -456.59576f), 1187); - obj160.Steps = list234; - reference223 = obj160; - ref QuestSequence reference224 = ref span101[4]; - QuestSequence obj161 = new QuestSequence + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + Span span281 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span281[num2] = new QuestStep(EInteractionType.Interact, 1046596u, new Vector3(289.41772f, -169.2173f, -456.59576f), 1187); + obj162.Steps = list234; + reference223 = obj162; + num++; + ref QuestSequence reference224 = ref span274[num]; + QuestSequence obj163 = new QuestSequence { Sequence = 4 }; num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1046592u, new Vector3(348.8059f, -145.95174f, -473.65533f), 1187); - obj161.Steps = list235; - reference224 = obj161; - ref QuestSequence reference225 = ref span101[5]; - QuestSequence obj162 = new QuestSequence + Span span282 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span282[index2] = new QuestStep(EInteractionType.Interact, 1046592u, new Vector3(348.8059f, -145.95174f, -473.65533f), 1187); + obj163.Steps = list235; + reference224 = obj163; + num++; + ref QuestSequence reference225 = ref span274[num]; + QuestSequence obj164 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1046600u, new Vector3(268.39087f, -173.48611f, -611.5053f), 1187); - obj162.Steps = list236; - reference225 = obj162; - ref QuestSequence reference226 = ref span101[6]; + index2 = 1; + List list236 = new List(index2); + CollectionsMarshal.SetCount(list236, index2); + Span span283 = CollectionsMarshal.AsSpan(list236); + num2 = 0; + span283[num2] = new QuestStep(EInteractionType.Interact, 1046600u, new Vector3(268.39087f, -173.48611f, -611.5053f), 1187); + obj164.Steps = list236; + reference225 = obj164; + num++; + ref QuestSequence reference226 = ref span274[num]; questSequence = new QuestSequence { Sequence = 6 }; - QuestSequence questSequence34 = questSequence; + QuestSequence questSequence31 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span107 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference227 = ref span107[0]; - QuestStep obj163 = new QuestStep(EInteractionType.Combat, 2013595u, new Vector3(309.49866f, -173.11359f, -667.3228f), 1187) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span284 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + ref QuestStep reference227 = ref span284[index2]; + QuestStep obj165 = new QuestStep(EInteractionType.Combat, 2013595u, new Vector3(309.49866f, -173.11359f, -667.3228f), 1187) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - CollectionsMarshal.AsSpan(list237)[0] = 17691u; - obj163.KillEnemyDataIds = list237; + index3 = 1; + List list237 = new List(index3); + CollectionsMarshal.SetCount(list237, index3); + Span span285 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span285[num3] = 17691u; + obj165.KillEnemyDataIds = list237; num3 = 6; List list238 = new List(num3); CollectionsMarshal.SetCount(list238, num3); - Span span108 = CollectionsMarshal.AsSpan(list238); - span108[0] = null; - span108[1] = null; - span108[2] = null; - span108[3] = null; - span108[4] = null; - span108[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj163.CompletionQuestVariablesFlags = list238; - reference227 = obj163; - ref QuestStep reference228 = ref span107[1]; - QuestStep obj164 = new QuestStep(EInteractionType.Combat, 2013596u, new Vector3(282.6123f, -173.11359f, -715.1751f), 1187) + Span span286 = CollectionsMarshal.AsSpan(list238); + index3 = 0; + span286[index3] = null; + index3++; + span286[index3] = null; + index3++; + span286[index3] = null; + index3++; + span286[index3] = null; + index3++; + span286[index3] = null; + index3++; + span286[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj165.CompletionQuestVariablesFlags = list238; + reference227 = obj165; + index2++; + ref QuestStep reference228 = ref span284[index2]; + QuestStep obj166 = new QuestStep(EInteractionType.Combat, 2013596u, new Vector3(282.6123f, -173.11359f, -715.1751f), 1187) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - CollectionsMarshal.AsSpan(list239)[0] = 17691u; - obj164.KillEnemyDataIds = list239; + index3 = 1; + List list239 = new List(index3); + CollectionsMarshal.SetCount(list239, index3); + Span span287 = CollectionsMarshal.AsSpan(list239); + num3 = 0; + span287[num3] = 17691u; + obj166.KillEnemyDataIds = list239; num3 = 6; List list240 = new List(num3); CollectionsMarshal.SetCount(list240, num3); - Span span109 = CollectionsMarshal.AsSpan(list240); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj164.CompletionQuestVariablesFlags = list240; - reference228 = obj164; - ref QuestStep reference229 = ref span107[2]; - QuestStep obj165 = new QuestStep(EInteractionType.Combat, 2013597u, new Vector3(346.60852f, -173.05261f, -725.85645f), 1187) + Span span288 = CollectionsMarshal.AsSpan(list240); + index3 = 0; + span288[index3] = null; + index3++; + span288[index3] = null; + index3++; + span288[index3] = null; + index3++; + span288[index3] = null; + index3++; + span288[index3] = null; + index3++; + span288[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj166.CompletionQuestVariablesFlags = list240; + reference228 = obj166; + index2++; + ref QuestStep reference229 = ref span284[index2]; + QuestStep obj167 = new QuestStep(EInteractionType.Combat, 2013597u, new Vector3(346.60852f, -173.05261f, -725.85645f), 1187) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list241 = new List(num3); - CollectionsMarshal.SetCount(list241, num3); - CollectionsMarshal.AsSpan(list241)[0] = 17691u; - obj165.KillEnemyDataIds = list241; + index3 = 1; + List list241 = new List(index3); + CollectionsMarshal.SetCount(list241, index3); + Span span289 = CollectionsMarshal.AsSpan(list241); + num3 = 0; + span289[num3] = 17691u; + obj167.KillEnemyDataIds = list241; num3 = 6; List list242 = new List(num3); CollectionsMarshal.SetCount(list242, num3); - Span span110 = CollectionsMarshal.AsSpan(list242); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj165.CompletionQuestVariablesFlags = list242; - reference229 = obj165; - questSequence34.Steps = list3; + Span span290 = CollectionsMarshal.AsSpan(list242); + index3 = 0; + span290[index3] = null; + index3++; + span290[index3] = null; + index3++; + span290[index3] = null; + index3++; + span290[index3] = null; + index3++; + span290[index3] = null; + index3++; + span290[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj167.CompletionQuestVariablesFlags = list242; + reference229 = obj167; + questSequence31.Steps = list8; reference226 = questSequence; - ref QuestSequence reference230 = ref span101[7]; - QuestSequence obj166 = new QuestSequence + num++; + ref QuestSequence reference230 = ref span274[num]; + QuestSequence obj168 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1046742u, new Vector3(391.56165f, -161.96266f, -690.3945f), 1187); - obj166.Steps = list243; - reference230 = obj166; - ref QuestSequence reference231 = ref span101[8]; - QuestSequence obj167 = new QuestSequence + index2 = 1; + List list243 = new List(index2); + CollectionsMarshal.SetCount(list243, index2); + Span span291 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span291[num2] = new QuestStep(EInteractionType.Interact, 1046742u, new Vector3(391.56165f, -161.96266f, -690.3945f), 1187); + obj168.Steps = list243; + reference230 = obj168; + num++; + ref QuestSequence reference231 = ref span274[num]; + QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span111 = CollectionsMarshal.AsSpan(list244); - span111[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013927u, new Vector3(414.7555f, -141.03918f, -681.0254f), 1187) + Span span292 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span292[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013927u, new Vector3(414.7555f, -141.03918f, -681.0254f), 1187) { AetherCurrentId = 2818409u }; - span111[1] = new QuestStep(EInteractionType.CompleteQuest, 1046599u, new Vector3(342.09204f, -160.20251f, -449.2104f), 1187) + index2++; + span292[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046599u, new Vector3(342.09204f, -160.20251f, -449.2104f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; - obj167.Steps = list244; - reference231 = obj167; + obj169.Steps = list244; + reference231 = obj169; questRoot53.QuestSequence = list2; AddQuest(questId26, questRoot); QuestId questId27 = new QuestId(4876); @@ -337005,93 +409315,114 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - CollectionsMarshal.AsSpan(list245)[0] = "liza"; + Span span293 = CollectionsMarshal.AsSpan(list245); + index = 0; + span293[index] = "liza"; questRoot54.Author = list245; QuestRoot questRoot55 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span112 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference232 = ref span112[0]; - QuestSequence obj168 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span294 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference232 = ref span294[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046792u, new Vector3(341.26794f, -160.2025f, -447.04358f), 1187); - obj168.Steps = list246; - reference232 = obj168; - ref QuestSequence reference233 = ref span112[1]; - QuestSequence obj169 = new QuestSequence + index2 = 1; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span295 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span295[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046792u, new Vector3(341.26794f, -160.2025f, -447.04358f), 1187); + obj170.Steps = list246; + reference232 = obj170; + num++; + ref QuestSequence reference233 = ref span294[num]; + QuestSequence obj171 = new QuestSequence { Sequence = 1 }; num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1046575u, new Vector3(309.74292f, -156.11737f, -394.9798f), 1187); - obj169.Steps = list247; - reference233 = obj169; - ref QuestSequence reference234 = ref span112[2]; - QuestSequence obj170 = new QuestSequence + Span span296 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span296[index2] = new QuestStep(EInteractionType.Interact, 1046575u, new Vector3(309.74292f, -156.11737f, -394.9798f), 1187); + obj171.Steps = list247; + reference233 = obj171; + num++; + ref QuestSequence reference234 = ref span294[num]; + QuestSequence obj172 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1046793u, new Vector3(215.198f, -167.97874f, -457.847f), 1187); - obj170.Steps = list248; - reference234 = obj170; - ref QuestSequence reference235 = ref span112[3]; - QuestSequence obj171 = new QuestSequence + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span297 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span297[num2] = new QuestStep(EInteractionType.Interact, 1046793u, new Vector3(215.198f, -167.97874f, -457.847f), 1187); + obj172.Steps = list248; + reference234 = obj172; + num++; + ref QuestSequence reference235 = ref span294[num]; + QuestSequence obj173 = new QuestSequence { Sequence = 3 }; num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1046796u, new Vector3(218.1582f, -168.08926f, -458.70148f), 1187); - obj171.Steps = list249; - reference235 = obj171; - ref QuestSequence reference236 = ref span112[4]; + Span span298 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span298[index2] = new QuestStep(EInteractionType.Interact, 1046796u, new Vector3(218.1582f, -168.08926f, -458.70148f), 1187); + obj173.Steps = list249; + reference235 = obj173; + num++; + ref QuestSequence reference236 = ref span294[num]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence35 = questSequence; - num2 = 3; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - Span span113 = CollectionsMarshal.AsSpan(list250); - span113[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013928u, new Vector3(-134.59985f, -93.06476f, -582.9404f), 1187) + QuestSequence questSequence32 = questSequence; + index2 = 3; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span299 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span299[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013928u, new Vector3(-134.59985f, -93.06476f, -582.9404f), 1187) { AetherCurrentId = 2818410u }; - span113[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.69964f, -140.34076f, -601.33215f), 1187) + num2++; + span299[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.69964f, -140.34076f, -601.33215f), 1187) { DisableNavmesh = true, Mount = true }; - span113[2] = new QuestStep(EInteractionType.Emote, 1046802u, new Vector3(-27.847778f, -145.02602f, -648.73737f), 1187) + num2++; + span299[num2] = new QuestStep(EInteractionType.Emote, 1046802u, new Vector3(-27.847778f, -145.02602f, -648.73737f), 1187) { Emote = EEmote.Cheer }; - questSequence35.Steps = list250; + questSequence32.Steps = list250; reference236 = questSequence; - ref QuestSequence reference237 = ref span112[5]; - QuestSequence obj172 = new QuestSequence + num++; + ref QuestSequence reference237 = ref span294[num]; + QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046808u, new Vector3(-20.73706f, -145.3148f, -649.3782f), 1187); - obj172.Steps = list251; - reference237 = obj172; + Span span300 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span300[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046808u, new Vector3(-20.73706f, -145.3148f, -649.3782f), 1187); + obj174.Steps = list251; + reference237 = obj174; questRoot55.QuestSequence = list2; AddQuest(questId27, questRoot); QuestId questId28 = new QuestId(4877); @@ -337100,73 +409431,88 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - CollectionsMarshal.AsSpan(list252)[0] = "liza"; + Span span301 = CollectionsMarshal.AsSpan(list252); + index = 0; + span301[index] = "liza"; questRoot56.Author = list252; QuestRoot questRoot57 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span114 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference238 = ref span114[0]; - QuestSequence obj173 = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span302 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference238 = ref span302[num]; + QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046808u, new Vector3(-20.73706f, -145.3148f, -649.3782f), 1187); - obj173.Steps = list253; - reference238 = obj173; - ref QuestSequence reference239 = ref span114[1]; - QuestSequence obj174 = new QuestSequence + index2 = 1; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + Span span303 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span303[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046808u, new Vector3(-20.73706f, -145.3148f, -649.3782f), 1187); + obj175.Steps = list253; + reference238 = obj175; + num++; + ref QuestSequence reference239 = ref span302[num]; + QuestSequence obj176 = new QuestSequence { Sequence = 1 }; num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1047502u, new Vector3(196.27673f, -169.29994f, -483.48212f), 1187) + Span span304 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span304[index2] = new QuestStep(EInteractionType.Interact, 1047502u, new Vector3(196.27673f, -169.29994f, -483.48212f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; - obj174.Steps = list254; - reference239 = obj174; - ref QuestSequence reference240 = ref span114[2]; - QuestSequence obj175 = new QuestSequence + obj176.Steps = list254; + reference239 = obj176; + num++; + ref QuestSequence reference240 = ref span302[num]; + QuestSequence obj177 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1046946u, new Vector3(275.7152f, -168.6204f, -453.8186f), 1187) + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span305 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span305[num2] = new QuestStep(EInteractionType.Interact, 1046946u, new Vector3(275.7152f, -168.6204f, -453.8186f), 1187) { StopDistance = 5f }; - obj175.Steps = list255; - reference240 = obj175; - ref QuestSequence reference241 = ref span114[3]; + obj177.Steps = list255; + reference240 = obj177; + num++; + ref QuestSequence reference241 = ref span302[num]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence36 = questSequence; + QuestSequence questSequence33 = questSequence; num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span115 = CollectionsMarshal.AsSpan(list3); - span115[0] = new QuestStep(EInteractionType.AcceptQuest, 1050684u, new Vector3(391.37854f, -156.07434f, -388.50995f), 1187) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span306 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span306[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050684u, new Vector3(391.37854f, -156.07434f, -388.50995f), 1187) { Comment = "Traveler to the Rescue", PickUpQuestId = new QuestId(5039) }; - span115[1] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + index2++; + span306[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { Comment = "Crisis of Corruption", PickUpQuestId = new QuestId(5051) }; - span115[2] = new QuestStep(EInteractionType.CompleteQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185) + index2++; + span306[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -337175,7 +409521,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - questSequence36.Steps = list3; + questSequence33.Steps = list8; reference241 = questSequence; questRoot57.QuestSequence = list2; AddQuest(questId28, questRoot); @@ -337185,61 +409531,75 @@ public static class AssemblyQuestLoader num = 1; List list256 = new List(num); CollectionsMarshal.SetCount(list256, num); - CollectionsMarshal.AsSpan(list256)[0] = "liza"; + Span span307 = CollectionsMarshal.AsSpan(list256); + index = 0; + span307[index] = "liza"; questRoot58.Author = list256; QuestRoot questRoot59 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span116 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference242 = ref span116[0]; - QuestSequence obj176 = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span308 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference242 = ref span308[num]; + QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185); - obj176.Steps = list257; - reference242 = obj176; - ref QuestSequence reference243 = ref span116[1]; - QuestSequence obj177 = new QuestSequence + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span309 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span309[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185); + obj178.Steps = list257; + reference242 = obj178; + num++; + ref QuestSequence reference243 = ref span308[num]; + QuestSequence obj179 = new QuestSequence { Sequence = 1 }; num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1046761u, new Vector3(-32.669617f, -10.0000105f, 143.72461f), 1185); - obj177.Steps = list258; - reference243 = obj177; - ref QuestSequence reference244 = ref span116[2]; - QuestSequence obj178 = new QuestSequence + Span span310 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span310[index2] = new QuestStep(EInteractionType.Interact, 1046761u, new Vector3(-32.669617f, -10.0000105f, 143.72461f), 1185); + obj179.Steps = list258; + reference243 = obj179; + num++; + ref QuestSequence reference244 = ref span308[num]; + QuestSequence obj180 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); - obj178.Steps = list259; - reference244 = obj178; - ref QuestSequence reference245 = ref span116[3]; + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + Span span311 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + span311[num2] = new QuestStep(EInteractionType.Interact, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); + obj180.Steps = list259; + reference244 = obj180; + num++; + ref QuestSequence reference245 = ref span308[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence37 = questSequence; + QuestSequence questSequence34 = questSequence; num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span117 = CollectionsMarshal.AsSpan(list3); - span117[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span312 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span312[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalWachumeqimeqi }; - span117[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-130.34163f, -14.999287f, 198.40685f), 1185) + index2++; + span312[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-130.34163f, -14.999287f, 198.40685f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -337247,27 +409607,32 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheForardCabins } }; - span117[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-122.40268f, -19.754322f, 202.20439f), 1185) + index2++; + span312[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-122.40268f, -19.754322f, 202.20439f), 1185) { DisableNavmesh = true }; - span117[3] = new QuestStep(EInteractionType.Interact, 1046763u, new Vector3(-114.64105f, -19.642736f, 201.12915f), 1185); - questSequence37.Steps = list3; + index2++; + span312[index2] = new QuestStep(EInteractionType.Interact, 1046763u, new Vector3(-114.64105f, -19.642736f, 201.12915f), 1185); + questSequence34.Steps = list8; reference245 = questSequence; - ref QuestSequence reference246 = ref span116[4]; - QuestSequence obj179 = new QuestSequence + num++; + ref QuestSequence reference246 = ref span308[num]; + QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046762u, new Vector3(-112.56586f, -19.725424f, 203.72314f), 1185) + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span313 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span313[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046762u, new Vector3(-112.56586f, -19.725424f, 203.72314f), 1185) { StopDistance = 7f }; - obj179.Steps = list260; - reference246 = obj179; + obj181.Steps = list260; + reference246 = obj181; questRoot59.QuestSequence = list2; AddQuest(questId29, questRoot); QuestId questId30 = new QuestId(4879); @@ -337276,36 +409641,44 @@ public static class AssemblyQuestLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - CollectionsMarshal.AsSpan(list261)[0] = "liza"; + Span span314 = CollectionsMarshal.AsSpan(list261); + index = 0; + span314[index] = "liza"; questRoot60.Author = list261; QuestRoot questRoot61 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span118 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference247 = ref span118[0]; - QuestSequence obj180 = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span315 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference247 = ref span315[num]; + QuestSequence obj182 = new QuestSequence { Sequence = 0 }; num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046762u, new Vector3(-112.56586f, -19.725424f, 203.72314f), 1185) + Span span316 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span316[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046762u, new Vector3(-112.56586f, -19.725424f, 203.72314f), 1185) { StopDistance = 7f }; - obj180.Steps = list262; - reference247 = obj180; - ref QuestSequence reference248 = ref span118[1]; - QuestSequence obj181 = new QuestSequence + obj182.Steps = list262; + reference247 = obj182; + num++; + ref QuestSequence reference248 = ref span315[num]; + QuestSequence obj183 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1046764u, new Vector3(139.94043f, -14f, 12.405518f), 1185) + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + Span span317 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span317[num2] = new QuestStep(EInteractionType.Interact, 1046764u, new Vector3(139.94043f, -14f, 12.405518f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -337313,28 +409686,34 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalWachumeqimeqi } }; - obj181.Steps = list263; - reference248 = obj181; - ref QuestSequence reference249 = ref span118[2]; - QuestSequence obj182 = new QuestSequence + obj183.Steps = list263; + reference248 = obj183; + num++; + ref QuestSequence reference249 = ref span315[num]; + QuestSequence obj184 = new QuestSequence { Sequence = 2 }; num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1046766u, new Vector3(55.252808f, -14f, 87.99878f), 1185); - obj182.Steps = list264; - reference249 = obj182; - ref QuestSequence reference250 = ref span118[3]; - QuestSequence obj183 = new QuestSequence + Span span318 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span318[index2] = new QuestStep(EInteractionType.Interact, 1046766u, new Vector3(55.252808f, -14f, 87.99878f), 1185); + obj184.Steps = list264; + reference249 = obj184; + num++; + ref QuestSequence reference250 = ref span315[num]; + QuestSequence obj185 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Duty, null, null, 1185) + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + Span span319 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span319[num2] = new QuestStep(EInteractionType.Duty, null, null, 1185) { DutyOptions = new DutyOptions { @@ -337342,51 +409721,61 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 826u } }; - obj183.Steps = list265; - reference250 = obj183; - span118[4] = new QuestSequence + obj185.Steps = list265; + reference250 = obj185; + num++; + span315[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference251 = ref span118[5]; - QuestSequence obj184 = new QuestSequence + num++; + ref QuestSequence reference251 = ref span315[num]; + QuestSequence obj186 = new QuestSequence { Sequence = 5 }; num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1046790u, new Vector3(748.71436f, 114.61811f, 565.3314f), 1188) + Span span320 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span320[index2] = new QuestStep(EInteractionType.Interact, 1046790u, new Vector3(748.71436f, 114.61811f, 565.3314f), 1188) { StopDistance = 5f }; - obj184.Steps = list266; - reference251 = obj184; - ref QuestSequence reference252 = ref span118[6]; - QuestSequence obj185 = new QuestSequence + obj186.Steps = list266; + reference251 = obj186; + num++; + ref QuestSequence reference252 = ref span315[num]; + QuestSequence obj187 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.Interact, 1046776u, new Vector3(552.1476f, 115.77393f, 222.156f), 1188); - obj185.Steps = list267; - reference252 = obj185; - ref QuestSequence reference253 = ref span118[7]; - QuestSequence obj186 = new QuestSequence + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span321 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span321[num2] = new QuestStep(EInteractionType.Interact, 1046776u, new Vector3(552.1476f, 115.77393f, 222.156f), 1188); + obj187.Steps = list267; + reference252 = obj187; + num++; + ref QuestSequence reference253 = ref span315[num]; + QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046781u, new Vector3(579.9801f, 119.49004f, 148.76013f), 1188) + Span span322 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span322[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046781u, new Vector3(579.9801f, 119.49004f, 148.76013f), 1188) { StopDistance = 5f }; - obj186.Steps = list268; - reference253 = obj186; + obj188.Steps = list268; + reference253 = obj188; questRoot61.QuestSequence = list2; AddQuest(questId30, questRoot); QuestId questId31 = new QuestId(4880); @@ -337395,42 +409784,50 @@ public static class AssemblyQuestLoader num = 1; List list269 = new List(num); CollectionsMarshal.SetCount(list269, num); - CollectionsMarshal.AsSpan(list269)[0] = "liza"; + Span span323 = CollectionsMarshal.AsSpan(list269); + index = 0; + span323[index] = "liza"; questRoot62.Author = list269; QuestRoot questRoot63 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span119 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference254 = ref span119[0]; - QuestSequence obj187 = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span324 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference254 = ref span324[num]; + QuestSequence obj189 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046785u, new Vector3(577.7523f, 119.49004f, 148.66858f), 1188) + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + Span span325 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span325[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046785u, new Vector3(577.7523f, 119.49004f, 148.66858f), 1188) { StopDistance = 5f }; - obj187.Steps = list270; - reference254 = obj187; - ref QuestSequence reference255 = ref span119[1]; + obj189.Steps = list270; + reference254 = obj189; + num++; + ref QuestSequence reference255 = ref span324[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence38 = questSequence; + QuestSequence questSequence35 = questSequence; num2 = 5; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span120 = CollectionsMarshal.AsSpan(list3); - span120[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span326 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span326[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) { Aetheryte = EAetheryteLocation.KozamaukaManyFires }; - span120[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(533.37555f, 122.98077f, 790.01416f), 1188) + index2++; + span326[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(533.37555f, 122.98077f, 790.01416f), 1188) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -337439,52 +409836,61 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalIhuykatumu } }; - span120[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(522.3003f, 120.81023f, 803.62744f), 1188) + index2++; + span326[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(522.3003f, 120.81023f, 803.62744f), 1188) { DisableNavmesh = true }; - span120[3] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013943u, new Vector3(485.89294f, 121.3855f, 831.29626f), 1188) + index2++; + span326[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013943u, new Vector3(485.89294f, 121.3855f, 831.29626f), 1188) { AetherCurrentId = 2818428u }; - span120[4] = new QuestStep(EInteractionType.Interact, 1046603u, new Vector3(127.15344f, 110.20095f, 259.66272f), 1188) + index2++; + span326[index2] = new QuestStep(EInteractionType.Interact, 1046603u, new Vector3(127.15344f, 110.20095f, 259.66272f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - questSequence38.Steps = list3; + questSequence35.Steps = list8; reference255 = questSequence; - ref QuestSequence reference256 = ref span119[2]; - QuestSequence obj188 = new QuestSequence + num++; + ref QuestSequence reference256 = ref span324[num]; + QuestSequence obj190 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - Span span121 = CollectionsMarshal.AsSpan(list271); - span121[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013940u, new Vector3(48.966187f, 111.31445f, 287.15955f), 1188) + index2 = 2; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span327 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span327[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013940u, new Vector3(48.966187f, 111.31445f, 287.15955f), 1188) { AetherCurrentId = 2818422u }; - span121[1] = new QuestStep(EInteractionType.Interact, 1046608u, new Vector3(-427.84772f, 121.633446f, 280.93384f), 1188); - obj188.Steps = list271; - reference256 = obj188; - ref QuestSequence reference257 = ref span119[3]; - QuestSequence obj189 = new QuestSequence + num2++; + span327[num2] = new QuestStep(EInteractionType.Interact, 1046608u, new Vector3(-427.84772f, 121.633446f, 280.93384f), 1188); + obj190.Steps = list271; + reference256 = obj190; + num++; + ref QuestSequence reference257 = ref span324[num]; + QuestSequence obj191 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span122 = CollectionsMarshal.AsSpan(list272); - span122[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) + Span span328 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span328[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) { Aetheryte = EAetheryteLocation.KozamaukaEarthenshire }; - span122[1] = new QuestStep(EInteractionType.CompleteQuest, 1046613u, new Vector3(-471.5191f, 121.63345f, 344.89966f), 1188); - obj189.Steps = list272; - reference257 = obj189; + index2++; + span328[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046613u, new Vector3(-471.5191f, 121.63345f, 344.89966f), 1188); + obj191.Steps = list272; + reference257 = obj191; questRoot63.QuestSequence = list2; AddQuest(questId31, questRoot); QuestId questId32 = new QuestId(4881); @@ -337493,104 +409899,127 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "liza"; + Span span329 = CollectionsMarshal.AsSpan(list273); + index = 0; + span329[index] = "liza"; questRoot64.Author = list273; QuestRoot questRoot65 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span123 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference258 = ref span123[0]; - QuestSequence obj190 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span330 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference258 = ref span330[num]; + QuestSequence obj192 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046613u, new Vector3(-471.5191f, 121.63345f, 344.89966f), 1188); - obj190.Steps = list274; - reference258 = obj190; - ref QuestSequence reference259 = ref span123[1]; - QuestSequence obj191 = new QuestSequence + index2 = 1; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + Span span331 = CollectionsMarshal.AsSpan(list274); + num2 = 0; + span331[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046613u, new Vector3(-471.5191f, 121.63345f, 344.89966f), 1188); + obj192.Steps = list274; + reference258 = obj192; + num++; + ref QuestSequence reference259 = ref span330[num]; + QuestSequence obj193 = new QuestSequence { Sequence = 1 }; num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Snipe, 1046614u, new Vector3(-473.5943f, 121.63345f, 343.7704f), 1188) + Span span332 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span332[index2] = new QuestStep(EInteractionType.Snipe, 1046614u, new Vector3(-473.5943f, 121.63345f, 343.7704f), 1188) { Comment = "Click (from left to right) worn tools, Kaahe, crafting materials, untouched meal" }; - obj191.Steps = list275; - reference259 = obj191; - ref QuestSequence reference260 = ref span123[2]; - QuestSequence obj192 = new QuestSequence + obj193.Steps = list275; + reference259 = obj193; + num++; + ref QuestSequence reference260 = ref span330[num]; + QuestSequence obj194 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1046613u, new Vector3(-471.5191f, 121.63345f, 344.89966f), 1188); - obj192.Steps = list276; - reference260 = obj192; - ref QuestSequence reference261 = ref span123[3]; - QuestSequence obj193 = new QuestSequence + index2 = 1; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + Span span333 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + span333[num2] = new QuestStep(EInteractionType.Interact, 1046613u, new Vector3(-471.5191f, 121.63345f, 344.89966f), 1188); + obj194.Steps = list276; + reference260 = obj194; + num++; + ref QuestSequence reference261 = ref span330[num]; + QuestSequence obj195 = new QuestSequence { Sequence = 3 }; num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.Interact, 2013598u, new Vector3(-560.5707f, 121.5686f, 368.52063f), 1188); - obj193.Steps = list277; - reference261 = obj193; - ref QuestSequence reference262 = ref span123[4]; - QuestSequence obj194 = new QuestSequence + Span span334 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + span334[index2] = new QuestStep(EInteractionType.Interact, 2013598u, new Vector3(-560.5707f, 121.5686f, 368.52063f), 1188); + obj195.Steps = list277; + reference261 = obj195; + num++; + ref QuestSequence reference262 = ref span330[num]; + QuestSequence obj196 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - Span span124 = CollectionsMarshal.AsSpan(list278); - span124[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013939u, new Vector3(-294.20923f, 110.73462f, 640.00903f), 1188) + index2 = 2; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + Span span335 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span335[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013939u, new Vector3(-294.20923f, 110.73462f, 640.00903f), 1188) { AetherCurrentId = 2818421u }; - span124[1] = new QuestStep(EInteractionType.Interact, 2013599u, new Vector3(-293.20215f, 109.57495f, 691.432f), 1188); - obj194.Steps = list278; - reference262 = obj194; - ref QuestSequence reference263 = ref span123[5]; - QuestSequence obj195 = new QuestSequence + num2++; + span335[num2] = new QuestStep(EInteractionType.Interact, 2013599u, new Vector3(-293.20215f, 109.57495f, 691.432f), 1188); + obj196.Steps = list278; + reference262 = obj196; + num++; + ref QuestSequence reference263 = ref span330[num]; + QuestSequence obj197 = new QuestSequence { Sequence = 5 }; num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1046615u, new Vector3(-463.6759f, 121.632996f, 332.23462f), 1188) + Span span336 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span336[index2] = new QuestStep(EInteractionType.Interact, 1046615u, new Vector3(-463.6759f, 121.632996f, 332.23462f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; - obj195.Steps = list279; - reference263 = obj195; - ref QuestSequence reference264 = ref span123[6]; - QuestSequence obj196 = new QuestSequence + obj197.Steps = list279; + reference263 = obj197; + num++; + ref QuestSequence reference264 = ref span330[num]; + QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051455u, new Vector3(-447.8676f, 122.89019f, 348.47034f), 1188) + index2 = 1; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span337 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span337[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051455u, new Vector3(-447.8676f, 122.89019f, 348.47034f), 1188) { StopDistance = 5f }; - obj196.Steps = list280; - reference264 = obj196; + obj198.Steps = list280; + reference264 = obj198; questRoot65.QuestSequence = list2; AddQuest(questId32, questRoot); QuestId questId33 = new QuestId(4882); @@ -337599,72 +410028,89 @@ public static class AssemblyQuestLoader num = 1; List list281 = new List(num); CollectionsMarshal.SetCount(list281, num); - CollectionsMarshal.AsSpan(list281)[0] = "liza"; + Span span338 = CollectionsMarshal.AsSpan(list281); + index = 0; + span338[index] = "liza"; questRoot66.Author = list281; QuestRoot questRoot67 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span125 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference265 = ref span125[0]; - QuestSequence obj197 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span339 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference265 = ref span339[num]; + QuestSequence obj199 = new QuestSequence { Sequence = 0 }; num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046617u, new Vector3(-450.248f, 122.950645f, 345.6626f), 1188) + Span span340 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span340[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046617u, new Vector3(-450.248f, 122.950645f, 345.6626f), 1188) { StopDistance = 5f }; - obj197.Steps = list282; - reference265 = obj197; - ref QuestSequence reference266 = ref span125[1]; - QuestSequence obj198 = new QuestSequence + obj199.Steps = list282; + reference265 = obj199; + num++; + ref QuestSequence reference266 = ref span339[num]; + QuestSequence obj200 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1046676u, new Vector3(-529.015f, 122.12203f, 341.75623f), 1188); - obj198.Steps = list283; - reference266 = obj198; - ref QuestSequence reference267 = ref span125[2]; - QuestSequence obj199 = new QuestSequence + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + Span span341 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span341[num2] = new QuestStep(EInteractionType.Interact, 1046676u, new Vector3(-529.015f, 122.12203f, 341.75623f), 1188); + obj200.Steps = list283; + reference266 = obj200; + num++; + ref QuestSequence reference267 = ref span339[num]; + QuestSequence obj201 = new QuestSequence { Sequence = 2 }; num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1051018u, new Vector3(160.20447f, -17.964504f, 166.55212f), 1185) + Span span342 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span342[index2] = new QuestStep(EInteractionType.Interact, 1051018u, new Vector3(160.20447f, -17.964504f, 166.55212f), 1185) { StopDistance = 5f }; - obj199.Steps = list284; - reference267 = obj199; - ref QuestSequence reference268 = ref span125[3]; - QuestSequence obj200 = new QuestSequence + obj201.Steps = list284; + reference267 = obj201; + num++; + ref QuestSequence reference268 = ref span339[num]; + QuestSequence obj202 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); - obj200.Steps = list285; - reference268 = obj200; - ref QuestSequence reference269 = ref span125[4]; - QuestSequence obj201 = new QuestSequence + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span343 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span343[num2] = new QuestStep(EInteractionType.Interact, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); + obj202.Steps = list285; + reference268 = obj202; + num++; + ref QuestSequence reference269 = ref span339[num]; + QuestSequence obj203 = new QuestSequence { Sequence = 4 }; num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1046624u, new Vector3(-32.455933f, -17.972866f, 184.6189f), 1185) + Span span344 = CollectionsMarshal.AsSpan(list286); + index2 = 0; + span344[index2] = new QuestStep(EInteractionType.Interact, 1046624u, new Vector3(-32.455933f, -17.972866f, 184.6189f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -337672,17 +410118,20 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - obj201.Steps = list286; - reference269 = obj201; - ref QuestSequence reference270 = ref span125[5]; - QuestSequence obj202 = new QuestSequence + obj203.Steps = list286; + reference269 = obj203; + num++; + ref QuestSequence reference270 = ref span339[num]; + QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046619u, new Vector3(140.70337f, -14f, 13.199036f), 1185) + index2 = 1; + List list287 = new List(index2); + CollectionsMarshal.SetCount(list287, index2); + Span span345 = CollectionsMarshal.AsSpan(list287); + num2 = 0; + span345[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046619u, new Vector3(140.70337f, -14f, 13.199036f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -337690,8 +410139,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalWachumeqimeqi } }; - obj202.Steps = list287; - reference270 = obj202; + obj204.Steps = list287; + reference270 = obj204; questRoot67.QuestSequence = list2; AddQuest(questId33, questRoot); QuestId questId34 = new QuestId(4883); @@ -337700,34 +410149,41 @@ public static class AssemblyQuestLoader num = 1; List list288 = new List(num); CollectionsMarshal.SetCount(list288, num); - CollectionsMarshal.AsSpan(list288)[0] = "liza"; + Span span346 = CollectionsMarshal.AsSpan(list288); + index = 0; + span346[index] = "liza"; questRoot68.Author = list288; QuestRoot questRoot69 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span126 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference271 = ref span126[0]; - QuestSequence obj203 = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span347 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference271 = ref span347[num]; + QuestSequence obj205 = new QuestSequence { Sequence = 0 }; num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046619u, new Vector3(140.70337f, -14f, 13.199036f), 1185); - obj203.Steps = list289; - reference271 = obj203; - ref QuestSequence reference272 = ref span126[1]; - QuestSequence obj204 = new QuestSequence + Span span348 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span348[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046619u, new Vector3(140.70337f, -14f, 13.199036f), 1185); + obj205.Steps = list289; + reference271 = obj205; + num++; + ref QuestSequence reference272 = ref span347[num]; + QuestSequence obj206 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - Span span127 = CollectionsMarshal.AsSpan(list290); - span127[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-164.51695f, -14.999356f, 208.03928f), 1185) + index2 = 2; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + Span span349 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span349[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-164.51695f, -14.999356f, 208.03928f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -337735,18 +410191,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheForardCabins } }; - span127[1] = new QuestStep(EInteractionType.Interact, 1048375u, new Vector3(-166.85742f, -14.999356f, 208.30078f), 1185); - obj204.Steps = list290; - reference272 = obj204; - ref QuestSequence reference273 = ref span126[2]; - QuestSequence obj205 = new QuestSequence + num2++; + span349[num2] = new QuestStep(EInteractionType.Interact, 1048375u, new Vector3(-166.85742f, -14.999356f, 208.30078f), 1185); + obj206.Steps = list290; + reference272 = obj206; + num++; + ref QuestSequence reference273 = ref span347[num]; + QuestSequence obj207 = new QuestSequence { Sequence = 2 }; num2 = 1; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046681u, new Vector3(-194.78143f, 120.795235f, -359.24316f), 1185) + Span span350 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span350[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046681u, new Vector3(-194.78143f, 120.795235f, -359.24316f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -337758,34 +410218,39 @@ public static class AssemblyQuestLoader Enabled = true } }; - obj205.Steps = list291; - reference273 = obj205; - ref QuestSequence reference274 = ref span126[3]; - QuestSequence obj206 = new QuestSequence + obj207.Steps = list291; + reference273 = obj207; + num++; + ref QuestSequence reference274 = ref span347[num]; + QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list292)[0]; - QuestStep obj207 = new QuestStep(EInteractionType.CompleteQuest, 1046628u, new Vector3(-173.75458f, 120.79523f, -326.37524f), 1185) + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + Span span351 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + ref QuestStep reference275 = ref span351[num2]; + QuestStep obj209 = new QuestStep(EInteractionType.CompleteQuest, 1046628u, new Vector3(-173.75458f, 120.79523f, -326.37524f), 1185) { StopDistance = 7f }; - num3 = 1; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - CollectionsMarshal.AsSpan(list293)[0] = new DialogueChoice + index3 = 1; + List list293 = new List(index3); + CollectionsMarshal.SetCount(list293, index3); + Span span352 = CollectionsMarshal.AsSpan(list293); + num3 = 0; + span352[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMB104_04883_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGMB104_04883_A1_000_001") }; - obj207.DialogueChoices = list293; - reference275 = obj207; - obj206.Steps = list292; - reference274 = obj206; + obj209.DialogueChoices = list293; + reference275 = obj209; + obj208.Steps = list292; + reference274 = obj208; questRoot69.QuestSequence = list2; AddQuest(questId34, questRoot); QuestId questId35 = new QuestId(4884); @@ -337794,38 +410259,46 @@ public static class AssemblyQuestLoader num = 1; List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - CollectionsMarshal.AsSpan(list294)[0] = "liza"; + Span span353 = CollectionsMarshal.AsSpan(list294); + index = 0; + span353[index] = "liza"; questRoot70.Author = list294; QuestRoot questRoot71 = questRoot; - num = 9; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span128 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference276 = ref span128[0]; - QuestSequence obj208 = new QuestSequence + index = 9; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span354 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference276 = ref span354[num]; + QuestSequence obj210 = new QuestSequence { Sequence = 0 }; num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046628u, new Vector3(-173.75458f, 120.79523f, -326.37524f), 1185) + Span span355 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span355[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046628u, new Vector3(-173.75458f, 120.79523f, -326.37524f), 1185) { StopDistance = 7f }; - obj208.Steps = list295; - reference276 = obj208; - ref QuestSequence reference277 = ref span128[1]; + obj210.Steps = list295; + reference276 = obj210; + num++; + ref QuestSequence reference277 = ref span354[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence39 = questSequence; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - ref QuestStep reference278 = ref CollectionsMarshal.AsSpan(list296)[0]; - QuestStep obj209 = new QuestStep(EInteractionType.Interact, 2013605u, new Vector3(-161.36414f, -14.999634f, 208.33142f), 1185) + QuestSequence questSequence36 = questSequence; + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span356 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + ref QuestStep reference278 = ref span356[num2]; + QuestStep obj211 = new QuestStep(EInteractionType.Interact, 2013605u, new Vector3(-161.36414f, -14.999634f, 208.33142f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -337837,110 +410310,132 @@ public static class AssemblyQuestLoader num3 = 1; List list297 = new List(num3); CollectionsMarshal.SetCount(list297, num3); - CollectionsMarshal.AsSpan(list297)[0] = new DialogueChoice + Span span357 = CollectionsMarshal.AsSpan(list297); + index3 = 0; + span357[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMB105_04884_Q1_000_000") }; - obj209.DialogueChoices = list297; - reference278 = obj209; - questSequence39.Steps = list296; + obj211.DialogueChoices = list297; + reference278 = obj211; + questSequence36.Steps = list296; reference277 = questSequence; - span128[2] = new QuestSequence + num++; + span354[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference279 = ref span128[3]; + num++; + ref QuestSequence reference279 = ref span354[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence40 = questSequence; + QuestSequence questSequence37 = questSequence; num2 = 3; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span129 = CollectionsMarshal.AsSpan(list298); - span129[0] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188) + Span span358 = CollectionsMarshal.AsSpan(list298); + index2 = 0; + span358[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188) { PickUpQuestId = new QuestId(5085) }; - span129[1] = new QuestStep(EInteractionType.AcceptQuest, 1048855u, new Vector3(-491.63043f, 121.63846f, 271.50366f), 1188) + index2++; + span358[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048855u, new Vector3(-491.63043f, 121.63846f, 271.50366f), 1188) { PickUpQuestId = new QuestId(5074) }; - span129[2] = new QuestStep(EInteractionType.Interact, 1046876u, new Vector3(-505.66876f, 121.633156f, 327.62634f), 1188) + index2++; + span358[index2] = new QuestStep(EInteractionType.Interact, 1046876u, new Vector3(-505.66876f, 121.633156f, 327.62634f), 1188) { StopDistance = 5f }; - questSequence40.Steps = list298; + questSequence37.Steps = list298; reference279 = questSequence; - ref QuestSequence reference280 = ref span128[4]; - QuestSequence obj210 = new QuestSequence + num++; + ref QuestSequence reference280 = ref span354[num]; + QuestSequence obj212 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1046633u, new Vector3(-798.2147f, 127.87157f, 468.61975f), 1188); - obj210.Steps = list299; - reference280 = obj210; - ref QuestSequence reference281 = ref span128[5]; - QuestSequence obj211 = new QuestSequence + index2 = 1; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + Span span359 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span359[num2] = new QuestStep(EInteractionType.Interact, 1046633u, new Vector3(-798.2147f, 127.87157f, 468.61975f), 1188); + obj212.Steps = list299; + reference280 = obj212; + num++; + ref QuestSequence reference281 = ref span354[num]; + QuestSequence obj213 = new QuestSequence { Sequence = 5 }; num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 2013606u, new Vector3(-791.7754f, 127.336426f, 468.0094f), 1188) + Span span360 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span360[index2] = new QuestStep(EInteractionType.Interact, 2013606u, new Vector3(-791.7754f, 127.336426f, 468.0094f), 1188) { StopDistance = 5f }; - obj211.Steps = list300; - reference281 = obj211; - ref QuestSequence reference282 = ref span128[6]; - QuestSequence obj212 = new QuestSequence + obj213.Steps = list300; + reference281 = obj213; + num++; + ref QuestSequence reference282 = ref span354[num]; + QuestSequence obj214 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 2013606u, new Vector3(-791.7754f, 127.336426f, 468.0094f), 1188) + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + Span span361 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span361[num2] = new QuestStep(EInteractionType.Interact, 2013606u, new Vector3(-791.7754f, 127.336426f, 468.0094f), 1188) { StopDistance = 5f }; - obj212.Steps = list301; - reference282 = obj212; - ref QuestSequence reference283 = ref span128[7]; - QuestSequence obj213 = new QuestSequence + obj214.Steps = list301; + reference282 = obj214; + num++; + ref QuestSequence reference283 = ref span354[num]; + QuestSequence obj215 = new QuestSequence { Sequence = 7 }; num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 2013606u, new Vector3(-791.7754f, 127.336426f, 468.0094f), 1188) + Span span362 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span362[index2] = new QuestStep(EInteractionType.Interact, 2013606u, new Vector3(-791.7754f, 127.336426f, 468.0094f), 1188) { StopDistance = 5f }; - obj213.Steps = list302; - reference283 = obj213; - ref QuestSequence reference284 = ref span128[8]; - QuestSequence obj214 = new QuestSequence + obj215.Steps = list302; + reference283 = obj215; + num++; + ref QuestSequence reference284 = ref span354[num]; + QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046877u, new Vector3(-529.0761f, 122.122025f, 341.7257f), 1188) + index2 = 1; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + Span span363 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span363[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046877u, new Vector3(-529.0761f, 122.122025f, 341.7257f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; - obj214.Steps = list303; - reference284 = obj214; + obj216.Steps = list303; + reference284 = obj216; questRoot71.QuestSequence = list2; AddQuest(questId35, questRoot); QuestId questId36 = new QuestId(4885); @@ -337949,182 +410444,219 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - CollectionsMarshal.AsSpan(list304)[0] = "liza"; + Span span364 = CollectionsMarshal.AsSpan(list304); + index = 0; + span364[index] = "liza"; questRoot72.Author = list304; QuestRoot questRoot73 = questRoot; - num = 10; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span130 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference285 = ref span130[0]; - QuestSequence obj215 = new QuestSequence + index = 10; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span365 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference285 = ref span365[num]; + QuestSequence obj217 = new QuestSequence { Sequence = 0 }; num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046642u, new Vector3(-530.38837f, 122.122025f, 340.93237f), 1188) + Span span366 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span366[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046642u, new Vector3(-530.38837f, 122.122025f, 340.93237f), 1188) { StopDistance = 5f }; - obj215.Steps = list305; - reference285 = obj215; - ref QuestSequence reference286 = ref span130[1]; - QuestSequence obj216 = new QuestSequence + obj217.Steps = list305; + reference285 = obj217; + num++; + ref QuestSequence reference286 = ref span365[num]; + QuestSequence obj218 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.Interact, 1046677u, new Vector3(-405.90527f, 121.63345f, 278.91956f), 1188); - obj216.Steps = list306; - reference286 = obj216; - ref QuestSequence reference287 = ref span130[2]; - QuestSequence obj217 = new QuestSequence + index2 = 1; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + Span span367 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + span367[num2] = new QuestStep(EInteractionType.Interact, 1046677u, new Vector3(-405.90527f, 121.63345f, 278.91956f), 1188); + obj218.Steps = list306; + reference286 = obj218; + num++; + ref QuestSequence reference287 = ref span365[num]; + QuestSequence obj219 = new QuestSequence { Sequence = 2 }; num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1046644u, new Vector3(569.0242f, 115.13427f, 236.25537f), 1188) + Span span368 = CollectionsMarshal.AsSpan(list307); + index2 = 0; + span368[index2] = new QuestStep(EInteractionType.Interact, 1046644u, new Vector3(569.0242f, 115.13427f, 236.25537f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - obj217.Steps = list307; - reference287 = obj217; - ref QuestSequence reference288 = ref span130[3]; + obj219.Steps = list307; + reference287 = obj219; + num++; + ref QuestSequence reference288 = ref span365[num]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence41 = questSequence; - num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span131 = CollectionsMarshal.AsSpan(list3); - span131[0] = new QuestStep(EInteractionType.Interact, 1046646u, new Vector3(566.8573f, 115.180565f, 236.59106f), 1188) + QuestSequence questSequence38 = questSequence; + index2 = 4; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span369 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span369[num2] = new QuestStep(EInteractionType.Interact, 1046646u, new Vector3(566.8573f, 115.180565f, 236.59106f), 1188) { StopDistance = 4f }; - span131[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046646u, new Vector3(552.2429f, 115.77921f, 221.62932f), 1188) + num2++; + span369[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046646u, new Vector3(552.2429f, 115.77921f, 221.62932f), 1188) { NpcWaitDistance = 1f }; - span131[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046646u, new Vector3(562.5982f, 115.49999f, 191.69548f), 1188) + num2++; + span369[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046646u, new Vector3(562.5982f, 115.49999f, 191.69548f), 1188) { NpcWaitDistance = 1f }; - span131[3] = new QuestStep(EInteractionType.WalkTo, 1046647u, new Vector3(585.44275f, 119.49004f, 189.44067f), 1188) + num2++; + span369[num2] = new QuestStep(EInteractionType.WalkTo, 1046647u, new Vector3(585.44275f, 119.49004f, 189.44067f), 1188) { StopDistance = 1f }; - questSequence41.Steps = list3; + questSequence38.Steps = list8; reference288 = questSequence; - ref QuestSequence reference289 = ref span130[4]; - QuestSequence obj218 = new QuestSequence + num++; + ref QuestSequence reference289 = ref span365[num]; + QuestSequence obj220 = new QuestSequence { Sequence = 4 }; num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Emote, 1046678u, new Vector3(605.61523f, 119.490036f, 185.04602f), 1188) + Span span370 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span370[index2] = new QuestStep(EInteractionType.Emote, 1046678u, new Vector3(605.61523f, 119.490036f, 185.04602f), 1188) { Emote = EEmote.Happy }; - obj218.Steps = list308; - reference289 = obj218; - ref QuestSequence reference290 = ref span130[5]; + obj220.Steps = list308; + reference289 = obj220; + num++; + ref QuestSequence reference290 = ref span365[num]; questSequence = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence42 = questSequence; - num2 = 3; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - Span span132 = CollectionsMarshal.AsSpan(list309); - span132[0] = new QuestStep(EInteractionType.Interact, 1046647u, new Vector3(585.44275f, 119.49004f, 189.44067f), 1188); - span132[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046647u, new Vector3(573.42645f, 119.49004f, 171.78094f), 1188) + QuestSequence questSequence39 = questSequence; + index2 = 3; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + Span span371 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span371[num2] = new QuestStep(EInteractionType.Interact, 1046647u, new Vector3(585.44275f, 119.49004f, 189.44067f), 1188); + num2++; + span371[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046647u, new Vector3(573.42645f, 119.49004f, 171.78094f), 1188) { NpcWaitDistance = 1f }; - span132[2] = new QuestStep(EInteractionType.WalkTo, 1046648u, new Vector3(575.9822f, 119.490036f, 156.90845f), 1188) + num2++; + span371[num2] = new QuestStep(EInteractionType.WalkTo, 1046648u, new Vector3(575.9822f, 119.490036f, 156.90845f), 1188) { StopDistance = 1f }; - questSequence42.Steps = list309; + questSequence39.Steps = list309; reference290 = questSequence; - ref QuestSequence reference291 = ref span130[6]; - QuestSequence obj219 = new QuestSequence + num++; + ref QuestSequence reference291 = ref span365[num]; + QuestSequence obj221 = new QuestSequence { Sequence = 6 }; num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Emote, 1046679u, new Vector3(590.41736f, 119.49004f, 144.09094f), 1188) + Span span372 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span372[index2] = new QuestStep(EInteractionType.Emote, 1046679u, new Vector3(590.41736f, 119.49004f, 144.09094f), 1188) { Emote = EEmote.Happy }; - obj219.Steps = list310; - reference291 = obj219; - ref QuestSequence reference292 = ref span130[7]; + obj221.Steps = list310; + reference291 = obj221; + num++; + ref QuestSequence reference292 = ref span365[num]; questSequence = new QuestSequence { Sequence = 7 }; - QuestSequence questSequence43 = questSequence; - num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span133 = CollectionsMarshal.AsSpan(list3); - span133[0] = new QuestStep(EInteractionType.Interact, 1046648u, new Vector3(575.9822f, 119.490036f, 156.90845f), 1188); - span133[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046648u, new Vector3(575.20374f, 119.49004f, 180.12602f), 1188) + QuestSequence questSequence40 = questSequence; + index2 = 4; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span373 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span373[num2] = new QuestStep(EInteractionType.Interact, 1046648u, new Vector3(575.9822f, 119.490036f, 156.90845f), 1188); + num2++; + span373[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046648u, new Vector3(575.20374f, 119.49004f, 180.12602f), 1188) { NpcWaitDistance = 3f }; - span133[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046648u, new Vector3(556.4156f, 115.49999f, 184.765f), 1188) + num2++; + span373[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046648u, new Vector3(556.4156f, 115.49999f, 184.765f), 1188) { NpcWaitDistance = 1f }; - span133[3] = new QuestStep(EInteractionType.WalkTo, 1046649u, new Vector3(543.78577f, 115.55489f, 165.23987f), 1188) + num2++; + span373[num2] = new QuestStep(EInteractionType.WalkTo, 1046649u, new Vector3(543.78577f, 115.55489f, 165.23987f), 1188) { StopDistance = 1f }; - questSequence43.Steps = list3; + questSequence40.Steps = list8; reference292 = questSequence; - ref QuestSequence reference293 = ref span130[8]; - QuestSequence obj220 = new QuestSequence + num++; + ref QuestSequence reference293 = ref span365[num]; + QuestSequence obj222 = new QuestSequence { Sequence = 8 }; num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Emote, 1046680u, new Vector3(545.3727f, 116.722374f, 152.88f), 1188) + Span span374 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + span374[index2] = new QuestStep(EInteractionType.Emote, 1046680u, new Vector3(545.3727f, 116.722374f, 152.88f), 1188) { Emote = EEmote.Happy }; - obj220.Steps = list311; - reference293 = obj220; - ref QuestSequence reference294 = ref span130[9]; - QuestSequence obj221 = new QuestSequence + obj222.Steps = list311; + reference293 = obj222; + num++; + ref QuestSequence reference294 = ref span365[num]; + QuestSequence obj223 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046878u, new Vector3(542.53455f, 116.722374f, 153.58203f), 1188) + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + Span span375 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + span375[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046878u, new Vector3(542.53455f, 116.722374f, 153.58203f), 1188) { StopDistance = 5f }; - obj221.Steps = list312; - reference294 = obj221; + obj223.Steps = list312; + reference294 = obj223; questRoot73.QuestSequence = list2; AddQuest(questId36, questRoot); QuestId questId37 = new QuestId(4886); @@ -338133,258 +410665,312 @@ public static class AssemblyQuestLoader num = 1; List list313 = new List(num); CollectionsMarshal.SetCount(list313, num); - CollectionsMarshal.AsSpan(list313)[0] = "liza"; + Span span376 = CollectionsMarshal.AsSpan(list313); + index = 0; + span376[index] = "liza"; questRoot74.Author = list313; QuestRoot questRoot75 = questRoot; - num = 8; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span134 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference295 = ref span134[0]; - QuestSequence obj222 = new QuestSequence + index = 8; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span377 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference295 = ref span377[num]; + QuestSequence obj224 = new QuestSequence { Sequence = 0 }; num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046878u, new Vector3(542.53455f, 116.722374f, 153.58203f), 1188) + Span span378 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span378[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046878u, new Vector3(542.53455f, 116.722374f, 153.58203f), 1188) { StopDistance = 5f }; - obj222.Steps = list314; - reference295 = obj222; - ref QuestSequence reference296 = ref span134[1]; - QuestSequence obj223 = new QuestSequence + obj224.Steps = list314; + reference295 = obj224; + num++; + ref QuestSequence reference296 = ref span377[num]; + QuestSequence obj225 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - Span span135 = CollectionsMarshal.AsSpan(list315); - span135[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(531.60944f, 116.17938f, 166.65599f), 1188); - span135[1] = new QuestStep(EInteractionType.Interact, 2013610u, new Vector3(454.7036f, 112.077515f, 163.25623f), 1188); - obj223.Steps = list315; - reference296 = obj223; - ref QuestSequence reference297 = ref span134[2]; - QuestSequence obj224 = new QuestSequence + index2 = 2; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + Span span379 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span379[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(531.60944f, 116.17938f, 166.65599f), 1188); + num2++; + span379[num2] = new QuestStep(EInteractionType.Interact, 2013610u, new Vector3(454.7036f, 112.077515f, 163.25623f), 1188); + obj225.Steps = list315; + reference296 = obj225; + num++; + ref QuestSequence reference297 = ref span377[num]; + questSequence = new QuestSequence { Sequence = 2 }; + QuestSequence questSequence41 = questSequence; num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - ref QuestStep reference298 = ref CollectionsMarshal.AsSpan(list316)[0]; - QuestStep obj225 = new QuestStep(EInteractionType.Combat, null, new Vector3(169.65424f, 110.795235f, 256.5983f), 1188) + Span span380 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + ref QuestStep reference298 = ref span380[index2]; + QuestStep obj226 = new QuestStep(EInteractionType.Combat, null, new Vector3(169.65424f, 110.795235f, 256.5983f), 1188) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 3; - List list317 = new List(num3); - CollectionsMarshal.SetCount(list317, num3); - Span span136 = CollectionsMarshal.AsSpan(list317); - span136[0] = 17692u; - span136[1] = 17693u; - span136[2] = 17694u; - obj225.KillEnemyDataIds = list317; - reference298 = obj225; - obj224.Steps = list316; - reference297 = obj224; - ref QuestSequence reference299 = ref span134[3]; - QuestSequence obj226 = new QuestSequence + index3 = 3; + List list317 = new List(index3); + CollectionsMarshal.SetCount(list317, index3); + Span span381 = CollectionsMarshal.AsSpan(list317); + num3 = 0; + span381[num3] = 17692u; + num3++; + span381[num3] = 17693u; + num3++; + span381[num3] = 17694u; + obj226.KillEnemyDataIds = list317; + reference298 = obj226; + questSequence41.Steps = list316; + reference297 = questSequence; + num++; + ref QuestSequence reference299 = ref span377[num]; + QuestSequence obj227 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list318 = new List(num2); - CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.Interact, 1046653u, new Vector3(160.29602f, 111.00074f, 258.83875f), 1188); - obj226.Steps = list318; - reference299 = obj226; - ref QuestSequence reference300 = ref span134[4]; - QuestSequence obj227 = new QuestSequence + index2 = 1; + List list318 = new List(index2); + CollectionsMarshal.SetCount(list318, index2); + Span span382 = CollectionsMarshal.AsSpan(list318); + num2 = 0; + span382[num2] = new QuestStep(EInteractionType.Interact, 1046653u, new Vector3(160.29602f, 111.00074f, 258.83875f), 1188); + obj227.Steps = list318; + reference299 = obj227; + num++; + ref QuestSequence reference300 = ref span377[num]; + QuestSequence obj228 = new QuestSequence { Sequence = 4 }; num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.Interact, 2013612u, new Vector3(317.95215f, 115.92273f, 229.96863f), 1188); - obj227.Steps = list319; - reference300 = obj227; - ref QuestSequence reference301 = ref span134[5]; + Span span383 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + span383[index2] = new QuestStep(EInteractionType.Interact, 2013612u, new Vector3(317.95215f, 115.92273f, 229.96863f), 1188); + obj228.Steps = list319; + reference300 = obj228; + num++; + ref QuestSequence reference301 = ref span377[num]; questSequence = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence44 = questSequence; - num2 = 18; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span137 = CollectionsMarshal.AsSpan(list3); - span137[0] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(367.16077f, 109.99999f, 285.20248f), 1188) + QuestSequence questSequence42 = questSequence; + index2 = 18; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span384 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span384[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(367.16077f, 109.99999f, 285.20248f), 1188) { StopDistance = 50f }; - span137[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(373.7373f, 109.940544f, 292.05542f), 1188) + num2++; + span384[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(373.7373f, 109.940544f, 292.05542f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f }; - span137[2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(401.49612f, 110.34416f, 358.39096f), 1188) + num2++; + span384[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(401.49612f, 110.34416f, 358.39096f), 1188) { StopDistance = 50f }; - span137[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(405.0139f, 110.18579f, 363.32675f), 1188) + num2++; + span384[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(405.0139f, 110.18579f, 363.32675f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f }; - span137[4] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(431.14557f, 110.30115f, 445.72592f), 1188) + num2++; + span384[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(431.14557f, 110.30115f, 445.72592f), 1188) { StopDistance = 50f, NpcWaitDistance = 1f }; - span137[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(432.67133f, 111.30688f, 454.02933f), 1188) + num2++; + span384[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(432.67133f, 111.30688f, 454.02933f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f }; - span137[6] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(414.60312f, 111.47869f, 583.3106f), 1188) + num2++; + span384[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(414.60312f, 111.47869f, 583.3106f), 1188) { StopDistance = 50f }; - span137[7] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(407.84457f, 111.124214f, 596.85754f), 1188) + num2++; + span384[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(407.84457f, 111.124214f, 596.85754f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f, Mount = false }; - span137[8] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(337.6815f, 110.679726f, 659.7985f), 1188) + num2++; + span384[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(337.6815f, 110.679726f, 659.7985f), 1188) { StopDistance = 50f, Mount = false }; - span137[9] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(329.07404f, 110.1352f, 664.1191f), 1188) + num2++; + span384[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(329.07404f, 110.1352f, 664.1191f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f, Mount = false }; - span137[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(294.8306f, 110.1453f, 680.0281f), 1188) + num2++; + span384[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(294.8306f, 110.1453f, 680.0281f), 1188) { Mount = false }; - span137[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(267.90924f, 111.677704f, 696.8132f), 1188) + num2++; + span384[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(267.90924f, 111.677704f, 696.8132f), 1188) { Mount = false }; - span137[12] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(260.1857f, 113.90375f, 718.9069f), 1188) + num2++; + span384[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(260.1857f, 113.90375f, 718.9069f), 1188) { StopDistance = 50f, Mount = false }; - span137[13] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(263.2977f, 115.22446f, 726.2601f), 1188) + num2++; + span384[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(263.2977f, 115.22446f, 726.2601f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f, Mount = false }; - span137[14] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(302.6931f, 117.88865f, 758.6998f), 1188) + num2++; + span384[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(302.6931f, 117.88865f, 758.6998f), 1188) { StopDistance = 50f, Mount = false }; - span137[15] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(309.86523f, 118.87516f, 761.77924f), 1188) + num2++; + span384[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(309.86523f, 118.87516f, 761.77924f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f }; - span137[16] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(316.30682f, 122.056854f, 777.90155f), 1188); - span137[17] = new QuestStep(EInteractionType.WalkTo, 2013614u, new Vector3(336.99548f, 123.21655f, 778.6526f), 1188); - questSequence44.Steps = list3; + num2++; + span384[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(316.30682f, 122.056854f, 777.90155f), 1188); + num2++; + span384[num2] = new QuestStep(EInteractionType.WalkTo, 2013614u, new Vector3(336.99548f, 123.21655f, 778.6526f), 1188); + questSequence42.Steps = list8; reference301 = questSequence; - ref QuestSequence reference302 = ref span134[6]; + num++; + ref QuestSequence reference302 = ref span377[num]; questSequence = new QuestSequence { Sequence = 6 }; - QuestSequence questSequence45 = questSequence; + QuestSequence questSequence43 = questSequence; num2 = 10; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span138 = CollectionsMarshal.AsSpan(list3); - span138[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(381.548f, 121.013245f, 762.6797f), 1188) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span385 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span385[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(381.548f, 121.013245f, 762.6797f), 1188) { StopDistance = 50f, Mount = false }; - span138[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(413.78464f, 117.67805f, 753.82654f), 1188) + index2++; + span385[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(413.78464f, 117.67805f, 753.82654f), 1188) { StopDistance = 30f, Mount = false }; - span138[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(430.26556f, 117.201416f, 746.65106f), 1188) + index2++; + span385[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(430.26556f, 117.201416f, 746.65106f), 1188) { StopDistance = 30f, DelaySecondsAtStart = 2f, Mount = false }; - span138[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(454.3518f, 117.324524f, 740.7899f), 1188) + index2++; + span385[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(454.3518f, 117.324524f, 740.7899f), 1188) { StopDistance = 30f, DelaySecondsAtStart = 2f, Mount = false }; - span138[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(494.93594f, 119.74193f, 718.53876f), 1188) + index2++; + span385[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(494.93594f, 119.74193f, 718.53876f), 1188) { Mount = false }; - span138[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(528.67334f, 121.77753f, 734.24115f), 1188) + index2++; + span385[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(528.67334f, 121.77753f, 734.24115f), 1188) { StopDistance = 100f, Mount = false }; - span138[6] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(541.26227f, 122.58829f, 731.3827f), 1188) + index2++; + span385[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(541.26227f, 122.58829f, 731.3827f), 1188) { StopDistance = 100f, NpcWaitDistance = 1f, Mount = false, Sprint = false }; - span138[7] = new QuestStep(EInteractionType.WalkTo, 1046659u, new Vector3(639.90125f, 118.65023f, 708.77124f), 1188) + index2++; + span385[index2] = new QuestStep(EInteractionType.WalkTo, 1046659u, new Vector3(639.90125f, 118.65023f, 708.77124f), 1188) { Mount = false, Sprint = false }; - span138[8] = new QuestStep(EInteractionType.WalkTo, 1046659u, new Vector3(671.42f, 118.15654f, 670.4708f), 1188) + index2++; + span385[index2] = new QuestStep(EInteractionType.WalkTo, 1046659u, new Vector3(671.42f, 118.15654f, 670.4708f), 1188) { Mount = false, Sprint = false }; - span138[9] = new QuestStep(EInteractionType.WalkTo, 2013617u, new Vector3(682.8259f, 116.96033f, 646.44836f), 1188) + index2++; + span385[index2] = new QuestStep(EInteractionType.WalkTo, 2013617u, new Vector3(682.8259f, 116.96033f, 646.44836f), 1188) { Mount = false, Sprint = false }; - questSequence45.Steps = list3; + questSequence43.Steps = list8; reference302 = questSequence; - ref QuestSequence reference303 = ref span134[7]; - QuestSequence obj228 = new QuestSequence + num++; + ref QuestSequence reference303 = ref span377[num]; + QuestSequence obj229 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046661u, new Vector3(609.5215f, 119.490036f, 187.48755f), 1188) + index2 = 1; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + Span span386 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + span386[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046661u, new Vector3(609.5215f, 119.490036f, 187.48755f), 1188) { StopDistance = 5f }; - obj228.Steps = list320; - reference303 = obj228; + obj229.Steps = list320; + reference303 = obj229; questRoot75.QuestSequence = list2; AddQuest(questId37, questRoot); QuestId questId38 = new QuestId(4887); @@ -338393,105 +410979,127 @@ public static class AssemblyQuestLoader num = 1; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - CollectionsMarshal.AsSpan(list321)[0] = "liza"; + Span span387 = CollectionsMarshal.AsSpan(list321); + index = 0; + span387[index] = "liza"; questRoot76.Author = list321; QuestRoot questRoot77 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span139 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference304 = ref span139[0]; - QuestSequence obj229 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span388 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference304 = ref span388[num]; + QuestSequence obj230 = new QuestSequence { Sequence = 0 }; num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046661u, new Vector3(609.5215f, 119.490036f, 187.48755f), 1188) + Span span389 = CollectionsMarshal.AsSpan(list322); + index2 = 0; + span389[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046661u, new Vector3(609.5215f, 119.490036f, 187.48755f), 1188) { StopDistance = 5f }; - obj229.Steps = list322; - reference304 = obj229; - ref QuestSequence reference305 = ref span139[1]; - QuestSequence obj230 = new QuestSequence + obj230.Steps = list322; + reference304 = obj230; + num++; + ref QuestSequence reference305 = ref span388[num]; + QuestSequence obj231 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.Interact, 1046662u, new Vector3(380.14795f, 110.47756f, 187.18237f), 1188); - obj230.Steps = list323; - reference305 = obj230; - ref QuestSequence reference306 = ref span139[2]; + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + Span span390 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span390[num2] = new QuestStep(EInteractionType.Interact, 1046662u, new Vector3(380.14795f, 110.47756f, 187.18237f), 1188); + obj231.Steps = list323; + reference305 = obj231; + num++; + ref QuestSequence reference306 = ref span388[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence46 = questSequence; + QuestSequence questSequence44 = questSequence; num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span140 = CollectionsMarshal.AsSpan(list3); - span140[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013942u, new Vector3(130.44934f, 115.15979f, 522.9114f), 1188) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span391 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span391[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013942u, new Vector3(130.44934f, 115.15979f, 522.9114f), 1188) { AetherCurrentId = 2818427u }; - span140[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(35.692627f, 109.2f, 490.56314f), 1188) + index2++; + span391[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(35.692627f, 109.2f, 490.56314f), 1188) { Mount = false }; - span140[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-46.322823f, 109.2f, 475.24792f), 1188) + index2++; + span391[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-46.322823f, 109.2f, 475.24792f), 1188) { Mount = true }; - span140[3] = new QuestStep(EInteractionType.UseItem, 2013619u, new Vector3(-96.33026f, 109.57495f, 488.30383f), 1188) + index2++; + span391[index2] = new QuestStep(EInteractionType.UseItem, 2013619u, new Vector3(-96.33026f, 109.57495f, 488.30383f), 1188) { ItemId = 2003484u }; - questSequence46.Steps = list3; + questSequence44.Steps = list8; reference306 = questSequence; - ref QuestSequence reference307 = ref span139[3]; - QuestSequence obj231 = new QuestSequence + num++; + ref QuestSequence reference307 = ref span388[num]; + QuestSequence obj232 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.UseItem, 2013620u, new Vector3(-61.661743f, 109.57495f, 390.6156f), 1188) + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + Span span392 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span392[num2] = new QuestStep(EInteractionType.UseItem, 2013620u, new Vector3(-61.661743f, 109.57495f, 390.6156f), 1188) { ItemId = 2003484u }; - obj231.Steps = list324; - reference307 = obj231; - ref QuestSequence reference308 = ref span139[4]; - QuestSequence obj232 = new QuestSequence + obj232.Steps = list324; + reference307 = obj232; + num++; + ref QuestSequence reference308 = ref span388[num]; + QuestSequence obj233 = new QuestSequence { Sequence = 4 }; num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1046663u, new Vector3(-3.1586914f, 109.20001f, 287.95288f), 1188); - obj232.Steps = list325; - reference308 = obj232; - ref QuestSequence reference309 = ref span139[5]; - QuestSequence obj233 = new QuestSequence + Span span393 = CollectionsMarshal.AsSpan(list325); + index2 = 0; + span393[index2] = new QuestStep(EInteractionType.Interact, 1046663u, new Vector3(-3.1586914f, 109.20001f, 287.95288f), 1188); + obj233.Steps = list325; + reference308 = obj233; + num++; + ref QuestSequence reference309 = ref span388[num]; + QuestSequence obj234 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046664u, new Vector3(519.06604f, 115.3514f, 201.86157f), 1188) + index2 = 1; + List list326 = new List(index2); + CollectionsMarshal.SetCount(list326, index2); + Span span394 = CollectionsMarshal.AsSpan(list326); + num2 = 0; + span394[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046664u, new Vector3(519.06604f, 115.3514f, 201.86157f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - obj233.Steps = list326; - reference309 = obj233; + obj234.Steps = list326; + reference309 = obj234; questRoot77.QuestSequence = list2; AddQuest(questId38, questRoot); QuestId questId39 = new QuestId(4888); @@ -338500,38 +411108,46 @@ public static class AssemblyQuestLoader num = 1; List list327 = new List(num); CollectionsMarshal.SetCount(list327, num); - CollectionsMarshal.AsSpan(list327)[0] = "liza"; + Span span395 = CollectionsMarshal.AsSpan(list327); + index = 0; + span395[index] = "liza"; questRoot78.Author = list327; QuestRoot questRoot79 = questRoot; - num = 2; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span141 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference310 = ref span141[0]; - QuestSequence obj234 = new QuestSequence + index = 2; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span396 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference310 = ref span396[num]; + QuestSequence obj235 = new QuestSequence { Sequence = 0 }; num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046664u, new Vector3(519.06604f, 115.3514f, 201.86157f), 1188); - obj234.Steps = list328; - reference310 = obj234; - ref QuestSequence reference311 = ref span141[1]; - QuestSequence obj235 = new QuestSequence + Span span397 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + span397[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046664u, new Vector3(519.06604f, 115.3514f, 201.86157f), 1188); + obj235.Steps = list328; + reference310 = obj235; + num++; + ref QuestSequence reference311 = ref span396[num]; + QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046667u, new Vector3(608.6365f, 119.49004f, 190.72253f), 1188) + index2 = 1; + List list329 = new List(index2); + CollectionsMarshal.SetCount(list329, index2); + Span span398 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + span398[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046667u, new Vector3(608.6365f, 119.49004f, 190.72253f), 1188) { StopDistance = 5f }; - obj235.Steps = list329; - reference311 = obj235; + obj236.Steps = list329; + reference311 = obj236; questRoot79.QuestSequence = list2; AddQuest(questId39, questRoot); QuestId questId40 = new QuestId(4889); @@ -338540,100 +411156,120 @@ public static class AssemblyQuestLoader num = 1; List list330 = new List(num); CollectionsMarshal.SetCount(list330, num); - CollectionsMarshal.AsSpan(list330)[0] = "liza"; + Span span399 = CollectionsMarshal.AsSpan(list330); + index = 0; + span399[index] = "liza"; questRoot80.Author = list330; QuestRoot questRoot81 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span142 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference312 = ref span142[0]; - QuestSequence obj236 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span400 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference312 = ref span400[num]; + QuestSequence obj237 = new QuestSequence { Sequence = 0 }; num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046667u, new Vector3(608.6365f, 119.49004f, 190.72253f), 1188) + Span span401 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span401[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046667u, new Vector3(608.6365f, 119.49004f, 190.72253f), 1188) { StopDistance = 5f }; - obj236.Steps = list331; - reference312 = obj236; - ref QuestSequence reference313 = ref span142[1]; - QuestSequence obj237 = new QuestSequence + obj237.Steps = list331; + reference312 = obj237; + num++; + ref QuestSequence reference313 = ref span400[num]; + QuestSequence obj238 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list332 = new List(num2); - CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.Interact, 1046810u, new Vector3(-769.22253f, 124.35208f, 465.87305f), 1188) + index2 = 1; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + Span span402 = CollectionsMarshal.AsSpan(list332); + num2 = 0; + span402[num2] = new QuestStep(EInteractionType.Interact, 1046810u, new Vector3(-769.22253f, 124.35208f, 465.87305f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; - obj237.Steps = list332; - reference313 = obj237; - ref QuestSequence reference314 = ref span142[2]; - QuestSequence obj238 = new QuestSequence + obj238.Steps = list332; + reference313 = obj238; + num++; + ref QuestSequence reference314 = ref span400[num]; + QuestSequence obj239 = new QuestSequence { Sequence = 2 }; num2 = 2; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span143 = CollectionsMarshal.AsSpan(list333); - span143[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-899.7249f, 143.00594f, 472.3082f), 1188) + Span span403 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span403[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-899.7249f, 143.00594f, 472.3082f), 1188) { TargetTerritoryId = (ushort)1187, Fly = true }; - span143[1] = new QuestStep(EInteractionType.Interact, 1046814u, new Vector3(655.6953f, 83.46234f, 642.11475f), 1187); - obj238.Steps = list333; - reference314 = obj238; - ref QuestSequence reference315 = ref span142[3]; - QuestSequence obj239 = new QuestSequence + index2++; + span403[index2] = new QuestStep(EInteractionType.Interact, 1046814u, new Vector3(655.6953f, 83.46234f, 642.11475f), 1187); + obj239.Steps = list333; + reference314 = obj239; + num++; + ref QuestSequence reference315 = ref span400[num]; + QuestSequence obj240 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - Span span144 = CollectionsMarshal.AsSpan(list334); - span144[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1187) + index2 = 2; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + Span span404 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span404[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1187) { Aetheryte = EAetheryteLocation.UrqopachaWorlarsEcho }; - span144[1] = new QuestStep(EInteractionType.Interact, 1046819u, new Vector3(482.96326f, 114.935f, 622.76636f), 1187); - obj239.Steps = list334; - reference315 = obj239; - ref QuestSequence reference316 = ref span142[4]; - QuestSequence obj240 = new QuestSequence + num2++; + span404[num2] = new QuestStep(EInteractionType.Interact, 1046819u, new Vector3(482.96326f, 114.935f, 622.76636f), 1187); + obj240.Steps = list334; + reference315 = obj240; + num++; + ref QuestSequence reference316 = ref span400[num]; + QuestSequence obj241 = new QuestSequence { Sequence = 4 }; num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.Interact, 1046824u, new Vector3(358.87683f, 130.34726f, 597.2838f), 1187); - obj240.Steps = list335; - reference316 = obj240; - ref QuestSequence reference317 = ref span142[5]; - QuestSequence obj241 = new QuestSequence + Span span405 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span405[index2] = new QuestStep(EInteractionType.Interact, 1046824u, new Vector3(358.87683f, 130.34726f, 597.2838f), 1187); + obj241.Steps = list335; + reference316 = obj241; + num++; + ref QuestSequence reference317 = ref span400[num]; + QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list336 = new List(num2); - CollectionsMarshal.SetCount(list336, num2); - CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047504u, new Vector3(371.14514f, 130.34726f, 610.3456f), 1187) + index2 = 1; + List list336 = new List(index2); + CollectionsMarshal.SetCount(list336, index2); + Span span406 = CollectionsMarshal.AsSpan(list336); + num2 = 0; + span406[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047504u, new Vector3(371.14514f, 130.34726f, 610.3456f), 1187) { StopDistance = 7f }; - obj241.Steps = list336; - reference317 = obj241; + obj242.Steps = list336; + reference317 = obj242; questRoot81.QuestSequence = list2; AddQuest(questId40, questRoot); QuestId questId41 = new QuestId(4890); @@ -338642,164 +411278,212 @@ public static class AssemblyQuestLoader num = 1; List list337 = new List(num); CollectionsMarshal.SetCount(list337, num); - CollectionsMarshal.AsSpan(list337)[0] = "liza"; + Span span407 = CollectionsMarshal.AsSpan(list337); + index = 0; + span407[index] = "liza"; questRoot82.Author = list337; QuestRoot questRoot83 = questRoot; - num = 9; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span145 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference318 = ref span145[0]; - QuestSequence obj242 = new QuestSequence + index = 9; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span408 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference318 = ref span408[num]; + QuestSequence obj243 = new QuestSequence { Sequence = 0 }; num2 = 1; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047507u, new Vector3(367.51343f, 130.34726f, 608.05664f), 1187) + Span span409 = CollectionsMarshal.AsSpan(list338); + index2 = 0; + span409[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047507u, new Vector3(367.51343f, 130.34726f, 608.05664f), 1187) { StopDistance = 7f }; - obj242.Steps = list338; - reference318 = obj242; - ref QuestSequence reference319 = ref span145[1]; + obj243.Steps = list338; + reference318 = obj243; + num++; + ref QuestSequence reference319 = ref span408[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence47 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span146 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference320 = ref span146[0]; - QuestStep questStep34 = new QuestStep(EInteractionType.Interact, 1046937u, new Vector3(365.0415f, 129.04726f, 651.1177f), 1187); + QuestSequence questSequence45 = questSequence; + index2 = 3; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span410 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference320 = ref span410[num2]; + QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 1046937u, new Vector3(365.0415f, 129.04726f, 651.1177f), 1187); num3 = 6; List list339 = new List(num3); CollectionsMarshal.SetCount(list339, num3); - Span span147 = CollectionsMarshal.AsSpan(list339); - span147[0] = null; - span147[1] = null; - span147[2] = null; - span147[3] = null; - span147[4] = null; - span147[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep34.CompletionQuestVariablesFlags = list339; - reference320 = questStep34; - ref QuestStep reference321 = ref span146[1]; - QuestStep questStep35 = new QuestStep(EInteractionType.Interact, 1046938u, new Vector3(511.65015f, 111.134995f, 697.9934f), 1187); - num3 = 6; - List list340 = new List(num3); - CollectionsMarshal.SetCount(list340, num3); - Span span148 = CollectionsMarshal.AsSpan(list340); - span148[0] = null; - span148[1] = null; - span148[2] = null; - span148[3] = null; - span148[4] = null; - span148[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep35.CompletionQuestVariablesFlags = list340; - reference321 = questStep35; - ref QuestStep reference322 = ref span146[2]; - QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 1046939u, new Vector3(493.9192f, 111.135f, 553.58203f), 1187); + Span span411 = CollectionsMarshal.AsSpan(list339); + index3 = 0; + span411[index3] = null; + index3++; + span411[index3] = null; + index3++; + span411[index3] = null; + index3++; + span411[index3] = null; + index3++; + span411[index3] = null; + index3++; + span411[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep36.CompletionQuestVariablesFlags = list339; + reference320 = questStep36; + num2++; + ref QuestStep reference321 = ref span410[num2]; + QuestStep questStep37 = new QuestStep(EInteractionType.Interact, 1046938u, new Vector3(511.65015f, 111.134995f, 697.9934f), 1187); + index3 = 6; + List list340 = new List(index3); + CollectionsMarshal.SetCount(list340, index3); + Span span412 = CollectionsMarshal.AsSpan(list340); + num3 = 0; + span412[num3] = null; + num3++; + span412[num3] = null; + num3++; + span412[num3] = null; + num3++; + span412[num3] = null; + num3++; + span412[num3] = null; + num3++; + span412[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep37.CompletionQuestVariablesFlags = list340; + reference321 = questStep37; + num2++; + ref QuestStep reference322 = ref span410[num2]; + QuestStep questStep38 = new QuestStep(EInteractionType.Interact, 1046939u, new Vector3(493.9192f, 111.135f, 553.58203f), 1187); num3 = 6; List list341 = new List(num3); CollectionsMarshal.SetCount(list341, num3); - Span span149 = CollectionsMarshal.AsSpan(list341); - span149[0] = null; - span149[1] = null; - span149[2] = null; - span149[3] = null; - span149[4] = null; - span149[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep36.CompletionQuestVariablesFlags = list341; - reference322 = questStep36; - questSequence47.Steps = list3; + Span span413 = CollectionsMarshal.AsSpan(list341); + index3 = 0; + span413[index3] = null; + index3++; + span413[index3] = null; + index3++; + span413[index3] = null; + index3++; + span413[index3] = null; + index3++; + span413[index3] = null; + index3++; + span413[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep38.CompletionQuestVariablesFlags = list341; + reference322 = questStep38; + questSequence45.Steps = list8; reference319 = questSequence; - ref QuestSequence reference323 = ref span145[2]; - QuestSequence obj243 = new QuestSequence + num++; + ref QuestSequence reference323 = ref span408[num]; + QuestSequence obj244 = new QuestSequence { Sequence = 2 }; num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 2013635u, new Vector3(372.88464f, 130.32727f, 601.0681f), 1187); - obj243.Steps = list342; - reference323 = obj243; - ref QuestSequence reference324 = ref span145[3]; - QuestSequence obj244 = new QuestSequence + Span span414 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span414[index2] = new QuestStep(EInteractionType.Interact, 2013635u, new Vector3(372.88464f, 130.32727f, 601.0681f), 1187); + obj244.Steps = list342; + reference323 = obj244; + num++; + ref QuestSequence reference324 = ref span408[num]; + QuestSequence obj245 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.Interact, 1046834u, new Vector3(406.8512f, 121.05475f, 501.24353f), 1187); - obj244.Steps = list343; - reference324 = obj244; - ref QuestSequence reference325 = ref span145[4]; - QuestSequence obj245 = new QuestSequence + index2 = 1; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + Span span415 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span415[num2] = new QuestStep(EInteractionType.Interact, 1046834u, new Vector3(406.8512f, 121.05475f, 501.24353f), 1187); + obj245.Steps = list343; + reference324 = obj245; + num++; + ref QuestSequence reference325 = ref span408[num]; + QuestSequence obj246 = new QuestSequence { Sequence = 4 }; num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1046838u, new Vector3(137.68213f, 18.595926f, 225.0857f), 1187); - obj245.Steps = list344; - reference325 = obj245; - ref QuestSequence reference326 = ref span145[5]; - QuestSequence obj246 = new QuestSequence + Span span416 = CollectionsMarshal.AsSpan(list344); + index2 = 0; + span416[index2] = new QuestStep(EInteractionType.Interact, 1046838u, new Vector3(137.68213f, 18.595926f, 225.0857f), 1187); + obj246.Steps = list344; + reference325 = obj246; + num++; + ref QuestSequence reference326 = ref span408[num]; + QuestSequence obj247 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.Interact, 1046839u, new Vector3(-200.39673f, 35.298744f, -39.292053f), 1187); - obj246.Steps = list345; - reference326 = obj246; - ref QuestSequence reference327 = ref span145[6]; - QuestSequence obj247 = new QuestSequence + index2 = 1; + List list345 = new List(index2); + CollectionsMarshal.SetCount(list345, index2); + Span span417 = CollectionsMarshal.AsSpan(list345); + num2 = 0; + span417[num2] = new QuestStep(EInteractionType.Interact, 1046839u, new Vector3(-200.39673f, 35.298744f, -39.292053f), 1187); + obj247.Steps = list345; + reference326 = obj247; + num++; + ref QuestSequence reference327 = ref span408[num]; + QuestSequence obj248 = new QuestSequence { Sequence = 6 }; num2 = 2; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - Span span150 = CollectionsMarshal.AsSpan(list346); - span150[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013929u, new Vector3(-198.47418f, 23.11737f, -56.565247f), 1187) + Span span418 = CollectionsMarshal.AsSpan(list346); + index2 = 0; + span418[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013929u, new Vector3(-198.47418f, 23.11737f, -56.565247f), 1187) { DisableNavmesh = true, AetherCurrentId = 2818406u }; - span150[1] = new QuestStep(EInteractionType.Interact, 1046844u, new Vector3(-499.6262f, 59.211838f, 152.81909f), 1187); - obj247.Steps = list346; - reference327 = obj247; - ref QuestSequence reference328 = ref span145[7]; - QuestSequence obj248 = new QuestSequence + index2++; + span418[index2] = new QuestStep(EInteractionType.Interact, 1046844u, new Vector3(-499.6262f, 59.211838f, 152.81909f), 1187); + obj248.Steps = list346; + reference327 = obj248; + num++; + ref QuestSequence reference328 = ref span408[num]; + QuestSequence obj249 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1046849u, new Vector3(-327.44336f, 71.23984f, 336.38513f), 1187); - obj248.Steps = list347; - reference328 = obj248; - ref QuestSequence reference329 = ref span145[8]; - QuestSequence obj249 = new QuestSequence + index2 = 1; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + Span span419 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + span419[num2] = new QuestStep(EInteractionType.Interact, 1046849u, new Vector3(-327.44336f, 71.23984f, 336.38513f), 1187); + obj249.Steps = list347; + reference328 = obj249; + num++; + ref QuestSequence reference329 = ref span408[num]; + QuestSequence obj250 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046851u, new Vector3(-412.13092f, 113.87041f, 550.7439f), 1187); - obj249.Steps = list348; - reference329 = obj249; + Span span420 = CollectionsMarshal.AsSpan(list348); + index2 = 0; + span420[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046851u, new Vector3(-412.13092f, 113.87041f, 550.7439f), 1187); + obj250.Steps = list348; + reference329 = obj250; questRoot83.QuestSequence = list2; AddQuest(questId41, questRoot); QuestId questId42 = new QuestId(4891); @@ -338808,33 +411492,41 @@ public static class AssemblyQuestLoader num = 1; List list349 = new List(num); CollectionsMarshal.SetCount(list349, num); - CollectionsMarshal.AsSpan(list349)[0] = "liza"; + Span span421 = CollectionsMarshal.AsSpan(list349); + index = 0; + span421[index] = "liza"; questRoot84.Author = list349; QuestRoot questRoot85 = questRoot; - num = 4; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span151 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference330 = ref span151[0]; - QuestSequence obj250 = new QuestSequence + index = 4; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span422 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference330 = ref span422[num]; + QuestSequence obj251 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046851u, new Vector3(-412.13092f, 113.87041f, 550.7439f), 1187); - obj250.Steps = list350; - reference330 = obj250; - ref QuestSequence reference331 = ref span151[1]; - QuestSequence obj251 = new QuestSequence + index2 = 1; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + Span span423 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span423[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046851u, new Vector3(-412.13092f, 113.87041f, 550.7439f), 1187); + obj251.Steps = list350; + reference330 = obj251; + num++; + ref QuestSequence reference331 = ref span422[num]; + QuestSequence obj252 = new QuestSequence { Sequence = 1 }; num2 = 1; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Duty, null, null, 1187) + Span span424 = CollectionsMarshal.AsSpan(list351); + index2 = 0; + span424[index2] = new QuestStep(EInteractionType.Duty, null, null, 1187) { DutyOptions = new DutyOptions { @@ -338842,31 +411534,35 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 824u } }; - obj251.Steps = list351; - reference331 = obj251; - span151[2] = new QuestSequence + obj252.Steps = list351; + reference331 = obj252; + num++; + span422[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference332 = ref span151[3]; - QuestSequence obj252 = new QuestSequence + num++; + ref QuestSequence reference332 = ref span422[num]; + QuestSequence obj253 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - Span span152 = CollectionsMarshal.AsSpan(list352); - span152[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013931u, new Vector3(70.17627f, 0.6560669f, 746.4254f), 1187) + index2 = 2; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + Span span425 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span425[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013931u, new Vector3(70.17627f, 0.6560669f, 746.4254f), 1187) { AetherCurrentId = 2818411u }; - span152[1] = new QuestStep(EInteractionType.CompleteQuest, 1046864u, new Vector3(403.31128f, 122.535f, 614.8928f), 1187) + num2++; + span425[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046864u, new Vector3(403.31128f, 122.535f, 614.8928f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; - obj252.Steps = list352; - reference332 = obj252; + obj253.Steps = list352; + reference332 = obj253; questRoot85.QuestSequence = list2; AddQuest(questId42, questRoot); QuestId questId43 = new QuestId(4892); @@ -338875,141 +411571,185 @@ public static class AssemblyQuestLoader num = 1; List list353 = new List(num); CollectionsMarshal.SetCount(list353, num); - CollectionsMarshal.AsSpan(list353)[0] = "liza"; + Span span426 = CollectionsMarshal.AsSpan(list353); + index = 0; + span426[index] = "liza"; questRoot86.Author = list353; QuestRoot questRoot87 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span153 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference333 = ref span153[0]; - QuestSequence obj253 = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span427 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference333 = ref span427[num]; + QuestSequence obj254 = new QuestSequence { Sequence = 0 }; num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046864u, new Vector3(403.31128f, 122.535f, 614.8928f), 1187); - obj253.Steps = list354; - reference333 = obj253; - ref QuestSequence reference334 = ref span153[1]; + Span span428 = CollectionsMarshal.AsSpan(list354); + index2 = 0; + span428[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046864u, new Vector3(403.31128f, 122.535f, 614.8928f), 1187); + obj254.Steps = list354; + reference333 = obj254; + num++; + ref QuestSequence reference334 = ref span427[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence48 = questSequence; - num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span154 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference335 = ref span154[0]; - QuestStep obj254 = new QuestStep(EInteractionType.Interact, 1046872u, new Vector3(361.80652f, 129.04724f, 652.12476f), 1187) + QuestSequence questSequence46 = questSequence; + index2 = 4; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span429 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference335 = ref span429[num2]; + QuestStep obj255 = new QuestStep(EInteractionType.Interact, 1046872u, new Vector3(361.80652f, 129.04724f, 652.12476f), 1187) { StopDistance = 5f }; - num3 = 6; - List list355 = new List(num3); - CollectionsMarshal.SetCount(list355, num3); - Span span155 = CollectionsMarshal.AsSpan(list355); - span155[0] = null; - span155[1] = null; - span155[2] = null; - span155[3] = null; - span155[4] = null; - span155[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj254.CompletionQuestVariablesFlags = list355; - reference335 = obj254; - ref QuestStep reference336 = ref span154[1]; - QuestStep questStep37 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(497.05786f, 111.134995f, 558.38666f), 1187); + index3 = 6; + List list355 = new List(index3); + CollectionsMarshal.SetCount(list355, index3); + Span span430 = CollectionsMarshal.AsSpan(list355); + num3 = 0; + span430[num3] = null; + num3++; + span430[num3] = null; + num3++; + span430[num3] = null; + num3++; + span430[num3] = null; + num3++; + span430[num3] = null; + num3++; + span430[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + obj255.CompletionQuestVariablesFlags = list355; + reference335 = obj255; + num2++; + ref QuestStep reference336 = ref span429[num2]; + questStep5 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(497.05786f, 111.134995f, 558.38666f), 1187); + QuestStep questStep39 = questStep5; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list356 = new List(num3); CollectionsMarshal.SetCount(list356, num3); - Span span156 = CollectionsMarshal.AsSpan(list356); - span156[0] = null; - span156[1] = null; - span156[2] = null; - span156[3] = null; - span156[4] = null; - span156[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span431 = CollectionsMarshal.AsSpan(list356); + index3 = 0; + span431[index3] = null; + index3++; + span431[index3] = null; + index3++; + span431[index3] = null; + index3++; + span431[index3] = null; + index3++; + span431[index3] = null; + index3++; + span431[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list356; skipConditions3.StepIf = skipStepConditions; - questStep37.SkipConditions = skipConditions3; - reference336 = questStep37; - ref QuestStep reference337 = ref span154[2]; - QuestStep obj255 = new QuestStep(EInteractionType.Interact, 1046874u, new Vector3(492.97314f, 111.135f, 557.7324f), 1187) + questStep39.SkipConditions = skipConditions3; + reference336 = questStep5; + num2++; + ref QuestStep reference337 = ref span429[num2]; + QuestStep obj256 = new QuestStep(EInteractionType.Interact, 1046874u, new Vector3(492.97314f, 111.135f, 557.7324f), 1187) { StopDistance = 5f }; - num3 = 6; - List list357 = new List(num3); - CollectionsMarshal.SetCount(list357, num3); - Span span157 = CollectionsMarshal.AsSpan(list357); - span157[0] = null; - span157[1] = null; - span157[2] = null; - span157[3] = null; - span157[4] = null; - span157[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj255.CompletionQuestVariablesFlags = list357; - reference337 = obj255; - ref QuestStep reference338 = ref span154[3]; - QuestStep obj256 = new QuestStep(EInteractionType.Interact, 1046873u, new Vector3(513.2981f, 111.135f, 697.4745f), 1187) + index3 = 6; + List list357 = new List(index3); + CollectionsMarshal.SetCount(list357, index3); + Span span432 = CollectionsMarshal.AsSpan(list357); + num3 = 0; + span432[num3] = null; + num3++; + span432[num3] = null; + num3++; + span432[num3] = null; + num3++; + span432[num3] = null; + num3++; + span432[num3] = null; + num3++; + span432[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + obj256.CompletionQuestVariablesFlags = list357; + reference337 = obj256; + num2++; + ref QuestStep reference338 = ref span429[num2]; + QuestStep obj257 = new QuestStep(EInteractionType.Interact, 1046873u, new Vector3(513.2981f, 111.135f, 697.4745f), 1187) { StopDistance = 5f }; num3 = 6; List list358 = new List(num3); CollectionsMarshal.SetCount(list358, num3); - Span span158 = CollectionsMarshal.AsSpan(list358); - span158[0] = null; - span158[1] = null; - span158[2] = null; - span158[3] = null; - span158[4] = null; - span158[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj256.CompletionQuestVariablesFlags = list358; - reference338 = obj256; - questSequence48.Steps = list3; + Span span433 = CollectionsMarshal.AsSpan(list358); + index3 = 0; + span433[index3] = null; + index3++; + span433[index3] = null; + index3++; + span433[index3] = null; + index3++; + span433[index3] = null; + index3++; + span433[index3] = null; + index3++; + span433[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + obj257.CompletionQuestVariablesFlags = list358; + reference338 = obj257; + questSequence46.Steps = list8; reference334 = questSequence; - ref QuestSequence reference339 = ref span153[2]; - QuestSequence obj257 = new QuestSequence + num++; + ref QuestSequence reference339 = ref span427[num]; + QuestSequence obj258 = new QuestSequence { Sequence = 2 }; num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.Interact, 2013636u, new Vector3(405.56946f, 122.51465f, 613.3668f), 1187); - obj257.Steps = list359; - reference339 = obj257; - ref QuestSequence reference340 = ref span153[3]; - QuestSequence obj258 = new QuestSequence + Span span434 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span434[index2] = new QuestStep(EInteractionType.Interact, 2013636u, new Vector3(405.56946f, 122.51465f, 613.3668f), 1187); + obj258.Steps = list359; + reference339 = obj258; + num++; + ref QuestSequence reference340 = ref span427[num]; + QuestSequence obj259 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.Interact, 1046936u, new Vector3(355.76404f, 130.34726f, 595.0254f), 1187); - obj258.Steps = list360; - reference340 = obj258; - ref QuestSequence reference341 = ref span153[4]; - QuestSequence obj259 = new QuestSequence + index2 = 1; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + Span span435 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + span435[num2] = new QuestStep(EInteractionType.Interact, 1046936u, new Vector3(355.76404f, 130.34726f, 595.0254f), 1187); + obj259.Steps = list360; + reference340 = obj259; + num++; + ref QuestSequence reference341 = ref span427[num]; + QuestSequence obj260 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047504u, new Vector3(371.14514f, 130.34726f, 610.3456f), 1187) + Span span436 = CollectionsMarshal.AsSpan(list361); + index2 = 0; + span436[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047504u, new Vector3(371.14514f, 130.34726f, 610.3456f), 1187) { StopDistance = 7f }; - obj259.Steps = list361; - reference341 = obj259; + obj260.Steps = list361; + reference341 = obj260; questRoot87.QuestSequence = list2; AddQuest(questId43, questRoot); QuestId questId44 = new QuestId(4893); @@ -339018,80 +411758,97 @@ public static class AssemblyQuestLoader num = 1; List list362 = new List(num); CollectionsMarshal.SetCount(list362, num); - CollectionsMarshal.AsSpan(list362)[0] = "liza"; + Span span437 = CollectionsMarshal.AsSpan(list362); + index = 0; + span437[index] = "liza"; questRoot88.Author = list362; QuestRoot questRoot89 = questRoot; - num = 10; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span159 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference342 = ref span159[0]; - QuestSequence obj260 = new QuestSequence + index = 10; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span438 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference342 = ref span438[num]; + QuestSequence obj261 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046881u, new Vector3(368.9784f, 130.34726f, 610.5592f), 1187) + index2 = 1; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + Span span439 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + span439[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046881u, new Vector3(368.9784f, 130.34726f, 610.5592f), 1187) { StopDistance = 7f }; - obj260.Steps = list363; - reference342 = obj260; - ref QuestSequence reference343 = ref span159[1]; - QuestSequence obj261 = new QuestSequence + obj261.Steps = list363; + reference342 = obj261; + num++; + ref QuestSequence reference343 = ref span438[num]; + QuestSequence obj262 = new QuestSequence { Sequence = 1 }; num2 = 1; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - ref QuestStep reference344 = ref CollectionsMarshal.AsSpan(list364)[0]; - QuestStep questStep38 = new QuestStep(EInteractionType.Interact, 1046884u, new Vector3(536.82764f, 105.12397f, 660.05945f), 1187); - num3 = 1; - List list365 = new List(num3); - CollectionsMarshal.SetCount(list365, num3); - CollectionsMarshal.AsSpan(list365)[0] = new DialogueChoice + Span span440 = CollectionsMarshal.AsSpan(list364); + index2 = 0; + ref QuestStep reference344 = ref span440[index2]; + QuestStep questStep40 = new QuestStep(EInteractionType.Interact, 1046884u, new Vector3(536.82764f, 105.12397f, 660.05945f), 1187); + index3 = 1; + List list365 = new List(index3); + CollectionsMarshal.SetCount(list365, index3); + Span span441 = CollectionsMarshal.AsSpan(list365); + num3 = 0; + span441[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMB114_04893_Q3_000_000") }; - questStep38.DialogueChoices = list365; - reference344 = questStep38; - obj261.Steps = list364; - reference343 = obj261; - ref QuestSequence reference345 = ref span159[2]; + questStep40.DialogueChoices = list365; + reference344 = questStep40; + obj262.Steps = list364; + reference343 = obj262; + num++; + ref QuestSequence reference345 = ref span438[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence49 = questSequence; - num2 = 3; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - Span span160 = CollectionsMarshal.AsSpan(list366); - span160[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046885u, new Vector3(551.6129f, 103.3147f, 660.07434f), 1187) + QuestSequence questSequence47 = questSequence; + index2 = 3; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + Span span442 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + span442[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046885u, new Vector3(551.6129f, 103.3147f, 660.07434f), 1187) { Mount = true }; - span160[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046885u, new Vector3(564.4495f, 98.513535f, 613.08606f), 1187); - span160[2] = new QuestStep(EInteractionType.WalkTo, 1046885u, new Vector3(566.1762f, 98.513535f, 564.2549f), 1187) + num2++; + span442[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046885u, new Vector3(564.4495f, 98.513535f, 613.08606f), 1187); + num2++; + span442[num2] = new QuestStep(EInteractionType.WalkTo, 1046885u, new Vector3(566.1762f, 98.513535f, 564.2549f), 1187) { StopDistance = 1f }; - questSequence49.Steps = list366; + questSequence47.Steps = list366; reference345 = questSequence; - ref QuestSequence reference346 = ref span159[3]; - QuestSequence obj262 = new QuestSequence + num++; + ref QuestSequence reference346 = ref span438[num]; + QuestSequence obj263 = new QuestSequence { Sequence = 3 }; num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - ref QuestStep reference347 = ref CollectionsMarshal.AsSpan(list367)[0]; - QuestStep obj263 = new QuestStep(EInteractionType.Combat, null, new Vector3(585.3602f, 98.73023f, 548.79535f), 1187) + Span span443 = CollectionsMarshal.AsSpan(list367); + index2 = 0; + ref QuestStep reference347 = ref span443[index2]; + QuestStep obj264 = new QuestStep(EInteractionType.Combat, null, new Vector3(585.3602f, 98.73023f, 548.79535f), 1187) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -339099,109 +411856,132 @@ public static class AssemblyQuestLoader num3 = 1; List list368 = new List(num3); CollectionsMarshal.SetCount(list368, num3); - CollectionsMarshal.AsSpan(list368)[0] = 17695u; - obj263.KillEnemyDataIds = list368; - reference347 = obj263; - obj262.Steps = list367; - reference346 = obj262; - ref QuestSequence reference348 = ref span159[4]; - QuestSequence obj264 = new QuestSequence + Span span444 = CollectionsMarshal.AsSpan(list368); + index3 = 0; + span444[index3] = 17695u; + obj264.KillEnemyDataIds = list368; + reference347 = obj264; + obj263.Steps = list367; + reference346 = obj263; + num++; + ref QuestSequence reference348 = ref span438[num]; + QuestSequence obj265 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list369 = new List(num2); - CollectionsMarshal.SetCount(list369, num2); - CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.Interact, 1046887u, new Vector3(565.88074f, 98.513535f, 566.4606f), 1187); - obj264.Steps = list369; - reference348 = obj264; - ref QuestSequence reference349 = ref span159[5]; + index2 = 1; + List list369 = new List(index2); + CollectionsMarshal.SetCount(list369, index2); + Span span445 = CollectionsMarshal.AsSpan(list369); + num2 = 0; + span445[num2] = new QuestStep(EInteractionType.Interact, 1046887u, new Vector3(565.88074f, 98.513535f, 566.4606f), 1187); + obj265.Steps = list369; + reference348 = obj265; + num++; + ref QuestSequence reference349 = ref span438[num]; questSequence = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence50 = questSequence; + QuestSequence questSequence48 = questSequence; num2 = 3; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - Span span161 = CollectionsMarshal.AsSpan(list370); - span161[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046886u, new Vector3(559.54816f, 98.436874f, 539.67975f), 1187) + Span span446 = CollectionsMarshal.AsSpan(list370); + index2 = 0; + span446[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046886u, new Vector3(559.54816f, 98.436874f, 539.67975f), 1187) { Mount = true }; - span161[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046886u, new Vector3(508.8067f, 104.9486f, 449.75946f), 1187); - span161[2] = new QuestStep(EInteractionType.WalkTo, 1046886u, new Vector3(474.6922f, 109.06019f, 417.7015f), 1187) + index2++; + span446[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046886u, new Vector3(508.8067f, 104.9486f, 449.75946f), 1187); + index2++; + span446[index2] = new QuestStep(EInteractionType.WalkTo, 1046886u, new Vector3(474.6922f, 109.06019f, 417.7015f), 1187) { StopDistance = 1f }; - questSequence50.Steps = list370; + questSequence48.Steps = list370; reference349 = questSequence; - ref QuestSequence reference350 = ref span159[6]; - QuestSequence obj265 = new QuestSequence + num++; + ref QuestSequence reference350 = ref span438[num]; + QuestSequence obj266 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list371 = new List(num2); - CollectionsMarshal.SetCount(list371, num2); - ref QuestStep reference351 = ref CollectionsMarshal.AsSpan(list371)[0]; - QuestStep obj266 = new QuestStep(EInteractionType.Combat, null, new Vector3(470.6856f, 109.359344f, 395.2364f), 1187) + index2 = 1; + List list371 = new List(index2); + CollectionsMarshal.SetCount(list371, index2); + Span span447 = CollectionsMarshal.AsSpan(list371); + num2 = 0; + ref QuestStep reference351 = ref span447[num2]; + QuestStep obj267 = new QuestStep(EInteractionType.Combat, null, new Vector3(470.6856f, 109.359344f, 395.2364f), 1187) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list372 = new List(num3); - CollectionsMarshal.SetCount(list372, num3); - CollectionsMarshal.AsSpan(list372)[0] = 17696u; - obj266.KillEnemyDataIds = list372; - reference351 = obj266; - obj265.Steps = list371; - reference350 = obj265; - ref QuestSequence reference352 = ref span159[7]; - QuestSequence obj267 = new QuestSequence + index3 = 1; + List list372 = new List(index3); + CollectionsMarshal.SetCount(list372, index3); + Span span448 = CollectionsMarshal.AsSpan(list372); + num3 = 0; + span448[num3] = 17696u; + obj267.KillEnemyDataIds = list372; + reference351 = obj267; + obj266.Steps = list371; + reference350 = obj266; + num++; + ref QuestSequence reference352 = ref span438[num]; + QuestSequence obj268 = new QuestSequence { Sequence = 7 }; num2 = 1; List list373 = new List(num2); CollectionsMarshal.SetCount(list373, num2); - CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.Interact, 1046890u, new Vector3(473.0448f, 108.868965f, 419.33313f), 1187); - obj267.Steps = list373; - reference352 = obj267; - ref QuestSequence reference353 = ref span159[8]; - QuestSequence obj268 = new QuestSequence + Span span449 = CollectionsMarshal.AsSpan(list373); + index2 = 0; + span449[index2] = new QuestStep(EInteractionType.Interact, 1046890u, new Vector3(473.0448f, 108.868965f, 419.33313f), 1187); + obj268.Steps = list373; + reference352 = obj268; + num++; + ref QuestSequence reference353 = ref span438[num]; + QuestSequence obj269 = new QuestSequence { Sequence = 8 }; - num2 = 2; - List list374 = new List(num2); - CollectionsMarshal.SetCount(list374, num2); - Span span162 = CollectionsMarshal.AsSpan(list374); - span162[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046889u, new Vector3(489.753f, 107.692184f, 424.54318f), 1187) + index2 = 2; + List list374 = new List(index2); + CollectionsMarshal.SetCount(list374, index2); + Span span450 = CollectionsMarshal.AsSpan(list374); + num2 = 0; + span450[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046889u, new Vector3(489.753f, 107.692184f, 424.54318f), 1187) { Mount = true }; - span162[1] = new QuestStep(EInteractionType.WalkTo, 1046889u, new Vector3(570.6724f, 119.33488f, 359.8228f), 1187) + num2++; + span450[num2] = new QuestStep(EInteractionType.WalkTo, 1046889u, new Vector3(570.6724f, 119.33488f, 359.8228f), 1187) { StopDistance = 1f }; - obj268.Steps = list374; - reference353 = obj268; - ref QuestSequence reference354 = ref span159[9]; - QuestSequence obj269 = new QuestSequence + obj269.Steps = list374; + reference353 = obj269; + num++; + ref QuestSequence reference354 = ref span438[num]; + QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046893u, new Vector3(572.0454f, 119.71409f, 357.7478f), 1187) + Span span451 = CollectionsMarshal.AsSpan(list375); + index2 = 0; + span451[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046893u, new Vector3(572.0454f, 119.71409f, 357.7478f), 1187) { StopDistance = 5f }; - obj269.Steps = list375; - reference354 = obj269; + obj270.Steps = list375; + reference354 = obj270; questRoot89.QuestSequence = list2; AddQuest(questId44, questRoot); QuestId questId45 = new QuestId(4894); @@ -339210,120 +411990,147 @@ public static class AssemblyQuestLoader num = 1; List list376 = new List(num); CollectionsMarshal.SetCount(list376, num); - CollectionsMarshal.AsSpan(list376)[0] = "liza"; + Span span452 = CollectionsMarshal.AsSpan(list376); + index = 0; + span452[index] = "liza"; questRoot90.Author = list376; QuestRoot questRoot91 = questRoot; - num = 7; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span163 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference355 = ref span163[0]; - QuestSequence obj270 = new QuestSequence + index = 7; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span453 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference355 = ref span453[num]; + QuestSequence obj271 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046893u, new Vector3(572.0454f, 119.71409f, 357.7478f), 1187) + index2 = 1; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + Span span454 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span454[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046893u, new Vector3(572.0454f, 119.71409f, 357.7478f), 1187) { StopDistance = 5f }; - obj270.Steps = list377; - reference355 = obj270; - ref QuestSequence reference356 = ref span163[1]; + obj271.Steps = list377; + reference355 = obj271; + num++; + ref QuestSequence reference356 = ref span453[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence51 = questSequence; + QuestSequence questSequence49 = questSequence; num2 = 8; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span164 = CollectionsMarshal.AsSpan(list3); - span164[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013933u, new Vector3(398.79456f, 85.9845f, 261.3717f), 1187) + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span455 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span455[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013933u, new Vector3(398.79456f, 85.9845f, 261.3717f), 1187) { AetherCurrentId = 2818413u }; - span164[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(400.70453f, 56.34349f, 226.48372f), 1187) + index2++; + span455[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(400.70453f, 56.34349f, 226.48372f), 1187) { DisableNavmesh = true, Mount = true }; - span164[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(380.3574f, 59.728928f, -3.9185147f), 1187); - span164[3] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013932u, new Vector3(368.33752f, 61.05127f, -9.2317505f), 1187) + index2++; + span455[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(380.3574f, 59.728928f, -3.9185147f), 1187); + index2++; + span455[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013932u, new Vector3(368.33752f, 61.05127f, -9.2317505f), 1187) { DisableNavmesh = true, AetherCurrentId = 2818412u }; - span164[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(341.56342f, 57.53834f, 10.309054f), 1187); - span164[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(308.72827f, 60.2934f, 111.43004f), 1187); - span164[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(267.1766f, 29.79629f, 184.32184f), 1187) + index2++; + span455[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(341.56342f, 57.53834f, 10.309054f), 1187); + index2++; + span455[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(308.72827f, 60.2934f, 111.43004f), 1187); + index2++; + span455[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(267.1766f, 29.79629f, 184.32184f), 1187) { DisableNavmesh = true }; - span164[7] = new QuestStep(EInteractionType.Interact, 1046894u, new Vector3(170.91626f, 19.997774f, 241.32141f), 1187); - questSequence51.Steps = list3; + index2++; + span455[index2] = new QuestStep(EInteractionType.Interact, 1046894u, new Vector3(170.91626f, 19.997774f, 241.32141f), 1187); + questSequence49.Steps = list8; reference356 = questSequence; - ref QuestSequence reference357 = ref span163[2]; - QuestSequence obj271 = new QuestSequence + num++; + ref QuestSequence reference357 = ref span453[num]; + QuestSequence obj272 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list378 = new List(num2); - CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Interact, 1046896u, new Vector3(-419.6994f, 69.50964f, 169.69556f), 1187); - obj271.Steps = list378; - reference357 = obj271; - ref QuestSequence reference358 = ref span163[3]; - QuestSequence obj272 = new QuestSequence + index2 = 1; + List list378 = new List(index2); + CollectionsMarshal.SetCount(list378, index2); + Span span456 = CollectionsMarshal.AsSpan(list378); + num2 = 0; + span456[num2] = new QuestStep(EInteractionType.Interact, 1046896u, new Vector3(-419.6994f, 69.50964f, 169.69556f), 1187); + obj272.Steps = list378; + reference357 = obj272; + num++; + ref QuestSequence reference358 = ref span453[num]; + QuestSequence obj273 = new QuestSequence { Sequence = 3 }; num2 = 1; List list379 = new List(num2); CollectionsMarshal.SetCount(list379, num2); - CollectionsMarshal.AsSpan(list379)[0] = new QuestStep(EInteractionType.Interact, 1046898u, new Vector3(-594.81195f, 58.34162f, 122.48413f), 1187); - obj272.Steps = list379; - reference358 = obj272; - ref QuestSequence reference359 = ref span163[4]; - QuestSequence obj273 = new QuestSequence + Span span457 = CollectionsMarshal.AsSpan(list379); + index2 = 0; + span457[index2] = new QuestStep(EInteractionType.Interact, 1046898u, new Vector3(-594.81195f, 58.34162f, 122.48413f), 1187); + obj273.Steps = list379; + reference358 = obj273; + num++; + ref QuestSequence reference359 = ref span453[num]; + QuestSequence obj274 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list380 = new List(num2); - CollectionsMarshal.SetCount(list380, num2); - Span span165 = CollectionsMarshal.AsSpan(list380); - span165[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013930u, new Vector3(-812.8939f, 57.480713f, 105.485596f), 1187) + index2 = 2; + List list380 = new List(index2); + CollectionsMarshal.SetCount(list380, index2); + Span span458 = CollectionsMarshal.AsSpan(list380); + num2 = 0; + span458[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013930u, new Vector3(-812.8939f, 57.480713f, 105.485596f), 1187) { AetherCurrentId = 2818407u }; - span165[1] = new QuestStep(EInteractionType.Duty, null, null, 1187) + num2++; + span458[num2] = new QuestStep(EInteractionType.Duty, null, null, 1187) { DutyOptions = new DutyOptions { ContentFinderConditionId = 832u } }; - obj273.Steps = list380; - reference359 = obj273; - span163[5] = new QuestSequence + obj274.Steps = list380; + reference359 = obj274; + num++; + span453[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference360 = ref span163[6]; - QuestSequence obj274 = new QuestSequence + num++; + ref QuestSequence reference360 = ref span453[num]; + QuestSequence obj275 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list381 = new List(num2); CollectionsMarshal.SetCount(list381, num2); - CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046909u, new Vector3(-803.1586f, 56.144436f, 139.20801f), 1187); - obj274.Steps = list381; - reference360 = obj274; + Span span459 = CollectionsMarshal.AsSpan(list381); + index2 = 0; + span459[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046909u, new Vector3(-803.1586f, 56.144436f, 139.20801f), 1187); + obj275.Steps = list381; + reference360 = obj275; questRoot91.QuestSequence = list2; AddQuest(questId45, questRoot); QuestId questId46 = new QuestId(4895); @@ -339332,55 +412139,66 @@ public static class AssemblyQuestLoader num = 1; List list382 = new List(num); CollectionsMarshal.SetCount(list382, num); - CollectionsMarshal.AsSpan(list382)[0] = "liza"; + Span span460 = CollectionsMarshal.AsSpan(list382); + index = 0; + span460[index] = "liza"; questRoot92.Author = list382; QuestRoot questRoot93 = questRoot; - num = 3; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span166 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference361 = ref span166[0]; - QuestSequence obj275 = new QuestSequence + index = 3; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span461 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference361 = ref span461[num]; + QuestSequence obj276 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list383 = new List(num2); - CollectionsMarshal.SetCount(list383, num2); - CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046914u, new Vector3(-806.3325f, 56.050728f, 134.44714f), 1187) + index2 = 1; + List list383 = new List(index2); + CollectionsMarshal.SetCount(list383, index2); + Span span462 = CollectionsMarshal.AsSpan(list383); + num2 = 0; + span462[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046914u, new Vector3(-806.3325f, 56.050728f, 134.44714f), 1187) { StopDistance = 5f }; - obj275.Steps = list383; - reference361 = obj275; - ref QuestSequence reference362 = ref span166[1]; - QuestSequence obj276 = new QuestSequence + obj276.Steps = list383; + reference361 = obj276; + num++; + ref QuestSequence reference362 = ref span461[num]; + QuestSequence obj277 = new QuestSequence { Sequence = 1 }; num2 = 1; List list384 = new List(num2); CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.Interact, 1046916u, new Vector3(366.01807f, 130.34726f, 599.23694f), 1187) + Span span463 = CollectionsMarshal.AsSpan(list384); + index2 = 0; + span463[index2] = new QuestStep(EInteractionType.Interact, 1046916u, new Vector3(366.01807f, 130.34726f, 599.23694f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; - obj276.Steps = list384; - reference362 = obj276; - ref QuestSequence reference363 = ref span166[2]; - QuestSequence obj277 = new QuestSequence + obj277.Steps = list384; + reference362 = obj277; + num++; + ref QuestSequence reference363 = ref span461[num]; + QuestSequence obj278 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list385 = new List(num2); - CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046916u, new Vector3(366.01807f, 130.34726f, 599.23694f), 1187) + index2 = 1; + List list385 = new List(index2); + CollectionsMarshal.SetCount(list385, index2); + Span span464 = CollectionsMarshal.AsSpan(list385); + num2 = 0; + span464[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046916u, new Vector3(366.01807f, 130.34726f, 599.23694f), 1187) { StopDistance = 5f }; - obj277.Steps = list385; - reference363 = obj277; + obj278.Steps = list385; + reference363 = obj278; questRoot93.QuestSequence = list2; AddQuest(questId46, questRoot); QuestId questId47 = new QuestId(4896); @@ -339389,48 +412207,57 @@ public static class AssemblyQuestLoader num = 1; List list386 = new List(num); CollectionsMarshal.SetCount(list386, num); - CollectionsMarshal.AsSpan(list386)[0] = "liza"; + Span span465 = CollectionsMarshal.AsSpan(list386); + index = 0; + span465[index] = "liza"; questRoot94.Author = list386; QuestRoot questRoot95 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span167 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference364 = ref span167[0]; - QuestSequence obj278 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span466 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference364 = ref span466[num]; + QuestSequence obj279 = new QuestSequence { Sequence = 0 }; num2 = 1; List list387 = new List(num2); CollectionsMarshal.SetCount(list387, num2); - CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046918u, new Vector3(365.31616f, 130.34726f, 602.34985f), 1187) + Span span467 = CollectionsMarshal.AsSpan(list387); + index2 = 0; + span467[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046918u, new Vector3(365.31616f, 130.34726f, 602.34985f), 1187) { StopDistance = 7f }; - obj278.Steps = list387; - reference364 = obj278; - ref QuestSequence reference365 = ref span167[1]; + obj279.Steps = list387; + reference364 = obj279; + num++; + ref QuestSequence reference365 = ref span466[num]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence52 = questSequence; - num2 = 3; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span168 = CollectionsMarshal.AsSpan(list3); - span168[0] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + QuestSequence questSequence50 = questSequence; + index2 = 3; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span468 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span468[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, PickUpQuestId = new QuestId(5055) }; - span168[1] = new QuestStep(EInteractionType.AcceptQuest, 1048730u, new Vector3(399.0692f, 122.53533f, 542.9922f), 1187) + num2++; + span468[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048730u, new Vector3(399.0692f, 122.53533f, 542.9922f), 1187) { StopDistance = 5f, PickUpQuestId = new QuestId(5047) }; - span168[2] = new QuestStep(EInteractionType.Interact, 1046926u, new Vector3(-163.95825f, -14.999357f, 208.27039f), 1185) + num2++; + span468[num2] = new QuestStep(EInteractionType.Interact, 1046926u, new Vector3(-163.95825f, -14.999357f, 208.27039f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -339439,42 +412266,51 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheForardCabins } }; - questSequence52.Steps = list3; + questSequence50.Steps = list8; reference365 = questSequence; - ref QuestSequence reference366 = ref span167[2]; - QuestSequence obj279 = new QuestSequence + num++; + ref QuestSequence reference366 = ref span466[num]; + QuestSequence obj280 = new QuestSequence { Sequence = 2 }; num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.Interact, 1046940u, new Vector3(-202.74664f, -15f, 296.55908f), 1185); - obj279.Steps = list388; - reference366 = obj279; - ref QuestSequence reference367 = ref span167[3]; - QuestSequence obj280 = new QuestSequence + Span span469 = CollectionsMarshal.AsSpan(list388); + index2 = 0; + span469[index2] = new QuestStep(EInteractionType.Interact, 1046940u, new Vector3(-202.74664f, -15f, 296.55908f), 1185); + obj280.Steps = list388; + reference366 = obj280; + num++; + ref QuestSequence reference367 = ref span466[num]; + QuestSequence obj281 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list389 = new List(num2); - CollectionsMarshal.SetCount(list389, num2); - CollectionsMarshal.AsSpan(list389)[0] = new QuestStep(EInteractionType.Interact, 1046929u, new Vector3(-199.08447f, -14.999306f, 306.35522f), 1185) + index2 = 1; + List list389 = new List(index2); + CollectionsMarshal.SetCount(list389, index2); + Span span470 = CollectionsMarshal.AsSpan(list389); + num2 = 0; + span470[num2] = new QuestStep(EInteractionType.Interact, 1046929u, new Vector3(-199.08447f, -14.999306f, 306.35522f), 1185) { StopDistance = 5f }; - obj280.Steps = list389; - reference367 = obj280; - ref QuestSequence reference368 = ref span167[4]; - QuestSequence obj281 = new QuestSequence + obj281.Steps = list389; + reference367 = obj281; + num++; + ref QuestSequence reference368 = ref span466[num]; + QuestSequence obj282 = new QuestSequence { Sequence = 4 }; num2 = 1; List list390 = new List(num2); CollectionsMarshal.SetCount(list390, num2); - CollectionsMarshal.AsSpan(list390)[0] = new QuestStep(EInteractionType.Interact, 1046930u, new Vector3(-141.31384f, 51.999996f, 7.94989f), 1185) + Span span471 = CollectionsMarshal.AsSpan(list390); + index2 = 0; + span471[index2] = new QuestStep(EInteractionType.Interact, 1046930u, new Vector3(-141.31384f, 51.999996f, 7.94989f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -339483,19 +412319,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - obj281.Steps = list390; - reference368 = obj281; - ref QuestSequence reference369 = ref span167[5]; - QuestSequence obj282 = new QuestSequence + obj282.Steps = list390; + reference368 = obj282; + num++; + ref QuestSequence reference369 = ref span466[num]; + QuestSequence obj283 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list391 = new List(num2); - CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046933u, new Vector3(-163.86664f, -14.999357f, 203.75366f), 1185); - obj282.Steps = list391; - reference369 = obj282; + index2 = 1; + List list391 = new List(index2); + CollectionsMarshal.SetCount(list391, index2); + Span span472 = CollectionsMarshal.AsSpan(list391); + num2 = 0; + span472[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046933u, new Vector3(-163.86664f, -14.999357f, 203.75366f), 1185); + obj283.Steps = list391; + reference369 = obj283; questRoot95.QuestSequence = list2; AddQuest(questId47, questRoot); QuestId questId48 = new QuestId(4897); @@ -339504,34 +412343,41 @@ public static class AssemblyQuestLoader num = 1; List list392 = new List(num); CollectionsMarshal.SetCount(list392, num); - CollectionsMarshal.AsSpan(list392)[0] = "liza"; + Span span473 = CollectionsMarshal.AsSpan(list392); + index = 0; + span473[index] = "liza"; questRoot96.Author = list392; QuestRoot questRoot97 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span169 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference370 = ref span169[0]; - QuestSequence obj283 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span474 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference370 = ref span474[num]; + QuestSequence obj284 = new QuestSequence { Sequence = 0 }; num2 = 1; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046933u, new Vector3(-163.86664f, -14.999357f, 203.75366f), 1185); - obj283.Steps = list393; - reference370 = obj283; - ref QuestSequence reference371 = ref span169[1]; - QuestSequence obj284 = new QuestSequence + Span span475 = CollectionsMarshal.AsSpan(list393); + index2 = 0; + span475[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046933u, new Vector3(-163.86664f, -14.999357f, 203.75366f), 1185); + obj284.Steps = list393; + reference370 = obj284; + num++; + ref QuestSequence reference371 = ref span474[num]; + QuestSequence obj285 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list394 = new List(num2); - CollectionsMarshal.SetCount(list394, num2); - Span span170 = CollectionsMarshal.AsSpan(list394); - span170[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.15686f, 11.01f, -13.636331f), 1185) + index2 = 2; + List list394 = new List(index2); + CollectionsMarshal.SetCount(list394, index2); + Span span476 = CollectionsMarshal.AsSpan(list394); + num2 = 0; + span476[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.15686f, 11.01f, -13.636331f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -339539,57 +412385,68 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalDirigibleLanding } }; - span170[1] = new QuestStep(EInteractionType.Interact, 1047509u, new Vector3(-426.47443f, 11.01f, -13.626343f), 1185); - obj284.Steps = list394; - reference371 = obj284; - span169[2] = new QuestSequence + num2++; + span476[num2] = new QuestStep(EInteractionType.Interact, 1047509u, new Vector3(-426.47443f, 11.01f, -13.626343f), 1185); + obj285.Steps = list394; + reference371 = obj285; + num++; + span474[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference372 = ref span169[3]; - QuestSequence obj285 = new QuestSequence + num++; + ref QuestSequence reference372 = ref span474[num]; + QuestSequence obj286 = new QuestSequence { Sequence = 3 }; num2 = 1; List list395 = new List(num2); CollectionsMarshal.SetCount(list395, num2); - CollectionsMarshal.AsSpan(list395)[0] = new QuestStep(EInteractionType.Interact, 1047608u, new Vector3(15.152161f, 8.205901f, -655.848f), 1189) + Span span477 = CollectionsMarshal.AsSpan(list395); + index2 = 0; + span477[index2] = new QuestStep(EInteractionType.Interact, 1047608u, new Vector3(15.152161f, 8.205901f, -655.848f), 1189) { StopDistance = 7f }; - obj285.Steps = list395; - reference372 = obj285; - ref QuestSequence reference373 = ref span169[4]; - QuestSequence obj286 = new QuestSequence + obj286.Steps = list395; + reference372 = obj286; + num++; + ref QuestSequence reference373 = ref span474[num]; + QuestSequence obj287 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list396 = new List(num2); - CollectionsMarshal.SetCount(list396, num2); - Span span171 = CollectionsMarshal.AsSpan(list396); - span171[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013944u, new Vector3(-114.39691f, 5.8441772f, -527.1229f), 1189) + index2 = 2; + List list396 = new List(index2); + CollectionsMarshal.SetCount(list396, index2); + Span span478 = CollectionsMarshal.AsSpan(list396); + num2 = 0; + span478[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013944u, new Vector3(-114.39691f, 5.8441772f, -527.1229f), 1189) { AetherCurrentId = 2818434u }; - span171[1] = new QuestStep(EInteractionType.Interact, 1047515u, new Vector3(-227.74097f, 14.458079f, -440.32965f), 1189); - obj286.Steps = list396; - reference373 = obj286; - ref QuestSequence reference374 = ref span169[5]; - QuestSequence obj287 = new QuestSequence + num2++; + span478[num2] = new QuestStep(EInteractionType.Interact, 1047515u, new Vector3(-227.74097f, 14.458079f, -440.32965f), 1189); + obj287.Steps = list396; + reference373 = obj287; + num++; + ref QuestSequence reference374 = ref span474[num]; + QuestSequence obj288 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047520u, new Vector3(-350.72864f, 16.964071f, -428.4276f), 1189) + Span span479 = CollectionsMarshal.AsSpan(list397); + index2 = 0; + span479[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047520u, new Vector3(-350.72864f, 16.964071f, -428.4276f), 1189) { StopDistance = 1f }; - obj287.Steps = list397; - reference374 = obj287; + obj288.Steps = list397; + reference374 = obj288; questRoot97.QuestSequence = list2; AddQuest(questId48, questRoot); QuestId questId49 = new QuestId(4898); @@ -339598,132 +412455,176 @@ public static class AssemblyQuestLoader num = 1; List list398 = new List(num); CollectionsMarshal.SetCount(list398, num); - CollectionsMarshal.AsSpan(list398)[0] = "liza"; + Span span480 = CollectionsMarshal.AsSpan(list398); + index = 0; + span480[index] = "liza"; questRoot98.Author = list398; QuestRoot questRoot99 = questRoot; - num = 5; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span172 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference375 = ref span172[0]; - QuestSequence obj288 = new QuestSequence + index = 5; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span481 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference375 = ref span481[num]; + QuestSequence obj289 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - CollectionsMarshal.AsSpan(list399)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047521u, new Vector3(-352.22406f, 15.683111f, -433.12738f), 1189) + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + Span span482 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + span482[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047521u, new Vector3(-352.22406f, 15.683111f, -433.12738f), 1189) { StopDistance = 7f }; - obj288.Steps = list399; - reference375 = obj288; - ref QuestSequence reference376 = ref span172[1]; - QuestSequence obj289 = new QuestSequence + obj289.Steps = list399; + reference375 = obj289; + num++; + ref QuestSequence reference376 = ref span481[num]; + QuestSequence obj290 = new QuestSequence { Sequence = 1 }; num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.Interact, 1047525u, new Vector3(-524.01013f, 28.760696f, -422.3545f), 1189); - obj289.Steps = list400; - reference376 = obj289; - ref QuestSequence reference377 = ref span172[2]; + Span span483 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span483[index2] = new QuestStep(EInteractionType.Interact, 1047525u, new Vector3(-524.01013f, 28.760696f, -422.3545f), 1189); + obj290.Steps = list400; + reference376 = obj290; + num++; + ref QuestSequence reference377 = ref span481[num]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence53 = questSequence; - num2 = 5; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); - Span span173 = CollectionsMarshal.AsSpan(list3); - ref QuestStep reference378 = ref span173[0]; - QuestStep questStep39 = new QuestStep(EInteractionType.Interact, 2013646u, new Vector3(-505.85184f, 30.411133f, -341.3291f), 1189); + QuestSequence questSequence51 = questSequence; + index2 = 5; + list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span484 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + ref QuestStep reference378 = ref span484[num2]; + QuestStep questStep41 = new QuestStep(EInteractionType.Interact, 2013646u, new Vector3(-505.85184f, 30.411133f, -341.3291f), 1189); num3 = 6; List list401 = new List(num3); CollectionsMarshal.SetCount(list401, num3); - Span span174 = CollectionsMarshal.AsSpan(list401); - span174[0] = null; - span174[1] = null; - span174[2] = null; - span174[3] = null; - span174[4] = null; - span174[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep39.CompletionQuestVariablesFlags = list401; - reference378 = questStep39; - ref QuestStep reference379 = ref span173[1]; - QuestStep questStep40 = new QuestStep(EInteractionType.Interact, 1047533u, new Vector3(-431.44885f, 28.068893f, -332.6925f), 1189); - num3 = 6; - List list402 = new List(num3); - CollectionsMarshal.SetCount(list402, num3); - Span span175 = CollectionsMarshal.AsSpan(list402); - span175[0] = null; - span175[1] = null; - span175[2] = null; - span175[3] = null; - span175[4] = null; - span175[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep40.CompletionQuestVariablesFlags = list402; - reference379 = questStep40; - ref QuestStep reference380 = ref span173[2]; - QuestStep questStep41 = new QuestStep(EInteractionType.Interact, 1051340u, new Vector3(-400.6867f, 20.478943f, -396.65833f), 1189); + Span span485 = CollectionsMarshal.AsSpan(list401); + index3 = 0; + span485[index3] = null; + index3++; + span485[index3] = null; + index3++; + span485[index3] = null; + index3++; + span485[index3] = null; + index3++; + span485[index3] = null; + index3++; + span485[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + questStep41.CompletionQuestVariablesFlags = list401; + reference378 = questStep41; + num2++; + ref QuestStep reference379 = ref span484[num2]; + QuestStep questStep42 = new QuestStep(EInteractionType.Interact, 1047533u, new Vector3(-431.44885f, 28.068893f, -332.6925f), 1189); + index3 = 6; + List list402 = new List(index3); + CollectionsMarshal.SetCount(list402, index3); + Span span486 = CollectionsMarshal.AsSpan(list402); + num3 = 0; + span486[num3] = null; + num3++; + span486[num3] = null; + num3++; + span486[num3] = null; + num3++; + span486[num3] = null; + num3++; + span486[num3] = null; + num3++; + span486[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep42.CompletionQuestVariablesFlags = list402; + reference379 = questStep42; + num2++; + ref QuestStep reference380 = ref span484[num2]; + QuestStep questStep43 = new QuestStep(EInteractionType.Interact, 1051340u, new Vector3(-400.6867f, 20.478943f, -396.65833f), 1189); num3 = 6; List list403 = new List(num3); CollectionsMarshal.SetCount(list403, num3); - Span span176 = CollectionsMarshal.AsSpan(list403); - span176[0] = null; - span176[1] = null; - span176[2] = null; - span176[3] = null; - span176[4] = null; - span176[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep41.CompletionQuestVariablesFlags = list403; - reference380 = questStep41; - span173[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1189) + Span span487 = CollectionsMarshal.AsSpan(list403); + index3 = 0; + span487[index3] = null; + index3++; + span487[index3] = null; + index3++; + span487[index3] = null; + index3++; + span487[index3] = null; + index3++; + span487[index3] = null; + index3++; + span487[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + questStep43.CompletionQuestVariablesFlags = list403; + reference380 = questStep43; + num2++; + span484[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1189) { Aetheryte = EAetheryteLocation.YakTelIqBraax }; - ref QuestStep reference381 = ref span173[4]; - QuestStep questStep42 = new QuestStep(EInteractionType.Interact, 2013645u, new Vector3(-425.5589f, 23.544617f, -484.97754f), 1189); - num3 = 6; - List list404 = new List(num3); - CollectionsMarshal.SetCount(list404, num3); - Span span177 = CollectionsMarshal.AsSpan(list404); - span177[0] = null; - span177[1] = null; - span177[2] = null; - span177[3] = null; - span177[4] = null; - span177[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep42.CompletionQuestVariablesFlags = list404; - reference381 = questStep42; - questSequence53.Steps = list3; + num2++; + ref QuestStep reference381 = ref span484[num2]; + QuestStep questStep44 = new QuestStep(EInteractionType.Interact, 2013645u, new Vector3(-425.5589f, 23.544617f, -484.97754f), 1189); + index3 = 6; + List list404 = new List(index3); + CollectionsMarshal.SetCount(list404, index3); + Span span488 = CollectionsMarshal.AsSpan(list404); + num3 = 0; + span488[num3] = null; + num3++; + span488[num3] = null; + num3++; + span488[num3] = null; + num3++; + span488[num3] = null; + num3++; + span488[num3] = null; + num3++; + span488[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep44.CompletionQuestVariablesFlags = list404; + reference381 = questStep44; + questSequence51.Steps = list8; reference377 = questSequence; - ref QuestSequence reference382 = ref span172[3]; - QuestSequence obj290 = new QuestSequence + num++; + ref QuestSequence reference382 = ref span481[num]; + QuestSequence obj291 = new QuestSequence { Sequence = 3 }; num2 = 1; List list405 = new List(num2); CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.Interact, 2013647u, new Vector3(-523.43024f, 28.732666f, -423.0869f), 1189); - obj290.Steps = list405; - reference382 = obj290; - ref QuestSequence reference383 = ref span172[4]; - QuestSequence obj291 = new QuestSequence + Span span489 = CollectionsMarshal.AsSpan(list405); + index2 = 0; + span489[index2] = new QuestStep(EInteractionType.Interact, 2013647u, new Vector3(-523.43024f, 28.732666f, -423.0869f), 1189); + obj291.Steps = list405; + reference382 = obj291; + num++; + ref QuestSequence reference383 = ref span481[num]; + QuestSequence obj292 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list406 = new List(num2); - CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047544u, new Vector3(-520.25635f, 28.760696f, -422.11035f), 1189); - obj291.Steps = list406; - reference383 = obj291; + index2 = 1; + List list406 = new List(index2); + CollectionsMarshal.SetCount(list406, index2); + Span span490 = CollectionsMarshal.AsSpan(list406); + num2 = 0; + span490[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047544u, new Vector3(-520.25635f, 28.760696f, -422.11035f), 1189); + obj292.Steps = list406; + reference383 = obj292; questRoot99.QuestSequence = list2; AddQuest(questId49, questRoot); QuestId questId50 = new QuestId(4899); @@ -339732,84 +412633,104 @@ public static class AssemblyQuestLoader num = 1; List list407 = new List(num); CollectionsMarshal.SetCount(list407, num); - CollectionsMarshal.AsSpan(list407)[0] = "liza"; + Span span491 = CollectionsMarshal.AsSpan(list407); + index = 0; + span491[index] = "liza"; questRoot100.Author = list407; QuestRoot questRoot101 = questRoot; - num = 6; - list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span178 = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference384 = ref span178[0]; - QuestSequence obj292 = new QuestSequence + index = 6; + list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span492 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference384 = ref span492[num]; + QuestSequence obj293 = new QuestSequence { Sequence = 0 }; num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047545u, new Vector3(-521.0803f, 28.760695f, -420.79803f), 1189); - obj292.Steps = list408; - reference384 = obj292; - ref QuestSequence reference385 = ref span178[1]; - QuestSequence obj293 = new QuestSequence + Span span493 = CollectionsMarshal.AsSpan(list408); + index2 = 0; + span493[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047545u, new Vector3(-521.0803f, 28.760695f, -420.79803f), 1189); + obj293.Steps = list408; + reference384 = obj293; + num++; + ref QuestSequence reference385 = ref span492[num]; + QuestSequence obj294 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list409 = new List(num2); - CollectionsMarshal.SetCount(list409, num2); - CollectionsMarshal.AsSpan(list409)[0] = new QuestStep(EInteractionType.Interact, 1047534u, new Vector3(-423.9109f, 23.536806f, -487.41895f), 1189); - obj293.Steps = list409; - reference385 = obj293; - ref QuestSequence reference386 = ref span178[2]; - QuestSequence obj294 = new QuestSequence + index2 = 1; + List list409 = new List(index2); + CollectionsMarshal.SetCount(list409, index2); + Span span494 = CollectionsMarshal.AsSpan(list409); + num2 = 0; + span494[num2] = new QuestStep(EInteractionType.Interact, 1047534u, new Vector3(-423.9109f, 23.536806f, -487.41895f), 1189); + obj294.Steps = list409; + reference385 = obj294; + num++; + ref QuestSequence reference386 = ref span492[num]; + QuestSequence obj295 = new QuestSequence { Sequence = 2 }; num2 = 1; List list410 = new List(num2); CollectionsMarshal.SetCount(list410, num2); - CollectionsMarshal.AsSpan(list410)[0] = new QuestStep(EInteractionType.Interact, 1047548u, new Vector3(-65.23236f, 4.5670285f, -403.21973f), 1189); - obj294.Steps = list410; - reference386 = obj294; - ref QuestSequence reference387 = ref span178[3]; - QuestSequence obj295 = new QuestSequence + Span span495 = CollectionsMarshal.AsSpan(list410); + index2 = 0; + span495[index2] = new QuestStep(EInteractionType.Interact, 1047548u, new Vector3(-65.23236f, 4.5670285f, -403.21973f), 1189); + obj295.Steps = list410; + reference386 = obj295; + num++; + ref QuestSequence reference387 = ref span492[num]; + QuestSequence obj296 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list411 = new List(num2); - CollectionsMarshal.SetCount(list411, num2); - CollectionsMarshal.AsSpan(list411)[0] = new QuestStep(EInteractionType.Interact, 1047550u, new Vector3(410.45227f, 19.820219f, -460.8988f), 1189); - obj295.Steps = list411; - reference387 = obj295; - ref QuestSequence reference388 = ref span178[4]; - QuestSequence obj296 = new QuestSequence + index2 = 1; + List list411 = new List(index2); + CollectionsMarshal.SetCount(list411, index2); + Span span496 = CollectionsMarshal.AsSpan(list411); + num2 = 0; + span496[num2] = new QuestStep(EInteractionType.Interact, 1047550u, new Vector3(410.45227f, 19.820219f, -460.8988f), 1189); + obj296.Steps = list411; + reference387 = obj296; + num++; + ref QuestSequence reference388 = ref span492[num]; + QuestSequence obj297 = new QuestSequence { Sequence = 4 }; num2 = 2; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - Span span179 = CollectionsMarshal.AsSpan(list412); - span179[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013945u, new Vector3(416.06763f, 15.518433f, -545.0065f), 1189) + Span span497 = CollectionsMarshal.AsSpan(list412); + index2 = 0; + span497[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013945u, new Vector3(416.06763f, 15.518433f, -545.0065f), 1189) { AetherCurrentId = 2818435u }; - span179[1] = new QuestStep(EInteractionType.Interact, 1047552u, new Vector3(476.70703f, 19.460531f, -358.23608f), 1189); - obj296.Steps = list412; - reference388 = obj296; - ref QuestSequence reference389 = ref span178[5]; - QuestSequence obj297 = new QuestSequence + index2++; + span497[index2] = new QuestStep(EInteractionType.Interact, 1047552u, new Vector3(476.70703f, 19.460531f, -358.23608f), 1189); + obj297.Steps = list412; + reference388 = obj297; + num++; + ref QuestSequence reference389 = ref span492[num]; + QuestSequence obj298 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - CollectionsMarshal.AsSpan(list413)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047763u, new Vector3(477.5005f, 19.52627f, -359.8841f), 1189); - obj297.Steps = list413; - reference389 = obj297; + index2 = 1; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + Span span498 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + span498[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047763u, new Vector3(477.5005f, 19.52627f, -359.8841f), 1189); + obj298.Steps = list413; + reference389 = obj298; questRoot101.QuestSequence = list2; AddQuest(questId50, questRoot); } @@ -339821,13 +412742,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -339835,24 +412759,30 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047764u, new Vector3(474.9065f, 19.501463f, -358.05298f), 1189) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047764u, new Vector3(474.9065f, 19.501463f, -358.05298f), 1189) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1047618u, new Vector3(539.6658f, 9.54172f, -219.22644f), 1189); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1047618u, new Vector3(539.6658f, 9.54172f, -219.22644f), 1189); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -339860,24 +412790,30 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1047555u, new Vector3(-524.58997f, 28.760696f, -424.2771f), 1189) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1047555u, new Vector3(-524.58997f, 28.760696f, -424.2771f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 2013649u, new Vector3(-521.9959f, 28.732666f, -422.65967f), 1189); + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Interact, 2013649u, new Vector3(-521.9959f, 28.732666f, -422.65967f), 1189); obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -339885,7 +412821,9 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047558u, new Vector3(-518.51685f, 28.775951f, -420.95068f), 1189) + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047558u, new Vector3(-518.51685f, 28.775951f, -420.95068f), 1189) { StopDistance = 7f }; @@ -339898,27 +412836,33 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "liza"; + Span span8 = CollectionsMarshal.AsSpan(list8); + index = 0; + span8[index] = "liza"; questRoot2.Author = list8; - num = 5; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span2 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span2[0]; + index = 5; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + Span span9 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span9[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047561u, new Vector3(-519.4324f, 28.767723f, -419.24164f), 1189) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047561u, new Vector3(-519.4324f, 28.767723f, -419.24164f), 1189) { StopDistance = 7f }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span2[1]; + num++; + ref QuestSequence reference7 = ref span9[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -339926,21 +412870,27 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1047563u, new Vector3(-433.06635f, 18.428335f, -392.32477f), 1189); + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.Interact, 1047563u, new Vector3(-433.06635f, 18.428335f, -392.32477f), 1189); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span2[2]; + num++; + ref QuestSequence reference8 = ref span9[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1047566u, new Vector3(-531.9143f, 28.760696f, -428.54968f), 1189); + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.Interact, 1047566u, new Vector3(-531.9143f, 28.760696f, -428.54968f), 1189); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span2[3]; + num++; + ref QuestSequence reference9 = ref span9[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 @@ -339948,18 +412898,23 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1047566u, new Vector3(-531.9143f, 28.760696f, -428.54968f), 1189); + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.Interact, 1047566u, new Vector3(-531.9143f, 28.760696f, -428.54968f), 1189); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span2[4]; + num++; + ref QuestSequence reference10 = ref span9[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047569u, new Vector3(-589.56287f, 1.1820383f, -403.7995f), 1189); + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047569u, new Vector3(-589.56287f, 1.1820383f, -403.7995f), 1189); obj10.Steps = list14; reference10 = obj10; questRoot2.QuestSequence = list9; @@ -339969,13 +412924,16 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; + Span span15 = CollectionsMarshal.AsSpan(list15); + index = 0; + span15[index] = "liza"; questRoot3.Author = list15; - num = 4; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span3 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span3[0]; + index = 4; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + Span span16 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span16[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -339983,23 +412941,28 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047569u, new Vector3(-589.56287f, 1.1820383f, -403.7995f), 1189); + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047569u, new Vector3(-589.56287f, 1.1820383f, -403.7995f), 1189); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span3[1]; + num++; + ref QuestSequence reference12 = ref span16[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - Span span4 = CollectionsMarshal.AsSpan(list18); - span4[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013946u, new Vector3(-550.6218f, -4.3793945f, -137.68219f), 1189) + index2 = 2; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + span18[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013946u, new Vector3(-550.6218f, -4.3793945f, -137.68219f), 1189) { AetherCurrentId = 2818438u }; - span4[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1047570u, new Vector3(-526.9398f, 28.760693f, -425.98615f), 1189) + num2++; + span18[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1047570u, new Vector3(-526.9398f, 28.760693f, -425.98615f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -340009,11 +412972,13 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - span3[2] = new QuestSequence + num++; + span16[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference13 = ref span3[3]; + num++; + ref QuestSequence reference13 = ref span16[num]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -340021,7 +412986,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047572u, new Vector3(-529.74744f, 28.760696f, -426.50494f), 1189) + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047572u, new Vector3(-529.74744f, 28.760696f, -426.50494f), 1189) { StopDistance = 7f }; @@ -340034,27 +413001,33 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + Span span20 = CollectionsMarshal.AsSpan(list20); + index = 0; + span20[index] = "liza"; questRoot4.Author = list20; - num = 7; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span5 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference14 = ref span5[0]; + index = 7; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + Span span21 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference14 = ref span21[num]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047572u, new Vector3(-529.74744f, 28.760696f, -426.50494f), 1189) + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047572u, new Vector3(-529.74744f, 28.760696f, -426.50494f), 1189) { StopDistance = 7f }; obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference15 = ref span5[1]; + num++; + ref QuestSequence reference15 = ref span21[num]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -340062,13 +413035,16 @@ public static class AssemblyQuestLoader num2 = 3; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span6 = CollectionsMarshal.AsSpan(list23); - ref QuestStep reference16 = ref span6[0]; + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + ref QuestStep reference16 = ref span23[index2]; QuestStep questStep = new QuestStep(EInteractionType.AcceptQuest, 1050872u, new Vector3(-408.71295f, 20.420113f, -398.8861f), 1189); int num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = new DialogueChoice + Span span24 = CollectionsMarshal.AsSpan(list24); + int index3 = 0; + span24[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/051/KinGzd201_05110", @@ -340078,25 +413054,31 @@ public static class AssemblyQuestLoader questStep.DialogueChoices = list24; questStep.PickUpQuestId = new QuestId(5110); reference16 = questStep; - span6[1] = new QuestStep(EInteractionType.AcceptQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189) + index2++; + span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189) { PickUpQuestId = new QuestId(5094) }; - span6[2] = new QuestStep(EInteractionType.Interact, 1047577u, new Vector3(600.76294f, 11.096121f, 23.788818f), 1189); + index2++; + span23[index2] = new QuestStep(EInteractionType.Interact, 1047577u, new Vector3(600.76294f, 11.096121f, 23.788818f), 1189); obj15.Steps = list23; reference15 = obj15; - ref QuestSequence reference17 = ref span5[2]; + num++; + ref QuestSequence reference17 = ref span21[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1048230u, new Vector3(612.57336f, -33.408688f, 214.83167f), 1189); + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.Interact, 1048230u, new Vector3(612.57336f, -33.408688f, 214.83167f), 1189); obj16.Steps = list25; reference17 = obj16; - ref QuestSequence reference18 = ref span5[3]; + num++; + ref QuestSequence reference18 = ref span21[num]; QuestSequence obj17 = new QuestSequence { Sequence = 3 @@ -340104,24 +413086,30 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1048229u, new Vector3(622.2781f, -58.68765f, 176.83679f), 1189) + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.Interact, 1048229u, new Vector3(622.2781f, -58.68765f, 176.83679f), 1189) { Mount = true }; obj17.Steps = list26; reference18 = obj17; - ref QuestSequence reference19 = ref span5[4]; + num++; + ref QuestSequence reference19 = ref span21[num]; QuestSequence obj18 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1047582u, new Vector3(719.72217f, -93.15191f, 338.55188f), 1189); + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.Interact, 1047582u, new Vector3(719.72217f, -93.15191f, 338.55188f), 1189); obj18.Steps = list27; reference19 = obj18; - ref QuestSequence reference20 = ref span5[5]; + num++; + ref QuestSequence reference20 = ref span21[num]; QuestSequence obj19 = new QuestSequence { Sequence = 5 @@ -340129,22 +413117,27 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.UseItem, 2013651u, new Vector3(718.59314f, -90.92853f, 335.8662f), 1189) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.UseItem, 2013651u, new Vector3(718.59314f, -90.92853f, 335.8662f), 1189) { StopDistance = 4f, ItemId = 2003487u }; obj19.Steps = list28; reference20 = obj19; - ref QuestSequence reference21 = ref span5[6]; + num++; + ref QuestSequence reference21 = ref span21[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047587u, new Vector3(739.37585f, -133.17699f, 516.5636f), 1189); + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047587u, new Vector3(739.37585f, -133.17699f, 516.5636f), 1189); obj20.Steps = list29; reference21 = obj20; questRoot4.QuestSequence = list21; @@ -340154,13 +413147,16 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "liza"; + Span span30 = CollectionsMarshal.AsSpan(list30); + index = 0; + span30[index] = "liza"; questRoot5.Author = list30; - num = 6; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span7 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference22 = ref span7[0]; + index = 6; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + Span span31 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference22 = ref span31[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -340168,60 +413164,80 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047588u, new Vector3(738.85693f, -133.17517f, 514.9767f), 1189); + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047588u, new Vector3(738.85693f, -133.17517f, 514.9767f), 1189); obj21.Steps = list32; reference22 = obj21; - ref QuestSequence reference23 = ref span7[1]; + num++; + ref QuestSequence reference23 = ref span31[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span8 = CollectionsMarshal.AsSpan(list33); - span8[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1189) + index2 = 4; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + span33[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1189) { Aetheryte = EAetheryteLocation.YakTelMamook }; - span8[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013953u, new Vector3(747.18835f, -176.4096f, 712.64197f), 1189) + num2++; + span33[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013953u, new Vector3(747.18835f, -176.4096f, 712.64197f), 1189) { AetherCurrentId = 2818443u }; - ref QuestStep reference24 = ref span8[2]; + num2++; + ref QuestStep reference24 = ref span33[num2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1047592u, new Vector3(561.4862f, -142.49185f, 502.46423f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook }; - num3 = 6; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span9 = CollectionsMarshal.AsSpan(list34); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list34 = new List(index3); + CollectionsMarshal.SetCount(list34, index3); + Span span34 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = null; + num3++; + span34[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj23.CompletionQuestVariablesFlags = list34; reference24 = obj23; - ref QuestStep reference25 = ref span8[3]; + num2++; + ref QuestStep reference25 = ref span33[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1047593u, new Vector3(535.97314f, -142.49185f, 497.94763f), 1189); num3 = 6; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span10 = CollectionsMarshal.AsSpan(list35); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span35 = CollectionsMarshal.AsSpan(list35); + index3 = 0; + span35[index3] = null; + index3++; + span35[index3] = null; + index3++; + span35[index3] = null; + index3++; + span35[index3] = null; + index3++; + span35[index3] = null; + index3++; + span35[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list35; reference25 = questStep2; obj22.Steps = list33; reference23 = obj22; - ref QuestSequence reference26 = ref span7[2]; + num++; + ref QuestSequence reference26 = ref span31[num]; QuestSequence obj24 = new QuestSequence { Sequence = 2 @@ -340229,21 +413245,27 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1047594u, new Vector3(601.9531f, -137.17401f, 489.79932f), 1189); + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.Interact, 1047594u, new Vector3(601.9531f, -137.17401f, 489.79932f), 1189); obj24.Steps = list36; reference26 = obj24; - ref QuestSequence reference27 = ref span7[3]; + num++; + ref QuestSequence reference27 = ref span31[num]; QuestSequence obj25 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1047595u, new Vector3(626.94727f, -137.12654f, 510.3075f), 1189); + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + span37[num2] = new QuestStep(EInteractionType.Interact, 1047595u, new Vector3(626.94727f, -137.12654f, 510.3075f), 1189); obj25.Steps = list37; reference27 = obj25; - ref QuestSequence reference28 = ref span7[4]; + num++; + ref QuestSequence reference28 = ref span31[num]; QuestSequence obj26 = new QuestSequence { Sequence = 4 @@ -340251,21 +413273,26 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1047596u, new Vector3(360.06702f, -113.97448f, 595.0254f), 1189) + Span span38 = CollectionsMarshal.AsSpan(list38); + index2 = 0; + span38[index2] = new QuestStep(EInteractionType.Interact, 1047596u, new Vector3(360.06702f, -113.97448f, 595.0254f), 1189) { StopDistance = 5f }; obj26.Steps = list38; reference28 = obj26; - ref QuestSequence reference29 = ref span7[5]; + num++; + ref QuestSequence reference29 = ref span31[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047601u, new Vector3(233.60034f, -158.66302f, 641.01624f), 1189); + index2 = 1; + List list39 = new List(index2); + CollectionsMarshal.SetCount(list39, index2); + Span span39 = CollectionsMarshal.AsSpan(list39); + num2 = 0; + span39[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047601u, new Vector3(233.60034f, -158.66302f, 641.01624f), 1189); obj27.Steps = list39; reference29 = obj27; questRoot5.QuestSequence = list31; @@ -340275,13 +413302,16 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "liza"; + Span span40 = CollectionsMarshal.AsSpan(list40); + index = 0; + span40[index] = "liza"; questRoot6.Author = list40; - num = 6; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span11 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference30 = ref span11[0]; + index = 6; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + Span span41 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference30 = ref span41[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 @@ -340289,21 +413319,27 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047607u, new Vector3(233.60034f, -158.66302f, 641.01624f), 1189); + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047607u, new Vector3(233.60034f, -158.66302f, 641.01624f), 1189); obj28.Steps = list42; reference30 = obj28; - ref QuestSequence reference31 = ref span11[1]; + num++; + ref QuestSequence reference31 = ref span41[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1047614u, new Vector3(-106.34015f, -192.35985f, 586.6636f), 1189); + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.Interact, 1047614u, new Vector3(-106.34015f, -192.35985f, 586.6636f), 1189); obj29.Steps = list43; reference31 = obj29; - ref QuestSequence reference32 = ref span11[2]; + num++; + ref QuestSequence reference32 = ref span41[num]; QuestSequence obj30 = new QuestSequence { Sequence = 2 @@ -340311,33 +413347,40 @@ public static class AssemblyQuestLoader num2 = 3; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span12 = CollectionsMarshal.AsSpan(list44); - span12[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013949u, new Vector3(-114.33588f, -212.20728f, 623.77356f), 1189) + Span span44 = CollectionsMarshal.AsSpan(list44); + index2 = 0; + span44[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013949u, new Vector3(-114.33588f, -212.20728f, 623.77356f), 1189) { DisableNavmesh = true, Mount = true, AetherCurrentId = 2818436u }; - span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.97611f, -197.49266f, 595.45026f), 1189) + index2++; + span44[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.97611f, -197.49266f, 595.45026f), 1189) { DisableNavmesh = true, Mount = true }; - span12[2] = new QuestStep(EInteractionType.Interact, 1047620u, new Vector3(-365.22473f, -165.5307f, 517.66235f), 1189); + index2++; + span44[index2] = new QuestStep(EInteractionType.Interact, 1047620u, new Vector3(-365.22473f, -165.5307f, 517.66235f), 1189); obj30.Steps = list44; reference32 = obj30; - ref QuestSequence reference33 = ref span11[3]; + num++; + ref QuestSequence reference33 = ref span41[num]; QuestSequence obj31 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1047626u, new Vector3(-637.53723f, -183.38272f, 562.06604f), 1189); + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span45[num2] = new QuestStep(EInteractionType.Interact, 1047626u, new Vector3(-637.53723f, -183.38272f, 562.06604f), 1189); obj31.Steps = list45; reference33 = obj31; - ref QuestSequence reference34 = ref span11[4]; + num++; + ref QuestSequence reference34 = ref span41[num]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -340345,15 +413388,19 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list46)[0]; + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + ref QuestStep reference35 = ref span46[index2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1047617u, new Vector3(-702.6017f, -199.5873f, 620.1113f), 1189) { StopDistance = 5f }; - num3 = 1; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = new DialogueChoice + index3 = 1; + List list47 = new List(index3); + CollectionsMarshal.SetCount(list47, index3); + Span span47 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + span47[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMC109_04905_Q1_000_000"), @@ -340363,20 +413410,23 @@ public static class AssemblyQuestLoader reference35 = obj33; obj32.Steps = list46; reference34 = obj32; - ref QuestSequence reference36 = ref span11[5]; + num++; + ref QuestSequence reference36 = ref span41[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - Span span13 = CollectionsMarshal.AsSpan(list48); - span13[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013951u, new Vector3(-676.5698f, -163.98877f, 236.16382f), 1189) + index2 = 2; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013951u, new Vector3(-676.5698f, -163.98877f, 236.16382f), 1189) { AetherCurrentId = 2818441u }; - span13[1] = new QuestStep(EInteractionType.CompleteQuest, 1047632u, new Vector3(723.537f, -133.17401f, 543.1144f), 1189) + num2++; + span48[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047632u, new Vector3(723.537f, -133.17401f, 543.1144f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook }; @@ -340389,13 +413439,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "liza"; questRoot7.Author = list49; - num = 6; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span14 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference37 = ref span14[0]; + index = 6; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference37 = ref span50[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -340403,52 +413456,70 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047636u, new Vector3(720.2715f, -133.174f, 545.00635f), 1189) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047636u, new Vector3(720.2715f, -133.174f, 545.00635f), 1189) { StopDistance = 6f }; obj35.Steps = list51; reference37 = obj35; - ref QuestSequence reference38 = ref span14[1]; + num++; + ref QuestSequence reference38 = ref span50[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - Span span15 = CollectionsMarshal.AsSpan(list52); - ref QuestStep reference39 = ref span15[0]; + index2 = 2; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + ref QuestStep reference39 = ref span52[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1047641u, new Vector3(624.65857f, -137.12656f, 513.69495f), 1189); num3 = 6; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span16 = CollectionsMarshal.AsSpan(list53); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span53 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = null; + index3++; + span53[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list53; reference39 = questStep3; - ref QuestStep reference40 = ref span15[1]; + num2++; + ref QuestStep reference40 = ref span52[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1047640u, new Vector3(561.8219f, -142.49185f, 502.7389f), 1189); - num3 = 6; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span17 = CollectionsMarshal.AsSpan(list54); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list54 = new List(index3); + CollectionsMarshal.SetCount(list54, index3); + Span span54 = CollectionsMarshal.AsSpan(list54); + num3 = 0; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = null; + num3++; + span54[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list54; reference40 = questStep4; obj36.Steps = list52; reference38 = obj36; - ref QuestSequence reference41 = ref span14[2]; + num++; + ref QuestSequence reference41 = ref span50[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 @@ -340456,21 +413527,27 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1047638u, new Vector3(604.8219f, -137.17403f, 488.27344f), 1189); + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.Interact, 1047638u, new Vector3(604.8219f, -137.17403f, 488.27344f), 1189); obj37.Steps = list55; reference41 = obj37; - ref QuestSequence reference42 = ref span14[3]; + num++; + ref QuestSequence reference42 = ref span50[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1047644u, new Vector3(213.8551f, -161.35498f, 417.01367f), 1189); + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.Interact, 1047644u, new Vector3(213.8551f, -161.35498f, 417.01367f), 1189); obj38.Steps = list56; reference42 = obj38; - ref QuestSequence reference43 = ref span14[4]; + num++; + ref QuestSequence reference43 = ref span50[num]; QuestSequence obj39 = new QuestSequence { Sequence = 4 @@ -340478,27 +413555,33 @@ public static class AssemblyQuestLoader num2 = 3; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span18 = CollectionsMarshal.AsSpan(list57); - span18[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013952u, new Vector3(205.15747f, -193.59125f, 160.99792f), 1189) + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013952u, new Vector3(205.15747f, -193.59125f, 160.99792f), 1189) { AetherCurrentId = 2818442u }; - span18[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013950u, new Vector3(39.352905f, -158.61761f, -2.3347168f), 1189) + index2++; + span57[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013950u, new Vector3(39.352905f, -158.61761f, -2.3347168f), 1189) { AetherCurrentId = 2818437u }; - span18[2] = new QuestStep(EInteractionType.Interact, 2013652u, new Vector3(-11.306946f, -166.15558f, 4.3792725f), 1189); + index2++; + span57[index2] = new QuestStep(EInteractionType.Interact, 2013652u, new Vector3(-11.306946f, -166.15558f, 4.3792725f), 1189); obj39.Steps = list57; reference43 = obj39; - ref QuestSequence reference44 = ref span14[5]; + num++; + ref QuestSequence reference44 = ref span50[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047649u, new Vector3(-13.382202f, -166.21887f, 2.1209717f), 1189) + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047649u, new Vector3(-13.382202f, -166.21887f, 2.1209717f), 1189) { StopDistance = 7f }; @@ -340511,13 +413594,16 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - CollectionsMarshal.AsSpan(list59)[0] = "liza"; + Span span59 = CollectionsMarshal.AsSpan(list59); + index = 0; + span59[index] = "liza"; questRoot8.Author = list59; - num = 7; - List list60 = new List(num); - CollectionsMarshal.SetCount(list60, num); - Span span19 = CollectionsMarshal.AsSpan(list60); - ref QuestSequence reference45 = ref span19[0]; + index = 7; + List list60 = new List(index); + CollectionsMarshal.SetCount(list60, index); + Span span60 = CollectionsMarshal.AsSpan(list60); + num = 0; + ref QuestSequence reference45 = ref span60[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -340525,22 +413611,26 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047649u, new Vector3(-13.382202f, -166.21887f, 2.1209717f), 1189) + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + span61[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047649u, new Vector3(-13.382202f, -166.21887f, 2.1209717f), 1189) { StopDistance = 7f }; obj41.Steps = list61; reference45 = obj41; - ref QuestSequence reference46 = ref span19[1]; + num++; + ref QuestSequence reference46 = ref span60[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - Span span20 = CollectionsMarshal.AsSpan(list62); - ref QuestStep reference47 = ref span20[0]; + index2 = 4; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + ref QuestStep reference47 = ref span62[num2]; QuestStep obj43 = new QuestStep(EInteractionType.Interact, 1047659u, new Vector3(-8.133057f, -166.18016f, 2.1209717f), 1189) { StopDistance = 5f @@ -340548,30 +413638,44 @@ public static class AssemblyQuestLoader num3 = 6; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span21 = CollectionsMarshal.AsSpan(list63); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span63 = CollectionsMarshal.AsSpan(list63); + index3 = 0; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = null; + index3++; + span63[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj43.CompletionQuestVariablesFlags = list63; reference47 = obj43; - ref QuestStep reference48 = ref span20[1]; + num2++; + ref QuestStep reference48 = ref span62[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1047655u, new Vector3(-9.567444f, -166.3551f, -3.5858765f), 1189); - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span22 = CollectionsMarshal.AsSpan(list64); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list64 = new List(index3); + CollectionsMarshal.SetCount(list64, index3); + Span span64 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list64; reference48 = questStep5; - ref QuestStep reference49 = ref span20[2]; + num2++; + ref QuestStep reference49 = ref span62[num2]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 1047557u, new Vector3(-11.001831f, -166.37114f, -6.1799316f), 1189) { StopDistance = 7f @@ -340579,35 +413683,49 @@ public static class AssemblyQuestLoader num3 = 6; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span23 = CollectionsMarshal.AsSpan(list65); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span65 = CollectionsMarshal.AsSpan(list65); + index3 = 0; + span65[index3] = null; + index3++; + span65[index3] = null; + index3++; + span65[index3] = null; + index3++; + span65[index3] = null; + index3++; + span65[index3] = null; + index3++; + span65[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj44.CompletionQuestVariablesFlags = list65; reference49 = obj44; - ref QuestStep reference50 = ref span20[3]; + num2++; + ref QuestStep reference50 = ref span62[num2]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1047656u, new Vector3(-12.64978f, -166.20668f, -3.2807007f), 1189) { StopDistance = 7f }; - num3 = 6; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span24 = CollectionsMarshal.AsSpan(list66); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list66 = new List(index3); + CollectionsMarshal.SetCount(list66, index3); + Span span66 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj45.CompletionQuestVariablesFlags = list66; reference50 = obj45; obj42.Steps = list62; reference46 = obj42; - ref QuestSequence reference51 = ref span19[2]; + num++; + ref QuestSequence reference51 = ref span60[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -340615,24 +413733,30 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1047649u, new Vector3(-13.382202f, -166.21887f, 2.1209717f), 1189) + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.Interact, 1047649u, new Vector3(-13.382202f, -166.21887f, 2.1209717f), 1189) { StopDistance = 7f }; obj46.Steps = list67; reference51 = obj46; - ref QuestSequence reference52 = ref span19[3]; + num++; + ref QuestSequence reference52 = ref span60[num]; QuestSequence obj47 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1047664u, new Vector3(64.16406f, -178.47437f, 399.70996f), 1189); + index2 = 1; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + span68[num2] = new QuestStep(EInteractionType.Interact, 1047664u, new Vector3(64.16406f, -178.47437f, 399.70996f), 1189); obj47.Steps = list68; reference52 = obj47; - ref QuestSequence reference53 = ref span19[4]; + num++; + ref QuestSequence reference53 = ref span60[num]; QuestSequence obj48 = new QuestSequence { Sequence = 4 @@ -340640,8 +413764,9 @@ public static class AssemblyQuestLoader num2 = 7; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span25 = CollectionsMarshal.AsSpan(list69); - ref QuestStep reference54 = ref span25[0]; + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + ref QuestStep reference54 = ref span69[index2]; QuestStep obj49 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.721737f, -214.22571f, 435.2371f), 1189) { DisableNavmesh = true, @@ -340652,124 +413777,176 @@ public static class AssemblyQuestLoader num3 = 6; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span26 = CollectionsMarshal.AsSpan(list70); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span70 = CollectionsMarshal.AsSpan(list70); + index3 = 0; + span70[index3] = null; + index3++; + span70[index3] = null; + index3++; + span70[index3] = null; + index3++; + span70[index3] = null; + index3++; + span70[index3] = null; + index3++; + span70[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list70; skipConditions.StepIf = skipStepConditions; obj49.SkipConditions = skipConditions; reference54 = obj49; - ref QuestStep reference55 = ref span25[1]; + index2++; + ref QuestStep reference55 = ref span69[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2013653u, new Vector3(-3.0060425f, -215.01495f, 475.9746f), 1189); - num3 = 6; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - Span span27 = CollectionsMarshal.AsSpan(list71); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list71 = new List(index3); + CollectionsMarshal.SetCount(list71, index3); + Span span71 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = null; + num3++; + span71[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list71; reference55 = questStep6; - ref QuestStep reference56 = ref span25[2]; + index2++; + ref QuestStep reference56 = ref span69[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-9.934677f, -215.01515f, 540.4687f), 1189); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - Span span28 = CollectionsMarshal.AsSpan(list72); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span72 = CollectionsMarshal.AsSpan(list72); + index3 = 0; + span72[index3] = null; + index3++; + span72[index3] = null; + index3++; + span72[index3] = null; + index3++; + span72[index3] = null; + index3++; + span72[index3] = null; + index3++; + span72[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list72; skipConditions2.StepIf = skipStepConditions2; questStep7.SkipConditions = skipConditions2; reference56 = questStep7; - ref QuestStep reference57 = ref span25[3]; + index2++; + ref QuestStep reference57 = ref span69[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2013655u, new Vector3(-4.928711f, -213.2143f, 543.8773f), 1189); - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span29 = CollectionsMarshal.AsSpan(list73); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + Span span73 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list73; reference57 = questStep8; - ref QuestStep reference58 = ref span25[4]; + index2++; + ref QuestStep reference58 = ref span69[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2013654u, new Vector3(-55.86328f, -213.6416f, 522.57556f), 1189); num3 = 6; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - Span span30 = CollectionsMarshal.AsSpan(list74); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span74 = CollectionsMarshal.AsSpan(list74); + index3 = 0; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list74; reference58 = questStep9; - ref QuestStep reference59 = ref span25[5]; + index2++; + ref QuestStep reference59 = ref span69[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2013672u, new Vector3(-147.84473f, -215.04541f, 356.0692f), 1189); - num3 = 6; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - Span span31 = CollectionsMarshal.AsSpan(list75); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span75 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list75; reference59 = questStep10; - ref QuestStep reference60 = ref span25[6]; + index2++; + ref QuestStep reference60 = ref span69[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2013675u, new Vector3(-152.02563f, -214.06885f, 327.38232f), 1189); num3 = 6; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span32 = CollectionsMarshal.AsSpan(list76); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span76 = CollectionsMarshal.AsSpan(list76); + index3 = 0; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list76; reference60 = questStep11; obj48.Steps = list69; reference53 = obj48; - ref QuestSequence reference61 = ref span19[5]; + num++; + ref QuestSequence reference61 = ref span60[num]; QuestSequence obj50 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - Span span33 = CollectionsMarshal.AsSpan(list77); - span33[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-136.90475f, -215.01514f, 330.17505f), 1189) + index2 = 2; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-136.90475f, -215.01514f, 330.17505f), 1189) { Mount = true }; - span33[1] = new QuestStep(EInteractionType.Interact, 1047669u, new Vector3(-96.87958f, -214.29678f, 385.27502f), 1189); + num2++; + span77[num2] = new QuestStep(EInteractionType.Interact, 1047669u, new Vector3(-96.87958f, -214.29678f, 385.27502f), 1189); obj50.Steps = list77; reference61 = obj50; - ref QuestSequence reference62 = ref span19[6]; + num++; + ref QuestSequence reference62 = ref span60[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -340777,9 +413954,11 @@ public static class AssemblyQuestLoader num2 = 2; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span34 = CollectionsMarshal.AsSpan(list78); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.8908f, -164.33757f, 40.24882f), 1189); - span34[1] = new QuestStep(EInteractionType.CompleteQuest, 1047622u, new Vector3(-15.701599f, -166.02748f, 0.47296143f), 1189); + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.8908f, -164.33757f, 40.24882f), 1189); + index2++; + span78[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047622u, new Vector3(-15.701599f, -166.02748f, 0.47296143f), 1189); obj51.Steps = list78; reference62 = obj51; questRoot8.QuestSequence = list60; @@ -340789,24 +413968,30 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + Span span79 = CollectionsMarshal.AsSpan(list79); + index = 0; + span79[index] = "liza"; questRoot9.Author = list79; - num = 6; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span35 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference63 = ref span35[0]; + index = 6; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + Span span80 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference63 = ref span80[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047622u, new Vector3(-15.701599f, -166.02748f, 0.47296143f), 1189); + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047622u, new Vector3(-15.701599f, -166.02748f, 0.47296143f), 1189); obj52.Steps = list81; reference63 = obj52; - ref QuestSequence reference64 = ref span35[1]; + num++; + ref QuestSequence reference64 = ref span80[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 @@ -340814,27 +413999,33 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 2013656u, new Vector3(-12.3446045f, -166.24707f, 2.3651123f), 1189) + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.Interact, 2013656u, new Vector3(-12.3446045f, -166.24707f, 2.3651123f), 1189) { StopDistance = 4.5f }; obj53.Steps = list82; reference64 = obj53; - ref QuestSequence reference65 = ref span35[2]; + num++; + ref QuestSequence reference65 = ref span80[num]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1047678u, new Vector3(498.37476f, -146.73578f, 481.07104f), 1189) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.Interact, 1047678u, new Vector3(498.37476f, -146.73578f, 481.07104f), 1189) { StopDistance = 7f }; obj54.Steps = list83; reference65 = obj54; - ref QuestSequence reference66 = ref span35[3]; + num++; + ref QuestSequence reference66 = ref span80[num]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -340842,7 +414033,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1047682u, new Vector3(353.56665f, -113.97447f, 597.0397f), 1189) + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1047682u, new Vector3(353.56665f, -113.97447f, 597.0397f), 1189) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -340851,19 +414044,23 @@ public static class AssemblyQuestLoader }; obj55.Steps = list84; reference66 = obj55; - span35[4] = new QuestSequence + num++; + span80[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference67 = ref span35[5]; + num++; + ref QuestSequence reference67 = ref span80[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047688u, new Vector3(359.48718f, -113.97447f, 595.45276f), 1189) + index2 = 1; + List list85 = new List(index2); + CollectionsMarshal.SetCount(list85, index2); + Span span85 = CollectionsMarshal.AsSpan(list85); + num2 = 0; + span85[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047688u, new Vector3(359.48718f, -113.97447f, 595.45276f), 1189) { StopDistance = 7f }; @@ -340876,13 +414073,16 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - CollectionsMarshal.AsSpan(list86)[0] = "liza"; + Span span86 = CollectionsMarshal.AsSpan(list86); + index = 0; + span86[index] = "liza"; questRoot10.Author = list86; - num = 8; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span36 = CollectionsMarshal.AsSpan(list87); - ref QuestSequence reference68 = ref span36[0]; + index = 8; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + Span span87 = CollectionsMarshal.AsSpan(list87); + num = 0; + ref QuestSequence reference68 = ref span87[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -340890,33 +414090,40 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047695u, new Vector3(503.19666f, -137.174f, 559.47205f), 1189) + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047695u, new Vector3(503.19666f, -137.174f, 559.47205f), 1189) { StopDistance = 7f }; obj57.Steps = list88; reference68 = obj57; - ref QuestSequence reference69 = ref span36[1]; + num++; + ref QuestSequence reference69 = ref span87[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - Span span37 = CollectionsMarshal.AsSpan(list89); - span37[0] = new QuestStep(EInteractionType.AcceptQuest, 1051052u, new Vector3(585.90063f, -142.49187f, 510.21594f), 1189) + index2 = 3; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051052u, new Vector3(585.90063f, -142.49187f, 510.21594f), 1189) { PickUpQuestId = new QuestId(5103) }; - span37[1] = new QuestStep(EInteractionType.AcceptQuest, 1050884u, new Vector3(531.0597f, -142.49185f, 492.0271f), 1189) + num2++; + span89[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050884u, new Vector3(531.0597f, -142.49185f, 492.0271f), 1189) { PickUpQuestId = new QuestId(5114) }; - span37[2] = new QuestStep(EInteractionType.Interact, 1047701u, new Vector3(572.7473f, -117.35814f, 288.3192f), 1189); + num2++; + span89[num2] = new QuestStep(EInteractionType.Interact, 1047701u, new Vector3(572.7473f, -117.35814f, 288.3192f), 1189); obj58.Steps = list89; reference69 = obj58; - ref QuestSequence reference70 = ref span36[2]; + num++; + ref QuestSequence reference70 = ref span87[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 @@ -340924,24 +414131,30 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1047623u, new Vector3(531.18164f, -130.77031f, 307.45398f), 1189); + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.Interact, 1047623u, new Vector3(531.18164f, -130.77031f, 307.45398f), 1189); obj59.Steps = list90; reference70 = obj59; - ref QuestSequence reference71 = ref span36[3]; + num++; + ref QuestSequence reference71 = ref span87[num]; QuestSequence obj60 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 2013658u, new Vector3(740.93225f, -133.19604f, 515.80054f), 1189) + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span91[num2] = new QuestStep(EInteractionType.Interact, 2013658u, new Vector3(740.93225f, -133.19604f, 515.80054f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook }; obj60.Steps = list91; reference71 = obj60; - ref QuestSequence reference72 = ref span36[4]; + num++; + ref QuestSequence reference72 = ref span87[num]; QuestSequence obj61 = new QuestSequence { Sequence = 4 @@ -340949,15 +414162,19 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - ref QuestStep reference73 = ref CollectionsMarshal.AsSpan(list92)[0]; + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + ref QuestStep reference73 = ref span92[index2]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 1047707u, new Vector3(-711.1162f, -199.5873f, 624.1703f), 1189) { StopDistance = 5f }; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = new DialogueChoice + index3 = 1; + List list93 = new List(index3); + CollectionsMarshal.SetCount(list93, index3); + Span span93 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + span93[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMC113_04909_Q1_000_090") @@ -340966,15 +414183,18 @@ public static class AssemblyQuestLoader reference73 = obj62; obj61.Steps = list92; reference72 = obj61; - ref QuestSequence reference74 = ref span36[5]; + num++; + ref QuestSequence reference74 = ref span87[num]; QuestSequence obj63 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Duty, null, null, 1189) + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.Duty, null, null, 1189) { DutyOptions = new DutyOptions { @@ -340984,11 +414204,13 @@ public static class AssemblyQuestLoader }; obj63.Steps = list94; reference74 = obj63; - span36[6] = new QuestSequence + num++; + span87[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference75 = ref span36[7]; + num++; + ref QuestSequence reference75 = ref span87[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -340996,7 +414218,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047718u, new Vector3(-156.4508f, -14.999485f, 210.40662f), 1185); + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047718u, new Vector3(-156.4508f, -14.999485f, 210.40662f), 1185); obj64.Steps = list95; reference75 = obj64; questRoot10.QuestSequence = list87; @@ -341006,27 +414230,33 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + span96[index] = "liza"; questRoot11.Author = list96; - num = 2; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span38 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference76 = ref span38[0]; + index = 2; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + Span span97 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference76 = ref span97[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046541u, new Vector3(-166.85742f, -14.999356f, 208.27039f), 1185) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046541u, new Vector3(-166.85742f, -14.999356f, 208.27039f), 1185) { DisableNavmesh = true }; obj65.Steps = list98; reference76 = obj65; - ref QuestSequence reference77 = ref span38[1]; + num++; + ref QuestSequence reference77 = ref span97[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -341034,7 +414264,9 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047726u, new Vector3(-86.778076f, 100f, -167.37628f), 1185) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047726u, new Vector3(-86.778076f, 100f, -167.37628f), 1185) { StopDistance = 4f }; @@ -341047,27 +414279,33 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "liza"; + Span span100 = CollectionsMarshal.AsSpan(list100); + index = 0; + span100[index] = "liza"; questRoot12.Author = list100; - num = 7; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span39 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference78 = ref span39[0]; + index = 7; + List list101 = new List(index); + CollectionsMarshal.SetCount(list101, index); + Span span101 = CollectionsMarshal.AsSpan(list101); + num = 0; + ref QuestSequence reference78 = ref span101[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047726u, new Vector3(-86.778076f, 100f, -167.37628f), 1185) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047726u, new Vector3(-86.778076f, 100f, -167.37628f), 1185) { StopDistance = 4f }; obj67.Steps = list102; reference78 = obj67; - ref QuestSequence reference79 = ref span39[1]; + num++; + ref QuestSequence reference79 = ref span101[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -341075,18 +414313,23 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1047730u, new Vector3(-32.089783f, 95.5f, -77.683716f), 1185); + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + span103[index2] = new QuestStep(EInteractionType.Interact, 1047730u, new Vector3(-32.089783f, 95.5f, -77.683716f), 1185); obj68.Steps = list103; reference79 = obj68; - ref QuestSequence reference80 = ref span39[2]; + num++; + ref QuestSequence reference80 = ref span101[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1047731u, new Vector3(93.18677f, -14f, 34.74475f), 1185) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.Interact, 1047731u, new Vector3(93.18677f, -14f, 34.74475f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -341096,7 +414339,8 @@ public static class AssemblyQuestLoader }; obj69.Steps = list104; reference80 = obj69; - ref QuestSequence reference81 = ref span39[3]; + num++; + ref QuestSequence reference81 = ref span101[num]; QuestSequence obj70 = new QuestSequence { Sequence = 3 @@ -341104,21 +414348,27 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1047735u, new Vector3(-31.296265f, -10.00001f, 87.907104f), 1185); + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.Interact, 1047735u, new Vector3(-31.296265f, -10.00001f, 87.907104f), 1185); obj70.Steps = list105; reference81 = obj70; - ref QuestSequence reference82 = ref span39[4]; + num++; + ref QuestSequence reference82 = ref span101[num]; QuestSequence obj71 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1047740u, new Vector3(-51.407654f, -19.32829f, 211.84094f), 1185); + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.Interact, 1047740u, new Vector3(-51.407654f, -19.32829f, 211.84094f), 1185); obj71.Steps = list106; reference82 = obj71; - ref QuestSequence reference83 = ref span39[5]; + num++; + ref QuestSequence reference83 = ref span101[num]; QuestSequence obj72 = new QuestSequence { Sequence = 5 @@ -341126,7 +414376,9 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1047812u, new Vector3(-85.06909f, 100.04267f, -169.8482f), 1185) + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new QuestStep(EInteractionType.Interact, 1047812u, new Vector3(-85.06909f, 100.04267f, -169.8482f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -341136,15 +414388,18 @@ public static class AssemblyQuestLoader }; obj72.Steps = list107; reference83 = obj72; - ref QuestSequence reference84 = ref span39[6]; + num++; + ref QuestSequence reference84 = ref span101[num]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047742u, new Vector3(47.043457f, 48f, -425.5589f), 1185) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047742u, new Vector3(47.043457f, 48f, -425.5589f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -341161,13 +414416,16 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + Span span109 = CollectionsMarshal.AsSpan(list109); + index = 0; + span109[index] = "liza"; questRoot13.Author = list109; - num = 6; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span40 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference85 = ref span40[0]; + index = 6; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + Span span110 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference85 = ref span110[num]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -341175,25 +414433,32 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047742u, new Vector3(47.043457f, 48f, -425.5589f), 1185); + Span span111 = CollectionsMarshal.AsSpan(list111); + index2 = 0; + span111[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047742u, new Vector3(47.043457f, 48f, -425.5589f), 1185); obj74.Steps = list111; reference85 = obj74; - ref QuestSequence reference86 = ref span40[1]; + num++; + ref QuestSequence reference86 = ref span110[num]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1047484u, new Vector3(50.980347f, 48f, -430.8385f), 1185); + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.Interact, 1047484u, new Vector3(50.980347f, 48f, -430.8385f), 1185); obj75.Steps = list112; reference86 = obj75; - span40[2] = new QuestSequence + num++; + span110[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference87 = ref span40[3]; + num++; + ref QuestSequence reference87 = ref span110[num]; QuestSequence obj76 = new QuestSequence { Sequence = 3 @@ -341201,26 +414466,32 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1046948u, new Vector3(276.2035f, 10.511233f, 663.447f), 1190); + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.Interact, 1046948u, new Vector3(276.2035f, 10.511233f, 663.447f), 1190); obj76.Steps = list113; reference87 = obj76; - ref QuestSequence reference88 = ref span40[4]; + num++; + ref QuestSequence reference88 = ref span110[num]; QuestSequence obj77 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span41 = CollectionsMarshal.AsSpan(list114); - span41[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013954u, new Vector3(296.0708f, 2.3651123f, 504.02075f), 1190) + index2 = 2; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013954u, new Vector3(296.0708f, 2.3651123f, 504.02075f), 1190) { AetherCurrentId = 2818449u }; - span41[1] = new QuestStep(EInteractionType.Interact, 1046951u, new Vector3(259.266f, -6.482896f, 474.84546f), 1190); + num2++; + span114[num2] = new QuestStep(EInteractionType.Interact, 1046951u, new Vector3(259.266f, -6.482896f, 474.84546f), 1190); obj77.Steps = list114; reference88 = obj77; - ref QuestSequence reference89 = ref span40[5]; + num++; + ref QuestSequence reference89 = ref span110[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -341228,7 +414499,9 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046952u, new Vector3(344.59448f, -1.5287868f, 446.52466f), 1190) + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046952u, new Vector3(344.59448f, -1.5287868f, 446.52466f), 1190) { StopDistance = 5f }; @@ -341241,27 +414514,33 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "liza"; + Span span116 = CollectionsMarshal.AsSpan(list116); + index = 0; + span116[index] = "liza"; questRoot14.Author = list116; - num = 8; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span42 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference90 = ref span42[0]; + index = 8; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + Span span117 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference90 = ref span117[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046952u, new Vector3(344.59448f, -1.5287868f, 446.52466f), 1190) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046952u, new Vector3(344.59448f, -1.5287868f, 446.52466f), 1190) { StopDistance = 5f }; obj79.Steps = list118; reference90 = obj79; - ref QuestSequence reference91 = ref span42[1]; + num++; + ref QuestSequence reference91 = ref span117[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -341269,29 +414548,36 @@ public static class AssemblyQuestLoader num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span43 = CollectionsMarshal.AsSpan(list119); - span43[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) { StopDistance = 8f, Aetheryte = EAetheryteLocation.ShaaloaniHhusatahwi }; - span43[1] = new QuestStep(EInteractionType.Interact, 1046953u, new Vector3(263.7522f, -5.018697f, 496.14697f), 1190); + index2++; + span119[index2] = new QuestStep(EInteractionType.Interact, 1046953u, new Vector3(263.7522f, -5.018697f, 496.14697f), 1190); obj80.Steps = list119; reference91 = obj80; - ref QuestSequence reference92 = ref span42[2]; + num++; + ref QuestSequence reference92 = ref span117[num]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list120)[0]; + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + ref QuestStep reference93 = ref span120[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1046953u, new Vector3(263.7522f, -5.018697f, 496.14697f), 1190); num3 = 1; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = new DialogueChoice + Span span121 = CollectionsMarshal.AsSpan(list121); + index3 = 0; + span121[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMD102_04913_SYSTEM_000_021") @@ -341300,7 +414586,8 @@ public static class AssemblyQuestLoader reference93 = questStep12; obj81.Steps = list120; reference92 = obj81; - ref QuestSequence reference94 = ref span42[3]; + num++; + ref QuestSequence reference94 = ref span117[num]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -341308,27 +414595,33 @@ public static class AssemblyQuestLoader num2 = 2; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span44 = CollectionsMarshal.AsSpan(list122); - span44[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) { StopDistance = 8f, Aetheryte = EAetheryteLocation.ShaaloaniShesheneweziSprings }; - span44[1] = new QuestStep(EInteractionType.Interact, 1046957u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190); + index2++; + span122[index2] = new QuestStep(EInteractionType.Interact, 1046957u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190); obj82.Steps = list122; reference94 = obj82; - ref QuestSequence reference95 = ref span42[4]; + num++; + ref QuestSequence reference95 = ref span117[num]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1046958u, new Vector3(-348.0431f, 18.031187f, -194.01855f), 1190); + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span123[num2] = new QuestStep(EInteractionType.Interact, 1046958u, new Vector3(-348.0431f, 18.031187f, -194.01855f), 1190); obj83.Steps = list123; reference95 = obj83; - ref QuestSequence reference96 = ref span42[5]; + num++; + ref QuestSequence reference96 = ref span117[num]; QuestSequence obj84 = new QuestSequence { Sequence = 5 @@ -341336,34 +414629,42 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list124)[0]; + Span span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + ref QuestStep reference97 = ref span124[index2]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, null, new Vector3(-352.34854f, 18.081078f, -196.42653f), 1190) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 2; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span45 = CollectionsMarshal.AsSpan(list125); - span45[0] = 17697u; - span45[1] = 17698u; + index3 = 2; + List list125 = new List(index3); + CollectionsMarshal.SetCount(list125, index3); + Span span125 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span125[num3] = 17697u; + num3++; + span125[num3] = 17698u; obj85.KillEnemyDataIds = list125; reference97 = obj85; obj84.Steps = list124; reference96 = obj84; - ref QuestSequence reference98 = ref span42[6]; + num++; + ref QuestSequence reference98 = ref span117[num]; QuestSequence obj86 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1046963u, new Vector3(-550.5303f, 29.792864f, -190.05121f), 1190); + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.Interact, 1046963u, new Vector3(-550.5303f, 29.792864f, -190.05121f), 1190); obj86.Steps = list126; reference98 = obj86; - ref QuestSequence reference99 = ref span42[7]; + num++; + ref QuestSequence reference99 = ref span117[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -341371,7 +414672,9 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190) + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; @@ -341384,24 +414687,30 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + Span span128 = CollectionsMarshal.AsSpan(list128); + index = 0; + span128[index] = "liza"; questRoot15.Author = list128; - num = 8; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span46 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference100 = ref span46[0]; + index = 8; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + Span span129 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference100 = ref span129[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046965u, new Vector3(-314.35114f, 18.83441f, -177.5998f), 1190); + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046965u, new Vector3(-314.35114f, 18.83441f, -177.5998f), 1190); obj88.Steps = list130; reference100 = obj88; - ref QuestSequence reference101 = ref span46[1]; + num++; + ref QuestSequence reference101 = ref span129[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -341409,88 +414718,118 @@ public static class AssemblyQuestLoader num2 = 3; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span47 = CollectionsMarshal.AsSpan(list131); - span47[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013956u, new Vector3(-602.92975f, 37.735474f, -352.3766f), 1190) + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013956u, new Vector3(-602.92975f, 37.735474f, -352.3766f), 1190) { AetherCurrentId = 2818453u }; - span47[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-598.1151f, 30.742912f, -80.21621f), 1190) + index2++; + span131[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-598.1151f, 30.742912f, -80.21621f), 1190) { Comment = "Avoids combat" }; - span47[2] = new QuestStep(EInteractionType.Interact, 1046967u, new Vector3(-585.47345f, 27.234344f, -59.18976f), 1190); + index2++; + span131[index2] = new QuestStep(EInteractionType.Interact, 1046967u, new Vector3(-585.47345f, 27.234344f, -59.18976f), 1190); obj89.Steps = list131; reference101 = obj89; - ref QuestSequence reference102 = ref span46[2]; + num++; + ref QuestSequence reference102 = ref span129[num]; QuestSequence obj90 = new QuestSequence { Sequence = 2 }; - num2 = 7; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - Span span48 = CollectionsMarshal.AsSpan(list132); - ref QuestStep reference103 = ref span48[0]; + index2 = 7; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + ref QuestStep reference103 = ref span132[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2013798u, new Vector3(-636.5912f, 28.366455f, -34.62274f), 1190); num3 = 6; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - Span span49 = CollectionsMarshal.AsSpan(list133); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span133 = CollectionsMarshal.AsSpan(list133); + index3 = 0; + span133[index3] = null; + index3++; + span133[index3] = null; + index3++; + span133[index3] = null; + index3++; + span133[index3] = null; + index3++; + span133[index3] = null; + index3++; + span133[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list133; reference103 = questStep13; - span48[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-633.4026f, 27.22425f, -62.308163f), 1190) + num2++; + span132[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-633.4026f, 27.22425f, -62.308163f), 1190) { Mount = true }; - span48[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-673.0745f, 29.140228f, -93.67751f), 1190); - span48[3] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013955u, new Vector3(-709.43774f, 33.401978f, -80.36932f), 1190) + num2++; + span132[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-673.0745f, 29.140228f, -93.67751f), 1190); + num2++; + span132[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013955u, new Vector3(-709.43774f, 33.401978f, -80.36932f), 1190) { AetherCurrentId = 2818450u }; - ref QuestStep reference104 = ref span48[4]; + num2++; + ref QuestStep reference104 = ref span132[num2]; QuestStep obj91 = new QuestStep(EInteractionType.Interact, 2013799u, new Vector3(-687.89197f, 27.115234f, -57.114563f), 1190) { DisableNavmesh = true }; - num3 = 6; - List list134 = new List(num3); - CollectionsMarshal.SetCount(list134, num3); - Span span50 = CollectionsMarshal.AsSpan(list134); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list134 = new List(index3); + CollectionsMarshal.SetCount(list134, index3); + Span span134 = CollectionsMarshal.AsSpan(list134); + num3 = 0; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj91.CompletionQuestVariablesFlags = list134; reference104 = obj91; - span48[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-725.3725f, 28.795446f, -39.464005f), 1190) + num2++; + span132[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-725.3725f, 28.795446f, -39.464005f), 1190) { Mount = true }; - ref QuestStep reference105 = ref span48[6]; + num2++; + ref QuestStep reference105 = ref span132[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2013800u, new Vector3(-723.8728f, 30.319702f, -12.497192f), 1190); num3 = 6; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - Span span51 = CollectionsMarshal.AsSpan(list135); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span135 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = null; + index3++; + span135[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list135; reference105 = questStep14; obj90.Steps = list132; reference102 = obj90; - ref QuestSequence reference106 = ref span46[3]; + num++; + ref QuestSequence reference106 = ref span129[num]; QuestSequence obj92 = new QuestSequence { Sequence = 3 @@ -341498,24 +414837,30 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1046968u, new Vector3(-727.26025f, 29.026073f, -19.424805f), 1190) + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span136[index2] = new QuestStep(EInteractionType.Interact, 1046968u, new Vector3(-727.26025f, 29.026073f, -19.424805f), 1190) { StopDistance = 6f }; obj92.Steps = list136; reference106 = obj92; - ref QuestSequence reference107 = ref span46[4]; + num++; + ref QuestSequence reference107 = ref span129[num]; QuestSequence obj93 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1046969u, new Vector3(-290.9743f, 4.6221595f, 282.88696f), 1190); + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span137[num2] = new QuestStep(EInteractionType.Interact, 1046969u, new Vector3(-290.9743f, 4.6221595f, 282.88696f), 1190); obj93.Steps = list137; reference107 = obj93; - ref QuestSequence reference108 = ref span46[5]; + num++; + ref QuestSequence reference108 = ref span129[num]; QuestSequence obj94 = new QuestSequence { Sequence = 5 @@ -341523,21 +414868,27 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 2013801u, new Vector3(-415.36584f, 17.654663f, 652.61304f), 1190); + Span span138 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span138[index2] = new QuestStep(EInteractionType.Interact, 2013801u, new Vector3(-415.36584f, 17.654663f, 652.61304f), 1190); obj94.Steps = list138; reference108 = obj94; - ref QuestSequence reference109 = ref span46[6]; + num++; + ref QuestSequence reference109 = ref span129[num]; QuestSequence obj95 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1046969u, new Vector3(-290.9743f, 4.6221595f, 282.88696f), 1190); + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + Span span139 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span139[num2] = new QuestStep(EInteractionType.Interact, 1046969u, new Vector3(-290.9743f, 4.6221595f, 282.88696f), 1190); obj95.Steps = list139; reference109 = obj95; - ref QuestSequence reference110 = ref span46[7]; + num++; + ref QuestSequence reference110 = ref span129[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -341545,7 +414896,9 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046967u, new Vector3(-585.47345f, 27.234344f, -59.18976f), 1190); + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046967u, new Vector3(-585.47345f, 27.234344f, -59.18976f), 1190); obj96.Steps = list140; reference110 = obj96; questRoot15.QuestSequence = list129; @@ -341555,24 +414908,30 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "liza"; + Span span141 = CollectionsMarshal.AsSpan(list141); + index = 0; + span141[index] = "liza"; questRoot16.Author = list141; - num = 4; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span52 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference111 = ref span52[0]; + index = 4; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + Span span142 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference111 = ref span142[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046967u, new Vector3(-585.47345f, 27.234344f, -59.18976f), 1190); + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + Span span143 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span143[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046967u, new Vector3(-585.47345f, 27.234344f, -59.18976f), 1190); obj97.Steps = list143; reference111 = obj97; - ref QuestSequence reference112 = ref span52[1]; + num++; + ref QuestSequence reference112 = ref span142[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -341580,14 +414939,18 @@ public static class AssemblyQuestLoader num2 = 4; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span53 = CollectionsMarshal.AsSpan(list144); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-648.89136f, 26.786625f, -46.720688f), 1190); - span53[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-676.2089f, 26.02775f, -43.611156f), 1190); - span53[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-689.61786f, 26.372868f, -33.830494f), 1190) + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + span144[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-648.89136f, 26.786625f, -46.720688f), 1190); + index2++; + span144[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-676.2089f, 26.02775f, -43.611156f), 1190); + index2++; + span144[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-689.61786f, 26.372868f, -33.830494f), 1190) { DisableNavmesh = true }; - span53[3] = new QuestStep(EInteractionType.UseItem, 2013804u, new Vector3(-690.69965f, 27.17627f, -26.230347f), 1190) + index2++; + span144[index2] = new QuestStep(EInteractionType.UseItem, 2013804u, new Vector3(-690.69965f, 27.17627f, -26.230347f), 1190) { StopDistance = 4.5f, ItemId = 2003507u, @@ -341595,21 +414958,25 @@ public static class AssemblyQuestLoader }; obj98.Steps = list144; reference112 = obj98; - ref QuestSequence reference113 = ref span52[2]; + num++; + ref QuestSequence reference113 = ref span142[num]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1046970u, new Vector3(-563.01215f, 24.654175f, 26.199707f), 1190) + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span145[num2] = new QuestStep(EInteractionType.Interact, 1046970u, new Vector3(-563.01215f, 24.654175f, 26.199707f), 1190) { StopDistance = 4f }; obj99.Steps = list145; reference113 = obj99; - ref QuestSequence reference114 = ref span52[3]; + num++; + ref QuestSequence reference114 = ref span142[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -341617,7 +414984,9 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046972u, new Vector3(-441.70294f, 21.84097f, -117.81494f), 1190); + Span span146 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + span146[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046972u, new Vector3(-441.70294f, 21.84097f, -117.81494f), 1190); obj100.Steps = list146; reference114 = obj100; questRoot16.QuestSequence = list142; @@ -341627,27 +414996,33 @@ public static class AssemblyQuestLoader num = 1; List list147 = new List(num); CollectionsMarshal.SetCount(list147, num); - CollectionsMarshal.AsSpan(list147)[0] = "liza"; + Span span147 = CollectionsMarshal.AsSpan(list147); + index = 0; + span147[index] = "liza"; questRoot17.Author = list147; - num = 8; - List list148 = new List(num); - CollectionsMarshal.SetCount(list148, num); - Span span54 = CollectionsMarshal.AsSpan(list148); - ref QuestSequence reference115 = ref span54[0]; + index = 8; + List list148 = new List(index); + CollectionsMarshal.SetCount(list148, index); + Span span148 = CollectionsMarshal.AsSpan(list148); + num = 0; + ref QuestSequence reference115 = ref span148[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046973u, new Vector3(-442.58795f, 21.820835f, -118.638916f), 1190) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046973u, new Vector3(-442.58795f, 21.820835f, -118.638916f), 1190) { StopDistance = 5f }; obj101.Steps = list149; reference115 = obj101; - ref QuestSequence reference116 = ref span54[1]; + num++; + ref QuestSequence reference116 = ref span148[num]; QuestSequence obj102 = new QuestSequence { Sequence = 1 @@ -341655,24 +415030,30 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1046974u, new Vector3(-386.83148f, 18.239126f, -136.73608f), 1190); + Span span150 = CollectionsMarshal.AsSpan(list150); + index2 = 0; + span150[index2] = new QuestStep(EInteractionType.Interact, 1046974u, new Vector3(-386.83148f, 18.239126f, -136.73608f), 1190); obj102.Steps = list150; reference116 = obj102; - ref QuestSequence reference117 = ref span54[2]; + num++; + ref QuestSequence reference117 = ref span148[num]; QuestSequence obj103 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Emote, 1046974u, new Vector3(-386.83148f, 18.239126f, -136.73608f), 1190) + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span151[num2] = new QuestStep(EInteractionType.Emote, 1046974u, new Vector3(-386.83148f, 18.239126f, -136.73608f), 1190) { Emote = EEmote.Poke }; obj103.Steps = list151; reference117 = obj103; - ref QuestSequence reference118 = ref span54[3]; + num++; + ref QuestSequence reference118 = ref span148[num]; QuestSequence obj104 = new QuestSequence { Sequence = 3 @@ -341680,12 +415061,16 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - ref QuestStep reference119 = ref CollectionsMarshal.AsSpan(list152)[0]; + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + ref QuestStep reference119 = ref span152[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2013805u, new Vector3(-225.78778f, 1.0223389f, 71.7937f), 1190); - num3 = 1; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = new DialogueChoice + index3 = 1; + List list153 = new List(index3); + CollectionsMarshal.SetCount(list153, index3); + Span span153 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span153[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMD105_04916_Q3_000_000"), @@ -341695,22 +415080,27 @@ public static class AssemblyQuestLoader reference119 = questStep15; obj104.Steps = list152; reference118 = obj104; - ref QuestSequence reference120 = ref span54[4]; + num++; + ref QuestSequence reference120 = ref span148[num]; QuestSequence obj105 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - Span span55 = CollectionsMarshal.AsSpan(list154); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-35.49104f, 1.3946064f, 178.915f), 1190); - ref QuestStep reference121 = ref span55[1]; + index2 = 2; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-35.49104f, 1.3946064f, 178.915f), 1190); + num2++; + ref QuestStep reference121 = ref span154[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2013806u, new Vector3(5.081238f, -5.1118164f, 167.28455f), 1190); num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = new DialogueChoice + Span span155 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span155[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMD105_04916_Q4_000_000"), @@ -341720,7 +415110,8 @@ public static class AssemblyQuestLoader reference121 = questStep16; obj105.Steps = list154; reference120 = obj105; - ref QuestSequence reference122 = ref span54[5]; + num++; + ref QuestSequence reference122 = ref span148[num]; QuestSequence obj106 = new QuestSequence { Sequence = 5 @@ -341728,18 +415119,23 @@ public static class AssemblyQuestLoader num2 = 3; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span56 = CollectionsMarshal.AsSpan(list156); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(18.420094f, 3.3226922f, 262.78665f), 1190); - span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(36.42842f, 3.2765028f, 281.39154f), 1190); - ref QuestStep reference123 = ref span56[2]; + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(18.420094f, 3.3226922f, 262.78665f), 1190); + index2++; + span156[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(36.42842f, 3.2765028f, 281.39154f), 1190); + index2++; + ref QuestStep reference123 = ref span156[index2]; QuestStep obj107 = new QuestStep(EInteractionType.Interact, 2013807u, new Vector3(37.15564f, 4.2266846f, 290.66907f), 1190) { StopDistance = 1f }; - num3 = 1; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = new DialogueChoice + index3 = 1; + List list157 = new List(index3); + CollectionsMarshal.SetCount(list157, index3); + Span span157 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span157[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMD105_04916_Q5_000_000"), @@ -341749,21 +415145,25 @@ public static class AssemblyQuestLoader reference123 = obj107; obj106.Steps = list156; reference122 = obj106; - ref QuestSequence reference124 = ref span54[6]; + num++; + ref QuestSequence reference124 = ref span148[num]; QuestSequence obj108 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1046974u, new Vector3(160.01617f, 8.759198f, 514.9438f), 1190) + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span158[num2] = new QuestStep(EInteractionType.Interact, 1046974u, new Vector3(160.01617f, 8.759198f, 514.9438f), 1190) { StopDistance = 0.25f }; obj108.Steps = list158; reference124 = obj108; - ref QuestSequence reference125 = ref span54[7]; + num++; + ref QuestSequence reference125 = ref span148[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -341771,7 +415171,9 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046975u, new Vector3(348.6228f, -1.601824f, 449.9121f), 1190); + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046975u, new Vector3(348.6228f, -1.601824f, 449.9121f), 1190); obj109.Steps = list159; reference125 = obj109; questRoot17.QuestSequence = list148; @@ -341781,24 +415183,30 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - CollectionsMarshal.AsSpan(list160)[0] = "liza"; + Span span160 = CollectionsMarshal.AsSpan(list160); + index = 0; + span160[index] = "liza"; questRoot18.Author = list160; - num = 4; - List list161 = new List(num); - CollectionsMarshal.SetCount(list161, num); - Span span57 = CollectionsMarshal.AsSpan(list161); - ref QuestSequence reference126 = ref span57[0]; + index = 4; + List list161 = new List(index); + CollectionsMarshal.SetCount(list161, index); + Span span161 = CollectionsMarshal.AsSpan(list161); + num = 0; + ref QuestSequence reference126 = ref span161[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046975u, new Vector3(348.6228f, -1.601824f, 449.9121f), 1190); + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span162[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046975u, new Vector3(348.6228f, -1.601824f, 449.9121f), 1190); obj110.Steps = list162; reference126 = obj110; - ref QuestSequence reference127 = ref span57[1]; + num++; + ref QuestSequence reference127 = ref span161[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 @@ -341806,24 +415214,30 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1048057u, new Vector3(-313.74078f, 18.853605f, -178.8205f), 1190) + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span163[index2] = new QuestStep(EInteractionType.Interact, 1048057u, new Vector3(-313.74078f, 18.853605f, -178.8205f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; obj111.Steps = list163; reference127 = obj111; - ref QuestSequence reference128 = ref span57[2]; + num++; + ref QuestSequence reference128 = ref span161[num]; QuestSequence obj112 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1046981u, new Vector3(-354.08563f, 19.34956f, -99.13794f), 1190); + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.Interact, 1046981u, new Vector3(-354.08563f, 19.34956f, -99.13794f), 1190); obj112.Steps = list164; reference128 = obj112; - ref QuestSequence reference129 = ref span57[3]; + num++; + ref QuestSequence reference129 = ref span161[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -341831,7 +415245,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046982u, new Vector3(-349.53845f, 18.823906f, -106.401184f), 1190); + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046982u, new Vector3(-349.53845f, 18.823906f, -106.401184f), 1190); obj113.Steps = list165; reference129 = obj113; questRoot18.QuestSequence = list161; @@ -341841,24 +415257,30 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "liza"; + Span span166 = CollectionsMarshal.AsSpan(list166); + index = 0; + span166[index] = "liza"; questRoot19.Author = list166; - num = 5; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - Span span58 = CollectionsMarshal.AsSpan(list167); - ref QuestSequence reference130 = ref span58[0]; + index = 5; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + Span span167 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference130 = ref span167[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046982u, new Vector3(-349.53845f, 18.823906f, -106.401184f), 1190); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.AcceptQuest, 1046982u, new Vector3(-349.53845f, 18.823906f, -106.401184f), 1190); obj114.Steps = list168; reference130 = obj114; - ref QuestSequence reference131 = ref span58[1]; + num++; + ref QuestSequence reference131 = ref span167[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 @@ -341866,21 +415288,27 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1051610u, new Vector3(-123.88806f, 16.006582f, -375.9671f), 1190); + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.Interact, 1051610u, new Vector3(-123.88806f, 16.006582f, -375.9671f), 1190); obj115.Steps = list169; reference131 = obj115; - ref QuestSequence reference132 = ref span58[2]; + num++; + ref QuestSequence reference132 = ref span167[num]; QuestSequence obj116 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1046986u, new Vector3(198.74878f, -17.59426f, -520.9888f), 1190); + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.Interact, 1046986u, new Vector3(198.74878f, -17.59426f, -520.9888f), 1190); obj116.Steps = list170; reference132 = obj116; - ref QuestSequence reference133 = ref span58[3]; + num++; + ref QuestSequence reference133 = ref span167[num]; QuestSequence obj117 = new QuestSequence { Sequence = 3 @@ -341888,29 +415316,34 @@ public static class AssemblyQuestLoader num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span59 = CollectionsMarshal.AsSpan(list171); - span59[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span171[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) { StopDistance = 8f, Aetheryte = EAetheryteLocation.ShaaloaniMehwahhetsoan }; - span59[1] = new QuestStep(EInteractionType.Interact, 1046988u, new Vector3(302.96777f, -15.629961f, -514.6716f), 1190); + index2++; + span171[index2] = new QuestStep(EInteractionType.Interact, 1046988u, new Vector3(302.96777f, -15.629961f, -514.6716f), 1190); obj117.Steps = list171; reference133 = obj117; - ref QuestSequence reference134 = ref span58[4]; + num++; + ref QuestSequence reference134 = ref span167[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - Span span60 = CollectionsMarshal.AsSpan(list172); - span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(299.9144f, -15.679968f, -508.8957f), 1190) + index2 = 2; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span172[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(299.9144f, -15.679968f, -508.8957f), 1190) { Mount = true }; - span60[1] = new QuestStep(EInteractionType.CompleteQuest, 1046996u, new Vector3(343.9231f, -16.501034f, -444.23596f), 1190); + num2++; + span172[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046996u, new Vector3(343.9231f, -16.501034f, -444.23596f), 1190); obj118.Steps = list172; reference134 = obj118; questRoot19.QuestSequence = list167; @@ -341920,13 +415353,16 @@ public static class AssemblyQuestLoader num = 1; List list173 = new List(num); CollectionsMarshal.SetCount(list173, num); - CollectionsMarshal.AsSpan(list173)[0] = "liza"; + Span span173 = CollectionsMarshal.AsSpan(list173); + index = 0; + span173[index] = "liza"; questRoot20.Author = list173; - num = 5; - List list174 = new List(num); - CollectionsMarshal.SetCount(list174, num); - Span span61 = CollectionsMarshal.AsSpan(list174); - ref QuestSequence reference135 = ref span61[0]; + index = 5; + List list174 = new List(index); + CollectionsMarshal.SetCount(list174, index); + Span span174 = CollectionsMarshal.AsSpan(list174); + num = 0; + ref QuestSequence reference135 = ref span174[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -341934,27 +415370,33 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046995u, new Vector3(344.8081f, -16.536486f, -442.8626f), 1190) + Span span175 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span175[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046995u, new Vector3(344.8081f, -16.536486f, -442.8626f), 1190) { StopDistance = 6f }; obj119.Steps = list175; reference135 = obj119; - ref QuestSequence reference136 = ref span61[1]; + num++; + ref QuestSequence reference136 = ref span174[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 2013809u, new Vector3(342.61072f, -16.434021f, -441.91656f), 1190) + index2 = 1; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + Span span176 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span176[num2] = new QuestStep(EInteractionType.Interact, 2013809u, new Vector3(342.61072f, -16.434021f, -441.91656f), 1190) { StopDistance = 4f }; obj120.Steps = list176; reference136 = obj120; - ref QuestSequence reference137 = ref span61[2]; + num++; + ref QuestSequence reference137 = ref span174[num]; QuestSequence obj121 = new QuestSequence { Sequence = 2 @@ -341962,23 +415404,28 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 2013852u, new Vector3(119.61548f, -14.694458f, -517.052f), 1190); + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + span177[index2] = new QuestStep(EInteractionType.Interact, 2013852u, new Vector3(119.61548f, -14.694458f, -517.052f), 1190); obj121.Steps = list177; reference137 = obj121; - ref QuestSequence reference138 = ref span61[3]; + num++; + ref QuestSequence reference138 = ref span174[num]; QuestSequence obj122 = new QuestSequence { Sequence = 3 }; - num2 = 5; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - Span span62 = CollectionsMarshal.AsSpan(list178); - span62[0] = new QuestStep(EInteractionType.AcceptQuest, 1050655u, new Vector3(289.02112f, -15.566031f, -478.78235f), 1190) + index2 = 5; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + Span span178 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span178[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050655u, new Vector3(289.02112f, -15.566031f, -478.78235f), 1190) { PickUpQuestId = new QuestId(5138) }; - ref QuestStep reference139 = ref span62[1]; + num2++; + ref QuestStep reference139 = ref span178[num2]; QuestStep obj123 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.84927f, -0.84392637f, 435.0579f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi @@ -341988,28 +415435,35 @@ public static class AssemblyQuestLoader num3 = 1; List list179 = new List(num3); CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = new QuestId(5140); + Span span179 = CollectionsMarshal.AsSpan(list179); + index3 = 0; + span179[index3] = new QuestId(5140); skipStepConditions3.QuestsCompleted = list179; skipConditions3.StepIf = skipStepConditions3; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - CollectionsMarshal.AsSpan(list180)[0] = new QuestId(5140); + index3 = 1; + List list180 = new List(index3); + CollectionsMarshal.SetCount(list180, index3); + Span span180 = CollectionsMarshal.AsSpan(list180); + num3 = 0; + span180[num3] = new QuestId(5140); skipAetheryteCondition.QuestsCompleted = list180; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition; obj123.SkipConditions = skipConditions3; reference139 = obj123; - span62[2] = new QuestStep(EInteractionType.AcceptQuest, 1051283u, new Vector3(374.19702f, -0.24794838f, 437.2472f), 1190) + num2++; + span178[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051283u, new Vector3(374.19702f, -0.24794838f, 437.2472f), 1190) { StopDistance = 6f, PickUpQuestId = new QuestId(5140) }; - span62[3] = new QuestStep(EInteractionType.AcceptQuest, 1049324u, new Vector3(-108.659546f, 4.055336f, 319.5697f), 1190) + num2++; + span178[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049324u, new Vector3(-108.659546f, 4.055336f, 319.5697f), 1190) { PickUpQuestId = new QuestId(5130) }; - ref QuestStep reference140 = ref span62[4]; + num2++; + ref QuestStep reference140 = ref span178[num2]; QuestStep obj124 = new QuestStep(EInteractionType.Interact, 1047001u, new Vector3(-194.5373f, 16.084282f, -382.9862f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings @@ -342017,7 +415471,9 @@ public static class AssemblyQuestLoader num3 = 1; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - CollectionsMarshal.AsSpan(list181)[0] = new DialogueChoice + Span span181 = CollectionsMarshal.AsSpan(list181); + index3 = 0; + span181[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMD108_04919_SYSTEM_000_043") @@ -342026,7 +415482,8 @@ public static class AssemblyQuestLoader reference140 = obj124; obj122.Steps = list178; reference138 = obj122; - ref QuestSequence reference141 = ref span61[4]; + num++; + ref QuestSequence reference141 = ref span174[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -342034,7 +415491,9 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047002u, new Vector3(-16.494995f, 3.0954878f, -49.851257f), 1170) + Span span182 = CollectionsMarshal.AsSpan(list182); + index2 = 0; + span182[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047002u, new Vector3(-16.494995f, 3.0954878f, -49.851257f), 1170) { StopDistance = 5f }; @@ -342047,27 +415506,33 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + Span span183 = CollectionsMarshal.AsSpan(list183); + index = 0; + span183[index] = "liza"; questRoot21.Author = list183; - num = 9; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span63 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference142 = ref span63[0]; + index = 9; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + Span span184 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference142 = ref span184[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047002u, new Vector3(-16.494995f, 3.0954878f, -49.851257f), 1170) + index2 = 1; + List list185 = new List(index2); + CollectionsMarshal.SetCount(list185, index2); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span185[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047002u, new Vector3(-16.494995f, 3.0954878f, -49.851257f), 1170) { StopDistance = 5f }; obj126.Steps = list185; reference142 = obj126; - ref QuestSequence reference143 = ref span63[1]; + num++; + ref QuestSequence reference143 = ref span184[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 @@ -342075,22 +415540,26 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1047012u, new Vector3(-1.3580933f, 3.095488f, -48.630554f), 1170) + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.Interact, 1047012u, new Vector3(-1.3580933f, 3.095488f, -48.630554f), 1170) { StopDistance = 5f }; obj127.Steps = list186; reference143 = obj127; - ref QuestSequence reference144 = ref span63[2]; + num++; + ref QuestSequence reference144 = ref span184[num]; QuestSequence obj128 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - Span span64 = CollectionsMarshal.AsSpan(list187); - ref QuestStep reference145 = ref span64[0]; + index2 = 5; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + ref QuestStep reference145 = ref span187[num2]; QuestStep obj129 = new QuestStep(EInteractionType.Interact, 1047020u, new Vector3(-142.01575f, 44.999992f, 18.631226f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -342100,77 +415569,112 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - num3 = 6; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span65 = CollectionsMarshal.AsSpan(list188); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list188 = new List(index3); + CollectionsMarshal.SetCount(list188, index3); + Span span188 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj129.CompletionQuestVariablesFlags = list188; reference145 = obj129; - ref QuestStep reference146 = ref span64[1]; + num2++; + ref QuestStep reference146 = ref span187[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1047019u, new Vector3(-84.031494f, 52f, 10.635498f), 1185); num3 = 6; List list189 = new List(num3); CollectionsMarshal.SetCount(list189, num3); - Span span66 = CollectionsMarshal.AsSpan(list189); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span189 = CollectionsMarshal.AsSpan(list189); + index3 = 0; + span189[index3] = null; + index3++; + span189[index3] = null; + index3++; + span189[index3] = null; + index3++; + span189[index3] = null; + index3++; + span189[index3] = null; + index3++; + span189[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list189; reference146 = questStep17; - ref QuestStep reference147 = ref span64[2]; + num2++; + ref QuestStep reference147 = ref span187[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1047022u, new Vector3(-96.48285f, 68.41271f, -34.53119f), 1185); - num3 = 6; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - Span span67 = CollectionsMarshal.AsSpan(list190); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list190 = new List(index3); + CollectionsMarshal.SetCount(list190, index3); + Span span190 = CollectionsMarshal.AsSpan(list190); + num3 = 0; + span190[num3] = null; + num3++; + span190[num3] = null; + num3++; + span190[num3] = null; + num3++; + span190[num3] = null; + num3++; + span190[num3] = null; + num3++; + span190[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list190; reference147 = questStep18; - ref QuestStep reference148 = ref span64[3]; + num2++; + ref QuestStep reference148 = ref span187[num2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1047023u, new Vector3(-226.0014f, 39.99999f, 15.976135f), 1185); num3 = 6; List list191 = new List(num3); CollectionsMarshal.SetCount(list191, num3); - Span span68 = CollectionsMarshal.AsSpan(list191); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span191 = CollectionsMarshal.AsSpan(list191); + index3 = 0; + span191[index3] = null; + index3++; + span191[index3] = null; + index3++; + span191[index3] = null; + index3++; + span191[index3] = null; + index3++; + span191[index3] = null; + index3++; + span191[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list191; reference148 = questStep19; - ref QuestStep reference149 = ref span64[4]; + num2++; + ref QuestStep reference149 = ref span187[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1047021u, new Vector3(-254.01697f, 40.075134f, -28.091919f), 1185); - num3 = 6; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - Span span69 = CollectionsMarshal.AsSpan(list192); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list192 = new List(index3); + CollectionsMarshal.SetCount(list192, index3); + Span span192 = CollectionsMarshal.AsSpan(list192); + num3 = 0; + span192[num3] = null; + num3++; + span192[num3] = null; + num3++; + span192[num3] = null; + num3++; + span192[num3] = null; + num3++; + span192[num3] = null; + num3++; + span192[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list192; reference149 = questStep20; obj128.Steps = list187; reference144 = obj128; - ref QuestSequence reference150 = ref span63[3]; + num++; + ref QuestSequence reference150 = ref span184[num]; QuestSequence obj130 = new QuestSequence { Sequence = 3 @@ -342178,21 +415682,25 @@ public static class AssemblyQuestLoader num2 = 2; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span70 = CollectionsMarshal.AsSpan(list193); - span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-163.63573f, 45.171337f, 12.003954f), 1185); - span70[1] = new QuestStep(EInteractionType.Interact, 1047026u, new Vector3(-176.4096f, 44.999992f, 34.470093f), 1185); + Span span193 = CollectionsMarshal.AsSpan(list193); + index2 = 0; + span193[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-163.63573f, 45.171337f, 12.003954f), 1185); + index2++; + span193[index2] = new QuestStep(EInteractionType.Interact, 1047026u, new Vector3(-176.4096f, 44.999992f, 34.470093f), 1185); obj130.Steps = list193; reference150 = obj130; - ref QuestSequence reference151 = ref span63[4]; + num++; + ref QuestSequence reference151 = ref span184[num]; QuestSequence obj131 = new QuestSequence { Sequence = 4 }; - num2 = 4; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - Span span71 = CollectionsMarshal.AsSpan(list194); - ref QuestStep reference152 = ref span71[0]; + index2 = 4; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + ref QuestStep reference152 = ref span194[num2]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 2013810u, new Vector3(-194.75098f, -4.928711f, 129.90002f), 1185) { AethernetShortcut = new AethernetShortcut @@ -342204,16 +415712,23 @@ public static class AssemblyQuestLoader num3 = 6; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - Span span72 = CollectionsMarshal.AsSpan(list195); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span195 = CollectionsMarshal.AsSpan(list195); + index3 = 0; + span195[index3] = null; + index3++; + span195[index3] = null; + index3++; + span195[index3] = null; + index3++; + span195[index3] = null; + index3++; + span195[index3] = null; + index3++; + span195[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj132.CompletionQuestVariablesFlags = list195; reference152 = obj132; - ref QuestStep reference153 = ref span71[1]; + num2++; + ref QuestStep reference153 = ref span194[num2]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2013813u, new Vector3(-23.483704f, -10.025269f, 145.25061f), 1185) { AethernetShortcut = new AethernetShortcut @@ -342222,49 +415737,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - num3 = 6; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - Span span73 = CollectionsMarshal.AsSpan(list196); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list196 = new List(index3); + CollectionsMarshal.SetCount(list196, index3); + Span span196 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + span196[num3] = null; + num3++; + span196[num3] = null; + num3++; + span196[num3] = null; + num3++; + span196[num3] = null; + num3++; + span196[num3] = null; + num3++; + span196[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj133.CompletionQuestVariablesFlags = list196; reference153 = obj133; - ref QuestStep reference154 = ref span71[2]; + num2++; + ref QuestStep reference154 = ref span194[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 2013811u, new Vector3(11.886719f, -14.023071f, 105.882324f), 1185); num3 = 6; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - Span span74 = CollectionsMarshal.AsSpan(list197); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span197 = CollectionsMarshal.AsSpan(list197); + index3 = 0; + span197[index3] = null; + index3++; + span197[index3] = null; + index3++; + span197[index3] = null; + index3++; + span197[index3] = null; + index3++; + span197[index3] = null; + index3++; + span197[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list197; reference154 = questStep21; - ref QuestStep reference155 = ref span71[3]; + num2++; + ref QuestStep reference155 = ref span194[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 2013812u, new Vector3(84.611206f, -16.586609f, 117.02136f), 1185); - num3 = 6; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - Span span75 = CollectionsMarshal.AsSpan(list198); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list198 = new List(index3); + CollectionsMarshal.SetCount(list198, index3); + Span span198 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list198; reference155 = questStep22; obj131.Steps = list194; reference151 = obj131; - ref QuestSequence reference156 = ref span63[5]; + num++; + ref QuestSequence reference156 = ref span184[num]; QuestSequence obj134 = new QuestSequence { Sequence = 5 @@ -342272,21 +415808,27 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1046843u, new Vector3(-18.783936f, -10.00001f, 95.109375f), 1185); + Span span199 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + span199[index2] = new QuestStep(EInteractionType.Interact, 1046843u, new Vector3(-18.783936f, -10.00001f, 95.109375f), 1185); obj134.Steps = list199; reference156 = obj134; - ref QuestSequence reference157 = ref span63[6]; + num++; + ref QuestSequence reference157 = ref span184[num]; QuestSequence obj135 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1047031u, new Vector3(-42.77112f, -19.74437f, 231.46399f), 1185); + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.Interact, 1047031u, new Vector3(-42.77112f, -19.74437f, 231.46399f), 1185); obj135.Steps = list200; reference157 = obj135; - ref QuestSequence reference158 = ref span63[7]; + num++; + ref QuestSequence reference158 = ref span184[num]; QuestSequence obj136 = new QuestSequence { Sequence = 7 @@ -342294,21 +415836,26 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1047033u, new Vector3(-152.51392f, -14.999287f, 270.64917f), 1185) + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.Interact, 1047033u, new Vector3(-152.51392f, -14.999287f, 270.64917f), 1185) { StopDistance = 5f }; obj136.Steps = list201; reference158 = obj136; - ref QuestSequence reference159 = ref span63[8]; + num++; + ref QuestSequence reference159 = ref span184[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047034u, new Vector3(66.666626f, -14f, 26.504883f), 1185) + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047034u, new Vector3(66.666626f, -14f, 26.504883f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -342325,13 +415872,16 @@ public static class AssemblyQuestLoader num = 1; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - CollectionsMarshal.AsSpan(list203)[0] = "liza"; + Span span203 = CollectionsMarshal.AsSpan(list203); + index = 0; + span203[index] = "liza"; questRoot22.Author = list203; - num = 4; - List list204 = new List(num); - CollectionsMarshal.SetCount(list204, num); - Span span76 = CollectionsMarshal.AsSpan(list204); - ref QuestSequence reference160 = ref span76[0]; + index = 4; + List list204 = new List(index); + CollectionsMarshal.SetCount(list204, index); + Span span204 = CollectionsMarshal.AsSpan(list204); + num = 0; + ref QuestSequence reference160 = ref span204[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -342339,24 +415889,30 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047034u, new Vector3(66.666626f, -14f, 26.504883f), 1185); + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047034u, new Vector3(66.666626f, -14f, 26.504883f), 1185); obj138.Steps = list205; reference160 = obj138; - ref QuestSequence reference161 = ref span76[1]; + num++; + ref QuestSequence reference161 = ref span204[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Snipe, 2014033u, new Vector3(65.659546f, -14.023071f, 25.680908f), 1185) + index2 = 1; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.Snipe, 2014033u, new Vector3(65.659546f, -14.023071f, 25.680908f), 1185) { Comment = "Inspect Helm, Corpse, Weapon" }; obj139.Steps = list206; reference161 = obj139; - ref QuestSequence reference162 = ref span76[2]; + num++; + ref QuestSequence reference162 = ref span204[num]; QuestSequence obj140 = new QuestSequence { Sequence = 2 @@ -342364,7 +415920,9 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1047036u, new Vector3(-180.07172f, 120.795235f, -346.2425f), 1185) + Span span207 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span207[index2] = new QuestStep(EInteractionType.Interact, 1047036u, new Vector3(-180.07172f, 120.795235f, -346.2425f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -342374,15 +415932,18 @@ public static class AssemblyQuestLoader }; obj140.Steps = list207; reference162 = obj140; - ref QuestSequence reference163 = ref span76[3]; + num++; + ref QuestSequence reference163 = ref span204[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047037u, new Vector3(1.296936f, 3.095488f, -64.9577f), 1170) + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047037u, new Vector3(1.296936f, 3.095488f, -64.9577f), 1170) { StopDistance = 5f }; @@ -342395,13 +415956,16 @@ public static class AssemblyQuestLoader num = 1; List list209 = new List(num); CollectionsMarshal.SetCount(list209, num); - CollectionsMarshal.AsSpan(list209)[0] = "liza"; + Span span209 = CollectionsMarshal.AsSpan(list209); + index = 0; + span209[index] = "liza"; questRoot23.Author = list209; - num = 5; - List list210 = new List(num); - CollectionsMarshal.SetCount(list210, num); - Span span77 = CollectionsMarshal.AsSpan(list210); - ref QuestSequence reference164 = ref span77[0]; + index = 5; + List list210 = new List(index); + CollectionsMarshal.SetCount(list210, index); + Span span210 = CollectionsMarshal.AsSpan(list210); + num = 0; + ref QuestSequence reference164 = ref span210[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -342409,22 +415973,26 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047037u, new Vector3(1.296936f, 3.095488f, -64.9577f), 1170) + Span span211 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span211[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047037u, new Vector3(1.296936f, 3.095488f, -64.9577f), 1170) { StopDistance = 5f }; obj142.Steps = list211; reference164 = obj142; - ref QuestSequence reference165 = ref span77[1]; + num++; + ref QuestSequence reference165 = ref span210[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - Span span78 = CollectionsMarshal.AsSpan(list212); - ref QuestStep reference166 = ref span78[0]; + index2 = 3; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + ref QuestStep reference166 = ref span212[num2]; QuestStep obj144 = new QuestStep(EInteractionType.Interact, 1047050u, new Vector3(-218.9823f, 39.999985f, 9.414734f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -342437,46 +416005,67 @@ public static class AssemblyQuestLoader num3 = 6; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - Span span79 = CollectionsMarshal.AsSpan(list213); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span213 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span213[index3] = null; + index3++; + span213[index3] = null; + index3++; + span213[index3] = null; + index3++; + span213[index3] = null; + index3++; + span213[index3] = null; + index3++; + span213[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj144.CompletionQuestVariablesFlags = list213; reference166 = obj144; - ref QuestStep reference167 = ref span78[1]; + num2++; + ref QuestStep reference167 = ref span212[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1047048u, new Vector3(-244.77002f, 14.99999f, 75.12012f), 1185); - num3 = 6; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - Span span80 = CollectionsMarshal.AsSpan(list214); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list214 = new List(index3); + CollectionsMarshal.SetCount(list214, index3); + Span span214 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = null; + num3++; + span214[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list214; reference167 = questStep23; - ref QuestStep reference168 = ref span78[2]; + num2++; + ref QuestStep reference168 = ref span212[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1047049u, new Vector3(-262.89777f, 2.096911E-05f, 71.06128f), 1185); num3 = 6; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - Span span81 = CollectionsMarshal.AsSpan(list215); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span215 = CollectionsMarshal.AsSpan(list215); + index3 = 0; + span215[index3] = null; + index3++; + span215[index3] = null; + index3++; + span215[index3] = null; + index3++; + span215[index3] = null; + index3++; + span215[index3] = null; + index3++; + span215[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list215; reference168 = questStep24; obj143.Steps = list212; reference165 = obj143; - ref QuestSequence reference169 = ref span77[2]; + num++; + ref QuestSequence reference169 = ref span210[num]; QuestSequence obj145 = new QuestSequence { Sequence = 2 @@ -342484,60 +416073,84 @@ public static class AssemblyQuestLoader num2 = 3; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span82 = CollectionsMarshal.AsSpan(list216); - ref QuestStep reference170 = ref span82[0]; + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + ref QuestStep reference170 = ref span216[index2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1047047u, new Vector3(-62.424683f, -10.00001f, 105.97388f), 1185); - num3 = 6; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - Span span83 = CollectionsMarshal.AsSpan(list217); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list217 = new List(index3); + CollectionsMarshal.SetCount(list217, index3); + Span span217 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list217; reference170 = questStep25; - ref QuestStep reference171 = ref span82[1]; + index2++; + ref QuestStep reference171 = ref span216[index2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1047046u, new Vector3(-10.727112f, -10.00001f, 88.27344f), 1185); num3 = 6; List list218 = new List(num3); CollectionsMarshal.SetCount(list218, num3); - Span span84 = CollectionsMarshal.AsSpan(list218); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span218 = CollectionsMarshal.AsSpan(list218); + index3 = 0; + span218[index3] = null; + index3++; + span218[index3] = null; + index3++; + span218[index3] = null; + index3++; + span218[index3] = null; + index3++; + span218[index3] = null; + index3++; + span218[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list218; reference171 = questStep26; - ref QuestStep reference172 = ref span82[2]; + index2++; + ref QuestStep reference172 = ref span216[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1047051u, new Vector3(53.45227f, -14f, 90.562256f), 1185); - num3 = 6; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - Span span85 = CollectionsMarshal.AsSpan(list219); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list219 = new List(index3); + CollectionsMarshal.SetCount(list219, index3); + Span span219 = CollectionsMarshal.AsSpan(list219); + num3 = 0; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list219; reference172 = questStep27; obj145.Steps = list216; reference169 = obj145; - ref QuestSequence reference173 = ref span77[3]; + num++; + ref QuestSequence reference173 = ref span210[num]; QuestSequence obj146 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1047056u, new Vector3(-172.7779f, 120.75f, -321.09564f), 1185) + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span220[num2] = new QuestStep(EInteractionType.Interact, 1047056u, new Vector3(-172.7779f, 120.75f, -321.09564f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -342547,7 +416160,8 @@ public static class AssemblyQuestLoader }; obj146.Steps = list220; reference173 = obj146; - ref QuestSequence reference174 = ref span77[4]; + num++; + ref QuestSequence reference174 = ref span210[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -342555,7 +416169,9 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047062u, new Vector3(-65.84277f, 100f, -158.98376f), 1185); + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span221[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047062u, new Vector3(-65.84277f, 100f, -158.98376f), 1185); obj147.Steps = list221; reference174 = obj147; questRoot23.QuestSequence = list210; @@ -342565,27 +416181,33 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "liza"; + Span span222 = CollectionsMarshal.AsSpan(list222); + index = 0; + span222[index] = "liza"; questRoot24.Author = list222; - num = 9; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span86 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference175 = ref span86[0]; + index = 9; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + Span span223 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference175 = ref span223[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047063u, new Vector3(-64.07269f, 100f, -159.80774f), 1185) + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span224[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047063u, new Vector3(-64.07269f, 100f, -159.80774f), 1185) { StopDistance = 5f }; obj148.Steps = list224; reference175 = obj148; - ref QuestSequence reference176 = ref span86[1]; + num++; + ref QuestSequence reference176 = ref span223[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 @@ -342593,7 +416215,9 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1047068u, new Vector3(41.85547f, 47.072277f, -409.01813f), 1185) + Span span225 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + span225[index2] = new QuestStep(EInteractionType.Interact, 1047068u, new Vector3(41.85547f, 47.072277f, -409.01813f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -342603,25 +416227,30 @@ public static class AssemblyQuestLoader }; obj149.Steps = list225; reference176 = obj149; - span86[2] = new QuestSequence + num++; + span223[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference177 = ref span86[3]; + num++; + ref QuestSequence reference177 = ref span223[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list226 = new List(num2); - CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 1047075u, new Vector3(470.69495f, 2.2817478f, 460.9292f), 1190) + index2 = 1; + List list226 = new List(index2); + CollectionsMarshal.SetCount(list226, index2); + Span span226 = CollectionsMarshal.AsSpan(list226); + num2 = 0; + span226[num2] = new QuestStep(EInteractionType.Interact, 1047075u, new Vector3(470.69495f, 2.2817478f, 460.9292f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi }; obj150.Steps = list226; reference177 = obj150; - ref QuestSequence reference178 = ref span86[4]; + num++; + ref QuestSequence reference178 = ref span223[num]; QuestSequence obj151 = new QuestSequence { Sequence = 4 @@ -342629,67 +416258,93 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1047079u, new Vector3(-284.38245f, 16.00464f, -61.661743f), 1190) + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.Interact, 1047079u, new Vector3(-284.38245f, 16.00464f, -61.661743f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; obj151.Steps = list227; reference178 = obj151; - ref QuestSequence reference179 = ref span86[5]; + num++; + ref QuestSequence reference179 = ref span223[num]; QuestSequence obj152 = new QuestSequence { Sequence = 5 }; - num2 = 4; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span87 = CollectionsMarshal.AsSpan(list228); - ref QuestStep reference180 = ref span87[0]; + index2 = 4; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + ref QuestStep reference180 = ref span228[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1047498u, new Vector3(-367.45258f, 20.14268f, -92.63757f), 1190); num3 = 6; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - Span span88 = CollectionsMarshal.AsSpan(list229); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span229 = CollectionsMarshal.AsSpan(list229); + index3 = 0; + span229[index3] = null; + index3++; + span229[index3] = null; + index3++; + span229[index3] = null; + index3++; + span229[index3] = null; + index3++; + span229[index3] = null; + index3++; + span229[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep28.CompletionQuestVariablesFlags = list229; reference180 = questStep28; - span87[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-359.66742f, 18.137554f, -137.36826f), 1190); - ref QuestStep reference181 = ref span87[2]; + num2++; + span228[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-359.66742f, 18.137554f, -137.36826f), 1190); + num2++; + ref QuestStep reference181 = ref span228[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1047080u, new Vector3(-364.70593f, 18.08191f, -139.45221f), 1190); - num3 = 6; - List list230 = new List(num3); - CollectionsMarshal.SetCount(list230, num3); - Span span89 = CollectionsMarshal.AsSpan(list230); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list230 = new List(index3); + CollectionsMarshal.SetCount(list230, index3); + Span span230 = CollectionsMarshal.AsSpan(list230); + num3 = 0; + span230[num3] = null; + num3++; + span230[num3] = null; + num3++; + span230[num3] = null; + num3++; + span230[num3] = null; + num3++; + span230[num3] = null; + num3++; + span230[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep29.CompletionQuestVariablesFlags = list230; reference181 = questStep29; - ref QuestStep reference182 = ref span87[3]; + num2++; + ref QuestStep reference182 = ref span228[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190); num3 = 6; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - Span span90 = CollectionsMarshal.AsSpan(list231); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span231 = CollectionsMarshal.AsSpan(list231); + index3 = 0; + span231[index3] = null; + index3++; + span231[index3] = null; + index3++; + span231[index3] = null; + index3++; + span231[index3] = null; + index3++; + span231[index3] = null; + index3++; + span231[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep30.CompletionQuestVariablesFlags = list231; reference182 = questStep30; obj152.Steps = list228; reference179 = obj152; - ref QuestSequence reference183 = ref span86[6]; + num++; + ref QuestSequence reference183 = ref span223[num]; QuestSequence obj153 = new QuestSequence { Sequence = 6 @@ -342697,26 +416352,32 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1047081u, new Vector3(-327.90118f, 18.106325f, -146.74603f), 1190); + Span span232 = CollectionsMarshal.AsSpan(list232); + index2 = 0; + span232[index2] = new QuestStep(EInteractionType.Interact, 1047081u, new Vector3(-327.90118f, 18.106325f, -146.74603f), 1190); obj153.Steps = list232; reference183 = obj153; - ref QuestSequence reference184 = ref span86[7]; + num++; + ref QuestSequence reference184 = ref span223[num]; QuestSequence obj154 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - Span span91 = CollectionsMarshal.AsSpan(list233); - span91[0] = new QuestStep(EInteractionType.AcceptQuest, 1051316u, new Vector3(-380.30066f, 18.718708f, -114.24432f), 1190) + index2 = 2; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + Span span233 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span233[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051316u, new Vector3(-380.30066f, 18.718708f, -114.24432f), 1190) { PickUpQuestId = new QuestId(5144) }; - span91[1] = new QuestStep(EInteractionType.Interact, 1047082u, new Vector3(-171.37408f, 15.684817f, -358.9685f), 1190); + num2++; + span233[num2] = new QuestStep(EInteractionType.Interact, 1047082u, new Vector3(-171.37408f, 15.684817f, -358.9685f), 1190); obj154.Steps = list233; reference184 = obj154; - ref QuestSequence reference185 = ref span86[8]; + num++; + ref QuestSequence reference185 = ref span223[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue @@ -342724,7 +416385,9 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047083u, new Vector3(-168.41382f, 15.771556f, -355.64203f), 1190) + Span span234 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + span234[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047083u, new Vector3(-168.41382f, 15.771556f, -355.64203f), 1190) { StopDistance = 7f }; @@ -342737,27 +416400,33 @@ public static class AssemblyQuestLoader num = 1; List list235 = new List(num); CollectionsMarshal.SetCount(list235, num); - CollectionsMarshal.AsSpan(list235)[0] = "liza"; + Span span235 = CollectionsMarshal.AsSpan(list235); + index = 0; + span235[index] = "liza"; questRoot25.Author = list235; - num = 5; - List list236 = new List(num); - CollectionsMarshal.SetCount(list236, num); - Span span92 = CollectionsMarshal.AsSpan(list236); - ref QuestSequence reference186 = ref span92[0]; + index = 5; + List list236 = new List(index); + CollectionsMarshal.SetCount(list236, index); + Span span236 = CollectionsMarshal.AsSpan(list236); + num = 0; + ref QuestSequence reference186 = ref span236[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047084u, new Vector3(-167.07104f, 15.74114f, -359.39575f), 1190) + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + Span span237 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span237[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047084u, new Vector3(-167.07104f, 15.74114f, -359.39575f), 1190) { StopDistance = 7f }; obj156.Steps = list237; reference186 = obj156; - ref QuestSequence reference187 = ref span92[1]; + num++; + ref QuestSequence reference187 = ref span236[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 @@ -342765,24 +416434,30 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1047089u, new Vector3(-142.77869f, 15.869456f, -314.22906f), 1190); + Span span238 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span238[index2] = new QuestStep(EInteractionType.Interact, 1047089u, new Vector3(-142.77869f, 15.869456f, -314.22906f), 1190); obj157.Steps = list238; reference187 = obj157; - ref QuestSequence reference188 = ref span92[2]; + num++; + ref QuestSequence reference188 = ref span236[num]; QuestSequence obj158 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list239 = new List(num2); - CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1047090u, new Vector3(-144.09094f, 15.900455f, -311.54346f), 1190) + index2 = 1; + List list239 = new List(index2); + CollectionsMarshal.SetCount(list239, index2); + Span span239 = CollectionsMarshal.AsSpan(list239); + num2 = 0; + span239[num2] = new QuestStep(EInteractionType.Interact, 1047090u, new Vector3(-144.09094f, 15.900455f, -311.54346f), 1190) { StopDistance = 5f }; obj158.Steps = list239; reference188 = obj158; - ref QuestSequence reference189 = ref span92[3]; + num++; + ref QuestSequence reference189 = ref span236[num]; QuestSequence obj159 = new QuestSequence { Sequence = 3 @@ -342790,23 +416465,28 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1047355u, new Vector3(-83.42114f, 16.538801f, -235.64508f), 1190); + Span span240 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + span240[index2] = new QuestStep(EInteractionType.Interact, 1047355u, new Vector3(-83.42114f, 16.538801f, -235.64508f), 1190); obj159.Steps = list240; reference189 = obj159; - ref QuestSequence reference190 = ref span92[4]; + num++; + ref QuestSequence reference190 = ref span236[num]; QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - Span span93 = CollectionsMarshal.AsSpan(list241); - span93[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013959u, new Vector3(-63.21814f, 18.844849f, -174.85315f), 1190) + index2 = 2; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + Span span241 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span241[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013959u, new Vector3(-63.21814f, 18.844849f, -174.85315f), 1190) { AetherCurrentId = 2818451u }; - span93[1] = new QuestStep(EInteractionType.CompleteQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190) + num2++; + span241[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; @@ -342819,13 +416499,16 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "liza"; + Span span242 = CollectionsMarshal.AsSpan(list242); + index = 0; + span242[index] = "liza"; questRoot26.Author = list242; - num = 7; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span94 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference191 = ref span94[0]; + index = 7; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + Span span243 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference191 = ref span243[num]; QuestSequence obj161 = new QuestSequence { Sequence = 0 @@ -342833,28 +416516,36 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190); + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span244[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190); obj161.Steps = list244; reference191 = obj161; - ref QuestSequence reference192 = ref span94[1]; + num++; + ref QuestSequence reference192 = ref span243[num]; QuestSequence obj162 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - Span span95 = CollectionsMarshal.AsSpan(list245); - span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-281.919f, 19.416311f, -140.61546f), 1190); - span95[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-203.91112f, 31.254747f, -75.537964f), 1190); - span95[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013957u, new Vector3(-192.18744f, 36.66736f, -53.177734f), 1190) + index2 = 4; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + Span span245 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span245[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-281.919f, 19.416311f, -140.61546f), 1190); + num2++; + span245[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-203.91112f, 31.254747f, -75.537964f), 1190); + num2++; + span245[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013957u, new Vector3(-192.18744f, 36.66736f, -53.177734f), 1190) { AetherCurrentId = 2818454u }; - span95[3] = new QuestStep(EInteractionType.Interact, 1047356u, new Vector3(-226.15399f, 0.85973585f, 74.387695f), 1190); + num2++; + span245[num2] = new QuestStep(EInteractionType.Interact, 1047356u, new Vector3(-226.15399f, 0.85973585f, 74.387695f), 1190); obj162.Steps = list245; reference192 = obj162; - ref QuestSequence reference193 = ref span94[2]; + num++; + ref QuestSequence reference193 = ref span243[num]; QuestSequence obj163 = new QuestSequence { Sequence = 2 @@ -342862,34 +416553,42 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 2013814u, new Vector3(-201.00714f, 9.811523f, 18.264954f), 1190); + Span span246 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span246[index2] = new QuestStep(EInteractionType.Interact, 2013814u, new Vector3(-201.00714f, 9.811523f, 18.264954f), 1190); obj163.Steps = list246; reference193 = obj163; - ref QuestSequence reference194 = ref span94[3]; + num++; + ref QuestSequence reference194 = ref span243[num]; QuestSequence obj164 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - ref QuestStep reference195 = ref CollectionsMarshal.AsSpan(list247)[0]; + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + Span span247 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + ref QuestStep reference195 = ref span247[num2]; QuestStep obj165 = new QuestStep(EInteractionType.Combat, 2013815u, new Vector3(-176.28754f, 4.409851f, 147.11218f), 1190) { Comment = "two waves of enemies", EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list248 = new List(num3); - CollectionsMarshal.SetCount(list248, num3); - Span span96 = CollectionsMarshal.AsSpan(list248); - span96[0] = 17699u; - span96[1] = 17700u; + index3 = 2; + List list248 = new List(index3); + CollectionsMarshal.SetCount(list248, index3); + Span span248 = CollectionsMarshal.AsSpan(list248); + num3 = 0; + span248[num3] = 17699u; + num3++; + span248[num3] = 17700u; obj165.KillEnemyDataIds = list248; reference195 = obj165; obj164.Steps = list247; reference194 = obj164; - ref QuestSequence reference196 = ref span94[4]; + num++; + ref QuestSequence reference196 = ref span243[num]; QuestSequence obj166 = new QuestSequence { Sequence = 4 @@ -342897,21 +416596,27 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1047356u, new Vector3(-226.15399f, 0.85973585f, 74.387695f), 1190); + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.Interact, 1047356u, new Vector3(-226.15399f, 0.85973585f, 74.387695f), 1190); obj166.Steps = list249; reference196 = obj166; - ref QuestSequence reference197 = ref span94[5]; + num++; + ref QuestSequence reference197 = ref span243[num]; QuestSequence obj167 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1046979u, new Vector3(-156.66437f, 15.93609f, -311.02472f), 1190); + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span250 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span250[num2] = new QuestStep(EInteractionType.Interact, 1046979u, new Vector3(-156.66437f, 15.93609f, -311.02472f), 1190); obj167.Steps = list250; reference197 = obj167; - ref QuestSequence reference198 = ref span94[6]; + num++; + ref QuestSequence reference198 = ref span243[num]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue @@ -342919,7 +416624,9 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047358u, new Vector3(-139.02502f, 15.680048f, -379.8429f), 1190); + Span span251 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + span251[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047358u, new Vector3(-139.02502f, 15.680048f, -379.8429f), 1190); obj168.Steps = list251; reference198 = obj168; questRoot26.QuestSequence = list243; @@ -342929,24 +416636,30 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - CollectionsMarshal.AsSpan(list252)[0] = "liza"; + Span span252 = CollectionsMarshal.AsSpan(list252); + index = 0; + span252[index] = "liza"; questRoot27.Author = list252; - num = 6; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - Span span97 = CollectionsMarshal.AsSpan(list253); - ref QuestSequence reference199 = ref span97[0]; + index = 6; + List list253 = new List(index); + CollectionsMarshal.SetCount(list253, index); + Span span253 = CollectionsMarshal.AsSpan(list253); + num = 0; + ref QuestSequence reference199 = ref span253[num]; QuestSequence obj169 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047358u, new Vector3(-139.02502f, 15.680048f, -379.8429f), 1190); + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047358u, new Vector3(-139.02502f, 15.680048f, -379.8429f), 1190); obj169.Steps = list254; reference199 = obj169; - ref QuestSequence reference200 = ref span97[1]; + num++; + ref QuestSequence reference200 = ref span253[num]; QuestSequence obj170 = new QuestSequence { Sequence = 1 @@ -342954,12 +416667,16 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - ref QuestStep reference201 = ref CollectionsMarshal.AsSpan(list255)[0]; + Span span255 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + ref QuestStep reference201 = ref span255[index2]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 2013816u, new Vector3(-144.51825f, 15.6710205f, -385.15295f), 1190); num3 = 1; List list256 = new List(num3); CollectionsMarshal.SetCount(list256, num3); - CollectionsMarshal.AsSpan(list256)[0] = new DialogueChoice + Span span256 = CollectionsMarshal.AsSpan(list256); + index3 = 0; + span256[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMD115_04926_SYSTEM_000_010") @@ -342968,19 +416685,23 @@ public static class AssemblyQuestLoader reference201 = questStep31; obj170.Steps = list255; reference200 = obj170; - span97[2] = new QuestSequence + num++; + span253[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference202 = ref span97[3]; + num++; + ref QuestSequence reference202 = ref span253[num]; QuestSequence obj171 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list257 = new List(num2); - CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Duty, null, null, 1219) + index2 = 1; + List list257 = new List(index2); + CollectionsMarshal.SetCount(list257, index2); + Span span257 = CollectionsMarshal.AsSpan(list257); + num2 = 0; + span257[num2] = new QuestStep(EInteractionType.Duty, null, null, 1219) { DutyOptions = new DutyOptions { @@ -342990,11 +416711,13 @@ public static class AssemblyQuestLoader }; obj171.Steps = list257; reference202 = obj171; - span97[4] = new QuestSequence + num++; + span253[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference203 = ref span97[5]; + num++; + ref QuestSequence reference203 = ref span253[num]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue @@ -343002,7 +416725,9 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047371u, new Vector3(650.5377f, 146.05669f, 695.46045f), 1191) + Span span258 = CollectionsMarshal.AsSpan(list258); + index2 = 0; + span258[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047371u, new Vector3(650.5377f, 146.05669f, 695.46045f), 1191) { DisableNavmesh = true }; @@ -343015,28 +416740,34 @@ public static class AssemblyQuestLoader num = 1; List list259 = new List(num); CollectionsMarshal.SetCount(list259, num); - CollectionsMarshal.AsSpan(list259)[0] = "liza"; + Span span259 = CollectionsMarshal.AsSpan(list259); + index = 0; + span259[index] = "liza"; questRoot28.Author = list259; - num = 9; - List list260 = new List(num); - CollectionsMarshal.SetCount(list260, num); - Span span98 = CollectionsMarshal.AsSpan(list260); - ref QuestSequence reference204 = ref span98[0]; + index = 9; + List list260 = new List(index); + CollectionsMarshal.SetCount(list260, index); + Span span260 = CollectionsMarshal.AsSpan(list260); + num = 0; + ref QuestSequence reference204 = ref span260[num]; QuestSequence obj173 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047375u, new Vector3(648.0963f, 146.00774f, 694.026f), 1191) + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + Span span261 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span261[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047375u, new Vector3(648.0963f, 146.00774f, 694.026f), 1191) { StopDistance = 7f, DisableNavmesh = true }; obj173.Steps = list261; reference204 = obj173; - ref QuestSequence reference205 = ref span98[1]; + num++; + ref QuestSequence reference205 = ref span260[num]; QuestSequence obj174 = new QuestSequence { Sequence = 1 @@ -343044,21 +416775,27 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1047376u, new Vector3(572.83887f, 107.79388f, 483.5431f), 1191); + Span span262 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span262[index2] = new QuestStep(EInteractionType.Interact, 1047376u, new Vector3(572.83887f, 107.79388f, 483.5431f), 1191); obj174.Steps = list262; reference205 = obj174; - ref QuestSequence reference206 = ref span98[2]; + num++; + ref QuestSequence reference206 = ref span260[num]; QuestSequence obj175 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1047381u, new Vector3(550.89636f, 143.6124f, 206.46973f), 1191); + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + Span span263 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span263[num2] = new QuestStep(EInteractionType.Interact, 1047381u, new Vector3(550.89636f, 143.6124f, 206.46973f), 1191); obj175.Steps = list263; reference206 = obj175; - ref QuestSequence reference207 = ref span98[3]; + num++; + ref QuestSequence reference207 = ref span260[num]; QuestSequence obj176 = new QuestSequence { Sequence = 3 @@ -343066,63 +416803,87 @@ public static class AssemblyQuestLoader num2 = 6; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span99 = CollectionsMarshal.AsSpan(list264); - span99[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1191) + Span span264 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span264[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1191) { StopDistance = 8f, Aetheryte = EAetheryteLocation.HeritageFoundYyasulaniStation }; - ref QuestStep reference208 = ref span99[1]; + index2++; + ref QuestStep reference208 = ref span264[index2]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 2013817u, new Vector3(482.62744f, 147.1427f, 224.23132f), 1191); - num3 = 6; - List list265 = new List(num3); - CollectionsMarshal.SetCount(list265, num3); - Span span100 = CollectionsMarshal.AsSpan(list265); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list265 = new List(index3); + CollectionsMarshal.SetCount(list265, index3); + Span span265 = CollectionsMarshal.AsSpan(list265); + num3 = 0; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = null; + num3++; + span265[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep32.CompletionQuestVariablesFlags = list265; reference208 = questStep32; - ref QuestStep reference209 = ref span99[2]; + index2++; + ref QuestStep reference209 = ref span264[index2]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 2013818u, new Vector3(465.72058f, 147.08167f, 202.68555f), 1191); num3 = 6; List list266 = new List(num3); CollectionsMarshal.SetCount(list266, num3); - Span span101 = CollectionsMarshal.AsSpan(list266); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span266 = CollectionsMarshal.AsSpan(list266); + index3 = 0; + span266[index3] = null; + index3++; + span266[index3] = null; + index3++; + span266[index3] = null; + index3++; + span266[index3] = null; + index3++; + span266[index3] = null; + index3++; + span266[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep33.CompletionQuestVariablesFlags = list266; reference209 = questStep33; - span99[3] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013964u, new Vector3(397.8789f, 145.34216f, 224.2008f), 1191) + index2++; + span264[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013964u, new Vector3(397.8789f, 145.34216f, 224.2008f), 1191) { AetherCurrentId = 2818464u }; - ref QuestStep reference210 = ref span99[4]; + index2++; + ref QuestStep reference210 = ref span264[index2]; QuestStep questStep34 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(483.82584f, 145.82513f, 186.19025f), 1191); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - Span span102 = CollectionsMarshal.AsSpan(list267); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list267 = new List(index3); + CollectionsMarshal.SetCount(list267, index3); + Span span267 = CollectionsMarshal.AsSpan(list267); + num3 = 0; + span267[num3] = null; + num3++; + span267[num3] = null; + num3++; + span267[num3] = null; + num3++; + span267[num3] = null; + num3++; + span267[num3] = null; + num3++; + span267[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list267; skipConditions4.StepIf = skipStepConditions4; questStep34.SkipConditions = skipConditions4; reference210 = questStep34; - ref QuestStep reference211 = ref span99[5]; + index2++; + ref QuestStep reference211 = ref span264[index2]; QuestStep obj177 = new QuestStep(EInteractionType.Interact, 2013819u, new Vector3(485.83203f, 147.50891f, 184.22205f), 1191) { StopDistance = 4.5f @@ -343130,29 +416891,39 @@ public static class AssemblyQuestLoader num3 = 6; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - Span span103 = CollectionsMarshal.AsSpan(list268); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span268 = CollectionsMarshal.AsSpan(list268); + index3 = 0; + span268[index3] = null; + index3++; + span268[index3] = null; + index3++; + span268[index3] = null; + index3++; + span268[index3] = null; + index3++; + span268[index3] = null; + index3++; + span268[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj177.CompletionQuestVariablesFlags = list268; reference211 = obj177; obj176.Steps = list264; reference207 = obj176; - ref QuestSequence reference212 = ref span98[4]; + num++; + ref QuestSequence reference212 = ref span260[num]; QuestSequence obj178 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list269 = new List(num2); - CollectionsMarshal.SetCount(list269, num2); - CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1047388u, new Vector3(470.84766f, 145.83463f, 164.75159f), 1191); + index2 = 1; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + Span span269 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + span269[num2] = new QuestStep(EInteractionType.Interact, 1047388u, new Vector3(470.84766f, 145.83463f, 164.75159f), 1191); obj178.Steps = list269; reference212 = obj178; - ref QuestSequence reference213 = ref span98[5]; + num++; + ref QuestSequence reference213 = ref span260[num]; QuestSequence obj179 = new QuestSequence { Sequence = 5 @@ -343160,23 +416931,29 @@ public static class AssemblyQuestLoader num2 = 2; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span104 = CollectionsMarshal.AsSpan(list270); - span104[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(473.8908f, 145.62398f, 157.92116f), 1191); - span104[1] = new QuestStep(EInteractionType.Interact, 1047387u, new Vector3(467.4906f, 122.874016f, 44.815674f), 1191); + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span270[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(473.8908f, 145.62398f, 157.92116f), 1191); + index2++; + span270[index2] = new QuestStep(EInteractionType.Interact, 1047387u, new Vector3(467.4906f, 122.874016f, 44.815674f), 1191); obj179.Steps = list270; reference213 = obj179; - ref QuestSequence reference214 = ref span98[6]; + num++; + ref QuestSequence reference214 = ref span260[num]; QuestSequence obj180 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1047389u, new Vector3(328.96924f, 74.07415f, 86.86963f), 1191); + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.Interact, 1047389u, new Vector3(328.96924f, 74.07415f, 86.86963f), 1191); obj180.Steps = list271; reference214 = obj180; - ref QuestSequence reference215 = ref span98[7]; + num++; + ref QuestSequence reference215 = ref span260[num]; QuestSequence obj181 = new QuestSequence { Sequence = 7 @@ -343184,18 +416961,23 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.Interact, 1047390u, new Vector3(313.31335f, 63.76171f, -87.6936f), 1191); + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.Interact, 1047390u, new Vector3(313.31335f, 63.76171f, -87.6936f), 1191); obj181.Steps = list272; reference215 = obj181; - ref QuestSequence reference216 = ref span98[8]; + num++; + ref QuestSequence reference216 = ref span260[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047395u, new Vector3(283.07007f, 63.313274f, -169.23785f), 1191) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span273[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047395u, new Vector3(283.07007f, 63.313274f, -169.23785f), 1191) { StopDistance = 5f }; @@ -343208,13 +416990,16 @@ public static class AssemblyQuestLoader num = 1; List list274 = new List(num); CollectionsMarshal.SetCount(list274, num); - CollectionsMarshal.AsSpan(list274)[0] = "liza"; + Span span274 = CollectionsMarshal.AsSpan(list274); + index = 0; + span274[index] = "liza"; questRoot29.Author = list274; - num = 4; - List list275 = new List(num); - CollectionsMarshal.SetCount(list275, num); - Span span105 = CollectionsMarshal.AsSpan(list275); - ref QuestSequence reference217 = ref span105[0]; + index = 4; + List list275 = new List(index); + CollectionsMarshal.SetCount(list275, index); + Span span275 = CollectionsMarshal.AsSpan(list275); + num = 0; + ref QuestSequence reference217 = ref span275[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -343222,24 +417007,30 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047395u, new Vector3(283.07007f, 63.313274f, -169.23785f), 1191) + Span span276 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span276[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047395u, new Vector3(283.07007f, 63.313274f, -169.23785f), 1191) { StopDistance = 5f }; obj183.Steps = list276; reference217 = obj183; - ref QuestSequence reference218 = ref span105[1]; + num++; + ref QuestSequence reference218 = ref span275[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.Interact, 1047396u, new Vector3(33.035767f, 33.442226f, -262.47046f), 1191); + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span277[num2] = new QuestStep(EInteractionType.Interact, 1047396u, new Vector3(33.035767f, 33.442226f, -262.47046f), 1191); obj184.Steps = list277; reference218 = obj184; - ref QuestSequence reference219 = ref span105[2]; + num++; + ref QuestSequence reference219 = ref span275[num]; QuestSequence obj185 = new QuestSequence { Sequence = 2 @@ -343247,32 +417038,38 @@ public static class AssemblyQuestLoader num2 = 3; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span106 = CollectionsMarshal.AsSpan(list278); - span106[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-56.819763f, 28.072628f, -399.17023f), 1191); - span106[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-120.99963f, 28.090134f, -456.97507f), 1191) + Span span278 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + span278[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-56.819763f, 28.072628f, -399.17023f), 1191); + index2++; + span278[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-120.99963f, 28.090134f, -456.97507f), 1191) { DisableNavmesh = true }; - span106[2] = new QuestStep(EInteractionType.Interact, 1047397u, new Vector3(-149.03491f, 25.971825f, -500.63324f), 1191) + index2++; + span278[index2] = new QuestStep(EInteractionType.Interact, 1047397u, new Vector3(-149.03491f, 25.971825f, -500.63324f), 1191) { DisableNavmesh = true }; obj185.Steps = list278; reference219 = obj185; - ref QuestSequence reference220 = ref span105[3]; + num++; + ref QuestSequence reference220 = ref span275[num]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - Span span107 = CollectionsMarshal.AsSpan(list279); - span107[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1191) + index2 = 2; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + Span span279 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + span279[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1191) { Aetheryte = EAetheryteLocation.HeritageFoundTheOutskirts }; - span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1047403u, new Vector3(-177.72192f, 28f, -542.9313f), 1191); + num2++; + span279[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047403u, new Vector3(-177.72192f, 28f, -542.9313f), 1191); obj186.Steps = list279; reference220 = obj186; questRoot29.QuestSequence = list275; @@ -343282,13 +417079,16 @@ public static class AssemblyQuestLoader num = 1; List list280 = new List(num); CollectionsMarshal.SetCount(list280, num); - CollectionsMarshal.AsSpan(list280)[0] = "liza"; + Span span280 = CollectionsMarshal.AsSpan(list280); + index = 0; + span280[index] = "liza"; questRoot30.Author = list280; - num = 6; - List list281 = new List(num); - CollectionsMarshal.SetCount(list281, num); - Span span108 = CollectionsMarshal.AsSpan(list281); - ref QuestSequence reference221 = ref span108[0]; + index = 6; + List list281 = new List(index); + CollectionsMarshal.SetCount(list281, index); + Span span281 = CollectionsMarshal.AsSpan(list281); + num = 0; + ref QuestSequence reference221 = ref span281[num]; QuestSequence obj187 = new QuestSequence { Sequence = 0 @@ -343296,21 +417096,27 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047403u, new Vector3(-177.72192f, 28f, -542.9313f), 1191); + Span span282 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span282[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047403u, new Vector3(-177.72192f, 28f, -542.9313f), 1191); obj187.Steps = list282; reference221 = obj187; - ref QuestSequence reference222 = ref span108[1]; + num++; + ref QuestSequence reference222 = ref span281[num]; QuestSequence obj188 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1047405u, new Vector3(-117.906494f, 28.995459f, -353.1701f), 1191); + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + Span span283 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span283[num2] = new QuestStep(EInteractionType.Interact, 1047405u, new Vector3(-117.906494f, 28.995459f, -353.1701f), 1191); obj188.Steps = list283; reference222 = obj188; - ref QuestSequence reference223 = ref span108[2]; + num++; + ref QuestSequence reference223 = ref span281[num]; QuestSequence obj189 = new QuestSequence { Sequence = 2 @@ -343318,63 +417124,88 @@ public static class AssemblyQuestLoader num2 = 3; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span109 = CollectionsMarshal.AsSpan(list284); - ref QuestStep reference224 = ref span109[0]; + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + ref QuestStep reference224 = ref span284[index2]; QuestStep questStep35 = new QuestStep(EInteractionType.Interact, 1047408u, new Vector3(22.9953f, 35.463512f, -332.02112f), 1191); - num3 = 6; - List list285 = new List(num3); - CollectionsMarshal.SetCount(list285, num3); - Span span110 = CollectionsMarshal.AsSpan(list285); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list285 = new List(index3); + CollectionsMarshal.SetCount(list285, index3); + Span span285 = CollectionsMarshal.AsSpan(list285); + num3 = 0; + span285[num3] = null; + num3++; + span285[num3] = null; + num3++; + span285[num3] = null; + num3++; + span285[num3] = null; + num3++; + span285[num3] = null; + num3++; + span285[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep35.CompletionQuestVariablesFlags = list285; reference224 = questStep35; - ref QuestStep reference225 = ref span109[1]; + index2++; + ref QuestStep reference225 = ref span284[index2]; QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 1047410u, new Vector3(48.17273f, 34.29345f, -380.60577f), 1191); num3 = 6; List list286 = new List(num3); CollectionsMarshal.SetCount(list286, num3); - Span span111 = CollectionsMarshal.AsSpan(list286); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span286 = CollectionsMarshal.AsSpan(list286); + index3 = 0; + span286[index3] = null; + index3++; + span286[index3] = null; + index3++; + span286[index3] = null; + index3++; + span286[index3] = null; + index3++; + span286[index3] = null; + index3++; + span286[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep36.CompletionQuestVariablesFlags = list286; reference225 = questStep36; - ref QuestStep reference226 = ref span109[2]; + index2++; + ref QuestStep reference226 = ref span284[index2]; QuestStep questStep37 = new QuestStep(EInteractionType.Interact, 1047409u, new Vector3(10.849121f, 30.06934f, -458.7625f), 1191); - num3 = 6; - List list287 = new List(num3); - CollectionsMarshal.SetCount(list287, num3); - Span span112 = CollectionsMarshal.AsSpan(list287); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list287 = new List(index3); + CollectionsMarshal.SetCount(list287, index3); + Span span287 = CollectionsMarshal.AsSpan(list287); + num3 = 0; + span287[num3] = null; + num3++; + span287[num3] = null; + num3++; + span287[num3] = null; + num3++; + span287[num3] = null; + num3++; + span287[num3] = null; + num3++; + span287[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep37.CompletionQuestVariablesFlags = list287; reference226 = questStep37; obj189.Steps = list284; reference223 = obj189; - ref QuestSequence reference227 = ref span108[3]; + num++; + ref QuestSequence reference227 = ref span281[num]; QuestSequence obj190 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Interact, 1047411u, new Vector3(-66.78876f, 35.107204f, -249.56134f), 1191); + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + Span span288 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span288[num2] = new QuestStep(EInteractionType.Interact, 1047411u, new Vector3(-66.78876f, 35.107204f, -249.56134f), 1191); obj190.Steps = list288; reference227 = obj190; - ref QuestSequence reference228 = ref span108[4]; + num++; + ref QuestSequence reference228 = ref span281[num]; QuestSequence obj191 = new QuestSequence { Sequence = 4 @@ -343382,8 +417213,9 @@ public static class AssemblyQuestLoader num2 = 2; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span113 = CollectionsMarshal.AsSpan(list289); - ref QuestStep reference229 = ref span113[0]; + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + ref QuestStep reference229 = ref span289[index2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, 2013821u, new Vector3(-182.42163f, 21.835632f, -411.0323f), 1191) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -343391,21 +417223,30 @@ public static class AssemblyQuestLoader num3 = 1; List list290 = new List(num3); CollectionsMarshal.SetCount(list290, num3); - CollectionsMarshal.AsSpan(list290)[0] = 17701u; + Span span290 = CollectionsMarshal.AsSpan(list290); + index3 = 0; + span290[index3] = 17701u; obj192.KillEnemyDataIds = list290; - num3 = 6; - List list291 = new List(num3); - CollectionsMarshal.SetCount(list291, num3); - Span span114 = CollectionsMarshal.AsSpan(list291); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list291 = new List(index3); + CollectionsMarshal.SetCount(list291, index3); + Span span291 = CollectionsMarshal.AsSpan(list291); + num3 = 0; + span291[num3] = null; + num3++; + span291[num3] = null; + num3++; + span291[num3] = null; + num3++; + span291[num3] = null; + num3++; + span291[num3] = null; + num3++; + span291[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj192.CompletionQuestVariablesFlags = list291; reference229 = obj192; - ref QuestStep reference230 = ref span113[1]; + index2++; + ref QuestStep reference230 = ref span289[index2]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, 2013820u, new Vector3(-56.839844f, 21.835632f, -520.8057f), 1191) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -343413,31 +417254,42 @@ public static class AssemblyQuestLoader num3 = 1; List list292 = new List(num3); CollectionsMarshal.SetCount(list292, num3); - CollectionsMarshal.AsSpan(list292)[0] = 17701u; + Span span292 = CollectionsMarshal.AsSpan(list292); + index3 = 0; + span292[index3] = 17701u; obj193.KillEnemyDataIds = list292; - num3 = 6; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - Span span115 = CollectionsMarshal.AsSpan(list293); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list293 = new List(index3); + CollectionsMarshal.SetCount(list293, index3); + Span span293 = CollectionsMarshal.AsSpan(list293); + num3 = 0; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj193.CompletionQuestVariablesFlags = list293; reference230 = obj193; obj191.Steps = list289; reference228 = obj191; - ref QuestSequence reference231 = ref span108[5]; + num++; + ref QuestSequence reference231 = ref span281[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047406u, new Vector3(-116.77734f, 28.996273f, -351.36957f), 1191); + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span294 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span294[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047406u, new Vector3(-116.77734f, 28.996273f, -351.36957f), 1191); obj194.Steps = list294; reference231 = obj194; questRoot30.QuestSequence = list281; @@ -343447,13 +417299,16 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "liza"; + Span span295 = CollectionsMarshal.AsSpan(list295); + index = 0; + span295[index] = "liza"; questRoot31.Author = list295; - num = 9; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - Span span116 = CollectionsMarshal.AsSpan(list296); - ref QuestSequence reference232 = ref span116[0]; + index = 9; + List list296 = new List(index); + CollectionsMarshal.SetCount(list296, index); + Span span296 = CollectionsMarshal.AsSpan(list296); + num = 0; + ref QuestSequence reference232 = ref span296[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -343461,24 +417316,30 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047406u, new Vector3(-116.77734f, 28.996273f, -351.36957f), 1191); + Span span297 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span297[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047406u, new Vector3(-116.77734f, 28.996273f, -351.36957f), 1191); obj195.Steps = list297; reference232 = obj195; - ref QuestSequence reference233 = ref span116[1]; + num++; + ref QuestSequence reference233 = ref span296[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.Interact, 1047412u, new Vector3(-146.56293f, 25.971825f, -494.98743f), 1191) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + Span span298 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span298[num2] = new QuestStep(EInteractionType.Interact, 1047412u, new Vector3(-146.56293f, 25.971825f, -494.98743f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj196.Steps = list298; reference233 = obj196; - ref QuestSequence reference234 = ref span116[2]; + num++; + ref QuestSequence reference234 = ref span296[num]; QuestSequence obj197 = new QuestSequence { Sequence = 2 @@ -343486,63 +417347,88 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1047414u, new Vector3(-146.19672f, 25.971825f, -498.1308f), 1191); + Span span299 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span299[index2] = new QuestStep(EInteractionType.Interact, 1047414u, new Vector3(-146.19672f, 25.971825f, -498.1308f), 1191); obj197.Steps = list299; reference234 = obj197; - ref QuestSequence reference235 = ref span116[3]; + num++; + ref QuestSequence reference235 = ref span296[num]; QuestSequence obj198 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - Span span117 = CollectionsMarshal.AsSpan(list300); - ref QuestStep reference236 = ref span117[0]; + index2 = 3; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + Span span300 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + ref QuestStep reference236 = ref span300[num2]; QuestStep questStep38 = new QuestStep(EInteractionType.Interact, 1047419u, new Vector3(-149.1264f, 30.999998f, -613.36694f), 1191); num3 = 6; List list301 = new List(num3); CollectionsMarshal.SetCount(list301, num3); - Span span118 = CollectionsMarshal.AsSpan(list301); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span301 = CollectionsMarshal.AsSpan(list301); + index3 = 0; + span301[index3] = null; + index3++; + span301[index3] = null; + index3++; + span301[index3] = null; + index3++; + span301[index3] = null; + index3++; + span301[index3] = null; + index3++; + span301[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep38.CompletionQuestVariablesFlags = list301; reference236 = questStep38; - ref QuestStep reference237 = ref span117[1]; + num2++; + ref QuestStep reference237 = ref span300[num2]; QuestStep questStep39 = new QuestStep(EInteractionType.Interact, 1047420u, new Vector3(-142.50409f, 40.99999f, -698.8785f), 1191); - num3 = 6; - List list302 = new List(num3); - CollectionsMarshal.SetCount(list302, num3); - Span span119 = CollectionsMarshal.AsSpan(list302); - span119[0] = null; - span119[1] = null; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list302 = new List(index3); + CollectionsMarshal.SetCount(list302, index3); + Span span302 = CollectionsMarshal.AsSpan(list302); + num3 = 0; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep39.CompletionQuestVariablesFlags = list302; reference237 = questStep39; - ref QuestStep reference238 = ref span117[2]; + num2++; + ref QuestStep reference238 = ref span300[num2]; QuestStep questStep40 = new QuestStep(EInteractionType.Interact, 1047421u, new Vector3(-69.13867f, 50.097145f, -670.06946f), 1191); num3 = 6; List list303 = new List(num3); CollectionsMarshal.SetCount(list303, num3); - Span span120 = CollectionsMarshal.AsSpan(list303); - span120[0] = null; - span120[1] = null; - span120[2] = null; - span120[3] = null; - span120[4] = null; - span120[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span303 = CollectionsMarshal.AsSpan(list303); + index3 = 0; + span303[index3] = null; + index3++; + span303[index3] = null; + index3++; + span303[index3] = null; + index3++; + span303[index3] = null; + index3++; + span303[index3] = null; + index3++; + span303[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep40.CompletionQuestVariablesFlags = list303; reference238 = questStep40; obj198.Steps = list300; reference235 = obj198; - ref QuestSequence reference239 = ref span116[4]; + num++; + ref QuestSequence reference239 = ref span296[num]; QuestSequence obj199 = new QuestSequence { Sequence = 4 @@ -343550,21 +417436,27 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.Interact, 2013896u, new Vector3(-202.65509f, 29.984009f, -595.636f), 1191); + Span span304 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span304[index2] = new QuestStep(EInteractionType.Interact, 2013896u, new Vector3(-202.65509f, 29.984009f, -595.636f), 1191); obj199.Steps = list304; reference239 = obj199; - ref QuestSequence reference240 = ref span116[5]; + num++; + ref QuestSequence reference240 = ref span296[num]; QuestSequence obj200 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.Interact, 2013822u, new Vector3(120.408936f, 42.008057f, -468.19257f), 1191); + index2 = 1; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + Span span305 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + span305[num2] = new QuestStep(EInteractionType.Interact, 2013822u, new Vector3(120.408936f, 42.008057f, -468.19257f), 1191); obj200.Steps = list305; reference240 = obj200; - ref QuestSequence reference241 = ref span116[6]; + num++; + ref QuestSequence reference241 = ref span296[num]; QuestSequence obj201 = new QuestSequence { Sequence = 6 @@ -343572,28 +417464,34 @@ public static class AssemblyQuestLoader num2 = 2; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span121 = CollectionsMarshal.AsSpan(list306); - span121[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(230.06555f, 67.24928f, -473.94547f), 1191); - span121[1] = new QuestStep(EInteractionType.Interact, 1047428u, new Vector3(248.70679f, 74.60507f, -547.9973f), 1191); + Span span306 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span306[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(230.06555f, 67.24928f, -473.94547f), 1191); + index2++; + span306[index2] = new QuestStep(EInteractionType.Interact, 1047428u, new Vector3(248.70679f, 74.60507f, -547.9973f), 1191); obj201.Steps = list306; reference241 = obj201; - ref QuestSequence reference242 = ref span116[7]; + num++; + ref QuestSequence reference242 = ref span296[num]; QuestSequence obj202 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - Span span122 = CollectionsMarshal.AsSpan(list307); - span122[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013965u, new Vector3(204.57764f, 58.182617f, -678.49243f), 1191) + index2 = 2; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + Span span307 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + span307[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013965u, new Vector3(204.57764f, 58.182617f, -678.49243f), 1191) { AetherCurrentId = 2818465u }; - span122[1] = new QuestStep(EInteractionType.Interact, 1047433u, new Vector3(220.26392f, 55.931297f, -679.19434f), 1191); + num2++; + span307[num2] = new QuestStep(EInteractionType.Interact, 1047433u, new Vector3(220.26392f, 55.931297f, -679.19434f), 1191); obj202.Steps = list307; reference242 = obj202; - ref QuestSequence reference243 = ref span116[8]; + num++; + ref QuestSequence reference243 = ref span296[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -343601,7 +417499,9 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047438u, new Vector3(-1.7243042f, -2.5286822E-06f, -0.5340576f), 1171) + Span span308 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span308[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047438u, new Vector3(-1.7243042f, -2.5286822E-06f, -0.5340576f), 1171) { StopDistance = 5f }; @@ -343614,27 +417514,33 @@ public static class AssemblyQuestLoader num = 1; List list309 = new List(num); CollectionsMarshal.SetCount(list309, num); - CollectionsMarshal.AsSpan(list309)[0] = "liza"; + Span span309 = CollectionsMarshal.AsSpan(list309); + index = 0; + span309[index] = "liza"; questRoot32.Author = list309; - num = 6; - List list310 = new List(num); - CollectionsMarshal.SetCount(list310, num); - Span span123 = CollectionsMarshal.AsSpan(list310); - ref QuestSequence reference244 = ref span123[0]; + index = 6; + List list310 = new List(index); + CollectionsMarshal.SetCount(list310, index); + Span span310 = CollectionsMarshal.AsSpan(list310); + num = 0; + ref QuestSequence reference244 = ref span310[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047438u, new Vector3(-1.7243042f, -2.5286822E-06f, -0.5340576f), 1171) + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + Span span311 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span311[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047438u, new Vector3(-1.7243042f, -2.5286822E-06f, -0.5340576f), 1171) { StopDistance = 5f }; obj204.Steps = list311; reference244 = obj204; - ref QuestSequence reference245 = ref span123[1]; + num++; + ref QuestSequence reference245 = ref span310[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -343642,27 +417548,33 @@ public static class AssemblyQuestLoader num2 = 2; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span124 = CollectionsMarshal.AsSpan(list312); - span124[0] = new QuestStep(EInteractionType.Interact, 2013853u, new Vector3(0.6560669f, 0.99176025f, 17.532532f), 1171) + Span span312 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + span312[index2] = new QuestStep(EInteractionType.Interact, 2013853u, new Vector3(0.6560669f, 0.99176025f, 17.532532f), 1171) { StopDistance = 4.5f, TargetTerritoryId = (ushort)1191 }; - span124[1] = new QuestStep(EInteractionType.Interact, 1047444u, new Vector3(264.57617f, 68.46363f, -503.31888f), 1191); + index2++; + span312[index2] = new QuestStep(EInteractionType.Interact, 1047444u, new Vector3(264.57617f, 68.46363f, -503.31888f), 1191); obj205.Steps = list312; reference245 = obj205; - ref QuestSequence reference246 = ref span123[2]; + num++; + ref QuestSequence reference246 = ref span310[num]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1047450u, new Vector3(484.6112f, 91.99999f, -500.3281f), 1191); + index2 = 1; + List list313 = new List(index2); + CollectionsMarshal.SetCount(list313, index2); + Span span313 = CollectionsMarshal.AsSpan(list313); + num2 = 0; + span313[num2] = new QuestStep(EInteractionType.Interact, 1047450u, new Vector3(484.6112f, 91.99999f, -500.3281f), 1191); obj206.Steps = list313; reference246 = obj206; - ref QuestSequence reference247 = ref span123[3]; + num++; + ref QuestSequence reference247 = ref span310[num]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -343670,46 +417582,56 @@ public static class AssemblyQuestLoader num2 = 4; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span125 = CollectionsMarshal.AsSpan(list314); - span125[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013968u, new Vector3(685.96924f, 139.17749f, -516.5637f), 1191) + Span span314 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span314[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013968u, new Vector3(685.96924f, 139.17749f, -516.5637f), 1191) { AetherCurrentId = 2818470u }; - span125[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013967u, new Vector3(606.83594f, 127.55017f, -190.3869f), 1191) + index2++; + span314[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013967u, new Vector3(606.83594f, 127.55017f, -190.3869f), 1191) { AetherCurrentId = 2818469u }; - span125[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(554.8906f, 83.21251f, -226.04199f), 1191) + index2++; + span314[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(554.8906f, 83.21251f, -226.04199f), 1191) { DisableNavmesh = true, Mount = true }; - ref QuestStep reference248 = ref span125[3]; + index2++; + ref QuestStep reference248 = ref span314[index2]; QuestStep obj208 = new QuestStep(EInteractionType.Combat, 2013823u, new Vector3(535.7595f, 85.31323f, -316.0296f), 1191) { Comment = "two waves of enemies", EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list315 = new List(num3); - CollectionsMarshal.SetCount(list315, num3); - CollectionsMarshal.AsSpan(list315)[0] = 17702u; + index3 = 1; + List list315 = new List(index3); + CollectionsMarshal.SetCount(list315, index3); + Span span315 = CollectionsMarshal.AsSpan(list315); + num3 = 0; + span315[num3] = 17702u; obj208.KillEnemyDataIds = list315; reference248 = obj208; obj207.Steps = list314; reference247 = obj207; - ref QuestSequence reference249 = ref span123[4]; + num++; + ref QuestSequence reference249 = ref span310[num]; QuestSequence obj209 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 2013824u, new Vector3(438.37634f, 77.62268f, -282.70392f), 1191); + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + Span span316 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + span316[num2] = new QuestStep(EInteractionType.Interact, 2013824u, new Vector3(438.37634f, 77.62268f, -282.70392f), 1191); obj209.Steps = list316; reference249 = obj209; - ref QuestSequence reference250 = ref span123[5]; + num++; + ref QuestSequence reference250 = ref span310[num]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue @@ -343717,7 +417639,9 @@ public static class AssemblyQuestLoader num2 = 1; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047460u, new Vector3(450.33948f, 89.99999f, -474.815f), 1191) + Span span317 = CollectionsMarshal.AsSpan(list317); + index2 = 0; + span317[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047460u, new Vector3(450.33948f, 89.99999f, -474.815f), 1191) { StopDistance = 5f }; @@ -343730,27 +417654,33 @@ public static class AssemblyQuestLoader num = 1; List list318 = new List(num); CollectionsMarshal.SetCount(list318, num); - CollectionsMarshal.AsSpan(list318)[0] = "liza"; + Span span318 = CollectionsMarshal.AsSpan(list318); + index = 0; + span318[index] = "liza"; questRoot33.Author = list318; - num = 4; - List list319 = new List(num); - CollectionsMarshal.SetCount(list319, num); - Span span126 = CollectionsMarshal.AsSpan(list319); - ref QuestSequence reference251 = ref span126[0]; + index = 4; + List list319 = new List(index); + CollectionsMarshal.SetCount(list319, index); + Span span319 = CollectionsMarshal.AsSpan(list319); + num = 0; + ref QuestSequence reference251 = ref span319[num]; QuestSequence obj211 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047465u, new Vector3(452.71985f, 90f, -473.9605f), 1191) + index2 = 1; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + Span span320 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + span320[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047465u, new Vector3(452.71985f, 90f, -473.9605f), 1191) { StopDistance = 5f }; obj211.Steps = list320; reference251 = obj211; - ref QuestSequence reference252 = ref span126[1]; + num++; + ref QuestSequence reference252 = ref span319[num]; QuestSequence obj212 = new QuestSequence { Sequence = 1 @@ -343758,29 +417688,35 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.Interact, 1047770u, new Vector3(247.54712f, 72.69989f, -536.7361f), 1191); + Span span321 = CollectionsMarshal.AsSpan(list321); + index2 = 0; + span321[index2] = new QuestStep(EInteractionType.Interact, 1047770u, new Vector3(247.54712f, 72.69989f, -536.7361f), 1191); obj212.Steps = list321; reference252 = obj212; - ref QuestSequence reference253 = ref span126[2]; + num++; + ref QuestSequence reference253 = ref span319[num]; QuestSequence obj213 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - Span span127 = CollectionsMarshal.AsSpan(list322); - span127[0] = new QuestStep(EInteractionType.Interact, 2014030u, new Vector3(221.82031f, 54.58142f, -693.38525f), 1191) + index2 = 2; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + Span span322 = CollectionsMarshal.AsSpan(list322); + num2 = 0; + span322[num2] = new QuestStep(EInteractionType.Interact, 2014030u, new Vector3(221.82031f, 54.58142f, -693.38525f), 1191) { TargetTerritoryId = (ushort)1171 }; - span127[1] = new QuestStep(EInteractionType.Interact, 1047775u, new Vector3(1.0527954f, 0.003171f, 0.6866455f), 1171) + num2++; + span322[num2] = new QuestStep(EInteractionType.Interact, 1047775u, new Vector3(1.0527954f, 0.003171f, 0.6866455f), 1171) { DelaySecondsAtStart = 3f }; obj213.Steps = list322; reference253 = obj213; - ref QuestSequence reference254 = ref span126[3]; + num++; + ref QuestSequence reference254 = ref span319[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue @@ -343788,7 +417724,9 @@ public static class AssemblyQuestLoader num2 = 1; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047781u, new Vector3(2.670288f, 0.003171f, 1.296936f), 1171) + Span span323 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span323[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047781u, new Vector3(2.670288f, 0.003171f, 1.296936f), 1171) { StopDistance = 5f }; @@ -343801,27 +417739,33 @@ public static class AssemblyQuestLoader num = 1; List list324 = new List(num); CollectionsMarshal.SetCount(list324, num); - CollectionsMarshal.AsSpan(list324)[0] = "liza"; + Span span324 = CollectionsMarshal.AsSpan(list324); + index = 0; + span324[index] = "liza"; questRoot34.Author = list324; - num = 6; - List list325 = new List(num); - CollectionsMarshal.SetCount(list325, num); - Span span128 = CollectionsMarshal.AsSpan(list325); - ref QuestSequence reference255 = ref span128[0]; + index = 6; + List list325 = new List(index); + CollectionsMarshal.SetCount(list325, index); + Span span325 = CollectionsMarshal.AsSpan(list325); + num = 0; + ref QuestSequence reference255 = ref span325[num]; QuestSequence obj215 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047776u, new Vector3(-0.869812f, -2.9624603E-06f, -0.6256714f), 1171) + index2 = 1; + List list326 = new List(index2); + CollectionsMarshal.SetCount(list326, index2); + Span span326 = CollectionsMarshal.AsSpan(list326); + num2 = 0; + span326[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047776u, new Vector3(-0.869812f, -2.9624603E-06f, -0.6256714f), 1171) { StopDistance = 5f }; obj215.Steps = list326; reference255 = obj215; - ref QuestSequence reference256 = ref span128[1]; + num++; + ref QuestSequence reference256 = ref span325[num]; QuestSequence obj216 = new QuestSequence { Sequence = 1 @@ -343829,8 +417773,9 @@ public static class AssemblyQuestLoader num2 = 3; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - Span span129 = CollectionsMarshal.AsSpan(list327); - span129[0] = new QuestStep(EInteractionType.AcceptQuest, 1049443u, new Vector3(-177.56934f, 29.999998f, -601.15967f), 1191) + Span span327 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span327[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049443u, new Vector3(-177.56934f, 29.999998f, -601.15967f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, SkipConditions = new SkipConditions @@ -343842,32 +417787,39 @@ public static class AssemblyQuestLoader }, PickUpQuestId = new QuestId(5153) }; - span129[1] = new QuestStep(EInteractionType.AcceptQuest, 1050805u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) + index2++; + span327[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050805u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) { PickUpQuestId = new QuestId(5160) }; - span129[2] = new QuestStep(EInteractionType.Interact, 1048053u, new Vector3(-296.52863f, 45.88422f, -828.58014f), 1191); + index2++; + span327[index2] = new QuestStep(EInteractionType.Interact, 1048053u, new Vector3(-296.52863f, 45.88422f, -828.58014f), 1191); obj216.Steps = list327; reference256 = obj216; - span128[2] = new QuestSequence + num++; + span325[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference257 = ref span128[3]; + num++; + ref QuestSequence reference257 = ref span325[num]; QuestSequence obj217 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Interact, 1048059u, new Vector3(0.6560669f, -6.050003f, 218.24976f), 1186) + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + Span span328 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span328[num2] = new QuestStep(EInteractionType.Interact, 1048059u, new Vector3(0.6560669f, -6.050003f, 218.24976f), 1186) { StopDistance = 5f }; obj217.Steps = list328; reference257 = obj217; - ref QuestSequence reference258 = ref span128[4]; + num++; + ref QuestSequence reference258 = ref span325[num]; QuestSequence obj218 = new QuestSequence { Sequence = 4 @@ -343875,30 +417827,36 @@ public static class AssemblyQuestLoader num2 = 2; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - Span span130 = CollectionsMarshal.AsSpan(list329); - span130[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + Span span329 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + span329[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineInformationCenter }; - span130[1] = new QuestStep(EInteractionType.Interact, 1048060u, new Vector3(5.935669f, 7.786434f, 27.450928f), 1186); + index2++; + span329[index2] = new QuestStep(EInteractionType.Interact, 1048060u, new Vector3(5.935669f, 7.786434f, 27.450928f), 1186); obj218.Steps = list329; reference258 = obj218; - ref QuestSequence reference259 = ref span128[5]; + num++; + ref QuestSequence reference259 = ref span325[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - Span span131 = CollectionsMarshal.AsSpan(list330); - span131[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-7.134756f, 8.467899f, 7.050073f), 1186); - span131[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1186) + index2 = 3; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + Span span330 = CollectionsMarshal.AsSpan(list330); + num2 = 0; + span330[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-7.134756f, 8.467899f, 7.050073f), 1186); + num2++; + span330[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1186) { StopDistance = 11f, Aetheryte = EAetheryteLocation.SolutionNine }; - span131[2] = new QuestStep(EInteractionType.CompleteQuest, 1048061u, new Vector3(-97.94769f, 0.00054359436f, -0.10687256f), 1186); + num2++; + span330[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048061u, new Vector3(-97.94769f, 0.00054359436f, -0.10687256f), 1186); obj219.Steps = list330; reference259 = obj219; questRoot34.QuestSequence = list325; @@ -343908,13 +417866,16 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "liza"; + Span span331 = CollectionsMarshal.AsSpan(list331); + index = 0; + span331[index] = "liza"; questRoot35.Author = list331; - num = 8; - List list332 = new List(num); - CollectionsMarshal.SetCount(list332, num); - Span span132 = CollectionsMarshal.AsSpan(list332); - ref QuestSequence reference260 = ref span132[0]; + index = 8; + List list332 = new List(index); + CollectionsMarshal.SetCount(list332, index); + Span span332 = CollectionsMarshal.AsSpan(list332); + num = 0; + ref QuestSequence reference260 = ref span332[num]; QuestSequence obj220 = new QuestSequence { Sequence = 0 @@ -343922,47 +417883,57 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048062u, new Vector3(-136.43097f, 0.22516371f, -44.235962f), 1186) + Span span333 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span333[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048062u, new Vector3(-136.43097f, 0.22516371f, -44.235962f), 1186) { StopDistance = 5f }; obj220.Steps = list333; reference260 = obj220; - ref QuestSequence reference261 = ref span132[1]; + num++; + ref QuestSequence reference261 = ref span332[num]; QuestSequence obj221 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - ref QuestStep reference262 = ref CollectionsMarshal.AsSpan(list334)[0]; + index2 = 1; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + Span span334 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + ref QuestStep reference262 = ref span334[num2]; QuestStep questStep41 = new QuestStep(EInteractionType.Interact, 1048233u, new Vector3(-163.86664f, 0.9219522f, -51.529785f), 1186); num3 = 2; List list335 = new List(num3); CollectionsMarshal.SetCount(list335, num3); - Span span133 = CollectionsMarshal.AsSpan(list335); - span133[0] = new DialogueChoice + Span span335 = CollectionsMarshal.AsSpan(list335); + index3 = 0; + span335[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGME103_04934_SYSTEM_000_057") }; - span133[1] = new DialogueChoice + index3++; + span335[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGME103_04934_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGME103_04934_A1_000_003") }; questStep41.DialogueChoices = list335; - num3 = 1; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = 2u; + index3 = 1; + List list336 = new List(index3); + CollectionsMarshal.SetCount(list336, index3); + Span span336 = CollectionsMarshal.AsSpan(list336); + num3 = 0; + span336[num3] = 2u; questStep41.PointMenuChoices = list336; reference262 = questStep41; obj221.Steps = list334; reference261 = obj221; - ref QuestSequence reference263 = ref span132[2]; + num++; + ref QuestSequence reference263 = ref span332[num]; QuestSequence obj222 = new QuestSequence { Sequence = 2 @@ -343970,27 +417941,33 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.Interact, 1048066u, new Vector3(-162.55438f, 0.92195225f, -52.384216f), 1186) + Span span337 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span337[index2] = new QuestStep(EInteractionType.Interact, 1048066u, new Vector3(-162.55438f, 0.92195225f, -52.384216f), 1186) { StopDistance = 5f }; obj222.Steps = list337; reference263 = obj222; - ref QuestSequence reference264 = ref span132[3]; + num++; + ref QuestSequence reference264 = ref span332[num]; QuestSequence obj223 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-163.83618f, 0.9219523f, -51.499268f), 1186) + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + Span span338 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span338[num2] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-163.83618f, 0.9219523f, -51.499268f), 1186) { StopDistance = 5f }; obj223.Steps = list338; reference264 = obj223; - ref QuestSequence reference265 = ref span132[4]; + num++; + ref QuestSequence reference265 = ref span332[num]; QuestSequence obj224 = new QuestSequence { Sequence = 4 @@ -343998,34 +417975,41 @@ public static class AssemblyQuestLoader num2 = 3; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span134 = CollectionsMarshal.AsSpan(list339); - span134[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + Span span339 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span339[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineNexusArcade }; - span134[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-320.34818f, 9.519508f, -6.9244547f), 1186); - span134[2] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-320.34818f, 9.519508f, -6.9244547f), 1186) + index2++; + span339[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-320.34818f, 9.519508f, -6.9244547f), 1186); + index2++; + span339[index2] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-320.34818f, 9.519508f, -6.9244547f), 1186) { StopDistance = 0.25f, DelaySecondsAtStart = 3f }; obj224.Steps = list339; reference265 = obj224; - ref QuestSequence reference266 = ref span132[5]; + num++; + ref QuestSequence reference266 = ref span332[num]; QuestSequence obj225 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-369.83575f, 14.000001f, 133.25919f), 1186) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + Span span340 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span340[num2] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-369.83575f, 14.000001f, 133.25919f), 1186) { StopDistance = 0.25f }; obj225.Steps = list340; reference266 = obj225; - ref QuestSequence reference267 = ref span132[6]; + num++; + ref QuestSequence reference267 = ref span332[num]; QuestSequence obj226 = new QuestSequence { Sequence = 6 @@ -344033,26 +418017,31 @@ public static class AssemblyQuestLoader num2 = 2; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span135 = CollectionsMarshal.AsSpan(list341); - span135[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + Span span341 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span341[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineResidentialSector }; - span135[1] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-401.3925f, 13.999998f, 273.74304f), 1186) + index2++; + span341[index2] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-401.3925f, 13.999998f, 273.74304f), 1186) { StopDistance = 0.25f }; obj226.Steps = list341; reference267 = obj226; - ref QuestSequence reference268 = ref span132[7]; + num++; + ref QuestSequence reference268 = ref span332[num]; QuestSequence obj227 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048067u, new Vector3(-403.9826f, 13.999998f, 275.8678f), 1186) + index2 = 1; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + Span span342 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span342[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048067u, new Vector3(-403.9826f, 13.999998f, 275.8678f), 1186) { StopDistance = 5f }; @@ -344065,13 +418054,16 @@ public static class AssemblyQuestLoader num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - CollectionsMarshal.AsSpan(list343)[0] = "liza"; + Span span343 = CollectionsMarshal.AsSpan(list343); + index = 0; + span343[index] = "liza"; questRoot36.Author = list343; - num = 5; - List list344 = new List(num); - CollectionsMarshal.SetCount(list344, num); - Span span136 = CollectionsMarshal.AsSpan(list344); - ref QuestSequence reference269 = ref span136[0]; + index = 5; + List list344 = new List(index); + CollectionsMarshal.SetCount(list344, index); + Span span344 = CollectionsMarshal.AsSpan(list344); + num = 0; + ref QuestSequence reference269 = ref span344[num]; QuestSequence obj228 = new QuestSequence { Sequence = 0 @@ -344079,27 +418071,33 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048067u, new Vector3(-403.9826f, 13.999998f, 275.8678f), 1186) + Span span345 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + span345[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048067u, new Vector3(-403.9826f, 13.999998f, 275.8678f), 1186) { StopDistance = 5f }; obj228.Steps = list345; reference269 = obj228; - ref QuestSequence reference270 = ref span136[1]; + num++; + ref QuestSequence reference270 = ref span344[num]; QuestSequence obj229 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 1048071u, new Vector3(2.029419f, 0.00054359436f, -97.45941f), 1186) + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + Span span346 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span346[num2] = new QuestStep(EInteractionType.Interact, 1048071u, new Vector3(2.029419f, 0.00054359436f, -97.45941f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine }; obj229.Steps = list346; reference270 = obj229; - ref QuestSequence reference271 = ref span136[2]; + num++; + ref QuestSequence reference271 = ref span344[num]; QuestSequence obj230 = new QuestSequence { Sequence = 2 @@ -344107,31 +418105,38 @@ public static class AssemblyQuestLoader num2 = 3; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - Span span137 = CollectionsMarshal.AsSpan(list347); - span137[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.0530143f, 0.49999952f, -117.162285f), 1186) + Span span347 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span347[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.0530143f, 0.49999952f, -117.162285f), 1186) { RestartNavigationIfCancelled = false }; - span137[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + index2++; + span347[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { DelaySecondsAtStart = 2f, AethernetShard = EAetheryteLocation.SolutionNineResolution }; - span137[2] = new QuestStep(EInteractionType.Interact, 1048073u, new Vector3(4.0740967f, 38.056595f, -375.50934f), 1186); + index2++; + span347[index2] = new QuestStep(EInteractionType.Interact, 1048073u, new Vector3(4.0740967f, 38.056595f, -375.50934f), 1186); obj230.Steps = list347; reference271 = obj230; - ref QuestSequence reference272 = ref span136[3]; + num++; + ref QuestSequence reference272 = ref span344[num]; QuestSequence obj231 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.Interact, 1051346u, new Vector3(6.515503f, 38.056484f, -217.91418f), 1186); + index2 = 1; + List list348 = new List(index2); + CollectionsMarshal.SetCount(list348, index2); + Span span348 = CollectionsMarshal.AsSpan(list348); + num2 = 0; + span348[num2] = new QuestStep(EInteractionType.Interact, 1051346u, new Vector3(6.515503f, 38.056484f, -217.91418f), 1186); obj231.Steps = list348; reference272 = obj231; - ref QuestSequence reference273 = ref span136[4]; + num++; + ref QuestSequence reference273 = ref span344[num]; QuestSequence obj232 = new QuestSequence { Sequence = byte.MaxValue @@ -344139,7 +418144,9 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048075u, new Vector3(133.83679f, 0.00054359436f, 3.5248413f), 1186) + Span span349 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + span349[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048075u, new Vector3(133.83679f, 0.00054359436f, 3.5248413f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine }; @@ -344152,24 +418159,30 @@ public static class AssemblyQuestLoader num = 1; List list350 = new List(num); CollectionsMarshal.SetCount(list350, num); - CollectionsMarshal.AsSpan(list350)[0] = "liza"; + Span span350 = CollectionsMarshal.AsSpan(list350); + index = 0; + span350[index] = "liza"; questRoot37.Author = list350; - num = 6; - List list351 = new List(num); - CollectionsMarshal.SetCount(list351, num); - Span span138 = CollectionsMarshal.AsSpan(list351); - ref QuestSequence reference274 = ref span138[0]; + index = 6; + List list351 = new List(index); + CollectionsMarshal.SetCount(list351, index); + Span span351 = CollectionsMarshal.AsSpan(list351); + num = 0; + ref QuestSequence reference274 = ref span351[num]; QuestSequence obj233 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list352 = new List(num2); - CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048075u, new Vector3(133.83679f, 0.00054359436f, 3.5248413f), 1186); + index2 = 1; + List list352 = new List(index2); + CollectionsMarshal.SetCount(list352, index2); + Span span352 = CollectionsMarshal.AsSpan(list352); + num2 = 0; + span352[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048075u, new Vector3(133.83679f, 0.00054359436f, 3.5248413f), 1186); obj233.Steps = list352; reference274 = obj233; - ref QuestSequence reference275 = ref span138[1]; + num++; + ref QuestSequence reference275 = ref span351[num]; QuestSequence obj234 = new QuestSequence { Sequence = 1 @@ -344177,29 +418190,35 @@ public static class AssemblyQuestLoader num2 = 2; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span139 = CollectionsMarshal.AsSpan(list353); - span139[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.57825f, 0.5499997f, 5.1162424f), 1186) + Span span353 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span353[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.57825f, 0.5499997f, 5.1162424f), 1186) { RestartNavigationIfCancelled = false }; - span139[1] = new QuestStep(EInteractionType.Interact, 1048172u, new Vector3(250.59888f, 59.699997f, 9.201172f), 1186) + index2++; + span353[index2] = new QuestStep(EInteractionType.Interact, 1048172u, new Vector3(250.59888f, 59.699997f, 9.201172f), 1186) { DelaySecondsAtStart = 2f }; obj234.Steps = list353; reference275 = obj234; - ref QuestSequence reference276 = ref span138[2]; + num++; + ref QuestSequence reference276 = ref span351[num]; QuestSequence obj235 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 2013839u, new Vector3(336.4412f, 69.93213f, 5.78728f), 1186); + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + Span span354 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span354[num2] = new QuestStep(EInteractionType.Interact, 2013839u, new Vector3(336.4412f, 69.93213f, 5.78728f), 1186); obj235.Steps = list354; reference276 = obj235; - ref QuestSequence reference277 = ref span138[3]; + num++; + ref QuestSequence reference277 = ref span351[num]; QuestSequence obj236 = new QuestSequence { Sequence = 3 @@ -344207,7 +418226,9 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - ref QuestStep reference278 = ref CollectionsMarshal.AsSpan(list355)[0]; + Span span355 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + ref QuestStep reference278 = ref span355[index2]; QuestStep obj237 = new QuestStep(EInteractionType.Interact, 1048078u, new Vector3(346.0287f, 70f, 12.466553f), 1186) { StopDistance = 5f @@ -344215,7 +418236,9 @@ public static class AssemblyQuestLoader num3 = 1; List list356 = new List(num3); CollectionsMarshal.SetCount(list356, num3); - CollectionsMarshal.AsSpan(list356)[0] = new DialogueChoice + Span span356 = CollectionsMarshal.AsSpan(list356); + index3 = 0; + span356[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGME105_04936_SYSTEM_000_044") @@ -344224,33 +418247,40 @@ public static class AssemblyQuestLoader reference278 = obj237; obj236.Steps = list355; reference277 = obj236; - ref QuestSequence reference279 = ref span138[4]; + num++; + ref QuestSequence reference279 = ref span351[num]; QuestSequence obj238 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - Span span140 = CollectionsMarshal.AsSpan(list357); - span140[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(344.63077f, 59.99995f, 50.459126f), 1186) + index2 = 5; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + Span span357 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span357[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(344.63077f, 59.99995f, 50.459126f), 1186) { StopDistance = 1f }; - span140[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(344.64206f, 60f, 79.1161f), 1186) + num2++; + span357[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(344.64206f, 60f, 79.1161f), 1186) { StopDistance = 5f, NpcWaitDistance = 3f }; - span140[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(346.05466f, 50.75f, 153.15274f), 1186); - span140[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(293.66595f, 51.038002f, 172.77852f), 1186); - span140[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(290.3639f, 51.39998f, 199.20642f), 1186) + num2++; + span357[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(346.05466f, 50.75f, 153.15274f), 1186); + num2++; + span357[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(293.66595f, 51.038002f, 172.77852f), 1186); + num2++; + span357[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(290.3639f, 51.39998f, 199.20642f), 1186) { StopDistance = 2f }; obj238.Steps = list357; reference279 = obj238; - ref QuestSequence reference280 = ref span138[5]; + num++; + ref QuestSequence reference280 = ref span351[num]; QuestSequence obj239 = new QuestSequence { Sequence = byte.MaxValue @@ -344258,7 +418288,9 @@ public static class AssemblyQuestLoader num2 = 1; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048080u, new Vector3(299.45825f, 51.199978f, 202.04468f), 1186); + Span span358 = CollectionsMarshal.AsSpan(list358); + index2 = 0; + span358[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048080u, new Vector3(299.45825f, 51.199978f, 202.04468f), 1186); obj239.Steps = list358; reference280 = obj239; questRoot37.QuestSequence = list351; @@ -344268,27 +418300,33 @@ public static class AssemblyQuestLoader num = 1; List list359 = new List(num); CollectionsMarshal.SetCount(list359, num); - CollectionsMarshal.AsSpan(list359)[0] = "liza"; + Span span359 = CollectionsMarshal.AsSpan(list359); + index = 0; + span359[index] = "liza"; questRoot38.Author = list359; - num = 7; - List list360 = new List(num); - CollectionsMarshal.SetCount(list360, num); - Span span141 = CollectionsMarshal.AsSpan(list360); - ref QuestSequence reference281 = ref span141[0]; + index = 7; + List list360 = new List(index); + CollectionsMarshal.SetCount(list360, index); + Span span360 = CollectionsMarshal.AsSpan(list360); + num = 0; + ref QuestSequence reference281 = ref span360[num]; QuestSequence obj240 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list361 = new List(num2); - CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048236u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) + index2 = 1; + List list361 = new List(index2); + CollectionsMarshal.SetCount(list361, index2); + Span span361 = CollectionsMarshal.AsSpan(list361); + num2 = 0; + span361[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048236u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { StopDistance = 7f }; obj240.Steps = list361; reference281 = obj240; - ref QuestSequence reference282 = ref span141[1]; + num++; + ref QuestSequence reference282 = ref span360[num]; QuestSequence obj241 = new QuestSequence { Sequence = 1 @@ -344296,34 +418334,42 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.Interact, 1048084u, new Vector3(12.802246f, -1.6391277E-07f, 6.42395f), 1207); + Span span362 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + span362[index2] = new QuestStep(EInteractionType.Interact, 1048084u, new Vector3(12.802246f, -1.6391277E-07f, 6.42395f), 1207); obj241.Steps = list362; reference282 = obj241; - ref QuestSequence reference283 = ref span141[2]; + num++; + ref QuestSequence reference283 = ref span360[num]; QuestSequence obj242 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list363 = new List(num2); - CollectionsMarshal.SetCount(list363, num2); - Span span142 = CollectionsMarshal.AsSpan(list363); - span142[0] = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.015319824f, 0.99176025f, 16.03717f), 1207) + index2 = 4; + List list363 = new List(index2); + CollectionsMarshal.SetCount(list363, index2); + Span span363 = CollectionsMarshal.AsSpan(list363); + num2 = 0; + span363[num2] = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.015319824f, 0.99176025f, 16.03717f), 1207) { TargetTerritoryId = (ushort)1186 }; - span142[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num2++; + span363[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineNeonStein }; - span142[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + num2++; + span363[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineTrueVue }; - span142[3] = new QuestStep(EInteractionType.Interact, 1048090u, new Vector3(362.87476f, 50.75f, 223.46838f), 1186); + num2++; + span363[num2] = new QuestStep(EInteractionType.Interact, 1048090u, new Vector3(362.87476f, 50.75f, 223.46838f), 1186); obj242.Steps = list363; reference283 = obj242; - ref QuestSequence reference284 = ref span141[3]; + num++; + ref QuestSequence reference284 = ref span360[num]; QuestSequence obj243 = new QuestSequence { Sequence = 3 @@ -344331,25 +418377,31 @@ public static class AssemblyQuestLoader num2 = 1; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Interact, 1048090u, new Vector3(362.87476f, 50.75f, 223.46838f), 1186); + Span span364 = CollectionsMarshal.AsSpan(list364); + index2 = 0; + span364[index2] = new QuestStep(EInteractionType.Interact, 1048090u, new Vector3(362.87476f, 50.75f, 223.46838f), 1186); obj243.Steps = list364; reference284 = obj243; - ref QuestSequence reference285 = ref span141[4]; + num++; + ref QuestSequence reference285 = ref span360[num]; QuestSequence obj244 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list365 = new List(num2); - CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(364.32428f, 50.75f, 220.96391f), 1186) + index2 = 1; + List list365 = new List(index2); + CollectionsMarshal.SetCount(list365, index2); + Span span365 = CollectionsMarshal.AsSpan(list365); + num2 = 0; + span365[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(364.32428f, 50.75f, 220.96391f), 1186) { StopDistance = 5f, ItemId = 2003561u }; obj244.Steps = list365; reference285 = obj244; - ref QuestSequence reference286 = ref span141[5]; + num++; + ref QuestSequence reference286 = ref span360[num]; QuestSequence obj245 = new QuestSequence { Sequence = 5 @@ -344357,12 +418409,14 @@ public static class AssemblyQuestLoader num2 = 3; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - Span span143 = CollectionsMarshal.AsSpan(list366); - span143[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + Span span366 = CollectionsMarshal.AsSpan(list366); + index2 = 0; + span366[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineTheArcadion }; - span143[1] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) + index2++; + span366[index2] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, AethernetShortcut = new AethernetShortcut @@ -344371,18 +418425,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineNeonStein } }; - span143[2] = new QuestStep(EInteractionType.Interact, 1048189u, new Vector3(13.290527f, -1.7329884E-07f, 6.088318f), 1207); + index2++; + span366[index2] = new QuestStep(EInteractionType.Interact, 1048189u, new Vector3(13.290527f, -1.7329884E-07f, 6.088318f), 1207); obj245.Steps = list366; reference286 = obj245; - ref QuestSequence reference287 = ref span141[6]; + num++; + ref QuestSequence reference287 = ref span360[num]; QuestSequence obj246 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048094u, new Vector3(4.5318604f, 0.046479464f, 5.5999756f), 1207) + index2 = 1; + List list367 = new List(index2); + CollectionsMarshal.SetCount(list367, index2); + Span span367 = CollectionsMarshal.AsSpan(list367); + num2 = 0; + span367[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048094u, new Vector3(4.5318604f, 0.046479464f, 5.5999756f), 1207) { StopDistance = 7f }; @@ -344395,13 +418453,16 @@ public static class AssemblyQuestLoader num = 1; List list368 = new List(num); CollectionsMarshal.SetCount(list368, num); - CollectionsMarshal.AsSpan(list368)[0] = "liza"; + Span span368 = CollectionsMarshal.AsSpan(list368); + index = 0; + span368[index] = "liza"; questRoot39.Author = list368; - num = 5; - List list369 = new List(num); - CollectionsMarshal.SetCount(list369, num); - Span span144 = CollectionsMarshal.AsSpan(list369); - ref QuestSequence reference288 = ref span144[0]; + index = 5; + List list369 = new List(index); + CollectionsMarshal.SetCount(list369, index); + Span span369 = CollectionsMarshal.AsSpan(list369); + num = 0; + ref QuestSequence reference288 = ref span369[num]; QuestSequence obj247 = new QuestSequence { Sequence = 0 @@ -344409,24 +418470,30 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051347u, new Vector3(4.3792725f, 0.04647946f, 5.6915283f), 1207); + Span span370 = CollectionsMarshal.AsSpan(list370); + index2 = 0; + span370[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051347u, new Vector3(4.3792725f, 0.04647946f, 5.6915283f), 1207); obj247.Steps = list370; reference288 = obj247; - ref QuestSequence reference289 = ref span144[1]; + num++; + ref QuestSequence reference289 = ref span369[num]; QuestSequence obj248 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list371 = new List(num2); - CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1048095u, new Vector3(-297.59674f, 45.88422f, -821.07275f), 1191) + index2 = 1; + List list371 = new List(index2); + CollectionsMarshal.SetCount(list371, index2); + Span span371 = CollectionsMarshal.AsSpan(list371); + num2 = 0; + span371[num2] = new QuestStep(EInteractionType.Interact, 1048095u, new Vector3(-297.59674f, 45.88422f, -821.07275f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj248.Steps = list371; reference289 = obj248; - ref QuestSequence reference290 = ref span144[2]; + num++; + ref QuestSequence reference290 = ref span369[num]; QuestSequence obj249 = new QuestSequence { Sequence = 2 @@ -344434,21 +418501,27 @@ public static class AssemblyQuestLoader num2 = 1; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - CollectionsMarshal.AsSpan(list372)[0] = new QuestStep(EInteractionType.Interact, 2013840u, new Vector3(-485.49634f, 28.366455f, -576.22644f), 1191); + Span span372 = CollectionsMarshal.AsSpan(list372); + index2 = 0; + span372[index2] = new QuestStep(EInteractionType.Interact, 2013840u, new Vector3(-485.49634f, 28.366455f, -576.22644f), 1191); obj249.Steps = list372; reference290 = obj249; - ref QuestSequence reference291 = ref span144[3]; + num++; + ref QuestSequence reference291 = ref span369[num]; QuestSequence obj250 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.Interact, 1048098u, new Vector3(-603.32654f, -2.524255f, -488.4871f), 1191); + index2 = 1; + List list373 = new List(index2); + CollectionsMarshal.SetCount(list373, index2); + Span span373 = CollectionsMarshal.AsSpan(list373); + num2 = 0; + span373[num2] = new QuestStep(EInteractionType.Interact, 1048098u, new Vector3(-603.32654f, -2.524255f, -488.4871f), 1191); obj250.Steps = list373; reference291 = obj250; - ref QuestSequence reference292 = ref span144[4]; + num++; + ref QuestSequence reference292 = ref span369[num]; QuestSequence obj251 = new QuestSequence { Sequence = byte.MaxValue @@ -344456,12 +418529,14 @@ public static class AssemblyQuestLoader num2 = 2; List list374 = new List(num2); CollectionsMarshal.SetCount(list374, num2); - Span span145 = CollectionsMarshal.AsSpan(list374); - span145[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013969u, new Vector3(-585.41235f, 20.157104f, -469.44385f), 1191) + Span span374 = CollectionsMarshal.AsSpan(list374); + index2 = 0; + span374[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013969u, new Vector3(-585.41235f, 20.157104f, -469.44385f), 1191) { AetherCurrentId = 2818466u }; - span145[1] = new QuestStep(EInteractionType.CompleteQuest, 1048103u, new Vector3(-704.09705f, 54.03237f, -210.46777f), 1191); + index2++; + span374[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048103u, new Vector3(-704.09705f, 54.03237f, -210.46777f), 1191); obj251.Steps = list374; reference292 = obj251; questRoot39.QuestSequence = list369; @@ -344471,24 +418546,30 @@ public static class AssemblyQuestLoader num = 1; List list375 = new List(num); CollectionsMarshal.SetCount(list375, num); - CollectionsMarshal.AsSpan(list375)[0] = "liza"; + Span span375 = CollectionsMarshal.AsSpan(list375); + index = 0; + span375[index] = "liza"; questRoot40.Author = list375; - num = 7; - List list376 = new List(num); - CollectionsMarshal.SetCount(list376, num); - Span span146 = CollectionsMarshal.AsSpan(list376); - ref QuestSequence reference293 = ref span146[0]; + index = 7; + List list376 = new List(index); + CollectionsMarshal.SetCount(list376, index); + Span span376 = CollectionsMarshal.AsSpan(list376); + num = 0; + ref QuestSequence reference293 = ref span376[num]; QuestSequence obj252 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051412u, new Vector3(-704.0055f, 54.030636f, -210.58978f), 1191); + index2 = 1; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + Span span377 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span377[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051412u, new Vector3(-704.0055f, 54.030636f, -210.58978f), 1191); obj252.Steps = list377; reference293 = obj252; - ref QuestSequence reference294 = ref span146[1]; + num++; + ref QuestSequence reference294 = ref span376[num]; QuestSequence obj253 = new QuestSequence { Sequence = 1 @@ -344496,21 +418577,27 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Interact, 1048104u, new Vector3(-519.9817f, 10.081686f, 81.1322f), 1191); + Span span378 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + span378[index2] = new QuestStep(EInteractionType.Interact, 1048104u, new Vector3(-519.9817f, 10.081686f, 81.1322f), 1191); obj253.Steps = list378; reference294 = obj253; - ref QuestSequence reference295 = ref span146[2]; + num++; + ref QuestSequence reference295 = ref span376[num]; QuestSequence obj254 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list379 = new List(num2); - CollectionsMarshal.SetCount(list379, num2); - CollectionsMarshal.AsSpan(list379)[0] = new QuestStep(EInteractionType.Interact, 2013841u, new Vector3(-556.0541f, 1.5411377f, 118.638916f), 1191); + index2 = 1; + List list379 = new List(index2); + CollectionsMarshal.SetCount(list379, index2); + Span span379 = CollectionsMarshal.AsSpan(list379); + num2 = 0; + span379[num2] = new QuestStep(EInteractionType.Interact, 2013841u, new Vector3(-556.0541f, 1.5411377f, 118.638916f), 1191); obj254.Steps = list379; reference295 = obj254; - ref QuestSequence reference296 = ref span146[3]; + num++; + ref QuestSequence reference296 = ref span376[num]; QuestSequence obj255 = new QuestSequence { Sequence = 3 @@ -344518,65 +418605,82 @@ public static class AssemblyQuestLoader num2 = 13; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - Span span147 = CollectionsMarshal.AsSpan(list380); - span147[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-552.04144f, -2.079689f, 135.62419f), 1191) + Span span380 = CollectionsMarshal.AsSpan(list380); + index2 = 0; + span380[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-552.04144f, -2.079689f, 135.62419f), 1191) { Mount = true }; - span147[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-543.3764f, -1.6255682f, 170.78006f), 1191) + index2++; + span380[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-543.3764f, -1.6255682f, 170.78006f), 1191) { StopDistance = 50f }; - span147[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-544.3011f, -1.480176f, 158.82558f), 1191) + index2++; + span380[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-544.3011f, -1.480176f, 158.82558f), 1191) { DelaySecondsAtStart = 5f }; - span147[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-497.62363f, 0.7720427f, 171.72368f), 1191) + index2++; + span380[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-497.62363f, 0.7720427f, 171.72368f), 1191) { StopDistance = 50f }; - span147[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.01544f, 0.29254055f, 168.97873f), 1191); - span147[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-443.81244f, 3.592197f, 168.61993f), 1191) + index2++; + span380[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.01544f, 0.29254055f, 168.97873f), 1191); + index2++; + span380[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-443.81244f, 3.592197f, 168.61993f), 1191) { StopDistance = 100f }; - span147[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-447.27704f, 3.4107869f, 170.56796f), 1191); - span147[7] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-431.33353f, 4.24635f, 211.52757f), 1191) + index2++; + span380[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-447.27704f, 3.4107869f, 170.56796f), 1191); + index2++; + span380[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-431.33353f, 4.24635f, 211.52757f), 1191) { StopDistance = 100f }; - span147[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.35794f, 4.2450695f, 216.45123f), 1191) + index2++; + span380[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.35794f, 4.2450695f, 216.45123f), 1191) { DelaySecondsAtStart = 5f }; - span147[9] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-444.92905f, 3.5340097f, 257.89444f), 1191) + index2++; + span380[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-444.92905f, 3.5340097f, 257.89444f), 1191) { StopDistance = 100f }; - span147[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-441.83728f, 3.695872f, 256.8098f), 1191); - span147[11] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-472.45474f, 7.6260962f, 323.47836f), 1191) + index2++; + span380[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-441.83728f, 3.695872f, 256.8098f), 1191); + index2++; + span380[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-472.45474f, 7.6260962f, 323.47836f), 1191) { StopDistance = 100f, NpcWaitDistance = 5f }; - span147[12] = new QuestStep(EInteractionType.WalkTo, 2013719u, new Vector3(-482.0478f, 6.362976f, 323.62854f), 1191); + index2++; + span380[index2] = new QuestStep(EInteractionType.WalkTo, 2013719u, new Vector3(-482.0478f, 6.362976f, 323.62854f), 1191); obj255.Steps = list380; reference296 = obj255; - ref QuestSequence reference297 = ref span146[4]; + num++; + ref QuestSequence reference297 = ref span376[num]; QuestSequence obj256 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.Interact, 1047466u, new Vector3(-469.3828f, 7.829801f, 315.32764f), 1191) + index2 = 1; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + Span span381 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span381[num2] = new QuestStep(EInteractionType.Interact, 1047466u, new Vector3(-469.3828f, 7.829801f, 315.32764f), 1191) { StopDistance = 5f }; obj256.Steps = list381; reference297 = obj256; - ref QuestSequence reference298 = ref span146[5]; + num++; + ref QuestSequence reference298 = ref span376[num]; QuestSequence obj257 = new QuestSequence { Sequence = 5 @@ -344584,45 +418688,55 @@ public static class AssemblyQuestLoader num2 = 5; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - Span span148 = CollectionsMarshal.AsSpan(list382); - span148[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1191) + Span span382 = CollectionsMarshal.AsSpan(list382); + index2 = 0; + span382[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1191) { Aetheryte = EAetheryteLocation.HeritageFoundElectropeStrike }; - span148[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013972u, new Vector3(-29.007446f, 71.42737f, 335.37793f), 1191) + index2++; + span382[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013972u, new Vector3(-29.007446f, 71.42737f, 335.37793f), 1191) { AetherCurrentId = 2818472u }; - span148[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.293804f, 59.430523f, 343.74417f), 1191) + index2++; + span382[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.293804f, 59.430523f, 343.74417f), 1191) { DisableNavmesh = true, Mount = true }; - span148[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-238.53459f, 24.70902f, 438.2853f), 1191); - ref QuestStep reference299 = ref span148[4]; + index2++; + span382[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-238.53459f, 24.70902f, 438.2853f), 1191); + index2++; + ref QuestStep reference299 = ref span382[index2]; QuestStep obj258 = new QuestStep(EInteractionType.Combat, 2013842u, new Vector3(-234.18024f, 11.520508f, 512.50464f), 1191) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list383 = new List(num3); - CollectionsMarshal.SetCount(list383, num3); - CollectionsMarshal.AsSpan(list383)[0] = 17703u; + index3 = 1; + List list383 = new List(index3); + CollectionsMarshal.SetCount(list383, index3); + Span span383 = CollectionsMarshal.AsSpan(list383); + num3 = 0; + span383[num3] = 17703u; obj258.KillEnemyDataIds = list383; reference299 = obj258; obj257.Steps = list382; reference298 = obj257; - ref QuestSequence reference300 = ref span146[6]; + num++; + ref QuestSequence reference300 = ref span376[num]; QuestSequence obj259 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list384 = new List(num2); - CollectionsMarshal.SetCount(list384, num2); - Span span149 = CollectionsMarshal.AsSpan(list384); - span149[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-398.18622f, 12.447574f, 328.13486f), 1191); - span149[1] = new QuestStep(EInteractionType.CompleteQuest, 1048173u, new Vector3(-464.4389f, 8.100235f, 315.4497f), 1191) + index2 = 2; + List list384 = new List(index2); + CollectionsMarshal.SetCount(list384, index2); + Span span384 = CollectionsMarshal.AsSpan(list384); + num2 = 0; + span384[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-398.18622f, 12.447574f, 328.13486f), 1191); + num2++; + span384[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048173u, new Vector3(-464.4389f, 8.100235f, 315.4497f), 1191) { StopDistance = 4f }; @@ -344635,13 +418749,16 @@ public static class AssemblyQuestLoader num = 1; List list385 = new List(num); CollectionsMarshal.SetCount(list385, num); - CollectionsMarshal.AsSpan(list385)[0] = "liza"; + Span span385 = CollectionsMarshal.AsSpan(list385); + index = 0; + span385[index] = "liza"; questRoot41.Author = list385; - num = 5; - List list386 = new List(num); - CollectionsMarshal.SetCount(list386, num); - Span span150 = CollectionsMarshal.AsSpan(list386); - ref QuestSequence reference301 = ref span150[0]; + index = 5; + List list386 = new List(index); + CollectionsMarshal.SetCount(list386, index); + Span span386 = CollectionsMarshal.AsSpan(list386); + num = 0; + ref QuestSequence reference301 = ref span386[num]; QuestSequence obj260 = new QuestSequence { Sequence = 0 @@ -344649,102 +418766,143 @@ public static class AssemblyQuestLoader num2 = 1; List list387 = new List(num2); CollectionsMarshal.SetCount(list387, num2); - CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048173u, new Vector3(-464.4389f, 8.100235f, 315.4497f), 1191) + Span span387 = CollectionsMarshal.AsSpan(list387); + index2 = 0; + span387[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048173u, new Vector3(-464.4389f, 8.100235f, 315.4497f), 1191) { StopDistance = 4f }; obj260.Steps = list387; reference301 = obj260; - ref QuestSequence reference302 = ref span150[1]; + num++; + ref QuestSequence reference302 = ref span386[num]; QuestSequence obj261 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list388 = new List(num2); - CollectionsMarshal.SetCount(list388, num2); - Span span151 = CollectionsMarshal.AsSpan(list388); - ref QuestStep reference303 = ref span151[0]; + index2 = 7; + List list388 = new List(index2); + CollectionsMarshal.SetCount(list388, index2); + Span span388 = CollectionsMarshal.AsSpan(list388); + num2 = 0; + ref QuestStep reference303 = ref span388[num2]; QuestStep questStep42 = new QuestStep(EInteractionType.Interact, 2013843u, new Vector3(-541.1918f, 4.1657104f, 304.0664f), 1191); num3 = 6; List list389 = new List(num3); CollectionsMarshal.SetCount(list389, num3); - Span span152 = CollectionsMarshal.AsSpan(list389); - span152[0] = null; - span152[1] = null; - span152[2] = null; - span152[3] = null; - span152[4] = null; - span152[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span389 = CollectionsMarshal.AsSpan(list389); + index3 = 0; + span389[index3] = null; + index3++; + span389[index3] = null; + index3++; + span389[index3] = null; + index3++; + span389[index3] = null; + index3++; + span389[index3] = null; + index3++; + span389[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep42.CompletionQuestVariablesFlags = list389; reference303 = questStep42; - ref QuestStep reference304 = ref span151[1]; + num2++; + ref QuestStep reference304 = ref span388[num2]; QuestStep questStep43 = new QuestStep(EInteractionType.Interact, 2013844u, new Vector3(-556.9696f, 3.616333f, 330.6172f), 1191); - num3 = 6; - List list390 = new List(num3); - CollectionsMarshal.SetCount(list390, num3); - Span span153 = CollectionsMarshal.AsSpan(list390); - span153[0] = null; - span153[1] = null; - span153[2] = null; - span153[3] = null; - span153[4] = null; - span153[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list390 = new List(index3); + CollectionsMarshal.SetCount(list390, index3); + Span span390 = CollectionsMarshal.AsSpan(list390); + num3 = 0; + span390[num3] = null; + num3++; + span390[num3] = null; + num3++; + span390[num3] = null; + num3++; + span390[num3] = null; + num3++; + span390[num3] = null; + num3++; + span390[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep43.CompletionQuestVariablesFlags = list390; reference304 = questStep43; - span151[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013970u, new Vector3(-600.09155f, 2.2124634f, 267.4143f), 1191) + num2++; + span388[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013970u, new Vector3(-600.09155f, 2.2124634f, 267.4143f), 1191) { AetherCurrentId = 2818467u }; - span151[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-594.9605f, 0.31490707f, 239.41946f), 1191) + num2++; + span388[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-594.9605f, 0.31490707f, 239.41946f), 1191) { Mount = true }; - ref QuestStep reference305 = ref span151[4]; + num2++; + ref QuestStep reference305 = ref span388[num2]; QuestStep questStep44 = new QuestStep(EInteractionType.Interact, 2013845u, new Vector3(-597.9553f, 0.6866455f, 231.15894f), 1191); num3 = 6; List list391 = new List(num3); CollectionsMarshal.SetCount(list391, num3); - Span span154 = CollectionsMarshal.AsSpan(list391); - span154[0] = null; - span154[1] = null; - span154[2] = null; - span154[3] = null; - span154[4] = null; - span154[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span391 = CollectionsMarshal.AsSpan(list391); + index3 = 0; + span391[index3] = null; + index3++; + span391[index3] = null; + index3++; + span391[index3] = null; + index3++; + span391[index3] = null; + index3++; + span391[index3] = null; + index3++; + span391[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep44.CompletionQuestVariablesFlags = list391; reference305 = questStep44; - ref QuestStep reference306 = ref span151[5]; + num2++; + ref QuestStep reference306 = ref span388[num2]; QuestStep questStep45 = new QuestStep(EInteractionType.Interact, 2013846u, new Vector3(-607.72107f, 0.59503174f, 190.3562f), 1191); - num3 = 6; - List list392 = new List(num3); - CollectionsMarshal.SetCount(list392, num3); - Span span155 = CollectionsMarshal.AsSpan(list392); - span155[0] = null; - span155[1] = null; - span155[2] = null; - span155[3] = null; - span155[4] = null; - span155[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list392 = new List(index3); + CollectionsMarshal.SetCount(list392, index3); + Span span392 = CollectionsMarshal.AsSpan(list392); + num3 = 0; + span392[num3] = null; + num3++; + span392[num3] = null; + num3++; + span392[num3] = null; + num3++; + span392[num3] = null; + num3++; + span392[num3] = null; + num3++; + span392[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep45.CompletionQuestVariablesFlags = list392; reference306 = questStep45; - ref QuestStep reference307 = ref span151[6]; + num2++; + ref QuestStep reference307 = ref span388[num2]; QuestStep questStep46 = new QuestStep(EInteractionType.Interact, 2013847u, new Vector3(-516.7468f, 4.623413f, 196.27673f), 1191); num3 = 6; List list393 = new List(num3); CollectionsMarshal.SetCount(list393, num3); - Span span156 = CollectionsMarshal.AsSpan(list393); - span156[0] = null; - span156[1] = null; - span156[2] = null; - span156[3] = null; - span156[4] = null; - span156[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span393 = CollectionsMarshal.AsSpan(list393); + index3 = 0; + span393[index3] = null; + index3++; + span393[index3] = null; + index3++; + span393[index3] = null; + index3++; + span393[index3] = null; + index3++; + span393[index3] = null; + index3++; + span393[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep46.CompletionQuestVariablesFlags = list393; reference307 = questStep46; obj261.Steps = list388; reference302 = obj261; - ref QuestSequence reference308 = ref span150[2]; + num++; + ref QuestSequence reference308 = ref span386[num]; QuestSequence obj262 = new QuestSequence { Sequence = 2 @@ -344752,26 +418910,32 @@ public static class AssemblyQuestLoader num2 = 2; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - Span span157 = CollectionsMarshal.AsSpan(list394); - span157[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-475.54523f, 7.334528f, 325.33124f), 1191); - span157[1] = new QuestStep(EInteractionType.Interact, 1048111u, new Vector3(-466.91083f, 7.972903f, 313.71008f), 1191); + Span span394 = CollectionsMarshal.AsSpan(list394); + index2 = 0; + span394[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-475.54523f, 7.334528f, 325.33124f), 1191); + index2++; + span394[index2] = new QuestStep(EInteractionType.Interact, 1048111u, new Vector3(-466.91083f, 7.972903f, 313.71008f), 1191); obj262.Steps = list394; reference308 = obj262; - ref QuestSequence reference309 = ref span150[3]; + num++; + ref QuestSequence reference309 = ref span386[num]; QuestSequence obj263 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list395 = new List(num2); - CollectionsMarshal.SetCount(list395, num2); - CollectionsMarshal.AsSpan(list395)[0] = new QuestStep(EInteractionType.Interact, 1048173u, new Vector3(-464.4389f, 8.100235f, 315.4497f), 1191) + index2 = 1; + List list395 = new List(index2); + CollectionsMarshal.SetCount(list395, index2); + Span span395 = CollectionsMarshal.AsSpan(list395); + num2 = 0; + span395[num2] = new QuestStep(EInteractionType.Interact, 1048173u, new Vector3(-464.4389f, 8.100235f, 315.4497f), 1191) { StopDistance = 5f }; obj263.Steps = list395; reference309 = obj263; - ref QuestSequence reference310 = ref span150[4]; + num++; + ref QuestSequence reference310 = ref span386[num]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue @@ -344779,7 +418943,9 @@ public static class AssemblyQuestLoader num2 = 1; List list396 = new List(num2); CollectionsMarshal.SetCount(list396, num2); - CollectionsMarshal.AsSpan(list396)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048113u, new Vector3(-468.71143f, 7.866031f, 315.4497f), 1191); + Span span396 = CollectionsMarshal.AsSpan(list396); + index2 = 0; + span396[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048113u, new Vector3(-468.71143f, 7.866031f, 315.4497f), 1191); obj264.Steps = list396; reference310 = obj264; questRoot41.QuestSequence = list386; @@ -344789,27 +418955,33 @@ public static class AssemblyQuestLoader num = 1; List list397 = new List(num); CollectionsMarshal.SetCount(list397, num); - CollectionsMarshal.AsSpan(list397)[0] = "liza"; + Span span397 = CollectionsMarshal.AsSpan(list397); + index = 0; + span397[index] = "liza"; questRoot42.Author = list397; - num = 5; - List list398 = new List(num); - CollectionsMarshal.SetCount(list398, num); - Span span158 = CollectionsMarshal.AsSpan(list398); - ref QuestSequence reference311 = ref span158[0]; + index = 5; + List list398 = new List(index); + CollectionsMarshal.SetCount(list398, index); + Span span398 = CollectionsMarshal.AsSpan(list398); + num = 0; + ref QuestSequence reference311 = ref span398[num]; QuestSequence obj265 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - CollectionsMarshal.AsSpan(list399)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048112u, new Vector3(-464.8051f, 8.080162f, 315.4497f), 1191) + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + Span span399 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + span399[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048112u, new Vector3(-464.8051f, 8.080162f, 315.4497f), 1191) { StopDistance = 5f }; obj265.Steps = list399; reference311 = obj265; - ref QuestSequence reference312 = ref span158[1]; + num++; + ref QuestSequence reference312 = ref span398[num]; QuestSequence obj266 = new QuestSequence { Sequence = 1 @@ -344817,32 +418989,38 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.Interact, 1048113u, new Vector3(-468.71143f, 7.866031f, 315.4497f), 1191) + Span span400 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span400[index2] = new QuestStep(EInteractionType.Interact, 1048113u, new Vector3(-468.71143f, 7.866031f, 315.4497f), 1191) { StopDistance = 5f }; obj266.Steps = list400; reference312 = obj266; - ref QuestSequence reference313 = ref span158[2]; + num++; + ref QuestSequence reference313 = ref span398[num]; QuestSequence obj267 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list401 = new List(num2); - CollectionsMarshal.SetCount(list401, num2); - Span span159 = CollectionsMarshal.AsSpan(list401); - span159[0] = new QuestStep(EInteractionType.AcceptQuest, 1049505u, new Vector3(-209.85736f, 7.49638f, 595.9104f), 1191) + index2 = 2; + List list401 = new List(index2); + CollectionsMarshal.SetCount(list401, index2); + Span span401 = CollectionsMarshal.AsSpan(list401); + num2 = 0; + span401[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049505u, new Vector3(-209.85736f, 7.49638f, 595.9104f), 1191) { PickUpQuestId = new QuestId(5159) }; - span159[1] = new QuestStep(EInteractionType.Interact, 1048099u, new Vector3(-606.5919f, -2.2030723f, -486.6255f), 1191) + num2++; + span401[num2] = new QuestStep(EInteractionType.Interact, 1048099u, new Vector3(-606.5919f, -2.2030723f, -486.6255f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj267.Steps = list401; reference313 = obj267; - ref QuestSequence reference314 = ref span158[3]; + num++; + ref QuestSequence reference314 = ref span398[num]; QuestSequence obj268 = new QuestSequence { Sequence = 3 @@ -344850,26 +419028,31 @@ public static class AssemblyQuestLoader num2 = 2; List list402 = new List(num2); CollectionsMarshal.SetCount(list402, num2); - Span span160 = CollectionsMarshal.AsSpan(list402); - span160[0] = new QuestStep(EInteractionType.AcceptQuest, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191) + Span span402 = CollectionsMarshal.AsSpan(list402); + index2 = 0; + span402[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191) { PickUpQuestId = new QuestId(5156) }; - span160[1] = new QuestStep(EInteractionType.Interact, 1048116u, new Vector3(-296.71173f, 31.884527f, -671.77844f), 1191) + index2++; + span402[index2] = new QuestStep(EInteractionType.Interact, 1048116u, new Vector3(-296.71173f, 31.884527f, -671.77844f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj268.Steps = list402; reference314 = obj268; - ref QuestSequence reference315 = ref span158[4]; + num++; + ref QuestSequence reference315 = ref span398[num]; QuestSequence obj269 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list403 = new List(num2); - CollectionsMarshal.SetCount(list403, num2); - CollectionsMarshal.AsSpan(list403)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048120u, new Vector3(-298.7259f, 31.838512f, -672.5719f), 1191) + index2 = 1; + List list403 = new List(index2); + CollectionsMarshal.SetCount(list403, index2); + Span span403 = CollectionsMarshal.AsSpan(list403); + num2 = 0; + span403[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048120u, new Vector3(-298.7259f, 31.838512f, -672.5719f), 1191) { StopDistance = 7f }; @@ -344882,13 +419065,16 @@ public static class AssemblyQuestLoader num = 1; List list404 = new List(num); CollectionsMarshal.SetCount(list404, num); - CollectionsMarshal.AsSpan(list404)[0] = "liza"; + Span span404 = CollectionsMarshal.AsSpan(list404); + index = 0; + span404[index] = "liza"; questRoot43.Author = list404; - num = 4; - List list405 = new List(num); - CollectionsMarshal.SetCount(list405, num); - Span span161 = CollectionsMarshal.AsSpan(list405); - ref QuestSequence reference316 = ref span161[0]; + index = 4; + List list405 = new List(index); + CollectionsMarshal.SetCount(list405, index); + Span span405 = CollectionsMarshal.AsSpan(list405); + num = 0; + ref QuestSequence reference316 = ref span405[num]; QuestSequence obj270 = new QuestSequence { Sequence = 0 @@ -344896,24 +419082,30 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048120u, new Vector3(-298.7259f, 31.838512f, -672.5719f), 1191) + Span span406 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + span406[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048120u, new Vector3(-298.7259f, 31.838512f, -672.5719f), 1191) { StopDistance = 7f }; obj270.Steps = list406; reference316 = obj270; - ref QuestSequence reference317 = ref span161[1]; + num++; + ref QuestSequence reference317 = ref span405[num]; QuestSequence obj271 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list407 = new List(num2); - CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.Interact, 1048122u, new Vector3(647.60803f, 145.90308f, 679.1333f), 1191); + index2 = 1; + List list407 = new List(index2); + CollectionsMarshal.SetCount(list407, index2); + Span span407 = CollectionsMarshal.AsSpan(list407); + num2 = 0; + span407[num2] = new QuestStep(EInteractionType.Interact, 1048122u, new Vector3(647.60803f, 145.90308f, 679.1333f), 1191); obj271.Steps = list407; reference317 = obj271; - ref QuestSequence reference318 = ref span161[2]; + num++; + ref QuestSequence reference318 = ref span405[num]; QuestSequence obj272 = new QuestSequence { Sequence = 2 @@ -344921,27 +419113,33 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - ref QuestStep reference319 = ref CollectionsMarshal.AsSpan(list408)[0]; + Span span408 = CollectionsMarshal.AsSpan(list408); + index2 = 0; + ref QuestStep reference319 = ref span408[index2]; QuestStep questStep47 = new QuestStep(EInteractionType.SinglePlayerDuty, 1048122u, new Vector3(647.60803f, 145.90308f, 679.1333f), 1191); SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 1; - List list409 = new List(num3); - CollectionsMarshal.SetCount(list409, num3); - CollectionsMarshal.AsSpan(list409)[0] = "(phase 1) Gets stuck in the wall while walking to the evacuee NPCs"; + index3 = 1; + List list409 = new List(index3); + CollectionsMarshal.SetCount(list409, index3); + Span span409 = CollectionsMarshal.AsSpan(list409); + num3 = 0; + span409[num3] = "(phase 1) Gets stuck in the wall while walking to the evacuee NPCs"; singlePlayerDutyOptions.Notes = list409; questStep47.SinglePlayerDutyOptions = singlePlayerDutyOptions; num3 = 2; List list410 = new List(num3); CollectionsMarshal.SetCount(list410, num3); - Span span162 = CollectionsMarshal.AsSpan(list410); - span162[0] = new DialogueChoice + Span span410 = CollectionsMarshal.AsSpan(list410); + index3 = 0; + span410[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", Prompt = new ExcelRef(357u), Answer = new ExcelRef(358u) }; - span162[1] = new DialogueChoice + index3++; + span410[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", @@ -344952,15 +419150,18 @@ public static class AssemblyQuestLoader reference319 = questStep47; obj272.Steps = list408; reference318 = obj272; - ref QuestSequence reference320 = ref span161[3]; + num++; + ref QuestSequence reference320 = ref span405[num]; QuestSequence obj273 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list411 = new List(num2); - CollectionsMarshal.SetCount(list411, num2); - CollectionsMarshal.AsSpan(list411)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048124u, new Vector3(352.31543f, 70.0001f, 8.316162f), 1186) + index2 = 1; + List list411 = new List(index2); + CollectionsMarshal.SetCount(list411, index2); + Span span411 = CollectionsMarshal.AsSpan(list411); + num2 = 0; + span411[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048124u, new Vector3(352.31543f, 70.0001f, 8.316162f), 1186) { StopDistance = 5f }; @@ -344973,13 +419174,16 @@ public static class AssemblyQuestLoader num = 1; List list412 = new List(num); CollectionsMarshal.SetCount(list412, num); - CollectionsMarshal.AsSpan(list412)[0] = "liza"; + Span span412 = CollectionsMarshal.AsSpan(list412); + index = 0; + span412[index] = "liza"; questRoot44.Author = list412; - num = 6; - List list413 = new List(num); - CollectionsMarshal.SetCount(list413, num); - Span span163 = CollectionsMarshal.AsSpan(list413); - ref QuestSequence reference321 = ref span163[0]; + index = 6; + List list413 = new List(index); + CollectionsMarshal.SetCount(list413, index); + Span span413 = CollectionsMarshal.AsSpan(list413); + num = 0; + ref QuestSequence reference321 = ref span413[num]; QuestSequence obj274 = new QuestSequence { Sequence = 0 @@ -344987,66 +419191,91 @@ public static class AssemblyQuestLoader num2 = 1; List list414 = new List(num2); CollectionsMarshal.SetCount(list414, num2); - CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048124u, new Vector3(352.31543f, 70.0001f, 8.316162f), 1186) + Span span414 = CollectionsMarshal.AsSpan(list414); + index2 = 0; + span414[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048124u, new Vector3(352.31543f, 70.0001f, 8.316162f), 1186) { StopDistance = 5f }; obj274.Steps = list414; reference321 = obj274; - ref QuestSequence reference322 = ref span163[1]; + num++; + ref QuestSequence reference322 = ref span413[num]; QuestSequence obj275 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list415 = new List(num2); - CollectionsMarshal.SetCount(list415, num2); - Span span164 = CollectionsMarshal.AsSpan(list415); - ref QuestStep reference323 = ref span164[0]; + index2 = 3; + List list415 = new List(index2); + CollectionsMarshal.SetCount(list415, index2); + Span span415 = CollectionsMarshal.AsSpan(list415); + num2 = 0; + ref QuestStep reference323 = ref span415[num2]; QuestStep questStep48 = new QuestStep(EInteractionType.Interact, 1048126u, new Vector3(371.4198f, 50.75f, 185.19873f), 1186); - num3 = 6; - List list416 = new List(num3); - CollectionsMarshal.SetCount(list416, num3); - Span span165 = CollectionsMarshal.AsSpan(list416); - span165[0] = null; - span165[1] = null; - span165[2] = null; - span165[3] = null; - span165[4] = null; - span165[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list416 = new List(index3); + CollectionsMarshal.SetCount(list416, index3); + Span span416 = CollectionsMarshal.AsSpan(list416); + num3 = 0; + span416[num3] = null; + num3++; + span416[num3] = null; + num3++; + span416[num3] = null; + num3++; + span416[num3] = null; + num3++; + span416[num3] = null; + num3++; + span416[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep48.CompletionQuestVariablesFlags = list416; reference323 = questStep48; - ref QuestStep reference324 = ref span164[1]; + num2++; + ref QuestStep reference324 = ref span415[num2]; QuestStep questStep49 = new QuestStep(EInteractionType.Interact, 1048127u, new Vector3(373.73914f, 50.749996f, 235.40088f), 1186); num3 = 6; List list417 = new List(num3); CollectionsMarshal.SetCount(list417, num3); - Span span166 = CollectionsMarshal.AsSpan(list417); - span166[0] = null; - span166[1] = null; - span166[2] = null; - span166[3] = null; - span166[4] = null; - span166[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span417 = CollectionsMarshal.AsSpan(list417); + index3 = 0; + span417[index3] = null; + index3++; + span417[index3] = null; + index3++; + span417[index3] = null; + index3++; + span417[index3] = null; + index3++; + span417[index3] = null; + index3++; + span417[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep49.CompletionQuestVariablesFlags = list417; reference324 = questStep49; - ref QuestStep reference325 = ref span164[2]; + num2++; + ref QuestStep reference325 = ref span415[num2]; QuestStep questStep50 = new QuestStep(EInteractionType.Interact, 1048128u, new Vector3(339.22327f, 52.212578f, 186.57202f), 1186); - num3 = 6; - List list418 = new List(num3); - CollectionsMarshal.SetCount(list418, num3); - Span span167 = CollectionsMarshal.AsSpan(list418); - span167[0] = null; - span167[1] = null; - span167[2] = null; - span167[3] = null; - span167[4] = null; - span167[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list418 = new List(index3); + CollectionsMarshal.SetCount(list418, index3); + Span span418 = CollectionsMarshal.AsSpan(list418); + num3 = 0; + span418[num3] = null; + num3++; + span418[num3] = null; + num3++; + span418[num3] = null; + num3++; + span418[num3] = null; + num3++; + span418[num3] = null; + num3++; + span418[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep50.CompletionQuestVariablesFlags = list418; reference325 = questStep50; obj275.Steps = list415; reference322 = obj275; - ref QuestSequence reference326 = ref span163[2]; + num++; + ref QuestSequence reference326 = ref span413[num]; QuestSequence obj276 = new QuestSequence { Sequence = 2 @@ -345054,29 +419283,35 @@ public static class AssemblyQuestLoader num2 = 2; List list419 = new List(num2); CollectionsMarshal.SetCount(list419, num2); - Span span168 = CollectionsMarshal.AsSpan(list419); - span168[0] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) + Span span419 = CollectionsMarshal.AsSpan(list419); + index2 = 0; + span419[index2] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207 }; - span168[1] = new QuestStep(EInteractionType.Interact, 1048129u, new Vector3(0.045776367f, -3.0733645E-08f, 5.5389404f), 1207) + index2++; + span419[index2] = new QuestStep(EInteractionType.Interact, 1048129u, new Vector3(0.045776367f, -3.0733645E-08f, 5.5389404f), 1207) { StopDistance = 7f }; obj276.Steps = list419; reference326 = obj276; - ref QuestSequence reference327 = ref span163[3]; + num++; + ref QuestSequence reference327 = ref span413[num]; QuestSequence obj277 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list420 = new List(num2); - CollectionsMarshal.SetCount(list420, num2); - CollectionsMarshal.AsSpan(list420)[0] = new QuestStep(EInteractionType.Interact, 1048131u, new Vector3(-12.9244995f, 0f, 2.8533936f), 1207); + index2 = 1; + List list420 = new List(index2); + CollectionsMarshal.SetCount(list420, index2); + Span span420 = CollectionsMarshal.AsSpan(list420); + num2 = 0; + span420[num2] = new QuestStep(EInteractionType.Interact, 1048131u, new Vector3(-12.9244995f, 0f, 2.8533936f), 1207); obj277.Steps = list420; reference327 = obj277; - ref QuestSequence reference328 = ref span163[4]; + num++; + ref QuestSequence reference328 = ref span413[num]; QuestSequence obj278 = new QuestSequence { Sequence = 4 @@ -345084,18 +419319,23 @@ public static class AssemblyQuestLoader num2 = 1; List list421 = new List(num2); CollectionsMarshal.SetCount(list421, num2); - CollectionsMarshal.AsSpan(list421)[0] = new QuestStep(EInteractionType.Interact, 1048133u, new Vector3(-9.87262f, 0f, 4.257263f), 1207); + Span span421 = CollectionsMarshal.AsSpan(list421); + index2 = 0; + span421[index2] = new QuestStep(EInteractionType.Interact, 1048133u, new Vector3(-9.87262f, 0f, 4.257263f), 1207); obj278.Steps = list421; reference328 = obj278; - ref QuestSequence reference329 = ref span163[5]; + num++; + ref QuestSequence reference329 = ref span413[num]; QuestSequence obj279 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list422 = new List(num2); - CollectionsMarshal.SetCount(list422, num2); - CollectionsMarshal.AsSpan(list422)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048132u, new Vector3(-8.1026f, 0f, 2.6397705f), 1207) + index2 = 1; + List list422 = new List(index2); + CollectionsMarshal.SetCount(list422, index2); + Span span422 = CollectionsMarshal.AsSpan(list422); + num2 = 0; + span422[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048132u, new Vector3(-8.1026f, 0f, 2.6397705f), 1207) { StopDistance = 5f }; @@ -345108,13 +419348,16 @@ public static class AssemblyQuestLoader num = 1; List list423 = new List(num); CollectionsMarshal.SetCount(list423, num); - CollectionsMarshal.AsSpan(list423)[0] = "liza"; + Span span423 = CollectionsMarshal.AsSpan(list423); + index = 0; + span423[index] = "liza"; questRoot45.Author = list423; - num = 3; - List list424 = new List(num); - CollectionsMarshal.SetCount(list424, num); - Span span169 = CollectionsMarshal.AsSpan(list424); - ref QuestSequence reference330 = ref span169[0]; + index = 3; + List list424 = new List(index); + CollectionsMarshal.SetCount(list424, index); + Span span424 = CollectionsMarshal.AsSpan(list424); + num = 0; + ref QuestSequence reference330 = ref span424[num]; QuestSequence obj280 = new QuestSequence { Sequence = 0 @@ -345122,27 +419365,33 @@ public static class AssemblyQuestLoader num2 = 1; List list425 = new List(num2); CollectionsMarshal.SetCount(list425, num2); - CollectionsMarshal.AsSpan(list425)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048132u, new Vector3(-8.1026f, 0f, 2.6397705f), 1207) + Span span425 = CollectionsMarshal.AsSpan(list425); + index2 = 0; + span425[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048132u, new Vector3(-8.1026f, 0f, 2.6397705f), 1207) { StopDistance = 5f }; obj280.Steps = list425; reference330 = obj280; - ref QuestSequence reference331 = ref span169[1]; + num++; + ref QuestSequence reference331 = ref span424[num]; QuestSequence obj281 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list426 = new List(num2); - CollectionsMarshal.SetCount(list426, num2); - CollectionsMarshal.AsSpan(list426)[0] = new QuestStep(EInteractionType.Interact, 1048134u, new Vector3(-2.9450073f, -0.44999987f, 2.1820068f), 1207) + index2 = 1; + List list426 = new List(index2); + CollectionsMarshal.SetCount(list426, index2); + Span span426 = CollectionsMarshal.AsSpan(list426); + num2 = 0; + span426[num2] = new QuestStep(EInteractionType.Interact, 1048134u, new Vector3(-2.9450073f, -0.44999987f, 2.1820068f), 1207) { StopDistance = 5f }; obj281.Steps = list426; reference331 = obj281; - ref QuestSequence reference332 = ref span169[2]; + num++; + ref QuestSequence reference332 = ref span424[num]; QuestSequence obj282 = new QuestSequence { Sequence = byte.MaxValue @@ -345150,7 +419399,9 @@ public static class AssemblyQuestLoader num2 = 1; List list427 = new List(num2); CollectionsMarshal.SetCount(list427, num2); - CollectionsMarshal.AsSpan(list427)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048135u, new Vector3(-293.84296f, 45.884224f, -816.8002f), 1191) + Span span427 = CollectionsMarshal.AsSpan(list427); + index2 = 0; + span427[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048135u, new Vector3(-293.84296f, 45.884224f, -816.8002f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; @@ -345163,24 +419414,30 @@ public static class AssemblyQuestLoader num = 1; List list428 = new List(num); CollectionsMarshal.SetCount(list428, num); - CollectionsMarshal.AsSpan(list428)[0] = "liza"; + Span span428 = CollectionsMarshal.AsSpan(list428); + index = 0; + span428[index] = "liza"; questRoot46.Author = list428; - num = 9; - List list429 = new List(num); - CollectionsMarshal.SetCount(list429, num); - Span span170 = CollectionsMarshal.AsSpan(list429); - ref QuestSequence reference333 = ref span170[0]; + index = 9; + List list429 = new List(index); + CollectionsMarshal.SetCount(list429, index); + Span span429 = CollectionsMarshal.AsSpan(list429); + num = 0; + ref QuestSequence reference333 = ref span429[num]; QuestSequence obj283 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list430 = new List(num2); - CollectionsMarshal.SetCount(list430, num2); - CollectionsMarshal.AsSpan(list430)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048135u, new Vector3(-293.84296f, 45.884224f, -816.8002f), 1191); + index2 = 1; + List list430 = new List(index2); + CollectionsMarshal.SetCount(list430, index2); + Span span430 = CollectionsMarshal.AsSpan(list430); + num2 = 0; + span430[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048135u, new Vector3(-293.84296f, 45.884224f, -816.8002f), 1191); obj283.Steps = list430; reference333 = obj283; - ref QuestSequence reference334 = ref span170[1]; + num++; + ref QuestSequence reference334 = ref span429[num]; QuestSequence obj284 = new QuestSequence { Sequence = 1 @@ -345188,23 +419445,28 @@ public static class AssemblyQuestLoader num2 = 2; List list431 = new List(num2); CollectionsMarshal.SetCount(list431, num2); - Span span171 = CollectionsMarshal.AsSpan(list431); - span171[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-294.07196f, 44.504536f, -800.55725f), 1191); - span171[1] = new QuestStep(EInteractionType.Interact, 1048140u, new Vector3(-609.8878f, -13.387644f, -565.48413f), 1191) + Span span431 = CollectionsMarshal.AsSpan(list431); + index2 = 0; + span431[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-294.07196f, 44.504536f, -800.55725f), 1191); + index2++; + span431[index2] = new QuestStep(EInteractionType.Interact, 1048140u, new Vector3(-609.8878f, -13.387644f, -565.48413f), 1191) { Fly = true }; obj284.Steps = list431; reference334 = obj284; - ref QuestSequence reference335 = ref span170[2]; + num++; + ref QuestSequence reference335 = ref span429[num]; QuestSequence obj285 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list432 = new List(num2); - CollectionsMarshal.SetCount(list432, num2); - CollectionsMarshal.AsSpan(list432)[0] = new QuestStep(EInteractionType.Duty, null, null, 1191) + index2 = 1; + List list432 = new List(index2); + CollectionsMarshal.SetCount(list432, index2); + Span span432 = CollectionsMarshal.AsSpan(list432); + num2 = 0; + span432[num2] = new QuestStep(EInteractionType.Duty, null, null, 1191) { DutyOptions = new DutyOptions { @@ -345214,11 +419476,13 @@ public static class AssemblyQuestLoader }; obj285.Steps = list432; reference335 = obj285; - span170[3] = new QuestSequence + num++; + span429[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference336 = ref span170[4]; + num++; + ref QuestSequence reference336 = ref span429[num]; QuestSequence obj286 = new QuestSequence { Sequence = 4 @@ -345226,7 +419490,9 @@ public static class AssemblyQuestLoader num2 = 1; List list433 = new List(num2); CollectionsMarshal.SetCount(list433, num2); - ref QuestStep reference337 = ref CollectionsMarshal.AsSpan(list433)[0]; + Span span433 = CollectionsMarshal.AsSpan(list433); + index2 = 0; + ref QuestStep reference337 = ref span433[index2]; QuestStep questStep51 = new QuestStep(EInteractionType.Duty, null, null, 1220); DutyOptions obj287 = new DutyOptions { @@ -345235,31 +419501,38 @@ public static class AssemblyQuestLoader num3 = 1; List list434 = new List(num3); CollectionsMarshal.SetCount(list434, num3); - CollectionsMarshal.AsSpan(list434)[0] = "No VBM module"; + Span span434 = CollectionsMarshal.AsSpan(list434); + index3 = 0; + span434[index3] = "No VBM module"; obj287.Notes = list434; questStep51.DutyOptions = obj287; reference337 = questStep51; obj286.Steps = list433; reference336 = obj286; - span170[5] = new QuestSequence + num++; + span429[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference338 = ref span170[6]; + num++; + ref QuestSequence reference338 = ref span429[num]; QuestSequence obj288 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list435 = new List(num2); - CollectionsMarshal.SetCount(list435, num2); - CollectionsMarshal.AsSpan(list435)[0] = new QuestStep(EInteractionType.Interact, 1048183u, new Vector3(97.45935f, 0f, 107.2251f), 1220) + index2 = 1; + List list435 = new List(index2); + CollectionsMarshal.SetCount(list435, index2); + Span span435 = CollectionsMarshal.AsSpan(list435); + num2 = 0; + span435[num2] = new QuestStep(EInteractionType.Interact, 1048183u, new Vector3(97.45935f, 0f, 107.2251f), 1220) { StopDistance = 5f }; obj288.Steps = list435; reference338 = obj288; - ref QuestSequence reference339 = ref span170[7]; + num++; + ref QuestSequence reference339 = ref span429[num]; QuestSequence obj289 = new QuestSequence { Sequence = 7 @@ -345267,21 +419540,26 @@ public static class AssemblyQuestLoader num2 = 1; List list436 = new List(num2); CollectionsMarshal.SetCount(list436, num2); - CollectionsMarshal.AsSpan(list436)[0] = new QuestStep(EInteractionType.Interact, 1048156u, new Vector3(104.57007f, 0f, 105.79077f), 1220) + Span span436 = CollectionsMarshal.AsSpan(list436); + index2 = 0; + span436[index2] = new QuestStep(EInteractionType.Interact, 1048156u, new Vector3(104.57007f, 0f, 105.79077f), 1220) { StopDistance = 6f }; obj289.Steps = list436; reference339 = obj289; - ref QuestSequence reference340 = ref span170[8]; + num++; + ref QuestSequence reference340 = ref span429[num]; QuestSequence obj290 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list437 = new List(num2); - CollectionsMarshal.SetCount(list437, num2); - CollectionsMarshal.AsSpan(list437)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048158u, new Vector3(-4.837158f, -3.4458935E-08f, 5.8441772f), 1207); + index2 = 1; + List list437 = new List(index2); + CollectionsMarshal.SetCount(list437, index2); + Span span437 = CollectionsMarshal.AsSpan(list437); + num2 = 0; + span437[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048158u, new Vector3(-4.837158f, -3.4458935E-08f, 5.8441772f), 1207); obj290.Steps = list437; reference340 = obj290; questRoot46.QuestSequence = list429; @@ -345291,13 +419569,16 @@ public static class AssemblyQuestLoader num = 1; List list438 = new List(num); CollectionsMarshal.SetCount(list438, num); - CollectionsMarshal.AsSpan(list438)[0] = "liza"; + Span span438 = CollectionsMarshal.AsSpan(list438); + index = 0; + span438[index] = "liza"; questRoot47.Author = list438; - num = 7; - List list439 = new List(num); - CollectionsMarshal.SetCount(list439, num); - Span span172 = CollectionsMarshal.AsSpan(list439); - ref QuestSequence reference341 = ref span172[0]; + index = 7; + List list439 = new List(index); + CollectionsMarshal.SetCount(list439, index); + Span span439 = CollectionsMarshal.AsSpan(list439); + num = 0; + ref QuestSequence reference341 = ref span439[num]; QuestSequence obj291 = new QuestSequence { Sequence = 0 @@ -345305,18 +419586,23 @@ public static class AssemblyQuestLoader num2 = 1; List list440 = new List(num2); CollectionsMarshal.SetCount(list440, num2); - CollectionsMarshal.AsSpan(list440)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048158u, new Vector3(-4.837158f, -3.4458935E-08f, 5.8441772f), 1207); + Span span440 = CollectionsMarshal.AsSpan(list440); + index2 = 0; + span440[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048158u, new Vector3(-4.837158f, -3.4458935E-08f, 5.8441772f), 1207); obj291.Steps = list440; reference341 = obj291; - ref QuestSequence reference342 = ref span172[1]; + num++; + ref QuestSequence reference342 = ref span439[num]; QuestSequence obj292 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list441 = new List(num2); - CollectionsMarshal.SetCount(list441, num2); - CollectionsMarshal.AsSpan(list441)[0] = new QuestStep(EInteractionType.Interact, 2013767u, new Vector3(-99.321045f, 99.99231f, -193.89642f), 1185) + index2 = 1; + List list441 = new List(index2); + CollectionsMarshal.SetCount(list441, index2); + Span span441 = CollectionsMarshal.AsSpan(list441); + num2 = 0; + span441[num2] = new QuestStep(EInteractionType.Interact, 2013767u, new Vector3(-99.321045f, 99.99231f, -193.89642f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -345327,7 +419613,8 @@ public static class AssemblyQuestLoader }; obj292.Steps = list441; reference342 = obj292; - ref QuestSequence reference343 = ref span172[2]; + num++; + ref QuestSequence reference343 = ref span439[num]; QuestSequence obj293 = new QuestSequence { Sequence = 2 @@ -345335,21 +419622,27 @@ public static class AssemblyQuestLoader num2 = 1; List list442 = new List(num2); CollectionsMarshal.SetCount(list442, num2); - CollectionsMarshal.AsSpan(list442)[0] = new QuestStep(EInteractionType.Interact, 1047794u, new Vector3(-32.974792f, 95.5f, -79.02649f), 1185); + Span span442 = CollectionsMarshal.AsSpan(list442); + index2 = 0; + span442[index2] = new QuestStep(EInteractionType.Interact, 1047794u, new Vector3(-32.974792f, 95.5f, -79.02649f), 1185); obj293.Steps = list442; reference343 = obj293; - ref QuestSequence reference344 = ref span172[3]; + num++; + ref QuestSequence reference344 = ref span439[num]; QuestSequence obj294 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list443 = new List(num2); - CollectionsMarshal.SetCount(list443, num2); - CollectionsMarshal.AsSpan(list443)[0] = new QuestStep(EInteractionType.Interact, 1047797u, new Vector3(120.10376f, 47f, -129.38129f), 1185); + index2 = 1; + List list443 = new List(index2); + CollectionsMarshal.SetCount(list443, index2); + Span span443 = CollectionsMarshal.AsSpan(list443); + num2 = 0; + span443[num2] = new QuestStep(EInteractionType.Interact, 1047797u, new Vector3(120.10376f, 47f, -129.38129f), 1185); obj294.Steps = list443; reference344 = obj294; - ref QuestSequence reference345 = ref span172[4]; + num++; + ref QuestSequence reference345 = ref span439[num]; QuestSequence obj295 = new QuestSequence { Sequence = 4 @@ -345357,21 +419650,27 @@ public static class AssemblyQuestLoader num2 = 1; List list444 = new List(num2); CollectionsMarshal.SetCount(list444, num2); - CollectionsMarshal.AsSpan(list444)[0] = new QuestStep(EInteractionType.Interact, 1047800u, new Vector3(42.038574f, 46.999996f, -290.15033f), 1185); + Span span444 = CollectionsMarshal.AsSpan(list444); + index2 = 0; + span444[index2] = new QuestStep(EInteractionType.Interact, 1047800u, new Vector3(42.038574f, 46.999996f, -290.15033f), 1185); obj295.Steps = list444; reference345 = obj295; - ref QuestSequence reference346 = ref span172[5]; + num++; + ref QuestSequence reference346 = ref span439[num]; QuestSequence obj296 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list445 = new List(num2); - CollectionsMarshal.SetCount(list445, num2); - CollectionsMarshal.AsSpan(list445)[0] = new QuestStep(EInteractionType.Interact, 1047803u, new Vector3(123.552246f, 42f, -341.75635f), 1185); + index2 = 1; + List list445 = new List(index2); + CollectionsMarshal.SetCount(list445, index2); + Span span445 = CollectionsMarshal.AsSpan(list445); + num2 = 0; + span445[num2] = new QuestStep(EInteractionType.Interact, 1047803u, new Vector3(123.552246f, 42f, -341.75635f), 1185); obj296.Steps = list445; reference346 = obj296; - ref QuestSequence reference347 = ref span172[6]; + num++; + ref QuestSequence reference347 = ref span439[num]; QuestSequence obj297 = new QuestSequence { Sequence = byte.MaxValue @@ -345379,7 +419678,9 @@ public static class AssemblyQuestLoader num2 = 1; List list446 = new List(num2); CollectionsMarshal.SetCount(list446, num2); - CollectionsMarshal.AsSpan(list446)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047803u, new Vector3(123.552246f, 42f, -341.75635f), 1185); + Span span446 = CollectionsMarshal.AsSpan(list446); + index2 = 0; + span446[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047803u, new Vector3(123.552246f, 42f, -341.75635f), 1185); obj297.Steps = list446; reference347 = obj297; questRoot47.QuestSequence = list439; @@ -345389,24 +419690,30 @@ public static class AssemblyQuestLoader num = 1; List list447 = new List(num); CollectionsMarshal.SetCount(list447, num); - CollectionsMarshal.AsSpan(list447)[0] = "liza"; + Span span447 = CollectionsMarshal.AsSpan(list447); + index = 0; + span447[index] = "liza"; questRoot48.Author = list447; - num = 3; - List list448 = new List(num); - CollectionsMarshal.SetCount(list448, num); - Span span173 = CollectionsMarshal.AsSpan(list448); - ref QuestSequence reference348 = ref span173[0]; + index = 3; + List list448 = new List(index); + CollectionsMarshal.SetCount(list448, index); + Span span448 = CollectionsMarshal.AsSpan(list448); + num = 0; + ref QuestSequence reference348 = ref span448[num]; QuestSequence obj298 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list449 = new List(num2); - CollectionsMarshal.SetCount(list449, num2); - CollectionsMarshal.AsSpan(list449)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047804u, new Vector3(121.66016f, 42f, -343.0686f), 1185); + index2 = 1; + List list449 = new List(index2); + CollectionsMarshal.SetCount(list449, index2); + Span span449 = CollectionsMarshal.AsSpan(list449); + num2 = 0; + span449[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047804u, new Vector3(121.66016f, 42f, -343.0686f), 1185); obj298.Steps = list449; reference348 = obj298; - ref QuestSequence reference349 = ref span173[1]; + num++; + ref QuestSequence reference349 = ref span448[num]; QuestSequence obj299 = new QuestSequence { Sequence = 1 @@ -345414,21 +419721,26 @@ public static class AssemblyQuestLoader num2 = 1; List list450 = new List(num2); CollectionsMarshal.SetCount(list450, num2); - CollectionsMarshal.AsSpan(list450)[0] = new QuestStep(EInteractionType.Interact, 1047806u, new Vector3(-179.55298f, 120.75f, -332.87555f), 1185) + Span span450 = CollectionsMarshal.AsSpan(list450); + index2 = 0; + span450[index2] = new QuestStep(EInteractionType.Interact, 1047806u, new Vector3(-179.55298f, 120.75f, -332.87555f), 1185) { StopDistance = 7f }; obj299.Steps = list450; reference349 = obj299; - ref QuestSequence reference350 = ref span173[2]; + num++; + ref QuestSequence reference350 = ref span448[num]; QuestSequence obj300 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list451 = new List(num2); - CollectionsMarshal.SetCount(list451, num2); - CollectionsMarshal.AsSpan(list451)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047809u, new Vector3(-47.56244f, -10.00001f, 97.21521f), 1185) + index2 = 1; + List list451 = new List(index2); + CollectionsMarshal.SetCount(list451, index2); + Span span451 = CollectionsMarshal.AsSpan(list451); + num2 = 0; + span451[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047809u, new Vector3(-47.56244f, -10.00001f, 97.21521f), 1185) { Comment = "Stops at the place where you can buy Lv99 gear", AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -345447,13 +419759,16 @@ public static class AssemblyQuestLoader num = 1; List list452 = new List(num); CollectionsMarshal.SetCount(list452, num); - CollectionsMarshal.AsSpan(list452)[0] = "liza"; + Span span452 = CollectionsMarshal.AsSpan(list452); + index = 0; + span452[index] = "liza"; questRoot49.Author = list452; - num = 9; - List list453 = new List(num); - CollectionsMarshal.SetCount(list453, num); - Span span174 = CollectionsMarshal.AsSpan(list453); - ref QuestSequence reference351 = ref span174[0]; + index = 9; + List list453 = new List(index); + CollectionsMarshal.SetCount(list453, index); + Span span453 = CollectionsMarshal.AsSpan(list453); + num = 0; + ref QuestSequence reference351 = ref span453[num]; QuestSequence obj301 = new QuestSequence { Sequence = 0 @@ -345461,19 +419776,23 @@ public static class AssemblyQuestLoader num2 = 1; List list454 = new List(num2); CollectionsMarshal.SetCount(list454, num2); - CollectionsMarshal.AsSpan(list454)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047810u, new Vector3(-47.470886f, -10.00001f, 98.649536f), 1185); + Span span454 = CollectionsMarshal.AsSpan(list454); + index2 = 0; + span454[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047810u, new Vector3(-47.470886f, -10.00001f, 98.649536f), 1185); obj301.Steps = list454; reference351 = obj301; - ref QuestSequence reference352 = ref span174[1]; + num++; + ref QuestSequence reference352 = ref span453[num]; QuestSequence obj302 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list455 = new List(num2); - CollectionsMarshal.SetCount(list455, num2); - Span span175 = CollectionsMarshal.AsSpan(list455); - ref QuestStep reference353 = ref span175[0]; + index2 = 3; + List list455 = new List(index2); + CollectionsMarshal.SetCount(list455, index2); + Span span455 = CollectionsMarshal.AsSpan(list455); + num2 = 0; + ref QuestStep reference353 = ref span455[num2]; QuestStep obj303 = new QuestStep(EInteractionType.Interact, 1048029u, new Vector3(-711.1162f, -199.5873f, 624.1703f), 1189) { StopDistance = 5f, @@ -345487,10 +419806,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list456 = new List(num3); - CollectionsMarshal.SetCount(list456, num3); - CollectionsMarshal.AsSpan(list456)[0] = new DialogueChoice + index3 = 1; + List list456 = new List(index3); + CollectionsMarshal.SetCount(list456, index3); + Span span456 = CollectionsMarshal.AsSpan(list456); + num3 = 0; + span456[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "EventPathMove", @@ -345498,7 +419819,8 @@ public static class AssemblyQuestLoader }; obj303.DialogueChoices = list456; reference353 = obj303; - span175[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.30396f, -153.01865f, 529.2467f), 1189) + num2++; + span455[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.30396f, -153.01865f, 529.2467f), 1189) { Fly = true, SkipConditions = new SkipConditions @@ -345509,17 +419831,20 @@ public static class AssemblyQuestLoader } } }; - span175[2] = new QuestStep(EInteractionType.Interact, 1047813u, new Vector3(-826.32184f, -297.8752f, 875.15063f), 1189) + num2++; + span455[num2] = new QuestStep(EInteractionType.Interact, 1047813u, new Vector3(-826.32184f, -297.8752f, 875.15063f), 1189) { Fly = true }; obj302.Steps = list455; reference352 = obj302; - span174[2] = new QuestSequence + num++; + span453[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference354 = ref span174[3]; + num++; + ref QuestSequence reference354 = ref span453[num]; QuestSequence obj304 = new QuestSequence { Sequence = 3 @@ -345527,32 +419852,39 @@ public static class AssemblyQuestLoader num2 = 1; List list457 = new List(num2); CollectionsMarshal.SetCount(list457, num2); - CollectionsMarshal.AsSpan(list457)[0] = new QuestStep(EInteractionType.Interact, 1047818u, new Vector3(-0.9918823f, 0.20000042f, -51.499268f), 1222) + Span span457 = CollectionsMarshal.AsSpan(list457); + index2 = 0; + span457[index2] = new QuestStep(EInteractionType.Interact, 1047818u, new Vector3(-0.9918823f, 0.20000042f, -51.499268f), 1222) { StopDistance = 7f }; obj304.Steps = list457; reference354 = obj304; - span174[4] = new QuestSequence + num++; + span453[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference355 = ref span174[5]; + num++; + ref QuestSequence reference355 = ref span453[num]; QuestSequence obj305 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list458 = new List(num2); - CollectionsMarshal.SetCount(list458, num2); - CollectionsMarshal.AsSpan(list458)[0] = new QuestStep(EInteractionType.Interact, 1047829u, new Vector3(-0.13739014f, 105.00008f, 848.7831f), 1192) + index2 = 1; + List list458 = new List(index2); + CollectionsMarshal.SetCount(list458, index2); + Span span458 = CollectionsMarshal.AsSpan(list458); + num2 = 0; + span458[num2] = new QuestStep(EInteractionType.Interact, 1047829u, new Vector3(-0.13739014f, 105.00008f, 848.7831f), 1192) { StopDistance = 7f, DisableNavmesh = true }; obj305.Steps = list458; reference355 = obj305; - ref QuestSequence reference356 = ref span174[6]; + num++; + ref QuestSequence reference356 = ref span453[num]; QuestSequence obj306 = new QuestSequence { Sequence = 6 @@ -345560,28 +419892,35 @@ public static class AssemblyQuestLoader num2 = 1; List list459 = new List(num2); CollectionsMarshal.SetCount(list459, num2); - CollectionsMarshal.AsSpan(list459)[0] = new QuestStep(EInteractionType.Interact, 1047833u, new Vector3(-26.657532f, 53.200012f, 794.67444f), 1192); + Span span459 = CollectionsMarshal.AsSpan(list459); + index2 = 0; + span459[index2] = new QuestStep(EInteractionType.Interact, 1047833u, new Vector3(-26.657532f, 53.200012f, 794.67444f), 1192); obj306.Steps = list459; reference356 = obj306; - ref QuestSequence reference357 = ref span174[7]; + num++; + ref QuestSequence reference357 = ref span453[num]; QuestSequence obj307 = new QuestSequence { Sequence = 7 }; - num2 = 3; - List list460 = new List(num2); - CollectionsMarshal.SetCount(list460, num2); - Span span176 = CollectionsMarshal.AsSpan(list460); - span176[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1192) + index2 = 3; + List list460 = new List(index2); + CollectionsMarshal.SetCount(list460, index2); + Span span460 = CollectionsMarshal.AsSpan(list460); + num2 = 0; + span460[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1192) { DisableNavmesh = true, Aetheryte = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - span176[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(3.7348669f, 50.12495f, 660.56006f), 1192); - span176[2] = new QuestStep(EInteractionType.Interact, 1047837u, new Vector3(-0.045776367f, 50.124947f, 365.16357f), 1192); + num2++; + span460[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(3.7348669f, 50.12495f, 660.56006f), 1192); + num2++; + span460[num2] = new QuestStep(EInteractionType.Interact, 1047837u, new Vector3(-0.045776367f, 50.124947f, 365.16357f), 1192); obj307.Steps = list460; reference357 = obj307; - ref QuestSequence reference358 = ref span174[8]; + num++; + ref QuestSequence reference358 = ref span453[num]; QuestSequence obj308 = new QuestSequence { Sequence = byte.MaxValue @@ -345589,7 +419928,9 @@ public static class AssemblyQuestLoader num2 = 1; List list461 = new List(num2); CollectionsMarshal.SetCount(list461, num2); - CollectionsMarshal.AsSpan(list461)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047842u, new Vector3(0.015197754f, 50.124947f, 361.95923f), 1192) + Span span461 = CollectionsMarshal.AsSpan(list461); + index2 = 0; + span461[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047842u, new Vector3(0.015197754f, 50.124947f, 361.95923f), 1192) { StopDistance = 7f }; @@ -345602,27 +419943,33 @@ public static class AssemblyQuestLoader num = 1; List list462 = new List(num); CollectionsMarshal.SetCount(list462, num); - CollectionsMarshal.AsSpan(list462)[0] = "liza"; + Span span462 = CollectionsMarshal.AsSpan(list462); + index = 0; + span462[index] = "liza"; questRoot50.Author = list462; - num = 7; - List list463 = new List(num); - CollectionsMarshal.SetCount(list463, num); - Span span177 = CollectionsMarshal.AsSpan(list463); - ref QuestSequence reference359 = ref span177[0]; + index = 7; + List list463 = new List(index); + CollectionsMarshal.SetCount(list463, index); + Span span463 = CollectionsMarshal.AsSpan(list463); + num = 0; + ref QuestSequence reference359 = ref span463[num]; QuestSequence obj309 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list464 = new List(num2); - CollectionsMarshal.SetCount(list464, num2); - CollectionsMarshal.AsSpan(list464)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047842u, new Vector3(0.015197754f, 50.124947f, 361.95923f), 1192) + index2 = 1; + List list464 = new List(index2); + CollectionsMarshal.SetCount(list464, index2); + Span span464 = CollectionsMarshal.AsSpan(list464); + num2 = 0; + span464[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047842u, new Vector3(0.015197754f, 50.124947f, 361.95923f), 1192) { StopDistance = 7f }; obj309.Steps = list464; reference359 = obj309; - ref QuestSequence reference360 = ref span177[1]; + num++; + ref QuestSequence reference360 = ref span463[num]; QuestSequence obj310 = new QuestSequence { Sequence = 1 @@ -345630,24 +419977,30 @@ public static class AssemblyQuestLoader num2 = 1; List list465 = new List(num2); CollectionsMarshal.SetCount(list465, num2); - CollectionsMarshal.AsSpan(list465)[0] = new QuestStep(EInteractionType.Interact, 2013770u, new Vector3(-0.045776367f, 53.177612f, 772.8236f), 1192) + Span span465 = CollectionsMarshal.AsSpan(list465); + index2 = 0; + span465[index2] = new QuestStep(EInteractionType.Interact, 2013770u, new Vector3(-0.045776367f, 53.177612f, 772.8236f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; obj310.Steps = list465; reference360 = obj310; - ref QuestSequence reference361 = ref span177[2]; + num++; + ref QuestSequence reference361 = ref span463[num]; QuestSequence obj311 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list466 = new List(num2); - CollectionsMarshal.SetCount(list466, num2); - CollectionsMarshal.AsSpan(list466)[0] = new QuestStep(EInteractionType.Interact, 1047850u, new Vector3(-36.30127f, 53.200012f, 753.56665f), 1192); + index2 = 1; + List list466 = new List(index2); + CollectionsMarshal.SetCount(list466, index2); + Span span466 = CollectionsMarshal.AsSpan(list466); + num2 = 0; + span466[num2] = new QuestStep(EInteractionType.Interact, 1047850u, new Vector3(-36.30127f, 53.200012f, 753.56665f), 1192); obj311.Steps = list466; reference361 = obj311; - ref QuestSequence reference362 = ref span177[3]; + num++; + ref QuestSequence reference362 = ref span463[num]; QuestSequence obj312 = new QuestSequence { Sequence = 3 @@ -345655,66 +420008,91 @@ public static class AssemblyQuestLoader num2 = 1; List list467 = new List(num2); CollectionsMarshal.SetCount(list467, num2); - CollectionsMarshal.AsSpan(list467)[0] = new QuestStep(EInteractionType.Interact, 1047855u, new Vector3(-131.12079f, 6.380001f, 551.75085f), 1192) + Span span467 = CollectionsMarshal.AsSpan(list467); + index2 = 0; + span467[index2] = new QuestStep(EInteractionType.Interact, 1047855u, new Vector3(-131.12079f, 6.380001f, 551.75085f), 1192) { StopDistance = 6f }; obj312.Steps = list467; reference362 = obj312; - ref QuestSequence reference363 = ref span177[4]; + num++; + ref QuestSequence reference363 = ref span463[num]; QuestSequence obj313 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list468 = new List(num2); - CollectionsMarshal.SetCount(list468, num2); - Span span178 = CollectionsMarshal.AsSpan(list468); - ref QuestStep reference364 = ref span178[0]; + index2 = 3; + List list468 = new List(index2); + CollectionsMarshal.SetCount(list468, index2); + Span span468 = CollectionsMarshal.AsSpan(list468); + num2 = 0; + ref QuestStep reference364 = ref span468[num2]; QuestStep questStep52 = new QuestStep(EInteractionType.Interact, 1047860u, new Vector3(-194.75098f, 0.049999997f, 532.1278f), 1192); num3 = 6; List list469 = new List(num3); CollectionsMarshal.SetCount(list469, num3); - Span span179 = CollectionsMarshal.AsSpan(list469); - span179[0] = null; - span179[1] = null; - span179[2] = null; - span179[3] = null; - span179[4] = null; - span179[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span469 = CollectionsMarshal.AsSpan(list469); + index3 = 0; + span469[index3] = null; + index3++; + span469[index3] = null; + index3++; + span469[index3] = null; + index3++; + span469[index3] = null; + index3++; + span469[index3] = null; + index3++; + span469[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep52.CompletionQuestVariablesFlags = list469; reference364 = questStep52; - ref QuestStep reference365 = ref span178[1]; + num2++; + ref QuestStep reference365 = ref span468[num2]; QuestStep questStep53 = new QuestStep(EInteractionType.Interact, 1047861u, new Vector3(-205.52374f, 6.4019995f, 555.01636f), 1192); - num3 = 6; - List list470 = new List(num3); - CollectionsMarshal.SetCount(list470, num3); - Span span180 = CollectionsMarshal.AsSpan(list470); - span180[0] = null; - span180[1] = null; - span180[2] = null; - span180[3] = null; - span180[4] = null; - span180[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list470 = new List(index3); + CollectionsMarshal.SetCount(list470, index3); + Span span470 = CollectionsMarshal.AsSpan(list470); + num3 = 0; + span470[num3] = null; + num3++; + span470[num3] = null; + num3++; + span470[num3] = null; + num3++; + span470[num3] = null; + num3++; + span470[num3] = null; + num3++; + span470[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep53.CompletionQuestVariablesFlags = list470; reference365 = questStep53; - ref QuestStep reference366 = ref span178[2]; + num2++; + ref QuestStep reference366 = ref span468[num2]; QuestStep questStep54 = new QuestStep(EInteractionType.Interact, 1047862u, new Vector3(-183.73395f, 0.049998913f, 580.8651f), 1192); num3 = 6; List list471 = new List(num3); CollectionsMarshal.SetCount(list471, num3); - Span span181 = CollectionsMarshal.AsSpan(list471); - span181[0] = null; - span181[1] = null; - span181[2] = null; - span181[3] = null; - span181[4] = null; - span181[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span471 = CollectionsMarshal.AsSpan(list471); + index3 = 0; + span471[index3] = null; + index3++; + span471[index3] = null; + index3++; + span471[index3] = null; + index3++; + span471[index3] = null; + index3++; + span471[index3] = null; + index3++; + span471[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep54.CompletionQuestVariablesFlags = list471; reference366 = questStep54; obj313.Steps = list468; reference363 = obj313; - ref QuestSequence reference367 = ref span177[5]; + num++; + ref QuestSequence reference367 = ref span463[num]; QuestSequence obj314 = new QuestSequence { Sequence = 5 @@ -345722,23 +420100,28 @@ public static class AssemblyQuestLoader num2 = 2; List list472 = new List(num2); CollectionsMarshal.SetCount(list472, num2); - Span span182 = CollectionsMarshal.AsSpan(list472); - span182[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-179.35655f, 0f, 606.5711f), 1192); - span182[1] = new QuestStep(EInteractionType.Interact, 1047868u, new Vector3(-183.18463f, -6.346533E-12f, 606.71387f), 1192) + Span span472 = CollectionsMarshal.AsSpan(list472); + index2 = 0; + span472[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-179.35655f, 0f, 606.5711f), 1192); + index2++; + span472[index2] = new QuestStep(EInteractionType.Interact, 1047868u, new Vector3(-183.18463f, -6.346533E-12f, 606.71387f), 1192) { StopDistance = 5f }; obj314.Steps = list472; reference367 = obj314; - ref QuestSequence reference368 = ref span177[6]; + num++; + ref QuestSequence reference368 = ref span463[num]; QuestSequence obj315 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list473 = new List(num2); - CollectionsMarshal.SetCount(list473, num2); - CollectionsMarshal.AsSpan(list473)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047869u, new Vector3(-266.0716f, 0.049999483f, 533.77576f), 1192); + index2 = 1; + List list473 = new List(index2); + CollectionsMarshal.SetCount(list473, index2); + Span span473 = CollectionsMarshal.AsSpan(list473); + num2 = 0; + span473[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047869u, new Vector3(-266.0716f, 0.049999483f, 533.77576f), 1192); obj315.Steps = list473; reference368 = obj315; questRoot50.QuestSequence = list463; @@ -345752,13 +420135,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 11; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 11; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -345766,21 +420152,27 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047869u, new Vector3(-266.0716f, 0.049999483f, 533.77576f), 1192); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047869u, new Vector3(-266.0716f, 0.049999483f, 533.77576f), 1192); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1047870u, new Vector3(-343.00757f, 0f, 567.254f), 1192); + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1047870u, new Vector3(-343.00757f, 0f, 567.254f), 1192); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -345788,7 +420180,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + ref QuestStep reference4 = ref span5[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, 2013771u, new Vector3(-270.924f, -0.015319824f, 610.7423f), 1192) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -345796,23 +420190,29 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = 17704u; + Span span6 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span6[index3] = 17704u; obj4.KillEnemyDataIds = list6; reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1047870u, new Vector3(-343.00757f, 0f, 567.254f), 1192); + index2 = 1; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.Interact, 1047870u, new Vector3(-343.00757f, 0f, 567.254f), 1192); obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -345820,24 +420220,30 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1047871u, new Vector3(-289.78418f, 0.049857892f, 523.9795f), 1192); + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.Interact, 1047871u, new Vector3(-289.78418f, 0.049857892f, 523.9795f), 1192); obj6.Steps = list8; reference6 = obj6; - ref QuestSequence reference7 = ref span[5]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1047873u, new Vector3(-570.428f, 0.05000001f, 498.46643f), 1192) + index2 = 1; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num2 = 0; + span9[num2] = new QuestStep(EInteractionType.Interact, 1047873u, new Vector3(-570.428f, 0.05000001f, 498.46643f), 1192) { StopDistance = 5f }; obj7.Steps = list9; reference7 = obj7; - ref QuestSequence reference8 = ref span[6]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = 6 @@ -345845,56 +420251,76 @@ public static class AssemblyQuestLoader num2 = 4; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span2 = CollectionsMarshal.AsSpan(list10); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-528.32446f, 6.402005f, 525.08594f), 1192); - span2[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-479.25574f, 6.4020014f, 586.5792f), 1192); - span2[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013976u, new Vector3(-516.6858f, 0.045776367f, 680.99475f), 1192) + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-528.32446f, 6.402005f, 525.08594f), 1192); + index2++; + span10[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-479.25574f, 6.4020014f, 586.5792f), 1192); + index2++; + span10[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013976u, new Vector3(-516.6858f, 0.045776367f, 680.99475f), 1192) { AetherCurrentId = 2818483u }; - span2[3] = new QuestStep(EInteractionType.Interact, 1047874u, new Vector3(-440.0855f, -0.81529194f, 458.4878f), 1192); + index2++; + span10[index2] = new QuestStep(EInteractionType.Interact, 1047874u, new Vector3(-440.0855f, -0.81529194f, 458.4878f), 1192); obj8.Steps = list10; reference8 = obj8; - ref QuestSequence reference9 = ref span[7]; + num++; + ref QuestSequence reference9 = ref span2[num]; QuestSequence obj9 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - Span span3 = CollectionsMarshal.AsSpan(list11); - ref QuestStep reference10 = ref span3[0]; + index2 = 2; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + ref QuestStep reference10 = ref span11[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2013773u, new Vector3(-433.43256f, 1.3580322f, 500.2975f), 1192); - num3 = 6; - List list12 = new List(num3); - CollectionsMarshal.SetCount(list12, num3); - Span span4 = CollectionsMarshal.AsSpan(list12); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list12 = new List(index3); + CollectionsMarshal.SetCount(list12, index3); + Span span12 = CollectionsMarshal.AsSpan(list12); + num3 = 0; + span12[num3] = null; + num3++; + span12[num3] = null; + num3++; + span12[num3] = null; + num3++; + span12[num3] = null; + num3++; + span12[num3] = null; + num3++; + span12[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list12; reference10 = questStep; - ref QuestStep reference11 = ref span3[1]; + num2++; + ref QuestStep reference11 = ref span11[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2013772u, new Vector3(-409.35382f, 1.3884888f, 487.29688f), 1192); num3 = 6; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - Span span5 = CollectionsMarshal.AsSpan(list13); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span13 = CollectionsMarshal.AsSpan(list13); + index3 = 0; + span13[index3] = null; + index3++; + span13[index3] = null; + index3++; + span13[index3] = null; + index3++; + span13[index3] = null; + index3++; + span13[index3] = null; + index3++; + span13[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list13; reference11 = questStep2; obj9.Steps = list11; reference9 = obj9; - ref QuestSequence reference12 = ref span[8]; + num++; + ref QuestSequence reference12 = ref span2[num]; QuestSequence obj10 = new QuestSequence { Sequence = 8 @@ -345902,30 +420328,39 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1047876u, new Vector3(-441.48932f, -0.8153026f, 459.1897f), 1192); + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.Interact, 1047876u, new Vector3(-441.48932f, -0.8153026f, 459.1897f), 1192); obj10.Steps = list14; reference12 = obj10; - ref QuestSequence reference13 = ref span[9]; + num++; + ref QuestSequence reference13 = ref span2[num]; QuestSequence obj11 = new QuestSequence { Sequence = 9 }; - num2 = 4; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - Span span6 = CollectionsMarshal.AsSpan(list15); - span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-648.8012f, 0.028711677f, 490.62888f), 1192); - span6[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-674.08075f, 0.092562795f, 451.85648f), 1192); - span6[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013974u, new Vector3(-698.8785f, 0.99176025f, 472.00732f), 1192) + index2 = 4; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-648.8012f, 0.028711677f, 490.62888f), 1192); + num2++; + span15[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-674.08075f, 0.092562795f, 451.85648f), 1192); + num2++; + span15[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013974u, new Vector3(-698.8785f, 0.99176025f, 472.00732f), 1192) { AetherCurrentId = 2818479u }; - ref QuestStep reference14 = ref span6[3]; + num2++; + ref QuestStep reference14 = ref span15[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1047879u, new Vector3(-701.9303f, 14.9f, 308.76624f), 1192); - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice + index3 = 1; + List list16 = new List(index3); + CollectionsMarshal.SetCount(list16, index3); + Span span16 = CollectionsMarshal.AsSpan(list16); + num3 = 0; + span16[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF105_04950_SYSTEM_000_197") @@ -345934,7 +420369,8 @@ public static class AssemblyQuestLoader reference14 = questStep3; obj11.Steps = list15; reference13 = obj11; - ref QuestSequence reference15 = ref span[10]; + num++; + ref QuestSequence reference15 = ref span2[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -345942,7 +420378,9 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047879u, new Vector3(-701.9303f, 14.9f, 308.76624f), 1192) + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047879u, new Vector3(-701.9303f, 14.9f, 308.76624f), 1192) { StopDistance = 5f }; @@ -345955,27 +420393,33 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "liza"; + Span span18 = CollectionsMarshal.AsSpan(list18); + index = 0; + span18[index] = "liza"; questRoot2.Author = list18; - num = 7; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span7 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference16 = ref span7[0]; + index = 7; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + Span span19 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference16 = ref span19[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047883u, new Vector3(-701.16736f, 14.900001f, 312.42847f), 1192) + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047883u, new Vector3(-701.16736f, 14.900001f, 312.42847f), 1192) { StopDistance = 7f }; obj13.Steps = list20; reference16 = obj13; - ref QuestSequence reference17 = ref span7[1]; + num++; + ref QuestSequence reference17 = ref span19[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -345983,71 +420427,96 @@ public static class AssemblyQuestLoader num2 = 2; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span8 = CollectionsMarshal.AsSpan(list21); - span8[0] = new QuestStep(EInteractionType.AcceptQuest, 1050617u, new Vector3(-631.4031f, 2.9305653E-07f, 497.12354f), 1192) + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + span21[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050617u, new Vector3(-631.4031f, 2.9305653E-07f, 497.12354f), 1192) { PickUpQuestId = new QuestId(5174) }; - span8[1] = new QuestStep(EInteractionType.Interact, 1047884u, new Vector3(57.87744f, 53.200012f, 772.03015f), 1192) + index2++; + span21[index2] = new QuestStep(EInteractionType.Interact, 1047884u, new Vector3(57.87744f, 53.200012f, 772.03015f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; obj14.Steps = list21; reference17 = obj14; - ref QuestSequence reference18 = ref span7[2]; + num++; + ref QuestSequence reference18 = ref span19[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span9 = CollectionsMarshal.AsSpan(list22); - ref QuestStep reference19 = ref span9[0]; + index2 = 3; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + ref QuestStep reference19 = ref span22[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2013775u, new Vector3(260.88342f, 1.9683228f, 671.1986f), 1192); num3 = 6; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - Span span10 = CollectionsMarshal.AsSpan(list23); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span23 = CollectionsMarshal.AsSpan(list23); + index3 = 0; + span23[index3] = null; + index3++; + span23[index3] = null; + index3++; + span23[index3] = null; + index3++; + span23[index3] = null; + index3++; + span23[index3] = null; + index3++; + span23[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list23; reference19 = questStep4; - ref QuestStep reference20 = ref span9[1]; + num2++; + ref QuestStep reference20 = ref span22[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2013774u, new Vector3(268.36035f, -0.7477417f, 628.1376f), 1192); - num3 = 6; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - Span span11 = CollectionsMarshal.AsSpan(list24); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list24 = new List(index3); + CollectionsMarshal.SetCount(list24, index3); + Span span24 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span24[num3] = null; + num3++; + span24[num3] = null; + num3++; + span24[num3] = null; + num3++; + span24[num3] = null; + num3++; + span24[num3] = null; + num3++; + span24[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list24; reference20 = questStep5; - ref QuestStep reference21 = ref span9[2]; + num2++; + ref QuestStep reference21 = ref span22[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1047889u, new Vector3(243.18298f, 0.10920419f, 602.8076f), 1192); num3 = 6; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span12 = CollectionsMarshal.AsSpan(list25); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span25 = CollectionsMarshal.AsSpan(list25); + index3 = 0; + span25[index3] = null; + index3++; + span25[index3] = null; + index3++; + span25[index3] = null; + index3++; + span25[index3] = null; + index3++; + span25[index3] = null; + index3++; + span25[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list25; reference21 = questStep6; obj15.Steps = list22; reference18 = obj15; - ref QuestSequence reference22 = ref span7[3]; + num++; + ref QuestSequence reference22 = ref span19[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -346055,37 +420524,45 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 2013776u, new Vector3(304.95142f, -0.015319824f, 608.02625f), 1192); + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.Interact, 2013776u, new Vector3(304.95142f, -0.015319824f, 608.02625f), 1192); obj16.Steps = list26; reference22 = obj16; - ref QuestSequence reference23 = ref span7[4]; + num++; + ref QuestSequence reference23 = ref span19[num]; QuestSequence obj17 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - Span span13 = CollectionsMarshal.AsSpan(list27); - span13[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013977u, new Vector3(232.349f, -0.015319824f, 544.4877f), 1192) + index2 = 2; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013977u, new Vector3(232.349f, -0.015319824f, 544.4877f), 1192) { AetherCurrentId = 2818484u }; - ref QuestStep reference24 = ref span13[1]; + num2++; + ref QuestStep reference24 = ref span27[num2]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(383.26807f, -0.106494784f, 551.68506f), 1192) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = 17705u; + index3 = 1; + List list28 = new List(index3); + CollectionsMarshal.SetCount(list28, index3); + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span28[num3] = 17705u; obj18.KillEnemyDataIds = list28; reference24 = obj18; obj17.Steps = list27; reference23 = obj17; - ref QuestSequence reference25 = ref span7[5]; + num++; + ref QuestSequence reference25 = ref span19[num]; QuestSequence obj19 = new QuestSequence { Sequence = 5 @@ -346093,21 +420570,26 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1047891u, new Vector3(381.39917f, -0.1618917f, 557.6714f), 1192) + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.Interact, 1047891u, new Vector3(381.39917f, -0.1618917f, 557.6714f), 1192) { StopDistance = 7f }; obj19.Steps = list29; reference25 = obj19; - ref QuestSequence reference26 = ref span7[6]; + num++; + ref QuestSequence reference26 = ref span19[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047898u, new Vector3(383.38293f, -0.15743838f, 554.8638f), 1192) + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span30[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047898u, new Vector3(383.38293f, -0.15743838f, 554.8638f), 1192) { StopDistance = 7f }; @@ -346120,13 +420602,16 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "liza"; + Span span31 = CollectionsMarshal.AsSpan(list31); + index = 0; + span31[index] = "liza"; questRoot3.Author = list31; - num = 8; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span14 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference27 = ref span14[0]; + index = 8; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + Span span32 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference27 = ref span32[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -346134,26 +420619,32 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047898u, new Vector3(383.38293f, -0.15743838f, 554.8638f), 1192) + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047898u, new Vector3(383.38293f, -0.15743838f, 554.8638f), 1192) { StopDistance = 7f }; obj21.Steps = list33; reference27 = obj21; - ref QuestSequence reference28 = ref span14[1]; + num++; + ref QuestSequence reference28 = ref span32[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - Span span15 = CollectionsMarshal.AsSpan(list34); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.8642f, 10.611866f, 322.41876f), 1192); - span15[1] = new QuestStep(EInteractionType.Interact, 1047899u, new Vector3(354.63477f, 23.427383f, 397.63477f), 1192); + index2 = 2; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.8642f, 10.611866f, 322.41876f), 1192); + num2++; + span34[num2] = new QuestStep(EInteractionType.Interact, 1047899u, new Vector3(354.63477f, 23.427383f, 397.63477f), 1192); obj22.Steps = list34; reference28 = obj22; - ref QuestSequence reference29 = ref span14[2]; + num++; + ref QuestSequence reference29 = ref span32[num]; QuestSequence obj23 = new QuestSequence { Sequence = 2 @@ -346161,109 +420652,155 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1047900u, new Vector3(354.5432f, 23.427383f, 397.75684f), 1192); + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.Interact, 1047900u, new Vector3(354.5432f, 23.427383f, 397.75684f), 1192); obj23.Steps = list35; reference29 = obj23; - ref QuestSequence reference30 = ref span14[3]; + num++; + ref QuestSequence reference30 = ref span32[num]; QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - num2 = 6; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - Span span16 = CollectionsMarshal.AsSpan(list36); - ref QuestStep reference31 = ref span16[0]; + index2 = 6; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + ref QuestStep reference31 = ref span36[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1047905u, new Vector3(390.4325f, 23.42738f, 398.76404f), 1192); num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span17 = CollectionsMarshal.AsSpan(list37); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + Span span37 = CollectionsMarshal.AsSpan(list37); + index3 = 0; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = null; + index3++; + span37[index3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list37; reference31 = questStep7; - ref QuestStep reference32 = ref span16[1]; + num2++; + ref QuestStep reference32 = ref span36[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1047902u, new Vector3(365.9265f, 22.685093f, 359.21265f), 1192); - num3 = 6; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span18 = CollectionsMarshal.AsSpan(list38); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = null; + num3++; + span38[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list38; reference32 = questStep8; - ref QuestStep reference33 = ref span16[2]; + num2++; + ref QuestStep reference33 = ref span36[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1047903u, new Vector3(331.92944f, 22.684782f, 325.2461f), 1192); num3 = 6; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - Span span19 = CollectionsMarshal.AsSpan(list39); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span39 = CollectionsMarshal.AsSpan(list39); + index3 = 0; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = null; + index3++; + span39[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list39; reference33 = questStep9; - ref QuestStep reference34 = ref span16[3]; + num2++; + ref QuestStep reference34 = ref span36[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1047901u, new Vector3(316.15173f, 22.64806f, 399.89307f), 1192); - num3 = 6; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span20 = CollectionsMarshal.AsSpan(list40); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list40 = new List(index3); + CollectionsMarshal.SetCount(list40, index3); + Span span40 = CollectionsMarshal.AsSpan(list40); + num3 = 0; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = null; + num3++; + span40[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list40; reference34 = questStep10; - ref QuestStep reference35 = ref span16[4]; + num2++; + ref QuestStep reference35 = ref span36[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(367.99225f, 58.0012f, 409.66818f), 1192); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span21 = CollectionsMarshal.AsSpan(list41); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span41 = CollectionsMarshal.AsSpan(list41); + index3 = 0; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = null; + index3++; + span41[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list41; skipConditions.StepIf = skipStepConditions; questStep11.SkipConditions = skipConditions; reference35 = questStep11; - ref QuestStep reference36 = ref span16[5]; + num2++; + ref QuestStep reference36 = ref span36[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1047904u, new Vector3(346.66968f, 58.000057f, 391.6228f), 1192); - num3 = 6; - List list42 = new List(num3); - CollectionsMarshal.SetCount(list42, num3); - Span span22 = CollectionsMarshal.AsSpan(list42); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list42 = new List(index3); + CollectionsMarshal.SetCount(list42, index3); + Span span42 = CollectionsMarshal.AsSpan(list42); + num3 = 0; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = null; + num3++; + span42[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list42; reference36 = questStep12; obj24.Steps = list36; reference30 = obj24; - ref QuestSequence reference37 = ref span14[4]; + num++; + ref QuestSequence reference37 = ref span32[num]; QuestSequence obj25 = new QuestSequence { Sequence = 4 @@ -346271,26 +420808,32 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1047900u, new Vector3(354.5432f, 23.427383f, 397.75684f), 1192); + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.Interact, 1047900u, new Vector3(354.5432f, 23.427383f, 397.75684f), 1192); obj25.Steps = list43; reference37 = obj25; - ref QuestSequence reference38 = ref span14[5]; + num++; + ref QuestSequence reference38 = ref span32[num]; QuestSequence obj26 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - Span span23 = CollectionsMarshal.AsSpan(list44); - span23[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013978u, new Vector3(627.5271f, 9.048584f, 637.72034f), 1192) + index2 = 2; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013978u, new Vector3(627.5271f, 9.048584f, 637.72034f), 1192) { AetherCurrentId = 2818485u }; - span23[1] = new QuestStep(EInteractionType.Interact, 2013778u, new Vector3(699.0615f, 40.299072f, 377.9812f), 1192); + num2++; + span44[num2] = new QuestStep(EInteractionType.Interact, 2013778u, new Vector3(699.0615f, 40.299072f, 377.9812f), 1192); obj26.Steps = list44; reference38 = obj26; - ref QuestSequence reference39 = ref span14[6]; + num++; + ref QuestSequence reference39 = ref span32[num]; QuestSequence obj27 = new QuestSequence { Sequence = 6 @@ -346298,17 +420841,21 @@ public static class AssemblyQuestLoader num2 = 2; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span24 = CollectionsMarshal.AsSpan(list45); - span24[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013975u, new Vector3(753.3696f, 45.09243f, 347.0511f), 1192) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013975u, new Vector3(753.3696f, 45.09243f, 347.0511f), 1192) { AetherCurrentId = 2818480u }; - ref QuestStep reference40 = ref span24[1]; + index2++; + ref QuestStep reference40 = ref span45[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1047911u, new Vector3(749.9961f, -12.716532f, 221.08789f), 1192); num3 = 1; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new DialogueChoice + Span span46 = CollectionsMarshal.AsSpan(list46); + index3 = 0; + span46[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF107_04952_SYSTEM_100_174") @@ -346317,15 +420864,18 @@ public static class AssemblyQuestLoader reference40 = questStep13; obj27.Steps = list45; reference39 = obj27; - ref QuestSequence reference41 = ref span14[7]; + num++; + ref QuestSequence reference41 = ref span32[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047911u, new Vector3(749.9961f, -12.716532f, 221.08789f), 1192) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047911u, new Vector3(749.9961f, -12.716532f, 221.08789f), 1192) { StopDistance = 5f }; @@ -346338,13 +420888,16 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - CollectionsMarshal.AsSpan(list48)[0] = "liza"; + Span span48 = CollectionsMarshal.AsSpan(list48); + index = 0; + span48[index] = "liza"; questRoot4.Author = list48; - num = 5; - List list49 = new List(num); - CollectionsMarshal.SetCount(list49, num); - Span span25 = CollectionsMarshal.AsSpan(list49); - ref QuestSequence reference42 = ref span25[0]; + index = 5; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + Span span49 = CollectionsMarshal.AsSpan(list49); + num = 0; + ref QuestSequence reference42 = ref span49[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -346352,22 +420905,26 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047915u, new Vector3(746.5476f, -12.716527f, 216.7544f), 1192) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047915u, new Vector3(746.5476f, -12.716527f, 216.7544f), 1192) { StopDistance = 5f }; obj29.Steps = list50; reference42 = obj29; - ref QuestSequence reference43 = ref span25[1]; + num++; + ref QuestSequence reference43 = ref span49[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - Span span26 = CollectionsMarshal.AsSpan(list51); - ref QuestStep reference44 = ref span26[0]; + index2 = 3; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + ref QuestStep reference44 = ref span51[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1048243u, new Vector3(57.87744f, 53.200012f, 772.03015f), 1192) { TargetTerritoryId = (ushort)1192, @@ -346375,32 +420932,39 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new QuestId(5176); + index3 = 1; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span52[num3] = new QuestId(5176); skipStepConditions2.QuestsCompleted = list52; skipConditions2.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - CollectionsMarshal.AsSpan(list53)[0] = new QuestId(5176); + Span span53 = CollectionsMarshal.AsSpan(list53); + index3 = 0; + span53[index3] = new QuestId(5176); skipAetheryteCondition.QuestsCompleted = list53; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; obj31.SkipConditions = skipConditions2; reference44 = obj31; - span26[1] = new QuestStep(EInteractionType.AcceptQuest, 1050621u, new Vector3(477.1344f, -0.034497976f, 711.6654f), 1192) + num2++; + span51[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050621u, new Vector3(477.1344f, -0.034497976f, 711.6654f), 1192) { PickUpQuestId = new QuestId(5176) }; - span26[2] = new QuestStep(EInteractionType.Interact, 1047917u, new Vector3(35.721313f, 53.20001f, 753.1699f), 1192) + num2++; + span51[num2] = new QuestStep(EInteractionType.Interact, 1047917u, new Vector3(35.721313f, 53.20001f, 753.1699f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; obj30.Steps = list51; reference43 = obj30; - ref QuestSequence reference45 = ref span25[2]; + num++; + ref QuestSequence reference45 = ref span49[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -346408,26 +420972,32 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1047922u, new Vector3(353.04797f, 25.75336f, -11.551086f), 1192); + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = new QuestStep(EInteractionType.Interact, 1047922u, new Vector3(353.04797f, 25.75336f, -11.551086f), 1192); obj32.Steps = list54; reference45 = obj32; - ref QuestSequence reference46 = ref span25[3]; + num++; + ref QuestSequence reference46 = ref span49[num]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span27 = CollectionsMarshal.AsSpan(list55); - span27[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013982u, new Vector3(169.57349f, 29.220947f, -308.0644f), 1192) + index2 = 2; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013982u, new Vector3(169.57349f, 29.220947f, -308.0644f), 1192) { AetherCurrentId = 2818487u }; - span27[1] = new QuestStep(EInteractionType.Interact, 1047925u, new Vector3(260.02893f, 27.01824f, -183.61182f), 1192); + num2++; + span55[num2] = new QuestStep(EInteractionType.Interact, 1047925u, new Vector3(260.02893f, 27.01824f, -183.61182f), 1192); obj33.Steps = list55; reference46 = obj33; - ref QuestSequence reference47 = ref span25[4]; + num++; + ref QuestSequence reference47 = ref span49[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -346435,7 +421005,9 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047929u, new Vector3(345.2964f, 26.972605f, -296.37604f), 1192) + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + span56[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047929u, new Vector3(345.2964f, 26.972605f, -296.37604f), 1192) { StopDistance = 7f }; @@ -346448,27 +421020,33 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "liza"; + Span span57 = CollectionsMarshal.AsSpan(list57); + index = 0; + span57[index] = "liza"; questRoot5.Author = list57; - num = 8; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span28 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference48 = ref span28[0]; + index = 8; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + Span span58 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference48 = ref span58[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047929u, new Vector3(345.2964f, 26.972605f, -296.37604f), 1192) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047929u, new Vector3(345.2964f, 26.972605f, -296.37604f), 1192) { StopDistance = 7f }; obj35.Steps = list59; reference48 = obj35; - ref QuestSequence reference49 = ref span28[1]; + num++; + ref QuestSequence reference49 = ref span58[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -346476,21 +421054,27 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1047932u, new Vector3(605.0659f, 27.724148f, -184.77148f), 1192); + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.Interact, 1047932u, new Vector3(605.0659f, 27.724148f, -184.77148f), 1192); obj36.Steps = list60; reference49 = obj36; - ref QuestSequence reference50 = ref span28[2]; + num++; + ref QuestSequence reference50 = ref span58[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1047937u, new Vector3(586.8772f, 27.574875f, -195.20868f), 1192); + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.Interact, 1047937u, new Vector3(586.8772f, 27.574875f, -195.20868f), 1192); obj37.Steps = list61; reference50 = obj37; - ref QuestSequence reference51 = ref span28[3]; + num++; + ref QuestSequence reference51 = ref span58[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 @@ -346498,69 +421082,96 @@ public static class AssemblyQuestLoader num2 = 4; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span29 = CollectionsMarshal.AsSpan(list62); - ref QuestStep reference52 = ref span29[0]; + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + ref QuestStep reference52 = ref span62[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1047944u, new Vector3(665.5221f, 24.999493f, -266.55988f), 1192); - num3 = 6; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - Span span30 = CollectionsMarshal.AsSpan(list63); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + Span span63 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list63; reference52 = questStep14; - span29[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1192) + index2++; + span62[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1192) { Aetheryte = EAetheryteLocation.LivingMemoryLeynodePyro }; - ref QuestStep reference53 = ref span29[2]; + index2++; + ref QuestStep reference53 = ref span62[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1047943u, new Vector3(653.7117f, 24.999493f, -303.18152f), 1192); num3 = 6; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span31 = CollectionsMarshal.AsSpan(list64); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span64 = CollectionsMarshal.AsSpan(list64); + index3 = 0; + span64[index3] = null; + index3++; + span64[index3] = null; + index3++; + span64[index3] = null; + index3++; + span64[index3] = null; + index3++; + span64[index3] = null; + index3++; + span64[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list64; reference53 = questStep15; - ref QuestStep reference54 = ref span29[3]; + index2++; + ref QuestStep reference54 = ref span62[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1047942u, new Vector3(634.14966f, 24.999489f, -292.77484f), 1192); - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span32 = CollectionsMarshal.AsSpan(list65); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list65 = new List(index3); + CollectionsMarshal.SetCount(list65, index3); + Span span65 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list65; reference54 = questStep16; obj38.Steps = list62; reference51 = obj38; - ref QuestSequence reference55 = ref span28[4]; + num++; + ref QuestSequence reference55 = ref span58[num]; QuestSequence obj39 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list66)[0]; + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + ref QuestStep reference56 = ref span66[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1047945u, new Vector3(514.7324f, 24.978758f, -126.57361f), 1192); num3 = 1; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = new DialogueChoice + Span span67 = CollectionsMarshal.AsSpan(list67); + index3 = 0; + span67[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMF109_04954_Q1_000_000"), @@ -346570,7 +421181,8 @@ public static class AssemblyQuestLoader reference56 = questStep17; obj39.Steps = list66; reference55 = obj39; - ref QuestSequence reference57 = ref span28[5]; + num++; + ref QuestSequence reference57 = ref span58[num]; QuestSequence obj40 = new QuestSequence { Sequence = 5 @@ -346578,21 +421190,27 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1047946u, new Vector3(501.45715f, 25.314697f, -140.39832f), 1192); + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.Interact, 1047946u, new Vector3(501.45715f, 25.314697f, -140.39832f), 1192); obj40.Steps = list68; reference57 = obj40; - ref QuestSequence reference58 = ref span28[6]; + num++; + ref QuestSequence reference58 = ref span58[num]; QuestSequence obj41 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1047939u, new Vector3(605.4933f, 27.724146f, -184.13062f), 1192); + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.Interact, 1047939u, new Vector3(605.4933f, 27.724146f, -184.13062f), 1192); obj41.Steps = list69; reference58 = obj41; - ref QuestSequence reference59 = ref span28[7]; + num++; + ref QuestSequence reference59 = ref span58[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -346600,7 +421218,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047947u, new Vector3(700.6179f, 27.99997f, -305.98926f), 1192) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047947u, new Vector3(700.6179f, 27.99997f, -305.98926f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodePyro }; @@ -346613,24 +421233,30 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + Span span71 = CollectionsMarshal.AsSpan(list71); + index = 0; + span71[index] = "liza"; questRoot6.Author = list71; - num = 9; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span33 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference60 = ref span33[0]; + index = 9; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + Span span72 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference60 = ref span72[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047947u, new Vector3(700.6179f, 27.99997f, -305.98926f), 1192); + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047947u, new Vector3(700.6179f, 27.99997f, -305.98926f), 1192); obj43.Steps = list73; reference60 = obj43; - ref QuestSequence reference61 = ref span33[1]; + num++; + ref QuestSequence reference61 = ref span72[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -346638,21 +421264,27 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 2013779u, new Vector3(755.1842f, 35.99597f, -388.50995f), 1192); + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.Interact, 2013779u, new Vector3(755.1842f, 35.99597f, -388.50995f), 1192); obj44.Steps = list74; reference61 = obj44; - ref QuestSequence reference62 = ref span33[2]; + num++; + ref QuestSequence reference62 = ref span72[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1047955u, new Vector3(712.76404f, 49.000027f, -570.24493f), 1192); + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.Interact, 1047955u, new Vector3(712.76404f, 49.000027f, -570.24493f), 1192); obj45.Steps = list75; reference62 = obj45; - ref QuestSequence reference63 = ref span33[3]; + num++; + ref QuestSequence reference63 = ref span72[num]; QuestSequence obj46 = new QuestSequence { Sequence = 3 @@ -346660,19 +421292,22 @@ public static class AssemblyQuestLoader num2 = 3; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span34 = CollectionsMarshal.AsSpan(list76); - ref QuestStep reference64 = ref span34[0]; + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + ref QuestStep reference64 = ref span76[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2013780u, new Vector3(707.24023f, 50.06482f, -548.14984f), 1192); - num3 = 2; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - Span span35 = CollectionsMarshal.AsSpan(list77); - span35[0] = new DialogueChoice + index3 = 2; + List list77 = new List(index3); + CollectionsMarshal.SetCount(list77, index3); + Span span77 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + span77[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_000_108") }; - span35[1] = new DialogueChoice + num3++; + span77[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_000_109"), @@ -346680,18 +421315,21 @@ public static class AssemblyQuestLoader }; questStep18.DialogueChoices = list77; reference64 = questStep18; - ref QuestStep reference65 = ref span34[1]; + index2++; + ref QuestStep reference65 = ref span76[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2013782u, new Vector3(722.25525f, 50.18689f, -573.6019f), 1192); num3 = 2; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - Span span36 = CollectionsMarshal.AsSpan(list78); - span36[0] = new DialogueChoice + Span span78 = CollectionsMarshal.AsSpan(list78); + index3 = 0; + span78[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_000_108") }; - span36[1] = new DialogueChoice + index3++; + span78[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_000_109"), @@ -346699,12 +421337,15 @@ public static class AssemblyQuestLoader }; questStep19.DialogueChoices = list78; reference65 = questStep19; - ref QuestStep reference66 = ref span34[2]; + index2++; + ref QuestStep reference66 = ref span76[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1047955u, new Vector3(712.76404f, 49.000027f, -570.24493f), 1192); - num3 = 1; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new DialogueChoice + index3 = 1; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + Span span79 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span79[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_100_120") @@ -346713,23 +421354,27 @@ public static class AssemblyQuestLoader reference66 = questStep20; obj46.Steps = list76; reference63 = obj46; - ref QuestSequence reference67 = ref span33[4]; + num++; + ref QuestSequence reference67 = ref span72[num]; QuestSequence obj47 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span37 = CollectionsMarshal.AsSpan(list80); - span37[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013979u, new Vector3(509.69702f, 36.972534f, -648.82886f), 1192) + index2 = 2; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013979u, new Vector3(509.69702f, 36.972534f, -648.82886f), 1192) { AetherCurrentId = 2818481u }; - span37[1] = new QuestStep(EInteractionType.Interact, 1047959u, new Vector3(485.55725f, 43.36743f, -692.83594f), 1192); + num2++; + span80[num2] = new QuestStep(EInteractionType.Interact, 1047959u, new Vector3(485.55725f, 43.36743f, -692.83594f), 1192); obj47.Steps = list80; reference67 = obj47; - ref QuestSequence reference68 = ref span33[5]; + num++; + ref QuestSequence reference68 = ref span72[num]; QuestSequence obj48 = new QuestSequence { Sequence = 5 @@ -346737,12 +421382,16 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list81)[0]; + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + ref QuestStep reference69 = ref span81[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1047959u, new Vector3(485.55725f, 43.36743f, -692.83594f), 1192); num3 = 1; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = new DialogueChoice + Span span82 = CollectionsMarshal.AsSpan(list82); + index3 = 0; + span82[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMF110_04955_Q1_000_000"), @@ -346752,21 +421401,25 @@ public static class AssemblyQuestLoader reference69 = questStep21; obj48.Steps = list81; reference68 = obj48; - ref QuestSequence reference70 = ref span33[6]; + num++; + ref QuestSequence reference70 = ref span72[num]; QuestSequence obj49 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1047633u, new Vector3(448.32532f, 84.9995f, -655.8175f), 1192) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.Interact, 1047633u, new Vector3(448.32532f, 84.9995f, -655.8175f), 1192) { StopDistance = 5f }; obj49.Steps = list83; reference70 = obj49; - ref QuestSequence reference71 = ref span33[7]; + num++; + ref QuestSequence reference71 = ref span72[num]; QuestSequence obj50 = new QuestSequence { Sequence = 7 @@ -346774,12 +421427,16 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list84)[0]; + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + ref QuestStep reference72 = ref span84[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1047965u, new Vector3(485.2826f, 106.244576f, -331.92957f), 1192); - num3 = 1; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = new DialogueChoice + index3 = 1; + List list85 = new List(index3); + CollectionsMarshal.SetCount(list85, index3); + Span span85 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span85[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_000_244") @@ -346788,15 +421445,18 @@ public static class AssemblyQuestLoader reference72 = questStep22; obj50.Steps = list84; reference71 = obj50; - ref QuestSequence reference73 = ref span33[8]; + num++; + ref QuestSequence reference73 = ref span72[num]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047966u, new Vector3(488.609f, 106.244576f, -333.8827f), 1192) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047966u, new Vector3(488.609f, 106.244576f, -333.8827f), 1192) { StopDistance = 5f }; @@ -346809,13 +421469,16 @@ public static class AssemblyQuestLoader num = 1; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - CollectionsMarshal.AsSpan(list87)[0] = "liza"; + Span span87 = CollectionsMarshal.AsSpan(list87); + index = 0; + span87[index] = "liza"; questRoot7.Author = list87; - num = 5; - List list88 = new List(num); - CollectionsMarshal.SetCount(list88, num); - Span span38 = CollectionsMarshal.AsSpan(list88); - ref QuestSequence reference74 = ref span38[0]; + index = 5; + List list88 = new List(index); + CollectionsMarshal.SetCount(list88, index); + Span span88 = CollectionsMarshal.AsSpan(list88); + num = 0; + ref QuestSequence reference74 = ref span88[num]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -346823,22 +421486,26 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047970u, new Vector3(485.16064f, 106.24457f, -331.899f), 1192) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047970u, new Vector3(485.16064f, 106.24457f, -331.899f), 1192) { StopDistance = 5f }; obj52.Steps = list89; reference74 = obj52; - ref QuestSequence reference75 = ref span38[1]; + num++; + ref QuestSequence reference75 = ref span88[num]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span39 = CollectionsMarshal.AsSpan(list90); - ref QuestStep reference76 = ref span39[0]; + index2 = 3; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + ref QuestStep reference76 = ref span90[num2]; QuestStep obj54 = new QuestStep(EInteractionType.AcceptQuest, 1050625u, new Vector3(628.6869f, 24.99949f, -283.3753f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodePyro @@ -346848,35 +421515,42 @@ public static class AssemblyQuestLoader num3 = 1; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = new QuestId(5178); + Span span91 = CollectionsMarshal.AsSpan(list91); + index3 = 0; + span91[index3] = new QuestId(5178); skipAetheryteCondition2.QuestsCompleted = list91; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition2; obj54.SkipConditions = skipConditions3; obj54.PickUpQuestId = new QuestId(5178); reference76 = obj54; - ref QuestStep reference77 = ref span39[1]; + num2++; + ref QuestStep reference77 = ref span90[num2]; QuestStep obj55 = new QuestStep(EInteractionType.AcceptQuest, 1050632u, new Vector3(538.9944f, 25.001822f, -194.3847f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodePyro }; SkipConditions skipConditions4 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = new QuestId(5179); + index3 = 1; + List list92 = new List(index3); + CollectionsMarshal.SetCount(list92, index3); + Span span92 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span92[num3] = new QuestId(5179); skipAetheryteCondition3.QuestsCompleted = list92; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition3; obj55.SkipConditions = skipConditions4; obj55.PickUpQuestId = new QuestId(5179); reference77 = obj55; - span39[2] = new QuestStep(EInteractionType.Interact, 1047971u, new Vector3(34.592163f, 53.20001f, 767.4829f), 1192) + num2++; + span90[num2] = new QuestStep(EInteractionType.Interact, 1047971u, new Vector3(34.592163f, 53.20001f, 767.4829f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; obj53.Steps = list90; reference75 = obj53; - ref QuestSequence reference78 = ref span38[2]; + num++; + ref QuestSequence reference78 = ref span88[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -346884,21 +421558,27 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1047976u, new Vector3(-56.992493f, 53.20001f, 768.39856f), 1192); + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.Interact, 1047976u, new Vector3(-56.992493f, 53.20001f, 768.39856f), 1192); obj56.Steps = list93; reference78 = obj56; - ref QuestSequence reference79 = ref span38[3]; + num++; + ref QuestSequence reference79 = ref span88[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1047981u, new Vector3(-184.06964f, 37.39f, 57.75537f), 1192); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.Interact, 1047981u, new Vector3(-184.06964f, 37.39f, 57.75537f), 1192); obj57.Steps = list94; reference79 = obj57; - ref QuestSequence reference80 = ref span38[4]; + num++; + ref QuestSequence reference80 = ref span88[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -346906,7 +421586,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047986u, new Vector3(-242.237f, 31f, -68.40625f), 1192); + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047986u, new Vector3(-242.237f, 31f, -68.40625f), 1192); obj58.Steps = list95; reference80 = obj58; questRoot7.QuestSequence = list88; @@ -346916,24 +421598,30 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + span96[index] = "liza"; questRoot8.Author = list96; - num = 5; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span40 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference81 = ref span40[0]; + index = 5; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + Span span97 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference81 = ref span97[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047986u, new Vector3(-242.237f, 31f, -68.40625f), 1192); + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047986u, new Vector3(-242.237f, 31f, -68.40625f), 1192); obj59.Steps = list98; reference81 = obj59; - ref QuestSequence reference82 = ref span40[1]; + num++; + ref QuestSequence reference82 = ref span97[num]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -346941,99 +421629,139 @@ public static class AssemblyQuestLoader num2 = 6; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span41 = CollectionsMarshal.AsSpan(list99); - ref QuestStep reference83 = ref span41[0]; + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + ref QuestStep reference83 = ref span99[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1047991u, new Vector3(-208.72821f, 30.49966f, -177.01996f), 1192); num3 = 6; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - Span span42 = CollectionsMarshal.AsSpan(list100); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span100 = CollectionsMarshal.AsSpan(list100); + index3 = 0; + span100[index3] = null; + index3++; + span100[index3] = null; + index3++; + span100[index3] = null; + index3++; + span100[index3] = null; + index3++; + span100[index3] = null; + index3++; + span100[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list100; reference83 = questStep23; - ref QuestStep reference84 = ref span41[1]; + index2++; + ref QuestStep reference84 = ref span99[index2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 2013788u, new Vector3(-202.86877f, 29.984009f, -229.29736f), 1192); - num3 = 6; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span43 = CollectionsMarshal.AsSpan(list101); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list101 = new List(index3); + CollectionsMarshal.SetCount(list101, index3); + Span span101 = CollectionsMarshal.AsSpan(list101); + num3 = 0; + span101[num3] = null; + num3++; + span101[num3] = null; + num3++; + span101[num3] = null; + num3++; + span101[num3] = null; + num3++; + span101[num3] = null; + num3++; + span101[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list101; reference84 = questStep24; - ref QuestStep reference85 = ref span41[2]; + index2++; + ref QuestStep reference85 = ref span99[index2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1047992u, new Vector3(-255.23767f, 31.341942f, -365.74353f), 1192); num3 = 6; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span44 = CollectionsMarshal.AsSpan(list102); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span102 = CollectionsMarshal.AsSpan(list102); + index3 = 0; + span102[index3] = null; + index3++; + span102[index3] = null; + index3++; + span102[index3] = null; + index3++; + span102[index3] = null; + index3++; + span102[index3] = null; + index3++; + span102[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list102; reference85 = questStep25; - ref QuestStep reference86 = ref span41[3]; + index2++; + ref QuestStep reference86 = ref span99[index2]; QuestStep obj61 = new QuestStep(EInteractionType.Interact, 2013789u, new Vector3(-286.97644f, 29.984009f, -335.74432f), 1192) { DisableNavmesh = true, Mount = true }; - num3 = 6; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - Span span45 = CollectionsMarshal.AsSpan(list103); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list103 = new List(index3); + CollectionsMarshal.SetCount(list103, index3); + Span span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); obj61.CompletionQuestVariablesFlags = list103; reference86 = obj61; - span41[4] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1192) + index2++; + span99[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1192) { Aetheryte = EAetheryteLocation.LivingMemoryLeynodeAero }; - ref QuestStep reference87 = ref span41[5]; + index2++; + ref QuestStep reference87 = ref span99[index2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1047993u, new Vector3(-281.91046f, 54.31037f, -412.2835f), 1192); num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span46 = CollectionsMarshal.AsSpan(list104); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span104 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list104; reference87 = questStep26; obj60.Steps = list99; reference82 = obj60; - ref QuestSequence reference88 = ref span40[2]; + num++; + ref QuestSequence reference88 = ref span97[num]; QuestSequence obj62 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1047994u, new Vector3(-247.7608f, 30.999998f, -71.27496f), 1192); + index2 = 1; + List list105 = new List(index2); + CollectionsMarshal.SetCount(list105, index2); + Span span105 = CollectionsMarshal.AsSpan(list105); + num2 = 0; + span105[num2] = new QuestStep(EInteractionType.Interact, 1047994u, new Vector3(-247.7608f, 30.999998f, -71.27496f), 1192); obj62.Steps = list105; reference88 = obj62; - ref QuestSequence reference89 = ref span40[3]; + num++; + ref QuestSequence reference89 = ref span97[num]; QuestSequence obj63 = new QuestSequence { Sequence = 3 @@ -347041,25 +421769,30 @@ public static class AssemblyQuestLoader num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span47 = CollectionsMarshal.AsSpan(list106); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.89844f, 30.099947f, -84.85613f), 1192); - span47[1] = new QuestStep(EInteractionType.Interact, 2013790u, new Vector3(-333.9132f, 33.951294f, -132.79932f), 1192); + Span span106 = CollectionsMarshal.AsSpan(list106); + index2 = 0; + span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.89844f, 30.099947f, -84.85613f), 1192); + index2++; + span106[index2] = new QuestStep(EInteractionType.Interact, 2013790u, new Vector3(-333.9132f, 33.951294f, -132.79932f), 1192); obj63.Steps = list106; reference89 = obj63; - ref QuestSequence reference90 = ref span40[4]; + num++; + ref QuestSequence reference90 = ref span97[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - Span span48 = CollectionsMarshal.AsSpan(list107); - span48[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013983u, new Vector3(-484.18402f, 37.979614f, -50.003845f), 1192) + index2 = 2; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013983u, new Vector3(-484.18402f, 37.979614f, -50.003845f), 1192) { AetherCurrentId = 2818488u }; - span48[1] = new QuestStep(EInteractionType.CompleteQuest, 1047999u, new Vector3(-521.0803f, -10.000387f, -445.76184f), 1192) + num2++; + span107[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047999u, new Vector3(-521.0803f, -10.000387f, -445.76184f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeAero }; @@ -347072,13 +421805,16 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; + Span span108 = CollectionsMarshal.AsSpan(list108); + index = 0; + span108[index] = "liza"; questRoot9.Author = list108; - num = 6; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span49 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference91 = ref span49[0]; + index = 6; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + Span span109 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference91 = ref span109[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -347086,26 +421822,33 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047999u, new Vector3(-521.0803f, -10.000387f, -445.76184f), 1192); + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047999u, new Vector3(-521.0803f, -10.000387f, -445.76184f), 1192); obj65.Steps = list110; reference91 = obj65; - ref QuestSequence reference92 = ref span49[1]; + num++; + ref QuestSequence reference92 = ref span109[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list111)[0]; + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + ref QuestStep reference93 = ref span111[num2]; QuestStep obj67 = new QuestStep(EInteractionType.Interact, 1048004u, new Vector3(-523.03357f, -10.000407f, -445.57874f), 1192) { StopDistance = 7f }; - num3 = 1; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - CollectionsMarshal.AsSpan(list112)[0] = new DialogueChoice + index3 = 1; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + Span span112 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span112[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF113_04958_SYSTEM_000_031") @@ -347114,7 +421857,8 @@ public static class AssemblyQuestLoader reference93 = obj67; obj66.Steps = list111; reference92 = obj66; - ref QuestSequence reference94 = ref span49[2]; + num++; + ref QuestSequence reference94 = ref span109[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -347122,29 +421866,35 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1048008u, new Vector3(-528.58777f, -10.000336f, -466.97186f), 1192) + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.Interact, 1048008u, new Vector3(-528.58777f, -10.000336f, -466.97186f), 1192) { StopDistance = 5f }; obj68.Steps = list113; reference94 = obj68; - ref QuestSequence reference95 = ref span49[3]; + num++; + ref QuestSequence reference95 = ref span109[num]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span50 = CollectionsMarshal.AsSpan(list114); - span50[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013980u, new Vector3(-559.5941f, -6.0273438f, -508.53745f), 1192) + index2 = 2; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013980u, new Vector3(-559.5941f, -6.0273438f, -508.53745f), 1192) { AetherCurrentId = 2818482u }; - span50[1] = new QuestStep(EInteractionType.Interact, 1048009u, new Vector3(-485.86255f, 7.300079f, -705.4398f), 1192); + num2++; + span114[num2] = new QuestStep(EInteractionType.Interact, 1048009u, new Vector3(-485.86255f, 7.300079f, -705.4398f), 1192); obj69.Steps = list114; reference95 = obj69; - ref QuestSequence reference96 = ref span49[4]; + num++; + ref QuestSequence reference96 = ref span109[num]; QuestSequence obj70 = new QuestSequence { Sequence = 4 @@ -347152,12 +421902,16 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list115)[0]; + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + ref QuestStep reference97 = ref span115[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1048011u, new Vector3(-500.51117f, 18.990517f, -839.353f), 1192); num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - CollectionsMarshal.AsSpan(list116)[0] = new DialogueChoice + Span span116 = CollectionsMarshal.AsSpan(list116); + index3 = 0; + span116[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF113_04958_SYSTEM_000_124") @@ -347166,15 +421920,18 @@ public static class AssemblyQuestLoader reference97 = questStep27; obj70.Steps = list115; reference96 = obj70; - ref QuestSequence reference98 = ref span49[5]; + num++; + ref QuestSequence reference98 = ref span109[num]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048011u, new Vector3(-500.51117f, 18.990517f, -839.353f), 1192) + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048011u, new Vector3(-500.51117f, 18.990517f, -839.353f), 1192) { StopDistance = 5f }; @@ -347187,13 +421944,16 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "liza"; questRoot10.Author = list118; - num = 7; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span51 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference99 = ref span51[0]; + index = 7; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference99 = ref span119[num]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -347201,22 +421961,26 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048011u, new Vector3(-500.51117f, 18.990517f, -839.353f), 1192) + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048011u, new Vector3(-500.51117f, 18.990517f, -839.353f), 1192) { StopDistance = 5f }; obj72.Steps = list120; reference99 = obj72; - ref QuestSequence reference100 = ref span51[1]; + num++; + ref QuestSequence reference100 = ref span119[num]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span52 = CollectionsMarshal.AsSpan(list121); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(3.7348669f, 50.12495f, 660.56006f), 1192) + index2 = 2; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span121[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(3.7348669f, 50.12495f, 660.56006f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, SkipConditions = new SkipConditions @@ -347227,13 +421991,15 @@ public static class AssemblyQuestLoader } } }; - span52[1] = new QuestStep(EInteractionType.Interact, 1048014u, new Vector3(-0.13739014f, 50.124947f, 363.05774f), 1192) + num2++; + span121[num2] = new QuestStep(EInteractionType.Interact, 1048014u, new Vector3(-0.13739014f, 50.124947f, 363.05774f), 1192) { Fly = true }; obj73.Steps = list121; reference100 = obj73; - ref QuestSequence reference101 = ref span51[2]; + num++; + ref QuestSequence reference101 = ref span119[num]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -347241,7 +422007,9 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Duty, null, null, 1192) + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.Duty, null, null, 1192) { DutyOptions = new DutyOptions { @@ -347251,19 +422019,23 @@ public static class AssemblyQuestLoader }; obj74.Steps = list122; reference101 = obj74; - span51[3] = new QuestSequence + num++; + span119[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference102 = ref span51[4]; + num++; + ref QuestSequence reference102 = ref span119[num]; QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Duty, null, null, 1221) + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span123[num2] = new QuestStep(EInteractionType.Duty, null, null, 1221) { DutyOptions = new DutyOptions { @@ -347272,11 +422044,13 @@ public static class AssemblyQuestLoader }; obj75.Steps = list123; reference102 = obj75; - span51[5] = new QuestSequence + num++; + span119[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference103 = ref span51[6]; + num++; + ref QuestSequence reference103 = ref span119[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue @@ -347284,7 +422058,9 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048022u, new Vector3(-160.7843f, -14.999356f, 204.42505f), 1185) + Span span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span124[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048022u, new Vector3(-160.7843f, -14.999356f, 204.42505f), 1185) { StopDistance = 7f }; @@ -347297,21 +422073,26 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - CollectionsMarshal.AsSpan(list125)[0] = "liza"; + Span span125 = CollectionsMarshal.AsSpan(list125); + index = 0; + span125[index] = "liza"; questRoot11.Author = list125; - num = 3; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span53 = CollectionsMarshal.AsSpan(list126); - ref QuestSequence reference104 = ref span53[0]; + index = 3; + List list126 = new List(index); + CollectionsMarshal.SetCount(list126, index); + Span span126 = CollectionsMarshal.AsSpan(list126); + num = 0; + ref QuestSequence reference104 = ref span126[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049786u, new Vector3(340.13867f, 50.75f, 231.37244f), 1186) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049786u, new Vector3(340.13867f, 50.75f, 231.37244f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -347329,7 +422110,8 @@ public static class AssemblyQuestLoader }; obj77.Steps = list127; reference104 = obj77; - ref QuestSequence reference105 = ref span53[1]; + num++; + ref QuestSequence reference105 = ref span126[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 @@ -347337,12 +422119,16 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - ref QuestStep reference106 = ref CollectionsMarshal.AsSpan(list128)[0]; + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + ref QuestStep reference106 = ref span128[index2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1049787u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186); - num3 = 1; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = new DialogueChoice + index3 = 1; + List list129 = new List(index3); + CollectionsMarshal.SetCount(list129, index3); + Span span129 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span129[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGRA101_04960_SYSTEM_100_030") @@ -347351,15 +422137,18 @@ public static class AssemblyQuestLoader reference106 = questStep28; obj78.Steps = list128; reference105 = obj78; - ref QuestSequence reference107 = ref span53[2]; + num++; + ref QuestSequence reference107 = ref span126[num]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049788u, new Vector3(1.6021729f, 0f, -6.088379f), 1224) + index2 = 1; + List list130 = new List(index2); + CollectionsMarshal.SetCount(list130, index2); + Span span130 = CollectionsMarshal.AsSpan(list130); + num2 = 0; + span130[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049788u, new Vector3(1.6021729f, 0f, -6.088379f), 1224) { StopDistance = 5f, NextQuestId = new QuestId(4961) @@ -347373,13 +422162,16 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - CollectionsMarshal.AsSpan(list131)[0] = "liza"; + Span span131 = CollectionsMarshal.AsSpan(list131); + index = 0; + span131[index] = "liza"; questRoot12.Author = list131; - num = 3; - List list132 = new List(num); - CollectionsMarshal.SetCount(list132, num); - Span span54 = CollectionsMarshal.AsSpan(list132); - ref QuestSequence reference108 = ref span54[0]; + index = 3; + List list132 = new List(index); + CollectionsMarshal.SetCount(list132, index); + Span span132 = CollectionsMarshal.AsSpan(list132); + num = 0; + ref QuestSequence reference108 = ref span132[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 @@ -347387,8 +422179,9 @@ public static class AssemblyQuestLoader num2 = 2; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span55 = CollectionsMarshal.AsSpan(list133); - ref QuestStep reference109 = ref span55[0]; + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + ref QuestStep reference109 = ref span133[index2]; QuestStep obj81 = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224, @@ -347404,7 +422197,9 @@ public static class AssemblyQuestLoader num3 = 1; List list134 = new List(num3); CollectionsMarshal.SetCount(list134, num3); - CollectionsMarshal.AsSpan(list134)[0] = 1224; + Span span134 = CollectionsMarshal.AsSpan(list134); + index3 = 0; + span134[index3] = 1224; skipStepConditions3.InTerritory = list134; skipStepConditions3.NearPosition = new NearPositionCondition { @@ -347414,29 +422209,35 @@ public static class AssemblyQuestLoader }; skipConditions5.StepIf = skipStepConditions3; SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - num3 = 1; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = 1224; + index3 = 1; + List list135 = new List(index3); + CollectionsMarshal.SetCount(list135, index3); + Span span135 = CollectionsMarshal.AsSpan(list135); + num3 = 0; + span135[num3] = 1224; skipAetheryteCondition4.InTerritory = list135; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition4; obj81.SkipConditions = skipConditions5; reference109 = obj81; - span55[1] = new QuestStep(EInteractionType.AcceptQuest, 1049788u, new Vector3(1.6021729f, 0f, -6.088379f), 1224) + index2++; + span133[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049788u, new Vector3(1.6021729f, 0f, -6.088379f), 1224) { StopDistance = 5f }; obj80.Steps = list133; reference108 = obj80; - ref QuestSequence reference110 = ref span54[1]; + num++; + ref QuestSequence reference110 = ref span132[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + index2 = 1; + List list136 = new List(index2); + CollectionsMarshal.SetCount(list136, index2); + Span span136 = CollectionsMarshal.AsSpan(list136); + num2 = 0; + span136[num2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -347445,7 +422246,8 @@ public static class AssemblyQuestLoader }; obj82.Steps = list136; reference110 = obj82; - ref QuestSequence reference111 = ref span54[2]; + num++; + ref QuestSequence reference111 = ref span132[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -347453,7 +422255,9 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050476u, new Vector3(0.1373291f, -3.3667622E-13f, -9.658997f), 1224) + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050476u, new Vector3(0.1373291f, -3.3667622E-13f, -9.658997f), 1224) { StopDistance = 7f, NextQuestId = new QuestId(4962) @@ -347467,27 +422271,33 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - CollectionsMarshal.AsSpan(list138)[0] = "liza"; + Span span138 = CollectionsMarshal.AsSpan(list138); + index = 0; + span138[index] = "liza"; questRoot13.Author = list138; - num = 4; - List list139 = new List(num); - CollectionsMarshal.SetCount(list139, num); - Span span56 = CollectionsMarshal.AsSpan(list139); - ref QuestSequence reference112 = ref span56[0]; + index = 4; + List list139 = new List(index); + CollectionsMarshal.SetCount(list139, index); + Span span139 = CollectionsMarshal.AsSpan(list139); + num = 0; + ref QuestSequence reference112 = ref span139[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050476u, new Vector3(0.1373291f, -3.3667622E-13f, -9.658997f), 1224) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050476u, new Vector3(0.1373291f, -3.3667622E-13f, -9.658997f), 1224) { StopDistance = 7f }; obj84.Steps = list140; reference112 = obj84; - ref QuestSequence reference113 = ref span56[1]; + num++; + ref QuestSequence reference113 = ref span139[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -347495,7 +422305,9 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -347504,21 +422316,25 @@ public static class AssemblyQuestLoader }; obj85.Steps = list141; reference113 = obj85; - ref QuestSequence reference114 = ref span56[2]; + num++; + ref QuestSequence reference114 = ref span139[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 1050476u, new Vector3(0.1373291f, -3.3667622E-13f, -9.658997f), 1224) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.Interact, 1050476u, new Vector3(0.1373291f, -3.3667622E-13f, -9.658997f), 1224) { StopDistance = 7f }; obj86.Steps = list142; reference114 = obj86; - ref QuestSequence reference115 = ref span56[3]; + num++; + ref QuestSequence reference115 = ref span139[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -347526,7 +422342,9 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) { StopDistance = 7f, NextQuestId = new QuestId(4963) @@ -347540,27 +422358,33 @@ public static class AssemblyQuestLoader num = 1; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - CollectionsMarshal.AsSpan(list144)[0] = "liza"; + Span span144 = CollectionsMarshal.AsSpan(list144); + index = 0; + span144[index] = "liza"; questRoot14.Author = list144; - num = 3; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - Span span57 = CollectionsMarshal.AsSpan(list145); - ref QuestSequence reference116 = ref span57[0]; + index = 3; + List list145 = new List(index); + CollectionsMarshal.SetCount(list145, index); + Span span145 = CollectionsMarshal.AsSpan(list145); + num = 0; + ref QuestSequence reference116 = ref span145[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) { StopDistance = 7f }; obj88.Steps = list146; reference116 = obj88; - ref QuestSequence reference117 = ref span57[1]; + num++; + ref QuestSequence reference117 = ref span145[num]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -347568,22 +422392,26 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { StopDistance = 5f }; obj89.Steps = list147; reference117 = obj89; - ref QuestSequence reference118 = ref span57[2]; + num++; + ref QuestSequence reference118 = ref span145[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - Span span58 = CollectionsMarshal.AsSpan(list148); - span58[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) + index2 = 2; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224, AethernetShortcut = new AethernetShortcut @@ -347592,7 +422420,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTheArcadion } }; - span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1049789u, new Vector3(2.3651123f, -4.334177E-12f, -14.206177f), 1224) + num2++; + span148[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049789u, new Vector3(2.3651123f, -4.334177E-12f, -14.206177f), 1224) { StopDistance = 7f, NextQuestId = new QuestId(4964) @@ -347606,13 +422435,16 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "liza"; + Span span149 = CollectionsMarshal.AsSpan(list149); + index = 0; + span149[index] = "liza"; questRoot15.Author = list149; - num = 4; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span59 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference119 = ref span59[0]; + index = 4; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + Span span150 = CollectionsMarshal.AsSpan(list150); + num = 0; + ref QuestSequence reference119 = ref span150[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -347620,21 +422452,26 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049789u, new Vector3(2.3651123f, -4.334177E-12f, -14.206177f), 1224) + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049789u, new Vector3(2.3651123f, -4.334177E-12f, -14.206177f), 1224) { StopDistance = 7f }; obj91.Steps = list151; reference119 = obj91; - ref QuestSequence reference120 = ref span59[1]; + num++; + ref QuestSequence reference120 = ref span150[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -347643,7 +422480,8 @@ public static class AssemblyQuestLoader }; obj92.Steps = list152; reference120 = obj92; - ref QuestSequence reference121 = ref span59[2]; + num++; + ref QuestSequence reference121 = ref span150[num]; QuestSequence obj93 = new QuestSequence { Sequence = 2 @@ -347651,21 +422489,26 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.Interact, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) { StopDistance = 7f }; obj93.Steps = list153; reference121 = obj93; - ref QuestSequence reference122 = ref span59[3]; + num++; + ref QuestSequence reference122 = ref span150[num]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) { StopDistance = 7f, NextQuestId = new QuestId(4965) @@ -347679,13 +422522,16 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "liza"; + Span span155 = CollectionsMarshal.AsSpan(list155); + index = 0; + span155[index] = "liza"; questRoot16.Author = list155; - num = 5; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span60 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference123 = ref span60[0]; + index = 5; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + Span span156 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference123 = ref span156[num]; QuestSequence obj95 = new QuestSequence { Sequence = 0 @@ -347693,21 +422539,26 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049792u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049792u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) { StopDistance = 7f }; obj95.Steps = list157; reference123 = obj95; - ref QuestSequence reference124 = ref span60[1]; + num++; + ref QuestSequence reference124 = ref span156[num]; QuestSequence obj96 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + index2 = 1; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + span158[num2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -347716,7 +422567,8 @@ public static class AssemblyQuestLoader }; obj96.Steps = list158; reference124 = obj96; - ref QuestSequence reference125 = ref span60[2]; + num++; + ref QuestSequence reference125 = ref span156[num]; QuestSequence obj97 = new QuestSequence { Sequence = 2 @@ -347724,26 +422576,31 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.Interact, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) { StopDistance = 7f }; obj97.Steps = list159; reference125 = obj97; - ref QuestSequence reference126 = ref span60[3]; + num++; + ref QuestSequence reference126 = ref span156[num]; QuestSequence obj98 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span61 = CollectionsMarshal.AsSpan(list160); - span61[0] = new QuestStep(EInteractionType.Interact, 2013722u, new Vector3(-0.07635498f, 1.0527954f, 8.102478f), 1224) + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.Interact, 2013722u, new Vector3(-0.07635498f, 1.0527954f, 8.102478f), 1224) { TargetTerritoryId = (ushort)1186 }; - span61[1] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + num2++; + span160[num2] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -347753,7 +422610,8 @@ public static class AssemblyQuestLoader }; obj98.Steps = list160; reference126 = obj98; - ref QuestSequence reference127 = ref span60[4]; + num++; + ref QuestSequence reference127 = ref span156[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -347761,7 +422619,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { NextQuestId = new QuestId(5289) }; @@ -347774,24 +422634,30 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - CollectionsMarshal.AsSpan(list162)[0] = "liza"; + Span span162 = CollectionsMarshal.AsSpan(list162); + index = 0; + span162[index] = "liza"; questRoot17.Author = list162; - num = 2; - List list163 = new List(num); - CollectionsMarshal.SetCount(list163, num); - Span span62 = CollectionsMarshal.AsSpan(list163); - ref QuestSequence reference128 = ref span62[0]; + index = 2; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + Span span163 = CollectionsMarshal.AsSpan(list163); + num = 0; + ref QuestSequence reference128 = ref span163[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list164 = new List(num2); - CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); + index2 = 1; + List list164 = new List(index2); + CollectionsMarshal.SetCount(list164, index2); + Span span164 = CollectionsMarshal.AsSpan(list164); + num2 = 0; + span164[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); obj100.Steps = list164; reference128 = obj100; - ref QuestSequence reference129 = ref span62[1]; + num++; + ref QuestSequence reference129 = ref span163[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -347799,7 +422665,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); obj101.Steps = list165; reference129 = obj101; questRoot17.QuestSequence = list163; @@ -347809,24 +422677,30 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "plogon_enjoyer"; + Span span166 = CollectionsMarshal.AsSpan(list166); + index = 0; + span166[index] = "plogon_enjoyer"; questRoot18.Author = list166; - num = 12; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - Span span63 = CollectionsMarshal.AsSpan(list167); - ref QuestSequence reference130 = ref span63[0]; + index = 12; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + Span span167 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference130 = ref span167[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); obj102.Steps = list168; reference130 = obj102; - ref QuestSequence reference131 = ref span63[1]; + num++; + ref QuestSequence reference131 = ref span167[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -347834,7 +422708,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 2014440u, new Vector3(-100.23657f, -19.882507f, 211.13904f), 1185) + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.Interact, 2014440u, new Vector3(-100.23657f, -19.882507f, 211.13904f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -347844,18 +422720,22 @@ public static class AssemblyQuestLoader }; obj103.Steps = list169; reference131 = obj103; - ref QuestSequence reference132 = ref span63[2]; + num++; + ref QuestSequence reference132 = ref span167[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1052476u, new Vector3(-100.175476f, -19.798239f, 209.73523f), 1185); + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.Interact, 1052476u, new Vector3(-100.175476f, -19.798239f, 209.73523f), 1185); obj104.Steps = list170; reference132 = obj104; - ref QuestSequence reference133 = ref span63[3]; + num++; + ref QuestSequence reference133 = ref span167[num]; QuestSequence obj105 = new QuestSequence { Sequence = 3 @@ -347863,12 +422743,16 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list171)[0]; + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + ref QuestStep reference134 = ref span171[index2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1047183u, new Vector3(-194.93408f, 28f, -553.1548f), 1191); num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = new DialogueChoice + Span span172 = CollectionsMarshal.AsSpan(list172); + index3 = 0; + span172[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGLZ001_04967_Q2_000_000"), @@ -347878,26 +422762,30 @@ public static class AssemblyQuestLoader reference134 = questStep29; obj105.Steps = list171; reference133 = obj105; - ref QuestSequence reference135 = ref span63[4]; + num++; + ref QuestSequence reference135 = ref span167[num]; QuestSequence obj106 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - Span span64 = CollectionsMarshal.AsSpan(list173); - span64[0] = new QuestStep(EInteractionType.Interact, 1047173u, new Vector3(-283.0396f, 37.000023f, -573.7545f), 1191) + index2 = 2; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.Interact, 1047173u, new Vector3(-283.0396f, 37.000023f, -573.7545f), 1191) { Fly = true }; - span64[1] = new QuestStep(EInteractionType.Interact, 1047174u, new Vector3(-138.35364f, 42.999657f, -663.2639f), 1191) + num2++; + span173[num2] = new QuestStep(EInteractionType.Interact, 1047174u, new Vector3(-138.35364f, 42.999657f, -663.2639f), 1191) { Fly = true }; obj106.Steps = list173; reference135 = obj106; - ref QuestSequence reference136 = ref span63[5]; + num++; + ref QuestSequence reference136 = ref span167[num]; QuestSequence obj107 = new QuestSequence { Sequence = 5 @@ -347905,7 +422793,9 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.Interact, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -347916,15 +422806,18 @@ public static class AssemblyQuestLoader }; obj107.Steps = list174; reference136 = obj107; - ref QuestSequence reference137 = ref span63[6]; + num++; + ref QuestSequence reference137 = ref span167[num]; QuestSequence obj108 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1047177u, new Vector3(-272.54144f, -9.063631E-06f, 143.57214f), 1185) + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.Interact, 1047177u, new Vector3(-272.54144f, -9.063631E-06f, 143.57214f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -347934,7 +422827,8 @@ public static class AssemblyQuestLoader }; obj108.Steps = list175; reference137 = obj108; - ref QuestSequence reference138 = ref span63[7]; + num++; + ref QuestSequence reference138 = ref span167[num]; QuestSequence obj109 = new QuestSequence { Sequence = 7 @@ -347942,7 +422836,9 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1047179u, new Vector3(109.147705f, 42f, -353.29218f), 1185) + Span span176 = CollectionsMarshal.AsSpan(list176); + index2 = 0; + span176[index2] = new QuestStep(EInteractionType.Interact, 1047179u, new Vector3(109.147705f, 42f, -353.29218f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -347952,15 +422848,18 @@ public static class AssemblyQuestLoader }; obj109.Steps = list176; reference138 = obj109; - ref QuestSequence reference139 = ref span63[8]; + num++; + ref QuestSequence reference139 = ref span167[num]; QuestSequence obj110 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1047133u, new Vector3(180.37683f, -13.99f, 1.9073486f), 1185) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.Interact, 1047133u, new Vector3(180.37683f, -13.99f, 1.9073486f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -347970,7 +422869,8 @@ public static class AssemblyQuestLoader }; obj110.Steps = list177; reference139 = obj110; - ref QuestSequence reference140 = ref span63[9]; + num++; + ref QuestSequence reference140 = ref span167[num]; QuestSequence obj111 = new QuestSequence { Sequence = 9 @@ -347978,26 +422878,34 @@ public static class AssemblyQuestLoader num2 = 3; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span65 = CollectionsMarshal.AsSpan(list178); - span65[0] = new QuestStep(EInteractionType.Interact, 2014437u, new Vector3(166.8269f, -14.023071f, 3.2807007f), 1185); - span65[1] = new QuestStep(EInteractionType.Interact, 2014438u, new Vector3(203.05176f, -14.023071f, 11.642578f), 1185); - span65[2] = new QuestStep(EInteractionType.Interact, 2014439u, new Vector3(232.95947f, -14.023071f, -9.99469f), 1185); + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.Interact, 2014437u, new Vector3(166.8269f, -14.023071f, 3.2807007f), 1185); + index2++; + span178[index2] = new QuestStep(EInteractionType.Interact, 2014438u, new Vector3(203.05176f, -14.023071f, 11.642578f), 1185); + index2++; + span178[index2] = new QuestStep(EInteractionType.Interact, 2014439u, new Vector3(232.95947f, -14.023071f, -9.99469f), 1185); obj111.Steps = list178; reference140 = obj111; - ref QuestSequence reference141 = ref span63[10]; + num++; + ref QuestSequence reference141 = ref span167[num]; QuestSequence obj112 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list179)[0]; + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + ref QuestStep reference142 = ref span179[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); - num3 = 1; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - CollectionsMarshal.AsSpan(list180)[0] = new DialogueChoice + index3 = 1; + List list180 = new List(index3); + CollectionsMarshal.SetCount(list180, index3); + Span span180 = CollectionsMarshal.AsSpan(list180); + num3 = 0; + span180[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGLZ001_04967_Q3_000_302") @@ -348006,7 +422914,8 @@ public static class AssemblyQuestLoader reference142 = questStep30; obj112.Steps = list179; reference141 = obj112; - ref QuestSequence reference143 = ref span63[11]; + num++; + ref QuestSequence reference143 = ref span167[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -348014,7 +422923,9 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span181[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); obj113.Steps = list181; reference143 = obj113; questRoot18.QuestSequence = list167; @@ -348024,24 +422935,30 @@ public static class AssemblyQuestLoader num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - CollectionsMarshal.AsSpan(list182)[0] = "liza"; + Span span182 = CollectionsMarshal.AsSpan(list182); + index = 0; + span182[index] = "liza"; questRoot19.Author = list182; - num = 2; - List list183 = new List(num); - CollectionsMarshal.SetCount(list183, num); - Span span66 = CollectionsMarshal.AsSpan(list183); - ref QuestSequence reference144 = ref span66[0]; + index = 2; + List list183 = new List(index); + CollectionsMarshal.SetCount(list183, index); + Span span183 = CollectionsMarshal.AsSpan(list183); + num = 0; + ref QuestSequence reference144 = ref span183[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047151u, new Vector3(130.2052f, -14f, 16.952698f), 1185); + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span184[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047151u, new Vector3(130.2052f, -14f, 16.952698f), 1185); obj114.Steps = list184; reference144 = obj114; - ref QuestSequence reference145 = ref span66[1]; + num++; + ref QuestSequence reference145 = ref span183[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -348049,7 +422966,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047164u, new Vector3(217.21204f, -14f, -8.316223f), 1185) + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047164u, new Vector3(217.21204f, -14f, -8.316223f), 1185) { NextQuestId = new QuestId(4990) }; @@ -348062,24 +422981,30 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "liza"; + Span span186 = CollectionsMarshal.AsSpan(list186); + index = 0; + span186[index] = "liza"; questRoot20.Author = list186; - num = 2; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span67 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference146 = ref span67[0]; + index = 2; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + Span span187 = CollectionsMarshal.AsSpan(list187); + num = 0; + ref QuestSequence reference146 = ref span187[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + Span span188 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span188[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); obj116.Steps = list188; reference146 = obj116; - ref QuestSequence reference147 = ref span67[1]; + num++; + ref QuestSequence reference147 = ref span187[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -348087,13 +423012,16 @@ public static class AssemblyQuestLoader num2 = 2; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span68 = CollectionsMarshal.AsSpan(list189); - ref QuestStep reference148 = ref span68[0]; + Span span189 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + ref QuestStep reference148 = ref span189[index2]; QuestStep questStep31 = new QuestStep(EInteractionType.Gather, null, null, 1185); num3 = 1; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - CollectionsMarshal.AsSpan(list190)[0] = new GatheredItem + Span span190 = CollectionsMarshal.AsSpan(list190); + index3 = 0; + span190[index3] = new GatheredItem { ItemId = 43899u, ItemCount = 6, @@ -348101,7 +423029,8 @@ public static class AssemblyQuestLoader }; questStep31.ItemsToGather = list190; reference148 = questStep31; - span68[1] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) + index2++; + span189[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -348120,24 +423049,30 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "liza"; + Span span191 = CollectionsMarshal.AsSpan(list191); + index = 0; + span191[index] = "liza"; questRoot21.Author = list191; - num = 2; - List list192 = new List(num); - CollectionsMarshal.SetCount(list192, num); - Span span69 = CollectionsMarshal.AsSpan(list192); - ref QuestSequence reference149 = ref span69[0]; + index = 2; + List list192 = new List(index); + CollectionsMarshal.SetCount(list192, index); + Span span192 = CollectionsMarshal.AsSpan(list192); + num = 0; + ref QuestSequence reference149 = ref span192[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); obj118.Steps = list193; reference149 = obj118; - ref QuestSequence reference150 = ref span69[1]; + num++; + ref QuestSequence reference150 = ref span192[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue @@ -348145,13 +423080,16 @@ public static class AssemblyQuestLoader num2 = 2; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span70 = CollectionsMarshal.AsSpan(list194); - ref QuestStep reference151 = ref span70[0]; + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + ref QuestStep reference151 = ref span194[index2]; QuestStep questStep32 = new QuestStep(EInteractionType.Gather, null, null, 1185); - num3 = 1; - List list195 = new List(num3); - CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = new GatheredItem + index3 = 1; + List list195 = new List(index3); + CollectionsMarshal.SetCount(list195, index3); + Span span195 = CollectionsMarshal.AsSpan(list195); + num3 = 0; + span195[num3] = new GatheredItem { ItemId = 43900u, ItemCount = 6, @@ -348159,7 +423097,8 @@ public static class AssemblyQuestLoader }; questStep32.ItemsToGather = list195; reference151 = questStep32; - span70[1] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) + index2++; + span194[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -348178,24 +423117,30 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - CollectionsMarshal.AsSpan(list196)[0] = "liza"; + Span span196 = CollectionsMarshal.AsSpan(list196); + index = 0; + span196[index] = "liza"; questRoot22.Author = list196; - num = 2; - List list197 = new List(num); - CollectionsMarshal.SetCount(list197, num); - Span span71 = CollectionsMarshal.AsSpan(list197); - ref QuestSequence reference152 = ref span71[0]; + index = 2; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + Span span197 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference152 = ref span197[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + index2 = 1; + List list198 = new List(index2); + CollectionsMarshal.SetCount(list198, index2); + Span span198 = CollectionsMarshal.AsSpan(list198); + num2 = 0; + span198[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); obj120.Steps = list198; reference152 = obj120; - ref QuestSequence reference153 = ref span71[1]; + num++; + ref QuestSequence reference153 = ref span197[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue @@ -348203,13 +423148,16 @@ public static class AssemblyQuestLoader num2 = 2; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span72 = CollectionsMarshal.AsSpan(list199); - ref QuestStep reference154 = ref span72[0]; + Span span199 = CollectionsMarshal.AsSpan(list199); + index2 = 0; + ref QuestStep reference154 = ref span199[index2]; QuestStep questStep33 = new QuestStep(EInteractionType.Gather, null, null, 1185); num3 = 1; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - CollectionsMarshal.AsSpan(list200)[0] = new GatheredItem + Span span200 = CollectionsMarshal.AsSpan(list200); + index3 = 0; + span200[index3] = new GatheredItem { ItemId = 43901u, ItemCount = 6, @@ -348217,7 +423165,8 @@ public static class AssemblyQuestLoader }; questStep33.ItemsToGather = list200; reference154 = questStep33; - span72[1] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) + index2++; + span199[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -348236,24 +423185,30 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "liza"; + Span span201 = CollectionsMarshal.AsSpan(list201); + index = 0; + span201[index] = "liza"; questRoot23.Author = list201; - num = 3; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span73 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference155 = ref span73[0]; + index = 3; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + Span span202 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference155 = ref span202[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); obj122.Steps = list203; reference155 = obj122; - ref QuestSequence reference156 = ref span73[1]; + num++; + ref QuestSequence reference156 = ref span202[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 @@ -348261,7 +423216,9 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1047153u, new Vector3(-270.4662f, 40.0732f, -12.253052f), 1185) + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span204[index2] = new QuestStep(EInteractionType.Interact, 1047153u, new Vector3(-270.4662f, 40.0732f, -12.253052f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -348271,28 +423228,33 @@ public static class AssemblyQuestLoader }; obj123.Steps = list204; reference156 = obj123; - ref QuestSequence reference157 = ref span73[2]; + num++; + ref QuestSequence reference157 = ref span202[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - Span span74 = CollectionsMarshal.AsSpan(list205); - ref QuestStep reference158 = ref span74[0]; + index2 = 2; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + Span span205 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + ref QuestStep reference158 = ref span205[num2]; QuestStep questStep34 = new QuestStep(EInteractionType.Gather, null, null, 1185); - num3 = 1; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = new GatheredItem + index3 = 1; + List list206 = new List(index3); + CollectionsMarshal.SetCount(list206, index3); + Span span206 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span206[num3] = new GatheredItem { ItemId = 43913u, ItemCount = 1 }; questStep34.ItemsToGather = list206; reference158 = questStep34; - span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) + num2++; + span205[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -348311,13 +423273,16 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "liza"; + Span span207 = CollectionsMarshal.AsSpan(list207); + index = 0; + span207[index] = "liza"; questRoot24.Author = list207; - num = 2; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span75 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference159 = ref span75[0]; + index = 2; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + Span span208 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference159 = ref span208[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -348325,24 +423290,30 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); obj125.Steps = list209; reference159 = obj125; - ref QuestSequence reference160 = ref span75[1]; + num++; + ref QuestSequence reference160 = ref span208[num]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - Span span76 = CollectionsMarshal.AsSpan(list210); - ref QuestStep reference161 = ref span76[0]; + index2 = 2; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + ref QuestStep reference161 = ref span210[num2]; QuestStep questStep35 = new QuestStep(EInteractionType.Gather, null, null, 1185); num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new GatheredItem + Span span211 = CollectionsMarshal.AsSpan(list211); + index3 = 0; + span211[index3] = new GatheredItem { ItemId = 43902u, ItemCount = 6, @@ -348350,7 +423321,8 @@ public static class AssemblyQuestLoader }; questStep35.ItemsToGather = list211; reference161 = questStep35; - span76[1] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) + num2++; + span210[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -348369,13 +423341,16 @@ public static class AssemblyQuestLoader num = 1; List list212 = new List(num); CollectionsMarshal.SetCount(list212, num); - CollectionsMarshal.AsSpan(list212)[0] = "liza"; + Span span212 = CollectionsMarshal.AsSpan(list212); + index = 0; + span212[index] = "liza"; questRoot25.Author = list212; - num = 9; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - Span span77 = CollectionsMarshal.AsSpan(list213); - ref QuestSequence reference162 = ref span77[0]; + index = 9; + List list213 = new List(index); + CollectionsMarshal.SetCount(list213, index); + Span span213 = CollectionsMarshal.AsSpan(list213); + num = 0; + ref QuestSequence reference162 = ref span213[num]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -348383,24 +423358,30 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); obj127.Steps = list214; reference162 = obj127; - ref QuestSequence reference163 = ref span77[1]; + num++; + ref QuestSequence reference163 = ref span213[num]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1047155u, new Vector3(746.24243f, -133.18861f, 507.5608f), 1189) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.Interact, 1047155u, new Vector3(746.24243f, -133.18861f, 507.5608f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook }; obj128.Steps = list215; reference163 = obj128; - ref QuestSequence reference164 = ref span77[2]; + num++; + ref QuestSequence reference164 = ref span213[num]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -348408,25 +423389,33 @@ public static class AssemblyQuestLoader num2 = 4; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span78 = CollectionsMarshal.AsSpan(list216); - ref QuestStep reference165 = ref span78[0]; + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + ref QuestStep reference165 = ref span216[index2]; QuestStep obj130 = new QuestStep(EInteractionType.Interact, 1048981u, new Vector3(686.51855f, -137.174f, 534.8745f), 1189) { Fly = true }; - num3 = 6; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - Span span79 = CollectionsMarshal.AsSpan(list217); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list217 = new List(index3); + CollectionsMarshal.SetCount(list217, index3); + Span span217 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = null; + num3++; + span217[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj130.CompletionQuestVariablesFlags = list217; reference165 = obj130; - ref QuestStep reference166 = ref span78[1]; + index2++; + ref QuestStep reference166 = ref span216[index2]; QuestStep obj131 = new QuestStep(EInteractionType.Interact, 1048973u, new Vector3(661.86f, -135.17876f, 582.11633f), 1189) { StopDistance = 4f @@ -348434,72 +423423,101 @@ public static class AssemblyQuestLoader num3 = 6; List list218 = new List(num3); CollectionsMarshal.SetCount(list218, num3); - Span span80 = CollectionsMarshal.AsSpan(list218); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span218 = CollectionsMarshal.AsSpan(list218); + index3 = 0; + span218[index3] = null; + index3++; + span218[index3] = null; + index3++; + span218[index3] = null; + index3++; + span218[index3] = null; + index3++; + span218[index3] = null; + index3++; + span218[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj131.CompletionQuestVariablesFlags = list218; reference166 = obj131; - ref QuestStep reference167 = ref span78[2]; + index2++; + ref QuestStep reference167 = ref span216[index2]; QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 1047156u, new Vector3(632.5017f, -137.17401f, 590.8445f), 1189); - num3 = 6; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - Span span81 = CollectionsMarshal.AsSpan(list219); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list219 = new List(index3); + CollectionsMarshal.SetCount(list219, index3); + Span span219 = CollectionsMarshal.AsSpan(list219); + num3 = 0; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = null; + num3++; + span219[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep36.CompletionQuestVariablesFlags = list219; reference167 = questStep36; - ref QuestStep reference168 = ref span78[3]; + index2++; + ref QuestStep reference168 = ref span216[index2]; QuestStep questStep37 = new QuestStep(EInteractionType.Interact, 1048974u, new Vector3(621.51514f, -135.12726f, 531.1207f), 1189); num3 = 6; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - Span span82 = CollectionsMarshal.AsSpan(list220); - span82[0] = null; - span82[1] = null; - span82[2] = null; - span82[3] = null; - span82[4] = null; - span82[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span220 = CollectionsMarshal.AsSpan(list220); + index3 = 0; + span220[index3] = null; + index3++; + span220[index3] = null; + index3++; + span220[index3] = null; + index3++; + span220[index3] = null; + index3++; + span220[index3] = null; + index3++; + span220[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep37.CompletionQuestVariablesFlags = list220; reference168 = questStep37; obj129.Steps = list216; reference164 = obj129; - ref QuestSequence reference169 = ref span77[3]; + num++; + ref QuestSequence reference169 = ref span213[num]; QuestSequence obj132 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - Span span83 = CollectionsMarshal.AsSpan(list221); - ref QuestStep reference170 = ref span83[0]; + index2 = 2; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + ref QuestStep reference170 = ref span221[num2]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 1047158u, new Vector3(539.69617f, -142.49185f, 481.65088f), 1189) { Fly = true }; - num3 = 6; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - Span span84 = CollectionsMarshal.AsSpan(list222); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list222 = new List(index3); + CollectionsMarshal.SetCount(list222, index3); + Span span222 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span222[num3] = null; + num3++; + span222[num3] = null; + num3++; + span222[num3] = null; + num3++; + span222[num3] = null; + num3++; + span222[num3] = null; + num3++; + span222[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj133.CompletionQuestVariablesFlags = list222; reference170 = obj133; - ref QuestStep reference171 = ref span83[1]; + num2++; + ref QuestStep reference171 = ref span221[num2]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 1047157u, new Vector3(586.26685f, -142.4984f, 462.97388f), 1189) { Fly = true @@ -348507,18 +423525,25 @@ public static class AssemblyQuestLoader num3 = 6; List list223 = new List(num3); CollectionsMarshal.SetCount(list223, num3); - Span span85 = CollectionsMarshal.AsSpan(list223); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span223 = CollectionsMarshal.AsSpan(list223); + index3 = 0; + span223[index3] = null; + index3++; + span223[index3] = null; + index3++; + span223[index3] = null; + index3++; + span223[index3] = null; + index3++; + span223[index3] = null; + index3++; + span223[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj134.CompletionQuestVariablesFlags = list223; reference171 = obj134; obj132.Steps = list221; reference169 = obj132; - ref QuestSequence reference172 = ref span77[4]; + num++; + ref QuestSequence reference172 = ref span213[num]; QuestSequence obj135 = new QuestSequence { Sequence = 4 @@ -348526,28 +423551,34 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1047159u, new Vector3(191.45496f, -160.64616f, 414.0536f), 1189) + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new QuestStep(EInteractionType.Interact, 1047159u, new Vector3(191.45496f, -160.64616f, 414.0536f), 1189) { Fly = true }; obj135.Steps = list224; reference172 = obj135; - ref QuestSequence reference173 = ref span77[5]; + num++; + ref QuestSequence reference173 = ref span213[num]; QuestSequence obj136 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1047160u, new Vector3(664.6067f, 1.554378f, -477.22595f), 1189) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.Interact, 1047160u, new Vector3(664.6067f, 1.554378f, -477.22595f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; obj136.Steps = list225; reference173 = obj136; - ref QuestSequence reference174 = ref span77[6]; + num++; + ref QuestSequence reference174 = ref span213[num]; QuestSequence obj137 = new QuestSequence { Sequence = 6 @@ -348555,8 +423586,9 @@ public static class AssemblyQuestLoader num2 = 5; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span86 = CollectionsMarshal.AsSpan(list226); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(436.87848f, 4.0999737f, -551.09174f), 1189) + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span226[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(436.87848f, 4.0999737f, -551.09174f), 1189) { SkipConditions = new SkipConditions { @@ -348566,42 +423598,51 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference175 = ref span86[1]; + index2++; + ref QuestStep reference175 = ref span226[index2]; QuestStep questStep38 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = new GatheredItem + index3 = 1; + List list227 = new List(index3); + CollectionsMarshal.SetCount(list227, index3); + Span span227 = CollectionsMarshal.AsSpan(list227); + num3 = 0; + span227[num3] = new GatheredItem { ItemId = 43914u, ItemCount = 1 }; questStep38.ItemsToGather = list227; reference175 = questStep38; - span86[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.17834f, -33.187485f, -598.0982f), 1189) + index2++; + span226[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.17834f, -33.187485f, -598.0982f), 1189) { Fly = true }; - span86[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.17834f, -0.6f, -598.0982f), 1189) + index2++; + span226[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.17834f, -0.6f, -598.0982f), 1189) { DisableNavmesh = true, Fly = true }; - span86[4] = new QuestStep(EInteractionType.Interact, 1047160u, new Vector3(664.6067f, 1.554378f, -477.22595f), 1189) + index2++; + span226[index2] = new QuestStep(EInteractionType.Interact, 1047160u, new Vector3(664.6067f, 1.554378f, -477.22595f), 1189) { Fly = true }; obj137.Steps = list226; reference174 = obj137; - ref QuestSequence reference176 = ref span77[7]; + num++; + ref QuestSequence reference176 = ref span213[num]; QuestSequence obj138 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.Interact, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -348612,7 +423653,8 @@ public static class AssemblyQuestLoader }; obj138.Steps = list228; reference176 = obj138; - ref QuestSequence reference177 = ref span77[8]; + num++; + ref QuestSequence reference177 = ref span213[num]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue @@ -348620,7 +423662,9 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span229[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); obj139.Steps = list229; reference177 = obj139; questRoot25.QuestSequence = list213; @@ -348634,12 +423678,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - ref QuestSequence reference = ref CollectionsMarshal.AsSpan(list2)[0]; + index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -348647,7 +423695,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048390u, new Vector3(15.243713f, -14.000001f, 85.83191f), 1185); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048390u, new Vector3(15.243713f, -14.000001f, 85.83191f), 1185); obj.Steps = list3; reference = obj; questRoot.QuestSequence = list2; @@ -348657,20 +423707,26 @@ public static class AssemblyQuestLoader num = 1; List list4 = new List(num); CollectionsMarshal.SetCount(list4, num); - CollectionsMarshal.AsSpan(list4)[0] = "liza"; + Span span4 = CollectionsMarshal.AsSpan(list4); + index = 0; + span4[index] = "liza"; questRoot2.Author = list4; - num = 1; - List list5 = new List(num); - CollectionsMarshal.SetCount(list5, num); - ref QuestSequence reference2 = ref CollectionsMarshal.AsSpan(list5)[0]; + index = 1; + List list5 = new List(index); + CollectionsMarshal.SetCount(list5, index); + Span span5 = CollectionsMarshal.AsSpan(list5); + num = 0; + ref QuestSequence reference2 = ref span5[num]; QuestSequence obj2 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048548u, new Vector3(-109.48352f, -15f, 185.04602f), 1185); + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048548u, new Vector3(-109.48352f, -15f, 185.04602f), 1185); obj2.Steps = list6; reference2 = obj2; questRoot2.QuestSequence = list5; @@ -348680,13 +423736,16 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "liza"; + Span span7 = CollectionsMarshal.AsSpan(list7); + index = 0; + span7[index] = "liza"; questRoot3.Author = list7; - num = 2; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference3 = ref span[0]; + index = 2; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference3 = ref span8[num]; QuestSequence obj3 = new QuestSequence { Sequence = 0 @@ -348694,7 +423753,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051454u, new Vector3(376.2417f, 50.749996f, 148.51599f), 1186) + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051454u, new Vector3(376.2417f, 50.749996f, 148.51599f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -348712,15 +423773,18 @@ public static class AssemblyQuestLoader }; obj3.Steps = list9; reference3 = obj3; - ref QuestSequence reference4 = ref span[1]; + num++; + ref QuestSequence reference4 = ref span8[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049466u, new Vector3(-247.88281f, 30f, -631.15894f), 1191) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049466u, new Vector3(-247.88281f, 30f, -631.15894f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; @@ -348733,12 +423797,16 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "liza"; + Span span11 = CollectionsMarshal.AsSpan(list11); + index = 0; + span11[index] = "liza"; questRoot4.Author = list11; - num = 1; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - ref QuestSequence reference5 = ref CollectionsMarshal.AsSpan(list12)[0]; + index = 1; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + Span span12 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference5 = ref span12[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -348746,7 +423814,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048510u, new Vector3(28.67163f, 50.13025f, -40.940002f), 1185); + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048510u, new Vector3(28.67163f, 50.13025f, -40.940002f), 1185); obj5.Steps = list13; reference5 = obj5; questRoot4.QuestSequence = list12; @@ -348756,20 +423826,26 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = "liza"; + Span span14 = CollectionsMarshal.AsSpan(list14); + index = 0; + span14[index] = "liza"; questRoot5.Author = list14; - num = 1; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - ref QuestSequence reference6 = ref CollectionsMarshal.AsSpan(list15)[0]; + index = 1; + List list15 = new List(index); + CollectionsMarshal.SetCount(list15, index); + Span span15 = CollectionsMarshal.AsSpan(list15); + num = 0; + ref QuestSequence reference6 = ref span15[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049155u, new Vector3(220.32495f, 74.847984f, -52.99463f), 1186); + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049155u, new Vector3(220.32495f, 74.847984f, -52.99463f), 1186); obj6.Steps = list16; reference6 = obj6; questRoot5.QuestSequence = list15; @@ -348779,12 +423855,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "liza"; questRoot6.Author = list17; - num = 1; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - ref QuestSequence reference7 = ref CollectionsMarshal.AsSpan(list18)[0]; + index = 1; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference7 = ref span18[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -348792,7 +423872,9 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049088u, new Vector3(-157.64093f, 0.9219527f, -38.132385f), 1186); + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049088u, new Vector3(-157.64093f, 0.9219527f, -38.132385f), 1186); obj7.Steps = list19; reference7 = obj7; questRoot6.QuestSequence = list18; @@ -348802,24 +423884,30 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + Span span20 = CollectionsMarshal.AsSpan(list20); + index = 0; + span20[index] = "liza"; questRoot7.Author = list20; - num = 2; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span2 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference8 = ref span2[0]; + index = 2; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + Span span21 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference8 = ref span21[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051413u, new Vector3(-75.21173f, -10.00001f, 138.8418f), 1185); + index2 = 1; + List list22 = new List(index2); + CollectionsMarshal.SetCount(list22, index2); + Span span22 = CollectionsMarshal.AsSpan(list22); + num2 = 0; + span22[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051413u, new Vector3(-75.21173f, -10.00001f, 138.8418f), 1185); obj8.Steps = list22; reference8 = obj8; - ref QuestSequence reference9 = ref span2[1]; + num++; + ref QuestSequence reference9 = ref span21[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -348827,7 +423915,9 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) + Span span23 = CollectionsMarshal.AsSpan(list23); + index2 = 0; + span23[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) { NextQuestId = new QuestId(5010) }; @@ -348840,24 +423930,30 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "liza"; + Span span24 = CollectionsMarshal.AsSpan(list24); + index = 0; + span24[index] = "liza"; questRoot8.Author = list24; - num = 3; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span3 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference10 = ref span3[0]; + index = 3; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + Span span25 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference10 = ref span25[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185); + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185); obj10.Steps = list26; reference10 = obj10; - ref QuestSequence reference11 = ref span3[1]; + num++; + ref QuestSequence reference11 = ref span25[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -348865,18 +423961,23 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1051414u, new Vector3(-90.348694f, -19.6019f, 212.54285f), 1185); + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.Interact, 1051414u, new Vector3(-90.348694f, -19.6019f, 212.54285f), 1185); obj11.Steps = list27; reference11 = obj11; - ref QuestSequence reference12 = ref span3[2]; + num++; + ref QuestSequence reference12 = ref span25[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) { NextQuestId = new QuestId(5011) }; @@ -348889,13 +423990,16 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "liza"; + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + span29[index] = "liza"; questRoot9.Author = list29; - num = 5; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span4 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference13 = ref span4[0]; + index = 5; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + Span span30 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference13 = ref span30[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -348903,24 +424007,30 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185); + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span31[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185); obj13.Steps = list31; reference13 = obj13; - ref QuestSequence reference14 = ref span4[1]; + num++; + ref QuestSequence reference14 = ref span30[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1049457u, new Vector3(-223.92621f, 30f, -603.11285f), 1191) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.Interact, 1049457u, new Vector3(-223.92621f, 30f, -603.11285f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj14.Steps = list32; reference14 = obj14; - ref QuestSequence reference15 = ref span4[2]; + num++; + ref QuestSequence reference15 = ref span30[num]; QuestSequence obj15 = new QuestSequence { Sequence = 2 @@ -348928,8 +424038,9 @@ public static class AssemblyQuestLoader num2 = 2; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span5 = CollectionsMarshal.AsSpan(list33); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-65.20557f, 38.80659f, -459.1674f), 1186) + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-65.20557f, 38.80659f, -459.1674f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -348938,18 +424049,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineResolution } }; - span5[1] = new QuestStep(EInteractionType.Interact, 1049180u, new Vector3(-67.27704f, 38.80659f, -459.22028f), 1186); + index2++; + span33[index2] = new QuestStep(EInteractionType.Interact, 1049180u, new Vector3(-67.27704f, 38.80659f, -459.22028f), 1186); obj15.Steps = list33; reference15 = obj15; - ref QuestSequence reference16 = ref span4[3]; + num++; + ref QuestSequence reference16 = ref span30[num]; QuestSequence obj16 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1051415u, new Vector3(-400.351f, 14.029996f, 112.26062f), 1186) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.Interact, 1051415u, new Vector3(-400.351f, 14.029996f, 112.26062f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -348959,7 +424074,8 @@ public static class AssemblyQuestLoader }; obj16.Steps = list34; reference16 = obj16; - ref QuestSequence reference17 = ref span4[4]; + num++; + ref QuestSequence reference17 = ref span30[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -348967,7 +424083,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -348986,24 +424104,30 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "liza"; questRoot10.Author = list36; - num = 3; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span6 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference18 = ref span6[0]; + index = 3; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference18 = ref span37[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185); + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185); obj18.Steps = list38; reference18 = obj18; - ref QuestSequence reference19 = ref span6[1]; + num++; + ref QuestSequence reference19 = ref span37[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -349011,7 +424135,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1051415u, new Vector3(-400.351f, 14.029996f, 112.26062f), 1186) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.Interact, 1051415u, new Vector3(-400.351f, 14.029996f, 112.26062f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -349022,15 +424148,18 @@ public static class AssemblyQuestLoader }; obj19.Steps = list39; reference19 = obj19; - ref QuestSequence reference20 = ref span6[2]; + num++; + ref QuestSequence reference20 = ref span37[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -349048,13 +424177,16 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + Span span41 = CollectionsMarshal.AsSpan(list41); + index = 0; + span41[index] = "liza"; questRoot11.Author = list41; - num = 6; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span7 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference21 = ref span7[0]; + index = 6; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + Span span42 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference21 = ref span42[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -349062,7 +424194,9 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051434u, new Vector3(28.580078f, -14f, 75.66943f), 1185) + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051434u, new Vector3(28.580078f, -14f, 75.66943f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -349075,22 +424209,26 @@ public static class AssemblyQuestLoader }; obj21.Steps = list43; reference21 = obj21; - ref QuestSequence reference22 = ref span7[1]; + num++; + ref QuestSequence reference22 = ref span42[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Interact, 1051435u, new Vector3(383.1692f, -17.700003f, -771.3283f), 1190) + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.Interact, 1051435u, new Vector3(383.1692f, -17.700003f, -771.3283f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan }; obj22.Steps = list44; reference22 = obj22; - ref QuestSequence reference23 = ref span7[2]; + num++; + ref QuestSequence reference23 = ref span42[num]; QuestSequence obj23 = new QuestSequence { Sequence = 2 @@ -349098,7 +424236,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Duty, null, null, 1190) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.Duty, null, null, 1190) { DutyOptions = new DutyOptions { @@ -349107,15 +424247,18 @@ public static class AssemblyQuestLoader }; obj23.Steps = list45; reference23 = obj23; - ref QuestSequence reference24 = ref span7[3]; + num++; + ref QuestSequence reference24 = ref span42[num]; QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1051435u, new Vector3(383.1692f, -17.700003f, -771.3283f), 1190) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.Interact, 1051435u, new Vector3(383.1692f, -17.700003f, -771.3283f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan, @@ -349129,7 +424272,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list46; reference24 = obj24; - ref QuestSequence reference25 = ref span7[4]; + num++; + ref QuestSequence reference25 = ref span42[num]; QuestSequence obj25 = new QuestSequence { Sequence = 4 @@ -349137,7 +424281,9 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1051436u, new Vector3(476.73767f, 114.935f, 661.6769f), 1187) + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.Interact, 1051436u, new Vector3(476.73767f, 114.935f, 661.6769f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, SkipConditions = new SkipConditions @@ -349150,15 +424296,18 @@ public static class AssemblyQuestLoader }; obj25.Steps = list47; reference25 = obj25; - ref QuestSequence reference26 = ref span7[5]; + num++; + ref QuestSequence reference26 = ref span42[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051438u, new Vector3(-498.7717f, 59.21188f, 145.00647f), 1187) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051438u, new Vector3(-498.7717f, 59.21188f, 145.00647f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -349179,13 +424328,16 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "liza"; questRoot12.Author = list49; - num = 6; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span8 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference27 = ref span8[0]; + index = 6; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference27 = ref span50[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -349193,7 +424345,9 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051440u, new Vector3(305.01257f, 51.199978f, 198.07727f), 1186) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051440u, new Vector3(305.01257f, 51.199978f, 198.07727f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -349211,15 +424365,18 @@ public static class AssemblyQuestLoader }; obj27.Steps = list51; reference27 = obj27; - ref QuestSequence reference28 = ref span8[1]; + num++; + ref QuestSequence reference28 = ref span50[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 2014334u, new Vector3(-6.9123535f, 53.177612f, 761.68445f), 1192) + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.Interact, 2014334u, new Vector3(-6.9123535f, 53.177612f, 761.68445f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, SkipConditions = new SkipConditions @@ -349232,7 +424389,8 @@ public static class AssemblyQuestLoader }; obj28.Steps = list52; reference28 = obj28; - ref QuestSequence reference29 = ref span8[2]; + num++; + ref QuestSequence reference29 = ref span50[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -349240,8 +424398,9 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span9 = CollectionsMarshal.AsSpan(list53); - span9[0] = new QuestStep(EInteractionType.Interact, 1048243u, new Vector3(57.87744f, 53.200012f, 772.03015f), 1192) + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.Interact, 1048243u, new Vector3(57.87744f, 53.200012f, 772.03015f), 1192) { TargetTerritoryId = (ushort)1192, SkipConditions = new SkipConditions @@ -349252,7 +424411,8 @@ public static class AssemblyQuestLoader } } }; - span9[1] = new QuestStep(EInteractionType.Interact, 1051443u, new Vector3(614.28235f, 9.022843f, 610.13184f), 1192) + index2++; + span53[index2] = new QuestStep(EInteractionType.Interact, 1051443u, new Vector3(614.28235f, 9.022843f, 610.13184f), 1192) { Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, @@ -349266,15 +424426,18 @@ public static class AssemblyQuestLoader }; obj29.Steps = list53; reference29 = obj29; - ref QuestSequence reference30 = ref span8[3]; + num++; + ref QuestSequence reference30 = ref span50[num]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Duty, null, null, 1192) + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.Duty, null, null, 1192) { DutyOptions = new DutyOptions { @@ -349283,7 +424446,8 @@ public static class AssemblyQuestLoader }; obj30.Steps = list54; reference30 = obj30; - ref QuestSequence reference31 = ref span8[4]; + num++; + ref QuestSequence reference31 = ref span50[num]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -349291,7 +424455,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1051442u, new Vector3(613.76355f, 9.022844f, 612.1156f), 1192) + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.Interact, 1051442u, new Vector3(613.76355f, 9.022844f, 612.1156f), 1192) { StopDistance = 7f, Fly = true, @@ -349306,15 +424472,18 @@ public static class AssemblyQuestLoader }; obj31.Steps = list55; reference31 = obj31; - ref QuestSequence reference32 = ref span8[5]; + num++; + ref QuestSequence reference32 = ref span50[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051440u, new Vector3(305.01257f, 51.199978f, 198.07727f), 1186) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051440u, new Vector3(305.01257f, 51.199978f, 198.07727f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -349332,15 +424501,18 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - CollectionsMarshal.AsSpan(list57)[0] = "liza"; + Span span57 = CollectionsMarshal.AsSpan(list57); + index = 0; + span57[index] = "liza"; questRoot13.Author = list57; questRoot13.IsSeasonalQuest = true; questRoot13.SeasonalQuestExpiry = new DateTime(2024, 9, 11, 0, 0, 0, DateTimeKind.Utc); - num = 6; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span10 = CollectionsMarshal.AsSpan(list58); - ref QuestSequence reference33 = ref span10[0]; + index = 6; + List list58 = new List(index); + CollectionsMarshal.SetCount(list58, index); + Span span58 = CollectionsMarshal.AsSpan(list58); + num = 0; + ref QuestSequence reference33 = ref span58[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -349348,7 +424520,9 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list59)[0]; + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + ref QuestStep reference34 = ref span59[index2]; QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1050998u, new Vector3(4.0131226f, 44.499996f, 126.17676f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -349366,22 +424540,27 @@ public static class AssemblyQuestLoader int num3 = 1; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - CollectionsMarshal.AsSpan(list60)[0] = 128; + Span span60 = CollectionsMarshal.AsSpan(list60); + int index3 = 0; + span60[index3] = 128; obj35.InTerritory = list60; skipConditions.AetheryteShortcutIf = obj35; obj34.SkipConditions = skipConditions; reference34 = obj34; obj33.Steps = list59; reference33 = obj33; - ref QuestSequence reference35 = ref span10[1]; + num++; + ref QuestSequence reference35 = ref span58[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list61 = new List(num2); - CollectionsMarshal.SetCount(list61, num2); - CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1050999u, new Vector3(4.837097f, 31.47563f, -256.97723f), 128) + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num2 = 0; + span61[num2] = new QuestStep(EInteractionType.Interact, 1050999u, new Vector3(4.837097f, 31.47563f, -256.97723f), 128) { AethernetShortcut = new AethernetShortcut { @@ -349391,7 +424570,8 @@ public static class AssemblyQuestLoader }; obj36.Steps = list61; reference35 = obj36; - ref QuestSequence reference36 = ref span10[2]; + num++; + ref QuestSequence reference36 = ref span58[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 @@ -349399,7 +424579,9 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1051000u, new Vector3(-100.175476f, 18.00033f, -15.030151f), 129) + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = new QuestStep(EInteractionType.Interact, 1051000u, new Vector3(-100.175476f, 18.00033f, -15.030151f), 129) { AethernetShortcut = new AethernetShortcut { @@ -349409,74 +424591,104 @@ public static class AssemblyQuestLoader }; obj37.Steps = list62; reference36 = obj37; - ref QuestSequence reference37 = ref span10[3]; + num++; + ref QuestSequence reference37 = ref span58[num]; QuestSequence obj38 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - Span span11 = CollectionsMarshal.AsSpan(list63); - ref QuestStep reference38 = ref span11[0]; + index2 = 4; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference38 = ref span63[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1001217u, new Vector3(-140.85602f, 18.199999f, 17.013733f), 129); - num3 = 6; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span12 = CollectionsMarshal.AsSpan(list64); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list64 = new List(index3); + CollectionsMarshal.SetCount(list64, index3); + Span span64 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = null; + num3++; + span64[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list64; reference38 = questStep; - ref QuestStep reference39 = ref span11[1]; + num2++; + ref QuestStep reference39 = ref span63[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1051003u, new Vector3(-188.12854f, 16f, 33.37146f), 129); num3 = 6; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span13 = CollectionsMarshal.AsSpan(list65); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span65 = CollectionsMarshal.AsSpan(list65); + index3 = 0; + span65[index3] = null; + index3++; + span65[index3] = null; + index3++; + span65[index3] = null; + index3++; + span65[index3] = null; + index3++; + span65[index3] = null; + index3++; + span65[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list65; reference39 = questStep2; - ref QuestStep reference40 = ref span11[2]; + num2++; + ref QuestStep reference40 = ref span63[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1051002u, new Vector3(-205.005f, 15.999994f, 71.97681f), 129); - num3 = 6; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span14 = CollectionsMarshal.AsSpan(list66); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list66 = new List(index3); + CollectionsMarshal.SetCount(list66, index3); + Span span66 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = null; + num3++; + span66[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list66; reference40 = questStep3; - ref QuestStep reference41 = ref span11[3]; + num2++; + ref QuestStep reference41 = ref span63[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1051004u, new Vector3(-243.03046f, 16.199997f, 40.97046f), 129); num3 = 6; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - Span span15 = CollectionsMarshal.AsSpan(list67); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span67 = CollectionsMarshal.AsSpan(list67); + index3 = 0; + span67[index3] = null; + index3++; + span67[index3] = null; + index3++; + span67[index3] = null; + index3++; + span67[index3] = null; + index3++; + span67[index3] = null; + index3++; + span67[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list67; reference41 = questStep4; obj38.Steps = list63; reference37 = obj38; - ref QuestSequence reference42 = ref span10[4]; + num++; + ref QuestSequence reference42 = ref span58[num]; QuestSequence obj39 = new QuestSequence { Sequence = 4 @@ -349484,7 +424696,9 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 2014209u, new Vector3(-385.1225f, 5.996765f, 33.707153f), 129) + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.Interact, 2014209u, new Vector3(-385.1225f, 5.996765f, 33.707153f), 129) { AethernetShortcut = new AethernetShortcut { @@ -349494,15 +424708,18 @@ public static class AssemblyQuestLoader }; obj39.Steps = list68; reference42 = obj39; - ref QuestSequence reference43 = ref span10[5]; + num++; + ref QuestSequence reference43 = ref span58[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051001u, new Vector3(3.7994385f, 44.499992f, 126.05469f), 128) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051001u, new Vector3(3.7994385f, 44.499992f, 126.05469f), 128) { AethernetShortcut = new AethernetShortcut { @@ -349520,15 +424737,18 @@ public static class AssemblyQuestLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - CollectionsMarshal.AsSpan(list70)[0] = "liza"; + Span span70 = CollectionsMarshal.AsSpan(list70); + index = 0; + span70[index] = "liza"; questRoot14.Author = list70; questRoot14.IsSeasonalQuest = true; questRoot14.SeasonalQuestExpiry = new DateTime(2024, 9, 11, 0, 0, 0, DateTimeKind.Utc); - num = 6; - List list71 = new List(num); - CollectionsMarshal.SetCount(list71, num); - Span span16 = CollectionsMarshal.AsSpan(list71); - ref QuestSequence reference44 = ref span16[0]; + index = 6; + List list71 = new List(index); + CollectionsMarshal.SetCount(list71, index); + Span span71 = CollectionsMarshal.AsSpan(list71); + num = 0; + ref QuestSequence reference44 = ref span71[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -349536,7 +424756,9 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list72)[0]; + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + ref QuestStep reference45 = ref span72[index2]; QuestStep obj42 = new QuestStep(EInteractionType.AcceptQuest, 1051007u, new Vector3(2.2735596f, 44.499992f, 125.200195f), 128) { StopDistance = 5f, @@ -349552,25 +424774,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = 128; + index3 = 1; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + Span span73 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span73[num3] = 128; obj43.InTerritory = list73; skipConditions2.AetheryteShortcutIf = obj43; obj42.SkipConditions = skipConditions2; reference45 = obj42; obj41.Steps = list72; reference44 = obj41; - ref QuestSequence reference46 = ref span16[1]; + num++; + ref QuestSequence reference46 = ref span71[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1051008u, new Vector3(2.5481567f, 43.999977f, -206.71399f), 128) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.Interact, 1051008u, new Vector3(2.5481567f, 43.999977f, -206.71399f), 128) { AethernetShortcut = new AethernetShortcut { @@ -349580,7 +424807,8 @@ public static class AssemblyQuestLoader }; obj44.Steps = list74; reference46 = obj44; - ref QuestSequence reference47 = ref span16[2]; + num++; + ref QuestSequence reference47 = ref span71[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 @@ -349588,21 +424816,26 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1051009u, new Vector3(1.5106201f, 44f, -205.8595f), 128) + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.Interact, 1051009u, new Vector3(1.5106201f, 44f, -205.8595f), 128) { StopDistance = 5f }; obj45.Steps = list75; reference47 = obj45; - ref QuestSequence reference48 = ref span16[3]; + num++; + ref QuestSequence reference48 = ref span71[num]; QuestSequence obj46 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 2014210u, new Vector3(-176.62323f, 40.97046f, 185.35132f), 128) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.Interact, 2014210u, new Vector3(-176.62323f, 40.97046f, 185.35132f), 128) { AethernetShortcut = new AethernetShortcut { @@ -349612,7 +424845,8 @@ public static class AssemblyQuestLoader }; obj46.Steps = list76; reference48 = obj46; - ref QuestSequence reference49 = ref span16[4]; + num++; + ref QuestSequence reference49 = ref span71[num]; QuestSequence obj47 = new QuestSequence { Sequence = 4 @@ -349620,21 +424854,26 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1051010u, new Vector3(-178.11859f, 40.999958f, 184.67993f), 128) + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = new QuestStep(EInteractionType.Interact, 1051010u, new Vector3(-178.11859f, 40.999958f, 184.67993f), 128) { StopDistance = 5f }; obj47.Steps = list77; reference49 = obj47; - ref QuestSequence reference50 = ref span16[5]; + num++; + ref QuestSequence reference50 = ref span71[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list78)[0]; + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + ref QuestStep reference51 = ref span78[num2]; QuestStep obj49 = new QuestStep(EInteractionType.CompleteQuest, 1051011u, new Vector3(-178.63745f, 40.999916f, 186.3584f), 128) { StopDistance = 7f @@ -349642,7 +424881,9 @@ public static class AssemblyQuestLoader num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new DialogueChoice + Span span79 = CollectionsMarshal.AsSpan(list79); + index3 = 0; + span79[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_FESANX002_05016_Q52_000_082") @@ -349658,13 +424899,16 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + Span span80 = CollectionsMarshal.AsSpan(list80); + index = 0; + span80[index] = "liza"; questRoot15.Author = list80; - num = 3; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span17 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference52 = ref span17[0]; + index = 3; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + Span span81 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference52 = ref span81[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -349672,21 +424916,27 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050728u, new Vector3(50.125854f, 47f, -330.40363f), 1185); + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050728u, new Vector3(50.125854f, 47f, -330.40363f), 1185); obj50.Steps = list82; reference52 = obj50; - ref QuestSequence reference53 = ref span17[1]; + num++; + ref QuestSequence reference53 = ref span81[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1050729u, new Vector3(187.51807f, 42.40001f, -350.36243f), 1185); + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.Interact, 1050729u, new Vector3(187.51807f, 42.40001f, -350.36243f), 1185); obj51.Steps = list83; reference53 = obj51; - ref QuestSequence reference54 = ref span17[2]; + num++; + ref QuestSequence reference54 = ref span81[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -349694,7 +424944,9 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050728u, new Vector3(50.125854f, 47f, -330.40363f), 1185); + Span span84 = CollectionsMarshal.AsSpan(list84); + index2 = 0; + span84[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050728u, new Vector3(50.125854f, 47f, -330.40363f), 1185); obj52.Steps = list84; reference54 = obj52; questRoot15.QuestSequence = list81; @@ -349704,24 +424956,30 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "liza"; + Span span85 = CollectionsMarshal.AsSpan(list85); + index = 0; + span85[index] = "liza"; questRoot16.Author = list85; - num = 4; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span18 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference55 = ref span18[0]; + index = 4; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + Span span86 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference55 = ref span86[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048459u, new Vector3(-394.43048f, 11f, 3.5552979f), 1185); + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048459u, new Vector3(-394.43048f, 11f, 3.5552979f), 1185); obj53.Steps = list87; reference55 = obj53; - ref QuestSequence reference56 = ref span18[1]; + num++; + ref QuestSequence reference56 = ref span86[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -349729,7 +424987,9 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1050733u, new Vector3(-16.83075f, -10.000011f, 93.12573f), 1185) + Span span88 = CollectionsMarshal.AsSpan(list88); + index2 = 0; + span88[index2] = new QuestStep(EInteractionType.Interact, 1050733u, new Vector3(-16.83075f, -10.000011f, 93.12573f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -349739,20 +424999,25 @@ public static class AssemblyQuestLoader }; obj54.Steps = list88; reference56 = obj54; - ref QuestSequence reference57 = ref span18[2]; + num++; + ref QuestSequence reference57 = ref span86[num]; QuestSequence obj55 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list89)[0]; + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + ref QuestStep reference58 = ref span89[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1050734u, new Vector3(79.301025f, -17.964588f, 199.57275f), 1185); - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = new DialogueChoice + index3 = 1; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + Span span90 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span90[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZA002_05018_Q1_000_000"), @@ -349762,7 +425027,8 @@ public static class AssemblyQuestLoader reference58 = questStep5; obj55.Steps = list89; reference57 = obj55; - ref QuestSequence reference59 = ref span18[3]; + num++; + ref QuestSequence reference59 = ref span86[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue @@ -349770,7 +425036,9 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048459u, new Vector3(-394.43048f, 11f, 3.5552979f), 1185) + Span span91 = CollectionsMarshal.AsSpan(list91); + index2 = 0; + span91[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048459u, new Vector3(-394.43048f, 11f, 3.5552979f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -349787,24 +425055,30 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "liza"; + Span span92 = CollectionsMarshal.AsSpan(list92); + index = 0; + span92[index] = "liza"; questRoot17.Author = list92; - num = 5; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span19 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference60 = ref span19[0]; + index = 5; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + Span span93 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference60 = ref span93[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050735u, new Vector3(121.11084f, -17.972874f, 74.021484f), 1185); + index2 = 1; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050735u, new Vector3(121.11084f, -17.972874f, 74.021484f), 1185); obj57.Steps = list94; reference60 = obj57; - ref QuestSequence reference61 = ref span19[1]; + num++; + ref QuestSequence reference61 = ref span93[num]; QuestSequence obj58 = new QuestSequence { Sequence = 1 @@ -349812,24 +425086,30 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1050736u, new Vector3(31.47937f, -17.9643f, 167.46765f), 1185) + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.Interact, 1050736u, new Vector3(31.47937f, -17.9643f, 167.46765f), 1185) { StopDistance = 2f }; obj58.Steps = list95; reference61 = obj58; - ref QuestSequence reference62 = ref span19[2]; + num++; + ref QuestSequence reference62 = ref span93[num]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 2014232u, new Vector3(33.310425f, -16.678162f, 167.98657f), 1185); + index2 = 1; + List list96 = new List(index2); + CollectionsMarshal.SetCount(list96, index2); + Span span96 = CollectionsMarshal.AsSpan(list96); + num2 = 0; + span96[num2] = new QuestStep(EInteractionType.Interact, 2014232u, new Vector3(33.310425f, -16.678162f, 167.98657f), 1185); obj59.Steps = list96; reference62 = obj59; - ref QuestSequence reference63 = ref span19[3]; + num++; + ref QuestSequence reference63 = ref span93[num]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -349837,18 +425117,23 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1050737u, new Vector3(87.57141f, -14f, 52.384155f), 1185); + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.Interact, 1050737u, new Vector3(87.57141f, -14f, 52.384155f), 1185); obj60.Steps = list97; reference63 = obj60; - ref QuestSequence reference64 = ref span19[4]; + num++; + ref QuestSequence reference64 = ref span93[num]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050737u, new Vector3(87.57141f, -14f, 52.384155f), 1185); + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050737u, new Vector3(87.57141f, -14f, 52.384155f), 1185); obj61.Steps = list98; reference64 = obj61; questRoot17.QuestSequence = list93; @@ -349858,13 +425143,16 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; + Span span99 = CollectionsMarshal.AsSpan(list99); + index = 0; + span99[index] = "liza"; questRoot18.Author = list99; - num = 5; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span20 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference65 = ref span20[0]; + index = 5; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + Span span100 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference65 = ref span100[num]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -349872,21 +425160,27 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051038u, new Vector3(153.94824f, -17.9645f, 95.384155f), 1185); + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051038u, new Vector3(153.94824f, -17.9645f, 95.384155f), 1185); obj62.Steps = list101; reference65 = obj62; - ref QuestSequence reference66 = ref span20[1]; + num++; + ref QuestSequence reference66 = ref span100[num]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1051025u, new Vector3(153.94824f, -17.9645f, 95.384155f), 1185); + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.Interact, 1051025u, new Vector3(153.94824f, -17.9645f, 95.384155f), 1185); obj63.Steps = list102; reference66 = obj63; - ref QuestSequence reference67 = ref span20[2]; + num++; + ref QuestSequence reference67 = ref span100[num]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -349894,66 +425188,91 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span21 = CollectionsMarshal.AsSpan(list103); - ref QuestStep reference68 = ref span21[0]; + Span span103 = CollectionsMarshal.AsSpan(list103); + index2 = 0; + ref QuestStep reference68 = ref span103[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1051026u, new Vector3(109.910645f, -14f, 39.505493f), 1185); num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span22 = CollectionsMarshal.AsSpan(list104); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span104 = CollectionsMarshal.AsSpan(list104); + index3 = 0; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = null; + index3++; + span104[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list104; reference68 = questStep6; - ref QuestStep reference69 = ref span21[1]; + index2++; + ref QuestStep reference69 = ref span103[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1051027u, new Vector3(12.527649f, -10.00001f, 35.599243f), 1185); - num3 = 6; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span23 = CollectionsMarshal.AsSpan(list105); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list105 = new List(index3); + CollectionsMarshal.SetCount(list105, index3); + Span span105 = CollectionsMarshal.AsSpan(list105); + num3 = 0; + span105[num3] = null; + num3++; + span105[num3] = null; + num3++; + span105[num3] = null; + num3++; + span105[num3] = null; + num3++; + span105[num3] = null; + num3++; + span105[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list105; reference69 = questStep7; - ref QuestStep reference70 = ref span21[2]; + index2++; + ref QuestStep reference70 = ref span103[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1051028u, new Vector3(-69.77954f, -10.00001f, 119.79846f), 1185); num3 = 6; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - Span span24 = CollectionsMarshal.AsSpan(list106); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span106 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list106; reference70 = questStep8; obj64.Steps = list103; reference67 = obj64; - ref QuestSequence reference71 = ref span20[3]; + num++; + ref QuestSequence reference71 = ref span100[num]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1051025u, new Vector3(-124.85585f, -5.0000095f, 130.06908f), 1185) + index2 = 1; + List list107 = new List(index2); + CollectionsMarshal.SetCount(list107, index2); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.Interact, 1051025u, new Vector3(-124.85585f, -5.0000095f, 130.06908f), 1185) { StopDistance = 0.25f }; obj65.Steps = list107; reference71 = obj65; - ref QuestSequence reference72 = ref span20[4]; + num++; + ref QuestSequence reference72 = ref span100[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -349961,7 +425280,9 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051029u, new Vector3(-249.77496f, -9.2517585E-06f, 138.01782f), 1185); + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051029u, new Vector3(-249.77496f, -9.2517585E-06f, 138.01782f), 1185); obj66.Steps = list108; reference72 = obj66; questRoot18.QuestSequence = list100; @@ -349971,24 +425292,30 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - CollectionsMarshal.AsSpan(list109)[0] = "liza"; + Span span109 = CollectionsMarshal.AsSpan(list109); + index = 0; + span109[index] = "liza"; questRoot19.Author = list109; - num = 3; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span25 = CollectionsMarshal.AsSpan(list110); - ref QuestSequence reference73 = ref span25[0]; + index = 3; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + Span span110 = CollectionsMarshal.AsSpan(list110); + num = 0; + ref QuestSequence reference73 = ref span110[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051030u, new Vector3(-227.64941f, 40.075134f, -25.436829f), 1185); + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051030u, new Vector3(-227.64941f, 40.075134f, -25.436829f), 1185); obj67.Steps = list111; reference73 = obj67; - ref QuestSequence reference74 = ref span25[1]; + num++; + ref QuestSequence reference74 = ref span110[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -349996,18 +425323,23 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1051030u, new Vector3(-227.64941f, 40.075134f, -25.436829f), 1185); + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.Interact, 1051030u, new Vector3(-227.64941f, 40.075134f, -25.436829f), 1185); obj68.Steps = list112; reference74 = obj68; - ref QuestSequence reference75 = ref span25[2]; + num++; + ref QuestSequence reference75 = ref span110[num]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051031u, new Vector3(-56.6568f, 52.057556f, 20.767456f), 1185); + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051031u, new Vector3(-56.6568f, 52.057556f, 20.767456f), 1185); obj69.Steps = list113; reference75 = obj69; questRoot19.QuestSequence = list110; @@ -350017,13 +425349,16 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - CollectionsMarshal.AsSpan(list114)[0] = "liza"; + Span span114 = CollectionsMarshal.AsSpan(list114); + index = 0; + span114[index] = "liza"; questRoot20.Author = list114; - num = 5; - List list115 = new List(num); - CollectionsMarshal.SetCount(list115, num); - Span span26 = CollectionsMarshal.AsSpan(list115); - ref QuestSequence reference76 = ref span26[0]; + index = 5; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + Span span115 = CollectionsMarshal.AsSpan(list115); + num = 0; + ref QuestSequence reference76 = ref span115[num]; QuestSequence obj70 = new QuestSequence { Sequence = 0 @@ -350031,21 +425366,27 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051032u, new Vector3(-259.05243f, 2.127327E-05f, 116.13635f), 1185); + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + span116[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051032u, new Vector3(-259.05243f, 2.127327E-05f, 116.13635f), 1185); obj70.Steps = list116; reference76 = obj70; - ref QuestSequence reference77 = ref span26[1]; + num++; + ref QuestSequence reference77 = ref span115[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list117 = new List(num2); - CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1051033u, new Vector3(-282.49036f, 14.508167f, 178.72888f), 1185); + index2 = 1; + List list117 = new List(index2); + CollectionsMarshal.SetCount(list117, index2); + Span span117 = CollectionsMarshal.AsSpan(list117); + num2 = 0; + span117[num2] = new QuestStep(EInteractionType.Interact, 1051033u, new Vector3(-282.49036f, 14.508167f, 178.72888f), 1185); obj71.Steps = list117; reference77 = obj71; - ref QuestSequence reference78 = ref span26[2]; + num++; + ref QuestSequence reference78 = ref span115[num]; QuestSequence obj72 = new QuestSequence { Sequence = 2 @@ -350053,26 +425394,32 @@ public static class AssemblyQuestLoader num2 = 2; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span27 = CollectionsMarshal.AsSpan(list118); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-290.98425f, -9.417534E-06f, 179.37634f), 1185) + Span span118 = CollectionsMarshal.AsSpan(list118); + index2 = 0; + span118[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-290.98425f, -9.417534E-06f, 179.37634f), 1185) { DisableNavmesh = true }; - span27[1] = new QuestStep(EInteractionType.Interact, 2014234u, new Vector3(-272.84656f, -0.015319824f, 191.39392f), 1185); + index2++; + span118[index2] = new QuestStep(EInteractionType.Interact, 2014234u, new Vector3(-272.84656f, -0.015319824f, 191.39392f), 1185); obj72.Steps = list118; reference78 = obj72; - ref QuestSequence reference79 = ref span26[3]; + num++; + ref QuestSequence reference79 = ref span115[num]; QuestSequence obj73 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list119 = new List(num2); - CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1051033u, new Vector3(-282.49036f, 14.508167f, 178.72888f), 1185); + index2 = 1; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num2 = 0; + span119[num2] = new QuestStep(EInteractionType.Interact, 1051033u, new Vector3(-282.49036f, 14.508167f, 178.72888f), 1185); obj73.Steps = list119; reference79 = obj73; - ref QuestSequence reference80 = ref span26[4]; + num++; + ref QuestSequence reference80 = ref span115[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue @@ -350080,7 +425427,9 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051032u, new Vector3(-259.05243f, 2.127327E-05f, 116.13635f), 1185); + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051032u, new Vector3(-259.05243f, 2.127327E-05f, 116.13635f), 1185); obj74.Steps = list120; reference80 = obj74; questRoot20.QuestSequence = list115; @@ -350090,24 +425439,30 @@ public static class AssemblyQuestLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - CollectionsMarshal.AsSpan(list121)[0] = "liza"; + Span span121 = CollectionsMarshal.AsSpan(list121); + index = 0; + span121[index] = "liza"; questRoot21.Author = list121; - num = 3; - List list122 = new List(num); - CollectionsMarshal.SetCount(list122, num); - Span span28 = CollectionsMarshal.AsSpan(list122); - ref QuestSequence reference81 = ref span28[0]; + index = 3; + List list122 = new List(index); + CollectionsMarshal.SetCount(list122, index); + Span span122 = CollectionsMarshal.AsSpan(list122); + num = 0; + ref QuestSequence reference81 = ref span122[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051034u, new Vector3(15.457336f, -10.00001f, 64.43884f), 1185); + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span123[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051034u, new Vector3(15.457336f, -10.00001f, 64.43884f), 1185); obj75.Steps = list123; reference81 = obj75; - ref QuestSequence reference82 = ref span28[1]; + num++; + ref QuestSequence reference82 = ref span122[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 @@ -350115,8 +425470,9 @@ public static class AssemblyQuestLoader num2 = 2; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span29 = CollectionsMarshal.AsSpan(list124); - ref QuestStep reference83 = ref span29[0]; + Span span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + ref QuestStep reference83 = ref span124[index2]; QuestStep obj77 = new QuestStep(EInteractionType.Interact, 1051036u, new Vector3(-134.72198f, 45.35523f, 52.20105f), 1185) { AethernetShortcut = new AethernetShortcut @@ -350125,43 +425481,59 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - num3 = 6; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span30 = CollectionsMarshal.AsSpan(list125); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list125 = new List(index3); + CollectionsMarshal.SetCount(list125, index3); + Span span125 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj77.CompletionQuestVariablesFlags = list125; reference83 = obj77; - ref QuestStep reference84 = ref span29[1]; + index2++; + ref QuestStep reference84 = ref span124[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1051035u, new Vector3(-104.38696f, 54.09999f, 19.33313f), 1185); num3 = 6; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - Span span31 = CollectionsMarshal.AsSpan(list126); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span126 = CollectionsMarshal.AsSpan(list126); + index3 = 0; + span126[index3] = null; + index3++; + span126[index3] = null; + index3++; + span126[index3] = null; + index3++; + span126[index3] = null; + index3++; + span126[index3] = null; + index3++; + span126[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list126; reference84 = questStep9; obj76.Steps = list124; reference82 = obj76; - ref QuestSequence reference85 = ref span28[2]; + num++; + ref QuestSequence reference85 = ref span122[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051034u, new Vector3(15.457336f, -10.00001f, 64.43884f), 1185) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051034u, new Vector3(15.457336f, -10.00001f, 64.43884f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -350178,13 +425550,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + Span span128 = CollectionsMarshal.AsSpan(list128); + index = 0; + span128[index] = "liza"; questRoot22.Author = list128; - num = 3; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span32 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference86 = ref span32[0]; + index = 3; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + Span span129 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference86 = ref span129[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -350192,52 +425567,70 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048509u, new Vector3(181.44495f, 40.99999f, -66.63617f), 1185); + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span130[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048509u, new Vector3(181.44495f, 40.99999f, -66.63617f), 1185); obj79.Steps = list130; reference86 = obj79; - ref QuestSequence reference87 = ref span32[1]; + num++; + ref QuestSequence reference87 = ref span129[num]; QuestSequence obj80 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - Span span33 = CollectionsMarshal.AsSpan(list131); - ref QuestStep reference88 = ref span33[0]; + index2 = 2; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + ref QuestStep reference88 = ref span131[num2]; QuestStep obj81 = new QuestStep(EInteractionType.Interact, 1048431u, new Vector3(88.48706f, -14f, 56.687256f), 1185) { StopDistance = 4f }; - num3 = 6; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - Span span34 = CollectionsMarshal.AsSpan(list132); - span34[0] = null; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list132 = new List(index3); + CollectionsMarshal.SetCount(list132, index3); + Span span132 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span132[num3] = null; + num3++; + span132[num3] = null; + num3++; + span132[num3] = null; + num3++; + span132[num3] = null; + num3++; + span132[num3] = null; + num3++; + span132[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj81.CompletionQuestVariablesFlags = list132; reference88 = obj81; - ref QuestStep reference89 = ref span33[1]; + num2++; + ref QuestStep reference89 = ref span131[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1051037u, new Vector3(-35.29419f, -17.97287f, 169.02417f), 1185); num3 = 6; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - Span span35 = CollectionsMarshal.AsSpan(list133); - span35[0] = null; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span133 = CollectionsMarshal.AsSpan(list133); + index3 = 0; + span133[index3] = null; + index3++; + span133[index3] = null; + index3++; + span133[index3] = null; + index3++; + span133[index3] = null; + index3++; + span133[index3] = null; + index3++; + span133[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list133; reference89 = questStep10; obj80.Steps = list131; reference87 = obj80; - ref QuestSequence reference90 = ref span32[2]; + num++; + ref QuestSequence reference90 = ref span129[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue @@ -350245,7 +425638,9 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048509u, new Vector3(181.44495f, 40.99999f, -66.63617f), 1185); + Span span134 = CollectionsMarshal.AsSpan(list134); + index2 = 0; + span134[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048509u, new Vector3(181.44495f, 40.99999f, -66.63617f), 1185); obj82.Steps = list134; reference90 = obj82; questRoot22.QuestSequence = list129; @@ -350255,26 +425650,33 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "liza"; + Span span135 = CollectionsMarshal.AsSpan(list135); + index = 0; + span135[index] = "liza"; questRoot23.Author = list135; - num = 3; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span36 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference91 = ref span36[0]; + index = 3; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + Span span136 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference91 = ref span136[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - ref QuestStep reference92 = ref CollectionsMarshal.AsSpan(list137)[0]; + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + ref QuestStep reference92 = ref span137[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.AcceptQuest, 1051039u, new Vector3(17.593567f, -17.942173f, 153.06323f), 1185); - num3 = 1; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - CollectionsMarshal.AsSpan(list138)[0] = new DialogueChoice + index3 = 1; + List list138 = new List(index3); + CollectionsMarshal.SetCount(list138, index3); + Span span138 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span138[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZA009_05025_Q1_000_000"), @@ -350284,7 +425686,8 @@ public static class AssemblyQuestLoader reference92 = questStep11; obj83.Steps = list137; reference91 = obj83; - ref QuestSequence reference93 = ref span36[1]; + num++; + ref QuestSequence reference93 = ref span136[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 @@ -350292,7 +425695,9 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1051040u, new Vector3(-169.93976f, 59.999985f, -54.703613f), 1185) + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.Interact, 1051040u, new Vector3(-169.93976f, 59.999985f, -54.703613f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -350302,15 +425707,18 @@ public static class AssemblyQuestLoader }; obj84.Steps = list139; reference93 = obj84; - ref QuestSequence reference94 = ref span36[2]; + num++; + ref QuestSequence reference94 = ref span136[num]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051039u, new Vector3(17.593567f, -17.942173f, 153.06323f), 1185) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051039u, new Vector3(17.593567f, -17.942173f, 153.06323f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -350327,13 +425735,16 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "liza"; + Span span141 = CollectionsMarshal.AsSpan(list141); + index = 0; + span141[index] = "liza"; questRoot24.Author = list141; - num = 5; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span37 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference95 = ref span37[0]; + index = 5; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + Span span142 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference95 = ref span142[num]; QuestSequence obj86 = new QuestSequence { Sequence = 0 @@ -350341,18 +425752,23 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051042u, new Vector3(100.38904f, 47f, -230.27393f), 1185); + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051042u, new Vector3(100.38904f, 47f, -230.27393f), 1185); obj86.Steps = list143; reference95 = obj86; - ref QuestSequence reference96 = ref span37[1]; + num++; + ref QuestSequence reference96 = ref span142[num]; QuestSequence obj87 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 2014235u, new Vector3(-80.094604f, -19.333252f, 179.49182f), 1185) + index2 = 1; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + span144[num2] = new QuestStep(EInteractionType.Interact, 2014235u, new Vector3(-80.094604f, -19.333252f, 179.49182f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -350362,7 +425778,8 @@ public static class AssemblyQuestLoader }; obj87.Steps = list144; reference96 = obj87; - ref QuestSequence reference97 = ref span37[2]; + num++; + ref QuestSequence reference97 = ref span142[num]; QuestSequence obj88 = new QuestSequence { Sequence = 2 @@ -350370,18 +425787,23 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 2014236u, new Vector3(-154.34503f, -14.084106f, 548.24133f), 1185); + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.Interact, 2014236u, new Vector3(-154.34503f, -14.084106f, 548.24133f), 1185); obj88.Steps = list145; reference97 = obj88; - ref QuestSequence reference98 = ref span37[3]; + num++; + ref QuestSequence reference98 = ref span142[num]; QuestSequence obj89 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 2014237u, new Vector3(-124.77307f, -5.0202637f, 113.11511f), 1185) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.Interact, 2014237u, new Vector3(-124.77307f, -5.0202637f, 113.11511f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -350392,7 +425814,8 @@ public static class AssemblyQuestLoader }; obj89.Steps = list146; reference98 = obj89; - ref QuestSequence reference99 = ref span37[4]; + num++; + ref QuestSequence reference99 = ref span142[num]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -350400,7 +425823,9 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051042u, new Vector3(100.38904f, 47f, -230.27393f), 1185) + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051042u, new Vector3(100.38904f, 47f, -230.27393f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -350417,24 +425842,30 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - CollectionsMarshal.AsSpan(list148)[0] = "liza"; + Span span148 = CollectionsMarshal.AsSpan(list148); + index = 0; + span148[index] = "liza"; questRoot25.Author = list148; - num = 3; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span38 = CollectionsMarshal.AsSpan(list149); - ref QuestSequence reference100 = ref span38[0]; + index = 3; + List list149 = new List(index); + CollectionsMarshal.SetCount(list149, index); + Span span149 = CollectionsMarshal.AsSpan(list149); + num = 0; + ref QuestSequence reference100 = ref span149[num]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051043u, new Vector3(-276.99707f, 1.9748375E-05f, 71.97681f), 1185); + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051043u, new Vector3(-276.99707f, 1.9748375E-05f, 71.97681f), 1185); obj91.Steps = list150; reference100 = obj91; - ref QuestSequence reference101 = ref span38[1]; + num++; + ref QuestSequence reference101 = ref span149[num]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -350442,8 +425873,9 @@ public static class AssemblyQuestLoader num2 = 2; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span39 = CollectionsMarshal.AsSpan(list151); - ref QuestStep reference102 = ref span39[0]; + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + ref QuestStep reference102 = ref span151[index2]; QuestStep obj93 = new QuestStep(EInteractionType.Emote, 1051044u, new Vector3(-307.6372f, 3f, -50.8584f), 1185) { Emote = EEmote.Soothe @@ -350451,16 +425883,23 @@ public static class AssemblyQuestLoader num3 = 6; List list152 = new List(num3); CollectionsMarshal.SetCount(list152, num3); - Span span40 = CollectionsMarshal.AsSpan(list152); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span152 = CollectionsMarshal.AsSpan(list152); + index3 = 0; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = null; + index3++; + span152[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj93.CompletionQuestVariablesFlags = list152; reference102 = obj93; - ref QuestStep reference103 = ref span39[1]; + index2++; + ref QuestStep reference103 = ref span151[index2]; QuestStep obj94 = new QuestStep(EInteractionType.Emote, 1051045u, new Vector3(-49.42401f, -2.7939677E-09f, 16.647583f), 1185) { AethernetShortcut = new AethernetShortcut @@ -350470,29 +425909,38 @@ public static class AssemblyQuestLoader }, Emote = EEmote.Soothe }; - num3 = 6; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - Span span41 = CollectionsMarshal.AsSpan(list153); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list153 = new List(index3); + CollectionsMarshal.SetCount(list153, index3); + Span span153 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = null; + num3++; + span153[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj94.CompletionQuestVariablesFlags = list153; reference103 = obj94; obj92.Steps = list151; reference101 = obj92; - ref QuestSequence reference104 = ref span38[2]; + num++; + ref QuestSequence reference104 = ref span149[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051043u, new Vector3(-276.99707f, 1.9748375E-05f, 71.97681f), 1185) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051043u, new Vector3(-276.99707f, 1.9748375E-05f, 71.97681f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -350509,13 +425957,16 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - CollectionsMarshal.AsSpan(list155)[0] = "liza"; + Span span155 = CollectionsMarshal.AsSpan(list155); + index = 0; + span155[index] = "liza"; questRoot26.Author = list155; - num = 5; - List list156 = new List(num); - CollectionsMarshal.SetCount(list156, num); - Span span42 = CollectionsMarshal.AsSpan(list156); - ref QuestSequence reference105 = ref span42[0]; + index = 5; + List list156 = new List(index); + CollectionsMarshal.SetCount(list156, index); + Span span156 = CollectionsMarshal.AsSpan(list156); + num = 0; + ref QuestSequence reference105 = ref span156[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -350523,63 +425974,88 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185); + Span span157 = CollectionsMarshal.AsSpan(list157); + index2 = 0; + span157[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185); obj96.Steps = list157; reference105 = obj96; - ref QuestSequence reference106 = ref span42[1]; + num++; + ref QuestSequence reference106 = ref span156[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list158 = new List(num2); - CollectionsMarshal.SetCount(list158, num2); - Span span43 = CollectionsMarshal.AsSpan(list158); - ref QuestStep reference107 = ref span43[0]; + index2 = 3; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + ref QuestStep reference107 = ref span158[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2014238u, new Vector3(75.12012f, -17.990417f, 154.52808f), 1185); num3 = 6; List list159 = new List(num3); CollectionsMarshal.SetCount(list159, num3); - Span span44 = CollectionsMarshal.AsSpan(list159); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span159 = CollectionsMarshal.AsSpan(list159); + index3 = 0; + span159[index3] = null; + index3++; + span159[index3] = null; + index3++; + span159[index3] = null; + index3++; + span159[index3] = null; + index3++; + span159[index3] = null; + index3++; + span159[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list159; reference107 = questStep12; - ref QuestStep reference108 = ref span43[1]; + num2++; + ref QuestStep reference108 = ref span158[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2014239u, new Vector3(64.530396f, -17.990417f, 189.56274f), 1185); - num3 = 6; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - Span span45 = CollectionsMarshal.AsSpan(list160); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list160 = new List(index3); + CollectionsMarshal.SetCount(list160, index3); + Span span160 = CollectionsMarshal.AsSpan(list160); + num3 = 0; + span160[num3] = null; + num3++; + span160[num3] = null; + num3++; + span160[num3] = null; + num3++; + span160[num3] = null; + num3++; + span160[num3] = null; + num3++; + span160[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list160; reference108 = questStep13; - ref QuestStep reference109 = ref span43[2]; + num2++; + ref QuestStep reference109 = ref span158[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2014240u, new Vector3(131.91418f, -17.990417f, 112.2301f), 1185); num3 = 6; List list161 = new List(num3); CollectionsMarshal.SetCount(list161, num3); - Span span46 = CollectionsMarshal.AsSpan(list161); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span161 = CollectionsMarshal.AsSpan(list161); + index3 = 0; + span161[index3] = null; + index3++; + span161[index3] = null; + index3++; + span161[index3] = null; + index3++; + span161[index3] = null; + index3++; + span161[index3] = null; + index3++; + span161[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list161; reference109 = questStep14; obj97.Steps = list158; reference106 = obj97; - ref QuestSequence reference110 = ref span42[2]; + num++; + ref QuestSequence reference110 = ref span156[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 @@ -350587,18 +426063,23 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185); + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.Interact, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185); obj98.Steps = list162; reference110 = obj98; - ref QuestSequence reference111 = ref span42[3]; + num++; + ref QuestSequence reference111 = ref span156[num]; QuestSequence obj99 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list163)[0]; + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + ref QuestStep reference112 = ref span163[num2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1051048u, new Vector3(-227.95453f, 40.04104f, -42.648987f), 1185) { AethernetShortcut = new AethernetShortcut @@ -350607,10 +426088,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice + index3 = 1; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + Span span164 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span164[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZA012_05028_Q1_000_000"), @@ -350620,7 +426103,8 @@ public static class AssemblyQuestLoader reference112 = obj100; obj99.Steps = list163; reference111 = obj99; - ref QuestSequence reference113 = ref span42[4]; + num++; + ref QuestSequence reference113 = ref span156[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -350628,7 +426112,9 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185) + Span span165 = CollectionsMarshal.AsSpan(list165); + index2 = 0; + span165[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -350645,24 +426131,30 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "liza"; + Span span166 = CollectionsMarshal.AsSpan(list166); + index = 0; + span166[index] = "liza"; questRoot27.Author = list166; - num = 4; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - Span span47 = CollectionsMarshal.AsSpan(list167); - ref QuestSequence reference114 = ref span47[0]; + index = 4; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + Span span167 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference114 = ref span167[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048537u, new Vector3(-61.753296f, 99.99999f, -188.98297f), 1185); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048537u, new Vector3(-61.753296f, 99.99999f, -188.98297f), 1185); obj102.Steps = list168; reference114 = obj102; - ref QuestSequence reference115 = ref span47[1]; + num++; + ref QuestSequence reference115 = ref span167[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -350670,7 +426162,9 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) + Span span169 = CollectionsMarshal.AsSpan(list169); + index2 = 0; + span169[index2] = new QuestStep(EInteractionType.Interact, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -350681,60 +426175,83 @@ public static class AssemblyQuestLoader }; obj103.Steps = list169; reference115 = obj103; - ref QuestSequence reference116 = ref span47[2]; + num++; + ref QuestSequence reference116 = ref span167[num]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - Span span48 = CollectionsMarshal.AsSpan(list170); - ref QuestStep reference117 = ref span48[0]; + index2 = 3; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + ref QuestStep reference117 = ref span170[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1048547u, new Vector3(-39.35309f, -17.972866f, 198.38245f), 1185); num3 = 6; List list171 = new List(num3); CollectionsMarshal.SetCount(list171, num3); - Span span49 = CollectionsMarshal.AsSpan(list171); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span171 = CollectionsMarshal.AsSpan(list171); + index3 = 0; + span171[index3] = null; + index3++; + span171[index3] = null; + index3++; + span171[index3] = null; + index3++; + span171[index3] = null; + index3++; + span171[index3] = null; + index3++; + span171[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list171; reference117 = questStep15; - ref QuestStep reference118 = ref span48[1]; + num2++; + ref QuestStep reference118 = ref span170[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1048418u, new Vector3(-54.154297f, -17.972868f, 198.44348f), 1185); - num3 = 6; - List list172 = new List(num3); - CollectionsMarshal.SetCount(list172, num3); - Span span50 = CollectionsMarshal.AsSpan(list172); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list172 = new List(index3); + CollectionsMarshal.SetCount(list172, index3); + Span span172 = CollectionsMarshal.AsSpan(list172); + num3 = 0; + span172[num3] = null; + num3++; + span172[num3] = null; + num3++; + span172[num3] = null; + num3++; + span172[num3] = null; + num3++; + span172[num3] = null; + num3++; + span172[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list172; reference118 = questStep16; - ref QuestStep reference119 = ref span48[2]; + num2++; + ref QuestStep reference119 = ref span170[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1048546u, new Vector3(-60.83777f, -17.972868f, 197.07019f), 1185); num3 = 6; List list173 = new List(num3); CollectionsMarshal.SetCount(list173, num3); - Span span51 = CollectionsMarshal.AsSpan(list173); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span173 = CollectionsMarshal.AsSpan(list173); + index3 = 0; + span173[index3] = null; + index3++; + span173[index3] = null; + index3++; + span173[index3] = null; + index3++; + span173[index3] = null; + index3++; + span173[index3] = null; + index3++; + span173[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list173; reference119 = questStep17; obj104.Steps = list170; reference116 = obj104; - ref QuestSequence reference120 = ref span47[3]; + num++; + ref QuestSequence reference120 = ref span167[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -350742,7 +426259,9 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048537u, new Vector3(-61.753296f, 99.99999f, -188.98297f), 1185) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048537u, new Vector3(-61.753296f, 99.99999f, -188.98297f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -350759,24 +426278,30 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "liza"; + Span span175 = CollectionsMarshal.AsSpan(list175); + index = 0; + span175[index] = "liza"; questRoot28.Author = list175; - num = 3; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span52 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference121 = ref span52[0]; + index = 3; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + Span span176 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference121 = ref span176[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048650u, new Vector3(367.87964f, -156.28014f, -419.11957f), 1187); + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048650u, new Vector3(367.87964f, -156.28014f, -419.11957f), 1187); obj106.Steps = list177; reference121 = obj106; - ref QuestSequence reference122 = ref span52[1]; + num++; + ref QuestSequence reference122 = ref span176[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -350784,77 +426309,108 @@ public static class AssemblyQuestLoader num2 = 4; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span53 = CollectionsMarshal.AsSpan(list178); - ref QuestStep reference123 = ref span53[0]; + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + ref QuestStep reference123 = ref span178[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2014104u, new Vector3(374.77686f, -154.07043f, -373.52563f), 1187); - num3 = 6; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - Span span54 = CollectionsMarshal.AsSpan(list179); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list179 = new List(index3); + CollectionsMarshal.SetCount(list179, index3); + Span span179 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list179; reference123 = questStep18; - ref QuestStep reference124 = ref span53[1]; + index2++; + ref QuestStep reference124 = ref span178[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2014106u, new Vector3(327.90112f, -152.20874f, -369.31415f), 1187); num3 = 6; List list180 = new List(num3); CollectionsMarshal.SetCount(list180, num3); - Span span55 = CollectionsMarshal.AsSpan(list180); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span180 = CollectionsMarshal.AsSpan(list180); + index3 = 0; + span180[index3] = null; + index3++; + span180[index3] = null; + index3++; + span180[index3] = null; + index3++; + span180[index3] = null; + index3++; + span180[index3] = null; + index3++; + span180[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list180; reference124 = questStep19; - ref QuestStep reference125 = ref span53[2]; + index2++; + ref QuestStep reference125 = ref span178[index2]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 2014105u, new Vector3(330.6172f, -158.06824f, -399.8932f), 1187) { IgnoreDistanceToObject = true }; - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span56 = CollectionsMarshal.AsSpan(list181); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list181 = new List(index3); + CollectionsMarshal.SetCount(list181, index3); + Span span181 = CollectionsMarshal.AsSpan(list181); + num3 = 0; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj108.CompletionQuestVariablesFlags = list181; reference125 = obj108; - ref QuestStep reference126 = ref span53[3]; + index2++; + ref QuestStep reference126 = ref span178[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2014107u, new Vector3(275.7152f, -166.94897f, -462.7909f), 1187); num3 = 6; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - Span span57 = CollectionsMarshal.AsSpan(list182); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span182 = CollectionsMarshal.AsSpan(list182); + index3 = 0; + span182[index3] = null; + index3++; + span182[index3] = null; + index3++; + span182[index3] = null; + index3++; + span182[index3] = null; + index3++; + span182[index3] = null; + index3++; + span182[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list182; reference126 = questStep20; obj107.Steps = list178; reference122 = obj107; - ref QuestSequence reference127 = ref span52[2]; + num++; + ref QuestSequence reference127 = ref span176[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048650u, new Vector3(367.87964f, -156.28014f, -419.11957f), 1187); + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span183[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048650u, new Vector3(367.87964f, -156.28014f, -419.11957f), 1187); obj109.Steps = list183; reference127 = obj109; questRoot28.QuestSequence = list176; @@ -350864,13 +426420,16 @@ public static class AssemblyQuestLoader num = 1; List list184 = new List(num); CollectionsMarshal.SetCount(list184, num); - CollectionsMarshal.AsSpan(list184)[0] = "liza"; + Span span184 = CollectionsMarshal.AsSpan(list184); + index = 0; + span184[index] = "liza"; questRoot29.Author = list184; - num = 3; - List list185 = new List(num); - CollectionsMarshal.SetCount(list185, num); - Span span58 = CollectionsMarshal.AsSpan(list185); - ref QuestSequence reference128 = ref span58[0]; + index = 3; + List list185 = new List(index); + CollectionsMarshal.SetCount(list185, index); + Span span185 = CollectionsMarshal.AsSpan(list185); + num = 0; + ref QuestSequence reference128 = ref span185[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -350878,37 +426437,48 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048649u, new Vector3(357.86987f, -155.91757f, -370.1076f), 1187); + Span span186 = CollectionsMarshal.AsSpan(list186); + index2 = 0; + span186[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048649u, new Vector3(357.86987f, -155.91757f, -370.1076f), 1187); obj110.Steps = list186; reference128 = obj110; - ref QuestSequence reference129 = ref span58[1]; + num++; + ref QuestSequence reference129 = ref span185[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - Span span59 = CollectionsMarshal.AsSpan(list187); - ref QuestStep reference130 = ref span59[0]; + index2 = 2; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + ref QuestStep reference130 = ref span187[num2]; QuestStep obj112 = new QuestStep(EInteractionType.UseItem, 1050671u, new Vector3(191.97375f, -87.10133f, -277.39374f), 1187) { Fly = true, ItemId = 2003601u }; - num3 = 6; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span60 = CollectionsMarshal.AsSpan(list188); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list188 = new List(index3); + CollectionsMarshal.SetCount(list188, index3); + Span span188 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj112.CompletionQuestVariablesFlags = list188; reference130 = obj112; - ref QuestStep reference131 = ref span59[1]; + num2++; + ref QuestStep reference131 = ref span187[num2]; QuestStep obj113 = new QuestStep(EInteractionType.UseItem, 1050670u, new Vector3(132.86023f, -75.24902f, -213.2143f), 1187) { Fly = true, @@ -350917,18 +426487,25 @@ public static class AssemblyQuestLoader num3 = 6; List list189 = new List(num3); CollectionsMarshal.SetCount(list189, num3); - Span span61 = CollectionsMarshal.AsSpan(list189); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span189 = CollectionsMarshal.AsSpan(list189); + index3 = 0; + span189[index3] = null; + index3++; + span189[index3] = null; + index3++; + span189[index3] = null; + index3++; + span189[index3] = null; + index3++; + span189[index3] = null; + index3++; + span189[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj113.CompletionQuestVariablesFlags = list189; reference131 = obj113; obj111.Steps = list187; reference129 = obj111; - ref QuestSequence reference132 = ref span58[2]; + num++; + ref QuestSequence reference132 = ref span185[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue @@ -350936,7 +426513,9 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048649u, new Vector3(357.86987f, -155.91757f, -370.1076f), 1187) + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + span190[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048649u, new Vector3(357.86987f, -155.91757f, -370.1076f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; @@ -350949,24 +426528,30 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - CollectionsMarshal.AsSpan(list191)[0] = "liza"; + Span span191 = CollectionsMarshal.AsSpan(list191); + index = 0; + span191[index] = "liza"; questRoot30.Author = list191; - num = 3; - List list192 = new List(num); - CollectionsMarshal.SetCount(list192, num); - Span span62 = CollectionsMarshal.AsSpan(list192); - ref QuestSequence reference133 = ref span62[0]; + index = 3; + List list192 = new List(index); + CollectionsMarshal.SetCount(list192, index); + Span span192 = CollectionsMarshal.AsSpan(list192); + num = 0; + ref QuestSequence reference133 = ref span192[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048712u, new Vector3(446.67737f, -116.815155f, -178.75946f), 1187); + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048712u, new Vector3(446.67737f, -116.815155f, -178.75946f), 1187); obj115.Steps = list193; reference133 = obj115; - ref QuestSequence reference134 = ref span62[1]; + num++; + ref QuestSequence reference134 = ref span192[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 @@ -350974,21 +426559,26 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1050672u, new Vector3(550.65234f, -54.46781f, 42.83203f), 1187) + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = new QuestStep(EInteractionType.Interact, 1050672u, new Vector3(550.65234f, -54.46781f, 42.83203f), 1187) { Fly = true }; obj116.Steps = list194; reference134 = obj116; - ref QuestSequence reference135 = ref span62[2]; + num++; + ref QuestSequence reference135 = ref span192[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048712u, new Vector3(446.67737f, -116.815155f, -178.75946f), 1187) + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048712u, new Vector3(446.67737f, -116.815155f, -178.75946f), 1187) { Fly = true }; @@ -351001,13 +426591,16 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - CollectionsMarshal.AsSpan(list196)[0] = "liza"; + Span span196 = CollectionsMarshal.AsSpan(list196); + index = 0; + span196[index] = "liza"; questRoot31.Author = list196; - num = 3; - List list197 = new List(num); - CollectionsMarshal.SetCount(list197, num); - Span span63 = CollectionsMarshal.AsSpan(list197); - ref QuestSequence reference136 = ref span63[0]; + index = 3; + List list197 = new List(index); + CollectionsMarshal.SetCount(list197, index); + Span span197 = CollectionsMarshal.AsSpan(list197); + num = 0; + ref QuestSequence reference136 = ref span197[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 @@ -351015,27 +426608,33 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050673u, new Vector3(375.6007f, -116.81515f, -175.03625f), 1187); + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span198[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050673u, new Vector3(375.6007f, -116.81515f, -175.03625f), 1187); obj118.Steps = list198; reference136 = obj118; - ref QuestSequence reference137 = ref span63[1]; + num++; + ref QuestSequence reference137 = ref span197[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - Span span64 = CollectionsMarshal.AsSpan(list199); - span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(522.757f, -54.457268f, 57.29732f), 1187) + index2 = 2; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + Span span199 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span199[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(522.757f, -54.457268f, 57.29732f), 1187) { StopDistance = 0.5f, Fly = true }; - span64[1] = new QuestStep(EInteractionType.Interact, 2014108u, new Vector3(521.84326f, -53.543945f, 57.938477f), 1187); + num2++; + span199[num2] = new QuestStep(EInteractionType.Interact, 2014108u, new Vector3(521.84326f, -53.543945f, 57.938477f), 1187); obj119.Steps = list199; reference137 = obj119; - ref QuestSequence reference138 = ref span63[2]; + num++; + ref QuestSequence reference138 = ref span197[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -351043,7 +426642,9 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050673u, new Vector3(375.6007f, -116.81515f, -175.03625f), 1187) + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span200[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050673u, new Vector3(375.6007f, -116.81515f, -175.03625f), 1187) { Fly = true }; @@ -351056,24 +426657,30 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "liza"; + Span span201 = CollectionsMarshal.AsSpan(list201); + index = 0; + span201[index] = "liza"; questRoot32.Author = list201; - num = 4; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span65 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference139 = ref span65[0]; + index = 4; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + Span span202 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference139 = ref span202[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048694u, new Vector3(-401.7243f, -46.3959f, -449.5766f), 1187); + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048694u, new Vector3(-401.7243f, -46.3959f, -449.5766f), 1187); obj121.Steps = list203; reference139 = obj121; - ref QuestSequence reference140 = ref span65[1]; + num++; + ref QuestSequence reference140 = ref span202[num]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -351081,36 +426688,47 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1050674u, new Vector3(-388.4795f, -46.297935f, -498.10028f), 1187); + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + span204[index2] = new QuestStep(EInteractionType.Interact, 1050674u, new Vector3(-388.4795f, -46.297935f, -498.10028f), 1187); obj122.Steps = list204; reference140 = obj122; - ref QuestSequence reference141 = ref span65[2]; + num++; + ref QuestSequence reference141 = ref span202[num]; QuestSequence obj123 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list205 = new List(num2); - CollectionsMarshal.SetCount(list205, num2); - Span span66 = CollectionsMarshal.AsSpan(list205); - ref QuestStep reference142 = ref span66[0]; + index2 = 3; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + Span span205 = CollectionsMarshal.AsSpan(list205); + num2 = 0; + ref QuestStep reference142 = ref span205[num2]; QuestStep obj124 = new QuestStep(EInteractionType.UseItem, null, new Vector3(-388.4795f, -46.297935f, -498.10028f), 1187) { ItemId = 2003604u }; - num3 = 6; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - Span span67 = CollectionsMarshal.AsSpan(list206); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list206 = new List(index3); + CollectionsMarshal.SetCount(list206, index3); + Span span206 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = null; + num3++; + span206[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj124.CompletionQuestVariablesFlags = list206; reference142 = obj124; - ref QuestStep reference143 = ref span66[1]; + num2++; + ref QuestStep reference143 = ref span205[num2]; QuestStep obj125 = new QuestStep(EInteractionType.UseItem, null, new Vector3(-388.4795f, -46.297935f, -498.10028f), 1187) { ItemId = 2003605u @@ -351118,35 +426736,49 @@ public static class AssemblyQuestLoader num3 = 6; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - Span span68 = CollectionsMarshal.AsSpan(list207); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span207 = CollectionsMarshal.AsSpan(list207); + index3 = 0; + span207[index3] = null; + index3++; + span207[index3] = null; + index3++; + span207[index3] = null; + index3++; + span207[index3] = null; + index3++; + span207[index3] = null; + index3++; + span207[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj125.CompletionQuestVariablesFlags = list207; reference143 = obj125; - ref QuestStep reference144 = ref span66[2]; + num2++; + ref QuestStep reference144 = ref span205[num2]; QuestStep obj126 = new QuestStep(EInteractionType.UseItem, null, new Vector3(-388.4795f, -46.297935f, -498.10028f), 1187) { ItemId = 2003606u }; - num3 = 6; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - Span span69 = CollectionsMarshal.AsSpan(list208); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list208 = new List(index3); + CollectionsMarshal.SetCount(list208, index3); + Span span208 = CollectionsMarshal.AsSpan(list208); + num3 = 0; + span208[num3] = null; + num3++; + span208[num3] = null; + num3++; + span208[num3] = null; + num3++; + span208[num3] = null; + num3++; + span208[num3] = null; + num3++; + span208[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj126.CompletionQuestVariablesFlags = list208; reference144 = obj126; obj123.Steps = list205; reference141 = obj123; - ref QuestSequence reference145 = ref span65[3]; + num++; + ref QuestSequence reference145 = ref span202[num]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -351154,12 +426786,16 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - ref QuestStep reference146 = ref CollectionsMarshal.AsSpan(list209)[0]; + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + ref QuestStep reference146 = ref span209[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.CompleteQuest, 1048694u, new Vector3(-401.7243f, -46.3959f, -449.5766f), 1187); num3 = 1; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice + Span span210 = CollectionsMarshal.AsSpan(list210); + index3 = 0; + span210[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZB005_05034_Q1_000_000"), @@ -351176,24 +426812,30 @@ public static class AssemblyQuestLoader num = 1; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - CollectionsMarshal.AsSpan(list211)[0] = "liza"; + Span span211 = CollectionsMarshal.AsSpan(list211); + index = 0; + span211[index] = "liza"; questRoot33.Author = list211; - num = 4; - List list212 = new List(num); - CollectionsMarshal.SetCount(list212, num); - Span span70 = CollectionsMarshal.AsSpan(list212); - ref QuestSequence reference147 = ref span70[0]; + index = 4; + List list212 = new List(index); + CollectionsMarshal.SetCount(list212, index); + Span span212 = CollectionsMarshal.AsSpan(list212); + num = 0; + ref QuestSequence reference147 = ref span212[num]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050675u, new Vector3(-421.80518f, -45.817875f, -496.14713f), 1187); + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span213 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span213[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050675u, new Vector3(-421.80518f, -45.817875f, -496.14713f), 1187); obj128.Steps = list213; reference147 = obj128; - ref QuestSequence reference148 = ref span70[1]; + num++; + ref QuestSequence reference148 = ref span212[num]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -351201,27 +426843,33 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1048690u, new Vector3(-406.42407f, -41.099792f, -565.6062f), 1187) + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.Interact, 1048690u, new Vector3(-406.42407f, -41.099792f, -565.6062f), 1187) { Fly = true }; obj129.Steps = list214; reference148 = obj129; - ref QuestSequence reference149 = ref span70[2]; + num++; + ref QuestSequence reference149 = ref span212[num]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1050676u, new Vector3(-517.052f, -11.170306f, -652.58264f), 1187) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.Interact, 1050676u, new Vector3(-517.052f, -11.170306f, -652.58264f), 1187) { Fly = true }; obj130.Steps = list215; reference149 = obj130; - ref QuestSequence reference150 = ref span70[3]; + num++; + ref QuestSequence reference150 = ref span212[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -351229,7 +426877,9 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050716u, new Vector3(-421.80518f, -45.817875f, -496.14713f), 1187) + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span216[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050716u, new Vector3(-421.80518f, -45.817875f, -496.14713f), 1187) { Fly = true }; @@ -351242,24 +426892,30 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "liza"; + Span span217 = CollectionsMarshal.AsSpan(list217); + index = 0; + span217[index] = "liza"; questRoot34.Author = list217; - num = 5; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - Span span71 = CollectionsMarshal.AsSpan(list218); - ref QuestSequence reference151 = ref span71[0]; + index = 5; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + Span span218 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference151 = ref span218[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050678u, new Vector3(-103.4715f, -128.19942f, -465.90375f), 1187); + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + Span span219 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span219[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050678u, new Vector3(-103.4715f, -128.19942f, -465.90375f), 1187); obj132.Steps = list219; reference151 = obj132; - ref QuestSequence reference152 = ref span71[1]; + num++; + ref QuestSequence reference152 = ref span218[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -351267,38 +426923,46 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - ref QuestStep reference153 = ref CollectionsMarshal.AsSpan(list220)[0]; + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + ref QuestStep reference153 = ref span220[index2]; QuestStep obj134 = new QuestStep(EInteractionType.Combat, 1050680u, new Vector3(-67.91791f, -140.2539f, -676.7224f), 1187) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list221 = new List(num3); - CollectionsMarshal.SetCount(list221, num3); - Span span72 = CollectionsMarshal.AsSpan(list221); - span72[0] = 17643u; - span72[1] = 17644u; + index3 = 2; + List list221 = new List(index3); + CollectionsMarshal.SetCount(list221, index3); + Span span221 = CollectionsMarshal.AsSpan(list221); + num3 = 0; + span221[num3] = 17643u; + num3++; + span221[num3] = 17644u; obj134.KillEnemyDataIds = list221; reference153 = obj134; obj133.Steps = list220; reference152 = obj133; - ref QuestSequence reference154 = ref span71[2]; + num++; + ref QuestSequence reference154 = ref span218[num]; QuestSequence obj135 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1050680u, new Vector3(-67.91791f, -140.2539f, -676.7224f), 1187) + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + Span span222 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span222[num2] = new QuestStep(EInteractionType.Interact, 1050680u, new Vector3(-67.91791f, -140.2539f, -676.7224f), 1187) { StopDistance = 7f }; obj135.Steps = list222; reference154 = obj135; - ref QuestSequence reference155 = ref span71[3]; + num++; + ref QuestSequence reference155 = ref span218[num]; QuestSequence obj136 = new QuestSequence { Sequence = 3 @@ -351306,21 +426970,26 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 2014112u, new Vector3(-68.07056f, -140.15417f, -678.9197f), 1187) + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span223[index2] = new QuestStep(EInteractionType.Interact, 2014112u, new Vector3(-68.07056f, -140.15417f, -678.9197f), 1187) { StopDistance = 4.5f }; obj136.Steps = list223; reference155 = obj136; - ref QuestSequence reference156 = ref span71[4]; + num++; + ref QuestSequence reference156 = ref span218[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050678u, new Vector3(-103.4715f, -128.19942f, -465.90375f), 1187) + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span224[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050678u, new Vector3(-103.4715f, -128.19942f, -465.90375f), 1187) { Fly = true }; @@ -351333,13 +427002,16 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - CollectionsMarshal.AsSpan(list225)[0] = "liza"; + Span span225 = CollectionsMarshal.AsSpan(list225); + index = 0; + span225[index] = "liza"; questRoot35.Author = list225; - num = 4; - List list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - Span span73 = CollectionsMarshal.AsSpan(list226); - ref QuestSequence reference157 = ref span73[0]; + index = 4; + List list226 = new List(index); + CollectionsMarshal.SetCount(list226, index); + Span span226 = CollectionsMarshal.AsSpan(list226); + num = 0; + ref QuestSequence reference157 = ref span226[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -351347,23 +427019,28 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048666u, new Vector3(-54.8562f, -130.17744f, -443.1983f), 1187); + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048666u, new Vector3(-54.8562f, -130.17744f, -443.1983f), 1187); obj138.Steps = list227; reference157 = obj138; - ref QuestSequence reference158 = ref span73[1]; + num++; + ref QuestSequence reference158 = ref span226[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - Span span74 = CollectionsMarshal.AsSpan(list228); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-192.7804f, -68.15436f, -139.24495f), 1187) + index2 = 2; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-192.7804f, -68.15436f, -139.24495f), 1187) { Fly = true }; - span74[1] = new QuestStep(EInteractionType.UseItem, 1050683u, new Vector3(-194.32367f, -67.68594f, -135.57642f), 1187) + num2++; + span228[num2] = new QuestStep(EInteractionType.UseItem, 1050683u, new Vector3(-194.32367f, -67.68594f, -135.57642f), 1187) { StopDistance = 5f, ItemId = 2003608u, @@ -351371,7 +427048,8 @@ public static class AssemblyQuestLoader }; obj139.Steps = list228; reference158 = obj139; - ref QuestSequence reference159 = ref span73[2]; + num++; + ref QuestSequence reference159 = ref span226[num]; QuestSequence obj140 = new QuestSequence { Sequence = 2 @@ -351379,64 +427057,87 @@ public static class AssemblyQuestLoader num2 = 3; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span75 = CollectionsMarshal.AsSpan(list229); - ref QuestStep reference160 = ref span75[0]; + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + ref QuestStep reference160 = ref span229[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 2014115u, new Vector3(-191.63806f, -67.216064f, -130.11371f), 1187); num3 = 6; List list230 = new List(num3); CollectionsMarshal.SetCount(list230, num3); - Span span76 = CollectionsMarshal.AsSpan(list230); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span230 = CollectionsMarshal.AsSpan(list230); + index3 = 0; + span230[index3] = null; + index3++; + span230[index3] = null; + index3++; + span230[index3] = null; + index3++; + span230[index3] = null; + index3++; + span230[index3] = null; + index3++; + span230[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list230; reference160 = questStep22; - ref QuestStep reference161 = ref span75[1]; + index2++; + ref QuestStep reference161 = ref span229[index2]; QuestStep obj141 = new QuestStep(EInteractionType.Interact, 2014114u, new Vector3(-194.78143f, -67.24658f, -131.27338f), 1187) { StopDistance = 4.5f }; - num3 = 6; - List list231 = new List(num3); - CollectionsMarshal.SetCount(list231, num3); - Span span77 = CollectionsMarshal.AsSpan(list231); - span77[0] = null; - span77[1] = null; - span77[2] = null; - span77[3] = null; - span77[4] = null; - span77[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list231 = new List(index3); + CollectionsMarshal.SetCount(list231, index3); + Span span231 = CollectionsMarshal.AsSpan(list231); + num3 = 0; + span231[num3] = null; + num3++; + span231[num3] = null; + num3++; + span231[num3] = null; + num3++; + span231[num3] = null; + num3++; + span231[num3] = null; + num3++; + span231[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj141.CompletionQuestVariablesFlags = list231; reference161 = obj141; - ref QuestStep reference162 = ref span75[2]; + index2++; + ref QuestStep reference162 = ref span229[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 2014113u, new Vector3(-197.9859f, -66.971924f, -130.87665f), 1187); num3 = 6; List list232 = new List(num3); CollectionsMarshal.SetCount(list232, num3); - Span span78 = CollectionsMarshal.AsSpan(list232); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span232 = CollectionsMarshal.AsSpan(list232); + index3 = 0; + span232[index3] = null; + index3++; + span232[index3] = null; + index3++; + span232[index3] = null; + index3++; + span232[index3] = null; + index3++; + span232[index3] = null; + index3++; + span232[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list232; reference162 = questStep23; obj140.Steps = list229; reference159 = obj140; - ref QuestSequence reference163 = ref span73[3]; + num++; + ref QuestSequence reference163 = ref span226[num]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - Span span79 = CollectionsMarshal.AsSpan(list233); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-57.510014f, -130.50172f, -442.2758f), 1187) + index2 = 2; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + Span span233 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span233[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-57.510014f, -130.50172f, -442.2758f), 1187) { Fly = true, SkipConditions = new SkipConditions @@ -351447,7 +427148,8 @@ public static class AssemblyQuestLoader } } }; - span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1048666u, new Vector3(-54.8562f, -130.17744f, -443.1983f), 1187); + num2++; + span233[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048666u, new Vector3(-54.8562f, -130.17744f, -443.1983f), 1187); obj142.Steps = list233; reference163 = obj142; questRoot35.QuestSequence = list226; @@ -351457,13 +427159,16 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - CollectionsMarshal.AsSpan(list234)[0] = "liza"; + Span span234 = CollectionsMarshal.AsSpan(list234); + index = 0; + span234[index] = "liza"; questRoot36.Author = list234; - num = 3; - List list235 = new List(num); - CollectionsMarshal.SetCount(list235, num); - Span span80 = CollectionsMarshal.AsSpan(list235); - ref QuestSequence reference164 = ref span80[0]; + index = 3; + List list235 = new List(index); + CollectionsMarshal.SetCount(list235, index); + Span span235 = CollectionsMarshal.AsSpan(list235); + num = 0; + ref QuestSequence reference164 = ref span235[num]; QuestSequence obj143 = new QuestSequence { Sequence = 0 @@ -351471,33 +427176,41 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048658u, new Vector3(365.46875f, -146.10005f, -465.01874f), 1187); + Span span236 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span236[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048658u, new Vector3(365.46875f, -146.10005f, -465.01874f), 1187); obj143.Steps = list236; reference164 = obj143; - ref QuestSequence reference165 = ref span80[1]; + num++; + ref QuestSequence reference165 = ref span235[num]; QuestSequence obj144 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - ref QuestStep reference166 = ref CollectionsMarshal.AsSpan(list237)[0]; + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + Span span237 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + ref QuestStep reference166 = ref span237[num2]; QuestStep obj145 = new QuestStep(EInteractionType.Combat, 2014116u, new Vector3(-6.1189575f, -99.50415f, -247.97437f), 1187) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list238 = new List(num3); - CollectionsMarshal.SetCount(list238, num3); - CollectionsMarshal.AsSpan(list238)[0] = 17645u; + index3 = 1; + List list238 = new List(index3); + CollectionsMarshal.SetCount(list238, index3); + Span span238 = CollectionsMarshal.AsSpan(list238); + num3 = 0; + span238[num3] = 17645u; obj145.KillEnemyDataIds = list238; reference166 = obj145; obj144.Steps = list237; reference165 = obj144; - ref QuestSequence reference167 = ref span80[2]; + num++; + ref QuestSequence reference167 = ref span235[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -351505,7 +427218,9 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048658u, new Vector3(365.46875f, -146.10005f, -465.01874f), 1187) + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048658u, new Vector3(365.46875f, -146.10005f, -465.01874f), 1187) { StopDistance = 0.5f, Fly = true, @@ -351520,24 +427235,30 @@ public static class AssemblyQuestLoader num = 1; List list240 = new List(num); CollectionsMarshal.SetCount(list240, num); - CollectionsMarshal.AsSpan(list240)[0] = "liza"; + Span span240 = CollectionsMarshal.AsSpan(list240); + index = 0; + span240[index] = "liza"; questRoot37.Author = list240; - num = 4; - List list241 = new List(num); - CollectionsMarshal.SetCount(list241, num); - Span span81 = CollectionsMarshal.AsSpan(list241); - ref QuestSequence reference168 = ref span81[0]; + index = 4; + List list241 = new List(index); + CollectionsMarshal.SetCount(list241, index); + Span span241 = CollectionsMarshal.AsSpan(list241); + num = 0; + ref QuestSequence reference168 = ref span241[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050684u, new Vector3(391.37854f, -156.07434f, -388.50995f), 1187); + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050684u, new Vector3(391.37854f, -156.07434f, -388.50995f), 1187); obj147.Steps = list242; reference168 = obj147; - ref QuestSequence reference169 = ref span81[1]; + num++; + ref QuestSequence reference169 = ref span241[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -351545,7 +427266,9 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list243)[0]; + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + ref QuestStep reference170 = ref span243[index2]; QuestStep obj149 = new QuestStep(EInteractionType.Combat, null, new Vector3(258.56268f, -129.27074f, -351.33496f), 1187) { StopDistance = 0.25f, @@ -351554,26 +427277,32 @@ public static class AssemblyQuestLoader num3 = 1; List list244 = new List(num3); CollectionsMarshal.SetCount(list244, num3); - CollectionsMarshal.AsSpan(list244)[0] = 17646u; + Span span244 = CollectionsMarshal.AsSpan(list244); + index3 = 0; + span244[index3] = 17646u; obj149.KillEnemyDataIds = list244; reference170 = obj149; obj148.Steps = list243; reference169 = obj148; - ref QuestSequence reference171 = ref span81[2]; + num++; + ref QuestSequence reference171 = ref span241[num]; QuestSequence obj150 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1050685u, new Vector3(256.94666f, -129.72865f, -355.73358f), 1187) + index2 = 1; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + Span span245 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + span245[num2] = new QuestStep(EInteractionType.Interact, 1050685u, new Vector3(256.94666f, -129.72865f, -355.73358f), 1187) { StopDistance = 7f }; obj150.Steps = list245; reference171 = obj150; - ref QuestSequence reference172 = ref span81[3]; + num++; + ref QuestSequence reference172 = ref span241[num]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue @@ -351581,7 +427310,9 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050684u, new Vector3(391.37854f, -156.07434f, -388.50995f), 1187) + Span span246 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span246[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050684u, new Vector3(391.37854f, -156.07434f, -388.50995f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; @@ -351594,21 +427325,26 @@ public static class AssemblyQuestLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - CollectionsMarshal.AsSpan(list247)[0] = "liza"; + Span span247 = CollectionsMarshal.AsSpan(list247); + index = 0; + span247[index] = "liza"; questRoot38.Author = list247; - num = 3; - List list248 = new List(num); - CollectionsMarshal.SetCount(list248, num); - Span span82 = CollectionsMarshal.AsSpan(list248); - ref QuestSequence reference173 = ref span82[0]; + index = 3; + List list248 = new List(index); + CollectionsMarshal.SetCount(list248, index); + Span span248 = CollectionsMarshal.AsSpan(list248); + num = 0; + ref QuestSequence reference173 = ref span248[num]; QuestSequence obj152 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051369u, new Vector3(357.83923f, -156.11935f, -386.43475f), 1187) + index2 = 1; + List list249 = new List(index2); + CollectionsMarshal.SetCount(list249, index2); + Span span249 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span249[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051369u, new Vector3(357.83923f, -156.11935f, -386.43475f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, SkipConditions = new SkipConditions @@ -351621,7 +427357,8 @@ public static class AssemblyQuestLoader }; obj152.Steps = list249; reference173 = obj152; - ref QuestSequence reference174 = ref span82[1]; + num++; + ref QuestSequence reference174 = ref span248[num]; QuestSequence obj153 = new QuestSequence { Sequence = 1 @@ -351629,18 +427366,23 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1051370u, new Vector3(302.02173f, -163.4447f, -420.34027f), 1187); + Span span250 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span250[index2] = new QuestStep(EInteractionType.Interact, 1051370u, new Vector3(302.02173f, -163.4447f, -420.34027f), 1187); obj153.Steps = list250; reference174 = obj153; - ref QuestSequence reference175 = ref span82[2]; + num++; + ref QuestSequence reference175 = ref span248[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051371u, new Vector3(303.02893f, -163.416f, -421.53052f), 1187); + index2 = 1; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + Span span251 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + span251[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051371u, new Vector3(303.02893f, -163.416f, -421.53052f), 1187); obj154.Steps = list251; reference175 = obj154; questRoot38.QuestSequence = list248; @@ -351650,13 +427392,16 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - CollectionsMarshal.AsSpan(list252)[0] = "liza"; + Span span252 = CollectionsMarshal.AsSpan(list252); + index = 0; + span252[index] = "liza"; questRoot39.Author = list252; - num = 3; - List list253 = new List(num); - CollectionsMarshal.SetCount(list253, num); - Span span83 = CollectionsMarshal.AsSpan(list253); - ref QuestSequence reference176 = ref span83[0]; + index = 3; + List list253 = new List(index); + CollectionsMarshal.SetCount(list253, index); + Span span253 = CollectionsMarshal.AsSpan(list253); + num = 0; + ref QuestSequence reference176 = ref span253[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -351664,39 +427409,50 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050689u, new Vector3(-147.2649f, 40.238018f, 44.449463f), 1187) + Span span254 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span254[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050689u, new Vector3(-147.2649f, 40.238018f, 44.449463f), 1187) { StopDistance = 5f }; obj155.Steps = list254; reference176 = obj155; - ref QuestSequence reference177 = ref span83[1]; + num++; + ref QuestSequence reference177 = ref span253[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - Span span84 = CollectionsMarshal.AsSpan(list255); - ref QuestStep reference178 = ref span84[0]; + index2 = 3; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span255 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + ref QuestStep reference178 = ref span255[num2]; QuestStep obj157 = new QuestStep(EInteractionType.Interact, 2014120u, new Vector3(-624.5365f, 63.46228f, 210.8949f), 1187) { Fly = true }; - num3 = 6; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - Span span85 = CollectionsMarshal.AsSpan(list256); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list256 = new List(index3); + CollectionsMarshal.SetCount(list256, index3); + Span span256 = CollectionsMarshal.AsSpan(list256); + num3 = 0; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj157.CompletionQuestVariablesFlags = list256; reference178 = obj157; - ref QuestStep reference179 = ref span84[1]; + num2++; + ref QuestStep reference179 = ref span255[num2]; QuestStep obj158 = new QuestStep(EInteractionType.Combat, 2014121u, new Vector3(-663.9048f, 61.875244f, 207.20227f), 1187) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -351704,37 +427460,53 @@ public static class AssemblyQuestLoader num3 = 1; List list257 = new List(num3); CollectionsMarshal.SetCount(list257, num3); - CollectionsMarshal.AsSpan(list257)[0] = 17647u; + Span span257 = CollectionsMarshal.AsSpan(list257); + index3 = 0; + span257[index3] = 17647u; obj158.KillEnemyDataIds = list257; - num3 = 6; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - Span span86 = CollectionsMarshal.AsSpan(list258); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list258 = new List(index3); + CollectionsMarshal.SetCount(list258, index3); + Span span258 = CollectionsMarshal.AsSpan(list258); + num3 = 0; + span258[num3] = null; + num3++; + span258[num3] = null; + num3++; + span258[num3] = null; + num3++; + span258[num3] = null; + num3++; + span258[num3] = null; + num3++; + span258[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj158.CompletionQuestVariablesFlags = list258; reference179 = obj158; - ref QuestStep reference180 = ref span84[2]; + num2++; + ref QuestStep reference180 = ref span255[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 2014119u, new Vector3(-658.4421f, 59.03711f, 182.42151f), 1187); num3 = 6; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - Span span87 = CollectionsMarshal.AsSpan(list259); - span87[0] = null; - span87[1] = null; - span87[2] = null; - span87[3] = null; - span87[4] = null; - span87[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span259 = CollectionsMarshal.AsSpan(list259); + index3 = 0; + span259[index3] = null; + index3++; + span259[index3] = null; + index3++; + span259[index3] = null; + index3++; + span259[index3] = null; + index3++; + span259[index3] = null; + index3++; + span259[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list259; reference180 = questStep24; obj156.Steps = list255; reference177 = obj156; - ref QuestSequence reference181 = ref span83[2]; + num++; + ref QuestSequence reference181 = ref span253[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -351742,7 +427514,9 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050689u, new Vector3(-147.2649f, 40.238018f, 44.449463f), 1187) + Span span260 = CollectionsMarshal.AsSpan(list260); + index2 = 0; + span260[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050689u, new Vector3(-147.2649f, 40.238018f, 44.449463f), 1187) { StopDistance = 5f, Fly = true @@ -351756,27 +427530,33 @@ public static class AssemblyQuestLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - CollectionsMarshal.AsSpan(list261)[0] = "liza"; + Span span261 = CollectionsMarshal.AsSpan(list261); + index = 0; + span261[index] = "liza"; questRoot40.Author = list261; - num = 5; - List list262 = new List(num); - CollectionsMarshal.SetCount(list262, num); - Span span88 = CollectionsMarshal.AsSpan(list262); - ref QuestSequence reference182 = ref span88[0]; + index = 5; + List list262 = new List(index); + CollectionsMarshal.SetCount(list262, index); + Span span262 = CollectionsMarshal.AsSpan(list262); + num = 0; + ref QuestSequence reference182 = ref span262[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050690u, new Vector3(-82.993835f, 16.354095f, 19.150085f), 1187) + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + Span span263 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span263[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050690u, new Vector3(-82.993835f, 16.354095f, 19.150085f), 1187) { StopDistance = 5f }; obj160.Steps = list263; reference182 = obj160; - ref QuestSequence reference183 = ref span88[1]; + num++; + ref QuestSequence reference183 = ref span262[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -351784,24 +427564,30 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 2014123u, new Vector3(-84.55023f, 16.830688f, 17.288391f), 1187) + Span span264 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span264[index2] = new QuestStep(EInteractionType.Interact, 2014123u, new Vector3(-84.55023f, 16.830688f, 17.288391f), 1187) { StopDistance = 4.5f }; obj161.Steps = list264; reference183 = obj161; - ref QuestSequence reference184 = ref span88[2]; + num++; + ref QuestSequence reference184 = ref span262[num]; QuestSequence obj162 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 2014124u, new Vector3(-299.64142f, 62.638306f, -66.331055f), 1187); + index2 = 1; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + Span span265 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span265[num2] = new QuestStep(EInteractionType.Interact, 2014124u, new Vector3(-299.64142f, 62.638306f, -66.331055f), 1187); obj162.Steps = list265; reference184 = obj162; - ref QuestSequence reference185 = ref span88[3]; + num++; + ref QuestSequence reference185 = ref span262[num]; QuestSequence obj163 = new QuestSequence { Sequence = 3 @@ -351809,21 +427595,26 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1050691u, new Vector3(-300.28235f, 62.68029f, -68.89453f), 1187) + Span span266 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span266[index2] = new QuestStep(EInteractionType.Interact, 1050691u, new Vector3(-300.28235f, 62.68029f, -68.89453f), 1187) { StopDistance = 7f }; obj163.Steps = list266; reference185 = obj163; - ref QuestSequence reference186 = ref span88[4]; + num++; + ref QuestSequence reference186 = ref span262[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050690u, new Vector3(-82.993835f, 16.354095f, 19.150085f), 1187) + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span267[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050690u, new Vector3(-82.993835f, 16.354095f, 19.150085f), 1187) { StopDistance = 5f, Fly = true, @@ -351838,13 +427629,16 @@ public static class AssemblyQuestLoader num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - CollectionsMarshal.AsSpan(list268)[0] = "liza"; + Span span268 = CollectionsMarshal.AsSpan(list268); + index = 0; + span268[index] = "liza"; questRoot41.Author = list268; - num = 3; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - Span span89 = CollectionsMarshal.AsSpan(list269); - ref QuestSequence reference187 = ref span89[0]; + index = 3; + List list269 = new List(index); + CollectionsMarshal.SetCount(list269, index); + Span span269 = CollectionsMarshal.AsSpan(list269); + num = 0; + ref QuestSequence reference187 = ref span269[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 @@ -351852,40 +427646,51 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048761u, new Vector3(-499.71774f, 59.95439f, 130.93762f), 1187) + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span270[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048761u, new Vector3(-499.71774f, 59.95439f, 130.93762f), 1187) { StopDistance = 5f }; obj165.Steps = list270; reference187 = obj165; - ref QuestSequence reference188 = ref span89[1]; + num++; + ref QuestSequence reference188 = ref span269[num]; QuestSequence obj166 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - Span span90 = CollectionsMarshal.AsSpan(list271); - ref QuestStep reference189 = ref span90[0]; + index2 = 3; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + ref QuestStep reference189 = ref span271[num2]; QuestStep obj167 = new QuestStep(EInteractionType.Instruction, 2014126u, new Vector3(-182.69635f, 51.68225f, 164.56848f), 1187) { Fly = true, Comment = "TODO Needs item use" }; - num3 = 6; - List list272 = new List(num3); - CollectionsMarshal.SetCount(list272, num3); - Span span91 = CollectionsMarshal.AsSpan(list272); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list272 = new List(index3); + CollectionsMarshal.SetCount(list272, index3); + Span span272 = CollectionsMarshal.AsSpan(list272); + num3 = 0; + span272[num3] = null; + num3++; + span272[num3] = null; + num3++; + span272[num3] = null; + num3++; + span272[num3] = null; + num3++; + span272[num3] = null; + num3++; + span272[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj167.CompletionQuestVariablesFlags = list272; reference189 = obj167; - ref QuestStep reference190 = ref span90[1]; + num2++; + ref QuestStep reference190 = ref span271[num2]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 2014125u, new Vector3(-161.57782f, 39.902344f, 252.39941f), 1187) { Fly = true @@ -351893,36 +427698,50 @@ public static class AssemblyQuestLoader num3 = 6; List list273 = new List(num3); CollectionsMarshal.SetCount(list273, num3); - Span span92 = CollectionsMarshal.AsSpan(list273); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span273 = CollectionsMarshal.AsSpan(list273); + index3 = 0; + span273[index3] = null; + index3++; + span273[index3] = null; + index3++; + span273[index3] = null; + index3++; + span273[index3] = null; + index3++; + span273[index3] = null; + index3++; + span273[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj168.CompletionQuestVariablesFlags = list273; reference190 = obj168; - ref QuestStep reference191 = ref span90[2]; + num2++; + ref QuestStep reference191 = ref span271[num2]; QuestStep obj169 = new QuestStep(EInteractionType.Instruction, 2014127u, new Vector3(-239.36829f, 49.79016f, 343.52625f), 1187) { Fly = true, Comment = "TODO Needs item use" }; - num3 = 6; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - Span span93 = CollectionsMarshal.AsSpan(list274); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list274 = new List(index3); + CollectionsMarshal.SetCount(list274, index3); + Span span274 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + span274[num3] = null; + num3++; + span274[num3] = null; + num3++; + span274[num3] = null; + num3++; + span274[num3] = null; + num3++; + span274[num3] = null; + num3++; + span274[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj169.CompletionQuestVariablesFlags = list274; reference191 = obj169; obj166.Steps = list271; reference188 = obj166; - ref QuestSequence reference192 = ref span89[2]; + num++; + ref QuestSequence reference192 = ref span269[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue @@ -351930,7 +427749,9 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048761u, new Vector3(-499.71774f, 59.95439f, 130.93762f), 1187) + Span span275 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span275[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048761u, new Vector3(-499.71774f, 59.95439f, 130.93762f), 1187) { StopDistance = 5f, Fly = true @@ -351944,27 +427765,33 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "liza"; + Span span276 = CollectionsMarshal.AsSpan(list276); + index = 0; + span276[index] = "liza"; questRoot42.Author = list276; - num = 3; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span94 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference193 = ref span94[0]; + index = 3; + List list277 = new List(index); + CollectionsMarshal.SetCount(list277, index); + Span span277 = CollectionsMarshal.AsSpan(list277); + num = 0; + ref QuestSequence reference193 = ref span277[num]; QuestSequence obj171 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050692u, new Vector3(-410.84918f, 68.61058f, 184.9851f), 1187) + index2 = 1; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + Span span278 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span278[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050692u, new Vector3(-410.84918f, 68.61058f, 184.9851f), 1187) { StopDistance = 5f }; obj171.Steps = list278; reference193 = obj171; - ref QuestSequence reference194 = ref span94[1]; + num++; + ref QuestSequence reference194 = ref span277[num]; QuestSequence obj172 = new QuestSequence { Sequence = 1 @@ -351972,7 +427799,9 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - ref QuestStep reference195 = ref CollectionsMarshal.AsSpan(list279)[0]; + Span span279 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + ref QuestStep reference195 = ref span279[index2]; QuestStep obj173 = new QuestStep(EInteractionType.Combat, 2014128u, new Vector3(-71.64111f, 18.295532f, 255.75635f), 1187) { Fly = true, @@ -351981,20 +427810,25 @@ public static class AssemblyQuestLoader num3 = 1; List list280 = new List(num3); CollectionsMarshal.SetCount(list280, num3); - CollectionsMarshal.AsSpan(list280)[0] = 17649u; + Span span280 = CollectionsMarshal.AsSpan(list280); + index3 = 0; + span280[index3] = 17649u; obj173.KillEnemyDataIds = list280; reference195 = obj173; obj172.Steps = list279; reference194 = obj172; - ref QuestSequence reference196 = ref span94[2]; + num++; + ref QuestSequence reference196 = ref span277[num]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050720u, new Vector3(-410.84918f, 68.61058f, 184.9851f), 1187) + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + Span span281 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span281[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050720u, new Vector3(-410.84918f, 68.61058f, 184.9851f), 1187) { StopDistance = 5f, Fly = true @@ -352008,13 +427842,16 @@ public static class AssemblyQuestLoader num = 1; List list282 = new List(num); CollectionsMarshal.SetCount(list282, num); - CollectionsMarshal.AsSpan(list282)[0] = "liza"; + Span span282 = CollectionsMarshal.AsSpan(list282); + index = 0; + span282[index] = "liza"; questRoot43.Author = list282; - num = 3; - List list283 = new List(num); - CollectionsMarshal.SetCount(list283, num); - Span span95 = CollectionsMarshal.AsSpan(list283); - ref QuestSequence reference197 = ref span95[0]; + index = 3; + List list283 = new List(index); + CollectionsMarshal.SetCount(list283, index); + Span span283 = CollectionsMarshal.AsSpan(list283); + num = 0; + ref QuestSequence reference197 = ref span283[num]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -352022,39 +427859,50 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048728u, new Vector3(439.8108f, 112.435f, 669.6116f), 1187) + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span284[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048728u, new Vector3(439.8108f, 112.435f, 669.6116f), 1187) { StopDistance = 5f }; obj175.Steps = list284; reference197 = obj175; - ref QuestSequence reference198 = ref span95[1]; + num++; + ref QuestSequence reference198 = ref span283[num]; QuestSequence obj176 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - Span span96 = CollectionsMarshal.AsSpan(list285); - ref QuestStep reference199 = ref span96[0]; + index2 = 3; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span285 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + ref QuestStep reference199 = ref span285[num2]; QuestStep obj177 = new QuestStep(EInteractionType.Interact, 2014130u, new Vector3(438.651f, 103.80713f, 299.33618f), 1187) { Fly = true }; - num3 = 6; - List list286 = new List(num3); - CollectionsMarshal.SetCount(list286, num3); - Span span97 = CollectionsMarshal.AsSpan(list286); - span97[0] = null; - span97[1] = null; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list286 = new List(index3); + CollectionsMarshal.SetCount(list286, index3); + Span span286 = CollectionsMarshal.AsSpan(list286); + num3 = 0; + span286[num3] = null; + num3++; + span286[num3] = null; + num3++; + span286[num3] = null; + num3++; + span286[num3] = null; + num3++; + span286[num3] = null; + num3++; + span286[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj177.CompletionQuestVariablesFlags = list286; reference199 = obj177; - ref QuestStep reference200 = ref span96[1]; + num2++; + ref QuestStep reference200 = ref span285[num2]; QuestStep obj178 = new QuestStep(EInteractionType.Interact, 2014129u, new Vector3(466.23938f, 106.767334f, 244.67834f), 1187) { Fly = true @@ -352062,32 +427910,46 @@ public static class AssemblyQuestLoader num3 = 6; List list287 = new List(num3); CollectionsMarshal.SetCount(list287, num3); - Span span98 = CollectionsMarshal.AsSpan(list287); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span287 = CollectionsMarshal.AsSpan(list287); + index3 = 0; + span287[index3] = null; + index3++; + span287[index3] = null; + index3++; + span287[index3] = null; + index3++; + span287[index3] = null; + index3++; + span287[index3] = null; + index3++; + span287[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj178.CompletionQuestVariablesFlags = list287; reference200 = obj178; - ref QuestStep reference201 = ref span96[2]; + num2++; + ref QuestStep reference201 = ref span285[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 2014131u, new Vector3(486.6255f, 112.71838f, 271.13745f), 1187); - num3 = 6; - List list288 = new List(num3); - CollectionsMarshal.SetCount(list288, num3); - Span span99 = CollectionsMarshal.AsSpan(list288); - span99[0] = null; - span99[1] = null; - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list288 = new List(index3); + CollectionsMarshal.SetCount(list288, index3); + Span span288 = CollectionsMarshal.AsSpan(list288); + num3 = 0; + span288[num3] = null; + num3++; + span288[num3] = null; + num3++; + span288[num3] = null; + num3++; + span288[num3] = null; + num3++; + span288[num3] = null; + num3++; + span288[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list288; reference201 = questStep25; obj176.Steps = list285; reference198 = obj176; - ref QuestSequence reference202 = ref span95[2]; + num++; + ref QuestSequence reference202 = ref span283[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -352095,7 +427957,9 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048728u, new Vector3(439.8108f, 112.435f, 669.6116f), 1187) + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span289[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048728u, new Vector3(439.8108f, 112.435f, 669.6116f), 1187) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho @@ -352109,27 +427973,33 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - CollectionsMarshal.AsSpan(list290)[0] = "liza"; + Span span290 = CollectionsMarshal.AsSpan(list290); + index = 0; + span290[index] = "liza"; questRoot44.Author = list290; - num = 3; - List list291 = new List(num); - CollectionsMarshal.SetCount(list291, num); - Span span100 = CollectionsMarshal.AsSpan(list291); - ref QuestSequence reference203 = ref span100[0]; + index = 3; + List list291 = new List(index); + CollectionsMarshal.SetCount(list291, index); + Span span291 = CollectionsMarshal.AsSpan(list291); + num = 0; + ref QuestSequence reference203 = ref span291[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048729u, new Vector3(513.4203f, 107.13501f, 545.7998f), 1187) + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + Span span292 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span292[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048729u, new Vector3(513.4203f, 107.13501f, 545.7998f), 1187) { StopDistance = 5f }; obj180.Steps = list292; reference203 = obj180; - ref QuestSequence reference204 = ref span100[1]; + num++; + ref QuestSequence reference204 = ref span291[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -352137,7 +428007,9 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list293)[0]; + Span span293 = CollectionsMarshal.AsSpan(list293); + index2 = 0; + ref QuestStep reference205 = ref span293[index2]; QuestStep obj182 = new QuestStep(EInteractionType.Combat, null, new Vector3(375.92813f, 74.827896f, 411.13763f), 1187) { Fly = true, @@ -352146,20 +428018,25 @@ public static class AssemblyQuestLoader num3 = 1; List list294 = new List(num3); CollectionsMarshal.SetCount(list294, num3); - CollectionsMarshal.AsSpan(list294)[0] = 17484u; + Span span294 = CollectionsMarshal.AsSpan(list294); + index3 = 0; + span294[index3] = 17484u; obj182.KillEnemyDataIds = list294; reference205 = obj182; obj181.Steps = list293; reference204 = obj181; - ref QuestSequence reference206 = ref span100[2]; + num++; + ref QuestSequence reference206 = ref span291[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048729u, new Vector3(513.4203f, 107.13501f, 545.7998f), 1187) + index2 = 1; + List list295 = new List(index2); + CollectionsMarshal.SetCount(list295, index2); + Span span295 = CollectionsMarshal.AsSpan(list295); + num2 = 0; + span295[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048729u, new Vector3(513.4203f, 107.13501f, 545.7998f), 1187) { StopDistance = 5f, Fly = true @@ -352173,13 +428050,16 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = "liza"; + Span span296 = CollectionsMarshal.AsSpan(list296); + index = 0; + span296[index] = "liza"; questRoot45.Author = list296; - num = 5; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - Span span101 = CollectionsMarshal.AsSpan(list297); - ref QuestSequence reference207 = ref span101[0]; + index = 5; + List list297 = new List(index); + CollectionsMarshal.SetCount(list297, index); + Span span297 = CollectionsMarshal.AsSpan(list297); + num = 0; + ref QuestSequence reference207 = ref span297[num]; QuestSequence obj184 = new QuestSequence { Sequence = 0 @@ -352187,27 +428067,33 @@ public static class AssemblyQuestLoader num2 = 1; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048730u, new Vector3(399.0692f, 122.53533f, 542.9922f), 1187) + Span span298 = CollectionsMarshal.AsSpan(list298); + index2 = 0; + span298[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048730u, new Vector3(399.0692f, 122.53533f, 542.9922f), 1187) { StopDistance = 5f }; obj184.Steps = list298; reference207 = obj184; - ref QuestSequence reference208 = ref span101[1]; + num++; + ref QuestSequence reference208 = ref span297[num]; QuestSequence obj185 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 2014132u, new Vector3(396.01733f, 123.88794f, 546.53235f), 1187) + index2 = 1; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + Span span299 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span299[num2] = new QuestStep(EInteractionType.Interact, 2014132u, new Vector3(396.01733f, 123.88794f, 546.53235f), 1187) { StopDistance = 4.5f }; obj185.Steps = list299; reference208 = obj185; - ref QuestSequence reference209 = ref span101[2]; + num++; + ref QuestSequence reference209 = ref span297[num]; QuestSequence obj186 = new QuestSequence { Sequence = 2 @@ -352215,41 +428101,52 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 2014132u, new Vector3(396.01733f, 123.88794f, 546.53235f), 1187) + Span span300 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span300[index2] = new QuestStep(EInteractionType.Interact, 2014132u, new Vector3(396.01733f, 123.88794f, 546.53235f), 1187) { StopDistance = 4.5f }; obj186.Steps = list300; reference209 = obj186; - ref QuestSequence reference210 = ref span101[3]; + num++; + ref QuestSequence reference210 = ref span297[num]; QuestSequence obj187 = new QuestSequence { Sequence = 3 }; - num2 = 4; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - Span span102 = CollectionsMarshal.AsSpan(list301); - ref QuestStep reference211 = ref span102[0]; + index2 = 4; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + Span span301 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + ref QuestStep reference211 = ref span301[num2]; QuestStep obj188 = new QuestStep(EInteractionType.UseItem, 2014133u, new Vector3(387.59436f, 131.0597f, 640.772f), 1187) { StopDistance = 3f, IgnoreDistanceToObject = true, ItemId = 2003618u }; - num3 = 6; - List list302 = new List(num3); - CollectionsMarshal.SetCount(list302, num3); - Span span103 = CollectionsMarshal.AsSpan(list302); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list302 = new List(index3); + CollectionsMarshal.SetCount(list302, index3); + Span span302 = CollectionsMarshal.AsSpan(list302); + num3 = 0; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = null; + num3++; + span302[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj188.CompletionQuestVariablesFlags = list302; reference211 = obj188; - ref QuestStep reference212 = ref span102[1]; + num2++; + ref QuestStep reference212 = ref span301[num2]; QuestStep obj189 = new QuestStep(EInteractionType.UseItem, 2014135u, new Vector3(489.95178f, 114.4884f, 698.3596f), 1187) { StopDistance = 3f, @@ -352259,16 +428156,23 @@ public static class AssemblyQuestLoader num3 = 6; List list303 = new List(num3); CollectionsMarshal.SetCount(list303, num3); - Span span104 = CollectionsMarshal.AsSpan(list303); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span303 = CollectionsMarshal.AsSpan(list303); + index3 = 0; + span303[index3] = null; + index3++; + span303[index3] = null; + index3++; + span303[index3] = null; + index3++; + span303[index3] = null; + index3++; + span303[index3] = null; + index3++; + span303[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj189.CompletionQuestVariablesFlags = list303; reference212 = obj189; - ref QuestStep reference213 = ref span102[2]; + num2++; + ref QuestStep reference213 = ref span301[num2]; QuestStep obj190 = new QuestStep(EInteractionType.Jump, null, new Vector3(530.3024f, 111.13472f, 604.9302f), 1187) { JumpDestination = new JumpDestination @@ -352279,21 +428183,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list304 = new List(num3); - CollectionsMarshal.SetCount(list304, num3); - Span span105 = CollectionsMarshal.AsSpan(list304); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list304 = new List(index3); + CollectionsMarshal.SetCount(list304, index3); + Span span304 = CollectionsMarshal.AsSpan(list304); + num3 = 0; + span304[num3] = null; + num3++; + span304[num3] = null; + num3++; + span304[num3] = null; + num3++; + span304[num3] = null; + num3++; + span304[num3] = null; + num3++; + span304[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list304; skipConditions3.StepIf = skipStepConditions; obj190.SkipConditions = skipConditions3; reference213 = obj190; - ref QuestStep reference214 = ref span102[3]; + num2++; + ref QuestStep reference214 = ref span301[num2]; QuestStep obj191 = new QuestStep(EInteractionType.UseItem, 2014134u, new Vector3(533.53174f, 114.24426f, 603.0823f), 1187) { StopDistance = 3f, @@ -352303,18 +428214,25 @@ public static class AssemblyQuestLoader num3 = 6; List list305 = new List(num3); CollectionsMarshal.SetCount(list305, num3); - Span span106 = CollectionsMarshal.AsSpan(list305); - span106[0] = null; - span106[1] = null; - span106[2] = null; - span106[3] = null; - span106[4] = null; - span106[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span305 = CollectionsMarshal.AsSpan(list305); + index3 = 0; + span305[index3] = null; + index3++; + span305[index3] = null; + index3++; + span305[index3] = null; + index3++; + span305[index3] = null; + index3++; + span305[index3] = null; + index3++; + span305[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj191.CompletionQuestVariablesFlags = list305; reference214 = obj191; obj187.Steps = list301; reference210 = obj187; - ref QuestSequence reference215 = ref span101[4]; + num++; + ref QuestSequence reference215 = ref span297[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue @@ -352322,9 +428240,11 @@ public static class AssemblyQuestLoader num2 = 2; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span107 = CollectionsMarshal.AsSpan(list306); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(415.27682f, 122.535f, 564.56915f), 1187); - span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1048730u, new Vector3(399.0692f, 122.53533f, 542.9922f), 1187) + Span span306 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span306[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(415.27682f, 122.535f, 564.56915f), 1187); + index2++; + span306[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048730u, new Vector3(399.0692f, 122.53533f, 542.9922f), 1187) { StopDistance = 5f }; @@ -352337,27 +428257,33 @@ public static class AssemblyQuestLoader num = 1; List list307 = new List(num); CollectionsMarshal.SetCount(list307, num); - CollectionsMarshal.AsSpan(list307)[0] = "liza"; + Span span307 = CollectionsMarshal.AsSpan(list307); + index = 0; + span307[index] = "liza"; questRoot46.Author = list307; - num = 4; - List list308 = new List(num); - CollectionsMarshal.SetCount(list308, num); - Span span108 = CollectionsMarshal.AsSpan(list308); - ref QuestSequence reference216 = ref span108[0]; + index = 4; + List list308 = new List(index); + CollectionsMarshal.SetCount(list308, index); + Span span308 = CollectionsMarshal.AsSpan(list308); + num = 0; + ref QuestSequence reference216 = ref span308[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050693u, new Vector3(398.70288f, 122.54732f, 523.4912f), 1187) + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + Span span309 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span309[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050693u, new Vector3(398.70288f, 122.54732f, 523.4912f), 1187) { StopDistance = 5f }; obj193.Steps = list309; reference216 = obj193; - ref QuestSequence reference217 = ref span108[1]; + num++; + ref QuestSequence reference217 = ref span308[num]; QuestSequence obj194 = new QuestSequence { Sequence = 1 @@ -352365,22 +428291,27 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Emote, 1050694u, new Vector3(-22.720703f, 54.759686f, 522.88086f), 1187) + Span span310 = CollectionsMarshal.AsSpan(list310); + index2 = 0; + span310[index2] = new QuestStep(EInteractionType.Emote, 1050694u, new Vector3(-22.720703f, 54.759686f, 522.88086f), 1187) { Fly = true, Emote = EEmote.Soothe }; obj194.Steps = list310; reference217 = obj194; - ref QuestSequence reference218 = ref span108[2]; + num++; + ref QuestSequence reference218 = ref span308[num]; QuestSequence obj195 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Say, 1050694u, new Vector3(-22.720703f, 54.759686f, 522.88086f), 1187) + index2 = 1; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + Span span311 = CollectionsMarshal.AsSpan(list311); + num2 = 0; + span311[num2] = new QuestStep(EInteractionType.Say, 1050694u, new Vector3(-22.720703f, 54.759686f, 522.88086f), 1187) { ChatMessage = new ChatMessage { @@ -352389,7 +428320,8 @@ public static class AssemblyQuestLoader }; obj195.Steps = list311; reference218 = obj195; - ref QuestSequence reference219 = ref span108[3]; + num++; + ref QuestSequence reference219 = ref span308[num]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue @@ -352397,7 +428329,9 @@ public static class AssemblyQuestLoader num2 = 1; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050693u, new Vector3(398.70288f, 122.54732f, 523.4912f), 1187) + Span span312 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + span312[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050693u, new Vector3(398.70288f, 122.54732f, 523.4912f), 1187) { StopDistance = 5f, Fly = true, @@ -352412,27 +428346,33 @@ public static class AssemblyQuestLoader num = 1; List list313 = new List(num); CollectionsMarshal.SetCount(list313, num); - CollectionsMarshal.AsSpan(list313)[0] = "liza"; + Span span313 = CollectionsMarshal.AsSpan(list313); + index = 0; + span313[index] = "liza"; questRoot47.Author = list313; - num = 5; - List list314 = new List(num); - CollectionsMarshal.SetCount(list314, num); - Span span109 = CollectionsMarshal.AsSpan(list314); - ref QuestSequence reference220 = ref span109[0]; + index = 5; + List list314 = new List(index); + CollectionsMarshal.SetCount(list314, index); + Span span314 = CollectionsMarshal.AsSpan(list314); + num = 0; + ref QuestSequence reference220 = ref span314[num]; QuestSequence obj197 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048731u, new Vector3(464.71338f, 131.25926f, 690.66907f), 1187) + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + Span span315 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span315[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048731u, new Vector3(464.71338f, 131.25926f, 690.66907f), 1187) { StopDistance = 1f }; obj197.Steps = list315; reference220 = obj197; - ref QuestSequence reference221 = ref span109[1]; + num++; + ref QuestSequence reference221 = ref span314[num]; QuestSequence obj198 = new QuestSequence { Sequence = 1 @@ -352440,71 +428380,93 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1050697u, new Vector3(190.4784f, 18.978786f, 210.49817f), 1187) + Span span316 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span316[index2] = new QuestStep(EInteractionType.Interact, 1050697u, new Vector3(190.4784f, 18.978786f, 210.49817f), 1187) { Fly = true }; obj198.Steps = list316; reference221 = obj198; - ref QuestSequence reference222 = ref span109[2]; + num++; + ref QuestSequence reference222 = ref span314[num]; QuestSequence obj199 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - Span span110 = CollectionsMarshal.AsSpan(list317); - ref QuestStep reference223 = ref span110[0]; + index2 = 2; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + Span span317 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + ref QuestStep reference223 = ref span317[num2]; QuestStep obj200 = new QuestStep(EInteractionType.Combat, null, new Vector3(238.52116f, 47.201637f, 78.30595f), 1187) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - CollectionsMarshal.AsSpan(list318)[0] = 17650u; + index3 = 1; + List list318 = new List(index3); + CollectionsMarshal.SetCount(list318, index3); + Span span318 = CollectionsMarshal.AsSpan(list318); + num3 = 0; + span318[num3] = 17650u; obj200.KillEnemyDataIds = list318; num3 = 6; List list319 = new List(num3); CollectionsMarshal.SetCount(list319, num3); - Span span111 = CollectionsMarshal.AsSpan(list319); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span319 = CollectionsMarshal.AsSpan(list319); + index3 = 0; + span319[index3] = null; + index3++; + span319[index3] = null; + index3++; + span319[index3] = null; + index3++; + span319[index3] = null; + index3++; + span319[index3] = null; + index3++; + span319[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj200.CompletionQuestVariablesFlags = list319; reference223 = obj200; - ref QuestStep reference224 = ref span110[1]; + num2++; + ref QuestStep reference224 = ref span317[num2]; QuestStep obj201 = new QuestStep(EInteractionType.Combat, null, new Vector3(173.96666f, 56.288116f, -18.299652f), 1187) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - CollectionsMarshal.AsSpan(list320)[0] = 17650u; + index3 = 1; + List list320 = new List(index3); + CollectionsMarshal.SetCount(list320, index3); + Span span320 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span320[num3] = 17650u; obj201.KillEnemyDataIds = list320; num3 = 6; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - Span span112 = CollectionsMarshal.AsSpan(list321); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span321 = CollectionsMarshal.AsSpan(list321); + index3 = 0; + span321[index3] = null; + index3++; + span321[index3] = null; + index3++; + span321[index3] = null; + index3++; + span321[index3] = null; + index3++; + span321[index3] = null; + index3++; + span321[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj201.CompletionQuestVariablesFlags = list321; reference224 = obj201; obj199.Steps = list317; reference222 = obj199; - ref QuestSequence reference225 = ref span109[3]; + num++; + ref QuestSequence reference225 = ref span314[num]; QuestSequence obj202 = new QuestSequence { Sequence = 3 @@ -352512,29 +428474,36 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - ref QuestStep reference226 = ref CollectionsMarshal.AsSpan(list322)[0]; + Span span322 = CollectionsMarshal.AsSpan(list322); + index2 = 0; + ref QuestStep reference226 = ref span322[index2]; QuestStep obj203 = new QuestStep(EInteractionType.Combat, 1050698u, new Vector3(97.642456f, 38.62021f, -35.81299f), 1187) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list323 = new List(num3); - CollectionsMarshal.SetCount(list323, num3); - CollectionsMarshal.AsSpan(list323)[0] = 17651u; + index3 = 1; + List list323 = new List(index3); + CollectionsMarshal.SetCount(list323, index3); + Span span323 = CollectionsMarshal.AsSpan(list323); + num3 = 0; + span323[num3] = 17651u; obj203.KillEnemyDataIds = list323; reference226 = obj203; obj202.Steps = list322; reference225 = obj202; - ref QuestSequence reference227 = ref span109[4]; + num++; + ref QuestSequence reference227 = ref span314[num]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048731u, new Vector3(464.71338f, 131.25926f, 690.66907f), 1187) + index2 = 1; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + Span span324 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + span324[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048731u, new Vector3(464.71338f, 131.25926f, 690.66907f), 1187) { StopDistance = 1f, Fly = true, @@ -352553,13 +428522,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -352567,22 +428539,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048732u, new Vector3(541.4053f, 107.13434f, 602.50244f), 1187) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048732u, new Vector3(541.4053f, 107.13434f, 602.50244f), 1187) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 3; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1048774u, new Vector3(495.35352f, 114.935f, 632.95935f), 1187) { Fly = true @@ -352590,33 +428566,47 @@ public static class AssemblyQuestLoader int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = null; - span3[1] = null; - span3[2] = null; - span3[3] = null; - span3[4] = null; - span3[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span5 = CollectionsMarshal.AsSpan(list5); + int num4 = 0; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = null; + num4++; + span5[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj3.CompletionQuestVariablesFlags = list5; reference3 = obj3; - ref QuestStep reference4 = ref span2[1]; + num2++; + ref QuestStep reference4 = ref span4[num2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 1048745u, new Vector3(383.3523f, 129.04726f, 657.52637f), 1187) { Fly = true }; - num3 = 6; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - Span span4 = CollectionsMarshal.AsSpan(list6); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = null; + num3++; + span6[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj4.CompletionQuestVariablesFlags = list6; reference4 = obj4; - ref QuestStep reference5 = ref span2[2]; + num2++; + ref QuestStep reference5 = ref span4[num2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 1048747u, new Vector3(348.47034f, 130.34726f, 597.3755f), 1187) { Fly = true @@ -352624,18 +428614,25 @@ public static class AssemblyQuestLoader num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span5 = CollectionsMarshal.AsSpan(list7); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span7 = CollectionsMarshal.AsSpan(list7); + num4 = 0; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = null; + num4++; + span7[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj5.CompletionQuestVariablesFlags = list7; reference5 = obj5; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference6 = ref span[2]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -352643,7 +428640,9 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048732u, new Vector3(541.4053f, 107.13434f, 602.50244f), 1187) + Span span8 = CollectionsMarshal.AsSpan(list8); + index2 = 0; + span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048732u, new Vector3(541.4053f, 107.13434f, 602.50244f), 1187) { StopDistance = 5f, Fly = true @@ -352657,24 +428656,30 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "liza"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "liza"; questRoot2.Author = list9; - num = 4; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span6 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span6[0]; + index = 4; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span10[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span6[1]; + num++; + ref QuestSequence reference8 = ref span10[num]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -352682,21 +428687,27 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.Interact, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span6[2]; + num++; + ref QuestSequence reference9 = ref span10[num]; QuestSequence obj9 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1051196u, new Vector3(297.19995f, -172.65335f, -488.57864f), 1187); + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.Interact, 1051196u, new Vector3(297.19995f, -172.65335f, -488.57864f), 1187); obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span6[3]; + num++; + ref QuestSequence reference10 = ref span10[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -352704,7 +428715,9 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); obj10.Steps = list14; reference10 = obj10; questRoot2.QuestSequence = list10; @@ -352714,21 +428727,26 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = "liza"; + Span span15 = CollectionsMarshal.AsSpan(list15); + index = 0; + span15[index] = "liza"; questRoot3.Author = list15; - num = 5; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span7 = CollectionsMarshal.AsSpan(list16); - ref QuestSequence reference11 = ref span7[0]; + index = 5; + List list16 = new List(index); + CollectionsMarshal.SetCount(list16, index); + Span span16 = CollectionsMarshal.AsSpan(list16); + num = 0; + ref QuestSequence reference11 = ref span16[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + index2 = 1; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, SkipConditions = new SkipConditions @@ -352746,7 +428764,8 @@ public static class AssemblyQuestLoader }; obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span7[1]; + num++; + ref QuestSequence reference12 = ref span16[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -352754,27 +428773,33 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1051199u, new Vector3(442.95398f, -116.815155f, -178.63745f), 1187) + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.Interact, 1051199u, new Vector3(442.95398f, -116.815155f, -178.63745f), 1187) { Fly = true }; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span7[2]; + num++; + ref QuestSequence reference13 = ref span16[num]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1051200u, new Vector3(563.83606f, -49.515564f, 49.54602f), 1187) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.Interact, 1051200u, new Vector3(563.83606f, -49.515564f, 49.54602f), 1187) { Fly = true }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span7[3]; + num++; + ref QuestSequence reference14 = ref span16[num]; QuestSequence obj14 = new QuestSequence { Sequence = 3 @@ -352782,18 +428807,23 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1048773u, new Vector3(576.2875f, -49.16388f, 37.00305f), 1187); + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new QuestStep(EInteractionType.Interact, 1048773u, new Vector3(576.2875f, -49.16388f, 37.00305f), 1187); obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span7[4]; + num++; + ref QuestSequence reference15 = ref span16[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, @@ -352808,13 +428838,16 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - CollectionsMarshal.AsSpan(list22)[0] = "liza"; + Span span22 = CollectionsMarshal.AsSpan(list22); + index = 0; + span22[index] = "liza"; questRoot4.Author = list22; - num = 3; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span8 = CollectionsMarshal.AsSpan(list23); - ref QuestSequence reference16 = ref span8[0]; + index = 3; + List list23 = new List(index); + CollectionsMarshal.SetCount(list23, index); + Span span23 = CollectionsMarshal.AsSpan(list23); + num = 0; + ref QuestSequence reference16 = ref span23[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -352822,7 +428855,9 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list24)[0]; + Span span24 = CollectionsMarshal.AsSpan(list24); + index2 = 0; + ref QuestStep reference17 = ref span24[index2]; QuestStep obj17 = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, @@ -352839,10 +428874,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - CollectionsMarshal.AsSpan(list25)[0] = new DialogueChoice + num4 = 1; + List list25 = new List(num4); + CollectionsMarshal.SetCount(list25, num4); + Span span25 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span25[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZB203_05053_Q1_000_000"), @@ -352852,47 +428889,63 @@ public static class AssemblyQuestLoader reference17 = obj17; obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference18 = ref span8[1]; + num++; + ref QuestSequence reference18 = ref span23[num]; QuestSequence obj18 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - Span span9 = CollectionsMarshal.AsSpan(list26); - ref QuestStep reference19 = ref span9[0]; + index2 = 4; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + ref QuestStep reference19 = ref span26[num2]; 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); - Span span10 = CollectionsMarshal.AsSpan(list27); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span27 = CollectionsMarshal.AsSpan(list27); + num4 = 0; + span27[num4] = null; + num4++; + span27[num4] = null; + num4++; + span27[num4] = null; + num4++; + span27[num4] = null; + num4++; + span27[num4] = null; + num4++; + span27[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list27; reference19 = questStep; - ref QuestStep reference20 = ref span9[1]; + num2++; + ref QuestStep reference20 = ref span26[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1051202u, new Vector3(338.55188f, -160.20284f, -450.9804f), 1187) { Fly = true }; - num3 = 6; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span11 = CollectionsMarshal.AsSpan(list28); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = null; + num3++; + span28[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj19.CompletionQuestVariablesFlags = list28; reference20 = obj19; - ref QuestStep reference21 = ref span9[2]; + num2++; + ref QuestStep reference21 = ref span26[num2]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1051203u, new Vector3(283.22266f, -168.30641f, -452.26215f), 1187) { Fly = true @@ -352900,35 +428953,49 @@ public static class AssemblyQuestLoader num3 = 6; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - Span span12 = CollectionsMarshal.AsSpan(list29); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span29 = CollectionsMarshal.AsSpan(list29); + num4 = 0; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = null; + num4++; + span29[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj20.CompletionQuestVariablesFlags = list29; reference21 = obj20; - ref QuestStep reference22 = ref span9[3]; + num2++; + ref QuestStep reference22 = ref span26[num2]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1048660u, new Vector3(246.3263f, -168.27f, -487.20532f), 1187) { Fly = true }; - num3 = 6; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span13 = CollectionsMarshal.AsSpan(list30); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list30 = new List(num4); + CollectionsMarshal.SetCount(list30, num4); + Span span30 = CollectionsMarshal.AsSpan(list30); + num3 = 0; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = null; + num3++; + span30[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj21.CompletionQuestVariablesFlags = list30; reference22 = obj21; obj18.Steps = list26; reference18 = obj18; - ref QuestSequence reference23 = ref span8[2]; + num++; + ref QuestSequence reference23 = ref span23[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -352936,7 +429003,9 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list31)[0]; + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + ref QuestStep reference24 = ref span31[index2]; QuestStep obj23 = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { Fly = true @@ -352944,7 +429013,9 @@ public static class AssemblyQuestLoader num3 = 1; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = new DialogueChoice + Span span32 = CollectionsMarshal.AsSpan(list32); + num4 = 0; + span32[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZB203_05053_Q2_000_000") @@ -352961,21 +429032,26 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; + Span span33 = CollectionsMarshal.AsSpan(list33); + index = 0; + span33[index] = "liza"; questRoot5.Author = list33; - num = 5; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span14 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference25 = ref span14[0]; + index = 5; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + Span span34 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference25 = ref span34[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, SkipConditions = new SkipConditions @@ -352993,7 +429069,8 @@ public static class AssemblyQuestLoader }; obj24.Steps = list35; reference25 = obj24; - ref QuestSequence reference26 = ref span14[1]; + num++; + ref QuestSequence reference26 = ref span34[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -353001,29 +429078,36 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1051200u, new Vector3(563.83606f, -49.515564f, 49.54602f), 1187) + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = new QuestStep(EInteractionType.Interact, 1051200u, new Vector3(563.83606f, -49.515564f, 49.54602f), 1187) { Fly = true }; obj25.Steps = list36; reference26 = obj25; - ref QuestSequence reference27 = ref span14[2]; + num++; + ref QuestSequence reference27 = ref span34[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list37)[0]; + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + ref QuestStep reference28 = ref span37[num2]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 2014271u, new Vector3(560.9064f, -54.459473f, 22.781677f), 1187) { DisableNavmesh = true }; - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice + num4 = 1; + List list38 = new List(num4); + CollectionsMarshal.SetCount(list38, num4); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZB204_05054_Q1_000_000") @@ -353032,7 +429116,8 @@ public static class AssemblyQuestLoader reference28 = obj27; obj26.Steps = list37; reference27 = obj26; - ref QuestSequence reference29 = ref span14[3]; + num++; + ref QuestSequence reference29 = ref span34[num]; QuestSequence obj28 = new QuestSequence { Sequence = 3 @@ -353040,21 +429125,26 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1051204u, new Vector3(562.7374f, -54.457336f, 21.530457f), 1187) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.Interact, 1051204u, new Vector3(562.7374f, -54.457336f, 21.530457f), 1187) { StopDistance = 5f }; obj28.Steps = list39; reference29 = obj28; - ref QuestSequence reference30 = ref span14[4]; + num++; + ref QuestSequence reference30 = ref span34[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; @@ -353067,13 +429157,16 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "liza"; + Span span41 = CollectionsMarshal.AsSpan(list41); + index = 0; + span41[index] = "liza"; questRoot6.Author = list41; - num = 5; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span15 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference31 = ref span15[0]; + index = 5; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + Span span42 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference31 = ref span42[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -353081,29 +429174,35 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f }; obj30.Steps = list43; reference31 = obj30; - ref QuestSequence reference32 = ref span15[1]; + num++; + ref QuestSequence reference32 = ref span42[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - Span span16 = CollectionsMarshal.AsSpan(list44); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(222.22293f, 22.315279f, 284.40256f), 1187); - span16[1] = new QuestStep(EInteractionType.Interact, 1051208u, new Vector3(210.92542f, 21.49294f, 246.6925f), 1187) + index2 = 2; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(222.22293f, 22.315279f, 284.40256f), 1187); + num2++; + span44[num2] = new QuestStep(EInteractionType.Interact, 1051208u, new Vector3(210.92542f, 21.49294f, 246.6925f), 1187) { StopDistance = 5f }; obj31.Steps = list44; reference32 = obj31; - ref QuestSequence reference33 = ref span15[2]; + num++; + ref QuestSequence reference33 = ref span42[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -353111,7 +429210,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list45)[0]; + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + ref QuestStep reference34 = ref span45[index2]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, 2014272u, new Vector3(133.53162f, 22.2323f, 295.9182f), 1187) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -353119,28 +429220,34 @@ public static class AssemblyQuestLoader num3 = 1; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = 17652u; + Span span46 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span46[num4] = 17652u; obj33.KillEnemyDataIds = list46; reference34 = obj33; obj32.Steps = list45; reference33 = obj32; - ref QuestSequence reference35 = ref span15[3]; + num++; + ref QuestSequence reference35 = ref span42[num]; QuestSequence obj34 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - Span span17 = CollectionsMarshal.AsSpan(list47); - span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(150.55826f, 15.18635f, 247.66484f), 1187) + index2 = 2; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(150.55826f, 15.18635f, 247.66484f), 1187) { Comment = "Avoids combat" }; - span17[1] = new QuestStep(EInteractionType.Interact, 1051208u, new Vector3(210.92542f, 21.49294f, 246.6925f), 1187); + num2++; + span47[num2] = new QuestStep(EInteractionType.Interact, 1051208u, new Vector3(210.92542f, 21.49294f, 246.6925f), 1187); obj34.Steps = list47; reference35 = obj34; - ref QuestSequence reference36 = ref span15[4]; + num++; + ref QuestSequence reference36 = ref span42[num]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -353148,7 +429255,9 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho @@ -353162,21 +429271,26 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "liza"; questRoot7.Author = list49; - num = 6; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span18 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference37 = ref span18[0]; + index = 6; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference37 = ref span50[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - ref QuestStep reference38 = ref CollectionsMarshal.AsSpan(list51)[0]; + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + ref QuestStep reference38 = ref span51[num2]; QuestStep obj37 = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, @@ -353194,10 +429308,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice + num4 = 1; + List list52 = new List(num4); + CollectionsMarshal.SetCount(list52, num4); + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span52[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZB302_05056_Q1_000_000"), @@ -353207,7 +429323,8 @@ public static class AssemblyQuestLoader reference38 = obj37; obj36.Steps = list51; reference37 = obj36; - ref QuestSequence reference39 = ref span18[1]; + num++; + ref QuestSequence reference39 = ref span50[num]; QuestSequence obj38 = new QuestSequence { Sequence = 1 @@ -353215,22 +429332,26 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1051211u, new Vector3(508.35413f, 111.134995f, 711.57385f), 1187) + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.Interact, 1051211u, new Vector3(508.35413f, 111.134995f, 711.57385f), 1187) { Fly = true }; obj38.Steps = list53; reference39 = obj38; - ref QuestSequence reference40 = ref span18[2]; + num++; + ref QuestSequence reference40 = ref span50[num]; QuestSequence obj39 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - Span span19 = CollectionsMarshal.AsSpan(list54); - ref QuestStep reference41 = ref span19[0]; + index2 = 3; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + ref QuestStep reference41 = ref span54[num2]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 2014275u, new Vector3(673.2433f, 124.40674f, 416.28137f), 1187) { StopDistance = 0.25f, @@ -353239,34 +429360,48 @@ public static class AssemblyQuestLoader num3 = 6; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - Span span20 = CollectionsMarshal.AsSpan(list55); - span20[0] = null; - span20[1] = null; - span20[2] = null; - span20[3] = null; - span20[4] = null; - span20[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span55 = CollectionsMarshal.AsSpan(list55); + num4 = 0; + span55[num4] = null; + num4++; + span55[num4] = null; + num4++; + span55[num4] = null; + num4++; + span55[num4] = null; + num4++; + span55[num4] = null; + num4++; + span55[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj40.CompletionQuestVariablesFlags = list55; reference41 = obj40; - ref QuestStep reference42 = ref span19[1]; + num2++; + ref QuestStep reference42 = ref span54[num2]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 2014273u, new Vector3(631.58606f, 124.833984f, 405.7527f), 1187) { StopDistance = 0.25f, Fly = true }; - num3 = 6; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - Span span21 = CollectionsMarshal.AsSpan(list56); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list56 = new List(num4); + CollectionsMarshal.SetCount(list56, num4); + Span span56 = CollectionsMarshal.AsSpan(list56); + num3 = 0; + span56[num3] = null; + num3++; + span56[num3] = null; + num3++; + span56[num3] = null; + num3++; + span56[num3] = null; + num3++; + span56[num3] = null; + num3++; + span56[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj41.CompletionQuestVariablesFlags = list56; reference42 = obj41; - ref QuestStep reference43 = ref span19[2]; + num2++; + ref QuestStep reference43 = ref span54[num2]; QuestStep obj42 = new QuestStep(EInteractionType.Interact, 2014274u, new Vector3(637.93384f, 120.80554f, 352.34607f), 1187) { StopDistance = 0.25f, @@ -353275,18 +429410,25 @@ public static class AssemblyQuestLoader num3 = 6; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span22 = CollectionsMarshal.AsSpan(list57); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span57 = CollectionsMarshal.AsSpan(list57); + num4 = 0; + span57[num4] = null; + num4++; + span57[num4] = null; + num4++; + span57[num4] = null; + num4++; + span57[num4] = null; + num4++; + span57[num4] = null; + num4++; + span57[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj42.CompletionQuestVariablesFlags = list57; reference43 = obj42; obj39.Steps = list54; reference40 = obj39; - ref QuestSequence reference44 = ref span18[3]; + num++; + ref QuestSequence reference44 = ref span50[num]; QuestSequence obj43 = new QuestSequence { Sequence = 3 @@ -353294,28 +429436,34 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1051213u, new Vector3(624.9331f, 122.30835f, 387.41125f), 1187) + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.Interact, 1051213u, new Vector3(624.9331f, 122.30835f, 387.41125f), 1187) { StopDistance = 5f }; obj43.Steps = list58; reference44 = obj43; - ref QuestSequence reference45 = ref span18[4]; + num++; + ref QuestSequence reference45 = ref span50[num]; QuestSequence obj44 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1051211u, new Vector3(508.35413f, 111.134995f, 711.57385f), 1187) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.Interact, 1051211u, new Vector3(508.35413f, 111.134995f, 711.57385f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; obj44.Steps = list59; reference45 = obj44; - ref QuestSequence reference46 = ref span18[5]; + num++; + ref QuestSequence reference46 = ref span50[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -353323,7 +429471,9 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, Fly = true, @@ -353338,21 +429488,26 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + Span span61 = CollectionsMarshal.AsSpan(list61); + index = 0; + span61[index] = "liza"; questRoot8.Author = list61; - num = 6; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span23 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference47 = ref span23[0]; + index = 6; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + Span span62 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference47 = ref span62[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list63)[0]; + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + ref QuestStep reference48 = ref span63[num2]; QuestStep obj47 = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, @@ -353370,10 +429525,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice + num4 = 1; + List list64 = new List(num4); + CollectionsMarshal.SetCount(list64, num4); + Span span64 = CollectionsMarshal.AsSpan(list64); + num3 = 0; + span64[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZB303_05057_Q1_000_000"), @@ -353383,7 +429540,8 @@ public static class AssemblyQuestLoader reference48 = obj47; obj46.Steps = list63; reference47 = obj46; - ref QuestSequence reference49 = ref span23[1]; + num++; + ref QuestSequence reference49 = ref span62[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 @@ -353391,40 +429549,47 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1051214u, new Vector3(256.21423f, 25.563068f, 227.55774f), 1187) + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.Interact, 1051214u, new Vector3(256.21423f, 25.563068f, 227.55774f), 1187) { Fly = true }; obj48.Steps = list65; reference49 = obj48; - ref QuestSequence reference50 = ref span23[2]; + num++; + ref QuestSequence reference50 = ref span62[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - Span span24 = CollectionsMarshal.AsSpan(list66); - span24[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(215.6255f, 24.677507f, 182.81274f), 1187) + index2 = 5; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(215.6255f, 24.677507f, 182.81274f), 1187) { NpcWaitDistance = 6f, Mount = false, Sprint = false }; - span24[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(167.20306f, 24.205856f, 150.9515f), 1187) + num2++; + span66[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(167.20306f, 24.205856f, 150.9515f), 1187) { NpcWaitDistance = 6f, Mount = false, Sprint = false }; - span24[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(202.11948f, 39.574707f, 86.737045f), 1187) + num2++; + span66[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(202.11948f, 39.574707f, 86.737045f), 1187) { NpcWaitDistance = 6f, Mount = false, Sprint = false }; - ref QuestStep reference51 = ref span24[3]; + num2++; + ref QuestStep reference51 = ref span66[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(194.26257f, 47.196045f, 45.853394f), 1187) { Mount = false, @@ -353434,13 +429599,17 @@ public static class AssemblyQuestLoader num3 = 1; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = 17654u; + Span span67 = CollectionsMarshal.AsSpan(list67); + num4 = 0; + span67[num4] = 17654u; obj50.KillEnemyDataIds = list67; reference51 = obj50; - span24[4] = new QuestStep(EInteractionType.Interact, 2014276u, new Vector3(194.26257f, 47.196045f, 45.853394f), 1187); + num2++; + span66[num2] = new QuestStep(EInteractionType.Interact, 2014276u, new Vector3(194.26257f, 47.196045f, 45.853394f), 1187); obj49.Steps = list66; reference50 = obj49; - ref QuestSequence reference52 = ref span23[3]; + num++; + ref QuestSequence reference52 = ref span62[num]; QuestSequence obj51 = new QuestSequence { Sequence = 3 @@ -353448,37 +429617,44 @@ public static class AssemblyQuestLoader num2 = 3; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span25 = CollectionsMarshal.AsSpan(list68); - span25[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(235.00903f, 44.070503f, -28.761452f), 1187) + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(235.00903f, 44.070503f, -28.761452f), 1187) { NpcWaitDistance = 6.5f, Mount = false, Sprint = false }; - span25[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(248.98132f, 29.587158f, -67.73486f), 1187) + index2++; + span68[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(248.98132f, 29.587158f, -67.73486f), 1187) { NpcWaitDistance = 6.5f, Mount = false, Sprint = false }; - span25[2] = new QuestStep(EInteractionType.Interact, 2014277u, new Vector3(248.98132f, 29.587158f, -67.73486f), 1187); + index2++; + span68[index2] = new QuestStep(EInteractionType.Interact, 2014277u, new Vector3(248.98132f, 29.587158f, -67.73486f), 1187); obj51.Steps = list68; reference52 = obj51; - ref QuestSequence reference53 = ref span23[4]; + num++; + ref QuestSequence reference53 = ref span62[num]; QuestSequence obj52 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1051215u, new Vector3(247.60815f, 29.59192f, -64.40839f), 1187) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.Interact, 1051215u, new Vector3(247.60815f, 29.59192f, -64.40839f), 1187) { StopDistance = 5f }; obj52.Steps = list69; reference53 = obj52; - ref QuestSequence reference54 = ref span23[5]; + num++; + ref QuestSequence reference54 = ref span62[num]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -353486,7 +429662,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -353501,21 +429679,26 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + Span span71 = CollectionsMarshal.AsSpan(list71); + index = 0; + span71[index] = "liza"; questRoot9.Author = list71; - num = 8; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span26 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference55 = ref span26[0]; + index = 8; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + Span span72 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference55 = ref span72[num]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + index2 = 1; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num2 = 0; + span73[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -353534,7 +429717,8 @@ public static class AssemblyQuestLoader }; obj54.Steps = list73; reference55 = obj54; - ref QuestSequence reference56 = ref span26[1]; + num++; + ref QuestSequence reference56 = ref span72[num]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -353542,27 +429726,33 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1051216u, new Vector3(522.8502f, 111.135f, 614.3434f), 1187) + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.Interact, 1051216u, new Vector3(522.8502f, 111.135f, 614.3434f), 1187) { Fly = true }; obj55.Steps = list74; reference56 = obj55; - ref QuestSequence reference57 = ref span26[2]; + num++; + ref QuestSequence reference57 = ref span72[num]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1051218u, new Vector3(-595.72754f, 58.576252f, 137.86523f), 1187) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.Interact, 1051218u, new Vector3(-595.72754f, 58.576252f, 137.86523f), 1187) { Fly = true }; obj56.Steps = list75; reference57 = obj56; - ref QuestSequence reference58 = ref span26[3]; + num++; + ref QuestSequence reference58 = ref span72[num]; QuestSequence obj57 = new QuestSequence { Sequence = 3 @@ -353570,36 +429760,44 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1051221u, new Vector3(-670.25256f, 53.34527f, 126.29883f), 1187) + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.Interact, 1051221u, new Vector3(-670.25256f, 53.34527f, 126.29883f), 1187) { StopDistance = 0.25f, Fly = true }; obj57.Steps = list76; reference58 = obj57; - ref QuestSequence reference59 = ref span26[4]; + num++; + ref QuestSequence reference59 = ref span72[num]; QuestSequence obj58 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list77)[0]; + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + ref QuestStep reference60 = ref span77[num2]; QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(-779.43585f, 61.86622f, 198.07907f), 1187) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = 17655u; + num4 = 1; + List list78 = new List(num4); + CollectionsMarshal.SetCount(list78, num4); + Span span78 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span78[num3] = 17655u; obj59.KillEnemyDataIds = list78; reference60 = obj59; obj58.Steps = list77; reference59 = obj58; - ref QuestSequence reference61 = ref span26[5]; + num++; + ref QuestSequence reference61 = ref span72[num]; QuestSequence obj60 = new QuestSequence { Sequence = 5 @@ -353607,27 +429805,33 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1051223u, new Vector3(-781.3993f, 61.80422f, 198.2909f), 1187) + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.Interact, 1051223u, new Vector3(-781.3993f, 61.80422f, 198.2909f), 1187) { StopDistance = 8f }; obj60.Steps = list79; reference61 = obj60; - ref QuestSequence reference62 = ref span26[6]; + num++; + ref QuestSequence reference62 = ref span72[num]; QuestSequence obj61 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1051225u, new Vector3(-787.5334f, 50.050797f, 88.54797f), 1187) + index2 = 1; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + span80[num2] = new QuestStep(EInteractionType.Interact, 1051225u, new Vector3(-787.5334f, 50.050797f, 88.54797f), 1187) { StopDistance = 5f }; obj61.Steps = list80; reference62 = obj61; - ref QuestSequence reference63 = ref span26[7]; + num++; + ref QuestSequence reference63 = ref span72[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -353635,7 +429839,9 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + Span span81 = CollectionsMarshal.AsSpan(list81); + index2 = 0; + span81[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -353650,21 +429856,26 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - CollectionsMarshal.AsSpan(list82)[0] = "liza"; + Span span82 = CollectionsMarshal.AsSpan(list82); + index = 0; + span82[index] = "liza"; questRoot10.Author = list82; - num = 6; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span27 = CollectionsMarshal.AsSpan(list83); - ref QuestSequence reference64 = ref span27[0]; + index = 6; + List list83 = new List(index); + CollectionsMarshal.SetCount(list83, index); + Span span83 = CollectionsMarshal.AsSpan(list83); + num = 0; + ref QuestSequence reference64 = ref span83[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -353683,7 +429894,8 @@ public static class AssemblyQuestLoader }; obj63.Steps = list84; reference64 = obj63; - ref QuestSequence reference65 = ref span27[1]; + num++; + ref QuestSequence reference65 = ref span83[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 @@ -353691,27 +429903,33 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.Interact, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; obj64.Steps = list85; reference65 = obj64; - ref QuestSequence reference66 = ref span27[2]; + num++; + ref QuestSequence reference66 = ref span83[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1051228u, new Vector3(476.2798f, -133.9321f, -353.01752f), 1187) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.Interact, 1051228u, new Vector3(476.2798f, -133.9321f, -353.01752f), 1187) { Fly = true }; obj65.Steps = list86; reference66 = obj65; - ref QuestSequence reference67 = ref span27[3]; + num++; + ref QuestSequence reference67 = ref span83[num]; QuestSequence obj66 = new QuestSequence { Sequence = 3 @@ -353719,28 +429937,34 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1051230u, new Vector3(-23.422668f, 54.695663f, 533.1044f), 1187) + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.Interact, 1051230u, new Vector3(-23.422668f, 54.695663f, 533.1044f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; obj66.Steps = list87; reference67 = obj66; - ref QuestSequence reference68 = ref span27[4]; + num++; + ref QuestSequence reference68 = ref span83[num]; QuestSequence obj67 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1051235u, new Vector3(-22.354492f, 54.58289f, 536.1256f), 1187) + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Interact, 1051235u, new Vector3(-22.354492f, 54.58289f, 536.1256f), 1187) { StopDistance = 5f }; obj67.Steps = list88; reference68 = obj67; - ref QuestSequence reference69 = ref span27[5]; + num++; + ref QuestSequence reference69 = ref span83[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -353748,7 +429972,9 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051236u, new Vector3(426.3828f, 118.935f, 603.6621f), 1187) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051236u, new Vector3(426.3828f, 118.935f, 603.6621f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; @@ -353761,24 +429987,30 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - CollectionsMarshal.AsSpan(list90)[0] = "liza"; + Span span90 = CollectionsMarshal.AsSpan(list90); + index = 0; + span90[index] = "liza"; questRoot11.Author = list90; - num = 4; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span28 = CollectionsMarshal.AsSpan(list91); - ref QuestSequence reference70 = ref span28[0]; + index = 4; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + Span span91 = CollectionsMarshal.AsSpan(list91); + num = 0; + ref QuestSequence reference70 = ref span91[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048779u, new Vector3(-231.15894f, 3.221878f, -453.17773f), 1188); + index2 = 1; + List list92 = new List(index2); + CollectionsMarshal.SetCount(list92, index2); + Span span92 = CollectionsMarshal.AsSpan(list92); + num2 = 0; + span92[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048779u, new Vector3(-231.15894f, 3.221878f, -453.17773f), 1188); obj69.Steps = list92; reference70 = obj69; - ref QuestSequence reference71 = ref span28[1]; + num++; + ref QuestSequence reference71 = ref span91[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -353786,28 +430018,33 @@ public static class AssemblyQuestLoader num2 = 2; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span29 = CollectionsMarshal.AsSpan(list93); - span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-93.41179f, 15.238003f, -677.9412f), 1188) + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-93.41179f, 15.238003f, -677.9412f), 1188) { Fly = true }; - span29[1] = new QuestStep(EInteractionType.Interact, 2014160u, new Vector3(-95.23157f, 16.464417f, -677.8821f), 1188); + index2++; + span93[index2] = new QuestStep(EInteractionType.Interact, 2014160u, new Vector3(-95.23157f, 16.464417f, -677.8821f), 1188); obj70.Steps = list93; reference71 = obj70; - ref QuestSequence reference72 = ref span28[2]; + num++; + ref QuestSequence reference72 = ref span91[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span30 = CollectionsMarshal.AsSpan(list94); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(183.02583f, -0.40592146f, -568.2219f), 1188) + index2 = 4; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(183.02583f, -0.40592146f, -568.2219f), 1188) { Fly = true }; - ref QuestStep reference73 = ref span30[1]; + num2++; + ref QuestStep reference73 = ref span94[num2]; QuestStep obj72 = new QuestStep(EInteractionType.UseItem, 2014163u, new Vector3(181.8722f, 0.99176025f, -568.5359f), 1188) { Fly = true, @@ -353816,33 +430053,47 @@ public static class AssemblyQuestLoader num3 = 6; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - Span span31 = CollectionsMarshal.AsSpan(list95); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span95 = CollectionsMarshal.AsSpan(list95); + num4 = 0; + span95[num4] = null; + num4++; + span95[num4] = null; + num4++; + span95[num4] = null; + num4++; + span95[num4] = null; + num4++; + span95[num4] = null; + num4++; + span95[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj72.CompletionQuestVariablesFlags = list95; reference73 = obj72; - ref QuestStep reference74 = ref span30[2]; + num2++; + ref QuestStep reference74 = ref span94[num2]; QuestStep obj73 = new QuestStep(EInteractionType.UseItem, 2014161u, new Vector3(221.57617f, 0.99176025f, -610.7423f), 1188) { ItemId = 2003626u }; - num3 = 6; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - Span span32 = CollectionsMarshal.AsSpan(list96); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list96 = new List(num4); + CollectionsMarshal.SetCount(list96, num4); + Span span96 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span96[num3] = null; + num3++; + span96[num3] = null; + num3++; + span96[num3] = null; + num3++; + span96[num3] = null; + num3++; + span96[num3] = null; + num3++; + span96[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj73.CompletionQuestVariablesFlags = list96; reference74 = obj73; - ref QuestStep reference75 = ref span30[3]; + num2++; + ref QuestStep reference75 = ref span94[num2]; QuestStep obj74 = new QuestStep(EInteractionType.UseItem, 2014162u, new Vector3(244.953f, 1.1138916f, -569.2684f), 1188) { ItemId = 2003626u @@ -353850,18 +430101,25 @@ public static class AssemblyQuestLoader num3 = 6; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - Span span33 = CollectionsMarshal.AsSpan(list97); - span33[0] = null; - span33[1] = null; - span33[2] = null; - span33[3] = null; - span33[4] = null; - span33[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span97 = CollectionsMarshal.AsSpan(list97); + num4 = 0; + span97[num4] = null; + num4++; + span97[num4] = null; + num4++; + span97[num4] = null; + num4++; + span97[num4] = null; + num4++; + span97[num4] = null; + num4++; + span97[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj74.CompletionQuestVariablesFlags = list97; reference75 = obj74; obj71.Steps = list94; reference72 = obj71; - ref QuestSequence reference76 = ref span28[3]; + num++; + ref QuestSequence reference76 = ref span91[num]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -353869,7 +430127,9 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048779u, new Vector3(-231.15894f, 3.221878f, -453.17773f), 1188) + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span98[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048779u, new Vector3(-231.15894f, 3.221878f, -453.17773f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu @@ -353883,24 +430143,30 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - CollectionsMarshal.AsSpan(list99)[0] = "liza"; + Span span99 = CollectionsMarshal.AsSpan(list99); + index = 0; + span99[index] = "liza"; questRoot12.Author = list99; - num = 3; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span34 = CollectionsMarshal.AsSpan(list100); - ref QuestSequence reference77 = ref span34[0]; + index = 3; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + Span span100 = CollectionsMarshal.AsSpan(list100); + num = 0; + ref QuestSequence reference77 = ref span100[num]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048780u, new Vector3(-103.868225f, 25.199324f, -525.41394f), 1188); + index2 = 1; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + span101[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048780u, new Vector3(-103.868225f, 25.199324f, -525.41394f), 1188); obj76.Steps = list101; reference77 = obj76; - ref QuestSequence reference78 = ref span34[1]; + num++; + ref QuestSequence reference78 = ref span100[num]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -353908,8 +430174,9 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span35 = CollectionsMarshal.AsSpan(list102); - span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-95.05529f, 25.199324f, -523.8404f), 1188) + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + span102[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-95.05529f, 25.199324f, -523.8404f), 1188) { Mount = true, SkipConditions = new SkipConditions @@ -353920,29 +430187,35 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference79 = ref span35[1]; + index2++; + ref QuestStep reference79 = ref span102[index2]; QuestStep obj78 = new QuestStep(EInteractionType.Combat, 2014195u, new Vector3(-314.2901f, 0.38146973f, -211.26117f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = 17656u; + num4 = 1; + List list103 = new List(num4); + CollectionsMarshal.SetCount(list103, num4); + Span span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span103[num3] = 17656u; obj78.KillEnemyDataIds = list103; reference79 = obj78; obj77.Steps = list102; reference78 = obj77; - ref QuestSequence reference80 = ref span34[2]; + num++; + ref QuestSequence reference80 = ref span100[num]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048780u, new Vector3(-103.868225f, 25.199324f, -525.41394f), 1188) + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048780u, new Vector3(-103.868225f, 25.199324f, -525.41394f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu @@ -353956,13 +430229,16 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - CollectionsMarshal.AsSpan(list105)[0] = "liza"; + Span span105 = CollectionsMarshal.AsSpan(list105); + index = 0; + span105[index] = "liza"; questRoot13.Author = list105; - num = 3; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - Span span36 = CollectionsMarshal.AsSpan(list106); - ref QuestSequence reference81 = ref span36[0]; + index = 3; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + Span span106 = CollectionsMarshal.AsSpan(list106); + num = 0; + ref QuestSequence reference81 = ref span106[num]; QuestSequence obj80 = new QuestSequence { Sequence = 0 @@ -353970,18 +430246,23 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048781u, new Vector3(-213.09229f, 6.2771482f, -510.70422f), 1188); + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048781u, new Vector3(-213.09229f, 6.2771482f, -510.70422f), 1188); obj80.Steps = list107; reference81 = obj80; - ref QuestSequence reference82 = ref span36[1]; + num++; + ref QuestSequence reference82 = ref span106[num]; QuestSequence obj81 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list108)[0]; + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + ref QuestStep reference83 = ref span108[num2]; QuestStep obj82 = new QuestStep(EInteractionType.Combat, 2014196u, new Vector3(819.6382f, 14.084045f, -312.21484f), 1188) { Fly = true, @@ -353990,14 +430271,17 @@ public static class AssemblyQuestLoader num3 = 2; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - Span span37 = CollectionsMarshal.AsSpan(list109); - span37[0] = 17657u; - span37[1] = 17658u; + Span span109 = CollectionsMarshal.AsSpan(list109); + num4 = 0; + span109[num4] = 17657u; + num4++; + span109[num4] = 17658u; obj82.KillEnemyDataIds = list109; reference83 = obj82; obj81.Steps = list108; reference82 = obj81; - ref QuestSequence reference84 = ref span36[2]; + num++; + ref QuestSequence reference84 = ref span106[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -354005,7 +430289,9 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048781u, new Vector3(-213.09229f, 6.2771482f, -510.70422f), 1188) + Span span110 = CollectionsMarshal.AsSpan(list110); + index2 = 0; + span110[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048781u, new Vector3(-213.09229f, 6.2771482f, -510.70422f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; @@ -354018,24 +430304,30 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - CollectionsMarshal.AsSpan(list111)[0] = "liza"; + Span span111 = CollectionsMarshal.AsSpan(list111); + index = 0; + span111[index] = "liza"; questRoot14.Author = list111; - num = 3; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span38 = CollectionsMarshal.AsSpan(list112); - ref QuestSequence reference85 = ref span38[0]; + index = 3; + List list112 = new List(index); + CollectionsMarshal.SetCount(list112, index); + Span span112 = CollectionsMarshal.AsSpan(list112); + num = 0; + ref QuestSequence reference85 = ref span112[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048815u, new Vector3(127.03125f, 3.8414035f, -279.92682f), 1188); + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048815u, new Vector3(127.03125f, 3.8414035f, -279.92682f), 1188); obj84.Steps = list113; reference85 = obj84; - ref QuestSequence reference86 = ref span38[1]; + num++; + ref QuestSequence reference86 = ref span112[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -354043,25 +430335,33 @@ public static class AssemblyQuestLoader num2 = 3; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span39 = CollectionsMarshal.AsSpan(list114); - ref QuestStep reference87 = ref span39[0]; + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + ref QuestStep reference87 = ref span114[index2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 2014165u, new Vector3(255.57336f, -0.015319824f, -350.57605f), 1188) { Fly = true }; - num3 = 6; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - Span span40 = CollectionsMarshal.AsSpan(list115); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list115 = new List(num4); + CollectionsMarshal.SetCount(list115, num4); + Span span115 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj86.CompletionQuestVariablesFlags = list115; reference87 = obj86; - ref QuestStep reference88 = ref span39[1]; + index2++; + ref QuestStep reference88 = ref span114[index2]; QuestStep obj87 = new QuestStep(EInteractionType.Interact, 2014166u, new Vector3(198.74878f, -0.015319824f, -385.39716f), 1188) { Fly = true @@ -354069,43 +430369,59 @@ public static class AssemblyQuestLoader num3 = 6; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - Span span41 = CollectionsMarshal.AsSpan(list116); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span116 = CollectionsMarshal.AsSpan(list116); + num4 = 0; + span116[num4] = null; + num4++; + span116[num4] = null; + num4++; + span116[num4] = null; + num4++; + span116[num4] = null; + num4++; + span116[num4] = null; + num4++; + span116[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj87.CompletionQuestVariablesFlags = list116; reference88 = obj87; - ref QuestStep reference89 = ref span39[2]; + index2++; + ref QuestStep reference89 = ref span114[index2]; QuestStep obj88 = new QuestStep(EInteractionType.Interact, 2014164u, new Vector3(92.69849f, -0.015319824f, -409.26227f), 1188) { Fly = true }; - num3 = 6; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - Span span42 = CollectionsMarshal.AsSpan(list117); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list117 = new List(num4); + CollectionsMarshal.SetCount(list117, num4); + Span span117 = CollectionsMarshal.AsSpan(list117); + num3 = 0; + span117[num3] = null; + num3++; + span117[num3] = null; + num3++; + span117[num3] = null; + num3++; + span117[num3] = null; + num3++; + span117[num3] = null; + num3++; + span117[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj88.CompletionQuestVariablesFlags = list117; reference89 = obj88; obj85.Steps = list114; reference86 = obj85; - ref QuestSequence reference90 = ref span38[2]; + num++; + ref QuestSequence reference90 = ref span112[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048821u, new Vector3(-39.35309f, 21.48717f, -69.44385f), 1188); + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048821u, new Vector3(-39.35309f, 21.48717f, -69.44385f), 1188); obj89.Steps = list118; reference90 = obj89; questRoot14.QuestSequence = list112; @@ -354115,13 +430431,16 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - CollectionsMarshal.AsSpan(list119)[0] = "liza"; + Span span119 = CollectionsMarshal.AsSpan(list119); + index = 0; + span119[index] = "liza"; questRoot15.Author = list119; - num = 4; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span43 = CollectionsMarshal.AsSpan(list120); - ref QuestSequence reference91 = ref span43[0]; + index = 4; + List list120 = new List(index); + CollectionsMarshal.SetCount(list120, index); + Span span120 = CollectionsMarshal.AsSpan(list120); + num = 0; + ref QuestSequence reference91 = ref span120[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -354129,63 +430448,88 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048782u, new Vector3(-68.52832f, 6.536739f, -486.53394f), 1188); + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048782u, new Vector3(-68.52832f, 6.536739f, -486.53394f), 1188); obj90.Steps = list121; reference91 = obj90; - ref QuestSequence reference92 = ref span43[1]; + num++; + ref QuestSequence reference92 = ref span120[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - Span span44 = CollectionsMarshal.AsSpan(list122); - ref QuestStep reference93 = ref span44[0]; + index2 = 3; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + ref QuestStep reference93 = ref span122[num2]; 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); - Span span45 = CollectionsMarshal.AsSpan(list123); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span123 = CollectionsMarshal.AsSpan(list123); + num4 = 0; + span123[num4] = null; + num4++; + span123[num4] = null; + num4++; + span123[num4] = null; + num4++; + span123[num4] = null; + num4++; + span123[num4] = null; + num4++; + span123[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list123; reference93 = questStep2; - ref QuestStep reference94 = ref span44[1]; + num2++; + ref QuestStep reference94 = ref span122[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2014168u, new Vector3(-262.50098f, 4.989685f, -318.25745f), 1188); - num3 = 6; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - Span span46 = CollectionsMarshal.AsSpan(list124); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list124 = new List(num4); + CollectionsMarshal.SetCount(list124, num4); + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list124; reference94 = questStep3; - ref QuestStep reference95 = ref span44[2]; + num2++; + ref QuestStep reference95 = ref span122[num2]; 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); - Span span47 = CollectionsMarshal.AsSpan(list125); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span125 = CollectionsMarshal.AsSpan(list125); + num4 = 0; + span125[num4] = null; + num4++; + span125[num4] = null; + num4++; + span125[num4] = null; + num4++; + span125[num4] = null; + num4++; + span125[num4] = null; + num4++; + span125[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list125; reference95 = questStep4; obj91.Steps = list122; reference92 = obj91; - ref QuestSequence reference96 = ref span43[2]; + num++; + ref QuestSequence reference96 = ref span120[num]; QuestSequence obj92 = new QuestSequence { Sequence = 2 @@ -354193,8 +430537,9 @@ public static class AssemblyQuestLoader num2 = 2; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span48 = CollectionsMarshal.AsSpan(list126); - span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(399.21567f, -0.40000004f, -384.69452f), 1188) + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span126[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(399.21567f, -0.40000004f, -384.69452f), 1188) { Comment = "Waypoint after swimming through the river", SkipConditions = new SkipConditions @@ -354205,7 +430550,8 @@ public static class AssemblyQuestLoader } } }; - span48[1] = new QuestStep(EInteractionType.Interact, 1048826u, new Vector3(672.4802f, 41.63828f, -527.36707f), 1188) + index2++; + span126[index2] = new QuestStep(EInteractionType.Interact, 1048826u, new Vector3(672.4802f, 41.63828f, -527.36707f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, SkipConditions = new SkipConditions @@ -354218,15 +430564,18 @@ public static class AssemblyQuestLoader }; obj92.Steps = list126; reference96 = obj92; - ref QuestSequence reference97 = ref span43[3]; + num++; + ref QuestSequence reference97 = ref span120[num]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048782u, new Vector3(-68.52832f, 6.536739f, -486.53394f), 1188) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048782u, new Vector3(-68.52832f, 6.536739f, -486.53394f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; @@ -354239,13 +430588,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + Span span128 = CollectionsMarshal.AsSpan(list128); + index = 0; + span128[index] = "liza"; questRoot16.Author = list128; - num = 3; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span49 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference98 = ref span49[0]; + index = 3; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + Span span129 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference98 = ref span129[num]; QuestSequence obj94 = new QuestSequence { Sequence = 0 @@ -354253,36 +430605,47 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048831u, new Vector3(252.76562f, 13.481276f, -579.30884f), 1188); + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span130[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048831u, new Vector3(252.76562f, 13.481276f, -579.30884f), 1188); obj94.Steps = list130; reference98 = obj94; - ref QuestSequence reference99 = ref span49[1]; + num++; + ref QuestSequence reference99 = ref span129[num]; QuestSequence obj95 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - Span span50 = CollectionsMarshal.AsSpan(list131); - ref QuestStep reference100 = ref span50[0]; + index2 = 3; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + ref QuestStep reference100 = ref span131[num2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1048786u, new Vector3(-193.3471f, 6.277148f, -443.50348f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - num3 = 6; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - Span span51 = CollectionsMarshal.AsSpan(list132); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list132 = new List(num4); + CollectionsMarshal.SetCount(list132, num4); + Span span132 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span132[num3] = null; + num3++; + span132[num3] = null; + num3++; + span132[num3] = null; + num3++; + span132[num3] = null; + num3++; + span132[num3] = null; + num3++; + span132[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list132; reference100 = obj96; - ref QuestStep reference101 = ref span50[1]; + num2++; + ref QuestStep reference101 = ref span131[num2]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1048787u, new Vector3(-143.51111f, 9.842161f, -425.7115f), 1188) { Fly = true @@ -354290,35 +430653,49 @@ public static class AssemblyQuestLoader num3 = 6; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - Span span52 = CollectionsMarshal.AsSpan(list133); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span133 = CollectionsMarshal.AsSpan(list133); + num4 = 0; + span133[num4] = null; + num4++; + span133[num4] = null; + num4++; + span133[num4] = null; + num4++; + span133[num4] = null; + num4++; + span133[num4] = null; + num4++; + span133[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj97.CompletionQuestVariablesFlags = list133; reference101 = obj97; - ref QuestStep reference102 = ref span50[2]; + num2++; + ref QuestStep reference102 = ref span131[num2]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1048785u, new Vector3(-121.26343f, 9.773314f, -551.1406f), 1188) { Fly = true }; - num3 = 6; - List list134 = new List(num3); - CollectionsMarshal.SetCount(list134, num3); - Span span53 = CollectionsMarshal.AsSpan(list134); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list134 = new List(num4); + CollectionsMarshal.SetCount(list134, num4); + Span span134 = CollectionsMarshal.AsSpan(list134); + num3 = 0; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = null; + num3++; + span134[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj98.CompletionQuestVariablesFlags = list134; reference102 = obj98; obj95.Steps = list131; reference99 = obj95; - ref QuestSequence reference103 = ref span49[2]; + num++; + ref QuestSequence reference103 = ref span129[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -354326,7 +430703,9 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048831u, new Vector3(252.76562f, 13.481276f, -579.30884f), 1188); + Span span135 = CollectionsMarshal.AsSpan(list135); + index2 = 0; + span135[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048831u, new Vector3(252.76562f, 13.481276f, -579.30884f), 1188); obj99.Steps = list135; reference103 = obj99; questRoot16.QuestSequence = list129; @@ -354336,24 +430715,30 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - CollectionsMarshal.AsSpan(list136)[0] = "liza"; + Span span136 = CollectionsMarshal.AsSpan(list136); + index = 0; + span136[index] = "liza"; questRoot17.Author = list136; - num = 5; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - Span span54 = CollectionsMarshal.AsSpan(list137); - ref QuestSequence reference104 = ref span54[0]; + index = 5; + List list137 = new List(index); + CollectionsMarshal.SetCount(list137, index); + Span span137 = CollectionsMarshal.AsSpan(list137); + num = 0; + ref QuestSequence reference104 = ref span137[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048836u, new Vector3(-578.91205f, 6.1739964f, -472.80084f), 1188); + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048836u, new Vector3(-578.91205f, 6.1739964f, -472.80084f), 1188); obj100.Steps = list138; reference104 = obj100; - ref QuestSequence reference105 = ref span54[1]; + num++; + ref QuestSequence reference105 = ref span137[num]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -354361,28 +430746,34 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1048837u, new Vector3(-613.2754f, 93.595924f, -476.95123f), 1188) + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.Interact, 1048837u, new Vector3(-613.2754f, 93.595924f, -476.95123f), 1188) { Fly = true }; obj101.Steps = list139; reference105 = obj101; - ref QuestSequence reference106 = ref span54[2]; + num++; + ref QuestSequence reference106 = ref span137[num]; QuestSequence obj102 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Emote, null, new Vector3(-607.3569f, 93.57029f, -472.15475f), 1188) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.Emote, null, new Vector3(-607.3569f, 93.57029f, -472.15475f), 1188) { StopDistance = 0.5f, Emote = EEmote.Pray }; obj102.Steps = list140; reference106 = obj102; - ref QuestSequence reference107 = ref span54[3]; + num++; + ref QuestSequence reference107 = ref span137[num]; QuestSequence obj103 = new QuestSequence { Sequence = 3 @@ -354390,21 +430781,26 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-585.36694f, 6.317712f, -463.53406f), 1188) + Span span141 = CollectionsMarshal.AsSpan(list141); + index2 = 0; + span141[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-585.36694f, 6.317712f, -463.53406f), 1188) { DisableNavmesh = true }; obj103.Steps = list141; reference107 = obj103; - ref QuestSequence reference108 = ref span54[4]; + num++; + ref QuestSequence reference108 = ref span137[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list142 = new List(num2); - CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048836u, new Vector3(-578.91205f, 6.1739964f, -472.80084f), 1188) + index2 = 1; + List list142 = new List(index2); + CollectionsMarshal.SetCount(list142, index2); + Span span142 = CollectionsMarshal.AsSpan(list142); + num2 = 0; + span142[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048836u, new Vector3(-578.91205f, 6.1739964f, -472.80084f), 1188) { StopDistance = 7f }; @@ -354417,13 +430813,16 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; + Span span143 = CollectionsMarshal.AsSpan(list143); + index = 0; + span143[index] = "liza"; questRoot18.Author = list143; - num = 4; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span55 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference109 = ref span55[0]; + index = 4; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + Span span144 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference109 = ref span144[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 @@ -354431,18 +430830,23 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048783u, new Vector3(-269.91687f, 5.9870257f, -431.47937f), 1188); + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048783u, new Vector3(-269.91687f, 5.9870257f, -431.47937f), 1188); obj105.Steps = list145; reference109 = obj105; - ref QuestSequence reference110 = ref span55[1]; + num++; + ref QuestSequence reference110 = ref span144[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - ref QuestStep reference111 = ref CollectionsMarshal.AsSpan(list146)[0]; + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + ref QuestStep reference111 = ref span146[num2]; QuestStep obj107 = new QuestStep(EInteractionType.Combat, 1050705u, new Vector3(-218.24988f, 0.4f, -41.519836f), 1188) { Fly = true, @@ -354451,12 +430855,15 @@ public static class AssemblyQuestLoader num3 = 1; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - CollectionsMarshal.AsSpan(list147)[0] = 17659u; + Span span147 = CollectionsMarshal.AsSpan(list147); + num4 = 0; + span147[num4] = 17659u; obj107.KillEnemyDataIds = list147; reference111 = obj107; obj106.Steps = list146; reference110 = obj106; - ref QuestSequence reference112 = ref span55[2]; + num++; + ref QuestSequence reference112 = ref span144[num]; QuestSequence obj108 = new QuestSequence { Sequence = 2 @@ -354464,21 +430871,26 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1050705u, new Vector3(-218.24988f, 0.4f, -41.519836f), 1188) + Span span148 = CollectionsMarshal.AsSpan(list148); + index2 = 0; + span148[index2] = new QuestStep(EInteractionType.Interact, 1050705u, new Vector3(-218.24988f, 0.4f, -41.519836f), 1188) { StopDistance = 7f }; obj108.Steps = list148; reference112 = obj108; - ref QuestSequence reference113 = ref span55[3]; + num++; + ref QuestSequence reference113 = ref span144[num]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list149 = new List(num2); - CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048783u, new Vector3(-269.91687f, 5.9870257f, -431.47937f), 1188) + index2 = 1; + List list149 = new List(index2); + CollectionsMarshal.SetCount(list149, index2); + Span span149 = CollectionsMarshal.AsSpan(list149); + num2 = 0; + span149[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048783u, new Vector3(-269.91687f, 5.9870257f, -431.47937f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu @@ -354492,13 +430904,16 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "liza"; + Span span150 = CollectionsMarshal.AsSpan(list150); + index = 0; + span150[index] = "liza"; questRoot19.Author = list150; - num = 4; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span56 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference114 = ref span56[0]; + index = 4; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + Span span151 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference114 = ref span151[num]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -354506,24 +430921,30 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050707u, new Vector3(-183.73395f, 10.893587f, -584.2832f), 1188); + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + span152[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050707u, new Vector3(-183.73395f, 10.893587f, -584.2832f), 1188); obj110.Steps = list152; reference114 = obj110; - ref QuestSequence reference115 = ref span56[1]; + num++; + ref QuestSequence reference115 = ref span151[num]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list153 = new List(num2); - CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 2014172u, new Vector3(-70.96979f, 6.515503f, -496.2692f), 1188) + index2 = 1; + List list153 = new List(index2); + CollectionsMarshal.SetCount(list153, index2); + Span span153 = CollectionsMarshal.AsSpan(list153); + num2 = 0; + span153[num2] = new QuestStep(EInteractionType.Interact, 2014172u, new Vector3(-70.96979f, 6.515503f, -496.2692f), 1188) { Fly = true }; obj111.Steps = list153; reference115 = obj111; - ref QuestSequence reference116 = ref span56[2]; + num++; + ref QuestSequence reference116 = ref span151[num]; QuestSequence obj112 = new QuestSequence { Sequence = 2 @@ -354531,8 +430952,9 @@ public static class AssemblyQuestLoader num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span57 = CollectionsMarshal.AsSpan(list154); - span57[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(623.9169f, 46.050114f, -526.32715f), 1188) + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(623.9169f, 46.050114f, -526.32715f), 1188) { Fly = true, SkipConditions = new SkipConditions @@ -354543,21 +430965,25 @@ public static class AssemblyQuestLoader } } }; - span57[1] = new QuestStep(EInteractionType.Interact, 2014173u, new Vector3(670.5576f, 42.923584f, -515.55664f), 1188) + index2++; + span154[index2] = new QuestStep(EInteractionType.Interact, 2014173u, new Vector3(670.5576f, 42.923584f, -515.55664f), 1188) { Fly = true }; obj112.Steps = list154; reference116 = obj112; - ref QuestSequence reference117 = ref span56[3]; + num++; + ref QuestSequence reference117 = ref span151[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050707u, new Vector3(-183.73395f, 10.893587f, -584.2832f), 1188) + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span155[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050707u, new Vector3(-183.73395f, 10.893587f, -584.2832f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu @@ -354571,13 +430997,16 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - CollectionsMarshal.AsSpan(list156)[0] = "liza"; + Span span156 = CollectionsMarshal.AsSpan(list156); + index = 0; + span156[index] = "liza"; questRoot20.Author = list156; - num = 3; - List list157 = new List(num); - CollectionsMarshal.SetCount(list157, num); - Span span58 = CollectionsMarshal.AsSpan(list157); - ref QuestSequence reference118 = ref span58[0]; + index = 3; + List list157 = new List(index); + CollectionsMarshal.SetCount(list157, index); + Span span157 = CollectionsMarshal.AsSpan(list157); + num = 0; + ref QuestSequence reference118 = ref span157[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -354585,37 +431014,48 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048784u, new Vector3(-115.617676f, 25.086319f, -551.5984f), 1188); + Span span158 = CollectionsMarshal.AsSpan(list158); + index2 = 0; + span158[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048784u, new Vector3(-115.617676f, 25.086319f, -551.5984f), 1188); obj114.Steps = list158; reference118 = obj114; - ref QuestSequence reference119 = ref span58[1]; + num++; + ref QuestSequence reference119 = ref span157[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span59 = CollectionsMarshal.AsSpan(list159); - ref QuestStep reference120 = ref span59[0]; + index2 = 3; + List list159 = new List(index2); + CollectionsMarshal.SetCount(list159, index2); + Span span159 = CollectionsMarshal.AsSpan(list159); + num2 = 0; + ref QuestStep reference120 = ref span159[num2]; QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1048898u, new Vector3(524.1931f, 15.639493f, 5.4473877f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - num3 = 6; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - Span span60 = CollectionsMarshal.AsSpan(list160); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list160 = new List(num4); + CollectionsMarshal.SetCount(list160, num4); + Span span160 = CollectionsMarshal.AsSpan(list160); + num3 = 0; + span160[num3] = null; + num3++; + span160[num3] = null; + num3++; + span160[num3] = null; + num3++; + span160[num3] = null; + num3++; + span160[num3] = null; + num3++; + span160[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj116.CompletionQuestVariablesFlags = list160; reference120 = obj116; - ref QuestStep reference121 = ref span59[1]; + num2++; + ref QuestStep reference121 = ref span159[num2]; QuestStep obj117 = new QuestStep(EInteractionType.Interact, 1048897u, new Vector3(551.6593f, 12.326415f, -32.852783f), 1188) { Fly = true @@ -354623,32 +431063,46 @@ public static class AssemblyQuestLoader num3 = 6; List list161 = new List(num3); CollectionsMarshal.SetCount(list161, num3); - Span span61 = CollectionsMarshal.AsSpan(list161); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span161 = CollectionsMarshal.AsSpan(list161); + num4 = 0; + span161[num4] = null; + num4++; + span161[num4] = null; + num4++; + span161[num4] = null; + num4++; + span161[num4] = null; + num4++; + span161[num4] = null; + num4++; + span161[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj117.CompletionQuestVariablesFlags = list161; reference121 = obj117; - ref QuestStep reference122 = ref span59[2]; + num2++; + ref QuestStep reference122 = ref span159[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1048896u, new Vector3(513.0541f, 15.9776535f, -54.36792f), 1188); - num3 = 6; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - Span span62 = CollectionsMarshal.AsSpan(list162); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list162 = new List(num4); + CollectionsMarshal.SetCount(list162, num4); + Span span162 = CollectionsMarshal.AsSpan(list162); + num3 = 0; + span162[num3] = null; + num3++; + span162[num3] = null; + num3++; + span162[num3] = null; + num3++; + span162[num3] = null; + num3++; + span162[num3] = null; + num3++; + span162[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list162; reference122 = questStep5; obj115.Steps = list159; reference119 = obj115; - ref QuestSequence reference123 = ref span58[2]; + num++; + ref QuestSequence reference123 = ref span157[num]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -354656,7 +431110,9 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048784u, new Vector3(-115.617676f, 25.086319f, -551.5984f), 1188) + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span163[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048784u, new Vector3(-115.617676f, 25.086319f, -551.5984f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; @@ -354669,24 +431125,30 @@ public static class AssemblyQuestLoader num = 1; List list164 = new List(num); CollectionsMarshal.SetCount(list164, num); - CollectionsMarshal.AsSpan(list164)[0] = "liza"; + Span span164 = CollectionsMarshal.AsSpan(list164); + index = 0; + span164[index] = "liza"; questRoot21.Author = list164; - num = 3; - List list165 = new List(num); - CollectionsMarshal.SetCount(list165, num); - Span span63 = CollectionsMarshal.AsSpan(list165); - ref QuestSequence reference124 = ref span63[0]; + index = 3; + List list165 = new List(index); + CollectionsMarshal.SetCount(list165, index); + Span span165 = CollectionsMarshal.AsSpan(list165); + num = 0; + ref QuestSequence reference124 = ref span165[num]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051372u, new Vector3(-183.79492f, 6.5185943f, -498.0392f), 1188); + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051372u, new Vector3(-183.79492f, 6.5185943f, -498.0392f), 1188); obj119.Steps = list166; reference124 = obj119; - ref QuestSequence reference125 = ref span63[1]; + num++; + ref QuestSequence reference125 = ref span165[num]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -354694,21 +431156,26 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1051373u, new Vector3(-232.07446f, 10.1700535f, -395.68176f), 1188) + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.Interact, 1051373u, new Vector3(-232.07446f, 10.1700535f, -395.68176f), 1188) { Fly = true }; obj120.Steps = list167; reference125 = obj120; - ref QuestSequence reference126 = ref span63[2]; + num++; + ref QuestSequence reference126 = ref span165[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051374u, new Vector3(-229.02264f, 10.041226f, -396.2005f), 1188); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051374u, new Vector3(-229.02264f, 10.041226f, -396.2005f), 1188); obj121.Steps = list168; reference126 = obj121; questRoot21.QuestSequence = list165; @@ -354718,13 +431185,16 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "liza"; + Span span169 = CollectionsMarshal.AsSpan(list169); + index = 0; + span169[index] = "liza"; questRoot22.Author = list169; - num = 3; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span64 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference127 = ref span64[0]; + index = 3; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + Span span170 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference127 = ref span170[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -354732,19 +431202,23 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048853u, new Vector3(-431.99817f, 121.63345f, 304.3412f), 1188); + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span171[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048853u, new Vector3(-431.99817f, 121.63345f, 304.3412f), 1188); obj122.Steps = list171; reference127 = obj122; - ref QuestSequence reference128 = ref span64[1]; + num++; + ref QuestSequence reference128 = ref span170[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - Span span65 = CollectionsMarshal.AsSpan(list172); - ref QuestStep reference129 = ref span65[0]; + index2 = 2; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + ref QuestStep reference129 = ref span172[num2]; QuestStep obj124 = new QuestStep(EInteractionType.Interact, 2014174u, new Vector3(-756.89325f, 135.66797f, 83.78723f), 1188) { Fly = true @@ -354752,32 +431226,46 @@ public static class AssemblyQuestLoader num3 = 6; List list173 = new List(num3); CollectionsMarshal.SetCount(list173, num3); - Span span66 = CollectionsMarshal.AsSpan(list173); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span173 = CollectionsMarshal.AsSpan(list173); + num4 = 0; + span173[num4] = null; + num4++; + span173[num4] = null; + num4++; + span173[num4] = null; + num4++; + span173[num4] = null; + num4++; + span173[num4] = null; + num4++; + span173[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj124.CompletionQuestVariablesFlags = list173; reference129 = obj124; - ref QuestStep reference130 = ref span65[1]; + num2++; + ref QuestStep reference130 = ref span172[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2014175u, new Vector3(-786.3432f, 135.66797f, 121.9043f), 1188); - num3 = 6; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - Span span67 = CollectionsMarshal.AsSpan(list174); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list174 = new List(num4); + CollectionsMarshal.SetCount(list174, num4); + Span span174 = CollectionsMarshal.AsSpan(list174); + num3 = 0; + span174[num3] = null; + num3++; + span174[num3] = null; + num3++; + span174[num3] = null; + num3++; + span174[num3] = null; + num3++; + span174[num3] = null; + num3++; + span174[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list174; reference130 = questStep6; obj123.Steps = list172; reference128 = obj123; - ref QuestSequence reference131 = ref span64[2]; + num++; + ref QuestSequence reference131 = ref span170[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -354785,7 +431273,9 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048853u, new Vector3(-431.99817f, 121.63345f, 304.3412f), 1188) + Span span175 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + span175[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048853u, new Vector3(-431.99817f, 121.63345f, 304.3412f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -354798,24 +431288,30 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "liza"; + Span span176 = CollectionsMarshal.AsSpan(list176); + index = 0; + span176[index] = "liza"; questRoot23.Author = list176; - num = 5; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span68 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference132 = ref span68[0]; + index = 5; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + Span span177 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference132 = ref span177[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list178 = new List(num2); - CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048867u, new Vector3(-489.0364f, 121.63345f, 368.00183f), 1188); + index2 = 1; + List list178 = new List(index2); + CollectionsMarshal.SetCount(list178, index2); + Span span178 = CollectionsMarshal.AsSpan(list178); + num2 = 0; + span178[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048867u, new Vector3(-489.0364f, 121.63345f, 368.00183f), 1188); obj126.Steps = list178; reference132 = obj126; - ref QuestSequence reference133 = ref span68[1]; + num++; + ref QuestSequence reference133 = ref span177[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 @@ -354823,29 +431319,35 @@ public static class AssemblyQuestLoader num2 = 2; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span69 = CollectionsMarshal.AsSpan(list179); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.1575f, 112.88461f, 684.6612f), 1188) + Span span179 = CollectionsMarshal.AsSpan(list179); + index2 = 0; + span179[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.1575f, 112.88461f, 684.6612f), 1188) { Fly = true }; - span69[1] = new QuestStep(EInteractionType.Interact, 1050708u, new Vector3(-296.52863f, 112.804924f, 686.2439f), 1188); + index2++; + span179[index2] = new QuestStep(EInteractionType.Interact, 1050708u, new Vector3(-296.52863f, 112.804924f, 686.2439f), 1188); obj127.Steps = list179; reference133 = obj127; - ref QuestSequence reference134 = ref span68[2]; + num++; + ref QuestSequence reference134 = ref span177[num]; QuestSequence obj128 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 2014176u, new Vector3(-127.15344f, 109.57495f, 523.7964f), 1188) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.Interact, 2014176u, new Vector3(-127.15344f, 109.57495f, 523.7964f), 1188) { Fly = true }; obj128.Steps = list180; reference134 = obj128; - ref QuestSequence reference135 = ref span68[3]; + num++; + ref QuestSequence reference135 = ref span177[num]; QuestSequence obj129 = new QuestSequence { Sequence = 3 @@ -354853,23 +431355,28 @@ public static class AssemblyQuestLoader num2 = 2; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span70 = CollectionsMarshal.AsSpan(list181); - span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.1575f, 112.88461f, 684.6612f), 1188) + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span181[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.1575f, 112.88461f, 684.6612f), 1188) { Fly = true }; - span70[1] = new QuestStep(EInteractionType.Interact, 1050708u, new Vector3(-296.52863f, 112.804924f, 686.2439f), 1188); + index2++; + span181[index2] = new QuestStep(EInteractionType.Interact, 1050708u, new Vector3(-296.52863f, 112.804924f, 686.2439f), 1188); obj129.Steps = list181; reference135 = obj129; - ref QuestSequence reference136 = ref span68[4]; + num++; + ref QuestSequence reference136 = ref span177[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048867u, new Vector3(-489.0364f, 121.63345f, 368.00183f), 1188) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048867u, new Vector3(-489.0364f, 121.63345f, 368.00183f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -354882,13 +431389,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + Span span183 = CollectionsMarshal.AsSpan(list183); + index = 0; + span183[index] = "liza"; questRoot24.Author = list183; - num = 3; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span71 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference137 = ref span71[0]; + index = 3; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + Span span184 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference137 = ref span184[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 @@ -354896,19 +431406,23 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048854u, new Vector3(-514.1833f, 121.63345f, 293.38513f), 1188); + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048854u, new Vector3(-514.1833f, 121.63345f, 293.38513f), 1188); obj131.Steps = list185; reference137 = obj131; - ref QuestSequence reference138 = ref span71[1]; + num++; + ref QuestSequence reference138 = ref span184[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - Span span72 = CollectionsMarshal.AsSpan(list186); - ref QuestStep reference139 = ref span72[0]; + index2 = 4; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + ref QuestStep reference139 = ref span186[num2]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2014177u, new Vector3(-351.40002f, 109.57495f, 62.210938f), 1188) { Fly = true @@ -354916,33 +431430,47 @@ public static class AssemblyQuestLoader num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - Span span73 = CollectionsMarshal.AsSpan(list187); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span187 = CollectionsMarshal.AsSpan(list187); + num4 = 0; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = null; + num4++; + span187[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj133.CompletionQuestVariablesFlags = list187; reference139 = obj133; - ref QuestStep reference140 = ref span72[1]; + num2++; + ref QuestStep reference140 = ref span186[num2]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 2014178u, new Vector3(-172.32019f, 109.54443f, 128.67932f), 1188) { Fly = true }; - num3 = 6; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span74 = CollectionsMarshal.AsSpan(list188); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = null; - span74[4] = null; - span74[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list188 = new List(num4); + CollectionsMarshal.SetCount(list188, num4); + Span span188 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = null; + num3++; + span188[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj134.CompletionQuestVariablesFlags = list188; reference140 = obj134; - ref QuestStep reference141 = ref span72[2]; + num2++; + ref QuestStep reference141 = ref span186[num2]; QuestStep obj135 = new QuestStep(EInteractionType.Interact, 2014179u, new Vector3(142.96167f, 109.57495f, 169.604f), 1188) { Fly = true @@ -354950,35 +431478,49 @@ public static class AssemblyQuestLoader num3 = 6; List list189 = new List(num3); CollectionsMarshal.SetCount(list189, num3); - Span span75 = CollectionsMarshal.AsSpan(list189); - span75[0] = null; - span75[1] = null; - span75[2] = null; - span75[3] = null; - span75[4] = null; - span75[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span189 = CollectionsMarshal.AsSpan(list189); + num4 = 0; + span189[num4] = null; + num4++; + span189[num4] = null; + num4++; + span189[num4] = null; + num4++; + span189[num4] = null; + num4++; + span189[num4] = null; + num4++; + span189[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj135.CompletionQuestVariablesFlags = list189; reference141 = obj135; - ref QuestStep reference142 = ref span72[3]; + num2++; + ref QuestStep reference142 = ref span186[num2]; QuestStep obj136 = new QuestStep(EInteractionType.Interact, 2014180u, new Vector3(214.86218f, 109.54443f, 138.68921f), 1188) { Fly = true }; - num3 = 6; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - Span span76 = CollectionsMarshal.AsSpan(list190); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list190 = new List(num4); + CollectionsMarshal.SetCount(list190, num4); + Span span190 = CollectionsMarshal.AsSpan(list190); + num3 = 0; + span190[num3] = null; + num3++; + span190[num3] = null; + num3++; + span190[num3] = null; + num3++; + span190[num3] = null; + num3++; + span190[num3] = null; + num3++; + span190[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj136.CompletionQuestVariablesFlags = list190; reference142 = obj136; obj132.Steps = list186; reference138 = obj132; - ref QuestSequence reference143 = ref span71[2]; + num++; + ref QuestSequence reference143 = ref span184[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -354986,7 +431528,9 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048854u, new Vector3(-514.1833f, 121.63345f, 293.38513f), 1188) + Span span191 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span191[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048854u, new Vector3(-514.1833f, 121.63345f, 293.38513f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -354999,24 +431543,30 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - CollectionsMarshal.AsSpan(list192)[0] = "liza"; + Span span192 = CollectionsMarshal.AsSpan(list192); + index = 0; + span192[index] = "liza"; questRoot25.Author = list192; - num = 6; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - Span span77 = CollectionsMarshal.AsSpan(list193); - ref QuestSequence reference144 = ref span77[0]; + index = 6; + List list193 = new List(index); + CollectionsMarshal.SetCount(list193, index); + Span span193 = CollectionsMarshal.AsSpan(list193); + num = 0; + ref QuestSequence reference144 = ref span193[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048855u, new Vector3(-491.63043f, 121.63846f, 271.50366f), 1188); + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048855u, new Vector3(-491.63043f, 121.63846f, 271.50366f), 1188); obj138.Steps = list194; reference144 = obj138; - ref QuestSequence reference145 = ref span77[1]; + num++; + ref QuestSequence reference145 = ref span193[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -355024,26 +431574,33 @@ public static class AssemblyQuestLoader num2 = 2; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span78 = CollectionsMarshal.AsSpan(list195); - span78[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-444.31415f, 123.89709f, 129.46912f), 1188); - span78[1] = new QuestStep(EInteractionType.Interact, 1050709u, new Vector3(-474.2962f, 127.79511f, 98.89368f), 1188); + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span195[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-444.31415f, 123.89709f, 129.46912f), 1188); + index2++; + span195[index2] = new QuestStep(EInteractionType.Interact, 1050709u, new Vector3(-474.2962f, 127.79511f, 98.89368f), 1188); obj139.Steps = list195; reference145 = obj139; - ref QuestSequence reference146 = ref span77[2]; + num++; + ref QuestSequence reference146 = ref span193[num]; QuestSequence obj140 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - Span span79 = CollectionsMarshal.AsSpan(list196); - span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-520.54517f, 135.98334f, 67.06335f), 1188); - span79[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-561.2461f, 138.97241f, 57.90152f), 1188); - span79[2] = new QuestStep(EInteractionType.Interact, 1050710u, new Vector3(-599.7864f, 142.85991f, 35.934937f), 1188); + index2 = 3; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-520.54517f, 135.98334f, 67.06335f), 1188); + num2++; + span196[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-561.2461f, 138.97241f, 57.90152f), 1188); + num2++; + span196[num2] = new QuestStep(EInteractionType.Interact, 1050710u, new Vector3(-599.7864f, 142.85991f, 35.934937f), 1188); obj140.Steps = list196; reference146 = obj140; - ref QuestSequence reference147 = ref span77[3]; + num++; + ref QuestSequence reference147 = ref span193[num]; QuestSequence obj141 = new QuestSequence { Sequence = 3 @@ -355051,7 +431608,9 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list197)[0]; + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + ref QuestStep reference148 = ref span197[index2]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, null, new Vector3(-539.3906f, 139.2539f, -65.13339f), 1188) { StopDistance = 0.25f, @@ -355060,26 +431619,32 @@ public static class AssemblyQuestLoader num3 = 1; List list198 = new List(num3); CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = 17660u; + Span span198 = CollectionsMarshal.AsSpan(list198); + num4 = 0; + span198[num4] = 17660u; obj142.KillEnemyDataIds = list198; reference148 = obj142; obj141.Steps = list197; reference147 = obj141; - ref QuestSequence reference149 = ref span77[4]; + num++; + ref QuestSequence reference149 = ref span193[num]; QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1050711u, new Vector3(-541.64954f, 139.2539f, -66.5141f), 1188) + index2 = 1; + List list199 = new List(index2); + CollectionsMarshal.SetCount(list199, index2); + Span span199 = CollectionsMarshal.AsSpan(list199); + num2 = 0; + span199[num2] = new QuestStep(EInteractionType.Interact, 1050711u, new Vector3(-541.64954f, 139.2539f, -66.5141f), 1188) { StopDistance = 5f }; obj143.Steps = list199; reference149 = obj143; - ref QuestSequence reference150 = ref span77[5]; + num++; + ref QuestSequence reference150 = ref span193[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -355087,12 +431652,14 @@ public static class AssemblyQuestLoader num2 = 2; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span80 = CollectionsMarshal.AsSpan(list200); - span80[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013941u, new Vector3(-754.11615f, 138.68921f, 122.66724f), 1188) + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span200[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013941u, new Vector3(-754.11615f, 138.68921f, 122.66724f), 1188) { AetherCurrentId = 2818426u }; - span80[1] = new QuestStep(EInteractionType.CompleteQuest, 1048855u, new Vector3(-491.63043f, 121.63846f, 271.50366f), 1188) + index2++; + span200[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048855u, new Vector3(-491.63043f, 121.63846f, 271.50366f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -355105,24 +431672,30 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "liza"; + Span span201 = CollectionsMarshal.AsSpan(list201); + index = 0; + span201[index] = "liza"; questRoot26.Author = list201; - num = 3; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span81 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference151 = ref span81[0]; + index = 3; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + Span span202 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference151 = ref span202[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048856u, new Vector3(-499.6262f, 121.63344f, 347.70728f), 1188); + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048856u, new Vector3(-499.6262f, 121.63344f, 347.70728f), 1188); obj145.Steps = list203; reference151 = obj145; - ref QuestSequence reference152 = ref span81[1]; + num++; + ref QuestSequence reference152 = ref span202[num]; QuestSequence obj146 = new QuestSequence { Sequence = 1 @@ -355130,30 +431703,38 @@ public static class AssemblyQuestLoader num2 = 4; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span82 = CollectionsMarshal.AsSpan(list204); - ref QuestStep reference153 = ref span82[0]; + Span span204 = CollectionsMarshal.AsSpan(list204); + index2 = 0; + ref QuestStep reference153 = ref span204[index2]; QuestStep obj147 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-74.84617f, 116.64437f, 590.74945f), 1188) { Fly = true }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 6; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - Span span83 = CollectionsMarshal.AsSpan(list205); - span83[0] = null; - span83[1] = null; - span83[2] = null; - span83[3] = null; - span83[4] = null; - span83[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list205 = new List(num4); + CollectionsMarshal.SetCount(list205, num4); + Span span205 = CollectionsMarshal.AsSpan(list205); + num3 = 0; + span205[num3] = null; + num3++; + span205[num3] = null; + num3++; + span205[num3] = null; + num3++; + span205[num3] = null; + num3++; + span205[num3] = null; + num3++; + span205[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list205; skipStepConditions.Flying = ELockedSkipCondition.Locked; skipConditions.StepIf = skipStepConditions; obj147.SkipConditions = skipConditions; reference153 = obj147; - ref QuestStep reference154 = ref span82[1]; + index2++; + ref QuestStep reference154 = ref span204[index2]; QuestStep obj148 = new QuestStep(EInteractionType.Interact, 2014184u, new Vector3(-5.1728516f, -6.729248f, 619.98914f), 1188) { DisableNavmesh = true, @@ -355162,33 +431743,47 @@ public static class AssemblyQuestLoader num3 = 6; List list206 = new List(num3); CollectionsMarshal.SetCount(list206, num3); - Span span84 = CollectionsMarshal.AsSpan(list206); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span206 = CollectionsMarshal.AsSpan(list206); + num4 = 0; + span206[num4] = null; + num4++; + span206[num4] = null; + num4++; + span206[num4] = null; + num4++; + span206[num4] = null; + num4++; + span206[num4] = null; + num4++; + span206[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj148.CompletionQuestVariablesFlags = list206; reference154 = obj148; - ref QuestStep reference155 = ref span82[2]; + index2++; + ref QuestStep reference155 = ref span204[index2]; QuestStep obj149 = new QuestStep(EInteractionType.Interact, 2014182u, new Vector3(112.93201f, -2.7314453f, 542.9617f), 1188) { Fly = true }; - num3 = 6; - List list207 = new List(num3); - CollectionsMarshal.SetCount(list207, num3); - Span span85 = CollectionsMarshal.AsSpan(list207); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list207 = new List(num4); + CollectionsMarshal.SetCount(list207, num4); + Span span207 = CollectionsMarshal.AsSpan(list207); + num3 = 0; + span207[num3] = null; + num3++; + span207[num3] = null; + num3++; + span207[num3] = null; + num3++; + span207[num3] = null; + num3++; + span207[num3] = null; + num3++; + span207[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj149.CompletionQuestVariablesFlags = list207; reference155 = obj149; - ref QuestStep reference156 = ref span82[3]; + index2++; + ref QuestStep reference156 = ref span204[index2]; QuestStep obj150 = new QuestStep(EInteractionType.Interact, 2014183u, new Vector3(266.3462f, -1.9684448f, 498.58838f), 1188) { Fly = true @@ -355196,26 +431791,35 @@ public static class AssemblyQuestLoader num3 = 6; List list208 = new List(num3); CollectionsMarshal.SetCount(list208, num3); - Span span86 = CollectionsMarshal.AsSpan(list208); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span208 = CollectionsMarshal.AsSpan(list208); + num4 = 0; + span208[num4] = null; + num4++; + span208[num4] = null; + num4++; + span208[num4] = null; + num4++; + span208[num4] = null; + num4++; + span208[num4] = null; + num4++; + span208[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj150.CompletionQuestVariablesFlags = list208; reference156 = obj150; obj146.Steps = list204; reference152 = obj146; - ref QuestSequence reference157 = ref span81[2]; + num++; + ref QuestSequence reference157 = ref span202[num]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048856u, new Vector3(-499.6262f, 121.63344f, 347.70728f), 1188) + index2 = 1; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + Span span209 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span209[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048856u, new Vector3(-499.6262f, 121.63344f, 347.70728f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; @@ -355228,13 +431832,16 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "liza"; + Span span210 = CollectionsMarshal.AsSpan(list210); + index = 0; + span210[index] = "liza"; questRoot27.Author = list210; - num = 3; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - Span span87 = CollectionsMarshal.AsSpan(list211); - ref QuestSequence reference158 = ref span87[0]; + index = 3; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + Span span211 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference158 = ref span211[num]; QuestSequence obj152 = new QuestSequence { Sequence = 0 @@ -355242,24 +431849,30 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048857u, new Vector3(-515.7092f, 122.40314f, 342.9159f), 1188); + Span span212 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span212[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048857u, new Vector3(-515.7092f, 122.40314f, 342.9159f), 1188); obj152.Steps = list212; reference158 = obj152; - ref QuestSequence reference159 = ref span87[1]; + num++; + ref QuestSequence reference159 = ref span211[num]; QuestSequence obj153 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1048843u, new Vector3(588.7998f, 121.14124f, 176.98938f), 1188) + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span213 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span213[num2] = new QuestStep(EInteractionType.Interact, 1048843u, new Vector3(588.7998f, 121.14124f, 176.98938f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj153.Steps = list213; reference159 = obj153; - ref QuestSequence reference160 = ref span87[2]; + num++; + ref QuestSequence reference160 = ref span211[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue @@ -355267,7 +431880,9 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048857u, new Vector3(-515.7092f, 122.40314f, 342.9159f), 1188) + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048857u, new Vector3(-515.7092f, 122.40314f, 342.9159f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -355280,24 +431895,30 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - CollectionsMarshal.AsSpan(list215)[0] = "liza"; + Span span215 = CollectionsMarshal.AsSpan(list215); + index = 0; + span215[index] = "liza"; questRoot28.Author = list215; - num = 5; - List list216 = new List(num); - CollectionsMarshal.SetCount(list216, num); - Span span88 = CollectionsMarshal.AsSpan(list216); - ref QuestSequence reference161 = ref span88[0]; + index = 5; + List list216 = new List(index); + CollectionsMarshal.SetCount(list216, index); + Span span216 = CollectionsMarshal.AsSpan(list216); + num = 0; + ref QuestSequence reference161 = ref span216[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048858u, new Vector3(-426.87115f, 121.63345f, 320.88184f), 1188); + index2 = 1; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + Span span217 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span217[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048858u, new Vector3(-426.87115f, 121.63345f, 320.88184f), 1188); obj155.Steps = list217; reference161 = obj155; - ref QuestSequence reference162 = ref span88[1]; + num++; + ref QuestSequence reference162 = ref span216[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 @@ -355305,21 +431926,27 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 2014185u, new Vector3(-427.38995f, 122.91138f, 319.38647f), 1188); + Span span218 = CollectionsMarshal.AsSpan(list218); + index2 = 0; + span218[index2] = new QuestStep(EInteractionType.Interact, 2014185u, new Vector3(-427.38995f, 122.91138f, 319.38647f), 1188); obj156.Steps = list218; reference162 = obj156; - ref QuestSequence reference163 = ref span88[2]; + num++; + ref QuestSequence reference163 = ref span216[num]; QuestSequence obj157 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.Interact, 2014187u, new Vector3(-548.2719f, 133.83679f, 698.1765f), 1188); + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + Span span219 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span219[num2] = new QuestStep(EInteractionType.Interact, 2014187u, new Vector3(-548.2719f, 133.83679f, 698.1765f), 1188); obj157.Steps = list219; reference163 = obj157; - ref QuestSequence reference164 = ref span88[3]; + num++; + ref QuestSequence reference164 = ref span216[num]; QuestSequence obj158 = new QuestSequence { Sequence = 3 @@ -355327,18 +431954,23 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1048880u, new Vector3(-552.3613f, 133.86514f, 696.16235f), 1188); + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span220[index2] = new QuestStep(EInteractionType.Interact, 1048880u, new Vector3(-552.3613f, 133.86514f, 696.16235f), 1188); obj158.Steps = list220; reference164 = obj158; - ref QuestSequence reference165 = ref span88[4]; + num++; + ref QuestSequence reference165 = ref span216[num]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048858u, new Vector3(-426.87115f, 121.63345f, 320.88184f), 1188) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span221[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048858u, new Vector3(-426.87115f, 121.63345f, 320.88184f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -355351,13 +431983,16 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "liza"; + Span span222 = CollectionsMarshal.AsSpan(list222); + index = 0; + span222[index] = "liza"; questRoot29.Author = list222; - num = 3; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span89 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference166 = ref span89[0]; + index = 3; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + Span span223 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference166 = ref span223[num]; QuestSequence obj160 = new QuestSequence { Sequence = 0 @@ -355365,64 +432000,89 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048843u, new Vector3(588.7998f, 121.14124f, 176.98938f), 1188); + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048843u, new Vector3(588.7998f, 121.14124f, 176.98938f), 1188); obj160.Steps = list224; reference166 = obj160; - ref QuestSequence reference167 = ref span89[1]; + num++; + ref QuestSequence reference167 = ref span223[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - Span span90 = CollectionsMarshal.AsSpan(list225); - ref QuestStep reference168 = ref span90[0]; + index2 = 4; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + ref QuestStep reference168 = ref span225[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1048847u, new Vector3(615.2589f, 119.49003f, 197.58899f), 1188); - num3 = 6; - List list226 = new List(num3); - CollectionsMarshal.SetCount(list226, num3); - Span span91 = CollectionsMarshal.AsSpan(list226); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list226 = new List(num4); + CollectionsMarshal.SetCount(list226, num4); + Span span226 = CollectionsMarshal.AsSpan(list226); + num3 = 0; + span226[num3] = null; + num3++; + span226[num3] = null; + num3++; + span226[num3] = null; + num3++; + span226[num3] = null; + num3++; + span226[num3] = null; + num3++; + span226[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list226; reference168 = questStep7; - ref QuestStep reference169 = ref span90[1]; + num2++; + ref QuestStep reference169 = ref span225[num2]; 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); - Span span92 = CollectionsMarshal.AsSpan(list227); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span227 = CollectionsMarshal.AsSpan(list227); + num4 = 0; + span227[num4] = null; + num4++; + span227[num4] = null; + num4++; + span227[num4] = null; + num4++; + span227[num4] = null; + num4++; + span227[num4] = null; + num4++; + span227[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list227; reference169 = questStep8; - ref QuestStep reference170 = ref span90[2]; + num2++; + ref QuestStep reference170 = ref span225[num2]; QuestStep obj162 = new QuestStep(EInteractionType.Interact, 1048846u, new Vector3(512.2606f, 114.99095f, 183.85596f), 1188) { Fly = true }; - num3 = 6; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - Span span93 = CollectionsMarshal.AsSpan(list228); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list228 = new List(num4); + CollectionsMarshal.SetCount(list228, num4); + Span span228 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span228[num3] = null; + num3++; + span228[num3] = null; + num3++; + span228[num3] = null; + num3++; + span228[num3] = null; + num3++; + span228[num3] = null; + num3++; + span228[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj162.CompletionQuestVariablesFlags = list228; reference170 = obj162; - ref QuestStep reference171 = ref span90[3]; + num2++; + ref QuestStep reference171 = ref span225[num2]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 1048844u, new Vector3(476.40186f, 119.9383f, 101.79285f), 1188) { Fly = true @@ -355430,18 +432090,25 @@ public static class AssemblyQuestLoader num3 = 6; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - Span span94 = CollectionsMarshal.AsSpan(list229); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span229 = CollectionsMarshal.AsSpan(list229); + num4 = 0; + span229[num4] = null; + num4++; + span229[num4] = null; + num4++; + span229[num4] = null; + num4++; + span229[num4] = null; + num4++; + span229[num4] = null; + num4++; + span229[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj163.CompletionQuestVariablesFlags = list229; reference171 = obj163; obj161.Steps = list225; reference167 = obj161; - ref QuestSequence reference172 = ref span89[2]; + num++; + ref QuestSequence reference172 = ref span223[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -355449,7 +432116,9 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048843u, new Vector3(588.7998f, 121.14124f, 176.98938f), 1188) + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span230[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048843u, new Vector3(588.7998f, 121.14124f, 176.98938f), 1188) { Fly = true }; @@ -355462,24 +432131,30 @@ public static class AssemblyQuestLoader num = 1; List list231 = new List(num); CollectionsMarshal.SetCount(list231, num); - CollectionsMarshal.AsSpan(list231)[0] = "liza"; + Span span231 = CollectionsMarshal.AsSpan(list231); + index = 0; + span231[index] = "liza"; questRoot30.Author = list231; - num = 3; - List list232 = new List(num); - CollectionsMarshal.SetCount(list232, num); - Span span95 = CollectionsMarshal.AsSpan(list232); - ref QuestSequence reference173 = ref span95[0]; + index = 3; + List list232 = new List(index); + CollectionsMarshal.SetCount(list232, index); + Span span232 = CollectionsMarshal.AsSpan(list232); + num = 0; + ref QuestSequence reference173 = ref span232[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list233 = new List(num2); - CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048848u, new Vector3(621.51514f, 119.49004f, 175.00574f), 1188); + index2 = 1; + List list233 = new List(index2); + CollectionsMarshal.SetCount(list233, index2); + Span span233 = CollectionsMarshal.AsSpan(list233); + num2 = 0; + span233[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048848u, new Vector3(621.51514f, 119.49004f, 175.00574f), 1188); obj165.Steps = list233; reference173 = obj165; - ref QuestSequence reference174 = ref span95[1]; + num++; + ref QuestSequence reference174 = ref span232[num]; QuestSequence obj166 = new QuestSequence { Sequence = 1 @@ -355487,100 +432162,133 @@ public static class AssemblyQuestLoader num2 = 2; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - Span span96 = CollectionsMarshal.AsSpan(list234); - ref QuestStep reference175 = ref span96[0]; + Span span234 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + ref QuestStep reference175 = ref span234[index2]; QuestStep obj167 = new QuestStep(EInteractionType.Combat, null, new Vector3(444.93774f, 112.59213f, 206.74438f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - ref ComplexCombatData reference176 = ref CollectionsMarshal.AsSpan(list235)[0]; + num4 = 1; + List list235 = new List(num4); + CollectionsMarshal.SetCount(list235, num4); + Span span235 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + ref ComplexCombatData reference176 = ref span235[num3]; ComplexCombatData obj168 = new ComplexCombatData { DataId = 17241u, RewardItemId = 2003643u, RewardItemCount = 1 }; - int num4 = 6; - List list236 = new List(num4); - CollectionsMarshal.SetCount(list236, num4); - Span span97 = CollectionsMarshal.AsSpan(list236); - span97[0] = null; - span97[1] = null; - span97[2] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span97[3] = null; - span97[4] = null; - span97[5] = null; + int num5 = 6; + List list236 = new List(num5); + CollectionsMarshal.SetCount(list236, num5); + Span span236 = CollectionsMarshal.AsSpan(list236); + int num6 = 0; + span236[num6] = null; + num6++; + span236[num6] = null; + num6++; + span236[num6] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num6++; + span236[num6] = null; + num6++; + span236[num6] = null; + num6++; + span236[num6] = null; obj168.CompletionQuestVariablesFlags = list236; reference176 = obj168; obj167.ComplexCombatData = list235; num3 = 6; List list237 = new List(num3); CollectionsMarshal.SetCount(list237, num3); - Span span98 = CollectionsMarshal.AsSpan(list237); - span98[0] = null; - span98[1] = null; - span98[2] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span98[3] = null; - span98[4] = null; - span98[5] = null; + Span span237 = CollectionsMarshal.AsSpan(list237); + num4 = 0; + span237[num4] = null; + num4++; + span237[num4] = null; + num4++; + span237[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4++; + span237[num4] = null; + num4++; + span237[num4] = null; + num4++; + span237[num4] = null; obj167.CompletionQuestVariablesFlags = list237; reference175 = obj167; - ref QuestStep reference177 = ref span96[1]; + index2++; + ref QuestStep reference177 = ref span234[index2]; QuestStep obj169 = new QuestStep(EInteractionType.Combat, null, new Vector3(-21.622044f, 109.937355f, 217.64447f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list238 = new List(num3); - CollectionsMarshal.SetCount(list238, num3); - ref ComplexCombatData reference178 = ref CollectionsMarshal.AsSpan(list238)[0]; + num4 = 1; + List list238 = new List(num4); + CollectionsMarshal.SetCount(list238, num4); + Span span238 = CollectionsMarshal.AsSpan(list238); + num3 = 0; + ref ComplexCombatData reference178 = ref span238[num3]; ComplexCombatData obj170 = new ComplexCombatData { DataId = 17242u, RewardItemId = 2003642u, RewardItemCount = 1 }; - num4 = 6; - List list239 = new List(num4); - CollectionsMarshal.SetCount(list239, num4); - Span span99 = CollectionsMarshal.AsSpan(list239); - span99[0] = null; - span99[1] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span99[2] = null; - span99[3] = null; - span99[4] = null; - span99[5] = null; + num6 = 6; + List list239 = new List(num6); + CollectionsMarshal.SetCount(list239, num6); + Span span239 = CollectionsMarshal.AsSpan(list239); + num5 = 0; + span239[num5] = null; + num5++; + span239[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num5++; + span239[num5] = null; + num5++; + span239[num5] = null; + num5++; + span239[num5] = null; + num5++; + span239[num5] = null; obj170.CompletionQuestVariablesFlags = list239; reference178 = obj170; obj169.ComplexCombatData = list238; num3 = 6; List list240 = new List(num3); CollectionsMarshal.SetCount(list240, num3); - Span span100 = CollectionsMarshal.AsSpan(list240); - span100[0] = null; - span100[1] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = null; + Span span240 = CollectionsMarshal.AsSpan(list240); + num4 = 0; + span240[num4] = null; + num4++; + span240[num4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + num4++; + span240[num4] = null; + num4++; + span240[num4] = null; + num4++; + span240[num4] = null; + num4++; + span240[num4] = null; obj169.CompletionQuestVariablesFlags = list240; reference177 = obj169; obj166.Steps = list234; reference174 = obj166; - ref QuestSequence reference179 = ref span95[2]; + num++; + ref QuestSequence reference179 = ref span232[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048848u, new Vector3(621.51514f, 119.49004f, 175.00574f), 1188) + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + Span span241 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span241[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048848u, new Vector3(621.51514f, 119.49004f, 175.00574f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires @@ -355594,13 +432302,16 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - CollectionsMarshal.AsSpan(list242)[0] = "liza"; + Span span242 = CollectionsMarshal.AsSpan(list242); + index = 0; + span242[index] = "liza"; questRoot31.Author = list242; - num = 3; - List list243 = new List(num); - CollectionsMarshal.SetCount(list243, num); - Span span101 = CollectionsMarshal.AsSpan(list243); - ref QuestSequence reference180 = ref span101[0]; + index = 3; + List list243 = new List(index); + CollectionsMarshal.SetCount(list243, index); + Span span243 = CollectionsMarshal.AsSpan(list243); + num = 0; + ref QuestSequence reference180 = ref span243[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -355608,36 +432319,47 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050714u, new Vector3(495.6587f, 113.678986f, 181.23132f), 1188); + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span244[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050714u, new Vector3(495.6587f, 113.678986f, 181.23132f), 1188); obj172.Steps = list244; reference180 = obj172; - ref QuestSequence reference181 = ref span101[1]; + num++; + ref QuestSequence reference181 = ref span243[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - Span span102 = CollectionsMarshal.AsSpan(list245); - ref QuestStep reference182 = ref span102[0]; + index2 = 3; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + Span span245 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + ref QuestStep reference182 = ref span245[num2]; QuestStep obj174 = new QuestStep(EInteractionType.Interact, 2014189u, new Vector3(194.93396f, 109.4834f, 145.25061f), 1188) { Fly = true }; - num3 = 6; - List list246 = new List(num3); - CollectionsMarshal.SetCount(list246, num3); - Span span103 = CollectionsMarshal.AsSpan(list246); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list246 = new List(num4); + CollectionsMarshal.SetCount(list246, num4); + Span span246 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj174.CompletionQuestVariablesFlags = list246; reference182 = obj174; - ref QuestStep reference183 = ref span102[1]; + num2++; + ref QuestStep reference183 = ref span245[num2]; QuestStep obj175 = new QuestStep(EInteractionType.Interact, 2014191u, new Vector3(53.3302f, 109.17822f, 246.3263f), 1188) { Fly = true @@ -355645,35 +432367,49 @@ public static class AssemblyQuestLoader num3 = 6; List list247 = new List(num3); CollectionsMarshal.SetCount(list247, num3); - Span span104 = CollectionsMarshal.AsSpan(list247); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span247 = CollectionsMarshal.AsSpan(list247); + num4 = 0; + span247[num4] = null; + num4++; + span247[num4] = null; + num4++; + span247[num4] = null; + num4++; + span247[num4] = null; + num4++; + span247[num4] = null; + num4++; + span247[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj175.CompletionQuestVariablesFlags = list247; reference183 = obj175; - ref QuestStep reference184 = ref span102[2]; + num2++; + ref QuestStep reference184 = ref span245[num2]; QuestStep obj176 = new QuestStep(EInteractionType.Interact, 2014190u, new Vector3(-19.119629f, 109.57495f, 182.02478f), 1188) { Fly = true }; - num3 = 6; - List list248 = new List(num3); - CollectionsMarshal.SetCount(list248, num3); - Span span105 = CollectionsMarshal.AsSpan(list248); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list248 = new List(num4); + CollectionsMarshal.SetCount(list248, num4); + Span span248 = CollectionsMarshal.AsSpan(list248); + num3 = 0; + span248[num3] = null; + num3++; + span248[num3] = null; + num3++; + span248[num3] = null; + num3++; + span248[num3] = null; + num3++; + span248[num3] = null; + num3++; + span248[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj176.CompletionQuestVariablesFlags = list248; reference184 = obj176; obj173.Steps = list245; reference181 = obj173; - ref QuestSequence reference185 = ref span101[2]; + num++; + ref QuestSequence reference185 = ref span243[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -355681,7 +432417,9 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050714u, new Vector3(495.6587f, 113.678986f, 181.23132f), 1188) + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050714u, new Vector3(495.6587f, 113.678986f, 181.23132f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; @@ -355694,24 +432432,30 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "liza"; + Span span250 = CollectionsMarshal.AsSpan(list250); + index = 0; + span250[index] = "liza"; questRoot32.Author = list250; - num = 5; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span106 = CollectionsMarshal.AsSpan(list251); - ref QuestSequence reference186 = ref span106[0]; + index = 5; + List list251 = new List(index); + CollectionsMarshal.SetCount(list251, index); + Span span251 = CollectionsMarshal.AsSpan(list251); + num = 0; + ref QuestSequence reference186 = ref span251[num]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051237u, new Vector3(-251.20929f, 5.5572896f, -554.89435f), 1188); + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051237u, new Vector3(-251.20929f, 5.5572896f, -554.89435f), 1188); obj178.Steps = list252; reference186 = obj178; - ref QuestSequence reference187 = ref span106[1]; + num++; + ref QuestSequence reference187 = ref span251[num]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -355719,21 +432463,27 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1051238u, new Vector3(-312.36743f, 6.5262628f, -723.3234f), 1188); + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + span253[index2] = new QuestStep(EInteractionType.Interact, 1051238u, new Vector3(-312.36743f, 6.5262628f, -723.3234f), 1188); obj179.Steps = list253; reference187 = obj179; - ref QuestSequence reference188 = ref span106[2]; + num++; + ref QuestSequence reference188 = ref span251[num]; QuestSequence obj180 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list254 = new List(num2); - CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1051237u, new Vector3(-251.20929f, 5.5572896f, -554.89435f), 1188); + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num2 = 0; + span254[num2] = new QuestStep(EInteractionType.Interact, 1051237u, new Vector3(-251.20929f, 5.5572896f, -554.89435f), 1188); obj180.Steps = list254; reference188 = obj180; - ref QuestSequence reference189 = ref span106[3]; + num++; + ref QuestSequence reference189 = ref span251[num]; QuestSequence obj181 = new QuestSequence { Sequence = 3 @@ -355741,18 +432491,23 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 2014316u, new Vector3(-201.0987f, 6.362976f, -511.03995f), 1188); + Span span255 = CollectionsMarshal.AsSpan(list255); + index2 = 0; + span255[index2] = new QuestStep(EInteractionType.Interact, 2014316u, new Vector3(-201.0987f, 6.362976f, -511.03995f), 1188); obj181.Steps = list255; reference189 = obj181; - ref QuestSequence reference190 = ref span106[4]; + num++; + ref QuestSequence reference190 = ref span251[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051242u, new Vector3(-127.45862f, 9.842161f, -419.6994f), 1188); + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051242u, new Vector3(-127.45862f, 9.842161f, -419.6994f), 1188); obj182.Steps = list256; reference190 = obj182; questRoot32.QuestSequence = list251; @@ -355762,13 +432517,16 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "liza"; + Span span257 = CollectionsMarshal.AsSpan(list257); + index = 0; + span257[index] = "liza"; questRoot33.Author = list257; - num = 6; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span107 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference191 = ref span107[0]; + index = 6; + List list258 = new List(index); + CollectionsMarshal.SetCount(list258, index); + Span span258 = CollectionsMarshal.AsSpan(list258); + num = 0; + ref QuestSequence reference191 = ref span258[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -355776,24 +432534,30 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span259[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); obj183.Steps = list259; reference191 = obj183; - ref QuestSequence reference192 = ref span107[1]; + num++; + ref QuestSequence reference192 = ref span258[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1051244u, new Vector3(224.01758f, 10.257621f, -570.64166f), 1188) + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span260[num2] = new QuestStep(EInteractionType.Interact, 1051244u, new Vector3(224.01758f, 10.257621f, -570.64166f), 1188) { Fly = true }; obj184.Steps = list260; reference192 = obj184; - ref QuestSequence reference193 = ref span107[2]; + num++; + ref QuestSequence reference193 = ref span258[num]; QuestSequence obj185 = new QuestSequence { Sequence = 2 @@ -355801,23 +432565,29 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 2014281u, new Vector3(222.58337f, 10.72699f, -568.44434f), 1188); + Span span261 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span261[index2] = new QuestStep(EInteractionType.Interact, 2014281u, new Vector3(222.58337f, 10.72699f, -568.44434f), 1188); obj185.Steps = list261; reference193 = obj185; - ref QuestSequence reference194 = ref span107[3]; + num++; + ref QuestSequence reference194 = ref span258[num]; QuestSequence obj186 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - Span span108 = CollectionsMarshal.AsSpan(list262); - span108[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.763844f, 1.8493831f, -555.61774f), 1188); - span108[1] = new QuestStep(EInteractionType.Interact, 2014284u, new Vector3(-123.30823f, 9.84198f, -419.11957f), 1188); + index2 = 2; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.763844f, 1.8493831f, -555.61774f), 1188); + num2++; + span262[num2] = new QuestStep(EInteractionType.Interact, 2014284u, new Vector3(-123.30823f, 9.84198f, -419.11957f), 1188); obj186.Steps = list262; reference194 = obj186; - ref QuestSequence reference195 = ref span107[4]; + num++; + ref QuestSequence reference195 = ref span258[num]; QuestSequence obj187 = new QuestSequence { Sequence = 4 @@ -355825,18 +432595,23 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); + Span span263 = CollectionsMarshal.AsSpan(list263); + index2 = 0; + span263[index2] = new QuestStep(EInteractionType.Interact, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); obj187.Steps = list263; reference195 = obj187; - ref QuestSequence reference196 = ref span107[5]; + num++; + ref QuestSequence reference196 = ref span258[num]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051246u, new Vector3(-127.45862f, 9.842161f, -419.6994f), 1188) + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051246u, new Vector3(-127.45862f, 9.842161f, -419.6994f), 1188) { NextQuestId = new QuestId(5083) }; @@ -355849,13 +432624,16 @@ public static class AssemblyQuestLoader num = 1; List list265 = new List(num); CollectionsMarshal.SetCount(list265, num); - CollectionsMarshal.AsSpan(list265)[0] = "liza"; + Span span265 = CollectionsMarshal.AsSpan(list265); + index = 0; + span265[index] = "liza"; questRoot34.Author = list265; - num = 6; - List list266 = new List(num); - CollectionsMarshal.SetCount(list266, num); - Span span109 = CollectionsMarshal.AsSpan(list266); - ref QuestSequence reference197 = ref span109[0]; + index = 6; + List list266 = new List(index); + CollectionsMarshal.SetCount(list266, index); + Span span266 = CollectionsMarshal.AsSpan(list266); + num = 0; + ref QuestSequence reference197 = ref span266[num]; QuestSequence obj189 = new QuestSequence { Sequence = 0 @@ -355863,24 +432641,30 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); + Span span267 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span267[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); obj189.Steps = list267; reference197 = obj189; - ref QuestSequence reference198 = ref span109[1]; + num++; + ref QuestSequence reference198 = ref span266[num]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.Interact, 1051247u, new Vector3(341.66467f, 9.178029f, -213.15332f), 1188) + index2 = 1; + List list268 = new List(index2); + CollectionsMarshal.SetCount(list268, index2); + Span span268 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span268[num2] = new QuestStep(EInteractionType.Interact, 1051247u, new Vector3(341.66467f, 9.178029f, -213.15332f), 1188) { Fly = true }; obj190.Steps = list268; reference198 = obj190; - ref QuestSequence reference199 = ref span109[2]; + num++; + ref QuestSequence reference199 = ref span266[num]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -355888,7 +432672,9 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list269)[0]; + Span span269 = CollectionsMarshal.AsSpan(list269); + index2 = 0; + ref QuestStep reference200 = ref span269[index2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, 2014198u, new Vector3(438.04077f, -0.015319824f, -395.43762f), 1188) { Fly = true, @@ -355897,23 +432683,29 @@ public static class AssemblyQuestLoader num3 = 1; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - CollectionsMarshal.AsSpan(list270)[0] = 17661u; + Span span270 = CollectionsMarshal.AsSpan(list270); + num4 = 0; + span270[num4] = 17661u; obj192.KillEnemyDataIds = list270; reference200 = obj192; obj191.Steps = list269; reference199 = obj191; - ref QuestSequence reference201 = ref span109[3]; + num++; + ref QuestSequence reference201 = ref span266[num]; QuestSequence obj193 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 2014286u, new Vector3(440.78735f, 1.1749268f, -397.1161f), 1188); + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.Interact, 2014286u, new Vector3(440.78735f, 1.1749268f, -397.1161f), 1188); obj193.Steps = list271; reference201 = obj193; - ref QuestSequence reference202 = ref span109[4]; + num++; + ref QuestSequence reference202 = ref span266[num]; QuestSequence obj194 = new QuestSequence { Sequence = 4 @@ -355921,21 +432713,26 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.Interact, 1051247u, new Vector3(341.66467f, 9.178029f, -213.15332f), 1188) + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.Interact, 1051247u, new Vector3(341.66467f, 9.178029f, -213.15332f), 1188) { Fly = true }; obj194.Steps = list272; reference202 = obj194; - ref QuestSequence reference203 = ref span109[5]; + num++; + ref QuestSequence reference203 = ref span266[num]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051251u, new Vector3(654.7798f, 26.32866f, -490.95905f), 1188) + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span273[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051251u, new Vector3(654.7798f, 26.32866f, -490.95905f), 1188) { Fly = true, NextQuestId = new QuestId(5084) @@ -355949,13 +432746,16 @@ public static class AssemblyQuestLoader num = 1; List list274 = new List(num); CollectionsMarshal.SetCount(list274, num); - CollectionsMarshal.AsSpan(list274)[0] = "liza"; + Span span274 = CollectionsMarshal.AsSpan(list274); + index = 0; + span274[index] = "liza"; questRoot35.Author = list274; - num = 6; - List list275 = new List(num); - CollectionsMarshal.SetCount(list275, num); - Span span110 = CollectionsMarshal.AsSpan(list275); - ref QuestSequence reference204 = ref span110[0]; + index = 6; + List list275 = new List(index); + CollectionsMarshal.SetCount(list275, index); + Span span275 = CollectionsMarshal.AsSpan(list275); + num = 0; + ref QuestSequence reference204 = ref span275[num]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -355963,12 +432763,16 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list276)[0]; + Span span276 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + ref QuestStep reference205 = ref span276[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.AcceptQuest, 1051252u, new Vector3(654.6272f, 26.32866f, -491.02008f), 1188); - num3 = 1; - List list277 = new List(num3); - CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = new DialogueChoice + num4 = 1; + List list277 = new List(num4); + CollectionsMarshal.SetCount(list277, num4); + Span span277 = CollectionsMarshal.AsSpan(list277); + num3 = 0; + span277[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZC204_05084_Q1_000_100"), @@ -355978,21 +432782,25 @@ public static class AssemblyQuestLoader reference205 = questStep9; obj196.Steps = list276; reference204 = obj196; - ref QuestSequence reference206 = ref span110[1]; + num++; + ref QuestSequence reference206 = ref span275[num]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.Interact, 1051253u, new Vector3(-122.972534f, 9.842161f, -421.1643f), 1188) + index2 = 1; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + Span span278 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span278[num2] = new QuestStep(EInteractionType.Interact, 1051253u, new Vector3(-122.972534f, 9.842161f, -421.1643f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj197.Steps = list278; reference206 = obj197; - ref QuestSequence reference207 = ref span110[2]; + num++; + ref QuestSequence reference207 = ref span275[num]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -356000,8 +432808,9 @@ public static class AssemblyQuestLoader num2 = 3; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span111 = CollectionsMarshal.AsSpan(list279); - ref QuestStep reference208 = ref span111[0]; + Span span279 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + ref QuestStep reference208 = ref span279[index2]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1048786u, new Vector3(-193.3471f, 6.277148f, -443.50348f), 1188) { Fly = true @@ -356009,33 +432818,47 @@ public static class AssemblyQuestLoader num3 = 6; List list280 = new List(num3); CollectionsMarshal.SetCount(list280, num3); - Span span112 = CollectionsMarshal.AsSpan(list280); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span280 = CollectionsMarshal.AsSpan(list280); + num4 = 0; + span280[num4] = null; + num4++; + span280[num4] = null; + num4++; + span280[num4] = null; + num4++; + span280[num4] = null; + num4++; + span280[num4] = null; + num4++; + span280[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj199.CompletionQuestVariablesFlags = list280; reference208 = obj199; - ref QuestStep reference209 = ref span111[1]; + index2++; + ref QuestStep reference209 = ref span279[index2]; QuestStep obj200 = new QuestStep(EInteractionType.Interact, 1048783u, new Vector3(-269.91687f, 5.9870257f, -431.47937f), 1188) { Fly = true }; - num3 = 6; - List list281 = new List(num3); - CollectionsMarshal.SetCount(list281, num3); - Span span113 = CollectionsMarshal.AsSpan(list281); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list281 = new List(num4); + CollectionsMarshal.SetCount(list281, num4); + Span span281 = CollectionsMarshal.AsSpan(list281); + num3 = 0; + span281[num3] = null; + num3++; + span281[num3] = null; + num3++; + span281[num3] = null; + num3++; + span281[num3] = null; + num3++; + span281[num3] = null; + num3++; + span281[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj200.CompletionQuestVariablesFlags = list281; reference209 = obj200; - ref QuestStep reference210 = ref span111[2]; + index2++; + ref QuestStep reference210 = ref span279[index2]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 1048785u, new Vector3(-121.26343f, 9.773314f, -551.1406f), 1188) { Fly = true @@ -356043,32 +432866,42 @@ public static class AssemblyQuestLoader num3 = 6; List list282 = new List(num3); CollectionsMarshal.SetCount(list282, num3); - Span span114 = CollectionsMarshal.AsSpan(list282); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span282 = CollectionsMarshal.AsSpan(list282); + num4 = 0; + span282[num4] = null; + num4++; + span282[num4] = null; + num4++; + span282[num4] = null; + num4++; + span282[num4] = null; + num4++; + span282[num4] = null; + num4++; + span282[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj201.CompletionQuestVariablesFlags = list282; reference210 = obj201; obj198.Steps = list279; reference207 = obj198; - ref QuestSequence reference211 = ref span110[3]; + num++; + ref QuestSequence reference211 = ref span275[num]; QuestSequence obj202 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list283 = new List(num2); - CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1051255u, new Vector3(-128.98456f, 9.84216f, -420.58447f), 1188) + index2 = 1; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + Span span283 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span283[num2] = new QuestStep(EInteractionType.Interact, 1051255u, new Vector3(-128.98456f, 9.84216f, -420.58447f), 1188) { Fly = true }; obj202.Steps = list283; reference211 = obj202; - ref QuestSequence reference212 = ref span110[4]; + num++; + ref QuestSequence reference212 = ref span275[num]; QuestSequence obj203 = new QuestSequence { Sequence = 4 @@ -356076,21 +432909,26 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1051258u, new Vector3(658.7167f, 5.2940493f, -335.07288f), 1188) + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span284[index2] = new QuestStep(EInteractionType.Interact, 1051258u, new Vector3(658.7167f, 5.2940493f, -335.07288f), 1188) { Fly = true }; obj203.Steps = list284; reference212 = obj203; - ref QuestSequence reference213 = ref span110[5]; + num++; + ref QuestSequence reference213 = ref span275[num]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051261u, new Vector3(-130.9682f, 9.842161f, -416.58655f), 1188) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span285 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span285[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051261u, new Vector3(-130.9682f, 9.842161f, -416.58655f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; @@ -356103,13 +432941,16 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "liza"; + Span span286 = CollectionsMarshal.AsSpan(list286); + index = 0; + span286[index] = "liza"; questRoot36.Author = list286; - num = 4; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span115 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference214 = ref span115[0]; + index = 4; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + Span span287 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference214 = ref span287[num]; QuestSequence obj205 = new QuestSequence { Sequence = 0 @@ -356117,21 +432958,27 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); + Span span288 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span288[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); obj205.Steps = list288; reference214 = obj205; - ref QuestSequence reference215 = ref span115[1]; + num++; + ref QuestSequence reference215 = ref span287[num]; QuestSequence obj206 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1051264u, new Vector3(-444.78522f, 122.890236f, 342.85498f), 1188); + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + Span span289 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + span289[num2] = new QuestStep(EInteractionType.Interact, 1051264u, new Vector3(-444.78522f, 122.890236f, 342.85498f), 1188); obj206.Steps = list289; reference215 = obj206; - ref QuestSequence reference216 = ref span115[2]; + num++; + ref QuestSequence reference216 = ref span287[num]; QuestSequence obj207 = new QuestSequence { Sequence = 2 @@ -356139,60 +432986,84 @@ public static class AssemblyQuestLoader num2 = 3; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - Span span116 = CollectionsMarshal.AsSpan(list290); - ref QuestStep reference217 = ref span116[0]; + Span span290 = CollectionsMarshal.AsSpan(list290); + index2 = 0; + ref QuestStep reference217 = ref span290[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1048892u, new Vector3(-485.55737f, 121.633f, 329.9762f), 1188); - num3 = 6; - List list291 = new List(num3); - CollectionsMarshal.SetCount(list291, num3); - Span span117 = CollectionsMarshal.AsSpan(list291); - span117[0] = null; - span117[1] = null; - span117[2] = null; - span117[3] = null; - span117[4] = null; - span117[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list291 = new List(num4); + CollectionsMarshal.SetCount(list291, num4); + Span span291 = CollectionsMarshal.AsSpan(list291); + num3 = 0; + span291[num3] = null; + num3++; + span291[num3] = null; + num3++; + span291[num3] = null; + num3++; + span291[num3] = null; + num3++; + span291[num3] = null; + num3++; + span291[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list291; reference217 = questStep10; - ref QuestStep reference218 = ref span116[1]; + index2++; + ref QuestStep reference218 = ref span290[index2]; 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); - Span span118 = CollectionsMarshal.AsSpan(list292); - span118[0] = null; - span118[1] = null; - span118[2] = null; - span118[3] = null; - span118[4] = null; - span118[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span292 = CollectionsMarshal.AsSpan(list292); + num4 = 0; + span292[num4] = null; + num4++; + span292[num4] = null; + num4++; + span292[num4] = null; + num4++; + span292[num4] = null; + num4++; + span292[num4] = null; + num4++; + span292[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list292; reference218 = questStep11; - ref QuestStep reference219 = ref span116[2]; + index2++; + ref QuestStep reference219 = ref span290[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1048858u, new Vector3(-426.87115f, 121.63345f, 320.88184f), 1188); - num3 = 6; - List list293 = new List(num3); - CollectionsMarshal.SetCount(list293, num3); - Span span119 = CollectionsMarshal.AsSpan(list293); - span119[0] = null; - span119[1] = null; - span119[2] = null; - span119[3] = null; - span119[4] = null; - span119[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list293 = new List(num4); + CollectionsMarshal.SetCount(list293, num4); + Span span293 = CollectionsMarshal.AsSpan(list293); + num3 = 0; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list293; reference219 = questStep12; obj207.Steps = list290; reference216 = obj207; - ref QuestSequence reference220 = ref span115[3]; + num++; + ref QuestSequence reference220 = ref span287[num]; QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051264u, new Vector3(-444.78522f, 122.890236f, 342.85498f), 1188) + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span294 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span294[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051264u, new Vector3(-444.78522f, 122.890236f, 342.85498f), 1188) { Mount = true }; @@ -356205,13 +433076,16 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "liza"; + Span span295 = CollectionsMarshal.AsSpan(list295); + index = 0; + span295[index] = "liza"; questRoot37.Author = list295; - num = 5; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - Span span120 = CollectionsMarshal.AsSpan(list296); - ref QuestSequence reference221 = ref span120[0]; + index = 5; + List list296 = new List(index); + CollectionsMarshal.SetCount(list296, index); + Span span296 = CollectionsMarshal.AsSpan(list296); + num = 0; + ref QuestSequence reference221 = ref span296[num]; QuestSequence obj209 = new QuestSequence { Sequence = 0 @@ -356219,21 +433093,27 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051265u, new Vector3(-444.78522f, 122.89024f, 342.8855f), 1188); + Span span297 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span297[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051265u, new Vector3(-444.78522f, 122.89024f, 342.8855f), 1188); obj209.Steps = list297; reference221 = obj209; - ref QuestSequence reference222 = ref span120[1]; + num++; + ref QuestSequence reference222 = ref span296[num]; QuestSequence obj210 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.Interact, 1048850u, new Vector3(-472.5567f, 121.77377f, 271.229f), 1188); + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + Span span298 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span298[num2] = new QuestStep(EInteractionType.Interact, 1048850u, new Vector3(-472.5567f, 121.77377f, 271.229f), 1188); obj210.Steps = list298; reference222 = obj210; - ref QuestSequence reference223 = ref span120[2]; + num++; + ref QuestSequence reference223 = ref span296[num]; QuestSequence obj211 = new QuestSequence { Sequence = 2 @@ -356241,21 +433121,27 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); + Span span299 = CollectionsMarshal.AsSpan(list299); + index2 = 0; + span299[index2] = new QuestStep(EInteractionType.Interact, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); obj211.Steps = list299; reference223 = obj211; - ref QuestSequence reference224 = ref span120[3]; + num++; + ref QuestSequence reference224 = ref span296[num]; QuestSequence obj212 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1051265u, new Vector3(-444.78522f, 122.89024f, 342.8855f), 1188); + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + Span span300 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span300[num2] = new QuestStep(EInteractionType.Interact, 1051265u, new Vector3(-444.78522f, 122.89024f, 342.8855f), 1188); obj212.Steps = list300; reference224 = obj212; - ref QuestSequence reference225 = ref span120[4]; + num++; + ref QuestSequence reference225 = ref span296[num]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue @@ -356263,7 +433149,9 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188) + Span span301 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + span301[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188) { NextQuestId = new QuestId(5087) }; @@ -356276,24 +433164,30 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - CollectionsMarshal.AsSpan(list302)[0] = "liza"; + Span span302 = CollectionsMarshal.AsSpan(list302); + index = 0; + span302[index] = "liza"; questRoot38.Author = list302; - num = 5; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - Span span121 = CollectionsMarshal.AsSpan(list303); - ref QuestSequence reference226 = ref span121[0]; + index = 5; + List list303 = new List(index); + CollectionsMarshal.SetCount(list303, index); + Span span303 = CollectionsMarshal.AsSpan(list303); + num = 0; + ref QuestSequence reference226 = ref span303[num]; QuestSequence obj214 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); + index2 = 1; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + Span span304 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + span304[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); obj214.Steps = list304; reference226 = obj214; - ref QuestSequence reference227 = ref span121[1]; + num++; + ref QuestSequence reference227 = ref span303[num]; QuestSequence obj215 = new QuestSequence { Sequence = 1 @@ -356301,21 +433195,26 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.Interact, 1051266u, new Vector3(565.8197f, 115.49999f, 195.30017f), 1188) + Span span305 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span305[index2] = new QuestStep(EInteractionType.Interact, 1051266u, new Vector3(565.8197f, 115.49999f, 195.30017f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj215.Steps = list305; reference227 = obj215; - ref QuestSequence reference228 = ref span121[2]; + num++; + ref QuestSequence reference228 = ref span303[num]; QuestSequence obj216 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - ref QuestStep reference229 = ref CollectionsMarshal.AsSpan(list306)[0]; + index2 = 1; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + Span span306 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + ref QuestStep reference229 = ref span306[num2]; QuestStep obj217 = new QuestStep(EInteractionType.Combat, null, new Vector3(627.93854f, 110.09355f, 334.26776f), 1188) { Fly = true, @@ -356324,12 +433223,15 @@ public static class AssemblyQuestLoader num3 = 1; List list307 = new List(num3); CollectionsMarshal.SetCount(list307, num3); - CollectionsMarshal.AsSpan(list307)[0] = 17244u; + Span span307 = CollectionsMarshal.AsSpan(list307); + num4 = 0; + span307[num4] = 17244u; obj217.KillEnemyDataIds = list307; reference229 = obj217; obj216.Steps = list306; reference228 = obj216; - ref QuestSequence reference230 = ref span121[3]; + num++; + ref QuestSequence reference230 = ref span303[num]; QuestSequence obj218 = new QuestSequence { Sequence = 3 @@ -356337,21 +433239,26 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1051266u, new Vector3(565.8197f, 115.49999f, 195.30017f), 1188) + Span span308 = CollectionsMarshal.AsSpan(list308); + index2 = 0; + span308[index2] = new QuestStep(EInteractionType.Interact, 1051266u, new Vector3(565.8197f, 115.49999f, 195.30017f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj218.Steps = list308; reference230 = obj218; - ref QuestSequence reference231 = ref span121[4]; + num++; + ref QuestSequence reference231 = ref span303[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051267u, new Vector3(-447.5014f, 122.95055f, 343.099f), 1188) + index2 = 1; + List list309 = new List(index2); + CollectionsMarshal.SetCount(list309, index2); + Span span309 = CollectionsMarshal.AsSpan(list309); + num2 = 0; + span309[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051267u, new Vector3(-447.5014f, 122.95055f, 343.099f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire, NextQuestId = new QuestId(5088) @@ -356365,13 +433272,16 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - CollectionsMarshal.AsSpan(list310)[0] = "liza"; + Span span310 = CollectionsMarshal.AsSpan(list310); + index = 0; + span310[index] = "liza"; questRoot39.Author = list310; - num = 7; - List list311 = new List(num); - CollectionsMarshal.SetCount(list311, num); - Span span122 = CollectionsMarshal.AsSpan(list311); - ref QuestSequence reference232 = ref span122[0]; + index = 7; + List list311 = new List(index); + CollectionsMarshal.SetCount(list311, index); + Span span311 = CollectionsMarshal.AsSpan(list311); + num = 0; + ref QuestSequence reference232 = ref span311[num]; QuestSequence obj220 = new QuestSequence { Sequence = 0 @@ -356379,12 +433289,16 @@ public static class AssemblyQuestLoader num2 = 1; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - ref QuestStep reference233 = ref CollectionsMarshal.AsSpan(list312)[0]; + Span span312 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + ref QuestStep reference233 = ref span312[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.AcceptQuest, 1051267u, new Vector3(-447.5014f, 122.95055f, 343.099f), 1188); - num3 = 1; - List list313 = new List(num3); - CollectionsMarshal.SetCount(list313, num3); - CollectionsMarshal.AsSpan(list313)[0] = new DialogueChoice + num4 = 1; + List list313 = new List(num4); + CollectionsMarshal.SetCount(list313, num4); + Span span313 = CollectionsMarshal.AsSpan(list313); + num3 = 0; + span313[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZC304_05088_Q1_000_100"), @@ -356394,21 +433308,25 @@ public static class AssemblyQuestLoader reference233 = questStep13; obj220.Steps = list312; reference232 = obj220; - ref QuestSequence reference234 = ref span122[1]; + num++; + ref QuestSequence reference234 = ref span311[num]; QuestSequence obj221 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list314 = new List(num2); - CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 2014289u, new Vector3(-422.50708f, 122.88086f, 338.88757f), 1188) + index2 = 1; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + Span span314 = CollectionsMarshal.AsSpan(list314); + num2 = 0; + span314[num2] = new QuestStep(EInteractionType.Interact, 2014289u, new Vector3(-422.50708f, 122.88086f, 338.88757f), 1188) { Mount = true }; obj221.Steps = list314; reference234 = obj221; - ref QuestSequence reference235 = ref span122[2]; + num++; + ref QuestSequence reference235 = ref span311[num]; QuestSequence obj222 = new QuestSequence { Sequence = 2 @@ -356416,18 +433334,23 @@ public static class AssemblyQuestLoader num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 2014290u, new Vector3(-519.4629f, 123.88794f, 252.61304f), 1188); + Span span315 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span315[index2] = new QuestStep(EInteractionType.Interact, 2014290u, new Vector3(-519.4629f, 123.88794f, 252.61304f), 1188); obj222.Steps = list315; reference235 = obj222; - ref QuestSequence reference236 = ref span122[3]; + num++; + ref QuestSequence reference236 = ref span311[num]; QuestSequence obj223 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - ref QuestStep reference237 = ref CollectionsMarshal.AsSpan(list316)[0]; + index2 = 1; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + Span span316 = CollectionsMarshal.AsSpan(list316); + num2 = 0; + ref QuestStep reference237 = ref span316[num2]; QuestStep obj224 = new QuestStep(EInteractionType.Combat, null, new Vector3(-759f, 129.30363f, 237.35704f), 1188) { Fly = true, @@ -356436,12 +433359,15 @@ public static class AssemblyQuestLoader num3 = 1; List list317 = new List(num3); CollectionsMarshal.SetCount(list317, num3); - CollectionsMarshal.AsSpan(list317)[0] = 17662u; + Span span317 = CollectionsMarshal.AsSpan(list317); + num4 = 0; + span317[num4] = 17662u; obj224.KillEnemyDataIds = list317; reference237 = obj224; obj223.Steps = list316; reference236 = obj223; - ref QuestSequence reference238 = ref span122[4]; + num++; + ref QuestSequence reference238 = ref span311[num]; QuestSequence obj225 = new QuestSequence { Sequence = 4 @@ -356449,27 +433375,33 @@ public static class AssemblyQuestLoader num2 = 1; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.Interact, 1051268u, new Vector3(-756.80176f, 129.29285f, 240.7721f), 1188) + Span span318 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span318[index2] = new QuestStep(EInteractionType.Interact, 1051268u, new Vector3(-756.80176f, 129.29285f, 240.7721f), 1188) { StopDistance = 7f }; obj225.Steps = list318; reference238 = obj225; - ref QuestSequence reference239 = ref span122[5]; + num++; + ref QuestSequence reference239 = ref span311[num]; QuestSequence obj226 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.Interact, 1051269u, new Vector3(-566.73535f, 133.78297f, 721.3396f), 1188) + index2 = 1; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + Span span319 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + span319[num2] = new QuestStep(EInteractionType.Interact, 1051269u, new Vector3(-566.73535f, 133.78297f, 721.3396f), 1188) { Fly = true }; obj226.Steps = list319; reference239 = obj226; - ref QuestSequence reference240 = ref span122[6]; + num++; + ref QuestSequence reference240 = ref span311[num]; QuestSequence obj227 = new QuestSequence { Sequence = byte.MaxValue @@ -356477,7 +433409,9 @@ public static class AssemblyQuestLoader num2 = 1; List list320 = new List(num2); CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051267u, new Vector3(-447.5014f, 122.95055f, 343.099f), 1188) + Span span320 = CollectionsMarshal.AsSpan(list320); + index2 = 0; + span320[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051267u, new Vector3(-447.5014f, 122.95055f, 343.099f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire, NextQuestId = new QuestId(5089) @@ -356491,27 +433425,33 @@ public static class AssemblyQuestLoader num = 1; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - CollectionsMarshal.AsSpan(list321)[0] = "liza"; + Span span321 = CollectionsMarshal.AsSpan(list321); + index = 0; + span321[index] = "liza"; questRoot40.Author = list321; - num = 7; - List list322 = new List(num); - CollectionsMarshal.SetCount(list322, num); - Span span123 = CollectionsMarshal.AsSpan(list322); - ref QuestSequence reference241 = ref span123[0]; + index = 7; + List list322 = new List(index); + CollectionsMarshal.SetCount(list322, index); + Span span322 = CollectionsMarshal.AsSpan(list322); + num = 0; + ref QuestSequence reference241 = ref span322[num]; QuestSequence obj228 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051271u, new Vector3(-447.04358f, 122.95054f, 343.4348f), 1188) + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + Span span323 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span323[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051271u, new Vector3(-447.04358f, 122.95054f, 343.4348f), 1188) { StopDistance = 5f }; obj228.Steps = list323; reference241 = obj228; - ref QuestSequence reference242 = ref span123[1]; + num++; + ref QuestSequence reference242 = ref span322[num]; QuestSequence obj229 = new QuestSequence { Sequence = 1 @@ -356519,28 +433459,34 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.Interact, 1051273u, new Vector3(565.54517f, 115.5f, 193.22498f), 1188) + Span span324 = CollectionsMarshal.AsSpan(list324); + index2 = 0; + span324[index2] = new QuestStep(EInteractionType.Interact, 1051273u, new Vector3(565.54517f, 115.5f, 193.22498f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj229.Steps = list324; reference242 = obj229; - ref QuestSequence reference243 = ref span123[2]; + num++; + ref QuestSequence reference243 = ref span322[num]; QuestSequence obj230 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1051275u, new Vector3(-645.7771f, 127.95559f, 661.76843f), 1188) + index2 = 1; + List list325 = new List(index2); + CollectionsMarshal.SetCount(list325, index2); + Span span325 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + span325[num2] = new QuestStep(EInteractionType.Interact, 1051275u, new Vector3(-645.7771f, 127.95559f, 661.76843f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; obj230.Steps = list325; reference243 = obj230; - ref QuestSequence reference244 = ref span123[3]; + num++; + ref QuestSequence reference244 = ref span322[num]; QuestSequence obj231 = new QuestSequence { Sequence = 3 @@ -356548,15 +433494,19 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - ref QuestStep reference245 = ref CollectionsMarshal.AsSpan(list326)[0]; + Span span326 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + ref QuestStep reference245 = ref span326[index2]; QuestStep obj232 = new QuestStep(EInteractionType.Interact, 1051270u, new Vector3(-565.2705f, 133.77481f, 720.7294f), 1188) { Fly = true }; - num3 = 1; - List list327 = new List(num3); - CollectionsMarshal.SetCount(list327, num3); - CollectionsMarshal.AsSpan(list327)[0] = new DialogueChoice + num4 = 1; + List list327 = new List(num4); + CollectionsMarshal.SetCount(list327, num4); + Span span327 = CollectionsMarshal.AsSpan(list327); + num3 = 0; + span327[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZC401_05089_Q1_000_100"), @@ -356566,21 +433516,25 @@ public static class AssemblyQuestLoader reference245 = obj232; obj231.Steps = list326; reference244 = obj231; - ref QuestSequence reference246 = ref span123[4]; + num++; + ref QuestSequence reference246 = ref span322[num]; QuestSequence obj233 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Interact, 1051277u, new Vector3(-647.0283f, 127.88751f, 660.57825f), 1188) + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + Span span328 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span328[num2] = new QuestStep(EInteractionType.Interact, 1051277u, new Vector3(-647.0283f, 127.88751f, 660.57825f), 1188) { Fly = true }; obj233.Steps = list328; reference246 = obj233; - ref QuestSequence reference247 = ref span123[5]; + num++; + ref QuestSequence reference247 = ref span322[num]; QuestSequence obj234 = new QuestSequence { Sequence = 5 @@ -356588,7 +433542,9 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - ref QuestStep reference248 = ref CollectionsMarshal.AsSpan(list329)[0]; + Span span329 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + ref QuestStep reference248 = ref span329[index2]; QuestStep obj235 = new QuestStep(EInteractionType.Interact, 1051278u, new Vector3(-130.69354f, 9.84216f, -415.21326f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu @@ -356596,7 +433552,9 @@ public static class AssemblyQuestLoader num3 = 1; List list330 = new List(num3); CollectionsMarshal.SetCount(list330, num3); - CollectionsMarshal.AsSpan(list330)[0] = new DialogueChoice + Span span330 = CollectionsMarshal.AsSpan(list330); + num4 = 0; + span330[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZC401_05089_Q100_000_100") @@ -356605,15 +433563,18 @@ public static class AssemblyQuestLoader reference248 = obj235; obj234.Steps = list329; reference247 = obj234; - ref QuestSequence reference249 = ref span123[6]; + num++; + ref QuestSequence reference249 = ref span322[num]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051280u, new Vector3(-125.20032f, 9.842161f, -418.08197f), 1188); + index2 = 1; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + Span span331 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + span331[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051280u, new Vector3(-125.20032f, 9.842161f, -418.08197f), 1188); obj236.Steps = list331; reference249 = obj236; questRoot40.QuestSequence = list322; @@ -356623,13 +433584,16 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - CollectionsMarshal.AsSpan(list332)[0] = "liza"; + Span span332 = CollectionsMarshal.AsSpan(list332); + index = 0; + span332[index] = "liza"; questRoot41.Author = list332; - num = 3; - List list333 = new List(num); - CollectionsMarshal.SetCount(list333, num); - Span span124 = CollectionsMarshal.AsSpan(list333); - ref QuestSequence reference250 = ref span124[0]; + index = 3; + List list333 = new List(index); + CollectionsMarshal.SetCount(list333, index); + Span span333 = CollectionsMarshal.AsSpan(list333); + num = 0; + ref QuestSequence reference250 = ref span333[num]; QuestSequence obj237 = new QuestSequence { Sequence = 0 @@ -356637,32 +433601,40 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048960u, new Vector3(-405.84424f, 23.562847f, -476.61554f), 1189); + Span span334 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span334[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048960u, new Vector3(-405.84424f, 23.562847f, -476.61554f), 1189); obj237.Steps = list334; reference250 = obj237; - ref QuestSequence reference251 = ref span124[1]; + num++; + ref QuestSequence reference251 = ref span333[num]; QuestSequence obj238 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list335 = new List(num2); - CollectionsMarshal.SetCount(list335, num2); - ref QuestStep reference252 = ref CollectionsMarshal.AsSpan(list335)[0]; + index2 = 1; + List list335 = new List(index2); + CollectionsMarshal.SetCount(list335, index2); + Span span335 = CollectionsMarshal.AsSpan(list335); + num2 = 0; + ref QuestStep reference252 = ref span335[num2]; QuestStep obj239 = new QuestStep(EInteractionType.Combat, null, new Vector3(-455.06216f, 20.027777f, 46.272446f), 1189) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num3 = 1; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = 17268u; + num4 = 1; + List list336 = new List(num4); + CollectionsMarshal.SetCount(list336, num4); + Span span336 = CollectionsMarshal.AsSpan(list336); + num3 = 0; + span336[num3] = 17268u; obj239.KillEnemyDataIds = list336; reference252 = obj239; obj238.Steps = list335; reference251 = obj238; - ref QuestSequence reference253 = ref span124[2]; + num++; + ref QuestSequence reference253 = ref span333[num]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue @@ -356670,7 +433642,9 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048960u, new Vector3(-405.84424f, 23.562847f, -476.61554f), 1189) + Span span337 = CollectionsMarshal.AsSpan(list337); + index2 = 0; + span337[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048960u, new Vector3(-405.84424f, 23.562847f, -476.61554f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -356683,24 +433657,30 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - CollectionsMarshal.AsSpan(list338)[0] = "liza"; + Span span338 = CollectionsMarshal.AsSpan(list338); + index = 0; + span338[index] = "liza"; questRoot42.Author = list338; - num = 3; - List list339 = new List(num); - CollectionsMarshal.SetCount(list339, num); - Span span125 = CollectionsMarshal.AsSpan(list339); - ref QuestSequence reference254 = ref span125[0]; + index = 3; + List list339 = new List(index); + CollectionsMarshal.SetCount(list339, index); + Span span339 = CollectionsMarshal.AsSpan(list339); + num = 0; + ref QuestSequence reference254 = ref span339[num]; QuestSequence obj241 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051071u, new Vector3(-554.03986f, 1.3156406f, -489.3416f), 1189); + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + Span span340 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span340[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051071u, new Vector3(-554.03986f, 1.3156406f, -489.3416f), 1189); obj241.Steps = list340; reference254 = obj241; - ref QuestSequence reference255 = ref span125[1]; + num++; + ref QuestSequence reference255 = ref span339[num]; QuestSequence obj242 = new QuestSequence { Sequence = 1 @@ -356708,41 +433688,48 @@ public static class AssemblyQuestLoader num2 = 3; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span126 = CollectionsMarshal.AsSpan(list341); - span126[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.55597f, 2.3708515f, -493.64908f), 1189) + Span span341 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span341[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.55597f, 2.3708515f, -493.64908f), 1189) { Fly = true }; - span126[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.2386f, -44.093876f, -495.7548f), 1189) + index2++; + span341[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.2386f, -44.093876f, -495.7548f), 1189) { DisableNavmesh = true, Fly = true }; - span126[2] = new QuestStep(EInteractionType.Interact, 2014307u, new Vector3(-729.7932f, -107.83557f, -674.8608f), 1189) + index2++; + span341[index2] = new QuestStep(EInteractionType.Interact, 2014307u, new Vector3(-729.7932f, -107.83557f, -674.8608f), 1189) { Fly = true }; obj242.Steps = list341; reference255 = obj242; - ref QuestSequence reference256 = ref span125[2]; + num++; + ref QuestSequence reference256 = ref span339[num]; QuestSequence obj243 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - Span span127 = CollectionsMarshal.AsSpan(list342); - span127[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.2386f, -44.093876f, -495.7548f), 1189) + index2 = 3; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + Span span342 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span342[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.2386f, -44.093876f, -495.7548f), 1189) { Fly = true }; - span127[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.55597f, 2.3708515f, -493.64908f), 1189) + num2++; + span342[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.55597f, 2.3708515f, -493.64908f), 1189) { DisableNavmesh = true, Fly = true }; - ref QuestStep reference257 = ref span127[2]; + num2++; + ref QuestStep reference257 = ref span342[num2]; QuestStep obj244 = new QuestStep(EInteractionType.CompleteQuest, 1051071u, new Vector3(-554.03986f, 1.3156406f, -489.3416f), 1189) { Fly = true @@ -356750,7 +433737,9 @@ public static class AssemblyQuestLoader num3 = 1; List list343 = new List(num3); CollectionsMarshal.SetCount(list343, num3); - CollectionsMarshal.AsSpan(list343)[0] = new DialogueChoice + Span span343 = CollectionsMarshal.AsSpan(list343); + num4 = 0; + span343[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD002_05091_Q1_000_000"), @@ -356767,13 +433756,16 @@ public static class AssemblyQuestLoader num = 1; List list344 = new List(num); CollectionsMarshal.SetCount(list344, num); - CollectionsMarshal.AsSpan(list344)[0] = "liza"; + Span span344 = CollectionsMarshal.AsSpan(list344); + index = 0; + span344[index] = "liza"; questRoot43.Author = list344; - num = 4; - List list345 = new List(num); - CollectionsMarshal.SetCount(list345, num); - Span span128 = CollectionsMarshal.AsSpan(list345); - ref QuestSequence reference258 = ref span128[0]; + index = 4; + List list345 = new List(index); + CollectionsMarshal.SetCount(list345, index); + Span span345 = CollectionsMarshal.AsSpan(list345); + num = 0; + ref QuestSequence reference258 = ref span345[num]; QuestSequence obj245 = new QuestSequence { Sequence = 0 @@ -356781,18 +433773,23 @@ public static class AssemblyQuestLoader num2 = 1; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051057u, new Vector3(-343.67902f, 18.885578f, -404.22675f), 1189); + Span span346 = CollectionsMarshal.AsSpan(list346); + index2 = 0; + span346[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051057u, new Vector3(-343.67902f, 18.885578f, -404.22675f), 1189); obj245.Steps = list346; reference258 = obj245; - ref QuestSequence reference259 = ref span128[1]; + num++; + ref QuestSequence reference259 = ref span345[num]; QuestSequence obj246 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - ref QuestStep reference260 = ref CollectionsMarshal.AsSpan(list347)[0]; + index2 = 1; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + Span span347 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + ref QuestStep reference260 = ref span347[num2]; QuestStep obj247 = new QuestStep(EInteractionType.Combat, null, new Vector3(158.97704f, 0.80940175f, -773.5188f), 1189) { StopDistance = 1f, @@ -356804,15 +433801,18 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list348 = new List(num3); - CollectionsMarshal.SetCount(list348, num3); - CollectionsMarshal.AsSpan(list348)[0] = 17663u; + num4 = 1; + List list348 = new List(num4); + CollectionsMarshal.SetCount(list348, num4); + Span span348 = CollectionsMarshal.AsSpan(list348); + num3 = 0; + span348[num3] = 17663u; obj247.KillEnemyDataIds = list348; reference260 = obj247; obj246.Steps = list347; reference259 = obj246; - ref QuestSequence reference261 = ref span128[2]; + num++; + ref QuestSequence reference261 = ref span345[num]; QuestSequence obj248 = new QuestSequence { Sequence = 2 @@ -356820,21 +433820,26 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.Interact, 1051058u, new Vector3(159.47205f, 0.81595546f, -770.19916f), 1189) + Span span349 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + span349[index2] = new QuestStep(EInteractionType.Interact, 1051058u, new Vector3(159.47205f, 0.81595546f, -770.19916f), 1189) { StopDistance = 7f }; obj248.Steps = list349; reference261 = obj248; - ref QuestSequence reference262 = ref span128[3]; + num++; + ref QuestSequence reference262 = ref span345[num]; QuestSequence obj249 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051057u, new Vector3(-343.67902f, 18.885578f, -404.22675f), 1189) + index2 = 1; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + Span span350 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span350[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051057u, new Vector3(-343.67902f, 18.885578f, -404.22675f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelIqBraax @@ -356848,13 +433853,16 @@ public static class AssemblyQuestLoader num = 1; List list351 = new List(num); CollectionsMarshal.SetCount(list351, num); - CollectionsMarshal.AsSpan(list351)[0] = "liza"; + Span span351 = CollectionsMarshal.AsSpan(list351); + index = 0; + span351[index] = "liza"; questRoot44.Author = list351; - num = 4; - List list352 = new List(num); - CollectionsMarshal.SetCount(list352, num); - Span span129 = CollectionsMarshal.AsSpan(list352); - ref QuestSequence reference263 = ref span129[0]; + index = 4; + List list352 = new List(index); + CollectionsMarshal.SetCount(list352, index); + Span span352 = CollectionsMarshal.AsSpan(list352); + num = 0; + ref QuestSequence reference263 = ref span352[num]; QuestSequence obj250 = new QuestSequence { Sequence = 0 @@ -356862,24 +433870,30 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048928u, new Vector3(36.301147f, 8.205902f, -645.1362f), 1189); + Span span353 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span353[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048928u, new Vector3(36.301147f, 8.205902f, -645.1362f), 1189); obj250.Steps = list353; reference263 = obj250; - ref QuestSequence reference264 = ref span129[1]; + num++; + ref QuestSequence reference264 = ref span352[num]; QuestSequence obj251 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1051072u, new Vector3(-39.07837f, 4.3051004f, -332.87555f), 1189) + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + Span span354 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span354[num2] = new QuestStep(EInteractionType.Interact, 1051072u, new Vector3(-39.07837f, 4.3051004f, -332.87555f), 1189) { Fly = true }; obj251.Steps = list354; reference264 = obj251; - ref QuestSequence reference265 = ref span129[2]; + num++; + ref QuestSequence reference265 = ref span352[num]; QuestSequence obj252 = new QuestSequence { Sequence = 2 @@ -356887,18 +433901,23 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.Interact, 1051072u, new Vector3(-39.07837f, 4.3051004f, -332.87555f), 1189); + Span span355 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + span355[index2] = new QuestStep(EInteractionType.Interact, 1051072u, new Vector3(-39.07837f, 4.3051004f, -332.87555f), 1189); obj252.Steps = list355; reference265 = obj252; - ref QuestSequence reference266 = ref span129[3]; + num++; + ref QuestSequence reference266 = ref span352[num]; QuestSequence obj253 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list356 = new List(num2); - CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048928u, new Vector3(36.301147f, 8.205902f, -645.1362f), 1189); + index2 = 1; + List list356 = new List(index2); + CollectionsMarshal.SetCount(list356, index2); + Span span356 = CollectionsMarshal.AsSpan(list356); + num2 = 0; + span356[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048928u, new Vector3(36.301147f, 8.205902f, -645.1362f), 1189); obj253.Steps = list356; reference266 = obj253; questRoot44.QuestSequence = list352; @@ -356908,13 +433927,16 @@ public static class AssemblyQuestLoader num = 1; List list357 = new List(num); CollectionsMarshal.SetCount(list357, num); - CollectionsMarshal.AsSpan(list357)[0] = "liza"; + Span span357 = CollectionsMarshal.AsSpan(list357); + index = 0; + span357[index] = "liza"; questRoot45.Author = list357; - num = 5; - List list358 = new List(num); - CollectionsMarshal.SetCount(list358, num); - Span span130 = CollectionsMarshal.AsSpan(list358); - ref QuestSequence reference267 = ref span130[0]; + index = 5; + List list358 = new List(index); + CollectionsMarshal.SetCount(list358, index); + Span span358 = CollectionsMarshal.AsSpan(list358); + num = 0; + ref QuestSequence reference267 = ref span358[num]; QuestSequence obj254 = new QuestSequence { Sequence = 0 @@ -356922,21 +433944,27 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189); + Span span359 = CollectionsMarshal.AsSpan(list359); + index2 = 0; + span359[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189); obj254.Steps = list359; reference267 = obj254; - ref QuestSequence reference268 = ref span130[1]; + num++; + ref QuestSequence reference268 = ref span358[num]; QuestSequence obj255 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.Interact, 2014310u, new Vector3(499.8092f, 20.126648f, -345.84576f), 1189); + index2 = 1; + List list360 = new List(index2); + CollectionsMarshal.SetCount(list360, index2); + Span span360 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + span360[num2] = new QuestStep(EInteractionType.Interact, 2014310u, new Vector3(499.8092f, 20.126648f, -345.84576f), 1189); obj255.Steps = list360; reference268 = obj255; - ref QuestSequence reference269 = ref span130[2]; + num++; + ref QuestSequence reference269 = ref span358[num]; QuestSequence obj256 = new QuestSequence { Sequence = 2 @@ -356944,75 +433972,89 @@ public static class AssemblyQuestLoader num2 = 10; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - Span span131 = CollectionsMarshal.AsSpan(list361); - span131[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(509.42645f, 15.455202f, -305.60803f), 1189) + Span span361 = CollectionsMarshal.AsSpan(list361); + index2 = 0; + span361[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(509.42645f, 15.455202f, -305.60803f), 1189) { Mount = false, Sprint = false }; - span131[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(515.47345f, 10.495132f, -260.93246f), 1189) + index2++; + span361[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(515.47345f, 10.495132f, -260.93246f), 1189) { StopDistance = 100f, Mount = false, Sprint = false }; - span131[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(532.88403f, 10.019356f, -237.4513f), 1189) + index2++; + span361[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(532.88403f, 10.019356f, -237.4513f), 1189) { DelaySecondsAtStart = 5f, Mount = false, Sprint = false }; - span131[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(543.8844f, 9.337766f, -190.25961f), 1189) + index2++; + span361[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(543.8844f, 9.337766f, -190.25961f), 1189) { StopDistance = 100f, Mount = false, Sprint = false }; - span131[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(530.938f, 10.278882f, -164.46059f), 1189) + index2++; + span361[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(530.938f, 10.278882f, -164.46059f), 1189) { Mount = false, Sprint = false }; - span131[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(564.2212f, 12.653475f, -126.851585f), 1189) + index2++; + span361[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(564.2212f, 12.653475f, -126.851585f), 1189) { StopDistance = 100f, Mount = false, Sprint = false }; - span131[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.95447f, 16.180645f, -78.99758f), 1189) + index2++; + span361[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.95447f, 16.180645f, -78.99758f), 1189) { Mount = false, Sprint = false }; - span131[7] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(599.5003f, 16.939411f, -34.30726f), 1189) + index2++; + span361[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(599.5003f, 16.939411f, -34.30726f), 1189) { StopDistance = 100f, Mount = false, Sprint = false }; - span131[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(598.5126f, 16.16554f, -24.822657f), 1189) + index2++; + span361[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(598.5126f, 16.16554f, -24.822657f), 1189) { Mount = false, Sprint = false }; - span131[9] = new QuestStep(EInteractionType.WalkTo, 1051362u, new Vector3(627.7103f, 17.481155f, 2.9754639f), 1189) + index2++; + span361[index2] = new QuestStep(EInteractionType.WalkTo, 1051362u, new Vector3(627.7103f, 17.481155f, 2.9754639f), 1189) { DelaySecondsAtStart = 25f }; obj256.Steps = list361; reference269 = obj256; - ref QuestSequence reference270 = ref span130[3]; + num++; + ref QuestSequence reference270 = ref span358[num]; QuestSequence obj257 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.Interact, 1051362u, new Vector3(627.7103f, 17.481155f, 2.9754639f), 1189); + index2 = 1; + List list362 = new List(index2); + CollectionsMarshal.SetCount(list362, index2); + Span span362 = CollectionsMarshal.AsSpan(list362); + num2 = 0; + span362[num2] = new QuestStep(EInteractionType.Interact, 1051362u, new Vector3(627.7103f, 17.481155f, 2.9754639f), 1189); obj257.Steps = list362; reference270 = obj257; - ref QuestSequence reference271 = ref span130[4]; + num++; + ref QuestSequence reference271 = ref span358[num]; QuestSequence obj258 = new QuestSequence { Sequence = byte.MaxValue @@ -357020,12 +434062,14 @@ public static class AssemblyQuestLoader num2 = 2; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - Span span132 = CollectionsMarshal.AsSpan(list363); - span132[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013948u, new Vector3(610.7728f, 9.597839f, 233.05103f), 1189) + Span span363 = CollectionsMarshal.AsSpan(list363); + index2 = 0; + span363[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013948u, new Vector3(610.7728f, 9.597839f, 233.05103f), 1189) { AetherCurrentId = 2818440u }; - ref QuestStep reference272 = ref span132[1]; + index2++; + ref QuestStep reference272 = ref span363[index2]; QuestStep obj259 = new QuestStep(EInteractionType.CompleteQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -357038,7 +434082,9 @@ public static class AssemblyQuestLoader num3 = 1; List list364 = new List(num3); CollectionsMarshal.SetCount(list364, num3); - CollectionsMarshal.AsSpan(list364)[0] = new DialogueChoice + Span span364 = CollectionsMarshal.AsSpan(list364); + num4 = 0; + span364[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD005_05094_CHOICE1Q1_100_060"), @@ -357055,24 +434101,30 @@ public static class AssemblyQuestLoader num = 1; List list365 = new List(num); CollectionsMarshal.SetCount(list365, num); - CollectionsMarshal.AsSpan(list365)[0] = "liza"; + Span span365 = CollectionsMarshal.AsSpan(list365); + index = 0; + span365[index] = "liza"; questRoot46.Author = list365; - num = 4; - List list366 = new List(num); - CollectionsMarshal.SetCount(list366, num); - Span span133 = CollectionsMarshal.AsSpan(list366); - ref QuestSequence reference273 = ref span133[0]; + index = 4; + List list366 = new List(index); + CollectionsMarshal.SetCount(list366, index); + Span span366 = CollectionsMarshal.AsSpan(list366); + num = 0; + ref QuestSequence reference273 = ref span366[num]; QuestSequence obj260 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list367 = new List(num2); - CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051061u, new Vector3(-407.79742f, 28.068892f, -360.55542f), 1189); + index2 = 1; + List list367 = new List(index2); + CollectionsMarshal.SetCount(list367, index2); + Span span367 = CollectionsMarshal.AsSpan(list367); + num2 = 0; + span367[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051061u, new Vector3(-407.79742f, 28.068892f, -360.55542f), 1189); obj260.Steps = list367; reference273 = obj260; - ref QuestSequence reference274 = ref span133[1]; + num++; + ref QuestSequence reference274 = ref span366[num]; QuestSequence obj261 = new QuestSequence { Sequence = 1 @@ -357080,37 +434132,45 @@ public static class AssemblyQuestLoader num2 = 1; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list368)[0]; + Span span368 = CollectionsMarshal.AsSpan(list368); + index2 = 0; + ref QuestStep reference275 = ref span368[index2]; QuestStep obj262 = new QuestStep(EInteractionType.Combat, 1051062u, new Vector3(-489.5247f, -29.96456f, -94.83484f), 1189) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list369 = new List(num3); - CollectionsMarshal.SetCount(list369, num3); - Span span134 = CollectionsMarshal.AsSpan(list369); - span134[0] = 17664u; - span134[1] = 17665u; + num4 = 2; + List list369 = new List(num4); + CollectionsMarshal.SetCount(list369, num4); + Span span369 = CollectionsMarshal.AsSpan(list369); + num3 = 0; + span369[num3] = 17664u; + num3++; + span369[num3] = 17665u; obj262.KillEnemyDataIds = list369; reference275 = obj262; obj261.Steps = list368; reference274 = obj261; - ref QuestSequence reference276 = ref span133[2]; + num++; + ref QuestSequence reference276 = ref span366[num]; QuestSequence obj263 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.Interact, 1051062u, new Vector3(-489.5247f, -29.96456f, -94.83484f), 1189) + index2 = 1; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + Span span370 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + span370[num2] = new QuestStep(EInteractionType.Interact, 1051062u, new Vector3(-489.5247f, -29.96456f, -94.83484f), 1189) { StopDistance = 7f }; obj263.Steps = list370; reference276 = obj263; - ref QuestSequence reference277 = ref span133[3]; + num++; + ref QuestSequence reference277 = ref span366[num]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue @@ -357118,7 +434178,9 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051061u, new Vector3(-407.79742f, 28.068892f, -360.55542f), 1189) + Span span371 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + span371[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051061u, new Vector3(-407.79742f, 28.068892f, -360.55542f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelIqBraax @@ -357132,24 +434194,30 @@ public static class AssemblyQuestLoader num = 1; List list372 = new List(num); CollectionsMarshal.SetCount(list372, num); - CollectionsMarshal.AsSpan(list372)[0] = "liza"; + Span span372 = CollectionsMarshal.AsSpan(list372); + index = 0; + span372[index] = "liza"; questRoot47.Author = list372; - num = 3; - List list373 = new List(num); - CollectionsMarshal.SetCount(list373, num); - Span span135 = CollectionsMarshal.AsSpan(list373); - ref QuestSequence reference278 = ref span135[0]; + index = 3; + List list373 = new List(index); + CollectionsMarshal.SetCount(list373, index); + Span span373 = CollectionsMarshal.AsSpan(list373); + num = 0; + ref QuestSequence reference278 = ref span373[num]; QuestSequence obj265 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list374 = new List(num2); - CollectionsMarshal.SetCount(list374, num2); - CollectionsMarshal.AsSpan(list374)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051065u, new Vector3(380.7583f, 21.437008f, -496.84903f), 1189); + index2 = 1; + List list374 = new List(index2); + CollectionsMarshal.SetCount(list374, index2); + Span span374 = CollectionsMarshal.AsSpan(list374); + num2 = 0; + span374[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051065u, new Vector3(380.7583f, 21.437008f, -496.84903f), 1189); obj265.Steps = list374; reference278 = obj265; - ref QuestSequence reference279 = ref span135[1]; + num++; + ref QuestSequence reference279 = ref span373[num]; QuestSequence obj266 = new QuestSequence { Sequence = 1 @@ -357157,36 +434225,51 @@ public static class AssemblyQuestLoader num2 = 3; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - Span span136 = CollectionsMarshal.AsSpan(list375); - ref QuestStep reference280 = ref span136[0]; + Span span375 = CollectionsMarshal.AsSpan(list375); + index2 = 0; + ref QuestStep reference280 = ref span375[index2]; 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); - Span span137 = CollectionsMarshal.AsSpan(list376); - span137[0] = null; - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = null; - span137[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span376 = CollectionsMarshal.AsSpan(list376); + num4 = 0; + span376[num4] = null; + num4++; + span376[num4] = null; + num4++; + span376[num4] = null; + num4++; + span376[num4] = null; + num4++; + span376[num4] = null; + num4++; + span376[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list376; reference280 = questStep14; - ref QuestStep reference281 = ref span136[1]; + index2++; + ref QuestStep reference281 = ref span375[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2014266u, new Vector3(430.83838f, 20.126648f, -456.71783f), 1189); - num3 = 6; - List list377 = new List(num3); - CollectionsMarshal.SetCount(list377, num3); - Span span138 = CollectionsMarshal.AsSpan(list377); - span138[0] = null; - span138[1] = null; - span138[2] = null; - span138[3] = null; - span138[4] = null; - span138[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list377 = new List(num4); + CollectionsMarshal.SetCount(list377, num4); + Span span377 = CollectionsMarshal.AsSpan(list377); + num3 = 0; + span377[num3] = null; + num3++; + span377[num3] = null; + num3++; + span377[num3] = null; + num3++; + span377[num3] = null; + num3++; + span377[num3] = null; + num3++; + span377[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list377; reference281 = questStep15; - ref QuestStep reference282 = ref span136[2]; + index2++; + ref QuestStep reference282 = ref span375[index2]; QuestStep obj267 = new QuestStep(EInteractionType.Combat, 2014265u, new Vector3(395.92578f, 20.34021f, -453.02515f), 1189) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -357194,31 +434277,42 @@ public static class AssemblyQuestLoader num3 = 1; List list378 = new List(num3); CollectionsMarshal.SetCount(list378, num3); - CollectionsMarshal.AsSpan(list378)[0] = 17666u; + Span span378 = CollectionsMarshal.AsSpan(list378); + num4 = 0; + span378[num4] = 17666u; obj267.KillEnemyDataIds = list378; - num3 = 6; - List list379 = new List(num3); - CollectionsMarshal.SetCount(list379, num3); - Span span139 = CollectionsMarshal.AsSpan(list379); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list379 = new List(num4); + CollectionsMarshal.SetCount(list379, num4); + Span span379 = CollectionsMarshal.AsSpan(list379); + num3 = 0; + span379[num3] = null; + num3++; + span379[num3] = null; + num3++; + span379[num3] = null; + num3++; + span379[num3] = null; + num3++; + span379[num3] = null; + num3++; + span379[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj267.CompletionQuestVariablesFlags = list379; reference282 = obj267; obj266.Steps = list375; reference279 = obj266; - ref QuestSequence reference283 = ref span135[2]; + num++; + ref QuestSequence reference283 = ref span373[num]; QuestSequence obj268 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list380 = new List(num2); - CollectionsMarshal.SetCount(list380, num2); - CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051065u, new Vector3(380.7583f, 21.437008f, -496.84903f), 1189); + index2 = 1; + List list380 = new List(index2); + CollectionsMarshal.SetCount(list380, index2); + Span span380 = CollectionsMarshal.AsSpan(list380); + num2 = 0; + span380[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051065u, new Vector3(380.7583f, 21.437008f, -496.84903f), 1189); obj268.Steps = list380; reference283 = obj268; questRoot47.QuestSequence = list373; @@ -357228,13 +434322,16 @@ public static class AssemblyQuestLoader num = 1; List list381 = new List(num); CollectionsMarshal.SetCount(list381, num); - CollectionsMarshal.AsSpan(list381)[0] = "liza"; + Span span381 = CollectionsMarshal.AsSpan(list381); + index = 0; + span381[index] = "liza"; questRoot48.Author = list381; - num = 3; - List list382 = new List(num); - CollectionsMarshal.SetCount(list382, num); - Span span140 = CollectionsMarshal.AsSpan(list382); - ref QuestSequence reference284 = ref span140[0]; + index = 3; + List list382 = new List(index); + CollectionsMarshal.SetCount(list382, index); + Span span382 = CollectionsMarshal.AsSpan(list382); + num = 0; + ref QuestSequence reference284 = ref span382[num]; QuestSequence obj269 = new QuestSequence { Sequence = 0 @@ -357242,19 +434339,23 @@ public static class AssemblyQuestLoader num2 = 1; List list383 = new List(num2); CollectionsMarshal.SetCount(list383, num2); - CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051364u, new Vector3(-9.353821f, 8.205902f, -652.9183f), 1189); + Span span383 = CollectionsMarshal.AsSpan(list383); + index2 = 0; + span383[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051364u, new Vector3(-9.353821f, 8.205902f, -652.9183f), 1189); obj269.Steps = list383; reference284 = obj269; - ref QuestSequence reference285 = ref span140[1]; + num++; + ref QuestSequence reference285 = ref span382[num]; QuestSequence obj270 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list384 = new List(num2); - CollectionsMarshal.SetCount(list384, num2); - Span span141 = CollectionsMarshal.AsSpan(list384); - ref QuestStep reference286 = ref span141[0]; + index2 = 3; + List list384 = new List(index2); + CollectionsMarshal.SetCount(list384, index2); + Span span384 = CollectionsMarshal.AsSpan(list384); + num2 = 0; + ref QuestStep reference286 = ref span384[num2]; QuestStep obj271 = new QuestStep(EInteractionType.Interact, 1048961u, new Vector3(-444.38855f, 28.068893f, -363.66827f), 1189) { Fly = true, @@ -357263,37 +434364,51 @@ public static class AssemblyQuestLoader num3 = 6; List list385 = new List(num3); CollectionsMarshal.SetCount(list385, num3); - Span span142 = CollectionsMarshal.AsSpan(list385); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span385 = CollectionsMarshal.AsSpan(list385); + num4 = 0; + span385[num4] = null; + num4++; + span385[num4] = null; + num4++; + span385[num4] = null; + num4++; + span385[num4] = null; + num4++; + span385[num4] = null; + num4++; + span385[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj271.CompletionQuestVariablesFlags = list385; reference286 = obj271; - ref QuestStep reference287 = ref span141[1]; + num2++; + ref QuestStep reference287 = ref span384[num2]; QuestStep obj272 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-632.6718f, 25.245409f, -159.94264f), 1189) { Fly = true }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list386 = new List(num3); - CollectionsMarshal.SetCount(list386, num3); - Span span143 = CollectionsMarshal.AsSpan(list386); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list386 = new List(num4); + CollectionsMarshal.SetCount(list386, num4); + Span span386 = CollectionsMarshal.AsSpan(list386); + num3 = 0; + span386[num3] = null; + num3++; + span386[num3] = null; + num3++; + span386[num3] = null; + num3++; + span386[num3] = null; + num3++; + span386[num3] = null; + num3++; + span386[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list386; skipConditions2.StepIf = skipStepConditions2; obj272.SkipConditions = skipConditions2; reference287 = obj272; - ref QuestStep reference288 = ref span141[2]; + num2++; + ref QuestStep reference288 = ref span384[num2]; QuestStep obj273 = new QuestStep(EInteractionType.Interact, 1048995u, new Vector3(-639.27673f, 26.716875f, -161.05902f), 1189) { StopDistance = 7f @@ -357301,18 +434416,25 @@ public static class AssemblyQuestLoader num3 = 6; List list387 = new List(num3); CollectionsMarshal.SetCount(list387, num3); - Span span144 = CollectionsMarshal.AsSpan(list387); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span387 = CollectionsMarshal.AsSpan(list387); + num4 = 0; + span387[num4] = null; + num4++; + span387[num4] = null; + num4++; + span387[num4] = null; + num4++; + span387[num4] = null; + num4++; + span387[num4] = null; + num4++; + span387[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj273.CompletionQuestVariablesFlags = list387; reference288 = obj273; obj270.Steps = list384; reference285 = obj270; - ref QuestSequence reference289 = ref span140[2]; + num++; + ref QuestSequence reference289 = ref span382[num]; QuestSequence obj274 = new QuestSequence { Sequence = byte.MaxValue @@ -357320,7 +434442,9 @@ public static class AssemblyQuestLoader num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051410u, new Vector3(-9.140198f, 8.205902f, -652.9183f), 1189) + Span span388 = CollectionsMarshal.AsSpan(list388); + index2 = 0; + span388[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051410u, new Vector3(-9.140198f, 8.205902f, -652.9183f), 1189) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -357338,24 +434462,30 @@ public static class AssemblyQuestLoader num = 1; List list389 = new List(num); CollectionsMarshal.SetCount(list389, num); - CollectionsMarshal.AsSpan(list389)[0] = "liza"; + Span span389 = CollectionsMarshal.AsSpan(list389); + index = 0; + span389[index] = "liza"; questRoot49.Author = list389; - num = 5; - List list390 = new List(num); - CollectionsMarshal.SetCount(list390, num); - Span span145 = CollectionsMarshal.AsSpan(list390); - ref QuestSequence reference290 = ref span145[0]; + index = 5; + List list390 = new List(index); + CollectionsMarshal.SetCount(list390, index); + Span span390 = CollectionsMarshal.AsSpan(list390); + num = 0; + ref QuestSequence reference290 = ref span390[num]; QuestSequence obj275 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list391 = new List(num2); - CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048996u, new Vector3(-618.43286f, 25.709108f, -153.91785f), 1189); + index2 = 1; + List list391 = new List(index2); + CollectionsMarshal.SetCount(list391, index2); + Span span391 = CollectionsMarshal.AsSpan(list391); + num2 = 0; + span391[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048996u, new Vector3(-618.43286f, 25.709108f, -153.91785f), 1189); obj275.Steps = list391; reference290 = obj275; - ref QuestSequence reference291 = ref span145[1]; + num++; + ref QuestSequence reference291 = ref span390[num]; QuestSequence obj276 = new QuestSequence { Sequence = 1 @@ -357363,43 +434493,54 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Interact, 1051365u, new Vector3(-738.3383f, 22.137896f, -85.404785f), 1189) + Span span392 = CollectionsMarshal.AsSpan(list392); + index2 = 0; + span392[index2] = new QuestStep(EInteractionType.Interact, 1051365u, new Vector3(-738.3383f, 22.137896f, -85.404785f), 1189) { Fly = true }; obj276.Steps = list392; reference291 = obj276; - ref QuestSequence reference292 = ref span145[2]; + num++; + ref QuestSequence reference292 = ref span390[num]; QuestSequence obj277 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list393 = new List(num2); - CollectionsMarshal.SetCount(list393, num2); - Span span146 = CollectionsMarshal.AsSpan(list393); - ref QuestStep reference293 = ref span146[0]; + index2 = 6; + List list393 = new List(index2); + CollectionsMarshal.SetCount(list393, index2); + Span span393 = CollectionsMarshal.AsSpan(list393); + num2 = 0; + ref QuestStep reference293 = ref span393[num2]; QuestStep obj278 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-580.44604f, 22.457048f, -3.286837f), 1189) { Fly = true }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 6; - List list394 = new List(num3); - CollectionsMarshal.SetCount(list394, num3); - Span span147 = CollectionsMarshal.AsSpan(list394); - span147[0] = null; - span147[1] = null; - span147[2] = null; - span147[3] = null; - span147[4] = null; - span147[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list394 = new List(num4); + CollectionsMarshal.SetCount(list394, num4); + Span span394 = CollectionsMarshal.AsSpan(list394); + num3 = 0; + span394[num3] = null; + num3++; + span394[num3] = null; + num3++; + span394[num3] = null; + num3++; + span394[num3] = null; + num3++; + span394[num3] = null; + num3++; + span394[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list394; skipConditions3.StepIf = skipStepConditions3; obj278.SkipConditions = skipConditions3; reference293 = obj278; - ref QuestStep reference294 = ref span146[1]; + num2++; + ref QuestStep reference294 = ref span393[num2]; QuestStep obj279 = new QuestStep(EInteractionType.UseItem, 2014313u, new Vector3(-581.75024f, 23.697266f, -2.9450073f), 1189) { ItemId = 2003683u @@ -357407,37 +434548,51 @@ public static class AssemblyQuestLoader num3 = 6; List list395 = new List(num3); CollectionsMarshal.SetCount(list395, num3); - Span span148 = CollectionsMarshal.AsSpan(list395); - span148[0] = null; - span148[1] = null; - span148[2] = null; - span148[3] = null; - span148[4] = null; - span148[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span395 = CollectionsMarshal.AsSpan(list395); + num4 = 0; + span395[num4] = null; + num4++; + span395[num4] = null; + num4++; + span395[num4] = null; + num4++; + span395[num4] = null; + num4++; + span395[num4] = null; + num4++; + span395[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj279.CompletionQuestVariablesFlags = list395; reference294 = obj279; - ref QuestStep reference295 = ref span146[2]; + num2++; + ref QuestStep reference295 = ref span393[num2]; QuestStep obj280 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-506.6366f, 22.817732f, 32.985153f), 1189) { Fly = true }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list396 = new List(num3); - CollectionsMarshal.SetCount(list396, num3); - Span span149 = CollectionsMarshal.AsSpan(list396); - span149[0] = null; - span149[1] = null; - span149[2] = null; - span149[3] = null; - span149[4] = null; - span149[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list396 = new List(num4); + CollectionsMarshal.SetCount(list396, num4); + Span span396 = CollectionsMarshal.AsSpan(list396); + num3 = 0; + span396[num3] = null; + num3++; + span396[num3] = null; + num3++; + span396[num3] = null; + num3++; + span396[num3] = null; + num3++; + span396[num3] = null; + num3++; + span396[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list396; skipConditions4.StepIf = skipStepConditions4; obj280.SkipConditions = skipConditions4; reference295 = obj280; - ref QuestStep reference296 = ref span146[3]; + num2++; + ref QuestStep reference296 = ref span393[num2]; QuestStep obj281 = new QuestStep(EInteractionType.UseItem, 2014314u, new Vector3(-505.9129f, 23.88031f, 32.455933f), 1189) { ItemId = 2003683u @@ -357445,37 +434600,51 @@ public static class AssemblyQuestLoader num3 = 6; List list397 = new List(num3); CollectionsMarshal.SetCount(list397, num3); - Span span150 = CollectionsMarshal.AsSpan(list397); - span150[0] = null; - span150[1] = null; - span150[2] = null; - span150[3] = null; - span150[4] = null; - span150[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span397 = CollectionsMarshal.AsSpan(list397); + num4 = 0; + span397[num4] = null; + num4++; + span397[num4] = null; + num4++; + span397[num4] = null; + num4++; + span397[num4] = null; + num4++; + span397[num4] = null; + num4++; + span397[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj281.CompletionQuestVariablesFlags = list397; reference296 = obj281; - ref QuestStep reference297 = ref span146[4]; + num2++; + ref QuestStep reference297 = ref span393[num2]; QuestStep obj282 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-414.84598f, 20.493914f, 74.74898f), 1189) { Fly = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list398 = new List(num3); - CollectionsMarshal.SetCount(list398, num3); - Span span151 = CollectionsMarshal.AsSpan(list398); - span151[0] = null; - span151[1] = null; - span151[2] = null; - span151[3] = null; - span151[4] = null; - span151[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list398 = new List(num4); + CollectionsMarshal.SetCount(list398, num4); + Span span398 = CollectionsMarshal.AsSpan(list398); + num3 = 0; + span398[num3] = null; + num3++; + span398[num3] = null; + num3++; + span398[num3] = null; + num3++; + span398[num3] = null; + num3++; + span398[num3] = null; + num3++; + span398[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list398; skipConditions5.StepIf = skipStepConditions5; obj282.SkipConditions = skipConditions5; reference297 = obj282; - ref QuestStep reference298 = ref span146[5]; + num2++; + ref QuestStep reference298 = ref span393[num2]; QuestStep obj283 = new QuestStep(EInteractionType.UseItem, 2014315u, new Vector3(-413.96204f, 21.896606f, 74.021484f), 1189) { ItemId = 2003683u @@ -357483,18 +434652,25 @@ public static class AssemblyQuestLoader num3 = 6; List list399 = new List(num3); CollectionsMarshal.SetCount(list399, num3); - Span span152 = CollectionsMarshal.AsSpan(list399); - span152[0] = null; - span152[1] = null; - span152[2] = null; - span152[3] = null; - span152[4] = null; - span152[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span399 = CollectionsMarshal.AsSpan(list399); + num4 = 0; + span399[num4] = null; + num4++; + span399[num4] = null; + num4++; + span399[num4] = null; + num4++; + span399[num4] = null; + num4++; + span399[num4] = null; + num4++; + span399[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj283.CompletionQuestVariablesFlags = list399; reference298 = obj283; obj277.Steps = list393; reference292 = obj277; - ref QuestSequence reference299 = ref span145[3]; + num++; + ref QuestSequence reference299 = ref span390[num]; QuestSequence obj284 = new QuestSequence { Sequence = 3 @@ -357502,21 +434678,26 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.Interact, 1051365u, new Vector3(-738.3383f, 22.137896f, -85.404785f), 1189) + Span span400 = CollectionsMarshal.AsSpan(list400); + index2 = 0; + span400[index2] = new QuestStep(EInteractionType.Interact, 1051365u, new Vector3(-738.3383f, 22.137896f, -85.404785f), 1189) { Fly = true }; obj284.Steps = list400; reference299 = obj284; - ref QuestSequence reference300 = ref span145[4]; + num++; + ref QuestSequence reference300 = ref span390[num]; QuestSequence obj285 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list401 = new List(num2); - CollectionsMarshal.SetCount(list401, num2); - CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048996u, new Vector3(-618.43286f, 25.709108f, -153.91785f), 1189) + index2 = 1; + List list401 = new List(index2); + CollectionsMarshal.SetCount(list401, index2); + Span span401 = CollectionsMarshal.AsSpan(list401); + num2 = 0; + span401[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048996u, new Vector3(-618.43286f, 25.709108f, -153.91785f), 1189) { Fly = true }; @@ -357529,13 +434710,16 @@ public static class AssemblyQuestLoader num = 1; List list402 = new List(num); CollectionsMarshal.SetCount(list402, num); - CollectionsMarshal.AsSpan(list402)[0] = "liza"; + Span span402 = CollectionsMarshal.AsSpan(list402); + index = 0; + span402[index] = "liza"; questRoot50.Author = list402; - num = 3; - List list403 = new List(num); - CollectionsMarshal.SetCount(list403, num); - Span span153 = CollectionsMarshal.AsSpan(list403); - ref QuestSequence reference301 = ref span153[0]; + index = 3; + List list403 = new List(index); + CollectionsMarshal.SetCount(list403, index); + Span span403 = CollectionsMarshal.AsSpan(list403); + num = 0; + ref QuestSequence reference301 = ref span403[num]; QuestSequence obj286 = new QuestSequence { Sequence = 0 @@ -357543,24 +434727,30 @@ public static class AssemblyQuestLoader num2 = 1; List list404 = new List(num2); CollectionsMarshal.SetCount(list404, num2); - CollectionsMarshal.AsSpan(list404)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051366u, new Vector3(-399.95422f, 20.145584f, -402.4262f), 1189); + Span span404 = CollectionsMarshal.AsSpan(list404); + index2 = 0; + span404[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051366u, new Vector3(-399.95422f, 20.145584f, -402.4262f), 1189); obj286.Steps = list404; reference301 = obj286; - ref QuestSequence reference302 = ref span153[1]; + num++; + ref QuestSequence reference302 = ref span403[num]; QuestSequence obj287 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list405 = new List(num2); - CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.Interact, 1051367u, new Vector3(-503.95975f, 29.007706f, -394.43048f), 1189) + index2 = 1; + List list405 = new List(index2); + CollectionsMarshal.SetCount(list405, index2); + Span span405 = CollectionsMarshal.AsSpan(list405); + num2 = 0; + span405[num2] = new QuestStep(EInteractionType.Interact, 1051367u, new Vector3(-503.95975f, 29.007706f, -394.43048f), 1189) { Fly = true }; obj287.Steps = list405; reference302 = obj287; - ref QuestSequence reference303 = ref span153[2]; + num++; + ref QuestSequence reference303 = ref span403[num]; QuestSequence obj288 = new QuestSequence { Sequence = byte.MaxValue @@ -357568,7 +434758,9 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051368u, new Vector3(-501.27414f, 28.982998f, -394.3084f), 1189); + Span span406 = CollectionsMarshal.AsSpan(list406); + index2 = 0; + span406[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051368u, new Vector3(-501.27414f, 28.982998f, -394.3084f), 1189); obj288.Steps = list406; reference303 = obj288; questRoot50.QuestSequence = list403; @@ -357582,13 +434774,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -357596,24 +434791,30 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048982u, new Vector3(595.45276f, -137.17401f, 564.8126f), 1189); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048982u, new Vector3(595.45276f, -137.17401f, 564.8126f), 1189); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Snipe, 2014250u, new Vector3(598.3214f, -137.19391f, 557.7018f), 1189) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Snipe, 2014250u, new Vector3(598.3214f, -137.19391f, 557.7018f), 1189) { Comment = "Inspect Flag, Red Head, Blue Head" }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -357621,7 +434822,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048982u, new Vector3(595.45276f, -137.17401f, 564.8126f), 1189) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048982u, new Vector3(595.45276f, -137.17401f, 564.8126f), 1189) { StopDistance = 7f }; @@ -357634,24 +434837,30 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; + Span span6 = CollectionsMarshal.AsSpan(list6); + index = 0; + span6[index] = "liza"; questRoot2.Author = list6; - num = 3; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span2 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span2[0]; + index = 3; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + Span span7 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span7[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048984u, new Vector3(673.06006f, -135.17874f, 577.47766f), 1189); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048984u, new Vector3(673.06006f, -135.17874f, 577.47766f), 1189); obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span2[1]; + num++; + ref QuestSequence reference5 = ref span7[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -357659,8 +434868,9 @@ public static class AssemblyQuestLoader num2 = 6; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span3 = CollectionsMarshal.AsSpan(list9); - ref QuestStep reference6 = ref span3[0]; + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + ref QuestStep reference6 = ref span9[index2]; QuestStep obj6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-92.00457f, -212.91975f, 624.4216f), 1189) { Fly = true @@ -357670,39 +434880,53 @@ public static class AssemblyQuestLoader int num3 = 6; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - Span span4 = CollectionsMarshal.AsSpan(list10); - span4[0] = null; - span4[1] = null; - span4[2] = null; - span4[3] = null; - span4[4] = null; - span4[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span10 = CollectionsMarshal.AsSpan(list10); + int num4 = 0; + span10[num4] = null; + num4++; + span10[num4] = null; + num4++; + span10[num4] = null; + num4++; + span10[num4] = null; + num4++; + span10[num4] = null; + num4++; + span10[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list10; skipConditions.StepIf = skipStepConditions; obj6.SkipConditions = skipConditions; reference6 = obj6; - ref QuestStep reference7 = ref span3[1]; + index2++; + ref QuestStep reference7 = ref span9[index2]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 1051049u, new Vector3(-89.49426f, -213.64497f, 625.574f), 1189) { StopDistance = 4f }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span5 = CollectionsMarshal.AsSpan(list11); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list11 = new List(num4); + CollectionsMarshal.SetCount(list11, num4); + Span span11 = CollectionsMarshal.AsSpan(list11); + num3 = 0; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = null; + num3++; + span11[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list11; skipConditions2.StepIf = skipStepConditions2; obj7.SkipConditions = skipConditions2; reference7 = obj7; - ref QuestStep reference8 = ref span3[2]; + index2++; + ref QuestStep reference8 = ref span9[index2]; QuestStep obj8 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-122.188805f, -214.08376f, 674.54083f), 1189) { Fly = true @@ -357712,32 +434936,46 @@ public static class AssemblyQuestLoader num3 = 6; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span6 = CollectionsMarshal.AsSpan(list12); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span12 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span12[num4] = null; + num4++; + span12[num4] = null; + num4++; + span12[num4] = null; + num4++; + span12[num4] = null; + num4++; + span12[num4] = null; + num4++; + span12[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list12; skipConditions3.StepIf = skipStepConditions3; obj8.SkipConditions = skipConditions3; reference8 = obj8; - ref QuestStep reference9 = ref span3[3]; + index2++; + ref QuestStep reference9 = ref span9[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1051051u, new Vector3(-122.88098f, -213.78055f, 673.39575f), 1189); - num3 = 6; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - Span span7 = CollectionsMarshal.AsSpan(list13); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list13 = new List(num4); + CollectionsMarshal.SetCount(list13, num4); + Span span13 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = null; + num3++; + span13[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list13; reference9 = questStep; - ref QuestStep reference10 = ref span3[4]; + index2++; + ref QuestStep reference10 = ref span9[index2]; QuestStep obj9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-142.65875f, -213.42487f, 608.63165f), 1189) { Fly = true @@ -357747,42 +434985,58 @@ public static class AssemblyQuestLoader num3 = 6; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - Span span8 = CollectionsMarshal.AsSpan(list14); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span14 = CollectionsMarshal.AsSpan(list14); + num4 = 0; + span14[num4] = null; + num4++; + span14[num4] = null; + num4++; + span14[num4] = null; + num4++; + span14[num4] = null; + num4++; + span14[num4] = null; + num4++; + span14[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list14; skipConditions4.StepIf = skipStepConditions4; obj9.SkipConditions = skipConditions4; reference10 = obj9; - ref QuestStep reference11 = ref span3[5]; + index2++; + ref QuestStep reference11 = ref span9[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1051050u, new Vector3(-143.63324f, -213.18237f, 609.0028f), 1189); - num3 = 6; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span9 = CollectionsMarshal.AsSpan(list15); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list15 = new List(num4); + CollectionsMarshal.SetCount(list15, num4); + Span span15 = CollectionsMarshal.AsSpan(list15); + num3 = 0; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = null; + num3++; + span15[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list15; reference11 = questStep2; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference12 = ref span2[2]; + num++; + ref QuestSequence reference12 = ref span7[num]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048984u, new Vector3(673.06006f, -135.17874f, 577.47766f), 1189) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048984u, new Vector3(673.06006f, -135.17874f, 577.47766f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -357796,13 +435050,16 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = "liza"; + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + span17[index] = "liza"; questRoot3.Author = list17; - num = 3; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); - Span span10 = CollectionsMarshal.AsSpan(list18); - ref QuestSequence reference13 = ref span10[0]; + index = 3; + List list18 = new List(index); + CollectionsMarshal.SetCount(list18, index); + Span span18 = CollectionsMarshal.AsSpan(list18); + num = 0; + ref QuestSequence reference13 = ref span18[num]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -357810,19 +435067,23 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048988u, new Vector3(584.4967f, -143.46597f, 648.64575f), 1189); + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048988u, new Vector3(584.4967f, -143.46597f, 648.64575f), 1189); obj11.Steps = list19; reference13 = obj11; - ref QuestSequence reference14 = ref span10[1]; + num++; + ref QuestSequence reference14 = ref span18[num]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span11 = CollectionsMarshal.AsSpan(list20); - ref QuestStep reference15 = ref span11[0]; + index2 = 4; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + ref QuestStep reference15 = ref span20[num2]; QuestStep obj13 = new QuestStep(EInteractionType.Interact, 2014369u, new Vector3(328.20618f, -157.21375f, 429.4651f), 1189) { Fly = true @@ -357830,30 +435091,44 @@ public static class AssemblyQuestLoader num3 = 6; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span12 = CollectionsMarshal.AsSpan(list21); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span21 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span21[num4] = null; + num4++; + span21[num4] = null; + num4++; + span21[num4] = null; + num4++; + span21[num4] = null; + num4++; + span21[num4] = null; + num4++; + span21[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj13.CompletionQuestVariablesFlags = list21; reference15 = obj13; - ref QuestStep reference16 = ref span11[1]; + num2++; + ref QuestStep reference16 = ref span20[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2014368u, new Vector3(323.7201f, -157.76306f, 434.19543f), 1189); - num3 = 6; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span13 = CollectionsMarshal.AsSpan(list22); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = null; + num3++; + span22[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list22; reference16 = questStep3; - ref QuestStep reference17 = ref span11[2]; + num2++; + ref QuestStep reference17 = ref span20[num2]; QuestStep obj14 = new QuestStep(EInteractionType.Interact, 2014256u, new Vector3(139.17749f, -162.24927f, 679.95715f), 1189) { Fly = true @@ -357861,32 +435136,46 @@ public static class AssemblyQuestLoader num3 = 6; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - Span span14 = CollectionsMarshal.AsSpan(list23); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span23 = CollectionsMarshal.AsSpan(list23); + num4 = 0; + span23[num4] = null; + num4++; + span23[num4] = null; + num4++; + span23[num4] = null; + num4++; + span23[num4] = null; + num4++; + span23[num4] = null; + num4++; + span23[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj14.CompletionQuestVariablesFlags = list23; reference17 = obj14; - ref QuestStep reference18 = ref span11[3]; + num2++; + ref QuestStep reference18 = ref span20[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2014257u, new Vector3(144.67078f, -163.25635f, 663.84375f), 1189); - num3 = 6; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - Span span15 = CollectionsMarshal.AsSpan(list24); - span15[0] = null; - span15[1] = null; - span15[2] = null; - span15[3] = null; - span15[4] = null; - span15[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list24 = new List(num4); + CollectionsMarshal.SetCount(list24, num4); + Span span24 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span24[num3] = null; + num3++; + span24[num3] = null; + num3++; + span24[num3] = null; + num3++; + span24[num3] = null; + num3++; + span24[num3] = null; + num3++; + span24[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list24; reference18 = questStep4; obj12.Steps = list20; reference14 = obj12; - ref QuestSequence reference19 = ref span10[2]; + num++; + ref QuestSequence reference19 = ref span18[num]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -357894,7 +435183,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048988u, new Vector3(584.4967f, -143.46597f, 648.64575f), 1189) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048988u, new Vector3(584.4967f, -143.46597f, 648.64575f), 1189) { Fly = true }; @@ -357907,24 +435198,30 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "liza"; + Span span26 = CollectionsMarshal.AsSpan(list26); + index = 0; + span26[index] = "liza"; questRoot4.Author = list26; - num = 4; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span16 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference20 = ref span16[0]; + index = 4; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + Span span27 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference20 = ref span27[num]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051052u, new Vector3(585.90063f, -142.49187f, 510.21594f), 1189); + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051052u, new Vector3(585.90063f, -142.49187f, 510.21594f), 1189); obj16.Steps = list28; reference20 = obj16; - ref QuestSequence reference21 = ref span16[1]; + num++; + ref QuestSequence reference21 = ref span27[num]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -357932,18 +435229,23 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1051066u, new Vector3(121.9043f, -172.89474f, 381.15503f), 1189); + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.Interact, 1051066u, new Vector3(121.9043f, -172.89474f, 381.15503f), 1189); obj17.Steps = list29; reference21 = obj17; - ref QuestSequence reference22 = ref span16[2]; + num++; + ref QuestSequence reference22 = ref span27[num]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list30)[0]; + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + ref QuestStep reference23 = ref span30[num2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, 2014258u, new Vector3(87.02222f, -176.1654f, 328.3894f), 1189) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -357951,12 +435253,15 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = 17676u; + Span span31 = CollectionsMarshal.AsSpan(list31); + num4 = 0; + span31[num4] = 17676u; obj19.KillEnemyDataIds = list31; reference23 = obj19; obj18.Steps = list30; reference22 = obj18; - ref QuestSequence reference24 = ref span16[3]; + num++; + ref QuestSequence reference24 = ref span27[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -357964,7 +435269,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051066u, new Vector3(121.9043f, -172.89474f, 381.15503f), 1189); + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051066u, new Vector3(121.9043f, -172.89474f, 381.15503f), 1189); obj20.Steps = list32; reference24 = obj20; questRoot4.QuestSequence = list27; @@ -357974,24 +435281,30 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; + Span span33 = CollectionsMarshal.AsSpan(list33); + index = 0; + span33[index] = "liza"; questRoot5.Author = list33; - num = 6; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span17 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference25 = ref span17[0]; + index = 6; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + Span span34 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference25 = ref span34[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048987u, new Vector3(596.97876f, -142.60623f, 441.7334f), 1189); + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048987u, new Vector3(596.97876f, -142.60623f, 441.7334f), 1189); obj21.Steps = list35; reference25 = obj21; - ref QuestSequence reference26 = ref span17[1]; + num++; + ref QuestSequence reference26 = ref span34[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 @@ -357999,15 +435312,19 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list36)[0]; + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + ref QuestStep reference27 = ref span36[index2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1051053u, new Vector3(257.1908f, -165.78062f, 146.74597f), 1189) { Fly = true }; - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = new DialogueChoice + num4 = 1; + List list37 = new List(num4); + CollectionsMarshal.SetCount(list37, num4); + Span span37 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span37[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZD105_05104_SYSTEM_100_004") @@ -358016,44 +435333,52 @@ public static class AssemblyQuestLoader reference27 = obj23; obj22.Steps = list36; reference26 = obj22; - ref QuestSequence reference28 = ref span17[2]; + num++; + ref QuestSequence reference28 = ref span34[num]; QuestSequence obj24 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span18 = CollectionsMarshal.AsSpan(list38); - span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(272.75598f, -161.77667f, 117.129616f), 1189) + index2 = 6; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(272.75598f, -161.77667f, 117.129616f), 1189) { DisableNavmesh = true, Mount = true }; - span18[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(255.7041f, -161.34225f, 101.95002f), 1189) + num2++; + span38[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(255.7041f, -161.34225f, 101.95002f), 1189) { DisableNavmesh = true }; - span18[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(218.3051f, -160.72849f, 78.95244f), 1189) + num2++; + span38[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(218.3051f, -160.72849f, 78.95244f), 1189) { DisableNavmesh = true }; - span18[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(168.0448f, -158.83824f, 31.171473f), 1189) + num2++; + span38[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(168.0448f, -158.83824f, 31.171473f), 1189) { DisableNavmesh = true }; - span18[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(144.163f, -156.25887f, -57.818764f), 1189) + num2++; + span38[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(144.163f, -156.25887f, -57.818764f), 1189) { DisableNavmesh = true }; - span18[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(83.32947f, -157.21858f, -67.64331f), 1189) + num2++; + span38[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(83.32947f, -157.21858f, -67.64331f), 1189) { StopDistance = 1f, DisableNavmesh = true }; obj24.Steps = list38; reference28 = obj24; - ref QuestSequence reference29 = ref span17[3]; + num++; + ref QuestSequence reference29 = ref span34[num]; QuestSequence obj25 = new QuestSequence { Sequence = 3 @@ -358061,25 +435386,31 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1051054u, new Vector3(83.32947f, -157.21858f, -67.64331f), 1189); + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.Interact, 1051054u, new Vector3(83.32947f, -157.21858f, -67.64331f), 1189); obj25.Steps = list39; reference29 = obj25; - ref QuestSequence reference30 = ref span17[4]; + num++; + ref QuestSequence reference30 = ref span34[num]; QuestSequence obj26 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 2014259u, new Vector3(65.049194f, -184.1612f, -70.237305f), 1189) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.Interact, 2014259u, new Vector3(65.049194f, -184.1612f, -70.237305f), 1189) { DisableNavmesh = true, Mount = false }; obj26.Steps = list40; reference30 = obj26; - ref QuestSequence reference31 = ref span17[5]; + num++; + ref QuestSequence reference31 = ref span34[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -358087,7 +435418,9 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048987u, new Vector3(596.97876f, -142.60623f, 441.7334f), 1189) + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048987u, new Vector3(596.97876f, -142.60623f, 441.7334f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -358101,24 +435434,30 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - CollectionsMarshal.AsSpan(list42)[0] = "liza"; + Span span42 = CollectionsMarshal.AsSpan(list42); + index = 0; + span42[index] = "liza"; questRoot6.Author = list42; - num = 4; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - Span span19 = CollectionsMarshal.AsSpan(list43); - ref QuestSequence reference32 = ref span19[0]; + index = 4; + List list43 = new List(index); + CollectionsMarshal.SetCount(list43, index); + Span span43 = CollectionsMarshal.AsSpan(list43); + num = 0; + ref QuestSequence reference32 = ref span43[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051055u, new Vector3(563.5918f, -144.04688f, 702.26587f), 1189); + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051055u, new Vector3(563.5918f, -144.04688f, 702.26587f), 1189); obj28.Steps = list44; reference32 = obj28; - ref QuestSequence reference33 = ref span19[1]; + num++; + ref QuestSequence reference33 = ref span43[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 @@ -358126,12 +435465,14 @@ public static class AssemblyQuestLoader num2 = 2; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span20 = CollectionsMarshal.AsSpan(list45); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-45.87303f, -174.86252f, 649.25995f), 1189) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-45.87303f, -174.86252f, 649.25995f), 1189) { Fly = true }; - ref QuestStep reference34 = ref span20[1]; + index2++; + ref QuestStep reference34 = ref span45[index2]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 1051056u, new Vector3(-49.149292f, -174.58734f, 651.4839f), 1189) { StopDistance = 5f, @@ -358140,26 +435481,35 @@ public static class AssemblyQuestLoader num3 = 6; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - Span span21 = CollectionsMarshal.AsSpan(list46); - span21[0] = null; - span21[1] = null; - span21[2] = null; - span21[3] = null; - span21[4] = null; - span21[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span46 = CollectionsMarshal.AsSpan(list46); + num4 = 0; + span46[num4] = null; + num4++; + span46[num4] = null; + num4++; + span46[num4] = null; + num4++; + span46[num4] = null; + num4++; + span46[num4] = null; + num4++; + span46[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj30.CompletionQuestVariablesFlags = list46; reference34 = obj30; obj29.Steps = list45; reference33 = obj29; - ref QuestSequence reference35 = ref span19[2]; + num++; + ref QuestSequence reference35 = ref span43[num]; QuestSequence obj31 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Say, 1051056u, new Vector3(-49.149292f, -174.58734f, 651.4839f), 1189) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.Say, 1051056u, new Vector3(-49.149292f, -174.58734f, 651.4839f), 1189) { StopDistance = 5f, ChatMessage = new ChatMessage @@ -358169,7 +435519,8 @@ public static class AssemblyQuestLoader }; obj31.Steps = list47; reference35 = obj31; - ref QuestSequence reference36 = ref span19[3]; + num++; + ref QuestSequence reference36 = ref span43[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -358177,7 +435528,9 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051055u, new Vector3(563.5918f, -144.04688f, 702.26587f), 1189) + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051055u, new Vector3(563.5918f, -144.04688f, 702.26587f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -358191,24 +435544,30 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - CollectionsMarshal.AsSpan(list49)[0] = "liza"; + Span span49 = CollectionsMarshal.AsSpan(list49); + index = 0; + span49[index] = "liza"; questRoot7.Author = list49; - num = 3; - List list50 = new List(num); - CollectionsMarshal.SetCount(list50, num); - Span span22 = CollectionsMarshal.AsSpan(list50); - ref QuestSequence reference37 = ref span22[0]; + index = 3; + List list50 = new List(index); + CollectionsMarshal.SetCount(list50, index); + Span span50 = CollectionsMarshal.AsSpan(list50); + num = 0; + ref QuestSequence reference37 = ref span50[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list51 = new List(num2); - CollectionsMarshal.SetCount(list51, num2); - CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048991u, new Vector3(211.10852f, -160.27475f, 432.4253f), 1189); + index2 = 1; + List list51 = new List(index2); + CollectionsMarshal.SetCount(list51, index2); + Span span51 = CollectionsMarshal.AsSpan(list51); + num2 = 0; + span51[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048991u, new Vector3(211.10852f, -160.27475f, 432.4253f), 1189); obj33.Steps = list51; reference37 = obj33; - ref QuestSequence reference38 = ref span22[1]; + num++; + ref QuestSequence reference38 = ref span50[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -358216,29 +435575,38 @@ public static class AssemblyQuestLoader num2 = 3; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span23 = CollectionsMarshal.AsSpan(list52); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.30347f, -195.42366f, 241.28633f), 1189) + Span span52 = CollectionsMarshal.AsSpan(list52); + index2 = 0; + span52[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.30347f, -195.42366f, 241.28633f), 1189) { Fly = true }; - ref QuestStep reference39 = ref span23[1]; + index2++; + ref QuestStep reference39 = ref span52[index2]; QuestStep obj35 = new QuestStep(EInteractionType.UseItem, 2014260u, new Vector3(177.44714f, -194.11005f, 239.61243f), 1189) { ItemId = 2003667u }; - num3 = 6; - List list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - Span span24 = CollectionsMarshal.AsSpan(list53); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list53 = new List(num4); + CollectionsMarshal.SetCount(list53, num4); + Span span53 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + span53[num3] = null; + num3++; + span53[num3] = null; + num3++; + span53[num3] = null; + num3++; + span53[num3] = null; + num3++; + span53[num3] = null; + num3++; + span53[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj35.CompletionQuestVariablesFlags = list53; reference39 = obj35; - ref QuestStep reference40 = ref span23[2]; + index2++; + ref QuestStep reference40 = ref span52[index2]; QuestStep obj36 = new QuestStep(EInteractionType.UseItem, 2014261u, new Vector3(164.47693f, -194.2627f, 237.50659f), 1189) { ItemId = 2003667u @@ -358246,26 +435614,35 @@ public static class AssemblyQuestLoader num3 = 6; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - Span span25 = CollectionsMarshal.AsSpan(list54); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span54 = CollectionsMarshal.AsSpan(list54); + num4 = 0; + span54[num4] = null; + num4++; + span54[num4] = null; + num4++; + span54[num4] = null; + num4++; + span54[num4] = null; + num4++; + span54[num4] = null; + num4++; + span54[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj36.CompletionQuestVariablesFlags = list54; reference40 = obj36; obj34.Steps = list52; reference38 = obj34; - ref QuestSequence reference41 = ref span22[2]; + num++; + ref QuestSequence reference41 = ref span50[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048991u, new Vector3(211.10852f, -160.27475f, 432.4253f), 1189) + index2 = 1; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num2 = 0; + span55[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048991u, new Vector3(211.10852f, -160.27475f, 432.4253f), 1189) { Fly = true }; @@ -358278,13 +435655,16 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - CollectionsMarshal.AsSpan(list56)[0] = "liza"; + Span span56 = CollectionsMarshal.AsSpan(list56); + index = 0; + span56[index] = "liza"; questRoot8.Author = list56; - num = 3; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span26 = CollectionsMarshal.AsSpan(list57); - ref QuestSequence reference42 = ref span26[0]; + index = 3; + List list57 = new List(index); + CollectionsMarshal.SetCount(list57, index); + Span span57 = CollectionsMarshal.AsSpan(list57); + num = 0; + ref QuestSequence reference42 = ref span57[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -358292,37 +435672,48 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048998u, new Vector3(220.29443f, -156.80957f, 457.02295f), 1189); + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048998u, new Vector3(220.29443f, -156.80957f, 457.02295f), 1189); obj38.Steps = list58; reference42 = obj38; - ref QuestSequence reference43 = ref span26[1]; + num++; + ref QuestSequence reference43 = ref span57[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - Span span27 = CollectionsMarshal.AsSpan(list59); - ref QuestStep reference44 = ref span27[0]; + index2 = 3; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + ref QuestStep reference44 = ref span59[num2]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 1051408u, new Vector3(631.2809f, -137.12654f, 509.6665f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; - num3 = 6; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span28 = CollectionsMarshal.AsSpan(list60); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list60 = new List(num4); + CollectionsMarshal.SetCount(list60, num4); + Span span60 = CollectionsMarshal.AsSpan(list60); + num3 = 0; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = null; + num3++; + span60[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj40.CompletionQuestVariablesFlags = list60; reference44 = obj40; - ref QuestStep reference45 = ref span27[1]; + num2++; + ref QuestStep reference45 = ref span59[num2]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 1048974u, new Vector3(621.51514f, -135.12726f, 531.1207f), 1189) { Fly = true @@ -358330,35 +435721,49 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span29 = CollectionsMarshal.AsSpan(list61); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span61 = CollectionsMarshal.AsSpan(list61); + num4 = 0; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = null; + num4++; + span61[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj41.CompletionQuestVariablesFlags = list61; reference45 = obj41; - ref QuestStep reference46 = ref span27[2]; + num2++; + ref QuestStep reference46 = ref span59[num2]; QuestStep obj42 = new QuestStep(EInteractionType.Interact, 1048989u, new Vector3(523.4302f, -135.12724f, 578.14905f), 1189) { Fly = true }; - num3 = 6; - List list62 = new List(num3); - CollectionsMarshal.SetCount(list62, num3); - Span span30 = CollectionsMarshal.AsSpan(list62); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + Span span62 = CollectionsMarshal.AsSpan(list62); + num3 = 0; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = null; + num3++; + span62[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj42.CompletionQuestVariablesFlags = list62; reference46 = obj42; obj39.Steps = list59; reference43 = obj39; - ref QuestSequence reference47 = ref span26[2]; + num++; + ref QuestSequence reference47 = ref span57[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue @@ -358366,7 +435771,9 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list63)[0]; + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + ref QuestStep reference48 = ref span63[index2]; QuestStep obj44 = new QuestStep(EInteractionType.CompleteQuest, 1048998u, new Vector3(220.29443f, -156.80957f, 457.02295f), 1189) { Fly = true @@ -358374,7 +435781,9 @@ public static class AssemblyQuestLoader num3 = 1; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice + Span span64 = CollectionsMarshal.AsSpan(list64); + num4 = 0; + span64[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD108_05107_Q1_000_000"), @@ -358391,27 +435800,33 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - CollectionsMarshal.AsSpan(list65)[0] = "liza"; + Span span65 = CollectionsMarshal.AsSpan(list65); + index = 0; + span65[index] = "liza"; questRoot9.Author = list65; - num = 3; - List list66 = new List(num); - CollectionsMarshal.SetCount(list66, num); - Span span31 = CollectionsMarshal.AsSpan(list66); - ref QuestSequence reference49 = ref span31[0]; + index = 3; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + Span span66 = CollectionsMarshal.AsSpan(list66); + num = 0; + ref QuestSequence reference49 = ref span66[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051067u, new Vector3(-372.70166f, -162.24626f, 546.25757f), 1189) + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051067u, new Vector3(-372.70166f, -162.24626f, 546.25757f), 1189) { Fly = true }; obj45.Steps = list67; reference49 = obj45; - ref QuestSequence reference50 = ref span31[1]; + num++; + ref QuestSequence reference50 = ref span66[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -358419,32 +435834,40 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list68)[0]; + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + ref QuestStep reference51 = ref span68[index2]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, 2014262u, new Vector3(-443.83917f, -158.1903f, 343.34326f), 1189) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 3; - List list69 = new List(num3); - CollectionsMarshal.SetCount(list69, num3); - Span span32 = CollectionsMarshal.AsSpan(list69); - span32[0] = 17743u; - span32[1] = 17744u; - span32[2] = 17745u; + num4 = 3; + List list69 = new List(num4); + CollectionsMarshal.SetCount(list69, num4); + Span span69 = CollectionsMarshal.AsSpan(list69); + num3 = 0; + span69[num3] = 17743u; + num3++; + span69[num3] = 17744u; + num3++; + span69[num3] = 17745u; obj47.KillEnemyDataIds = list69; reference51 = obj47; obj46.Steps = list68; reference50 = obj46; - ref QuestSequence reference52 = ref span31[2]; + num++; + ref QuestSequence reference52 = ref span66[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051067u, new Vector3(-372.70166f, -162.24626f, 546.25757f), 1189) + index2 = 1; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051067u, new Vector3(-372.70166f, -162.24626f, 546.25757f), 1189) { Fly = true }; @@ -358457,13 +435880,16 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - CollectionsMarshal.AsSpan(list71)[0] = "liza"; + Span span71 = CollectionsMarshal.AsSpan(list71); + index = 0; + span71[index] = "liza"; questRoot10.Author = list71; - num = 5; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span33 = CollectionsMarshal.AsSpan(list72); - ref QuestSequence reference53 = ref span33[0]; + index = 5; + List list72 = new List(index); + CollectionsMarshal.SetCount(list72, index); + Span span72 = CollectionsMarshal.AsSpan(list72); + num = 0; + ref QuestSequence reference53 = ref span72[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -358471,27 +435897,33 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048997u, new Vector3(-363.9124f, -162.23582f, 550.01135f), 1189) + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048997u, new Vector3(-363.9124f, -162.23582f, 550.01135f), 1189) { Fly = true }; obj49.Steps = list73; reference53 = obj49; - ref QuestSequence reference54 = ref span33[1]; + num++; + ref QuestSequence reference54 = ref span72[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list74 = new List(num2); - CollectionsMarshal.SetCount(list74, num2); - CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1051387u, new Vector3(-383.4745f, -166.23917f, 662.95874f), 1189) + index2 = 1; + List list74 = new List(index2); + CollectionsMarshal.SetCount(list74, index2); + Span span74 = CollectionsMarshal.AsSpan(list74); + num2 = 0; + span74[num2] = new QuestStep(EInteractionType.Interact, 1051387u, new Vector3(-383.4745f, -166.23917f, 662.95874f), 1189) { Fly = true }; obj50.Steps = list74; reference54 = obj50; - ref QuestSequence reference55 = ref span33[2]; + num++; + ref QuestSequence reference55 = ref span72[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -358499,7 +435931,9 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list75)[0]; + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + ref QuestStep reference56 = ref span75[index2]; QuestStep obj52 = new QuestStep(EInteractionType.Instruction, null, new Vector3(-433.617f, -156.24463f, 776.9229f), 1189) { Fly = true, @@ -358509,7 +435943,9 @@ public static class AssemblyQuestLoader num3 = 1; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - CollectionsMarshal.AsSpan(list76)[0] = new ComplexCombatData + Span span76 = CollectionsMarshal.AsSpan(list76); + num4 = 0; + span76[num4] = new ComplexCombatData { DataId = 17267u, MinimumKillCount = 2u, @@ -358520,21 +435956,25 @@ public static class AssemblyQuestLoader reference56 = obj52; obj51.Steps = list75; reference55 = obj51; - ref QuestSequence reference57 = ref span33[3]; + num++; + ref QuestSequence reference57 = ref span72[num]; QuestSequence obj53 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1051387u, new Vector3(-383.4745f, -166.23917f, 662.95874f), 1189) + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.Interact, 1051387u, new Vector3(-383.4745f, -166.23917f, 662.95874f), 1189) { Fly = true }; obj53.Steps = list77; reference57 = obj53; - ref QuestSequence reference58 = ref span33[4]; + num++; + ref QuestSequence reference58 = ref span72[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -358542,7 +435982,9 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048997u, new Vector3(-363.9124f, -162.23582f, 550.01135f), 1189) + Span span78 = CollectionsMarshal.AsSpan(list78); + index2 = 0; + span78[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048997u, new Vector3(-363.9124f, -162.23582f, 550.01135f), 1189) { Fly = true }; @@ -358555,26 +435997,33 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - CollectionsMarshal.AsSpan(list79)[0] = "liza"; + Span span79 = CollectionsMarshal.AsSpan(list79); + index = 0; + span79[index] = "liza"; questRoot11.Author = list79; - num = 4; - List list80 = new List(num); - CollectionsMarshal.SetCount(list80, num); - Span span34 = CollectionsMarshal.AsSpan(list80); - ref QuestSequence reference59 = ref span34[0]; + index = 4; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + Span span80 = CollectionsMarshal.AsSpan(list80); + num = 0; + ref QuestSequence reference59 = ref span80[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list81)[0]; + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + ref QuestStep reference60 = ref span81[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.AcceptQuest, 1050872u, new Vector3(-408.71295f, 20.420113f, -398.8861f), 1189); - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = new DialogueChoice + num4 = 1; + List list82 = new List(num4); + CollectionsMarshal.SetCount(list82, num4); + Span span82 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span82[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD201_05110_Q1_000_000"), @@ -358584,7 +436033,8 @@ public static class AssemblyQuestLoader reference60 = questStep5; obj55.Steps = list81; reference59 = obj55; - ref QuestSequence reference61 = ref span34[1]; + num++; + ref QuestSequence reference61 = ref span80[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -358592,18 +436042,23 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1050873u, new Vector3(-455.10034f, 17.027555f, -478.8739f), 1189); + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.Interact, 1050873u, new Vector3(-455.10034f, 17.027555f, -478.8739f), 1189); obj56.Steps = list83; reference61 = obj56; - ref QuestSequence reference62 = ref span34[2]; + num++; + ref QuestSequence reference62 = ref span80[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list84)[0]; + index2 = 1; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + ref QuestStep reference63 = ref span84[num2]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, 2014142u, new Vector3(-372.45752f, 19.33313f, -694.45337f), 1189) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -358611,12 +436066,15 @@ public static class AssemblyQuestLoader num3 = 1; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - CollectionsMarshal.AsSpan(list85)[0] = 17668u; + Span span85 = CollectionsMarshal.AsSpan(list85); + num4 = 0; + span85[num4] = 17668u; obj58.KillEnemyDataIds = list85; reference63 = obj58; obj57.Steps = list84; reference62 = obj57; - ref QuestSequence reference64 = ref span34[3]; + num++; + ref QuestSequence reference64 = ref span80[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -358624,12 +436082,14 @@ public static class AssemblyQuestLoader num2 = 2; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span35 = CollectionsMarshal.AsSpan(list86); - span35[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013947u, new Vector3(-184.74103f, 22.934265f, -751.6747f), 1189) + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013947u, new Vector3(-184.74103f, 22.934265f, -751.6747f), 1189) { AetherCurrentId = 2818439u }; - span35[1] = new QuestStep(EInteractionType.CompleteQuest, 1050873u, new Vector3(-455.10034f, 17.027555f, -478.8739f), 1189) + index2++; + span86[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050873u, new Vector3(-455.10034f, 17.027555f, -478.8739f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -358642,21 +436102,26 @@ public static class AssemblyQuestLoader num = 1; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - CollectionsMarshal.AsSpan(list87)[0] = "liza"; + Span span87 = CollectionsMarshal.AsSpan(list87); + index = 0; + span87[index] = "liza"; questRoot12.Author = list87; - num = 4; - List list88 = new List(num); - CollectionsMarshal.SetCount(list88, num); - Span span36 = CollectionsMarshal.AsSpan(list88); - ref QuestSequence reference65 = ref span36[0]; + index = 4; + List list88 = new List(index); + CollectionsMarshal.SetCount(list88, index); + Span span88 = CollectionsMarshal.AsSpan(list88); + num = 0; + ref QuestSequence reference65 = ref span88[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050873u, new Vector3(-455.10034f, 17.027555f, -478.8739f), 1189) + index2 = 1; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + span89[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050873u, new Vector3(-455.10034f, 17.027555f, -478.8739f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -358674,7 +436139,8 @@ public static class AssemblyQuestLoader }; obj60.Steps = list89; reference65 = obj60; - ref QuestSequence reference66 = ref span36[1]; + num++; + ref QuestSequence reference66 = ref span88[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 @@ -358682,39 +436148,50 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1050874u, new Vector3(-508.87314f, 29.61908f, -350.1183f), 1189) + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.Interact, 1050874u, new Vector3(-508.87314f, 29.61908f, -350.1183f), 1189) { Fly = true }; obj61.Steps = list90; reference66 = obj61; - ref QuestSequence reference67 = ref span36[2]; + num++; + ref QuestSequence reference67 = ref span88[num]; QuestSequence obj62 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - Span span37 = CollectionsMarshal.AsSpan(list91); - ref QuestStep reference68 = ref span37[0]; + index2 = 2; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + ref QuestStep reference68 = ref span91[num2]; QuestStep obj63 = new QuestStep(EInteractionType.Interact, 1050876u, new Vector3(-455.92438f, 30.374397f, -423.148f), 1189) { Fly = true }; - num3 = 6; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span38 = CollectionsMarshal.AsSpan(list92); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list92 = new List(num4); + CollectionsMarshal.SetCount(list92, num4); + Span span92 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj63.CompletionQuestVariablesFlags = list92; reference68 = obj63; - ref QuestStep reference69 = ref span37[1]; + num2++; + ref QuestStep reference69 = ref span91[num2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1050875u, new Vector3(-391.01245f, 28.068893f, -365.0111f), 1189) { Fly = true @@ -358722,18 +436199,25 @@ public static class AssemblyQuestLoader num3 = 6; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - Span span39 = CollectionsMarshal.AsSpan(list93); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span93 = CollectionsMarshal.AsSpan(list93); + num4 = 0; + span93[num4] = null; + num4++; + span93[num4] = null; + num4++; + span93[num4] = null; + num4++; + span93[num4] = null; + num4++; + span93[num4] = null; + num4++; + span93[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj64.CompletionQuestVariablesFlags = list93; reference69 = obj64; obj62.Steps = list91; reference67 = obj62; - ref QuestSequence reference70 = ref span36[3]; + num++; + ref QuestSequence reference70 = ref span88[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -358741,7 +436225,9 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050874u, new Vector3(-508.87314f, 29.61908f, -350.1183f), 1189) + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050874u, new Vector3(-508.87314f, 29.61908f, -350.1183f), 1189) { Fly = true, NextQuestId = new QuestId(5112) @@ -358755,21 +436241,26 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = "liza"; + Span span95 = CollectionsMarshal.AsSpan(list95); + index = 0; + span95[index] = "liza"; questRoot13.Author = list95; - num = 4; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - Span span40 = CollectionsMarshal.AsSpan(list96); - ref QuestSequence reference71 = ref span40[0]; + index = 4; + List list96 = new List(index); + CollectionsMarshal.SetCount(list96, index); + Span span96 = CollectionsMarshal.AsSpan(list96); + num = 0; + ref QuestSequence reference71 = ref span96[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list97)[0]; + index2 = 1; + List list97 = new List(index2); + CollectionsMarshal.SetCount(list97, index2); + Span span97 = CollectionsMarshal.AsSpan(list97); + num2 = 0; + ref QuestStep reference72 = ref span97[num2]; QuestStep obj67 = new QuestStep(EInteractionType.AcceptQuest, 1050874u, new Vector3(-508.87314f, 29.61908f, -350.1183f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, @@ -358786,10 +436277,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list98 = new List(num3); - CollectionsMarshal.SetCount(list98, num3); - CollectionsMarshal.AsSpan(list98)[0] = new DialogueChoice + num4 = 1; + List list98 = new List(num4); + CollectionsMarshal.SetCount(list98, num4); + Span span98 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span98[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD203_05112_Q1_000_000"), @@ -358799,7 +436292,8 @@ public static class AssemblyQuestLoader reference72 = obj67; obj66.Steps = list97; reference71 = obj66; - ref QuestSequence reference73 = ref span40[1]; + num++; + ref QuestSequence reference73 = ref span96[num]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -358807,25 +436301,31 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1050877u, new Vector3(-39.871887f, 0.35915944f, -312.1233f), 1189) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.Interact, 1050877u, new Vector3(-39.871887f, 0.35915944f, -312.1233f), 1189) { StopDistance = 1f, Fly = true }; obj68.Steps = list99; reference73 = obj68; - ref QuestSequence reference74 = ref span40[2]; + num++; + ref QuestSequence reference74 = ref span96[num]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 2014144u, new Vector3(-43.10681f, 0.503479f, -312.36743f), 1189); + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.Interact, 2014144u, new Vector3(-43.10681f, 0.503479f, -312.36743f), 1189); obj69.Steps = list100; reference74 = obj69; - ref QuestSequence reference75 = ref span40[3]; + num++; + ref QuestSequence reference75 = ref span96[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -358833,7 +436333,9 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050878u, new Vector3(475.30322f, 18.197147f, -326.95508f), 1189) + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050878u, new Vector3(475.30322f, 18.197147f, -326.95508f), 1189) { Fly = true, NextQuestId = new QuestId(5113) @@ -358847,24 +436349,30 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - CollectionsMarshal.AsSpan(list102)[0] = "liza"; + Span span102 = CollectionsMarshal.AsSpan(list102); + index = 0; + span102[index] = "liza"; questRoot14.Author = list102; - num = 5; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span41 = CollectionsMarshal.AsSpan(list103); - ref QuestSequence reference76 = ref span41[0]; + index = 5; + List list103 = new List(index); + CollectionsMarshal.SetCount(list103, index); + Span span103 = CollectionsMarshal.AsSpan(list103); + num = 0; + ref QuestSequence reference76 = ref span103[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050878u, new Vector3(475.30322f, 18.197147f, -326.95508f), 1189); + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050878u, new Vector3(475.30322f, 18.197147f, -326.95508f), 1189); obj71.Steps = list104; reference76 = obj71; - ref QuestSequence reference77 = ref span41[1]; + num++; + ref QuestSequence reference77 = ref span103[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -358872,21 +436380,26 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1050879u, new Vector3(595.7274f, 18.8562f, -85.55737f), 1189) + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.Interact, 1050879u, new Vector3(595.7274f, 18.8562f, -85.55737f), 1189) { Fly = true }; obj72.Steps = list105; reference77 = obj72; - ref QuestSequence reference78 = ref span41[2]; + num++; + ref QuestSequence reference78 = ref span103[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list106)[0]; + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + ref QuestStep reference79 = ref span106[num2]; QuestStep obj74 = new QuestStep(EInteractionType.Combat, null, new Vector3(705.4334f, 28.302685f, 2.3153868f), 1189) { StopDistance = 1f, @@ -358896,14 +436409,17 @@ public static class AssemblyQuestLoader num3 = 2; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span42 = CollectionsMarshal.AsSpan(list107); - span42[0] = 17671u; - span42[1] = 17672u; + Span span107 = CollectionsMarshal.AsSpan(list107); + num4 = 0; + span107[num4] = 17671u; + num4++; + span107[num4] = 17672u; obj74.KillEnemyDataIds = list107; reference79 = obj74; obj73.Steps = list106; reference78 = obj73; - ref QuestSequence reference80 = ref span41[3]; + num++; + ref QuestSequence reference80 = ref span103[num]; QuestSequence obj75 = new QuestSequence { Sequence = 3 @@ -358911,21 +436427,26 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1050881u, new Vector3(595.6052f, 18.84498f, -85.55737f), 1189) + Span span108 = CollectionsMarshal.AsSpan(list108); + index2 = 0; + span108[index2] = new QuestStep(EInteractionType.Interact, 1050881u, new Vector3(595.6052f, 18.84498f, -85.55737f), 1189) { Fly = true }; obj75.Steps = list108; reference80 = obj75; - ref QuestSequence reference81 = ref span41[4]; + num++; + ref QuestSequence reference81 = ref span103[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050882u, new Vector3(-408.31616f, 20.383144f, -399.28284f), 1189) + index2 = 1; + List list109 = new List(index2); + CollectionsMarshal.SetCount(list109, index2); + Span span109 = CollectionsMarshal.AsSpan(list109); + num2 = 0; + span109[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050882u, new Vector3(-408.31616f, 20.383144f, -399.28284f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -358938,13 +436459,16 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - CollectionsMarshal.AsSpan(list110)[0] = "liza"; + Span span110 = CollectionsMarshal.AsSpan(list110); + index = 0; + span110[index] = "liza"; questRoot15.Author = list110; - num = 4; - List list111 = new List(num); - CollectionsMarshal.SetCount(list111, num); - Span span43 = CollectionsMarshal.AsSpan(list111); - ref QuestSequence reference82 = ref span43[0]; + index = 4; + List list111 = new List(index); + CollectionsMarshal.SetCount(list111, index); + Span span111 = CollectionsMarshal.AsSpan(list111); + num = 0; + ref QuestSequence reference82 = ref span111[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -358952,7 +436476,9 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050884u, new Vector3(531.0597f, -142.49185f, 492.0271f), 1189) + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050884u, new Vector3(531.0597f, -142.49185f, 492.0271f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook, SkipConditions = new SkipConditions @@ -358970,29 +436496,35 @@ public static class AssemblyQuestLoader }; obj77.Steps = list112; reference82 = obj77; - ref QuestSequence reference83 = ref span43[1]; + num++; + ref QuestSequence reference83 = ref span111[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list113)[0]; + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + ref QuestStep reference84 = ref span113[num2]; QuestStep obj79 = new QuestStep(EInteractionType.Combat, null, new Vector3(343.74197f, -154.60175f, 328.8051f), 1189) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = 17673u; + num4 = 1; + List list114 = new List(num4); + CollectionsMarshal.SetCount(list114, num4); + Span span114 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span114[num3] = 17673u; obj79.KillEnemyDataIds = list114; reference84 = obj79; obj78.Steps = list113; reference83 = obj78; - ref QuestSequence reference85 = ref span43[2]; + num++; + ref QuestSequence reference85 = ref span111[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 @@ -359000,21 +436532,26 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1050885u, new Vector3(338.49072f, -155.05281f, 322.80444f), 1189) + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.Interact, 1050885u, new Vector3(338.49072f, -155.05281f, 322.80444f), 1189) { StopDistance = 7f }; obj80.Steps = list115; reference85 = obj80; - ref QuestSequence reference86 = ref span43[3]; + num++; + ref QuestSequence reference86 = ref span111[num]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050888u, new Vector3(515.58704f, -146.73436f, 477.0122f), 1189); + index2 = 1; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050888u, new Vector3(515.58704f, -146.73436f, 477.0122f), 1189); obj81.Steps = list116; reference86 = obj81; questRoot15.QuestSequence = list111; @@ -359024,13 +436561,16 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - CollectionsMarshal.AsSpan(list117)[0] = "liza"; + Span span117 = CollectionsMarshal.AsSpan(list117); + index = 0; + span117[index] = "liza"; questRoot16.Author = list117; - num = 4; - List list118 = new List(num); - CollectionsMarshal.SetCount(list118, num); - Span span44 = CollectionsMarshal.AsSpan(list118); - ref QuestSequence reference87 = ref span44[0]; + index = 4; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + Span span118 = CollectionsMarshal.AsSpan(list118); + num = 0; + ref QuestSequence reference87 = ref span118[num]; QuestSequence obj82 = new QuestSequence { Sequence = 0 @@ -359038,7 +436578,9 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050888u, new Vector3(515.58704f, -146.73436f, 477.0122f), 1189) + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050888u, new Vector3(515.58704f, -146.73436f, 477.0122f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -359057,16 +436599,18 @@ public static class AssemblyQuestLoader }; obj82.Steps = list119; reference87 = obj82; - ref QuestSequence reference88 = ref span44[1]; + num++; + ref QuestSequence reference88 = ref span118[num]; QuestSequence obj83 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - Span span45 = CollectionsMarshal.AsSpan(list120); - ref QuestStep reference89 = ref span45[0]; + index2 = 3; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + ref QuestStep reference89 = ref span120[num2]; QuestStep obj84 = new QuestStep(EInteractionType.Combat, 2014147u, new Vector3(440.66528f, -150.77448f, 427.7256f), 1189) { Fly = true, @@ -359075,21 +436619,30 @@ public static class AssemblyQuestLoader num3 = 1; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = 17674u; + Span span121 = CollectionsMarshal.AsSpan(list121); + num4 = 0; + span121[num4] = 17674u; obj84.KillEnemyDataIds = list121; - num3 = 6; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - Span span46 = CollectionsMarshal.AsSpan(list122); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list122 = new List(num4); + CollectionsMarshal.SetCount(list122, num4); + Span span122 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + span122[num3] = null; + num3++; + span122[num3] = null; + num3++; + span122[num3] = null; + num3++; + span122[num3] = null; + num3++; + span122[num3] = null; + num3++; + span122[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj84.CompletionQuestVariablesFlags = list122; reference89 = obj84; - ref QuestStep reference90 = ref span45[1]; + num2++; + ref QuestStep reference90 = ref span120[num2]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, 2014148u, new Vector3(395.4679f, -152.42242f, 372.7931f), 1189) { Fly = true, @@ -359098,21 +436651,30 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 17674u; + Span span123 = CollectionsMarshal.AsSpan(list123); + num4 = 0; + span123[num4] = 17674u; obj85.KillEnemyDataIds = list123; - num3 = 6; - List list124 = new List(num3); - CollectionsMarshal.SetCount(list124, num3); - Span span47 = CollectionsMarshal.AsSpan(list124); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list124 = new List(num4); + CollectionsMarshal.SetCount(list124, num4); + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = null; + num3++; + span124[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj85.CompletionQuestVariablesFlags = list124; reference90 = obj85; - ref QuestStep reference91 = ref span45[2]; + num2++; + ref QuestStep reference91 = ref span120[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 2014149u, new Vector3(267.9026f, -160.05188f, 354.45166f), 1189) { Fly = true @@ -359120,18 +436682,25 @@ public static class AssemblyQuestLoader num3 = 6; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - Span span48 = CollectionsMarshal.AsSpan(list125); - span48[0] = null; - span48[1] = null; - span48[2] = null; - span48[3] = null; - span48[4] = null; - span48[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span125 = CollectionsMarshal.AsSpan(list125); + num4 = 0; + span125[num4] = null; + num4++; + span125[num4] = null; + num4++; + span125[num4] = null; + num4++; + span125[num4] = null; + num4++; + span125[num4] = null; + num4++; + span125[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj86.CompletionQuestVariablesFlags = list125; reference91 = obj86; obj83.Steps = list120; reference88 = obj83; - ref QuestSequence reference92 = ref span44[2]; + num++; + ref QuestSequence reference92 = ref span118[num]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -359139,21 +436708,26 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 2014150u, new Vector3(236.95728f, -167.52887f, 307.97278f), 1189) + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span126[index2] = new QuestStep(EInteractionType.Interact, 2014150u, new Vector3(236.95728f, -167.52887f, 307.97278f), 1189) { Fly = true }; obj87.Steps = list126; reference92 = obj87; - ref QuestSequence reference93 = ref span44[3]; + num++; + ref QuestSequence reference93 = ref span118[num]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050890u, new Vector3(661.7991f, -137.174f, 557.76294f), 1189) + index2 = 1; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050890u, new Vector3(661.7991f, -137.174f, 557.76294f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -359168,13 +436742,16 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - CollectionsMarshal.AsSpan(list128)[0] = "liza"; + Span span128 = CollectionsMarshal.AsSpan(list128); + index = 0; + span128[index] = "liza"; questRoot17.Author = list128; - num = 4; - List list129 = new List(num); - CollectionsMarshal.SetCount(list129, num); - Span span49 = CollectionsMarshal.AsSpan(list129); - ref QuestSequence reference94 = ref span49[0]; + index = 4; + List list129 = new List(index); + CollectionsMarshal.SetCount(list129, index); + Span span129 = CollectionsMarshal.AsSpan(list129); + num = 0; + ref QuestSequence reference94 = ref span129[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -359182,24 +436759,30 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189); + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + span130[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189); obj89.Steps = list130; reference94 = obj89; - ref QuestSequence reference95 = ref span49[1]; + num++; + ref QuestSequence reference95 = ref span129[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1048985u, new Vector3(583.33704f, -143.60632f, 703.7612f), 1189) + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + span131[num2] = new QuestStep(EInteractionType.Interact, 1048985u, new Vector3(583.33704f, -143.60632f, 703.7612f), 1189) { Fly = true }; obj90.Steps = list131; reference95 = obj90; - ref QuestSequence reference96 = ref span49[2]; + num++; + ref QuestSequence reference96 = ref span129[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -359207,23 +436790,28 @@ public static class AssemblyQuestLoader num2 = 2; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span50 = CollectionsMarshal.AsSpan(list132); - span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-61.729744f, -212.69492f, 523.0088f), 1189) + Span span132 = CollectionsMarshal.AsSpan(list132); + index2 = 0; + span132[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-61.729744f, -212.69492f, 523.0088f), 1189) { Fly = true }; - span50[1] = new QuestStep(EInteractionType.Interact, 2014151u, new Vector3(-60.95984f, -210.83392f, 522.02637f), 1189); + index2++; + span132[index2] = new QuestStep(EInteractionType.Interact, 2014151u, new Vector3(-60.95984f, -210.83392f, 522.02637f), 1189); obj91.Steps = list132; reference96 = obj91; - ref QuestSequence reference97 = ref span49[3]; + num++; + ref QuestSequence reference97 = ref span129[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) + index2 = 1; + List list133 = new List(index2); + CollectionsMarshal.SetCount(list133, index2); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -359238,13 +436826,16 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - CollectionsMarshal.AsSpan(list134)[0] = "liza"; + Span span134 = CollectionsMarshal.AsSpan(list134); + index = 0; + span134[index] = "liza"; questRoot18.Author = list134; - num = 3; - List list135 = new List(num); - CollectionsMarshal.SetCount(list135, num); - Span span51 = CollectionsMarshal.AsSpan(list135); - ref QuestSequence reference98 = ref span51[0]; + index = 3; + List list135 = new List(index); + CollectionsMarshal.SetCount(list135, index); + Span span135 = CollectionsMarshal.AsSpan(list135); + num = 0; + ref QuestSequence reference98 = ref span135[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -359252,38 +436843,49 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189); + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span136[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189); obj93.Steps = list136; reference98 = obj93; - ref QuestSequence reference99 = ref span51[1]; + num++; + ref QuestSequence reference99 = ref span135[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - Span span52 = CollectionsMarshal.AsSpan(list137); - ref QuestStep reference100 = ref span52[0]; + index2 = 2; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + ref QuestStep reference100 = ref span137[num2]; QuestStep obj95 = new QuestStep(EInteractionType.UseItem, 2014153u, new Vector3(500.5111f, -150.04199f, 704.12744f), 1189) { Fly = true, ItemId = 2003624u, GroundTarget = true }; - num3 = 6; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span53 = CollectionsMarshal.AsSpan(list138); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list138 = new List(num4); + CollectionsMarshal.SetCount(list138, num4); + Span span138 = CollectionsMarshal.AsSpan(list138); + num3 = 0; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = null; + num3++; + span138[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj95.CompletionQuestVariablesFlags = list138; reference100 = obj95; - ref QuestStep reference101 = ref span52[1]; + num2++; + ref QuestStep reference101 = ref span137[num2]; QuestStep obj96 = new QuestStep(EInteractionType.UseItem, 2014152u, new Vector3(486.90015f, -150.04199f, 355.8556f), 1189) { Fly = true, @@ -359293,18 +436895,25 @@ public static class AssemblyQuestLoader num3 = 6; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - Span span54 = CollectionsMarshal.AsSpan(list139); - span54[0] = null; - span54[1] = null; - span54[2] = null; - span54[3] = null; - span54[4] = null; - span54[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span139 = CollectionsMarshal.AsSpan(list139); + num4 = 0; + span139[num4] = null; + num4++; + span139[num4] = null; + num4++; + span139[num4] = null; + num4++; + span139[num4] = null; + num4++; + span139[num4] = null; + num4++; + span139[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list139; reference101 = obj96; obj94.Steps = list137; reference99 = obj94; - ref QuestSequence reference102 = ref span51[2]; + num++; + ref QuestSequence reference102 = ref span135[num]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue @@ -359312,7 +436921,9 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -359327,24 +436938,30 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "liza"; + Span span141 = CollectionsMarshal.AsSpan(list141); + index = 0; + span141[index] = "liza"; questRoot19.Author = list141; - num = 11; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span55 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference103 = ref span55[0]; + index = 11; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + Span span142 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference103 = ref span142[num]; QuestSequence obj98 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189); + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + Span span143 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span143[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189); obj98.Steps = list143; reference103 = obj98; - ref QuestSequence reference104 = ref span55[1]; + num++; + ref QuestSequence reference104 = ref span142[num]; QuestSequence obj99 = new QuestSequence { Sequence = 1 @@ -359352,15 +436969,19 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - ref QuestStep reference105 = ref CollectionsMarshal.AsSpan(list144)[0]; + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + ref QuestStep reference105 = ref span144[index2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1050897u, new Vector3(755.94714f, -132.59648f, 505.94324f), 1189) { Fly = true }; - num3 = 1; - List list145 = new List(num3); - CollectionsMarshal.SetCount(list145, num3); - CollectionsMarshal.AsSpan(list145)[0] = new DialogueChoice + num4 = 1; + List list145 = new List(num4); + CollectionsMarshal.SetCount(list145, num4); + Span span145 = CollectionsMarshal.AsSpan(list145); + num3 = 0; + span145[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD401_05118_Q1_000_000"), @@ -359370,21 +436991,25 @@ public static class AssemblyQuestLoader reference105 = obj100; obj99.Steps = list144; reference104 = obj99; - ref QuestSequence reference106 = ref span55[2]; + num++; + ref QuestSequence reference106 = ref span142[num]; QuestSequence obj101 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list146 = new List(num2); - CollectionsMarshal.SetCount(list146, num2); - CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) + index2 = 1; + List list146 = new List(index2); + CollectionsMarshal.SetCount(list146, index2); + Span span146 = CollectionsMarshal.AsSpan(list146); + num2 = 0; + span146[num2] = new QuestStep(EInteractionType.Interact, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) { Fly = true }; obj101.Steps = list146; reference106 = obj101; - ref QuestSequence reference107 = ref span55[3]; + num++; + ref QuestSequence reference107 = ref span142[num]; QuestSequence obj102 = new QuestSequence { Sequence = 3 @@ -359392,8 +437017,9 @@ public static class AssemblyQuestLoader num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span56 = CollectionsMarshal.AsSpan(list147); - ref QuestStep reference108 = ref span56[0]; + Span span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + ref QuestStep reference108 = ref span147[index2]; QuestStep obj103 = new QuestStep(EInteractionType.Interact, 1050901u, new Vector3(627.25244f, -137.174f, 591.8517f), 1189) { Fly = true @@ -359401,46 +437027,63 @@ public static class AssemblyQuestLoader num3 = 6; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - Span span57 = CollectionsMarshal.AsSpan(list148); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span148 = CollectionsMarshal.AsSpan(list148); + num4 = 0; + span148[num4] = null; + num4++; + span148[num4] = null; + num4++; + span148[num4] = null; + num4++; + span148[num4] = null; + num4++; + span148[num4] = null; + num4++; + span148[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj103.CompletionQuestVariablesFlags = list148; reference108 = obj103; - ref QuestStep reference109 = ref span56[1]; + index2++; + ref QuestStep reference109 = ref span147[index2]; QuestStep obj104 = new QuestStep(EInteractionType.Interact, 1050900u, new Vector3(575.55493f, -137.174f, 540.0929f), 1189) { Fly = true }; - num3 = 6; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - Span span58 = CollectionsMarshal.AsSpan(list149); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list149 = new List(num4); + CollectionsMarshal.SetCount(list149, num4); + Span span149 = CollectionsMarshal.AsSpan(list149); + num3 = 0; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj104.CompletionQuestVariablesFlags = list149; reference109 = obj104; obj102.Steps = list147; reference107 = obj102; - ref QuestSequence reference110 = ref span55[4]; + num++; + ref QuestSequence reference110 = ref span142[num]; QuestSequence obj105 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1048989u, new Vector3(523.4302f, -135.12724f, 578.14905f), 1189); + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.Interact, 1048989u, new Vector3(523.4302f, -135.12724f, 578.14905f), 1189); obj105.Steps = list150; reference110 = obj105; - ref QuestSequence reference111 = ref span55[5]; + num++; + ref QuestSequence reference111 = ref span142[num]; QuestSequence obj106 = new QuestSequence { Sequence = 5 @@ -359448,27 +437091,33 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.Interact, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) { Fly = true }; obj106.Steps = list151; reference111 = obj106; - ref QuestSequence reference112 = ref span55[6]; + num++; + ref QuestSequence reference112 = ref span142[num]; QuestSequence obj107 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1050904u, new Vector3(263.84375f, -157.31726f, 738.6129f), 1189) + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + span152[num2] = new QuestStep(EInteractionType.Interact, 1050904u, new Vector3(263.84375f, -157.31726f, 738.6129f), 1189) { Fly = true }; obj107.Steps = list152; reference112 = obj107; - ref QuestSequence reference113 = ref span55[7]; + num++; + ref QuestSequence reference113 = ref span142[num]; QuestSequence obj108 = new QuestSequence { Sequence = 7 @@ -359476,22 +437125,27 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.UseItem, 2014154u, new Vector3(255.9701f, -150.68292f, 807.64465f), 1189) + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.UseItem, 2014154u, new Vector3(255.9701f, -150.68292f, 807.64465f), 1189) { Fly = true, ItemId = 2003625u }; obj108.Steps = list153; reference113 = obj108; - ref QuestSequence reference114 = ref span55[8]; + num++; + ref QuestSequence reference114 = ref span142[num]; QuestSequence obj109 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - ref QuestStep reference115 = ref CollectionsMarshal.AsSpan(list154)[0]; + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + ref QuestStep reference115 = ref span154[num2]; QuestStep obj110 = new QuestStep(EInteractionType.Combat, 2014248u, new Vector3(255.9701f, -150.68292f, 807.64465f), 1189) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -359499,12 +437153,15 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - CollectionsMarshal.AsSpan(list155)[0] = 17675u; + Span span155 = CollectionsMarshal.AsSpan(list155); + num4 = 0; + span155[num4] = 17675u; obj110.KillEnemyDataIds = list155; reference115 = obj110; obj109.Steps = list154; reference114 = obj109; - ref QuestSequence reference116 = ref span55[9]; + num++; + ref QuestSequence reference116 = ref span142[num]; QuestSequence obj111 = new QuestSequence { Sequence = 9 @@ -359512,21 +437169,26 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1050904u, new Vector3(263.84375f, -157.31726f, 738.6129f), 1189) + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new QuestStep(EInteractionType.Interact, 1050904u, new Vector3(263.84375f, -157.31726f, 738.6129f), 1189) { Fly = true }; obj111.Steps = list156; reference116 = obj111; - ref QuestSequence reference117 = ref span55[10]; + num++; + ref QuestSequence reference117 = ref span142[num]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050903u, new Vector3(663.9962f, -137.17401f, 554.589f), 1189) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span157[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050903u, new Vector3(663.9962f, -137.17401f, 554.589f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -359540,13 +437202,16 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - CollectionsMarshal.AsSpan(list158)[0] = "liza"; + Span span158 = CollectionsMarshal.AsSpan(list158); + index = 0; + span158[index] = "liza"; questRoot20.Author = list158; - num = 5; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - Span span59 = CollectionsMarshal.AsSpan(list159); - ref QuestSequence reference118 = ref span59[0]; + index = 5; + List list159 = new List(index); + CollectionsMarshal.SetCount(list159, index); + Span span159 = CollectionsMarshal.AsSpan(list159); + num = 0; + ref QuestSequence reference118 = ref span159[num]; QuestSequence obj113 = new QuestSequence { Sequence = 0 @@ -359554,18 +437219,23 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190); + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190); obj113.Steps = list160; reference118 = obj113; - ref QuestSequence reference119 = ref span59[1]; + num++; + ref QuestSequence reference119 = ref span159[num]; QuestSequence obj114 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1050706u, new Vector3(248.27954f, 15.999974f, 746.4866f), 1190) + index2 = 1; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + Span span161 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + span161[num2] = new QuestStep(EInteractionType.Interact, 1050706u, new Vector3(248.27954f, 15.999974f, 746.4866f), 1190) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -359576,7 +437246,8 @@ public static class AssemblyQuestLoader }; obj114.Steps = list161; reference119 = obj114; - ref QuestSequence reference120 = ref span59[2]; + num++; + ref QuestSequence reference120 = ref span159[num]; QuestSequence obj115 = new QuestSequence { Sequence = 2 @@ -359584,24 +437255,30 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 2014065u, new Vector3(250.04956f, 16.281311f, 744.3502f), 1190) + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = new QuestStep(EInteractionType.Interact, 2014065u, new Vector3(250.04956f, 16.281311f, 744.3502f), 1190) { StopDistance = 4f }; obj115.Steps = list162; reference120 = obj115; - ref QuestSequence reference121 = ref span59[3]; + num++; + ref QuestSequence reference121 = ref span159[num]; QuestSequence obj116 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 2014073u, new Vector3(379.65967f, 0.19836426f, 419.6383f), 1190); + index2 = 1; + List list163 = new List(index2); + CollectionsMarshal.SetCount(list163, index2); + Span span163 = CollectionsMarshal.AsSpan(list163); + num2 = 0; + span163[num2] = new QuestStep(EInteractionType.Interact, 2014073u, new Vector3(379.65967f, 0.19836426f, 419.6383f), 1190); obj116.Steps = list163; reference121 = obj116; - ref QuestSequence reference122 = ref span59[4]; + num++; + ref QuestSequence reference122 = ref span159[num]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -359609,7 +437286,9 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190); + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + span164[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190); obj117.Steps = list164; reference122 = obj117; questRoot20.QuestSequence = list159; @@ -359619,24 +437298,30 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - CollectionsMarshal.AsSpan(list165)[0] = "liza"; + Span span165 = CollectionsMarshal.AsSpan(list165); + index = 0; + span165[index] = "liza"; questRoot21.Author = list165; - num = 4; - List list166 = new List(num); - CollectionsMarshal.SetCount(list166, num); - Span span60 = CollectionsMarshal.AsSpan(list166); - ref QuestSequence reference123 = ref span60[0]; + index = 4; + List list166 = new List(index); + CollectionsMarshal.SetCount(list166, index); + Span span166 = CollectionsMarshal.AsSpan(list166); + num = 0; + ref QuestSequence reference123 = ref span166[num]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049285u, new Vector3(372.70154f, -0.26279598f, 425.55872f), 1190); + index2 = 1; + List list167 = new List(index2); + CollectionsMarshal.SetCount(list167, index2); + Span span167 = CollectionsMarshal.AsSpan(list167); + num2 = 0; + span167[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049285u, new Vector3(372.70154f, -0.26279598f, 425.55872f), 1190); obj118.Steps = list167; reference123 = obj118; - ref QuestSequence reference124 = ref span60[1]; + num++; + ref QuestSequence reference124 = ref span166[num]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -359644,36 +437329,47 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 2014074u, new Vector3(323.44543f, -0.6867676f, 488.2428f), 1190); + Span span168 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span168[index2] = new QuestStep(EInteractionType.Interact, 2014074u, new Vector3(323.44543f, -0.6867676f, 488.2428f), 1190); obj119.Steps = list168; reference124 = obj119; - ref QuestSequence reference125 = ref span60[2]; + num++; + ref QuestSequence reference125 = ref span166[num]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - Span span61 = CollectionsMarshal.AsSpan(list169); - ref QuestStep reference126 = ref span61[0]; + index2 = 5; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + Span span169 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + ref QuestStep reference126 = ref span169[num2]; QuestStep obj121 = new QuestStep(EInteractionType.UseItem, 1050639u, new Vector3(377.92017f, -0.2627951f, 432.48633f), 1190) { ItemId = 2003580u }; - num3 = 6; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - Span span62 = CollectionsMarshal.AsSpan(list170); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list170 = new List(num4); + CollectionsMarshal.SetCount(list170, num4); + Span span170 = CollectionsMarshal.AsSpan(list170); + num3 = 0; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = null; + num3++; + span170[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj121.CompletionQuestVariablesFlags = list170; reference126 = obj121; - ref QuestStep reference127 = ref span61[1]; + num2++; + ref QuestStep reference127 = ref span169[num2]; QuestStep obj122 = new QuestStep(EInteractionType.UseItem, 1050638u, new Vector3(368.42908f, -0.26279587f, 419.69934f), 1190) { ItemId = 2003580u @@ -359681,40 +437377,56 @@ public static class AssemblyQuestLoader num3 = 6; List list171 = new List(num3); CollectionsMarshal.SetCount(list171, num3); - Span span63 = CollectionsMarshal.AsSpan(list171); - span63[0] = null; - span63[1] = null; - span63[2] = null; - span63[3] = null; - span63[4] = null; - span63[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span171 = CollectionsMarshal.AsSpan(list171); + num4 = 0; + span171[num4] = null; + num4++; + span171[num4] = null; + num4++; + span171[num4] = null; + num4++; + span171[num4] = null; + num4++; + span171[num4] = null; + num4++; + span171[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj122.CompletionQuestVariablesFlags = list171; reference127 = obj122; - span61[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190); - span61[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190) + num2++; + span169[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190); + num2++; + span169[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190) { DisableNavmesh = true }; - ref QuestStep reference128 = ref span61[4]; + num2++; + ref QuestStep reference128 = ref span169[num2]; QuestStep obj123 = new QuestStep(EInteractionType.UseItem, 1050640u, new Vector3(377.03516f, 6.07724f, 423.02576f), 1190) { ItemId = 2003580u }; - num3 = 6; - List list172 = new List(num3); - CollectionsMarshal.SetCount(list172, num3); - Span span64 = CollectionsMarshal.AsSpan(list172); - span64[0] = null; - span64[1] = null; - span64[2] = null; - span64[3] = null; - span64[4] = null; - span64[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list172 = new List(num4); + CollectionsMarshal.SetCount(list172, num4); + Span span172 = CollectionsMarshal.AsSpan(list172); + num3 = 0; + span172[num3] = null; + num3++; + span172[num3] = null; + num3++; + span172[num3] = null; + num3++; + span172[num3] = null; + num3++; + span172[num3] = null; + num3++; + span172[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj123.CompletionQuestVariablesFlags = list172; reference128 = obj123; obj120.Steps = list169; reference125 = obj120; - ref QuestSequence reference129 = ref span60[3]; + num++; + ref QuestSequence reference129 = ref span166[num]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -359722,13 +437434,16 @@ public static class AssemblyQuestLoader num2 = 3; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span65 = CollectionsMarshal.AsSpan(list173); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190); - span65[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190) + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190); + index2++; + span173[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190) { DisableNavmesh = true }; - span65[2] = new QuestStep(EInteractionType.CompleteQuest, 1049285u, new Vector3(372.70154f, -0.26279598f, 425.55872f), 1190); + index2++; + span173[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049285u, new Vector3(372.70154f, -0.26279598f, 425.55872f), 1190); obj124.Steps = list173; reference129 = obj124; questRoot21.QuestSequence = list166; @@ -359738,24 +437453,30 @@ public static class AssemblyQuestLoader num = 1; List list174 = new List(num); CollectionsMarshal.SetCount(list174, num); - CollectionsMarshal.AsSpan(list174)[0] = "liza"; + Span span174 = CollectionsMarshal.AsSpan(list174); + index = 0; + span174[index] = "liza"; questRoot22.Author = list174; - num = 3; - List list175 = new List(num); - CollectionsMarshal.SetCount(list175, num); - Span span66 = CollectionsMarshal.AsSpan(list175); - ref QuestSequence reference130 = ref span66[0]; + index = 3; + List list175 = new List(index); + CollectionsMarshal.SetCount(list175, index); + Span span175 = CollectionsMarshal.AsSpan(list175); + num = 0; + ref QuestSequence reference130 = ref span175[num]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049289u, new Vector3(347.37158f, -0.8616793f, 503.04407f), 1190); + index2 = 1; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + Span span176 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span176[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049289u, new Vector3(347.37158f, -0.8616793f, 503.04407f), 1190); obj125.Steps = list176; reference130 = obj125; - ref QuestSequence reference131 = ref span66[1]; + num++; + ref QuestSequence reference131 = ref span175[num]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -359763,8 +437484,9 @@ public static class AssemblyQuestLoader num2 = 4; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span67 = CollectionsMarshal.AsSpan(list177); - ref QuestStep reference132 = ref span67[0]; + Span span177 = CollectionsMarshal.AsSpan(list177); + index2 = 0; + ref QuestStep reference132 = ref span177[index2]; QuestStep obj127 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(363.75098f, -0.25793338f, 435.93985f), 1190) { Fly = true @@ -359774,77 +437496,107 @@ public static class AssemblyQuestLoader num3 = 6; List list178 = new List(num3); CollectionsMarshal.SetCount(list178, num3); - Span span68 = CollectionsMarshal.AsSpan(list178); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span178 = CollectionsMarshal.AsSpan(list178); + num4 = 0; + span178[num4] = null; + num4++; + span178[num4] = null; + num4++; + span178[num4] = null; + num4++; + span178[num4] = null; + num4++; + span178[num4] = null; + num4++; + span178[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list178; skipConditions5.StepIf = skipStepConditions5; obj127.SkipConditions = skipConditions5; reference132 = obj127; - ref QuestStep reference133 = ref span67[1]; + index2++; + ref QuestStep reference133 = ref span177[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190); - num3 = 6; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - Span span69 = CollectionsMarshal.AsSpan(list179); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list179 = new List(num4); + CollectionsMarshal.SetCount(list179, num4); + Span span179 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list179; reference133 = questStep6; - ref QuestStep reference134 = ref span67[2]; + index2++; + ref QuestStep reference134 = ref span177[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(363.75098f, -0.25793338f, 435.93985f), 1190); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); num3 = 6; List list180 = new List(num3); CollectionsMarshal.SetCount(list180, num3); - Span span70 = CollectionsMarshal.AsSpan(list180); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span180 = CollectionsMarshal.AsSpan(list180); + num4 = 0; + span180[num4] = null; + num4++; + span180[num4] = null; + num4++; + span180[num4] = null; + num4++; + span180[num4] = null; + num4++; + span180[num4] = null; + num4++; + span180[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list180; skipConditions6.StepIf = skipStepConditions6; questStep7.SkipConditions = skipConditions6; reference134 = questStep7; - ref QuestStep reference135 = ref span67[3]; + index2++; + ref QuestStep reference135 = ref span177[index2]; QuestStep obj128 = new QuestStep(EInteractionType.Interact, 1049275u, new Vector3(267.44482f, 10.96981f, 659.4796f), 1190) { Fly = true }; - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span71 = CollectionsMarshal.AsSpan(list181); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list181 = new List(num4); + CollectionsMarshal.SetCount(list181, num4); + Span span181 = CollectionsMarshal.AsSpan(list181); + num3 = 0; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj128.CompletionQuestVariablesFlags = list181; reference135 = obj128; obj126.Steps = list177; reference131 = obj126; - ref QuestSequence reference136 = ref span66[2]; + num++; + ref QuestSequence reference136 = ref span175[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049289u, new Vector3(347.37158f, -0.8616793f, 503.04407f), 1190) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049289u, new Vector3(347.37158f, -0.8616793f, 503.04407f), 1190) { Fly = true }; @@ -359857,13 +437609,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "liza"; + Span span183 = CollectionsMarshal.AsSpan(list183); + index = 0; + span183[index] = "liza"; questRoot23.Author = list183; - num = 4; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span72 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference137 = ref span72[0]; + index = 4; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + Span span184 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference137 = ref span184[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -359871,25 +437626,31 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049286u, new Vector3(347.46313f, -2.0447416f, 397.177f), 1190); + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049286u, new Vector3(347.46313f, -2.0447416f, 397.177f), 1190); obj130.Steps = list185; reference137 = obj130; - ref QuestSequence reference138 = ref span72[1]; + num++; + ref QuestSequence reference138 = ref span184[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list186 = new List(num2); - CollectionsMarshal.SetCount(list186, num2); - CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.UseItem, 2014043u, new Vector3(416.3119f, 7.248047f, 217.73096f), 1190) + index2 = 1; + List list186 = new List(index2); + CollectionsMarshal.SetCount(list186, index2); + Span span186 = CollectionsMarshal.AsSpan(list186); + num2 = 0; + span186[num2] = new QuestStep(EInteractionType.UseItem, 2014043u, new Vector3(416.3119f, 7.248047f, 217.73096f), 1190) { Fly = true, ItemId = 2003581u }; obj131.Steps = list186; reference138 = obj131; - ref QuestSequence reference139 = ref span72[2]; + num++; + ref QuestSequence reference139 = ref span184[num]; QuestSequence obj132 = new QuestSequence { Sequence = 2 @@ -359897,7 +437658,9 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - ref QuestStep reference140 = ref CollectionsMarshal.AsSpan(list187)[0]; + Span span187 = CollectionsMarshal.AsSpan(list187); + index2 = 0; + ref QuestStep reference140 = ref span187[index2]; QuestStep obj133 = new QuestStep(EInteractionType.Combat, 2014044u, new Vector3(415.7931f, 7.4005737f, 229.0531f), 1190) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -359905,20 +437668,25 @@ public static class AssemblyQuestLoader num3 = 1; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - CollectionsMarshal.AsSpan(list188)[0] = 17733u; + Span span188 = CollectionsMarshal.AsSpan(list188); + num4 = 0; + span188[num4] = 17733u; obj133.KillEnemyDataIds = list188; reference140 = obj133; obj132.Steps = list187; reference139 = obj132; - ref QuestSequence reference141 = ref span72[3]; + num++; + ref QuestSequence reference141 = ref span184[num]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049286u, new Vector3(347.46313f, -2.0447416f, 397.177f), 1190) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049286u, new Vector3(347.46313f, -2.0447416f, 397.177f), 1190) { Fly = true }; @@ -359931,13 +437699,16 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "liza"; + Span span190 = CollectionsMarshal.AsSpan(list190); + index = 0; + span190[index] = "liza"; questRoot24.Author = list190; - num = 7; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - Span span73 = CollectionsMarshal.AsSpan(list191); - ref QuestSequence reference142 = ref span73[0]; + index = 7; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + Span span191 = CollectionsMarshal.AsSpan(list191); + num = 0; + ref QuestSequence reference142 = ref span191[num]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -359945,24 +437716,30 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049287u, new Vector3(342.61072f, -1.0227159f, 482.2307f), 1190); + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049287u, new Vector3(342.61072f, -1.0227159f, 482.2307f), 1190); obj135.Steps = list192; reference142 = obj135; - ref QuestSequence reference143 = ref span73[1]; + num++; + ref QuestSequence reference143 = ref span191[num]; QuestSequence obj136 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Emote, 1049288u, new Vector3(333.2417f, -1.1408321f, 478.47717f), 1190) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.Emote, 1049288u, new Vector3(333.2417f, -1.1408321f, 478.47717f), 1190) { Emote = EEmote.Pet }; obj136.Steps = list193; reference143 = obj136; - ref QuestSequence reference144 = ref span73[2]; + num++; + ref QuestSequence reference144 = ref span191[num]; QuestSequence obj137 = new QuestSequence { Sequence = 2 @@ -359970,21 +437747,27 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1049288u, new Vector3(333.2417f, -1.1408321f, 478.47717f), 1190); + Span span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = new QuestStep(EInteractionType.Interact, 1049288u, new Vector3(333.2417f, -1.1408321f, 478.47717f), 1190); obj137.Steps = list194; reference144 = obj137; - ref QuestSequence reference145 = ref span73[3]; + num++; + ref QuestSequence reference145 = ref span191[num]; QuestSequence obj138 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1049287u, new Vector3(342.61072f, -1.0227159f, 482.2307f), 1190); + index2 = 1; + List list195 = new List(index2); + CollectionsMarshal.SetCount(list195, index2); + Span span195 = CollectionsMarshal.AsSpan(list195); + num2 = 0; + span195[num2] = new QuestStep(EInteractionType.Interact, 1049287u, new Vector3(342.61072f, -1.0227159f, 482.2307f), 1190); obj138.Steps = list195; reference145 = obj138; - ref QuestSequence reference146 = ref span73[4]; + num++; + ref QuestSequence reference146 = ref span191[num]; QuestSequence obj139 = new QuestSequence { Sequence = 4 @@ -359992,21 +437775,27 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 2014045u, new Vector3(341.1764f, 0.1373291f, 457.969f), 1190); + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span196[index2] = new QuestStep(EInteractionType.Interact, 2014045u, new Vector3(341.1764f, 0.1373291f, 457.969f), 1190); obj139.Steps = list196; reference146 = obj139; - ref QuestSequence reference147 = ref span73[5]; + num++; + ref QuestSequence reference147 = ref span191[num]; QuestSequence obj140 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1049288u, new Vector3(333.2417f, -1.1408321f, 478.47717f), 1190); + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span197[num2] = new QuestStep(EInteractionType.Interact, 1049288u, new Vector3(333.2417f, -1.1408321f, 478.47717f), 1190); obj140.Steps = list197; reference147 = obj140; - ref QuestSequence reference148 = ref span73[6]; + num++; + ref QuestSequence reference148 = ref span191[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue @@ -360014,7 +437803,9 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049287u, new Vector3(342.61072f, -1.0227159f, 482.2307f), 1190); + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + span198[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049287u, new Vector3(342.61072f, -1.0227159f, 482.2307f), 1190); obj141.Steps = list198; reference148 = obj141; questRoot24.QuestSequence = list191; @@ -360024,24 +437815,30 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - CollectionsMarshal.AsSpan(list199)[0] = "liza"; + Span span199 = CollectionsMarshal.AsSpan(list199); + index = 0; + span199[index] = "liza"; questRoot25.Author = list199; - num = 4; - List list200 = new List(num); - CollectionsMarshal.SetCount(list200, num); - Span span74 = CollectionsMarshal.AsSpan(list200); - ref QuestSequence reference149 = ref span74[0]; + index = 4; + List list200 = new List(index); + CollectionsMarshal.SetCount(list200, index); + Span span200 = CollectionsMarshal.AsSpan(list200); + num = 0; + ref QuestSequence reference149 = ref span200[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049407u, new Vector3(267.01758f, 15.999971f, 770.8705f), 1190); + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span201[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049407u, new Vector3(267.01758f, 15.999971f, 770.8705f), 1190); obj142.Steps = list201; reference149 = obj142; - ref QuestSequence reference150 = ref span74[1]; + num++; + ref QuestSequence reference150 = ref span200[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 @@ -360049,44 +437846,58 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190) + Span span202 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span202[index2] = new QuestStep(EInteractionType.Interact, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi }; obj143.Steps = list202; reference150 = obj143; - ref QuestSequence reference151 = ref span74[2]; + num++; + ref QuestSequence reference151 = ref span200[num]; QuestSequence obj144 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - Span span75 = CollectionsMarshal.AsSpan(list203); - span75[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190); - span75[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190) + index2 = 4; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190); + num2++; + span203[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190) { DisableNavmesh = true }; - ref QuestStep reference152 = ref span75[2]; + num2++; + ref QuestStep reference152 = ref span203[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1050718u, new Vector3(365.5603f, 5.957231f, 424.58215f), 1190); - num3 = 6; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - Span span76 = CollectionsMarshal.AsSpan(list204); - span76[0] = null; - span76[1] = null; - span76[2] = null; - span76[3] = null; - span76[4] = null; - span76[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list204 = new List(num4); + CollectionsMarshal.SetCount(list204, num4); + Span span204 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span204[num3] = null; + num3++; + span204[num3] = null; + num3++; + span204[num3] = null; + num3++; + span204[num3] = null; + num3++; + span204[num3] = null; + num3++; + span204[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list204; reference152 = questStep8; - span75[3] = new QuestStep(EInteractionType.Interact, 1050719u, new Vector3(384.51196f, -1.5122339f, 383.6881f), 1190); + num2++; + span203[num2] = new QuestStep(EInteractionType.Interact, 1050719u, new Vector3(384.51196f, -1.5122339f, 383.6881f), 1190); obj144.Steps = list203; reference151 = obj144; - ref QuestSequence reference153 = ref span74[3]; + num++; + ref QuestSequence reference153 = ref span200[num]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue @@ -360094,7 +437905,9 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049407u, new Vector3(267.01758f, 15.999971f, 770.8705f), 1190) + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049407u, new Vector3(267.01758f, 15.999971f, 770.8705f), 1190) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -360112,24 +437925,30 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "liza"; + Span span206 = CollectionsMarshal.AsSpan(list206); + index = 0; + span206[index] = "liza"; questRoot26.Author = list206; - num = 3; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span77 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference154 = ref span77[0]; + index = 3; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + Span span207 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference154 = ref span207[num]; QuestSequence obj146 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049373u, new Vector3(-375.66187f, 18.211061f, -114.21387f), 1190); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049373u, new Vector3(-375.66187f, 18.211061f, -114.21387f), 1190); obj146.Steps = list208; reference154 = obj146; - ref QuestSequence reference155 = ref span77[1]; + num++; + ref QuestSequence reference155 = ref span207[num]; QuestSequence obj147 = new QuestSequence { Sequence = 1 @@ -360137,7 +437956,9 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - ref QuestStep reference156 = ref CollectionsMarshal.AsSpan(list209)[0]; + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + ref QuestStep reference156 = ref span209[index2]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, 2014075u, new Vector3(-446.06702f, 17.868286f, 34.286987f), 1190) { Fly = true, @@ -360146,20 +437967,25 @@ public static class AssemblyQuestLoader num3 = 1; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = 17734u; + Span span210 = CollectionsMarshal.AsSpan(list210); + num4 = 0; + span210[num4] = 17734u; obj148.KillEnemyDataIds = list210; reference156 = obj148; obj147.Steps = list209; reference155 = obj147; - ref QuestSequence reference157 = ref span77[2]; + num++; + ref QuestSequence reference157 = ref span207[num]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049373u, new Vector3(-375.66187f, 18.211061f, -114.21387f), 1190) + index2 = 1; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + Span span211 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + span211[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049373u, new Vector3(-375.66187f, 18.211061f, -114.21387f), 1190) { Fly = true }; @@ -360172,13 +437998,16 @@ public static class AssemblyQuestLoader num = 1; List list212 = new List(num); CollectionsMarshal.SetCount(list212, num); - CollectionsMarshal.AsSpan(list212)[0] = "liza"; + Span span212 = CollectionsMarshal.AsSpan(list212); + index = 0; + span212[index] = "liza"; questRoot27.Author = list212; - num = 3; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - Span span78 = CollectionsMarshal.AsSpan(list213); - ref QuestSequence reference158 = ref span78[0]; + index = 3; + List list213 = new List(index); + CollectionsMarshal.SetCount(list213, index); + Span span213 = CollectionsMarshal.AsSpan(list213); + num = 0; + ref QuestSequence reference158 = ref span213[num]; QuestSequence obj150 = new QuestSequence { Sequence = 0 @@ -360186,24 +438015,30 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049374u, new Vector3(-345.2049f, 18.198153f, -163.50049f), 1190); + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049374u, new Vector3(-345.2049f, 18.198153f, -163.50049f), 1190); obj150.Steps = list214; reference158 = obj150; - ref QuestSequence reference159 = ref span78[1]; + num++; + ref QuestSequence reference159 = ref span213[num]; QuestSequence obj151 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Snipe, 2014046u, new Vector3(-344.65558f, 18.051392f, -141.92426f), 1190) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.Snipe, 2014046u, new Vector3(-344.65558f, 18.051392f, -141.92426f), 1190) { Comment = "Click (from left to right) pump, middle of the connecting pipes, barrels" }; obj151.Steps = list215; reference159 = obj151; - ref QuestSequence reference160 = ref span78[2]; + num++; + ref QuestSequence reference160 = ref span213[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue @@ -360211,25 +438046,30 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list216)[0]; + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + ref QuestStep reference161 = ref span216[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.CompleteQuest, 1049374u, new Vector3(-345.2049f, 18.198153f, -163.50049f), 1190); - num3 = 3; - List list217 = new List(num3); - CollectionsMarshal.SetCount(list217, num3); - Span span79 = CollectionsMarshal.AsSpan(list217); - span79[0] = new DialogueChoice + num4 = 3; + List list217 = new List(num4); + CollectionsMarshal.SetCount(list217, num4); + Span span217 = CollectionsMarshal.AsSpan(list217); + num3 = 0; + span217[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE008_05126_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGZE008_05126_A1_000_001") }; - span79[1] = new DialogueChoice + num3++; + span217[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE008_05126_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGZE008_05126_A1_000_002") }; - span79[2] = new DialogueChoice + num3++; + span217[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE008_05126_Q1_000_000"), @@ -360246,24 +438086,30 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - CollectionsMarshal.AsSpan(list218)[0] = "liza"; + Span span218 = CollectionsMarshal.AsSpan(list218); + index = 0; + span218[index] = "liza"; questRoot28.Author = list218; - num = 5; - List list219 = new List(num); - CollectionsMarshal.SetCount(list219, num); - Span span80 = CollectionsMarshal.AsSpan(list219); - ref QuestSequence reference162 = ref span80[0]; + index = 5; + List list219 = new List(index); + CollectionsMarshal.SetCount(list219, index); + Span span219 = CollectionsMarshal.AsSpan(list219); + num = 0; + ref QuestSequence reference162 = ref span219[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050641u, new Vector3(-398.6725f, 21.668707f, -168.23071f), 1190); + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span220[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050641u, new Vector3(-398.6725f, 21.668707f, -168.23071f), 1190); obj153.Steps = list220; reference162 = obj153; - ref QuestSequence reference163 = ref span80[1]; + num++; + ref QuestSequence reference163 = ref span219[num]; QuestSequence obj154 = new QuestSequence { Sequence = 1 @@ -360271,24 +438117,30 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1050641u, new Vector3(-398.6725f, 21.668707f, -168.23071f), 1190); + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span221[index2] = new QuestStep(EInteractionType.Interact, 1050641u, new Vector3(-398.6725f, 21.668707f, -168.23071f), 1190); obj154.Steps = list221; reference163 = obj154; - ref QuestSequence reference164 = ref span80[2]; + num++; + ref QuestSequence reference164 = ref span219[num]; QuestSequence obj155 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list222 = new List(num2); - CollectionsMarshal.SetCount(list222, num2); - CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1050642u, new Vector3(-290.82172f, 16.40523f, -51.041504f), 1190) + index2 = 1; + List list222 = new List(index2); + CollectionsMarshal.SetCount(list222, index2); + Span span222 = CollectionsMarshal.AsSpan(list222); + num2 = 0; + span222[num2] = new QuestStep(EInteractionType.Interact, 1050642u, new Vector3(-290.82172f, 16.40523f, -51.041504f), 1190) { Fly = true }; obj155.Steps = list222; reference164 = obj155; - ref QuestSequence reference165 = ref span80[3]; + num++; + ref QuestSequence reference165 = ref span219[num]; QuestSequence obj156 = new QuestSequence { Sequence = 3 @@ -360296,21 +438148,26 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Emote, 1050642u, new Vector3(-290.82172f, 16.40523f, -51.041504f), 1190) + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span223[index2] = new QuestStep(EInteractionType.Emote, 1050642u, new Vector3(-290.82172f, 16.40523f, -51.041504f), 1190) { Emote = EEmote.Dance }; obj156.Steps = list223; reference165 = obj156; - ref QuestSequence reference166 = ref span80[4]; + num++; + ref QuestSequence reference166 = ref span219[num]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050641u, new Vector3(-398.6725f, 21.668707f, -168.23071f), 1190) + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span224[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050641u, new Vector3(-398.6725f, 21.668707f, -168.23071f), 1190) { Fly = true }; @@ -360323,13 +438180,16 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - CollectionsMarshal.AsSpan(list225)[0] = "liza"; + Span span225 = CollectionsMarshal.AsSpan(list225); + index = 0; + span225[index] = "liza"; questRoot29.Author = list225; - num = 4; - List list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - Span span81 = CollectionsMarshal.AsSpan(list226); - ref QuestSequence reference167 = ref span81[0]; + index = 4; + List list226 = new List(index); + CollectionsMarshal.SetCount(list226, index); + Span span226 = CollectionsMarshal.AsSpan(list226); + num = 0; + ref QuestSequence reference167 = ref span226[num]; QuestSequence obj158 = new QuestSequence { Sequence = 0 @@ -360337,24 +438197,30 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050643u, new Vector3(-250.56848f, 22.956224f, -140.30676f), 1190); + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050643u, new Vector3(-250.56848f, 22.956224f, -140.30676f), 1190); obj158.Steps = list227; reference167 = obj158; - ref QuestSequence reference168 = ref span81[1]; + num++; + ref QuestSequence reference168 = ref span226[num]; QuestSequence obj159 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1050644u, new Vector3(-525.81067f, 29.416107f, -174.09027f), 1190) + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.Interact, 1050644u, new Vector3(-525.81067f, 29.416107f, -174.09027f), 1190) { Fly = true }; obj159.Steps = list228; reference168 = obj159; - ref QuestSequence reference169 = ref span81[2]; + num++; + ref QuestSequence reference169 = ref span226[num]; QuestSequence obj160 = new QuestSequence { Sequence = 2 @@ -360362,22 +438228,27 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Emote, 2014050u, new Vector3(-527.1229f, 29.526123f, -175.64667f), 1190) + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span229[index2] = new QuestStep(EInteractionType.Emote, 2014050u, new Vector3(-527.1229f, 29.526123f, -175.64667f), 1190) { StopDistance = 4f, Emote = EEmote.Respect }; obj160.Steps = list229; reference169 = obj160; - ref QuestSequence reference170 = ref span81[3]; + num++; + ref QuestSequence reference170 = ref span226[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list230 = new List(num2); - CollectionsMarshal.SetCount(list230, num2); - CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050644u, new Vector3(-525.81067f, 29.416107f, -174.09027f), 1190); + index2 = 1; + List list230 = new List(index2); + CollectionsMarshal.SetCount(list230, index2); + Span span230 = CollectionsMarshal.AsSpan(list230); + num2 = 0; + span230[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050644u, new Vector3(-525.81067f, 29.416107f, -174.09027f), 1190); obj161.Steps = list230; reference170 = obj161; questRoot29.QuestSequence = list226; @@ -360387,13 +438258,16 @@ public static class AssemblyQuestLoader num = 1; List list231 = new List(num); CollectionsMarshal.SetCount(list231, num); - CollectionsMarshal.AsSpan(list231)[0] = "liza"; + Span span231 = CollectionsMarshal.AsSpan(list231); + index = 0; + span231[index] = "liza"; questRoot30.Author = list231; - num = 3; - List list232 = new List(num); - CollectionsMarshal.SetCount(list232, num); - Span span82 = CollectionsMarshal.AsSpan(list232); - ref QuestSequence reference171 = ref span82[0]; + index = 3; + List list232 = new List(index); + CollectionsMarshal.SetCount(list232, index); + Span span232 = CollectionsMarshal.AsSpan(list232); + num = 0; + ref QuestSequence reference171 = ref span232[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -360401,24 +438275,30 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049375u, new Vector3(-318.98987f, 18.789532f, -143.26697f), 1190); + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + span233[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049375u, new Vector3(-318.98987f, 18.789532f, -143.26697f), 1190); obj162.Steps = list233; reference171 = obj162; - ref QuestSequence reference172 = ref span82[1]; + num++; + ref QuestSequence reference172 = ref span232[num]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1049323u, new Vector3(-227.49683f, -1.2980607f, 298.6648f), 1190) + index2 = 1; + List list234 = new List(index2); + CollectionsMarshal.SetCount(list234, index2); + Span span234 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span234[num2] = new QuestStep(EInteractionType.Interact, 1049323u, new Vector3(-227.49683f, -1.2980607f, 298.6648f), 1190) { Fly = true }; obj163.Steps = list234; reference172 = obj163; - ref QuestSequence reference173 = ref span82[2]; + num++; + ref QuestSequence reference173 = ref span232[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -360426,7 +438306,9 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049375u, new Vector3(-318.98987f, 18.789532f, -143.26697f), 1190) + Span span235 = CollectionsMarshal.AsSpan(list235); + index2 = 0; + span235[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049375u, new Vector3(-318.98987f, 18.789532f, -143.26697f), 1190) { Fly = true }; @@ -360439,24 +438321,30 @@ public static class AssemblyQuestLoader num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - CollectionsMarshal.AsSpan(list236)[0] = "liza"; + Span span236 = CollectionsMarshal.AsSpan(list236); + index = 0; + span236[index] = "liza"; questRoot31.Author = list236; - num = 3; - List list237 = new List(num); - CollectionsMarshal.SetCount(list237, num); - Span span83 = CollectionsMarshal.AsSpan(list237); - ref QuestSequence reference174 = ref span83[0]; + index = 3; + List list237 = new List(index); + CollectionsMarshal.SetCount(list237, index); + Span span237 = CollectionsMarshal.AsSpan(list237); + num = 0; + ref QuestSequence reference174 = ref span237[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049324u, new Vector3(-108.659546f, 4.055336f, 319.5697f), 1190); + index2 = 1; + List list238 = new List(index2); + CollectionsMarshal.SetCount(list238, index2); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + span238[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049324u, new Vector3(-108.659546f, 4.055336f, 319.5697f), 1190); obj165.Steps = list238; reference174 = obj165; - ref QuestSequence reference175 = ref span83[1]; + num++; + ref QuestSequence reference175 = ref span237[num]; QuestSequence obj166 = new QuestSequence { Sequence = 1 @@ -360464,25 +438352,30 @@ public static class AssemblyQuestLoader num2 = 2; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span84 = CollectionsMarshal.AsSpan(list239); - span84[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013958u, new Vector3(-620.3861f, -9.079163f, 323.3844f), 1190) + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013958u, new Vector3(-620.3861f, -9.079163f, 323.3844f), 1190) { AetherCurrentId = 2818455u }; - span84[1] = new QuestStep(EInteractionType.Interact, 1050645u, new Vector3(-650.0496f, -9.854074f, 327.26013f), 1190); + index2++; + span239[index2] = new QuestStep(EInteractionType.Interact, 1050645u, new Vector3(-650.0496f, -9.854074f, 327.26013f), 1190); obj166.Steps = list239; reference175 = obj166; - ref QuestSequence reference176 = ref span83[2]; + num++; + ref QuestSequence reference176 = ref span237[num]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - Span span85 = CollectionsMarshal.AsSpan(list240); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-527.3558f, -17.206274f, 443.9363f), 1190); - span85[1] = new QuestStep(EInteractionType.CompleteQuest, 1049324u, new Vector3(-108.659546f, 4.055336f, 319.5697f), 1190); + index2 = 2; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-527.3558f, -17.206274f, 443.9363f), 1190); + num2++; + span240[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049324u, new Vector3(-108.659546f, 4.055336f, 319.5697f), 1190); obj167.Steps = list240; reference176 = obj167; questRoot31.QuestSequence = list237; @@ -360492,13 +438385,16 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - CollectionsMarshal.AsSpan(list241)[0] = "liza"; + Span span241 = CollectionsMarshal.AsSpan(list241); + index = 0; + span241[index] = "liza"; questRoot32.Author = list241; - num = 4; - List list242 = new List(num); - CollectionsMarshal.SetCount(list242, num); - Span span86 = CollectionsMarshal.AsSpan(list242); - ref QuestSequence reference177 = ref span86[0]; + index = 4; + List list242 = new List(index); + CollectionsMarshal.SetCount(list242, index); + Span span242 = CollectionsMarshal.AsSpan(list242); + num = 0; + ref QuestSequence reference177 = ref span242[num]; QuestSequence obj168 = new QuestSequence { Sequence = 0 @@ -360506,18 +438402,23 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050646u, new Vector3(-150.68292f, -2.4235957f, 408.43823f), 1190); + Span span243 = CollectionsMarshal.AsSpan(list243); + index2 = 0; + span243[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050646u, new Vector3(-150.68292f, -2.4235957f, 408.43823f), 1190); obj168.Steps = list243; reference177 = obj168; - ref QuestSequence reference178 = ref span86[1]; + num++; + ref QuestSequence reference178 = ref span242[num]; QuestSequence obj169 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - ref QuestStep reference179 = ref CollectionsMarshal.AsSpan(list244)[0]; + index2 = 1; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + ref QuestStep reference179 = ref span244[num2]; QuestStep obj170 = new QuestStep(EInteractionType.Combat, null, new Vector3(-111.25304f, -27.185633f, 723.9165f), 1190) { Fly = true, @@ -360526,12 +438427,15 @@ public static class AssemblyQuestLoader num3 = 1; List list245 = new List(num3); CollectionsMarshal.SetCount(list245, num3); - CollectionsMarshal.AsSpan(list245)[0] = 17736u; + Span span245 = CollectionsMarshal.AsSpan(list245); + num4 = 0; + span245[num4] = 17736u; obj170.KillEnemyDataIds = list245; reference179 = obj170; obj169.Steps = list244; reference178 = obj169; - ref QuestSequence reference180 = ref span86[2]; + num++; + ref QuestSequence reference180 = ref span242[num]; QuestSequence obj171 = new QuestSequence { Sequence = 2 @@ -360539,21 +438443,26 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 1050647u, new Vector3(-113.93915f, -27.518993f, 725.1239f), 1190) + Span span246 = CollectionsMarshal.AsSpan(list246); + index2 = 0; + span246[index2] = new QuestStep(EInteractionType.Interact, 1050647u, new Vector3(-113.93915f, -27.518993f, 725.1239f), 1190) { StopDistance = 7f }; obj171.Steps = list246; reference180 = obj171; - ref QuestSequence reference181 = ref span86[3]; + num++; + ref QuestSequence reference181 = ref span242[num]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050648u, new Vector3(-149.34009f, -2.7338073f, 409.04858f), 1190) + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + Span span247 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span247[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050648u, new Vector3(-149.34009f, -2.7338073f, 409.04858f), 1190) { Fly = true }; @@ -360566,13 +438475,16 @@ public static class AssemblyQuestLoader num = 1; List list248 = new List(num); CollectionsMarshal.SetCount(list248, num); - CollectionsMarshal.AsSpan(list248)[0] = "liza"; + Span span248 = CollectionsMarshal.AsSpan(list248); + index = 0; + span248[index] = "liza"; questRoot33.Author = list248; - num = 3; - List list249 = new List(num); - CollectionsMarshal.SetCount(list249, num); - Span span87 = CollectionsMarshal.AsSpan(list249); - ref QuestSequence reference182 = ref span87[0]; + index = 3; + List list249 = new List(index); + CollectionsMarshal.SetCount(list249, index); + Span span249 = CollectionsMarshal.AsSpan(list249); + num = 0; + ref QuestSequence reference182 = ref span249[num]; QuestSequence obj173 = new QuestSequence { Sequence = 0 @@ -360580,41 +438492,52 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050649u, new Vector3(350.1792f, -1.6156614f, 413.0464f), 1190); + Span span250 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + span250[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050649u, new Vector3(350.1792f, -1.6156614f, 413.0464f), 1190); obj173.Steps = list250; reference182 = obj173; - ref QuestSequence reference183 = ref span87[1]; + num++; + ref QuestSequence reference183 = ref span249[num]; QuestSequence obj174 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list251 = new List(num2); - CollectionsMarshal.SetCount(list251, num2); - Span span88 = CollectionsMarshal.AsSpan(list251); - ref QuestStep reference184 = ref span88[0]; + index2 = 4; + List list251 = new List(index2); + CollectionsMarshal.SetCount(list251, index2); + Span span251 = CollectionsMarshal.AsSpan(list251); + num2 = 0; + ref QuestStep reference184 = ref span251[num2]; QuestStep obj175 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(357.06458f, 2.9521801f, 391.37265f), 1190) { Fly = true }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - Span span89 = CollectionsMarshal.AsSpan(list252); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list252 = new List(num4); + CollectionsMarshal.SetCount(list252, num4); + Span span252 = CollectionsMarshal.AsSpan(list252); + num3 = 0; + span252[num3] = null; + num3++; + span252[num3] = null; + num3++; + span252[num3] = null; + num3++; + span252[num3] = null; + num3++; + span252[num3] = null; + num3++; + span252[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list252; skipStepConditions7.Flying = ELockedSkipCondition.Locked; skipConditions7.StepIf = skipStepConditions7; obj175.SkipConditions = skipConditions7; reference184 = obj175; - ref QuestStep reference185 = ref span88[1]; + num2++; + ref QuestStep reference185 = ref span251[num2]; QuestStep obj176 = new QuestStep(EInteractionType.UseItem, 2014051u, new Vector3(334.88965f, 6.3934937f, 263.1112f), 1190) { Fly = true, @@ -360623,60 +438546,83 @@ public static class AssemblyQuestLoader num3 = 6; List list253 = new List(num3); CollectionsMarshal.SetCount(list253, num3); - Span span90 = CollectionsMarshal.AsSpan(list253); - span90[0] = null; - span90[1] = null; - span90[2] = null; - span90[3] = null; - span90[4] = null; - span90[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span253 = CollectionsMarshal.AsSpan(list253); + num4 = 0; + span253[num4] = null; + num4++; + span253[num4] = null; + num4++; + span253[num4] = null; + num4++; + span253[num4] = null; + num4++; + span253[num4] = null; + num4++; + span253[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj176.CompletionQuestVariablesFlags = list253; reference185 = obj176; - ref QuestStep reference186 = ref span88[2]; + num2++; + ref QuestStep reference186 = ref span251[num2]; QuestStep obj177 = new QuestStep(EInteractionType.Combat, 2014053u, new Vector3(440.66528f, 5.874695f, 254.93237f), 1190) { Fly = true, ItemId = 2003587u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = 17737u; + num4 = 1; + List list254 = new List(num4); + CollectionsMarshal.SetCount(list254, num4); + Span span254 = CollectionsMarshal.AsSpan(list254); + num3 = 0; + span254[num3] = 17737u; obj177.KillEnemyDataIds = list254; num3 = 6; List list255 = new List(num3); CollectionsMarshal.SetCount(list255, num3); - Span span91 = CollectionsMarshal.AsSpan(list255); - span91[0] = null; - span91[1] = null; - span91[2] = null; - span91[3] = null; - span91[4] = null; - span91[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span255 = CollectionsMarshal.AsSpan(list255); + num4 = 0; + span255[num4] = null; + num4++; + span255[num4] = null; + num4++; + span255[num4] = null; + num4++; + span255[num4] = null; + num4++; + span255[num4] = null; + num4++; + span255[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj177.CompletionQuestVariablesFlags = list255; reference186 = obj177; - ref QuestStep reference187 = ref span88[3]; + num2++; + ref QuestStep reference187 = ref span251[num2]; QuestStep obj178 = new QuestStep(EInteractionType.UseItem, 2014052u, new Vector3(545.5862f, 8.377136f, 293.01892f), 1190) { Fly = true, ItemId = 2003587u }; - num3 = 6; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - Span span92 = CollectionsMarshal.AsSpan(list256); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list256 = new List(num4); + CollectionsMarshal.SetCount(list256, num4); + Span span256 = CollectionsMarshal.AsSpan(list256); + num3 = 0; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = null; + num3++; + span256[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj178.CompletionQuestVariablesFlags = list256; reference187 = obj178; obj174.Steps = list251; reference183 = obj174; - ref QuestSequence reference188 = ref span87[2]; + num++; + ref QuestSequence reference188 = ref span249[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -360684,7 +438630,9 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050649u, new Vector3(350.1792f, -1.6156614f, 413.0464f), 1190) + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050649u, new Vector3(350.1792f, -1.6156614f, 413.0464f), 1190) { Fly = true }; @@ -360697,24 +438645,30 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - CollectionsMarshal.AsSpan(list258)[0] = "liza"; + Span span258 = CollectionsMarshal.AsSpan(list258); + index = 0; + span258[index] = "liza"; questRoot34.Author = list258; - num = 3; - List list259 = new List(num); - CollectionsMarshal.SetCount(list259, num); - Span span93 = CollectionsMarshal.AsSpan(list259); - ref QuestSequence reference189 = ref span93[0]; + index = 3; + List list259 = new List(index); + CollectionsMarshal.SetCount(list259, index); + Span span259 = CollectionsMarshal.AsSpan(list259); + num = 0; + ref QuestSequence reference189 = ref span259[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050650u, new Vector3(-375.14313f, 20.084345f, -54.825745f), 1190); + index2 = 1; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span260[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050650u, new Vector3(-375.14313f, 20.084345f, -54.825745f), 1190); obj180.Steps = list260; reference189 = obj180; - ref QuestSequence reference190 = ref span93[1]; + num++; + ref QuestSequence reference190 = ref span259[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -360722,21 +438676,26 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 2014054u, new Vector3(-756.1608f, 35.8739f, 67.52112f), 1190) + Span span261 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span261[index2] = new QuestStep(EInteractionType.Interact, 2014054u, new Vector3(-756.1608f, 35.8739f, 67.52112f), 1190) { Fly = true }; obj181.Steps = list261; reference190 = obj181; - ref QuestSequence reference191 = ref span93[2]; + num++; + ref QuestSequence reference191 = ref span259[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list262 = new List(num2); - CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050650u, new Vector3(-375.14313f, 20.084345f, -54.825745f), 1190) + index2 = 1; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + span262[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050650u, new Vector3(-375.14313f, 20.084345f, -54.825745f), 1190) { Fly = true }; @@ -360749,13 +438708,16 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - CollectionsMarshal.AsSpan(list263)[0] = "liza"; + Span span263 = CollectionsMarshal.AsSpan(list263); + index = 0; + span263[index] = "liza"; questRoot35.Author = list263; - num = 3; - List list264 = new List(num); - CollectionsMarshal.SetCount(list264, num); - Span span94 = CollectionsMarshal.AsSpan(list264); - ref QuestSequence reference192 = ref span94[0]; + index = 3; + List list264 = new List(index); + CollectionsMarshal.SetCount(list264, index); + Span span264 = CollectionsMarshal.AsSpan(list264); + num = 0; + ref QuestSequence reference192 = ref span264[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -360763,24 +438725,30 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051375u, new Vector3(376.15015f, -1.4395642f, 379.26294f), 1190); + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + span265[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051375u, new Vector3(376.15015f, -1.4395642f, 379.26294f), 1190); obj183.Steps = list265; reference192 = obj183; - ref QuestSequence reference193 = ref span94[1]; + num++; + ref QuestSequence reference193 = ref span264[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1051376u, new Vector3(420.98108f, 0.41827834f, 466.20886f), 1190) + index2 = 1; + List list266 = new List(index2); + CollectionsMarshal.SetCount(list266, index2); + Span span266 = CollectionsMarshal.AsSpan(list266); + num2 = 0; + span266[num2] = new QuestStep(EInteractionType.Interact, 1051376u, new Vector3(420.98108f, 0.41827834f, 466.20886f), 1190) { Fly = true }; obj184.Steps = list266; reference193 = obj184; - ref QuestSequence reference194 = ref span94[2]; + num++; + ref QuestSequence reference194 = ref span264[num]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -360788,7 +438756,9 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051377u, new Vector3(419.02795f, 0.2806556f, 468.43665f), 1190) + Span span267 = CollectionsMarshal.AsSpan(list267); + index2 = 0; + span267[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051377u, new Vector3(419.02795f, 0.2806556f, 468.43665f), 1190) { StopDistance = 7f }; @@ -360801,24 +438771,30 @@ public static class AssemblyQuestLoader num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - CollectionsMarshal.AsSpan(list268)[0] = "liza"; + Span span268 = CollectionsMarshal.AsSpan(list268); + index = 0; + span268[index] = "liza"; questRoot36.Author = list268; - num = 3; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - Span span95 = CollectionsMarshal.AsSpan(list269); - ref QuestSequence reference195 = ref span95[0]; + index = 3; + List list269 = new List(index); + CollectionsMarshal.SetCount(list269, index); + Span span269 = CollectionsMarshal.AsSpan(list269); + num = 0; + ref QuestSequence reference195 = ref span269[num]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list270 = new List(num2); - CollectionsMarshal.SetCount(list270, num2); - CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050651u, new Vector3(-56.10742f, 15.709401f, -259.05243f), 1190); + index2 = 1; + List list270 = new List(index2); + CollectionsMarshal.SetCount(list270, index2); + Span span270 = CollectionsMarshal.AsSpan(list270); + num2 = 0; + span270[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050651u, new Vector3(-56.10742f, 15.709401f, -259.05243f), 1190); obj186.Steps = list270; reference195 = obj186; - ref QuestSequence reference196 = ref span95[1]; + num++; + ref QuestSequence reference196 = ref span269[num]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -360826,7 +438802,9 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - ref QuestStep reference197 = ref CollectionsMarshal.AsSpan(list271)[0]; + Span span271 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + ref QuestStep reference197 = ref span271[index2]; QuestStep obj188 = new QuestStep(EInteractionType.Combat, null, new Vector3(-335.70532f, 18.652002f, -543.8954f), 1190) { Fly = true, @@ -360835,26 +438813,34 @@ public static class AssemblyQuestLoader num3 = 2; List list272 = new List(num3); CollectionsMarshal.SetCount(list272, num3); - Span span96 = CollectionsMarshal.AsSpan(list272); - ref ComplexCombatData reference198 = ref span96[0]; + Span span272 = CollectionsMarshal.AsSpan(list272); + num4 = 0; + ref ComplexCombatData reference198 = ref span272[num4]; ComplexCombatData obj189 = new ComplexCombatData { DataId = 17274u, MinimumKillCount = 2u }; - int num4 = 6; - List list273 = new List(num4); - CollectionsMarshal.SetCount(list273, num4); - Span span97 = CollectionsMarshal.AsSpan(list273); - span97[0] = null; - span97[1] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = null; + int num5 = 6; + List list273 = new List(num5); + CollectionsMarshal.SetCount(list273, num5); + Span span273 = CollectionsMarshal.AsSpan(list273); + int num6 = 0; + span273[num6] = null; + num6++; + span273[num6] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num6++; + span273[num6] = null; + num6++; + span273[num6] = null; + num6++; + span273[num6] = null; + num6++; + span273[num6] = null; obj189.CompletionQuestVariablesFlags = list273; reference198 = obj189; - span96[1] = new ComplexCombatData + num4++; + span272[num4] = new ComplexCombatData { DataId = 17738u, MinimumKillCount = 1u @@ -360863,15 +438849,18 @@ public static class AssemblyQuestLoader reference197 = obj188; obj187.Steps = list271; reference196 = obj187; - ref QuestSequence reference199 = ref span95[2]; + num++; + ref QuestSequence reference199 = ref span269[num]; QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list274 = new List(num2); - CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050651u, new Vector3(-56.10742f, 15.709401f, -259.05243f), 1190) + index2 = 1; + List list274 = new List(index2); + CollectionsMarshal.SetCount(list274, index2); + Span span274 = CollectionsMarshal.AsSpan(list274); + num2 = 0; + span274[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050651u, new Vector3(-56.10742f, 15.709401f, -259.05243f), 1190) { Fly = true }; @@ -360884,13 +438873,16 @@ public static class AssemblyQuestLoader num = 1; List list275 = new List(num); CollectionsMarshal.SetCount(list275, num); - CollectionsMarshal.AsSpan(list275)[0] = "liza"; + Span span275 = CollectionsMarshal.AsSpan(list275); + index = 0; + span275[index] = "liza"; questRoot37.Author = list275; - num = 4; - List list276 = new List(num); - CollectionsMarshal.SetCount(list276, num); - Span span98 = CollectionsMarshal.AsSpan(list276); - ref QuestSequence reference200 = ref span98[0]; + index = 4; + List list276 = new List(index); + CollectionsMarshal.SetCount(list276, index); + Span span276 = CollectionsMarshal.AsSpan(list276); + num = 0; + ref QuestSequence reference200 = ref span276[num]; QuestSequence obj191 = new QuestSequence { Sequence = 0 @@ -360898,24 +438890,29 @@ public static class AssemblyQuestLoader num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050652u, new Vector3(622.4917f, -17.334448f, -441.42828f), 1190); + Span span277 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + span277[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050652u, new Vector3(622.4917f, -17.334448f, -441.42828f), 1190); obj191.Steps = list277; reference200 = obj191; - ref QuestSequence reference201 = ref span98[1]; + num++; + ref QuestSequence reference201 = ref span276[num]; QuestSequence obj192 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - Span span99 = CollectionsMarshal.AsSpan(list278); - span99[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.5589f, -18.217268f, -243.5277f), 1190) + index2 = 2; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + Span span278 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span278[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.5589f, -18.217268f, -243.5277f), 1190) { Mount = true, Fly = true }; - span99[1] = new QuestStep(EInteractionType.UseItem, null, new Vector3(557.73425f, -71.68169f, -220.66245f), 1190) + num2++; + span278[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(557.73425f, -71.68169f, -220.66245f), 1190) { DisableNavmesh = true, Fly = true, @@ -360923,7 +438920,8 @@ public static class AssemblyQuestLoader }; obj192.Steps = list278; reference201 = obj192; - ref QuestSequence reference202 = ref span98[2]; + num++; + ref QuestSequence reference202 = ref span276[num]; QuestSequence obj193 = new QuestSequence { Sequence = 2 @@ -360931,28 +438929,33 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 2014055u, new Vector3(568.0475f, -77.16492f, -219.92828f), 1190) + Span span279 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span279[index2] = new QuestStep(EInteractionType.Interact, 2014055u, new Vector3(568.0475f, -77.16492f, -219.92828f), 1190) { DisableNavmesh = true }; obj193.Steps = list279; reference202 = obj193; - ref QuestSequence reference203 = ref span98[3]; + num++; + ref QuestSequence reference203 = ref span276[num]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - Span span100 = CollectionsMarshal.AsSpan(list280); - span100[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.5589f, -18.217268f, -243.5277f), 1190) + index2 = 2; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span280 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span280[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.5589f, -18.217268f, -243.5277f), 1190) { DisableNavmesh = true, Mount = true, Fly = true }; - span100[1] = new QuestStep(EInteractionType.CompleteQuest, 1050652u, new Vector3(622.4917f, -17.334448f, -441.42828f), 1190) + num2++; + span280[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050652u, new Vector3(622.4917f, -17.334448f, -441.42828f), 1190) { Fly = true }; @@ -360965,13 +438968,16 @@ public static class AssemblyQuestLoader num = 1; List list281 = new List(num); CollectionsMarshal.SetCount(list281, num); - CollectionsMarshal.AsSpan(list281)[0] = "liza"; + Span span281 = CollectionsMarshal.AsSpan(list281); + index = 0; + span281[index] = "liza"; questRoot38.Author = list281; - num = 4; - List list282 = new List(num); - CollectionsMarshal.SetCount(list282, num); - Span span101 = CollectionsMarshal.AsSpan(list282); - ref QuestSequence reference204 = ref span101[0]; + index = 4; + List list282 = new List(index); + CollectionsMarshal.SetCount(list282, index); + Span span282 = CollectionsMarshal.AsSpan(list282); + num = 0; + ref QuestSequence reference204 = ref span282[num]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -360979,25 +438985,31 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050653u, new Vector3(-133.74536f, 16.289755f, -285.1454f), 1190); + Span span283 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span283[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050653u, new Vector3(-133.74536f, 16.289755f, -285.1454f), 1190); obj195.Steps = list283; reference204 = obj195; - ref QuestSequence reference205 = ref span101[1]; + num++; + ref QuestSequence reference205 = ref span282[num]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1050654u, new Vector3(-509.05627f, 62.947567f, -438.68164f), 1190) + index2 = 1; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + Span span284 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + span284[num2] = new QuestStep(EInteractionType.Interact, 1050654u, new Vector3(-509.05627f, 62.947567f, -438.68164f), 1190) { StopDistance = 0.25f, Fly = true }; obj196.Steps = list284; reference205 = obj196; - ref QuestSequence reference206 = ref span101[2]; + num++; + ref QuestSequence reference206 = ref span282[num]; QuestSequence obj197 = new QuestSequence { Sequence = 2 @@ -361005,18 +439017,23 @@ public static class AssemblyQuestLoader num2 = 1; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 2014056u, new Vector3(-509.60556f, 62.91284f, -437.15576f), 1190); + Span span285 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span285[index2] = new QuestStep(EInteractionType.Interact, 2014056u, new Vector3(-509.60556f, 62.91284f, -437.15576f), 1190); obj197.Steps = list285; reference206 = obj197; - ref QuestSequence reference207 = ref span101[3]; + num++; + ref QuestSequence reference207 = ref span282[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050653u, new Vector3(-133.74536f, 16.289755f, -285.1454f), 1190) + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + Span span286 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span286[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050653u, new Vector3(-133.74536f, 16.289755f, -285.1454f), 1190) { Fly = true }; @@ -361029,13 +439046,16 @@ public static class AssemblyQuestLoader num = 1; List list287 = new List(num); CollectionsMarshal.SetCount(list287, num); - CollectionsMarshal.AsSpan(list287)[0] = "liza"; + Span span287 = CollectionsMarshal.AsSpan(list287); + index = 0; + span287[index] = "liza"; questRoot39.Author = list287; - num = 4; - List list288 = new List(num); - CollectionsMarshal.SetCount(list288, num); - Span span102 = CollectionsMarshal.AsSpan(list288); - ref QuestSequence reference208 = ref span102[0]; + index = 4; + List list288 = new List(index); + CollectionsMarshal.SetCount(list288, index); + Span span288 = CollectionsMarshal.AsSpan(list288); + num = 0; + ref QuestSequence reference208 = ref span288[num]; QuestSequence obj199 = new QuestSequence { Sequence = 0 @@ -361043,46 +439063,59 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050655u, new Vector3(289.02112f, -15.566031f, -478.78235f), 1190); + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span289[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050655u, new Vector3(289.02112f, -15.566031f, -478.78235f), 1190); obj199.Steps = list289; reference208 = obj199; - ref QuestSequence reference209 = ref span102[1]; + num++; + ref QuestSequence reference209 = ref span288[num]; QuestSequence obj200 = new QuestSequence { Sequence = 1 }; - num2 = 9; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - Span span103 = CollectionsMarshal.AsSpan(list290); - span103[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013960u, new Vector3(380.30054f, -16.983276f, -508.17123f), 1190) + index2 = 9; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + Span span290 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span290[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013960u, new Vector3(380.30054f, -16.983276f, -508.17123f), 1190) { AetherCurrentId = 2818452u }; - span103[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(616.9261f, -17.458832f, -435.18936f), 1190); - span103[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013961u, new Vector3(645.5939f, -11.7647705f, -417.65472f), 1190) + num2++; + span290[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(616.9261f, -17.458832f, -435.18936f), 1190); + num2++; + span290[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013961u, new Vector3(645.5939f, -11.7647705f, -417.65472f), 1190) { AetherCurrentId = 2818456u }; - span103[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(659.8994f, -16.525915f, -173.6375f), 1190); - span103[4] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013963u, new Vector3(658.2893f, 21.011597f, 82.993774f), 1190) + num2++; + span290[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(659.8994f, -16.525915f, -173.6375f), 1190); + num2++; + span290[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013963u, new Vector3(658.2893f, 21.011597f, 82.993774f), 1190) { AetherCurrentId = 2818458u }; - span103[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.9425f, 6.210067f, -53.1092f), 1190); - span103[6] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013962u, new Vector3(183.88635f, 11.917236f, -59.342346f), 1190) + num2++; + span290[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.9425f, 6.210067f, -53.1092f), 1190); + num2++; + span290[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013962u, new Vector3(183.88635f, 11.917236f, -59.342346f), 1190) { DisableNavmesh = true, AetherCurrentId = 2818457u }; - span103[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(290.40674f, -11.14023f, -126.13759f), 1190) + num2++; + span290[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(290.40674f, -11.14023f, -126.13759f), 1190) { DisableNavmesh = true }; - span103[8] = new QuestStep(EInteractionType.Interact, 1050656u, new Vector3(449.05762f, -17.316843f, -155.6878f), 1190); + num2++; + span290[num2] = new QuestStep(EInteractionType.Interact, 1050656u, new Vector3(449.05762f, -17.316843f, -155.6878f), 1190); obj200.Steps = list290; reference209 = obj200; - ref QuestSequence reference210 = ref span102[2]; + num++; + ref QuestSequence reference210 = ref span288[num]; QuestSequence obj201 = new QuestSequence { Sequence = 2 @@ -361090,54 +439123,64 @@ public static class AssemblyQuestLoader num2 = 7; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span104 = CollectionsMarshal.AsSpan(list291); - span104[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(400.57977f, -18.2f, -244.50037f), 1190) + Span span291 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span291[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(400.57977f, -18.2f, -244.50037f), 1190) { Mount = false, Sprint = false }; - span104[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.76282f, -18.2f, -293.1074f), 1190) + index2++; + span291[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.76282f, -18.2f, -293.1074f), 1190) { DelaySecondsAtStart = 3f, Mount = false, Sprint = false }; - span104[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(370.89987f, -18.2f, -351.861f), 1190) + index2++; + span291[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(370.89987f, -18.2f, -351.861f), 1190) { DelaySecondsAtStart = 3f, Mount = false, Sprint = false }; - span104[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.1876f, -18.2f, -381.36987f), 1190) + index2++; + span291[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.1876f, -18.2f, -381.36987f), 1190) { DelaySecondsAtStart = 3f, Mount = false, Sprint = false }; - span104[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.26978f, -18.2f, -454.76865f), 1190) + index2++; + span291[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.26978f, -18.2f, -454.76865f), 1190) { Mount = false, Sprint = false }; - span104[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17739u, new Vector3(287.58667f, -15.274292f, -476.0052f), 1190) + index2++; + span291[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17739u, new Vector3(287.58667f, -15.274292f, -476.0052f), 1190) { StopDistance = 0.25f, NpcWaitDistance = 4f, Mount = false, Sprint = false }; - span104[6] = new QuestStep(EInteractionType.Interact, 2014057u, new Vector3(287.58667f, -15.274292f, -476.0052f), 1190); + index2++; + span291[index2] = new QuestStep(EInteractionType.Interact, 2014057u, new Vector3(287.58667f, -15.274292f, -476.0052f), 1190); obj201.Steps = list291; reference210 = obj201; - ref QuestSequence reference211 = ref span102[3]; + num++; + ref QuestSequence reference211 = ref span288[num]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050655u, new Vector3(289.02112f, -15.566031f, -478.78235f), 1190) + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + Span span292 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span292[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050655u, new Vector3(289.02112f, -15.566031f, -478.78235f), 1190) { StopDistance = 5f }; @@ -361150,13 +439193,16 @@ public static class AssemblyQuestLoader num = 1; List list293 = new List(num); CollectionsMarshal.SetCount(list293, num); - CollectionsMarshal.AsSpan(list293)[0] = "liza"; + Span span293 = CollectionsMarshal.AsSpan(list293); + index = 0; + span293[index] = "liza"; questRoot40.Author = list293; - num = 4; - List list294 = new List(num); - CollectionsMarshal.SetCount(list294, num); - Span span105 = CollectionsMarshal.AsSpan(list294); - ref QuestSequence reference212 = ref span105[0]; + index = 4; + List list294 = new List(index); + CollectionsMarshal.SetCount(list294, index); + Span span294 = CollectionsMarshal.AsSpan(list294); + num = 0; + ref QuestSequence reference212 = ref span294[num]; QuestSequence obj203 = new QuestSequence { Sequence = 0 @@ -361164,25 +439210,31 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050702u, new Vector3(267.3838f, -16.116768f, -495.71985f), 1190); + Span span295 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span295[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050702u, new Vector3(267.3838f, -16.116768f, -495.71985f), 1190); obj203.Steps = list295; reference212 = obj203; - ref QuestSequence reference213 = ref span105[1]; + num++; + ref QuestSequence reference213 = ref span294[num]; QuestSequence obj204 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.Interact, 1050703u, new Vector3(387.9911f, -1.4394518f, 373.95276f), 1190) + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span296 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span296[num2] = new QuestStep(EInteractionType.Interact, 1050703u, new Vector3(387.9911f, -1.4394518f, 373.95276f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi }; obj204.Steps = list296; reference213 = obj204; - ref QuestSequence reference214 = ref span105[2]; + num++; + ref QuestSequence reference214 = ref span294[num]; QuestSequence obj205 = new QuestSequence { Sequence = 2 @@ -361190,18 +439242,23 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 2014058u, new Vector3(389.7306f, -1.1139526f, 368.8258f), 1190); + Span span297 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span297[index2] = new QuestStep(EInteractionType.Interact, 2014058u, new Vector3(389.7306f, -1.1139526f, 368.8258f), 1190); obj205.Steps = list297; reference214 = obj205; - ref QuestSequence reference215 = ref span105[3]; + num++; + ref QuestSequence reference215 = ref span294[num]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050702u, new Vector3(267.3838f, -16.116768f, -495.71985f), 1190) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + Span span298 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span298[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050702u, new Vector3(267.3838f, -16.116768f, -495.71985f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan }; @@ -361214,13 +439271,16 @@ public static class AssemblyQuestLoader num = 1; List list299 = new List(num); CollectionsMarshal.SetCount(list299, num); - CollectionsMarshal.AsSpan(list299)[0] = "liza"; + Span span299 = CollectionsMarshal.AsSpan(list299); + index = 0; + span299[index] = "liza"; questRoot41.Author = list299; - num = 5; - List list300 = new List(num); - CollectionsMarshal.SetCount(list300, num); - Span span106 = CollectionsMarshal.AsSpan(list300); - ref QuestSequence reference216 = ref span106[0]; + index = 5; + List list300 = new List(index); + CollectionsMarshal.SetCount(list300, index); + Span span300 = CollectionsMarshal.AsSpan(list300); + num = 0; + ref QuestSequence reference216 = ref span300[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -361228,24 +439288,30 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051283u, new Vector3(374.19702f, -0.24794838f, 437.2472f), 1190); + Span span301 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + span301[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051283u, new Vector3(374.19702f, -0.24794838f, 437.2472f), 1190); obj207.Steps = list301; reference216 = obj207; - ref QuestSequence reference217 = ref span106[1]; + num++; + ref QuestSequence reference217 = ref span300[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1051284u, new Vector3(362.84424f, 5.937199f, 427.2068f), 1190) + index2 = 1; + List list302 = new List(index2); + CollectionsMarshal.SetCount(list302, index2); + Span span302 = CollectionsMarshal.AsSpan(list302); + num2 = 0; + span302[num2] = new QuestStep(EInteractionType.Interact, 1051284u, new Vector3(362.84424f, 5.937199f, 427.2068f), 1190) { Mount = true }; obj208.Steps = list302; reference217 = obj208; - ref QuestSequence reference218 = ref span106[2]; + num++; + ref QuestSequence reference218 = ref span300[num]; QuestSequence obj209 = new QuestSequence { Sequence = 2 @@ -361253,30 +439319,37 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.Interact, 1051284u, new Vector3(362.84424f, 5.937199f, 427.2068f), 1190); + Span span303 = CollectionsMarshal.AsSpan(list303); + index2 = 0; + span303[index2] = new QuestStep(EInteractionType.Interact, 1051284u, new Vector3(362.84424f, 5.937199f, 427.2068f), 1190); obj209.Steps = list303; reference218 = obj209; - ref QuestSequence reference219 = ref span106[3]; + num++; + ref QuestSequence reference219 = ref span300[num]; QuestSequence obj210 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - Span span107 = CollectionsMarshal.AsSpan(list304); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190) + index2 = 3; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + Span span304 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + span304[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190) { Mount = true }; - span107[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190) + num2++; + span304[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190) { DisableNavmesh = true }; - span107[2] = new QuestStep(EInteractionType.Interact, 1051286u, new Vector3(272.72437f, -4.5877395f, 464.042f), 1190); + num2++; + span304[num2] = new QuestStep(EInteractionType.Interact, 1051286u, new Vector3(272.72437f, -4.5877395f, 464.042f), 1190); obj210.Steps = list304; reference219 = obj210; - ref QuestSequence reference220 = ref span106[4]; + num++; + ref QuestSequence reference220 = ref span300[num]; QuestSequence obj211 = new QuestSequence { Sequence = byte.MaxValue @@ -361284,7 +439357,9 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051286u, new Vector3(272.72437f, -4.5877395f, 464.042f), 1190) + Span span305 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span305[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051286u, new Vector3(272.72437f, -4.5877395f, 464.042f), 1190) { Emote = EEmote.Flex }; @@ -361297,24 +439372,30 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - CollectionsMarshal.AsSpan(list306)[0] = "liza"; + Span span306 = CollectionsMarshal.AsSpan(list306); + index = 0; + span306[index] = "liza"; questRoot42.Author = list306; - num = 3; - List list307 = new List(num); - CollectionsMarshal.SetCount(list307, num); - Span span108 = CollectionsMarshal.AsSpan(list307); - ref QuestSequence reference221 = ref span108[0]; + index = 3; + List list307 = new List(index); + CollectionsMarshal.SetCount(list307, index); + Span span307 = CollectionsMarshal.AsSpan(list307); + num = 0; + ref QuestSequence reference221 = ref span307[num]; QuestSequence obj212 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051288u, new Vector3(274.52502f, -4.49502f, 463.5537f), 1190); + index2 = 1; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + Span span308 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span308[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051288u, new Vector3(274.52502f, -4.49502f, 463.5537f), 1190); obj212.Steps = list308; reference221 = obj212; - ref QuestSequence reference222 = ref span108[1]; + num++; + ref QuestSequence reference222 = ref span307[num]; QuestSequence obj213 = new QuestSequence { Sequence = 1 @@ -361322,7 +439403,9 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 1051289u, new Vector3(246.57043f, 15.999963f, 761.2573f), 1190) + Span span309 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span309[index2] = new QuestStep(EInteractionType.Interact, 1051289u, new Vector3(246.57043f, 15.999963f, 761.2573f), 1190) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -361333,20 +439416,25 @@ public static class AssemblyQuestLoader }; obj213.Steps = list309; reference222 = obj213; - ref QuestSequence reference223 = ref span108[2]; + num++; + ref QuestSequence reference223 = ref span307[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - ref QuestStep reference224 = ref CollectionsMarshal.AsSpan(list310)[0]; + index2 = 1; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + Span span310 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + ref QuestStep reference224 = ref span310[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.CompleteQuest, 1051293u, new Vector3(245.89917f, 15.999965f, 758.1139f), 1190); - num3 = 1; - List list311 = new List(num3); - CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = new DialogueChoice + num4 = 1; + List list311 = new List(num4); + CollectionsMarshal.SetCount(list311, num4); + Span span311 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span311[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE202_05141_Q1_000_000"), @@ -361364,13 +439452,16 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - CollectionsMarshal.AsSpan(list312)[0] = "liza"; + Span span312 = CollectionsMarshal.AsSpan(list312); + index = 0; + span312[index] = "liza"; questRoot43.Author = list312; - num = 4; - List list313 = new List(num); - CollectionsMarshal.SetCount(list313, num); - Span span109 = CollectionsMarshal.AsSpan(list313); - ref QuestSequence reference225 = ref span109[0]; + index = 4; + List list313 = new List(index); + CollectionsMarshal.SetCount(list313, index); + Span span313 = CollectionsMarshal.AsSpan(list313); + num = 0; + ref QuestSequence reference225 = ref span313[num]; QuestSequence obj215 = new QuestSequence { Sequence = 0 @@ -361378,25 +439469,31 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051293u, new Vector3(245.89917f, 15.999965f, 758.1139f), 1190); + Span span314 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span314[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051293u, new Vector3(245.89917f, 15.999965f, 758.1139f), 1190); obj215.Steps = list314; reference225 = obj215; - ref QuestSequence reference226 = ref span109[1]; + num++; + ref QuestSequence reference226 = ref span313[num]; QuestSequence obj216 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1051294u, new Vector3(279.92664f, -4.184075f, 461.53955f), 1190) + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + Span span315 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span315[num2] = new QuestStep(EInteractionType.Interact, 1051294u, new Vector3(279.92664f, -4.184075f, 461.53955f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi }; obj216.Steps = list315; reference226 = obj216; - ref QuestSequence reference227 = ref span109[2]; + num++; + ref QuestSequence reference227 = ref span313[num]; QuestSequence obj217 = new QuestSequence { Sequence = 2 @@ -361404,8 +439501,9 @@ public static class AssemblyQuestLoader num2 = 6; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span110 = CollectionsMarshal.AsSpan(list316); - ref QuestStep reference228 = ref span110[0]; + Span span316 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + ref QuestStep reference228 = ref span316[index2]; QuestStep obj218 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(450.56f, 7.0377436f, 489.10336f), 1190) { Fly = true @@ -361415,37 +439513,51 @@ public static class AssemblyQuestLoader num3 = 6; List list317 = new List(num3); CollectionsMarshal.SetCount(list317, num3); - Span span111 = CollectionsMarshal.AsSpan(list317); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span317 = CollectionsMarshal.AsSpan(list317); + num4 = 0; + span317[num4] = null; + num4++; + span317[num4] = null; + num4++; + span317[num4] = null; + num4++; + span317[num4] = null; + num4++; + span317[num4] = null; + num4++; + span317[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions8.CompletionQuestVariablesFlags = list317; skipStepConditions8.Flying = ELockedSkipCondition.Locked; skipConditions8.StepIf = skipStepConditions8; obj218.SkipConditions = skipConditions8; reference228 = obj218; - ref QuestStep reference229 = ref span110[1]; + index2++; + ref QuestStep reference229 = ref span316[index2]; QuestStep obj219 = new QuestStep(EInteractionType.Emote, 1051297u, new Vector3(470.84766f, 2.6501055f, 478.08032f), 1190) { Fly = true, Emote = EEmote.Dance }; - num3 = 6; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - Span span112 = CollectionsMarshal.AsSpan(list318); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list318 = new List(num4); + CollectionsMarshal.SetCount(list318, num4); + Span span318 = CollectionsMarshal.AsSpan(list318); + num3 = 0; + span318[num3] = null; + num3++; + span318[num3] = null; + num3++; + span318[num3] = null; + num3++; + span318[num3] = null; + num3++; + span318[num3] = null; + num3++; + span318[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj219.CompletionQuestVariablesFlags = list318; reference229 = obj219; - ref QuestStep reference230 = ref span110[2]; + index2++; + ref QuestStep reference230 = ref span316[index2]; QuestStep obj220 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(364.1419f, 5.9295864f, 435.2963f), 1190) { Fly = true @@ -361455,83 +439567,113 @@ public static class AssemblyQuestLoader num3 = 6; List list319 = new List(num3); CollectionsMarshal.SetCount(list319, num3); - Span span113 = CollectionsMarshal.AsSpan(list319); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span319 = CollectionsMarshal.AsSpan(list319); + num4 = 0; + span319[num4] = null; + num4++; + span319[num4] = null; + num4++; + span319[num4] = null; + num4++; + span319[num4] = null; + num4++; + span319[num4] = null; + num4++; + span319[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions9.CompletionQuestVariablesFlags = list319; skipStepConditions9.Flying = ELockedSkipCondition.Locked; skipConditions9.StepIf = skipStepConditions9; obj220.SkipConditions = skipConditions9; reference230 = obj220; - ref QuestStep reference231 = ref span110[3]; + index2++; + ref QuestStep reference231 = ref span316[index2]; QuestStep obj221 = new QuestStep(EInteractionType.Emote, 1051296u, new Vector3(369.92432f, 5.9371996f, 434.71423f), 1190) { Emote = EEmote.Dance }; - num3 = 6; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - Span span114 = CollectionsMarshal.AsSpan(list320); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list320 = new List(num4); + CollectionsMarshal.SetCount(list320, num4); + Span span320 = CollectionsMarshal.AsSpan(list320); + num3 = 0; + span320[num3] = null; + num3++; + span320[num3] = null; + num3++; + span320[num3] = null; + num3++; + span320[num3] = null; + num3++; + span320[num3] = null; + num3++; + span320[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj221.CompletionQuestVariablesFlags = list320; reference231 = obj221; - ref QuestStep reference232 = ref span110[4]; + index2++; + ref QuestStep reference232 = ref span316[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(364.1419f, 5.9295864f, 435.2963f), 1190); SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); num3 = 6; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - Span span115 = CollectionsMarshal.AsSpan(list321); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span321 = CollectionsMarshal.AsSpan(list321); + num4 = 0; + span321[num4] = null; + num4++; + span321[num4] = null; + num4++; + span321[num4] = null; + num4++; + span321[num4] = null; + num4++; + span321[num4] = null; + num4++; + span321[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions10.CompletionQuestVariablesFlags = list321; skipStepConditions10.Flying = ELockedSkipCondition.Locked; skipConditions10.StepIf = skipStepConditions10; questStep11.SkipConditions = skipConditions10; reference232 = questStep11; - ref QuestStep reference233 = ref span110[5]; + index2++; + ref QuestStep reference233 = ref span316[index2]; QuestStep obj222 = new QuestStep(EInteractionType.Emote, 1051298u, new Vector3(375.6007f, -1.619559f, 387.62476f), 1190) { Fly = true, Emote = EEmote.Dance }; - num3 = 6; - List list322 = new List(num3); - CollectionsMarshal.SetCount(list322, num3); - Span span116 = CollectionsMarshal.AsSpan(list322); - span116[0] = null; - span116[1] = null; - span116[2] = null; - span116[3] = null; - span116[4] = null; - span116[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list322 = new List(num4); + CollectionsMarshal.SetCount(list322, num4); + Span span322 = CollectionsMarshal.AsSpan(list322); + num3 = 0; + span322[num3] = null; + num3++; + span322[num3] = null; + num3++; + span322[num3] = null; + num3++; + span322[num3] = null; + num3++; + span322[num3] = null; + num3++; + span322[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj222.CompletionQuestVariablesFlags = list322; reference233 = obj222; obj217.Steps = list316; reference227 = obj217; - ref QuestSequence reference234 = ref span109[3]; + num++; + ref QuestSequence reference234 = ref span313[num]; QuestSequence obj223 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051313u, new Vector3(279.469f, -4.1346755f, 460.28845f), 1190) + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + Span span323 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span323[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051313u, new Vector3(279.469f, -4.1346755f, 460.28845f), 1190) { Fly = true, NextQuestId = new QuestId(5143) @@ -361545,13 +439687,16 @@ public static class AssemblyQuestLoader num = 1; List list324 = new List(num); CollectionsMarshal.SetCount(list324, num); - CollectionsMarshal.AsSpan(list324)[0] = "liza"; + Span span324 = CollectionsMarshal.AsSpan(list324); + index = 0; + span324[index] = "liza"; questRoot44.Author = list324; - num = 4; - List list325 = new List(num); - CollectionsMarshal.SetCount(list325, num); - Span span117 = CollectionsMarshal.AsSpan(list325); - ref QuestSequence reference235 = ref span117[0]; + index = 4; + List list325 = new List(index); + CollectionsMarshal.SetCount(list325, index); + Span span325 = CollectionsMarshal.AsSpan(list325); + num = 0; + ref QuestSequence reference235 = ref span325[num]; QuestSequence obj224 = new QuestSequence { Sequence = 0 @@ -361559,19 +439704,23 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051295u, new Vector3(279.62158f, -4.1182456f, 460.31885f), 1190); + Span span326 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span326[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051295u, new Vector3(279.62158f, -4.1182456f, 460.31885f), 1190); obj224.Steps = list326; reference235 = obj224; - ref QuestSequence reference236 = ref span117[1]; + num++; + ref QuestSequence reference236 = ref span325[num]; QuestSequence obj225 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - Span span118 = CollectionsMarshal.AsSpan(list327); - span118[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(374.1434f, -0.26282632f, 438.94763f), 1190) + index2 = 2; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + Span span327 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span327[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(374.1434f, -0.26282632f, 438.94763f), 1190) { Fly = true, SkipConditions = new SkipConditions @@ -361582,7 +439731,8 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference237 = ref span118[1]; + num2++; + ref QuestStep reference237 = ref span327[num2]; QuestStep obj226 = new QuestStep(EInteractionType.Interact, 1051283u, new Vector3(374.19702f, -0.24794838f, 437.2472f), 1190) { Fly = true @@ -361590,7 +439740,9 @@ public static class AssemblyQuestLoader num3 = 1; List list328 = new List(num3); CollectionsMarshal.SetCount(list328, num3); - CollectionsMarshal.AsSpan(list328)[0] = new DialogueChoice + Span span328 = CollectionsMarshal.AsSpan(list328); + num4 = 0; + span328[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE204_05143_Q1_000_000"), @@ -361600,7 +439752,8 @@ public static class AssemblyQuestLoader reference237 = obj226; obj225.Steps = list327; reference236 = obj225; - ref QuestSequence reference238 = ref span117[2]; + num++; + ref QuestSequence reference238 = ref span325[num]; QuestSequence obj227 = new QuestSequence { Sequence = 2 @@ -361608,21 +439761,26 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 2014319u, new Vector3(290.76062f, -2.6704102f, 455.34436f), 1190) + Span span329 = CollectionsMarshal.AsSpan(list329); + index2 = 0; + span329[index2] = new QuestStep(EInteractionType.Interact, 2014319u, new Vector3(290.76062f, -2.6704102f, 455.34436f), 1190) { Fly = true }; obj227.Steps = list329; reference238 = obj227; - ref QuestSequence reference239 = ref span117[3]; + num++; + ref QuestSequence reference239 = ref span325[num]; QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051314u, new Vector3(279.62158f, -4.1182456f, 460.31885f), 1190); + index2 = 1; + List list330 = new List(index2); + CollectionsMarshal.SetCount(list330, index2); + Span span330 = CollectionsMarshal.AsSpan(list330); + num2 = 0; + span330[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051314u, new Vector3(279.62158f, -4.1182456f, 460.31885f), 1190); obj228.Steps = list330; reference239 = obj228; questRoot44.QuestSequence = list325; @@ -361632,13 +439790,16 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "liza"; + Span span331 = CollectionsMarshal.AsSpan(list331); + index = 0; + span331[index] = "liza"; questRoot45.Author = list331; - num = 3; - List list332 = new List(num); - CollectionsMarshal.SetCount(list332, num); - Span span119 = CollectionsMarshal.AsSpan(list332); - ref QuestSequence reference240 = ref span119[0]; + index = 3; + List list332 = new List(index); + CollectionsMarshal.SetCount(list332, index); + Span span332 = CollectionsMarshal.AsSpan(list332); + num = 0; + ref QuestSequence reference240 = ref span332[num]; QuestSequence obj229 = new QuestSequence { Sequence = 0 @@ -361646,23 +439807,29 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051316u, new Vector3(-380.30066f, 18.718708f, -114.24432f), 1190); + Span span333 = CollectionsMarshal.AsSpan(list333); + index2 = 0; + span333[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051316u, new Vector3(-380.30066f, 18.718708f, -114.24432f), 1190); obj229.Steps = list333; reference240 = obj229; - ref QuestSequence reference241 = ref span119[1]; + num++; + ref QuestSequence reference241 = ref span332[num]; QuestSequence obj230 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - Span span120 = CollectionsMarshal.AsSpan(list334); - span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-364.2223f, 18.75252f, -115.513306f), 1190); - span120[1] = new QuestStep(EInteractionType.Interact, 1051300u, new Vector3(-69.840576f, -8.097445f, 78.538086f), 1190); + index2 = 2; + List list334 = new List(index2); + CollectionsMarshal.SetCount(list334, index2); + Span span334 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span334[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-364.2223f, 18.75252f, -115.513306f), 1190); + num2++; + span334[num2] = new QuestStep(EInteractionType.Interact, 1051300u, new Vector3(-69.840576f, -8.097445f, 78.538086f), 1190); obj230.Steps = list334; reference241 = obj230; - ref QuestSequence reference242 = ref span119[2]; + num++; + ref QuestSequence reference242 = ref span332[num]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue @@ -361670,7 +439837,9 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051301u, new Vector3(-284.1383f, 17.312117f, -76.676636f), 1190) + Span span335 = CollectionsMarshal.AsSpan(list335); + index2 = 0; + span335[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051301u, new Vector3(-284.1383f, 17.312117f, -76.676636f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; @@ -361683,24 +439852,30 @@ public static class AssemblyQuestLoader num = 1; List list336 = new List(num); CollectionsMarshal.SetCount(list336, num); - CollectionsMarshal.AsSpan(list336)[0] = "liza"; + Span span336 = CollectionsMarshal.AsSpan(list336); + index = 0; + span336[index] = "liza"; questRoot46.Author = list336; - num = 5; - List list337 = new List(num); - CollectionsMarshal.SetCount(list337, num); - Span span121 = CollectionsMarshal.AsSpan(list337); - ref QuestSequence reference243 = ref span121[0]; + index = 5; + List list337 = new List(index); + CollectionsMarshal.SetCount(list337, index); + Span span337 = CollectionsMarshal.AsSpan(list337); + num = 0; + ref QuestSequence reference243 = ref span337[num]; QuestSequence obj232 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list338 = new List(num2); - CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051301u, new Vector3(-284.1383f, 17.312117f, -76.676636f), 1190); + index2 = 1; + List list338 = new List(index2); + CollectionsMarshal.SetCount(list338, index2); + Span span338 = CollectionsMarshal.AsSpan(list338); + num2 = 0; + span338[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051301u, new Vector3(-284.1383f, 17.312117f, -76.676636f), 1190); obj232.Steps = list338; reference243 = obj232; - ref QuestSequence reference244 = ref span121[1]; + num++; + ref QuestSequence reference244 = ref span337[num]; QuestSequence obj233 = new QuestSequence { Sequence = 1 @@ -361708,27 +439883,33 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 1051320u, new Vector3(-379.04938f, 18.055899f, -117.387695f), 1190) + Span span339 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span339[index2] = new QuestStep(EInteractionType.Interact, 1051320u, new Vector3(-379.04938f, 18.055899f, -117.387695f), 1190) { Fly = true }; obj233.Steps = list339; reference244 = obj233; - ref QuestSequence reference245 = ref span121[2]; + num++; + ref QuestSequence reference245 = ref span337[num]; QuestSequence obj234 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1051303u, new Vector3(-150.80493f, 2.3364508f, 42.86255f), 1190) + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + Span span340 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + span340[num2] = new QuestStep(EInteractionType.Interact, 1051303u, new Vector3(-150.80493f, 2.3364508f, 42.86255f), 1190) { Fly = true }; obj234.Steps = list340; reference245 = obj234; - ref QuestSequence reference246 = ref span121[3]; + num++; + ref QuestSequence reference246 = ref span337[num]; QuestSequence obj235 = new QuestSequence { Sequence = 3 @@ -361736,21 +439917,26 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 2014321u, new Vector3(-120.561584f, -4.0131226f, 117.69275f), 1190) + Span span341 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span341[index2] = new QuestStep(EInteractionType.Interact, 2014321u, new Vector3(-120.561584f, -4.0131226f, 117.69275f), 1190) { Fly = true }; obj235.Steps = list341; reference246 = obj235; - ref QuestSequence reference247 = ref span121[4]; + num++; + ref QuestSequence reference247 = ref span337[num]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list342 = new List(num2); - CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051303u, new Vector3(-150.80493f, 2.3364508f, 42.86255f), 1190) + index2 = 1; + List list342 = new List(index2); + CollectionsMarshal.SetCount(list342, index2); + Span span342 = CollectionsMarshal.AsSpan(list342); + num2 = 0; + span342[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051303u, new Vector3(-150.80493f, 2.3364508f, 42.86255f), 1190) { Fly = true, NextQuestId = new QuestId(5146) @@ -361764,13 +439950,16 @@ public static class AssemblyQuestLoader num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - CollectionsMarshal.AsSpan(list343)[0] = "liza"; + Span span343 = CollectionsMarshal.AsSpan(list343); + index = 0; + span343[index] = "liza"; questRoot47.Author = list343; - num = 6; - List list344 = new List(num); - CollectionsMarshal.SetCount(list344, num); - Span span122 = CollectionsMarshal.AsSpan(list344); - ref QuestSequence reference248 = ref span122[0]; + index = 6; + List list344 = new List(index); + CollectionsMarshal.SetCount(list344, index); + Span span344 = CollectionsMarshal.AsSpan(list344); + num = 0; + ref QuestSequence reference248 = ref span344[num]; QuestSequence obj237 = new QuestSequence { Sequence = 0 @@ -361778,24 +439967,30 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051303u, new Vector3(-150.80493f, 2.3364508f, 42.86255f), 1190); + Span span345 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + span345[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051303u, new Vector3(-150.80493f, 2.3364508f, 42.86255f), 1190); obj237.Steps = list345; reference248 = obj237; - ref QuestSequence reference249 = ref span122[1]; + num++; + ref QuestSequence reference249 = ref span344[num]; QuestSequence obj238 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 1051305u, new Vector3(-220.7218f, -1.1039281f, 244.00696f), 1190) + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + Span span346 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span346[num2] = new QuestStep(EInteractionType.Interact, 1051305u, new Vector3(-220.7218f, -1.1039281f, 244.00696f), 1190) { Fly = true }; obj238.Steps = list346; reference249 = obj238; - ref QuestSequence reference250 = ref span122[2]; + num++; + ref QuestSequence reference250 = ref span344[num]; QuestSequence obj239 = new QuestSequence { Sequence = 2 @@ -361803,27 +439998,33 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1051306u, new Vector3(-230.9148f, -1.2759173f, 291.9203f), 1190) + Span span347 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + span347[index2] = new QuestStep(EInteractionType.Interact, 1051306u, new Vector3(-230.9148f, -1.2759173f, 291.9203f), 1190) { Fly = true }; obj239.Steps = list347; reference250 = obj239; - ref QuestSequence reference251 = ref span122[3]; + num++; + ref QuestSequence reference251 = ref span344[num]; QuestSequence obj240 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list348 = new List(num2); - CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.Interact, 1051307u, new Vector3(-207.69055f, -1.8966466f, 329.7932f), 1190) + index2 = 1; + List list348 = new List(index2); + CollectionsMarshal.SetCount(list348, index2); + Span span348 = CollectionsMarshal.AsSpan(list348); + num2 = 0; + span348[num2] = new QuestStep(EInteractionType.Interact, 1051307u, new Vector3(-207.69055f, -1.8966466f, 329.7932f), 1190) { Fly = true }; obj240.Steps = list348; reference251 = obj240; - ref QuestSequence reference252 = ref span122[4]; + num++; + ref QuestSequence reference252 = ref span344[num]; QuestSequence obj241 = new QuestSequence { Sequence = 4 @@ -361831,21 +440032,26 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.Interact, 1051308u, new Vector3(-170.45856f, 1.6625541f, 365.6825f), 1190) + Span span349 = CollectionsMarshal.AsSpan(list349); + index2 = 0; + span349[index2] = new QuestStep(EInteractionType.Interact, 1051308u, new Vector3(-170.45856f, 1.6625541f, 365.6825f), 1190) { Fly = true }; obj241.Steps = list349; reference252 = obj241; - ref QuestSequence reference253 = ref span122[5]; + num++; + ref QuestSequence reference253 = ref span344[num]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list350 = new List(num2); - CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051309u, new Vector3(-130.02216f, 1.8320833f, 318.6847f), 1190) + index2 = 1; + List list350 = new List(index2); + CollectionsMarshal.SetCount(list350, index2); + Span span350 = CollectionsMarshal.AsSpan(list350); + num2 = 0; + span350[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051309u, new Vector3(-130.02216f, 1.8320833f, 318.6847f), 1190) { Fly = true, NextQuestId = new QuestId(5147) @@ -361859,13 +440065,16 @@ public static class AssemblyQuestLoader num = 1; List list351 = new List(num); CollectionsMarshal.SetCount(list351, num); - CollectionsMarshal.AsSpan(list351)[0] = "liza"; + Span span351 = CollectionsMarshal.AsSpan(list351); + index = 0; + span351[index] = "liza"; questRoot48.Author = list351; - num = 4; - List list352 = new List(num); - CollectionsMarshal.SetCount(list352, num); - Span span123 = CollectionsMarshal.AsSpan(list352); - ref QuestSequence reference254 = ref span123[0]; + index = 4; + List list352 = new List(index); + CollectionsMarshal.SetCount(list352, index); + Span span352 = CollectionsMarshal.AsSpan(list352); + num = 0; + ref QuestSequence reference254 = ref span352[num]; QuestSequence obj243 = new QuestSequence { Sequence = 0 @@ -361873,27 +440082,33 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051333u, new Vector3(-127.82489f, 1.8010846f, 318.13525f), 1190) + Span span353 = CollectionsMarshal.AsSpan(list353); + index2 = 0; + span353[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051333u, new Vector3(-127.82489f, 1.8010846f, 318.13525f), 1190) { StopDistance = 5f }; obj243.Steps = list353; reference254 = obj243; - ref QuestSequence reference255 = ref span123[1]; + num++; + ref QuestSequence reference255 = ref span352[num]; QuestSequence obj244 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1051334u, new Vector3(-156.87805f, 9.228875f, 9.262146f), 1190) + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + Span span354 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span354[num2] = new QuestStep(EInteractionType.Interact, 1051334u, new Vector3(-156.87805f, 9.228875f, 9.262146f), 1190) { Fly = true }; obj244.Steps = list354; reference255 = obj244; - ref QuestSequence reference256 = ref span123[2]; + num++; + ref QuestSequence reference256 = ref span352[num]; QuestSequence obj245 = new QuestSequence { Sequence = 2 @@ -361901,29 +440116,36 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - ref QuestStep reference257 = ref CollectionsMarshal.AsSpan(list355)[0]; + Span span355 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + ref QuestStep reference257 = ref span355[index2]; QuestStep obj246 = new QuestStep(EInteractionType.Combat, null, new Vector3(-73.8012f, 8.56271f, -61.943523f), 1190) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list356 = new List(num3); - CollectionsMarshal.SetCount(list356, num3); - CollectionsMarshal.AsSpan(list356)[0] = 17742u; + num4 = 1; + List list356 = new List(num4); + CollectionsMarshal.SetCount(list356, num4); + Span span356 = CollectionsMarshal.AsSpan(list356); + num3 = 0; + span356[num3] = 17742u; obj246.KillEnemyDataIds = list356; reference257 = obj246; obj245.Steps = list355; reference256 = obj245; - ref QuestSequence reference258 = ref span123[3]; + num++; + ref QuestSequence reference258 = ref span352[num]; QuestSequence obj247 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190) + index2 = 1; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + Span span357 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span357[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190) { Fly = true, NextQuestId = new QuestId(5148) @@ -361937,13 +440159,16 @@ public static class AssemblyQuestLoader num = 1; List list358 = new List(num); CollectionsMarshal.SetCount(list358, num); - CollectionsMarshal.AsSpan(list358)[0] = "liza"; + Span span358 = CollectionsMarshal.AsSpan(list358); + index = 0; + span358[index] = "liza"; questRoot49.Author = list358; - num = 8; - List list359 = new List(num); - CollectionsMarshal.SetCount(list359, num); - Span span124 = CollectionsMarshal.AsSpan(list359); - ref QuestSequence reference259 = ref span124[0]; + index = 8; + List list359 = new List(index); + CollectionsMarshal.SetCount(list359, index); + Span span359 = CollectionsMarshal.AsSpan(list359); + num = 0; + ref QuestSequence reference259 = ref span359[num]; QuestSequence obj248 = new QuestSequence { Sequence = 0 @@ -361951,21 +440176,27 @@ public static class AssemblyQuestLoader num2 = 1; List list360 = new List(num2); CollectionsMarshal.SetCount(list360, num2); - CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190); + Span span360 = CollectionsMarshal.AsSpan(list360); + index2 = 0; + span360[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190); obj248.Steps = list360; reference259 = obj248; - ref QuestSequence reference260 = ref span124[1]; + num++; + ref QuestSequence reference260 = ref span359[num]; QuestSequence obj249 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list361 = new List(num2); - CollectionsMarshal.SetCount(list361, num2); - CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.Interact, 1051339u, new Vector3(-529.0761f, -17.160866f, 444.23596f), 1190); + index2 = 1; + List list361 = new List(index2); + CollectionsMarshal.SetCount(list361, index2); + Span span361 = CollectionsMarshal.AsSpan(list361); + num2 = 0; + span361[num2] = new QuestStep(EInteractionType.Interact, 1051339u, new Vector3(-529.0761f, -17.160866f, 444.23596f), 1190); obj249.Steps = list361; reference260 = obj249; - ref QuestSequence reference261 = ref span124[2]; + num++; + ref QuestSequence reference261 = ref span359[num]; QuestSequence obj250 = new QuestSequence { Sequence = 2 @@ -361973,65 +440204,91 @@ public static class AssemblyQuestLoader num2 = 3; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - Span span125 = CollectionsMarshal.AsSpan(list362); - ref QuestStep reference262 = ref span125[0]; + Span span362 = CollectionsMarshal.AsSpan(list362); + index2 = 0; + ref QuestStep reference262 = ref span362[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2014323u, new Vector3(-600.3052f, -13.382202f, 379.99524f), 1190); num3 = 6; List list363 = new List(num3); CollectionsMarshal.SetCount(list363, num3); - Span span126 = CollectionsMarshal.AsSpan(list363); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span363 = CollectionsMarshal.AsSpan(list363); + num4 = 0; + span363[num4] = null; + num4++; + span363[num4] = null; + num4++; + span363[num4] = null; + num4++; + span363[num4] = null; + num4++; + span363[num4] = null; + num4++; + span363[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list363; reference262 = questStep12; - ref QuestStep reference263 = ref span125[1]; + index2++; + ref QuestStep reference263 = ref span362[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2014322u, new Vector3(-619.01276f, -14.114624f, 379.65967f), 1190); - num3 = 6; - List list364 = new List(num3); - CollectionsMarshal.SetCount(list364, num3); - Span span127 = CollectionsMarshal.AsSpan(list364); - span127[0] = null; - span127[1] = null; - span127[2] = null; - span127[3] = null; - span127[4] = null; - span127[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list364 = new List(num4); + CollectionsMarshal.SetCount(list364, num4); + Span span364 = CollectionsMarshal.AsSpan(list364); + num3 = 0; + span364[num3] = null; + num3++; + span364[num3] = null; + num3++; + span364[num3] = null; + num3++; + span364[num3] = null; + num3++; + span364[num3] = null; + num3++; + span364[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list364; reference263 = questStep13; - ref QuestStep reference264 = ref span125[2]; + index2++; + ref QuestStep reference264 = ref span362[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2014324u, new Vector3(-639.30725f, -12.863403f, 369.46667f), 1190); num3 = 6; List list365 = new List(num3); CollectionsMarshal.SetCount(list365, num3); - Span span128 = CollectionsMarshal.AsSpan(list365); - span128[0] = null; - span128[1] = null; - span128[2] = null; - span128[3] = null; - span128[4] = null; - span128[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span365 = CollectionsMarshal.AsSpan(list365); + num4 = 0; + span365[num4] = null; + num4++; + span365[num4] = null; + num4++; + span365[num4] = null; + num4++; + span365[num4] = null; + num4++; + span365[num4] = null; + num4++; + span365[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list365; reference264 = questStep14; obj250.Steps = list362; reference261 = obj250; - ref QuestSequence reference265 = ref span124[3]; + num++; + ref QuestSequence reference265 = ref span359[num]; QuestSequence obj251 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - ref QuestStep reference266 = ref CollectionsMarshal.AsSpan(list366)[0]; + index2 = 1; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + Span span366 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + ref QuestStep reference266 = ref span366[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1051310u, new Vector3(-638.1476f, -11.576093f, 350.8506f), 1190); - num3 = 1; - List list367 = new List(num3); - CollectionsMarshal.SetCount(list367, num3); - CollectionsMarshal.AsSpan(list367)[0] = new DialogueChoice + num4 = 1; + List list367 = new List(num4); + CollectionsMarshal.SetCount(list367, num4); + Span span367 = CollectionsMarshal.AsSpan(list367); + num3 = 0; + span367[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE401_05148_Q2_000_000"), @@ -362041,7 +440298,8 @@ public static class AssemblyQuestLoader reference266 = questStep15; obj251.Steps = list366; reference265 = obj251; - ref QuestSequence reference267 = ref span124[4]; + num++; + ref QuestSequence reference267 = ref span359[num]; QuestSequence obj252 = new QuestSequence { Sequence = 4 @@ -362049,8 +440307,9 @@ public static class AssemblyQuestLoader num2 = 2; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - Span span129 = CollectionsMarshal.AsSpan(list368); - ref QuestStep reference268 = ref span129[0]; + Span span368 = CollectionsMarshal.AsSpan(list368); + index2 = 0; + ref QuestStep reference268 = ref span368[index2]; QuestStep obj253 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(364.1419f, 5.9295864f, 435.2963f), 1190) { Fly = true, @@ -362061,42 +440320,54 @@ public static class AssemblyQuestLoader num3 = 6; List list369 = new List(num3); CollectionsMarshal.SetCount(list369, num3); - Span span130 = CollectionsMarshal.AsSpan(list369); - span130[0] = null; - span130[1] = null; - span130[2] = null; - span130[3] = null; - span130[4] = null; - span130[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span369 = CollectionsMarshal.AsSpan(list369); + num4 = 0; + span369[num4] = null; + num4++; + span369[num4] = null; + num4++; + span369[num4] = null; + num4++; + span369[num4] = null; + num4++; + span369[num4] = null; + num4++; + span369[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions11.CompletionQuestVariablesFlags = list369; skipStepConditions11.Flying = ELockedSkipCondition.Locked; skipConditions11.StepIf = skipStepConditions11; obj253.SkipConditions = skipConditions11; reference268 = obj253; - span129[1] = new QuestStep(EInteractionType.Interact, 1051315u, new Vector3(362.87476f, 5.9371996f, 427.2068f), 1190); + index2++; + span368[index2] = new QuestStep(EInteractionType.Interact, 1051315u, new Vector3(362.87476f, 5.9371996f, 427.2068f), 1190); obj252.Steps = list368; reference267 = obj252; - ref QuestSequence reference269 = ref span124[5]; + num++; + ref QuestSequence reference269 = ref span359[num]; QuestSequence obj254 = new QuestSequence { Sequence = 5 }; - num2 = 3; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - Span span131 = CollectionsMarshal.AsSpan(list370); - span131[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190) + index2 = 3; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + Span span370 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + span370[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(369.3906f, 5.9371996f, 417.16574f), 1190) { Mount = true }; - span131[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190) + num2++; + span370[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190) { DisableNavmesh = true }; - span131[2] = new QuestStep(EInteractionType.Interact, 1051321u, new Vector3(357.7782f, -1.0164845f, 438.37634f), 1190); + num2++; + span370[num2] = new QuestStep(EInteractionType.Interact, 1051321u, new Vector3(357.7782f, -1.0164845f, 438.37634f), 1190); obj254.Steps = list370; reference269 = obj254; - ref QuestSequence reference270 = ref span124[6]; + num++; + ref QuestSequence reference270 = ref span359[num]; QuestSequence obj255 = new QuestSequence { Sequence = 6 @@ -362104,22 +440375,27 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190) + Span span371 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + span371[index2] = new QuestStep(EInteractionType.Interact, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; obj255.Steps = list371; reference270 = obj255; - ref QuestSequence reference271 = ref span124[7]; + num++; + ref QuestSequence reference271 = ref span359[num]; QuestSequence obj256 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list372 = new List(num2); - CollectionsMarshal.SetCount(list372, num2); - CollectionsMarshal.AsSpan(list372)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190); + index2 = 1; + List list372 = new List(index2); + CollectionsMarshal.SetCount(list372, index2); + Span span372 = CollectionsMarshal.AsSpan(list372); + num2 = 0; + span372[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190); obj256.Steps = list372; reference271 = obj256; questRoot49.QuestSequence = list359; @@ -362129,13 +440405,16 @@ public static class AssemblyQuestLoader num = 1; List list373 = new List(num); CollectionsMarshal.SetCount(list373, num); - CollectionsMarshal.AsSpan(list373)[0] = "liza"; + Span span373 = CollectionsMarshal.AsSpan(list373); + index = 0; + span373[index] = "liza"; questRoot50.Author = list373; - num = 3; - List list374 = new List(num); - CollectionsMarshal.SetCount(list374, num); - Span span132 = CollectionsMarshal.AsSpan(list374); - ref QuestSequence reference272 = ref span132[0]; + index = 3; + List list374 = new List(index); + CollectionsMarshal.SetCount(list374, index); + Span span374 = CollectionsMarshal.AsSpan(list374); + num = 0; + ref QuestSequence reference272 = ref span374[num]; QuestSequence obj257 = new QuestSequence { Sequence = 0 @@ -362143,7 +440422,9 @@ public static class AssemblyQuestLoader num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049442u, new Vector3(-272.23627f, 30.001156f, -577.59973f), 1191) + Span span375 = CollectionsMarshal.AsSpan(list375); + index2 = 0; + span375[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049442u, new Vector3(-272.23627f, 30.001156f, -577.59973f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, SkipConditions = new SkipConditions @@ -362161,35 +440442,44 @@ public static class AssemblyQuestLoader }; obj257.Steps = list375; reference272 = obj257; - ref QuestSequence reference273 = ref span132[1]; + num++; + ref QuestSequence reference273 = ref span374[num]; QuestSequence obj258 = new QuestSequence { Sequence = 1 }; - num2 = 9; - List list376 = new List(num2); - CollectionsMarshal.SetCount(list376, num2); - Span span133 = CollectionsMarshal.AsSpan(list376); - ref QuestStep reference274 = ref span133[0]; + index2 = 9; + List list376 = new List(index2); + CollectionsMarshal.SetCount(list376, index2); + Span span376 = CollectionsMarshal.AsSpan(list376); + num2 = 0; + ref QuestStep reference274 = ref span376[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-212.22218f, 30f, -620.3656f), 1191); SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions12 = new SkipStepConditions(); - num3 = 6; - List list377 = new List(num3); - CollectionsMarshal.SetCount(list377, num3); - Span span134 = CollectionsMarshal.AsSpan(list377); - span134[0] = null; - span134[1] = null; - span134[2] = null; - span134[3] = null; - span134[4] = null; - span134[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list377 = new List(num4); + CollectionsMarshal.SetCount(list377, num4); + Span span377 = CollectionsMarshal.AsSpan(list377); + num3 = 0; + span377[num3] = null; + num3++; + span377[num3] = null; + num3++; + span377[num3] = null; + num3++; + span377[num3] = null; + num3++; + span377[num3] = null; + num3++; + span377[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions12.CompletionQuestVariablesFlags = list377; skipStepConditions12.Flying = ELockedSkipCondition.Unlocked; skipConditions12.StepIf = skipStepConditions12; questStep16.SkipConditions = skipConditions12; reference274 = questStep16; - ref QuestStep reference275 = ref span133[1]; + num2++; + ref QuestStep reference275 = ref span376[num2]; QuestStep obj259 = new QuestStep(EInteractionType.UseItem, 2014079u, new Vector3(-213.24487f, 30.838379f, -618.0362f), 1191) { ItemId = 2003594u, @@ -362204,54 +440494,75 @@ public static class AssemblyQuestLoader num3 = 6; List list378 = new List(num3); CollectionsMarshal.SetCount(list378, num3); - Span span135 = CollectionsMarshal.AsSpan(list378); - span135[0] = null; - span135[1] = null; - span135[2] = null; - span135[3] = null; - span135[4] = null; - span135[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span378 = CollectionsMarshal.AsSpan(list378); + num4 = 0; + span378[num4] = null; + num4++; + span378[num4] = null; + num4++; + span378[num4] = null; + num4++; + span378[num4] = null; + num4++; + span378[num4] = null; + num4++; + span378[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj259.CompletionQuestVariablesFlags = list378; reference275 = obj259; - ref QuestStep reference276 = ref span133[2]; + num2++; + ref QuestStep reference276 = ref span376[num2]; QuestStep obj260 = new QuestStep(EInteractionType.UseItem, 2014079u, new Vector3(-213.24487f, 30.838379f, -618.0362f), 1191) { StopDistance = 0.25f, Fly = true, ItemId = 2003594u }; - num3 = 6; - List list379 = new List(num3); - CollectionsMarshal.SetCount(list379, num3); - Span span136 = CollectionsMarshal.AsSpan(list379); - span136[0] = null; - span136[1] = null; - span136[2] = null; - span136[3] = null; - span136[4] = null; - span136[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list379 = new List(num4); + CollectionsMarshal.SetCount(list379, num4); + Span span379 = CollectionsMarshal.AsSpan(list379); + num3 = 0; + span379[num3] = null; + num3++; + span379[num3] = null; + num3++; + span379[num3] = null; + num3++; + span379[num3] = null; + num3++; + span379[num3] = null; + num3++; + span379[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj260.CompletionQuestVariablesFlags = list379; reference276 = obj260; - ref QuestStep reference277 = ref span133[3]; + num2++; + ref QuestStep reference277 = ref span376[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-274.73184f, 36.99997f, -506.5031f), 1191); SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions13 = new SkipStepConditions(); num3 = 6; List list380 = new List(num3); CollectionsMarshal.SetCount(list380, num3); - Span span137 = CollectionsMarshal.AsSpan(list380); - span137[0] = null; - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = null; - span137[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span380 = CollectionsMarshal.AsSpan(list380); + num4 = 0; + span380[num4] = null; + num4++; + span380[num4] = null; + num4++; + span380[num4] = null; + num4++; + span380[num4] = null; + num4++; + span380[num4] = null; + num4++; + span380[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions13.CompletionQuestVariablesFlags = list380; skipStepConditions13.Flying = ELockedSkipCondition.Unlocked; skipConditions13.StepIf = skipStepConditions13; questStep17.SkipConditions = skipConditions13; reference277 = questStep17; - ref QuestStep reference278 = ref span133[4]; + num2++; + ref QuestStep reference278 = ref span376[num2]; QuestStep obj261 = new QuestStep(EInteractionType.UseItem, 2014078u, new Vector3(-272.8161f, 37.857544f, -504.9058f), 1191) { ItemId = 2003594u, @@ -362263,19 +440574,26 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list381 = new List(num3); - CollectionsMarshal.SetCount(list381, num3); - Span span138 = CollectionsMarshal.AsSpan(list381); - span138[0] = null; - span138[1] = null; - span138[2] = null; - span138[3] = null; - span138[4] = null; - span138[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list381 = new List(num4); + CollectionsMarshal.SetCount(list381, num4); + Span span381 = CollectionsMarshal.AsSpan(list381); + num3 = 0; + span381[num3] = null; + num3++; + span381[num3] = null; + num3++; + span381[num3] = null; + num3++; + span381[num3] = null; + num3++; + span381[num3] = null; + num3++; + span381[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj261.CompletionQuestVariablesFlags = list381; reference278 = obj261; - ref QuestStep reference279 = ref span133[5]; + num2++; + ref QuestStep reference279 = ref span376[num2]; QuestStep obj262 = new QuestStep(EInteractionType.UseItem, 2014078u, new Vector3(-272.8161f, 37.857544f, -504.9058f), 1191) { StopDistance = 0.25f, @@ -362285,35 +440603,49 @@ public static class AssemblyQuestLoader num3 = 6; List list382 = new List(num3); CollectionsMarshal.SetCount(list382, num3); - Span span139 = CollectionsMarshal.AsSpan(list382); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span382 = CollectionsMarshal.AsSpan(list382); + num4 = 0; + span382[num4] = null; + num4++; + span382[num4] = null; + num4++; + span382[num4] = null; + num4++; + span382[num4] = null; + num4++; + span382[num4] = null; + num4++; + span382[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj262.CompletionQuestVariablesFlags = list382; reference279 = obj262; - ref QuestStep reference280 = ref span133[6]; + num2++; + ref QuestStep reference280 = ref span376[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-346.93515f, 37.00001f, -611.26953f), 1191); SkipConditions skipConditions14 = new SkipConditions(); SkipStepConditions skipStepConditions14 = new SkipStepConditions(); - num3 = 6; - List list383 = new List(num3); - CollectionsMarshal.SetCount(list383, num3); - Span span140 = CollectionsMarshal.AsSpan(list383); - span140[0] = null; - span140[1] = null; - span140[2] = null; - span140[3] = null; - span140[4] = null; - span140[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list383 = new List(num4); + CollectionsMarshal.SetCount(list383, num4); + Span span383 = CollectionsMarshal.AsSpan(list383); + num3 = 0; + span383[num3] = null; + num3++; + span383[num3] = null; + num3++; + span383[num3] = null; + num3++; + span383[num3] = null; + num3++; + span383[num3] = null; + num3++; + span383[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions14.CompletionQuestVariablesFlags = list383; skipStepConditions14.Flying = ELockedSkipCondition.Unlocked; skipConditions14.StepIf = skipStepConditions14; questStep18.SkipConditions = skipConditions14; reference280 = questStep18; - ref QuestStep reference281 = ref span133[7]; + num2++; + ref QuestStep reference281 = ref span376[num2]; QuestStep obj263 = new QuestStep(EInteractionType.UseItem, 2014080u, new Vector3(-349.1112f, 37.857544f, -610.5898f), 1191) { ItemId = 2003594u, @@ -362328,37 +440660,51 @@ public static class AssemblyQuestLoader num3 = 6; List list384 = new List(num3); CollectionsMarshal.SetCount(list384, num3); - Span span141 = CollectionsMarshal.AsSpan(list384); - span141[0] = null; - span141[1] = null; - span141[2] = null; - span141[3] = null; - span141[4] = null; - span141[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span384 = CollectionsMarshal.AsSpan(list384); + num4 = 0; + span384[num4] = null; + num4++; + span384[num4] = null; + num4++; + span384[num4] = null; + num4++; + span384[num4] = null; + num4++; + span384[num4] = null; + num4++; + span384[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj263.CompletionQuestVariablesFlags = list384; reference281 = obj263; - ref QuestStep reference282 = ref span133[8]; + num2++; + ref QuestStep reference282 = ref span376[num2]; QuestStep obj264 = new QuestStep(EInteractionType.UseItem, 2014080u, new Vector3(-349.1112f, 37.857544f, -610.5898f), 1191) { StopDistance = 0.25f, Fly = true, ItemId = 2003594u }; - num3 = 6; - List list385 = new List(num3); - CollectionsMarshal.SetCount(list385, num3); - Span span142 = CollectionsMarshal.AsSpan(list385); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list385 = new List(num4); + CollectionsMarshal.SetCount(list385, num4); + Span span385 = CollectionsMarshal.AsSpan(list385); + num3 = 0; + span385[num3] = null; + num3++; + span385[num3] = null; + num3++; + span385[num3] = null; + num3++; + span385[num3] = null; + num3++; + span385[num3] = null; + num3++; + span385[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj264.CompletionQuestVariablesFlags = list385; reference282 = obj264; obj258.Steps = list376; reference273 = obj258; - ref QuestSequence reference283 = ref span132[2]; + num++; + ref QuestSequence reference283 = ref span374[num]; QuestSequence obj265 = new QuestSequence { Sequence = byte.MaxValue @@ -362366,12 +440712,14 @@ public static class AssemblyQuestLoader num2 = 2; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - Span span143 = CollectionsMarshal.AsSpan(list386); - span143[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-270.87784f, 30f, -577.24225f), 1191) + Span span386 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + span386[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-270.87784f, 30f, -577.24225f), 1191) { Fly = true }; - span143[1] = new QuestStep(EInteractionType.CompleteQuest, 1049442u, new Vector3(-272.23627f, 30.001156f, -577.59973f), 1191); + index2++; + span386[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049442u, new Vector3(-272.23627f, 30.001156f, -577.59973f), 1191); obj265.Steps = list386; reference283 = obj265; questRoot50.QuestSequence = list374; @@ -362385,13 +440733,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -362399,7 +440750,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049465u, new Vector3(-333.3944f, 43.50267f, -643.64087f), 1191) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049465u, new Vector3(-333.3944f, 43.50267f, -643.64087f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, SkipConditions = new SkipConditions @@ -362417,26 +440770,30 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-316.46542f, 38.99998f, -622.67126f), 1191) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-316.46542f, 38.99998f, -622.67126f), 1191) { Mount = true }; - span2[1] = new QuestStep(EInteractionType.Interact, 1049475u, new Vector3(-69.87109f, 36.567646f, -217.39532f), 1191) + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 1049475u, new Vector3(-69.87109f, 36.567646f, -217.39532f), 1191) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -362444,7 +440801,9 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + ref QuestStep reference4 = ref span5[index2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 2014084u, new Vector3(-69.68799f, 36.972534f, -215.7168f), 1191) { StopDistance = 4.5f @@ -362452,7 +440811,9 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = new DialogueChoice + Span span6 = CollectionsMarshal.AsSpan(list6); + int index3 = 0; + span6[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZF002_05150_Q1_100_008") @@ -362461,20 +440822,23 @@ public static class AssemblyQuestLoader reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); - Span span3 = CollectionsMarshal.AsSpan(list7); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-316.46542f, 38.99998f, -622.67126f), 1191) + index2 = 2; + List list7 = new List(index2); + CollectionsMarshal.SetCount(list7, index2); + Span span7 = CollectionsMarshal.AsSpan(list7); + num2 = 0; + span7[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-316.46542f, 38.99998f, -622.67126f), 1191) { Fly = true }; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1049465u, new Vector3(-333.3944f, 43.50267f, -643.64087f), 1191); + num2++; + span7[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049465u, new Vector3(-333.3944f, 43.50267f, -643.64087f), 1191); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -362484,13 +440848,16 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = "liza"; + Span span8 = CollectionsMarshal.AsSpan(list8); + index = 0; + span8[index] = "liza"; questRoot2.Author = list8; - num = 6; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); - Span span4 = CollectionsMarshal.AsSpan(list9); - ref QuestSequence reference6 = ref span4[0]; + index = 6; + List list9 = new List(index); + CollectionsMarshal.SetCount(list9, index); + Span span9 = CollectionsMarshal.AsSpan(list9); + num = 0; + ref QuestSequence reference6 = ref span9[num]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -362498,7 +440865,9 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050659u, new Vector3(-215.198f, 36.994804f, -497.85614f), 1191) + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050659u, new Vector3(-215.198f, 36.994804f, -497.85614f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, SkipConditions = new SkipConditions @@ -362516,18 +440885,22 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span4[1]; + num++; + ref QuestSequence reference7 = ref span9[num]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-215.198f, 36.994804f, -497.85614f), 1191); + index2 = 1; + List list11 = new List(index2); + CollectionsMarshal.SetCount(list11, index2); + Span span11 = CollectionsMarshal.AsSpan(list11); + num2 = 0; + span11[num2] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-215.198f, 36.994804f, -497.85614f), 1191); obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span4[2]; + num++; + ref QuestSequence reference8 = ref span9[num]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -362535,29 +440908,35 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-185.05022f, 30.989729f, -513.96875f), 1191) + Span span12 = CollectionsMarshal.AsSpan(list12); + index2 = 0; + span12[index2] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-185.05022f, 30.989729f, -513.96875f), 1191) { StopDistance = 0.5f, Fly = true }; obj8.Steps = list12; reference8 = obj8; - ref QuestSequence reference9 = ref span4[3]; + num++; + ref QuestSequence reference9 = ref span9[num]; QuestSequence obj9 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-196.74313f, 34.982788f, -643.43665f), 1191) + index2 = 1; + List list13 = new List(index2); + CollectionsMarshal.SetCount(list13, index2); + Span span13 = CollectionsMarshal.AsSpan(list13); + num2 = 0; + span13[num2] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-196.74313f, 34.982788f, -643.43665f), 1191) { StopDistance = 0.5f, Fly = true }; obj9.Steps = list13; reference9 = obj9; - ref QuestSequence reference10 = ref span4[4]; + num++; + ref QuestSequence reference10 = ref span9[num]; QuestSequence obj10 = new QuestSequence { Sequence = 4 @@ -362565,22 +440944,27 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-165.5087f, 38.967262f, -706.4246f), 1191) + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-165.5087f, 38.967262f, -706.4246f), 1191) { StopDistance = 0.5f, Fly = true }; obj10.Steps = list14; reference10 = obj10; - ref QuestSequence reference11 = ref span4[5]; + num++; + ref QuestSequence reference11 = ref span9[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050659u, new Vector3(-215.198f, 36.994804f, -497.85614f), 1191) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050659u, new Vector3(-215.198f, 36.994804f, -497.85614f), 1191) { Fly = true }; @@ -362593,13 +440977,16 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = "liza"; + Span span16 = CollectionsMarshal.AsSpan(list16); + index = 0; + span16[index] = "liza"; questRoot3.Author = list16; - num = 6; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span5 = CollectionsMarshal.AsSpan(list17); - ref QuestSequence reference12 = ref span5[0]; + index = 6; + List list17 = new List(index); + CollectionsMarshal.SetCount(list17, index); + Span span17 = CollectionsMarshal.AsSpan(list17); + num = 0; + ref QuestSequence reference12 = ref span17[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -362607,7 +440994,9 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050660u, new Vector3(421.8661f, 90f, -476.67664f), 1191) + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050660u, new Vector3(421.8661f, 90f, -476.67664f), 1191) { Fly = true, Land = true, @@ -362627,22 +441016,26 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - ref QuestSequence reference13 = ref span5[1]; + num++; + ref QuestSequence reference13 = ref span17[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1050661u, new Vector3(-136.09528f, 26.068634f, -509.39197f), 1191) + index2 = 1; + List list19 = new List(index2); + CollectionsMarshal.SetCount(list19, index2); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.Interact, 1050661u, new Vector3(-136.09528f, 26.068634f, -509.39197f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj13.Steps = list19; reference13 = obj13; - ref QuestSequence reference14 = ref span5[2]; + num++; + ref QuestSequence reference14 = ref span17[num]; QuestSequence obj14 = new QuestSequence { Sequence = 2 @@ -362650,29 +441043,35 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Emote, 1050661u, new Vector3(-136.09528f, 26.068634f, -509.39197f), 1191) + Span span20 = CollectionsMarshal.AsSpan(list20); + index2 = 0; + span20[index2] = new QuestStep(EInteractionType.Emote, 1050661u, new Vector3(-136.09528f, 26.068634f, -509.39197f), 1191) { Fly = true, Emote = EEmote.Cheer }; obj14.Steps = list20; reference14 = obj14; - ref QuestSequence reference15 = ref span5[3]; + num++; + ref QuestSequence reference15 = ref span17[num]; QuestSequence obj15 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Emote, 1050662u, new Vector3(149.7367f, 48.34552f, -463.5844f), 1191) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.Emote, 1050662u, new Vector3(149.7367f, 48.34552f, -463.5844f), 1191) { Fly = true, Emote = EEmote.Cheer }; obj15.Steps = list21; reference15 = obj15; - ref QuestSequence reference16 = ref span5[4]; + num++; + ref QuestSequence reference16 = ref span17[num]; QuestSequence obj16 = new QuestSequence { Sequence = 4 @@ -362680,7 +441079,9 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Emote, 1050727u, new Vector3(309.65125f, 71.38871f, -473.68585f), 1191) + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.Emote, 1050727u, new Vector3(309.65125f, 71.38871f, -473.68585f), 1191) { StopDistance = 0.25f, Fly = true, @@ -362688,15 +441089,18 @@ public static class AssemblyQuestLoader }; obj16.Steps = list22; reference16 = obj16; - ref QuestSequence reference17 = ref span5[5]; + num++; + ref QuestSequence reference17 = ref span17[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050660u, new Vector3(421.8661f, 90f, -476.67664f), 1191) + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050660u, new Vector3(421.8661f, 90f, -476.67664f), 1191) { StopDistance = 0.25f, Fly = true @@ -362710,13 +441114,16 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "liza"; + Span span24 = CollectionsMarshal.AsSpan(list24); + index = 0; + span24[index] = "liza"; questRoot4.Author = list24; - num = 4; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span6 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference18 = ref span6[0]; + index = 4; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + Span span25 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference18 = ref span25[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -362724,32 +441131,40 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049443u, new Vector3(-177.56934f, 29.999998f, -601.15967f), 1191); + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049443u, new Vector3(-177.56934f, 29.999998f, -601.15967f), 1191); obj18.Steps = list26; reference18 = obj18; - ref QuestSequence reference19 = ref span6[1]; + num++; + ref QuestSequence reference19 = ref span25[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - ref QuestStep reference20 = ref CollectionsMarshal.AsSpan(list27)[0]; + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + ref QuestStep reference20 = ref span27[num2]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(352.85733f, 82.089386f, -355.71875f), 1191) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - CollectionsMarshal.AsSpan(list28)[0] = 17677u; + index3 = 1; + List list28 = new List(index3); + CollectionsMarshal.SetCount(list28, index3); + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + span28[num3] = 17677u; obj20.KillEnemyDataIds = list28; reference20 = obj20; obj19.Steps = list27; reference19 = obj19; - ref QuestSequence reference21 = ref span6[2]; + num++; + ref QuestSequence reference21 = ref span25[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -362757,21 +441172,26 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1050664u, new Vector3(354.3297f, 82.042984f, -355.7641f), 1191) + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = new QuestStep(EInteractionType.Interact, 1050664u, new Vector3(354.3297f, 82.042984f, -355.7641f), 1191) { StopDistance = 7f }; obj21.Steps = list29; reference21 = obj21; - ref QuestSequence reference22 = ref span6[3]; + num++; + ref QuestSequence reference22 = ref span25[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list30 = new List(num2); - CollectionsMarshal.SetCount(list30, num2); - CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049443u, new Vector3(-177.56934f, 29.999998f, -601.15967f), 1191) + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num2 = 0; + span30[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049443u, new Vector3(-177.56934f, 29.999998f, -601.15967f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; @@ -362784,13 +441204,16 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - CollectionsMarshal.AsSpan(list31)[0] = "liza"; + Span span31 = CollectionsMarshal.AsSpan(list31); + index = 0; + span31[index] = "liza"; questRoot5.Author = list31; - num = 3; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span7 = CollectionsMarshal.AsSpan(list32); - ref QuestSequence reference23 = ref span7[0]; + index = 3; + List list32 = new List(index); + CollectionsMarshal.SetCount(list32, index); + Span span32 = CollectionsMarshal.AsSpan(list32); + num = 0; + ref QuestSequence reference23 = ref span32[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -362798,24 +441221,30 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051378u, new Vector3(-184.89362f, 29.978386f, -584.52734f), 1191); + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051378u, new Vector3(-184.89362f, 29.978386f, -584.52734f), 1191); obj23.Steps = list33; reference23 = obj23; - ref QuestSequence reference24 = ref span7[1]; + num++; + ref QuestSequence reference24 = ref span32[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1051379u, new Vector3(-324.51367f, 36.98768f, -554.00934f), 1191) + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.Interact, 1051379u, new Vector3(-324.51367f, 36.98768f, -554.00934f), 1191) { Fly = true }; obj24.Steps = list34; reference24 = obj24; - ref QuestSequence reference25 = ref span7[2]; + num++; + ref QuestSequence reference25 = ref span32[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -362823,7 +441252,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051380u, new Vector3(-323.72015f, 36.98504f, -555.8404f), 1191); + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051380u, new Vector3(-323.72015f, 36.98504f, -555.8404f), 1191); obj25.Steps = list35; reference25 = obj25; questRoot5.QuestSequence = list32; @@ -362833,21 +441264,26 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "liza"; questRoot6.Author = list36; - num = 3; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span8 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference26 = ref span8[0]; + index = 3; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference26 = ref span37[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049500u, new Vector3(-591.76013f, -2.503842f, -502.09814f), 1191) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049500u, new Vector3(-591.76013f, -2.503842f, -502.09814f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, @@ -362866,7 +441302,8 @@ public static class AssemblyQuestLoader }; obj26.Steps = list38; reference26 = obj26; - ref QuestSequence reference27 = ref span8[1]; + num++; + ref QuestSequence reference27 = ref span37[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -362874,8 +441311,9 @@ public static class AssemblyQuestLoader num2 = 5; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span9 = CollectionsMarshal.AsSpan(list39); - ref QuestStep reference28 = ref span9[0]; + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + ref QuestStep reference28 = ref span39[index2]; QuestStep obj28 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-731.0091f, 10.949384f, -113.12315f), 1191) { Fly = true @@ -362885,35 +441323,49 @@ public static class AssemblyQuestLoader num3 = 6; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - Span span10 = CollectionsMarshal.AsSpan(list40); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span40 = CollectionsMarshal.AsSpan(list40); + index3 = 0; + span40[index3] = null; + index3++; + span40[index3] = null; + index3++; + span40[index3] = null; + index3++; + span40[index3] = null; + index3++; + span40[index3] = null; + index3++; + span40[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions.CompletionQuestVariablesFlags = list40; skipConditions.StepIf = skipStepConditions; obj28.SkipConditions = skipConditions; reference28 = obj28; - ref QuestStep reference29 = ref span9[1]; + index2++; + ref QuestStep reference29 = ref span39[index2]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 2014091u, new Vector3(-732.44836f, 11.459534f, -110.185425f), 1191) { StopDistance = 4f }; - num3 = 6; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - Span span11 = CollectionsMarshal.AsSpan(list41); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list41 = new List(index3); + CollectionsMarshal.SetCount(list41, index3); + Span span41 = CollectionsMarshal.AsSpan(list41); + num3 = 0; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = null; + num3++; + span41[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj29.CompletionQuestVariablesFlags = list41; reference29 = obj29; - ref QuestStep reference30 = ref span9[2]; + index2++; + ref QuestStep reference30 = ref span39[index2]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 2014092u, new Vector3(-771.93866f, 8.2855835f, -37.583008f), 1191) { Fly = true @@ -362921,61 +441373,84 @@ public static class AssemblyQuestLoader num3 = 6; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span12 = CollectionsMarshal.AsSpan(list42); - span12[0] = null; - span12[1] = null; - span12[2] = null; - span12[3] = null; - span12[4] = null; - span12[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span42 = CollectionsMarshal.AsSpan(list42); + index3 = 0; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = null; + index3++; + span42[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj30.CompletionQuestVariablesFlags = list42; reference30 = obj30; - ref QuestStep reference31 = ref span9[3]; + index2++; + ref QuestStep reference31 = ref span39[index2]; QuestStep obj31 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-646.74786f, 17.395247f, 39.380535f), 1191) { Fly = true }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 6; - List list43 = new List(num3); - CollectionsMarshal.SetCount(list43, num3); - Span span13 = CollectionsMarshal.AsSpan(list43); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list43 = new List(index3); + CollectionsMarshal.SetCount(list43, index3); + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = null; + num3++; + span43[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list43; skipConditions2.StepIf = skipStepConditions2; obj31.SkipConditions = skipConditions2; reference31 = obj31; - ref QuestStep reference32 = ref span9[4]; + index2++; + ref QuestStep reference32 = ref span39[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2014093u, new Vector3(-645.3804f, 17.837708f, 39.230957f), 1191); num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span14 = CollectionsMarshal.AsSpan(list44); - span14[0] = null; - span14[1] = null; - span14[2] = null; - span14[3] = null; - span14[4] = null; - span14[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span44 = CollectionsMarshal.AsSpan(list44); + index3 = 0; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = null; + index3++; + span44[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list44; reference32 = questStep; obj27.Steps = list39; reference27 = obj27; - ref QuestSequence reference33 = ref span8[2]; + num++; + ref QuestSequence reference33 = ref span37[num]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049500u, new Vector3(-591.76013f, -2.503842f, -502.09814f), 1191) + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num2 = 0; + span45[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049500u, new Vector3(-591.76013f, -2.503842f, -502.09814f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts @@ -362989,13 +441464,16 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "liza"; + Span span46 = CollectionsMarshal.AsSpan(list46); + index = 0; + span46[index] = "liza"; questRoot7.Author = list46; - num = 4; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span15 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference34 = ref span15[0]; + index = 4; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + Span span47 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference34 = ref span47[num]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -363003,26 +441481,32 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191); + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191); obj33.Steps = list48; reference34 = obj33; - ref QuestSequence reference35 = ref span15[1]; + num++; + ref QuestSequence reference35 = ref span47[num]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - Span span16 = CollectionsMarshal.AsSpan(list49); - span16[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013971u, new Vector3(-286.15247f, 59.464355f, -263.6302f), 1191) + index2 = 2; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013971u, new Vector3(-286.15247f, 59.464355f, -263.6302f), 1191) { AetherCurrentId = 2818471u }; - span16[1] = new QuestStep(EInteractionType.Interact, 1050666u, new Vector3(-446.79944f, 37.14403f, -266.62097f), 1191); + num2++; + span49[num2] = new QuestStep(EInteractionType.Interact, 1050666u, new Vector3(-446.79944f, 37.14403f, -266.62097f), 1191); obj34.Steps = list49; reference35 = obj34; - ref QuestSequence reference36 = ref span15[2]; + num++; + ref QuestSequence reference36 = ref span47[num]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -363030,36 +441514,42 @@ public static class AssemblyQuestLoader num2 = 13; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span17 = CollectionsMarshal.AsSpan(list50); - span17[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-442.6795f, 40.021717f, -293.11053f), 1191) + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-442.6795f, 40.021717f, -293.11053f), 1191) { StopDistance = 1f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-447.5891f, 42.70318f, -318.90863f), 1191) + index2++; + span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-447.5891f, 42.70318f, -318.90863f), 1191) { StopDistance = 1f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-498.92047f, 40.894764f, -325.42456f), 1191) + index2++; + span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-498.92047f, 40.894764f, -325.42456f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - ref QuestStep reference37 = ref span17[3]; + index2++; + ref QuestStep reference37 = ref span50[index2]; QuestStep obj36 = new QuestStep(EInteractionType.Combat, null, new Vector3(-529.6522f, 41.341557f, -311.63504f), 1191) { StopDistance = 0.5f, DisableNavmesh = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = new ComplexCombatData + index3 = 1; + List list51 = new List(index3); + CollectionsMarshal.SetCount(list51, index3); + Span span51 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span51[num3] = new ComplexCombatData { DataId = 17679u, MinimumKillCount = 1u, @@ -363068,61 +441558,73 @@ public static class AssemblyQuestLoader obj36.ComplexCombatData = list51; obj36.CombatDelaySecondsAtStart = 2f; reference37 = obj36; - span17[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-539.79065f, 42.696747f, -313.67438f), 1191); - span17[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-549.0783f, 38.5679f, -342.1571f), 1191) + index2++; + span50[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-539.79065f, 42.696747f, -313.67438f), 1191); + index2++; + span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-549.0783f, 38.5679f, -342.1571f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[6] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-558.5067f, 35.95048f, -376.88058f), 1191) + index2++; + span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-558.5067f, 35.95048f, -376.88058f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[7] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-596.211f, 30.139477f, -387.31094f), 1191) + index2++; + span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-596.211f, 30.139477f, -387.31094f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[8] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-608.17377f, 17.933014f, -420.98196f), 1191) + index2++; + span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-608.17377f, 17.933014f, -420.98196f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[9] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-611.266f, 10.040784f, -443.45764f), 1191) + index2++; + span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-611.266f, 10.040784f, -443.45764f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[10] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-609.279f, 1.6734335f, -468.76624f), 1191) + index2++; + span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-609.279f, 1.6734335f, -468.76624f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[11] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191) + index2++; + span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191) { StopDistance = 1f, NpcWaitDistance = 5f, DisableNavmesh = true }; - span17[12] = new QuestStep(EInteractionType.Interact, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191); + index2++; + span50[index2] = new QuestStep(EInteractionType.Interact, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191); obj35.Steps = list50; reference36 = obj35; - ref QuestSequence reference38 = ref span15[3]; + num++; + ref QuestSequence reference38 = ref span47[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list52 = new List(num2); - CollectionsMarshal.SetCount(list52, num2); - CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191); + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num2 = 0; + span52[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191); obj37.Steps = list52; reference38 = obj37; questRoot7.QuestSequence = list47; @@ -363132,13 +441634,16 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - CollectionsMarshal.AsSpan(list53)[0] = "liza"; + Span span53 = CollectionsMarshal.AsSpan(list53); + index = 0; + span53[index] = "liza"; questRoot8.Author = list53; - num = 3; - List list54 = new List(num); - CollectionsMarshal.SetCount(list54, num); - Span span18 = CollectionsMarshal.AsSpan(list54); - ref QuestSequence reference39 = ref span18[0]; + index = 3; + List list54 = new List(index); + CollectionsMarshal.SetCount(list54, index); + Span span54 = CollectionsMarshal.AsSpan(list54); + num = 0; + ref QuestSequence reference39 = ref span54[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -363146,7 +441651,9 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049488u, new Vector3(-195.23926f, 31.00003f, 142.90063f), 1191) + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049488u, new Vector3(-195.23926f, 31.00003f, 142.90063f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundElectropeStrike, @@ -363165,26 +441672,30 @@ public static class AssemblyQuestLoader }; obj38.Steps = list55; reference39 = obj38; - ref QuestSequence reference40 = ref span18[1]; + num++; + ref QuestSequence reference40 = ref span54[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span19 = CollectionsMarshal.AsSpan(list56); - span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-50.850063f, 67.24198f, 182.26367f), 1191) + index2 = 2; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-50.850063f, 67.24198f, 182.26367f), 1191) { Fly = true }; - span19[1] = new QuestStep(EInteractionType.Emote, 1050667u, new Vector3(-51.46869f, 66.87813f, 180.07166f), 1191) + num2++; + span56[num2] = new QuestStep(EInteractionType.Emote, 1050667u, new Vector3(-51.46869f, 66.87813f, 180.07166f), 1191) { Emote = EEmote.Poke }; obj39.Steps = list56; reference40 = obj39; - ref QuestSequence reference41 = ref span18[2]; + num++; + ref QuestSequence reference41 = ref span54[num]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -363192,7 +441703,9 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049488u, new Vector3(-195.23926f, 31.00003f, 142.90063f), 1191) + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049488u, new Vector3(-195.23926f, 31.00003f, 142.90063f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundElectropeStrike }; @@ -363205,21 +441718,26 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "liza"; + Span span58 = CollectionsMarshal.AsSpan(list58); + index = 0; + span58[index] = "liza"; questRoot9.Author = list58; - num = 3; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span20 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference42 = ref span20[0]; + index = 3; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + Span span59 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference42 = ref span59[num]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049489u, new Vector3(-250.04962f, 31.000015f, 134.7218f), 1191) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049489u, new Vector3(-250.04962f, 31.000015f, 134.7218f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundElectropeStrike, @@ -363238,7 +441756,8 @@ public static class AssemblyQuestLoader }; obj41.Steps = list60; reference42 = obj41; - ref QuestSequence reference43 = ref span20[1]; + num++; + ref QuestSequence reference43 = ref span59[num]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -363246,8 +441765,9 @@ public static class AssemblyQuestLoader num2 = 2; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span21 = CollectionsMarshal.AsSpan(list61); - ref QuestStep reference44 = ref span21[0]; + Span span61 = CollectionsMarshal.AsSpan(list61); + index2 = 0; + ref QuestStep reference44 = ref span61[index2]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(-174.01418f, 31.361284f, 268.5205f), 1191) { StopDistance = 0.5f, @@ -363257,23 +441777,32 @@ public static class AssemblyQuestLoader num3 = 2; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - Span span22 = CollectionsMarshal.AsSpan(list62); - span22[0] = 17682u; - span22[1] = 17683u; + Span span62 = CollectionsMarshal.AsSpan(list62); + index3 = 0; + span62[index3] = 17682u; + index3++; + span62[index3] = 17683u; obj43.KillEnemyDataIds = list62; - num3 = 6; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - Span span23 = CollectionsMarshal.AsSpan(list63); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + Span span63 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = null; + num3++; + span63[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj43.CompletionQuestVariablesFlags = list63; reference44 = obj43; - ref QuestStep reference45 = ref span21[1]; + index2++; + ref QuestStep reference45 = ref span61[index2]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, null, new Vector3(-352.59204f, 39.809544f, -44.773865f), 1191) { StopDistance = 0.5f, @@ -363283,33 +441812,44 @@ public static class AssemblyQuestLoader num3 = 2; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span24 = CollectionsMarshal.AsSpan(list64); - span24[0] = 17680u; - span24[1] = 17681u; + Span span64 = CollectionsMarshal.AsSpan(list64); + index3 = 0; + span64[index3] = 17680u; + index3++; + span64[index3] = 17681u; obj44.KillEnemyDataIds = list64; - num3 = 6; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span25 = CollectionsMarshal.AsSpan(list65); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list65 = new List(index3); + CollectionsMarshal.SetCount(list65, index3); + Span span65 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = null; + num3++; + span65[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj44.CompletionQuestVariablesFlags = list65; reference45 = obj44; obj42.Steps = list61; reference43 = obj42; - ref QuestSequence reference46 = ref span20[2]; + num++; + ref QuestSequence reference46 = ref span59[num]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049489u, new Vector3(-250.04962f, 31.000015f, 134.7218f), 1191) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049489u, new Vector3(-250.04962f, 31.000015f, 134.7218f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundElectropeStrike }; @@ -363322,13 +441862,16 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "liza"; + Span span67 = CollectionsMarshal.AsSpan(list67); + index = 0; + span67[index] = "liza"; questRoot10.Author = list67; - num = 4; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span26 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference47 = ref span26[0]; + index = 4; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + Span span68 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference47 = ref span68[num]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -363336,35 +441879,47 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049505u, new Vector3(-209.85736f, 7.49638f, 595.9104f), 1191); + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049505u, new Vector3(-209.85736f, 7.49638f, 595.9104f), 1191); obj46.Steps = list69; reference47 = obj46; - ref QuestSequence reference48 = ref span26[1]; + num++; + ref QuestSequence reference48 = ref span68[num]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - num2 = 7; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span27 = CollectionsMarshal.AsSpan(list70); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-392.35907f, -14.000012f, 635.3141f), 1191); - span27[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-415.87146f, -13.798597f, 656.2935f), 1191); - span27[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-442.4273f, -14.000011f, 696.89746f), 1191); - span27[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-457.70477f, -14.000011f, 697.2411f), 1191); - span27[4] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013973u, new Vector3(-457.66388f, -13.412781f, 693.1105f), 1191) + index2 = 7; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-392.35907f, -14.000012f, 635.3141f), 1191); + num2++; + span70[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-415.87146f, -13.798597f, 656.2935f), 1191); + num2++; + span70[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-442.4273f, -14.000011f, 696.89746f), 1191); + num2++; + span70[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-457.70477f, -14.000011f, 697.2411f), 1191); + num2++; + span70[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013973u, new Vector3(-457.66388f, -13.412781f, 693.1105f), 1191) { StopDistance = 4.5f, Comment = "While counterintuitive, this is the closest aether current/msq quest", AetherCurrentId = 2818473u }; - span27[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81693f, -2.2232819f, 665.8315f), 1191); - ref QuestStep reference49 = ref span27[6]; + num2++; + span70[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81693f, -2.2232819f, 665.8315f), 1191); + num2++; + ref QuestStep reference49 = ref span70[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1050668u, new Vector3(195.08655f, 88.5662f, 669.36743f), 1191); num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = new DialogueChoice + Span span71 = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span71[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZF105_05159_Q1_100_006") @@ -363373,7 +441928,8 @@ public static class AssemblyQuestLoader reference49 = questStep2; obj47.Steps = list70; reference48 = obj47; - ref QuestSequence reference50 = ref span26[2]; + num++; + ref QuestSequence reference50 = ref span68[num]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -363381,74 +441937,105 @@ public static class AssemblyQuestLoader num2 = 4; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span28 = CollectionsMarshal.AsSpan(list72); - ref QuestStep reference51 = ref span28[0]; + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + ref QuestStep reference51 = ref span72[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2014094u, new Vector3(216.44922f, 89.15845f, 657.3739f), 1191); - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span29 = CollectionsMarshal.AsSpan(list73); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list73 = new List(index3); + CollectionsMarshal.SetCount(list73, index3); + Span span73 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = null; + num3++; + span73[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list73; reference51 = questStep3; - ref QuestStep reference52 = ref span28[1]; + index2++; + ref QuestStep reference52 = ref span72[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2014096u, new Vector3(246.8451f, 90.71484f, 646.78406f), 1191); num3 = 6; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - Span span30 = CollectionsMarshal.AsSpan(list74); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span74 = CollectionsMarshal.AsSpan(list74); + index3 = 0; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list74; reference52 = questStep4; - ref QuestStep reference53 = ref span28[2]; + index2++; + ref QuestStep reference53 = ref span72[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2014217u, new Vector3(232.47119f, 89.98242f, 614.4961f), 1191); - num3 = 6; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - Span span31 = CollectionsMarshal.AsSpan(list75); - span31[0] = null; - span31[1] = null; - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span75 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list75; reference53 = questStep5; - ref QuestStep reference54 = ref span28[3]; + index2++; + ref QuestStep reference54 = ref span72[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2014095u, new Vector3(218.34131f, 88.822754f, 621.7594f), 1191); num3 = 6; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span32 = CollectionsMarshal.AsSpan(list76); - span32[0] = null; - span32[1] = null; - span32[2] = null; - span32[3] = null; - span32[4] = null; - span32[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span76 = CollectionsMarshal.AsSpan(list76); + index3 = 0; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list76; reference54 = questStep6; obj48.Steps = list72; reference50 = obj48; - ref QuestSequence reference55 = ref span26[3]; + num++; + ref QuestSequence reference55 = ref span68[num]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050668u, new Vector3(195.08655f, 88.5662f, 669.36743f), 1191); + index2 = 1; + List list77 = new List(index2); + CollectionsMarshal.SetCount(list77, index2); + Span span77 = CollectionsMarshal.AsSpan(list77); + num2 = 0; + span77[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050668u, new Vector3(195.08655f, 88.5662f, 669.36743f), 1191); obj49.Steps = list77; reference55 = obj49; questRoot10.QuestSequence = list68; @@ -363458,13 +442045,16 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - CollectionsMarshal.AsSpan(list78)[0] = "liza"; + Span span78 = CollectionsMarshal.AsSpan(list78); + index = 0; + span78[index] = "liza"; questRoot11.Author = list78; - num = 4; - List list79 = new List(num); - CollectionsMarshal.SetCount(list79, num); - Span span33 = CollectionsMarshal.AsSpan(list79); - ref QuestSequence reference56 = ref span33[0]; + index = 4; + List list79 = new List(index); + CollectionsMarshal.SetCount(list79, index); + Span span79 = CollectionsMarshal.AsSpan(list79); + num = 0; + ref QuestSequence reference56 = ref span79[num]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -363472,32 +442062,40 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050805u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191); + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050805u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191); obj50.Steps = list80; reference56 = obj50; - ref QuestSequence reference57 = ref span33[1]; + num++; + ref QuestSequence reference57 = ref span79[num]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list81)[0]; + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + ref QuestStep reference58 = ref span81[num2]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, null, new Vector3(213.87216f, 92.47675f, -298.49872f), 1191) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - CollectionsMarshal.AsSpan(list82)[0] = 17684u; + index3 = 1; + List list82 = new List(index3); + CollectionsMarshal.SetCount(list82, index3); + Span span82 = CollectionsMarshal.AsSpan(list82); + num3 = 0; + span82[num3] = 17684u; obj52.KillEnemyDataIds = list82; reference58 = obj52; obj51.Steps = list81; reference57 = obj51; - ref QuestSequence reference59 = ref span33[2]; + num++; + ref QuestSequence reference59 = ref span79[num]; QuestSequence obj53 = new QuestSequence { Sequence = 2 @@ -363505,28 +442103,35 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1050803u, new Vector3(217.57837f, 92.40237f, -296.19293f), 1191) + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + span83[index2] = new QuestStep(EInteractionType.Interact, 1050803u, new Vector3(217.57837f, 92.40237f, -296.19293f), 1191) { StopDistance = 7f }; obj53.Steps = list83; reference59 = obj53; - ref QuestSequence reference60 = ref span33[3]; + num++; + ref QuestSequence reference60 = ref span79[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 4; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - Span span34 = CollectionsMarshal.AsSpan(list84); - span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(184.68884f, 99.24859f, -171.97504f), 1191); - span34[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(148.14713f, 100.07344f, -135.20776f), 1191); - span34[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013966u, new Vector3(77.53113f, 93.095215f, -144.9455f), 1191) + index2 = 4; + List list84 = new List(index2); + CollectionsMarshal.SetCount(list84, index2); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(184.68884f, 99.24859f, -171.97504f), 1191); + num2++; + span84[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(148.14713f, 100.07344f, -135.20776f), 1191); + num2++; + span84[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013966u, new Vector3(77.53113f, 93.095215f, -144.9455f), 1191) { AetherCurrentId = 2818468u }; - span34[3] = new QuestStep(EInteractionType.CompleteQuest, 1050946u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) + num2++; + span84[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050946u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; @@ -363539,13 +442144,16 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "liza"; + Span span85 = CollectionsMarshal.AsSpan(list85); + index = 0; + span85[index] = "liza"; questRoot12.Author = list85; - num = 5; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span35 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference61 = ref span35[0]; + index = 5; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + Span span86 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference61 = ref span86[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -363553,7 +442161,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050806u, new Vector3(-151.99518f, 34.94368f, -581.23145f), 1191) + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050806u, new Vector3(-151.99518f, 34.94368f, -581.23145f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, @@ -363572,18 +442182,22 @@ public static class AssemblyQuestLoader }; obj55.Steps = list87; reference61 = obj55; - ref QuestSequence reference62 = ref span35[1]; + num++; + ref QuestSequence reference62 = ref span86[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1050802u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191); + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Interact, 1050802u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191); obj56.Steps = list88; reference62 = obj56; - ref QuestSequence reference63 = ref span35[2]; + num++; + ref QuestSequence reference63 = ref span86[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -363591,7 +442205,9 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list89)[0]; + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + ref QuestStep reference64 = ref span89[index2]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1050807u, new Vector3(-165.97241f, 25.979595f, -502.80005f), 1191) { Fly = true @@ -363599,7 +442215,9 @@ public static class AssemblyQuestLoader num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = new DialogueChoice + Span span90 = CollectionsMarshal.AsSpan(list90); + index3 = 0; + span90[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZF202_05161_Q1_000_001"), @@ -363609,33 +442227,42 @@ public static class AssemblyQuestLoader reference64 = obj58; obj57.Steps = list89; reference63 = obj57; - ref QuestSequence reference65 = ref span35[3]; + num++; + ref QuestSequence reference65 = ref span86[num]; QuestSequence obj59 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - Span span36 = CollectionsMarshal.AsSpan(list91); - ref QuestStep reference66 = ref span36[0]; + index2 = 3; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + ref QuestStep reference66 = ref span91[num2]; QuestStep obj60 = new QuestStep(EInteractionType.Interact, 2014035u, new Vector3(-61.478638f, 35.355103f, -294.75854f), 1191) { Fly = true }; - num3 = 6; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span37 = CollectionsMarshal.AsSpan(list92); - span37[0] = null; - span37[1] = null; - span37[2] = null; - span37[3] = null; - span37[4] = null; - span37[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list92 = new List(index3); + CollectionsMarshal.SetCount(list92, index3); + Span span92 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = null; + num3++; + span92[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj60.CompletionQuestVariablesFlags = list92; reference66 = obj60; - ref QuestStep reference67 = ref span36[1]; + num2++; + ref QuestStep reference67 = ref span91[num2]; QuestStep obj61 = new QuestStep(EInteractionType.Interact, 2014036u, new Vector3(-99.53461f, 36.9115f, -233.47827f), 1191) { Fly = true @@ -363643,35 +442270,49 @@ public static class AssemblyQuestLoader num3 = 6; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - Span span38 = CollectionsMarshal.AsSpan(list93); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span93 = CollectionsMarshal.AsSpan(list93); + index3 = 0; + span93[index3] = null; + index3++; + span93[index3] = null; + index3++; + span93[index3] = null; + index3++; + span93[index3] = null; + index3++; + span93[index3] = null; + index3++; + span93[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj61.CompletionQuestVariablesFlags = list93; reference67 = obj61; - ref QuestStep reference68 = ref span36[2]; + num2++; + ref QuestStep reference68 = ref span91[num2]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 2014037u, new Vector3(-38.31543f, 37.979614f, -221.5763f), 1191) { Fly = true }; - num3 = 6; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span39 = CollectionsMarshal.AsSpan(list94); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + Span span94 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span94[num3] = null; + num3++; + span94[num3] = null; + num3++; + span94[num3] = null; + num3++; + span94[num3] = null; + num3++; + span94[num3] = null; + num3++; + span94[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj62.CompletionQuestVariablesFlags = list94; reference68 = obj62; obj59.Steps = list91; reference65 = obj59; - ref QuestSequence reference69 = ref span35[4]; + num++; + ref QuestSequence reference69 = ref span86[num]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue @@ -363679,7 +442320,9 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050802u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) + Span span95 = CollectionsMarshal.AsSpan(list95); + index2 = 0; + span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050802u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, @@ -363694,21 +442337,26 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + span96[index] = "liza"; questRoot13.Author = list96; - num = 5; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span40 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference70 = ref span40[0]; + index = 5; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + Span span97 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference70 = ref span97[num]; QuestSequence obj64 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050802u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050802u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, @@ -363727,7 +442375,8 @@ public static class AssemblyQuestLoader }; obj64.Steps = list98; reference70 = obj64; - ref QuestSequence reference71 = ref span40[1]; + num++; + ref QuestSequence reference71 = ref span97[num]; QuestSequence obj65 = new QuestSequence { Sequence = 1 @@ -363735,27 +442384,33 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1050809u, new Vector3(-59.372925f, 42.99715f, -637.2626f), 1191) + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.Interact, 1050809u, new Vector3(-59.372925f, 42.99715f, -637.2626f), 1191) { Fly = true }; obj65.Steps = list99; reference71 = obj65; - ref QuestSequence reference72 = ref span40[2]; + num++; + ref QuestSequence reference72 = ref span97[num]; QuestSequence obj66 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1050810u, new Vector3(-44.480103f, 33.495888f, -306.99628f), 1191) + index2 = 1; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + span100[num2] = new QuestStep(EInteractionType.Interact, 1050810u, new Vector3(-44.480103f, 33.495888f, -306.99628f), 1191) { Fly = true }; obj66.Steps = list100; reference72 = obj66; - ref QuestSequence reference73 = ref span40[3]; + num++; + ref QuestSequence reference73 = ref span97[num]; QuestSequence obj67 = new QuestSequence { Sequence = 3 @@ -363763,21 +442418,26 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1050810u, new Vector3(516.28033f, 145.60376f, 228.34976f), 1191) + Span span101 = CollectionsMarshal.AsSpan(list101); + index2 = 0; + span101[index2] = new QuestStep(EInteractionType.Interact, 1050810u, new Vector3(516.28033f, 145.60376f, 228.34976f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundYyasulaniStation }; obj67.Steps = list101; reference73 = obj67; - ref QuestSequence reference74 = ref span40[4]; + num++; + ref QuestSequence reference74 = ref span97[num]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050806u, new Vector3(-151.99518f, 34.94368f, -581.23145f), 1191) + index2 = 1; + List list102 = new List(index2); + CollectionsMarshal.SetCount(list102, index2); + Span span102 = CollectionsMarshal.AsSpan(list102); + num2 = 0; + span102[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050806u, new Vector3(-151.99518f, 34.94368f, -581.23145f), 1191) { StopDistance = 5f, NextQuestId = new QuestId(5163) @@ -363791,13 +442451,16 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "liza"; + Span span103 = CollectionsMarshal.AsSpan(list103); + index = 0; + span103[index] = "liza"; questRoot14.Author = list103; - num = 4; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span41 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference75 = ref span41[0]; + index = 4; + List list104 = new List(index); + CollectionsMarshal.SetCount(list104, index); + Span span104 = CollectionsMarshal.AsSpan(list104); + num = 0; + ref QuestSequence reference75 = ref span104[num]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -363805,7 +442468,9 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050806u, new Vector3(-151.99518f, 34.94368f, -581.23145f), 1191) + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050806u, new Vector3(-151.99518f, 34.94368f, -581.23145f), 1191) { StopDistance = 5f, Fly = true, @@ -363825,21 +442490,25 @@ public static class AssemblyQuestLoader }; obj69.Steps = list105; reference75 = obj69; - ref QuestSequence reference76 = ref span41[1]; + num++; + ref QuestSequence reference76 = ref span104[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1050957u, new Vector3(-59.372925f, 42.99715f, -637.2626f), 1191) + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.Interact, 1050957u, new Vector3(-59.372925f, 42.99715f, -637.2626f), 1191) { Fly = true }; obj70.Steps = list106; reference76 = obj70; - ref QuestSequence reference77 = ref span41[2]; + num++; + ref QuestSequence reference77 = ref span104[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -363847,8 +442516,9 @@ public static class AssemblyQuestLoader num2 = 2; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span42 = CollectionsMarshal.AsSpan(list107); - ref QuestStep reference78 = ref span42[0]; + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + ref QuestStep reference78 = ref span107[index2]; QuestStep obj72 = new QuestStep(EInteractionType.Combat, 2014063u, new Vector3(46.00586f, 34.01233f, -411.33746f), 1191) { StopDistance = 0.5f, @@ -363858,21 +442528,30 @@ public static class AssemblyQuestLoader num3 = 1; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - CollectionsMarshal.AsSpan(list108)[0] = 17685u; + Span span108 = CollectionsMarshal.AsSpan(list108); + index3 = 0; + span108[index3] = 17685u; obj72.KillEnemyDataIds = list108; - num3 = 6; - List list109 = new List(num3); - CollectionsMarshal.SetCount(list109, num3); - Span span43 = CollectionsMarshal.AsSpan(list109); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list109 = new List(index3); + CollectionsMarshal.SetCount(list109, index3); + Span span109 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + span109[num3] = null; + num3++; + span109[num3] = null; + num3++; + span109[num3] = null; + num3++; + span109[num3] = null; + num3++; + span109[num3] = null; + num3++; + span109[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj72.CompletionQuestVariablesFlags = list109; reference78 = obj72; - ref QuestStep reference79 = ref span42[1]; + index2++; + ref QuestStep reference79 = ref span107[index2]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2014077u, new Vector3(-22.110352f, 34.6532f, -268.9403f), 1191) { StopDistance = 0.5f, @@ -363882,31 +442561,42 @@ public static class AssemblyQuestLoader num3 = 1; List list110 = new List(num3); CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = 17685u; + Span span110 = CollectionsMarshal.AsSpan(list110); + index3 = 0; + span110[index3] = 17685u; obj73.KillEnemyDataIds = list110; - num3 = 6; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - Span span44 = CollectionsMarshal.AsSpan(list111); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list111 = new List(index3); + CollectionsMarshal.SetCount(list111, index3); + Span span111 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span111[num3] = null; + num3++; + span111[num3] = null; + num3++; + span111[num3] = null; + num3++; + span111[num3] = null; + num3++; + span111[num3] = null; + num3++; + span111[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj73.CompletionQuestVariablesFlags = list111; reference79 = obj73; obj71.Steps = list107; reference77 = obj71; - ref QuestSequence reference80 = ref span41[3]; + num++; + ref QuestSequence reference80 = ref span104[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050811u, new Vector3(-97.0932f, 28.796848f, -446.7079f), 1191) + index2 = 1; + List list112 = new List(index2); + CollectionsMarshal.SetCount(list112, index2); + Span span112 = CollectionsMarshal.AsSpan(list112); + num2 = 0; + span112[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050811u, new Vector3(-97.0932f, 28.796848f, -446.7079f), 1191) { Fly = true }; @@ -363919,13 +442609,16 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - CollectionsMarshal.AsSpan(list113)[0] = "liza"; + Span span113 = CollectionsMarshal.AsSpan(list113); + index = 0; + span113[index] = "liza"; questRoot15.Author = list113; - num = 3; - List list114 = new List(num); - CollectionsMarshal.SetCount(list114, num); - Span span45 = CollectionsMarshal.AsSpan(list114); - ref QuestSequence reference81 = ref span45[0]; + index = 3; + List list114 = new List(index); + CollectionsMarshal.SetCount(list114, index); + Span span114 = CollectionsMarshal.AsSpan(list114); + num = 0; + ref QuestSequence reference81 = ref span114[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -363933,19 +442626,23 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051388u, new Vector3(-185.47345f, 0.66f, -42.648987f), 1186); + Span span115 = CollectionsMarshal.AsSpan(list115); + index2 = 0; + span115[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051388u, new Vector3(-185.47345f, 0.66f, -42.648987f), 1186); obj75.Steps = list115; reference81 = obj75; - ref QuestSequence reference82 = ref span45[1]; + num++; + ref QuestSequence reference82 = ref span114[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - Span span46 = CollectionsMarshal.AsSpan(list116); - span46[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-445.9273f, 13.999773f, 192.44756f), 1186) + index2 = 2; + List list116 = new List(index2); + CollectionsMarshal.SetCount(list116, index2); + Span span116 = CollectionsMarshal.AsSpan(list116); + num2 = 0; + span116[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-445.9273f, 13.999773f, 192.44756f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -363953,10 +442650,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineResidentialSector } }; - span46[1] = new QuestStep(EInteractionType.Interact, 1050492u, new Vector3(-446.25012f, 13.999722f, 195.23914f), 1186); + num2++; + span116[num2] = new QuestStep(EInteractionType.Interact, 1050492u, new Vector3(-446.25012f, 13.999722f, 195.23914f), 1186); obj76.Steps = list116; reference82 = obj76; - ref QuestSequence reference83 = ref span45[2]; + num++; + ref QuestSequence reference83 = ref span114[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -363964,14 +442663,17 @@ public static class AssemblyQuestLoader num2 = 3; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span47 = CollectionsMarshal.AsSpan(list117); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-445.1605f, 13.999999f, 162.65598f), 1186); - span47[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-440.51483f, 13.999909f, 154.73817f), 1186) + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-445.1605f, 13.999999f, 162.65598f), 1186); + index2++; + span117[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-440.51483f, 13.999909f, 154.73817f), 1186) { DisableNavmesh = true, Comment = "For some reason navmesh wanders off through the whole area" }; - span47[2] = new QuestStep(EInteractionType.CompleteQuest, 1051388u, new Vector3(-185.47345f, 0.66f, -42.648987f), 1186) + index2++; + span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051388u, new Vector3(-185.47345f, 0.66f, -42.648987f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -363988,26 +442690,33 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - CollectionsMarshal.AsSpan(list118)[0] = "liza"; + Span span118 = CollectionsMarshal.AsSpan(list118); + index = 0; + span118[index] = "liza"; questRoot16.Author = list118; - num = 5; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span48 = CollectionsMarshal.AsSpan(list119); - ref QuestSequence reference84 = ref span48[0]; + index = 5; + List list119 = new List(index); + CollectionsMarshal.SetCount(list119, index); + Span span119 = CollectionsMarshal.AsSpan(list119); + num = 0; + ref QuestSequence reference84 = ref span119[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - ref QuestStep reference85 = ref CollectionsMarshal.AsSpan(list120)[0]; + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + ref QuestStep reference85 = ref span120[num2]; QuestStep questStep7 = new QuestStep(EInteractionType.AcceptQuest, 1051389u, new Vector3(501.12158f, 59.999813f, 163.83606f), 1186); num3 = 1; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - CollectionsMarshal.AsSpan(list121)[0] = new DialogueChoice + Span span121 = CollectionsMarshal.AsSpan(list121); + index3 = 0; + span121[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZG002_05165_Q1_000_000"), @@ -364017,7 +442726,8 @@ public static class AssemblyQuestLoader reference85 = questStep7; obj78.Steps = list120; reference84 = obj78; - ref QuestSequence reference86 = ref span48[1]; + num++; + ref QuestSequence reference86 = ref span119[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -364025,63 +442735,88 @@ public static class AssemblyQuestLoader num2 = 3; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span49 = CollectionsMarshal.AsSpan(list122); - ref QuestStep reference87 = ref span49[0]; + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + ref QuestStep reference87 = ref span122[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2014339u, new Vector3(483.08533f, 61.386963f, 196.09363f), 1186); - num3 = 6; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - Span span50 = CollectionsMarshal.AsSpan(list123); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list123 = new List(index3); + CollectionsMarshal.SetCount(list123, index3); + Span span123 = CollectionsMarshal.AsSpan(list123); + num3 = 0; + span123[num3] = null; + num3++; + span123[num3] = null; + num3++; + span123[num3] = null; + num3++; + span123[num3] = null; + num3++; + span123[num3] = null; + num3++; + span123[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list123; reference87 = questStep8; - ref QuestStep reference88 = ref span49[1]; + index2++; + ref QuestStep reference88 = ref span122[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2014340u, new Vector3(444.3275f, 61.356445f, 242.38953f), 1186); num3 = 6; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - Span span51 = CollectionsMarshal.AsSpan(list124); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span124 = CollectionsMarshal.AsSpan(list124); + index3 = 0; + span124[index3] = null; + index3++; + span124[index3] = null; + index3++; + span124[index3] = null; + index3++; + span124[index3] = null; + index3++; + span124[index3] = null; + index3++; + span124[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list124; reference88 = questStep9; - ref QuestStep reference89 = ref span49[2]; + index2++; + ref QuestStep reference89 = ref span122[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2014338u, new Vector3(456.2904f, 61.41748f, 68.89441f), 1186); - num3 = 6; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span52 = CollectionsMarshal.AsSpan(list125); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list125 = new List(index3); + CollectionsMarshal.SetCount(list125, index3); + Span span125 = CollectionsMarshal.AsSpan(list125); + num3 = 0; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = null; + num3++; + span125[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list125; reference89 = questStep10; obj79.Steps = list122; reference86 = obj79; - ref QuestSequence reference90 = ref span48[2]; + num++; + ref QuestSequence reference90 = ref span119[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1051390u, new Vector3(500.08386f, 59.999813f, 161.4862f), 1186); + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.Interact, 1051390u, new Vector3(500.08386f, 59.999813f, 161.4862f), 1186); obj80.Steps = list126; reference90 = obj80; - ref QuestSequence reference91 = ref span48[3]; + num++; + ref QuestSequence reference91 = ref span119[num]; QuestSequence obj81 = new QuestSequence { Sequence = 3 @@ -364089,21 +442824,26 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Emote, 1051391u, new Vector3(497.94763f, 59.99981f, 160.84534f), 1186) + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.Emote, 1051391u, new Vector3(497.94763f, 59.99981f, 160.84534f), 1186) { Emote = EEmote.Doubt }; obj81.Steps = list127; reference91 = obj81; - ref QuestSequence reference92 = ref span48[4]; + num++; + ref QuestSequence reference92 = ref span119[num]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051390u, new Vector3(500.08386f, 59.999813f, 161.4862f), 1186); + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051390u, new Vector3(500.08386f, 59.999813f, 161.4862f), 1186); obj82.Steps = list128; reference92 = obj82; questRoot16.QuestSequence = list119; @@ -364113,13 +442853,16 @@ public static class AssemblyQuestLoader num = 1; List list129 = new List(num); CollectionsMarshal.SetCount(list129, num); - CollectionsMarshal.AsSpan(list129)[0] = "liza"; + Span span129 = CollectionsMarshal.AsSpan(list129); + index = 0; + span129[index] = "liza"; questRoot17.Author = list129; - num = 5; - List list130 = new List(num); - CollectionsMarshal.SetCount(list130, num); - Span span53 = CollectionsMarshal.AsSpan(list130); - ref QuestSequence reference93 = ref span53[0]; + index = 5; + List list130 = new List(index); + CollectionsMarshal.SetCount(list130, index); + Span span130 = CollectionsMarshal.AsSpan(list130); + num = 0; + ref QuestSequence reference93 = ref span130[num]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -364127,21 +442870,27 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051393u, new Vector3(-315.4193f, 14f, 155.7793f), 1186); + Span span131 = CollectionsMarshal.AsSpan(list131); + index2 = 0; + span131[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051393u, new Vector3(-315.4193f, 14f, 155.7793f), 1186); obj83.Steps = list131; reference93 = obj83; - ref QuestSequence reference94 = ref span53[1]; + num++; + ref QuestSequence reference94 = ref span130[num]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1051393u, new Vector3(-315.4193f, 14f, 155.7793f), 1186); + index2 = 1; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + span132[num2] = new QuestStep(EInteractionType.Interact, 1051393u, new Vector3(-315.4193f, 14f, 155.7793f), 1186); obj84.Steps = list132; reference94 = obj84; - ref QuestSequence reference95 = ref span53[2]; + num++; + ref QuestSequence reference95 = ref span130[num]; QuestSequence obj85 = new QuestSequence { Sequence = 2 @@ -364149,7 +442898,9 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list133)[0]; + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + ref QuestStep reference96 = ref span133[index2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 1051393u, new Vector3(-206.10861f, 2.1999774f, 213.03752f), 1186) { StopDistance = 0.25f @@ -364157,7 +442908,9 @@ public static class AssemblyQuestLoader num3 = 1; List list134 = new List(num3); CollectionsMarshal.SetCount(list134, num3); - CollectionsMarshal.AsSpan(list134)[0] = new DialogueChoice + Span span134 = CollectionsMarshal.AsSpan(list134); + index3 = 0; + span134[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZG003_05166_Q2_000_000"), @@ -364167,21 +442920,25 @@ public static class AssemblyQuestLoader reference96 = obj86; obj85.Steps = list133; reference95 = obj85; - ref QuestSequence reference97 = ref span53[3]; + num++; + ref QuestSequence reference97 = ref span130[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1051393u, new Vector3(-23.899967f, -5.8484287f, 230.24123f), 1186) + index2 = 1; + List list135 = new List(index2); + CollectionsMarshal.SetCount(list135, index2); + Span span135 = CollectionsMarshal.AsSpan(list135); + num2 = 0; + span135[num2] = new QuestStep(EInteractionType.Interact, 1051393u, new Vector3(-23.899967f, -5.8484287f, 230.24123f), 1186) { StopDistance = 0.25f }; obj87.Steps = list135; reference97 = obj87; - ref QuestSequence reference98 = ref span53[4]; + num++; + ref QuestSequence reference98 = ref span130[num]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue @@ -364189,7 +442946,9 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051395u, new Vector3(-3.55542f, 0.0005434508f, -85.89307f), 1186) + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span136[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051395u, new Vector3(-3.55542f, 0.0005434508f, -85.89307f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364206,24 +442965,30 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - CollectionsMarshal.AsSpan(list137)[0] = "liza"; + Span span137 = CollectionsMarshal.AsSpan(list137); + index = 0; + span137[index] = "liza"; questRoot18.Author = list137; - num = 4; - List list138 = new List(num); - CollectionsMarshal.SetCount(list138, num); - Span span54 = CollectionsMarshal.AsSpan(list138); - ref QuestSequence reference99 = ref span54[0]; + index = 4; + List list138 = new List(index); + CollectionsMarshal.SetCount(list138, index); + Span span138 = CollectionsMarshal.AsSpan(list138); + num = 0; + ref QuestSequence reference99 = ref span138[num]; QuestSequence obj89 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051396u, new Vector3(-346.7918f, 9.519508f, 18.20398f), 1186); + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + Span span139 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span139[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051396u, new Vector3(-346.7918f, 9.519508f, 18.20398f), 1186); obj89.Steps = list139; reference99 = obj89; - ref QuestSequence reference100 = ref span54[1]; + num++; + ref QuestSequence reference100 = ref span138[num]; QuestSequence obj90 = new QuestSequence { Sequence = 1 @@ -364231,21 +442996,25 @@ public static class AssemblyQuestLoader num2 = 2; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span55 = CollectionsMarshal.AsSpan(list140); - span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-306.07123f, 10.014936f, 1.7894125f), 1186); - span55[1] = new QuestStep(EInteractionType.Interact, 1049242u, new Vector3(-303.7309f, 10.014902f, 1.7241821f), 1186); + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-306.07123f, 10.014936f, 1.7894125f), 1186); + index2++; + span140[index2] = new QuestStep(EInteractionType.Interact, 1049242u, new Vector3(-303.7309f, 10.014902f, 1.7241821f), 1186); obj90.Steps = list140; reference100 = obj90; - ref QuestSequence reference101 = ref span54[2]; + num++; + ref QuestSequence reference101 = ref span138[num]; QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - Span span56 = CollectionsMarshal.AsSpan(list141); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(292.01248f, 51.401478f, 200.04631f), 1186) + index2 = 2; + List list141 = new List(index2); + CollectionsMarshal.SetCount(list141, index2); + Span span141 = CollectionsMarshal.AsSpan(list141); + num2 = 0; + span141[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(292.01248f, 51.401478f, 200.04631f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364253,10 +443022,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineNeonStein } }; - span56[1] = new QuestStep(EInteractionType.Interact, 1048081u, new Vector3(292.16443f, 51.401485f, 202.65503f), 1186); + num2++; + span141[num2] = new QuestStep(EInteractionType.Interact, 1048081u, new Vector3(292.16443f, 51.401485f, 202.65503f), 1186); obj91.Steps = list141; reference101 = obj91; - ref QuestSequence reference102 = ref span54[3]; + num++; + ref QuestSequence reference102 = ref span138[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -364264,7 +443035,9 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051396u, new Vector3(-346.7918f, 9.519508f, 18.20398f), 1186) + Span span142 = CollectionsMarshal.AsSpan(list142); + index2 = 0; + span142[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051396u, new Vector3(-346.7918f, 9.519508f, 18.20398f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364281,24 +443054,30 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - CollectionsMarshal.AsSpan(list143)[0] = "liza"; + Span span143 = CollectionsMarshal.AsSpan(list143); + index = 0; + span143[index] = "liza"; questRoot19.Author = list143; - num = 3; - List list144 = new List(num); - CollectionsMarshal.SetCount(list144, num); - Span span57 = CollectionsMarshal.AsSpan(list144); - ref QuestSequence reference103 = ref span57[0]; + index = 3; + List list144 = new List(index); + CollectionsMarshal.SetCount(list144, index); + Span span144 = CollectionsMarshal.AsSpan(list144); + num = 0; + ref QuestSequence reference103 = ref span144[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list145 = new List(num2); - CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051397u, new Vector3(-40.024475f, 38.80659f, -459.49493f), 1186); + index2 = 1; + List list145 = new List(index2); + CollectionsMarshal.SetCount(list145, index2); + Span span145 = CollectionsMarshal.AsSpan(list145); + num2 = 0; + span145[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051397u, new Vector3(-40.024475f, 38.80659f, -459.49493f), 1186); obj93.Steps = list145; reference103 = obj93; - ref QuestSequence reference104 = ref span57[1]; + num++; + ref QuestSequence reference104 = ref span144[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -364306,60 +443085,84 @@ public static class AssemblyQuestLoader num2 = 3; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span58 = CollectionsMarshal.AsSpan(list146); - ref QuestStep reference105 = ref span58[0]; + Span span146 = CollectionsMarshal.AsSpan(list146); + index2 = 0; + ref QuestStep reference105 = ref span146[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1051400u, new Vector3(-56.351562f, 38.0566f, -347.1275f), 1186); - num3 = 6; - List list147 = new List(num3); - CollectionsMarshal.SetCount(list147, num3); - Span span59 = CollectionsMarshal.AsSpan(list147); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list147 = new List(index3); + CollectionsMarshal.SetCount(list147, index3); + Span span147 = CollectionsMarshal.AsSpan(list147); + num3 = 0; + span147[num3] = null; + num3++; + span147[num3] = null; + num3++; + span147[num3] = null; + num3++; + span147[num3] = null; + num3++; + span147[num3] = null; + num3++; + span147[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list147; reference105 = questStep11; - ref QuestStep reference106 = ref span58[1]; + index2++; + ref QuestStep reference106 = ref span146[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1051399u, new Vector3(-26.230347f, 38.056416f, -310.81104f), 1186); num3 = 6; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - Span span60 = CollectionsMarshal.AsSpan(list148); - span60[0] = null; - span60[1] = null; - span60[2] = null; - span60[3] = null; - span60[4] = null; - span60[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span148 = CollectionsMarshal.AsSpan(list148); + index3 = 0; + span148[index3] = null; + index3++; + span148[index3] = null; + index3++; + span148[index3] = null; + index3++; + span148[index3] = null; + index3++; + span148[index3] = null; + index3++; + span148[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list148; reference106 = questStep12; - ref QuestStep reference107 = ref span58[2]; + index2++; + ref QuestStep reference107 = ref span146[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1051398u, new Vector3(38.254395f, 38.0566f, -357.99194f), 1186); - num3 = 6; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - Span span61 = CollectionsMarshal.AsSpan(list149); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list149 = new List(index3); + CollectionsMarshal.SetCount(list149, index3); + Span span149 = CollectionsMarshal.AsSpan(list149); + num3 = 0; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = null; + num3++; + span149[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list149; reference107 = questStep13; obj94.Steps = list146; reference104 = obj94; - ref QuestSequence reference108 = ref span57[2]; + num++; + ref QuestSequence reference108 = ref span144[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list150 = new List(num2); - CollectionsMarshal.SetCount(list150, num2); - CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051397u, new Vector3(-40.024475f, 38.80659f, -459.49493f), 1186); + index2 = 1; + List list150 = new List(index2); + CollectionsMarshal.SetCount(list150, index2); + Span span150 = CollectionsMarshal.AsSpan(list150); + num2 = 0; + span150[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051397u, new Vector3(-40.024475f, 38.80659f, -459.49493f), 1186); obj95.Steps = list150; reference108 = obj95; questRoot19.QuestSequence = list144; @@ -364369,13 +443172,16 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - CollectionsMarshal.AsSpan(list151)[0] = "liza"; + Span span151 = CollectionsMarshal.AsSpan(list151); + index = 0; + span151[index] = "liza"; questRoot20.Author = list151; - num = 4; - List list152 = new List(num); - CollectionsMarshal.SetCount(list152, num); - Span span62 = CollectionsMarshal.AsSpan(list152); - ref QuestSequence reference109 = ref span62[0]; + index = 4; + List list152 = new List(index); + CollectionsMarshal.SetCount(list152, index); + Span span152 = CollectionsMarshal.AsSpan(list152); + num = 0; + ref QuestSequence reference109 = ref span152[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -364383,19 +443189,23 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051401u, new Vector3(383.90173f, 60f, 56.839844f), 1186); + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051401u, new Vector3(383.90173f, 60f, 56.839844f), 1186); obj96.Steps = list153; reference109 = obj96; - ref QuestSequence reference110 = ref span62[1]; + num++; + ref QuestSequence reference110 = ref span152[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - Span span63 = CollectionsMarshal.AsSpan(list154); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(292.01248f, 51.401478f, 200.04631f), 1186) + index2 = 2; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(292.01248f, 51.401478f, 200.04631f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364403,10 +443213,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineNeonStein } }; - span63[1] = new QuestStep(EInteractionType.Interact, 1048081u, new Vector3(292.16443f, 51.401485f, 202.65503f), 1186); + num2++; + span154[num2] = new QuestStep(EInteractionType.Interact, 1048081u, new Vector3(292.16443f, 51.401485f, 202.65503f), 1186); obj97.Steps = list154; reference110 = obj97; - ref QuestSequence reference111 = ref span62[2]; + num++; + ref QuestSequence reference111 = ref span152[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 @@ -364414,7 +443226,9 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1051402u, new Vector3(-205.58484f, 1.9200057f, 7.583679f), 1186) + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new QuestStep(EInteractionType.Interact, 1051402u, new Vector3(-205.58484f, 1.9200057f, 7.583679f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364424,15 +443238,18 @@ public static class AssemblyQuestLoader }; obj98.Steps = list155; reference111 = obj98; - ref QuestSequence reference112 = ref span62[3]; + num++; + ref QuestSequence reference112 = ref span152[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051403u, new Vector3(13.992493f, -5.845003f, 269.91675f), 1186) + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + span156[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051403u, new Vector3(13.992493f, -5.845003f, 269.91675f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364449,13 +443266,16 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - CollectionsMarshal.AsSpan(list157)[0] = "liza"; + Span span157 = CollectionsMarshal.AsSpan(list157); + index = 0; + span157[index] = "liza"; questRoot21.Author = list157; - num = 5; - List list158 = new List(num); - CollectionsMarshal.SetCount(list158, num); - Span span64 = CollectionsMarshal.AsSpan(list158); - ref QuestSequence reference113 = ref span64[0]; + index = 5; + List list158 = new List(index); + CollectionsMarshal.SetCount(list158, index); + Span span158 = CollectionsMarshal.AsSpan(list158); + num = 0; + ref QuestSequence reference113 = ref span158[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 @@ -364463,19 +443283,23 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051404u, new Vector3(-157.33582f, 2.1999714f, 229.69409f), 1186); + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051404u, new Vector3(-157.33582f, 2.1999714f, 229.69409f), 1186); obj100.Steps = list159; reference113 = obj100; - ref QuestSequence reference114 = ref span64[1]; + num++; + ref QuestSequence reference114 = ref span158[num]; QuestSequence obj101 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - Span span65 = CollectionsMarshal.AsSpan(list160); - span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.70325f, 52.41666f, 211.24818f), 1186) + index2 = 2; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.70325f, 52.41666f, 211.24818f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364483,10 +443307,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTrueVue } }; - span65[1] = new QuestStep(EInteractionType.Interact, 1049154u, new Vector3(320.27148f, 52.41666f, 211.32214f), 1186); + num2++; + span160[num2] = new QuestStep(EInteractionType.Interact, 1049154u, new Vector3(320.27148f, 52.41666f, 211.32214f), 1186); obj101.Steps = list160; reference114 = obj101; - ref QuestSequence reference115 = ref span64[2]; + num++; + ref QuestSequence reference115 = ref span158[num]; QuestSequence obj102 = new QuestSequence { Sequence = 2 @@ -364494,7 +443320,9 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1051405u, new Vector3(-156.2677f, 2.199971f, 231.79968f), 1186) + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.Interact, 1051405u, new Vector3(-156.2677f, 2.199971f, 231.79968f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364504,22 +443332,26 @@ public static class AssemblyQuestLoader }; obj102.Steps = list161; reference115 = obj102; - ref QuestSequence reference116 = ref span64[3]; + num++; + ref QuestSequence reference116 = ref span158[num]; QuestSequence obj103 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Emote, 1051409u, new Vector3(-157.24426f, 2.1999712f, 231.21985f), 1186) + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span162[num2] = new QuestStep(EInteractionType.Emote, 1051409u, new Vector3(-157.24426f, 2.1999712f, 231.21985f), 1186) { StopDistance = 4f, Emote = EEmote.Psych }; obj103.Steps = list162; reference116 = obj103; - ref QuestSequence reference117 = ref span64[4]; + num++; + ref QuestSequence reference117 = ref span158[num]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue @@ -364527,7 +443359,9 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051405u, new Vector3(-156.2677f, 2.199971f, 231.79968f), 1186); + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + span163[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051405u, new Vector3(-156.2677f, 2.199971f, 231.79968f), 1186); obj104.Steps = list163; reference117 = obj104; questRoot21.QuestSequence = list158; @@ -364537,24 +443371,30 @@ public static class AssemblyQuestLoader num = 1; List list164 = new List(num); CollectionsMarshal.SetCount(list164, num); - CollectionsMarshal.AsSpan(list164)[0] = "liza"; + Span span164 = CollectionsMarshal.AsSpan(list164); + index = 0; + span164[index] = "liza"; questRoot22.Author = list164; - num = 3; - List list165 = new List(num); - CollectionsMarshal.SetCount(list165, num); - Span span66 = CollectionsMarshal.AsSpan(list165); - ref QuestSequence reference118 = ref span66[0]; + index = 3; + List list165 = new List(index); + CollectionsMarshal.SetCount(list165, index); + Span span165 = CollectionsMarshal.AsSpan(list165); + num = 0; + ref QuestSequence reference118 = ref span165[num]; QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051407u, new Vector3(-182.29956f, 1.1335879E-05f, 45.059814f), 1186); + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + span166[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051407u, new Vector3(-182.29956f, 1.1335879E-05f, 45.059814f), 1186); obj105.Steps = list166; reference118 = obj105; - ref QuestSequence reference119 = ref span66[1]; + num++; + ref QuestSequence reference119 = ref span165[num]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -364562,18 +443402,23 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 2014345u, new Vector3(-206.92761f, 0.25933838f, -106.58429f), 1186); + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.Interact, 2014345u, new Vector3(-206.92761f, 0.25933838f, -106.58429f), 1186); obj106.Steps = list167; reference119 = obj106; - ref QuestSequence reference120 = ref span66[2]; + num++; + ref QuestSequence reference120 = ref span165[num]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051407u, new Vector3(-182.29956f, 1.1335879E-05f, 45.059814f), 1186); + index2 = 1; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051407u, new Vector3(-182.29956f, 1.1335879E-05f, 45.059814f), 1186); obj107.Steps = list168; reference120 = obj107; questRoot22.QuestSequence = list165; @@ -364583,13 +443428,16 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - CollectionsMarshal.AsSpan(list169)[0] = "liza"; + Span span169 = CollectionsMarshal.AsSpan(list169); + index = 0; + span169[index] = "liza"; questRoot23.Author = list169; - num = 4; - List list170 = new List(num); - CollectionsMarshal.SetCount(list170, num); - Span span67 = CollectionsMarshal.AsSpan(list170); - ref QuestSequence reference121 = ref span67[0]; + index = 4; + List list170 = new List(index); + CollectionsMarshal.SetCount(list170, index); + Span span170 = CollectionsMarshal.AsSpan(list170); + num = 0; + ref QuestSequence reference121 = ref span170[num]; QuestSequence obj108 = new QuestSequence { Sequence = 0 @@ -364597,12 +443445,16 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - ref QuestStep reference122 = ref CollectionsMarshal.AsSpan(list171)[0]; + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + ref QuestStep reference122 = ref span171[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.AcceptQuest, 1051069u, new Vector3(-313.43555f, 4.6900077f, -36.57599f), 1186); num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = new DialogueChoice + Span span172 = CollectionsMarshal.AsSpan(list172); + index3 = 0; + span172[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZG009_05172_Q1_000_000"), @@ -364612,18 +443464,22 @@ public static class AssemblyQuestLoader reference122 = questStep14; obj108.Steps = list171; reference121 = obj108; - ref QuestSequence reference123 = ref span67[1]; + num++; + ref QuestSequence reference123 = ref span170[num]; QuestSequence obj109 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 2014292u, new Vector3(-375.93652f, 13.992493f, 144.06042f), 1186); + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + span173[num2] = new QuestStep(EInteractionType.Interact, 2014292u, new Vector3(-375.93652f, 13.992493f, 144.06042f), 1186); obj109.Steps = list173; reference123 = obj109; - ref QuestSequence reference124 = ref span67[2]; + num++; + ref QuestSequence reference124 = ref span170[num]; QuestSequence obj110 = new QuestSequence { Sequence = 2 @@ -364631,21 +443487,26 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Instruction, null, new Vector3(-375.93652f, 13.992493f, 144.06042f), 1186) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.Instruction, null, new Vector3(-375.93652f, 13.992493f, 144.06042f), 1186) { Comment = "Catch the cat. Good luck!" }; obj110.Steps = list174; reference124 = obj110; - ref QuestSequence reference125 = ref span67[3]; + num++; + ref QuestSequence reference125 = ref span170[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list175 = new List(num2); - CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051069u, new Vector3(-313.43555f, 4.6900077f, -36.57599f), 1186); + index2 = 1; + List list175 = new List(index2); + CollectionsMarshal.SetCount(list175, index2); + Span span175 = CollectionsMarshal.AsSpan(list175); + num2 = 0; + span175[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051069u, new Vector3(-313.43555f, 4.6900077f, -36.57599f), 1186); obj111.Steps = list175; reference125 = obj111; questRoot23.QuestSequence = list170; @@ -364655,13 +443516,16 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - CollectionsMarshal.AsSpan(list176)[0] = "liza"; + Span span176 = CollectionsMarshal.AsSpan(list176); + index = 0; + span176[index] = "liza"; questRoot24.Author = list176; - num = 5; - List list177 = new List(num); - CollectionsMarshal.SetCount(list177, num); - Span span68 = CollectionsMarshal.AsSpan(list177); - ref QuestSequence reference126 = ref span68[0]; + index = 5; + List list177 = new List(index); + CollectionsMarshal.SetCount(list177, index); + Span span177 = CollectionsMarshal.AsSpan(list177); + num = 0; + ref QuestSequence reference126 = ref span177[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 @@ -364669,21 +443533,27 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051381u, new Vector3(261.7074f, 59.699993f, 5.0201416f), 1186); + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051381u, new Vector3(261.7074f, 59.699993f, 5.0201416f), 1186); obj112.Steps = list178; reference126 = obj112; - ref QuestSequence reference127 = ref span68[1]; + num++; + ref QuestSequence reference127 = ref span177[num]; QuestSequence obj113 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1051381u, new Vector3(261.7074f, 59.699993f, 5.0201416f), 1186); + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.Interact, 1051381u, new Vector3(261.7074f, 59.699993f, 5.0201416f), 1186); obj113.Steps = list179; reference127 = obj113; - ref QuestSequence reference128 = ref span68[2]; + num++; + ref QuestSequence reference128 = ref span177[num]; QuestSequence obj114 = new QuestSequence { Sequence = 2 @@ -364691,60 +443561,84 @@ public static class AssemblyQuestLoader num2 = 3; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span69 = CollectionsMarshal.AsSpan(list180); - ref QuestStep reference129 = ref span69[0]; + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + ref QuestStep reference129 = ref span180[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1051382u, new Vector3(317.46387f, 70.75f, -64.01166f), 1186); - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span70 = CollectionsMarshal.AsSpan(list181); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list181 = new List(index3); + CollectionsMarshal.SetCount(list181, index3); + Span span181 = CollectionsMarshal.AsSpan(list181); + num3 = 0; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = null; + num3++; + span181[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list181; reference129 = questStep15; - ref QuestStep reference130 = ref span69[1]; + index2++; + ref QuestStep reference130 = ref span180[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1051383u, new Vector3(363.24097f, 50.75f, 185.77856f), 1186); num3 = 6; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - Span span71 = CollectionsMarshal.AsSpan(list182); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span182 = CollectionsMarshal.AsSpan(list182); + index3 = 0; + span182[index3] = null; + index3++; + span182[index3] = null; + index3++; + span182[index3] = null; + index3++; + span182[index3] = null; + index3++; + span182[index3] = null; + index3++; + span182[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list182; reference130 = questStep16; - ref QuestStep reference131 = ref span69[2]; + index2++; + ref QuestStep reference131 = ref span180[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1051384u, new Vector3(253.52856f, 50.3f, 189.07446f), 1186); - num3 = 6; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - Span span72 = CollectionsMarshal.AsSpan(list183); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list183 = new List(index3); + CollectionsMarshal.SetCount(list183, index3); + Span span183 = CollectionsMarshal.AsSpan(list183); + num3 = 0; + span183[num3] = null; + num3++; + span183[num3] = null; + num3++; + span183[num3] = null; + num3++; + span183[num3] = null; + num3++; + span183[num3] = null; + num3++; + span183[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list183; reference131 = questStep17; obj114.Steps = list180; reference128 = obj114; - ref QuestSequence reference132 = ref span68[3]; + num++; + ref QuestSequence reference132 = ref span177[num]; QuestSequence obj115 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list184 = new List(num2); - CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1051385u, new Vector3(451.5907f, 61.38527f, 319.44763f), 1186) + index2 = 1; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + span184[num2] = new QuestStep(EInteractionType.Interact, 1051385u, new Vector3(451.5907f, 61.38527f, 319.44763f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -364754,7 +443648,8 @@ public static class AssemblyQuestLoader }; obj115.Steps = list184; reference132 = obj115; - ref QuestSequence reference133 = ref span68[4]; + num++; + ref QuestSequence reference133 = ref span177[num]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue @@ -364762,7 +443657,9 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051386u, new Vector3(453.1776f, 61.38527f, 321.85852f), 1186); + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + span185[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051386u, new Vector3(453.1776f, 61.38527f, 321.85852f), 1186); obj116.Steps = list185; reference133 = obj116; questRoot24.QuestSequence = list177; @@ -364772,24 +443669,30 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "liza"; + Span span186 = CollectionsMarshal.AsSpan(list186); + index = 0; + span186[index] = "liza"; questRoot25.Author = list186; - num = 5; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span73 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference134 = ref span73[0]; + index = 5; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + Span span187 = CollectionsMarshal.AsSpan(list187); + num = 0; + ref QuestSequence reference134 = ref span187[num]; QuestSequence obj117 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050617u, new Vector3(-631.4031f, 2.9305653E-07f, 497.12354f), 1192); + index2 = 1; + List list188 = new List(index2); + CollectionsMarshal.SetCount(list188, index2); + Span span188 = CollectionsMarshal.AsSpan(list188); + num2 = 0; + span188[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050617u, new Vector3(-631.4031f, 2.9305653E-07f, 497.12354f), 1192); obj117.Steps = list188; reference134 = obj117; - ref QuestSequence reference135 = ref span73[1]; + num++; + ref QuestSequence reference135 = ref span187[num]; QuestSequence obj118 = new QuestSequence { Sequence = 1 @@ -364797,25 +443700,31 @@ public static class AssemblyQuestLoader num2 = 2; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span74 = CollectionsMarshal.AsSpan(list189); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-529.96735f, 6.402005f, 524.4711f), 1192); - span74[1] = new QuestStep(EInteractionType.Interact, 1050618u, new Vector3(-444.0833f, -0.815298f, 482.10876f), 1192); + Span span189 = CollectionsMarshal.AsSpan(list189); + index2 = 0; + span189[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-529.96735f, 6.402005f, 524.4711f), 1192); + index2++; + span189[index2] = new QuestStep(EInteractionType.Interact, 1050618u, new Vector3(-444.0833f, -0.815298f, 482.10876f), 1192); obj118.Steps = list189; reference135 = obj118; - ref QuestSequence reference136 = ref span73[2]; + num++; + ref QuestSequence reference136 = ref span187[num]; QuestSequence obj119 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - Span span75 = CollectionsMarshal.AsSpan(list190); - span75[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-377.65292f, 6.401951f, 531.36896f), 1192); - span75[1] = new QuestStep(EInteractionType.Interact, 1050619u, new Vector3(-288.1361f, -6.1998426E-13f, 580.1632f), 1192); + index2 = 2; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span190[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-377.65292f, 6.401951f, 531.36896f), 1192); + num2++; + span190[num2] = new QuestStep(EInteractionType.Interact, 1050619u, new Vector3(-288.1361f, -6.1998426E-13f, 580.1632f), 1192); obj119.Steps = list190; reference136 = obj119; - ref QuestSequence reference137 = ref span73[3]; + num++; + ref QuestSequence reference137 = ref span187[num]; QuestSequence obj120 = new QuestSequence { Sequence = 3 @@ -364823,22 +443732,27 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.UseItem, 2013899u, new Vector3(-287.31213f, 1.4190674f, 582.7573f), 1192) + Span span191 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span191[index2] = new QuestStep(EInteractionType.UseItem, 2013899u, new Vector3(-287.31213f, 1.4190674f, 582.7573f), 1192) { DisableNavmesh = true, ItemId = 2003566u }; obj120.Steps = list191; reference137 = obj120; - ref QuestSequence reference138 = ref span73[4]; + num++; + ref QuestSequence reference138 = ref span187[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list192 = new List(num2); - CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050619u, new Vector3(-288.1361f, -6.1998426E-13f, 580.1632f), 1192); + index2 = 1; + List list192 = new List(index2); + CollectionsMarshal.SetCount(list192, index2); + Span span192 = CollectionsMarshal.AsSpan(list192); + num2 = 0; + span192[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050619u, new Vector3(-288.1361f, -6.1998426E-13f, 580.1632f), 1192); obj121.Steps = list192; reference138 = obj121; questRoot25.QuestSequence = list187; @@ -364848,13 +443762,16 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - CollectionsMarshal.AsSpan(list193)[0] = "liza"; + Span span193 = CollectionsMarshal.AsSpan(list193); + index = 0; + span193[index] = "liza"; questRoot26.Author = list193; - num = 3; - List list194 = new List(num); - CollectionsMarshal.SetCount(list194, num); - Span span76 = CollectionsMarshal.AsSpan(list194); - ref QuestSequence reference139 = ref span76[0]; + index = 3; + List list194 = new List(index); + CollectionsMarshal.SetCount(list194, index); + Span span194 = CollectionsMarshal.AsSpan(list194); + num = 0; + ref QuestSequence reference139 = ref span194[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -364862,19 +443779,23 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050620u, new Vector3(-733.79114f, 0.007321423f, 518.33374f), 1192); + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span195[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050620u, new Vector3(-733.79114f, 0.007321423f, 518.33374f), 1192); obj122.Steps = list195; reference139 = obj122; - ref QuestSequence reference140 = ref span76[1]; + num++; + ref QuestSequence reference140 = ref span194[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - Span span77 = CollectionsMarshal.AsSpan(list196); - ref QuestStep reference141 = ref span77[0]; + index2 = 4; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + ref QuestStep reference141 = ref span196[num2]; QuestStep obj124 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-549.43896f, 20.09976f, 630.3976f), 1192) { Fly = true @@ -364884,37 +443805,51 @@ public static class AssemblyQuestLoader num3 = 6; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - Span span78 = CollectionsMarshal.AsSpan(list197); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span197 = CollectionsMarshal.AsSpan(list197); + index3 = 0; + span197[index3] = null; + index3++; + span197[index3] = null; + index3++; + span197[index3] = null; + index3++; + span197[index3] = null; + index3++; + span197[index3] = null; + index3++; + span197[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list197; skipStepConditions3.Flying = ELockedSkipCondition.Locked; skipConditions3.StepIf = skipStepConditions3; obj124.SkipConditions = skipConditions3; reference141 = obj124; - ref QuestStep reference142 = ref span77[1]; + num2++; + ref QuestStep reference142 = ref span196[num2]; QuestStep obj125 = new QuestStep(EInteractionType.Interact, 2013901u, new Vector3(-515.9838f, -0.015319824f, 625.14685f), 1192) { DisableNavmesh = true, Fly = true }; - num3 = 6; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - Span span79 = CollectionsMarshal.AsSpan(list198); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list198 = new List(index3); + CollectionsMarshal.SetCount(list198, index3); + Span span198 = CollectionsMarshal.AsSpan(list198); + num3 = 0; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = null; + num3++; + span198[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj125.CompletionQuestVariablesFlags = list198; reference142 = obj125; - ref QuestStep reference143 = ref span77[2]; + num2++; + ref QuestStep reference143 = ref span196[num2]; QuestStep obj126 = new QuestStep(EInteractionType.Interact, 2013902u, new Vector3(-496.78802f, 0.045776367f, 668.72656f), 1192) { Fly = true @@ -364922,35 +443857,49 @@ public static class AssemblyQuestLoader num3 = 6; List list199 = new List(num3); CollectionsMarshal.SetCount(list199, num3); - Span span80 = CollectionsMarshal.AsSpan(list199); - span80[0] = null; - span80[1] = null; - span80[2] = null; - span80[3] = null; - span80[4] = null; - span80[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span199 = CollectionsMarshal.AsSpan(list199); + index3 = 0; + span199[index3] = null; + index3++; + span199[index3] = null; + index3++; + span199[index3] = null; + index3++; + span199[index3] = null; + index3++; + span199[index3] = null; + index3++; + span199[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj126.CompletionQuestVariablesFlags = list199; reference143 = obj126; - ref QuestStep reference144 = ref span77[3]; + num2++; + ref QuestStep reference144 = ref span196[num2]; QuestStep obj127 = new QuestStep(EInteractionType.Interact, 2013903u, new Vector3(-424.2771f, -0.10687256f, 660.7003f), 1192) { Fly = true }; - num3 = 6; - List list200 = new List(num3); - CollectionsMarshal.SetCount(list200, num3); - Span span81 = CollectionsMarshal.AsSpan(list200); - span81[0] = null; - span81[1] = null; - span81[2] = null; - span81[3] = null; - span81[4] = null; - span81[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list200 = new List(index3); + CollectionsMarshal.SetCount(list200, index3); + Span span200 = CollectionsMarshal.AsSpan(list200); + num3 = 0; + span200[num3] = null; + num3++; + span200[num3] = null; + num3++; + span200[num3] = null; + num3++; + span200[num3] = null; + num3++; + span200[num3] = null; + num3++; + span200[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj127.CompletionQuestVariablesFlags = list200; reference144 = obj127; obj123.Steps = list196; reference140 = obj123; - ref QuestSequence reference145 = ref span76[2]; + num++; + ref QuestSequence reference145 = ref span194[num]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue @@ -364958,7 +443907,9 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050620u, new Vector3(-733.79114f, 0.007321423f, 518.33374f), 1192) + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050620u, new Vector3(-733.79114f, 0.007321423f, 518.33374f), 1192) { Fly = true }; @@ -364971,24 +443922,30 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - CollectionsMarshal.AsSpan(list202)[0] = "liza"; + Span span202 = CollectionsMarshal.AsSpan(list202); + index = 0; + span202[index] = "liza"; questRoot27.Author = list202; - num = 5; - List list203 = new List(num); - CollectionsMarshal.SetCount(list203, num); - Span span82 = CollectionsMarshal.AsSpan(list203); - ref QuestSequence reference146 = ref span82[0]; + index = 5; + List list203 = new List(index); + CollectionsMarshal.SetCount(list203, index); + Span span203 = CollectionsMarshal.AsSpan(list203); + num = 0; + ref QuestSequence reference146 = ref span203[num]; QuestSequence obj129 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050621u, new Vector3(477.1344f, -0.034497976f, 711.6654f), 1192); + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050621u, new Vector3(477.1344f, -0.034497976f, 711.6654f), 1192); obj129.Steps = list204; reference146 = obj129; - ref QuestSequence reference147 = ref span82[1]; + num++; + ref QuestSequence reference147 = ref span203[num]; QuestSequence obj130 = new QuestSequence { Sequence = 1 @@ -364996,26 +443953,32 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 2013904u, new Vector3(199.4812f, 1.1749268f, 642.96936f), 1192); + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.Interact, 2013904u, new Vector3(199.4812f, 1.1749268f, 642.96936f), 1192); obj130.Steps = list205; reference147 = obj130; - ref QuestSequence reference148 = ref span82[2]; + num++; + ref QuestSequence reference148 = ref span203[num]; QuestSequence obj131 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list206 = new List(num2); - CollectionsMarshal.SetCount(list206, num2); - Span span83 = CollectionsMarshal.AsSpan(list206); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(194.28456f, 0.000497818f, 628.7034f), 1192) + index2 = 2; + List list206 = new List(index2); + CollectionsMarshal.SetCount(list206, index2); + Span span206 = CollectionsMarshal.AsSpan(list206); + num2 = 0; + span206[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(194.28456f, 0.000497818f, 628.7034f), 1192) { Mount = true }; - span83[1] = new QuestStep(EInteractionType.Interact, 2013905u, new Vector3(252.30786f, 1.5411377f, 621.2711f), 1192); + num2++; + span206[num2] = new QuestStep(EInteractionType.Interact, 2013905u, new Vector3(252.30786f, 1.5411377f, 621.2711f), 1192); obj131.Steps = list206; reference148 = obj131; - ref QuestSequence reference149 = ref span82[3]; + num++; + ref QuestSequence reference149 = ref span203[num]; QuestSequence obj132 = new QuestSequence { Sequence = 3 @@ -365023,26 +443986,34 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 2013909u, new Vector3(340.59656f, 23.605652f, 289.78406f), 1192); + Span span207 = CollectionsMarshal.AsSpan(list207); + index2 = 0; + span207[index2] = new QuestStep(EInteractionType.Interact, 2013909u, new Vector3(340.59656f, 23.605652f, 289.78406f), 1192); obj132.Steps = list207; reference149 = obj132; - ref QuestSequence reference150 = ref span82[4]; + num++; + ref QuestSequence reference150 = ref span203[num]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - Span span84 = CollectionsMarshal.AsSpan(list208); - span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(690.5917f, 37.037296f, 469.6903f), 1192); - span84[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(668.59235f, 40.20963f, 447.41943f), 1192); - ref QuestStep reference151 = ref span84[2]; + index2 = 3; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(690.5917f, 37.037296f, 469.6903f), 1192); + num2++; + span208[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(668.59235f, 40.20963f, 447.41943f), 1192); + num2++; + ref QuestStep reference151 = ref span208[num2]; QuestStep questStep18 = new QuestStep(EInteractionType.CompleteQuest, 1050622u, new Vector3(669.36743f, 40.305832f, 417.31885f), 1192); num3 = 1; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - CollectionsMarshal.AsSpan(list209)[0] = new DialogueChoice + Span span209 = CollectionsMarshal.AsSpan(list209); + index3 = 0; + span209[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZH003_05176_Q1_000_016"), @@ -365059,13 +444030,16 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - CollectionsMarshal.AsSpan(list210)[0] = "liza"; + Span span210 = CollectionsMarshal.AsSpan(list210); + index = 0; + span210[index] = "liza"; questRoot28.Author = list210; - num = 5; - List list211 = new List(num); - CollectionsMarshal.SetCount(list211, num); - Span span85 = CollectionsMarshal.AsSpan(list211); - ref QuestSequence reference152 = ref span85[0]; + index = 5; + List list211 = new List(index); + CollectionsMarshal.SetCount(list211, index); + Span span211 = CollectionsMarshal.AsSpan(list211); + num = 0; + ref QuestSequence reference152 = ref span211[num]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -365073,21 +444047,27 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050623u, new Vector3(253.83374f, -0.034116313f, 439.3529f), 1192); + Span span212 = CollectionsMarshal.AsSpan(list212); + index2 = 0; + span212[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050623u, new Vector3(253.83374f, -0.034116313f, 439.3529f), 1192); obj134.Steps = list212; reference152 = obj134; - ref QuestSequence reference153 = ref span85[1]; + num++; + ref QuestSequence reference153 = ref span211[num]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1050623u, new Vector3(253.83374f, -0.034116313f, 439.3529f), 1192); + index2 = 1; + List list213 = new List(index2); + CollectionsMarshal.SetCount(list213, index2); + Span span213 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span213[num2] = new QuestStep(EInteractionType.Interact, 1050623u, new Vector3(253.83374f, -0.034116313f, 439.3529f), 1192); obj135.Steps = list213; reference153 = obj135; - ref QuestSequence reference154 = ref span85[2]; + num++; + ref QuestSequence reference154 = ref span211[num]; QuestSequence obj136 = new QuestSequence { Sequence = 2 @@ -365095,29 +444075,35 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1050623u, new Vector3(406.71564f, 1.3939283f, 550.029f), 1192) + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.Interact, 1050623u, new Vector3(406.71564f, 1.3939283f, 550.029f), 1192) { StopDistance = 0.25f, Fly = true }; obj136.Steps = list214; reference154 = obj136; - ref QuestSequence reference155 = ref span85[3]; + num++; + ref QuestSequence reference155 = ref span211[num]; QuestSequence obj137 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1050623u, new Vector3(577.7826f, 7.5857296f, 662.96063f), 1192) + index2 = 1; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + span215[num2] = new QuestStep(EInteractionType.Interact, 1050623u, new Vector3(577.7826f, 7.5857296f, 662.96063f), 1192) { StopDistance = 0.25f, Fly = true }; obj137.Steps = list215; reference155 = obj137; - ref QuestSequence reference156 = ref span85[4]; + num++; + ref QuestSequence reference156 = ref span211[num]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -365125,7 +444111,9 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050624u, new Vector3(581.1398f, 7.6887574f, 664.05725f), 1192) + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span216[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050624u, new Vector3(581.1398f, 7.6887574f, 664.05725f), 1192) { StopDistance = 5f }; @@ -365138,24 +444126,30 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - CollectionsMarshal.AsSpan(list217)[0] = "liza"; + Span span217 = CollectionsMarshal.AsSpan(list217); + index = 0; + span217[index] = "liza"; questRoot29.Author = list217; - num = 5; - List list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - Span span86 = CollectionsMarshal.AsSpan(list218); - ref QuestSequence reference157 = ref span86[0]; + index = 5; + List list218 = new List(index); + CollectionsMarshal.SetCount(list218, index); + Span span218 = CollectionsMarshal.AsSpan(list218); + num = 0; + ref QuestSequence reference157 = ref span218[num]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050625u, new Vector3(628.6869f, 24.99949f, -283.3753f), 1192); + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + Span span219 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span219[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050625u, new Vector3(628.6869f, 24.99949f, -283.3753f), 1192); obj139.Steps = list219; reference157 = obj139; - ref QuestSequence reference158 = ref span86[1]; + num++; + ref QuestSequence reference158 = ref span218[num]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -365163,31 +444157,39 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1050626u, new Vector3(351.27795f, 48.949432f, -726.4973f), 1192); + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span220[index2] = new QuestStep(EInteractionType.Interact, 1050626u, new Vector3(351.27795f, 48.949432f, -726.4973f), 1192); obj140.Steps = list220; reference158 = obj140; - ref QuestSequence reference159 = ref span86[2]; + num++; + ref QuestSequence reference159 = ref span218[num]; QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - ref QuestStep reference160 = ref CollectionsMarshal.AsSpan(list221)[0]; + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + ref QuestStep reference160 = ref span221[num2]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, null, new Vector3(300.00925f, 44.086937f, -577.9258f), 1192) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - CollectionsMarshal.AsSpan(list222)[0] = 17686u; + index3 = 1; + List list222 = new List(index3); + CollectionsMarshal.SetCount(list222, index3); + Span span222 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span222[num3] = 17686u; obj142.KillEnemyDataIds = list222; reference160 = obj142; obj141.Steps = list221; reference159 = obj141; - ref QuestSequence reference161 = ref span86[3]; + num++; + ref QuestSequence reference161 = ref span218[num]; QuestSequence obj143 = new QuestSequence { Sequence = 3 @@ -365195,26 +444197,31 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 1050627u, new Vector3(302.90674f, 43.98048f, -574.67004f), 1192) + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span223[index2] = new QuestStep(EInteractionType.Interact, 1050627u, new Vector3(302.90674f, 43.98048f, -574.67004f), 1192) { StopDistance = 7f }; obj143.Steps = list223; reference161 = obj143; - ref QuestSequence reference162 = ref span86[4]; + num++; + ref QuestSequence reference162 = ref span218[num]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - Span span87 = CollectionsMarshal.AsSpan(list224); - span87[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013981u, new Vector3(315.20557f, 43.71704f, -539.3302f), 1192) + index2 = 2; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span224[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013981u, new Vector3(315.20557f, 43.71704f, -539.3302f), 1192) { AetherCurrentId = 2818486u }; - span87[1] = new QuestStep(EInteractionType.CompleteQuest, 1050631u, new Vector3(354.4823f, 48.940357f, -726.1311f), 1192); + num2++; + span224[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050631u, new Vector3(354.4823f, 48.940357f, -726.1311f), 1192); obj144.Steps = list224; reference162 = obj144; questRoot29.QuestSequence = list218; @@ -365224,13 +444231,16 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - CollectionsMarshal.AsSpan(list225)[0] = "liza"; + Span span225 = CollectionsMarshal.AsSpan(list225); + index = 0; + span225[index] = "liza"; questRoot30.Author = list225; - num = 3; - List list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - Span span88 = CollectionsMarshal.AsSpan(list226); - ref QuestSequence reference163 = ref span88[0]; + index = 3; + List list226 = new List(index); + CollectionsMarshal.SetCount(list226, index); + Span span226 = CollectionsMarshal.AsSpan(list226); + num = 0; + ref QuestSequence reference163 = ref span226[num]; QuestSequence obj145 = new QuestSequence { Sequence = 0 @@ -365238,21 +444248,27 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050632u, new Vector3(538.9944f, 25.001822f, -194.3847f), 1192); + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050632u, new Vector3(538.9944f, 25.001822f, -194.3847f), 1192); obj145.Steps = list227; reference163 = obj145; - ref QuestSequence reference164 = ref span88[1]; + num++; + ref QuestSequence reference164 = ref span226[num]; QuestSequence obj146 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list228 = new List(num2); - CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 2013913u, new Vector3(226.00134f, 35.75183f, -225.97089f), 1192); + index2 = 1; + List list228 = new List(index2); + CollectionsMarshal.SetCount(list228, index2); + Span span228 = CollectionsMarshal.AsSpan(list228); + num2 = 0; + span228[num2] = new QuestStep(EInteractionType.Interact, 2013913u, new Vector3(226.00134f, 35.75183f, -225.97089f), 1192); obj146.Steps = list228; reference164 = obj146; - ref QuestSequence reference165 = ref span88[2]; + num++; + ref QuestSequence reference165 = ref span226[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -365260,7 +444276,9 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050633u, new Vector3(619.5315f, 27.724146f, -172.01501f), 1192) + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span229[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050633u, new Vector3(619.5315f, 27.724146f, -172.01501f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodePyro }; @@ -365273,24 +444291,30 @@ public static class AssemblyQuestLoader num = 1; List list230 = new List(num); CollectionsMarshal.SetCount(list230, num); - CollectionsMarshal.AsSpan(list230)[0] = "liza"; + Span span230 = CollectionsMarshal.AsSpan(list230); + index = 0; + span230[index] = "liza"; questRoot31.Author = list230; - num = 4; - List list231 = new List(num); - CollectionsMarshal.SetCount(list231, num); - Span span89 = CollectionsMarshal.AsSpan(list231); - ref QuestSequence reference166 = ref span89[0]; + index = 4; + List list231 = new List(index); + CollectionsMarshal.SetCount(list231, index); + Span span231 = CollectionsMarshal.AsSpan(list231); + num = 0; + ref QuestSequence reference166 = ref span231[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050634u, new Vector3(-181.62811f, 30.999819f, 22.079773f), 1192); + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span232[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050634u, new Vector3(-181.62811f, 30.999819f, 22.079773f), 1192); obj148.Steps = list232; reference166 = obj148; - ref QuestSequence reference167 = ref span89[1]; + num++; + ref QuestSequence reference167 = ref span231[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 @@ -365298,7 +444322,9 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - ref QuestStep reference168 = ref CollectionsMarshal.AsSpan(list233)[0]; + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + ref QuestStep reference168 = ref span233[index2]; QuestStep obj150 = new QuestStep(EInteractionType.Interact, 1050635u, new Vector3(-201.83112f, 29.999939f, -124.28479f), 1192) { Fly = true @@ -365306,7 +444332,9 @@ public static class AssemblyQuestLoader num3 = 1; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = new DialogueChoice + Span span234 = CollectionsMarshal.AsSpan(list234); + index3 = 0; + span234[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZH007_05180_Q1_000_005"), @@ -365316,23 +444344,28 @@ public static class AssemblyQuestLoader reference168 = obj150; obj149.Steps = list233; reference167 = obj149; - ref QuestSequence reference169 = ref span89[2]; + num++; + ref QuestSequence reference169 = ref span231[num]; QuestSequence obj151 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list235)[0]; + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + Span span235 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + ref QuestStep reference170 = ref span235[num2]; QuestStep obj152 = new QuestStep(EInteractionType.Interact, 1050636u, new Vector3(-410.5135f, 30.49998f, -131.94476f), 1192) { Fly = true }; - num3 = 1; - List list236 = new List(num3); - CollectionsMarshal.SetCount(list236, num3); - CollectionsMarshal.AsSpan(list236)[0] = new DialogueChoice + index3 = 1; + List list236 = new List(index3); + CollectionsMarshal.SetCount(list236, index3); + Span span236 = CollectionsMarshal.AsSpan(list236); + num3 = 0; + span236[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZH007_05180_Q2_000_013"), @@ -365342,7 +444375,8 @@ public static class AssemblyQuestLoader reference170 = obj152; obj151.Steps = list235; reference169 = obj151; - ref QuestSequence reference171 = ref span89[3]; + num++; + ref QuestSequence reference171 = ref span231[num]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue @@ -365350,7 +444384,9 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050813u, new Vector3(-277.76f, 54.31037f, -382.58948f), 1192) + Span span237 = CollectionsMarshal.AsSpan(list237); + index2 = 0; + span237[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050813u, new Vector3(-277.76f, 54.31037f, -382.58948f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeAero }; @@ -365363,24 +444399,30 @@ public static class AssemblyQuestLoader num = 1; List list238 = new List(num); CollectionsMarshal.SetCount(list238, num); - CollectionsMarshal.AsSpan(list238)[0] = "liza"; + Span span238 = CollectionsMarshal.AsSpan(list238); + index = 0; + span238[index] = "liza"; questRoot32.Author = list238; - num = 3; - List list239 = new List(num); - CollectionsMarshal.SetCount(list239, num); - Span span90 = CollectionsMarshal.AsSpan(list239); - ref QuestSequence reference172 = ref span90[0]; + index = 3; + List list239 = new List(index); + CollectionsMarshal.SetCount(list239, index); + Span span239 = CollectionsMarshal.AsSpan(list239); + num = 0; + ref QuestSequence reference172 = ref span239[num]; QuestSequence obj154 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050637u, new Vector3(-539.66583f, -10.000358f, -477.89734f), 1192); + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050637u, new Vector3(-539.66583f, -10.000358f, -477.89734f), 1192); obj154.Steps = list240; reference172 = obj154; - ref QuestSequence reference173 = ref span90[1]; + num++; + ref QuestSequence reference173 = ref span239[num]; QuestSequence obj155 = new QuestSequence { Sequence = 1 @@ -365388,8 +444430,9 @@ public static class AssemblyQuestLoader num2 = 5; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span91 = CollectionsMarshal.AsSpan(list241); - ref QuestStep reference174 = ref span91[0]; + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + ref QuestStep reference174 = ref span241[index2]; QuestStep obj156 = new QuestStep(EInteractionType.Interact, 2013918u, new Vector3(-429.89246f, -4.5319824f, -466.45306f), 1192) { StopDistance = 0.25f, @@ -365398,37 +444441,51 @@ public static class AssemblyQuestLoader num3 = 6; List list242 = new List(num3); CollectionsMarshal.SetCount(list242, num3); - Span span92 = CollectionsMarshal.AsSpan(list242); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span242 = CollectionsMarshal.AsSpan(list242); + index3 = 0; + span242[index3] = null; + index3++; + span242[index3] = null; + index3++; + span242[index3] = null; + index3++; + span242[index3] = null; + index3++; + span242[index3] = null; + index3++; + span242[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj156.CompletionQuestVariablesFlags = list242; reference174 = obj156; - ref QuestStep reference175 = ref span91[1]; + index2++; + ref QuestStep reference175 = ref span241[index2]; QuestStep obj157 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-647.346f, -5.0000005f, -455.4366f), 1192) { Fly = true }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 6; - List list243 = new List(num3); - CollectionsMarshal.SetCount(list243, num3); - Span span93 = CollectionsMarshal.AsSpan(list243); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list243 = new List(index3); + CollectionsMarshal.SetCount(list243, index3); + Span span243 = CollectionsMarshal.AsSpan(list243); + num3 = 0; + span243[num3] = null; + num3++; + span243[num3] = null; + num3++; + span243[num3] = null; + num3++; + span243[num3] = null; + num3++; + span243[num3] = null; + num3++; + span243[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list243; skipConditions4.StepIf = skipStepConditions4; obj157.SkipConditions = skipConditions4; reference175 = obj157; - ref QuestStep reference176 = ref span91[2]; + index2++; + ref QuestStep reference176 = ref span241[index2]; QuestStep obj158 = new QuestStep(EInteractionType.Interact, 2013916u, new Vector3(-648.85944f, -3.7995605f, -454.06274f), 1192) { Mount = false @@ -365436,37 +444493,51 @@ public static class AssemblyQuestLoader num3 = 6; List list244 = new List(num3); CollectionsMarshal.SetCount(list244, num3); - Span span94 = CollectionsMarshal.AsSpan(list244); - span94[0] = null; - span94[1] = null; - span94[2] = null; - span94[3] = null; - span94[4] = null; - span94[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span244 = CollectionsMarshal.AsSpan(list244); + index3 = 0; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = null; + index3++; + span244[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj158.CompletionQuestVariablesFlags = list244; reference176 = obj158; - ref QuestStep reference177 = ref span91[3]; + index2++; + ref QuestStep reference177 = ref span241[index2]; QuestStep obj159 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-572.3234f, -2.729274f, -703.2586f), 1192) { Fly = true }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 6; - List list245 = new List(num3); - CollectionsMarshal.SetCount(list245, num3); - Span span95 = CollectionsMarshal.AsSpan(list245); - span95[0] = null; - span95[1] = null; - span95[2] = null; - span95[3] = null; - span95[4] = null; - span95[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list245 = new List(index3); + CollectionsMarshal.SetCount(list245, index3); + Span span245 = CollectionsMarshal.AsSpan(list245); + num3 = 0; + span245[num3] = null; + num3++; + span245[num3] = null; + num3++; + span245[num3] = null; + num3++; + span245[num3] = null; + num3++; + span245[num3] = null; + num3++; + span245[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list245; skipConditions5.StepIf = skipStepConditions5; obj159.SkipConditions = skipConditions5; reference177 = obj159; - ref QuestStep reference178 = ref span91[4]; + index2++; + ref QuestStep reference178 = ref span241[index2]; QuestStep obj160 = new QuestStep(EInteractionType.Interact, 2013917u, new Vector3(-573.14417f, -1.0529175f, -702.05237f), 1192) { Mount = false @@ -365474,26 +444545,35 @@ public static class AssemblyQuestLoader num3 = 6; List list246 = new List(num3); CollectionsMarshal.SetCount(list246, num3); - Span span96 = CollectionsMarshal.AsSpan(list246); - span96[0] = null; - span96[1] = null; - span96[2] = null; - span96[3] = null; - span96[4] = null; - span96[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span246 = CollectionsMarshal.AsSpan(list246); + index3 = 0; + span246[index3] = null; + index3++; + span246[index3] = null; + index3++; + span246[index3] = null; + index3++; + span246[index3] = null; + index3++; + span246[index3] = null; + index3++; + span246[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj160.CompletionQuestVariablesFlags = list246; reference178 = obj160; obj155.Steps = list241; reference173 = obj155; - ref QuestSequence reference179 = ref span90[2]; + num++; + ref QuestSequence reference179 = ref span239[num]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050814u, new Vector3(-539.7269f, -10.000359f, -477.8363f), 1192) + index2 = 1; + List list247 = new List(index2); + CollectionsMarshal.SetCount(list247, index2); + Span span247 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span247[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050814u, new Vector3(-539.7269f, -10.000359f, -477.8363f), 1192) { Fly = true }; @@ -365506,15 +444586,18 @@ public static class AssemblyQuestLoader num = 1; List list248 = new List(num); CollectionsMarshal.SetCount(list248, num); - CollectionsMarshal.AsSpan(list248)[0] = "JerryWester"; + Span span248 = CollectionsMarshal.AsSpan(list248); + index = 0; + span248[index] = "JerryWester"; questRoot33.Author = list248; questRoot33.IsSeasonalQuest = true; questRoot33.SeasonalQuestExpiry = new DateTime(2024, 8, 26, 0, 0, 0, DateTimeKind.Utc); - num = 6; - List list249 = new List(num); - CollectionsMarshal.SetCount(list249, num); - Span span97 = CollectionsMarshal.AsSpan(list249); - ref QuestSequence reference180 = ref span97[0]; + index = 6; + List list249 = new List(index); + CollectionsMarshal.SetCount(list249, index); + Span span249 = CollectionsMarshal.AsSpan(list249); + num = 0; + ref QuestSequence reference180 = ref span249[num]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -365522,7 +444605,9 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - ref QuestStep reference181 = ref CollectionsMarshal.AsSpan(list250)[0]; + Span span250 = CollectionsMarshal.AsSpan(list250); + index2 = 0; + ref QuestStep reference181 = ref span250[index2]; QuestStep obj163 = new QuestStep(EInteractionType.AcceptQuest, 1050816u, new Vector3(14.328186f, 45.665993f, 131.33435f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -365537,26 +444622,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = 128; + index3 = 1; + List list251 = new List(index3); + CollectionsMarshal.SetCount(list251, index3); + Span span251 = CollectionsMarshal.AsSpan(list251); + num3 = 0; + span251[num3] = 128; obj164.InTerritory = list251; skipConditions6.AetheryteShortcutIf = obj164; obj163.SkipConditions = skipConditions6; reference181 = obj163; obj162.Steps = list250; reference180 = obj162; - ref QuestSequence reference182 = ref span97[1]; + num++; + ref QuestSequence reference182 = ref span249[num]; QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span98 = CollectionsMarshal.AsSpan(list252); - ref QuestStep reference183 = ref span98[0]; + index2 = 4; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + ref QuestStep reference183 = ref span252[num2]; QuestStep obj166 = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) { TargetTerritoryId = (ushort)137, @@ -365571,7 +444660,9 @@ public static class AssemblyQuestLoader num3 = 1; List list253 = new List(num3); CollectionsMarshal.SetCount(list253, num3); - CollectionsMarshal.AsSpan(list253)[0] = 137; + Span span253 = CollectionsMarshal.AsSpan(list253); + index3 = 0; + span253[index3] = 137; skipStepConditions6.InTerritory = list253; skipStepConditions6.AetheryteUnlocked = EAetheryteLocation.EasternLaNosceaCostaDelSol; skipConditions7.StepIf = skipStepConditions6; @@ -365581,7 +444672,8 @@ public static class AssemblyQuestLoader }; obj166.SkipConditions = skipConditions7; reference183 = obj166; - span98[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) + num2++; + span252[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) { Aetheryte = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -365592,7 +444684,8 @@ public static class AssemblyQuestLoader } } }; - span98[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(732.0986f, 11.349089f, 262.19138f), 137) + num2++; + span252[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(732.0986f, 11.349089f, 262.19138f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -365604,13 +444697,15 @@ public static class AssemblyQuestLoader } } }; - span98[3] = new QuestStep(EInteractionType.Interact, 1050817u, new Vector3(735.25586f, 11.306824f, 261.8601f), 137) + num2++; + span252[num2] = new QuestStep(EInteractionType.Interact, 1050817u, new Vector3(735.25586f, 11.306824f, 261.8601f), 137) { StopDistance = 5f }; obj165.Steps = list252; reference182 = obj165; - ref QuestSequence reference184 = ref span97[2]; + num++; + ref QuestSequence reference184 = ref span249[num]; QuestSequence obj167 = new QuestSequence { Sequence = 2 @@ -365618,28 +444713,34 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1050818u, new Vector3(681.3915f, 9.601691f, 202.86865f), 137) + Span span254 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + span254[index2] = new QuestStep(EInteractionType.Interact, 1050818u, new Vector3(681.3915f, 9.601691f, 202.86865f), 137) { StopDistance = 5f, Fly = true }; obj167.Steps = list254; reference184 = obj167; - ref QuestSequence reference185 = ref span97[3]; + num++; + ref QuestSequence reference185 = ref span249[num]; QuestSequence obj168 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list255 = new List(num2); - CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1050819u, new Vector3(770.13806f, 9.687993f, 246.29578f), 137) + index2 = 1; + List list255 = new List(index2); + CollectionsMarshal.SetCount(list255, index2); + Span span255 = CollectionsMarshal.AsSpan(list255); + num2 = 0; + span255[num2] = new QuestStep(EInteractionType.Interact, 1050819u, new Vector3(770.13806f, 9.687993f, 246.29578f), 137) { Fly = true }; obj168.Steps = list255; reference185 = obj168; - ref QuestSequence reference186 = ref span97[4]; + num++; + ref QuestSequence reference186 = ref span249[num]; QuestSequence obj169 = new QuestSequence { Sequence = 4 @@ -365647,12 +444748,16 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - ref QuestStep reference187 = ref CollectionsMarshal.AsSpan(list256)[0]; + Span span256 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + ref QuestStep reference187 = ref span256[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2014098u, new Vector3(769.0698f, 9.719971f, 246.99768f), 137); - num3 = 1; - List list257 = new List(num3); - CollectionsMarshal.SetCount(list257, num3); - CollectionsMarshal.AsSpan(list257)[0] = new DialogueChoice + index3 = 1; + List list257 = new List(index3); + CollectionsMarshal.SetCount(list257, index3); + Span span257 = CollectionsMarshal.AsSpan(list257); + num3 = 0; + span257[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESSUX001_05182_Q1_000_000"), @@ -365662,15 +444767,18 @@ public static class AssemblyQuestLoader reference187 = questStep19; obj169.Steps = list256; reference186 = obj169; - ref QuestSequence reference188 = ref span97[5]; + num++; + ref QuestSequence reference188 = ref span249[num]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list258 = new List(num2); - CollectionsMarshal.SetCount(list258, num2); - ref QuestStep reference189 = ref CollectionsMarshal.AsSpan(list258)[0]; + index2 = 1; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + ref QuestStep reference189 = ref span258[num2]; QuestStep obj171 = new QuestStep(EInteractionType.CompleteQuest, 1050820u, new Vector3(695.46045f, 9.614362f, 295.70447f), 137) { Fly = true @@ -365678,7 +444786,9 @@ public static class AssemblyQuestLoader num3 = 1; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - CollectionsMarshal.AsSpan(list259)[0] = new DialogueChoice + Span span259 = CollectionsMarshal.AsSpan(list259); + index3 = 0; + span259[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESSUX001_05182_Q2_000_000"), @@ -365696,15 +444806,18 @@ public static class AssemblyQuestLoader num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - CollectionsMarshal.AsSpan(list260)[0] = "JerryWester"; + Span span260 = CollectionsMarshal.AsSpan(list260); + index = 0; + span260[index] = "JerryWester"; questRoot34.Author = list260; questRoot34.IsSeasonalQuest = true; questRoot34.SeasonalQuestExpiry = new DateTime(2024, 8, 26, 0, 0, 0, DateTimeKind.Utc); - num = 4; - List list261 = new List(num); - CollectionsMarshal.SetCount(list261, num); - Span span99 = CollectionsMarshal.AsSpan(list261); - ref QuestSequence reference190 = ref span99[0]; + index = 4; + List list261 = new List(index); + CollectionsMarshal.SetCount(list261, index); + Span span261 = CollectionsMarshal.AsSpan(list261); + num = 0; + ref QuestSequence reference190 = ref span261[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -365712,40 +444825,51 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050828u, new Vector3(694.5753f, 9.578133f, 297.59656f), 137) + Span span262 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span262[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050828u, new Vector3(694.5753f, 9.578133f, 297.59656f), 137) { StopDistance = 5f }; obj172.Steps = list262; reference190 = obj172; - ref QuestSequence reference191 = ref span99[1]; + num++; + ref QuestSequence reference191 = ref span261[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - Span span100 = CollectionsMarshal.AsSpan(list263); - ref QuestStep reference192 = ref span100[0]; + index2 = 2; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + Span span263 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + ref QuestStep reference192 = ref span263[num2]; QuestStep obj174 = new QuestStep(EInteractionType.Emote, 1050824u, new Vector3(507.68274f, 9.541115f, 428.54944f), 137) { Fly = true, Emote = EEmote.Uchiwasshoi }; - num3 = 6; - List list264 = new List(num3); - CollectionsMarshal.SetCount(list264, num3); - Span span101 = CollectionsMarshal.AsSpan(list264); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list264 = new List(index3); + CollectionsMarshal.SetCount(list264, index3); + Span span264 = CollectionsMarshal.AsSpan(list264); + num3 = 0; + span264[num3] = null; + num3++; + span264[num3] = null; + num3++; + span264[num3] = null; + num3++; + span264[num3] = null; + num3++; + span264[num3] = null; + num3++; + span264[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj174.CompletionQuestVariablesFlags = list264; reference192 = obj174; - ref QuestStep reference193 = ref span100[1]; + num2++; + ref QuestStep reference193 = ref span263[num2]; QuestStep obj175 = new QuestStep(EInteractionType.Emote, 1050825u, new Vector3(641.44336f, 11.697773f, 526.604f), 137) { Fly = true, @@ -365754,18 +444878,25 @@ public static class AssemblyQuestLoader num3 = 6; List list265 = new List(num3); CollectionsMarshal.SetCount(list265, num3); - Span span102 = CollectionsMarshal.AsSpan(list265); - span102[0] = null; - span102[1] = null; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span265 = CollectionsMarshal.AsSpan(list265); + index3 = 0; + span265[index3] = null; + index3++; + span265[index3] = null; + index3++; + span265[index3] = null; + index3++; + span265[index3] = null; + index3++; + span265[index3] = null; + index3++; + span265[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj175.CompletionQuestVariablesFlags = list265; reference193 = obj175; obj173.Steps = list263; reference191 = obj173; - ref QuestSequence reference194 = ref span99[2]; + num++; + ref QuestSequence reference194 = ref span261[num]; QuestSequence obj176 = new QuestSequence { Sequence = 2 @@ -365773,34 +444904,41 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1050829u, new Vector3(694.2092f, 9.619679f, 294.81946f), 137) + Span span266 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span266[index2] = new QuestStep(EInteractionType.Interact, 1050829u, new Vector3(694.2092f, 9.619679f, 294.81946f), 137) { Fly = true }; obj176.Steps = list266; reference194 = obj176; - ref QuestSequence reference195 = ref span99[3]; + num++; + ref QuestSequence reference195 = ref span261[num]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span103 = CollectionsMarshal.AsSpan(list267); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(732.0986f, 11.349089f, 262.19138f), 137) + index2 = 2; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span267[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(732.0986f, 11.349089f, 262.19138f), 137) { Fly = true }; - ref QuestStep reference196 = ref span103[1]; + num2++; + ref QuestStep reference196 = ref span267[num2]; QuestStep obj178 = new QuestStep(EInteractionType.CompleteQuest, 1050817u, new Vector3(735.25586f, 11.306824f, 261.8601f), 137) { StopDistance = 5f }; - num3 = 1; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = new DialogueChoice + index3 = 1; + List list268 = new List(index3); + CollectionsMarshal.SetCount(list268, index3); + Span span268 = CollectionsMarshal.AsSpan(list268); + num3 = 0; + span268[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESSUX002_05183_Q1_000_000"), @@ -365817,15 +444955,18 @@ public static class AssemblyQuestLoader num = 1; List list269 = new List(num); CollectionsMarshal.SetCount(list269, num); - CollectionsMarshal.AsSpan(list269)[0] = "liza"; + Span span269 = CollectionsMarshal.AsSpan(list269); + index = 0; + span269[index] = "liza"; questRoot35.Author = list269; questRoot35.IsSeasonalQuest = true; questRoot35.SeasonalQuestExpiry = new DateTime(2024, 11, 4, 0, 0, 0, DateTimeKind.Utc); - num = 5; - List list270 = new List(num); - CollectionsMarshal.SetCount(list270, num); - Span span104 = CollectionsMarshal.AsSpan(list270); - ref QuestSequence reference197 = ref span104[0]; + index = 5; + List list270 = new List(index); + CollectionsMarshal.SetCount(list270, index); + Span span270 = CollectionsMarshal.AsSpan(list270); + num = 0; + ref QuestSequence reference197 = ref span270[num]; QuestSequence obj179 = new QuestSequence { Sequence = 0 @@ -365833,7 +444974,9 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list271)[0]; + Span span271 = CollectionsMarshal.AsSpan(list271); + index2 = 0; + ref QuestStep reference198 = ref span271[index2]; QuestStep obj180 = new QuestStep(EInteractionType.AcceptQuest, 1050484u, new Vector3(-50.003845f, 6.5f, -88.39557f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -365851,25 +444994,31 @@ public static class AssemblyQuestLoader num3 = 1; List list272 = new List(num3); CollectionsMarshal.SetCount(list272, num3); - CollectionsMarshal.AsSpan(list272)[0] = 133; + Span span272 = CollectionsMarshal.AsSpan(list272); + index3 = 0; + span272[index3] = 133; obj181.InTerritory = list272; skipConditions8.AetheryteShortcutIf = obj181; obj180.SkipConditions = skipConditions8; reference198 = obj180; obj179.Steps = list271; reference197 = obj179; - ref QuestSequence reference199 = ref span104[1]; + num++; + ref QuestSequence reference199 = ref span270[num]; QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 1050479u, new Vector3(-157.33582f, 7.982081f, -143.69421f), 133); + index2 = 1; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span273[num2] = new QuestStep(EInteractionType.Interact, 1050479u, new Vector3(-157.33582f, 7.982081f, -143.69421f), 133); obj182.Steps = list273; reference199 = obj182; - ref QuestSequence reference200 = ref span104[2]; + num++; + ref QuestSequence reference200 = ref span270[num]; QuestSequence obj183 = new QuestSequence { Sequence = 2 @@ -365877,24 +445026,30 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1050483u, new Vector3(-151.07965f, 5.417452f, -53.330322f), 133); + Span span274 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span274[index2] = new QuestStep(EInteractionType.Interact, 1050483u, new Vector3(-151.07965f, 5.417452f, -53.330322f), 133); obj183.Steps = list274; reference200 = obj183; - ref QuestSequence reference201 = ref span104[3]; + num++; + ref QuestSequence reference201 = ref span270[num]; QuestSequence obj184 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Emote, 1050483u, new Vector3(-151.07965f, 5.417452f, -53.330322f), 133) + index2 = 1; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.Emote, 1050483u, new Vector3(-151.07965f, 5.417452f, -53.330322f), 133) { Emote = EEmote.Soothe }; obj184.Steps = list275; reference201 = obj184; - ref QuestSequence reference202 = ref span104[4]; + num++; + ref QuestSequence reference202 = ref span270[num]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -365902,7 +445057,9 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050484u, new Vector3(-50.003845f, 6.5f, -88.39557f), 133) + Span span276 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span276[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050484u, new Vector3(-50.003845f, 6.5f, -88.39557f), 133) { AethernetShortcut = new AethernetShortcut { @@ -365920,23 +445077,28 @@ public static class AssemblyQuestLoader num = 1; List list277 = new List(num); CollectionsMarshal.SetCount(list277, num); - CollectionsMarshal.AsSpan(list277)[0] = "liza"; + Span span277 = CollectionsMarshal.AsSpan(list277); + index = 0; + span277[index] = "liza"; questRoot36.Author = list277; questRoot36.IsSeasonalQuest = true; questRoot36.SeasonalQuestExpiry = new DateTime(2024, 11, 4, 0, 0, 0, DateTimeKind.Utc); - num = 5; - List list278 = new List(num); - CollectionsMarshal.SetCount(list278, num); - Span span105 = CollectionsMarshal.AsSpan(list278); - ref QuestSequence reference203 = ref span105[0]; + index = 5; + List list278 = new List(index); + CollectionsMarshal.SetCount(list278, index); + Span span278 = CollectionsMarshal.AsSpan(list278); + num = 0; + ref QuestSequence reference203 = ref span278[num]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - ref QuestStep reference204 = ref CollectionsMarshal.AsSpan(list279)[0]; + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + Span span279 = CollectionsMarshal.AsSpan(list279); + num2 = 0; + ref QuestStep reference204 = ref span279[num2]; QuestStep obj187 = new QuestStep(EInteractionType.AcceptQuest, 1050485u, new Vector3(-48.69159f, 6.4999957f, -89.79938f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -365951,17 +445113,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list280 = new List(num3); - CollectionsMarshal.SetCount(list280, num3); - CollectionsMarshal.AsSpan(list280)[0] = 133; + index3 = 1; + List list280 = new List(index3); + CollectionsMarshal.SetCount(list280, index3); + Span span280 = CollectionsMarshal.AsSpan(list280); + num3 = 0; + span280[num3] = 133; obj188.InTerritory = list280; skipConditions9.AetheryteShortcutIf = obj188; obj187.SkipConditions = skipConditions9; reference204 = obj187; obj186.Steps = list279; reference203 = obj186; - ref QuestSequence reference205 = ref span105[1]; + num++; + ref QuestSequence reference205 = ref span278[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 @@ -365969,21 +445134,27 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1050486u, new Vector3(-105.97394f, 6.9391603f, -133.95898f), 133); + Span span281 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span281[index2] = new QuestStep(EInteractionType.Interact, 1050486u, new Vector3(-105.97394f, 6.9391603f, -133.95898f), 133); obj189.Steps = list281; reference205 = obj189; - ref QuestSequence reference206 = ref span105[2]; + num++; + ref QuestSequence reference206 = ref span278[num]; QuestSequence obj190 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1050488u, new Vector3(12.619202f, 13.1293745f, -292.31714f), 133); + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + Span span282 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span282[num2] = new QuestStep(EInteractionType.Interact, 1050488u, new Vector3(12.619202f, 13.1293745f, -292.31714f), 133); obj190.Steps = list282; reference206 = obj190; - ref QuestSequence reference207 = ref span105[3]; + num++; + ref QuestSequence reference207 = ref span278[num]; QuestSequence obj191 = new QuestSequence { Sequence = 3 @@ -365991,18 +445162,23 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1050489u, new Vector3(153.76514f, 11.213254f, -221.5763f), 133); + Span span283 = CollectionsMarshal.AsSpan(list283); + index2 = 0; + span283[index2] = new QuestStep(EInteractionType.Interact, 1050489u, new Vector3(153.76514f, 11.213254f, -221.5763f), 133); obj191.Steps = list283; reference207 = obj191; - ref QuestSequence reference208 = ref span105[4]; + num++; + ref QuestSequence reference208 = ref span278[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list284 = new List(num2); - CollectionsMarshal.SetCount(list284, num2); - CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050484u, new Vector3(-50.003845f, 6.5f, -88.39557f), 133) + index2 = 1; + List list284 = new List(index2); + CollectionsMarshal.SetCount(list284, index2); + Span span284 = CollectionsMarshal.AsSpan(list284); + num2 = 0; + span284[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050484u, new Vector3(-50.003845f, 6.5f, -88.39557f), 133) { AethernetShortcut = new AethernetShortcut { @@ -366019,15 +445195,18 @@ public static class AssemblyQuestLoader num = 1; List list285 = new List(num); CollectionsMarshal.SetCount(list285, num); - CollectionsMarshal.AsSpan(list285)[0] = "Starr"; + Span span285 = CollectionsMarshal.AsSpan(list285); + index = 0; + span285[index] = "Starr"; questRoot37.Author = list285; questRoot37.IsSeasonalQuest = true; questRoot37.SeasonalQuestExpiry = new DateTime(2025, 1, 16, 0, 0, 0, DateTimeKind.Utc); - num = 5; - List list286 = new List(num); - CollectionsMarshal.SetCount(list286, num); - Span span106 = CollectionsMarshal.AsSpan(list286); - ref QuestSequence reference209 = ref span106[0]; + index = 5; + List list286 = new List(index); + CollectionsMarshal.SetCount(list286, index); + Span span286 = CollectionsMarshal.AsSpan(list286); + num = 0; + ref QuestSequence reference209 = ref span286[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -366035,7 +445214,9 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - ref QuestStep reference210 = ref CollectionsMarshal.AsSpan(list287)[0]; + Span span287 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + ref QuestStep reference210 = ref span287[index2]; QuestStep obj194 = new QuestStep(EInteractionType.AcceptQuest, 1050356u, new Vector3(17.288391f, 45.656f, 133.95886f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -366050,27 +445231,34 @@ public static class AssemblyQuestLoader num3 = 1; List list288 = new List(num3); CollectionsMarshal.SetCount(list288, num3); - CollectionsMarshal.AsSpan(list288)[0] = 128; + Span span288 = CollectionsMarshal.AsSpan(list288); + index3 = 0; + span288[index3] = 128; skipAetheryteCondition.InTerritory = list288; skipConditions10.AetheryteShortcutIf = skipAetheryteCondition; obj194.SkipConditions = skipConditions10; reference210 = obj194; obj193.Steps = list287; reference209 = obj193; - ref QuestSequence reference211 = ref span106[1]; + num++; + ref QuestSequence reference211 = ref span286[num]; QuestSequence obj195 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - ref QuestStep reference212 = ref CollectionsMarshal.AsSpan(list289)[0]; + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + Span span289 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + ref QuestStep reference212 = ref span289[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1050357u, new Vector3(-4.6845703f, 40.000004f, 73.3501f), 128); - num3 = 1; - List list290 = new List(num3); - CollectionsMarshal.SetCount(list290, num3); - CollectionsMarshal.AsSpan(list290)[0] = new DialogueChoice + index3 = 1; + List list290 = new List(index3); + CollectionsMarshal.SetCount(list290, index3); + Span span290 = CollectionsMarshal.AsSpan(list290); + num3 = 0; + span290[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESNYX101_05186_Q1_000_000"), @@ -366080,7 +445268,8 @@ public static class AssemblyQuestLoader reference212 = questStep20; obj195.Steps = list289; reference211 = obj195; - ref QuestSequence reference213 = ref span106[2]; + num++; + ref QuestSequence reference213 = ref span286[num]; QuestSequence obj196 = new QuestSequence { Sequence = 2 @@ -366088,12 +445277,16 @@ public static class AssemblyQuestLoader num2 = 1; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list291)[0]; + Span span291 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + ref QuestStep reference214 = ref span291[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1050358u, new Vector3(-18.143005f, 44f, -33.49359f), 128); num3 = 1; List list292 = new List(num3); CollectionsMarshal.SetCount(list292, num3); - CollectionsMarshal.AsSpan(list292)[0] = new DialogueChoice + Span span292 = CollectionsMarshal.AsSpan(list292); + index3 = 0; + span292[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESNYX101_05186_Q2_000_000"), @@ -366103,20 +445296,25 @@ public static class AssemblyQuestLoader reference214 = questStep21; obj196.Steps = list291; reference213 = obj196; - ref QuestSequence reference215 = ref span106[3]; + num++; + ref QuestSequence reference215 = ref span286[num]; QuestSequence obj197 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - ref QuestStep reference216 = ref CollectionsMarshal.AsSpan(list293)[0]; + index2 = 1; + List list293 = new List(index2); + CollectionsMarshal.SetCount(list293, index2); + Span span293 = CollectionsMarshal.AsSpan(list293); + num2 = 0; + ref QuestStep reference216 = ref span293[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1050359u, new Vector3(-44.235962f, 39.473606f, -163.77509f), 128); - num3 = 1; - List list294 = new List(num3); - CollectionsMarshal.SetCount(list294, num3); - CollectionsMarshal.AsSpan(list294)[0] = new DialogueChoice + index3 = 1; + List list294 = new List(index3); + CollectionsMarshal.SetCount(list294, index3); + Span span294 = CollectionsMarshal.AsSpan(list294); + num3 = 0; + span294[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESNYX101_05186_Q3_000_000"), @@ -366126,7 +445324,8 @@ public static class AssemblyQuestLoader reference216 = questStep22; obj197.Steps = list293; reference215 = obj197; - ref QuestSequence reference217 = ref span106[4]; + num++; + ref QuestSequence reference217 = ref span286[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue @@ -366134,7 +445333,9 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050356u, new Vector3(17.288391f, 45.656f, 133.95886f), 128) + Span span295 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span295[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050356u, new Vector3(17.288391f, 45.656f, 133.95886f), 128) { AethernetShortcut = new AethernetShortcut { @@ -366151,26 +445352,33 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - CollectionsMarshal.AsSpan(list296)[0] = "liza"; + Span span296 = CollectionsMarshal.AsSpan(list296); + index = 0; + span296[index] = "liza"; questRoot38.Author = list296; - num = 3; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - Span span107 = CollectionsMarshal.AsSpan(list297); - ref QuestSequence reference218 = ref span107[0]; + index = 3; + List list297 = new List(index); + CollectionsMarshal.SetCount(list297, index); + Span span297 = CollectionsMarshal.AsSpan(list297); + num = 0; + ref QuestSequence reference218 = ref span297[num]; QuestSequence obj199 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - ref QuestStep reference219 = ref CollectionsMarshal.AsSpan(list298)[0]; + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + Span span298 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + ref QuestStep reference219 = ref span298[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.AcceptQuest, 1051600u, new Vector3(111.16199f, 4f, -98.92432f), 131); num3 = 1; List list299 = new List(num3); CollectionsMarshal.SetCount(list299, num3); - CollectionsMarshal.AsSpan(list299)[0] = new DialogueChoice + Span span299 = CollectionsMarshal.AsSpan(list299); + index3 = 0; + span299[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGYR301_05187_Q1_000_000"), @@ -366180,7 +445388,8 @@ public static class AssemblyQuestLoader reference219 = questStep23; obj199.Steps = list298; reference218 = obj199; - ref QuestSequence reference220 = ref span107[1]; + num++; + ref QuestSequence reference220 = ref span297[num]; QuestSequence obj200 = new QuestSequence { Sequence = 1 @@ -366188,21 +445397,26 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1051601u, new Vector3(-45.5177f, 7.9999995f, -100.72485f), 130) + Span span300 = CollectionsMarshal.AsSpan(list300); + index2 = 0; + span300[index2] = new QuestStep(EInteractionType.Interact, 1051601u, new Vector3(-45.5177f, 7.9999995f, -100.72485f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj200.Steps = list300; reference220 = obj200; - ref QuestSequence reference221 = ref span107[2]; + num++; + ref QuestSequence reference221 = ref span297[num]; QuestSequence obj201 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051600u, new Vector3(111.16199f, 4f, -98.92432f), 131) + index2 = 1; + List list301 = new List(index2); + CollectionsMarshal.SetCount(list301, index2); + Span span301 = CollectionsMarshal.AsSpan(list301); + num2 = 0; + span301[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051600u, new Vector3(111.16199f, 4f, -98.92432f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -366220,13 +445434,16 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - CollectionsMarshal.AsSpan(list302)[0] = "liza"; + Span span302 = CollectionsMarshal.AsSpan(list302); + index = 0; + span302[index] = "liza"; questRoot39.Author = list302; - num = 5; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - Span span108 = CollectionsMarshal.AsSpan(list303); - ref QuestSequence reference222 = ref span108[0]; + index = 5; + List list303 = new List(index); + CollectionsMarshal.SetCount(list303, index); + Span span303 = CollectionsMarshal.AsSpan(list303); + num = 0; + ref QuestSequence reference222 = ref span303[num]; QuestSequence obj202 = new QuestSequence { Sequence = 0 @@ -366234,7 +445451,9 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) + Span span304 = CollectionsMarshal.AsSpan(list304); + index2 = 0; + span304[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -366252,16 +445471,18 @@ public static class AssemblyQuestLoader }; obj202.Steps = list304; reference222 = obj202; - ref QuestSequence reference223 = ref span108[1]; + num++; + ref QuestSequence reference223 = ref span303[num]; QuestSequence obj203 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list305 = new List(num2); - CollectionsMarshal.SetCount(list305, num2); - Span span109 = CollectionsMarshal.AsSpan(list305); - ref QuestStep reference224 = ref span109[0]; + index2 = 3; + List list305 = new List(index2); + CollectionsMarshal.SetCount(list305, index2); + Span span305 = CollectionsMarshal.AsSpan(list305); + num2 = 0; + ref QuestStep reference224 = ref span305[num2]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 1001657u, new Vector3(94.80432f, 7.9804688f, -34.042908f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -366271,49 +445492,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - num3 = 6; - List list306 = new List(num3); - CollectionsMarshal.SetCount(list306, num3); - Span span110 = CollectionsMarshal.AsSpan(list306); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list306 = new List(index3); + CollectionsMarshal.SetCount(list306, index3); + Span span306 = CollectionsMarshal.AsSpan(list306); + num3 = 0; + span306[num3] = null; + num3++; + span306[num3] = null; + num3++; + span306[num3] = null; + num3++; + span306[num3] = null; + num3++; + span306[num3] = null; + num3++; + span306[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj204.CompletionQuestVariablesFlags = list306; reference224 = obj204; - ref QuestStep reference225 = ref span109[1]; + num2++; + ref QuestStep reference225 = ref span305[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1006440u, new Vector3(140.3982f, 4f, -54.154297f), 131); num3 = 6; List list307 = new List(num3); CollectionsMarshal.SetCount(list307, num3); - Span span111 = CollectionsMarshal.AsSpan(list307); - span111[0] = null; - span111[1] = null; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span307 = CollectionsMarshal.AsSpan(list307); + index3 = 0; + span307[index3] = null; + index3++; + span307[index3] = null; + index3++; + span307[index3] = null; + index3++; + span307[index3] = null; + index3++; + span307[index3] = null; + index3++; + span307[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list307; reference225 = questStep24; - ref QuestStep reference226 = ref span109[2]; + num2++; + ref QuestStep reference226 = ref span305[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1051655u, new Vector3(137.74304f, 4f, 5.9662476f), 131); - num3 = 6; - List list308 = new List(num3); - CollectionsMarshal.SetCount(list308, num3); - Span span112 = CollectionsMarshal.AsSpan(list308); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list308 = new List(index3); + CollectionsMarshal.SetCount(list308, index3); + Span span308 = CollectionsMarshal.AsSpan(list308); + num3 = 0; + span308[num3] = null; + num3++; + span308[num3] = null; + num3++; + span308[num3] = null; + num3++; + span308[num3] = null; + num3++; + span308[num3] = null; + num3++; + span308[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list308; reference226 = questStep25; obj203.Steps = list305; reference223 = obj203; - ref QuestSequence reference227 = ref span108[2]; + num++; + ref QuestSequence reference227 = ref span303[num]; QuestSequence obj205 = new QuestSequence { Sequence = 2 @@ -366321,25 +445563,31 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Emote, null, new Vector3(146.12386f, 4f, -23.562449f), 131) + Span span309 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span309[index2] = new QuestStep(EInteractionType.Emote, null, new Vector3(146.12386f, 4f, -23.562449f), 131) { StopDistance = 0.5f, Emote = EEmote.Angry }; obj205.Steps = list309; reference227 = obj205; - ref QuestSequence reference228 = ref span108[3]; + num++; + ref QuestSequence reference228 = ref span303[num]; QuestSequence obj206 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1051656u, new Vector3(56.443115f, 10f, 5.935669f), 131); + index2 = 1; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + Span span310 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + span310[num2] = new QuestStep(EInteractionType.Interact, 1051656u, new Vector3(56.443115f, 10f, 5.935669f), 131); obj206.Steps = list310; reference228 = obj206; - ref QuestSequence reference229 = ref span108[4]; + num++; + ref QuestSequence reference229 = ref span303[num]; QuestSequence obj207 = new QuestSequence { Sequence = byte.MaxValue @@ -366347,8 +445595,9 @@ public static class AssemblyQuestLoader num2 = 2; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - Span span113 = CollectionsMarshal.AsSpan(list311); - ref QuestStep reference230 = ref span113[0]; + Span span311 = CollectionsMarshal.AsSpan(list311); + index2 = 0; + ref QuestStep reference230 = ref span311[index2]; QuestStep obj208 = new QuestStep(EInteractionType.Interact, 2012114u, new Vector3(0f, 1.15f, 10.23451f), 1255) { TargetTerritoryId = (ushort)131 @@ -366358,12 +445607,15 @@ public static class AssemblyQuestLoader num3 = 1; List list312 = new List(num3); CollectionsMarshal.SetCount(list312, num3); - CollectionsMarshal.AsSpan(list312)[0] = 131; + Span span312 = CollectionsMarshal.AsSpan(list312); + index3 = 0; + span312[index3] = 131; skipStepConditions7.InTerritory = list312; skipConditions11.StepIf = skipStepConditions7; obj208.SkipConditions = skipConditions11; reference230 = obj208; - span113[1] = new QuestStep(EInteractionType.CompleteQuest, 1051656u, new Vector3(56.443115f, 10f, 5.935669f), 131) + index2++; + span311[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051656u, new Vector3(56.443115f, 10f, 5.935669f), 131) { StopDistance = 7f, NextQuestId = new QuestId(5189) @@ -366377,27 +445629,33 @@ public static class AssemblyQuestLoader num = 1; List list313 = new List(num); CollectionsMarshal.SetCount(list313, num); - CollectionsMarshal.AsSpan(list313)[0] = "liza"; + Span span313 = CollectionsMarshal.AsSpan(list313); + index = 0; + span313[index] = "liza"; questRoot40.Author = list313; - num = 7; - List list314 = new List(num); - CollectionsMarshal.SetCount(list314, num); - Span span114 = CollectionsMarshal.AsSpan(list314); - ref QuestSequence reference231 = ref span114[0]; + index = 7; + List list314 = new List(index); + CollectionsMarshal.SetCount(list314, index); + Span span314 = CollectionsMarshal.AsSpan(list314); + num = 0; + ref QuestSequence reference231 = ref span314[num]; QuestSequence obj209 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051656u, new Vector3(56.443115f, 10f, 5.935669f), 131) + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + Span span315 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span315[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051656u, new Vector3(56.443115f, 10f, 5.935669f), 131) { StopDistance = 7f }; obj209.Steps = list315; reference231 = obj209; - ref QuestSequence reference232 = ref span114[1]; + num++; + ref QuestSequence reference232 = ref span314[num]; QuestSequence obj210 = new QuestSequence { Sequence = 1 @@ -366405,30 +445663,37 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 2014419u, new Vector3(-158.86176f, 7.4921875f, 493.88867f), 146) + Span span316 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + span316[index2] = new QuestStep(EInteractionType.Interact, 2014419u, new Vector3(-158.86176f, 7.4921875f, 493.88867f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj210.Steps = list316; reference232 = obj210; - ref QuestSequence reference233 = ref span114[2]; + num++; + ref QuestSequence reference233 = ref span314[num]; QuestSequence obj211 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list317 = new List(num2); - CollectionsMarshal.SetCount(list317, num2); - ref QuestStep reference234 = ref CollectionsMarshal.AsSpan(list317)[0]; + index2 = 1; + List list317 = new List(index2); + CollectionsMarshal.SetCount(list317, index2); + Span span317 = CollectionsMarshal.AsSpan(list317); + num2 = 0; + ref QuestStep reference234 = ref span317[num2]; QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1051661u, new Vector3(1.7852783f, 19.026453f, 581.62805f), 146) { StopDistance = 5f }; - num3 = 1; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - CollectionsMarshal.AsSpan(list318)[0] = new DialogueChoice + index3 = 1; + List list318 = new List(index3); + CollectionsMarshal.SetCount(list318, index3); + Span span318 = CollectionsMarshal.AsSpan(list318); + num3 = 0; + span318[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBZ002_05189_Q1_000_000"), @@ -366438,7 +445703,8 @@ public static class AssemblyQuestLoader reference234 = obj212; obj211.Steps = list317; reference233 = obj211; - ref QuestSequence reference235 = ref span114[3]; + num++; + ref QuestSequence reference235 = ref span314[num]; QuestSequence obj213 = new QuestSequence { Sequence = 3 @@ -366446,7 +445712,9 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - ref QuestStep reference236 = ref CollectionsMarshal.AsSpan(list319)[0]; + Span span319 = CollectionsMarshal.AsSpan(list319); + index2 = 0; + ref QuestStep reference236 = ref span319[index2]; QuestStep obj214 = new QuestStep(EInteractionType.Combat, 1051663u, new Vector3(51.68225f, 0.7631253f, 711.57385f), 146) { Fly = true, @@ -366455,23 +445723,29 @@ public static class AssemblyQuestLoader num3 = 1; List list320 = new List(num3); CollectionsMarshal.SetCount(list320, num3); - CollectionsMarshal.AsSpan(list320)[0] = 18178u; + Span span320 = CollectionsMarshal.AsSpan(list320); + index3 = 0; + span320[index3] = 18178u; obj214.KillEnemyDataIds = list320; reference236 = obj214; obj213.Steps = list319; reference235 = obj213; - ref QuestSequence reference237 = ref span114[4]; + num++; + ref QuestSequence reference237 = ref span314[num]; QuestSequence obj215 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.Interact, 1051663u, new Vector3(51.68225f, 0.7631253f, 711.57385f), 146); + index2 = 1; + List list321 = new List(index2); + CollectionsMarshal.SetCount(list321, index2); + Span span321 = CollectionsMarshal.AsSpan(list321); + num2 = 0; + span321[num2] = new QuestStep(EInteractionType.Interact, 1051663u, new Vector3(51.68225f, 0.7631253f, 711.57385f), 146); obj215.Steps = list321; reference237 = obj215; - ref QuestSequence reference238 = ref span114[5]; + num++; + ref QuestSequence reference238 = ref span314[num]; QuestSequence obj216 = new QuestSequence { Sequence = 5 @@ -366479,21 +445753,26 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.Interact, 1051668u, new Vector3(170.42798f, 15.943722f, 897.94763f), 146) + Span span322 = CollectionsMarshal.AsSpan(list322); + index2 = 0; + span322[index2] = new QuestStep(EInteractionType.Interact, 1051668u, new Vector3(170.42798f, 15.943722f, 897.94763f), 146) { Fly = true }; obj216.Steps = list322; reference238 = obj216; - ref QuestSequence reference239 = ref span114[6]; + num++; + ref QuestSequence reference239 = ref span314[num]; QuestSequence obj217 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051668u, new Vector3(170.42798f, 15.943722f, 897.94763f), 146) + index2 = 1; + List list323 = new List(index2); + CollectionsMarshal.SetCount(list323, index2); + Span span323 = CollectionsMarshal.AsSpan(list323); + num2 = 0; + span323[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051668u, new Vector3(170.42798f, 15.943722f, 897.94763f), 146) { NextQuestId = new QuestId(5190) }; @@ -366506,13 +445785,16 @@ public static class AssemblyQuestLoader num = 1; List list324 = new List(num); CollectionsMarshal.SetCount(list324, num); - CollectionsMarshal.AsSpan(list324)[0] = "liza"; + Span span324 = CollectionsMarshal.AsSpan(list324); + index = 0; + span324[index] = "liza"; questRoot41.Author = list324; - num = 9; - List list325 = new List(num); - CollectionsMarshal.SetCount(list325, num); - Span span115 = CollectionsMarshal.AsSpan(list325); - ref QuestSequence reference240 = ref span115[0]; + index = 9; + List list325 = new List(index); + CollectionsMarshal.SetCount(list325, index); + Span span325 = CollectionsMarshal.AsSpan(list325); + num = 0; + ref QuestSequence reference240 = ref span325[num]; QuestSequence obj218 = new QuestSequence { Sequence = 0 @@ -366520,18 +445802,23 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051668u, new Vector3(170.42798f, 15.943722f, 897.94763f), 146); + Span span326 = CollectionsMarshal.AsSpan(list326); + index2 = 0; + span326[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051668u, new Vector3(170.42798f, 15.943722f, 897.94763f), 146); obj218.Steps = list326; reference240 = obj218; - ref QuestSequence reference241 = ref span115[1]; + num++; + ref QuestSequence reference241 = ref span325[num]; QuestSequence obj219 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list327 = new List(num2); - CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) + index2 = 1; + List list327 = new List(index2); + CollectionsMarshal.SetCount(list327, index2); + Span span327 = CollectionsMarshal.AsSpan(list327); + num2 = 0; + span327[num2] = new QuestStep(EInteractionType.Interact, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -366542,7 +445829,8 @@ public static class AssemblyQuestLoader }; obj219.Steps = list327; reference241 = obj219; - ref QuestSequence reference242 = ref span115[2]; + num++; + ref QuestSequence reference242 = ref span325[num]; QuestSequence obj220 = new QuestSequence { Sequence = 2 @@ -366550,18 +445838,23 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Interact, 1051670u, new Vector3(-15.976257f, -19.928413f, 224.90259f), 1185); + Span span328 = CollectionsMarshal.AsSpan(list328); + index2 = 0; + span328[index2] = new QuestStep(EInteractionType.Interact, 1051670u, new Vector3(-15.976257f, -19.928413f, 224.90259f), 1185); obj220.Steps = list328; reference242 = obj220; - ref QuestSequence reference243 = ref span115[3]; + num++; + ref QuestSequence reference243 = ref span325[num]; QuestSequence obj221 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list329 = new List(num2); - CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 1051675u, new Vector3(358.23608f, 5.957184f, 428.36658f), 1190) + index2 = 1; + List list329 = new List(index2); + CollectionsMarshal.SetCount(list329, index2); + Span span329 = CollectionsMarshal.AsSpan(list329); + num2 = 0; + span329[num2] = new QuestStep(EInteractionType.Interact, 1051675u, new Vector3(358.23608f, 5.957184f, 428.36658f), 1190) { StopDistance = 1f, Fly = true, @@ -366569,7 +445862,8 @@ public static class AssemblyQuestLoader }; obj221.Steps = list329; reference243 = obj221; - ref QuestSequence reference244 = ref span115[4]; + num++; + ref QuestSequence reference244 = ref span325[num]; QuestSequence obj222 = new QuestSequence { Sequence = 4 @@ -366577,26 +445871,32 @@ public static class AssemblyQuestLoader num2 = 2; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - Span span116 = CollectionsMarshal.AsSpan(list330); - span116[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(363.81656f, 5.9295864f, 435.17932f), 1190); - span116[1] = new QuestStep(EInteractionType.Interact, 1051677u, new Vector3(371.4198f, 5.95728f, 425.4978f), 1190); + Span span330 = CollectionsMarshal.AsSpan(list330); + index2 = 0; + span330[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(363.81656f, 5.9295864f, 435.17932f), 1190); + index2++; + span330[index2] = new QuestStep(EInteractionType.Interact, 1051677u, new Vector3(371.4198f, 5.95728f, 425.4978f), 1190); obj222.Steps = list330; reference244 = obj222; - ref QuestSequence reference245 = ref span115[5]; + num++; + ref QuestSequence reference245 = ref span325[num]; QuestSequence obj223 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list331 = new List(num2); - CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.Emote, 1051677u, new Vector3(371.4198f, 5.95728f, 425.4978f), 1190) + index2 = 1; + List list331 = new List(index2); + CollectionsMarshal.SetCount(list331, index2); + Span span331 = CollectionsMarshal.AsSpan(list331); + num2 = 0; + span331[num2] = new QuestStep(EInteractionType.Emote, 1051677u, new Vector3(371.4198f, 5.95728f, 425.4978f), 1190) { Emote = EEmote.Unbound }; obj223.Steps = list331; reference245 = obj223; - ref QuestSequence reference246 = ref span115[6]; + num++; + ref QuestSequence reference246 = ref span325[num]; QuestSequence obj224 = new QuestSequence { Sequence = 6 @@ -366604,26 +445904,32 @@ public static class AssemblyQuestLoader num2 = 1; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.Interact, 1051682u, new Vector3(387.5028f, -0.60167974f, 426.99304f), 1190); + Span span332 = CollectionsMarshal.AsSpan(list332); + index2 = 0; + span332[index2] = new QuestStep(EInteractionType.Interact, 1051682u, new Vector3(387.5028f, -0.60167974f, 426.99304f), 1190); obj224.Steps = list332; reference246 = obj224; - ref QuestSequence reference247 = ref span115[7]; + num++; + ref QuestSequence reference247 = ref span325[num]; QuestSequence obj225 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list333 = new List(num2); - CollectionsMarshal.SetCount(list333, num2); - Span span117 = CollectionsMarshal.AsSpan(list333); - span117[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(425.24307f, 0.7699772f, 473.79095f), 1190) + index2 = 2; + List list333 = new List(index2); + CollectionsMarshal.SetCount(list333, index2); + Span span333 = CollectionsMarshal.AsSpan(list333); + num2 = 0; + span333[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(425.24307f, 0.7699772f, 473.79095f), 1190) { Fly = true }; - span117[1] = new QuestStep(EInteractionType.Interact, 1051684u, new Vector3(426.04712f, 0.7461932f, 472.3125f), 1190); + num2++; + span333[num2] = new QuestStep(EInteractionType.Interact, 1051684u, new Vector3(426.04712f, 0.7461932f, 472.3125f), 1190); obj225.Steps = list333; reference247 = obj225; - ref QuestSequence reference248 = ref span115[8]; + num++; + ref QuestSequence reference248 = ref span325[num]; QuestSequence obj226 = new QuestSequence { Sequence = byte.MaxValue @@ -366631,7 +445937,9 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) + Span span334 = CollectionsMarshal.AsSpan(list334); + index2 = 0; + span334[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -366650,24 +445958,30 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - CollectionsMarshal.AsSpan(list335)[0] = "liza"; + Span span335 = CollectionsMarshal.AsSpan(list335); + index = 0; + span335[index] = "liza"; questRoot42.Author = list335; - num = 11; - List list336 = new List(num); - CollectionsMarshal.SetCount(list336, num); - Span span118 = CollectionsMarshal.AsSpan(list336); - ref QuestSequence reference249 = ref span118[0]; + index = 11; + List list336 = new List(index); + CollectionsMarshal.SetCount(list336, index); + Span span336 = CollectionsMarshal.AsSpan(list336); + num = 0; + ref QuestSequence reference249 = ref span336[num]; QuestSequence obj227 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list337 = new List(num2); - CollectionsMarshal.SetCount(list337, num2); - CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185); + index2 = 1; + List list337 = new List(index2); + CollectionsMarshal.SetCount(list337, index2); + Span span337 = CollectionsMarshal.AsSpan(list337); + num2 = 0; + span337[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185); obj227.Steps = list337; reference249 = obj227; - ref QuestSequence reference250 = ref span118[1]; + num++; + ref QuestSequence reference250 = ref span336[num]; QuestSequence obj228 = new QuestSequence { Sequence = 1 @@ -366675,7 +445989,9 @@ public static class AssemblyQuestLoader num2 = 1; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1051689u, new Vector3(273.33484f, 15.999998f, 740.6576f), 1190) + Span span338 = CollectionsMarshal.AsSpan(list338); + index2 = 0; + span338[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1051689u, new Vector3(273.33484f, 15.999998f, 740.6576f), 1190) { AethernetShortcut = new AethernetShortcut { @@ -366685,22 +446001,27 @@ public static class AssemblyQuestLoader }; obj228.Steps = list338; reference250 = obj228; - span118[2] = new QuestSequence + num++; + span336[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference251 = ref span118[3]; + num++; + ref QuestSequence reference251 = ref span336[num]; QuestSequence obj229 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list339 = new List(num2); - CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 1051691u, new Vector3(273.85364f, 15.999996f, 738.2771f), 1190); + index2 = 1; + List list339 = new List(index2); + CollectionsMarshal.SetCount(list339, index2); + Span span339 = CollectionsMarshal.AsSpan(list339); + num2 = 0; + span339[num2] = new QuestStep(EInteractionType.Interact, 1051691u, new Vector3(273.85364f, 15.999996f, 738.2771f), 1190); obj229.Steps = list339; reference251 = obj229; - ref QuestSequence reference252 = ref span118[4]; + num++; + ref QuestSequence reference252 = ref span336[num]; QuestSequence obj230 = new QuestSequence { Sequence = 4 @@ -366708,7 +446029,9 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) + Span span340 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + span340[index2] = new QuestStep(EInteractionType.Interact, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -366719,18 +446042,22 @@ public static class AssemblyQuestLoader }; obj230.Steps = list340; reference252 = obj230; - ref QuestSequence reference253 = ref span118[5]; + num++; + ref QuestSequence reference253 = ref span336[num]; QuestSequence obj231 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1051672u, new Vector3(-14.816589f, -19.881973f, 223.3158f), 1185); + index2 = 1; + List list341 = new List(index2); + CollectionsMarshal.SetCount(list341, index2); + Span span341 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span341[num2] = new QuestStep(EInteractionType.Interact, 1051672u, new Vector3(-14.816589f, -19.881973f, 223.3158f), 1185); obj231.Steps = list341; reference253 = obj231; - ref QuestSequence reference254 = ref span118[6]; + num++; + ref QuestSequence reference254 = ref span336[num]; QuestSequence obj232 = new QuestSequence { Sequence = 6 @@ -366738,27 +446065,33 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 1051673u, new Vector3(-15.243774f, -19.762682f, 221.72876f), 1185) + Span span342 = CollectionsMarshal.AsSpan(list342); + index2 = 0; + span342[index2] = new QuestStep(EInteractionType.Interact, 1051673u, new Vector3(-15.243774f, -19.762682f, 221.72876f), 1185) { StopDistance = 5f }; obj232.Steps = list342; reference254 = obj232; - ref QuestSequence reference255 = ref span118[7]; + num++; + ref QuestSequence reference255 = ref span336[num]; QuestSequence obj233 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list343 = new List(num2); - CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.Interact, 1051670u, new Vector3(-15.976257f, -19.928413f, 224.90259f), 1185) + index2 = 1; + List list343 = new List(index2); + CollectionsMarshal.SetCount(list343, index2); + Span span343 = CollectionsMarshal.AsSpan(list343); + num2 = 0; + span343[num2] = new QuestStep(EInteractionType.Interact, 1051670u, new Vector3(-15.976257f, -19.928413f, 224.90259f), 1185) { StopDistance = 5f }; obj233.Steps = list343; reference255 = obj233; - ref QuestSequence reference256 = ref span118[8]; + num++; + ref QuestSequence reference256 = ref span336[num]; QuestSequence obj234 = new QuestSequence { Sequence = 8 @@ -366766,24 +446099,30 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1051671u, new Vector3(-17.95996f, -19.784014f, 224.17017f), 1185) + Span span344 = CollectionsMarshal.AsSpan(list344); + index2 = 0; + span344[index2] = new QuestStep(EInteractionType.Interact, 1051671u, new Vector3(-17.95996f, -19.784014f, 224.17017f), 1185) { StopDistance = 5f }; obj234.Steps = list344; reference256 = obj234; - ref QuestSequence reference257 = ref span118[9]; + num++; + ref QuestSequence reference257 = ref span336[num]; QuestSequence obj235 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.Interact, 1051674u, new Vector3(-16.617126f, -19.752277f, 222.64429f), 1185); + index2 = 1; + List list345 = new List(index2); + CollectionsMarshal.SetCount(list345, index2); + Span span345 = CollectionsMarshal.AsSpan(list345); + num2 = 0; + span345[num2] = new QuestStep(EInteractionType.Interact, 1051674u, new Vector3(-16.617126f, -19.752277f, 222.64429f), 1185); obj235.Steps = list345; reference257 = obj235; - ref QuestSequence reference258 = ref span118[10]; + num++; + ref QuestSequence reference258 = ref span336[num]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue @@ -366791,9 +446130,11 @@ public static class AssemblyQuestLoader num2 = 2; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - Span span119 = CollectionsMarshal.AsSpan(list346); - span119[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.643284f, -17.972864f, 203.87883f), 1185); - span119[1] = new QuestStep(EInteractionType.CompleteQuest, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) + Span span346 = CollectionsMarshal.AsSpan(list346); + index2 = 0; + span346[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.643284f, -17.972864f, 203.87883f), 1185); + index2++; + span346[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) { StopDistance = 5f, DisableNavmesh = true @@ -366807,21 +446148,26 @@ public static class AssemblyQuestLoader num = 1; List list347 = new List(num); CollectionsMarshal.SetCount(list347, num); - CollectionsMarshal.AsSpan(list347)[0] = "liza"; + Span span347 = CollectionsMarshal.AsSpan(list347); + index = 0; + span347[index] = "liza"; questRoot43.Author = list347; - num = 11; - List list348 = new List(num); - CollectionsMarshal.SetCount(list348, num); - Span span120 = CollectionsMarshal.AsSpan(list348); - ref QuestSequence reference259 = ref span120[0]; + index = 11; + List list348 = new List(index); + CollectionsMarshal.SetCount(list348, index); + Span span348 = CollectionsMarshal.AsSpan(list348); + num = 0; + ref QuestSequence reference259 = ref span348[num]; QuestSequence obj237 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list349 = new List(num2); - CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051694u, new Vector3(56.595703f, -14f, 79.9115f), 1185) + index2 = 1; + List list349 = new List(index2); + CollectionsMarshal.SetCount(list349, index2); + Span span349 = CollectionsMarshal.AsSpan(list349); + num2 = 0; + span349[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051694u, new Vector3(56.595703f, -14f, 79.9115f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -366834,7 +446180,8 @@ public static class AssemblyQuestLoader }; obj237.Steps = list349; reference259 = obj237; - ref QuestSequence reference260 = ref span120[1]; + num++; + ref QuestSequence reference260 = ref span348[num]; QuestSequence obj238 = new QuestSequence { Sequence = 1 @@ -366842,8 +446189,9 @@ public static class AssemblyQuestLoader num2 = 2; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - Span span121 = CollectionsMarshal.AsSpan(list350); - ref QuestStep reference261 = ref span121[0]; + Span span350 = CollectionsMarshal.AsSpan(list350); + index2 = 0; + ref QuestStep reference261 = ref span350[index2]; QuestStep obj239 = new QuestStep(EInteractionType.Interact, 1048501u, new Vector3(121.44653f, 42f, -347.34113f), 1185) { AethernetShortcut = new AethernetShortcut @@ -366852,43 +446200,59 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBrightploomPost } }; - num3 = 6; - List list351 = new List(num3); - CollectionsMarshal.SetCount(list351, num3); - Span span122 = CollectionsMarshal.AsSpan(list351); - span122[0] = null; - span122[1] = null; - span122[2] = null; - span122[3] = null; - span122[4] = null; - span122[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list351 = new List(index3); + CollectionsMarshal.SetCount(list351, index3); + Span span351 = CollectionsMarshal.AsSpan(list351); + num3 = 0; + span351[num3] = null; + num3++; + span351[num3] = null; + num3++; + span351[num3] = null; + num3++; + span351[num3] = null; + num3++; + span351[num3] = null; + num3++; + span351[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj239.CompletionQuestVariablesFlags = list351; reference261 = obj239; - ref QuestStep reference262 = ref span121[1]; + index2++; + ref QuestStep reference262 = ref span350[index2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1048485u, new Vector3(142.62598f, 41.999996f, -319.4477f), 1185); num3 = 6; List list352 = new List(num3); CollectionsMarshal.SetCount(list352, num3); - Span span123 = CollectionsMarshal.AsSpan(list352); - span123[0] = null; - span123[1] = null; - span123[2] = null; - span123[3] = null; - span123[4] = null; - span123[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span352 = CollectionsMarshal.AsSpan(list352); + index3 = 0; + span352[index3] = null; + index3++; + span352[index3] = null; + index3++; + span352[index3] = null; + index3++; + span352[index3] = null; + index3++; + span352[index3] = null; + index3++; + span352[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list352; reference262 = questStep26; obj238.Steps = list350; reference260 = obj238; - ref QuestSequence reference263 = ref span120[2]; + num++; + ref QuestSequence reference263 = ref span348[num]; QuestSequence obj240 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.Interact, 1051694u, new Vector3(56.595703f, -14f, 79.9115f), 1185) + index2 = 1; + List list353 = new List(index2); + CollectionsMarshal.SetCount(list353, index2); + Span span353 = CollectionsMarshal.AsSpan(list353); + num2 = 0; + span353[num2] = new QuestStep(EInteractionType.Interact, 1051694u, new Vector3(56.595703f, -14f, 79.9115f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -366898,7 +446262,8 @@ public static class AssemblyQuestLoader }; obj240.Steps = list353; reference263 = obj240; - ref QuestSequence reference264 = ref span120[3]; + num++; + ref QuestSequence reference264 = ref span348[num]; QuestSequence obj241 = new QuestSequence { Sequence = 3 @@ -366906,24 +446271,30 @@ public static class AssemblyQuestLoader num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1051698u, new Vector3(-122.72839f, 27.990566f, -436.42328f), 1191); + Span span354 = CollectionsMarshal.AsSpan(list354); + index2 = 0; + span354[index2] = new QuestStep(EInteractionType.Interact, 1051698u, new Vector3(-122.72839f, 27.990566f, -436.42328f), 1191); obj241.Steps = list354; reference264 = obj241; - ref QuestSequence reference265 = ref span120[4]; + num++; + ref QuestSequence reference265 = ref span348[num]; QuestSequence obj242 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.Interact, 1051700u, new Vector3(-183.33722f, 30f, -627.2526f), 1191) + index2 = 1; + List list355 = new List(index2); + CollectionsMarshal.SetCount(list355, index2); + Span span355 = CollectionsMarshal.AsSpan(list355); + num2 = 0; + span355[num2] = new QuestStep(EInteractionType.Interact, 1051700u, new Vector3(-183.33722f, 30f, -627.2526f), 1191) { Fly = true }; obj242.Steps = list355; reference265 = obj242; - ref QuestSequence reference266 = ref span120[5]; + num++; + ref QuestSequence reference266 = ref span348[num]; QuestSequence obj243 = new QuestSequence { Sequence = 5 @@ -366931,24 +446302,30 @@ public static class AssemblyQuestLoader num2 = 1; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.Interact, 1048037u, new Vector3(-289.66205f, 45.88422f, -832.3644f), 1191) + Span span356 = CollectionsMarshal.AsSpan(list356); + index2 = 0; + span356[index2] = new QuestStep(EInteractionType.Interact, 1048037u, new Vector3(-289.66205f, 45.88422f, -832.3644f), 1191) { Fly = true }; obj243.Steps = list356; reference266 = obj243; - ref QuestSequence reference267 = ref span120[6]; + num++; + ref QuestSequence reference267 = ref span348[num]; QuestSequence obj244 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.Interact, 1051703u, new Vector3(-9.506409f, -6.0500045f, 269.00122f), 1186); + index2 = 1; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + Span span357 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span357[num2] = new QuestStep(EInteractionType.Interact, 1051703u, new Vector3(-9.506409f, -6.0500045f, 269.00122f), 1186); obj244.Steps = list357; reference267 = obj244; - ref QuestSequence reference268 = ref span120[7]; + num++; + ref QuestSequence reference268 = ref span348[num]; QuestSequence obj245 = new QuestSequence { Sequence = 7 @@ -366956,8 +446333,9 @@ public static class AssemblyQuestLoader num2 = 3; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - Span span124 = CollectionsMarshal.AsSpan(list358); - ref QuestStep reference269 = ref span124[0]; + Span span358 = CollectionsMarshal.AsSpan(list358); + index2 = 0; + ref QuestStep reference269 = ref span358[index2]; QuestStep obj246 = new QuestStep(EInteractionType.Interact, 1051704u, new Vector3(353.96338f, 50.75f, 243.06091f), 1186) { AethernetShortcut = new AethernetShortcut @@ -366966,19 +446344,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTheArcadion } }; - num3 = 6; - List list359 = new List(num3); - CollectionsMarshal.SetCount(list359, num3); - Span span125 = CollectionsMarshal.AsSpan(list359); - span125[0] = null; - span125[1] = null; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list359 = new List(index3); + CollectionsMarshal.SetCount(list359, index3); + Span span359 = CollectionsMarshal.AsSpan(list359); + num3 = 0; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = null; + num3++; + span359[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj246.CompletionQuestVariablesFlags = list359; reference269 = obj246; - ref QuestStep reference270 = ref span124[1]; + index2++; + ref QuestStep reference270 = ref span358[index2]; QuestStep obj247 = new QuestStep(EInteractionType.Interact, 1048090u, new Vector3(362.87476f, 50.75f, 223.46838f), 1186) { StopDistance = 5f @@ -366986,43 +446371,60 @@ public static class AssemblyQuestLoader num3 = 6; List list360 = new List(num3); CollectionsMarshal.SetCount(list360, num3); - Span span126 = CollectionsMarshal.AsSpan(list360); - span126[0] = null; - span126[1] = null; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span360 = CollectionsMarshal.AsSpan(list360); + index3 = 0; + span360[index3] = null; + index3++; + span360[index3] = null; + index3++; + span360[index3] = null; + index3++; + span360[index3] = null; + index3++; + span360[index3] = null; + index3++; + span360[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj247.CompletionQuestVariablesFlags = list360; reference270 = obj247; - ref QuestStep reference271 = ref span124[2]; + index2++; + ref QuestStep reference271 = ref span358[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1051705u, new Vector3(344.59448f, 50.75f, 195.45276f), 1186); - num3 = 6; - List list361 = new List(num3); - CollectionsMarshal.SetCount(list361, num3); - Span span127 = CollectionsMarshal.AsSpan(list361); - span127[0] = null; - span127[1] = null; - span127[2] = null; - span127[3] = null; - span127[4] = null; - span127[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list361 = new List(index3); + CollectionsMarshal.SetCount(list361, index3); + Span span361 = CollectionsMarshal.AsSpan(list361); + num3 = 0; + span361[num3] = null; + num3++; + span361[num3] = null; + num3++; + span361[num3] = null; + num3++; + span361[num3] = null; + num3++; + span361[num3] = null; + num3++; + span361[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep27.CompletionQuestVariablesFlags = list361; reference271 = questStep27; obj245.Steps = list358; reference268 = obj245; - ref QuestSequence reference272 = ref span120[8]; + num++; + ref QuestSequence reference272 = ref span348[num]; QuestSequence obj248 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.Interact, 1051706u, new Vector3(368.36792f, 50.75f, 219.34839f), 1186); + index2 = 1; + List list362 = new List(index2); + CollectionsMarshal.SetCount(list362, index2); + Span span362 = CollectionsMarshal.AsSpan(list362); + num2 = 0; + span362[num2] = new QuestStep(EInteractionType.Interact, 1051706u, new Vector3(368.36792f, 50.75f, 219.34839f), 1186); obj248.Steps = list362; reference272 = obj248; - ref QuestSequence reference273 = ref span120[9]; + num++; + ref QuestSequence reference273 = ref span348[num]; QuestSequence obj249 = new QuestSequence { Sequence = 9 @@ -367030,7 +446432,9 @@ public static class AssemblyQuestLoader num2 = 1; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.Interact, 1051708u, new Vector3(307.42346f, 70.0001f, -25.0401f), 1186) + Span span363 = CollectionsMarshal.AsSpan(list363); + index2 = 0; + span363[index2] = new QuestStep(EInteractionType.Interact, 1051708u, new Vector3(307.42346f, 70.0001f, -25.0401f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -367040,15 +446444,18 @@ public static class AssemblyQuestLoader }; obj249.Steps = list363; reference273 = obj249; - ref QuestSequence reference274 = ref span120[10]; + num++; + ref QuestSequence reference274 = ref span348[num]; QuestSequence obj250 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051709u, new Vector3(307.6676f, 70.00009f, -26.962769f), 1186) + index2 = 1; + List list364 = new List(index2); + CollectionsMarshal.SetCount(list364, index2); + Span span364 = CollectionsMarshal.AsSpan(list364); + num2 = 0; + span364[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051709u, new Vector3(307.6676f, 70.00009f, -26.962769f), 1186) { StopDistance = 5f, NextQuestId = new QuestId(5295) @@ -367062,13 +446469,16 @@ public static class AssemblyQuestLoader num = 1; List list365 = new List(num); CollectionsMarshal.SetCount(list365, num); - CollectionsMarshal.AsSpan(list365)[0] = "liza"; + Span span365 = CollectionsMarshal.AsSpan(list365); + index = 0; + span365[index] = "liza"; questRoot44.Author = list365; - num = 9; - List list366 = new List(num); - CollectionsMarshal.SetCount(list366, num); - Span span128 = CollectionsMarshal.AsSpan(list366); - ref QuestSequence reference275 = ref span128[0]; + index = 9; + List list366 = new List(index); + CollectionsMarshal.SetCount(list366, index); + Span span366 = CollectionsMarshal.AsSpan(list366); + num = 0; + ref QuestSequence reference275 = ref span366[num]; QuestSequence obj251 = new QuestSequence { Sequence = 0 @@ -367076,7 +446486,9 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051712u, new Vector3(12.344482f, -14f, 96.17761f), 1185) + Span span367 = CollectionsMarshal.AsSpan(list367); + index2 = 0; + span367[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051712u, new Vector3(12.344482f, -14f, 96.17761f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -367094,22 +446506,26 @@ public static class AssemblyQuestLoader }; obj251.Steps = list367; reference275 = obj251; - ref QuestSequence reference276 = ref span128[1]; + num++; + ref QuestSequence reference276 = ref span366[num]; QuestSequence obj252 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list368 = new List(num2); - CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.Interact, 2014421u, new Vector3(-65.72064f, 2.39563f, -400.22894f), 1188) + index2 = 1; + List list368 = new List(index2); + CollectionsMarshal.SetCount(list368, index2); + Span span368 = CollectionsMarshal.AsSpan(list368); + num2 = 0; + span368[num2] = new QuestStep(EInteractionType.Interact, 2014421u, new Vector3(-65.72064f, 2.39563f, -400.22894f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj252.Steps = list368; reference276 = obj252; - ref QuestSequence reference277 = ref span128[2]; + num++; + ref QuestSequence reference277 = ref span366[num]; QuestSequence obj253 = new QuestSequence { Sequence = 2 @@ -367117,21 +446533,27 @@ public static class AssemblyQuestLoader num2 = 1; List list369 = new List(num2); CollectionsMarshal.SetCount(list369, num2); - CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.Interact, 1051713u, new Vector3(-67.88745f, 2.4000018f, -399.64905f), 1188); + Span span369 = CollectionsMarshal.AsSpan(list369); + index2 = 0; + span369[index2] = new QuestStep(EInteractionType.Interact, 1051713u, new Vector3(-67.88745f, 2.4000018f, -399.64905f), 1188); obj253.Steps = list369; reference277 = obj253; - ref QuestSequence reference278 = ref span128[3]; + num++; + ref QuestSequence reference278 = ref span366[num]; QuestSequence obj254 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list370 = new List(num2); - CollectionsMarshal.SetCount(list370, num2); - CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.Interact, 1051713u, new Vector3(-67.88745f, 2.4000018f, -399.64905f), 1188); + index2 = 1; + List list370 = new List(index2); + CollectionsMarshal.SetCount(list370, index2); + Span span370 = CollectionsMarshal.AsSpan(list370); + num2 = 0; + span370[num2] = new QuestStep(EInteractionType.Interact, 1051713u, new Vector3(-67.88745f, 2.4000018f, -399.64905f), 1188); obj254.Steps = list370; reference278 = obj254; - ref QuestSequence reference279 = ref span128[4]; + num++; + ref QuestSequence reference279 = ref span366[num]; QuestSequence obj255 = new QuestSequence { Sequence = 4 @@ -367139,7 +446561,9 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - ref QuestStep reference280 = ref CollectionsMarshal.AsSpan(list371)[0]; + Span span371 = CollectionsMarshal.AsSpan(list371); + index2 = 0; + ref QuestStep reference280 = ref span371[index2]; QuestStep obj256 = new QuestStep(EInteractionType.Interact, 1051718u, new Vector3(62.210938f, 0.7218611f, -333.94366f), 1188) { Fly = true @@ -367147,7 +446571,9 @@ public static class AssemblyQuestLoader num3 = 1; List list372 = new List(num3); CollectionsMarshal.SetCount(list372, num3); - CollectionsMarshal.AsSpan(list372)[0] = new DialogueChoice + Span span372 = CollectionsMarshal.AsSpan(list372); + index3 = 0; + span372[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL001_05193_Q5_000_001"), @@ -367157,23 +446583,28 @@ public static class AssemblyQuestLoader reference280 = obj256; obj255.Steps = list371; reference279 = obj255; - ref QuestSequence reference281 = ref span128[5]; + num++; + ref QuestSequence reference281 = ref span366[num]; QuestSequence obj257 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - ref QuestStep reference282 = ref CollectionsMarshal.AsSpan(list373)[0]; + index2 = 1; + List list373 = new List(index2); + CollectionsMarshal.SetCount(list373, index2); + Span span373 = CollectionsMarshal.AsSpan(list373); + num2 = 0; + ref QuestStep reference282 = ref span373[num2]; QuestStep obj258 = new QuestStep(EInteractionType.Interact, 1051719u, new Vector3(-42.923706f, 21.48239f, -88.76172f), 1188) { Fly = true }; - num3 = 1; - List list374 = new List(num3); - CollectionsMarshal.SetCount(list374, num3); - CollectionsMarshal.AsSpan(list374)[0] = new DialogueChoice + index3 = 1; + List list374 = new List(index3); + CollectionsMarshal.SetCount(list374, index3); + Span span374 = CollectionsMarshal.AsSpan(list374); + num3 = 0; + span374[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL001_05193_Q6_000_001"), @@ -367183,7 +446614,8 @@ public static class AssemblyQuestLoader reference282 = obj258; obj257.Steps = list373; reference281 = obj257; - ref QuestSequence reference283 = ref span128[6]; + num++; + ref QuestSequence reference283 = ref span366[num]; QuestSequence obj259 = new QuestSequence { Sequence = 6 @@ -367191,7 +446623,9 @@ public static class AssemblyQuestLoader num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - ref QuestStep reference284 = ref CollectionsMarshal.AsSpan(list375)[0]; + Span span375 = CollectionsMarshal.AsSpan(list375); + index2 = 0; + ref QuestStep reference284 = ref span375[index2]; QuestStep obj260 = new QuestStep(EInteractionType.Interact, 1051720u, new Vector3(-183.45923f, 0.39999998f, -73.74689f), 1188) { Fly = true @@ -367199,7 +446633,9 @@ public static class AssemblyQuestLoader num3 = 1; List list376 = new List(num3); CollectionsMarshal.SetCount(list376, num3); - CollectionsMarshal.AsSpan(list376)[0] = new DialogueChoice + Span span376 = CollectionsMarshal.AsSpan(list376); + index3 = 0; + span376[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL001_05193_Q7_000_001"), @@ -367209,22 +446645,26 @@ public static class AssemblyQuestLoader reference284 = obj260; obj259.Steps = list375; reference283 = obj259; - ref QuestSequence reference285 = ref span128[7]; + num++; + ref QuestSequence reference285 = ref span366[num]; QuestSequence obj261 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.Interact, 1051859u, new Vector3(-73.411194f, 2.4000018f, -398.61145f), 1188) + index2 = 1; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + Span span377 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span377[num2] = new QuestStep(EInteractionType.Interact, 1051859u, new Vector3(-73.411194f, 2.4000018f, -398.61145f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj261.Steps = list377; reference285 = obj261; - ref QuestSequence reference286 = ref span128[8]; + num++; + ref QuestSequence reference286 = ref span366[num]; QuestSequence obj262 = new QuestSequence { Sequence = byte.MaxValue @@ -367232,8 +446672,9 @@ public static class AssemblyQuestLoader num2 = 3; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - Span span129 = CollectionsMarshal.AsSpan(list378); - span129[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(780.3438f, 13.823656f, -238.32625f), 1188) + Span span378 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + span378[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(780.3438f, 13.823656f, -238.32625f), 1188) { Fly = true, SkipConditions = new SkipConditions @@ -367244,7 +446685,8 @@ public static class AssemblyQuestLoader } } }; - span129[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) + index2++; + span378[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) { Fly = true, Aetheryte = EAetheryteLocation.KozamaukaDockPoga, @@ -367256,7 +446698,8 @@ public static class AssemblyQuestLoader } } }; - span129[2] = new QuestStep(EInteractionType.CompleteQuest, 1051721u, new Vector3(737.5753f, 8.14118f, -278.0957f), 1188) + index2++; + span378[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051721u, new Vector3(737.5753f, 8.14118f, -278.0957f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga @@ -367270,22 +446713,26 @@ public static class AssemblyQuestLoader num = 1; List list379 = new List(num); CollectionsMarshal.SetCount(list379, num); - CollectionsMarshal.AsSpan(list379)[0] = "liza"; + Span span379 = CollectionsMarshal.AsSpan(list379); + index = 0; + span379[index] = "liza"; questRoot45.Author = list379; - num = 8; - List list380 = new List(num); - CollectionsMarshal.SetCount(list380, num); - Span span130 = CollectionsMarshal.AsSpan(list380); - ref QuestSequence reference287 = ref span130[0]; + index = 8; + List list380 = new List(index); + CollectionsMarshal.SetCount(list380, index); + Span span380 = CollectionsMarshal.AsSpan(list380); + num = 0; + ref QuestSequence reference287 = ref span380[num]; QuestSequence obj263 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list381 = new List(num2); - CollectionsMarshal.SetCount(list381, num2); - Span span131 = CollectionsMarshal.AsSpan(list381); - span131[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) + index2 = 2; + List list381 = new List(index2); + CollectionsMarshal.SetCount(list381, index2); + Span span381 = CollectionsMarshal.AsSpan(list381); + num2 = 0; + span381[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -367297,10 +446744,12 @@ public static class AssemblyQuestLoader } } }; - span131[1] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + num2++; + span381[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj263.Steps = list381; reference287 = obj263; - ref QuestSequence reference288 = ref span130[1]; + num++; + ref QuestSequence reference288 = ref span380[num]; QuestSequence obj264 = new QuestSequence { Sequence = 1 @@ -367308,32 +446757,38 @@ public static class AssemblyQuestLoader num2 = 2; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - Span span132 = CollectionsMarshal.AsSpan(list382); - span132[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) + Span span382 = CollectionsMarshal.AsSpan(list382); + index2 = 0; + span382[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) { Mount = true }; - span132[1] = new QuestStep(EInteractionType.Interact, 2014423u, new Vector3(727.0161f, 8.010925f, -284.3214f), 1188) + index2++; + span382[index2] = new QuestStep(EInteractionType.Interact, 2014423u, new Vector3(727.0161f, 8.010925f, -284.3214f), 1188) { Fly = true }; obj264.Steps = list382; reference288 = obj264; - ref QuestSequence reference289 = ref span130[2]; + num++; + ref QuestSequence reference289 = ref span380[num]; QuestSequence obj265 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list383 = new List(num2); - CollectionsMarshal.SetCount(list383, num2); - CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.Interact, 1051722u, new Vector3(798.3672f, 13.076807f, -246.69269f), 1188) + index2 = 1; + List list383 = new List(index2); + CollectionsMarshal.SetCount(list383, index2); + Span span383 = CollectionsMarshal.AsSpan(list383); + num2 = 0; + span383[num2] = new QuestStep(EInteractionType.Interact, 1051722u, new Vector3(798.3672f, 13.076807f, -246.69269f), 1188) { Fly = true }; obj265.Steps = list383; reference289 = obj265; - ref QuestSequence reference290 = ref span130[3]; + num++; + ref QuestSequence reference290 = ref span380[num]; QuestSequence obj266 = new QuestSequence { Sequence = 3 @@ -367341,7 +446796,9 @@ public static class AssemblyQuestLoader num2 = 1; List list384 = new List(num2); CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.Interact, 2014424u, new Vector3(-90.62335f, 9.750427f, -515.31244f), 1188) + Span span384 = CollectionsMarshal.AsSpan(list384); + index2 = 0; + span384[index2] = new QuestStep(EInteractionType.Interact, 2014424u, new Vector3(-90.62335f, 9.750427f, -515.31244f), 1188) { StopDistance = 0.5f, Fly = true, @@ -367349,21 +446806,25 @@ public static class AssemblyQuestLoader }; obj266.Steps = list384; reference290 = obj266; - ref QuestSequence reference291 = ref span130[4]; + num++; + ref QuestSequence reference291 = ref span380[num]; QuestSequence obj267 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list385 = new List(num2); - CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.Interact, 2014425u, new Vector3(55.74109f, 21.896606f, -75.63898f), 1188) + index2 = 1; + List list385 = new List(index2); + CollectionsMarshal.SetCount(list385, index2); + Span span385 = CollectionsMarshal.AsSpan(list385); + num2 = 0; + span385[num2] = new QuestStep(EInteractionType.Interact, 2014425u, new Vector3(55.74109f, 21.896606f, -75.63898f), 1188) { Fly = true }; obj267.Steps = list385; reference291 = obj267; - ref QuestSequence reference292 = ref span130[5]; + num++; + ref QuestSequence reference292 = ref span380[num]; QuestSequence obj268 = new QuestSequence { Sequence = 5 @@ -367371,25 +446832,33 @@ public static class AssemblyQuestLoader num2 = 3; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - Span span133 = CollectionsMarshal.AsSpan(list386); - ref QuestStep reference293 = ref span133[0]; + Span span386 = CollectionsMarshal.AsSpan(list386); + index2 = 0; + ref QuestStep reference293 = ref span386[index2]; QuestStep obj269 = new QuestStep(EInteractionType.Interact, 2014599u, new Vector3(-300.1908f, 0.38146973f, -66.78876f), 1188) { Fly = true }; - num3 = 6; - List list387 = new List(num3); - CollectionsMarshal.SetCount(list387, num3); - Span span134 = CollectionsMarshal.AsSpan(list387); - span134[0] = null; - span134[1] = null; - span134[2] = null; - span134[3] = null; - span134[4] = null; - span134[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list387 = new List(index3); + CollectionsMarshal.SetCount(list387, index3); + Span span387 = CollectionsMarshal.AsSpan(list387); + num3 = 0; + span387[num3] = null; + num3++; + span387[num3] = null; + num3++; + span387[num3] = null; + num3++; + span387[num3] = null; + num3++; + span387[num3] = null; + num3++; + span387[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj269.CompletionQuestVariablesFlags = list387; reference293 = obj269; - ref QuestStep reference294 = ref span133[1]; + index2++; + ref QuestStep reference294 = ref span386[index2]; QuestStep obj270 = new QuestStep(EInteractionType.Interact, 2014600u, new Vector3(-338.4604f, 0.38146973f, -88.944885f), 1188) { Fly = true @@ -367397,57 +446866,76 @@ public static class AssemblyQuestLoader num3 = 6; List list388 = new List(num3); CollectionsMarshal.SetCount(list388, num3); - Span span135 = CollectionsMarshal.AsSpan(list388); - span135[0] = null; - span135[1] = null; - span135[2] = null; - span135[3] = null; - span135[4] = null; - span135[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span388 = CollectionsMarshal.AsSpan(list388); + index3 = 0; + span388[index3] = null; + index3++; + span388[index3] = null; + index3++; + span388[index3] = null; + index3++; + span388[index3] = null; + index3++; + span388[index3] = null; + index3++; + span388[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj270.CompletionQuestVariablesFlags = list388; reference294 = obj270; - ref QuestStep reference295 = ref span133[2]; + index2++; + ref QuestStep reference295 = ref span386[index2]; QuestStep obj271 = new QuestStep(EInteractionType.Combat, 2014436u, new Vector3(-370.4433f, 0.38146973f, -111.436646f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 2; - List list389 = new List(num3); - CollectionsMarshal.SetCount(list389, num3); - Span span136 = CollectionsMarshal.AsSpan(list389); - span136[0] = 18170u; - span136[1] = 18171u; + index3 = 2; + List list389 = new List(index3); + CollectionsMarshal.SetCount(list389, index3); + Span span389 = CollectionsMarshal.AsSpan(list389); + num3 = 0; + span389[num3] = 18170u; + num3++; + span389[num3] = 18171u; obj271.KillEnemyDataIds = list389; num3 = 6; List list390 = new List(num3); CollectionsMarshal.SetCount(list390, num3); - Span span137 = CollectionsMarshal.AsSpan(list390); - span137[0] = null; - span137[1] = null; - span137[2] = null; - span137[3] = null; - span137[4] = null; - span137[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span390 = CollectionsMarshal.AsSpan(list390); + index3 = 0; + span390[index3] = null; + index3++; + span390[index3] = null; + index3++; + span390[index3] = null; + index3++; + span390[index3] = null; + index3++; + span390[index3] = null; + index3++; + span390[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj271.CompletionQuestVariablesFlags = list390; reference295 = obj271; obj268.Steps = list386; reference292 = obj268; - ref QuestSequence reference296 = ref span130[6]; + num++; + ref QuestSequence reference296 = ref span380[num]; QuestSequence obj272 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list391 = new List(num2); - CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.Interact, 2014457u, new Vector3(-332.8451f, 0.38146973f, -68.89453f), 1188) + index2 = 1; + List list391 = new List(index2); + CollectionsMarshal.SetCount(list391, index2); + Span span391 = CollectionsMarshal.AsSpan(list391); + num2 = 0; + span391[num2] = new QuestStep(EInteractionType.Interact, 2014457u, new Vector3(-332.8451f, 0.38146973f, -68.89453f), 1188) { Fly = true }; obj272.Steps = list391; reference296 = obj272; - ref QuestSequence reference297 = ref span130[7]; + num++; + ref QuestSequence reference297 = ref span380[num]; QuestSequence obj273 = new QuestSequence { Sequence = byte.MaxValue @@ -367455,7 +446943,9 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051722u, new Vector3(798.3672f, 13.076807f, -246.69269f), 1188) + Span span392 = CollectionsMarshal.AsSpan(list392); + index2 = 0; + span392[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051722u, new Vector3(798.3672f, 13.076807f, -246.69269f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; @@ -367468,22 +446958,26 @@ public static class AssemblyQuestLoader num = 1; List list393 = new List(num); CollectionsMarshal.SetCount(list393, num); - CollectionsMarshal.AsSpan(list393)[0] = "liza"; + Span span393 = CollectionsMarshal.AsSpan(list393); + index = 0; + span393[index] = "liza"; questRoot46.Author = list393; - num = 7; - List list394 = new List(num); - CollectionsMarshal.SetCount(list394, num); - Span span138 = CollectionsMarshal.AsSpan(list394); - ref QuestSequence reference298 = ref span138[0]; + index = 7; + List list394 = new List(index); + CollectionsMarshal.SetCount(list394, index); + Span span394 = CollectionsMarshal.AsSpan(list394); + num = 0; + ref QuestSequence reference298 = ref span394[num]; QuestSequence obj274 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list395 = new List(num2); - CollectionsMarshal.SetCount(list395, num2); - Span span139 = CollectionsMarshal.AsSpan(list395); - span139[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) + index2 = 2; + List list395 = new List(index2); + CollectionsMarshal.SetCount(list395, index2); + Span span395 = CollectionsMarshal.AsSpan(list395); + num2 = 0; + span395[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -367495,10 +446989,12 @@ public static class AssemblyQuestLoader } } }; - span139[1] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + num2++; + span395[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj274.Steps = list395; reference298 = obj274; - ref QuestSequence reference299 = ref span138[1]; + num++; + ref QuestSequence reference299 = ref span394[num]; QuestSequence obj275 = new QuestSequence { Sequence = 1 @@ -367506,7 +447002,9 @@ public static class AssemblyQuestLoader num2 = 1; List list396 = new List(num2); CollectionsMarshal.SetCount(list396, num2); - CollectionsMarshal.AsSpan(list396)[0] = new QuestStep(EInteractionType.Interact, 1051731u, new Vector3(-125.07825f, 9.842161f, -450.73627f), 1188) + Span span396 = CollectionsMarshal.AsSpan(list396); + index2 = 0; + span396[index2] = new QuestStep(EInteractionType.Interact, 1051731u, new Vector3(-125.07825f, 9.842161f, -450.73627f), 1188) { StopDistance = 2f, Fly = true, @@ -367514,18 +447012,22 @@ public static class AssemblyQuestLoader }; obj275.Steps = list396; reference299 = obj275; - ref QuestSequence reference300 = ref span138[2]; + num++; + ref QuestSequence reference300 = ref span394[num]; QuestSequence obj276 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list397 = new List(num2); - CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.Interact, 1051731u, new Vector3(-125.07825f, 9.842161f, -450.73627f), 1188); + index2 = 1; + List list397 = new List(index2); + CollectionsMarshal.SetCount(list397, index2); + Span span397 = CollectionsMarshal.AsSpan(list397); + num2 = 0; + span397[num2] = new QuestStep(EInteractionType.Interact, 1051731u, new Vector3(-125.07825f, 9.842161f, -450.73627f), 1188); obj276.Steps = list397; reference300 = obj276; - ref QuestSequence reference301 = ref span138[3]; + num++; + ref QuestSequence reference301 = ref span394[num]; QuestSequence obj277 = new QuestSequence { Sequence = 3 @@ -367533,69 +447035,94 @@ public static class AssemblyQuestLoader num2 = 2; List list398 = new List(num2); CollectionsMarshal.SetCount(list398, num2); - Span span140 = CollectionsMarshal.AsSpan(list398); - span140[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(124.89976f, 3.8414032f, -279.8074f), 1188) + Span span398 = CollectionsMarshal.AsSpan(list398); + index2 = 0; + span398[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(124.89976f, 3.8414032f, -279.8074f), 1188) { Fly = true }; - span140[1] = new QuestStep(EInteractionType.Interact, 1048815u, new Vector3(127.03125f, 3.8414035f, -279.92682f), 1188); + index2++; + span398[index2] = new QuestStep(EInteractionType.Interact, 1048815u, new Vector3(127.03125f, 3.8414035f, -279.92682f), 1188); obj277.Steps = list398; reference301 = obj277; - ref QuestSequence reference302 = ref span138[4]; + num++; + ref QuestSequence reference302 = ref span394[num]; QuestSequence obj278 = new QuestSequence { Sequence = 4 }; - num2 = 5; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - Span span141 = CollectionsMarshal.AsSpan(list399); - ref QuestStep reference303 = ref span141[0]; + index2 = 5; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + Span span399 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + ref QuestStep reference303 = ref span399[num2]; QuestStep obj279 = new QuestStep(EInteractionType.Interact, 2014427u, new Vector3(183.79492f, -0.015319824f, -331.53284f), 1188) { Fly = true }; - num3 = 6; - List list400 = new List(num3); - CollectionsMarshal.SetCount(list400, num3); - Span span142 = CollectionsMarshal.AsSpan(list400); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list400 = new List(index3); + CollectionsMarshal.SetCount(list400, index3); + Span span400 = CollectionsMarshal.AsSpan(list400); + num3 = 0; + span400[num3] = null; + num3++; + span400[num3] = null; + num3++; + span400[num3] = null; + num3++; + span400[num3] = null; + num3++; + span400[num3] = null; + num3++; + span400[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj279.CompletionQuestVariablesFlags = list400; reference303 = obj279; - ref QuestStep reference304 = ref span141[1]; + num2++; + ref QuestStep reference304 = ref span399[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 2014428u, new Vector3(210.43713f, -0.015319824f, -343.77057f), 1188); num3 = 6; List list401 = new List(num3); CollectionsMarshal.SetCount(list401, num3); - Span span143 = CollectionsMarshal.AsSpan(list401); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span401 = CollectionsMarshal.AsSpan(list401); + index3 = 0; + span401[index3] = null; + index3++; + span401[index3] = null; + index3++; + span401[index3] = null; + index3++; + span401[index3] = null; + index3++; + span401[index3] = null; + index3++; + span401[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep28.CompletionQuestVariablesFlags = list401; reference304 = questStep28; - ref QuestStep reference305 = ref span141[2]; + num2++; + ref QuestStep reference305 = ref span399[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 2014429u, new Vector3(213.21423f, -0.015319824f, -354.84857f), 1188); - num3 = 6; - List list402 = new List(num3); - CollectionsMarshal.SetCount(list402, num3); - Span span144 = CollectionsMarshal.AsSpan(list402); - span144[0] = null; - span144[1] = null; - span144[2] = null; - span144[3] = null; - span144[4] = null; - span144[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list402 = new List(index3); + CollectionsMarshal.SetCount(list402, index3); + Span span402 = CollectionsMarshal.AsSpan(list402); + num3 = 0; + span402[num3] = null; + num3++; + span402[num3] = null; + num3++; + span402[num3] = null; + num3++; + span402[num3] = null; + num3++; + span402[num3] = null; + num3++; + span402[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep29.CompletionQuestVariablesFlags = list402; reference305 = questStep29; - ref QuestStep reference306 = ref span141[3]; + num2++; + ref QuestStep reference306 = ref span399[num2]; QuestStep obj280 = new QuestStep(EInteractionType.Interact, 2014430u, new Vector3(229.93823f, -0.015319824f, -342.15308f), 1188) { Mount = true, @@ -367604,32 +447131,46 @@ public static class AssemblyQuestLoader num3 = 6; List list403 = new List(num3); CollectionsMarshal.SetCount(list403, num3); - Span span145 = CollectionsMarshal.AsSpan(list403); - span145[0] = null; - span145[1] = null; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span403 = CollectionsMarshal.AsSpan(list403); + index3 = 0; + span403[index3] = null; + index3++; + span403[index3] = null; + index3++; + span403[index3] = null; + index3++; + span403[index3] = null; + index3++; + span403[index3] = null; + index3++; + span403[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj280.CompletionQuestVariablesFlags = list403; reference306 = obj280; - ref QuestStep reference307 = ref span141[4]; + num2++; + ref QuestStep reference307 = ref span399[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 2014431u, new Vector3(252.18579f, -0.015319824f, -371.20624f), 1188); - num3 = 6; - List list404 = new List(num3); - CollectionsMarshal.SetCount(list404, num3); - Span span146 = CollectionsMarshal.AsSpan(list404); - span146[0] = null; - span146[1] = null; - span146[2] = null; - span146[3] = null; - span146[4] = null; - span146[5] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); + index3 = 6; + List list404 = new List(index3); + CollectionsMarshal.SetCount(list404, index3); + Span span404 = CollectionsMarshal.AsSpan(list404); + num3 = 0; + span404[num3] = null; + num3++; + span404[num3] = null; + num3++; + span404[num3] = null; + num3++; + span404[num3] = null; + num3++; + span404[num3] = null; + num3++; + span404[num3] = new QuestWorkValue(0, (byte)8, EQuestWorkMode.Bitwise); questStep30.CompletionQuestVariablesFlags = list404; reference307 = questStep30; obj278.Steps = list399; reference302 = obj278; - ref QuestSequence reference308 = ref span138[5]; + num++; + ref QuestSequence reference308 = ref span394[num]; QuestSequence obj281 = new QuestSequence { Sequence = 5 @@ -367637,22 +447178,27 @@ public static class AssemblyQuestLoader num2 = 1; List list405 = new List(num2); CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.Interact, 1048826u, new Vector3(672.4802f, 41.63828f, -527.36707f), 1188) + Span span405 = CollectionsMarshal.AsSpan(list405); + index2 = 0; + span405[index2] = new QuestStep(EInteractionType.Interact, 1048826u, new Vector3(672.4802f, 41.63828f, -527.36707f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; obj281.Steps = list405; reference308 = obj281; - ref QuestSequence reference309 = ref span138[6]; + num++; + ref QuestSequence reference309 = ref span394[num]; QuestSequence obj282 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list406 = new List(num2); - CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188) + index2 = 1; + List list406 = new List(index2); + CollectionsMarshal.SetCount(list406, index2); + Span span406 = CollectionsMarshal.AsSpan(list406); + num2 = 0; + span406[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; @@ -367665,13 +447211,16 @@ public static class AssemblyQuestLoader num = 1; List list407 = new List(num); CollectionsMarshal.SetCount(list407, num); - CollectionsMarshal.AsSpan(list407)[0] = "liza"; + Span span407 = CollectionsMarshal.AsSpan(list407); + index = 0; + span407[index] = "liza"; questRoot47.Author = list407; - num = 8; - List list408 = new List(num); - CollectionsMarshal.SetCount(list408, num); - Span span147 = CollectionsMarshal.AsSpan(list408); - ref QuestSequence reference310 = ref span147[0]; + index = 8; + List list408 = new List(index); + CollectionsMarshal.SetCount(list408, index); + Span span408 = CollectionsMarshal.AsSpan(list408); + num = 0; + ref QuestSequence reference310 = ref span408[num]; QuestSequence obj283 = new QuestSequence { Sequence = 0 @@ -367679,8 +447228,9 @@ public static class AssemblyQuestLoader num2 = 2; List list409 = new List(num2); CollectionsMarshal.SetCount(list409, num2); - Span span148 = CollectionsMarshal.AsSpan(list409); - span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) + Span span409 = CollectionsMarshal.AsSpan(list409); + index2 = 0; + span409[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -367692,33 +447242,39 @@ public static class AssemblyQuestLoader } } }; - span148[1] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + index2++; + span409[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj283.Steps = list409; reference310 = obj283; - ref QuestSequence reference311 = ref span147[1]; + num++; + ref QuestSequence reference311 = ref span408[num]; QuestSequence obj284 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list410 = new List(num2); - CollectionsMarshal.SetCount(list410, num2); - Span span149 = CollectionsMarshal.AsSpan(list410); - span149[0] = new QuestStep(EInteractionType.Interact, 1051733u, new Vector3(553.06323f, 115.84422f, 173.32715f), 1188) + index2 = 3; + List list410 = new List(index2); + CollectionsMarshal.SetCount(list410, index2); + Span span410 = CollectionsMarshal.AsSpan(list410); + num2 = 0; + span410[num2] = new QuestStep(EInteractionType.Interact, 1051733u, new Vector3(553.06323f, 115.84422f, 173.32715f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - span149[1] = new QuestStep(EInteractionType.Interact, 1051734u, new Vector3(588.7998f, 116.71518f, 216.84595f), 1188) + num2++; + span410[num2] = new QuestStep(EInteractionType.Interact, 1051734u, new Vector3(588.7998f, 116.71518f, 216.84595f), 1188) { Fly = true }; - span149[2] = new QuestStep(EInteractionType.Interact, 1051735u, new Vector3(614.9232f, 119.49004f, 172.16748f), 1188) + num2++; + span410[num2] = new QuestStep(EInteractionType.Interact, 1051735u, new Vector3(614.9232f, 119.49004f, 172.16748f), 1188) { Fly = true }; obj284.Steps = list410; reference311 = obj284; - ref QuestSequence reference312 = ref span147[2]; + num++; + ref QuestSequence reference312 = ref span408[num]; QuestSequence obj285 = new QuestSequence { Sequence = 2 @@ -367726,27 +447282,33 @@ public static class AssemblyQuestLoader num2 = 1; List list411 = new List(num2); CollectionsMarshal.SetCount(list411, num2); - CollectionsMarshal.AsSpan(list411)[0] = new QuestStep(EInteractionType.Interact, 1051736u, new Vector3(573.3883f, 116f, 202.62451f), 1188) + Span span411 = CollectionsMarshal.AsSpan(list411); + index2 = 0; + span411[index2] = new QuestStep(EInteractionType.Interact, 1051736u, new Vector3(573.3883f, 116f, 202.62451f), 1188) { Fly = true }; obj285.Steps = list411; reference312 = obj285; - ref QuestSequence reference313 = ref span147[3]; + num++; + ref QuestSequence reference313 = ref span408[num]; QuestSequence obj286 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list412 = new List(num2); - CollectionsMarshal.SetCount(list412, num2); - CollectionsMarshal.AsSpan(list412)[0] = new QuestStep(EInteractionType.Interact, 2014432u, new Vector3(663.569f, 117.50964f, 647.9437f), 1188) + index2 = 1; + List list412 = new List(index2); + CollectionsMarshal.SetCount(list412, index2); + Span span412 = CollectionsMarshal.AsSpan(list412); + num2 = 0; + span412[num2] = new QuestStep(EInteractionType.Interact, 2014432u, new Vector3(663.569f, 117.50964f, 647.9437f), 1188) { Fly = true }; obj286.Steps = list412; reference313 = obj286; - ref QuestSequence reference314 = ref span147[4]; + num++; + ref QuestSequence reference314 = ref span408[num]; QuestSequence obj287 = new QuestSequence { Sequence = 4 @@ -367754,27 +447316,33 @@ public static class AssemblyQuestLoader num2 = 1; List list413 = new List(num2); CollectionsMarshal.SetCount(list413, num2); - CollectionsMarshal.AsSpan(list413)[0] = new QuestStep(EInteractionType.Interact, 1051738u, new Vector3(661.7991f, 117.68325f, 646.6925f), 1188) + Span span413 = CollectionsMarshal.AsSpan(list413); + index2 = 0; + span413[index2] = new QuestStep(EInteractionType.Interact, 1051738u, new Vector3(661.7991f, 117.68325f, 646.6925f), 1188) { StopDistance = 5f }; obj287.Steps = list413; reference314 = obj287; - ref QuestSequence reference315 = ref span147[5]; + num++; + ref QuestSequence reference315 = ref span408[num]; QuestSequence obj288 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list414 = new List(num2); - CollectionsMarshal.SetCount(list414, num2); - CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.Interact, 1051739u, new Vector3(410.39136f, 122.23778f, 797.5432f), 1188) + index2 = 1; + List list414 = new List(index2); + CollectionsMarshal.SetCount(list414, index2); + Span span414 = CollectionsMarshal.AsSpan(list414); + num2 = 0; + span414[num2] = new QuestStep(EInteractionType.Interact, 1051739u, new Vector3(410.39136f, 122.23778f, 797.5432f), 1188) { Fly = true }; obj288.Steps = list414; reference315 = obj288; - ref QuestSequence reference316 = ref span147[6]; + num++; + ref QuestSequence reference316 = ref span408[num]; QuestSequence obj289 = new QuestSequence { Sequence = 6 @@ -367782,21 +447350,26 @@ public static class AssemblyQuestLoader num2 = 1; List list415 = new List(num2); CollectionsMarshal.SetCount(list415, num2); - CollectionsMarshal.AsSpan(list415)[0] = new QuestStep(EInteractionType.Interact, 1051738u, new Vector3(661.7991f, 117.68325f, 646.6925f), 1188) + Span span415 = CollectionsMarshal.AsSpan(list415); + index2 = 0; + span415[index2] = new QuestStep(EInteractionType.Interact, 1051738u, new Vector3(661.7991f, 117.68325f, 646.6925f), 1188) { Fly = true }; obj289.Steps = list415; reference316 = obj289; - ref QuestSequence reference317 = ref span147[7]; + num++; + ref QuestSequence reference317 = ref span408[num]; QuestSequence obj290 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list416 = new List(num2); - CollectionsMarshal.SetCount(list416, num2); - CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188) + index2 = 1; + List list416 = new List(index2); + CollectionsMarshal.SetCount(list416, index2); + Span span416 = CollectionsMarshal.AsSpan(list416); + num2 = 0; + span416[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; @@ -367809,13 +447382,16 @@ public static class AssemblyQuestLoader num = 1; List list417 = new List(num); CollectionsMarshal.SetCount(list417, num); - CollectionsMarshal.AsSpan(list417)[0] = "liza"; + Span span417 = CollectionsMarshal.AsSpan(list417); + index = 0; + span417[index] = "liza"; questRoot48.Author = list417; - num = 6; - List list418 = new List(num); - CollectionsMarshal.SetCount(list418, num); - Span span150 = CollectionsMarshal.AsSpan(list418); - ref QuestSequence reference318 = ref span150[0]; + index = 6; + List list418 = new List(index); + CollectionsMarshal.SetCount(list418, index); + Span span418 = CollectionsMarshal.AsSpan(list418); + num = 0; + ref QuestSequence reference318 = ref span418[num]; QuestSequence obj291 = new QuestSequence { Sequence = 0 @@ -367823,8 +447399,9 @@ public static class AssemblyQuestLoader num2 = 2; List list419 = new List(num2); CollectionsMarshal.SetCount(list419, num2); - Span span151 = CollectionsMarshal.AsSpan(list419); - span151[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) + Span span419 = CollectionsMarshal.AsSpan(list419); + index2 = 0; + span419[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -367836,21 +447413,26 @@ public static class AssemblyQuestLoader } } }; - span151[1] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + index2++; + span419[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj291.Steps = list419; reference318 = obj291; - ref QuestSequence reference319 = ref span150[1]; + num++; + ref QuestSequence reference319 = ref span418[num]; QuestSequence obj292 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list420 = new List(num2); - CollectionsMarshal.SetCount(list420, num2); - CollectionsMarshal.AsSpan(list420)[0] = new QuestStep(EInteractionType.Interact, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + index2 = 1; + List list420 = new List(index2); + CollectionsMarshal.SetCount(list420, index2); + Span span420 = CollectionsMarshal.AsSpan(list420); + num2 = 0; + span420[num2] = new QuestStep(EInteractionType.Interact, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj292.Steps = list420; reference319 = obj292; - ref QuestSequence reference320 = ref span150[2]; + num++; + ref QuestSequence reference320 = ref span418[num]; QuestSequence obj293 = new QuestSequence { Sequence = 2 @@ -367858,9 +447440,11 @@ public static class AssemblyQuestLoader num2 = 2; List list421 = new List(num2); CollectionsMarshal.SetCount(list421, num2); - Span span152 = CollectionsMarshal.AsSpan(list421); - span152[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188); - ref QuestStep reference321 = ref span152[1]; + Span span421 = CollectionsMarshal.AsSpan(list421); + index2 = 0; + span421[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188); + index2++; + ref QuestStep reference321 = ref span421[index2]; QuestStep obj294 = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) { StopDistance = 7f @@ -367868,7 +447452,9 @@ public static class AssemblyQuestLoader num3 = 1; List list422 = new List(num3); CollectionsMarshal.SetCount(list422, num3); - CollectionsMarshal.AsSpan(list422)[0] = new DialogueChoice + Span span422 = CollectionsMarshal.AsSpan(list422); + index3 = 0; + span422[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL005_05197_Q1_000_001"), @@ -367878,18 +447464,22 @@ public static class AssemblyQuestLoader reference321 = obj294; obj293.Steps = list421; reference320 = obj293; - ref QuestSequence reference322 = ref span150[3]; + num++; + ref QuestSequence reference322 = ref span418[num]; QuestSequence obj295 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list423 = new List(num2); - CollectionsMarshal.SetCount(list423, num2); - CollectionsMarshal.AsSpan(list423)[0] = new QuestStep(EInteractionType.Interact, 2014435u, new Vector3(753.1699f, 11.459534f, -253.55927f), 1188); + index2 = 1; + List list423 = new List(index2); + CollectionsMarshal.SetCount(list423, index2); + Span span423 = CollectionsMarshal.AsSpan(list423); + num2 = 0; + span423[num2] = new QuestStep(EInteractionType.Interact, 2014435u, new Vector3(753.1699f, 11.459534f, -253.55927f), 1188); obj295.Steps = list423; reference322 = obj295; - ref QuestSequence reference323 = ref span150[4]; + num++; + ref QuestSequence reference323 = ref span418[num]; QuestSequence obj296 = new QuestSequence { Sequence = 4 @@ -367897,21 +447487,26 @@ public static class AssemblyQuestLoader num2 = 1; List list424 = new List(num2); CollectionsMarshal.SetCount(list424, num2); - CollectionsMarshal.AsSpan(list424)[0] = new QuestStep(EInteractionType.Interact, 1051742u, new Vector3(187.45703f, 0.7218611f, -458.18268f), 1188) + Span span424 = CollectionsMarshal.AsSpan(list424); + index2 = 0; + span424[index2] = new QuestStep(EInteractionType.Interact, 1051742u, new Vector3(187.45703f, 0.7218611f, -458.18268f), 1188) { StopDistance = 5f }; obj296.Steps = list424; reference323 = obj296; - ref QuestSequence reference324 = ref span150[5]; + num++; + ref QuestSequence reference324 = ref span418[num]; QuestSequence obj297 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list425 = new List(num2); - CollectionsMarshal.SetCount(list425, num2); - CollectionsMarshal.AsSpan(list425)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051744u, new Vector3(820.6454f, 13.759646f, -230.12134f), 1188) + index2 = 1; + List list425 = new List(index2); + CollectionsMarshal.SetCount(list425, index2); + Span span425 = CollectionsMarshal.AsSpan(list425); + num2 = 0; + span425[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051744u, new Vector3(820.6454f, 13.759646f, -230.12134f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; @@ -367924,13 +447519,16 @@ public static class AssemblyQuestLoader num = 1; List list426 = new List(num); CollectionsMarshal.SetCount(list426, num); - CollectionsMarshal.AsSpan(list426)[0] = "liza"; + Span span426 = CollectionsMarshal.AsSpan(list426); + index = 0; + span426[index] = "liza"; questRoot49.Author = list426; - num = 3; - List list427 = new List(num); - CollectionsMarshal.SetCount(list427, num); - Span span153 = CollectionsMarshal.AsSpan(list427); - ref QuestSequence reference325 = ref span153[0]; + index = 3; + List list427 = new List(index); + CollectionsMarshal.SetCount(list427, index); + Span span427 = CollectionsMarshal.AsSpan(list427); + num = 0; + ref QuestSequence reference325 = ref span427[num]; QuestSequence obj298 = new QuestSequence { Sequence = 0 @@ -367938,8 +447536,9 @@ public static class AssemblyQuestLoader num2 = 2; List list428 = new List(num2); CollectionsMarshal.SetCount(list428, num2); - Span span154 = CollectionsMarshal.AsSpan(list428); - span154[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) + Span span428 = CollectionsMarshal.AsSpan(list428); + index2 = 0; + span428[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -367951,21 +447550,26 @@ public static class AssemblyQuestLoader } } }; - span154[1] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + index2++; + span428[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj298.Steps = list428; reference325 = obj298; - ref QuestSequence reference326 = ref span153[1]; + num++; + ref QuestSequence reference326 = ref span427[num]; QuestSequence obj299 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list429 = new List(num2); - CollectionsMarshal.SetCount(list429, num2); - CollectionsMarshal.AsSpan(list429)[0] = new QuestStep(EInteractionType.Interact, 1051746u, new Vector3(824.6128f, 13.979889f, -227.16113f), 1188); + index2 = 1; + List list429 = new List(index2); + CollectionsMarshal.SetCount(list429, index2); + Span span429 = CollectionsMarshal.AsSpan(list429); + num2 = 0; + span429[num2] = new QuestStep(EInteractionType.Interact, 1051746u, new Vector3(824.6128f, 13.979889f, -227.16113f), 1188); obj299.Steps = list429; reference326 = obj299; - ref QuestSequence reference327 = ref span153[2]; + num++; + ref QuestSequence reference327 = ref span427[num]; QuestSequence obj300 = new QuestSequence { Sequence = byte.MaxValue @@ -367973,7 +447577,9 @@ public static class AssemblyQuestLoader num2 = 1; List list430 = new List(num2); CollectionsMarshal.SetCount(list430, num2); - CollectionsMarshal.AsSpan(list430)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + Span span430 = CollectionsMarshal.AsSpan(list430); + index2 = 0; + span430[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj300.Steps = list430; reference327 = obj300; questRoot49.QuestSequence = list427; @@ -367983,29 +447589,35 @@ public static class AssemblyQuestLoader num = 1; List list431 = new List(num); CollectionsMarshal.SetCount(list431, num); - CollectionsMarshal.AsSpan(list431)[0] = "liza"; + Span span431 = CollectionsMarshal.AsSpan(list431); + index = 0; + span431[index] = "liza"; questRoot50.Author = list431; - num = 3; - List list432 = new List(num); - CollectionsMarshal.SetCount(list432, num); - Span span155 = CollectionsMarshal.AsSpan(list432); - ref QuestSequence reference328 = ref span155[0]; + index = 3; + List list432 = new List(index); + CollectionsMarshal.SetCount(list432, index); + Span span432 = CollectionsMarshal.AsSpan(list432); + num = 0; + ref QuestSequence reference328 = ref span432[num]; QuestSequence obj301 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list433 = new List(num2); - CollectionsMarshal.SetCount(list433, num2); - Span span156 = CollectionsMarshal.AsSpan(list433); - span156[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span156[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + index2 = 2; + List list433 = new List(index2); + CollectionsMarshal.SetCount(list433, index2); + Span span433 = CollectionsMarshal.AsSpan(list433); + num2 = 0; + span433[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span433[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj301.Steps = list433; reference328 = obj301; - ref QuestSequence reference329 = ref span155[1]; + num++; + ref QuestSequence reference329 = ref span432[num]; QuestSequence obj302 = new QuestSequence { Sequence = 1 @@ -368013,36 +447625,42 @@ public static class AssemblyQuestLoader num2 = 3; List list434 = new List(num2); CollectionsMarshal.SetCount(list434, num2); - Span span157 = CollectionsMarshal.AsSpan(list434); - span157[0] = new QuestStep(EInteractionType.Interact, 1052301u, new Vector3(219.98926f, 10.289447f, -522.9115f), 1188) + Span span434 = CollectionsMarshal.AsSpan(list434); + index2 = 0; + span434[index2] = new QuestStep(EInteractionType.Interact, 1052301u, new Vector3(219.98926f, 10.289447f, -522.9115f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - span157[1] = new QuestStep(EInteractionType.Interact, 1052300u, new Vector3(208.48401f, 10.257622f, -588.98303f), 1188) + index2++; + span434[index2] = new QuestStep(EInteractionType.Interact, 1052300u, new Vector3(208.48401f, 10.257622f, -588.98303f), 1188) { Fly = true }; - span157[2] = new QuestStep(EInteractionType.Interact, 1052302u, new Vector3(171.03833f, 7.17552f, -602.6246f), 1188) + index2++; + span434[index2] = new QuestStep(EInteractionType.Interact, 1052302u, new Vector3(171.03833f, 7.17552f, -602.6246f), 1188) { Fly = true }; obj302.Steps = list434; reference329 = obj302; - ref QuestSequence reference330 = ref span155[2]; + num++; + ref QuestSequence reference330 = ref span432[num]; QuestSequence obj303 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list435 = new List(num2); - CollectionsMarshal.SetCount(list435, num2); - Span span158 = CollectionsMarshal.AsSpan(list435); - span158[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + index2 = 2; + List list435 = new List(index2); + CollectionsMarshal.SetCount(list435, index2); + Span span435 = CollectionsMarshal.AsSpan(list435); + num2 = 0; + span435[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span158[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span435[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368059,13 +447677,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 3; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 3; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -368073,29 +447694,35 @@ public static class AssemblyQuestLoader int num2 = 2; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span2 = CollectionsMarshal.AsSpan(list3); - span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span2[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span3 = CollectionsMarshal.AsSpan(list3); + int num3 = 0; + span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1052303u, new Vector3(-191.66864f, 6.5458784f, -498.0392f), 1188) + num3 = 1; + List list4 = new List(num3); + CollectionsMarshal.SetCount(list4, num3); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1052303u, new Vector3(-191.66864f, 6.5458784f, -498.0392f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -368103,12 +447730,14 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span3 = CollectionsMarshal.AsSpan(list5); - span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + Span span5 = CollectionsMarshal.AsSpan(list5); + num3 = 0; + span5[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span5[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368121,29 +447750,35 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = "liza"; + Span span6 = CollectionsMarshal.AsSpan(list6); + index = 0; + span6[index] = "liza"; questRoot2.Author = list6; - num = 3; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); - Span span4 = CollectionsMarshal.AsSpan(list7); - ref QuestSequence reference4 = ref span4[0]; + index = 3; + List list7 = new List(index); + CollectionsMarshal.SetCount(list7, index); + Span span7 = CollectionsMarshal.AsSpan(list7); + num = 0; + ref QuestSequence reference4 = ref span7[num]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span5 = CollectionsMarshal.AsSpan(list8); - span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span5[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span8[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj4.Steps = list8; reference4 = obj4; - ref QuestSequence reference5 = ref span4[1]; + num++; + ref QuestSequence reference5 = ref span7[num]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -368151,18 +447786,21 @@ public static class AssemblyQuestLoader num2 = 3; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span6 = CollectionsMarshal.AsSpan(list9); - ref QuestStep reference6 = ref span6[0]; + Span span9 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + ref QuestStep reference6 = ref span9[num3]; QuestStep obj6 = new QuestStep(EInteractionType.Combat, 2014482u, new Vector3(718.6847f, 6.1188354f, -105.60773f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - int num3 = 1; - List list10 = new List(num3); - CollectionsMarshal.SetCount(list10, num3); - CollectionsMarshal.AsSpan(list10)[0] = 18172u; + int num4 = 1; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + Span span10 = CollectionsMarshal.AsSpan(list10); + int index2 = 0; + span10[index2] = 18172u; obj6.KillEnemyDataIds = list10; obj6.SkipConditions = new SkipConditions { @@ -368176,95 +447814,128 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List> list11 = new List>(num3); - CollectionsMarshal.SetCount(list11, num3); - Span> span7 = CollectionsMarshal.AsSpan(list11); - span7[0] = null; - span7[1] = null; - ref List reference7 = ref span7[2]; - int num4 = 1; - List list12 = new List(num4); - CollectionsMarshal.SetCount(list12, num4); - CollectionsMarshal.AsSpan(list12)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List> list11 = new List>(index2); + CollectionsMarshal.SetCount(list11, index2); + Span> span11 = CollectionsMarshal.AsSpan(list11); + num4 = 0; + span11[num4] = null; + num4++; + span11[num4] = null; + num4++; + ref List reference7 = ref span11[num4]; + int num5 = 1; + List list12 = new List(num5); + CollectionsMarshal.SetCount(list12, num5); + Span span12 = CollectionsMarshal.AsSpan(list12); + int index3 = 0; + span12[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference7 = list12; - span7[3] = null; - span7[4] = null; - span7[5] = null; + num4++; + span11[num4] = null; + num4++; + span11[num4] = null; + num4++; + span11[num4] = null; obj6.RequiredQuestVariables = list11; reference6 = obj6; - ref QuestStep reference8 = ref span6[1]; + num3++; + ref QuestStep reference8 = ref span9[num3]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, 2014481u, new Vector3(581.78064f, 9.018005f, -180.49902f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - CollectionsMarshal.AsSpan(list13)[0] = 18172u; - obj7.KillEnemyDataIds = list13; - num3 = 6; - List> list14 = new List>(num3); - CollectionsMarshal.SetCount(list14, num3); - Span> span8 = CollectionsMarshal.AsSpan(list14); - span8[0] = null; - span8[1] = null; - ref List reference9 = ref span8[2]; num4 = 1; - List list15 = new List(num4); - CollectionsMarshal.SetCount(list15, num4); - CollectionsMarshal.AsSpan(list15)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + List list13 = new List(num4); + CollectionsMarshal.SetCount(list13, num4); + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + span13[index2] = 18172u; + obj7.KillEnemyDataIds = list13; + index2 = 6; + List> list14 = new List>(index2); + CollectionsMarshal.SetCount(list14, index2); + Span> span14 = CollectionsMarshal.AsSpan(list14); + num4 = 0; + span14[num4] = null; + num4++; + span14[num4] = null; + num4++; + ref List reference9 = ref span14[num4]; + index3 = 1; + List list15 = new List(index3); + CollectionsMarshal.SetCount(list15, index3); + Span span15 = CollectionsMarshal.AsSpan(list15); + num5 = 0; + span15[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference9 = list15; - span8[3] = null; - span8[4] = null; - span8[5] = null; + num4++; + span14[num4] = null; + num4++; + span14[num4] = null; + num4++; + span14[num4] = null; obj7.RequiredQuestVariables = list14; reference8 = obj7; - ref QuestStep reference10 = ref span6[2]; + num3++; + ref QuestStep reference10 = ref span9[num3]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, 2014480u, new Vector3(531.15125f, 12.527649f, -99.321045f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = 18172u; - obj8.KillEnemyDataIds = list16; - num3 = 6; - List> list17 = new List>(num3); - CollectionsMarshal.SetCount(list17, num3); - Span> span9 = CollectionsMarshal.AsSpan(list17); - span9[0] = null; - span9[1] = null; - ref List reference11 = ref span9[2]; num4 = 1; - List list18 = new List(num4); - CollectionsMarshal.SetCount(list18, num4); - CollectionsMarshal.AsSpan(list18)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + List list16 = new List(num4); + CollectionsMarshal.SetCount(list16, num4); + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = 18172u; + obj8.KillEnemyDataIds = list16; + index2 = 6; + List> list17 = new List>(index2); + CollectionsMarshal.SetCount(list17, index2); + Span> span17 = CollectionsMarshal.AsSpan(list17); + num4 = 0; + span17[num4] = null; + num4++; + span17[num4] = null; + num4++; + ref List reference11 = ref span17[num4]; + num5 = 1; + List list18 = new List(num5); + CollectionsMarshal.SetCount(list18, num5); + Span span18 = CollectionsMarshal.AsSpan(list18); + index3 = 0; + span18[index3] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference11 = list18; - span9[3] = null; - span9[4] = null; - span9[5] = null; + num4++; + span17[num4] = null; + num4++; + span17[num4] = null; + num4++; + span17[num4] = null; obj8.RequiredQuestVariables = list17; reference10 = obj8; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference12 = ref span4[2]; + num++; + ref QuestSequence reference12 = ref span7[num]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - Span span10 = CollectionsMarshal.AsSpan(list19); - span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list19 = new List(num3); + CollectionsMarshal.SetCount(list19, num3); + Span span19 = CollectionsMarshal.AsSpan(list19); + num2 = 0; + span19[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span19[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368277,13 +447948,16 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - CollectionsMarshal.AsSpan(list20)[0] = "liza"; + Span span20 = CollectionsMarshal.AsSpan(list20); + index = 0; + span20[index] = "liza"; questRoot3.Author = list20; - num = 3; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span11 = CollectionsMarshal.AsSpan(list21); - ref QuestSequence reference13 = ref span11[0]; + index = 3; + List list21 = new List(index); + CollectionsMarshal.SetCount(list21, index); + Span span21 = CollectionsMarshal.AsSpan(list21); + num = 0; + ref QuestSequence reference13 = ref span21[num]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -368291,23 +447965,28 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span12 = CollectionsMarshal.AsSpan(list22); - span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span12[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span22 = CollectionsMarshal.AsSpan(list22); + num3 = 0; + span22[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span22[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj10.Steps = list22; reference13 = obj10; - ref QuestSequence reference14 = ref span11[1]; + num++; + ref QuestSequence reference14 = ref span21[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1052304u, new Vector3(670.344f, 26.329378f, -531.2734f), 1188) + num3 = 1; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.Interact, 1052304u, new Vector3(670.344f, 26.329378f, -531.2734f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -368326,7 +448005,8 @@ public static class AssemblyQuestLoader }; obj11.Steps = list23; reference14 = obj11; - ref QuestSequence reference15 = ref span11[2]; + num++; + ref QuestSequence reference15 = ref span21[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -368334,12 +448014,14 @@ public static class AssemblyQuestLoader num2 = 2; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span13 = CollectionsMarshal.AsSpan(list24); - span13[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + Span span24 = CollectionsMarshal.AsSpan(list24); + num3 = 0; + span24[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span13[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span24[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368352,29 +448034,35 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - CollectionsMarshal.AsSpan(list25)[0] = "liza"; + Span span25 = CollectionsMarshal.AsSpan(list25); + index = 0; + span25[index] = "liza"; questRoot4.Author = list25; - num = 3; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); - Span span14 = CollectionsMarshal.AsSpan(list26); - ref QuestSequence reference16 = ref span14[0]; + index = 3; + List list26 = new List(index); + CollectionsMarshal.SetCount(list26, index); + Span span26 = CollectionsMarshal.AsSpan(list26); + num = 0; + ref QuestSequence reference16 = ref span26[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - Span span15 = CollectionsMarshal.AsSpan(list27); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span15[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list27 = new List(num3); + CollectionsMarshal.SetCount(list27, num3); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span27[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj13.Steps = list27; reference16 = obj13; - ref QuestSequence reference17 = ref span14[1]; + num++; + ref QuestSequence reference17 = ref span26[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -368382,8 +448070,9 @@ public static class AssemblyQuestLoader num2 = 3; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span16 = CollectionsMarshal.AsSpan(list28); - ref QuestStep reference18 = ref span16[0]; + Span span28 = CollectionsMarshal.AsSpan(list28); + num3 = 0; + ref QuestStep reference18 = ref span28[num3]; QuestStep obj15 = new QuestStep(EInteractionType.UseItem, 2014484u, new Vector3(847.34875f, 15.8845825f, -192.67572f), 1188) { Fly = true, @@ -368402,64 +448091,86 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span17 = CollectionsMarshal.AsSpan(list29); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list29 = new List(num4); + CollectionsMarshal.SetCount(list29, num4); + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + span29[index2] = null; + index2++; + span29[index2] = null; + index2++; + span29[index2] = null; + index2++; + span29[index2] = null; + index2++; + span29[index2] = null; + index2++; + span29[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj15.CompletionQuestVariablesFlags = list29; reference18 = obj15; - ref QuestStep reference19 = ref span16[1]; + num3++; + ref QuestStep reference19 = ref span28[num3]; QuestStep obj16 = new QuestStep(EInteractionType.UseItem, 2014485u, new Vector3(855.2223f, 15.945618f, -208.72821f), 1188) { ItemId = 2003717u }; - num3 = 6; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - Span span18 = CollectionsMarshal.AsSpan(list30); - span18[0] = null; - span18[1] = null; - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = null; + num4++; + span30[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj16.CompletionQuestVariablesFlags = list30; reference19 = obj16; - ref QuestStep reference20 = ref span16[2]; + num3++; + ref QuestStep reference20 = ref span28[num3]; QuestStep obj17 = new QuestStep(EInteractionType.UseItem, 2014483u, new Vector3(868.1315f, 15.335266f, -203.96735f), 1188) { ItemId = 2003717u }; - num3 = 6; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span19 = CollectionsMarshal.AsSpan(list31); - span19[0] = null; - span19[1] = null; - span19[2] = null; - span19[3] = null; - span19[4] = null; - span19[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list31 = new List(num4); + CollectionsMarshal.SetCount(list31, num4); + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span31[index2] = null; + index2++; + span31[index2] = null; + index2++; + span31[index2] = null; + index2++; + span31[index2] = null; + index2++; + span31[index2] = null; + index2++; + span31[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list31; reference20 = obj17; obj14.Steps = list28; reference17 = obj14; - ref QuestSequence reference21 = ref span14[2]; + num++; + ref QuestSequence reference21 = ref span26[num]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - Span span20 = CollectionsMarshal.AsSpan(list32); - span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -368476,7 +448187,8 @@ public static class AssemblyQuestLoader } } }; - span20[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span32[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368489,13 +448201,16 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "liza"; + Span span33 = CollectionsMarshal.AsSpan(list33); + index = 0; + span33[index] = "liza"; questRoot5.Author = list33; - num = 5; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span21 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference22 = ref span21[0]; + index = 5; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + Span span34 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference22 = ref span34[num]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -368503,23 +448218,28 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span22 = CollectionsMarshal.AsSpan(list35); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span22[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span35 = CollectionsMarshal.AsSpan(list35); + num3 = 0; + span35[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span35[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj19.Steps = list35; reference22 = obj19; - ref QuestSequence reference23 = ref span21[1]; + num++; + ref QuestSequence reference23 = ref span34[num]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1052305u, new Vector3(474.20447f, 9.739183f, -207.90424f), 1188) + num3 = 1; + List list36 = new List(num3); + CollectionsMarshal.SetCount(list36, num3); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.Interact, 1052305u, new Vector3(474.20447f, 9.739183f, -207.90424f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -368538,7 +448258,8 @@ public static class AssemblyQuestLoader }; obj20.Steps = list36; reference23 = obj20; - ref QuestSequence reference24 = ref span21[2]; + num++; + ref QuestSequence reference24 = ref span34[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -368546,29 +448267,38 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 2014486u, new Vector3(471.88513f, 9.933594f, -206.46985f), 1188) + Span span37 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span37[num3] = new QuestStep(EInteractionType.Interact, 2014486u, new Vector3(471.88513f, 9.933594f, -206.46985f), 1188) { StopDistance = 4.5f }; obj21.Steps = list37; reference24 = obj21; - ref QuestSequence reference25 = ref span21[3]; + num++; + ref QuestSequence reference25 = ref span34[num]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - num2 = 5; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span23 = CollectionsMarshal.AsSpan(list38); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(548.1944f, 6.15866f, -196.99664f), 1188); - span23[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(610.0975f, 7.8043165f, -228.70596f), 1188); - span23[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(680.4834f, 10.053757f, -263.73697f), 1188); - span23[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(743.98376f, 9.793373f, -263.45914f), 1188); - span23[4] = new QuestStep(EInteractionType.Interact, 1052306u, new Vector3(791.37854f, 14.39521f, -206.53088f), 1188); + num3 = 5; + List list38 = new List(num3); + CollectionsMarshal.SetCount(list38, num3); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(548.1944f, 6.15866f, -196.99664f), 1188); + num2++; + span38[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(610.0975f, 7.8043165f, -228.70596f), 1188); + num2++; + span38[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(680.4834f, 10.053757f, -263.73697f), 1188); + num2++; + span38[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(743.98376f, 9.793373f, -263.45914f), 1188); + num2++; + span38[num2] = new QuestStep(EInteractionType.Interact, 1052306u, new Vector3(791.37854f, 14.39521f, -206.53088f), 1188); obj22.Steps = list38; reference25 = obj22; - ref QuestSequence reference26 = ref span21[4]; + num++; + ref QuestSequence reference26 = ref span34[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -368576,8 +448306,9 @@ public static class AssemblyQuestLoader num2 = 2; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span24 = CollectionsMarshal.AsSpan(list39); - span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + Span span39 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + span39[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -368594,7 +448325,8 @@ public static class AssemblyQuestLoader } } }; - span24[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span39[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368607,29 +448339,35 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "liza"; + Span span40 = CollectionsMarshal.AsSpan(list40); + index = 0; + span40[index] = "liza"; questRoot6.Author = list40; - num = 3; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span25 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference27 = ref span25[0]; + index = 3; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + Span span41 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference27 = ref span41[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - Span span26 = CollectionsMarshal.AsSpan(list42); - span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span26[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span42[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj24.Steps = list42; reference27 = obj24; - ref QuestSequence reference28 = ref span25[1]; + num++; + ref QuestSequence reference28 = ref span41[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -368637,8 +448375,9 @@ public static class AssemblyQuestLoader num2 = 3; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span27 = CollectionsMarshal.AsSpan(list43); - span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-165.49648f, 8.736965f, -401.72836f), 1188) + Span span43 = CollectionsMarshal.AsSpan(list43); + num3 = 0; + span43[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-165.49648f, 8.736965f, -401.72836f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu, @@ -368650,31 +448389,42 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference29 = ref span27[1]; + num3++; + ref QuestStep reference29 = ref span43[num3]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 1052307u, new Vector3(-111.0094f, 1.6987718f, -111.0094f), 1188) { Fly = true }; - num3 = 6; - List> list44 = new List>(num3); - CollectionsMarshal.SetCount(list44, num3); - Span> span28 = CollectionsMarshal.AsSpan(list44); - span28[0] = null; - ref List reference30 = ref span28[1]; - num4 = 1; - List list45 = new List(num4); - CollectionsMarshal.SetCount(list45, num4); - CollectionsMarshal.AsSpan(list45)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index2 = 6; + List> list44 = new List>(index2); + CollectionsMarshal.SetCount(list44, index2); + Span> span44 = CollectionsMarshal.AsSpan(list44); + num4 = 0; + span44[num4] = null; + num4++; + ref List reference30 = ref span44[num4]; + index3 = 1; + List list45 = new List(index3); + CollectionsMarshal.SetCount(list45, index3); + Span span45 = CollectionsMarshal.AsSpan(list45); + num5 = 0; + span45[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference30 = list45; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = null; + num4++; + span44[num4] = null; + num4++; + span44[num4] = null; + num4++; + span44[num4] = null; + num4++; + span44[num4] = null; obj26.RequiredQuestVariables = list44; - num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = new DialogueChoice + num4 = 1; + List list46 = new List(num4); + CollectionsMarshal.SetCount(list46, num4); + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL107_05205_Q1_000_000"), @@ -368682,31 +448432,42 @@ public static class AssemblyQuestLoader }; obj26.DialogueChoices = list46; reference29 = obj26; - ref QuestStep reference31 = ref span27[2]; + num3++; + ref QuestStep reference31 = ref span43[num3]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 1052308u, new Vector3(-152.7276f, 3.6225784f, -349.87415f), 1188) { Fly = true }; - num3 = 6; - List> list47 = new List>(num3); - CollectionsMarshal.SetCount(list47, num3); - Span> span29 = CollectionsMarshal.AsSpan(list47); - span29[0] = null; - ref List reference32 = ref span29[1]; - num4 = 1; - List list48 = new List(num4); - CollectionsMarshal.SetCount(list48, num4); - CollectionsMarshal.AsSpan(list48)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + index2 = 6; + List> list47 = new List>(index2); + CollectionsMarshal.SetCount(list47, index2); + Span> span47 = CollectionsMarshal.AsSpan(list47); + num4 = 0; + span47[num4] = null; + num4++; + ref List reference32 = ref span47[num4]; + num5 = 1; + List list48 = new List(num5); + CollectionsMarshal.SetCount(list48, num5); + Span span48 = CollectionsMarshal.AsSpan(list48); + index3 = 0; + span48[index3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference32 = list48; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = null; + num4++; + span47[num4] = null; + num4++; + span47[num4] = null; + num4++; + span47[num4] = null; + num4++; + span47[num4] = null; obj27.RequiredQuestVariables = list47; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = new DialogueChoice + num4 = 1; + List list49 = new List(num4); + CollectionsMarshal.SetCount(list49, num4); + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span49[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL107_05205_Q2_000_000"), @@ -368716,20 +448477,23 @@ public static class AssemblyQuestLoader reference31 = obj27; obj25.Steps = list43; reference28 = obj25; - ref QuestSequence reference33 = ref span25[2]; + num++; + ref QuestSequence reference33 = ref span41[num]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - Span span30 = CollectionsMarshal.AsSpan(list50); - span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span50[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368742,13 +448506,16 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "liza"; + Span span51 = CollectionsMarshal.AsSpan(list51); + index = 0; + span51[index] = "liza"; questRoot7.Author = list51; - num = 3; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span31 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference34 = ref span31[0]; + index = 3; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + Span span52 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference34 = ref span52[num]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -368756,96 +448523,127 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span32 = CollectionsMarshal.AsSpan(list53); - span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span32[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span53 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + span53[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span53[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj29.Steps = list53; reference34 = obj29; - ref QuestSequence reference35 = ref span31[1]; + num++; + ref QuestSequence reference35 = ref span52[num]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - Span span33 = CollectionsMarshal.AsSpan(list54); - ref QuestStep reference36 = ref span33[0]; + num3 = 3; + List list54 = new List(num3); + CollectionsMarshal.SetCount(list54, num3); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + ref QuestStep reference36 = ref span54[num2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 2014540u, new Vector3(-24.887512f, 21.774597f, -88.76172f), 1188) { StopDistance = 1f, Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - num3 = 6; - List> list55 = new List>(num3); - CollectionsMarshal.SetCount(list55, num3); - Span> span34 = CollectionsMarshal.AsSpan(list55); - span34[0] = null; - ref List reference37 = ref span34[1]; - num4 = 1; - List list56 = new List(num4); - CollectionsMarshal.SetCount(list56, num4); - CollectionsMarshal.AsSpan(list56)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + index2 = 6; + List> list55 = new List>(index2); + CollectionsMarshal.SetCount(list55, index2); + Span> span55 = CollectionsMarshal.AsSpan(list55); + num4 = 0; + span55[num4] = null; + num4++; + ref List reference37 = ref span55[num4]; + index3 = 1; + List list56 = new List(index3); + CollectionsMarshal.SetCount(list56, index3); + Span span56 = CollectionsMarshal.AsSpan(list56); + num5 = 0; + span56[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference37 = list56; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = null; + num4++; + span55[num4] = null; + num4++; + span55[num4] = null; + num4++; + span55[num4] = null; + num4++; + span55[num4] = null; obj31.RequiredQuestVariables = list55; reference36 = obj31; - ref QuestStep reference38 = ref span33[1]; + num2++; + ref QuestStep reference38 = ref span54[num2]; QuestStep obj32 = new QuestStep(EInteractionType.Interact, 2014487u, new Vector3(-45.426086f, 21.469421f, -80.27777f), 1188) { StopDistance = 1f, Fly = true }; - num3 = 6; - List> list57 = new List>(num3); - CollectionsMarshal.SetCount(list57, num3); - Span> span35 = CollectionsMarshal.AsSpan(list57); - span35[0] = null; - ref List reference39 = ref span35[1]; - num4 = 1; - List list58 = new List(num4); - CollectionsMarshal.SetCount(list58, num4); - CollectionsMarshal.AsSpan(list58)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + num4 = 6; + List> list57 = new List>(num4); + CollectionsMarshal.SetCount(list57, num4); + Span> span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = null; + index2++; + ref List reference39 = ref span57[index2]; + num5 = 1; + List list58 = new List(num5); + CollectionsMarshal.SetCount(list58, num5); + Span span58 = CollectionsMarshal.AsSpan(list58); + index3 = 0; + span58[index3] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference39 = list58; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = null; + index2++; + span57[index2] = null; + index2++; + span57[index2] = null; + index2++; + span57[index2] = null; + index2++; + span57[index2] = null; obj32.RequiredQuestVariables = list57; reference38 = obj32; - ref QuestStep reference40 = ref span33[2]; + num2++; + ref QuestStep reference40 = ref span54[num2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 2014539u, new Vector3(-9.2317505f, 21.469421f, -74.418274f), 1188) { StopDistance = 1f, Fly = true }; - num3 = 6; - List> list59 = new List>(num3); - CollectionsMarshal.SetCount(list59, num3); - Span> span36 = CollectionsMarshal.AsSpan(list59); - span36[0] = null; - ref List reference41 = ref span36[1]; - num4 = 1; - List list60 = new List(num4); - CollectionsMarshal.SetCount(list60, num4); - CollectionsMarshal.AsSpan(list60)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + index2 = 6; + List> list59 = new List>(index2); + CollectionsMarshal.SetCount(list59, index2); + Span> span59 = CollectionsMarshal.AsSpan(list59); + num4 = 0; + span59[num4] = null; + num4++; + ref List reference41 = ref span59[num4]; + index3 = 1; + List list60 = new List(index3); + CollectionsMarshal.SetCount(list60, index3); + Span span60 = CollectionsMarshal.AsSpan(list60); + num5 = 0; + span60[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference41 = list60; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = null; + num4++; + span59[num4] = null; + num4++; + span59[num4] = null; + num4++; + span59[num4] = null; + num4++; + span59[num4] = null; obj33.RequiredQuestVariables = list59; reference40 = obj33; obj30.Steps = list54; reference35 = obj30; - ref QuestSequence reference42 = ref span31[2]; + num++; + ref QuestSequence reference42 = ref span52[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -368853,12 +448651,14 @@ public static class AssemblyQuestLoader num2 = 2; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span37 = CollectionsMarshal.AsSpan(list61); - span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span37[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span61[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368871,29 +448671,35 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - CollectionsMarshal.AsSpan(list62)[0] = "liza"; + Span span62 = CollectionsMarshal.AsSpan(list62); + index = 0; + span62[index] = "liza"; questRoot8.Author = list62; - num = 4; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span38 = CollectionsMarshal.AsSpan(list63); - ref QuestSequence reference43 = ref span38[0]; + index = 4; + List list63 = new List(index); + CollectionsMarshal.SetCount(list63, index); + Span span63 = CollectionsMarshal.AsSpan(list63); + num = 0; + ref QuestSequence reference43 = ref span63[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span39 = CollectionsMarshal.AsSpan(list64); - span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span39[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span64[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj35.Steps = list64; reference43 = obj35; - ref QuestSequence reference44 = ref span38[1]; + num++; + ref QuestSequence reference44 = ref span63[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -368901,28 +448707,34 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1052309u, new Vector3(-100.35864f, 4.7510896f, -304.3412f), 1188) + Span span65 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span65[num3] = new QuestStep(EInteractionType.Interact, 1052309u, new Vector3(-100.35864f, 4.7510896f, -304.3412f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj36.Steps = list65; reference44 = obj36; - ref QuestSequence reference45 = ref span38[2]; + num++; + ref QuestSequence reference45 = ref span63[num]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1052310u, new Vector3(-103.01367f, 4.70791f, -305.40936f), 1188) + num3 = 1; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.Interact, 1052310u, new Vector3(-103.01367f, 4.70791f, -305.40936f), 1188) { StopDistance = 5f }; obj37.Steps = list66; reference45 = obj37; - ref QuestSequence reference46 = ref span38[3]; + num++; + ref QuestSequence reference46 = ref span63[num]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -368930,12 +448742,14 @@ public static class AssemblyQuestLoader num2 = 2; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span40 = CollectionsMarshal.AsSpan(list67); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + Span span67 = CollectionsMarshal.AsSpan(list67); + num3 = 0; + span67[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span40[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span67[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -368948,29 +448762,35 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "liza"; + Span span68 = CollectionsMarshal.AsSpan(list68); + index = 0; + span68[index] = "liza"; questRoot9.Author = list68; - num = 3; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span41 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference47 = ref span41[0]; + index = 3; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + Span span69 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference47 = ref span69[num]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span42 = CollectionsMarshal.AsSpan(list70); - span42[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span42[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + span70[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span70[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj39.Steps = list70; reference47 = obj39; - ref QuestSequence reference48 = ref span41[1]; + num++; + ref QuestSequence reference48 = ref span69[num]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -368978,71 +448798,95 @@ public static class AssemblyQuestLoader num2 = 3; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span43 = CollectionsMarshal.AsSpan(list71); - ref QuestStep reference49 = ref span43[0]; + Span span71 = CollectionsMarshal.AsSpan(list71); + num3 = 0; + ref QuestStep reference49 = ref span71[num3]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 1052319u, new Vector3(-185.07672f, 6.5185943f, -460.04425f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - num3 = 6; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span44 = CollectionsMarshal.AsSpan(list72); - span44[0] = null; - span44[1] = null; - span44[2] = null; - span44[3] = null; - span44[4] = null; - span44[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list72 = new List(num4); + CollectionsMarshal.SetCount(list72, num4); + Span span72 = CollectionsMarshal.AsSpan(list72); + index2 = 0; + span72[index2] = null; + index2++; + span72[index2] = null; + index2++; + span72[index2] = null; + index2++; + span72[index2] = null; + index2++; + span72[index2] = null; + index2++; + span72[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj41.CompletionQuestVariablesFlags = list72; reference49 = obj41; - ref QuestStep reference50 = ref span43[1]; + num3++; + ref QuestStep reference50 = ref span71[num3]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1052318u, new Vector3(-217.12067f, 6.4016876f, -474.60138f), 1188); - num3 = 6; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span45 = CollectionsMarshal.AsSpan(list73); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list73 = new List(index2); + CollectionsMarshal.SetCount(list73, index2); + Span span73 = CollectionsMarshal.AsSpan(list73); + num4 = 0; + span73[num4] = null; + num4++; + span73[num4] = null; + num4++; + span73[num4] = null; + num4++; + span73[num4] = null; + num4++; + span73[num4] = null; + num4++; + span73[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list73; reference50 = questStep; - ref QuestStep reference51 = ref span43[2]; + num3++; + ref QuestStep reference51 = ref span71[num3]; QuestStep obj42 = new QuestStep(EInteractionType.Interact, 1052320u, new Vector3(-108.659546f, 9.773233f, -530.2052f), 1188) { Fly = true }; - num3 = 6; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - Span span46 = CollectionsMarshal.AsSpan(list74); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list74 = new List(num4); + CollectionsMarshal.SetCount(list74, num4); + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = null; + index2++; + span74[index2] = null; + index2++; + span74[index2] = null; + index2++; + span74[index2] = null; + index2++; + span74[index2] = null; + index2++; + span74[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj42.CompletionQuestVariablesFlags = list74; reference51 = obj42; obj40.Steps = list71; reference48 = obj40; - ref QuestSequence reference52 = ref span41[2]; + num++; + ref QuestSequence reference52 = ref span69[num]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - Span span47 = CollectionsMarshal.AsSpan(list75); - span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span47[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span75[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -369055,13 +448899,16 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - CollectionsMarshal.AsSpan(list76)[0] = "liza"; + Span span76 = CollectionsMarshal.AsSpan(list76); + index = 0; + span76[index] = "liza"; questRoot10.Author = list76; - num = 4; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span48 = CollectionsMarshal.AsSpan(list77); - ref QuestSequence reference53 = ref span48[0]; + index = 4; + List list77 = new List(index); + CollectionsMarshal.SetCount(list77, index); + Span span77 = CollectionsMarshal.AsSpan(list77); + num = 0; + ref QuestSequence reference53 = ref span77[num]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -369069,30 +448916,36 @@ public static class AssemblyQuestLoader num2 = 2; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span49 = CollectionsMarshal.AsSpan(list78); - span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span49[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span78 = CollectionsMarshal.AsSpan(list78); + num3 = 0; + span78[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span78[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj44.Steps = list78; reference53 = obj44; - ref QuestSequence reference54 = ref span48[1]; + num++; + ref QuestSequence reference54 = ref span77[num]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1052321u, new Vector3(103.227295f, 0.7218611f, -334.37097f), 1188) + num3 = 1; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.Interact, 1052321u, new Vector3(103.227295f, 0.7218611f, -334.37097f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj45.Steps = list79; reference54 = obj45; - ref QuestSequence reference55 = ref span48[2]; + num++; + ref QuestSequence reference55 = ref span77[num]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -369100,65 +448953,89 @@ public static class AssemblyQuestLoader num2 = 3; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span50 = CollectionsMarshal.AsSpan(list80); - ref QuestStep reference56 = ref span50[0]; + Span span80 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + ref QuestStep reference56 = ref span80[num3]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2014488u, new Vector3(103.74609f, -0.015319824f, -339.13184f), 1188); - num3 = 6; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - Span span51 = CollectionsMarshal.AsSpan(list81); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num4 = 0; + span81[num4] = null; + num4++; + span81[num4] = null; + num4++; + span81[num4] = null; + num4++; + span81[num4] = null; + num4++; + span81[num4] = null; + num4++; + span81[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list81; reference56 = questStep2; - ref QuestStep reference57 = ref span50[1]; + num3++; + ref QuestStep reference57 = ref span80[num3]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2014536u, new Vector3(106.21802f, -0.015319824f, -347.097f), 1188); - num3 = 6; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - Span span52 = CollectionsMarshal.AsSpan(list82); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list82 = new List(num4); + CollectionsMarshal.SetCount(list82, num4); + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = null; + index2++; + span82[index2] = null; + index2++; + span82[index2] = null; + index2++; + span82[index2] = null; + index2++; + span82[index2] = null; + index2++; + span82[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list82; reference57 = questStep3; - ref QuestStep reference58 = ref span50[2]; + num3++; + ref QuestStep reference58 = ref span80[num3]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2014537u, new Vector3(112.93201f, -0.015319824f, -341.5122f), 1188); - num3 = 6; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - Span span53 = CollectionsMarshal.AsSpan(list83); - span53[0] = null; - span53[1] = null; - span53[2] = null; - span53[3] = null; - span53[4] = null; - span53[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num4 = 0; + span83[num4] = null; + num4++; + span83[num4] = null; + num4++; + span83[num4] = null; + num4++; + span83[num4] = null; + num4++; + span83[num4] = null; + num4++; + span83[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list83; reference58 = questStep4; obj46.Steps = list80; reference55 = obj46; - ref QuestSequence reference59 = ref span48[3]; + num++; + ref QuestSequence reference59 = ref span77[num]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - Span span54 = CollectionsMarshal.AsSpan(list84); - span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list84 = new List(num3); + CollectionsMarshal.SetCount(list84, num3); + Span span84 = CollectionsMarshal.AsSpan(list84); + num2 = 0; + span84[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span54[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span84[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -369171,13 +449048,16 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - CollectionsMarshal.AsSpan(list85)[0] = "liza"; + Span span85 = CollectionsMarshal.AsSpan(list85); + index = 0; + span85[index] = "liza"; questRoot11.Author = list85; - num = 5; - List list86 = new List(num); - CollectionsMarshal.SetCount(list86, num); - Span span55 = CollectionsMarshal.AsSpan(list86); - ref QuestSequence reference60 = ref span55[0]; + index = 5; + List list86 = new List(index); + CollectionsMarshal.SetCount(list86, index); + Span span86 = CollectionsMarshal.AsSpan(list86); + num = 0; + ref QuestSequence reference60 = ref span86[num]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -369185,23 +449065,28 @@ public static class AssemblyQuestLoader num2 = 2; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span56 = CollectionsMarshal.AsSpan(list87); - span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span56[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span87[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj48.Steps = list87; reference60 = obj48; - ref QuestSequence reference61 = ref span55[1]; + num++; + ref QuestSequence reference61 = ref span86[num]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1052323u, new Vector3(495.75024f, 10.160157f, -242.99994f), 1188) + num3 = 1; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Interact, 1052323u, new Vector3(495.75024f, 10.160157f, -242.99994f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -369220,7 +449105,8 @@ public static class AssemblyQuestLoader }; obj49.Steps = list88; reference61 = obj49; - ref QuestSequence reference62 = ref span55[2]; + num++; + ref QuestSequence reference62 = ref span86[num]; QuestSequence obj50 = new QuestSequence { Sequence = 2 @@ -369228,102 +449114,139 @@ public static class AssemblyQuestLoader num2 = 3; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span57 = CollectionsMarshal.AsSpan(list89); - ref QuestStep reference63 = ref span57[0]; + Span span89 = CollectionsMarshal.AsSpan(list89); + num3 = 0; + ref QuestStep reference63 = ref span89[num3]; QuestStep obj51 = new QuestStep(EInteractionType.Combat, 2014491u, new Vector3(504.78357f, 15.396301f, -283.83307f), 1188) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list90 = new List(num3); - CollectionsMarshal.SetCount(list90, num3); - CollectionsMarshal.AsSpan(list90)[0] = 18173u; - obj51.KillEnemyDataIds = list90; - num3 = 6; - List> list91 = new List>(num3); - CollectionsMarshal.SetCount(list91, num3); - Span> span58 = CollectionsMarshal.AsSpan(list91); - span58[0] = null; - span58[1] = null; - ref List reference64 = ref span58[2]; num4 = 1; - List list92 = new List(num4); - CollectionsMarshal.SetCount(list92, num4); - CollectionsMarshal.AsSpan(list92)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + List list90 = new List(num4); + CollectionsMarshal.SetCount(list90, num4); + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = 18173u; + obj51.KillEnemyDataIds = list90; + index2 = 6; + List> list91 = new List>(index2); + CollectionsMarshal.SetCount(list91, index2); + Span> span91 = CollectionsMarshal.AsSpan(list91); + num4 = 0; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + ref List reference64 = ref span91[num4]; + num5 = 1; + List list92 = new List(num5); + CollectionsMarshal.SetCount(list92, num5); + Span span92 = CollectionsMarshal.AsSpan(list92); + index3 = 0; + span92[index3] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference64 = list92; - span58[3] = null; - span58[4] = null; - span58[5] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = null; + num4++; + span91[num4] = null; obj51.RequiredQuestVariables = list91; reference63 = obj51; - ref QuestStep reference65 = ref span57[1]; + num3++; + ref QuestStep reference65 = ref span89[num3]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, 2014489u, new Vector3(522.301f, 12.191956f, -273.97577f), 1188) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = 18173u; - obj52.KillEnemyDataIds = list93; - num3 = 6; - List> list94 = new List>(num3); - CollectionsMarshal.SetCount(list94, num3); - Span> span59 = CollectionsMarshal.AsSpan(list94); - span59[0] = null; - span59[1] = null; - ref List reference66 = ref span59[2]; num4 = 1; - List list95 = new List(num4); - CollectionsMarshal.SetCount(list95, num4); - CollectionsMarshal.AsSpan(list95)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + List list93 = new List(num4); + CollectionsMarshal.SetCount(list93, num4); + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = 18173u; + obj52.KillEnemyDataIds = list93; + index2 = 6; + List> list94 = new List>(index2); + CollectionsMarshal.SetCount(list94, index2); + Span> span94 = CollectionsMarshal.AsSpan(list94); + num4 = 0; + span94[num4] = null; + num4++; + span94[num4] = null; + num4++; + ref List reference66 = ref span94[num4]; + index3 = 1; + List list95 = new List(index3); + CollectionsMarshal.SetCount(list95, index3); + Span span95 = CollectionsMarshal.AsSpan(list95); + num5 = 0; + span95[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference66 = list95; - span59[3] = null; - span59[4] = null; - span59[5] = null; + num4++; + span94[num4] = null; + num4++; + span94[num4] = null; + num4++; + span94[num4] = null; obj52.RequiredQuestVariables = list94; reference65 = obj52; - ref QuestStep reference67 = ref span57[2]; + num3++; + ref QuestStep reference67 = ref span89[num3]; QuestStep obj53 = new QuestStep(EInteractionType.Combat, 2014490u, new Vector3(485.6183f, 10.8185425f, -281.7884f), 1188) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - CollectionsMarshal.AsSpan(list96)[0] = 18173u; - obj53.KillEnemyDataIds = list96; - num3 = 6; - List> list97 = new List>(num3); - CollectionsMarshal.SetCount(list97, num3); - Span> span60 = CollectionsMarshal.AsSpan(list97); - span60[0] = null; - span60[1] = null; - ref List reference68 = ref span60[2]; num4 = 1; - List list98 = new List(num4); - CollectionsMarshal.SetCount(list98, num4); - CollectionsMarshal.AsSpan(list98)[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + List list96 = new List(num4); + CollectionsMarshal.SetCount(list96, num4); + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = 18173u; + obj53.KillEnemyDataIds = list96; + index2 = 6; + List> list97 = new List>(index2); + CollectionsMarshal.SetCount(list97, index2); + Span> span97 = CollectionsMarshal.AsSpan(list97); + num4 = 0; + span97[num4] = null; + num4++; + span97[num4] = null; + num4++; + ref List reference68 = ref span97[num4]; + num5 = 1; + List list98 = new List(num5); + CollectionsMarshal.SetCount(list98, num5); + Span span98 = CollectionsMarshal.AsSpan(list98); + index3 = 0; + span98[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference68 = list98; - span60[3] = null; - span60[4] = null; - span60[5] = null; + num4++; + span97[num4] = null; + num4++; + span97[num4] = null; + num4++; + span97[num4] = null; obj53.RequiredQuestVariables = list97; reference67 = obj53; obj50.Steps = list89; reference62 = obj50; - ref QuestSequence reference69 = ref span55[3]; + num++; + ref QuestSequence reference69 = ref span86[num]; QuestSequence obj54 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1052323u, new Vector3(495.75024f, 10.160157f, -242.99994f), 1188); + num3 = 1; + List list99 = new List(num3); + CollectionsMarshal.SetCount(list99, num3); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.Interact, 1052323u, new Vector3(495.75024f, 10.160157f, -242.99994f), 1188); obj54.Steps = list99; reference69 = obj54; - ref QuestSequence reference70 = ref span55[4]; + num++; + ref QuestSequence reference70 = ref span86[num]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -369331,12 +449254,14 @@ public static class AssemblyQuestLoader num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span61 = CollectionsMarshal.AsSpan(list100); - span61[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + Span span100 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span100[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span61[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span100[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -369349,29 +449274,35 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - CollectionsMarshal.AsSpan(list101)[0] = "liza"; + Span span101 = CollectionsMarshal.AsSpan(list101); + index = 0; + span101[index] = "liza"; questRoot12.Author = list101; - num = 3; - List list102 = new List(num); - CollectionsMarshal.SetCount(list102, num); - Span span62 = CollectionsMarshal.AsSpan(list102); - ref QuestSequence reference71 = ref span62[0]; + index = 3; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + Span span102 = CollectionsMarshal.AsSpan(list102); + num = 0; + ref QuestSequence reference71 = ref span102[num]; QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - Span span63 = CollectionsMarshal.AsSpan(list103); - span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span63[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + Span span103 = CollectionsMarshal.AsSpan(list103); + num2 = 0; + span103[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span103[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj56.Steps = list103; reference71 = obj56; - ref QuestSequence reference72 = ref span62[1]; + num++; + ref QuestSequence reference72 = ref span102[num]; QuestSequence obj57 = new QuestSequence { Sequence = 1 @@ -369379,59 +449310,76 @@ public static class AssemblyQuestLoader num2 = 2; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span64 = CollectionsMarshal.AsSpan(list104); - ref QuestStep reference73 = ref span64[0]; + Span span104 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + ref QuestStep reference73 = ref span104[num3]; QuestStep obj58 = new QuestStep(EInteractionType.UseItem, 2014492u, new Vector3(-448.50842f, 0.9613037f, -113.69501f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu, ItemId = 2003721u }; - num3 = 6; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span65 = CollectionsMarshal.AsSpan(list105); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list105 = new List(num4); + CollectionsMarshal.SetCount(list105, num4); + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = null; + index2++; + span105[index2] = null; + index2++; + span105[index2] = null; + index2++; + span105[index2] = null; + index2++; + span105[index2] = null; + index2++; + span105[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj58.CompletionQuestVariablesFlags = list105; reference73 = obj58; - ref QuestStep reference74 = ref span64[1]; + num3++; + ref QuestStep reference74 = ref span104[num3]; QuestStep obj59 = new QuestStep(EInteractionType.UseItem, 2014493u, new Vector3(-464.0421f, 0.62561035f, -119.95117f), 1188) { ItemId = 2003721u }; - num3 = 6; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span66 = CollectionsMarshal.AsSpan(list106); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num4 = 0; + span106[num4] = null; + num4++; + span106[num4] = null; + num4++; + span106[num4] = null; + num4++; + span106[num4] = null; + num4++; + span106[num4] = null; + num4++; + span106[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj59.CompletionQuestVariablesFlags = list106; reference74 = obj59; obj57.Steps = list104; reference72 = obj57; - ref QuestSequence reference75 = ref span62[2]; + num++; + ref QuestSequence reference75 = ref span102[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - Span span67 = CollectionsMarshal.AsSpan(list107); - span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + Span span107 = CollectionsMarshal.AsSpan(list107); + num2 = 0; + span107[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span107[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -369444,13 +449392,16 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - CollectionsMarshal.AsSpan(list108)[0] = "liza"; + Span span108 = CollectionsMarshal.AsSpan(list108); + index = 0; + span108[index] = "liza"; questRoot13.Author = list108; - num = 3; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span68 = CollectionsMarshal.AsSpan(list109); - ref QuestSequence reference76 = ref span68[0]; + index = 3; + List list109 = new List(index); + CollectionsMarshal.SetCount(list109, index); + Span span109 = CollectionsMarshal.AsSpan(list109); + num = 0; + ref QuestSequence reference76 = ref span109[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -369458,24 +449409,28 @@ public static class AssemblyQuestLoader num2 = 2; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span69 = CollectionsMarshal.AsSpan(list110); - span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span69[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span110 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + span110[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span110[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj61.Steps = list110; reference76 = obj61; - ref QuestSequence reference77 = ref span68[1]; + num++; + ref QuestSequence reference77 = ref span109[num]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span70 = CollectionsMarshal.AsSpan(list111); - ref QuestStep reference78 = ref span70[0]; + num3 = 3; + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + ref QuestStep reference78 = ref span111[num2]; QuestStep obj63 = new QuestStep(EInteractionType.Interact, 2014494u, new Vector3(538.38403f, 15.701477f, -10.147278f), 1188) { Fly = true, @@ -369493,49 +449448,70 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span71 = CollectionsMarshal.AsSpan(list112); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list112 = new List(num4); + CollectionsMarshal.SetCount(list112, num4); + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = null; + index2++; + span112[index2] = null; + index2++; + span112[index2] = null; + index2++; + span112[index2] = null; + index2++; + span112[index2] = null; + index2++; + span112[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj63.CompletionQuestVariablesFlags = list112; reference78 = obj63; - ref QuestStep reference79 = ref span70[1]; + num2++; + ref QuestStep reference79 = ref span111[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2014495u, new Vector3(528.77075f, 15.6710205f, -2.456726f), 1188); - num3 = 6; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - Span span72 = CollectionsMarshal.AsSpan(list113); - span72[0] = null; - span72[1] = null; - span72[2] = null; - span72[3] = null; - span72[4] = null; - span72[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num4 = 0; + span113[num4] = null; + num4++; + span113[num4] = null; + num4++; + span113[num4] = null; + num4++; + span113[num4] = null; + num4++; + span113[num4] = null; + num4++; + span113[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list113; reference79 = questStep5; - ref QuestStep reference80 = ref span70[2]; + num2++; + ref QuestStep reference80 = ref span111[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2014496u, new Vector3(511.7417f, 12.954895f, -7.522766f), 1188); - num3 = 6; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span73 = CollectionsMarshal.AsSpan(list114); - span73[0] = null; - span73[1] = null; - span73[2] = null; - span73[3] = null; - span73[4] = null; - span73[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list114 = new List(num4); + CollectionsMarshal.SetCount(list114, num4); + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + span114[index2] = null; + index2++; + span114[index2] = null; + index2++; + span114[index2] = null; + index2++; + span114[index2] = null; + index2++; + span114[index2] = null; + index2++; + span114[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list114; reference80 = questStep6; obj62.Steps = list111; reference77 = obj62; - ref QuestSequence reference81 = ref span68[2]; + num++; + ref QuestSequence reference81 = ref span109[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -369543,12 +449519,14 @@ public static class AssemblyQuestLoader num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span74 = CollectionsMarshal.AsSpan(list115); - span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + Span span115 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span115[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span115[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -369561,29 +449539,35 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - CollectionsMarshal.AsSpan(list116)[0] = "liza"; + Span span116 = CollectionsMarshal.AsSpan(list116); + index = 0; + span116[index] = "liza"; questRoot14.Author = list116; - num = 3; - List list117 = new List(num); - CollectionsMarshal.SetCount(list117, num); - Span span75 = CollectionsMarshal.AsSpan(list117); - ref QuestSequence reference82 = ref span75[0]; + index = 3; + List list117 = new List(index); + CollectionsMarshal.SetCount(list117, index); + Span span117 = CollectionsMarshal.AsSpan(list117); + num = 0; + ref QuestSequence reference82 = ref span117[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span76 = CollectionsMarshal.AsSpan(list118); - span76[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span76[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span118[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj65.Steps = list118; reference82 = obj65; - ref QuestSequence reference83 = ref span75[1]; + num++; + ref QuestSequence reference83 = ref span117[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 @@ -369591,108 +449575,144 @@ public static class AssemblyQuestLoader num2 = 3; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span77 = CollectionsMarshal.AsSpan(list119); - ref QuestStep reference84 = ref span77[0]; + Span span119 = CollectionsMarshal.AsSpan(list119); + num3 = 0; + ref QuestStep reference84 = ref span119[num3]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, 2014497u, new Vector3(-130.7851f, 114.39685f, 240.31421f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - CollectionsMarshal.AsSpan(list120)[0] = 18174u; + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num4 = 0; + span120[num4] = 18174u; obj67.KillEnemyDataIds = list120; - num3 = 6; - List> list121 = new List>(num3); - CollectionsMarshal.SetCount(list121, num3); - Span> span78 = CollectionsMarshal.AsSpan(list121); - span78[0] = null; - span78[1] = null; - ref List reference85 = ref span78[2]; - num4 = 1; - List list122 = new List(num4); - CollectionsMarshal.SetCount(list122, num4); - CollectionsMarshal.AsSpan(list122)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list121 = new List>(num4); + CollectionsMarshal.SetCount(list121, num4); + Span> span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = null; + index2++; + span121[index2] = null; + index2++; + ref List reference85 = ref span121[index2]; + index3 = 1; + List list122 = new List(index3); + CollectionsMarshal.SetCount(list122, index3); + Span span122 = CollectionsMarshal.AsSpan(list122); + num5 = 0; + span122[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference85 = list122; - span78[3] = null; - span78[4] = null; - span78[5] = null; + index2++; + span121[index2] = null; + index2++; + span121[index2] = null; + index2++; + span121[index2] = null; obj67.RequiredQuestVariables = list121; reference84 = obj67; - ref QuestStep reference86 = ref span77[1]; + num3++; + ref QuestStep reference86 = ref span119[num3]; QuestStep obj68 = new QuestStep(EInteractionType.Combat, 2014498u, new Vector3(-56.565247f, 111.77234f, 172.62524f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 18174u; + index2 = 1; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num4 = 0; + span123[num4] = 18174u; obj68.KillEnemyDataIds = list123; - num3 = 6; - List> list124 = new List>(num3); - CollectionsMarshal.SetCount(list124, num3); - Span> span79 = CollectionsMarshal.AsSpan(list124); - span79[0] = null; - span79[1] = null; - ref List reference87 = ref span79[2]; - num4 = 1; - List list125 = new List(num4); - CollectionsMarshal.SetCount(list125, num4); - CollectionsMarshal.AsSpan(list125)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list124 = new List>(num4); + CollectionsMarshal.SetCount(list124, num4); + Span> span124 = CollectionsMarshal.AsSpan(list124); + index2 = 0; + span124[index2] = null; + index2++; + span124[index2] = null; + index2++; + ref List reference87 = ref span124[index2]; + num5 = 1; + List list125 = new List(num5); + CollectionsMarshal.SetCount(list125, num5); + Span span125 = CollectionsMarshal.AsSpan(list125); + index3 = 0; + span125[index3] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference87 = list125; - span79[3] = null; - span79[4] = null; - span79[5] = null; + index2++; + span124[index2] = null; + index2++; + span124[index2] = null; + index2++; + span124[index2] = null; obj68.RequiredQuestVariables = list124; reference86 = obj68; - ref QuestStep reference88 = ref span77[2]; + num3++; + ref QuestStep reference88 = ref span119[num3]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, 2014499u, new Vector3(-84.18408f, 111.436646f, 268.05518f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - CollectionsMarshal.AsSpan(list126)[0] = 18174u; + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num4 = 0; + span126[num4] = 18174u; obj69.KillEnemyDataIds = list126; - num3 = 6; - List> list127 = new List>(num3); - CollectionsMarshal.SetCount(list127, num3); - Span> span80 = CollectionsMarshal.AsSpan(list127); - span80[0] = null; - span80[1] = null; - ref List reference89 = ref span80[2]; - num4 = 1; - List list128 = new List(num4); - CollectionsMarshal.SetCount(list128, num4); - CollectionsMarshal.AsSpan(list128)[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list127 = new List>(num4); + CollectionsMarshal.SetCount(list127, num4); + Span> span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = null; + index2++; + span127[index2] = null; + index2++; + ref List reference89 = ref span127[index2]; + index3 = 1; + List list128 = new List(index3); + CollectionsMarshal.SetCount(list128, index3); + Span span128 = CollectionsMarshal.AsSpan(list128); + num5 = 0; + span128[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference89 = list128; - span80[3] = null; - span80[4] = null; - span80[5] = null; + index2++; + span127[index2] = null; + index2++; + span127[index2] = null; + index2++; + span127[index2] = null; obj69.RequiredQuestVariables = list127; reference88 = obj69; obj66.Steps = list119; reference83 = obj66; - ref QuestSequence reference90 = ref span75[2]; + num++; + ref QuestSequence reference90 = ref span117[num]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list129 = new List(num2); - CollectionsMarshal.SetCount(list129, num2); - Span span81 = CollectionsMarshal.AsSpan(list129); - span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list129 = new List(num3); + CollectionsMarshal.SetCount(list129, num3); + Span span129 = CollectionsMarshal.AsSpan(list129); + num2 = 0; + span129[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span129[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -369705,13 +449725,16 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - CollectionsMarshal.AsSpan(list130)[0] = "liza"; + Span span130 = CollectionsMarshal.AsSpan(list130); + index = 0; + span130[index] = "liza"; questRoot15.Author = list130; - num = 4; - List list131 = new List(num); - CollectionsMarshal.SetCount(list131, num); - Span span82 = CollectionsMarshal.AsSpan(list131); - ref QuestSequence reference91 = ref span82[0]; + index = 4; + List list131 = new List(index); + CollectionsMarshal.SetCount(list131, index); + Span span131 = CollectionsMarshal.AsSpan(list131); + num = 0; + ref QuestSequence reference91 = ref span131[num]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -369719,30 +449742,36 @@ public static class AssemblyQuestLoader num2 = 2; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span83 = CollectionsMarshal.AsSpan(list132); - span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span83[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span132 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span132[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span132[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj71.Steps = list132; reference91 = obj71; - ref QuestSequence reference92 = ref span82[1]; + num++; + ref QuestSequence reference92 = ref span131[num]; QuestSequence obj72 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list133 = new List(num2); - CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1052324u, new Vector3(-248.18805f, 110.17465f, 189.01343f), 1188) + num3 = 1; + List list133 = new List(num3); + CollectionsMarshal.SetCount(list133, num3); + Span span133 = CollectionsMarshal.AsSpan(list133); + num2 = 0; + span133[num2] = new QuestStep(EInteractionType.Interact, 1052324u, new Vector3(-248.18805f, 110.17465f, 189.01343f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; obj72.Steps = list133; reference92 = obj72; - ref QuestSequence reference93 = ref span82[2]; + num++; + ref QuestSequence reference93 = ref span131[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 @@ -369750,67 +449779,88 @@ public static class AssemblyQuestLoader num2 = 2; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span84 = CollectionsMarshal.AsSpan(list134); - ref QuestStep reference94 = ref span84[0]; + Span span134 = CollectionsMarshal.AsSpan(list134); + num3 = 0; + ref QuestStep reference94 = ref span134[num3]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 1052326u, new Vector3(-304.61584f, 110.20639f, 725.39856f), 1188) { Fly = true }; - num3 = 6; - List> list135 = new List>(num3); - CollectionsMarshal.SetCount(list135, num3); - Span> span85 = CollectionsMarshal.AsSpan(list135); - span85[0] = null; - ref List reference95 = ref span85[1]; - num4 = 1; - List list136 = new List(num4); - CollectionsMarshal.SetCount(list136, num4); - CollectionsMarshal.AsSpan(list136)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + index2 = 6; + List> list135 = new List>(index2); + CollectionsMarshal.SetCount(list135, index2); + Span> span135 = CollectionsMarshal.AsSpan(list135); + num4 = 0; + span135[num4] = null; + num4++; + ref List reference95 = ref span135[num4]; + num5 = 1; + List list136 = new List(num5); + CollectionsMarshal.SetCount(list136, num5); + Span span136 = CollectionsMarshal.AsSpan(list136); + index3 = 0; + span136[index3] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference95 = list136; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = null; + num4++; + span135[num4] = null; + num4++; + span135[num4] = null; + num4++; + span135[num4] = null; + num4++; + span135[num4] = null; obj74.RequiredQuestVariables = list135; reference94 = obj74; - ref QuestStep reference96 = ref span84[1]; + num3++; + ref QuestStep reference96 = ref span134[num3]; QuestStep obj75 = new QuestStep(EInteractionType.Interact, 1052435u, new Vector3(505.76025f, 115.10293f, 205.7373f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - num3 = 6; - List> list137 = new List>(num3); - CollectionsMarshal.SetCount(list137, num3); - Span> span86 = CollectionsMarshal.AsSpan(list137); - span86[0] = null; - ref List reference97 = ref span86[1]; - num4 = 1; - List list138 = new List(num4); - CollectionsMarshal.SetCount(list138, num4); - CollectionsMarshal.AsSpan(list138)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list137 = new List>(num4); + CollectionsMarshal.SetCount(list137, num4); + Span> span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = null; + index2++; + ref List reference97 = ref span137[index2]; + index3 = 1; + List list138 = new List(index3); + CollectionsMarshal.SetCount(list138, index3); + Span span138 = CollectionsMarshal.AsSpan(list138); + num5 = 0; + span138[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference97 = list138; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = null; + index2++; + span137[index2] = null; + index2++; + span137[index2] = null; + index2++; + span137[index2] = null; + index2++; + span137[index2] = null; obj75.RequiredQuestVariables = list137; reference96 = obj75; obj73.Steps = list134; reference93 = obj73; - ref QuestSequence reference98 = ref span82[3]; + num++; + ref QuestSequence reference98 = ref span131[num]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - Span span87 = CollectionsMarshal.AsSpan(list139); - span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list139 = new List(num3); + CollectionsMarshal.SetCount(list139, num3); + Span span139 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span139[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span87[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span139[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -369823,13 +449873,16 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - CollectionsMarshal.AsSpan(list140)[0] = "liza"; + Span span140 = CollectionsMarshal.AsSpan(list140); + index = 0; + span140[index] = "liza"; questRoot16.Author = list140; - num = 4; - List list141 = new List(num); - CollectionsMarshal.SetCount(list141, num); - Span span88 = CollectionsMarshal.AsSpan(list141); - ref QuestSequence reference99 = ref span88[0]; + index = 4; + List list141 = new List(index); + CollectionsMarshal.SetCount(list141, index); + Span span141 = CollectionsMarshal.AsSpan(list141); + num = 0; + ref QuestSequence reference99 = ref span141[num]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -369837,29 +449890,35 @@ public static class AssemblyQuestLoader num2 = 2; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span89 = CollectionsMarshal.AsSpan(list142); - span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span89[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span142[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span142[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj77.Steps = list142; reference99 = obj77; - ref QuestSequence reference100 = ref span88[1]; + num++; + ref QuestSequence reference100 = ref span141[num]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1051798u, new Vector3(897.734f, 6.8223433f, -285.1759f), 1188) + num3 = 1; + List list143 = new List(num3); + CollectionsMarshal.SetCount(list143, num3); + Span span143 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + span143[num2] = new QuestStep(EInteractionType.Interact, 1051798u, new Vector3(897.734f, 6.8223433f, -285.1759f), 1188) { Fly = true }; obj78.Steps = list143; reference100 = obj78; - ref QuestSequence reference101 = ref span88[2]; + num++; + ref QuestSequence reference101 = ref span141[num]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -369867,92 +449926,122 @@ public static class AssemblyQuestLoader num2 = 3; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span90 = CollectionsMarshal.AsSpan(list144); - ref QuestStep reference102 = ref span90[0]; + Span span144 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + ref QuestStep reference102 = ref span144[num3]; QuestStep obj80 = new QuestStep(EInteractionType.Action, 1052328u, new Vector3(171.6792f, 16.762953f, -112.44379f), 1188) { Fly = true, Action = EAction.BosomBrook }; - num3 = 6; - List> list145 = new List>(num3); - CollectionsMarshal.SetCount(list145, num3); - Span> span91 = CollectionsMarshal.AsSpan(list145); - span91[0] = null; - span91[1] = null; - ref List reference103 = ref span91[2]; - num4 = 1; - List list146 = new List(num4); - CollectionsMarshal.SetCount(list146, num4); - CollectionsMarshal.AsSpan(list146)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + index2 = 6; + List> list145 = new List>(index2); + CollectionsMarshal.SetCount(list145, index2); + Span> span145 = CollectionsMarshal.AsSpan(list145); + num4 = 0; + span145[num4] = null; + num4++; + span145[num4] = null; + num4++; + ref List reference103 = ref span145[num4]; + num5 = 1; + List list146 = new List(num5); + CollectionsMarshal.SetCount(list146, num5); + Span span146 = CollectionsMarshal.AsSpan(list146); + index3 = 0; + span146[index3] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference103 = list146; - span91[3] = null; - span91[4] = null; - span91[5] = null; + num4++; + span145[num4] = null; + num4++; + span145[num4] = null; + num4++; + span145[num4] = null; obj80.RequiredQuestVariables = list145; reference102 = obj80; - ref QuestStep reference104 = ref span90[1]; + num3++; + ref QuestStep reference104 = ref span144[num3]; QuestStep obj81 = new QuestStep(EInteractionType.Action, 1052329u, new Vector3(216.7544f, 16.31888f, -99.687195f), 1188) { Fly = true, Action = EAction.BosomBrook }; - num3 = 6; - List> list147 = new List>(num3); - CollectionsMarshal.SetCount(list147, num3); - Span> span92 = CollectionsMarshal.AsSpan(list147); - span92[0] = null; - span92[1] = null; - ref List reference105 = ref span92[2]; - num4 = 1; - List list148 = new List(num4); - CollectionsMarshal.SetCount(list148, num4); - CollectionsMarshal.AsSpan(list148)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list147 = new List>(num4); + CollectionsMarshal.SetCount(list147, num4); + Span> span147 = CollectionsMarshal.AsSpan(list147); + index2 = 0; + span147[index2] = null; + index2++; + span147[index2] = null; + index2++; + ref List reference105 = ref span147[index2]; + index3 = 1; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + Span span148 = CollectionsMarshal.AsSpan(list148); + num5 = 0; + span148[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference105 = list148; - span92[3] = null; - span92[4] = null; - span92[5] = null; + index2++; + span147[index2] = null; + index2++; + span147[index2] = null; + index2++; + span147[index2] = null; obj81.RequiredQuestVariables = list147; reference104 = obj81; - ref QuestStep reference106 = ref span90[2]; + num3++; + ref QuestStep reference106 = ref span144[num3]; QuestStep obj82 = new QuestStep(EInteractionType.Action, 1052327u, new Vector3(186.38892f, 21.742897f, -74.47931f), 1188) { Fly = true, Action = EAction.BosomBrook }; - num3 = 6; - List> list149 = new List>(num3); - CollectionsMarshal.SetCount(list149, num3); - Span> span93 = CollectionsMarshal.AsSpan(list149); - span93[0] = null; - span93[1] = null; - ref List reference107 = ref span93[2]; - num4 = 1; - List list150 = new List(num4); - CollectionsMarshal.SetCount(list150, num4); - CollectionsMarshal.AsSpan(list150)[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index2 = 6; + List> list149 = new List>(index2); + CollectionsMarshal.SetCount(list149, index2); + Span> span149 = CollectionsMarshal.AsSpan(list149); + num4 = 0; + span149[num4] = null; + num4++; + span149[num4] = null; + num4++; + ref List reference107 = ref span149[num4]; + num5 = 1; + List list150 = new List(num5); + CollectionsMarshal.SetCount(list150, num5); + Span span150 = CollectionsMarshal.AsSpan(list150); + index3 = 0; + span150[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference107 = list150; - span93[3] = null; - span93[4] = null; - span93[5] = null; + num4++; + span149[num4] = null; + num4++; + span149[num4] = null; + num4++; + span149[num4] = null; obj82.RequiredQuestVariables = list149; reference106 = obj82; obj79.Steps = list144; reference101 = obj79; - ref QuestSequence reference108 = ref span88[3]; + num++; + ref QuestSequence reference108 = ref span141[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - Span span94 = CollectionsMarshal.AsSpan(list151); - span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list151 = new List(num3); + CollectionsMarshal.SetCount(list151, num3); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + span151[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span94[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span151[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -369965,13 +450054,16 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - CollectionsMarshal.AsSpan(list152)[0] = "liza"; + Span span152 = CollectionsMarshal.AsSpan(list152); + index = 0; + span152[index] = "liza"; questRoot17.Author = list152; - num = 3; - List list153 = new List(num); - CollectionsMarshal.SetCount(list153, num); - Span span95 = CollectionsMarshal.AsSpan(list153); - ref QuestSequence reference109 = ref span95[0]; + index = 3; + List list153 = new List(index); + CollectionsMarshal.SetCount(list153, index); + Span span153 = CollectionsMarshal.AsSpan(list153); + num = 0; + ref QuestSequence reference109 = ref span153[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -369979,111 +450071,148 @@ public static class AssemblyQuestLoader num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span96 = CollectionsMarshal.AsSpan(list154); - span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span96[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span154 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span154[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span154[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj84.Steps = list154; reference109 = obj84; - ref QuestSequence reference110 = ref span95[1]; + num++; + ref QuestSequence reference110 = ref span153[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - Span span97 = CollectionsMarshal.AsSpan(list155); - ref QuestStep reference111 = ref span97[0]; + num3 = 3; + List list155 = new List(num3); + CollectionsMarshal.SetCount(list155, num3); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + ref QuestStep reference111 = ref span155[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, 2014500u, new Vector3(-217.15118f, 109.57495f, 562.005f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - CollectionsMarshal.AsSpan(list156)[0] = 18175u; - obj86.KillEnemyDataIds = list156; - num3 = 6; - List> list157 = new List>(num3); - CollectionsMarshal.SetCount(list157, num3); - Span> span98 = CollectionsMarshal.AsSpan(list157); - span98[0] = null; - span98[1] = null; - ref List reference112 = ref span98[2]; num4 = 1; - List list158 = new List(num4); - CollectionsMarshal.SetCount(list158, num4); - CollectionsMarshal.AsSpan(list158)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + List list156 = new List(num4); + CollectionsMarshal.SetCount(list156, num4); + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = 18175u; + obj86.KillEnemyDataIds = list156; + index2 = 6; + List> list157 = new List>(index2); + CollectionsMarshal.SetCount(list157, index2); + Span> span157 = CollectionsMarshal.AsSpan(list157); + num4 = 0; + span157[num4] = null; + num4++; + span157[num4] = null; + num4++; + ref List reference112 = ref span157[num4]; + index3 = 1; + List list158 = new List(index3); + CollectionsMarshal.SetCount(list158, index3); + Span span158 = CollectionsMarshal.AsSpan(list158); + num5 = 0; + span158[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference112 = list158; - span98[3] = null; - span98[4] = null; - span98[5] = null; + num4++; + span157[num4] = null; + num4++; + span157[num4] = null; + num4++; + span157[num4] = null; obj86.RequiredQuestVariables = list157; reference111 = obj86; - ref QuestStep reference113 = ref span97[1]; + num2++; + ref QuestStep reference113 = ref span155[num2]; QuestStep obj87 = new QuestStep(EInteractionType.Combat, 2014501u, new Vector3(-171.95392f, 109.57495f, 652.09424f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - CollectionsMarshal.AsSpan(list159)[0] = 18175u; - obj87.KillEnemyDataIds = list159; - num3 = 6; - List> list160 = new List>(num3); - CollectionsMarshal.SetCount(list160, num3); - Span> span99 = CollectionsMarshal.AsSpan(list160); - span99[0] = null; - span99[1] = null; - ref List reference114 = ref span99[2]; num4 = 1; - List list161 = new List(num4); - CollectionsMarshal.SetCount(list161, num4); - CollectionsMarshal.AsSpan(list161)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + List list159 = new List(num4); + CollectionsMarshal.SetCount(list159, num4); + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = 18175u; + obj87.KillEnemyDataIds = list159; + index2 = 6; + List> list160 = new List>(index2); + CollectionsMarshal.SetCount(list160, index2); + Span> span160 = CollectionsMarshal.AsSpan(list160); + num4 = 0; + span160[num4] = null; + num4++; + span160[num4] = null; + num4++; + ref List reference114 = ref span160[num4]; + num5 = 1; + List list161 = new List(num5); + CollectionsMarshal.SetCount(list161, num5); + Span span161 = CollectionsMarshal.AsSpan(list161); + index3 = 0; + span161[index3] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference114 = list161; - span99[3] = null; - span99[4] = null; - span99[5] = null; + num4++; + span160[num4] = null; + num4++; + span160[num4] = null; + num4++; + span160[num4] = null; obj87.RequiredQuestVariables = list160; reference113 = obj87; - ref QuestStep reference115 = ref span97[2]; + num2++; + ref QuestStep reference115 = ref span155[num2]; QuestStep obj88 = new QuestStep(EInteractionType.Combat, 2014502u, new Vector3(-126.756714f, 109.57495f, 765.68225f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - CollectionsMarshal.AsSpan(list162)[0] = 18175u; - obj88.KillEnemyDataIds = list162; - num3 = 6; - List> list163 = new List>(num3); - CollectionsMarshal.SetCount(list163, num3); - Span> span100 = CollectionsMarshal.AsSpan(list163); - span100[0] = null; - span100[1] = null; - ref List reference116 = ref span100[2]; num4 = 1; - List list164 = new List(num4); - CollectionsMarshal.SetCount(list164, num4); - CollectionsMarshal.AsSpan(list164)[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + List list162 = new List(num4); + CollectionsMarshal.SetCount(list162, num4); + Span span162 = CollectionsMarshal.AsSpan(list162); + index2 = 0; + span162[index2] = 18175u; + obj88.KillEnemyDataIds = list162; + index2 = 6; + List> list163 = new List>(index2); + CollectionsMarshal.SetCount(list163, index2); + Span> span163 = CollectionsMarshal.AsSpan(list163); + num4 = 0; + span163[num4] = null; + num4++; + span163[num4] = null; + num4++; + ref List reference116 = ref span163[num4]; + index3 = 1; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + Span span164 = CollectionsMarshal.AsSpan(list164); + num5 = 0; + span164[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference116 = list164; - span100[3] = null; - span100[4] = null; - span100[5] = null; + num4++; + span163[num4] = null; + num4++; + span163[num4] = null; + num4++; + span163[num4] = null; obj88.RequiredQuestVariables = list163; reference115 = obj88; obj85.Steps = list155; reference110 = obj85; - ref QuestSequence reference117 = ref span95[2]; + num++; + ref QuestSequence reference117 = ref span153[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue @@ -370091,12 +450220,14 @@ public static class AssemblyQuestLoader num2 = 2; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span101 = CollectionsMarshal.AsSpan(list165); - span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + Span span165 = CollectionsMarshal.AsSpan(list165); + num3 = 0; + span165[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span101[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span165[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -370109,29 +450240,35 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "liza"; + Span span166 = CollectionsMarshal.AsSpan(list166); + index = 0; + span166[index] = "liza"; questRoot18.Author = list166; - num = 3; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - Span span102 = CollectionsMarshal.AsSpan(list167); - ref QuestSequence reference118 = ref span102[0]; + index = 3; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + Span span167 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference118 = ref span167[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list168 = new List(num2); - CollectionsMarshal.SetCount(list168, num2); - Span span103 = CollectionsMarshal.AsSpan(list168); - span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span103[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list168 = new List(num3); + CollectionsMarshal.SetCount(list168, num3); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + span168[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span168[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj90.Steps = list168; reference118 = obj90; - ref QuestSequence reference119 = ref span102[1]; + num++; + ref QuestSequence reference119 = ref span167[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 @@ -370139,27 +450276,32 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1048848u, new Vector3(621.51514f, 119.49004f, 175.00574f), 1188) + Span span169 = CollectionsMarshal.AsSpan(list169); + num3 = 0; + span169[num3] = new QuestStep(EInteractionType.Interact, 1048848u, new Vector3(621.51514f, 119.49004f, 175.00574f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj91.Steps = list169; reference119 = obj91; - ref QuestSequence reference120 = ref span102[2]; + num++; + ref QuestSequence reference120 = ref span167[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - Span span104 = CollectionsMarshal.AsSpan(list170); - span104[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list170 = new List(num3); + CollectionsMarshal.SetCount(list170, num3); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span104[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span170[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -370172,13 +450314,16 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "liza"; + Span span171 = CollectionsMarshal.AsSpan(list171); + index = 0; + span171[index] = "liza"; questRoot19.Author = list171; - num = 4; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span105 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference121 = ref span105[0]; + index = 4; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + Span span172 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference121 = ref span172[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -370186,24 +450331,28 @@ public static class AssemblyQuestLoader num2 = 2; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span106 = CollectionsMarshal.AsSpan(list173); - span106[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span106[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span173 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span173[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span173[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj93.Steps = list173; reference121 = obj93; - ref QuestSequence reference122 = ref span105[1]; + num++; + ref QuestSequence reference122 = ref span172[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - Span span107 = CollectionsMarshal.AsSpan(list174); - span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(971.48047f, 7.1923084f, -254.86214f), 1188) + num3 = 2; + List list174 = new List(num3); + CollectionsMarshal.SetCount(list174, num3); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(971.48047f, 7.1923084f, -254.86214f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -370220,10 +450369,12 @@ public static class AssemblyQuestLoader } } }; - span107[1] = new QuestStep(EInteractionType.Interact, 1052331u, new Vector3(973.84595f, 7.192305f, -254.87152f), 1188); + num2++; + span174[num2] = new QuestStep(EInteractionType.Interact, 1052331u, new Vector3(973.84595f, 7.192305f, -254.87152f), 1188); obj94.Steps = list174; reference122 = obj94; - ref QuestSequence reference123 = ref span105[2]; + num++; + ref QuestSequence reference123 = ref span172[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 @@ -370231,26 +450382,31 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1052332u, new Vector3(978.027f, 7.1869507f, -257.3739f), 1188) + Span span175 = CollectionsMarshal.AsSpan(list175); + num3 = 0; + span175[num3] = new QuestStep(EInteractionType.Interact, 1052332u, new Vector3(978.027f, 7.1869507f, -257.3739f), 1188) { StopDistance = 8f }; obj95.Steps = list175; reference123 = obj95; - ref QuestSequence reference124 = ref span105[3]; + num++; + ref QuestSequence reference124 = ref span172[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list176 = new List(num2); - CollectionsMarshal.SetCount(list176, num2); - Span span108 = CollectionsMarshal.AsSpan(list176); - span108[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list176 = new List(num3); + CollectionsMarshal.SetCount(list176, num3); + Span span176 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + span176[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span108[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span176[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -370263,13 +450419,16 @@ public static class AssemblyQuestLoader num = 1; List list177 = new List(num); CollectionsMarshal.SetCount(list177, num); - CollectionsMarshal.AsSpan(list177)[0] = "liza"; + Span span177 = CollectionsMarshal.AsSpan(list177); + index = 0; + span177[index] = "liza"; questRoot20.Author = list177; - num = 4; - List list178 = new List(num); - CollectionsMarshal.SetCount(list178, num); - Span span109 = CollectionsMarshal.AsSpan(list178); - ref QuestSequence reference125 = ref span109[0]; + index = 4; + List list178 = new List(index); + CollectionsMarshal.SetCount(list178, index); + Span span178 = CollectionsMarshal.AsSpan(list178); + num = 0; + ref QuestSequence reference125 = ref span178[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -370277,77 +450436,102 @@ public static class AssemblyQuestLoader num2 = 2; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span110 = CollectionsMarshal.AsSpan(list179); - span110[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span110[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span179 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span179[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span179[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj97.Steps = list179; reference125 = obj97; - ref QuestSequence reference126 = ref span109[1]; + num++; + ref QuestSequence reference126 = ref span178[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - Span span111 = CollectionsMarshal.AsSpan(list180); - ref QuestStep reference127 = ref span111[0]; + num3 = 3; + List list180 = new List(num3); + CollectionsMarshal.SetCount(list180, num3); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + ref QuestStep reference127 = ref span180[num2]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 1052333u, new Vector3(775.1736f, 12.871736f, -196.0022f), 1188) { Fly = true }; - num3 = 6; - List list181 = new List(num3); - CollectionsMarshal.SetCount(list181, num3); - Span span112 = CollectionsMarshal.AsSpan(list181); - span112[0] = null; - span112[1] = null; - span112[2] = null; - span112[3] = null; - span112[4] = null; - span112[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list181 = new List(num4); + CollectionsMarshal.SetCount(list181, num4); + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span181[index2] = null; + index2++; + span181[index2] = null; + index2++; + span181[index2] = null; + index2++; + span181[index2] = null; + index2++; + span181[index2] = null; + index2++; + span181[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj99.CompletionQuestVariablesFlags = list181; reference127 = obj99; - ref QuestStep reference128 = ref span111[1]; + num2++; + ref QuestStep reference128 = ref span180[num2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1052335u, new Vector3(867.76526f, 14.402381f, -171.31305f), 1188) { Fly = true }; - num3 = 6; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - Span span113 = CollectionsMarshal.AsSpan(list182); - span113[0] = null; - span113[1] = null; - span113[2] = null; - span113[3] = null; - span113[4] = null; - span113[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num4 = 0; + span182[num4] = null; + num4++; + span182[num4] = null; + num4++; + span182[num4] = null; + num4++; + span182[num4] = null; + num4++; + span182[num4] = null; + num4++; + span182[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj100.CompletionQuestVariablesFlags = list182; reference128 = obj100; - ref QuestStep reference129 = ref span111[2]; + num2++; + ref QuestStep reference129 = ref span180[num2]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 1052334u, new Vector3(864.5609f, 15.056413f, -256.27533f), 1188) { Fly = true }; - num3 = 6; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - Span span114 = CollectionsMarshal.AsSpan(list183); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list183 = new List(num4); + CollectionsMarshal.SetCount(list183, num4); + Span span183 = CollectionsMarshal.AsSpan(list183); + index2 = 0; + span183[index2] = null; + index2++; + span183[index2] = null; + index2++; + span183[index2] = null; + index2++; + span183[index2] = null; + index2++; + span183[index2] = null; + index2++; + span183[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj101.CompletionQuestVariablesFlags = list183; reference129 = obj101; obj98.Steps = list180; reference126 = obj98; - ref QuestSequence reference130 = ref span109[2]; + num++; + ref QuestSequence reference130 = ref span178[num]; QuestSequence obj102 = new QuestSequence { Sequence = 2 @@ -370355,26 +450539,31 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1052336u, new Vector3(838.4375f, 14.301746f, -222.06458f), 1188) + Span span184 = CollectionsMarshal.AsSpan(list184); + num3 = 0; + span184[num3] = new QuestStep(EInteractionType.Interact, 1052336u, new Vector3(838.4375f, 14.301746f, -222.06458f), 1188) { Fly = true }; obj102.Steps = list184; reference130 = obj102; - ref QuestSequence reference131 = ref span109[3]; + num++; + ref QuestSequence reference131 = ref span178[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list185 = new List(num2); - CollectionsMarshal.SetCount(list185, num2); - Span span115 = CollectionsMarshal.AsSpan(list185); - span115[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + Span span185 = CollectionsMarshal.AsSpan(list185); + num2 = 0; + span185[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { Fly = true }; - span115[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span185[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -370387,13 +450576,16 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - CollectionsMarshal.AsSpan(list186)[0] = "liza"; + Span span186 = CollectionsMarshal.AsSpan(list186); + index = 0; + span186[index] = "liza"; questRoot21.Author = list186; - num = 4; - List list187 = new List(num); - CollectionsMarshal.SetCount(list187, num); - Span span116 = CollectionsMarshal.AsSpan(list187); - ref QuestSequence reference132 = ref span116[0]; + index = 4; + List list187 = new List(index); + CollectionsMarshal.SetCount(list187, index); + Span span187 = CollectionsMarshal.AsSpan(list187); + num = 0; + ref QuestSequence reference132 = ref span187[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -370401,24 +450593,28 @@ public static class AssemblyQuestLoader num2 = 2; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span117 = CollectionsMarshal.AsSpan(list188); - span117[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span117[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span188 = CollectionsMarshal.AsSpan(list188); + num3 = 0; + span188[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span188[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj104.Steps = list188; reference132 = obj104; - ref QuestSequence reference133 = ref span116[1]; + num++; + ref QuestSequence reference133 = ref span187[num]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - Span span118 = CollectionsMarshal.AsSpan(list189); - ref QuestStep reference134 = ref span118[0]; + num3 = 3; + List list189 = new List(num3); + CollectionsMarshal.SetCount(list189, num3); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + ref QuestStep reference134 = ref span189[num2]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, 2014504u, new Vector3(-232.22711f, 120.25635f, 26.199707f), 1188) { Fly = true, @@ -370426,89 +450622,122 @@ public static class AssemblyQuestLoader ItemId = 2003727u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - CollectionsMarshal.AsSpan(list190)[0] = 18176u; + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span190 = CollectionsMarshal.AsSpan(list190); + num4 = 0; + span190[num4] = 18176u; obj106.KillEnemyDataIds = list190; - num3 = 6; - List> list191 = new List>(num3); - CollectionsMarshal.SetCount(list191, num3); - Span> span119 = CollectionsMarshal.AsSpan(list191); - span119[0] = null; - span119[1] = null; - span119[2] = null; - ref List reference135 = ref span119[3]; - num4 = 1; - List list192 = new List(num4); - CollectionsMarshal.SetCount(list192, num4); - CollectionsMarshal.AsSpan(list192)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list191 = new List>(num4); + CollectionsMarshal.SetCount(list191, num4); + Span> span191 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span191[index2] = null; + index2++; + span191[index2] = null; + index2++; + span191[index2] = null; + index2++; + ref List reference135 = ref span191[index2]; + num5 = 1; + List list192 = new List(num5); + CollectionsMarshal.SetCount(list192, num5); + Span span192 = CollectionsMarshal.AsSpan(list192); + index3 = 0; + span192[index3] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference135 = list192; - span119[4] = null; - span119[5] = null; + index2++; + span191[index2] = null; + index2++; + span191[index2] = null; obj106.RequiredQuestVariables = list191; reference134 = obj106; - ref QuestStep reference136 = ref span118[1]; + num2++; + ref QuestStep reference136 = ref span189[num2]; QuestStep obj107 = new QuestStep(EInteractionType.Combat, 2014503u, new Vector3(-134.29468f, 120.62256f, 41.000854f), 1188) { Fly = true, ItemId = 2003727u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - CollectionsMarshal.AsSpan(list193)[0] = 18176u; + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num4 = 0; + span193[num4] = 18176u; obj107.KillEnemyDataIds = list193; - num3 = 6; - List> list194 = new List>(num3); - CollectionsMarshal.SetCount(list194, num3); - Span> span120 = CollectionsMarshal.AsSpan(list194); - span120[0] = null; - span120[1] = null; - span120[2] = null; - ref List reference137 = ref span120[3]; - num4 = 1; - List list195 = new List(num4); - CollectionsMarshal.SetCount(list195, num4); - CollectionsMarshal.AsSpan(list195)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list194 = new List>(num4); + CollectionsMarshal.SetCount(list194, num4); + Span> span194 = CollectionsMarshal.AsSpan(list194); + index2 = 0; + span194[index2] = null; + index2++; + span194[index2] = null; + index2++; + span194[index2] = null; + index2++; + ref List reference137 = ref span194[index2]; + index3 = 1; + List list195 = new List(index3); + CollectionsMarshal.SetCount(list195, index3); + Span span195 = CollectionsMarshal.AsSpan(list195); + num5 = 0; + span195[num5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference137 = list195; - span120[4] = null; - span120[5] = null; + index2++; + span194[index2] = null; + index2++; + span194[index2] = null; obj107.RequiredQuestVariables = list194; reference136 = obj107; - ref QuestStep reference138 = ref span118[2]; + num2++; + ref QuestStep reference138 = ref span189[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2014505u, new Vector3(-292.28656f, 119.46289f, 17.959839f), 1188) { Fly = true, ItemId = 2003727u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num3 = 1; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = 18176u; + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num4 = 0; + span196[num4] = 18176u; obj108.KillEnemyDataIds = list196; - num3 = 6; - List> list197 = new List>(num3); - CollectionsMarshal.SetCount(list197, num3); - Span> span121 = CollectionsMarshal.AsSpan(list197); - span121[0] = null; - span121[1] = null; - span121[2] = null; - ref List reference139 = ref span121[3]; - num4 = 1; - List list198 = new List(num4); - CollectionsMarshal.SetCount(list198, num4); - CollectionsMarshal.AsSpan(list198)[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + num4 = 6; + List> list197 = new List>(num4); + CollectionsMarshal.SetCount(list197, num4); + Span> span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = null; + index2++; + span197[index2] = null; + index2++; + span197[index2] = null; + index2++; + ref List reference139 = ref span197[index2]; + num5 = 1; + List list198 = new List(num5); + CollectionsMarshal.SetCount(list198, num5); + Span span198 = CollectionsMarshal.AsSpan(list198); + index3 = 0; + span198[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference139 = list198; - span121[4] = null; - span121[5] = null; + index2++; + span197[index2] = null; + index2++; + span197[index2] = null; obj108.RequiredQuestVariables = list197; reference138 = obj108; obj105.Steps = list189; reference133 = obj105; - ref QuestSequence reference140 = ref span116[2]; + num++; + ref QuestSequence reference140 = ref span187[num]; QuestSequence obj109 = new QuestSequence { Sequence = 2 @@ -370516,27 +450745,31 @@ public static class AssemblyQuestLoader num2 = 2; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span122 = CollectionsMarshal.AsSpan(list199); - span122[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188) + Span span199 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span199[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span122[1] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) + num3++; + span199[num3] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) { StopDistance = 7f }; obj109.Steps = list199; reference140 = obj109; - ref QuestSequence reference141 = ref span116[3]; + num++; + ref QuestSequence reference141 = ref span187[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - Span span123 = CollectionsMarshal.AsSpan(list200); - span123[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list200 = new List(num3); + CollectionsMarshal.SetCount(list200, num3); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, SkipConditions = new SkipConditions @@ -370552,7 +450785,8 @@ public static class AssemblyQuestLoader } } }; - span123[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span200[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -370565,13 +450799,16 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - CollectionsMarshal.AsSpan(list201)[0] = "liza"; + Span span201 = CollectionsMarshal.AsSpan(list201); + index = 0; + span201[index] = "liza"; questRoot22.Author = list201; - num = 3; - List list202 = new List(num); - CollectionsMarshal.SetCount(list202, num); - Span span124 = CollectionsMarshal.AsSpan(list202); - ref QuestSequence reference142 = ref span124[0]; + index = 3; + List list202 = new List(index); + CollectionsMarshal.SetCount(list202, index); + Span span202 = CollectionsMarshal.AsSpan(list202); + num = 0; + ref QuestSequence reference142 = ref span202[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -370579,39 +450816,46 @@ public static class AssemblyQuestLoader num2 = 2; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span125 = CollectionsMarshal.AsSpan(list203); - span125[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span125[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span203 = CollectionsMarshal.AsSpan(list203); + num3 = 0; + span203[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span203[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj111.Steps = list203; reference142 = obj111; - ref QuestSequence reference143 = ref span124[1]; + num++; + ref QuestSequence reference143 = ref span202[num]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list204)[0]; + num3 = 1; + List list204 = new List(num3); + CollectionsMarshal.SetCount(list204, num3); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + ref QuestStep reference144 = ref span204[num2]; QuestStep obj113 = new QuestStep(EInteractionType.Interact, 1052337u, new Vector3(479.14844f, 113.54922f, 175.37183f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - num3 = 2; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - Span span126 = CollectionsMarshal.AsSpan(list205); - span126[0] = new DialogueChoice + index2 = 2; + List list205 = new List(index2); + CollectionsMarshal.SetCount(list205, index2); + Span span205 = CollectionsMarshal.AsSpan(list205); + num4 = 0; + span205[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL123_05221_Q1_000_000"), Answer = new ExcelRef("TEXT_BANPEL123_05221_A1_000_003") }; - span126[1] = new DialogueChoice + num4++; + span205[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL123_05221_Q2_000_000"), @@ -370621,7 +450865,8 @@ public static class AssemblyQuestLoader reference144 = obj113; obj112.Steps = list204; reference143 = obj112; - ref QuestSequence reference145 = ref span124[2]; + num++; + ref QuestSequence reference145 = ref span202[num]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue @@ -370629,12 +450874,14 @@ public static class AssemblyQuestLoader num2 = 2; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span127 = CollectionsMarshal.AsSpan(list206); - span127[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + Span span206 = CollectionsMarshal.AsSpan(list206); + num3 = 0; + span206[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span127[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3++; + span206[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -370647,29 +450894,35 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "liza"; + Span span207 = CollectionsMarshal.AsSpan(list207); + index = 0; + span207[index] = "liza"; questRoot23.Author = list207; - num = 5; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span128 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference146 = ref span128[0]; + index = 5; + List list208 = new List(index); + CollectionsMarshal.SetCount(list208, index); + Span span208 = CollectionsMarshal.AsSpan(list208); + num = 0; + ref QuestSequence reference146 = ref span208[num]; QuestSequence obj115 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span129 = CollectionsMarshal.AsSpan(list209); - span129[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span129[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num3 = 2; + List list209 = new List(num3); + CollectionsMarshal.SetCount(list209, num3); + Span span209 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span209[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num2++; + span209[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj115.Steps = list209; reference146 = obj115; - ref QuestSequence reference147 = ref span128[1]; + num++; + ref QuestSequence reference147 = ref span208[num]; QuestSequence obj116 = new QuestSequence { Sequence = 1 @@ -370677,7 +450930,9 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1052339u, new Vector3(910.3379f, 10.1397f, -381.36877f), 1188) + Span span210 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span210[num3] = new QuestStep(EInteractionType.Interact, 1052339u, new Vector3(910.3379f, 10.1397f, -381.36877f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -370696,18 +450951,22 @@ public static class AssemblyQuestLoader }; obj116.Steps = list210; reference147 = obj116; - ref QuestSequence reference148 = ref span128[2]; + num++; + ref QuestSequence reference148 = ref span208[num]; QuestSequence obj117 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 2014506u, new Vector3(910.3379f, 10.421875f, -379.01886f), 1188); + num3 = 1; + List list211 = new List(num3); + CollectionsMarshal.SetCount(list211, num3); + Span span211 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + span211[num2] = new QuestStep(EInteractionType.Interact, 2014506u, new Vector3(910.3379f, 10.421875f, -379.01886f), 1188); obj117.Steps = list211; reference148 = obj117; - ref QuestSequence reference149 = ref span128[3]; + num++; + ref QuestSequence reference149 = ref span208[num]; QuestSequence obj118 = new QuestSequence { Sequence = 3 @@ -370715,19 +450974,23 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1052340u, new Vector3(789.9137f, 14.354868f, -215.77783f), 1188); + Span span212 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span212[num3] = new QuestStep(EInteractionType.Interact, 1052340u, new Vector3(789.9137f, 14.354868f, -215.77783f), 1188); obj118.Steps = list212; reference149 = obj118; - ref QuestSequence reference150 = ref span128[4]; + num++; + ref QuestSequence reference150 = ref span208[num]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - Span span130 = CollectionsMarshal.AsSpan(list213); - span130[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list213 = new List(num3); + CollectionsMarshal.SetCount(list213, num3); + Span span213 = CollectionsMarshal.AsSpan(list213); + num2 = 0; + span213[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, SkipConditions = new SkipConditions @@ -370743,7 +451006,8 @@ public static class AssemblyQuestLoader } } }; - span130[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span213[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -370756,13 +451020,16 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - CollectionsMarshal.AsSpan(list214)[0] = "liza"; + Span span214 = CollectionsMarshal.AsSpan(list214); + index = 0; + span214[index] = "liza"; questRoot24.Author = list214; - num = 4; - List list215 = new List(num); - CollectionsMarshal.SetCount(list215, num); - Span span131 = CollectionsMarshal.AsSpan(list215); - ref QuestSequence reference151 = ref span131[0]; + index = 4; + List list215 = new List(index); + CollectionsMarshal.SetCount(list215, index); + Span span215 = CollectionsMarshal.AsSpan(list215); + num = 0; + ref QuestSequence reference151 = ref span215[num]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -370770,24 +451037,28 @@ public static class AssemblyQuestLoader num2 = 2; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span132 = CollectionsMarshal.AsSpan(list216); - span132[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span132[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span216 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span216[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span216[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj120.Steps = list216; reference151 = obj120; - ref QuestSequence reference152 = ref span131[1]; + num++; + ref QuestSequence reference152 = ref span215[num]; QuestSequence obj121 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - Span span133 = CollectionsMarshal.AsSpan(list217); - span133[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188) + num3 = 2; + List list217 = new List(num3); + CollectionsMarshal.SetCount(list217, num3); + Span span217 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + span217[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, SkipConditions = new SkipConditions @@ -370803,13 +451074,15 @@ public static class AssemblyQuestLoader } } }; - span133[1] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) + num2++; + span217[num2] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) { StopDistance = 7f }; obj121.Steps = list217; reference152 = obj121; - ref QuestSequence reference153 = ref span131[2]; + num++; + ref QuestSequence reference153 = ref span215[num]; QuestSequence obj122 = new QuestSequence { Sequence = 2 @@ -370817,27 +451090,32 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1052341u, new Vector3(239.49023f, 111.689354f, 699.3667f), 1188) + Span span218 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span218[num3] = new QuestStep(EInteractionType.Interact, 1052341u, new Vector3(239.49023f, 111.689354f, 699.3667f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj122.Steps = list218; reference153 = obj122; - ref QuestSequence reference154 = ref span131[3]; + num++; + ref QuestSequence reference154 = ref span215[num]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - Span span134 = CollectionsMarshal.AsSpan(list219); - span134[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list219 = new List(num3); + CollectionsMarshal.SetCount(list219, num3); + Span span219 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span219[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span134[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span219[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -370850,13 +451128,16 @@ public static class AssemblyQuestLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - CollectionsMarshal.AsSpan(list220)[0] = "liza"; + Span span220 = CollectionsMarshal.AsSpan(list220); + index = 0; + span220[index] = "liza"; questRoot25.Author = list220; - num = 4; - List list221 = new List(num); - CollectionsMarshal.SetCount(list221, num); - Span span135 = CollectionsMarshal.AsSpan(list221); - ref QuestSequence reference155 = ref span135[0]; + index = 4; + List list221 = new List(index); + CollectionsMarshal.SetCount(list221, index); + Span span221 = CollectionsMarshal.AsSpan(list221); + num = 0; + ref QuestSequence reference155 = ref span221[num]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -370864,111 +451145,148 @@ public static class AssemblyQuestLoader num2 = 2; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span136 = CollectionsMarshal.AsSpan(list222); - span136[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span136[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span222 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span222[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span222[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj124.Steps = list222; reference155 = obj124; - ref QuestSequence reference156 = ref span135[1]; + num++; + ref QuestSequence reference156 = ref span221[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list223 = new List(num2); - CollectionsMarshal.SetCount(list223, num2); - Span span137 = CollectionsMarshal.AsSpan(list223); - ref QuestStep reference157 = ref span137[0]; + num3 = 3; + List list223 = new List(num3); + CollectionsMarshal.SetCount(list223, num3); + Span span223 = CollectionsMarshal.AsSpan(list223); + num2 = 0; + ref QuestStep reference157 = ref span223[num2]; QuestStep obj126 = new QuestStep(EInteractionType.Combat, 2014508u, new Vector3(566.1554f, 123.552246f, 700.4043f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = 18177u; - obj126.KillEnemyDataIds = list224; - num3 = 6; - List> list225 = new List>(num3); - CollectionsMarshal.SetCount(list225, num3); - Span> span138 = CollectionsMarshal.AsSpan(list225); - span138[0] = null; - span138[1] = null; - ref List reference158 = ref span138[2]; num4 = 1; - List list226 = new List(num4); - CollectionsMarshal.SetCount(list226, num4); - CollectionsMarshal.AsSpan(list226)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + List list224 = new List(num4); + CollectionsMarshal.SetCount(list224, num4); + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = 18177u; + obj126.KillEnemyDataIds = list224; + index2 = 6; + List> list225 = new List>(index2); + CollectionsMarshal.SetCount(list225, index2); + Span> span225 = CollectionsMarshal.AsSpan(list225); + num4 = 0; + span225[num4] = null; + num4++; + span225[num4] = null; + num4++; + ref List reference158 = ref span225[num4]; + index3 = 1; + List list226 = new List(index3); + CollectionsMarshal.SetCount(list226, index3); + Span span226 = CollectionsMarshal.AsSpan(list226); + num5 = 0; + span226[num5] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference158 = list226; - span138[3] = null; - span138[4] = null; - span138[5] = null; + num4++; + span225[num4] = null; + num4++; + span225[num4] = null; + num4++; + span225[num4] = null; obj126.RequiredQuestVariables = list225; reference157 = obj126; - ref QuestStep reference159 = ref span137[1]; + num2++; + ref QuestStep reference159 = ref span223[num2]; QuestStep obj127 = new QuestStep(EInteractionType.Combat, 2014509u, new Vector3(557.94604f, 124.65088f, 778.56104f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = 18177u; - obj127.KillEnemyDataIds = list227; - num3 = 6; - List> list228 = new List>(num3); - CollectionsMarshal.SetCount(list228, num3); - Span> span139 = CollectionsMarshal.AsSpan(list228); - span139[0] = null; - span139[1] = null; - ref List reference160 = ref span139[2]; num4 = 1; - List list229 = new List(num4); - CollectionsMarshal.SetCount(list229, num4); - CollectionsMarshal.AsSpan(list229)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + List list227 = new List(num4); + CollectionsMarshal.SetCount(list227, num4); + Span span227 = CollectionsMarshal.AsSpan(list227); + index2 = 0; + span227[index2] = 18177u; + obj127.KillEnemyDataIds = list227; + index2 = 6; + List> list228 = new List>(index2); + CollectionsMarshal.SetCount(list228, index2); + Span> span228 = CollectionsMarshal.AsSpan(list228); + num4 = 0; + span228[num4] = null; + num4++; + span228[num4] = null; + num4++; + ref List reference160 = ref span228[num4]; + num5 = 1; + List list229 = new List(num5); + CollectionsMarshal.SetCount(list229, num5); + Span span229 = CollectionsMarshal.AsSpan(list229); + index3 = 0; + span229[index3] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference160 = list229; - span139[3] = null; - span139[4] = null; - span139[5] = null; + num4++; + span228[num4] = null; + num4++; + span228[num4] = null; + num4++; + span228[num4] = null; obj127.RequiredQuestVariables = list228; reference159 = obj127; - ref QuestStep reference161 = ref span137[2]; + num2++; + ref QuestStep reference161 = ref span223[num2]; QuestStep obj128 = new QuestStep(EInteractionType.Combat, 2014507u, new Vector3(721.8584f, 123.09448f, 729.9762f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num3 = 1; - List list230 = new List(num3); - CollectionsMarshal.SetCount(list230, num3); - CollectionsMarshal.AsSpan(list230)[0] = 18177u; - obj128.KillEnemyDataIds = list230; - num3 = 6; - List> list231 = new List>(num3); - CollectionsMarshal.SetCount(list231, num3); - Span> span140 = CollectionsMarshal.AsSpan(list231); - span140[0] = null; - span140[1] = null; - ref List reference162 = ref span140[2]; num4 = 1; - List list232 = new List(num4); - CollectionsMarshal.SetCount(list232, num4); - CollectionsMarshal.AsSpan(list232)[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + List list230 = new List(num4); + CollectionsMarshal.SetCount(list230, num4); + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + span230[index2] = 18177u; + obj128.KillEnemyDataIds = list230; + index2 = 6; + List> list231 = new List>(index2); + CollectionsMarshal.SetCount(list231, index2); + Span> span231 = CollectionsMarshal.AsSpan(list231); + num4 = 0; + span231[num4] = null; + num4++; + span231[num4] = null; + num4++; + ref List reference162 = ref span231[num4]; + index3 = 1; + List list232 = new List(index3); + CollectionsMarshal.SetCount(list232, index3); + Span span232 = CollectionsMarshal.AsSpan(list232); + num5 = 0; + span232[num5] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference162 = list232; - span140[3] = null; - span140[4] = null; - span140[5] = null; + num4++; + span231[num4] = null; + num4++; + span231[num4] = null; + num4++; + span231[num4] = null; obj128.RequiredQuestVariables = list231; reference161 = obj128; obj125.Steps = list223; reference156 = obj125; - ref QuestSequence reference163 = ref span135[2]; + num++; + ref QuestSequence reference163 = ref span221[num]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -370976,26 +451294,31 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1052443u, new Vector3(641.8097f, 122.10785f, 730.70874f), 1188) + Span span233 = CollectionsMarshal.AsSpan(list233); + num3 = 0; + span233[num3] = new QuestStep(EInteractionType.Interact, 1052443u, new Vector3(641.8097f, 122.10785f, 730.70874f), 1188) { Fly = true }; obj129.Steps = list233; reference163 = obj129; - ref QuestSequence reference164 = ref span135[3]; + num++; + ref QuestSequence reference164 = ref span221[num]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list234 = new List(num2); - CollectionsMarshal.SetCount(list234, num2); - Span span141 = CollectionsMarshal.AsSpan(list234); - span141[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list234 = new List(num3); + CollectionsMarshal.SetCount(list234, num3); + Span span234 = CollectionsMarshal.AsSpan(list234); + num2 = 0; + span234[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span141[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span234[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -371008,13 +451331,16 @@ public static class AssemblyQuestLoader num = 1; List list235 = new List(num); CollectionsMarshal.SetCount(list235, num); - CollectionsMarshal.AsSpan(list235)[0] = "liza"; + Span span235 = CollectionsMarshal.AsSpan(list235); + index = 0; + span235[index] = "liza"; questRoot26.Author = list235; - num = 4; - List list236 = new List(num); - CollectionsMarshal.SetCount(list236, num); - Span span142 = CollectionsMarshal.AsSpan(list236); - ref QuestSequence reference165 = ref span142[0]; + index = 4; + List list236 = new List(index); + CollectionsMarshal.SetCount(list236, index); + Span span236 = CollectionsMarshal.AsSpan(list236); + num = 0; + ref QuestSequence reference165 = ref span236[num]; QuestSequence obj131 = new QuestSequence { Sequence = 0 @@ -371022,79 +451348,104 @@ public static class AssemblyQuestLoader num2 = 2; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span143 = CollectionsMarshal.AsSpan(list237); - span143[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span143[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span237 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span237[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span237[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj131.Steps = list237; reference165 = obj131; - ref QuestSequence reference166 = ref span142[1]; + num++; + ref QuestSequence reference166 = ref span236[num]; QuestSequence obj132 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list238 = new List(num2); - CollectionsMarshal.SetCount(list238, num2); - Span span144 = CollectionsMarshal.AsSpan(list238); - ref QuestStep reference167 = ref span144[0]; + num3 = 3; + List list238 = new List(num3); + CollectionsMarshal.SetCount(list238, num3); + Span span238 = CollectionsMarshal.AsSpan(list238); + num2 = 0; + ref QuestStep reference167 = ref span238[num2]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2014511u, new Vector3(226.85583f, 2.9450073f, -199.6643f), 1188) { StopDistance = 1f, Fly = true }; - num3 = 6; - List list239 = new List(num3); - CollectionsMarshal.SetCount(list239, num3); - Span span145 = CollectionsMarshal.AsSpan(list239); - span145[0] = null; - span145[1] = null; - span145[2] = null; - span145[3] = null; - span145[4] = null; - span145[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list239 = new List(num4); + CollectionsMarshal.SetCount(list239, num4); + Span span239 = CollectionsMarshal.AsSpan(list239); + index2 = 0; + span239[index2] = null; + index2++; + span239[index2] = null; + index2++; + span239[index2] = null; + index2++; + span239[index2] = null; + index2++; + span239[index2] = null; + index2++; + span239[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj133.CompletionQuestVariablesFlags = list239; reference167 = obj133; - ref QuestStep reference168 = ref span144[1]; + num2++; + ref QuestStep reference168 = ref span238[num2]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 2014510u, new Vector3(218.1582f, 2.2124634f, -184.92413f), 1188) { StopDistance = 1f }; - num3 = 6; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - Span span146 = CollectionsMarshal.AsSpan(list240); - span146[0] = null; - span146[1] = null; - span146[2] = null; - span146[3] = null; - span146[4] = null; - span146[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num4 = 0; + span240[num4] = null; + num4++; + span240[num4] = null; + num4++; + span240[num4] = null; + num4++; + span240[num4] = null; + num4++; + span240[num4] = null; + num4++; + span240[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj134.CompletionQuestVariablesFlags = list240; reference168 = obj134; - ref QuestStep reference169 = ref span144[2]; + num2++; + ref QuestStep reference169 = ref span238[num2]; QuestStep obj135 = new QuestStep(EInteractionType.Interact, 2014512u, new Vector3(61.53955f, 8.102478f, -230.79272f), 1188) { StopDistance = 1f, Fly = true }; - num3 = 6; - List list241 = new List(num3); - CollectionsMarshal.SetCount(list241, num3); - Span span147 = CollectionsMarshal.AsSpan(list241); - span147[0] = null; - span147[1] = null; - span147[2] = null; - span147[3] = null; - span147[4] = null; - span147[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list241 = new List(num4); + CollectionsMarshal.SetCount(list241, num4); + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = null; + index2++; + span241[index2] = null; + index2++; + span241[index2] = null; + index2++; + span241[index2] = null; + index2++; + span241[index2] = null; + index2++; + span241[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj135.CompletionQuestVariablesFlags = list241; reference169 = obj135; obj132.Steps = list238; reference166 = obj132; - ref QuestSequence reference170 = ref span142[2]; + num++; + ref QuestSequence reference170 = ref span236[num]; QuestSequence obj136 = new QuestSequence { Sequence = 2 @@ -371102,27 +451453,31 @@ public static class AssemblyQuestLoader num2 = 2; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span148 = CollectionsMarshal.AsSpan(list242); - span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188) + Span span242 = CollectionsMarshal.AsSpan(list242); + num3 = 0; + span242[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span148[1] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) + num3++; + span242[num3] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) { StopDistance = 7f }; obj136.Steps = list242; reference170 = obj136; - ref QuestSequence reference171 = ref span142[3]; + num++; + ref QuestSequence reference171 = ref span236[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list243 = new List(num2); - CollectionsMarshal.SetCount(list243, num2); - Span span149 = CollectionsMarshal.AsSpan(list243); - span149[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list243 = new List(num3); + CollectionsMarshal.SetCount(list243, num3); + Span span243 = CollectionsMarshal.AsSpan(list243); + num2 = 0; + span243[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -371139,7 +451494,8 @@ public static class AssemblyQuestLoader } } }; - span149[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span243[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -371152,13 +451508,16 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - CollectionsMarshal.AsSpan(list244)[0] = "liza"; + Span span244 = CollectionsMarshal.AsSpan(list244); + index = 0; + span244[index] = "liza"; questRoot27.Author = list244; - num = 4; - List list245 = new List(num); - CollectionsMarshal.SetCount(list245, num); - Span span150 = CollectionsMarshal.AsSpan(list245); - ref QuestSequence reference172 = ref span150[0]; + index = 4; + List list245 = new List(index); + CollectionsMarshal.SetCount(list245, index); + Span span245 = CollectionsMarshal.AsSpan(list245); + num = 0; + ref QuestSequence reference172 = ref span245[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -371166,23 +451525,28 @@ public static class AssemblyQuestLoader num2 = 2; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span151 = CollectionsMarshal.AsSpan(list246); - span151[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); - span151[1] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + Span span246 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + span246[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188); + num3++; + span246[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; obj138.Steps = list246; reference172 = obj138; - ref QuestSequence reference173 = ref span150[1]; + num++; + ref QuestSequence reference173 = ref span245[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list247 = new List(num2); - CollectionsMarshal.SetCount(list247, num2); - CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1051798u, new Vector3(897.734f, 6.8223433f, -285.1759f), 1188) + num3 = 1; + List list247 = new List(num3); + CollectionsMarshal.SetCount(list247, num3); + Span span247 = CollectionsMarshal.AsSpan(list247); + num2 = 0; + span247[num2] = new QuestStep(EInteractionType.Interact, 1051798u, new Vector3(897.734f, 6.8223433f, -285.1759f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -371201,7 +451565,8 @@ public static class AssemblyQuestLoader }; obj139.Steps = list247; reference173 = obj139; - ref QuestSequence reference174 = ref span150[2]; + num++; + ref QuestSequence reference174 = ref span245[num]; QuestSequence obj140 = new QuestSequence { Sequence = 2 @@ -371209,27 +451574,32 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Action, 1052345u, new Vector3(908.50684f, 5.7142797f, -337.85004f), 1188) + Span span248 = CollectionsMarshal.AsSpan(list248); + num3 = 0; + span248[num3] = new QuestStep(EInteractionType.Action, 1052345u, new Vector3(908.50684f, 5.7142797f, -337.85004f), 1188) { Fly = true, Action = EAction.BosomBrook }; obj140.Steps = list248; reference174 = obj140; - ref QuestSequence reference175 = ref span150[3]; + num++; + ref QuestSequence reference175 = ref span245[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list249 = new List(num2); - CollectionsMarshal.SetCount(list249, num2); - Span span152 = CollectionsMarshal.AsSpan(list249); - span152[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + num3 = 2; + List list249 = new List(num3); + CollectionsMarshal.SetCount(list249, num3); + Span span249 = CollectionsMarshal.AsSpan(list249); + num2 = 0; + span249[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - span152[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + num2++; + span249[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -371242,15 +451612,18 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "Starr"; + Span span250 = CollectionsMarshal.AsSpan(list250); + index = 0; + span250[index] = "Starr"; questRoot28.Author = list250; questRoot28.IsSeasonalQuest = true; questRoot28.SeasonalQuestExpiry = new DateTime(2024, 12, 31, 0, 0, 0, DateTimeKind.Utc); - num = 6; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span153 = CollectionsMarshal.AsSpan(list251); - ref QuestSequence reference176 = ref span153[0]; + index = 6; + List list251 = new List(index); + CollectionsMarshal.SetCount(list251, index); + Span span251 = CollectionsMarshal.AsSpan(list251); + num = 0; + ref QuestSequence reference176 = ref span251[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -371258,7 +451631,9 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051801u, new Vector3(-49.485046f, 6.499997f, -90.348694f), 133) + Span span252 = CollectionsMarshal.AsSpan(list252); + num3 = 0; + span252[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051801u, new Vector3(-49.485046f, 6.499997f, -90.348694f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -371269,20 +451644,25 @@ public static class AssemblyQuestLoader }; obj142.Steps = list252; reference176 = obj142; - ref QuestSequence reference177 = ref span153[1]; + num++; + ref QuestSequence reference177 = ref span251[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - ref QuestStep reference178 = ref CollectionsMarshal.AsSpan(list253)[0]; - QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1051808u, new Vector3(-53.60504f, 5.772882f, -99.931335f), 133); num3 = 1; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = new DialogueChoice + List list253 = new List(num3); + CollectionsMarshal.SetCount(list253, num3); + Span span253 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + ref QuestStep reference178 = ref span253[num2]; + QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1051808u, new Vector3(-53.60504f, 5.772882f, -99.931335f), 133); + index2 = 1; + List list254 = new List(index2); + CollectionsMarshal.SetCount(list254, index2); + Span span254 = CollectionsMarshal.AsSpan(list254); + num4 = 0; + span254[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_FESXMX001_05227_SYSTEM_000_025") @@ -371291,7 +451671,8 @@ public static class AssemblyQuestLoader reference178 = questStep7; obj143.Steps = list253; reference177 = obj143; - ref QuestSequence reference179 = ref span153[2]; + num++; + ref QuestSequence reference179 = ref span251[num]; QuestSequence obj144 = new QuestSequence { Sequence = 2 @@ -371299,63 +451680,88 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1051803u, new Vector3(33.951294f, -0.36796698f, 24.185547f), 1247); + Span span255 = CollectionsMarshal.AsSpan(list255); + num3 = 0; + span255[num3] = new QuestStep(EInteractionType.Interact, 1051803u, new Vector3(33.951294f, -0.36796698f, 24.185547f), 1247); obj144.Steps = list255; reference179 = obj144; - ref QuestSequence reference180 = ref span153[3]; + num++; + ref QuestSequence reference180 = ref span251[num]; QuestSequence obj145 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - Span span154 = CollectionsMarshal.AsSpan(list256); - ref QuestStep reference181 = ref span154[0]; + num3 = 3; + List list256 = new List(num3); + CollectionsMarshal.SetCount(list256, num3); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + ref QuestStep reference181 = ref span256[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1051816u, new Vector3(18.142944f, 0.0028544795f, -0.289917f), 1247); - num3 = 6; - List list257 = new List(num3); - CollectionsMarshal.SetCount(list257, num3); - Span span155 = CollectionsMarshal.AsSpan(list257); - span155[0] = null; - span155[1] = null; - span155[2] = null; - span155[3] = null; - span155[4] = null; - span155[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list257 = new List(num4); + CollectionsMarshal.SetCount(list257, num4); + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + span257[index2] = null; + index2++; + span257[index2] = null; + index2++; + span257[index2] = null; + index2++; + span257[index2] = null; + index2++; + span257[index2] = null; + index2++; + span257[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list257; reference181 = questStep8; - ref QuestStep reference182 = ref span154[1]; + num2++; + ref QuestStep reference182 = ref span256[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1052469u, new Vector3(-15.640564f, 0.0026466753f, 18.142944f), 1247); - num3 = 6; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - Span span156 = CollectionsMarshal.AsSpan(list258); - span156[0] = null; - span156[1] = null; - span156[2] = null; - span156[3] = null; - span156[4] = null; - span156[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num4 = 0; + span258[num4] = null; + num4++; + span258[num4] = null; + num4++; + span258[num4] = null; + num4++; + span258[num4] = null; + num4++; + span258[num4] = null; + num4++; + span258[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list258; reference182 = questStep9; - ref QuestStep reference183 = ref span154[2]; + num2++; + ref QuestStep reference183 = ref span256[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1051813u, new Vector3(-5.1118164f, 1.21852545E-05f, -31.99823f), 1247); - num3 = 6; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - Span span157 = CollectionsMarshal.AsSpan(list259); - span157[0] = null; - span157[1] = null; - span157[2] = null; - span157[3] = null; - span157[4] = null; - span157[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list259 = new List(num4); + CollectionsMarshal.SetCount(list259, num4); + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span259[index2] = null; + index2++; + span259[index2] = null; + index2++; + span259[index2] = null; + index2++; + span259[index2] = null; + index2++; + span259[index2] = null; + index2++; + span259[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list259; reference183 = questStep10; obj145.Steps = list256; reference180 = obj145; - ref QuestSequence reference184 = ref span153[4]; + num++; + ref QuestSequence reference184 = ref span251[num]; QuestSequence obj146 = new QuestSequence { Sequence = 4 @@ -371363,18 +451769,23 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1051804u, new Vector3(-3.4943848f, 0.0028544795f, -18.417664f), 1247); + Span span260 = CollectionsMarshal.AsSpan(list260); + num3 = 0; + span260[num3] = new QuestStep(EInteractionType.Interact, 1051804u, new Vector3(-3.4943848f, 0.0028544795f, -18.417664f), 1247); obj146.Steps = list260; reference184 = obj146; - ref QuestSequence reference185 = ref span153[5]; + num++; + ref QuestSequence reference185 = ref span251[num]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051819u, new Vector3(-1.6937866f, 0.0028544795f, -21.042236f), 1247) + num3 = 1; + List list261 = new List(num3); + CollectionsMarshal.SetCount(list261, num3); + Span span261 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span261[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051819u, new Vector3(-1.6937866f, 0.0028544795f, -21.042236f), 1247) { NextQuestId = new QuestId(5228) }; @@ -371387,15 +451798,18 @@ public static class AssemblyQuestLoader num = 1; List list262 = new List(num); CollectionsMarshal.SetCount(list262, num); - CollectionsMarshal.AsSpan(list262)[0] = "Starr"; + Span span262 = CollectionsMarshal.AsSpan(list262); + index = 0; + span262[index] = "Starr"; questRoot29.Author = list262; questRoot29.IsSeasonalQuest = true; questRoot29.SeasonalQuestExpiry = new DateTime(2024, 12, 31, 0, 0, 0, DateTimeKind.Utc); - num = 8; - List list263 = new List(num); - CollectionsMarshal.SetCount(list263, num); - Span span158 = CollectionsMarshal.AsSpan(list263); - ref QuestSequence reference186 = ref span158[0]; + index = 8; + List list263 = new List(index); + CollectionsMarshal.SetCount(list263, index); + Span span263 = CollectionsMarshal.AsSpan(list263); + num = 0; + ref QuestSequence reference186 = ref span263[num]; QuestSequence obj148 = new QuestSequence { Sequence = 0 @@ -371403,24 +451817,30 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051819u, new Vector3(-1.6937866f, 0.0028544795f, -21.042236f), 1247); + Span span264 = CollectionsMarshal.AsSpan(list264); + num3 = 0; + span264[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051819u, new Vector3(-1.6937866f, 0.0028544795f, -21.042236f), 1247); obj148.Steps = list264; reference186 = obj148; - ref QuestSequence reference187 = ref span158[1]; + num++; + ref QuestSequence reference187 = ref span263[num]; QuestSequence obj149 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1051822u, new Vector3(61.478516f, -7.7123985f, 98.98523f), 132) + num3 = 1; + List list265 = new List(num3); + CollectionsMarshal.SetCount(list265, num3); + Span span265 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + span265[num2] = new QuestStep(EInteractionType.Interact, 1051822u, new Vector3(61.478516f, -7.7123985f, 98.98523f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj149.Steps = list265; reference187 = obj149; - ref QuestSequence reference188 = ref span158[2]; + num++; + ref QuestSequence reference188 = ref span263[num]; QuestSequence obj150 = new QuestSequence { Sequence = 2 @@ -371428,8 +451848,9 @@ public static class AssemblyQuestLoader num2 = 2; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span159 = CollectionsMarshal.AsSpan(list266); - ref QuestStep reference189 = ref span159[0]; + Span span266 = CollectionsMarshal.AsSpan(list266); + num3 = 0; + ref QuestStep reference189 = ref span266[num3]; QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1051807u, new Vector3(-53.635498f, 5.793307f, -99.931335f), 133) { TargetTerritoryId = (ushort)1247, @@ -371445,29 +451866,36 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = 132; + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num4 = 0; + span267[num4] = 132; obj152.InTerritory = list267; skipConditions.AetheryteShortcutIf = obj152; obj151.SkipConditions = skipConditions; reference189 = obj151; - span159[1] = new QuestStep(EInteractionType.Interact, 1051823u, new Vector3(34.164917f, -0.37309912f, 23.605652f), 1247); + num3++; + span266[num3] = new QuestStep(EInteractionType.Interact, 1051823u, new Vector3(34.164917f, -0.37309912f, 23.605652f), 1247); obj150.Steps = list266; reference188 = obj150; - ref QuestSequence reference190 = ref span158[3]; + num++; + ref QuestSequence reference190 = ref span263[num]; QuestSequence obj153 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list268 = new List(num2); - CollectionsMarshal.SetCount(list268, num2); - CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.Interact, 1051833u, new Vector3(35.568726f, -0.24490167f, 21.560913f), 1247); + num3 = 1; + List list268 = new List(num3); + CollectionsMarshal.SetCount(list268, num3); + Span span268 = CollectionsMarshal.AsSpan(list268); + num2 = 0; + span268[num2] = new QuestStep(EInteractionType.Interact, 1051833u, new Vector3(35.568726f, -0.24490167f, 21.560913f), 1247); obj153.Steps = list268; reference190 = obj153; - ref QuestSequence reference191 = ref span158[4]; + num++; + ref QuestSequence reference191 = ref span263[num]; QuestSequence obj154 = new QuestSequence { Sequence = 4 @@ -371475,63 +451903,88 @@ public static class AssemblyQuestLoader num2 = 3; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - Span span160 = CollectionsMarshal.AsSpan(list269); - ref QuestStep reference192 = ref span160[0]; + Span span269 = CollectionsMarshal.AsSpan(list269); + num3 = 0; + ref QuestStep reference192 = ref span269[num3]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1051816u, new Vector3(18.142944f, 0.0028544795f, -0.289917f), 1247); - num3 = 6; - List list270 = new List(num3); - CollectionsMarshal.SetCount(list270, num3); - Span span161 = CollectionsMarshal.AsSpan(list270); - span161[0] = null; - span161[1] = null; - span161[2] = null; - span161[3] = null; - span161[4] = null; - span161[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list270 = new List(num4); + CollectionsMarshal.SetCount(list270, num4); + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span270[index2] = null; + index2++; + span270[index2] = null; + index2++; + span270[index2] = null; + index2++; + span270[index2] = null; + index2++; + span270[index2] = null; + index2++; + span270[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep11.CompletionQuestVariablesFlags = list270; reference192 = questStep11; - ref QuestStep reference193 = ref span160[1]; + num3++; + ref QuestStep reference193 = ref span269[num3]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1051809u, new Vector3(-15.823608f, 0.0028544795f, 9.84198f), 1247); - num3 = 6; - List list271 = new List(num3); - CollectionsMarshal.SetCount(list271, num3); - Span span162 = CollectionsMarshal.AsSpan(list271); - span162[0] = null; - span162[1] = null; - span162[2] = null; - span162[3] = null; - span162[4] = null; - span162[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num4 = 0; + span271[num4] = null; + num4++; + span271[num4] = null; + num4++; + span271[num4] = null; + num4++; + span271[num4] = null; + num4++; + span271[num4] = null; + num4++; + span271[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep12.CompletionQuestVariablesFlags = list271; reference193 = questStep12; - ref QuestStep reference194 = ref span160[2]; + num3++; + ref QuestStep reference194 = ref span269[num3]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1051813u, new Vector3(-5.1118164f, 1.21852545E-05f, -31.99823f), 1247); - num3 = 6; - List list272 = new List(num3); - CollectionsMarshal.SetCount(list272, num3); - Span span163 = CollectionsMarshal.AsSpan(list272); - span163[0] = null; - span163[1] = null; - span163[2] = null; - span163[3] = null; - span163[4] = null; - span163[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list272 = new List(num4); + CollectionsMarshal.SetCount(list272, num4); + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = null; + index2++; + span272[index2] = null; + index2++; + span272[index2] = null; + index2++; + span272[index2] = null; + index2++; + span272[index2] = null; + index2++; + span272[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list272; reference194 = questStep13; obj154.Steps = list269; reference191 = obj154; - ref QuestSequence reference195 = ref span158[5]; + num++; + ref QuestSequence reference195 = ref span263[num]; QuestSequence obj155 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 1051825u, new Vector3(-1.7853394f, 2.0028546f, -86.38135f), 1247); + num3 = 1; + List list273 = new List(num3); + CollectionsMarshal.SetCount(list273, num3); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span273[num2] = new QuestStep(EInteractionType.Interact, 1051825u, new Vector3(-1.7853394f, 2.0028546f, -86.38135f), 1247); obj155.Steps = list273; reference195 = obj155; - ref QuestSequence reference196 = ref span158[6]; + num++; + ref QuestSequence reference196 = ref span263[num]; QuestSequence obj156 = new QuestSequence { Sequence = 6 @@ -371539,23 +451992,28 @@ public static class AssemblyQuestLoader num2 = 2; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span164 = CollectionsMarshal.AsSpan(list274); - span164[0] = new QuestStep(EInteractionType.Interact, 2014535u, new Vector3(67.88733f, -0.77819824f, 51.224487f), 1247) + Span span274 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + span274[num3] = new QuestStep(EInteractionType.Interact, 2014535u, new Vector3(67.88733f, -0.77819824f, 51.224487f), 1247) { TargetTerritoryId = (ushort)133 }; - span164[1] = new QuestStep(EInteractionType.Interact, 1051802u, new Vector3(-50.06488f, 6.499999f, -89.58569f), 133); + num3++; + span274[num3] = new QuestStep(EInteractionType.Interact, 1051802u, new Vector3(-50.06488f, 6.499999f, -89.58569f), 133); obj156.Steps = list274; reference196 = obj156; - ref QuestSequence reference197 = ref span158[7]; + num++; + ref QuestSequence reference197 = ref span263[num]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list275 = new List(num2); - CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051805u, new Vector3(33.401978f, -0.31104973f, 22.079773f), 1253); + num3 = 1; + List list275 = new List(num3); + CollectionsMarshal.SetCount(list275, num3); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051805u, new Vector3(33.401978f, -0.31104973f, 22.079773f), 1253); obj157.Steps = list275; reference197 = obj157; questRoot29.QuestSequence = list263; @@ -371565,15 +452023,18 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - CollectionsMarshal.AsSpan(list276)[0] = "WigglyMuffin"; + Span span276 = CollectionsMarshal.AsSpan(list276); + index = 0; + span276[index] = "WigglyMuffin"; questRoot30.Author = list276; questRoot30.IsSeasonalQuest = true; questRoot30.SeasonalQuestExpiry = new DateTime(2026, 1, 15, 14, 59, 0, DateTimeKind.Utc); - num = 6; - List list277 = new List(num); - CollectionsMarshal.SetCount(list277, num); - Span span165 = CollectionsMarshal.AsSpan(list277); - ref QuestSequence reference198 = ref span165[0]; + index = 6; + List list277 = new List(index); + CollectionsMarshal.SetCount(list277, index); + Span span277 = CollectionsMarshal.AsSpan(list277); + num = 0; + ref QuestSequence reference198 = ref span277[num]; QuestSequence obj158 = new QuestSequence { Sequence = 0 @@ -371581,7 +452042,9 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - ref QuestStep reference199 = ref CollectionsMarshal.AsSpan(list278)[0]; + Span span278 = CollectionsMarshal.AsSpan(list278); + num3 = 0; + ref QuestStep reference199 = ref span278[num3]; QuestStep obj159 = new QuestStep(EInteractionType.AcceptQuest, 1051493u, new Vector3(17.166382f, 45.656f, 133.92847f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -371593,28 +452056,34 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list279 = new List(num3); - CollectionsMarshal.SetCount(list279, num3); - CollectionsMarshal.AsSpan(list279)[0] = 128; + index2 = 1; + List list279 = new List(index2); + CollectionsMarshal.SetCount(list279, index2); + Span span279 = CollectionsMarshal.AsSpan(list279); + num4 = 0; + span279[num4] = 128; skipAetheryteCondition.InTerritory = list279; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; obj159.SkipConditions = skipConditions2; reference199 = obj159; obj158.Steps = list278; reference198 = obj158; - ref QuestSequence reference200 = ref span165[1]; + num++; + ref QuestSequence reference200 = ref span277[num]; QuestSequence obj160 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1052388u, new Vector3(21.22528f, 39.99996f, 32.913696f), 128); + num3 = 1; + List list280 = new List(num3); + CollectionsMarshal.SetCount(list280, num3); + Span span280 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span280[num2] = new QuestStep(EInteractionType.Interact, 1052388u, new Vector3(21.22528f, 39.99996f, 32.913696f), 128); obj160.Steps = list280; reference200 = obj160; - ref QuestSequence reference201 = ref span165[2]; + num++; + ref QuestSequence reference201 = ref span277[num]; QuestSequence obj161 = new QuestSequence { Sequence = 2 @@ -371622,21 +452091,27 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1052387u, new Vector3(22.690125f, 39.999985f, 30.71643f), 128); + Span span281 = CollectionsMarshal.AsSpan(list281); + num3 = 0; + span281[num3] = new QuestStep(EInteractionType.Interact, 1052387u, new Vector3(22.690125f, 39.999985f, 30.71643f), 128); obj161.Steps = list281; reference201 = obj161; - ref QuestSequence reference202 = ref span165[3]; + num++; + ref QuestSequence reference202 = ref span277[num]; QuestSequence obj162 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1003598u, new Vector3(-12.069946f, 40.00053f, 11.459534f), 128); + num3 = 1; + List list282 = new List(num3); + CollectionsMarshal.SetCount(list282, num3); + Span span282 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span282[num2] = new QuestStep(EInteractionType.Interact, 1003598u, new Vector3(-12.069946f, 40.00053f, 11.459534f), 128); obj162.Steps = list282; reference202 = obj162; - ref QuestSequence reference203 = ref span165[4]; + num++; + ref QuestSequence reference203 = ref span277[num]; QuestSequence obj163 = new QuestSequence { Sequence = 4 @@ -371644,22 +452119,30 @@ public static class AssemblyQuestLoader num2 = 2; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - Span span166 = CollectionsMarshal.AsSpan(list283); - ref QuestStep reference204 = ref span166[0]; + Span span283 = CollectionsMarshal.AsSpan(list283); + num3 = 0; + ref QuestStep reference204 = ref span283[num3]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1003550u, new Vector3(76.85962f, 39.99632f, 78.99597f), 128); - num3 = 6; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - Span span167 = CollectionsMarshal.AsSpan(list284); - span167[0] = null; - span167[1] = null; - span167[2] = null; - span167[3] = null; - span167[4] = null; - span167[5] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); + num4 = 6; + List list284 = new List(num4); + CollectionsMarshal.SetCount(list284, num4); + Span span284 = CollectionsMarshal.AsSpan(list284); + index2 = 0; + span284[index2] = null; + index2++; + span284[index2] = null; + index2++; + span284[index2] = null; + index2++; + span284[index2] = null; + index2++; + span284[index2] = null; + index2++; + span284[index2] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list284; reference204 = questStep14; - span166[1] = new QuestStep(EInteractionType.Interact, 1052297u, new Vector3(-94.40759f, 40.999977f, -152.78864f), 128) + num3++; + span283[num3] = new QuestStep(EInteractionType.Interact, 1052297u, new Vector3(-94.40759f, 40.999977f, -152.78864f), 128) { StopDistance = 6.1f, AethernetShortcut = new AethernetShortcut @@ -371670,15 +452153,18 @@ public static class AssemblyQuestLoader }; obj163.Steps = list283; reference203 = obj163; - ref QuestSequence reference205 = ref span165[5]; + num++; + ref QuestSequence reference205 = ref span277[num]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051493u, new Vector3(17.166382f, 45.656f, 133.92847f), 128) + num3 = 1; + List list285 = new List(num3); + CollectionsMarshal.SetCount(list285, num3); + Span span285 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span285[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051493u, new Vector3(17.166382f, 45.656f, 133.92847f), 128) { AethernetShortcut = new AethernetShortcut { @@ -371696,15 +452182,18 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "WigglyMuffin"; + Span span286 = CollectionsMarshal.AsSpan(list286); + index = 0; + span286[index] = "WigglyMuffin"; questRoot31.Author = list286; questRoot31.IsSeasonalQuest = true; questRoot31.SeasonalQuestExpiry = new DateTime(2026, 1, 15, 14, 59, 0, DateTimeKind.Utc); - num = 6; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span168 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference206 = ref span168[0]; + index = 6; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + Span span287 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference206 = ref span287[num]; QuestSequence obj165 = new QuestSequence { Sequence = 0 @@ -371712,7 +452201,9 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - ref QuestStep reference207 = ref CollectionsMarshal.AsSpan(list288)[0]; + Span span288 = CollectionsMarshal.AsSpan(list288); + num3 = 0; + ref QuestStep reference207 = ref span288[num3]; QuestStep obj166 = new QuestStep(EInteractionType.AcceptQuest, 1051493u, new Vector3(17.166382f, 45.656f, 133.92847f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -371724,25 +452215,30 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list289 = new List(num3); - CollectionsMarshal.SetCount(list289, num3); - CollectionsMarshal.AsSpan(list289)[0] = 128; + index2 = 1; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + Span span289 = CollectionsMarshal.AsSpan(list289); + num4 = 0; + span289[num4] = 128; skipAetheryteCondition2.InTerritory = list289; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition2; obj166.SkipConditions = skipConditions3; reference207 = obj166; obj165.Steps = list288; reference206 = obj165; - ref QuestSequence reference208 = ref span168[1]; + num++; + ref QuestSequence reference208 = ref span287[num]; QuestSequence obj167 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1052295u, new Vector3(0.41192627f, 41.71661f, 140.33716f), 134) + num3 = 1; + List list290 = new List(num3); + CollectionsMarshal.SetCount(list290, num3); + Span span290 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span290[num2] = new QuestStep(EInteractionType.Interact, 1052295u, new Vector3(0.41192627f, 41.71661f, 140.33716f), 134) { AethernetShortcut = new AethernetShortcut { @@ -371759,7 +452255,8 @@ public static class AssemblyQuestLoader }; obj167.Steps = list290; reference208 = obj167; - ref QuestSequence reference209 = ref span168[2]; + num++; + ref QuestSequence reference209 = ref span287[num]; QuestSequence obj168 = new QuestSequence { Sequence = 2 @@ -371767,39 +452264,47 @@ public static class AssemblyQuestLoader num2 = 3; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span169 = CollectionsMarshal.AsSpan(list291); - span169[0] = new QuestStep(EInteractionType.Interact, 1051866u, new Vector3(1.5411377f, 41.880928f, 140.67285f), 134); - span169[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.705452f, 43.45921f, 108.19539f), 134) + Span span291 = CollectionsMarshal.AsSpan(list291); + num3 = 0; + span291[num3] = new QuestStep(EInteractionType.Interact, 1051866u, new Vector3(1.5411377f, 41.880928f, 140.67285f), 134); + num3++; + span291[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.705452f, 43.45921f, 108.19539f), 134) { Mount = false }; - span169[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051873u, new Vector3(55.588623f, 47.3197f, 59.830566f), 134) + num3++; + span291[num3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051873u, new Vector3(55.588623f, 47.3197f, 59.830566f), 134) { Mount = false }; obj168.Steps = list291; reference209 = obj168; - ref QuestSequence reference210 = ref span168[3]; + num++; + ref QuestSequence reference210 = ref span287[num]; QuestSequence obj169 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - Span span170 = CollectionsMarshal.AsSpan(list292); - span170[0] = new QuestStep(EInteractionType.Interact, 1051873u, new Vector3(55.588623f, 47.3197f, 59.830566f), 134); - span170[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(79.27331f, 45.43442f, 89.30336f), 134) + num3 = 3; + List list292 = new List(num3); + CollectionsMarshal.SetCount(list292, num3); + Span span292 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span292[num2] = new QuestStep(EInteractionType.Interact, 1051873u, new Vector3(55.588623f, 47.3197f, 59.830566f), 134); + num2++; + span292[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(79.27331f, 45.43442f, 89.30336f), 134) { Mount = false }; - span170[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051873u, new Vector3(145.73889f, 47.20847f, 156.11499f), 134) + num2++; + span292[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051873u, new Vector3(145.73889f, 47.20847f, 156.11499f), 134) { Mount = false }; obj169.Steps = list292; reference210 = obj169; - ref QuestSequence reference211 = ref span168[4]; + num++; + ref QuestSequence reference211 = ref span287[num]; QuestSequence obj170 = new QuestSequence { Sequence = 4 @@ -371807,23 +452312,28 @@ public static class AssemblyQuestLoader num2 = 2; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span171 = CollectionsMarshal.AsSpan(list293); - span171[0] = new QuestStep(EInteractionType.Interact, 1051874u, new Vector3(145.73889f, 47.20847f, 156.11499f), 134); - span171[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051874u, new Vector3(171.25195f, 60.953327f, 261.31067f), 134) + Span span293 = CollectionsMarshal.AsSpan(list293); + num3 = 0; + span293[num3] = new QuestStep(EInteractionType.Interact, 1051874u, new Vector3(145.73889f, 47.20847f, 156.11499f), 134); + num3++; + span293[num3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051874u, new Vector3(171.25195f, 60.953327f, 261.31067f), 134) { Mount = false }; obj170.Steps = list293; reference211 = obj170; - ref QuestSequence reference212 = ref span168[5]; + num++; + ref QuestSequence reference212 = ref span287[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051493u, new Vector3(17.166382f, 45.656f, 133.92847f), 128); + num3 = 1; + List list294 = new List(num3); + CollectionsMarshal.SetCount(list294, num3); + Span span294 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span294[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051493u, new Vector3(17.166382f, 45.656f, 133.92847f), 128); obj171.Steps = list294; reference212 = obj171; questRoot31.QuestSequence = list287; @@ -371833,15 +452343,18 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - CollectionsMarshal.AsSpan(list295)[0] = "WigglyMuffin"; + Span span295 = CollectionsMarshal.AsSpan(list295); + index = 0; + span295[index] = "WigglyMuffin"; questRoot32.Author = list295; questRoot32.IsSeasonalQuest = true; questRoot32.SeasonalQuestExpiry = new DateTime(2025, 12, 31, 14, 59, 0, DateTimeKind.Utc); - num = 8; - List list296 = new List(num); - CollectionsMarshal.SetCount(list296, num); - Span span172 = CollectionsMarshal.AsSpan(list296); - ref QuestSequence reference213 = ref span172[0]; + index = 8; + List list296 = new List(index); + CollectionsMarshal.SetCount(list296, index); + Span span296 = CollectionsMarshal.AsSpan(list296); + num = 0; + ref QuestSequence reference213 = ref span296[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -371849,7 +452362,9 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list297)[0]; + Span span297 = CollectionsMarshal.AsSpan(list297); + num3 = 0; + ref QuestStep reference214 = ref span297[num3]; QuestStep obj173 = new QuestStep(EInteractionType.AcceptQuest, 1054361u, new Vector3(-50.06488f, 6.4999995f, -89.58569f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -371864,27 +452379,32 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 2; - List list298 = new List(num3); - CollectionsMarshal.SetCount(list298, num3); - Span span173 = CollectionsMarshal.AsSpan(list298); - span173[0] = 132; - span173[1] = 133; + num4 = 2; + List list298 = new List(num4); + CollectionsMarshal.SetCount(list298, num4); + Span span298 = CollectionsMarshal.AsSpan(list298); + index2 = 0; + span298[index2] = 132; + index2++; + span298[index2] = 133; obj174.InTerritory = list298; skipConditions4.AetheryteShortcutIf = obj174; obj173.SkipConditions = skipConditions4; reference214 = obj173; obj172.Steps = list297; reference213 = obj172; - ref QuestSequence reference215 = ref span172[1]; + num++; + ref QuestSequence reference215 = ref span296[num]; QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - ref QuestStep reference216 = ref CollectionsMarshal.AsSpan(list299)[0]; + num3 = 1; + List list299 = new List(num3); + CollectionsMarshal.SetCount(list299, num3); + Span span299 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + ref QuestStep reference216 = ref span299[num2]; QuestStep obj176 = new QuestStep(EInteractionType.Interact, 1054363u, new Vector3(-53.97119f, 5.798081f, -100.93848f), 133) { TargetTerritoryId = (ushort)1309, @@ -371900,19 +452420,22 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 2; - List list300 = new List(num3); - CollectionsMarshal.SetCount(list300, num3); - Span span174 = CollectionsMarshal.AsSpan(list300); - span174[0] = 132; - span174[1] = 133; + index2 = 2; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + Span span300 = CollectionsMarshal.AsSpan(list300); + num4 = 0; + span300[num4] = 132; + num4++; + span300[num4] = 133; obj177.InTerritory = list300; skipConditions5.AetheryteShortcutIf = obj177; obj176.SkipConditions = skipConditions5; reference216 = obj176; obj175.Steps = list299; reference215 = obj175; - ref QuestSequence reference217 = ref span172[2]; + num++; + ref QuestSequence reference217 = ref span296[num]; QuestSequence obj178 = new QuestSequence { Sequence = 2 @@ -371920,8 +452443,9 @@ public static class AssemblyQuestLoader num2 = 2; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - Span span175 = CollectionsMarshal.AsSpan(list301); - ref QuestStep reference218 = ref span175[0]; + Span span301 = CollectionsMarshal.AsSpan(list301); + num3 = 0; + ref QuestStep reference218 = ref span301[num3]; QuestStep obj179 = new QuestStep(EInteractionType.Interact, 1054364u, new Vector3(-53.97119f, 5.798081f, -100.93848f), 133) { TargetTerritoryId = (ushort)1309, @@ -371934,40 +452458,48 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list302 = new List(num3); - CollectionsMarshal.SetCount(list302, num3); - CollectionsMarshal.AsSpan(list302)[0] = 1309; + num4 = 1; + List list302 = new List(num4); + CollectionsMarshal.SetCount(list302, num4); + Span span302 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span302[index2] = 1309; skipStepConditions.InTerritory = list302; skipConditions6.StepIf = skipStepConditions; SkipAetheryteCondition obj180 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 3; - List list303 = new List(num3); - CollectionsMarshal.SetCount(list303, num3); - Span span176 = CollectionsMarshal.AsSpan(list303); - span176[0] = 132; - span176[1] = 133; - span176[2] = 1309; + index2 = 3; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + Span span303 = CollectionsMarshal.AsSpan(list303); + num4 = 0; + span303[num4] = 132; + num4++; + span303[num4] = 133; + num4++; + span303[num4] = 1309; obj180.InTerritory = list303; skipConditions6.AetheryteShortcutIf = obj180; obj179.SkipConditions = skipConditions6; reference218 = obj179; - span175[1] = new QuestStep(EInteractionType.Interact, 1054362u, new Vector3(15.182739f, 0.0017376093f, -24.643372f), 1309); + num3++; + span301[num3] = new QuestStep(EInteractionType.Interact, 1054362u, new Vector3(15.182739f, 0.0017376093f, -24.643372f), 1309); obj178.Steps = list301; reference217 = obj178; - ref QuestSequence reference219 = ref span172[3]; + num++; + ref QuestSequence reference219 = ref span296[num]; QuestSequence obj181 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - Span span177 = CollectionsMarshal.AsSpan(list304); - ref QuestStep reference220 = ref span177[0]; + num3 = 3; + List list304 = new List(num3); + CollectionsMarshal.SetCount(list304, num3); + Span span304 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + ref QuestStep reference220 = ref span304[num2]; QuestStep obj182 = new QuestStep(EInteractionType.Interact, 1054367u, new Vector3(86.045654f, 5.995377f, -91.844055f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -371982,28 +452514,37 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 2; - List list305 = new List(num3); - CollectionsMarshal.SetCount(list305, num3); - Span span178 = CollectionsMarshal.AsSpan(list305); - span178[0] = 132; - span178[1] = 133; + num4 = 2; + List list305 = new List(num4); + CollectionsMarshal.SetCount(list305, num4); + Span span305 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span305[index2] = 132; + index2++; + span305[index2] = 133; obj183.InTerritory = list305; skipConditions7.AetheryteShortcutIf = obj183; obj182.SkipConditions = skipConditions7; - num3 = 6; - List list306 = new List(num3); - CollectionsMarshal.SetCount(list306, num3); - Span span179 = CollectionsMarshal.AsSpan(list306); - span179[0] = null; - span179[1] = null; - span179[2] = null; - span179[3] = null; - span179[4] = null; - span179[5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + index2 = 6; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + Span span306 = CollectionsMarshal.AsSpan(list306); + num4 = 0; + span306[num4] = null; + num4++; + span306[num4] = null; + num4++; + span306[num4] = null; + num4++; + span306[num4] = null; + num4++; + span306[num4] = null; + num4++; + span306[num4] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); obj182.CompletionQuestVariablesFlags = list306; reference220 = obj182; - ref QuestStep reference221 = ref span177[1]; + num2++; + ref QuestStep reference221 = ref span304[num2]; QuestStep obj184 = new QuestStep(EInteractionType.Interact, 1054366u, new Vector3(159.2279f, 15.699927f, -117.93707f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -372018,28 +452559,37 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 2; - List list307 = new List(num3); - CollectionsMarshal.SetCount(list307, num3); - Span span180 = CollectionsMarshal.AsSpan(list307); - span180[0] = 132; - span180[1] = 133; + num4 = 2; + List list307 = new List(num4); + CollectionsMarshal.SetCount(list307, num4); + Span span307 = CollectionsMarshal.AsSpan(list307); + index2 = 0; + span307[index2] = 132; + index2++; + span307[index2] = 133; obj185.InTerritory = list307; skipConditions8.AetheryteShortcutIf = obj185; obj184.SkipConditions = skipConditions8; - num3 = 6; - List list308 = new List(num3); - CollectionsMarshal.SetCount(list308, num3); - Span span181 = CollectionsMarshal.AsSpan(list308); - span181[0] = null; - span181[1] = null; - span181[2] = null; - span181[3] = null; - span181[4] = null; - span181[5] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); + index2 = 6; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + Span span308 = CollectionsMarshal.AsSpan(list308); + num4 = 0; + span308[num4] = null; + num4++; + span308[num4] = null; + num4++; + span308[num4] = null; + num4++; + span308[num4] = null; + num4++; + span308[num4] = null; + num4++; + span308[num4] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); obj184.CompletionQuestVariablesFlags = list308; reference221 = obj184; - ref QuestStep reference222 = ref span177[2]; + num2++; + ref QuestStep reference222 = ref span304[num2]; QuestStep obj186 = new QuestStep(EInteractionType.Interact, 1054365u, new Vector3(161.6388f, 15.499999f, -61.997437f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -372054,19 +452604,22 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 2; - List list309 = new List(num3); - CollectionsMarshal.SetCount(list309, num3); - Span span182 = CollectionsMarshal.AsSpan(list309); - span182[0] = 132; - span182[1] = 133; + num4 = 2; + List list309 = new List(num4); + CollectionsMarshal.SetCount(list309, num4); + Span span309 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span309[index2] = 132; + index2++; + span309[index2] = 133; obj187.InTerritory = list309; skipConditions9.AetheryteShortcutIf = obj187; obj186.SkipConditions = skipConditions9; reference222 = obj186; obj181.Steps = list304; reference219 = obj181; - ref QuestSequence reference223 = ref span172[4]; + num++; + ref QuestSequence reference223 = ref span296[num]; QuestSequence obj188 = new QuestSequence { Sequence = 4 @@ -372074,7 +452627,9 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - ref QuestStep reference224 = ref CollectionsMarshal.AsSpan(list310)[0]; + Span span310 = CollectionsMarshal.AsSpan(list310); + num3 = 0; + ref QuestStep reference224 = ref span310[num3]; QuestStep obj189 = new QuestStep(EInteractionType.Interact, 1054361u, new Vector3(-50.06488f, 6.4999995f, -89.58569f), 133) { AethernetShortcut = new AethernetShortcut @@ -372088,28 +452643,32 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 2; - List list311 = new List(num3); - CollectionsMarshal.SetCount(list311, num3); - Span span183 = CollectionsMarshal.AsSpan(list311); - span183[0] = 132; - span183[1] = 133; + index2 = 2; + List list311 = new List(index2); + CollectionsMarshal.SetCount(list311, index2); + Span span311 = CollectionsMarshal.AsSpan(list311); + num4 = 0; + span311[num4] = 132; + num4++; + span311[num4] = 133; obj190.InTerritory = list311; skipConditions10.AetheryteShortcutIf = obj190; obj189.SkipConditions = skipConditions10; reference224 = obj189; obj188.Steps = list310; reference223 = obj188; - ref QuestSequence reference225 = ref span172[5]; + num++; + ref QuestSequence reference225 = ref span296[num]; QuestSequence obj191 = new QuestSequence { Sequence = 5 }; - num2 = 4; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - Span span184 = CollectionsMarshal.AsSpan(list312); - ref QuestStep reference226 = ref span184[0]; + num3 = 4; + List list312 = new List(num3); + CollectionsMarshal.SetCount(list312, num3); + Span span312 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + ref QuestStep reference226 = ref span312[num2]; QuestStep obj192 = new QuestStep(EInteractionType.Interact, 1054364u, new Vector3(-53.97119f, 5.798081f, -100.93848f), 133) { TargetTerritoryId = (ushort)1309, @@ -372122,59 +452681,80 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list313 = new List(num3); - CollectionsMarshal.SetCount(list313, num3); - CollectionsMarshal.AsSpan(list313)[0] = 1309; + num4 = 1; + List list313 = new List(num4); + CollectionsMarshal.SetCount(list313, num4); + Span span313 = CollectionsMarshal.AsSpan(list313); + index2 = 0; + span313[index2] = 1309; skipStepConditions2.InTerritory = list313; skipConditions11.StepIf = skipStepConditions2; SkipAetheryteCondition obj193 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 3; - List list314 = new List(num3); - CollectionsMarshal.SetCount(list314, num3); - Span span185 = CollectionsMarshal.AsSpan(list314); - span185[0] = 132; - span185[1] = 133; - span185[2] = 1309; + index2 = 3; + List list314 = new List(index2); + CollectionsMarshal.SetCount(list314, index2); + Span span314 = CollectionsMarshal.AsSpan(list314); + num4 = 0; + span314[num4] = 132; + num4++; + span314[num4] = 133; + num4++; + span314[num4] = 1309; obj193.InTerritory = list314; skipConditions11.AetheryteShortcutIf = obj193; obj192.SkipConditions = skipConditions11; reference226 = obj192; - ref QuestStep reference227 = ref span184[1]; + num2++; + ref QuestStep reference227 = ref span312[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1054370u, new Vector3(-13.01593f, 0.0015269257f, 24.429688f), 1309); - num3 = 6; - List list315 = new List(num3); - CollectionsMarshal.SetCount(list315, num3); - Span span186 = CollectionsMarshal.AsSpan(list315); - span186[0] = null; - span186[1] = null; - span186[2] = null; - span186[3] = null; - span186[4] = null; - span186[5] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); + num4 = 6; + List list315 = new List(num4); + CollectionsMarshal.SetCount(list315, num4); + Span span315 = CollectionsMarshal.AsSpan(list315); + index2 = 0; + span315[index2] = null; + index2++; + span315[index2] = null; + index2++; + span315[index2] = null; + index2++; + span315[index2] = null; + index2++; + span315[index2] = null; + index2++; + span315[index2] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list315; reference227 = questStep15; - ref QuestStep reference228 = ref span184[2]; + num2++; + ref QuestStep reference228 = ref span312[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1054369u, new Vector3(7.7973022f, 0.0028544795f, -15.701599f), 1309); - num3 = 6; - List list316 = new List(num3); - CollectionsMarshal.SetCount(list316, num3); - Span span187 = CollectionsMarshal.AsSpan(list316); - span187[0] = null; - span187[1] = null; - span187[2] = null; - span187[3] = null; - span187[4] = null; - span187[5] = new QuestWorkValue((byte)12, null, EQuestWorkMode.Bitwise); + index2 = 6; + List list316 = new List(index2); + CollectionsMarshal.SetCount(list316, index2); + Span span316 = CollectionsMarshal.AsSpan(list316); + num4 = 0; + span316[num4] = null; + num4++; + span316[num4] = null; + num4++; + span316[num4] = null; + num4++; + span316[num4] = null; + num4++; + span316[num4] = null; + num4++; + span316[num4] = new QuestWorkValue((byte)12, null, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list316; reference228 = questStep16; - span184[3] = new QuestStep(EInteractionType.Interact, 1054371u, new Vector3(18.661804f, 2.0028546f, -93.0343f), 1309); + num2++; + span312[num2] = new QuestStep(EInteractionType.Interact, 1054371u, new Vector3(18.661804f, 2.0028546f, -93.0343f), 1309); obj191.Steps = list312; reference225 = obj191; - ref QuestSequence reference229 = ref span172[6]; + num++; + ref QuestSequence reference229 = ref span296[num]; QuestSequence obj194 = new QuestSequence { Sequence = 6 @@ -372182,8 +452762,9 @@ public static class AssemblyQuestLoader num2 = 2; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - Span span188 = CollectionsMarshal.AsSpan(list317); - ref QuestStep reference230 = ref span188[0]; + Span span317 = CollectionsMarshal.AsSpan(list317); + num3 = 0; + ref QuestStep reference230 = ref span317[num3]; QuestStep obj195 = new QuestStep(EInteractionType.Interact, 1054364u, new Vector3(-53.97119f, 5.798081f, -100.93848f), 133) { TargetTerritoryId = (ushort)1309, @@ -372196,69 +452777,82 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - CollectionsMarshal.AsSpan(list318)[0] = 1309; + num4 = 1; + List list318 = new List(num4); + CollectionsMarshal.SetCount(list318, num4); + Span span318 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span318[index2] = 1309; skipStepConditions3.InTerritory = list318; skipConditions12.StepIf = skipStepConditions3; SkipAetheryteCondition obj196 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 3; - List list319 = new List(num3); - CollectionsMarshal.SetCount(list319, num3); - Span span189 = CollectionsMarshal.AsSpan(list319); - span189[0] = 132; - span189[1] = 133; - span189[2] = 1309; + index2 = 3; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + Span span319 = CollectionsMarshal.AsSpan(list319); + num4 = 0; + span319[num4] = 132; + num4++; + span319[num4] = 133; + num4++; + span319[num4] = 1309; obj196.InTerritory = list319; skipConditions12.AetheryteShortcutIf = obj196; obj195.SkipConditions = skipConditions12; reference230 = obj195; - ref QuestStep reference231 = ref span188[1]; + num3++; + ref QuestStep reference231 = ref span317[num3]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1054374u, new Vector3(11.48999f, 0.0028544795f, -12.64978f), 1309); - num3 = 7; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - Span span190 = CollectionsMarshal.AsSpan(list320); - span190[0] = new DialogueChoice + num4 = 7; + List list320 = new List(num4); + CollectionsMarshal.SetCount(list320, num4); + Span span320 = CollectionsMarshal.AsSpan(list320); + index2 = 0; + span320[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESXMX101_05231_Q2_000_000"), Answer = new ExcelRef("TEXT_FESXMX101_05231_A2_000_001") }; - span190[1] = new DialogueChoice + index2++; + span320[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_FESXMX101_05231_SYSTEM_000_124") }; - span190[2] = new DialogueChoice + index2++; + span320[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESXMX101_05231_Q3_000_000"), Answer = new ExcelRef("TEXT_FESXMX101_05231_A3_000_003") }; - span190[3] = new DialogueChoice + index2++; + span320[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESXMX101_05231_Q4_000_000"), Answer = new ExcelRef("TEXT_FESXMX101_05231_A4_000_002") }; - span190[4] = new DialogueChoice + index2++; + span320[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESXMX101_05231_Q5_000_000"), Answer = new ExcelRef("TEXT_FESXMX101_05231_A5_000_003") }; - span190[5] = new DialogueChoice + index2++; + span320[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESXMX101_05231_Q6_000_000"), Answer = new ExcelRef("TEXT_FESXMX101_05231_A6_000_001") }; - span190[6] = new DialogueChoice + index2++; + span320[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESXMX101_05231_Q7_000_000"), @@ -372268,15 +452862,18 @@ public static class AssemblyQuestLoader reference231 = questStep17; obj194.Steps = list317; reference229 = obj194; - ref QuestSequence reference232 = ref span172[7]; + num++; + ref QuestSequence reference232 = ref span296[num]; QuestSequence obj197 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - ref QuestStep reference233 = ref CollectionsMarshal.AsSpan(list321)[0]; + num3 = 1; + List list321 = new List(num3); + CollectionsMarshal.SetCount(list321, num3); + Span span321 = CollectionsMarshal.AsSpan(list321); + num2 = 0; + ref QuestStep reference233 = ref span321[num2]; QuestStep obj198 = new QuestStep(EInteractionType.CompleteQuest, 1054361u, new Vector3(-50.06488f, 6.4999995f, -89.58569f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -372291,12 +452888,14 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 2; - List list322 = new List(num3); - CollectionsMarshal.SetCount(list322, num3); - Span span191 = CollectionsMarshal.AsSpan(list322); - span191[0] = 132; - span191[1] = 133; + index2 = 2; + List list322 = new List(index2); + CollectionsMarshal.SetCount(list322, index2); + Span span322 = CollectionsMarshal.AsSpan(list322); + num4 = 0; + span322[num4] = 132; + num4++; + span322[num4] = 133; obj199.InTerritory = list322; skipConditions13.AetheryteShortcutIf = obj199; obj198.SkipConditions = skipConditions13; @@ -372310,13 +452909,16 @@ public static class AssemblyQuestLoader num = 1; List list323 = new List(num); CollectionsMarshal.SetCount(list323, num); - CollectionsMarshal.AsSpan(list323)[0] = "liza"; + Span span323 = CollectionsMarshal.AsSpan(list323); + index = 0; + span323[index] = "liza"; questRoot33.Author = list323; - num = 6; - List list324 = new List(num); - CollectionsMarshal.SetCount(list324, num); - Span span192 = CollectionsMarshal.AsSpan(list324); - ref QuestSequence reference234 = ref span192[0]; + index = 6; + List list324 = new List(index); + CollectionsMarshal.SetCount(list324, index); + Span span324 = CollectionsMarshal.AsSpan(list324); + num = 0; + ref QuestSequence reference234 = ref span324[num]; QuestSequence obj200 = new QuestSequence { Sequence = 0 @@ -372324,7 +452926,9 @@ public static class AssemblyQuestLoader num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051950u, new Vector3(-15.335327f, -5.9003114E-09f, 31.3573f), 1185) + Span span325 = CollectionsMarshal.AsSpan(list325); + num3 = 0; + span325[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051950u, new Vector3(-15.335327f, -5.9003114E-09f, 31.3573f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -372337,22 +452941,26 @@ public static class AssemblyQuestLoader }; obj200.Steps = list325; reference234 = obj200; - ref QuestSequence reference235 = ref span192[1]; + num++; + ref QuestSequence reference235 = ref span324[num]; QuestSequence obj201 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list326 = new List(num2); - CollectionsMarshal.SetCount(list326, num2); - CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.Interact, 1052166u, new Vector3(567.6814f, -131.41925f, 610.1013f), 1189) + num3 = 1; + List list326 = new List(num3); + CollectionsMarshal.SetCount(list326, num3); + Span span326 = CollectionsMarshal.AsSpan(list326); + num2 = 0; + span326[num2] = new QuestStep(EInteractionType.Interact, 1052166u, new Vector3(567.6814f, -131.41925f, 610.1013f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; obj201.Steps = list326; reference235 = obj201; - ref QuestSequence reference236 = ref span192[2]; + num++; + ref QuestSequence reference236 = ref span324[num]; QuestSequence obj202 = new QuestSequence { Sequence = 2 @@ -372360,24 +452968,30 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 2014454u, new Vector3(-525.8412f, -158.37347f, 541.46643f), 1189) + Span span327 = CollectionsMarshal.AsSpan(list327); + num3 = 0; + span327[num3] = new QuestStep(EInteractionType.Interact, 2014454u, new Vector3(-525.8412f, -158.37347f, 541.46643f), 1189) { Fly = true }; obj202.Steps = list327; reference236 = obj202; - ref QuestSequence reference237 = ref span192[3]; + num++; + ref QuestSequence reference237 = ref span324[num]; QuestSequence obj203 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Interact, 1051954u, new Vector3(-531.57855f, -152.53433f, 645.777f), 1189); + num3 = 1; + List list328 = new List(num3); + CollectionsMarshal.SetCount(list328, num3); + Span span328 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span328[num2] = new QuestStep(EInteractionType.Interact, 1051954u, new Vector3(-531.57855f, -152.53433f, 645.777f), 1189); obj203.Steps = list328; reference237 = obj203; - ref QuestSequence reference238 = ref span192[4]; + num++; + ref QuestSequence reference238 = ref span324[num]; QuestSequence obj204 = new QuestSequence { Sequence = 4 @@ -372385,7 +452999,9 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Duty, null, null, 1189) + Span span329 = CollectionsMarshal.AsSpan(list329); + num3 = 0; + span329[num3] = new QuestStep(EInteractionType.Duty, null, null, 1189) { DutyOptions = new DutyOptions { @@ -372394,15 +453010,18 @@ public static class AssemblyQuestLoader }; obj204.Steps = list329; reference238 = obj204; - ref QuestSequence reference239 = ref span192[5]; + num++; + ref QuestSequence reference239 = ref span324[num]; QuestSequence obj205 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list330 = new List(num2); - CollectionsMarshal.SetCount(list330, num2); - CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051956u, new Vector3(1.8463135f, 41.99997f, -2.456726f), 1264) + num3 = 1; + List list330 = new List(num3); + CollectionsMarshal.SetCount(list330, num3); + Span span330 = CollectionsMarshal.AsSpan(list330); + num2 = 0; + span330[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051956u, new Vector3(1.8463135f, 41.99997f, -2.456726f), 1264) { StopDistance = 7f, NextQuestId = new QuestId(5234) @@ -372416,13 +453035,16 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - CollectionsMarshal.AsSpan(list331)[0] = "liza"; + Span span331 = CollectionsMarshal.AsSpan(list331); + index = 0; + span331[index] = "liza"; questRoot34.Author = list331; - num = 5; - List list332 = new List(num); - CollectionsMarshal.SetCount(list332, num); - Span span193 = CollectionsMarshal.AsSpan(list332); - ref QuestSequence reference240 = ref span193[0]; + index = 5; + List list332 = new List(index); + CollectionsMarshal.SetCount(list332, index); + Span span332 = CollectionsMarshal.AsSpan(list332); + num = 0; + ref QuestSequence reference240 = ref span332[num]; QuestSequence obj206 = new QuestSequence { Sequence = 0 @@ -372430,27 +453052,33 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051957u, new Vector3(-1.6327515f, 41.999977f, -0.7172241f), 1264) + Span span333 = CollectionsMarshal.AsSpan(list333); + num3 = 0; + span333[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051957u, new Vector3(-1.6327515f, 41.999977f, -0.7172241f), 1264) { StopDistance = 6f }; obj206.Steps = list333; reference240 = obj206; - ref QuestSequence reference241 = ref span193[1]; + num++; + ref QuestSequence reference241 = ref span332[num]; QuestSequence obj207 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list334 = new List(num2); - CollectionsMarshal.SetCount(list334, num2); - CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1051957u, new Vector3(-1.6327515f, 41.999977f, -0.7172241f), 1264) + num3 = 1; + List list334 = new List(num3); + CollectionsMarshal.SetCount(list334, num3); + Span span334 = CollectionsMarshal.AsSpan(list334); + num2 = 0; + span334[num2] = new QuestStep(EInteractionType.Interact, 1051957u, new Vector3(-1.6327515f, 41.999977f, -0.7172241f), 1264) { StopDistance = 6f }; obj207.Steps = list334; reference241 = obj207; - ref QuestSequence reference242 = ref span193[2]; + num++; + ref QuestSequence reference242 = ref span332[num]; QuestSequence obj208 = new QuestSequence { Sequence = 2 @@ -372458,66 +453086,96 @@ public static class AssemblyQuestLoader num2 = 4; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - Span span194 = CollectionsMarshal.AsSpan(list335); - ref QuestStep reference243 = ref span194[0]; + Span span335 = CollectionsMarshal.AsSpan(list335); + num3 = 0; + ref QuestStep reference243 = ref span335[num3]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1051959u, new Vector3(-15.854187f, 41.99999f, -4.6845703f), 1264); - num3 = 6; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - Span span195 = CollectionsMarshal.AsSpan(list336); - span195[0] = null; - span195[1] = null; - span195[2] = null; - span195[3] = null; - span195[4] = null; - span195[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list336 = new List(num4); + CollectionsMarshal.SetCount(list336, num4); + Span span336 = CollectionsMarshal.AsSpan(list336); + index2 = 0; + span336[index2] = null; + index2++; + span336[index2] = null; + index2++; + span336[index2] = null; + index2++; + span336[index2] = null; + index2++; + span336[index2] = null; + index2++; + span336[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list336; reference243 = questStep18; - ref QuestStep reference244 = ref span194[1]; + num3++; + ref QuestStep reference244 = ref span335[num3]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1051961u, new Vector3(-13.931519f, 41.999992f, -49.027283f), 1264); - num3 = 6; - List list337 = new List(num3); - CollectionsMarshal.SetCount(list337, num3); - Span span196 = CollectionsMarshal.AsSpan(list337); - span196[0] = null; - span196[1] = null; - span196[2] = null; - span196[3] = null; - span196[4] = null; - span196[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list337 = new List(index2); + CollectionsMarshal.SetCount(list337, index2); + Span span337 = CollectionsMarshal.AsSpan(list337); + num4 = 0; + span337[num4] = null; + num4++; + span337[num4] = null; + num4++; + span337[num4] = null; + num4++; + span337[num4] = null; + num4++; + span337[num4] = null; + num4++; + span337[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list337; reference244 = questStep19; - ref QuestStep reference245 = ref span194[2]; + num3++; + ref QuestStep reference245 = ref span335[num3]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1051960u, new Vector3(15.457336f, 43.499985f, -137.25494f), 1264); - num3 = 6; - List list338 = new List(num3); - CollectionsMarshal.SetCount(list338, num3); - Span span197 = CollectionsMarshal.AsSpan(list338); - span197[0] = null; - span197[1] = null; - span197[2] = null; - span197[3] = null; - span197[4] = null; - span197[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list338 = new List(num4); + CollectionsMarshal.SetCount(list338, num4); + Span span338 = CollectionsMarshal.AsSpan(list338); + index2 = 0; + span338[index2] = null; + index2++; + span338[index2] = null; + index2++; + span338[index2] = null; + index2++; + span338[index2] = null; + index2++; + span338[index2] = null; + index2++; + span338[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep20.CompletionQuestVariablesFlags = list338; reference245 = questStep20; - ref QuestStep reference246 = ref span194[3]; + num3++; + ref QuestStep reference246 = ref span335[num3]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 2014455u, new Vector3(71.213745f, 43.411865f, -84.00098f), 1264); - num3 = 6; - List list339 = new List(num3); - CollectionsMarshal.SetCount(list339, num3); - Span span198 = CollectionsMarshal.AsSpan(list339); - span198[0] = null; - span198[1] = null; - span198[2] = null; - span198[3] = null; - span198[4] = null; - span198[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list339 = new List(index2); + CollectionsMarshal.SetCount(list339, index2); + Span span339 = CollectionsMarshal.AsSpan(list339); + num4 = 0; + span339[num4] = null; + num4++; + span339[num4] = null; + num4++; + span339[num4] = null; + num4++; + span339[num4] = null; + num4++; + span339[num4] = null; + num4++; + span339[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep21.CompletionQuestVariablesFlags = list339; - num3 = 1; - List list340 = new List(num3); - CollectionsMarshal.SetCount(list340, num3); - CollectionsMarshal.AsSpan(list340)[0] = new DialogueChoice + num4 = 1; + List list340 = new List(num4); + CollectionsMarshal.SetCount(list340, num4); + Span span340 = CollectionsMarshal.AsSpan(list340); + index2 = 0; + span340[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGEA102_05234_Q2_000_000"), @@ -372527,18 +453185,22 @@ public static class AssemblyQuestLoader reference246 = questStep21; obj208.Steps = list335; reference242 = obj208; - ref QuestSequence reference247 = ref span193[3]; + num++; + ref QuestSequence reference247 = ref span332[num]; QuestSequence obj209 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list341 = new List(num2); - CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1051958u, new Vector3(1.8463135f, 41.99997f, -2.456726f), 1264); + num3 = 1; + List list341 = new List(num3); + CollectionsMarshal.SetCount(list341, num3); + Span span341 = CollectionsMarshal.AsSpan(list341); + num2 = 0; + span341[num2] = new QuestStep(EInteractionType.Interact, 1051958u, new Vector3(1.8463135f, 41.99997f, -2.456726f), 1264); obj209.Steps = list341; reference247 = obj209; - ref QuestSequence reference248 = ref span193[4]; + num++; + ref QuestSequence reference248 = ref span332[num]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue @@ -372546,7 +453208,9 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051965u, new Vector3(1.8463135f, 41.99997f, -2.456726f), 1264) + Span span342 = CollectionsMarshal.AsSpan(list342); + num3 = 0; + span342[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051965u, new Vector3(1.8463135f, 41.99997f, -2.456726f), 1264) { NextQuestId = new QuestId(5235) }; @@ -372559,24 +453223,30 @@ public static class AssemblyQuestLoader num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - CollectionsMarshal.AsSpan(list343)[0] = "liza"; + Span span343 = CollectionsMarshal.AsSpan(list343); + index = 0; + span343[index] = "liza"; questRoot35.Author = list343; - num = 6; - List list344 = new List(num); - CollectionsMarshal.SetCount(list344, num); - Span span199 = CollectionsMarshal.AsSpan(list344); - ref QuestSequence reference249 = ref span199[0]; + index = 6; + List list344 = new List(index); + CollectionsMarshal.SetCount(list344, index); + Span span344 = CollectionsMarshal.AsSpan(list344); + num = 0; + ref QuestSequence reference249 = ref span344[num]; QuestSequence obj211 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list345 = new List(num2); - CollectionsMarshal.SetCount(list345, num2); - CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051964u, new Vector3(0.56451416f, 41.999973f, -5.2339478f), 1264); + num3 = 1; + List list345 = new List(num3); + CollectionsMarshal.SetCount(list345, num3); + Span span345 = CollectionsMarshal.AsSpan(list345); + num2 = 0; + span345[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051964u, new Vector3(0.56451416f, 41.999973f, -5.2339478f), 1264); obj211.Steps = list345; reference249 = obj211; - ref QuestSequence reference250 = ref span199[1]; + num++; + ref QuestSequence reference250 = ref span344[num]; QuestSequence obj212 = new QuestSequence { Sequence = 1 @@ -372584,22 +453254,27 @@ public static class AssemblyQuestLoader num2 = 1; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 1051967u, new Vector3(564.72107f, -131.41925f, 609.21643f), 1189) + Span span346 = CollectionsMarshal.AsSpan(list346); + num3 = 0; + span346[num3] = new QuestStep(EInteractionType.Interact, 1051967u, new Vector3(564.72107f, -131.41925f, 609.21643f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; obj212.Steps = list346; reference250 = obj212; - ref QuestSequence reference251 = ref span199[2]; + num++; + ref QuestSequence reference251 = ref span344[num]; QuestSequence obj213 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 2014464u, new Vector3(-412.2835f, 2.9754639f, -57.846985f), 1185) + num3 = 1; + List list347 = new List(num3); + CollectionsMarshal.SetCount(list347, num3); + Span span347 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + span347[num2] = new QuestStep(EInteractionType.Interact, 2014464u, new Vector3(-412.2835f, 2.9754639f, -57.846985f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -372610,7 +453285,8 @@ public static class AssemblyQuestLoader }; obj213.Steps = list347; reference251 = obj213; - ref QuestSequence reference252 = ref span199[3]; + num++; + ref QuestSequence reference252 = ref span344[num]; QuestSequence obj214 = new QuestSequence { Sequence = 3 @@ -372618,21 +453294,26 @@ public static class AssemblyQuestLoader num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.Interact, 1051971u, new Vector3(-414.69446f, 3f, -55.10034f), 1185) + Span span348 = CollectionsMarshal.AsSpan(list348); + num3 = 0; + span348[num3] = new QuestStep(EInteractionType.Interact, 1051971u, new Vector3(-414.69446f, 3f, -55.10034f), 1185) { StopDistance = 5f }; obj214.Steps = list348; reference252 = obj214; - ref QuestSequence reference253 = ref span199[4]; + num++; + ref QuestSequence reference253 = ref span344[num]; QuestSequence obj215 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list349 = new List(num2); - CollectionsMarshal.SetCount(list349, num2); - CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.Interact, 1051971u, new Vector3(93.53023f, -14f, 50.456287f), 1185) + num3 = 1; + List list349 = new List(num3); + CollectionsMarshal.SetCount(list349, num3); + Span span349 = CollectionsMarshal.AsSpan(list349); + num2 = 0; + span349[num2] = new QuestStep(EInteractionType.Interact, 1051971u, new Vector3(93.53023f, -14f, 50.456287f), 1185) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -372643,7 +453324,8 @@ public static class AssemblyQuestLoader }; obj215.Steps = list349; reference253 = obj215; - ref QuestSequence reference254 = ref span199[5]; + num++; + ref QuestSequence reference254 = ref span344[num]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue @@ -372651,7 +453333,9 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051972u, new Vector3(123.79639f, -14f, 27.115234f), 1185) + Span span350 = CollectionsMarshal.AsSpan(list350); + num3 = 0; + span350[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051972u, new Vector3(123.79639f, -14f, 27.115234f), 1185) { StopDistance = 5f, NextQuestId = new QuestId(5236) @@ -372665,27 +453349,33 @@ public static class AssemblyQuestLoader num = 1; List list351 = new List(num); CollectionsMarshal.SetCount(list351, num); - CollectionsMarshal.AsSpan(list351)[0] = "liza"; + Span span351 = CollectionsMarshal.AsSpan(list351); + index = 0; + span351[index] = "liza"; questRoot36.Author = list351; - num = 7; - List list352 = new List(num); - CollectionsMarshal.SetCount(list352, num); - Span span200 = CollectionsMarshal.AsSpan(list352); - ref QuestSequence reference255 = ref span200[0]; + index = 7; + List list352 = new List(index); + CollectionsMarshal.SetCount(list352, index); + Span span352 = CollectionsMarshal.AsSpan(list352); + num = 0; + ref QuestSequence reference255 = ref span352[num]; QuestSequence obj217 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051974u, new Vector3(121.782104f, -14f, 29.587158f), 1185) + num3 = 1; + List list353 = new List(num3); + CollectionsMarshal.SetCount(list353, num3); + Span span353 = CollectionsMarshal.AsSpan(list353); + num2 = 0; + span353[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051974u, new Vector3(121.782104f, -14f, 29.587158f), 1185) { StopDistance = 7f }; obj217.Steps = list353; reference255 = obj217; - ref QuestSequence reference256 = ref span200[1]; + num++; + ref QuestSequence reference256 = ref span352[num]; QuestSequence obj218 = new QuestSequence { Sequence = 1 @@ -372693,68 +453383,89 @@ public static class AssemblyQuestLoader num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1052148u, new Vector3(-527.245f, -152.47649f, 663.6301f), 1189) + Span span354 = CollectionsMarshal.AsSpan(list354); + num3 = 0; + span354[num3] = new QuestStep(EInteractionType.Interact, 1052148u, new Vector3(-527.245f, -152.47649f, 663.6301f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; obj218.Steps = list354; reference256 = obj218; - ref QuestSequence reference257 = ref span200[2]; + num++; + ref QuestSequence reference257 = ref span352[num]; QuestSequence obj219 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list355 = new List(num2); - CollectionsMarshal.SetCount(list355, num2); - Span span201 = CollectionsMarshal.AsSpan(list355); - ref QuestStep reference258 = ref span201[0]; + num3 = 3; + List list355 = new List(num3); + CollectionsMarshal.SetCount(list355, num3); + Span span355 = CollectionsMarshal.AsSpan(list355); + num2 = 0; + ref QuestStep reference258 = ref span355[num2]; QuestStep obj220 = new QuestStep(EInteractionType.Interact, 2014450u, new Vector3(-528.37415f, -152.20874f, 671.13745f), 1189) { TargetTerritoryId = (ushort)1265 }; SkipConditions skipConditions14 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list356 = new List(num3); - CollectionsMarshal.SetCount(list356, num3); - CollectionsMarshal.AsSpan(list356)[0] = 1265; + index2 = 1; + List list356 = new List(index2); + CollectionsMarshal.SetCount(list356, index2); + Span span356 = CollectionsMarshal.AsSpan(list356); + num4 = 0; + span356[num4] = 1265; skipStepConditions4.InTerritory = list356; skipConditions14.StepIf = skipStepConditions4; obj220.SkipConditions = skipConditions14; reference258 = obj220; - ref QuestStep reference259 = ref span201[1]; + num2++; + ref QuestStep reference259 = ref span355[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1052131u, new Vector3(-23.849854f, 43f, -25.192688f), 1265); - num3 = 6; - List list357 = new List(num3); - CollectionsMarshal.SetCount(list357, num3); - Span span202 = CollectionsMarshal.AsSpan(list357); - span202[0] = null; - span202[1] = null; - span202[2] = null; - span202[3] = null; - span202[4] = null; - span202[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list357 = new List(num4); + CollectionsMarshal.SetCount(list357, num4); + Span span357 = CollectionsMarshal.AsSpan(list357); + index2 = 0; + span357[index2] = null; + index2++; + span357[index2] = null; + index2++; + span357[index2] = null; + index2++; + span357[index2] = null; + index2++; + span357[index2] = null; + index2++; + span357[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep22.CompletionQuestVariablesFlags = list357; reference259 = questStep22; - ref QuestStep reference260 = ref span201[2]; + num2++; + ref QuestStep reference260 = ref span355[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1052132u, new Vector3(-1.1139526f, 41.999992f, -110.15497f), 1265); - num3 = 6; - List list358 = new List(num3); - CollectionsMarshal.SetCount(list358, num3); - Span span203 = CollectionsMarshal.AsSpan(list358); - span203[0] = null; - span203[1] = null; - span203[2] = null; - span203[3] = null; - span203[4] = null; - span203[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list358 = new List(index2); + CollectionsMarshal.SetCount(list358, index2); + Span span358 = CollectionsMarshal.AsSpan(list358); + num4 = 0; + span358[num4] = null; + num4++; + span358[num4] = null; + num4++; + span358[num4] = null; + num4++; + span358[num4] = null; + num4++; + span358[num4] = null; + num4++; + span358[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep23.CompletionQuestVariablesFlags = list358; reference260 = questStep23; obj219.Steps = list355; reference257 = obj219; - ref QuestSequence reference261 = ref span200[3]; + num++; + ref QuestSequence reference261 = ref span352[num]; QuestSequence obj221 = new QuestSequence { Sequence = 3 @@ -372762,64 +453473,77 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.Interact, 1052139u, new Vector3(11.459534f, 41.99999f, -50.644714f), 1265); + Span span359 = CollectionsMarshal.AsSpan(list359); + num3 = 0; + span359[num3] = new QuestStep(EInteractionType.Interact, 1052139u, new Vector3(11.459534f, 41.99999f, -50.644714f), 1265); obj221.Steps = list359; reference261 = obj221; - ref QuestSequence reference262 = ref span200[4]; + num++; + ref QuestSequence reference262 = ref span352[num]; QuestSequence obj222 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list360 = new List(num2); - CollectionsMarshal.SetCount(list360, num2); - ref QuestStep reference263 = ref CollectionsMarshal.AsSpan(list360)[0]; + num3 = 1; + List list360 = new List(num3); + CollectionsMarshal.SetCount(list360, num3); + Span span360 = CollectionsMarshal.AsSpan(list360); + num2 = 0; + ref QuestStep reference263 = ref span360[num2]; QuestStep obj223 = new QuestStep(EInteractionType.Interact, 1051948u, new Vector3(11.36792f, 41.99999f, -50.55316f), 1265) { StopDistance = 5f }; - num3 = 5; - List list361 = new List(num3); - CollectionsMarshal.SetCount(list361, num3); - Span span204 = CollectionsMarshal.AsSpan(list361); - span204[0] = new DialogueChoice + num4 = 5; + List list361 = new List(num4); + CollectionsMarshal.SetCount(list361, num4); + Span span361 = CollectionsMarshal.AsSpan(list361); + index2 = 0; + span361[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGEA104_05236_Q1_000_000") }; - span204[1] = new DialogueChoice + index2++; + span361[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGEA104_05236_Q2_000_000") }; - span204[2] = new DialogueChoice + index2++; + span361[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGEA104_05236_Q3_000_000"), Answer = new ExcelRef("TEXT_KINGEA104_05236_A3_000_002") }; - span204[3] = new DialogueChoice + index2++; + span361[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGEA104_05236_Q5_000_000"), Answer = new ExcelRef("TEXT_KINGEA104_05236_A5_000_002") }; - span204[4] = new DialogueChoice + index2++; + span361[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGEA104_05236_Q7_000_000"), Answer = new ExcelRef("TEXT_KINGEA104_05236_A7_000_001") }; obj223.DialogueChoices = list361; - num3 = 1; - List list362 = new List(num3); - CollectionsMarshal.SetCount(list362, num3); - CollectionsMarshal.AsSpan(list362)[0] = 0u; + index2 = 1; + List list362 = new List(index2); + CollectionsMarshal.SetCount(list362, index2); + Span span362 = CollectionsMarshal.AsSpan(list362); + num4 = 0; + span362[num4] = 0u; obj223.PointMenuChoices = list362; reference263 = obj223; obj222.Steps = list360; reference262 = obj222; - ref QuestSequence reference264 = ref span200[5]; + num++; + ref QuestSequence reference264 = ref span352[num]; QuestSequence obj224 = new QuestSequence { Sequence = 5 @@ -372827,18 +453551,23 @@ public static class AssemblyQuestLoader num2 = 1; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.Interact, 1052163u, new Vector3(5.9662476f, 41.999992f, -47.226746f), 1265); + Span span363 = CollectionsMarshal.AsSpan(list363); + num3 = 0; + span363[num3] = new QuestStep(EInteractionType.Interact, 1052163u, new Vector3(5.9662476f, 41.999992f, -47.226746f), 1265); obj224.Steps = list363; reference264 = obj224; - ref QuestSequence reference265 = ref span200[6]; + num++; + ref QuestSequence reference265 = ref span352[num]; QuestSequence obj225 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list364 = new List(num2); - CollectionsMarshal.SetCount(list364, num2); - CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052145u, new Vector3(139.45215f, 42f, -354.84857f), 1185) + num3 = 1; + List list364 = new List(num3); + CollectionsMarshal.SetCount(list364, num3); + Span span364 = CollectionsMarshal.AsSpan(list364); + num2 = 0; + span364[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052145u, new Vector3(139.45215f, 42f, -354.84857f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -372856,15 +453585,18 @@ public static class AssemblyQuestLoader num = 1; List list365 = new List(num); CollectionsMarshal.SetCount(list365, num); - CollectionsMarshal.AsSpan(list365)[0] = "liza"; + Span span365 = CollectionsMarshal.AsSpan(list365); + index = 0; + span365[index] = "liza"; questRoot37.Author = list365; questRoot37.IsSeasonalQuest = true; questRoot37.SeasonalQuestExpiry = new DateTime(2025, 3, 17, 0, 0, 0, DateTimeKind.Utc); - num = 4; - List list366 = new List(num); - CollectionsMarshal.SetCount(list366, num); - Span span205 = CollectionsMarshal.AsSpan(list366); - ref QuestSequence reference266 = ref span205[0]; + index = 4; + List list366 = new List(index); + CollectionsMarshal.SetCount(list366, index); + Span span366 = CollectionsMarshal.AsSpan(list366); + num = 0; + ref QuestSequence reference266 = ref span366[num]; QuestSequence obj226 = new QuestSequence { Sequence = 0 @@ -372872,7 +453604,9 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051884u, new Vector3(-35.111023f, 5.000001f, -130.35785f), 130) + Span span367 = CollectionsMarshal.AsSpan(list367); + num3 = 0; + span367[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051884u, new Vector3(-35.111023f, 5.000001f, -130.35785f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -372885,15 +453619,18 @@ public static class AssemblyQuestLoader }; obj226.Steps = list367; reference266 = obj226; - ref QuestSequence reference267 = ref span205[1]; + num++; + ref QuestSequence reference267 = ref span366[num]; QuestSequence obj227 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list368 = new List(num2); - CollectionsMarshal.SetCount(list368, num2); - CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.Interact, 1051889u, new Vector3(-51.499268f, 18f, 60.471436f), 131) + num3 = 1; + List list368 = new List(num3); + CollectionsMarshal.SetCount(list368, num3); + Span span368 = CollectionsMarshal.AsSpan(list368); + num2 = 0; + span368[num2] = new QuestStep(EInteractionType.Interact, 1051889u, new Vector3(-51.499268f, 18f, 60.471436f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -372911,7 +453648,8 @@ public static class AssemblyQuestLoader }; obj227.Steps = list368; reference267 = obj227; - ref QuestSequence reference268 = ref span205[2]; + num++; + ref QuestSequence reference268 = ref span366[num]; QuestSequence obj228 = new QuestSequence { Sequence = 2 @@ -372919,8 +453657,9 @@ public static class AssemblyQuestLoader num2 = 3; List list369 = new List(num2); CollectionsMarshal.SetCount(list369, num2); - Span span206 = CollectionsMarshal.AsSpan(list369); - ref QuestStep reference269 = ref span206[0]; + Span span369 = CollectionsMarshal.AsSpan(list369); + num3 = 0; + ref QuestStep reference269 = ref span369[num3]; QuestStep obj229 = new QuestStep(EInteractionType.Interact, 1051892u, new Vector3(130.05261f, 7.992012f, 75.94409f), 131) { AethernetShortcut = new AethernetShortcut @@ -372929,19 +453668,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - num3 = 6; - List list370 = new List(num3); - CollectionsMarshal.SetCount(list370, num3); - Span span207 = CollectionsMarshal.AsSpan(list370); - span207[0] = null; - span207[1] = null; - span207[2] = null; - span207[3] = null; - span207[4] = null; - span207[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list370 = new List(num4); + CollectionsMarshal.SetCount(list370, num4); + Span span370 = CollectionsMarshal.AsSpan(list370); + index2 = 0; + span370[index2] = null; + index2++; + span370[index2] = null; + index2++; + span370[index2] = null; + index2++; + span370[index2] = null; + index2++; + span370[index2] = null; + index2++; + span370[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj229.CompletionQuestVariablesFlags = list370; reference269 = obj229; - ref QuestStep reference270 = ref span206[1]; + num3++; + ref QuestStep reference270 = ref span369[num3]; QuestStep obj230 = new QuestStep(EInteractionType.Interact, 1051891u, new Vector3(148.39392f, 4f, -12.222534f), 131) { AethernetShortcut = new AethernetShortcut @@ -372950,48 +453696,66 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - num3 = 6; - List list371 = new List(num3); - CollectionsMarshal.SetCount(list371, num3); - Span span208 = CollectionsMarshal.AsSpan(list371); - span208[0] = null; - span208[1] = null; - span208[2] = null; - span208[3] = null; - span208[4] = null; - span208[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list371 = new List(index2); + CollectionsMarshal.SetCount(list371, index2); + Span span371 = CollectionsMarshal.AsSpan(list371); + num4 = 0; + span371[num4] = null; + num4++; + span371[num4] = null; + num4++; + span371[num4] = null; + num4++; + span371[num4] = null; + num4++; + span371[num4] = null; + num4++; + span371[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj230.CompletionQuestVariablesFlags = list371; reference270 = obj230; - ref QuestStep reference271 = ref span206[2]; + num3++; + ref QuestStep reference271 = ref span369[num3]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1051893u, new Vector3(107.59131f, 4f, -111.436646f), 131); - num3 = 6; - List list372 = new List(num3); - CollectionsMarshal.SetCount(list372, num3); - Span span209 = CollectionsMarshal.AsSpan(list372); - span209[0] = null; - span209[1] = null; - span209[2] = null; - span209[3] = null; - span209[4] = null; - span209[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list372 = new List(num4); + CollectionsMarshal.SetCount(list372, num4); + Span span372 = CollectionsMarshal.AsSpan(list372); + index2 = 0; + span372[index2] = null; + index2++; + span372[index2] = null; + index2++; + span372[index2] = null; + index2++; + span372[index2] = null; + index2++; + span372[index2] = null; + index2++; + span372[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep24.CompletionQuestVariablesFlags = list372; reference271 = questStep24; obj228.Steps = list369; reference268 = obj228; - ref QuestSequence reference272 = ref span205[3]; + num++; + ref QuestSequence reference272 = ref span366[num]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list373 = new List(num2); - CollectionsMarshal.SetCount(list373, num2); - ref QuestStep reference273 = ref CollectionsMarshal.AsSpan(list373)[0]; - QuestStep questStep25 = new QuestStep(EInteractionType.CompleteQuest, 1051894u, new Vector3(0.869751f, 14.000016f, -21.591614f), 131); num3 = 1; - List list374 = new List(num3); - CollectionsMarshal.SetCount(list374, num3); - CollectionsMarshal.AsSpan(list374)[0] = new DialogueChoice + List list373 = new List(num3); + CollectionsMarshal.SetCount(list373, num3); + Span span373 = CollectionsMarshal.AsSpan(list373); + num2 = 0; + ref QuestStep reference273 = ref span373[num2]; + QuestStep questStep25 = new QuestStep(EInteractionType.CompleteQuest, 1051894u, new Vector3(0.869751f, 14.000016f, -21.591614f), 131); + index2 = 1; + List list374 = new List(index2); + CollectionsMarshal.SetCount(list374, index2); + Span span374 = CollectionsMarshal.AsSpan(list374); + num4 = 0; + span374[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESPDX001_05237_Q2_000_000"), @@ -373009,15 +453773,18 @@ public static class AssemblyQuestLoader num = 1; List list375 = new List(num); CollectionsMarshal.SetCount(list375, num); - CollectionsMarshal.AsSpan(list375)[0] = "liza"; + Span span375 = CollectionsMarshal.AsSpan(list375); + index = 0; + span375[index] = "liza"; questRoot38.Author = list375; questRoot38.IsSeasonalQuest = true; questRoot38.SeasonalQuestExpiry = new DateTime(2025, 3, 11, 0, 0, 0, DateTimeKind.Utc); - num = 5; - List list376 = new List(num); - CollectionsMarshal.SetCount(list376, num); - Span span210 = CollectionsMarshal.AsSpan(list376); - ref QuestSequence reference274 = ref span210[0]; + index = 5; + List list376 = new List(index); + CollectionsMarshal.SetCount(list376, index); + Span span376 = CollectionsMarshal.AsSpan(list376); + num = 0; + ref QuestSequence reference274 = ref span376[num]; QuestSequence obj232 = new QuestSequence { Sequence = 0 @@ -373025,7 +453792,9 @@ public static class AssemblyQuestLoader num2 = 1; List list377 = new List(num2); CollectionsMarshal.SetCount(list377, num2); - ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list377)[0]; + Span span377 = CollectionsMarshal.AsSpan(list377); + num3 = 0; + ref QuestStep reference275 = ref span377[num3]; QuestStep obj233 = new QuestStep(EInteractionType.AcceptQuest, 1051894u, new Vector3(0.869751f, 14.000016f, -21.591614f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -373040,79 +453809,94 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list378 = new List(num3); - CollectionsMarshal.SetCount(list378, num3); - CollectionsMarshal.AsSpan(list378)[0] = 131; + num4 = 1; + List list378 = new List(num4); + CollectionsMarshal.SetCount(list378, num4); + Span span378 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + span378[index2] = 131; obj234.InTerritory = list378; skipConditions15.AetheryteShortcutIf = obj234; obj233.SkipConditions = skipConditions15; reference275 = obj233; obj232.Steps = list377; reference274 = obj232; - ref QuestSequence reference276 = ref span210[1]; + num++; + ref QuestSequence reference276 = ref span376[num]; QuestSequence obj235 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list379 = new List(num2); - CollectionsMarshal.SetCount(list379, num2); - Span span211 = CollectionsMarshal.AsSpan(list379); - ref QuestStep reference277 = ref span211[0]; + num3 = 2; + List list379 = new List(num3); + CollectionsMarshal.SetCount(list379, num3); + Span span379 = CollectionsMarshal.AsSpan(list379); + num2 = 0; + ref QuestStep reference277 = ref span379[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-9.184601f, 9.999999f, -35.359993f), 131); SkipConditions skipConditions16 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list380 = new List(num3); - CollectionsMarshal.SetCount(list380, num3); - CollectionsMarshal.AsSpan(list380)[0] = 130; + index2 = 1; + List list380 = new List(index2); + CollectionsMarshal.SetCount(list380, index2); + Span span380 = CollectionsMarshal.AsSpan(list380); + num4 = 0; + span380[num4] = 130; skipStepConditions5.InTerritory = list380; skipConditions16.StepIf = skipStepConditions5; questStep26.SkipConditions = skipConditions16; reference277 = questStep26; - ref QuestStep reference278 = ref span211[1]; + num2++; + ref QuestStep reference278 = ref span379[num2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1051895u, new Vector3(-25.0401f, 4.9999785f, -131.45648f), 130); - num3 = 4; - List list381 = new List(num3); - CollectionsMarshal.SetCount(list381, num3); - Span span212 = CollectionsMarshal.AsSpan(list381); - span212[0] = new DialogueChoice + num4 = 4; + List list381 = new List(num4); + CollectionsMarshal.SetCount(list381, num4); + Span span381 = CollectionsMarshal.AsSpan(list381); + index2 = 0; + span381[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_FESPDX002_05238_Q1_000_000") }; - span212[1] = new DialogueChoice + index2++; + span381[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESPDX002_05238_Q2_000_000"), Answer = new ExcelRef("TEXT_FESPDX002_05238_A2_000_001") }; - span212[2] = new DialogueChoice + index2++; + span381[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESPDX002_05238_Q3_000_000"), Answer = new ExcelRef("TEXT_FESPDX002_05238_A3_000_001") }; - span212[3] = new DialogueChoice + index2++; + span381[index2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESPDX002_05238_Q4_000_000"), Answer = new ExcelRef("TEXT_FESPDX002_05238_A4_000_001") }; questStep27.DialogueChoices = list381; - num3 = 3; - List list382 = new List(num3); - CollectionsMarshal.SetCount(list382, num3); - Span span213 = CollectionsMarshal.AsSpan(list382); - span213[0] = 0u; - span213[1] = 1u; - span213[2] = 2u; + index2 = 3; + List list382 = new List(index2); + CollectionsMarshal.SetCount(list382, index2); + Span span382 = CollectionsMarshal.AsSpan(list382); + num4 = 0; + span382[num4] = 0u; + num4++; + span382[num4] = 1u; + num4++; + span382[num4] = 2u; questStep27.PointMenuChoices = list382; reference278 = questStep27; obj235.Steps = list379; reference276 = obj235; - ref QuestSequence reference279 = ref span210[2]; + num++; + ref QuestSequence reference279 = ref span376[num]; QuestSequence obj236 = new QuestSequence { Sequence = 2 @@ -373120,7 +453904,9 @@ public static class AssemblyQuestLoader num2 = 1; List list383 = new List(num2); CollectionsMarshal.SetCount(list383, num2); - CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.Interact, 1051899u, new Vector3(-53.421875f, 18f, 60.16626f), 131) + Span span383 = CollectionsMarshal.AsSpan(list383); + num3 = 0; + span383[num3] = new QuestStep(EInteractionType.Interact, 1051899u, new Vector3(-53.421875f, 18f, 60.16626f), 131) { AethernetShortcut = new AethernetShortcut { @@ -373130,15 +453916,18 @@ public static class AssemblyQuestLoader }; obj236.Steps = list383; reference279 = obj236; - ref QuestSequence reference280 = ref span210[3]; + num++; + ref QuestSequence reference280 = ref span376[num]; QuestSequence obj237 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list384 = new List(num2); - CollectionsMarshal.SetCount(list384, num2); - CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.Interact, 1051884u, new Vector3(-35.111023f, 5.000001f, -130.35785f), 130) + num3 = 1; + List list384 = new List(num3); + CollectionsMarshal.SetCount(list384, num3); + Span span384 = CollectionsMarshal.AsSpan(list384); + num2 = 0; + span384[num2] = new QuestStep(EInteractionType.Interact, 1051884u, new Vector3(-35.111023f, 5.000001f, -130.35785f), 130) { AethernetShortcut = new AethernetShortcut { @@ -373148,7 +453937,8 @@ public static class AssemblyQuestLoader }; obj237.Steps = list384; reference280 = obj237; - ref QuestSequence reference281 = ref span210[4]; + num++; + ref QuestSequence reference281 = ref span376[num]; QuestSequence obj238 = new QuestSequence { Sequence = byte.MaxValue @@ -373156,7 +453946,9 @@ public static class AssemblyQuestLoader num2 = 1; List list385 = new List(num2); CollectionsMarshal.SetCount(list385, num2); - CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051901u, new Vector3(-33.859802f, 5.0000005f, -130.6325f), 130); + Span span385 = CollectionsMarshal.AsSpan(list385); + num3 = 0; + span385[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051901u, new Vector3(-33.859802f, 5.0000005f, -130.6325f), 130); obj238.Steps = list385; reference281 = obj238; questRoot38.QuestSequence = list376; @@ -373166,21 +453958,26 @@ public static class AssemblyQuestLoader num = 1; List list386 = new List(num); CollectionsMarshal.SetCount(list386, num); - CollectionsMarshal.AsSpan(list386)[0] = "liza"; + Span span386 = CollectionsMarshal.AsSpan(list386); + index = 0; + span386[index] = "liza"; questRoot39.Author = list386; - num = 4; - List list387 = new List(num); - CollectionsMarshal.SetCount(list387, num); - Span span214 = CollectionsMarshal.AsSpan(list387); - ref QuestSequence reference282 = ref span214[0]; + index = 4; + List list387 = new List(index); + CollectionsMarshal.SetCount(list387, index); + Span span387 = CollectionsMarshal.AsSpan(list387); + num = 0; + ref QuestSequence reference282 = ref span387[num]; QuestSequence obj239 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list388 = new List(num2); - CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048604u, new Vector3(36.75891f, -14.000003f, 57.694214f), 1185) + num3 = 1; + List list388 = new List(num3); + CollectionsMarshal.SetCount(list388, num3); + Span span388 = CollectionsMarshal.AsSpan(list388); + num2 = 0; + span388[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048604u, new Vector3(36.75891f, -14.000003f, 57.694214f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -373193,7 +453990,8 @@ public static class AssemblyQuestLoader }; obj239.Steps = list388; reference282 = obj239; - ref QuestSequence reference283 = ref span214[1]; + num++; + ref QuestSequence reference283 = ref span387[num]; QuestSequence obj240 = new QuestSequence { Sequence = 1 @@ -373201,33 +453999,39 @@ public static class AssemblyQuestLoader num2 = 1; List list389 = new List(num2); CollectionsMarshal.SetCount(list389, num2); - CollectionsMarshal.AsSpan(list389)[0] = new QuestStep(EInteractionType.Interact, 1051496u, new Vector3(-84.42822f, 15.678356f, -242.17596f), 1190) + Span span389 = CollectionsMarshal.AsSpan(list389); + num3 = 0; + span389[num3] = new QuestStep(EInteractionType.Interact, 1051496u, new Vector3(-84.42822f, 15.678356f, -242.17596f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; obj240.Steps = list389; reference283 = obj240; - ref QuestSequence reference284 = ref span214[2]; + num++; + ref QuestSequence reference284 = ref span387[num]; QuestSequence obj241 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list390 = new List(num2); - CollectionsMarshal.SetCount(list390, num2); - Span span215 = CollectionsMarshal.AsSpan(list390); - span215[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-363.22934f, 20.162338f, -90.19407f), 1190) + num3 = 2; + List list390 = new List(num3); + CollectionsMarshal.SetCount(list390, num3); + Span span390 = CollectionsMarshal.AsSpan(list390); + num2 = 0; + span390[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-363.22934f, 20.162338f, -90.19407f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; - span215[1] = new QuestStep(EInteractionType.Interact, 1051495u, new Vector3(-365.28577f, 20.14268f, -88.51758f), 1190) + num2++; + span390[num2] = new QuestStep(EInteractionType.Interact, 1051495u, new Vector3(-365.28577f, 20.14268f, -88.51758f), 1190) { StopDistance = 5f }; obj241.Steps = list390; reference284 = obj241; - ref QuestSequence reference285 = ref span214[3]; + num++; + ref QuestSequence reference285 = ref span387[num]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue @@ -373235,7 +454039,9 @@ public static class AssemblyQuestLoader num2 = 1; List list391 = new List(num2); CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190); + Span span391 = CollectionsMarshal.AsSpan(list391); + num3 = 0; + span391[num3] = new QuestStep(EInteractionType.CompleteQuest, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190); obj242.Steps = list391; reference285 = obj242; questRoot39.QuestSequence = list387; @@ -373245,21 +454051,26 @@ public static class AssemblyQuestLoader num = 1; List list392 = new List(num); CollectionsMarshal.SetCount(list392, num); - CollectionsMarshal.AsSpan(list392)[0] = "liza"; + Span span392 = CollectionsMarshal.AsSpan(list392); + index = 0; + span392[index] = "liza"; questRoot40.Author = list392; - num = 4; - List list393 = new List(num); - CollectionsMarshal.SetCount(list393, num); - Span span216 = CollectionsMarshal.AsSpan(list393); - ref QuestSequence reference286 = ref span216[0]; + index = 4; + List list393 = new List(index); + CollectionsMarshal.SetCount(list393, index); + Span span393 = CollectionsMarshal.AsSpan(list393); + num = 0; + ref QuestSequence reference286 = ref span393[num]; QuestSequence obj243 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list394 = new List(num2); - CollectionsMarshal.SetCount(list394, num2); - CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190) + num3 = 1; + List list394 = new List(num3); + CollectionsMarshal.SetCount(list394, num3); + Span span394 = CollectionsMarshal.AsSpan(list394); + num2 = 0; + span394[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings, SkipConditions = new SkipConditions @@ -373272,7 +454083,8 @@ public static class AssemblyQuestLoader }; obj243.Steps = list394; reference286 = obj243; - ref QuestSequence reference287 = ref span216[1]; + num++; + ref QuestSequence reference287 = ref span393[num]; QuestSequence obj244 = new QuestSequence { Sequence = 1 @@ -373280,27 +454092,33 @@ public static class AssemblyQuestLoader num2 = 1; List list395 = new List(num2); CollectionsMarshal.SetCount(list395, num2); - CollectionsMarshal.AsSpan(list395)[0] = new QuestStep(EInteractionType.Interact, 2014456u, new Vector3(-128.64886f, 16.311829f, -290.69965f), 1190) + Span span395 = CollectionsMarshal.AsSpan(list395); + num3 = 0; + span395[num3] = new QuestStep(EInteractionType.Interact, 2014456u, new Vector3(-128.64886f, 16.311829f, -290.69965f), 1190) { Fly = true }; obj244.Steps = list395; reference287 = obj244; - ref QuestSequence reference288 = ref span216[2]; + num++; + ref QuestSequence reference288 = ref span393[num]; QuestSequence obj245 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list396 = new List(num2); - CollectionsMarshal.SetCount(list396, num2); - CollectionsMarshal.AsSpan(list396)[0] = new QuestStep(EInteractionType.Interact, 1048608u, new Vector3(-126.57361f, 15.67948f, -369.46674f), 1190) + num3 = 1; + List list396 = new List(num3); + CollectionsMarshal.SetCount(list396, num3); + Span span396 = CollectionsMarshal.AsSpan(list396); + num2 = 0; + span396[num2] = new QuestStep(EInteractionType.Interact, 1048608u, new Vector3(-126.57361f, 15.67948f, -369.46674f), 1190) { Fly = true }; obj245.Steps = list396; reference288 = obj245; - ref QuestSequence reference289 = ref span216[3]; + num++; + ref QuestSequence reference289 = ref span393[num]; QuestSequence obj246 = new QuestSequence { Sequence = byte.MaxValue @@ -373308,7 +454126,9 @@ public static class AssemblyQuestLoader num2 = 1; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190) + Span span397 = CollectionsMarshal.AsSpan(list397); + num3 = 0; + span397[num3] = new QuestStep(EInteractionType.CompleteQuest, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190) { Fly = true, NextQuestId = new QuestId(5241) @@ -373322,26 +454142,32 @@ public static class AssemblyQuestLoader num = 1; List list398 = new List(num); CollectionsMarshal.SetCount(list398, num); - CollectionsMarshal.AsSpan(list398)[0] = "liza"; + Span span398 = CollectionsMarshal.AsSpan(list398); + index = 0; + span398[index] = "liza"; questRoot41.Author = list398; - num = 2; - List list399 = new List(num); - CollectionsMarshal.SetCount(list399, num); - Span span217 = CollectionsMarshal.AsSpan(list399); - ref QuestSequence reference290 = ref span217[0]; + index = 2; + List list399 = new List(index); + CollectionsMarshal.SetCount(list399, index); + Span span399 = CollectionsMarshal.AsSpan(list399); + num = 0; + ref QuestSequence reference290 = ref span399[num]; QuestSequence obj247 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list400 = new List(num2); - CollectionsMarshal.SetCount(list400, num2); - Span span218 = CollectionsMarshal.AsSpan(list400); - span218[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-363.2864f, 20.16234f, -90.06508f), 1190); - span218[1] = new QuestStep(EInteractionType.AcceptQuest, 1051495u, new Vector3(-365.28577f, 20.14268f, -88.51758f), 1190); + num3 = 2; + List list400 = new List(num3); + CollectionsMarshal.SetCount(list400, num3); + Span span400 = CollectionsMarshal.AsSpan(list400); + num2 = 0; + span400[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-363.2864f, 20.16234f, -90.06508f), 1190); + num2++; + span400[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051495u, new Vector3(-365.28577f, 20.14268f, -88.51758f), 1190); obj247.Steps = list400; reference290 = obj247; - ref QuestSequence reference291 = ref span217[1]; + num++; + ref QuestSequence reference291 = ref span399[num]; QuestSequence obj248 = new QuestSequence { Sequence = byte.MaxValue @@ -373349,16 +454175,19 @@ public static class AssemblyQuestLoader num2 = 3; List list401 = new List(num2); CollectionsMarshal.SetCount(list401, num2); - Span span219 = CollectionsMarshal.AsSpan(list401); - span219[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-354.53677f, 19.32763f, -99.326805f), 1190) + Span span401 = CollectionsMarshal.AsSpan(list401); + num3 = 0; + span401[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-354.53677f, 19.32763f, -99.326805f), 1190) { Mount = true }; - span219[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-91.25145f, 17.80576f, -267.2748f), 1190) + num3++; + span401[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-91.25145f, 17.80576f, -267.2748f), 1190) { Fly = true }; - span219[2] = new QuestStep(EInteractionType.CompleteQuest, 1051497u, new Vector3(-91.5694f, 17.7503f, -268.54352f), 1190); + num3++; + span401[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051497u, new Vector3(-91.5694f, 17.7503f, -268.54352f), 1190); obj248.Steps = list401; reference291 = obj248; questRoot41.QuestSequence = list399; @@ -373368,23 +454197,28 @@ public static class AssemblyQuestLoader num = 1; List list402 = new List(num); CollectionsMarshal.SetCount(list402, num); - CollectionsMarshal.AsSpan(list402)[0] = "liza"; + Span span402 = CollectionsMarshal.AsSpan(list402); + index = 0; + span402[index] = "liza"; questRoot42.Author = list402; questRoot42.IsSeasonalQuest = true; questRoot42.SeasonalQuestExpiry = new DateTime(2025, 4, 24, 0, 0, 0, DateTimeKind.Utc); - num = 6; - List list403 = new List(num); - CollectionsMarshal.SetCount(list403, num); - Span span220 = CollectionsMarshal.AsSpan(list403); - ref QuestSequence reference292 = ref span220[0]; + index = 6; + List list403 = new List(index); + CollectionsMarshal.SetCount(list403, index); + Span span403 = CollectionsMarshal.AsSpan(list403); + num = 0; + ref QuestSequence reference292 = ref span403[num]; QuestSequence obj249 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list404 = new List(num2); - CollectionsMarshal.SetCount(list404, num2); - ref QuestStep reference293 = ref CollectionsMarshal.AsSpan(list404)[0]; + num3 = 1; + List list404 = new List(num3); + CollectionsMarshal.SetCount(list404, num3); + Span span404 = CollectionsMarshal.AsSpan(list404); + num2 = 0; + ref QuestStep reference293 = ref span404[num2]; QuestStep obj250 = new QuestStep(EInteractionType.AcceptQuest, 1052063u, new Vector3(-49.973328f, 6.4999995f, -89.829956f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -373399,17 +454233,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list405 = new List(num3); - CollectionsMarshal.SetCount(list405, num3); - CollectionsMarshal.AsSpan(list405)[0] = 133; + num4 = 1; + List list405 = new List(num4); + CollectionsMarshal.SetCount(list405, num4); + Span span405 = CollectionsMarshal.AsSpan(list405); + index2 = 0; + span405[index2] = 133; obj251.InTerritory = list405; skipConditions17.AetheryteShortcutIf = obj251; obj250.SkipConditions = skipConditions17; reference293 = obj250; obj249.Steps = list404; reference292 = obj249; - ref QuestSequence reference294 = ref span220[1]; + num++; + ref QuestSequence reference294 = ref span403[num]; QuestSequence obj252 = new QuestSequence { Sequence = 1 @@ -373417,7 +454254,9 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 1052065u, new Vector3(172.86938f, 15.699935f, -113.11517f), 133) + Span span406 = CollectionsMarshal.AsSpan(list406); + num3 = 0; + span406[num3] = new QuestStep(EInteractionType.Interact, 1052065u, new Vector3(172.86938f, 15.699935f, -113.11517f), 133) { AethernetShortcut = new AethernetShortcut { @@ -373427,18 +454266,22 @@ public static class AssemblyQuestLoader }; obj252.Steps = list406; reference294 = obj252; - ref QuestSequence reference295 = ref span220[2]; + num++; + ref QuestSequence reference295 = ref span403[num]; QuestSequence obj253 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list407 = new List(num2); - CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.Interact, 1000691u, new Vector3(71.97681f, 8f, -166.52173f), 133); + num3 = 1; + List list407 = new List(num3); + CollectionsMarshal.SetCount(list407, num3); + Span span407 = CollectionsMarshal.AsSpan(list407); + num2 = 0; + span407[num2] = new QuestStep(EInteractionType.Interact, 1000691u, new Vector3(71.97681f, 8f, -166.52173f), 133); obj253.Steps = list407; reference295 = obj253; - ref QuestSequence reference296 = ref span220[3]; + num++; + ref QuestSequence reference296 = ref span403[num]; QuestSequence obj254 = new QuestSequence { Sequence = 3 @@ -373446,34 +454289,42 @@ public static class AssemblyQuestLoader num2 = 2; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - Span span221 = CollectionsMarshal.AsSpan(list408); - ref QuestStep reference297 = ref span221[0]; + Span span408 = CollectionsMarshal.AsSpan(list408); + num3 = 0; + ref QuestStep reference297 = ref span408[num3]; QuestStep questStep28 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(13.474687f, 8.372438f, -86.945724f), 133); SkipConditions skipConditions18 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list409 = new List(num3); - CollectionsMarshal.SetCount(list409, num3); - CollectionsMarshal.AsSpan(list409)[0] = 132; + index2 = 1; + List list409 = new List(index2); + CollectionsMarshal.SetCount(list409, index2); + Span span409 = CollectionsMarshal.AsSpan(list409); + num4 = 0; + span409[num4] = 132; skipStepConditions6.InTerritory = list409; skipConditions18.StepIf = skipStepConditions6; questStep28.SkipConditions = skipConditions18; reference297 = questStep28; - span221[1] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); + num3++; + span408[num3] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); obj254.Steps = list408; reference296 = obj254; - ref QuestSequence reference298 = ref span220[4]; + num++; + ref QuestSequence reference298 = ref span403[num]; QuestSequence obj255 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list410 = new List(num2); - CollectionsMarshal.SetCount(list410, num2); - CollectionsMarshal.AsSpan(list410)[0] = new QuestStep(EInteractionType.Interact, 1052068u, new Vector3(11.36792f, 0.106995195f, 2.7618408f), 132); + num3 = 1; + List list410 = new List(num3); + CollectionsMarshal.SetCount(list410, num3); + Span span410 = CollectionsMarshal.AsSpan(list410); + num2 = 0; + span410[num2] = new QuestStep(EInteractionType.Interact, 1052068u, new Vector3(11.36792f, 0.106995195f, 2.7618408f), 132); obj255.Steps = list410; reference298 = obj255; - ref QuestSequence reference299 = ref span220[5]; + num++; + ref QuestSequence reference299 = ref span403[num]; QuestSequence obj256 = new QuestSequence { Sequence = byte.MaxValue @@ -373481,20 +454332,24 @@ public static class AssemblyQuestLoader num2 = 2; List list411 = new List(num2); CollectionsMarshal.SetCount(list411, num2); - Span span222 = CollectionsMarshal.AsSpan(list411); - ref QuestStep reference300 = ref span222[0]; + Span span411 = CollectionsMarshal.AsSpan(list411); + num3 = 0; + ref QuestStep reference300 = ref span411[num3]; QuestStep questStep29 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.567871f, 1.2197373f, -15.778544f), 132); SkipConditions skipConditions19 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 1; - List list412 = new List(num3); - CollectionsMarshal.SetCount(list412, num3); - CollectionsMarshal.AsSpan(list412)[0] = 133; + num4 = 1; + List list412 = new List(num4); + CollectionsMarshal.SetCount(list412, num4); + Span span412 = CollectionsMarshal.AsSpan(list412); + index2 = 0; + span412[index2] = 133; skipStepConditions7.InTerritory = list412; skipConditions19.StepIf = skipStepConditions7; questStep29.SkipConditions = skipConditions19; reference300 = questStep29; - span222[1] = new QuestStep(EInteractionType.CompleteQuest, 1052063u, new Vector3(-49.973328f, 6.4999995f, -89.829956f), 133) + num3++; + span411[num3] = new QuestStep(EInteractionType.CompleteQuest, 1052063u, new Vector3(-49.973328f, 6.4999995f, -89.829956f), 133) { NextQuestId = new QuestId(5243) }; @@ -373507,23 +454362,28 @@ public static class AssemblyQuestLoader num = 1; List list413 = new List(num); CollectionsMarshal.SetCount(list413, num); - CollectionsMarshal.AsSpan(list413)[0] = "liza"; + Span span413 = CollectionsMarshal.AsSpan(list413); + index = 0; + span413[index] = "liza"; questRoot43.Author = list413; questRoot43.IsSeasonalQuest = true; questRoot43.SeasonalQuestExpiry = new DateTime(2025, 4, 24, 0, 0, 0, DateTimeKind.Utc); - num = 5; - List list414 = new List(num); - CollectionsMarshal.SetCount(list414, num); - Span span223 = CollectionsMarshal.AsSpan(list414); - ref QuestSequence reference301 = ref span223[0]; + index = 5; + List list414 = new List(index); + CollectionsMarshal.SetCount(list414, index); + Span span414 = CollectionsMarshal.AsSpan(list414); + num = 0; + ref QuestSequence reference301 = ref span414[num]; QuestSequence obj257 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list415 = new List(num2); - CollectionsMarshal.SetCount(list415, num2); - ref QuestStep reference302 = ref CollectionsMarshal.AsSpan(list415)[0]; + num3 = 1; + List list415 = new List(num3); + CollectionsMarshal.SetCount(list415, num3); + Span span415 = CollectionsMarshal.AsSpan(list415); + num2 = 0; + ref QuestStep reference302 = ref span415[num2]; QuestStep obj258 = new QuestStep(EInteractionType.AcceptQuest, 1052063u, new Vector3(-49.973328f, 6.4999995f, -89.829956f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -373538,17 +454398,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list416 = new List(num3); - CollectionsMarshal.SetCount(list416, num3); - CollectionsMarshal.AsSpan(list416)[0] = 133; + index2 = 1; + List list416 = new List(index2); + CollectionsMarshal.SetCount(list416, index2); + Span span416 = CollectionsMarshal.AsSpan(list416); + num4 = 0; + span416[num4] = 133; obj259.InTerritory = list416; skipConditions20.AetheryteShortcutIf = obj259; obj258.SkipConditions = skipConditions20; reference302 = obj258; obj257.Steps = list415; reference301 = obj257; - ref QuestSequence reference303 = ref span223[1]; + num++; + ref QuestSequence reference303 = ref span414[num]; QuestSequence obj260 = new QuestSequence { Sequence = 1 @@ -373556,19 +454419,23 @@ public static class AssemblyQuestLoader num2 = 1; List list417 = new List(num2); CollectionsMarshal.SetCount(list417, num2); - CollectionsMarshal.AsSpan(list417)[0] = new QuestStep(EInteractionType.Interact, 1052069u, new Vector3(-49.973328f, 6.4999995f, -89.89093f), 133); + Span span417 = CollectionsMarshal.AsSpan(list417); + num3 = 0; + span417[num3] = new QuestStep(EInteractionType.Interact, 1052069u, new Vector3(-49.973328f, 6.4999995f, -89.89093f), 133); obj260.Steps = list417; reference303 = obj260; - ref QuestSequence reference304 = ref span223[2]; + num++; + ref QuestSequence reference304 = ref span414[num]; QuestSequence obj261 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list418 = new List(num2); - CollectionsMarshal.SetCount(list418, num2); - Span span224 = CollectionsMarshal.AsSpan(list418); - ref QuestStep reference305 = ref span224[0]; + num3 = 3; + List list418 = new List(num3); + CollectionsMarshal.SetCount(list418, num3); + Span span418 = CollectionsMarshal.AsSpan(list418); + num2 = 0; + ref QuestStep reference305 = ref span418[num2]; QuestStep obj262 = new QuestStep(EInteractionType.Interact, 1052070u, new Vector3(169.02417f, 15.5f, -93.492065f), 133) { AethernetShortcut = new AethernetShortcut @@ -373577,49 +454444,70 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - num3 = 6; - List list419 = new List(num3); - CollectionsMarshal.SetCount(list419, num3); - Span span225 = CollectionsMarshal.AsSpan(list419); - span225[0] = null; - span225[1] = null; - span225[2] = null; - span225[3] = null; - span225[4] = null; - span225[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list419 = new List(num4); + CollectionsMarshal.SetCount(list419, num4); + Span span419 = CollectionsMarshal.AsSpan(list419); + index2 = 0; + span419[index2] = null; + index2++; + span419[index2] = null; + index2++; + span419[index2] = null; + index2++; + span419[index2] = null; + index2++; + span419[index2] = null; + index2++; + span419[index2] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj262.CompletionQuestVariablesFlags = list419; reference305 = obj262; - ref QuestStep reference306 = ref span224[1]; + num2++; + ref QuestStep reference306 = ref span418[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1052071u, new Vector3(157.15259f, 15.699948f, -124.16266f), 133); - num3 = 6; - List list420 = new List(num3); - CollectionsMarshal.SetCount(list420, num3); - Span span226 = CollectionsMarshal.AsSpan(list420); - span226[0] = null; - span226[1] = null; - span226[2] = null; - span226[3] = null; - span226[4] = null; - span226[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list420 = new List(index2); + CollectionsMarshal.SetCount(list420, index2); + Span span420 = CollectionsMarshal.AsSpan(list420); + num4 = 0; + span420[num4] = null; + num4++; + span420[num4] = null; + num4++; + span420[num4] = null; + num4++; + span420[num4] = null; + num4++; + span420[num4] = null; + num4++; + span420[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep30.CompletionQuestVariablesFlags = list420; reference306 = questStep30; - ref QuestStep reference307 = ref span224[2]; + num2++; + ref QuestStep reference307 = ref span418[num2]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1052072u, new Vector3(145.37268f, 13.599698f, -156.4508f), 133); - num3 = 6; - List list421 = new List(num3); - CollectionsMarshal.SetCount(list421, num3); - Span span227 = CollectionsMarshal.AsSpan(list421); - span227[0] = null; - span227[1] = null; - span227[2] = null; - span227[3] = null; - span227[4] = null; - span227[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list421 = new List(num4); + CollectionsMarshal.SetCount(list421, num4); + Span span421 = CollectionsMarshal.AsSpan(list421); + index2 = 0; + span421[index2] = null; + index2++; + span421[index2] = null; + index2++; + span421[index2] = null; + index2++; + span421[index2] = null; + index2++; + span421[index2] = null; + index2++; + span421[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep31.CompletionQuestVariablesFlags = list421; reference307 = questStep31; obj261.Steps = list418; reference304 = obj261; - ref QuestSequence reference308 = ref span223[3]; + num++; + ref QuestSequence reference308 = ref span414[num]; QuestSequence obj263 = new QuestSequence { Sequence = 3 @@ -373627,26 +454515,31 @@ public static class AssemblyQuestLoader num2 = 2; List list422 = new List(num2); CollectionsMarshal.SetCount(list422, num2); - Span span228 = CollectionsMarshal.AsSpan(list422); - span228[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(154.11754f, 15.494947f, -95.69504f), 133) + Span span422 = CollectionsMarshal.AsSpan(list422); + num3 = 0; + span422[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(154.11754f, 15.494947f, -95.69504f), 133) { StopDistance = 2f }; - span228[1] = new QuestStep(EInteractionType.Interact, 1052069u, new Vector3(154.11754f, 15.494947f, -95.69504f), 133) + num3++; + span422[num3] = new QuestStep(EInteractionType.Interact, 1052069u, new Vector3(154.11754f, 15.494947f, -95.69504f), 133) { DelaySecondsAtStart = 2f }; obj263.Steps = list422; reference308 = obj263; - ref QuestSequence reference309 = ref span223[4]; + num++; + ref QuestSequence reference309 = ref span414[num]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list423 = new List(num2); - CollectionsMarshal.SetCount(list423, num2); - CollectionsMarshal.AsSpan(list423)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052063u, new Vector3(-49.973328f, 6.4999995f, -89.829956f), 133) + num3 = 1; + List list423 = new List(num3); + CollectionsMarshal.SetCount(list423, num3); + Span span423 = CollectionsMarshal.AsSpan(list423); + num2 = 0; + span423[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052063u, new Vector3(-49.973328f, 6.4999995f, -89.829956f), 133) { AethernetShortcut = new AethernetShortcut { @@ -373663,13 +454556,16 @@ public static class AssemblyQuestLoader num = 1; List list424 = new List(num); CollectionsMarshal.SetCount(list424, num); - CollectionsMarshal.AsSpan(list424)[0] = "liza"; + Span span424 = CollectionsMarshal.AsSpan(list424); + index = 0; + span424[index] = "liza"; questRoot44.Author = list424; - num = 5; - List list425 = new List(num); - CollectionsMarshal.SetCount(list425, num); - Span span229 = CollectionsMarshal.AsSpan(list425); - ref QuestSequence reference310 = ref span229[0]; + index = 5; + List list425 = new List(index); + CollectionsMarshal.SetCount(list425, index); + Span span425 = CollectionsMarshal.AsSpan(list425); + num = 0; + ref QuestSequence reference310 = ref span425[num]; QuestSequence obj265 = new QuestSequence { Sequence = 0 @@ -373677,7 +454573,9 @@ public static class AssemblyQuestLoader num2 = 1; List list426 = new List(num2); CollectionsMarshal.SetCount(list426, num2); - CollectionsMarshal.AsSpan(list426)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047679u, new Vector3(-165.36206f, -14.999356f, 203.93677f), 1185) + Span span426 = CollectionsMarshal.AsSpan(list426); + num3 = 0; + span426[num3] = new QuestStep(EInteractionType.AcceptQuest, 1047679u, new Vector3(-165.36206f, -14.999356f, 203.93677f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -373688,21 +454586,25 @@ public static class AssemblyQuestLoader }; obj265.Steps = list426; reference310 = obj265; - ref QuestSequence reference311 = ref span229[1]; + num++; + ref QuestSequence reference311 = ref span425[num]; QuestSequence obj266 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list427 = new List(num2); - CollectionsMarshal.SetCount(list427, num2); - CollectionsMarshal.AsSpan(list427)[0] = new QuestStep(EInteractionType.Interact, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) + num3 = 1; + List list427 = new List(num3); + CollectionsMarshal.SetCount(list427, num3); + Span span427 = CollectionsMarshal.AsSpan(list427); + num2 = 0; + span427[num2] = new QuestStep(EInteractionType.Interact, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) { StopDistance = 5f }; obj266.Steps = list427; reference311 = obj266; - ref QuestSequence reference312 = ref span229[2]; + num++; + ref QuestSequence reference312 = ref span425[num]; QuestSequence obj267 = new QuestSequence { Sequence = 2 @@ -373710,18 +454612,23 @@ public static class AssemblyQuestLoader num2 = 1; List list428 = new List(num2); CollectionsMarshal.SetCount(list428, num2); - CollectionsMarshal.AsSpan(list428)[0] = new QuestStep(EInteractionType.Interact, 2014470u, new Vector3(-32.700073f, -17.47168f, 184.9851f), 1185); + Span span428 = CollectionsMarshal.AsSpan(list428); + num3 = 0; + span428[num3] = new QuestStep(EInteractionType.Interact, 2014470u, new Vector3(-32.700073f, -17.47168f, 184.9851f), 1185); obj267.Steps = list428; reference312 = obj267; - ref QuestSequence reference313 = ref span229[3]; + num++; + ref QuestSequence reference313 = ref span425[num]; QuestSequence obj268 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list429 = new List(num2); - CollectionsMarshal.SetCount(list429, num2); - ref QuestStep reference314 = ref CollectionsMarshal.AsSpan(list429)[0]; + num3 = 1; + List list429 = new List(num3); + CollectionsMarshal.SetCount(list429, num3); + Span span429 = CollectionsMarshal.AsSpan(list429); + num2 = 0; + ref QuestStep reference314 = ref span429[num2]; QuestStep obj269 = new QuestStep(EInteractionType.Interact, 1047501u, new Vector3(-189.80707f, 120.74999f, -367.14734f), 1185) { AethernetShortcut = new AethernetShortcut @@ -373730,10 +454637,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalVollokShoonsa } }; - num3 = 1; - List list430 = new List(num3); - CollectionsMarshal.SetCount(list430, num3); - CollectionsMarshal.AsSpan(list430)[0] = new DialogueChoice + index2 = 1; + List list430 = new List(index2); + CollectionsMarshal.SetCount(list430, index2); + Span span430 = CollectionsMarshal.AsSpan(list430); + num4 = 0; + span430[num4] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMG101_05244_SYSTEM_000_301") @@ -373742,7 +454651,8 @@ public static class AssemblyQuestLoader reference314 = obj269; obj268.Steps = list429; reference313 = obj268; - ref QuestSequence reference315 = ref span229[4]; + num++; + ref QuestSequence reference315 = ref span425[num]; QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue @@ -373750,8 +454660,9 @@ public static class AssemblyQuestLoader num2 = 2; List list431 = new List(num2); CollectionsMarshal.SetCount(list431, num2); - Span span230 = CollectionsMarshal.AsSpan(list431); - ref QuestStep reference316 = ref span230[0]; + Span span431 = CollectionsMarshal.AsSpan(list431); + num3 = 0; + ref QuestStep reference316 = ref span431[num3]; QuestStep obj271 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, @@ -373764,22 +454675,27 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions21 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 1; - List list432 = new List(num3); - CollectionsMarshal.SetCount(list432, num3); - CollectionsMarshal.AsSpan(list432)[0] = 1207; + num4 = 1; + List list432 = new List(num4); + CollectionsMarshal.SetCount(list432, num4); + Span span432 = CollectionsMarshal.AsSpan(list432); + index2 = 0; + span432[index2] = 1207; skipStepConditions8.InTerritory = list432; skipConditions21.StepIf = skipStepConditions8; SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); - num3 = 1; - List list433 = new List(num3); - CollectionsMarshal.SetCount(list433, num3); - CollectionsMarshal.AsSpan(list433)[0] = 1207; + index2 = 1; + List list433 = new List(index2); + CollectionsMarshal.SetCount(list433, index2); + Span span433 = CollectionsMarshal.AsSpan(list433); + num4 = 0; + span433[num4] = 1207; skipAetheryteCondition3.InTerritory = list433; skipConditions21.AetheryteShortcutIf = skipAetheryteCondition3; obj271.SkipConditions = skipConditions21; reference316 = obj271; - span230[1] = new QuestStep(EInteractionType.CompleteQuest, 1052185u, new Vector3(-4.837158f, -3.632158E-08f, 5.996765f), 1207); + num3++; + span431[num3] = new QuestStep(EInteractionType.CompleteQuest, 1052185u, new Vector3(-4.837158f, -3.632158E-08f, 5.996765f), 1207); obj270.Steps = list431; reference315 = obj270; questRoot44.QuestSequence = list425; @@ -373789,24 +454705,30 @@ public static class AssemblyQuestLoader num = 1; List list434 = new List(num); CollectionsMarshal.SetCount(list434, num); - CollectionsMarshal.AsSpan(list434)[0] = "liza"; + Span span434 = CollectionsMarshal.AsSpan(list434); + index = 0; + span434[index] = "liza"; questRoot45.Author = list434; - num = 3; - List list435 = new List(num); - CollectionsMarshal.SetCount(list435, num); - Span span231 = CollectionsMarshal.AsSpan(list435); - ref QuestSequence reference317 = ref span231[0]; + index = 3; + List list435 = new List(index); + CollectionsMarshal.SetCount(list435, index); + Span span435 = CollectionsMarshal.AsSpan(list435); + num = 0; + ref QuestSequence reference317 = ref span435[num]; QuestSequence obj272 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list436 = new List(num2); - CollectionsMarshal.SetCount(list436, num2); - CollectionsMarshal.AsSpan(list436)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052185u, new Vector3(-4.837158f, -3.632158E-08f, 5.996765f), 1207); + num3 = 1; + List list436 = new List(num3); + CollectionsMarshal.SetCount(list436, num3); + Span span436 = CollectionsMarshal.AsSpan(list436); + num2 = 0; + span436[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052185u, new Vector3(-4.837158f, -3.632158E-08f, 5.996765f), 1207); obj272.Steps = list436; reference317 = obj272; - ref QuestSequence reference318 = ref span231[1]; + num++; + ref QuestSequence reference318 = ref span435[num]; QuestSequence obj273 = new QuestSequence { Sequence = 1 @@ -373814,23 +454736,27 @@ public static class AssemblyQuestLoader num2 = 2; List list437 = new List(num2); CollectionsMarshal.SetCount(list437, num2); - Span span232 = CollectionsMarshal.AsSpan(list437); - ref QuestStep reference319 = ref span232[0]; + Span span437 = CollectionsMarshal.AsSpan(list437); + num3 = 0; + ref QuestStep reference319 = ref span437[num3]; QuestStep obj274 = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.015319824f, 0.99176025f, 16.03717f), 1207) { TargetTerritoryId = (ushort)1186 }; SkipConditions skipConditions22 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 1; - List list438 = new List(num3); - CollectionsMarshal.SetCount(list438, num3); - CollectionsMarshal.AsSpan(list438)[0] = 1186; + num4 = 1; + List list438 = new List(num4); + CollectionsMarshal.SetCount(list438, num4); + Span span438 = CollectionsMarshal.AsSpan(list438); + index2 = 0; + span438[index2] = 1186; skipStepConditions9.InTerritory = list438; skipConditions22.StepIf = skipStepConditions9; obj274.SkipConditions = skipConditions22; reference319 = obj274; - span232[1] = new QuestStep(EInteractionType.Interact, 1052191u, new Vector3(20.248657f, 38.0566f, -388.90674f), 1186) + num3++; + span437[num3] = new QuestStep(EInteractionType.Interact, 1052191u, new Vector3(20.248657f, 38.0566f, -388.90674f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -373840,15 +454766,18 @@ public static class AssemblyQuestLoader }; obj273.Steps = list437; reference318 = obj273; - ref QuestSequence reference320 = ref span231[2]; + num++; + ref QuestSequence reference320 = ref span435[num]; QuestSequence obj275 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list439 = new List(num2); - CollectionsMarshal.SetCount(list439, num2); - CollectionsMarshal.AsSpan(list439)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052198u, new Vector3(-303.2426f, 9.519508f, 51.80432f), 1186) + num3 = 1; + List list439 = new List(num3); + CollectionsMarshal.SetCount(list439, num3); + Span span439 = CollectionsMarshal.AsSpan(list439); + num2 = 0; + span439[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052198u, new Vector3(-303.2426f, 9.519508f, 51.80432f), 1186) { StopDistance = 5f }; @@ -373861,13 +454790,16 @@ public static class AssemblyQuestLoader num = 1; List list440 = new List(num); CollectionsMarshal.SetCount(list440, num); - CollectionsMarshal.AsSpan(list440)[0] = "liza"; + Span span440 = CollectionsMarshal.AsSpan(list440); + index = 0; + span440[index] = "liza"; questRoot46.Author = list440; - num = 7; - List list441 = new List(num); - CollectionsMarshal.SetCount(list441, num); - Span span233 = CollectionsMarshal.AsSpan(list441); - ref QuestSequence reference321 = ref span233[0]; + index = 7; + List list441 = new List(index); + CollectionsMarshal.SetCount(list441, index); + Span span441 = CollectionsMarshal.AsSpan(list441); + num = 0; + ref QuestSequence reference321 = ref span441[num]; QuestSequence obj276 = new QuestSequence { Sequence = 0 @@ -373875,36 +454807,43 @@ public static class AssemblyQuestLoader num2 = 1; List list442 = new List(num2); CollectionsMarshal.SetCount(list442, num2); - CollectionsMarshal.AsSpan(list442)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052202u, new Vector3(-305.83655f, 9.519508f, 53.147095f), 1186) + Span span442 = CollectionsMarshal.AsSpan(list442); + num3 = 0; + span442[num3] = new QuestStep(EInteractionType.AcceptQuest, 1052202u, new Vector3(-305.83655f, 9.519508f, 53.147095f), 1186) { StopDistance = 5f }; obj276.Steps = list442; reference321 = obj276; - ref QuestSequence reference322 = ref span233[1]; + num++; + ref QuestSequence reference322 = ref span441[num]; QuestSequence obj277 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list443 = new List(num2); - CollectionsMarshal.SetCount(list443, num2); - Span span234 = CollectionsMarshal.AsSpan(list443); - span234[0] = new QuestStep(EInteractionType.Interact, 1052205u, new Vector3(-257.0382f, 30f, -569.05475f), 1191) + num3 = 3; + List list443 = new List(num3); + CollectionsMarshal.SetCount(list443, num3); + Span span443 = CollectionsMarshal.AsSpan(list443); + num2 = 0; + span443[num2] = new QuestStep(EInteractionType.Interact, 1052205u, new Vector3(-257.0382f, 30f, -569.05475f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; - span234[1] = new QuestStep(EInteractionType.Interact, 1052204u, new Vector3(-158.25134f, 25.984516f, -521.90436f), 1191) + num2++; + span443[num2] = new QuestStep(EInteractionType.Interact, 1052204u, new Vector3(-158.25134f, 25.984516f, -521.90436f), 1191) { Fly = true }; - span234[2] = new QuestStep(EInteractionType.Interact, 1052206u, new Vector3(-137.86536f, 35f, -568.29175f), 1191) + num2++; + span443[num2] = new QuestStep(EInteractionType.Interact, 1052206u, new Vector3(-137.86536f, 35f, -568.29175f), 1191) { Fly = true }; obj277.Steps = list443; reference322 = obj277; - ref QuestSequence reference323 = ref span233[2]; + num++; + ref QuestSequence reference323 = ref span441[num]; QuestSequence obj278 = new QuestSequence { Sequence = 2 @@ -373912,8 +454851,9 @@ public static class AssemblyQuestLoader num2 = 2; List list444 = new List(num2); CollectionsMarshal.SetCount(list444, num2); - Span span235 = CollectionsMarshal.AsSpan(list444); - ref QuestStep reference324 = ref span235[0]; + Span span444 = CollectionsMarshal.AsSpan(list444); + num3 = 0; + ref QuestStep reference324 = ref span444[num3]; QuestStep obj279 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, @@ -373926,40 +454866,49 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions23 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 1; - List list445 = new List(num3); - CollectionsMarshal.SetCount(list445, num3); - CollectionsMarshal.AsSpan(list445)[0] = 1207; + index2 = 1; + List list445 = new List(index2); + CollectionsMarshal.SetCount(list445, index2); + Span span445 = CollectionsMarshal.AsSpan(list445); + num4 = 0; + span445[num4] = 1207; skipStepConditions10.InTerritory = list445; skipConditions23.StepIf = skipStepConditions10; SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - num3 = 1; - List list446 = new List(num3); - CollectionsMarshal.SetCount(list446, num3); - CollectionsMarshal.AsSpan(list446)[0] = 1207; + num4 = 1; + List list446 = new List(num4); + CollectionsMarshal.SetCount(list446, num4); + Span span446 = CollectionsMarshal.AsSpan(list446); + index2 = 0; + span446[index2] = 1207; skipAetheryteCondition4.InTerritory = list446; skipConditions23.AetheryteShortcutIf = skipAetheryteCondition4; obj279.SkipConditions = skipConditions23; reference324 = obj279; - span235[1] = new QuestStep(EInteractionType.Interact, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); + num3++; + span444[num3] = new QuestStep(EInteractionType.Interact, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); obj278.Steps = list444; reference323 = obj278; - ref QuestSequence reference325 = ref span233[3]; + num++; + ref QuestSequence reference325 = ref span441[num]; QuestSequence obj280 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list447 = new List(num2); - CollectionsMarshal.SetCount(list447, num2); - CollectionsMarshal.AsSpan(list447)[0] = new QuestStep(EInteractionType.Interact, 1052207u, new Vector3(-609.3385f, -3.3580189f, -504.5701f), 1191) + num3 = 1; + List list447 = new List(num3); + CollectionsMarshal.SetCount(list447, num3); + Span span447 = CollectionsMarshal.AsSpan(list447); + num2 = 0; + span447[num2] = new QuestStep(EInteractionType.Interact, 1052207u, new Vector3(-609.3385f, -3.3580189f, -504.5701f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj280.Steps = list447; reference325 = obj280; - ref QuestSequence reference326 = ref span233[4]; + num++; + ref QuestSequence reference326 = ref span441[num]; QuestSequence obj281 = new QuestSequence { Sequence = 4 @@ -373967,37 +454916,45 @@ public static class AssemblyQuestLoader num2 = 1; List list448 = new List(num2); CollectionsMarshal.SetCount(list448, num2); - ref QuestStep reference327 = ref CollectionsMarshal.AsSpan(list448)[0]; + Span span448 = CollectionsMarshal.AsSpan(list448); + num3 = 0; + ref QuestStep reference327 = ref span448[num3]; QuestStep questStep32 = new QuestStep(EInteractionType.Duty, null, null, 1191); DutyOptions obj282 = new DutyOptions { Enabled = true, ContentFinderConditionId = 1008u }; - num3 = 2; - List list449 = new List(num3); - CollectionsMarshal.SetCount(list449, num3); - Span span236 = CollectionsMarshal.AsSpan(list449); - span236[0] = "(boss 2) Requires vbm's auto-turn gaze option"; - span236[1] = "(boss 3) Dashes (such as on SMN) will dash into the hole"; + index2 = 2; + List list449 = new List(index2); + CollectionsMarshal.SetCount(list449, index2); + Span span449 = CollectionsMarshal.AsSpan(list449); + num4 = 0; + span449[num4] = "(boss 2) Requires vbm's auto-turn gaze option"; + num4++; + span449[num4] = "(boss 3) Dashes (such as on SMN) will dash into the hole"; obj282.Notes = list449; questStep32.DutyOptions = obj282; reference327 = questStep32; obj281.Steps = list448; reference326 = obj281; - span233[5] = new QuestSequence + num++; + span441[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference328 = ref span233[6]; + num++; + ref QuestSequence reference328 = ref span441[num]; QuestSequence obj283 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list450 = new List(num2); - CollectionsMarshal.SetCount(list450, num2); - CollectionsMarshal.AsSpan(list450)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052213u, new Vector3(117.02136f, 12.5f, -67.826416f), 1254) + num3 = 1; + List list450 = new List(num3); + CollectionsMarshal.SetCount(list450, num3); + Span span450 = CollectionsMarshal.AsSpan(list450); + num2 = 0; + span450[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052213u, new Vector3(117.02136f, 12.5f, -67.826416f), 1254) { StopDistance = 6f }; @@ -374010,13 +454967,16 @@ public static class AssemblyQuestLoader num = 1; List list451 = new List(num); CollectionsMarshal.SetCount(list451, num); - CollectionsMarshal.AsSpan(list451)[0] = "liza"; + Span span451 = CollectionsMarshal.AsSpan(list451); + index = 0; + span451[index] = "liza"; questRoot47.Author = list451; - num = 6; - List list452 = new List(num); - CollectionsMarshal.SetCount(list452, num); - Span span237 = CollectionsMarshal.AsSpan(list452); - ref QuestSequence reference329 = ref span237[0]; + index = 6; + List list452 = new List(index); + CollectionsMarshal.SetCount(list452, index); + Span span452 = CollectionsMarshal.AsSpan(list452); + num = 0; + ref QuestSequence reference329 = ref span452[num]; QuestSequence obj284 = new QuestSequence { Sequence = 0 @@ -374024,24 +454984,30 @@ public static class AssemblyQuestLoader num2 = 1; List list453 = new List(num2); CollectionsMarshal.SetCount(list453, num2); - CollectionsMarshal.AsSpan(list453)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052217u, new Vector3(118.242065f, 12.5f, -69.0166f), 1254) + Span span453 = CollectionsMarshal.AsSpan(list453); + num3 = 0; + span453[num3] = new QuestStep(EInteractionType.AcceptQuest, 1052217u, new Vector3(118.242065f, 12.5f, -69.0166f), 1254) { StopDistance = 6f }; obj284.Steps = list453; reference329 = obj284; - ref QuestSequence reference330 = ref span237[1]; + num++; + ref QuestSequence reference330 = ref span452[num]; QuestSequence obj285 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list454 = new List(num2); - CollectionsMarshal.SetCount(list454, num2); - CollectionsMarshal.AsSpan(list454)[0] = new QuestStep(EInteractionType.Interact, 2014471u, new Vector3(39.32251f, 13.260071f, 51.865356f), 1254); + num3 = 1; + List list454 = new List(num3); + CollectionsMarshal.SetCount(list454, num3); + Span span454 = CollectionsMarshal.AsSpan(list454); + num2 = 0; + span454[num2] = new QuestStep(EInteractionType.Interact, 2014471u, new Vector3(39.32251f, 13.260071f, 51.865356f), 1254); obj285.Steps = list454; reference330 = obj285; - ref QuestSequence reference331 = ref span237[2]; + num++; + ref QuestSequence reference331 = ref span452[num]; QuestSequence obj286 = new QuestSequence { Sequence = 2 @@ -374049,21 +455015,27 @@ public static class AssemblyQuestLoader num2 = 1; List list455 = new List(num2); CollectionsMarshal.SetCount(list455, num2); - CollectionsMarshal.AsSpan(list455)[0] = new QuestStep(EInteractionType.Interact, 2014472u, new Vector3(101.8844f, 12.588623f, 130.44934f), 1254); + Span span455 = CollectionsMarshal.AsSpan(list455); + num3 = 0; + span455[num3] = new QuestStep(EInteractionType.Interact, 2014472u, new Vector3(101.8844f, 12.588623f, 130.44934f), 1254); obj286.Steps = list455; reference331 = obj286; - ref QuestSequence reference332 = ref span237[3]; + num++; + ref QuestSequence reference332 = ref span452[num]; QuestSequence obj287 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list456 = new List(num2); - CollectionsMarshal.SetCount(list456, num2); - CollectionsMarshal.AsSpan(list456)[0] = new QuestStep(EInteractionType.Interact, 2014473u, new Vector3(39.597046f, 13.260071f, 53.45227f), 1254); + num3 = 1; + List list456 = new List(num3); + CollectionsMarshal.SetCount(list456, num3); + Span span456 = CollectionsMarshal.AsSpan(list456); + num2 = 0; + span456[num2] = new QuestStep(EInteractionType.Interact, 2014473u, new Vector3(39.597046f, 13.260071f, 53.45227f), 1254); obj287.Steps = list456; reference332 = obj287; - ref QuestSequence reference333 = ref span237[4]; + num++; + ref QuestSequence reference333 = ref span452[num]; QuestSequence obj288 = new QuestSequence { Sequence = 4 @@ -374071,22 +455043,26 @@ public static class AssemblyQuestLoader num2 = 1; List list457 = new List(num2); CollectionsMarshal.SetCount(list457, num2); - CollectionsMarshal.AsSpan(list457)[0] = new QuestStep(EInteractionType.Interact, 1052227u, new Vector3(-581.2009f, -1.7638817f, -505.45514f), 1191) + Span span457 = CollectionsMarshal.AsSpan(list457); + num3 = 0; + span457[num3] = new QuestStep(EInteractionType.Interact, 1052227u, new Vector3(-581.2009f, -1.7638817f, -505.45514f), 1191) { StopDistance = 5f }; obj288.Steps = list457; reference333 = obj288; - ref QuestSequence reference334 = ref span237[5]; + num++; + ref QuestSequence reference334 = ref span452[num]; QuestSequence obj289 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list458 = new List(num2); - CollectionsMarshal.SetCount(list458, num2); - Span span238 = CollectionsMarshal.AsSpan(list458); - ref QuestStep reference335 = ref span238[0]; + num3 = 2; + List list458 = new List(num3); + CollectionsMarshal.SetCount(list458, num3); + Span span458 = CollectionsMarshal.AsSpan(list458); + num2 = 0; + ref QuestStep reference335 = ref span458[num2]; QuestStep obj290 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, @@ -374099,22 +455075,27 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions24 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - num3 = 1; - List list459 = new List(num3); - CollectionsMarshal.SetCount(list459, num3); - CollectionsMarshal.AsSpan(list459)[0] = 1207; + num4 = 1; + List list459 = new List(num4); + CollectionsMarshal.SetCount(list459, num4); + Span span459 = CollectionsMarshal.AsSpan(list459); + index2 = 0; + span459[index2] = 1207; skipStepConditions11.InTerritory = list459; skipConditions24.StepIf = skipStepConditions11; SkipAetheryteCondition skipAetheryteCondition5 = new SkipAetheryteCondition(); - num3 = 1; - List list460 = new List(num3); - CollectionsMarshal.SetCount(list460, num3); - CollectionsMarshal.AsSpan(list460)[0] = 1207; + index2 = 1; + List list460 = new List(index2); + CollectionsMarshal.SetCount(list460, index2); + Span span460 = CollectionsMarshal.AsSpan(list460); + num4 = 0; + span460[num4] = 1207; skipAetheryteCondition5.InTerritory = list460; skipConditions24.AetheryteShortcutIf = skipAetheryteCondition5; obj290.SkipConditions = skipConditions24; reference335 = obj290; - span238[1] = new QuestStep(EInteractionType.CompleteQuest, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); + num2++; + span458[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); obj289.Steps = list458; reference334 = obj289; questRoot47.QuestSequence = list452; @@ -374124,13 +455105,16 @@ public static class AssemblyQuestLoader num = 1; List list461 = new List(num); CollectionsMarshal.SetCount(list461, num); - CollectionsMarshal.AsSpan(list461)[0] = "liza"; + Span span461 = CollectionsMarshal.AsSpan(list461); + index = 0; + span461[index] = "liza"; questRoot48.Author = list461; - num = 6; - List list462 = new List(num); - CollectionsMarshal.SetCount(list462, num); - Span span239 = CollectionsMarshal.AsSpan(list462); - ref QuestSequence reference336 = ref span239[0]; + index = 6; + List list462 = new List(index); + CollectionsMarshal.SetCount(list462, index); + Span span462 = CollectionsMarshal.AsSpan(list462); + num = 0; + ref QuestSequence reference336 = ref span462[num]; QuestSequence obj291 = new QuestSequence { Sequence = 0 @@ -374138,32 +455122,38 @@ public static class AssemblyQuestLoader num2 = 1; List list463 = new List(num2); CollectionsMarshal.SetCount(list463, num2); - CollectionsMarshal.AsSpan(list463)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052233u, new Vector3(-0.80877686f, -4.1909516E-08f, 6.42395f), 1207) + Span span463 = CollectionsMarshal.AsSpan(list463); + num3 = 0; + span463[num3] = new QuestStep(EInteractionType.AcceptQuest, 1052233u, new Vector3(-0.80877686f, -4.1909516E-08f, 6.42395f), 1207) { StopDistance = 5f }; obj291.Steps = list463; reference336 = obj291; - ref QuestSequence reference337 = ref span239[1]; + num++; + ref QuestSequence reference337 = ref span462[num]; QuestSequence obj292 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list464 = new List(num2); - CollectionsMarshal.SetCount(list464, num2); - Span span240 = CollectionsMarshal.AsSpan(list464); - span240[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-363.22934f, 20.162338f, -90.19407f), 1190) + num3 = 2; + List list464 = new List(num3); + CollectionsMarshal.SetCount(list464, num3); + Span span464 = CollectionsMarshal.AsSpan(list464); + num2 = 0; + span464[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-363.22934f, 20.162338f, -90.19407f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; - span240[1] = new QuestStep(EInteractionType.Interact, 1051495u, new Vector3(-365.28577f, 20.14268f, -88.51758f), 1190) + num2++; + span464[num2] = new QuestStep(EInteractionType.Interact, 1051495u, new Vector3(-365.28577f, 20.14268f, -88.51758f), 1190) { StopDistance = 5f }; obj292.Steps = list464; reference337 = obj292; - ref QuestSequence reference338 = ref span239[2]; + num++; + ref QuestSequence reference338 = ref span462[num]; QuestSequence obj293 = new QuestSequence { Sequence = 2 @@ -374171,27 +455161,33 @@ public static class AssemblyQuestLoader num2 = 2; List list465 = new List(num2); CollectionsMarshal.SetCount(list465, num2); - Span span241 = CollectionsMarshal.AsSpan(list465); - span241[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(302.1455f, -15.629961f, -516.2348f), 1190) + Span span465 = CollectionsMarshal.AsSpan(list465); + num3 = 0; + span465[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(302.1455f, -15.629961f, -516.2348f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan }; - span241[1] = new QuestStep(EInteractionType.Interact, 1046988u, new Vector3(302.96777f, -15.629961f, -514.6716f), 1190); + num3++; + span465[num3] = new QuestStep(EInteractionType.Interact, 1046988u, new Vector3(302.96777f, -15.629961f, -514.6716f), 1190); obj293.Steps = list465; reference338 = obj293; - ref QuestSequence reference339 = ref span239[3]; + num++; + ref QuestSequence reference339 = ref span462[num]; QuestSequence obj294 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list466 = new List(num2); - CollectionsMarshal.SetCount(list466, num2); - CollectionsMarshal.AsSpan(list466)[0] = new QuestStep(EInteractionType.Interact, 1051013u, new Vector3(303.79175f, -15.629962f, -516.25854f), 1190); + num3 = 1; + List list466 = new List(num3); + CollectionsMarshal.SetCount(list466, num3); + Span span466 = CollectionsMarshal.AsSpan(list466); + num2 = 0; + span466[num2] = new QuestStep(EInteractionType.Interact, 1051013u, new Vector3(303.79175f, -15.629962f, -516.25854f), 1190); obj294.Steps = list466; reference339 = obj294; - ref QuestSequence reference340 = ref span239[4]; + num++; + ref QuestSequence reference340 = ref span462[num]; QuestSequence obj295 = new QuestSequence { Sequence = 4 @@ -374199,27 +455195,36 @@ public static class AssemblyQuestLoader num2 = 4; List list467 = new List(num2); CollectionsMarshal.SetCount(list467, num2); - Span span242 = CollectionsMarshal.AsSpan(list467); - ref QuestStep reference341 = ref span242[0]; + Span span467 = CollectionsMarshal.AsSpan(list467); + num3 = 0; + ref QuestStep reference341 = ref span467[num3]; QuestStep obj296 = new QuestStep(EInteractionType.Interact, 1052247u, new Vector3(224.96375f, -16.329428f, -527.6417f), 1190) { Fly = true }; - num3 = 6; - List list468 = new List(num3); - CollectionsMarshal.SetCount(list468, num3); - Span span243 = CollectionsMarshal.AsSpan(list468); - span243[0] = null; - span243[1] = null; - span243[2] = null; - span243[3] = null; - span243[4] = null; - span243[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list468 = new List(num4); + CollectionsMarshal.SetCount(list468, num4); + Span span468 = CollectionsMarshal.AsSpan(list468); + index2 = 0; + span468[index2] = null; + index2++; + span468[index2] = null; + index2++; + span468[index2] = null; + index2++; + span468[index2] = null; + index2++; + span468[index2] = null; + index2++; + span468[index2] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); obj296.CompletionQuestVariablesFlags = list468; - num3 = 1; - List list469 = new List(num3); - CollectionsMarshal.SetCount(list469, num3); - CollectionsMarshal.AsSpan(list469)[0] = new DialogueChoice + index2 = 1; + List list469 = new List(index2); + CollectionsMarshal.SetCount(list469, index2); + Span span469 = CollectionsMarshal.AsSpan(list469); + num4 = 0; + span469[num4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMG105_05248_Q2_000_000"), @@ -374227,69 +455232,92 @@ public static class AssemblyQuestLoader }; obj296.DialogueChoices = list469; reference341 = obj296; - ref QuestStep reference342 = ref span242[1]; + num3++; + ref QuestStep reference342 = ref span467[num3]; QuestStep obj297 = new QuestStep(EInteractionType.Interact, 1052245u, new Vector3(276.78333f, -16.53927f, -562.7985f), 1190) { Fly = true }; - num3 = 6; - List list470 = new List(num3); - CollectionsMarshal.SetCount(list470, num3); - Span span244 = CollectionsMarshal.AsSpan(list470); - span244[0] = null; - span244[1] = null; - span244[2] = null; - span244[3] = null; - span244[4] = null; - span244[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list470 = new List(num4); + CollectionsMarshal.SetCount(list470, num4); + Span span470 = CollectionsMarshal.AsSpan(list470); + index2 = 0; + span470[index2] = null; + index2++; + span470[index2] = null; + index2++; + span470[index2] = null; + index2++; + span470[index2] = null; + index2++; + span470[index2] = null; + index2++; + span470[index2] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj297.CompletionQuestVariablesFlags = list470; reference342 = obj297; - ref QuestStep reference343 = ref span242[2]; + num3++; + ref QuestStep reference343 = ref span467[num3]; QuestStep obj298 = new QuestStep(EInteractionType.Interact, 1052243u, new Vector3(332.26514f, -14.986355f, -558.95325f), 1190) { Fly = true }; - num3 = 6; - List list471 = new List(num3); - CollectionsMarshal.SetCount(list471, num3); - Span span245 = CollectionsMarshal.AsSpan(list471); - span245[0] = null; - span245[1] = null; - span245[2] = null; - span245[3] = null; - span245[4] = null; - span245[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index2 = 6; + List list471 = new List(index2); + CollectionsMarshal.SetCount(list471, index2); + Span span471 = CollectionsMarshal.AsSpan(list471); + num4 = 0; + span471[num4] = null; + num4++; + span471[num4] = null; + num4++; + span471[num4] = null; + num4++; + span471[num4] = null; + num4++; + span471[num4] = null; + num4++; + span471[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj298.CompletionQuestVariablesFlags = list471; reference343 = obj298; - ref QuestStep reference344 = ref span242[3]; + num3++; + ref QuestStep reference344 = ref span467[num3]; QuestStep obj299 = new QuestStep(EInteractionType.Interact, 1052239u, new Vector3(354.57385f, -17.082237f, -452.5063f), 1190) { Fly = true }; - num3 = 6; - List list472 = new List(num3); - CollectionsMarshal.SetCount(list472, num3); - Span span246 = CollectionsMarshal.AsSpan(list472); - span246[0] = null; - span246[1] = null; - span246[2] = null; - span246[3] = null; - span246[4] = null; - span246[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + num4 = 6; + List list472 = new List(num4); + CollectionsMarshal.SetCount(list472, num4); + Span span472 = CollectionsMarshal.AsSpan(list472); + index2 = 0; + span472[index2] = null; + index2++; + span472[index2] = null; + index2++; + span472[index2] = null; + index2++; + span472[index2] = null; + index2++; + span472[index2] = null; + index2++; + span472[index2] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj299.CompletionQuestVariablesFlags = list472; reference344 = obj299; obj295.Steps = list467; reference340 = obj295; - ref QuestSequence reference345 = ref span239[5]; + num++; + ref QuestSequence reference345 = ref span462[num]; QuestSequence obj300 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list473 = new List(num2); - CollectionsMarshal.SetCount(list473, num2); - Span span247 = CollectionsMarshal.AsSpan(list473); - span247[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(301.4884f, -15.679954f, -504.85742f), 1190) + num3 = 3; + List list473 = new List(num3); + CollectionsMarshal.SetCount(list473, num3); + Span span473 = CollectionsMarshal.AsSpan(list473); + num2 = 0; + span473[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(301.4884f, -15.679954f, -504.85742f), 1190) { SkipConditions = new SkipConditions { @@ -374299,7 +455327,8 @@ public static class AssemblyQuestLoader } } }; - span247[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(302.1455f, -15.629961f, -516.2348f), 1190) + num2++; + span473[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(302.1455f, -15.629961f, -516.2348f), 1190) { Fly = true, SkipConditions = new SkipConditions @@ -374310,7 +455339,8 @@ public static class AssemblyQuestLoader } } }; - span247[2] = new QuestStep(EInteractionType.CompleteQuest, 1051013u, new Vector3(303.79175f, -15.629962f, -516.25854f), 1190); + num2++; + span473[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051013u, new Vector3(303.79175f, -15.629962f, -516.25854f), 1190); obj300.Steps = list473; reference345 = obj300; questRoot48.QuestSequence = list462; @@ -374320,13 +455350,16 @@ public static class AssemblyQuestLoader num = 1; List list474 = new List(num); CollectionsMarshal.SetCount(list474, num); - CollectionsMarshal.AsSpan(list474)[0] = "liza"; + Span span474 = CollectionsMarshal.AsSpan(list474); + index = 0; + span474[index] = "liza"; questRoot49.Author = list474; - num = 6; - List list475 = new List(num); - CollectionsMarshal.SetCount(list475, num); - Span span248 = CollectionsMarshal.AsSpan(list475); - ref QuestSequence reference346 = ref span248[0]; + index = 6; + List list475 = new List(index); + CollectionsMarshal.SetCount(list475, index); + Span span475 = CollectionsMarshal.AsSpan(list475); + num = 0; + ref QuestSequence reference346 = ref span475[num]; QuestSequence obj301 = new QuestSequence { Sequence = 0 @@ -374334,38 +455367,49 @@ public static class AssemblyQuestLoader num2 = 1; List list476 = new List(num2); CollectionsMarshal.SetCount(list476, num2); - CollectionsMarshal.AsSpan(list476)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052248u, new Vector3(293.93445f, -16.71379f, -528.70984f), 1190); + Span span476 = CollectionsMarshal.AsSpan(list476); + num3 = 0; + span476[num3] = new QuestStep(EInteractionType.AcceptQuest, 1052248u, new Vector3(293.93445f, -16.71379f, -528.70984f), 1190); obj301.Steps = list476; reference346 = obj301; - ref QuestSequence reference347 = ref span248[1]; + num++; + ref QuestSequence reference347 = ref span475[num]; QuestSequence obj302 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list477 = new List(num2); - CollectionsMarshal.SetCount(list477, num2); - ref QuestStep reference348 = ref CollectionsMarshal.AsSpan(list477)[0]; + num3 = 1; + List list477 = new List(num3); + CollectionsMarshal.SetCount(list477, num3); + Span span477 = CollectionsMarshal.AsSpan(list477); + num2 = 0; + ref QuestStep reference348 = ref span477[num2]; QuestStep questStep33 = new QuestStep(EInteractionType.SinglePlayerDuty, 1052248u, new Vector3(293.93445f, -16.71379f, -528.70984f), 1190); SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 4; - List list478 = new List(num3); - CollectionsMarshal.SetCount(list478, num3); - Span span249 = CollectionsMarshal.AsSpan(list478); - span249[0] = "(pre-fight) AI doesn't move to the Rroneeks or interact with them"; - span249[1] = "(phase 1/2) No VBM module, so doesn't target the leg, doesn't avoid AOEs and dies"; - span249[2] = "(phase 1) AI doesn't pull boss"; - span249[3] = "(phase 2) AI runs away with the stack marker; doesn't pick up orbs"; + index2 = 4; + List list478 = new List(index2); + CollectionsMarshal.SetCount(list478, index2); + Span span478 = CollectionsMarshal.AsSpan(list478); + num4 = 0; + span478[num4] = "(pre-fight) AI doesn't move to the Rroneeks or interact with them"; + num4++; + span478[num4] = "(phase 1/2) No VBM module, so doesn't target the leg, doesn't avoid AOEs and dies"; + num4++; + span478[num4] = "(phase 1) AI doesn't pull boss"; + num4++; + span478[num4] = "(phase 2) AI runs away with the stack marker; doesn't pick up orbs"; singlePlayerDutyOptions.Notes = list478; questStep33.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference348 = questStep33; obj302.Steps = list477; reference347 = obj302; - span248[2] = new QuestSequence + num++; + span475[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference349 = ref span248[3]; + num++; + ref QuestSequence reference349 = ref span475[num]; QuestSequence obj303 = new QuestSequence { Sequence = 3 @@ -374373,29 +455417,36 @@ public static class AssemblyQuestLoader num2 = 1; List list479 = new List(num2); CollectionsMarshal.SetCount(list479, num2); - CollectionsMarshal.AsSpan(list479)[0] = new QuestStep(EInteractionType.Interact, 1052252u, new Vector3(299.15308f, -15.629961f, -518.4253f), 1190) + Span span479 = CollectionsMarshal.AsSpan(list479); + num3 = 0; + span479[num3] = new QuestStep(EInteractionType.Interact, 1052252u, new Vector3(299.15308f, -15.629961f, -518.4253f), 1190) { StopDistance = 5f }; obj303.Steps = list479; reference349 = obj303; - ref QuestSequence reference350 = ref span248[4]; + num++; + ref QuestSequence reference350 = ref span475[num]; QuestSequence obj304 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list480 = new List(num2); - CollectionsMarshal.SetCount(list480, num2); - ref QuestStep reference351 = ref CollectionsMarshal.AsSpan(list480)[0]; + num3 = 1; + List list480 = new List(num3); + CollectionsMarshal.SetCount(list480, num3); + Span span480 = CollectionsMarshal.AsSpan(list480); + num2 = 0; + ref QuestStep reference351 = ref span480[num2]; QuestStep obj305 = new QuestStep(EInteractionType.Interact, 1052255u, new Vector3(-123.91852f, 16.187744f, -296.80328f), 1190) { Fly = true }; - num3 = 1; - List list481 = new List(num3); - CollectionsMarshal.SetCount(list481, num3); - CollectionsMarshal.AsSpan(list481)[0] = new DialogueChoice + num4 = 1; + List list481 = new List(num4); + CollectionsMarshal.SetCount(list481, num4); + Span span481 = CollectionsMarshal.AsSpan(list481); + index2 = 0; + span481[index2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMG106_05249_SYSTEM_000_402") @@ -374404,7 +455455,8 @@ public static class AssemblyQuestLoader reference351 = obj305; obj304.Steps = list480; reference350 = obj304; - ref QuestSequence reference352 = ref span248[5]; + num++; + ref QuestSequence reference352 = ref span475[num]; QuestSequence obj306 = new QuestSequence { Sequence = byte.MaxValue @@ -374412,7 +455464,9 @@ public static class AssemblyQuestLoader num2 = 1; List list482 = new List(num2); CollectionsMarshal.SetCount(list482, num2); - CollectionsMarshal.AsSpan(list482)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052259u, new Vector3(-171.03839f, 15.75679f, -372.45752f), 1190); + Span span482 = CollectionsMarshal.AsSpan(list482); + num3 = 0; + span482[num3] = new QuestStep(EInteractionType.CompleteQuest, 1052259u, new Vector3(-171.03839f, 15.75679f, -372.45752f), 1190); obj306.Steps = list482; reference352 = obj306; questRoot49.QuestSequence = list475; @@ -374426,13 +455480,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -374440,19 +455497,23 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052261u, new Vector3(-172.25916f, 15.73959f, -376.1197f), 1190); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052261u, new Vector3(-172.25916f, 15.73959f, -376.1197f), 1190); obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, @@ -374468,22 +455529,28 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 1207; + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = 1207; skipStepConditions.InTerritory = list5; skipConditions.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = 1207; + index3 = 1; + List list6 = new List(index3); + CollectionsMarshal.SetCount(list6, index3); + Span span6 = CollectionsMarshal.AsSpan(list6); + num3 = 0; + span6[num3] = 1207; skipAetheryteCondition.InTerritory = list6; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj3.SkipConditions = skipConditions; reference3 = obj3; - span2[1] = new QuestStep(EInteractionType.Interact, 1052521u, new Vector3(-1.8463745f, -3.4458935E-08f, 5.8441772f), 1207); + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 1052521u, new Vector3(-1.8463745f, -3.4458935E-08f, 5.8441772f), 1207); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -374491,21 +455558,27 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1052269u, new Vector3(-2.456726f, -7.2107476E-08f, 8.987488f), 1207); + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.Interact, 1052269u, new Vector3(-2.456726f, -7.2107476E-08f, 8.987488f), 1207); obj4.Steps = list7; reference4 = obj4; - ref QuestSequence reference5 = ref span[3]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1052271u, new Vector3(-0.41204834f, -3.9115548E-08f, 6.240906f), 1207); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.Interact, 1052271u, new Vector3(-0.41204834f, -3.9115548E-08f, 6.240906f), 1207); obj5.Steps = list8; reference5 = obj5; - ref QuestSequence reference6 = ref span[4]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -374513,21 +455586,26 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1052272u, new Vector3(0.19836426f, 0.00054359436f, -94.98743f), 1186) + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.Interact, 1052272u, new Vector3(0.19836426f, 0.00054359436f, -94.98743f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine }; obj6.Steps = list9; reference6 = obj6; - ref QuestSequence reference7 = ref span[5]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052267u, new Vector3(-3.7080078f, -7.4505806E-08f, 9.170593f), 1207) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052267u, new Vector3(-3.7080078f, -7.4505806E-08f, 9.170593f), 1207) { StopDistance = 7f }; @@ -374540,15 +455618,18 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = "Starr"; + Span span11 = CollectionsMarshal.AsSpan(list11); + index = 0; + span11[index] = "Starr"; questRoot2.Author = list11; questRoot2.IsSeasonalQuest = true; questRoot2.SeasonalQuestExpiry = new DateTime(2025, 2, 17, 0, 0, 0, DateTimeKind.Utc); - num = 8; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - Span span3 = CollectionsMarshal.AsSpan(list12); - ref QuestSequence reference8 = ref span3[0]; + index = 8; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + Span span12 = CollectionsMarshal.AsSpan(list12); + num = 0; + ref QuestSequence reference8 = ref span12[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -374556,7 +455637,9 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list13)[0]; + Span span13 = CollectionsMarshal.AsSpan(list13); + index2 = 0; + ref QuestStep reference9 = ref span13[index2]; QuestStep obj9 = new QuestStep(EInteractionType.AcceptQuest, 1052351u, new Vector3(-50.003845f, 6.4999986f, -90.013f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -374574,22 +455657,27 @@ public static class AssemblyQuestLoader num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - CollectionsMarshal.AsSpan(list14)[0] = 133; + Span span14 = CollectionsMarshal.AsSpan(list14); + index3 = 0; + span14[index3] = 133; obj10.InTerritory = list14; skipConditions2.AetheryteShortcutIf = obj10; obj9.SkipConditions = skipConditions2; reference9 = obj9; obj8.Steps = list13; reference8 = obj8; - ref QuestSequence reference10 = ref span3[1]; + num++; + ref QuestSequence reference10 = ref span12[num]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1052368u, new Vector3(-273.02972f, 8.083828f, -175.49408f), 133) + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num2 = 0; + span15[num2] = new QuestStep(EInteractionType.Interact, 1052368u, new Vector3(-273.02972f, 8.083828f, -175.49408f), 133) { AethernetShortcut = new AethernetShortcut { @@ -374599,7 +455687,8 @@ public static class AssemblyQuestLoader }; obj11.Steps = list15; reference10 = obj11; - ref QuestSequence reference11 = ref span3[2]; + num++; + ref QuestSequence reference11 = ref span12[num]; QuestSequence obj12 = new QuestSequence { Sequence = 2 @@ -374607,8 +455696,9 @@ public static class AssemblyQuestLoader num2 = 5; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span4 = CollectionsMarshal.AsSpan(list16); - ref QuestStep reference12 = ref span4[0]; + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + ref QuestStep reference12 = ref span16[index2]; QuestStep obj13 = new QuestStep(EInteractionType.Interact, 1052371u, new Vector3(-83.45166f, 7.316897f, -125.474915f), 133) { AethernetShortcut = new AethernetShortcut @@ -374617,61 +455707,86 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - num3 = 6; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - Span span5 = CollectionsMarshal.AsSpan(list17); - span5[0] = null; - span5[1] = null; - span5[2] = null; - span5[3] = null; - span5[4] = null; - span5[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list17 = new List(index3); + CollectionsMarshal.SetCount(list17, index3); + Span span17 = CollectionsMarshal.AsSpan(list17); + num3 = 0; + span17[num3] = null; + num3++; + span17[num3] = null; + num3++; + span17[num3] = null; + num3++; + span17[num3] = null; + num3++; + span17[num3] = null; + num3++; + span17[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj13.CompletionQuestVariablesFlags = list17; reference12 = obj13; - ref QuestStep reference13 = ref span4[1]; + index2++; + ref QuestStep reference13 = ref span16[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1052370u, new Vector3(-63.889526f, 7.1254845f, -114.85474f), 133); num3 = 6; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span6 = CollectionsMarshal.AsSpan(list18); - span6[0] = null; - span6[1] = null; - span6[2] = null; - span6[3] = null; - span6[4] = null; - span6[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span18 = CollectionsMarshal.AsSpan(list18); + index3 = 0; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = null; + index3++; + span18[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list18; reference13 = questStep; - span4[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-52.803135f, 7.148118f, -115.562614f), 133); - span4[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-46.505447f, 6.4003353f, -106.06247f), 133); - ref QuestStep reference14 = ref span4[4]; + index2++; + span16[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-52.803135f, 7.148118f, -115.562614f), 133); + index2++; + span16[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-46.505447f, 6.4003353f, -106.06247f), 133); + index2++; + ref QuestStep reference14 = ref span16[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1052369u, new Vector3(-41.33673f, 6.2679696f, -104.14282f), 133); - num3 = 6; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span7 = CollectionsMarshal.AsSpan(list19); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list19 = new List(index3); + CollectionsMarshal.SetCount(list19, index3); + Span span19 = CollectionsMarshal.AsSpan(list19); + num3 = 0; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = null; + num3++; + span19[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list19; reference14 = questStep2; obj12.Steps = list16; reference11 = obj12; - ref QuestSequence reference15 = ref span3[3]; + num++; + ref QuestSequence reference15 = ref span12[num]; QuestSequence obj14 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - Span span8 = CollectionsMarshal.AsSpan(list20); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-46.505447f, 6.4003353f, -106.06247f), 133); - span8[1] = new QuestStep(EInteractionType.Interact, 2014516u, new Vector3(81.651f, 6.0272217f, -101.1521f), 133) + index2 = 2; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-46.505447f, 6.4003353f, -106.06247f), 133); + num2++; + span20[num2] = new QuestStep(EInteractionType.Interact, 2014516u, new Vector3(81.651f, 6.0272217f, -101.1521f), 133) { AethernetShortcut = new AethernetShortcut { @@ -374681,7 +455796,8 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference15 = obj14; - ref QuestSequence reference16 = ref span3[4]; + num++; + ref QuestSequence reference16 = ref span12[num]; QuestSequence obj15 = new QuestSequence { Sequence = 4 @@ -374689,22 +455805,30 @@ public static class AssemblyQuestLoader num2 = 3; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span9 = CollectionsMarshal.AsSpan(list21); - ref QuestStep reference17 = ref span9[0]; + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + ref QuestStep reference17 = ref span21[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1052377u, new Vector3(138.01782f, 13.595509f, -102.64752f), 133); num3 = 6; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - Span span10 = CollectionsMarshal.AsSpan(list22); - span10[0] = null; - span10[1] = null; - span10[2] = null; - span10[3] = null; - span10[4] = null; - span10[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span22 = CollectionsMarshal.AsSpan(list22); + index3 = 0; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = null; + index3++; + span22[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list22; reference17 = questStep3; - ref QuestStep reference18 = ref span9[1]; + index2++; + ref QuestStep reference18 = ref span21[index2]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 1052375u, new Vector3(-68.77246f, 6.88836f, -134.3252f), 133) { AethernetShortcut = new AethernetShortcut @@ -374713,19 +455837,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - num3 = 6; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - Span span11 = CollectionsMarshal.AsSpan(list23); - span11[0] = null; - span11[1] = null; - span11[2] = null; - span11[3] = null; - span11[4] = null; - span11[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + Span span23 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = null; + num3++; + span23[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj16.CompletionQuestVariablesFlags = list23; reference18 = obj16; - ref QuestStep reference19 = ref span9[2]; + index2++; + ref QuestStep reference19 = ref span21[index2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1052380u, new Vector3(10.391357f, 0.5406719f, -1.7853394f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -374740,35 +455871,46 @@ public static class AssemblyQuestLoader num3 = 2; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - Span span12 = CollectionsMarshal.AsSpan(list24); - span12[0] = 132; - span12[1] = 133; + Span span24 = CollectionsMarshal.AsSpan(list24); + index3 = 0; + span24[index3] = 132; + index3++; + span24[index3] = 133; skipAetheryteCondition2.InTerritory = list24; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition2; obj17.SkipConditions = skipConditions3; - num3 = 6; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - Span span13 = CollectionsMarshal.AsSpan(list25); - span13[0] = null; - span13[1] = null; - span13[2] = null; - span13[3] = null; - span13[4] = null; - span13[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list25 = new List(index3); + CollectionsMarshal.SetCount(list25, index3); + Span span25 = CollectionsMarshal.AsSpan(list25); + num3 = 0; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = null; + num3++; + span25[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj17.CompletionQuestVariablesFlags = list25; reference19 = obj17; obj15.Steps = list21; reference16 = obj15; - ref QuestSequence reference20 = ref span3[5]; + num++; + ref QuestSequence reference20 = ref span12[num]; QuestSequence obj18 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1052382u, new Vector3(-256.79407f, -2.3841858E-07f, -188.61682f), 133) + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num2 = 0; + span26[num2] = new QuestStep(EInteractionType.Interact, 1052382u, new Vector3(-256.79407f, -2.3841858E-07f, -188.61682f), 133) { AethernetShortcut = new AethernetShortcut { @@ -374785,7 +455927,8 @@ public static class AssemblyQuestLoader }; obj18.Steps = list26; reference20 = obj18; - ref QuestSequence reference21 = ref span3[6]; + num++; + ref QuestSequence reference21 = ref span12[num]; QuestSequence obj19 = new QuestSequence { Sequence = 6 @@ -374793,18 +455936,23 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1052382u, new Vector3(-256.79407f, -2.3841858E-07f, -188.61682f), 133); + Span span27 = CollectionsMarshal.AsSpan(list27); + index2 = 0; + span27[index2] = new QuestStep(EInteractionType.Interact, 1052382u, new Vector3(-256.79407f, -2.3841858E-07f, -188.61682f), 133); obj19.Steps = list27; reference21 = obj19; - ref QuestSequence reference22 = ref span3[7]; + num++; + ref QuestSequence reference22 = ref span12[num]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052351u, new Vector3(-50.003845f, 6.4999986f, -90.013f), 133) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052351u, new Vector3(-50.003845f, 6.4999986f, -90.013f), 133) { AethernetShortcut = new AethernetShortcut { @@ -374821,13 +455969,16 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - CollectionsMarshal.AsSpan(list29)[0] = "liza"; + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + span29[index] = "liza"; questRoot3.Author = list29; - num = 6; - List list30 = new List(num); - CollectionsMarshal.SetCount(list30, num); - Span span14 = CollectionsMarshal.AsSpan(list30); - ref QuestSequence reference23 = ref span14[0]; + index = 6; + List list30 = new List(index); + CollectionsMarshal.SetCount(list30, index); + Span span30 = CollectionsMarshal.AsSpan(list30); + num = 0; + ref QuestSequence reference23 = ref span30[num]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -374835,7 +455986,9 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048609u, new Vector3(-10.696594f, 2.4000525f, -31.174255f), 962) + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span31[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048609u, new Vector3(-10.696594f, 2.4000525f, -31.174255f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -374848,21 +456001,25 @@ public static class AssemblyQuestLoader }; obj21.Steps = list31; reference23 = obj21; - ref QuestSequence reference24 = ref span14[1]; + num++; + ref QuestSequence reference24 = ref span30[num]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list32 = new List(num2); - CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1045332u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num2 = 0; + span32[num2] = new QuestStep(EInteractionType.Interact, 1045332u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; obj22.Steps = list32; reference24 = obj22; - ref QuestSequence reference25 = ref span14[2]; + num++; + ref QuestSequence reference25 = ref span30[num]; QuestSequence obj23 = new QuestSequence { Sequence = 2 @@ -374870,31 +456027,38 @@ public static class AssemblyQuestLoader num2 = 3; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span15 = CollectionsMarshal.AsSpan(list33); - span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(807.9048f, 152.2857f, -243.60707f), 961) + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(807.9048f, 152.2857f, -243.60707f), 961) { Fly = true, AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; - span15[1] = new QuestStep(EInteractionType.Interact, 2012293u, new Vector3(809.9336f, 151.81189f, -243.42719f), 961) + index2++; + span33[index2] = new QuestStep(EInteractionType.Interact, 2012293u, new Vector3(809.9336f, 151.81189f, -243.42719f), 961) { TargetTerritoryId = (ushort)1025 }; - span15[2] = new QuestStep(EInteractionType.Interact, 1048610u, new Vector3(93.94971f, -1E-11f, 61.020752f), 1025); + index2++; + span33[index2] = new QuestStep(EInteractionType.Interact, 1048610u, new Vector3(93.94971f, -1E-11f, 61.020752f), 1025); obj23.Steps = list33; reference25 = obj23; - ref QuestSequence reference26 = ref span14[3]; + num++; + ref QuestSequence reference26 = ref span30[num]; QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list34 = new List(num2); - CollectionsMarshal.SetCount(list34, num2); - CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 2014542u, new Vector3(104.57007f, -0.015319824f, 46.25f), 1025); + index2 = 1; + List list34 = new List(index2); + CollectionsMarshal.SetCount(list34, index2); + Span span34 = CollectionsMarshal.AsSpan(list34); + num2 = 0; + span34[num2] = new QuestStep(EInteractionType.Interact, 2014542u, new Vector3(104.57007f, -0.015319824f, 46.25f), 1025); obj24.Steps = list34; reference26 = obj24; - ref QuestSequence reference27 = ref span14[4]; + num++; + ref QuestSequence reference27 = ref span30[num]; QuestSequence obj25 = new QuestSequence { Sequence = 4 @@ -374902,18 +456066,23 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1048610u, new Vector3(93.94971f, -1E-11f, 61.020752f), 1025); + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.Interact, 1048610u, new Vector3(93.94971f, -1E-11f, 61.020752f), 1025); obj25.Steps = list35; reference27 = obj25; - ref QuestSequence reference28 = ref span14[5]; + num++; + ref QuestSequence reference28 = ref span30[num]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list36 = new List(num2); - CollectionsMarshal.SetCount(list36, num2); - CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045332u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) + index2 = 1; + List list36 = new List(index2); + CollectionsMarshal.SetCount(list36, index2); + Span span36 = CollectionsMarshal.AsSpan(list36); + num2 = 0; + span36[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045332u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; @@ -374926,13 +456095,16 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = "Censored"; + Span span37 = CollectionsMarshal.AsSpan(list37); + index = 0; + span37[index] = "Censored"; questRoot4.Author = list37; - num = 4; - List list38 = new List(num); - CollectionsMarshal.SetCount(list38, num); - Span span16 = CollectionsMarshal.AsSpan(list38); - ref QuestSequence reference29 = ref span16[0]; + index = 4; + List list38 = new List(index); + CollectionsMarshal.SetCount(list38, index); + Span span38 = CollectionsMarshal.AsSpan(list38); + num = 0; + ref QuestSequence reference29 = ref span38[num]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -374940,7 +456112,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052591u, new Vector3(71.854614f, -16.247f, 118.242065f), 962) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052591u, new Vector3(71.854614f, -16.247f, 118.242065f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -374958,21 +456132,25 @@ public static class AssemblyQuestLoader }; obj27.Steps = list39; reference29 = obj27; - ref QuestSequence reference30 = ref span16[1]; + num++; + ref QuestSequence reference30 = ref span38[num]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 2014652u, new Vector3(-648.73737f, 130.0221f, 717.3723f), 959) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.Interact, 2014652u, new Vector3(-648.73737f, 130.0221f, 717.3723f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; obj28.Steps = list40; reference30 = obj28; - ref QuestSequence reference31 = ref span16[2]; + num++; + ref QuestSequence reference31 = ref span38[num]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -374980,21 +456158,26 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1052592u, new Vector3(25.680908f, -137.41669f, -411.30695f), 959) + Span span41 = CollectionsMarshal.AsSpan(list41); + index2 = 0; + span41[index2] = new QuestStep(EInteractionType.Interact, 1052592u, new Vector3(25.680908f, -137.41669f, -411.30695f), 959) { Fly = true }; obj29.Steps = list41; reference31 = obj29; - ref QuestSequence reference32 = ref span16[3]; + num++; + ref QuestSequence reference32 = ref span38[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052595u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052595u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237) { NextQuestId = new QuestId(5254) }; @@ -375007,13 +456190,16 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = "liza"; + Span span43 = CollectionsMarshal.AsSpan(list43); + index = 0; + span43[index] = "liza"; questRoot5.Author = list43; - num = 7; - List list44 = new List(num); - CollectionsMarshal.SetCount(list44, num); - Span span17 = CollectionsMarshal.AsSpan(list44); - ref QuestSequence reference33 = ref span17[0]; + index = 7; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + Span span44 = CollectionsMarshal.AsSpan(list44); + num = 0; + ref QuestSequence reference33 = ref span44[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -375021,24 +456207,30 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052595u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237); + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052595u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237); obj31.Steps = list45; reference33 = obj31; - ref QuestSequence reference34 = ref span17[1]; + num++; + ref QuestSequence reference34 = ref span44[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list46 = new List(num2); - CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(-51.255127f, -3.3378603E-06f, -72.64819f), 1237) + index2 = 1; + List list46 = new List(index2); + CollectionsMarshal.SetCount(list46, index2); + Span span46 = CollectionsMarshal.AsSpan(list46); + num2 = 0; + span46[num2] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(-51.255127f, -3.3378603E-06f, -72.64819f), 1237) { StopDistance = 7f }; obj32.Steps = list46; reference34 = obj32; - ref QuestSequence reference35 = ref span17[2]; + num++; + ref QuestSequence reference35 = ref span44[num]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -375046,27 +456238,33 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(-40.065205f, 11.930657f, -95.35249f), 1237) + Span span47 = CollectionsMarshal.AsSpan(list47); + index2 = 0; + span47[index2] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(-40.065205f, 11.930657f, -95.35249f), 1237) { StopDistance = 0.5f }; obj33.Steps = list47; reference35 = obj33; - ref QuestSequence reference36 = ref span17[3]; + num++; + ref QuestSequence reference36 = ref span44[num]; QuestSequence obj34 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(-425.39127f, 47.861256f, 212.72206f), 1237) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(-425.39127f, 47.861256f, 212.72206f), 1237) { StopDistance = 0.5f }; obj34.Steps = list48; reference36 = obj34; - ref QuestSequence reference37 = ref span17[4]; + num++; + ref QuestSequence reference37 = ref span44[num]; QuestSequence obj35 = new QuestSequence { Sequence = 4 @@ -375074,52 +456272,65 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(533.5678f, 39.006783f, 167.32143f), 1237) + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span49[index2] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(533.5678f, 39.006783f, 167.32143f), 1237) { StopDistance = 0.5f }; obj35.Steps = list49; reference37 = obj35; - ref QuestSequence reference38 = ref span17[5]; + num++; + ref QuestSequence reference38 = ref span44[num]; QuestSequence obj36 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list50)[0]; + index2 = 1; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + ref QuestStep reference39 = ref span50[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2014657u, new Vector3(533.53174f, 38.986816f, 167.25415f), 1237); num3 = 2; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - Span span18 = CollectionsMarshal.AsSpan(list51); - span18[0] = new DialogueChoice + Span span51 = CollectionsMarshal.AsSpan(list51); + index3 = 0; + span51[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGWK102_05254_Q2_000_000") }; - span18[1] = new DialogueChoice + index3++; + span51[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGWK102_05254_Q3_000_000"), Answer = new ExcelRef("TEXT_KINGWK102_05254_A3_000_001") }; questStep4.DialogueChoices = list51; - num3 = 5; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span19 = CollectionsMarshal.AsSpan(list52); - span19[0] = 0u; - span19[1] = 1u; - span19[2] = 2u; - span19[3] = 3u; - span19[4] = 4u; + index3 = 5; + List list52 = new List(index3); + CollectionsMarshal.SetCount(list52, index3); + Span span52 = CollectionsMarshal.AsSpan(list52); + num3 = 0; + span52[num3] = 0u; + num3++; + span52[num3] = 1u; + num3++; + span52[num3] = 2u; + num3++; + span52[num3] = 3u; + num3++; + span52[num3] = 4u; questStep4.PointMenuChoices = list52; reference39 = questStep4; obj36.Steps = list50; reference38 = obj36; - ref QuestSequence reference40 = ref span17[6]; + num++; + ref QuestSequence reference40 = ref span44[num]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -375127,12 +456338,14 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span20 = CollectionsMarshal.AsSpan(list53); - span20[0] = new QuestStep(EInteractionType.Action, null, null, 1237) + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.Action, null, null, 1237) { Action = EAction.DutyAction1 }; - span20[1] = new QuestStep(EInteractionType.CompleteQuest, 1052617u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237) + index2++; + span53[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052617u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237) { NextQuestId = new QuestId(5409) }; @@ -375145,21 +456358,26 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - CollectionsMarshal.AsSpan(list54)[0] = "liza"; + Span span54 = CollectionsMarshal.AsSpan(list54); + index = 0; + span54[index] = "liza"; questRoot6.Author = list54; - num = 7; - List list55 = new List(num); - CollectionsMarshal.SetCount(list55, num); - Span span21 = CollectionsMarshal.AsSpan(list55); - ref QuestSequence reference41 = ref span21[0]; + index = 7; + List list55 = new List(index); + CollectionsMarshal.SetCount(list55, index); + Span span55 = CollectionsMarshal.AsSpan(list55); + num = 0; + ref QuestSequence reference41 = ref span55[num]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052565u, new Vector3(706.69104f, -133.174f, 530.7545f), 1189) + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + span56[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052565u, new Vector3(706.69104f, -133.174f, 530.7545f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook, SkipConditions = new SkipConditions @@ -375172,7 +456390,8 @@ public static class AssemblyQuestLoader }; obj38.Steps = list56; reference41 = obj38; - ref QuestSequence reference42 = ref span21[1]; + num++; + ref QuestSequence reference42 = ref span55[num]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -375180,29 +456399,35 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = new QuestStep(EInteractionType.Interact, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) { Fly = true }; obj39.Steps = list57; reference42 = obj39; - ref QuestSequence reference43 = ref span21[2]; + num++; + ref QuestSequence reference43 = ref span55[num]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list58 = new List(num2); - CollectionsMarshal.SetCount(list58, num2); - Span span22 = CollectionsMarshal.AsSpan(list58); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(562.12634f, -137.174f, 563.6532f), 1189) + index2 = 2; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num2 = 0; + span58[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(562.12634f, -137.174f, 563.6532f), 1189) { Fly = true }; - span22[1] = new QuestStep(EInteractionType.Interact, 1052568u, new Vector3(562.46277f, -137.17401f, 565.1482f), 1189); + num2++; + span58[num2] = new QuestStep(EInteractionType.Interact, 1052568u, new Vector3(562.46277f, -137.17401f, 565.1482f), 1189); obj40.Steps = list58; reference43 = obj40; - ref QuestSequence reference44 = ref span21[3]; + num++; + ref QuestSequence reference44 = ref span55[num]; QuestSequence obj41 = new QuestSequence { Sequence = 3 @@ -375210,24 +456435,33 @@ public static class AssemblyQuestLoader num2 = 3; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span23 = CollectionsMarshal.AsSpan(list59); - ref QuestStep reference45 = ref span23[0]; + Span span59 = CollectionsMarshal.AsSpan(list59); + index2 = 0; + ref QuestStep reference45 = ref span59[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1052569u, new Vector3(561.94385f, -137.17401f, 561.9745f), 1189); num3 = 6; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - Span span24 = CollectionsMarshal.AsSpan(list60); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span60 = CollectionsMarshal.AsSpan(list60); + index3 = 0; + span60[index3] = null; + index3++; + span60[index3] = null; + index3++; + span60[index3] = null; + index3++; + span60[index3] = null; + index3++; + span60[index3] = null; + index3++; + span60[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list60; - num3 = 1; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - CollectionsMarshal.AsSpan(list61)[0] = new DialogueChoice + index3 = 1; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMAM001_05255_Q1_000_000"), @@ -375235,23 +456469,32 @@ public static class AssemblyQuestLoader }; questStep5.DialogueChoices = list61; reference45 = questStep5; - ref QuestStep reference46 = ref span23[1]; + index2++; + ref QuestStep reference46 = ref span59[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1053754u, new Vector3(559.8688f, -137.174f, 563.9581f), 1189); num3 = 6; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - Span span25 = CollectionsMarshal.AsSpan(list62); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span62 = CollectionsMarshal.AsSpan(list62); + index3 = 0; + span62[index3] = null; + index3++; + span62[index3] = null; + index3++; + span62[index3] = null; + index3++; + span62[index3] = null; + index3++; + span62[index3] = null; + index3++; + span62[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list62; - num3 = 1; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - CollectionsMarshal.AsSpan(list63)[0] = new DialogueChoice + index3 = 1; + List list63 = new List(index3); + CollectionsMarshal.SetCount(list63, index3); + Span span63 = CollectionsMarshal.AsSpan(list63); + num3 = 0; + span63[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMAM001_05255_Q2_000_000"), @@ -375259,23 +456502,32 @@ public static class AssemblyQuestLoader }; questStep6.DialogueChoices = list63; reference46 = questStep6; - ref QuestStep reference47 = ref span23[2]; + index2++; + ref QuestStep reference47 = ref span59[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1053755u, new Vector3(564.6599f, -137.174f, 563.8971f), 1189); num3 = 6; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span26 = CollectionsMarshal.AsSpan(list64); - span26[0] = null; - span26[1] = null; - span26[2] = null; - span26[3] = null; - span26[4] = null; - span26[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span64 = CollectionsMarshal.AsSpan(list64); + index3 = 0; + span64[index3] = null; + index3++; + span64[index3] = null; + index3++; + span64[index3] = null; + index3++; + span64[index3] = null; + index3++; + span64[index3] = null; + index3++; + span64[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list64; - num3 = 1; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - CollectionsMarshal.AsSpan(list65)[0] = new DialogueChoice + index3 = 1; + List list65 = new List(index3); + CollectionsMarshal.SetCount(list65, index3); + Span span65 = CollectionsMarshal.AsSpan(list65); + num3 = 0; + span65[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMAM001_05255_Q3_000_000"), @@ -375285,21 +456537,25 @@ public static class AssemblyQuestLoader reference47 = questStep7; obj41.Steps = list59; reference44 = obj41; - ref QuestSequence reference48 = ref span21[4]; + num++; + ref QuestSequence reference48 = ref span55[num]; QuestSequence obj42 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1053756u, new Vector3(686.48804f, -137.17401f, 552.697f), 1189) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.Interact, 1053756u, new Vector3(686.48804f, -137.17401f, 552.697f), 1189) { Fly = true }; obj42.Steps = list66; reference48 = obj42; - ref QuestSequence reference49 = ref span21[5]; + num++; + ref QuestSequence reference49 = ref span55[num]; QuestSequence obj43 = new QuestSequence { Sequence = 5 @@ -375307,56 +456563,70 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) + Span span67 = CollectionsMarshal.AsSpan(list67); + index2 = 0; + span67[index2] = new QuestStep(EInteractionType.Interact, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) { Fly = true }; obj43.Steps = list67; reference49 = obj43; - ref QuestSequence reference50 = ref span21[6]; + num++; + ref QuestSequence reference50 = ref span55[num]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list68 = new List(num2); - CollectionsMarshal.SetCount(list68, num2); - Span span27 = CollectionsMarshal.AsSpan(list68); - ref QuestStep reference51 = ref span27[0]; + index2 = 3; + List list68 = new List(index2); + CollectionsMarshal.SetCount(list68, index2); + Span span68 = CollectionsMarshal.AsSpan(list68); + num2 = 0; + ref QuestStep reference51 = ref span68[num2]; QuestStep questStep8 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - CollectionsMarshal.AsSpan(list69)[0] = EExtendedClassJob.Miner; + Span span69 = CollectionsMarshal.AsSpan(list69); + index3 = 0; + span69[index3] = EExtendedClassJob.Miner; questStep8.RequiredQuestAcceptedJob = list69; - num3 = 1; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = new GatheredItem + index3 = 1; + List list70 = new List(index3); + CollectionsMarshal.SetCount(list70, index3); + Span span70 = CollectionsMarshal.AsSpan(list70); + num3 = 0; + span70[num3] = new GatheredItem { ItemId = 48009u, ItemCount = 3 }; questStep8.ItemsToGather = list70; reference51 = questStep8; - ref QuestStep reference52 = ref span27[1]; + num2++; + ref QuestStep reference52 = ref span68[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = EExtendedClassJob.Botanist; + Span span71 = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span71[index3] = EExtendedClassJob.Botanist; questStep9.RequiredQuestAcceptedJob = list71; - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = new GatheredItem + index3 = 1; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + Span span72 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span72[num3] = new GatheredItem { ItemId = 48010u, ItemCount = 3 }; questStep9.ItemsToGather = list72; reference52 = questStep9; - span27[2] = new QuestStep(EInteractionType.CompleteQuest, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) + num2++; + span68[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -375370,13 +456640,16 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - CollectionsMarshal.AsSpan(list73)[0] = "liza"; + Span span73 = CollectionsMarshal.AsSpan(list73); + index = 0; + span73[index] = "liza"; questRoot7.Author = list73; - num = 4; - List list74 = new List(num); - CollectionsMarshal.SetCount(list74, num); - Span span28 = CollectionsMarshal.AsSpan(list74); - ref QuestSequence reference53 = ref span28[0]; + index = 4; + List list74 = new List(index); + CollectionsMarshal.SetCount(list74, index); + Span span74 = CollectionsMarshal.AsSpan(list74); + num = 0; + ref QuestSequence reference53 = ref span74[num]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -375384,24 +456657,30 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + Span span75 = CollectionsMarshal.AsSpan(list75); + index2 = 0; + span75[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj45.Steps = list75; reference53 = obj45; - ref QuestSequence reference54 = ref span28[1]; + num++; + ref QuestSequence reference54 = ref span74[num]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1053761u, new Vector3(37.39978f, -173.47919f, 290.6996f), 1189) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.Interact, 1053761u, new Vector3(37.39978f, -173.47919f, 290.6996f), 1189) { Fly = true }; obj46.Steps = list76; reference54 = obj46; - ref QuestSequence reference55 = ref span28[2]; + num++; + ref QuestSequence reference55 = ref span74[num]; QuestSequence obj47 = new QuestSequence { Sequence = 2 @@ -375409,57 +456688,71 @@ public static class AssemblyQuestLoader num2 = 3; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span29 = CollectionsMarshal.AsSpan(list77); - ref QuestStep reference56 = ref span29[0]; + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + ref QuestStep reference56 = ref span77[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - CollectionsMarshal.AsSpan(list78)[0] = EExtendedClassJob.Miner; + Span span78 = CollectionsMarshal.AsSpan(list78); + index3 = 0; + span78[index3] = EExtendedClassJob.Miner; questStep10.RequiredQuestAcceptedJob = list78; - num3 = 1; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - CollectionsMarshal.AsSpan(list79)[0] = new GatheredItem + index3 = 1; + List list79 = new List(index3); + CollectionsMarshal.SetCount(list79, index3); + Span span79 = CollectionsMarshal.AsSpan(list79); + num3 = 0; + span79[num3] = new GatheredItem { ItemId = 48012u, ItemCount = 3 }; questStep10.ItemsToGather = list79; reference56 = questStep10; - ref QuestStep reference57 = ref span29[1]; + index2++; + ref QuestStep reference57 = ref span77[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - CollectionsMarshal.AsSpan(list80)[0] = EExtendedClassJob.Botanist; + Span span80 = CollectionsMarshal.AsSpan(list80); + index3 = 0; + span80[index3] = EExtendedClassJob.Botanist; questStep11.RequiredQuestAcceptedJob = list80; - num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new GatheredItem + index3 = 1; + List list81 = new List(index3); + CollectionsMarshal.SetCount(list81, index3); + Span span81 = CollectionsMarshal.AsSpan(list81); + num3 = 0; + span81[num3] = new GatheredItem { ItemId = 48013u, ItemCount = 3 }; questStep11.ItemsToGather = list81; reference57 = questStep11; - span29[2] = new QuestStep(EInteractionType.Interact, 1053761u, new Vector3(37.39978f, -173.47919f, 290.6996f), 1189) + index2++; + span77[index2] = new QuestStep(EInteractionType.Interact, 1053761u, new Vector3(37.39978f, -173.47919f, 290.6996f), 1189) { Fly = true, Land = true }; obj47.Steps = list77; reference55 = obj47; - ref QuestSequence reference58 = ref span28[3]; + num++; + ref QuestSequence reference58 = ref span74[num]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053790u, new Vector3(578.33215f, -144.9379f, 723.81165f), 1189) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053790u, new Vector3(578.33215f, -144.9379f, 723.81165f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -375473,13 +456766,16 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - CollectionsMarshal.AsSpan(list83)[0] = "Theo"; + Span span83 = CollectionsMarshal.AsSpan(list83); + index = 0; + span83[index] = "Theo"; questRoot8.Author = list83; - num = 6; - List list84 = new List(num); - CollectionsMarshal.SetCount(list84, num); - Span span30 = CollectionsMarshal.AsSpan(list84); - ref QuestSequence reference59 = ref span30[0]; + index = 6; + List list84 = new List(index); + CollectionsMarshal.SetCount(list84, index); + Span span84 = CollectionsMarshal.AsSpan(list84); + num = 0; + ref QuestSequence reference59 = ref span84[num]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -375487,24 +456783,30 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + Span span85 = CollectionsMarshal.AsSpan(list85); + index2 = 0; + span85[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj49.Steps = list85; reference59 = obj49; - ref QuestSequence reference60 = ref span30[1]; + num++; + ref QuestSequence reference60 = ref span84[num]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) + index2 = 1; + List list86 = new List(index2); + CollectionsMarshal.SetCount(list86, index2); + Span span86 = CollectionsMarshal.AsSpan(list86); + num2 = 0; + span86[num2] = new QuestStep(EInteractionType.Interact, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) { Fly = true }; obj50.Steps = list86; reference60 = obj50; - ref QuestSequence reference61 = ref span30[2]; + num++; + ref QuestSequence reference61 = ref span84[num]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -375512,7 +456814,9 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1053765u, new Vector3(-256.21423f, 1.9912608E-05f, 98.527466f), 1185) + Span span87 = CollectionsMarshal.AsSpan(list87); + index2 = 0; + span87[index2] = new QuestStep(EInteractionType.Interact, 1053765u, new Vector3(-256.21423f, 1.9912608E-05f, 98.527466f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -375530,18 +456834,22 @@ public static class AssemblyQuestLoader }; obj51.Steps = list87; reference61 = obj51; - ref QuestSequence reference62 = ref span30[3]; + num++; + ref QuestSequence reference62 = ref span84[num]; QuestSequence obj52 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list88 = new List(num2); - CollectionsMarshal.SetCount(list88, num2); - CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1053767u, new Vector3(-219.2569f, 39.99999f, -10.8797f), 1185); + index2 = 1; + List list88 = new List(index2); + CollectionsMarshal.SetCount(list88, index2); + Span span88 = CollectionsMarshal.AsSpan(list88); + num2 = 0; + span88[num2] = new QuestStep(EInteractionType.Interact, 1053767u, new Vector3(-219.2569f, 39.99999f, -10.8797f), 1185); obj52.Steps = list88; reference62 = obj52; - ref QuestSequence reference63 = ref span30[4]; + num++; + ref QuestSequence reference63 = ref span84[num]; QuestSequence obj53 = new QuestSequence { Sequence = 4 @@ -375549,7 +456857,9 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1053770u, new Vector3(528.4962f, -150f, 739.89465f), 1189) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.Interact, 1053770u, new Vector3(528.4962f, -150f, 739.89465f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -375563,50 +456873,62 @@ public static class AssemblyQuestLoader }; obj53.Steps = list89; reference63 = obj53; - ref QuestSequence reference64 = ref span30[5]; + num++; + ref QuestSequence reference64 = ref span84[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span31 = CollectionsMarshal.AsSpan(list90); - ref QuestStep reference65 = ref span31[0]; + index2 = 3; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + ref QuestStep reference65 = ref span90[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = EExtendedClassJob.Miner; + Span span91 = CollectionsMarshal.AsSpan(list91); + index3 = 0; + span91[index3] = EExtendedClassJob.Miner; questStep12.RequiredQuestAcceptedJob = list91; - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = new GatheredItem + index3 = 1; + List list92 = new List(index3); + CollectionsMarshal.SetCount(list92, index3); + Span span92 = CollectionsMarshal.AsSpan(list92); + num3 = 0; + span92[num3] = new GatheredItem { ItemId = 48015u, ItemCount = 3 }; questStep12.ItemsToGather = list92; reference65 = questStep12; - ref QuestStep reference66 = ref span31[1]; + num2++; + ref QuestStep reference66 = ref span90[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - CollectionsMarshal.AsSpan(list93)[0] = EExtendedClassJob.Botanist; + Span span93 = CollectionsMarshal.AsSpan(list93); + index3 = 0; + span93[index3] = EExtendedClassJob.Botanist; questStep13.RequiredQuestAcceptedJob = list93; - num3 = 1; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - CollectionsMarshal.AsSpan(list94)[0] = new GatheredItem + index3 = 1; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + Span span94 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span94[num3] = new GatheredItem { ItemId = 48016u, ItemCount = 3 }; questStep13.ItemsToGather = list94; reference66 = questStep13; - span31[2] = new QuestStep(EInteractionType.CompleteQuest, 1053790u, new Vector3(578.33215f, -144.9379f, 723.81165f), 1189) + num2++; + span90[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053790u, new Vector3(578.33215f, -144.9379f, 723.81165f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -375632,13 +456954,16 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - CollectionsMarshal.AsSpan(list95)[0] = "Theo"; + Span span95 = CollectionsMarshal.AsSpan(list95); + index = 0; + span95[index] = "Theo"; questRoot9.Author = list95; - num = 8; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - Span span32 = CollectionsMarshal.AsSpan(list96); - ref QuestSequence reference67 = ref span32[0]; + index = 8; + List list96 = new List(index); + CollectionsMarshal.SetCount(list96, index); + Span span96 = CollectionsMarshal.AsSpan(list96); + num = 0; + ref QuestSequence reference67 = ref span96[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -375646,21 +456971,26 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189) + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + span97[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189) { Fly = true }; obj55.Steps = list97; reference67 = obj55; - ref QuestSequence reference68 = ref span32[1]; + num++; + ref QuestSequence reference68 = ref span96[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1053772u, new Vector3(57.694214f, 38.03109f, -279.8047f), 1191) + index2 = 1; + List list98 = new List(index2); + CollectionsMarshal.SetCount(list98, index2); + Span span98 = CollectionsMarshal.AsSpan(list98); + num2 = 0; + span98[num2] = new QuestStep(EInteractionType.Interact, 1053772u, new Vector3(57.694214f, 38.03109f, -279.8047f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, SkipConditions = new SkipConditions @@ -375673,7 +457003,8 @@ public static class AssemblyQuestLoader }; obj56.Steps = list98; reference68 = obj56; - ref QuestSequence reference69 = ref span32[2]; + num++; + ref QuestSequence reference69 = ref span96[num]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -375681,19 +457012,23 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1053772u, new Vector3(57.694214f, 38.03109f, -279.8047f), 1191); + Span span99 = CollectionsMarshal.AsSpan(list99); + index2 = 0; + span99[index2] = new QuestStep(EInteractionType.Interact, 1053772u, new Vector3(57.694214f, 38.03109f, -279.8047f), 1191); obj57.Steps = list99; reference69 = obj57; - ref QuestSequence reference70 = ref span32[3]; + num++; + ref QuestSequence reference70 = ref span96[num]; QuestSequence obj58 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - Span span33 = CollectionsMarshal.AsSpan(list100); - ref QuestStep reference71 = ref span33[0]; + index2 = 3; + List list100 = new List(index2); + CollectionsMarshal.SetCount(list100, index2); + Span span100 = CollectionsMarshal.AsSpan(list100); + num2 = 0; + ref QuestStep reference71 = ref span100[num2]; QuestStep obj59 = new QuestStep(EInteractionType.Interact, 2014662u, new Vector3(28.94629f, 35.446655f, -330.73932f), 1191) { Fly = true @@ -375701,43 +457036,61 @@ public static class AssemblyQuestLoader num3 = 6; List> list101 = new List>(num3); CollectionsMarshal.SetCount(list101, num3); - Span> span34 = CollectionsMarshal.AsSpan(list101); - ref List reference72 = ref span34[0]; + Span> span101 = CollectionsMarshal.AsSpan(list101); + index3 = 0; + ref List reference72 = ref span101[index3]; int num4 = 1; List list102 = new List(num4); CollectionsMarshal.SetCount(list102, num4); - CollectionsMarshal.AsSpan(list102)[0] = new QuestWorkValue(0, 0, EQuestWorkMode.Bitwise); + Span span102 = CollectionsMarshal.AsSpan(list102); + int index4 = 0; + span102[index4] = new QuestWorkValue(0, 0, EQuestWorkMode.Bitwise); reference72 = list102; - span34[1] = null; - span34[2] = null; - span34[3] = null; - span34[4] = null; - span34[5] = null; + index3++; + span101[index3] = null; + index3++; + span101[index3] = null; + index3++; + span101[index3] = null; + index3++; + span101[index3] = null; + index3++; + span101[index3] = null; obj59.RequiredQuestVariables = list101; reference71 = obj59; - ref QuestStep reference73 = ref span33[1]; + num2++; + ref QuestStep reference73 = ref span100[num2]; QuestStep obj60 = new QuestStep(EInteractionType.Interact, 1053774u, new Vector3(10.055664f, 34.83803f, -387.2282f), 1191) { Fly = true }; - num3 = 6; - List> list103 = new List>(num3); - CollectionsMarshal.SetCount(list103, num3); - Span> span35 = CollectionsMarshal.AsSpan(list103); - ref List reference74 = ref span35[0]; - num4 = 1; - List list104 = new List(num4); - CollectionsMarshal.SetCount(list104, num4); - CollectionsMarshal.AsSpan(list104)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list103 = new List>(index3); + CollectionsMarshal.SetCount(list103, index3); + Span> span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + ref List reference74 = ref span103[num3]; + index4 = 1; + List list104 = new List(index4); + CollectionsMarshal.SetCount(list104, index4); + Span span104 = CollectionsMarshal.AsSpan(list104); + num4 = 0; + span104[num4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference74 = list104; - span35[1] = null; - span35[2] = null; - span35[3] = null; - span35[4] = null; - span35[5] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = null; + num3++; + span103[num3] = null; obj60.RequiredQuestVariables = list103; reference73 = obj60; - ref QuestStep reference75 = ref span33[2]; + num2++; + ref QuestStep reference75 = ref span100[num2]; QuestStep obj61 = new QuestStep(EInteractionType.Interact, 1053773u, new Vector3(-13.748474f, 34.838024f, -403.55536f), 1191) { Fly = true @@ -375745,23 +457098,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list105 = new List>(num3); CollectionsMarshal.SetCount(list105, num3); - Span> span36 = CollectionsMarshal.AsSpan(list105); - ref List reference76 = ref span36[0]; + Span> span105 = CollectionsMarshal.AsSpan(list105); + index3 = 0; + ref List reference76 = ref span105[index3]; num4 = 1; List list106 = new List(num4); CollectionsMarshal.SetCount(list106, num4); - CollectionsMarshal.AsSpan(list106)[0] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + Span span106 = CollectionsMarshal.AsSpan(list106); + index4 = 0; + span106[index4] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); reference76 = list106; - span36[1] = null; - span36[2] = null; - span36[3] = null; - span36[4] = null; - span36[5] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; + index3++; + span105[index3] = null; obj61.RequiredQuestVariables = list105; reference75 = obj61; obj58.Steps = list100; reference70 = obj58; - ref QuestSequence reference77 = ref span32[4]; + num++; + ref QuestSequence reference77 = ref span96[num]; QuestSequence obj62 = new QuestSequence { Sequence = 4 @@ -375769,21 +457131,26 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1053772u, new Vector3(-54.151768f, 30.108292f, -418.1114f), 1191) + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + span107[index2] = new QuestStep(EInteractionType.Interact, 1053772u, new Vector3(-54.151768f, 30.108292f, -418.1114f), 1191) { Fly = true }; obj62.Steps = list107; reference77 = obj62; - ref QuestSequence reference78 = ref span32[5]; + num++; + ref QuestSequence reference78 = ref span96[num]; QuestSequence obj63 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1053775u, new Vector3(552.9717f, -150f, 757.71716f), 1189) + index2 = 1; + List list108 = new List(index2); + CollectionsMarshal.SetCount(list108, index2); + Span span108 = CollectionsMarshal.AsSpan(list108); + num2 = 0; + span108[num2] = new QuestStep(EInteractionType.Interact, 1053775u, new Vector3(552.9717f, -150f, 757.71716f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook, SkipConditions = new SkipConditions @@ -375796,7 +457163,8 @@ public static class AssemblyQuestLoader }; obj63.Steps = list108; reference78 = obj63; - ref QuestSequence reference79 = ref span32[6]; + num++; + ref QuestSequence reference79 = ref span96[num]; QuestSequence obj64 = new QuestSequence { Sequence = 6 @@ -375804,53 +457172,67 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1053775u, new Vector3(552.9717f, -150f, 757.71716f), 1189); + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + span109[index2] = new QuestStep(EInteractionType.Interact, 1053775u, new Vector3(552.9717f, -150f, 757.71716f), 1189); obj64.Steps = list109; reference79 = obj64; - ref QuestSequence reference80 = ref span32[7]; + num++; + ref QuestSequence reference80 = ref span96[num]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span37 = CollectionsMarshal.AsSpan(list110); - ref QuestStep reference81 = ref span37[0]; + index2 = 3; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + ref QuestStep reference81 = ref span110[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - CollectionsMarshal.AsSpan(list111)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list111 = new List(index3); + CollectionsMarshal.SetCount(list111, index3); + Span span111 = CollectionsMarshal.AsSpan(list111); + num3 = 0; + span111[num3] = EExtendedClassJob.Miner; questStep14.RequiredQuestAcceptedJob = list111; num3 = 1; List list112 = new List(num3); CollectionsMarshal.SetCount(list112, num3); - CollectionsMarshal.AsSpan(list112)[0] = new GatheredItem + Span span112 = CollectionsMarshal.AsSpan(list112); + index3 = 0; + span112[index3] = new GatheredItem { ItemId = 48018u, ItemCount = 3 }; questStep14.ItemsToGather = list112; reference81 = questStep14; - ref QuestStep reference82 = ref span37[1]; + num2++; + ref QuestStep reference82 = ref span110[num2]; QuestStep questStep15 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - CollectionsMarshal.AsSpan(list113)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list113 = new List(index3); + CollectionsMarshal.SetCount(list113, index3); + Span span113 = CollectionsMarshal.AsSpan(list113); + num3 = 0; + span113[num3] = EExtendedClassJob.Botanist; questStep15.RequiredQuestAcceptedJob = list113; num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - CollectionsMarshal.AsSpan(list114)[0] = new GatheredItem + Span span114 = CollectionsMarshal.AsSpan(list114); + index3 = 0; + span114[index3] = new GatheredItem { ItemId = 48019u, ItemCount = 3 }; questStep15.ItemsToGather = list114; reference82 = questStep15; - span37[2] = new QuestStep(EInteractionType.CompleteQuest, 1053775u, new Vector3(552.9717f, -150f, 757.71716f), 1189) + num2++; + span110[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053775u, new Vector3(552.9717f, -150f, 757.71716f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -375876,13 +457258,16 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "Theo"; + Span span115 = CollectionsMarshal.AsSpan(list115); + index = 0; + span115[index] = "Theo"; questRoot10.Author = list115; - num = 8; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span38 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference83 = ref span38[0]; + index = 8; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + Span span116 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference83 = ref span116[num]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -375890,18 +457275,23 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj66.Steps = list117; reference83 = obj66; - ref QuestSequence reference84 = ref span38[1]; + num++; + ref QuestSequence reference84 = ref span116[num]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1053776u, new Vector3(-333.0282f, 18.46631f, -407.8584f), 1189) + index2 = 1; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.Interact, 1053776u, new Vector3(-333.0282f, 18.46631f, -407.8584f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, @@ -375920,7 +457310,8 @@ public static class AssemblyQuestLoader }; obj67.Steps = list118; reference84 = obj67; - ref QuestSequence reference85 = ref span38[2]; + num++; + ref QuestSequence reference85 = ref span116[num]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -375928,21 +457319,26 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1053778u, new Vector3(-424.30762f, 23.535458f, -496.2997f), 1189) + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.Interact, 1053778u, new Vector3(-424.30762f, 23.535458f, -496.2997f), 1189) { Fly = true }; obj68.Steps = list119; reference85 = obj68; - ref QuestSequence reference86 = ref span38[3]; + num++; + ref QuestSequence reference86 = ref span116[num]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1053780u, new Vector3(576.1653f, -145.13588f, 751.09485f), 1189) + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.Interact, 1053780u, new Vector3(576.1653f, -145.13588f, 751.09485f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -375961,7 +457357,8 @@ public static class AssemblyQuestLoader }; obj69.Steps = list120; reference86 = obj69; - ref QuestSequence reference87 = ref span38[4]; + num++; + ref QuestSequence reference87 = ref span116[num]; QuestSequence obj70 = new QuestSequence { Sequence = 4 @@ -375969,84 +457366,115 @@ public static class AssemblyQuestLoader num2 = 3; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span39 = CollectionsMarshal.AsSpan(list121); - ref QuestStep reference88 = ref span39[0]; + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + ref QuestStep reference88 = ref span121[index2]; QuestStep obj71 = new QuestStep(EInteractionType.Interact, 1053782u, new Vector3(705.3176f, -133.17163f, 515.3734f), 1189) { Fly = true }; - num3 = 6; - List> list122 = new List>(num3); - CollectionsMarshal.SetCount(list122, num3); - Span> span40 = CollectionsMarshal.AsSpan(list122); - ref List reference89 = ref span40[0]; - num4 = 1; - List list123 = new List(num4); - CollectionsMarshal.SetCount(list123, num4); - CollectionsMarshal.AsSpan(list123)[0] = new QuestWorkValue(0, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List> list122 = new List>(index3); + CollectionsMarshal.SetCount(list122, index3); + Span> span122 = CollectionsMarshal.AsSpan(list122); + num3 = 0; + ref List reference89 = ref span122[num3]; + index4 = 1; + List list123 = new List(index4); + CollectionsMarshal.SetCount(list123, index4); + Span span123 = CollectionsMarshal.AsSpan(list123); + num4 = 0; + span123[num4] = new QuestWorkValue(0, 0, EQuestWorkMode.Bitwise); reference89 = list123; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = null; + num3++; + span122[num3] = null; + num3++; + span122[num3] = null; + num3++; + span122[num3] = null; + num3++; + span122[num3] = null; + num3++; + span122[num3] = null; obj71.RequiredQuestVariables = list122; reference88 = obj71; - ref QuestStep reference90 = ref span39[1]; + index2++; + ref QuestStep reference90 = ref span121[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1053783u, new Vector3(636.89624f, -137.174f, 570.5499f), 1189); num3 = 6; List> list124 = new List>(num3); CollectionsMarshal.SetCount(list124, num3); - Span> span41 = CollectionsMarshal.AsSpan(list124); - ref List reference91 = ref span41[0]; + Span> span124 = CollectionsMarshal.AsSpan(list124); + index3 = 0; + ref List reference91 = ref span124[index3]; num4 = 1; List list125 = new List(num4); CollectionsMarshal.SetCount(list125, num4); - CollectionsMarshal.AsSpan(list125)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + Span span125 = CollectionsMarshal.AsSpan(list125); + index4 = 0; + span125[index4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference91 = list125; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = null; + index3++; + span124[index3] = null; + index3++; + span124[index3] = null; + index3++; + span124[index3] = null; + index3++; + span124[index3] = null; + index3++; + span124[index3] = null; questStep16.RequiredQuestVariables = list124; reference90 = questStep16; - ref QuestStep reference92 = ref span39[2]; + index2++; + ref QuestStep reference92 = ref span121[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1053784u, new Vector3(664.33203f, -137.17398f, 546.2882f), 1189); - num3 = 6; - List> list126 = new List>(num3); - CollectionsMarshal.SetCount(list126, num3); - Span> span42 = CollectionsMarshal.AsSpan(list126); - ref List reference93 = ref span42[0]; - num4 = 1; - List list127 = new List(num4); - CollectionsMarshal.SetCount(list127, num4); - CollectionsMarshal.AsSpan(list127)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + index3 = 6; + List> list126 = new List>(index3); + CollectionsMarshal.SetCount(list126, index3); + Span> span126 = CollectionsMarshal.AsSpan(list126); + num3 = 0; + ref List reference93 = ref span126[num3]; + index4 = 1; + List list127 = new List(index4); + CollectionsMarshal.SetCount(list127, index4); + Span span127 = CollectionsMarshal.AsSpan(list127); + num4 = 0; + span127[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference93 = list127; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; + num3++; + span126[num3] = null; questStep17.RequiredQuestVariables = list126; reference92 = questStep17; obj70.Steps = list121; reference87 = obj70; - ref QuestSequence reference94 = ref span38[5]; + num++; + ref QuestSequence reference94 = ref span116[num]; QuestSequence obj72 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1053780u, new Vector3(576.1653f, -145.13588f, 751.09485f), 1189) + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.Interact, 1053780u, new Vector3(576.1653f, -145.13588f, 751.09485f), 1189) { Fly = true }; obj72.Steps = list128; reference94 = obj72; - ref QuestSequence reference95 = ref span38[6]; + num++; + ref QuestSequence reference95 = ref span116[num]; QuestSequence obj73 = new QuestSequence { Sequence = 6 @@ -376054,42 +457482,53 @@ public static class AssemblyQuestLoader num2 = 3; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span43 = CollectionsMarshal.AsSpan(list129); - ref QuestStep reference96 = ref span43[0]; + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + ref QuestStep reference96 = ref span129[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = EExtendedClassJob.Miner; + Span span130 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span130[index3] = EExtendedClassJob.Miner; questStep18.RequiredQuestAcceptedJob = list130; - num3 = 1; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - CollectionsMarshal.AsSpan(list131)[0] = new GatheredItem + index3 = 1; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + Span span131 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span131[num3] = new GatheredItem { ItemId = 48021u, ItemCount = 3 }; questStep18.ItemsToGather = list131; reference96 = questStep18; - ref QuestStep reference97 = ref span43[1]; + index2++; + ref QuestStep reference97 = ref span129[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = EExtendedClassJob.Botanist; + Span span132 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span132[index3] = EExtendedClassJob.Botanist; questStep19.RequiredQuestAcceptedJob = list132; - num3 = 1; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = new GatheredItem + index3 = 1; + List list133 = new List(index3); + CollectionsMarshal.SetCount(list133, index3); + Span span133 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span133[num3] = new GatheredItem { ItemId = 48022u, ItemCount = 3 }; questStep19.ItemsToGather = list133; reference97 = questStep19; - span43[2] = new QuestStep(EInteractionType.Interact, 1053780u, new Vector3(576.1653f, -145.13588f, 751.09485f), 1189) + index2++; + span129[index2] = new QuestStep(EInteractionType.Interact, 1053780u, new Vector3(576.1653f, -145.13588f, 751.09485f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376108,15 +457547,18 @@ public static class AssemblyQuestLoader }; obj73.Steps = list129; reference95 = obj73; - ref QuestSequence reference98 = ref span38[7]; + num++; + ref QuestSequence reference98 = ref span116[num]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053790u, new Vector3(578.33215f, -144.9379f, 723.81165f), 1189); + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053790u, new Vector3(578.33215f, -144.9379f, 723.81165f), 1189); obj74.Steps = list134; reference98 = obj74; questRoot10.QuestSequence = list116; @@ -376126,13 +457568,16 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "Censored"; + Span span135 = CollectionsMarshal.AsSpan(list135); + index = 0; + span135[index] = "Censored"; questRoot11.Author = list135; - num = 4; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span44 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference99 = ref span44[0]; + index = 4; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + Span span136 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference99 = ref span136[num]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -376140,21 +457585,27 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj75.Steps = list137; reference99 = obj75; - ref QuestSequence reference100 = ref span44[1]; + num++; + ref QuestSequence reference100 = ref span136[num]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1053785u, new Vector3(600.7323f, -141.2465f, 801.41907f), 1189); + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.Interact, 1053785u, new Vector3(600.7323f, -141.2465f, 801.41907f), 1189); obj76.Steps = list138; reference100 = obj76; - ref QuestSequence reference101 = ref span44[2]; + num++; + ref QuestSequence reference101 = ref span136[num]; QuestSequence obj77 = new QuestSequence { Sequence = 2 @@ -376162,18 +457613,23 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1053787u, new Vector3(596.7345f, -143.12323f, 769.9243f), 1189); + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + span139[index2] = new QuestStep(EInteractionType.Interact, 1053787u, new Vector3(596.7345f, -143.12323f, 769.9243f), 1189); obj77.Steps = list139; reference101 = obj77; - ref QuestSequence reference102 = ref span44[3]; + num++; + ref QuestSequence reference102 = ref span136[num]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list140 = new List(num2); - CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053788u, new Vector3(476.82898f, -150f, 769.5276f), 1189) + index2 = 1; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + span140[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053788u, new Vector3(476.82898f, -150f, 769.5276f), 1189) { Fly = true }; @@ -376186,13 +457642,16 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "liza"; + Span span141 = CollectionsMarshal.AsSpan(list141); + index = 0; + span141[index] = "liza"; questRoot12.Author = list141; - num = 2; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span45 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference103 = ref span45[0]; + index = 2; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + Span span142 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference103 = ref span142[num]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -376200,53 +457659,67 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + Span span143 = CollectionsMarshal.AsSpan(list143); + index2 = 0; + span143[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj79.Steps = list143; reference103 = obj79; - ref QuestSequence reference104 = ref span45[1]; + num++; + ref QuestSequence reference104 = ref span142[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - Span span46 = CollectionsMarshal.AsSpan(list144); - ref QuestStep reference105 = ref span46[0]; + index2 = 3; + List list144 = new List(index2); + CollectionsMarshal.SetCount(list144, index2); + Span span144 = CollectionsMarshal.AsSpan(list144); + num2 = 0; + ref QuestStep reference105 = ref span144[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - CollectionsMarshal.AsSpan(list145)[0] = EExtendedClassJob.Miner; + Span span145 = CollectionsMarshal.AsSpan(list145); + index3 = 0; + span145[index3] = EExtendedClassJob.Miner; questStep20.RequiredQuestAcceptedJob = list145; - num3 = 1; - List list146 = new List(num3); - CollectionsMarshal.SetCount(list146, num3); - CollectionsMarshal.AsSpan(list146)[0] = new GatheredItem + index3 = 1; + List list146 = new List(index3); + CollectionsMarshal.SetCount(list146, index3); + Span span146 = CollectionsMarshal.AsSpan(list146); + num3 = 0; + span146[num3] = new GatheredItem { ItemId = 48024u, ItemCount = 3 }; questStep20.ItemsToGather = list146; reference105 = questStep20; - ref QuestStep reference106 = ref span46[1]; + num2++; + ref QuestStep reference106 = ref span144[num2]; QuestStep questStep21 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - CollectionsMarshal.AsSpan(list147)[0] = EExtendedClassJob.Botanist; + Span span147 = CollectionsMarshal.AsSpan(list147); + index3 = 0; + span147[index3] = EExtendedClassJob.Botanist; questStep21.RequiredQuestAcceptedJob = list147; - num3 = 1; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - CollectionsMarshal.AsSpan(list148)[0] = new GatheredItem + index3 = 1; + List list148 = new List(index3); + CollectionsMarshal.SetCount(list148, index3); + Span span148 = CollectionsMarshal.AsSpan(list148); + num3 = 0; + span148[num3] = new GatheredItem { ItemId = 48025u, ItemCount = 3 }; questStep21.ItemsToGather = list148; reference106 = questStep21; - span46[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span144[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376272,13 +457745,16 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - CollectionsMarshal.AsSpan(list149)[0] = "liza"; + Span span149 = CollectionsMarshal.AsSpan(list149); + index = 0; + span149[index] = "liza"; questRoot13.Author = list149; - num = 4; - List list150 = new List(num); - CollectionsMarshal.SetCount(list150, num); - Span span47 = CollectionsMarshal.AsSpan(list150); - ref QuestSequence reference107 = ref span47[0]; + index = 4; + List list150 = new List(index); + CollectionsMarshal.SetCount(list150, index); + Span span150 = CollectionsMarshal.AsSpan(list150); + num = 0; + ref QuestSequence reference107 = ref span150[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -376286,19 +457762,23 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + Span span151 = CollectionsMarshal.AsSpan(list151); + index2 = 0; + span151[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj81.Steps = list151; reference107 = obj81; - ref QuestSequence reference108 = ref span47[1]; + num++; + ref QuestSequence reference108 = ref span150[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - Span span48 = CollectionsMarshal.AsSpan(list152); - ref QuestStep reference109 = ref span48[0]; + index2 = 3; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + ref QuestStep reference109 = ref span152[num2]; QuestStep obj83 = new QuestStep(EInteractionType.Interact, 2014697u, new Vector3(245.01404f, -158.3429f, 720.4851f), 1189) { StopDistance = 0.5f, @@ -376307,34 +457787,48 @@ public static class AssemblyQuestLoader num3 = 6; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - Span span49 = CollectionsMarshal.AsSpan(list153); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span153 = CollectionsMarshal.AsSpan(list153); + index3 = 0; + span153[index3] = null; + index3++; + span153[index3] = null; + index3++; + span153[index3] = null; + index3++; + span153[index3] = null; + index3++; + span153[index3] = null; + index3++; + span153[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj83.CompletionQuestVariablesFlags = list153; reference109 = obj83; - ref QuestStep reference110 = ref span48[1]; + num2++; + ref QuestStep reference110 = ref span152[num2]; QuestStep obj84 = new QuestStep(EInteractionType.Interact, 2014699u, new Vector3(242.14539f, -158.67859f, 668.39087f), 1189) { StopDistance = 0.5f, Fly = true }; - num3 = 6; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - Span span50 = CollectionsMarshal.AsSpan(list154); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list154 = new List(index3); + CollectionsMarshal.SetCount(list154, index3); + Span span154 = CollectionsMarshal.AsSpan(list154); + num3 = 0; + span154[num3] = null; + num3++; + span154[num3] = null; + num3++; + span154[num3] = null; + num3++; + span154[num3] = null; + num3++; + span154[num3] = null; + num3++; + span154[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj84.CompletionQuestVariablesFlags = list154; reference110 = obj84; - ref QuestStep reference111 = ref span48[2]; + num2++; + ref QuestStep reference111 = ref span152[num2]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 2014698u, new Vector3(195.33069f, -158.09875f, 726.43616f), 1189) { StopDistance = 0.5f, @@ -376343,18 +457837,25 @@ public static class AssemblyQuestLoader num3 = 6; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - Span span51 = CollectionsMarshal.AsSpan(list155); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span155 = CollectionsMarshal.AsSpan(list155); + index3 = 0; + span155[index3] = null; + index3++; + span155[index3] = null; + index3++; + span155[index3] = null; + index3++; + span155[index3] = null; + index3++; + span155[index3] = null; + index3++; + span155[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj85.CompletionQuestVariablesFlags = list155; reference111 = obj85; obj82.Steps = list152; reference108 = obj82; - ref QuestSequence reference112 = ref span47[2]; + num++; + ref QuestSequence reference112 = ref span150[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -376362,27 +457863,32 @@ public static class AssemblyQuestLoader num2 = 2; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span52 = CollectionsMarshal.AsSpan(list156); - span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) { StopDistance = 2f, Fly = true }; - span52[1] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) + index2++; + span156[index2] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) { StopDistance = 7f }; obj86.Steps = list156; reference112 = obj86; - ref QuestSequence reference113 = ref span47[3]; + num++; + ref QuestSequence reference113 = ref span150[num]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span157[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376408,13 +457914,16 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - CollectionsMarshal.AsSpan(list158)[0] = "liza"; + Span span158 = CollectionsMarshal.AsSpan(list158); + index = 0; + span158[index] = "liza"; questRoot14.Author = list158; - num = 2; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - Span span53 = CollectionsMarshal.AsSpan(list159); - ref QuestSequence reference114 = ref span53[0]; + index = 2; + List list159 = new List(index); + CollectionsMarshal.SetCount(list159, index); + Span span159 = CollectionsMarshal.AsSpan(list159); + num = 0; + ref QuestSequence reference114 = ref span159[num]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -376422,53 +457931,67 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + span160[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj88.Steps = list160; reference114 = obj88; - ref QuestSequence reference115 = ref span53[1]; + num++; + ref QuestSequence reference115 = ref span159[num]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list161 = new List(num2); - CollectionsMarshal.SetCount(list161, num2); - Span span54 = CollectionsMarshal.AsSpan(list161); - ref QuestStep reference116 = ref span54[0]; + index2 = 3; + List list161 = new List(index2); + CollectionsMarshal.SetCount(list161, index2); + Span span161 = CollectionsMarshal.AsSpan(list161); + num2 = 0; + ref QuestStep reference116 = ref span161[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - CollectionsMarshal.AsSpan(list162)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list162 = new List(index3); + CollectionsMarshal.SetCount(list162, index3); + Span span162 = CollectionsMarshal.AsSpan(list162); + num3 = 0; + span162[num3] = EExtendedClassJob.Miner; questStep22.RequiredQuestAcceptedJob = list162; num3 = 1; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = new GatheredItem + Span span163 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span163[index3] = new GatheredItem { ItemId = 48027u, ItemCount = 3 }; questStep22.ItemsToGather = list163; reference116 = questStep22; - ref QuestStep reference117 = ref span54[1]; + num2++; + ref QuestStep reference117 = ref span161[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + Span span164 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span164[num3] = EExtendedClassJob.Botanist; questStep23.RequiredQuestAcceptedJob = list164; num3 = 1; List list165 = new List(num3); CollectionsMarshal.SetCount(list165, num3); - CollectionsMarshal.AsSpan(list165)[0] = new GatheredItem + Span span165 = CollectionsMarshal.AsSpan(list165); + index3 = 0; + span165[index3] = new GatheredItem { ItemId = 48028u, ItemCount = 3 }; questStep23.ItemsToGather = list165; reference117 = questStep23; - span54[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span161[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376494,13 +458017,16 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - CollectionsMarshal.AsSpan(list166)[0] = "liza"; + Span span166 = CollectionsMarshal.AsSpan(list166); + index = 0; + span166[index] = "liza"; questRoot15.Author = list166; - num = 3; - List list167 = new List(num); - CollectionsMarshal.SetCount(list167, num); - Span span55 = CollectionsMarshal.AsSpan(list167); - ref QuestSequence reference118 = ref span55[0]; + index = 3; + List list167 = new List(index); + CollectionsMarshal.SetCount(list167, index); + Span span167 = CollectionsMarshal.AsSpan(list167); + num = 0; + ref QuestSequence reference118 = ref span167[num]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -376508,64 +458034,80 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + Span span168 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span168[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj90.Steps = list168; reference118 = obj90; - ref QuestSequence reference119 = ref span55[1]; + num++; + ref QuestSequence reference119 = ref span167[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - Span span56 = CollectionsMarshal.AsSpan(list169); - ref QuestStep reference120 = ref span56[0]; + index2 = 4; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + Span span169 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + ref QuestStep reference120 = ref span169[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - CollectionsMarshal.AsSpan(list170)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list170 = new List(index3); + CollectionsMarshal.SetCount(list170, index3); + Span span170 = CollectionsMarshal.AsSpan(list170); + num3 = 0; + span170[num3] = EExtendedClassJob.Miner; questStep24.RequiredQuestAcceptedJob = list170; num3 = 1; List list171 = new List(num3); CollectionsMarshal.SetCount(list171, num3); - CollectionsMarshal.AsSpan(list171)[0] = new GatheredItem + Span span171 = CollectionsMarshal.AsSpan(list171); + index3 = 0; + span171[index3] = new GatheredItem { ItemId = 48030u, ItemCount = 3 }; questStep24.ItemsToGather = list171; reference120 = questStep24; - ref QuestStep reference121 = ref span56[1]; + num2++; + ref QuestStep reference121 = ref span169[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list172 = new List(num3); - CollectionsMarshal.SetCount(list172, num3); - CollectionsMarshal.AsSpan(list172)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list172 = new List(index3); + CollectionsMarshal.SetCount(list172, index3); + Span span172 = CollectionsMarshal.AsSpan(list172); + num3 = 0; + span172[num3] = EExtendedClassJob.Botanist; questStep25.RequiredQuestAcceptedJob = list172; num3 = 1; List list173 = new List(num3); CollectionsMarshal.SetCount(list173, num3); - CollectionsMarshal.AsSpan(list173)[0] = new GatheredItem + Span span173 = CollectionsMarshal.AsSpan(list173); + index3 = 0; + span173[index3] = new GatheredItem { ItemId = 48031u, ItemCount = 3 }; questStep25.ItemsToGather = list173; reference121 = questStep25; - span56[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) + num2++; + span169[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) { StopDistance = 2f, Fly = true }; - span56[3] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) + num2++; + span169[num2] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) { StopDistance = 7f }; obj91.Steps = list169; reference119 = obj91; - ref QuestSequence reference122 = ref span55[2]; + num++; + ref QuestSequence reference122 = ref span167[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -376573,7 +458115,9 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + Span span174 = CollectionsMarshal.AsSpan(list174); + index2 = 0; + span174[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376599,24 +458143,30 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - CollectionsMarshal.AsSpan(list175)[0] = "liza"; + Span span175 = CollectionsMarshal.AsSpan(list175); + index = 0; + span175[index] = "liza"; questRoot16.Author = list175; - num = 4; - List list176 = new List(num); - CollectionsMarshal.SetCount(list176, num); - Span span57 = CollectionsMarshal.AsSpan(list176); - ref QuestSequence reference123 = ref span57[0]; + index = 4; + List list176 = new List(index); + CollectionsMarshal.SetCount(list176, index); + Span span176 = CollectionsMarshal.AsSpan(list176); + num = 0; + ref QuestSequence reference123 = ref span176[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj93.Steps = list177; reference123 = obj93; - ref QuestSequence reference124 = ref span57[1]; + num++; + ref QuestSequence reference124 = ref span176[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -376624,30 +458174,36 @@ public static class AssemblyQuestLoader num2 = 2; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span58 = CollectionsMarshal.AsSpan(list178); - span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(213.46579f, -160.31227f, 431.11423f), 1189) + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + span178[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(213.46579f, -160.31227f, 431.11423f), 1189) { StopDistance = 1f, Fly = true }; - span58[1] = new QuestStep(EInteractionType.Interact, 1048991u, new Vector3(211.10852f, -160.27475f, 432.4253f), 1189) + index2++; + span178[index2] = new QuestStep(EInteractionType.Interact, 1048991u, new Vector3(211.10852f, -160.27475f, 432.4253f), 1189) { StopDistance = 7f }; obj94.Steps = list178; reference124 = obj94; - ref QuestSequence reference125 = ref span57[2]; + num++; + ref QuestSequence reference125 = ref span176[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list179 = new List(num2); - CollectionsMarshal.SetCount(list179, num2); - CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 2014727u, new Vector3(215.5946f, -159.96033f, 430.13647f), 1189); + index2 = 1; + List list179 = new List(index2); + CollectionsMarshal.SetCount(list179, index2); + Span span179 = CollectionsMarshal.AsSpan(list179); + num2 = 0; + span179[num2] = new QuestStep(EInteractionType.Interact, 2014727u, new Vector3(215.5946f, -159.96033f, 430.13647f), 1189); obj95.Steps = list179; reference125 = obj95; - ref QuestSequence reference126 = ref span57[3]; + num++; + ref QuestSequence reference126 = ref span176[num]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -376655,7 +458211,9 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + span180[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376681,24 +458239,30 @@ public static class AssemblyQuestLoader num = 1; List list181 = new List(num); CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "liza"; + Span span181 = CollectionsMarshal.AsSpan(list181); + index = 0; + span181[index] = "liza"; questRoot17.Author = list181; - num = 3; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - Span span59 = CollectionsMarshal.AsSpan(list182); - ref QuestSequence reference127 = ref span59[0]; + index = 3; + List list182 = new List(index); + CollectionsMarshal.SetCount(list182, index); + Span span182 = CollectionsMarshal.AsSpan(list182); + num = 0; + ref QuestSequence reference127 = ref span182[num]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + index2 = 1; + List list183 = new List(index2); + CollectionsMarshal.SetCount(list183, index2); + Span span183 = CollectionsMarshal.AsSpan(list183); + num2 = 0; + span183[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj97.Steps = list183; reference127 = obj97; - ref QuestSequence reference128 = ref span59[1]; + num++; + ref QuestSequence reference128 = ref span182[num]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -376706,62 +458270,77 @@ public static class AssemblyQuestLoader num2 = 4; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span60 = CollectionsMarshal.AsSpan(list184); - ref QuestStep reference129 = ref span60[0]; + Span span184 = CollectionsMarshal.AsSpan(list184); + index2 = 0; + ref QuestStep reference129 = ref span184[index2]; QuestStep questStep26 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - CollectionsMarshal.AsSpan(list185)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list185 = new List(index3); + CollectionsMarshal.SetCount(list185, index3); + Span span185 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span185[num3] = EExtendedClassJob.Miner; questStep26.RequiredQuestAcceptedJob = list185; num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = new GatheredItem + Span span186 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span186[index3] = new GatheredItem { ItemId = 48033u, ItemCount = 3 }; questStep26.ItemsToGather = list186; reference129 = questStep26; - ref QuestStep reference130 = ref span60[1]; + index2++; + ref QuestStep reference130 = ref span184[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list187 = new List(num3); - CollectionsMarshal.SetCount(list187, num3); - CollectionsMarshal.AsSpan(list187)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list187 = new List(index3); + CollectionsMarshal.SetCount(list187, index3); + Span span187 = CollectionsMarshal.AsSpan(list187); + num3 = 0; + span187[num3] = EExtendedClassJob.Botanist; questStep27.RequiredQuestAcceptedJob = list187; num3 = 1; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - CollectionsMarshal.AsSpan(list188)[0] = new GatheredItem + Span span188 = CollectionsMarshal.AsSpan(list188); + index3 = 0; + span188[index3] = new GatheredItem { ItemId = 48034u, ItemCount = 3 }; questStep27.ItemsToGather = list188; reference130 = questStep27; - span60[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) + index2++; + span184[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) { StopDistance = 2f, Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; - span60[3] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) + index2++; + span184[index2] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) { StopDistance = 7f }; obj98.Steps = list184; reference128 = obj98; - ref QuestSequence reference131 = ref span59[2]; + num++; + ref QuestSequence reference131 = ref span182[num]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2 = 1; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + span189[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376787,13 +458366,16 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - CollectionsMarshal.AsSpan(list190)[0] = "liza"; + Span span190 = CollectionsMarshal.AsSpan(list190); + index = 0; + span190[index] = "liza"; questRoot18.Author = list190; - num = 2; - List list191 = new List(num); - CollectionsMarshal.SetCount(list191, num); - Span span61 = CollectionsMarshal.AsSpan(list191); - ref QuestSequence reference132 = ref span61[0]; + index = 2; + List list191 = new List(index); + CollectionsMarshal.SetCount(list191, index); + Span span191 = CollectionsMarshal.AsSpan(list191); + num = 0; + ref QuestSequence reference132 = ref span191[num]; QuestSequence obj100 = new QuestSequence { Sequence = 0 @@ -376801,53 +458383,67 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj100.Steps = list192; reference132 = obj100; - ref QuestSequence reference133 = ref span61[1]; + num++; + ref QuestSequence reference133 = ref span191[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - Span span62 = CollectionsMarshal.AsSpan(list193); - ref QuestStep reference134 = ref span62[0]; + index2 = 3; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + ref QuestStep reference134 = ref span193[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - CollectionsMarshal.AsSpan(list194)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list194 = new List(index3); + CollectionsMarshal.SetCount(list194, index3); + Span span194 = CollectionsMarshal.AsSpan(list194); + num3 = 0; + span194[num3] = EExtendedClassJob.Miner; questStep28.RequiredQuestAcceptedJob = list194; num3 = 1; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - CollectionsMarshal.AsSpan(list195)[0] = new GatheredItem + Span span195 = CollectionsMarshal.AsSpan(list195); + index3 = 0; + span195[index3] = new GatheredItem { ItemId = 48036u, ItemCount = 3 }; questStep28.ItemsToGather = list195; reference134 = questStep28; - ref QuestStep reference135 = ref span62[1]; + num2++; + ref QuestStep reference135 = ref span193[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - CollectionsMarshal.AsSpan(list196)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list196 = new List(index3); + CollectionsMarshal.SetCount(list196, index3); + Span span196 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + span196[num3] = EExtendedClassJob.Botanist; questStep29.RequiredQuestAcceptedJob = list196; num3 = 1; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - CollectionsMarshal.AsSpan(list197)[0] = new GatheredItem + Span span197 = CollectionsMarshal.AsSpan(list197); + index3 = 0; + span197[index3] = new GatheredItem { ItemId = 48037u, ItemCount = 3 }; questStep29.ItemsToGather = list197; reference135 = questStep29; - span62[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span193[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376873,13 +458469,16 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "liza"; + Span span198 = CollectionsMarshal.AsSpan(list198); + index = 0; + span198[index] = "liza"; questRoot19.Author = list198; - num = 2; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span63 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference136 = ref span63[0]; + index = 2; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + Span span199 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference136 = ref span199[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -376887,53 +458486,67 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span200[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj102.Steps = list200; reference136 = obj102; - ref QuestSequence reference137 = ref span63[1]; + num++; + ref QuestSequence reference137 = ref span199[num]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - Span span64 = CollectionsMarshal.AsSpan(list201); - ref QuestStep reference138 = ref span64[0]; + index2 = 3; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + ref QuestStep reference138 = ref span201[num2]; QuestStep questStep30 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list202 = new List(index3); + CollectionsMarshal.SetCount(list202, index3); + Span span202 = CollectionsMarshal.AsSpan(list202); + num3 = 0; + span202[num3] = EExtendedClassJob.Miner; questStep30.RequiredQuestAcceptedJob = list202; num3 = 1; List list203 = new List(num3); CollectionsMarshal.SetCount(list203, num3); - CollectionsMarshal.AsSpan(list203)[0] = new GatheredItem + Span span203 = CollectionsMarshal.AsSpan(list203); + index3 = 0; + span203[index3] = new GatheredItem { ItemId = 48039u, ItemCount = 3 }; questStep30.ItemsToGather = list203; reference138 = questStep30; - ref QuestStep reference139 = ref span64[1]; + num2++; + ref QuestStep reference139 = ref span201[num2]; QuestStep questStep31 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - CollectionsMarshal.AsSpan(list204)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list204 = new List(index3); + CollectionsMarshal.SetCount(list204, index3); + Span span204 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span204[num3] = EExtendedClassJob.Botanist; questStep31.RequiredQuestAcceptedJob = list204; num3 = 1; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - CollectionsMarshal.AsSpan(list205)[0] = new GatheredItem + Span span205 = CollectionsMarshal.AsSpan(list205); + index3 = 0; + span205[index3] = new GatheredItem { ItemId = 48040u, ItemCount = 3 }; questStep31.ItemsToGather = list205; reference139 = questStep31; - span64[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span201[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -376959,13 +458572,16 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "liza"; + Span span206 = CollectionsMarshal.AsSpan(list206); + index = 0; + span206[index] = "liza"; questRoot20.Author = list206; - num = 2; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span65 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference140 = ref span65[0]; + index = 2; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + Span span207 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference140 = ref span207[num]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -376973,53 +458589,67 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + Span span208 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span208[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj104.Steps = list208; reference140 = obj104; - ref QuestSequence reference141 = ref span65[1]; + num++; + ref QuestSequence reference141 = ref span207[num]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span66 = CollectionsMarshal.AsSpan(list209); - ref QuestStep reference142 = ref span66[0]; + index2 = 3; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + Span span209 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + ref QuestStep reference142 = ref span209[num2]; QuestStep questStep32 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - CollectionsMarshal.AsSpan(list210)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list210 = new List(index3); + CollectionsMarshal.SetCount(list210, index3); + Span span210 = CollectionsMarshal.AsSpan(list210); + num3 = 0; + span210[num3] = EExtendedClassJob.Miner; questStep32.RequiredQuestAcceptedJob = list210; num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - CollectionsMarshal.AsSpan(list211)[0] = new GatheredItem + Span span211 = CollectionsMarshal.AsSpan(list211); + index3 = 0; + span211[index3] = new GatheredItem { ItemId = 48042u, ItemCount = 3 }; questStep32.ItemsToGather = list211; reference142 = questStep32; - ref QuestStep reference143 = ref span66[1]; + num2++; + ref QuestStep reference143 = ref span209[num2]; QuestStep questStep33 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list212 = new List(index3); + CollectionsMarshal.SetCount(list212, index3); + Span span212 = CollectionsMarshal.AsSpan(list212); + num3 = 0; + span212[num3] = EExtendedClassJob.Botanist; questStep33.RequiredQuestAcceptedJob = list212; num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - CollectionsMarshal.AsSpan(list213)[0] = new GatheredItem + Span span213 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span213[index3] = new GatheredItem { ItemId = 48043u, ItemCount = 3 }; questStep33.ItemsToGather = list213; reference143 = questStep33; - span66[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span209[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377045,13 +458675,16 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - CollectionsMarshal.AsSpan(list214)[0] = "liza"; + Span span214 = CollectionsMarshal.AsSpan(list214); + index = 0; + span214[index] = "liza"; questRoot21.Author = list214; - num = 3; - List list215 = new List(num); - CollectionsMarshal.SetCount(list215, num); - Span span67 = CollectionsMarshal.AsSpan(list215); - ref QuestSequence reference144 = ref span67[0]; + index = 3; + List list215 = new List(index); + CollectionsMarshal.SetCount(list215, index); + Span span215 = CollectionsMarshal.AsSpan(list215); + num = 0; + ref QuestSequence reference144 = ref span215[num]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -377059,36 +458692,47 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + Span span216 = CollectionsMarshal.AsSpan(list216); + index2 = 0; + span216[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj106.Steps = list216; reference144 = obj106; - ref QuestSequence reference145 = ref span67[1]; + num++; + ref QuestSequence reference145 = ref span215[num]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - Span span68 = CollectionsMarshal.AsSpan(list217); - ref QuestStep reference146 = ref span68[0]; + index2 = 3; + List list217 = new List(index2); + CollectionsMarshal.SetCount(list217, index2); + Span span217 = CollectionsMarshal.AsSpan(list217); + num2 = 0; + ref QuestStep reference146 = ref span217[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 1052580u, new Vector3(495.1704f, -146.73546f, 500.6637f), 1189) { Fly = true }; - num3 = 6; - List list218 = new List(num3); - CollectionsMarshal.SetCount(list218, num3); - Span span69 = CollectionsMarshal.AsSpan(list218); - span69[0] = null; - span69[1] = null; - span69[2] = null; - span69[3] = null; - span69[4] = null; - span69[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list218 = new List(index3); + CollectionsMarshal.SetCount(list218, index3); + Span span218 = CollectionsMarshal.AsSpan(list218); + num3 = 0; + span218[num3] = null; + num3++; + span218[num3] = null; + num3++; + span218[num3] = null; + num3++; + span218[num3] = null; + num3++; + span218[num3] = null; + num3++; + span218[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj108.CompletionQuestVariablesFlags = list218; reference146 = obj108; - ref QuestStep reference147 = ref span68[1]; + num2++; + ref QuestStep reference147 = ref span217[num2]; QuestStep obj109 = new QuestStep(EInteractionType.Interact, 1052579u, new Vector3(607.9651f, -137.174f, 499.71765f), 1189) { Fly = true @@ -377096,35 +458740,49 @@ public static class AssemblyQuestLoader num3 = 6; List list219 = new List(num3); CollectionsMarshal.SetCount(list219, num3); - Span span70 = CollectionsMarshal.AsSpan(list219); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = null; - span70[4] = null; - span70[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span219 = CollectionsMarshal.AsSpan(list219); + index3 = 0; + span219[index3] = null; + index3++; + span219[index3] = null; + index3++; + span219[index3] = null; + index3++; + span219[index3] = null; + index3++; + span219[index3] = null; + index3++; + span219[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj109.CompletionQuestVariablesFlags = list219; reference147 = obj109; - ref QuestStep reference148 = ref span68[2]; + num2++; + ref QuestStep reference148 = ref span217[num2]; QuestStep obj110 = new QuestStep(EInteractionType.Interact, 1052578u, new Vector3(695.09424f, -137.17401f, 543.26685f), 1189) { Fly = true }; - num3 = 6; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - Span span71 = CollectionsMarshal.AsSpan(list220); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = null; - span71[4] = null; - span71[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list220 = new List(index3); + CollectionsMarshal.SetCount(list220, index3); + Span span220 = CollectionsMarshal.AsSpan(list220); + num3 = 0; + span220[num3] = null; + num3++; + span220[num3] = null; + num3++; + span220[num3] = null; + num3++; + span220[num3] = null; + num3++; + span220[num3] = null; + num3++; + span220[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj110.CompletionQuestVariablesFlags = list220; reference148 = obj110; obj107.Steps = list217; reference145 = obj107; - ref QuestSequence reference149 = ref span67[2]; + num++; + ref QuestSequence reference149 = ref span215[num]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue @@ -377132,7 +458790,9 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + Span span221 = CollectionsMarshal.AsSpan(list221); + index2 = 0; + span221[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true }; @@ -377145,24 +458805,30 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "Theo"; + Span span222 = CollectionsMarshal.AsSpan(list222); + index = 0; + span222[index] = "Theo"; questRoot22.Author = list222; - num = 2; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span72 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference150 = ref span72[0]; + index = 2; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + Span span223 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference150 = ref span223[num]; QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span224[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj112.Steps = list224; reference150 = obj112; - ref QuestSequence reference151 = ref span72[1]; + num++; + ref QuestSequence reference151 = ref span223[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -377170,42 +458836,53 @@ public static class AssemblyQuestLoader num2 = 3; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span73 = CollectionsMarshal.AsSpan(list225); - ref QuestStep reference152 = ref span73[0]; + Span span225 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + ref QuestStep reference152 = ref span225[index2]; QuestStep questStep34 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = EExtendedClassJob.Miner; + Span span226 = CollectionsMarshal.AsSpan(list226); + index3 = 0; + span226[index3] = EExtendedClassJob.Miner; questStep34.RequiredQuestAcceptedJob = list226; - num3 = 1; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - CollectionsMarshal.AsSpan(list227)[0] = new GatheredItem + index3 = 1; + List list227 = new List(index3); + CollectionsMarshal.SetCount(list227, index3); + Span span227 = CollectionsMarshal.AsSpan(list227); + num3 = 0; + span227[num3] = new GatheredItem { ItemId = 48045u, ItemCount = 3 }; questStep34.ItemsToGather = list227; reference152 = questStep34; - ref QuestStep reference153 = ref span73[1]; + index2++; + ref QuestStep reference153 = ref span225[index2]; QuestStep questStep35 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list228 = new List(num3); CollectionsMarshal.SetCount(list228, num3); - CollectionsMarshal.AsSpan(list228)[0] = EExtendedClassJob.Botanist; + Span span228 = CollectionsMarshal.AsSpan(list228); + index3 = 0; + span228[index3] = EExtendedClassJob.Botanist; questStep35.RequiredQuestAcceptedJob = list228; - num3 = 1; - List list229 = new List(num3); - CollectionsMarshal.SetCount(list229, num3); - CollectionsMarshal.AsSpan(list229)[0] = new GatheredItem + index3 = 1; + List list229 = new List(index3); + CollectionsMarshal.SetCount(list229, index3); + Span span229 = CollectionsMarshal.AsSpan(list229); + num3 = 0; + span229[num3] = new GatheredItem { ItemId = 48046u, ItemCount = 3 }; questStep35.ItemsToGather = list229; reference153 = questStep35; - span73[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2++; + span225[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377231,24 +458908,30 @@ public static class AssemblyQuestLoader num = 1; List list230 = new List(num); CollectionsMarshal.SetCount(list230, num); - CollectionsMarshal.AsSpan(list230)[0] = "Censored"; + Span span230 = CollectionsMarshal.AsSpan(list230); + index = 0; + span230[index] = "Censored"; questRoot23.Author = list230; - num = 2; - List list231 = new List(num); - CollectionsMarshal.SetCount(list231, num); - Span span74 = CollectionsMarshal.AsSpan(list231); - ref QuestSequence reference154 = ref span74[0]; + index = 2; + List list231 = new List(index); + CollectionsMarshal.SetCount(list231, index); + Span span231 = CollectionsMarshal.AsSpan(list231); + num = 0; + ref QuestSequence reference154 = ref span231[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span232[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj114.Steps = list232; reference154 = obj114; - ref QuestSequence reference155 = ref span74[1]; + num++; + ref QuestSequence reference155 = ref span231[num]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -377256,42 +458939,53 @@ public static class AssemblyQuestLoader num2 = 3; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span75 = CollectionsMarshal.AsSpan(list233); - ref QuestStep reference156 = ref span75[0]; + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + ref QuestStep reference156 = ref span233[index2]; QuestStep questStep36 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = EExtendedClassJob.Miner; + Span span234 = CollectionsMarshal.AsSpan(list234); + index3 = 0; + span234[index3] = EExtendedClassJob.Miner; questStep36.RequiredQuestAcceptedJob = list234; - num3 = 1; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - CollectionsMarshal.AsSpan(list235)[0] = new GatheredItem + index3 = 1; + List list235 = new List(index3); + CollectionsMarshal.SetCount(list235, index3); + Span span235 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + span235[num3] = new GatheredItem { ItemId = 48048u, ItemCount = 3 }; questStep36.ItemsToGather = list235; reference156 = questStep36; - ref QuestStep reference157 = ref span75[1]; + index2++; + ref QuestStep reference157 = ref span233[index2]; QuestStep questStep37 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list236 = new List(num3); CollectionsMarshal.SetCount(list236, num3); - CollectionsMarshal.AsSpan(list236)[0] = EExtendedClassJob.Botanist; + Span span236 = CollectionsMarshal.AsSpan(list236); + index3 = 0; + span236[index3] = EExtendedClassJob.Botanist; questStep37.RequiredQuestAcceptedJob = list236; - num3 = 1; - List list237 = new List(num3); - CollectionsMarshal.SetCount(list237, num3); - CollectionsMarshal.AsSpan(list237)[0] = new GatheredItem + index3 = 1; + List list237 = new List(index3); + CollectionsMarshal.SetCount(list237, index3); + Span span237 = CollectionsMarshal.AsSpan(list237); + num3 = 0; + span237[num3] = new GatheredItem { ItemId = 48049u, ItemCount = 3 }; questStep37.ItemsToGather = list237; reference157 = questStep37; - span75[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2++; + span233[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377317,24 +459011,30 @@ public static class AssemblyQuestLoader num = 1; List list238 = new List(num); CollectionsMarshal.SetCount(list238, num); - CollectionsMarshal.AsSpan(list238)[0] = "Censored"; + Span span238 = CollectionsMarshal.AsSpan(list238); + index = 0; + span238[index] = "Censored"; questRoot24.Author = list238; - num = 4; - List list239 = new List(num); - CollectionsMarshal.SetCount(list239, num); - Span span76 = CollectionsMarshal.AsSpan(list239); - ref QuestSequence reference158 = ref span76[0]; + index = 4; + List list239 = new List(index); + CollectionsMarshal.SetCount(list239, index); + Span span239 = CollectionsMarshal.AsSpan(list239); + num = 0; + ref QuestSequence reference158 = ref span239[num]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list240 = new List(num2); - CollectionsMarshal.SetCount(list240, num2); - CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + index2 = 1; + List list240 = new List(index2); + CollectionsMarshal.SetCount(list240, index2); + Span span240 = CollectionsMarshal.AsSpan(list240); + num2 = 0; + span240[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj116.Steps = list240; reference158 = obj116; - ref QuestSequence reference159 = ref span76[1]; + num++; + ref QuestSequence reference159 = ref span239[num]; QuestSequence obj117 = new QuestSequence { Sequence = 1 @@ -377342,22 +459042,26 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Interact, 1052562u, new Vector3(482.59705f, -150.00002f, 786.70935f), 1189) + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.Interact, 1052562u, new Vector3(482.59705f, -150.00002f, 786.70935f), 1189) { Fly = true }; obj117.Steps = list241; reference159 = obj117; - ref QuestSequence reference160 = ref span76[2]; + num++; + ref QuestSequence reference160 = ref span239[num]; QuestSequence obj118 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - Span span77 = CollectionsMarshal.AsSpan(list242); - ref QuestStep reference161 = ref span77[0]; + index2 = 3; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + ref QuestStep reference161 = ref span242[num2]; QuestStep obj119 = new QuestStep(EInteractionType.Action, 2014724u, new Vector3(232.89844f, -160.29602f, 432.5475f), 1189) { Fly = true, @@ -377366,39 +459070,54 @@ public static class AssemblyQuestLoader num3 = 6; List list243 = new List(num3); CollectionsMarshal.SetCount(list243, num3); - Span span78 = CollectionsMarshal.AsSpan(list243); - span78[0] = null; - span78[1] = null; - span78[2] = null; - span78[3] = null; - span78[4] = null; - span78[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span243 = CollectionsMarshal.AsSpan(list243); + index3 = 0; + span243[index3] = null; + index3++; + span243[index3] = null; + index3++; + span243[index3] = null; + index3++; + span243[index3] = null; + index3++; + span243[index3] = null; + index3++; + span243[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj119.CompletionQuestVariablesFlags = list243; reference161 = obj119; - ref QuestStep reference162 = ref span77[1]; + num2++; + ref QuestStep reference162 = ref span242[num2]; QuestStep obj120 = new QuestStep(EInteractionType.Action, 2014725u, new Vector3(238.20862f, -160.54016f, 401.3275f), 1189) { Action = EAction.ShroudedLuminescence }; - num3 = 6; - List list244 = new List(num3); - CollectionsMarshal.SetCount(list244, num3); - Span span79 = CollectionsMarshal.AsSpan(list244); - span79[0] = null; - span79[1] = null; - span79[2] = null; - span79[3] = null; - span79[4] = null; - span79[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list244 = new List(index3); + CollectionsMarshal.SetCount(list244, index3); + Span span244 = CollectionsMarshal.AsSpan(list244); + num3 = 0; + span244[num3] = null; + num3++; + span244[num3] = null; + num3++; + span244[num3] = null; + num3++; + span244[num3] = null; + num3++; + span244[num3] = null; + num3++; + span244[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj120.CompletionQuestVariablesFlags = list244; reference162 = obj120; - span77[2] = new QuestStep(EInteractionType.Action, 2014726u, new Vector3(205.06592f, -160.54016f, 397.5432f), 1189) + num2++; + span242[num2] = new QuestStep(EInteractionType.Action, 2014726u, new Vector3(205.06592f, -160.54016f, 397.5432f), 1189) { Action = EAction.ShroudedLuminescence }; obj118.Steps = list242; reference160 = obj118; - ref QuestSequence reference163 = ref span76[3]; + num++; + ref QuestSequence reference163 = ref span239[num]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue @@ -377406,7 +459125,9 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377432,24 +459153,30 @@ public static class AssemblyQuestLoader num = 1; List list246 = new List(num); CollectionsMarshal.SetCount(list246, num); - CollectionsMarshal.AsSpan(list246)[0] = "Theo"; + Span span246 = CollectionsMarshal.AsSpan(list246); + index = 0; + span246[index] = "Theo"; questRoot25.Author = list246; - num = 2; - List list247 = new List(num); - CollectionsMarshal.SetCount(list247, num); - Span span80 = CollectionsMarshal.AsSpan(list247); - ref QuestSequence reference164 = ref span80[0]; + index = 2; + List list247 = new List(index); + CollectionsMarshal.SetCount(list247, index); + Span span247 = CollectionsMarshal.AsSpan(list247); + num = 0; + ref QuestSequence reference164 = ref span247[num]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj122.Steps = list248; reference164 = obj122; - ref QuestSequence reference165 = ref span80[1]; + num++; + ref QuestSequence reference165 = ref span247[num]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue @@ -377457,42 +459184,53 @@ public static class AssemblyQuestLoader num2 = 3; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span81 = CollectionsMarshal.AsSpan(list249); - ref QuestStep reference166 = ref span81[0]; + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + ref QuestStep reference166 = ref span249[index2]; QuestStep questStep38 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list250 = new List(num3); CollectionsMarshal.SetCount(list250, num3); - CollectionsMarshal.AsSpan(list250)[0] = EExtendedClassJob.Miner; + Span span250 = CollectionsMarshal.AsSpan(list250); + index3 = 0; + span250[index3] = EExtendedClassJob.Miner; questStep38.RequiredQuestAcceptedJob = list250; - num3 = 1; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = new GatheredItem + index3 = 1; + List list251 = new List(index3); + CollectionsMarshal.SetCount(list251, index3); + Span span251 = CollectionsMarshal.AsSpan(list251); + num3 = 0; + span251[num3] = new GatheredItem { ItemId = 48051u, ItemCount = 3 }; questStep38.ItemsToGather = list251; reference166 = questStep38; - ref QuestStep reference167 = ref span81[1]; + index2++; + ref QuestStep reference167 = ref span249[index2]; QuestStep questStep39 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - CollectionsMarshal.AsSpan(list252)[0] = EExtendedClassJob.Botanist; + Span span252 = CollectionsMarshal.AsSpan(list252); + index3 = 0; + span252[index3] = EExtendedClassJob.Botanist; questStep39.RequiredQuestAcceptedJob = list252; - num3 = 1; - List list253 = new List(num3); - CollectionsMarshal.SetCount(list253, num3); - CollectionsMarshal.AsSpan(list253)[0] = new GatheredItem + index3 = 1; + List list253 = new List(index3); + CollectionsMarshal.SetCount(list253, index3); + Span span253 = CollectionsMarshal.AsSpan(list253); + num3 = 0; + span253[num3] = new GatheredItem { ItemId = 48052u, ItemCount = 3 }; questStep39.ItemsToGather = list253; reference167 = questStep39; - span81[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2++; + span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377518,24 +459256,30 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - CollectionsMarshal.AsSpan(list254)[0] = "liza"; + Span span254 = CollectionsMarshal.AsSpan(list254); + index = 0; + span254[index] = "liza"; questRoot26.Author = list254; - num = 3; - List list255 = new List(num); - CollectionsMarshal.SetCount(list255, num); - Span span82 = CollectionsMarshal.AsSpan(list255); - ref QuestSequence reference168 = ref span82[0]; + index = 3; + List list255 = new List(index); + CollectionsMarshal.SetCount(list255, index); + Span span255 = CollectionsMarshal.AsSpan(list255); + num = 0; + ref QuestSequence reference168 = ref span255[num]; QuestSequence obj124 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj124.Steps = list256; reference168 = obj124; - ref QuestSequence reference169 = ref span82[1]; + num++; + ref QuestSequence reference169 = ref span255[num]; QuestSequence obj125 = new QuestSequence { Sequence = 1 @@ -377543,8 +459287,9 @@ public static class AssemblyQuestLoader num2 = 3; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span83 = CollectionsMarshal.AsSpan(list257); - ref QuestStep reference170 = ref span83[0]; + Span span257 = CollectionsMarshal.AsSpan(list257); + index2 = 0; + ref QuestStep reference170 = ref span257[index2]; QuestStep obj126 = new QuestStep(EInteractionType.Say, 1052572u, new Vector3(642.2064f, -137.17401f, 557.76294f), 1189) { Fly = true, @@ -377556,16 +459301,23 @@ public static class AssemblyQuestLoader num3 = 6; List list258 = new List(num3); CollectionsMarshal.SetCount(list258, num3); - Span span84 = CollectionsMarshal.AsSpan(list258); - span84[0] = null; - span84[1] = null; - span84[2] = null; - span84[3] = null; - span84[4] = null; - span84[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span258 = CollectionsMarshal.AsSpan(list258); + index3 = 0; + span258[index3] = null; + index3++; + span258[index3] = null; + index3++; + span258[index3] = null; + index3++; + span258[index3] = null; + index3++; + span258[index3] = null; + index3++; + span258[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj126.CompletionQuestVariablesFlags = list258; reference170 = obj126; - ref QuestStep reference171 = ref span83[1]; + index2++; + ref QuestStep reference171 = ref span257[index2]; QuestStep obj127 = new QuestStep(EInteractionType.Say, 1052573u, new Vector3(686.8544f, -137.174f, 513.72546f), 1189) { Fly = true, @@ -377574,19 +459326,26 @@ public static class AssemblyQuestLoader Key = "TEXT_BANMAM115_05275_SAYTODO_000_030" } }; - num3 = 6; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - Span span85 = CollectionsMarshal.AsSpan(list259); - span85[0] = null; - span85[1] = null; - span85[2] = null; - span85[3] = null; - span85[4] = null; - span85[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list259 = new List(index3); + CollectionsMarshal.SetCount(list259, index3); + Span span259 = CollectionsMarshal.AsSpan(list259); + num3 = 0; + span259[num3] = null; + num3++; + span259[num3] = null; + num3++; + span259[num3] = null; + num3++; + span259[num3] = null; + num3++; + span259[num3] = null; + num3++; + span259[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj127.CompletionQuestVariablesFlags = list259; reference171 = obj127; - ref QuestStep reference172 = ref span83[2]; + index2++; + ref QuestStep reference172 = ref span257[index2]; QuestStep obj128 = new QuestStep(EInteractionType.Say, 1052574u, new Vector3(584.4967f, -142.49187f, 484.2754f), 1189) { Fly = true, @@ -377598,26 +459357,35 @@ public static class AssemblyQuestLoader num3 = 6; List list260 = new List(num3); CollectionsMarshal.SetCount(list260, num3); - Span span86 = CollectionsMarshal.AsSpan(list260); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span260 = CollectionsMarshal.AsSpan(list260); + index3 = 0; + span260[index3] = null; + index3++; + span260[index3] = null; + index3++; + span260[index3] = null; + index3++; + span260[index3] = null; + index3++; + span260[index3] = null; + index3++; + span260[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj128.CompletionQuestVariablesFlags = list260; reference172 = obj128; obj125.Steps = list257; reference169 = obj125; - ref QuestSequence reference173 = ref span82[2]; + num++; + ref QuestSequence reference173 = ref span255[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2 = 1; + List list261 = new List(index2); + CollectionsMarshal.SetCount(list261, index2); + Span span261 = CollectionsMarshal.AsSpan(list261); + num2 = 0; + span261[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true }; @@ -377630,13 +459398,16 @@ public static class AssemblyQuestLoader num = 1; List list262 = new List(num); CollectionsMarshal.SetCount(list262, num); - CollectionsMarshal.AsSpan(list262)[0] = "Censored"; + Span span262 = CollectionsMarshal.AsSpan(list262); + index = 0; + span262[index] = "Censored"; questRoot27.Author = list262; - num = 2; - List list263 = new List(num); - CollectionsMarshal.SetCount(list263, num); - Span span87 = CollectionsMarshal.AsSpan(list263); - ref QuestSequence reference174 = ref span87[0]; + index = 2; + List list263 = new List(index); + CollectionsMarshal.SetCount(list263, index); + Span span263 = CollectionsMarshal.AsSpan(list263); + num = 0; + ref QuestSequence reference174 = ref span263[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -377644,53 +459415,67 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + Span span264 = CollectionsMarshal.AsSpan(list264); + index2 = 0; + span264[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj130.Steps = list264; reference174 = obj130; - ref QuestSequence reference175 = ref span87[1]; + num++; + ref QuestSequence reference175 = ref span263[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - Span span88 = CollectionsMarshal.AsSpan(list265); - ref QuestStep reference176 = ref span88[0]; + index2 = 3; + List list265 = new List(index2); + CollectionsMarshal.SetCount(list265, index2); + Span span265 = CollectionsMarshal.AsSpan(list265); + num2 = 0; + ref QuestStep reference176 = ref span265[num2]; QuestStep questStep40 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list266 = new List(num3); - CollectionsMarshal.SetCount(list266, num3); - CollectionsMarshal.AsSpan(list266)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list266 = new List(index3); + CollectionsMarshal.SetCount(list266, index3); + Span span266 = CollectionsMarshal.AsSpan(list266); + num3 = 0; + span266[num3] = EExtendedClassJob.Miner; questStep40.RequiredQuestAcceptedJob = list266; num3 = 1; List list267 = new List(num3); CollectionsMarshal.SetCount(list267, num3); - CollectionsMarshal.AsSpan(list267)[0] = new GatheredItem + Span span267 = CollectionsMarshal.AsSpan(list267); + index3 = 0; + span267[index3] = new GatheredItem { ItemId = 48054u, ItemCount = 3 }; questStep40.ItemsToGather = list267; reference176 = questStep40; - ref QuestStep reference177 = ref span88[1]; + num2++; + ref QuestStep reference177 = ref span265[num2]; QuestStep questStep41 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list268 = new List(index3); + CollectionsMarshal.SetCount(list268, index3); + Span span268 = CollectionsMarshal.AsSpan(list268); + num3 = 0; + span268[num3] = EExtendedClassJob.Botanist; questStep41.RequiredQuestAcceptedJob = list268; num3 = 1; List list269 = new List(num3); CollectionsMarshal.SetCount(list269, num3); - CollectionsMarshal.AsSpan(list269)[0] = new GatheredItem + Span span269 = CollectionsMarshal.AsSpan(list269); + index3 = 0; + span269[index3] = new GatheredItem { ItemId = 48055u, ItemCount = 3 }; questStep41.ItemsToGather = list269; reference177 = questStep41; - span88[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span265[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377716,13 +459501,16 @@ public static class AssemblyQuestLoader num = 1; List list270 = new List(num); CollectionsMarshal.SetCount(list270, num); - CollectionsMarshal.AsSpan(list270)[0] = "Censored"; + Span span270 = CollectionsMarshal.AsSpan(list270); + index = 0; + span270[index] = "Censored"; questRoot28.Author = list270; - num = 2; - List list271 = new List(num); - CollectionsMarshal.SetCount(list271, num); - Span span89 = CollectionsMarshal.AsSpan(list271); - ref QuestSequence reference178 = ref span89[0]; + index = 2; + List list271 = new List(index); + CollectionsMarshal.SetCount(list271, index); + Span span271 = CollectionsMarshal.AsSpan(list271); + num = 0; + ref QuestSequence reference178 = ref span271[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 @@ -377730,53 +459518,67 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj132.Steps = list272; reference178 = obj132; - ref QuestSequence reference179 = ref span89[1]; + num++; + ref QuestSequence reference179 = ref span271[num]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - Span span90 = CollectionsMarshal.AsSpan(list273); - ref QuestStep reference180 = ref span90[0]; + index2 = 3; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + ref QuestStep reference180 = ref span273[num2]; QuestStep questStep42 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - CollectionsMarshal.AsSpan(list274)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list274 = new List(index3); + CollectionsMarshal.SetCount(list274, index3); + Span span274 = CollectionsMarshal.AsSpan(list274); + num3 = 0; + span274[num3] = EExtendedClassJob.Miner; questStep42.RequiredQuestAcceptedJob = list274; num3 = 1; List list275 = new List(num3); CollectionsMarshal.SetCount(list275, num3); - CollectionsMarshal.AsSpan(list275)[0] = new GatheredItem + Span span275 = CollectionsMarshal.AsSpan(list275); + index3 = 0; + span275[index3] = new GatheredItem { ItemId = 48057u, ItemCount = 3 }; questStep42.ItemsToGather = list275; reference180 = questStep42; - ref QuestStep reference181 = ref span90[1]; + num2++; + ref QuestStep reference181 = ref span273[num2]; QuestStep questStep43 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list276 = new List(num3); - CollectionsMarshal.SetCount(list276, num3); - CollectionsMarshal.AsSpan(list276)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list276 = new List(index3); + CollectionsMarshal.SetCount(list276, index3); + Span span276 = CollectionsMarshal.AsSpan(list276); + num3 = 0; + span276[num3] = EExtendedClassJob.Botanist; questStep43.RequiredQuestAcceptedJob = list276; num3 = 1; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - CollectionsMarshal.AsSpan(list277)[0] = new GatheredItem + Span span277 = CollectionsMarshal.AsSpan(list277); + index3 = 0; + span277[index3] = new GatheredItem { ItemId = 48058u, ItemCount = 3 }; questStep43.ItemsToGather = list277; reference181 = questStep43; - span90[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span273[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377802,13 +459604,16 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - CollectionsMarshal.AsSpan(list278)[0] = "liza"; + Span span278 = CollectionsMarshal.AsSpan(list278); + index = 0; + span278[index] = "liza"; questRoot29.Author = list278; - num = 2; - List list279 = new List(num); - CollectionsMarshal.SetCount(list279, num); - Span span91 = CollectionsMarshal.AsSpan(list279); - ref QuestSequence reference182 = ref span91[0]; + index = 2; + List list279 = new List(index); + CollectionsMarshal.SetCount(list279, index); + Span span279 = CollectionsMarshal.AsSpan(list279); + num = 0; + ref QuestSequence reference182 = ref span279[num]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -377816,53 +459621,67 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + Span span280 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span280[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj134.Steps = list280; reference182 = obj134; - ref QuestSequence reference183 = ref span91[1]; + num++; + ref QuestSequence reference183 = ref span279[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - Span span92 = CollectionsMarshal.AsSpan(list281); - ref QuestStep reference184 = ref span92[0]; + index2 = 3; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + Span span281 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + ref QuestStep reference184 = ref span281[num2]; QuestStep questStep44 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list282 = new List(index3); + CollectionsMarshal.SetCount(list282, index3); + Span span282 = CollectionsMarshal.AsSpan(list282); + num3 = 0; + span282[num3] = EExtendedClassJob.Miner; questStep44.RequiredQuestAcceptedJob = list282; num3 = 1; List list283 = new List(num3); CollectionsMarshal.SetCount(list283, num3); - CollectionsMarshal.AsSpan(list283)[0] = new GatheredItem + Span span283 = CollectionsMarshal.AsSpan(list283); + index3 = 0; + span283[index3] = new GatheredItem { ItemId = 48060u, ItemCount = 3 }; questStep44.ItemsToGather = list283; reference184 = questStep44; - ref QuestStep reference185 = ref span92[1]; + num2++; + ref QuestStep reference185 = ref span281[num2]; QuestStep questStep45 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - CollectionsMarshal.AsSpan(list284)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list284 = new List(index3); + CollectionsMarshal.SetCount(list284, index3); + Span span284 = CollectionsMarshal.AsSpan(list284); + num3 = 0; + span284[num3] = EExtendedClassJob.Botanist; questStep45.RequiredQuestAcceptedJob = list284; num3 = 1; List list285 = new List(num3); CollectionsMarshal.SetCount(list285, num3); - CollectionsMarshal.AsSpan(list285)[0] = new GatheredItem + Span span285 = CollectionsMarshal.AsSpan(list285); + index3 = 0; + span285[index3] = new GatheredItem { ItemId = 48061u, ItemCount = 3 }; questStep45.ItemsToGather = list285; reference185 = questStep45; - span92[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span281[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377888,13 +459707,16 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "liza"; + Span span286 = CollectionsMarshal.AsSpan(list286); + index = 0; + span286[index] = "liza"; questRoot30.Author = list286; - num = 2; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span93 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference186 = ref span93[0]; + index = 2; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + Span span287 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference186 = ref span287[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 @@ -377902,53 +459724,67 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + Span span288 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span288[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj136.Steps = list288; reference186 = obj136; - ref QuestSequence reference187 = ref span93[1]; + num++; + ref QuestSequence reference187 = ref span287[num]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - Span span94 = CollectionsMarshal.AsSpan(list289); - ref QuestStep reference188 = ref span94[0]; + index2 = 3; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + Span span289 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + ref QuestStep reference188 = ref span289[num2]; QuestStep questStep46 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list290 = new List(num3); - CollectionsMarshal.SetCount(list290, num3); - CollectionsMarshal.AsSpan(list290)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list290 = new List(index3); + CollectionsMarshal.SetCount(list290, index3); + Span span290 = CollectionsMarshal.AsSpan(list290); + num3 = 0; + span290[num3] = EExtendedClassJob.Miner; questStep46.RequiredQuestAcceptedJob = list290; num3 = 1; List list291 = new List(num3); CollectionsMarshal.SetCount(list291, num3); - CollectionsMarshal.AsSpan(list291)[0] = new GatheredItem + Span span291 = CollectionsMarshal.AsSpan(list291); + index3 = 0; + span291[index3] = new GatheredItem { ItemId = 48063u, ItemCount = 3 }; questStep46.ItemsToGather = list291; reference188 = questStep46; - ref QuestStep reference189 = ref span94[1]; + num2++; + ref QuestStep reference189 = ref span289[num2]; QuestStep questStep47 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list292 = new List(num3); - CollectionsMarshal.SetCount(list292, num3); - CollectionsMarshal.AsSpan(list292)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list292 = new List(index3); + CollectionsMarshal.SetCount(list292, index3); + Span span292 = CollectionsMarshal.AsSpan(list292); + num3 = 0; + span292[num3] = EExtendedClassJob.Botanist; questStep47.RequiredQuestAcceptedJob = list292; num3 = 1; List list293 = new List(num3); CollectionsMarshal.SetCount(list293, num3); - CollectionsMarshal.AsSpan(list293)[0] = new GatheredItem + Span span293 = CollectionsMarshal.AsSpan(list293); + index3 = 0; + span293[index3] = new GatheredItem { ItemId = 48064u, ItemCount = 3 }; questStep47.ItemsToGather = list293; reference189 = questStep47; - span94[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span289[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -377974,13 +459810,16 @@ public static class AssemblyQuestLoader num = 1; List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - CollectionsMarshal.AsSpan(list294)[0] = "liza"; + Span span294 = CollectionsMarshal.AsSpan(list294); + index = 0; + span294[index] = "liza"; questRoot31.Author = list294; - num = 4; - List list295 = new List(num); - CollectionsMarshal.SetCount(list295, num); - Span span95 = CollectionsMarshal.AsSpan(list295); - ref QuestSequence reference190 = ref span95[0]; + index = 4; + List list295 = new List(index); + CollectionsMarshal.SetCount(list295, index); + Span span295 = CollectionsMarshal.AsSpan(list295); + num = 0; + ref QuestSequence reference190 = ref span295[num]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -377988,59 +459827,81 @@ public static class AssemblyQuestLoader num2 = 1; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + Span span296 = CollectionsMarshal.AsSpan(list296); + index2 = 0; + span296[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj138.Steps = list296; reference190 = obj138; - ref QuestSequence reference191 = ref span95[1]; + num++; + ref QuestSequence reference191 = ref span295[num]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list297 = new List(num2); - CollectionsMarshal.SetCount(list297, num2); - Span span96 = CollectionsMarshal.AsSpan(list297); - ref QuestStep reference192 = ref span96[0]; + index2 = 2; + List list297 = new List(index2); + CollectionsMarshal.SetCount(list297, index2); + Span span297 = CollectionsMarshal.AsSpan(list297); + num2 = 0; + ref QuestStep reference192 = ref span297[num2]; QuestStep questStep48 = new QuestStep(EInteractionType.Interact, 2014732u, new Vector3(542.71765f, -149.06543f, 768.6426f), 1189); - num3 = 6; - List> list298 = new List>(num3); - CollectionsMarshal.SetCount(list298, num3); - Span> span97 = CollectionsMarshal.AsSpan(list298); - span97[0] = null; - ref List reference193 = ref span97[1]; + index3 = 6; + List> list298 = new List>(index3); + CollectionsMarshal.SetCount(list298, index3); + Span> span298 = CollectionsMarshal.AsSpan(list298); + num3 = 0; + span298[num3] = null; + num3++; + ref List reference193 = ref span298[num3]; num4 = 1; List list299 = new List(num4); CollectionsMarshal.SetCount(list299, num4); - CollectionsMarshal.AsSpan(list299)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + Span span299 = CollectionsMarshal.AsSpan(list299); + index4 = 0; + span299[index4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference193 = list299; - span97[2] = null; - span97[3] = null; - span97[4] = null; - span97[5] = null; + num3++; + span298[num3] = null; + num3++; + span298[num3] = null; + num3++; + span298[num3] = null; + num3++; + span298[num3] = null; questStep48.RequiredQuestVariables = list298; reference192 = questStep48; - ref QuestStep reference194 = ref span96[1]; + num2++; + ref QuestStep reference194 = ref span297[num2]; QuestStep questStep49 = new QuestStep(EInteractionType.Interact, 2014731u, new Vector3(540.5508f, -148.51611f, 763.6072f), 1189); num3 = 6; List> list300 = new List>(num3); CollectionsMarshal.SetCount(list300, num3); - Span> span98 = CollectionsMarshal.AsSpan(list300); - span98[0] = null; - ref List reference195 = ref span98[1]; - num4 = 1; - List list301 = new List(num4); - CollectionsMarshal.SetCount(list301, num4); - CollectionsMarshal.AsSpan(list301)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + Span> span300 = CollectionsMarshal.AsSpan(list300); + index3 = 0; + span300[index3] = null; + index3++; + ref List reference195 = ref span300[index3]; + index4 = 1; + List list301 = new List(index4); + CollectionsMarshal.SetCount(list301, index4); + Span span301 = CollectionsMarshal.AsSpan(list301); + num4 = 0; + span301[num4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference195 = list301; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = null; + index3++; + span300[index3] = null; + index3++; + span300[index3] = null; + index3++; + span300[index3] = null; + index3++; + span300[index3] = null; questStep49.RequiredQuestVariables = list300; reference194 = questStep49; obj139.Steps = list297; reference191 = obj139; - ref QuestSequence reference196 = ref span95[2]; + num++; + ref QuestSequence reference196 = ref span295[num]; QuestSequence obj140 = new QuestSequence { Sequence = 2 @@ -378048,21 +459909,26 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1054142u, new Vector3(-415.06067f, 23.50628f, -464.4084f), 1189) + Span span302 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span302[index2] = new QuestStep(EInteractionType.Interact, 1054142u, new Vector3(-415.06067f, 23.50628f, -464.4084f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; obj140.Steps = list302; reference196 = obj140; - ref QuestSequence reference197 = ref span95[3]; + num++; + ref QuestSequence reference197 = ref span295[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2 = 1; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + Span span303 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + span303[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -378088,13 +459954,16 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - CollectionsMarshal.AsSpan(list304)[0] = "liza"; + Span span304 = CollectionsMarshal.AsSpan(list304); + index = 0; + span304[index] = "liza"; questRoot32.Author = list304; - num = 2; - List list305 = new List(num); - CollectionsMarshal.SetCount(list305, num); - Span span99 = CollectionsMarshal.AsSpan(list305); - ref QuestSequence reference198 = ref span99[0]; + index = 2; + List list305 = new List(index); + CollectionsMarshal.SetCount(list305, index); + Span span305 = CollectionsMarshal.AsSpan(list305); + num = 0; + ref QuestSequence reference198 = ref span305[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -378102,53 +459971,67 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + Span span306 = CollectionsMarshal.AsSpan(list306); + index2 = 0; + span306[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj142.Steps = list306; reference198 = obj142; - ref QuestSequence reference199 = ref span99[1]; + num++; + ref QuestSequence reference199 = ref span305[num]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - Span span100 = CollectionsMarshal.AsSpan(list307); - ref QuestStep reference200 = ref span100[0]; + index2 = 3; + List list307 = new List(index2); + CollectionsMarshal.SetCount(list307, index2); + Span span307 = CollectionsMarshal.AsSpan(list307); + num2 = 0; + ref QuestStep reference200 = ref span307[num2]; QuestStep questStep50 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list308 = new List(num3); - CollectionsMarshal.SetCount(list308, num3); - CollectionsMarshal.AsSpan(list308)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list308 = new List(index3); + CollectionsMarshal.SetCount(list308, index3); + Span span308 = CollectionsMarshal.AsSpan(list308); + num3 = 0; + span308[num3] = EExtendedClassJob.Miner; questStep50.RequiredQuestAcceptedJob = list308; num3 = 1; List list309 = new List(num3); CollectionsMarshal.SetCount(list309, num3); - CollectionsMarshal.AsSpan(list309)[0] = new GatheredItem + Span span309 = CollectionsMarshal.AsSpan(list309); + index3 = 0; + span309[index3] = new GatheredItem { ItemId = 48066u, ItemCount = 3 }; questStep50.ItemsToGather = list309; reference200 = questStep50; - ref QuestStep reference201 = ref span100[1]; + num2++; + ref QuestStep reference201 = ref span307[num2]; QuestStep questStep51 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list310 = new List(num3); - CollectionsMarshal.SetCount(list310, num3); - CollectionsMarshal.AsSpan(list310)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list310 = new List(index3); + CollectionsMarshal.SetCount(list310, index3); + Span span310 = CollectionsMarshal.AsSpan(list310); + num3 = 0; + span310[num3] = EExtendedClassJob.Botanist; questStep51.RequiredQuestAcceptedJob = list310; num3 = 1; List list311 = new List(num3); CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = new GatheredItem + Span span311 = CollectionsMarshal.AsSpan(list311); + index3 = 0; + span311[index3] = new GatheredItem { ItemId = 48067u, ItemCount = 3 }; questStep51.ItemsToGather = list311; reference201 = questStep51; - span100[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span307[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -378174,13 +460057,16 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - CollectionsMarshal.AsSpan(list312)[0] = "liza"; + Span span312 = CollectionsMarshal.AsSpan(list312); + index = 0; + span312[index] = "liza"; questRoot33.Author = list312; - num = 4; - List list313 = new List(num); - CollectionsMarshal.SetCount(list313, num); - Span span101 = CollectionsMarshal.AsSpan(list313); - ref QuestSequence reference202 = ref span101[0]; + index = 4; + List list313 = new List(index); + CollectionsMarshal.SetCount(list313, index); + Span span313 = CollectionsMarshal.AsSpan(list313); + num = 0; + ref QuestSequence reference202 = ref span313[num]; QuestSequence obj144 = new QuestSequence { Sequence = 0 @@ -378188,24 +460074,30 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + Span span314 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span314[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj144.Steps = list314; reference202 = obj144; - ref QuestSequence reference203 = ref span101[1]; + num++; + ref QuestSequence reference203 = ref span313[num]; QuestSequence obj145 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1052562u, new Vector3(482.59705f, -150.00002f, 786.70935f), 1189) + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + Span span315 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span315[num2] = new QuestStep(EInteractionType.Interact, 1052562u, new Vector3(482.59705f, -150.00002f, 786.70935f), 1189) { Fly = true }; obj145.Steps = list315; reference203 = obj145; - ref QuestSequence reference204 = ref span101[2]; + num++; + ref QuestSequence reference204 = ref span313[num]; QuestSequence obj146 = new QuestSequence { Sequence = 2 @@ -378213,26 +460105,34 @@ public static class AssemblyQuestLoader num2 = 3; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span102 = CollectionsMarshal.AsSpan(list316); - ref QuestStep reference205 = ref span102[0]; + Span span316 = CollectionsMarshal.AsSpan(list316); + index2 = 0; + ref QuestStep reference205 = ref span316[index2]; QuestStep obj147 = new QuestStep(EInteractionType.Action, 2014730u, new Vector3(370.29065f, -156.69495f, 707.9728f), 1189) { Fly = true, Action = EAction.ShroudedLuminescence }; - num3 = 6; - List list317 = new List(num3); - CollectionsMarshal.SetCount(list317, num3); - Span span103 = CollectionsMarshal.AsSpan(list317); - span103[0] = null; - span103[1] = null; - span103[2] = null; - span103[3] = null; - span103[4] = null; - span103[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list317 = new List(index3); + CollectionsMarshal.SetCount(list317, index3); + Span span317 = CollectionsMarshal.AsSpan(list317); + num3 = 0; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = null; + num3++; + span317[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj147.CompletionQuestVariablesFlags = list317; reference205 = obj147; - ref QuestStep reference206 = ref span102[1]; + index2++; + ref QuestStep reference206 = ref span316[index2]; QuestStep obj148 = new QuestStep(EInteractionType.Action, 2014728u, new Vector3(377.4319f, -150.53027f, 803.952f), 1189) { Fly = true, @@ -378241,44 +460141,60 @@ public static class AssemblyQuestLoader num3 = 6; List list318 = new List(num3); CollectionsMarshal.SetCount(list318, num3); - Span span104 = CollectionsMarshal.AsSpan(list318); - span104[0] = null; - span104[1] = null; - span104[2] = null; - span104[3] = null; - span104[4] = null; - span104[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span318 = CollectionsMarshal.AsSpan(list318); + index3 = 0; + span318[index3] = null; + index3++; + span318[index3] = null; + index3++; + span318[index3] = null; + index3++; + span318[index3] = null; + index3++; + span318[index3] = null; + index3++; + span318[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj148.CompletionQuestVariablesFlags = list318; reference206 = obj148; - ref QuestStep reference207 = ref span102[2]; + index2++; + ref QuestStep reference207 = ref span316[index2]; QuestStep obj149 = new QuestStep(EInteractionType.Action, 2014729u, new Vector3(283.4668f, -151.26276f, 796.8108f), 1189) { Fly = true, Action = EAction.ShroudedLuminescence }; - num3 = 6; - List list319 = new List(num3); - CollectionsMarshal.SetCount(list319, num3); - Span span105 = CollectionsMarshal.AsSpan(list319); - span105[0] = null; - span105[1] = null; - span105[2] = null; - span105[3] = null; - span105[4] = null; - span105[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list319 = new List(index3); + CollectionsMarshal.SetCount(list319, index3); + Span span319 = CollectionsMarshal.AsSpan(list319); + num3 = 0; + span319[num3] = null; + num3++; + span319[num3] = null; + num3++; + span319[num3] = null; + num3++; + span319[num3] = null; + num3++; + span319[num3] = null; + num3++; + span319[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj149.CompletionQuestVariablesFlags = list319; reference207 = obj149; obj146.Steps = list316; reference204 = obj146; - ref QuestSequence reference208 = ref span101[3]; + num++; + ref QuestSequence reference208 = ref span313[num]; QuestSequence obj150 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list320 = new List(num2); - CollectionsMarshal.SetCount(list320, num2); - CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2 = 1; + List list320 = new List(index2); + CollectionsMarshal.SetCount(list320, index2); + Span span320 = CollectionsMarshal.AsSpan(list320); + num2 = 0; + span320[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -378304,13 +460220,16 @@ public static class AssemblyQuestLoader num = 1; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - CollectionsMarshal.AsSpan(list321)[0] = "liza"; + Span span321 = CollectionsMarshal.AsSpan(list321); + index = 0; + span321[index] = "liza"; questRoot34.Author = list321; - num = 2; - List list322 = new List(num); - CollectionsMarshal.SetCount(list322, num); - Span span106 = CollectionsMarshal.AsSpan(list322); - ref QuestSequence reference209 = ref span106[0]; + index = 2; + List list322 = new List(index); + CollectionsMarshal.SetCount(list322, index); + Span span322 = CollectionsMarshal.AsSpan(list322); + num = 0; + ref QuestSequence reference209 = ref span322[num]; QuestSequence obj151 = new QuestSequence { Sequence = 0 @@ -378318,53 +460237,67 @@ public static class AssemblyQuestLoader num2 = 1; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + Span span323 = CollectionsMarshal.AsSpan(list323); + index2 = 0; + span323[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj151.Steps = list323; reference209 = obj151; - ref QuestSequence reference210 = ref span106[1]; + num++; + ref QuestSequence reference210 = ref span322[num]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - Span span107 = CollectionsMarshal.AsSpan(list324); - ref QuestStep reference211 = ref span107[0]; + index2 = 3; + List list324 = new List(index2); + CollectionsMarshal.SetCount(list324, index2); + Span span324 = CollectionsMarshal.AsSpan(list324); + num2 = 0; + ref QuestStep reference211 = ref span324[num2]; QuestStep questStep52 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list325 = new List(num3); CollectionsMarshal.SetCount(list325, num3); - CollectionsMarshal.AsSpan(list325)[0] = EExtendedClassJob.Miner; + Span span325 = CollectionsMarshal.AsSpan(list325); + index3 = 0; + span325[index3] = EExtendedClassJob.Miner; questStep52.RequiredQuestAcceptedJob = list325; - num3 = 1; - List list326 = new List(num3); - CollectionsMarshal.SetCount(list326, num3); - CollectionsMarshal.AsSpan(list326)[0] = new GatheredItem + index3 = 1; + List list326 = new List(index3); + CollectionsMarshal.SetCount(list326, index3); + Span span326 = CollectionsMarshal.AsSpan(list326); + num3 = 0; + span326[num3] = new GatheredItem { ItemId = 48069u, ItemCount = 3 }; questStep52.ItemsToGather = list326; reference211 = questStep52; - ref QuestStep reference212 = ref span107[1]; + num2++; + ref QuestStep reference212 = ref span324[num2]; QuestStep questStep53 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list327 = new List(num3); CollectionsMarshal.SetCount(list327, num3); - CollectionsMarshal.AsSpan(list327)[0] = EExtendedClassJob.Botanist; + Span span327 = CollectionsMarshal.AsSpan(list327); + index3 = 0; + span327[index3] = EExtendedClassJob.Botanist; questStep53.RequiredQuestAcceptedJob = list327; - num3 = 1; - List list328 = new List(num3); - CollectionsMarshal.SetCount(list328, num3); - CollectionsMarshal.AsSpan(list328)[0] = new GatheredItem + index3 = 1; + List list328 = new List(index3); + CollectionsMarshal.SetCount(list328, index3); + Span span328 = CollectionsMarshal.AsSpan(list328); + num3 = 0; + span328[num3] = new GatheredItem { ItemId = 48070u, ItemCount = 3 }; questStep53.ItemsToGather = list328; reference212 = questStep53; - span107[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span324[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -378390,13 +460323,16 @@ public static class AssemblyQuestLoader num = 1; List list329 = new List(num); CollectionsMarshal.SetCount(list329, num); - CollectionsMarshal.AsSpan(list329)[0] = "liza"; + Span span329 = CollectionsMarshal.AsSpan(list329); + index = 0; + span329[index] = "liza"; questRoot35.Author = list329; - num = 2; - List list330 = new List(num); - CollectionsMarshal.SetCount(list330, num); - Span span108 = CollectionsMarshal.AsSpan(list330); - ref QuestSequence reference213 = ref span108[0]; + index = 2; + List list330 = new List(index); + CollectionsMarshal.SetCount(list330, index); + Span span330 = CollectionsMarshal.AsSpan(list330); + num = 0; + ref QuestSequence reference213 = ref span330[num]; QuestSequence obj153 = new QuestSequence { Sequence = 0 @@ -378404,53 +460340,67 @@ public static class AssemblyQuestLoader num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + Span span331 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span331[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj153.Steps = list331; reference213 = obj153; - ref QuestSequence reference214 = ref span108[1]; + num++; + ref QuestSequence reference214 = ref span330[num]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list332 = new List(num2); - CollectionsMarshal.SetCount(list332, num2); - Span span109 = CollectionsMarshal.AsSpan(list332); - ref QuestStep reference215 = ref span109[0]; + index2 = 3; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + Span span332 = CollectionsMarshal.AsSpan(list332); + num2 = 0; + ref QuestStep reference215 = ref span332[num2]; QuestStep questStep54 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list333 = new List(num3); CollectionsMarshal.SetCount(list333, num3); - CollectionsMarshal.AsSpan(list333)[0] = EExtendedClassJob.Miner; + Span span333 = CollectionsMarshal.AsSpan(list333); + index3 = 0; + span333[index3] = EExtendedClassJob.Miner; questStep54.RequiredQuestAcceptedJob = list333; - num3 = 1; - List list334 = new List(num3); - CollectionsMarshal.SetCount(list334, num3); - CollectionsMarshal.AsSpan(list334)[0] = new GatheredItem + index3 = 1; + List list334 = new List(index3); + CollectionsMarshal.SetCount(list334, index3); + Span span334 = CollectionsMarshal.AsSpan(list334); + num3 = 0; + span334[num3] = new GatheredItem { ItemId = 48072u, ItemCount = 3 }; questStep54.ItemsToGather = list334; reference215 = questStep54; - ref QuestStep reference216 = ref span109[1]; + num2++; + ref QuestStep reference216 = ref span332[num2]; QuestStep questStep55 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list335 = new List(num3); CollectionsMarshal.SetCount(list335, num3); - CollectionsMarshal.AsSpan(list335)[0] = EExtendedClassJob.Botanist; + Span span335 = CollectionsMarshal.AsSpan(list335); + index3 = 0; + span335[index3] = EExtendedClassJob.Botanist; questStep55.RequiredQuestAcceptedJob = list335; - num3 = 1; - List list336 = new List(num3); - CollectionsMarshal.SetCount(list336, num3); - CollectionsMarshal.AsSpan(list336)[0] = new GatheredItem + index3 = 1; + List list336 = new List(index3); + CollectionsMarshal.SetCount(list336, index3); + Span span336 = CollectionsMarshal.AsSpan(list336); + num3 = 0; + span336[num3] = new GatheredItem { ItemId = 48073u, ItemCount = 3 }; questStep55.ItemsToGather = list336; reference216 = questStep55; - span109[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span332[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -378476,13 +460426,16 @@ public static class AssemblyQuestLoader num = 1; List list337 = new List(num); CollectionsMarshal.SetCount(list337, num); - CollectionsMarshal.AsSpan(list337)[0] = "Theo"; + Span span337 = CollectionsMarshal.AsSpan(list337); + index = 0; + span337[index] = "Theo"; questRoot36.Author = list337; - num = 3; - List list338 = new List(num); - CollectionsMarshal.SetCount(list338, num); - Span span110 = CollectionsMarshal.AsSpan(list338); - ref QuestSequence reference217 = ref span110[0]; + index = 3; + List list338 = new List(index); + CollectionsMarshal.SetCount(list338, index); + Span span338 = CollectionsMarshal.AsSpan(list338); + num = 0; + ref QuestSequence reference217 = ref span338[num]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -378490,18 +460443,23 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + Span span339 = CollectionsMarshal.AsSpan(list339); + index2 = 0; + span339[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj155.Steps = list339; reference217 = obj155; - ref QuestSequence reference218 = ref span110[1]; + num++; + ref QuestSequence reference218 = ref span338[num]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list340 = new List(num2); - CollectionsMarshal.SetCount(list340, num2); - ref QuestStep reference219 = ref CollectionsMarshal.AsSpan(list340)[0]; + index2 = 1; + List list340 = new List(index2); + CollectionsMarshal.SetCount(list340, index2); + Span span340 = CollectionsMarshal.AsSpan(list340); + num2 = 0; + ref QuestStep reference219 = ref span340[num2]; QuestStep obj157 = new QuestStep(EInteractionType.Interact, 1052577u, new Vector3(613.39734f, 16.222143f, 1.7547607f), 1189) { Fly = true @@ -378509,23 +460467,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list341 = new List>(num3); CollectionsMarshal.SetCount(list341, num3); - Span> span111 = CollectionsMarshal.AsSpan(list341); - span111[0] = null; - ref List reference220 = ref span111[1]; + Span> span341 = CollectionsMarshal.AsSpan(list341); + index3 = 0; + span341[index3] = null; + index3++; + ref List reference220 = ref span341[index3]; num4 = 1; List list342 = new List(num4); CollectionsMarshal.SetCount(list342, num4); - CollectionsMarshal.AsSpan(list342)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span342 = CollectionsMarshal.AsSpan(list342); + index4 = 0; + span342[index4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference220 = list342; - span111[2] = null; - span111[3] = null; - span111[4] = null; - span111[5] = null; + index3++; + span341[index3] = null; + index3++; + span341[index3] = null; + index3++; + span341[index3] = null; + index3++; + span341[index3] = null; obj157.RequiredQuestVariables = list341; reference219 = obj157; obj156.Steps = list340; reference218 = obj156; - ref QuestSequence reference221 = ref span110[2]; + num++; + ref QuestSequence reference221 = ref span338[num]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue @@ -378533,7 +460500,9 @@ public static class AssemblyQuestLoader num2 = 1; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + Span span343 = CollectionsMarshal.AsSpan(list343); + index2 = 0; + span343[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true }; @@ -378546,24 +460515,30 @@ public static class AssemblyQuestLoader num = 1; List list344 = new List(num); CollectionsMarshal.SetCount(list344, num); - CollectionsMarshal.AsSpan(list344)[0] = "liza"; + Span span344 = CollectionsMarshal.AsSpan(list344); + index = 0; + span344[index] = "liza"; questRoot37.Author = list344; - num = 2; - List list345 = new List(num); - CollectionsMarshal.SetCount(list345, num); - Span span112 = CollectionsMarshal.AsSpan(list345); - ref QuestSequence reference222 = ref span112[0]; + index = 2; + List list345 = new List(index); + CollectionsMarshal.SetCount(list345, index); + Span span345 = CollectionsMarshal.AsSpan(list345); + num = 0; + ref QuestSequence reference222 = ref span345[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list346 = new List(num2); - CollectionsMarshal.SetCount(list346, num2); - CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + index2 = 1; + List list346 = new List(index2); + CollectionsMarshal.SetCount(list346, index2); + Span span346 = CollectionsMarshal.AsSpan(list346); + num2 = 0; + span346[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj159.Steps = list346; reference222 = obj159; - ref QuestSequence reference223 = ref span112[1]; + num++; + ref QuestSequence reference223 = ref span345[num]; QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue @@ -378571,42 +460546,53 @@ public static class AssemblyQuestLoader num2 = 3; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - Span span113 = CollectionsMarshal.AsSpan(list347); - ref QuestStep reference224 = ref span113[0]; + Span span347 = CollectionsMarshal.AsSpan(list347); + index2 = 0; + ref QuestStep reference224 = ref span347[index2]; QuestStep questStep56 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list348 = new List(num3); - CollectionsMarshal.SetCount(list348, num3); - CollectionsMarshal.AsSpan(list348)[0] = EExtendedClassJob.Miner; + index3 = 1; + List list348 = new List(index3); + CollectionsMarshal.SetCount(list348, index3); + Span span348 = CollectionsMarshal.AsSpan(list348); + num3 = 0; + span348[num3] = EExtendedClassJob.Miner; questStep56.RequiredQuestAcceptedJob = list348; num3 = 1; List list349 = new List(num3); CollectionsMarshal.SetCount(list349, num3); - CollectionsMarshal.AsSpan(list349)[0] = new GatheredItem + Span span349 = CollectionsMarshal.AsSpan(list349); + index3 = 0; + span349[index3] = new GatheredItem { ItemId = 48075u, ItemCount = 3 }; questStep56.ItemsToGather = list349; reference224 = questStep56; - ref QuestStep reference225 = ref span113[1]; + index2++; + ref QuestStep reference225 = ref span347[index2]; QuestStep questStep57 = new QuestStep(EInteractionType.Gather, null, null, 1189); - num3 = 1; - List list350 = new List(num3); - CollectionsMarshal.SetCount(list350, num3); - CollectionsMarshal.AsSpan(list350)[0] = EExtendedClassJob.Botanist; + index3 = 1; + List list350 = new List(index3); + CollectionsMarshal.SetCount(list350, index3); + Span span350 = CollectionsMarshal.AsSpan(list350); + num3 = 0; + span350[num3] = EExtendedClassJob.Botanist; questStep57.RequiredQuestAcceptedJob = list350; num3 = 1; List list351 = new List(num3); CollectionsMarshal.SetCount(list351, num3); - CollectionsMarshal.AsSpan(list351)[0] = new GatheredItem + Span span351 = CollectionsMarshal.AsSpan(list351); + index3 = 0; + span351[index3] = new GatheredItem { ItemId = 48076u, ItemCount = 3 }; questStep57.ItemsToGather = list351; reference225 = questStep57; - span113[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2++; + span347[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -378632,24 +460618,30 @@ public static class AssemblyQuestLoader num = 1; List list352 = new List(num); CollectionsMarshal.SetCount(list352, num); - CollectionsMarshal.AsSpan(list352)[0] = "liza"; + Span span352 = CollectionsMarshal.AsSpan(list352); + index = 0; + span352[index] = "liza"; questRoot38.Author = list352; - num = 3; - List list353 = new List(num); - CollectionsMarshal.SetCount(list353, num); - Span span114 = CollectionsMarshal.AsSpan(list353); - ref QuestSequence reference226 = ref span114[0]; + index = 3; + List list353 = new List(index); + CollectionsMarshal.SetCount(list353, index); + Span span353 = CollectionsMarshal.AsSpan(list353); + num = 0; + ref QuestSequence reference226 = ref span353[num]; QuestSequence obj161 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list354 = new List(num2); - CollectionsMarshal.SetCount(list354, num2); - CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + index2 = 1; + List list354 = new List(index2); + CollectionsMarshal.SetCount(list354, index2); + Span span354 = CollectionsMarshal.AsSpan(list354); + num2 = 0; + span354[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj161.Steps = list354; reference226 = obj161; - ref QuestSequence reference227 = ref span114[1]; + num++; + ref QuestSequence reference227 = ref span353[num]; QuestSequence obj162 = new QuestSequence { Sequence = 1 @@ -378657,30 +460649,40 @@ public static class AssemblyQuestLoader num2 = 3; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - Span span115 = CollectionsMarshal.AsSpan(list355); - ref QuestStep reference228 = ref span115[0]; + Span span355 = CollectionsMarshal.AsSpan(list355); + index2 = 0; + ref QuestStep reference228 = ref span355[index2]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 1054144u, new Vector3(527.6721f, -135.12724f, 585.687f), 1189) { Fly = true }; - num3 = 6; - List> list356 = new List>(num3); - CollectionsMarshal.SetCount(list356, num3); - Span> span116 = CollectionsMarshal.AsSpan(list356); - span116[0] = null; - span116[1] = null; - ref List reference229 = ref span116[2]; - num4 = 1; - List list357 = new List(num4); - CollectionsMarshal.SetCount(list357, num4); - CollectionsMarshal.AsSpan(list357)[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + index3 = 6; + List> list356 = new List>(index3); + CollectionsMarshal.SetCount(list356, index3); + Span> span356 = CollectionsMarshal.AsSpan(list356); + num3 = 0; + span356[num3] = null; + num3++; + span356[num3] = null; + num3++; + ref List reference229 = ref span356[num3]; + index4 = 1; + List list357 = new List(index4); + CollectionsMarshal.SetCount(list357, index4); + Span span357 = CollectionsMarshal.AsSpan(list357); + num4 = 0; + span357[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); reference229 = list357; - span116[3] = null; - span116[4] = null; - span116[5] = null; + num3++; + span356[num3] = null; + num3++; + span356[num3] = null; + num3++; + span356[num3] = null; obj163.RequiredQuestVariables = list356; reference228 = obj163; - ref QuestStep reference230 = ref span115[1]; + index2++; + ref QuestStep reference230 = ref span355[index2]; QuestStep obj164 = new QuestStep(EInteractionType.Interact, 1054145u, new Vector3(627.77136f, -135.12726f, 545.18945f), 1189) { Fly = true @@ -378688,53 +460690,73 @@ public static class AssemblyQuestLoader num3 = 6; List> list358 = new List>(num3); CollectionsMarshal.SetCount(list358, num3); - Span> span117 = CollectionsMarshal.AsSpan(list358); - span117[0] = null; - span117[1] = null; - ref List reference231 = ref span117[2]; + Span> span358 = CollectionsMarshal.AsSpan(list358); + index3 = 0; + span358[index3] = null; + index3++; + span358[index3] = null; + index3++; + ref List reference231 = ref span358[index3]; num4 = 1; List list359 = new List(num4); CollectionsMarshal.SetCount(list359, num4); - CollectionsMarshal.AsSpan(list359)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + Span span359 = CollectionsMarshal.AsSpan(list359); + index4 = 0; + span359[index4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference231 = list359; - span117[3] = null; - span117[4] = null; - span117[5] = null; + index3++; + span358[index3] = null; + index3++; + span358[index3] = null; + index3++; + span358[index3] = null; obj164.RequiredQuestVariables = list358; reference230 = obj164; - ref QuestStep reference232 = ref span115[2]; + index2++; + ref QuestStep reference232 = ref span355[index2]; QuestStep obj165 = new QuestStep(EInteractionType.Interact, 1054143u, new Vector3(668.4214f, -135.17874f, 581.96375f), 1189) { Fly = true }; - num3 = 6; - List> list360 = new List>(num3); - CollectionsMarshal.SetCount(list360, num3); - Span> span118 = CollectionsMarshal.AsSpan(list360); - span118[0] = null; - span118[1] = null; - ref List reference233 = ref span118[2]; - num4 = 1; - List list361 = new List(num4); - CollectionsMarshal.SetCount(list361, num4); - CollectionsMarshal.AsSpan(list361)[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + index3 = 6; + List> list360 = new List>(index3); + CollectionsMarshal.SetCount(list360, index3); + Span> span360 = CollectionsMarshal.AsSpan(list360); + num3 = 0; + span360[num3] = null; + num3++; + span360[num3] = null; + num3++; + ref List reference233 = ref span360[num3]; + index4 = 1; + List list361 = new List(index4); + CollectionsMarshal.SetCount(list361, index4); + Span span361 = CollectionsMarshal.AsSpan(list361); + num4 = 0; + span361[num4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference233 = list361; - span118[3] = null; - span118[4] = null; - span118[5] = null; + num3++; + span360[num3] = null; + num3++; + span360[num3] = null; + num3++; + span360[num3] = null; obj165.RequiredQuestVariables = list360; reference232 = obj165; obj162.Steps = list355; reference227 = obj162; - ref QuestSequence reference234 = ref span114[2]; + num++; + ref QuestSequence reference234 = ref span353[num]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list362 = new List(num2); - CollectionsMarshal.SetCount(list362, num2); - CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + index2 = 1; + List list362 = new List(index2); + CollectionsMarshal.SetCount(list362, index2); + Span span362 = CollectionsMarshal.AsSpan(list362); + num2 = 0; + span362[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -378760,13 +460782,16 @@ public static class AssemblyQuestLoader num = 1; List list363 = new List(num); CollectionsMarshal.SetCount(list363, num); - CollectionsMarshal.AsSpan(list363)[0] = "liza"; + Span span363 = CollectionsMarshal.AsSpan(list363); + index = 0; + span363[index] = "liza"; questRoot39.Author = list363; - num = 2; - List list364 = new List(num); - CollectionsMarshal.SetCount(list364, num); - Span span119 = CollectionsMarshal.AsSpan(list364); - ref QuestSequence reference235 = ref span119[0]; + index = 2; + List list364 = new List(index); + CollectionsMarshal.SetCount(list364, index); + Span span364 = CollectionsMarshal.AsSpan(list364); + num = 0; + ref QuestSequence reference235 = ref span364[num]; QuestSequence obj167 = new QuestSequence { Sequence = 0 @@ -378774,53 +460799,67 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + Span span365 = CollectionsMarshal.AsSpan(list365); + index2 = 0; + span365[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj167.Steps = list365; reference235 = obj167; - ref QuestSequence reference236 = ref span119[1]; + num++; + ref QuestSequence reference236 = ref span364[num]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list366 = new List(num2); - CollectionsMarshal.SetCount(list366, num2); - Span span120 = CollectionsMarshal.AsSpan(list366); - ref QuestStep reference237 = ref span120[0]; + index2 = 3; + List list366 = new List(index2); + CollectionsMarshal.SetCount(list366, index2); + Span span366 = CollectionsMarshal.AsSpan(list366); + num2 = 0; + ref QuestStep reference237 = ref span366[num2]; QuestStep questStep58 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list367 = new List(num3); CollectionsMarshal.SetCount(list367, num3); - CollectionsMarshal.AsSpan(list367)[0] = EExtendedClassJob.Miner; + Span span367 = CollectionsMarshal.AsSpan(list367); + index3 = 0; + span367[index3] = EExtendedClassJob.Miner; questStep58.RequiredQuestAcceptedJob = list367; - num3 = 1; - List list368 = new List(num3); - CollectionsMarshal.SetCount(list368, num3); - CollectionsMarshal.AsSpan(list368)[0] = new GatheredItem + index3 = 1; + List list368 = new List(index3); + CollectionsMarshal.SetCount(list368, index3); + Span span368 = CollectionsMarshal.AsSpan(list368); + num3 = 0; + span368[num3] = new GatheredItem { ItemId = 48081u, ItemCount = 3 }; questStep58.ItemsToGather = list368; reference237 = questStep58; - ref QuestStep reference238 = ref span120[1]; + num2++; + ref QuestStep reference238 = ref span366[num2]; QuestStep questStep59 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list369 = new List(num3); CollectionsMarshal.SetCount(list369, num3); - CollectionsMarshal.AsSpan(list369)[0] = EExtendedClassJob.Botanist; + Span span369 = CollectionsMarshal.AsSpan(list369); + index3 = 0; + span369[index3] = EExtendedClassJob.Botanist; questStep59.RequiredQuestAcceptedJob = list369; - num3 = 1; - List list370 = new List(num3); - CollectionsMarshal.SetCount(list370, num3); - CollectionsMarshal.AsSpan(list370)[0] = new GatheredItem + index3 = 1; + List list370 = new List(index3); + CollectionsMarshal.SetCount(list370, index3); + Span span370 = CollectionsMarshal.AsSpan(list370); + num3 = 0; + span370[num3] = new GatheredItem { ItemId = 48082u, ItemCount = 3 }; questStep59.ItemsToGather = list370; reference238 = questStep59; - span120[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + num2++; + span366[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -378846,13 +460885,16 @@ public static class AssemblyQuestLoader num = 1; List list371 = new List(num); CollectionsMarshal.SetCount(list371, num); - CollectionsMarshal.AsSpan(list371)[0] = "liza"; + Span span371 = CollectionsMarshal.AsSpan(list371); + index = 0; + span371[index] = "liza"; questRoot40.Author = list371; - num = 7; - List list372 = new List(num); - CollectionsMarshal.SetCount(list372, num); - Span span121 = CollectionsMarshal.AsSpan(list372); - ref QuestSequence reference239 = ref span121[0]; + index = 7; + List list372 = new List(index); + CollectionsMarshal.SetCount(list372, index); + Span span372 = CollectionsMarshal.AsSpan(list372); + num = 0; + ref QuestSequence reference239 = ref span372[num]; QuestSequence obj169 = new QuestSequence { Sequence = 0 @@ -378860,7 +460902,9 @@ public static class AssemblyQuestLoader num2 = 1; List list373 = new List(num2); CollectionsMarshal.SetCount(list373, num2); - CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050471u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + Span span373 = CollectionsMarshal.AsSpan(list373); + index2 = 0; + span373[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050471u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -378871,16 +460915,18 @@ public static class AssemblyQuestLoader }; obj169.Steps = list373; reference239 = obj169; - ref QuestSequence reference240 = ref span121[1]; + num++; + ref QuestSequence reference240 = ref span372[num]; QuestSequence obj170 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list374 = new List(num2); - CollectionsMarshal.SetCount(list374, num2); - Span span122 = CollectionsMarshal.AsSpan(list374); - ref QuestStep reference241 = ref span122[0]; + index2 = 2; + List list374 = new List(index2); + CollectionsMarshal.SetCount(list374, index2); + Span span374 = CollectionsMarshal.AsSpan(list374); + num2 = 0; + ref QuestStep reference241 = ref span374[num2]; QuestStep obj171 = new QuestStep(EInteractionType.Interact, 2013724u, new Vector3(498.34436f, 60.593506f, 129.13708f), 1186) { TargetTerritoryId = (ushort)1223 @@ -378890,15 +460936,19 @@ public static class AssemblyQuestLoader num3 = 1; List list375 = new List(num3); CollectionsMarshal.SetCount(list375, num3); - CollectionsMarshal.AsSpan(list375)[0] = 1223; + Span span375 = CollectionsMarshal.AsSpan(list375); + index3 = 0; + span375[index3] = 1223; skipStepConditions2.InTerritory = list375; skipConditions4.StepIf = skipStepConditions2; obj171.SkipConditions = skipConditions4; reference241 = obj171; - span122[1] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); + num2++; + span374[num2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); obj170.Steps = list374; reference240 = obj170; - ref QuestSequence reference242 = ref span121[2]; + num++; + ref QuestSequence reference242 = ref span372[num]; QuestSequence obj172 = new QuestSequence { Sequence = 2 @@ -378906,22 +460956,26 @@ public static class AssemblyQuestLoader num2 = 1; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.Interact, 2014718u, new Vector3(3.0975342f, -0.015319824f, -6.3325195f), 1223) + Span span376 = CollectionsMarshal.AsSpan(list376); + index2 = 0; + span376[index2] = new QuestStep(EInteractionType.Interact, 2014718u, new Vector3(3.0975342f, -0.015319824f, -6.3325195f), 1223) { StopDistance = 4.5f }; obj172.Steps = list376; reference242 = obj172; - ref QuestSequence reference243 = ref span121[3]; + num++; + ref QuestSequence reference243 = ref span372[num]; QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list377 = new List(num2); - CollectionsMarshal.SetCount(list377, num2); - Span span123 = CollectionsMarshal.AsSpan(list377); - span123[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-368.6605f, 14.000002f, 137.47444f), 1186) + index2 = 3; + List list377 = new List(index2); + CollectionsMarshal.SetCount(list377, index2); + Span span377 = CollectionsMarshal.AsSpan(list377); + num2 = 0; + span377[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-368.6605f, 14.000002f, 137.47444f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -378929,14 +460983,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineResidentialSector } }; - span123[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-259.1231f, 2.2290611f, 206.59184f), 1186) + num2++; + span377[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-259.1231f, 2.2290611f, 206.59184f), 1186) { DisableNavmesh = true }; - span123[2] = new QuestStep(EInteractionType.Interact, 1053743u, new Vector3(-231.61676f, 2.1997917f, 302.60156f), 1186); + num2++; + span377[num2] = new QuestStep(EInteractionType.Interact, 1053743u, new Vector3(-231.61676f, 2.1997917f, 302.60156f), 1186); obj173.Steps = list377; reference243 = obj173; - ref QuestSequence reference244 = ref span121[4]; + num++; + ref QuestSequence reference244 = ref span372[num]; QuestSequence obj174 = new QuestSequence { Sequence = 4 @@ -378944,9 +461001,11 @@ public static class AssemblyQuestLoader num2 = 3; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - Span span124 = CollectionsMarshal.AsSpan(list378); - span124[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.43587f, 2.19987f, 265.6901f), 1186); - ref QuestStep reference245 = ref span124[1]; + Span span378 = CollectionsMarshal.AsSpan(list378); + index2 = 0; + span378[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.43587f, 2.19987f, 265.6901f), 1186); + index2++; + ref QuestStep reference245 = ref span378[index2]; QuestStep obj175 = new QuestStep(EInteractionType.Interact, 2013724u, new Vector3(498.34436f, 60.593506f, 129.13708f), 1186) { TargetTerritoryId = (ushort)1223, @@ -378958,27 +461017,32 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list379 = new List(num3); - CollectionsMarshal.SetCount(list379, num3); - CollectionsMarshal.AsSpan(list379)[0] = 1223; + index3 = 1; + List list379 = new List(index3); + CollectionsMarshal.SetCount(list379, index3); + Span span379 = CollectionsMarshal.AsSpan(list379); + num3 = 0; + span379[num3] = 1223; skipStepConditions3.InTerritory = list379; skipConditions5.StepIf = skipStepConditions3; obj175.SkipConditions = skipConditions5; reference245 = obj175; - span124[2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); + index2++; + span378[index2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); obj174.Steps = list378; reference244 = obj174; - ref QuestSequence reference246 = ref span121[5]; + num++; + ref QuestSequence reference246 = ref span372[num]; QuestSequence obj176 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list380 = new List(num2); - CollectionsMarshal.SetCount(list380, num2); - Span span125 = CollectionsMarshal.AsSpan(list380); - ref QuestStep reference247 = ref span125[0]; + index2 = 2; + List list380 = new List(index2); + CollectionsMarshal.SetCount(list380, index2); + Span span380 = CollectionsMarshal.AsSpan(list380); + num2 = 0; + ref QuestStep reference247 = ref span380[num2]; QuestStep obj177 = new QuestStep(EInteractionType.Interact, 2013725u, new Vector3(4.0740967f, 0.8086548f, 10.574402f), 1223) { TargetTerritoryId = (ushort)1186 @@ -378988,12 +461052,15 @@ public static class AssemblyQuestLoader num3 = 1; List list381 = new List(num3); CollectionsMarshal.SetCount(list381, num3); - CollectionsMarshal.AsSpan(list381)[0] = 1223; + Span span381 = CollectionsMarshal.AsSpan(list381); + index3 = 0; + span381[index3] = 1223; skipStepConditions4.NotInTerritory = list381; skipConditions6.StepIf = skipStepConditions4; obj177.SkipConditions = skipConditions6; reference247 = obj177; - ref QuestStep reference248 = ref span125[1]; + num2++; + ref QuestStep reference248 = ref span380[num2]; QuestStep obj178 = new QuestStep(EInteractionType.Interact, 1049787u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { AethernetShortcut = new AethernetShortcut @@ -379002,10 +461069,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTheArcadion } }; - num3 = 1; - List list382 = new List(num3); - CollectionsMarshal.SetCount(list382, num3); - CollectionsMarshal.AsSpan(list382)[0] = new DialogueChoice + index3 = 1; + List list382 = new List(index3); + CollectionsMarshal.SetCount(list382, index3); + Span span382 = CollectionsMarshal.AsSpan(list382); + num3 = 0; + span382[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGRA201_05289_SYSTEM_100_171") @@ -379014,7 +461083,8 @@ public static class AssemblyQuestLoader reference248 = obj178; obj176.Steps = list380; reference246 = obj176; - ref QuestSequence reference249 = ref span121[6]; + num++; + ref QuestSequence reference249 = ref span372[num]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -379022,7 +461092,9 @@ public static class AssemblyQuestLoader num2 = 1; List list383 = new List(num2); CollectionsMarshal.SetCount(list383, num2); - CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224) + Span span383 = CollectionsMarshal.AsSpan(list383); + index2 = 0; + span383[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224) { StopDistance = 5f, NextQuestId = new QuestId(5290) @@ -379036,27 +461108,33 @@ public static class AssemblyQuestLoader num = 1; List list384 = new List(num); CollectionsMarshal.SetCount(list384, num); - CollectionsMarshal.AsSpan(list384)[0] = "liza"; + Span span384 = CollectionsMarshal.AsSpan(list384); + index = 0; + span384[index] = "liza"; questRoot41.Author = list384; - num = 3; - List list385 = new List(num); - CollectionsMarshal.SetCount(list385, num); - Span span126 = CollectionsMarshal.AsSpan(list385); - ref QuestSequence reference250 = ref span126[0]; + index = 3; + List list385 = new List(index); + CollectionsMarshal.SetCount(list385, index); + Span span385 = CollectionsMarshal.AsSpan(list385); + num = 0; + ref QuestSequence reference250 = ref span385[num]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list386 = new List(num2); - CollectionsMarshal.SetCount(list386, num2); - CollectionsMarshal.AsSpan(list386)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224) + index2 = 1; + List list386 = new List(index2); + CollectionsMarshal.SetCount(list386, index2); + Span span386 = CollectionsMarshal.AsSpan(list386); + num2 = 0; + span386[num2] = new QuestStep(EInteractionType.AcceptQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224) { StopDistance = 5f }; obj180.Steps = list386; reference250 = obj180; - ref QuestSequence reference251 = ref span126[1]; + num++; + ref QuestSequence reference251 = ref span385[num]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -379064,7 +461142,9 @@ public static class AssemblyQuestLoader num2 = 1; List list387 = new List(num2); CollectionsMarshal.SetCount(list387, num2); - CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + Span span387 = CollectionsMarshal.AsSpan(list387); + index2 = 0; + span387[index2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -379073,15 +461153,18 @@ public static class AssemblyQuestLoader }; obj181.Steps = list387; reference251 = obj181; - ref QuestSequence reference252 = ref span126[2]; + num++; + ref QuestSequence reference252 = ref span385[num]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list388 = new List(num2); - CollectionsMarshal.SetCount(list388, num2); - CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) + index2 = 1; + List list388 = new List(index2); + CollectionsMarshal.SetCount(list388, index2); + Span span388 = CollectionsMarshal.AsSpan(list388); + num2 = 0; + span388[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) { StopDistance = 5f, NextQuestId = new QuestId(5291) @@ -379095,13 +461178,16 @@ public static class AssemblyQuestLoader num = 1; List list389 = new List(num); CollectionsMarshal.SetCount(list389, num); - CollectionsMarshal.AsSpan(list389)[0] = "liza"; + Span span389 = CollectionsMarshal.AsSpan(list389); + index = 0; + span389[index] = "liza"; questRoot42.Author = list389; - num = 3; - List list390 = new List(num); - CollectionsMarshal.SetCount(list390, num); - Span span127 = CollectionsMarshal.AsSpan(list390); - ref QuestSequence reference253 = ref span127[0]; + index = 3; + List list390 = new List(index); + CollectionsMarshal.SetCount(list390, index); + Span span390 = CollectionsMarshal.AsSpan(list390); + num = 0; + ref QuestSequence reference253 = ref span390[num]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -379109,21 +461195,26 @@ public static class AssemblyQuestLoader num2 = 1; List list391 = new List(num2); CollectionsMarshal.SetCount(list391, num2); - CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) + Span span391 = CollectionsMarshal.AsSpan(list391); + index2 = 0; + span391[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) { StopDistance = 5f }; obj183.Steps = list391; reference253 = obj183; - ref QuestSequence reference254 = ref span127[1]; + num++; + ref QuestSequence reference254 = ref span390[num]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list392 = new List(num2); - CollectionsMarshal.SetCount(list392, num2); - CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + index2 = 1; + List list392 = new List(index2); + CollectionsMarshal.SetCount(list392, index2); + Span span392 = CollectionsMarshal.AsSpan(list392); + num2 = 0; + span392[num2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -379132,7 +461223,8 @@ public static class AssemblyQuestLoader }; obj184.Steps = list392; reference254 = obj184; - ref QuestSequence reference255 = ref span127[2]; + num++; + ref QuestSequence reference255 = ref span390[num]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -379140,7 +461232,9 @@ public static class AssemblyQuestLoader num2 = 1; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) + Span span393 = CollectionsMarshal.AsSpan(list393); + index2 = 0; + span393[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) { StopDistance = 5f, NextQuestId = new QuestId(5292) @@ -379154,27 +461248,33 @@ public static class AssemblyQuestLoader num = 1; List list394 = new List(num); CollectionsMarshal.SetCount(list394, num); - CollectionsMarshal.AsSpan(list394)[0] = "liza"; + Span span394 = CollectionsMarshal.AsSpan(list394); + index = 0; + span394[index] = "liza"; questRoot43.Author = list394; - num = 7; - List list395 = new List(num); - CollectionsMarshal.SetCount(list395, num); - Span span128 = CollectionsMarshal.AsSpan(list395); - ref QuestSequence reference256 = ref span128[0]; + index = 7; + List list395 = new List(index); + CollectionsMarshal.SetCount(list395, index); + Span span395 = CollectionsMarshal.AsSpan(list395); + num = 0; + ref QuestSequence reference256 = ref span395[num]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list396 = new List(num2); - CollectionsMarshal.SetCount(list396, num2); - CollectionsMarshal.AsSpan(list396)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) + index2 = 1; + List list396 = new List(index2); + CollectionsMarshal.SetCount(list396, index2); + Span span396 = CollectionsMarshal.AsSpan(list396); + num2 = 0; + span396[num2] = new QuestStep(EInteractionType.AcceptQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) { StopDistance = 5f }; obj186.Steps = list396; reference256 = obj186; - ref QuestSequence reference257 = ref span128[1]; + num++; + ref QuestSequence reference257 = ref span395[num]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -379182,8 +461282,9 @@ public static class AssemblyQuestLoader num2 = 2; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - Span span129 = CollectionsMarshal.AsSpan(list397); - ref QuestStep reference258 = ref span129[0]; + Span span397 = CollectionsMarshal.AsSpan(list397); + index2 = 0; + ref QuestStep reference258 = ref span397[index2]; QuestStep obj188 = new QuestStep(EInteractionType.Interact, 2013722u, new Vector3(-0.07635498f, 1.0527954f, 8.102478f), 1224) { TargetTerritoryId = (ushort)1186 @@ -379193,12 +461294,15 @@ public static class AssemblyQuestLoader num3 = 1; List list398 = new List(num3); CollectionsMarshal.SetCount(list398, num3); - CollectionsMarshal.AsSpan(list398)[0] = 1224; + Span span398 = CollectionsMarshal.AsSpan(list398); + index3 = 0; + span398[index3] = 1224; skipStepConditions5.NotInTerritory = list398; skipConditions7.StepIf = skipStepConditions5; obj188.SkipConditions = skipConditions7; reference258 = obj188; - span129[1] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + index2++; + span397[index2] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -379208,15 +461312,18 @@ public static class AssemblyQuestLoader }; obj187.Steps = list397; reference257 = obj187; - ref QuestSequence reference259 = ref span128[2]; + num++; + ref QuestSequence reference259 = ref span395[num]; QuestSequence obj189 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list399 = new List(num2); - CollectionsMarshal.SetCount(list399, num2); - ref QuestStep reference260 = ref CollectionsMarshal.AsSpan(list399)[0]; + index2 = 1; + List list399 = new List(index2); + CollectionsMarshal.SetCount(list399, index2); + Span span399 = CollectionsMarshal.AsSpan(list399); + num2 = 0; + ref QuestStep reference260 = ref span399[num2]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 1053748u, new Vector3(392.44666f, 61.38526f, 325.82593f), 1186) { AethernetShortcut = new AethernetShortcut @@ -379225,10 +461332,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTheArcadion } }; - num3 = 1; - List list400 = new List(num3); - CollectionsMarshal.SetCount(list400, num3); - CollectionsMarshal.AsSpan(list400)[0] = new DialogueChoice + index3 = 1; + List list400 = new List(index3); + CollectionsMarshal.SetCount(list400, index3); + Span span400 = CollectionsMarshal.AsSpan(list400); + num3 = 0; + span400[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGRA204_05292_SYSTEM_100_141") @@ -379237,11 +461346,13 @@ public static class AssemblyQuestLoader reference260 = obj190; obj189.Steps = list399; reference259 = obj189; - span128[3] = new QuestSequence + num++; + span395[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference261 = ref span128[4]; + num++; + ref QuestSequence reference261 = ref span395[num]; QuestSequence obj191 = new QuestSequence { Sequence = 4 @@ -379249,7 +461360,9 @@ public static class AssemblyQuestLoader num2 = 1; List list401 = new List(num2); CollectionsMarshal.SetCount(list401, num2); - CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + Span span401 = CollectionsMarshal.AsSpan(list401); + index2 = 0; + span401[index2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -379258,19 +461371,23 @@ public static class AssemblyQuestLoader }; obj191.Steps = list401; reference261 = obj191; - span128[5] = new QuestSequence + num++; + span395[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference262 = ref span128[6]; + num++; + ref QuestSequence reference262 = ref span395[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list402 = new List(num2); - CollectionsMarshal.SetCount(list402, num2); - CollectionsMarshal.AsSpan(list402)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223) + index2 = 1; + List list402 = new List(index2); + CollectionsMarshal.SetCount(list402, index2); + Span span402 = CollectionsMarshal.AsSpan(list402); + num2 = 0; + span402[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223) { NextQuestId = new QuestId(5293) }; @@ -379283,13 +461400,16 @@ public static class AssemblyQuestLoader num = 1; List list403 = new List(num); CollectionsMarshal.SetCount(list403, num); - CollectionsMarshal.AsSpan(list403)[0] = "liza"; + Span span403 = CollectionsMarshal.AsSpan(list403); + index = 0; + span403[index] = "liza"; questRoot44.Author = list403; - num = 5; - List list404 = new List(num); - CollectionsMarshal.SetCount(list404, num); - Span span130 = CollectionsMarshal.AsSpan(list404); - ref QuestSequence reference263 = ref span130[0]; + index = 5; + List list404 = new List(index); + CollectionsMarshal.SetCount(list404, index); + Span span404 = CollectionsMarshal.AsSpan(list404); + num = 0; + ref QuestSequence reference263 = ref span404[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -379297,25 +461417,31 @@ public static class AssemblyQuestLoader num2 = 1; List list405 = new List(num2); CollectionsMarshal.SetCount(list405, num2); - CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); + Span span405 = CollectionsMarshal.AsSpan(list405); + index2 = 0; + span405[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); obj193.Steps = list405; reference263 = obj193; - ref QuestSequence reference264 = ref span130[1]; + num++; + ref QuestSequence reference264 = ref span404[num]; QuestSequence obj194 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list406 = new List(num2); - CollectionsMarshal.SetCount(list406, num2); - CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 1053750u, new Vector3(357.96143f, 89.921364f, -149.49268f), 1191) + index2 = 1; + List list406 = new List(index2); + CollectionsMarshal.SetCount(list406, index2); + Span span406 = CollectionsMarshal.AsSpan(list406); + num2 = 0; + span406[num2] = new QuestStep(EInteractionType.Interact, 1053750u, new Vector3(357.96143f, 89.921364f, -149.49268f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundYyasulaniStation }; obj194.Steps = list406; reference264 = obj194; - ref QuestSequence reference265 = ref span130[2]; + num++; + ref QuestSequence reference265 = ref span404[num]; QuestSequence obj195 = new QuestSequence { Sequence = 2 @@ -379323,19 +461449,23 @@ public static class AssemblyQuestLoader num2 = 1; List list407 = new List(num2); CollectionsMarshal.SetCount(list407, num2); - CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); + Span span407 = CollectionsMarshal.AsSpan(list407); + index2 = 0; + span407[index2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); obj195.Steps = list407; reference265 = obj195; - ref QuestSequence reference266 = ref span130[3]; + num++; + ref QuestSequence reference266 = ref span404[num]; QuestSequence obj196 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list408 = new List(num2); - CollectionsMarshal.SetCount(list408, num2); - Span span131 = CollectionsMarshal.AsSpan(list408); - ref QuestStep reference267 = ref span131[0]; + index2 = 2; + List list408 = new List(index2); + CollectionsMarshal.SetCount(list408, index2); + Span span408 = CollectionsMarshal.AsSpan(list408); + num2 = 0; + ref QuestStep reference267 = ref span408[num2]; QuestStep obj197 = new QuestStep(EInteractionType.Interact, 2013725u, new Vector3(4.0740967f, 0.8086548f, 10.574402f), 1223) { TargetTerritoryId = (ushort)1186 @@ -379345,12 +461475,15 @@ public static class AssemblyQuestLoader num3 = 1; List list409 = new List(num3); CollectionsMarshal.SetCount(list409, num3); - CollectionsMarshal.AsSpan(list409)[0] = 1223; + Span span409 = CollectionsMarshal.AsSpan(list409); + index3 = 0; + span409[index3] = 1223; skipStepConditions6.NotInTerritory = list409; skipConditions8.StepIf = skipStepConditions6; obj197.SkipConditions = skipConditions8; reference267 = obj197; - span131[1] = new QuestStep(EInteractionType.Interact, 1053751u, new Vector3(-296.4676f, 9.520004f, 27.328857f), 1186) + num2++; + span408[num2] = new QuestStep(EInteractionType.Interact, 1053751u, new Vector3(-296.4676f, 9.520004f, 27.328857f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -379360,7 +461493,8 @@ public static class AssemblyQuestLoader }; obj196.Steps = list408; reference266 = obj196; - ref QuestSequence reference268 = ref span130[4]; + num++; + ref QuestSequence reference268 = ref span404[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue @@ -379368,8 +461502,9 @@ public static class AssemblyQuestLoader num2 = 2; List list410 = new List(num2); CollectionsMarshal.SetCount(list410, num2); - Span span132 = CollectionsMarshal.AsSpan(list410); - span132[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) + Span span410 = CollectionsMarshal.AsSpan(list410); + index2 = 0; + span410[index2] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224, AethernetShortcut = new AethernetShortcut @@ -379378,7 +461513,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTheArcadion } }; - span132[1] = new QuestStep(EInteractionType.CompleteQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224) + index2++; + span410[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224) { NextQuestId = new QuestId(5294) }; @@ -379391,24 +461527,30 @@ public static class AssemblyQuestLoader num = 1; List list411 = new List(num); CollectionsMarshal.SetCount(list411, num); - CollectionsMarshal.AsSpan(list411)[0] = "liza"; + Span span411 = CollectionsMarshal.AsSpan(list411); + index = 0; + span411[index] = "liza"; questRoot45.Author = list411; - num = 5; - List list412 = new List(num); - CollectionsMarshal.SetCount(list412, num); - Span span133 = CollectionsMarshal.AsSpan(list412); - ref QuestSequence reference269 = ref span133[0]; + index = 5; + List list412 = new List(index); + CollectionsMarshal.SetCount(list412, index); + Span span412 = CollectionsMarshal.AsSpan(list412); + num = 0; + ref QuestSequence reference269 = ref span412[num]; QuestSequence obj199 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list413 = new List(num2); - CollectionsMarshal.SetCount(list413, num2); - CollectionsMarshal.AsSpan(list413)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224); + index2 = 1; + List list413 = new List(index2); + CollectionsMarshal.SetCount(list413, index2); + Span span413 = CollectionsMarshal.AsSpan(list413); + num2 = 0; + span413[num2] = new QuestStep(EInteractionType.AcceptQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224); obj199.Steps = list413; reference269 = obj199; - ref QuestSequence reference270 = ref span133[1]; + num++; + ref QuestSequence reference270 = ref span412[num]; QuestSequence obj200 = new QuestSequence { Sequence = 1 @@ -379416,7 +461558,9 @@ public static class AssemblyQuestLoader num2 = 1; List list414 = new List(num2); CollectionsMarshal.SetCount(list414, num2); - CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + Span span414 = CollectionsMarshal.AsSpan(list414); + index2 = 0; + span414[index2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -379425,21 +461569,25 @@ public static class AssemblyQuestLoader }; obj200.Steps = list414; reference270 = obj200; - ref QuestSequence reference271 = ref span133[2]; + num++; + ref QuestSequence reference271 = ref span412[num]; QuestSequence obj201 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list415 = new List(num2); - CollectionsMarshal.SetCount(list415, num2); - CollectionsMarshal.AsSpan(list415)[0] = new QuestStep(EInteractionType.Interact, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) + index2 = 1; + List list415 = new List(index2); + CollectionsMarshal.SetCount(list415, index2); + Span span415 = CollectionsMarshal.AsSpan(list415); + num2 = 0; + span415[num2] = new QuestStep(EInteractionType.Interact, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) { StopDistance = 5f }; obj201.Steps = list415; reference271 = obj201; - ref QuestSequence reference272 = ref span133[3]; + num++; + ref QuestSequence reference272 = ref span412[num]; QuestSequence obj202 = new QuestSequence { Sequence = 3 @@ -379447,23 +461595,27 @@ public static class AssemblyQuestLoader num2 = 3; List list416 = new List(num2); CollectionsMarshal.SetCount(list416, num2); - Span span134 = CollectionsMarshal.AsSpan(list416); - ref QuestStep reference273 = ref span134[0]; + Span span416 = CollectionsMarshal.AsSpan(list416); + index2 = 0; + ref QuestStep reference273 = ref span416[index2]; QuestStep obj203 = new QuestStep(EInteractionType.Interact, 2013722u, new Vector3(-0.06517491f, 1.083085f, 8.115898f), 1224) { TargetTerritoryId = (ushort)1186 }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 1; - List list417 = new List(num3); - CollectionsMarshal.SetCount(list417, num3); - CollectionsMarshal.AsSpan(list417)[0] = 1224; + index3 = 1; + List list417 = new List(index3); + CollectionsMarshal.SetCount(list417, index3); + Span span417 = CollectionsMarshal.AsSpan(list417); + num3 = 0; + span417[num3] = 1224; skipStepConditions7.NotInTerritory = list417; skipConditions9.StepIf = skipStepConditions7; obj203.SkipConditions = skipConditions9; reference273 = obj203; - ref QuestStep reference274 = ref span134[1]; + index2++; + ref QuestStep reference274 = ref span416[index2]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 2013724u, new Vector3(498.34436f, 60.593506f, 129.13708f), 1186) { TargetTerritoryId = (ushort)1223, @@ -379478,39 +461630,47 @@ public static class AssemblyQuestLoader num3 = 1; List list418 = new List(num3); CollectionsMarshal.SetCount(list418, num3); - CollectionsMarshal.AsSpan(list418)[0] = 1223; + Span span418 = CollectionsMarshal.AsSpan(list418); + index3 = 0; + span418[index3] = 1223; skipStepConditions8.InTerritory = list418; skipConditions10.StepIf = skipStepConditions8; obj204.SkipConditions = skipConditions10; reference274 = obj204; - span134[2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); + index2++; + span416[index2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); obj202.Steps = list416; reference272 = obj202; - ref QuestSequence reference275 = ref span133[4]; + num++; + ref QuestSequence reference275 = ref span412[num]; QuestSequence obj205 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list419 = new List(num2); - CollectionsMarshal.SetCount(list419, num2); - Span span135 = CollectionsMarshal.AsSpan(list419); - ref QuestStep reference276 = ref span135[0]; + index2 = 2; + List list419 = new List(index2); + CollectionsMarshal.SetCount(list419, index2); + Span span419 = CollectionsMarshal.AsSpan(list419); + num2 = 0; + ref QuestStep reference276 = ref span419[num2]; QuestStep obj206 = new QuestStep(EInteractionType.Interact, 2013725u, new Vector3(4.074883f, 0.8100026f, 10.57586f), 1223) { TargetTerritoryId = (ushort)1186 }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 1; - List list420 = new List(num3); - CollectionsMarshal.SetCount(list420, num3); - CollectionsMarshal.AsSpan(list420)[0] = 1223; + index3 = 1; + List list420 = new List(index3); + CollectionsMarshal.SetCount(list420, index3); + Span span420 = CollectionsMarshal.AsSpan(list420); + num3 = 0; + span420[num3] = 1223; skipStepConditions9.NotInTerritory = list420; skipConditions11.StepIf = skipStepConditions9; obj206.SkipConditions = skipConditions11; reference276 = obj206; - span135[1] = new QuestStep(EInteractionType.CompleteQuest, 1050471u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + num2++; + span419[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050471u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { StopDistance = 7f }; @@ -379523,13 +461683,16 @@ public static class AssemblyQuestLoader num = 1; List list421 = new List(num); CollectionsMarshal.SetCount(list421, num); - CollectionsMarshal.AsSpan(list421)[0] = "Censored"; + Span span421 = CollectionsMarshal.AsSpan(list421); + index = 0; + span421[index] = "Censored"; questRoot46.Author = list421; - num = 10; - List list422 = new List(num); - CollectionsMarshal.SetCount(list422, num); - Span span136 = CollectionsMarshal.AsSpan(list422); - ref QuestSequence reference277 = ref span136[0]; + index = 10; + List list422 = new List(index); + CollectionsMarshal.SetCount(list422, index); + Span span422 = CollectionsMarshal.AsSpan(list422); + num = 0; + ref QuestSequence reference277 = ref span422[num]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -379537,8 +461700,9 @@ public static class AssemblyQuestLoader num2 = 2; List list423 = new List(num2); CollectionsMarshal.SetCount(list423, num2); - Span span137 = CollectionsMarshal.AsSpan(list423); - span137[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(311.757f, 70.0001f, -27.256859f), 1186) + Span span423 = CollectionsMarshal.AsSpan(list423); + index2 = 0; + span423[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(311.757f, 70.0001f, -27.256859f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -379568,21 +461732,25 @@ public static class AssemblyQuestLoader } } }; - span137[1] = new QuestStep(EInteractionType.AcceptQuest, 1051709u, new Vector3(307.6676f, 70.00009f, -26.962769f), 1186) + index2++; + span423[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051709u, new Vector3(307.6676f, 70.00009f, -26.962769f), 1186) { StopDistance = 5f }; obj207.Steps = list423; reference277 = obj207; - ref QuestSequence reference278 = ref span136[1]; + num++; + ref QuestSequence reference278 = ref span422[num]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list424 = new List(num2); - CollectionsMarshal.SetCount(list424, num2); - CollectionsMarshal.AsSpan(list424)[0] = new QuestStep(EInteractionType.Interact, 1053617u, new Vector3(-120.47003f, 2.2297163f, 207.50745f), 1186) + index2 = 1; + List list424 = new List(index2); + CollectionsMarshal.SetCount(list424, index2); + Span span424 = CollectionsMarshal.AsSpan(list424); + num2 = 0; + span424[num2] = new QuestStep(EInteractionType.Interact, 1053617u, new Vector3(-120.47003f, 2.2297163f, 207.50745f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -379592,7 +461760,8 @@ public static class AssemblyQuestLoader }; obj208.Steps = list424; reference278 = obj208; - ref QuestSequence reference279 = ref span136[2]; + num++; + ref QuestSequence reference279 = ref span422[num]; QuestSequence obj209 = new QuestSequence { Sequence = 2 @@ -379600,50 +461769,69 @@ public static class AssemblyQuestLoader num2 = 1; List list425 = new List(num2); CollectionsMarshal.SetCount(list425, num2); - CollectionsMarshal.AsSpan(list425)[0] = new QuestStep(EInteractionType.Interact, 1053617u, new Vector3(-120.47003f, 2.2297163f, 207.50745f), 1186); + Span span425 = CollectionsMarshal.AsSpan(list425); + index2 = 0; + span425[index2] = new QuestStep(EInteractionType.Interact, 1053617u, new Vector3(-120.47003f, 2.2297163f, 207.50745f), 1186); obj209.Steps = list425; reference279 = obj209; - ref QuestSequence reference280 = ref span136[3]; + num++; + ref QuestSequence reference280 = ref span422[num]; QuestSequence obj210 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list426 = new List(num2); - CollectionsMarshal.SetCount(list426, num2); - Span span138 = CollectionsMarshal.AsSpan(list426); - ref QuestStep reference281 = ref span138[0]; + index2 = 3; + List list426 = new List(index2); + CollectionsMarshal.SetCount(list426, index2); + Span span426 = CollectionsMarshal.AsSpan(list426); + num2 = 0; + ref QuestStep reference281 = ref span426[num2]; QuestStep questStep60 = new QuestStep(EInteractionType.Interact, 1053619u, new Vector3(-127.244995f, 2.199962f, 236.71313f), 1186); num3 = 6; List list427 = new List(num3); CollectionsMarshal.SetCount(list427, num3); - Span span139 = CollectionsMarshal.AsSpan(list427); - span139[0] = null; - span139[1] = null; - span139[2] = null; - span139[3] = null; - span139[4] = null; - span139[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span427 = CollectionsMarshal.AsSpan(list427); + index3 = 0; + span427[index3] = null; + index3++; + span427[index3] = null; + index3++; + span427[index3] = null; + index3++; + span427[index3] = null; + index3++; + span427[index3] = null; + index3++; + span427[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep60.CompletionQuestVariablesFlags = list427; reference281 = questStep60; - ref QuestStep reference282 = ref span138[1]; + num2++; + ref QuestStep reference282 = ref span426[num2]; QuestStep questStep61 = new QuestStep(EInteractionType.Interact, 1053620u, new Vector3(-172.80847f, 2.2299733f, 207.96509f), 1186); - num3 = 6; - List list428 = new List(num3); - CollectionsMarshal.SetCount(list428, num3); - Span span140 = CollectionsMarshal.AsSpan(list428); - span140[0] = null; - span140[1] = null; - span140[2] = null; - span140[3] = null; - span140[4] = null; - span140[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list428 = new List(index3); + CollectionsMarshal.SetCount(list428, index3); + Span span428 = CollectionsMarshal.AsSpan(list428); + num3 = 0; + span428[num3] = null; + num3++; + span428[num3] = null; + num3++; + span428[num3] = null; + num3++; + span428[num3] = null; + num3++; + span428[num3] = null; + num3++; + span428[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep61.CompletionQuestVariablesFlags = list428; reference282 = questStep61; - span138[2] = new QuestStep(EInteractionType.Interact, 1053621u, new Vector3(-262.77563f, 2.1999757f, 236.25537f), 1186); + num2++; + span426[num2] = new QuestStep(EInteractionType.Interact, 1053621u, new Vector3(-262.77563f, 2.1999757f, 236.25537f), 1186); obj210.Steps = list426; reference280 = obj210; - ref QuestSequence reference283 = ref span136[4]; + num++; + ref QuestSequence reference283 = ref span422[num]; QuestSequence obj211 = new QuestSequence { Sequence = 4 @@ -379651,21 +461839,27 @@ public static class AssemblyQuestLoader num2 = 1; List list429 = new List(num2); CollectionsMarshal.SetCount(list429, num2); - CollectionsMarshal.AsSpan(list429)[0] = new QuestStep(EInteractionType.Interact, 1053626u, new Vector3(-323.26245f, 13.999997f, 178.0575f), 1186); + Span span429 = CollectionsMarshal.AsSpan(list429); + index2 = 0; + span429[index2] = new QuestStep(EInteractionType.Interact, 1053626u, new Vector3(-323.26245f, 13.999997f, 178.0575f), 1186); obj211.Steps = list429; reference283 = obj211; - ref QuestSequence reference284 = ref span136[5]; + num++; + ref QuestSequence reference284 = ref span422[num]; QuestSequence obj212 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list430 = new List(num2); - CollectionsMarshal.SetCount(list430, num2); - CollectionsMarshal.AsSpan(list430)[0] = new QuestStep(EInteractionType.Interact, 1053623u, new Vector3(-252.21643f, 2.199965f, 257.95374f), 1186); + index2 = 1; + List list430 = new List(index2); + CollectionsMarshal.SetCount(list430, index2); + Span span430 = CollectionsMarshal.AsSpan(list430); + num2 = 0; + span430[num2] = new QuestStep(EInteractionType.Interact, 1053623u, new Vector3(-252.21643f, 2.199965f, 257.95374f), 1186); obj212.Steps = list430; reference284 = obj212; - ref QuestSequence reference285 = ref span136[6]; + num++; + ref QuestSequence reference285 = ref span422[num]; QuestSequence obj213 = new QuestSequence { Sequence = 6 @@ -379673,7 +461867,9 @@ public static class AssemblyQuestLoader num2 = 1; List list431 = new List(num2); CollectionsMarshal.SetCount(list431, num2); - ref QuestStep reference286 = ref CollectionsMarshal.AsSpan(list431)[0]; + Span span431 = CollectionsMarshal.AsSpan(list431); + index2 = 0; + ref QuestStep reference286 = ref span431[index2]; QuestStep obj214 = new QuestStep(EInteractionType.Interact, 1053627u, new Vector3(-580.22437f, -0.89430946f, -521.5991f), 1191) { Fly = true, @@ -379682,7 +461878,9 @@ public static class AssemblyQuestLoader num3 = 1; List list432 = new List(num3); CollectionsMarshal.SetCount(list432, num3); - CollectionsMarshal.AsSpan(list432)[0] = new DialogueChoice + Span span432 = CollectionsMarshal.AsSpan(list432); + index3 = 0; + span432[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CHRHDB921_05295_SYSTEM_000_122") @@ -379691,18 +461889,22 @@ public static class AssemblyQuestLoader reference286 = obj214; obj213.Steps = list431; reference285 = obj213; - ref QuestSequence reference287 = ref span136[7]; + num++; + ref QuestSequence reference287 = ref span422[num]; QuestSequence obj215 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list433 = new List(num2); - CollectionsMarshal.SetCount(list433, num2); - CollectionsMarshal.AsSpan(list433)[0] = new QuestStep(EInteractionType.Interact, 1053630u, new Vector3(96.75745f, 12.03999f, 144.48767f), 1254); + index2 = 1; + List list433 = new List(index2); + CollectionsMarshal.SetCount(list433, index2); + Span span433 = CollectionsMarshal.AsSpan(list433); + num2 = 0; + span433[num2] = new QuestStep(EInteractionType.Interact, 1053630u, new Vector3(96.75745f, 12.03999f, 144.48767f), 1254); obj215.Steps = list433; reference287 = obj215; - ref QuestSequence reference288 = ref span136[8]; + num++; + ref QuestSequence reference288 = ref span422[num]; QuestSequence obj216 = new QuestSequence { Sequence = 8 @@ -379710,47 +461912,65 @@ public static class AssemblyQuestLoader num2 = 3; List list434 = new List(num2); CollectionsMarshal.SetCount(list434, num2); - Span span141 = CollectionsMarshal.AsSpan(list434); - ref QuestStep reference289 = ref span141[0]; + Span span434 = CollectionsMarshal.AsSpan(list434); + index2 = 0; + ref QuestStep reference289 = ref span434[index2]; QuestStep questStep62 = new QuestStep(EInteractionType.Interact, 2014622u, new Vector3(97.70349f, 12.588623f, 127.885864f), 1254); - num3 = 6; - List list435 = new List(num3); - CollectionsMarshal.SetCount(list435, num3); - Span span142 = CollectionsMarshal.AsSpan(list435); - span142[0] = null; - span142[1] = null; - span142[2] = null; - span142[3] = null; - span142[4] = null; - span142[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list435 = new List(index3); + CollectionsMarshal.SetCount(list435, index3); + Span span435 = CollectionsMarshal.AsSpan(list435); + num3 = 0; + span435[num3] = null; + num3++; + span435[num3] = null; + num3++; + span435[num3] = null; + num3++; + span435[num3] = null; + num3++; + span435[num3] = null; + num3++; + span435[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep62.CompletionQuestVariablesFlags = list435; reference289 = questStep62; - ref QuestStep reference290 = ref span141[1]; + index2++; + ref QuestStep reference290 = ref span434[index2]; QuestStep questStep63 = new QuestStep(EInteractionType.Interact, 2014623u, new Vector3(66.9718f, 13.534729f, 96.69641f), 1254); num3 = 6; List list436 = new List(num3); CollectionsMarshal.SetCount(list436, num3); - Span span143 = CollectionsMarshal.AsSpan(list436); - span143[0] = null; - span143[1] = null; - span143[2] = null; - span143[3] = null; - span143[4] = null; - span143[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span436 = CollectionsMarshal.AsSpan(list436); + index3 = 0; + span436[index3] = null; + index3++; + span436[index3] = null; + index3++; + span436[index3] = null; + index3++; + span436[index3] = null; + index3++; + span436[index3] = null; + index3++; + span436[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep63.CompletionQuestVariablesFlags = list436; reference290 = questStep63; - span141[2] = new QuestStep(EInteractionType.Interact, 2014624u, new Vector3(104.14282f, 12.924377f, 4.9591064f), 1254); + index2++; + span434[index2] = new QuestStep(EInteractionType.Interact, 2014624u, new Vector3(104.14282f, 12.924377f, 4.9591064f), 1254); obj216.Steps = list434; reference288 = obj216; - ref QuestSequence reference291 = ref span136[9]; + num++; + ref QuestSequence reference291 = ref span422[num]; QuestSequence obj217 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list437 = new List(num2); - CollectionsMarshal.SetCount(list437, num2); - CollectionsMarshal.AsSpan(list437)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053633u, new Vector3(81.49841f, 12.039999f, 48.02002f), 1254) + index2 = 1; + List list437 = new List(index2); + CollectionsMarshal.SetCount(list437, index2); + Span span437 = CollectionsMarshal.AsSpan(list437); + num2 = 0; + span437[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053633u, new Vector3(81.49841f, 12.039999f, 48.02002f), 1254) { NextQuestId = new QuestId(5296) }; @@ -379763,13 +461983,16 @@ public static class AssemblyQuestLoader num = 1; List list438 = new List(num); CollectionsMarshal.SetCount(list438, num); - CollectionsMarshal.AsSpan(list438)[0] = "Censored"; + Span span438 = CollectionsMarshal.AsSpan(list438); + index = 0; + span438[index] = "Censored"; questRoot47.Author = list438; - num = 7; - List list439 = new List(num); - CollectionsMarshal.SetCount(list439, num); - Span span144 = CollectionsMarshal.AsSpan(list439); - ref QuestSequence reference292 = ref span144[0]; + index = 7; + List list439 = new List(index); + CollectionsMarshal.SetCount(list439, index); + Span span439 = CollectionsMarshal.AsSpan(list439); + num = 0; + ref QuestSequence reference292 = ref span439[num]; QuestSequence obj218 = new QuestSequence { Sequence = 0 @@ -379777,18 +462000,23 @@ public static class AssemblyQuestLoader num2 = 1; List list440 = new List(num2); CollectionsMarshal.SetCount(list440, num2); - CollectionsMarshal.AsSpan(list440)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053634u, new Vector3(90.22656f, 12.03999f, 147.08167f), 1254); + Span span440 = CollectionsMarshal.AsSpan(list440); + index2 = 0; + span440[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053634u, new Vector3(90.22656f, 12.03999f, 147.08167f), 1254); obj218.Steps = list440; reference292 = obj218; - ref QuestSequence reference293 = ref span144[1]; + num++; + ref QuestSequence reference293 = ref span439[num]; QuestSequence obj219 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list441 = new List(num2); - CollectionsMarshal.SetCount(list441, num2); - CollectionsMarshal.AsSpan(list441)[0] = new QuestStep(EInteractionType.Interact, 1053637u, new Vector3(232.47119f, 50.749866f, 210.193f), 1186) + index2 = 1; + List list441 = new List(index2); + CollectionsMarshal.SetCount(list441, index2); + Span span441 = CollectionsMarshal.AsSpan(list441); + num2 = 0; + span441[num2] = new QuestStep(EInteractionType.Interact, 1053637u, new Vector3(232.47119f, 50.749866f, 210.193f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -379799,7 +462027,8 @@ public static class AssemblyQuestLoader }; obj219.Steps = list441; reference293 = obj219; - ref QuestSequence reference294 = ref span144[2]; + num++; + ref QuestSequence reference294 = ref span439[num]; QuestSequence obj220 = new QuestSequence { Sequence = 2 @@ -379807,24 +462036,30 @@ public static class AssemblyQuestLoader num2 = 1; List list442 = new List(num2); CollectionsMarshal.SetCount(list442, num2); - CollectionsMarshal.AsSpan(list442)[0] = new QuestStep(EInteractionType.Interact, 1053641u, new Vector3(-255.51239f, 26.1f, 103.04407f), 1191) + Span span442 = CollectionsMarshal.AsSpan(list442); + index2 = 0; + span442[index2] = new QuestStep(EInteractionType.Interact, 1053641u, new Vector3(-255.51239f, 26.1f, 103.04407f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundElectropeStrike }; obj220.Steps = list442; reference294 = obj220; - ref QuestSequence reference295 = ref span144[3]; + num++; + ref QuestSequence reference295 = ref span439[num]; QuestSequence obj221 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list443 = new List(num2); - CollectionsMarshal.SetCount(list443, num2); - CollectionsMarshal.AsSpan(list443)[0] = new QuestStep(EInteractionType.Interact, 1053646u, new Vector3(-91.66095f, 46.00767f, 390.64624f), 1191); + index2 = 1; + List list443 = new List(index2); + CollectionsMarshal.SetCount(list443, index2); + Span span443 = CollectionsMarshal.AsSpan(list443); + num2 = 0; + span443[num2] = new QuestStep(EInteractionType.Interact, 1053646u, new Vector3(-91.66095f, 46.00767f, 390.64624f), 1191); obj221.Steps = list443; reference295 = obj221; - ref QuestSequence reference296 = ref span144[4]; + num++; + ref QuestSequence reference296 = ref span439[num]; QuestSequence obj222 = new QuestSequence { Sequence = 4 @@ -379832,15 +462067,19 @@ public static class AssemblyQuestLoader num2 = 1; List list444 = new List(num2); CollectionsMarshal.SetCount(list444, num2); - ref QuestStep reference297 = ref CollectionsMarshal.AsSpan(list444)[0]; + Span span444 = CollectionsMarshal.AsSpan(list444); + index2 = 0; + ref QuestStep reference297 = ref span444[index2]; QuestStep obj223 = new QuestStep(EInteractionType.Interact, 1053649u, new Vector3(113.63391f, 83.57817f, 552.20874f), 1191) { Fly = true }; - num3 = 1; - List list445 = new List(num3); - CollectionsMarshal.SetCount(list445, num3); - CollectionsMarshal.AsSpan(list445)[0] = new DialogueChoice + index3 = 1; + List list445 = new List(index3); + CollectionsMarshal.SetCount(list445, index3); + Span span445 = CollectionsMarshal.AsSpan(list445); + num3 = 0; + span445[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB922_05296_Q1_000_000"), @@ -379850,21 +462089,25 @@ public static class AssemblyQuestLoader reference297 = obj223; obj222.Steps = list444; reference296 = obj222; - ref QuestSequence reference298 = ref span144[5]; + num++; + ref QuestSequence reference298 = ref span439[num]; QuestSequence obj224 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list446 = new List(num2); - CollectionsMarshal.SetCount(list446, num2); - CollectionsMarshal.AsSpan(list446)[0] = new QuestStep(EInteractionType.Interact, 1053650u, new Vector3(175.95166f, 83.2133f, 652.64355f), 1191) + index2 = 1; + List list446 = new List(index2); + CollectionsMarshal.SetCount(list446, index2); + Span span446 = CollectionsMarshal.AsSpan(list446); + num2 = 0; + span446[num2] = new QuestStep(EInteractionType.Interact, 1053650u, new Vector3(175.95166f, 83.2133f, 652.64355f), 1191) { Fly = true }; obj224.Steps = list446; reference298 = obj224; - ref QuestSequence reference299 = ref span144[6]; + num++; + ref QuestSequence reference299 = ref span439[num]; QuestSequence obj225 = new QuestSequence { Sequence = byte.MaxValue @@ -379872,7 +462115,9 @@ public static class AssemblyQuestLoader num2 = 1; List list447 = new List(num2); CollectionsMarshal.SetCount(list447, num2); - CollectionsMarshal.AsSpan(list447)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053652u, new Vector3(236.62158f, 50.749947f, 209.97937f), 1186) + Span span447 = CollectionsMarshal.AsSpan(list447); + index2 = 0; + span447[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053652u, new Vector3(236.62158f, 50.749947f, 209.97937f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -379891,23 +462136,28 @@ public static class AssemblyQuestLoader num = 1; List list448 = new List(num); CollectionsMarshal.SetCount(list448, num); - CollectionsMarshal.AsSpan(list448)[0] = "WigglyMuffin"; + Span span448 = CollectionsMarshal.AsSpan(list448); + index = 0; + span448[index] = "WigglyMuffin"; questRoot48.Author = list448; questRoot48.IsSeasonalQuest = true; questRoot48.SeasonalQuestExpiry = new DateTime(2025, 9, 11, 0, 0, 0, DateTimeKind.Utc); - num = 4; - List list449 = new List(num); - CollectionsMarshal.SetCount(list449, num); - Span span145 = CollectionsMarshal.AsSpan(list449); - ref QuestSequence reference300 = ref span145[0]; + index = 4; + List list449 = new List(index); + CollectionsMarshal.SetCount(list449, index); + Span span449 = CollectionsMarshal.AsSpan(list449); + num = 0; + ref QuestSequence reference300 = ref span449[num]; QuestSequence obj226 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list450 = new List(num2); - CollectionsMarshal.SetCount(list450, num2); - ref QuestStep reference301 = ref CollectionsMarshal.AsSpan(list450)[0]; + index2 = 1; + List list450 = new List(index2); + CollectionsMarshal.SetCount(list450, index2); + Span span450 = CollectionsMarshal.AsSpan(list450); + num2 = 0; + ref QuestStep reference301 = ref span450[num2]; QuestStep obj227 = new QuestStep(EInteractionType.AcceptQuest, 1053660u, new Vector3(3.5552979f, 44.499996f, 125.62744f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -379925,14 +462175,17 @@ public static class AssemblyQuestLoader num3 = 1; List list451 = new List(num3); CollectionsMarshal.SetCount(list451, num3); - CollectionsMarshal.AsSpan(list451)[0] = 128; + Span span451 = CollectionsMarshal.AsSpan(list451); + index3 = 0; + span451[index3] = 128; obj228.InTerritory = list451; skipConditions12.AetheryteShortcutIf = obj228; obj227.SkipConditions = skipConditions12; reference301 = obj227; obj226.Steps = list450; reference300 = obj226; - ref QuestSequence reference302 = ref span145[1]; + num++; + ref QuestSequence reference302 = ref span449[num]; QuestSequence obj229 = new QuestSequence { Sequence = 1 @@ -379940,26 +462193,32 @@ public static class AssemblyQuestLoader num2 = 1; List list452 = new List(num2); CollectionsMarshal.SetCount(list452, num2); - CollectionsMarshal.AsSpan(list452)[0] = new QuestStep(EInteractionType.Interact, 1001024u, new Vector3(28.519043f, 44.499977f, 176.3789f), 128); + Span span452 = CollectionsMarshal.AsSpan(list452); + index2 = 0; + span452[index2] = new QuestStep(EInteractionType.Interact, 1001024u, new Vector3(28.519043f, 44.499977f, 176.3789f), 128); obj229.Steps = list452; reference302 = obj229; - ref QuestSequence reference303 = ref span145[2]; + num++; + ref QuestSequence reference303 = ref span449[num]; QuestSequence obj230 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list453 = new List(num2); - CollectionsMarshal.SetCount(list453, num2); - Span span146 = CollectionsMarshal.AsSpan(list453); - span146[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.724976f, 44.5f, 186.5f), 128); - span146[1] = new QuestStep(EInteractionType.Interact, 1053662u, new Vector3(-32.425476f, 71.50164f, 135.91211f), 135) + index2 = 2; + List list453 = new List(index2); + CollectionsMarshal.SetCount(list453, index2); + Span span453 = CollectionsMarshal.AsSpan(list453); + num2 = 0; + span453[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.724976f, 44.5f, 186.5f), 128); + num2++; + span453[num2] = new QuestStep(EInteractionType.Interact, 1053662u, new Vector3(-32.425476f, 71.50164f, 135.91211f), 135) { Mount = true }; obj230.Steps = list453; reference303 = obj230; - ref QuestSequence reference304 = ref span145[3]; + num++; + ref QuestSequence reference304 = ref span449[num]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue @@ -379967,7 +462226,9 @@ public static class AssemblyQuestLoader num2 = 1; List list454 = new List(num2); CollectionsMarshal.SetCount(list454, num2); - CollectionsMarshal.AsSpan(list454)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053663u, new Vector3(-34.01245f, 71.548134f, 135.63745f), 135) + Span span454 = CollectionsMarshal.AsSpan(list454); + index2 = 0; + span454[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053663u, new Vector3(-34.01245f, 71.548134f, 135.63745f), 135) { NextQuestId = new QuestId(5298) }; @@ -379980,23 +462241,28 @@ public static class AssemblyQuestLoader num = 1; List list455 = new List(num); CollectionsMarshal.SetCount(list455, num); - CollectionsMarshal.AsSpan(list455)[0] = "WigglyMuffin"; + Span span455 = CollectionsMarshal.AsSpan(list455); + index = 0; + span455[index] = "WigglyMuffin"; questRoot49.Author = list455; questRoot49.IsSeasonalQuest = true; questRoot49.SeasonalQuestExpiry = new DateTime(2025, 9, 11, 0, 0, 0, DateTimeKind.Utc); - num = 8; - List list456 = new List(num); - CollectionsMarshal.SetCount(list456, num); - Span span147 = CollectionsMarshal.AsSpan(list456); - ref QuestSequence reference305 = ref span147[0]; + index = 8; + List list456 = new List(index); + CollectionsMarshal.SetCount(list456, index); + Span span456 = CollectionsMarshal.AsSpan(list456); + num = 0; + ref QuestSequence reference305 = ref span456[num]; QuestSequence obj232 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list457 = new List(num2); - CollectionsMarshal.SetCount(list457, num2); - ref QuestStep reference306 = ref CollectionsMarshal.AsSpan(list457)[0]; + index2 = 1; + List list457 = new List(index2); + CollectionsMarshal.SetCount(list457, index2); + Span span457 = CollectionsMarshal.AsSpan(list457); + num2 = 0; + ref QuestStep reference306 = ref span457[num2]; QuestStep obj233 = new QuestStep(EInteractionType.AcceptQuest, 1053663u, new Vector3(-34.01245f, 71.548134f, 135.63745f), 135) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -380011,17 +462277,20 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list458 = new List(num3); - CollectionsMarshal.SetCount(list458, num3); - CollectionsMarshal.AsSpan(list458)[0] = 135; + index3 = 1; + List list458 = new List(index3); + CollectionsMarshal.SetCount(list458, index3); + Span span458 = CollectionsMarshal.AsSpan(list458); + num3 = 0; + span458[num3] = 135; obj234.InTerritory = list458; skipConditions13.AetheryteShortcutIf = obj234; obj233.SkipConditions = skipConditions13; reference306 = obj233; obj232.Steps = list457; reference305 = obj232; - ref QuestSequence reference307 = ref span147[1]; + num++; + ref QuestSequence reference307 = ref span456[num]; QuestSequence obj235 = new QuestSequence { Sequence = 1 @@ -380029,21 +462298,26 @@ public static class AssemblyQuestLoader num2 = 1; List list459 = new List(num2); CollectionsMarshal.SetCount(list459, num2); - CollectionsMarshal.AsSpan(list459)[0] = new QuestStep(EInteractionType.Interact, 1053666u, new Vector3(184.40515f, 32.156242f, 112.962524f), 135) + Span span459 = CollectionsMarshal.AsSpan(list459); + index2 = 0; + span459[index2] = new QuestStep(EInteractionType.Interact, 1053666u, new Vector3(184.40515f, 32.156242f, 112.962524f), 135) { Fly = true }; obj235.Steps = list459; reference307 = obj235; - ref QuestSequence reference308 = ref span147[2]; + num++; + ref QuestSequence reference308 = ref span456[num]; QuestSequence obj236 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list460 = new List(num2); - CollectionsMarshal.SetCount(list460, num2); - ref QuestStep reference309 = ref CollectionsMarshal.AsSpan(list460)[0]; + index2 = 1; + List list460 = new List(index2); + CollectionsMarshal.SetCount(list460, index2); + Span span460 = CollectionsMarshal.AsSpan(list460); + num2 = 0; + ref QuestStep reference309 = ref span460[num2]; QuestStep obj237 = new QuestStep(EInteractionType.Interact, 1053667u, new Vector3(76.24927f, 71.28403f, 366.3844f), 135) { Fly = true @@ -380051,7 +462325,9 @@ public static class AssemblyQuestLoader num3 = 1; List list461 = new List(num3); CollectionsMarshal.SetCount(list461, num3); - CollectionsMarshal.AsSpan(list461)[0] = new DialogueChoice + Span span461 = CollectionsMarshal.AsSpan(list461); + index3 = 0; + span461[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESANX102_05298_Q50_000_001"), @@ -380061,7 +462337,8 @@ public static class AssemblyQuestLoader reference309 = obj237; obj236.Steps = list460; reference308 = obj236; - ref QuestSequence reference310 = ref span147[3]; + num++; + ref QuestSequence reference310 = ref span456[num]; QuestSequence obj238 = new QuestSequence { Sequence = 3 @@ -380069,27 +462346,33 @@ public static class AssemblyQuestLoader num2 = 1; List list462 = new List(num2); CollectionsMarshal.SetCount(list462, num2); - CollectionsMarshal.AsSpan(list462)[0] = new QuestStep(EInteractionType.Interact, 1053669u, new Vector3(-43.47296f, 55.10932f, 488.1819f), 135) + Span span462 = CollectionsMarshal.AsSpan(list462); + index2 = 0; + span462[index2] = new QuestStep(EInteractionType.Interact, 1053669u, new Vector3(-43.47296f, 55.10932f, 488.1819f), 135) { Fly = true }; obj238.Steps = list462; reference310 = obj238; - ref QuestSequence reference311 = ref span147[4]; + num++; + ref QuestSequence reference311 = ref span456[num]; QuestSequence obj239 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list463 = new List(num2); - CollectionsMarshal.SetCount(list463, num2); - CollectionsMarshal.AsSpan(list463)[0] = new QuestStep(EInteractionType.Interact, 1053671u, new Vector3(6.6071167f, 44.311028f, 797.3906f), 135) + index2 = 1; + List list463 = new List(index2); + CollectionsMarshal.SetCount(list463, index2); + Span span463 = CollectionsMarshal.AsSpan(list463); + num2 = 0; + span463[num2] = new QuestStep(EInteractionType.Interact, 1053671u, new Vector3(6.6071167f, 44.311028f, 797.3906f), 135) { Fly = true }; obj239.Steps = list463; reference311 = obj239; - ref QuestSequence reference312 = ref span147[5]; + num++; + ref QuestSequence reference312 = ref span456[num]; QuestSequence obj240 = new QuestSequence { Sequence = 5 @@ -380097,32 +462380,38 @@ public static class AssemblyQuestLoader num2 = 2; List list464 = new List(num2); CollectionsMarshal.SetCount(list464, num2); - Span span148 = CollectionsMarshal.AsSpan(list464); - span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(134.80649f, 58.968193f, 935.78265f), 135) + Span span464 = CollectionsMarshal.AsSpan(list464); + index2 = 0; + span464[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(134.80649f, 58.968193f, 935.78265f), 135) { Fly = true }; - span148[1] = new QuestStep(EInteractionType.Interact, 1002445u, new Vector3(136.82764f, 58.937588f, 937.43787f), 135) + index2++; + span464[index2] = new QuestStep(EInteractionType.Interact, 1002445u, new Vector3(136.82764f, 58.937588f, 937.43787f), 135) { Land = true }; obj240.Steps = list464; reference312 = obj240; - ref QuestSequence reference313 = ref span147[6]; + num++; + ref QuestSequence reference313 = ref span456[num]; QuestSequence obj241 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list465 = new List(num2); - CollectionsMarshal.SetCount(list465, num2); - CollectionsMarshal.AsSpan(list465)[0] = new QuestStep(EInteractionType.Interact, 1053676u, new Vector3(24.39917f, 44.499973f, 163.07312f), 128) + index2 = 1; + List list465 = new List(index2); + CollectionsMarshal.SetCount(list465, index2); + Span span465 = CollectionsMarshal.AsSpan(list465); + num2 = 0; + span465[num2] = new QuestStep(EInteractionType.Interact, 1053676u, new Vector3(24.39917f, 44.499973f, 163.07312f), 128) { Fly = true }; obj241.Steps = list465; reference313 = obj241; - ref QuestSequence reference314 = ref span147[7]; + num++; + ref QuestSequence reference314 = ref span456[num]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue @@ -380130,7 +462419,9 @@ public static class AssemblyQuestLoader num2 = 1; List list466 = new List(num2); CollectionsMarshal.SetCount(list466, num2); - CollectionsMarshal.AsSpan(list466)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053677u, new Vector3(-178.4848f, 40.99994f, 185.44287f), 128); + Span span466 = CollectionsMarshal.AsSpan(list466); + index2 = 0; + span466[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053677u, new Vector3(-178.4848f, 40.99994f, 185.44287f), 128); obj242.Steps = list466; reference314 = obj242; questRoot49.QuestSequence = list456; @@ -380140,22 +462431,26 @@ public static class AssemblyQuestLoader num = 1; List list467 = new List(num); CollectionsMarshal.SetCount(list467, num); - CollectionsMarshal.AsSpan(list467)[0] = "liza"; + Span span467 = CollectionsMarshal.AsSpan(list467); + index = 0; + span467[index] = "liza"; questRoot50.Author = list467; - num = 5; - List list468 = new List(num); - CollectionsMarshal.SetCount(list468, num); - Span span149 = CollectionsMarshal.AsSpan(list468); - ref QuestSequence reference315 = ref span149[0]; + index = 5; + List list468 = new List(index); + CollectionsMarshal.SetCount(list468, index); + Span span468 = CollectionsMarshal.AsSpan(list468); + num = 0; + ref QuestSequence reference315 = ref span468[num]; QuestSequence obj243 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list469 = new List(num2); - CollectionsMarshal.SetCount(list469, num2); - Span span150 = CollectionsMarshal.AsSpan(list469); - ref QuestStep reference316 = ref span150[0]; + index2 = 2; + List list469 = new List(index2); + CollectionsMarshal.SetCount(list469, index2); + Span span469 = CollectionsMarshal.AsSpan(list469); + num2 = 0; + ref QuestStep reference316 = ref span469[num2]; QuestStep obj244 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, @@ -380168,28 +462463,34 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions14 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 1; - List list470 = new List(num3); - CollectionsMarshal.SetCount(list470, num3); - CollectionsMarshal.AsSpan(list470)[0] = 1207; + index3 = 1; + List list470 = new List(index3); + CollectionsMarshal.SetCount(list470, index3); + Span span470 = CollectionsMarshal.AsSpan(list470); + num3 = 0; + span470[num3] = 1207; skipStepConditions10.InTerritory = list470; skipConditions14.StepIf = skipStepConditions10; SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); num3 = 1; List list471 = new List(num3); CollectionsMarshal.SetCount(list471, num3); - CollectionsMarshal.AsSpan(list471)[0] = 1207; + Span span471 = CollectionsMarshal.AsSpan(list471); + index3 = 0; + span471[index3] = 1207; skipAetheryteCondition3.InTerritory = list471; skipConditions14.AetheryteShortcutIf = skipAetheryteCondition3; obj244.SkipConditions = skipConditions14; reference316 = obj244; - span150[1] = new QuestStep(EInteractionType.AcceptQuest, 1052483u, new Vector3(-4.8982544f, -6.439014E-08f, 8.926453f), 1207) + num2++; + span469[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052483u, new Vector3(-4.8982544f, -6.439014E-08f, 8.926453f), 1207) { StopDistance = 7f }; obj243.Steps = list469; reference315 = obj243; - ref QuestSequence reference317 = ref span149[1]; + num++; + ref QuestSequence reference317 = ref span468[num]; QuestSequence obj245 = new QuestSequence { Sequence = 1 @@ -380197,12 +462498,16 @@ public static class AssemblyQuestLoader num2 = 1; List list472 = new List(num2); CollectionsMarshal.SetCount(list472, num2); - ref QuestStep reference318 = ref CollectionsMarshal.AsSpan(list472)[0]; + Span span472 = CollectionsMarshal.AsSpan(list472); + index2 = 0; + ref QuestStep reference318 = ref span472[index2]; QuestStep questStep64 = new QuestStep(EInteractionType.Interact, 2014751u, new Vector3(-19.699463f, 2.7008667f, -30.258667f), 1207); - num3 = 1; - List list473 = new List(num3); - CollectionsMarshal.SetCount(list473, num3); - CollectionsMarshal.AsSpan(list473)[0] = new DialogueChoice + index3 = 1; + List list473 = new List(index3); + CollectionsMarshal.SetCount(list473, index3); + Span span473 = CollectionsMarshal.AsSpan(list473); + num3 = 0; + span473[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMH101_05299_SYSTEM_000_031") @@ -380211,25 +462516,30 @@ public static class AssemblyQuestLoader reference318 = questStep64; obj245.Steps = list472; reference317 = obj245; - span149[2] = new QuestSequence + num++; + span468[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference319 = ref span149[3]; + num++; + ref QuestSequence reference319 = ref span468[num]; QuestSequence obj246 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list474 = new List(num2); - CollectionsMarshal.SetCount(list474, num2); - CollectionsMarshal.AsSpan(list474)[0] = new QuestStep(EInteractionType.Interact, 1053810u, new Vector3(5.7526245f, 0.49999905f, 3.40271f), 1268) + index2 = 1; + List list474 = new List(index2); + CollectionsMarshal.SetCount(list474, index2); + Span span474 = CollectionsMarshal.AsSpan(list474); + num2 = 0; + span474[num2] = new QuestStep(EInteractionType.Interact, 1053810u, new Vector3(5.7526245f, 0.49999905f, 3.40271f), 1268) { StopDistance = 7f }; obj246.Steps = list474; reference319 = obj246; - ref QuestSequence reference320 = ref span149[4]; + num++; + ref QuestSequence reference320 = ref span468[num]; QuestSequence obj247 = new QuestSequence { Sequence = byte.MaxValue @@ -380237,7 +462547,9 @@ public static class AssemblyQuestLoader num2 = 1; List list475 = new List(num2); CollectionsMarshal.SetCount(list475, num2); - CollectionsMarshal.AsSpan(list475)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054140u, new Vector3(5.203247f, 0.025f, 2.304016f), 1268) + Span span475 = CollectionsMarshal.AsSpan(list475); + index2 = 0; + span475[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054140u, new Vector3(5.203247f, 0.025f, 2.304016f), 1268) { StopDistance = 7f }; @@ -380254,13 +462566,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "liza"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "liza"; questRoot.Author = list; - num = 5; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 5; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -380268,22 +462583,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054140u, new Vector3(5.203247f, 0.025f, 2.304016f), 1268) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054140u, new Vector3(5.203247f, 0.025f, 2.304016f), 1268) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - ref QuestStep reference3 = ref span2[0]; + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + ref QuestStep reference3 = ref span4[num2]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 2014672u, new Vector3(17.19253f, 0.9405764f, 8.082603f), 1268) { TargetTerritoryId = (ushort)1207 @@ -380293,15 +462612,19 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = 1268; + Span span5 = CollectionsMarshal.AsSpan(list5); + int index3 = 0; + span5[index3] = 1268; skipStepConditions.NotInTerritory = list5; skipConditions.StepIf = skipStepConditions; obj3.SkipConditions = skipConditions; reference3 = obj3; - span2[1] = new QuestStep(EInteractionType.Interact, 2014674u, new Vector3(-4.4404297f, -0.015319824f, 8.895996f), 1207); + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 2014674u, new Vector3(-4.4404297f, -0.015319824f, 8.895996f), 1207); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference4 = ref span[2]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -380309,23 +462632,27 @@ public static class AssemblyQuestLoader num2 = 2; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span3 = CollectionsMarshal.AsSpan(list6); - ref QuestStep reference5 = ref span3[0]; + Span span6 = CollectionsMarshal.AsSpan(list6); + index2 = 0; + ref QuestStep reference5 = ref span6[index2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.01455665f, 1f, 16.05096f), 1207) { TargetTerritoryId = (ushort)1186 }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = 1207; + index3 = 1; + List list7 = new List(index3); + CollectionsMarshal.SetCount(list7, index3); + Span span7 = CollectionsMarshal.AsSpan(list7); + num3 = 0; + span7[num3] = 1207; skipStepConditions2.NotInTerritory = list7; skipConditions2.StepIf = skipStepConditions2; obj5.SkipConditions = skipConditions2; reference5 = obj5; - ref QuestStep reference6 = ref span3[1]; + index2++; + ref QuestStep reference6 = ref span6[index2]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1053820u, new Vector3(0.59503174f, -6.0500035f, 226.6117f), 1186) { AethernetShortcut = new AethernetShortcut @@ -380337,36 +462664,46 @@ public static class AssemblyQuestLoader num3 = 1; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - CollectionsMarshal.AsSpan(list8)[0] = new DialogueChoice + Span span8 = CollectionsMarshal.AsSpan(list8); + index3 = 0; + span8[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMH102_05300_Q1_000_034") }; obj6.DialogueChoices = list8; - num3 = 4; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - Span span4 = CollectionsMarshal.AsSpan(list9); - span4[0] = 0u; - span4[1] = 1u; - span4[2] = 2u; - span4[3] = 3u; + index3 = 4; + List list9 = new List(index3); + CollectionsMarshal.SetCount(list9, index3); + Span span9 = CollectionsMarshal.AsSpan(list9); + num3 = 0; + span9[num3] = 0u; + num3++; + span9[num3] = 1u; + num3++; + span9[num3] = 2u; + num3++; + span9[num3] = 3u; obj6.PointMenuChoices = list9; reference6 = obj6; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference7 = ref span[3]; + num++; + ref QuestSequence reference7 = ref span2[num]; QuestSequence obj7 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1053824u, new Vector3(-0.25946045f, -6.050004f, 223.55994f), 1186); + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.Interact, 1053824u, new Vector3(-0.25946045f, -6.050004f, 223.55994f), 1186); obj7.Steps = list10; reference7 = obj7; - ref QuestSequence reference8 = ref span[4]; + num++; + ref QuestSequence reference8 = ref span2[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue @@ -380374,7 +462711,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053827u, new Vector3(-306.0807f, 10.0149355f, 1.8157349f), 1186) + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053827u, new Vector3(-306.0807f, 10.0149355f, 1.8157349f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -380391,27 +462730,33 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "liza"; + Span span12 = CollectionsMarshal.AsSpan(list12); + index = 0; + span12[index] = "liza"; questRoot2.Author = list12; - num = 6; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span5 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference9 = ref span5[0]; + index = 6; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference9 = ref span13[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053830u, new Vector3(-343.31274f, 10.014645f, -11.703674f), 1186) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.AcceptQuest, 1053830u, new Vector3(-343.31274f, 10.014645f, -11.703674f), 1186) { StopDistance = 5f }; obj9.Steps = list14; reference9 = obj9; - ref QuestSequence reference10 = ref span5[1]; + num++; + ref QuestSequence reference10 = ref span13[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 @@ -380419,7 +462764,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1053835u, new Vector3(312.73352f, 70.00006f, 10.72699f), 1186) + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.Interact, 1053835u, new Vector3(312.73352f, 70.00006f, 10.72699f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -380429,22 +462776,26 @@ public static class AssemblyQuestLoader }; obj10.Steps = list15; reference10 = obj10; - ref QuestSequence reference11 = ref span5[2]; + num++; + ref QuestSequence reference11 = ref span13[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Emote, 1053838u, new Vector3(313.74072f, 70.00006f, 9.811523f), 1186) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.Emote, 1053838u, new Vector3(313.74072f, 70.00006f, 9.811523f), 1186) { StopDistance = 5f, Emote = EEmote.Rally }; obj11.Steps = list16; reference11 = obj11; - ref QuestSequence reference12 = ref span5[3]; + num++; + ref QuestSequence reference12 = ref span13[num]; QuestSequence obj12 = new QuestSequence { Sequence = 3 @@ -380452,66 +462803,91 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1053839u, new Vector3(311.39075f, 70.00006f, 10.421875f), 1186) + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.Interact, 1053839u, new Vector3(311.39075f, 70.00006f, 10.421875f), 1186) { StopDistance = 7f }; obj12.Steps = list17; reference12 = obj12; - ref QuestSequence reference13 = ref span5[4]; + num++; + ref QuestSequence reference13 = ref span13[num]; QuestSequence obj13 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); - Span span6 = CollectionsMarshal.AsSpan(list18); - ref QuestStep reference14 = ref span6[0]; + index2 = 3; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num2 = 0; + ref QuestStep reference14 = ref span18[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1053841u, new Vector3(343.34326f, 50.75f, 190.05103f), 1186); num3 = 6; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - Span span7 = CollectionsMarshal.AsSpan(list19); - span7[0] = null; - span7[1] = null; - span7[2] = null; - span7[3] = null; - span7[4] = null; - span7[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span19 = CollectionsMarshal.AsSpan(list19); + index3 = 0; + span19[index3] = null; + index3++; + span19[index3] = null; + index3++; + span19[index3] = null; + index3++; + span19[index3] = null; + index3++; + span19[index3] = null; + index3++; + span19[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep.CompletionQuestVariablesFlags = list19; reference14 = questStep; - ref QuestStep reference15 = ref span6[1]; + num2++; + ref QuestStep reference15 = ref span18[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1053843u, new Vector3(350.1183f, 50.75f, 244.80042f), 1186); - num3 = 6; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span8 = CollectionsMarshal.AsSpan(list20); - span8[0] = null; - span8[1] = null; - span8[2] = null; - span8[3] = null; - span8[4] = null; - span8[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list20 = new List(index3); + CollectionsMarshal.SetCount(list20, index3); + Span span20 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + span20[num3] = null; + num3++; + span20[num3] = null; + num3++; + span20[num3] = null; + num3++; + span20[num3] = null; + num3++; + span20[num3] = null; + num3++; + span20[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list20; reference15 = questStep2; - ref QuestStep reference16 = ref span6[2]; + num2++; + ref QuestStep reference16 = ref span18[num2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1053842u, new Vector3(380.84985f, 52.25f, 235.21777f), 1186); num3 = 6; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span9 = CollectionsMarshal.AsSpan(list21); - span9[0] = null; - span9[1] = null; - span9[2] = null; - span9[3] = null; - span9[4] = null; - span9[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span21 = CollectionsMarshal.AsSpan(list21); + index3 = 0; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = null; + index3++; + span21[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list21; reference16 = questStep3; obj13.Steps = list18; reference13 = obj13; - ref QuestSequence reference17 = ref span5[5]; + num++; + ref QuestSequence reference17 = ref span13[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -380519,7 +462895,9 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053844u, new Vector3(241.01624f, 50.75f, 273.91467f), 1186); + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053844u, new Vector3(241.01624f, 50.75f, 273.91467f), 1186); obj14.Steps = list22; reference17 = obj14; questRoot2.QuestSequence = list13; @@ -380529,27 +462907,33 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - CollectionsMarshal.AsSpan(list23)[0] = "liza"; + Span span23 = CollectionsMarshal.AsSpan(list23); + index = 0; + span23[index] = "liza"; questRoot3.Author = list23; - num = 5; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); - Span span10 = CollectionsMarshal.AsSpan(list24); - ref QuestSequence reference18 = ref span10[0]; + index = 5; + List list24 = new List(index); + CollectionsMarshal.SetCount(list24, index); + Span span24 = CollectionsMarshal.AsSpan(list24); + num = 0; + ref QuestSequence reference18 = ref span24[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list25 = new List(num2); - CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053845u, new Vector3(239.88696f, 50.749996f, 273.9757f), 1186) + index2 = 1; + List list25 = new List(index2); + CollectionsMarshal.SetCount(list25, index2); + Span span25 = CollectionsMarshal.AsSpan(list25); + num2 = 0; + span25[num2] = new QuestStep(EInteractionType.AcceptQuest, 1053845u, new Vector3(239.88696f, 50.749996f, 273.9757f), 1186) { StopDistance = 5f }; obj15.Steps = list25; reference18 = obj15; - ref QuestSequence reference19 = ref span10[1]; + num++; + ref QuestSequence reference19 = ref span24[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -380557,21 +462941,27 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1053847u, new Vector3(314.62573f, 70.00009f, 0.7476196f), 1186); + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.Interact, 1053847u, new Vector3(314.62573f, 70.00009f, 0.7476196f), 1186); obj16.Steps = list26; reference19 = obj16; - ref QuestSequence reference20 = ref span10[2]; + num++; + ref QuestSequence reference20 = ref span24[num]; QuestSequence obj17 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1053851u, new Vector3(351.70508f, 60f, 78.446655f), 1186); + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.Interact, 1053851u, new Vector3(351.70508f, 60f, 78.446655f), 1186); obj17.Steps = list27; reference20 = obj17; - ref QuestSequence reference21 = ref span10[3]; + num++; + ref QuestSequence reference21 = ref span24[num]; QuestSequence obj18 = new QuestSequence { Sequence = 3 @@ -380579,7 +462969,9 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 2014675u, new Vector3(270.83228f, 50.736206f, 123.00293f), 1186) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.Interact, 2014675u, new Vector3(270.83228f, 50.736206f, 123.00293f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -380589,15 +462981,18 @@ public static class AssemblyQuestLoader }; obj18.Steps = list28; reference21 = obj18; - ref QuestSequence reference22 = ref span10[4]; + num++; + ref QuestSequence reference22 = ref span24[num]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053857u, new Vector3(271.10706f, 50.749996f, 186.05322f), 1186) + index2 = 1; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053857u, new Vector3(271.10706f, 50.749996f, 186.05322f), 1186) { StopDistance = 5f }; @@ -380610,13 +463005,16 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = "liza"; + Span span30 = CollectionsMarshal.AsSpan(list30); + index = 0; + span30[index] = "liza"; questRoot4.Author = list30; - num = 3; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span11 = CollectionsMarshal.AsSpan(list31); - ref QuestSequence reference23 = ref span11[0]; + index = 3; + List list31 = new List(index); + CollectionsMarshal.SetCount(list31, index); + Span span31 = CollectionsMarshal.AsSpan(list31); + num = 0; + ref QuestSequence reference23 = ref span31[num]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -380624,40 +463022,48 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053857u, new Vector3(271.10706f, 50.749996f, 186.05322f), 1186) + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053857u, new Vector3(271.10706f, 50.749996f, 186.05322f), 1186) { StopDistance = 5f }; obj20.Steps = list32; reference23 = obj20; - ref QuestSequence reference24 = ref span11[1]; + num++; + ref QuestSequence reference24 = ref span31[num]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - Span span12 = CollectionsMarshal.AsSpan(list33); - ref QuestStep reference25 = ref span12[0]; + index2 = 2; + List list33 = new List(index2); + CollectionsMarshal.SetCount(list33, index2); + Span span33 = CollectionsMarshal.AsSpan(list33); + num2 = 0; + ref QuestStep reference25 = ref span33[num2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207 }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 1; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - CollectionsMarshal.AsSpan(list34)[0] = 1207; + index3 = 1; + List list34 = new List(index3); + CollectionsMarshal.SetCount(list34, index3); + Span span34 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + span34[num3] = 1207; skipStepConditions3.InTerritory = list34; skipConditions3.StepIf = skipStepConditions3; obj22.SkipConditions = skipConditions3; reference25 = obj22; - span12[1] = new QuestStep(EInteractionType.Interact, 1053860u, new Vector3(-4.348877f, -4.3092264E-08f, 6.576599f), 1207); + num2++; + span33[num2] = new QuestStep(EInteractionType.Interact, 1053860u, new Vector3(-4.348877f, -4.3092264E-08f, 6.576599f), 1207); obj21.Steps = list33; reference24 = obj21; - ref QuestSequence reference26 = ref span11[2]; + num++; + ref QuestSequence reference26 = ref span31[num]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -380665,7 +463071,9 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053864u, new Vector3(-2.456726f, -7.357661E-08f, 9.109558f), 1207); + Span span35 = CollectionsMarshal.AsSpan(list35); + index2 = 0; + span35[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053864u, new Vector3(-2.456726f, -7.357661E-08f, 9.109558f), 1207); obj23.Steps = list35; reference26 = obj23; questRoot4.QuestSequence = list31; @@ -380675,27 +463083,33 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - CollectionsMarshal.AsSpan(list36)[0] = "liza"; + Span span36 = CollectionsMarshal.AsSpan(list36); + index = 0; + span36[index] = "liza"; questRoot5.Author = list36; - num = 6; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - Span span13 = CollectionsMarshal.AsSpan(list37); - ref QuestSequence reference27 = ref span13[0]; + index = 6; + List list37 = new List(index); + CollectionsMarshal.SetCount(list37, index); + Span span37 = CollectionsMarshal.AsSpan(list37); + num = 0; + ref QuestSequence reference27 = ref span37[num]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048161u, new Vector3(-5.874817f, -3.618828E-08f, 6.8512573f), 1207) + index2 = 1; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048161u, new Vector3(-5.874817f, -3.618828E-08f, 6.8512573f), 1207) { StopDistance = 7f }; obj24.Steps = list38; reference27 = obj24; - ref QuestSequence reference28 = ref span13[1]; + num++; + ref QuestSequence reference28 = ref span37[num]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -380703,8 +463117,9 @@ public static class AssemblyQuestLoader num2 = 2; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span14 = CollectionsMarshal.AsSpan(list39); - ref QuestStep reference29 = ref span14[0]; + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + ref QuestStep reference29 = ref span39[index2]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.01455665f, 1f, 16.05096f), 1207) { TargetTerritoryId = (ushort)1186 @@ -380714,12 +463129,15 @@ public static class AssemblyQuestLoader num3 = 1; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - CollectionsMarshal.AsSpan(list40)[0] = 1207; + Span span40 = CollectionsMarshal.AsSpan(list40); + index3 = 0; + span40[index3] = 1207; skipStepConditions4.NotInTerritory = list40; skipConditions4.StepIf = skipStepConditions4; obj26.SkipConditions = skipConditions4; reference29 = obj26; - span14[1] = new QuestStep(EInteractionType.Interact, 1053865u, new Vector3(-70.72565f, 42.8066f, -546.95966f), 1186) + index2++; + span39[index2] = new QuestStep(EInteractionType.Interact, 1053865u, new Vector3(-70.72565f, 42.8066f, -546.95966f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -380729,15 +463147,18 @@ public static class AssemblyQuestLoader }; obj25.Steps = list39; reference28 = obj25; - ref QuestSequence reference30 = ref span13[2]; + num++; + ref QuestSequence reference30 = ref span37[num]; QuestSequence obj27 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Duty, null, null, 1186) + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num2 = 0; + span41[num2] = new QuestStep(EInteractionType.Duty, null, null, 1186) { DutyOptions = new DutyOptions { @@ -380747,11 +463168,13 @@ public static class AssemblyQuestLoader }; obj27.Steps = list41; reference30 = obj27; - span13[3] = new QuestSequence + num++; + span37[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference31 = ref span13[4]; + num++; + ref QuestSequence reference31 = ref span37[num]; QuestSequence obj28 = new QuestSequence { Sequence = 4 @@ -380759,7 +463182,9 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Duty, null, null, 1275) + Span span42 = CollectionsMarshal.AsSpan(list42); + index2 = 0; + span42[index2] = new QuestStep(EInteractionType.Duty, null, null, 1275) { DutyOptions = new DutyOptions { @@ -380768,15 +463193,18 @@ public static class AssemblyQuestLoader }; obj28.Steps = list42; reference31 = obj28; - ref QuestSequence reference32 = ref span13[5]; + num++; + ref QuestSequence reference32 = ref span37[num]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053873u, new Vector3(0.015197754f, 0f, 20.645447f), 1274) + index2 = 1; + List list43 = new List(index2); + CollectionsMarshal.SetCount(list43, index2); + Span span43 = CollectionsMarshal.AsSpan(list43); + num2 = 0; + span43[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053873u, new Vector3(0.015197754f, 0f, 20.645447f), 1274) { StopDistance = 5f }; @@ -380789,13 +463217,16 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - CollectionsMarshal.AsSpan(list44)[0] = "liza"; + Span span44 = CollectionsMarshal.AsSpan(list44); + index = 0; + span44[index] = "liza"; questRoot6.Author = list44; - num = 5; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span15 = CollectionsMarshal.AsSpan(list45); - ref QuestSequence reference33 = ref span15[0]; + index = 5; + List list45 = new List(index); + CollectionsMarshal.SetCount(list45, index); + Span span45 = CollectionsMarshal.AsSpan(list45); + num = 0; + ref QuestSequence reference33 = ref span45[num]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -380803,27 +463234,33 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053873u, new Vector3(0.015197754f, 0f, 20.645447f), 1274) + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053873u, new Vector3(0.015197754f, 0f, 20.645447f), 1274) { StopDistance = 5f }; obj30.Steps = list46; reference33 = obj30; - ref QuestSequence reference34 = ref span15[1]; + num++; + ref QuestSequence reference34 = ref span45[num]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list47 = new List(num2); - CollectionsMarshal.SetCount(list47, num2); - CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1053864u, new Vector3(-2.456726f, -7.35766E-08f, 9.109558f), 1207) + index2 = 1; + List list47 = new List(index2); + CollectionsMarshal.SetCount(list47, index2); + Span span47 = CollectionsMarshal.AsSpan(list47); + num2 = 0; + span47[num2] = new QuestStep(EInteractionType.Interact, 1053864u, new Vector3(-2.456726f, -7.35766E-08f, 9.109558f), 1207) { StopDistance = 5f }; obj31.Steps = list47; reference34 = obj31; - ref QuestSequence reference35 = ref span15[2]; + num++; + ref QuestSequence reference35 = ref span45[num]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -380831,21 +463268,27 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 2014733u, new Vector3(0.015197754f, -0.4730835f, -0.38153076f), 1207); + Span span48 = CollectionsMarshal.AsSpan(list48); + index2 = 0; + span48[index2] = new QuestStep(EInteractionType.Interact, 2014733u, new Vector3(0.015197754f, -0.4730835f, -0.38153076f), 1207); obj32.Steps = list48; reference35 = obj32; - ref QuestSequence reference36 = ref span15[3]; + num++; + ref QuestSequence reference36 = ref span45[num]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1053864u, new Vector3(-2.456726f, -7.35766E-08f, 9.109558f), 1207); + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + span49[num2] = new QuestStep(EInteractionType.Interact, 1053864u, new Vector3(-2.456726f, -7.35766E-08f, 9.109558f), 1207); obj33.Steps = list49; reference36 = obj33; - ref QuestSequence reference37 = ref span15[4]; + num++; + ref QuestSequence reference37 = ref span45[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -380853,23 +463296,27 @@ public static class AssemblyQuestLoader num2 = 4; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span16 = CollectionsMarshal.AsSpan(list50); - ref QuestStep reference38 = ref span16[0]; + Span span50 = CollectionsMarshal.AsSpan(list50); + index2 = 0; + ref QuestStep reference38 = ref span50[index2]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.015319824f, 0.99176025f, 16.03717f), 1207) { TargetTerritoryId = (ushort)1186 }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num3 = 1; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = 1207; + index3 = 1; + List list51 = new List(index3); + CollectionsMarshal.SetCount(list51, index3); + Span span51 = CollectionsMarshal.AsSpan(list51); + num3 = 0; + span51[num3] = 1207; skipStepConditions5.NotInTerritory = list51; skipConditions5.StepIf = skipStepConditions5; obj35.SkipConditions = skipConditions5; reference38 = obj35; - span16[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-404.58365f, 14.029998f, 272.07394f), 1186) + index2++; + span50[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-404.58365f, 14.029998f, 272.07394f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -380877,11 +463324,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineResidentialSector } }; - span16[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-409.75183f, 13.499982f, 269.15036f), 1186) + index2++; + span50[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-409.75183f, 13.499982f, 269.15036f), 1186) { DisableNavmesh = true }; - span16[3] = new QuestStep(EInteractionType.CompleteQuest, 1053874u, new Vector3(-402.48724f, 13.699979f, 240.98572f), 1186); + index2++; + span50[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053874u, new Vector3(-402.48724f, 13.699979f, 240.98572f), 1186); obj34.Steps = list50; reference37 = obj34; questRoot6.QuestSequence = list45; @@ -380891,24 +463340,30 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "liza"; + Span span52 = CollectionsMarshal.AsSpan(list52); + index = 0; + span52[index] = "liza"; questRoot7.Author = list52; - num = 6; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span17 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference39 = ref span17[0]; + index = 6; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + Span span53 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference39 = ref span53[num]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053878u, new Vector3(-403.3418f, 14.029999f, 272.9381f), 1186); + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.AcceptQuest, 1053878u, new Vector3(-403.3418f, 14.029999f, 272.9381f), 1186); obj36.Steps = list54; reference39 = obj36; - ref QuestSequence reference40 = ref span17[1]; + num++; + ref QuestSequence reference40 = ref span53[num]; QuestSequence obj37 = new QuestSequence { Sequence = 1 @@ -380916,21 +463371,26 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1053881u, new Vector3(-240.89423f, 30f, -595.36127f), 1191) + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + span55[index2] = new QuestStep(EInteractionType.Interact, 1053881u, new Vector3(-240.89423f, 30f, -595.36127f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj37.Steps = list55; reference40 = obj37; - ref QuestSequence reference41 = ref span17[2]; + num++; + ref QuestSequence reference41 = ref span53[num]; QuestSequence obj38 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - ref QuestStep reference42 = ref CollectionsMarshal.AsSpan(list56)[0]; + index2 = 1; + List list56 = new List(index2); + CollectionsMarshal.SetCount(list56, index2); + Span span56 = CollectionsMarshal.AsSpan(list56); + num2 = 0; + ref QuestStep reference42 = ref span56[num2]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, null, new Vector3(205.08792f, 86.3551f, -419.18634f), 1191) { StopDistance = 0.5f, @@ -380940,14 +463400,17 @@ public static class AssemblyQuestLoader num3 = 2; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span18 = CollectionsMarshal.AsSpan(list57); - span18[0] = 18476u; - span18[1] = 18477u; + Span span57 = CollectionsMarshal.AsSpan(list57); + index3 = 0; + span57[index3] = 18476u; + index3++; + span57[index3] = 18477u; obj39.KillEnemyDataIds = list57; reference42 = obj39; obj38.Steps = list56; reference41 = obj38; - ref QuestSequence reference43 = ref span17[3]; + num++; + ref QuestSequence reference43 = ref span53[num]; QuestSequence obj40 = new QuestSequence { Sequence = 3 @@ -380955,24 +463418,30 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1053885u, new Vector3(204.21143f, 86.28118f, -420.09613f), 1191); + Span span58 = CollectionsMarshal.AsSpan(list58); + index2 = 0; + span58[index2] = new QuestStep(EInteractionType.Interact, 1053885u, new Vector3(204.21143f, 86.28118f, -420.09613f), 1191); obj40.Steps = list58; reference43 = obj40; - ref QuestSequence reference44 = ref span17[4]; + num++; + ref QuestSequence reference44 = ref span53[num]; QuestSequence obj41 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1053890u, new Vector3(-242.45062f, 29.999998f, -575.3109f), 1191) + index2 = 1; + List list59 = new List(index2); + CollectionsMarshal.SetCount(list59, index2); + Span span59 = CollectionsMarshal.AsSpan(list59); + num2 = 0; + span59[num2] = new QuestStep(EInteractionType.Interact, 1053890u, new Vector3(-242.45062f, 29.999998f, -575.3109f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj41.Steps = list59; reference44 = obj41; - ref QuestSequence reference45 = ref span17[5]; + num++; + ref QuestSequence reference45 = ref span53[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -380980,7 +463449,9 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054150u, new Vector3(-5.9052734f, -3.5390258E-08f, 6.790222f), 1207); + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054150u, new Vector3(-5.9052734f, -3.5390258E-08f, 6.790222f), 1207); obj42.Steps = list60; reference45 = obj42; questRoot7.QuestSequence = list53; @@ -380990,21 +463461,26 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "liza"; + Span span61 = CollectionsMarshal.AsSpan(list61); + index = 0; + span61[index] = "liza"; questRoot8.Author = list61; - num = 4; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span19 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference46 = ref span19[0]; + index = 4; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + Span span62 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference46 = ref span62[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list63 = new List(num2); - CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053732u, new Vector3(153.70398f, -17.9645f, 95.56726f), 1185) + index2 = 1; + List list63 = new List(index2); + CollectionsMarshal.SetCount(list63, index2); + Span span63 = CollectionsMarshal.AsSpan(list63); + num2 = 0; + span63[num2] = new QuestStep(EInteractionType.AcceptQuest, 1053732u, new Vector3(153.70398f, -17.9645f, 95.56726f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -381017,7 +463493,8 @@ public static class AssemblyQuestLoader }; obj43.Steps = list63; reference46 = obj43; - ref QuestSequence reference47 = ref span19[1]; + num++; + ref QuestSequence reference47 = ref span62[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -381025,24 +463502,30 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1053732u, new Vector3(153.70398f, -17.9645f, 95.56726f), 1185); + Span span64 = CollectionsMarshal.AsSpan(list64); + index2 = 0; + span64[index2] = new QuestStep(EInteractionType.Interact, 1053732u, new Vector3(153.70398f, -17.9645f, 95.56726f), 1185); obj44.Steps = list64; reference47 = obj44; - ref QuestSequence reference48 = ref span19[2]; + num++; + ref QuestSequence reference48 = ref span62[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1053732u, new Vector3(9.3022995f, -10.00001f, 57.288975f), 1185) + index2 = 1; + List list65 = new List(index2); + CollectionsMarshal.SetCount(list65, index2); + Span span65 = CollectionsMarshal.AsSpan(list65); + num2 = 0; + span65[num2] = new QuestStep(EInteractionType.Interact, 1053732u, new Vector3(9.3022995f, -10.00001f, 57.288975f), 1185) { StopDistance = 0.5f }; obj45.Steps = list65; reference48 = obj45; - ref QuestSequence reference49 = ref span19[3]; + num++; + ref QuestSequence reference49 = ref span62[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue @@ -381050,7 +463533,9 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053739u, new Vector3(2.1514893f, -10.00001f, 56.137817f), 1185); + Span span66 = CollectionsMarshal.AsSpan(list66); + index2 = 0; + span66[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053739u, new Vector3(2.1514893f, -10.00001f, 56.137817f), 1185); obj46.Steps = list66; reference49 = obj46; questRoot8.QuestSequence = list62; @@ -381060,21 +463545,26 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "liza"; + Span span67 = CollectionsMarshal.AsSpan(list67); + index = 0; + span67[index] = "liza"; questRoot9.Author = list67; - num = 8; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span20 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference50 = ref span20[0]; + index = 8; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + Span span68 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference50 = ref span68[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038915u, new Vector3(188.06738f, -17.9643f, 43.289795f), 1185) + index2 = 1; + List list69 = new List(index2); + CollectionsMarshal.SetCount(list69, index2); + Span span69 = CollectionsMarshal.AsSpan(list69); + num2 = 0; + span69[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038915u, new Vector3(188.06738f, -17.9643f, 43.289795f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -381092,7 +463582,8 @@ public static class AssemblyQuestLoader }; obj47.Steps = list69; reference50 = obj47; - ref QuestSequence reference51 = ref span20[1]; + num++; + ref QuestSequence reference51 = ref span68[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 @@ -381100,23 +463591,30 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1038967u, new Vector3(206.68335f, -17.9645f, 62.607666f), 1185); + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.Interact, 1038967u, new Vector3(206.68335f, -17.9645f, 62.607666f), 1185); obj48.Steps = list70; reference51 = obj48; - ref QuestSequence reference52 = ref span20[2]; + num++; + ref QuestSequence reference52 = ref span68[num]; QuestSequence obj49 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list71 = new List(num2); - CollectionsMarshal.SetCount(list71, num2); - ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list71)[0]; + index2 = 1; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + ref QuestStep reference53 = ref span71[num2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1038967u, new Vector3(206.68335f, -17.9645f, 62.607666f), 1185); - num3 = 1; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - CollectionsMarshal.AsSpan(list72)[0] = new DialogueChoice + index3 = 1; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + Span span72 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span72[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGKD001_05309_SYSTEM_000_201") @@ -381125,11 +463623,13 @@ public static class AssemblyQuestLoader reference53 = questStep4; obj49.Steps = list71; reference52 = obj49; - span20[3] = new QuestSequence + num++; + span68[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference54 = ref span20[4]; + num++; + ref QuestSequence reference54 = ref span68[num]; QuestSequence obj50 = new QuestSequence { Sequence = 4 @@ -381137,81 +463637,114 @@ public static class AssemblyQuestLoader num2 = 4; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span21 = CollectionsMarshal.AsSpan(list73); - ref QuestStep reference55 = ref span21[0]; + Span span73 = CollectionsMarshal.AsSpan(list73); + index2 = 0; + ref QuestStep reference55 = ref span73[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1042454u, new Vector3(33.554565f, 18.511625f, 6.362976f), 1277); num3 = 6; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - Span span22 = CollectionsMarshal.AsSpan(list74); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span74 = CollectionsMarshal.AsSpan(list74); + index3 = 0; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = null; + index3++; + span74[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list74; reference55 = questStep5; - ref QuestStep reference56 = ref span21[1]; + index2++; + ref QuestStep reference56 = ref span73[index2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1042894u, new Vector3(16.281311f, 16.35219f, -10.666138f), 1277); - num3 = 6; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - Span span23 = CollectionsMarshal.AsSpan(list75); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span75 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = null; + num3++; + span75[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list75; reference56 = questStep6; - ref QuestStep reference57 = ref span21[2]; + index2++; + ref QuestStep reference57 = ref span73[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1046341u, new Vector3(0.38146973f, 16.34722f, -6.4240723f), 1277); num3 = 6; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span24 = CollectionsMarshal.AsSpan(list76); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span76 = CollectionsMarshal.AsSpan(list76); + index3 = 0; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = null; + index3++; + span76[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep7.CompletionQuestVariablesFlags = list76; reference57 = questStep7; - ref QuestStep reference58 = ref span21[3]; + index2++; + ref QuestStep reference58 = ref span73[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1046350u, new Vector3(-18.509216f, 16.352419f, 3.40271f), 1277); - num3 = 6; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - Span span25 = CollectionsMarshal.AsSpan(list77); - span25[0] = null; - span25[1] = null; - span25[2] = null; - span25[3] = null; - span25[4] = null; - span25[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list77 = new List(index3); + CollectionsMarshal.SetCount(list77, index3); + Span span77 = CollectionsMarshal.AsSpan(list77); + num3 = 0; + span77[num3] = null; + num3++; + span77[num3] = null; + num3++; + span77[num3] = null; + num3++; + span77[num3] = null; + num3++; + span77[num3] = null; + num3++; + span77[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep8.CompletionQuestVariablesFlags = list77; reference58 = questStep8; obj50.Steps = list73; reference54 = obj50; - ref QuestSequence reference59 = ref span20[5]; + num++; + ref QuestSequence reference59 = ref span68[num]; QuestSequence obj51 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1039720u, new Vector3(32.822144f, 18.355127f, -3.402832f), 1277); + index2 = 1; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num2 = 0; + span78[num2] = new QuestStep(EInteractionType.Interact, 1039720u, new Vector3(32.822144f, 18.355127f, -3.402832f), 1277); obj51.Steps = list78; reference59 = obj51; - span20[6] = new QuestSequence + num++; + span68[num] = new QuestSequence { Sequence = 6 }; - ref QuestSequence reference60 = ref span20[7]; + num++; + ref QuestSequence reference60 = ref span68[num]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -381219,7 +463752,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052330u, new Vector3(46.066895f, 0f, -0.13739014f), 1269) + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052330u, new Vector3(46.066895f, 0f, -0.13739014f), 1269) { StopDistance = 5f, NextQuestId = new QuestId(5310) @@ -381233,27 +463768,33 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - CollectionsMarshal.AsSpan(list80)[0] = "liza"; + Span span80 = CollectionsMarshal.AsSpan(list80); + index = 0; + span80[index] = "liza"; questRoot10.Author = list80; - num = 3; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span26 = CollectionsMarshal.AsSpan(list81); - ref QuestSequence reference61 = ref span26[0]; + index = 3; + List list81 = new List(index); + CollectionsMarshal.SetCount(list81, index); + Span span81 = CollectionsMarshal.AsSpan(list81); + num = 0; + ref QuestSequence reference61 = ref span81[num]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052330u, new Vector3(46.066895f, 0f, -0.13739014f), 1269) + index2 = 1; + List list82 = new List(index2); + CollectionsMarshal.SetCount(list82, index2); + Span span82 = CollectionsMarshal.AsSpan(list82); + num2 = 0; + span82[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052330u, new Vector3(46.066895f, 0f, -0.13739014f), 1269) { StopDistance = 5f }; obj53.Steps = list82; reference61 = obj53; - ref QuestSequence reference62 = ref span26[1]; + num++; + ref QuestSequence reference62 = ref span81[num]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -381261,8 +463802,9 @@ public static class AssemblyQuestLoader num2 = 3; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span27 = CollectionsMarshal.AsSpan(list83); - ref QuestStep reference63 = ref span27[0]; + Span span83 = CollectionsMarshal.AsSpan(list83); + index2 = 0; + ref QuestStep reference63 = ref span83[index2]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 2014647u, new Vector3(34.01233f, 3.118126f, 32.39708f), 1269) { StopDistance = 4f, @@ -381271,54 +463813,77 @@ public static class AssemblyQuestLoader num3 = 6; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - Span span28 = CollectionsMarshal.AsSpan(list84); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span84 = CollectionsMarshal.AsSpan(list84); + index3 = 0; + span84[index3] = null; + index3++; + span84[index3] = null; + index3++; + span84[index3] = null; + index3++; + span84[index3] = null; + index3++; + span84[index3] = null; + index3++; + span84[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj55.CompletionQuestVariablesFlags = list84; reference63 = obj55; - ref QuestStep reference64 = ref span27[1]; + index2++; + ref QuestStep reference64 = ref span83[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2014645u, new Vector3(-37.70508f, 1.3274536f, -35.965576f), 1269); - num3 = 6; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - Span span29 = CollectionsMarshal.AsSpan(list85); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list85 = new List(index3); + CollectionsMarshal.SetCount(list85, index3); + Span span85 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span85[num3] = null; + num3++; + span85[num3] = null; + num3++; + span85[num3] = null; + num3++; + span85[num3] = null; + num3++; + span85[num3] = null; + num3++; + span85[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep9.CompletionQuestVariablesFlags = list85; reference64 = questStep9; - ref QuestStep reference65 = ref span27[2]; + index2++; + ref QuestStep reference65 = ref span83[index2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2014646u, new Vector3(10.391357f, 30.869019f, -69.04712f), 1269); num3 = 6; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span30 = CollectionsMarshal.AsSpan(list86); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span86 = CollectionsMarshal.AsSpan(list86); + index3 = 0; + span86[index3] = null; + index3++; + span86[index3] = null; + index3++; + span86[index3] = null; + index3++; + span86[index3] = null; + index3++; + span86[index3] = null; + index3++; + span86[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep10.CompletionQuestVariablesFlags = list86; reference65 = questStep10; obj54.Steps = list83; reference62 = obj54; - ref QuestSequence reference66 = ref span26[2]; + num++; + ref QuestSequence reference66 = ref span81[num]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052452u, new Vector3(-1.9074707f, 0.90001047f, 15.8845825f), 1269) + index2 = 1; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + span87[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052452u, new Vector3(-1.9074707f, 0.90001047f, 15.8845825f), 1269) { NextQuestId = new QuestId(5311) }; @@ -381331,13 +463896,16 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - CollectionsMarshal.AsSpan(list88)[0] = "liza"; + Span span88 = CollectionsMarshal.AsSpan(list88); + index = 0; + span88[index] = "liza"; questRoot11.Author = list88; - num = 2; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span31 = CollectionsMarshal.AsSpan(list89); - ref QuestSequence reference67 = ref span31[0]; + index = 2; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + Span span89 = CollectionsMarshal.AsSpan(list89); + num = 0; + ref QuestSequence reference67 = ref span89[num]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -381345,21 +463913,26 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053794u, new Vector3(-0.015319824f, 0f, -21.103333f), 1269) + Span span90 = CollectionsMarshal.AsSpan(list90); + index2 = 0; + span90[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053794u, new Vector3(-0.015319824f, 0f, -21.103333f), 1269) { StopDistance = 5f }; obj57.Steps = list90; reference67 = obj57; - ref QuestSequence reference68 = ref span31[1]; + num++; + ref QuestSequence reference68 = ref span89[num]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053797u, new Vector3(-77.592224f, 5f, -15.396423f), 1269); + index2 = 1; + List list91 = new List(index2); + CollectionsMarshal.SetCount(list91, index2); + Span span91 = CollectionsMarshal.AsSpan(list91); + num2 = 0; + span91[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053797u, new Vector3(-77.592224f, 5f, -15.396423f), 1269); obj58.Steps = list91; reference68 = obj58; questRoot11.QuestSequence = list89; @@ -381369,13 +463942,16 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - CollectionsMarshal.AsSpan(list92)[0] = "liza"; + Span span92 = CollectionsMarshal.AsSpan(list92); + index = 0; + span92[index] = "liza"; questRoot12.Author = list92; - num = 2; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span32 = CollectionsMarshal.AsSpan(list93); - ref QuestSequence reference69 = ref span32[0]; + index = 2; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + Span span93 = CollectionsMarshal.AsSpan(list93); + num = 0; + ref QuestSequence reference69 = ref span93[num]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -381383,22 +463959,27 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053798u, new Vector3(841.9165f, 72.713615f, -700.3434f), 1252) + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053798u, new Vector3(841.9165f, 72.713615f, -700.3434f), 1252) { StopDistance = 5f, Comment = "This requires queueing into Occult Crescent: South Horn, so isn't started automatically" }; obj59.Steps = list94; reference69 = obj59; - ref QuestSequence reference70 = ref span32[1]; + num++; + ref QuestSequence reference70 = ref span93[num]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053799u, new Vector3(867.9177f, 72.7133f, -677.48535f), 1252); + index2 = 1; + List list95 = new List(index2); + CollectionsMarshal.SetCount(list95, index2); + Span span95 = CollectionsMarshal.AsSpan(list95); + num2 = 0; + span95[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053799u, new Vector3(867.9177f, 72.7133f, -677.48535f), 1252); obj60.Steps = list95; reference70 = obj60; questRoot12.QuestSequence = list93; @@ -381408,13 +463989,16 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "liza"; + Span span96 = CollectionsMarshal.AsSpan(list96); + index = 0; + span96[index] = "liza"; questRoot13.Author = list96; - num = 2; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span33 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference71 = ref span33[0]; + index = 2; + List list97 = new List(index); + CollectionsMarshal.SetCount(list97, index); + Span span97 = CollectionsMarshal.AsSpan(list97); + num = 0; + ref QuestSequence reference71 = ref span97[num]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -381422,21 +464006,26 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053796u, new Vector3(868.10095f, 72.75855f, -677.3938f), 1252) + Span span98 = CollectionsMarshal.AsSpan(list98); + index2 = 0; + span98[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053796u, new Vector3(868.10095f, 72.75855f, -677.3938f), 1252) { Comment = "This requires queueing into Occult Crescent: South Horn AND equipping a phantom job, so isn't started automatically" }; obj61.Steps = list98; reference71 = obj61; - ref QuestSequence reference72 = ref span33[1]; + num++; + ref QuestSequence reference72 = ref span97[num]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053800u, new Vector3(822.8733f, 72.673935f, -678.7671f), 1252); + index2 = 1; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + span99[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053800u, new Vector3(822.8733f, 72.673935f, -678.7671f), 1252); obj62.Steps = list99; reference72 = obj62; questRoot13.QuestSequence = list97; @@ -381446,13 +464035,16 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - CollectionsMarshal.AsSpan(list100)[0] = "liza"; + Span span100 = CollectionsMarshal.AsSpan(list100); + index = 0; + span100[index] = "liza"; questRoot14.Author = list100; - num = 4; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span34 = CollectionsMarshal.AsSpan(list101); - ref QuestSequence reference73 = ref span34[0]; + index = 4; + List list101 = new List(index); + CollectionsMarshal.SetCount(list101, index); + Span span101 = CollectionsMarshal.AsSpan(list101); + num = 0; + ref QuestSequence reference73 = ref span101[num]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -381460,12 +464052,16 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list102)[0]; + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + ref QuestStep reference74 = ref span102[index2]; QuestStep questStep11 = new QuestStep(EInteractionType.AcceptQuest, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = new DialogueChoice + index3 = 1; + List list103 = new List(index3); + CollectionsMarshal.SetCount(list103, index3); + Span span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span103[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGKW001_05319_Q1_000_000"), @@ -381475,18 +464071,22 @@ public static class AssemblyQuestLoader reference74 = questStep11; obj63.Steps = list102; reference73 = obj63; - ref QuestSequence reference75 = ref span34[1]; + num++; + ref QuestSequence reference75 = ref span101[num]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1053907u, new Vector3(-49.485046f, 4.999985f, 33.12732f), 1278); + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.Interact, 1053907u, new Vector3(-49.485046f, 4.999985f, 33.12732f), 1278); obj64.Steps = list104; reference75 = obj64; - ref QuestSequence reference76 = ref span34[2]; + num++; + ref QuestSequence reference76 = ref span101[num]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -381494,18 +464094,23 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + span105[index2] = new QuestStep(EInteractionType.Interact, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); obj65.Steps = list105; reference76 = obj65; - ref QuestSequence reference77 = ref span34[3]; + num++; + ref QuestSequence reference77 = ref span101[num]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053908u, new Vector3(28.854736f, 0f, 13.351624f), 1278); + index2 = 1; + List list106 = new List(index2); + CollectionsMarshal.SetCount(list106, index2); + Span span106 = CollectionsMarshal.AsSpan(list106); + num2 = 0; + span106[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053908u, new Vector3(28.854736f, 0f, 13.351624f), 1278); obj66.Steps = list106; reference77 = obj66; questRoot14.QuestSequence = list101; @@ -381515,15 +464120,18 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - CollectionsMarshal.AsSpan(list107)[0] = "liza"; + Span span107 = CollectionsMarshal.AsSpan(list107); + index = 0; + span107[index] = "liza"; questRoot15.Author = list107; questRoot15.IsSeasonalQuest = true; questRoot15.SeasonalQuestExpiry = new DateTime(2025, 8, 26, 0, 0, 0, DateTimeKind.Utc); - num = 8; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span35 = CollectionsMarshal.AsSpan(list108); - ref QuestSequence reference78 = ref span35[0]; + index = 8; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + Span span108 = CollectionsMarshal.AsSpan(list108); + num = 0; + ref QuestSequence reference78 = ref span108[num]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -381531,7 +464139,9 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list109)[0]; + Span span109 = CollectionsMarshal.AsSpan(list109); + index2 = 0; + ref QuestStep reference79 = ref span109[index2]; QuestStep obj68 = new QuestStep(EInteractionType.AcceptQuest, 1053941u, new Vector3(14.328186f, 45.665993f, 131.33435f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -381549,29 +464159,35 @@ public static class AssemblyQuestLoader num3 = 1; List list110 = new List(num3); CollectionsMarshal.SetCount(list110, num3); - CollectionsMarshal.AsSpan(list110)[0] = 128; + Span span110 = CollectionsMarshal.AsSpan(list110); + index3 = 0; + span110[index3] = 128; obj69.InTerritory = list110; skipConditions6.AetheryteShortcutIf = obj69; obj68.SkipConditions = skipConditions6; reference79 = obj68; obj67.Steps = list109; reference78 = obj67; - ref QuestSequence reference80 = ref span35[1]; + num++; + ref QuestSequence reference80 = ref span108[num]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1053942u, new Vector3(705.989f, 9.4453125f, 483.14636f), 137) + index2 = 1; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + span111[num2] = new QuestStep(EInteractionType.Interact, 1053942u, new Vector3(705.989f, 9.4453125f, 483.14636f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj70.Steps = list111; reference80 = obj70; - ref QuestSequence reference81 = ref span35[2]; + num++; + ref QuestSequence reference81 = ref span108[num]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -381579,27 +464195,34 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span36 = CollectionsMarshal.AsSpan(list112); - span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(755.61664f, 38.19999f, 475.95694f), 137); - span36[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(756.2495f, 38.19998f, 419.6828f), 137); - span36[2] = new QuestStep(EInteractionType.Interact, 1053943u, new Vector3(777.4929f, 38.999973f, 400.9308f), 137); + Span span112 = CollectionsMarshal.AsSpan(list112); + index2 = 0; + span112[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(755.61664f, 38.19999f, 475.95694f), 137); + index2++; + span112[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(756.2495f, 38.19998f, 419.6828f), 137); + index2++; + span112[index2] = new QuestStep(EInteractionType.Interact, 1053943u, new Vector3(777.4929f, 38.999973f, 400.9308f), 137); obj71.Steps = list112; reference81 = obj71; - ref QuestSequence reference82 = ref span35[3]; + num++; + ref QuestSequence reference82 = ref span108[num]; QuestSequence obj72 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1053944u, new Vector3(772.91516f, 38.99997f, 396.90234f), 137) + index2 = 1; + List list113 = new List(index2); + CollectionsMarshal.SetCount(list113, index2); + Span span113 = CollectionsMarshal.AsSpan(list113); + num2 = 0; + span113[num2] = new QuestStep(EInteractionType.Interact, 1053944u, new Vector3(772.91516f, 38.99997f, 396.90234f), 137) { StopDistance = 7f }; obj72.Steps = list113; reference82 = obj72; - ref QuestSequence reference83 = ref span35[4]; + num++; + ref QuestSequence reference83 = ref span108[num]; QuestSequence obj73 = new QuestSequence { Sequence = 4 @@ -381607,61 +464230,83 @@ public static class AssemblyQuestLoader num2 = 6; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span37 = CollectionsMarshal.AsSpan(list114); - ref QuestStep reference84 = ref span37[0]; + Span span114 = CollectionsMarshal.AsSpan(list114); + index2 = 0; + ref QuestStep reference84 = ref span114[index2]; QuestStep questStep12 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(756.2495f, 38.19998f, 419.6828f), 137); SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 6; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - Span span38 = CollectionsMarshal.AsSpan(list115); - span38[0] = null; - span38[1] = null; - span38[2] = null; - span38[3] = null; - span38[4] = null; - span38[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list115 = new List(index3); + CollectionsMarshal.SetCount(list115, index3); + Span span115 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = null; + num3++; + span115[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); skipStepConditions6.CompletionQuestVariablesFlags = list115; skipConditions7.StepIf = skipStepConditions6; questStep12.SkipConditions = skipConditions7; reference84 = questStep12; - ref QuestStep reference85 = ref span37[1]; + index2++; + ref QuestStep reference85 = ref span114[index2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1053949u, new Vector3(738.4298f, 36.23682f, 482.0172f), 137); num3 = 6; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - Span span39 = CollectionsMarshal.AsSpan(list116); - span39[0] = null; - span39[1] = null; - span39[2] = null; - span39[3] = null; - span39[4] = null; - span39[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span116 = CollectionsMarshal.AsSpan(list116); + index3 = 0; + span116[index3] = null; + index3++; + span116[index3] = null; + index3++; + span116[index3] = null; + index3++; + span116[index3] = null; + index3++; + span116[index3] = null; + index3++; + span116[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep13.CompletionQuestVariablesFlags = list116; reference85 = questStep13; - ref QuestStep reference86 = ref span37[2]; + index2++; + ref QuestStep reference86 = ref span114[index2]; QuestStep obj74 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(703.2868f, 9.050781f, 481.25787f), 137) { DisableNavmesh = true }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 6; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - Span span40 = CollectionsMarshal.AsSpan(list117); - span40[0] = null; - span40[1] = null; - span40[2] = null; - span40[3] = null; - span40[4] = null; - span40[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list117 = new List(index3); + CollectionsMarshal.SetCount(list117, index3); + Span span117 = CollectionsMarshal.AsSpan(list117); + num3 = 0; + span117[num3] = null; + num3++; + span117[num3] = null; + num3++; + span117[num3] = null; + num3++; + span117[num3] = null; + num3++; + span117[num3] = null; + num3++; + span117[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions7.CompletionQuestVariablesFlags = list117; skipConditions8.StepIf = skipStepConditions7; obj74.SkipConditions = skipConditions8; reference86 = obj74; - ref QuestStep reference87 = ref span37[3]; + index2++; + ref QuestStep reference87 = ref span114[index2]; QuestStep obj75 = new QuestStep(EInteractionType.Interact, 1053947u, new Vector3(695.9181f, 8.4f, 442.31323f), 137) { Mount = false @@ -381669,33 +464314,47 @@ public static class AssemblyQuestLoader num3 = 6; List list118 = new List(num3); CollectionsMarshal.SetCount(list118, num3); - Span span41 = CollectionsMarshal.AsSpan(list118); - span41[0] = null; - span41[1] = null; - span41[2] = null; - span41[3] = null; - span41[4] = null; - span41[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span118 = CollectionsMarshal.AsSpan(list118); + index3 = 0; + span118[index3] = null; + index3++; + span118[index3] = null; + index3++; + span118[index3] = null; + index3++; + span118[index3] = null; + index3++; + span118[index3] = null; + index3++; + span118[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj75.CompletionQuestVariablesFlags = list118; reference87 = obj75; - ref QuestStep reference88 = ref span37[4]; + index2++; + ref QuestStep reference88 = ref span114[index2]; QuestStep obj76 = new QuestStep(EInteractionType.Interact, 1053946u, new Vector3(849.2407f, 8.4f, 461.17346f), 137) { Mount = false }; - num3 = 6; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - Span span42 = CollectionsMarshal.AsSpan(list119); - span42[0] = null; - span42[1] = null; - span42[2] = null; - span42[3] = null; - span42[4] = null; - span42[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list119 = new List(index3); + CollectionsMarshal.SetCount(list119, index3); + Span span119 = CollectionsMarshal.AsSpan(list119); + num3 = 0; + span119[num3] = null; + num3++; + span119[num3] = null; + num3++; + span119[num3] = null; + num3++; + span119[num3] = null; + num3++; + span119[num3] = null; + num3++; + span119[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj76.CompletionQuestVariablesFlags = list119; reference88 = obj76; - ref QuestStep reference89 = ref span37[5]; + index2++; + ref QuestStep reference89 = ref span114[index2]; QuestStep obj77 = new QuestStep(EInteractionType.Interact, 1053945u, new Vector3(872.0989f, 8.4f, 402.8534f), 137) { Mount = false @@ -381703,38 +464362,48 @@ public static class AssemblyQuestLoader num3 = 6; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - Span span43 = CollectionsMarshal.AsSpan(list120); - span43[0] = null; - span43[1] = null; - span43[2] = null; - span43[3] = null; - span43[4] = null; - span43[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span120 = CollectionsMarshal.AsSpan(list120); + index3 = 0; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj77.CompletionQuestVariablesFlags = list120; reference89 = obj77; obj73.Steps = list114; reference83 = obj73; - ref QuestSequence reference90 = ref span35[5]; + num++; + ref QuestSequence reference90 = ref span108[num]; QuestSequence obj78 = new QuestSequence { Sequence = 5 }; - num2 = 2; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - Span span44 = CollectionsMarshal.AsSpan(list121); - span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(828.0988f, 8.4f, 406.98657f), 137) + index2 = 2; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num2 = 0; + span121[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(828.0988f, 8.4f, 406.98657f), 137) { Mount = false }; - span44[1] = new QuestStep(EInteractionType.Interact, 1053943u, new Vector3(777.4929f, 38.999973f, 400.9308f), 137) + num2++; + span121[num2] = new QuestStep(EInteractionType.Interact, 1053943u, new Vector3(777.4929f, 38.999973f, 400.9308f), 137) { StopDistance = 7f, DelaySecondsAtStart = 5f }; obj78.Steps = list121; reference90 = obj78; - ref QuestSequence reference91 = ref span35[6]; + num++; + ref QuestSequence reference91 = ref span108[num]; QuestSequence obj79 = new QuestSequence { Sequence = 6 @@ -381742,26 +464411,31 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 2014686u, new Vector3(794.4304f, 37.247192f, 394.3694f), 137) + Span span122 = CollectionsMarshal.AsSpan(list122); + index2 = 0; + span122[index2] = new QuestStep(EInteractionType.Interact, 2014686u, new Vector3(794.4304f, 37.247192f, 394.3694f), 137) { DisableNavmesh = true }; obj79.Steps = list122; reference91 = obj79; - ref QuestSequence reference92 = ref span35[7]; + num++; + ref QuestSequence reference92 = ref span108[num]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list123 = new List(num2); - CollectionsMarshal.SetCount(list123, num2); - Span span45 = CollectionsMarshal.AsSpan(list123); - span45[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(828.0988f, 8.4f, 406.98657f), 137) + index2 = 2; + List list123 = new List(index2); + CollectionsMarshal.SetCount(list123, index2); + Span span123 = CollectionsMarshal.AsSpan(list123); + num2 = 0; + span123[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(828.0988f, 8.4f, 406.98657f), 137) { Mount = false }; - span45[1] = new QuestStep(EInteractionType.CompleteQuest, 1051599u, new Vector3(775.0209f, 38.999977f, 398.2146f), 137) + num2++; + span123[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051599u, new Vector3(775.0209f, 38.999977f, 398.2146f), 137) { StopDistance = 7f, DelaySecondsAtStart = 5f @@ -381775,15 +464449,18 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "liza"; + Span span124 = CollectionsMarshal.AsSpan(list124); + index = 0; + span124[index] = "liza"; questRoot16.Author = list124; questRoot16.IsSeasonalQuest = true; questRoot16.SeasonalQuestExpiry = new DateTime(2025, 6, 11, 0, 0, 0, DateTimeKind.Utc); - num = 9; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - Span span46 = CollectionsMarshal.AsSpan(list125); - ref QuestSequence reference93 = ref span46[0]; + index = 9; + List list125 = new List(index); + CollectionsMarshal.SetCount(list125, index); + Span span125 = CollectionsMarshal.AsSpan(list125); + num = 0; + ref QuestSequence reference93 = ref span125[num]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -381791,7 +464468,9 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049020u, new Vector3(-86.32031f, 4f, -104.35651f), 130) + Span span126 = CollectionsMarshal.AsSpan(list126); + index2 = 0; + span126[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049020u, new Vector3(-86.32031f, 4f, -104.35651f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -381804,20 +464483,23 @@ public static class AssemblyQuestLoader }; obj81.Steps = list126; reference93 = obj81; - ref QuestSequence reference94 = ref span46[1]; + num++; + ref QuestSequence reference94 = ref span125[num]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list127 = new List(num2); - CollectionsMarshal.SetCount(list127, num2); - Span span47 = CollectionsMarshal.AsSpan(list127); - span47[0] = new QuestStep(EInteractionType.AcceptQuest, 1011565u, new Vector3(-78.8739f, 4f, -110.429565f), 130) + index2 = 4; + List list127 = new List(index2); + CollectionsMarshal.SetCount(list127, index2); + Span span127 = CollectionsMarshal.AsSpan(list127); + num2 = 0; + span127[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011565u, new Vector3(-78.8739f, 4f, -110.429565f), 130) { PickUpQuestId = new QuestId(434) }; - ref QuestStep reference95 = ref span47[1]; + num2++; + ref QuestStep reference95 = ref span127[num2]; QuestStep obj83 = new QuestStep(EInteractionType.Interact, 1004433u, new Vector3(-23.605713f, 83.19999f, -2.3041382f), 130) { TargetTerritoryId = (ushort)144, @@ -381830,10 +464512,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 1; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - CollectionsMarshal.AsSpan(list128)[0] = 144; + index3 = 1; + List list128 = new List(index3); + CollectionsMarshal.SetCount(list128, index3); + Span span128 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span128[num3] = 144; skipStepConditions8.InTerritory = list128; skipStepConditions8.AetheryteUnlocked = EAetheryteLocation.GoldSaucer; skipConditions9.StepIf = skipStepConditions8; @@ -381841,15 +464525,18 @@ public static class AssemblyQuestLoader num3 = 2; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span48 = CollectionsMarshal.AsSpan(list129); - span48[0] = 130; - span48[1] = 144; + Span span129 = CollectionsMarshal.AsSpan(list129); + index3 = 0; + span129[index3] = 130; + index3++; + span129[index3] = 144; skipAetheryteCondition.InTerritory = list129; skipAetheryteCondition.AetheryteUnlocked = EAetheryteLocation.GoldSaucer; skipConditions9.AetheryteShortcutIf = skipAetheryteCondition; obj83.SkipConditions = skipConditions9; reference95 = obj83; - span47[2] = new QuestStep(EInteractionType.AcceptQuest, 1011022u, new Vector3(-38.895264f, -2.7930364E-06f, 97.33728f), 144) + num2++; + span127[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011022u, new Vector3(-38.895264f, -2.7930364E-06f, 97.33728f), 144) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.GoldSaucer, @@ -381862,7 +464549,8 @@ public static class AssemblyQuestLoader }, PickUpQuestId = new QuestId(435) }; - span47[3] = new QuestStep(EInteractionType.Interact, 1049021u, new Vector3(-80.91864f, -1.2629791E-05f, 46.463623f), 144) + num2++; + span127[num2] = new QuestStep(EInteractionType.Interact, 1049021u, new Vector3(-80.91864f, -1.2629791E-05f, 46.463623f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, AethernetShortcut = new AethernetShortcut @@ -381880,7 +464568,8 @@ public static class AssemblyQuestLoader }; obj82.Steps = list127; reference94 = obj82; - ref QuestSequence reference96 = ref span46[2]; + num++; + ref QuestSequence reference96 = ref span125[num]; QuestSequence obj84 = new QuestSequence { Sequence = 2 @@ -381888,8 +464577,9 @@ public static class AssemblyQuestLoader num2 = 3; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span49 = CollectionsMarshal.AsSpan(list130); - ref QuestStep reference97 = ref span49[0]; + Span span130 = CollectionsMarshal.AsSpan(list130); + index2 = 0; + ref QuestStep reference97 = ref span130[index2]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 1049029u, new Vector3(10.452393f, 20.99973f, 39.597046f), 144) { AethernetShortcut = new AethernetShortcut @@ -381898,62 +464588,87 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucerWonderSquareWest } }; - num3 = 6; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span50 = CollectionsMarshal.AsSpan(list131); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + Span span131 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = null; + num3++; + span131[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj85.CompletionQuestVariablesFlags = list131; reference97 = obj85; - ref QuestStep reference98 = ref span49[1]; + index2++; + ref QuestStep reference98 = ref span130[index2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1049028u, new Vector3(55.77173f, 3.9997194f, 42.313232f), 144); num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span51 = CollectionsMarshal.AsSpan(list132); - span51[0] = null; - span51[1] = null; - span51[2] = null; - span51[3] = null; - span51[4] = null; - span51[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span132 = CollectionsMarshal.AsSpan(list132); + index3 = 0; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = null; + index3++; + span132[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep14.CompletionQuestVariablesFlags = list132; reference98 = questStep14; - ref QuestStep reference99 = ref span49[2]; + index2++; + ref QuestStep reference99 = ref span130[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1049027u, new Vector3(7.003784f, 3.9997306f, 78.20239f), 144); - num3 = 6; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - Span span52 = CollectionsMarshal.AsSpan(list133); - span52[0] = null; - span52[1] = null; - span52[2] = null; - span52[3] = null; - span52[4] = null; - span52[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list133 = new List(index3); + CollectionsMarshal.SetCount(list133, index3); + Span span133 = CollectionsMarshal.AsSpan(list133); + num3 = 0; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = null; + num3++; + span133[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list133; reference99 = questStep15; obj84.Steps = list130; reference96 = obj84; - ref QuestSequence reference100 = ref span46[3]; + num++; + ref QuestSequence reference100 = ref span125[num]; QuestSequence obj86 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - ref QuestStep reference101 = ref CollectionsMarshal.AsSpan(list134)[0]; + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + ref QuestStep reference101 = ref span134[num2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1049023u, new Vector3(-12.863403f, -1.1376108E-16f, -7.9804688f), 144); num3 = 1; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - CollectionsMarshal.AsSpan(list135)[0] = new DialogueChoice + Span span135 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span135[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESGSC901_05322_Q1_000_000"), @@ -381963,7 +464678,8 @@ public static class AssemblyQuestLoader reference101 = questStep16; obj86.Steps = list134; reference100 = obj86; - ref QuestSequence reference102 = ref span46[4]; + num++; + ref QuestSequence reference102 = ref span125[num]; QuestSequence obj87 = new QuestSequence { Sequence = 4 @@ -381971,7 +464687,9 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 2014700u, new Vector3(107.7439f, 12.985352f, -45.212524f), 144) + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + span136[index2] = new QuestStep(EInteractionType.Interact, 2014700u, new Vector3(107.7439f, 12.985352f, -45.212524f), 144) { AethernetShortcut = new AethernetShortcut { @@ -381981,21 +464699,25 @@ public static class AssemblyQuestLoader }; obj87.Steps = list136; reference102 = obj87; - ref QuestSequence reference103 = ref span46[5]; + num++; + ref QuestSequence reference103 = ref span125[num]; QuestSequence obj88 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list137 = new List(num2); - CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 2014702u, new Vector3(94.346436f, 13.01593f, -5.935791f), 144) + index2 = 1; + List list137 = new List(index2); + CollectionsMarshal.SetCount(list137, index2); + Span span137 = CollectionsMarshal.AsSpan(list137); + num2 = 0; + span137[num2] = new QuestStep(EInteractionType.Interact, 2014702u, new Vector3(94.346436f, 13.01593f, -5.935791f), 144) { StopDistance = 4.5f }; obj88.Steps = list137; reference103 = obj88; - ref QuestSequence reference104 = ref span46[6]; + num++; + ref QuestSequence reference104 = ref span125[num]; QuestSequence obj89 = new QuestSequence { Sequence = 6 @@ -382003,7 +464725,9 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1049025u, new Vector3(33.49353f, -5f, -58.54895f), 144) + Span span138 = CollectionsMarshal.AsSpan(list138); + index2 = 0; + span138[index2] = new QuestStep(EInteractionType.Interact, 1049025u, new Vector3(33.49353f, -5f, -58.54895f), 144) { AethernetShortcut = new AethernetShortcut { @@ -382013,15 +464737,18 @@ public static class AssemblyQuestLoader }; obj89.Steps = list138; reference104 = obj89; - ref QuestSequence reference105 = ref span46[7]; + num++; + ref QuestSequence reference105 = ref span125[num]; QuestSequence obj90 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list139 = new List(num2); - CollectionsMarshal.SetCount(list139, num2); - CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 2014703u, new Vector3(-67.00244f, -0.015319824f, 39.230957f), 144) + index2 = 1; + List list139 = new List(index2); + CollectionsMarshal.SetCount(list139, index2); + Span span139 = CollectionsMarshal.AsSpan(list139); + num2 = 0; + span139[num2] = new QuestStep(EInteractionType.Interact, 2014703u, new Vector3(-67.00244f, -0.015319824f, 39.230957f), 144) { AethernetShortcut = new AethernetShortcut { @@ -382031,7 +464758,8 @@ public static class AssemblyQuestLoader }; obj90.Steps = list139; reference105 = obj90; - ref QuestSequence reference106 = ref span46[8]; + num++; + ref QuestSequence reference106 = ref span125[num]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue @@ -382039,7 +464767,9 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049026u, new Vector3(-31.937195f, 0.044279926f, 18.32605f), 144) + Span span140 = CollectionsMarshal.AsSpan(list140); + index2 = 0; + span140[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049026u, new Vector3(-31.937195f, 0.044279926f, 18.32605f), 144) { StopDistance = 5f }; @@ -382052,26 +464782,33 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - CollectionsMarshal.AsSpan(list141)[0] = "liza"; + Span span141 = CollectionsMarshal.AsSpan(list141); + index = 0; + span141[index] = "liza"; questRoot17.Author = list141; - num = 4; - List list142 = new List(num); - CollectionsMarshal.SetCount(list142, num); - Span span53 = CollectionsMarshal.AsSpan(list142); - ref QuestSequence reference107 = ref span53[0]; + index = 4; + List list142 = new List(index); + CollectionsMarshal.SetCount(list142, index); + Span span142 = CollectionsMarshal.AsSpan(list142); + num = 0; + ref QuestSequence reference107 = ref span142[num]; QuestSequence obj92 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list143)[0]; + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + Span span143 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + ref QuestStep reference108 = ref span143[num2]; QuestStep questStep17 = new QuestStep(EInteractionType.AcceptQuest, 1052631u, new Vector3(10.116699f, 1.6122663f, -17.135986f), 1237); - num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new DialogueChoice + index3 = 1; + List list144 = new List(index3); + CollectionsMarshal.SetCount(list144, index3); + Span span144 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span144[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGWZ001_05323_Q1_000_000"), @@ -382081,7 +464818,8 @@ public static class AssemblyQuestLoader reference108 = questStep17; obj92.Steps = list143; reference107 = obj92; - ref QuestSequence reference109 = ref span53[1]; + num++; + ref QuestSequence reference109 = ref span142[num]; QuestSequence obj93 = new QuestSequence { Sequence = 1 @@ -382089,49 +464827,67 @@ public static class AssemblyQuestLoader num2 = 2; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span54 = CollectionsMarshal.AsSpan(list145); - ref QuestStep reference110 = ref span54[0]; + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + ref QuestStep reference110 = ref span145[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1052633u, new Vector3(-87.26642f, 0.3205882f, 82.26135f), 1237); num3 = 6; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - Span span55 = CollectionsMarshal.AsSpan(list146); - span55[0] = null; - span55[1] = null; - span55[2] = null; - span55[3] = null; - span55[4] = null; - span55[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span146 = CollectionsMarshal.AsSpan(list146); + index3 = 0; + span146[index3] = null; + index3++; + span146[index3] = null; + index3++; + span146[index3] = null; + index3++; + span146[index3] = null; + index3++; + span146[index3] = null; + index3++; + span146[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list146; reference110 = questStep18; - ref QuestStep reference111 = ref span54[1]; + index2++; + ref QuestStep reference111 = ref span145[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1052632u, new Vector3(79.81995f, 0.30599445f, 98.89368f), 1237); - num3 = 6; - List list147 = new List(num3); - CollectionsMarshal.SetCount(list147, num3); - Span span56 = CollectionsMarshal.AsSpan(list147); - span56[0] = null; - span56[1] = null; - span56[2] = null; - span56[3] = null; - span56[4] = null; - span56[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list147 = new List(index3); + CollectionsMarshal.SetCount(list147, index3); + Span span147 = CollectionsMarshal.AsSpan(list147); + num3 = 0; + span147[num3] = null; + num3++; + span147[num3] = null; + num3++; + span147[num3] = null; + num3++; + span147[num3] = null; + num3++; + span147[num3] = null; + num3++; + span147[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep19.CompletionQuestVariablesFlags = list147; reference111 = questStep19; obj93.Steps = list145; reference109 = obj93; - ref QuestSequence reference112 = ref span53[2]; + num++; + ref QuestSequence reference112 = ref span142[num]; QuestSequence obj94 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 2013711u, new Vector3(-85.98462f, 4.2266846f, -63.767517f), 1237); + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.Interact, 2013711u, new Vector3(-85.98462f, 4.2266846f, -63.767517f), 1237); obj94.Steps = list148; reference112 = obj94; - ref QuestSequence reference113 = ref span53[3]; + num++; + ref QuestSequence reference113 = ref span142[num]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -382139,7 +464895,9 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052631u, new Vector3(10.116699f, 1.6122663f, -17.135986f), 1237) + Span span149 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + span149[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052631u, new Vector3(10.116699f, 1.6122663f, -17.135986f), 1237) { NextQuestId = new QuestId(5324) }; @@ -382152,26 +464910,33 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - CollectionsMarshal.AsSpan(list150)[0] = "liza"; + Span span150 = CollectionsMarshal.AsSpan(list150); + index = 0; + span150[index] = "liza"; questRoot18.Author = list150; - num = 5; - List list151 = new List(num); - CollectionsMarshal.SetCount(list151, num); - Span span57 = CollectionsMarshal.AsSpan(list151); - ref QuestSequence reference114 = ref span57[0]; + index = 5; + List list151 = new List(index); + CollectionsMarshal.SetCount(list151, index); + Span span151 = CollectionsMarshal.AsSpan(list151); + num = 0; + ref QuestSequence reference114 = ref span151[num]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - ref QuestStep reference115 = ref CollectionsMarshal.AsSpan(list152)[0]; + index2 = 1; + List list152 = new List(index2); + CollectionsMarshal.SetCount(list152, index2); + Span span152 = CollectionsMarshal.AsSpan(list152); + num2 = 0; + ref QuestStep reference115 = ref span152[num2]; QuestStep questStep20 = new QuestStep(EInteractionType.AcceptQuest, 1052631u, new Vector3(10.116699f, 1.6122663f, -17.135986f), 1237); num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - CollectionsMarshal.AsSpan(list153)[0] = new DialogueChoice + Span span153 = CollectionsMarshal.AsSpan(list153); + index3 = 0; + span153[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGWZ002_05324_Q1_000_000"), @@ -382181,7 +464946,8 @@ public static class AssemblyQuestLoader reference115 = questStep20; obj96.Steps = list152; reference114 = obj96; - ref QuestSequence reference116 = ref span57[1]; + num++; + ref QuestSequence reference116 = ref span151[num]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -382189,21 +464955,27 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1052634u, new Vector3(-32.39496f, 1.5f, 31.631958f), 1237); + Span span154 = CollectionsMarshal.AsSpan(list154); + index2 = 0; + span154[index2] = new QuestStep(EInteractionType.Interact, 1052634u, new Vector3(-32.39496f, 1.5f, 31.631958f), 1237); obj97.Steps = list154; reference116 = obj97; - ref QuestSequence reference117 = ref span57[2]; + num++; + ref QuestSequence reference117 = ref span151[num]; QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1052635u, new Vector3(46.61621f, 0.8794936f, 51.377075f), 1237); + index2 = 1; + List list155 = new List(index2); + CollectionsMarshal.SetCount(list155, index2); + Span span155 = CollectionsMarshal.AsSpan(list155); + num2 = 0; + span155[num2] = new QuestStep(EInteractionType.Interact, 1052635u, new Vector3(46.61621f, 0.8794936f, 51.377075f), 1237); obj98.Steps = list155; reference117 = obj98; - ref QuestSequence reference118 = ref span57[3]; + num++; + ref QuestSequence reference118 = ref span151[num]; QuestSequence obj99 = new QuestSequence { Sequence = 3 @@ -382211,18 +464983,23 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1052636u, new Vector3(29.95337f, 1f, -70.45099f), 1237); + Span span156 = CollectionsMarshal.AsSpan(list156); + index2 = 0; + span156[index2] = new QuestStep(EInteractionType.Interact, 1052636u, new Vector3(29.95337f, 1f, -70.45099f), 1237); obj99.Steps = list156; reference118 = obj99; - ref QuestSequence reference119 = ref span57[4]; + num++; + ref QuestSequence reference119 = ref span151[num]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list157 = new List(num2); - CollectionsMarshal.SetCount(list157, num2); - CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052631u, new Vector3(10.116699f, 1.6122663f, -17.135986f), 1237); + index2 = 1; + List list157 = new List(index2); + CollectionsMarshal.SetCount(list157, index2); + Span span157 = CollectionsMarshal.AsSpan(list157); + num2 = 0; + span157[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052631u, new Vector3(10.116699f, 1.6122663f, -17.135986f), 1237); obj100.Steps = list157; reference119 = obj100; questRoot18.QuestSequence = list151; @@ -382232,15 +465009,18 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - CollectionsMarshal.AsSpan(list158)[0] = "WigglyMuffin"; + Span span158 = CollectionsMarshal.AsSpan(list158); + index = 0; + span158[index] = "WigglyMuffin"; questRoot19.Author = list158; questRoot19.IsSeasonalQuest = true; questRoot19.SeasonalQuestExpiry = new DateTime(2026, 2, 16, 14, 59, 0, DateTimeKind.Utc); - num = 7; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - Span span58 = CollectionsMarshal.AsSpan(list159); - ref QuestSequence reference120 = ref span58[0]; + index = 7; + List list159 = new List(index); + CollectionsMarshal.SetCount(list159, index); + Span span159 = CollectionsMarshal.AsSpan(list159); + num = 0; + ref QuestSequence reference120 = ref span159[num]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -382248,7 +465028,9 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list160)[0]; + Span span160 = CollectionsMarshal.AsSpan(list160); + index2 = 0; + ref QuestStep reference121 = ref span160[index2]; QuestStep obj102 = new QuestStep(EInteractionType.AcceptQuest, 1054046u, new Vector3(-50.06488f, 6.5f, -90.25714f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -382263,28 +465045,34 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num3 = 1; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - CollectionsMarshal.AsSpan(list161)[0] = 133; + index3 = 1; + List list161 = new List(index3); + CollectionsMarshal.SetCount(list161, index3); + Span span161 = CollectionsMarshal.AsSpan(list161); + num3 = 0; + span161[num3] = 133; obj103.InTerritory = list161; skipConditions10.AetheryteShortcutIf = obj103; obj102.SkipConditions = skipConditions10; reference121 = obj102; obj101.Steps = list160; reference120 = obj101; - ref QuestSequence reference122 = ref span58[1]; + num++; + ref QuestSequence reference122 = ref span159[num]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 2014714u, new Vector3(-45.212524f, 6.7596436f, -127.42816f), 133); + index2 = 1; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + span162[num2] = new QuestStep(EInteractionType.Interact, 2014714u, new Vector3(-45.212524f, 6.7596436f, -127.42816f), 133); obj104.Steps = list162; reference122 = obj104; - ref QuestSequence reference123 = ref span58[2]; + num++; + ref QuestSequence reference123 = ref span159[num]; QuestSequence obj105 = new QuestSequence { Sequence = 2 @@ -382292,7 +465080,9 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - ref QuestStep reference124 = ref CollectionsMarshal.AsSpan(list163)[0]; + Span span163 = CollectionsMarshal.AsSpan(list163); + index2 = 0; + ref QuestStep reference124 = ref span163[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.SinglePlayerDuty, 1054051u, new Vector3(-41.12317f, 6.8356857f, -125.32239f), 133); SinglePlayerDutyOptions obj106 = new SinglePlayerDutyOptions { @@ -382301,28 +465091,33 @@ public static class AssemblyQuestLoader num3 = 1; List list164 = new List(num3); CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = "You only need to complete one cake layer to complete the duty."; + Span span164 = CollectionsMarshal.AsSpan(list164); + index3 = 0; + span164[index3] = "You only need to complete one cake layer to complete the duty."; obj106.Notes = list164; questStep21.SinglePlayerDutyOptions = obj106; - num3 = 3; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - Span span59 = CollectionsMarshal.AsSpan(list165); - span59[0] = new DialogueChoice + index3 = 3; + List list165 = new List(index3); + CollectionsMarshal.SetCount(list165, index3); + Span span165 = CollectionsMarshal.AsSpan(list165); + num3 = 0; + span165[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/009/FesVlt2026Entrance_00938", Prompt = new ExcelRef("TEXT_FESVLT2026ENTRANCE_00938_Q1_000_000"), Answer = new ExcelRef("TEXT_FESVLT2026ENTRANCE_00938_A1_000_001") }; - span59[1] = new DialogueChoice + num3++; + span165[num3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/009/FesVlt2026Entrance_00938", Prompt = new ExcelRef("TEXT_FESVLT2026ENTRANCE_00938_Q2_000_000"), Answer = new ExcelRef("TEXT_FESVLT2026ENTRANCE_00938_A2_000_002") }; - span59[2] = new DialogueChoice + num3++; + span165[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "custom/009/FesVlt2026Entrance_00938", @@ -382332,20 +465127,25 @@ public static class AssemblyQuestLoader reference124 = questStep21; obj105.Steps = list163; reference123 = obj105; - ref QuestSequence reference125 = ref span58[3]; + num++; + ref QuestSequence reference125 = ref span159[num]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list166 = new List(num2); - CollectionsMarshal.SetCount(list166, num2); - ref QuestStep reference126 = ref CollectionsMarshal.AsSpan(list166)[0]; + index2 = 1; + List list166 = new List(index2); + CollectionsMarshal.SetCount(list166, index2); + Span span166 = CollectionsMarshal.AsSpan(list166); + num2 = 0; + ref QuestStep reference126 = ref span166[num2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1054048u, new Vector3(-47.196167f, 6.7986083f, -124.80359f), 133); num3 = 1; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - CollectionsMarshal.AsSpan(list167)[0] = new DialogueChoice + Span span167 = CollectionsMarshal.AsSpan(list167); + index3 = 0; + span167[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESVLX201_05325_Q3_000_000"), @@ -382355,7 +465155,8 @@ public static class AssemblyQuestLoader reference126 = questStep22; obj107.Steps = list166; reference125 = obj107; - ref QuestSequence reference127 = ref span58[4]; + num++; + ref QuestSequence reference127 = ref span159[num]; QuestSequence obj108 = new QuestSequence { Sequence = 4 @@ -382363,18 +465164,23 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1054050u, new Vector3(-45.15149f, 6.8105283f, -125.352905f), 133); + Span span168 = CollectionsMarshal.AsSpan(list168); + index2 = 0; + span168[index2] = new QuestStep(EInteractionType.Interact, 1054050u, new Vector3(-45.15149f, 6.8105283f, -125.352905f), 133); obj108.Steps = list168; reference127 = obj108; - ref QuestSequence reference128 = ref span58[5]; + num++; + ref QuestSequence reference128 = ref span159[num]; QuestSequence obj109 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list169 = new List(num2); - CollectionsMarshal.SetCount(list169, num2); - CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1054052u, new Vector3(92.729004f, 12.160356f, -247.88281f), 133) + index2 = 1; + List list169 = new List(index2); + CollectionsMarshal.SetCount(list169, index2); + Span span169 = CollectionsMarshal.AsSpan(list169); + num2 = 0; + span169[num2] = new QuestStep(EInteractionType.Interact, 1054052u, new Vector3(92.729004f, 12.160356f, -247.88281f), 133) { AethernetShortcut = new AethernetShortcut { @@ -382384,7 +465190,8 @@ public static class AssemblyQuestLoader }; obj109.Steps = list169; reference128 = obj109; - ref QuestSequence reference129 = ref span58[6]; + num++; + ref QuestSequence reference129 = ref span159[num]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -382392,7 +465199,9 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054137u, new Vector3(-52.811523f, 6.5f, -88.39557f), 133) + Span span170 = CollectionsMarshal.AsSpan(list170); + index2 = 0; + span170[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054137u, new Vector3(-52.811523f, 6.5f, -88.39557f), 133) { AethernetShortcut = new AethernetShortcut { @@ -382409,21 +465218,26 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - CollectionsMarshal.AsSpan(list171)[0] = "Theo"; + Span span171 = CollectionsMarshal.AsSpan(list171); + index = 0; + span171[index] = "Theo"; questRoot20.Author = list171; - num = 7; - List list172 = new List(num); - CollectionsMarshal.SetCount(list172, num); - Span span60 = CollectionsMarshal.AsSpan(list172); - ref QuestSequence reference130 = ref span60[0]; + index = 7; + List list172 = new List(index); + CollectionsMarshal.SetCount(list172, index); + Span span172 = CollectionsMarshal.AsSpan(list172); + num = 0; + ref QuestSequence reference130 = ref span172[num]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list173 = new List(num2); - CollectionsMarshal.SetCount(list173, num2); - ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list173)[0]; + index2 = 1; + List list173 = new List(index2); + CollectionsMarshal.SetCount(list173, index2); + Span span173 = CollectionsMarshal.AsSpan(list173); + num2 = 0; + ref QuestStep reference131 = ref span173[num2]; QuestStep obj112 = new QuestStep(EInteractionType.AcceptQuest, 1051949u, new Vector3(141.2832f, 42f, -351.9494f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -382440,10 +465254,12 @@ public static class AssemblyQuestLoader } } }; - num3 = 1; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - CollectionsMarshal.AsSpan(list174)[0] = new DialogueChoice + index3 = 1; + List list174 = new List(index3); + CollectionsMarshal.SetCount(list174, index3); + Span span174 = CollectionsMarshal.AsSpan(list174); + num3 = 0; + span174[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGEA201_05326_Q2_000_000"), @@ -382453,7 +465269,8 @@ public static class AssemblyQuestLoader reference131 = obj112; obj111.Steps = list173; reference130 = obj111; - ref QuestSequence reference132 = ref span60[1]; + num++; + ref QuestSequence reference132 = ref span172[num]; QuestSequence obj113 = new QuestSequence { Sequence = 1 @@ -382461,7 +465278,9 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list175)[0]; + Span span175 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + ref QuestStep reference133 = ref span175[index2]; QuestStep obj114 = new QuestStep(EInteractionType.Interact, 1054347u, new Vector3(730.03735f, -133.17451f, 542.2903f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -382476,7 +465295,9 @@ public static class AssemblyQuestLoader num3 = 1; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - CollectionsMarshal.AsSpan(list176)[0] = new DialogueChoice + Span span176 = CollectionsMarshal.AsSpan(list176); + index3 = 0; + span176[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGEA201_05326_SYSTEM_000_103") @@ -382485,15 +465306,18 @@ public static class AssemblyQuestLoader reference133 = obj114; obj113.Steps = list175; reference132 = obj113; - ref QuestSequence reference134 = ref span60[2]; + num++; + ref QuestSequence reference134 = ref span172[num]; QuestSequence obj115 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1054301u, new Vector3(-502.76953f, -162.12943f, 419.8518f), 1189) + index2 = 1; + List list177 = new List(index2); + CollectionsMarshal.SetCount(list177, index2); + Span span177 = CollectionsMarshal.AsSpan(list177); + num2 = 0; + span177[num2] = new QuestStep(EInteractionType.Interact, 1054301u, new Vector3(-502.76953f, -162.12943f, 419.8518f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook, SkipConditions = new SkipConditions @@ -382506,7 +465330,8 @@ public static class AssemblyQuestLoader }; obj115.Steps = list177; reference134 = obj115; - ref QuestSequence reference135 = ref span60[3]; + num++; + ref QuestSequence reference135 = ref span172[num]; QuestSequence obj116 = new QuestSequence { Sequence = 3 @@ -382514,34 +465339,41 @@ public static class AssemblyQuestLoader num2 = 2; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span61 = CollectionsMarshal.AsSpan(list178); - ref QuestStep reference136 = ref span61[0]; + Span span178 = CollectionsMarshal.AsSpan(list178); + index2 = 0; + ref QuestStep reference136 = ref span178[index2]; QuestStep obj117 = new QuestStep(EInteractionType.Interact, 2014450u, new Vector3(-528.37415f, -152.20874f, 671.13745f), 1189) { TargetTerritoryId = (ushort)1265 }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 1; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - CollectionsMarshal.AsSpan(list179)[0] = 1265; + index3 = 1; + List list179 = new List(index3); + CollectionsMarshal.SetCount(list179, index3); + Span span179 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span179[num3] = 1265; skipStepConditions9.InTerritory = list179; skipConditions11.StepIf = skipStepConditions9; obj117.SkipConditions = skipConditions11; reference136 = obj117; - span61[1] = new QuestStep(EInteractionType.Interact, 2014786u, new Vector3(-2.456726f, 41.97754f, -2.822998f), 1265); + index2++; + span178[index2] = new QuestStep(EInteractionType.Interact, 2014786u, new Vector3(-2.456726f, 41.97754f, -2.822998f), 1265); obj116.Steps = list178; reference135 = obj116; - ref QuestSequence reference137 = ref span60[4]; + num++; + ref QuestSequence reference137 = ref span172[num]; QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Duty, null, null, 1265) + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.Duty, null, null, 1265) { DutyOptions = new DutyOptions { @@ -382550,7 +465382,8 @@ public static class AssemblyQuestLoader }; obj118.Steps = list180; reference137 = obj118; - ref QuestSequence reference138 = ref span60[5]; + num++; + ref QuestSequence reference138 = ref span172[num]; QuestSequence obj119 = new QuestSequence { Sequence = 5 @@ -382558,18 +465391,23 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1054310u, new Vector3(-5.2339478f, 41.999985f, -5.935791f), 1265); + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + span181[index2] = new QuestStep(EInteractionType.Interact, 1054310u, new Vector3(-5.2339478f, 41.999985f, -5.935791f), 1265); obj119.Steps = list181; reference138 = obj119; - ref QuestSequence reference139 = ref span60[6]; + num++; + ref QuestSequence reference139 = ref span172[num]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list182 = new List(num2); - CollectionsMarshal.SetCount(list182, num2); - CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054313u, new Vector3(-1.9074707f, 41.99998f, -4.4709473f), 1265) + index2 = 1; + List list182 = new List(index2); + CollectionsMarshal.SetCount(list182, index2); + Span span182 = CollectionsMarshal.AsSpan(list182); + num2 = 0; + span182[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054313u, new Vector3(-1.9074707f, 41.99998f, -4.4709473f), 1265) { NextQuestId = new QuestId(5327) }; @@ -382582,13 +465420,16 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - CollectionsMarshal.AsSpan(list183)[0] = "Theo"; + Span span183 = CollectionsMarshal.AsSpan(list183); + index = 0; + span183[index] = "Theo"; questRoot21.Author = list183; - num = 6; - List list184 = new List(num); - CollectionsMarshal.SetCount(list184, num); - Span span62 = CollectionsMarshal.AsSpan(list184); - ref QuestSequence reference140 = ref span62[0]; + index = 6; + List list184 = new List(index); + CollectionsMarshal.SetCount(list184, index); + Span span184 = CollectionsMarshal.AsSpan(list184); + num = 0; + ref QuestSequence reference140 = ref span184[num]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -382596,8 +465437,9 @@ public static class AssemblyQuestLoader num2 = 2; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span63 = CollectionsMarshal.AsSpan(list185); - ref QuestStep reference141 = ref span63[0]; + Span span185 = CollectionsMarshal.AsSpan(list185); + index2 = 0; + ref QuestStep reference141 = ref span185[index2]; QuestStep obj122 = new QuestStep(EInteractionType.Interact, 2014450u, new Vector3(-528.37415f, -152.20874f, 671.13745f), 1189) { TargetTerritoryId = (ushort)1265 @@ -382607,23 +465449,29 @@ public static class AssemblyQuestLoader num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = 1265; + Span span186 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span186[index3] = 1265; skipStepConditions10.InTerritory = list186; skipConditions12.StepIf = skipStepConditions10; obj122.SkipConditions = skipConditions12; reference141 = obj122; - span63[1] = new QuestStep(EInteractionType.AcceptQuest, 1054311u, new Vector3(-2.9450073f, 41.99998f, -7.034485f), 1265); + index2++; + span185[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054311u, new Vector3(-2.9450073f, 41.99998f, -7.034485f), 1265); obj121.Steps = list185; reference140 = obj121; - ref QuestSequence reference142 = ref span62[1]; + num++; + ref QuestSequence reference142 = ref span184[num]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1054315u, new Vector3(133.22644f, 42f, -348.95862f), 1185) + index2 = 1; + List list187 = new List(index2); + CollectionsMarshal.SetCount(list187, index2); + Span span187 = CollectionsMarshal.AsSpan(list187); + num2 = 0; + span187[num2] = new QuestStep(EInteractionType.Interact, 1054315u, new Vector3(133.22644f, 42f, -348.95862f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -382641,7 +465489,8 @@ public static class AssemblyQuestLoader }; obj123.Steps = list187; reference142 = obj123; - ref QuestSequence reference143 = ref span62[2]; + num++; + ref QuestSequence reference143 = ref span184[num]; QuestSequence obj124 = new QuestSequence { Sequence = 2 @@ -382649,7 +465498,9 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 2014787u, new Vector3(-326.16168f, 18.44812f, -104.57007f), 1190) + Span span188 = CollectionsMarshal.AsSpan(list188); + index2 = 0; + span188[index2] = new QuestStep(EInteractionType.Interact, 2014787u, new Vector3(-326.16168f, 18.44812f, -104.57007f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings, SkipConditions = new SkipConditions @@ -382662,33 +465513,42 @@ public static class AssemblyQuestLoader }; obj124.Steps = list188; reference143 = obj124; - ref QuestSequence reference144 = ref span62[3]; + num++; + ref QuestSequence reference144 = ref span184[num]; QuestSequence obj125 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list189 = new List(num2); - CollectionsMarshal.SetCount(list189, num2); - Span span64 = CollectionsMarshal.AsSpan(list189); - ref QuestStep reference145 = ref span64[0]; + index2 = 3; + List list189 = new List(index2); + CollectionsMarshal.SetCount(list189, index2); + Span span189 = CollectionsMarshal.AsSpan(list189); + num2 = 0; + ref QuestStep reference145 = ref span189[num2]; QuestStep obj126 = new QuestStep(EInteractionType.Interact, 1049334u, new Vector3(-139.05548f, 1.4543211f, 324.72717f), 1190) { Fly = true }; - num3 = 6; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - Span span65 = CollectionsMarshal.AsSpan(list190); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list190 = new List(index3); + CollectionsMarshal.SetCount(list190, index3); + Span span190 = CollectionsMarshal.AsSpan(list190); + num3 = 0; + span190[num3] = null; + num3++; + span190[num3] = null; + num3++; + span190[num3] = null; + num3++; + span190[num3] = null; + num3++; + span190[num3] = null; + num3++; + span190[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj126.CompletionQuestVariablesFlags = list190; reference145 = obj126; - ref QuestStep reference146 = ref span64[1]; + num2++; + ref QuestStep reference146 = ref span189[num2]; QuestStep obj127 = new QuestStep(EInteractionType.Interact, 1054321u, new Vector3(-145.25067f, 2.0168247f, 374.3191f), 1190) { Mount = true @@ -382696,22 +465556,30 @@ public static class AssemblyQuestLoader num3 = 6; List list191 = new List(num3); CollectionsMarshal.SetCount(list191, num3); - Span span66 = CollectionsMarshal.AsSpan(list191); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span191 = CollectionsMarshal.AsSpan(list191); + index3 = 0; + span191[index3] = null; + index3++; + span191[index3] = null; + index3++; + span191[index3] = null; + index3++; + span191[index3] = null; + index3++; + span191[index3] = null; + index3++; + span191[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj127.CompletionQuestVariablesFlags = list191; reference146 = obj127; - span64[2] = new QuestStep(EInteractionType.Interact, 1049327u, new Vector3(-207.47699f, -1.806f, 367.87964f), 1190) + num2++; + span189[num2] = new QuestStep(EInteractionType.Interact, 1049327u, new Vector3(-207.47699f, -1.806f, 367.87964f), 1190) { Mount = true }; obj125.Steps = list189; reference144 = obj125; - ref QuestSequence reference147 = ref span62[4]; + num++; + ref QuestSequence reference147 = ref span184[num]; QuestSequence obj128 = new QuestSequence { Sequence = 4 @@ -382719,21 +465587,26 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1054324u, new Vector3(-171.89288f, 1.6836945f, 347.219f), 1190) + Span span192 = CollectionsMarshal.AsSpan(list192); + index2 = 0; + span192[index2] = new QuestStep(EInteractionType.Interact, 1054324u, new Vector3(-171.89288f, 1.6836945f, 347.219f), 1190) { Mount = true }; obj128.Steps = list192; reference147 = obj128; - ref QuestSequence reference148 = ref span62[5]; + num++; + ref QuestSequence reference148 = ref span184[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list193 = new List(num2); - CollectionsMarshal.SetCount(list193, num2); - CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054326u, new Vector3(-40.116028f, -4.257869f, 574.18164f), 1190) + index2 = 1; + List list193 = new List(index2); + CollectionsMarshal.SetCount(list193, index2); + Span span193 = CollectionsMarshal.AsSpan(list193); + num2 = 0; + span193[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054326u, new Vector3(-40.116028f, -4.257869f, 574.18164f), 1190) { Fly = true, NextQuestId = new QuestId(5328) @@ -382747,13 +465620,16 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - CollectionsMarshal.AsSpan(list194)[0] = "Theo"; + Span span194 = CollectionsMarshal.AsSpan(list194); + index = 0; + span194[index] = "Theo"; questRoot22.Author = list194; - num = 2; - List list195 = new List(num); - CollectionsMarshal.SetCount(list195, num); - Span span67 = CollectionsMarshal.AsSpan(list195); - ref QuestSequence reference149 = ref span67[0]; + index = 2; + List list195 = new List(index); + CollectionsMarshal.SetCount(list195, index); + Span span195 = CollectionsMarshal.AsSpan(list195); + num = 0; + ref QuestSequence reference149 = ref span195[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -382761,7 +465637,9 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054326u, new Vector3(-40.116028f, -4.257869f, 574.18164f), 1190) + Span span196 = CollectionsMarshal.AsSpan(list196); + index2 = 0; + span196[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054326u, new Vector3(-40.116028f, -4.257869f, 574.18164f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi, @@ -382775,15 +465653,18 @@ public static class AssemblyQuestLoader }; obj130.Steps = list196; reference149 = obj130; - ref QuestSequence reference150 = ref span67[1]; + num++; + ref QuestSequence reference150 = ref span195[num]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list197 = new List(num2); - CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054331u, new Vector3(-322.80463f, 18.201778f, -97.88666f), 1190); + index2 = 1; + List list197 = new List(index2); + CollectionsMarshal.SetCount(list197, index2); + Span span197 = CollectionsMarshal.AsSpan(list197); + num2 = 0; + span197[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054331u, new Vector3(-322.80463f, 18.201778f, -97.88666f), 1190); obj131.Steps = list197; reference150 = obj131; questRoot22.QuestSequence = list195; @@ -382793,13 +465674,16 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "Theo"; + Span span198 = CollectionsMarshal.AsSpan(list198); + index = 0; + span198[index] = "Theo"; questRoot23.Author = list198; - num = 4; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span68 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference151 = ref span68[0]; + index = 4; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + Span span199 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference151 = ref span199[num]; QuestSequence obj132 = new QuestSequence { Sequence = 0 @@ -382807,7 +465691,9 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054336u, new Vector3(-325.73438f, 18.38136f, -100.41962f), 1190) + Span span200 = CollectionsMarshal.AsSpan(list200); + index2 = 0; + span200[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054336u, new Vector3(-325.73438f, 18.38136f, -100.41962f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings, SkipConditions = new SkipConditions @@ -382820,21 +465706,25 @@ public static class AssemblyQuestLoader }; obj132.Steps = list200; reference151 = obj132; - ref QuestSequence reference152 = ref span68[1]; + num++; + ref QuestSequence reference152 = ref span199[num]; QuestSequence obj133 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list201 = new List(num2); - CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1054339u, new Vector3(-167.19312f, 16.031612f, -333.3944f), 1190) + index2 = 1; + List list201 = new List(index2); + CollectionsMarshal.SetCount(list201, index2); + Span span201 = CollectionsMarshal.AsSpan(list201); + num2 = 0; + span201[num2] = new QuestStep(EInteractionType.Interact, 1054339u, new Vector3(-167.19312f, 16.031612f, -333.3944f), 1190) { Fly = true }; obj133.Steps = list201; reference152 = obj133; - ref QuestSequence reference153 = ref span68[2]; + num++; + ref QuestSequence reference153 = ref span199[num]; QuestSequence obj134 = new QuestSequence { Sequence = 2 @@ -382842,18 +465732,23 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1054342u, new Vector3(-262.92822f, 32f, -658.2894f), 1191); + Span span202 = CollectionsMarshal.AsSpan(list202); + index2 = 0; + span202[index2] = new QuestStep(EInteractionType.Interact, 1054342u, new Vector3(-262.92822f, 32f, -658.2894f), 1191); obj134.Steps = list202; reference153 = obj134; - ref QuestSequence reference154 = ref span68[3]; + num++; + ref QuestSequence reference154 = ref span199[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054357u, new Vector3(141.2832f, 42f, -351.9494f), 1185) + index2 = 1; + List list203 = new List(index2); + CollectionsMarshal.SetCount(list203, index2); + Span span203 = CollectionsMarshal.AsSpan(list203); + num2 = 0; + span203[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054357u, new Vector3(141.2832f, 42f, -351.9494f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -382878,13 +465773,16 @@ public static class AssemblyQuestLoader num = 1; List list204 = new List(num); CollectionsMarshal.SetCount(list204, num); - CollectionsMarshal.AsSpan(list204)[0] = "CryoTechnic"; + Span span204 = CollectionsMarshal.AsSpan(list204); + index = 0; + span204[index] = "CryoTechnic"; questRoot24.Author = list204; - num = 6; - List list205 = new List(num); - CollectionsMarshal.SetCount(list205, num); - Span span69 = CollectionsMarshal.AsSpan(list205); - ref QuestSequence reference155 = ref span69[0]; + index = 6; + List list205 = new List(index); + CollectionsMarshal.SetCount(list205, index); + Span span205 = CollectionsMarshal.AsSpan(list205); + num = 0; + ref QuestSequence reference155 = ref span205[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 @@ -382892,7 +465790,9 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054642u, new Vector3(532.8602f, 105.007805f, 645.2887f), 1187) + Span span206 = CollectionsMarshal.AsSpan(list206); + index2 = 0; + span206[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054642u, new Vector3(532.8602f, 105.007805f, 645.2887f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, SkipConditions = new SkipConditions @@ -382905,22 +465805,26 @@ public static class AssemblyQuestLoader }; obj136.Steps = list206; reference155 = obj136; - ref QuestSequence reference156 = ref span69[1]; + num++; + ref QuestSequence reference156 = ref span205[num]; QuestSequence obj137 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list207 = new List(num2); - CollectionsMarshal.SetCount(list207, num2); - CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1054643u, new Vector3(514.3053f, 142.24991f, 793.3623f), 1187) + index2 = 1; + List list207 = new List(index2); + CollectionsMarshal.SetCount(list207, index2); + Span span207 = CollectionsMarshal.AsSpan(list207); + num2 = 0; + span207[num2] = new QuestStep(EInteractionType.Interact, 1054643u, new Vector3(514.3053f, 142.24991f, 793.3623f), 1187) { Fly = true, Land = true }; obj137.Steps = list207; reference156 = obj137; - ref QuestSequence reference157 = ref span69[2]; + num++; + ref QuestSequence reference157 = ref span205[num]; QuestSequence obj138 = new QuestSequence { Sequence = 2 @@ -382928,37 +465832,46 @@ public static class AssemblyQuestLoader num2 = 5; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span70 = CollectionsMarshal.AsSpan(list208); - span70[0] = new QuestStep(EInteractionType.Interact, 1054646u, new Vector3(488.7921f, 112.435005f, 704.12744f), 1187) + Span span208 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + span208[index2] = new QuestStep(EInteractionType.Interact, 1054646u, new Vector3(488.7921f, 112.435005f, 704.12744f), 1187) { Fly = true }; - span70[1] = new QuestStep(EInteractionType.Interact, 1054647u, new Vector3(496.20813f, 114.935f, 619.43994f), 1187); - span70[2] = new QuestStep(EInteractionType.Interact, 1054645u, new Vector3(528.1909f, 107.134995f, 532.3109f), 1187); - span70[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.62186f, 124.51217f, 558.175f), 1187) + index2++; + span208[index2] = new QuestStep(EInteractionType.Interact, 1054647u, new Vector3(496.20813f, 114.935f, 619.43994f), 1187); + index2++; + span208[index2] = new QuestStep(EInteractionType.Interact, 1054645u, new Vector3(528.1909f, 107.134995f, 532.3109f), 1187); + index2++; + span208[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.62186f, 124.51217f, 558.175f), 1187) { Fly = false }; - span70[4] = new QuestStep(EInteractionType.Interact, 1054644u, new Vector3(376.51636f, 124.51213f, 549.0653f), 1187); + index2++; + span208[index2] = new QuestStep(EInteractionType.Interact, 1054644u, new Vector3(376.51636f, 124.51213f, 549.0653f), 1187); obj138.Steps = list208; reference157 = obj138; - ref QuestSequence reference158 = ref span69[3]; + num++; + ref QuestSequence reference158 = ref span205[num]; QuestSequence obj139 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span71 = CollectionsMarshal.AsSpan(list209); - span71[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(387.4519f, 124.59686f, 559.0204f), 1187); - span71[1] = new QuestStep(EInteractionType.Interact, 1054641u, new Vector3(504.2953f, 142.24991f, 787.6859f), 1187) + index2 = 2; + List list209 = new List(index2); + CollectionsMarshal.SetCount(list209, index2); + Span span209 = CollectionsMarshal.AsSpan(list209); + num2 = 0; + span209[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(387.4519f, 124.59686f, 559.0204f), 1187); + num2++; + span209[num2] = new QuestStep(EInteractionType.Interact, 1054641u, new Vector3(504.2953f, 142.24991f, 787.6859f), 1187) { Fly = true }; obj139.Steps = list209; reference158 = obj139; - ref QuestSequence reference159 = ref span69[4]; + num++; + ref QuestSequence reference159 = ref span205[num]; QuestSequence obj140 = new QuestSequence { Sequence = 4 @@ -382966,24 +465879,29 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1054641u, new Vector3(504.2953f, 142.24991f, 787.6859f), 1187); + Span span210 = CollectionsMarshal.AsSpan(list210); + index2 = 0; + span210[index2] = new QuestStep(EInteractionType.Interact, 1054641u, new Vector3(504.2953f, 142.24991f, 787.6859f), 1187); obj140.Steps = list210; reference159 = obj140; - ref QuestSequence reference160 = ref span69[5]; + num++; + ref QuestSequence reference160 = ref span205[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list211 = new List(num2); - CollectionsMarshal.SetCount(list211, num2); - Span span72 = CollectionsMarshal.AsSpan(list211); - span72[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 2; + List list211 = new List(index2); + CollectionsMarshal.SetCount(list211, index2); + Span span211 = CollectionsMarshal.AsSpan(list211); + num2 = 0; + span211[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 46198u, ItemCount = 3 }; - span72[1] = new QuestStep(EInteractionType.CompleteQuest, 1054641u, new Vector3(504.2953f, 142.24991f, 787.6859f), 1187) + num2++; + span211[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054641u, new Vector3(504.2953f, 142.24991f, 787.6859f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; @@ -382996,13 +465914,16 @@ public static class AssemblyQuestLoader num = 1; List list212 = new List(num); CollectionsMarshal.SetCount(list212, num); - CollectionsMarshal.AsSpan(list212)[0] = "CryoTechnic"; + Span span212 = CollectionsMarshal.AsSpan(list212); + index = 0; + span212[index] = "CryoTechnic"; questRoot25.Author = list212; - num = 6; - List list213 = new List(num); - CollectionsMarshal.SetCount(list213, num); - Span span73 = CollectionsMarshal.AsSpan(list213); - ref QuestSequence reference161 = ref span73[0]; + index = 6; + List list213 = new List(index); + CollectionsMarshal.SetCount(list213, index); + Span span213 = CollectionsMarshal.AsSpan(list213); + num = 0; + ref QuestSequence reference161 = ref span213[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -383010,7 +465931,9 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + Span span214 = CollectionsMarshal.AsSpan(list214); + index2 = 0; + span214[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383024,34 +465947,40 @@ public static class AssemblyQuestLoader }; obj142.Steps = list214; reference161 = obj142; - ref QuestSequence reference162 = ref span73[1]; + num++; + ref QuestSequence reference162 = ref span213[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list215 = new List(num2); - CollectionsMarshal.SetCount(list215, num2); - Span span74 = CollectionsMarshal.AsSpan(list215); - ref QuestStep reference163 = ref span74[0]; + index2 = 2; + List list215 = new List(index2); + CollectionsMarshal.SetCount(list215, index2); + Span span215 = CollectionsMarshal.AsSpan(list215); + num2 = 0; + ref QuestStep reference163 = ref span215[num2]; QuestStep obj144 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 }; SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - num3 = 1; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - CollectionsMarshal.AsSpan(list216)[0] = 1187; + index3 = 1; + List list216 = new List(index3); + CollectionsMarshal.SetCount(list216, index3); + Span span216 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span216[num3] = 1187; skipStepConditions11.NotInTerritory = list216; skipConditions13.StepIf = skipStepConditions11; obj144.SkipConditions = skipConditions13; reference163 = obj144; - span74[1] = new QuestStep(EInteractionType.Interact, 1054650u, new Vector3(16.983276f, 0.4f, 145.09802f), 1297); + num2++; + span215[num2] = new QuestStep(EInteractionType.Interact, 1054650u, new Vector3(16.983276f, 0.4f, 145.09802f), 1297); obj143.Steps = list215; reference162 = obj143; - ref QuestSequence reference164 = ref span73[2]; + num++; + ref QuestSequence reference164 = ref span213[num]; QuestSequence obj145 = new QuestSequence { Sequence = 2 @@ -383059,21 +465988,26 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Emote, 1054651u, new Vector3(22.537537f, 0.4f, 146.68494f), 1297) + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new QuestStep(EInteractionType.Emote, 1054651u, new Vector3(22.537537f, 0.4f, 146.68494f), 1297) { Emote = EEmote.Soothe }; obj145.Steps = list217; reference164 = obj145; - ref QuestSequence reference165 = ref span73[3]; + num++; + ref QuestSequence reference165 = ref span213[num]; QuestSequence obj146 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list218 = new List(num2); - CollectionsMarshal.SetCount(list218, num2); - CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1054652u, new Vector3(403.79956f, 122.535f, 590.0206f), 1187) + index2 = 1; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + span218[num2] = new QuestStep(EInteractionType.Interact, 1054652u, new Vector3(403.79956f, 122.535f, 590.0206f), 1187) { Fly = true, Land = true, @@ -383088,7 +466022,8 @@ public static class AssemblyQuestLoader }; obj146.Steps = list218; reference165 = obj146; - ref QuestSequence reference166 = ref span73[4]; + num++; + ref QuestSequence reference166 = ref span213[num]; QuestSequence obj147 = new QuestSequence { Sequence = 4 @@ -383096,24 +466031,29 @@ public static class AssemblyQuestLoader num2 = 2; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span75 = CollectionsMarshal.AsSpan(list219); - span75[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) + Span span219 = CollectionsMarshal.AsSpan(list219); + index2 = 0; + span219[index2] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46200u, ItemCount = 1 }; - span75[1] = new QuestStep(EInteractionType.Interact, 1054652u, new Vector3(403.79956f, 122.535f, 590.0206f), 1187); + index2++; + span219[index2] = new QuestStep(EInteractionType.Interact, 1054652u, new Vector3(403.79956f, 122.535f, 590.0206f), 1187); obj147.Steps = list219; reference166 = obj147; - ref QuestSequence reference167 = ref span73[5]; + num++; + ref QuestSequence reference167 = ref span213[num]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list220 = new List(num2); - CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + index2 = 1; + List list220 = new List(index2); + CollectionsMarshal.SetCount(list220, index2); + Span span220 = CollectionsMarshal.AsSpan(list220); + num2 = 0; + span220[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, Land = true, @@ -383140,13 +466080,16 @@ public static class AssemblyQuestLoader num = 1; List list221 = new List(num); CollectionsMarshal.SetCount(list221, num); - CollectionsMarshal.AsSpan(list221)[0] = "CryoTechnic"; + Span span221 = CollectionsMarshal.AsSpan(list221); + index = 0; + span221[index] = "CryoTechnic"; questRoot26.Author = list221; - num = 5; - List list222 = new List(num); - CollectionsMarshal.SetCount(list222, num); - Span span76 = CollectionsMarshal.AsSpan(list222); - ref QuestSequence reference168 = ref span76[0]; + index = 5; + List list222 = new List(index); + CollectionsMarshal.SetCount(list222, index); + Span span222 = CollectionsMarshal.AsSpan(list222); + num = 0; + ref QuestSequence reference168 = ref span222[num]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -383154,7 +466097,9 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + span223[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383168,21 +466113,25 @@ public static class AssemblyQuestLoader }; obj149.Steps = list223; reference168 = obj149; - ref QuestSequence reference169 = ref span76[1]; + num++; + ref QuestSequence reference169 = ref span222[num]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list224 = new List(num2); - CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1054673u, new Vector3(433.40198f, 116.435f, 677.14954f), 1187) + index2 = 1; + List list224 = new List(index2); + CollectionsMarshal.SetCount(list224, index2); + Span span224 = CollectionsMarshal.AsSpan(list224); + num2 = 0; + span224[num2] = new QuestStep(EInteractionType.Interact, 1054673u, new Vector3(433.40198f, 116.435f, 677.14954f), 1187) { Fly = true }; obj150.Steps = list224; reference169 = obj150; - ref QuestSequence reference170 = ref span76[2]; + num++; + ref QuestSequence reference170 = ref span222[num]; QuestSequence obj151 = new QuestSequence { Sequence = 2 @@ -383190,8 +466139,9 @@ public static class AssemblyQuestLoader num2 = 2; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span77 = CollectionsMarshal.AsSpan(list225); - ref QuestStep reference171 = ref span77[0]; + Span span225 = CollectionsMarshal.AsSpan(list225); + index2 = 0; + ref QuestStep reference171 = ref span225[index2]; QuestStep obj152 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297, @@ -383202,42 +466152,51 @@ public static class AssemblyQuestLoader num3 = 1; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - CollectionsMarshal.AsSpan(list226)[0] = 1187; + Span span226 = CollectionsMarshal.AsSpan(list226); + index3 = 0; + span226[index3] = 1187; skipStepConditions12.NotInTerritory = list226; skipConditions14.StepIf = skipStepConditions12; obj152.SkipConditions = skipConditions14; reference171 = obj152; - span77[1] = new QuestStep(EInteractionType.Interact, 1054654u, new Vector3(-26.352356f, 0.19851297f, 65.11023f), 1297); + index2++; + span225[index2] = new QuestStep(EInteractionType.Interact, 1054654u, new Vector3(-26.352356f, 0.19851297f, 65.11023f), 1297); obj151.Steps = list225; reference170 = obj151; - ref QuestSequence reference172 = ref span76[3]; + num++; + ref QuestSequence reference172 = ref span222[num]; QuestSequence obj153 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - Span span78 = CollectionsMarshal.AsSpan(list227); - ref QuestStep reference173 = ref span78[0]; + index2 = 2; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + Span span227 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + ref QuestStep reference173 = ref span227[num2]; QuestStep obj154 = new QuestStep(EInteractionType.Interact, 2014858u, new Vector3(-0.9003296f, 23.330994f, -89.21954f), 1297) { TargetTerritoryId = (ushort)1187 }; SkipConditions skipConditions15 = new SkipConditions(); SkipStepConditions skipStepConditions13 = new SkipStepConditions(); - num3 = 1; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - CollectionsMarshal.AsSpan(list228)[0] = 1297; + index3 = 1; + List list228 = new List(index3); + CollectionsMarshal.SetCount(list228, index3); + Span span228 = CollectionsMarshal.AsSpan(list228); + num3 = 0; + span228[num3] = 1297; skipStepConditions13.NotInTerritory = list228; skipConditions15.StepIf = skipStepConditions13; obj154.SkipConditions = skipConditions15; reference173 = obj154; - span78[1] = new QuestStep(EInteractionType.Interact, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187); + num2++; + span227[num2] = new QuestStep(EInteractionType.Interact, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187); obj153.Steps = list227; reference172 = obj153; - ref QuestSequence reference174 = ref span76[4]; + num++; + ref QuestSequence reference174 = ref span222[num]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue @@ -383245,13 +466204,15 @@ public static class AssemblyQuestLoader num2 = 2; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span79 = CollectionsMarshal.AsSpan(list229); - span79[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span229 = CollectionsMarshal.AsSpan(list229); + index2 = 0; + span229[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46202u, ItemCount = 1 }; - span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + index2++; + span229[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383277,21 +466238,26 @@ public static class AssemblyQuestLoader num = 1; List list230 = new List(num); CollectionsMarshal.SetCount(list230, num); - CollectionsMarshal.AsSpan(list230)[0] = "WigglyMuffin, CryoTechnic"; + Span span230 = CollectionsMarshal.AsSpan(list230); + index = 0; + span230[index] = "WigglyMuffin, CryoTechnic"; questRoot27.Author = list230; - num = 6; - List list231 = new List(num); - CollectionsMarshal.SetCount(list231, num); - Span span80 = CollectionsMarshal.AsSpan(list231); - ref QuestSequence reference175 = ref span80[0]; + index = 6; + List list231 = new List(index); + CollectionsMarshal.SetCount(list231, index); + Span span231 = CollectionsMarshal.AsSpan(list231); + num = 0; + ref QuestSequence reference175 = ref span231[num]; QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + span232[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383305,7 +466271,8 @@ public static class AssemblyQuestLoader }; obj156.Steps = list232; reference175 = obj156; - ref QuestSequence reference176 = ref span80[1]; + num++; + ref QuestSequence reference176 = ref span231[num]; QuestSequence obj157 = new QuestSequence { Sequence = 1 @@ -383313,8 +466280,9 @@ public static class AssemblyQuestLoader num2 = 2; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span81 = CollectionsMarshal.AsSpan(list233); - ref QuestStep reference177 = ref span81[0]; + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + ref QuestStep reference177 = ref span233[index2]; QuestStep obj158 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -383324,26 +466292,33 @@ public static class AssemblyQuestLoader num3 = 1; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = 1187; + Span span234 = CollectionsMarshal.AsSpan(list234); + index3 = 0; + span234[index3] = 1187; skipStepConditions14.NotInTerritory = list234; skipConditions16.StepIf = skipStepConditions14; obj158.SkipConditions = skipConditions16; reference177 = obj158; - span81[1] = new QuestStep(EInteractionType.Interact, 1054655u, new Vector3(-71.61066f, 5.9649034f, 65.72058f), 1297); + index2++; + span233[index2] = new QuestStep(EInteractionType.Interact, 1054655u, new Vector3(-71.61066f, 5.9649034f, 65.72058f), 1297); obj157.Steps = list233; reference176 = obj157; - ref QuestSequence reference178 = ref span80[2]; + num++; + ref QuestSequence reference178 = ref span231[num]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1054674u, new Vector3(-134.11157f, 6.5164585f, 61.81433f), 1297); + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + Span span235 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span235[num2] = new QuestStep(EInteractionType.Interact, 1054674u, new Vector3(-134.11157f, 6.5164585f, 61.81433f), 1297); obj159.Steps = list235; reference178 = obj159; - ref QuestSequence reference179 = ref span80[3]; + num++; + ref QuestSequence reference179 = ref span231[num]; QuestSequence obj160 = new QuestSequence { Sequence = 3 @@ -383351,7 +466326,9 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1054657u, new Vector3(446.1891f, 118.92377f, 543.93823f), 1187) + Span span236 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span236[index2] = new QuestStep(EInteractionType.Interact, 1054657u, new Vector3(446.1891f, 118.92377f, 543.93823f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383365,15 +466342,18 @@ public static class AssemblyQuestLoader }; obj160.Steps = list236; reference179 = obj160; - ref QuestSequence reference180 = ref span80[4]; + num++; + ref QuestSequence reference180 = ref span231[num]; QuestSequence obj161 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + Span span237 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span237[num2] = new QuestStep(EInteractionType.Interact, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383387,7 +466367,8 @@ public static class AssemblyQuestLoader }; obj161.Steps = list237; reference180 = obj161; - ref QuestSequence reference181 = ref span80[5]; + num++; + ref QuestSequence reference181 = ref span231[num]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue @@ -383395,13 +466376,15 @@ public static class AssemblyQuestLoader num2 = 2; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span82 = CollectionsMarshal.AsSpan(list238); - span82[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span238 = CollectionsMarshal.AsSpan(list238); + index2 = 0; + span238[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46204u, ItemCount = 1 }; - span82[1] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + index2++; + span238[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383427,21 +466410,26 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - CollectionsMarshal.AsSpan(list239)[0] = "WigglyMuffin"; + Span span239 = CollectionsMarshal.AsSpan(list239); + index = 0; + span239[index] = "WigglyMuffin"; questRoot28.Author = list239; - num = 8; - List list240 = new List(num); - CollectionsMarshal.SetCount(list240, num); - Span span83 = CollectionsMarshal.AsSpan(list240); - ref QuestSequence reference182 = ref span83[0]; + index = 8; + List list240 = new List(index); + CollectionsMarshal.SetCount(list240, index); + Span span240 = CollectionsMarshal.AsSpan(list240); + num = 0; + ref QuestSequence reference182 = ref span240[num]; QuestSequence obj163 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list241 = new List(num2); - CollectionsMarshal.SetCount(list241, num2); - CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + index2 = 1; + List list241 = new List(index2); + CollectionsMarshal.SetCount(list241, index2); + Span span241 = CollectionsMarshal.AsSpan(list241); + num2 = 0; + span241[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383455,7 +466443,8 @@ public static class AssemblyQuestLoader }; obj163.Steps = list241; reference182 = obj163; - ref QuestSequence reference183 = ref span83[1]; + num++; + ref QuestSequence reference183 = ref span240[num]; QuestSequence obj164 = new QuestSequence { Sequence = 1 @@ -383463,63 +466452,75 @@ public static class AssemblyQuestLoader num2 = 4; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span84 = CollectionsMarshal.AsSpan(list242); - ref QuestStep reference184 = ref span84[0]; + Span span242 = CollectionsMarshal.AsSpan(list242); + index2 = 0; + ref QuestStep reference184 = ref span242[index2]; QuestStep obj165 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 }; SkipConditions skipConditions17 = new SkipConditions(); SkipStepConditions skipStepConditions15 = new SkipStepConditions(); - num3 = 1; - List list243 = new List(num3); - CollectionsMarshal.SetCount(list243, num3); - CollectionsMarshal.AsSpan(list243)[0] = 1187; + index3 = 1; + List list243 = new List(index3); + CollectionsMarshal.SetCount(list243, index3); + Span span243 = CollectionsMarshal.AsSpan(list243); + num3 = 0; + span243[num3] = 1187; skipStepConditions15.NotInTerritory = list243; skipConditions17.StepIf = skipStepConditions15; obj165.SkipConditions = skipConditions17; reference184 = obj165; - span84[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.0223392f, 0.39999998f, 150.66316f), 1297) + index2++; + span242[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.0223392f, 0.39999998f, 150.66316f), 1297) { DisableNavmesh = true, Mount = true }; - span84[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.967834f, 4.053136f, 162.06543f), 1297) + index2++; + span242[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.967834f, 4.053136f, 162.06543f), 1297) { DisableNavmesh = true }; - span84[3] = new QuestStep(EInteractionType.Interact, 1055121u, new Vector3(-105.94348f, 4.0711794f, 153.1853f), 1297) + index2++; + span242[index2] = new QuestStep(EInteractionType.Interact, 1055121u, new Vector3(-105.94348f, 4.0711794f, 153.1853f), 1297) { DisableNavmesh = true }; obj164.Steps = list242; reference183 = obj164; - ref QuestSequence reference185 = ref span83[2]; + num++; + ref QuestSequence reference185 = ref span240[num]; QuestSequence obj166 = new QuestSequence { Sequence = 2 }; - num2 = 4; - List list244 = new List(num2); - CollectionsMarshal.SetCount(list244, num2); - Span span85 = CollectionsMarshal.AsSpan(list244); - span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.967834f, 4.053136f, 162.06543f), 1297) + index2 = 4; + List list244 = new List(index2); + CollectionsMarshal.SetCount(list244, index2); + Span span244 = CollectionsMarshal.AsSpan(list244); + num2 = 0; + span244[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.967834f, 4.053136f, 162.06543f), 1297) { DisableNavmesh = true, Mount = true }; - span85[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-2.9967885f, 0.39999998f, 162.83284f), 1297) + num2++; + span244[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-2.9967885f, 0.39999998f, 162.83284f), 1297) { DisableNavmesh = true }; - span85[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.107587256f, 40.897377f, 312.03854f), 1297) + num2++; + span244[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.107587256f, 40.897377f, 312.03854f), 1297) { DisableNavmesh = true }; - span85[3] = new QuestStep(EInteractionType.Interact, 2014980u, new Vector3(0.03678493f, 42.45785f, 314.6959f), 1297); + num2++; + span244[num2] = new QuestStep(EInteractionType.Interact, 2014980u, new Vector3(0.03678493f, 42.45785f, 314.6959f), 1297); obj166.Steps = list244; reference185 = obj166; - ref QuestSequence reference186 = ref span83[3]; + num++; + ref QuestSequence reference186 = ref span240[num]; QuestSequence obj167 = new QuestSequence { Sequence = 3 @@ -383527,30 +466528,36 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1054659u, new Vector3(-1.9684448f, 38.852776f, 302.6626f), 1297); + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.Interact, 1054659u, new Vector3(-1.9684448f, 38.852776f, 302.6626f), 1297); obj167.Steps = list245; reference186 = obj167; - ref QuestSequence reference187 = ref span83[4]; + num++; + ref QuestSequence reference187 = ref span240[num]; QuestSequence obj168 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list246 = new List(num2); - CollectionsMarshal.SetCount(list246, num2); - Span span86 = CollectionsMarshal.AsSpan(list246); - span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.3840146f, 0.37490904f, 181.20703f), 1297) + index2 = 2; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.3840146f, 0.37490904f, 181.20703f), 1297) { DisableNavmesh = true, Mount = true }; - span86[1] = new QuestStep(EInteractionType.Interact, 1054661u, new Vector3(-73.19757f, 5.964904f, 66.84973f), 1297) + num2++; + span246[num2] = new QuestStep(EInteractionType.Interact, 1054661u, new Vector3(-73.19757f, 5.964904f, 66.84973f), 1297) { DisableNavmesh = true }; obj168.Steps = list246; reference187 = obj168; - ref QuestSequence reference188 = ref span83[5]; + num++; + ref QuestSequence reference188 = ref span240[num]; QuestSequence obj169 = new QuestSequence { Sequence = 5 @@ -383558,8 +466565,9 @@ public static class AssemblyQuestLoader num2 = 2; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span87 = CollectionsMarshal.AsSpan(list247); - span87[0] = new QuestStep(EInteractionType.Interact, 1054675u, new Vector3(-360.61652f, 113.62453f, 560.1738f), 1187) + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.Interact, 1054675u, new Vector3(-360.61652f, 113.62453f, 560.1738f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383576,7 +466584,8 @@ public static class AssemblyQuestLoader } } }; - span87[1] = new QuestStep(EInteractionType.Interact, 1054662u, new Vector3(-355.51996f, 101.70931f, 497.0016f), 1187) + index2++; + span247[index2] = new QuestStep(EInteractionType.Interact, 1054662u, new Vector3(-355.51996f, 101.70931f, 497.0016f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383595,15 +466604,18 @@ public static class AssemblyQuestLoader }; obj169.Steps = list247; reference188 = obj169; - ref QuestSequence reference189 = ref span83[6]; + num++; + ref QuestSequence reference189 = ref span240[num]; QuestSequence obj170 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + index2 = 1; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + span248[num2] = new QuestStep(EInteractionType.Interact, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383622,7 +466634,8 @@ public static class AssemblyQuestLoader }; obj170.Steps = list248; reference189 = obj170; - ref QuestSequence reference190 = ref span83[7]; + num++; + ref QuestSequence reference190 = ref span240[num]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -383630,13 +466643,15 @@ public static class AssemblyQuestLoader num2 = 2; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span88 = CollectionsMarshal.AsSpan(list249); - span88[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) + Span span249 = CollectionsMarshal.AsSpan(list249); + index2 = 0; + span249[index2] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46206u, ItemCount = 1 }; - span88[1] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + index2++; + span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383662,21 +466677,26 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - CollectionsMarshal.AsSpan(list250)[0] = "WigglyMuffin"; + Span span250 = CollectionsMarshal.AsSpan(list250); + index = 0; + span250[index] = "WigglyMuffin"; questRoot29.Author = list250; - num = 3; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span89 = CollectionsMarshal.AsSpan(list251); - ref QuestSequence reference191 = ref span89[0]; + index = 3; + List list251 = new List(index); + CollectionsMarshal.SetCount(list251, index); + Span span251 = CollectionsMarshal.AsSpan(list251); + num = 0; + ref QuestSequence reference191 = ref span251[num]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + index2 = 1; + List list252 = new List(index2); + CollectionsMarshal.SetCount(list252, index2); + Span span252 = CollectionsMarshal.AsSpan(list252); + num2 = 0; + span252[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383690,7 +466710,8 @@ public static class AssemblyQuestLoader }; obj172.Steps = list252; reference191 = obj172; - ref QuestSequence reference192 = ref span89[1]; + num++; + ref QuestSequence reference192 = ref span251[num]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -383698,8 +466719,9 @@ public static class AssemblyQuestLoader num2 = 4; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span90 = CollectionsMarshal.AsSpan(list253); - ref QuestStep reference193 = ref span90[0]; + Span span253 = CollectionsMarshal.AsSpan(list253); + index2 = 0; + ref QuestStep reference193 = ref span253[index2]; QuestStep obj174 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -383709,18 +466731,24 @@ public static class AssemblyQuestLoader num3 = 1; List list254 = new List(num3); CollectionsMarshal.SetCount(list254, num3); - CollectionsMarshal.AsSpan(list254)[0] = 1187; + Span span254 = CollectionsMarshal.AsSpan(list254); + index3 = 0; + span254[index3] = 1187; skipStepConditions16.NotInTerritory = list254; skipConditions18.StepIf = skipStepConditions16; obj174.SkipConditions = skipConditions18; reference193 = obj174; - span90[1] = new QuestStep(EInteractionType.Interact, 1054668u, new Vector3(-56.565247f, 4.000225f, 50.736206f), 1297); - ref QuestStep reference194 = ref span90[2]; + index2++; + span253[index2] = new QuestStep(EInteractionType.Interact, 1054668u, new Vector3(-56.565247f, 4.000225f, 50.736206f), 1297); + index2++; + ref QuestStep reference194 = ref span253[index2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1054669u, new Vector3(-50.30902f, 1.3218602f, 175.09729f), 1297); - num3 = 1; - List list255 = new List(num3); - CollectionsMarshal.SetCount(list255, num3); - CollectionsMarshal.AsSpan(list255)[0] = new DialogueChoice + index3 = 1; + List list255 = new List(index3); + CollectionsMarshal.SetCount(list255, index3); + Span span255 = CollectionsMarshal.AsSpan(list255); + num3 = 0; + span255[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANYOK006_05335_Q1_000_000"), @@ -383728,18 +466756,22 @@ public static class AssemblyQuestLoader }; questStep23.DialogueChoices = list255; reference194 = questStep23; - span90[3] = new QuestStep(EInteractionType.Interact, 1054667u, new Vector3(71.33594f, 3.942892f, 186.93823f), 1297); + index2++; + span253[index2] = new QuestStep(EInteractionType.Interact, 1054667u, new Vector3(71.33594f, 3.942892f, 186.93823f), 1297); obj173.Steps = list253; reference192 = obj173; - ref QuestSequence reference195 = ref span89[2]; + num++; + ref QuestSequence reference195 = ref span251[num]; QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054670u, new Vector3(-2.2736206f, 38.852776f, 304.82947f), 1297); + index2 = 1; + List list256 = new List(index2); + CollectionsMarshal.SetCount(list256, index2); + Span span256 = CollectionsMarshal.AsSpan(list256); + num2 = 0; + span256[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054670u, new Vector3(-2.2736206f, 38.852776f, 304.82947f), 1297); obj175.Steps = list256; reference195 = obj175; questRoot29.QuestSequence = list251; @@ -383749,13 +466781,16 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "WigglyMuffin"; + Span span257 = CollectionsMarshal.AsSpan(list257); + index = 0; + span257[index] = "WigglyMuffin"; questRoot30.Author = list257; - num = 4; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span91 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference196 = ref span91[0]; + index = 4; + List list258 = new List(index); + CollectionsMarshal.SetCount(list258, index); + Span span258 = CollectionsMarshal.AsSpan(list258); + num = 0; + ref QuestSequence reference196 = ref span258[num]; QuestSequence obj176 = new QuestSequence { Sequence = 0 @@ -383763,7 +466798,9 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span259[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383777,16 +466814,18 @@ public static class AssemblyQuestLoader }; obj176.Steps = list259; reference196 = obj176; - ref QuestSequence reference197 = ref span91[1]; + num++; + ref QuestSequence reference197 = ref span258[num]; QuestSequence obj177 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - Span span92 = CollectionsMarshal.AsSpan(list260); - ref QuestStep reference198 = ref span92[0]; + index2 = 4; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + ref QuestStep reference198 = ref span260[num2]; QuestStep obj178 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297, @@ -383797,23 +466836,29 @@ public static class AssemblyQuestLoader num3 = 1; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - CollectionsMarshal.AsSpan(list261)[0] = 1187; + Span span261 = CollectionsMarshal.AsSpan(list261); + index3 = 0; + span261[index3] = 1187; skipStepConditions17.NotInTerritory = list261; skipConditions19.StepIf = skipStepConditions17; obj178.SkipConditions = skipConditions19; reference198 = obj178; - span92[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + num2++; + span260[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) { Fly = false }; - span92[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.52385f, 1.8905392f, 65.476295f), 1297) + num2++; + span260[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.52385f, 1.8905392f, 65.476295f), 1297) { Fly = false }; - span92[3] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); + num2++; + span260[num2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); obj177.Steps = list260; reference197 = obj177; - ref QuestSequence reference199 = ref span91[2]; + num++; + ref QuestSequence reference199 = ref span258[num]; QuestSequence obj179 = new QuestSequence { Sequence = 2 @@ -383821,33 +466866,40 @@ public static class AssemblyQuestLoader num2 = 4; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span93 = CollectionsMarshal.AsSpan(list262); - span93[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span262 = CollectionsMarshal.AsSpan(list262); + index2 = 0; + span262[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46208u, ItemCount = 3 }; - span93[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.52385f, 1.8905392f, 65.476295f), 1297) + index2++; + span262[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.52385f, 1.8905392f, 65.476295f), 1297) { Mount = true, Fly = false }; - span93[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.10631f, 1.8898277f, 100.54272f), 1297) + index2++; + span262[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.10631f, 1.8898277f, 100.54272f), 1297) { Fly = false }; - span93[3] = new QuestStep(EInteractionType.Interact, 1055816u, new Vector3(98.924194f, 1.890541f, 98.74109f), 1297); + index2++; + span262[index2] = new QuestStep(EInteractionType.Interact, 1055816u, new Vector3(98.924194f, 1.890541f, 98.74109f), 1297); obj179.Steps = list262; reference199 = obj179; - ref QuestSequence reference200 = ref span91[3]; + num++; + ref QuestSequence reference200 = ref span258[num]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list263 = new List(num2); - CollectionsMarshal.SetCount(list263, num2); - CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list263 = new List(index2); + CollectionsMarshal.SetCount(list263, index2); + Span span263 = CollectionsMarshal.AsSpan(list263); + num2 = 0; + span263[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -383869,13 +466921,16 @@ public static class AssemblyQuestLoader num = 1; List list264 = new List(num); CollectionsMarshal.SetCount(list264, num); - CollectionsMarshal.AsSpan(list264)[0] = "WigglyMuffin"; + Span span264 = CollectionsMarshal.AsSpan(list264); + index = 0; + span264[index] = "WigglyMuffin"; questRoot31.Author = list264; - num = 3; - List list265 = new List(num); - CollectionsMarshal.SetCount(list265, num); - Span span94 = CollectionsMarshal.AsSpan(list265); - ref QuestSequence reference201 = ref span94[0]; + index = 3; + List list265 = new List(index); + CollectionsMarshal.SetCount(list265, index); + Span span265 = CollectionsMarshal.AsSpan(list265); + num = 0; + ref QuestSequence reference201 = ref span265[num]; QuestSequence obj181 = new QuestSequence { Sequence = 0 @@ -383883,7 +466938,9 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span266 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span266[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383897,18 +466954,22 @@ public static class AssemblyQuestLoader }; obj181.Steps = list266; reference201 = obj181; - ref QuestSequence reference202 = ref span94[1]; + num++; + ref QuestSequence reference202 = ref span265[num]; QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187); + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span267[num2] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187); obj182.Steps = list267; reference202 = obj182; - ref QuestSequence reference203 = ref span94[2]; + num++; + ref QuestSequence reference203 = ref span265[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue @@ -383916,8 +466977,9 @@ public static class AssemblyQuestLoader num2 = 2; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - Span span95 = CollectionsMarshal.AsSpan(list268); - span95[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) + Span span268 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span268[index2] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46210u, ItemCount = 2, @@ -383929,7 +466991,8 @@ public static class AssemblyQuestLoader } } }; - span95[1] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187); + index2++; + span268[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187); obj183.Steps = list268; reference203 = obj183; questRoot31.QuestSequence = list265; @@ -383939,21 +467002,26 @@ public static class AssemblyQuestLoader num = 1; List list269 = new List(num); CollectionsMarshal.SetCount(list269, num); - CollectionsMarshal.AsSpan(list269)[0] = "CryoTechnic"; + Span span269 = CollectionsMarshal.AsSpan(list269); + index = 0; + span269[index] = "CryoTechnic"; questRoot32.Author = list269; - num = 4; - List list270 = new List(num); - CollectionsMarshal.SetCount(list270, num); - Span span96 = CollectionsMarshal.AsSpan(list270); - ref QuestSequence reference204 = ref span96[0]; + index = 4; + List list270 = new List(index); + CollectionsMarshal.SetCount(list270, index); + Span span270 = CollectionsMarshal.AsSpan(list270); + num = 0; + ref QuestSequence reference204 = ref span270[num]; QuestSequence obj184 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + span271[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -383967,7 +467035,8 @@ public static class AssemblyQuestLoader }; obj184.Steps = list271; reference204 = obj184; - ref QuestSequence reference205 = ref span96[1]; + num++; + ref QuestSequence reference205 = ref span270[num]; QuestSequence obj185 = new QuestSequence { Sequence = 1 @@ -383975,7 +467044,9 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.Interact, 1055817u, new Vector3(458.15198f, 114.935f, 657.3739f), 1187) + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.Interact, 1055817u, new Vector3(458.15198f, 114.935f, 657.3739f), 1187) { Fly = true, Land = true, @@ -383990,24 +467061,28 @@ public static class AssemblyQuestLoader }; obj185.Steps = list272; reference205 = obj185; - ref QuestSequence reference206 = ref span96[2]; + num++; + ref QuestSequence reference206 = ref span270[num]; QuestSequence obj186 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - Span span97 = CollectionsMarshal.AsSpan(list273); - span97[0] = new QuestStep(EInteractionType.Craft, null, null, 959) + index2 = 2; + List list273 = new List(index2); + CollectionsMarshal.SetCount(list273, index2); + Span span273 = CollectionsMarshal.AsSpan(list273); + num2 = 0; + span273[num2] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 46212u, ItemCount = 3 }; - span97[1] = new QuestStep(EInteractionType.Interact, 1055817u, new Vector3(458.15198f, 114.935f, 657.3739f), 1187); + num2++; + span273[num2] = new QuestStep(EInteractionType.Interact, 1055817u, new Vector3(458.15198f, 114.935f, 657.3739f), 1187); obj186.Steps = list273; reference206 = obj186; - ref QuestSequence reference207 = ref span96[3]; + num++; + ref QuestSequence reference207 = ref span270[num]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue @@ -384015,7 +467090,9 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span274 = CollectionsMarshal.AsSpan(list274); + index2 = 0; + span274[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -384036,21 +467113,26 @@ public static class AssemblyQuestLoader num = 1; List list275 = new List(num); CollectionsMarshal.SetCount(list275, num); - CollectionsMarshal.AsSpan(list275)[0] = "CryoTechnic"; + Span span275 = CollectionsMarshal.AsSpan(list275); + index = 0; + span275[index] = "CryoTechnic"; questRoot33.Author = list275; - num = 3; - List list276 = new List(num); - CollectionsMarshal.SetCount(list276, num); - Span span98 = CollectionsMarshal.AsSpan(list276); - ref QuestSequence reference208 = ref span98[0]; + index = 3; + List list276 = new List(index); + CollectionsMarshal.SetCount(list276, index); + Span span276 = CollectionsMarshal.AsSpan(list276); + num = 0; + ref QuestSequence reference208 = ref span276[num]; QuestSequence obj188 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span277[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -384064,7 +467146,8 @@ public static class AssemblyQuestLoader }; obj188.Steps = list277; reference208 = obj188; - ref QuestSequence reference209 = ref span98[1]; + num++; + ref QuestSequence reference209 = ref span276[num]; QuestSequence obj189 = new QuestSequence { Sequence = 1 @@ -384072,8 +467155,9 @@ public static class AssemblyQuestLoader num2 = 3; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span99 = CollectionsMarshal.AsSpan(list278); - ref QuestStep reference210 = ref span99[0]; + Span span278 = CollectionsMarshal.AsSpan(list278); + index2 = 0; + ref QuestStep reference210 = ref span278[index2]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 1055818u, new Vector3(583.276f, 120.7841f, 382.55884f), 1187) { Fly = true, @@ -384087,24 +467171,33 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List> list279 = new List>(num3); - CollectionsMarshal.SetCount(list279, num3); - Span> span100 = CollectionsMarshal.AsSpan(list279); - span100[0] = null; - ref List reference211 = ref span100[1]; + index3 = 6; + List> list279 = new List>(index3); + CollectionsMarshal.SetCount(list279, index3); + Span> span279 = CollectionsMarshal.AsSpan(list279); + num3 = 0; + span279[num3] = null; + num3++; + ref List reference211 = ref span279[num3]; int num4 = 1; List list280 = new List(num4); CollectionsMarshal.SetCount(list280, num4); - CollectionsMarshal.AsSpan(list280)[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + Span span280 = CollectionsMarshal.AsSpan(list280); + int index4 = 0; + span280[index4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference211 = list280; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = null; + num3++; + span279[num3] = null; + num3++; + span279[num3] = null; + num3++; + span279[num3] = null; + num3++; + span279[num3] = null; obj190.RequiredQuestVariables = list279; reference210 = obj190; - ref QuestStep reference212 = ref span99[1]; + index2++; + ref QuestStep reference212 = ref span278[index2]; QuestStep obj191 = new QuestStep(EInteractionType.Interact, 1055819u, new Vector3(442.31323f, 101.649635f, 363.21045f), 1187) { Fly = true, @@ -384121,21 +467214,30 @@ public static class AssemblyQuestLoader num3 = 6; List> list281 = new List>(num3); CollectionsMarshal.SetCount(list281, num3); - Span> span101 = CollectionsMarshal.AsSpan(list281); - span101[0] = null; - ref List reference213 = ref span101[1]; - num4 = 1; - List list282 = new List(num4); - CollectionsMarshal.SetCount(list282, num4); - CollectionsMarshal.AsSpan(list282)[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + Span> span281 = CollectionsMarshal.AsSpan(list281); + index3 = 0; + span281[index3] = null; + index3++; + ref List reference213 = ref span281[index3]; + index4 = 1; + List list282 = new List(index4); + CollectionsMarshal.SetCount(list282, index4); + Span span282 = CollectionsMarshal.AsSpan(list282); + num4 = 0; + span282[num4] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); reference213 = list282; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = null; + index3++; + span281[index3] = null; + index3++; + span281[index3] = null; + index3++; + span281[index3] = null; + index3++; + span281[index3] = null; obj191.RequiredQuestVariables = list281; reference212 = obj191; - ref QuestStep reference214 = ref span99[2]; + index2++; + ref QuestStep reference214 = ref span278[index2]; QuestStep obj192 = new QuestStep(EInteractionType.Interact, 1055820u, new Vector3(379.50696f, 78.73412f, 440.63464f), 1187) { Fly = true, @@ -384149,34 +467251,45 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List> list283 = new List>(num3); - CollectionsMarshal.SetCount(list283, num3); - Span> span102 = CollectionsMarshal.AsSpan(list283); - span102[0] = null; - ref List reference215 = ref span102[1]; + index3 = 6; + List> list283 = new List>(index3); + CollectionsMarshal.SetCount(list283, index3); + Span> span283 = CollectionsMarshal.AsSpan(list283); + num3 = 0; + span283[num3] = null; + num3++; + ref List reference215 = ref span283[num3]; num4 = 1; List list284 = new List(num4); CollectionsMarshal.SetCount(list284, num4); - CollectionsMarshal.AsSpan(list284)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + Span span284 = CollectionsMarshal.AsSpan(list284); + index4 = 0; + span284[index4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference215 = list284; - span102[2] = null; - span102[3] = null; - span102[4] = null; - span102[5] = null; + num3++; + span283[num3] = null; + num3++; + span283[num3] = null; + num3++; + span283[num3] = null; + num3++; + span283[num3] = null; obj192.RequiredQuestVariables = list283; reference214 = obj192; obj189.Steps = list278; reference209 = obj189; - ref QuestSequence reference216 = ref span98[2]; + num++; + ref QuestSequence reference216 = ref span276[num]; QuestSequence obj193 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list285 = new List(index2); + CollectionsMarshal.SetCount(list285, index2); + Span span285 = CollectionsMarshal.AsSpan(list285); + num2 = 0; + span285[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -384191,13 +467304,16 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - CollectionsMarshal.AsSpan(list286)[0] = "CryoTechnic"; + Span span286 = CollectionsMarshal.AsSpan(list286); + index = 0; + span286[index] = "CryoTechnic"; questRoot34.Author = list286; - num = 4; - List list287 = new List(num); - CollectionsMarshal.SetCount(list287, num); - Span span103 = CollectionsMarshal.AsSpan(list287); - ref QuestSequence reference217 = ref span103[0]; + index = 4; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + Span span287 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference217 = ref span287[num]; QuestSequence obj194 = new QuestSequence { Sequence = 0 @@ -384205,7 +467321,9 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span288 = CollectionsMarshal.AsSpan(list288); + index2 = 0; + span288[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -384219,16 +467337,18 @@ public static class AssemblyQuestLoader }; obj194.Steps = list288; reference217 = obj194; - ref QuestSequence reference218 = ref span103[1]; + num++; + ref QuestSequence reference218 = ref span287[num]; QuestSequence obj195 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list289 = new List(num2); - CollectionsMarshal.SetCount(list289, num2); - Span span104 = CollectionsMarshal.AsSpan(list289); - ref QuestStep reference219 = ref span104[0]; + index2 = 3; + List list289 = new List(index2); + CollectionsMarshal.SetCount(list289, index2); + Span span289 = CollectionsMarshal.AsSpan(list289); + num2 = 0; + ref QuestStep reference219 = ref span289[num2]; QuestStep obj196 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -384238,19 +467358,24 @@ public static class AssemblyQuestLoader num3 = 1; List list290 = new List(num3); CollectionsMarshal.SetCount(list290, num3); - CollectionsMarshal.AsSpan(list290)[0] = 1187; + Span span290 = CollectionsMarshal.AsSpan(list290); + index3 = 0; + span290[index3] = 1187; skipStepConditions18.NotInTerritory = list290; skipConditions20.StepIf = skipStepConditions18; obj196.SkipConditions = skipConditions20; reference219 = obj196; - span104[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + num2++; + span289[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) { Fly = false }; - span104[2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); + num2++; + span289[num2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); obj195.Steps = list289; reference218 = obj195; - ref QuestSequence reference220 = ref span103[2]; + num++; + ref QuestSequence reference220 = ref span287[num]; QuestSequence obj197 = new QuestSequence { Sequence = 2 @@ -384258,26 +467383,33 @@ public static class AssemblyQuestLoader num2 = 4; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span105 = CollectionsMarshal.AsSpan(list291); - span105[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span291 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span291[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46214u, ItemCount = 3 }; - span105[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(68.66426f, 1.8905385f, 65.188644f), 1297); - span105[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(89.68089f, 3.372309f, 67.41638f), 1297); - span105[3] = new QuestStep(EInteractionType.Interact, 1055821u, new Vector3(88.97534f, 3.3723087f, 75.791504f), 1297); + index2++; + span291[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(68.66426f, 1.8905385f, 65.188644f), 1297); + index2++; + span291[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(89.68089f, 3.372309f, 67.41638f), 1297); + index2++; + span291[index2] = new QuestStep(EInteractionType.Interact, 1055821u, new Vector3(88.97534f, 3.3723087f, 75.791504f), 1297); obj197.Steps = list291; reference220 = obj197; - ref QuestSequence reference221 = ref span103[3]; + num++; + ref QuestSequence reference221 = ref span287[num]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + Span span292 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + span292[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -384299,13 +467431,16 @@ public static class AssemblyQuestLoader num = 1; List list293 = new List(num); CollectionsMarshal.SetCount(list293, num); - CollectionsMarshal.AsSpan(list293)[0] = "CryoTechnic"; + Span span293 = CollectionsMarshal.AsSpan(list293); + index = 0; + span293[index] = "CryoTechnic"; questRoot35.Author = list293; - num = 4; - List list294 = new List(num); - CollectionsMarshal.SetCount(list294, num); - Span span106 = CollectionsMarshal.AsSpan(list294); - ref QuestSequence reference222 = ref span106[0]; + index = 4; + List list294 = new List(index); + CollectionsMarshal.SetCount(list294, index); + Span span294 = CollectionsMarshal.AsSpan(list294); + num = 0; + ref QuestSequence reference222 = ref span294[num]; QuestSequence obj199 = new QuestSequence { Sequence = 0 @@ -384313,7 +467448,9 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span295 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span295[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -384327,39 +467464,47 @@ public static class AssemblyQuestLoader }; obj199.Steps = list295; reference222 = obj199; - ref QuestSequence reference223 = ref span106[1]; + num++; + ref QuestSequence reference223 = ref span294[num]; QuestSequence obj200 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - Span span107 = CollectionsMarshal.AsSpan(list296); - ref QuestStep reference224 = ref span107[0]; + index2 = 4; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span296 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + ref QuestStep reference224 = ref span296[num2]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 }; SkipConditions skipConditions21 = new SkipConditions(); SkipStepConditions skipStepConditions19 = new SkipStepConditions(); - num3 = 1; - List list297 = new List(num3); - CollectionsMarshal.SetCount(list297, num3); - CollectionsMarshal.AsSpan(list297)[0] = 1187; + index3 = 1; + List list297 = new List(index3); + CollectionsMarshal.SetCount(list297, index3); + Span span297 = CollectionsMarshal.AsSpan(list297); + num3 = 0; + span297[num3] = 1187; skipStepConditions19.NotInTerritory = list297; skipConditions21.StepIf = skipStepConditions19; obj201.SkipConditions = skipConditions21; reference224 = obj201; - span107[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + num2++; + span296[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) { Fly = false }; - span107[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(89.2292f, 3.372309f, 66.11308f), 1297); - span107[3] = new QuestStep(EInteractionType.Interact, 1055821u, new Vector3(88.97534f, 3.3723087f, 75.791504f), 1297); + num2++; + span296[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(89.2292f, 3.372309f, 66.11308f), 1297); + num2++; + span296[num2] = new QuestStep(EInteractionType.Interact, 1055821u, new Vector3(88.97534f, 3.3723087f, 75.791504f), 1297); obj200.Steps = list296; reference223 = obj200; - ref QuestSequence reference225 = ref span106[2]; + num++; + ref QuestSequence reference225 = ref span294[num]; QuestSequence obj202 = new QuestSequence { Sequence = 2 @@ -384367,24 +467512,29 @@ public static class AssemblyQuestLoader num2 = 2; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span108 = CollectionsMarshal.AsSpan(list298); - span108[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span298 = CollectionsMarshal.AsSpan(list298); + index2 = 0; + span298[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46216u, ItemCount = 3 }; - span108[1] = new QuestStep(EInteractionType.Interact, 1055821u, new Vector3(88.97534f, 3.3723087f, 75.791504f), 1297); + index2++; + span298[index2] = new QuestStep(EInteractionType.Interact, 1055821u, new Vector3(88.97534f, 3.3723087f, 75.791504f), 1297); obj202.Steps = list298; reference225 = obj202; - ref QuestSequence reference226 = ref span106[3]; + num++; + ref QuestSequence reference226 = ref span294[num]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list299 = new List(index2); + CollectionsMarshal.SetCount(list299, index2); + Span span299 = CollectionsMarshal.AsSpan(list299); + num2 = 0; + span299[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -384406,13 +467556,16 @@ public static class AssemblyQuestLoader num = 1; List list300 = new List(num); CollectionsMarshal.SetCount(list300, num); - CollectionsMarshal.AsSpan(list300)[0] = "CryoTechnic"; + Span span300 = CollectionsMarshal.AsSpan(list300); + index = 0; + span300[index] = "CryoTechnic"; questRoot36.Author = list300; - num = 4; - List list301 = new List(num); - CollectionsMarshal.SetCount(list301, num); - Span span109 = CollectionsMarshal.AsSpan(list301); - ref QuestSequence reference227 = ref span109[0]; + index = 4; + List list301 = new List(index); + CollectionsMarshal.SetCount(list301, index); + Span span301 = CollectionsMarshal.AsSpan(list301); + num = 0; + ref QuestSequence reference227 = ref span301[num]; QuestSequence obj204 = new QuestSequence { Sequence = 0 @@ -384420,7 +467573,9 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span302 = CollectionsMarshal.AsSpan(list302); + index2 = 0; + span302[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -384434,15 +467589,18 @@ public static class AssemblyQuestLoader }; obj204.Steps = list302; reference227 = obj204; - ref QuestSequence reference228 = ref span109[1]; + num++; + ref QuestSequence reference228 = ref span301[num]; QuestSequence obj205 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list303 = new List(num2); - CollectionsMarshal.SetCount(list303, num2); - ref QuestStep reference229 = ref CollectionsMarshal.AsSpan(list303)[0]; + index2 = 1; + List list303 = new List(index2); + CollectionsMarshal.SetCount(list303, index2); + Span span303 = CollectionsMarshal.AsSpan(list303); + num2 = 0; + ref QuestStep reference229 = ref span303[num2]; QuestStep obj206 = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) { TargetTerritoryId = (ushort)1297 @@ -384452,14 +467610,17 @@ public static class AssemblyQuestLoader num3 = 1; List list304 = new List(num3); CollectionsMarshal.SetCount(list304, num3); - CollectionsMarshal.AsSpan(list304)[0] = 1187; + Span span304 = CollectionsMarshal.AsSpan(list304); + index3 = 0; + span304[index3] = 1187; skipStepConditions20.NotInTerritory = list304; skipConditions22.StepIf = skipStepConditions20; obj206.SkipConditions = skipConditions22; reference229 = obj206; obj205.Steps = list303; reference228 = obj205; - ref QuestSequence reference230 = ref span109[2]; + num++; + ref QuestSequence reference230 = ref span301[num]; QuestSequence obj207 = new QuestSequence { Sequence = 2 @@ -384467,28 +467628,33 @@ public static class AssemblyQuestLoader num2 = 2; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span110 = CollectionsMarshal.AsSpan(list305); - span110[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span305 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span305[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46218u, ItemCount = 3 }; - span110[1] = new QuestStep(EInteractionType.Interact, 1055824u, new Vector3(520.714f, 111.135f, 608.5145f), 1187) + index2++; + span305[index2] = new QuestStep(EInteractionType.Interact, 1055824u, new Vector3(520.714f, 111.135f, 608.5145f), 1187) { Fly = true, Land = true }; obj207.Steps = list305; reference230 = obj207; - ref QuestSequence reference231 = ref span109[3]; + num++; + ref QuestSequence reference231 = ref span301[num]; QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list306 = new List(num2); - CollectionsMarshal.SetCount(list306, num2); - CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list306 = new List(index2); + CollectionsMarshal.SetCount(list306, index2); + Span span306 = CollectionsMarshal.AsSpan(list306); + num2 = 0; + span306[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -384510,13 +467676,16 @@ public static class AssemblyQuestLoader num = 1; List list307 = new List(num); CollectionsMarshal.SetCount(list307, num); - CollectionsMarshal.AsSpan(list307)[0] = "WigglyMuffin"; + Span span307 = CollectionsMarshal.AsSpan(list307); + index = 0; + span307[index] = "WigglyMuffin"; questRoot37.Author = list307; - num = 4; - List list308 = new List(num); - CollectionsMarshal.SetCount(list308, num); - Span span111 = CollectionsMarshal.AsSpan(list308); - ref QuestSequence reference232 = ref span111[0]; + index = 4; + List list308 = new List(index); + CollectionsMarshal.SetCount(list308, index); + Span span308 = CollectionsMarshal.AsSpan(list308); + num = 0; + ref QuestSequence reference232 = ref span308[num]; QuestSequence obj209 = new QuestSequence { Sequence = 0 @@ -384524,7 +467693,9 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span309 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span309[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -384538,38 +467709,45 @@ public static class AssemblyQuestLoader }; obj209.Steps = list309; reference232 = obj209; - ref QuestSequence reference233 = ref span111[1]; + num++; + ref QuestSequence reference233 = ref span308[num]; QuestSequence obj210 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list310 = new List(num2); - CollectionsMarshal.SetCount(list310, num2); - Span span112 = CollectionsMarshal.AsSpan(list310); - ref QuestStep reference234 = ref span112[0]; + index2 = 3; + List list310 = new List(index2); + CollectionsMarshal.SetCount(list310, index2); + Span span310 = CollectionsMarshal.AsSpan(list310); + num2 = 0; + ref QuestStep reference234 = ref span310[num2]; QuestStep obj211 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 }; SkipConditions skipConditions23 = new SkipConditions(); SkipStepConditions skipStepConditions21 = new SkipStepConditions(); - num3 = 1; - List list311 = new List(num3); - CollectionsMarshal.SetCount(list311, num3); - CollectionsMarshal.AsSpan(list311)[0] = 1187; + index3 = 1; + List list311 = new List(index3); + CollectionsMarshal.SetCount(list311, index3); + Span span311 = CollectionsMarshal.AsSpan(list311); + num3 = 0; + span311[num3] = 1187; skipStepConditions21.NotInTerritory = list311; skipConditions23.StepIf = skipStepConditions21; obj211.SkipConditions = skipConditions23; reference234 = obj211; - span112[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + num2++; + span310[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) { Fly = false }; - span112[2] = new QuestStep(EInteractionType.Interact, 1055786u, new Vector3(97.24573f, 4.942853f, 198.19934f), 1297); + num2++; + span310[num2] = new QuestStep(EInteractionType.Interact, 1055786u, new Vector3(97.24573f, 4.942853f, 198.19934f), 1297); obj210.Steps = list310; reference233 = obj210; - ref QuestSequence reference235 = ref span111[2]; + num++; + ref QuestSequence reference235 = ref span308[num]; QuestSequence obj212 = new QuestSequence { Sequence = 2 @@ -384577,8 +467755,9 @@ public static class AssemblyQuestLoader num2 = 3; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span113 = CollectionsMarshal.AsSpan(list312); - ref QuestStep reference236 = ref span113[0]; + Span span312 = CollectionsMarshal.AsSpan(list312); + index2 = 0; + ref QuestStep reference236 = ref span312[index2]; QuestStep obj213 = new QuestStep(EInteractionType.UseItem, 2014944u, new Vector3(162.2566f, 3.905f, 88.95158f), 1297) { ItemId = 2003777u @@ -384586,47 +467765,64 @@ public static class AssemblyQuestLoader num3 = 6; List list313 = new List(num3); CollectionsMarshal.SetCount(list313, num3); - Span span114 = CollectionsMarshal.AsSpan(list313); - span114[0] = null; - span114[1] = null; - span114[2] = null; - span114[3] = null; - span114[4] = null; - span114[5] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); + Span span313 = CollectionsMarshal.AsSpan(list313); + index3 = 0; + span313[index3] = null; + index3++; + span313[index3] = null; + index3++; + span313[index3] = null; + index3++; + span313[index3] = null; + index3++; + span313[index3] = null; + index3++; + span313[index3] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); obj213.CompletionQuestVariablesFlags = list313; reference236 = obj213; - ref QuestStep reference237 = ref span113[1]; + index2++; + ref QuestStep reference237 = ref span312[index2]; QuestStep obj214 = new QuestStep(EInteractionType.UseItem, 2014946u, new Vector3(99.3091f, 5.821984f, 15.11211f), 1297) { ItemId = 2003777u }; - num3 = 6; - List list314 = new List(num3); - CollectionsMarshal.SetCount(list314, num3); - Span span115 = CollectionsMarshal.AsSpan(list314); - span115[0] = null; - span115[1] = null; - span115[2] = null; - span115[3] = null; - span115[4] = null; - span115[5] = new QuestWorkValue((byte)10, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list314 = new List(index3); + CollectionsMarshal.SetCount(list314, index3); + Span span314 = CollectionsMarshal.AsSpan(list314); + num3 = 0; + span314[num3] = null; + num3++; + span314[num3] = null; + num3++; + span314[num3] = null; + num3++; + span314[num3] = null; + num3++; + span314[num3] = null; + num3++; + span314[num3] = new QuestWorkValue((byte)10, null, EQuestWorkMode.Bitwise); obj214.CompletionQuestVariablesFlags = list314; reference237 = obj214; - span113[2] = new QuestStep(EInteractionType.UseItem, 2014945u, new Vector3(72.99576f, 3.579935f, 29.1846f), 1297) + index2++; + span312[index2] = new QuestStep(EInteractionType.UseItem, 2014945u, new Vector3(72.99576f, 3.579935f, 29.1846f), 1297) { ItemId = 2003777u }; obj212.Steps = list312; reference235 = obj212; - ref QuestSequence reference238 = ref span111[3]; + num++; + ref QuestSequence reference238 = ref span308[num]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list315 = new List(index2); + CollectionsMarshal.SetCount(list315, index2); + Span span315 = CollectionsMarshal.AsSpan(list315); + num2 = 0; + span315[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -384648,13 +467844,16 @@ public static class AssemblyQuestLoader num = 1; List list316 = new List(num); CollectionsMarshal.SetCount(list316, num); - CollectionsMarshal.AsSpan(list316)[0] = "WigglyMuffin"; + Span span316 = CollectionsMarshal.AsSpan(list316); + index = 0; + span316[index] = "WigglyMuffin"; questRoot38.Author = list316; - num = 4; - List list317 = new List(num); - CollectionsMarshal.SetCount(list317, num); - Span span116 = CollectionsMarshal.AsSpan(list317); - ref QuestSequence reference239 = ref span116[0]; + index = 4; + List list317 = new List(index); + CollectionsMarshal.SetCount(list317, index); + Span span317 = CollectionsMarshal.AsSpan(list317); + num = 0; + ref QuestSequence reference239 = ref span317[num]; QuestSequence obj216 = new QuestSequence { Sequence = 0 @@ -384662,7 +467861,9 @@ public static class AssemblyQuestLoader num2 = 1; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span318 = CollectionsMarshal.AsSpan(list318); + index2 = 0; + span318[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -384676,15 +467877,18 @@ public static class AssemblyQuestLoader }; obj216.Steps = list318; reference239 = obj216; - ref QuestSequence reference240 = ref span116[1]; + num++; + ref QuestSequence reference240 = ref span317[num]; QuestSequence obj217 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.Interact, 1055787u, new Vector3(521.8126f, 111.135f, 713.4049f), 1187) + index2 = 1; + List list319 = new List(index2); + CollectionsMarshal.SetCount(list319, index2); + Span span319 = CollectionsMarshal.AsSpan(list319); + num2 = 0; + span319[num2] = new QuestStep(EInteractionType.Interact, 1055787u, new Vector3(521.8126f, 111.135f, 713.4049f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -384698,7 +467902,8 @@ public static class AssemblyQuestLoader }; obj217.Steps = list319; reference240 = obj217; - ref QuestSequence reference241 = ref span116[2]; + num++; + ref QuestSequence reference241 = ref span317[num]; QuestSequence obj218 = new QuestSequence { Sequence = 2 @@ -384706,24 +467911,29 @@ public static class AssemblyQuestLoader num2 = 2; List list320 = new List(num2); CollectionsMarshal.SetCount(list320, num2); - Span span117 = CollectionsMarshal.AsSpan(list320); - span117[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) + Span span320 = CollectionsMarshal.AsSpan(list320); + index2 = 0; + span320[index2] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46220u, ItemCount = 1 }; - span117[1] = new QuestStep(EInteractionType.Interact, 1055787u, new Vector3(521.8126f, 111.135f, 713.4049f), 1187); + index2++; + span320[index2] = new QuestStep(EInteractionType.Interact, 1055787u, new Vector3(521.8126f, 111.135f, 713.4049f), 1187); obj218.Steps = list320; reference241 = obj218; - ref QuestSequence reference242 = ref span116[3]; + num++; + ref QuestSequence reference242 = ref span317[num]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list321 = new List(num2); - CollectionsMarshal.SetCount(list321, num2); - CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list321 = new List(index2); + CollectionsMarshal.SetCount(list321, index2); + Span span321 = CollectionsMarshal.AsSpan(list321); + num2 = 0; + span321[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true }; @@ -384736,13 +467946,16 @@ public static class AssemblyQuestLoader num = 1; List list322 = new List(num); CollectionsMarshal.SetCount(list322, num); - CollectionsMarshal.AsSpan(list322)[0] = "CryoTechnic"; + Span span322 = CollectionsMarshal.AsSpan(list322); + index = 0; + span322[index] = "CryoTechnic"; questRoot39.Author = list322; - num = 4; - List list323 = new List(num); - CollectionsMarshal.SetCount(list323, num); - Span span118 = CollectionsMarshal.AsSpan(list323); - ref QuestSequence reference243 = ref span118[0]; + index = 4; + List list323 = new List(index); + CollectionsMarshal.SetCount(list323, index); + Span span323 = CollectionsMarshal.AsSpan(list323); + num = 0; + ref QuestSequence reference243 = ref span323[num]; QuestSequence obj220 = new QuestSequence { Sequence = 0 @@ -384750,7 +467963,9 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span324 = CollectionsMarshal.AsSpan(list324); + index2 = 0; + span324[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -384764,16 +467979,18 @@ public static class AssemblyQuestLoader }; obj220.Steps = list324; reference243 = obj220; - ref QuestSequence reference244 = ref span118[1]; + num++; + ref QuestSequence reference244 = ref span323[num]; QuestSequence obj221 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list325 = new List(num2); - CollectionsMarshal.SetCount(list325, num2); - Span span119 = CollectionsMarshal.AsSpan(list325); - ref QuestStep reference245 = ref span119[0]; + index2 = 2; + List list325 = new List(index2); + CollectionsMarshal.SetCount(list325, index2); + Span span325 = CollectionsMarshal.AsSpan(list325); + num2 = 0; + ref QuestStep reference245 = ref span325[num2]; QuestStep obj222 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297, @@ -384784,15 +468001,19 @@ public static class AssemblyQuestLoader num3 = 1; List list326 = new List(num3); CollectionsMarshal.SetCount(list326, num3); - CollectionsMarshal.AsSpan(list326)[0] = 1187; + Span span326 = CollectionsMarshal.AsSpan(list326); + index3 = 0; + span326[index3] = 1187; skipStepConditions22.NotInTerritory = list326; skipConditions24.StepIf = skipStepConditions22; obj222.SkipConditions = skipConditions24; reference245 = obj222; - span119[1] = new QuestStep(EInteractionType.Interact, 1055788u, new Vector3(97.8866f, 4.942851f, 160.66211f), 1297); + num2++; + span325[num2] = new QuestStep(EInteractionType.Interact, 1055788u, new Vector3(97.8866f, 4.942851f, 160.66211f), 1297); obj221.Steps = list325; reference244 = obj221; - ref QuestSequence reference246 = ref span118[2]; + num++; + ref QuestSequence reference246 = ref span323[num]; QuestSequence obj223 = new QuestSequence { Sequence = 2 @@ -384800,24 +468021,29 @@ public static class AssemblyQuestLoader num2 = 2; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - Span span120 = CollectionsMarshal.AsSpan(list327); - span120[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span327 = CollectionsMarshal.AsSpan(list327); + index2 = 0; + span327[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46222u, ItemCount = 4 }; - span120[1] = new QuestStep(EInteractionType.Interact, 1055788u, new Vector3(97.8866f, 4.942851f, 160.66211f), 1297); + index2++; + span327[index2] = new QuestStep(EInteractionType.Interact, 1055788u, new Vector3(97.8866f, 4.942851f, 160.66211f), 1297); obj223.Steps = list327; reference246 = obj223; - ref QuestSequence reference247 = ref span118[3]; + num++; + ref QuestSequence reference247 = ref span323[num]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list328 = new List(num2); - CollectionsMarshal.SetCount(list328, num2); - CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list328 = new List(index2); + CollectionsMarshal.SetCount(list328, index2); + Span span328 = CollectionsMarshal.AsSpan(list328); + num2 = 0; + span328[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -384839,13 +468065,16 @@ public static class AssemblyQuestLoader num = 1; List list329 = new List(num); CollectionsMarshal.SetCount(list329, num); - CollectionsMarshal.AsSpan(list329)[0] = "WigglyMuffin"; + Span span329 = CollectionsMarshal.AsSpan(list329); + index = 0; + span329[index] = "WigglyMuffin"; questRoot40.Author = list329; - num = 3; - List list330 = new List(num); - CollectionsMarshal.SetCount(list330, num); - Span span121 = CollectionsMarshal.AsSpan(list330); - ref QuestSequence reference248 = ref span121[0]; + index = 3; + List list330 = new List(index); + CollectionsMarshal.SetCount(list330, index); + Span span330 = CollectionsMarshal.AsSpan(list330); + num = 0; + ref QuestSequence reference248 = ref span330[num]; QuestSequence obj225 = new QuestSequence { Sequence = 0 @@ -384853,7 +468082,9 @@ public static class AssemblyQuestLoader num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span331 = CollectionsMarshal.AsSpan(list331); + index2 = 0; + span331[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -384867,39 +468098,50 @@ public static class AssemblyQuestLoader }; obj225.Steps = list331; reference248 = obj225; - ref QuestSequence reference249 = ref span121[1]; + num++; + ref QuestSequence reference249 = ref span330[num]; QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list332 = new List(num2); - CollectionsMarshal.SetCount(list332, num2); - Span span122 = CollectionsMarshal.AsSpan(list332); - ref QuestStep reference250 = ref span122[0]; + index2 = 4; + List list332 = new List(index2); + CollectionsMarshal.SetCount(list332, index2); + Span span332 = CollectionsMarshal.AsSpan(list332); + num2 = 0; + ref QuestStep reference250 = ref span332[num2]; QuestStep obj227 = new QuestStep(EInteractionType.Emote, 1055796u, new Vector3(-486.8086f, 60.107265f, 138.56714f), 1187) { Fly = true, Emote = EEmote.Poke }; - num3 = 6; - List> list333 = new List>(num3); - CollectionsMarshal.SetCount(list333, num3); - Span> span123 = CollectionsMarshal.AsSpan(list333); - span123[0] = null; - ref List reference251 = ref span123[1]; - num4 = 1; - List list334 = new List(num4); - CollectionsMarshal.SetCount(list334, num4); - CollectionsMarshal.AsSpan(list334)[0] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3 = 6; + List> list333 = new List>(index3); + CollectionsMarshal.SetCount(list333, index3); + Span> span333 = CollectionsMarshal.AsSpan(list333); + num3 = 0; + span333[num3] = null; + num3++; + ref List reference251 = ref span333[num3]; + index4 = 1; + List list334 = new List(index4); + CollectionsMarshal.SetCount(list334, index4); + Span span334 = CollectionsMarshal.AsSpan(list334); + num4 = 0; + span334[num4] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference251 = list334; - span123[2] = null; - span123[3] = null; - span123[4] = null; - span123[5] = null; + num3++; + span333[num3] = null; + num3++; + span333[num3] = null; + num3++; + span333[num3] = null; + num3++; + span333[num3] = null; obj227.RequiredQuestVariables = list333; reference250 = obj227; - ref QuestStep reference252 = ref span122[1]; + num2++; + ref QuestStep reference252 = ref span332[num2]; QuestStep obj228 = new QuestStep(EInteractionType.Emote, 1055797u, new Vector3(-195.02557f, 40.181572f, 15.518433f), 1187) { Fly = true, @@ -384909,44 +468151,62 @@ public static class AssemblyQuestLoader num3 = 6; List> list335 = new List>(num3); CollectionsMarshal.SetCount(list335, num3); - Span> span124 = CollectionsMarshal.AsSpan(list335); - span124[0] = null; - ref List reference253 = ref span124[1]; + Span> span335 = CollectionsMarshal.AsSpan(list335); + index3 = 0; + span335[index3] = null; + index3++; + ref List reference253 = ref span335[index3]; num4 = 1; List list336 = new List(num4); CollectionsMarshal.SetCount(list336, num4); - CollectionsMarshal.AsSpan(list336)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + Span span336 = CollectionsMarshal.AsSpan(list336); + index4 = 0; + span336[index4] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference253 = list336; - span124[2] = null; - span124[3] = null; - span124[4] = null; - span124[5] = null; + index3++; + span335[index3] = null; + index3++; + span335[index3] = null; + index3++; + span335[index3] = null; + index3++; + span335[index3] = null; obj228.RequiredQuestVariables = list335; reference252 = obj228; - ref QuestStep reference254 = ref span122[2]; + num2++; + ref QuestStep reference254 = ref span332[num2]; QuestStep obj229 = new QuestStep(EInteractionType.Emote, 1055798u, new Vector3(-434.40912f, 118.59887f, 553.8567f), 1187) { Fly = true, Emote = EEmote.Poke }; - num3 = 6; - List> list337 = new List>(num3); - CollectionsMarshal.SetCount(list337, num3); - Span> span125 = CollectionsMarshal.AsSpan(list337); - span125[0] = null; - ref List reference255 = ref span125[1]; - num4 = 1; - List list338 = new List(num4); - CollectionsMarshal.SetCount(list338, num4); - CollectionsMarshal.AsSpan(list338)[0] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); + index3 = 6; + List> list337 = new List>(index3); + CollectionsMarshal.SetCount(list337, index3); + Span> span337 = CollectionsMarshal.AsSpan(list337); + num3 = 0; + span337[num3] = null; + num3++; + ref List reference255 = ref span337[num3]; + index4 = 1; + List list338 = new List(index4); + CollectionsMarshal.SetCount(list338, index4); + Span span338 = CollectionsMarshal.AsSpan(list338); + num4 = 0; + span338[num4] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); reference255 = list338; - span125[2] = null; - span125[3] = null; - span125[4] = null; - span125[5] = null; + num3++; + span337[num3] = null; + num3++; + span337[num3] = null; + num3++; + span337[num3] = null; + num3++; + span337[num3] = null; obj229.RequiredQuestVariables = list337; reference254 = obj229; - ref QuestStep reference256 = ref span122[3]; + num2++; + ref QuestStep reference256 = ref span332[num2]; QuestStep obj230 = new QuestStep(EInteractionType.Emote, 1055789u, new Vector3(509.69702f, 111.134995f, 693.78186f), 1187) { Fly = true, @@ -384955,23 +468215,32 @@ public static class AssemblyQuestLoader num3 = 6; List> list339 = new List>(num3); CollectionsMarshal.SetCount(list339, num3); - Span> span126 = CollectionsMarshal.AsSpan(list339); - span126[0] = null; - ref List reference257 = ref span126[1]; + Span> span339 = CollectionsMarshal.AsSpan(list339); + index3 = 0; + span339[index3] = null; + index3++; + ref List reference257 = ref span339[index3]; num4 = 1; List list340 = new List(num4); CollectionsMarshal.SetCount(list340, num4); - CollectionsMarshal.AsSpan(list340)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + Span span340 = CollectionsMarshal.AsSpan(list340); + index4 = 0; + span340[index4] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference257 = list340; - span126[2] = null; - span126[3] = null; - span126[4] = null; - span126[5] = null; + index3++; + span339[index3] = null; + index3++; + span339[index3] = null; + index3++; + span339[index3] = null; + index3++; + span339[index3] = null; obj230.RequiredQuestVariables = list339; reference256 = obj230; obj226.Steps = list332; reference249 = obj226; - ref QuestSequence reference258 = ref span121[2]; + num++; + ref QuestSequence reference258 = ref span330[num]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue @@ -384979,7 +468248,9 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span341 = CollectionsMarshal.AsSpan(list341); + index2 = 0; + span341[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho @@ -384993,21 +468264,26 @@ public static class AssemblyQuestLoader num = 1; List list342 = new List(num); CollectionsMarshal.SetCount(list342, num); - CollectionsMarshal.AsSpan(list342)[0] = "CryoTechnic"; + Span span342 = CollectionsMarshal.AsSpan(list342); + index = 0; + span342[index] = "CryoTechnic"; questRoot41.Author = list342; - num = 4; - List list343 = new List(num); - CollectionsMarshal.SetCount(list343, num); - Span span127 = CollectionsMarshal.AsSpan(list343); - ref QuestSequence reference259 = ref span127[0]; + index = 4; + List list343 = new List(index); + CollectionsMarshal.SetCount(list343, index); + Span span343 = CollectionsMarshal.AsSpan(list343); + num = 0; + ref QuestSequence reference259 = ref span343[num]; QuestSequence obj232 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list344 = new List(num2); - CollectionsMarshal.SetCount(list344, num2); - CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list344 = new List(index2); + CollectionsMarshal.SetCount(list344, index2); + Span span344 = CollectionsMarshal.AsSpan(list344); + num2 = 0; + span344[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385021,7 +468297,8 @@ public static class AssemblyQuestLoader }; obj232.Steps = list344; reference259 = obj232; - ref QuestSequence reference260 = ref span127[1]; + num++; + ref QuestSequence reference260 = ref span343[num]; QuestSequence obj233 = new QuestSequence { Sequence = 1 @@ -385029,43 +468306,51 @@ public static class AssemblyQuestLoader num2 = 2; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span128 = CollectionsMarshal.AsSpan(list345); - ref QuestStep reference261 = ref span128[0]; + Span span345 = CollectionsMarshal.AsSpan(list345); + index2 = 0; + ref QuestStep reference261 = ref span345[index2]; QuestStep obj234 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 }; SkipConditions skipConditions25 = new SkipConditions(); SkipStepConditions skipStepConditions23 = new SkipStepConditions(); - num3 = 1; - List list346 = new List(num3); - CollectionsMarshal.SetCount(list346, num3); - CollectionsMarshal.AsSpan(list346)[0] = 1187; + index3 = 1; + List list346 = new List(index3); + CollectionsMarshal.SetCount(list346, index3); + Span span346 = CollectionsMarshal.AsSpan(list346); + num3 = 0; + span346[num3] = 1187; skipStepConditions23.NotInTerritory = list346; skipConditions25.StepIf = skipStepConditions23; obj234.SkipConditions = skipConditions25; reference261 = obj234; - span128[1] = new QuestStep(EInteractionType.Interact, 1055790u, new Vector3(124.98657f, 3.9429288f, 184.6189f), 1297); + index2++; + span345[index2] = new QuestStep(EInteractionType.Interact, 1055790u, new Vector3(124.98657f, 3.9429288f, 184.6189f), 1297); obj233.Steps = list345; reference260 = obj233; - ref QuestSequence reference262 = ref span127[2]; + num++; + ref QuestSequence reference262 = ref span343[num]; QuestSequence obj235 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list347 = new List(num2); - CollectionsMarshal.SetCount(list347, num2); - Span span129 = CollectionsMarshal.AsSpan(list347); - span129[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + index2 = 2; + List list347 = new List(index2); + CollectionsMarshal.SetCount(list347, index2); + Span span347 = CollectionsMarshal.AsSpan(list347); + num2 = 0; + span347[num2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46224u, ItemCount = 2 }; - span129[1] = new QuestStep(EInteractionType.Interact, 1055790u, new Vector3(124.98657f, 3.9429288f, 184.6189f), 1297); + num2++; + span347[num2] = new QuestStep(EInteractionType.Interact, 1055790u, new Vector3(124.98657f, 3.9429288f, 184.6189f), 1297); obj235.Steps = list347; reference262 = obj235; - ref QuestSequence reference263 = ref span127[3]; + num++; + ref QuestSequence reference263 = ref span343[num]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue @@ -385073,7 +468358,9 @@ public static class AssemblyQuestLoader num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span348 = CollectionsMarshal.AsSpan(list348); + index2 = 0; + span348[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -385095,21 +468382,26 @@ public static class AssemblyQuestLoader num = 1; List list349 = new List(num); CollectionsMarshal.SetCount(list349, num); - CollectionsMarshal.AsSpan(list349)[0] = "CryoTechnic"; + Span span349 = CollectionsMarshal.AsSpan(list349); + index = 0; + span349[index] = "CryoTechnic"; questRoot42.Author = list349; - num = 3; - List list350 = new List(num); - CollectionsMarshal.SetCount(list350, num); - Span span130 = CollectionsMarshal.AsSpan(list350); - ref QuestSequence reference264 = ref span130[0]; + index = 3; + List list350 = new List(index); + CollectionsMarshal.SetCount(list350, index); + Span span350 = CollectionsMarshal.AsSpan(list350); + num = 0; + ref QuestSequence reference264 = ref span350[num]; QuestSequence obj237 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list351 = new List(num2); - CollectionsMarshal.SetCount(list351, num2); - CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list351 = new List(index2); + CollectionsMarshal.SetCount(list351, index2); + Span span351 = CollectionsMarshal.AsSpan(list351); + num2 = 0; + span351[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385123,7 +468415,8 @@ public static class AssemblyQuestLoader }; obj237.Steps = list351; reference264 = obj237; - ref QuestSequence reference265 = ref span130[1]; + num++; + ref QuestSequence reference265 = ref span350[num]; QuestSequence obj238 = new QuestSequence { Sequence = 1 @@ -385131,7 +468424,9 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) + Span span352 = CollectionsMarshal.AsSpan(list352); + index2 = 0; + span352[index2] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385145,21 +468440,24 @@ public static class AssemblyQuestLoader }; obj238.Steps = list352; reference265 = obj238; - ref QuestSequence reference266 = ref span130[2]; + num++; + ref QuestSequence reference266 = ref span350[num]; QuestSequence obj239 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list353 = new List(num2); - CollectionsMarshal.SetCount(list353, num2); - Span span131 = CollectionsMarshal.AsSpan(list353); - span131[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) + index2 = 2; + List list353 = new List(index2); + CollectionsMarshal.SetCount(list353, index2); + Span span353 = CollectionsMarshal.AsSpan(list353); + num2 = 0; + span353[num2] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46226u, ItemCount = 1 }; - span131[1] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + num2++; + span353[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -385181,13 +468479,16 @@ public static class AssemblyQuestLoader num = 1; List list354 = new List(num); CollectionsMarshal.SetCount(list354, num); - CollectionsMarshal.AsSpan(list354)[0] = "CryoTechnic"; + Span span354 = CollectionsMarshal.AsSpan(list354); + index = 0; + span354[index] = "CryoTechnic"; questRoot43.Author = list354; - num = 3; - List list355 = new List(num); - CollectionsMarshal.SetCount(list355, num); - Span span132 = CollectionsMarshal.AsSpan(list355); - ref QuestSequence reference267 = ref span132[0]; + index = 3; + List list355 = new List(index); + CollectionsMarshal.SetCount(list355, index); + Span span355 = CollectionsMarshal.AsSpan(list355); + num = 0; + ref QuestSequence reference267 = ref span355[num]; QuestSequence obj240 = new QuestSequence { Sequence = 0 @@ -385195,7 +468496,9 @@ public static class AssemblyQuestLoader num2 = 1; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span356 = CollectionsMarshal.AsSpan(list356); + index2 = 0; + span356[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385209,16 +468512,18 @@ public static class AssemblyQuestLoader }; obj240.Steps = list356; reference267 = obj240; - ref QuestSequence reference268 = ref span132[1]; + num++; + ref QuestSequence reference268 = ref span355[num]; QuestSequence obj241 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list357 = new List(num2); - CollectionsMarshal.SetCount(list357, num2); - Span span133 = CollectionsMarshal.AsSpan(list357); - span133[0] = new QuestStep(EInteractionType.Say, 1055825u, new Vector3(254.56616f, 34.20388f, 156.60327f), 1187) + index2 = 3; + List list357 = new List(index2); + CollectionsMarshal.SetCount(list357, index2); + Span span357 = CollectionsMarshal.AsSpan(list357); + num2 = 0; + span357[num2] = new QuestStep(EInteractionType.Say, 1055825u, new Vector3(254.56616f, 34.20388f, 156.60327f), 1187) { Fly = true, Land = true, @@ -385227,12 +468532,14 @@ public static class AssemblyQuestLoader Key = "TEXT_BANYOK114_05349_SAYTODO_000_010" } }; - span133[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(145.29918f, 34.203415f, 104.64879f), 1187) + num2++; + span357[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(145.29918f, 34.203415f, 104.64879f), 1187) { Fly = true, Land = true }; - span133[2] = new QuestStep(EInteractionType.Say, 1055826u, new Vector3(145.76941f, 34.203403f, 101.548706f), 1187) + num2++; + span357[num2] = new QuestStep(EInteractionType.Say, 1055826u, new Vector3(145.76941f, 34.203403f, 101.548706f), 1187) { ChatMessage = new ChatMessage { @@ -385241,7 +468548,8 @@ public static class AssemblyQuestLoader }; obj241.Steps = list357; reference268 = obj241; - ref QuestSequence reference269 = ref span132[2]; + num++; + ref QuestSequence reference269 = ref span355[num]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue @@ -385249,7 +468557,9 @@ public static class AssemblyQuestLoader num2 = 1; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span358 = CollectionsMarshal.AsSpan(list358); + index2 = 0; + span358[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -385280,13 +468590,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "CryoTechnic"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "CryoTechnic"; questRoot.Author = list; - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 4; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -385294,7 +468607,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385308,21 +468623,25 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 1055804u, new Vector3(366.10962f, 129.04724f, 645.8075f), 1187) + index2 = 1; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Interact, 1055804u, new Vector3(366.10962f, 129.04724f, 645.8075f), 1187) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -385330,24 +468649,29 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span2 = CollectionsMarshal.AsSpan(list5); - span2[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46228u, ItemCount = 1 }; - span2[1] = new QuestStep(EInteractionType.Interact, 1055804u, new Vector3(366.10962f, 129.04724f, 645.8075f), 1187); + index2++; + span5[index2] = new QuestStep(EInteractionType.Interact, 1055804u, new Vector3(366.10962f, 129.04724f, 645.8075f), 1187); obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -385369,13 +468693,16 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = "CryoTechnic"; + Span span7 = CollectionsMarshal.AsSpan(list7); + index = 0; + span7[index] = "CryoTechnic"; questRoot2.Author = list7; - num = 3; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - Span span3 = CollectionsMarshal.AsSpan(list8); - ref QuestSequence reference5 = ref span3[0]; + index = 3; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num = 0; + ref QuestSequence reference5 = ref span8[num]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -385383,7 +468710,9 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span9 = CollectionsMarshal.AsSpan(list9); + index2 = 0; + span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385397,15 +468726,18 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - ref QuestSequence reference6 = ref span3[1]; + num++; + ref QuestSequence reference6 = ref span8[num]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1055805u, new Vector3(134.08093f, 31.956184f, 376.9436f), 1187) + index2 = 1; + List list10 = new List(index2); + CollectionsMarshal.SetCount(list10, index2); + Span span10 = CollectionsMarshal.AsSpan(list10); + num2 = 0; + span10[num2] = new QuestStep(EInteractionType.Interact, 1055805u, new Vector3(134.08093f, 31.956184f, 376.9436f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385419,7 +468751,8 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - ref QuestSequence reference7 = ref span3[2]; + num++; + ref QuestSequence reference7 = ref span8[num]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue @@ -385427,7 +468760,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -385449,21 +468784,26 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = "WigglyMuffin"; + Span span12 = CollectionsMarshal.AsSpan(list12); + index = 0; + span12[index] = "WigglyMuffin"; questRoot3.Author = list12; - num = 4; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - Span span4 = CollectionsMarshal.AsSpan(list13); - ref QuestSequence reference8 = ref span4[0]; + index = 4; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num = 0; + ref QuestSequence reference8 = ref span13[num]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list14 = new List(index2); + CollectionsMarshal.SetCount(list14, index2); + Span span14 = CollectionsMarshal.AsSpan(list14); + num2 = 0; + span14[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385477,7 +468817,8 @@ public static class AssemblyQuestLoader }; obj8.Steps = list14; reference8 = obj8; - ref QuestSequence reference9 = ref span4[1]; + num++; + ref QuestSequence reference9 = ref span13[num]; QuestSequence obj9 = new QuestSequence { Sequence = 1 @@ -385485,8 +468826,9 @@ public static class AssemblyQuestLoader num2 = 3; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span5 = CollectionsMarshal.AsSpan(list15); - ref QuestStep reference10 = ref span5[0]; + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + ref QuestStep reference10 = ref span15[index2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -385496,40 +468838,49 @@ public static class AssemblyQuestLoader int num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = 1187; + Span span16 = CollectionsMarshal.AsSpan(list16); + int index3 = 0; + span16[index3] = 1187; skipStepConditions.NotInTerritory = list16; skipConditions.StepIf = skipStepConditions; obj10.SkipConditions = skipConditions; reference10 = obj10; - span5[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + index2++; + span15[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) { Fly = false }; - span5[2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); + index2++; + span15[index2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference11 = ref span4[2]; + num++; + ref QuestSequence reference11 = ref span13[num]; QuestSequence obj11 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - Span span6 = CollectionsMarshal.AsSpan(list17); - span6[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + index2 = 3; + List list17 = new List(index2); + CollectionsMarshal.SetCount(list17, index2); + Span span17 = CollectionsMarshal.AsSpan(list17); + num2 = 0; + span17[num2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46230u, ItemCount = 3 }; - span6[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.34843f, 5.9020233f, 48.216927f), 1297) + num2++; + span17[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.34843f, 5.9020233f, 48.216927f), 1297) { Fly = false }; - span6[2] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); + num2++; + span17[num2] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); obj11.Steps = list17; reference11 = obj11; - ref QuestSequence reference12 = ref span4[3]; + num++; + ref QuestSequence reference12 = ref span13[num]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -385537,7 +468888,9 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span18 = CollectionsMarshal.AsSpan(list18); + index2 = 0; + span18[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -385559,21 +468912,26 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - CollectionsMarshal.AsSpan(list19)[0] = "WigglyMuffin"; + Span span19 = CollectionsMarshal.AsSpan(list19); + index = 0; + span19[index] = "WigglyMuffin"; questRoot4.Author = list19; - num = 4; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); - Span span7 = CollectionsMarshal.AsSpan(list20); - ref QuestSequence reference13 = ref span7[0]; + index = 4; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + Span span20 = CollectionsMarshal.AsSpan(list20); + num = 0; + ref QuestSequence reference13 = ref span20[num]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list21 = new List(num2); - CollectionsMarshal.SetCount(list21, num2); - CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num2 = 0; + span21[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385587,7 +468945,8 @@ public static class AssemblyQuestLoader }; obj13.Steps = list21; reference13 = obj13; - ref QuestSequence reference14 = ref span7[1]; + num++; + ref QuestSequence reference14 = ref span20[num]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -385595,47 +468954,56 @@ public static class AssemblyQuestLoader num2 = 3; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span8 = CollectionsMarshal.AsSpan(list22); - ref QuestStep reference15 = ref span8[0]; + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + ref QuestStep reference15 = ref span22[index2]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 1; - List list23 = new List(num3); - CollectionsMarshal.SetCount(list23, num3); - CollectionsMarshal.AsSpan(list23)[0] = 1187; + index3 = 1; + List list23 = new List(index3); + CollectionsMarshal.SetCount(list23, index3); + Span span23 = CollectionsMarshal.AsSpan(list23); + num3 = 0; + span23[num3] = 1187; skipStepConditions2.NotInTerritory = list23; skipConditions2.StepIf = skipStepConditions2; obj15.SkipConditions = skipConditions2; reference15 = obj15; - span8[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + index2++; + span22[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) { Fly = false }; - span8[2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); + index2++; + span22[index2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); obj14.Steps = list22; reference14 = obj14; - ref QuestSequence reference16 = ref span7[2]; + num++; + ref QuestSequence reference16 = ref span20[num]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); - Span span9 = CollectionsMarshal.AsSpan(list24); - span9[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + index2 = 2; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num2 = 0; + span24[num2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46232u, ItemCount = 4 }; - span9[1] = new QuestStep(EInteractionType.Interact, 1055807u, new Vector3(-76.46301f, 6.180734f, 35.75183f), 1297); + num2++; + span24[num2] = new QuestStep(EInteractionType.Interact, 1055807u, new Vector3(-76.46301f, 6.180734f, 35.75183f), 1297); obj16.Steps = list24; reference16 = obj16; - ref QuestSequence reference17 = ref span7[3]; + num++; + ref QuestSequence reference17 = ref span20[num]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -385643,7 +469011,9 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -385665,21 +469035,26 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = "WigglyMuffin"; + Span span26 = CollectionsMarshal.AsSpan(list26); + index = 0; + span26[index] = "WigglyMuffin"; questRoot5.Author = list26; - num = 4; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span10 = CollectionsMarshal.AsSpan(list27); - ref QuestSequence reference18 = ref span10[0]; + index = 4; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + Span span27 = CollectionsMarshal.AsSpan(list27); + num = 0; + ref QuestSequence reference18 = ref span27[num]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); - CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list28 = new List(index2); + CollectionsMarshal.SetCount(list28, index2); + Span span28 = CollectionsMarshal.AsSpan(list28); + num2 = 0; + span28[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385693,7 +469068,8 @@ public static class AssemblyQuestLoader }; obj18.Steps = list28; reference18 = obj18; - ref QuestSequence reference19 = ref span10[1]; + num++; + ref QuestSequence reference19 = ref span27[num]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -385701,8 +469077,9 @@ public static class AssemblyQuestLoader num2 = 3; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span11 = CollectionsMarshal.AsSpan(list29); - ref QuestStep reference20 = ref span11[0]; + Span span29 = CollectionsMarshal.AsSpan(list29); + index2 = 0; + ref QuestStep reference20 = ref span29[index2]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -385712,27 +469089,34 @@ public static class AssemblyQuestLoader num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = 1187; + Span span30 = CollectionsMarshal.AsSpan(list30); + index3 = 0; + span30[index3] = 1187; skipStepConditions3.NotInTerritory = list30; skipConditions3.StepIf = skipStepConditions3; obj20.SkipConditions = skipConditions3; reference20 = obj20; - span11[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-78.796455f, 5.969013f, 48.502377f), 1297) + index2++; + span29[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-78.796455f, 5.969013f, 48.502377f), 1297) { Fly = false }; - span11[2] = new QuestStep(EInteractionType.Interact, 1055808u, new Vector3(-143.63324f, 5.9494705f, 58.457275f), 1297); + index2++; + span29[index2] = new QuestStep(EInteractionType.Interact, 1055808u, new Vector3(-143.63324f, 5.9494705f, 58.457275f), 1297); obj19.Steps = list29; reference19 = obj19; - ref QuestSequence reference21 = ref span10[2]; + num++; + ref QuestSequence reference21 = ref span27[num]; QuestSequence obj21 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1055809u, new Vector3(703.8834f, 75.19972f, 633.3562f), 1187) + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + span31[num2] = new QuestStep(EInteractionType.Interact, 1055809u, new Vector3(703.8834f, 75.19972f, 633.3562f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385746,7 +469130,8 @@ public static class AssemblyQuestLoader }; obj21.Steps = list31; reference21 = obj21; - ref QuestSequence reference22 = ref span10[3]; + num++; + ref QuestSequence reference22 = ref span27[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -385754,7 +469139,9 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span32 = CollectionsMarshal.AsSpan(list32); + index2 = 0; + span32[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385775,21 +469162,26 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - CollectionsMarshal.AsSpan(list33)[0] = "WigglyMuffin"; + Span span33 = CollectionsMarshal.AsSpan(list33); + index = 0; + span33[index] = "WigglyMuffin"; questRoot6.Author = list33; - num = 4; - List list34 = new List(num); - CollectionsMarshal.SetCount(list34, num); - Span span12 = CollectionsMarshal.AsSpan(list34); - ref QuestSequence reference23 = ref span12[0]; + index = 4; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + Span span34 = CollectionsMarshal.AsSpan(list34); + num = 0; + ref QuestSequence reference23 = ref span34[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num2 = 0; + span35[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385803,7 +469195,8 @@ public static class AssemblyQuestLoader }; obj23.Steps = list35; reference23 = obj23; - ref QuestSequence reference24 = ref span12[1]; + num++; + ref QuestSequence reference24 = ref span34[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 @@ -385811,47 +469204,56 @@ public static class AssemblyQuestLoader num2 = 2; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span13 = CollectionsMarshal.AsSpan(list36); - ref QuestStep reference25 = ref span13[0]; + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + ref QuestStep reference25 = ref span36[index2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num3 = 1; - List list37 = new List(num3); - CollectionsMarshal.SetCount(list37, num3); - CollectionsMarshal.AsSpan(list37)[0] = 1187; + index3 = 1; + List list37 = new List(index3); + CollectionsMarshal.SetCount(list37, index3); + Span span37 = CollectionsMarshal.AsSpan(list37); + num3 = 0; + span37[num3] = 1187; skipStepConditions4.NotInTerritory = list37; skipConditions4.StepIf = skipStepConditions4; obj25.SkipConditions = skipConditions4; reference25 = obj25; - span13[1] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); + index2++; + span36[index2] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); obj24.Steps = list36; reference24 = obj24; - ref QuestSequence reference26 = ref span12[2]; + num++; + ref QuestSequence reference26 = ref span34[num]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list38 = new List(num2); - CollectionsMarshal.SetCount(list38, num2); - Span span14 = CollectionsMarshal.AsSpan(list38); - span14[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + index2 = 3; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num2 = 0; + span38[num2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46234u, ItemCount = 2 }; - span14[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.34843f, 5.9020233f, 48.216927f), 1297) + num2++; + span38[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.34843f, 5.9020233f, 48.216927f), 1297) { Fly = false }; - span14[2] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); + num2++; + span38[num2] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); obj26.Steps = list38; reference26 = obj26; - ref QuestSequence reference27 = ref span12[3]; + num++; + ref QuestSequence reference27 = ref span34[num]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -385859,7 +469261,9 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -385881,21 +469285,26 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - CollectionsMarshal.AsSpan(list40)[0] = "CryoTechnic"; + Span span40 = CollectionsMarshal.AsSpan(list40); + index = 0; + span40[index] = "CryoTechnic"; questRoot7.Author = list40; - num = 4; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - Span span15 = CollectionsMarshal.AsSpan(list41); - ref QuestSequence reference28 = ref span15[0]; + index = 4; + List list41 = new List(index); + CollectionsMarshal.SetCount(list41, index); + Span span41 = CollectionsMarshal.AsSpan(list41); + num = 0; + ref QuestSequence reference28 = ref span41[num]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list42 = new List(index2); + CollectionsMarshal.SetCount(list42, index2); + Span span42 = CollectionsMarshal.AsSpan(list42); + num2 = 0; + span42[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -385909,7 +469318,8 @@ public static class AssemblyQuestLoader }; obj28.Steps = list42; reference28 = obj28; - ref QuestSequence reference29 = ref span15[1]; + num++; + ref QuestSequence reference29 = ref span41[num]; QuestSequence obj29 = new QuestSequence { Sequence = 1 @@ -385917,56 +469327,66 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1055810u, new Vector3(530.44934f, 107.13501f, 539.0554f), 1187) + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.Interact, 1055810u, new Vector3(530.44934f, 107.13501f, 539.0554f), 1187) { Fly = true }; obj29.Steps = list43; reference29 = obj29; - ref QuestSequence reference30 = ref span15[2]; + num++; + ref QuestSequence reference30 = ref span41[num]; QuestSequence obj30 = new QuestSequence { Sequence = 2 }; - num2 = 6; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - Span span16 = CollectionsMarshal.AsSpan(list44); - span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(552.27673f, 108.55478f, 727.94354f), 1187) + index2 = 6; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(552.27673f, 108.55478f, 727.94354f), 1187) { Mount = false, Fly = false }; - span16[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.60175f, 119.49903f, 758.57855f), 1187) + num2++; + span44[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.60175f, 119.49903f, 758.57855f), 1187) { DisableNavmesh = true, Mount = false, Fly = false }; - span16[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.2725f, 127.72187f, 781.8777f), 1187) + num2++; + span44[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.2725f, 127.72187f, 781.8777f), 1187) { Mount = false, Fly = false }; - span16[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(542.19476f, 135.24232f, 801.69586f), 1187) + num2++; + span44[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(542.19476f, 135.24232f, 801.69586f), 1187) { DisableNavmesh = true, Mount = false, Fly = false }; - span16[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(516.9529f, 142.24991f, 797.651f), 1187) + num2++; + span44[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(516.9529f, 142.24991f, 797.651f), 1187) { Mount = false, Fly = false }; - span16[5] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) + num2++; + span44[num2] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) { Mount = false, Fly = false }; obj30.Steps = list44; reference30 = obj30; - ref QuestSequence reference31 = ref span15[3]; + num++; + ref QuestSequence reference31 = ref span41[num]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -385974,7 +469394,9 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + span45[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386000,21 +469422,26 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - CollectionsMarshal.AsSpan(list46)[0] = "CryoTechnic"; + Span span46 = CollectionsMarshal.AsSpan(list46); + index = 0; + span46[index] = "CryoTechnic"; questRoot8.Author = list46; - num = 3; - List list47 = new List(num); - CollectionsMarshal.SetCount(list47, num); - Span span17 = CollectionsMarshal.AsSpan(list47); - ref QuestSequence reference32 = ref span17[0]; + index = 3; + List list47 = new List(index); + CollectionsMarshal.SetCount(list47, index); + Span span47 = CollectionsMarshal.AsSpan(list47); + num = 0; + ref QuestSequence reference32 = ref span47[num]; QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num2 = 0; + span48[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386028,7 +469455,8 @@ public static class AssemblyQuestLoader }; obj32.Steps = list48; reference32 = obj32; - ref QuestSequence reference33 = ref span17[1]; + num++; + ref QuestSequence reference33 = ref span47[num]; QuestSequence obj33 = new QuestSequence { Sequence = 1 @@ -386036,7 +469464,9 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) + Span span49 = CollectionsMarshal.AsSpan(list49); + index2 = 0; + span49[index2] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386050,16 +469480,18 @@ public static class AssemblyQuestLoader }; obj33.Steps = list49; reference33 = obj33; - ref QuestSequence reference34 = ref span17[2]; + num++; + ref QuestSequence reference34 = ref span47[num]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - Span span18 = CollectionsMarshal.AsSpan(list50); - span18[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) + index2 = 2; + List list50 = new List(index2); + CollectionsMarshal.SetCount(list50, index2); + Span span50 = CollectionsMarshal.AsSpan(list50); + num2 = 0; + span50[num2] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46236u, ItemCount = 3, @@ -386071,7 +469503,8 @@ public static class AssemblyQuestLoader } } }; - span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + num2++; + span50[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386097,13 +469530,16 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - CollectionsMarshal.AsSpan(list51)[0] = "CryoTechnic"; + Span span51 = CollectionsMarshal.AsSpan(list51); + index = 0; + span51[index] = "CryoTechnic"; questRoot9.Author = list51; - num = 4; - List list52 = new List(num); - CollectionsMarshal.SetCount(list52, num); - Span span19 = CollectionsMarshal.AsSpan(list52); - ref QuestSequence reference35 = ref span19[0]; + index = 4; + List list52 = new List(index); + CollectionsMarshal.SetCount(list52, index); + Span span52 = CollectionsMarshal.AsSpan(list52); + num = 0; + ref QuestSequence reference35 = ref span52[num]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -386111,7 +469547,9 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span53 = CollectionsMarshal.AsSpan(list53); + index2 = 0; + span53[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386125,16 +469563,18 @@ public static class AssemblyQuestLoader }; obj35.Steps = list53; reference35 = obj35; - ref QuestSequence reference36 = ref span19[1]; + num++; + ref QuestSequence reference36 = ref span52[num]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - Span span20 = CollectionsMarshal.AsSpan(list54); - ref QuestStep reference37 = ref span20[0]; + index2 = 2; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + ref QuestStep reference37 = ref span54[num2]; QuestStep obj37 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -386144,15 +469584,19 @@ public static class AssemblyQuestLoader num3 = 1; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - CollectionsMarshal.AsSpan(list55)[0] = 1187; + Span span55 = CollectionsMarshal.AsSpan(list55); + index3 = 0; + span55[index3] = 1187; skipStepConditions5.NotInTerritory = list55; skipConditions5.StepIf = skipStepConditions5; obj37.SkipConditions = skipConditions5; reference37 = obj37; - span20[1] = new QuestStep(EInteractionType.Interact, 1055791u, new Vector3(21.469421f, 13.538549f, 283.6194f), 1297); + num2++; + span54[num2] = new QuestStep(EInteractionType.Interact, 1055791u, new Vector3(21.469421f, 13.538549f, 283.6194f), 1297); obj36.Steps = list54; reference36 = obj36; - ref QuestSequence reference38 = ref span19[2]; + num++; + ref QuestSequence reference38 = ref span52[num]; QuestSequence obj38 = new QuestSequence { Sequence = 2 @@ -386160,51 +469604,64 @@ public static class AssemblyQuestLoader num2 = 17; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span21 = CollectionsMarshal.AsSpan(list56); - ref QuestStep reference39 = ref span21[0]; + Span span56 = CollectionsMarshal.AsSpan(list56); + index2 = 0; + ref QuestStep reference39 = ref span56[index2]; QuestStep obj39 = new QuestStep(EInteractionType.UseItem, 2014955u, new Vector3(21.35857f, 15.18271f, 288.9486f), 1297) { Mount = true, ItemId = 2003778u }; - num3 = 6; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - Span span22 = CollectionsMarshal.AsSpan(list57); - span22[0] = null; - span22[1] = null; - span22[2] = null; - span22[3] = null; - span22[4] = null; - span22[5] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list57 = new List(index3); + CollectionsMarshal.SetCount(list57, index3); + Span span57 = CollectionsMarshal.AsSpan(list57); + num3 = 0; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = null; + num3++; + span57[num3] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); obj39.CompletionQuestVariablesFlags = list57; reference39 = obj39; - span21[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(38.474648f, 13.538554f, 299.35413f), 1297) + index2++; + span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(38.474648f, 13.538554f, 299.35413f), 1297) { DisableNavmesh = true, Mount = true }; - span21[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.922432f, 13.538555f, 299.98282f), 1297) + index2++; + span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.922432f, 13.538555f, 299.98282f), 1297) { DisableNavmesh = true, Mount = true }; - span21[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(48.25193f, 13.538491f, 335.66028f), 1297) + index2++; + span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(48.25193f, 13.538491f, 335.66028f), 1297) { DisableNavmesh = true, Mount = true }; - span21[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(36.59439f, 13.538559f, 335.311f), 1297) + index2++; + span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(36.59439f, 13.538559f, 335.311f), 1297) { DisableNavmesh = true, Mount = true }; - span21[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(27.471945f, 13.538559f, 345.5773f), 1297) + index2++; + span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(27.471945f, 13.538559f, 345.5773f), 1297) { DisableNavmesh = true, Mount = true }; - ref QuestStep reference40 = ref span21[6]; + index2++; + ref QuestStep reference40 = ref span56[index2]; QuestStep obj40 = new QuestStep(EInteractionType.UseItem, 2014958u, new Vector3(25.25208f, 15.1827f, 343.7696f), 1297) { Mount = true, @@ -386213,89 +469670,114 @@ public static class AssemblyQuestLoader num3 = 6; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span23 = CollectionsMarshal.AsSpan(list58); - span23[0] = null; - span23[1] = null; - span23[2] = null; - span23[3] = null; - span23[4] = null; - span23[5] = new QuestWorkValue((byte)9, null, EQuestWorkMode.Bitwise); + Span span58 = CollectionsMarshal.AsSpan(list58); + index3 = 0; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = null; + index3++; + span58[index3] = new QuestWorkValue((byte)9, null, EQuestWorkMode.Bitwise); obj40.CompletionQuestVariablesFlags = list58; reference40 = obj40; - span21[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(13.319462f, 13.538559f, 359.63834f), 1297) + index2++; + span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(13.319462f, 13.538559f, 359.63834f), 1297) { DisableNavmesh = true, Mount = true }; - span21[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-15.500497f, 13.538549f, 359.83508f), 1297) + index2++; + span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-15.500497f, 13.538549f, 359.83508f), 1297) { DisableNavmesh = true, Mount = true }; - span21[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.350124f, 13.538551f, 347.12094f), 1297) + index2++; + span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.350124f, 13.538551f, 347.12094f), 1297) { DisableNavmesh = true, Mount = true }; - ref QuestStep reference41 = ref span21[10]; + index2++; + ref QuestStep reference41 = ref span56[index2]; QuestStep obj41 = new QuestStep(EInteractionType.UseItem, 2014957u, new Vector3(-24.51654f, 15.1827f, 343.9439f), 1297) { Mount = true, ItemId = 2003778u }; - num3 = 6; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - Span span24 = CollectionsMarshal.AsSpan(list59); - span24[0] = null; - span24[1] = null; - span24[2] = null; - span24[3] = null; - span24[4] = null; - span24[5] = new QuestWorkValue((byte)11, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list59 = new List(index3); + CollectionsMarshal.SetCount(list59, index3); + Span span59 = CollectionsMarshal.AsSpan(list59); + num3 = 0; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = null; + num3++; + span59[num3] = new QuestWorkValue((byte)11, null, EQuestWorkMode.Bitwise); obj41.CompletionQuestVariablesFlags = list59; reference41 = obj41; - span21[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-36.89487f, 13.5385475f, 335.85452f), 1297) + index2++; + span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-36.89487f, 13.5385475f, 335.85452f), 1297) { DisableNavmesh = true, Mount = true }; - span21[12] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-47.796112f, 13.53848f, 335.2269f), 1297) + index2++; + span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-47.796112f, 13.53848f, 335.2269f), 1297) { DisableNavmesh = true, Mount = true }; - span21[13] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.585648f, 13.538531f, 299.03348f), 1297) + index2++; + span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.585648f, 13.538531f, 299.03348f), 1297) { DisableNavmesh = true, Mount = true }; - span21[14] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-34.23524f, 13.538542f, 298.76367f), 1297) + index2++; + span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-34.23524f, 13.538542f, 298.76367f), 1297) { DisableNavmesh = true, Mount = true }; - span21[15] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.993502f, 13.538543f, 287.8971f), 1297) + index2++; + span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.993502f, 13.538543f, 287.8971f), 1297) { DisableNavmesh = true, Mount = true }; - span21[16] = new QuestStep(EInteractionType.UseItem, 2014956u, new Vector3(-20.50371f, 15.1827f, 288.8894f), 1297) + index2++; + span56[index2] = new QuestStep(EInteractionType.UseItem, 2014956u, new Vector3(-20.50371f, 15.1827f, 288.8894f), 1297) { Mount = true, ItemId = 2003778u }; obj38.Steps = list56; reference38 = obj38; - ref QuestSequence reference42 = ref span19[3]; + num++; + ref QuestSequence reference42 = ref span52[num]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list60 = new List(num2); - CollectionsMarshal.SetCount(list60, num2); - CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list60 = new List(index2); + CollectionsMarshal.SetCount(list60, index2); + Span span60 = CollectionsMarshal.AsSpan(list60); + num2 = 0; + span60[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386316,13 +469798,16 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - CollectionsMarshal.AsSpan(list61)[0] = "WigglyMuffin, CryoTechnic"; + Span span61 = CollectionsMarshal.AsSpan(list61); + index = 0; + span61[index] = "WigglyMuffin, CryoTechnic"; questRoot10.Author = list61; - num = 4; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span25 = CollectionsMarshal.AsSpan(list62); - ref QuestSequence reference43 = ref span25[0]; + index = 4; + List list62 = new List(index); + CollectionsMarshal.SetCount(list62, index); + Span span62 = CollectionsMarshal.AsSpan(list62); + num = 0; + ref QuestSequence reference43 = ref span62[num]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -386330,7 +469815,9 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386344,15 +469831,18 @@ public static class AssemblyQuestLoader }; obj43.Steps = list63; reference43 = obj43; - ref QuestSequence reference44 = ref span25[1]; + num++; + ref QuestSequence reference44 = ref span62[num]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1055792u, new Vector3(425.4978f, 118.935005f, 606.897f), 1187) + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.Interact, 1055792u, new Vector3(425.4978f, 118.935005f, 606.897f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386366,7 +469856,8 @@ public static class AssemblyQuestLoader }; obj44.Steps = list64; reference44 = obj44; - ref QuestSequence reference45 = ref span25[2]; + num++; + ref QuestSequence reference45 = ref span62[num]; QuestSequence obj45 = new QuestSequence { Sequence = 2 @@ -386374,8 +469865,9 @@ public static class AssemblyQuestLoader num2 = 2; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span26 = CollectionsMarshal.AsSpan(list65); - span26[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46238u, ItemCount = 1, @@ -386387,21 +469879,25 @@ public static class AssemblyQuestLoader } } }; - span26[1] = new QuestStep(EInteractionType.Interact, 1055793u, new Vector3(424.33813f, 118.935005f, 609.308f), 1187) + index2++; + span65[index2] = new QuestStep(EInteractionType.Interact, 1055793u, new Vector3(424.33813f, 118.935005f, 609.308f), 1187) { Fly = true }; obj45.Steps = list65; reference45 = obj45; - ref QuestSequence reference46 = ref span25[3]; + num++; + ref QuestSequence reference46 = ref span62[num]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list66 = new List(index2); + CollectionsMarshal.SetCount(list66, index2); + Span span66 = CollectionsMarshal.AsSpan(list66); + num2 = 0; + span66[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386422,13 +469918,16 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - CollectionsMarshal.AsSpan(list67)[0] = "WigglyMuffin, CryoTechnic"; + Span span67 = CollectionsMarshal.AsSpan(list67); + index = 0; + span67[index] = "WigglyMuffin, CryoTechnic"; questRoot11.Author = list67; - num = 4; - List list68 = new List(num); - CollectionsMarshal.SetCount(list68, num); - Span span27 = CollectionsMarshal.AsSpan(list68); - ref QuestSequence reference47 = ref span27[0]; + index = 4; + List list68 = new List(index); + CollectionsMarshal.SetCount(list68, index); + Span span68 = CollectionsMarshal.AsSpan(list68); + num = 0; + ref QuestSequence reference47 = ref span68[num]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -386436,7 +469935,9 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span69 = CollectionsMarshal.AsSpan(list69); + index2 = 0; + span69[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386450,16 +469951,18 @@ public static class AssemblyQuestLoader }; obj47.Steps = list69; reference47 = obj47; - ref QuestSequence reference48 = ref span27[1]; + num++; + ref QuestSequence reference48 = ref span68[num]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list70 = new List(num2); - CollectionsMarshal.SetCount(list70, num2); - Span span28 = CollectionsMarshal.AsSpan(list70); - ref QuestStep reference49 = ref span28[0]; + index2 = 3; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num2 = 0; + ref QuestStep reference49 = ref span70[num2]; QuestStep obj49 = new QuestStep(EInteractionType.Interact, 2014948u, new Vector3(-485.1251f, 49.18068f, -302.4295f), 1187) { Fly = true, @@ -386475,16 +469978,23 @@ public static class AssemblyQuestLoader num3 = 6; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span29 = CollectionsMarshal.AsSpan(list71); - span29[0] = null; - span29[1] = null; - span29[2] = null; - span29[3] = null; - span29[4] = null; - span29[5] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); + Span span71 = CollectionsMarshal.AsSpan(list71); + index3 = 0; + span71[index3] = null; + index3++; + span71[index3] = null; + index3++; + span71[index3] = null; + index3++; + span71[index3] = null; + index3++; + span71[index3] = null; + index3++; + span71[index3] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); obj49.CompletionQuestVariablesFlags = list71; reference49 = obj49; - ref QuestStep reference50 = ref span28[1]; + num2++; + ref QuestStep reference50 = ref span70[num2]; QuestStep obj50 = new QuestStep(EInteractionType.Interact, 2014949u, new Vector3(-556.6002f, 55.26223f, -305.9056f), 1187) { Fly = true, @@ -386497,19 +470007,26 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list72 = new List(num3); - CollectionsMarshal.SetCount(list72, num3); - Span span30 = CollectionsMarshal.AsSpan(list72); - span30[0] = null; - span30[1] = null; - span30[2] = null; - span30[3] = null; - span30[4] = null; - span30[5] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + Span span72 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = null; + num3++; + span72[num3] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); obj50.CompletionQuestVariablesFlags = list72; reference50 = obj50; - ref QuestStep reference51 = ref span28[2]; + num2++; + ref QuestStep reference51 = ref span70[num2]; QuestStep obj51 = new QuestStep(EInteractionType.Interact, 2014947u, new Vector3(-503.3189f, 57.45695f, -196.0937f), 1187) { Fly = true, @@ -386525,18 +470042,25 @@ public static class AssemblyQuestLoader num3 = 6; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - Span span31 = CollectionsMarshal.AsSpan(list73); - span31[0] = null; - span31[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span31[2] = null; - span31[3] = null; - span31[4] = null; - span31[5] = null; + Span span73 = CollectionsMarshal.AsSpan(list73); + index3 = 0; + span73[index3] = null; + index3++; + span73[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span73[index3] = null; + index3++; + span73[index3] = null; + index3++; + span73[index3] = null; + index3++; + span73[index3] = null; obj51.CompletionQuestVariablesFlags = list73; reference51 = obj51; obj48.Steps = list70; reference48 = obj48; - ref QuestSequence reference52 = ref span27[2]; + num++; + ref QuestSequence reference52 = ref span68[num]; QuestSequence obj52 = new QuestSequence { Sequence = 2 @@ -386544,8 +470068,9 @@ public static class AssemblyQuestLoader num2 = 4; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span32 = CollectionsMarshal.AsSpan(list74); - ref QuestStep reference53 = ref span32[0]; + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + ref QuestStep reference53 = ref span74[index2]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297, @@ -386554,37 +470079,45 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - CollectionsMarshal.AsSpan(list75)[0] = 1187; + index3 = 1; + List list75 = new List(index3); + CollectionsMarshal.SetCount(list75, index3); + Span span75 = CollectionsMarshal.AsSpan(list75); + num3 = 0; + span75[num3] = 1187; skipStepConditions6.NotInTerritory = list75; skipConditions6.StepIf = skipStepConditions6; obj53.SkipConditions = skipConditions6; reference53 = obj53; - span32[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-7.667403f, 0.39999998f, 157.18628f), 1297) + index2++; + span74[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-7.667403f, 0.39999998f, 157.18628f), 1297) { DisableNavmesh = true }; - span32[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-81.35781f, 4.0711737f, 162.40425f), 1297) + index2++; + span74[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-81.35781f, 4.0711737f, 162.40425f), 1297) { DisableNavmesh = true }; - span32[3] = new QuestStep(EInteractionType.Interact, 1055794u, new Vector3(-92.729065f, 4.071174f, 172.07593f), 1297) + index2++; + span74[index2] = new QuestStep(EInteractionType.Interact, 1055794u, new Vector3(-92.729065f, 4.071174f, 172.07593f), 1297) { Fly = true }; obj52.Steps = list74; reference52 = obj52; - ref QuestSequence reference54 = ref span27[3]; + num++; + ref QuestSequence reference54 = ref span68[num]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list76 = new List(index2); + CollectionsMarshal.SetCount(list76, index2); + Span span76 = CollectionsMarshal.AsSpan(list76); + num2 = 0; + span76[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386605,13 +470138,16 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - CollectionsMarshal.AsSpan(list77)[0] = "WigglyMuffin, CryoTechnic"; + Span span77 = CollectionsMarshal.AsSpan(list77); + index = 0; + span77[index] = "WigglyMuffin, CryoTechnic"; questRoot12.Author = list77; - num = 4; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span33 = CollectionsMarshal.AsSpan(list78); - ref QuestSequence reference55 = ref span33[0]; + index = 4; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + Span span78 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference55 = ref span78[num]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -386619,7 +470155,9 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386633,16 +470171,18 @@ public static class AssemblyQuestLoader }; obj55.Steps = list79; reference55 = obj55; - ref QuestSequence reference56 = ref span33[1]; + num++; + ref QuestSequence reference56 = ref span78[num]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span34 = CollectionsMarshal.AsSpan(list80); - ref QuestStep reference57 = ref span34[0]; + index2 = 2; + List list80 = new List(index2); + CollectionsMarshal.SetCount(list80, index2); + Span span80 = CollectionsMarshal.AsSpan(list80); + num2 = 0; + ref QuestStep reference57 = ref span80[num2]; QuestStep obj57 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -386652,15 +470192,19 @@ public static class AssemblyQuestLoader num3 = 1; List list81 = new List(num3); CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = 1187; + Span span81 = CollectionsMarshal.AsSpan(list81); + index3 = 0; + span81[index3] = 1187; skipStepConditions7.NotInTerritory = list81; skipConditions7.StepIf = skipStepConditions7; obj57.SkipConditions = skipConditions7; reference57 = obj57; - span34[1] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); + num2++; + span80[num2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); obj56.Steps = list80; reference56 = obj56; - ref QuestSequence reference58 = ref span33[2]; + num++; + ref QuestSequence reference58 = ref span78[num]; QuestSequence obj58 = new QuestSequence { Sequence = 2 @@ -386668,8 +470212,9 @@ public static class AssemblyQuestLoader num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span35 = CollectionsMarshal.AsSpan(list82); - span35[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46240u, ItemCount = 4, @@ -386681,18 +470226,22 @@ public static class AssemblyQuestLoader } } }; - span35[1] = new QuestStep(EInteractionType.Interact, 1055795u, new Vector3(76.98169f, 3.871f, 20.248657f), 1297); + index2++; + span82[index2] = new QuestStep(EInteractionType.Interact, 1055795u, new Vector3(76.98169f, 3.871f, 20.248657f), 1297); obj58.Steps = list82; reference58 = obj58; - ref QuestSequence reference59 = ref span33[3]; + num++; + ref QuestSequence reference59 = ref span78[num]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list83 = new List(num2); - CollectionsMarshal.SetCount(list83, num2); - CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386713,13 +470262,16 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - CollectionsMarshal.AsSpan(list84)[0] = "WigglyMuffin"; + Span span84 = CollectionsMarshal.AsSpan(list84); + index = 0; + span84[index] = "WigglyMuffin"; questRoot13.Author = list84; - num = 4; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span36 = CollectionsMarshal.AsSpan(list85); - ref QuestSequence reference60 = ref span36[0]; + index = 4; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference60 = ref span85[num]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -386727,7 +470279,9 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386741,16 +470295,18 @@ public static class AssemblyQuestLoader }; obj60.Steps = list86; reference60 = obj60; - ref QuestSequence reference61 = ref span36[1]; + num++; + ref QuestSequence reference61 = ref span85[num]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - num2 = 4; - List list87 = new List(num2); - CollectionsMarshal.SetCount(list87, num2); - Span span37 = CollectionsMarshal.AsSpan(list87); - ref QuestStep reference62 = ref span37[0]; + index2 = 4; + List list87 = new List(index2); + CollectionsMarshal.SetCount(list87, index2); + Span span87 = CollectionsMarshal.AsSpan(list87); + num2 = 0; + ref QuestStep reference62 = ref span87[num2]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297, @@ -386758,20 +470314,26 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num3 = 1; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - CollectionsMarshal.AsSpan(list88)[0] = 1187; + index3 = 1; + List list88 = new List(index3); + CollectionsMarshal.SetCount(list88, index3); + Span span88 = CollectionsMarshal.AsSpan(list88); + num3 = 0; + span88[num3] = 1187; skipStepConditions8.NotInTerritory = list88; skipConditions8.StepIf = skipStepConditions8; obj62.SkipConditions = skipConditions8; reference62 = obj62; - span37[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.53954f, 0f, 66.45418f), 1297); - span37[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(73.61164f, 1.8846376f, 59.062263f), 1297); - span37[3] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); + num2++; + span87[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.53954f, 0f, 66.45418f), 1297); + num2++; + span87[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(73.61164f, 1.8846376f, 59.062263f), 1297); + num2++; + span87[num2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); obj61.Steps = list87; reference61 = obj61; - ref QuestSequence reference63 = ref span36[2]; + num++; + ref QuestSequence reference63 = ref span85[num]; QuestSequence obj63 = new QuestSequence { Sequence = 2 @@ -386779,8 +470341,9 @@ public static class AssemblyQuestLoader num2 = 4; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span38 = CollectionsMarshal.AsSpan(list89); - span38[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span89 = CollectionsMarshal.AsSpan(list89); + index2 = 0; + span89[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46242u, ItemCount = 1, @@ -386792,23 +470355,29 @@ public static class AssemblyQuestLoader } } }; - span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(50.179123f, 0f, 65.47386f), 1297); - span38[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.967834f, 4.053136f, 162.06543f), 1297); - span38[3] = new QuestStep(EInteractionType.Interact, 1055811u, new Vector3(-94.5907f, 4.071177f, 155.68774f), 1297) + index2++; + span89[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(50.179123f, 0f, 65.47386f), 1297); + index2++; + span89[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.967834f, 4.053136f, 162.06543f), 1297); + index2++; + span89[index2] = new QuestStep(EInteractionType.Interact, 1055811u, new Vector3(-94.5907f, 4.071177f, 155.68774f), 1297) { DisableNavmesh = true }; obj63.Steps = list89; reference63 = obj63; - ref QuestSequence reference64 = ref span36[3]; + num++; + ref QuestSequence reference64 = ref span85[num]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + index2 = 1; + List list90 = new List(index2); + CollectionsMarshal.SetCount(list90, index2); + Span span90 = CollectionsMarshal.AsSpan(list90); + num2 = 0; + span90[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386829,13 +470398,16 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - CollectionsMarshal.AsSpan(list91)[0] = "WigglyMuffin"; + Span span91 = CollectionsMarshal.AsSpan(list91); + index = 0; + span91[index] = "WigglyMuffin"; questRoot14.Author = list91; - num = 3; - List list92 = new List(num); - CollectionsMarshal.SetCount(list92, num); - Span span39 = CollectionsMarshal.AsSpan(list92); - ref QuestSequence reference65 = ref span39[0]; + index = 3; + List list92 = new List(index); + CollectionsMarshal.SetCount(list92, index); + Span span92 = CollectionsMarshal.AsSpan(list92); + num = 0; + ref QuestSequence reference65 = ref span92[num]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -386843,7 +470415,9 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span93 = CollectionsMarshal.AsSpan(list93); + index2 = 0; + span93[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386857,16 +470431,18 @@ public static class AssemblyQuestLoader }; obj65.Steps = list93; reference65 = obj65; - ref QuestSequence reference66 = ref span39[1]; + num++; + ref QuestSequence reference66 = ref span92[num]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span40 = CollectionsMarshal.AsSpan(list94); - span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.02783f, -116.81516f, -190.65091f), 1187) + index2 = 2; + List list94 = new List(index2); + CollectionsMarshal.SetCount(list94, index2); + Span span94 = CollectionsMarshal.AsSpan(list94); + num2 = 0; + span94[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.02783f, -116.81516f, -190.65091f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, @@ -386883,12 +470459,15 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference67 = ref span40[1]; + num2++; + ref QuestStep reference67 = ref span94[num2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1055812u, new Vector3(429.80078f, -116.815155f, -188.28113f), 1187); num3 = 1; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice + Span span95 = CollectionsMarshal.AsSpan(list95); + index3 = 0; + span95[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANYOK128_05363_Q1_000_000"), @@ -386898,7 +470477,8 @@ public static class AssemblyQuestLoader reference67 = questStep; obj66.Steps = list94; reference66 = obj66; - ref QuestSequence reference68 = ref span39[2]; + num++; + ref QuestSequence reference68 = ref span92[num]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -386906,7 +470486,9 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + Span span96 = CollectionsMarshal.AsSpan(list96); + index2 = 0; + span96[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -386932,22 +470514,26 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - CollectionsMarshal.AsSpan(list97)[0] = "liza"; + Span span97 = CollectionsMarshal.AsSpan(list97); + index = 0; + span97[index] = "liza"; questRoot15.Author = list97; - num = 7; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span41 = CollectionsMarshal.AsSpan(list98); - ref QuestSequence reference69 = ref span41[0]; + index = 7; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num = 0; + ref QuestSequence reference69 = ref span98[num]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - Span span42 = CollectionsMarshal.AsSpan(list99); - ref QuestStep reference70 = ref span42[0]; + index2 = 2; + List list99 = new List(index2); + CollectionsMarshal.SetCount(list99, index2); + Span span99 = CollectionsMarshal.AsSpan(list99); + num2 = 0; + ref QuestStep reference70 = ref span99[num2]; QuestStep obj69 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, @@ -386960,10 +470546,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - num3 = 1; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - CollectionsMarshal.AsSpan(list100)[0] = 1207; + index3 = 1; + List list100 = new List(index3); + CollectionsMarshal.SetCount(list100, index3); + Span span100 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span100[num3] = 1207; skipStepConditions9.InTerritory = list100; skipConditions9.StepIf = skipStepConditions9; SkipAetheryteCondition obj70 = new SkipAetheryteCondition @@ -386973,15 +470561,19 @@ public static class AssemblyQuestLoader num3 = 1; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - CollectionsMarshal.AsSpan(list101)[0] = 1207; + Span span101 = CollectionsMarshal.AsSpan(list101); + index3 = 0; + span101[index3] = 1207; obj70.InTerritory = list101; skipConditions9.AetheryteShortcutIf = obj70; obj69.SkipConditions = skipConditions9; reference70 = obj69; - span42[1] = new QuestStep(EInteractionType.AcceptQuest, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); + num2++; + span99[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); obj68.Steps = list99; reference69 = obj68; - ref QuestSequence reference71 = ref span41[1]; + num++; + ref QuestSequence reference71 = ref span98[num]; QuestSequence obj71 = new QuestSequence { Sequence = 1 @@ -386989,37 +470581,45 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span43 = CollectionsMarshal.AsSpan(list102); - ref QuestStep reference72 = ref span43[0]; + Span span102 = CollectionsMarshal.AsSpan(list102); + index2 = 0; + ref QuestStep reference72 = ref span102[index2]; QuestStep obj72 = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.015319824f, 0.99176025f, 16.03717f), 1207) { TargetTerritoryId = (ushort)1186 }; SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 1; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - CollectionsMarshal.AsSpan(list103)[0] = 1207; + index3 = 1; + List list103 = new List(index3); + CollectionsMarshal.SetCount(list103, index3); + Span span103 = CollectionsMarshal.AsSpan(list103); + num3 = 0; + span103[num3] = 1207; skipStepConditions10.NotInTerritory = list103; skipConditions10.StepIf = skipStepConditions10; obj72.SkipConditions = skipConditions10; reference72 = obj72; - span43[1] = new QuestStep(EInteractionType.Interact, 1054503u, new Vector3(291.4015f, 50.749996f, 155.19946f), 1186); + index2++; + span102[index2] = new QuestStep(EInteractionType.Interact, 1054503u, new Vector3(291.4015f, 50.749996f, 155.19946f), 1186); obj71.Steps = list102; reference71 = obj71; - ref QuestSequence reference73 = ref span41[2]; + num++; + ref QuestSequence reference73 = ref span98[num]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1054509u, new Vector3(291.432f, 50.75f, 153.79565f), 1186); + index2 = 1; + List list104 = new List(index2); + CollectionsMarshal.SetCount(list104, index2); + Span span104 = CollectionsMarshal.AsSpan(list104); + num2 = 0; + span104[num2] = new QuestStep(EInteractionType.Interact, 1054509u, new Vector3(291.432f, 50.75f, 153.79565f), 1186); obj73.Steps = list104; reference73 = obj73; - ref QuestSequence reference74 = ref span41[3]; + num++; + ref QuestSequence reference74 = ref span98[num]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -387027,52 +470627,75 @@ public static class AssemblyQuestLoader num2 = 3; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span44 = CollectionsMarshal.AsSpan(list105); - ref QuestStep reference75 = ref span44[0]; + Span span105 = CollectionsMarshal.AsSpan(list105); + index2 = 0; + ref QuestStep reference75 = ref span105[index2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1056091u, new Vector3(349.17212f, 50.75f, 198.38245f), 1186); num3 = 6; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - Span span45 = CollectionsMarshal.AsSpan(list106); - span45[0] = null; - span45[1] = null; - span45[2] = null; - span45[3] = null; - span45[4] = null; - span45[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span106 = CollectionsMarshal.AsSpan(list106); + index3 = 0; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = null; + index3++; + span106[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep2.CompletionQuestVariablesFlags = list106; reference75 = questStep2; - ref QuestStep reference76 = ref span44[1]; + index2++; + ref QuestStep reference76 = ref span105[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1056090u, new Vector3(341.26794f, 50.75f, 146.68494f), 1186); - num3 = 6; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - Span span46 = CollectionsMarshal.AsSpan(list107); - span46[0] = null; - span46[1] = null; - span46[2] = null; - span46[3] = null; - span46[4] = null; - span46[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list107 = new List(index3); + CollectionsMarshal.SetCount(list107, index3); + Span span107 = CollectionsMarshal.AsSpan(list107); + num3 = 0; + span107[num3] = null; + num3++; + span107[num3] = null; + num3++; + span107[num3] = null; + num3++; + span107[num3] = null; + num3++; + span107[num3] = null; + num3++; + span107[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list107; reference76 = questStep3; - ref QuestStep reference77 = ref span44[2]; + index2++; + ref QuestStep reference77 = ref span105[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1054508u, new Vector3(377.3098f, 50.749996f, 115.098755f), 1186); num3 = 6; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - Span span47 = CollectionsMarshal.AsSpan(list108); - span47[0] = null; - span47[1] = null; - span47[2] = null; - span47[3] = null; - span47[4] = null; - span47[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span108 = CollectionsMarshal.AsSpan(list108); + index3 = 0; + span108[index3] = null; + index3++; + span108[index3] = null; + index3++; + span108[index3] = null; + index3++; + span108[index3] = null; + index3++; + span108[index3] = null; + index3++; + span108[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list108; - num3 = 1; - List list109 = new List(num3); - CollectionsMarshal.SetCount(list109, num3); - CollectionsMarshal.AsSpan(list109)[0] = new DialogueChoice + index3 = 1; + List list109 = new List(index3); + CollectionsMarshal.SetCount(list109, index3); + Span span109 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + span109[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI101_05364_Q3_000_000"), @@ -387082,46 +470705,62 @@ public static class AssemblyQuestLoader reference77 = questStep4; obj74.Steps = list105; reference74 = obj74; - ref QuestSequence reference78 = ref span41[4]; + num++; + ref QuestSequence reference78 = ref span98[num]; QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span48 = CollectionsMarshal.AsSpan(list110); - ref QuestStep reference79 = ref span48[0]; + index2 = 2; + List list110 = new List(index2); + CollectionsMarshal.SetCount(list110, index2); + Span span110 = CollectionsMarshal.AsSpan(list110); + num2 = 0; + ref QuestStep reference79 = ref span110[num2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1054507u, new Vector3(465.2932f, 60f, 149.79773f), 1186); num3 = 6; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - Span span49 = CollectionsMarshal.AsSpan(list111); - span49[0] = null; - span49[1] = null; - span49[2] = null; - span49[3] = null; - span49[4] = null; - span49[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + Span span111 = CollectionsMarshal.AsSpan(list111); + index3 = 0; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = null; + index3++; + span111[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep5.CompletionQuestVariablesFlags = list111; reference79 = questStep5; - ref QuestStep reference80 = ref span48[1]; + num2++; + ref QuestStep reference80 = ref span110[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1054506u, new Vector3(465.44592f, 59.999886f, 196.58191f), 1186); - num3 = 6; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span50 = CollectionsMarshal.AsSpan(list112); - span50[0] = null; - span50[1] = null; - span50[2] = null; - span50[3] = null; - span50[4] = null; - span50[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + Span span112 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = null; + num3++; + span112[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep6.CompletionQuestVariablesFlags = list112; reference80 = questStep6; obj75.Steps = list110; reference78 = obj75; - ref QuestSequence reference81 = ref span41[5]; + num++; + ref QuestSequence reference81 = ref span98[num]; QuestSequence obj76 = new QuestSequence { Sequence = 5 @@ -387129,21 +470768,27 @@ public static class AssemblyQuestLoader num2 = 3; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span51 = CollectionsMarshal.AsSpan(list113); - span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.45462f, 60f, 142.0744f), 1186); - span51[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(467.92972f, 60f, 120.31207f), 1186); - span51[2] = new QuestStep(EInteractionType.Interact, 1056092u, new Vector3(350.78967f, 59.999996f, 76.798584f), 1186); + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.45462f, 60f, 142.0744f), 1186); + index2++; + span113[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(467.92972f, 60f, 120.31207f), 1186); + index2++; + span113[index2] = new QuestStep(EInteractionType.Interact, 1056092u, new Vector3(350.78967f, 59.999996f, 76.798584f), 1186); obj76.Steps = list113; reference81 = obj76; - ref QuestSequence reference82 = ref span41[6]; + num++; + ref QuestSequence reference82 = ref span98[num]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054514u, new Vector3(-404.4709f, 13.699978f, 239.00195f), 1186) + index2 = 1; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num2 = 0; + span114[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054514u, new Vector3(-404.4709f, 13.699978f, 239.00195f), 1186) { StopDistance = 7f }; @@ -387156,13 +470801,16 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - CollectionsMarshal.AsSpan(list115)[0] = "liza"; + Span span115 = CollectionsMarshal.AsSpan(list115); + index = 0; + span115[index] = "liza"; questRoot16.Author = list115; - num = 6; - List list116 = new List(num); - CollectionsMarshal.SetCount(list116, num); - Span span52 = CollectionsMarshal.AsSpan(list116); - ref QuestSequence reference83 = ref span52[0]; + index = 6; + List list116 = new List(index); + CollectionsMarshal.SetCount(list116, index); + Span span116 = CollectionsMarshal.AsSpan(list116); + num = 0; + ref QuestSequence reference83 = ref span116[num]; QuestSequence obj78 = new QuestSequence { Sequence = 0 @@ -387170,30 +470818,37 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054514u, new Vector3(-404.4709f, 13.699978f, 239.00195f), 1186) + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054514u, new Vector3(-404.4709f, 13.699978f, 239.00195f), 1186) { StopDistance = 7f }; obj78.Steps = list117; reference83 = obj78; - ref QuestSequence reference84 = ref span52[1]; + num++; + ref QuestSequence reference84 = ref span116[num]; QuestSequence obj79 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span53 = CollectionsMarshal.AsSpan(list118); - span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-409.0448f, 13.499981f, 269.6568f), 1186); - span53[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-403.7604f, 14.029999f, 272.61798f), 1186) + index2 = 3; + List list118 = new List(index2); + CollectionsMarshal.SetCount(list118, index2); + Span span118 = CollectionsMarshal.AsSpan(list118); + num2 = 0; + span118[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-409.0448f, 13.499981f, 269.6568f), 1186); + num2++; + span118[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-403.7604f, 14.029999f, 272.61798f), 1186) { DisableNavmesh = true }; - span53[2] = new QuestStep(EInteractionType.Interact, 1054518u, new Vector3(-368.00183f, 14f, 228.90051f), 1186); + num2++; + span118[num2] = new QuestStep(EInteractionType.Interact, 1054518u, new Vector3(-368.00183f, 14f, 228.90051f), 1186); obj79.Steps = list118; reference84 = obj79; - ref QuestSequence reference85 = ref span52[2]; + num++; + ref QuestSequence reference85 = ref span116[num]; QuestSequence obj80 = new QuestSequence { Sequence = 2 @@ -387201,21 +470856,27 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 2014833u, new Vector3(-328.48102f, 13.992493f, 161.24207f), 1186); + Span span119 = CollectionsMarshal.AsSpan(list119); + index2 = 0; + span119[index2] = new QuestStep(EInteractionType.Interact, 2014833u, new Vector3(-328.48102f, 13.992493f, 161.24207f), 1186); obj80.Steps = list119; reference85 = obj80; - ref QuestSequence reference86 = ref span52[3]; + num++; + ref QuestSequence reference86 = ref span116[num]; QuestSequence obj81 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 2014834u, new Vector3(-242.69476f, 2.1820068f, 212.4513f), 1186); + index2 = 1; + List list120 = new List(index2); + CollectionsMarshal.SetCount(list120, index2); + Span span120 = CollectionsMarshal.AsSpan(list120); + num2 = 0; + span120[num2] = new QuestStep(EInteractionType.Interact, 2014834u, new Vector3(-242.69476f, 2.1820068f, 212.4513f), 1186); obj81.Steps = list120; reference86 = obj81; - ref QuestSequence reference87 = ref span52[4]; + num++; + ref QuestSequence reference87 = ref span116[num]; QuestSequence obj82 = new QuestSequence { Sequence = 4 @@ -387223,18 +470884,23 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 2014835u, new Vector3(-141.31384f, 2.1820068f, 212.9701f), 1186); + Span span121 = CollectionsMarshal.AsSpan(list121); + index2 = 0; + span121[index2] = new QuestStep(EInteractionType.Interact, 2014835u, new Vector3(-141.31384f, 2.1820068f, 212.9701f), 1186); obj82.Steps = list121; reference87 = obj82; - ref QuestSequence reference88 = ref span52[5]; + num++; + ref QuestSequence reference88 = ref span116[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054529u, new Vector3(-134.53882f, 19.699795f, 382.77246f), 1186); + index2 = 1; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + span122[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054529u, new Vector3(-134.53882f, 19.699795f, 382.77246f), 1186); obj83.Steps = list122; reference88 = obj83; questRoot16.QuestSequence = list116; @@ -387244,13 +470910,16 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - CollectionsMarshal.AsSpan(list123)[0] = "liza"; + Span span123 = CollectionsMarshal.AsSpan(list123); + index = 0; + span123[index] = "liza"; questRoot17.Author = list123; - num = 9; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span54 = CollectionsMarshal.AsSpan(list124); - ref QuestSequence reference89 = ref span54[0]; + index = 9; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + Span span124 = CollectionsMarshal.AsSpan(list124); + num = 0; + ref QuestSequence reference89 = ref span124[num]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -387258,24 +470927,30 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054529u, new Vector3(-134.53882f, 19.699795f, 382.77246f), 1186); + Span span125 = CollectionsMarshal.AsSpan(list125); + index2 = 0; + span125[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054529u, new Vector3(-134.53882f, 19.699795f, 382.77246f), 1186); obj84.Steps = list125; reference89 = obj84; - ref QuestSequence reference90 = ref span54[1]; + num++; + ref QuestSequence reference90 = ref span124[num]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1054535u, new Vector3(0.503479f, -4.5634806E-08f, 6.7596436f), 1207) + index2 = 1; + List list126 = new List(index2); + CollectionsMarshal.SetCount(list126, index2); + Span span126 = CollectionsMarshal.AsSpan(list126); + num2 = 0; + span126[num2] = new QuestStep(EInteractionType.Interact, 1054535u, new Vector3(0.503479f, -4.5634806E-08f, 6.7596436f), 1207) { StopDistance = 7f }; obj85.Steps = list126; reference90 = obj85; - ref QuestSequence reference91 = ref span54[2]; + num++; + ref QuestSequence reference91 = ref span124[num]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -387283,24 +470958,30 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 1054536u, new Vector3(-5.1728516f, -4.656613E-08f, 7.1869507f), 1207) + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = new QuestStep(EInteractionType.Interact, 1054536u, new Vector3(-5.1728516f, -4.656613E-08f, 7.1869507f), 1207) { StopDistance = 7f }; obj86.Steps = list127; reference91 = obj86; - ref QuestSequence reference92 = ref span54[3]; + num++; + ref QuestSequence reference92 = ref span124[num]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1054543u, new Vector3(-284.596f, 45.884224f, -812.55817f), 1191); + index2 = 1; + List list128 = new List(index2); + CollectionsMarshal.SetCount(list128, index2); + Span span128 = CollectionsMarshal.AsSpan(list128); + num2 = 0; + span128[num2] = new QuestStep(EInteractionType.Interact, 1054543u, new Vector3(-284.596f, 45.884224f, -812.55817f), 1191); obj87.Steps = list128; reference92 = obj87; - ref QuestSequence reference93 = ref span54[4]; + num++; + ref QuestSequence reference93 = ref span124[num]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -387308,12 +470989,16 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list129)[0]; + Span span129 = CollectionsMarshal.AsSpan(list129); + index2 = 0; + ref QuestStep reference94 = ref span129[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1054543u, new Vector3(-284.596f, 45.884224f, -812.55817f), 1191); num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - CollectionsMarshal.AsSpan(list130)[0] = new DialogueChoice + Span span130 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span130[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI103_05366_SYSTEM_000_081") @@ -387322,29 +471007,35 @@ public static class AssemblyQuestLoader reference94 = questStep7; obj88.Steps = list129; reference93 = obj88; - ref QuestSequence reference95 = ref span54[5]; + num++; + ref QuestSequence reference95 = ref span124[num]; QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list131 = new List(num2); - CollectionsMarshal.SetCount(list131, num2); - ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list131)[0]; + index2 = 1; + List list131 = new List(index2); + CollectionsMarshal.SetCount(list131, index2); + Span span131 = CollectionsMarshal.AsSpan(list131); + num2 = 0; + ref QuestStep reference96 = ref span131[num2]; QuestStep obj90 = new QuestStep(EInteractionType.Combat, null, new Vector3(219.38443f, 57.060833f, -661.6021f), 1191) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num3 = 1; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - CollectionsMarshal.AsSpan(list132)[0] = 18915u; + index3 = 1; + List list132 = new List(index3); + CollectionsMarshal.SetCount(list132, index3); + Span span132 = CollectionsMarshal.AsSpan(list132); + num3 = 0; + span132[num3] = 18915u; obj90.KillEnemyDataIds = list132; reference96 = obj90; obj89.Steps = list131; reference95 = obj89; - ref QuestSequence reference97 = ref span54[6]; + num++; + ref QuestSequence reference97 = ref span124[num]; QuestSequence obj91 = new QuestSequence { Sequence = 6 @@ -387352,22 +471043,28 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1054544u, new Vector3(210.40662f, 57.66854f, -651.3619f), 1191); + Span span133 = CollectionsMarshal.AsSpan(list133); + index2 = 0; + span133[index2] = new QuestStep(EInteractionType.Interact, 1054544u, new Vector3(210.40662f, 57.66854f, -651.3619f), 1191); obj91.Steps = list133; reference97 = obj91; - span54[7] = new QuestSequence + num++; + span124[num] = new QuestSequence { Sequence = 7 }; - ref QuestSequence reference98 = ref span54[8]; + num++; + ref QuestSequence reference98 = ref span124[num]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054545u, new Vector3(6.6071167f, 0.37129992f, -18.570251f), 1171) + index2 = 1; + List list134 = new List(index2); + CollectionsMarshal.SetCount(list134, index2); + Span span134 = CollectionsMarshal.AsSpan(list134); + num2 = 0; + span134[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054545u, new Vector3(6.6071167f, 0.37129992f, -18.570251f), 1171) { StopDistance = 7f }; @@ -387380,13 +471077,16 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - CollectionsMarshal.AsSpan(list135)[0] = "liza"; + Span span135 = CollectionsMarshal.AsSpan(list135); + index = 0; + span135[index] = "liza"; questRoot18.Author = list135; - num = 6; - List list136 = new List(num); - CollectionsMarshal.SetCount(list136, num); - Span span55 = CollectionsMarshal.AsSpan(list136); - ref QuestSequence reference99 = ref span55[0]; + index = 6; + List list136 = new List(index); + CollectionsMarshal.SetCount(list136, index); + Span span136 = CollectionsMarshal.AsSpan(list136); + num = 0; + ref QuestSequence reference99 = ref span136[num]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -387394,24 +471094,30 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054545u, new Vector3(6.6071167f, 0.37129992f, -18.570251f), 1171); + Span span137 = CollectionsMarshal.AsSpan(list137); + index2 = 0; + span137[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054545u, new Vector3(6.6071167f, 0.37129992f, -18.570251f), 1171); obj93.Steps = list137; reference99 = obj93; - ref QuestSequence reference100 = ref span55[1]; + num++; + ref QuestSequence reference100 = ref span136[num]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1054546u, new Vector3(-240.77216f, 30f, -597.345f), 1191) + index2 = 1; + List list138 = new List(index2); + CollectionsMarshal.SetCount(list138, index2); + Span span138 = CollectionsMarshal.AsSpan(list138); + num2 = 0; + span138[num2] = new QuestStep(EInteractionType.Interact, 1054546u, new Vector3(-240.77216f, 30f, -597.345f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj94.Steps = list138; reference100 = obj94; - ref QuestSequence reference101 = ref span55[2]; + num++; + ref QuestSequence reference101 = ref span136[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 @@ -387419,8 +471125,9 @@ public static class AssemblyQuestLoader num2 = 3; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span56 = CollectionsMarshal.AsSpan(list139); - ref QuestStep reference102 = ref span56[0]; + Span span139 = CollectionsMarshal.AsSpan(list139); + index2 = 0; + ref QuestStep reference102 = ref span139[index2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1054549u, new Vector3(-303.8529f, 33.89061f, -546.7765f), 1191) { Fly = true @@ -387428,33 +471135,47 @@ public static class AssemblyQuestLoader num3 = 6; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - Span span57 = CollectionsMarshal.AsSpan(list140); - span57[0] = null; - span57[1] = null; - span57[2] = null; - span57[3] = null; - span57[4] = null; - span57[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + Span span140 = CollectionsMarshal.AsSpan(list140); + index3 = 0; + span140[index3] = null; + index3++; + span140[index3] = null; + index3++; + span140[index3] = null; + index3++; + span140[index3] = null; + index3++; + span140[index3] = null; + index3++; + span140[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); obj96.CompletionQuestVariablesFlags = list140; reference102 = obj96; - ref QuestStep reference103 = ref span56[1]; + index2++; + ref QuestStep reference103 = ref span139[index2]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1054548u, new Vector3(-182.97095f, 28f, -570.0313f), 1191) { Fly = true }; - num3 = 6; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - Span span58 = CollectionsMarshal.AsSpan(list141); - span58[0] = null; - span58[1] = null; - span58[2] = null; - span58[3] = null; - span58[4] = null; - span58[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list141 = new List(index3); + CollectionsMarshal.SetCount(list141, index3); + Span span141 = CollectionsMarshal.AsSpan(list141); + num3 = 0; + span141[num3] = null; + num3++; + span141[num3] = null; + num3++; + span141[num3] = null; + num3++; + span141[num3] = null; + num3++; + span141[num3] = null; + num3++; + span141[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); obj97.CompletionQuestVariablesFlags = list141; reference103 = obj97; - ref QuestStep reference104 = ref span56[2]; + index2++; + ref QuestStep reference104 = ref span139[index2]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1054547u, new Vector3(-111.49768f, 42.99968f, -658.7778f), 1191) { Fly = true @@ -387462,34 +471183,45 @@ public static class AssemblyQuestLoader num3 = 6; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - Span span59 = CollectionsMarshal.AsSpan(list142); - span59[0] = null; - span59[1] = null; - span59[2] = null; - span59[3] = null; - span59[4] = null; - span59[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span142 = CollectionsMarshal.AsSpan(list142); + index3 = 0; + span142[index3] = null; + index3++; + span142[index3] = null; + index3++; + span142[index3] = null; + index3++; + span142[index3] = null; + index3++; + span142[index3] = null; + index3++; + span142[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); obj98.CompletionQuestVariablesFlags = list142; reference104 = obj98; obj95.Steps = list139; reference101 = obj95; - ref QuestSequence reference105 = ref span55[3]; + num++; + ref QuestSequence reference105 = ref span136[num]; QuestSequence obj99 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list143 = new List(num2); - CollectionsMarshal.SetCount(list143, num2); - ref QuestStep reference106 = ref CollectionsMarshal.AsSpan(list143)[0]; + index2 = 1; + List list143 = new List(index2); + CollectionsMarshal.SetCount(list143, index2); + Span span143 = CollectionsMarshal.AsSpan(list143); + num2 = 0; + ref QuestStep reference106 = ref span143[num2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1054546u, new Vector3(-240.77216f, 30f, -597.345f), 1191) { Fly = true }; - num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = new DialogueChoice + index3 = 1; + List list144 = new List(index3); + CollectionsMarshal.SetCount(list144, index3); + Span span144 = CollectionsMarshal.AsSpan(list144); + num3 = 0; + span144[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI104_05367_Q1_000_000"), @@ -387499,11 +471231,13 @@ public static class AssemblyQuestLoader reference106 = obj100; obj99.Steps = list143; reference105 = obj99; - span55[4] = new QuestSequence + num++; + span136[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference107 = ref span55[5]; + num++; + ref QuestSequence reference107 = ref span136[num]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -387511,7 +471245,9 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054550u, new Vector3(-24.307678f, 38.806587f, -411.2459f), 1186) + Span span145 = CollectionsMarshal.AsSpan(list145); + index2 = 0; + span145[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054550u, new Vector3(-24.307678f, 38.806587f, -411.2459f), 1186) { StopDistance = 7f }; @@ -387524,27 +471260,33 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - CollectionsMarshal.AsSpan(list146)[0] = "liza"; + Span span146 = CollectionsMarshal.AsSpan(list146); + index = 0; + span146[index] = "liza"; questRoot19.Author = list146; - num = 13; - List list147 = new List(num); - CollectionsMarshal.SetCount(list147, num); - Span span60 = CollectionsMarshal.AsSpan(list147); - ref QuestSequence reference108 = ref span60[0]; + index = 13; + List list147 = new List(index); + CollectionsMarshal.SetCount(list147, index); + Span span147 = CollectionsMarshal.AsSpan(list147); + num = 0; + ref QuestSequence reference108 = ref span147[num]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list148 = new List(num2); - CollectionsMarshal.SetCount(list148, num2); - CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054551u, new Vector3(-23.544739f, 38.806587f, -412.19202f), 1186) + index2 = 1; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + span148[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054551u, new Vector3(-23.544739f, 38.806587f, -412.19202f), 1186) { StopDistance = 7f }; obj102.Steps = list148; reference108 = obj102; - ref QuestSequence reference109 = ref span60[1]; + num++; + ref QuestSequence reference109 = ref span147[num]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -387552,12 +471294,16 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list149)[0]; + Span span149 = CollectionsMarshal.AsSpan(list149); + index2 = 0; + ref QuestStep reference110 = ref span149[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1054936u, new Vector3(-57.41974f, 42.8066f, -546.7765f), 1186); num3 = 1; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = new DialogueChoice + Span span150 = CollectionsMarshal.AsSpan(list150); + index3 = 0; + span150[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI105_05368_SYSTEM_000_061") @@ -387566,24 +471312,30 @@ public static class AssemblyQuestLoader reference110 = questStep8; obj103.Steps = list149; reference109 = obj103; - span60[2] = new QuestSequence + num++; + span147[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference111 = ref span60[3]; + num++; + ref QuestSequence reference111 = ref span147[num]; QuestSequence obj104 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list151)[0]; + index2 = 1; + List list151 = new List(index2); + CollectionsMarshal.SetCount(list151, index2); + Span span151 = CollectionsMarshal.AsSpan(list151); + num2 = 0; + ref QuestStep reference112 = ref span151[num2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2014877u, new Vector3(-53.76658f, 0.4967778f, 10.78857f), 1299); - num3 = 1; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - CollectionsMarshal.AsSpan(list152)[0] = new DialogueChoice + index3 = 1; + List list152 = new List(index3); + CollectionsMarshal.SetCount(list152, index3); + Span span152 = CollectionsMarshal.AsSpan(list152); + num3 = 0; + span152[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI105_05368_SYSTEM_000_117") @@ -387592,7 +471344,8 @@ public static class AssemblyQuestLoader reference112 = questStep9; obj104.Steps = list151; reference111 = obj104; - ref QuestSequence reference113 = ref span60[4]; + num++; + ref QuestSequence reference113 = ref span147[num]; QuestSequence obj105 = new QuestSequence { Sequence = 4 @@ -387600,27 +471353,33 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.UseItem, 2014879u, new Vector3(-31.18711f, 1.386986f, 14.38922f), 1299) + Span span153 = CollectionsMarshal.AsSpan(list153); + index2 = 0; + span153[index2] = new QuestStep(EInteractionType.UseItem, 2014879u, new Vector3(-31.18711f, 1.386986f, 14.38922f), 1299) { ItemId = 2003767u }; obj105.Steps = list153; reference113 = obj105; - ref QuestSequence reference114 = ref span60[5]; + num++; + ref QuestSequence reference114 = ref span147[num]; QuestSequence obj106 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list154 = new List(num2); - CollectionsMarshal.SetCount(list154, num2); - CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.UseItem, 2014880u, new Vector3(5.563949f, 1.29885f, -7.714191f), 1299) + index2 = 1; + List list154 = new List(index2); + CollectionsMarshal.SetCount(list154, index2); + Span span154 = CollectionsMarshal.AsSpan(list154); + num2 = 0; + span154[num2] = new QuestStep(EInteractionType.UseItem, 2014880u, new Vector3(5.563949f, 1.29885f, -7.714191f), 1299) { ItemId = 2003789u }; obj106.Steps = list154; reference114 = obj106; - ref QuestSequence reference115 = ref span60[6]; + num++; + ref QuestSequence reference115 = ref span147[num]; QuestSequence obj107 = new QuestSequence { Sequence = 6 @@ -387628,43 +471387,57 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1054888u, new Vector3(-9.079163f, 0.9997301f, -45.731323f), 1299); + Span span155 = CollectionsMarshal.AsSpan(list155); + index2 = 0; + span155[index2] = new QuestStep(EInteractionType.Interact, 1054888u, new Vector3(-9.079163f, 0.9997301f, -45.731323f), 1299); obj107.Steps = list155; reference115 = obj107; - ref QuestSequence reference116 = ref span60[7]; + num++; + ref QuestSequence reference116 = ref span147[num]; QuestSequence obj108 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - ref QuestStep reference117 = ref CollectionsMarshal.AsSpan(list156)[0]; + index2 = 1; + List list156 = new List(index2); + CollectionsMarshal.SetCount(list156, index2); + Span span156 = CollectionsMarshal.AsSpan(list156); + num2 = 0; + ref QuestStep reference117 = ref span156[num2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2014883u, new Vector3(6.94281f, 1.480042f, -53.72705f), 1299); num3 = 1; List list157 = new List(num3); CollectionsMarshal.SetCount(list157, num3); - CollectionsMarshal.AsSpan(list157)[0] = new DialogueChoice + Span span157 = CollectionsMarshal.AsSpan(list157); + index3 = 0; + span157[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI105_05368_SYSTEM_120_250") }; questStep10.DialogueChoices = list157; - num3 = 6; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - Span span61 = CollectionsMarshal.AsSpan(list158); - span61[0] = 0u; - span61[1] = 0u; - span61[2] = 4u; - span61[3] = 10u; - span61[4] = 8u; - span61[5] = 11u; + index3 = 6; + List list158 = new List(index3); + CollectionsMarshal.SetCount(list158, index3); + Span span158 = CollectionsMarshal.AsSpan(list158); + num3 = 0; + span158[num3] = 0u; + num3++; + span158[num3] = 0u; + num3++; + span158[num3] = 4u; + num3++; + span158[num3] = 10u; + num3++; + span158[num3] = 8u; + num3++; + span158[num3] = 11u; questStep10.PointMenuChoices = list158; reference117 = questStep10; obj108.Steps = list156; reference116 = obj108; - ref QuestSequence reference118 = ref span60[8]; + num++; + ref QuestSequence reference118 = ref span147[num]; QuestSequence obj109 = new QuestSequence { Sequence = 8 @@ -387672,24 +471445,30 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.UseItem, 2014881u, new Vector3(7.765003f, 1.296952f, 5.581435f), 1299) + Span span159 = CollectionsMarshal.AsSpan(list159); + index2 = 0; + span159[index2] = new QuestStep(EInteractionType.UseItem, 2014881u, new Vector3(7.765003f, 1.296952f, 5.581435f), 1299) { ItemId = 2003768u }; obj109.Steps = list159; reference118 = obj109; - ref QuestSequence reference119 = ref span60[9]; + num++; + ref QuestSequence reference119 = ref span147[num]; QuestSequence obj110 = new QuestSequence { Sequence = 9 }; - num2 = 1; - List list160 = new List(num2); - CollectionsMarshal.SetCount(list160, num2); - CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1054901u, new Vector3(15.6710205f, -1.036562E-06f, 28.244385f), 1299); + index2 = 1; + List list160 = new List(index2); + CollectionsMarshal.SetCount(list160, index2); + Span span160 = CollectionsMarshal.AsSpan(list160); + num2 = 0; + span160[num2] = new QuestStep(EInteractionType.Interact, 1054901u, new Vector3(15.6710205f, -1.036562E-06f, 28.244385f), 1299); obj110.Steps = list160; reference119 = obj110; - ref QuestSequence reference120 = ref span60[10]; + num++; + ref QuestSequence reference120 = ref span147[num]; QuestSequence obj111 = new QuestSequence { Sequence = 10 @@ -387697,24 +471476,30 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1054907u, new Vector3(43.289795f, 0.30650482f, 12.436096f), 1299); + Span span161 = CollectionsMarshal.AsSpan(list161); + index2 = 0; + span161[index2] = new QuestStep(EInteractionType.Interact, 1054907u, new Vector3(43.289795f, 0.30650482f, 12.436096f), 1299); obj111.Steps = list161; reference120 = obj111; - ref QuestSequence reference121 = ref span60[11]; + num++; + ref QuestSequence reference121 = ref span147[num]; QuestSequence obj112 = new QuestSequence { Sequence = 11 }; - num2 = 4; - List list162 = new List(num2); - CollectionsMarshal.SetCount(list162, num2); - Span span62 = CollectionsMarshal.AsSpan(list162); - ref QuestStep reference122 = ref span62[0]; + index2 = 4; + List list162 = new List(index2); + CollectionsMarshal.SetCount(list162, index2); + Span span162 = CollectionsMarshal.AsSpan(list162); + num2 = 0; + ref QuestStep reference122 = ref span162[num2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2014884u, new Vector3(44.99468f, 0.7551205f, 18.96421f), 1299); num3 = 1; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - CollectionsMarshal.AsSpan(list163)[0] = new DialogueChoice + Span span163 = CollectionsMarshal.AsSpan(list163); + index3 = 0; + span163[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI105_05368_Q1_100_000"), @@ -387722,12 +471507,15 @@ public static class AssemblyQuestLoader }; questStep11.DialogueChoices = list163; reference122 = questStep11; - ref QuestStep reference123 = ref span62[1]; + num2++; + ref QuestStep reference123 = ref span162[num2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2014885u, new Vector3(50.98755f, 0.7551f, 19.03446f), 1299); - num3 = 1; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice + index3 = 1; + List list164 = new List(index3); + CollectionsMarshal.SetCount(list164, index3); + Span span164 = CollectionsMarshal.AsSpan(list164); + num3 = 0; + span164[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI105_05368_Q1_100_000"), @@ -387735,12 +471523,15 @@ public static class AssemblyQuestLoader }; questStep12.DialogueChoices = list164; reference123 = questStep12; - ref QuestStep reference124 = ref span62[2]; + num2++; + ref QuestStep reference124 = ref span162[num2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2014887u, new Vector3(51.00287f, 0.7551f, 24.9874f), 1299); num3 = 1; List list165 = new List(num3); CollectionsMarshal.SetCount(list165, num3); - CollectionsMarshal.AsSpan(list165)[0] = new DialogueChoice + Span span165 = CollectionsMarshal.AsSpan(list165); + index3 = 0; + span165[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI105_05368_Q1_100_000"), @@ -387748,12 +471539,15 @@ public static class AssemblyQuestLoader }; questStep13.DialogueChoices = list165; reference124 = questStep13; - ref QuestStep reference125 = ref span62[3]; + num2++; + ref QuestStep reference125 = ref span162[num2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2014886u, new Vector3(44.9988f, 0.7551f, 25.03204f), 1299); - num3 = 1; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - CollectionsMarshal.AsSpan(list166)[0] = new DialogueChoice + index3 = 1; + List list166 = new List(index3); + CollectionsMarshal.SetCount(list166, index3); + Span span166 = CollectionsMarshal.AsSpan(list166); + num3 = 0; + span166[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI105_05368_Q1_100_000"), @@ -387763,7 +471557,8 @@ public static class AssemblyQuestLoader reference125 = questStep14; obj112.Steps = list162; reference121 = obj112; - ref QuestSequence reference126 = ref span60[12]; + num++; + ref QuestSequence reference126 = ref span147[num]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -387771,7 +471566,9 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054916u, new Vector3(16.189758f, -1.8225983E-06f, 28.030762f), 1299); + Span span167 = CollectionsMarshal.AsSpan(list167); + index2 = 0; + span167[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054916u, new Vector3(16.189758f, -1.8225983E-06f, 28.030762f), 1299); obj113.Steps = list167; reference126 = obj113; questRoot19.QuestSequence = list147; @@ -387781,24 +471578,30 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - CollectionsMarshal.AsSpan(list168)[0] = "liza"; + Span span168 = CollectionsMarshal.AsSpan(list168); + index = 0; + span168[index] = "liza"; questRoot20.Author = list168; - num = 10; - List list169 = new List(num); - CollectionsMarshal.SetCount(list169, num); - Span span63 = CollectionsMarshal.AsSpan(list169); - ref QuestSequence reference127 = ref span63[0]; + index = 10; + List list169 = new List(index); + CollectionsMarshal.SetCount(list169, index); + Span span169 = CollectionsMarshal.AsSpan(list169); + num = 0; + ref QuestSequence reference127 = ref span169[num]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list170 = new List(num2); - CollectionsMarshal.SetCount(list170, num2); - CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054916u, new Vector3(16.189758f, -1.8225983E-06f, 28.030762f), 1299); + index2 = 1; + List list170 = new List(index2); + CollectionsMarshal.SetCount(list170, index2); + Span span170 = CollectionsMarshal.AsSpan(list170); + num2 = 0; + span170[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054916u, new Vector3(16.189758f, -1.8225983E-06f, 28.030762f), 1299); obj114.Steps = list170; reference127 = obj114; - ref QuestSequence reference128 = ref span63[1]; + num++; + ref QuestSequence reference128 = ref span169[num]; QuestSequence obj115 = new QuestSequence { Sequence = 1 @@ -387806,21 +471609,27 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 2014889u, new Vector3(-6.637756f, 0.9917603f, 32.45593f), 1299); + Span span171 = CollectionsMarshal.AsSpan(list171); + index2 = 0; + span171[index2] = new QuestStep(EInteractionType.Interact, 2014889u, new Vector3(-6.637756f, 0.9917603f, 32.45593f), 1299); obj115.Steps = list171; reference128 = obj115; - ref QuestSequence reference129 = ref span63[2]; + num++; + ref QuestSequence reference129 = ref span169[num]; QuestSequence obj116 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list172 = new List(num2); - CollectionsMarshal.SetCount(list172, num2); - CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1054918u, new Vector3(4.0740967f, 1.1999817f, 41.82495f), 1299); + index2 = 1; + List list172 = new List(index2); + CollectionsMarshal.SetCount(list172, index2); + Span span172 = CollectionsMarshal.AsSpan(list172); + num2 = 0; + span172[num2] = new QuestStep(EInteractionType.Interact, 1054918u, new Vector3(4.0740967f, 1.1999817f, 41.82495f), 1299); obj116.Steps = list172; reference129 = obj116; - ref QuestSequence reference130 = ref span63[3]; + num++; + ref QuestSequence reference130 = ref span169[num]; QuestSequence obj117 = new QuestSequence { Sequence = 3 @@ -387828,24 +471637,30 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.UseItem, 2014909u, new Vector3(5.5639f, 1.2989f, -7.7142f), 1299) + Span span173 = CollectionsMarshal.AsSpan(list173); + index2 = 0; + span173[index2] = new QuestStep(EInteractionType.UseItem, 2014909u, new Vector3(5.5639f, 1.2989f, -7.7142f), 1299) { ItemId = 2003769u }; obj117.Steps = list173; reference130 = obj117; - ref QuestSequence reference131 = ref span63[4]; + num++; + ref QuestSequence reference131 = ref span169[num]; QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list174 = new List(num2); - CollectionsMarshal.SetCount(list174, num2); - CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1054928u, new Vector3(43.167725f, 0.020000027f, -18.661804f), 1299); + index2 = 1; + List list174 = new List(index2); + CollectionsMarshal.SetCount(list174, index2); + Span span174 = CollectionsMarshal.AsSpan(list174); + num2 = 0; + span174[num2] = new QuestStep(EInteractionType.Interact, 1054928u, new Vector3(43.167725f, 0.020000027f, -18.661804f), 1299); obj118.Steps = list174; reference131 = obj118; - ref QuestSequence reference132 = ref span63[5]; + num++; + ref QuestSequence reference132 = ref span169[num]; QuestSequence obj119 = new QuestSequence { Sequence = 5 @@ -387853,77 +471668,109 @@ public static class AssemblyQuestLoader num2 = 4; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span64 = CollectionsMarshal.AsSpan(list175); - ref QuestStep reference133 = ref span64[0]; + Span span175 = CollectionsMarshal.AsSpan(list175); + index2 = 0; + ref QuestStep reference133 = ref span175[index2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2014913u, new Vector3(48.28509f, 0.7955156f, -15.36493f), 1299); num3 = 6; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - Span span65 = CollectionsMarshal.AsSpan(list176); - span65[0] = null; - span65[1] = null; - span65[2] = null; - span65[3] = null; - span65[4] = null; - span65[5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + Span span176 = CollectionsMarshal.AsSpan(list176); + index3 = 0; + span176[index3] = null; + index3++; + span176[index3] = null; + index3++; + span176[index3] = null; + index3++; + span176[index3] = null; + index3++; + span176[index3] = null; + index3++; + span176[index3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); questStep15.CompletionQuestVariablesFlags = list176; reference133 = questStep15; - ref QuestStep reference134 = ref span64[1]; + index2++; + ref QuestStep reference134 = ref span175[index2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2014891u, new Vector3(45.64126f, 0.9739f, -23.77144f), 1299); - num3 = 6; - List list177 = new List(num3); - CollectionsMarshal.SetCount(list177, num3); - Span span66 = CollectionsMarshal.AsSpan(list177); - span66[0] = null; - span66[1] = null; - span66[2] = null; - span66[3] = null; - span66[4] = null; - span66[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list177 = new List(index3); + CollectionsMarshal.SetCount(list177, index3); + Span span177 = CollectionsMarshal.AsSpan(list177); + num3 = 0; + span177[num3] = null; + num3++; + span177[num3] = null; + num3++; + span177[num3] = null; + num3++; + span177[num3] = null; + num3++; + span177[num3] = null; + num3++; + span177[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); questStep16.CompletionQuestVariablesFlags = list177; reference134 = questStep16; - ref QuestStep reference135 = ref span64[2]; + index2++; + ref QuestStep reference135 = ref span175[index2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2014890u, new Vector3(32.00146f, 1.173118f, -22.75444f), 1299); num3 = 6; List list178 = new List(num3); CollectionsMarshal.SetCount(list178, num3); - Span span67 = CollectionsMarshal.AsSpan(list178); - span67[0] = null; - span67[1] = null; - span67[2] = null; - span67[3] = null; - span67[4] = null; - span67[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + Span span178 = CollectionsMarshal.AsSpan(list178); + index3 = 0; + span178[index3] = null; + index3++; + span178[index3] = null; + index3++; + span178[index3] = null; + index3++; + span178[index3] = null; + index3++; + span178[index3] = null; + index3++; + span178[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); questStep17.CompletionQuestVariablesFlags = list178; reference135 = questStep17; - ref QuestStep reference136 = ref span64[3]; + index2++; + ref QuestStep reference136 = ref span175[index2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2014892u, new Vector3(32.07058f, 0.8092833f, -9.735413f), 1299); - num3 = 6; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - Span span68 = CollectionsMarshal.AsSpan(list179); - span68[0] = null; - span68[1] = null; - span68[2] = null; - span68[3] = null; - span68[4] = null; - span68[5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3 = 6; + List list179 = new List(index3); + CollectionsMarshal.SetCount(list179, index3); + Span span179 = CollectionsMarshal.AsSpan(list179); + num3 = 0; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = null; + num3++; + span179[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); questStep18.CompletionQuestVariablesFlags = list179; reference136 = questStep18; obj119.Steps = list175; reference132 = obj119; - ref QuestSequence reference137 = ref span63[6]; + num++; + ref QuestSequence reference137 = ref span169[num]; QuestSequence obj120 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1054928u, new Vector3(43.167725f, 0.020000027f, -18.661804f), 1299); + index2 = 1; + List list180 = new List(index2); + CollectionsMarshal.SetCount(list180, index2); + Span span180 = CollectionsMarshal.AsSpan(list180); + num2 = 0; + span180[num2] = new QuestStep(EInteractionType.Interact, 1054928u, new Vector3(43.167725f, 0.020000027f, -18.661804f), 1299); obj120.Steps = list180; reference137 = obj120; - ref QuestSequence reference138 = ref span63[7]; + num++; + ref QuestSequence reference138 = ref span169[num]; QuestSequence obj121 = new QuestSequence { Sequence = 7 @@ -387931,8 +471778,9 @@ public static class AssemblyQuestLoader num2 = 4; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span69 = CollectionsMarshal.AsSpan(list181); - ref QuestStep reference139 = ref span69[0]; + Span span181 = CollectionsMarshal.AsSpan(list181); + index2 = 0; + ref QuestStep reference139 = ref span181[index2]; QuestStep obj122 = new QuestStep(EInteractionType.Interact, 1054935u, new Vector3(47.287598f, -8.0940923E-13f, -21.561035f), 1299) { SkipConditions = new SkipConditions @@ -387946,18 +471794,26 @@ public static class AssemblyQuestLoader num3 = 6; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - Span span70 = CollectionsMarshal.AsSpan(list182); - span70[0] = null; - span70[1] = null; - span70[2] = null; - span70[3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - span70[4] = null; - span70[5] = null; + Span span182 = CollectionsMarshal.AsSpan(list182); + index3 = 0; + span182[index3] = null; + index3++; + span182[index3] = null; + index3++; + span182[index3] = null; + index3++; + span182[index3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + index3++; + span182[index3] = null; + index3++; + span182[index3] = null; obj122.CompletionQuestVariablesFlags = list182; - num3 = 1; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - CollectionsMarshal.AsSpan(list183)[0] = new DialogueChoice + index3 = 1; + List list183 = new List(index3); + CollectionsMarshal.SetCount(list183, index3); + Span span183 = CollectionsMarshal.AsSpan(list183); + num3 = 0; + span183[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q5_000_000"), @@ -387965,29 +471821,38 @@ public static class AssemblyQuestLoader }; obj122.DialogueChoices = list183; reference139 = obj122; - ref QuestStep reference140 = ref span69[1]; + index2++; + ref QuestStep reference140 = ref span181[index2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2014894u, new Vector3(39.08986f, 1.296936f, -24.0025f), 1299); num3 = 6; List list184 = new List(num3); CollectionsMarshal.SetCount(list184, num3); - Span span71 = CollectionsMarshal.AsSpan(list184); - span71[0] = null; - span71[1] = null; - span71[2] = null; - span71[3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - span71[4] = null; - span71[5] = null; + Span span184 = CollectionsMarshal.AsSpan(list184); + index3 = 0; + span184[index3] = null; + index3++; + span184[index3] = null; + index3++; + span184[index3] = null; + index3++; + span184[index3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + index3++; + span184[index3] = null; + index3++; + span184[index3] = null; questStep19.CompletionQuestVariablesFlags = list184; - num3 = 2; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - Span span72 = CollectionsMarshal.AsSpan(list185); - span72[0] = new DialogueChoice + index3 = 2; + List list185 = new List(index3); + CollectionsMarshal.SetCount(list185, index3); + Span span185 = CollectionsMarshal.AsSpan(list185); + num3 = 0; + span185[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI106_05369_SYSTEM_000_350") }; - span72[1] = new DialogueChoice + num3++; + span185[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q7_000_000"), @@ -387997,12 +471862,15 @@ public static class AssemblyQuestLoader num3 = 2; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - Span span73 = CollectionsMarshal.AsSpan(list186); - span73[0] = 3u; - span73[1] = 4u; + Span span186 = CollectionsMarshal.AsSpan(list186); + index3 = 0; + span186[index3] = 3u; + index3++; + span186[index3] = 4u; questStep19.PointMenuChoices = list186; reference140 = questStep19; - ref QuestStep reference141 = ref span69[2]; + index2++; + ref QuestStep reference141 = ref span181[index2]; QuestStep obj123 = new QuestStep(EInteractionType.Interact, 1054931u, new Vector3(38.223755f, 0f, -13.443237f), 1299) { SkipConditions = new SkipConditions @@ -388013,21 +471881,29 @@ public static class AssemblyQuestLoader } } }; - num3 = 6; - List list187 = new List(num3); - CollectionsMarshal.SetCount(list187, num3); - Span span74 = CollectionsMarshal.AsSpan(list187); - span74[0] = null; - span74[1] = null; - span74[2] = null; - span74[3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - span74[4] = null; - span74[5] = null; + index3 = 6; + List list187 = new List(index3); + CollectionsMarshal.SetCount(list187, index3); + Span span187 = CollectionsMarshal.AsSpan(list187); + num3 = 0; + span187[num3] = null; + num3++; + span187[num3] = null; + num3++; + span187[num3] = null; + num3++; + span187[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + num3++; + span187[num3] = null; + num3++; + span187[num3] = null; obj123.CompletionQuestVariablesFlags = list187; num3 = 1; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - CollectionsMarshal.AsSpan(list188)[0] = new DialogueChoice + Span span188 = CollectionsMarshal.AsSpan(list188); + index3 = 0; + span188[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q6_000_000"), @@ -388035,25 +471911,29 @@ public static class AssemblyQuestLoader }; obj123.DialogueChoices = list188; reference141 = obj123; - ref QuestStep reference142 = ref span69[3]; + index2++; + ref QuestStep reference142 = ref span181[index2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2014893u, new Vector3(43.16655f, 1.244391f, -18.57025f), 1299); - num3 = 3; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - Span span75 = CollectionsMarshal.AsSpan(list189); - span75[0] = new DialogueChoice + index3 = 3; + List list189 = new List(index3); + CollectionsMarshal.SetCount(list189, index3); + Span span189 = CollectionsMarshal.AsSpan(list189); + num3 = 0; + span189[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q8_000_000"), Answer = new ExcelRef("TEXT_KINGMI106_05369_A8_000_005") }; - span75[1] = new DialogueChoice + num3++; + span189[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q9_000_000"), Answer = new ExcelRef("TEXT_KINGMI106_05369_A9_000_006") }; - span75[2] = new DialogueChoice + num3++; + span189[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q10_000_000"), @@ -388063,18 +471943,22 @@ public static class AssemblyQuestLoader reference142 = questStep20; obj121.Steps = list181; reference138 = obj121; - ref QuestSequence reference143 = ref span63[8]; + num++; + ref QuestSequence reference143 = ref span169[num]; QuestSequence obj124 = new QuestSequence { Sequence = 8 }; - num2 = 1; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1054938u, new Vector3(47.837036f, 0f, -10.025269f), 1299); + index2 = 1; + List list190 = new List(index2); + CollectionsMarshal.SetCount(list190, index2); + Span span190 = CollectionsMarshal.AsSpan(list190); + num2 = 0; + span190[num2] = new QuestStep(EInteractionType.Interact, 1054938u, new Vector3(47.837036f, 0f, -10.025269f), 1299); obj124.Steps = list190; reference143 = obj124; - ref QuestSequence reference144 = ref span63[9]; + num++; + ref QuestSequence reference144 = ref span169[num]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -388082,7 +471966,9 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054560u, new Vector3(-5.1118164f, -4.656613E-08f, 7.095398f), 1207); + Span span191 = CollectionsMarshal.AsSpan(list191); + index2 = 0; + span191[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054560u, new Vector3(-5.1118164f, -4.656613E-08f, 7.095398f), 1207); obj125.Steps = list191; reference144 = obj125; questRoot20.QuestSequence = list169; @@ -388092,24 +471978,30 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - CollectionsMarshal.AsSpan(list192)[0] = "liza"; + Span span192 = CollectionsMarshal.AsSpan(list192); + index = 0; + span192[index] = "liza"; questRoot21.Author = list192; - num = 4; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - Span span76 = CollectionsMarshal.AsSpan(list193); - ref QuestSequence reference145 = ref span76[0]; + index = 4; + List list193 = new List(index); + CollectionsMarshal.SetCount(list193, index); + Span span193 = CollectionsMarshal.AsSpan(list193); + num = 0; + ref QuestSequence reference145 = ref span193[num]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list194 = new List(num2); - CollectionsMarshal.SetCount(list194, num2); - CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054555u, new Vector3(-4.1047363f, -7.7714425E-08f, 9.536865f), 1207); + index2 = 1; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + span194[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054555u, new Vector3(-4.1047363f, -7.7714425E-08f, 9.536865f), 1207); obj126.Steps = list194; reference145 = obj126; - ref QuestSequence reference146 = ref span76[1]; + num++; + ref QuestSequence reference146 = ref span193[num]; QuestSequence obj127 = new QuestSequence { Sequence = 1 @@ -388117,12 +472009,14 @@ public static class AssemblyQuestLoader num2 = 2; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span77 = CollectionsMarshal.AsSpan(list195); - span77[0] = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.015319824f, 0.99176025f, 16.03717f), 1207) + Span span195 = CollectionsMarshal.AsSpan(list195); + index2 = 0; + span195[index2] = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.015319824f, 0.99176025f, 16.03717f), 1207) { TargetTerritoryId = (ushort)1186 }; - span77[1] = new QuestStep(EInteractionType.Interact, 1054561u, new Vector3(20.58435f, 38.056595f, -388.20483f), 1186) + index2++; + span195[index2] = new QuestStep(EInteractionType.Interact, 1054561u, new Vector3(20.58435f, 38.056595f, -388.20483f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -388132,18 +472026,22 @@ public static class AssemblyQuestLoader }; obj127.Steps = list195; reference146 = obj127; - ref QuestSequence reference147 = ref span76[2]; + num++; + ref QuestSequence reference147 = ref span193[num]; QuestSequence obj128 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list196 = new List(num2); - CollectionsMarshal.SetCount(list196, num2); - CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1054565u, new Vector3(18.539673f, 38.0566f, -387.16718f), 1186); + index2 = 1; + List list196 = new List(index2); + CollectionsMarshal.SetCount(list196, index2); + Span span196 = CollectionsMarshal.AsSpan(list196); + num2 = 0; + span196[num2] = new QuestStep(EInteractionType.Interact, 1054565u, new Vector3(18.539673f, 38.0566f, -387.16718f), 1186); obj128.Steps = list196; reference147 = obj128; - ref QuestSequence reference148 = ref span76[3]; + num++; + ref QuestSequence reference148 = ref span193[num]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue @@ -388151,7 +472049,9 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054569u, new Vector3(-0.5340576f, 53.200012f, 768.27637f), 1192) + Span span197 = CollectionsMarshal.AsSpan(list197); + index2 = 0; + span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054569u, new Vector3(-0.5340576f, 53.200012f, 768.27637f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; @@ -388164,24 +472064,30 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - CollectionsMarshal.AsSpan(list198)[0] = "liza"; + Span span198 = CollectionsMarshal.AsSpan(list198); + index = 0; + span198[index] = "liza"; questRoot22.Author = list198; - num = 8; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span78 = CollectionsMarshal.AsSpan(list199); - ref QuestSequence reference149 = ref span78[0]; + index = 8; + List list199 = new List(index); + CollectionsMarshal.SetCount(list199, index); + Span span199 = CollectionsMarshal.AsSpan(list199); + num = 0; + ref QuestSequence reference149 = ref span199[num]; QuestSequence obj130 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list200 = new List(num2); - CollectionsMarshal.SetCount(list200, num2); - CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054569u, new Vector3(-0.5340576f, 53.200012f, 768.27637f), 1192); + index2 = 1; + List list200 = new List(index2); + CollectionsMarshal.SetCount(list200, index2); + Span span200 = CollectionsMarshal.AsSpan(list200); + num2 = 0; + span200[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054569u, new Vector3(-0.5340576f, 53.200012f, 768.27637f), 1192); obj130.Steps = list200; reference149 = obj130; - ref QuestSequence reference150 = ref span78[1]; + num++; + ref QuestSequence reference150 = ref span199[num]; QuestSequence obj131 = new QuestSequence { Sequence = 1 @@ -388189,21 +472095,26 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1054576u, new Vector3(-0.16790771f, 50.12495f, 364.8584f), 1192) + Span span201 = CollectionsMarshal.AsSpan(list201); + index2 = 0; + span201[index2] = new QuestStep(EInteractionType.Interact, 1054576u, new Vector3(-0.16790771f, 50.12495f, 364.8584f), 1192) { Fly = true }; obj131.Steps = list201; reference150 = obj131; - ref QuestSequence reference151 = ref span78[2]; + num++; + ref QuestSequence reference151 = ref span199[num]; QuestSequence obj132 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list202 = new List(num2); - CollectionsMarshal.SetCount(list202, num2); - CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Duty, null, null, 1192) + index2 = 1; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + span202[num2] = new QuestStep(EInteractionType.Duty, null, null, 1192) { DutyOptions = new DutyOptions { @@ -388212,11 +472123,13 @@ public static class AssemblyQuestLoader }; obj132.Steps = list202; reference151 = obj132; - span78[3] = new QuestSequence + num++; + span199[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference152 = ref span78[4]; + num++; + ref QuestSequence reference152 = ref span199[num]; QuestSequence obj133 = new QuestSequence { Sequence = 4 @@ -388224,7 +472137,9 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Duty, null, null, 1312) + Span span203 = CollectionsMarshal.AsSpan(list203); + index2 = 0; + span203[index2] = new QuestStep(EInteractionType.Duty, null, null, 1312) { DutyOptions = new DutyOptions { @@ -388233,25 +472148,30 @@ public static class AssemblyQuestLoader }; obj133.Steps = list203; reference152 = obj133; - span78[5] = new QuestSequence + num++; + span199[num] = new QuestSequence { Sequence = 5 }; - ref QuestSequence reference153 = ref span78[6]; + num++; + ref QuestSequence reference153 = ref span199[num]; QuestSequence obj134 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list204 = new List(num2); - CollectionsMarshal.SetCount(list204, num2); - CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1054597u, new Vector3(5.8136597f, 50.12495f, 369.80237f), 1192) + index2 = 1; + List list204 = new List(index2); + CollectionsMarshal.SetCount(list204, index2); + Span span204 = CollectionsMarshal.AsSpan(list204); + num2 = 0; + span204[num2] = new QuestStep(EInteractionType.Interact, 1054597u, new Vector3(5.8136597f, 50.12495f, 369.80237f), 1192) { StopDistance = 5f }; obj134.Steps = list204; reference153 = obj134; - ref QuestSequence reference154 = ref span78[7]; + num++; + ref QuestSequence reference154 = ref span199[num]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue @@ -388259,7 +472179,9 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054604u, new Vector3(-145.06763f, 25.971825f, -495.38416f), 1191) + Span span205 = CollectionsMarshal.AsSpan(list205); + index2 = 0; + span205[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054604u, new Vector3(-145.06763f, 25.971825f, -495.38416f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts @@ -388273,24 +472195,30 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - CollectionsMarshal.AsSpan(list206)[0] = "liza"; + Span span206 = CollectionsMarshal.AsSpan(list206); + index = 0; + span206[index] = "liza"; questRoot23.Author = list206; - num = 6; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - Span span79 = CollectionsMarshal.AsSpan(list207); - ref QuestSequence reference155 = ref span79[0]; + index = 6; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + Span span207 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference155 = ref span207[num]; QuestSequence obj136 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054604u, new Vector3(-145.06763f, 25.971825f, -495.38416f), 1191); + index2 = 1; + List list208 = new List(index2); + CollectionsMarshal.SetCount(list208, index2); + Span span208 = CollectionsMarshal.AsSpan(list208); + num2 = 0; + span208[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054604u, new Vector3(-145.06763f, 25.971825f, -495.38416f), 1191); obj136.Steps = list208; reference155 = obj136; - ref QuestSequence reference156 = ref span79[1]; + num++; + ref QuestSequence reference156 = ref span207[num]; QuestSequence obj137 = new QuestSequence { Sequence = 1 @@ -388298,27 +472226,33 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1055852u, new Vector3(-117.906494f, 28.995459f, -353.1701f), 1191) + Span span209 = CollectionsMarshal.AsSpan(list209); + index2 = 0; + span209[index2] = new QuestStep(EInteractionType.Interact, 1055852u, new Vector3(-117.906494f, 28.995459f, -353.1701f), 1191) { Fly = true }; obj137.Steps = list209; reference156 = obj137; - ref QuestSequence reference157 = ref span79[2]; + num++; + ref QuestSequence reference157 = ref span207[num]; QuestSequence obj138 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list210 = new List(num2); - CollectionsMarshal.SetCount(list210, num2); - CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1048099u, new Vector3(-606.5919f, -2.203068f, -486.6255f), 1191) + index2 = 1; + List list210 = new List(index2); + CollectionsMarshal.SetCount(list210, index2); + Span span210 = CollectionsMarshal.AsSpan(list210); + num2 = 0; + span210[num2] = new QuestStep(EInteractionType.Interact, 1048099u, new Vector3(-606.5919f, -2.203068f, -486.6255f), 1191) { Fly = true }; obj138.Steps = list210; reference157 = obj138; - ref QuestSequence reference158 = ref span79[3]; + num++; + ref QuestSequence reference158 = ref span207[num]; QuestSequence obj139 = new QuestSequence { Sequence = 3 @@ -388326,27 +472260,33 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1054612u, new Vector3(-670.95447f, 52.96887f, -203.35706f), 1191) + Span span211 = CollectionsMarshal.AsSpan(list211); + index2 = 0; + span211[index2] = new QuestStep(EInteractionType.Interact, 1054612u, new Vector3(-670.95447f, 52.96887f, -203.35706f), 1191) { Fly = true }; obj139.Steps = list211; reference158 = obj139; - ref QuestSequence reference159 = ref span79[4]; + num++; + ref QuestSequence reference159 = ref span207[num]; QuestSequence obj140 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list212 = new List(num2); - CollectionsMarshal.SetCount(list212, num2); - CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1054614u, new Vector3(-554.4366f, 44.324562f, -159.5636f), 1191) + index2 = 1; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + span212[num2] = new QuestStep(EInteractionType.Interact, 1054614u, new Vector3(-554.4366f, 44.324562f, -159.5636f), 1191) { StopDistance = 7f }; obj140.Steps = list212; reference159 = obj140; - ref QuestSequence reference160 = ref span79[5]; + num++; + ref QuestSequence reference160 = ref span207[num]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue @@ -388354,8 +472294,9 @@ public static class AssemblyQuestLoader num2 = 2; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span80 = CollectionsMarshal.AsSpan(list213); - span80[0] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) + Span span213 = CollectionsMarshal.AsSpan(list213); + index2 = 0; + span213[index2] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -388365,7 +472306,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineNeonStein } }; - span80[1] = new QuestStep(EInteractionType.CompleteQuest, 1054616u, new Vector3(-0.6256714f, -4.656613E-08f, 6.8512573f), 1207); + index2++; + span213[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054616u, new Vector3(-0.6256714f, -4.656613E-08f, 6.8512573f), 1207); obj141.Steps = list213; reference160 = obj141; questRoot23.QuestSequence = list207; @@ -388375,24 +472317,30 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - CollectionsMarshal.AsSpan(list214)[0] = "liza"; + Span span214 = CollectionsMarshal.AsSpan(list214); + index = 0; + span214[index] = "liza"; questRoot24.Author = list214; - num = 5; - List list215 = new List(num); - CollectionsMarshal.SetCount(list215, num); - Span span81 = CollectionsMarshal.AsSpan(list215); - ref QuestSequence reference161 = ref span81[0]; + index = 5; + List list215 = new List(index); + CollectionsMarshal.SetCount(list215, index); + Span span215 = CollectionsMarshal.AsSpan(list215); + num = 0; + ref QuestSequence reference161 = ref span215[num]; QuestSequence obj142 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list216 = new List(num2); - CollectionsMarshal.SetCount(list216, num2); - CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054616u, new Vector3(-0.6256714f, -4.656613E-08f, 6.8512573f), 1207); + index2 = 1; + List list216 = new List(index2); + CollectionsMarshal.SetCount(list216, index2); + Span span216 = CollectionsMarshal.AsSpan(list216); + num2 = 0; + span216[num2] = new QuestStep(EInteractionType.AcceptQuest, 1054616u, new Vector3(-0.6256714f, -4.656613E-08f, 6.8512573f), 1207); obj142.Steps = list216; reference161 = obj142; - ref QuestSequence reference162 = ref span81[1]; + num++; + ref QuestSequence reference162 = ref span215[num]; QuestSequence obj143 = new QuestSequence { Sequence = 1 @@ -388400,12 +472348,16 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - ref QuestStep reference163 = ref CollectionsMarshal.AsSpan(list217)[0]; + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + ref QuestStep reference163 = ref span217[index2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1054616u, new Vector3(-0.6256714f, -4.656613E-08f, 6.8512573f), 1207); num3 = 1; List list218 = new List(num3); CollectionsMarshal.SetCount(list218, num3); - CollectionsMarshal.AsSpan(list218)[0] = new DialogueChoice + Span span218 = CollectionsMarshal.AsSpan(list218); + index3 = 0; + span218[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI110_05373_SYSTEM_000_040") @@ -388414,21 +472366,25 @@ public static class AssemblyQuestLoader reference163 = questStep21; obj143.Steps = list217; reference162 = obj143; - ref QuestSequence reference164 = ref span81[2]; + num++; + ref QuestSequence reference164 = ref span215[num]; QuestSequence obj144 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list219 = new List(num2); - CollectionsMarshal.SetCount(list219, num2); - CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.Interact, 1054618u, new Vector3(1.296936f, 50.12499f, 704.7378f), 1192) + index2 = 1; + List list219 = new List(index2); + CollectionsMarshal.SetCount(list219, index2); + Span span219 = CollectionsMarshal.AsSpan(list219); + num2 = 0; + span219[num2] = new QuestStep(EInteractionType.Interact, 1054618u, new Vector3(1.296936f, 50.12499f, 704.7378f), 1192) { StopDistance = 7f }; obj144.Steps = list219; reference164 = obj144; - ref QuestSequence reference165 = ref span81[3]; + num++; + ref QuestSequence reference165 = ref span215[num]; QuestSequence obj145 = new QuestSequence { Sequence = 3 @@ -388436,7 +472392,9 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1054624u, new Vector3(-105.638245f, 100.04267f, -202.47198f), 1185) + Span span220 = CollectionsMarshal.AsSpan(list220); + index2 = 0; + span220[index2] = new QuestStep(EInteractionType.Interact, 1054624u, new Vector3(-105.638245f, 100.04267f, -202.47198f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -388447,15 +472405,18 @@ public static class AssemblyQuestLoader }; obj145.Steps = list220; reference165 = obj145; - ref QuestSequence reference166 = ref span81[4]; + num++; + ref QuestSequence reference166 = ref span215[num]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054628u, new Vector3(-23.941406f, 38.0566f, -389.0288f), 1186) + index2 = 1; + List list221 = new List(index2); + CollectionsMarshal.SetCount(list221, index2); + Span span221 = CollectionsMarshal.AsSpan(list221); + num2 = 0; + span221[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054628u, new Vector3(-23.941406f, 38.0566f, -389.0288f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -388473,13 +472434,16 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - CollectionsMarshal.AsSpan(list222)[0] = "WigglyMuffin"; + Span span222 = CollectionsMarshal.AsSpan(list222); + index = 0; + span222[index] = "WigglyMuffin"; questRoot25.Author = list222; - num = 13; - List list223 = new List(num); - CollectionsMarshal.SetCount(list223, num); - Span span82 = CollectionsMarshal.AsSpan(list223); - ref QuestSequence reference167 = ref span82[0]; + index = 13; + List list223 = new List(index); + CollectionsMarshal.SetCount(list223, index); + Span span223 = CollectionsMarshal.AsSpan(list223); + num = 0; + ref QuestSequence reference167 = ref span223[num]; QuestSequence obj147 = new QuestSequence { Sequence = 0 @@ -388487,7 +472451,9 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054465u, new Vector3(0.1373291f, -14f, 106.21802f), 1185) + Span span224 = CollectionsMarshal.AsSpan(list224); + index2 = 0; + span224[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054465u, new Vector3(0.1373291f, -14f, 106.21802f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -388505,15 +472471,18 @@ public static class AssemblyQuestLoader }; obj147.Steps = list224; reference167 = obj147; - ref QuestSequence reference168 = ref span82[1]; + num++; + ref QuestSequence reference168 = ref span223[num]; QuestSequence obj148 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list225 = new List(num2); - CollectionsMarshal.SetCount(list225, num2); - CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 2014821u, new Vector3(342.03088f, -1.3275757f, 438.4984f), 1190) + index2 = 1; + List list225 = new List(index2); + CollectionsMarshal.SetCount(list225, index2); + Span span225 = CollectionsMarshal.AsSpan(list225); + num2 = 0; + span225[num2] = new QuestStep(EInteractionType.Interact, 2014821u, new Vector3(342.03088f, -1.3275757f, 438.4984f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi, SkipConditions = new SkipConditions @@ -388531,7 +472500,8 @@ public static class AssemblyQuestLoader }; obj148.Steps = list225; reference168 = obj148; - ref QuestSequence reference169 = ref span82[2]; + num++; + ref QuestSequence reference169 = ref span223[num]; QuestSequence obj149 = new QuestSequence { Sequence = 2 @@ -388539,24 +472509,30 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 1054466u, new Vector3(420.37073f, -0.65818214f, 390.67664f), 1190); + Span span226 = CollectionsMarshal.AsSpan(list226); + index2 = 0; + span226[index2] = new QuestStep(EInteractionType.Interact, 1054466u, new Vector3(420.37073f, -0.65818214f, 390.67664f), 1190); obj149.Steps = list226; reference169 = obj149; - ref QuestSequence reference170 = ref span82[3]; + num++; + ref QuestSequence reference170 = ref span223[num]; QuestSequence obj150 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 2014823u, new Vector3(478.96545f, 4.7455444f, 237.53711f), 1190) + index2 = 1; + List list227 = new List(index2); + CollectionsMarshal.SetCount(list227, index2); + Span span227 = CollectionsMarshal.AsSpan(list227); + num2 = 0; + span227[num2] = new QuestStep(EInteractionType.Interact, 2014823u, new Vector3(478.96545f, 4.7455444f, 237.53711f), 1190) { Fly = true }; obj150.Steps = list227; reference170 = obj150; - ref QuestSequence reference171 = ref span82[4]; + num++; + ref QuestSequence reference171 = ref span223[num]; QuestSequence obj151 = new QuestSequence { Sequence = 4 @@ -388564,27 +472540,33 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 2014824u, new Vector3(349.813f, 7.1869507f, 220.78271f), 1190) + Span span228 = CollectionsMarshal.AsSpan(list228); + index2 = 0; + span228[index2] = new QuestStep(EInteractionType.Interact, 2014824u, new Vector3(349.813f, 7.1869507f, 220.78271f), 1190) { Fly = true }; obj151.Steps = list228; reference171 = obj151; - ref QuestSequence reference172 = ref span82[5]; + num++; + ref QuestSequence reference172 = ref span223[num]; QuestSequence obj152 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list229 = new List(num2); - CollectionsMarshal.SetCount(list229, num2); - CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 2014822u, new Vector3(402.42603f, -11.276428f, 40.604248f), 1190) + index2 = 1; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + Span span229 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + span229[num2] = new QuestStep(EInteractionType.Interact, 2014822u, new Vector3(402.42603f, -11.276428f, 40.604248f), 1190) { Fly = true }; obj152.Steps = list229; reference172 = obj152; - ref QuestSequence reference173 = ref span82[6]; + num++; + ref QuestSequence reference173 = ref span223[num]; QuestSequence obj153 = new QuestSequence { Sequence = 6 @@ -388592,12 +472574,16 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - ref QuestStep reference174 = ref CollectionsMarshal.AsSpan(list230)[0]; + Span span230 = CollectionsMarshal.AsSpan(list230); + index2 = 0; + ref QuestStep reference174 = ref span230[index2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1054467u, new Vector3(254.38306f, -7.9001174f, 465.17126f), 1190); - num3 = 1; - List list231 = new List(num3); - CollectionsMarshal.SetCount(list231, num3); - CollectionsMarshal.AsSpan(list231)[0] = new DialogueChoice + index3 = 1; + List list231 = new List(index3); + CollectionsMarshal.SetCount(list231, index3); + Span span231 = CollectionsMarshal.AsSpan(list231); + num3 = 0; + span231[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGYX901_05374_SYSTEM_000_301") @@ -388606,20 +472592,25 @@ public static class AssemblyQuestLoader reference174 = questStep22; obj153.Steps = list230; reference173 = obj153; - ref QuestSequence reference175 = ref span82[7]; + num++; + ref QuestSequence reference175 = ref span223[num]; QuestSequence obj154 = new QuestSequence { Sequence = 7 }; - num2 = 1; - List list232 = new List(num2); - CollectionsMarshal.SetCount(list232, num2); - ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list232)[0]; + index2 = 1; + List list232 = new List(index2); + CollectionsMarshal.SetCount(list232, index2); + Span span232 = CollectionsMarshal.AsSpan(list232); + num2 = 0; + ref QuestStep reference176 = ref span232[num2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1054469u, new Vector3(-215.04541f, 45.13145f, -756.89325f), 1190); num3 = 1; List list233 = new List(num3); CollectionsMarshal.SetCount(list233, num3); - CollectionsMarshal.AsSpan(list233)[0] = new DialogueChoice + Span span233 = CollectionsMarshal.AsSpan(list233); + index3 = 0; + span233[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGYX901_05374_SYSTEM_200_402") @@ -388628,11 +472619,13 @@ public static class AssemblyQuestLoader reference176 = questStep23; obj154.Steps = list232; reference175 = obj154; - span82[8] = new QuestSequence + num++; + span223[num] = new QuestSequence { Sequence = 8 }; - ref QuestSequence reference177 = ref span82[9]; + num++; + ref QuestSequence reference177 = ref span223[num]; QuestSequence obj155 = new QuestSequence { Sequence = 9 @@ -388640,21 +472633,27 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1054471u, new Vector3(23.056335f, 101f, 733.7604f), 1301); + Span span234 = CollectionsMarshal.AsSpan(list234); + index2 = 0; + span234[index2] = new QuestStep(EInteractionType.Interact, 1054471u, new Vector3(23.056335f, 101f, 733.7604f), 1301); obj155.Steps = list234; reference177 = obj155; - ref QuestSequence reference178 = ref span82[10]; + num++; + ref QuestSequence reference178 = ref span223[num]; QuestSequence obj156 = new QuestSequence { Sequence = 10 }; - num2 = 1; - List list235 = new List(num2); - CollectionsMarshal.SetCount(list235, num2); - CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1054471u, new Vector3(23.056335f, 101f, 733.7604f), 1301); + index2 = 1; + List list235 = new List(index2); + CollectionsMarshal.SetCount(list235, index2); + Span span235 = CollectionsMarshal.AsSpan(list235); + num2 = 0; + span235[num2] = new QuestStep(EInteractionType.Interact, 1054471u, new Vector3(23.056335f, 101f, 733.7604f), 1301); obj156.Steps = list235; reference178 = obj156; - ref QuestSequence reference179 = ref span82[11]; + num++; + ref QuestSequence reference179 = ref span223[num]; QuestSequence obj157 = new QuestSequence { Sequence = 11 @@ -388662,7 +472661,9 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Duty, null, null, 1301) + Span span236 = CollectionsMarshal.AsSpan(list236); + index2 = 0; + span236[index2] = new QuestStep(EInteractionType.Duty, null, null, 1301) { DutyOptions = new DutyOptions { @@ -388671,15 +472672,18 @@ public static class AssemblyQuestLoader }; obj157.Steps = list236; reference179 = obj157; - ref QuestSequence reference180 = ref span82[12]; + num++; + ref QuestSequence reference180 = ref span223[num]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054465u, new Vector3(0.1373291f, -14f, 106.21802f), 1185) + index2 = 1; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + Span span237 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + span237[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054465u, new Vector3(0.1373291f, -14f, 106.21802f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -388704,15 +472708,18 @@ public static class AssemblyQuestLoader num = 1; List list238 = new List(num); CollectionsMarshal.SetCount(list238, num); - CollectionsMarshal.AsSpan(list238)[0] = "WigglyMuffin"; + Span span238 = CollectionsMarshal.AsSpan(list238); + index = 0; + span238[index] = "WigglyMuffin"; questRoot26.Author = list238; questRoot26.IsSeasonalQuest = true; questRoot26.SeasonalQuestExpiry = new DateTime(2025, 11, 4, 14, 59, 0, DateTimeKind.Utc); - num = 9; - List list239 = new List(num); - CollectionsMarshal.SetCount(list239, num); - Span span83 = CollectionsMarshal.AsSpan(list239); - ref QuestSequence reference181 = ref span83[0]; + index = 9; + List list239 = new List(index); + CollectionsMarshal.SetCount(list239, index); + Span span239 = CollectionsMarshal.AsSpan(list239); + num = 0; + ref QuestSequence reference181 = ref span239[num]; QuestSequence obj159 = new QuestSequence { Sequence = 0 @@ -388720,7 +472727,9 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - ref QuestStep reference182 = ref CollectionsMarshal.AsSpan(list240)[0]; + Span span240 = CollectionsMarshal.AsSpan(list240); + index2 = 0; + ref QuestStep reference182 = ref span240[index2]; QuestStep obj160 = new QuestStep(EInteractionType.AcceptQuest, 1054483u, new Vector3(-50.003845f, 6.5f, -88.426025f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -388732,12 +472741,14 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions11 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 2; - List list241 = new List(num3); - CollectionsMarshal.SetCount(list241, num3); - Span span84 = CollectionsMarshal.AsSpan(list241); - span84[0] = 132; - span84[1] = 133; + index3 = 2; + List list241 = new List(index3); + CollectionsMarshal.SetCount(list241, index3); + Span span241 = CollectionsMarshal.AsSpan(list241); + num3 = 0; + span241[num3] = 132; + num3++; + span241[num3] = 133; skipAetheryteCondition.InTerritory = list241; skipConditions11.AetheryteShortcutIf = skipAetheryteCondition; skipConditions11.AethernetShortcutIf = new SkipAetheryteCondition @@ -388748,20 +472759,25 @@ public static class AssemblyQuestLoader reference182 = obj160; obj159.Steps = list240; reference181 = obj159; - ref QuestSequence reference183 = ref span83[1]; + num++; + ref QuestSequence reference183 = ref span239[num]; QuestSequence obj161 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - ref QuestStep reference184 = ref CollectionsMarshal.AsSpan(list242)[0]; + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + ref QuestStep reference184 = ref span242[num2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1054484u, new Vector3(-55.680176f, 6.2813034f, -106.004456f), 133); num3 = 1; List list243 = new List(num3); CollectionsMarshal.SetCount(list243, num3); - CollectionsMarshal.AsSpan(list243)[0] = new DialogueChoice + Span span243 = CollectionsMarshal.AsSpan(list243); + index3 = 0; + span243[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_FESHLX101_05375_EVENTAREA_WARP_000_031") @@ -388770,7 +472786,8 @@ public static class AssemblyQuestLoader reference184 = questStep24; obj161.Steps = list242; reference183 = obj161; - ref QuestSequence reference185 = ref span83[2]; + num++; + ref QuestSequence reference185 = ref span239[num]; QuestSequence obj162 = new QuestSequence { Sequence = 2 @@ -388778,36 +472795,48 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305); + Span span244 = CollectionsMarshal.AsSpan(list244); + index2 = 0; + span244[index2] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305); obj162.Steps = list244; reference185 = obj162; - ref QuestSequence reference186 = ref span83[3]; + num++; + ref QuestSequence reference186 = ref span239[num]; QuestSequence obj163 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list245 = new List(num2); - CollectionsMarshal.SetCount(list245, num2); - Span span85 = CollectionsMarshal.AsSpan(list245); - ref QuestStep reference187 = ref span85[0]; + index2 = 2; + List list245 = new List(index2); + CollectionsMarshal.SetCount(list245, index2); + Span span245 = CollectionsMarshal.AsSpan(list245); + num2 = 0; + ref QuestStep reference187 = ref span245[num2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1054486u, new Vector3(4.2266846f, 17f, 11.947815f), 1305); - num3 = 6; - List list246 = new List(num3); - CollectionsMarshal.SetCount(list246, num3); - Span span86 = CollectionsMarshal.AsSpan(list246); - span86[0] = null; - span86[1] = null; - span86[2] = null; - span86[3] = null; - span86[4] = null; - span86[5] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list246 = new List(index3); + CollectionsMarshal.SetCount(list246, index3); + Span span246 = CollectionsMarshal.AsSpan(list246); + num3 = 0; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = null; + num3++; + span246[num3] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); questStep25.CompletionQuestVariablesFlags = list246; reference187 = questStep25; - span85[1] = new QuestStep(EInteractionType.Interact, 1054489u, new Vector3(14.785889f, 17f, 105.85181f), 1305); + num2++; + span245[num2] = new QuestStep(EInteractionType.Interact, 1054489u, new Vector3(14.785889f, 17f, 105.85181f), 1305); obj163.Steps = list245; reference186 = obj163; - ref QuestSequence reference188 = ref span83[4]; + num++; + ref QuestSequence reference188 = ref span239[num]; QuestSequence obj164 = new QuestSequence { Sequence = 4 @@ -388815,8 +472844,9 @@ public static class AssemblyQuestLoader num2 = 3; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span87 = CollectionsMarshal.AsSpan(list247); - ref QuestStep reference189 = ref span87[0]; + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + ref QuestStep reference189 = ref span247[index2]; QuestStep obj165 = new QuestStep(EInteractionType.Interact, 1054488u, new Vector3(9.109558f, 0f, 100.02283f), 1305) { Mount = true @@ -388824,53 +472854,71 @@ public static class AssemblyQuestLoader num3 = 6; List list248 = new List(num3); CollectionsMarshal.SetCount(list248, num3); - Span span88 = CollectionsMarshal.AsSpan(list248); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + Span span248 = CollectionsMarshal.AsSpan(list248); + index3 = 0; + span248[index3] = null; + index3++; + span248[index3] = null; + index3++; + span248[index3] = null; + index3++; + span248[index3] = null; + index3++; + span248[index3] = null; + index3++; + span248[index3] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); obj165.CompletionQuestVariablesFlags = list248; reference189 = obj165; - ref QuestStep reference190 = ref span87[1]; + index2++; + ref QuestStep reference190 = ref span247[index2]; QuestStep obj166 = new QuestStep(EInteractionType.Interact, 1054487u, new Vector3(-43.86969f, 0f, -5.8442383f), 1305) { Mount = true }; - num3 = 6; - List list249 = new List(num3); - CollectionsMarshal.SetCount(list249, num3); - Span span89 = CollectionsMarshal.AsSpan(list249); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)10, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list249 = new List(index3); + CollectionsMarshal.SetCount(list249, index3); + Span span249 = CollectionsMarshal.AsSpan(list249); + num3 = 0; + span249[num3] = null; + num3++; + span249[num3] = null; + num3++; + span249[num3] = null; + num3++; + span249[num3] = null; + num3++; + span249[num3] = null; + num3++; + span249[num3] = new QuestWorkValue((byte)10, null, EQuestWorkMode.Bitwise); obj166.CompletionQuestVariablesFlags = list249; reference190 = obj166; - span87[2] = new QuestStep(EInteractionType.Interact, 1054490u, new Vector3(-54.795166f, 0f, -29.58728f), 1305) + index2++; + span247[index2] = new QuestStep(EInteractionType.Interact, 1054490u, new Vector3(-54.795166f, 0f, -29.58728f), 1305) { Mount = true }; obj164.Steps = list247; reference188 = obj164; - ref QuestSequence reference191 = ref span83[5]; + num++; + ref QuestSequence reference191 = ref span239[num]; QuestSequence obj167 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list250 = new List(num2); - CollectionsMarshal.SetCount(list250, num2); - CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305) + index2 = 1; + List list250 = new List(index2); + CollectionsMarshal.SetCount(list250, index2); + Span span250 = CollectionsMarshal.AsSpan(list250); + num2 = 0; + span250[num2] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305) { Mount = true }; obj167.Steps = list250; reference191 = obj167; - ref QuestSequence reference192 = ref span83[6]; + num++; + ref QuestSequence reference192 = ref span239[num]; QuestSequence obj168 = new QuestSequence { Sequence = 6 @@ -388878,7 +472926,9 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - ref QuestStep reference193 = ref CollectionsMarshal.AsSpan(list251)[0]; + Span span251 = CollectionsMarshal.AsSpan(list251); + index2 = 0; + ref QuestStep reference193 = ref span251[index2]; QuestStep obj169 = new QuestStep(EInteractionType.Interact, 1054483u, new Vector3(-50.003845f, 6.5f, -88.426025f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -388893,9 +472943,11 @@ public static class AssemblyQuestLoader num3 = 2; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - Span span90 = CollectionsMarshal.AsSpan(list252); - span90[0] = 132; - span90[1] = 133; + Span span252 = CollectionsMarshal.AsSpan(list252); + index3 = 0; + span252[index3] = 132; + index3++; + span252[index3] = 133; skipAetheryteCondition2.InTerritory = list252; skipConditions12.AetheryteShortcutIf = skipAetheryteCondition2; skipConditions12.AethernetShortcutIf = new SkipAetheryteCondition @@ -388906,30 +472958,39 @@ public static class AssemblyQuestLoader reference193 = obj169; obj168.Steps = list251; reference192 = obj168; - ref QuestSequence reference194 = ref span83[7]; + num++; + ref QuestSequence reference194 = ref span239[num]; QuestSequence obj170 = new QuestSequence { Sequence = 7 }; - num2 = 2; - List list253 = new List(num2); - CollectionsMarshal.SetCount(list253, num2); - Span span91 = CollectionsMarshal.AsSpan(list253); - ref QuestStep reference195 = ref span91[0]; + index2 = 2; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + Span span253 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + ref QuestStep reference195 = ref span253[num2]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1054477u, new Vector3(-52.903076f, 6.8124895f, -123.39978f), 133); - num3 = 6; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - Span span92 = CollectionsMarshal.AsSpan(list254); - span92[0] = null; - span92[1] = null; - span92[2] = null; - span92[3] = null; - span92[4] = null; - span92[5] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list254 = new List(index3); + CollectionsMarshal.SetCount(list254, index3); + Span span254 = CollectionsMarshal.AsSpan(list254); + num3 = 0; + span254[num3] = null; + num3++; + span254[num3] = null; + num3++; + span254[num3] = null; + num3++; + span254[num3] = null; + num3++; + span254[num3] = null; + num3++; + span254[num3] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); questStep26.CompletionQuestVariablesFlags = list254; reference195 = questStep26; - ref QuestStep reference196 = ref span91[1]; + num2++; + ref QuestStep reference196 = ref span253[num2]; QuestStep obj171 = new QuestStep(EInteractionType.Interact, 1054491u, new Vector3(-317.21985f, 7.3121967f, -200.763f), 133) { AethernetShortcut = new AethernetShortcut @@ -388941,18 +473002,25 @@ public static class AssemblyQuestLoader num3 = 6; List list255 = new List(num3); CollectionsMarshal.SetCount(list255, num3); - Span span93 = CollectionsMarshal.AsSpan(list255); - span93[0] = null; - span93[1] = null; - span93[2] = null; - span93[3] = null; - span93[4] = null; - span93[5] = null; + Span span255 = CollectionsMarshal.AsSpan(list255); + index3 = 0; + span255[index3] = null; + index3++; + span255[index3] = null; + index3++; + span255[index3] = null; + index3++; + span255[index3] = null; + index3++; + span255[index3] = null; + index3++; + span255[index3] = null; obj171.CompletionQuestVariablesFlags = list255; reference196 = obj171; obj170.Steps = list253; reference194 = obj170; - ref QuestSequence reference197 = ref span83[8]; + num++; + ref QuestSequence reference197 = ref span239[num]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue @@ -388960,7 +473028,9 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054483u, new Vector3(-50.003845f, 6.5f, -88.426025f), 133) + Span span256 = CollectionsMarshal.AsSpan(list256); + index2 = 0; + span256[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054483u, new Vector3(-50.003845f, 6.5f, -88.426025f), 133) { AethernetShortcut = new AethernetShortcut { @@ -388978,23 +473048,28 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - CollectionsMarshal.AsSpan(list257)[0] = "WigglyMuffin"; + Span span257 = CollectionsMarshal.AsSpan(list257); + index = 0; + span257[index] = "WigglyMuffin"; questRoot27.Author = list257; questRoot27.IsSeasonalQuest = true; questRoot27.SeasonalQuestExpiry = new DateTime(2025, 11, 4, 14, 59, 0, DateTimeKind.Utc); - num = 7; - List list258 = new List(num); - CollectionsMarshal.SetCount(list258, num); - Span span94 = CollectionsMarshal.AsSpan(list258); - ref QuestSequence reference198 = ref span94[0]; + index = 7; + List list258 = new List(index); + CollectionsMarshal.SetCount(list258, index); + Span span258 = CollectionsMarshal.AsSpan(list258); + num = 0; + ref QuestSequence reference198 = ref span258[num]; QuestSequence obj173 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list259 = new List(num2); - CollectionsMarshal.SetCount(list259, num2); - ref QuestStep reference199 = ref CollectionsMarshal.AsSpan(list259)[0]; + index2 = 1; + List list259 = new List(index2); + CollectionsMarshal.SetCount(list259, index2); + Span span259 = CollectionsMarshal.AsSpan(list259); + num2 = 0; + ref QuestStep reference199 = ref span259[num2]; QuestStep obj174 = new QuestStep(EInteractionType.AcceptQuest, 1054483u, new Vector3(-50.003845f, 6.5f, -88.426025f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -389006,12 +473081,14 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions13 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); - num3 = 2; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - Span span95 = CollectionsMarshal.AsSpan(list260); - span95[0] = 132; - span95[1] = 133; + index3 = 2; + List list260 = new List(index3); + CollectionsMarshal.SetCount(list260, index3); + Span span260 = CollectionsMarshal.AsSpan(list260); + num3 = 0; + span260[num3] = 132; + num3++; + span260[num3] = 133; skipAetheryteCondition3.InTerritory = list260; skipConditions13.AetheryteShortcutIf = skipAetheryteCondition3; skipConditions13.AethernetShortcutIf = new SkipAetheryteCondition @@ -389022,7 +473099,8 @@ public static class AssemblyQuestLoader reference199 = obj174; obj173.Steps = list259; reference198 = obj173; - ref QuestSequence reference200 = ref span94[1]; + num++; + ref QuestSequence reference200 = ref span258[num]; QuestSequence obj175 = new QuestSequence { Sequence = 1 @@ -389030,43 +473108,53 @@ public static class AssemblyQuestLoader num2 = 2; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span96 = CollectionsMarshal.AsSpan(list261); - ref QuestStep reference201 = ref span96[0]; + Span span261 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + ref QuestStep reference201 = ref span261[index2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1054484u, new Vector3(-55.680176f, 6.2813034f, -106.004456f), 133); SkipConditions skipConditions14 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); num3 = 1; List list262 = new List(num3); CollectionsMarshal.SetCount(list262, num3); - CollectionsMarshal.AsSpan(list262)[0] = 1305; + Span span262 = CollectionsMarshal.AsSpan(list262); + index3 = 0; + span262[index3] = 1305; skipStepConditions11.InTerritory = list262; skipConditions14.StepIf = skipStepConditions11; questStep27.SkipConditions = skipConditions14; - num3 = 1; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - CollectionsMarshal.AsSpan(list263)[0] = new DialogueChoice + index3 = 1; + List list263 = new List(index3); + CollectionsMarshal.SetCount(list263, index3); + Span span263 = CollectionsMarshal.AsSpan(list263); + num3 = 0; + span263[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_FESHLX102_05376_EVENTAREA_WARP_110_005") }; questStep27.DialogueChoices = list263; reference201 = questStep27; - span96[1] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305); + index2++; + span261[index2] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305); obj175.Steps = list261; reference200 = obj175; - ref QuestSequence reference202 = ref span94[2]; + num++; + ref QuestSequence reference202 = ref span258[num]; QuestSequence obj176 = new QuestSequence { Sequence = 2 }; - num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305); + index2 = 1; + List list264 = new List(index2); + CollectionsMarshal.SetCount(list264, index2); + Span span264 = CollectionsMarshal.AsSpan(list264); + num2 = 0; + span264[num2] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305); obj176.Steps = list264; reference202 = obj176; - ref QuestSequence reference203 = ref span94[3]; + num++; + ref QuestSequence reference203 = ref span258[num]; QuestSequence obj177 = new QuestSequence { Sequence = 3 @@ -389074,8 +473162,9 @@ public static class AssemblyQuestLoader num2 = 2; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span97 = CollectionsMarshal.AsSpan(list265); - ref QuestStep reference204 = ref span97[0]; + Span span265 = CollectionsMarshal.AsSpan(list265); + index2 = 0; + ref QuestStep reference204 = ref span265[index2]; QuestStep obj178 = new QuestStep(EInteractionType.Action, 1054486u, new Vector3(4.2266846f, 17f, 11.947815f), 1305) { Action = EAction.TreatersTrick @@ -389083,48 +473172,64 @@ public static class AssemblyQuestLoader num3 = 6; List list266 = new List(num3); CollectionsMarshal.SetCount(list266, num3); - Span span98 = CollectionsMarshal.AsSpan(list266); - span98[0] = null; - span98[1] = null; - span98[2] = null; - span98[3] = null; - span98[4] = null; - span98[5] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); + Span span266 = CollectionsMarshal.AsSpan(list266); + index3 = 0; + span266[index3] = null; + index3++; + span266[index3] = null; + index3++; + span266[index3] = null; + index3++; + span266[index3] = null; + index3++; + span266[index3] = null; + index3++; + span266[index3] = new QuestWorkValue((byte)4, null, EQuestWorkMode.Bitwise); obj178.CompletionQuestVariablesFlags = list266; reference204 = obj178; - span97[1] = new QuestStep(EInteractionType.Action, 1054489u, new Vector3(14.785889f, 17f, 105.85181f), 1305) + index2++; + span265[index2] = new QuestStep(EInteractionType.Action, 1054489u, new Vector3(14.785889f, 17f, 105.85181f), 1305) { Action = EAction.TrickstersTreat }; obj177.Steps = list265; reference203 = obj177; - ref QuestSequence reference205 = ref span94[4]; + num++; + ref QuestSequence reference205 = ref span258[num]; QuestSequence obj179 = new QuestSequence { Sequence = 4 }; - num2 = 3; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span99 = CollectionsMarshal.AsSpan(list267); - ref QuestStep reference206 = ref span99[0]; + index2 = 3; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + ref QuestStep reference206 = ref span267[num2]; QuestStep obj180 = new QuestStep(EInteractionType.Action, 1054488u, new Vector3(9.109558f, 0f, 100.02283f), 1305) { Action = EAction.TreatersTrick }; - num3 = 6; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - Span span100 = CollectionsMarshal.AsSpan(list268); - span100[0] = null; - span100[1] = null; - span100[2] = null; - span100[3] = null; - span100[4] = null; - span100[5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list268 = new List(index3); + CollectionsMarshal.SetCount(list268, index3); + Span span268 = CollectionsMarshal.AsSpan(list268); + num3 = 0; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = null; + num3++; + span268[num3] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); obj180.CompletionQuestVariablesFlags = list268; reference206 = obj180; - ref QuestStep reference207 = ref span99[1]; + num2++; + ref QuestStep reference207 = ref span267[num2]; QuestStep obj181 = new QuestStep(EInteractionType.Action, 1054487u, new Vector3(-43.86969f, 0f, -5.8442383f), 1305) { Action = EAction.TreatersTrick @@ -389132,22 +473237,30 @@ public static class AssemblyQuestLoader num3 = 6; List list269 = new List(num3); CollectionsMarshal.SetCount(list269, num3); - Span span101 = CollectionsMarshal.AsSpan(list269); - span101[0] = null; - span101[1] = null; - span101[2] = null; - span101[3] = null; - span101[4] = null; - span101[5] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); + Span span269 = CollectionsMarshal.AsSpan(list269); + index3 = 0; + span269[index3] = null; + index3++; + span269[index3] = null; + index3++; + span269[index3] = null; + index3++; + span269[index3] = null; + index3++; + span269[index3] = null; + index3++; + span269[index3] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); obj181.CompletionQuestVariablesFlags = list269; reference207 = obj181; - span99[2] = new QuestStep(EInteractionType.Action, 1054490u, new Vector3(-54.795166f, 0f, -29.58728f), 1305) + num2++; + span267[num2] = new QuestStep(EInteractionType.Action, 1054490u, new Vector3(-54.795166f, 0f, -29.58728f), 1305) { Action = EAction.TrickstersTreat }; obj179.Steps = list267; reference205 = obj179; - ref QuestSequence reference208 = ref span94[5]; + num++; + ref QuestSequence reference208 = ref span258[num]; QuestSequence obj182 = new QuestSequence { Sequence = 5 @@ -389155,26 +473268,31 @@ public static class AssemblyQuestLoader num2 = 2; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span102 = CollectionsMarshal.AsSpan(list270); - span102[0] = new QuestStep(EInteractionType.WalkTo, 1054794u, new Vector3(-50.278336f, 0f, -36.070293f), 1305) + Span span270 = CollectionsMarshal.AsSpan(list270); + index2 = 0; + span270[index2] = new QuestStep(EInteractionType.WalkTo, 1054794u, new Vector3(-50.278336f, 0f, -36.070293f), 1305) { Mount = false }; - span102[1] = new QuestStep(EInteractionType.Interact, 1054794u, new Vector3(72.129395f, 0f, -0.5340576f), 1305) + index2++; + span270[index2] = new QuestStep(EInteractionType.Interact, 1054794u, new Vector3(72.129395f, 0f, -0.5340576f), 1305) { Mount = true }; obj182.Steps = list270; reference208 = obj182; - ref QuestSequence reference209 = ref span94[6]; + num++; + ref QuestSequence reference209 = ref span258[num]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - ref QuestStep reference210 = ref CollectionsMarshal.AsSpan(list271)[0]; + index2 = 1; + List list271 = new List(index2); + CollectionsMarshal.SetCount(list271, index2); + Span span271 = CollectionsMarshal.AsSpan(list271); + num2 = 0; + ref QuestStep reference210 = ref span271[num2]; QuestStep obj184 = new QuestStep(EInteractionType.CompleteQuest, 1054496u, new Vector3(-49.485046f, 6.4999943f, -90.836975f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -389186,12 +473304,14 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions15 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - num3 = 2; - List list272 = new List(num3); - CollectionsMarshal.SetCount(list272, num3); - Span span103 = CollectionsMarshal.AsSpan(list272); - span103[0] = 132; - span103[1] = 133; + index3 = 2; + List list272 = new List(index3); + CollectionsMarshal.SetCount(list272, index3); + Span span272 = CollectionsMarshal.AsSpan(list272); + num3 = 0; + span272[num3] = 132; + num3++; + span272[num3] = 133; skipAetheryteCondition4.InTerritory = list272; skipConditions15.AetheryteShortcutIf = skipAetheryteCondition4; skipConditions15.AethernetShortcutIf = new SkipAetheryteCondition @@ -389209,13 +473329,16 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - CollectionsMarshal.AsSpan(list273)[0] = "WigglyMuffin"; + Span span273 = CollectionsMarshal.AsSpan(list273); + index = 0; + span273[index] = "WigglyMuffin"; questRoot28.Author = list273; - num = 8; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span104 = CollectionsMarshal.AsSpan(list274); - ref QuestSequence reference211 = ref span104[0]; + index = 8; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + Span span274 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference211 = ref span274[num]; QuestSequence obj185 = new QuestSequence { Sequence = 0 @@ -389223,7 +473346,9 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053655u, new Vector3(231.64722f, 50.749847f, 210.25403f), 1186) + Span span275 = CollectionsMarshal.AsSpan(list275); + index2 = 0; + span275[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053655u, new Vector3(231.64722f, 50.749847f, 210.25403f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -389241,17 +473366,20 @@ public static class AssemblyQuestLoader }; obj185.Steps = list275; reference211 = obj185; - ref QuestSequence reference212 = ref span104[1]; + num++; + ref QuestSequence reference212 = ref span274[num]; QuestSequence obj186 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list276 = new List(num2); - CollectionsMarshal.SetCount(list276, num2); - Span span105 = CollectionsMarshal.AsSpan(list276); - span105[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(258.43686f, 50.749672f, 151.8797f), 1186); - span105[1] = new QuestStep(EInteractionType.Interact, 1054748u, new Vector3(441.5503f, 60f, 88.91431f), 1186) + index2 = 2; + List list276 = new List(index2); + CollectionsMarshal.SetCount(list276, index2); + Span span276 = CollectionsMarshal.AsSpan(list276); + num2 = 0; + span276[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(258.43686f, 50.749672f, 151.8797f), 1186); + num2++; + span276[num2] = new QuestStep(EInteractionType.Interact, 1054748u, new Vector3(441.5503f, 60f, 88.91431f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -389262,7 +473390,8 @@ public static class AssemblyQuestLoader }; obj186.Steps = list276; reference212 = obj186; - ref QuestSequence reference213 = ref span104[2]; + num++; + ref QuestSequence reference213 = ref span274[num]; QuestSequence obj187 = new QuestSequence { Sequence = 2 @@ -389270,7 +473399,9 @@ public static class AssemblyQuestLoader num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.Interact, 1054753u, new Vector3(639.33765f, 146.06567f, 706.4773f), 1191) + Span span277 = CollectionsMarshal.AsSpan(list277); + index2 = 0; + span277[index2] = new QuestStep(EInteractionType.Interact, 1054753u, new Vector3(639.33765f, 146.06567f, 706.4773f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundYyasulaniStation, @@ -389284,18 +473415,22 @@ public static class AssemblyQuestLoader }; obj187.Steps = list277; reference213 = obj187; - ref QuestSequence reference214 = ref span104[3]; + num++; + ref QuestSequence reference214 = ref span274[num]; QuestSequence obj188 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.Interact, 1054757u, new Vector3(-185.29034f, 15.695002f, -385.00043f), 1190); + index2 = 1; + List list278 = new List(index2); + CollectionsMarshal.SetCount(list278, index2); + Span span278 = CollectionsMarshal.AsSpan(list278); + num2 = 0; + span278[num2] = new QuestStep(EInteractionType.Interact, 1054757u, new Vector3(-185.29034f, 15.695002f, -385.00043f), 1190); obj188.Steps = list278; reference214 = obj188; - ref QuestSequence reference215 = ref span104[4]; + num++; + ref QuestSequence reference215 = ref span274[num]; QuestSequence obj189 = new QuestSequence { Sequence = 4 @@ -389303,40 +473438,48 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1054760u, new Vector3(-277.27173f, 15.865601f, -195.36127f), 1190) + Span span279 = CollectionsMarshal.AsSpan(list279); + index2 = 0; + span279[index2] = new QuestStep(EInteractionType.Interact, 1054760u, new Vector3(-277.27173f, 15.865601f, -195.36127f), 1190) { Fly = true }; obj189.Steps = list279; reference215 = obj189; - ref QuestSequence reference216 = ref span104[5]; + num++; + ref QuestSequence reference216 = ref span274[num]; QuestSequence obj190 = new QuestSequence { Sequence = 5 }; - num2 = 4; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - Span span106 = CollectionsMarshal.AsSpan(list280); - span106[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-342.82297f, 18.182781f, -161.67989f), 1190) + index2 = 4; + List list280 = new List(index2); + CollectionsMarshal.SetCount(list280, index2); + Span span280 = CollectionsMarshal.AsSpan(list280); + num2 = 0; + span280[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-342.82297f, 18.182781f, -161.67989f), 1190) { Land = true }; - span106[1] = new QuestStep(EInteractionType.Interact, 1049374u, new Vector3(-345.2049f, 18.198153f, -163.50049f), 1190) + num2++; + span280[num2] = new QuestStep(EInteractionType.Interact, 1049374u, new Vector3(-345.2049f, 18.198153f, -163.50049f), 1190) { Fly = true }; - span106[2] = new QuestStep(EInteractionType.Interact, 1049384u, new Vector3(-321.98065f, 18.589752f, -114.39691f), 1190) + num2++; + span280[num2] = new QuestStep(EInteractionType.Interact, 1049384u, new Vector3(-321.98065f, 18.589752f, -114.39691f), 1190) { Fly = true }; - span106[3] = new QuestStep(EInteractionType.Interact, 1054763u, new Vector3(-282.12408f, 18.276659f, -87.296875f), 1190) + num2++; + span280[num2] = new QuestStep(EInteractionType.Interact, 1054763u, new Vector3(-282.12408f, 18.276659f, -87.296875f), 1190) { Fly = true }; obj190.Steps = list280; reference216 = obj190; - ref QuestSequence reference217 = ref span104[6]; + num++; + ref QuestSequence reference217 = ref span274[num]; QuestSequence obj191 = new QuestSequence { Sequence = 6 @@ -389344,18 +473487,23 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1054764u, new Vector3(-306.32483f, 18.195349f, -87.60205f), 1190); + Span span281 = CollectionsMarshal.AsSpan(list281); + index2 = 0; + span281[index2] = new QuestStep(EInteractionType.Interact, 1054764u, new Vector3(-306.32483f, 18.195349f, -87.60205f), 1190); obj191.Steps = list281; reference217 = obj191; - ref QuestSequence reference218 = ref span104[7]; + num++; + ref QuestSequence reference218 = ref span274[num]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list282 = new List(num2); - CollectionsMarshal.SetCount(list282, num2); - CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054767u, new Vector3(-419.3637f, 21.14813f, -142.74823f), 1190) + index2 = 1; + List list282 = new List(index2); + CollectionsMarshal.SetCount(list282, index2); + Span span282 = CollectionsMarshal.AsSpan(list282); + num2 = 0; + span282[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054767u, new Vector3(-419.3637f, 21.14813f, -142.74823f), 1190) { Fly = true, NextQuestId = new QuestId(5379) @@ -389369,13 +473517,16 @@ public static class AssemblyQuestLoader num = 1; List list283 = new List(num); CollectionsMarshal.SetCount(list283, num); - CollectionsMarshal.AsSpan(list283)[0] = "WigglyMuffin"; + Span span283 = CollectionsMarshal.AsSpan(list283); + index = 0; + span283[index] = "WigglyMuffin"; questRoot29.Author = list283; - num = 12; - List list284 = new List(num); - CollectionsMarshal.SetCount(list284, num); - Span span107 = CollectionsMarshal.AsSpan(list284); - ref QuestSequence reference219 = ref span107[0]; + index = 12; + List list284 = new List(index); + CollectionsMarshal.SetCount(list284, index); + Span span284 = CollectionsMarshal.AsSpan(list284); + num = 0; + ref QuestSequence reference219 = ref span284[num]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -389383,7 +473534,9 @@ public static class AssemblyQuestLoader num2 = 1; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054773u, new Vector3(-329.21344f, 18.02224f, -137.28546f), 1190) + Span span285 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span285[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054773u, new Vector3(-329.21344f, 18.02224f, -137.28546f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings, @@ -389397,21 +473550,25 @@ public static class AssemblyQuestLoader }; obj193.Steps = list285; reference219 = obj193; - ref QuestSequence reference220 = ref span107[1]; + num++; + ref QuestSequence reference220 = ref span284[num]; QuestSequence obj194 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1054775u, new Vector3(-236.13336f, -0.8372388f, 247.11987f), 1190) + index2 = 1; + List list286 = new List(index2); + CollectionsMarshal.SetCount(list286, index2); + Span span286 = CollectionsMarshal.AsSpan(list286); + num2 = 0; + span286[num2] = new QuestStep(EInteractionType.Interact, 1054775u, new Vector3(-236.13336f, -0.8372388f, 247.11987f), 1190) { Fly = true }; obj194.Steps = list286; reference220 = obj194; - ref QuestSequence reference221 = ref span107[2]; + num++; + ref QuestSequence reference221 = ref span284[num]; QuestSequence obj195 = new QuestSequence { Sequence = 2 @@ -389419,24 +473576,30 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1054775u, new Vector3(-236.13336f, -0.8372388f, 247.11987f), 1190); + Span span287 = CollectionsMarshal.AsSpan(list287); + index2 = 0; + span287[index2] = new QuestStep(EInteractionType.Interact, 1054775u, new Vector3(-236.13336f, -0.8372388f, 247.11987f), 1190); obj195.Steps = list287; reference221 = obj195; - ref QuestSequence reference222 = ref span107[3]; + num++; + ref QuestSequence reference222 = ref span284[num]; QuestSequence obj196 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Interact, 1054777u, new Vector3(-186.81628f, (float)Math.E * 63f / 92f, 303.42554f), 1190) + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + Span span288 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span288[num2] = new QuestStep(EInteractionType.Interact, 1054777u, new Vector3(-186.81628f, (float)Math.E * 63f / 92f, 303.42554f), 1190) { Fly = true }; obj196.Steps = list288; reference222 = obj196; - ref QuestSequence reference223 = ref span107[4]; + num++; + ref QuestSequence reference223 = ref span284[num]; QuestSequence obj197 = new QuestSequence { Sequence = 4 @@ -389444,27 +473607,33 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1054778u, new Vector3(-127.6723f, 1.5186902f, 336.7207f), 1190) + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span289[index2] = new QuestStep(EInteractionType.Interact, 1054778u, new Vector3(-127.6723f, 1.5186902f, 336.7207f), 1190) { Fly = true }; obj197.Steps = list289; reference223 = obj197; - ref QuestSequence reference224 = ref span107[5]; + num++; + ref QuestSequence reference224 = ref span284[num]; QuestSequence obj198 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list290 = new List(num2); - CollectionsMarshal.SetCount(list290, num2); - CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1054779u, new Vector3(-168.29181f, -1.8273239f, 402.7008f), 1190) + index2 = 1; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + Span span290 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + span290[num2] = new QuestStep(EInteractionType.Interact, 1054779u, new Vector3(-168.29181f, -1.8273239f, 402.7008f), 1190) { Fly = true }; obj198.Steps = list290; reference224 = obj198; - ref QuestSequence reference225 = ref span107[6]; + num++; + ref QuestSequence reference225 = ref span284[num]; QuestSequence obj199 = new QuestSequence { Sequence = 6 @@ -389472,22 +473641,26 @@ public static class AssemblyQuestLoader num2 = 1; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.Interact, 1054780u, new Vector3(-111.28406f, -7.4034004f, 529.9f), 1190) + Span span291 = CollectionsMarshal.AsSpan(list291); + index2 = 0; + span291[index2] = new QuestStep(EInteractionType.Interact, 1054780u, new Vector3(-111.28406f, -7.4034004f, 529.9f), 1190) { Fly = true }; obj199.Steps = list291; reference225 = obj199; - ref QuestSequence reference226 = ref span107[7]; + num++; + ref QuestSequence reference226 = ref span284[num]; QuestSequence obj200 = new QuestSequence { Sequence = 7 }; - num2 = 3; - List list292 = new List(num2); - CollectionsMarshal.SetCount(list292, num2); - Span span108 = CollectionsMarshal.AsSpan(list292); - ref QuestStep reference227 = ref span108[0]; + index2 = 3; + List list292 = new List(index2); + CollectionsMarshal.SetCount(list292, index2); + Span span292 = CollectionsMarshal.AsSpan(list292); + num2 = 0; + ref QuestStep reference227 = ref span292[num2]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 2014869u, new Vector3(-286.18298f, -45.91449f, 624.567f), 1190) { Fly = true @@ -389495,36 +473668,51 @@ public static class AssemblyQuestLoader num3 = 6; List list293 = new List(num3); CollectionsMarshal.SetCount(list293, num3); - Span span109 = CollectionsMarshal.AsSpan(list293); - span109[0] = null; - span109[1] = null; - span109[2] = null; - span109[3] = null; - span109[4] = null; - span109[5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + Span span293 = CollectionsMarshal.AsSpan(list293); + index3 = 0; + span293[index3] = null; + index3++; + span293[index3] = null; + index3++; + span293[index3] = null; + index3++; + span293[index3] = null; + index3++; + span293[index3] = null; + index3++; + span293[index3] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); obj201.CompletionQuestVariablesFlags = list293; reference227 = obj201; - ref QuestStep reference228 = ref span108[1]; + num2++; + ref QuestStep reference228 = ref span292[num2]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 2014868u, new Vector3(-273.82324f, -44.38855f, 627.25244f), 1190); - num3 = 6; - List list294 = new List(num3); - CollectionsMarshal.SetCount(list294, num3); - Span span110 = CollectionsMarshal.AsSpan(list294); - span110[0] = null; - span110[1] = null; - span110[2] = null; - span110[3] = null; - span110[4] = null; - span110[5] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list294 = new List(index3); + CollectionsMarshal.SetCount(list294, index3); + Span span294 = CollectionsMarshal.AsSpan(list294); + num3 = 0; + span294[num3] = null; + num3++; + span294[num3] = null; + num3++; + span294[num3] = null; + num3++; + span294[num3] = null; + num3++; + span294[num3] = null; + num3++; + span294[num3] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); questStep28.CompletionQuestVariablesFlags = list294; reference228 = questStep28; - span108[2] = new QuestStep(EInteractionType.Interact, 2014867u, new Vector3(-214.12988f, -39.871887f, 659.8153f), 1190) + num2++; + span292[num2] = new QuestStep(EInteractionType.Interact, 2014867u, new Vector3(-214.12988f, -39.871887f, 659.8153f), 1190) { Fly = true }; obj200.Steps = list292; reference226 = obj200; - ref QuestSequence reference229 = ref span107[8]; + num++; + ref QuestSequence reference229 = ref span284[num]; QuestSequence obj202 = new QuestSequence { Sequence = 8 @@ -389532,19 +473720,23 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1054782u, new Vector3(-186.69415f, -33.644463f, 658.50305f), 1190); + Span span295 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span295[index2] = new QuestStep(EInteractionType.Interact, 1054782u, new Vector3(-186.69415f, -33.644463f, 658.50305f), 1190); obj202.Steps = list295; reference229 = obj202; - ref QuestSequence reference230 = ref span107[9]; + num++; + ref QuestSequence reference230 = ref span284[num]; QuestSequence obj203 = new QuestSequence { Sequence = 9 }; - num2 = 2; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - Span span111 = CollectionsMarshal.AsSpan(list296); - span111[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(475.81485f, 3.2201807f, 466.20187f), 1190) + index2 = 2; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span296 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span296[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(475.81485f, 3.2201807f, 466.20187f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi, @@ -389561,10 +473753,12 @@ public static class AssemblyQuestLoader } } }; - span111[1] = new QuestStep(EInteractionType.Interact, 1051501u, new Vector3(488.0598f, 3.2202392f, 484.03137f), 1190); + num2++; + span296[num2] = new QuestStep(EInteractionType.Interact, 1051501u, new Vector3(488.0598f, 3.2202392f, 484.03137f), 1190); obj203.Steps = list296; reference230 = obj203; - ref QuestSequence reference231 = ref span107[10]; + num++; + ref QuestSequence reference231 = ref span284[num]; QuestSequence obj204 = new QuestSequence { Sequence = 10 @@ -389572,18 +473766,23 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 1051501u, new Vector3(488.0598f, 3.2202392f, 484.03137f), 1190); + Span span297 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + span297[index2] = new QuestStep(EInteractionType.Interact, 1051501u, new Vector3(488.0598f, 3.2202392f, 484.03137f), 1190); obj204.Steps = list297; reference231 = obj204; - ref QuestSequence reference232 = ref span107[11]; + num++; + ref QuestSequence reference232 = ref span284[num]; QuestSequence obj205 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list298 = new List(num2); - CollectionsMarshal.SetCount(list298, num2); - CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053655u, new Vector3(231.64722f, 50.749847f, 210.25403f), 1186) + index2 = 1; + List list298 = new List(index2); + CollectionsMarshal.SetCount(list298, index2); + Span span298 = CollectionsMarshal.AsSpan(list298); + num2 = 0; + span298[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053655u, new Vector3(231.64722f, 50.749847f, 210.25403f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -389608,13 +473807,16 @@ public static class AssemblyQuestLoader num = 1; List list299 = new List(num); CollectionsMarshal.SetCount(list299, num); - CollectionsMarshal.AsSpan(list299)[0] = "WigglyMuffin"; + Span span299 = CollectionsMarshal.AsSpan(list299); + index = 0; + span299[index] = "WigglyMuffin"; questRoot30.Author = list299; - num = 4; - List list300 = new List(num); - CollectionsMarshal.SetCount(list300, num); - Span span112 = CollectionsMarshal.AsSpan(list300); - ref QuestSequence reference233 = ref span112[0]; + index = 4; + List list300 = new List(index); + CollectionsMarshal.SetCount(list300, index); + Span span300 = CollectionsMarshal.AsSpan(list300); + num = 0; + ref QuestSequence reference233 = ref span300[num]; QuestSequence obj206 = new QuestSequence { Sequence = 0 @@ -389622,24 +473824,30 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039457u, new Vector3(25.802979f, 0f, 13.38208f), 1278); + Span span301 = CollectionsMarshal.AsSpan(list301); + index2 = 0; + span301[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039457u, new Vector3(25.802979f, 0f, 13.38208f), 1278); obj206.Steps = list301; reference233 = obj206; - ref QuestSequence reference234 = ref span112[1]; + num++; + ref QuestSequence reference234 = ref span300[num]; QuestSequence obj207 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Emote, 1039456u, new Vector3(28.854736f, 0f, 13.351624f), 1278) + index2 = 1; + List list302 = new List(index2); + CollectionsMarshal.SetCount(list302, index2); + Span span302 = CollectionsMarshal.AsSpan(list302); + num2 = 0; + span302[num2] = new QuestStep(EInteractionType.Emote, 1039456u, new Vector3(28.854736f, 0f, 13.351624f), 1278) { Emote = EEmote.Doubt }; obj207.Steps = list302; reference234 = obj207; - ref QuestSequence reference235 = ref span112[2]; + num++; + ref QuestSequence reference235 = ref span300[num]; QuestSequence obj208 = new QuestSequence { Sequence = 2 @@ -389647,18 +473855,23 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.Interact, 1053908u, new Vector3(28.854736f, 0f, 13.351624f), 1278); + Span span303 = CollectionsMarshal.AsSpan(list303); + index2 = 0; + span303[index2] = new QuestStep(EInteractionType.Interact, 1053908u, new Vector3(28.854736f, 0f, 13.351624f), 1278); obj208.Steps = list303; reference235 = obj208; - ref QuestSequence reference236 = ref span112[3]; + num++; + ref QuestSequence reference236 = ref span300[num]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.CompleteQuest, 2014937u, new Vector3(27.60829f, 0f, 11.74576f), 1278) + index2 = 1; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + Span span304 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + span304[num2] = new QuestStep(EInteractionType.CompleteQuest, 2014937u, new Vector3(27.60829f, 0f, 11.74576f), 1278) { NextQuestId = new QuestId(5381) }; @@ -389671,13 +473884,16 @@ public static class AssemblyQuestLoader num = 1; List list305 = new List(num); CollectionsMarshal.SetCount(list305, num); - CollectionsMarshal.AsSpan(list305)[0] = "WigglyMuffin"; + Span span305 = CollectionsMarshal.AsSpan(list305); + index = 0; + span305[index] = "WigglyMuffin"; questRoot31.Author = list305; - num = 3; - List list306 = new List(num); - CollectionsMarshal.SetCount(list306, num); - Span span113 = CollectionsMarshal.AsSpan(list306); - ref QuestSequence reference237 = ref span113[0]; + index = 3; + List list306 = new List(index); + CollectionsMarshal.SetCount(list306, index); + Span span306 = CollectionsMarshal.AsSpan(list306); + num = 0; + ref QuestSequence reference237 = ref span306[num]; QuestSequence obj210 = new QuestSequence { Sequence = 0 @@ -389685,21 +473901,27 @@ public static class AssemblyQuestLoader num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); + Span span307 = CollectionsMarshal.AsSpan(list307); + index2 = 0; + span307[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); obj210.Steps = list307; reference237 = obj210; - ref QuestSequence reference238 = ref span113[1]; + num++; + ref QuestSequence reference238 = ref span306[num]; QuestSequence obj211 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); + index2 = 1; + List list308 = new List(index2); + CollectionsMarshal.SetCount(list308, index2); + Span span308 = CollectionsMarshal.AsSpan(list308); + num2 = 0; + span308[num2] = new QuestStep(EInteractionType.Interact, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); obj211.Steps = list308; reference238 = obj211; - ref QuestSequence reference239 = ref span113[2]; + num++; + ref QuestSequence reference239 = ref span306[num]; QuestSequence obj212 = new QuestSequence { Sequence = byte.MaxValue @@ -389707,7 +473929,9 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053908u, new Vector3(28.854736f, 0f, 13.351624f), 1278) + Span span309 = CollectionsMarshal.AsSpan(list309); + index2 = 0; + span309[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053908u, new Vector3(28.854736f, 0f, 13.351624f), 1278) { NextQuestId = new QuestId(5382) }; @@ -389720,26 +473944,33 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - CollectionsMarshal.AsSpan(list310)[0] = "WigglyMuffin"; + Span span310 = CollectionsMarshal.AsSpan(list310); + index = 0; + span310[index] = "WigglyMuffin"; questRoot32.Author = list310; - num = 2; - List list311 = new List(num); - CollectionsMarshal.SetCount(list311, num); - Span span114 = CollectionsMarshal.AsSpan(list311); - ref QuestSequence reference240 = ref span114[0]; + index = 2; + List list311 = new List(index); + CollectionsMarshal.SetCount(list311, index); + Span span311 = CollectionsMarshal.AsSpan(list311); + num = 0; + ref QuestSequence reference240 = ref span311[num]; QuestSequence obj213 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list312 = new List(num2); - CollectionsMarshal.SetCount(list312, num2); - ref QuestStep reference241 = ref CollectionsMarshal.AsSpan(list312)[0]; + index2 = 1; + List list312 = new List(index2); + CollectionsMarshal.SetCount(list312, index2); + Span span312 = CollectionsMarshal.AsSpan(list312); + num2 = 0; + ref QuestStep reference241 = ref span312[num2]; QuestStep questStep29 = new QuestStep(EInteractionType.AcceptQuest, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); num3 = 1; List list313 = new List(num3); CollectionsMarshal.SetCount(list313, num3); - CollectionsMarshal.AsSpan(list313)[0] = new DialogueChoice + Span span313 = CollectionsMarshal.AsSpan(list313); + index3 = 0; + span313[index3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGKW103_05382_Q1_000_000"), @@ -389750,7 +473981,8 @@ public static class AssemblyQuestLoader reference241 = questStep29; obj213.Steps = list312; reference240 = obj213; - ref QuestSequence reference242 = ref span114[1]; + num++; + ref QuestSequence reference242 = ref span311[num]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue @@ -389758,7 +473990,9 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053905u, new Vector3(29.55664f, 0f, 10.788086f), 1278); + Span span314 = CollectionsMarshal.AsSpan(list314); + index2 = 0; + span314[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053905u, new Vector3(29.55664f, 0f, 10.788086f), 1278); obj214.Steps = list314; reference242 = obj214; questRoot32.QuestSequence = list311; @@ -389772,13 +474006,16 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = "WigglyMuffin"; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = "WigglyMuffin"; questRoot.Author = list; - num = 6; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - ref QuestSequence reference = ref span[0]; + index = 6; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + ref QuestSequence reference = ref span2[num]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -389786,7 +474023,9 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054946u, new Vector3(-44.38855f, 2.8244886f, -23.91095f), 819) + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054946u, new Vector3(-44.38855f, 2.8244886f, -23.91095f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, SkipConditions = new SkipConditions @@ -389799,16 +474038,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - ref QuestSequence reference2 = ref span[1]; + num++; + ref QuestSequence reference2 = ref span2[num]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span2 = CollectionsMarshal.AsSpan(list4); - span2[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-108.860016f, 0f, -122.96661f), 819) + index2 = 2; + List list4 = new List(index2); + CollectionsMarshal.SetCount(list4, index2); + Span span4 = CollectionsMarshal.AsSpan(list4); + num2 = 0; + span4[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-108.860016f, 0f, -122.96661f), 819) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -389821,10 +474062,12 @@ public static class AssemblyQuestLoader Position = new Vector3(-109.03213f, 1.9211035f, -128.47693f) } }; - span2[1] = new QuestStep(EInteractionType.Interact, 1054948u, new Vector3(-106.126526f, -47.55987f, -136.0647f), 819); + num2++; + span4[num2] = new QuestStep(EInteractionType.Interact, 1054948u, new Vector3(-106.126526f, -47.55987f, -136.0647f), 819); obj2.Steps = list4; reference2 = obj2; - ref QuestSequence reference3 = ref span[2]; + num++; + ref QuestSequence reference3 = ref span2[num]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -389832,27 +474075,33 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1054949u, new Vector3(404.65393f, 85.387535f, -699.54987f), 816) + Span span5 = CollectionsMarshal.AsSpan(list5); + index2 = 0; + span5[index2] = new QuestStep(EInteractionType.Interact, 1054949u, new Vector3(404.65393f, 85.387535f, -699.54987f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; obj3.Steps = list5; reference3 = obj3; - ref QuestSequence reference4 = ref span[3]; + num++; + ref QuestSequence reference4 = ref span2[num]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); - CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1054950u, new Vector3(543.2975f, 109.2974f, -869.4133f), 816) + index2 = 1; + List list6 = new List(index2); + CollectionsMarshal.SetCount(list6, index2); + Span span6 = CollectionsMarshal.AsSpan(list6); + num2 = 0; + span6[num2] = new QuestStep(EInteractionType.Interact, 1054950u, new Vector3(543.2975f, 109.2974f, -869.4133f), 816) { Fly = true }; obj4.Steps = list6; reference4 = obj4; - ref QuestSequence reference5 = ref span[4]; + num++; + ref QuestSequence reference5 = ref span2[num]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -389860,21 +474109,26 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1054999u, new Vector3(418.44812f, 89.44323f, -777.0962f), 816) + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = new QuestStep(EInteractionType.Interact, 1054999u, new Vector3(418.44812f, 89.44323f, -777.0962f), 816) { Fly = true }; obj5.Steps = list7; reference5 = obj5; - ref QuestSequence reference6 = ref span[5]; + num++; + ref QuestSequence reference6 = ref span2[num]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054942u, new Vector3(424.09387f, 89.42931f, -772.27435f), 816); + index2 = 1; + List list8 = new List(index2); + CollectionsMarshal.SetCount(list8, index2); + Span span8 = CollectionsMarshal.AsSpan(list8); + num2 = 0; + span8[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054942u, new Vector3(424.09387f, 89.42931f, -772.27435f), 816); obj6.Steps = list8; reference6 = obj6; questRoot.QuestSequence = list2; @@ -389884,13 +474138,16 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = "WigglyMuffin"; + Span span9 = CollectionsMarshal.AsSpan(list9); + index = 0; + span9[index] = "WigglyMuffin"; questRoot2.Author = list9; - num = 2; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - Span span3 = CollectionsMarshal.AsSpan(list10); - ref QuestSequence reference7 = ref span3[0]; + index = 2; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + num = 0; + ref QuestSequence reference7 = ref span10[num]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -389898,7 +474155,9 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) + Span span11 = CollectionsMarshal.AsSpan(list11); + index2 = 0; + span11[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, SkipConditions = new SkipConditions @@ -389911,15 +474170,18 @@ public static class AssemblyQuestLoader }; obj7.Steps = list11; reference7 = obj7; - ref QuestSequence reference8 = ref span3[1]; + num++; + ref QuestSequence reference8 = ref span10[num]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816); + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num2 = 0; + span12[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816); obj8.Steps = list12; reference8 = obj8; questRoot2.QuestSequence = list10; @@ -389929,13 +474191,16 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = "WigglyMuffin"; + Span span13 = CollectionsMarshal.AsSpan(list13); + index = 0; + span13[index] = "WigglyMuffin"; questRoot3.Author = list13; - num = 3; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - Span span4 = CollectionsMarshal.AsSpan(list14); - ref QuestSequence reference9 = ref span4[0]; + index = 3; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + num = 0; + ref QuestSequence reference9 = ref span14[num]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -389943,7 +474208,9 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) + Span span15 = CollectionsMarshal.AsSpan(list15); + index2 = 0; + span15[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, SkipConditions = new SkipConditions @@ -389956,15 +474223,18 @@ public static class AssemblyQuestLoader }; obj9.Steps = list15; reference9 = obj9; - ref QuestSequence reference10 = ref span4[1]; + num++; + ref QuestSequence reference10 = ref span14[num]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); - CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 2014910u, new Vector3(541.2074f, 109.4176f, -871.7104f), 816) + index2 = 1; + List list16 = new List(index2); + CollectionsMarshal.SetCount(list16, index2); + Span span16 = CollectionsMarshal.AsSpan(list16); + num2 = 0; + span16[num2] = new QuestStep(EInteractionType.Interact, 2014910u, new Vector3(541.2074f, 109.4176f, -871.7104f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, SkipConditions = new SkipConditions @@ -389977,7 +474247,8 @@ public static class AssemblyQuestLoader }; obj10.Steps = list16; reference10 = obj10; - ref QuestSequence reference11 = ref span4[2]; + num++; + ref QuestSequence reference11 = ref span14[num]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -389985,7 +474256,9 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) + Span span17 = CollectionsMarshal.AsSpan(list17); + index2 = 0; + span17[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, SkipConditions = new SkipConditions @@ -390005,24 +474278,30 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = "WigglyMuffin"; + Span span18 = CollectionsMarshal.AsSpan(list18); + index = 0; + span18[index] = "WigglyMuffin"; questRoot4.Author = list18; - num = 3; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span5 = CollectionsMarshal.AsSpan(list19); - ref QuestSequence reference12 = ref span5[0]; + index = 3; + List list19 = new List(index); + CollectionsMarshal.SetCount(list19, index); + Span span19 = CollectionsMarshal.AsSpan(list19); + num = 0; + ref QuestSequence reference12 = ref span19[num]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); - CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052617u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237); + index2 = 1; + List list20 = new List(index2); + CollectionsMarshal.SetCount(list20, index2); + Span span20 = CollectionsMarshal.AsSpan(list20); + num2 = 0; + span20[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052617u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237); obj12.Steps = list20; reference12 = obj12; - ref QuestSequence reference13 = ref span5[1]; + num++; + ref QuestSequence reference13 = ref span19[num]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -390030,12 +474309,16 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list21)[0]; + Span span21 = CollectionsMarshal.AsSpan(list21); + index2 = 0; + ref QuestStep reference14 = ref span21[index2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1052624u, new Vector3(-42.008118f, 11.869998f, -95.75043f), 1237); int num3 = 1; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = new DialogueChoice + Span span22 = CollectionsMarshal.AsSpan(list22); + int index3 = 0; + span22[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGWK201_05409_SYSTEM_100_021") @@ -390044,15 +474327,18 @@ public static class AssemblyQuestLoader reference14 = questStep; obj13.Steps = list21; reference13 = obj13; - ref QuestSequence reference15 = ref span5[2]; + num++; + ref QuestSequence reference15 = ref span19[num]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053219u, new Vector3(287.49524f, 52.00211f, -382.9862f), 1291); + index2 = 1; + List list23 = new List(index2); + CollectionsMarshal.SetCount(list23, index2); + Span span23 = CollectionsMarshal.AsSpan(list23); + num2 = 0; + span23[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053219u, new Vector3(287.49524f, 52.00211f, -382.9862f), 1291); obj14.Steps = list23; reference15 = obj14; questRoot4.QuestSequence = list19; @@ -390062,13 +474348,16 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - CollectionsMarshal.AsSpan(list24)[0] = "WigglyMuffin"; + Span span24 = CollectionsMarshal.AsSpan(list24); + index = 0; + span24[index] = "WigglyMuffin"; questRoot5.Author = list24; - num = 7; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span6 = CollectionsMarshal.AsSpan(list25); - ref QuestSequence reference16 = ref span6[0]; + index = 7; + List list25 = new List(index); + CollectionsMarshal.SetCount(list25, index); + Span span25 = CollectionsMarshal.AsSpan(list25); + num = 0; + ref QuestSequence reference16 = ref span25[num]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -390076,21 +474365,27 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053219u, new Vector3(287.49524f, 52.00211f, -382.9862f), 1291); + Span span26 = CollectionsMarshal.AsSpan(list26); + index2 = 0; + span26[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053219u, new Vector3(287.49524f, 52.00211f, -382.9862f), 1291); obj15.Steps = list26; reference16 = obj15; - ref QuestSequence reference17 = ref span6[1]; + num++; + ref QuestSequence reference17 = ref span25[num]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list27 = new List(num2); - CollectionsMarshal.SetCount(list27, num2); - CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1053329u, new Vector3(288.74634f, 52.002327f, -381.64343f), 1291); + index2 = 1; + List list27 = new List(index2); + CollectionsMarshal.SetCount(list27, index2); + Span span27 = CollectionsMarshal.AsSpan(list27); + num2 = 0; + span27[num2] = new QuestStep(EInteractionType.Interact, 1053329u, new Vector3(288.74634f, 52.002327f, -381.64343f), 1291); obj16.Steps = list27; reference17 = obj16; - ref QuestSequence reference18 = ref span6[2]; + num++; + ref QuestSequence reference18 = ref span25[num]; QuestSequence obj17 = new QuestSequence { Sequence = 2 @@ -390098,33 +474393,39 @@ public static class AssemblyQuestLoader num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span7 = CollectionsMarshal.AsSpan(list28); - span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(184.95572f, 59.50008f, -449.5014f), 1291); - span7[1] = new QuestStep(EInteractionType.Interact, 1053329u, new Vector3(180.5135f, 59.50008f, -450.65436f), 1291) + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(184.95572f, 59.50008f, -449.5014f), 1291); + index2++; + span28[index2] = new QuestStep(EInteractionType.Interact, 1053329u, new Vector3(180.5135f, 59.50008f, -450.65436f), 1291) { StopDistance = 0.25f, Mount = false }; obj17.Steps = list28; reference18 = obj17; - ref QuestSequence reference19 = ref span6[3]; + num++; + ref QuestSequence reference19 = ref span25[num]; QuestSequence obj18 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - Span span8 = CollectionsMarshal.AsSpan(list29); - span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-228.49808f, -3.201358f, -374.8919f), 1291); - span8[1] = new QuestStep(EInteractionType.Interact, 1053329u, new Vector3(-232.33755f, -4.477512f, -370.6558f), 1291) + index2 = 2; + List list29 = new List(index2); + CollectionsMarshal.SetCount(list29, index2); + Span span29 = CollectionsMarshal.AsSpan(list29); + num2 = 0; + span29[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-228.49808f, -3.201358f, -374.8919f), 1291); + num2++; + span29[num2] = new QuestStep(EInteractionType.Interact, 1053329u, new Vector3(-232.33755f, -4.477512f, -370.6558f), 1291) { StopDistance = 0.25f, Mount = false }; obj18.Steps = list29; reference19 = obj18; - ref QuestSequence reference20 = ref span6[4]; + num++; + ref QuestSequence reference20 = ref span25[num]; QuestSequence obj19 = new QuestSequence { Sequence = 4 @@ -390132,38 +474433,45 @@ public static class AssemblyQuestLoader num2 = 2; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span9 = CollectionsMarshal.AsSpan(list30); - span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-397.80423f, 12.618442f, 470.09174f), 1291); - span9[1] = new QuestStep(EInteractionType.Interact, 1053329u, new Vector3(-397.88083f, 13.0445385f, 474.38928f), 1291) + Span span30 = CollectionsMarshal.AsSpan(list30); + index2 = 0; + span30[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-397.80423f, 12.618442f, 470.09174f), 1291); + index2++; + span30[index2] = new QuestStep(EInteractionType.Interact, 1053329u, new Vector3(-397.88083f, 13.0445385f, 474.38928f), 1291) { StopDistance = 0.25f, Mount = false }; obj19.Steps = list30; reference20 = obj19; - ref QuestSequence reference21 = ref span6[5]; + num++; + ref QuestSequence reference21 = ref span25[num]; QuestSequence obj20 = new QuestSequence { Sequence = 5 }; - num2 = 1; - List list31 = new List(num2); - CollectionsMarshal.SetCount(list31, num2); - ref QuestStep reference22 = ref CollectionsMarshal.AsSpan(list31)[0]; + index2 = 1; + List list31 = new List(index2); + CollectionsMarshal.SetCount(list31, index2); + Span span31 = CollectionsMarshal.AsSpan(list31); + num2 = 0; + ref QuestStep reference22 = ref span31[num2]; QuestStep obj21 = new QuestStep(EInteractionType.Snipe, 2014920u, new Vector3(-46.72509f, 22.42642f, 417.836f), 1291) { Comment = "Click (from left to right) Spiky Crystalline Tree, Flowery Shrub, Tree with Purple Canopy?, Iridescent Terrain, Seemingly Glassblown Bloom" }; - num3 = 2; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - Span span10 = CollectionsMarshal.AsSpan(list32); - span10[0] = new DialogueChoice + index3 = 2; + List list32 = new List(index3); + CollectionsMarshal.SetCount(list32, index3); + Span span32 = CollectionsMarshal.AsSpan(list32); + num3 = 0; + span32[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGWK202_05410_Q2_000_000") }; - span10[1] = new DialogueChoice + num3++; + span32[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGWK202_05410_Q3_000_000"), @@ -390173,17 +474481,23 @@ public static class AssemblyQuestLoader num3 = 5; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - Span span11 = CollectionsMarshal.AsSpan(list33); - span11[0] = 0u; - span11[1] = 1u; - span11[2] = 2u; - span11[3] = 3u; - span11[4] = 4u; + Span span33 = CollectionsMarshal.AsSpan(list33); + index3 = 0; + span33[index3] = 0u; + index3++; + span33[index3] = 1u; + index3++; + span33[index3] = 2u; + index3++; + span33[index3] = 3u; + index3++; + span33[index3] = 4u; obj21.PointMenuChoices = list33; reference22 = obj21; obj20.Steps = list31; reference21 = obj20; - ref QuestSequence reference23 = ref span6[6]; + num++; + ref QuestSequence reference23 = ref span25[num]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -390191,13 +474505,15 @@ public static class AssemblyQuestLoader num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span12 = CollectionsMarshal.AsSpan(list34); - span12[0] = new QuestStep(EInteractionType.Action, null, null, 1291) + Span span34 = CollectionsMarshal.AsSpan(list34); + index2 = 0; + span34[index2] = new QuestStep(EInteractionType.Action, null, null, 1291) { Comment = "Use Stellar Return to teleport back", Action = EAction.DutyAction1 }; - span12[1] = new QuestStep(EInteractionType.CompleteQuest, 1053328u, new Vector3(287.49524f, 52.00211f, -382.9862f), 1291) + index2++; + span34[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053328u, new Vector3(287.49524f, 52.00211f, -382.9862f), 1291) { NextQuestId = new QuestId(5411) }; @@ -390210,26 +474526,33 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - CollectionsMarshal.AsSpan(list35)[0] = "WigglyMuffin"; + Span span35 = CollectionsMarshal.AsSpan(list35); + index = 0; + span35[index] = "WigglyMuffin"; questRoot6.Author = list35; - num = 3; - List list36 = new List(num); - CollectionsMarshal.SetCount(list36, num); - Span span13 = CollectionsMarshal.AsSpan(list36); - ref QuestSequence reference24 = ref span13[0]; + index = 3; + List list36 = new List(index); + CollectionsMarshal.SetCount(list36, index); + Span span36 = CollectionsMarshal.AsSpan(list36); + num = 0; + ref QuestSequence reference24 = ref span36[num]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list37)[0]; + index2 = 1; + List list37 = new List(index2); + CollectionsMarshal.SetCount(list37, index2); + Span span37 = CollectionsMarshal.AsSpan(list37); + num2 = 0; + ref QuestStep reference25 = ref span37[num2]; QuestStep questStep2 = new QuestStep(EInteractionType.AcceptQuest, 1053331u, new Vector3(350.5454f, 52.612267f, -438.40698f), 1291); - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice + index3 = 1; + List list38 = new List(index3); + CollectionsMarshal.SetCount(list38, index3); + Span span38 = CollectionsMarshal.AsSpan(list38); + num3 = 0; + span38[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGWZ201_05411_Q1_000_000"), @@ -390239,7 +474562,8 @@ public static class AssemblyQuestLoader reference25 = questStep2; obj23.Steps = list37; reference24 = obj23; - ref QuestSequence reference26 = ref span13[1]; + num++; + ref QuestSequence reference26 = ref span36[num]; QuestSequence obj24 = new QuestSequence { Sequence = 1 @@ -390247,18 +474571,23 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1053332u, new Vector3(446.98242f, 59.965904f, -479.81995f), 1291); + Span span39 = CollectionsMarshal.AsSpan(list39); + index2 = 0; + span39[index2] = new QuestStep(EInteractionType.Interact, 1053332u, new Vector3(446.98242f, 59.965904f, -479.81995f), 1291); obj24.Steps = list39; reference26 = obj24; - ref QuestSequence reference27 = ref span13[2]; + num++; + ref QuestSequence reference27 = ref span36[num]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053331u, new Vector3(350.5454f, 52.612267f, -438.40698f), 1291) + index2 = 1; + List list40 = new List(index2); + CollectionsMarshal.SetCount(list40, index2); + Span span40 = CollectionsMarshal.AsSpan(list40); + num2 = 0; + span40[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053331u, new Vector3(350.5454f, 52.612267f, -438.40698f), 1291) { NextQuestId = new QuestId(5412) }; @@ -390271,13 +474600,16 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = "WigglyMuffin"; + Span span41 = CollectionsMarshal.AsSpan(list41); + index = 0; + span41[index] = "WigglyMuffin"; questRoot7.Author = list41; - num = 5; - List list42 = new List(num); - CollectionsMarshal.SetCount(list42, num); - Span span14 = CollectionsMarshal.AsSpan(list42); - ref QuestSequence reference28 = ref span14[0]; + index = 5; + List list42 = new List(index); + CollectionsMarshal.SetCount(list42, index); + Span span42 = CollectionsMarshal.AsSpan(list42); + num = 0; + ref QuestSequence reference28 = ref span42[num]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -390285,21 +474617,27 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053335u, new Vector3(383.65747f, 52.5f, -389.79175f), 1291); + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053335u, new Vector3(383.65747f, 52.5f, -389.79175f), 1291); obj26.Steps = list43; reference28 = obj26; - ref QuestSequence reference29 = ref span14[1]; + num++; + ref QuestSequence reference29 = ref span42[num]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list44 = new List(num2); - CollectionsMarshal.SetCount(list44, num2); - CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Interact, 1053336u, new Vector3(-28.366577f, -10.3759985f, -113.206726f), 1291); + index2 = 1; + List list44 = new List(index2); + CollectionsMarshal.SetCount(list44, index2); + Span span44 = CollectionsMarshal.AsSpan(list44); + num2 = 0; + span44[num2] = new QuestStep(EInteractionType.Interact, 1053336u, new Vector3(-28.366577f, -10.3759985f, -113.206726f), 1291); obj27.Steps = list44; reference29 = obj27; - ref QuestSequence reference30 = ref span14[2]; + num++; + ref QuestSequence reference30 = ref span42[num]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -390307,65 +474645,91 @@ public static class AssemblyQuestLoader num2 = 3; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span15 = CollectionsMarshal.AsSpan(list45); - ref QuestStep reference31 = ref span15[0]; + Span span45 = CollectionsMarshal.AsSpan(list45); + index2 = 0; + ref QuestStep reference31 = ref span45[index2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2014925u, new Vector3(-110.2011f, -8.69405f, -156.9028f), 1291); num3 = 6; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - Span span16 = CollectionsMarshal.AsSpan(list46); - span16[0] = null; - span16[1] = null; - span16[2] = null; - span16[3] = null; - span16[4] = null; - span16[5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + Span span46 = CollectionsMarshal.AsSpan(list46); + index3 = 0; + span46[index3] = null; + index3++; + span46[index3] = null; + index3++; + span46[index3] = null; + index3++; + span46[index3] = null; + index3++; + span46[index3] = null; + index3++; + span46[index3] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); questStep3.CompletionQuestVariablesFlags = list46; reference31 = questStep3; - ref QuestStep reference32 = ref span15[1]; + index2++; + ref QuestStep reference32 = ref span45[index2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2014924u, new Vector3(-218.8908f, -8.711901f, -128.8406f), 1291); - num3 = 6; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - Span span17 = CollectionsMarshal.AsSpan(list47); - span17[0] = null; - span17[1] = null; - span17[2] = null; - span17[3] = null; - span17[4] = null; - span17[5] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); + index3 = 6; + List list47 = new List(index3); + CollectionsMarshal.SetCount(list47, index3); + Span span47 = CollectionsMarshal.AsSpan(list47); + num3 = 0; + span47[num3] = null; + num3++; + span47[num3] = null; + num3++; + span47[num3] = null; + num3++; + span47[num3] = null; + num3++; + span47[num3] = null; + num3++; + span47[num3] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); questStep4.CompletionQuestVariablesFlags = list47; reference32 = questStep4; - ref QuestStep reference33 = ref span15[2]; + index2++; + ref QuestStep reference33 = ref span45[index2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2014923u, new Vector3(-168.958f, -9.766992f, -66.88347f), 1291); num3 = 6; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - Span span18 = CollectionsMarshal.AsSpan(list48); - span18[0] = null; - span18[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); - span18[2] = null; - span18[3] = null; - span18[4] = null; - span18[5] = null; + Span span48 = CollectionsMarshal.AsSpan(list48); + index3 = 0; + span48[index3] = null; + index3++; + span48[index3] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); + index3++; + span48[index3] = null; + index3++; + span48[index3] = null; + index3++; + span48[index3] = null; + index3++; + span48[index3] = null; questStep5.CompletionQuestVariablesFlags = list48; reference33 = questStep5; obj28.Steps = list45; reference30 = obj28; - ref QuestSequence reference34 = ref span14[3]; + num++; + ref QuestSequence reference34 = ref span42[num]; QuestSequence obj29 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list49 = new List(num2); - CollectionsMarshal.SetCount(list49, num2); - ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list49)[0]; + index2 = 1; + List list49 = new List(index2); + CollectionsMarshal.SetCount(list49, index2); + Span span49 = CollectionsMarshal.AsSpan(list49); + num2 = 0; + ref QuestStep reference35 = ref span49[num2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1053336u, new Vector3(-28.366577f, -10.3759985f, -113.206726f), 1291); - num3 = 1; - List list50 = new List(num3); - CollectionsMarshal.SetCount(list50, num3); - CollectionsMarshal.AsSpan(list50)[0] = new DialogueChoice + index3 = 1; + List list50 = new List(index3); + CollectionsMarshal.SetCount(list50, index3); + Span span50 = CollectionsMarshal.AsSpan(list50); + num3 = 0; + span50[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGWZ202_05412_Q1_000_000"), @@ -390375,7 +474739,8 @@ public static class AssemblyQuestLoader reference35 = questStep6; obj29.Steps = list49; reference34 = obj29; - ref QuestSequence reference36 = ref span14[4]; + num++; + ref QuestSequence reference36 = ref span42[num]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -390383,13 +474748,15 @@ public static class AssemblyQuestLoader num2 = 2; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span19 = CollectionsMarshal.AsSpan(list51); - span19[0] = new QuestStep(EInteractionType.Action, null, null, 1291) + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = new QuestStep(EInteractionType.Action, null, null, 1291) { Comment = "Use Stellar Return to teleport back", Action = EAction.DutyAction1 }; - span19[1] = new QuestStep(EInteractionType.CompleteQuest, 1053335u, new Vector3(383.65747f, 52.5f, -389.79175f), 1291) + index2++; + span51[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053335u, new Vector3(383.65747f, 52.5f, -389.79175f), 1291) { NextQuestId = new QuestId(5413) }; @@ -390402,24 +474769,30 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - CollectionsMarshal.AsSpan(list52)[0] = "WigglyMuffin"; + Span span52 = CollectionsMarshal.AsSpan(list52); + index = 0; + span52[index] = "WigglyMuffin"; questRoot8.Author = list52; - num = 3; - List list53 = new List(num); - CollectionsMarshal.SetCount(list53, num); - Span span20 = CollectionsMarshal.AsSpan(list53); - ref QuestSequence reference37 = ref span20[0]; + index = 3; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + Span span53 = CollectionsMarshal.AsSpan(list53); + num = 0; + ref QuestSequence reference37 = ref span53[num]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list54 = new List(num2); - CollectionsMarshal.SetCount(list54, num2); - CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053337u, new Vector3(234.97363f, 59.500084f, -448.78314f), 1291); + index2 = 1; + List list54 = new List(index2); + CollectionsMarshal.SetCount(list54, index2); + Span span54 = CollectionsMarshal.AsSpan(list54); + num2 = 0; + span54[num2] = new QuestStep(EInteractionType.AcceptQuest, 1053337u, new Vector3(234.97363f, 59.500084f, -448.78314f), 1291); obj31.Steps = list54; reference37 = obj31; - ref QuestSequence reference38 = ref span20[1]; + num++; + ref QuestSequence reference38 = ref span53[num]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -390427,12 +474800,16 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list55)[0]; + Span span55 = CollectionsMarshal.AsSpan(list55); + index2 = 0; + ref QuestStep reference39 = ref span55[index2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1053337u, new Vector3(234.97363f, 59.500084f, -448.78314f), 1291); num3 = 1; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - CollectionsMarshal.AsSpan(list56)[0] = new DialogueChoice + Span span56 = CollectionsMarshal.AsSpan(list56); + index3 = 0; + span56[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGWZ203_05413_Q2_000_000") @@ -390441,15 +474818,18 @@ public static class AssemblyQuestLoader reference39 = questStep7; obj32.Steps = list55; reference38 = obj32; - ref QuestSequence reference40 = ref span20[2]; + num++; + ref QuestSequence reference40 = ref span53[num]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list57 = new List(num2); - CollectionsMarshal.SetCount(list57, num2); - CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053337u, new Vector3(234.97363f, 59.500084f, -448.78314f), 1291) + index2 = 1; + List list57 = new List(index2); + CollectionsMarshal.SetCount(list57, index2); + Span span57 = CollectionsMarshal.AsSpan(list57); + num2 = 0; + span57[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053337u, new Vector3(234.97363f, 59.500084f, -448.78314f), 1291) { NextQuestId = new QuestId(5414) }; @@ -390462,13 +474842,16 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - CollectionsMarshal.AsSpan(list58)[0] = "WigglyMuffin"; + Span span58 = CollectionsMarshal.AsSpan(list58); + index = 0; + span58[index] = "WigglyMuffin"; questRoot9.Author = list58; - num = 6; - List list59 = new List(num); - CollectionsMarshal.SetCount(list59, num); - Span span21 = CollectionsMarshal.AsSpan(list59); - ref QuestSequence reference41 = ref span21[0]; + index = 6; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + Span span59 = CollectionsMarshal.AsSpan(list59); + num = 0; + ref QuestSequence reference41 = ref span59[num]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -390476,12 +474859,16 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - ref QuestStep reference42 = ref CollectionsMarshal.AsSpan(list60)[0]; + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + ref QuestStep reference42 = ref span60[index2]; QuestStep questStep8 = new QuestStep(EInteractionType.AcceptQuest, 1053331u, new Vector3(350.5454f, 52.612267f, -438.40698f), 1291); - num3 = 1; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - CollectionsMarshal.AsSpan(list61)[0] = new DialogueChoice + index3 = 1; + List list61 = new List(index3); + CollectionsMarshal.SetCount(list61, index3); + Span span61 = CollectionsMarshal.AsSpan(list61); + num3 = 0; + span61[num3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGWZ204_05414_Q1_000_000"), @@ -390491,18 +474878,22 @@ public static class AssemblyQuestLoader reference42 = questStep8; obj34.Steps = list60; reference41 = obj34; - ref QuestSequence reference43 = ref span21[1]; + num++; + ref QuestSequence reference43 = ref span59[num]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1053341u, new Vector3(349.01953f, 52.612263f, -438.98682f), 1291); + index2 = 1; + List list62 = new List(index2); + CollectionsMarshal.SetCount(list62, index2); + Span span62 = CollectionsMarshal.AsSpan(list62); + num2 = 0; + span62[num2] = new QuestStep(EInteractionType.Interact, 1053341u, new Vector3(349.01953f, 52.612263f, -438.98682f), 1291); obj35.Steps = list62; reference43 = obj35; - ref QuestSequence reference44 = ref span21[2]; + num++; + ref QuestSequence reference44 = ref span59[num]; QuestSequence obj36 = new QuestSequence { Sequence = 2 @@ -390510,33 +474901,39 @@ public static class AssemblyQuestLoader num2 = 2; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span22 = CollectionsMarshal.AsSpan(list63); - span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(401.85794f, 65.49993f, -516.0078f), 1291); - span22[1] = new QuestStep(EInteractionType.Interact, 1053341u, new Vector3(401.46838f, 65.49994f, -516.78503f), 1291) + Span span63 = CollectionsMarshal.AsSpan(list63); + index2 = 0; + span63[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(401.85794f, 65.49993f, -516.0078f), 1291); + index2++; + span63[index2] = new QuestStep(EInteractionType.Interact, 1053341u, new Vector3(401.46838f, 65.49994f, -516.78503f), 1291) { StopDistance = 0.25f, Mount = false }; obj36.Steps = list63; reference44 = obj36; - ref QuestSequence reference45 = ref span21[3]; + num++; + ref QuestSequence reference45 = ref span59[num]; QuestSequence obj37 = new QuestSequence { Sequence = 3 }; - num2 = 2; - List list64 = new List(num2); - CollectionsMarshal.SetCount(list64, num2); - Span span23 = CollectionsMarshal.AsSpan(list64); - span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(316.5788f, 53.05f, -105.28f), 1291); - span23[1] = new QuestStep(EInteractionType.Interact, 1053341u, new Vector3(312.84088f, 53.049995f, -100.085434f), 1291) + index2 = 2; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num2 = 0; + span64[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(316.5788f, 53.05f, -105.28f), 1291); + num2++; + span64[num2] = new QuestStep(EInteractionType.Interact, 1053341u, new Vector3(312.84088f, 53.049995f, -100.085434f), 1291) { StopDistance = 0.25f, Mount = false }; obj37.Steps = list64; reference45 = obj37; - ref QuestSequence reference46 = ref span21[4]; + num++; + ref QuestSequence reference46 = ref span59[num]; QuestSequence obj38 = new QuestSequence { Sequence = 4 @@ -390544,12 +474941,16 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list65)[0]; + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + ref QuestStep reference47 = ref span65[index2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1053342u, new Vector3(310.17004f, 53.05f, -98.40552f), 1291); num3 = 1; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - CollectionsMarshal.AsSpan(list66)[0] = new DialogueChoice + Span span66 = CollectionsMarshal.AsSpan(list66); + index3 = 0; + span66[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGWZ204_05414_Q9_000_000") @@ -390558,39 +474959,43 @@ public static class AssemblyQuestLoader reference47 = questStep9; obj38.Steps = list65; reference46 = obj38; - ref QuestSequence reference48 = ref span21[5]; + num++; + ref QuestSequence reference48 = ref span59[num]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list67 = new List(num2); - CollectionsMarshal.SetCount(list67, num2); - Span span24 = CollectionsMarshal.AsSpan(list67); - span24[0] = new QuestStep(EInteractionType.Action, null, null, 1291) + index2 = 2; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num2 = 0; + span67[num2] = new QuestStep(EInteractionType.Action, null, null, 1291) { Comment = "Use Stellar Return to teleport back", Action = EAction.DutyAction1 }; - span24[1] = new QuestStep(EInteractionType.CompleteQuest, 1053331u, new Vector3(350.5454f, 52.612267f, -438.40698f), 1291); + num2++; + span67[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053331u, new Vector3(350.5454f, 52.612267f, -438.40698f), 1291); obj39.Steps = list67; reference48 = obj39; questRoot9.QuestSequence = list59; AddQuest(questId9, questRoot9); - QuestId questId10 = new QuestId(5425); + QuestId questId10 = new QuestId(5426); QuestRoot questRoot10 = new QuestRoot(); num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - CollectionsMarshal.AsSpan(list68)[0] = "WigglyMuffin"; + Span span68 = CollectionsMarshal.AsSpan(list68); + index = 0; + span68[index] = "WigglyMuffin"; questRoot10.Author = list68; - questRoot10.IsSeasonalQuest = true; - questRoot10.SeasonalQuestExpiry = new DateTime(2026, 4, 6, 14, 59, 0, DateTimeKind.Utc); - num = 10; - List list69 = new List(num); - CollectionsMarshal.SetCount(list69, num); - Span span25 = CollectionsMarshal.AsSpan(list69); - ref QuestSequence reference49 = ref span25[0]; + index = 5; + List list69 = new List(index); + CollectionsMarshal.SetCount(list69, index); + Span span69 = CollectionsMarshal.AsSpan(list69); + num = 0; + ref QuestSequence reference49 = ref span69[num]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -390598,290 +475003,9 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list70)[0]; - QuestStep obj41 = new QuestStep(EInteractionType.AcceptQuest, 1056053u, new Vector3(-50.003845f, 6.5f, -89.76886f), 133) - { - AetheryteShortcut = EAetheryteLocation.Gridania, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaAmphitheatre - } - }; - SkipConditions skipConditions = new SkipConditions(); - SkipAetheryteCondition obj42 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = 133; - obj42.InTerritory = list71; - skipConditions.AetheryteShortcutIf = obj42; - obj41.SkipConditions = skipConditions; - reference50 = obj41; - obj40.Steps = list70; - reference49 = obj40; - ref QuestSequence reference51 = ref span25[1]; - QuestSequence obj43 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1056054u, new Vector3(24.64331f, -1.0772418f, 58.121582f), 132) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.GridaniaAmphitheatre, - To = EAetheryteLocation.Gridania - }, - SkipConditions = new SkipConditions - { - AethernetShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj43.Steps = list72; - reference51 = obj43; - ref QuestSequence reference52 = ref span25[2]; - QuestSequence obj44 = new QuestSequence - { - Sequence = 2 - }; - num2 = 3; - List list73 = new List(num2); - CollectionsMarshal.SetCount(list73, num2); - Span span26 = CollectionsMarshal.AsSpan(list73); - ref QuestStep reference53 = ref span26[0]; - QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1056057u, new Vector3(25.497803f, -8f, 104.93628f), 132); - num3 = 6; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - Span span27 = CollectionsMarshal.AsSpan(list74); - span27[0] = null; - span27[1] = null; - span27[2] = null; - span27[3] = null; - span27[4] = null; - span27[5] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); - questStep10.CompletionQuestVariablesFlags = list74; - reference53 = questStep10; - ref QuestStep reference54 = ref span26[1]; - QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1056059u, new Vector3(24.093994f, -8f, 119.40173f), 132); - num3 = 6; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - Span span28 = CollectionsMarshal.AsSpan(list75); - span28[0] = null; - span28[1] = null; - span28[2] = null; - span28[3] = null; - span28[4] = null; - span28[5] = new QuestWorkValue((byte)10, null, EQuestWorkMode.Bitwise); - questStep11.CompletionQuestVariablesFlags = list75; - reference54 = questStep11; - span26[2] = new QuestStep(EInteractionType.Interact, 1056058u, new Vector3(33.920776f, -8.20001f, 125.56641f), 132); - obj44.Steps = list73; - reference52 = obj44; - ref QuestSequence reference55 = ref span25[3]; - QuestSequence obj45 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list76 = new List(num2); - CollectionsMarshal.SetCount(list76, num2); - CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1056060u, new Vector3(24.673828f, -1.0534565f, 58.701416f), 132); - obj45.Steps = list76; - reference55 = obj45; - ref QuestSequence reference56 = ref span25[4]; - QuestSequence obj46 = new QuestSequence - { - Sequence = 4 - }; - num2 = 1; - List list77 = new List(num2); - CollectionsMarshal.SetCount(list77, num2); - CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1056061u, new Vector3(-41.21466f, 10.918522f, -232.25757f), 133) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaAmphitheatre - } - }; - obj46.Steps = list77; - reference56 = obj46; - ref QuestSequence reference57 = ref span25[5]; - QuestSequence obj47 = new QuestSequence - { - Sequence = 5 - }; - num2 = 1; - List list78 = new List(num2); - CollectionsMarshal.SetCount(list78, num2); - CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1056063u, new Vector3(126.51245f, 12.991126f, -92.484924f), 133) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.GridaniaAmphitheatre, - To = EAetheryteLocation.GridaniaLeatherworker - } - }; - obj47.Steps = list78; - reference57 = obj47; - ref QuestSequence reference58 = ref span25[6]; - QuestSequence obj48 = new QuestSequence - { - Sequence = 6 - }; - num2 = 1; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1056065u, new Vector3(-52.262207f, 6.774475f, -110.307495f), 133) - { - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.GridaniaLeatherworker, - To = EAetheryteLocation.GridaniaAmphitheatre - } - }; - obj48.Steps = list79; - reference58 = obj48; - ref QuestSequence reference59 = ref span25[7]; - QuestSequence obj49 = new QuestSequence - { - Sequence = 7 - }; - num2 = 2; - List list80 = new List(num2); - CollectionsMarshal.SetCount(list80, num2); - Span span29 = CollectionsMarshal.AsSpan(list80); - ref QuestStep reference60 = ref span29[0]; - QuestStep obj50 = new QuestStep(EInteractionType.Interact, 1056067u, new Vector3(-54.551025f, 6.851239f, -110.948364f), 133) - { - IgnoreQuestMarker = true - }; - num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - CollectionsMarshal.AsSpan(list81)[0] = new DialogueChoice - { - Type = EDialogChoiceType.List, - ExcelSheet = "custom/009/FesEst2026Entrance_00960", - Prompt = new ExcelRef("TEXT_FESEST2026ENTRANCE_00960_Q1_000_000"), - Answer = new ExcelRef("TEXT_FESEST2026ENTRANCE_00960_A1_000_001"), - PromptIsRegularExpression = true - }; - obj50.DialogueChoices = list81; - reference60 = obj50; - ref QuestStep reference61 = ref span29[1]; - QuestStep obj51 = new QuestStep(EInteractionType.Action, null, null, 1336) - { - StopDistance = 0f, - Action = EAction.PruningPirouette - }; - num3 = 8; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - Span span30 = CollectionsMarshal.AsSpan(list82); - span30[0] = 2015072u; - span30[1] = 2015073u; - span30[2] = 2015074u; - span30[3] = 2015075u; - span30[4] = 2015076u; - span30[5] = 2015077u; - span30[6] = 2015078u; - span30[7] = 2015079u; - obj51.DataIds = list82; - num3 = 9; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - Span span31 = CollectionsMarshal.AsSpan(list83); - span31[0] = new Vector3(-700.0023f, -0.15729797f, -721.67926f); - span31[1] = new Vector3(-700.1704f, -0.0301615f, 77.54147f); - span31[2] = new Vector3(-699.9926f, -0.021064043f, 877.55304f); - span31[3] = new Vector3(99.99213f, -0.100738764f, -721.9226f); - span31[4] = new Vector3(99.92716f, 4.7683716E-07f, 77.599335f); - span31[5] = new Vector3(100.40486f, 0.20596194f, 877.50397f); - span31[6] = new Vector3(899.93384f, 0.03615737f, -722.4109f); - span31[7] = new Vector3(900.052f, 0.23717809f, 77.897415f); - span31[8] = new Vector3(900.26733f, -0.30200624f, 877.5144f); - obj51.WaypointPositions = list83; - reference61 = obj51; - obj49.Steps = list80; - reference59 = obj49; - ref QuestSequence reference62 = ref span25[8]; - QuestSequence obj52 = new QuestSequence - { - Sequence = 8 - }; - num2 = 1; - List list84 = new List(num2); - CollectionsMarshal.SetCount(list84, num2); - CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1056065u, new Vector3(-52.262207f, 6.774475f, -110.307495f), 133); - obj52.Steps = list84; - reference62 = obj52; - ref QuestSequence reference63 = ref span25[9]; - QuestSequence obj53 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list85 = new List(num2); - CollectionsMarshal.SetCount(list85, num2); - ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list85)[0]; - QuestStep obj54 = new QuestStep(EInteractionType.CompleteQuest, 1056056u, new Vector3(-50.003845f, 6.5f, -89.7384f), 133) - { - AetheryteShortcut = EAetheryteLocation.Gridania, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaAmphitheatre - } - }; - SkipConditions skipConditions2 = new SkipConditions(); - SkipAetheryteCondition obj55 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 1; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - CollectionsMarshal.AsSpan(list86)[0] = 133; - obj55.InTerritory = list86; - skipConditions2.AetheryteShortcutIf = obj55; - obj54.SkipConditions = skipConditions2; - reference64 = obj54; - obj53.Steps = list85; - reference63 = obj53; - questRoot10.QuestSequence = list69; - AddQuest(questId10, questRoot10); - QuestId questId11 = new QuestId(5426); - QuestRoot questRoot11 = new QuestRoot(); - num = 1; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - CollectionsMarshal.AsSpan(list87)[0] = "WigglyMuffin"; - questRoot11.Author = list87; - num = 5; - List list88 = new List(num); - CollectionsMarshal.SetCount(list88, num); - Span span32 = CollectionsMarshal.AsSpan(list88); - ref QuestSequence reference65 = ref span32[0]; - QuestSequence obj56 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list89 = new List(num2); - CollectionsMarshal.SetCount(list89, num2); - CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.AcceptQuest, 1056011u, new Vector3(-22.568176f, 38.056595f, -389.05933f), 1186) + Span span70 = CollectionsMarshal.AsSpan(list70); + index2 = 0; + span70[index2] = new QuestStep(EInteractionType.AcceptQuest, 1056011u, new Vector3(-22.568176f, 38.056595f, -389.05933f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -390890,19 +475014,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineResolution } }; - obj56.Steps = list89; - reference65 = obj56; - ref QuestSequence reference66 = ref span32[1]; - QuestSequence obj57 = new QuestSequence + obj40.Steps = list70; + reference49 = obj40; + num++; + ref QuestSequence reference50 = ref span69[num]; + QuestSequence obj41 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - Span span33 = CollectionsMarshal.AsSpan(list90); - ref QuestStep reference67 = ref span33[0]; - QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) + index2 = 2; + List list71 = new List(index2); + CollectionsMarshal.SetCount(list71, index2); + Span span71 = CollectionsMarshal.AsSpan(list71); + num2 = 0; + ref QuestStep reference51 = ref span71[num2]; + QuestStep obj42 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -390912,38 +475038,46 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineNeonStein } }; - SkipConditions skipConditions3 = new SkipConditions(); + SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num3 = 1; - List list91 = new List(num3); - CollectionsMarshal.SetCount(list91, num3); - CollectionsMarshal.AsSpan(list91)[0] = 1207; - skipStepConditions.InTerritory = list91; - skipConditions3.StepIf = skipStepConditions; - SkipAetheryteCondition obj59 = new SkipAetheryteCondition + index3 = 1; + List list72 = new List(index3); + CollectionsMarshal.SetCount(list72, index3); + Span span72 = CollectionsMarshal.AsSpan(list72); + num3 = 0; + span72[num3] = 1207; + skipStepConditions.InTerritory = list72; + skipConditions.StepIf = skipStepConditions; + SkipAetheryteCondition obj43 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - CollectionsMarshal.AsSpan(list92)[0] = 1207; - obj59.InTerritory = list92; - skipConditions3.AetheryteShortcutIf = obj59; - obj58.SkipConditions = skipConditions3; - reference67 = obj58; - span33[1] = new QuestStep(EInteractionType.Interact, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); - obj57.Steps = list90; - reference66 = obj57; - ref QuestSequence reference68 = ref span32[2]; - QuestSequence obj60 = new QuestSequence + List list73 = new List(num3); + CollectionsMarshal.SetCount(list73, num3); + Span span73 = CollectionsMarshal.AsSpan(list73); + index3 = 0; + span73[index3] = 1207; + obj43.InTerritory = list73; + skipConditions.AetheryteShortcutIf = obj43; + obj42.SkipConditions = skipConditions; + reference51 = obj42; + num2++; + span71[num2] = new QuestStep(EInteractionType.Interact, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); + obj41.Steps = list71; + reference50 = obj41; + num++; + ref QuestSequence reference52 = ref span69[num]; + QuestSequence obj44 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1056119u, new Vector3(130.41882f, -16.560858f, 165.85034f), 1185) + List list74 = new List(num2); + CollectionsMarshal.SetCount(list74, num2); + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = new QuestStep(EInteractionType.Interact, 1056119u, new Vector3(130.41882f, -16.560858f, 165.85034f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -390954,17 +475088,20 @@ public static class AssemblyQuestLoader } } }; - obj60.Steps = list93; - reference68 = obj60; - ref QuestSequence reference69 = ref span32[3]; - QuestSequence obj61 = new QuestSequence + obj44.Steps = list74; + reference52 = obj44; + num++; + ref QuestSequence reference53 = ref span69[num]; + QuestSequence obj45 = new QuestSequence { Sequence = 3 }; - num2 = 1; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 2014993u, new Vector3(129.9068f, -16.56085f, 163.5934f), 1185) + index2 = 1; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num2 = 0; + span75[num2] = new QuestStep(EInteractionType.Interact, 2014993u, new Vector3(129.9068f, -16.56085f, 163.5934f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -390975,17 +475112,20 @@ public static class AssemblyQuestLoader } } }; - obj61.Steps = list94; - reference69 = obj61; - ref QuestSequence reference70 = ref span32[4]; - QuestSequence obj62 = new QuestSequence + obj45.Steps = list75; + reference53 = obj45; + num++; + ref QuestSequence reference54 = ref span69[num]; + QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1056126u, new Vector3(132.6466f, -15.89986f, 176.01282f), 1185) + List list76 = new List(num2); + CollectionsMarshal.SetCount(list76, num2); + Span span76 = CollectionsMarshal.AsSpan(list76); + index2 = 0; + span76[index2] = new QuestStep(EInteractionType.CompleteQuest, 1056126u, new Vector3(132.6466f, -15.89986f, 176.01282f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -390996,226 +475136,262 @@ public static class AssemblyQuestLoader } } }; - obj62.Steps = list95; - reference70 = obj62; - questRoot11.QuestSequence = list88; + obj46.Steps = list76; + reference54 = obj46; + questRoot10.QuestSequence = list69; + AddQuest(questId10, questRoot10); + QuestId questId11 = new QuestId(5427); + QuestRoot questRoot11 = new QuestRoot(); + num = 1; + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + Span span77 = CollectionsMarshal.AsSpan(list77); + index = 0; + span77[index] = "WigglyMuffin"; + questRoot11.Author = list77; + index = 5; + List list78 = new List(index); + CollectionsMarshal.SetCount(list78, index); + Span span78 = CollectionsMarshal.AsSpan(list78); + num = 0; + ref QuestSequence reference55 = ref span78[num]; + QuestSequence obj47 = new QuestSequence + { + Sequence = 0 + }; + index2 = 1; + List list79 = new List(index2); + CollectionsMarshal.SetCount(list79, index2); + Span span79 = CollectionsMarshal.AsSpan(list79); + num2 = 0; + span79[num2] = new QuestStep(EInteractionType.AcceptQuest, 1056126u, new Vector3(132.6466f, -15.89986f, 176.01282f), 1185) + { + AetheryteShortcut = EAetheryteLocation.Tuliyollal, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj47.Steps = list79; + reference55 = obj47; + num++; + ref QuestSequence reference56 = ref span78[num]; + QuestSequence obj48 = new QuestSequence + { + Sequence = 1 + }; + num2 = 1; + List list80 = new List(num2); + CollectionsMarshal.SetCount(list80, num2); + Span span80 = CollectionsMarshal.AsSpan(list80); + index2 = 0; + span80[index2] = new QuestStep(EInteractionType.Interact, 1056131u, new Vector3(14.663879f, -19.587986f, 195.11707f), 1185) + { + AetheryteShortcut = EAetheryteLocation.Tuliyollal, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj48.Steps = list80; + reference56 = obj48; + num++; + ref QuestSequence reference57 = ref span78[num]; + QuestSequence obj49 = new QuestSequence + { + Sequence = 2 + }; + index2 = 1; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num2 = 0; + span81[num2] = new QuestStep(EInteractionType.Interact, 1056136u, new Vector3(6.3324585f, 50.700012f, 725.6428f), 1192) + { + Fly = true, + AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj49.Steps = list81; + reference57 = obj49; + num++; + ref QuestSequence reference58 = ref span78[num]; + QuestSequence obj50 = new QuestSequence + { + Sequence = 3 + }; + num2 = 1; + List list82 = new List(num2); + CollectionsMarshal.SetCount(list82, num2); + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = new QuestStep(EInteractionType.Interact, 1056140u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + { + Fly = true, + AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + InSameTerritory = true + } + } + }; + obj50.Steps = list82; + reference58 = obj50; + num++; + ref QuestSequence reference59 = ref span78[num]; + QuestSequence obj51 = new QuestSequence + { + Sequence = byte.MaxValue + }; + index2 = 1; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num2 = 0; + span83[num2] = new QuestStep(EInteractionType.CompleteQuest, 1056141u, new Vector3(-7.5532227f, -0.003462526f, -7.950012f), 1334); + obj51.Steps = list83; + reference59 = obj51; + questRoot11.QuestSequence = list78; AddQuest(questId11, questRoot11); - QuestId questId12 = new QuestId(5427); + QuestId questId12 = new QuestId(5428); QuestRoot questRoot12 = new QuestRoot(); num = 1; - List list96 = new List(num); - CollectionsMarshal.SetCount(list96, num); - CollectionsMarshal.AsSpan(list96)[0] = "WigglyMuffin"; - questRoot12.Author = list96; - num = 5; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span34 = CollectionsMarshal.AsSpan(list97); - ref QuestSequence reference71 = ref span34[0]; - QuestSequence obj63 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1056126u, new Vector3(132.6466f, -15.89986f, 176.01282f), 1185) - { - AetheryteShortcut = EAetheryteLocation.Tuliyollal, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj63.Steps = list98; - reference71 = obj63; - ref QuestSequence reference72 = ref span34[1]; - QuestSequence obj64 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1056131u, new Vector3(14.663879f, -19.587986f, 195.11707f), 1185) - { - AetheryteShortcut = EAetheryteLocation.Tuliyollal, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj64.Steps = list99; - reference72 = obj64; - ref QuestSequence reference73 = ref span34[2]; - QuestSequence obj65 = new QuestSequence - { - Sequence = 2 - }; - num2 = 1; - List list100 = new List(num2); - CollectionsMarshal.SetCount(list100, num2); - CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1056136u, new Vector3(6.3324585f, 50.700012f, 725.6428f), 1192) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj65.Steps = list100; - reference73 = obj65; - ref QuestSequence reference74 = ref span34[3]; - QuestSequence obj66 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1056140u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, - SkipConditions = new SkipConditions - { - AetheryteShortcutIf = new SkipAetheryteCondition - { - InSameTerritory = true - } - } - }; - obj66.Steps = list101; - reference74 = obj66; - ref QuestSequence reference75 = ref span34[4]; - QuestSequence obj67 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1056141u, new Vector3(-7.5532227f, -0.003462526f, -7.950012f), 1334); - obj67.Steps = list102; - reference75 = obj67; - questRoot12.QuestSequence = list97; - AddQuest(questId12, questRoot12); - QuestId questId13 = new QuestId(5428); - QuestRoot questRoot13 = new QuestRoot(); - num = 1; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - CollectionsMarshal.AsSpan(list103)[0] = "WigglyMuffin"; - questRoot13.Author = list103; - num = 7; - List list104 = new List(num); - CollectionsMarshal.SetCount(list104, num); - Span span35 = CollectionsMarshal.AsSpan(list104); - ref QuestSequence reference76 = ref span35[0]; - QuestSequence obj68 = new QuestSequence + List list84 = new List(num); + CollectionsMarshal.SetCount(list84, num); + Span span84 = CollectionsMarshal.AsSpan(list84); + index = 0; + span84[index] = "WigglyMuffin"; + questRoot12.Author = list84; + index = 7; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num = 0; + ref QuestSequence reference60 = ref span85[num]; + QuestSequence obj52 = new QuestSequence { Sequence = 0 }; num2 = 2; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - Span span36 = CollectionsMarshal.AsSpan(list105); - ref QuestStep reference77 = ref span36[0]; - QuestStep obj69 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + List list86 = new List(num2); + CollectionsMarshal.SetCount(list86, num2); + Span span86 = CollectionsMarshal.AsSpan(list86); + index2 = 0; + ref QuestStep reference61 = ref span86[index2]; + QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions4 = new SkipConditions(); + SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num3 = 2; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span37 = CollectionsMarshal.AsSpan(list106); - span37[0] = 1334; - span37[1] = 1332; - skipStepConditions2.InTerritory = list106; - skipConditions4.StepIf = skipStepConditions2; - SkipAetheryteCondition obj70 = new SkipAetheryteCondition + index3 = 2; + List list87 = new List(index3); + CollectionsMarshal.SetCount(list87, index3); + Span span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = 1334; + num3++; + span87[num3] = 1332; + skipStepConditions2.InTerritory = list87; + skipConditions2.StepIf = skipStepConditions2; + SkipAetheryteCondition obj54 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 2; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - Span span38 = CollectionsMarshal.AsSpan(list107); - span38[0] = 1334; - span38[1] = 1332; - obj70.InTerritory = list107; - skipConditions4.AetheryteShortcutIf = obj70; - obj69.SkipConditions = skipConditions4; - reference77 = obj69; - span36[1] = new QuestStep(EInteractionType.AcceptQuest, 1056141u, new Vector3(-7.5532227f, -0.003462526f, -7.950012f), 1334); - obj68.Steps = list105; - reference76 = obj68; - ref QuestSequence reference78 = ref span35[1]; - QuestSequence obj71 = new QuestSequence + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + Span span88 = CollectionsMarshal.AsSpan(list88); + index3 = 0; + span88[index3] = 1334; + index3++; + span88[index3] = 1332; + obj54.InTerritory = list88; + skipConditions2.AetheryteShortcutIf = obj54; + obj53.SkipConditions = skipConditions2; + reference61 = obj53; + index2++; + span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1056141u, new Vector3(-7.5532227f, -0.003462526f, -7.950012f), 1334); + obj52.Steps = list86; + reference60 = obj52; + num++; + ref QuestSequence reference62 = ref span85[num]; + QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - Span span39 = CollectionsMarshal.AsSpan(list108); - ref QuestStep reference79 = ref span39[0]; - QuestStep obj72 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + index2 = 2; + List list89 = new List(index2); + CollectionsMarshal.SetCount(list89, index2); + Span span89 = CollectionsMarshal.AsSpan(list89); + num2 = 0; + ref QuestStep reference63 = ref span89[num2]; + QuestStep obj56 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions5 = new SkipConditions(); + SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num3 = 2; - List list109 = new List(num3); - CollectionsMarshal.SetCount(list109, num3); - Span span40 = CollectionsMarshal.AsSpan(list109); - span40[0] = 1334; - span40[1] = 1332; - skipStepConditions3.InTerritory = list109; - skipConditions5.StepIf = skipStepConditions3; - SkipAetheryteCondition obj73 = new SkipAetheryteCondition + index3 = 2; + List list90 = new List(index3); + CollectionsMarshal.SetCount(list90, index3); + Span span90 = CollectionsMarshal.AsSpan(list90); + num3 = 0; + span90[num3] = 1334; + num3++; + span90[num3] = 1332; + skipStepConditions3.InTerritory = list90; + skipConditions3.StepIf = skipStepConditions3; + SkipAetheryteCondition obj57 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 2; - List list110 = new List(num3); - CollectionsMarshal.SetCount(list110, num3); - Span span41 = CollectionsMarshal.AsSpan(list110); - span41[0] = 1334; - span41[1] = 1332; - obj73.InTerritory = list110; - skipConditions5.AetheryteShortcutIf = obj73; - obj72.SkipConditions = skipConditions5; - reference79 = obj72; - span39[1] = new QuestStep(EInteractionType.Interact, 1056145u, new Vector3(-2.1210327f, 4.3585896E-07f, -43.808716f), 1334); - obj71.Steps = list108; - reference78 = obj71; - ref QuestSequence reference80 = ref span35[2]; - QuestSequence obj74 = new QuestSequence + List list91 = new List(num3); + CollectionsMarshal.SetCount(list91, num3); + Span span91 = CollectionsMarshal.AsSpan(list91); + index3 = 0; + span91[index3] = 1334; + index3++; + span91[index3] = 1332; + obj57.InTerritory = list91; + skipConditions3.AetheryteShortcutIf = obj57; + obj56.SkipConditions = skipConditions3; + reference63 = obj56; + num2++; + span89[num2] = new QuestStep(EInteractionType.Interact, 1056145u, new Vector3(-2.1210327f, 4.3585896E-07f, -43.808716f), 1334); + obj55.Steps = list89; + reference62 = obj55; + num++; + ref QuestSequence reference64 = ref span85[num]; + QuestSequence obj58 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Duty, null, null, 1334) + List list92 = new List(num2); + CollectionsMarshal.SetCount(list92, num2); + Span span92 = CollectionsMarshal.AsSpan(list92); + index2 = 0; + span92[index2] = new QuestStep(EInteractionType.Duty, null, null, 1334) { DutyOptions = new DutyOptions { @@ -391223,96 +475399,415 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 1064u } }; - obj74.Steps = list111; - reference80 = obj74; - span35[3] = new QuestSequence + obj58.Steps = list92; + reference64 = obj58; + num++; + span85[num] = new QuestSequence { Sequence = 3 }; - ref QuestSequence reference81 = ref span35[4]; - QuestSequence obj75 = new QuestSequence + num++; + ref QuestSequence reference65 = ref span85[num]; + QuestSequence obj59 = new QuestSequence { Sequence = 4 }; + index2 = 3; + List list93 = new List(index2); + CollectionsMarshal.SetCount(list93, index2); + Span span93 = CollectionsMarshal.AsSpan(list93); + num2 = 0; + ref QuestStep reference66 = ref span93[num2]; + QuestStep obj60 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + { + TargetTerritoryId = (ushort)1334, + Fly = true, + AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo + }; + SkipConditions skipConditions4 = new SkipConditions(); + SkipStepConditions skipStepConditions4 = new SkipStepConditions(); + index3 = 2; + List list94 = new List(index3); + CollectionsMarshal.SetCount(list94, index3); + Span span94 = CollectionsMarshal.AsSpan(list94); + num3 = 0; + span94[num3] = 1334; + num3++; + span94[num3] = 1332; + skipStepConditions4.InTerritory = list94; + skipConditions4.StepIf = skipStepConditions4; + SkipAetheryteCondition obj61 = new SkipAetheryteCondition + { + InSameTerritory = true + }; + num3 = 2; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + Span span95 = CollectionsMarshal.AsSpan(list95); + index3 = 0; + span95[index3] = 1334; + index3++; + span95[index3] = 1332; + obj61.InTerritory = list95; + skipConditions4.AetheryteShortcutIf = obj61; + obj60.SkipConditions = skipConditions4; + reference66 = obj60; + num2++; + ref QuestStep reference67 = ref span93[num2]; + QuestStep obj62 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + { + TargetTerritoryId = (ushort)1332 + }; + SkipConditions skipConditions5 = new SkipConditions(); + SkipStepConditions skipStepConditions5 = new SkipStepConditions(); + index3 = 1; + List list96 = new List(index3); + CollectionsMarshal.SetCount(list96, index3); + Span span96 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span96[num3] = 1332; + skipStepConditions5.InTerritory = list96; + skipConditions5.StepIf = skipStepConditions5; + obj62.SkipConditions = skipConditions5; + reference67 = obj62; + num2++; + span93[num2] = new QuestStep(EInteractionType.Interact, 1056149u, new Vector3(274.6471f, -115.97899f, -460.83777f), 1332); + obj59.Steps = list93; + reference65 = obj59; + num++; + ref QuestSequence reference68 = ref span85[num]; + QuestSequence obj63 = new QuestSequence + { + Sequence = 5 + }; num2 = 3; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - Span span42 = CollectionsMarshal.AsSpan(list112); - ref QuestStep reference82 = ref span42[0]; - QuestStep obj76 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + List list97 = new List(num2); + CollectionsMarshal.SetCount(list97, num2); + Span span97 = CollectionsMarshal.AsSpan(list97); + index2 = 0; + ref QuestStep reference69 = ref span97[index2]; + QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; SkipConditions skipConditions6 = new SkipConditions(); - SkipStepConditions skipStepConditions4 = new SkipStepConditions(); + SkipStepConditions skipStepConditions6 = new SkipStepConditions(); num3 = 2; - List list113 = new List(num3); - CollectionsMarshal.SetCount(list113, num3); - Span span43 = CollectionsMarshal.AsSpan(list113); - span43[0] = 1334; - span43[1] = 1332; - skipStepConditions4.InTerritory = list113; - skipConditions6.StepIf = skipStepConditions4; - SkipAetheryteCondition obj77 = new SkipAetheryteCondition + List list98 = new List(num3); + CollectionsMarshal.SetCount(list98, num3); + Span span98 = CollectionsMarshal.AsSpan(list98); + index3 = 0; + span98[index3] = 1334; + index3++; + span98[index3] = 1332; + skipStepConditions6.InTerritory = list98; + skipConditions6.StepIf = skipStepConditions6; + SkipAetheryteCondition obj65 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 2; - List list114 = new List(num3); - CollectionsMarshal.SetCount(list114, num3); - Span span44 = CollectionsMarshal.AsSpan(list114); - span44[0] = 1334; - span44[1] = 1332; - obj77.InTerritory = list114; - skipConditions6.AetheryteShortcutIf = obj77; - obj76.SkipConditions = skipConditions6; - reference82 = obj76; - ref QuestStep reference83 = ref span42[1]; - QuestStep obj78 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + index3 = 2; + List list99 = new List(index3); + CollectionsMarshal.SetCount(list99, index3); + Span span99 = CollectionsMarshal.AsSpan(list99); + num3 = 0; + span99[num3] = 1334; + num3++; + span99[num3] = 1332; + obj65.InTerritory = list99; + skipConditions6.AetheryteShortcutIf = obj65; + obj64.SkipConditions = skipConditions6; + reference69 = obj64; + index2++; + ref QuestStep reference70 = ref span97[index2]; + QuestStep obj66 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; SkipConditions skipConditions7 = new SkipConditions(); - SkipStepConditions skipStepConditions5 = new SkipStepConditions(); + SkipStepConditions skipStepConditions7 = new SkipStepConditions(); num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - CollectionsMarshal.AsSpan(list115)[0] = 1332; - skipStepConditions5.InTerritory = list115; - skipConditions7.StepIf = skipStepConditions5; - obj78.SkipConditions = skipConditions7; - reference83 = obj78; - span42[2] = new QuestStep(EInteractionType.Interact, 1056149u, new Vector3(274.6471f, -115.97899f, -460.83777f), 1332); - obj75.Steps = list112; - reference81 = obj75; - ref QuestSequence reference84 = ref span35[5]; - QuestSequence obj79 = new QuestSequence + List list100 = new List(num3); + CollectionsMarshal.SetCount(list100, num3); + Span span100 = CollectionsMarshal.AsSpan(list100); + index3 = 0; + span100[index3] = 1332; + skipStepConditions7.InTerritory = list100; + skipConditions7.StepIf = skipStepConditions7; + obj66.SkipConditions = skipConditions7; + reference70 = obj66; + index2++; + span97[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(274.6471f, -115.97899f, -460.83777f), 1332) { - Sequence = 5 + ItemId = 2003793u }; - num2 = 3; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - Span span45 = CollectionsMarshal.AsSpan(list116); - ref QuestStep reference85 = ref span45[0]; - QuestStep obj80 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + obj63.Steps = list97; + reference68 = obj63; + num++; + ref QuestSequence reference71 = ref span85[num]; + QuestSequence obj67 = new QuestSequence + { + Sequence = byte.MaxValue + }; + index2 = 3; + List list101 = new List(index2); + CollectionsMarshal.SetCount(list101, index2); + Span span101 = CollectionsMarshal.AsSpan(list101); + num2 = 0; + ref QuestStep reference72 = ref span101[num2]; + QuestStep obj68 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; SkipConditions skipConditions8 = new SkipConditions(); - SkipStepConditions skipStepConditions6 = new SkipStepConditions(); + SkipStepConditions skipStepConditions8 = new SkipStepConditions(); + index3 = 2; + List list102 = new List(index3); + CollectionsMarshal.SetCount(list102, index3); + Span span102 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span102[num3] = 1334; + num3++; + span102[num3] = 1332; + skipStepConditions8.InTerritory = list102; + skipConditions8.StepIf = skipStepConditions8; + SkipAetheryteCondition obj69 = new SkipAetheryteCondition + { + InSameTerritory = true + }; num3 = 2; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - Span span46 = CollectionsMarshal.AsSpan(list117); - span46[0] = 1334; - span46[1] = 1332; - skipStepConditions6.InTerritory = list117; - skipConditions8.StepIf = skipStepConditions6; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + Span span103 = CollectionsMarshal.AsSpan(list103); + index3 = 0; + span103[index3] = 1334; + index3++; + span103[index3] = 1332; + obj69.InTerritory = list103; + skipConditions8.AetheryteShortcutIf = obj69; + obj68.SkipConditions = skipConditions8; + reference72 = obj68; + num2++; + ref QuestStep reference73 = ref span101[num2]; + QuestStep obj70 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + { + TargetTerritoryId = (ushort)1332 + }; + SkipConditions skipConditions9 = new SkipConditions(); + SkipStepConditions skipStepConditions9 = new SkipStepConditions(); + index3 = 1; + List list104 = new List(index3); + CollectionsMarshal.SetCount(list104, index3); + Span span104 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span104[num3] = 1332; + skipStepConditions9.InTerritory = list104; + skipConditions9.StepIf = skipStepConditions9; + obj70.SkipConditions = skipConditions9; + reference73 = obj70; + num2++; + span101[num2] = new QuestStep(EInteractionType.CompleteQuest, 1056149u, new Vector3(274.6471f, -115.97899f, -460.83777f), 1332); + obj67.Steps = list101; + reference71 = obj67; + questRoot12.QuestSequence = list85; + AddQuest(questId12, questRoot12); + QuestId questId13 = new QuestId(5429); + QuestRoot questRoot13 = new QuestRoot(); + num = 1; + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + Span span105 = CollectionsMarshal.AsSpan(list105); + index = 0; + span105[index] = "WigglyMuffin"; + questRoot13.Author = list105; + index = 4; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + Span span106 = CollectionsMarshal.AsSpan(list106); + num = 0; + ref QuestSequence reference74 = ref span106[num]; + QuestSequence obj71 = new QuestSequence + { + Sequence = 0 + }; + num2 = 3; + List list107 = new List(num2); + CollectionsMarshal.SetCount(list107, num2); + Span span107 = CollectionsMarshal.AsSpan(list107); + index2 = 0; + ref QuestStep reference75 = ref span107[index2]; + QuestStep obj72 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + { + TargetTerritoryId = (ushort)1334, + Fly = true, + AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo + }; + SkipConditions skipConditions10 = new SkipConditions(); + SkipStepConditions skipStepConditions10 = new SkipStepConditions(); + num3 = 2; + List list108 = new List(num3); + CollectionsMarshal.SetCount(list108, num3); + Span span108 = CollectionsMarshal.AsSpan(list108); + index3 = 0; + span108[index3] = 1334; + index3++; + span108[index3] = 1332; + skipStepConditions10.InTerritory = list108; + skipConditions10.StepIf = skipStepConditions10; + SkipAetheryteCondition obj73 = new SkipAetheryteCondition + { + InSameTerritory = true + }; + index3 = 2; + List list109 = new List(index3); + CollectionsMarshal.SetCount(list109, index3); + Span span109 = CollectionsMarshal.AsSpan(list109); + num3 = 0; + span109[num3] = 1334; + num3++; + span109[num3] = 1332; + obj73.InTerritory = list109; + skipConditions10.AetheryteShortcutIf = obj73; + obj72.SkipConditions = skipConditions10; + reference75 = obj72; + index2++; + ref QuestStep reference76 = ref span107[index2]; + QuestStep obj74 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + { + TargetTerritoryId = (ushort)1332 + }; + SkipConditions skipConditions11 = new SkipConditions(); + SkipStepConditions skipStepConditions11 = new SkipStepConditions(); + num3 = 1; + List list110 = new List(num3); + CollectionsMarshal.SetCount(list110, num3); + Span span110 = CollectionsMarshal.AsSpan(list110); + index3 = 0; + span110[index3] = 1332; + skipStepConditions11.InTerritory = list110; + skipConditions11.StepIf = skipStepConditions11; + obj74.SkipConditions = skipConditions11; + reference76 = obj74; + index2++; + span107[index2] = new QuestStep(EInteractionType.AcceptQuest, 1056149u, new Vector3(274.6471f, -115.97899f, -460.83777f), 1332); + obj71.Steps = list107; + reference74 = obj71; + num++; + ref QuestSequence reference77 = ref span106[num]; + QuestSequence obj75 = new QuestSequence + { + Sequence = 1 + }; + index2 = 3; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num2 = 0; + ref QuestStep reference78 = ref span111[num2]; + QuestStep obj76 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + { + TargetTerritoryId = (ushort)1334, + Fly = true, + AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo + }; + SkipConditions skipConditions12 = new SkipConditions(); + SkipStepConditions skipStepConditions12 = new SkipStepConditions(); + index3 = 2; + List list112 = new List(index3); + CollectionsMarshal.SetCount(list112, index3); + Span span112 = CollectionsMarshal.AsSpan(list112); + num3 = 0; + span112[num3] = 1334; + num3++; + span112[num3] = 1332; + skipStepConditions12.InTerritory = list112; + skipConditions12.StepIf = skipStepConditions12; + SkipAetheryteCondition obj77 = new SkipAetheryteCondition + { + InSameTerritory = true + }; + num3 = 2; + List list113 = new List(num3); + CollectionsMarshal.SetCount(list113, num3); + Span span113 = CollectionsMarshal.AsSpan(list113); + index3 = 0; + span113[index3] = 1334; + index3++; + span113[index3] = 1332; + obj77.InTerritory = list113; + skipConditions12.AetheryteShortcutIf = obj77; + obj76.SkipConditions = skipConditions12; + reference78 = obj76; + num2++; + ref QuestStep reference79 = ref span111[num2]; + QuestStep obj78 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + { + TargetTerritoryId = (ushort)1332 + }; + SkipConditions skipConditions13 = new SkipConditions(); + SkipStepConditions skipStepConditions13 = new SkipStepConditions(); + index3 = 1; + List list114 = new List(index3); + CollectionsMarshal.SetCount(list114, index3); + Span span114 = CollectionsMarshal.AsSpan(list114); + num3 = 0; + span114[num3] = 1332; + skipStepConditions13.InTerritory = list114; + skipConditions13.StepIf = skipStepConditions13; + obj78.SkipConditions = skipConditions13; + reference79 = obj78; + num2++; + ref QuestStep reference80 = ref span111[num2]; + QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1056159u, new Vector3(273.67053f, -115.97899f, -458.3963f), 1332); + num3 = 1; + List list115 = new List(num3); + CollectionsMarshal.SetCount(list115, num3); + Span span115 = CollectionsMarshal.AsSpan(list115); + index3 = 0; + span115[index3] = new DialogueChoice + { + Type = EDialogChoiceType.List, + Prompt = new ExcelRef("TEXT_KINGMJ104_05429_Q1_000_032"), + Answer = new ExcelRef("TEXT_KINGMJ104_05429_A1_000_001") + }; + questStep10.DialogueChoices = list115; + reference80 = questStep10; + obj75.Steps = list111; + reference77 = obj75; + num++; + ref QuestSequence reference81 = ref span106[num]; + QuestSequence obj79 = new QuestSequence + { + Sequence = 2 + }; + num2 = 5; + List list116 = new List(num2); + CollectionsMarshal.SetCount(list116, num2); + Span span116 = CollectionsMarshal.AsSpan(list116); + index2 = 0; + ref QuestStep reference82 = ref span116[index2]; + QuestStep obj80 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + { + TargetTerritoryId = (ushort)1334, + Fly = true, + AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo + }; + SkipConditions skipConditions14 = new SkipConditions(); + SkipStepConditions skipStepConditions14 = new SkipStepConditions(); + index3 = 2; + List list117 = new List(index3); + CollectionsMarshal.SetCount(list117, index3); + Span span117 = CollectionsMarshal.AsSpan(list117); + num3 = 0; + span117[num3] = 1334; + num3++; + span117[num3] = 1332; + skipStepConditions14.InTerritory = list117; + skipConditions14.StepIf = skipStepConditions14; SkipAetheryteCondition obj81 = new SkipAetheryteCondition { InSameTerritory = true @@ -391320,1691 +475815,1997 @@ public static class AssemblyQuestLoader num3 = 2; List list118 = new List(num3); CollectionsMarshal.SetCount(list118, num3); - Span span47 = CollectionsMarshal.AsSpan(list118); - span47[0] = 1334; - span47[1] = 1332; + Span span118 = CollectionsMarshal.AsSpan(list118); + index3 = 0; + span118[index3] = 1334; + index3++; + span118[index3] = 1332; obj81.InTerritory = list118; - skipConditions8.AetheryteShortcutIf = obj81; - obj80.SkipConditions = skipConditions8; - reference85 = obj80; - ref QuestStep reference86 = ref span45[1]; + skipConditions14.AetheryteShortcutIf = obj81; + obj80.SkipConditions = skipConditions14; + reference82 = obj80; + index2++; + ref QuestStep reference83 = ref span116[index2]; QuestStep obj82 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions9 = new SkipConditions(); - SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num3 = 1; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - CollectionsMarshal.AsSpan(list119)[0] = 1332; - skipStepConditions7.InTerritory = list119; - skipConditions9.StepIf = skipStepConditions7; - obj82.SkipConditions = skipConditions9; - reference86 = obj82; - span45[2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(274.6471f, -115.97899f, -460.83777f), 1332) - { - ItemId = 2003793u - }; + SkipConditions skipConditions15 = new SkipConditions(); + SkipStepConditions skipStepConditions15 = new SkipStepConditions(); + index3 = 1; + List list119 = new List(index3); + CollectionsMarshal.SetCount(list119, index3); + Span span119 = CollectionsMarshal.AsSpan(list119); + num3 = 0; + span119[num3] = 1332; + skipStepConditions15.InTerritory = list119; + skipConditions15.StepIf = skipStepConditions15; + obj82.SkipConditions = skipConditions15; + reference83 = obj82; + index2++; + ref QuestStep reference84 = ref span116[index2]; + QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1056152u, new Vector3(246.3263f, -115.9987f, -389.57812f), 1332); + num3 = 6; + List list120 = new List(num3); + CollectionsMarshal.SetCount(list120, num3); + Span span120 = CollectionsMarshal.AsSpan(list120); + index3 = 0; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = null; + index3++; + span120[index3] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); + questStep11.CompletionQuestVariablesFlags = list120; + reference84 = questStep11; + index2++; + ref QuestStep reference85 = ref span116[index2]; + QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1056153u, new Vector3(219.25684f, -115.53908f, -402.7619f), 1332); + index3 = 6; + List list121 = new List(index3); + CollectionsMarshal.SetCount(list121, index3); + Span span121 = CollectionsMarshal.AsSpan(list121); + num3 = 0; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = null; + num3++; + span121[num3] = new QuestWorkValue((byte)12, null, EQuestWorkMode.Bitwise); + questStep12.CompletionQuestVariablesFlags = list121; + reference85 = questStep12; + index2++; + span116[index2] = new QuestStep(EInteractionType.Interact, 1056154u, new Vector3(193.86584f, -115.92868f, -388.99823f), 1332); obj79.Steps = list116; - reference84 = obj79; - ref QuestSequence reference87 = ref span35[6]; + reference81 = obj79; + num++; + ref QuestSequence reference86 = ref span106[num]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 3; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - Span span48 = CollectionsMarshal.AsSpan(list120); - ref QuestStep reference88 = ref span48[0]; + index2 = 3; + List list122 = new List(index2); + CollectionsMarshal.SetCount(list122, index2); + Span span122 = CollectionsMarshal.AsSpan(list122); + num2 = 0; + ref QuestStep reference87 = ref span122[num2]; QuestStep obj84 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions10 = new SkipConditions(); - SkipStepConditions skipStepConditions8 = new SkipStepConditions(); + SkipConditions skipConditions16 = new SkipConditions(); + SkipStepConditions skipStepConditions16 = new SkipStepConditions(); num3 = 2; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span49 = CollectionsMarshal.AsSpan(list121); - span49[0] = 1334; - span49[1] = 1332; - skipStepConditions8.InTerritory = list121; - skipConditions10.StepIf = skipStepConditions8; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + Span span123 = CollectionsMarshal.AsSpan(list123); + index3 = 0; + span123[index3] = 1334; + index3++; + span123[index3] = 1332; + skipStepConditions16.InTerritory = list123; + skipConditions16.StepIf = skipStepConditions16; SkipAetheryteCondition obj85 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 2; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - Span span50 = CollectionsMarshal.AsSpan(list122); - span50[0] = 1334; - span50[1] = 1332; - obj85.InTerritory = list122; - skipConditions10.AetheryteShortcutIf = obj85; - obj84.SkipConditions = skipConditions10; - reference88 = obj84; - ref QuestStep reference89 = ref span48[1]; + index3 = 2; + List list124 = new List(index3); + CollectionsMarshal.SetCount(list124, index3); + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + span124[num3] = 1334; + num3++; + span124[num3] = 1332; + obj85.InTerritory = list124; + skipConditions16.AetheryteShortcutIf = obj85; + obj84.SkipConditions = skipConditions16; + reference87 = obj84; + num2++; + ref QuestStep reference88 = ref span122[num2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions11 = new SkipConditions(); - SkipStepConditions skipStepConditions9 = new SkipStepConditions(); + SkipConditions skipConditions17 = new SkipConditions(); + SkipStepConditions skipStepConditions17 = new SkipStepConditions(); num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - CollectionsMarshal.AsSpan(list123)[0] = 1332; - skipStepConditions9.InTerritory = list123; - skipConditions11.StepIf = skipStepConditions9; - obj86.SkipConditions = skipConditions11; - reference89 = obj86; - span48[2] = new QuestStep(EInteractionType.CompleteQuest, 1056149u, new Vector3(274.6471f, -115.97899f, -460.83777f), 1332); - obj83.Steps = list120; - reference87 = obj83; - questRoot13.QuestSequence = list104; + List list125 = new List(num3); + CollectionsMarshal.SetCount(list125, num3); + Span span125 = CollectionsMarshal.AsSpan(list125); + index3 = 0; + span125[index3] = 1332; + skipStepConditions17.InTerritory = list125; + skipConditions17.StepIf = skipStepConditions17; + obj86.SkipConditions = skipConditions17; + reference88 = obj86; + num2++; + span122[num2] = new QuestStep(EInteractionType.CompleteQuest, 1056159u, new Vector3(273.67053f, -115.97899f, -458.3963f), 1332); + obj83.Steps = list122; + reference86 = obj83; + questRoot13.QuestSequence = list106; AddQuest(questId13, questRoot13); - QuestId questId14 = new QuestId(5429); + QuestId questId14 = new QuestId(5430); QuestRoot questRoot14 = new QuestRoot(); num = 1; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - CollectionsMarshal.AsSpan(list124)[0] = "WigglyMuffin"; - questRoot14.Author = list124; - num = 4; - List list125 = new List(num); - CollectionsMarshal.SetCount(list125, num); - Span span51 = CollectionsMarshal.AsSpan(list125); - ref QuestSequence reference90 = ref span51[0]; + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + Span span126 = CollectionsMarshal.AsSpan(list126); + index = 0; + span126[index] = "WigglyMuffin"; + questRoot14.Author = list126; + index = 8; + List list127 = new List(index); + CollectionsMarshal.SetCount(list127, index); + Span span127 = CollectionsMarshal.AsSpan(list127); + num = 0; + ref QuestSequence reference89 = ref span127[num]; QuestSequence obj87 = new QuestSequence { Sequence = 0 }; num2 = 3; - List list126 = new List(num2); - CollectionsMarshal.SetCount(list126, num2); - Span span52 = CollectionsMarshal.AsSpan(list126); - ref QuestStep reference91 = ref span52[0]; + List list128 = new List(num2); + CollectionsMarshal.SetCount(list128, num2); + Span span128 = CollectionsMarshal.AsSpan(list128); + index2 = 0; + ref QuestStep reference90 = ref span128[index2]; QuestStep obj88 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions12 = new SkipConditions(); - SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - num3 = 2; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - Span span53 = CollectionsMarshal.AsSpan(list127); - span53[0] = 1334; - span53[1] = 1332; - skipStepConditions10.InTerritory = list127; - skipConditions12.StepIf = skipStepConditions10; + SkipConditions skipConditions18 = new SkipConditions(); + SkipStepConditions skipStepConditions18 = new SkipStepConditions(); + index3 = 2; + List list129 = new List(index3); + CollectionsMarshal.SetCount(list129, index3); + Span span129 = CollectionsMarshal.AsSpan(list129); + num3 = 0; + span129[num3] = 1334; + num3++; + span129[num3] = 1332; + skipStepConditions18.InTerritory = list129; + skipConditions18.StepIf = skipStepConditions18; SkipAetheryteCondition obj89 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 2; - List list128 = new List(num3); - CollectionsMarshal.SetCount(list128, num3); - Span span54 = CollectionsMarshal.AsSpan(list128); - span54[0] = 1334; - span54[1] = 1332; - obj89.InTerritory = list128; - skipConditions12.AetheryteShortcutIf = obj89; - obj88.SkipConditions = skipConditions12; - reference91 = obj88; - ref QuestStep reference92 = ref span52[1]; + List list130 = new List(num3); + CollectionsMarshal.SetCount(list130, num3); + Span span130 = CollectionsMarshal.AsSpan(list130); + index3 = 0; + span130[index3] = 1334; + index3++; + span130[index3] = 1332; + obj89.InTerritory = list130; + skipConditions18.AetheryteShortcutIf = obj89; + obj88.SkipConditions = skipConditions18; + reference90 = obj88; + index2++; + ref QuestStep reference91 = ref span128[index2]; QuestStep obj90 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions13 = new SkipConditions(); - SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - num3 = 1; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - CollectionsMarshal.AsSpan(list129)[0] = 1332; - skipStepConditions11.InTerritory = list129; - skipConditions13.StepIf = skipStepConditions11; - obj90.SkipConditions = skipConditions13; - reference92 = obj90; - span52[2] = new QuestStep(EInteractionType.AcceptQuest, 1056149u, new Vector3(274.6471f, -115.97899f, -460.83777f), 1332); - obj87.Steps = list126; - reference90 = obj87; - ref QuestSequence reference93 = ref span51[1]; + SkipConditions skipConditions19 = new SkipConditions(); + SkipStepConditions skipStepConditions19 = new SkipStepConditions(); + index3 = 1; + List list131 = new List(index3); + CollectionsMarshal.SetCount(list131, index3); + Span span131 = CollectionsMarshal.AsSpan(list131); + num3 = 0; + span131[num3] = 1332; + skipStepConditions19.InTerritory = list131; + skipConditions19.StepIf = skipStepConditions19; + obj90.SkipConditions = skipConditions19; + reference91 = obj90; + index2++; + span128[index2] = new QuestStep(EInteractionType.AcceptQuest, 1056149u, new Vector3(274.6471f, -115.97899f, -460.83777f), 1332); + obj87.Steps = list128; + reference89 = obj87; + num++; + ref QuestSequence reference92 = ref span127[num]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - num2 = 3; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span55 = CollectionsMarshal.AsSpan(list130); - ref QuestStep reference94 = ref span55[0]; + index2 = 3; + List list132 = new List(index2); + CollectionsMarshal.SetCount(list132, index2); + Span span132 = CollectionsMarshal.AsSpan(list132); + num2 = 0; + ref QuestStep reference93 = ref span132[num2]; QuestStep obj92 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions14 = new SkipConditions(); - SkipStepConditions skipStepConditions12 = new SkipStepConditions(); + SkipConditions skipConditions20 = new SkipConditions(); + SkipStepConditions skipStepConditions20 = new SkipStepConditions(); num3 = 2; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span56 = CollectionsMarshal.AsSpan(list131); - span56[0] = 1334; - span56[1] = 1332; - skipStepConditions12.InTerritory = list131; - skipConditions14.StepIf = skipStepConditions12; + List list133 = new List(num3); + CollectionsMarshal.SetCount(list133, num3); + Span span133 = CollectionsMarshal.AsSpan(list133); + index3 = 0; + span133[index3] = 1334; + index3++; + span133[index3] = 1332; + skipStepConditions20.InTerritory = list133; + skipConditions20.StepIf = skipStepConditions20; SkipAetheryteCondition obj93 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 2; - List list132 = new List(num3); - CollectionsMarshal.SetCount(list132, num3); - Span span57 = CollectionsMarshal.AsSpan(list132); - span57[0] = 1334; - span57[1] = 1332; - obj93.InTerritory = list132; - skipConditions14.AetheryteShortcutIf = obj93; - obj92.SkipConditions = skipConditions14; - reference94 = obj92; - ref QuestStep reference95 = ref span55[1]; + index3 = 2; + List list134 = new List(index3); + CollectionsMarshal.SetCount(list134, index3); + Span span134 = CollectionsMarshal.AsSpan(list134); + num3 = 0; + span134[num3] = 1334; + num3++; + span134[num3] = 1332; + obj93.InTerritory = list134; + skipConditions20.AetheryteShortcutIf = obj93; + obj92.SkipConditions = skipConditions20; + reference93 = obj92; + num2++; + ref QuestStep reference94 = ref span132[num2]; QuestStep obj94 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions15 = new SkipConditions(); - SkipStepConditions skipStepConditions13 = new SkipStepConditions(); + SkipConditions skipConditions21 = new SkipConditions(); + SkipStepConditions skipStepConditions21 = new SkipStepConditions(); num3 = 1; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - CollectionsMarshal.AsSpan(list133)[0] = 1332; - skipStepConditions13.InTerritory = list133; - skipConditions15.StepIf = skipStepConditions13; - obj94.SkipConditions = skipConditions15; - reference95 = obj94; - ref QuestStep reference96 = ref span55[2]; - QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1056159u, new Vector3(273.67053f, -115.97899f, -458.3963f), 1332); - num3 = 1; - List list134 = new List(num3); - CollectionsMarshal.SetCount(list134, num3); - CollectionsMarshal.AsSpan(list134)[0] = new DialogueChoice - { - Type = EDialogChoiceType.List, - Prompt = new ExcelRef("TEXT_KINGMJ104_05429_Q1_000_032"), - Answer = new ExcelRef("TEXT_KINGMJ104_05429_A1_000_001") - }; - questStep12.DialogueChoices = list134; - reference96 = questStep12; - obj91.Steps = list130; - reference93 = obj91; - ref QuestSequence reference97 = ref span51[2]; + List list135 = new List(num3); + CollectionsMarshal.SetCount(list135, num3); + Span span135 = CollectionsMarshal.AsSpan(list135); + index3 = 0; + span135[index3] = 1332; + skipStepConditions21.InTerritory = list135; + skipConditions21.StepIf = skipStepConditions21; + obj94.SkipConditions = skipConditions21; + reference94 = obj94; + num2++; + span132[num2] = new QuestStep(EInteractionType.Interact, 1056165u, new Vector3(245.89917f, -116.025f, -533.71484f), 1332); + obj91.Steps = list132; + reference92 = obj91; + num++; + ref QuestSequence reference95 = ref span127[num]; QuestSequence obj95 = new QuestSequence { Sequence = 2 }; - num2 = 5; - List list135 = new List(num2); - CollectionsMarshal.SetCount(list135, num2); - Span span58 = CollectionsMarshal.AsSpan(list135); - ref QuestStep reference98 = ref span58[0]; + num2 = 3; + List list136 = new List(num2); + CollectionsMarshal.SetCount(list136, num2); + Span span136 = CollectionsMarshal.AsSpan(list136); + index2 = 0; + ref QuestStep reference96 = ref span136[index2]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions16 = new SkipConditions(); - SkipStepConditions skipStepConditions14 = new SkipStepConditions(); - num3 = 2; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span59 = CollectionsMarshal.AsSpan(list136); - span59[0] = 1334; - span59[1] = 1332; - skipStepConditions14.InTerritory = list136; - skipConditions16.StepIf = skipStepConditions14; + SkipConditions skipConditions22 = new SkipConditions(); + SkipStepConditions skipStepConditions22 = new SkipStepConditions(); + index3 = 2; + List list137 = new List(index3); + CollectionsMarshal.SetCount(list137, index3); + Span span137 = CollectionsMarshal.AsSpan(list137); + num3 = 0; + span137[num3] = 1334; + num3++; + span137[num3] = 1332; + skipStepConditions22.InTerritory = list137; + skipConditions22.StepIf = skipStepConditions22; SkipAetheryteCondition obj97 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 2; - List list137 = new List(num3); - CollectionsMarshal.SetCount(list137, num3); - Span span60 = CollectionsMarshal.AsSpan(list137); - span60[0] = 1334; - span60[1] = 1332; - obj97.InTerritory = list137; - skipConditions16.AetheryteShortcutIf = obj97; - obj96.SkipConditions = skipConditions16; - reference98 = obj96; - ref QuestStep reference99 = ref span58[1]; + List list138 = new List(num3); + CollectionsMarshal.SetCount(list138, num3); + Span span138 = CollectionsMarshal.AsSpan(list138); + index3 = 0; + span138[index3] = 1334; + index3++; + span138[index3] = 1332; + obj97.InTerritory = list138; + skipConditions22.AetheryteShortcutIf = obj97; + obj96.SkipConditions = skipConditions22; + reference96 = obj96; + index2++; + ref QuestStep reference97 = ref span136[index2]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions17 = new SkipConditions(); - SkipStepConditions skipStepConditions15 = new SkipStepConditions(); - num3 = 1; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - CollectionsMarshal.AsSpan(list138)[0] = 1332; - skipStepConditions15.InTerritory = list138; - skipConditions17.StepIf = skipStepConditions15; - obj98.SkipConditions = skipConditions17; - reference99 = obj98; - ref QuestStep reference100 = ref span58[2]; - QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1056152u, new Vector3(246.3263f, -115.9987f, -389.57812f), 1332); - num3 = 6; - List list139 = new List(num3); - CollectionsMarshal.SetCount(list139, num3); - Span span61 = CollectionsMarshal.AsSpan(list139); - span61[0] = null; - span61[1] = null; - span61[2] = null; - span61[3] = null; - span61[4] = null; - span61[5] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); - questStep13.CompletionQuestVariablesFlags = list139; - reference100 = questStep13; - ref QuestStep reference101 = ref span58[3]; - QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1056153u, new Vector3(219.25684f, -115.53908f, -402.7619f), 1332); - num3 = 6; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - Span span62 = CollectionsMarshal.AsSpan(list140); - span62[0] = null; - span62[1] = null; - span62[2] = null; - span62[3] = null; - span62[4] = null; - span62[5] = new QuestWorkValue((byte)12, null, EQuestWorkMode.Bitwise); - questStep14.CompletionQuestVariablesFlags = list140; - reference101 = questStep14; - span58[4] = new QuestStep(EInteractionType.Interact, 1056154u, new Vector3(193.86584f, -115.92868f, -388.99823f), 1332); - obj95.Steps = list135; - reference97 = obj95; - ref QuestSequence reference102 = ref span51[3]; + SkipConditions skipConditions23 = new SkipConditions(); + SkipStepConditions skipStepConditions23 = new SkipStepConditions(); + index3 = 1; + List list139 = new List(index3); + CollectionsMarshal.SetCount(list139, index3); + Span span139 = CollectionsMarshal.AsSpan(list139); + num3 = 0; + span139[num3] = 1332; + skipStepConditions23.InTerritory = list139; + skipConditions23.StepIf = skipStepConditions23; + obj98.SkipConditions = skipConditions23; + reference97 = obj98; + index2++; + span136[index2] = new QuestStep(EInteractionType.Interact, 1056165u, new Vector3(245.89917f, -116.025f, -533.71484f), 1332); + obj95.Steps = list136; + reference95 = obj95; + num++; + ref QuestSequence reference98 = ref span127[num]; QuestSequence obj99 = new QuestSequence { - Sequence = byte.MaxValue + Sequence = 3 }; - num2 = 3; - List list141 = new List(num2); - CollectionsMarshal.SetCount(list141, num2); - Span span63 = CollectionsMarshal.AsSpan(list141); - ref QuestStep reference103 = ref span63[0]; + index2 = 3; + List list140 = new List(index2); + CollectionsMarshal.SetCount(list140, index2); + Span span140 = CollectionsMarshal.AsSpan(list140); + num2 = 0; + ref QuestStep reference99 = ref span140[num2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions18 = new SkipConditions(); - SkipStepConditions skipStepConditions16 = new SkipStepConditions(); + SkipConditions skipConditions24 = new SkipConditions(); + SkipStepConditions skipStepConditions24 = new SkipStepConditions(); num3 = 2; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span64 = CollectionsMarshal.AsSpan(list142); - span64[0] = 1334; - span64[1] = 1332; - skipStepConditions16.InTerritory = list142; - skipConditions18.StepIf = skipStepConditions16; + List list141 = new List(num3); + CollectionsMarshal.SetCount(list141, num3); + Span span141 = CollectionsMarshal.AsSpan(list141); + index3 = 0; + span141[index3] = 1334; + index3++; + span141[index3] = 1332; + skipStepConditions24.InTerritory = list141; + skipConditions24.StepIf = skipStepConditions24; SkipAetheryteCondition obj101 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 2; - List list143 = new List(num3); - CollectionsMarshal.SetCount(list143, num3); - Span span65 = CollectionsMarshal.AsSpan(list143); - span65[0] = 1334; - span65[1] = 1332; - obj101.InTerritory = list143; - skipConditions18.AetheryteShortcutIf = obj101; - obj100.SkipConditions = skipConditions18; - reference103 = obj100; - ref QuestStep reference104 = ref span63[1]; + index3 = 2; + List list142 = new List(index3); + CollectionsMarshal.SetCount(list142, index3); + Span span142 = CollectionsMarshal.AsSpan(list142); + num3 = 0; + span142[num3] = 1334; + num3++; + span142[num3] = 1332; + obj101.InTerritory = list142; + skipConditions24.AetheryteShortcutIf = obj101; + obj100.SkipConditions = skipConditions24; + reference99 = obj100; + num2++; + ref QuestStep reference100 = ref span140[num2]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions19 = new SkipConditions(); - SkipStepConditions skipStepConditions17 = new SkipStepConditions(); + SkipConditions skipConditions25 = new SkipConditions(); + SkipStepConditions skipStepConditions25 = new SkipStepConditions(); num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - CollectionsMarshal.AsSpan(list144)[0] = 1332; - skipStepConditions17.InTerritory = list144; - skipConditions19.StepIf = skipStepConditions17; - obj102.SkipConditions = skipConditions19; - reference104 = obj102; - span63[2] = new QuestStep(EInteractionType.CompleteQuest, 1056159u, new Vector3(273.67053f, -115.97899f, -458.3963f), 1332); - obj99.Steps = list141; - reference102 = obj99; - questRoot14.QuestSequence = list125; - AddQuest(questId14, questRoot14); - QuestId questId15 = new QuestId(5430); - QuestRoot questRoot15 = new QuestRoot(); - num = 1; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - CollectionsMarshal.AsSpan(list145)[0] = "WigglyMuffin"; - questRoot15.Author = list145; - num = 8; - List list146 = new List(num); - CollectionsMarshal.SetCount(list146, num); - Span span66 = CollectionsMarshal.AsSpan(list146); - ref QuestSequence reference105 = ref span66[0]; + List list143 = new List(num3); + CollectionsMarshal.SetCount(list143, num3); + Span span143 = CollectionsMarshal.AsSpan(list143); + index3 = 0; + span143[index3] = 1332; + skipStepConditions25.InTerritory = list143; + skipConditions25.StepIf = skipStepConditions25; + obj102.SkipConditions = skipConditions25; + reference100 = obj102; + num2++; + span140[num2] = new QuestStep(EInteractionType.Interact, 2015170u, new Vector3(246.3972f, -118.5233f, -455.0817f), 1332); + obj99.Steps = list140; + reference98 = obj99; + num++; + ref QuestSequence reference101 = ref span127[num]; QuestSequence obj103 = new QuestSequence { - Sequence = 0 + Sequence = 4 }; num2 = 3; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - Span span67 = CollectionsMarshal.AsSpan(list147); - ref QuestStep reference106 = ref span67[0]; + List list144 = new List(num2); + CollectionsMarshal.SetCount(list144, num2); + Span span144 = CollectionsMarshal.AsSpan(list144); + index2 = 0; + ref QuestStep reference102 = ref span144[index2]; QuestStep obj104 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions20 = new SkipConditions(); - SkipStepConditions skipStepConditions18 = new SkipStepConditions(); - num3 = 2; - List list148 = new List(num3); - CollectionsMarshal.SetCount(list148, num3); - Span span68 = CollectionsMarshal.AsSpan(list148); - span68[0] = 1334; - span68[1] = 1332; - skipStepConditions18.InTerritory = list148; - skipConditions20.StepIf = skipStepConditions18; + SkipConditions skipConditions26 = new SkipConditions(); + SkipStepConditions skipStepConditions26 = new SkipStepConditions(); + index3 = 2; + List list145 = new List(index3); + CollectionsMarshal.SetCount(list145, index3); + Span span145 = CollectionsMarshal.AsSpan(list145); + num3 = 0; + span145[num3] = 1334; + num3++; + span145[num3] = 1332; + skipStepConditions26.InTerritory = list145; + skipConditions26.StepIf = skipStepConditions26; SkipAetheryteCondition obj105 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 2; - List list149 = new List(num3); - CollectionsMarshal.SetCount(list149, num3); - Span span69 = CollectionsMarshal.AsSpan(list149); - span69[0] = 1334; - span69[1] = 1332; - obj105.InTerritory = list149; - skipConditions20.AetheryteShortcutIf = obj105; - obj104.SkipConditions = skipConditions20; - reference106 = obj104; - ref QuestStep reference107 = ref span67[1]; + List list146 = new List(num3); + CollectionsMarshal.SetCount(list146, num3); + Span span146 = CollectionsMarshal.AsSpan(list146); + index3 = 0; + span146[index3] = 1334; + index3++; + span146[index3] = 1332; + obj105.InTerritory = list146; + skipConditions26.AetheryteShortcutIf = obj105; + obj104.SkipConditions = skipConditions26; + reference102 = obj104; + index2++; + ref QuestStep reference103 = ref span144[index2]; QuestStep obj106 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions21 = new SkipConditions(); - SkipStepConditions skipStepConditions19 = new SkipStepConditions(); - num3 = 1; - List list150 = new List(num3); - CollectionsMarshal.SetCount(list150, num3); - CollectionsMarshal.AsSpan(list150)[0] = 1332; - skipStepConditions19.InTerritory = list150; - skipConditions21.StepIf = skipStepConditions19; - obj106.SkipConditions = skipConditions21; - reference107 = obj106; - span67[2] = new QuestStep(EInteractionType.AcceptQuest, 1056149u, new Vector3(274.6471f, -115.97899f, -460.83777f), 1332); - obj103.Steps = list147; - reference105 = obj103; - ref QuestSequence reference108 = ref span66[1]; + SkipConditions skipConditions27 = new SkipConditions(); + SkipStepConditions skipStepConditions27 = new SkipStepConditions(); + index3 = 1; + List list147 = new List(index3); + CollectionsMarshal.SetCount(list147, index3); + Span span147 = CollectionsMarshal.AsSpan(list147); + num3 = 0; + span147[num3] = 1332; + skipStepConditions27.InTerritory = list147; + skipConditions27.StepIf = skipStepConditions27; + obj106.SkipConditions = skipConditions27; + reference103 = obj106; + index2++; + span144[index2] = new QuestStep(EInteractionType.Interact, 2015171u, new Vector3(275.1151f, -115.979f, -433.4405f), 1332); + obj103.Steps = list144; + reference101 = obj103; + num++; + ref QuestSequence reference104 = ref span127[num]; QuestSequence obj107 = new QuestSequence { - Sequence = 1 + Sequence = 5 }; - num2 = 3; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - Span span70 = CollectionsMarshal.AsSpan(list151); - ref QuestStep reference109 = ref span70[0]; + index2 = 3; + List list148 = new List(index2); + CollectionsMarshal.SetCount(list148, index2); + Span span148 = CollectionsMarshal.AsSpan(list148); + num2 = 0; + ref QuestStep reference105 = ref span148[num2]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions22 = new SkipConditions(); - SkipStepConditions skipStepConditions20 = new SkipStepConditions(); + SkipConditions skipConditions28 = new SkipConditions(); + SkipStepConditions skipStepConditions28 = new SkipStepConditions(); num3 = 2; - List list152 = new List(num3); - CollectionsMarshal.SetCount(list152, num3); - Span span71 = CollectionsMarshal.AsSpan(list152); - span71[0] = 1334; - span71[1] = 1332; - skipStepConditions20.InTerritory = list152; - skipConditions22.StepIf = skipStepConditions20; + List list149 = new List(num3); + CollectionsMarshal.SetCount(list149, num3); + Span span149 = CollectionsMarshal.AsSpan(list149); + index3 = 0; + span149[index3] = 1334; + index3++; + span149[index3] = 1332; + skipStepConditions28.InTerritory = list149; + skipConditions28.StepIf = skipStepConditions28; SkipAetheryteCondition obj109 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 2; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - Span span72 = CollectionsMarshal.AsSpan(list153); - span72[0] = 1334; - span72[1] = 1332; - obj109.InTerritory = list153; - skipConditions22.AetheryteShortcutIf = obj109; - obj108.SkipConditions = skipConditions22; - reference109 = obj108; - ref QuestStep reference110 = ref span70[1]; + index3 = 2; + List list150 = new List(index3); + CollectionsMarshal.SetCount(list150, index3); + Span span150 = CollectionsMarshal.AsSpan(list150); + num3 = 0; + span150[num3] = 1334; + num3++; + span150[num3] = 1332; + obj109.InTerritory = list150; + skipConditions28.AetheryteShortcutIf = obj109; + obj108.SkipConditions = skipConditions28; + reference105 = obj108; + num2++; + ref QuestStep reference106 = ref span148[num2]; QuestStep obj110 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions23 = new SkipConditions(); - SkipStepConditions skipStepConditions21 = new SkipStepConditions(); + SkipConditions skipConditions29 = new SkipConditions(); + SkipStepConditions skipStepConditions29 = new SkipStepConditions(); num3 = 1; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - CollectionsMarshal.AsSpan(list154)[0] = 1332; - skipStepConditions21.InTerritory = list154; - skipConditions23.StepIf = skipStepConditions21; - obj110.SkipConditions = skipConditions23; - reference110 = obj110; - span70[2] = new QuestStep(EInteractionType.Interact, 1056165u, new Vector3(245.89917f, -116.025f, -533.71484f), 1332); - obj107.Steps = list151; - reference108 = obj107; - ref QuestSequence reference111 = ref span66[2]; + List list151 = new List(num3); + CollectionsMarshal.SetCount(list151, num3); + Span span151 = CollectionsMarshal.AsSpan(list151); + index3 = 0; + span151[index3] = 1332; + skipStepConditions29.InTerritory = list151; + skipConditions29.StepIf = skipStepConditions29; + obj110.SkipConditions = skipConditions29; + reference106 = obj110; + num2++; + span148[num2] = new QuestStep(EInteractionType.Interact, 2015172u, new Vector3(267.0141f, -116.05f, -394.9687f), 1332); + obj107.Steps = list148; + reference104 = obj107; + num++; + ref QuestSequence reference107 = ref span127[num]; QuestSequence obj111 = new QuestSequence { - Sequence = 2 + Sequence = 6 }; - num2 = 3; - List list155 = new List(num2); - CollectionsMarshal.SetCount(list155, num2); - Span span73 = CollectionsMarshal.AsSpan(list155); - ref QuestStep reference112 = ref span73[0]; + num2 = 5; + List list152 = new List(num2); + CollectionsMarshal.SetCount(list152, num2); + Span span152 = CollectionsMarshal.AsSpan(list152); + index2 = 0; + ref QuestStep reference108 = ref span152[index2]; QuestStep obj112 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions24 = new SkipConditions(); - SkipStepConditions skipStepConditions22 = new SkipStepConditions(); - num3 = 2; - List list156 = new List(num3); - CollectionsMarshal.SetCount(list156, num3); - Span span74 = CollectionsMarshal.AsSpan(list156); - span74[0] = 1334; - span74[1] = 1332; - skipStepConditions22.InTerritory = list156; - skipConditions24.StepIf = skipStepConditions22; + SkipConditions skipConditions30 = new SkipConditions(); + SkipStepConditions skipStepConditions30 = new SkipStepConditions(); + index3 = 2; + List list153 = new List(index3); + CollectionsMarshal.SetCount(list153, index3); + Span span153 = CollectionsMarshal.AsSpan(list153); + num3 = 0; + span153[num3] = 1334; + num3++; + span153[num3] = 1332; + skipStepConditions30.InTerritory = list153; + skipConditions30.StepIf = skipStepConditions30; SkipAetheryteCondition obj113 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 2; - List list157 = new List(num3); - CollectionsMarshal.SetCount(list157, num3); - Span span75 = CollectionsMarshal.AsSpan(list157); - span75[0] = 1334; - span75[1] = 1332; - obj113.InTerritory = list157; - skipConditions24.AetheryteShortcutIf = obj113; - obj112.SkipConditions = skipConditions24; - reference112 = obj112; - ref QuestStep reference113 = ref span73[1]; + List list154 = new List(num3); + CollectionsMarshal.SetCount(list154, num3); + Span span154 = CollectionsMarshal.AsSpan(list154); + index3 = 0; + span154[index3] = 1334; + index3++; + span154[index3] = 1332; + obj113.InTerritory = list154; + skipConditions30.AetheryteShortcutIf = obj113; + obj112.SkipConditions = skipConditions30; + reference108 = obj112; + index2++; + ref QuestStep reference109 = ref span152[index2]; QuestStep obj114 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions25 = new SkipConditions(); - SkipStepConditions skipStepConditions23 = new SkipStepConditions(); - num3 = 1; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - CollectionsMarshal.AsSpan(list158)[0] = 1332; - skipStepConditions23.InTerritory = list158; - skipConditions25.StepIf = skipStepConditions23; - obj114.SkipConditions = skipConditions25; - reference113 = obj114; - span73[2] = new QuestStep(EInteractionType.Interact, 1056165u, new Vector3(245.89917f, -116.025f, -533.71484f), 1332); - obj111.Steps = list155; - reference111 = obj111; - ref QuestSequence reference114 = ref span66[3]; - QuestSequence obj115 = new QuestSequence - { - Sequence = 3 - }; - num2 = 3; - List list159 = new List(num2); - CollectionsMarshal.SetCount(list159, num2); - Span span76 = CollectionsMarshal.AsSpan(list159); - ref QuestStep reference115 = ref span76[0]; - QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions26 = new SkipConditions(); - SkipStepConditions skipStepConditions24 = new SkipStepConditions(); - num3 = 2; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - Span span77 = CollectionsMarshal.AsSpan(list160); - span77[0] = 1334; - span77[1] = 1332; - skipStepConditions24.InTerritory = list160; - skipConditions26.StepIf = skipStepConditions24; - SkipAetheryteCondition obj117 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list161 = new List(num3); - CollectionsMarshal.SetCount(list161, num3); - Span span78 = CollectionsMarshal.AsSpan(list161); - span78[0] = 1334; - span78[1] = 1332; - obj117.InTerritory = list161; - skipConditions26.AetheryteShortcutIf = obj117; - obj116.SkipConditions = skipConditions26; - reference115 = obj116; - ref QuestStep reference116 = ref span76[1]; - QuestStep obj118 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions27 = new SkipConditions(); - SkipStepConditions skipStepConditions25 = new SkipStepConditions(); - num3 = 1; - List list162 = new List(num3); - CollectionsMarshal.SetCount(list162, num3); - CollectionsMarshal.AsSpan(list162)[0] = 1332; - skipStepConditions25.InTerritory = list162; - skipConditions27.StepIf = skipStepConditions25; - obj118.SkipConditions = skipConditions27; - reference116 = obj118; - span76[2] = new QuestStep(EInteractionType.Interact, 2015170u, new Vector3(246.3972f, -118.5233f, -455.0817f), 1332); - obj115.Steps = list159; - reference114 = obj115; - ref QuestSequence reference117 = ref span66[4]; - QuestSequence obj119 = new QuestSequence - { - Sequence = 4 - }; - num2 = 3; - List list163 = new List(num2); - CollectionsMarshal.SetCount(list163, num2); - Span span79 = CollectionsMarshal.AsSpan(list163); - ref QuestStep reference118 = ref span79[0]; - QuestStep obj120 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions28 = new SkipConditions(); - SkipStepConditions skipStepConditions26 = new SkipStepConditions(); - num3 = 2; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - Span span80 = CollectionsMarshal.AsSpan(list164); - span80[0] = 1334; - span80[1] = 1332; - skipStepConditions26.InTerritory = list164; - skipConditions28.StepIf = skipStepConditions26; - SkipAetheryteCondition obj121 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - Span span81 = CollectionsMarshal.AsSpan(list165); - span81[0] = 1334; - span81[1] = 1332; - obj121.InTerritory = list165; - skipConditions28.AetheryteShortcutIf = obj121; - obj120.SkipConditions = skipConditions28; - reference118 = obj120; - ref QuestStep reference119 = ref span79[1]; - QuestStep obj122 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions29 = new SkipConditions(); - SkipStepConditions skipStepConditions27 = new SkipStepConditions(); - num3 = 1; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - CollectionsMarshal.AsSpan(list166)[0] = 1332; - skipStepConditions27.InTerritory = list166; - skipConditions29.StepIf = skipStepConditions27; - obj122.SkipConditions = skipConditions29; - reference119 = obj122; - span79[2] = new QuestStep(EInteractionType.Interact, 2015171u, new Vector3(275.1151f, -115.979f, -433.4405f), 1332); - obj119.Steps = list163; - reference117 = obj119; - ref QuestSequence reference120 = ref span66[5]; - QuestSequence obj123 = new QuestSequence - { - Sequence = 5 - }; - num2 = 3; - List list167 = new List(num2); - CollectionsMarshal.SetCount(list167, num2); - Span span82 = CollectionsMarshal.AsSpan(list167); - ref QuestStep reference121 = ref span82[0]; - QuestStep obj124 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions30 = new SkipConditions(); - SkipStepConditions skipStepConditions28 = new SkipStepConditions(); - num3 = 2; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - Span span83 = CollectionsMarshal.AsSpan(list168); - span83[0] = 1334; - span83[1] = 1332; - skipStepConditions28.InTerritory = list168; - skipConditions30.StepIf = skipStepConditions28; - SkipAetheryteCondition obj125 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - Span span84 = CollectionsMarshal.AsSpan(list169); - span84[0] = 1334; - span84[1] = 1332; - obj125.InTerritory = list169; - skipConditions30.AetheryteShortcutIf = obj125; - obj124.SkipConditions = skipConditions30; - reference121 = obj124; - ref QuestStep reference122 = ref span82[1]; - QuestStep obj126 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; SkipConditions skipConditions31 = new SkipConditions(); - SkipStepConditions skipStepConditions29 = new SkipStepConditions(); - num3 = 1; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - CollectionsMarshal.AsSpan(list170)[0] = 1332; - skipStepConditions29.InTerritory = list170; - skipConditions31.StepIf = skipStepConditions29; - obj126.SkipConditions = skipConditions31; - reference122 = obj126; - span82[2] = new QuestStep(EInteractionType.Interact, 2015172u, new Vector3(267.0141f, -116.05f, -394.9687f), 1332); - obj123.Steps = list167; - reference120 = obj123; - ref QuestSequence reference123 = ref span66[6]; - QuestSequence obj127 = new QuestSequence + SkipStepConditions skipStepConditions31 = new SkipStepConditions(); + index3 = 1; + List list155 = new List(index3); + CollectionsMarshal.SetCount(list155, index3); + Span span155 = CollectionsMarshal.AsSpan(list155); + num3 = 0; + span155[num3] = 1332; + skipStepConditions31.InTerritory = list155; + skipConditions31.StepIf = skipStepConditions31; + obj114.SkipConditions = skipConditions31; + reference109 = obj114; + index2++; + ref QuestStep reference110 = ref span152[index2]; + QuestStep obj115 = new QuestStep(EInteractionType.UseItem, 1056483u, new Vector3(236.04175f, -113.757126f, -352.92596f), 1332) { - Sequence = 6 + ItemId = 2003804u, + GroundTarget = true }; - num2 = 5; - List list171 = new List(num2); - CollectionsMarshal.SetCount(list171, num2); - Span span85 = CollectionsMarshal.AsSpan(list171); - ref QuestStep reference124 = ref span85[0]; - QuestStep obj128 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + num3 = 6; + List list156 = new List(num3); + CollectionsMarshal.SetCount(list156, num3); + Span span156 = CollectionsMarshal.AsSpan(list156); + index3 = 0; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = null; + index3++; + span156[index3] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + obj115.CompletionQuestVariablesFlags = list156; + reference110 = obj115; + index2++; + ref QuestStep reference111 = ref span152[index2]; + QuestStep obj116 = new QuestStep(EInteractionType.UseItem, 1056482u, new Vector3(209.09436f, -115.990005f, -411.64264f), 1332) + { + ItemId = 2003804u, + GroundTarget = true + }; + index3 = 6; + List list157 = new List(index3); + CollectionsMarshal.SetCount(list157, index3); + Span span157 = CollectionsMarshal.AsSpan(list157); + num3 = 0; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = null; + num3++; + span157[num3] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); + obj116.CompletionQuestVariablesFlags = list157; + reference111 = obj116; + index2++; + span152[index2] = new QuestStep(EInteractionType.UseItem, 1056481u, new Vector3(194.23206f, -115.99002f, -415.76257f), 1332) + { + ItemId = 2003804u, + GroundTarget = true + }; + obj111.Steps = list152; + reference107 = obj111; + num++; + ref QuestSequence reference112 = ref span127[num]; + QuestSequence obj117 = new QuestSequence + { + Sequence = byte.MaxValue + }; + index2 = 3; + List list158 = new List(index2); + CollectionsMarshal.SetCount(list158, index2); + Span span158 = CollectionsMarshal.AsSpan(list158); + num2 = 0; + ref QuestStep reference113 = ref span158[num2]; + QuestStep obj118 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; SkipConditions skipConditions32 = new SkipConditions(); - SkipStepConditions skipStepConditions30 = new SkipStepConditions(); + SkipStepConditions skipStepConditions32 = new SkipStepConditions(); num3 = 2; - List list172 = new List(num3); - CollectionsMarshal.SetCount(list172, num3); - Span span86 = CollectionsMarshal.AsSpan(list172); - span86[0] = 1334; - span86[1] = 1332; - skipStepConditions30.InTerritory = list172; - skipConditions32.StepIf = skipStepConditions30; - SkipAetheryteCondition obj129 = new SkipAetheryteCondition + List list159 = new List(num3); + CollectionsMarshal.SetCount(list159, num3); + Span span159 = CollectionsMarshal.AsSpan(list159); + index3 = 0; + span159[index3] = 1334; + index3++; + span159[index3] = 1332; + skipStepConditions32.InTerritory = list159; + skipConditions32.StepIf = skipStepConditions32; + SkipAetheryteCondition obj119 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 2; - List list173 = new List(num3); - CollectionsMarshal.SetCount(list173, num3); - Span span87 = CollectionsMarshal.AsSpan(list173); - span87[0] = 1334; - span87[1] = 1332; - obj129.InTerritory = list173; - skipConditions32.AetheryteShortcutIf = obj129; - obj128.SkipConditions = skipConditions32; - reference124 = obj128; - ref QuestStep reference125 = ref span85[1]; - QuestStep obj130 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + index3 = 2; + List list160 = new List(index3); + CollectionsMarshal.SetCount(list160, index3); + Span span160 = CollectionsMarshal.AsSpan(list160); + num3 = 0; + span160[num3] = 1334; + num3++; + span160[num3] = 1332; + obj119.InTerritory = list160; + skipConditions32.AetheryteShortcutIf = obj119; + obj118.SkipConditions = skipConditions32; + reference113 = obj118; + num2++; + ref QuestStep reference114 = ref span158[num2]; + QuestStep obj120 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; SkipConditions skipConditions33 = new SkipConditions(); - SkipStepConditions skipStepConditions31 = new SkipStepConditions(); + SkipStepConditions skipStepConditions33 = new SkipStepConditions(); num3 = 1; - List list174 = new List(num3); - CollectionsMarshal.SetCount(list174, num3); - CollectionsMarshal.AsSpan(list174)[0] = 1332; - skipStepConditions31.InTerritory = list174; - skipConditions33.StepIf = skipStepConditions31; - obj130.SkipConditions = skipConditions33; - reference125 = obj130; - ref QuestStep reference126 = ref span85[2]; - QuestStep obj131 = new QuestStep(EInteractionType.UseItem, 1056483u, new Vector3(236.04175f, -113.757126f, -352.92596f), 1332) + List list161 = new List(num3); + CollectionsMarshal.SetCount(list161, num3); + Span span161 = CollectionsMarshal.AsSpan(list161); + index3 = 0; + span161[index3] = 1332; + skipStepConditions33.InTerritory = list161; + skipConditions33.StepIf = skipStepConditions33; + obj120.SkipConditions = skipConditions33; + reference114 = obj120; + num2++; + span158[num2] = new QuestStep(EInteractionType.CompleteQuest, 1056165u, new Vector3(245.89917f, -116.025f, -533.71484f), 1332); + obj117.Steps = list158; + reference112 = obj117; + questRoot14.QuestSequence = list127; + AddQuest(questId14, questRoot14); + QuestId questId15 = new QuestId(5431); + QuestRoot questRoot15 = new QuestRoot(); + num = 1; + List list162 = new List(num); + CollectionsMarshal.SetCount(list162, num); + Span span162 = CollectionsMarshal.AsSpan(list162); + index = 0; + span162[index] = "WigglyMuffin"; + questRoot15.Author = list162; + index = 6; + List list163 = new List(index); + CollectionsMarshal.SetCount(list163, index); + Span span163 = CollectionsMarshal.AsSpan(list163); + num = 0; + ref QuestSequence reference115 = ref span163[num]; + QuestSequence obj121 = new QuestSequence { - ItemId = 2003804u, - GroundTarget = true - }; - num3 = 6; - List list175 = new List(num3); - CollectionsMarshal.SetCount(list175, num3); - Span span88 = CollectionsMarshal.AsSpan(list175); - span88[0] = null; - span88[1] = null; - span88[2] = null; - span88[3] = null; - span88[4] = null; - span88[5] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); - obj131.CompletionQuestVariablesFlags = list175; - reference126 = obj131; - ref QuestStep reference127 = ref span85[3]; - QuestStep obj132 = new QuestStep(EInteractionType.UseItem, 1056482u, new Vector3(209.09436f, -115.990005f, -411.64264f), 1332) - { - ItemId = 2003804u, - GroundTarget = true - }; - num3 = 6; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - Span span89 = CollectionsMarshal.AsSpan(list176); - span89[0] = null; - span89[1] = null; - span89[2] = null; - span89[3] = null; - span89[4] = null; - span89[5] = new QuestWorkValue((byte)6, null, EQuestWorkMode.Bitwise); - obj132.CompletionQuestVariablesFlags = list176; - reference127 = obj132; - span85[4] = new QuestStep(EInteractionType.UseItem, 1056481u, new Vector3(194.23206f, -115.99002f, -415.76257f), 1332) - { - ItemId = 2003804u, - GroundTarget = true - }; - obj127.Steps = list171; - reference123 = obj127; - ref QuestSequence reference128 = ref span66[7]; - QuestSequence obj133 = new QuestSequence - { - Sequence = byte.MaxValue + Sequence = 0 }; num2 = 3; - List list177 = new List(num2); - CollectionsMarshal.SetCount(list177, num2); - Span span90 = CollectionsMarshal.AsSpan(list177); - ref QuestStep reference129 = ref span90[0]; - QuestStep obj134 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + List list164 = new List(num2); + CollectionsMarshal.SetCount(list164, num2); + Span span164 = CollectionsMarshal.AsSpan(list164); + index2 = 0; + ref QuestStep reference116 = ref span164[index2]; + QuestStep obj122 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; SkipConditions skipConditions34 = new SkipConditions(); - SkipStepConditions skipStepConditions32 = new SkipStepConditions(); - num3 = 2; - List list178 = new List(num3); - CollectionsMarshal.SetCount(list178, num3); - Span span91 = CollectionsMarshal.AsSpan(list178); - span91[0] = 1334; - span91[1] = 1332; - skipStepConditions32.InTerritory = list178; - skipConditions34.StepIf = skipStepConditions32; - SkipAetheryteCondition obj135 = new SkipAetheryteCondition + SkipStepConditions skipStepConditions34 = new SkipStepConditions(); + index3 = 2; + List list165 = new List(index3); + CollectionsMarshal.SetCount(list165, index3); + Span span165 = CollectionsMarshal.AsSpan(list165); + num3 = 0; + span165[num3] = 1334; + num3++; + span165[num3] = 1332; + skipStepConditions34.InTerritory = list165; + skipConditions34.StepIf = skipStepConditions34; + SkipAetheryteCondition obj123 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 2; - List list179 = new List(num3); - CollectionsMarshal.SetCount(list179, num3); - Span span92 = CollectionsMarshal.AsSpan(list179); - span92[0] = 1334; - span92[1] = 1332; - obj135.InTerritory = list179; - skipConditions34.AetheryteShortcutIf = obj135; - obj134.SkipConditions = skipConditions34; - reference129 = obj134; - ref QuestStep reference130 = ref span90[1]; - QuestStep obj136 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + List list166 = new List(num3); + CollectionsMarshal.SetCount(list166, num3); + Span span166 = CollectionsMarshal.AsSpan(list166); + index3 = 0; + span166[index3] = 1334; + index3++; + span166[index3] = 1332; + obj123.InTerritory = list166; + skipConditions34.AetheryteShortcutIf = obj123; + obj122.SkipConditions = skipConditions34; + reference116 = obj122; + index2++; + ref QuestStep reference117 = ref span164[index2]; + QuestStep obj124 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; SkipConditions skipConditions35 = new SkipConditions(); - SkipStepConditions skipStepConditions33 = new SkipStepConditions(); - num3 = 1; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - CollectionsMarshal.AsSpan(list180)[0] = 1332; - skipStepConditions33.InTerritory = list180; - skipConditions35.StepIf = skipStepConditions33; - obj136.SkipConditions = skipConditions35; - reference130 = obj136; - span90[2] = new QuestStep(EInteractionType.CompleteQuest, 1056165u, new Vector3(245.89917f, -116.025f, -533.71484f), 1332); - obj133.Steps = list177; - reference128 = obj133; - questRoot15.QuestSequence = list146; - AddQuest(questId15, questRoot15); - QuestId questId16 = new QuestId(5431); - QuestRoot questRoot16 = new QuestRoot(); - num = 1; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - CollectionsMarshal.AsSpan(list181)[0] = "WigglyMuffin"; - questRoot16.Author = list181; - num = 6; - List list182 = new List(num); - CollectionsMarshal.SetCount(list182, num); - Span span93 = CollectionsMarshal.AsSpan(list182); - ref QuestSequence reference131 = ref span93[0]; - QuestSequence obj137 = new QuestSequence + SkipStepConditions skipStepConditions35 = new SkipStepConditions(); + index3 = 1; + List list167 = new List(index3); + CollectionsMarshal.SetCount(list167, index3); + Span span167 = CollectionsMarshal.AsSpan(list167); + num3 = 0; + span167[num3] = 1332; + skipStepConditions35.InTerritory = list167; + skipConditions35.StepIf = skipStepConditions35; + obj124.SkipConditions = skipConditions35; + reference117 = obj124; + index2++; + span164[index2] = new QuestStep(EInteractionType.AcceptQuest, 1056165u, new Vector3(245.89917f, -116.025f, -533.71484f), 1332); + obj121.Steps = list164; + reference115 = obj121; + num++; + ref QuestSequence reference118 = ref span163[num]; + QuestSequence obj125 = new QuestSequence { - Sequence = 0 + Sequence = 1 }; - num2 = 3; - List list183 = new List(num2); - CollectionsMarshal.SetCount(list183, num2); - Span span94 = CollectionsMarshal.AsSpan(list183); - ref QuestStep reference132 = ref span94[0]; - QuestStep obj138 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + index2 = 3; + List list168 = new List(index2); + CollectionsMarshal.SetCount(list168, index2); + Span span168 = CollectionsMarshal.AsSpan(list168); + num2 = 0; + ref QuestStep reference119 = ref span168[num2]; + QuestStep obj126 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; SkipConditions skipConditions36 = new SkipConditions(); - SkipStepConditions skipStepConditions34 = new SkipStepConditions(); + SkipStepConditions skipStepConditions36 = new SkipStepConditions(); num3 = 2; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - Span span95 = CollectionsMarshal.AsSpan(list184); - span95[0] = 1334; - span95[1] = 1332; - skipStepConditions34.InTerritory = list184; - skipConditions36.StepIf = skipStepConditions34; - SkipAetheryteCondition obj139 = new SkipAetheryteCondition + List list169 = new List(num3); + CollectionsMarshal.SetCount(list169, num3); + Span span169 = CollectionsMarshal.AsSpan(list169); + index3 = 0; + span169[index3] = 1334; + index3++; + span169[index3] = 1332; + skipStepConditions36.InTerritory = list169; + skipConditions36.StepIf = skipStepConditions36; + SkipAetheryteCondition obj127 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 2; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - Span span96 = CollectionsMarshal.AsSpan(list185); - span96[0] = 1334; - span96[1] = 1332; - obj139.InTerritory = list185; - skipConditions36.AetheryteShortcutIf = obj139; - obj138.SkipConditions = skipConditions36; - reference132 = obj138; - ref QuestStep reference133 = ref span94[1]; - QuestStep obj140 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + index3 = 2; + List list170 = new List(index3); + CollectionsMarshal.SetCount(list170, index3); + Span span170 = CollectionsMarshal.AsSpan(list170); + num3 = 0; + span170[num3] = 1334; + num3++; + span170[num3] = 1332; + obj127.InTerritory = list170; + skipConditions36.AetheryteShortcutIf = obj127; + obj126.SkipConditions = skipConditions36; + reference119 = obj126; + num2++; + ref QuestStep reference120 = ref span168[num2]; + QuestStep obj128 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; SkipConditions skipConditions37 = new SkipConditions(); - SkipStepConditions skipStepConditions35 = new SkipStepConditions(); + SkipStepConditions skipStepConditions37 = new SkipStepConditions(); num3 = 1; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - CollectionsMarshal.AsSpan(list186)[0] = 1332; - skipStepConditions35.InTerritory = list186; - skipConditions37.StepIf = skipStepConditions35; - obj140.SkipConditions = skipConditions37; - reference133 = obj140; - span94[2] = new QuestStep(EInteractionType.AcceptQuest, 1056165u, new Vector3(245.89917f, -116.025f, -533.71484f), 1332); - obj137.Steps = list183; - reference131 = obj137; - ref QuestSequence reference134 = ref span93[1]; - QuestSequence obj141 = new QuestSequence + List list171 = new List(num3); + CollectionsMarshal.SetCount(list171, num3); + Span span171 = CollectionsMarshal.AsSpan(list171); + index3 = 0; + span171[index3] = 1332; + skipStepConditions37.InTerritory = list171; + skipConditions37.StepIf = skipStepConditions37; + obj128.SkipConditions = skipConditions37; + reference120 = obj128; + num2++; + span168[num2] = new QuestStep(EInteractionType.Interact, 2014994u, new Vector3(281.166f, -115.979f, -530.4824f), 1332); + obj125.Steps = list168; + reference118 = obj125; + num++; + ref QuestSequence reference121 = ref span163[num]; + QuestSequence obj129 = new QuestSequence { - Sequence = 1 + Sequence = 2 }; num2 = 3; - List list187 = new List(num2); - CollectionsMarshal.SetCount(list187, num2); - Span span97 = CollectionsMarshal.AsSpan(list187); - ref QuestStep reference135 = ref span97[0]; - QuestStep obj142 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + List list172 = new List(num2); + CollectionsMarshal.SetCount(list172, num2); + Span span172 = CollectionsMarshal.AsSpan(list172); + index2 = 0; + ref QuestStep reference122 = ref span172[index2]; + QuestStep obj130 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; SkipConditions skipConditions38 = new SkipConditions(); - SkipStepConditions skipStepConditions36 = new SkipStepConditions(); - num3 = 2; - List list188 = new List(num3); - CollectionsMarshal.SetCount(list188, num3); - Span span98 = CollectionsMarshal.AsSpan(list188); - span98[0] = 1334; - span98[1] = 1332; - skipStepConditions36.InTerritory = list188; - skipConditions38.StepIf = skipStepConditions36; - SkipAetheryteCondition obj143 = new SkipAetheryteCondition + SkipStepConditions skipStepConditions38 = new SkipStepConditions(); + index3 = 2; + List list173 = new List(index3); + CollectionsMarshal.SetCount(list173, index3); + Span span173 = CollectionsMarshal.AsSpan(list173); + num3 = 0; + span173[num3] = 1334; + num3++; + span173[num3] = 1332; + skipStepConditions38.InTerritory = list173; + skipConditions38.StepIf = skipStepConditions38; + SkipAetheryteCondition obj131 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 2; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - Span span99 = CollectionsMarshal.AsSpan(list189); - span99[0] = 1334; - span99[1] = 1332; - obj143.InTerritory = list189; - skipConditions38.AetheryteShortcutIf = obj143; - obj142.SkipConditions = skipConditions38; - reference135 = obj142; - ref QuestStep reference136 = ref span97[1]; - QuestStep obj144 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + List list174 = new List(num3); + CollectionsMarshal.SetCount(list174, num3); + Span span174 = CollectionsMarshal.AsSpan(list174); + index3 = 0; + span174[index3] = 1334; + index3++; + span174[index3] = 1332; + obj131.InTerritory = list174; + skipConditions38.AetheryteShortcutIf = obj131; + obj130.SkipConditions = skipConditions38; + reference122 = obj130; + index2++; + ref QuestStep reference123 = ref span172[index2]; + QuestStep obj132 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; SkipConditions skipConditions39 = new SkipConditions(); - SkipStepConditions skipStepConditions37 = new SkipStepConditions(); - num3 = 1; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - CollectionsMarshal.AsSpan(list190)[0] = 1332; - skipStepConditions37.InTerritory = list190; - skipConditions39.StepIf = skipStepConditions37; - obj144.SkipConditions = skipConditions39; - reference136 = obj144; - span97[2] = new QuestStep(EInteractionType.Interact, 2014994u, new Vector3(281.166f, -115.979f, -530.4824f), 1332); - obj141.Steps = list187; - reference134 = obj141; - ref QuestSequence reference137 = ref span93[2]; - QuestSequence obj145 = new QuestSequence + SkipStepConditions skipStepConditions39 = new SkipStepConditions(); + index3 = 1; + List list175 = new List(index3); + CollectionsMarshal.SetCount(list175, index3); + Span span175 = CollectionsMarshal.AsSpan(list175); + num3 = 0; + span175[num3] = 1332; + skipStepConditions39.InTerritory = list175; + skipConditions39.StepIf = skipStepConditions39; + obj132.SkipConditions = skipConditions39; + reference123 = obj132; + index2++; + span172[index2] = new QuestStep(EInteractionType.Interact, 1056166u, new Vector3(272.5719f, -115.979004f, -551.0491f), 1332); + obj129.Steps = list172; + reference121 = obj129; + num++; + ref QuestSequence reference124 = ref span163[num]; + QuestSequence obj133 = new QuestSequence { - Sequence = 2 + Sequence = 3 }; - num2 = 3; - List list191 = new List(num2); - CollectionsMarshal.SetCount(list191, num2); - Span span100 = CollectionsMarshal.AsSpan(list191); - ref QuestStep reference138 = ref span100[0]; - QuestStep obj146 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + index2 = 3; + List list176 = new List(index2); + CollectionsMarshal.SetCount(list176, index2); + Span span176 = CollectionsMarshal.AsSpan(list176); + num2 = 0; + ref QuestStep reference125 = ref span176[num2]; + QuestStep obj134 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; SkipConditions skipConditions40 = new SkipConditions(); - SkipStepConditions skipStepConditions38 = new SkipStepConditions(); + SkipStepConditions skipStepConditions40 = new SkipStepConditions(); num3 = 2; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - Span span101 = CollectionsMarshal.AsSpan(list192); - span101[0] = 1334; - span101[1] = 1332; - skipStepConditions38.InTerritory = list192; - skipConditions40.StepIf = skipStepConditions38; - SkipAetheryteCondition obj147 = new SkipAetheryteCondition + List list177 = new List(num3); + CollectionsMarshal.SetCount(list177, num3); + Span span177 = CollectionsMarshal.AsSpan(list177); + index3 = 0; + span177[index3] = 1334; + index3++; + span177[index3] = 1332; + skipStepConditions40.InTerritory = list177; + skipConditions40.StepIf = skipStepConditions40; + SkipAetheryteCondition obj135 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 2; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - Span span102 = CollectionsMarshal.AsSpan(list193); - span102[0] = 1334; - span102[1] = 1332; - obj147.InTerritory = list193; - skipConditions40.AetheryteShortcutIf = obj147; - obj146.SkipConditions = skipConditions40; - reference138 = obj146; - ref QuestStep reference139 = ref span100[1]; - QuestStep obj148 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + index3 = 2; + List list178 = new List(index3); + CollectionsMarshal.SetCount(list178, index3); + Span span178 = CollectionsMarshal.AsSpan(list178); + num3 = 0; + span178[num3] = 1334; + num3++; + span178[num3] = 1332; + obj135.InTerritory = list178; + skipConditions40.AetheryteShortcutIf = obj135; + obj134.SkipConditions = skipConditions40; + reference125 = obj134; + num2++; + ref QuestStep reference126 = ref span176[num2]; + QuestStep obj136 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; SkipConditions skipConditions41 = new SkipConditions(); - SkipStepConditions skipStepConditions39 = new SkipStepConditions(); + SkipStepConditions skipStepConditions41 = new SkipStepConditions(); num3 = 1; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - CollectionsMarshal.AsSpan(list194)[0] = 1332; - skipStepConditions39.InTerritory = list194; - skipConditions41.StepIf = skipStepConditions39; - obj148.SkipConditions = skipConditions41; - reference139 = obj148; - span100[2] = new QuestStep(EInteractionType.Interact, 1056166u, new Vector3(272.5719f, -115.979004f, -551.0491f), 1332); - obj145.Steps = list191; - reference137 = obj145; - ref QuestSequence reference140 = ref span93[3]; - QuestSequence obj149 = new QuestSequence + List list179 = new List(num3); + CollectionsMarshal.SetCount(list179, num3); + Span span179 = CollectionsMarshal.AsSpan(list179); + index3 = 0; + span179[index3] = 1332; + skipStepConditions41.InTerritory = list179; + skipConditions41.StepIf = skipStepConditions41; + obj136.SkipConditions = skipConditions41; + reference126 = obj136; + num2++; + span176[num2] = new QuestStep(EInteractionType.Interact, 1056167u, new Vector3(323.84216f, -117.47925f, -489.37213f), 1332); + obj133.Steps = list176; + reference124 = obj133; + num++; + ref QuestSequence reference127 = ref span163[num]; + QuestSequence obj137 = new QuestSequence { - Sequence = 3 + Sequence = 4 }; num2 = 3; - List list195 = new List(num2); - CollectionsMarshal.SetCount(list195, num2); - Span span103 = CollectionsMarshal.AsSpan(list195); - ref QuestStep reference141 = ref span103[0]; - QuestStep obj150 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + List list180 = new List(num2); + CollectionsMarshal.SetCount(list180, num2); + Span span180 = CollectionsMarshal.AsSpan(list180); + index2 = 0; + ref QuestStep reference128 = ref span180[index2]; + QuestStep obj138 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; SkipConditions skipConditions42 = new SkipConditions(); - SkipStepConditions skipStepConditions40 = new SkipStepConditions(); - num3 = 2; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - Span span104 = CollectionsMarshal.AsSpan(list196); - span104[0] = 1334; - span104[1] = 1332; - skipStepConditions40.InTerritory = list196; - skipConditions42.StepIf = skipStepConditions40; - SkipAetheryteCondition obj151 = new SkipAetheryteCondition + SkipStepConditions skipStepConditions42 = new SkipStepConditions(); + index3 = 2; + List list181 = new List(index3); + CollectionsMarshal.SetCount(list181, index3); + Span span181 = CollectionsMarshal.AsSpan(list181); + num3 = 0; + span181[num3] = 1334; + num3++; + span181[num3] = 1332; + skipStepConditions42.InTerritory = list181; + skipConditions42.StepIf = skipStepConditions42; + SkipAetheryteCondition obj139 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 2; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - Span span105 = CollectionsMarshal.AsSpan(list197); - span105[0] = 1334; - span105[1] = 1332; - obj151.InTerritory = list197; - skipConditions42.AetheryteShortcutIf = obj151; - obj150.SkipConditions = skipConditions42; - reference141 = obj150; - ref QuestStep reference142 = ref span103[1]; - QuestStep obj152 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + List list182 = new List(num3); + CollectionsMarshal.SetCount(list182, num3); + Span span182 = CollectionsMarshal.AsSpan(list182); + index3 = 0; + span182[index3] = 1334; + index3++; + span182[index3] = 1332; + obj139.InTerritory = list182; + skipConditions42.AetheryteShortcutIf = obj139; + obj138.SkipConditions = skipConditions42; + reference128 = obj138; + index2++; + ref QuestStep reference129 = ref span180[index2]; + QuestStep obj140 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; SkipConditions skipConditions43 = new SkipConditions(); - SkipStepConditions skipStepConditions41 = new SkipStepConditions(); - num3 = 1; - List list198 = new List(num3); - CollectionsMarshal.SetCount(list198, num3); - CollectionsMarshal.AsSpan(list198)[0] = 1332; - skipStepConditions41.InTerritory = list198; - skipConditions43.StepIf = skipStepConditions41; - obj152.SkipConditions = skipConditions43; - reference142 = obj152; - span103[2] = new QuestStep(EInteractionType.Interact, 1056167u, new Vector3(323.84216f, -117.47925f, -489.37213f), 1332); - obj149.Steps = list195; - reference140 = obj149; - ref QuestSequence reference143 = ref span93[4]; - QuestSequence obj153 = new QuestSequence + SkipStepConditions skipStepConditions43 = new SkipStepConditions(); + index3 = 1; + List list183 = new List(index3); + CollectionsMarshal.SetCount(list183, index3); + Span span183 = CollectionsMarshal.AsSpan(list183); + num3 = 0; + span183[num3] = 1332; + skipStepConditions43.InTerritory = list183; + skipConditions43.StepIf = skipStepConditions43; + obj140.SkipConditions = skipConditions43; + reference129 = obj140; + index2++; + span180[index2] = new QuestStep(EInteractionType.Interact, 1056267u, new Vector3(325.18494f, -117.5f, -489.28055f), 1332); + obj137.Steps = list180; + reference127 = obj137; + num++; + ref QuestSequence reference130 = ref span163[num]; + QuestSequence obj141 = new QuestSequence { - Sequence = 4 + Sequence = byte.MaxValue }; - num2 = 3; - List list199 = new List(num2); - CollectionsMarshal.SetCount(list199, num2); - Span span106 = CollectionsMarshal.AsSpan(list199); - ref QuestStep reference144 = ref span106[0]; - QuestStep obj154 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + index2 = 3; + List list184 = new List(index2); + CollectionsMarshal.SetCount(list184, index2); + Span span184 = CollectionsMarshal.AsSpan(list184); + num2 = 0; + ref QuestStep reference131 = ref span184[num2]; + QuestStep obj142 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; SkipConditions skipConditions44 = new SkipConditions(); - SkipStepConditions skipStepConditions42 = new SkipStepConditions(); + SkipStepConditions skipStepConditions44 = new SkipStepConditions(); num3 = 2; - List list200 = new List(num3); - CollectionsMarshal.SetCount(list200, num3); - Span span107 = CollectionsMarshal.AsSpan(list200); - span107[0] = 1334; - span107[1] = 1332; - skipStepConditions42.InTerritory = list200; - skipConditions44.StepIf = skipStepConditions42; - SkipAetheryteCondition obj155 = new SkipAetheryteCondition + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + Span span185 = CollectionsMarshal.AsSpan(list185); + index3 = 0; + span185[index3] = 1334; + index3++; + span185[index3] = 1332; + skipStepConditions44.InTerritory = list185; + skipConditions44.StepIf = skipStepConditions44; + SkipAetheryteCondition obj143 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 2; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - Span span108 = CollectionsMarshal.AsSpan(list201); - span108[0] = 1334; - span108[1] = 1332; - obj155.InTerritory = list201; - skipConditions44.AetheryteShortcutIf = obj155; - obj154.SkipConditions = skipConditions44; - reference144 = obj154; - ref QuestStep reference145 = ref span106[1]; - QuestStep obj156 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + index3 = 2; + List list186 = new List(index3); + CollectionsMarshal.SetCount(list186, index3); + Span span186 = CollectionsMarshal.AsSpan(list186); + num3 = 0; + span186[num3] = 1334; + num3++; + span186[num3] = 1332; + obj143.InTerritory = list186; + skipConditions44.AetheryteShortcutIf = obj143; + obj142.SkipConditions = skipConditions44; + reference131 = obj142; + num2++; + ref QuestStep reference132 = ref span184[num2]; + QuestStep obj144 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; SkipConditions skipConditions45 = new SkipConditions(); - SkipStepConditions skipStepConditions43 = new SkipStepConditions(); + SkipStepConditions skipStepConditions45 = new SkipStepConditions(); num3 = 1; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - CollectionsMarshal.AsSpan(list202)[0] = 1332; - skipStepConditions43.InTerritory = list202; - skipConditions45.StepIf = skipStepConditions43; - obj156.SkipConditions = skipConditions45; - reference145 = obj156; - span106[2] = new QuestStep(EInteractionType.Interact, 1056267u, new Vector3(325.18494f, -117.5f, -489.28055f), 1332); - obj153.Steps = list199; - reference143 = obj153; - ref QuestSequence reference146 = ref span93[5]; - QuestSequence obj157 = new QuestSequence + List list187 = new List(num3); + CollectionsMarshal.SetCount(list187, num3); + Span span187 = CollectionsMarshal.AsSpan(list187); + index3 = 0; + span187[index3] = 1332; + skipStepConditions45.InTerritory = list187; + skipConditions45.StepIf = skipStepConditions45; + obj144.SkipConditions = skipConditions45; + reference132 = obj144; + num2++; + span184[num2] = new QuestStep(EInteractionType.CompleteQuest, 1056165u, new Vector3(245.89917f, -116.025f, -533.71484f), 1332); + obj141.Steps = list184; + reference130 = obj141; + questRoot15.QuestSequence = list163; + AddQuest(questId15, questRoot15); + QuestId questId16 = new QuestId(5432); + QuestRoot questRoot16 = new QuestRoot(); + num = 1; + List list188 = new List(num); + CollectionsMarshal.SetCount(list188, num); + Span span188 = CollectionsMarshal.AsSpan(list188); + index = 0; + span188[index] = "WigglyMuffin"; + questRoot16.Author = list188; + index = 4; + List list189 = new List(index); + CollectionsMarshal.SetCount(list189, index); + Span span189 = CollectionsMarshal.AsSpan(list189); + num = 0; + ref QuestSequence reference133 = ref span189[num]; + QuestSequence obj145 = new QuestSequence { - Sequence = byte.MaxValue + Sequence = 0 }; num2 = 3; - List list203 = new List(num2); - CollectionsMarshal.SetCount(list203, num2); - Span span109 = CollectionsMarshal.AsSpan(list203); - ref QuestStep reference147 = ref span109[0]; - QuestStep obj158 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + List list190 = new List(num2); + CollectionsMarshal.SetCount(list190, num2); + Span span190 = CollectionsMarshal.AsSpan(list190); + index2 = 0; + ref QuestStep reference134 = ref span190[index2]; + QuestStep obj146 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; SkipConditions skipConditions46 = new SkipConditions(); - SkipStepConditions skipStepConditions44 = new SkipStepConditions(); - num3 = 2; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - Span span110 = CollectionsMarshal.AsSpan(list204); - span110[0] = 1334; - span110[1] = 1332; - skipStepConditions44.InTerritory = list204; - skipConditions46.StepIf = skipStepConditions44; - SkipAetheryteCondition obj159 = new SkipAetheryteCondition + SkipStepConditions skipStepConditions46 = new SkipStepConditions(); + index3 = 2; + List list191 = new List(index3); + CollectionsMarshal.SetCount(list191, index3); + Span span191 = CollectionsMarshal.AsSpan(list191); + num3 = 0; + span191[num3] = 1334; + num3++; + span191[num3] = 1332; + skipStepConditions46.InTerritory = list191; + skipConditions46.StepIf = skipStepConditions46; + SkipAetheryteCondition obj147 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 2; - List list205 = new List(num3); - CollectionsMarshal.SetCount(list205, num3); - Span span111 = CollectionsMarshal.AsSpan(list205); - span111[0] = 1334; - span111[1] = 1332; - obj159.InTerritory = list205; - skipConditions46.AetheryteShortcutIf = obj159; - obj158.SkipConditions = skipConditions46; - reference147 = obj158; - ref QuestStep reference148 = ref span109[1]; - QuestStep obj160 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + List list192 = new List(num3); + CollectionsMarshal.SetCount(list192, num3); + Span span192 = CollectionsMarshal.AsSpan(list192); + index3 = 0; + span192[index3] = 1334; + index3++; + span192[index3] = 1332; + obj147.InTerritory = list192; + skipConditions46.AetheryteShortcutIf = obj147; + obj146.SkipConditions = skipConditions46; + reference134 = obj146; + index2++; + ref QuestStep reference135 = ref span190[index2]; + QuestStep obj148 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; SkipConditions skipConditions47 = new SkipConditions(); - SkipStepConditions skipStepConditions45 = new SkipStepConditions(); - num3 = 1; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - CollectionsMarshal.AsSpan(list206)[0] = 1332; - skipStepConditions45.InTerritory = list206; - skipConditions47.StepIf = skipStepConditions45; - obj160.SkipConditions = skipConditions47; - reference148 = obj160; - span109[2] = new QuestStep(EInteractionType.CompleteQuest, 1056165u, new Vector3(245.89917f, -116.025f, -533.71484f), 1332); - obj157.Steps = list203; - reference146 = obj157; - questRoot16.QuestSequence = list182; - AddQuest(questId16, questRoot16); - QuestId questId17 = new QuestId(5432); - QuestRoot questRoot17 = new QuestRoot(); - num = 1; - List list207 = new List(num); - CollectionsMarshal.SetCount(list207, num); - CollectionsMarshal.AsSpan(list207)[0] = "WigglyMuffin"; - questRoot17.Author = list207; - num = 4; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span112 = CollectionsMarshal.AsSpan(list208); - ref QuestSequence reference149 = ref span112[0]; - QuestSequence obj161 = new QuestSequence + SkipStepConditions skipStepConditions47 = new SkipStepConditions(); + index3 = 1; + List list193 = new List(index3); + CollectionsMarshal.SetCount(list193, index3); + Span span193 = CollectionsMarshal.AsSpan(list193); + num3 = 0; + span193[num3] = 1332; + skipStepConditions47.InTerritory = list193; + skipConditions47.StepIf = skipStepConditions47; + obj148.SkipConditions = skipConditions47; + reference135 = obj148; + index2++; + span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1056168u, new Vector3(245.89917f, -116.02501f, -531.57855f), 1332); + obj145.Steps = list190; + reference133 = obj145; + num++; + ref QuestSequence reference136 = ref span189[num]; + QuestSequence obj149 = new QuestSequence { - Sequence = 0 + Sequence = 1 }; - num2 = 3; - List list209 = new List(num2); - CollectionsMarshal.SetCount(list209, num2); - Span span113 = CollectionsMarshal.AsSpan(list209); - ref QuestStep reference150 = ref span113[0]; - QuestStep obj162 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + index2 = 3; + List list194 = new List(index2); + CollectionsMarshal.SetCount(list194, index2); + Span span194 = CollectionsMarshal.AsSpan(list194); + num2 = 0; + ref QuestStep reference137 = ref span194[num2]; + QuestStep obj150 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; SkipConditions skipConditions48 = new SkipConditions(); - SkipStepConditions skipStepConditions46 = new SkipStepConditions(); + SkipStepConditions skipStepConditions48 = new SkipStepConditions(); num3 = 2; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - Span span114 = CollectionsMarshal.AsSpan(list210); - span114[0] = 1334; - span114[1] = 1332; - skipStepConditions46.InTerritory = list210; - skipConditions48.StepIf = skipStepConditions46; - SkipAetheryteCondition obj163 = new SkipAetheryteCondition + List list195 = new List(num3); + CollectionsMarshal.SetCount(list195, num3); + Span span195 = CollectionsMarshal.AsSpan(list195); + index3 = 0; + span195[index3] = 1334; + index3++; + span195[index3] = 1332; + skipStepConditions48.InTerritory = list195; + skipConditions48.StepIf = skipStepConditions48; + SkipAetheryteCondition obj151 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 2; - List list211 = new List(num3); - CollectionsMarshal.SetCount(list211, num3); - Span span115 = CollectionsMarshal.AsSpan(list211); - span115[0] = 1334; - span115[1] = 1332; - obj163.InTerritory = list211; - skipConditions48.AetheryteShortcutIf = obj163; - obj162.SkipConditions = skipConditions48; - reference150 = obj162; - ref QuestStep reference151 = ref span113[1]; - QuestStep obj164 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + index3 = 2; + List list196 = new List(index3); + CollectionsMarshal.SetCount(list196, index3); + Span span196 = CollectionsMarshal.AsSpan(list196); + num3 = 0; + span196[num3] = 1334; + num3++; + span196[num3] = 1332; + obj151.InTerritory = list196; + skipConditions48.AetheryteShortcutIf = obj151; + obj150.SkipConditions = skipConditions48; + reference137 = obj150; + num2++; + ref QuestStep reference138 = ref span194[num2]; + QuestStep obj152 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; SkipConditions skipConditions49 = new SkipConditions(); - SkipStepConditions skipStepConditions47 = new SkipStepConditions(); + SkipStepConditions skipStepConditions49 = new SkipStepConditions(); num3 = 1; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - CollectionsMarshal.AsSpan(list212)[0] = 1332; - skipStepConditions47.InTerritory = list212; - skipConditions49.StepIf = skipStepConditions47; - obj164.SkipConditions = skipConditions49; - reference151 = obj164; - span113[2] = new QuestStep(EInteractionType.AcceptQuest, 1056168u, new Vector3(245.89917f, -116.02501f, -531.57855f), 1332); - obj161.Steps = list209; - reference149 = obj161; - ref QuestSequence reference152 = ref span112[1]; - QuestSequence obj165 = new QuestSequence + List list197 = new List(num3); + CollectionsMarshal.SetCount(list197, num3); + Span span197 = CollectionsMarshal.AsSpan(list197); + index3 = 0; + span197[index3] = 1332; + skipStepConditions49.InTerritory = list197; + skipConditions49.StepIf = skipStepConditions49; + obj152.SkipConditions = skipConditions49; + reference138 = obj152; + num2++; + span194[num2] = new QuestStep(EInteractionType.Interact, 2014995u, new Vector3(247.3097f, -116.025f, -532.7819f), 1332); + obj149.Steps = list194; + reference136 = obj149; + num++; + ref QuestSequence reference139 = ref span189[num]; + QuestSequence obj153 = new QuestSequence { - Sequence = 1 + Sequence = 2 }; num2 = 3; - List list213 = new List(num2); - CollectionsMarshal.SetCount(list213, num2); - Span span116 = CollectionsMarshal.AsSpan(list213); - ref QuestStep reference153 = ref span116[0]; - QuestStep obj166 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + List list198 = new List(num2); + CollectionsMarshal.SetCount(list198, num2); + Span span198 = CollectionsMarshal.AsSpan(list198); + index2 = 0; + ref QuestStep reference140 = ref span198[index2]; + QuestStep obj154 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; SkipConditions skipConditions50 = new SkipConditions(); - SkipStepConditions skipStepConditions48 = new SkipStepConditions(); - num3 = 2; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - Span span117 = CollectionsMarshal.AsSpan(list214); - span117[0] = 1334; - span117[1] = 1332; - skipStepConditions48.InTerritory = list214; - skipConditions50.StepIf = skipStepConditions48; - SkipAetheryteCondition obj167 = new SkipAetheryteCondition + SkipStepConditions skipStepConditions50 = new SkipStepConditions(); + index3 = 2; + List list199 = new List(index3); + CollectionsMarshal.SetCount(list199, index3); + Span span199 = CollectionsMarshal.AsSpan(list199); + num3 = 0; + span199[num3] = 1334; + num3++; + span199[num3] = 1332; + skipStepConditions50.InTerritory = list199; + skipConditions50.StepIf = skipStepConditions50; + SkipAetheryteCondition obj155 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 2; - List list215 = new List(num3); - CollectionsMarshal.SetCount(list215, num3); - Span span118 = CollectionsMarshal.AsSpan(list215); - span118[0] = 1334; - span118[1] = 1332; - obj167.InTerritory = list215; - skipConditions50.AetheryteShortcutIf = obj167; - obj166.SkipConditions = skipConditions50; - reference153 = obj166; - ref QuestStep reference154 = ref span116[1]; - QuestStep obj168 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + List list200 = new List(num3); + CollectionsMarshal.SetCount(list200, num3); + Span span200 = CollectionsMarshal.AsSpan(list200); + index3 = 0; + span200[index3] = 1334; + index3++; + span200[index3] = 1332; + obj155.InTerritory = list200; + skipConditions50.AetheryteShortcutIf = obj155; + obj154.SkipConditions = skipConditions50; + reference140 = obj154; + index2++; + ref QuestStep reference141 = ref span198[index2]; + QuestStep obj156 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; SkipConditions skipConditions51 = new SkipConditions(); - SkipStepConditions skipStepConditions49 = new SkipStepConditions(); - num3 = 1; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - CollectionsMarshal.AsSpan(list216)[0] = 1332; - skipStepConditions49.InTerritory = list216; - skipConditions51.StepIf = skipStepConditions49; - obj168.SkipConditions = skipConditions51; - reference154 = obj168; - span116[2] = new QuestStep(EInteractionType.Interact, 2014995u, new Vector3(247.3097f, -116.025f, -532.7819f), 1332); - obj165.Steps = list213; - reference152 = obj165; - ref QuestSequence reference155 = ref span112[2]; - QuestSequence obj169 = new QuestSequence + SkipStepConditions skipStepConditions51 = new SkipStepConditions(); + index3 = 1; + List list201 = new List(index3); + CollectionsMarshal.SetCount(list201, index3); + Span span201 = CollectionsMarshal.AsSpan(list201); + num3 = 0; + span201[num3] = 1332; + skipStepConditions51.InTerritory = list201; + skipConditions51.StepIf = skipStepConditions51; + obj156.SkipConditions = skipConditions51; + reference141 = obj156; + index2++; + span198[index2] = new QuestStep(EInteractionType.Interact, 1056194u, new Vector3(245.16663f, -116.02501f, -532.00586f), 1332); + obj153.Steps = list198; + reference139 = obj153; + num++; + ref QuestSequence reference142 = ref span189[num]; + QuestSequence obj157 = new QuestSequence { - Sequence = 2 + Sequence = byte.MaxValue }; - num2 = 3; - List list217 = new List(num2); - CollectionsMarshal.SetCount(list217, num2); - Span span119 = CollectionsMarshal.AsSpan(list217); - ref QuestStep reference156 = ref span119[0]; - QuestStep obj170 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + index2 = 3; + List list202 = new List(index2); + CollectionsMarshal.SetCount(list202, index2); + Span span202 = CollectionsMarshal.AsSpan(list202); + num2 = 0; + ref QuestStep reference143 = ref span202[num2]; + QuestStep obj158 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; SkipConditions skipConditions52 = new SkipConditions(); - SkipStepConditions skipStepConditions50 = new SkipStepConditions(); + SkipStepConditions skipStepConditions52 = new SkipStepConditions(); num3 = 2; - List list218 = new List(num3); - CollectionsMarshal.SetCount(list218, num3); - Span span120 = CollectionsMarshal.AsSpan(list218); - span120[0] = 1334; - span120[1] = 1332; - skipStepConditions50.InTerritory = list218; - skipConditions52.StepIf = skipStepConditions50; - SkipAetheryteCondition obj171 = new SkipAetheryteCondition + List list203 = new List(num3); + CollectionsMarshal.SetCount(list203, num3); + Span span203 = CollectionsMarshal.AsSpan(list203); + index3 = 0; + span203[index3] = 1334; + index3++; + span203[index3] = 1332; + skipStepConditions52.InTerritory = list203; + skipConditions52.StepIf = skipStepConditions52; + SkipAetheryteCondition obj159 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 2; - List list219 = new List(num3); - CollectionsMarshal.SetCount(list219, num3); - Span span121 = CollectionsMarshal.AsSpan(list219); - span121[0] = 1334; - span121[1] = 1332; - obj171.InTerritory = list219; - skipConditions52.AetheryteShortcutIf = obj171; - obj170.SkipConditions = skipConditions52; - reference156 = obj170; - ref QuestStep reference157 = ref span119[1]; - QuestStep obj172 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + index3 = 2; + List list204 = new List(index3); + CollectionsMarshal.SetCount(list204, index3); + Span span204 = CollectionsMarshal.AsSpan(list204); + num3 = 0; + span204[num3] = 1334; + num3++; + span204[num3] = 1332; + obj159.InTerritory = list204; + skipConditions52.AetheryteShortcutIf = obj159; + obj158.SkipConditions = skipConditions52; + reference143 = obj158; + num2++; + ref QuestStep reference144 = ref span202[num2]; + QuestStep obj160 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; SkipConditions skipConditions53 = new SkipConditions(); - SkipStepConditions skipStepConditions51 = new SkipStepConditions(); + SkipStepConditions skipStepConditions53 = new SkipStepConditions(); num3 = 1; - List list220 = new List(num3); - CollectionsMarshal.SetCount(list220, num3); - CollectionsMarshal.AsSpan(list220)[0] = 1332; - skipStepConditions51.InTerritory = list220; - skipConditions53.StepIf = skipStepConditions51; - obj172.SkipConditions = skipConditions53; - reference157 = obj172; - span119[2] = new QuestStep(EInteractionType.Interact, 1056194u, new Vector3(245.16663f, -116.02501f, -532.00586f), 1332); - obj169.Steps = list217; - reference155 = obj169; - ref QuestSequence reference158 = ref span112[3]; - QuestSequence obj173 = new QuestSequence + List list205 = new List(num3); + CollectionsMarshal.SetCount(list205, num3); + Span span205 = CollectionsMarshal.AsSpan(list205); + index3 = 0; + span205[index3] = 1332; + skipStepConditions53.InTerritory = list205; + skipConditions53.StepIf = skipStepConditions53; + obj160.SkipConditions = skipConditions53; + reference144 = obj160; + num2++; + span202[num2] = new QuestStep(EInteractionType.CompleteQuest, 1056172u, new Vector3(292.1034f, -98f, -283.25323f), 1332); + obj157.Steps = list202; + reference142 = obj157; + questRoot16.QuestSequence = list189; + AddQuest(questId16, questRoot16); + QuestId questId17 = new QuestId(5433); + QuestRoot questRoot17 = new QuestRoot(); + num = 1; + List list206 = new List(num); + CollectionsMarshal.SetCount(list206, num); + Span span206 = CollectionsMarshal.AsSpan(list206); + index = 0; + span206[index] = "WigglyMuffin"; + questRoot17.Author = list206; + index = 8; + List list207 = new List(index); + CollectionsMarshal.SetCount(list207, index); + Span span207 = CollectionsMarshal.AsSpan(list207); + num = 0; + ref QuestSequence reference145 = ref span207[num]; + QuestSequence obj161 = new QuestSequence { - Sequence = byte.MaxValue + Sequence = 0 }; num2 = 3; - List list221 = new List(num2); - CollectionsMarshal.SetCount(list221, num2); - Span span122 = CollectionsMarshal.AsSpan(list221); - ref QuestStep reference159 = ref span122[0]; - QuestStep obj174 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + List list208 = new List(num2); + CollectionsMarshal.SetCount(list208, num2); + Span span208 = CollectionsMarshal.AsSpan(list208); + index2 = 0; + ref QuestStep reference146 = ref span208[index2]; + QuestStep obj162 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; SkipConditions skipConditions54 = new SkipConditions(); - SkipStepConditions skipStepConditions52 = new SkipStepConditions(); - num3 = 2; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - Span span123 = CollectionsMarshal.AsSpan(list222); - span123[0] = 1334; - span123[1] = 1332; - skipStepConditions52.InTerritory = list222; - skipConditions54.StepIf = skipStepConditions52; - SkipAetheryteCondition obj175 = new SkipAetheryteCondition + SkipStepConditions skipStepConditions54 = new SkipStepConditions(); + index3 = 2; + List list209 = new List(index3); + CollectionsMarshal.SetCount(list209, index3); + Span span209 = CollectionsMarshal.AsSpan(list209); + num3 = 0; + span209[num3] = 1334; + num3++; + span209[num3] = 1332; + skipStepConditions54.InTerritory = list209; + skipConditions54.StepIf = skipStepConditions54; + SkipAetheryteCondition obj163 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 2; - List list223 = new List(num3); - CollectionsMarshal.SetCount(list223, num3); - Span span124 = CollectionsMarshal.AsSpan(list223); - span124[0] = 1334; - span124[1] = 1332; - obj175.InTerritory = list223; - skipConditions54.AetheryteShortcutIf = obj175; - obj174.SkipConditions = skipConditions54; - reference159 = obj174; - ref QuestStep reference160 = ref span122[1]; - QuestStep obj176 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + List list210 = new List(num3); + CollectionsMarshal.SetCount(list210, num3); + Span span210 = CollectionsMarshal.AsSpan(list210); + index3 = 0; + span210[index3] = 1334; + index3++; + span210[index3] = 1332; + obj163.InTerritory = list210; + skipConditions54.AetheryteShortcutIf = obj163; + obj162.SkipConditions = skipConditions54; + reference146 = obj162; + index2++; + ref QuestStep reference147 = ref span208[index2]; + QuestStep obj164 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; SkipConditions skipConditions55 = new SkipConditions(); - SkipStepConditions skipStepConditions53 = new SkipStepConditions(); - num3 = 1; - List list224 = new List(num3); - CollectionsMarshal.SetCount(list224, num3); - CollectionsMarshal.AsSpan(list224)[0] = 1332; - skipStepConditions53.InTerritory = list224; - skipConditions55.StepIf = skipStepConditions53; - obj176.SkipConditions = skipConditions55; - reference160 = obj176; - span122[2] = new QuestStep(EInteractionType.CompleteQuest, 1056172u, new Vector3(292.1034f, -98f, -283.25323f), 1332); - obj173.Steps = list221; - reference158 = obj173; - questRoot17.QuestSequence = list208; - AddQuest(questId17, questRoot17); - QuestId questId18 = new QuestId(5433); - QuestRoot questRoot18 = new QuestRoot(); - num = 1; - List list225 = new List(num); - CollectionsMarshal.SetCount(list225, num); - CollectionsMarshal.AsSpan(list225)[0] = "WigglyMuffin"; - questRoot18.Author = list225; - num = 8; - List list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - Span span125 = CollectionsMarshal.AsSpan(list226); - ref QuestSequence reference161 = ref span125[0]; - QuestSequence obj177 = new QuestSequence + SkipStepConditions skipStepConditions55 = new SkipStepConditions(); + index3 = 1; + List list211 = new List(index3); + CollectionsMarshal.SetCount(list211, index3); + Span span211 = CollectionsMarshal.AsSpan(list211); + num3 = 0; + span211[num3] = 1332; + skipStepConditions55.InTerritory = list211; + skipConditions55.StepIf = skipStepConditions55; + obj164.SkipConditions = skipConditions55; + reference147 = obj164; + index2++; + span208[index2] = new QuestStep(EInteractionType.AcceptQuest, 1056172u, new Vector3(292.1034f, -98f, -283.25323f), 1332); + obj161.Steps = list208; + reference145 = obj161; + num++; + ref QuestSequence reference148 = ref span207[num]; + QuestSequence obj165 = new QuestSequence { - Sequence = 0 + Sequence = 1 }; - num2 = 3; - List list227 = new List(num2); - CollectionsMarshal.SetCount(list227, num2); - Span span126 = CollectionsMarshal.AsSpan(list227); - ref QuestStep reference162 = ref span126[0]; - QuestStep obj178 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + index2 = 3; + List list212 = new List(index2); + CollectionsMarshal.SetCount(list212, index2); + Span span212 = CollectionsMarshal.AsSpan(list212); + num2 = 0; + ref QuestStep reference149 = ref span212[num2]; + QuestStep obj166 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; SkipConditions skipConditions56 = new SkipConditions(); - SkipStepConditions skipStepConditions54 = new SkipStepConditions(); + SkipStepConditions skipStepConditions56 = new SkipStepConditions(); num3 = 2; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - Span span127 = CollectionsMarshal.AsSpan(list228); - span127[0] = 1334; - span127[1] = 1332; - skipStepConditions54.InTerritory = list228; - skipConditions56.StepIf = skipStepConditions54; - SkipAetheryteCondition obj179 = new SkipAetheryteCondition + List list213 = new List(num3); + CollectionsMarshal.SetCount(list213, num3); + Span span213 = CollectionsMarshal.AsSpan(list213); + index3 = 0; + span213[index3] = 1334; + index3++; + span213[index3] = 1332; + skipStepConditions56.InTerritory = list213; + skipConditions56.StepIf = skipStepConditions56; + SkipAetheryteCondition obj167 = new SkipAetheryteCondition { InSameTerritory = true }; - num3 = 2; - List list229 = new List(num3); - CollectionsMarshal.SetCount(list229, num3); - Span span128 = CollectionsMarshal.AsSpan(list229); - span128[0] = 1334; - span128[1] = 1332; - obj179.InTerritory = list229; - skipConditions56.AetheryteShortcutIf = obj179; - obj178.SkipConditions = skipConditions56; - reference162 = obj178; - ref QuestStep reference163 = ref span126[1]; - QuestStep obj180 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + index3 = 2; + List list214 = new List(index3); + CollectionsMarshal.SetCount(list214, index3); + Span span214 = CollectionsMarshal.AsSpan(list214); + num3 = 0; + span214[num3] = 1334; + num3++; + span214[num3] = 1332; + obj167.InTerritory = list214; + skipConditions56.AetheryteShortcutIf = obj167; + obj166.SkipConditions = skipConditions56; + reference149 = obj166; + num2++; + ref QuestStep reference150 = ref span212[num2]; + QuestStep obj168 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; SkipConditions skipConditions57 = new SkipConditions(); - SkipStepConditions skipStepConditions55 = new SkipStepConditions(); - num3 = 1; - List list230 = new List(num3); - CollectionsMarshal.SetCount(list230, num3); - CollectionsMarshal.AsSpan(list230)[0] = 1332; - skipStepConditions55.InTerritory = list230; - skipConditions57.StepIf = skipStepConditions55; - obj180.SkipConditions = skipConditions57; - reference163 = obj180; - span126[2] = new QuestStep(EInteractionType.AcceptQuest, 1056172u, new Vector3(292.1034f, -98f, -283.25323f), 1332); - obj177.Steps = list227; - reference161 = obj177; - ref QuestSequence reference164 = ref span125[1]; - QuestSequence obj181 = new QuestSequence - { - Sequence = 1 - }; - num2 = 3; - List list231 = new List(num2); - CollectionsMarshal.SetCount(list231, num2); - Span span129 = CollectionsMarshal.AsSpan(list231); - ref QuestStep reference165 = ref span129[0]; - QuestStep obj182 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions58 = new SkipConditions(); - SkipStepConditions skipStepConditions56 = new SkipStepConditions(); - num3 = 2; - List list232 = new List(num3); - CollectionsMarshal.SetCount(list232, num3); - Span span130 = CollectionsMarshal.AsSpan(list232); - span130[0] = 1334; - span130[1] = 1332; - skipStepConditions56.InTerritory = list232; - skipConditions58.StepIf = skipStepConditions56; - SkipAetheryteCondition obj183 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list233 = new List(num3); - CollectionsMarshal.SetCount(list233, num3); - Span span131 = CollectionsMarshal.AsSpan(list233); - span131[0] = 1334; - span131[1] = 1332; - obj183.InTerritory = list233; - skipConditions58.AetheryteShortcutIf = obj183; - obj182.SkipConditions = skipConditions58; - reference165 = obj182; - ref QuestStep reference166 = ref span129[1]; - QuestStep obj184 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions59 = new SkipConditions(); SkipStepConditions skipStepConditions57 = new SkipStepConditions(); num3 = 1; - List list234 = new List(num3); - CollectionsMarshal.SetCount(list234, num3); - CollectionsMarshal.AsSpan(list234)[0] = 1332; - skipStepConditions57.InTerritory = list234; - skipConditions59.StepIf = skipStepConditions57; - obj184.SkipConditions = skipConditions59; - reference166 = obj184; - ref QuestStep reference167 = ref span129[2]; - QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1056173u, new Vector3(293.96497f, -98f, -281.6358f), 1332); - num3 = 1; - List list235 = new List(num3); - CollectionsMarshal.SetCount(list235, num3); - CollectionsMarshal.AsSpan(list235)[0] = new DialogueChoice + List list215 = new List(num3); + CollectionsMarshal.SetCount(list215, num3); + Span span215 = CollectionsMarshal.AsSpan(list215); + index3 = 0; + span215[index3] = 1332; + skipStepConditions57.InTerritory = list215; + skipConditions57.StepIf = skipStepConditions57; + obj168.SkipConditions = skipConditions57; + reference150 = obj168; + num2++; + ref QuestStep reference151 = ref span212[num2]; + QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1056173u, new Vector3(293.96497f, -98f, -281.6358f), 1332); + index3 = 1; + List list216 = new List(index3); + CollectionsMarshal.SetCount(list216, index3); + Span span216 = CollectionsMarshal.AsSpan(list216); + num3 = 0; + span216[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMJ108_05433_SYSTEM_000_045") }; - questStep15.DialogueChoices = list235; - reference167 = questStep15; - obj181.Steps = list231; - reference164 = obj181; - span125[2] = new QuestSequence + questStep13.DialogueChoices = list216; + reference151 = questStep13; + obj165.Steps = list212; + reference148 = obj165; + num++; + span207[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference168 = ref span125[3]; - QuestSequence obj185 = new QuestSequence + num++; + ref QuestSequence reference152 = ref span207[num]; + QuestSequence obj169 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list236 = new List(num2); - CollectionsMarshal.SetCount(list236, num2); - CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Duty, null, null, 1338) + List list217 = new List(num2); + CollectionsMarshal.SetCount(list217, num2); + Span span217 = CollectionsMarshal.AsSpan(list217); + index2 = 0; + span217[index2] = new QuestStep(EInteractionType.Duty, null, null, 1338) { DutyOptions = new DutyOptions { ContentFinderConditionId = 1076u } }; - obj185.Steps = list236; - reference168 = obj185; - span125[4] = new QuestSequence + obj169.Steps = list217; + reference152 = obj169; + num++; + span207[num] = new QuestSequence { Sequence = 4 }; - ref QuestSequence reference169 = ref span125[5]; - QuestSequence obj186 = new QuestSequence + num++; + ref QuestSequence reference153 = ref span207[num]; + QuestSequence obj170 = new QuestSequence { Sequence = 5 }; + index2 = 3; + List list218 = new List(index2); + CollectionsMarshal.SetCount(list218, index2); + Span span218 = CollectionsMarshal.AsSpan(list218); + num2 = 0; + ref QuestStep reference154 = ref span218[num2]; + QuestStep obj171 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + { + TargetTerritoryId = (ushort)1334, + Fly = true, + AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo + }; + SkipConditions skipConditions58 = new SkipConditions(); + SkipStepConditions skipStepConditions58 = new SkipStepConditions(); + num3 = 2; + List list219 = new List(num3); + CollectionsMarshal.SetCount(list219, num3); + Span span219 = CollectionsMarshal.AsSpan(list219); + index3 = 0; + span219[index3] = 1334; + index3++; + span219[index3] = 1332; + skipStepConditions58.InTerritory = list219; + skipConditions58.StepIf = skipStepConditions58; + SkipAetheryteCondition obj172 = new SkipAetheryteCondition + { + InSameTerritory = true + }; + index3 = 2; + List list220 = new List(index3); + CollectionsMarshal.SetCount(list220, index3); + Span span220 = CollectionsMarshal.AsSpan(list220); + num3 = 0; + span220[num3] = 1334; + num3++; + span220[num3] = 1332; + obj172.InTerritory = list220; + skipConditions58.AetheryteShortcutIf = obj172; + obj171.SkipConditions = skipConditions58; + reference154 = obj171; + num2++; + ref QuestStep reference155 = ref span218[num2]; + QuestStep obj173 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + { + TargetTerritoryId = (ushort)1332 + }; + SkipConditions skipConditions59 = new SkipConditions(); + SkipStepConditions skipStepConditions59 = new SkipStepConditions(); + num3 = 1; + List list221 = new List(num3); + CollectionsMarshal.SetCount(list221, num3); + Span span221 = CollectionsMarshal.AsSpan(list221); + index3 = 0; + span221[index3] = 1332; + skipStepConditions59.InTerritory = list221; + skipConditions59.StepIf = skipStepConditions59; + obj173.SkipConditions = skipConditions59; + reference155 = obj173; + num2++; + ref QuestStep reference156 = ref span218[num2]; + QuestStep questStep14 = new QuestStep(EInteractionType.SinglePlayerDuty, 1056268u, new Vector3(264.7898f, -115f, -630.7317f), 1332); + SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); + index3 = 1; + List list222 = new List(index3); + CollectionsMarshal.SetCount(list222, index3); + Span span222 = CollectionsMarshal.AsSpan(list222); + num3 = 0; + span222[num3] = "Not implemented in Boss Mod yet."; + singlePlayerDutyOptions.Notes = list222; + questStep14.SinglePlayerDutyOptions = singlePlayerDutyOptions; + reference156 = questStep14; + obj170.Steps = list218; + reference153 = obj170; + num++; + span207[num] = new QuestSequence + { + Sequence = 6 + }; + num++; + ref QuestSequence reference157 = ref span207[num]; + QuestSequence obj174 = new QuestSequence + { + Sequence = byte.MaxValue + }; num2 = 3; - List list237 = new List(num2); - CollectionsMarshal.SetCount(list237, num2); - Span span132 = CollectionsMarshal.AsSpan(list237); - ref QuestStep reference170 = ref span132[0]; - QuestStep obj187 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + List list223 = new List(num2); + CollectionsMarshal.SetCount(list223, num2); + Span span223 = CollectionsMarshal.AsSpan(list223); + index2 = 0; + ref QuestStep reference158 = ref span223[index2]; + QuestStep obj175 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; SkipConditions skipConditions60 = new SkipConditions(); - SkipStepConditions skipStepConditions58 = new SkipStepConditions(); + SkipStepConditions skipStepConditions60 = new SkipStepConditions(); num3 = 2; - List list238 = new List(num3); - CollectionsMarshal.SetCount(list238, num3); - Span span133 = CollectionsMarshal.AsSpan(list238); - span133[0] = 1334; - span133[1] = 1332; - skipStepConditions58.InTerritory = list238; - skipConditions60.StepIf = skipStepConditions58; + List list224 = new List(num3); + CollectionsMarshal.SetCount(list224, num3); + Span span224 = CollectionsMarshal.AsSpan(list224); + index3 = 0; + span224[index3] = 1334; + index3++; + span224[index3] = 1332; + skipStepConditions60.InTerritory = list224; + skipConditions60.StepIf = skipStepConditions60; + SkipAetheryteCondition obj176 = new SkipAetheryteCondition + { + InSameTerritory = true + }; + index3 = 2; + List list225 = new List(index3); + CollectionsMarshal.SetCount(list225, index3); + Span span225 = CollectionsMarshal.AsSpan(list225); + num3 = 0; + span225[num3] = 1334; + num3++; + span225[num3] = 1332; + obj176.InTerritory = list225; + skipConditions60.AetheryteShortcutIf = obj176; + obj175.SkipConditions = skipConditions60; + reference158 = obj175; + index2++; + ref QuestStep reference159 = ref span223[index2]; + QuestStep obj177 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + { + TargetTerritoryId = (ushort)1332 + }; + SkipConditions skipConditions61 = new SkipConditions(); + SkipStepConditions skipStepConditions61 = new SkipStepConditions(); + num3 = 1; + List list226 = new List(num3); + CollectionsMarshal.SetCount(list226, num3); + Span span226 = CollectionsMarshal.AsSpan(list226); + index3 = 0; + span226[index3] = 1332; + skipStepConditions61.InTerritory = list226; + skipConditions61.StepIf = skipStepConditions61; + obj177.SkipConditions = skipConditions61; + reference159 = obj177; + index2++; + span223[index2] = new QuestStep(EInteractionType.CompleteQuest, 1056175u, new Vector3(280.59814f, -115.97899f, -422.78174f), 1332); + obj174.Steps = list223; + reference157 = obj174; + questRoot17.QuestSequence = list207; + AddQuest(questId17, questRoot17); + QuestId questId18 = new QuestId(5434); + QuestRoot questRoot18 = new QuestRoot(); + num = 1; + List list227 = new List(num); + CollectionsMarshal.SetCount(list227, num); + Span span227 = CollectionsMarshal.AsSpan(list227); + index = 0; + span227[index] = "WigglyMuffin"; + questRoot18.Author = list227; + index = 5; + List list228 = new List(index); + CollectionsMarshal.SetCount(list228, index); + Span span228 = CollectionsMarshal.AsSpan(list228); + num = 0; + ref QuestSequence reference160 = ref span228[num]; + QuestSequence obj178 = new QuestSequence + { + Sequence = 0 + }; + index2 = 3; + List list229 = new List(index2); + CollectionsMarshal.SetCount(list229, index2); + Span span229 = CollectionsMarshal.AsSpan(list229); + num2 = 0; + ref QuestStep reference161 = ref span229[num2]; + QuestStep obj179 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + { + TargetTerritoryId = (ushort)1334, + Fly = true, + AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo + }; + SkipConditions skipConditions62 = new SkipConditions(); + SkipStepConditions skipStepConditions62 = new SkipStepConditions(); + index3 = 2; + List list230 = new List(index3); + CollectionsMarshal.SetCount(list230, index3); + Span span230 = CollectionsMarshal.AsSpan(list230); + num3 = 0; + span230[num3] = 1334; + num3++; + span230[num3] = 1332; + skipStepConditions62.InTerritory = list230; + skipConditions62.StepIf = skipStepConditions62; + SkipAetheryteCondition obj180 = new SkipAetheryteCondition + { + InSameTerritory = true + }; + num3 = 2; + List list231 = new List(num3); + CollectionsMarshal.SetCount(list231, num3); + Span span231 = CollectionsMarshal.AsSpan(list231); + index3 = 0; + span231[index3] = 1334; + index3++; + span231[index3] = 1332; + obj180.InTerritory = list231; + skipConditions62.AetheryteShortcutIf = obj180; + obj179.SkipConditions = skipConditions62; + reference161 = obj179; + num2++; + ref QuestStep reference162 = ref span229[num2]; + QuestStep obj181 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + { + TargetTerritoryId = (ushort)1332 + }; + SkipConditions skipConditions63 = new SkipConditions(); + SkipStepConditions skipStepConditions63 = new SkipStepConditions(); + index3 = 1; + List list232 = new List(index3); + CollectionsMarshal.SetCount(list232, index3); + Span span232 = CollectionsMarshal.AsSpan(list232); + num3 = 0; + span232[num3] = 1332; + skipStepConditions63.InTerritory = list232; + skipConditions63.StepIf = skipStepConditions63; + obj181.SkipConditions = skipConditions63; + reference162 = obj181; + num2++; + span229[num2] = new QuestStep(EInteractionType.AcceptQuest, 1056175u, new Vector3(280.59814f, -115.97899f, -422.78174f), 1332); + obj178.Steps = list229; + reference160 = obj178; + num++; + ref QuestSequence reference163 = ref span228[num]; + QuestSequence obj182 = new QuestSequence + { + Sequence = 1 + }; + num2 = 3; + List list233 = new List(num2); + CollectionsMarshal.SetCount(list233, num2); + Span span233 = CollectionsMarshal.AsSpan(list233); + index2 = 0; + ref QuestStep reference164 = ref span233[index2]; + QuestStep obj183 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + { + TargetTerritoryId = (ushort)1334, + Fly = true, + AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo + }; + SkipConditions skipConditions64 = new SkipConditions(); + SkipStepConditions skipStepConditions64 = new SkipStepConditions(); + num3 = 2; + List list234 = new List(num3); + CollectionsMarshal.SetCount(list234, num3); + Span span234 = CollectionsMarshal.AsSpan(list234); + index3 = 0; + span234[index3] = 1334; + index3++; + span234[index3] = 1332; + skipStepConditions64.InTerritory = list234; + skipConditions64.StepIf = skipStepConditions64; + SkipAetheryteCondition obj184 = new SkipAetheryteCondition + { + InSameTerritory = true + }; + index3 = 2; + List list235 = new List(index3); + CollectionsMarshal.SetCount(list235, index3); + Span span235 = CollectionsMarshal.AsSpan(list235); + num3 = 0; + span235[num3] = 1334; + num3++; + span235[num3] = 1332; + obj184.InTerritory = list235; + skipConditions64.AetheryteShortcutIf = obj184; + obj183.SkipConditions = skipConditions64; + reference164 = obj183; + index2++; + ref QuestStep reference165 = ref span233[index2]; + QuestStep obj185 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) + { + TargetTerritoryId = (ushort)1332 + }; + SkipConditions skipConditions65 = new SkipConditions(); + SkipStepConditions skipStepConditions65 = new SkipStepConditions(); + num3 = 1; + List list236 = new List(num3); + CollectionsMarshal.SetCount(list236, num3); + Span span236 = CollectionsMarshal.AsSpan(list236); + index3 = 0; + span236[index3] = 1332; + skipStepConditions65.InTerritory = list236; + skipConditions65.StepIf = skipStepConditions65; + obj185.SkipConditions = skipConditions65; + reference165 = obj185; + index2++; + span233[index2] = new QuestStep(EInteractionType.Interact, 1056179u, new Vector3(281.17798f, -115f, -643.061f), 1332); + obj182.Steps = list233; + reference163 = obj182; + num++; + ref QuestSequence reference166 = ref span228[num]; + QuestSequence obj186 = new QuestSequence + { + Sequence = 2 + }; + index2 = 3; + List list237 = new List(index2); + CollectionsMarshal.SetCount(list237, index2); + Span span237 = CollectionsMarshal.AsSpan(list237); + num2 = 0; + ref QuestStep reference167 = ref span237[num2]; + QuestStep obj187 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) + { + TargetTerritoryId = (ushort)1334, + Fly = true, + AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo + }; + SkipConditions skipConditions66 = new SkipConditions(); + SkipStepConditions skipStepConditions66 = new SkipStepConditions(); + index3 = 2; + List list238 = new List(index3); + CollectionsMarshal.SetCount(list238, index3); + Span span238 = CollectionsMarshal.AsSpan(list238); + num3 = 0; + span238[num3] = 1334; + num3++; + span238[num3] = 1332; + skipStepConditions66.InTerritory = list238; + skipConditions66.StepIf = skipStepConditions66; SkipAetheryteCondition obj188 = new SkipAetheryteCondition { InSameTerritory = true @@ -393012,298 +477813,49 @@ public static class AssemblyQuestLoader num3 = 2; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - Span span134 = CollectionsMarshal.AsSpan(list239); - span134[0] = 1334; - span134[1] = 1332; + Span span239 = CollectionsMarshal.AsSpan(list239); + index3 = 0; + span239[index3] = 1334; + index3++; + span239[index3] = 1332; obj188.InTerritory = list239; - skipConditions60.AetheryteShortcutIf = obj188; - obj187.SkipConditions = skipConditions60; - reference170 = obj187; - ref QuestStep reference171 = ref span132[1]; + skipConditions66.AetheryteShortcutIf = obj188; + obj187.SkipConditions = skipConditions66; + reference167 = obj187; + num2++; + ref QuestStep reference168 = ref span237[num2]; QuestStep obj189 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions61 = new SkipConditions(); - SkipStepConditions skipStepConditions59 = new SkipStepConditions(); - num3 = 1; - List list240 = new List(num3); - CollectionsMarshal.SetCount(list240, num3); - CollectionsMarshal.AsSpan(list240)[0] = 1332; - skipStepConditions59.InTerritory = list240; - skipConditions61.StepIf = skipStepConditions59; - obj189.SkipConditions = skipConditions61; - reference171 = obj189; - ref QuestStep reference172 = ref span132[2]; - QuestStep questStep16 = new QuestStep(EInteractionType.SinglePlayerDuty, 1056268u, new Vector3(264.7898f, -115f, -630.7317f), 1332); - SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - num3 = 1; - List list241 = new List(num3); - CollectionsMarshal.SetCount(list241, num3); - CollectionsMarshal.AsSpan(list241)[0] = "Not implemented in Boss Mod yet."; - singlePlayerDutyOptions.Notes = list241; - questStep16.SinglePlayerDutyOptions = singlePlayerDutyOptions; - reference172 = questStep16; - obj186.Steps = list237; - reference169 = obj186; - span125[6] = new QuestSequence - { - Sequence = 6 - }; - ref QuestSequence reference173 = ref span125[7]; - QuestSequence obj190 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 3; - List list242 = new List(num2); - CollectionsMarshal.SetCount(list242, num2); - Span span135 = CollectionsMarshal.AsSpan(list242); - ref QuestStep reference174 = ref span135[0]; - QuestStep obj191 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions62 = new SkipConditions(); - SkipStepConditions skipStepConditions60 = new SkipStepConditions(); - num3 = 2; - List list243 = new List(num3); - CollectionsMarshal.SetCount(list243, num3); - Span span136 = CollectionsMarshal.AsSpan(list243); - span136[0] = 1334; - span136[1] = 1332; - skipStepConditions60.InTerritory = list243; - skipConditions62.StepIf = skipStepConditions60; - SkipAetheryteCondition obj192 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list244 = new List(num3); - CollectionsMarshal.SetCount(list244, num3); - Span span137 = CollectionsMarshal.AsSpan(list244); - span137[0] = 1334; - span137[1] = 1332; - obj192.InTerritory = list244; - skipConditions62.AetheryteShortcutIf = obj192; - obj191.SkipConditions = skipConditions62; - reference174 = obj191; - ref QuestStep reference175 = ref span135[1]; - QuestStep obj193 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions63 = new SkipConditions(); - SkipStepConditions skipStepConditions61 = new SkipStepConditions(); - num3 = 1; - List list245 = new List(num3); - CollectionsMarshal.SetCount(list245, num3); - CollectionsMarshal.AsSpan(list245)[0] = 1332; - skipStepConditions61.InTerritory = list245; - skipConditions63.StepIf = skipStepConditions61; - obj193.SkipConditions = skipConditions63; - reference175 = obj193; - span135[2] = new QuestStep(EInteractionType.CompleteQuest, 1056175u, new Vector3(280.59814f, -115.97899f, -422.78174f), 1332); - obj190.Steps = list242; - reference173 = obj190; - questRoot18.QuestSequence = list226; - AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(5434); - QuestRoot questRoot19 = new QuestRoot(); - num = 1; - List list246 = new List(num); - CollectionsMarshal.SetCount(list246, num); - CollectionsMarshal.AsSpan(list246)[0] = "WigglyMuffin"; - questRoot19.Author = list246; - num = 5; - List list247 = new List(num); - CollectionsMarshal.SetCount(list247, num); - Span span138 = CollectionsMarshal.AsSpan(list247); - ref QuestSequence reference176 = ref span138[0]; - QuestSequence obj194 = new QuestSequence - { - Sequence = 0 - }; - num2 = 3; - List list248 = new List(num2); - CollectionsMarshal.SetCount(list248, num2); - Span span139 = CollectionsMarshal.AsSpan(list248); - ref QuestStep reference177 = ref span139[0]; - QuestStep obj195 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions64 = new SkipConditions(); - SkipStepConditions skipStepConditions62 = new SkipStepConditions(); - num3 = 2; - List list249 = new List(num3); - CollectionsMarshal.SetCount(list249, num3); - Span span140 = CollectionsMarshal.AsSpan(list249); - span140[0] = 1334; - span140[1] = 1332; - skipStepConditions62.InTerritory = list249; - skipConditions64.StepIf = skipStepConditions62; - SkipAetheryteCondition obj196 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list250 = new List(num3); - CollectionsMarshal.SetCount(list250, num3); - Span span141 = CollectionsMarshal.AsSpan(list250); - span141[0] = 1334; - span141[1] = 1332; - obj196.InTerritory = list250; - skipConditions64.AetheryteShortcutIf = obj196; - obj195.SkipConditions = skipConditions64; - reference177 = obj195; - ref QuestStep reference178 = ref span139[1]; - QuestStep obj197 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions65 = new SkipConditions(); - SkipStepConditions skipStepConditions63 = new SkipStepConditions(); - num3 = 1; - List list251 = new List(num3); - CollectionsMarshal.SetCount(list251, num3); - CollectionsMarshal.AsSpan(list251)[0] = 1332; - skipStepConditions63.InTerritory = list251; - skipConditions65.StepIf = skipStepConditions63; - obj197.SkipConditions = skipConditions65; - reference178 = obj197; - span139[2] = new QuestStep(EInteractionType.AcceptQuest, 1056175u, new Vector3(280.59814f, -115.97899f, -422.78174f), 1332); - obj194.Steps = list248; - reference176 = obj194; - ref QuestSequence reference179 = ref span138[1]; - QuestSequence obj198 = new QuestSequence - { - Sequence = 1 - }; - num2 = 3; - List list252 = new List(num2); - CollectionsMarshal.SetCount(list252, num2); - Span span142 = CollectionsMarshal.AsSpan(list252); - ref QuestStep reference180 = ref span142[0]; - QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions66 = new SkipConditions(); - SkipStepConditions skipStepConditions64 = new SkipStepConditions(); - num3 = 2; - List list253 = new List(num3); - CollectionsMarshal.SetCount(list253, num3); - Span span143 = CollectionsMarshal.AsSpan(list253); - span143[0] = 1334; - span143[1] = 1332; - skipStepConditions64.InTerritory = list253; - skipConditions66.StepIf = skipStepConditions64; - SkipAetheryteCondition obj200 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list254 = new List(num3); - CollectionsMarshal.SetCount(list254, num3); - Span span144 = CollectionsMarshal.AsSpan(list254); - span144[0] = 1334; - span144[1] = 1332; - obj200.InTerritory = list254; - skipConditions66.AetheryteShortcutIf = obj200; - obj199.SkipConditions = skipConditions66; - reference180 = obj199; - ref QuestStep reference181 = ref span142[1]; - QuestStep obj201 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; SkipConditions skipConditions67 = new SkipConditions(); - SkipStepConditions skipStepConditions65 = new SkipStepConditions(); - num3 = 1; - List list255 = new List(num3); - CollectionsMarshal.SetCount(list255, num3); - CollectionsMarshal.AsSpan(list255)[0] = 1332; - skipStepConditions65.InTerritory = list255; - skipConditions67.StepIf = skipStepConditions65; - obj201.SkipConditions = skipConditions67; - reference181 = obj201; - span142[2] = new QuestStep(EInteractionType.Interact, 1056179u, new Vector3(281.17798f, -115f, -643.061f), 1332); - obj198.Steps = list252; - reference179 = obj198; - ref QuestSequence reference182 = ref span138[2]; - QuestSequence obj202 = new QuestSequence - { - Sequence = 2 - }; - num2 = 3; - List list256 = new List(num2); - CollectionsMarshal.SetCount(list256, num2); - Span span145 = CollectionsMarshal.AsSpan(list256); - ref QuestStep reference183 = ref span145[0]; - QuestStep obj203 = new QuestStep(EInteractionType.Interact, 1056205u, new Vector3(7.7057495f, 50.700012f, 723.781f), 1192) - { - TargetTerritoryId = (ushort)1334, - Fly = true, - AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo - }; - SkipConditions skipConditions68 = new SkipConditions(); - SkipStepConditions skipStepConditions66 = new SkipStepConditions(); - num3 = 2; - List list257 = new List(num3); - CollectionsMarshal.SetCount(list257, num3); - Span span146 = CollectionsMarshal.AsSpan(list257); - span146[0] = 1334; - span146[1] = 1332; - skipStepConditions66.InTerritory = list257; - skipConditions68.StepIf = skipStepConditions66; - SkipAetheryteCondition obj204 = new SkipAetheryteCondition - { - InSameTerritory = true - }; - num3 = 2; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - Span span147 = CollectionsMarshal.AsSpan(list258); - span147[0] = 1334; - span147[1] = 1332; - obj204.InTerritory = list258; - skipConditions68.AetheryteShortcutIf = obj204; - obj203.SkipConditions = skipConditions68; - reference183 = obj203; - ref QuestStep reference184 = ref span145[1]; - QuestStep obj205 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) - { - TargetTerritoryId = (ushort)1332 - }; - SkipConditions skipConditions69 = new SkipConditions(); SkipStepConditions skipStepConditions67 = new SkipStepConditions(); - num3 = 1; - List list259 = new List(num3); - CollectionsMarshal.SetCount(list259, num3); - CollectionsMarshal.AsSpan(list259)[0] = 1332; - skipStepConditions67.InTerritory = list259; - skipConditions69.StepIf = skipStepConditions67; - obj205.SkipConditions = skipConditions69; - reference184 = obj205; - span145[2] = new QuestStep(EInteractionType.Interact, 2014998u, new Vector3(281.0471f, -98f, -277.821f), 1332); - obj202.Steps = list256; - reference182 = obj202; - ref QuestSequence reference185 = ref span138[3]; - QuestSequence obj206 = new QuestSequence + index3 = 1; + List list240 = new List(index3); + CollectionsMarshal.SetCount(list240, index3); + Span span240 = CollectionsMarshal.AsSpan(list240); + num3 = 0; + span240[num3] = 1332; + skipStepConditions67.InTerritory = list240; + skipConditions67.StepIf = skipStepConditions67; + obj189.SkipConditions = skipConditions67; + reference168 = obj189; + num2++; + span237[num2] = new QuestStep(EInteractionType.Interact, 2014998u, new Vector3(281.0471f, -98f, -277.821f), 1332); + obj186.Steps = list237; + reference166 = obj186; + num++; + ref QuestSequence reference169 = ref span228[num]; + QuestSequence obj190 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list260 = new List(num2); - CollectionsMarshal.SetCount(list260, num2); - CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1056190u, new Vector3(-1.8158569f, 53.200012f, 768.24585f), 1192) + List list241 = new List(num2); + CollectionsMarshal.SetCount(list241, num2); + Span span241 = CollectionsMarshal.AsSpan(list241); + index2 = 0; + span241[index2] = new QuestStep(EInteractionType.Interact, 1056190u, new Vector3(-1.8158569f, 53.200012f, 768.24585f), 1192) { Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, @@ -393315,17 +477867,20 @@ public static class AssemblyQuestLoader } } }; - obj206.Steps = list260; - reference185 = obj206; - ref QuestSequence reference186 = ref span138[4]; - QuestSequence obj207 = new QuestSequence + obj190.Steps = list241; + reference169 = obj190; + num++; + ref QuestSequence reference170 = ref span228[num]; + QuestSequence obj191 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list261 = new List(num2); - CollectionsMarshal.SetCount(list261, num2); - CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.CompleteQuest, 1056199u, new Vector3(17.31897f, 38.80659f, -410.5135f), 1186) + index2 = 1; + List list242 = new List(index2); + CollectionsMarshal.SetCount(list242, index2); + Span span242 = CollectionsMarshal.AsSpan(list242); + num2 = 0; + span242[num2] = new QuestStep(EInteractionType.CompleteQuest, 1056199u, new Vector3(17.31897f, 38.80659f, -410.5135f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -393341,30 +477896,35 @@ public static class AssemblyQuestLoader } } }; - obj207.Steps = list261; - reference186 = obj207; - questRoot19.QuestSequence = list247; - AddQuest(questId19, questRoot19); - QuestId questId20 = new QuestId(5435); - QuestRoot questRoot20 = new QuestRoot(); + obj191.Steps = list242; + reference170 = obj191; + questRoot18.QuestSequence = list228; + AddQuest(questId18, questRoot18); + QuestId questId19 = new QuestId(5435); + QuestRoot questRoot19 = new QuestRoot(); num = 1; - List list262 = new List(num); - CollectionsMarshal.SetCount(list262, num); - CollectionsMarshal.AsSpan(list262)[0] = "WigglyMuffin"; - questRoot20.Author = list262; - num = 4; - List list263 = new List(num); - CollectionsMarshal.SetCount(list263, num); - Span span148 = CollectionsMarshal.AsSpan(list263); - ref QuestSequence reference187 = ref span148[0]; - QuestSequence obj208 = new QuestSequence + List list243 = new List(num); + CollectionsMarshal.SetCount(list243, num); + Span span243 = CollectionsMarshal.AsSpan(list243); + index = 0; + span243[index] = "WigglyMuffin"; + questRoot19.Author = list243; + index = 4; + List list244 = new List(index); + CollectionsMarshal.SetCount(list244, index); + Span span244 = CollectionsMarshal.AsSpan(list244); + num = 0; + ref QuestSequence reference171 = ref span244[num]; + QuestSequence obj192 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list264 = new List(num2); - CollectionsMarshal.SetCount(list264, num2); - CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050471u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + List list245 = new List(num2); + CollectionsMarshal.SetCount(list245, num2); + Span span245 = CollectionsMarshal.AsSpan(list245); + index2 = 0; + span245[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050471u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -393380,88 +477940,103 @@ public static class AssemblyQuestLoader } } }; - obj208.Steps = list264; - reference187 = obj208; - ref QuestSequence reference188 = ref span148[1]; - QuestSequence obj209 = new QuestSequence + obj192.Steps = list245; + reference171 = obj192; + num++; + ref QuestSequence reference172 = ref span244[num]; + QuestSequence obj193 = new QuestSequence { Sequence = 1 }; - num2 = 2; - List list265 = new List(num2); - CollectionsMarshal.SetCount(list265, num2); - Span span149 = CollectionsMarshal.AsSpan(list265); - span149[0] = new QuestStep(EInteractionType.Interact, 2013724u, new Vector3(498.34436f, 60.593506f, 129.13708f), 1186) + index2 = 2; + List list246 = new List(index2); + CollectionsMarshal.SetCount(list246, index2); + Span span246 = CollectionsMarshal.AsSpan(list246); + num2 = 0; + span246[num2] = new QuestStep(EInteractionType.Interact, 2013724u, new Vector3(498.34436f, 60.593506f, 129.13708f), 1186) { TargetTerritoryId = (ushort)1223 }; - span149[1] = new QuestStep(EInteractionType.Interact, 1056301u, new Vector3(5.5999756f, 0f, 2.822876f), 1223); - obj209.Steps = list265; - reference188 = obj209; - ref QuestSequence reference189 = ref span148[2]; - QuestSequence obj210 = new QuestSequence + num2++; + span246[num2] = new QuestStep(EInteractionType.Interact, 1056301u, new Vector3(5.5999756f, 0f, 2.822876f), 1223); + obj193.Steps = list246; + reference172 = obj193; + num++; + ref QuestSequence reference173 = ref span244[num]; + QuestSequence obj194 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list266 = new List(num2); - CollectionsMarshal.SetCount(list266, num2); - CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1056301u, new Vector3(5.5999756f, 0f, 2.822876f), 1223); - obj210.Steps = list266; - reference189 = obj210; - ref QuestSequence reference190 = ref span148[3]; - QuestSequence obj211 = new QuestSequence + List list247 = new List(num2); + CollectionsMarshal.SetCount(list247, num2); + Span span247 = CollectionsMarshal.AsSpan(list247); + index2 = 0; + span247[index2] = new QuestStep(EInteractionType.Interact, 1056301u, new Vector3(5.5999756f, 0f, 2.822876f), 1223); + obj194.Steps = list247; + reference173 = obj194; + num++; + ref QuestSequence reference174 = ref span244[num]; + QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list267 = new List(num2); - CollectionsMarshal.SetCount(list267, num2); - Span span150 = CollectionsMarshal.AsSpan(list267); - ref QuestStep reference191 = ref span150[0]; - QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) + index2 = 2; + List list248 = new List(index2); + CollectionsMarshal.SetCount(list248, index2); + Span span248 = CollectionsMarshal.AsSpan(list248); + num2 = 0; + ref QuestStep reference175 = ref span248[num2]; + QuestStep obj196 = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224 }; - SkipConditions skipConditions70 = new SkipConditions(); + SkipConditions skipConditions68 = new SkipConditions(); SkipStepConditions skipStepConditions68 = new SkipStepConditions(); num3 = 1; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - CollectionsMarshal.AsSpan(list268)[0] = 1224; - skipStepConditions68.NotInTerritory = list268; - skipConditions70.StepIf = skipStepConditions68; - obj212.SkipConditions = skipConditions70; - reference191 = obj212; - span150[1] = new QuestStep(EInteractionType.CompleteQuest, 1056303u, new Vector3(0.2288208f, -2.3919762E-12f, -13.229614f), 1224) + List list249 = new List(num3); + CollectionsMarshal.SetCount(list249, num3); + Span span249 = CollectionsMarshal.AsSpan(list249); + index3 = 0; + span249[index3] = 1224; + skipStepConditions68.NotInTerritory = list249; + skipConditions68.StepIf = skipStepConditions68; + obj196.SkipConditions = skipConditions68; + reference175 = obj196; + num2++; + span248[num2] = new QuestStep(EInteractionType.CompleteQuest, 1056303u, new Vector3(0.2288208f, -2.3919762E-12f, -13.229614f), 1224) { NextQuestId = new QuestId(5436) }; - obj211.Steps = list267; - reference190 = obj211; - questRoot20.QuestSequence = list263; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(5436); - QuestRoot questRoot21 = new QuestRoot(); + obj195.Steps = list248; + reference174 = obj195; + questRoot19.QuestSequence = list244; + AddQuest(questId19, questRoot19); + QuestId questId20 = new QuestId(5436); + QuestRoot questRoot20 = new QuestRoot(); num = 1; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - CollectionsMarshal.AsSpan(list269)[0] = "WigglyMuffin"; - questRoot21.Author = list269; - num = 3; - List list270 = new List(num); - CollectionsMarshal.SetCount(list270, num); - Span span151 = CollectionsMarshal.AsSpan(list270); - ref QuestSequence reference192 = ref span151[0]; - QuestSequence obj213 = new QuestSequence + List list250 = new List(num); + CollectionsMarshal.SetCount(list250, num); + Span span250 = CollectionsMarshal.AsSpan(list250); + index = 0; + span250[index] = "WigglyMuffin"; + questRoot20.Author = list250; + index = 3; + List list251 = new List(index); + CollectionsMarshal.SetCount(list251, index); + Span span251 = CollectionsMarshal.AsSpan(list251); + num = 0; + ref QuestSequence reference176 = ref span251[num]; + QuestSequence obj197 = new QuestSequence { Sequence = 0 }; num2 = 2; - List list271 = new List(num2); - CollectionsMarshal.SetCount(list271, num2); - Span span152 = CollectionsMarshal.AsSpan(list271); - span152[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) + List list252 = new List(num2); + CollectionsMarshal.SetCount(list252, num2); + Span span252 = CollectionsMarshal.AsSpan(list252); + index2 = 0; + span252[index2] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -393478,79 +478053,92 @@ public static class AssemblyQuestLoader } } }; - span152[1] = new QuestStep(EInteractionType.AcceptQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224); - obj213.Steps = list271; - reference192 = obj213; - ref QuestSequence reference193 = ref span151[1]; - QuestSequence obj214 = new QuestSequence + index2++; + span252[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224); + obj197.Steps = list252; + reference176 = obj197; + num++; + ref QuestSequence reference177 = ref span251[num]; + QuestSequence obj198 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list272 = new List(num2); - CollectionsMarshal.SetCount(list272, num2); - CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + index2 = 1; + List list253 = new List(index2); + CollectionsMarshal.SetCount(list253, index2); + Span span253 = CollectionsMarshal.AsSpan(list253); + num2 = 0; + span253[num2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { ContentFinderConditionId = 1068u } }; - obj214.Steps = list272; - reference193 = obj214; - ref QuestSequence reference194 = ref span151[2]; - QuestSequence obj215 = new QuestSequence + obj198.Steps = list253; + reference177 = obj198; + num++; + ref QuestSequence reference178 = ref span251[num]; + QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - List list273 = new List(num2); - CollectionsMarshal.SetCount(list273, num2); - Span span153 = CollectionsMarshal.AsSpan(list273); - ref QuestStep reference195 = ref span153[0]; - QuestStep obj216 = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) + List list254 = new List(num2); + CollectionsMarshal.SetCount(list254, num2); + Span span254 = CollectionsMarshal.AsSpan(list254); + index2 = 0; + ref QuestStep reference179 = ref span254[index2]; + QuestStep obj200 = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224 }; - SkipConditions skipConditions71 = new SkipConditions(); + SkipConditions skipConditions69 = new SkipConditions(); SkipStepConditions skipStepConditions69 = new SkipStepConditions(); - num3 = 1; - List list274 = new List(num3); - CollectionsMarshal.SetCount(list274, num3); - CollectionsMarshal.AsSpan(list274)[0] = 1224; - skipStepConditions69.NotInTerritory = list274; - skipConditions71.StepIf = skipStepConditions69; - obj216.SkipConditions = skipConditions71; - reference195 = obj216; - span153[1] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) + index3 = 1; + List list255 = new List(index3); + CollectionsMarshal.SetCount(list255, index3); + Span span255 = CollectionsMarshal.AsSpan(list255); + num3 = 0; + span255[num3] = 1224; + skipStepConditions69.NotInTerritory = list255; + skipConditions69.StepIf = skipStepConditions69; + obj200.SkipConditions = skipConditions69; + reference179 = obj200; + index2++; + span254[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) { NextQuestId = new QuestId(5437) }; - obj215.Steps = list273; - reference194 = obj215; - questRoot21.QuestSequence = list270; - AddQuest(questId21, questRoot21); - QuestId questId22 = new QuestId(5437); - QuestRoot questRoot22 = new QuestRoot(); + obj199.Steps = list254; + reference178 = obj199; + questRoot20.QuestSequence = list251; + AddQuest(questId20, questRoot20); + QuestId questId21 = new QuestId(5437); + QuestRoot questRoot21 = new QuestRoot(); num = 1; - List list275 = new List(num); - CollectionsMarshal.SetCount(list275, num); - CollectionsMarshal.AsSpan(list275)[0] = "WigglyMuffin"; - questRoot22.Author = list275; - num = 5; - List list276 = new List(num); - CollectionsMarshal.SetCount(list276, num); - Span span154 = CollectionsMarshal.AsSpan(list276); - ref QuestSequence reference196 = ref span154[0]; - QuestSequence obj217 = new QuestSequence + List list256 = new List(num); + CollectionsMarshal.SetCount(list256, num); + Span span256 = CollectionsMarshal.AsSpan(list256); + index = 0; + span256[index] = "WigglyMuffin"; + questRoot21.Author = list256; + index = 5; + List list257 = new List(index); + CollectionsMarshal.SetCount(list257, index); + Span span257 = CollectionsMarshal.AsSpan(list257); + num = 0; + ref QuestSequence reference180 = ref span257[num]; + QuestSequence obj201 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list277 = new List(num2); - CollectionsMarshal.SetCount(list277, num2); - Span span155 = CollectionsMarshal.AsSpan(list277); - span155[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) + index2 = 2; + List list258 = new List(index2); + CollectionsMarshal.SetCount(list258, index2); + Span span258 = CollectionsMarshal.AsSpan(list258); + num2 = 0; + span258[num2] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -393567,18 +478155,22 @@ public static class AssemblyQuestLoader } } }; - span155[1] = new QuestStep(EInteractionType.AcceptQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224); - obj217.Steps = list277; - reference196 = obj217; - ref QuestSequence reference197 = ref span154[1]; - QuestSequence obj218 = new QuestSequence + num2++; + span258[num2] = new QuestStep(EInteractionType.AcceptQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224); + obj201.Steps = list258; + reference180 = obj201; + num++; + ref QuestSequence reference181 = ref span257[num]; + QuestSequence obj202 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list278 = new List(num2); - CollectionsMarshal.SetCount(list278, num2); - CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.Interact, 1056304u, new Vector3(491.32507f, 59.55f, 128.09949f), 1186) + List list259 = new List(num2); + CollectionsMarshal.SetCount(list259, num2); + Span span259 = CollectionsMarshal.AsSpan(list259); + index2 = 0; + span259[index2] = new QuestStep(EInteractionType.Interact, 1056304u, new Vector3(491.32507f, 59.55f, 128.09949f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -393594,18 +478186,20 @@ public static class AssemblyQuestLoader } } }; - obj218.Steps = list278; - reference197 = obj218; - ref QuestSequence reference198 = ref span154[2]; - QuestSequence obj219 = new QuestSequence + obj202.Steps = list259; + reference181 = obj202; + num++; + ref QuestSequence reference182 = ref span257[num]; + QuestSequence obj203 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list279 = new List(num2); - CollectionsMarshal.SetCount(list279, num2); - Span span156 = CollectionsMarshal.AsSpan(list279); - span156[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) + index2 = 2; + List list260 = new List(index2); + CollectionsMarshal.SetCount(list260, index2); + Span span260 = CollectionsMarshal.AsSpan(list260); + num2 = 0; + span260[num2] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -393622,79 +478216,92 @@ public static class AssemblyQuestLoader } } }; - span156[1] = new QuestStep(EInteractionType.Interact, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224); - obj219.Steps = list279; - reference198 = obj219; - ref QuestSequence reference199 = ref span154[3]; - QuestSequence obj220 = new QuestSequence + num2++; + span260[num2] = new QuestStep(EInteractionType.Interact, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224); + obj203.Steps = list260; + reference182 = obj203; + num++; + ref QuestSequence reference183 = ref span257[num]; + QuestSequence obj204 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list280 = new List(num2); - CollectionsMarshal.SetCount(list280, num2); - CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + List list261 = new List(num2); + CollectionsMarshal.SetCount(list261, num2); + Span span261 = CollectionsMarshal.AsSpan(list261); + index2 = 0; + span261[index2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { ContentFinderConditionId = 1070u } }; - obj220.Steps = list280; - reference199 = obj220; - ref QuestSequence reference200 = ref span154[4]; - QuestSequence obj221 = new QuestSequence + obj204.Steps = list261; + reference183 = obj204; + num++; + ref QuestSequence reference184 = ref span257[num]; + QuestSequence obj205 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; - List list281 = new List(num2); - CollectionsMarshal.SetCount(list281, num2); - Span span157 = CollectionsMarshal.AsSpan(list281); - ref QuestStep reference201 = ref span157[0]; - QuestStep obj222 = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) + index2 = 2; + List list262 = new List(index2); + CollectionsMarshal.SetCount(list262, index2); + Span span262 = CollectionsMarshal.AsSpan(list262); + num2 = 0; + ref QuestStep reference185 = ref span262[num2]; + QuestStep obj206 = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224 }; - SkipConditions skipConditions72 = new SkipConditions(); + SkipConditions skipConditions70 = new SkipConditions(); SkipStepConditions skipStepConditions70 = new SkipStepConditions(); num3 = 1; - List list282 = new List(num3); - CollectionsMarshal.SetCount(list282, num3); - CollectionsMarshal.AsSpan(list282)[0] = 1224; - skipStepConditions70.NotInTerritory = list282; - skipConditions72.StepIf = skipStepConditions70; - obj222.SkipConditions = skipConditions72; - reference201 = obj222; - span157[1] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) + List list263 = new List(num3); + CollectionsMarshal.SetCount(list263, num3); + Span span263 = CollectionsMarshal.AsSpan(list263); + index3 = 0; + span263[index3] = 1224; + skipStepConditions70.NotInTerritory = list263; + skipConditions70.StepIf = skipStepConditions70; + obj206.SkipConditions = skipConditions70; + reference185 = obj206; + num2++; + span262[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) { NextQuestId = new QuestId(5438) }; - obj221.Steps = list281; - reference200 = obj221; - questRoot22.QuestSequence = list276; - AddQuest(questId22, questRoot22); - QuestId questId23 = new QuestId(5438); - QuestRoot questRoot23 = new QuestRoot(); + obj205.Steps = list262; + reference184 = obj205; + questRoot21.QuestSequence = list257; + AddQuest(questId21, questRoot21); + QuestId questId22 = new QuestId(5438); + QuestRoot questRoot22 = new QuestRoot(); num = 1; - List list283 = new List(num); - CollectionsMarshal.SetCount(list283, num); - CollectionsMarshal.AsSpan(list283)[0] = "WigglyMuffin"; - questRoot23.Author = list283; - num = 5; - List list284 = new List(num); - CollectionsMarshal.SetCount(list284, num); - Span span158 = CollectionsMarshal.AsSpan(list284); - ref QuestSequence reference202 = ref span158[0]; - QuestSequence obj223 = new QuestSequence + List list264 = new List(num); + CollectionsMarshal.SetCount(list264, num); + Span span264 = CollectionsMarshal.AsSpan(list264); + index = 0; + span264[index] = "WigglyMuffin"; + questRoot22.Author = list264; + index = 5; + List list265 = new List(index); + CollectionsMarshal.SetCount(list265, index); + Span span265 = CollectionsMarshal.AsSpan(list265); + num = 0; + ref QuestSequence reference186 = ref span265[num]; + QuestSequence obj207 = new QuestSequence { Sequence = 0 }; num2 = 2; - List list285 = new List(num2); - CollectionsMarshal.SetCount(list285, num2); - Span span159 = CollectionsMarshal.AsSpan(list285); - span159[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) + List list266 = new List(num2); + CollectionsMarshal.SetCount(list266, num2); + Span span266 = CollectionsMarshal.AsSpan(list266); + index2 = 0; + span266[index2] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -393711,113 +478318,143 @@ public static class AssemblyQuestLoader } } }; - span159[1] = new QuestStep(EInteractionType.AcceptQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224); - obj223.Steps = list285; - reference202 = obj223; - ref QuestSequence reference203 = ref span158[1]; - QuestSequence obj224 = new QuestSequence + index2++; + span266[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224); + obj207.Steps = list266; + reference186 = obj207; + num++; + ref QuestSequence reference187 = ref span265[num]; + QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list286 = new List(num2); - CollectionsMarshal.SetCount(list286, num2); - CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1056307u, new Vector3(4.257263f, 0f, -6.4851074f), 1344); - obj224.Steps = list286; - reference203 = obj224; - ref QuestSequence reference204 = ref span158[2]; - QuestSequence obj225 = new QuestSequence + index2 = 1; + List list267 = new List(index2); + CollectionsMarshal.SetCount(list267, index2); + Span span267 = CollectionsMarshal.AsSpan(list267); + num2 = 0; + span267[num2] = new QuestStep(EInteractionType.Interact, 1056307u, new Vector3(4.257263f, 0f, -6.4851074f), 1344); + obj208.Steps = list267; + reference187 = obj208; + num++; + ref QuestSequence reference188 = ref span265[num]; + QuestSequence obj209 = new QuestSequence { Sequence = 2 }; num2 = 2; - List list287 = new List(num2); - CollectionsMarshal.SetCount(list287, num2); - Span span160 = CollectionsMarshal.AsSpan(list287); - span160[0] = new QuestStep(EInteractionType.Interact, 2015047u, new Vector3(4.0749f, 0.81f, 10.5759f), 1344) + List list268 = new List(num2); + CollectionsMarshal.SetCount(list268, num2); + Span span268 = CollectionsMarshal.AsSpan(list268); + index2 = 0; + span268[index2] = new QuestStep(EInteractionType.Interact, 2015047u, new Vector3(4.0749f, 0.81f, 10.5759f), 1344) { TargetTerritoryId = (ushort)1186 }; - span160[1] = new QuestStep(EInteractionType.Interact, 1056308u, new Vector3(491.1726f, 59.549995f, 123.91846f), 1186); - obj225.Steps = list287; - reference204 = obj225; - ref QuestSequence reference205 = ref span158[3]; - QuestSequence obj226 = new QuestSequence + index2++; + span268[index2] = new QuestStep(EInteractionType.Interact, 1056308u, new Vector3(491.1726f, 59.549995f, 123.91846f), 1186); + obj209.Steps = list268; + reference188 = obj209; + num++; + ref QuestSequence reference189 = ref span265[num]; + QuestSequence obj210 = new QuestSequence { Sequence = 3 }; - num2 = 3; - List list288 = new List(num2); - CollectionsMarshal.SetCount(list288, num2); - Span span161 = CollectionsMarshal.AsSpan(list288); - ref QuestStep reference206 = ref span161[0]; - QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1056310u, new Vector3(391.4701f, 60f, 75.42529f), 1186); + index2 = 3; + List list269 = new List(index2); + CollectionsMarshal.SetCount(list269, index2); + Span span269 = CollectionsMarshal.AsSpan(list269); + num2 = 0; + ref QuestStep reference190 = ref span269[num2]; + QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1056310u, new Vector3(391.4701f, 60f, 75.42529f), 1186); + index3 = 6; + List list270 = new List(index3); + CollectionsMarshal.SetCount(list270, index3); + Span span270 = CollectionsMarshal.AsSpan(list270); + num3 = 0; + span270[num3] = null; + num3++; + span270[num3] = null; + num3++; + span270[num3] = null; + num3++; + span270[num3] = null; + num3++; + span270[num3] = null; + num3++; + span270[num3] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); + questStep15.CompletionQuestVariablesFlags = list270; + reference190 = questStep15; + num2++; + ref QuestStep reference191 = ref span269[num2]; + QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1056311u, new Vector3(379.99524f, 50.749996f, 172.0149f), 1186); num3 = 6; - List list289 = new List(num3); - CollectionsMarshal.SetCount(list289, num3); - Span span162 = CollectionsMarshal.AsSpan(list289); - span162[0] = null; - span162[1] = null; - span162[2] = null; - span162[3] = null; - span162[4] = null; - span162[5] = new QuestWorkValue((byte)8, null, EQuestWorkMode.Bitwise); - questStep17.CompletionQuestVariablesFlags = list289; - reference206 = questStep17; - ref QuestStep reference207 = ref span161[1]; - QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1056311u, new Vector3(379.99524f, 50.749996f, 172.0149f), 1186); - num3 = 6; - List list290 = new List(num3); - CollectionsMarshal.SetCount(list290, num3); - Span span163 = CollectionsMarshal.AsSpan(list290); - span163[0] = null; - span163[1] = null; - span163[2] = null; - span163[3] = null; - span163[4] = null; - span163[5] = new QuestWorkValue((byte)12, null, EQuestWorkMode.Bitwise); - questStep18.CompletionQuestVariablesFlags = list290; - reference207 = questStep18; - span161[2] = new QuestStep(EInteractionType.Interact, 1056312u, new Vector3(340.81018f, 50.75f, 278.43127f), 1186); - obj226.Steps = list288; - reference205 = obj226; - ref QuestSequence reference208 = ref span158[4]; - QuestSequence obj227 = new QuestSequence + List list271 = new List(num3); + CollectionsMarshal.SetCount(list271, num3); + Span span271 = CollectionsMarshal.AsSpan(list271); + index3 = 0; + span271[index3] = null; + index3++; + span271[index3] = null; + index3++; + span271[index3] = null; + index3++; + span271[index3] = null; + index3++; + span271[index3] = null; + index3++; + span271[index3] = new QuestWorkValue((byte)12, null, EQuestWorkMode.Bitwise); + questStep16.CompletionQuestVariablesFlags = list271; + reference191 = questStep16; + num2++; + span269[num2] = new QuestStep(EInteractionType.Interact, 1056312u, new Vector3(340.81018f, 50.75f, 278.43127f), 1186); + obj210.Steps = list269; + reference189 = obj210; + num++; + ref QuestSequence reference192 = ref span265[num]; + QuestSequence obj211 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list291 = new List(num2); - CollectionsMarshal.SetCount(list291, num2); - CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049787u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) + List list272 = new List(num2); + CollectionsMarshal.SetCount(list272, num2); + Span span272 = CollectionsMarshal.AsSpan(list272); + index2 = 0; + span272[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049787u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { NextQuestId = new QuestId(5439) }; - obj227.Steps = list291; - reference208 = obj227; - questRoot23.QuestSequence = list284; - AddQuest(questId23, questRoot23); - QuestId questId24 = new QuestId(5439); - QuestRoot questRoot24 = new QuestRoot(); + obj211.Steps = list272; + reference192 = obj211; + questRoot22.QuestSequence = list265; + AddQuest(questId22, questRoot22); + QuestId questId23 = new QuestId(5439); + QuestRoot questRoot23 = new QuestRoot(); num = 1; - List list292 = new List(num); - CollectionsMarshal.SetCount(list292, num); - CollectionsMarshal.AsSpan(list292)[0] = "WigglyMuffin"; - questRoot24.Author = list292; - num = 4; - List list293 = new List(num); - CollectionsMarshal.SetCount(list293, num); - Span span164 = CollectionsMarshal.AsSpan(list293); - ref QuestSequence reference209 = ref span164[0]; - QuestSequence obj228 = new QuestSequence + List list273 = new List(num); + CollectionsMarshal.SetCount(list273, num); + Span span273 = CollectionsMarshal.AsSpan(list273); + index = 0; + span273[index] = "WigglyMuffin"; + questRoot23.Author = list273; + index = 4; + List list274 = new List(index); + CollectionsMarshal.SetCount(list274, index); + Span span274 = CollectionsMarshal.AsSpan(list274); + num = 0; + ref QuestSequence reference193 = ref span274[num]; + QuestSequence obj212 = new QuestSequence { Sequence = 0 }; - num2 = 2; - List list294 = new List(num2); - CollectionsMarshal.SetCount(list294, num2); - Span span165 = CollectionsMarshal.AsSpan(list294); - span165[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) + index2 = 2; + List list275 = new List(index2); + CollectionsMarshal.SetCount(list275, index2); + Span span275 = CollectionsMarshal.AsSpan(list275); + num2 = 0; + span275[num2] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -393834,67 +478471,79 @@ public static class AssemblyQuestLoader } } }; - span165[1] = new QuestStep(EInteractionType.AcceptQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224); - obj228.Steps = list294; - reference209 = obj228; - ref QuestSequence reference210 = ref span164[1]; - QuestSequence obj229 = new QuestSequence + num2++; + span275[num2] = new QuestStep(EInteractionType.AcceptQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224); + obj212.Steps = list275; + reference193 = obj212; + num++; + ref QuestSequence reference194 = ref span274[num]; + QuestSequence obj213 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list295 = new List(num2); - CollectionsMarshal.SetCount(list295, num2); - CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + List list276 = new List(num2); + CollectionsMarshal.SetCount(list276, num2); + Span span276 = CollectionsMarshal.AsSpan(list276); + index2 = 0; + span276[index2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { ContentFinderConditionId = 1072u } }; - obj229.Steps = list295; - reference210 = obj229; - span164[2] = new QuestSequence + obj213.Steps = list276; + reference194 = obj213; + num++; + span274[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference211 = ref span164[3]; - QuestSequence obj230 = new QuestSequence + num++; + ref QuestSequence reference195 = ref span274[num]; + QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list296 = new List(num2); - CollectionsMarshal.SetCount(list296, num2); - CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) + index2 = 1; + List list277 = new List(index2); + CollectionsMarshal.SetCount(list277, index2); + Span span277 = CollectionsMarshal.AsSpan(list277); + num2 = 0; + span277[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) { NextQuestId = new QuestId(5440) }; - obj230.Steps = list296; - reference211 = obj230; - questRoot24.QuestSequence = list293; - AddQuest(questId24, questRoot24); - QuestId questId25 = new QuestId(5440); - QuestRoot questRoot25 = new QuestRoot(); + obj214.Steps = list277; + reference195 = obj214; + questRoot23.QuestSequence = list274; + AddQuest(questId23, questRoot23); + QuestId questId24 = new QuestId(5440); + QuestRoot questRoot24 = new QuestRoot(); num = 1; - List list297 = new List(num); - CollectionsMarshal.SetCount(list297, num); - CollectionsMarshal.AsSpan(list297)[0] = "WigglyMuffin"; - questRoot25.Author = list297; - num = 6; - List list298 = new List(num); - CollectionsMarshal.SetCount(list298, num); - Span span166 = CollectionsMarshal.AsSpan(list298); - ref QuestSequence reference212 = ref span166[0]; - QuestSequence obj231 = new QuestSequence + List list278 = new List(num); + CollectionsMarshal.SetCount(list278, num); + Span span278 = CollectionsMarshal.AsSpan(list278); + index = 0; + span278[index] = "WigglyMuffin"; + questRoot24.Author = list278; + index = 6; + List list279 = new List(index); + CollectionsMarshal.SetCount(list279, index); + Span span279 = CollectionsMarshal.AsSpan(list279); + num = 0; + ref QuestSequence reference196 = ref span279[num]; + QuestSequence obj215 = new QuestSequence { Sequence = 0 }; num2 = 2; - List list299 = new List(num2); - CollectionsMarshal.SetCount(list299, num2); - Span span167 = CollectionsMarshal.AsSpan(list299); - span167[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) + List list280 = new List(num2); + CollectionsMarshal.SetCount(list280, num2); + Span span280 = CollectionsMarshal.AsSpan(list280); + index2 = 0; + span280[index2] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -393911,51 +478560,61 @@ public static class AssemblyQuestLoader } } }; - span167[1] = new QuestStep(EInteractionType.AcceptQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224); - obj231.Steps = list299; - reference212 = obj231; - ref QuestSequence reference213 = ref span166[1]; - QuestSequence obj232 = new QuestSequence + index2++; + span280[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224); + obj215.Steps = list280; + reference196 = obj215; + num++; + ref QuestSequence reference197 = ref span279[num]; + QuestSequence obj216 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list300 = new List(num2); - CollectionsMarshal.SetCount(list300, num2); - CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) + index2 = 1; + List list281 = new List(index2); + CollectionsMarshal.SetCount(list281, index2); + Span span281 = CollectionsMarshal.AsSpan(list281); + num2 = 0; + span281[num2] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { ContentFinderConditionId = 1074u } }; - obj232.Steps = list300; - reference213 = obj232; - span166[2] = new QuestSequence + obj216.Steps = list281; + reference197 = obj216; + num++; + span279[num] = new QuestSequence { Sequence = 2 }; - ref QuestSequence reference214 = ref span166[3]; - QuestSequence obj233 = new QuestSequence + num++; + ref QuestSequence reference198 = ref span279[num]; + QuestSequence obj217 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list301 = new List(num2); - CollectionsMarshal.SetCount(list301, num2); - CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 1056316u, new Vector3(-3.5858765f, 0.25695172f, -4.3793945f), 1223); - obj233.Steps = list301; - reference214 = obj233; - ref QuestSequence reference215 = ref span166[4]; - QuestSequence obj234 = new QuestSequence + List list282 = new List(num2); + CollectionsMarshal.SetCount(list282, num2); + Span span282 = CollectionsMarshal.AsSpan(list282); + index2 = 0; + span282[index2] = new QuestStep(EInteractionType.Interact, 1056316u, new Vector3(-3.5858765f, 0.25695172f, -4.3793945f), 1223); + obj217.Steps = list282; + reference198 = obj217; + num++; + ref QuestSequence reference199 = ref span279[num]; + QuestSequence obj218 = new QuestSequence { Sequence = 4 }; - num2 = 2; - List list302 = new List(num2); - CollectionsMarshal.SetCount(list302, num2); - Span span168 = CollectionsMarshal.AsSpan(list302); - span168[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) + index2 = 2; + List list283 = new List(index2); + CollectionsMarshal.SetCount(list283, index2); + Span span283 = CollectionsMarshal.AsSpan(list283); + num2 = 0; + span283[num2] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -393972,55 +478631,66 @@ public static class AssemblyQuestLoader } } }; - ref QuestStep reference216 = ref span168[1]; - QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1058423u, new Vector3(-0.015319824f, -3.1291775E-12f, -15.42688f), 1224); - num3 = 1; - List list303 = new List(num3); - CollectionsMarshal.SetCount(list303, num3); - CollectionsMarshal.AsSpan(list303)[0] = new DialogueChoice + num2++; + ref QuestStep reference200 = ref span283[num2]; + QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1058423u, new Vector3(-0.015319824f, -3.1291775E-12f, -15.42688f), 1224); + index3 = 1; + List list284 = new List(index3); + CollectionsMarshal.SetCount(list284, index3); + Span span284 = CollectionsMarshal.AsSpan(list284); + num3 = 0; + span284[num3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGRA306_05440_Q3_000_000") }; - questStep19.DialogueChoices = list303; - reference216 = questStep19; - obj234.Steps = list302; - reference215 = obj234; - ref QuestSequence reference217 = ref span166[5]; - QuestSequence obj235 = new QuestSequence + questStep17.DialogueChoices = list284; + reference200 = questStep17; + obj218.Steps = list283; + reference199 = obj218; + num++; + ref QuestSequence reference201 = ref span279[num]; + QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list304 = new List(num2); - CollectionsMarshal.SetCount(list304, num2); - CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.CompleteQuest, 1058424u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186); - obj235.Steps = list304; - reference217 = obj235; - questRoot25.QuestSequence = list298; - AddQuest(questId25, questRoot25); - QuestId questId26 = new QuestId(5444); - QuestRoot questRoot26 = new QuestRoot(); + List list285 = new List(num2); + CollectionsMarshal.SetCount(list285, num2); + Span span285 = CollectionsMarshal.AsSpan(list285); + index2 = 0; + span285[index2] = new QuestStep(EInteractionType.CompleteQuest, 1058424u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186); + obj219.Steps = list285; + reference201 = obj219; + questRoot24.QuestSequence = list279; + AddQuest(questId24, questRoot24); + QuestId questId25 = new QuestId(5444); + QuestRoot questRoot25 = new QuestRoot(); num = 1; - List list305 = new List(num); - CollectionsMarshal.SetCount(list305, num); - CollectionsMarshal.AsSpan(list305)[0] = "WigglyMuffin"; - questRoot26.Author = list305; - questRoot26.IsSeasonalQuest = true; - questRoot26.SeasonalQuestExpiry = new DateTime(2026, 3, 12, 14, 59, 0, DateTimeKind.Utc); - num = 9; - List list306 = new List(num); - CollectionsMarshal.SetCount(list306, num); - Span span169 = CollectionsMarshal.AsSpan(list306); - ref QuestSequence reference218 = ref span169[0]; - QuestSequence obj236 = new QuestSequence + List list286 = new List(num); + CollectionsMarshal.SetCount(list286, num); + Span span286 = CollectionsMarshal.AsSpan(list286); + index = 0; + span286[index] = "WigglyMuffin"; + questRoot25.Author = list286; + questRoot25.IsSeasonalQuest = true; + questRoot25.SeasonalQuestExpiry = new DateTime(2026, 3, 12, 14, 59, 0, DateTimeKind.Utc); + index = 9; + List list287 = new List(index); + CollectionsMarshal.SetCount(list287, index); + Span span287 = CollectionsMarshal.AsSpan(list287); + num = 0; + ref QuestSequence reference202 = ref span287[num]; + QuestSequence obj220 = new QuestSequence { Sequence = 0 }; - num2 = 1; - List list307 = new List(num2); - CollectionsMarshal.SetCount(list307, num2); - CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.AcceptQuest, 1056476u, new Vector3(-35.1416f, 5.000001f, -130.38837f), 130) + index2 = 1; + List list288 = new List(index2); + CollectionsMarshal.SetCount(list288, index2); + Span span288 = CollectionsMarshal.AsSpan(list288); + num2 = 0; + span288[num2] = new QuestStep(EInteractionType.AcceptQuest, 1056476u, new Vector3(-35.1416f, 5.000001f, -130.38837f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -394031,17 +478701,20 @@ public static class AssemblyQuestLoader } } }; - obj236.Steps = list307; - reference218 = obj236; - ref QuestSequence reference219 = ref span169[1]; - QuestSequence obj237 = new QuestSequence + obj220.Steps = list288; + reference202 = obj220; + num++; + ref QuestSequence reference203 = ref span287[num]; + QuestSequence obj221 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list308 = new List(num2); - CollectionsMarshal.SetCount(list308, num2); - CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1057901u, new Vector3(-33.951355f, 5.0000005f, -130.87665f), 130) + List list289 = new List(num2); + CollectionsMarshal.SetCount(list289, num2); + Span span289 = CollectionsMarshal.AsSpan(list289); + index2 = 0; + span289[index2] = new QuestStep(EInteractionType.Interact, 1057901u, new Vector3(-33.951355f, 5.0000005f, -130.87665f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -394052,201 +478725,246 @@ public static class AssemblyQuestLoader } } }; - obj237.Steps = list308; - reference219 = obj237; - ref QuestSequence reference220 = ref span169[2]; - QuestSequence obj238 = new QuestSequence + obj221.Steps = list289; + reference203 = obj221; + num++; + ref QuestSequence reference204 = ref span287[num]; + QuestSequence obj222 = new QuestSequence { Sequence = 2 }; - num2 = 2; - List list309 = new List(num2); - CollectionsMarshal.SetCount(list309, num2); - Span span170 = CollectionsMarshal.AsSpan(list309); - ref QuestStep reference221 = ref span170[0]; - QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1057909u, new Vector3(29.984009f, 4.0999947f, -152.63605f), 130); + index2 = 2; + List list290 = new List(index2); + CollectionsMarshal.SetCount(list290, index2); + Span span290 = CollectionsMarshal.AsSpan(list290); + num2 = 0; + ref QuestStep reference205 = ref span290[num2]; + QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1057909u, new Vector3(29.984009f, 4.0999947f, -152.63605f), 130); num3 = 6; - List list310 = new List(num3); - CollectionsMarshal.SetCount(list310, num3); - Span span171 = CollectionsMarshal.AsSpan(list310); - span171[0] = null; - span171[1] = null; - span171[2] = null; - span171[3] = null; - span171[4] = null; - span171[5] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep20.CompletionQuestVariablesFlags = list310; - reference221 = questStep20; - span170[1] = new QuestStep(EInteractionType.Interact, 1057906u, new Vector3(33.6156f, 3.9999995f, -140.91711f), 130); - obj238.Steps = list309; - reference220 = obj238; - ref QuestSequence reference222 = ref span169[3]; - QuestSequence obj239 = new QuestSequence + List list291 = new List(num3); + CollectionsMarshal.SetCount(list291, num3); + Span span291 = CollectionsMarshal.AsSpan(list291); + index3 = 0; + span291[index3] = null; + index3++; + span291[index3] = null; + index3++; + span291[index3] = null; + index3++; + span291[index3] = null; + index3++; + span291[index3] = null; + index3++; + span291[index3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + questStep18.CompletionQuestVariablesFlags = list291; + reference205 = questStep18; + num2++; + span290[num2] = new QuestStep(EInteractionType.Interact, 1057906u, new Vector3(33.6156f, 3.9999995f, -140.91711f), 130); + obj222.Steps = list290; + reference204 = obj222; + num++; + ref QuestSequence reference206 = ref span287[num]; + QuestSequence obj223 = new QuestSequence { Sequence = 3 }; num2 = 2; - List list311 = new List(num2); - CollectionsMarshal.SetCount(list311, num2); - Span span172 = CollectionsMarshal.AsSpan(list311); - ref QuestStep reference223 = ref span172[0]; - QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1057911u, new Vector3(10.36084f, 7.9999804f, -109.26984f), 130); - num3 = 6; - List list312 = new List(num3); - CollectionsMarshal.SetCount(list312, num3); - Span span173 = CollectionsMarshal.AsSpan(list312); - span173[0] = null; - span173[1] = null; - span173[2] = null; - span173[3] = null; - span173[4] = null; - span173[5] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep21.CompletionQuestVariablesFlags = list312; - reference223 = questStep21; - span172[1] = new QuestStep(EInteractionType.Interact, 1057912u, new Vector3(15.396301f, 6.999997f, -82.993835f), 130); - obj239.Steps = list311; - reference222 = obj239; - ref QuestSequence reference224 = ref span169[4]; - QuestSequence obj240 = new QuestSequence + List list292 = new List(num2); + CollectionsMarshal.SetCount(list292, num2); + Span span292 = CollectionsMarshal.AsSpan(list292); + index2 = 0; + ref QuestStep reference207 = ref span292[index2]; + QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1057911u, new Vector3(10.36084f, 7.9999804f, -109.26984f), 130); + index3 = 6; + List list293 = new List(index3); + CollectionsMarshal.SetCount(list293, index3); + Span span293 = CollectionsMarshal.AsSpan(list293); + num3 = 0; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = null; + num3++; + span293[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + questStep19.CompletionQuestVariablesFlags = list293; + reference207 = questStep19; + index2++; + span292[index2] = new QuestStep(EInteractionType.Interact, 1057912u, new Vector3(15.396301f, 6.999997f, -82.993835f), 130); + obj223.Steps = list292; + reference206 = obj223; + num++; + ref QuestSequence reference208 = ref span287[num]; + QuestSequence obj224 = new QuestSequence { Sequence = 4 }; - num2 = 1; - List list313 = new List(num2); - CollectionsMarshal.SetCount(list313, num2); - CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1058069u, new Vector3(-15.121765f, 7.999998f, -112.81f), 130); - obj240.Steps = list313; - reference224 = obj240; - ref QuestSequence reference225 = ref span169[5]; - QuestSequence obj241 = new QuestSequence + index2 = 1; + List list294 = new List(index2); + CollectionsMarshal.SetCount(list294, index2); + Span span294 = CollectionsMarshal.AsSpan(list294); + num2 = 0; + span294[num2] = new QuestStep(EInteractionType.Interact, 1058069u, new Vector3(-15.121765f, 7.999998f, -112.81f), 130); + obj224.Steps = list294; + reference208 = obj224; + num++; + ref QuestSequence reference209 = ref span287[num]; + QuestSequence obj225 = new QuestSequence { Sequence = 5 }; num2 = 1; - List list314 = new List(num2); - CollectionsMarshal.SetCount(list314, num2); - CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 1057902u, new Vector3(-12.100403f, 7.999999f, -110.76526f), 130); - obj241.Steps = list314; - reference225 = obj241; - ref QuestSequence reference226 = ref span169[6]; - QuestSequence obj242 = new QuestSequence + List list295 = new List(num2); + CollectionsMarshal.SetCount(list295, num2); + Span span295 = CollectionsMarshal.AsSpan(list295); + index2 = 0; + span295[index2] = new QuestStep(EInteractionType.Interact, 1057902u, new Vector3(-12.100403f, 7.999999f, -110.76526f), 130); + obj225.Steps = list295; + reference209 = obj225; + num++; + ref QuestSequence reference210 = ref span287[num]; + QuestSequence obj226 = new QuestSequence { Sequence = 6 }; - num2 = 1; - List list315 = new List(num2); - CollectionsMarshal.SetCount(list315, num2); - CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1056476u, new Vector3(-35.1416f, 5.000001f, -130.38837f), 130); - obj242.Steps = list315; - reference226 = obj242; - ref QuestSequence reference227 = ref span169[7]; - QuestSequence obj243 = new QuestSequence + index2 = 1; + List list296 = new List(index2); + CollectionsMarshal.SetCount(list296, index2); + Span span296 = CollectionsMarshal.AsSpan(list296); + num2 = 0; + span296[num2] = new QuestStep(EInteractionType.Interact, 1056476u, new Vector3(-35.1416f, 5.000001f, -130.38837f), 130); + obj226.Steps = list296; + reference210 = obj226; + num++; + ref QuestSequence reference211 = ref span287[num]; + QuestSequence obj227 = new QuestSequence { Sequence = 7 }; num2 = 2; - List list316 = new List(num2); - CollectionsMarshal.SetCount(list316, num2); - Span span174 = CollectionsMarshal.AsSpan(list316); - ref QuestStep reference228 = ref span174[0]; - QuestStep obj244 = new QuestStep(EInteractionType.Interact, 1055771u, new Vector3(-37.369385f, 5.0000005f, -130.14423f), 130) + List list297 = new List(num2); + CollectionsMarshal.SetCount(list297, num2); + Span span297 = CollectionsMarshal.AsSpan(list297); + index2 = 0; + ref QuestStep reference212 = ref span297[index2]; + QuestStep obj228 = new QuestStep(EInteractionType.Interact, 1055771u, new Vector3(-37.369385f, 5.0000005f, -130.14423f), 130) { IgnoreQuestMarker = true }; num3 = 3; - List list317 = new List(num3); - CollectionsMarshal.SetCount(list317, num3); - Span span175 = CollectionsMarshal.AsSpan(list317); - span175[0] = new DialogueChoice + List list298 = new List(num3); + CollectionsMarshal.SetCount(list298, num3); + Span span298 = CollectionsMarshal.AsSpan(list298); + index3 = 0; + span298[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/009/FesPdy2026FateDisguise_00951", Prompt = new ExcelRef("TEXT_FESPDY2026FATEDISGUISE_00951_Q1_000_000"), Answer = new ExcelRef("TEXT_FESPDY2026FATEDISGUISE_00951_A1_000_001") }; - span175[1] = new DialogueChoice + index3++; + span298[index3] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/009/FesPdy2026FateDisguise_00951", Prompt = new ExcelRef("TEXT_FESPDY2026FATEDISGUISE_00951_Q2_000_000"), Answer = new ExcelRef("TEXT_FESPDY2026FATEDISGUISE_00951_A2_100_004") }; - span175[2] = new DialogueChoice + index3++; + span298[index3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "custom/009/FesPdy2026FateDisguise_00951", Prompt = new ExcelRef("TEXT_FESPDY2026FATEDISGUISE_00951_CONFIRM_100_004") }; - obj244.DialogueChoices = list317; - reference228 = obj244; - ref QuestStep reference229 = ref span174[1]; - QuestStep questStep22 = new QuestStep(EInteractionType.FateAction, null, new Vector3(-38.322124f, 3.9999998f, -144.23155f), 130); - num3 = 4; - List list318 = new List(num3); - CollectionsMarshal.SetCount(list318, num3); - Span span176 = CollectionsMarshal.AsSpan(list318); - span176[0] = new FateActionTarget + obj228.DialogueChoices = list298; + reference212 = obj228; + index2++; + ref QuestStep reference213 = ref span297[index2]; + QuestStep questStep20 = new QuestStep(EInteractionType.FateAction, null, new Vector3(-38.322124f, 3.9999998f, -144.23155f), 130); + index3 = 4; + List list299 = new List(index3); + CollectionsMarshal.SetCount(list299, index3); + Span span299 = CollectionsMarshal.AsSpan(list299); + num3 = 0; + span299[num3] = new FateActionTarget { DataId = 18862u, Action = EAction.CheerRhythmYellow }; - span176[1] = new FateActionTarget + num3++; + span299[num3] = new FateActionTarget { DataId = 18860u, Action = EAction.CheerRhythmBlue }; - span176[2] = new FateActionTarget + num3++; + span299[num3] = new FateActionTarget { DataId = 18861u, Action = EAction.CheerRhythmGreen }; - span176[3] = new FateActionTarget + num3++; + span299[num3] = new FateActionTarget { DataId = 18859u, Action = EAction.CheerRhythmRed }; - questStep22.FateActionTargets = list318; - reference229 = questStep22; - obj243.Steps = list316; - reference227 = obj243; - ref QuestSequence reference230 = ref span169[8]; - QuestSequence obj245 = new QuestSequence + questStep20.FateActionTargets = list299; + reference213 = questStep20; + obj227.Steps = list297; + reference211 = obj227; + num++; + ref QuestSequence reference214 = ref span287[num]; + QuestSequence obj229 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 1; - List list319 = new List(num2); - CollectionsMarshal.SetCount(list319, num2); - CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.CompleteQuest, 1056476u, new Vector3(-35.1416f, 5.000001f, -130.38837f), 130) + index2 = 1; + List list300 = new List(index2); + CollectionsMarshal.SetCount(list300, index2); + Span span300 = CollectionsMarshal.AsSpan(list300); + num2 = 0; + span300[num2] = new QuestStep(EInteractionType.CompleteQuest, 1056476u, new Vector3(-35.1416f, 5.000001f, -130.38837f), 130) { NextQuestId = new QuestId(5445) }; - obj245.Steps = list319; - reference230 = obj245; - questRoot26.QuestSequence = list306; - AddQuest(questId26, questRoot26); - QuestId questId27 = new QuestId(5445); - QuestRoot questRoot27 = new QuestRoot(); + obj229.Steps = list300; + reference214 = obj229; + questRoot25.QuestSequence = list287; + AddQuest(questId25, questRoot25); + QuestId questId26 = new QuestId(5445); + QuestRoot questRoot26 = new QuestRoot(); num = 1; - List list320 = new List(num); - CollectionsMarshal.SetCount(list320, num); - CollectionsMarshal.AsSpan(list320)[0] = "WigglyMuffin"; - questRoot27.Author = list320; - questRoot27.IsSeasonalQuest = true; - questRoot27.SeasonalQuestExpiry = new DateTime(2026, 3, 12, 14, 59, 0, DateTimeKind.Utc); - num = 3; - List list321 = new List(num); - CollectionsMarshal.SetCount(list321, num); - Span span177 = CollectionsMarshal.AsSpan(list321); - ref QuestSequence reference231 = ref span177[0]; - QuestSequence obj246 = new QuestSequence + List list301 = new List(num); + CollectionsMarshal.SetCount(list301, num); + Span span301 = CollectionsMarshal.AsSpan(list301); + index = 0; + span301[index] = "WigglyMuffin"; + questRoot26.Author = list301; + questRoot26.IsSeasonalQuest = true; + questRoot26.SeasonalQuestExpiry = new DateTime(2026, 3, 12, 14, 59, 0, DateTimeKind.Utc); + index = 3; + List list302 = new List(index); + CollectionsMarshal.SetCount(list302, index); + Span span302 = CollectionsMarshal.AsSpan(list302); + num = 0; + ref QuestSequence reference215 = ref span302[num]; + QuestSequence obj230 = new QuestSequence { Sequence = 0 }; num2 = 1; - List list322 = new List(num2); - CollectionsMarshal.SetCount(list322, num2); - CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.AcceptQuest, 1056476u, new Vector3(-35.1416f, 5.000001f, -130.38837f), 130) + List list303 = new List(num2); + CollectionsMarshal.SetCount(list303, num2); + Span span303 = CollectionsMarshal.AsSpan(list303); + index2 = 0; + span303[index2] = new QuestStep(EInteractionType.AcceptQuest, 1056476u, new Vector3(-35.1416f, 5.000001f, -130.38837f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -394257,31 +478975,37 @@ public static class AssemblyQuestLoader } } }; - obj246.Steps = list322; - reference231 = obj246; - ref QuestSequence reference232 = ref span177[1]; - QuestSequence obj247 = new QuestSequence + obj230.Steps = list303; + reference215 = obj230; + num++; + ref QuestSequence reference216 = ref span302[num]; + QuestSequence obj231 = new QuestSequence { Sequence = 1 }; - num2 = 1; - List list323 = new List(num2); - CollectionsMarshal.SetCount(list323, num2); - CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.Interact, 1056476u, new Vector3(-35.1416f, 5.000001f, -130.38837f), 130); - obj247.Steps = list323; - reference232 = obj247; - ref QuestSequence reference233 = ref span177[2]; - QuestSequence obj248 = new QuestSequence + index2 = 1; + List list304 = new List(index2); + CollectionsMarshal.SetCount(list304, index2); + Span span304 = CollectionsMarshal.AsSpan(list304); + num2 = 0; + span304[num2] = new QuestStep(EInteractionType.Interact, 1056476u, new Vector3(-35.1416f, 5.000001f, -130.38837f), 130); + obj231.Steps = list304; + reference216 = obj231; + num++; + ref QuestSequence reference217 = ref span302[num]; + QuestSequence obj232 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - List list324 = new List(num2); - CollectionsMarshal.SetCount(list324, num2); - CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.CompleteQuest, 1056476u, new Vector3(-35.1416f, 5.000001f, -130.38837f), 130); - obj248.Steps = list324; - reference233 = obj248; - questRoot27.QuestSequence = list321; - AddQuest(questId27, questRoot27); + List list305 = new List(num2); + CollectionsMarshal.SetCount(list305, num2); + Span span305 = CollectionsMarshal.AsSpan(list305); + index2 = 0; + span305[index2] = new QuestStep(EInteractionType.CompleteQuest, 1056476u, new Vector3(-35.1416f, 5.000001f, -130.38837f), 130); + obj232.Steps = list305; + reference217 = obj232; + questRoot26.QuestSequence = list302; + AddQuest(questId26, questRoot26); } } diff --git a/Questionable.Model/Questionable.Model.Common.Converter/StringListOrValueConverter.cs b/Questionable.Model/Questionable.Model.Common.Converter/StringListOrValueConverter.cs index 1e42eaf..ba2e070 100644 --- a/Questionable.Model/Questionable.Model.Common.Converter/StringListOrValueConverter.cs +++ b/Questionable.Model/Questionable.Model.Common.Converter/StringListOrValueConverter.cs @@ -15,7 +15,9 @@ public sealed class StringListOrValueConverter : JsonConverter> int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = reader.GetString(); + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = reader.GetString(); return list; } if (reader.TokenType != JsonTokenType.StartArray) diff --git a/Questionable.Model/Questionable.Model.Common.Converter/VectorListConverter.cs b/Questionable.Model/Questionable.Model.Common.Converter/VectorListConverter.cs deleted file mode 100644 index cff0f70..0000000 --- a/Questionable.Model/Questionable.Model.Common.Converter/VectorListConverter.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Numerics; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Questionable.Model.Common.Converter; - -public sealed class VectorListConverter : JsonConverter> -{ - private static readonly VectorConverter ItemConverter = new VectorConverter(); - - public override List Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartArray) - { - throw new JsonException(); - } - List list = new List(); - while (reader.Read()) - { - if (reader.TokenType == JsonTokenType.EndArray) - { - return list; - } - list.Add(ItemConverter.Read(ref reader, typeof(Vector3), options)); - } - throw new JsonException(); - } - - public override void Write(Utf8JsonWriter writer, List value, JsonSerializerOptions options) - { - writer.WriteStartArray(); - foreach (Vector3 item in value) - { - ItemConverter.Write(writer, item, options); - } - writer.WriteEndArray(); - } -} diff --git a/Questionable.Model/Questionable.Model.Questing.Converter/ActionConverter.cs b/Questionable.Model/Questionable.Model.Questing.Converter/ActionConverter.cs index 8476b03..c3d4719 100644 --- a/Questionable.Model/Questionable.Model.Questing.Converter/ActionConverter.cs +++ b/Questionable.Model/Questionable.Model.Questing.Converter/ActionConverter.cs @@ -219,18 +219,6 @@ public sealed class ActionConverter : EnumConverter EAction.CheerRhythmYellow, "Cheer Rhythm: Yellow" }, - { - EAction.PruningPirouette, - "Pruning Pirouette" - }, - { - EAction.RoaringEggscapade, - "Roaring Eggscapade" - }, - { - EAction.TheSpriganator, - "The Spriganator" - }, { EAction.CurtainCall, "Curtain Call" diff --git a/Questionable.Model/Questionable.Model.Questing/EAction.cs b/Questionable.Model/Questionable.Model.Questing/EAction.cs index 50f443b..4ec6c5e 100644 --- a/Questionable.Model/Questionable.Model.Questing/EAction.cs +++ b/Questionable.Model/Questionable.Model.Questing/EAction.cs @@ -66,9 +66,6 @@ public enum EAction CheerRhythmBlue = 44502, CheerRhythmGreen = 44503, CheerRhythmYellow = 44504, - PruningPirouette = 45127, - RoaringEggscapade = 42039, - TheSpriganator = 42038, CurtainCall = 11063, Prospect = 227, CollectMiner = 240, diff --git a/Questionable.Model/Questionable.Model.Questing/QuestStep.cs b/Questionable.Model/Questionable.Model.Questing/QuestStep.cs index 23acd5d..1ae22d8 100644 --- a/Questionable.Model/Questionable.Model.Questing/QuestStep.cs +++ b/Questionable.Model/Questionable.Model.Questing/QuestStep.cs @@ -15,11 +15,6 @@ public sealed class QuestStep public uint? DataId { get; set; } - public List DataIds { get; set; } = new List(); - - [JsonConverter(typeof(VectorListConverter))] - public List WaypointPositions { get; set; } = new List(); - [JsonConverter(typeof(VectorConverter))] public Vector3? Position { get; set; } diff --git a/Questionable.Model/Questionable.Model.Questing/SeasonalDutyDefinition.cs b/Questionable.Model/Questionable.Model.Questing/SeasonalDutyDefinition.cs deleted file mode 100644 index f689404..0000000 --- a/Questionable.Model/Questionable.Model.Questing/SeasonalDutyDefinition.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Numerics; -using System.Text.Json.Serialization; -using Questionable.Model.Common; -using Questionable.Model.Common.Converter; -using Questionable.Model.Questing.Converter; - -namespace Questionable.Model.Questing; - -public sealed class SeasonalDutyDefinition -{ - public string Name { get; set; } = string.Empty; - - public ushort TerritoryId { get; set; } - - public EAetheryteLocation Aetheryte { get; set; } - - public AethernetShortcut? AethernetShortcut { get; set; } - - public uint NpcDataId { get; set; } - - [JsonConverter(typeof(VectorConverter))] - public Vector3 NpcPosition { get; set; } - - public List DialogueChoices { get; set; } = new List(); - - public ushort DutyTerritoryId { get; set; } - - public List DataIds { get; set; } = new List(); - - [JsonConverter(typeof(VectorListConverter))] - public List WaypointPositions { get; set; } = new List(); - - [JsonConverter(typeof(ActionConverter))] - public EAction Action { get; set; } - - public float StopDistance { get; set; } - - public ushort? RequiredQuestId { get; set; } - - public DateTime? EventExpiry { get; set; } -} diff --git a/Questionable/Questionable.Controller.GameUi/InteractionUiController.cs b/Questionable/Questionable.Controller.GameUi/InteractionUiController.cs index ac3dee9..d42f04a 100644 --- a/Questionable/Questionable.Controller.GameUi/InteractionUiController.cs +++ b/Questionable/Questionable.Controller.GameUi/InteractionUiController.cs @@ -63,8 +63,6 @@ internal sealed class InteractionUiController : IDisposable private readonly FateController _fateController; - private readonly SeasonalDutyController _seasonalDutyController; - private readonly BossModIpc _bossModIpc; private readonly Configuration _configuration; @@ -81,7 +79,7 @@ internal sealed class InteractionUiController : IDisposable { get { - if (!_isInitialCheck && !_questController.IsRunning && !_fateController.IsRunning && !_seasonalDutyController.IsRunning) + if (!_isInitialCheck && !_questController.IsRunning && !_fateController.IsRunning) { return _territoryData.IsQuestBattleInstance(_clientState.TerritoryType); } @@ -89,7 +87,7 @@ internal sealed class InteractionUiController : IDisposable } } - public unsafe InteractionUiController(IAddonLifecycle addonLifecycle, IDataManager dataManager, QuestFunctions questFunctions, AetheryteFunctions aetheryteFunctions, ExcelFunctions excelFunctions, QuestController questController, GatheringPointRegistry gatheringPointRegistry, QuestRegistry questRegistry, QuestData questData, TerritoryData territoryData, IGameGui gameGui, ITargetManager targetManager, IPluginLog pluginLog, IClientState clientState, IObjectTable objectTable, ShopController shopController, FateController fateController, SeasonalDutyController seasonalDutyController, BossModIpc bossModIpc, Configuration configuration, ILogger logger) + public unsafe InteractionUiController(IAddonLifecycle addonLifecycle, IDataManager dataManager, QuestFunctions questFunctions, AetheryteFunctions aetheryteFunctions, ExcelFunctions excelFunctions, QuestController questController, GatheringPointRegistry gatheringPointRegistry, QuestRegistry questRegistry, QuestData questData, TerritoryData territoryData, IGameGui gameGui, ITargetManager targetManager, IPluginLog pluginLog, IClientState clientState, IObjectTable objectTable, ShopController shopController, FateController fateController, BossModIpc bossModIpc, Configuration configuration, ILogger logger) { _addonLifecycle = addonLifecycle; _dataManager = dataManager; @@ -107,7 +105,6 @@ internal sealed class InteractionUiController : IDisposable _objectTable = objectTable; _shopController = shopController; _fateController = fateController; - _seasonalDutyController = seasonalDutyController; _bossModIpc = bossModIpc; _configuration = configuration; _logger = logger; @@ -121,7 +118,6 @@ internal sealed class InteractionUiController : IDisposable _addonLifecycle.RegisterListener(AddonEvent.PostSetup, "DifficultySelectYesNo", DifficultySelectYesNoPostSetup); _addonLifecycle.RegisterListener(AddonEvent.PostSetup, "PointMenu", PointMenuPostSetup); _addonLifecycle.RegisterListener(AddonEvent.PostSetup, "HousingSelectBlock", HousingSelectBlockPostSetup); - _addonLifecycle.RegisterListener(AddonEvent.PostSetup, "EasterMowingResult", EasterMowingResultPostSetup); if (_gameGui.TryGetAddonByName("RhythmAction", out var addonPtr)) { addonPtr->Close(fireCallback: true); @@ -373,7 +369,9 @@ internal sealed class InteractionUiController : IDisposable int num = 1; List list2 = new List(num); CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = valueOrDefault; + Span span = CollectionsMarshal.AsSpan(list2); + int index = 0; + span[index] = valueOrDefault; source = list2; } } @@ -468,15 +466,6 @@ internal sealed class InteractionUiController : IDisposable list.AddRange(list4.Select((DialogueChoice x) => new DialogueChoiceInfo(null, x))); } } - if (_seasonalDutyController.IsRunning) - { - List list5 = _seasonalDutyController.CurrentDuty?.DialogueChoices; - if (list5 != null && list5.Count > 0) - { - _logger.LogInformation("Adding {Count} dialogue choices from active seasonal duty", list5.Count); - list.AddRange(list5.Select((DialogueChoice x) => new DialogueChoiceInfo(null, x))); - } - } if (list.Count == 0) { _logger.LogDebug("No dialogue choices to check"); @@ -669,48 +658,24 @@ internal sealed class InteractionUiController : IDisposable return; } QuestController.QuestProgress nextQuest = _questController.NextQuest; - if (nextQuest != null && CheckQuestYesNo(addonSelectYesno, nextQuest, text, checkAllSteps)) + if ((nextQuest != null && CheckQuestYesNo(addonSelectYesno, nextQuest, text, checkAllSteps)) || !_fateController.IsRunning) { return; } - if (_fateController.IsRunning) + List list = _fateController.CurrentFate?.TransformDialogueChoices; + if (list == null) { - List list = _fateController.CurrentFate?.TransformDialogueChoices; - if (list != null) + return; + } + foreach (DialogueChoice item in list) + { + if (item.Type == EDialogChoiceType.YesNo) { - foreach (DialogueChoice item in list) + StringOrRegex stringOrRegex = ResolveReference(null, item.ExcelSheet, item.Prompt, item.PromptIsRegularExpression); + if (stringOrRegex != null && IsMatch(text, stringOrRegex)) { - if (item.Type == EDialogChoiceType.YesNo) - { - StringOrRegex stringOrRegex = ResolveReference(null, item.ExcelSheet, item.Prompt, item.PromptIsRegularExpression); - if (stringOrRegex != null && IsMatch(text, stringOrRegex)) - { - _logger.LogInformation("FATE: Returning {YesNo} for '{Prompt}'", item.Yes ? "Yes" : "No", text); - addonSelectYesno->AtkUnitBase.FireCallbackInt((!item.Yes) ? 1 : 0); - return; - } - } - } - } - } - if (!_seasonalDutyController.IsRunning) - { - return; - } - List list2 = _seasonalDutyController.CurrentDuty?.DialogueChoices; - if (list2 == null || list2.Count <= 0) - { - return; - } - foreach (DialogueChoice item2 in list2) - { - if (item2.Type == EDialogChoiceType.YesNo) - { - StringOrRegex stringOrRegex2 = ResolveReference(null, item2.ExcelSheet, item2.Prompt, item2.PromptIsRegularExpression); - if (stringOrRegex2 != null && IsMatch(text, stringOrRegex2)) - { - _logger.LogInformation("Seasonal duty: Returning {YesNo} for '{Prompt}'", item2.Yes ? "Yes" : "No", text); - addonSelectYesno->AtkUnitBase.FireCallbackInt((!item2.Yes) ? 1 : 0); + _logger.LogInformation("FATE: Returning {YesNo} for '{Prompt}'", item.Yes ? "Yes" : "No", text); + addonSelectYesno->AtkUnitBase.FireCallbackInt((!item.Yes) ? 1 : 0); break; } } @@ -1052,35 +1017,6 @@ internal sealed class InteractionUiController : IDisposable } } - private unsafe void EasterMowingResultPostSetup(AddonEvent type, AddonArgs args) - { - if (_seasonalDutyController.IsRunning || ShouldHandleUiInteractions) - { - _logger.LogInformation("Dismissing EasterMowingResult"); - AtkUnitBase* address = (AtkUnitBase*)args.Addon.Address; - AtkValue* values = stackalloc AtkValue[3] - { - new AtkValue - { - Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int, - Int = -1 - }, - new AtkValue - { - Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int, - Int = 1 - }, - new AtkValue - { - Type = FFXIVClientStructs.FFXIV.Component.GUI.ValueType.Int, - Int = 1 - } - }; - address->FireCallback(3u, values); - address->Close(fireCallback: true); - } - } - private StringOrRegex? ResolveReference(Questionable.Model.Quest? quest, string? excelSheet, ExcelRef? excelRef, bool isRegExp) { if (excelRef == null) @@ -1104,7 +1040,6 @@ internal sealed class InteractionUiController : IDisposable public void Dispose() { - _addonLifecycle.UnregisterListener(AddonEvent.PostSetup, "EasterMowingResult", EasterMowingResultPostSetup); _addonLifecycle.UnregisterListener(AddonEvent.PostSetup, "HousingSelectBlock", HousingSelectBlockPostSetup); _addonLifecycle.UnregisterListener(AddonEvent.PostSetup, "PointMenu", PointMenuPostSetup); _addonLifecycle.UnregisterListener(AddonEvent.PostSetup, "DifficultySelectYesNo", DifficultySelectYesNoPostSetup); diff --git a/Questionable/Questionable.Controller.NavigationOverrides/MovementOverrideController.cs b/Questionable/Questionable.Controller.NavigationOverrides/MovementOverrideController.cs index c8b5ab7..24a2d6f 100644 --- a/Questionable/Questionable.Controller.NavigationOverrides/MovementOverrideController.cs +++ b/Questionable/Questionable.Controller.NavigationOverrides/MovementOverrideController.cs @@ -54,37 +54,68 @@ internal sealed class MovementOverrideController List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - span[0] = new BlacklistedArea(1191, new Vector3(-223.0412f, 31.937134f, -584.03906f), 5f, 7.75f); - span[1] = new BlacklistedPoint(128, new Vector3(2f, 40.25f, 36.5f), new Vector3(0.25f, 40.25f, 36.5f)); - span[2] = new BlacklistedPoint(132, new Vector3(29f, -8f, 120.5f), new Vector3(28.265165f, -8.000001f, 120.149734f)); - span[3] = new BlacklistedPoint(132, new Vector3(28.25f, -8f, 125f), new Vector3(27.372725f, -8.200001f, 125.55859f)); - span[4] = new BlacklistedPoint(132, new Vector3(32.25f, -8f, 126.5f), new Vector3(32.022232f, -8.200011f, 126.86095f)); - span[5] = new BlacklistedPoint(205, new Vector3(26.75f, 0.5f, 20.75f), new Vector3(27.179117f, 0.26728272f, 19.714373f)); - span[6] = new BlacklistedPoint(130, new Vector3(59.5f, 4.25f, -118f), new Vector3(60.551353f, 4f, -119.76446f)); - span[7] = new BlacklistedPoint(145, new Vector3(-139.75f, -32.25f, 75.25f), new Vector3(-139.57748f, -33.785175f, 77.87906f)); - span[8] = new BlacklistedPoint(146, new Vector3(-201.75f, 10.5f, -265.5f), new Vector3(-203.75235f, 10.130764f, -265.15314f)); - span[9] = new BlacklistedArea(135, new Vector3(156.11499f, 15.518433f, 673.21277f), 0.5f, 5f); - span[10] = new BlacklistedPoint(139, new Vector3(366f, -2.5f, 95.5f), new Vector3(362.65973f, -3.4f, 96.6896f), 2f); - span[11] = new BlacklistedPoint(155, new Vector3(-478.75f, 149.25f, -305.75f), new Vector3(-476.1802f, 149.06573f, -304.7811f)); - span[12] = new BlacklistedPoint(351, new Vector3(3.25f, 0.75f, 8.5f), new Vector3(4f, 0f, 9.5f)); - span[13] = new BlacklistedPoint(418, new Vector3(-136.75f, 2.75f, 9f), new Vector3(-138.66408f, 2.0333426f, 8.860787f), 1f); - span[14] = new BlacklistedPoint(401, new Vector3(-14.75f, -136.75f, 515.75f), new Vector3(-17.631899f, -137.39148f, 512.6676f), 2f); - span[15] = new BlacklistedPoint(397, new Vector3(-93.75f, 87.75f, -715.5f), new Vector3(-87.78183f, 87.188995f, -713.3343f), 2f); - span[16] = new BlacklistedPoint(400, new Vector3(384f, -74f, 648.75f), new Vector3(386.0543f, -72.409454f, 652.0184f), 3f); - span[17] = new BlacklistedPoint(399, new Vector3(-514.4851f, 149.63762f, -480.58087f), new Vector3(-528.78656f, 151.17374f, -473.07077f), 5f, RecalculateNavmesh: true); - span[18] = new BlacklistedPoint(399, new Vector3(-534.5f, 153f, -476.75f), new Vector3(-528.78656f, 151.17374f, -473.07077f), 5f, RecalculateNavmesh: true); - span[19] = new BlacklistedPoint(478, new Vector3(14.5f, 215.25f, -101.5f), new Vector3(18.133032f, 215.44998f, -107.83075f), 5f); - span[20] = new BlacklistedPoint(478, new Vector3(11f, 215.5f, -104.5f), new Vector3(18.133032f, 215.44998f, -107.83075f), 5f); - span[21] = new BlacklistedPoint(1189, new Vector3(574f, -142.25f, 504.25f), new Vector3(574.44183f, -142.12766f, 507.60065f)); - span[22] = new BlacklistedPoint(814, new Vector3(-324f, 348.75f, -181.75f), new Vector3(-322.75076f, 347.0529f, -177.69328f), 3f); - span[23] = new BlacklistedPoint(956, new Vector3(6.25f, -27.75f, -41.5f), new Vector3(5.0831127f, -28.213453f, -42.239136f)); - span[24] = new BlacklistedPoint(1189, new Vector3(-115.75f, -213.75f, 336.5f), new Vector3(-112.40265f, -215.01514f, 339.0067f), 2f); - span[25] = new BlacklistedPoint(1190, new Vector3(-292.29004f, 18.598045f, -133.83907f), new Vector3(-288.20895f, 18.652182f, -132.67445f), 4f); - span[26] = new BlacklistedPoint(1191, new Vector3(-108f, 29.25f, -350.75f), new Vector3(-107.56289f, 29.008266f, -348.80087f)); - span[27] = new BlacklistedPoint(1191, new Vector3(-105.75f, 29.75f, -351f), new Vector3(-105.335304f, 29.017048f, -348.85077f)); - span[28] = new BlacklistedPoint(1186, new Vector3(284.25f, 50.75f, 171.25f), new Vector3(284.25f, 50.75f, 166.25f)); - span[29] = new BlacklistedPoint(1186, new Vector3(283.75f, 50.75f, 167.25f), new Vector3(284.25f, 50.75f, 166.25f)); - span[30] = new BlacklistedPoint(1186, new Vector3(287.75f, 51.25f, 172f), new Vector3(288.875f, 50.75f, 166.25f)); + int num2 = 0; + span[num2] = new BlacklistedArea(1191, new Vector3(-223.0412f, 31.937134f, -584.03906f), 5f, 7.75f); + num2++; + span[num2] = new BlacklistedPoint(128, new Vector3(2f, 40.25f, 36.5f), new Vector3(0.25f, 40.25f, 36.5f)); + num2++; + span[num2] = new BlacklistedPoint(132, new Vector3(29f, -8f, 120.5f), new Vector3(28.265165f, -8.000001f, 120.149734f)); + num2++; + span[num2] = new BlacklistedPoint(132, new Vector3(28.25f, -8f, 125f), new Vector3(27.372725f, -8.200001f, 125.55859f)); + num2++; + span[num2] = new BlacklistedPoint(132, new Vector3(32.25f, -8f, 126.5f), new Vector3(32.022232f, -8.200011f, 126.86095f)); + num2++; + span[num2] = new BlacklistedPoint(205, new Vector3(26.75f, 0.5f, 20.75f), new Vector3(27.179117f, 0.26728272f, 19.714373f)); + num2++; + span[num2] = new BlacklistedPoint(130, new Vector3(59.5f, 4.25f, -118f), new Vector3(60.551353f, 4f, -119.76446f)); + num2++; + span[num2] = new BlacklistedPoint(145, new Vector3(-139.75f, -32.25f, 75.25f), new Vector3(-139.57748f, -33.785175f, 77.87906f)); + num2++; + span[num2] = new BlacklistedPoint(146, new Vector3(-201.75f, 10.5f, -265.5f), new Vector3(-203.75235f, 10.130764f, -265.15314f)); + num2++; + span[num2] = new BlacklistedArea(135, new Vector3(156.11499f, 15.518433f, 673.21277f), 0.5f, 5f); + num2++; + span[num2] = new BlacklistedPoint(139, new Vector3(366f, -2.5f, 95.5f), new Vector3(362.65973f, -3.4f, 96.6896f), 2f); + num2++; + span[num2] = new BlacklistedPoint(155, new Vector3(-478.75f, 149.25f, -305.75f), new Vector3(-476.1802f, 149.06573f, -304.7811f)); + num2++; + span[num2] = new BlacklistedPoint(351, new Vector3(3.25f, 0.75f, 8.5f), new Vector3(4f, 0f, 9.5f)); + num2++; + span[num2] = new BlacklistedPoint(418, new Vector3(-136.75f, 2.75f, 9f), new Vector3(-138.66408f, 2.0333426f, 8.860787f), 1f); + num2++; + span[num2] = new BlacklistedPoint(401, new Vector3(-14.75f, -136.75f, 515.75f), new Vector3(-17.631899f, -137.39148f, 512.6676f), 2f); + num2++; + span[num2] = new BlacklistedPoint(397, new Vector3(-93.75f, 87.75f, -715.5f), new Vector3(-87.78183f, 87.188995f, -713.3343f), 2f); + num2++; + span[num2] = new BlacklistedPoint(400, new Vector3(384f, -74f, 648.75f), new Vector3(386.0543f, -72.409454f, 652.0184f), 3f); + num2++; + span[num2] = new BlacklistedPoint(399, new Vector3(-514.4851f, 149.63762f, -480.58087f), new Vector3(-528.78656f, 151.17374f, -473.07077f), 5f, RecalculateNavmesh: true); + num2++; + span[num2] = new BlacklistedPoint(399, new Vector3(-534.5f, 153f, -476.75f), new Vector3(-528.78656f, 151.17374f, -473.07077f), 5f, RecalculateNavmesh: true); + num2++; + span[num2] = new BlacklistedPoint(478, new Vector3(14.5f, 215.25f, -101.5f), new Vector3(18.133032f, 215.44998f, -107.83075f), 5f); + num2++; + span[num2] = new BlacklistedPoint(478, new Vector3(11f, 215.5f, -104.5f), new Vector3(18.133032f, 215.44998f, -107.83075f), 5f); + num2++; + span[num2] = new BlacklistedPoint(1189, new Vector3(574f, -142.25f, 504.25f), new Vector3(574.44183f, -142.12766f, 507.60065f)); + num2++; + span[num2] = new BlacklistedPoint(814, new Vector3(-324f, 348.75f, -181.75f), new Vector3(-322.75076f, 347.0529f, -177.69328f), 3f); + num2++; + span[num2] = new BlacklistedPoint(956, new Vector3(6.25f, -27.75f, -41.5f), new Vector3(5.0831127f, -28.213453f, -42.239136f)); + num2++; + span[num2] = new BlacklistedPoint(1189, new Vector3(-115.75f, -213.75f, 336.5f), new Vector3(-112.40265f, -215.01514f, 339.0067f), 2f); + num2++; + span[num2] = new BlacklistedPoint(1190, new Vector3(-292.29004f, 18.598045f, -133.83907f), new Vector3(-288.20895f, 18.652182f, -132.67445f), 4f); + num2++; + span[num2] = new BlacklistedPoint(1191, new Vector3(-108f, 29.25f, -350.75f), new Vector3(-107.56289f, 29.008266f, -348.80087f)); + num2++; + span[num2] = new BlacklistedPoint(1191, new Vector3(-105.75f, 29.75f, -351f), new Vector3(-105.335304f, 29.017048f, -348.85077f)); + num2++; + span[num2] = new BlacklistedPoint(1186, new Vector3(284.25f, 50.75f, 171.25f), new Vector3(284.25f, 50.75f, 166.25f)); + num2++; + span[num2] = new BlacklistedPoint(1186, new Vector3(283.75f, 50.75f, 167.25f), new Vector3(284.25f, 50.75f, 166.25f)); + num2++; + span[num2] = new BlacklistedPoint(1186, new Vector3(287.75f, 51.25f, 172f), new Vector3(288.875f, 50.75f, 166.25f)); BlacklistedLocations = list; } } diff --git a/Questionable/Questionable.Controller.Steps.Interactions/Action.cs b/Questionable/Questionable.Controller.Steps.Interactions/Action.cs index 3522fcd..72796f6 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/Action.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/Action.cs @@ -22,10 +22,6 @@ internal static class Action { return Array.Empty(); } - if (step.DataIds.Count > 0) - { - return Array.Empty(); - } ArgumentNullException.ThrowIfNull(step.Action, "step.Action"); ITask task = OnObject(step.DataId, quest, step.Action.Value, step.CompletionQuestVariablesFlags); if (step.Action.Value.RequiresMount()) @@ -90,9 +86,6 @@ internal static class Action _continueAt = DateTime.Now.AddSeconds(0.5); return true; } - logger.LogInformation("Object {DataId} is untargetable, using action {Action} without target", base.Task.DataId, base.Task.Action); - _usedAction = gameFunctions.UseAction(base.Task.Action); - _continueAt = DateTime.Now.AddSeconds(0.5); return true; } _usedAction = gameFunctions.UseAction(base.Task.Action); @@ -111,18 +104,11 @@ internal static class Action if (base.Task.DataId.HasValue) { IGameObject gameObject = gameFunctions.FindObjectByDataId(base.Task.DataId.Value); - if (gameObject == null) + if (gameObject == null || !gameObject.IsTargetable) { return ETaskResult.StillRunning; } - if (gameObject.IsTargetable) - { - _usedAction = gameFunctions.UseAction(gameObject, base.Task.Action); - } - else - { - _usedAction = gameFunctions.UseAction(base.Task.Action); - } + _usedAction = gameFunctions.UseAction(gameObject, base.Task.Action); _continueAt = DateTime.Now.AddSeconds(0.5); } else diff --git a/Questionable/Questionable.Controller.Steps.Interactions/ClearObjectsWithAction.cs b/Questionable/Questionable.Controller.Steps.Interactions/ClearObjectsWithAction.cs deleted file mode 100644 index 003a2da..0000000 --- a/Questionable/Questionable.Controller.Steps.Interactions/ClearObjectsWithAction.cs +++ /dev/null @@ -1,347 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Numerics; -using Dalamud.Game.ClientState.Objects.Enums; -using Dalamud.Game.ClientState.Objects.Types; -using Dalamud.Plugin.Services; -using Microsoft.Extensions.Logging; -using Questionable.Functions; -using Questionable.Model; -using Questionable.Model.Questing; - -namespace Questionable.Controller.Steps.Interactions; - -internal static class ClearObjectsWithAction -{ - internal sealed class Factory : ITaskFactory - { - public IEnumerable CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step) - { - if (step.InteractionType != EInteractionType.Action) - { - return Array.Empty(); - } - if (step.DataIds.Count == 0) - { - return Array.Empty(); - } - if (!step.Action.HasValue) - { - return Array.Empty(); - } - return new global::_003C_003Ez__ReadOnlySingleElementList(new ClearTask(step.DataIds, step.Action.Value, step.TerritoryId, step.CalculateActualStopDistance(), step.WaypointPositions)); - } - } - - internal sealed record ClearTask(List DataIds, EAction Action, ushort TerritoryId, float StopDistance, List WaypointPositions) : ITask - { - public bool ShouldRedoOnInterrupt() - { - return true; - } - - public override string ToString() - { - return $"ClearObjects({Action}, {DataIds.Count} types)"; - } - } - - internal sealed class ClearTaskExecutor(MovementController movementController, GameFunctions gameFunctions, IClientState clientState, IObjectTable objectTable, ILogger logger) : TaskExecutor() - { - private enum State - { - FindingObject, - MovingToObject, - UsingAction, - WaitingAfterAction, - MovingToWaypoint, - WaitingForTransition - } - - private const float VisitedPositionRadius = 5f; - - private State _state; - - private DateTime _noObjectFoundSince = DateTime.MaxValue; - - private DateTime _waitUntil = DateTime.MinValue; - - private DateTime _waypointReachedAt = DateTime.MaxValue; - - private Vector3 _lastPlayerPosition; - - private readonly List _visitedPositions = new List(); - - private readonly List _triedWaypointIndices = new List(); - - protected override bool Start() - { - if (clientState.TerritoryType != base.Task.TerritoryId) - { - return true; - } - return TryFindAndMove(); - } - - private bool IsVisitedPosition(Vector3 position) - { - foreach (Vector3 visitedPosition in _visitedPositions) - { - if (Vector3.Distance(visitedPosition, position) <= 5f) - { - return true; - } - } - return false; - } - - private IGameObject? FindNearestUnvisitedObject() - { - IGameObject gameObject = objectTable[0]; - if (gameObject == null) - { - return null; - } - IGameObject result = null; - float num = float.MaxValue; - foreach (IGameObject item in objectTable) - { - ObjectKind objectKind = item.ObjectKind; - if ((objectKind == ObjectKind.Player || objectKind - 8 <= ObjectKind.BattleNpc || objectKind == ObjectKind.Housing) ? true : false) - { - continue; - } - bool flag = false; - foreach (uint dataId in base.Task.DataIds) - { - if (item.BaseId == dataId) - { - flag = true; - break; - } - } - if (flag && !IsVisitedPosition(item.Position)) - { - float num2 = Vector3.Distance(gameObject.Position, item.Position); - if (num2 < num) - { - result = item; - num = num2; - } - } - } - return result; - } - - private bool AnyMatchingObjectsExist() - { - foreach (IGameObject item in objectTable) - { - ObjectKind objectKind = item.ObjectKind; - if ((objectKind == ObjectKind.Player || objectKind - 8 <= ObjectKind.BattleNpc || objectKind == ObjectKind.Housing) ? true : false) - { - continue; - } - foreach (uint dataId in base.Task.DataIds) - { - if (item.BaseId == dataId) - { - return true; - } - } - } - return false; - } - - private bool TryFindAndMove() - { - IGameObject gameObject = FindNearestUnvisitedObject(); - if (gameObject == null) - { - _state = State.FindingObject; - if (_noObjectFoundSince == DateTime.MaxValue) - { - _noObjectFoundSince = DateTime.Now; - } - return true; - } - _noObjectFoundSince = DateTime.MaxValue; - Vector3 position = gameObject.Position; - logger.LogInformation("Moving to object {DataId} at {Position}", gameObject.BaseId, position); - movementController.NavigateTo(EMovementType.Quest, gameObject.BaseId, position, fly: false, sprint: true, base.Task.StopDistance); - _state = State.MovingToObject; - return true; - } - - private (Vector3 Position, int Index)? FindNextWaypoint() - { - IGameObject gameObject = objectTable[0]; - if (gameObject == null || base.Task.WaypointPositions.Count == 0) - { - return null; - } - (Vector3, int)? result = null; - float num = float.MaxValue; - for (int i = 0; i < base.Task.WaypointPositions.Count; i++) - { - if (!_triedWaypointIndices.Contains(i)) - { - float num2 = Vector3.Distance(gameObject.Position, base.Task.WaypointPositions[i]); - if (num2 < num) - { - result = (base.Task.WaypointPositions[i], i); - num = num2; - } - } - } - return result; - } - - private void NavigateToNextWaypoint() - { - (Vector3, int)? tuple = FindNextWaypoint(); - if (!tuple.HasValue) - { - logger.LogInformation("All waypoints tried without transition, resetting"); - _triedWaypointIndices.Clear(); - tuple = FindNextWaypoint(); - if (!tuple.HasValue) - { - logger.LogWarning("No waypoint positions configured, waiting for transition"); - _state = State.WaitingForTransition; - _lastPlayerPosition = objectTable[0]?.Position ?? Vector3.Zero; - return; - } - } - _triedWaypointIndices.Add(tuple.Value.Item2); - logger.LogInformation("Moving to waypoint {Index} at {Position}", tuple.Value.Item2, tuple.Value.Item1); - movementController.NavigateTo(EMovementType.Quest, null, tuple.Value.Item1, fly: false, sprint: true, 0f); - _state = State.MovingToWaypoint; - } - - public override ETaskResult Update() - { - if (clientState.TerritoryType != base.Task.TerritoryId) - { - return ETaskResult.TaskComplete; - } - switch (_state) - { - case State.FindingObject: - if (_noObjectFoundSince != DateTime.MaxValue && DateTime.Now > _noObjectFoundSince.AddSeconds(3.0)) - { - if (AnyMatchingObjectsExist()) - { - logger.LogInformation("Matching objects still exist, clearing visited positions and retrying"); - _visitedPositions.Clear(); - _noObjectFoundSince = DateTime.MaxValue; - } - else - { - logger.LogInformation("No matching objects remain, moving to waypoint"); - NavigateToNextWaypoint(); - } - return ETaskResult.StillRunning; - } - TryFindAndMove(); - return ETaskResult.StillRunning; - case State.MovingToObject: - { - if (movementController.IsPathfinding || movementController.IsPathRunning) - { - return ETaskResult.StillRunning; - } - DateTime movementStartedAt = movementController.MovementStartedAt; - if (movementStartedAt == DateTime.MaxValue || movementStartedAt.AddSeconds(2.0) >= DateTime.Now) - { - return ETaskResult.StillRunning; - } - IGameObject gameObject2 = FindNearestUnvisitedObject(); - IGameObject gameObject3 = objectTable[0]; - if (gameObject2 != null && gameObject3 != null && Vector3.Distance(gameObject3.Position, gameObject2.Position) <= 5f) - { - _visitedPositions.Add(gameObject2.Position); - _state = State.UsingAction; - } - else - { - logger.LogInformation("Target no longer valid at destination, finding next"); - TryFindAndMove(); - } - return ETaskResult.StillRunning; - } - case State.UsingAction: - if (gameFunctions.UseAction(base.Task.Action)) - { - logger.LogInformation("Used action {Action}", base.Task.Action); - _waitUntil = DateTime.Now.AddSeconds(1.0); - _state = State.WaitingAfterAction; - } - return ETaskResult.StillRunning; - case State.WaitingAfterAction: - if (DateTime.Now < _waitUntil) - { - return ETaskResult.StillRunning; - } - TryFindAndMove(); - return ETaskResult.StillRunning; - case State.MovingToWaypoint: - { - if (movementController.IsPathfinding || movementController.IsPathRunning) - { - return ETaskResult.StillRunning; - } - DateTime movementStartedAt2 = movementController.MovementStartedAt; - if (movementStartedAt2 == DateTime.MaxValue || movementStartedAt2.AddSeconds(2.0) >= DateTime.Now) - { - return ETaskResult.StillRunning; - } - logger.LogInformation("Reached waypoint, waiting for zone transition"); - _state = State.WaitingForTransition; - _lastPlayerPosition = objectTable[0]?.Position ?? Vector3.Zero; - _waypointReachedAt = DateTime.Now; - return ETaskResult.StillRunning; - } - case State.WaitingForTransition: - { - IGameObject gameObject = objectTable[0]; - if (gameObject != null) - { - float num = Vector3.Distance(_lastPlayerPosition, gameObject.Position); - if (num > 50f) - { - logger.LogInformation("Zone transition detected (moved {Distance}), resuming plant clearing", num); - _visitedPositions.Clear(); - _triedWaypointIndices.Clear(); - _noObjectFoundSince = DateTime.MaxValue; - _state = State.FindingObject; - return ETaskResult.StillRunning; - } - } - if (FindNearestUnvisitedObject() != null) - { - logger.LogInformation("New objects detected, resuming plant clearing"); - _visitedPositions.Clear(); - _triedWaypointIndices.Clear(); - _noObjectFoundSince = DateTime.MaxValue; - TryFindAndMove(); - return ETaskResult.StillRunning; - } - if (_waypointReachedAt != DateTime.MaxValue && DateTime.Now > _waypointReachedAt.AddSeconds(3.0)) - { - logger.LogInformation("No transition at this waypoint, trying next"); - NavigateToNextWaypoint(); - } - return ETaskResult.StillRunning; - } - default: - return ETaskResult.TaskComplete; - } - } - - public override bool ShouldInterruptOnDamage() - { - return false; - } - } -} diff --git a/Questionable/Questionable.Controller.Steps.Interactions/Dive.cs b/Questionable/Questionable.Controller.Steps.Interactions/Dive.cs index f7ad257..12aec3f 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/Dive.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/Dive.cs @@ -130,8 +130,10 @@ internal static class Dive List> list = new List>(num); CollectionsMarshal.SetCount(list, num); Span> span = CollectionsMarshal.AsSpan(list); - span[0] = GetKeysToPress(key, keyModifier); - span[1] = GetKeysToPress(key2, keyModifier2); + int num2 = 0; + span[num2] = GetKeysToPress(key, keyModifier); + num2++; + span[num2] = GetKeysToPress(key2, keyModifier2); List list2 = (from x in list where x != null select (x)).MinBy((List x) => x.Count); @@ -142,12 +144,12 @@ internal static class Dive foreach (nint item in list2) { _keysToPress.Enqueue((256u, item)); - for (int num2 = 0; num2 < 15; num2++) + for (int num3 = 0; num3 < 15; num3++) { _keysToPress.Enqueue((0u, 0)); } } - for (int num3 = 0; num3 < 5; num3++) + for (int num4 = 0; num4 < 5; num4++) { _keysToPress.Enqueue((0u, 0)); } diff --git a/Questionable/Questionable.Controller.Steps.Interactions/EquipItem.cs b/Questionable/Questionable.Controller.Steps.Interactions/EquipItem.cs index fb1603a..76c9804 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/EquipItem.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/EquipItem.cs @@ -175,10 +175,12 @@ internal static class EquipItem case 10u: case 11u: { - int num = 1; - List list4 = new List(num); - CollectionsMarshal.SetCount(list4, num); - CollectionsMarshal.AsSpan(list4)[0] = (ushort)(item.Value.EquipSlotCategory.RowId - 1); + int index = 1; + List list4 = new List(index); + CollectionsMarshal.SetCount(list4, index); + Span span4 = CollectionsMarshal.AsSpan(list4); + int num = 0; + span4[num] = (ushort)(item.Value.EquipSlotCategory.RowId - 1); return list4; } case 12u: @@ -186,17 +188,21 @@ internal static class EquipItem int num = 2; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span = CollectionsMarshal.AsSpan(list3); - span[0] = 11; - span[1] = 12; + Span span3 = CollectionsMarshal.AsSpan(list3); + int index = 0; + span3[index] = 11; + index++; + span3[index] = 12; return list3; } case 13u: { - int num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = 0; + int index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + int num = 0; + span2[num] = 0; return list2; } case 17u: @@ -204,7 +210,9 @@ internal static class EquipItem int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = 13; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = 13; return list; } default: diff --git a/Questionable/Questionable.Controller.Steps.Interactions/FateFarming.cs b/Questionable/Questionable.Controller.Steps.Interactions/FateFarming.cs index 8075e71..e250642 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/FateFarming.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/FateFarming.cs @@ -120,8 +120,6 @@ internal static class FateFarming private ushort _trackedFateId; - private bool _fateWasActive; - protected override bool Start() { _trackedFateId = gameFunctions.GetCurrentFateId(); @@ -140,13 +138,6 @@ internal static class FateFarming logger.LogInformation("Required status {StatusId} lost during FATE action loop, ending cycle to re-apply", base.Task.RequiredStatusId.Value); return ETaskResult.TaskComplete; } - bool flag = gameFunctions.GetCurrentFateId() != 0; - if (_fateWasActive && !flag) - { - logger.LogInformation("FATE {FateId} is no longer active, cycle complete", _trackedFateId); - return ETaskResult.TaskComplete; - } - _fateWasActive = flag; if (_trackedFateId == 0) { _trackedFateId = gameFunctions.GetCurrentFateId(); @@ -165,8 +156,8 @@ internal static class FateFarming IGameObject gameObject = gameFunctions.FindObjectByDataId(target.DataId, null, warnIfMissing: false); if (gameObject != null && gameObject.IsTargetable) { - bool flag2 = gameFunctions.UseAction(gameObject, target.Action); - _nextActionAt = (flag2 ? DateTime.Now.AddSeconds(2.5) : DateTime.Now.AddSeconds(0.5)); + bool flag = gameFunctions.UseAction(gameObject, target.Action); + _nextActionAt = (flag ? DateTime.Now.AddSeconds(2.5) : DateTime.Now.AddSeconds(0.5)); return ETaskResult.StillRunning; } } diff --git a/Questionable/Questionable.Controller.Steps.Interactions/Jump.cs b/Questionable/Questionable.Controller.Steps.Interactions/Jump.cs index 13e2974..b05028b 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/Jump.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/Jump.cs @@ -67,7 +67,9 @@ internal static class Jump int num2 = 1; List list = new List(num2); CollectionsMarshal.SetCount(list, num2); - CollectionsMarshal.AsSpan(list)[0] = base.Task.JumpDestination.Position; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = base.Task.JumpDestination.Position; movementController.NavigateTo(EMovementType.Quest, dataId, list, fly: false, sprint: false, base.Task.JumpDestination.StopDistance ?? num); _003Cframework_003EP.RunOnTick(delegate { diff --git a/Questionable/Questionable.Controller.Steps.Movement/MoveExecutor.cs b/Questionable/Questionable.Controller.Steps.Movement/MoveExecutor.cs index bbc96a0..9ea2fcf 100644 --- a/Questionable/Questionable.Controller.Steps.Movement/MoveExecutor.cs +++ b/Questionable/Questionable.Controller.Steps.Movement/MoveExecutor.cs @@ -87,7 +87,9 @@ internal sealed class MoveExecutor : TaskExecutor, IToastAware, ITaskE int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = _destination; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = _destination; movementController.NavigateTo(EMovementType.Quest, dataId, list, base.Task.Fly, base.Task.Sprint ?? (!_mountDuringMovement.HasValue), base.Task.StopDistance, base.Task.IgnoreDistanceToObject ? new float?(float.MaxValue) : ((float?)null), base.Task.Land); }; } diff --git a/Questionable/Questionable.Controller.Steps.Movement/MoveTo.cs b/Questionable/Questionable.Controller.Steps.Movement/MoveTo.cs index b7919fc..b44606b 100644 --- a/Questionable/Questionable.Controller.Steps.Movement/MoveTo.cs +++ b/Questionable/Questionable.Controller.Steps.Movement/MoveTo.cs @@ -18,10 +18,6 @@ internal static class MoveTo { public IEnumerable CreateAllTasks(Quest quest, QuestSequence sequence, QuestStep step) { - if (step.DataIds.Count > 0) - { - return Array.Empty(); - } if (step.Position.HasValue) { return CreateMoveTasks(step, step.Position.Value); @@ -30,10 +26,6 @@ internal static class MoveTo { return new global::_003C_003Ez__ReadOnlySingleElementList(new WaitForNearDataId(step.DataId.Value, step.StopDistance.Value)); } - if (step != null && step.DataId.HasValue && !step.Position.HasValue) - { - return CreateMoveToObjectTasks(step); - } EAetheryteLocation valueOrDefault = default(EAetheryteLocation); bool flag; if (step != null) @@ -46,13 +38,13 @@ internal static class MoveTo { valueOrDefault = aetheryte.GetValueOrDefault(); flag = true; - goto IL_00e2; + goto IL_00a3; } } } flag = false; - goto IL_00e2; - IL_00e2: + goto IL_00a3; + IL_00a3: if (flag) { return CreateMoveTasks(step, aetheryteData.Locations[valueOrDefault]); @@ -69,16 +61,6 @@ internal static class MoveTo return Array.Empty(); } - private IEnumerable CreateMoveToObjectTasks(QuestStep step) - { - yield return new WaitCondition.Task(() => clientState.TerritoryType == step.TerritoryId, "Wait(territory: " + territoryData.GetNameAndId(step.TerritoryId) + ")"); - if (!step.DisableNavmesh) - { - yield return new WaitNavmesh.Task(); - } - yield return new MoveToObject(step); - } - private IEnumerable CreateMoveTasks(QuestStep step, Vector3 destination) { IGameObject gameObject = objectTable[0]; diff --git a/Questionable/Questionable.Controller.Steps.Movement/MoveToObject.cs b/Questionable/Questionable.Controller.Steps.Movement/MoveToObject.cs deleted file mode 100644 index 9424935..0000000 --- a/Questionable/Questionable.Controller.Steps.Movement/MoveToObject.cs +++ /dev/null @@ -1,16 +0,0 @@ -using Questionable.Model.Questing; - -namespace Questionable.Controller.Steps.Movement; - -internal sealed record MoveToObject(QuestStep Step) : ITask -{ - public bool ShouldRedoOnInterrupt() - { - return true; - } - - public override string ToString() - { - return $"MoveToObject({Step.DataId})"; - } -} diff --git a/Questionable/Questionable.Controller.Steps.Movement/MoveToObjectExecutor.cs b/Questionable/Questionable.Controller.Steps.Movement/MoveToObjectExecutor.cs deleted file mode 100644 index 54b6e09..0000000 --- a/Questionable/Questionable.Controller.Steps.Movement/MoveToObjectExecutor.cs +++ /dev/null @@ -1,127 +0,0 @@ -using System; -using System.Numerics; -using Dalamud.Game.ClientState.Objects.Enums; -using Dalamud.Game.ClientState.Objects.Types; -using Dalamud.Plugin.Services; -using Microsoft.Extensions.Logging; -using Questionable.Functions; -using Questionable.Model; - -namespace Questionable.Controller.Steps.Movement; - -internal sealed class MoveToObjectExecutor(MovementController movementController, GameFunctions gameFunctions, IClientState clientState, IObjectTable objectTable, ILogger logger) : TaskExecutor() -{ - private DateTime _startedLookingAt = DateTime.MaxValue; - - private Vector3 _destination; - - private bool _moving; - - protected override bool Start() - { - if (!base.Task.Step.DataId.HasValue) - { - logger.LogWarning("MoveToObject task has no DataId"); - return false; - } - if (clientState.TerritoryType != base.Task.Step.TerritoryId) - { - logger.LogInformation("Not in correct territory yet, waiting"); - return true; - } - _startedLookingAt = DateTime.Now; - return TryStartMovement(); - } - - private IGameObject? FindDistantObjectByDataId(uint dataId) - { - IGameObject gameObject = objectTable[0]; - if (gameObject == null) - { - return null; - } - float num = base.Task.Step.CalculateActualStopDistance(); - IGameObject result = null; - float num2 = float.MaxValue; - foreach (IGameObject item in objectTable) - { - ObjectKind objectKind = item.ObjectKind; - bool flag = ((objectKind == ObjectKind.Player || objectKind - 8 <= ObjectKind.BattleNpc || objectKind == ObjectKind.Housing) ? true : false); - if (!flag && item.BaseId == dataId) - { - float num3 = Vector3.Distance(gameObject.Position, item.Position); - if (!(num3 <= num) && num3 < num2) - { - result = item; - num2 = num3; - } - } - } - return result; - } - - private bool TryStartMovement() - { - IGameObject gameObject = FindDistantObjectByDataId(base.Task.Step.DataId.Value); - if (gameObject == null) - { - gameObject = gameFunctions.FindObjectByDataId(base.Task.Step.DataId.Value, null, warnIfMissing: false); - if (gameObject == null) - { - logger.LogInformation("Object {DataId} not found yet, waiting", base.Task.Step.DataId); - return true; - } - IGameObject gameObject2 = objectTable[0]; - float num = base.Task.Step.CalculateActualStopDistance(); - if (gameObject2 != null && Vector3.Distance(gameObject2.Position, gameObject.Position) <= num) - { - logger.LogInformation("Only nearby objects with DataId {DataId} remain, skipping", base.Task.Step.DataId); - return true; - } - } - _destination = gameObject.Position; - logger.LogInformation("Moving to object {DataId} at {Position}", base.Task.Step.DataId, _destination); - movementController.NavigateTo(EMovementType.Quest, base.Task.Step.DataId, _destination, fly: false, base.Task.Step.Sprint ?? true, base.Task.Step.CalculateActualStopDistance()); - _moving = true; - return true; - } - - public override ETaskResult Update() - { - if (clientState.TerritoryType != base.Task.Step.TerritoryId) - { - return ETaskResult.StillRunning; - } - if (!_moving) - { - if (_startedLookingAt != DateTime.MaxValue && DateTime.Now > _startedLookingAt.AddSeconds(3.0)) - { - logger.LogInformation("Object {DataId} not found after timeout, skipping step", base.Task.Step.DataId); - return ETaskResult.TaskComplete; - } - if (!TryStartMovement()) - { - return ETaskResult.TaskComplete; - } - if (!_moving) - { - return ETaskResult.StillRunning; - } - } - if (movementController.IsPathfinding || movementController.IsPathRunning) - { - return ETaskResult.StillRunning; - } - DateTime movementStartedAt = movementController.MovementStartedAt; - if (movementStartedAt == DateTime.MaxValue || movementStartedAt.AddSeconds(2.0) >= DateTime.Now) - { - return ETaskResult.StillRunning; - } - return ETaskResult.TaskComplete; - } - - public override bool ShouldInterruptOnDamage() - { - return false; - } -} diff --git a/Questionable/Questionable.Controller.Steps.Shared/AethernetShortcut.cs b/Questionable/Questionable.Controller.Steps.Shared/AethernetShortcut.cs index 8071c56..6bd2b25 100644 --- a/Questionable/Questionable.Controller.Steps.Shared/AethernetShortcut.cs +++ b/Questionable/Questionable.Controller.Steps.Shared/AethernetShortcut.cs @@ -119,10 +119,14 @@ internal static class AethernetShortcut List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - span[0] = new Vector3(0f, 8.442986f, 9f); - span[1] = new Vector3(9f, 8.442986f, 0f); - span[2] = new Vector3(-9f, 8.442986f, 0f); - span[3] = new Vector3(0f, 8.442986f, -9f); + int num2 = 0; + span[num2] = new Vector3(0f, 8.442986f, 9f); + num2++; + span[num2] = new Vector3(9f, 8.442986f, 0f); + num2++; + span[num2] = new Vector3(-9f, 8.442986f, 0f); + num2++; + span[num2] = new Vector3(0f, 8.442986f, -9f); Vector3 to = list.MinBy((Vector3 x) => Vector3.Distance(playerPosition, x)); _moving = true; movementController.NavigateTo(EMovementType.Quest, (uint)base.Task.From, to, fly: false, sprint: true, 0.25f); diff --git a/Questionable/Questionable.Controller.Steps.Shared/AetheryteShortcut.cs b/Questionable/Questionable.Controller.Steps.Shared/AetheryteShortcut.cs index 5a00a82..ba92346 100644 --- a/Questionable/Questionable.Controller.Steps.Shared/AetheryteShortcut.cs +++ b/Questionable/Questionable.Controller.Steps.Shared/AetheryteShortcut.cs @@ -257,10 +257,14 @@ internal static class AetheryteShortcut List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - span[0] = new Vector3(0f, 8.8f, 15.5f); - span[1] = new Vector3(0f, 8.8f, -15.5f); - span[2] = new Vector3(15.5f, 8.8f, 0f); - span[3] = new Vector3(-15.5f, 8.8f, 0f); + int num2 = 0; + span[num2] = new Vector3(0f, 8.8f, 15.5f); + num2++; + span[num2] = new Vector3(0f, 8.8f, -15.5f); + num2++; + span[num2] = new Vector3(15.5f, 8.8f, 0f); + num2++; + span[num2] = new Vector3(-15.5f, 8.8f, 0f); dictionary.Add(EAetheryteLocation.SolutionNine, list); AetherytesToMoveFrom = dictionary; } diff --git a/Questionable/Questionable.Controller.Steps/TaskCreator.cs b/Questionable/Questionable.Controller.Steps/TaskCreator.cs index 3a77da0..77df5fa 100644 --- a/Questionable/Questionable.Controller.Steps/TaskCreator.cs +++ b/Questionable/Questionable.Controller.Steps/TaskCreator.cs @@ -43,15 +43,19 @@ internal sealed class TaskCreator int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = new WaitAtEnd.WaitNextStepOrSequence(); + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = new WaitAtEnd.WaitNextStepOrSequence(); list2 = list; } else if (step == null) { - int num = 1; - List list3 = new List(num); - CollectionsMarshal.SetCount(list3, num); - CollectionsMarshal.AsSpan(list3)[0] = new WaitAtEnd.WaitNextStepOrSequence(); + int index = 1; + List list3 = new List(index); + CollectionsMarshal.SetCount(list3, index); + Span span2 = CollectionsMarshal.AsSpan(list3); + int num = 0; + span2[num] = new WaitAtEnd.WaitNextStepOrSequence(); list2 = list3; } else diff --git a/Questionable/Questionable.Controller/CombatController.cs b/Questionable/Questionable.Controller/CombatController.cs index 37f3875..c2a2294 100644 --- a/Questionable/Questionable.Controller/CombatController.cs +++ b/Questionable/Questionable.Controller/CombatController.cs @@ -515,7 +515,9 @@ internal sealed class CombatController : IDisposable int num4 = 1; List list = new List(num4); CollectionsMarshal.SetCount(list, num4); - CollectionsMarshal.AsSpan(list)[0] = gameObject.Position; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = gameObject.Position; movementController.NavigateTo(EMovementType.Combat, null, list, fly: false, sprint: false, num3 + num - 0.25f, float.MaxValue); } else diff --git a/Questionable/Questionable.Controller/CommandHandler.cs b/Questionable/Questionable.Controller/CommandHandler.cs index e51b203..3fa5eff 100644 --- a/Questionable/Questionable.Controller/CommandHandler.cs +++ b/Questionable/Questionable.Controller/CommandHandler.cs @@ -1,5 +1,4 @@ using System; -using System.Runtime.CompilerServices; using Dalamud.Game.Command; using Dalamud.Plugin.Services; using Questionable.Functions; @@ -37,12 +36,8 @@ internal sealed class CommandHandler : IDisposable private readonly FateController _fateController; - private readonly SeasonalDutyController _seasonalDutyController; - private readonly FateSelectionWindow _fateSelectionWindow; - private readonly SeasonalDutySelectionWindow _seasonalDutySelectionWindow; - private readonly ITargetManager _targetManager; private readonly IClientState _clientState; @@ -51,14 +46,13 @@ internal sealed class CommandHandler : IDisposable private readonly ChangelogWindow _changelogWindow; - public CommandHandler(ICommandManager commandManager, IChatGui chatGui, QuestController questController, MovementController movementController, FateController fateController, SeasonalDutyController seasonalDutyController, QuestRegistry questRegistry, ConfigWindow configWindow, DebugOverlay debugOverlay, OneTimeSetupWindow oneTimeSetupWindow, QuestWindow questWindow, QuestSelectionWindow questSelectionWindow, QuestSequenceWindow questSequenceWindow, JournalProgressWindow journalProgressWindow, PriorityWindow priorityWindow, FateSelectionWindow fateSelectionWindow, SeasonalDutySelectionWindow seasonalDutySelectionWindow, ITargetManager targetManager, QuestFunctions questFunctions, GameFunctions gameFunctions, AetheryteFunctions aetheryteFunctions, IDataManager dataManager, IClientState clientState, IObjectTable objectTable, Configuration configuration, ChangelogWindow changelogWindow) + public CommandHandler(ICommandManager commandManager, IChatGui chatGui, QuestController questController, MovementController movementController, FateController fateController, QuestRegistry questRegistry, ConfigWindow configWindow, DebugOverlay debugOverlay, OneTimeSetupWindow oneTimeSetupWindow, QuestWindow questWindow, QuestSelectionWindow questSelectionWindow, QuestSequenceWindow questSequenceWindow, JournalProgressWindow journalProgressWindow, PriorityWindow priorityWindow, FateSelectionWindow fateSelectionWindow, ITargetManager targetManager, QuestFunctions questFunctions, GameFunctions gameFunctions, AetheryteFunctions aetheryteFunctions, IDataManager dataManager, IClientState clientState, IObjectTable objectTable, Configuration configuration, ChangelogWindow changelogWindow) { _commandManager = commandManager; _chatGui = chatGui; _questController = questController; _movementController = movementController; _fateController = fateController; - _seasonalDutyController = seasonalDutyController; _configWindow = configWindow; _oneTimeSetupWindow = oneTimeSetupWindow; _questWindow = questWindow; @@ -67,7 +61,6 @@ internal sealed class CommandHandler : IDisposable _journalProgressWindow = journalProgressWindow; _priorityWindow = priorityWindow; _fateSelectionWindow = fateSelectionWindow; - _seasonalDutySelectionWindow = seasonalDutySelectionWindow; _targetManager = targetManager; _clientState = clientState; _configuration = configuration; @@ -76,15 +69,15 @@ internal sealed class CommandHandler : IDisposable ICommandManager commandManager2 = _commandManager; CommandInfo commandInfo = new CommandInfo(ProcessCommand); string separator = Environment.NewLine + "\t"; - InlineArray7 buffer = default(InlineArray7); - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 0) = "Opens the Questing window"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 1) = "/qst help - displays simplified commands"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 2) = "/qst help-all - displays all available commands"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 3) = "/qst config - opens the configuration window"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 4) = "/qst changelog - opens the changelog window"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 5) = "/qst start - starts doing quests"; - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, string>(ref buffer, 6) = "/qst stop - stops doing quests"; - commandInfo.HelpMessage = string.Join(separator, global::_003CPrivateImplementationDetails_003E.InlineArrayAsReadOnlySpan, string>(in buffer, 7)); + _003C_003Ey__InlineArray7 buffer = default(_003C_003Ey__InlineArray7); + global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<_003C_003Ey__InlineArray7, string>(ref buffer, 0) = "Opens the Questing window"; + global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<_003C_003Ey__InlineArray7, string>(ref buffer, 1) = "/qst help - displays simplified commands"; + global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<_003C_003Ey__InlineArray7, string>(ref buffer, 2) = "/qst help-all - displays all available commands"; + global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<_003C_003Ey__InlineArray7, string>(ref buffer, 3) = "/qst config - opens the configuration window"; + global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<_003C_003Ey__InlineArray7, string>(ref buffer, 4) = "/qst changelog - opens the changelog window"; + global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<_003C_003Ey__InlineArray7, string>(ref buffer, 5) = "/qst start - starts doing quests"; + global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<_003C_003Ey__InlineArray7, string>(ref buffer, 6) = "/qst stop - stops doing quests"; + commandInfo.HelpMessage = string.Join(separator, global::_003CPrivateImplementationDetails_003E.InlineArrayAsReadOnlySpan<_003C_003Ey__InlineArray7, string>(in buffer, 7)); commandManager2.AddHandler("/qst", commandInfo); } @@ -106,7 +99,7 @@ internal sealed class CommandHandler : IDisposable _chatGui.Print("/qst start - starts doing quests", "Questionable", 576); _chatGui.Print("/qst stop - stops doing quests", "Questionable", 576); _chatGui.Print("/qst reload - reload all quest data", "Questionable", 576); - _chatGui.Print("/qst fate / duty - toggles the farming window", "Questionable", 576); + _chatGui.Print("/qst fate - toggles the FATE farming window", "Questionable", 576); break; case "ha": case "help-all": @@ -123,7 +116,7 @@ internal sealed class CommandHandler : IDisposable _chatGui.Print("/qst zone - shows all quests starting in the current zone (only includes quests with a known quest path, and currently visible unaccepted quests)", "Questionable", 576); _chatGui.Print("/qst journal - toggles the Journal Progress window", "Questionable", 576); _chatGui.Print("/qst priority - toggles the Priority window", "Questionable", 576); - _chatGui.Print("/qst fate / duty - toggles the farming window", "Questionable", 576); + _chatGui.Print("/qst fate - toggles the FATE farming window", "Questionable", 576); _chatGui.Print("/qst handle-interrupt - makes Questionable handle queued interrupts immediately (useful if you manually start combat)", "Questionable", 576); break; case "c": @@ -142,7 +135,6 @@ internal sealed class CommandHandler : IDisposable _movementController.Stop(); _questController.Stop("Stop command"); _fateController.Stop("Stop command"); - _seasonalDutyController.Stop("Stop command"); break; case "reload": _questWindow.Reload(); @@ -166,10 +158,6 @@ internal sealed class CommandHandler : IDisposable case "fate": _fateSelectionWindow.ToggleOrUncollapse(); break; - case "d": - case "duty": - _seasonalDutySelectionWindow.ToggleOrUncollapse(); - break; case "handle-interrupt": _questController.InterruptQueueWithCombat(); break; diff --git a/Questionable/Questionable.Controller/ContextMenuController.cs b/Questionable/Questionable.Controller/ContextMenuController.cs index fca8f7a..b29c8be 100644 --- a/Questionable/Questionable.Controller/ContextMenuController.cs +++ b/Questionable/Questionable.Controller/ContextMenuController.cs @@ -200,7 +200,9 @@ internal sealed class ContextMenuController : IDisposable int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = new GatheredItem + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = new GatheredItem { ItemId = itemId, ItemCount = quantity, diff --git a/Questionable/Questionable.Controller/MiniTaskController.cs b/Questionable/Questionable.Controller/MiniTaskController.cs index 3897001..b69281a 100644 --- a/Questionable/Questionable.Controller/MiniTaskController.cs +++ b/Questionable/Questionable.Controller/MiniTaskController.cs @@ -179,7 +179,9 @@ internal abstract class MiniTaskController : IDisposable int num = 1; List list2 = new List(num); CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new WaitAtEnd.WaitDelay(); + Span span = CollectionsMarshal.AsSpan(list2); + int index = 0; + span[index] = new WaitAtEnd.WaitDelay(); taskQueue.InterruptWith(list2); } LogTasksAfterInterruption(); @@ -194,7 +196,9 @@ internal abstract class MiniTaskController : IDisposable int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = new WaitAtEnd.WaitDelay(); + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = new WaitAtEnd.WaitDelay(); taskQueue.InterruptWith(list); LogTasksAfterInterruption(); } diff --git a/Questionable/Questionable.Controller/MovementController.cs b/Questionable/Questionable.Controller/MovementController.cs index 2296b8e..be5b48d 100644 --- a/Questionable/Questionable.Controller/MovementController.cs +++ b/Questionable/Questionable.Controller/MovementController.cs @@ -431,7 +431,9 @@ internal sealed class MovementController : IDisposable int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = destination.Position; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = destination.Position; NavigateTo(EMovementType.None, dataId, list, fly: false, sprint: false, destination.StopDistance, destination.VerticalStopDistance); } diff --git a/Questionable/Questionable.Controller/QuestController.cs b/Questionable/Questionable.Controller/QuestController.cs index ecbe977..96c340b 100644 --- a/Questionable/Questionable.Controller/QuestController.cs +++ b/Questionable/Questionable.Controller/QuestController.cs @@ -101,8 +101,6 @@ internal sealed class QuestController : MiniTaskController private readonly FateController _fateController; - private readonly SeasonalDutyController _seasonalDutyController; - private readonly QuestRegistry _questRegistry; private readonly JournalData _journalData; @@ -248,7 +246,7 @@ internal sealed class QuestController : MiniTaskController public event AutomationTypeChangedEventHandler? AutomationTypeChanged; - public QuestController(IClientState clientState, IObjectTable objectTable, GameFunctions gameFunctions, QuestFunctions questFunctions, MovementController movementController, CombatController combatController, GatheringController gatheringController, FateController fateController, SeasonalDutyController seasonalDutyController, ILogger logger, QuestRegistry questRegistry, JournalData journalData, IKeyState keyState, IChatGui chatGui, ICondition condition, IToastGui toastGui, Configuration configuration, TaskCreator taskCreator, IServiceProvider serviceProvider, InterruptHandler interruptHandler, IDataManager dataManager, SinglePlayerDutyConfigComponent singlePlayerDutyConfigComponent, AutoDutyIpc autoDutyIpc, IDalamudPluginInterface pluginInterface) + public QuestController(IClientState clientState, IObjectTable objectTable, GameFunctions gameFunctions, QuestFunctions questFunctions, MovementController movementController, CombatController combatController, GatheringController gatheringController, FateController fateController, ILogger logger, QuestRegistry questRegistry, JournalData journalData, IKeyState keyState, IChatGui chatGui, ICondition condition, IToastGui toastGui, Configuration configuration, TaskCreator taskCreator, IServiceProvider serviceProvider, InterruptHandler interruptHandler, IDataManager dataManager, SinglePlayerDutyConfigComponent singlePlayerDutyConfigComponent, AutoDutyIpc autoDutyIpc, IDalamudPluginInterface pluginInterface) : base(chatGui, condition, serviceProvider, interruptHandler, dataManager, logger) { _clientState = clientState; @@ -259,7 +257,6 @@ internal sealed class QuestController : MiniTaskController _combatController = combatController; _gatheringController = gatheringController; _fateController = fateController; - _seasonalDutyController = seasonalDutyController; _questRegistry = questRegistry; _journalData = journalData; _keyState = keyState; @@ -925,7 +922,6 @@ internal sealed class QuestController : MiniTaskController _combatController.Stop("ClearTasksInternal"); _gatheringController.Stop("ClearTasksInternal"); _fateController.Stop("ClearTasksInternal"); - _seasonalDutyController.Stop("ClearTasksInternal"); } public override void Stop(string label) @@ -953,7 +949,6 @@ internal sealed class QuestController : MiniTaskController _combatController.Stop(label); _gatheringController.Stop(label); _fateController.Stop(label); - _seasonalDutyController.Stop(label); } private void CheckNextTasks(string label) @@ -1253,7 +1248,6 @@ internal sealed class QuestController : MiniTaskController _combatController.Stop("Execute next step"); _gatheringController.Stop("Execute next step"); _fateController.Stop("Execute next step"); - _seasonalDutyController.Stop("Execute next step"); try { foreach (ITask item5 in _taskCreator.CreateTasks(CurrentQuest.Quest, CurrentQuest.Sequence, questSequence, step)) diff --git a/Questionable/Questionable.Controller/SeasonalDutyController.cs b/Questionable/Questionable.Controller/SeasonalDutyController.cs deleted file mode 100644 index 5b7aa9e..0000000 --- a/Questionable/Questionable.Controller/SeasonalDutyController.cs +++ /dev/null @@ -1,170 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Runtime.InteropServices; -using Dalamud.Plugin.Services; -using Microsoft.Extensions.Logging; -using Questionable.Controller.Steps; -using Questionable.Controller.Steps.Common; -using Questionable.Controller.Steps.Interactions; -using Questionable.Controller.Steps.Movement; -using Questionable.Controller.Steps.Shared; -using Questionable.Functions; -using Questionable.Model.Questing; - -namespace Questionable.Controller; - -internal sealed class SeasonalDutyController : MiniTaskController -{ - private readonly MovementController _movementController; - - private readonly GameFunctions _gameFunctions; - - private readonly IClientState _clientState; - - private readonly ILogger _logger; - - private SeasonalDutyDefinition? _currentDuty; - - private int _completedCycles; - - private int? _cycleLimit; - - private DateTime _startTime; - - public bool IsRunning => _currentDuty != null; - - public SeasonalDutyDefinition? CurrentDuty => _currentDuty; - - public int CompletedCycles => _completedCycles; - - public int? CycleLimit => _cycleLimit; - - public TimeSpan ElapsedTime - { - get - { - if (!IsRunning) - { - return TimeSpan.Zero; - } - return DateTime.UtcNow - _startTime; - } - } - - public SeasonalDutyController(IChatGui chatGui, ICondition condition, IServiceProvider serviceProvider, InterruptHandler interruptHandler, IDataManager dataManager, ILogger logger, MovementController movementController, GameFunctions gameFunctions, IClientState clientState) - : base(chatGui, condition, serviceProvider, interruptHandler, dataManager, logger) - { - _movementController = movementController; - _gameFunctions = gameFunctions; - _clientState = clientState; - _logger = logger; - } - - public void Start(SeasonalDutyDefinition duty, int? cycleLimit = null) - { - _currentDuty = duty; - _completedCycles = 0; - _cycleLimit = cycleLimit; - _startTime = DateTime.UtcNow; - _logger.LogInformation("Starting seasonal duty farming: {DutyName} (limit: {Limit})", duty.Name, cycleLimit?.ToString(CultureInfo.InvariantCulture) ?? "unlimited"); - EnqueueDutyCycle(); - } - - public void Update() - { - if (_currentDuty == null || _movementController.IsPathfinding || _movementController.IsPathRunning) - { - return; - } - if (_taskQueue.AllTasksComplete) - { - _completedCycles++; - if (_cycleLimit.HasValue && _completedCycles >= _cycleLimit.Value) - { - _logger.LogInformation("Seasonal duty cycle limit reached ({Cycles}/{Limit})", _completedCycles, _cycleLimit.Value); - Stop("Cycle limit reached"); - return; - } - EnqueueDutyCycle(); - } - UpdateCurrentTask(); - } - - private void EnqueueDutyCycle() - { - if (_currentDuty == null) - { - return; - } - SeasonalDutyDefinition duty = _currentDuty; - _logger.LogInformation("Enqueuing seasonal duty cycle for {DutyName}", duty.Name); - if (_clientState.TerritoryType != duty.DutyTerritoryId) - { - if (_clientState.TerritoryType != duty.TerritoryId) - { - _taskQueue.Enqueue(new AetheryteShortcut.Task(null, null, duty.Aetheryte, duty.TerritoryId)); - } - if (duty.AethernetShortcut != null) - { - _taskQueue.Enqueue(new AethernetShortcut.Task(duty.AethernetShortcut.From, duty.AethernetShortcut.To)); - } - _taskQueue.Enqueue(new MoveTask(duty.TerritoryId, duty.NpcPosition, null, 3f)); - _taskQueue.Enqueue(new Mount.UnmountTask()); - bool interacted = false; - _taskQueue.Enqueue(new WaitCondition.Task(delegate - { - if (_clientState.TerritoryType == _currentDuty.DutyTerritoryId) - { - return true; - } - if (!interacted) - { - interacted = _gameFunctions.InteractWith(duty.NpcDataId); - } - return false; - }, $"InteractAndWait(territory: {duty.DutyTerritoryId})")); - } - _taskQueue.Enqueue(new ClearObjectsWithAction.ClearTask(duty.DataIds, duty.Action, duty.DutyTerritoryId, duty.StopDistance, duty.WaypointPositions)); - _taskQueue.Enqueue(new WaitCondition.Task(() => _clientState.TerritoryType != _currentDuty.DutyTerritoryId, "Wait(duty end)")); - _taskQueue.Enqueue(new WaitAtEnd.WaitDelay(TimeSpan.FromSeconds(3L))); - } - - public override void Stop(string label) - { - if (_currentDuty != null) - { - _logger.LogInformation("Stopping seasonal duty farming: {Label} (completed {Cycles} cycles)", label, _completedCycles); - _currentDuty = null; - _completedCycles = 0; - _cycleLimit = null; - _taskQueue.Reset(); - } - } - - public override IList GetRemainingTaskNames() - { - ITask task = _taskQueue.CurrentTaskExecutor?.CurrentTask; - if (task != null) - { - string text = task.ToString() ?? "?"; - IList remainingTaskNames = base.GetRemainingTaskNames(); - int num = 1 + remainingTaskNames.Count; - List list = new List(num); - CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int num2 = 0; - span[num2] = text; - num2++; - { - foreach (string item in remainingTaskNames) - { - span[num2] = item; - num2++; - } - return list; - } - } - return base.GetRemainingTaskNames(); - } -} diff --git a/Questionable/Questionable.Controller/SeasonalDutyDefinitionRegistry.cs b/Questionable/Questionable.Controller/SeasonalDutyDefinitionRegistry.cs deleted file mode 100644 index 17259b5..0000000 --- a/Questionable/Questionable.Controller/SeasonalDutyDefinitionRegistry.cs +++ /dev/null @@ -1,148 +0,0 @@ -#define RELEASE -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Text.Json; -using Dalamud.Plugin; -using Microsoft.Extensions.Logging; -using Questionable.Model.Questing; -using Questionable.SeasonalDutyPaths; -using Questionable.Windows.QuestComponents; - -namespace Questionable.Controller; - -internal sealed class SeasonalDutyDefinitionRegistry -{ - private readonly IDalamudPluginInterface _pluginInterface; - - private readonly ILogger _logger; - - private readonly Dictionary _definitions = new Dictionary(); - - public IReadOnlyDictionary Definitions => _definitions; - - public SeasonalDutyDefinitionRegistry(IDalamudPluginInterface pluginInterface, ILogger logger) - { - _pluginInterface = pluginInterface; - _logger = logger; - Reload(); - } - - public void Reload() - { - _definitions.Clear(); - LoadFromAssembly(); - try - { - LoadFromDirectory(new DirectoryInfo(Path.Combine(_pluginInterface.ConfigDirectory.FullName, "SeasonalDutyDefinitions"))); - } - catch (Exception exception) - { - _logger.LogError(exception, "Failed to load seasonal duty definitions from user directory (some may have been successfully loaded)"); - } - RemoveExpiredDefinitions(); - _logger.LogInformation("Loaded {Count} seasonal duty definitions in total", _definitions.Count); - } - - [Conditional("RELEASE")] - private void LoadFromAssembly() - { - _logger.LogInformation("Loading seasonal duty definitions from assembly"); - IReadOnlyDictionary definitions = AssemblySeasonalDutyDefinitionLoader.GetDefinitions(); - _logger.LogInformation("AssemblySeasonalDutyDefinitionLoader returned {Count} definitions", definitions.Count); - foreach (var (key, value) in definitions) - { - _definitions[key] = value; - } - _logger.LogInformation("Loaded {Count} seasonal duty definitions from assembly", _definitions.Count); - } - - [Conditional("DEBUG")] - private void LoadFromProjectDirectory() - { - DirectoryInfo directoryInfo = _pluginInterface.AssemblyLocation.Directory?.Parent?.Parent; - if (directoryInfo == null) - { - return; - } - DirectoryInfo directoryInfo2 = new DirectoryInfo(Path.Combine(directoryInfo.FullName, "SeasonalDutyPaths")); - if (directoryInfo2.Exists) - { - try - { - LoadFromDirectory(directoryInfo2); - } - catch (Exception exception) - { - _definitions.Clear(); - _logger.LogError(exception, "Failed to load seasonal duty definitions from project directory"); - } - } - } - - private void LoadFromDirectory(DirectoryInfo directory) - { - if (!directory.Exists) - { - _logger.LogInformation("Not loading seasonal duty definitions from {DirectoryName} (doesn't exist)", directory); - return; - } - FileInfo[] files = directory.GetFiles("*.json"); - foreach (FileInfo fileInfo in files) - { - try - { - ushort? num = ExtractIdFromName(fileInfo.Name); - if (!num.HasValue) - { - continue; - } - using FileStream utf8Json = new FileStream(fileInfo.FullName, FileMode.Open, FileAccess.Read); - SeasonalDutyDefinition seasonalDutyDefinition = JsonSerializer.Deserialize(utf8Json); - if (seasonalDutyDefinition != null) - { - _definitions[num.Value] = seasonalDutyDefinition; - } - } - catch (Exception exception) - { - _logger.LogError(exception, "Unable to load seasonal duty definition file {FileName}", fileInfo.FullName); - } - } - } - - private void RemoveExpiredDefinitions() - { - foreach (ushort item in (from kvp in _definitions.Where>(delegate(KeyValuePair kvp) - { - DateTime? eventExpiry = kvp.Value.EventExpiry; - if (eventExpiry.HasValue) - { - DateTime valueOrDefault = eventExpiry.GetValueOrDefault(); - return EventInfoComponent.NormalizeExpiry(valueOrDefault) < DateTime.UtcNow; - } - return false; - }) - select kvp.Key).ToList()) - { - _logger.LogInformation("Removing expired seasonal duty definition {Id} '{Name}'", item, _definitions[item].Name); - _definitions.Remove(item); - } - } - - private static ushort? ExtractIdFromName(string fileName) - { - string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(fileName); - if (!fileNameWithoutExtension.Contains('_', StringComparison.Ordinal)) - { - return null; - } - if (ushort.TryParse(fileNameWithoutExtension.Split('_', 2)[0], out var result)) - { - return result; - } - return null; - } -} diff --git a/Questionable/Questionable.Data/ChangelogData.cs b/Questionable/Questionable.Data/ChangelogData.cs index e81f31c..1f2ffb1 100644 --- a/Questionable/Questionable.Data/ChangelogData.cs +++ b/Questionable/Questionable.Data/ChangelogData.cs @@ -11,1012 +11,1347 @@ internal static class ChangelogData static ChangelogData() { - int num = 64; + int num = 62; List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - ref ChangelogEntry reference = ref span[0]; - DateOnly releaseDate = new DateOnly(2026, 3, 24); - int num2 = 1; - List list2 = new List(num2); - CollectionsMarshal.SetCount(list2, num2); - ref ChangeEntry reference2 = ref CollectionsMarshal.AsSpan(list2)[0]; - int num3 = 2; - List list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span2 = CollectionsMarshal.AsSpan(list3); - span2[0] = "Add duty handling to external and qst"; - span2[1] = "Fix duty farming NPC interact getting stuck after zone transition into duty"; + int num2 = 0; + ref ChangelogEntry reference = ref span[num2]; + DateOnly releaseDate = new DateOnly(2026, 3, 1); + int num3 = 1; + List list2 = new List(num3); + CollectionsMarshal.SetCount(list2, num3); + Span span2 = CollectionsMarshal.AsSpan(list2); + int index = 0; + ref ChangeEntry reference2 = ref span2[index]; + int num4 = 1; + List list3 = new List(num4); + CollectionsMarshal.SetCount(list3, num4); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index2 = 0; + span3[index2] = "Quest path fixes"; reference2 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list3); - reference = new ChangelogEntry("7.4.19", releaseDate, list2); - ref ChangelogEntry reference3 = ref span[1]; - DateOnly releaseDate2 = new DateOnly(2026, 3, 24); - num2 = 3; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); - Span span3 = CollectionsMarshal.AsSpan(list4); - ref ChangeEntry reference4 = ref span3[0]; + reference = new ChangelogEntry("7.4.17", releaseDate, list2); + num2++; + ref ChangelogEntry reference3 = ref span[num2]; + DateOnly releaseDate2 = new DateOnly(2026, 3, 1); + index = 1; + List list4 = new List(index); + CollectionsMarshal.SetCount(list4, index); + Span span4 = CollectionsMarshal.AsSpan(list4); + num3 = 0; + ref ChangeEntry reference4 = ref span4[num3]; + index2 = 1; + List list5 = new List(index2); + CollectionsMarshal.SetCount(list5, index2); + Span span5 = CollectionsMarshal.AsSpan(list5); + num4 = 0; + span5[num4] = "Enable TextAdvance, PandorasBox, and Automaton IPC integration during FATE farming"; + reference4 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list5); + reference3 = new ChangelogEntry("7.4.16", releaseDate2, list4); + num2++; + ref ChangelogEntry reference5 = ref span[num2]; + DateOnly releaseDate3 = new DateOnly(2026, 2, 28); num3 = 1; - List list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); - CollectionsMarshal.AsSpan(list5)[0] = "Add seasonal duty farming system (/qst duty)"; - reference4 = new ChangeEntry(EChangeCategory.Added, "New Features", list5); - ref ChangeEntry reference5 = ref span3[1]; - num3 = 1; - List list6 = new List(num3); + List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - CollectionsMarshal.AsSpan(list6)[0] = "Add Hatching-tide 2026 quest"; - reference5 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list6); - ref ChangeEntry reference6 = ref span3[2]; - num3 = 1; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - CollectionsMarshal.AsSpan(list7)[0] = "Quest path fixes"; + Span span6 = CollectionsMarshal.AsSpan(list6); + index = 0; + ref ChangeEntry reference6 = ref span6[index]; + num4 = 2; + List list7 = new List(num4); + CollectionsMarshal.SetCount(list7, num4); + Span span7 = CollectionsMarshal.AsSpan(list7); + index2 = 0; + span7[index2] = "Fix FATE transform interact task never completing after NPC dialogue"; + index2++; + span7[index2] = "Fix FATE farming loop not detecting completion when NPCs persist after FATE ends"; reference6 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list7); - reference3 = new ChangelogEntry("7.4.18", releaseDate2, list4); - ref ChangelogEntry reference7 = ref span[2]; - DateOnly releaseDate3 = new DateOnly(2026, 3, 1); - num2 = 1; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - ref ChangeEntry reference8 = ref CollectionsMarshal.AsSpan(list8)[0]; + reference5 = new ChangelogEntry("7.4.15", releaseDate3, list6); + num2++; + ref ChangelogEntry reference7 = ref span[num2]; + DateOnly releaseDate4 = new DateOnly(2026, 2, 27); + index = 2; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + num3 = 0; + ref ChangeEntry reference8 = ref span8[num3]; + index2 = 2; + List list9 = new List(index2); + CollectionsMarshal.SetCount(list9, index2); + Span span9 = CollectionsMarshal.AsSpan(list9); + num4 = 0; + span9[num4] = "Added prerequisite quest requirement to FATE farming definitions"; + num4++; + span9[num4] = "Show active FATE in main quest UI and disable quest start during FATE farming"; + reference8 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list9); + num3++; + ref ChangeEntry reference9 = ref span8[num3]; + num4 = 1; + List list10 = new List(num4); + CollectionsMarshal.SetCount(list10, num4); + Span span10 = CollectionsMarshal.AsSpan(list10); + index2 = 0; + span10[index2] = "Fixed FATE farming buff expiry and added Curtain Call cleanup on stop"; + reference9 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list10); + reference7 = new ChangelogEntry("7.4.14", releaseDate4, list8); + num2++; + ref ChangelogEntry reference10 = ref span[num2]; + DateOnly releaseDate5 = new DateOnly(2026, 2, 27); num3 = 1; - List list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); - CollectionsMarshal.AsSpan(list9)[0] = "Quest path fixes"; - reference8 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list9); - reference7 = new ChangelogEntry("7.4.17", releaseDate3, list8); - ref ChangelogEntry reference9 = ref span[3]; - DateOnly releaseDate4 = new DateOnly(2026, 3, 1); - num2 = 1; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); - ref ChangeEntry reference10 = ref CollectionsMarshal.AsSpan(list10)[0]; - num3 = 1; - List list11 = new List(num3); + List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - CollectionsMarshal.AsSpan(list11)[0] = "Enable TextAdvance, PandorasBox, and Automaton IPC integration during FATE farming"; - reference10 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list11); - reference9 = new ChangelogEntry("7.4.16", releaseDate4, list10); - ref ChangelogEntry reference11 = ref span[4]; - DateOnly releaseDate5 = new DateOnly(2026, 2, 28); - num2 = 1; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); - ref ChangeEntry reference12 = ref CollectionsMarshal.AsSpan(list12)[0]; - num3 = 2; - List list13 = new List(num3); - CollectionsMarshal.SetCount(list13, num3); - Span span4 = CollectionsMarshal.AsSpan(list13); - span4[0] = "Fix FATE transform interact task never completing after NPC dialogue"; - span4[1] = "Fix FATE farming loop not detecting completion when NPCs persist after FATE ends"; - reference12 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list13); - reference11 = new ChangelogEntry("7.4.15", releaseDate5, list12); - ref ChangelogEntry reference13 = ref span[5]; - DateOnly releaseDate6 = new DateOnly(2026, 2, 27); - num2 = 2; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); - Span span5 = CollectionsMarshal.AsSpan(list14); - ref ChangeEntry reference14 = ref span5[0]; - num3 = 2; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span6 = CollectionsMarshal.AsSpan(list15); - span6[0] = "Added prerequisite quest requirement to FATE farming definitions"; - span6[1] = "Show active FATE in main quest UI and disable quest start during FATE farming"; - reference14 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list15); - ref ChangeEntry reference15 = ref span5[1]; - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - CollectionsMarshal.AsSpan(list16)[0] = "Fixed FATE farming buff expiry and added Curtain Call cleanup on stop"; + Span span11 = CollectionsMarshal.AsSpan(list11); + index = 0; + ref ChangeEntry reference11 = ref span11[index]; + index2 = 1; + List list12 = new List(index2); + CollectionsMarshal.SetCount(list12, index2); + Span span12 = CollectionsMarshal.AsSpan(list12); + num4 = 0; + span12[num4] = "Fixed an issue where FATE actions were not performed during the Little Ladies Day (2026) FATE event"; + reference11 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list12); + reference10 = new ChangelogEntry("7.4.13", releaseDate5, list11); + num2++; + ref ChangelogEntry reference12 = ref span[num2]; + DateOnly releaseDate6 = new DateOnly(2026, 2, 26); + index = 3; + List list13 = new List(index); + CollectionsMarshal.SetCount(list13, index); + Span span13 = CollectionsMarshal.AsSpan(list13); + num3 = 0; + ref ChangeEntry reference13 = ref span13[num3]; + num4 = 3; + List list14 = new List(num4); + CollectionsMarshal.SetCount(list14, num4); + Span span14 = CollectionsMarshal.AsSpan(list14); + index2 = 0; + span14[index2] = "Add Saved Presets tab to quest priority window"; + index2++; + span14[index2] = "Add passive FATE handling and per npc ability handling"; + index2++; + span14[index2] = "Add FATE farming support"; + reference13 = new ChangeEntry(EChangeCategory.Added, "New Features", list14); + num3++; + ref ChangeEntry reference14 = ref span13[num3]; + index2 = 1; + List list15 = new List(index2); + CollectionsMarshal.SetCount(list15, index2); + Span span15 = CollectionsMarshal.AsSpan(list15); + num4 = 0; + span15[num4] = "Add Little Ladies' Day 2026 quests"; + reference14 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list15); + num3++; + ref ChangeEntry reference15 = ref span13[num3]; + num4 = 1; + List list16 = new List(num4); + CollectionsMarshal.SetCount(list16, num4); + Span span16 = CollectionsMarshal.AsSpan(list16); + index2 = 0; + span16[index2] = "Quest path fixes"; reference15 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list16); - reference13 = new ChangelogEntry("7.4.14", releaseDate6, list14); - ref ChangelogEntry reference16 = ref span[6]; - DateOnly releaseDate7 = new DateOnly(2026, 2, 27); - num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - ref ChangeEntry reference17 = ref CollectionsMarshal.AsSpan(list17)[0]; - num3 = 1; - List list18 = new List(num3); - CollectionsMarshal.SetCount(list18, num3); - CollectionsMarshal.AsSpan(list18)[0] = "Fixed an issue where FATE actions were not performed during the Little Ladies Day (2026) FATE event"; - reference17 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list18); - reference16 = new ChangelogEntry("7.4.13", releaseDate7, list17); - ref ChangelogEntry reference18 = ref span[7]; - DateOnly releaseDate8 = new DateOnly(2026, 2, 26); - num2 = 3; - List list19 = new List(num2); - CollectionsMarshal.SetCount(list19, num2); - Span span7 = CollectionsMarshal.AsSpan(list19); - ref ChangeEntry reference19 = ref span7[0]; + reference12 = new ChangelogEntry("7.4.12", releaseDate6, list13); + num2++; + ref ChangelogEntry reference16 = ref span[num2]; + DateOnly releaseDate7 = new DateOnly(2026, 2, 2); + num3 = 2; + List list17 = new List(num3); + CollectionsMarshal.SetCount(list17, num3); + Span span17 = CollectionsMarshal.AsSpan(list17); + index = 0; + ref ChangeEntry reference17 = ref span17[index]; + index2 = 1; + List list18 = new List(index2); + CollectionsMarshal.SetCount(list18, index2); + Span span18 = CollectionsMarshal.AsSpan(list18); + num4 = 0; + span18[num4] = "Add Valentione's Day 2026 quest (The Icing on the Cake)"; + reference17 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list18); + index++; + ref ChangeEntry reference18 = ref span17[index]; + num4 = 2; + List list19 = new List(num4); + CollectionsMarshal.SetCount(list19, num4); + Span span19 = CollectionsMarshal.AsSpan(list19); + index2 = 0; + span19[index2] = "Updated Duty journal to include missing duty types"; + index2++; + span19[index2] = "Added various missing sequences to quests"; + reference18 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list19); + reference16 = new ChangelogEntry("7.4.11", releaseDate7, list17); + num2++; + ref ChangelogEntry reference19 = ref span[num2]; + DateOnly releaseDate8 = new DateOnly(2026, 1, 18); + index = 2; + List list20 = new List(index); + CollectionsMarshal.SetCount(list20, index); + Span span20 = CollectionsMarshal.AsSpan(list20); + num3 = 0; + ref ChangeEntry reference20 = ref span20[num3]; + index2 = 5; + List list21 = new List(index2); + CollectionsMarshal.SetCount(list21, index2); + Span span21 = CollectionsMarshal.AsSpan(list21); + num4 = 0; + span21[num4] = "Added quest blacklisting"; + num4++; + span21[num4] = "Added MSQ Priority config"; + num4++; + span21[num4] = "Added Quest priority persistence config"; + num4++; + span21[num4] = "Added Duties tab to Journal"; + num4++; + span21[num4] = "Added GC shop handling and chocobo naming for chocobo quests"; + reference20 = new ChangeEntry(EChangeCategory.Added, "Major Features", list21); + num3++; + ref ChangeEntry reference21 = ref span20[num3]; + num4 = 5; + List list22 = new List(num4); + CollectionsMarshal.SetCount(list22, num4); + Span span22 = CollectionsMarshal.AsSpan(list22); + index2 = 0; + span22[index2] = "Removed PandorasBox dependency and added QTE handling"; + index2++; + span22[index2] = "Removed CBT dependency and added Snipe handling"; + index2++; + span22[index2] = "Added drag reordering to Stop condition quests"; + index2++; + span22[index2] = "Ignore item level requirements if using Unsync config"; + index2++; + span22[index2] = "Setting a Stop quest to Off no longer removes it from the list"; + reference21 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list22); + reference19 = new ChangelogEntry("7.4.10", releaseDate8, list20); + num2++; + ref ChangelogEntry reference22 = ref span[num2]; + DateOnly releaseDate9 = new DateOnly(2025, 12, 31); num3 = 3; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span8 = CollectionsMarshal.AsSpan(list20); - span8[0] = "Add Saved Presets tab to quest priority window"; - span8[1] = "Add passive FATE handling and per npc ability handling"; - span8[2] = "Add FATE farming support"; - reference19 = new ChangeEntry(EChangeCategory.Added, "New Features", list20); - ref ChangeEntry reference20 = ref span7[1]; - num3 = 1; - List list21 = new List(num3); - CollectionsMarshal.SetCount(list21, num3); - CollectionsMarshal.AsSpan(list21)[0] = "Add Little Ladies' Day 2026 quests"; - reference20 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list21); - ref ChangeEntry reference21 = ref span7[2]; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - CollectionsMarshal.AsSpan(list22)[0] = "Quest path fixes"; - reference21 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list22); - reference18 = new ChangelogEntry("7.4.12", releaseDate8, list19); - ref ChangelogEntry reference22 = ref span[8]; - DateOnly releaseDate9 = new DateOnly(2026, 2, 2); - num2 = 2; - List list23 = new List(num2); - CollectionsMarshal.SetCount(list23, num2); - Span span9 = CollectionsMarshal.AsSpan(list23); - ref ChangeEntry reference23 = ref span9[0]; - num3 = 1; - List list24 = new List(num3); - CollectionsMarshal.SetCount(list24, num3); - CollectionsMarshal.AsSpan(list24)[0] = "Add Valentione's Day 2026 quest (The Icing on the Cake)"; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + Span span23 = CollectionsMarshal.AsSpan(list23); + index = 0; + ref ChangeEntry reference23 = ref span23[index]; + index2 = 1; + List list24 = new List(index2); + CollectionsMarshal.SetCount(list24, index2); + Span span24 = CollectionsMarshal.AsSpan(list24); + num4 = 0; + span24[num4] = "Add Heavensturn (2026) quests"; reference23 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list24); - ref ChangeEntry reference24 = ref span9[1]; - num3 = 2; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - Span span10 = CollectionsMarshal.AsSpan(list25); - span10[0] = "Updated Duty journal to include missing duty types"; - span10[1] = "Added various missing sequences to quests"; + index++; + ref ChangeEntry reference24 = ref span23[index]; + num4 = 1; + List list25 = new List(num4); + CollectionsMarshal.SetCount(list25, num4); + Span span25 = CollectionsMarshal.AsSpan(list25); + index2 = 0; + span25[index2] = "Added missing quest sequences"; reference24 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list25); - reference22 = new ChangelogEntry("7.4.11", releaseDate9, list23); - ref ChangelogEntry reference25 = ref span[9]; - DateOnly releaseDate10 = new DateOnly(2026, 1, 18); - num2 = 2; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); - Span span11 = CollectionsMarshal.AsSpan(list26); - ref ChangeEntry reference26 = ref span11[0]; - num3 = 5; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - Span span12 = CollectionsMarshal.AsSpan(list27); - span12[0] = "Added quest blacklisting"; - span12[1] = "Added MSQ Priority config"; - span12[2] = "Added Quest priority persistence config"; - span12[3] = "Added Duties tab to Journal"; - span12[4] = "Added GC shop handling and chocobo naming for chocobo quests"; - reference26 = new ChangeEntry(EChangeCategory.Added, "Major Features", list27); - ref ChangeEntry reference27 = ref span11[1]; - num3 = 5; - List list28 = new List(num3); - CollectionsMarshal.SetCount(list28, num3); - Span span13 = CollectionsMarshal.AsSpan(list28); - span13[0] = "Removed PandorasBox dependency and added QTE handling"; - span13[1] = "Removed CBT dependency and added Snipe handling"; - span13[2] = "Added drag reordering to Stop condition quests"; - span13[3] = "Ignore item level requirements if using Unsync config"; - span13[4] = "Setting a Stop quest to Off no longer removes it from the list"; - reference27 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list28); - reference25 = new ChangelogEntry("7.4.10", releaseDate10, list26); - ref ChangelogEntry reference28 = ref span[10]; - DateOnly releaseDate11 = new DateOnly(2025, 12, 31); - num2 = 3; - List list29 = new List(num2); - CollectionsMarshal.SetCount(list29, num2); - Span span14 = CollectionsMarshal.AsSpan(list29); - ref ChangeEntry reference29 = ref span14[0]; - num3 = 1; - List list30 = new List(num3); - CollectionsMarshal.SetCount(list30, num3); - CollectionsMarshal.AsSpan(list30)[0] = "Add Heavensturn (2026) quests"; - reference29 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list30); - ref ChangeEntry reference30 = ref span14[1]; - num3 = 1; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - CollectionsMarshal.AsSpan(list31)[0] = "Added missing quest sequences"; + index++; + ref ChangeEntry reference25 = ref span23[index]; + index2 = 1; + List list26 = new List(index2); + CollectionsMarshal.SetCount(list26, index2); + Span span26 = CollectionsMarshal.AsSpan(list26); + num4 = 0; + span26[num4] = "Fixed leveling mode not restarting properly"; + reference25 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list26); + reference22 = new ChangelogEntry("7.4.9", releaseDate9, list23); + num2++; + ref ChangelogEntry reference26 = ref span[num2]; + DateOnly releaseDate10 = new DateOnly(2025, 12, 29); + index = 1; + List list27 = new List(index); + CollectionsMarshal.SetCount(list27, index); + Span span27 = CollectionsMarshal.AsSpan(list27); + num3 = 0; + ref ChangeEntry reference27 = ref span27[num3]; + num4 = 2; + List list28 = new List(num4); + CollectionsMarshal.SetCount(list28, num4); + Span span28 = CollectionsMarshal.AsSpan(list28); + index2 = 0; + span28[index2] = "Fixed infinite teleport loop when multiple quests compete for priority"; + index2++; + span28[index2] = "Fixed leveling mode enabling for quest duties"; + reference27 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list28); + reference26 = new ChangelogEntry("7.4.8", releaseDate10, list27); + num2++; + ref ChangelogEntry reference28 = ref span[num2]; + DateOnly releaseDate11 = new DateOnly(2025, 12, 28); + num3 = 4; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + Span span29 = CollectionsMarshal.AsSpan(list29); + index = 0; + ref ChangeEntry reference29 = ref span29[index]; + index2 = 1; + List list30 = new List(index2); + CollectionsMarshal.SetCount(list30, index2); + Span span30 = CollectionsMarshal.AsSpan(list30); + num4 = 0; + span30[num4] = "Added leveling mode when underleveled for MSQ"; + reference29 = new ChangeEntry(EChangeCategory.Added, "Major Features", list30); + index++; + ref ChangeEntry reference30 = ref span29[index]; + num4 = 3; + List list31 = new List(num4); + CollectionsMarshal.SetCount(list31, num4); + Span span31 = CollectionsMarshal.AsSpan(list31); + index2 = 0; + span31[index2] = "Added missing dungeons to Duties"; + index2++; + span31[index2] = "Added Normal Raids and Alliance Raids to duties tab"; + index2++; + span31[index2] = "Added Pause/Stop modes to stop conditions"; reference30 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list31); - ref ChangeEntry reference31 = ref span14[2]; + index++; + ref ChangeEntry reference31 = ref span29[index]; + index2 = 1; + List list32 = new List(index2); + CollectionsMarshal.SetCount(list32, index2); + Span span32 = CollectionsMarshal.AsSpan(list32); + num4 = 0; + span32[num4] = "Added leveling mode IPC: IsLevelingModeEnabled, SetLevelingModeEnabled, GetMsqLevelLockInfo, StartLevelingMode, StopLevelingMode"; + reference31 = new ChangeEntry(EChangeCategory.Added, "IPC Changes", list32); + index++; + ref ChangeEntry reference32 = ref span29[index]; + num4 = 1; + List list33 = new List(num4); + CollectionsMarshal.SetCount(list33, num4); + Span span33 = CollectionsMarshal.AsSpan(list33); + index2 = 0; + span33[index2] = "Fixed UI appearing in duties when debuff or interrupts occur"; + reference32 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list33); + reference28 = new ChangelogEntry("7.4.7", releaseDate11, list29); + num2++; + ref ChangelogEntry reference33 = ref span[num2]; + DateOnly releaseDate12 = new DateOnly(2025, 12, 23); + index = 2; + List list34 = new List(index); + CollectionsMarshal.SetCount(list34, index); + Span span34 = CollectionsMarshal.AsSpan(list34); + num3 = 0; + ref ChangeEntry reference34 = ref span34[num3]; + index2 = 1; + List list35 = new List(index2); + CollectionsMarshal.SetCount(list35, index2); + Span span35 = CollectionsMarshal.AsSpan(list35); + num4 = 0; + span35[num4] = "Added Cinema Mode to not skip cutscenes"; + reference34 = new ChangeEntry(EChangeCategory.Added, "Major Features", list35); + num3++; + ref ChangeEntry reference35 = ref span34[num3]; + num4 = 2; + List list36 = new List(num4); + CollectionsMarshal.SetCount(list36, num4); + Span span36 = CollectionsMarshal.AsSpan(list36); + index2 = 0; + span36[index2] = "Added handling for Unsync (Party) to Party Watchdog and configuration to disable if in party"; + index2++; + span36[index2] = "Stop conditions now act as a true stop"; + reference35 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list36); + reference33 = new ChangelogEntry("7.4.6", releaseDate12, list34); + num2++; + ref ChangelogEntry reference36 = ref span[num2]; + DateOnly releaseDate13 = new DateOnly(2025, 12, 22); num3 = 1; - List list32 = new List(num3); - CollectionsMarshal.SetCount(list32, num3); - CollectionsMarshal.AsSpan(list32)[0] = "Fixed leveling mode not restarting properly"; - reference31 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list32); - reference28 = new ChangelogEntry("7.4.9", releaseDate11, list29); - ref ChangelogEntry reference32 = ref span[11]; - DateOnly releaseDate12 = new DateOnly(2025, 12, 29); - num2 = 1; - List list33 = new List(num2); - CollectionsMarshal.SetCount(list33, num2); - ref ChangeEntry reference33 = ref CollectionsMarshal.AsSpan(list33)[0]; - num3 = 2; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span15 = CollectionsMarshal.AsSpan(list34); - span15[0] = "Fixed infinite teleport loop when multiple quests compete for priority"; - span15[1] = "Fixed leveling mode enabling for quest duties"; - reference33 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list34); - reference32 = new ChangelogEntry("7.4.8", releaseDate12, list33); - ref ChangelogEntry reference34 = ref span[12]; - DateOnly releaseDate13 = new DateOnly(2025, 12, 28); - num2 = 4; - List list35 = new List(num2); - CollectionsMarshal.SetCount(list35, num2); - Span span16 = CollectionsMarshal.AsSpan(list35); - ref ChangeEntry reference35 = ref span16[0]; - num3 = 1; - List list36 = new List(num3); - CollectionsMarshal.SetCount(list36, num3); - CollectionsMarshal.AsSpan(list36)[0] = "Added leveling mode when underleveled for MSQ"; - reference35 = new ChangeEntry(EChangeCategory.Added, "Major Features", list36); - ref ChangeEntry reference36 = ref span16[1]; - num3 = 3; - List list37 = new List(num3); + List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span17 = CollectionsMarshal.AsSpan(list37); - span17[0] = "Added missing dungeons to Duties"; - span17[1] = "Added Normal Raids and Alliance Raids to duties tab"; - span17[2] = "Added Pause/Stop modes to stop conditions"; - reference36 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list37); - ref ChangeEntry reference37 = ref span16[2]; + Span span37 = CollectionsMarshal.AsSpan(list37); + index = 0; + ref ChangeEntry reference37 = ref span37[index]; + index2 = 2; + List list38 = new List(index2); + CollectionsMarshal.SetCount(list38, index2); + Span span38 = CollectionsMarshal.AsSpan(list38); + num4 = 0; + span38[num4] = "Dive adjustments"; + num4++; + span38[num4] = "Logging message adjustments"; + reference37 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list38); + reference36 = new ChangelogEntry("7.4.5", releaseDate13, list37); + num2++; + ref ChangelogEntry reference38 = ref span[num2]; + DateOnly releaseDate14 = new DateOnly(2025, 12, 21); + index = 2; + List list39 = new List(index); + CollectionsMarshal.SetCount(list39, index); + Span span39 = CollectionsMarshal.AsSpan(list39); + num3 = 0; + ref ChangeEntry reference39 = ref span39[num3]; + num4 = 1; + List list40 = new List(num4); + CollectionsMarshal.SetCount(list40, num4); + Span span40 = CollectionsMarshal.AsSpan(list40); + index2 = 0; + span40[index2] = "Changelog only shows once per update now"; + reference39 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list40); + num3++; + ref ChangeEntry reference40 = ref span39[num3]; + index2 = 1; + List list41 = new List(index2); + CollectionsMarshal.SetCount(list41, index2); + Span span41 = CollectionsMarshal.AsSpan(list41); + num4 = 0; + span41[num4] = "Fixed gathering paths loading"; + reference40 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list41); + reference38 = new ChangelogEntry("7.4.4", releaseDate14, list39); + num2++; + ref ChangelogEntry reference41 = ref span[num2]; + DateOnly releaseDate15 = new DateOnly(2025, 12, 21); num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - CollectionsMarshal.AsSpan(list38)[0] = "Added leveling mode IPC: IsLevelingModeEnabled, SetLevelingModeEnabled, GetMsqLevelLockInfo, StartLevelingMode, StopLevelingMode"; - reference37 = new ChangeEntry(EChangeCategory.Added, "IPC Changes", list38); - ref ChangeEntry reference38 = ref span16[3]; - num3 = 1; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - CollectionsMarshal.AsSpan(list39)[0] = "Fixed UI appearing in duties when debuff or interrupts occur"; - reference38 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list39); - reference34 = new ChangelogEntry("7.4.7", releaseDate13, list35); - ref ChangelogEntry reference39 = ref span[13]; - DateOnly releaseDate14 = new DateOnly(2025, 12, 23); - num2 = 2; - List list40 = new List(num2); - CollectionsMarshal.SetCount(list40, num2); - Span span18 = CollectionsMarshal.AsSpan(list40); - ref ChangeEntry reference40 = ref span18[0]; - num3 = 1; - List list41 = new List(num3); - CollectionsMarshal.SetCount(list41, num3); - CollectionsMarshal.AsSpan(list41)[0] = "Added Cinema Mode to not skip cutscenes"; - reference40 = new ChangeEntry(EChangeCategory.Added, "Major Features", list41); - ref ChangeEntry reference41 = ref span18[1]; - num3 = 2; - List list42 = new List(num3); + List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span19 = CollectionsMarshal.AsSpan(list42); - span19[0] = "Added handling for Unsync (Party) to Party Watchdog and configuration to disable if in party"; - span19[1] = "Stop conditions now act as a true stop"; - reference41 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list42); - reference39 = new ChangelogEntry("7.4.6", releaseDate14, list40); - ref ChangelogEntry reference42 = ref span[14]; - DateOnly releaseDate15 = new DateOnly(2025, 12, 22); - num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - ref ChangeEntry reference43 = ref CollectionsMarshal.AsSpan(list43)[0]; - num3 = 2; - List list44 = new List(num3); - CollectionsMarshal.SetCount(list44, num3); - Span span20 = CollectionsMarshal.AsSpan(list44); - span20[0] = "Dive adjustments"; - span20[1] = "Logging message adjustments"; - reference43 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list44); - reference42 = new ChangelogEntry("7.4.5", releaseDate15, list43); - ref ChangelogEntry reference44 = ref span[15]; - DateOnly releaseDate16 = new DateOnly(2025, 12, 21); - num2 = 2; - List list45 = new List(num2); - CollectionsMarshal.SetCount(list45, num2); - Span span21 = CollectionsMarshal.AsSpan(list45); - ref ChangeEntry reference45 = ref span21[0]; + Span span42 = CollectionsMarshal.AsSpan(list42); + index = 0; + ref ChangeEntry reference42 = ref span42[index]; + num4 = 1; + List list43 = new List(num4); + CollectionsMarshal.SetCount(list43, num4); + Span span43 = CollectionsMarshal.AsSpan(list43); + index2 = 0; + span43[index2] = "Fixed changelog version checks"; + reference42 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list43); + reference41 = new ChangelogEntry("7.4.3", releaseDate15, list42); + num2++; + ref ChangelogEntry reference43 = ref span[num2]; + DateOnly releaseDate16 = new DateOnly(2025, 12, 20); + index = 2; + List list44 = new List(index); + CollectionsMarshal.SetCount(list44, index); + Span span44 = CollectionsMarshal.AsSpan(list44); + num3 = 0; + ref ChangeEntry reference44 = ref span44[num3]; + index2 = 1; + List list45 = new List(index2); + CollectionsMarshal.SetCount(list45, index2); + Span span45 = CollectionsMarshal.AsSpan(list45); + num4 = 0; + span45[num4] = "Add 7.4 Starlight Celebration (2025) quest"; + reference44 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list45); + num3++; + ref ChangeEntry reference45 = ref span44[num3]; + num4 = 1; + List list46 = new List(num4); + CollectionsMarshal.SetCount(list46, num4); + Span span46 = CollectionsMarshal.AsSpan(list46); + index2 = 0; + span46[index2] = "Fixed 7.4 MSQ"; + reference45 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list46); + reference43 = new ChangelogEntry("7.4.2", releaseDate16, list44); + num2++; + ref ChangelogEntry reference46 = ref span[num2]; + DateOnly releaseDate17 = new DateOnly(2025, 12, 19); num3 = 1; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - CollectionsMarshal.AsSpan(list46)[0] = "Changelog only shows once per update now"; - reference45 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list46); - ref ChangeEntry reference46 = ref span21[1]; - num3 = 1; - List list47 = new List(num3); + List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - CollectionsMarshal.AsSpan(list47)[0] = "Fixed gathering paths loading"; - reference46 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list47); - reference44 = new ChangelogEntry("7.4.4", releaseDate16, list45); - ref ChangelogEntry reference47 = ref span[16]; - DateOnly releaseDate17 = new DateOnly(2025, 12, 21); - num2 = 1; - List list48 = new List(num2); - CollectionsMarshal.SetCount(list48, num2); - ref ChangeEntry reference48 = ref CollectionsMarshal.AsSpan(list48)[0]; - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - CollectionsMarshal.AsSpan(list49)[0] = "Fixed changelog version checks"; - reference48 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list49); - reference47 = new ChangelogEntry("7.4.3", releaseDate17, list48); - ref ChangelogEntry reference49 = ref span[17]; - DateOnly releaseDate18 = new DateOnly(2025, 12, 20); - num2 = 2; - List list50 = new List(num2); - CollectionsMarshal.SetCount(list50, num2); - Span span22 = CollectionsMarshal.AsSpan(list50); - ref ChangeEntry reference50 = ref span22[0]; - num3 = 1; - List list51 = new List(num3); - CollectionsMarshal.SetCount(list51, num3); - CollectionsMarshal.AsSpan(list51)[0] = "Add 7.4 Starlight Celebration (2025) quest"; - reference50 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list51); - ref ChangeEntry reference51 = ref span22[1]; - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - CollectionsMarshal.AsSpan(list52)[0] = "Fixed 7.4 MSQ"; + Span span47 = CollectionsMarshal.AsSpan(list47); + index = 0; + ref ChangeEntry reference47 = ref span47[index]; + index2 = 2; + List list48 = new List(index2); + CollectionsMarshal.SetCount(list48, index2); + Span span48 = CollectionsMarshal.AsSpan(list48); + num4 = 0; + span48[num4] = "Add 7.4 MSQ"; + num4++; + span48[num4] = "Add 7.4 Arcadion Raid quests"; + reference47 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list48); + reference46 = new ChangelogEntry("7.4.1", releaseDate17, list47); + num2++; + ref ChangelogEntry reference48 = ref span[num2]; + DateOnly releaseDate18 = new DateOnly(2025, 12, 17); + index = 1; + List list49 = new List(index); + CollectionsMarshal.SetCount(list49, index); + Span span49 = CollectionsMarshal.AsSpan(list49); + num3 = 0; + span49[num3] = new ChangeEntry(EChangeCategory.Changed, "Api 14 update"); + reference48 = new ChangelogEntry("7.4.0", releaseDate18, list49); + num2++; + ref ChangelogEntry reference49 = ref span[num2]; + DateOnly releaseDate19 = new DateOnly(2025, 12, 6); + num3 = 2; + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + Span span50 = CollectionsMarshal.AsSpan(list50); + index = 0; + ref ChangeEntry reference50 = ref span50[index]; + num4 = 4; + List list51 = new List(num4); + CollectionsMarshal.SetCount(list51, num4); + Span span51 = CollectionsMarshal.AsSpan(list51); + index2 = 0; + span51[index2] = "Added reloading and rebuilding to movement system"; + index2++; + span51[index2] = "Improved interrupts and refresh states to allow continuation of questing"; + index2++; + span51[index2] = "Added player input detection to stop automation when manually moving character"; + index2++; + span51[index2] = "Added various missing quest sequences"; + reference50 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list51); + index++; + ref ChangeEntry reference51 = ref span50[index]; + index2 = 1; + List list52 = new List(index2); + CollectionsMarshal.SetCount(list52, index2); + Span span52 = CollectionsMarshal.AsSpan(list52); + num4 = 0; + span52[num4] = "Fixed reset task state to prevent stuck interactions after interruption"; reference51 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list52); - reference49 = new ChangelogEntry("7.4.2", releaseDate18, list50); - ref ChangelogEntry reference52 = ref span[18]; - DateOnly releaseDate19 = new DateOnly(2025, 12, 19); - num2 = 1; - List list53 = new List(num2); - CollectionsMarshal.SetCount(list53, num2); - ref ChangeEntry reference53 = ref CollectionsMarshal.AsSpan(list53)[0]; + reference49 = new ChangelogEntry("7.38.9", releaseDate19, list50); + num2++; + ref ChangelogEntry reference52 = ref span[num2]; + DateOnly releaseDate20 = new DateOnly(2025, 11, 29); + index = 2; + List list53 = new List(index); + CollectionsMarshal.SetCount(list53, index); + Span span53 = CollectionsMarshal.AsSpan(list53); + num3 = 0; + ref ChangeEntry reference53 = ref span53[num3]; + num4 = 3; + List list54 = new List(num4); + CollectionsMarshal.SetCount(list54, num4); + Span span54 = CollectionsMarshal.AsSpan(list54); + index2 = 0; + span54[index2] = "Movement update with automatic retrying if character can't reach target position"; + index2++; + span54[index2] = "Added Hunt mob data"; + index2++; + span54[index2] = "Refactored commands"; + reference53 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list54); + num3++; + ref ChangeEntry reference54 = ref span53[num3]; + index2 = 3; + List list55 = new List(index2); + CollectionsMarshal.SetCount(list55, index2); + Span span55 = CollectionsMarshal.AsSpan(list55); + num4 = 0; + span55[num4] = "Fixed quest (Way of the Archer)"; + num4++; + span55[num4] = "Fixed quest (Spirithold Broken)"; + num4++; + span55[num4] = "Fixed quest (It's Probably Not Pirates)"; + reference54 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list55); + reference52 = new ChangelogEntry("7.38.8", releaseDate20, list53); + num2++; + ref ChangelogEntry reference55 = ref span[num2]; + DateOnly releaseDate21 = new DateOnly(2025, 11, 25); num3 = 2; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span23 = CollectionsMarshal.AsSpan(list54); - span23[0] = "Add 7.4 MSQ"; - span23[1] = "Add 7.4 Arcadion Raid quests"; - reference53 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list54); - reference52 = new ChangelogEntry("7.4.1", releaseDate19, list53); - ref ChangelogEntry reference54 = ref span[19]; - DateOnly releaseDate20 = new DateOnly(2025, 12, 17); - num2 = 1; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - CollectionsMarshal.AsSpan(list55)[0] = new ChangeEntry(EChangeCategory.Changed, "Api 14 update"); - reference54 = new ChangelogEntry("7.4.0", releaseDate20, list55); - ref ChangelogEntry reference55 = ref span[20]; - DateOnly releaseDate21 = new DateOnly(2025, 12, 6); - num2 = 2; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span24 = CollectionsMarshal.AsSpan(list56); - ref ChangeEntry reference56 = ref span24[0]; - num3 = 4; - List list57 = new List(num3); - CollectionsMarshal.SetCount(list57, num3); - Span span25 = CollectionsMarshal.AsSpan(list57); - span25[0] = "Added reloading and rebuilding to movement system"; - span25[1] = "Improved interrupts and refresh states to allow continuation of questing"; - span25[2] = "Added player input detection to stop automation when manually moving character"; - span25[3] = "Added various missing quest sequences"; - reference56 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list57); - ref ChangeEntry reference57 = ref span24[1]; - num3 = 1; - List list58 = new List(num3); - CollectionsMarshal.SetCount(list58, num3); - CollectionsMarshal.AsSpan(list58)[0] = "Fixed reset task state to prevent stuck interactions after interruption"; - reference57 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list58); - reference55 = new ChangelogEntry("7.38.9", releaseDate21, list56); - ref ChangelogEntry reference58 = ref span[21]; - DateOnly releaseDate22 = new DateOnly(2025, 11, 29); - num2 = 2; - List list59 = new List(num2); - CollectionsMarshal.SetCount(list59, num2); - Span span26 = CollectionsMarshal.AsSpan(list59); - ref ChangeEntry reference59 = ref span26[0]; - num3 = 3; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span27 = CollectionsMarshal.AsSpan(list60); - span27[0] = "Movement update with automatic retrying if character can't reach target position"; - span27[1] = "Added Hunt mob data"; - span27[2] = "Refactored commands"; + List list56 = new List(num3); + CollectionsMarshal.SetCount(list56, num3); + Span span56 = CollectionsMarshal.AsSpan(list56); + index = 0; + ref ChangeEntry reference56 = ref span56[index]; + num4 = 2; + List list57 = new List(num4); + CollectionsMarshal.SetCount(list57, num4); + Span span57 = CollectionsMarshal.AsSpan(list57); + index2 = 0; + span57[index2] = "Added individual sequence stop condition for each quest"; + index2++; + span57[index2] = "Added Trials to Duties tab in config"; + reference56 = new ChangeEntry(EChangeCategory.Added, "Major features", list57); + index++; + ref ChangeEntry reference57 = ref span56[index]; + index2 = 1; + List list58 = new List(index2); + CollectionsMarshal.SetCount(list58, index2); + Span span58 = CollectionsMarshal.AsSpan(list58); + num4 = 0; + span58[num4] = "Added IPC for stop conditions: GetQuestSequenceStopCondition, SetQuestSequenceStopCondition, RemoveQuestSequenceStopCondition, GetAllQuestSequenceStopConditions"; + reference57 = new ChangeEntry(EChangeCategory.Added, "IPC changes", list58); + reference55 = new ChangelogEntry("7.38.7", releaseDate21, list56); + num2++; + ref ChangelogEntry reference58 = ref span[num2]; + DateOnly releaseDate22 = new DateOnly(2025, 11, 25); + index = 3; + List list59 = new List(index); + CollectionsMarshal.SetCount(list59, index); + Span span59 = CollectionsMarshal.AsSpan(list59); + num3 = 0; + ref ChangeEntry reference59 = ref span59[num3]; + num4 = 2; + List list60 = new List(num4); + CollectionsMarshal.SetCount(list60, num4); + Span span60 = CollectionsMarshal.AsSpan(list60); + index2 = 0; + span60[index2] = "Updated Allied Society journal text"; + index2++; + span60[index2] = "Improved Allied Society rank handling"; reference59 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list60); - ref ChangeEntry reference60 = ref span26[1]; - num3 = 3; - List list61 = new List(num3); - CollectionsMarshal.SetCount(list61, num3); - Span span28 = CollectionsMarshal.AsSpan(list61); - span28[0] = "Fixed quest (Way of the Archer)"; - span28[1] = "Fixed quest (Spirithold Broken)"; - span28[2] = "Fixed quest (It's Probably Not Pirates)"; - reference60 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list61); - reference58 = new ChangelogEntry("7.38.8", releaseDate22, list59); - ref ChangelogEntry reference61 = ref span[22]; - DateOnly releaseDate23 = new DateOnly(2025, 11, 25); - num2 = 2; - List list62 = new List(num2); - CollectionsMarshal.SetCount(list62, num2); - Span span29 = CollectionsMarshal.AsSpan(list62); - ref ChangeEntry reference62 = ref span29[0]; + num3++; + ref ChangeEntry reference60 = ref span59[num3]; + index2 = 1; + List list61 = new List(index2); + CollectionsMarshal.SetCount(list61, index2); + Span span61 = CollectionsMarshal.AsSpan(list61); + num4 = 0; + span61[num4] = "Added IPC for Allied Society: AddAlliedSocietyOptimalQuests, GetAlliedSocietyOptimalQuests"; + reference60 = new ChangeEntry(EChangeCategory.Added, "IPC changes", list61); + num3++; + ref ChangeEntry reference61 = ref span59[num3]; + num4 = 1; + List list62 = new List(num4); + CollectionsMarshal.SetCount(list62, num4); + Span span62 = CollectionsMarshal.AsSpan(list62); + index2 = 0; + span62[index2] = "Fixed quest (We Come in Peace)"; + reference61 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list62); + reference58 = new ChangelogEntry("7.38.6", releaseDate22, list59); + num2++; + ref ChangelogEntry reference62 = ref span[num2]; + DateOnly releaseDate23 = new DateOnly(2025, 11, 24); num3 = 2; - List list63 = new List(num3); + List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span30 = CollectionsMarshal.AsSpan(list63); - span30[0] = "Added individual sequence stop condition for each quest"; - span30[1] = "Added Trials to Duties tab in config"; - reference62 = new ChangeEntry(EChangeCategory.Added, "Major features", list63); - ref ChangeEntry reference63 = ref span29[1]; - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - CollectionsMarshal.AsSpan(list64)[0] = "Added IPC for stop conditions: GetQuestSequenceStopCondition, SetQuestSequenceStopCondition, RemoveQuestSequenceStopCondition, GetAllQuestSequenceStopConditions"; - reference63 = new ChangeEntry(EChangeCategory.Added, "IPC changes", list64); - reference61 = new ChangelogEntry("7.38.7", releaseDate23, list62); - ref ChangelogEntry reference64 = ref span[23]; - DateOnly releaseDate24 = new DateOnly(2025, 11, 25); - num2 = 3; - List list65 = new List(num2); - CollectionsMarshal.SetCount(list65, num2); - Span span31 = CollectionsMarshal.AsSpan(list65); - ref ChangeEntry reference65 = ref span31[0]; - num3 = 2; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span32 = CollectionsMarshal.AsSpan(list66); - span32[0] = "Updated Allied Society journal text"; - span32[1] = "Improved Allied Society rank handling"; - reference65 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list66); - ref ChangeEntry reference66 = ref span31[1]; - num3 = 1; - List list67 = new List(num3); - CollectionsMarshal.SetCount(list67, num3); - CollectionsMarshal.AsSpan(list67)[0] = "Added IPC for Allied Society: AddAlliedSocietyOptimalQuests, GetAlliedSocietyOptimalQuests"; - reference66 = new ChangeEntry(EChangeCategory.Added, "IPC changes", list67); - ref ChangeEntry reference67 = ref span31[2]; - num3 = 1; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - CollectionsMarshal.AsSpan(list68)[0] = "Fixed quest (We Come in Peace)"; + Span span63 = CollectionsMarshal.AsSpan(list63); + index = 0; + ref ChangeEntry reference63 = ref span63[index]; + index2 = 1; + List list64 = new List(index2); + CollectionsMarshal.SetCount(list64, index2); + Span span64 = CollectionsMarshal.AsSpan(list64); + num4 = 0; + span64[num4] = "Added Allied Society daily allowance tracker with bulk quest adding buttons"; + reference63 = new ChangeEntry(EChangeCategory.Added, "Major features", list64); + index++; + ref ChangeEntry reference64 = ref span63[index]; + num4 = 1; + List list65 = new List(num4); + CollectionsMarshal.SetCount(list65, num4); + Span span65 = CollectionsMarshal.AsSpan(list65); + index2 = 0; + span65[index2] = "Added IPC for Allied Society: GetRemainingAllowances, GetTimeUntilReset, GetAvailableQuestIds, GetAllAvailableQuestCounts, IsMaxRank, GetCurrentRank, GetSocietiesWithAvailableQuests"; + reference64 = new ChangeEntry(EChangeCategory.Added, "IPC changes", list65); + reference62 = new ChangelogEntry("7.38.5", releaseDate23, list63); + num2++; + ref ChangelogEntry reference65 = ref span[num2]; + DateOnly releaseDate24 = new DateOnly(2025, 11, 23); + index = 2; + List list66 = new List(index); + CollectionsMarshal.SetCount(list66, index); + Span span66 = CollectionsMarshal.AsSpan(list66); + num3 = 0; + ref ChangeEntry reference66 = ref span66[num3]; + index2 = 1; + List list67 = new List(index2); + CollectionsMarshal.SetCount(list67, index2); + Span span67 = CollectionsMarshal.AsSpan(list67); + num4 = 0; + span67[num4] = "Explicitly declare support for BMR singleplayer duty (The Rematch)"; + reference66 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list67); + num3++; + ref ChangeEntry reference67 = ref span66[num3]; + num4 = 8; + List list68 = new List(num4); + CollectionsMarshal.SetCount(list68, num4); + Span span68 = CollectionsMarshal.AsSpan(list68); + index2 = 0; + span68[index2] = "Fixed quest (Microbrewing) to not get stuck near ramp"; + index2++; + span68[index2] = "Fixed quest (The Illuminated Land) where pathing would kill the player due to fall damage"; + index2++; + span68[index2] = "Fixed quest (It's Probably Not Pirates) improper pathing and removed unneeded step"; + index2++; + span68[index2] = "Fixed quest (The Black Wolf's Ultimatum) not exiting landing area"; + index2++; + span68[index2] = "Fixed quest (Magiteknical Failure) from not interacting with NPC due to being mounted"; + index2++; + span68[index2] = "Fixed quest (We Come in Peace) shortcut navigation"; + index2++; + span68[index2] = "Fixed quest (Poisoned Hearts) where incorrect pathing caused the player to die"; + index2++; + span68[index2] = "Fixed quests (Savage Snares) and (An Apple a Day) not detecting kills"; reference67 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list68); - reference64 = new ChangelogEntry("7.38.6", releaseDate24, list65); - ref ChangelogEntry reference68 = ref span[24]; - DateOnly releaseDate25 = new DateOnly(2025, 11, 24); - num2 = 2; - List list69 = new List(num2); - CollectionsMarshal.SetCount(list69, num2); - Span span33 = CollectionsMarshal.AsSpan(list69); - ref ChangeEntry reference69 = ref span33[0]; - num3 = 1; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - CollectionsMarshal.AsSpan(list70)[0] = "Added Allied Society daily allowance tracker with bulk quest adding buttons"; - reference69 = new ChangeEntry(EChangeCategory.Added, "Major features", list70); - ref ChangeEntry reference70 = ref span33[1]; - num3 = 1; - List list71 = new List(num3); - CollectionsMarshal.SetCount(list71, num3); - CollectionsMarshal.AsSpan(list71)[0] = "Added IPC for Allied Society: GetRemainingAllowances, GetTimeUntilReset, GetAvailableQuestIds, GetAllAvailableQuestCounts, IsMaxRank, GetCurrentRank, GetSocietiesWithAvailableQuests"; + reference65 = new ChangelogEntry("7.38.4", releaseDate24, list66); + num2++; + ref ChangelogEntry reference68 = ref span[num2]; + DateOnly releaseDate25 = new DateOnly(2025, 11, 23); + num3 = 3; + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + Span span69 = CollectionsMarshal.AsSpan(list69); + index = 0; + ref ChangeEntry reference69 = ref span69[index]; + index2 = 2; + List list70 = new List(index2); + CollectionsMarshal.SetCount(list70, index2); + Span span70 = CollectionsMarshal.AsSpan(list70); + num4 = 0; + span70[num4] = "Added RequireHq to crafting InteractionType"; + num4++; + span70[num4] = "Mark GC quests as Locked if rank not achieved"; + reference69 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list70); + index++; + ref ChangeEntry reference70 = ref span69[index]; + num4 = 2; + List list71 = new List(num4); + CollectionsMarshal.SetCount(list71, num4); + Span span71 = CollectionsMarshal.AsSpan(list71); + index2 = 0; + span71[index2] = "Added IPC for stop conditions: GetStopConditionsEnabled, SetStopConditionsEnabled, GetStopQuestList, AddStopQuest, RemoveStopQuest, ClearStopQuests, GetLevelStopCondition, SetLevelStopCondition, GetSequenceStopCondition, SetSequenceStopCondition"; + index2++; + span71[index2] = "Added IPC for priority quests: GetPriorityQuests, RemovePriorityQuest, ReorderPriorityQuest, GetAvailablePresets, GetPresetQuests, AddPresetToPriority, IsPresetAvailable, IsQuestInPriority, GetQuestPriorityIndex, HasAvailablePriorityQuests"; reference70 = new ChangeEntry(EChangeCategory.Added, "IPC changes", list71); - reference68 = new ChangelogEntry("7.38.5", releaseDate25, list69); - ref ChangelogEntry reference71 = ref span[25]; - DateOnly releaseDate26 = new DateOnly(2025, 11, 23); - num2 = 2; - List list72 = new List(num2); - CollectionsMarshal.SetCount(list72, num2); - Span span34 = CollectionsMarshal.AsSpan(list72); - ref ChangeEntry reference72 = ref span34[0]; - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - CollectionsMarshal.AsSpan(list73)[0] = "Explicitly declare support for BMR singleplayer duty (The Rematch)"; - reference72 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list73); - ref ChangeEntry reference73 = ref span34[1]; - num3 = 8; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - Span span35 = CollectionsMarshal.AsSpan(list74); - span35[0] = "Fixed quest (Microbrewing) to not get stuck near ramp"; - span35[1] = "Fixed quest (The Illuminated Land) where pathing would kill the player due to fall damage"; - span35[2] = "Fixed quest (It's Probably Not Pirates) improper pathing and removed unneeded step"; - span35[3] = "Fixed quest (The Black Wolf's Ultimatum) not exiting landing area"; - span35[4] = "Fixed quest (Magiteknical Failure) from not interacting with NPC due to being mounted"; - span35[5] = "Fixed quest (We Come in Peace) shortcut navigation"; - span35[6] = "Fixed quest (Poisoned Hearts) where incorrect pathing caused the player to die"; - span35[7] = "Fixed quests (Savage Snares) and (An Apple a Day) not detecting kills"; - reference73 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list74); - reference71 = new ChangelogEntry("7.38.4", releaseDate26, list72); - ref ChangelogEntry reference74 = ref span[26]; - DateOnly releaseDate27 = new DateOnly(2025, 11, 23); - num2 = 3; - List list75 = new List(num2); - CollectionsMarshal.SetCount(list75, num2); - Span span36 = CollectionsMarshal.AsSpan(list75); - ref ChangeEntry reference75 = ref span36[0]; - num3 = 2; - List list76 = new List(num3); + index++; + ref ChangeEntry reference71 = ref span69[index]; + index2 = 3; + List list72 = new List(index2); + CollectionsMarshal.SetCount(list72, index2); + Span span72 = CollectionsMarshal.AsSpan(list72); + num4 = 0; + span72[num4] = "Fixed line breaks not working in dialog strings"; + num4++; + span72[num4] = "Fixed quest (Labor of Love)"; + num4++; + span72[num4] = "Fixed quest (Sea of Sorrow)"; + reference71 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list72); + reference68 = new ChangelogEntry("7.38.3", releaseDate25, list69); + num2++; + ref ChangelogEntry reference72 = ref span[num2]; + DateOnly releaseDate26 = new DateOnly(2025, 11, 18); + index = 3; + List list73 = new List(index); + CollectionsMarshal.SetCount(list73, index); + Span span73 = CollectionsMarshal.AsSpan(list73); + num3 = 0; + ref ChangeEntry reference73 = ref span73[num3]; + num4 = 2; + List list74 = new List(num4); + CollectionsMarshal.SetCount(list74, num4); + Span span74 = CollectionsMarshal.AsSpan(list74); + index2 = 0; + span74[index2] = "Auto Duty unsync options for each duty (Duty Support, Unsync Solo, Unsync Party)"; + index2++; + span74[index2] = "Added Auto Duty unsync options to quest schema and updated quests using old unsync method"; + reference73 = new ChangeEntry(EChangeCategory.Added, "Major features", list74); + num3++; + ref ChangeEntry reference74 = ref span73[num3]; + index2 = 3; + List list75 = new List(index2); + CollectionsMarshal.SetCount(list75, index2); + Span span75 = CollectionsMarshal.AsSpan(list75); + num4 = 0; + span75[num4] = "Added IPC for duty sync handling: GetDefaultDutyMode, SetDefaultDutyMode"; + num4++; + span75[num4] = "Added IPC for duty mode overrides: GetDutyModeOverride, SetDutyModeOverride"; + num4++; + span75[num4] = "Added IPC for clearing overrides: ClearDutyModeOverride, ClearAllDutyModeOverrides"; + reference74 = new ChangeEntry(EChangeCategory.Added, "IPC changes", list75); + num3++; + span73[num3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed quest (Constant Cravings)"); + reference72 = new ChangelogEntry("7.38.2", releaseDate26, list73); + num2++; + ref ChangelogEntry reference75 = ref span[num2]; + DateOnly releaseDate27 = new DateOnly(2025, 11, 18); + num3 = 3; + List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span37 = CollectionsMarshal.AsSpan(list76); - span37[0] = "Added RequireHq to crafting InteractionType"; - span37[1] = "Mark GC quests as Locked if rank not achieved"; - reference75 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list76); - ref ChangeEntry reference76 = ref span36[1]; - num3 = 2; - List list77 = new List(num3); - CollectionsMarshal.SetCount(list77, num3); - Span span38 = CollectionsMarshal.AsSpan(list77); - span38[0] = "Added IPC for stop conditions: GetStopConditionsEnabled, SetStopConditionsEnabled, GetStopQuestList, AddStopQuest, RemoveStopQuest, ClearStopQuests, GetLevelStopCondition, SetLevelStopCondition, GetSequenceStopCondition, SetSequenceStopCondition"; - span38[1] = "Added IPC for priority quests: GetPriorityQuests, RemovePriorityQuest, ReorderPriorityQuest, GetAvailablePresets, GetPresetQuests, AddPresetToPriority, IsPresetAvailable, IsQuestInPriority, GetQuestPriorityIndex, HasAvailablePriorityQuests"; - reference76 = new ChangeEntry(EChangeCategory.Added, "IPC changes", list77); - ref ChangeEntry reference77 = ref span36[2]; - num3 = 3; - List list78 = new List(num3); - CollectionsMarshal.SetCount(list78, num3); - Span span39 = CollectionsMarshal.AsSpan(list78); - span39[0] = "Fixed line breaks not working in dialog strings"; - span39[1] = "Fixed quest (Labor of Love)"; - span39[2] = "Fixed quest (Sea of Sorrow)"; - reference77 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list78); - reference74 = new ChangelogEntry("7.38.3", releaseDate27, list75); - ref ChangelogEntry reference78 = ref span[27]; - DateOnly releaseDate28 = new DateOnly(2025, 11, 18); - num2 = 3; - List list79 = new List(num2); - CollectionsMarshal.SetCount(list79, num2); - Span span40 = CollectionsMarshal.AsSpan(list79); - ref ChangeEntry reference79 = ref span40[0]; - num3 = 2; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span41 = CollectionsMarshal.AsSpan(list80); - span41[0] = "Auto Duty unsync options for each duty (Duty Support, Unsync Solo, Unsync Party)"; - span41[1] = "Added Auto Duty unsync options to quest schema and updated quests using old unsync method"; - reference79 = new ChangeEntry(EChangeCategory.Added, "Major features", list80); - ref ChangeEntry reference80 = ref span40[1]; - num3 = 3; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - Span span42 = CollectionsMarshal.AsSpan(list81); - span42[0] = "Added IPC for duty sync handling: GetDefaultDutyMode, SetDefaultDutyMode"; - span42[1] = "Added IPC for duty mode overrides: GetDutyModeOverride, SetDutyModeOverride"; - span42[2] = "Added IPC for clearing overrides: ClearDutyModeOverride, ClearAllDutyModeOverrides"; - reference80 = new ChangeEntry(EChangeCategory.Added, "IPC changes", list81); - span40[2] = new ChangeEntry(EChangeCategory.Fixed, "Fixed quest (Constant Cravings)"); - reference78 = new ChangelogEntry("7.38.2", releaseDate28, list79); - ref ChangelogEntry reference81 = ref span[28]; - DateOnly releaseDate29 = new DateOnly(2025, 11, 18); - num2 = 3; - List list82 = new List(num2); - CollectionsMarshal.SetCount(list82, num2); - Span span43 = CollectionsMarshal.AsSpan(list82); - ref ChangeEntry reference82 = ref span43[0]; + Span span76 = CollectionsMarshal.AsSpan(list76); + index = 0; + ref ChangeEntry reference76 = ref span76[index]; + num4 = 1; + List list77 = new List(num4); + CollectionsMarshal.SetCount(list77, num4); + Span span77 = CollectionsMarshal.AsSpan(list77); + index2 = 0; + span77[index2] = "Added new fields to quest schema"; + reference76 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list77); + index++; + ref ChangeEntry reference77 = ref span76[index]; + index2 = 3; + List list78 = new List(index2); + CollectionsMarshal.SetCount(list78, index2); + Span span78 = CollectionsMarshal.AsSpan(list78); + num4 = 0; + span78[num4] = "A Faerie Tale Come True"; + num4++; + span78[num4] = "Constant Cravings"; + num4++; + span78[num4] = "A Bridge Too Full"; + reference77 = new ChangeEntry(EChangeCategory.QuestUpdates, "Added new quest paths", list78); + index++; + ref ChangeEntry reference78 = ref span76[index]; + num4 = 3; + List list79 = new List(num4); + CollectionsMarshal.SetCount(list79, num4); + Span span79 = CollectionsMarshal.AsSpan(list79); + index2 = 0; + span79[index2] = "Fixed various quest schemas"; + index2++; + span79[index2] = "Fixed changelog bullet point encoding"; + index2++; + span79[index2] = "Fixed item use to wait until item is used before next action"; + reference78 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list79); + reference75 = new ChangelogEntry("7.38.1", releaseDate27, list76); + num2++; + ref ChangelogEntry reference79 = ref span[num2]; + DateOnly releaseDate28 = new DateOnly(2025, 11, 17); + index = 5; + List list80 = new List(index); + CollectionsMarshal.SetCount(list80, index); + Span span80 = CollectionsMarshal.AsSpan(list80); + num3 = 0; + ref ChangeEntry reference80 = ref span80[num3]; + index2 = 2; + List list81 = new List(index2); + CollectionsMarshal.SetCount(list81, index2); + Span span81 = CollectionsMarshal.AsSpan(list81); + num4 = 0; + span81[num4] = "Quest sequence window to show expected sequences in each quest (with quest searching)"; + num4++; + span81[num4] = "Changelog"; + reference80 = new ChangeEntry(EChangeCategory.Added, "Major features", list81); + num3++; + ref ChangeEntry reference81 = ref span80[num3]; + num4 = 2; + List list82 = new List(num4); + CollectionsMarshal.SetCount(list82, num4); + Span span82 = CollectionsMarshal.AsSpan(list82); + index2 = 0; + span82[index2] = "Updated quest schemas"; + index2++; + span82[index2] = "Added search bar to preferred mounts and capitalization to mirror game mount names"; + reference81 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list82); + num3++; + ref ChangeEntry reference82 = ref span80[num3]; + index2 = 3; + List list83 = new List(index2); + CollectionsMarshal.SetCount(list83, index2); + Span span83 = CollectionsMarshal.AsSpan(list83); + num4 = 0; + span83[num4] = "Renamed IsQuestCompleted → IsQuestComplete"; + num4++; + span83[num4] = "Renamed IsQuestAvailable → IsReadyToAcceptQuest"; + num4++; + span83[num4] = "Added GetCurrentTask IPC"; + reference82 = new ChangeEntry(EChangeCategory.Changed, "IPC changes", list83); + num3++; + span80[num3] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added all Hildibrand quests"); + num3++; + span80[num3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed credits/cutscenes playback"); + reference79 = new ChangelogEntry("7.38.0", releaseDate28, list80); + num2++; + ref ChangelogEntry reference83 = ref span[num2]; + DateOnly releaseDate29 = new DateOnly(2025, 11, 8); num3 = 1; - List list83 = new List(num3); - CollectionsMarshal.SetCount(list83, num3); - CollectionsMarshal.AsSpan(list83)[0] = "Added new fields to quest schema"; - reference82 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list83); - ref ChangeEntry reference83 = ref span43[1]; - num3 = 3; - List list84 = new List(num3); + List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - Span span44 = CollectionsMarshal.AsSpan(list84); - span44[0] = "A Faerie Tale Come True"; - span44[1] = "Constant Cravings"; - span44[2] = "A Bridge Too Full"; - reference83 = new ChangeEntry(EChangeCategory.QuestUpdates, "Added new quest paths", list84); - ref ChangeEntry reference84 = ref span43[2]; - num3 = 3; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - Span span45 = CollectionsMarshal.AsSpan(list85); - span45[0] = "Fixed various quest schemas"; - span45[1] = "Fixed changelog bullet point encoding"; - span45[2] = "Fixed item use to wait until item is used before next action"; - reference84 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list85); - reference81 = new ChangelogEntry("7.38.1", releaseDate29, list82); - ref ChangelogEntry reference85 = ref span[29]; - DateOnly releaseDate30 = new DateOnly(2025, 11, 17); - num2 = 5; - List list86 = new List(num2); - CollectionsMarshal.SetCount(list86, num2); - Span span46 = CollectionsMarshal.AsSpan(list86); - ref ChangeEntry reference86 = ref span46[0]; + Span span84 = CollectionsMarshal.AsSpan(list84); + index = 0; + span84[index] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added Fall Guys quest (Just Crowning Around)"); + reference83 = new ChangelogEntry("6.38", releaseDate29, list84); + num2++; + ref ChangelogEntry reference84 = ref span[num2]; + DateOnly releaseDate30 = new DateOnly(2025, 11, 8); + index = 1; + List list85 = new List(index); + CollectionsMarshal.SetCount(list85, index); + Span span85 = CollectionsMarshal.AsSpan(list85); + num3 = 0; + span85[num3] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added Cosmic Exploration and various unlock quests"); + reference84 = new ChangelogEntry("6.37", releaseDate30, list85); + num2++; + ref ChangelogEntry reference85 = ref span[num2]; + DateOnly releaseDate31 = new DateOnly(2025, 11, 2); + num3 = 1; + List list86 = new List(num3); + CollectionsMarshal.SetCount(list86, num3); + Span span86 = CollectionsMarshal.AsSpan(list86); + index = 0; + span86[index] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy Rank 6 quest (With High Spirits)"); + reference85 = new ChangelogEntry("6.36", releaseDate31, list86); + num2++; + ref ChangelogEntry reference86 = ref span[num2]; + DateOnly releaseDate32 = new DateOnly(2025, 10, 28); + index = 1; + List list87 = new List(index); + CollectionsMarshal.SetCount(list87, index); + Span span87 = CollectionsMarshal.AsSpan(list87); + num3 = 0; + span87[num3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed level 3 MSQ handling if character started on non-XP buff world"); + reference86 = new ChangelogEntry("6.35", releaseDate32, list87); + num2++; + ref ChangelogEntry reference87 = ref span[num2]; + DateOnly releaseDate33 = new DateOnly(2025, 10, 23); num3 = 2; - List list87 = new List(num3); - CollectionsMarshal.SetCount(list87, num3); - Span span47 = CollectionsMarshal.AsSpan(list87); - span47[0] = "Quest sequence window to show expected sequences in each quest (with quest searching)"; - span47[1] = "Changelog"; - reference86 = new ChangeEntry(EChangeCategory.Added, "Major features", list87); - ref ChangeEntry reference87 = ref span46[1]; - num3 = 2; - List list88 = new List(num3); + List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - Span span48 = CollectionsMarshal.AsSpan(list88); - span48[0] = "Updated quest schemas"; - span48[1] = "Added search bar to preferred mounts and capitalization to mirror game mount names"; - reference87 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list88); - ref ChangeEntry reference88 = ref span46[2]; - num3 = 3; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - Span span49 = CollectionsMarshal.AsSpan(list89); - span49[0] = "Renamed IsQuestCompleted → IsQuestComplete"; - span49[1] = "Renamed IsQuestAvailable → IsReadyToAcceptQuest"; - span49[2] = "Added GetCurrentTask IPC"; - reference88 = new ChangeEntry(EChangeCategory.Changed, "IPC changes", list89); - span46[3] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added all Hildibrand quests"); - span46[4] = new ChangeEntry(EChangeCategory.Fixed, "Fixed credits/cutscenes playback"); - reference85 = new ChangelogEntry("7.38.0", releaseDate30, list86); - ref ChangelogEntry reference89 = ref span[30]; - DateOnly releaseDate31 = new DateOnly(2025, 11, 8); - num2 = 1; - List list90 = new List(num2); - CollectionsMarshal.SetCount(list90, num2); - CollectionsMarshal.AsSpan(list90)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added Fall Guys quest (Just Crowning Around)"); - reference89 = new ChangelogEntry("6.38", releaseDate31, list90); - ref ChangelogEntry reference90 = ref span[31]; - DateOnly releaseDate32 = new DateOnly(2025, 11, 8); - num2 = 1; - List list91 = new List(num2); - CollectionsMarshal.SetCount(list91, num2); - CollectionsMarshal.AsSpan(list91)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added Cosmic Exploration and various unlock quests"); - reference90 = new ChangelogEntry("6.37", releaseDate32, list91); - ref ChangelogEntry reference91 = ref span[32]; - DateOnly releaseDate33 = new DateOnly(2025, 11, 2); - num2 = 1; - List list92 = new List(num2); - CollectionsMarshal.SetCount(list92, num2); - CollectionsMarshal.AsSpan(list92)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy Rank 6 quest (With High Spirits)"); - reference91 = new ChangelogEntry("6.36", releaseDate33, list92); - ref ChangelogEntry reference92 = ref span[33]; - DateOnly releaseDate34 = new DateOnly(2025, 10, 28); - num2 = 1; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - CollectionsMarshal.AsSpan(list93)[0] = new ChangeEntry(EChangeCategory.Fixed, "Fixed level 3 MSQ handling if character started on non-XP buff world"); - reference92 = new ChangelogEntry("6.35", releaseDate34, list93); - ref ChangelogEntry reference93 = ref span[34]; + Span span88 = CollectionsMarshal.AsSpan(list88); + index = 0; + span88[index] = new ChangeEntry(EChangeCategory.Added, "Added clear priority quests on logout and on completion config settings"); + index++; + span88[index] = new ChangeEntry(EChangeCategory.Fixed, "Fixed priority quest importing to respect import order"); + reference87 = new ChangelogEntry("6.34", releaseDate33, list88); + num2++; + ref ChangelogEntry reference88 = ref span[num2]; + DateOnly releaseDate34 = new DateOnly(2025, 10, 23); + index = 1; + List list89 = new List(index); + CollectionsMarshal.SetCount(list89, index); + Span span89 = CollectionsMarshal.AsSpan(list89); + num3 = 0; + span89[num3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed RSR combat module"); + reference88 = new ChangelogEntry("6.33", releaseDate34, list89); + num2++; + ref ChangelogEntry reference89 = ref span[num2]; DateOnly releaseDate35 = new DateOnly(2025, 10, 23); - num2 = 2; - List list94 = new List(num2); - CollectionsMarshal.SetCount(list94, num2); - Span span50 = CollectionsMarshal.AsSpan(list94); - span50[0] = new ChangeEntry(EChangeCategory.Added, "Added clear priority quests on logout and on completion config settings"); - span50[1] = new ChangeEntry(EChangeCategory.Fixed, "Fixed priority quest importing to respect import order"); - reference93 = new ChangelogEntry("6.34", releaseDate35, list94); - ref ChangelogEntry reference94 = ref span[35]; - DateOnly releaseDate36 = new DateOnly(2025, 10, 23); - num2 = 1; - List list95 = new List(num2); - CollectionsMarshal.SetCount(list95, num2); - CollectionsMarshal.AsSpan(list95)[0] = new ChangeEntry(EChangeCategory.Fixed, "Fixed RSR combat module"); - reference94 = new ChangelogEntry("6.33", releaseDate36, list95); - ref ChangelogEntry reference95 = ref span[36]; - DateOnly releaseDate37 = new DateOnly(2025, 10, 23); - num2 = 1; - List list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - CollectionsMarshal.AsSpan(list96)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy Rank 5 quest (Forged in Corn)"); - reference95 = new ChangelogEntry("6.32", releaseDate37, list96); - ref ChangelogEntry reference96 = ref span[37]; - DateOnly releaseDate38 = new DateOnly(2025, 10, 21); - num2 = 1; - List list97 = new List(num2); - CollectionsMarshal.SetCount(list97, num2); - CollectionsMarshal.AsSpan(list97)[0] = new ChangeEntry(EChangeCategory.Changed, "Added checks for moogle and allied society quests when using add all available quests"); - reference96 = new ChangelogEntry("6.31", releaseDate38, list97); - ref ChangelogEntry reference97 = ref span[38]; - DateOnly releaseDate39 = new DateOnly(2025, 10, 21); - num2 = 1; - List list98 = new List(num2); - CollectionsMarshal.SetCount(list98, num2); - CollectionsMarshal.AsSpan(list98)[0] = new ChangeEntry(EChangeCategory.Added, "Added button to journal that allows adding all available quests to priority"); - reference97 = new ChangelogEntry("6.30", releaseDate39, list98); - ref ChangelogEntry reference98 = ref span[39]; - DateOnly releaseDate40 = new DateOnly(2025, 10, 20); - num2 = 2; - List list99 = new List(num2); - CollectionsMarshal.SetCount(list99, num2); - Span span51 = CollectionsMarshal.AsSpan(list99); - ref ChangeEntry reference99 = ref span51[0]; + num3 = 1; + List list90 = new List(num3); + CollectionsMarshal.SetCount(list90, num3); + Span span90 = CollectionsMarshal.AsSpan(list90); + index = 0; + span90[index] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy Rank 5 quest (Forged in Corn)"); + reference89 = new ChangelogEntry("6.32", releaseDate35, list90); + num2++; + ref ChangelogEntry reference90 = ref span[num2]; + DateOnly releaseDate36 = new DateOnly(2025, 10, 21); + index = 1; + List list91 = new List(index); + CollectionsMarshal.SetCount(list91, index); + Span span91 = CollectionsMarshal.AsSpan(list91); + num3 = 0; + span91[num3] = new ChangeEntry(EChangeCategory.Changed, "Added checks for moogle and allied society quests when using add all available quests"); + reference90 = new ChangelogEntry("6.31", releaseDate36, list91); + num2++; + ref ChangelogEntry reference91 = ref span[num2]; + DateOnly releaseDate37 = new DateOnly(2025, 10, 21); + num3 = 1; + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + Span span92 = CollectionsMarshal.AsSpan(list92); + index = 0; + span92[index] = new ChangeEntry(EChangeCategory.Added, "Added button to journal that allows adding all available quests to priority"); + reference91 = new ChangelogEntry("6.30", releaseDate37, list92); + num2++; + ref ChangelogEntry reference92 = ref span[num2]; + DateOnly releaseDate38 = new DateOnly(2025, 10, 20); + index = 2; + List list93 = new List(index); + CollectionsMarshal.SetCount(list93, index); + Span span93 = CollectionsMarshal.AsSpan(list93); + num3 = 0; + ref ChangeEntry reference93 = ref span93[num3]; + num4 = 2; + List list94 = new List(num4); + CollectionsMarshal.SetCount(list94, num4); + Span span94 = CollectionsMarshal.AsSpan(list94); + index2 = 0; + span94[index2] = "Added item count to combat handling rework"; + index2++; + span94[index2] = "Updated Pandora conflicting features"; + reference93 = new ChangeEntry(EChangeCategory.Changed, "Combat handling improvements", list94); + num3++; + span93[num3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed quest to purchase Gysahl Greens if not in inventory"); + reference92 = new ChangelogEntry("6.29", releaseDate38, list93); + num2++; + ref ChangelogEntry reference94 = ref span[num2]; + DateOnly releaseDate39 = new DateOnly(2025, 10, 19); + num3 = 1; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + Span span95 = CollectionsMarshal.AsSpan(list95); + index = 0; + span95[index] = new ChangeEntry(EChangeCategory.Changed, "Reworked kill count combat handling - combat and enemy kills are now processed instantly"); + reference94 = new ChangelogEntry("6.28", releaseDate39, list95); + num2++; + ref ChangelogEntry reference95 = ref span[num2]; + DateOnly releaseDate40 = new DateOnly(2025, 10, 18); + index = 2; + List list96 = new List(index); + CollectionsMarshal.SetCount(list96, index); + Span span96 = CollectionsMarshal.AsSpan(list96); + num3 = 0; + span96[num3] = new ChangeEntry(EChangeCategory.Changed, "Improved Aether Current checking logic"); + num3++; + span96[num3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed Chocobo Taxi Stand CheckSkip error and Patch 7.3 Fantasia unlock quest date/time"); + reference95 = new ChangelogEntry("6.27", releaseDate40, list96); + num2++; + ref ChangelogEntry reference96 = ref span[num2]; + DateOnly releaseDate41 = new DateOnly(2025, 10, 18); + num3 = 1; + List list97 = new List(num3); + CollectionsMarshal.SetCount(list97, num3); + Span span97 = CollectionsMarshal.AsSpan(list97); + index = 0; + span97[index] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 4 quests"); + reference96 = new ChangelogEntry("6.26", releaseDate41, list97); + num2++; + ref ChangelogEntry reference97 = ref span[num2]; + DateOnly releaseDate42 = new DateOnly(2025, 10, 17); + index = 1; + List list98 = new List(index); + CollectionsMarshal.SetCount(list98, index); + Span span98 = CollectionsMarshal.AsSpan(list98); + num3 = 0; + span98[num3] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added All Saints' Wake 2025 quests and 7.35 Yok Huy rank 4 quests"); + reference97 = new ChangelogEntry("6.25", releaseDate42, list98); + num2++; + ref ChangelogEntry reference98 = ref span[num2]; + DateOnly releaseDate43 = new DateOnly(2025, 10, 16); + num3 = 1; + List list99 = new List(num3); + CollectionsMarshal.SetCount(list99, num3); + Span span99 = CollectionsMarshal.AsSpan(list99); + index = 0; + span99[index] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 4 quests and Deep Dungeon quest"); + reference98 = new ChangelogEntry("6.24", releaseDate43, list99); + num2++; + ref ChangelogEntry reference99 = ref span[num2]; + DateOnly releaseDate44 = new DateOnly(2025, 10, 13); + index = 1; + List list100 = new List(index); + CollectionsMarshal.SetCount(list100, index); + Span span100 = CollectionsMarshal.AsSpan(list100); + num3 = 0; + span100[num3] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 3 quest (Larder Logistics)"); + reference99 = new ChangelogEntry("6.23", releaseDate44, list100); + num2++; + ref ChangelogEntry reference100 = ref span[num2]; + DateOnly releaseDate45 = new DateOnly(2025, 10, 12); + num3 = 3; + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + Span span101 = CollectionsMarshal.AsSpan(list101); + index = 0; + span101[index] = new ChangeEntry(EChangeCategory.Changed, "Prevent disabled or Locked quests from being started as 'Start as next quest'"); + index++; + span101[index] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 3 quests"); + index++; + span101[index] = new ChangeEntry(EChangeCategory.Fixed, "Fixed Yok Huy quest and journal quest chain priority issues"); + reference100 = new ChangelogEntry("6.22", releaseDate45, list101); + num2++; + ref ChangelogEntry reference101 = ref span[num2]; + DateOnly releaseDate46 = new DateOnly(2025, 10, 12); + index = 2; + List list102 = new List(index); + CollectionsMarshal.SetCount(list102, index); + Span span102 = CollectionsMarshal.AsSpan(list102); + num3 = 0; + span102[num3] = new ChangeEntry(EChangeCategory.Added, "Added expansion abbreviation to journal window"); + num3++; + span102[num3] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 3 quests"); + reference101 = new ChangelogEntry("6.21", releaseDate46, list102); + num2++; + ref ChangelogEntry reference102 = ref span[num2]; + DateOnly releaseDate47 = new DateOnly(2025, 10, 10); num3 = 2; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - Span span52 = CollectionsMarshal.AsSpan(list100); - span52[0] = "Added item count to combat handling rework"; - span52[1] = "Updated Pandora conflicting features"; - reference99 = new ChangeEntry(EChangeCategory.Changed, "Combat handling improvements", list100); - span51[1] = new ChangeEntry(EChangeCategory.Fixed, "Fixed quest to purchase Gysahl Greens if not in inventory"); - reference98 = new ChangelogEntry("6.29", releaseDate40, list99); - ref ChangelogEntry reference100 = ref span[40]; - DateOnly releaseDate41 = new DateOnly(2025, 10, 19); - num2 = 1; - List list101 = new List(num2); - CollectionsMarshal.SetCount(list101, num2); - CollectionsMarshal.AsSpan(list101)[0] = new ChangeEntry(EChangeCategory.Changed, "Reworked kill count combat handling - combat and enemy kills are now processed instantly"); - reference100 = new ChangelogEntry("6.28", releaseDate41, list101); - ref ChangelogEntry reference101 = ref span[41]; - DateOnly releaseDate42 = new DateOnly(2025, 10, 18); - num2 = 2; - List list102 = new List(num2); - CollectionsMarshal.SetCount(list102, num2); - Span span53 = CollectionsMarshal.AsSpan(list102); - span53[0] = new ChangeEntry(EChangeCategory.Changed, "Improved Aether Current checking logic"); - span53[1] = new ChangeEntry(EChangeCategory.Fixed, "Fixed Chocobo Taxi Stand CheckSkip error and Patch 7.3 Fantasia unlock quest date/time"); - reference101 = new ChangelogEntry("6.27", releaseDate42, list102); - ref ChangelogEntry reference102 = ref span[42]; - DateOnly releaseDate43 = new DateOnly(2025, 10, 18); - num2 = 1; - List list103 = new List(num2); - CollectionsMarshal.SetCount(list103, num2); - CollectionsMarshal.AsSpan(list103)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 4 quests"); - reference102 = new ChangelogEntry("6.26", releaseDate43, list103); - ref ChangelogEntry reference103 = ref span[43]; - DateOnly releaseDate44 = new DateOnly(2025, 10, 17); - num2 = 1; - List list104 = new List(num2); - CollectionsMarshal.SetCount(list104, num2); - CollectionsMarshal.AsSpan(list104)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added All Saints' Wake 2025 quests and 7.35 Yok Huy rank 4 quests"); - reference103 = new ChangelogEntry("6.25", releaseDate44, list104); - ref ChangelogEntry reference104 = ref span[44]; - DateOnly releaseDate45 = new DateOnly(2025, 10, 16); - num2 = 1; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - CollectionsMarshal.AsSpan(list105)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 4 quests and Deep Dungeon quest"); - reference104 = new ChangelogEntry("6.24", releaseDate45, list105); - ref ChangelogEntry reference105 = ref span[45]; - DateOnly releaseDate46 = new DateOnly(2025, 10, 13); - num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - CollectionsMarshal.AsSpan(list106)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 3 quest (Larder Logistics)"); - reference105 = new ChangelogEntry("6.23", releaseDate46, list106); - ref ChangelogEntry reference106 = ref span[46]; - DateOnly releaseDate47 = new DateOnly(2025, 10, 12); - num2 = 3; - List list107 = new List(num2); - CollectionsMarshal.SetCount(list107, num2); - Span span54 = CollectionsMarshal.AsSpan(list107); - span54[0] = new ChangeEntry(EChangeCategory.Changed, "Prevent disabled or Locked quests from being started as 'Start as next quest'"); - span54[1] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 3 quests"); - span54[2] = new ChangeEntry(EChangeCategory.Fixed, "Fixed Yok Huy quest and journal quest chain priority issues"); - reference106 = new ChangelogEntry("6.22", releaseDate47, list107); - ref ChangelogEntry reference107 = ref span[47]; - DateOnly releaseDate48 = new DateOnly(2025, 10, 12); - num2 = 2; - List list108 = new List(num2); - CollectionsMarshal.SetCount(list108, num2); - Span span55 = CollectionsMarshal.AsSpan(list108); - span55[0] = new ChangeEntry(EChangeCategory.Added, "Added expansion abbreviation to journal window"); - span55[1] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 3 quests"); - reference107 = new ChangelogEntry("6.21", releaseDate48, list108); - ref ChangelogEntry reference108 = ref span[48]; - DateOnly releaseDate49 = new DateOnly(2025, 10, 10); - num2 = 2; - List list109 = new List(num2); - CollectionsMarshal.SetCount(list109, num2); - Span span56 = CollectionsMarshal.AsSpan(list109); - span56[0] = new ChangeEntry(EChangeCategory.Changed, "Allow completed repeatable quests to be used with 'Add quest and requirements to priority' feature"); - span56[1] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 1 quest (A Work of Cart)"); - reference108 = new ChangelogEntry("6.20", releaseDate49, list109); - ref ChangelogEntry reference109 = ref span[49]; - DateOnly releaseDate50 = new DateOnly(2025, 10, 9); - num2 = 3; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span57 = CollectionsMarshal.AsSpan(list110); - span57[0] = new ChangeEntry(EChangeCategory.Added, "Added config to batch Allied Society quest turn-ins"); - span57[1] = new ChangeEntry(EChangeCategory.Changed, "Repeatable quests now show correct availability state in journal"); - span57[2] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 2 quests"); - reference109 = new ChangelogEntry("6.19", releaseDate50, list110); - ref ChangelogEntry reference110 = ref span[50]; - DateOnly releaseDate51 = new DateOnly(2025, 10, 9); - num2 = 2; - List list111 = new List(num2); - CollectionsMarshal.SetCount(list111, num2); - Span span58 = CollectionsMarshal.AsSpan(list111); - span58[0] = new ChangeEntry(EChangeCategory.Changed, "Show once completed quests with improved state display"); - span58[1] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy daily quest and improvements to various Yok Huy quests"); - reference110 = new ChangelogEntry("6.18", releaseDate51, list111); - ref ChangelogEntry reference111 = ref span[51]; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + Span span103 = CollectionsMarshal.AsSpan(list103); + index = 0; + span103[index] = new ChangeEntry(EChangeCategory.Changed, "Allow completed repeatable quests to be used with 'Add quest and requirements to priority' feature"); + index++; + span103[index] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 1 quest (A Work of Cart)"); + reference102 = new ChangelogEntry("6.20", releaseDate47, list103); + num2++; + ref ChangelogEntry reference103 = ref span[num2]; + DateOnly releaseDate48 = new DateOnly(2025, 10, 9); + index = 3; + List list104 = new List(index); + CollectionsMarshal.SetCount(list104, index); + Span span104 = CollectionsMarshal.AsSpan(list104); + num3 = 0; + span104[num3] = new ChangeEntry(EChangeCategory.Added, "Added config to batch Allied Society quest turn-ins"); + num3++; + span104[num3] = new ChangeEntry(EChangeCategory.Changed, "Repeatable quests now show correct availability state in journal"); + num3++; + span104[num3] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 2 quests"); + reference103 = new ChangelogEntry("6.19", releaseDate48, list104); + num2++; + ref ChangelogEntry reference104 = ref span[num2]; + DateOnly releaseDate49 = new DateOnly(2025, 10, 9); + num3 = 2; + List list105 = new List(num3); + CollectionsMarshal.SetCount(list105, num3); + Span span105 = CollectionsMarshal.AsSpan(list105); + index = 0; + span105[index] = new ChangeEntry(EChangeCategory.Changed, "Show once completed quests with improved state display"); + index++; + span105[index] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy daily quest and improvements to various Yok Huy quests"); + reference104 = new ChangelogEntry("6.18", releaseDate49, list105); + num2++; + ref ChangelogEntry reference105 = ref span[num2]; + DateOnly releaseDate50 = new DateOnly(2025, 10, 8); + index = 1; + List list106 = new List(index); + CollectionsMarshal.SetCount(list106, index); + Span span106 = CollectionsMarshal.AsSpan(list106); + num3 = 0; + span106[num3] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 1 and rank 2 quests"); + reference105 = new ChangelogEntry("6.17", releaseDate50, list106); + num2++; + ref ChangelogEntry reference106 = ref span[num2]; + DateOnly releaseDate51 = new DateOnly(2025, 10, 8); + num3 = 1; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + Span span107 = CollectionsMarshal.AsSpan(list107); + index = 0; + span107[index] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Deep Dungeon quest (Faerie Tale)"); + reference106 = new ChangelogEntry("6.16", releaseDate51, list107); + num2++; + ref ChangelogEntry reference107 = ref span[num2]; DateOnly releaseDate52 = new DateOnly(2025, 10, 8); - num2 = 1; - List list112 = new List(num2); - CollectionsMarshal.SetCount(list112, num2); - CollectionsMarshal.AsSpan(list112)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 1 and rank 2 quests"); - reference111 = new ChangelogEntry("6.17", releaseDate52, list112); - ref ChangelogEntry reference112 = ref span[52]; + index = 2; + List list108 = new List(index); + CollectionsMarshal.SetCount(list108, index); + Span span108 = CollectionsMarshal.AsSpan(list108); + num3 = 0; + span108[num3] = new ChangeEntry(EChangeCategory.Changed, "Dalamud cleanup"); + num3++; + span108[num3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed quest level requirement check log spam"); + reference107 = new ChangelogEntry("6.15", releaseDate52, list108); + num2++; + ref ChangelogEntry reference108 = ref span[num2]; DateOnly releaseDate53 = new DateOnly(2025, 10, 8); - num2 = 1; - List list113 = new List(num2); - CollectionsMarshal.SetCount(list113, num2); - CollectionsMarshal.AsSpan(list113)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Deep Dungeon quest (Faerie Tale)"); - reference112 = new ChangelogEntry("6.16", releaseDate53, list113); - ref ChangelogEntry reference113 = ref span[53]; + num3 = 1; + List list109 = new List(num3); + CollectionsMarshal.SetCount(list109, num3); + Span span109 = CollectionsMarshal.AsSpan(list109); + index = 0; + span109[index] = new ChangeEntry(EChangeCategory.Fixed, "Fixed abandoned quest check logic if quest were MSQ"); + reference108 = new ChangelogEntry("6.14", releaseDate53, list109); + num2++; + ref ChangelogEntry reference109 = ref span[num2]; DateOnly releaseDate54 = new DateOnly(2025, 10, 8); - num2 = 2; - List list114 = new List(num2); - CollectionsMarshal.SetCount(list114, num2); - Span span59 = CollectionsMarshal.AsSpan(list114); - span59[0] = new ChangeEntry(EChangeCategory.Changed, "Dalamud cleanup"); - span59[1] = new ChangeEntry(EChangeCategory.Fixed, "Fixed quest level requirement check log spam"); - reference113 = new ChangelogEntry("6.15", releaseDate54, list114); - ref ChangelogEntry reference114 = ref span[54]; - DateOnly releaseDate55 = new DateOnly(2025, 10, 8); - num2 = 1; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - CollectionsMarshal.AsSpan(list115)[0] = new ChangeEntry(EChangeCategory.Fixed, "Fixed abandoned quest check logic if quest were MSQ"); - reference114 = new ChangelogEntry("6.14", releaseDate55, list115); - ref ChangelogEntry reference115 = ref span[55]; - DateOnly releaseDate56 = new DateOnly(2025, 10, 8); - num2 = 2; - List list116 = new List(num2); - CollectionsMarshal.SetCount(list116, num2); - Span span60 = CollectionsMarshal.AsSpan(list116); - ref ChangeEntry reference116 = ref span60[0]; - num3 = 3; - List list117 = new List(num3); - CollectionsMarshal.SetCount(list117, num3); - Span span61 = CollectionsMarshal.AsSpan(list117); - span61[0] = "Context menu option to add required quests and their chain to priority list"; - span61[1] = "AetheryteShortcut to multiple quests"; - span61[2] = "Artisan as a recommended plugin/dependency"; - reference116 = new ChangeEntry(EChangeCategory.Added, "Quest improvements", list117); - span60[1] = new ChangeEntry(EChangeCategory.Fixed, "Fixed abandoned quest check and priority list issues"); - reference115 = new ChangelogEntry("6.13", releaseDate56, list116); - ref ChangelogEntry reference117 = ref span[56]; - DateOnly releaseDate57 = new DateOnly(2025, 10, 7); - num2 = 4; - List list118 = new List(num2); - CollectionsMarshal.SetCount(list118, num2); - Span span62 = CollectionsMarshal.AsSpan(list118); - ref ChangeEntry reference118 = ref span62[0]; + index = 2; + List list110 = new List(index); + CollectionsMarshal.SetCount(list110, index); + Span span110 = CollectionsMarshal.AsSpan(list110); + num3 = 0; + ref ChangeEntry reference110 = ref span110[num3]; + index2 = 3; + List list111 = new List(index2); + CollectionsMarshal.SetCount(list111, index2); + Span span111 = CollectionsMarshal.AsSpan(list111); + num4 = 0; + span111[num4] = "Context menu option to add required quests and their chain to priority list"; + num4++; + span111[num4] = "AetheryteShortcut to multiple quests"; + num4++; + span111[num4] = "Artisan as a recommended plugin/dependency"; + reference110 = new ChangeEntry(EChangeCategory.Added, "Quest improvements", list111); + num3++; + span110[num3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed abandoned quest check and priority list issues"); + reference109 = new ChangelogEntry("6.13", releaseDate54, list110); + num2++; + ref ChangelogEntry reference111 = ref span[num2]; + DateOnly releaseDate55 = new DateOnly(2025, 10, 7); num3 = 4; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - Span span63 = CollectionsMarshal.AsSpan(list119); - span63[0] = "FATE combat handling with auto level syncing"; - span63[1] = "Start accepted quests from journal with 'Start as next quest'"; - span63[2] = "Update quest tracking when quests are hidden or prioritised in game"; - span63[3] = "QuestMap as a recommended plugin/dependency"; - reference118 = new ChangeEntry(EChangeCategory.Added, "FATE and quest tracking", list119); - ref ChangeEntry reference119 = ref span62[1]; - num3 = 3; - List list120 = new List(num3); - CollectionsMarshal.SetCount(list120, num3); - Span span64 = CollectionsMarshal.AsSpan(list120); - span64[0] = "Always prioritise next quest during teleportation/zone transitions"; - span64[1] = "Improved accepted quest logic with abandoned quest detection"; - span64[2] = "Show quests without quest paths as Locked"; - reference119 = new ChangeEntry(EChangeCategory.Changed, "Quest prioritisation improvements", list120); - span62[2] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Deep Dungeon, Hildibrand, Yok Huy, Monster Hunter Wilds Collab, and Doman Enclave quests"); - span62[3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed accepted/active quest display and Hildibrand quest issues"); - reference117 = new ChangelogEntry("6.12", releaseDate57, list118); - ref ChangelogEntry reference120 = ref span[57]; - DateOnly releaseDate58 = new DateOnly(2025, 10, 3); - num2 = 1; - List list121 = new List(num2); - CollectionsMarshal.SetCount(list121, num2); - CollectionsMarshal.AsSpan(list121)[0] = new ChangeEntry(EChangeCategory.Changed, "Added remaining checks for quest priority to prevent infinite teleport looping"); - reference120 = new ChangelogEntry("6.11", releaseDate58, list121); - ref ChangelogEntry reference121 = ref span[58]; - DateOnly releaseDate59 = new DateOnly(2025, 10, 2); - num2 = 1; - List list122 = new List(num2); - CollectionsMarshal.SetCount(list122, num2); - ref ChangeEntry reference122 = ref CollectionsMarshal.AsSpan(list122)[0]; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + Span span112 = CollectionsMarshal.AsSpan(list112); + index = 0; + ref ChangeEntry reference112 = ref span112[index]; + num4 = 4; + List list113 = new List(num4); + CollectionsMarshal.SetCount(list113, num4); + Span span113 = CollectionsMarshal.AsSpan(list113); + index2 = 0; + span113[index2] = "FATE combat handling with auto level syncing"; + index2++; + span113[index2] = "Start accepted quests from journal with 'Start as next quest'"; + index2++; + span113[index2] = "Update quest tracking when quests are hidden or prioritised in game"; + index2++; + span113[index2] = "QuestMap as a recommended plugin/dependency"; + reference112 = new ChangeEntry(EChangeCategory.Added, "FATE and quest tracking", list113); + index++; + ref ChangeEntry reference113 = ref span112[index]; + index2 = 3; + List list114 = new List(index2); + CollectionsMarshal.SetCount(list114, index2); + Span span114 = CollectionsMarshal.AsSpan(list114); + num4 = 0; + span114[num4] = "Always prioritise next quest during teleportation/zone transitions"; + num4++; + span114[num4] = "Improved accepted quest logic with abandoned quest detection"; + num4++; + span114[num4] = "Show quests without quest paths as Locked"; + reference113 = new ChangeEntry(EChangeCategory.Changed, "Quest prioritisation improvements", list114); + index++; + span112[index] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Deep Dungeon, Hildibrand, Yok Huy, Monster Hunter Wilds Collab, and Doman Enclave quests"); + index++; + span112[index] = new ChangeEntry(EChangeCategory.Fixed, "Fixed accepted/active quest display and Hildibrand quest issues"); + reference111 = new ChangelogEntry("6.12", releaseDate55, list112); + num2++; + ref ChangelogEntry reference114 = ref span[num2]; + DateOnly releaseDate56 = new DateOnly(2025, 10, 3); + index = 1; + List list115 = new List(index); + CollectionsMarshal.SetCount(list115, index); + Span span115 = CollectionsMarshal.AsSpan(list115); + num3 = 0; + span115[num3] = new ChangeEntry(EChangeCategory.Changed, "Added remaining checks for quest priority to prevent infinite teleport looping"); + reference114 = new ChangelogEntry("6.11", releaseDate56, list115); + num2++; + ref ChangelogEntry reference115 = ref span[num2]; + DateOnly releaseDate57 = new DateOnly(2025, 10, 2); + num3 = 1; + List list116 = new List(num3); + CollectionsMarshal.SetCount(list116, num3); + Span span116 = CollectionsMarshal.AsSpan(list116); + index = 0; + ref ChangeEntry reference116 = ref span116[index]; + num4 = 2; + List list117 = new List(num4); + CollectionsMarshal.SetCount(list117, num4); + Span span117 = CollectionsMarshal.AsSpan(list117); + index2 = 0; + span117[index2] = "Don't show quests as available if player doesn't meet level requirements"; + index2++; + span117[index2] = "Updated 'required for MSQ' text in Crystal Tower quest preset window"; + reference116 = new ChangeEntry(EChangeCategory.Changed, "Quest window improvements", list117); + reference115 = new ChangelogEntry("6.10", releaseDate57, list116); + num2++; + ref ChangelogEntry reference117 = ref span[num2]; + DateOnly releaseDate58 = new DateOnly(2025, 9, 21); + index = 5; + List list118 = new List(index); + CollectionsMarshal.SetCount(list118, index); + Span span118 = CollectionsMarshal.AsSpan(list118); + num3 = 0; + ref ChangeEntry reference118 = ref span118[num3]; + index2 = 4; + List list119 = new List(index2); + CollectionsMarshal.SetCount(list119, index2); + Span span119 = CollectionsMarshal.AsSpan(list119); + num4 = 0; + span119[num4] = "Reworked event quest handling - automatically displays when events are active"; + num4++; + span119[num4] = "Reworked journal system with improved filtering and display"; + num4++; + span119[num4] = "Reworked Priority Quests tab (Manual Priority and Quest Presets)"; + num4++; + span119[num4] = "Quest path viewer site (https://wigglymuffin.github.io/FFXIV-Tools/)"; + reference118 = new ChangeEntry(EChangeCategory.Added, "Major system reworks", list119); + num3++; + ref ChangeEntry reference119 = ref span118[num3]; + num4 = 4; + List list120 = new List(num4); + CollectionsMarshal.SetCount(list120, num4); + Span span120 = CollectionsMarshal.AsSpan(list120); + index2 = 0; + span120[index2] = "Questionable.IsQuestCompleted"; + index2++; + span120[index2] = "Questionable.IsQuestAvailable"; + index2++; + span120[index2] = "Questionable.IsQuestAccepted"; + index2++; + span120[index2] = "Questionable.IsQuestUnobtainable"; + reference119 = new ChangeEntry(EChangeCategory.Added, "New IPC commands", list120); + num3++; + ref ChangeEntry reference120 = ref span118[num3]; + index2 = 5; + List list121 = new List(index2); + CollectionsMarshal.SetCount(list121, index2); + Span span121 = CollectionsMarshal.AsSpan(list121); + num4 = 0; + span121[num4] = "Improved JSON quest validation with specific error reasons"; + num4++; + span121[num4] = "Added stop at sequence stop condition"; + num4++; + span121[num4] = "Improved Pandora plugin conflict detection"; + num4++; + span121[num4] = "Improved DialogueChoices regex matching"; + num4++; + span121[num4] = "Improved refresh checker for all quest states"; + reference120 = new ChangeEntry(EChangeCategory.Changed, "Various improvements", list121); + num3++; + span118[num3] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.31 Occult Crescent quests"); + num3++; + span118[num3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed cutscene crashes, Single Player Duty triggers, and various quest issues"); + reference117 = new ChangelogEntry("6.9", releaseDate58, list118); + num2++; + ref ChangelogEntry reference121 = ref span[num2]; + DateOnly releaseDate59 = new DateOnly(2025, 9, 2); + num3 = 4; + List list122 = new List(num3); + CollectionsMarshal.SetCount(list122, num3); + Span span122 = CollectionsMarshal.AsSpan(list122); + index = 0; + ref ChangeEntry reference122 = ref span122[index]; + num4 = 4; + List list123 = new List(num4); + CollectionsMarshal.SetCount(list123, num4); + Span span123 = CollectionsMarshal.AsSpan(list123); + index2 = 0; + span123[index2] = "Help commands and priority quest command"; + index2++; + span123[index2] = "Prevent 'CompleteQuest' step setting"; + index2++; + span123[index2] = "Duty counts and controls in 'Quest Battles' tab"; + index2++; + span123[index2] = "'Refresh quest timer' setting (WIP)"; + reference122 = new ChangeEntry(EChangeCategory.Added, "Command and UI improvements", list123); + index++; + span122[index] = new ChangeEntry(EChangeCategory.Changed, "Improved 'Clear All' buttons to require CTRL being held"); + index++; + span122[index] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added Zodiac quests and 7.31 Cosmic/Occult Crescent quests"); + index++; + span122[index] = new ChangeEntry(EChangeCategory.Fixed, "Fixed Fishing for Friendship and Cosmic Exploration quests"); + reference121 = new ChangelogEntry("6.8", releaseDate59, list122); + num2++; + ref ChangelogEntry reference123 = ref span[num2]; + DateOnly releaseDate60 = new DateOnly(2025, 8, 27); + index = 4; + List list124 = new List(index); + CollectionsMarshal.SetCount(list124, index); + Span span124 = CollectionsMarshal.AsSpan(list124); + num3 = 0; + ref ChangeEntry reference124 = ref span124[num3]; + index2 = 2; + List list125 = new List(index2); + CollectionsMarshal.SetCount(list125, index2); + Span span125 = CollectionsMarshal.AsSpan(list125); + num4 = 0; + span125[num4] = "Icon to 'Clear All' button in stop conditions"; + num4++; + span125[num4] = "Duty counts and 'Enable All' button in 'Duties' tab"; + reference124 = new ChangeEntry(EChangeCategory.Added, "UI improvements", list125); + num3++; + span124[num3] = new ChangeEntry(EChangeCategory.Changed, "Renamed 'Clear' button to 'Clear All' in priority window"); + num3++; + span124[num3] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added Rising 2025 Event Quests"); + num3++; + span124[num3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed clipboard assigning blacklist to whitelist in 'Duties' tab"); + reference123 = new ChangelogEntry("6.7", releaseDate60, list124); + num2++; + ref ChangelogEntry reference125 = ref span[num2]; + DateOnly releaseDate61 = new DateOnly(2025, 8, 25); num3 = 2; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - Span span65 = CollectionsMarshal.AsSpan(list123); - span65[0] = "Don't show quests as available if player doesn't meet level requirements"; - span65[1] = "Updated 'required for MSQ' text in Crystal Tower quest preset window"; - reference122 = new ChangeEntry(EChangeCategory.Changed, "Quest window improvements", list123); - reference121 = new ChangelogEntry("6.10", releaseDate59, list122); - ref ChangelogEntry reference123 = ref span[59]; - DateOnly releaseDate60 = new DateOnly(2025, 9, 21); - num2 = 5; - List list124 = new List(num2); - CollectionsMarshal.SetCount(list124, num2); - Span span66 = CollectionsMarshal.AsSpan(list124); - ref ChangeEntry reference124 = ref span66[0]; - num3 = 4; - List list125 = new List(num3); - CollectionsMarshal.SetCount(list125, num3); - Span span67 = CollectionsMarshal.AsSpan(list125); - span67[0] = "Reworked event quest handling - automatically displays when events are active"; - span67[1] = "Reworked journal system with improved filtering and display"; - span67[2] = "Reworked Priority Quests tab (Manual Priority and Quest Presets)"; - span67[3] = "Quest path viewer site (https://wigglymuffin.github.io/FFXIV-Tools/)"; - reference124 = new ChangeEntry(EChangeCategory.Added, "Major system reworks", list125); - ref ChangeEntry reference125 = ref span66[1]; - num3 = 4; - List list126 = new List(num3); + List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - Span span68 = CollectionsMarshal.AsSpan(list126); - span68[0] = "Questionable.IsQuestCompleted"; - span68[1] = "Questionable.IsQuestAvailable"; - span68[2] = "Questionable.IsQuestAccepted"; - span68[3] = "Questionable.IsQuestUnobtainable"; - reference125 = new ChangeEntry(EChangeCategory.Added, "New IPC commands", list126); - ref ChangeEntry reference126 = ref span66[2]; - num3 = 5; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - Span span69 = CollectionsMarshal.AsSpan(list127); - span69[0] = "Improved JSON quest validation with specific error reasons"; - span69[1] = "Added stop at sequence stop condition"; - span69[2] = "Improved Pandora plugin conflict detection"; - span69[3] = "Improved DialogueChoices regex matching"; - span69[4] = "Improved refresh checker for all quest states"; - reference126 = new ChangeEntry(EChangeCategory.Changed, "Various improvements", list127); - span66[3] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.31 Occult Crescent quests"); - span66[4] = new ChangeEntry(EChangeCategory.Fixed, "Fixed cutscene crashes, Single Player Duty triggers, and various quest issues"); - reference123 = new ChangelogEntry("6.9", releaseDate60, list124); - ref ChangelogEntry reference127 = ref span[60]; - DateOnly releaseDate61 = new DateOnly(2025, 9, 2); - num2 = 4; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span70 = CollectionsMarshal.AsSpan(list128); - ref ChangeEntry reference128 = ref span70[0]; - num3 = 4; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - Span span71 = CollectionsMarshal.AsSpan(list129); - span71[0] = "Help commands and priority quest command"; - span71[1] = "Prevent 'CompleteQuest' step setting"; - span71[2] = "Duty counts and controls in 'Quest Battles' tab"; - span71[3] = "'Refresh quest timer' setting (WIP)"; - reference128 = new ChangeEntry(EChangeCategory.Added, "Command and UI improvements", list129); - span70[1] = new ChangeEntry(EChangeCategory.Changed, "Improved 'Clear All' buttons to require CTRL being held"); - span70[2] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added Zodiac quests and 7.31 Cosmic/Occult Crescent quests"); - span70[3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed Fishing for Friendship and Cosmic Exploration quests"); - reference127 = new ChangelogEntry("6.8", releaseDate61, list128); - ref ChangelogEntry reference129 = ref span[61]; - DateOnly releaseDate62 = new DateOnly(2025, 8, 27); - num2 = 4; - List list130 = new List(num2); - CollectionsMarshal.SetCount(list130, num2); - Span span72 = CollectionsMarshal.AsSpan(list130); - ref ChangeEntry reference130 = ref span72[0]; - num3 = 2; - List list131 = new List(num3); - CollectionsMarshal.SetCount(list131, num3); - Span span73 = CollectionsMarshal.AsSpan(list131); - span73[0] = "Icon to 'Clear All' button in stop conditions"; - span73[1] = "Duty counts and 'Enable All' button in 'Duties' tab"; - reference130 = new ChangeEntry(EChangeCategory.Added, "UI improvements", list131); - span72[1] = new ChangeEntry(EChangeCategory.Changed, "Renamed 'Clear' button to 'Clear All' in priority window"); - span72[2] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added Rising 2025 Event Quests"); - span72[3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed clipboard assigning blacklist to whitelist in 'Duties' tab"); - reference129 = new ChangelogEntry("6.7", releaseDate62, list130); - ref ChangelogEntry reference131 = ref span[62]; - DateOnly releaseDate63 = new DateOnly(2025, 8, 25); - num2 = 2; - List list132 = new List(num2); - CollectionsMarshal.SetCount(list132, num2); - Span span74 = CollectionsMarshal.AsSpan(list132); - ref ChangeEntry reference132 = ref span74[0]; - num3 = 2; - List list133 = new List(num3); - CollectionsMarshal.SetCount(list133, num3); - Span span75 = CollectionsMarshal.AsSpan(list133); - span75[0] = "Missing emotes to schema and emote handler"; - span75[1] = "Improved stop conditions with 'Clear All' button"; - reference132 = new ChangeEntry(EChangeCategory.Added, "Emote support and stop conditions", list133); - span74[1] = new ChangeEntry(EChangeCategory.Changed, "Stop at level functionality"); - reference131 = new ChangelogEntry("6.6", releaseDate63, list132); - ref ChangelogEntry reference133 = ref span[63]; - DateOnly releaseDate64 = new DateOnly(2025, 8, 25); - num2 = 2; - List list134 = new List(num2); - CollectionsMarshal.SetCount(list134, num2); - Span span76 = CollectionsMarshal.AsSpan(list134); - span76[0] = new ChangeEntry(EChangeCategory.Fixed, "Potential fix to single/solo duties softlocking"); - span76[1] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added San d'Oria: The Second Walk and various side quests"); - reference133 = new ChangelogEntry("6.5", releaseDate64, list134); + Span span126 = CollectionsMarshal.AsSpan(list126); + index = 0; + ref ChangeEntry reference126 = ref span126[index]; + num4 = 2; + List list127 = new List(num4); + CollectionsMarshal.SetCount(list127, num4); + Span span127 = CollectionsMarshal.AsSpan(list127); + index2 = 0; + span127[index2] = "Missing emotes to schema and emote handler"; + index2++; + span127[index2] = "Improved stop conditions with 'Clear All' button"; + reference126 = new ChangeEntry(EChangeCategory.Added, "Emote support and stop conditions", list127); + index++; + span126[index] = new ChangeEntry(EChangeCategory.Changed, "Stop at level functionality"); + reference125 = new ChangelogEntry("6.6", releaseDate61, list126); + num2++; + ref ChangelogEntry reference127 = ref span[num2]; + DateOnly releaseDate62 = new DateOnly(2025, 8, 25); + index = 2; + List list128 = new List(index); + CollectionsMarshal.SetCount(list128, index); + Span span128 = CollectionsMarshal.AsSpan(list128); + num3 = 0; + span128[num3] = new ChangeEntry(EChangeCategory.Fixed, "Potential fix to single/solo duties softlocking"); + num3++; + span128[num3] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added San d'Oria: The Second Walk and various side quests"); + reference127 = new ChangelogEntry("6.5", releaseDate62, list128); Changelogs = list; } } diff --git a/Questionable/Questionable.Data/QuestData.cs b/Questionable/Questionable.Data/QuestData.cs index d7776c2..c406f63 100644 --- a/Questionable/Questionable.Data/QuestData.cs +++ b/Questionable/Questionable.Data/QuestData.cs @@ -119,21 +119,36 @@ internal sealed class QuestData List list2 = new List(num); CollectionsMarshal.SetCount(list2, num); Span span = CollectionsMarshal.AsSpan(list2); - span[0] = new AethernetQuestInfo(new AethernetId(1), "Limsa Lominsa"); - span[1] = new AethernetQuestInfo(new AethernetId(2), "Gridania"); - span[2] = new AethernetQuestInfo(new AethernetId(3), "Ul'dah"); - span[3] = new AethernetQuestInfo(new AethernetId(4), "The Gold Saucer"); - span[4] = new AethernetQuestInfo(new AethernetId(5), "Ishgard"); - span[5] = new AethernetQuestInfo(new AethernetId(6), "Idyllshire"); - span[6] = new AethernetQuestInfo(new AethernetId(7), "Rhalgr's Reach"); - span[7] = new AethernetQuestInfo(new AethernetId(8), "Kugane"); - span[8] = new AethernetQuestInfo(new AethernetId(9), "Doman Enclave"); - span[9] = new AethernetQuestInfo(new AethernetId(10), "The Crystarium"); - span[10] = new AethernetQuestInfo(new AethernetId(11), "Eulmore"); - span[11] = new AethernetQuestInfo(new AethernetId(12), "Old Sharlayan"); - span[12] = new AethernetQuestInfo(new AethernetId(13), "Radz-at-Han"); - span[13] = new AethernetQuestInfo(new AethernetId(14), "Tuliyollal"); - span[14] = new AethernetQuestInfo(new AethernetId(15), "Solution Nine"); + int num2 = 0; + span[num2] = new AethernetQuestInfo(new AethernetId(1), "Limsa Lominsa"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(2), "Gridania"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(3), "Ul'dah"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(4), "The Gold Saucer"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(5), "Ishgard"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(6), "Idyllshire"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(7), "Rhalgr's Reach"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(8), "Kugane"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(9), "Doman Enclave"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(10), "The Crystarium"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(11), "Eulmore"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(12), "Old Sharlayan"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(13), "Radz-at-Han"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(14), "Tuliyollal"); + num2++; + span[num2] = new AethernetQuestInfo(new AethernetId(15), "Solution Nine"); List collection = list2; List collection2 = new List(); quests.AddRange(collection); @@ -320,10 +335,12 @@ internal sealed class QuestData throw new ArgumentOutOfRangeException("classJob"); case EClassJob.Gladiator: { - int num = 1; - List list43 = new List(num); - CollectionsMarshal.SetCount(list43, num); - CollectionsMarshal.AsSpan(list43)[0] = 63u; + int num2 = 1; + List list43 = new List(num2); + CollectionsMarshal.SetCount(list43, num2); + Span span42 = CollectionsMarshal.AsSpan(list43); + int num = 0; + span42[num] = 63u; list2 = list43; break; } @@ -332,19 +349,24 @@ internal sealed class QuestData int num = 3; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - Span span27 = CollectionsMarshal.AsSpan(list42); - span27[0] = 72u; - span27[1] = 73u; - span27[2] = 74u; + Span span41 = CollectionsMarshal.AsSpan(list42); + int num2 = 0; + span41[num2] = 72u; + num2++; + span41[num2] = 73u; + num2++; + span41[num2] = 74u; list2 = list42; break; } case EClassJob.Marauder: { - int num = 1; - List list41 = new List(num); - CollectionsMarshal.SetCount(list41, num); - CollectionsMarshal.AsSpan(list41)[0] = 64u; + int num2 = 1; + List list41 = new List(num2); + CollectionsMarshal.SetCount(list41, num2); + Span span40 = CollectionsMarshal.AsSpan(list41); + int num = 0; + span40[num] = 64u; list2 = list41; break; } @@ -353,19 +375,24 @@ internal sealed class QuestData int num = 3; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - Span span26 = CollectionsMarshal.AsSpan(list40); - span26[0] = 76u; - span26[1] = 77u; - span26[2] = 78u; + Span span39 = CollectionsMarshal.AsSpan(list40); + int num2 = 0; + span39[num2] = 76u; + num2++; + span39[num2] = 77u; + num2++; + span39[num2] = 78u; list2 = list40; break; } case EClassJob.Conjurer: { - int num = 1; - List list39 = new List(num); - CollectionsMarshal.SetCount(list39, num); - CollectionsMarshal.AsSpan(list39)[0] = 65u; + int num2 = 1; + List list39 = new List(num2); + CollectionsMarshal.SetCount(list39, num2); + Span span38 = CollectionsMarshal.AsSpan(list39); + int num = 0; + span38[num] = 65u; list2 = list39; break; } @@ -374,19 +401,24 @@ internal sealed class QuestData int num = 3; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span25 = CollectionsMarshal.AsSpan(list38); - span25[0] = 86u; - span25[1] = 87u; - span25[2] = 88u; + Span span37 = CollectionsMarshal.AsSpan(list38); + int num2 = 0; + span37[num2] = 86u; + num2++; + span37[num2] = 87u; + num2++; + span37[num2] = 88u; list2 = list38; break; } case EClassJob.Arcanist: { - int num = 1; - List list37 = new List(num); - CollectionsMarshal.SetCount(list37, num); - CollectionsMarshal.AsSpan(list37)[0] = 66u; + int num2 = 1; + List list37 = new List(num2); + CollectionsMarshal.SetCount(list37, num2); + Span span36 = CollectionsMarshal.AsSpan(list37); + int num = 0; + span36[num] = 66u; list2 = list37; break; } @@ -395,22 +427,28 @@ internal sealed class QuestData int num = 3; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span24 = CollectionsMarshal.AsSpan(list36); - span24[0] = 127u; - span24[1] = 128u; - span24[2] = 129u; + Span span35 = CollectionsMarshal.AsSpan(list36); + int num2 = 0; + span35[num2] = 127u; + num2++; + span35[num2] = 128u; + num2++; + span35[num2] = 129u; list2 = list36; break; } case EClassJob.Scholar: { - int num = 3; - List list35 = new List(num); - CollectionsMarshal.SetCount(list35, num); - Span span23 = CollectionsMarshal.AsSpan(list35); - span23[0] = 90u; - span23[1] = 91u; - span23[2] = 92u; + int num2 = 3; + List list35 = new List(num2); + CollectionsMarshal.SetCount(list35, num2); + Span span34 = CollectionsMarshal.AsSpan(list35); + int num = 0; + span34[num] = 90u; + num++; + span34[num] = 91u; + num++; + span34[num] = 92u; list2 = list35; break; } @@ -419,19 +457,24 @@ internal sealed class QuestData int num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - CollectionsMarshal.AsSpan(list34)[0] = 67u; + Span span33 = CollectionsMarshal.AsSpan(list34); + int num2 = 0; + span33[num2] = 67u; list2 = list34; break; } case EClassJob.Monk: { - int num = 3; - List list33 = new List(num); - CollectionsMarshal.SetCount(list33, num); - Span span22 = CollectionsMarshal.AsSpan(list33); - span22[0] = 98u; - span22[1] = 99u; - span22[2] = 100u; + int num2 = 3; + List list33 = new List(num2); + CollectionsMarshal.SetCount(list33, num2); + Span span32 = CollectionsMarshal.AsSpan(list33); + int num = 0; + span32[num] = 98u; + num++; + span32[num] = 99u; + num++; + span32[num] = 100u; list2 = list33; break; } @@ -440,19 +483,24 @@ internal sealed class QuestData int num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - CollectionsMarshal.AsSpan(list32)[0] = 68u; + Span span31 = CollectionsMarshal.AsSpan(list32); + int num2 = 0; + span31[num2] = 68u; list2 = list32; break; } case EClassJob.Dragoon: { - int num = 3; - List list31 = new List(num); - CollectionsMarshal.SetCount(list31, num); - Span span21 = CollectionsMarshal.AsSpan(list31); - span21[0] = 102u; - span21[1] = 103u; - span21[2] = 104u; + int num2 = 3; + List list31 = new List(num2); + CollectionsMarshal.SetCount(list31, num2); + Span span30 = CollectionsMarshal.AsSpan(list31); + int num = 0; + span30[num] = 102u; + num++; + span30[num] = 103u; + num++; + span30[num] = 104u; list2 = list31; break; } @@ -461,19 +509,24 @@ internal sealed class QuestData int num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - CollectionsMarshal.AsSpan(list30)[0] = 69u; + Span span29 = CollectionsMarshal.AsSpan(list30); + int num2 = 0; + span29[num2] = 69u; list2 = list30; break; } case EClassJob.Ninja: { - int num = 3; - List list29 = new List(num); - CollectionsMarshal.SetCount(list29, num); - Span span20 = CollectionsMarshal.AsSpan(list29); - span20[0] = 106u; - span20[1] = 107u; - span20[2] = 108u; + int num2 = 3; + List list29 = new List(num2); + CollectionsMarshal.SetCount(list29, num2); + Span span28 = CollectionsMarshal.AsSpan(list29); + int num = 0; + span28[num] = 106u; + num++; + span28[num] = 107u; + num++; + span28[num] = 108u; list2 = list29; break; } @@ -482,19 +535,24 @@ internal sealed class QuestData int num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - CollectionsMarshal.AsSpan(list28)[0] = 70u; + Span span27 = CollectionsMarshal.AsSpan(list28); + int num2 = 0; + span27[num2] = 70u; list2 = list28; break; } case EClassJob.Bard: { - int num = 3; - List list27 = new List(num); - CollectionsMarshal.SetCount(list27, num); - Span span19 = CollectionsMarshal.AsSpan(list27); - span19[0] = 113u; - span19[1] = 114u; - span19[2] = 115u; + int num2 = 3; + List list27 = new List(num2); + CollectionsMarshal.SetCount(list27, num2); + Span span26 = CollectionsMarshal.AsSpan(list27); + int num = 0; + span26[num] = 113u; + num++; + span26[num] = 114u; + num++; + span26[num] = 115u; list2 = list27; break; } @@ -503,19 +561,24 @@ internal sealed class QuestData int num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - CollectionsMarshal.AsSpan(list26)[0] = 71u; + Span span25 = CollectionsMarshal.AsSpan(list26); + int num2 = 0; + span25[num2] = 71u; list2 = list26; break; } case EClassJob.BlackMage: { - int num = 3; - List list25 = new List(num); - CollectionsMarshal.SetCount(list25, num); - Span span18 = CollectionsMarshal.AsSpan(list25); - span18[0] = 123u; - span18[1] = 124u; - span18[2] = 125u; + int num2 = 3; + List list25 = new List(num2); + CollectionsMarshal.SetCount(list25, num2); + Span span24 = CollectionsMarshal.AsSpan(list25); + int num = 0; + span24[num] = 123u; + num++; + span24[num] = 124u; + num++; + span24[num] = 125u; list2 = list25; break; } @@ -524,22 +587,28 @@ internal sealed class QuestData int num = 3; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span17 = CollectionsMarshal.AsSpan(list24); - span17[0] = 80u; - span17[1] = 81u; - span17[2] = 82u; + Span span23 = CollectionsMarshal.AsSpan(list24); + int num2 = 0; + span23[num2] = 80u; + num2++; + span23[num2] = 81u; + num2++; + span23[num2] = 82u; list2 = list24; break; } case EClassJob.Astrologian: { - int num = 3; - List list23 = new List(num); - CollectionsMarshal.SetCount(list23, num); - Span span16 = CollectionsMarshal.AsSpan(list23); - span16[0] = 94u; - span16[1] = 95u; - span16[2] = 96u; + int num2 = 3; + List list23 = new List(num2); + CollectionsMarshal.SetCount(list23, num2); + Span span22 = CollectionsMarshal.AsSpan(list23); + int num = 0; + span22[num] = 94u; + num++; + span22[num] = 95u; + num++; + span22[num] = 96u; list2 = list23; break; } @@ -548,21 +617,26 @@ internal sealed class QuestData int num = 3; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span15 = CollectionsMarshal.AsSpan(list22); - span15[0] = 117u; - span15[1] = 118u; - span15[2] = 119u; + Span span21 = CollectionsMarshal.AsSpan(list22); + int num2 = 0; + span21[num2] = 117u; + num2++; + span21[num2] = 118u; + num2++; + span21[num2] = 119u; list2 = list22; break; } case EClassJob.Samurai: { - int num = 2; - List list21 = new List(num); - CollectionsMarshal.SetCount(list21, num); - Span span14 = CollectionsMarshal.AsSpan(list21); - span14[0] = 110u; - span14[1] = 111u; + int num2 = 2; + List list21 = new List(num2); + CollectionsMarshal.SetCount(list21, num2); + Span span20 = CollectionsMarshal.AsSpan(list21); + int num = 0; + span20[num] = 110u; + num++; + span20[num] = 111u; list2 = list21; break; } @@ -571,22 +645,28 @@ internal sealed class QuestData int num = 2; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span13 = CollectionsMarshal.AsSpan(list20); - span13[0] = 131u; - span13[1] = 132u; + Span span19 = CollectionsMarshal.AsSpan(list20); + int num2 = 0; + span19[num2] = 131u; + num2++; + span19[num2] = 132u; list2 = list20; break; } case EClassJob.BlueMage: { - int num = 4; - List list19 = new List(num); - CollectionsMarshal.SetCount(list19, num); - Span span12 = CollectionsMarshal.AsSpan(list19); - span12[0] = 134u; - span12[1] = 135u; - span12[2] = 146u; - span12[3] = 170u; + int num2 = 4; + List list19 = new List(num2); + CollectionsMarshal.SetCount(list19, num2); + Span span18 = CollectionsMarshal.AsSpan(list19); + int num = 0; + span18[num] = 134u; + num++; + span18[num] = 135u; + num++; + span18[num] = 146u; + num++; + span18[num] = 170u; list2 = list19; break; } @@ -595,16 +675,20 @@ internal sealed class QuestData int num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - CollectionsMarshal.AsSpan(list18)[0] = 84u; + Span span17 = CollectionsMarshal.AsSpan(list18); + int num2 = 0; + span17[num2] = 84u; list2 = list18; break; } case EClassJob.Dancer: { - int num = 1; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - CollectionsMarshal.AsSpan(list17)[0] = 121u; + int num2 = 1; + List list17 = new List(num2); + CollectionsMarshal.SetCount(list17, num2); + Span span16 = CollectionsMarshal.AsSpan(list17); + int num = 0; + span16[num] = 121u; list2 = list17; break; } @@ -613,16 +697,20 @@ internal sealed class QuestData int num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - CollectionsMarshal.AsSpan(list16)[0] = 152u; + Span span15 = CollectionsMarshal.AsSpan(list16); + int num2 = 0; + span15[num2] = 152u; list2 = list16; break; } case EClassJob.Reaper: { - int num = 1; - List list15 = new List(num); - CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = 153u; + int num2 = 1; + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + Span span14 = CollectionsMarshal.AsSpan(list15); + int num = 0; + span14[num] = 153u; list2 = list15; break; } @@ -631,16 +719,20 @@ internal sealed class QuestData int num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = 176u; + Span span13 = CollectionsMarshal.AsSpan(list14); + int num2 = 0; + span13[num2] = 176u; list2 = list14; break; } case EClassJob.Pictomancer: { - int num = 1; - List list13 = new List(num); - CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = 177u; + int num2 = 1; + List list13 = new List(num2); + CollectionsMarshal.SetCount(list13, num2); + Span span12 = CollectionsMarshal.AsSpan(list13); + int num = 0; + span12[num] = 177u; list2 = list13; break; } @@ -650,21 +742,27 @@ internal sealed class QuestData List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); Span span11 = CollectionsMarshal.AsSpan(list12); - span11[0] = 48u; - span11[1] = 49u; - span11[2] = 50u; + int num2 = 0; + span11[num2] = 48u; + num2++; + span11[num2] = 49u; + num2++; + span11[num2] = 50u; list2 = list12; break; } case EClassJob.Armorer: { - int num = 3; - List list11 = new List(num); - CollectionsMarshal.SetCount(list11, num); + int num2 = 3; + List list11 = new List(num2); + CollectionsMarshal.SetCount(list11, num2); Span span10 = CollectionsMarshal.AsSpan(list11); - span10[0] = 36u; - span10[1] = 37u; - span10[2] = 38u; + int num = 0; + span10[num] = 36u; + num++; + span10[num] = 37u; + num++; + span10[num] = 38u; list2 = list11; break; } @@ -674,21 +772,27 @@ internal sealed class QuestData List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); Span span9 = CollectionsMarshal.AsSpan(list10); - span9[0] = 33u; - span9[1] = 34u; - span9[2] = 35u; + int num2 = 0; + span9[num2] = 33u; + num2++; + span9[num2] = 34u; + num2++; + span9[num2] = 35u; list2 = list10; break; } case EClassJob.Carpenter: { - int num = 3; - List list9 = new List(num); - CollectionsMarshal.SetCount(list9, num); + int num2 = 3; + List list9 = new List(num2); + CollectionsMarshal.SetCount(list9, num2); Span span8 = CollectionsMarshal.AsSpan(list9); - span8[0] = 30u; - span8[1] = 31u; - span8[2] = 32u; + int num = 0; + span8[num] = 30u; + num++; + span8[num] = 31u; + num++; + span8[num] = 32u; list2 = list9; break; } @@ -698,21 +802,27 @@ internal sealed class QuestData List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); Span span7 = CollectionsMarshal.AsSpan(list8); - span7[0] = 51u; - span7[1] = 52u; - span7[2] = 53u; + int num2 = 0; + span7[num2] = 51u; + num2++; + span7[num2] = 52u; + num2++; + span7[num2] = 53u; list2 = list8; break; } case EClassJob.Goldsmith: { - int num = 3; - List list7 = new List(num); - CollectionsMarshal.SetCount(list7, num); + int num2 = 3; + List list7 = new List(num2); + CollectionsMarshal.SetCount(list7, num2); Span span6 = CollectionsMarshal.AsSpan(list7); - span6[0] = 39u; - span6[1] = 40u; - span6[2] = 41u; + int num = 0; + span6[num] = 39u; + num++; + span6[num] = 40u; + num++; + span6[num] = 41u; list2 = list7; break; } @@ -722,21 +832,27 @@ internal sealed class QuestData List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); Span span5 = CollectionsMarshal.AsSpan(list6); - span5[0] = 42u; - span5[1] = 43u; - span5[2] = 44u; + int num2 = 0; + span5[num2] = 42u; + num2++; + span5[num2] = 43u; + num2++; + span5[num2] = 44u; list2 = list6; break; } case EClassJob.Weaver: { - int num = 3; - List list5 = new List(num); - CollectionsMarshal.SetCount(list5, num); + int num2 = 3; + List list5 = new List(num2); + CollectionsMarshal.SetCount(list5, num2); Span span4 = CollectionsMarshal.AsSpan(list5); - span4[0] = 45u; - span4[1] = 46u; - span4[2] = 47u; + int num = 0; + span4[num] = 45u; + num++; + span4[num] = 46u; + num++; + span4[num] = 47u; list2 = list5; break; } @@ -746,21 +862,27 @@ internal sealed class QuestData List list4 = new List(num); CollectionsMarshal.SetCount(list4, num); Span span3 = CollectionsMarshal.AsSpan(list4); - span3[0] = 54u; - span3[1] = 55u; - span3[2] = 56u; + int num2 = 0; + span3[num2] = 54u; + num2++; + span3[num2] = 55u; + num2++; + span3[num2] = 56u; list2 = list4; break; } case EClassJob.Botanist: { - int num = 3; - List list3 = new List(num); - CollectionsMarshal.SetCount(list3, num); + int num2 = 3; + List list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); Span span2 = CollectionsMarshal.AsSpan(list3); - span2[0] = 57u; - span2[1] = 58u; - span2[2] = 59u; + int num = 0; + span2[num] = 57u; + num++; + span2[num] = 58u; + num++; + span2[num] = 59u; list2 = list3; break; } @@ -770,9 +892,12 @@ internal sealed class QuestData List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - span[0] = 60u; - span[1] = 61u; - span[2] = 62u; + int num2 = 0; + span[num2] = 60u; + num2++; + span[num2] = 61u; + num2++; + span[num2] = 62u; list2 = list; break; } @@ -836,188 +961,244 @@ internal sealed class QuestData List> list = new List>(num); CollectionsMarshal.SetCount(list, num); Span> span = CollectionsMarshal.AsSpan(list); - ref List reference = ref span[0]; + int num2 = 0; + ref List reference = ref span[num2]; List list2; if (eClassJob != EClassJob.Gladiator) { - int num2 = 2; - list2 = new List(num2); - CollectionsMarshal.SetCount(list2, num2); + int num3 = 2; + list2 = new List(num3); + CollectionsMarshal.SetCount(list2, num3); Span span2 = CollectionsMarshal.AsSpan(list2); - span2[0] = 253; - span2[1] = 261; + int num4 = 0; + span2[num4] = 253; + num4++; + span2[num4] = 261; } else { - int num2 = 4; - list2 = new List(num2); - CollectionsMarshal.SetCount(list2, num2); + int num4 = 4; + list2 = new List(num4); + CollectionsMarshal.SetCount(list2, num4); Span span3 = CollectionsMarshal.AsSpan(list2); - span3[0] = 177; - span3[1] = 285; - span3[2] = 286; - span3[3] = 288; + int num3 = 0; + span3[num3] = 177; + num3++; + span3[num3] = 285; + num3++; + span3[num3] = 286; + num3++; + span3[num3] = 288; } reference = list2; - ref List reference2 = ref span[1]; + num2++; + ref List reference2 = ref span[num2]; List list3; if (eClassJob != EClassJob.Pugilist) { - int num2 = 2; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); + int num3 = 2; + list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); Span span4 = CollectionsMarshal.AsSpan(list3); - span4[0] = 533; - span4[1] = 555; + int num4 = 0; + span4[num4] = 533; + num4++; + span4[num4] = 555; } else { - int num2 = 4; - list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); + int num4 = 4; + list3 = new List(num4); + CollectionsMarshal.SetCount(list3, num4); Span span5 = CollectionsMarshal.AsSpan(list3); - span5[0] = 178; - span5[1] = 532; - span5[2] = 553; - span5[3] = 698; + int num3 = 0; + span5[num3] = 178; + num3++; + span5[num3] = 532; + num3++; + span5[num3] = 553; + num3++; + span5[num3] = 698; } reference2 = list3; - ref List reference3 = ref span[2]; + num2++; + ref List reference3 = ref span[num2]; List list4; if (eClassJob != EClassJob.Marauder) { - int num2 = 2; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); + int num3 = 2; + list4 = new List(num3); + CollectionsMarshal.SetCount(list4, num3); Span span6 = CollectionsMarshal.AsSpan(list4); - span6[0] = 311; - span6[1] = 314; + int num4 = 0; + span6[num4] = 311; + num4++; + span6[num4] = 314; } else { - int num2 = 4; - list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); + int num4 = 4; + list4 = new List(num4); + CollectionsMarshal.SetCount(list4, num4); Span span7 = CollectionsMarshal.AsSpan(list4); - span7[0] = 179; - span7[1] = 310; - span7[2] = 312; - span7[3] = 315; + int num3 = 0; + span7[num3] = 179; + num3++; + span7[num3] = 310; + num3++; + span7[num3] = 312; + num3++; + span7[num3] = 315; } reference3 = list4; - ref List reference4 = ref span[3]; + num2++; + ref List reference4 = ref span[num2]; List list5; if (eClassJob != EClassJob.Lancer) { - int num2 = 2; - list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); + int num3 = 2; + list5 = new List(num3); + CollectionsMarshal.SetCount(list5, num3); Span span8 = CollectionsMarshal.AsSpan(list5); - span8[0] = 23; - span8[1] = 35; + int num4 = 0; + span8[num4] = 23; + num4++; + span8[num4] = 35; } else { - int num2 = 4; - list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); + int num4 = 4; + list5 = new List(num4); + CollectionsMarshal.SetCount(list5, num4); Span span9 = CollectionsMarshal.AsSpan(list5); - span9[0] = 180; - span9[1] = 132; - span9[2] = 218; - span9[3] = 143; + int num3 = 0; + span9[num3] = 180; + num3++; + span9[num3] = 132; + num3++; + span9[num3] = 218; + num3++; + span9[num3] = 143; } reference4 = list5; - ref List reference5 = ref span[4]; + num2++; + ref List reference5 = ref span[num2]; List list6; if (eClassJob != EClassJob.Archer) { - int num2 = 2; - list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); + int num3 = 2; + list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); Span span10 = CollectionsMarshal.AsSpan(list6); - span10[0] = 21; - span10[1] = 67; + int num4 = 0; + span10[num4] = 21; + num4++; + span10[num4] = 67; } else { - int num2 = 4; - list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); + int num4 = 4; + list6 = new List(num4); + CollectionsMarshal.SetCount(list6, num4); Span span11 = CollectionsMarshal.AsSpan(list6); - span11[0] = 181; - span11[1] = 131; - span11[2] = 219; - span11[3] = 134; + int num3 = 0; + span11[num3] = 181; + num3++; + span11[num3] = 131; + num3++; + span11[num3] = 219; + num3++; + span11[num3] = 134; } reference5 = list6; - ref List reference6 = ref span[5]; + num2++; + ref List reference6 = ref span[num2]; List list7; if (eClassJob != EClassJob.Conjurer) { - int num2 = 2; - list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); + int num3 = 2; + list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); Span span12 = CollectionsMarshal.AsSpan(list7); - span12[0] = 22; - span12[1] = 91; + int num4 = 0; + span12[num4] = 22; + num4++; + span12[num4] = 91; } else { - int num2 = 4; - list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); + int num4 = 4; + list7 = new List(num4); + CollectionsMarshal.SetCount(list7, num4); Span span13 = CollectionsMarshal.AsSpan(list7); - span13[0] = 182; - span13[1] = 133; - span13[2] = 211; - span13[3] = 147; + int num3 = 0; + span13[num3] = 182; + num3++; + span13[num3] = 133; + num3++; + span13[num3] = 211; + num3++; + span13[num3] = 147; } reference6 = list7; - ref List reference7 = ref span[6]; + num2++; + ref List reference7 = ref span[num2]; List list8; if (eClassJob != EClassJob.Thaumaturge) { - int num2 = 2; - list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); + int num3 = 2; + list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); Span span14 = CollectionsMarshal.AsSpan(list8); - span14[0] = 345; - span14[1] = 348; + int num4 = 0; + span14[num4] = 345; + num4++; + span14[num4] = 348; } else { - int num2 = 4; - list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); + int num4 = 4; + list8 = new List(num4); + CollectionsMarshal.SetCount(list8, num4); Span span15 = CollectionsMarshal.AsSpan(list8); - span15[0] = 183; - span15[1] = 344; - span15[2] = 346; - span15[3] = 349; + int num3 = 0; + span15[num3] = 183; + num3++; + span15[num3] = 344; + num3++; + span15[num3] = 346; + num3++; + span15[num3] = 349; } reference7 = list8; - ref List reference8 = ref span[7]; + num2++; + ref List reference8 = ref span[num2]; List list9; if (eClassJob != EClassJob.Arcanist) { - int num2 = 2; - list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); + int num3 = 2; + list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); Span span16 = CollectionsMarshal.AsSpan(list9); - span16[0] = 453; - span16[1] = 456; + int num4 = 0; + span16[num4] = 453; + num4++; + span16[num4] = 456; } else { - int num2 = 4; - list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); + int num4 = 4; + list9 = new List(num4); + CollectionsMarshal.SetCount(list9, num4); Span span17 = CollectionsMarshal.AsSpan(list9); - span17[0] = 451; - span17[1] = 452; - span17[2] = 454; - span17[3] = 457; + int num3 = 0; + span17[num3] = 451; + num3++; + span17[num3] = 452; + num3++; + span17[num3] = 454; + num3++; + span17[num3] = 457; } reference8 = list9; return (from x in list.SelectMany((List x) => x) @@ -1056,262 +1237,378 @@ internal sealed class QuestData List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - span[0] = 1744; - span[1] = 1759; - span[2] = 1760; - span[3] = 2111; + int num2 = 0; + span[num2] = 1744; + num2++; + span[num2] = 1759; + num2++; + span[num2] = 1760; + num2++; + span[num2] = 2111; dictionary.Add(397u, list); - num = 4; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); + num2 = 4; + List list2 = new List(num2); + CollectionsMarshal.SetCount(list2, num2); Span span2 = CollectionsMarshal.AsSpan(list2); - span2[0] = 1771; - span2[1] = 1790; - span2[2] = 1797; - span2[3] = 1802; + num = 0; + span2[num] = 1771; + num++; + span2[num] = 1790; + num++; + span2[num] = 1797; + num++; + span2[num] = 1802; dictionary.Add(398u, list2); num = 4; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); Span span3 = CollectionsMarshal.AsSpan(list3); - span3[0] = 1936; - span3[1] = 1945; - span3[2] = 1963; - span3[3] = 1966; + num2 = 0; + span3[num2] = 1936; + num2++; + span3[num2] = 1945; + num2++; + span3[num2] = 1963; + num2++; + span3[num2] = 1966; dictionary.Add(399u, list3); - num = 4; - List list4 = new List(num); - CollectionsMarshal.SetCount(list4, num); + num2 = 4; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); Span span4 = CollectionsMarshal.AsSpan(list4); - span4[0] = 1819; - span4[1] = 1823; - span4[2] = 1828; - span4[3] = 1835; + num = 0; + span4[num] = 1819; + num++; + span4[num] = 1823; + num++; + span4[num] = 1828; + num++; + span4[num] = 1835; dictionary.Add(400u, list4); num = 4; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); Span span5 = CollectionsMarshal.AsSpan(list5); - span5[0] = 1748; - span5[1] = 1874; - span5[2] = 1909; - span5[3] = 1910; + num2 = 0; + span5[num2] = 1748; + num2++; + span5[num2] = 1874; + num2++; + span5[num2] = 1909; + num2++; + span5[num2] = 1910; dictionary.Add(401u, list5); - num = 4; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); + num2 = 4; + List list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); Span span6 = CollectionsMarshal.AsSpan(list6); - span6[0] = 2639; - span6[1] = 2661; - span6[2] = 2816; - span6[3] = 2821; + num = 0; + span6[num] = 2639; + num++; + span6[num] = 2661; + num++; + span6[num] = 2816; + num++; + span6[num] = 2821; dictionary.Add(612u, list6); num = 4; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); Span span7 = CollectionsMarshal.AsSpan(list7); - span7[0] = 2632; - span7[1] = 2673; - span7[2] = 2687; - span7[3] = 2693; + num2 = 0; + span7[num2] = 2632; + num2++; + span7[num2] = 2673; + num2++; + span7[num2] = 2687; + num2++; + span7[num2] = 2693; dictionary.Add(613u, list7); - num = 4; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); + num2 = 4; + List list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); Span span8 = CollectionsMarshal.AsSpan(list8); - span8[0] = 2724; - span8[1] = 2728; - span8[2] = 2730; - span8[3] = 2733; + num = 0; + span8[num] = 2724; + num++; + span8[num] = 2728; + num++; + span8[num] = 2730; + num++; + span8[num] = 2733; dictionary.Add(614u, list8); num = 4; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); Span span9 = CollectionsMarshal.AsSpan(list9); - span9[0] = 2655; - span9[1] = 2842; - span9[2] = 2851; - span9[3] = 2860; + num2 = 0; + span9[num2] = 2655; + num2++; + span9[num2] = 2842; + num2++; + span9[num2] = 2851; + num2++; + span9[num2] = 2860; dictionary.Add(620u, list9); - num = 4; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); + num2 = 4; + List list10 = new List(num2); + CollectionsMarshal.SetCount(list10, num2); Span span10 = CollectionsMarshal.AsSpan(list10); - span10[0] = 2877; - span10[1] = 2880; - span10[2] = 2881; - span10[3] = 2883; + num = 0; + span10[num] = 2877; + num++; + span10[num] = 2880; + num++; + span10[num] = 2881; + num++; + span10[num] = 2883; dictionary.Add(621u, list10); num = 4; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); Span span11 = CollectionsMarshal.AsSpan(list11); - span11[0] = 2760; - span11[1] = 2771; - span11[2] = 2782; - span11[3] = 2791; + num2 = 0; + span11[num2] = 2760; + num2++; + span11[num2] = 2771; + num2++; + span11[num2] = 2782; + num2++; + span11[num2] = 2791; dictionary.Add(622u, list11); - num = 4; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); + num2 = 4; + List list12 = new List(num2); + CollectionsMarshal.SetCount(list12, num2); Span span12 = CollectionsMarshal.AsSpan(list12); - span12[0] = 3380; - span12[1] = 3384; - span12[2] = 3385; - span12[3] = 3386; + num = 0; + span12[num] = 3380; + num++; + span12[num] = 3384; + num++; + span12[num] = 3385; + num++; + span12[num] = 3386; dictionary.Add(813u, list12); num = 4; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); Span span13 = CollectionsMarshal.AsSpan(list13); - span13[0] = 3360; - span13[1] = 3371; - span13[2] = 3537; - span13[3] = 3556; + num2 = 0; + span13[num2] = 3360; + num2++; + span13[num2] = 3371; + num2++; + span13[num2] = 3537; + num2++; + span13[num2] = 3556; dictionary.Add(814u, list13); - num = 4; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); + num2 = 4; + List list14 = new List(num2); + CollectionsMarshal.SetCount(list14, num2); Span span14 = CollectionsMarshal.AsSpan(list14); - span14[0] = 3375; - span14[1] = 3503; - span14[2] = 3511; - span14[3] = 3525; + num = 0; + span14[num] = 3375; + num++; + span14[num] = 3503; + num++; + span14[num] = 3511; + num++; + span14[num] = 3525; dictionary.Add(815u, list14); num = 4; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); Span span15 = CollectionsMarshal.AsSpan(list15); - span15[0] = 3395; - span15[1] = 3398; - span15[2] = 3404; - span15[3] = 3427; + num2 = 0; + span15[num2] = 3395; + num2++; + span15[num2] = 3398; + num2++; + span15[num2] = 3404; + num2++; + span15[num2] = 3427; dictionary.Add(816u, list15); - num = 4; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); + num2 = 4; + List list16 = new List(num2); + CollectionsMarshal.SetCount(list16, num2); Span span16 = CollectionsMarshal.AsSpan(list16); - span16[0] = 3444; - span16[1] = 3467; - span16[2] = 3478; - span16[3] = 3656; + num = 0; + span16[num] = 3444; + num++; + span16[num] = 3467; + num++; + span16[num] = 3478; + num++; + span16[num] = 3656; dictionary.Add(817u, list16); num = 4; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); Span span17 = CollectionsMarshal.AsSpan(list17); - span17[0] = 3588; - span17[1] = 3592; - span17[2] = 3593; - span17[3] = 3594; + num2 = 0; + span17[num2] = 3588; + num2++; + span17[num2] = 3592; + num2++; + span17[num2] = 3593; + num2++; + span17[num2] = 3594; dictionary.Add(818u, list17); - num = 4; - List list18 = new List(num); - CollectionsMarshal.SetCount(list18, num); + num2 = 4; + List list18 = new List(num2); + CollectionsMarshal.SetCount(list18, num2); Span span18 = CollectionsMarshal.AsSpan(list18); - span18[0] = 4320; - span18[1] = 4329; - span18[2] = 4480; - span18[3] = 4484; + num = 0; + span18[num] = 4320; + num++; + span18[num] = 4329; + num++; + span18[num] = 4480; + num++; + span18[num] = 4484; dictionary.Add(956u, list18); num = 4; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); Span span19 = CollectionsMarshal.AsSpan(list19); - span19[0] = 4203; - span19[1] = 4257; - span19[2] = 4259; - span19[3] = 4489; + num2 = 0; + span19[num2] = 4203; + num2++; + span19[num2] = 4257; + num2++; + span19[num2] = 4259; + num2++; + span19[num2] = 4489; dictionary.Add(957u, list19); - num = 4; - List list20 = new List(num); - CollectionsMarshal.SetCount(list20, num); + num2 = 4; + List list20 = new List(num2); + CollectionsMarshal.SetCount(list20, num2); Span span20 = CollectionsMarshal.AsSpan(list20); - span20[0] = 4216; - span20[1] = 4232; - span20[2] = 4498; - span20[3] = 4502; + num = 0; + span20[num] = 4216; + num++; + span20[num] = 4232; + num++; + span20[num] = 4498; + num++; + span20[num] = 4502; dictionary.Add(958u, list20); num = 4; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); Span span21 = CollectionsMarshal.AsSpan(list21); - span21[0] = 4240; - span21[1] = 4241; - span21[2] = 4253; - span21[3] = 4516; + num2 = 0; + span21[num2] = 4240; + num2++; + span21[num2] = 4241; + num2++; + span21[num2] = 4253; + num2++; + span21[num2] = 4516; dictionary.Add(959u, list21); - num = 4; - List list22 = new List(num); - CollectionsMarshal.SetCount(list22, num); + num2 = 4; + List list22 = new List(num2); + CollectionsMarshal.SetCount(list22, num2); Span span22 = CollectionsMarshal.AsSpan(list22); - span22[0] = 4342; - span22[1] = 4346; - span22[2] = 4354; - span22[3] = 4355; + num = 0; + span22[num] = 4342; + num++; + span22[num] = 4346; + num++; + span22[num] = 4354; + num++; + span22[num] = 4355; dictionary.Add(960u, list22); num = 4; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); Span span23 = CollectionsMarshal.AsSpan(list23); - span23[0] = 4288; - span23[1] = 4313; - span23[2] = 4507; - span23[3] = 4511; + num2 = 0; + span23[num2] = 4288; + num2++; + span23[num2] = 4313; + num2++; + span23[num2] = 4507; + num2++; + span23[num2] = 4511; dictionary.Add(961u, list23); - num = 4; - List list24 = new List(num); - CollectionsMarshal.SetCount(list24, num); + num2 = 4; + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); Span span24 = CollectionsMarshal.AsSpan(list24); - span24[0] = 5039; - span24[1] = 5047; - span24[2] = 5051; - span24[3] = 5055; + num = 0; + span24[num] = 5039; + num++; + span24[num] = 5047; + num++; + span24[num] = 5051; + num++; + span24[num] = 5055; dictionary.Add(1187u, list24); num = 4; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); Span span25 = CollectionsMarshal.AsSpan(list25); - span25[0] = 5064; - span25[1] = 5074; - span25[2] = 5081; - span25[3] = 5085; + num2 = 0; + span25[num2] = 5064; + num2++; + span25[num2] = 5074; + num2++; + span25[num2] = 5081; + num2++; + span25[num2] = 5085; dictionary.Add(1188u, list25); - num = 4; - List list26 = new List(num); - CollectionsMarshal.SetCount(list26, num); + num2 = 4; + List list26 = new List(num2); + CollectionsMarshal.SetCount(list26, num2); Span span26 = CollectionsMarshal.AsSpan(list26); - span26[0] = 5094; - span26[1] = 5103; - span26[2] = 5110; - span26[3] = 5114; + num = 0; + span26[num] = 5094; + num++; + span26[num] = 5103; + num++; + span26[num] = 5110; + num++; + span26[num] = 5114; dictionary.Add(1189u, list26); num = 4; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); Span span27 = CollectionsMarshal.AsSpan(list27); - span27[0] = 5130; - span27[1] = 5138; - span27[2] = 5140; - span27[3] = 5144; + num2 = 0; + span27[num2] = 5130; + num2++; + span27[num2] = 5138; + num2++; + span27[num2] = 5140; + num2++; + span27[num2] = 5144; dictionary.Add(1190u, list27); - num = 4; - List list28 = new List(num); - CollectionsMarshal.SetCount(list28, num); + num2 = 4; + List list28 = new List(num2); + CollectionsMarshal.SetCount(list28, num2); Span span28 = CollectionsMarshal.AsSpan(list28); - span28[0] = 5153; - span28[1] = 5156; - span28[2] = 5159; - span28[3] = 5160; + num = 0; + span28[num] = 5153; + num++; + span28[num] = 5156; + num++; + span28[num] = 5159; + num++; + span28[num] = 5160; dictionary.Add(1191u, list28); num = 4; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); Span span29 = CollectionsMarshal.AsSpan(list29); - span29[0] = 5174; - span29[1] = 5176; - span29[2] = 5178; - span29[3] = 5179; + num2 = 0; + span29[num2] = 5174; + num2++; + span29[num2] = 5176; + num2++; + span29[num2] = 5178; + num2++; + span29[num2] = 5179; dictionary.Add(1192u, list29); AetherCurrentQuestsByTerritory = dictionary.ToImmutableDictionary((KeyValuePair> x) => x.Key, (KeyValuePair> x) => x.Value.Select((ushort y) => new QuestId(y)).ToImmutableList()); AetherCurrentQuests = AetherCurrentQuestsByTerritory.Values.SelectMany((ImmutableList x) => x).ToImmutableHashSet(); diff --git a/Questionable/Questionable.External/AutomatonIpc.cs b/Questionable/Questionable.External/AutomatonIpc.cs index 5f6eb1b..82e256c 100644 --- a/Questionable/Questionable.External/AutomatonIpc.cs +++ b/Questionable/Questionable.External/AutomatonIpc.cs @@ -28,8 +28,6 @@ internal sealed class AutomatonIpc : IDisposable private readonly FateController _fateController; - private readonly SeasonalDutyController _seasonalDutyController; - private readonly TerritoryData _territoryData; private readonly IClientState _clientState; @@ -46,12 +44,11 @@ internal sealed class AutomatonIpc : IDisposable private bool _wasFateRunning; - public AutomatonIpc(Configuration configuration, IDalamudPluginInterface pluginInterface, QuestController questController, FateController fateController, SeasonalDutyController seasonalDutyController, TerritoryData territoryData, IClientState clientState, IFramework framework, ILogger logger) + public AutomatonIpc(Configuration configuration, IDalamudPluginInterface pluginInterface, QuestController questController, FateController fateController, TerritoryData territoryData, IClientState clientState, IFramework framework, ILogger logger) { _configuration = configuration; _questController = questController; _fateController = fateController; - _seasonalDutyController = seasonalDutyController; _territoryData = territoryData; _clientState = clientState; _framework = framework; @@ -68,7 +65,7 @@ internal sealed class AutomatonIpc : IDisposable { Task.Run((Action)DisableConflictingTweaks); } - else if (!_fateController.IsRunning && !_seasonalDutyController.IsRunning) + else if (!_fateController.IsRunning) { Task.Run((Action)RestoreConflictingTweaks); } @@ -76,11 +73,11 @@ internal sealed class AutomatonIpc : IDisposable private void OnFrameworkUpdate(IFramework framework) { - bool flag = _fateController.IsRunning || _seasonalDutyController.IsRunning; - if (flag != _wasFateRunning) + bool isRunning = _fateController.IsRunning; + if (isRunning != _wasFateRunning) { - _wasFateRunning = flag; - if (flag && !_territoryData.IsDutyInstance(_clientState.TerritoryType)) + _wasFateRunning = isRunning; + if (isRunning && !_territoryData.IsDutyInstance(_clientState.TerritoryType)) { Task.Run((Action)DisableConflictingTweaks); } diff --git a/Questionable/Questionable.External/PandorasBoxIpc.cs b/Questionable/Questionable.External/PandorasBoxIpc.cs index 9a51124..7085393 100644 --- a/Questionable/Questionable.External/PandorasBoxIpc.cs +++ b/Questionable/Questionable.External/PandorasBoxIpc.cs @@ -29,8 +29,6 @@ internal sealed class PandorasBoxIpc : IDisposable private readonly FateController _fateController; - private readonly SeasonalDutyController _seasonalDutyController; - private readonly TerritoryData _territoryData; private readonly IClientState _clientState; @@ -47,12 +45,11 @@ internal sealed class PandorasBoxIpc : IDisposable private bool _wasFateRunning; - public PandorasBoxIpc(Configuration configuration, IDalamudPluginInterface pluginInterface, QuestController questController, FateController fateController, SeasonalDutyController seasonalDutyController, TerritoryData territoryData, IClientState clientState, IFramework framework, ILogger logger) + public PandorasBoxIpc(Configuration configuration, IDalamudPluginInterface pluginInterface, QuestController questController, FateController fateController, TerritoryData territoryData, IClientState clientState, IFramework framework, ILogger logger) { _configuration = configuration; _questController = questController; _fateController = fateController; - _seasonalDutyController = seasonalDutyController; _territoryData = territoryData; _clientState = clientState; _framework = framework; @@ -69,7 +66,7 @@ internal sealed class PandorasBoxIpc : IDisposable { Task.Run((Action)DisableConflictingFeatures); } - else if (!_fateController.IsRunning && !_seasonalDutyController.IsRunning) + else if (!_fateController.IsRunning) { Task.Run((Action)RestoreConflictingFeatures); } @@ -77,11 +74,11 @@ internal sealed class PandorasBoxIpc : IDisposable private void OnFrameworkUpdate(IFramework framework) { - bool flag = _fateController.IsRunning || _seasonalDutyController.IsRunning; - if (flag != _wasFateRunning) + bool isRunning = _fateController.IsRunning; + if (isRunning != _wasFateRunning) { - _wasFateRunning = flag; - if (flag && !_territoryData.IsDutyInstance(_clientState.TerritoryType)) + _wasFateRunning = isRunning; + if (isRunning && !_territoryData.IsDutyInstance(_clientState.TerritoryType)) { Task.Run((Action)DisableConflictingFeatures); } diff --git a/Questionable/Questionable.External/QuestionableIpc.cs b/Questionable/Questionable.External/QuestionableIpc.cs index b598cb7..3ff98d4 100644 --- a/Questionable/Questionable.External/QuestionableIpc.cs +++ b/Questionable/Questionable.External/QuestionableIpc.cs @@ -846,16 +846,20 @@ internal sealed class QuestionableIpc : IDisposable int num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = new AethernetId(1); + Span span15 = CollectionsMarshal.AsSpan(list15); + int index = 0; + span15[index] = new AethernetId(1); source = list15; break; } case "aethernet_gridania": { - int num = 1; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = new AethernetId(2); + int index = 1; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + int num = 0; + span14[num] = new AethernetId(2); source = list14; break; } @@ -864,16 +868,20 @@ internal sealed class QuestionableIpc : IDisposable int num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = new AethernetId(3); + Span span13 = CollectionsMarshal.AsSpan(list13); + int index = 0; + span13[index] = new AethernetId(3); source = list13; break; } case "aethernet_goldsaucer": { - int num = 1; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = new AethernetId(4); + int index = 1; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + Span span12 = CollectionsMarshal.AsSpan(list12); + int num = 0; + span12[num] = new AethernetId(4); source = list12; break; } @@ -882,16 +890,20 @@ internal sealed class QuestionableIpc : IDisposable int num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = new AethernetId(5); + Span span11 = CollectionsMarshal.AsSpan(list11); + int index = 0; + span11[index] = new AethernetId(5); source = list11; break; } case "aethernet_idyllshire": { - int num = 1; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = new AethernetId(6); + int index = 1; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + int num = 0; + span10[num] = new AethernetId(6); source = list10; break; } @@ -900,16 +912,20 @@ internal sealed class QuestionableIpc : IDisposable int num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = new AethernetId(7); + Span span9 = CollectionsMarshal.AsSpan(list9); + int index = 0; + span9[index] = new AethernetId(7); source = list9; break; } case "aethernet_kugane": { - int num = 1; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = new AethernetId(8); + int index = 1; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + int num = 0; + span8[num] = new AethernetId(8); source = list8; break; } @@ -918,16 +934,20 @@ internal sealed class QuestionableIpc : IDisposable int num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = new AethernetId(9); + Span span7 = CollectionsMarshal.AsSpan(list7); + int index = 0; + span7[index] = new AethernetId(9); source = list7; break; } case "aethernet_the_crystarium": { - int num = 1; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = new AethernetId(10); + int index = 1; + List list6 = new List(index); + CollectionsMarshal.SetCount(list6, index); + Span span6 = CollectionsMarshal.AsSpan(list6); + int num = 0; + span6[num] = new AethernetId(10); source = list6; break; } @@ -936,16 +956,20 @@ internal sealed class QuestionableIpc : IDisposable int num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - CollectionsMarshal.AsSpan(list5)[0] = new AethernetId(11); + Span span5 = CollectionsMarshal.AsSpan(list5); + int index = 0; + span5[index] = new AethernetId(11); source = list5; break; } case "aethernet_old_sharlayan": { - int num = 1; - List list4 = new List(num); - CollectionsMarshal.SetCount(list4, num); - CollectionsMarshal.AsSpan(list4)[0] = new AethernetId(12); + int index = 1; + List list4 = new List(index); + CollectionsMarshal.SetCount(list4, index); + Span span4 = CollectionsMarshal.AsSpan(list4); + int num = 0; + span4[num] = new AethernetId(12); source = list4; break; } @@ -954,16 +978,20 @@ internal sealed class QuestionableIpc : IDisposable int num = 1; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - CollectionsMarshal.AsSpan(list3)[0] = new AethernetId(13); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index = 0; + span3[index] = new AethernetId(13); source = list3; break; } case "aethernet_tuliyollal": { - int num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new AethernetId(14); + int index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + int num = 0; + span2[num] = new AethernetId(14); source = list2; break; } @@ -972,7 +1000,9 @@ internal sealed class QuestionableIpc : IDisposable int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = new AethernetId(15); + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = new AethernetId(15); source = list; break; } diff --git a/Questionable/Questionable.External/TextAdvanceIpc.cs b/Questionable/Questionable.External/TextAdvanceIpc.cs index 948c72c..70d6a49 100644 --- a/Questionable/Questionable.External/TextAdvanceIpc.cs +++ b/Questionable/Questionable.External/TextAdvanceIpc.cs @@ -40,8 +40,6 @@ internal sealed class TextAdvanceIpc : IDisposable private readonly FateController _fateController; - private readonly SeasonalDutyController _seasonalDutyController; - private readonly Configuration _configuration; private readonly ICondition _condition; @@ -56,12 +54,11 @@ internal sealed class TextAdvanceIpc : IDisposable private readonly string _pluginName; - public TextAdvanceIpc(IDalamudPluginInterface pluginInterface, IFramework framework, QuestController questController, FateController fateController, SeasonalDutyController seasonalDutyController, Configuration configuration, ICondition condition) + public TextAdvanceIpc(IDalamudPluginInterface pluginInterface, IFramework framework, QuestController questController, FateController fateController, Configuration configuration, ICondition condition) { _framework = framework; _questController = questController; _fateController = fateController; - _seasonalDutyController = seasonalDutyController; _configuration = configuration; _condition = condition; _isInExternalControl = pluginInterface.GetIpcSubscriber("TextAdvance.IsInExternalControl"); @@ -82,7 +79,7 @@ internal sealed class TextAdvanceIpc : IDisposable private void OnUpdate(IFramework framework) { - bool flag = _questController.IsRunning || _questController.AutomationType != QuestController.EAutomationType.Manual || _fateController.IsRunning || _seasonalDutyController.IsRunning; + bool flag = _questController.IsRunning || _questController.AutomationType != QuestController.EAutomationType.Manual || _fateController.IsRunning; if (!_configuration.General.ConfigureTextAdvance || !flag) { if (_isExternalControlActivated && (_disableExternalControl.InvokeFunc(_pluginName) || !_isInExternalControl.InvokeFunc())) diff --git a/Questionable/Questionable.Functions/AlliedSocietyQuestFunctions.cs b/Questionable/Questionable.Functions/AlliedSocietyQuestFunctions.cs index 20b8fea..56b62be 100644 --- a/Questionable/Questionable.Functions/AlliedSocietyQuestFunctions.cs +++ b/Questionable/Questionable.Functions/AlliedSocietyQuestFunctions.cs @@ -77,7 +77,9 @@ internal sealed class AlliedSocietyQuestFunctions int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = npcData; + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = npcData; questsByAlliedSociety[item] = list; } } diff --git a/Questionable/Questionable.Model/QuestEx.cs b/Questionable/Questionable.Model/QuestEx.cs index 0f247bc..e57b319 100644 --- a/Questionable/Questionable.Model/QuestEx.cs +++ b/Questionable/Questionable.Model/QuestEx.cs @@ -1,6 +1,5 @@ using System; using System.CodeDom.Compiler; -using System.Runtime.CompilerServices; using Lumina.Excel; using Lumina.Excel.Sheets; using Lumina.Text.ReadOnly; @@ -185,10 +184,10 @@ public readonly struct QuestEx : IExcelRow { ExcelModule module = _003Cpage_003EP.Module; uint rowId = _003Cpage_003EP.ReadUInt32(_003Coffset_003EP + 2712); - InlineArray2 buffer = default(InlineArray2); - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, Type>(ref buffer, 0) = typeof(EObjName); - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, Type>(ref buffer, 1) = typeof(ENpcResident); - return RowRef.GetFirstValidRowOrUntyped(module, rowId, global::_003CPrivateImplementationDetails_003E.InlineArrayAsReadOnlySpan, Type>(in buffer, 2), -965341264, _003Cpage_003EP.Language); + global::_003C_003Ey__InlineArray2 buffer = default(global::_003C_003Ey__InlineArray2); + global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, Type>(ref buffer, 0) = typeof(EObjName); + global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, Type>(ref buffer, 1) = typeof(ENpcResident); + return RowRef.GetFirstValidRowOrUntyped(module, rowId, global::_003CPrivateImplementationDetails_003E.InlineArrayAsReadOnlySpan, Type>(in buffer, 2), -965341264, _003Cpage_003EP.Language); } } @@ -200,10 +199,10 @@ public readonly struct QuestEx : IExcelRow { ExcelModule module = _003Cpage_003EP.Module; uint rowId = _003Cpage_003EP.ReadUInt32(_003Coffset_003EP + 2720); - InlineArray2 buffer = default(InlineArray2); - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, Type>(ref buffer, 0) = typeof(EObjName); - global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, Type>(ref buffer, 1) = typeof(ENpcResident); - return RowRef.GetFirstValidRowOrUntyped(module, rowId, global::_003CPrivateImplementationDetails_003E.InlineArrayAsReadOnlySpan, Type>(in buffer, 2), -965341264, _003Cpage_003EP.Language); + global::_003C_003Ey__InlineArray2 buffer = default(global::_003C_003Ey__InlineArray2); + global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, Type>(ref buffer, 0) = typeof(EObjName); + global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef, Type>(ref buffer, 1) = typeof(ENpcResident); + return RowRef.GetFirstValidRowOrUntyped(module, rowId, global::_003CPrivateImplementationDetails_003E.InlineArrayAsReadOnlySpan, Type>(in buffer, 2), -965341264, _003Cpage_003EP.Language); } } diff --git a/Questionable/Questionable.Windows.ConfigComponents/GeneralConfigComponent.cs b/Questionable/Questionable.Windows.ConfigComponents/GeneralConfigComponent.cs index cb63d08..1994dff 100644 --- a/Questionable/Questionable.Windows.ConfigComponents/GeneralConfigComponent.cs +++ b/Questionable/Questionable.Windows.ConfigComponents/GeneralConfigComponent.cs @@ -480,12 +480,16 @@ internal sealed class GeneralConfigComponent : ConfigComponent int num = 1; List<(uint, string)> list = new List<(uint, string)>(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = (0u, "Mount Roulette"); + Span<(uint, string)> span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = (0u, "Mount Roulette"); DefaultMounts = list; - num = 1; - List<(EClassJob, string)> list2 = new List<(EClassJob, string)>(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = (EClassJob.Adventurer, "Auto (highest level/item level)"); + index = 1; + List<(EClassJob, string)> list2 = new List<(EClassJob, string)>(index); + CollectionsMarshal.SetCount(list2, index); + Span<(EClassJob, string)> span2 = CollectionsMarshal.AsSpan(list2); + num = 0; + span2[num] = (EClassJob.Adventurer, "Auto (highest level/item level)"); DefaultClassJobs = list2; } } diff --git a/Questionable/Questionable.Windows.ConfigComponents/SinglePlayerDutyConfigComponent.cs b/Questionable/Questionable.Windows.ConfigComponents/SinglePlayerDutyConfigComponent.cs index ff24160..d8e30b9 100644 --- a/Questionable/Questionable.Windows.ConfigComponents/SinglePlayerDutyConfigComponent.cs +++ b/Questionable/Questionable.Windows.ConfigComponents/SinglePlayerDutyConfigComponent.cs @@ -898,11 +898,16 @@ internal sealed class SinglePlayerDutyConfigComponent : ConfigComponent List<(EClassJob, string)> list = new List<(EClassJob, string)>(num); CollectionsMarshal.SetCount(list, num); Span<(EClassJob, string)> span = CollectionsMarshal.AsSpan(list); - span[0] = (EClassJob.Paladin, "Tank Role Quests"); - span[1] = (EClassJob.WhiteMage, "Healer Role Quests"); - span[2] = (EClassJob.Lancer, "Melee Role Quests"); - span[3] = (EClassJob.Bard, "Physical Ranged Role Quests"); - span[4] = (EClassJob.BlackMage, "Magical Ranged Role Quests"); + int num2 = 0; + span[num2] = (EClassJob.Paladin, "Tank Role Quests"); + num2++; + span[num2] = (EClassJob.WhiteMage, "Healer Role Quests"); + num2++; + span[num2] = (EClassJob.Lancer, "Melee Role Quests"); + num2++; + span[num2] = (EClassJob.Bard, "Physical Ranged Role Quests"); + num2++; + span[num2] = (EClassJob.BlackMage, "Magical Ranged Role Quests"); RoleQuestCategories = list; } } diff --git a/Questionable/Questionable.Windows.QuestComponents/ActiveQuestComponent.cs b/Questionable/Questionable.Windows.QuestComponents/ActiveQuestComponent.cs index 9848712..7d74247 100644 --- a/Questionable/Questionable.Windows.QuestComponents/ActiveQuestComponent.cs +++ b/Questionable/Questionable.Windows.QuestComponents/ActiveQuestComponent.cs @@ -34,8 +34,6 @@ internal sealed class ActiveQuestComponent private readonly FateController _fateController; - private readonly SeasonalDutyController _seasonalDutyController; - private readonly QuestFunctions _questFunctions; private readonly ICommandManager _commandManager; @@ -61,20 +59,19 @@ internal sealed class ActiveQuestComponent public event EventHandler? Reload; [GeneratedRegex("\\s\\s+", RegexOptions.IgnoreCase, "en-US")] - [GeneratedCode("System.Text.RegularExpressions.Generator", "10.0.14.15411")] + [GeneratedCode("System.Text.RegularExpressions.Generator", "10.0.14.7603")] private static Regex MultipleWhitespaceRegex() { return _003CRegexGenerator_g_003EFBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0.Instance; } - public ActiveQuestComponent(QuestController questController, MovementController movementController, CombatController combatController, GatheringController gatheringController, FateController fateController, SeasonalDutyController seasonalDutyController, QuestFunctions questFunctions, ICommandManager commandManager, Configuration configuration, QuestRegistry questRegistry, PriorityWindow priorityWindow, UiUtils uiUtils, IObjectTable objectTable, IClientState clientState, IChatGui chatGui, AutoDutyIpc autoDutyIpc, ILogger logger) + public ActiveQuestComponent(QuestController questController, MovementController movementController, CombatController combatController, GatheringController gatheringController, FateController fateController, QuestFunctions questFunctions, ICommandManager commandManager, Configuration configuration, QuestRegistry questRegistry, PriorityWindow priorityWindow, UiUtils uiUtils, IObjectTable objectTable, IClientState clientState, IChatGui chatGui, AutoDutyIpc autoDutyIpc, ILogger logger) { _questController = questController; _movementController = movementController; _combatController = combatController; _gatheringController = gatheringController; _fateController = fateController; - _seasonalDutyController = seasonalDutyController; _questFunctions = questFunctions; _commandManager = commandManager; _configuration = configuration; @@ -95,11 +92,6 @@ internal sealed class ActiveQuestComponent DrawFateActive(isMinimized); return; } - if (_seasonalDutyController.IsRunning) - { - DrawDutyActive(isMinimized); - return; - } (QuestController.QuestProgress, QuestController.ECurrentQuestType)? currentQuestDetails = _questController.CurrentQuestDetails; QuestController.QuestProgress questProgress = currentQuestDetails?.Item1; QuestController.ECurrentQuestType? currentQuestType = currentQuestDetails?.Item2; @@ -144,12 +136,12 @@ internal sealed class ActiveQuestComponent if (interactionType == EInteractionType.WaitForManualProgress || interactionType == EInteractionType.Snipe || interactionType == EInteractionType.Instruction) { flag = true; - goto IL_017e; + goto IL_0169; } } flag = false; - goto IL_017e; - IL_017e: + goto IL_0169; + IL_0169: if (flag) { color.Push(ImGuiCol.Text, ImGuiColors.DalamudOrange); @@ -191,7 +183,7 @@ internal sealed class ActiveQuestComponent text2.AppendFormatted((item2 == 1) ? string.Empty : "s"); text2.AppendLiteral(" - Leveling mode will start automatically"); ImGui.TextColored(in col, text2); - using (ImRaii.Disabled(_questController.IsRunning || _fateController.IsRunning || _seasonalDutyController.IsRunning || !_autoDutyIpc.IsStopped())) + using (ImRaii.Disabled(_questController.IsRunning || _fateController.IsRunning || !_autoDutyIpc.IsStopped())) { if (ImGuiComponents.IconButton(FontAwesomeIcon.Play)) { @@ -286,32 +278,6 @@ internal sealed class ActiveQuestComponent } } - private void DrawDutyActive(bool isMinimized) - { - using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen)) - { - ImU8String text = new ImU8String(6, 1); - text.AppendLiteral("Duty: "); - text.AppendFormatted(Shorten(_seasonalDutyController.CurrentDuty.Name)); - ImGui.TextUnformatted(text); - } - IList remainingTaskNames = _seasonalDutyController.GetRemainingTaskNames(); - if (remainingTaskNames.Count > 0) - { - ImGui.TextColored(ImGuiColors.DalamudGrey, remainingTaskNames[0]); - } - if (!isMinimized) - { - string text2 = (_seasonalDutyController.CycleLimit.HasValue ? $"Cycle {_seasonalDutyController.CompletedCycles + 1} / {_seasonalDutyController.CycleLimit}" : $"Cycle {_seasonalDutyController.CompletedCycles + 1}"); - ImGui.TextColored(ImGuiColors.DalamudGrey3, text2); - } - if (ImGuiComponents.IconButton(FontAwesomeIcon.Stop)) - { - _seasonalDutyController.Stop("UI stop"); - _movementController.Stop(); - } - } - private void DrawQuestNames(QuestController.QuestProgress currentQuest, QuestController.ECurrentQuestType? currentQuestType) { if (currentQuestType == QuestController.ECurrentQuestType.Simulated) @@ -628,7 +594,7 @@ internal sealed class ActiveQuestComponent private void DrawQuestButtons(QuestController.QuestProgress currentQuest, QuestStep? currentStep, QuestProgressInfo? questProgressInfo, bool isMinimized) { - using (ImRaii.Disabled(_questController.IsRunning || _fateController.IsRunning || _seasonalDutyController.IsRunning)) + using (ImRaii.Disabled(_questController.IsRunning || _fateController.IsRunning)) { if (ImGuiComponents.IconButton(FontAwesomeIcon.Play)) { diff --git a/Questionable/Questionable.Windows.QuestComponents/PresetBuilderComponent.cs b/Questionable/Questionable.Windows.QuestComponents/PresetBuilderComponent.cs index f52f5fe..90ec00b 100644 --- a/Questionable/Questionable.Windows.QuestComponents/PresetBuilderComponent.cs +++ b/Questionable/Questionable.Windows.QuestComponents/PresetBuilderComponent.cs @@ -615,15 +615,19 @@ internal sealed class PresetBuilderComponent int num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - CollectionsMarshal.AsSpan(list15)[0] = new AethernetId(1); + Span span15 = CollectionsMarshal.AsSpan(list15); + int index = 0; + span15[index] = new AethernetId(1); return list15; } case "Gridania": { - int num = 1; - List list14 = new List(num); - CollectionsMarshal.SetCount(list14, num); - CollectionsMarshal.AsSpan(list14)[0] = new AethernetId(2); + int index = 1; + List list14 = new List(index); + CollectionsMarshal.SetCount(list14, index); + Span span14 = CollectionsMarshal.AsSpan(list14); + int num = 0; + span14[num] = new AethernetId(2); return list14; } case "Uldah": @@ -631,15 +635,19 @@ internal sealed class PresetBuilderComponent int num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - CollectionsMarshal.AsSpan(list13)[0] = new AethernetId(3); + Span span13 = CollectionsMarshal.AsSpan(list13); + int index = 0; + span13[index] = new AethernetId(3); return list13; } case "GoldSaucer": { - int num = 1; - List list12 = new List(num); - CollectionsMarshal.SetCount(list12, num); - CollectionsMarshal.AsSpan(list12)[0] = new AethernetId(4); + int index = 1; + List list12 = new List(index); + CollectionsMarshal.SetCount(list12, index); + Span span12 = CollectionsMarshal.AsSpan(list12); + int num = 0; + span12[num] = new AethernetId(4); return list12; } case "Ishgard": @@ -647,15 +655,19 @@ internal sealed class PresetBuilderComponent int num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - CollectionsMarshal.AsSpan(list11)[0] = new AethernetId(5); + Span span11 = CollectionsMarshal.AsSpan(list11); + int index = 0; + span11[index] = new AethernetId(5); return list11; } case "Idyllshire": { - int num = 1; - List list10 = new List(num); - CollectionsMarshal.SetCount(list10, num); - CollectionsMarshal.AsSpan(list10)[0] = new AethernetId(6); + int index = 1; + List list10 = new List(index); + CollectionsMarshal.SetCount(list10, index); + Span span10 = CollectionsMarshal.AsSpan(list10); + int num = 0; + span10[num] = new AethernetId(6); return list10; } case "Rhalgr's Reach": @@ -663,15 +675,19 @@ internal sealed class PresetBuilderComponent int num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - CollectionsMarshal.AsSpan(list9)[0] = new AethernetId(7); + Span span9 = CollectionsMarshal.AsSpan(list9); + int index = 0; + span9[index] = new AethernetId(7); return list9; } case "Kugane": { - int num = 1; - List list8 = new List(num); - CollectionsMarshal.SetCount(list8, num); - CollectionsMarshal.AsSpan(list8)[0] = new AethernetId(8); + int index = 1; + List list8 = new List(index); + CollectionsMarshal.SetCount(list8, index); + Span span8 = CollectionsMarshal.AsSpan(list8); + int num = 0; + span8[num] = new AethernetId(8); return list8; } case "Doman Enclave": @@ -679,15 +695,19 @@ internal sealed class PresetBuilderComponent int num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - CollectionsMarshal.AsSpan(list7)[0] = new AethernetId(9); + Span span7 = CollectionsMarshal.AsSpan(list7); + int index = 0; + span7[index] = new AethernetId(9); return list7; } case "The Crystarium": { - int num = 1; - List list6 = new List(num); - CollectionsMarshal.SetCount(list6, num); - CollectionsMarshal.AsSpan(list6)[0] = new AethernetId(10); + int index = 1; + List list6 = new List(index); + CollectionsMarshal.SetCount(list6, index); + Span span6 = CollectionsMarshal.AsSpan(list6); + int num = 0; + span6[num] = new AethernetId(10); return list6; } case "Eulmore": @@ -695,15 +715,19 @@ internal sealed class PresetBuilderComponent int num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - CollectionsMarshal.AsSpan(list5)[0] = new AethernetId(11); + Span span5 = CollectionsMarshal.AsSpan(list5); + int index = 0; + span5[index] = new AethernetId(11); return list5; } case "Old Sharlayan": { - int num = 1; - List list4 = new List(num); - CollectionsMarshal.SetCount(list4, num); - CollectionsMarshal.AsSpan(list4)[0] = new AethernetId(12); + int index = 1; + List list4 = new List(index); + CollectionsMarshal.SetCount(list4, index); + Span span4 = CollectionsMarshal.AsSpan(list4); + int num = 0; + span4[num] = new AethernetId(12); return list4; } case "Radz-at-Han": @@ -711,15 +735,19 @@ internal sealed class PresetBuilderComponent int num = 1; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - CollectionsMarshal.AsSpan(list3)[0] = new AethernetId(13); + Span span3 = CollectionsMarshal.AsSpan(list3); + int index = 0; + span3[index] = new AethernetId(13); return list3; } case "Tuliyollal": { - int num = 1; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - CollectionsMarshal.AsSpan(list2)[0] = new AethernetId(14); + int index = 1; + List list2 = new List(index); + CollectionsMarshal.SetCount(list2, index); + Span span2 = CollectionsMarshal.AsSpan(list2); + int num = 0; + span2[num] = new AethernetId(14); return list2; } case "Solution Nine": @@ -727,7 +755,9 @@ internal sealed class PresetBuilderComponent int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = new AethernetId(15); + Span span = CollectionsMarshal.AsSpan(list); + int index = 0; + span[index] = new AethernetId(15); return list; } default: diff --git a/Questionable/Questionable.Windows.QuestComponents/RemainingTasksComponent.cs b/Questionable/Questionable.Windows.QuestComponents/RemainingTasksComponent.cs index f77829d..b737d56 100644 --- a/Questionable/Questionable.Windows.QuestComponents/RemainingTasksComponent.cs +++ b/Questionable/Questionable.Windows.QuestComponents/RemainingTasksComponent.cs @@ -12,19 +12,16 @@ internal sealed class RemainingTasksComponent private readonly FateController _fateController; - private readonly SeasonalDutyController _seasonalDutyController; - - public RemainingTasksComponent(QuestController questController, GatheringController gatheringController, FateController fateController, SeasonalDutyController seasonalDutyController) + public RemainingTasksComponent(QuestController questController, GatheringController gatheringController, FateController fateController) { _questController = questController; _gatheringController = gatheringController; _fateController = fateController; - _seasonalDutyController = seasonalDutyController; } public void Draw() { - IList remainingTaskNames = _seasonalDutyController.GetRemainingTaskNames(); + IList remainingTaskNames = _fateController.GetRemainingTaskNames(); if (remainingTaskNames.Count > 0) { ImGui.Separator(); @@ -32,14 +29,14 @@ internal sealed class RemainingTasksComponent foreach (string item in remainingTaskNames) { ImU8String text = new ImU8String(3, 1); - text.AppendLiteral("D: "); + text.AppendLiteral("F: "); text.AppendFormatted(item); ImGui.TextUnformatted(text); } ImGui.EndDisabled(); return; } - IList remainingTaskNames2 = _fateController.GetRemainingTaskNames(); + IList remainingTaskNames2 = _gatheringController.GetRemainingTaskNames(); if (remainingTaskNames2.Count > 0) { ImGui.Separator(); @@ -47,38 +44,23 @@ internal sealed class RemainingTasksComponent foreach (string item2 in remainingTaskNames2) { ImU8String text2 = new ImU8String(3, 1); - text2.AppendLiteral("F: "); + text2.AppendLiteral("G: "); text2.AppendFormatted(item2); ImGui.TextUnformatted(text2); } ImGui.EndDisabled(); return; } - IList remainingTaskNames3 = _gatheringController.GetRemainingTaskNames(); - if (remainingTaskNames3.Count > 0) - { - ImGui.Separator(); - ImGui.BeginDisabled(); - foreach (string item3 in remainingTaskNames3) - { - ImU8String text3 = new ImU8String(3, 1); - text3.AppendLiteral("G: "); - text3.AppendFormatted(item3); - ImGui.TextUnformatted(text3); - } - ImGui.EndDisabled(); - return; - } - IList remainingTaskNames4 = _questController.GetRemainingTaskNames(); - if (remainingTaskNames4.Count <= 0) + IList remainingTaskNames3 = _questController.GetRemainingTaskNames(); + if (remainingTaskNames3.Count <= 0) { return; } ImGui.Separator(); ImGui.BeginDisabled(); - foreach (string item4 in remainingTaskNames4) + foreach (string item3 in remainingTaskNames3) { - ImGui.TextUnformatted(item4); + ImGui.TextUnformatted(item3); } ImGui.EndDisabled(); } diff --git a/Questionable/Questionable.Windows/SeasonalDutySelectionWindow.cs b/Questionable/Questionable.Windows/SeasonalDutySelectionWindow.cs deleted file mode 100644 index d2c6789..0000000 --- a/Questionable/Questionable.Windows/SeasonalDutySelectionWindow.cs +++ /dev/null @@ -1,424 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Numerics; -using System.Runtime.CompilerServices; -using Dalamud.Bindings.ImGui; -using Dalamud.Interface; -using Dalamud.Interface.Colors; -using Dalamud.Interface.Components; -using Dalamud.Interface.Utility.Raii; -using Dalamud.Interface.Windowing; -using LLib.ImGui; -using Questionable.Controller; -using Questionable.Data; -using Questionable.Functions; -using Questionable.Model; -using Questionable.Model.Questing; -using Questionable.Windows.QuestComponents; - -namespace Questionable.Windows; - -internal sealed class SeasonalDutySelectionWindow : LWindow -{ - private readonly SeasonalDutyController _seasonalDutyController; - - private readonly SeasonalDutyDefinitionRegistry _seasonalDutyDefinitionRegistry; - - private readonly QuestController _questController; - - private readonly FateController _fateController; - - private readonly MovementController _movementController; - - private readonly QuestFunctions _questFunctions; - - private readonly QuestData _questData; - - private readonly TerritoryData _territoryData; - - private int _cycleLimit; - - public SeasonalDutySelectionWindow(SeasonalDutyController seasonalDutyController, SeasonalDutyDefinitionRegistry seasonalDutyDefinitionRegistry, QuestController questController, FateController fateController, MovementController movementController, QuestFunctions questFunctions, QuestData questData, TerritoryData territoryData) - : base("Seasonal Duty Farming###QuestionableSeasonalDutyFarming") - { - _seasonalDutyController = seasonalDutyController; - _seasonalDutyDefinitionRegistry = seasonalDutyDefinitionRegistry; - _questController = questController; - _fateController = fateController; - _movementController = movementController; - _questFunctions = questFunctions; - _questData = questData; - _territoryData = territoryData; - base.Size = new Vector2(600f, 400f); - base.SizeCondition = ImGuiCond.FirstUseEver; - base.SizeConstraints = new WindowSizeConstraints - { - MinimumSize = new Vector2(500f, 300f), - MaximumSize = new Vector2(900f, 700f) - }; - } - - public override void DrawContent() - { - if (_seasonalDutyController.IsRunning) - { - DrawRunningHeader(); - } - else - { - DrawControlsStrip(); - } - if (_seasonalDutyDefinitionRegistry.Definitions.Count == 0) - { - DrawEmptyState(); - } - else - { - DrawDutyTable(); - } - } - - private void DrawRunningHeader() - { - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - float x = ImGui.GetContentRegionAvail().X; - float num = ImGui.GetTextLineHeightWithSpacing() * 3f + ImGui.GetStyle().ItemSpacing.Y * 3f; - ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList(); - windowDrawList.AddRectFilledMultiColor(cursorScreenPos, cursorScreenPos + new Vector2(x, num), ImGui.ColorConvertFloat4ToU32(new Vector4(0.18f, 0.26f, 0.2f, 0.85f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.14f, 0.22f, 0.16f, 0.85f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.14f, 0.22f, 0.16f, 0.85f)), ImGui.ColorConvertFloat4ToU32(new Vector4(0.18f, 0.26f, 0.2f, 0.85f))); - windowDrawList.AddLine(cursorScreenPos + new Vector2(0f, num), cursorScreenPos + new Vector2(x, num), ImGui.ColorConvertFloat4ToU32(new Vector4(0.3f, 0.8f, 0.4f, 0.5f)), 2f); - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + ImGui.GetStyle().ItemSpacing.Y); - ImGui.SetCursorPosX(ImGui.GetCursorPosX() + 8f); - float num2 = (float)ImGui.GetTime(); - float num3 = 0.85f + MathF.Sin(num2 * 3f) * 0.15f; - Vector4 col = new Vector4(0f, 1f * num3, 0.3f * num3, 1f); - using (ImRaii.PushFont(UiBuilder.IconFont)) - { - ImGui.TextColored(in col, FontAwesomeIcon.Leaf.ToIconString()); - } - ImGui.SameLine(); - ImGui.TextColored(ImGuiColors.ParsedGreen, _seasonalDutyController.CurrentDuty.Name); - ImGui.SameLine(x - 35f); - using (ImRaii.PushColor(ImGuiCol.Button, Vector4.Zero)) - { - using (ImRaii.PushColor(ImGuiCol.ButtonHovered, new Vector4(0.8f, 0.3f, 0.3f, 0.4f))) - { - using (ImRaii.PushColor(ImGuiCol.ButtonActive, new Vector4(0.9f, 0.2f, 0.2f, 0.6f))) - { - if (ImGuiComponents.IconButton(FontAwesomeIcon.Stop)) - { - _seasonalDutyController.Stop("UI stop"); - _movementController.Stop(); - } - } - } - } - ImGui.SetCursorPosX(ImGui.GetCursorPosX() + 8f); - string value = (_seasonalDutyController.CycleLimit.HasValue ? $"Cycle {_seasonalDutyController.CompletedCycles + 1} / {_seasonalDutyController.CycleLimit}" : $"Cycle {_seasonalDutyController.CompletedCycles + 1}"); - string value2 = FormatElapsed(_seasonalDutyController.ElapsedTime); - IList remainingTaskNames = _seasonalDutyController.GetRemainingTaskNames(); - string text = ((remainingTaskNames.Count > 0) ? remainingTaskNames.First() : ""); - if (text.Length > 0) - { - Vector4 col2 = ImGuiColors.DalamudGrey3; - ImU8String text2 = new ImU8String(10, 3); - text2.AppendFormatted(value); - text2.AppendLiteral(" · "); - text2.AppendFormatted(value2); - text2.AppendLiteral(" · "); - text2.AppendFormatted(text); - ImGui.TextColored(in col2, text2); - } - else - { - Vector4 col2 = ImGuiColors.DalamudGrey3; - ImU8String text3 = new ImU8String(5, 2); - text3.AppendFormatted(value); - text3.AppendLiteral(" · "); - text3.AppendFormatted(value2); - ImGui.TextColored(in col2, text3); - } - ImGui.SetCursorPosX(ImGui.GetCursorPosX() + 8f); - using (ImRaii.Disabled(disabled: true)) - { - ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted("Cycles:"); - ImGui.SameLine(); - ImGui.SetNextItemWidth(100f); - ImGui.InputInt("##CycleLimitRunning", ref _cycleLimit, 1, 5); - } - ImGui.SetCursorPosY(cursorScreenPos.Y + num - ImGui.GetCursorScreenPos().Y + ImGui.GetCursorPosY() + 4f); - ImGui.Spacing(); - } - - private void DrawControlsStrip() - { - using (ImRaii.Disabled(_seasonalDutyController.IsRunning)) - { - ImGui.AlignTextToFramePadding(); - ImGui.TextUnformatted("Cycles:"); - ImGui.SameLine(); - ImGui.SetNextItemWidth(100f); - ImGui.InputInt("##CycleLimit", ref _cycleLimit, 1, 5); - if (_cycleLimit < 0) - { - _cycleLimit = 0; - } - ImGui.SameLine(); - ImGui.TextColored(ImGuiColors.DalamudGrey, (_cycleLimit == 0) ? "(unlimited)" : ""); - } - ImGui.Spacing(); - } - - private static void DrawEmptyState() - { - float y = ImGui.GetContentRegionAvail().Y; - float x = ImGui.GetContentRegionAvail().X; - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + y * 0.25f); - Vector4 col = new Vector4(0.3f, 0.65f, 0.4f, 0.7f); - Vector2 cursorScreenPos = ImGui.GetCursorScreenPos(); - ImGui.PushFont(UiBuilder.IconFont); - string text = FontAwesomeIcon.Search.ToIconString(); - Vector2 vector = ImGui.CalcTextSize(text); - vector *= 2.5f; - ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList(); - Vector2 vector2 = new Vector2(x * 0.5f, 0f) + cursorScreenPos + new Vector2(0f, vector.Y * 0.5f); - for (int num = 3; num > 0; num--) - { - Vector4 col2 = new Vector4(col.X, col.Y, col.Z, col.W * 0.1f * (float)num); - ImGui.SetCursorScreenPos(vector2 - vector * 0.5f - new Vector2(num * 2, num * 2)); - ImGui.TextColored(in col2, text); - } - ImGui.SetCursorScreenPos(vector2 - vector * 0.5f); - ImGui.TextColored(in col, text); - ImGui.PopFont(); - ImGui.SetCursorPosY(ImGui.GetCursorPosY() + vector.Y * 0.5f + 20f); - string text2 = "No Seasonal Duty Definitions"; - Vector2 vector3 = ImGui.CalcTextSize(text2); - Vector2 vector4 = new Vector2((x - vector3.X) * 0.5f, 0f) + ImGui.GetCursorScreenPos(); - windowDrawList.AddText(vector4 + new Vector2(1f, 1f), ImGui.ColorConvertFloat4ToU32(new Vector4(0f, 0f, 0f, 0.5f)), text2); - ImGui.SetCursorPosX((x - vector3.X) * 0.5f); - ImGui.TextColored(new Vector4(0.95f, 0.95f, 1f, 1f), text2); - ImGui.Spacing(); - ImGui.Spacing(); - string text3 = "Add definitions to the SeasonalDutyPaths folder to get started."; - ImGui.SetCursorPosX((x - ImGui.CalcTextSize(text3).X) * 0.5f); - ImGui.TextColored(new Vector4(0.7f, 0.7f, 0.8f, 1f), text3); - } - - private void DrawDutyTable() - { - List list = _seasonalDutyDefinitionRegistry.Definitions.Values.OrderBy(delegate(SeasonalDutyDefinition d) - { - DateTime? eventExpiry = d.EventExpiry; - if (eventExpiry.HasValue) - { - DateTime valueOrDefault = eventExpiry.GetValueOrDefault(); - if (EventInfoComponent.NormalizeExpiry(valueOrDefault) - DateTime.UtcNow > TimeSpan.Zero) - { - return 0; - } - } - return 1; - }).ThenBy(delegate(SeasonalDutyDefinition d) - { - DateTime? eventExpiry = d.EventExpiry; - if (eventExpiry.HasValue) - { - DateTime valueOrDefault = eventExpiry.GetValueOrDefault(); - TimeSpan timeSpan = EventInfoComponent.NormalizeExpiry(valueOrDefault) - DateTime.UtcNow; - if (timeSpan > TimeSpan.Zero) - { - return timeSpan.TotalSeconds; - } - } - return double.MaxValue; - }).ThenBy((SeasonalDutyDefinition d) => d.Name, StringComparer.OrdinalIgnoreCase) - .ToList(); - using ImRaii.IEndObject endObject = ImRaii.Table("SeasonalDutyTable", 4, ImGuiTableFlags.SizingStretchProp | ImGuiTableFlags.RowBg | ImGuiTableFlags.BordersInnerH | ImGuiTableFlags.ScrollY); - if (!endObject) - { - return; - } - ImGui.TableSetupColumn("Name", ImGuiTableColumnFlags.None, 3f); - ImGui.TableSetupColumn("Zone", ImGuiTableColumnFlags.None, 2f); - ImGui.TableSetupColumn("Expiry", ImGuiTableColumnFlags.WidthFixed, 80f); - ImGui.TableSetupColumn("##Actions", ImGuiTableColumnFlags.WidthFixed, 30f); - ImGui.TableHeadersRow(); - foreach (SeasonalDutyDefinition item in list) - { - ImGui.TableNextRow(); - bool flag = _seasonalDutyController.IsRunning && _seasonalDutyController.CurrentDuty == item; - if (flag) - { - float num = (float)ImGui.GetTime(); - float w = 0.1f + MathF.Sin(num * 2.5f) * 0.05f; - ImGui.TableSetBgColor(ImGuiTableBgTarget.RowBg1, ImGui.GetColorU32(new Vector4(0f, 0.85f, 0.3f, w))); - } - ImGui.TableNextColumn(); - DrawDutyRowName(item, flag); - ImGui.TableNextColumn(); - ImGui.TextUnformatted(_territoryData.GetName(item.TerritoryId) ?? item.Name); - ImGui.TableNextColumn(); - DrawDutyRowExpiry(item); - ImGui.TableNextColumn(); - bool disabled = _seasonalDutyController.IsRunning || _fateController.IsRunning || _questController.AutomationType != QuestController.EAutomationType.Manual; - DrawDutyRowActions(item, disabled); - } - } - - private void DrawDutyRowName(SeasonalDutyDefinition duty, bool isActive) - { - if (isActive) - { - float num = (float)ImGui.GetTime(); - float num2 = 0.85f + MathF.Sin(num * 3f) * 0.15f; - ImGui.TextColored(new Vector4(0f, 1f * num2, 0.3f * num2, 1f), duty.Name); - } - else - { - ImGui.TextUnformatted(duty.Name); - } - if (!ImGui.IsItemHovered()) - { - return; - } - using (ImRaii.Tooltip()) - { - ImGui.TextColored(ImGuiColors.DalamudWhite, duty.Name); - ImGui.Separator(); - ImGui.Spacing(); - string nameAndId = _territoryData.GetNameAndId(duty.TerritoryId); - Vector4 col = ImGuiColors.DalamudGrey; - ImU8String text = new ImU8String(6, 1); - text.AppendLiteral("Zone: "); - text.AppendFormatted(nameAndId); - ImGui.TextColored(in col, text); - DateTime? eventExpiry = duty.EventExpiry; - if (eventExpiry.HasValue) - { - DateTime valueOrDefault = eventExpiry.GetValueOrDefault(); - TimeSpan timeSpan = EventInfoComponent.NormalizeExpiry(valueOrDefault) - DateTime.UtcNow; - if (timeSpan > TimeSpan.Zero) - { - string text2 = EventInfoComponent.FormatRemainingFull(timeSpan); - ImGui.TextColored(ImGuiColors.DalamudOrange, text2); - } - } - } - } - - private static void DrawDutyRowExpiry(SeasonalDutyDefinition duty) - { - DateTime? eventExpiry = duty.EventExpiry; - if (eventExpiry.HasValue) - { - DateTime valueOrDefault = eventExpiry.GetValueOrDefault(); - TimeSpan timeSpan = EventInfoComponent.NormalizeExpiry(valueOrDefault) - DateTime.UtcNow; - if (timeSpan > TimeSpan.Zero) - { - string text = EventInfoComponent.FormatRemainingDays(timeSpan); - ImGui.TextColored((timeSpan.TotalDays < 3.0) ? ImGuiColors.DalamudOrange : ImGuiColors.DalamudGrey, text); - } - else - { - ImGui.TextColored(ImGuiColors.DalamudGrey3, "Expired"); - } - } - else - { - ImGui.TextColored(ImGuiColors.DalamudGrey3, "--"); - } - } - - private void DrawDutyRowActions(SeasonalDutyDefinition duty, bool disabled) - { - bool flag = duty.RequiredQuestId.HasValue && !_questFunctions.IsQuestComplete(new QuestId(duty.RequiredQuestId.Value)); - ImU8String id = new ImU8String(5, 1); - id.AppendLiteral("duty_"); - id.AppendFormatted(duty.Name); - using (ImRaii.PushId(id)) - { - if (flag) - { - using (ImRaii.PushFont(UiBuilder.IconFont)) - { - ImGui.TextColored(ImGuiColors.DalamudRed, FontAwesomeIcon.Times.ToIconString()); - } - if (ImGui.IsItemHovered()) - { - IQuestInfo questInfo; - string value = (_questData.TryGetQuestInfo(new QuestId(duty.RequiredQuestId.Value), out questInfo) ? questInfo.Name : duty.RequiredQuestId.Value.ToString(CultureInfo.InvariantCulture)); - ImU8String tooltip = new ImU8String(33, 1); - tooltip.AppendLiteral("Requires \""); - tooltip.AppendFormatted(value); - tooltip.AppendLiteral("\" to be completed first"); - ImGui.SetTooltip(tooltip); - } - return; - } - using (ImRaii.Disabled(disabled)) - { - if (ImGuiComponents.IconButton(FontAwesomeIcon.Play)) - { - _questController.Stop("Seasonal duty farming start"); - _fateController.Stop("Seasonal duty farming start"); - _movementController.Stop(); - int? cycleLimit = ((_cycleLimit > 0) ? new int?(_cycleLimit) : ((int?)null)); - _seasonalDutyController.Start(duty, cycleLimit); - } - } - if (disabled && ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) - { - if (_seasonalDutyController.IsRunning) - { - ImGui.SetTooltip("Already farming a seasonal duty"); - } - else if (_fateController.IsRunning) - { - ImGui.SetTooltip("Stop FATE farming first"); - } - else - { - ImGui.SetTooltip("Stop quest automation first"); - } - } - } - } - - private static string FormatElapsed(TimeSpan elapsed) - { - IFormatProvider invariantCulture; - if (elapsed.TotalHours >= 1.0) - { - invariantCulture = CultureInfo.InvariantCulture; - IFormatProvider provider = invariantCulture; - DefaultInterpolatedStringHandler handler = new DefaultInterpolatedStringHandler(5, 3, invariantCulture); - handler.AppendFormatted((int)elapsed.TotalHours); - handler.AppendLiteral("h "); - handler.AppendFormatted(elapsed.Minutes, "D2"); - handler.AppendLiteral("m "); - handler.AppendFormatted(elapsed.Seconds, "D2"); - handler.AppendLiteral("s"); - return string.Create(provider, ref handler); - } - if (elapsed.TotalMinutes >= 1.0) - { - invariantCulture = CultureInfo.InvariantCulture; - IFormatProvider provider2 = invariantCulture; - DefaultInterpolatedStringHandler handler2 = new DefaultInterpolatedStringHandler(3, 2, invariantCulture); - handler2.AppendFormatted((int)elapsed.TotalMinutes); - handler2.AppendLiteral("m "); - handler2.AppendFormatted(elapsed.Seconds, "D2"); - handler2.AppendLiteral("s"); - return string.Create(provider2, ref handler2); - } - invariantCulture = CultureInfo.InvariantCulture; - IFormatProvider provider3 = invariantCulture; - DefaultInterpolatedStringHandler handler3 = new DefaultInterpolatedStringHandler(1, 1, invariantCulture); - handler3.AppendFormatted(elapsed.Seconds); - handler3.AppendLiteral("s"); - return string.Create(provider3, ref handler3); - } -} diff --git a/Questionable/Questionable.csproj b/Questionable/Questionable.csproj index 3b859d7..6c9ad82 100644 --- a/Questionable/Questionable.csproj +++ b/Questionable/Questionable.csproj @@ -74,9 +74,6 @@ ..\..\GatheringPaths.dll - - ..\..\SeasonalDutyPaths.dll - ..\..\JsonPointer.Net.dll diff --git a/Questionable/Questionable/DalamudInitializer.cs b/Questionable/Questionable/DalamudInitializer.cs index 154f2a9..f4850b4 100644 --- a/Questionable/Questionable/DalamudInitializer.cs +++ b/Questionable/Questionable/DalamudInitializer.cs @@ -35,20 +35,17 @@ internal sealed class DalamudInitializer : IDisposable private readonly FateController _fateController; - private readonly SeasonalDutyController _seasonalDutyController; - private readonly PartyWatchdog _partyWatchdog; private readonly ILogger _logger; - public DalamudInitializer(IDalamudPluginInterface pluginInterface, IFramework framework, QuestController questController, MovementController movementController, FateController fateController, SeasonalDutyController seasonalDutyController, WindowSystem windowSystem, OneTimeSetupWindow oneTimeSetupWindow, QuestWindow questWindow, DebugOverlay debugOverlay, ConfigWindow configWindow, QuestSelectionWindow questSelectionWindow, QuestSequenceWindow questSequenceWindow, QuestValidationWindow questValidationWindow, JournalProgressWindow journalProgressWindow, PriorityWindow priorityWindow, FateSelectionWindow fateSelectionWindow, SeasonalDutySelectionWindow seasonalDutySelectionWindow, ChangelogWindow changelogWindow, IToastGui toastGui, Configuration configuration, PartyWatchdog partyWatchdog, ILogger logger) + public DalamudInitializer(IDalamudPluginInterface pluginInterface, IFramework framework, QuestController questController, MovementController movementController, FateController fateController, WindowSystem windowSystem, OneTimeSetupWindow oneTimeSetupWindow, QuestWindow questWindow, DebugOverlay debugOverlay, ConfigWindow configWindow, QuestSelectionWindow questSelectionWindow, QuestSequenceWindow questSequenceWindow, QuestValidationWindow questValidationWindow, JournalProgressWindow journalProgressWindow, PriorityWindow priorityWindow, FateSelectionWindow fateSelectionWindow, ChangelogWindow changelogWindow, IToastGui toastGui, Configuration configuration, PartyWatchdog partyWatchdog, ILogger logger) { _pluginInterface = pluginInterface; _framework = framework; _questController = questController; _movementController = movementController; _fateController = fateController; - _seasonalDutyController = seasonalDutyController; _windowSystem = windowSystem; _oneTimeSetupWindow = oneTimeSetupWindow; _questWindow = questWindow; @@ -67,7 +64,6 @@ internal sealed class DalamudInitializer : IDisposable _windowSystem.AddWindow(journalProgressWindow); _windowSystem.AddWindow(priorityWindow); _windowSystem.AddWindow(fateSelectionWindow); - _windowSystem.AddWindow(seasonalDutySelectionWindow); _windowSystem.AddWindow(changelogWindow); _pluginInterface.UiBuilder.Draw += _windowSystem.Draw; _pluginInterface.UiBuilder.OpenMainUi += ToggleQuestWindow; @@ -83,7 +79,6 @@ internal sealed class DalamudInitializer : IDisposable _partyWatchdog.Update(); _questController.Update(); _fateController.Update(); - _seasonalDutyController.Update(); try { _movementController.Update(); @@ -92,7 +87,6 @@ internal sealed class DalamudInitializer : IDisposable { _questController.Stop("Pathfinding failed"); _fateController.Stop("Pathfinding failed"); - _seasonalDutyController.Stop("Pathfinding failed"); } } @@ -104,8 +98,6 @@ internal sealed class DalamudInitializer : IDisposable private void OnErrorToast(ref SeString message, ref bool isHandled) { _logger.LogTrace("Error Toast: {Message}", message); - _fateController.OnErrorToast(ref message, ref isHandled); - _seasonalDutyController.OnErrorToast(ref message, ref isHandled); } private void OnQuestToast(ref SeString message, ref QuestToastOptions options, ref bool isHandled) diff --git a/Questionable/Questionable/QuestionablePlugin.cs b/Questionable/Questionable/QuestionablePlugin.cs index fa286be..e17788d 100644 --- a/Questionable/Questionable/QuestionablePlugin.cs +++ b/Questionable/Questionable/QuestionablePlugin.cs @@ -148,7 +148,6 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskExecutor(); - serviceCollection.AddTaskExecutor(); serviceCollection.AddTaskExecutor(); serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskFactoryAndExecutor(); @@ -166,7 +165,6 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable serviceCollection.AddTaskFactory(); serviceCollection.AddTaskExecutor(); serviceCollection.AddTaskExecutor(); - serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskExecutor(); serviceCollection.AddTaskExecutor(); @@ -223,8 +221,6 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); @@ -277,7 +273,6 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); - serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); diff --git a/Questionable/System.Text.RegularExpressions.Generated/-RegexGenerator_g-FBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0.cs b/Questionable/System.Text.RegularExpressions.Generated/-RegexGenerator_g-FBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0.cs index 38e6923..0102111 100644 --- a/Questionable/System.Text.RegularExpressions.Generated/-RegexGenerator_g-FBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0.cs +++ b/Questionable/System.Text.RegularExpressions.Generated/-RegexGenerator_g-FBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0.cs @@ -3,7 +3,7 @@ using System.Runtime.CompilerServices; namespace System.Text.RegularExpressions.Generated; -[GeneratedCode("System.Text.RegularExpressions.Generator", "10.0.14.15411")] +[GeneratedCode("System.Text.RegularExpressions.Generator", "10.0.14.7603")] [SkipLocalsInit] internal sealed class _003CRegexGenerator_g_003EFBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0 : Regex { diff --git a/Questionable/System.Text.RegularExpressions.Generated/-RegexGenerator_g-FBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__Utilities.cs b/Questionable/System.Text.RegularExpressions.Generated/-RegexGenerator_g-FBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__Utilities.cs index a6aa892..db2066e 100644 --- a/Questionable/System.Text.RegularExpressions.Generated/-RegexGenerator_g-FBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__Utilities.cs +++ b/Questionable/System.Text.RegularExpressions.Generated/-RegexGenerator_g-FBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__Utilities.cs @@ -3,7 +3,7 @@ using System.CodeDom.Compiler; namespace System.Text.RegularExpressions.Generated; -[GeneratedCode("System.Text.RegularExpressions.Generator", "10.0.14.15411")] +[GeneratedCode("System.Text.RegularExpressions.Generator", "10.0.14.7603")] internal static class _003CRegexGenerator_g_003EFBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__Utilities { internal static readonly TimeSpan s_defaultTimeout = ((AppContext.GetData("REGEX_DEFAULT_MATCH_TIMEOUT") is TimeSpan timeSpan) ? timeSpan : Regex.InfiniteMatchTimeout); diff --git a/SeasonalDutyPaths/Questionable.SeasonalDutyPaths.SeasonalDutyDefinitionSchema b/SeasonalDutyPaths/Questionable.SeasonalDutyPaths.SeasonalDutyDefinitionSchema deleted file mode 100644 index ae5deeb..0000000 --- a/SeasonalDutyPaths/Questionable.SeasonalDutyPaths.SeasonalDutyDefinitionSchema +++ /dev/null @@ -1,104 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/SeasonalDutyPaths/seasonaldutydefinition-v1.json", - "title": "Seasonal Duty Definition V1", - "description": "A seasonal duty farming definition", - "type": "object", - "properties": { - "$schema": { - "type": "string" - }, - "Name": { - "description": "Display name of the seasonal duty", - "type": "string" - }, - "TerritoryId": { - "description": "Territory ID where the NPC is located", - "type": "integer", - "minimum": 1 - }, - "Aetheryte": { - "description": "Nearest aetheryte for teleporting", - "$ref": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-aetheryte.json" - }, - "AethernetShortcut": { - "description": "Aethernet shortcut to use after teleporting", - "type": "array", - "items": { - "type": "string" - }, - "minItems": 2, - "maxItems": 2 - }, - "NpcDataId": { - "description": "Data ID of the NPC to interact with", - "type": "integer", - "minimum": 1 - }, - "NpcPosition": { - "description": "Position of the NPC", - "$ref": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-vector3.json" - }, - "DialogueChoices": { - "description": "Dialogue choices when interacting with the NPC to enter the duty", - "type": "array", - "items": { - "type": "object" - } - }, - "DutyTerritoryId": { - "description": "Territory ID of the duty instance", - "type": "integer", - "minimum": 1 - }, - "DataIds": { - "description": "Data IDs of objects to interact with inside the duty", - "type": "array", - "items": { - "type": "integer", - "minimum": 1 - }, - "minItems": 1 - }, - "WaypointPositions": { - "description": "Waypoint positions to navigate through inside the duty", - "type": "array", - "items": { - "$ref": "https://github.com/WigglyMuffin/Questionable/raw/refs/heads/main/Questionable.Model/common-vector3.json" - } - }, - "Action": { - "description": "Action to perform on each object", - "type": "string" - }, - "StopDistance": { - "description": "Distance at which to stop and perform the action", - "type": "number", - "minimum": 0 - }, - "RequiredQuestId": { - "description": "Quest ID that must be completed before this duty can be farmed", - "type": "integer", - "minimum": 1 - }, - "EventExpiry": { - "description": "Date and time (in UTC) when the seasonal event ends", - "format": "date-time", - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "$schema", - "Name", - "TerritoryId", - "NpcDataId", - "NpcPosition", - "DutyTerritoryId", - "DataIds", - "Action" - ], - "additionalProperties": false -} diff --git a/SeasonalDutyPaths/Questionable.SeasonalDutyPaths/AssemblySeasonalDutyDefinitionLoader.cs b/SeasonalDutyPaths/Questionable.SeasonalDutyPaths/AssemblySeasonalDutyDefinitionLoader.cs deleted file mode 100644 index 8b4fd19..0000000 --- a/SeasonalDutyPaths/Questionable.SeasonalDutyPaths/AssemblySeasonalDutyDefinitionLoader.cs +++ /dev/null @@ -1,97 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Numerics; -using System.Runtime.InteropServices; -using Questionable.Model.Common; -using Questionable.Model.Questing; - -namespace Questionable.SeasonalDutyPaths; - -public static class AssemblySeasonalDutyDefinitionLoader -{ - private static Dictionary? _definitions; - - public static Stream SeasonalDutyDefinitionSchema => typeof(AssemblySeasonalDutyDefinitionLoader).Assembly.GetManifestResourceStream("Questionable.SeasonalDutyPaths.SeasonalDutyDefinitionSchema"); - - public static IReadOnlyDictionary GetDefinitions() - { - if (_definitions == null) - { - _definitions = new Dictionary(); - LoadDefinitions(); - } - return _definitions ?? throw new InvalidOperationException("seasonal duty definition data is not initialized"); - } - - private static void AddDefinition(ushort id, SeasonalDutyDefinition definition) - { - _definitions[id] = definition; - } - - private static void LoadDefinitions() - { - LoadDefinition0(); - } - - private static void LoadDefinition0() - { - SeasonalDutyDefinition obj = new SeasonalDutyDefinition - { - Name = "Hatching-tide (2026)", - TerritoryId = 133, - Aetheryte = EAetheryteLocation.Gridania, - AethernetShortcut = new AethernetShortcut - { - From = EAetheryteLocation.Gridania, - To = EAetheryteLocation.GridaniaAmphitheatre - }, - NpcDataId = 1056067u, - NpcPosition = new Vector3(-54.551025f, 6.851239f, -110.948364f) - }; - int num = 1; - List list = new List(num); - CollectionsMarshal.SetCount(list, num); - CollectionsMarshal.AsSpan(list)[0] = new DialogueChoice - { - Type = EDialogChoiceType.List, - ExcelSheet = "custom/009/FesEst2026Entrance_00960", - Prompt = new ExcelRef("TEXT_FESEST2026ENTRANCE_00960_Q1_000_000"), - Answer = new ExcelRef("TEXT_FESEST2026ENTRANCE_00960_A1_000_001"), - PromptIsRegularExpression = true - }; - obj.DialogueChoices = list; - obj.DutyTerritoryId = 1336; - num = 8; - List list2 = new List(num); - CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - span[0] = 2015072u; - span[1] = 2015073u; - span[2] = 2015074u; - span[3] = 2015075u; - span[4] = 2015076u; - span[5] = 2015077u; - span[6] = 2015078u; - span[7] = 2015079u; - obj.DataIds = list2; - num = 9; - List list3 = new List(num); - CollectionsMarshal.SetCount(list3, num); - Span span2 = CollectionsMarshal.AsSpan(list3); - span2[0] = new Vector3(-700.0023f, -0.15729797f, -721.67926f); - span2[1] = new Vector3(-700.1704f, -0.0301615f, 77.54147f); - span2[2] = new Vector3(-699.9926f, -0.021064043f, 877.55304f); - span2[3] = new Vector3(99.99213f, -0.100738764f, -721.9226f); - span2[4] = new Vector3(99.92716f, 4.7683716E-07f, 77.599335f); - span2[5] = new Vector3(100.40486f, 0.20596194f, 877.50397f); - span2[6] = new Vector3(899.93384f, 0.03615737f, -722.4109f); - span2[7] = new Vector3(900.052f, 0.23717809f, 77.897415f); - span2[8] = new Vector3(900.26733f, -0.30200624f, 877.5144f); - obj.WaypointPositions = list3; - obj.Action = EAction.PruningPirouette; - obj.RequiredQuestId = (ushort)5425; - obj.EventExpiry = new DateTime(2026, 4, 6, 14, 59, 0, DateTimeKind.Utc); - AddDefinition(1, obj); - } -} diff --git a/SeasonalDutyPaths/SeasonalDutyPaths.csproj b/SeasonalDutyPaths/SeasonalDutyPaths.csproj deleted file mode 100644 index b873ef9..0000000 --- a/SeasonalDutyPaths/SeasonalDutyPaths.csproj +++ /dev/null @@ -1,24 +0,0 @@ - - - - SeasonalDutyPaths - False - netcoreapp1.0 - - - 12.0 - True - - - - - - - - - - - ..\..\Questionable.Model.dll - - - \ No newline at end of file